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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ea87234d59de6ae4fb9b29d3183eae4614596ec | 8b565f036a531ebd071df3bd33b48ef13ecf5dfd | /aste_core/urls.py | 20ec459389bd51d959c0ed9bc2a32bf7f40d1a7f | [] | no_license | Picchi/aste | 85c1638f08166a1043f415c0d1274e7501b84703 | 27212ba3178a543af03059e5281c23d7ec753d4e | refs/heads/master | 2020-03-30T01:02:20.933636 | 2014-06-11T11:19:05 | 2014-06-11T11:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.conf.urls import patterns, include, url
from aste_core import views
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'aste.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$',views.page),
)
| [
"picchinetor@hotmail.it"
] | picchinetor@hotmail.it |
ec5e2eb2e3df598ee10c64f7ca153096fd615a99 | 47e0754497b733dcce1f4a9a191c7b6b214cbdb7 | /load_numpy_dataforold.py | 3e9746d2dfe3f0f5b882898a0ff0f4a953e34998 | [] | no_license | soans1994/hand-pose | 47643e2bfc64570d227ee47f7c3d0fff772eab88 | 0be9db3e658fa8efdf6a835ea259043c8fb64aa6 | refs/heads/main | 2023-08-19T09:35:21.581000 | 2021-09-29T07:11:56 | 2021-09-29T07:11:56 | 401,683,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,488 | py | """
Process CMU Hand dataset to get cropped hand datasets.
"""
import keras
import json
from tqdm import tqdm
import glob
import cv2
import numpy as np
from matplotlib import pyplot as plt
import os
from imgaug.augmentables.kps import KeypointsOnImage
from imgaug.augmentables.kps import Keypoint
import imgaug.augmenter... | [
"noreply@github.com"
] | soans1994.noreply@github.com |
7859c9931f01fef268f1900cbd09c1bd67c026c1 | de318630ae27136eda81943b4be388704b3e79f9 | /facebook/promo_post_winner.py | b16a3df8330343fc75eedc3cbc546c0e242d90e4 | [] | no_license | Shirhussain/Selenium-Automation | 8ceed35defbdaaacbcd07b7b332ec3abcc2b8b57 | 2091754197b0d60d85885fa6bc1481172d8f04d3 | refs/heads/main | 2023-02-06T05:14:57.562841 | 2020-12-29T12:15:59 | 2020-12-29T12:15:59 | 324,145,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,422 | py | import requests
import random
from time import sleep
from selenium import webdriver
from bs4 import BeautifulSoup
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from secrit import username, password
class FaceBookBot():
def __init__(self):
options =... | [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
9861e06cc5da5930b82807d36b6f08c2caa6bd47 | 599a14d5702a35e3e51fd4a832952899df89e764 | /src/sender/stack.py | ab18fc743fa3e9f49362af43a62b3990a45974b0 | [] | no_license | gpedro/whatsappcli | fc189d19e599348e7f79fee3bce105143646712c | 2d37204eeb9ed6f8af8986d817e22a907adf358d | refs/heads/master | 2020-12-26T04:04:25.569505 | 2015-10-22T13:37:41 | 2015-10-22T13:37:41 | 44,747,115 | 1 | 0 | null | 2015-10-22T13:32:16 | 2015-10-22T13:32:15 | null | UTF-8 | Python | false | false | 2,177 | py | from yowsup.stacks import YowStack
from .layer import SendLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.auth import YowCryptLayer, YowAuthenticationProtocolLayer, AuthError
from yowsup.layers.coder import YowCoderLayer
from yowsup.layers.network ... | [
"karim.jedda@gmail.com"
] | karim.jedda@gmail.com |
7e81c02be21821bb2fdc59acf36e972ae88034aa | f889e5aae4e223d10d7f64e6ebc4a8508a42c556 | /bento/core/parser/visitor.py | fb5f9b16909211072c96faf9ddf098c9154ea025 | [
"BSD-3-Clause"
] | permissive | pberkes/Bento | f7735b34f185945395ca2fc237ef36f35fffedcf | 332f525495d32d1329826186860dd7a39ab949b6 | refs/heads/master | 2021-01-16T17:40:44.924595 | 2011-11-16T15:28:45 | 2011-11-16T15:28:45 | 2,788,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,280 | py | import sys
import copy
from bento.core.parser.nodes \
import \
Node
def split_newline(s):
try:
ind = [i.type for i in s].index("newline")
return [s[:ind+1], s[ind+1:]]
except ValueError:
return [s]
def split_newlines(s):
t = []
def _split_newlines(s):
sp = ... | [
"cournape@gmail.com"
] | cournape@gmail.com |
0a9437b2d8efdebd1845ea6e37ade80d8fad61e1 | 750510a2a79e811b86099baa7634b2f3bb9a9dee | /participations/migrations/0001_initial.py | aa636912db4f793cd5f85cf2d27e8273ddb37a4f | [] | no_license | kawamorikaito/tournament | b388a4d6d4c0987b69afddb86051571b58cd8089 | 0ff24415697ec581036231383578ac56e024d18a | refs/heads/master | 2020-12-01T20:29:55.267482 | 2020-03-17T14:46:28 | 2020-03-17T14:46:28 | 230,760,493 | 0 | 0 | null | 2020-03-17T14:46:30 | 2019-12-29T14:21:21 | Python | UTF-8 | Python | false | false | 947 | py | # Generated by Django 2.2.5 on 2020-03-07 01:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"noreply@github.com"
] | kawamorikaito.noreply@github.com |
1b4089136acb1bd10f24f01c1da1e29b65096fd3 | 10b873d984c9e4cffe12c51907fd9dd102043664 | /src/remove_the_exclamation_marks.py | 48211e0a86e61cc9b2ac744c282c0defa29c0c02 | [] | no_license | alvinalmodal/codewars | 7db1c53f616d80b0fa021851b0b99cb04a2ce7c3 | 0e190ea984fe67188cbaf4cf6c4ddab1963a4f66 | refs/heads/main | 2023-07-29T02:40:21.182654 | 2021-09-06T11:19:48 | 2021-09-06T11:19:48 | 398,095,583 | 0 | 0 | null | 2021-09-06T11:19:49 | 2021-08-19T23:03:44 | Python | UTF-8 | Python | false | false | 151 | py | def remove(words):
if type(words) != str or len(words) == 0:
raise ValueError('Please provide a valid string')
return words.rstrip('!') | [
"almodalalvin@gmail.com"
] | almodalalvin@gmail.com |
fb53e404b307772f0beaa3622f4611eed825f154 | 375c05dc48eacb4bdaabe8930bd39c133ff8c159 | /web/flaskr/main/views/models.py | 0488e56a3229758acbff9c5a9fa7477a49c3dd52 | [] | no_license | wangshoujunnew/ai_qi | e68e719b772c9762b64c68bd4537793df8be089a | a6dc1cd326410f522af59b657f99b675c54b4880 | refs/heads/master | 2021-07-17T00:36:28.977847 | 2021-07-15T23:41:48 | 2021-07-15T23:41:48 | 132,225,071 | 0 | 0 | null | 2018-05-05T07:27:20 | 2018-05-05T07:27:20 | null | UTF-8 | Python | false | false | 198 | py | from flask import render_template, make_response
from .. import main
@main.route('/models', methods=['GET'])
def models():
resp = make_response(render_template('models.html'))
return resp
| [
"lijianan@hujiang.com"
] | lijianan@hujiang.com |
0a544fbd4b5602eb6f2a149438adfa695cf1ca01 | cb1d59b57510d222efcfcd37e7e4e919b6746d6e | /python/word_break_II.py | 42c0963ca7b0687f03fe375c71efbea118f441c8 | [] | no_license | pzmrzy/LeetCode | 416adb7c1066bc7b6870c6616de02bca161ef532 | ef8c9422c481aa3c482933318c785ad28dd7703e | refs/heads/master | 2021-06-05T14:32:33.178558 | 2021-05-17T03:35:49 | 2021-05-17T03:35:49 | 49,551,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: List[str]
"""
self.dic = {}
if len(wordDict) == 0:
return []
return self.dfs(s, wordDict)
def dfs(self, s, wordDict):
... | [
"pzmrzy@gmail.com"
] | pzmrzy@gmail.com |
1d1abb0bb49bcf0af5053cfd16816cecc85a9aac | 68ea05d0d276441cb2d1e39c620d5991e0211b94 | /2157.py | ca9f59c6c84073c2a27cbe12d854b32f9a3bf69d | [] | no_license | mcavalca/uri-python | 286bc43aa157d3a6880dc222e0136c80cf079565 | e22875d2609fe7e215f9f3ed3ca73a1bc2cf67be | refs/heads/master | 2021-11-23T08:35:17.614443 | 2021-10-05T13:26:03 | 2021-10-05T13:26:03 | 131,339,175 | 50 | 27 | null | 2021-11-22T12:21:59 | 2018-04-27T19:54:09 | Python | UTF-8 | Python | false | false | 167 | py | n = int(input())
while(n > 0):
n -= 1
b, e = input().split()
s = ''
for i in range(int(b), int(e)+1):
s += str(i)
s += s[::-1]
print(s) | [
"marcelo.cavalca@cptec.inpe.br"
] | marcelo.cavalca@cptec.inpe.br |
09b8d18c5f6f09d2d73e0262c5d0145d5ce16c23 | ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a | /ICPC/2015 Divisionals/front/submissions/front_andrew.py | 8639d9314af6f4157380a992e284ddf7c92e1f75 | [] | no_license | cormackikkert/competitive-programming | f3fa287fcb74248ba218ecd763f8f6df31d57424 | 3a1200b8ff9b6941c422371961a127d7be8f2e00 | refs/heads/master | 2022-12-17T02:02:40.892608 | 2020-09-20T11:47:15 | 2020-09-20T11:47:15 | 266,775,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import sys
def solve(n, h, a, P):
if h == 0:
return 0.0
P = {k: v/100.0 for k, v in P.items()}
dp = [None for x in range(0,n+1)]
A = [None for x in range(0,n+1)]
Y = range(0,h+1)
trans = [ [(-1,P[-1]), (0,P[-1]+P[0])] if y == 0 else (
[(-1,P[-1]), (0,P... | [
"u6427001@anu.edu.au"
] | u6427001@anu.edu.au |
335e9dcfd2af0c9fa511ec361fb6123cbfbaf489 | 411818b9198fab4f12592da82f007f3de314f088 | /hebin.py | 61b29eab6f25226267788fe38f0e3f768b3a07d4 | [] | no_license | WatsonJay/torrenthunter | f6caccea5e33e48089d7ddf3fa39c9319e5a3079 | 15a6d1387ed421eb3801ace571926055b9f801da | refs/heads/master | 2020-03-21T18:13:00.952728 | 2019-03-23T03:01:45 | 2019-03-23T03:01:45 | 138,878,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import xlrd
import xlwt
class hebinxls():
def hebin(self,timerun):
myfile = xlwt.Workbook()
wtable = myfile.add_sheet(u"信息", cell_overwrite_ok=True)
wtable.write(0, 0, u"名字")
wtable.write(0, 1, u"番号")
wtable.write(0, 2, u"文件名")
wtable.write(0, 3, u"文件大小")
wt... | [
"446725026@qq.com"
] | 446725026@qq.com |
f5ca91190656e9619fa62f7a39c8901570d93006 | 4c098b625c07ccad676140e6bab98d1893cbed75 | /backend/post/migrations/0001_initial.py | 6abcbd420a9d26cf4e139ed71e285d8cbb0f0021 | [] | no_license | PrasannaIITM/Excalidraw_Save_Image | e18680b9f76074d6d6518ecc86aa4fea39626ade | 89bdc0cf8a62160b67e0d62d8a68d0d16cec254c | refs/heads/main | 2023-06-22T01:16:01.175325 | 2021-07-18T06:03:09 | 2021-07-18T06:03:09 | 387,100,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Generated by Django 3.2.3 on 2021-07-17 12:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.BigAutoField(... | [
"prasanna.bartakke@gmail.com"
] | prasanna.bartakke@gmail.com |
aa3a115ac79408f54b1de80a728f9a33126ecea7 | cf88b214e7dffc0c8b6a7a2ad4b5ecc8f946c567 | /Branch.py | 66887853fc825ff60c460f83b00ec445fcdb5ca7 | [] | no_license | BlenderCN/grove2.8 | a1dadd211b148f5b8196e5ee652c104c8f1fddbe | fb8a561a5e107feab5535f39de13f8706248febe | refs/heads/master | 2020-04-29T22:29:56.783710 | 2019-03-19T11:04:41 | 2019-03-19T11:04:41 | 176,449,551 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,818 | py | # coding=utf-8
""" This is where the magic happens. A collection of recursive functions that treats every
branch generation equal. Each branch does its thing and then calls its child branches
to do the same.
Copyright 2014 - 2018, Wybren van Keulen, The Grove """
import bpy
from mathutils import Matri... | [
"noreply@github.com"
] | BlenderCN.noreply@github.com |
7072836f481a2276f536fedf7f5a30f7ab27162f | 7089e5df484d94974f38417b130c90d35ab30296 | /tests/settings.py | e171f06a222251ea9ab8e1f807125c0badca3c2e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | rpkilby/django-template-forms | 5dc3cc863adc7ea8a521234b4616346636af220e | 5099d87d661a6a313df49fa484afd94f145e65bc | refs/heads/master | 2021-09-06T11:17:01.575926 | 2018-02-05T23:37:24 | 2018-02-05T23:37:24 | 111,064,077 | 1 | 0 | BSD-3-Clause | 2018-02-05T23:35:09 | 2017-11-17T05:56:39 | Python | UTF-8 | Python | false | false | 1,109 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'not-a-secret'
DEBUG = True
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.staticfiles',
'template_forms',
'testapp',
]
MIDDLEWARE = []
ROOT_URLCONF = 'testa... | [
"rpkilby@ncsu.edu"
] | rpkilby@ncsu.edu |
b3a577c38880b998afeb78cac5e8124560a81987 | 27af33176030aaa0f166fc7e95315ea13b8b40cf | /sitemapgenerator.py | 811a32cf09866f4ace89fae1dab7b9cf3a40a38d | [] | no_license | megapro3/sitemapgenerator-public | 9cf5ded1950134537d6720926b658df32d413d82 | cf4e23f3c109cc6c0d6837796b681c335cb9b59c | refs/heads/master | 2021-01-04T03:51:12.391034 | 2020-02-13T21:42:53 | 2020-02-13T21:42:53 | 240,369,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,669 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from urllib.request import urlopen, Request, HTTPError
# In[2]:
import urllib.parse as parse
# In[3]:
from datetime import datetime as dt
# In[4]:
import hashlib
# In[5]:
import re
# In[6]:
import csv
# In[37]:
class Robotstxt():
def __init__... | [
"48083717+megapro3@users.noreply.github.com"
] | 48083717+megapro3@users.noreply.github.com |
e41ed64fbfd9778e7c3098540793498a01d8d5bc | a86a13b19aac58905b08fc516085aa2ad0a392ad | /getTweets.py | c7c426342da7ec19d64e37a2454ecf7acc6c1a85 | [] | no_license | eligoodwin/magabot | c87edf5367c5dd8cd3494d28fc9bc5947f2a698e | 5452e5ba8e835f4a35f1ebca5bc6cb5f35b0e754 | refs/heads/master | 2021-08-23T01:25:22.425965 | 2017-12-02T04:32:02 | 2017-12-02T04:32:02 | 111,015,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | import tweepy
import json
import io
import twittercreds
#get the tweets of the
class Tweets():
newTweetData = [] #an array holding the
def __init__(self, userName, lastTweetId):
self.userName = userName
self.lastTweetId = lastTweetId
def __init__(self, userName):
self.screenName... | [
"goodwiel@oregonstate.edu"
] | goodwiel@oregonstate.edu |
e18dfe8d2505818d2aba17214fe34e4aadbeaf67 | 40472cdbd913cbef183ea002514a57710ac51373 | /src/scripts/calc_density.py | 59f893830730967e856d4ba3c87ca48d22077e2a | [] | no_license | NatasjaWezel/project_handbag | fa52485c459c26318e8d44900d9d7cc92f0f5a93 | 838f13ed610e4352199fd08fb53870d7b816de31 | refs/heads/master | 2023-06-22T10:58:04.689179 | 2021-07-20T12:44:38 | 2021-07-20T12:44:38 | 292,266,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This script is part of the quantification pipeline of 3D experimental data of crystal structures that I wrote for my
# thesis in the Master Computational Science, University of Amsterdam, 2021.
#
# ... | [
"natasjawezel@hotmail.com"
] | natasjawezel@hotmail.com |
d2471ea9af31f6ee908d57c4a5d7f01b86db2fc1 | 85afcf96da3d1068496d807fb3d6e5122d41cd8e | /moives/spiders/zhuixinfandownloadlink.py | df258e9881bb07c2dd77d3566f062f28ed3b372e | [] | no_license | robbinhan/movies | f3d87f3122507f975bad73102180427690ce7865 | a48577af2e5f2d00e3ab0b79f672f0c1fea3ee67 | refs/heads/master | 2022-12-10T23:45:19.949896 | 2021-04-01T01:37:55 | 2021-04-01T01:37:55 | 97,911,141 | 3 | 0 | null | 2022-11-04T19:36:22 | 2017-07-21T05:55:50 | HTML | UTF-8 | Python | false | false | 762 | py | import scrapy
import subprocess
class ZhuixinfanDownloadLinkSpider(scrapy.Spider):
name = "zhuixinfan_downloadlink"
def __init__(self, url):
super(ZhuixinfanDownloadLinkSpider, self).__init__()
self.url = url
def start_requests(self):
print(self.url)
yield scrapy.Request(u... | [
"hanb@kingnet.com"
] | hanb@kingnet.com |
06dd063ed44cdcd528e2beed2254da0550654d75 | f803a1470c29d71fb192dcd4345b0678bb3a44aa | /datasets/DentalDataset.py | ce96ca44e052fbd0b9ae104aee01651e6a65bbaf | [] | no_license | zendi014/DLCariesScreen | 62dd23cd20922d244474153521ecfbc48f2da87c | 1b27cb6dff07c2b98bf739f6f108c6cdc31a183b | refs/heads/master | 2023-02-05T09:55:06.717176 | 2020-12-29T23:24:03 | 2020-12-29T23:24:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,808 | py | import os.path as osp
import numpy as np
import mmcv
from torch.utils.data import Dataset
from mmcv.parallel.data_container import DataContainer
from cores.pre_processing.image_transform import ImageTransform, BboxTransform
from cores.pre_processing.augmentations import Augmentation, random_scale
from utils.image_uti... | [
"liangyuandg@g.ucla.edu"
] | liangyuandg@g.ucla.edu |
8ebbf36d3c88ee93f19d20db7545d8c5baaf247d | e539e77ccf29457e9b3beed88381be440071d0d6 | /bin/pasteurize | c19f18dcab407054416dcc88b0b5eb91f90f4d95 | [] | no_license | wenjiehe/crawlerDemo | a518781c78bf5e19a62878f786b9c94f67df3b6f | 7949d9f85a9ac5eaf59c56e68eb550c8c17176f5 | refs/heads/master | 2023-03-01T07:01:10.292814 | 2021-02-02T14:52:09 | 2021-02-02T14:52:09 | 334,104,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | #!/Users/hewenjie/Documents/gitDemo/crawlerDemo/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'future==0.18.2'
try:
from importlib.metadata import distribution
except ImportError:
try... | [
"wx2018543@dev.bcs"
] | wx2018543@dev.bcs | |
3cc6123073a2ea6001ba79af240f79bf16f3fc1b | cdb8189ca1dcd35251420aa6571e734735348c34 | /covid-twitter-bert/run.py | f9b85d271310cc4ce75a4331a3e12c4ff977d768 | [] | no_license | SumonKantiDey/Constraint-AAAI2021-COVID19-Fake-News-Detection-in-English | 4a329878f4d4df99cdab5ecf426c8faf59288640 | 5e08942befeae14e3a69b56b7f9d316f0f6e38f7 | refs/heads/main | 2023-04-19T11:16:24.673904 | 2021-05-11T06:20:32 | 2021-05-11T06:20:32 | 366,106,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,833 | py | ############################ Last Two Layer ###########################
## Covid twitter Bert
python train.py --bert_hidden 1024 \
--pretrained_model_name "digitalepidemiologylab/covid-twitter-bert-v2" \
--learning_rate 2e-5 \
--epochs 4 \
--max_len 128 \
--train_batch_size 16 \
--valid_batch_s... | [
"sumonkantidey23@gmail.com"
] | sumonkantidey23@gmail.com |
31791fefda554f78f6883a22f704dfdf79e47740 | f58d7f1dc962f81b58c04849a82cfe8ee19f1a0b | /gauss_env.py | 46cab40d522b54114ec3e9646dcbf8ca2f74f9f4 | [] | no_license | FranziskaGoerler/Bachelorarbeit | 9a382b8fa53d0f5566304d765dcabc9c7905ca7b | 506ec2e65bb83ac90ee74ac5554d8d16fc87f723 | refs/heads/master | 2023-03-04T04:51:08.091239 | 2021-02-04T20:02:39 | 2021-02-04T20:02:39 | 310,677,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,953 | py | import arcade
import gym
# import random
import timeit
# import math
import numpy as np
import time
import bisect
from matplotlib import pyplot as plt
from multiple_formatter import multiple_formatter
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 800
N_BINS = 4
N_BOTS = 6
BOT_RADIUS = 17.5
COLLISION_DISTANCE = BOT_RADIUS + 17.5
... | [
"64753087+FranziskaGoerler@users.noreply.github.com"
] | 64753087+FranziskaGoerler@users.noreply.github.com |
f27c14584dc3cf409eafba3d068e89802cc3b6b8 | d5d0ea5615fc5156837d22efafc83f3e78d79cf6 | /WebApp.py | 21f321d0a03b021dedfe46d517d2d40850924471 | [] | no_license | RodrigoAntoniaci/WYSP | b68617b469b531c484d37331eb37c4abe5aaa733 | d0ad84d06866b3a7201c9483fa2ecca8e7887e20 | refs/heads/master | 2023-01-20T15:39:14.290310 | 2020-12-03T12:01:45 | 2020-12-03T12:01:45 | 283,348,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,282 | py | #Libraries
import streamlit as st
import pandas as pd
import base64
#Importing code to calculate distance
from Calc_Dist import PlayIt
#Loading Dataframe to calculate distance
@st.cache
def load_dataset():
dataframe = pd.read_csv('dummy_ign.csv',sep='|')
return dataframe
dataset = load_dataset()
@st.cache
d... | [
"rodrigo.antoniaci@gmail.com"
] | rodrigo.antoniaci@gmail.com |
b7bfc9d90761700d6f7d5eeb648630549208a4e7 | 0524c932fbe5ac9d9e7a28831249bc30f14185a8 | /Task 4/problem2.py | dc8178f5532d71d963e7d204627ad062b2b3ab25 | [] | no_license | devmeraj/python_practice | 5050487587c125fab5b7d1853a13128813ce0124 | d7ae22e10b7fe37f94e3a68790dda031e4c891ad | refs/heads/master | 2020-06-19T21:24:27.547675 | 2019-07-14T20:09:21 | 2019-07-14T20:09:21 | 196,879,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | # Write a Python program to read first n lines of a file
def readLine(fileName, nLine):
with open(fileName, 'r') as myFile:
for i in range(1, nLine + 1):
print(myFile.readlines(i)[0], '\n')
readLine('test.txt', 4) | [
"merajulnu@gmail.com"
] | merajulnu@gmail.com |
79807061dd68c41f7f3c0ffcb032d69f63ae5ad5 | f0cce1eb9d88fd3696822f1a1e021b4d0ae64ef5 | /system_model/Behavior Models/initialize_agent.py | 0d21c4430e032d74443cc6b93c2a59923631fc44 | [
"BSD-3-Clause"
] | permissive | arpa-e-transnet/incenTrip_systemmodel_sharing | dda872dc7e9edafc3acf81871519953b65742687 | 8dc0618704faaded9c63dbec5e793a5a10fa7110 | refs/heads/master | 2020-03-30T18:09:46.509404 | 2018-09-12T22:12:22 | 2018-09-12T22:12:22 | 151,486,574 | 0 | 1 | BSD-3-Clause | 2018-10-03T22:06:50 | 2018-10-03T22:06:49 | null | UTF-8 | Python | false | false | 2,789 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 26 22:39:48 2017
@author: cxiong
"""
import pandas as pd
import pickle
import time
import random
start_time = time.time()
agent=pd.read_csv('output_agent_day0.csv')
with open('taz_dic.pickle') as f: # Python 3: open(..., 'rb')
taz_dic = pickle.load(f)
del taz_dic[98... | [
"cxiong@umd.edu"
] | cxiong@umd.edu |
72f5b3b1beeb6ae2469e57609e9fa66f74c5566c | 80cfb5f42bc93433249bb2789be33208bb037679 | /platin/httpservices/scheduler.py | b16c257c1b936671383999f9cd92f8d4d535bdf5 | [] | no_license | legibe/platin | b3960975c214b99d699fc3c8d5e94d473d173a8c | 430c4421ac2056c3041c1ac4b7f950c202334fb4 | refs/heads/master | 2020-12-24T21:28:15.740529 | 2016-05-13T00:29:53 | 2016-05-13T00:29:53 | 55,983,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | #--------------------------------------------------------------------------------
# Author: Claude Gibert
#
#--------------------------------------------------------------------------------
from twisted.internet import reactor
from ..core.date import utcNow
"""
A convenience class to use some of the features of the ... | [
"claudegibert@Bearwood.local"
] | claudegibert@Bearwood.local |
6afbca4d67690a130eca57de406b845c679b4272 | a05f5638c145964fdb203883ee415f4a021b8086 | /code/stock/tables/__init__.py | 0d53e9091b0ab3720c7217655b184739ae8fc800 | [] | no_license | jackstine/stockAnalysis | a209a5b126a04370b22e485400975c88be53a998 | 83f74c5fc1c5216baa28fccf6e5a6511dfd6c11b | refs/heads/master | 2021-01-18T23:57:20.143074 | 2016-08-09T02:10:22 | 2016-08-09T02:10:22 | 53,628,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from DataPool import DataPool
from Collection import Collection
from TableDescription import TableDescription
from Description import Description
from Table import Table
from Field import Field
from Row import Row
| [
"ecstaticjack@gmail.com"
] | ecstaticjack@gmail.com |
3da95b9dd547f1e4f76a1f56d2a7ba805110539f | c0156da1c81a3a76e397974399c7345d082eca9b | /venv/lib/python3.7/site-packages/AccessControl/User.py | ce243e3ea746dde5d02b4caecec5843200d5094c | [
"Apache-2.0"
] | permissive | leanhvu86/matrix-server | 1823c60fc6ba5ed489bb5720474c6b56a9aec688 | 6e16fc53dfebaeaf222ff5a371ccffcc65de3818 | refs/heads/master | 2023-05-09T01:21:37.774510 | 2021-05-21T15:10:48 | 2021-05-21T15:10:48 | 369,569,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | [
"leanhvu86@gmail.com"
] | leanhvu86@gmail.com |
3b55dee9a74bedd0c8fbb0830eefd44422dcf8dc | a5f482640695b5d46ae68e6661efaa40ae948636 | /orttraining/orttraining/test/python/orttraining_test_debuggability.py | 4353174c386c3e37f723899f0f57893fd9c47e48 | [
"MIT"
] | permissive | jupvfranco/onnxruntime | 1a94c0072ed23150226bc1d99b66bc0d85eb9309 | 57c92066c2cbd384deecbe74e0950ab3e726718a | refs/heads/master | 2023-08-07T20:38:19.624633 | 2020-11-23T07:19:27 | 2020-11-23T07:19:27 | 290,848,080 | 1 | 0 | MIT | 2020-11-24T17:24:37 | 2020-08-27T18:09:04 | C++ | UTF-8 | Python | false | false | 1,853 | py | import inspect
import onnx
import os
import pytest
import torch
import torchvision
from numpy.testing import assert_allclose
from onnxruntime import set_seed
from onnxruntime.capi.ort_trainer import IODescription as Legacy_IODescription,\
ModelDescription as Legacy_ModelDescri... | [
"noreply@github.com"
] | jupvfranco.noreply@github.com |
a5d51b267590375dc7684a31d5cc2d46d226d447 | 42b2c7f740ec13c5a70b84886599f77a50972245 | /signup/account/views.py | 5e306800197719599e0ffdfe1c0434e5ffbd100d | [] | no_license | yeching/Django | c7419204423dbcdbb204ffe619e737c9485cc0b4 | 85ee235dfcf702978c0a9f6630e44e74022b4381 | refs/heads/master | 2021-01-11T16:49:56.873273 | 2017-01-22T00:38:14 | 2017-01-22T00:38:14 | 79,680,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | #coding=utf-8
from django.shortcuts import render
from django import forms
from django.shortcuts import render_to_response
from django.http import HttpResponse,HttpResponseRedirect
from django.template import RequestContext
from account.models import User
#定义表单模型
class UserForm(forms.Form):
username = forms.CharFi... | [
"yq08051035@163.com"
] | yq08051035@163.com |
8fb95bcd56b00c429fc56afddec6f5b3a1b9d960 | 90afc972b2259054e7cc9b63ec19bf11c3153e48 | /problems/A/RemoveSmallest.py | ee87546f8b201d89ed96f2446ef91d24fa5d2852 | [
"MIT"
] | permissive | Ahsanhabib1080/CodeForces | 88ca768ceefa409b0c10cac500148bfaf19e3c7e | 707b374f03012ec68054841f791d48b33ae4ef1b | refs/heads/master | 2023-05-26T20:58:23.180369 | 2021-06-19T02:40:15 | 2021-06-19T02:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | __author__ = 'Devesh Bajpai'
'''
https://codeforces.com/problemset/problem/1399/A
Solution: Pretty straightforward question. Sort the array and check if any pair of adjacent elements differ
by more than 1. If so return NO. If all the elements check out, return YES.
'''
def solve(n, arr):
arr.sort()
for ... | [
"devesh.bajpai19@gmail.com"
] | devesh.bajpai19@gmail.com |
bf4bd154ed77855a57a4908d693902b0a9bff8f1 | 5c2a66d59adff9c06a870a548a6c3af23a79be77 | /schrodinger/ex1/github/display_nnout.py | 282b931976e7c2f5a8b356cb8e9d8286bc40a183 | [] | no_license | OscarGB/TFGMat | f63690f456f1a107101248278430ff71ee882b98 | cc95948cd8d371c5adcb19f8540965b299d3591c | refs/heads/master | 2022-07-26T15:17:25.439335 | 2020-05-16T18:01:19 | 2020-05-16T18:01:19 | 214,371,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | display_nnout.py
# Makes plots of an individual potential (scaled to unit max), the gradient descent (“correct”) ground state,
# and the neural network predicted ground state
# should be added to notebook containing schroedinger_nn.py
import matplotlib.pyplot as mp
potenid = 5397
mp.plot(sess.run(L3,feed_dict={X: [tra... | [
"oscar.gomez.borz@gmail.com"
] | oscar.gomez.borz@gmail.com |
8a90400c1676da47db9e358fba77580deaaa1f06 | a59cd0e6e9e75543cd24630e37a0f4a006c91093 | /trackit/issues/migrations/0005_auto_20150318_0922.py | ab1fe191e45ba69b5d608c618562f099dca58df2 | [
"MIT"
] | permissive | noracami/track-it | 974acf8863004525911bf3193f2b8a8ee3a1485c | 7b787575573f3e807d1d7b863c3961474464c6d6 | refs/heads/master | 2016-09-06T21:33:15.813177 | 2015-04-04T15:43:21 | 2015-04-04T15:43:21 | 32,306,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('issues', '0004_comment_ticket'),
]
operations = [
migrations.AddField(
model_name='ticket',
name='op... | [
"im771216@gmail.com"
] | im771216@gmail.com |
e08e22402a1801b44e630f11eb7904ed750e58bb | d45b7f297523152753808e464972bff02b5725be | /myPets.py | fad37cbff27d1ec3ad27cea82d93a31027406f64 | [] | no_license | arjunlol/AutoBoringPython | a65c246f6777d48e2b00df48c4008266d01b53f8 | e38753a00d33a049080cfeededafc6d840f6c0af | refs/heads/master | 2021-01-24T08:17:38.303289 | 2016-10-04T01:13:01 | 2016-10-04T01:13:01 | 69,140,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | myPets = ['Zophie','Pooka','Fat-tail']
print('enter a pet name:')
name = input()
if name not in myPets:
print('I do not have a pet named ' + name)
else:
print(name + ' is my pet.')
| [
"lallarjun@gmail.com"
] | lallarjun@gmail.com |
cf0ee5f068b5dc3a25ff1a72eda3a87564871b12 | c59654aa7bbb49743db247afb227f73e6b9f4548 | /normalize1.py | cc654492370c6c27e7ecef11b0a3b4a27754c3fc | [] | no_license | Gorg0n/Agenda | 39edbb063e1cea60b1faae4c5e4754ec0a7c2d06 | 79b98934996e7eadb7ac540d0c0fb82bbd7b1911 | refs/heads/master | 2023-03-02T19:22:24.914155 | 2021-02-09T20:33:26 | 2021-02-09T20:33:26 | 278,675,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | import pandas as pd
import numpy as np
from copy import deepcopy
from sklearn.preprocessing import MinMaxScaler
import matplotlib.pyplot as plt
inFolder = 'outputFiles/'
outFolder = 'outputFiles/'
fileRANS = 'RANScylLeak1'
fin = inFolder+fileRANS
df = pd.read_hdf(fin)
dfxyz = deepcopy(df[['x','y','z']])
df.drop(column... | [
"49187086+Gorg0n@users.noreply.github.com"
] | 49187086+Gorg0n@users.noreply.github.com |
89198bf16a76e7c2866ad363143f04bbac4f0283 | c20cc3797472c2a0ec4d39a7aae73e25fab9b214 | /GERDA_SIS/init.py | c585dcb9f872d6b48c97fed857425b50ee2f0af2 | [] | no_license | yannmu/SIS | 655cb153aabb01c249a39edcb15e7fa1157f977d | e443781c99e2bf1a62dca90f57fd877b87e9965b | refs/heads/master | 2021-05-24T07:03:56.282566 | 2020-07-31T09:03:43 | 2020-07-31T09:03:43 | 253,446,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,578 | py | #initialise command
#only works if units are in remote control mode
#initialise all, or only specific units
#initialisation of all units as default (init.py)
#initialisation of only a certain unit (1, 2, 3) if and only if the corresponding single unit number is specified (e.g. init.py 1)
#the expected time to finish... | [
"noreply@github.com"
] | yannmu.noreply@github.com |
a352923e8a24cde56d18fc07e4c6ba6e4b87ae56 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_request_body.py | cbb5370a0a0a803403eabeae578ba76fe2bdf447 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 14,275 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class GeneralTableRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attr... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
87bfe478a4fb5e2d94899f72a0ba2acfdf930ee3 | 30abd041112e172cff60cc72905166870c5a1833 | /migrations/versions/89a7d21b8cca_.py | d4b393e8861c7abb156fc8af8a5b168b3ce1a322 | [] | no_license | rkdansrn2005/flask | c35123a57c75a954a5c97fab94cb3451e1f387a4 | c7e919a11b0d6395808b95b9681ac5efdc090350 | refs/heads/master | 2023-01-24T13:10:21.536393 | 2020-12-04T05:33:07 | 2020-12-04T05:33:07 | 285,784,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | """empty message
Revision ID: 89a7d21b8cca
Revises: 1a786038ba41
Create Date: 2020-08-08 15:24:51.046673
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '89a7d21b8cca'
down_revision = '1a786038ba41'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"rkdansrn@gmaail.com"
] | rkdansrn@gmaail.com |
b4e3965049f4801fdec2a6b0307ef443d8c31f07 | 9c151eb7a6ca613f886ff2f631d4d3fb69635cc9 | /crispy/gui/items.py | 8c23700df8d4d12fb37b65b707048e6c6f2cd207 | [
"MIT"
] | permissive | hf6391964/crispy | 24d8067653f537d1e913bc2acccaea66c185b8cf | db49f91a5da77a5e02e91d2ae0cf96fb9b0ef3e4 | refs/heads/master | 2022-12-27T08:43:45.282407 | 2020-10-15T08:55:43 | 2020-10-15T08:55:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,818 | py | # coding: utf-8
###################################################################
# Copyright (c) 2016-2020 European Synchrotron Radiation Facility #
# #
# Author: Marius Retegan #
# ... | [
"marius.s.retegan@gmail.com"
] | marius.s.retegan@gmail.com |
478c1cd433d69ed09b153816ad9f01d3bdc01166 | 84e0f422b38d0ee9bb3923fb8f6159d6f2438528 | /backend/scrapers/snohomish.py | e808417749855f5735fb2be82c80217616ad492a | [
"MIT"
] | permissive | mazore/wa-covid-vaccines | ae0a3795dc291f9e7866f4609a882551de077c02 | 4d24110562be600bd60339a7789b6a27c790e334 | refs/heads/master | 2023-03-06T03:54:45.346252 | 2021-02-20T06:17:45 | 2021-02-20T06:17:45 | 337,855,615 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | from .helpers import try_every_second
from .sign_up_genius import sign_up_genius
from scrape_result import ScrapeResult
def snohomish(driver):
url = 'https://snohomish-county-coronavirus-response-snoco-gis.hub.arcgis.com/pages/covid-19-vaccine'
driver.get(url)
def get_urls():
url1 = driver.find_... | [
"evanmazor@gmail.com"
] | evanmazor@gmail.com |
d4834f24e9c939cecfa24dc783c3e06733678aeb | 2ce1642bcfafb2349b0a04062ed3ce86d5285566 | /monai/networks/blocks/fcn.py | 4e485f54732b371ad909b34334c2c0383f485edd | [
"Apache-2.0"
] | permissive | KungWanyi/MONAI | 89aa620d32fb6105f5afcaf869dfe25cf442a33d | 52e254ff3a87ccdd4c5d14c3a01b9d9fe5f9c855 | refs/heads/master | 2022-12-06T14:36:12.540456 | 2020-08-23T21:19:42 | 2020-08-23T21:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,124 | py | # Copyright 2020 MONAI Consortium
# 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 writing, s... | [
"noreply@github.com"
] | KungWanyi.noreply@github.com |
0cc769848860a855bec5c2ca9964aa47989c498d | f428f7c901ea7cd256b2900579ff6e91272a7021 | /config.py | 9ee4a26b9ba6f0bd8e4d927ff7f4325a86ea3e97 | [] | no_license | wvanbreukelen/nfc-pn532 | a5d0bf2c6101e681453080c80c28de909b7ea50a | 7386950d3f46491fd24addd88f4f9cbe99cfa2f3 | refs/heads/master | 2021-03-27T13:00:47.981450 | 2017-02-03T11:20:30 | 2017-02-03T11:20:30 | 77,852,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py |
# PN532 GPIO aansluitconfiguratie
CS = 18
MOSI = 23
MISO = 24
SCLK = 25
| [
"wiebe@vanbreukelen.me"
] | wiebe@vanbreukelen.me |
196e76eb7e399789a7471bed8b621a5195ec9bc2 | 16243d6f64201848d204fd3a767cbe805d88bdca | /win_notification.py | 9a730940c5d8cb684773da3ea6ebc017f6a64965 | [] | no_license | vinayakz/python_ex | b4d990c8d2d6bef3189989b8cda2e8efd3e347a5 | 2ced10a76afc9adcc9770fa0ae3373984a03a8aa | refs/heads/master | 2022-10-07T14:31:05.293078 | 2020-06-08T07:10:41 | 2020-06-08T07:10:41 | 267,270,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from win10toast import ToastNotifier
toaster = ToastNotifier()
toaster.show_toast("Notification!", "Alert! Hi VinayakZ Your System is Hacked...", threaded=True, icon_path=None, duration=10)#3seconds
import time
while toaster.notification_active():
time.sleep(1) | [
"noreply@github.com"
] | vinayakz.noreply@github.com |
898ab7721ccb11274093b021fc5b68ce7830ff15 | f18e38804d0dbd3e31366cad49f3b1f091cc78b8 | /mail/migrations/0001_initial.py | c9d3b908669dfa8add87aaa81ddeceaac14b625a | [] | no_license | waffledood/project3-mail | 9d4f1822acb8c343760b34fd7cbf57a39faafb5f | 41c44262a23ef702ac84b8d62a947070c9539225 | refs/heads/main | 2023-02-01T22:04:55.528590 | 2020-12-12T01:09:31 | 2020-12-12T01:09:31 | 308,658,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,881 | py | # Generated by Django 3.1 on 2020-12-09 01:57
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"itshaikalhere@hotmail.sg"
] | itshaikalhere@hotmail.sg |
a3efc2a6f910380e434f3cf1b9d41fbf65912c7b | 8f60757e6f9cd9259d7105abbf68c7bb499d3938 | /forms.py | 7a53fecfbb98814bb0e9a5d30bb7bd076d8911b1 | [] | no_license | jamesconfy/Login-Authentication | e9dc110c39597eb8165ae0ff56c7e6dc64de6161 | f248b99911521df4ef2d146daf8297dd04ee93a9 | refs/heads/main | 2023-02-04T21:27:47.123197 | 2020-12-27T08:47:00 | 2020-12-27T08:47:00 | 314,788,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from db import *
class RegistratrionForm(FlaskForm):
username = StringField('Username', validators=[DataRequired(), Length(m... | [
"bobdence@gmail.com"
] | bobdence@gmail.com |
c7bba5bd5bb3cbb88643a359cb34af2a11d68f79 | 10411291b02bff6c6deece1849bb3377d8a33145 | /TinyImageNet/Transfer/network/wresnet.py | 13e800129a22a3e3a6a2e436fd6e8d6222ab4a52 | [] | no_license | PoE-code/Pool-of-Experts-code | cd28749b75445b9f23dbc9a85e4a416278120b22 | c979ff4c336a8593a31d63f3b856558c331657f0 | refs/heads/master | 2023-04-23T06:21:54.754888 | 2021-04-28T04:30:37 | 2021-04-28T04:30:37 | 339,690,464 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,616 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
def __init__(self, i, in_planes, out_planes, stride, dropRate=0.0):
super(BasicBlock, self).__init__()
self.bn1 = nn.BatchNorm2d(in_planes)
self.relu1 = nn.ReLU(inplace=True)
... | [
"qlsgkrrla@naver.com"
] | qlsgkrrla@naver.com |
ba6057b904c4d35f944213ce88ba21d69078d0e0 | ff8f622ada10cf1faa9d574323ca622c3cf60eed | /setup.py | 5e6cd041208f8f03e31b73e4f4ae347b9edd5527 | [] | no_license | openknot/broker | a43c7348601d67cea644732c7741464bbc1f84b8 | 6c981f1e054b573cabe31be50b3bf48b8747b407 | refs/heads/master | 2021-03-12T20:14:22.264746 | 2015-07-29T13:39:10 | 2015-07-29T13:39:10 | 39,689,953 | 0 | 0 | null | 2015-07-28T21:30:55 | 2015-07-25T14:53:30 | Python | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
from broker.version import version
def parse_requirements(filename):
with open(filename, "r") as f:
for line in f:
if line and line[:2] not in ("#", "-e"):
yield line.strip()
setup(
name="broker",
ve... | [
"prologic@shortcircuit.net.au"
] | prologic@shortcircuit.net.au |
30560aefac3f85239aafbf3d358b0eec9b29a619 | 05bb0a05861a0800a7a34ff139eb4e31f6605ed9 | /weather/weatherapp/forms.py | 40ec175b6fe0112a4429bc83e1d6f94a5d7a765d | [] | no_license | KonstantinShr/WeatherWidget | 910223124b7f0a60d61031e8ff13ec2c0fdb61dc | db28cfcee4e47baa16839e3c296dc67312732cfe | refs/heads/master | 2022-12-30T12:16:42.188637 | 2020-10-13T17:59:45 | 2020-10-13T17:59:45 | 303,837,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from .models import City
from django.forms import ModelForm, TextInput
class CityForm(ModelForm):
class Meta:
model = City
fields = ['name']
widgets = {'name' : TextInput(attrs = {
'class': "form-control",
'name' : 'city',
'id': 'city',
'placeholder': 'Введит... | [
"sharlaev2000@yandex.ru"
] | sharlaev2000@yandex.ru |
da09cbabc5dc2d36e79d5762510eba3f735394e0 | 78f78d2af464ec695746d9ae4b0f516ee261f8e0 | /castero/subscriptions.py | 34a4fe9811f1323c5c0671ba2e8b499e6dfe155e | [
"MIT"
] | permissive | hebecked/castero | 842e9b5c34086ca39523335d9cacf0547d9dbb3f | fc700a7bfc986205fc19d208d613beed9baf2fa6 | refs/heads/master | 2020-12-09T09:37:42.187025 | 2020-01-11T16:54:06 | 2020-01-11T16:54:06 | 233,264,238 | 0 | 0 | MIT | 2020-01-11T16:47:58 | 2020-01-11T16:47:57 | null | UTF-8 | Python | false | false | 5,173 | py | import xml.etree.ElementTree as ElementTree
from typing import List
from castero.feed import Feed
class SubscriptionsError(Exception):
"""An ambiguous error while handling the document.
"""
class SubscriptionsLoadError(SubscriptionsError):
"""A document could not be found at the provided file, or an IO... | [
"jake@faltro.com"
] | jake@faltro.com |
0a0c6a5ea3bb0a65af3e4d4fe8168c525aa0fd1e | 4be544f5cd3ac39f60cc3ce3c0a4fa4a5c1fba19 | /47_movingwithbreaking.py | 4a847fba0973046cfb2d5fc1949585386f6e286e | [] | no_license | cjdool/pswtest | 3ee8f16b4497447ff00784dbefc6ac3d22fc5bb0 | 00b5c28842c7cb1057ee78781718c13744f4d52f | refs/heads/master | 2023-07-26T08:43:13.686836 | 2021-09-08T16:35:54 | 2021-09-08T16:35:54 | 338,948,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | #추가 정보를 다른 데이터로 둘지 array에 축을 1개 더 추가할지 잘 판단할 것
import sys
from collections import deque
N, M = map(int, sys.stdin.readline().split())
maze = []
visited = []
dx = [0, 0, 1, -1]
dy = [1, -1, 0 ,0]
for _ in range(N):
maze.append(list(map(int, list(sys.stdin.readline().strip()))))
visited.append([[0]*2 for _ in r... | [
"cjdool@naver.com"
] | cjdool@naver.com |
21ecb82e580061791ed6e92086b6ba506a3d85d1 | feac152816f4c9d2ae2a9f61645de35c6ea35300 | /oc_lettings_site/tests.py | 037486d1f7b6dcefe974bea3e2223d55c613c6b2 | [] | no_license | LevequeBenjamin/LevequeBenjamin_P13_09-09-2021 | 6f2afed2ee8d9895571021f5cb4d2d0bf6981b4b | b09ec3d656fb65f51a7c250e1f623e30313357fc | refs/heads/master | 2023-07-30T11:27:52.323891 | 2021-09-17T11:02:08 | 2021-09-17T11:02:08 | 404,604,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from django.urls import reverse
def test_index_view(client):
url = reverse('index')
response = client.get(url)
assert b'Holiday Homes' in response.content
assert response.status_code == 200
| [
"bosso27@live.fr"
] | bosso27@live.fr |
d814534fbaf444785b02cc43eea18d5d1b77d09d | 81f6f2ced384b98d6ab9acbfab377769a3f8d3d5 | /MaxValue.py | 3a11c460b48ff261afa7b784dfb3a872b02fccd1 | [] | no_license | lukejuusola/AoCMM2016-Traffic | d6ac286598d697cffcc13fbf74d551588e0fc681 | ed69aa93af9459f7152257e5b9dea1b16555ceaa | refs/heads/master | 2021-03-27T15:54:45.682915 | 2016-10-18T22:45:07 | 2016-10-18T22:45:07 | 70,879,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import numpy as np
import math
def MaxValue(f, X, Y):
Xl, Yl = np.meshgrid(X, Y)
vf = np.vectorize(f)
Z = vf(Xl, Yl)
index = np.argmax(Z)
x_in = math.floor(index/50)
y_in = index%50
return (X[x_in], Y[y_in], Z[x_in][y_in])
if __name__ == '__main__':
x_mean = .84
y_mean = .12
f = lambda x,y: 1 - math.sqrt((... | [
"luke.juusola@gmail.com"
] | luke.juusola@gmail.com |
61dc070e5a86e2b73d04f40ebd6bed134ea96081 | 3aa32c3dde014f7233ce8153b270ad2d1de105bd | /networking/asyncore/server.py | 1603062d78bf0299aad22559cf2fff292ec5646c | [] | no_license | mwhooker/a-posteriori | adc9ac1c187a5dad78652fa316fc635ac071befc | daf0a252babb20f3999ba0a8054dfe671bf7c37b | refs/heads/master | 2021-01-01T20:10:34.022064 | 2019-05-21T08:00:07 | 2019-05-21T08:00:07 | 2,758,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | import asyncore
import asynchat
import json
import socket
class Clients(object):
def __init__(self):
self.clients = {}
def add_client(self, username, client):
self.clients[username] = client
class ChatHandler(asynchat.async_chat):
def __init__(self, socket, server):
asynchat.as... | [
"mwhooker@gmail.com"
] | mwhooker@gmail.com |
c04c1019206d17b9657ec39ea62fd188a10d5db3 | 3bb5b47919a0ed0b5fd03da930ec386e8d267f7a | /app/core/migrations/0001_initial.py | 3749106b063df94107c77f3d6fd31150e5aa846e | [
"MIT"
] | permissive | eliezerben/recipe-app-api | 83ff8eca5ead127d9bf87663e9efd0737613a4bb | 6d842dd66d861917d95181bbbf5a3a5b9827ce24 | refs/heads/master | 2020-07-02T07:16:20.241424 | 2019-09-14T08:04:42 | 2019-09-14T08:04:42 | 201,454,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | # Generated by Django 2.2.4 on 2019-08-27 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
name='User',
f... | [
"eliezerben96@gmail.com"
] | eliezerben96@gmail.com |
4bfbae8cb1a8068c105251064ab6600c5fdb9928 | 84fa8eed5002ed65d2fcc6c1e10777bca4cc8d7f | /NetBeansPython/NetCrunch/src/FE_ConstantlyConnected.py | a048493c94f11bfd986e535e63be455129f8071b | [] | no_license | epasseto/pyprog | f76fe6e2484bd1aef0cc35c817e552098b50b875 | d570737b34d7d4502535798795a994a665855b6e | refs/heads/master | 2020-04-23T03:59:05.187402 | 2019-02-15T16:22:24 | 2019-02-15T16:22:24 | 170,894,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | #! /usr/bin/python
# To change this template, choose Tools | Templates
# and open the template in the editor.
__author__="epasseto"
__date__ ="$16/10/2012 15:10:27$"
#
# Design and implement an algorithm that can preprocess a
# graph and then answer the question "is x connected to y in the
# graph" for any x and y i... | [
"epasseto@gmail.com"
] | epasseto@gmail.com |
c3c2aa72cb36ac951353c2003f75bd5edc2a4a7b | c191b4c36a9ae3c08ff6805909877047e18b15b4 | /next_happy_number.py | c0dedf9fbd74556d90cfb078b2514e8e94986010 | [] | no_license | jguerra7/geeksforgeeks-1 | 1c52f291e054d0161ea76781b7cebfbbee3928e1 | 245d85e27af9509d3111471f39e73660f305bd93 | refs/heads/master | 2023-03-19T20:07:24.413824 | 2019-11-13T11:53:44 | 2019-11-13T11:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | """
Next Happy Number
Problem Link: https://practice.geeksforgeeks.org/problems/next-happy-number/0
Author: Shyam Kumar
Date: 12-09-2019
"""
def digit_square_sum(n):
sum = 0
while n > 0:
rem = n % 10
sum += rem*rem
n = n // 10
return sum
def next_happy_number(n):
"""Max 100 times the value of sum i... | [
"svshyam111@gmail.com"
] | svshyam111@gmail.com |
5aced8e5e922dc001abe5acb56e451da0b9de87a | 14e22dfbd49f610e89d72f990dd49ea54332826d | /bin/pcreate | d50c4bddba7544a005a6edf8b1c24b4987aa7670 | [] | no_license | pyj4104/FOTransBaseBE | 7933aa747fe79372168956439d83f60aedc67a3d | a4194928a83881bfd31b06618d49a00f9af20b9a | refs/heads/master | 2021-01-21T06:49:23.231775 | 2015-11-10T04:42:39 | 2015-11-10T04:42:39 | 44,083,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | #!/Users/yeounjunpark/Desktop/CurrentWork/FOTrans/FOTransBaseBE/bin/python3.4
# EASY-INSTALL-ENTRY-SCRIPT: 'pyramid==1.6a2','console_scripts','pcreate'
__requires__ = 'pyramid==1.6a2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pyramid==1.6a2... | [
"pyj4104@hotmail.com"
] | pyj4104@hotmail.com | |
89d4093011b308c9daa195ae82ef70017af8485a | 2d280c8225a14f97b2bf26b69fcbc7985f537662 | /configUI.py | 4c920661e3b0f5a269b0aa21c77a5d56ae15e0ef | [] | no_license | bgwtix/myCashier | 3f18dda77b32eeb0a5bd413e1d396f1625ce23cd | c6cb81bc70565702b50bcee2bc4fc0311f273137 | refs/heads/master | 2023-01-19T01:09:01.915982 | 2020-11-22T13:48:33 | 2020-11-22T13:54:02 | 308,891,853 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class configUIInit(QTabWidget):
"""
进货界面
"""
# 构造函数
def __init__(self):
super().__init__()
self.configTab = QWidget()
self.customConfigBox = QGroup... | [
"969367669@qq.com"
] | 969367669@qq.com |
6fc087d7f6e6afff6a8f0b41db7088f0c249a146 | 1e11b91d67cc28763e6a913d6ae3f73c9f8167d0 | /filav/routing.py | ee5a3004514b48e77ca05e5060986884155e5da1 | [] | no_license | sebasgoldberg/filav | 62f00aa98213823d142ab3c8893cb78bb4938a21 | c7a2ae60051e4074b24f5f65a7a02935f84fcb09 | refs/heads/master | 2021-09-07T15:08:09.801999 | 2018-02-24T17:04:29 | 2018-02-24T17:04:29 | 115,515,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from channels.routing import route, include, route_class
from fila.consumers import *
posto_routing = [
route_class(PostoConsumer, path=r"^/"),
]
fila_routing = [
route_class(FilaConsumer, path=r"^/"),
]
scanner_routing = [
route_class(ScannerConsumer, path=r"^/"),
]
channel_routing = [
include(post... | [
"sebas.goldberg@gmail.com"
] | sebas.goldberg@gmail.com |
c976231583a859049e630eb8884e38d9f1fe2e87 | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/sys/blinky/example/lake_example/lake/fish_/fish__maapi_list_gen.py | 9f6681918fff221d1a074cca1206d0e8ba3a53c3 | [] | no_license | afeset/miner2-tools | 75cc8cdee06222e0d81e39a34f621399e1ceadee | 81bcc74fe7c0ca036ec483f634d7be0bab19a6d0 | refs/heads/master | 2016-09-05T12:50:58.228698 | 2013-08-27T21:09:56 | 2013-08-27T21:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,371 | py |
# Copyright Qwilt, 2012
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: naamas
from a.infra.misc.enum_with_value import EnumWithValue
from a.infra.basic.return_codes import ReturnCodes
from a.infra.misc.init_guard import InitGua... | [
"afeset@gmail.com"
] | afeset@gmail.com |
af46e0d99344ae9ea07801381c2eadd48d4e9295 | f70da0d011ad2d96ffd6a693e6cd36f1e1df56cb | /Proyecto2/Instruction/Loops/Break.py | cd345f76842b765cdeaa1eac3dbd634554b1bd4c | [] | no_license | diemorales96/OLC_Proyecto2_201503958 | aeaa2ba013f9ed643b324537cc6493710d407226 | 7779c619e635b7dc7cc2e47130a1c654ac84889a | refs/heads/main | 2023-09-02T05:11:57.732595 | 2021-11-13T04:54:04 | 2021-11-13T04:54:04 | 427,418,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from Abstract.Instruction import *
from Abstract.Return import *
from Symbol.Generator import *
class Break(Instruction):
def __init__(self, line, column):
Instruction.__init__(self, line, column)
def compile(self, environment):
if environment.breakLbl == '':
print("Break fuer... | [
"diemorab@gmail.com"
] | diemorab@gmail.com |
16604f725a712c0a76a445ec2ed1bbfafa4d791d | 791af5ecca96d9dacc70443ff6dc90126072cc30 | /screener/screener/urls.py | 8fad2c635b85e5c038abcb120a67d8c188f6fa91 | [] | no_license | morningstar899/resume-screening | 2d9f4b85d3f4ae6f44b46b418ab1a07b62c412b0 | 085825dd49fdf2cae1ac5d87cb028e759248f73c | refs/heads/master | 2020-08-02T00:00:02.541234 | 2019-07-21T04:49:26 | 2019-07-21T04:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """screener URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-base... | [
"yodingrg93@gmail.com"
] | yodingrg93@gmail.com |
f394c5cbbab0818ed304742ddc70b2448f35c1dc | 3b99fec4688b1d253a395a5949f2bf77ff8c5bec | /collatz.py | 1df2e990fd0a1631e999705d4248ac3fba43a569 | [] | no_license | eddieatkinson/Python101 | 032327fb86287acd18474bcbefeb40e62d7f6884 | 8a465dd4a2699abaee88af5b2ee7a81125b0597e | refs/heads/master | 2021-01-23T11:59:22.263700 | 2019-06-24T14:57:51 | 2019-06-24T14:57:51 | 102,638,723 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | count = 0
num = 0
highest_count = 0
highest_count_num = 0
def collatz(num, count):
count += 1
if num == 1:
return count
if num % 2 == 0:
return collatz(num / 2, count)
else:
return collatz((3 * num) + 1, count)
while num < 1000000:
num += 1
this_count = collatz(num, count)
if this_count > hi... | [
"eddiebatkinson@gmail.com"
] | eddiebatkinson@gmail.com |
e073a962aa67bd5e004148fe34f2d6843e4c91a5 | 7d9848f49b01df85d2d4ab6f594c13f1ef53db4e | /terminal_progress.py | 62045669e4dc407e3d8ba7e236086b7131d42b0a | [] | no_license | baudrly/instaGRAAL | 85d1609ff46a46465b3d48448a9f88130c0942d8 | a1adb2cfdfbe6cef78f163fd11338ba1e2e0e19e | refs/heads/master | 2020-03-27T18:13:14.733988 | 2018-08-30T13:18:36 | 2018-08-30T13:18:36 | 131,966,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | #!/usr/bin/env python3
"""Terminal controller module
Example of usage:
print BG_BLUE + 'Text on blue background' + NORMAL
print BLUE + UNDERLINE + 'Blue underlined text' + NORMAL
print BLUE + BG_YELLOW + BOLD + 'text' + NORMAL
"""
import sys
# The current module
MODULE = sys.modules[__name__]
COLORS = "... | [
"noreply@github.com"
] | baudrly.noreply@github.com |
dccb76a36c0bd82d032375ed0b376ea2b5a6967e | f736eca3773cb232903d1e94506ef40ae5b160d7 | /voting/admin.py | a7cb09ba4c25543186ef750d9a54c0b17fb23678 | [] | no_license | gkomarov/best-photo | a16c16671f38bf7f1e38631ce22664f8a892116f | ec0f0729a05014c6d0e10ecbe79fd0926fb68adc | refs/heads/master | 2022-09-21T14:10:24.943479 | 2020-05-14T09:29:52 | 2020-05-14T09:29:52 | 263,871,399 | 0 | 0 | null | 2020-06-06T01:53:34 | 2020-05-14T09:28:15 | Python | UTF-8 | Python | false | false | 155 | py | from django.contrib import admin
from .models import Voting
class VotingPerson(admin.ModelAdmin):
list_display = 'name'
admin.site.register(Voting) | [
"gr.komarov@ya.ru"
] | gr.komarov@ya.ru |
964dde6dfe12075376a53bad62460082327840aa | 5333aeb532c2cfb7015397df2a77fcd7d5652fef | /MODEL.py | 57a8523cb9f9c1f02161ab3c58e61d21eef170ab | [] | no_license | bregord/eritas | 5bc03db32f87819b2fe3851806578f9ba26e89b2 | b66c753b1eaaa5ceeca954d8c7a904e5b3d3df46 | refs/heads/master | 2020-06-11T09:23:55.560680 | 2017-04-06T05:15:27 | 2017-04-06T05:15:27 | 75,700,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | import numpy as np
from sklearn import svm
from sklearn.metrics import accuracy_score
from sklearn import linear_model, datasets
from sklearn.metrics import precision_recall_fscore_support
tot = ALL.npy
print(np.shape(tot))
tot = tot.astype(np.float)
print(np.shape(tot))
X = tot[:,1:][0:1500]
Y = tot[:,0][0:1500]
X... | [
"sirbrendang@gmail.com"
] | sirbrendang@gmail.com |
c9048def34f381b159956536e21de0c8dbd303fd | df3ab6693c3af447df265f4ebe2a576eec6637da | /Hello coding/selection_sort.py | 510824956a099e0817d4a9c182b2014c3bfb0912 | [
"MIT"
] | permissive | wooooooogi/Algorithm-study | 9aa509d87acd0ffe7fe1ebd19e7b28361e14d25e | bf76bb721785a52b6abf158077b554b0626ee1f7 | refs/heads/master | 2020-06-26T05:01:20.715593 | 2019-07-30T08:23:09 | 2019-07-30T08:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # Coded by Sungwook Kim
# Date: 2019-07-30
# Python version: 3.6.5
# IDE: Spyder 3
# Sort, information = [Name, Date, E-mail]
# Sample code is 2001 year's 메리츠화재 stock information. (Downloaded in KRX)
# Sort by price (When is the highest price in 2001)
import pandas as pd
import numpy as np
import os
#... | [
"wooooooogi@gmail.com"
] | wooooooogi@gmail.com |
d035dfa6abc8726fdbae95fbf2b8705c7d1eb81e | 06b0f031ad483783dde68206392a747612964093 | /PistolShrimpStoreDB/venv/Scripts/pip3.6-script.py | 12defafe7e9d77d5438a916b7d05c80b2a85935f | [] | no_license | Bookworm100/PistolShrimpDB | a41e6389f32535b187ac1bcc13803d6a16f828ad | edc99aa7a5c853a9c38e3740ad5bf89b72c160ef | refs/heads/master | 2020-05-16T02:23:21.161896 | 2019-06-21T23:37:34 | 2019-06-21T23:37:34 | 182,627,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!"C:\Users\vibha\Documents\Spring 2018-2019\Classes\CS 123\AirQualityStateDB\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r... | [
"vvijayak@caltech.edu"
] | vvijayak@caltech.edu |
4a855a4e32f8487e6f27627af54594814e4a74b2 | e404d16cb454389b457c8b1c8bdc4a7c77690776 | /dashboard/views.py | beaf11dd2801a409cd8f2e312cb03b544d4d4d99 | [] | no_license | openarun/flower_detection | ed2ef28bfea61a842cb0c67f6ac42c5a810d81b5 | ae1a7848e6b0dd683f99668e693773f1556edc00 | refs/heads/master | 2022-01-19T00:11:40.368759 | 2019-06-25T00:00:25 | 2019-06-25T00:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.files.storage import FileSystemStorage
# Create your views here.
from .classifier import label
import operator
def index(request):
return render(request, 'index.html')
def detect(request):
if request.method == 'PO... | [
"expertaruncorp@gmail.com"
] | expertaruncorp@gmail.com |
04835fcb58cf9438f14178cf8c882964d6bcf6af | 2261f2020adf036054562fa1fcfd3920b8675aeb | /working_db.py | 53241d80029ccd77742a80b5617a25ab7d106d34 | [] | no_license | ramheinzelmann/MySQL-database-with-python | b0cd48bd6033c251b7e9bc930a0dc32a1ee917ac | 532865a96997b958fea163def9f8c60c4d9d697b | refs/heads/master | 2022-04-24T03:40:02.875005 | 2020-04-24T17:23:31 | 2020-04-24T17:23:31 | 258,353,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,486 | py | #!/usr/bin/python
# coding: utf8
"""
Date: 19/06/2018
Autor: Renato Machado
Abjective: Executes the SQL commands.
Alteration:
"""
import pymysql
from connect import connection_db
class Execute_Sql(object):
@staticmethod
def create_table(database, table, query_sql):
cursor = connection_db(database)
... | [
"renato.machado@bb.com.br"
] | renato.machado@bb.com.br |
105db73230d910d55c510986030ef3137aa8fadc | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /W/WalkingRobotSimulation.py | 212531c27d7ba7fb215264e9577680ddadbc597d | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | '''
-Easy-
*Greedy*
A robot on an infinite grid starts at point (0, 0) and faces north. The
robot can receive one of three possible types of commands:
-2: turn left 90 degrees,
-1: turn right 90 degrees, or
1 <= x <= 9: move forward x units
Some of the grid squares are obstacles. The ith obstacle is at grid
point ... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
3760acc1632b5df7a0937f222d45d8351b59a256 | 0e4dc82a94563dacb0c25d0d43fbcbe3def21f72 | /223-Rectangle-Area/solution01.py | 2095481fc76cfe49764531b43a0ff276daaeb5c8 | [
"CC-BY-3.0",
"MIT"
] | permissive | Eroica-cpp/LeetCode | 3ce3b05b3098e8097c1090e2116b813efaadd2a3 | 07276bd11558f3d0e32bec768b09e886de145f9e | refs/heads/master | 2021-06-20T05:41:30.506250 | 2017-03-16T05:17:39 | 2017-03-16T05:17:39 | 35,126,816 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | #!/usr/bin/python
# ==============================================================================
# Author: Tao Li (taoli@ucsd.edu)
# Date: Jun 11, 2015
# Question: 223-Rectangle-Area
# Link: https://leetcode.com/problems/rectangle-area/
# =====================================================================... | [
"eroicacmcs@gmail.com"
] | eroicacmcs@gmail.com |
ed3a0d5ac7ba95576efb62c2ee0f6eaa702fa3eb | f295a11c688867ea83cb7b0d22f2e80d1d0652ed | /generat.py | aae7abe844da1edf1a2ed9d953e2c660fc9efb0b | [] | no_license | yangzigy/pseudo-color-table-gen | cd9be2bed00702fdea6e6c2522d1f26710345345 | 02e694cc4343c2a0402531274e00dabf8a8c6014 | refs/heads/master | 2021-01-20T20:08:41.678228 | 2016-06-14T07:39:16 | 2016-06-14T07:39:16 | 61,102,346 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import pylab
import inspect
import numpy
import sys
f=open("color.cpp","w")
f.write("""
#include "color.h"
map<string,vector<vector<Vec3f> > > createNamedMaps(void)
{
map<string,vector<vector<Vec3f> > > m;
""")
discrete_n = 10
for name in pylab.cm.cmap_d:
if not type(pylab.... | [
"yangzigy@sina.com"
] | yangzigy@sina.com |
049d6b0aca9052f2c1ff1783f61f804f37551bc3 | 1f308be82b88260fcf447bae4bbccf26e06e5c48 | /AlgoAndDS_Python/algo/hackerrank/big_sorting.py | 1b10b850d05cb2fe10a11630e88794a90f5fdfcc | [] | no_license | sachinshikhare/AlgorithmAndDataStructure | f6eb849ab93f9f2d88b0fd355674f3be2cf20210 | b84e06bd4ef03dd746ad3e5de777af04a1777c87 | refs/heads/master | 2020-03-06T00:49:37.050750 | 2017-06-06T14:20:23 | 2017-06-06T14:20:23 | 80,536,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | """
https://www.hackerrank.com/challenges/big-sorting
"""
count = int(input())
bucket = {}
for _ in range(count):
number = input().strip()
length = len(number)
if length not in bucket:
bucket[length] = []
bucket[length].append(number)
for key in sorted(bucket):
for val in sorted(bucket[... | [
"shikhare.sachin@gmail.com"
] | shikhare.sachin@gmail.com |
f84d978c5b2c39a8c74e857b04ef070de65fe5aa | 36f6ff62399bf730156b70344a4fd739cb96976d | /042-04-NumPy-Sortin Array.py | 30bd6bc4499f0ac69b2255123d65e85681124246 | [] | no_license | MyHackInfo/Python-3-on-geeksforgeeks | 9de46b041c822082a6efe7ca5025069571d20bd1 | 3d3f3a24731ba75e6491652d855f2d983bd2fe13 | refs/heads/master | 2020-03-31T05:08:56.927912 | 2018-10-07T11:45:29 | 2018-10-07T11:45:29 | 151,935,168 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | '''
## Sorting array:
-There is a simple np.sort method for sorting NumPy arrays.
-Let’s explore it a bit.
'''
import numpy as np
a = np.array([[1, 4, 2],
[3, 4, 6],
[0, -1, 5]])
# sorted array
print ("Array elements in sorted order:\n",
np.sort(a, axis = Non... | [
"myhackinfo"
] | myhackinfo |
f050b3ca3315c9fc4f855038e59943fa7c274308 | 74002cc8fde7a9ac9d84e12e2fc813b79770ad38 | /scripts/whq_generator.py | 82cbf99dc5d8418af867257620a1e22749fa5b15 | [] | no_license | runtime-technologies/mcq-quiz-generator | 28965c145e1666dddf0166b51439afbbd7760c3c | b048b42f6c7539028d0e8ba4efd8c3bc128185c4 | refs/heads/master | 2023-02-08T21:26:34.360756 | 2020-12-25T15:01:21 | 2020-12-25T15:01:21 | 319,366,621 | 0 | 0 | null | 2020-12-20T15:31:52 | 2020-12-07T15:45:29 | Python | UTF-8 | Python | false | false | 4,962 | py | from textblob import TextBlob
import nltk
from textblob import Word
import sys
class WHQ_Generator:
def __init__(self, text):
self.text = text
def parse(self, text):
"""
Parse a paragraph. Devide it into sentences and try to generate quesstions from each sentences.
"""
... | [
"pllvsisodiya@gmail.com"
] | pllvsisodiya@gmail.com |
439862eddb5f3df10d1bcb50ab85b4f58108fee1 | 44829de8d0f8a88295d1c7227d0fad32201ad492 | /automata/__init__.py | 5e30749189deab6a230739471778ca91b2f242f4 | [] | no_license | hydraseq/automata | 1e27713bd643b34edc253f56d7228cd125a2d7c1 | e3d0e93f735638fa9a346f38eb891444a48c6e82 | refs/heads/master | 2020-09-07T02:09:20.599903 | 2019-11-10T00:33:53 | 2019-11-10T00:33:53 | 220,625,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | name = "hydraseq"
__version__ = '0.0.27'
from hydraseq.hydraseq import Node
from hydraseq.hydraseq import Hydraseq
from hydraseq.automata import DFAstate
| [
"efrain.olivares@gmail.com"
] | efrain.olivares@gmail.com |
617ae779826ed3c052a896b6398442ef68c1c1d1 | 5e929b91e11d5de1bf87c548e95b49ccb88dbb85 | /line-detection.py | 6db1715f87b57c4532d74324d2cad774e2849e5c | [] | no_license | kiranmanicka/object-detection | c8b3e297cd92c37eb0405ccfe7c7bd848cce4cc9 | 932f844cd5063be27c13c751206421edabec182e | refs/heads/master | 2023-07-28T15:34:59.853948 | 2021-08-26T19:30:58 | 2021-08-26T19:30:58 | 274,205,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import cv2
import numpy as np
img = cv2.imread('NlLrx.jpg')
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray,50,150,apertureSize = 3)
minLineLength = 10
maxLineGap = 1
lines = cv2.HoughLinesP(edges,1,np.pi/180,100, minLineLength,maxLineGap)
print(lines)
for line in lines:
x1,y1,x2,y2=line[0]
cv2.li... | [
"noreply@github.com"
] | kiranmanicka.noreply@github.com |
119cc346aca6f640b97296ba89abfd6d2b53a316 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/functions/__init__.py | cf43cc459bde27a212cfebd25ccb5d8b5cfc2675 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,503 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
69da4f5a911f83423caf6d2ba93e5f462c644040 | 3df96d29f6ea980cfa2627f26233166cbf5b6c2a | /Bin/PASPipeline.py | 604cf0c951aa2dd51a57f19a3b2dea107a11b2f7 | [] | no_license | 452990729/PAS-seq | 17710c80d35451f1c9eedea1b6e169d2dc9d9410 | ef252370e87bf51532dc39802afef0af38e5fd2a | refs/heads/master | 2020-05-31T05:40:02.476934 | 2019-06-04T03:12:59 | 2019-06-04T03:12:59 | 190,109,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,064 | py | #!/usr/bin/env python2
import sys
import re
import os
import argparse
import ConfigParser
BasePath = os.path.split(os.path.realpath(__file__))[0]
config = ConfigParser.ConfigParser()
config.read(BasePath+'/../Bin/config.ini')
#### SOFT
FASTP = config.get('SOFTWARE', 'fastp')
BOWTIE2 = config.get('SOFTWARE', 'bowtie... | [
"452990729@qq.com"
] | 452990729@qq.com |
86b8d07d7fb4dd65f02637729dd22d0128005269 | 7c0ac2ec69f6bcf0ff366af3be22e71dc7dbbf75 | /app.py | 64d5a994ebaae3687d9a8a3b4c9206bb1aff100a | [] | no_license | quaqua/flink_demo | 9553202c4994595248649ba26f59d8e9d6a34476 | 5c782c30c80e89506bc218406ccb330407a18451 | refs/heads/master | 2016-09-06T07:27:56.305614 | 2015-05-13T15:37:06 | 2015-05-13T15:37:06 | 35,556,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from flask import Flask, request, send_from_directory
from flask.ext.restful import reqparse, abort, Api, Resource, fields,\
marshal_with
from flask_restful_swagger import swagger
from results_api import NodeList
from results_api import NodeItem
app = Flask(__name__)
###################################
# This is... | [
"thorsten.zerha@tastenwerk.com"
] | thorsten.zerha@tastenwerk.com |
7ef30f75cc5116b9b1b0ba89fa54d9677458d590 | e1d07b0fa2ca0d13d485436ff0286797302617de | /update_vector_file.py | 3e1de4097c21240cde0a2efaf9a7d374d11e72de | [] | no_license | a-davi5/operating | 60d0902ae0787bc407ca527f7581473d49193ec6 | 4c87de4d0f6c331cf68e0b5aec116b75eca4d272 | refs/heads/master | 2020-03-24T04:42:31.880082 | 2018-08-23T15:33:39 | 2018-08-23T15:33:39 | 142,462,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | #!/usr/bin/python
#script to find the -ve clock references in init section of the supplied vector file for DAQclk and DAQdata
#Adam Davis, STFC, 27/04/2018
#imports required
import sys
import numpy as np
import pickle, pprint
import time
import h5py
# extract command line parmeters. Usually use for ADC calibration s... | [
"adam.davis@stfc.ac.uk"
] | adam.davis@stfc.ac.uk |
9c463f58016e2d0eda6c9b7ef0e7a941fd09fca7 | f555d47b7eb095b288f7253dc5a8c658ee9b6a4a | /restaurants/models.py | 5d066d57cf73df4fbe97801ef7e6a011c02051ff | [] | no_license | codeitloadit/letseat | a8f451cd34738ff3645cc2b4d6ccde896efc354a | 41daa80bb45ecaac770bda36e45484b9587a922b | refs/heads/master | 2016-09-06T00:13:36.331466 | 2015-05-15T05:52:57 | 2015-05-15T05:52:57 | 35,530,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from django.contrib.auth.models import User
from django.db import models
class Restaurant(models.Model):
created_by = models.ForeignKey(User, related_name='restaurant_created_by')
created_at = models.DateTimeField(auto_now_add=True)
modified_by = models.ForeignKey(User, related_name='restaurant_modified_b... | [
"brian@codeitload.it"
] | brian@codeitload.it |
6139c3223381b146251d65715200dbe1fd1c71b6 | ef18634f64fc520b7dd3e467c54cd9949b2af68f | /project 1/my_answers.py | 2592dfd9b32b7d7bb284e98191994155dec2eedb | [] | no_license | abhilashpandurangan/Udacity_DeepLearning | 532d026280400d324a42030f77c09ed9a4bd4b9e | f187c6ba0b37d8ca99e95f1131483acf3c31a8f8 | refs/heads/master | 2021-05-25T22:23:02.837204 | 2020-04-08T04:34:19 | 2020-04-08T04:34:19 | 253,945,327 | 0 | 0 | null | 2020-04-08T00:49:34 | 2020-04-08T00:34:47 | Jupyter Notebook | UTF-8 | Python | false | false | 6,477 | py | import numpy as np
class NeuralNetwork(object):
def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate):
# Set number of nodes in input, hidden and output layers.
self.input_nodes = input_nodes
self.hidden_nodes = hidden_nodes
self.output_nodes = output_nodes
... | [
"noreply@github.com"
] | abhilashpandurangan.noreply@github.com |
abe97c2100965cac08f1c905a9927addc1bcdc1e | 000dfbda8109a1f3d208a7f30f4f8a22e03709c9 | /oehealth_extension/oeha_calllog/models/oeha_medical_calllog.py | 53fc75ffe2ca72ecaaccd5b2ef5ad1d9f0b325a1 | [] | no_license | donvikky/clinic_upgrade_11 | a117578d99980e3becc387980c7e3c4e0cbb7370 | 8e522aae26a1efa2f9a0d64b6886ca1cd8ac1302 | refs/heads/master | 2020-05-09T10:02:47.745587 | 2019-04-12T16:01:23 | 2019-04-12T16:01:23 | 181,026,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # extension to oehealth
from odoo import api, fields, models, _
import time
import datetime
class CallLog(models.Model):
_name = 'oeha.medical.calllog'
_description = 'Call Logs'
name = fields.Many2one('oeh.medical.patient', string='Patient', required=True, help="Patient Name")
patient_id = fields.Ch... | [
"vokrobodo@gmail.com"
] | vokrobodo@gmail.com |
8e1c90c80d19452ac4816f63247d1c45d3e3c438 | 6c91c7e945979ca37e7091c7b3ad27e7bab26c9c | /clinic/clinic/apps/schedule/urls.py | 8060d6048c1938ddffb512a5df6cd0d77215a65a | [] | no_license | stpnk/clinic | 8c5c25b4a952bb1f0eb376e86e4a7477bff1bfbd | f4415fa792e80e62c03fdb8e89673c30c3b20bb5 | refs/heads/master | 2021-01-21T12:39:49.812527 | 2015-04-25T21:18:05 | 2015-04-25T21:18:05 | 34,586,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from django.conf.urls import include, url
urlpatterns = [
url(r'^$', 'clinic.apps.schedule.views.index', name="index"),
url(r'^appointment-success/',
'clinic.apps.schedule.views.appointment_success',
name="appointment_success"
),
url(r'^get-schedule/(?P<doctor>\d+)/(?P<date>\d... | [
"aastapp@gmail.com"
] | aastapp@gmail.com |
b49d90a995fb53ab925e1f49c4f9e5eaf968a864 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-kms/aliyunsdkkms/request/v20160120/PutSecretValueRequest.py | cc2f08d8f6b48376b9d2a1d2afc6a42b9ddf008e | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,296 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
cebaad06774ef9a218dad8d97d1dfaec18a8893f | 64bf7d3dac9795a7384c1d68005e7efbee17b4a2 | /jira_cloud_backup/jira_cloud_backup.py | d938e88480b6d6ea592ed7ba1cf1a5f682eb6a55 | [] | no_license | techact/bigboo_labs | fbefcb0448d9cf7653a72296d414424559a331f1 | 74f3e9709bbbc6fc4047238f28494da3f92eb287 | refs/heads/master | 2021-08-24T02:12:35.194785 | 2017-12-07T15:58:34 | 2017-12-07T15:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | import json
import time
import requests
from requests.auth import HTTPBasicAuth
def download_file(url, auth):
local_filename = url.split('/')[-1]
# NOTE the stream=True parameter
r = requests.get(url, stream=True, auth=auth)
with open(local_filename, 'wb') as f:
for chunk in r.iter_content(chu... | [
"ilagutin@tickeron.com"
] | ilagutin@tickeron.com |
b7ca2b428b6d592d3b500876f37f9ce45eada6c7 | 4dc5dc475e64d65119f02694ecc3a09a01a20296 | /getsessionsJson.py | 40c70300d2cf2db99f08c0af0a2a0df207a5c8f7 | [
"MIT"
] | permissive | selkieupsilon/euroismar-indicoscripts | 3ed16d9f53b3ab74e1d13f584ac109af57e04303 | 80c956b7a627d42f88542892f549c3f266f0e2b6 | refs/heads/master | 2020-06-10T20:10:27.079505 | 2019-06-28T16:08:45 | 2019-06-28T16:08:45 | 193,732,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,485 | py | # Script to obtain JSON of sessions for the typesetters to put into the program pages
import json
import hashlib
import hmac
import urllib
import time
import requests
from ConfigParser import SafeConfigParser as ConfigParser
from datetime import datetime as dt
import argparse
from collections import OrderedDict
d... | [
"wingying.chow@gmail.com"
] | wingying.chow@gmail.com |
23196db1784ea4fd529b170f1d61159ce0908cbc | 1c74dee0cf5efcdcebb52455cb8a11de210a02ab | /py2/38. Count and Say.py | c9a5156793e0a8dc94827fe70aaba1bf587393b1 | [] | no_license | vaankiller/leetcode | f8072abad23ee41bda2a80d1a536120f11ada50f | 88b434bd493e6cb2f70267b40a87c2d881d89cb0 | refs/heads/master | 2020-04-16T02:11:58.057867 | 2018-12-24T08:49:40 | 2018-12-24T08:49:40 | 61,943,789 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | class Solution(object):
def countAndSay(self, n):
"""
:type n: int
:rtype: str
"""
if n == 1:
return '1'
else:
seq = self.countAndSay(n-1)
split_seq = self.split_seq(seq)
return "".join([str(len(nums)) + str(nums[0]) for... | [
"534895367@qq.com"
] | 534895367@qq.com |
4179bb9a80b6b5ed972b902429f87239f74faa9e | cc5fb4cb60f3d218a24be6fde2f479dac5ead8fe | /Agents/ReplayMemories/ReplayMemory_old.py | 18932f6658553ef330f336ca06d87bdec1c26949 | [
"MIT"
] | permissive | DEATH-FROM-AI/DQN-Atari-Agents | b78fa10e2e583dfc9cb219083ff043a6801f8d20 | 9ddff988ef2516e4752c0296cc88b06bb0221400 | refs/heads/master | 2023-02-02T18:45:42.940350 | 2020-12-18T09:49:48 | 2020-12-18T09:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,648 | py | import random
import torch
import numpy as np
from collections import namedtuple, deque
class ReplayBuffer:
"""Fixed-size buffer to store experience tuples."""
def __init__(self, buffer_size, batch_size, device, seed, gamma, n_step=1):
"""Initialize a ReplayBuffer object.
Params
=====... | [
"sebastian.dittert@gmx.de"
] | sebastian.dittert@gmx.de |
c87ada364ca089321bc02f17edf55413aa5f681a | 689cbee697660adb9b1e27fd5d10b31f68decb71 | /tests/test_managers.py | ed06a638de09bb5c77612bb366b9de5c3044af59 | [
"Apache-2.0"
] | permissive | tomzhang/fiber | 3bdcf2e220e36eec5dda071e6964711791242341 | ac119b1671f689ab54d7bc0ae4efffa3ca0a2464 | refs/heads/master | 2021-05-17T13:19:06.764760 | 2020-06-30T20:19:07 | 2020-07-01T00:17:57 | 250,793,362 | 0 | 0 | Apache-2.0 | 2020-03-28T12:48:30 | 2020-03-28T12:48:29 | null | UTF-8 | Python | false | false | 2,910 | py | import fiber
import time
import pytest
import docker
from fiber.managers import AsyncManager
@pytest.fixture(scope="module")
def client():
return docker.from_env()
def f(ns, ls, di):
ns.x += 1
ns.y[0] += 1
ns_z = ns.z
ns_z[0] += 1
ns.z = ns_z
ls[0] += 1
ls[1][0] += 1 # unmanaged, n... | [
"jiale@uber.com"
] | jiale@uber.com |
9b3323db11bb20247a08ffd42118228eb5783dcd | 108155164cb1f49a082db1b20bab49148d275a27 | /sysmontask/log_plotter.py | 35b4c8ef36985c9f027d680861523506c1465023 | [
"BSD-3-Clause"
] | permissive | bostan39/SysMonTask | 13a317bd30dd213c14dcda431356a4cf20498930 | 77f2752ad367c6fcefd6436bfc1bdf53b9bd3886 | refs/heads/master | 2023-04-06T03:39:54.488563 | 2021-04-14T17:39:06 | 2021-04-14T17:39:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,918 | py |
from gi import require_version
require_version("Gtk","3.0")
from gi.repository import Gtk as g
def fun(filename):
try:
import matplotlib.pyplot as plt
except ImportError:
print("matplotlib not found")
not_found=g.Dialog(title="Can't Plot",parent=None,flags=g.DialogFlags.MODAL)
... | [
"neerajjangra4u@gmail.com"
] | neerajjangra4u@gmail.com |
335422803194b1cd8587eff445a6b3bec4fc5ad8 | 6fe824e9ec5bd5c7da28e8addf0badbda3d61411 | /webapp2/squares/migrations/0010_auto_20150729_0327.py | fe5bf8171bf37e694ed6a917a437928d1cb250da | [] | no_license | moment-x/web | dcdd9e7fad89522a1a51545718a6fccc5ea1503d | c4de993988bce91b36e0454fb2d2f1acd3dd890a | refs/heads/master | 2021-01-22T21:32:01.589267 | 2015-08-04T15:18:23 | 2015-08-04T15:18:23 | 40,176,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('squares', '0009_pendingdata'),
]
operations = [
migrations.RemoveField(
model_name='pendingdata',
na... | [
"token@email.com"
] | token@email.com |
efeacb891135eccd38993b58b003c19502602b1b | 2ebcb93ea31e8b76307b35b2939d3d5b83ec0978 | /scripts/fk_basic_cnn_new_keras.py | 2acb4750852b78d124861c0fcebda575dbd05194 | [] | no_license | TBarry95/dmml2_deep_learning | f26c0398072e16df41204d3c13860e0c11d1c9ee | 3b740cefac8707ebed0f890857c4e101008e7802 | refs/heads/master | 2022-12-05T05:39:31.137732 | 2020-08-16T19:16:12 | 2020-08-16T19:16:12 | 277,293,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,654 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 7 19:03:44 2020
@author: Frank
"""
##Repeat with the cleaned test/training dataset
import tensorflow as tf
import random as rn
import os
import tensorflow.keras as keras
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.optimizer... | [
"kellyfb@tcd.ie"
] | kellyfb@tcd.ie |
7c7980134d1f62ac8a84180e57067ec5a35f0202 | a3522805fca9dc43102d32911546c8db4a62431f | /실력향상예제11.py | e5c724d6f74cea993fad713f92b7742feb12c47c | [] | no_license | Jangwoojin863/python | 409eef00f68e8f6aebf7de38dcd110081ec3f95d | 869ebe6df04e00ab9e2eccdeb8d99cbf093d904a | refs/heads/main | 2023-05-05T18:33:15.659662 | 2021-05-23T10:42:15 | 2021-05-23T10:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # 실력 향상 예제 11
total = 0
for i in range(1, 11):
print("%2i의 4승 = %5i" %(i, pow(i, 4)))
total += pow(i, 4) #total += i**4
print("\n전체 합계 = %i" % total)
| [
"noreply@github.com"
] | Jangwoojin863.noreply@github.com |
08503e60417f6f571232309d89aa9b710ead9b9a | 8e22b0e565ba39e4efcfe0db61da161314d2069f | /utils/csvTopd.py | d0725edb739fbd1ad1a2d1486375eb488792753c | [] | no_license | prakashpy/it-s-all-about-python | 060c8314daf58f994cd61224158774086a388e34 | 7b0eb9b87eb97d387615d634dcf33152f026ef26 | refs/heads/master | 2020-03-25T22:35:06.362825 | 2018-12-27T22:42:45 | 2018-12-27T22:42:45 | 144,230,646 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | """
implementing code to filter csv file based on requested columns
"""
import pandas as pd
import os
def filter_csv(return_as="json"):
"""
Filter down our data to something displayable based on parameters from the main page.
:param return_as: json or numpy (default json)
:returns: the filtered da... | [
"ppatel@bensonhillbio.com"
] | ppatel@bensonhillbio.com |
c920c8ee4670d550c86656634330be144a4ea5de | 2f634e9edf111ae7d3be5e529ae832dda7fc7114 | /automate.py | 1892580110dd92c05ead9b1effb6380091e68b96 | [] | no_license | amansr02/AutomateMDST | 55ae575b35dcb03f638be812f43dd8d7685e32f9 | 0ca87b7e15a8ce4f58adf38346b5e4fe5051f2f3 | refs/heads/master | 2021-05-19T03:47:10.570244 | 2020-03-31T06:10:41 | 2020-03-31T06:10:41 | 251,514,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,641 | py | import pickle
import sys
import json
import base64
import time
import os.path
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from email.mime.multipart import MIMEMultipart
... | [
"amansr@umich.edu"
] | amansr@umich.edu |
a74fcd5f11c47ca89cb8faae836d664a7ecac83b | 8a83bb7acb9b62183fca817e1f196dd8075630a4 | /04_tree/31_make_tree_from_parent_array.py | e2495870b734992a534a4ea9a194f5aca19de043 | [] | no_license | sandeepkumar8713/pythonapps | ff5ad3da854aa58e60f2c14d27359f8b838cac57 | 5dcb5ad4873124fed2ec3a717bfa379a4bbd197d | refs/heads/main | 2023-09-01T04:12:03.865755 | 2023-08-31T07:04:58 | 2023-08-31T07:04:58 | 234,762,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | py | # https://www.geeksforgeeks.org/construct-a-binary-tree-from-parent-array-representation/
# Question : Given an array that represents a tree in such a way that array indexes are
# values in tree nodes and array values give the parent node of that particular index (or node).
# The value of the root node index would alwa... | [
"sandeepkumar8713@gmail.com"
] | sandeepkumar8713@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.