blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f859fc57667f8bed51b042f8d1c2df2142e5cd3e | 07ef79cf5c54c492f58174f09aa8e3f01f6ddff8 | /5_1.py | 70b89d4c0e9ffc3e50f9991121e170e6d815a481 | [] | no_license | AlexandrKnyazev238/Knyazev_Alexandr_DZ_5 | 3c2352b4d68d7f073c3fbc9d6cfddd195c93e2e1 | f852fba1961d56ab42b8b3d19bdb7fc63ebc4416 | refs/heads/main | 2023-08-11T02:54:59.274426 | 2021-10-14T17:32:15 | 2021-10-14T17:32:15 | 417,223,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Task 1
def odd_nums(num):
for num in range(1, num + 1, 2):
yield num
for i in odd_nums(int(input('Перед Вами генератор нечетных чисел от 1 до n (включительно),'
' введите пожалуйста число n: '))):
print(i)
# def odd_nums(n):
# for odd_num in range(1, n + 1, 2):
# ... | [
"noreply@github.com"
] | AlexandrKnyazev238.noreply@github.com |
58e9db199bec99f303592039f16a4d75df8235cd | 0bf5d64e895d824a64fa5f044ac5a684721bfb79 | /005 Functions.py | ba6db0e16a09c88e3b89ddce2a4036068f8ce56c | [] | no_license | nikio8/Python | ae7be8049d25f08a31a6bf68dfebb4899c9507e1 | 411774cbef096ef30cf60513a3dea18173e1560d | refs/heads/master | 2022-11-17T12:02:27.567585 | 2020-07-14T14:46:42 | 2020-07-14T14:46:42 | 279,603,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import sys, time
def a():
print('a() starts')
b()
d()
print('a() returns')
return "a"
#sys.exit()
def b():
print('b() starts')
c()
print('b() returns')
def c():
print('c() starts')
print('c() returns')
def d():
print('d() starts')
print('d() r... | [
"noreply@github.com"
] | nikio8.noreply@github.com |
052b15746dc7c72daafc731c4320863656a577e4 | d3f0698c9df956c7028432102e88e282232aa9ca | /bookshelf/filters.py | 2fbd38637e66f3b58e167d5b257c02afc68baa89 | [] | no_license | aaaaasv/library | 224582cd63246020ee4ce28feffa53070c71356b | 08b79803a8cd91e1187ee6dac0131e644d5b2b1a | refs/heads/master | 2023-03-27T01:29:00.251923 | 2021-04-01T14:30:00 | 2021-04-01T14:30:00 | 255,107,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django import template
register = template.Library()
@register.filter
def get_status_color(status):
colors = {'A': '#00FF7F', 'N': 'red', 'available':'#00FF7F'}
return colors[status]
@register.filter(name='has_group')
def has_group(user, group_name):
return user.groups.filter(name=group_name).exists... | [
"aaaaasv@users.noreply.github.com"
] | aaaaasv@users.noreply.github.com |
4e34bf3f441b315b9c80825f31985e81b6195334 | 6fffacd69b4f642015520d6a5da079466d32bc1d | /carts/migrations/0043_auto_20191108_2058.py | 5efbcb1d8e5f4dc435f175c9059b8010e7b07898 | [] | no_license | imroon1/tost | 8a690f5ee446a11e3f8f653a5ca26233192dd450 | 7c95ec7a9a42bd842e4292d73cf9b0b6878f7ecb | refs/heads/master | 2023-04-19T16:36:50.346763 | 2021-05-02T20:52:51 | 2021-05-02T20:52:51 | 363,496,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2019-11-08 13:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0042_auto_20191108_2050'),
]
operations = [
migratio... | [
"samroonsamroon@gmail.com"
] | samroonsamroon@gmail.com |
8a9eb7d220a36d94c1828bbdfe17421cfd1fefbc | b3f0ea3c87e9d615b4948f6278cd3ec5a8036810 | /manage.py | ac730e29454568de01c862efa2f85098ae8258ce | [] | no_license | conradnoggt1/hospital1 | 4c9d4d25b6ed9e9f9cd68c236f331f839e6b2bb6 | 442049ab10db18db95edd995c78f51e18885cdf1 | refs/heads/main | 2023-01-15T07:35:20.160822 | 2020-11-09T16:54:57 | 2020-11-09T16:54:57 | 312,584,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'prjHospitais.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"56921696+Perazza@users.noreply.github.com"
] | 56921696+Perazza@users.noreply.github.com |
33df551f6e64453acd8d848d9e972a7826f2eb73 | e70ce09d649d8d51ccbba15810e2ea03e9fd49e5 | /config/api_router.py | d4b0101e7ec15a64bbea708b44a21aedf7a98c0a | [
"MIT"
] | permissive | moisesmayet/ovu | a4df0dc3ff51f3dd8cbd6a7baca68a67304274bc | 50d7700f53524dc3ee74c7669bc3476342013793 | refs/heads/main | 2023-07-30T09:00:40.913992 | 2021-09-14T12:35:45 | 2021-09-14T12:35:45 | 406,226,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from ovu.users.api.views import UserViewSet
if settings.DEBUG:
router = DefaultRouter()
else:
router = SimpleRouter()
router.register("users", UserViewSet)
app_name = "api"
urlpatterns = router.url... | [
"moisesmayet@uapa.edu.do"
] | moisesmayet@uapa.edu.do |
dc7622e0e4556561ca421421ef3bccbb992e6ce5 | 45011a024f60be876779250f25ac23a7039e652c | /my_app/urls.py | 8130e646b507ac5f0650c32ed7d9ad35d66922a1 | [] | no_license | dileepchil1995/search-engine | 7be5c0966b64aa7663e5c3c0edd4b21854c4d9c5 | 956cab826d2b5d83156635cb8cf1be7862995269 | refs/heads/master | 2022-12-02T02:33:29.142824 | 2020-08-18T03:02:35 | 2020-08-18T03:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('new_search', views.new_search, name='new_search'),
] | [
"dilip.chilakapati1995@gmail.com"
] | dilip.chilakapati1995@gmail.com |
ea3f5d69d1a19ea68360500b035b8d1a09f3dda9 | 319731c4788fb82813f81a63cac3f23171285815 | /config/settings/production.py | 9c9aa6aad0038ff0f50cfbea1d4136e5e4c30668 | [
"MIT"
] | permissive | seankim84/djangoproject | 2171abac27c2fc41d5d2ac8a0f86fa6772c10439 | dc442098d8e17beff086f3acd325f8fca3b41583 | refs/heads/master | 2022-12-13T23:01:53.078813 | 2018-05-16T13:19:50 | 2018-05-16T13:19:50 | 130,310,410 | 1 | 0 | MIT | 2022-12-09T08:30:55 | 2018-04-20T04:49:40 | Python | UTF-8 | Python | false | false | 8,824 | py | import logging
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env('DJANGO_SECRET_KEY')
# https://docs.djangoproject.com/en/dev/ref/settings/#allow... | [
"rebekahpark@Rebekahs-MacBook-Pro.local"
] | rebekahpark@Rebekahs-MacBook-Pro.local |
a520159790da1a022179186669023ec105abbdc6 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/sphinx-click/test.py | fa3a3b271b1591d4f29a2c1955f2b59d29285eea | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | import sphinx_click
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
dfeab4ae03e94a5052960d47d109cee06f27245a | d79843911cde0ce05171a97423c4aa6db7fe7118 | /build/CreateGraph.py | af19ec09cca036fd0d7d15de01795edaea935af4 | [] | no_license | Razzis/projet_velib | fcedd8af50d2fd4135d7cf95bd0d6d9c2a97aaab | c7ca6e140ffc9b12b1c26867aa57aee084851e63 | refs/heads/master | 2021-01-10T16:12:50.561594 | 2016-01-07T12:34:03 | 2016-01-07T12:34:03 | 47,836,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
"""
Éditeur de Spyder
Ce script temporaire est sauvegardé ici :
/home/hassan/.spyder2/.temp.py
"""
import csv
import matplotlib.pyplot as plt
import numpy as np
plt.clf()
cr = csv.reader(open("Recuit2.csv","rb"))
cr2 = csv.reader(open("Recuit2.csv","rb"))
row_count = sum(1 for row2 in cr2)
... | [
"lucashassan@hotmail.fr"
] | lucashassan@hotmail.fr |
e1b1e493e9f4053d3e5a580041c774a2a73ca7e0 | 55983026405316f2fc6de40291022544a4a1be5d | /PartI_Introduction_To_Programming/Video6_Intro_To_Programming/ex3.py | c21fdec2980245694ccf1600095f0a8aff5a5480 | [] | no_license | deborabr21/goselftaught | 3fd8cf9bb7119b2665101b950de5eac083d0d410 | 04919ce8db8e2bf7a6595ff822791a2d6c95dda5 | refs/heads/master | 2022-12-22T00:37:48.538075 | 2020-09-16T20:11:01 | 2020-09-16T20:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | print("Hi!")
print("Hola!")
| [
"praveenn069@gmail.com"
] | praveenn069@gmail.com |
71520d31740ea00d99a88c166c5c8f1a7b9f67b5 | b3b82d954fafaf1912341cddb27431637532ee4e | /tests/config_tests.py | 0450a6fb3fd7a4880d9de1faeace4bf2b72cff69 | [
"Apache-2.0"
] | permissive | nickmaccarthy/Tattle | b22fb3b7505c097433d7a4d226aa1bc703c1f00b | b3ef57b90b804ae62124803a92c828ef80d8e8b2 | refs/heads/master | 2022-07-08T10:20:20.979486 | 2018-11-03T22:38:31 | 2018-11-03T22:38:31 | 58,227,173 | 10 | 1 | Apache-2.0 | 2022-03-29T21:53:16 | 2016-05-06T18:31:31 | Python | UTF-8 | Python | false | false | 933 | py | import sys
import os
import re
import datetime
import time
import yaml
import json
from pprint import pprint
TATTLE_HOME = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
os.environ['TATTLE_HOME'] = str(TATTLE_HOME)
sys.path.append(os.path.join(TATTLE_HOME, 'lib'))
sys.path.append(os.path.join(TATTLE_H... | [
"nickmaccarthy@gmail.com"
] | nickmaccarthy@gmail.com |
f91c7f5beb8992a95e9e7ab04abb15dd31857734 | 63cad4aecb02ee1a033567ea793c477c5bb14eed | /setup.py | 2add6d8b2b6557e03ee2c6d2f1950246e25c8ed3 | [
"MIT"
] | permissive | aadilk97/hw01 | 84269f548ec98554ea765ae48f1aac72c29d322b | f970de80ab73ee27eb218cadd7b18ad8ea458654 | refs/heads/master | 2022-12-03T08:59:13.117275 | 2020-08-17T16:55:47 | 2020-08-17T16:55:47 | 287,400,599 | 0 | 2 | MIT | 2020-08-17T03:48:19 | 2020-08-13T23:38:56 | Python | UTF-8 | Python | false | false | 331 | py | from setuptools import setup
setup(
name='group_15',
version='v1.0.0',
description='Homework_1 : Making a Good Repository',
author='Aadil Anwar Khan',
author_email='akhan23@ncsu.edu',
license='MIT',
packages=setuptools.find_packages(),
python_requires='>=... | [
"bhavesh.agrawal242@gmail.com"
] | bhavesh.agrawal242@gmail.com |
1b49e774373cbe65993cd5433ebc95da1431277d | 88e10553a2ca169a24f919582208c195f479827d | /api/wiki/__init__.py | 675a4fa3251364d176f4e42ebd963d542631a263 | [] | no_license | Jamba777/wiki | e6055823c85545e692236e586d06f264867aba97 | 480469dc4f22526fc6a66241e26b5918eab34d24 | refs/heads/master | 2023-07-25T01:40:09.182914 | 2023-07-17T15:32:20 | 2023-07-17T16:33:55 | 167,555,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | default_app_config = 'api.wiki.apps.WikiConfig' | [
"a71d97l747@gmail.com"
] | a71d97l747@gmail.com |
15dab3acd9bfe7df5a470c2924edd5a0932585fb | 1b62a66e8d7b2bbdfce222b53d2ab05202291f4b | /hs_info/models.py | 57b5c9eb24565c88c2a586fc99a7f24ee3f0e241 | [] | no_license | lotaku/hushua_old | ca7c1aecfa1d344c262e61378b6a795c8ed6e866 | 665a4a13fdf7f0e59a0e3db136a94d53b997d321 | refs/heads/master | 2020-04-20T00:11:34.948600 | 2014-08-12T14:53:34 | 2014-08-12T14:53:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # encoding: utf-8
from django.db import models
# Create your models here.
class HsInfo(models.Model):
#小号要求
week_limited = IntegerField(null=True, blank=True)
month_limited = IntegerField(null=True, blank=True)
is_seller = BooleanField()
# name = models.CharField(max_length=100, null=True, blank=True)
#... | [
"317399510@qq.com"
] | 317399510@qq.com |
571d7847b6e6c7876fee1f75432242e0957b968b | 28668937152aea6677f54b25c976ded8d589a398 | /wechat/wechat/service/mods.py | f80ba85198caebfa3882578dfbf4fb6ec5cf0b37 | [] | no_license | MemoryAndDream/wechat_new | 82715631d33c07360b931afd5e8d617fdf59eb6b | 4968aa80c88aa5c694c3fc8bf7b126003312359e | refs/heads/master | 2021-09-01T13:58:08.851808 | 2017-12-27T10:02:55 | 2017-12-27T10:02:55 | 115,470,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # encoding: utf-8
"""
@author: Meng.ZhiHao
@contact: 312141830@qq.com
@file: mods.py
@time: 2017/12/27 14:45
"""
from ..crawler.common.crawlerTool import crawlerTool as ct
#根据输入模式命名mod ,mod比如 pan,qgg 用于一个后台支持不同的功能,比如可以根据公众号id设置不同逻辑
def mod_check(input):
mod = 'qgg'
return mod
| [
"312141830@qq.com"
] | 312141830@qq.com |
7cd0df23037dfbb63476a900d925ef74e307a639 | fdeac2cbbfef7d22061de15459ffa18f00eda0af | /publisher.py | 8f3a7b05126b381de9b8e6f7763feb6f9e419236 | [] | no_license | maheshgprasad/mqtt_paho_demo | dbb2cd42453b11b29f13f82af773d53c145c6df2 | 80c9ba949c925896901b8d326f3655aa2b0f6777 | refs/heads/master | 2022-12-11T05:45:30.241522 | 2020-08-25T09:20:25 | 2020-08-25T09:20:25 | 276,313,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # Import package
import paho.mqtt.client as mqtt
# Define Variables
MQTT_HOST = "test.mosquitto.org"
MQTT_PORT = 1883
MQTT_KEEPALIVE_INTERVAL = 5
MQTT_TOPIC = "ShadowPlay"
MQTT_MSG = "Kubuntu is awesome"
# Define on_connect event Handler
def conn (client, userdata, flags, rc):
print ("Connection to MQTT Message Bro... | [
"42564944+maheshgprasad@users.noreply.github.com"
] | 42564944+maheshgprasad@users.noreply.github.com |
0776a2b4efb3e70fbd7d48a18f1f1ee9744424a6 | b652b6a0db3457d5d0b6963c6cc5ba2ce47a8553 | /filtro_imagen.py | 8ddab82ead19b5abe9981c3527991c59b2e72089 | [] | no_license | enzote84/pyrm | 2c5d955c4b6657f4528abc79d328961a378390a8 | 4e3f80d16cd8f7276447e9b7189541c7948e8679 | refs/heads/master | 2022-10-22T18:39:50.065970 | 2020-06-12T15:58:12 | 2020-06-12T15:58:12 | 271,836,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | #
# DEMR
#
# clase: FiltroImagen
#
# 2013-Oct-21
#
# importar la clase Imagen.
import imagen
class FiltroImagen(object):
"""
Clase base de una jerarquia de clases de filtros.
Esta clase es abstracta, ya que no tiene sentido implementar un
filtro sin una forma particular de filtrar.
Todos los filtr... | [
"davidenzomedina@gmail.com"
] | davidenzomedina@gmail.com |
52170475bb3e4e2512553f18cf6180eb8ff63de9 | 1187f02013f2c0d785e8a12701226d4c99fea48d | /4153번 직각삼각형.py | d6cba8ccf5891ba4bf61bcc2f283bce6ad05ee24 | [] | no_license | rheehot/BOJ-Algorithm | 5b2745a648fd635aa727b84afa2a4787ee07c507 | 7aae709fb193f228ef7c2d5accee6af9ecc19090 | refs/heads/master | 2023-04-20T23:42:53.271984 | 2021-05-07T09:08:12 | 2021-05-07T09:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import sys
while True:
a, b, c = map(int, sys.stdin.readline().split())
if a==0 and b==0 and c==0:
break
else:
tri_len = [a, b, c]
max_num = max(tri_len)
tri_len.remove(max_num)
if max_num**2 == tri_len[0]**2 + tri_len[1]**2:
print('right')
... | [
"noreply@github.com"
] | rheehot.noreply@github.com |
fc76f26de5ed891c29829aaa79d4c9b0e43e00bf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_219/ch4_2019_03_14_18_25_45_666376.py | 58b1c4b3456ddc1302a823856e76d8b79a964285 | [] | 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 | 132 | py | y=int(input('Digite sua idade'))
if y<=11:
print('crianca')
elif 12<=y<=17:
print(' adolescente ')
else:
print('adulto') | [
"you@example.com"
] | you@example.com |
8fd27afe4b05c860b53b3f44856f5d94cb24ab91 | 1aab2aa3e00ec2d5f3078d2573ba7256438508a8 | /planeks/urls.py | 22cd287b51ad3996bd6c5e11ed96f4fb5f684bd0 | [] | no_license | crocodundee/planeks | fe10b417025bdecd01b84c2ec1114e7d9e88f616 | 49f5318ed8244e1240292f1ff20dfaa550219c4b | refs/heads/develop | 2022-02-13T13:02:41.793180 | 2020-03-15T16:00:10 | 2020-03-15T16:00:10 | 244,957,422 | 0 | 0 | null | 2022-01-06T22:41:58 | 2020-03-04T17:06:22 | JavaScript | UTF-8 | Python | false | false | 526 | py | from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, include
from posts.views import PostList
urlpatterns = [
path('', PostList.as_view(), name='home'),
path('post/', include('posts.urls')),
path('user/', include('users.u... | [
"anastasia.didan.asm@gmail.com"
] | anastasia.didan.asm@gmail.com |
82cd6e743cc6c4d4ee9f79f366807737015ccc46 | dbd67c9841f7dc1e1fe62a5f3e268f24107b91dc | /nn_based_test.py | 0fd8f77e6a9dea5f43661bee7ebb33a0e19c98ae | [] | no_license | hinanmu/NN-based | 9a4f262ddc8f40146c46dfa310528a3423c7d8b4 | d2a0e84f47b27d778ee211b7df88d68aae2d8b1d | refs/heads/master | 2020-04-07T11:45:16.363274 | 2018-11-22T13:15:04 | 2018-11-22T13:15:04 | 158,339,282 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | #@Time :2018/10/31 22:23
#@Author :zhounan
# @FileName: nn_based_test.py
import numpy as np
import tensorflow as tf
import evaluate_model
from sklearn.linear_model import Ridge
from sklearn.externals import joblib
from sklearn import metrics
def predict(x_test):
with tf.Session() as sess:
saver = ... | [
"hinanmu@gmail.com"
] | hinanmu@gmail.com |
c85a9af5044f046d9639c71232a32ea33ce08302 | fa321ca6047e62336eb0e840f1fa39c6ded3c6f8 | /InferenceRESTful/Engines.py | 5f5a6f620d1664ce113136122a27be7b01a15fbb | [] | no_license | AshishKumar4/Sketchula | 0f7089870b7241d3e1fa2854633a097e4288efde | 0239a06b9309202871a5c36bc7a77657a3e04fb3 | refs/heads/master | 2022-03-04T09:07:56.062769 | 2019-06-25T05:39:51 | 2019-06-25T05:39:51 | 193,306,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,668 | py | import torch
import torch.nn as nn
from torch.nn import init
import functools
from torch.optim import lr_scheduler
import os
from torchviz import make_dot
from PIL import Image
import numpy as np
import cv2
import torchvision.transforms as transforms
from photo_wct import PhotoWCT
from process_stylization import *
im... | [
"ashishkmr472@gmail.com"
] | ashishkmr472@gmail.com |
2fc62581d21ba5e0d9531a665125e34b6e4b25f9 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_1.1/linux_HSQLDB_Edit/TestCases/Y1_NamedFldTests/Filter/Filter035_TextGT.py | d2606ef2bcfb6fbb6ba5439919f5a3ceb57e15ed | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | useFixture(RecordEditor)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_22'
if window('Record Editor'):
select('File_Txt', commonBits.sampleDir() + 'csv2DTAR020_tst1.bin.csv')
click(commonBits.fl('Edit') + '1')
select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Upda... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
5aaa5ca1cdf8b8e0069131223b397f5c3e45cfae | cb2906739969b0f57eac4e688dda7ec617af64a6 | /usbCam.py | 60de41d396fec800b3a1ed2341aa6d2f16527e37 | [] | no_license | Pfenni73/USB-Cam | 058f38afad6631f0045251e61321a533024663d2 | 995aa6f061d5a35ed53f0b21ddc186b9ed9a9078 | refs/heads/master | 2020-03-21T00:34:55.376592 | 2018-06-19T15:34:34 | 2018-06-19T15:34:34 | 137,899,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | class UsbCam():
import os
import datetime
import time
def __init__(self, usbCam_picPath):
self.picPath = usbCam_picPath
def set_PicPath(self, usbCam_picPath):
self.picPath = usbCam_picPath
def takeSinglePic(self, usbCam_PicName):
self.os.system ("fs... | [
"michael.pfenninger@gmx.net"
] | michael.pfenninger@gmx.net |
b00d1e150b8f1831bb6b86fecb601cf6c46d1143 | 91fe96f88a17d373e51654028d8e2cdd99728a21 | /mmdet/datasets/pycoco/mask.py | cb7b2bcd0f74f48f8eb0cb249334dc9095138976 | [
"Apache-2.0"
] | permissive | liusurufeng/NucleiDetSeg | ab8639872ffedd2648e4b38af5528ecc89119cbe | ad4040a359e52c611780b409f84b601bfa9c94e2 | refs/heads/main | 2023-07-26T18:45:22.646575 | 2021-09-01T08:14:57 | 2021-09-01T08:14:57 | 461,822,842 | 1 | 0 | Apache-2.0 | 2022-02-21T11:05:01 | 2022-02-21T11:05:00 | null | UTF-8 | Python | false | false | 4,630 | py | __author__ = 'tsungyi'
import pycocotools._mask as _mask
# Interface for manipulating masks stored in RLE format.
#
# RLE is a simple yet efficient format for storing binary masks. RLE
# first divides a vector (or vectorized image) into a series of piecewise
# constant regions and then for each piece simply stores th... | [
"m18379660828@163.com"
] | m18379660828@163.com |
334ac5b602b3fabac848a9a29c90de607b05ae6d | d6993ab888beef9fd6df0b48ad7eb3669a350914 | /config/config/settings/base.py | 121e0d32440393786d583370d101a61dc4e71911 | [] | no_license | dskym/Mondey | 3214e0dbca2de3aabafb34a3a01d4da941db2b1d | 6feef54c1a566871ccab91367dff1a4e669e11c1 | refs/heads/master | 2022-04-04T12:55:07.796560 | 2020-02-22T15:29:09 | 2020-02-22T15:29:09 | 211,677,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,141 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
imp... | [
"dskym@naver.com"
] | dskym@naver.com |
5bbaada6627d340e4cfd4b8df961daf9bddfe180 | f23fe5abbaef19277194232a22f3ee77f676d274 | /venv/bin/chardetect | 03920efb89d69a63179db5357efe527c6ab00642 | [] | no_license | orinocoz/TelegramEmailPass | 077b070e6302e44d998cb0d8d2e7af0d7584b43b | 11d4f7d2270de03f1d73573ce49845230dca2d1b | refs/heads/master | 2023-03-16T21:54:19.210012 | 2021-02-27T15:38:02 | 2021-02-27T15:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/tenet/PycharmProjects/Bottelegram/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"furens@protonmail.com"
] | furens@protonmail.com | |
c52e74ed56d81aefa15ecff2f985110c2574a528 | 6a75128f782972f783faf83462c7113eb4b13ad1 | /lesson2/cw3.py | 9d385aa5670b69d8b49d374e756bb92346f31582 | [] | no_license | Vilchynskyi/ITEA_Python_Basics | b5fcee246e019d44e590f367bf115b937570cf28 | 4ffbd028537d4a5890e56e0e0cae7165125255f9 | refs/heads/master | 2020-06-02T02:55:12.384606 | 2019-07-24T16:39:21 | 2019-07-24T16:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # Extract the square of the number as long as the value is bigger than 10
import math
if __name__ == '__main__':
i = int(input('Insert the number '))
while i > 10:
print(i)
i = math.sqrt(i)
| [
"roma.vilchynskyy@gmail.com"
] | roma.vilchynskyy@gmail.com |
c7996b5e25d11a281c651e64ae0324d55b041f44 | edd01578bbdda9133c95538fc970b0b758782052 | /pytexe (22).py | 42f8dc44efcb93f31b556cea69481febf94eace3 | [] | no_license | yantxs/adventures-w-prog1 | 27982056052496bd48e2e4ea7ad739a0355c0859 | 2349e3382b7a724e58e60a2f50b188c1bc321c57 | refs/heads/master | 2021-08-24T02:37:27.793212 | 2017-12-07T17:48:07 | 2017-12-07T17:48:07 | 113,479,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# testeexec.py
def buscasequencial(lst, n):
pos=-1; achou=False; i=0;
while not achou and i<len(lst):
if n==lst[i]:
achou=True; pos=i;
i=i+1
return pos
def preencheListaSemRepetir(lst, qtd):
v=1
lst.append(int(input("Entre com o numero\n")))
while v < ... | [
"teixeira.yan@gmail.com"
] | teixeira.yan@gmail.com |
187736bd1496712c968d483323f08008b75f2f9e | 74133828fcc331c7cd14ad4e400c30fce0bb52b5 | /algoritmo_hierarquico.py | 1cb113adf7a5e459c8dc3fe3c33fb1e3dd5c1071 | [] | no_license | claragomes10/ic-robotica | e77279b2960d89285120d3e4e99dd592af183eac | bcbca6c3027a7e097225d61bb5ecfb23025b4f61 | refs/heads/master | 2022-06-05T00:47:41.254687 | 2020-05-03T14:04:28 | 2020-05-03T14:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 3 09:19:03 2020
@author: clara
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import scipy.cluster.hierarchy as shc
from sklearn.cluster import AgglomerativeClustering
saida_direita = pd.read_csv('saida_direita.csv')
c... | [
"claraloris39@gmail.com"
] | claraloris39@gmail.com |
d0760ffc59b38df378ae047f975dfb91451dfd57 | 2a7a4636aa3b676df19420c848cd642fb8e303a3 | /app/recipe/tests/test_ingredient_api.py | eb8efa8cc98a5ea31b70cdbec414d259356d303c | [] | no_license | K-Vaid/recipe-api | 4f5bd45ce70b686088be06abce650db9144b9942 | 44ce715a21b9116a7a1558a85b803d72b84c7697 | refs/heads/main | 2023-07-14T18:26:54.420492 | 2021-08-20T09:10:34 | 2021-08-20T09:10:34 | 392,962,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Ingredient
from recipe.serializers import IngredientSerializer
USER_MODEL = get_user_model()
INGREDIENT... | [
"vaidkunal.kv@gmail.com"
] | vaidkunal.kv@gmail.com |
e7e05fa3f7d9176d0a2635bac07bb454854d6c6f | 47561b8eda551e769817fbc5e90687c99a35e73b | /global_module/settings_module/set_dir.py | ab673b1e9067bf90f0fa4e939d910d17fc482cd4 | [] | no_license | krayush07/autoencoder | af5311addeb4f77325c82665988ee3d24b31e2ba | b7c42d3b35a847c737fddc9950e4d4abc53dbf1e | refs/heads/master | 2021-04-26T23:17:22.917463 | 2018-07-10T11:47:42 | 2018-07-10T11:47:42 | 123,963,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import os
class Directory():
def __init__(self, mode):
"""
:param mode: 'TR' for train, 'TE' for test, 'VA' for valid
"""
self.mode = mode
self.root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
self.utility_dir = self.root_path + '/utility_d... | [
"krayush.iitp@gmail.com"
] | krayush.iitp@gmail.com |
f86d5e23e993a62bf8066dc12320d183477f2526 | 1d590f611c9ae02f5f0f369e479cccd8b8d7fb66 | /soc/bffbook/profiles/migrations/0004_auto_20210510_1308.py | 7b76e1b1ac139bee3abbd516d9265db853ccb6c6 | [] | no_license | Alan-thapa98/SOCIAL-ME | 3cf1c515e0560ca2967cf847727bf1438aeba3f4 | 362e11edb449528a7bc6f413c134a8dfb9296e67 | refs/heads/master | 2023-07-01T07:21:37.303320 | 2021-07-30T15:15:59 | 2021-07-30T15:15:59 | 391,106,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.1.2 on 2021-05-10 07:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_auto_20210510_1256'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='avatar',
... | [
"alanthapa98.gmail.com"
] | alanthapa98.gmail.com |
894b3d23385ba3502e5a1619eee20bdcc0626a08 | 31fd41ca65bf39106b691c46dff35efecfda3694 | /application.py | a7697307d1773b155f21cc105034bd21ad2ff5c1 | [] | no_license | kBarbz/finance | 4ed1e22de67466037952286061dbf18c11d9228b | 0225ef5e8d7e0a69609edf0b68a84f5b531783d9 | refs/heads/master | 2022-03-05T17:15:23.253912 | 2019-11-14T07:18:45 | 2019-11-14T07:18:45 | 221,136,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,097 | py | import os
from cs50 import SQL
from flask import Flask, flash, jsonify, redirect, render_template, request, session
from flask_session import Session
from tempfile import mkdtemp
from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError
from werkzeug.security import check_password_hash, ge... | [
"kbarbz1995@gmail.com"
] | kbarbz1995@gmail.com |
f63f9a30b6e4c164b0f51d644a1e641ba5e7aff6 | 6ee5a113dc04c782be3484b13aa5f0d9c3a3210f | /code/numPyBasics.py | e82d24873cb6658f54c598ee9a9eff1383e03619 | [] | no_license | mushie101/Brightwork | 5b0d5f5c65addc9fa2b2ccd27e6f470c6039ebae | 50e64737cf3a025e8793b69880d9e963b3f3fba5 | refs/heads/master | 2020-09-16T20:33:57.875487 | 2019-11-26T05:03:57 | 2019-11-26T05:03:57 | 223,882,228 | 0 | 0 | null | 2019-11-25T06:59:30 | 2019-11-25T06:59:29 | null | UTF-8 | Python | false | false | 558 | py | import numpy as np
# Why numpy? -> numpy much faster than lists
# numpy libraries vs lists
# numpy int size can be altered
# for a normal int we deal with object value object type reference value and size
# since numpy uses less memory we are dealing with less stuff
# no type checking when iterating through objects
# ... | [
"mustafa.ar.siddiqui@gmail.com"
] | mustafa.ar.siddiqui@gmail.com |
c39941499870277a946c40da8b7ff72e4713e97a | ed4921d289f9318e0792694a55ab49990199a857 | /openbudget/dashboard.py | a8a910e731a262b077369a6654c48e4145e17640 | [
"BSD-2-Clause"
] | permissive | ofri/omuni-budget | 918b340e6d213785dac252ed0549f918b5a84da4 | 9f30edd1e0d025bbcacba64172b1ecb02172497b | refs/heads/master | 2021-01-18T05:25:13.366328 | 2013-03-31T11:11:02 | 2013-03-31T11:11:02 | 9,343,753 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | from django.utils.translation import ugettext_lazy as _
#from django.core.urlresolvers import reverse
from grappelli.dashboard import modules, Dashboard
class OpenBudgetDashboard(Dashboard):
"""Custom admin dashboard for Open Budget"""
def init_with_context(self, context):
# append an app list modul... | [
"paulywalsh@gmail.com"
] | paulywalsh@gmail.com |
d496d59c836446f81c61a2822643119a8ebad097 | 3505b3e494dabca84b730033f55bdf369877f41a | /pydiscord/types/role.py | c02b50201c0bae2132560db80e3614f71a0b0ccd | [
"MIT"
] | permissive | AryamanSrii/PyDiscord | 5a87192b942228348a4b7320b6cdac8e885e4e42 | 3366d20e2725672ae7e6b29335119cac1aee76f9 | refs/heads/main | 2023-07-18T03:42:00.634806 | 2021-09-03T15:46:48 | 2021-09-03T15:46:48 | 402,948,162 | 0 | 0 | MIT | 2021-09-04T02:48:33 | 2021-09-04T02:48:32 | null | UTF-8 | Python | false | false | 1,589 | py | """
The MIT License (MIT)
Copyright (c) 2021 The PyDiscord Developers
Copyright (c) 2015-2021 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitat... | [
"sn1f3rt@outlook.com"
] | sn1f3rt@outlook.com |
9dfeb320ce250c54997f9e31a792687b272eeaf1 | 56d352e3a3276a7e62f03ebc435a1c82393eb35a | /dbm-gtsrb/gtsrb/classify_sign.py | 12a09a6c69ec390aa2746a44805ca410374c75fb | [] | no_license | carloderamo/DBM-GTSRB | 75e1e6347e9ef6393755fb1f97fc9e04c70e2a87 | a8b5cd223677fd49cd43a05fb1ed4df4e3af57b4 | refs/heads/master | 2021-01-10T13:27:47.936886 | 2015-11-15T02:10:27 | 2015-11-15T02:10:27 | 46,053,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | from pylearn2.utils import serial
from pylearn2.scripts.dbm.augment_input import augment_input
from theano import tensor as T
from theano import function
from PIL import Image
import numpy
import os
cwd = os.getcwd()
filenames = [f for f in os.listdir(cwd + "/signs/gtsdb_conv") if os.path.isfile(os.path.join(cwd + "/... | [
"carlo.deramo@gmail.com"
] | carlo.deramo@gmail.com |
56ebf0fcb163cba5ee14ca54a385a3925ce137d2 | b50e81141a7ba7ef36b5ca41ea31fed163001594 | /archive/py-src/Book.py | dac01bc38d5267f29d12e26a23edebc190cd5842 | [] | no_license | spencerewall/dw-census | 8ae4bc1eac40095fdd0ca4c28a63175e759d9c67 | eb7f984d050674b192ef9a1866b853e64183ac62 | refs/heads/master | 2021-06-16T19:46:21.124414 | 2017-05-10T18:51:00 | 2017-05-10T18:51:00 | 48,212,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/python
import os
import re
class Book:
# Open the book with the given name
# sectionDelimeterRe: a regex to use
def __init__(self, name='Wyrd Sisters', sectionDelimeterRe='\n\n+'):
self.name = name
def getBookId(self):
return self.name.lower().replace(' ', '_')
#Builds the filename for t... | [
"spencerjewall@gmail.com"
] | spencerjewall@gmail.com |
db9c468c186605058bdc1e319cf6eef5d0cc402b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/189/usersdata/264/65136/submittedfiles/al2.py | 78c78df05d8662e4336e80c333a6ef1d26db18e4 | [] | 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 | 162 | py | # -*- coding: utf-8 -*-
#ENTRADA: NÚMERO QUALQUER:x
#SAIDA: PARTE INTEIRA:q, PARTE FRACIONÁRIA:j
x= float(input('digite um número real qualquer:'))
q= (x//3)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e26c09066fcd9a85873212e5cdcbd2c766f6835e | c8c68b83acba11a1bf484e55ccab1d50dab75a59 | /myvenv/bin/pip3.6 | 64b00c13eb1757b2e808d0acf3a05bb42cf5d55b | [] | no_license | KyutaeLee/piglatin | 1bf040fb29427dfd91656c499587ada043810baf | 51d176a9b691c9a25bf0a1a70fe4163419889d49 | refs/heads/master | 2021-05-11T16:48:57.342761 | 2018-03-05T12:22:51 | 2018-03-05T12:22:51 | 117,777,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | 6 | #!/Users/apple/Desktop/piglatin/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rbxofjqn@gmail.com"
] | rbxofjqn@gmail.com |
045421d3e8906598267f9544324d41b41a921a87 | f8baff291cdf02ea92141c7a7eb48b859776c224 | /google/cloud/dialogflow_v2beta1/services/session_entity_types/transports/grpc.py | 1552ec0cefd6e51205f0927deb40d362b227b6d6 | [
"Apache-2.0"
] | permissive | precs-jmcrs/python-dialogflow | 1a6a12741cb14460f5ecfe1200b2b0a20064b5cb | bf68864ff14e1a1f3626cb27fbbabb96e618358f | refs/heads/main | 2023-08-20T09:45:21.354126 | 2021-10-25T20:52:08 | 2021-10-25T20:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,930 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | precs-jmcrs.noreply@github.com |
319aaf36620144c77e9f4382cdc002dd7d12372a | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/vml/test_write_size_with_cells.py | 7d062d86032316bfb6cb293c6f39e4586d4653f4 | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...vml import Vml
class TestWriteXSizeWithCells(unittest.TestCase):
"""
Test t... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
7e6e6ef4ab4d569cf26225c3ddd5ac09bb6717c6 | ec343e7bdf18a8d109fef4c674eecbc1a93111e6 | /Chapter 3/Programming Challenges/7. Calories from Fat and Carbohydrates.py | 59fec034cc22cdeb2189bd8ae78687d99326f2be | [] | no_license | Tcrumy/Startin-Out-with-Python-2nd-Edition-by-Tony-Gaddis | 42c7218e4193529ded61e6c086456792c6e2470d | cb7b49ea844e25da7181856f33999ee536f8eb07 | refs/heads/master | 2021-06-19T12:42:16.615534 | 2021-01-05T17:49:54 | 2021-01-05T17:49:54 | 156,280,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | # A nutritionist who works for a fitness club helps members by evaluating their
# diets. As part of her evaluation, she asks members for the number of fat grams
# and carbohydrate grams that they consumed in a day. Then, she calculates the
# number of calories that result from the fat, using the following formula:
... | [
"noreply@github.com"
] | Tcrumy.noreply@github.com |
689db7de482e10e047495ad80b5f4d2dba781377 | 53257795ec84dd44b5502e3e3ad0874bd97cca26 | /tests/python_client/deploy/scripts/action_after_upgrade.py | 1bf17cd9c486b0b86057527d785045c85cc9450f | [
"Apache-2.0"
] | permissive | tushar-deepsource/milvus | f8cd3b26e4900fd0ecbf94adee89eafde72eba05 | 23a00937487666644f256ca83e581a877654d0fd | refs/heads/master | 2023-08-24T23:43:40.643576 | 2021-10-22T08:34:40 | 2021-10-22T08:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import docker
from utils import *
connections.connect()
list_containers()
get_collections()
load_and_search()
create_index()
load_and_search()
| [
"noreply@github.com"
] | tushar-deepsource.noreply@github.com |
63e97fb5f941dbaa92533e45cc6b522337cc4517 | 9e7f0c2a8e21f2f234ae5cb88bbe8ba059589acd | /main.py | bcdbea4dd7f24aabc996b72c1c5b93f3985995d3 | [] | no_license | lumpop1/1404A2 | 9726cc08bb9fb6fb1da111c1056faf83add13f9e | 2a92b60b1be0f2564c716c56881f860962da3d69 | refs/heads/master | 2020-04-15T05:23:33.894004 | 2019-01-07T11:10:25 | 2019-01-07T11:10:25 | 164,419,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,742 | py | """
Name: Chen Jianjian
Date:2018/1/06
Brief Project Description:Song list to learn
GitHub URL:https://github.com/JCUS-CP1404/a2--lumpop1/tree/master/Assignment2
"""
from kivy.app import App
from kivy.lang import Builder
from songlist import SongList
from kivy.properties import StringProperty
from kivy.properties impor... | [
"jianjian.chen1@my.jcu.edu.au"
] | jianjian.chen1@my.jcu.edu.au |
144ad152b5e9dc1c38e2a29bb9072569a0c6fdd2 | 45df508e4c99f453ca114053a92deb65939f18c9 | /tfx/utils/logging_utils.py | 8d5e5b0ce8ce081ed22a0a7b494b338c20b32a4d | [
"Apache-2.0"
] | permissive | VonRosenchild/tfx | 604eaf9a3de3a45d4084b36a478011d9b7441fc1 | 1c670e92143c7856f67a866f721b8a9368ede385 | refs/heads/master | 2020-08-09T13:45:07.067267 | 2019-10-10T03:07:20 | 2019-10-10T03:07:48 | 214,100,022 | 1 | 0 | Apache-2.0 | 2019-10-10T06:06:11 | 2019-10-10T06:06:09 | null | UTF-8 | Python | false | false | 3,124 | py | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
585e22492d381cfccb12914baf68b9378763da48 | f2af4d6108261ec1a216d6d402993b57a9224b16 | /play1.py | e262b0895662c82f77c670561f561a821c895da8 | [
"MIT"
] | permissive | idsdlab/basicai_sp21 | c0e678f55b9ad13edc4d7dec0504697aea568fef | af9acba34c0417fed830de1b61753c50fd303169 | refs/heads/main | 2023-05-03T16:42:46.250882 | 2021-05-19T06:41:41 | 2021-05-19T06:41:41 | 340,587,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import json
user = json.loads('{"id": 100, "name": "홍길동"}')
print(f'username is {user["name"]}')
def userinfo(u):
"""사용자 정보를 상세히 보여줌
Args:
u (User): User json object
Returns:
String: User Information
"""
id = u["id"]
name = u["name"]
return f'ID is {id}, Name is {name}'
... | [
"guruzoa@gmail.com"
] | guruzoa@gmail.com |
921d65fd5e2e4869e77d5146650c352a5475806a | 2f85846c38297db78005da1a3a986c47482c5327 | /src/songs_parser.py | cc8bfd2a9ed30e07ccd0281da931515106e16beb | [] | no_license | moonlightshadow123/music-playing | de9fe3f7f0e65673ec2a80bc5fe8c267f22df328 | e69a6ba5203fe4f1db5e3e101e8938b6c7e290d5 | refs/heads/master | 2022-04-18T21:30:54.130758 | 2020-04-11T03:44:08 | 2020-04-11T03:44:08 | 249,941,456 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | import os, music21
from utils import getAcc, NStrToVStr, qlenToDur, minusToB
dir_path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, "songs"))
class Parser:
def __init__(self, song_name):
self.file_name = os.path.abspath(os.path.join(dir_path, song_name))
c = music21.converter.parse(self.fi... | [
"2252822920@qq.com"
] | 2252822920@qq.com |
f111086e0ac8fb98fe8c8a52c28756fc0d1efffd | 7623f6f9bb276d0579bc1604a048a7ef398740b7 | /Model Creation/src/CommonVars.py | e2661a1e1c5da99c9a12e383f47b223e91e6c96e | [
"MIT"
] | permissive | AAU-projects/P5-food-dispenser | 55e969bcc11a211d29c3aa467dfb0c71fc99b052 | 3c88ec515941fb5db153bcb3a8d47d661a9a04b3 | refs/heads/master | 2022-12-20T23:29:14.323305 | 2020-09-23T09:50:02 | 2020-09-23T09:50:02 | 147,639,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import os
# Hidden vars
__picturePath = "new data"
# Static vars
classes = ["cats", "dogs", "junk"]
picture_folders = ['dataset', 'evalset']
img_hight, img_width = 128, 128
# Dynamic vars
picturePath = os.path.join(os.getcwd(),__picturePath)
num_classes = len(classes)
| [
"lukasronsholt@gmail.com"
] | lukasronsholt@gmail.com |
07cbedc6ca7e7c3a19c72dc9fe6f4a3073a3d89c | 565fe0d7a4b4eee46d97f008b7d904454d123c93 | /nameSorter.py | 3e2400465605b11b5a221a5c6bf694d6ec46acd2 | [] | no_license | cesarvh/Python-Scripts | eb9a63f8b4262c1eb74bbf644fe24967a2a6465d | 08c177fa76912db1d97ae6911d02c283ccb05ac2 | refs/heads/master | 2021-05-04T11:15:02.903404 | 2019-09-13T18:30:49 | 2019-09-13T18:30:49 | 51,233,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import operator
def letterSorter(names):
"""
>>> names = ["annie", "bonnie", "liz"]
>>> letterSorter(names)
["bonnie", "liz", "annie"]
>>> names = ["abcdefg", "vi"]
["abcdefg", "vi"]
"""
aVal = ord('a')
letterVals = {}
retVal = []
for i in range(0, 26):
letterVals[chr(aVal + i)] = i + 1
namesDic = {}
... | [
"Cesarvh@Cesars-MacBook-Pro.local"
] | Cesarvh@Cesars-MacBook-Pro.local |
3414b51b6da096d6d8ad51a198596827d19b58fb | cdb5df3c04f0b9aae9220463d438fdbf36e725ed | /django-forms-example/groceries/urls.py | e1939f78b1279d84b6d8036ccf40d260fc8fcebe | [] | no_license | charlie2265/CodeGuild | fe5450e0c77b46fb114a5468d5d0f29bfad19047 | 5f937aba184e477b6f4f9915ffd533a59281e78d | refs/heads/master | 2021-06-20T10:50:32.882043 | 2019-02-10T03:54:23 | 2019-02-10T03:54:23 | 156,479,963 | 0 | 0 | null | 2021-06-10T23:06:55 | 2018-11-07T02:38:47 | Python | UTF-8 | Python | false | false | 139 | py | from django.urls import path
from .views import groceries
app_name = 'groceries'
urlpatterns = [
path('', groceries, name='list'),
] | [
"charlie2265@gmail.com"
] | charlie2265@gmail.com |
e66fcada365254368e76ac2cefb6c96a6d49ab1f | 57650f95b80dbbe0408417088934f94c9743313b | /fetchData.py | 20dedf22a85c39bc24e2198306a606ba3b238f41 | [
"Apache-2.0"
] | permissive | shashikarsiddharth/watchful-eye | f11083e2eb46cd1fa2f4cddae7fe2b42aa2f4da9 | cb5e2cedbf5f77bd0f0000980709f3c5def59dc4 | refs/heads/master | 2021-05-24T12:51:25.123313 | 2020-04-07T01:30:26 | 2020-04-07T01:30:26 | 253,570,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | import packages
class fetchData:
def __init__(self, ticker_name):
''' Function for initializing class variables. '''
self.st_year = 0
self.end_year = 0
self.st_month = 0
self.st_date = 0
self.end_month = 0
self.end_date = 0
self.tick = ticker_name
... | [
"siddharth.shashikar@trustingsocial.com"
] | siddharth.shashikar@trustingsocial.com |
c6fbdabcb9b40c4c54770b5da19be1957f923566 | f553cb0295c9c24dc27c2a8b5a7f3c0e8f5ae174 | /sección_6/mulit_3.py | b9839f191ed1f45f768ffbe93db13f305787a50a | [] | no_license | Diego780527/ADSI | 71d7673c90e21b7a6ab35f51b1b360ad13879908 | 1db32f04b24a2b1886038dffc24e98a604864d67 | refs/heads/master | 2023-04-06T11:52:48.928223 | 2021-04-14T00:15:46 | 2021-04-14T00:15:46 | 357,723,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py |
## programa que muestre la tabla de multiplicar del 10, del 1 al 50
def tabla(x):
i=0
print("tabla del 10 1-50")
while i < x:
i=i+1
mult=10*i
print(10,"X",i,"=",mult)
return ()
tabla(50) | [
"82474493+Diego780527@users.noreply.github.com"
] | 82474493+Diego780527@users.noreply.github.com |
09079d911bd182c40acb75f150998691aff00fa6 | e267a9c417c92bffdc4f4af885d2cae716e2a5ec | /syrushack/booksale/views.py | a7e15170855a97a9d3d2850517a151f56199b860 | [] | no_license | Gurudatt007/NOOBMASTERS-69_gurudatt | 182642464c3532f6ca87e3320db2843597efe7ee | 6ab95e777dbfc1a43b6dc9cf5777855b2162ff93 | refs/heads/master | 2021-02-15T08:49:30.161870 | 2020-03-05T17:23:26 | 2020-03-05T17:23:26 | 244,883,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from . import forms
from django.contrib.auth import authenticate, login
# Create your views here.
def login(request):
return render(request,'book/signup.html')
def signup(requests)... | [
"noreply@github.com"
] | Gurudatt007.noreply@github.com |
29f38e7eab91a2abd5df5a75fb978e3ad1e2f5ce | 00b8ef0f8ca56d33e30ef3e93a3e59c892a14323 | /Functions.py | 666edd5447ed101907ffad99264f79ba46b13384 | [] | no_license | tjkabambe/pythonBeginnerTutorial | d68452d97122f25faa7b877f3d04bc93684d195c | 2f02e22b24cb756391f459c3d41f8b3eb2ec939e | refs/heads/main | 2023-07-16T02:26:28.473669 | 2021-08-19T05:04:29 | 2021-08-19T05:04:29 | 397,821,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # Functions in Python
# Like in maths, where a function takes an argument and produces a result, it does so in python as well
# General form of Python function is:
# def function_name (arguments):
# {lines telling the function what to do to produce the result}
# return result
# Consider producing a function that... | [
"noreply@github.com"
] | tjkabambe.noreply@github.com |
51a247af73a7e20f4aaa919360ae9ea26d676f40 | f8bdc46409c9f5eaf3d85ef157260589462d941a | /jsk_2016_01_baxter_apc/node_scripts/check_sanity_setup_for_pick | 1ab7ba1ac9271856cae0085c0e78a81cb65fadb9 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 462 | #!/usr/bin/env python
import rospy
from jsk_tools.sanity_lib import checkTopicIsPublished
def main():
rospy.init_node('check_setup_sanity')
checkTopicIsPublished(
'/left_hand_camera/extract_indices_target_bin/output',
timeout=5, echo=True, echo_noarr=True)
checkTopicIsPublished(
'... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com | |
50b1ce7488482d127f0ea9067966b478ed40ec33 | effc9404cdf56c8bd0db5a66787e47022ae66f66 | /app/utils/wtf_handler/client.py | c33b8fe35e97bc494544e24a7d79c3b39229867d | [
"MIT"
] | permissive | WMU-SuLab/MagicExWASPortal | 2d3219089336199e63a25e360793c4bc31eccbc6 | 35f5ba3f10bb90d99a64d376fff8c322a11b8598 | refs/heads/main | 2023-08-15T04:09:57.619196 | 2021-10-16T01:38:26 | 2021-10-16T01:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | from wtforms import StringField, IntegerField, BooleanField
from wtforms.validators import DataRequired, Length, ValidationError, Regexp, EqualTo
from app.libs.enums import ClientTypeEnum
from app.models.tcm.user import User
from app.utils.wtf_handler.base import BaseForm
# 客户端基类
class ClientForm(BaseForm):
acc... | [
"1061995104@qq.com"
] | 1061995104@qq.com |
f7feb0e013303868949cf3d41ab03ca75f5c0ba8 | c99ec1738d9af904263170002f82f01ac9773c05 | /src/check_process_list.py | ea602335467e1b053cf4d5178d19f6c8793c1005 | [
"MIT"
] | permissive | Morthy/igmonplugins | 88e670e86c231c9e7ccd672e5090effe89534c8b | e339115936a054696324befb47d60f254ba38226 | refs/heads/master | 2020-06-06T10:42:42.936299 | 2019-06-19T11:19:43 | 2019-06-19T11:19:43 | 192,718,139 | 0 | 0 | null | 2019-06-19T11:21:34 | 2019-06-19T11:21:33 | null | UTF-8 | Python | false | false | 11,325 | py | #!/usr/bin/env python
"""InnoGames Monitoring Plugins - "Processlist" Check
This is a monitoring check that calls the "ps" binary, and parses
the results. It is compatible with BSD and GNU "ps", though they
provide different set of variables. It is possible to use any
supported variable. See your man pages for the ... | [
"emre.hasegeli@innogames.com"
] | emre.hasegeli@innogames.com |
81c7a920e569890df5dd38fa7fd0156b55bcbd72 | e59cf235375f4cf38e0a42ce2c9774b5f9409511 | /python/testcases/import_fasta/import_ignore_duplicates_bulk/run.py | c028aa8758090f59957146862b24d0b6a2ca386e | [] | no_license | JamesOsgood/mongodb-ebi | 685b1b1f99ebd87349ad742f03e6b056edf67453 | cf50e0b9d6f85d7c1eed824d55ebfa5e5410f50c | refs/heads/master | 2020-07-25T03:37:14.649165 | 2019-09-18T20:47:42 | 2019-09-18T20:47:42 | 208,153,016 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # Import base test
import os
from datetime import datetime
from pymongo import MongoClient, UpdateOne
from pymongo.errors import BulkWriteError
from pysys.basetest import BaseTest
from FastaParser import FastaParser
class PySysTest(BaseTest):
def __init__ (self, descriptor, outsubdir, runner):
BaseTest.__init__(... | [
"james.osgood@gmail.com"
] | james.osgood@gmail.com |
f876efbd76bf68b8a1f414d2b58264a63adb5904 | 07c01f9f43eb8bf86986f08a94fa578f90bbb8c7 | /itemCrawler.py | 52b67c6adf0afd175ae1f502c34a3aa2d73280a5 | [] | no_license | kpandey1337/RSAnalysis | 15ea60eb32bd0f6cdf7c8012db1fe162137f037d | 35a0ef727ebc7771a310bfeef44bcd9ae5b7e1f4 | refs/heads/main | 2023-02-26T20:06:26.430134 | 2021-02-05T01:10:06 | 2021-02-05T01:10:06 | 332,914,685 | 0 | 0 | null | 2021-02-01T23:42:01 | 2021-01-25T23:35:23 | Python | UTF-8 | Python | false | false | 159 | py | "https://runescape.wiki/w/Module:Exchange/Fire_rune/Data?action=raw"
https://runescape.wiki/w/Category:Grand_Exchange_items?pageuntil=Adamantite+ore?action=raw | [
"32352036+yoonsters@users.noreply.github.com"
] | 32352036+yoonsters@users.noreply.github.com |
855f07a85b5f4d2de97355bda711a4f857e44b4a | 1eaf240cca1013876eb3ea4f2ea70313a82fe984 | /monthlist.py | 94506fea0c2d195956ad4cd489f7182ec54591a9 | [] | no_license | amithachalappuram/pythonsession2new | 7c4167696025b4e5fe686358664e4a7ede1c2e38 | 05d6299d1d443724c1a0bbece51ae0cb94fc843f | refs/heads/master | 2021-01-01T06:08:37.262980 | 2019-04-02T05:48:57 | 2019-04-02T05:48:57 | 97,367,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | month=['jan','feb','march','april']
print 'The first month is' ,month[0]
print 'The second month is' ,month[1]
print 'The third month is' ,month[2]
print 'The fourth month is' ,month[3]
| [
"noreply@github.com"
] | amithachalappuram.noreply@github.com |
4d0accebb3c8b38201bf3aab2d6ab564283fbf9f | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /social_rl/adversarial_env/utils.py | 6a235a2c7e5d60f56c19c192fd53d434a804576e | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 17,133 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d3f2e9bf10fb6c25475086bb869667de2892c2a3 | 37b32878a00e935d22a48a59f7482ff65350617a | /app/scanner/forms.py | 9b7bd7222312ad728818913790b3d81d079fc7cb | [] | no_license | KudzaiMakufa/iotscanner | dfce4908618156ce31e9003669056042a5e5c212 | 7e2f983b74c8537aad172793b103c75bfe1f933d | refs/heads/main | 2023-06-19T04:25:28.620760 | 2021-07-06T09:49:24 | 2021-07-06T09:49:24 | 377,589,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from django import forms
from scanner.models import Scanner
class ScannerForm(forms.ModelForm):
class Meta:
model = Scanner
fields = []
widgets = {
'ipaddress': forms.TextInput(attrs={
"class":"form-control"
}),
}
| [
"pmakufa@cimas.co.zw"
] | pmakufa@cimas.co.zw |
6e35edd57bda6e2fa78faea367322c4f8cb0b8a9 | 925a996531ab9e2d582aa7aa78312df2e9ef70c3 | /compare_veget.py | 7544c09cf67fddea696ca7c55304d316e8815c92 | [] | no_license | ChaoYue/lscetools | 8ab5ac2f6bdcca26537a7db2137e02e4d1dcea12 | 6b5ead797ed637c795376aa521e74e816f8485e5 | refs/heads/master | 2021-01-02T22:18:05.480113 | 2018-03-27T12:04:30 | 2018-03-27T12:04:30 | 8,806,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/home/orchidee03/ychao/anaconda/bin/python
#2012-11-12
#This is to compare the difference of vegetation type between two stomate_history files.
#Arguments:
#filename1, filename2: the two file names with full path that need to be compared.
import matplotlib as mat
import gnc
import sys
import cons
import matplotlib... | [
"chaoyuejoy@gmail.com"
] | chaoyuejoy@gmail.com |
6496d83ba933d5bda0dce9d72be80a97df7944fc | 4caa5f443e89697ecda42449e1a4865e9f975501 | /hackerrank/challenges/Algorithms/Strings/python3/morgan_and_a_string.py | c12bacd713413091937e9a8dece5b10bec9a0377 | [] | no_license | kdar/challenges | 5ece84df838e1aa4e50df8c078971c5f51ce3f06 | 6c07b20cada9bc7c542a9751ccca6ea87693fec0 | refs/heads/master | 2021-01-21T13:52:55.508948 | 2016-05-06T22:31:20 | 2016-05-06T22:31:20 | 44,148,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!python3.5
# https://www.hackerrank.com/challenges/morgan-and-a-string
for _ in range(int(input())):
a = input()
b = input()
a += 'z'
b += 'z'
la = len(a)
lb = len(b)
i,j = 0,0
lex = ""
while i < la and j < lb:
if a[i:] < b[j:]:
lex += a[i]
i += 1
# optimization to just ke... | [
"kevin@outroot.com"
] | kevin@outroot.com |
9a6cecbd8b7391193cbe482e34d4e9436736c068 | 1929443c8e4ec6ccd79777f18d161546867e17ef | /methods/transformers/src/transformers/configuration_reformer.py | b74bec1877b149d9249d568fde2e67702d6253b3 | [
"MIT",
"Apache-2.0"
] | permissive | INK-USC/RiddleSense | 6f4b00546d7f4d5ada12db50929c1f0d7713d541 | a3d57eaf084da9cf6b77692c608e2cd2870fbd97 | refs/heads/main | 2023-08-14T19:01:01.478946 | 2021-07-05T04:06:01 | 2021-07-05T04:06:01 | 376,487,870 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,444 | py | # coding=utf-8
# Copyright 2020 The Trax Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Lice... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
dd287ab4dacb2cfc45941be3341ffa301364946e | c8781d6c35bc1a01572ae079c10ae09a48360d0d | /postprocess_tweets.py | 32e7614af149211c9c5541c6c10e55184e600ce0 | [] | no_license | molguin92/RechazoMiner | 030e718d7a7128ad3cf3c9b167e58fd353c898e8 | 3c027426876e7ed65c7f9039f5a66c8260ada746 | refs/heads/master | 2022-04-21T04:35:20.497340 | 2020-04-12T20:00:33 | 2020-04-12T20:00:33 | 250,283,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from nltk.corpus import stopwords
from wordcloud import WordCloud
def main():
tweets = pd.read_parquet('./tweets.parquet') \
.reset_index() \
.drop_duplicates(subset='tweet_id') \
.set_index('tweet_id')
# tweets_no_... | [
"manuel@olguin.se"
] | manuel@olguin.se |
5ca4bfc5ead5df67ff52a4cd7a38d3e55584e30e | f215920aaca0650ffa9e9a10a559fb1512cb3935 | /enquieryformpro1/enquiryformapp/migrations/0001_initial.py | eaf9e68a381b8c7fd059552f20dd98169226c5bd | [] | no_license | sunitalandge/remote_enquieryform_repository | ec24b8f0fa9f4fd239a3ea6f1923a4394bae17cf | d81f48ee933410e5194d76d77801d314f6700e8d | refs/heads/master | 2020-05-05T10:00:43.708010 | 2019-04-07T17:33:17 | 2019-04-07T17:33:17 | 179,926,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-03-12 18:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EnquiryDa... | [
"sunitalandge30@gmail.com"
] | sunitalandge30@gmail.com |
0827f989319c72b436014e11b875370bc3478be2 | 142f00440b73ae6c8c140bac00fe8cd026b62caf | /src/inputs/cs_event_query/sampler.py | 9e09a45966427d54b4ec5863c3028604ed467bdf | [] | no_license | Wisc-HCI/interaction-transformation | e81bfdb21b61b884f69af4912f8bca91933d1c43 | 45e275e5426023b19d9b587cf5520ad74b1c909b | refs/heads/master | 2020-04-10T20:29:28.628040 | 2020-04-02T18:59:08 | 2020-04-02T18:59:08 | 161,269,365 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,044 | py | from z3 import *
import time
import math
class Sampler:
'''
Sampler takes the existing trajectories as input,
and comes up with a tree-like interaction whose
branches are optimized to be (a) less-seen bad tra-
jectories, (b) unseen good trajectories, and (c)
unseen combinations of states
... | [
"dporfirio@wisc.edu"
] | dporfirio@wisc.edu |
5a0e9bffcbd01a5b6bad624035adac5cfd991662 | 7f24789833097af944b35339a5b6c70abd941558 | /config.py | b6f8df87f1fa0e53e82874baac792bf27f8b714f | [] | no_license | DaShiLar/Naive-Govern-Server | c61e1d821b4dd437a2b9ce1e0cc9867e322a44d6 | 65b1ac51da3453b913fb3babe2e4a2fafc866bac | refs/heads/master | 2020-03-28T18:44:18.319420 | 2018-02-17T12:17:17 | 2018-02-17T12:17:17 | 148,905,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from flask import Flask
import json
import os
import sys
RESOURCE_PATH = os.path.dirname(os.path.abspath(__file__))+'/static/'
HOTEST_STANDARD = 3
LATEST_STANDARD = 10
PASSAGE_PER_NODE = 20
DB_CONNECT_STRING = 'mysql+pymysql://root:She68105028@localhost:3306/govern?charset=utf8' | [
"15201752137@163.com"
] | 15201752137@163.com |
7c35640b67e50c85bb514e2c0e787739aa1147da | 9532b00af389efa4cd0ae59c35d240fa558485d6 | /python-04/python-05.py | fb31e5991b0c6aaa4bbfe9a2799e088484b564f2 | [] | no_license | sontekliu/python-note | 972540b325d735fbc25be882b67fff66928497c3 | 9274474cee4cd4c1e0e12be83eac34567816f063 | refs/heads/master | 2021-01-20T22:29:12.530475 | 2017-01-09T06:11:55 | 2017-01-09T06:11:55 | 63,420,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# 返回函数,即,函数作为返回值返回
def lazy_sum(*args):
def inner_sum():
ax = 0
for x in args:
ax = ax + x
return ax
return inner_sum
f = lazy_sum(1,2,3,4,5)
print (f)
print (f())
def count():
fs = []
for i in range(1, 5):
def f():
return i * i
fs.append(f)
print fs
ret... | [
"sontekliu@outlook.com"
] | sontekliu@outlook.com |
5b2cc65fd28a82eef601c8b2bae269efad7edfe6 | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/pytest/fib6/fibonacci.py | 39bc1096dde229bdf5f76119b024e852994386a4 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 124 | py | def fib(n):
if n < 1:
return None
a, b = 1, 1
for _ in range(1, n):
a, b = b, a+b
return a
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
9d7374c689738611b593f071860859ebc55710b8 | ad8e6eede9bd713e12d491e7e3d3740591bba656 | /Python_Grundlagen1.py | 675a3425819ef0753625e2951d828d323b6dbe47 | [] | no_license | alexandermayerl/pythonGrundlagenSPL | 1e694a0066aba52972ab8e084986ddd3ccff1891 | 99ac475c9b3e58161b9c77d90f843e68b0456e1b | refs/heads/master | 2020-04-07T12:59:42.302502 | 2018-03-07T11:19:05 | 2018-03-07T11:19:05 | 124,213,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | print("Taschenrechner (+, -, *, /, **)")
zahl1 = float(input("Bitte die erste Zahl eingeben"))
zahl2 = float(input("Bitte die zweite Zahl eingeben"))
operation = input("+, -, *, /, oder ** rechnen ?")
if(operation == "+"):
summe = zahl1 + zahl2
print("Summe = ", summe)
if(operation == "-"):
differen... | [
"noreply@github.com"
] | alexandermayerl.noreply@github.com |
3d896af960b5e3f6493dfe0bd2f44dcb1c5b85db | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /keras/keras54_conv1d_01_lstm.py | 46786f3cdafe9a0d5880bfff0ec509b09b860a2d | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | # conv1d
# LSTM과 비교
import numpy as np
# 1. 데이터
x = np.array([[1,2,3] ,[2,3,4], [3,4,5], [4,5,6],
[5,6,7], [6,7,8], [7,8,9], [8,9,10],
[9,10,11], [10,11,12],
[20,30,40],[30,40,50],[40,50,60]])
y = np.array([4,5,6,7,8,9,10,11,12,13,50,60,70])
x_pred = np.array([50,60,70])
pri... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
ef94445d6b1610a2ae6a0c06860afd62b5e23786 | 9e6b91907e04a37f708b28e8ee52760662b4c761 | /py/dirbalak/run.py | 0355e2698c739d28f282edf63e736dfafbde8594 | [
"Apache-2.0"
] | permissive | shlomimatichin/dirbalak | d744e3f4fdadf920082c870107f50f9020d57af6 | 218441fe55715c0602dd41142ae6a34ddfef6b38 | refs/heads/master | 2020-12-11T03:45:23.059866 | 2015-02-26T15:40:44 | 2015-02-26T15:40:44 | 28,646,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | import subprocess
import upseto.run
import tempfile
import shutil
import os
import select
import time
run = upseto.run.run
def runAndBeamLog(logName, command, cwd=None):
with open("/dev/null") as devNull:
popen = subprocess.Popen(
command, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.S... | [
"shlomi@stratoscale.com"
] | shlomi@stratoscale.com |
9ff58db763bf0355cab2d81f3295bb39fbc791c1 | 2d10ce4b43045c041146ecef4bfbaefe0f180004 | /interview/users/models.py | e2d678ae229a9678761c0c6a94e629da81e326e4 | [] | no_license | Nekotopec/survey-rest-api | 1e50ff7319a02a9bc54da6e1cb2a934688d5fc67 | 99ee309367b1de99b13a0614d768d79fddf193ec | refs/heads/master | 2023-03-23T20:16:11.729698 | 2021-03-18T17:14:31 | 2021-03-18T17:53:22 | 349,162,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import uuid
from django.db import models
from django.contrib.sessions.models import Session
# Create your models here.
class AnonymousUser(models.Model):
id = models.IntegerField(primary_key=True)
session = models.ForeignKey('sessions.Session',
on_delete=models.SET_NULL,
... | [
"nekotopec@gmail.com"
] | nekotopec@gmail.com |
ace77e5f79254ba219aab7c0f4f0f4b2817ccc7c | cb9f7e52d878c55d1cdcf7a262e3e5e707d563d4 | /django_introduction/urls.py | b0bcc0f39a94444b5b3acbd2000d04b2903220c5 | [] | no_license | giriawsh/django_introduction | 15565c90958acb39eff8dff2bb44abb22642ea07 | dd862e4c53bac96e964127503cc9ea6445e014c2 | refs/heads/master | 2020-07-17T09:25:23.223836 | 2019-09-28T13:49:15 | 2019-09-28T13:49:15 | 205,993,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """django_introduction URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name=... | [
"giriawsh@outlook.com"
] | giriawsh@outlook.com |
f5d36a1e69c2685ed0795fad774e5dfc00e115bf | 7fdf80333aea7315936db807dbbf56f49eab60d1 | /test/test_reports.py | 6299949241830205dcde3d2ee1b4aaa7ddf942b8 | [
"Apache-2.0"
] | permissive | ministryofwrestling/messagemedia-rest-api-python-sdk | a2b3b8b3aa4ae940118a0c8b660bfa9151e1c663 | c6ffff7df339070939f120daefc2a439b1c76957 | refs/heads/master | 2020-05-20T12:58:35.009848 | 2017-01-17T05:12:24 | 2017-01-17T05:12:24 | 80,387,569 | 0 | 1 | null | 2017-01-30T02:11:09 | 2017-01-30T02:11:08 | null | UTF-8 | Python | false | false | 1,308 | py | # coding: utf-8
"""
MessageMedia REST API
Australia's Leading Messaging Solutions for Business and Enterprise.
OpenAPI spec version: 1.0.0
Contact: support@messagemedia.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the... | [
"ITNextGen@messagemedia.com.au"
] | ITNextGen@messagemedia.com.au |
d6b918c2a69143ef6ef75bc85848642b763eea92 | ba6921a268198bc0af433622c021533905f5d462 | /airflow/providers/github/sensors/github.py | 602f71f518c5a2ba12b708780ba4739331d60185 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | potiuk/airflow | b6447765b1a7b586a3d6c8d7ba9262f6bf68fbfd | ca2f3013bcb123c4b3973a5b85de77094bf2c459 | refs/heads/main | 2023-08-30T13:05:50.698888 | 2023-05-21T21:08:14 | 2023-05-21T21:26:14 | 173,467,275 | 8 | 7 | Apache-2.0 | 2023-05-21T21:58:40 | 2019-03-02T15:50:53 | Python | UTF-8 | Python | false | false | 5,277 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | potiuk.noreply@github.com |
b269b31e542d4f2fe0026b1954e2b2984fbd54ff | dca48a105eb467c1c92bfe7e49c0f0666ff7d5a3 | /python/practice/materials/core-python-getting-started-resources/m08/clip-07/key-error-in-mapping/code.py | 7b521e75cfae3de6a1c2085d54ca17d671dd13c0 | [] | no_license | hbqdev/code | a97233456ad75df5552a003698cfcb99c6f7836d | 7012d203aaf8fdc753491603f9a35dc69ca3286a | refs/heads/master | 2023-06-25T13:06:01.851720 | 2023-06-13T00:11:54 | 2023-06-13T00:11:54 | 184,701,167 | 0 | 0 | null | 2019-05-03T05:02:08 | 2019-05-03T05:02:08 | null | UTF-8 | Python | false | false | 90 | py | def lookup(key):
if not find_key(key):
raise KeyError()
return value(key)
| [
"tin.tran@split.io"
] | tin.tran@split.io |
8ddc1bb8f4a20ecdb528058fedc4bcd5962a64de | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/asyncio_coroutine_return.py | 4232ff84185f4cccf3562bcb97cb4daeb5f66d4f | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # asyncio_coroutine_return.py
import asyncio
async def coroutine():
print('nella coroutine')
return 'risultato'
event_loop = asyncio.get_event_loop()
try:
return_value = event_loop.run_until_complete(
coroutine()
)
print('ritornato: {!r}'.format(return_value))
finally:
event_loop.cl... | [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
83fd0483590ca890422fb68150b7d7917f2a1699 | 1b6cea605ee3ad1cac7ed39e8e56d78b41a0a9c8 | /touchdown/aws/route53/zone.py | df8463a3555b95405eb2e22bd3a323ef2ab00f98 | [
"Apache-2.0"
] | permissive | pombredanne/touchdown | 37e0847649d376ad8b087f993ef3021db37ff728 | 2213f3572c2b99cecf46dbee48d6d3f038cc442c | refs/heads/master | 2021-01-18T09:05:05.027531 | 2015-01-29T11:42:10 | 2015-01-29T11:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,133 | py | # Copyright 2014-2015 Isotoma Limited
#
# 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 wr... | [
"john.carr@unrouted.co.uk"
] | john.carr@unrouted.co.uk |
005720c4277dba2f6e1e2d5f06050e86acc47c7e | 1b782f4c3a5a75fc93e4a56c1963de630350f6f3 | /06/aliens2.py | f7283d13e35d086fe1c333d8f66070b74856c505 | [] | no_license | gan-gan777/Python_Crash_Course | 355915d69704a494cdb7fb3aca3e511b1b6e08d8 | 473a7ddd44dad4738a0f14015fef2fbbe9669b0e | refs/heads/master | 2020-03-16T06:11:39.660654 | 2018-05-08T09:33:31 | 2018-05-08T09:33:31 | 132,548,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # -*- coding: UTF-8 -*-
# 创建一个用于存储外星人的空列表
aliens = []
# 创建30个绿色的外星人
for alien_number in range(30):
new_alien = {'color': 'green', 'points': 5, 'speed': 'slow'}
aliens.append(new_alien)
for alien in aliens[0:3]:
if alien['color'] == 'green':
alien['color'] = 'yellow'
alien['speed'] = 'medium'
alien['points']... | [
"shot_gan@hotmail.com"
] | shot_gan@hotmail.com |
9a668e3015f75457eca3ef9bba737ce1120713ff | 4399b34cb96ece479123b8bb2e99d5a4c547510b | /scripts/gamma_distribution.py | 6f4e230ab446f5430b424438f7c92264718f2c3a | [
"MIT"
] | permissive | wleizny/wleizny.github.io | fe8c21c234785d4afda09cee8df846b6410b0374 | 9b38db96e75a351426006de36f085938fb239501 | refs/heads/master | 2020-04-11T20:42:53.404545 | 2020-02-10T02:09:35 | 2020-02-10T02:09:35 | 162,080,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #coding: utf-8
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as st
fig=plt.figure(figsize=(18,6))#确定绘图区域尺寸
ax1=fig.add_subplot(1,2,1)#将绘图区域分成左右两块
ax2=fig.add_subplot(1,2,2)
x=np.arange(0.01,15,0.01)#生成数列
z1=st.gamma.pdf(x,0.9,scale=2)#gamma(0.9,2)密度函数对应值
z2=st.gamma.pdf(x,1,scale=2)
z3=st.gamm... | [
"leiwei.lw@gmail.com"
] | leiwei.lw@gmail.com |
2951f9918b65ff8723f67976693c4de1f72c851d | 48bb4a0dbb361a67b88b7c7532deee24d70aa56a | /codekata/persquare.py | 0d0aef46cce120f2115cd0d2263aef327619c712 | [] | no_license | PRAMILARASI/GUVI | 66080a80400888263d511138cb6ecd37540507c7 | 6a30a1d0a3f4a777db895f0b3adc8b0ac90fd25b | refs/heads/master | 2022-01-28T08:54:07.719735 | 2019-06-24T15:57:05 | 2019-06-24T15:57:05 | 191,355,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | l,r=map(int,input().split())
l1=[]
cg=0
for i in range(1,r+1):
sq=i*i
if(sq<=r):
l1.append(i*i)
else:
break
for j in range(l,r+1):
if(j in l1):
cg+=1
print(cg)
| [
"noreply@github.com"
] | PRAMILARASI.noreply@github.com |
e9094277497c8437c705d1da62ecc09c655bb403 | 8acf2f92feacd7fe23032c36ec9a63b86069c608 | /pythondir/predict_visu_wl.py | 3421b317eee0265ebbcea26d90f9831427b4805d | [] | no_license | skconsulting/ild | fd33fe7d2b7487268558473db3fbf4029a06aba1 | 906bcd06bfec11d90ae76e8cb620c6c9548ceace | refs/heads/master | 2020-12-31T04:56:21.219224 | 2018-03-06T13:48:10 | 2018-03-06T13:48:10 | 58,540,571 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,807 | py | # coding: utf-8
#Sylvain Kritter 21 septembre 2016
""" generate predict and visu with lung in bmp file already there """
#general parameters and file, directory names"
import os
import cv2
import datetime
import time
import dicom
import scipy
import sys
import shutil
import numpy as np
#import Tkinter as... | [
"noreply@github.com"
] | skconsulting.noreply@github.com |
d2a64cdcee734353fb399e428cdc958978d9006e | 613b467eefed4c42859731545ca9e479a76e99ea | /MeetBot/plugin.py | 1416587b6c6ebf151e194982f8257d9046e5d287 | [
"BSD-3-Clause"
] | permissive | lanefu/limnoria-plugins | 69495b2ed6b042673679ac1fe1207b67980be6ae | fc54482fef3d1e8d438b11d640a392b5ea172245 | refs/heads/master | 2022-11-13T17:04:34.747860 | 2020-07-06T06:41:05 | 2020-07-06T06:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,416 | py | ###
# Copyright (c) 2009, Richard Darst
# 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 copyright notice,
# this list of conditions... | [
"werner@armbian.de"
] | werner@armbian.de |
4aac24bacfe7f09c172be90a41fed5dcadc0cefc | 4b6999b7ea814891c254716d1832542f03f0a91b | /auth_cabina/migrations/0002_auto_20200907_1418.py | 1f83d44f790909657f8640000e1a414e3c8bf4d2 | [] | no_license | anthony01099/APICABINA | 93f4e07cde2bfa45646460384cc6935eef5bbd18 | f2f7658b8128373586d4031ee71cccaa6aa5ac88 | refs/heads/master | 2023-01-18T15:34:08.800197 | 2020-10-29T02:51:22 | 2020-10-29T02:51:22 | 314,688,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Generated by Django 3.1 on 2020-09-07 20:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('auth_cabina', '0001_initia... | [
"israel.paez14@outlook.com"
] | israel.paez14@outlook.com |
9c58da8f6f2ca4fe76c5acddd34f0f70ccf4e23d | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_47340.py | 91cb79d70b4583e53b6a388ec9065caeaeae9000 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,850 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
21d7bb84b76006046e266027a70e863769930cee | 11ea2ad950af9054b6252b42b0f97d9eb8789723 | /lib/gcloud/monitoring/query.py | b8c529f50ae1f8c8c0eb88ae2942112d7967ef83 | [] | no_license | saitejar/colabedit | df213d0b5bf398c8019bc911196422b2a8db0d6f | 5a5df3ed78b3d8e0718cd5925184a534030ef48d | refs/heads/master | 2021-01-17T06:42:53.112321 | 2016-06-08T19:02:26 | 2016-06-08T19:02:26 | 56,410,749 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,869 | py | # Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"sranuva@uci.edu"
] | sranuva@uci.edu |
159a446d1b5ea6a103c778cb3bdf38c7ffdd2d47 | 2933f7fab11343898c91434c7d217dfdc67e6df0 | /A.py | bb30e39a2a7b6fec2bb8c61ea10254c4c8ea220e | [] | no_license | PragyaRajput/Python_Programs | 29893317c07a60a12b43aca4457ca1779a5363aa | c9983ee1276f4a3358182fc12b44bff9058cdce5 | refs/heads/main | 2023-01-19T20:09:25.041102 | 2020-11-22T19:06:54 | 2020-11-22T19:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | for row in range(7):
for col in range(5):
if (row==0) and (col in {1,2,3}):
print("*",end=' ')
elif (row in {1,2,4,5,6}) and (col in {0,4}):
print("*",end=' ')
elif (row==3):
print("*",end=' ')
else:
print(" ",end=' ')
print()
| [
"noreply@github.com"
] | PragyaRajput.noreply@github.com |
df51f416e6630ff5fd00c70a19c657fa5064858c | 3f4409b26e08024b7c4ab10b532d6d372becdd77 | /TP2_Deep_learning/Ex2_Re_identification_using_Siamese_Neural_Networks/Code/data.py | faa67e9e07efcb30f4af26d77a4bf27f422a7d5a | [] | no_license | PPatrickGU/ROB313 | 382b8cacfaeb76653f7ab683a8f1b11bf5faad1a | c390d2413214022333e7e2e22fa8094ada5b40e6 | refs/heads/main | 2023-02-17T05:31:22.986413 | 2021-01-15T01:49:46 | 2021-01-15T01:49:46 | 314,022,216 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,005 | py | from torchvision import transforms
from torch.utils.data import dataset, dataloader
from torchvision.datasets.folder import default_loader
from utils.RandomErasing import RandomErasing
from utils.RandomSampler import RandomSampler
from PIL import Image
from opt import opt
import os
import re
import numpy as np
class ... | [
"gudajing@yeah.net"
] | gudajing@yeah.net |
29c7191e1f0bb964d65ea7d49d125e5c1361171f | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch17/ch17_21.py | 2f28cbe564dd9eb87e19a2b997177f787f6af96d | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # ch17_21.py
from PIL import Image, ImageDraw
newImage = Image.new('RGBA', (300, 300), 'Yellow') # 建立300*300黃色底的影像
drawObj = ImageDraw.Draw(newImage)
drawObj.rectangle((0,0,299,299), outline='Black') # 影像外框線
drawObj.ellipse((30,60,130,100),outline='Black') # 左眼外框
drawObj.ellipse((65,65,95,95),fill='Blue... | [
"terranandes@gmail.com"
] | terranandes@gmail.com |
e4b8ec3fe2483957517a29a0c38d5f8aab408766 | 51db53de93dad578b2e1ee1b92c23e194c862a67 | /Django_Stuff/my_site/MyDjango/Scripts/django-admin.py | fe9e4438a2f30ead385af097c8356c4ee4459a37 | [] | no_license | Sourav-1234/Blog-Clone | 79e92107440f22a5acd0186bbc3b7c2f63fc89d1 | 05df44226423adaa70e80d4e4836ca668922cddb | refs/heads/main | 2023-06-16T10:43:47.964054 | 2021-07-16T07:36:18 | 2021-07-16T07:36:18 | 386,544,599 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | #!c:\users\sourav\desktop\django_stuff\my_site\mydjango\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'djan... | [
"sourav08saha@gmail.com"
] | sourav08saha@gmail.com |
529751b7b1fb80e925577d9c0a2c840c5be28e4f | b96df82899f659c4b9eaf822226512be387abdb5 | /Problem_Solving/Mini-Max-Sum.py | 21b6e883001151563f3576e9fdfeb4d84b073852 | [] | no_license | YeswanthRajakumar/Problem_Solving_Hackerrank_Python | 0f633a3aa51f3f13df8b3075edc4334c4330b12d | e2771f4cb0953b1d85c7e0999d781d6078678cde | refs/heads/master | 2022-11-19T18:00:26.514238 | 2020-07-18T14:16:16 | 2020-07-18T14:16:16 | 266,459,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | arr =[1,3,5,7,9]
as_sort = sorted(arr)
des_sort = list(reversed(as_sort))
as_sum =0
des_sum =0
for i in range(0,len(arr)-1):
as_sum +=as_sort[i]
for i in range(0,len(arr)-1):
des_sum +=des_sort[i]
print(as_sum ,end=' ')
print(des_sum)
| [
"yeswanthjayanthi@gmail.com"
] | yeswanthjayanthi@gmail.com |
df974a2a8eb8076abb44ee0af07e0366ee280f16 | f85fb8ea9df44a3ebb19430d8fe248be7d738413 | /tests/test_plotter.py | eab925f85900d74d67c471aec580a5352247c590 | [
"MIT"
] | permissive | Samreay/ChainConsumer | 9ab425fd31a0853f5be92bf2a266ece59a1a2d01 | 888921942789f7c7a817c7a3cee3e7e5da3a26bf | refs/heads/master | 2022-09-16T16:52:06.175389 | 2022-09-04T02:48:44 | 2022-09-04T02:48:44 | 63,556,220 | 74 | 20 | MIT | 2018-09-06T00:34:00 | 2016-07-17T23:01:21 | Python | UTF-8 | Python | false | false | 2,856 | py | import numpy as np
from scipy.stats import norm
from chainconsumer import ChainConsumer
class TestChain(object):
np.random.seed(1)
n = 2000000
data = np.random.normal(loc=5.0, scale=1.5, size=n)
data2 = np.random.normal(loc=3, scale=1.0, size=n)
def test_plotter_extents1(self):
c = Chain... | [
"samuelreay@gmail.com"
] | samuelreay@gmail.com |
b373db01d970b6ce88143768f0517f0be7b4a386 | 5f6112f58e4e570a99e58ac0424b36a0fb7da744 | /preps/apps/sports/track/admin.py | 0f91fc904b1abfaa5ef3415e96d14c9cb520bad5 | [] | no_license | huyenme/django-preps | 335915f2d6c68cde0410bccbabaeee48f3ccc39a | fede0d245cbcff5781b6a4bf1cecc0477897d9e4 | refs/heads/master | 2020-05-02T22:52:46.779618 | 2011-07-05T21:10:43 | 2011-07-05T21:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from django.contrib import admin
from preps.apps.sports.track.models import Meet
class MeetAdmin(admin.ModelAdmin):
fieldsets = (
('Basic information', {
'fields': (('meet_type', 'meet_date_time'), ('teams', 'season'))
}),
('Administration', {
'fields': (('featured_m... | [
"jeremyjbowers@gmail.com"
] | jeremyjbowers@gmail.com |
bc4ad1e3ba5f5c0445d8c6b1ef0285c8f0c30029 | 0549d3ce6b5c09a2522011d0f8f6322a08141c20 | /210204/test4.py | 028ba2f2c3426c8faf68a64a6a4e5875c68fc479 | [] | no_license | ticod/goodee-python | 0a4b376ba94dcd431e9e55c28e906dff5d68ebe0 | d1120d92ed7137315719683ad020ae9da9d9b724 | refs/heads/master | 2023-03-03T10:19:16.534028 | 2021-02-14T15:42:03 | 2021-02-14T15:42:03 | 337,089,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 4 16:59:56 2021
@author: Dohun
test4.py
16진수를 입력하면 16진수 인지 아닌지 판단하여 16진수가 맞으면 10진수로 변경하는 프로그램을 작성하시오.
16진수가 아닌 경우 16진수 아님을 출력하기
16진수 입력 : ff
ff = 255
16진수 입력 : qw
qw 문자는 16진수 문자가 아닙니다
"""
inStr = input("16진수 입력: ")
try:
print(inStr, " = ", int(inStr, ... | [
"lours2021@gmail.com"
] | lours2021@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.