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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8b32217c9daae58faab52a87b96758125de8793 | 4fe52c6f01afb05ac787a361a239466ceac69964 | /pyjournal2/build_util.py | 9acc2f6977346f32e542ec3806689de1074d6201 | [
"BSD-3-Clause"
] | permissive | cmsquared/pyjournal2 | 85beec6e3a0423d0ee873d189c3a879dd9a7db7c | cfa67529033c5fd7bcd5c60b87c8122ef8c22425 | refs/heads/master | 2020-04-03T18:30:15.119923 | 2018-10-31T00:41:07 | 2018-10-31T00:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,934 | py | """This module controls building the journal from the entry sources"""
import os
import webbrowser
import pyjournal2.shell_util as shell_util
def get_source_dir(defs):
"""return the directory where we put the sources"""
return "{}/journal-{}/source/".format(defs["working_path"], defs["nickname"])
def get_to... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
20ae7bcc5afe279441ec8d3b9c315a60d9785feb | 0a3ef6195220f510ba962c25280b1848b63b858b | /Django_bbs/asgi.py | 62b376d760ffba23b0b66e2dc5e4b76f004fe1b6 | [] | no_license | wykuro/django_bbs | 4584659f42190b933fa26b5eea281b19a31a7885 | 01605676d6f79567c00f7e4aaadcc681014cf06e | refs/heads/master | 2022-11-19T06:48:26.081021 | 2020-07-28T08:56:21 | 2020-07-28T08:56:21 | 283,153,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for Django_bbs project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"2350199078@qq.com"
] | 2350199078@qq.com |
30a77a5b2a326c40c06e455066908091bac0870a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_113/ch44_2020_09_30_10_47_17_987015.py | f078ba9a9524ee5b166c21af69a4c0e35a23748f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #x=True
lista = ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro']
#while x==True:
mes = input('Qual o mês? ')
print(lista[mes]) | [
"you@example.com"
] | you@example.com |
735b63875c4d13122c07d03e6bcdc3db602a5dc5 | 0282d9b7f865b74b5c7e8db1980ffec9b41b1a74 | /virtual/bin/epylint | 4b3605e0ce3a1ab03838bf5caac28f8798ff50b4 | [
"MIT"
] | permissive | aluoch-sheila/GALLERY | 3599ded0220144cfdcac403652e89593f2dcd5b4 | 3a910dc272ce5c731d5780749daeecec66bf2313 | refs/heads/master | 2020-04-10T03:32:47.755612 | 2018-12-13T06:52:00 | 2018-12-13T06:52:00 | 160,773,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/moringaschool/Django/my-gallery/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"aluochsheila1999@gmail.com"
] | aluochsheila1999@gmail.com | |
cefccb4e18a42354913c1b1a7008faa1c4c580dc | 50219c54e1e1ae1afb3844fe26bb24779c8939aa | /app/clients/email_send_client.py | 7ebf66266a323f76ba3bb0c56f173b9abede6db3 | [] | no_license | rajsshah23/brightwheel-interview-email-send | aac0de9a55ce95f45b280f9ac1c0bcbdfdbdaa71 | 86165ab65e976955bb9da4ee05ff2a653b2e3e4a | refs/heads/main | 2023-07-18T06:41:09.391399 | 2021-09-08T03:12:21 | 2021-09-08T03:12:21 | 403,364,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from fastapi import Depends
from app.dependencies import get_settings
from app.models.get_email_status_models import (
GetEmailStatusRequest,
GetEmailStatusResponse,
)
from app.models.send_email_models import SendEmailRequest, SendEmailResponse
from app.setup.settings import Settings
class EmailSendClient:
... | [
"rajsshah23@gmail.com"
] | rajsshah23@gmail.com |
0de0fd9a7e56f15a58adbac9a8208ed4548f3d5d | 988003149dd3cc82a554d38b2948b7a6dab7f0c5 | /161278031/3/3.py | 607d0268c8e7b1cc696cfc3d107849286369f7ec | [] | no_license | HomeworkNJU/Final | 894cb0a17349f39677dd6ede29781d98484a887a | 08906263f5c78e2d0a1828007bf15d6cd28e16d8 | refs/heads/master | 2020-03-20T01:00:33.201335 | 2018-06-20T04:04:41 | 2018-06-20T04:04:41 | 137,064,142 | 0 | 15 | null | 2018-06-20T04:04:42 | 2018-06-12T11:49:46 | Python | UTF-8 | Python | false | false | 1,172 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 20 10:15:36 2018
@author: lenovo
"""
def expense(price,count):
money=price*0.002
if(money<5):
money=5
money+=(count//1000)
money+=1
return money
m=int(input("please input the number of action:"))
action=[]
for i in range(0,m)... | [
"noreply@github.com"
] | HomeworkNJU.noreply@github.com |
39d0a5fa54916c6b31eed02202ea9ba9fa284bf2 | ad67b49b83d23ba2b0ade3da4db90d9b86d98650 | /kafka/archived_scripts/kafka_rss.py | a92f06572dfc8dfb949ad37341f01ac88aace4eb | [
"MIT"
] | permissive | peterhogan/python | f58d08a67991e2822795ee9689544d43cb8fecad | bc6764f7794a862ff0d138bad80f1d6313984dcd | refs/heads/master | 2021-01-01T18:41:50.338599 | 2017-05-13T07:51:54 | 2017-05-13T07:51:54 | 34,813,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | #######################################
############### Imports ###############
#######################################
from lxml import etree
import os
############################################
############### Inital setup ###############
############################################
# specify the directory to p... | [
"peterjameshogan@gmail.com"
] | peterjameshogan@gmail.com |
224efd07081d700cef2f4bff2f9f658dcccc15e2 | 256efb0e9ff8b7420b412c260e6c05cd7c52c5ce | /B/resolve.py | 5e0f2bb0fd1bde1c3ffc1f155dfc45171749a311 | [
"MIT"
] | permissive | staguchi0703/ABC176 | 37a85f6d83570967696712a98dd39e1f1a08b04b | 16f2f188ef5c73f85d08b028f14cd963b33d55af | refs/heads/master | 2022-12-07T18:15:02.659948 | 2020-08-24T15:00:29 | 2020-08-24T15:00:29 | 289,476,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def resolve():
'''
code here
'''
N = input()
sum_num = 0
for item in N:
sum_num += int(item)
if sum_num % 9 == 0:
print('Yes')
else:
print('No')
| [
"s.taguchi0703@gmail.com"
] | s.taguchi0703@gmail.com |
3a61fda2b382065093425824bfebb1070e29668e | e5d8a863c55bda022f9b21561d8594ce55c237b5 | /datamodel/tests.py | ad459397b4e90a1426a2e1d7b55f95385f15d5de | [] | no_license | artiimor/GatoRaton | 637fad7c883d084a9e433d76e22812cc8ff92963 | 84233e7102c319816f5d382b89788d3fec50ddc3 | refs/heads/master | 2020-08-29T17:14:12.764387 | 2019-12-14T11:14:03 | 2019-12-14T11:14:03 | 218,106,585 | 1 | 1 | null | 2019-12-14T11:04:48 | 2019-10-28T17:29:25 | Python | UTF-8 | Python | false | false | 976 | py | """
@author: rlatorre
"""
from django.contrib.auth.models import User
from django.test import TestCase
MSG_ERROR_INVALID_CELL = "Invalid cell for a cat or the mouse|Gato o ratón en posición no válida"
MSG_ERROR_GAMESTATUS = "Game status not valid|Estado no válido"
MSG_ERROR_MOVE = "Move not allowed|Movimiento no perm... | [
"amorcillop@gmail.com"
] | amorcillop@gmail.com |
ad4c71b1ccd1ad4b4495365ed76a0380fc1bfe1b | 9539a9704b14545f81b5c60b9f3087b0bdb9661d | /bin/dadl | afb0bf9ba307761bee028311ea20d143d68c5da9 | [
"MIT"
] | permissive | Galadirith/my-project-2 | b0ef9de6caf2ac65dead527835d03284a901ee4b | 5a2d71fc4c1c63d9479c7f57b0e5b335e2f664a3 | refs/heads/master | 2021-01-09T20:27:34.548747 | 2016-05-31T10:25:38 | 2016-05-31T10:25:38 | 60,062,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | #! /usr/bin/env python
import sys
from dadownloader.auth import Auth
from dadownloader.favourites import Favourites
from getopt import getopt
try:
opts, args = getopt(sys.argv[1:], 'adfh', ['help'])
except:
print('Invalid options passed to dadl')
sys.exit()
download = {}... | [
"edward.fauchon.jones@gmail.com"
] | edward.fauchon.jones@gmail.com | |
611a492f714cd96b2ba9c94b3644617e50c8c6ce | 86294539ffa65b34a862b200c84ee068187dc743 | /do2things/manage.py | 78b2063220ba03afa6e0bd0a501b0280f45ed107 | [
"MIT"
] | permissive | tlake/do2things | 6acb4f43990b0d0e4a9b80090e21246c1d39398a | 4e83bea1fc579006200e9ca3a627c1bc04a6a53b | refs/heads/master | 2021-01-21T04:24:57.108087 | 2016-08-22T08:56:11 | 2016-08-22T08:56:11 | 39,576,039 | 0 | 0 | null | 2015-08-27T01:28:15 | 2015-07-23T15:40:53 | JavaScript | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "do2things.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"tanner.lake@gmail.com"
] | tanner.lake@gmail.com |
292069701c70dfc1310c0ae3d406323bae424447 | 41679cbf83a1339e26513ce1aee09eef9f9b7629 | /tests/dependency-classic/setup.py | 2fb80d725a7ccc6993867726b137062c62503e12 | [
"MIT"
] | permissive | mtkennerly/poetry-dynamic-versioning | db68eb7a3487e042c12820e65844335b62ba9bd4 | 322fe62f5a5270d324ca8a12b42224f67e822d2e | refs/heads/master | 2023-07-20T10:30:17.257360 | 2023-07-11T15:50:51 | 2023-07-11T15:50:51 | 190,498,619 | 486 | 31 | MIT | 2023-09-05T01:33:23 | 2019-06-06T02:13:29 | Python | UTF-8 | Python | false | false | 117 | py | from setuptools import setup
setup(name="dependency-classic", version="0.0.666", py_modules=["dependency_classic"])
| [
"mtkennerly@gmail.com"
] | mtkennerly@gmail.com |
dde187738c41353c5e9b347c6b755e131134564e | 05fbf2dd9512528675867d1bf525b4bfb947816b | /main.py | 4291e4bbfb32bbf6393874f49faa690cebad8523 | [] | no_license | kimmobrunfeldt/kauko | efb46eea1a1ab9c1bdfd92436a88d5daba4f3e38 | cbc0af6ec6b3aa1d9f717172d984c89f2a9eded2 | refs/heads/master | 2023-09-05T23:14:32.547518 | 2013-01-20T11:55:36 | 2013-01-20T11:55:36 | 7,545,552 | 1 | 1 | null | 2013-01-16T22:23:42 | 2013-01-10T17:41:25 | JavaScript | UTF-8 | Python | false | false | 3,814 | py | #!/usr/bin/env python
"""
Kauko server. Must be run as super user.
Usage:
sudo python main.py -v -d
sudo python main.py -p 8080
Options:
-h --help Prints this help.
-v --verbose Used commands are printed to console.
-d --debug Debug information is printed to con... | [
"kimmobrunfeldt@gmail.com"
] | kimmobrunfeldt@gmail.com |
aabf23c2151534f4a361ed928fa3088942a201fb | cc7e0827e14f37331c6bd7f821a3e062e2fc7e9d | /houses/migrations/0006_auto_20211004_2059.py | 8052304ef74e91c4354fcf6de4383bf8e909c6fc | [] | no_license | kudawoo2002/Ayelevi-estat | f8b7e43170d04ce3f64ca78269118f6df2248928 | 46fa19883aa360782f35e1c2b0d07233839350f4 | refs/heads/main | 2023-09-04T08:43:04.387373 | 2021-10-12T18:18:29 | 2021-10-12T18:18:29 | 416,324,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Generated by Django 3.2.7 on 2021-10-04 20:59
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('houses', '0005_rename_sale_type_seller_seller_type'),
]
operations = [
migrations.AddField(
model_n... | [
"kudawoo2002@gmail.com"
] | kudawoo2002@gmail.com |
9958bee7ab67e7e9f94c168f40fd987b1ed06256 | 33ff78109f47d6efe1f3fd334733b8404472277c | /sketch_191203a.pyde | e2b3368b2b203a216e96563ca7a9fb8930c24d55 | [
"MIT"
] | permissive | jadejieheng/processing.py-learning | ef29ad5d8f704461e2fb3486b8437a6467094738 | aef8b990f4eec4a39def7c6444f7bea4753831a2 | refs/heads/master | 2020-09-23T11:44:24.663341 | 2019-12-16T23:46:47 | 2019-12-16T23:46:47 | 225,493,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | pyde | """ pusedocode
c = color(0)
x = 0.0
y = 100.0
speed = 1.0
def setup():
size(500, 500)
def draw():
background(255)
move()
display()
def move():
global x
x = x + speed
if x > width:
x = 0
def display():
fill(c)
rect(x, y, 150, 50)
"""
""" rewrite the structure... | [
"noreply@github.com"
] | jadejieheng.noreply@github.com |
b422f8f7fab0c031a2544141bf37274393b39d00 | 24192756f1275986078c083412ee0b209bae649f | /donghee_project/donghee_project/urls.py | 2de9d8f673a9a270dad68cc545cab23c2460ba4e | [] | no_license | penpen-dongE/django_todolist_project | 0128498a7a9973d4fffefbf320d77044b6916530 | ceeb5d249d7988677b55a690ee92fb74257e311c | refs/heads/master | 2022-05-10T03:24:18.132484 | 2020-04-23T12:13:48 | 2020-04-23T12:13:48 | 255,940,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | """donghee_project 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')
Cla... | [
"dongheepark.dev@gmail.com"
] | dongheepark.dev@gmail.com |
3d2281ceea099e3636a2d5593f4e69d3ab66ddbf | c7846ee0828539c2a2019928c1cbf3abd35665bf | /1226.py | e40445bed21211b32f058a29fb64d1cef368c25a | [] | no_license | whiteblue0/sw_problems | 10476601c8d6d68d42e2f30af87fcde1e5dbbcc5 | 1cefc6236cccc20477bf4eadb458a0fd06b09126 | refs/heads/master | 2020-06-20T10:44:57.463275 | 2020-05-03T07:27:57 | 2020-05-03T07:27:57 | 197,098,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import sys
sys.stdin = open('1226.txt')
def ispass(y,x):
if 0<=y<L and 0<=x<L and data[y][x] != 1 and visited[y][x] == 0:
return True
else:
return False
def DFS(sy,sx):
global end
visited[sy][sx] = 1
if data[sy][sx] == 3:
end = 1
for i in range(4):
ny = sy + ... | [
"21port@naver.com"
] | 21port@naver.com |
0296d247cff0d46ffe781196db159f2dc53ad9a7 | 0dc3e9b70da8ccd056e0a0fab2b1d8f850c3d470 | /lantern/django/django_celery/src/apps/dealers/models.py | bc779127742bd20a2e9942ebdd4779103f3156e4 | [] | no_license | ArturYefriemov/green_lantern | 28e7150af7b9d2281a107ad80026828ad77af62a | 2841b647e1bfae4a7505e91e8a8695d03f35a3a2 | refs/heads/master | 2021-03-01T16:54:58.881835 | 2020-11-17T19:42:23 | 2020-11-17T19:42:23 | 245,799,969 | 0 | 0 | null | 2020-07-14T18:51:13 | 2020-03-08T11:13:32 | Python | UTF-8 | Python | false | false | 735 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
# Create your models here.
class Country(models.Model):
name = models.CharField(max_length=32, unique=True)
class City(models.Model):
name = models.CharField(max_length=32, db_index=True)
country = models.ForeignKey(to='C... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
bddfab9694013cb5361590adc0e4269290af1cec | b82ebabc2568e34ba1db516abd5bb978fda69f2c | /Forming/urls.py | e0ed48947301b255a855f3ffcb08fce25ff8ab42 | [] | no_license | msreenathreddy67/farming | 3996f19f16a0e689e890687a661ffed46f63d58d | 9d727f0297b0fa444da8b7383d84ba3f43decded | refs/heads/main | 2023-06-17T07:29:07.520940 | 2021-07-09T11:04:17 | 2021-07-09T11:04:17 | 384,410,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """Forming URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"msreenathreddy67@gmail.com"
] | msreenathreddy67@gmail.com |
e1a1de36048d93300f9e84f3959504ed9e7d628d | 35a2268f7f004ecd4c834eed7a68b54980a2a157 | /action sequence generation.py | 3658289acb07e626f917a29fea0775543bdae9db | [] | no_license | akagrecha/action-sequence-generation | cefa768b6250dd9968ad7e2068b991d94d7379bf | 46ff1a7019d015709832e24c2244106d2dfb9fc7 | refs/heads/master | 2021-01-20T17:33:52.601183 | 2016-06-23T05:13:54 | 2016-06-23T05:13:54 | 61,200,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,314 | py | import cv2
import argparse
def action_sequence_generator(video,
gblur_ksize_width=21, gblur_ksize_height=21, gblur_sigmaX=0,
fg_mask_lower_threshold=50, fg_mask_upper_threshold=255,
required_frames=8):
"""
Action Sequen... | [
"akagrecha@gmail.com"
] | akagrecha@gmail.com |
a0a0950be83e34b71b9196a40ad2399172c4477c | 9636c75094a251fc931774c967df135b31012101 | /school_mgnt/wsgi.py | a09c0a72615f55cd2c45d10991c74db785214fe0 | [] | no_license | bimal125/school_mgnt | 9e33bb7f9ae580292eb687dc4955bc54c07a8bd8 | 01fd33cb2547494cda2213061af443e706dc92d9 | refs/heads/master | 2022-12-10T00:53:13.106358 | 2020-08-27T15:07:05 | 2020-08-27T15:07:05 | 205,401,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for school_mgnt 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"pandeybi125@gmail.com"
] | pandeybi125@gmail.com |
0f12e75f326736ce1da7a7a6b1fb5297088bafd5 | 5bfbf31332a5c4750ab57d305f400aa5e20bf6bd | /contrib/great_expectations_zipcode_expectations/great_expectations_zipcode_expectations/expectations/expect_column_values_to_be_valid_utah_zip.py | 5c11f0c756f7c389107ebd4a9b7e6f5e7f2270a7 | [
"Apache-2.0"
] | permissive | alexsherstinsky/great_expectations | 9d4ae4c06546c5ab2ee0d04fb7840e3515c25677 | 2fc4bb36a5b3791c8ada97c5364531cd7510d4ed | refs/heads/develop | 2023-08-04T13:13:38.978967 | 2023-07-24T18:29:46 | 2023-07-24T18:29:46 | 203,888,556 | 1 | 0 | Apache-2.0 | 2020-07-27T09:12:21 | 2019-08-22T23:31:19 | Python | UTF-8 | Python | false | false | 5,481 | py | from typing import Optional
import zipcodes
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from great_expectations.expectati... | [
"noreply@github.com"
] | alexsherstinsky.noreply@github.com |
de172a8f044e0de1b739d483985f14cd2fb74c27 | 2d7d5673d78d6ef682e88845eab99dddd8fc0927 | /pybaseball/pybaseball/league_pitching_stats.py | cc3eb29485ad7ce43526b1c031e88f3b522029c8 | [
"MIT"
] | permissive | BunkyFeats/MLBpy | 764026d42afcdd979084b28d851a7d536a0ac70d | d035f904bea08fb73545b333d6f3448b1cb20ab0 | refs/heads/master | 2021-04-26T23:40:06.190324 | 2018-03-04T22:35:48 | 2018-03-04T22:35:48 | 123,835,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py | import requests
import pandas as pd
import numpy as np
import io
from bs4 import BeautifulSoup
import datetime
def validate_datestring(date_text):
try:
datetime.datetime.strptime(date_text, '%Y-%m-%d')
except ValueError:
raise ValueError("Incorrect data format, should be YYYY-MM-DD")... | [
"noreply@github.com"
] | BunkyFeats.noreply@github.com |
f9d9118938a3ba4499fe9302991d70005635b133 | b88dbcf3619dd3af4896b4b15432ae2b2d390665 | /main.py | 59c59c21694156ed16b7333845e17b06d0bfdf16 | [] | no_license | msubzero2000/bayesian-optimisation-metaflow-optuna | a43ccdb0150fde6ae7571798549210113826c0ea | 00bda310bbe7ce42470acfc5d90198f27ad9c5d2 | refs/heads/main | 2023-08-06T03:27:55.980813 | 2021-10-06T07:22:19 | 2021-10-06T07:22:19 | 413,768,301 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,302 | py | """
Optuna example that optimizes a classifier configuration for cancer dataset using
Catboost.
In this example, we optimize the validation accuracy of cancer detection using
Catboost. We optimize both the choice of booster model and their hyperparameters.
"""
import logging
from datetime import datetime, timedelta
... | [
"msubzero2000@gmail.com"
] | msubzero2000@gmail.com |
127026945e89da6d871b6e151af9d6241f3867e5 | 200a7fb2a75151a8b83274ef53d661099da61047 | /django1_workspace/test4(get)/blues/ddobaki/models.py | d6d5a45b52187cd3bb993d21ac6fa65d5fbb1010 | [] | no_license | Minzard/Correctable-Pronunciation | 9e967e428f38b2a142e81d1d181caba9bc56305a | 4b94d6e07c0c682086595c202fc5fa41106a9df5 | refs/heads/master | 2021-06-21T03:13:44.751861 | 2020-12-29T02:05:22 | 2020-12-29T02:05:22 | 157,420,423 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django.db import models
class get_ddobaki(models.Model):
user = models.CharField(max_length=100)
label = models.CharField(max_length=50)
stt = models.CharField(max_length=50)
class post_ddobaki(models.Model):
divided_stt = models.CharField(max_length=100)
color = models.BooleanField(default=T... | [
"eh@EHui-MacBook-Pro.local"
] | eh@EHui-MacBook-Pro.local |
6f73725146e0aa41a0092ee3c4592b5a5dd9124d | b6282963725f1b44e29a11e4ea2479e0667c3b1a | /src/chapter04/demo01.py | f803bdb96f4e21d92e98b40c31dfdb70d8cb6bcd | [] | no_license | geekori/numpy | d2859f56e80a3ab0ea4a33bcb4bc8494dedbb879 | e3b18aa6868c1f98963f01875f9afa7ee86f1bf2 | refs/heads/master | 2020-04-09T07:44:22.074173 | 2018-12-03T10:01:59 | 2018-12-03T10:01:59 | 160,168,662 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # NumPy高级函数:计算协方差矩阵
from numpy import *
a = array([1,3,4,5])
b = array([2,6,2,2])
x = vstack((a,b))
print(x)
print(cov(x))
# cov函数会将正常的结果缩小到原来的1/3 | [
"282662996@qq.com"
] | 282662996@qq.com |
ec61f2c11c142888f2e43279e15779776f084d75 | b75b3bb6a2c6dd8b4a5b89718eb83d6451000cd4 | /hackbright.py | 715553d9b927069928d6bfc85808ce5824d2e0b2 | [] | no_license | CodeHotPink/project-tracking-flask | 22efebeaddf83d2746ba9137f1b478da8c34b1a9 | bdd58b17034406f28d5ceaa0c834eb0d6ad06be3 | refs/heads/master | 2020-04-03T18:46:04.010020 | 2018-10-31T04:02:38 | 2018-10-31T04:02:38 | 155,496,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | """Hackbright Project Tracker.
A front-end for a database that allows users to work with students, class
projects, and the grades students receive in class projects.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy()
def connect_to_db(app):
"""Connect th... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
23c2de5fd645c39cbadd4ecdb4a8572487884ba8 | 069c2295076c482afadfe6351da5ae02be8e18e6 | /tests/urlpatterns/path_same_name_urls.py | d7ea5431b1e2e70e97338b78591e99ba67df435e | [
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"Python-2.0.1",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | django/django | 5eb557f57053631cd4f566f451e43197309dbeeb | c74a6fad5475495756a5bdb18b2cab2b68d429bc | refs/heads/main | 2023-09-01T03:43:44.033530 | 2023-08-31T08:27:32 | 2023-08-31T08:27:32 | 4,164,482 | 73,530 | 38,187 | BSD-3-Clause | 2023-09-14T20:03:48 | 2012-04-28T02:47:18 | Python | UTF-8 | Python | false | false | 1,483 | py | from django.urls import path, re_path, register_converter
from . import converters, views
register_converter(converters.DynamicConverter, "to_url_value_error")
urlpatterns = [
# Different number of arguments.
path("number_of_args/0/", views.empty_view, name="number_of_args"),
path("number_of_args/1/<valu... | [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
c92030d52698c79b7c903ded6e22f72bf6b89f32 | 3c176f8c73b157f6aba150d869cefe64b7f0a4d7 | /app.py | a3686b206616eecff5056f175889e91a251507e1 | [] | no_license | ddev790/image_recommender_selectivesearch | 5be5a9659bb98b2f75bfd12ed7582e290d30522d | 374904c7be88abfeba2b00df735fd26c519081ad | refs/heads/master | 2021-08-11T21:00:59.213932 | 2017-11-14T04:50:52 | 2017-11-14T04:50:52 | 110,641,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import os
import random
import time
import requests
import sys
import simplejson
from flask import Flask, request, render_template, session, flash, redirect
from celery import Celery
import json
from psycopg2.extensions import AsIs
import psycopg2
from image_process import populate_db
app = Flask(__name__)
# Initi... | [
"admin_yosemite_mac"
] | admin_yosemite_mac |
bde4160a1d045a92ee19fdc4d0e30366397bb41d | 2ade3d231fe1fcc8a4e698845a98fa025197c06b | /dealproperty/dealproperty/wsgi.py | f4be6bfd492254876a4b5741075bafaac4c57faf | [] | no_license | anandraj8756/property_deal_web | d3d7012968ac6c7e0931c9207db61163c518f086 | 1dc220734b00e651b891741db82469d28079f442 | refs/heads/main | 2023-06-08T04:30:12.439249 | 2021-07-05T06:20:33 | 2021-07-05T06:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for dealproperty 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"anandallen95@gmail.com"
] | anandallen95@gmail.com |
529b1a3a2c7b1d1ca36401ac499afa8ce5891042 | d602149c0bf94a178e9972b74f113d7412db0eca | /google-cloud-sdk/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/tpu/v1alpha1/tpu_v1alpha1_messages.py | 46cde70eed13e0fc8a3c6175ab6450f73783066d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sarahdactyl71/gneiss-rocks | ffe19df02e77d8afdb2b96ae810e0e31490f2d77 | 45a4900a89638c1b6bc50d9ff4a83ae631a22c7a | refs/heads/development | 2021-07-04T05:36:12.037156 | 2017-10-06T22:14:27 | 2017-10-06T22:14:27 | 102,655,986 | 0 | 1 | null | 2020-07-25T07:44:54 | 2017-09-06T20:38:11 | Python | UTF-8 | Python | false | false | 25,050 | py | """Generated message classes for tpu version v1alpha1.
TPU API provides customers with access to Google TPU technology.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py impo... | [
"kirkse710@gmail.com"
] | kirkse710@gmail.com |
99102bee439d4e4060ed9c0a44aa1bfe3bb55191 | 29cc8671d2b4cfb3551bf822751130e769e2651d | /5multipless.py | 9bfcc567ee6656d325b20c4dee4507fc11eb7655 | [] | no_license | raghava430/Raghava-reddy | 67360cf955e8c77e7fc7732eb70feb72fb19b3fe | 5e952e0d129427705ad540052757b895ffb38542 | refs/heads/master | 2020-06-14T10:05:13.429124 | 2019-07-17T04:35:11 | 2019-07-17T04:35:11 | 194,976,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | e=int(input())
f=1
while(f<6):
g=e*f
f=f+1
print(g,end=" ")
| [
"noreply@github.com"
] | raghava430.noreply@github.com |
f86a2ef5c5fa10d7f88154c33b7e6bf8420fc39d | cac58755bacb8cf144e05d86ddf0f590c1626aa7 | /myPdf/pay_slip.py | 111c94721de04117f1cf32a6b8815c0d92792ec5 | [] | no_license | alaniomotosho2/automate | 95d853bda06dc5279cdff894550b399a6ad5bec9 | 1bb7ee70941029c6092b329184c65935b6355d4c | refs/heads/master | 2021-08-07T08:23:22.344109 | 2017-11-07T21:58:30 | 2017-11-07T21:58:30 | 108,914,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from datetime import datetime
employee_data = [
{ 'id': 123, 'name': 'Usman', 'payment': 10000,
'tax': 3000, 'total': 7000 },
{ 'id': 245, 'name': 'Sophia', 'payment': 12000,
'tax': 4000, 'total': 8000 },
]
from fpdf import FPDF, HTMLMixin
class PaySlip(FPDF, HTMLMixin):
def footer(self):
self.set_y(-15)
self.... | [
"alaniomotosho2@gmail.com"
] | alaniomotosho2@gmail.com |
c49351323bd5706e1c5df7eba562dd7673b7e486 | 78fda83a9cd033d84e3ff47c8f9731b8ab3ff26d | /Scripts/part2.py | 9cff5153f59ef3e22aa7bc8b87b3ecc37cb50871 | [] | no_license | soham-shah/fireViz | 61bea14cfb97bfb51a85c49b4a0740b4f57d1161 | 3e00a2ec68585be443a7a6eb859870a4f1898360 | refs/heads/master | 2021-01-19T15:50:30.886862 | 2017-08-21T16:59:25 | 2017-08-21T16:59:25 | 100,973,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,549 | py | #!/usr/bin/python
import numpy as np
import pandas as pd
import os
import sys
sys.path.append("/curc/tools/x86_64/rh6/software/visit/2.10.0/2.10.0/linux-x86_64/lib/site-packages")
from visit import *
import time
def closeDatabases(indexString):
CloseDatabase("localhost:/projects/joki9146/week_13/Data_part2/wrfout_"... | [
"sohamshah225@gmail.com"
] | sohamshah225@gmail.com |
ce9556d7e5b4f79026943d6b28014f74995039fa | bc38678b79fee6d92c5fe73ce6a56854421f5b70 | /github_unit_1/Mod_5/sierra_python_module04-master orig/my_d_nesting.py | 071f108ecf481fca1ba89863f26d8c846301b9c2 | [] | no_license | JOYFLOWERS/joyflowers.github.io | 8a6f757595e4a0cdca621fa4210ac021a87de679 | c8417cd06489e04009a773c56f334ea629ff3905 | refs/heads/master | 2020-07-21T15:49:37.448128 | 2019-12-14T03:37:31 | 2019-12-14T03:37:31 | 206,913,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | # List Nesting
# Since a list can contain any type of object as an element, and a list is itself an object, a list can contain another list as an element.
# Such embedding of a list inside another list is known as list nesting.Ex: The code my_list = [[5, 13], [50, 75, 100]] creates a list with two elements
# that ... | [
"noreply@github.com"
] | JOYFLOWERS.noreply@github.com |
09cace0bf73c69539cf1e99a98b7a6f3ed08f833 | 5328f77114a898f1c75bf82176306a9ab83a3473 | /models/clients.py | 1ab3394ff6e1a3a584d126ddfc7b641f30095cee | [] | no_license | prabakaran04/prabakaran | 2e207e0dc17cb0c39340b05683fda750eae45eaa | b6f8268192dcffcd095486527777d4edeaafdf68 | refs/heads/master | 2023-03-11T14:10:38.576472 | 2019-07-18T13:29:04 | 2019-07-18T13:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | from odoo import models,fields,api
from odoo.exceptions import ValidationError
class ClientDetails(models.Model):
_name = 'client.details'
_rec_name='client_name'
client_id = fields.Char(default ='new')
client_name = fields.Char(string ='Client name')
address = fields.Char(string ='Address')
... | [
"prabakaran@sodexis.com"
] | prabakaran@sodexis.com |
fbc7694ea37606dbb8b3d679815129d939c33700 | ee7cde00d334cf625e309a7157e331e450a7056d | /scripts/json_toolpath_analyzer.py | 205d254edb0b33031dba04f9af66c048882ae369 | [] | no_license | makerbot/TestFiles | 29a73a135b53ce2c447501c4788c8cceaa1075e4 | ba16bccad29646e0ce4379adb33632fb9799b852 | refs/heads/master | 2021-01-19T02:15:42.711380 | 2016-07-29T17:45:20 | 2016-07-29T17:45:20 | 2,892,052 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 15,145 | py | import os
import sys
import re
import math
import argparse
import copy
import json
layer_begin = re.compile('^(\(|;)(<layer>|Slice) [\d.]+.*(\)|:)?$')
paramcodes = 'XYZFABE'
g1re = re.compile('^G1\s+(?P<param>(['+paramcodes+']-?\d+(\.\d*)?\s*)+)(?P<comment>.*)$')
paramre = re.compile('(?P<code>['+paramcodes+'])(?P<val... | [
"alison.nj.leonard@gmail.com"
] | alison.nj.leonard@gmail.com |
6c77b0407a9a802d567bc0923cd32c4be391bf5a | 6c47652bc93ceef2b054fa9759481e70a22de2f1 | /225_Fig2g_diableN_y.py | 4cca2a370829a583b5c2fbe0d662617cc0710a97 | [] | no_license | peakqi/RaI | 4c174840ce5affa4dde3990892fb48903b9766a2 | 6528cc100506e3a491d665d09d620ac9be3013a3 | refs/heads/master | 2020-05-25T10:47:43.976805 | 2019-05-22T05:08:09 | 2019-05-22T05:08:09 | 187,766,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,991 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import matplotlib.pyplot as plt
import numpy as np
from imgaug import augmenters as iaa
import os
import scipy as sp
from sklearn import linear_model
from sklearn.metrics import r2_score
from sklearn.metrics import mean_squared_error
Le... | [
"noreply@github.com"
] | peakqi.noreply@github.com |
cb221e365a5489dbd72b5c99e681b6870802a23a | 70ae772afdabea4213c64ac1e8b824a2dd258611 | /FaceRecognition/recognize_specific_face_def.py | e5de6cd5d2c65262dd9fe9894366d3690ead13da | [] | no_license | IdoSeri/DavidsonProject | aa54dc3f07e09ac2a0a9c844a52f6ee5a4ff225c | 87dbd48628ece0d55eed4c76d82b63100ce51ca4 | refs/heads/master | 2022-04-16T22:33:11.923149 | 2020-04-16T09:47:40 | 2020-04-16T09:47:40 | 250,328,967 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # import the necessary packages
from imutils.video import VideoStream
import face_recognition
import imutils
import pickle
import time
import cv2
def recognize_face():
# load the known faces and embeddings
data = pickle.loads(open("FaceRecognition/encodings.pickle", "rb").read())
# initialize the video stream
vs... | [
"noreply@github.com"
] | IdoSeri.noreply@github.com |
c5673a94f94f72233370c9935ad7b182c58ba065 | 47a98fed42dc2e0b589e3f08ff9342a3d924c7ac | /pyblog/XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/epXVRECNA2MadRw60lZ38aCPhTXzoduilN38-UtKc2M=/python.sys.pyi | cb99aafec30445a55c1b4a04ac86042755257854 | [] | no_license | mehedi432/python | bd1c592edd622ae435c9f81c0771684048290e0a | 725236e1b700ef41612ccf4f2aaccdf9bc1586d4 | refs/heads/master | 2020-06-06T22:31:44.548167 | 2019-06-28T07:15:27 | 2019-06-28T07:15:27 | 145,439,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,814 | pyi | import _io as _mod__io
import builtins as _mod_builtins
import types as _mod_types
def __displayhook__():
'displayhook(object) -> None\n\nPrint an object to sys.stdout and also save it in builtins._\n'
pass
__doc__ = "This module provides access to some objects used or maintained by the\ninterpreter and to fu... | [
"aamehedi93@gmail.com"
] | aamehedi93@gmail.com |
1c03b9aee293d47ae2cf1cba8865ea237699d603 | b838762713aa551690532a7cdc8f2d4556766d2c | /sales/db/init_db.py | b8e0edfab3ff55a9fa9b11a2f0b07c7813ea6df7 | [] | no_license | dmitriyignatiev/api_peewee | 647ad98f9e3fda76e08f28eb4c2481f5a919db20 | 3d1a4a6830169a01302e37b7214ed0a1fad08ac1 | refs/heads/master | 2022-12-10T11:21:05.561156 | 2020-09-20T16:56:28 | 2020-09-20T16:56:28 | 297,037,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from sqlalchemy import create_engine, MetaData
from sales.db.db import question
from dynaconf import settings
DSN = f"postgresql://{settings.DB_USER}:{settings.DB_PASSWORD}@{settings.DB_HOST}:{settings.DB_PORT}/{settings.DB_NASE}"
def create_tables(engine):
meta = MetaData()
meta.create_all(bind=engine, tab... | [
"dmitriy.ignatiev83@gmail.com"
] | dmitriy.ignatiev83@gmail.com |
cb4b16dd237ab801af0b21ca00cf08970de29bf8 | e8c82271070e33bb6b181616a0a518d8f8fc6158 | /fce/numpy/distutils/tests/f2py_ext/tests/PaxHeader/test_fib2.py | a56021af7be6b185d62870db000c6c9d53082297 | [] | no_license | DataRozhlas/profil-volice-share | aafa0a93b26de0773fa6bf2b7d513a5ec856ce38 | b4424527fe36e0cd613f7bde8033feeecb7e2e94 | refs/heads/master | 2020-03-18T01:44:26.136999 | 2018-05-20T12:19:24 | 2018-05-20T12:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | 17 gid=713727123
15 uid=3629613
20 ctime=1458667064
20 atime=1458667064
23 SCHILY.dev=16777220
23 SCHILY.ino=31296593
18 SCHILY.nlink=1
| [
"honza@datastory.cz"
] | honza@datastory.cz |
6c1be986fca786a6854705ef2349ec7574a2437b | 36b6384001de57775b908234952d7f410402e715 | /main.py | 6260a322ce1f34873400488ad9182cb24be8b18e | [
"BSD-3-Clause"
] | permissive | furkankykc/AutomatedDocumentMailer | d3140660d3235ebe145f6a73abf4536f1cce920c | f5216e788f9570ed148652f83eb58d1f9a8ef5e8 | refs/heads/master | 2021-06-30T05:54:30.304651 | 2020-09-13T17:23:46 | 2020-09-13T17:23:46 | 130,085,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py |
from Mailer.loginform import LoginGui
from Mailer.gui import Gui
if __name__ == '__main__':
LoginGui()
# Gui('xbet')
| [
"furkankykc@gmail.com"
] | furkankykc@gmail.com |
75058d90ba45ab474f758745b9903f613016ee98 | 3fc107a60ecf2144333b23401716020f8c2c6b2c | /apps/mantenimiento_equipo/models.py | 88986d87fbd2fa651657ae39cef29373f9b84631 | [] | no_license | TulioRafaelCuadradoHoyos/tcuadrado_parcialbase | 8d00099f234bcb6f991ae0389a0792bead602e11 | 5818ffce00e6cb2322d0eb60ce2aca4200169214 | refs/heads/master | 2023-08-29T05:08:06.929208 | 2021-10-22T13:51:12 | 2021-10-22T13:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.db import models
from apps import mantenimiento
from apps.equipo.models import Equipo
from apps.mantenimiento.models import Mantenimiento
# Create your models here.
class Mantenimiento_equipo(models.Model):
mantenimiento = models.ForeignKey(Mantenimiento, on_delete= models.CASCADE)
equipo ... | [
"tcuadrado@uniguajira.edu.co"
] | tcuadrado@uniguajira.edu.co |
9e226cf7f1b347db514b5a6f6c603957fe867e63 | c3eff34237f19885ee09c81f2eb869a53a66e76b | /app/generate_token.py | 0b2dabf9bdc5880404676f02d9b10c6a15b73f1d | [] | no_license | victorvarza/hermes | e9f4bf3fe76b3f6949bfd9e8e23bab7951692f05 | 62d9c5ba0cb0851ae56bc33e8ac337cecd205f82 | refs/heads/master | 2021-11-05T13:40:02.298153 | 2021-01-10T21:51:11 | 2021-01-10T21:51:11 | 135,069,301 | 0 | 0 | null | 2021-03-25T22:53:52 | 2018-05-27T17:56:11 | Python | UTF-8 | Python | false | false | 434 | py | from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
cred_path = "app/conf/gdrive_cred.json"
gauth = GoogleAuth()
gauth.LoadCredentialsFile(cred_path)
if gauth.credentials is None:
gauth.LocalWebserverAuth()
elif gauth.access_token_expired:
gauth.Refresh()
else:
gauth.Authorize()
pri... | [
"victor.varza@gmail.com"
] | victor.varza@gmail.com |
16bc013e99ded0fe9f6941199abd40f35eefdcd6 | b3ae6dc41b1930856ad70ff8a7a618112ba6c256 | /nncf/definitions.py | 5ca5eb73b46fad0321415b2bbec131a428039c5e | [
"Apache-2.0"
] | permissive | RikAllen/nncf_pytorch | 05411fb9eb819971c5797524e6c09996b7a46aaa | db8c09d8a1f9efb6c22150ba285ce65bc879d88c | refs/heads/develop | 2023-01-14T01:55:04.938358 | 2020-09-16T15:00:14 | 2020-09-16T15:00:14 | 289,278,649 | 0 | 0 | Apache-2.0 | 2020-09-24T13:46:45 | 2020-08-21T13:39:04 | Python | UTF-8 | Python | false | false | 1,057 | py | """
Copyright (c) 2020 Intel Corporation
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 writin... | [
"noreply@github.com"
] | RikAllen.noreply@github.com |
439a6cef4d180ab24ddfab790d339f28dba304de | e0def6cfcef03922758940ee1d5ec7a891fafaf0 | /files/10_create_altered_rides_table.py | 6cb774324fdab5252ebc9c6141eaf892a3b221e4 | [] | no_license | DataLiftoff/Analysis_Of_The_Movement_Of_Rental_Bikes | 8705845379c20c12267429cd2fc0448e32133423 | f5656f247616ca84e2e9925a3437b3d86d7252a2 | refs/heads/master | 2023-01-05T08:54:17.745088 | 2020-10-01T21:46:20 | 2020-10-01T21:46:20 | 300,298,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | ##### Import Libraries
# To load OpenStreetMap-data
import osmnx as ox
# To work with networks
import networkx as nx
# To connect to databases
from helperFunctions import Graph
from helperFunctions import alterRoute
from helperFunctions import connectZEO
from helperFunctions import connectMySQL
from helperFunctions ... | [
"noreply@github.com"
] | DataLiftoff.noreply@github.com |
c63effbac0ae9a65a8e037ea99875dcf94ae1746 | 44e26d6e5ada8bc5fb9d000e86e4694615262bcd | /download_latest_build.py | 0a1c243fbbd71a64c4fc2ce7e7a65fd9d9fe1c28 | [] | no_license | symlib/clitest | 18c9d0475179b035a466d604a60fca52d5c63d84 | 524bd59f64d4754a760d483c9b7038647f442240 | refs/heads/master | 2021-06-21T21:20:53.031850 | 2017-08-22T01:04:19 | 2017-08-22T01:04:19 | 81,310,193 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,847 | py |
# initial version
# March 20, 2017
buildserverurl="http://192.168.208.5/release/hyperion_ds/daily/"
fcsserverurl="http://192.168.208.5/release/hyperion_ds/fcs/"
tftpserver="root@10.84.2.99:/work/tftpboot/"
serv = "MjExLjE1MC42NS44MQ=="
u = "amFja3kubGlAY24ucHJvbWlzZS5jb20="
p = "NzcwMjE0WHA="
import requests
from bs... | [
"jacky.li@cn.promise.com"
] | jacky.li@cn.promise.com |
675458e68451063981849d73115b4a2e5e1566b7 | c48f3bb73f3ddda53619174fa1f81d42cd7bd0ca | /agent.py | ea6c262202157c3895d46d98c8186177a946266f | [] | no_license | hanhsienhuang/Gomoku | 8f04f0b897feb33ff233d370978bf27c1b36f97f | d7f2cb1f042c92675ca877472e7c4376da600992 | refs/heads/master | 2022-12-31T02:36:01.310759 | 2020-10-25T05:51:49 | 2020-10-25T05:51:49 | 307,036,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,392 | py | import networks
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
from utils import is_in_range, list_add, print_board
import random
def choice2d(p):
i = np.random.choice(np.prod(p.shape), p = p.flatten())
return np.unravel_index(i, p.shape)
class Agent:
def __init__(self, ... | [
"hu8108@gmail.com"
] | hu8108@gmail.com |
e0d3ddf444f96456a667218432e68df52fe04514 | 3c515d48bba2bd4dc2ecd797aaf66aa5a1ebf596 | /app.py | 0e59b8ca4a0597b9a814d00fc0a6345534e30c3f | [] | no_license | jason2133/flask_ai_translator | 0696797644aec7a3eb9926efbba3deac9e820eaa | f3b3c1a934e2f8a1a4a551dd199c2ca5521835ac | refs/heads/master | 2023-07-17T06:16:59.938651 | 2021-08-25T17:29:51 | 2021-08-25T17:29:51 | 399,882,270 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | import requests, os, uuid, json
from dotenv import load_dotenv
load_dotenv()
from flask import Flask, render_template
from flask import request
app = Flask(__name__)
@app.route('/', methods=['GET'])
def index():
return render_template('index.html')
# 서비스를 호출하는 코드
@app.route('/', methods=['POST'])
def index_post... | [
"jason2133@likelion.org"
] | jason2133@likelion.org |
80d9fb03a91fc8eae47a8e9b11cc9d472ab29f0b | 48285275958aba8f8f14ce505f03acf117870584 | /src/handlers/HandlerFactory.py | f961b917d06c235f64305e5deaa2a39e94088b0e | [] | no_license | rchuso/Python-Web-Server | 095609586c8fb403380752cd99408800d760d8e8 | 1fe8fdfc77d220923b8ebfafbc759bae1be4074c | refs/heads/master | 2021-05-17T18:54:09.141504 | 2020-04-02T06:23:16 | 2020-04-02T06:23:16 | 250,927,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | '''
Created on 15/03/2020
@author: rand huso
'''
import os
from handlers.HandlerImage import HandlerImage
from handlers.HandlerText import HandlerText
from handlers.HandlerBad import HandlerBad
class HandlerFactory():
handlerTypes = {
'html': {'handler': HandlerText, 'type':'html', 'contentType':'text/html', ... | [
"rchuso@gmail.com"
] | rchuso@gmail.com |
00b42fcbfbde767ac076c1bdd0d7fb34c5b3382c | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /comments/models.py | 27fec916d93089637204f146a37c7c27c5e70df4 | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,969 | py | # -*- coding: utf-8 -*-
from django.db import models
from mptt.models import MPTTModel, TreeForeignKey
from tinymce import models as tinymce_model
import datetime
class Comments(MPTTModel):
prod_name = models.CharField(max_length=250, blank=True, db_index=True, verbose_name="Название")
paket = models.CharField... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
372ffb8f05abddeea2704b81e3dfd8ba8d5fa88e | 236332a967f8f02291b58cab7addfeabdfe7b9a2 | /experiments/tests/testing_2_3.py | 207477ec55fb3dd07e0cb74d22864d4061c012cc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ConsumerAffairs/django-experiments | 2dbf04b7f0e7ebdff6d5e7879afeb26f7fdb5150 | 4f1591c9b40390f7302f3777df231ffe3629f00d | refs/heads/master | 2021-01-20T11:10:30.199586 | 2018-04-20T21:26:18 | 2018-04-20T21:26:18 | 101,666,220 | 0 | 10 | MIT | 2018-04-20T21:26:19 | 2017-08-28T16:56:16 | Python | UTF-8 | Python | false | false | 218 | py | # coding=utf-8
try:
from unittest import mock, skip
except ImportError:
import mock
class DummyLockTests(object):
@classmethod
def new(cls):
test_class = cls
return skip(test_class)
| [
"fran.hrzenjak@gmail.com"
] | fran.hrzenjak@gmail.com |
e2274c4b1495ca6b6d568d9fbaeb1af253a5788c | 13e2726a6e25fd4020713c111fc7eb2f3018fc3d | /Product_recommendation/wsgi.py | c231d1b341a002954b6c6cd20d5a424ba336b998 | [] | no_license | Abishek-Balasubramaniam/Product-recommendation | e6d9bbf9e5c32cacda0bbb87d4a518fa26b36400 | e307d6e0eaa7ee1a070fff3ecbb41034f67d78ea | refs/heads/main | 2023-01-31T07:26:40.674404 | 2020-12-15T12:29:22 | 2020-12-15T12:29:22 | 321,660,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for Product_recommendation 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"2903abi@gmail.com"
] | 2903abi@gmail.com |
7b04a97c368a3b4a75712cea5bdf04c07cc5ca00 | e833c155f1bbc446dbf83fe9d09eb2eeaf676cf6 | /Year1/CSCA48/Assignments/a1/a1_design.py | 83177c2b87e4902065241d535781d23bf53a8964 | [] | no_license | vincentt117/UTSC.CS | 116ebb41caaafbfaea8172d72c7fd507cfa771cb | ffa1a5bea2b85f3afe75b01830786bc584d2da06 | refs/heads/master | 2020-09-22T12:48:09.539263 | 2017-01-30T15:58:39 | 2017-01-30T15:58:39 | 67,225,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,249 | py | class Matrix():
''' A class which represents a mathematical matrix
'''
def __init__(self, content):
'''(Matrix, list of obj) -> None
Creates a matrix where a dictionary with keys as two element lists
containing the row (element zero) and column (element one) position
of the ... | [
"vincentteng@wifihost-82-190.wireless.utsc.utoronto.ca"
] | vincentteng@wifihost-82-190.wireless.utsc.utoronto.ca |
7d6af601707ee714c69284f9139215e5417fc341 | 895700e89119ef4140befdc38588e51af48793cf | /Hongik_Class/Circular_List.py | 94a0053cfded54f194a6a56ee8db88555974e7b9 | [] | no_license | yoonsangmin/Coding_Test | d17096c5f867c21c05ddcbd854b2a0f32367611c | 122bccd2c584f4f2babad835ea22c12352f690c1 | refs/heads/master | 2023-01-08T06:47:53.276862 | 2020-11-13T01:42:36 | 2020-11-13T01:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,368 | py | #원형 리스트
#https://blex.me/@baealex/%ED%8C%8C%EC%9D%B4%EC%8D%AC%EC%9C%BC%EB%A1%9C-%EA%B5%AC%ED%98%84%ED%95%9C-%EC%9E%90%EB%A3%8C%EA%B5%AC%EC%A1%B0-%EC%97%B0%EA%B2%B0-%EB%A6%AC%EC%8A%A4%ED%8A%B8
#위의 코드 중 오류 수정 버전
#Node는 [ Data | Next ]
# <Head> <Tail>
# CircleLin... | [
"kacias@daum.net"
] | kacias@daum.net |
a63f0922e59cac5a62214ffbe9d6b901f45c2afc | 844ac3a61068c6d60fbf2add52d927f29d3453c9 | /main.py | afde28c6164b8aff73edf7f88f59530d4b9e121b | [] | no_license | ilacombe2022/Rock-Paper-Scissors | 21cffa80802361b329d94358f528928a82089485 | efd0597ec8614070f7738ffaa0a0caf850bcca62 | refs/heads/main | 2023-03-22T10:42:37.247944 | 2021-03-11T17:38:50 | 2021-03-11T17:38:50 | 346,786,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | import random
def choose():
choice = input("Shall we get started? [yes/no]: ").lower().strip()
if choice == "yes":
return choice
elif choice == "no":
print("We understand, thanks anyways.")
exit()
else:
print("That's not the answer we're looking for.")
... | [
"noreply@github.com"
] | ilacombe2022.noreply@github.com |
8596d664d4d312c1676cc07523a9763a6db80efd | 50364def388dfcf4015109cc634dc10fc205edb5 | /FaceVerify.py | 8d8e14c1a9a7324c471b99b5b31b72e26ae522d7 | [] | no_license | malhotraguy/traspod | 73bb18221226362035188cb6eade71d9de8ccc16 | 5d9fd5c9ea266bc6660f532a360cb7f538a50796 | refs/heads/master | 2021-01-24T01:13:51.033523 | 2018-03-01T21:57:23 | 2018-03-01T21:57:23 | 122,801,097 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | import requests
from io import BytesIO
from PIL import Image, ImageDraw
import cognitive_face as CF
import urllib
import urllib.request as ur
import cv2
import numpy as np
import matplotlib.pyplot as plt
KEY = '6a294681f0f640f3a8b60b1c7de8ea85' # Replace with a valid subscription key (keeping the quotes in place).
CF... | [
"noreply@github.com"
] | malhotraguy.noreply@github.com |
f6bb5a74f05f10651cae3ee6b1e226e5f896c8de | 65e0c11d690b32c832b943fb43a4206739ddf733 | /bsdradius/tags/release20060404_v_0_4_0/bsdradius/Typecast.py | 436a5e6ae0899419c20edf50298dd09eb597dcaf | [
"BSD-3-Clause"
] | permissive | Cloudxtreme/bsdradius | b5100062ed75c3201d179e190fd89770d8934aee | 69dba67e27215dce49875e94a7eedbbdf77bc784 | refs/heads/master | 2021-05-28T16:50:14.711056 | 2015-04-30T11:54:17 | 2015-04-30T11:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | ## BSDRadius is released under BSD license.
## Copyright (c) 2006, DATA TECH LABS
## 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 c... | [
"valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef"
] | valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef |
76eac8484a0e0f4385ec8d7a7a8100f4be7cd089 | d6fa7b19190e83447ac7456ccce5e0d8ae7de4f0 | /move.py | dd11292061947f3145cb005a2f669d9ce85a0b32 | [] | no_license | VariousMilkshakes/GRID-py | ffcabd35bd421ca56d1486f7b75c875d073940bc | d243be07016742ab129cb0e48ae64c0f5e0733fa | refs/heads/master | 2016-08-08T04:03:47.105610 | 2013-07-04T21:32:37 | 2013-07-04T21:32:37 | 11,161,532 | 0 | 0 | null | null | null | null | ISO-8859-4 | Python | false | false | 3,402 | py | # -*- coding: cp1252 -*-
from random import randint
import sys
print "Welcome to the this Test"
print "This is test 2: Sam like Woffles!"
print
gY = input("How tall do you want your grid?")
gX = input("How wide do you want your grid?")
oY = gY
oX = gX - 2
Xinput = input("Where do you want to start? (X)")
Yinput = in... | [
"bn.gladstone@gmail.com"
] | bn.gladstone@gmail.com |
77fdcf1dbfc3a529545552210737968c88bf404b | ffaeaf54e891c3dcca735347f27f1980f66b7a41 | /python/1.POP/1.base/01.helloworld.py | 015e87763fe1f07c2320ce7fe71f056ea13d317c | [
"Apache-2.0"
] | permissive | dunitian/BaseCode | 9804e3d8ff1cb6d4d8cca96978b20d168072e8bf | 4855ef4c6dd7c95d7239d2048832d8acfe26e084 | refs/heads/master | 2020-04-13T09:51:02.465773 | 2018-12-24T13:26:32 | 2018-12-24T13:26:32 | 137,184,193 | 0 | 0 | Apache-2.0 | 2018-06-13T08:13:38 | 2018-06-13T08:13:38 | null | UTF-8 | Python | false | false | 970 | py | '''三个单引号多行注释:
print("Hello World!")
print("Hello World!")
print("Hello World!")'''
"""三个双引号多行注释:
print("Hello World!")
print("Hello World!")
print("Hello World!")"""
# 单行注释 输出
print("Hello World!")
# 定义一个变量并输出
name = "小明"
print(name)
print("x" * 10)
print("dnt.dkill.net/now", end='')
print("带你走进中医经络")
print("dnt.d... | [
"39723758+lotapp@users.noreply.github.com"
] | 39723758+lotapp@users.noreply.github.com |
b6191a17aaf91109773e1e4d016a0f29112fe0f6 | d46bae120d44ccec2ac00aa6f7bf2bde744dde73 | /venv/bin/python-config | 570bc983cb0570a1347c2d2bb79d4ba0f54f6602 | [] | no_license | Link-yu/FlaskProject | 9f5bbe4596e2a6212cc8764b36348d9326e5b014 | e3d560067a5ca6d7e4cccc626ea56b9179b0340d | refs/heads/master | 2020-12-02T09:59:53.753105 | 2017-07-11T12:24:45 | 2017-07-11T12:24:45 | 96,673,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | #!/home/yupaopao/myPythonProject/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versio... | [
"kevinyulk@163.com"
] | kevinyulk@163.com | |
af891e3712afa7d736c6effa451ec60674ec01ed | 8504d656fa7badf8aba07ee4930c4d6b7b886e3c | /news_portal_api/wsgi.py | b6a9ff44f93ecdff4d45e8d9d0ac81e58d81b71a | [] | no_license | SarojRajTiwari/web_api_final | a35a8cb4f55b22cf661901ad12b31c878b7db0a6 | 2ed85ce6566b59e25f554c5a976202954317ca76 | refs/heads/master | 2022-12-12T06:44:13.643069 | 2019-12-02T07:50:07 | 2019-12-02T07:50:07 | 225,308,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for news_portal_api 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"sarojrajtiwari5@gmail.com"
] | sarojrajtiwari5@gmail.com |
8de1127722d96b24e0ea4a854844cb853d233569 | 7193be8e52b2095d8b6472f3ef2104843dca339e | /Project5-Capstone/the_dummy_variables/josh/testing/test_relative_path.py | 1f24c6af184d5ae1c59feb6189e85136b5bb7ee5 | [] | no_license | vuchau/bootcamp007_project | 4b0f37f49a1163ea6d8ee4143a5dcfdef0d352dd | ffbd0f961b18510fc72fd49770187ec1b4b013ae | refs/heads/master | 2020-03-20T13:19:58.812791 | 2017-06-08T05:13:24 | 2017-06-08T05:13:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | import os
file_dir = os.path.dirname(__file__)
print file_dir
dirname = os.path.dirname
print dirname(dirname(os.path.abspath(__file__)))
| [
"jlitven@gmail.com"
] | jlitven@gmail.com |
a81b7b040209bbe9e4e5f1677ea8da5097ef6593 | 906297c4f691b03e65b454bf9c12ab0331e53589 | /cron/tasks.py | b05b58e0b7ff3f2b13ed3fe898d4431d67695957 | [] | no_license | unamatasanatarai/django-movie-theater | 5798a54044a889c71f937865fe3adfbe477eb6ab | 7d0cd27738b330bfe67eef1a35d2827c2137a222 | refs/heads/master | 2021-01-23T15:07:47.382052 | 2017-09-07T06:33:13 | 2017-09-07T06:33:13 | 102,700,159 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from celery import task
from theater.models import SeatTentative, SeatBooked
from datetime import datetime, timedelta
from rest.communicate import Communicate
@task()
def trim_tentative():
elements = SeatTentative.objects.filter(created_at__lte=(datetime.now() - timedelta(minutes=3)))
movie_ids = elements.val... | [
"piotr.grabowski@interak.pl"
] | piotr.grabowski@interak.pl |
0c3d4e6d095391de301cf46bf58d774a8b2830a2 | 3a12b346c87b05dac63951b3bc9cdd882d5ec9ed | /com/huai/learning/customLoss.py | 5fe805bc9a0714a658b8ffb5710a0f4cfedfc37e | [] | no_license | namebxl/my_tensorflow | 96005d656d33cdb5a8c4a54380adbff5ba697d6f | 43e7ccdc94125b125476747b1897795171ad4358 | refs/heads/master | 2021-06-30T02:51:26.574885 | 2021-01-20T08:05:51 | 2021-01-20T08:05:51 | 213,275,207 | 0 | 0 | null | 2019-10-07T01:52:24 | 2019-10-07T01:52:24 | null | UTF-8 | Python | false | false | 1,002 | py | import tensorflow as tf
from numpy.random import RandomState
batch_size = 8;
x = tf.placeholder(tf.float32, shape=(None, 2), name="x-input")
y_ = tf.placeholder(tf.float32, shape=(None, 1), name="y-input")
w1 = tf.Variable(tf.random_normal([2, 1], stddev=1, seed=1));
y = tf.matmul(x, w1);
loss_less = 10;
loss_more ... | [
"1757153156@qq.com"
] | 1757153156@qq.com |
bfce90df81d846a317456efccf614e1b2558a113 | 495fbb4b87586186480826273abf55b947d9c366 | /Adivinar_el_numero.py | 989c64be349a9c164f29fa88863b8a2871297b8a | [] | no_license | GitBis/-FP-_Labo06_-00370819- | d7b777a76096e7936e5114b10516876f11f360b0 | 074166f4caefc9a3e4cbd214e40df6556f4dfd24 | refs/heads/master | 2020-08-13T04:06:13.414501 | 2019-10-16T05:53:26 | 2019-10-16T05:53:26 | 214,902,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import random
print("ADIVINA EL NUMERO")
comprobar = True
contador = 1
while comprobar == True:
n = int(input("Ingrese un numero del 1 al 10: "))
if n > 0 and n < 11:
all = random.randrange(1,10)
if n == all:
print(all)
print(f"numero de intentos: {contador}")
else:
... | [
"00370819@uca.edu.sv"
] | 00370819@uca.edu.sv |
a135ba849e3b4b36122c67ab34cbc6fde8d2f519 | 702c7b618951339f31b4161f55bbbd8f3ffd7811 | /hw1/hw1.py | 94d3f51e7f777b1727c9f5569e4fa7bc34d19109 | [] | no_license | erhla/machine-learning | 839f581676cb003d304a2f6efc0528885fce993c | 6e9bb6fa377a91039695a717f932f14e5f2214d9 | refs/heads/master | 2020-05-04T23:31:05.531591 | 2019-05-29T20:12:28 | 2019-05-29T20:12:28 | 179,546,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,773 | py | '''
Homework 1
Eric Langowski
'''
import pandas as pd
from sodapy import Socrata
import geopandas
import shapely
#Problem 1
CRIMES_18 = '3i3m-jwuy'
CRIMES_17 = 'd62x-nvdr'
CENSUS_TRACTS = '74p9-q2aq'
def get_crime_data(cid):
'''
gets crime data from City of Chicago API
'''
client = Socrata('data.cityo... | [
"langowski@cs.uchicago.edu"
] | langowski@cs.uchicago.edu |
4e72b71582b2240f32ecf38474428072ef1b7413 | 9e7b9e91b8425061a5ad36e0dd630a799ec79f6f | /opencv_cookbook.py | 49d0d5b8c67cdd2753d61353ec3e42ef9014ce83 | [] | no_license | OlgaBelitskaya/colab_notebooks | c27fad60f7e4ca35287e2561487b5d9d82efde43 | d568149c8bcfb0025f7b09120ca44f639ac40efe | refs/heads/master | 2023-07-07T23:02:49.289280 | 2021-08-14T08:16:38 | 2021-08-14T08:16:38 | 158,067,383 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,397 | py | # -*- coding: utf-8 -*-
"""opencv_cookbook.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GD7Oi1LtFaEi8VOjiBM5cj5ayWpaejaf
# OpenCV Cookbook
## Libraries & Color Tools
"""
import warnings; warnings.filterwarnings('ignore')
import urllib,cv2
fr... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
88ea9f503fbe4878090275c2480106a7648b48f2 | f94e4955f9d16b61b7c9bff130b9d9ee43436bea | /labs/lab06/lab06.py | 1c1dac20000f742c21337b538d3d8ac3b9563bc4 | [] | no_license | j2chu/dsc80-sp19 | bd1dade66c19b920a54b0f8551fd999185449f86 | dd48210a7cbadfb6470104b275f34085437e4766 | refs/heads/master | 2020-06-01T23:22:32.727488 | 2019-06-07T01:46:11 | 2019-06-07T01:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,275 | py | import os
import pandas as pd
import numpy as np
import requests
import bs4
import json
# ---------------------------------------------------------------------
# Question # 1
# ---------------------------------------------------------------------
def question1():
"""
NOTE: You do NOT need to do anything wit... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
24966601f3f870f304dc6d67df48fa497d89c512 | 46d04bd3a1f8d53b147133b4b7a8c0c4fa58d9cd | /app/views.py | 2b2d2323ce93f7cddcf6e68625ba576e2bd2e6e0 | [] | no_license | RitikaSethiya/TB-strategic-planning-Web-App | f2c63d97413d1c384b591948cf812ac8dcf071c1 | be1b9b3f5d510696cd8a76160426977032d27ed1 | refs/heads/master | 2022-08-13T19:10:01.334557 | 2020-05-11T11:59:40 | 2020-05-11T11:59:40 | 263,017,987 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,346 | py | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
# Python modules
import os, logging
import pandas as pd
import numpy as np
import requests
import base64
import pickle
import json
import tablib
# Flask modules
from flask import render_template, request, url_for, red... | [
"ritikasethiya99.rs@gmail.com"
] | ritikasethiya99.rs@gmail.com |
5bec3ae23b68e6c2e0be46181e3e6e1f669fcd98 | 7518d339026e523ca99e77b7b49edfe71b7da5c5 | /main.py | 8b72a3d7569f8ca47bb5852ececdb44cac03e96b | [] | no_license | SP185221/FileAgent_Client | 475c76ed2ab3a705b8643708f3e24f629661b57b | 188d4d509c2d127afed8736d26b74805284e4b70 | refs/heads/main | 2023-07-25T08:03:22.780456 | 2021-09-02T16:18:01 | 2021-09-02T16:18:01 | 402,486,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,751 | py | import socket, tqdm
from tkinter import*
from threading import Thread
from tkinter import filedialog
import requests
import wget, os
from PIL import Image
from time import sleep
from zipfile import ZipFile
#import pm_app_fxn as pm
output1 = ['']*1
list_of_sent_files = []
class main_App(Thread):
def __init__(self... | [
"noreply@github.com"
] | SP185221.noreply@github.com |
79115cc0889d1e2a25aaab0b5bb5644d6b83c037 | a4b621ef4230c27ddec5a4c1290f2e0c57e40019 | /AK_RPversion.py | 29bbcef2ed0e84d3c5f66352b6551262107c1064 | [] | no_license | EliReid/4Button-Expert | 54479297f168fe534a9e5866ba267968337c0011 | f5971182a467fc0ff507d7a4ec4904d03803a56e | refs/heads/master | 2020-04-28T12:08:03.942819 | 2019-02-21T22:15:56 | 2019-02-21T22:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,752 | py | ## uses only RP and AK planning units and unit tasks, so far
## perception of the game is hacked, so far
import sys
sys.path.append('/Users/robertwest/CCMSuite')
#sys.path.append('C:/Users/Robert/Documents/Development/SGOMS/CCMSuite')
import ccm
from random import randrange, uniform
log = ccm.log()
# log=ccm.log(ht... | [
"noreply@github.com"
] | EliReid.noreply@github.com |
78bdca14128518d133ddf2e80c557c7d2e26fd7f | 933493356546a769dda5c67f0a89eed9c970afa8 | /ch6/q57.py | e42bbe6997419cc37dcd0703bfc6f51610b9fcca | [] | no_license | irtfrm/NLP100 | 233aa3b76d14dd89fe1d8f6d2e204ca3566bd5f5 | ee0acedf7d2b00fe23f457120313d621fd1f098f | refs/heads/master | 2021-08-06T09:47:38.238306 | 2020-06-05T08:18:08 | 2020-06-05T08:18:08 | 184,555,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import xml.etree.ElementTree as ET
def gets_dot(tokens, deps):
ans = 'digraph {\n'
ans += ' token%s [label="%s"];\n' % (0, 'ROOT')
for token in tokens:
ans += ' token%s [shape=box, label="%s"];\n' % (token['id'], token['word'])
for dep in deps:
ans += ' token%s -> token%s;\n' % (dep['governor... | [
"furukawa.tomoya@g.mbox.nagoya-u.ac.jp"
] | furukawa.tomoya@g.mbox.nagoya-u.ac.jp |
e9eef0ae487bb90ae983c14902b33bc6d26c7a4f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/313/105928/submittedfiles/jogoDaVelha.py | 6702e638a0b195b5ad2f3fe0c84a675088f19cc5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | print (" BEM-VINDO AO JOGO DA VELHA ")
print("O primeiro jogador será o (X) e o segundo o (O) ")
posicao = """ posicoes do jogo
1 | 2 | 3
-----------
4 | 5 | 6
-----------
7 | 8 | 9
"""
print (posicao)
posic... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bc95461ad6fdc0ef95c4d671c174b643f840fd99 | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_1002.py | b90ab7cd42413d530cb002dd703cd4c028e3c9d1 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import sys
import math
n = int(sys.stdin.readline().rstrip())
def getAns():
x1, y1, r1, x2, y2, r2 = map(int, sys.stdin.readline().rstrip().split())
leng = math.sqrt((x2-x1)**2+(y2-y1)**2)
if r1 == r2 and x1 == x2 and y1 == y2:
return -1
if r1 > r2:
r1, r2 = r2, r1
if leng > r1+r2:
return 0
elif leng =... | [
"k852012@naver.com"
] | k852012@naver.com |
4b8450ca316cbf700f09c76a6c374e71ef1ce7c9 | 62b78ad6d3ec041ad20e4328d1730d815c9e35f1 | /Twosteps.py | 8c659c092569737b987696cb0d9e96f753e7dd19 | [] | no_license | Jamshid93/ForLoops2 | 7fe5b3240370d88a888f2d4609fb6d7787965a4d | 296de0ccc51872001e45e20926b91a4528abd7a5 | refs/heads/master | 2022-01-26T05:22:18.206075 | 2019-07-20T04:12:37 | 2019-07-20T04:12:37 | 197,874,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | for item in range(3, 14, 2): # this is code result 3,5,...13. Because after 14 writin 2
print(item) | [
"hamzayevjf@gmail.com"
] | hamzayevjf@gmail.com |
090b3c526b14fc85e5ddfe57bd932deff3860bf7 | 9d4bf5f90cd0a8eb97e7e48a0545f349c3b17b45 | /1-100/Letter_Combinations_of_a_Phone_Number.py | f86071b4c06a57181e25e64c02981526a3a4edc6 | [] | no_license | Ys-Zhou/leetcode-medi-p2 | 8201a6d1ee7e4cb6fe8bc9516530a8b8b3e26e8c | df3495d0bc504237305b11974906f27f8fd124e9 | refs/heads/master | 2021-10-07T09:07:28.974814 | 2018-12-04T09:23:21 | 2018-12-04T09:23:21 | 111,872,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # 25 / 25 test cases passed.
# Runtime: 36 ms
class Solution(object):
def letterCombinations(self, digits):
"""
:type digits: str
:rtype: List[str]
"""
if digits == '':
return []
letters = {'2': ['a', 'b', 'c'],
'3': ['d', 'e', 'f'],
... | [
"zhouyan1993ys@gmail.com"
] | zhouyan1993ys@gmail.com |
e36bbc0c4240de429927358094f5d3cd4c54a838 | f7e4ba62191d39b050eab6cbf196c9000751a779 | /examples/function_param.py | b285fc9ff46f8f155c969867b438a10ade9d1976 | [] | no_license | heimo-tiihonen/hello-world | 04bdc59f7806b9c851adf43dfa6312ed219bac79 | b1d513242a0511f1866874cec9b410484b186038 | refs/heads/master | 2021-01-09T06:16:34.729181 | 2017-02-04T19:41:57 | 2017-02-04T19:41:57 | 80,949,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | def print_max(a, b):
if a > b:
print(a, 'is maximum')
elif a == b:
print(a, 'is equal to', b)
else:
print(b, 'is maximum')
# directly pass literal values
print_max(3, 4)
x = 5
y = 7
z = 'Testi'
# pass variables as arguments
print_max(z, y)
| [
"heimo@dsl-espbrasgw1-50dfb2-69.dhcp.inet.fi"
] | heimo@dsl-espbrasgw1-50dfb2-69.dhcp.inet.fi |
1cdb9ccb8eb20c40eb3ca82b06c082532bc3b005 | db2e1604cdd45df402b93cd72b36e1995f0ded57 | /baidu_baike/baidu_baike/middlewares.py | 69c61f1ce3dc83c9f549186ad6a2fc5baa47e026 | [] | no_license | JimyFengqi/baidubaike | 9bd558bea58d728ef1d256aa9746978b058a138f | 6bf6114494db485107f8869ed79ec70200ed26c2 | refs/heads/master | 2020-04-07T10:46:12.906874 | 2018-04-26T07:52:49 | 2018-04-26T07:52:49 | 124,205,144 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class BaiduBaikeSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"jmps515@163.com"
] | jmps515@163.com |
67f1386cbcd7aa7765debd357ae2e31c5ecdad81 | 8ab2c341b570e26c8a06e7c5e9e95e3e2a108aba | /build/tasks/catkin_generated/pkg.installspace.context.pc.py | 1a3ac85d66d27b61334ac967aed258bf919d3a93 | [] | no_license | Aquavaders/Vader3-Control | c6429d58d208f303d5ed309c488d06f140ab08b5 | 8523e7ddda78b747106586bacfac14e99201741b | refs/heads/master | 2020-07-29T04:01:25.852450 | 2020-02-27T20:04:36 | 2020-02-27T20:04:36 | 209,660,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "tasks"
PROJECT_SPACE_DIR = "/home/ala... | [
"AlaaAnani"
] | AlaaAnani |
c243ec1a490acd1d8b165d7a7ddef83cc8088bf6 | 2c09e0fa8b9c84af6686962a8d8569af298573d7 | /client/GUI.py | 8c42ec4ee18b6ba646fd58bec03a55c3b0f80fd8 | [] | no_license | eldraco/Adeept_RaspClaws | 62e3dd4259e909c7eb5b9809e0815cf616277975 | 2d7c56016091678803410131ad328c2cae1b8256 | refs/heads/master | 2022-04-25T21:22:12.775696 | 2020-04-26T19:25:49 | 2020-04-26T19:25:49 | 256,761,979 | 1 | 0 | null | 2020-04-18T13:35:03 | 2020-04-18T13:35:03 | null | UTF-8 | Python | false | false | 25,732 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# File name : client.py
# Description : client
# Website : www.adeept.com
# E-mail : support@adeept.com
# Author : William
# Date : 2018/08/22
from socket import *
import sys
import time
import threading as thread
import tkinter as tk
try:#1
import ... | [
"noreply@github.com"
] | eldraco.noreply@github.com |
b91cd725562befb469c66d4ce9802baecaa2cf54 | e999577db526bdc87ab83d30d393e06f921c2326 | /multiagent/multiAgents.py | 2dab318ae711f77bae0c426c49a25673c4ad1a2c | [] | no_license | anant-k-singh/Pacman-AI | e4a630de420ad942fef8b0c5ab0d6799859c0737 | 503730f7baa5fac690cedcd6f65cc592bb7758c3 | refs/heads/master | 2022-01-22T18:23:32.347366 | 2019-07-31T17:24:26 | 2019-07-31T17:24:26 | 115,016,037 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,272 | py | # multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.e... | [
"anant02sep@gmail.com"
] | anant02sep@gmail.com |
c6d6c965204756070013e9e873147cede25d1b53 | 70fd9545d8f273db2126ac8bb0715c90838fe98b | /polls/serializers.py | 42ab6011a5fffa46a4744713a8cd70ab5d82ac49 | [] | no_license | Gohstreck/Backend | 6fd99e0c304054d6b60e44111b56b3453c78109b | 6052e6ffecf3c297d1256f51a695d55b89b3b883 | refs/heads/master | 2020-04-04T12:52:39.966936 | 2018-11-12T04:13:20 | 2018-11-12T04:13:20 | 155,940,576 | 0 | 0 | null | 2018-11-03T01:58:44 | 2018-11-03T01:58:44 | null | UTF-8 | Python | false | false | 2,459 | py | from rest_framework import serializers
from . import models
class PersonSerializer(serializers.HyperlinkedModelSerializer):
groups = serializers.HyperlinkedRelatedField(
many = True,
read_only = True,
view_name = 'group-detail'
)
articles = serializers.HyperlinkedRelatedField(
many = True,
... | [
"equiroz@ciencias.unam.mx"
] | equiroz@ciencias.unam.mx |
43ded90cced3f1255adfe6cd098a2966f73fb180 | 42705b3049418c3dc2815a0262aa814c6a2e3d9e | /feat_eng/funcs.py | dcc248c03ab3520bd17e5e378f3b4fea24b3f0f4 | [] | no_license | ppiont/cnn-soc-wagga | 617f4a0fecd6ac0b7d6fac2cb7171df9bfbf74a2 | 5152faf59c38c4b168a1dc9639fa8d13c16a91cd | refs/heads/master | 2023-07-11T09:01:08.786970 | 2021-08-14T12:17:09 | 2021-08-14T12:17:09 | 257,276,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 30 18:32:01 2020.
@author: peter
"""
import numpy as np
def min_max(array, axis=(0, 1, 2), rm_no_variance=True):
"""Min-max scale an array and optionally remove features with no variance.
Parameters
----------
array : ndarray
... | [
"piontek0@gmail.com"
] | piontek0@gmail.com |
4b9670f8ab0b81af5668d3c702c93f533e2797c4 | 48581671e6fe9f59633aa9527c07d2724783a45c | /backend/Sunshine/api/urls.py | 13f6022e5be3c9148cab22057ca78eec281224c2 | [] | no_license | suma2001/SeniorSunshine | 14fdcf22877c30d3f81d0f159c3b91df91e5bc44 | 54274d3b2f1a87fcb8926313a32bc4234fe48572 | refs/heads/master | 2023-02-03T03:24:26.871423 | 2020-12-11T14:08:02 | 2020-12-11T14:08:02 | 320,590,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | from django.urls import path
from .views import *
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.authtoken import views
from knox import views as knox_views
urlpatterns = [
path('register/', RegisterAPI.as_view(), name='register'),
path('login/', LoginAPI.as_view(), name='log... | [
"sumashreya.t18@iiits.in"
] | sumashreya.t18@iiits.in |
4345a2c669d02154dade74de723eb3affdd3c2a8 | 07252bc9ce0ba693e8c3cd0ad969ab7e9f336083 | /apps/posts/forms.py | d2e808cc4daa9f7550ad748f64978972f26c3e4b | [] | no_license | Bakal1990/project | 9f038ae2f821e737ae3cd39e3c4d1efcf8db90e1 | 3673c621383f8366572b083be203f49074eba55e | refs/heads/master | 2020-12-25T19:26:10.888707 | 2015-02-16T19:31:09 | 2015-02-16T19:31:09 | 30,318,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from django import forms
from .models import Post
from profiles.models import User
class LikePostForm(forms.Form):
post_id = forms.CharField()
user_id = forms.CharField()
def clean_post_id(self):
post_id = self.cleaned_data.get('post_id')
return Post.objects.filter(id=post_id).exists()
... | [
"molotovxiii@gmail.com"
] | molotovxiii@gmail.com |
3a79af3088336b15e677b0d3a821806575a98c86 | 2a466b71eb9f24c58ca6ba52a379870485d19140 | /src/cert_scanner/report/progress_graph_generator.py | ff14fd2a750106e8b5427dfc8ef64f1e2832767a | [
"MIT"
] | permissive | kgarwood/digital_certificate_scanner | 5df0fb47193f838353a0cadb696d49b8acbf8351 | ede1344144fa62349c0076d5618eccfc4131f98f | refs/heads/master | 2020-03-30T07:42:53.860968 | 2018-10-02T16:12:47 | 2018-10-02T16:12:47 | 150,961,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,102 | py | import cert_scanner.util.file_name_utility as file_name_utility
import cert_scanner.util.certificate_scanner_utility as \
certificate_scanner_utility
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
from matplotlib.ticker import MultipleLocator
import os
def generate(original_df,
... | [
"kevin.garwood@digital.cabinet-office.gov.uk"
] | kevin.garwood@digital.cabinet-office.gov.uk |
d23876d3a93f905357e7be2a1449341ef64f86a7 | f4718efa9d34fabad15f1b4ef856c4639eb6e718 | /Test.py | 0f3fceb541fd26b23c09661bee50a64c921d957e | [] | no_license | wilee1224/Data_wrangling | 98faa7428da2ec28dba5ad524d811bfadaf2db2b | ba4d88a987a38a4c1850f2954073d423300f1652 | refs/heads/master | 2020-03-12T04:14:49.194795 | 2018-08-06T12:24:57 | 2018-08-06T12:24:57 | 130,441,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import xlrd
book = xlrd.open_workbook("SOWC 2014 Stat Tables_Table 9.xlsx")
for sheet in book.sheets():
print sheet.name
| [
"wilee1224@gmail.com"
] | wilee1224@gmail.com |
2ca4b0788bfc54be10e712eabe0884ac23c7bf0a | ba9d6e33133709eb8ef9c643e50646596f8ab98b | /homeworks/hole_detection.py | 79f5583093614b7b290b86aac89e248e3a1b6e74 | [] | no_license | otniel/computer-vision | 2eb5588d7662ada0999001083e5562e3c3e69fd1 | 82430fd60c21d3f6c6609b429b051b25526b0102 | refs/heads/master | 2021-01-25T07:07:51.592712 | 2015-05-18T17:29:10 | 2015-05-18T17:29:10 | 29,542,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | import Image
import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import argrelextrema
from utils.tools import normalize_rgb_image, normalize_grayscale_image
from utils.detect_peaks import detect_peaks
class HoleDetection:
def __init__(self, image):
self.image = normalize_rgb_image(image)... | [
"otnieel.aguilar@gmail.com"
] | otnieel.aguilar@gmail.com |
f024098d382063eb23c1aa5ac661a60dd1e56307 | 0556e11758ec9a632d4b1406be1597c6900aa93d | /tutorials/tutorial05/05_SPDE_on_fenics_solver.py | 99cad0868dac1a4b573f149230b8cc61853a6a92 | [
"MIT"
] | permissive | mtezzele/ATHENA | 85b5f1dd44180314ab9548a7cac054ca8a77b9df | d8f48680e035a4d51d51c1883932b46fd0bd8da8 | refs/heads/master | 2023-05-30T10:53:27.722329 | 2023-04-27T22:05:40 | 2023-04-27T22:05:40 | 226,117,142 | 0 | 0 | null | 2019-12-05T14:10:57 | 2019-12-05T14:10:56 | null | UTF-8 | Python | false | false | 5,930 | py | from dolfin import *
import matplotlib.pyplot as plt
import numpy as np
import sys
import os
from pathlib import Path
import warnings
warnings.filterwarnings('ignore')
def compute_mesh_map(mesh, dim):
m_map = np.zeros((dim, 2))
for j, cell in enumerate(cells(mesh)):
m_map[j, :] = cell.midpoint().arra... | [
"francesco.romor@gmail.com"
] | francesco.romor@gmail.com |
4acf925d2f474e88d0b195933e8e7df31a2aa765 | 9446feb2a94486ac16c585f712dbcbea7d112a9d | /src/taskmaster/cli/master.py | b78926059cf4a36ee7d184b223ba2326de9179e4 | [
"Apache-2.0"
] | permissive | jdunck/taskmaster | c16c879a546dd2ac383f804788e2d8ae2606abd1 | 04a03bf0853facf318ce98192db6389cdaaefe3c | refs/heads/master | 2023-08-23T19:29:22.605052 | 2012-05-16T00:52:24 | 2012-05-16T00:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | """
taskmaster.cli.master
~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
def run(target, reset=False, size=10000, address='tcp://0.0.0.0:3050'):
from taskmaster.server import Server, Controller
server = Server(address, size=size)
contr... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
dac71081393db6a981bf3c583d5697793ad0de22 | 24ce8e56cd54c93c5a285089acb1825132e9e2eb | /495.TeemoAttacking/teemoattacking.py | ebdaf083b15431291215be7042244143c3ef7706 | [] | no_license | mayuripatil07/LeetCode | 6c7d2148e05fe2c086412d38a7cb71e6e74eee87 | 4617b11d9487385522ba665ca34b378659afe02c | refs/heads/master | 2023-01-13T11:03:49.805792 | 2020-11-01T21:41:59 | 2020-11-01T21:41:59 | 261,207,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | class Solution:
def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:
if not timeSeries:
return 0
poison_time = timeSeries[0] + duration
poison_condition = duration
for i in range(1,len(timeSeries)):
if poison_time <= timeSeries[i]:
... | [
"mpatil7@binghamton.edu"
] | mpatil7@binghamton.edu |
2d399e7009cc07f480db636304e56d03c3aa52d9 | 32d4cbfce0edf448e5c6518a3dc5fb7a27d74b88 | /build/lib/malaria/study_sites/SugungumAgeSeasonCalibSiteBabies.py | d572d77d05d0948e88dbcdb4bceecce749917500 | [] | no_license | bertozzivill/dtk-tools-malaria-old | 7458164f35452d3ede99d03d709197a7108366ba | 9aef758261b67c0b06520d8b74b7a9da537448fc | refs/heads/master | 2020-03-24T19:24:02.338717 | 2018-12-17T21:53:21 | 2018-12-17T21:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,717 | py | import logging
import os
import numpy as np
from calibtool.analyzers.Helpers import season_channel_age_density_csv_to_pandas
from calibtool.study_sites.site_setup_functions import \
config_setup_fn, summary_report_fn, add_treatment_fn, site_input_eir_fn
from calibtool.study_sites.DensityCalibSite import DensityCal... | [
"jsuresh@idmod.org"
] | jsuresh@idmod.org |
2e9f65cb125310604066c976eeca51526b77e980 | 4b226dfa9c17da6bab4c2e1831de057b049a7919 | /monitoring/availability.py | 17860d236749fd6a9fab47a417a837db94250c16 | [] | no_license | eea/inspire.harvest.feasibility.tools | 616070cff9608c09bb3543be711e7d66152c17a5 | b4994db8bd02ccfc2c5d5bf9fe5c8efbfda55bc3 | refs/heads/master | 2023-08-01T06:27:52.888886 | 2018-11-15T16:09:17 | 2018-11-15T16:09:17 | 142,995,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | py | import logging
import csv
from datetime import datetime
import pytz
import requests
from monitoring.common import HTTPCheckResult, Monitor, get_service_urls
logger = logging.getLogger("availability_check")
info, debug, error = logger.info, logger.debug, logger.error
def check_availability(url, url_id, output_path, ... | [
"andrei@duhnea.net"
] | andrei@duhnea.net |
2917ef2371964c06a2bedd3acf1b8cd301c7a4b7 | 216fe95ca1d92c6071155cf59c36789edcb27123 | /languageBot/messengerBot/urls.py | f6e9f82f5d5d8ff77f08b523aed294744dc7ad97 | [
"MIT"
] | permissive | singhvisha/LanguageBot | 16b5b153e55b432bfa108a7add5a087b38af7722 | 9cef316bceb2f6951863af2fa869398fb5242519 | refs/heads/master | 2023-05-31T11:26:41.773724 | 2020-07-12T17:49:15 | 2020-07-12T17:49:15 | 279,117,273 | 0 | 0 | MIT | 2021-06-10T23:09:31 | 2020-07-12T17:46:28 | Python | UTF-8 | Python | false | false | 192 | py | from django.conf.urls import include, url
from .views import messengerBotView
urlpatterns = [
url(r'^21975e0a3c7ab17aa37124158bbda569af363d15eacb576e06/?$', messengerBotView.as_view()),
] | [
"vishalsingh600700@gmail.com"
] | vishalsingh600700@gmail.com |
40115813710fb922b4615d58c11ab7d51905be62 | 9de9beaf657bf3d5967997b301753c3d1cd03d51 | /2. SLAE/errors/errors.py | 925669e7fe86341252a64bbc1bc78c60a59c5b8c | [] | no_license | karmapolice-0/Numerical-things | e87116b86c52b63424137f72ae079c3a48a7154b | 41852fb84fed71a0a5673eaa977a476b95733e59 | refs/heads/master | 2021-05-18T19:35:04.576327 | 2020-04-04T19:59:14 | 2020-04-04T19:59:14 | 251,380,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | class MatrixError(Exception):
def __init__(self, msg=""):
self.message = msg
def __str__(self):
return self.message
class DimensionError(MatrixError):
def __init__(self, err, *args):
self.message = err
class NotListOrTuple(MatrixError):
def __init__(self, err, *args):
... | [
"akselivj@gmail.com"
] | akselivj@gmail.com |
fdf8d0c74a52e8f39d8f597575a9abaa39184b7d | 31996e49289655f60b71ed176cc94e32648ffe40 | /criterion.py | 3354fd91fc4305af5fdb94aa158db4645a80560f | [] | no_license | Will3577/MultitaskOCTA | 064fe7d437fe4a234653f4e5ba50faccc6f4bfb6 | b6719e10318421bc841daf66468c52066bec0f7a | refs/heads/master | 2023-06-24T06:59:05.763417 | 2021-07-13T09:05:55 | 2021-07-13T09:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,651 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 14 10:40:54 2019
@author: wujon
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import surface_distance
# import nibabel as ni
import scipy.io
impo... | [
"11712616@mail.sustech.edu.cn"
] | 11712616@mail.sustech.edu.cn |
817f463578dec04dd4c4938523da72404795d281 | f5b31994dfbe4effa7868557f223952d1a2dc0f6 | /src/mic.py | e648fca6167cfaad255f044ac0b3bb511beb4322 | [] | no_license | jacobsny/hackathon_checkin | 96f39a4f4b55599e214617c439bbc63159a0fcf6 | ff588c8511f4cf496bdf53dee1e534977a6e5a8a | refs/heads/master | 2020-07-29T21:06:08.345970 | 2019-09-22T13:14:05 | 2019-09-22T13:14:05 | 209,959,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,423 | py | from __future__ import division
import re
import sys
from google.cloud import speech
from google.cloud.speech import enums
from google.cloud.speech import types
import pyaudio
from six.moves import queue
# Audio recording parameters
RATE = 16000
CHUNK = int(RATE / 10) # 100ms
class MicrophoneStream(object):
"... | [
"jacob.snyderman@gmail.com"
] | jacob.snyderman@gmail.com |
9090a6049a51ef8672151f75d28c7f01c75a1436 | fc3deae46d7104924d9b982638f38eb42eadbb9f | /yrnetwork/setting.py | 0fd31990a155271ff3f6b9b4c0a28ee4958148c9 | [] | no_license | THRILLERLEMON/YR_Greening_Network | 6fc578d4a94bf240b954181d9ea8d1cf18fb172d | 8745679d58c3e459d88524e0afae18e072b18e0a | refs/heads/main | 2023-03-19T00:08:28.187235 | 2021-03-05T13:21:53 | 2021-03-05T13:21:53 | 303,892,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | class BaseConfig(object):
RESULT_PATH = ''
LUC_NET_DATA_PATH = 'D://OneDrive//JustDo//The_Greening_of_YR_from_the_Perspective_of_Network//Data//LUCNetData//'
LUC_NET_DATA_HEAD = 'InfoForLUCNet'
LUC_NET_DATA_TAIL = '.csv'
GEO_AGENT_PATH = 'E://MY PROGRAM//YR_Greening_Network//data//GeoAgent//ForCarto... | [
"thrillerlemon@outlook.com"
] | thrillerlemon@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.