blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
317dad88744c1269052736adadbc85b1b3cbd13d | 27ff304d692664a492987904f195a58a342d5864 | /python/scripts/blast_checker.py | 63b24b0f557d0400194c36cbb2f21a8a56c57d2f | [] | no_license | grmwld/crg | b252387b01fc77fa31bae0c2b9824cd86f583e36 | 330382f7734e7af38e43f64594ed119eebad0cad | refs/heads/master | 2021-05-27T23:20:02.386205 | 2010-06-24T21:45:56 | 2010-06-24T21:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | #! /usr/bin/python
import sys
import os
import optparse
import shutil
import logging
from cStringIO import StringIO
sys.path.append('/users/rg/agrimaldi/Code/python/python/lib/')
from AGBio.ncbi.BlastWrappers import *
from AGBio.Utilities import *
sys.path.append('/users/rg/mmariotti/libraries')
sys.path.append('/users... | [
"sopo.dev@gmail.com"
] | sopo.dev@gmail.com |
f4f6ff305e1272bdd3cbe21061c7609ed4be5b08 | 9cef360429d6a5c7eee4e223a132760a11d955dc | /ex1.py | bdfee7d05f3b168680bb2c66e53b3d7dac09e02d | [] | no_license | JIANG09/LearnPythonTheHardWay | 12df059ad02e3d413b0fb8701fb718ce8dcb25c7 | 6f5dc3554e6f02e74b227b89254fb47158d227f0 | refs/heads/master | 2021-07-10T19:00:05.313674 | 2018-12-11T14:11:07 | 2018-12-11T14:11:07 | 128,955,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # coding=utf-8
print("Hello World!")
print("Hello Again")
print("I like typing this.")
print("This is fun.")
print('Yay!Printing!')
print("I'd much rather you 'not'")
print('I "said" do not touch this.')
print('希望爸爸胃口好心情好!') | [
"2907411054@qq.com"
] | 2907411054@qq.com |
a9d72cd94acdd3bc036f28fd6640c9053f57bcc8 | e366e330fcf6c4f35e337056f73e65fb38bf351a | /coordenadas.py | 077436ae877391917839124eec331bd88a8839a4 | [] | no_license | CBGO2/Mision-02 | 5df5b7c67df6f2d62a24211ded1c5be67415ba9e | d5fa407d7466d8b731044d34f01cfd26b0b14202 | refs/heads/master | 2020-03-26T22:50:08.595899 | 2018-08-22T03:52:31 | 2018-08-22T03:52:31 | 145,490,598 | 0 | 0 | null | 2018-08-21T01:42:40 | 2018-08-21T01:42:39 | null | UTF-8 | Python | false | false | 456 | py | # Autor: Carlos Badillo García, A01377618
# Descripcion: Usando las dos coordenadas dadas, descubrir la distancia entre ambas.
# Escribe tu programa después de esta línea.
ppx = int(input("¿Cuál es el valor de x1?"))
ppy = int(input("¿Cuál es el valor de y1?"))
spx = int(input("¿Cuál es el valor de x2?"))
spy = int(i... | [
"noreply@github.com"
] | noreply@github.com |
07750ee3854043de3103fc109c88235690b26540 | 234f1b4fadd5253837e8acfb134a4330be783862 | /alien_invasion/files/ship.py | 09b5f8ad9818597cbbe6faf455c17ab0a3a482df | [] | no_license | mozoku24/Python-Crash-Course | cad2b433a9aef8fdeb4be1650d6d012df389ae87 | 3590801c9cfe358edb8b9d0df591710794c65f13 | refs/heads/master | 2022-12-03T00:04:26.962319 | 2020-08-19T07:18:40 | 2020-08-19T07:18:40 | 286,694,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | """
ship模块,包含ship类,负责管理飞船的大部分行为。
"""
import pygame
from pygame.sprite import Sprite
class Ship(Sprite):
def __init__(self, ai_settings, screen):
"""初始化飞船并设置其初始位置"""
super(Ship, self).__init__()
self.screen = screen
self.ai_settings = ai_settings
#加载... | [
"noreply@github.com"
] | noreply@github.com |
f0128317036c9b966541e24a1e1efe172ad2fce5 | cc5eb8eb50d64ffbca780c42a908053ec549f295 | /python-in-a-day-scripts/ch12 program/script_002.py | 43129ebbb2a9f5b3ad633d6fc7d93d8accaedfbb | [] | no_license | bemagee/LearnPython | 328b1f7a9d5046fe1503aece8a5134a7dd2727d2 | a42565f8fb45f9e2ebbcdcf359ebb9092bf837c2 | refs/heads/master | 2020-12-13T02:45:30.308604 | 2016-10-24T03:09:12 | 2016-10-24T03:09:12 | 10,793,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Our epic programmer dict from before
epic_programmer_dict = {
'Tim Berners-Lee' : ['tbl@gmail.com', 111],
'Guido van Rossum' : ['gvr@gmail.com', 222],
'Linus Torvalds': ['lt@gmail.com', 333],
'Larry Page' : ['lp@gmail.com', 444],
'Sergey Brin' : ['sb@gmail.com', 555]
}
print epic_programmer_di... | [
"bemagee@gmail.com"
] | bemagee@gmail.com |
1612efa81047e7a20e0dadd4e871ca67fee01b1b | f879be78003d04f5332ea18373ef0de1a17f5817 | /ververica_sdk/models/delete_api_token_response.py | 06f93515c8b1b040224e70273134aed534c4b518 | [] | no_license | justlikemikezz/ververica-sdk | 8228b1d1e9bb9c0530842162f771f7708d1b1555 | b946aa879cc80ad25b8c746b8c2cdc6bde086cbb | refs/heads/master | 2020-12-22T15:58:27.469611 | 2020-01-29T00:33:21 | 2020-01-29T00:33:21 | 236,849,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | # coding: utf-8
"""
Ververica Platform API
The Ververica Platform APIs, excluding Application Manager. # noqa: E501
OpenAPI spec version: 2.0.0
Contact: platform@ververica.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six... | [
"michael.handria@bird.co"
] | michael.handria@bird.co |
4038aed1a3543a7584fd17318abc90b7b2ac4ea7 | e3932a292695efbac57ae7adf5bd9c5554a88e39 | /binding/python/setup.py | dd77ed90fa69813d54e55eef7604a48e1e43a0f5 | [
"MIT"
] | permissive | makiolo/Calculate | 1356e00628ef7f90423880de8190660667a407d1 | 81dcfcd7ce256abe1d5924329dd0ae8320fe749f | refs/heads/master | 2021-07-03T07:02:44.673841 | 2017-09-20T22:51:18 | 2017-09-20T22:51:18 | 103,838,273 | 0 | 0 | null | 2017-09-17T15:10:14 | 2017-09-17T15:10:14 | null | UTF-8 | Python | false | false | 1,611 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import sys
import os
import os.path as path
from platform import system
from setuptools import setup
from setuptools.dist import Distribution
if sys.version_info < (2, 7):
sys.exit('Only Python versions superior or equal than 2.7 supported'... | [
"alorenzo.md@gmail.com"
] | alorenzo.md@gmail.com |
0e5fee26994b35cd5bd788f42ce452bc9d810c6b | 28dbb450fd31e1c7541668c5bbb0248edc13ea6f | /class 2708/exercise1.py | 29e740efc54847881b22b64e1df04ae32ae57797 | [
"MIT"
] | permissive | Gabriel-Fernandes1917/lab-the-python | 1cfcebeadb944295c92361abe2ddc62318c4975c | 0ed4fe7cf5e6c5447d3f021e50d390fc3af1b0d7 | refs/heads/main | 2023-07-23T21:19:26.716328 | 2021-09-10T11:23:20 | 2021-09-10T11:23:20 | 395,613,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py |
dictionary ={None:None}
loop = "sim"
while(loop == "sim"):
dictionary[0]=input('informe o nome\n')
dictionary[1]=input('informe o cpf\n')
loop = input('deseja continuar ?')
print(dictionary)
| [
"gabgui2001@gmail.com"
] | gabgui2001@gmail.com |
917fb6ce87aa5c3a0330750def2f94634054364c | d890ba28b707966d05dbb40bf8e73f9e07f85c78 | /new.py | d6ed5ce88af972ab15c54bd90d62db1ca2172104 | [] | no_license | abir0205/Mission-to-Mars | 7ed6e2aa5c80f8d52995eef71f3b43988e752e48 | e9628204a30d193d4c4934e79121b96f3144f5ce | refs/heads/main | 2023-06-07T01:35:48.592289 | 2021-07-01T03:28:14 | 2021-07-01T03:28:14 | 380,420,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | executable_path = {'executable_path': ChromeDriverManager().install()}
browser = Browser('chrome', **executable_path, headless=False)
# 1. Use browser to visit the URL
url = 'https://astrogeology.usgs.gov/search/results?q=hemisphere+enhanced&k1=target&v1=Mars'
browser.visit(url)
hemisphere_image_urls = []
main_url = ... | [
"Ahossai7@binghamton.edu"
] | Ahossai7@binghamton.edu |
625ca5383313c0120b33009c1c2af442f7029425 | 78d9b2f3d3c67a9bd66014ea1fd98729268e8343 | /src/accounts/views.py | af54b9f22f8836e6ee6fa4b06daff38fbffd6cea | [] | no_license | pedrozan/blog | 9ea69e4ef1c82d9815f7f801c07aadb34175a3db | e360672e88325db82c4f07874b14809e77e332f7 | refs/heads/master | 2022-11-13T04:15:52.165296 | 2020-07-04T16:21:06 | 2020-07-04T16:21:06 | 276,705,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse
from django.views.generic import CreateView
class UserRegistrationView(CreateView):
form_class = UserCreationForm
template_name = 'user_registration.html'
def get_successfull_url(self):
return reverse('login')... | [
"pedro.schleder@gmail.com"
] | pedro.schleder@gmail.com |
3ab8865d156fd4539ee009f877d33e4d2f16b8ae | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=13/params.py | 28bdc367d387d98fbf09079da0322b1eedc608ea | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.628952',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 13,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
86118937a3c5da7d22eb06c3ed34e49f7cfa2f11 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2711/47774/305852.py | a8c9c3680c535404ce3caf423c50014ec1f95130 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | def isSimilar(s1, s2):
diff, l = 0, len(s1)
for i in range(l):
if (s1[i] != s2[i]):
diff += 1
if (diff > 2):
return False
return True
def find(f, x):
return f[x] if x == f[x] else find(f, f[x])
def merge(f, x, y):
rx = find(f, f[x])
ry = find(f... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0dd9e260541d802e91f2058473d8baff323b757c | 60a29068e369900bd1de946bdbc7f9cf61a23127 | /manage.py | c7299db7505f33e3eb96f61001d69f0bc600b78c | [] | no_license | crowdbotics-apps/circuit-web-version-22188 | 4e44be1fb2d6ded8e87f731fd3a2c85e3cfec19e | 7eed4cb920846adf871057b150d0eb72b794a7aa | refs/heads/master | 2023-01-21T08:59:50.677549 | 2020-11-21T22:43:33 | 2020-11-21T22:43:33 | 309,153,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'circuit_22188.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7bc8ce68bc7ce2b233b0fd4db87796b82fa4e26d | bc6df4755d7b82e49e2ce1bd7276bdd6fba6f511 | /source/inputters/dataset.py | 4f172b558ad2986a64dfd2863c5318289027e138 | [] | no_license | laihuiyuan/knowledge-driven-dialogue | 9ae9d16c770cb57283cba6d99c46b3f73ed50090 | c1df20d66f8a391f4d93bc8fceaa8fe9b08906bc | refs/heads/master | 2020-05-15T21:40:28.758151 | 2019-05-26T08:16:35 | 2019-05-26T08:16:35 | 182,506,013 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # -*- coding: UTF-8 -*-
"""
The original version comes from Baidu.com, https://github.com/baidu/knowledge-driven-dialogue
File: source/inputters/dataset.py
"""
import torch
from torch.utils.data import DataLoader
from source.utils.misc import Pack
from source.utils.misc import list2tensor
class Dataset(torch.utils... | [
"huiyuanlai.l@gmail.com"
] | huiyuanlai.l@gmail.com |
bfbb3c1be656c0a35f38cde384ddf61d7a4de0c4 | 95f22aa6d38a959eb9d870bbf83afa54b0f619ab | /plugin5/main.py | deeef38195e68dccaffb223ffbb17bec777a43d6 | [] | no_license | tfmoraes/inv_plugin_test1 | 3be54c9c6fbec00a0b964196410b9f7a04c4f6eb | 4ccd65ef5e85b256b62d903adf61162186b47e30 | refs/heads/master | 2023-04-06T00:39:45.064523 | 2021-05-04T21:36:58 | 2021-05-04T21:36:58 | 201,117,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | from pubsub import pub as Publisher
import vtk
from skimage.segmentation import felzenszwalb, slic, quickshift, watershed
from skimage.segmentation import mark_boundaries, find_boundaries
from skimage.util import img_as_float
from invesalius.data import styles
from invesalius.data import imagedata_utils as iu
from ... | [
"totonixsame@gmail.com"
] | totonixsame@gmail.com |
0d3a6376d60f3cb52921f20e2916d6a0084c3025 | 9d460ddab78d26322419285575395edc850d76d8 | /account/urls.py | 36e4cbc4d6fa9edc617dc85151e04276ff858461 | [] | no_license | nhatvmgcs18725/My_first_project | 53d929a56dfaae6c29ef2657b3e1678068ed6edf | 50e4fa66c16204ce8cc75c734c200efa23ac93f8 | refs/heads/main | 2023-06-10T06:44:28.551520 | 2021-06-28T12:37:26 | 2021-06-28T12:37:26 | 381,025,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from django.urls import path
from . import views
urlpatterns=[
path('register',views.register,name="register"),
path('login',views.login,name="login"),
path('logout',views.logout,name="logout"),
path('cart',views.cart,name="cart"),
path('order1',views.order1,name="order1"),
path('home',views.ho... | [
"nhatvmgcs18725@fpt.edu.vn"
] | nhatvmgcs18725@fpt.edu.vn |
5245bc11bfacf34d092a6630efd1e6ec7b5948a9 | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/1096-Brace-Expansion-II/1096.py | 78067156acba02fd1f032327859403cee51255d5 | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | Python | false | false | 723 | py | import itertools
class Solution:
def braceExpansionII(self, expression):
groups = [[]]
level = 0
for i, c in enumerate(expression):
if c == '{':
if level == 0:
start = i+1
level += 1
elif c == '}':
le... | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
5f7fbca5b07a1829d557e292fde130d12362f1c9 | 8a925a66777993cc0caf4085a9c309cbd59fad7d | /mdp/gridworld1d.py | 4f142791692f8e6672a0d7b49fe98838f1c88406 | [
"MIT"
] | permissive | yrlu/irl-imitation | 96de0b435ef2ebd25f42694a90496f9e0dcbeb8a | c2f2f57d0d7cb98d4cca125579d68c411ed2cbe9 | refs/heads/master | 2023-05-22T16:20:35.389623 | 2022-07-05T07:23:56 | 2022-07-05T07:23:56 | 92,340,121 | 364 | 96 | null | null | null | null | UTF-8 | Python | false | false | 5,163 | py | # 1D Gridworld
#
# ---
# @author Yiren Lu
# @email luyiren [at] seas [dot] upenn [dot] edu
#
# MIT License
import numpy as np
from utils import *
class GridWorld1D(object):
"""
1D grid world environment (without terminal states)
"""
def __init__(self, rewards, terminals, move_rand=0.0):
"""
inputs:
... | [
"luyiren@seas.upenn.edu"
] | luyiren@seas.upenn.edu |
e23f2edbeae333f052ce6c3b881ea6c9b93be27a | 02f315c71fc653d9523607a6777ff8d89851ced2 | /walky/client/common.py | 175b55ad08cca8644d58ab2b39c1c48bb4966a39 | [
"MIT"
] | permissive | amimoto/walky | 8655d7b386a56e9f0a2e59dd2a7c45489070ed71 | bf2971ccb86a8db58599aa7d8857f467a9f5fc9b | refs/heads/master | 2021-01-10T22:06:32.612248 | 2015-07-02T02:46:44 | 2015-07-02T02:46:44 | 32,905,805 | 0 | 1 | null | 2015-04-06T21:23:10 | 2015-03-26T03:36:07 | Python | UTF-8 | Python | false | false | 1,360 | py | from __future__ import absolute_import
import weakref
import threading
import asyncore
import socket
from walky.objects import *
from walky.port import *
from walky.engine import *
class Client(object):
engine = None
settings = None
connection = None
port = None
engine_class = Engine
object... | [
"aki@zaber.com"
] | aki@zaber.com |
92bcd6a9e32f3b20e70dab4cd65ec40d73a7a67a | a2f80a041964940132b4e5c4a1b63d6df444c7a2 | /geokey_wegovnow/tests/test_urls.py | 844703ef6f2574f409ca69684adf61e51b217da5 | [
"MIT"
] | permissive | ExCiteS/geokey-wegovnow | c41774c9c2c9aa2bae9827af5b25f83cc48339bc | 66df7e17fa3eb2d8da2e56e39236b019f98a2a08 | refs/heads/master | 2021-01-17T18:32:19.711898 | 2018-10-08T15:20:38 | 2018-10-08T15:20:38 | 71,469,698 | 0 | 0 | MIT | 2018-11-07T16:39:34 | 2016-10-20T14:09:02 | Python | UTF-8 | Python | false | false | 1,216 | py | """Test all URLs."""
from django.test import TestCase
from django.core.urlresolvers import reverse, resolve
from geokey_wegovnow import views
class UrlPatternsTests(TestCase):
"""Tests for URL patterns."""
# ###########################
# TEST FOR ADMIN VIEWS
# ###########################
def t... | [
"j.osokinas@mappingforchange.org.uk"
] | j.osokinas@mappingforchange.org.uk |
1b33fef7283eefd3083d4c28ff5834eaadea6816 | 3573668d5401f909f8196fccf5f0cbd18b25c7c2 | /work/w08/d3/01-02-uploading-images-django/completed-code/catcollector/main_app/migrations/0005_photo.py | 75da4a08c9d30814cd91ddd81127376416c1b877 | [] | no_license | LordSnoosh/SEIR2222 | 8a015941a5585e8c167ff51f38cfc04b1f3f7d3a | 516d684ca01c46094c95ecef2a2af62e1aaa622f | refs/heads/master | 2023-04-11T16:30:41.260438 | 2021-05-14T15:22:49 | 2021-05-14T15:22:49 | 368,380,443 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # Generated by Django 3.1.4 on 2020-12-22 17:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main_app', '0004_cat_toys'),
]
operations = [
migrations.CreateModel(
name='Photo',
... | [
"jim.clark@generalassemb.ly"
] | jim.clark@generalassemb.ly |
77f2a108100941515d525b082674a52ef5e8f944 | 3d8b5343a272a8fb145def54f941a4005993365e | /week8/autoenc.py | e3db9fe5b9ad95909ba1d460b0b6543a28256700 | [] | no_license | gronlund/au_ml18 | 1725481c22f4877b10bb294371f32677b1c1cbd0 | 2c00d43b69f12780a9bef55842b0a273cce1715b | refs/heads/master | 2020-03-26T21:16:50.278360 | 2018-10-22T11:48:09 | 2018-10-22T11:48:09 | 145,378,775 | 1 | 33 | null | 2018-09-17T16:28:27 | 2018-08-20T06:58:36 | Jupyter Notebook | UTF-8 | Python | false | false | 2,739 | py | import os
import urllib
import urllib.request
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import matplotlib.pyplot as plt
from torch.utils.data import Dataset, DataLoader
# First we create a torch data loader - we have made that for you
def load_au_... | [
"jallan@cs.au.dk"
] | jallan@cs.au.dk |
636fe7f33650c3bd29921d6bf95425a2aeeaef48 | d09fd96bbc931fbb8522e5c991973f064a4ded50 | /baxter/devel/.private/baxter_maintenance_msgs/lib/python2.7/dist-packages/baxter_maintenance_msgs/msg/_UpdateStatus.py | dcdfcbd9e5d9bc1182afd40950d3c1c371b7df12 | [] | no_license | rymonyu/EE4-Robotics | b3827ba0dff5bdfdd1e47fe07a40e955c5226f38 | 6cf9272abd7fe8a074dc74a032f6e0b35edb8548 | refs/heads/master | 2020-08-22T15:09:39.706809 | 2019-12-15T23:35:45 | 2019-12-15T23:35:45 | 216,420,098 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,704 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from baxter_maintenance_msgs/UpdateStatus.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class UpdateStatus(genpy.Message):
_md5sum = "74e246350421569590252c39e8aa7b85... | [
"rymonyu@gmail.com"
] | rymonyu@gmail.com |
297f0900fb895a2b9d47e22dba06bc0e49e89095 | fd4b63792f0aa44acba8e656f2c71f6e4dd61377 | /web/changelly.py | 48c2dafe3e756c46132bdb2f0567c64e46bf7c80 | [] | no_license | procaff3inator/changepark | 03869a4ebe7c789bc516672ebb1fa6475cb22550 | fc55a4492c4084f92031de26ae87050d045d9e94 | refs/heads/master | 2020-03-19T01:07:07.462694 | 2018-04-29T05:35:10 | 2018-04-29T05:35:10 | 135,524,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,879 | py | import copy
import hashlib
import hmac
import json
import requests
from functools import wraps
from uuid import uuid4
def api_method(f):
"""Decorate functions that are API methods.
:param f: A function/method to be wrapped
"""
@wraps(f)
def d(*args, **kwargs):
payload = f(*args, **kwargs)... | [
"procaff3inator@gmail.com"
] | procaff3inator@gmail.com |
70ba1e98be58094fefb1b3ad1735ac0b7a6c9499 | 80ce9b73a0447c13838de64e89fa95f24852f95a | /get_textf_from_lsi.py | fdf0f4ecb0ceed992bdde759286d4cb904a8443c | [] | no_license | thomason-jesse/synpol | 17458cd05484e783d3fe84d6c951b27728286b91 | 2edd89d88fbab50bcaa7d77a9e83e3cfe4627a14 | refs/heads/master | 2021-01-20T10:00:36.555994 | 2017-10-20T16:39:34 | 2017-10-20T16:39:34 | 90,314,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,484 | py | #!/usr/bin/env python
__author__ = 'jesse'
''' takes a wnid graph, a set of wnid -> text observation maps, and a serialized lsi model and
calculates the textual features for the wnid observations given the observed text and outputs
a map from wnid -> text features
'''
import argparse
import pickle
import os
i... | [
"jesse@cs.utexas.edu"
] | jesse@cs.utexas.edu |
faac087b45aa6ee29a57ab65290e48b37be927c5 | 03143da0cf99ea92d372feca0954d22d64858d86 | /Approach 4/EMNIST/EMNIST-4/utils/mnistutil.py | a7b7435b0cbd75973bfc88d7ab188e5b1eaa0596 | [] | no_license | rangeetpan/moduleDecompose | ff31732a878e5f9d5e79c3bba9fd9f051c7a5d16 | 508c2a87e00c4e1b616bc29515fc1de2aba55c4e | refs/heads/master | 2021-02-20T08:49:55.157544 | 2020-03-06T04:50:43 | 2020-03-06T04:50:43 | 245,332,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,184 | py | '''
Created on Feb 8, 2019
@author: mislam
'''
from keras.datasets import mnist
from skimage.transform import resize
import numpy as np
from keras import backend as K
import keras
import tensorflow as tf
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv... | [
"rangeet@iastate.edu"
] | rangeet@iastate.edu |
c10986ff491244041f84595f91b37372f02b12ba | 22cfcaff5b211ddcf447a37a7409d9097b198d96 | /ex4301.py | 941aa165787cbff286f512a93bd0f98e63303f5d | [] | no_license | CasCoy/LPTHW | 03920c696db4a2423c9b2705b2d7ee5a7c08c460 | 3d0ed0a4ffc914e474cd7abb7d6cef15bf65d4ce | refs/heads/master | 2021-08-30T11:25:37.100736 | 2017-12-17T18:28:09 | 2017-12-17T18:28:09 | 109,824,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,435 | py | # -*- coding: utf-8 -*-
from sys import exit
from random import randint
class Scene(object):
def enter(self):
print "This scene is not yet configured. Subclass it and implement enter()"
exit(1)
class Engine(object):
def __init__(self, scene_map):
self.scene_map = scene_map
def pl... | [
"noreply@github.com"
] | noreply@github.com |
00b4d530809478ba8d5e470aab29216b7d93a01e | 6e781205dfb2aa7cf43709b4a9c208f4bb7117b7 | /victory.py | 45dca785110c60f4f79650b494f1ec19b5518a3f | [] | no_license | timofeyegorov/Python-developer-5-Console_file_manager | d04458e6c9750dbb5c98e039facc362b3c6e41a6 | a83bc9d79b6345aef14e54f6a983f9447264950b | refs/heads/master | 2023-06-16T23:23:44.563669 | 2021-07-14T07:32:22 | 2021-07-14T07:32:22 | 384,894,594 | 0 | 0 | null | 2021-07-14T07:32:23 | 2021-07-11T08:18:08 | Python | UTF-8 | Python | false | false | 1,912 | py | import random
def victory_game():
while True:
data = {'Рубен Диаш': ['14.05.1997', 'Четырнадцатое мая 1997 года'],
'Мохаммед Салах': ['15.06.1992', 'Пятнадцатое июня 1992 года'],
'Кевин Де Брюйне': ['28.06.1991', 'Двадцать восьмое июня 1991 года'],
'Неймар': [... | [
"timofeyegorov48@gmail.com"
] | timofeyegorov48@gmail.com |
7908b1e1cfb79c9a9aed81d50ee32663279e5be3 | 81e14734e111a91a37888dfcc85e6d0f30dce56c | /closet palindrome number/find_palindrome.py | 72b8108fbf4ce69b3de58da9c3e0f7bfa0ae2217 | [] | no_license | arunvemana/pythontasks | b96ad4325c40df9c844403717e174ef2d84f7889 | 2d6f76bb48efcc4e718efaf88a50ec33b1a0c652 | refs/heads/master | 2023-05-24T17:00:27.912830 | 2022-11-30T12:06:32 | 2022-11-30T12:06:32 | 193,498,172 | 3 | 0 | null | 2023-05-23T05:16:05 | 2019-06-24T12:09:23 | Python | UTF-8 | Python | false | false | 452 | py |
def closest_palindrome(num):
num = str(num)
length_number = len(num)
left_shift_index = length_number/2
# print(str(num)[:left_shift_index])
if (left_shift_index % 2) == 0:
return int(num[:left_shift_index]+num[:left_shift_index][::-1])
else:
return int(num[:left_shift_index+1]+... | [
"avemana@loginsoft.com"
] | avemana@loginsoft.com |
69e96d91f1e97b1e4777741ed5926f0e3ffe5d96 | d37ab0fa7dd0026425fc15a13288847ae0954f48 | /src/helixweb/billing/forms_filters.py | dd3d23578a55a833025b34264b3fabe186615716 | [] | no_license | sand8080/helixweb | 4fd84e3df8add42996684a288c16148f8582297b | 5f08b4cc41d6bd72f54382ebe5e9b45c428fac4b | refs/heads/master | 2020-12-24T15:23:16.944216 | 2014-02-17T10:56:45 | 2014-02-17T10:56:45 | 1,048,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,846 | py | from django import forms
from django.utils.translation import ugettext_lazy as _
from helixweb.core.widgets import ConstInput
from helixweb.core.forms_filters import (FilterForm, AbstractFilterActionLogsForm,
AbstractFilterAllActionLogsForm, AbstractFilterSelfActionLogsForm,
AbstractFilterUserActionLogsForm)
f... | [
"sand8080@gmail.com"
] | sand8080@gmail.com |
f6e1dbcd885565e82d2661115d0d44d5701a04c0 | 1dff43a4fd4a8e84f8ce104dbb3a0d79185d9744 | /jekyde/tests/test_jekyde.py | 50005df25c5e0d44d9e7104a73ee31ab9e2912fb | [
"MIT"
] | permissive | devilicecream/jekyde | 090134b060baffc4d75e7248b5113d4ee2a445b5 | 2440c183db00e97bf67ead6a00974a2bd9bc8fac | refs/heads/master | 2020-05-19T07:56:36.774930 | 2019-05-04T17:01:20 | 2019-05-04T17:01:20 | 184,909,369 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | import sqlalchemy as sa
from ming import schema as s
from ming.odm import MappedClass
from jekyde.drivers import Driver
from jekyde.meta import JekydeModel
from sqlalchemy.orm import configure_mappers
from .conftest import BaseModel
def test_change_type(sql_session, ming_session):
class AMingModel(MappedClass):
... | [
"walterdangalante@gmail.com"
] | walterdangalante@gmail.com |
3b02deb956c2887c303ede1abb8311eb09a6c91f | 8cdcf99f1e63c380967a294653f7dc0e1d8e8291 | /tests/test_reverse_polish.py | 443cf4e27e21f32aa64c196dd4147db3b9d3a0ec | [] | no_license | dIgor93/Sandbox | 1092f8e27dd57a4eb04676f7e445165f20df9ee7 | a7ffec83ee4036a6394a8f95e30923523e1d05f8 | refs/heads/master | 2022-02-23T19:46:28.589014 | 2019-10-27T13:31:06 | 2019-10-27T13:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | from unittest import TestCase
from polish import reverse_polish
class TestReverse_polish(TestCase):
def test_reverse_polish_0(self):
res = reverse_polish(-1, [2, 3, '+'])
print(res)
assert res == 5
def test_reverse_polish_1(self):
res = reverse_polish(-1, [2, 2, 2, '+', '*'])... | [
"wildig1014@yandex.ru"
] | wildig1014@yandex.ru |
33ca51a5d85d8352fdbdea328351d34be314446f | c7b1282a1d66eb2756a63909320f515d03917deb | /day00/ex05/kata03.py | 5c2e7ccc39d7df276537cc565f9161a3e8a4fd7a | [] | no_license | AdrianWR/PythonBootcamp | 5603f2108f4ff80292e8964f75af44223fe0febc | 9dc6ef196b3bc51c079efcd19ea421561ceb8a6d | refs/heads/master | 2022-12-23T00:26:22.833866 | 2020-09-23T12:36:14 | 2020-09-23T12:36:14 | 259,933,367 | 1 | 2 | null | 2020-04-29T13:35:31 | 2020-04-29T13:31:00 | Python | UTF-8 | Python | false | false | 107 | py | phrase = "The right format"
if __name__ == "__main__":
s = phrase.rjust(42, '-')
print(s, end='')
| [
"adrian.w.roque@gmail.com"
] | adrian.w.roque@gmail.com |
a4f91d131845e9d72b46556179c3d49e831e15f0 | c7bb2f583148c3851720e1f535520cfb5f3df32e | /lib/models/removal_model.py | 8ded2eec4bfcab124b17f5aacaa9ac33ddc74fd1 | [] | no_license | PeterZhouSZ/Shadow-aware-portrait-relight | e248d8afee96a812997044b7f51d0a0616fce070 | 119fb975de77c58a1049074195bc009660700575 | refs/heads/main | 2023-03-24T06:53:08.161122 | 2021-03-28T10:55:35 | 2021-03-28T10:55:35 | 374,818,414 | 1 | 0 | null | 2021-06-07T22:43:55 | 2021-06-07T22:43:55 | null | UTF-8 | Python | false | false | 4,347 | py |
from lib.networks.base_network import MsImageDis
from lib.networks.removal_network import Gen
from lib.utils.utils import weights_init, get_model_list, vgg_preprocess, load_vgg16, get_scheduler,ssim
from lib.models.base_model import BaseModels
from torch.autograd import Variable
import torch
import torch.nn as nn
im... | [
"guoxian.song@bytedance.com"
] | guoxian.song@bytedance.com |
1c2030fad87f3a2f73634809687e3293afdb9848 | 79991f71b68590de24a5f8bb904054e30d38e77f | /main.py | cc71bc69feec84cef3cb93add31bf5d67ab407b7 | [] | no_license | ottinger/housing-price-prediction-web | 7d745d335b5253d27396ffe3a31c148bd0e11423 | 12d574159274d8afc0345be5bc97868fc7c753ca | refs/heads/master | 2020-09-08T13:33:16.744118 | 2019-11-28T07:57:38 | 2019-11-28T07:57:38 | 221,148,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from flask import Flask, send_from_directory, request
import pandas as pd
import pickle
import json
app = Flask(__name__)
@app.route('/predict', methods=['POST','GET'])
def predict():
json_ = request.get_json()
print(json_)
predict_df = pd.DataFrame(columns=field_names) # empty df for req data
predic... | [
"michael@ottinger.net"
] | michael@ottinger.net |
658c5b53a50e59b89e284ab9c792c46081f0daeb | d20626ef3b9ae6b9a702d67333209d678e27105d | /robot_booking/freebusy/FreeBusyEvent_Builder.py | 7690f3f737a404f94c5917cfcd0c9e42d122705a | [] | no_license | geleazar1000111/bebop | e3d95b641b036847e50913690b07d0eb12958693 | 435f134248079f369a8f0004a0e07b8d73e0ce21 | refs/heads/master | 2022-11-24T01:46:37.334014 | 2020-07-26T17:54:27 | 2020-07-26T17:54:27 | 263,472,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,707 | py | """This class builds free time slots based on the specified time range and events that are booked in that time range.
First, days are generated as nested dictionaries that are stored in the days in range attribute. The workday is
defined as the value for the 'range' key. 'booked' is another key that gets filled in late... | [
"geraldine@osaro.com"
] | geraldine@osaro.com |
20bcbefc778347fd1c292368763549aed1dee9e5 | d51c769deeb16ea0e2f17275e269f6a9e59b1d28 | /WOS + MDM/mapeo_colores.py | 309e292a8fda3c29c516dfd44a5ee3badfa6cd3a | [] | no_license | MDG99/Rubiks-Cube-Solver | 16cd97330987328f10d9e612e5b865acb6c13275 | f17ac944e352478e5b50d9aef6f034476f8c7663 | refs/heads/main | 2023-02-25T20:39:05.111517 | 2021-02-05T11:22:39 | 2021-02-05T11:22:39 | 330,028,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | import numpy as np
M = [[4, 52, 81], # Azul ya
[198, 51, 3], # Roj0 ***
[39, 169, 43], # Verde pálido
[228, 109, 6], # Naranja ya
[153, 163, 30], # Amarillo ***
[147, 165, 120], # Blanco
[27, 55, 17]
] # Fondo
def mapeo(img):
w = np.shape(img)[0]
h = np.shape(img)[1]... | [
"ignacioisaac30@gmail.com"
] | ignacioisaac30@gmail.com |
ca7114b9431d0b12bef71d9fd7e5c95a095770dd | a1c08cca122d580994e6a495095fbfeb3e7120d6 | /bert4keras/__init__.py | e559963fc6776e35aaaee73347b221f421fde74d | [
"Apache-2.0"
] | permissive | meissenzheng/bert4keras | cc4c4b25a52521612b9e460e3356e38ad4158d93 | 93c1b8c78a8efac7843e634ee7d5b3b1ea631f5d | refs/heads/master | 2023-04-17T14:14:57.103530 | 2021-04-25T05:10:56 | 2021-04-25T05:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | #! -*- coding: utf-8 -*-
__version__ = '0.10.5'
| [
"noreply@github.com"
] | noreply@github.com |
3ecdd02380aca40b278797ea18ccfd30972aae5d | 2d768a41df277b92ca8a15407f24ff01eafb3de6 | /4_Database_Flask_FastAPI/2_FastAPI/main.py | 23468e2a732f7a0ab686277e55b99de58d1a6f3e | [] | no_license | morganpartee/docker_class | 1a2de1e252373f71efa548fe8cccff8911f4b2cd | b9b5977a91133533b144dbcbd889cc25bb4d6070 | refs/heads/master | 2023-03-08T01:41:54.892533 | 2021-02-21T23:46:50 | 2021-02-21T23:46:50 | 284,179,958 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from fastapi import FastAPI
from pickle import load
import numpy as np
import uvicorn
app = FastAPI()
with open("model.pkl", "rb") as f:
clf = load(f)
@app.get("/")
def root():
return {"Hello": "World"}
@app.get("/predict")
def predict(sep_len: int, sep_wid: int, ped_len: int, ped_wid: int):
return {
... | [
"morganpartee@gmail.com"
] | morganpartee@gmail.com |
cf0e83ceacc341a163c92016f970b462250aa926 | 4d58c58165792bf22986c3cf53990ba17b28085a | /maya/python/lib/mpcJob.py | 4e27b28d3f9522420d08f0b94fcfcab4e47d8368 | [] | no_license | esernaalonso/dev | aabb54827db0f8507a0abbc24de5e1f7d27fe6c9 | 4fa41b8007e44dc0b574e372617ae65d198e27e9 | refs/heads/master | 2021-01-21T14:02:00.113420 | 2016-06-04T11:56:41 | 2016-06-04T11:56:41 | 47,589,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #######################################
# imports
import maya.cmds as cmds
import maya.OpenMayaUI as apiUI
import sys
import time
from mpc import jobtools as jobTls
#######################################
# functionality
def getJob():
""" Return the job from the environment.
Returns:
(str or None): Job, or N... | [
"edusernalonso@gmail.com"
] | edusernalonso@gmail.com |
406e7aae33727bb43762bd69aaa12abd355c309f | fd85b477888a3061233d9ef4814ce45953145618 | /demo/SimplePlot.py | b679ed0e3a0dee702055abc760d3149382a038d9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | anondroid5/Tkinter | 799f318006c886b592dc340d1d08f34870b5e998 | 3556224ec2e30b31da9f4a472dfe978c639c2c9f | refs/heads/master | 2021-01-17T07:43:32.166211 | 2016-07-18T09:10:12 | 2016-07-18T09:10:12 | 37,201,096 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | #coding: utf-8
from Tkinter import *
def main():
root = Tk()
root.title('Simple Plot')
try:
canvas = Canvas(root, width=450, height=300, bg = 'white')
canvas.pack()
Button(root, text='Quit', command=root.quit).pack()
canvas.create_line(100,250,400,250, width=2)
can... | [
"boy11922960shooping@gmail.com"
] | boy11922960shooping@gmail.com |
502d4b86495a11eb9b80fc09726abe7faa363290 | 93de0276028ee893ef25e269f25c0492fec6d0d8 | /Client-bl.py | c540da59914e76373be612207e2c7ccaf3d50520 | [] | no_license | antarasargam/Lab2 | dcbdee7cf8c460773df558f39dc1b1541150cfc4 | 3854a175dff5ffde136d213db54c01b2e93c2a37 | refs/heads/master | 2021-08-24T13:19:56.899452 | 2017-11-21T07:32:31 | 2017-11-21T07:32:31 | 105,047,853 | 0 | 3 | null | 2017-11-21T07:32:31 | 2017-09-27T17:24:39 | Python | UTF-8 | Python | false | false | 19,464 | py | #Client
import asyncio
import playground
import random, logging
from .Servera import PEEPpacket
from playground.network.packet import PacketType
from playground.network.packet.fieldtypes import UINT32, STRING, UINT16, UINT8, BUFFER
from playground.network.packet.fieldtypes.attributes import Optional
from playground.ne... | [
"noreply@github.com"
] | noreply@github.com |
d0fd73ad51f76303fa3a3baf786e05f599ca263c | 59f8e9d5c273974adcac14ccbd410c1e2689c4e1 | /setup.py | a58a482d26006affe9310b191c0521ccebe38755 | [
"MIT"
] | permissive | andrewzeneski/pylodge | 74a9f8c33af4e7d509ca0dc91013ad966ca3b685 | f5fdc470ef986228f8a44ad1c9d2d45ea221a95b | refs/heads/master | 2020-12-27T03:52:11.185337 | 2016-06-02T16:50:55 | 2016-06-02T16:50:55 | 59,770,088 | 1 | 1 | null | 2016-05-26T17:33:06 | 2016-05-26T17:33:06 | null | UTF-8 | Python | false | false | 833 | py | __author__ = 'ashwin'
"""A Test Lodge based pylodge module.
"""
from setuptools import setup
setup(
name='pylodge',
version='0.2.8',
description='Test Automation framework for TestLodge',
url='https://github.com/gettalent/pylodge',
# Author details
author='Ashwin Kondapalli',
author_em... | [
"ashwin@gettalent.com"
] | ashwin@gettalent.com |
e50e159516d02e4f28151196e8e7cffa1b2abc36 | 454f5318d68aded03b7ce43371a68f02d51b5e5e | /playlist_website/playlist_website/wsgi.py | 7de9f26408b4609b7b162d9966286c5d1a8c81af | [] | no_license | issaitorres/Portfolio | 5ffd6c3e9c9e59af010a51960e3e116c57557cf9 | b3324b28a0d1c8b8b5f4a1b5fc10428530f18336 | refs/heads/master | 2023-06-18T07:02:43.400662 | 2021-07-15T19:31:13 | 2021-07-15T19:31:13 | 306,566,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for playlist_website 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.setdefault('DJA... | [
"issaitorres@gmail.com"
] | issaitorres@gmail.com |
25a31c75346e71626fe953790437618a840aa0b7 | 3a4860c05baa2791986747bf1d73f6b8da0d7fa6 | /list_append.py | 7387fee0899f55dac4231dc81b7576f89d3b8ca3 | [] | no_license | Raun551/pythontraining | dcdb0acf966d555b7a7ab7c242031a9cff1ac354 | 65e9b32bd92c5e096f8c11fadfca21ed6ea38553 | refs/heads/master | 2020-03-26T14:21:03.761316 | 2018-08-30T14:38:31 | 2018-08-30T14:38:31 | 144,983,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | #Append a list to the second list
list1 = [1, 2, 3, 0]
list2 = ['Red', 'Green', 'Black']
final_list = list1 + list2
print(final_list)
| [
"raunaq.malik23@gmail.com"
] | raunaq.malik23@gmail.com |
6b19da70918b7711aee9f2fda10eb6fbec50ba0d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/126/usersdata/191/29517/submittedfiles/ap2.py | c8f2da701341911eecf630c83018954555844586 | [] | 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 | 423 | py | # -*- coding: utf-8 -*-
a=float(input('digite a:'))
b=float(input('digite b:'))
c=float(input('digite c:'))
d=float(input('digite d:'))
if a>=b and b>=c and a>=d:
print(a)
elif b>=a and b>=c and b>=d:
print(b)
elif c>=a and c>=b and c>=d:
print(c)
else:
print(d)
if a<=b and a<=c and a<=d:
print(a)
e... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ae12d6fd85aad0110b05be6b293b0a3b5ce40ede | c9fea70a3dc5efafc718b5ede8e9971804cd5265 | /venv/Scripts/pip3-script.py | 1e4799b5e7995b569d60518ccbce4aa11d7c1567 | [] | no_license | zekrihicham/creche | b4de8df3b92d9080e6d5a8ecf2dd4bdfa5759d64 | c23ca4095777cbb9c7d5ccc25377eff63af460f4 | refs/heads/master | 2020-04-22T01:38:33.513119 | 2019-02-10T20:13:48 | 2019-02-10T20:13:48 | 170,020,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!C:\Users\zekri\PycharmProjects\Creche\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"36763072+zekrihicham@users.noreply.github.com"
] | 36763072+zekrihicham@users.noreply.github.com |
1c3d00acafd76a610342ab1ef712ad250ee8870c | b2bdd5997ac84b0e19071c1ddc1c1a4d2f4fab58 | /catkin_ws/devel/.private/p2/lib/python2.7/dist-packages/p2/msg/_Ackermann.py | 0dff4e208b8c08e4de290b065cd192a52bee173e | [] | no_license | hbtslys01/RosCodingProject | 860d18531dabe4a969278deff5dbad8a8703ea83 | 226feda08724e92fd94191e123b9442c028283dd | refs/heads/master | 2020-04-11T09:16:17.808626 | 2018-12-13T17:30:08 | 2018-12-13T17:30:08 | 161,671,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from p2/Ackermann.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Ackermann(genpy.Message):
_md5sum = "61c7e29a36f91d9c196a9722234d7472"
_type = "p2/Ackermann"
... | [
"907098316@qq.com"
] | 907098316@qq.com |
1ca7d40ffa698cb26fa3c02af75ca221a34029a0 | 8112bdea83d0a51c12720f751fb7759ff6741d9d | /tests/test_friends.py | 7d1912acdcf1a75a28e20aa396d280b9cc08ffcf | [] | no_license | dushyantpatel/smap_api | e5ea67a1c28645a7ebfa74576a9be7f848fd9769 | 263e44efd4a976c80ad71413fa05279b4a4efbe0 | refs/heads/master | 2020-03-17T07:39:57.776872 | 2018-06-10T02:37:15 | 2018-06-10T02:37:15 | 133,407,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | import unittest
import pymysql
import rds_config
import sys
from tests.event import Event
from gateway import main_handler
# rds settings
rds_host = rds_config.db_host
name = rds_config.db_username
password = rds_config.db_password
db_name = rds_config.db_name
connection = None
# resource settings
path = 'friends'
co... | [
"dushyantpatel_r@outlook.com"
] | dushyantpatel_r@outlook.com |
e26f787cdac7bccc03eebca71b634c965ab28d9b | 8bf4243abe4f5f66d0068d96dc09e5cf975430d5 | /Selenium_lessons/neskolko_brauserov/auth_data.py | 92e50613b48ae3cde7e5b5defba74be75c6c227c | [] | no_license | Azhdar1990/Parsers | 899776388b4dbe257eb5b6d08dce3f0ef5ea8190 | aa39fd3f651b92405c12caf1bd784ed3afa4f3fd | refs/heads/master | 2023-09-05T12:45:03.604726 | 2021-10-31T10:51:56 | 2021-10-31T10:51:56 | 404,690,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | login = "maniyev@rambler.ru"
password = "@kmNom@k!k12@"
| [
"amaniyev@gmail.com"
] | amaniyev@gmail.com |
673bb5c0289c9335d604b2d187d96c5573ad2619 | 6ecf6e0545709592996acbe7d7752870a7e7d179 | /GUI/gui1studentinfo.py | 5e0203cf72c384c5532a7ad01a3639ddf854c513 | [] | no_license | namujagtap/Namrata | 9bf152882703ca6d6819c6ddf915d88d47c9a3e2 | f90faabc142238e305511fdd44011e5db9767903 | refs/heads/main | 2023-08-01T22:44:22.360108 | 2021-09-16T05:05:00 | 2021-09-16T05:05:00 | 396,077,357 | 0 | 0 | null | 2021-08-14T17:26:58 | 2021-08-14T17:19:37 | null | UTF-8 | Python | false | false | 1,661 | py | #create student information from using Tkinter
#name,address,email,schooltype,stding in year ,dob,,gender,schooltype,marathi mediunm,english medium,english,convent,semi
import tkinter as tk
from tkinter import *
win=tk.Tk(className="StudentInfoForm......")
win.geometry("1000x1000")
label=tk.Label(win,text="*... | [
"noreply@github.com"
] | noreply@github.com |
2daf9cca1251a8f201f5a3437dc55c28c447f373 | c54896ba0703fc4de01d19ed9e7eecfdfc4aa810 | /Python_Projects/Python_MySQL/Foreign_Trade_Data_Pipe_Delimination/scripts/merchandise_trade_exports.py | e5ba7c2739bc71535561f9073a09b9bc30fd063e | [
"MIT"
] | permissive | YangLiu928/NDP_Projects | f4d1c3d45161ff353f89dff2ebc36fabde28db62 | d2ebfa7b95a0003481dde1361c6ab563ac94f2e6 | refs/heads/master | 2021-01-10T14:39:17.141520 | 2016-04-28T19:57:48 | 2016-04-28T19:57:48 | 45,988,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import process_data
data_folder = '../data/merchandise_trade_exports/cdromtxt/'
output_folder = '../output/merchandise_trade_exports/'
process_data.process_concord(data_folder, output_folder)
process_data.process_country(data_folder, output_folder)
process_data.process_district(data_folder, output_folder)
process_dat... | [
"yangliu1989@gwu.edu"
] | yangliu1989@gwu.edu |
3a3429686a4f84cd642ada4255092bcd590d5cb0 | 9a0704ef8a2ccd3aff58af8a9623578c5d4f7353 | /app.py | 86919f4ec581d3240bd567d28ff58e685ff4fefc | [] | no_license | rahulagrawal01/KNN-and-Naive-base- | d29396d6d886455ce9d62d844ac9c74d31e0c5f0 | d62318410106fa0a707b39785b5514f083319cb5 | refs/heads/main | 2023-04-14T16:53:53.494660 | 2021-04-24T10:42:59 | 2021-04-24T10:42:59 | 361,135,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | py | import streamlit as st
from PIL import Image
import pickle
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
st.set_option('deprecation.showfileUploaderEncoding', False)
# Load the pickled model
model = pickle.load(open('Knearestneighborclassifier.pkl', 'rb'))
model_naive = pickle.load(open('naive... | [
"noreply@github.com"
] | noreply@github.com |
210f7ba427b184848d5fb3c985f326bb4dde8314 | d3ac52556da9f8a8c0dddbd4b30a81d67579ed5f | /options.py | 34091e25f6dd787bd663ad5ffd4c92ef9d6de41a | [] | no_license | mustaphaasbbar/Silaty | 59b06eaa614e8d202089a13088fe84c522a4fb79 | f8a4ddc2e7e351b51030759b72bfe9f6b9d3fc77 | refs/heads/master | 2020-04-29T08:16:19.144501 | 2015-04-22T17:59:19 | 2015-04-22T17:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,474 | py | import configparser
import os
import datetime
class Calendar(object):
UmmAlQuraUniv, \
EgyptianGeneralAuthorityOfSurvey,\
UnivOfIslamicSciencesKarachi,\
IslamicSocietyOfNorthAmerica,\
MuslimWorldLeague = range(5)
class Madhab(object):
Default, Hanafi = 0, 1
class Options:
def __init__(self):
print ("DEBUG: ... | [
"www.jwb@gmail.com"
] | www.jwb@gmail.com |
f4eb52622028a08e0dec011b2b776b1650007f4e | 00c33337f4023c8d257a7da1c47db4bf36441b94 | /events/migrations/0002_auto_20190807_1713.py | c16f45334c7935886774babcf5dea0f26385fdd3 | [] | no_license | ECellNitrr/EcellWeb2k19 | 694d733737b1ac26c136994ee631f36904ca942d | 75d53aad788d6deac8c5dda72cabf34b8d4bcb15 | refs/heads/master | 2021-06-24T06:23:09.097667 | 2021-01-12T08:37:48 | 2021-01-12T08:37:48 | 189,839,122 | 4 | 23 | null | 2021-01-12T08:24:49 | 2019-06-02T11:39:44 | JavaScript | UTF-8 | Python | false | false | 828 | py | # Generated by Django 2.2.2 on 2019-08-07 17:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('events', '0001_initial'),
migrations.swappable_dependency(setti... | [
"naveennvrgup@gmail.com"
] | naveennvrgup@gmail.com |
19c873ebd90585623d912f2794ba9b06bb70f3d7 | 0634aed371b1c08888bd0b69be98c02779a49889 | /Chapters/code/appendices3.py | 3917a26bbd1e5e3bb99cbfa0dfeba4f77b3a73f8 | [] | no_license | samiarja/Thesis2 | e3918c3ea2b5ad15412e79368f7a1c6f82d544e8 | 4954b36c9f24881b4a724fdefcd29cd03aa0ec1b | refs/heads/master | 2020-06-01T10:39:41.384465 | 2019-12-21T03:01:52 | 2019-12-21T03:01:52 | 190,751,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | #Make the code running on both python2 and python3
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
# Imports Libraries and dependencies
import os
import cv2
from sklearn.datasets import load_files
from sklearn.model_selection import train_test_s... | [
"sami18040571@outlook.com"
] | sami18040571@outlook.com |
01d0564258a79bdc181836896a6e65794b1dbcee | 6b94e0aba8e1bd3daf4e6ca4ab472007ab13bf97 | /Py 16.py | 8dc56e4adaa822d846e38227617dfeb958671ec6 | [] | no_license | Dre-AsiliVentures/Python-Programming-scripts | 92ccdb29fb302387386bc3f1714918ba2f97c07f | 6ea0408965276afee5b5a1603e56703853075023 | refs/heads/master | 2023-05-10T10:09:56.460191 | 2020-03-02T09:46:52 | 2020-03-02T09:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | numbers=[12,13,14,15,18]
numbers[0]=numbers[2]*2-6
if 20 in numbers:
print(numbers[3])
else:
print(numbers[4])
| [
"noreply@github.com"
] | noreply@github.com |
294e27c16b37a8cdf7816d7381f0bd726197257e | 86a85d81ae484939694b76bda29057e744022016 | /src/tf_transformers/models/roberta.py | 9ea34f9f5a0da63614f2727587e8f64514ed8c91 | [
"Apache-2.0"
] | permissive | Vibha111094/tf-transformers | 903f16224434d4ded9174f6fe2de8bb6bead1fd9 | f26d440a4de0557e0e481279bfd70a732aaa8825 | refs/heads/main | 2023-07-27T16:11:22.101410 | 2021-07-23T15:33:39 | 2021-07-23T15:33:39 | 405,870,934 | 1 | 0 | Apache-2.0 | 2021-09-13T07:15:31 | 2021-09-13T07:15:31 | null | UTF-8 | Python | false | false | 49,343 | py | from __future__ import absolute_import, division, print_function
import tensorflow as tf
from absl import logging
from tf_transformers.activations import get_activation
from tf_transformers.core import LegacyLayer
from tf_transformers.layers import MLMLayer, OnDeviceEmbedding, SimplePositionEmbedding
from tf_transfor... | [
"legacyai.org@gmail.com"
] | legacyai.org@gmail.com |
5cc1e828fb014c43f7ef00b0a93ab7e27a5e0eb4 | 5ee6858e60d1065c797a105710e9d6c835f3b7ad | /app/user/migrations/0008_alter_customuser_avatar.py | 0d17298ad2e47e51857959c13560f1c37e7deca3 | [] | no_license | kiyoshion/django-rest-framework | 19260d1b864939a69fe6668062fdea12a1b1b1d5 | 8f81064511b9db066ef2475fad78629a5839c213 | refs/heads/main | 2023-07-08T08:29:32.483651 | 2021-08-09T11:36:13 | 2021-08-09T11:36:13 | 394,266,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # Generated by Django 3.2.4 on 2021-06-10 02:09
from django.db import migrations
import imagekit.models.fields
import user.models
class Migration(migrations.Migration):
dependencies = [
('user', '0007_alter_customuser_avatar'),
]
operations = [
migrations.AlterField(
model_n... | [
"kiyoshion@gmail.com"
] | kiyoshion@gmail.com |
6f5709bc731865f387e0060495401727486d9ca7 | 16fe56a5fd3beea997bea716f103f4165f2f9dfc | /reviewsMapper.py | e9073ec498b7cb4b7ab9568ba1f0b9a46bdf53f0 | [] | no_license | jgnguy/yelp_dataset_project | 2299b1054a0e284762ef3b9c9ab49cc0c6213bd8 | a4099978374053cae2b7702675121ab4051fc16f | refs/heads/master | 2021-01-08T15:12:37.079944 | 2019-12-11T19:55:00 | 2019-12-11T19:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | #!/usr/bin/python
#REVIEWS mapper.py
#Evan Yao, Jonathan Nguyen, Richard Pham
#get all the stars and businessID of all businesses within a specified number of years ago
import datetime
import json
import sys
#get today's date and convert to YYYY-MM-DD format
numYearsAgo = 2
today = datetime.datetime.now()
#get a ye... | [
"noreply@github.com"
] | noreply@github.com |
650c945ba471ee76b6ba900217fb8ee31eea82ae | ca98a533d53da95249df7aed710a2db9424cdcdc | /pyspark_proxy/sql/udf.py | f95753ccc8abdd05912b9ce41ea60fcbe0d2eeec | [
"Apache-2.0"
] | permissive | abronte/PysparkProxy | 9b3b0cc5dd9c826ca01b1562c639e9ebfc163c84 | cc28bacb0d4ee6fb87ced763a73e9ea791612414 | refs/heads/master | 2021-08-06T12:46:55.562589 | 2018-12-12T21:57:01 | 2018-12-12T21:57:01 | 147,398,292 | 4 | 0 | NOASSERTION | 2018-12-12T21:57:03 | 2018-09-04T19:07:00 | Python | UTF-8 | Python | false | false | 1,101 | py | import base64
import imp
import sys
from pyspark_proxy.proxy import Proxy
from pyspark_proxy.sql.types import DataType
from pyspark_proxy.sql.column import Column
class UDFRegistration(Proxy):
def __init__(self, context_id):
self._context_id = context_id
def register(self, name, f, returnType=None):
... | [
"adam.bronte@coupa.com"
] | adam.bronte@coupa.com |
b2f59b138ab429063808e0cfaee6e1c099c3be50 | 7313698d76e4606e290702463464fc8eeeff32c0 | /Intermo/migrations/versions/20210512_184835_.py | d140577d9f0f34af9c85ed83b0e26419b21e7c29 | [] | no_license | NathanFrank285/Intermo | 53e55b576b4fcc2741b06f387e706fa6e8a43702 | 69ca818376dbeb22b100cc4a1e5873210fe52ce4 | refs/heads/master | 2023-06-23T05:54:07.452573 | 2021-07-20T21:14:27 | 2021-07-20T21:14:27 | 364,291,740 | 0 | 0 | null | 2021-07-20T21:14:27 | 2021-05-04T14:54:36 | Python | UTF-8 | Python | false | false | 701 | py | """empty message
Revision ID: 271520156ed4
Revises: 591c56ed2dac
Create Date: 2021-05-12 18:48:35.174597
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '271520156ed4'
down_revision = '591c56ed2dac'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"nathansfrank@yahoo.com"
] | nathansfrank@yahoo.com |
b26444ad2d6f2216e041816a9cd9a0238f7491e6 | 6d493d09085d4d398132204925078a179774f138 | /melgan_vocoder.py | 2ec8f713892afcce0d01ff4faa4f26ebc87935ea | [
"MIT"
] | permissive | zongxiangli/CycleGAN-VC3 | 6a41f843b430fd307d9ea0b43aa5910816fba450 | 431b332fa17638391ca913e6821b526456fd874f | refs/heads/main | 2023-02-21T02:19:39.058010 | 2021-01-25T09:49:00 | 2021-01-25T09:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,448 | py | #!python
# -*- coding: utf-8 -*-
import os
import yaml
from pathlib import Path
import torch
import torch.nn as nn
from torch.nn.utils import weight_norm
from feature_utils import Audio2Mel
def weights_init(m):
classname = m.__class__.__name__
if classname.find("Conv") != -1:
m.weight.data.normal_(0... | [
"jackaduma@gmail.com"
] | jackaduma@gmail.com |
b1bfb061db1148311e785c410fd9730250806673 | cf954be6c93a3dcd81f5b094faf005af371336f0 | /src/utils/__init__.py | 43d3f48b46546235749fa29c39d05ced1e1c54ac | [] | no_license | urielsinger/text2Mol | 819e20ea2638ddc97ecf7d57944ee1faaa8c97ff | 2d8b0cfb17414f43904856944e3d6f0a11fd2b96 | refs/heads/master | 2020-07-05T18:53:33.064530 | 2019-08-16T14:04:05 | 2019-08-16T14:04:05 | 202,737,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from utils.datetime_utils import *
from utils.general_utils import *
from utils.graph_utils import *
from utils.visualize_utils import *
from utils.text_utils import *
from utils.molecule_utils import * | [
"urielsinger@gmail.com"
] | urielsinger@gmail.com |
e4c55d2046bfa5e009793218e4f1236cc147abc2 | b58bf20946b2f0e43ccacd4d8206d513ba5ce6dd | /vecap/Churches/models.py | b57041b56fd66a90dc10f7f4f9bfb22b3af229de | [] | no_license | ifeoluwaDeterminas/vecap | fb5540838ef170fbd91b2075e66a1d19a7df6ade | cc7bc941d82ee3c8852da6fd946756703629b62e | refs/heads/main | 2023-08-16T01:55:45.949424 | 2021-10-11T08:20:19 | 2021-10-11T08:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from django.db import models
from django_tenants.models import TenantMixin, DomainMixin
# Create your models here.
class Client(TenantMixin):
name = models.CharField(max_length=50)
description = models.CharField(max_length=255)
on_trial = models.BooleanField()
created_on = models.DateField(auto_now_add... | [
"jotunbade@gmail.com"
] | jotunbade@gmail.com |
979b4aba56fd5ea83870647b5611677ae5844785 | ce1b0adade9b0cab3bfa5299f985a3d0d59a40cd | /session_key_test.py | 9a478a1e37167f80b5b494705f84137d584b036a | [
"Apache-2.0"
] | permissive | xyhlk520/GPG-Decrypt | 5e5f8522429df2aaf6026b603ef848849f439396 | 43efec3890b5ff9c905180eef6778a94f10bb6b0 | refs/heads/main | 2023-03-17T20:55:19.215318 | 2021-03-14T09:37:10 | 2021-03-14T09:37:10 | 347,595,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | passphrase = "test"
session_key = b"\x09\x8f\x6b\xcd\x46\x21\xd3\x73\xca\xde\x4e\x83" + \
b"\x26\x27\xb4\xf6\x5f\x8f\x8e\x05\xef\xdc\x22\xe8" | [
"noreply@github.com"
] | noreply@github.com |
a14e1188bdfc65d5b6c7835a865851cf2b468dce | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/srt.py | fe6f0681dbf56a25b61e42d88d931b804baf7678 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 82 | py | ii = [('ShawHDE.py', 1), ('AubePRP.py', 1), ('FerrSDO2.py', 1), ('ClarGE3.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
c98f587d3f300afa98366ee38ee38743ef8a8905 | 025ad48264afd44ccc9a3ec820a74711631a77d7 | /ludo.py | 5195e20168f60670e6bcdfa1552868a8d865f136 | [] | no_license | buffosens/LudoRGB | 1939f6588b624162500ee74dadef7efbd22a5fd9 | 72a940c4e309e3ea128d332528303f246d3bc2de | refs/heads/master | 2023-03-27T20:33:08.731595 | 2021-03-29T06:50:27 | 2021-03-29T06:50:27 | 347,163,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,273 | py | # Simple demo of of the WS2801/SPI-like addressable RGB LED lights.
import time
import RPi.GPIO as GPIO
# Import the WS2801 module.
import Adafruit_WS2801
import Adafruit_GPIO.SPI as SPI
# Configure the count of pixels:
PIXEL_COUNT = 100
# Alternatively specify a hardware SPI connection on /dev/spidev0.0:
SPI_P... | [
"volker.weber@swarco.de"
] | volker.weber@swarco.de |
2159710ed19f6e6b65f4a46e2509a0dbadb81e3b | 119c716206804aef3eb99c5ca24e8e16eed3473a | /openaddr/tests/coverage.py | 8693f0645fb3ed0e3777f5f06456c426eb04111b | [
"ISC"
] | permissive | enterstudio/machine-1 | d190db7cd8fceb409e25232b65507ec21c1b7009 | 43d4d3b41e1ad3410c2442b8220e6e1a9fe2255f | refs/heads/master | 2021-08-30T08:06:05.055323 | 2017-12-16T23:30:56 | 2017-12-16T23:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,950 | py | import unittest
import unittest.mock
import os
import psycopg2
from httmock import HTTMock, response
DATABASE_URL = os.environ.get('DATABASE_URL', 'postgres:///hooked_on_sources')
from ..ci import recreate_db
from ..ci.coverage import calculate
class TestCalculate (unittest.TestCase):
def setUp(self):
... | [
"mike@teczno.com"
] | mike@teczno.com |
03d238f1b9ccba256f82bd150d054bb5982e40d6 | c4362b27e969f5ffb1b39c85fc212198de91b646 | /extractLegalOpinionsCstmMetadata.py | 048f239378095a6344d1b548accb795462af0859 | [
"MIT"
] | permissive | OpenLawsGR/judgments2AKN | af8be80f931571b1c67fa957dff6c0ae76c67f9f | 0c6217349cde36058d5599800e289fdf0d3eaf23 | refs/heads/master | 2020-09-05T00:34:53.860129 | 2020-01-08T15:35:49 | 2020-01-08T15:35:49 | 219,934,916 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py | # -*- coding: utf-8 -*-
import os
import sys
import fnmatch
import argparse
from functions import extract_data_from_nsk
from variables import NSK_METADATA, NSK_CSTM_METADATA, NSK, TXT_EXT
from variables import LEGAL_TEXTS
from lxml import etree
program_description = 'A module for downloading specific data ... | [
"plessas@ceid.upatras.gr"
] | plessas@ceid.upatras.gr |
81e8a9bdb7e89305a5eb4d8e265ea9bbcb1ec8e1 | d96764c85f86c580029232f226f8cc6bc5fde1e8 | /EyeQ1_33/utils/trainer.py | c2223c6bf323127c7378fecb83c0e624bddf8b1d | [] | no_license | QuantumZhang/FIQA_training_module | b93f775487b11ad172f4d1df57d59a8ad189d035 | 789c11e23d0a120d2f04006b3187f47d4300415d | refs/heads/main | 2023-02-09T14:01:51.707809 | 2021-01-04T06:31:03 | 2021-01-04T06:31:03 | 326,200,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,724 | py | import time
import torch
import numpy as np
import pandas as pd
from sklearn.metrics import cohen_kappa_score, confusion_matrix, accuracy_score, recall_score
from tqdm import tqdm
import torch.nn as nn
import csv
Label_Merge = ['fundus_image_qualified', 'fi_unqualified_disc-position',
'fi_unqualified_mac... | [
"noreply@github.com"
] | noreply@github.com |
4eb1da69c4b7f74b682db604e23967cb55b2f970 | e62606922d4820e90f5f8e59de1a3812cb05f14f | /Centralized BlockChain/secondClient.py | 578a7f8f85479375e6e0685023b8e976e51310f0 | [] | no_license | ozgunozerk/DistributedApplications | 8d0d647020a2856ede5938507d8a5b571d1df0a6 | f9d21174c62e037242a53ca5a6ba66e0d82d8193 | refs/heads/main | 2023-03-04T22:13:15.943790 | 2021-02-12T14:43:54 | 2021-02-12T14:43:54 | 338,344,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | import Pyro4
BTC = Pyro4.Proxy("PYRONAME:BTC")
acc1 = BTC.createAccount(100)
print(acc1)
bal = BTC.calculateBalance(acc1)
if bal > 20:
BTC.transfer(acc1, 1, -60)
BTC.printChain()
ETH = Pyro4.Proxy("PYRONAME:ETH")
e1 = ETH.createAccount(30)
print(e1)
bal = ETH.calculateBalance(e1)
if bal > 20:
... | [
"noreply@github.com"
] | noreply@github.com |
befaa9ced886f7bb04ea7ea29f60e173dddb39b8 | 3c660571c9c2b028a88b844bd8c376970bea9f4b | /loginRegister/models.py | 5098e0f9afd5240a604226763323970cbcd8771a | [] | no_license | felipesma/almacen | c1914b30b63d43ca2ed7bc87db4d63a8c0abfd44 | ba2ddbff635db0ae1be7becc1a4ef6520cdaebbf | refs/heads/main | 2023-08-18T14:00:12.886588 | 2021-10-26T15:52:00 | 2021-10-26T15:52:00 | 420,873,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | from django.db import models
# Create your models here.
class UserManager(models.Manager):
def basic_validator(self, postData):
errors = {}
if postData['password'] != postData['password_confirmation']:
errors['password_match'] = "Las constraseñas no coinciden, favor reintente."
... | [
"felipem39@gmail.com"
] | felipem39@gmail.com |
434fad0eaa4c453385b4cd6adfaddfc88e0bb4e4 | 4db7e83f27a07c7838b80ab5cb25a01da4db7199 | /main.py | acea4071a2692d7355b771ff79fc5c632c99b704 | [
"MIT"
] | permissive | knowmetoowell/PUBG-API | 8f01a0bd65134f98e3d619bb25a27cdcba8a7022 | d26c4ebc054750cb2a28eba8feff00674e34f263 | refs/heads/main | 2023-06-09T18:26:04.271997 | 2021-07-02T13:35:34 | 2021-07-02T13:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,388 | py | import asyncio
import pymysql
import os
import sys
import json
import aiohttp
import importlib
import datetime
from math import trunc
from sanic import Sanic
from pytz import timezone
import sanic.response as response
from log_config import LOGGING_CONFIG
app = Sanic(__name__, log_config=LOGGING_CONFIG)
platform_nam... | [
"gunyu1019@gmail.com"
] | gunyu1019@gmail.com |
b2751e339d9962f161e087abd2904dce3feee3f8 | 029fe3c82ace900aeeb6b5624aea9f02cccee571 | /dtlearn/nbayes/gaussian.py | e258251abd78c8921142c223696dca2fb7342347 | [
"MIT"
] | permissive | i-agrawal/dtlearn | 5b86bad7d67d84ee5f0ccfb130e142ce6a099748 | 5e925aece613a0402cecf9ee869dfd41e0e18bce | refs/heads/master | 2020-03-19T23:55:28.603406 | 2018-12-27T00:58:37 | 2018-12-27T00:58:37 | 137,024,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import numpy as np
from .. import Model
class Gaussian(Model):
def train(self, x, y):
self.labels = np.unique(y)
groups = [x[y == label] for label in self.labels]
self.means = np.array([np.mean(group, axis=0) for group in groups])
self.varis = np.array([np.var(group, axis=0) for ... | [
"ishan.agrawal97@gmail.com"
] | ishan.agrawal97@gmail.com |
09e9bd7c4d26cbef87fec0324296b7b0e260ef3a | 5453a23a6c59bd354e2b07f87336b8fb3a618741 | /Growth curve/doubleing_time.py | 31edccbc56f2420eaf0340889d88101573cd5f5b | [] | no_license | MinTTT/pycode | bfe7d311f7bd14c9775a8d8c5b6a4969b0d1ec57 | 7658b1460d0ca7bef50937bbc18f6bd4bcdb1b4e | refs/heads/master | 2020-04-01T04:09:32.787824 | 2018-10-13T08:54:41 | 2018-10-13T08:54:41 | 152,852,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # -*- coding: utf-8 -*-
'''
This module need three parameters
x: time sequence, y: ABS or OD
max: logmarthtic midpoint
'''
import numpy as np
from scipy import optimize
def doutime(x,y,max):
logtime=x[np.arange(max-38,max-10,1).tolist()]
logod=y.iloc[np.arange(max-38,max-10,1).tolist()]
def residuals(p)... | [
"34529833+MinTTT@users.noreply.github.com"
] | 34529833+MinTTT@users.noreply.github.com |
c439a364452d8c084ee3f038cccde1007cb39e21 | 560d0c8a59b7933d91e4e37ed3302abfd195395c | /test/player_p2.py | b8fb82f201cb18d9905a079ae85572c4034d03bd | [
"Apache-2.0"
] | permissive | kakao/pycon2016apac-gawibawibo | b56043ca0cdfcfe0375a1d86a85a4534f762420d | b74862562c51f0d027f20030346a8a3e8cb081b6 | refs/heads/master | 2020-09-26T22:01:45.387401 | 2016-08-22T09:01:09 | 2016-08-22T09:01:09 | 66,256,293 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | def show_me_the_hand(records):
return 'gawi'
| [
"iolothebard@gmail.com"
] | iolothebard@gmail.com |
0121ed472138d492c9faefbd6f0c04308f5c2a4a | 69cbb90a54ef4c312d7939c31d1da4060776306a | /airWritingPrediction.py | d0716f98214463884e6f81fe5825557eb6af1cd4 | [] | no_license | priyankagohil/AirWritingRecognition | 602d08131e7908b6fc13204dc4d0e9f27ca6e041 | 5228798157f7f21b59e6ef688e8f33e076657416 | refs/heads/master | 2023-08-24T10:48:51.588127 | 2021-01-06T17:52:56 | 2021-01-06T17:52:56 | 312,326,541 | 3 | 0 | null | 2021-10-18T05:43:02 | 2020-11-12T16:01:41 | Python | UTF-8 | Python | false | false | 8,577 | py | import cv2
import numpy as np
import copy
import torch
import torchvision.transforms as transforms
import torch.nn as nn
import torch.nn.functional as F
from PIL import Image
rect1_tl = (320, 140)
rect2_tl = (320, 240)
rect3_tl = (320, 340)
rect4_tl = (240, 270)
rect5_tl = (400, 270)
height = 30
width = 30
"""CNN ar... | [
"priyanka@onlinedegree@iitm.ac.in"
] | priyanka@onlinedegree@iitm.ac.in |
5532be931e0b45443ac49288433d6dbcf3e6db85 | ad297efe52cb150997f6ee7828bb9fbd8512d60b | /scout/Miner/amazon_scraper.py | e2ef13a8379a6122cffd3765cc16b0aad7b9db73 | [] | no_license | happyxiaoxu/zonmine | 8b43f5bbb4dbadda324140bddd04aa603f7f51e8 | e016cbc77c4be05ffdcd74bd98f8da898956a419 | refs/heads/master | 2022-12-16T09:53:04.427931 | 2019-04-03T02:02:38 | 2019-04-03T02:02:38 | 179,192,426 | 1 | 0 | null | 2022-12-08T01:21:41 | 2019-04-03T02:11:17 | CSS | UTF-8 | Python | false | false | 13,415 | py | # from .config import Config
# from .product import Product
from scout.Miner.config import Config
from scout.Miner.product import Product
from scout.Miner.grepwords_api import KeywordsApi
import lxml.html
import re
# from fuzzywuzzy import fuzz
from difflib import SequenceMatcher
from urllib.parse import quote_plus
f... | [
"happyxiaoxu@outlook.com"
] | happyxiaoxu@outlook.com |
3cb54764d75b5f50045410295526124deb9a2ad6 | eda865165f43083ea3281c0b55e8118147caa604 | /mysite/views.py | 654659a8306ec411683d4eaf29189841974542b2 | [] | no_license | MrPathak21/TextMagic | d86aa75c23881b2d28b1b3fb1efa9b708cf413c5 | 92b9a6950d7c36eedb48c6751f7e4dff75ea9f63 | refs/heads/main | 2023-05-08T19:02:02.339862 | 2021-05-28T21:01:11 | 2021-05-28T21:01:11 | 371,816,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | # I have created this file - Shikhar
from django.http import HttpResponse
from django.shortcuts import render
'''
def index(request):
return HttpResponse('<a href = "http://127.0.0.1:8000/navigation"> Click here to go to navigation page</a>')
def about(request):
return HttpResponse('This is about page')
def na... | [
"66026814+MrPathak21@users.noreply.github.com"
] | 66026814+MrPathak21@users.noreply.github.com |
72e036decfd9852b8b0e9d8170a5cb7d4a854ab6 | efd5d310c1a43335a70fbcb89a2480aa7aa1f423 | /goto.py | f3a86a748de3a5238c0a2cc5d452c397e6c070cc | [
"Unlicense"
] | permissive | tianjinghai1978/python-goto | aee690c59ef4e5fecedd742a7db8a44e76de5f52 | acbe736221d2238df3d09beab457d0bb19d05812 | refs/heads/master | 2023-03-19T08:27:22.300630 | 2019-12-15T12:48:22 | 2019-12-15T13:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,676 | py | import dis
import struct
import array
import types
import functools
try:
_array_to_bytes = array.array.tobytes
except AttributeError:
_array_to_bytes = array.array.tostring
class _Bytecode:
def __init__(self):
code = (lambda: x if x else y).__code__.co_code
opcode, oparg = struct.unpack_... | [
"sebastian.noack@gmail.com"
] | sebastian.noack@gmail.com |
04a6497aa4fb2f2caa9082dd44f7be71664ea415 | 1f96e1101cf253a94efa824a0406d807fd93acc1 | /archive/MyBot_213.py | a4963ca3dc631aa58ab5ddfd54bfe1a6dc0445eb | [] | no_license | sp00/google_ai_bot | 228f48302e556271ed6714ebad9c0e449e992f25 | 1f3f77a00dc8289ad8e5ae9378b748fb099bc756 | refs/heads/master | 2020-12-25T00:49:59.968563 | 2010-11-30T03:14:16 | 2010-11-30T03:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,352 | py | from planetwars import BaseBot, Game
from planetwars.universe3 import Universe3
from planetwars.planet import Planet
from planetwars.player import PLAYER1, PLAYER2, NOBODY
from planetwars.planet2 import Planet2, getLogger
from planetwars.universe import player, Fleet
from logging import getLogger
import planetwars.plan... | [
"apinkin@apinkin-lappy.(none)"
] | apinkin@apinkin-lappy.(none) |
61181ee6c9b296d449fba0d588a715d3307c4d76 | 5fca0fc6fcada38c91227ee8b10bfe5ae39d374d | /manage.py | c2404b6994bc86aba007914f31ff62ad12e5e8b2 | [] | no_license | Lex3528/Polling | 4d1712993afa8a2a0516f524862455900135bf3a | bdfa8da16367de518162ca87d8d9aa14951b2368 | refs/heads/master | 2022-12-16T04:51:46.528666 | 2020-09-24T18:13:39 | 2020-09-24T18:13:39 | 298,347,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'apps_conf.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"mikhaylov611@mail.ru"
] | mikhaylov611@mail.ru |
18b774f735198bcefe1ca5a4e8ffe56b83d8dfd2 | 120622dd09db3aa677e0c0100ea6380b04883aa7 | /.envPy3/lib/python3.6/site-packages/pip/_vendor/distlib/wheel.py | 9a09509ac907b10ca6b57882f7e41d100c2bf407 | [] | no_license | jeffonmac/MacGyver | bf72beacb14a5ddc2aed5787b616d85871b7f3ba | 9b9db6b79164bad7874ba134695174792e2d9a28 | refs/heads/master | 2021-01-18T13:26:01.335442 | 2017-09-13T13:35:37 | 2017-09-13T13:35:37 | 100,375,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,119 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2013-2016 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
from __future__ import unicode_literals
import base64
import codecs
import datetime
import distutils.util
from email import message_from... | [
"cjoffrey@gmail.com"
] | cjoffrey@gmail.com |
2961d204760a2520fcea0110dbca3da1a4547114 | 19e263ce69087e386b5bb92a534f69dc39f46877 | /main.py | d961541aca3d03c63940ce20ef6e66755e29c7f0 | [] | no_license | Jyuukun/PS5-Alerts | 055b855bde75540b8534d7c713c0edf04dbcb807 | f13deb7353f11ea486c204e52e7e4a38a1544161 | refs/heads/main | 2023-04-04T16:51:57.826709 | 2020-11-26T15:44:20 | 2021-04-12T11:36:30 | 316,273,706 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,507 | py | # -*- coding: utf-8 -*-
import logging
import os
import sys
import signal
import smtplib
import tempfile
import time
from configparser import ConfigParser
from weboob.tools.log import createColoredFormatter, getLogger
from amazon import AmazonBrowser
from auchan import AuchanBrowser
from boulanger import BoulangerB... | [
"mail@elambert.me"
] | mail@elambert.me |
c72d9299bc10665a4db3242dbdca70d84cf13520 | 68ea05d0d276441cb2d1e39c620d5991e0211b94 | /2714.py | c816933a2eed56ec8282d45061a5d42bbd7766f2 | [] | 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 | 221 | py | n = int(input())
while n > 0:
n -= 1
ra = input()
saida = 'INVALID DATA'
if len(ra) == 20:
if ra[0:2] == 'RA':
if ra[2:].isdigit():
saida = int(ra[2:])
print(saida)
| [
"m.cavalca@hotmail.com"
] | m.cavalca@hotmail.com |
c22cd593f5f83ae3732d104ca10c62e681b4363f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_159/609.py | 1d4cb7959af1112bc540d578dcf82f9dfd5fc3ae | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | f = open('A-large.in')
#f = open('test.in')
count = int(f.readline())
output = ''
for x in xrange(1, count + 1):
platesCount = int(f.readline())
arr = f.readline().split()
case1 = 0
case2 = 0
case2MaxGap = 0
for i in xrange(0, platesCount - 1):
curPlate = int(arr[i])
nextPlate = ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ea09bbbb1e03af80da8927d9c004f5b2689e5ce9 | 31abd09a08ebbec64951b7724fb94b178546bfd0 | /Classifier/binary_classificationTree.py | 287452ddfad30ccab4cb3b759930b3a3cb1bbde9 | [] | no_license | juancho618/TAI_Project | 9839ab014a14cc5c030217f12e72ab164eada297 | 63d55659cc1e4e7f36461762e99aaaa5f4b2b500 | refs/heads/master | 2021-01-23T02:18:58.628859 | 2017-05-31T07:27:33 | 2017-05-31T07:27:33 | 92,917,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | import pandas as pd
import matplotlib.pyplot as plt # plot library
from sklearn import tree
from dataProcessing import * # dummy encoding
from sklearn.preprocessing import OneHotEncoder # best codification for categorical data
df = pd.read_csv('../finalDS.csv', header=0)
# print df # preprocess dataset with original ... | [
"jjsorianoe@gmail.com"
] | jjsorianoe@gmail.com |
f725e3ee7f1631ff7c08050264fac3d3468ddd14 | 859951d9fc8ec1377c9fdadbe5e21128879d89b0 | /unit21/a214_simple_window1_AC.py | 288aa54aa9b7e8dd1c0ab955b32a339df182ac98 | [] | no_license | Axis-Denied/csp_files | d61ff240306de8114e40e030b92582b962850b73 | 579a57e56bc616f42eac529de106f603aebc427a | refs/heads/master | 2020-12-06T08:01:10.765190 | 2020-01-09T19:13:03 | 2020-01-09T19:13:03 | 232,401,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | ##############################################################################
# a113_TR_simple_window1.py
# Example solution: Change its size to 200 by 100 pixels.
##############################################################################
import tkinter as tk
# main window
root = tk.Tk()
root.wm_geometry("200... | [
"cokera01@student.psdr3.org"
] | cokera01@student.psdr3.org |
1116093189d5bbdecb2913592b931a0012e07283 | 4501c310488b7d019098858e8577b020b6346d79 | /Code/PythagoreGUI.spec | 0e1160a49ef72111528452fa78fd7e07d45c8cdb | [] | no_license | nathanbegin/Pythaface | 13d4b030fd9809dd59715f1b0a6cb79db499e012 | 0660421f62b67653a833f31d0fcd8864de7508ae | refs/heads/master | 2020-04-06T04:27:56.778429 | 2017-02-23T01:35:50 | 2017-02-23T01:35:50 | 82,733,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['PythagoreGUI.py'],
pathex=['C:\\Users\\natha\\Desktop\\Pythagore\\Code'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=... | [
"nathanbegin@gmail.com"
] | nathanbegin@gmail.com |
afbade6cf7187497d35c8ebf245bc2caf3732775 | c0e41a88ff45bdb7bbdc8e4276427b276eec5d13 | /kyo/python/1_function/1_args.py | a93d7b955d358025108b2595479cdd21473a90fb | [] | no_license | sunzhqiiang888/KingSun | 7440748825ed72c411f8ff63c478ad412efa51ac | 7473cc30d398f1ae96cbc7175198052d518fef94 | refs/heads/master | 2020-03-08T08:17:17.284210 | 2018-04-15T03:15:25 | 2018-04-15T03:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #!/usr/bin/env python3
def test(name='未知', age=17, sex='男', phone="13602578723"):
print("学生信息: %s(%d) %s %s" % (name, age, sex, phone))
def testV(name, *args, phone="13877777777", **kwargs):
# print(args, type(args), kwargs, type(kwargs))
print(name, args, phone, kwargs)
if __name__ == "__main__":
... | [
"354340684@qq.com"
] | 354340684@qq.com |
788ffc9f63b276da6cc4ebcab3f6f95eb32e6321 | 81384c792f7c8d85e08318abb0b79b1ae8768718 | /controllers/draft.py | 29ddfaecee941213b208aec42a7aac05f804e5a8 | [
"LicenseRef-scancode-public-domain"
] | permissive | drewbeller/team_drafter | b2037afed29268b253a4a03a6dd6122396ad89ae | 152f421d947c6c33442261f229dac4535b1b7bc2 | refs/heads/master | 2021-01-01T17:17:20.900147 | 2015-08-16T20:52:59 | 2015-08-16T20:52:59 | 23,207,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | # coding: utf8
import ast
def generate_picks():
# load draft parameters
draft_order = db(db.draft_parameter.draft_parameter == 'Draft Order').select().first()['draft_parameter_value']
rounds = int(db(db.draft_parameter.draft_parameter == 'Rounds').select().first()['draft_parameter_value'])
# pick_times... | [
"Drew@drews-mbp.bellerhome"
] | Drew@drews-mbp.bellerhome |
081d7e5abd1e6534a8b35c34749bb42b37674a75 | 41e59ef6eed28c5c89fc5e5ad54605077819f812 | /mnist_archs.py | e8337f2311dd87a1c7e47e738a2387ba43589f6c | [] | no_license | zueigung1419/IntrinsicDimDeep | 498185a6bf27d61eb2073c5dfa1ba0514611e142 | 2c5140009eb3efccca1d774dc66cb043c04b26d8 | refs/heads/master | 2022-04-11T11:50:42.203540 | 2020-03-13T11:38:19 | 2020-03-13T11:38:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
# F.Chollet architecture
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(1, 32, kernel_size=3)
self.conv2 = nn.Conv2d(32, 64, kernel_size=3)
# dropout 0.25
self.fc1... | [
"alessioansuini@gmail.com"
] | alessioansuini@gmail.com |
ec7a051e8f0312346a58fd5aba93972c0e87435a | 3a517a9b62e24eccfa44baf8a93857f14e1042bc | /Infy Assigns/Virus.py | d38330ed11c02ce27a4527cce963040597b38385 | [] | no_license | milindaj/codingground | d20831323603e040f3c1285f222a11eb9e653662 | ee9035d539d33e673df54c681102307a41e93585 | refs/heads/master | 2016-09-06T00:46:05.624018 | 2015-01-22T02:29:19 | 2015-01-22T02:29:19 | 29,096,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | # Hello World program in Python
print "Hello World!\n"
#input = "90 120 Infected,90 150 NotInfected,100 140 Infected,80 130 NotInfected#95 125,95 145,75 160"
input = "80 120 Infected,70 145 Infected,90 100 Infected,80 150 NotInfected,80 80 NotInfected,100 120 NotInfected#120 148,75 148,60 90"
split = input.split(... | [
"milindaj@gmail.com"
] | milindaj@gmail.com |
79397345c631e26cb88ef3385cd94d8a3e22ec70 | 678b5e4378d809f5048a9284de1f845a3c4540f6 | /src/scenes/cards/Card.py | 266f093ce35443c5e4d2b72124060ef11cd7b63b | [
"MIT"
] | permissive | codingblocks/get-outta-here | 2fccc4c97104078fdd70c2a9b5ea8cfbaf6a7706 | 8d37047876a93a050f0116086a470df123421cb9 | refs/heads/main | 2023-02-23T14:52:04.986791 | 2021-01-24T22:32:08 | 2021-01-24T22:32:08 | 332,569,558 | 0 | 1 | MIT | 2021-03-25T06:33:31 | 2021-01-24T22:24:59 | Python | UTF-8 | Python | false | false | 6,676 | py | import pygame
from src.config import (CARD_FRONT_BACKGROUND_IMAGE, CHARACTER_SPRITE_PATH, MAP_TILE_HEIGHT,
MAP_TILE_WIDTH, MAIN_FONT_FILE, MAP_TILE_SCALE, CARD_TEXT_SIZE, CARD_TEXT_COLOR,
CARD_IMAGE_SIZE, CARD_TITLE_SIZE, CARD_TITLE_IMAGE, CARD_TEXT_IMAGE, CARD_TYPE_IM... | [
"me@joezack.com"
] | me@joezack.com |
05502558d8297623342bf39c101073a7049393f0 | 140003818ac3cf9a7d427ee5f0e87b1bc4f770ec | /metrics/mAP.py | cf8920732faacba76ba21e41f2c07bd950366558 | [
"MIT"
] | permissive | chisyliu/RADDet | e495a80a7bdbd3ecd473130386c00809df5ff4f0 | 5c0020dc24024f5b87e864554769f5926b73593a | refs/heads/main | 2023-04-18T22:21:57.054785 | 2021-05-02T14:16:51 | 2021-05-02T14:16:51 | 364,338,015 | 1 | 0 | MIT | 2021-05-04T17:40:57 | 2021-05-04T17:40:57 | null | UTF-8 | Python | false | false | 4,450 | py | import tensorflow as tf
import tensorflow.keras as K
import numpy as np
import util.helper as helper
def getTruePositive(pred, gt, input_size, iou_threshold=0.5, mode="3D"):
""" output tp (true positive) with size [num_pred, ] """
assert mode in ["3D", "2D"]
tp = np.zeros(len(pred))
detected_gt_boxes ... | [
"zhangaocanada@gmail.com"
] | zhangaocanada@gmail.com |
20635d8de0d79ef721fcfb9b23358878187fd7dd | e1032ba0bff93df82f6418f67edcf896dd134c68 | /Hackerrank/sorted_sums.py | a4a2accb0fc5099a0a231c30429d05c63257d35f | [] | no_license | webdastur/ProgrammingProblems | 2956e1700866eeb957ccc027e4e14bb2a9ec37a2 | 8677ecb4d3e1377e5b73351eee19fe68b6febd9c | refs/heads/master | 2022-11-09T16:43:04.469734 | 2022-10-29T13:51:22 | 2022-10-29T13:51:22 | 183,794,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | class SortedSums:
def __init__(self, size):
self.size = size
self.arr = [0] * self.size
def add(self, x, val):
if x == 0:
self.arr[0] += val
return
while self.size > x:
self.arr[x] += val
x += x & (-x)
def rank(self, x):
... | [
"webdasturuz@gmail.com"
] | webdasturuz@gmail.com |
4d71975bc09e3c0a6e6ee256fd6840bf15111f68 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/sockets/tests/test_importer.py | d4c7afc7997e84b3c918c6e4dc2634f31084008f | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,405 | py | # coding=UTF8
from unittest import mock
from django.test import TestCase
from django.utils import timezone
from apps.sockets.exceptions import ObjectProcessingError, SocketConfigValidationError, SocketMissingFile
from apps.sockets.importer import INTERVAL_REGEX, SocketImporter
from apps.sockets.models import Socket
f... | [
"rk@23doors.com"
] | rk@23doors.com |
d667c4b00b34a3dea6dc5a59897ad12547204d3a | 62f723af2777f987ed25ff4026aa2ad1ef9e5ce7 | /model/modeling.py | 8ca4d7e742ceae0d99665ca8af9b33e4998a5447 | [] | no_license | renjie-liang/Flatten_Net | 0c311b7625323c848d3aac72a14d97647b8ca6fe | fe8ff7932cf05fb36a8bfb674d8061e52a6027ab | refs/heads/master | 2022-12-21T08:02:40.841405 | 2019-10-06T19:09:42 | 2019-10-06T19:09:42 | 211,687,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import torch
import torch.nn as nn
from model.net import *
from lib.config import cfg
class get_Model(nn.Module):
def __init__(self):
super(get_Model, self).__init__()
self.net = eval(cfg.MODEL.NET_NAME)()
def forward(self, x):
x = self.net(x)
return x
def to_stirng(sel... | [
"allen_rj@163.com"
] | allen_rj@163.com |
0f3ce92a2ff9742a1df0452ef3c71ce7e361bd2b | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Books/LearningTensorFlow/Chapter5_Text_Sequence_Tensorboard/scan_example.py | 4cf7e1f4fa42316220ed1621d22dc6ddfdcbd77a | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import numpy as np
import tensorflow as tf
elems = np.array(['T', 'e', 'n', 's', 'o', 'r', ' ', 'F', 'l', 'o', 'w'])
scan_sum = tf.scan(lambda a, x: a + x, elems)
sess = tf.InteractiveSession()
print(sess.run(scan_sum))
sess.close() | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.