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
b3eaae4f74a3d95d15111b18db8173f26b41fbb7
ff1e3e87e0432173e67782e4c529701426918624
/PRODUSTRY/asgi.py
d4c0c582eb72d65389b47fbaef83d4187dcc768b
[]
no_license
Rayhun/Produstry
dd7c13e39114f893d4ba3ea012d903ea1723d9ff
325e74c573c333f00f0842c14d92052818a85d5c
refs/heads/master
2023-04-22T20:52:49.058342
2021-05-11T19:47:13
2021-05-11T19:47:13
294,981,881
2
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for PRODUSTRY project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
[ "rayhunkhan27@gmail.com" ]
rayhunkhan27@gmail.com
fa966d0266e2001c844d1fe290ad644e65465252
f2641cd50b3c875ade04ea7537b7e1df7cadb688
/pycon_schemas/version.py
9ad58278b78ad8f19fb03944cb3683d9d0140a1b
[ "MIT" ]
permissive
PythonSanSebastian/pycon-schemas
35c4dabe6a89d1d77aa5bc709740544b87c8c130
645ec032d4976fd45b3b050bd71820816212cf68
refs/heads/master
2022-07-07T01:44:13.295431
2019-10-25T20:05:12
2019-10-25T20:05:12
216,343,062
1
0
MIT
2020-07-01T16:57:51
2019-10-20T10:20:44
Python
UTF-8
Python
false
false
60
py
"""Release version number.""" __version__ = '0.0.1' # noqa
[ "alexsavio@gmail.com" ]
alexsavio@gmail.com
a90afeed2963880cc5342b8ffd1de1542126abeb
2b7434bef25ce9c1d603faa4c63eebc6ea629e7c
/backend/lizz_8_19_events_19655/settings.py
619ecde25e9e8d41c048934650eaae9d2e43da81
[]
no_license
crowdbotics-apps/lizz-8-19-events-19655
56052b34125ecc66283a1e53930f20bc4b50d500
1da47d86b2323cabfca599e76f796972c79dae67
refs/heads/master
2022-12-05T21:21:25.258180
2020-08-19T18:28:27
2020-08-19T18:28:27
288,789,461
0
0
null
null
null
null
UTF-8
Python
false
false
5,867
py
""" Django settings for lizz_8_19_events_19655 project. Generated by 'django-admin startproject' using Django 2.2.2. 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/ ""...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
e7108b12e5cd5ba57bfc6242dca34d65546f1496
08c7cbe996c1543f0695f3f299403aacc28117fe
/LinkedInAuto.py
a90759008b2c38c0440914258e566f4f2a2e94e8
[ "Apache-2.0" ]
permissive
VarahaMaithreya/LinkedIn-Automatic-JobApply
d3699d57393def5bd2a871c347d2dcf4a039b450
76e083a07d3bf2353c80df2ca06ffb0f2c3c25dc
refs/heads/main
2023-03-17T16:32:34.366777
2021-02-19T23:45:13
2021-02-19T23:45:13
340,516,674
0
0
null
null
null
null
UTF-8
Python
false
false
11,472
py
import time import json import pickle from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.firefox.firefox_binary import Fi...
[ "noreply@github.com" ]
noreply@github.com
ff5069979385848256736247d30c20bb6994c6b2
239464e12610791457d393e2573f79babd776456
/njupt/models/aolan.py
4565792529ff5435486f548d760f855b108507df
[]
no_license
sanmumuzi/NJUPT-API
a6f48a963521b36940d59525cc730811561fbae6
621960fb0749e34da8c22e809b5264639071a853
refs/heads/master
2021-09-01T05:02:37.669007
2017-12-25T00:20:59
2017-12-25T00:20:59
115,200,611
0
0
null
2017-12-23T14:27:14
2017-12-23T14:27:14
null
UTF-8
Python
false
false
2,605
py
import hashlib from njupt import settings from njupt.models.base import Model from njupt.urls import URL class Aolan(Model): def login(self, account, password): """ 登录奥兰系统 jwxt.njupt.edu.cn :param account: 南邮学号、考生号、身份证号 :param password: 密码 :return: {'r': 1, "msg": "登录失败"} ...
[ "gaoliangim@gmail.com" ]
gaoliangim@gmail.com
a42149122e6f49793dcbcd256512cec4d76d656a
04975a41eb459f1528dcbdcb1143a3cb535aa620
/Dynamic_easy/inter_08_01.py
24efcaf21c829d2f7f98ade60f94fb5317623546
[]
no_license
RickLee910/Leetcode_easy
2a50d632379826979a985e1b9950d4cf6bbd8b18
c2687daf334f96a908737067bb915b8b072d0d56
refs/heads/master
2023-01-29T11:09:26.701243
2020-12-02T04:36:14
2020-12-02T04:36:14
294,952,436
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
class Solution: def waysToStep(self, n: int) -> int: if n == 1 or n == 2: return n if n == 3: return 4 a, b, c = 1, 2, 4 for i in range(3, n + 1): a, b, c = b, c, (a + b + c) % (1000000007) return c s = Solution() a = 5 print(s.waysToSte...
[ "13554543910@163.com" ]
13554543910@163.com
beaf7eedb60db50e4bbda23836ec2a0cd5e63f0a
ea4e24693bddf0d986e7a4dd84a9208b3c28536f
/paayesh/wsgi.py
6a178fc93c375ca0905a9ebd480f764faf773bb1
[]
no_license
Amirsorouri00/Django-Modular-Components
ec28812ab603c021a83080c701799f5e0d6a127b
d982c77ef291411718a19bf80d90fa61be65891a
refs/heads/master
2020-04-14T13:12:05.182391
2019-01-06T14:27:20
2019-01-06T14:27:20
163,862,171
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" WSGI config for paayesh project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
[ "amirsorouri26@gmail.com" ]
amirsorouri26@gmail.com
ef6c191009fc20257863ed5835f24199ef83ba9a
6bd28a39326e9cec2ce42f58a95d2ef40477a407
/player/ex5.py
2f2f021b2064543f6fd43c7ee5661c1c88e5b824
[]
no_license
Manoliya/guvi
2dc0b5d2f7c6b94197b68cee6be91d7dc445e60b
39274ec05a6cad2c215bc1b75ab327a3e404dfb2
refs/heads/master
2020-05-31T07:39:56.639785
2019-07-26T14:18:09
2019-07-26T14:18:09
190,170,394
0
2
null
null
null
null
UTF-8
Python
false
false
256
py
a7=['I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII','XIII','XIV','XV','XVI','XVII','XVIII','XIX','XX'] b7=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] c7=str(input()) for d7 in range(20): if(c7==a7[d7]): print(b7[d7]) break
[ "noreply@github.com" ]
noreply@github.com
9f9d2fbbb6901dac95d02409b10aefadfdaf84b4
a0a9fca2b93a53625e2043e0c64da29388ff8613
/tests/unit/virt/libvirt/fakelibvirt.py
75cd4ef9abb7c3212466edc4bc50a6f62e76f076
[]
no_license
bopopescu/nova-fet-demo
8460602a54e897179303d50f7141dc5518b1b2da
b435913a306e97288294933afaffb3d457f548a2
refs/heads/master
2022-11-20T08:31:09.019870
2017-08-29T06:45:23
2017-08-29T06:45:23
282,086,612
0
0
null
2020-07-24T00:40:07
2020-07-24T00:40:05
null
UTF-8
Python
false
false
41,364
py
# Copyright 2010 OpenStack Foundation # # 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 l...
[ "tony.pig@gmail.com" ]
tony.pig@gmail.com
9c1fb3f8a8a675aa105c852de54d75cec2f6271e
0772dc49c3f45fa5219a3396c678ecb9b06be5d0
/theenvisionersnepal/urls.py
505b34dc0475b5d2e2dec433fc37b8adee2f77d3
[]
no_license
theenvisionersnepal/theenvisionersnepal
de6a7fb85bf962623d39a8a601188e933721e006
3dae34bba74561f31584cc98f1904d0039a8768f
refs/heads/main
2023-03-17T13:25:46.275968
2021-03-13T06:49:09
2021-03-13T06:49:09
341,404,966
0
1
null
null
null
null
UTF-8
Python
false
false
1,590
py
"""theenvisionersnepal URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home')...
[ "49269819+sNishant011@users.noreply.github.com" ]
49269819+sNishant011@users.noreply.github.com
e58665ff3fd90ce5824d7791abbdc9f0b0b97237
b454c3af46b3c495d298bf4f4554718b3ca0f7cb
/_syntax/number.py
c387793f6f2c35935d9a986f5ad9d77d7dd285ee
[]
no_license
jaelyangChoi/CodingTest
fd9bab94cbcad0308631d2b663acd07b87216f6c
8d81035f04a05fcfc8ccdafe8627800648bc73cc
refs/heads/master
2023-06-01T23:05:38.521250
2021-06-19T03:53:20
2021-06-19T03:53:20
339,958,839
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
a = 1e9 # 1억 print(int(a)) pi = 314e-2 print(pi) # 실수는 오차를 포함한다. 이진수는 실수를 정확히 표현할 수 없다. a = .3 + .6 print(a) # 0.8999999999999999 # => round로 반올림 print(round(a, 1)) # 0.9 print(round(3.1423, 2)) # 3.14
[ "jaelyangchoi@gmail.com" ]
jaelyangchoi@gmail.com
881c5c08827486887ff44acd266e89c45dddfd03
8898273f9811fab29eb5621734bafcdf204d8229
/scipy-stubs/integrate/_ivp/common.pyi
81dabab39e5cfc7ed3b65529e100e1954d3d90d1
[]
no_license
tyrion/scipy-stubs
628ad6321a7e1502683a2b55a759777508ab4b67
bf49a91313523c4f635bc3e5d14444c1361caf64
refs/heads/master
2020-05-30T21:59:43.001510
2019-06-03T10:30:54
2019-06-03T10:30:54
189,984,340
0
0
null
null
null
null
UTF-8
Python
false
false
1,267
pyi
# Stubs for scipy.integrate._ivp.common (Python 3.6) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from typing import Any, Optional EPS: Any def validate_max_step(max_step: Any): ... def warn_extraneous(extraneous: Any) -> None: ... def validate_tol(rtol: Any, atol: Any, n: Any): ... ...
[ "germano.gabbianelli@contentwise.tv" ]
germano.gabbianelli@contentwise.tv
fac9676a2544cd264af10e6f0943a948c1c51d37
7446005b2708aef46b3a612f5341835cdde48416
/app/views.py
91485de10e7b0af218e9a7f935fdc5436583e70d
[]
no_license
marcelormergulhao/blockchain
1d10a5790fa3611be04f41077a6a0226373f064f
365067ffc4a8b62e500fb1a0ed2c946f48faa3fa
refs/heads/master
2022-12-21T08:14:17.204754
2018-07-20T15:53:42
2018-07-20T15:53:42
142,577,021
0
0
null
2022-12-08T02:19:06
2018-07-27T12:54:29
Python
UTF-8
Python
false
false
1,756
py
from flask import request, jsonify, render_template, redirect from app import app from app.models_solution.peertopeer import PeerToPeer network = PeerToPeer("localhost:5000") @app.route("/") @app.route("/status") def index(): return render_template("status.html", blockchain=network) @app.route("/cast_vote", meth...
[ "mmergulhao@daitangroup.com" ]
mmergulhao@daitangroup.com
cfdee65b32ec94b1e6e403b6d7cf83d7b105ee98
298911eadef3b6f77cbeb669869ca21a14a0cdb7
/ptah/message/tests/test_message.py
ad6b1b0071118938e46c83686315016d96234e74
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
timgates42/ptah
7b8402194486841c57b21e66ca5629063132013f
47594cef8e80397a545bdc9e166eafcac94c72d6
refs/heads/master
2021-05-20T22:24:47.660140
2015-05-24T17:17:28
2015-05-24T17:17:28
252,437,626
0
0
null
2020-04-02T11:35:03
2020-04-02T11:35:02
null
UTF-8
Python
false
false
3,808
py
# -*- coding: utf-8 -*- """ Unit tests for L{ptah.message} """ from pyramid.compat import text_ from ptah.testing import BaseTestCase from ptah.message import add_message from ptah.message import render_messages class TestStatusMessages(BaseTestCase): _includes = ['ptah.message'] def test_messages_addmessa...
[ "mail@strobel.ch" ]
mail@strobel.ch
38b7ea7b3e47035b7661c4146d5da77b7091113f
5aa7c01649cc4b86b903fdaacf46bb79f6c0bb1f
/LabRecorder/src/pylsl/pylsl.py
ce89f3670591cb1f902a85463d4b9145cbbe0299
[]
no_license
villawang/labstreaming-App
58b9a744a6a000cfdf795bcfa325c3001c75ef3a
0bcddc313486cbde73a08030d8f35909dc8f6751
refs/heads/master
2021-01-10T01:27:15.240865
2015-12-28T13:06:13
2015-12-28T13:06:13
48,693,018
0
0
null
null
null
null
UTF-8
Python
false
false
61,860
py
from ctypes import * import os.path from ctypes.util import find_library import platform import struct global lib """ Python API for the lab streaming layer. The lab streaming layer provides a set of functions to make instrument data accessible in real time within a lab network. From there,...
[ "villa.wang.zhengwei@gmail.com" ]
villa.wang.zhengwei@gmail.com
a257226b9ccfbf6fb0b51bb0a9553c8d342d80a4
966a44a33dd4deb69c35b52c221e4e977b7ef128
/FMEAPI/CallAPI.py
dec2c6cfee48d410fb83175e6410e6426d10cf6b
[]
no_license
GarySunGovBC/FMEServerLib
29131b53ff105e2603e06b5e908fdd9e49c1c315
ae692fb35d2ea187a30f9776c8c5dbca7c2c2c7a
refs/heads/main
2023-06-22T07:59:07.211906
2021-07-08T23:55:19
2021-07-08T23:55:19
358,734,988
0
0
null
2021-07-08T23:55:19
2021-04-16T22:38:16
Python
UTF-8
Python
false
false
1,711
py
import os import json from FMEAPI.ApiException import APIException from FMEAPI.api import APIConfig class CallAPI: def __init__(self, server, token): self.api_config = APIConfig() self.server = server self.token = token self.http_method = "GET" def execute_api(self, url, hea...
[ "garymajestic@gmail.com" ]
garymajestic@gmail.com
79703b1655e8362d9f5eb64c1848be32b717315e
462378a1983005ce0787f6d91594c8f0da9e3bb4
/venv/Scripts/pip3.7-script.py
c17d5f980d804418af78202cfbeee7c00965cf33
[]
no_license
nityamohta/ContactBook_Plivo
1a71ab6042c1f5ba850480e607d308b60b75c3ae
1f15d9bb85287948086c7973a3655e9721d2c89c
refs/heads/master
2021-06-26T03:51:38.750875
2020-10-18T08:19:54
2020-10-18T08:19:54
158,804,543
0
1
null
2020-10-18T19:16:27
2018-11-23T08:43:20
Python
UTF-8
Python
false
false
428
py
#!C:\Users\Nikita\PycharmProjects\Plivo_assignment1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ...
[ "nityamohta95@gmail.com" ]
nityamohta95@gmail.com
5a1500e5739eb2b05293efc41b3b5470601b4679
94b7dba56117cb7661c90ab32387427b1494771c
/blog/migrations/0001_initial.py
b9d142d8123eeb7935a4648e6cb4aa7b9694a448
[]
no_license
jesseking96/Tech_Blog
fce36d50a68cdde36150a82685f083e788698d4f
0970021d311b9934179cbe2cdbf84dcbe7440c2f
refs/heads/main
2022-12-25T09:27:18.870581
2020-10-01T17:25:24
2020-10-01T17:25:24
300,362,952
0
0
null
null
null
null
UTF-8
Python
false
false
1,354
py
# Generated by Django 3.1 on 2020-08-16 21:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ...
[ "metalandhotdogs@yahoo.com" ]
metalandhotdogs@yahoo.com
22a1d4c9dfcfd6570a2986092a20c6b87a37dd9d
07d839abd856b9b687ea65829f2963709b3e2e4d
/dev_metrics/forms.py
2b700a413d7dd25dbb7095ab5080e13e55027b1d
[ "MIT" ]
permissive
EquiAvia/metrics
9eb58052afb661332ea00c3c611ec958c15849e4
fcc3685f84096e1b54891e44314d30502596f9ed
refs/heads/master
2020-12-01T03:12:29.228034
2016-08-24T02:04:49
2016-08-24T02:04:49
66,326,479
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
from django import forms class addMetrics(forms.Form): reporting_period = forms.CharField(label='Reporting Period', max_length=100)
[ "cnwbb1@cnw.co.nz" ]
cnwbb1@cnw.co.nz
ad553c348469b6a023c2b222cff54e6aaa95712d
6ff318a9f67a3191b2a9f1d365b275c2d0e5794f
/python/day8/add.py
e060b151f7e7662949c0265338cee9b7d3e34c06
[]
no_license
lvhanzhi/Python
c1846cb83660d60a55b0f1d2ed299bc0632af4ba
c89f882f601898b5caab25855ffa7d7a1794f9ab
refs/heads/master
2020-03-25T23:34:00.919197
2018-09-13T12:19:51
2018-09-13T12:19:51
144,281,084
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
with open('test.txt','a',encoding='utf8')as f: f.write('哈哈哈,打不过我吧,没有办法\n')
[ "1541860665@qq.com" ]
1541860665@qq.com
5f096c5784f2efca2a8a77e39dc2a229264e7fee
28fe43e09d2b370932c49499fbbf51b84134dae8
/flask_dataTable2/run_before.py
55b12a141cb3a89e311a64d0f687a8fc958cc0a3
[]
no_license
mvaliji00/Mahmad-Valiji
7213a6701498e47089a8c91666e961d23a4512c0
3fc95c72869465ebb4177bf4dd4dda29bfd2c14c
refs/heads/master
2021-02-15T20:34:47.783198
2020-08-21T15:53:25
2020-08-21T15:53:25
244,929,393
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
def run(): print('hello there,, I am running before the app')
[ "mvaliji@laingorourke.com" ]
mvaliji@laingorourke.com
0b736d1938fcbb6885f8b885a73ffa90d487b034
cd4fa017c3b8b698f54f7ab2c7a006c240ed18bd
/gunicorn.conf.py
7a54f105ccced09e01eeb591c22b2d6facb1a581
[]
no_license
DavinciEvans/friendlink
56d493931cc3b4d47adc1d24ae0d1206c5b81445
b7d213a6826787f27a1c8038ffa00d39ad2c90d5
refs/heads/master
2023-05-13T11:35:57.056993
2020-02-25T03:34:28
2020-02-25T03:34:28
239,842,181
5
1
null
2023-05-01T20:37:23
2020-02-11T19:06:47
HTML
UTF-8
Python
false
false
209
py
workers = 5 # 定义同时开启的处理请求的进程数量,根据网站流量适当调整 worker_class = "gevent" # 采用gevent库,支持异步处理请求,提高吞吐量 bind = "0.0.0.0:8000"
[ "717161070@qq.com" ]
717161070@qq.com
4d16a5b216b432a03d848f852b9679fdab11a0ac
0d44c2a6338e448409add6aa091c58e6ea7c6b03
/scraper/spiders/fantasticfiction.py
35f3f1db27caa18b051f16d65f65f65a8a28d978
[ "MIT" ]
permissive
vzahorui/book-tracker
426545b406b5e732330cdcc45bce661676fbd6c6
62ea18beab3501d1f993963a30a74d930005a202
refs/heads/master
2020-12-15T07:40:03.124596
2020-04-13T05:53:18
2020-04-13T05:53:18
235,034,354
1
0
null
null
null
null
UTF-8
Python
false
false
4,466
py
from datetime import datetime from unicodedata import normalize import scrapy from scraper.items import BookItem class FantasticFiction(scrapy.Spider): name = 'fantasticfiction' author = 'some_author' # is being set through assignment in master_of_spiders start_urls = ['some_webpage'] # is being set thr...
[ "vladyslav.zahorui@gmail.com" ]
vladyslav.zahorui@gmail.com
d1f7f4d7645b9e48ae6990d58072c273a9c73196
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/c703e319a1c79cd92f373c6c99dd4a40/snippet.py
f0eb1096bf3bccd9d42dd6d8a64c2f5536dbc3d2
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
446
py
people = 30 cars = 40 buses = 15 if cars > people: print("we should take the cars.") elif cars < people: print("we should not take cars.") else: print("we can't decide.") if buses > cars: print("too many buses.") elif buses < cars: print("maybe we could take the buses.") else: print("we still ...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
08a97c73fb504b84588c49f76977f3d337ef4eda
a2a946fa7c094a82ccd6b26819c8c02c9855b2b6
/hmp_to_neo.py
96b7cc149ca62a5d053a9f94458d9e7d28faa406
[]
no_license
Mapiato/hmp_to_neo
ffd778dd3c32d5902e995a0f009122fc1e3fd086
8b677321ab7a36a8798312e2f311dbd6ff176fd9
refs/heads/master
2022-12-31T09:05:20.614750
2020-10-27T07:38:54
2020-10-27T07:38:54
267,325,194
0
0
null
2020-10-27T07:38:55
2020-05-27T13:21:33
Python
UTF-8
Python
false
false
1,966
py
import csv import json import os import requests from copy import deepcopy #source = './HMP_export/test2.csv' # TODO: copy path from windows version lookup = { 'TimeStamp': 'TIMESTAMP', '': '', '0': '', '1': '0', '2': '0', '3': '18040237', '4': '18040238', '...
[ "noreply@github.com" ]
noreply@github.com
6a01bea35c3a6e07bbbd4c1d56dce5b72c89787f
6cb64774f377f752590ec65af09740b6c9eea5f4
/translate_overflow/backend/urls.py
adb46a225c988e17351fa585213525e2c6c463b8
[ "MIT" ]
permissive
Adrianjewell91/translate_overflow
3990164fe53cdd2b40620af6434117da00b26f37
ea0a4fa1d68a633b92cdeb5bba942b9da1d44490
refs/heads/master
2021-07-10T04:55:24.192562
2017-10-09T17:26:58
2017-10-09T17:26:58
106,196,813
1
0
null
null
null
null
UTF-8
Python
false
false
813
py
"""backend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
[ "adrianjewell91@gmail.com" ]
adrianjewell91@gmail.com
881d863736bafa04c1dbb4df6e5432fd022a7222
272bee3f22feb207f4a3ab9f3383477f4310895a
/python/threads.py
eb8b410f7ea9dc57c34a7b9cea8b0eacfd3f464f
[]
no_license
hun7err/unigglib
9e1a4ef73bb1c9c5f7f9b8d1aaa7a02b11e1ab1c
9cd86b17bb530be75cd3dabc79259ede60007fe2
refs/heads/master
2020-03-27T21:56:46.687263
2011-08-13T00:19:35
2011-08-13T00:19:35
1,924,486
0
0
null
null
null
null
UTF-8
Python
false
false
5,487
py
# [EN] / unigglib - Universal Gadu-Gadu IM library / # * Distributed under GPL license * # Author: Christopher 'hun7er' Marciniak (http://www.hun7er.pl/) # GG IM protocol reference: http://toxygen.net/libgadu/protocol/ (pl) # # [PL] / unigglib - uniwersalna biblioteka komunikatora Gadu-Gadu dla jezyka Python / # ...
[ "hun7err@gmail.com" ]
hun7err@gmail.com
da05a9436ac64c27a1d48cb718db8dc501b2d6b7
683b07175abfc73d81d49b54e573e301d4e2ed22
/lib/data_layers/vg_data_graph_weight.py
84ebba8cdb6fb43b37825ec2355dcfaee4c87b70
[]
no_license
isnanaa/vrd_topology_structure
51c7f877e2680f3c9a5290b9f1608d8885defc3f
3ae5e9c62be749dbde69381801bc015f87cb36a3
refs/heads/master
2022-11-12T15:15:12.813169
2020-06-23T14:57:00
2020-06-23T14:57:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,091
py
import numpy as np import os.path as osp import scipy.io as sio import scipy import cv2 import pickle import sys import os import math from lib.utils.agumentation import flip_image sys.path.insert(0, '../') from lib.blob import prep_im_for_blob, prep_im_stand class VgnomeDataLayer_weight(object): def __init__(self...
[ "lezhang0912@gmail.com" ]
lezhang0912@gmail.com
51ce41fb7f941fb881d0584c299f03d5f8bce1ce
b0911b7c0b9b23f90b1d29c51a365492f44f6e1e
/vitaflow/annotate_server/image_to_text.py
fe33363b4d5c92104659033734847103359b0a67
[ "Apache-2.0" ]
permissive
sravyaysk/vitaFlow
3445f99371fd685f256dfa5a12ba62b1cbf845a2
50467ae25f784dc754da2ced136bdb51ebefc8eb
refs/heads/master
2020-05-07T12:30:53.338858
2019-04-10T06:49:16
2019-04-10T06:49:16
180,508,116
0
0
null
2019-04-10T05:28:27
2019-04-10T05:28:27
null
UTF-8
Python
false
false
3,886
py
# coding=utf-8 from __future__ import unicode_literals """ Convert `Image` to `Text Line Images` and then convert them to `Text` file. to run `PYTHONIOENCODING=utf-8 python3` """ import cv2 from ocr import image_ocr from .bin.plugin import pluginApplication from common import verify_input_file, verify_image_e...
[ "sam1990kumar@gmail.com" ]
sam1990kumar@gmail.com
21bfd86b683b51fcad7f002a12a1a39bcbf7d059
debf410873ea39d82cf19bc460e75962734496d7
/day5.py
15cd88ddd85ca665cb62e00417be7ef5ccd1ac35
[ "MIT" ]
permissive
ArshinBanu07/learning-challenge-season-2
e8d65805ef4e06dd50bc6e9242e0687e8d61c359
dad0bb9f80192d4c3012a57ecbb55a10b50879c0
refs/heads/master
2020-06-13T17:09:35.587374
2019-07-05T18:47:53
2019-07-05T18:47:53
194,726,348
0
0
MIT
2019-07-01T18:45:16
2019-07-01T18:45:15
null
UTF-8
Python
false
false
1,050
py
def reverse(s): return s[::-1] def ispalindrome (s): rev = reverse(s) if (s == rev): return true s = "malayalam" ans ispalindrome (s) if ans == 1: print("yes") else: print("no") #module with one function and one dictionary def greeting(name): printr("Hello", +name) person = {"name" : "John...
[ "arshinbanu007@gmail.com" ]
arshinbanu007@gmail.com
6c078604796dd123c75509a7767be4cb0dd37108
a978d41e3754a2ece3d649888d7dc549b319817e
/apps/store/migrations/0002_auto_20171026_0244.py
a1a36f76d7053b9e39316b910dd3d5eb0ebab4e4
[]
no_license
Ericksmith/board_games
ace0ca4d04b4eb508114c8c43d14ff3f5322b9f8
4c8a41f9e7bac8dfc59d1cba35c8c10b345d2e57
refs/heads/master
2021-09-05T07:15:23.888922
2018-01-25T04:39:24
2018-01-25T04:39:24
108,183,604
0
0
null
2018-01-25T04:39:24
2017-10-24T21:05:31
Python
UTF-8
Python
false
false
434
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-26 02:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "smith.s.erick@gmail.com" ]
smith.s.erick@gmail.com
8179ed536b854e23b05d411c6409878d9f8fbeef
599069eeeae294950aab730ca8d4858ac1929a5c
/bemani/backend/bishi/base.py
d7ace86131c74ce846cf138365fdb3868d06b493
[]
no_license
ByteFun/bemaniutils
232d057d4b548f929af4da4f145565ad51482113
bd467a9b732a25a1c8aba75106dc459fbdff61b0
refs/heads/master
2020-12-04T07:45:45.503620
2019-12-08T21:57:08
2019-12-08T21:57:08
231,683,196
4
1
null
null
null
null
UTF-8
Python
false
false
718
py
# vim: set fileencoding=utf-8 from typing import Optional from bemani.backend.base import Base from bemani.backend.core import CoreHandler, CardManagerHandler, PASELIHandler from bemani.common import GameConstants class BishiBashiBase(CoreHandler, CardManagerHandler, PASELIHandler, Base): """ Base game class...
[ "dragonminded@dragonminded.com" ]
dragonminded@dragonminded.com
0432977e460d9740d98c78b2f667853a927bfa88
1e15b421142c26e5285d16a58ac6aca0b062cbef
/venv/Scripts/django-admin.py
bfe0e1fb72c8c2509cf247d49ece44c756696536
[]
no_license
subha3495/subhacookiesproj
c2d49a5eb154aba27bfc99d194cee49efb8e89c3
3068f104dc83c76c81bd7a227c790f3f4d4d1b0f
refs/heads/master
2020-05-17T03:50:07.209409
2019-04-25T18:55:32
2019-04-25T18:55:32
183,492,017
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
#!C:\Users\subha\PycharmProjects\subhacookiesproj\venv\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "dashjitu3@gmail.com" ]
dashjitu3@gmail.com
8525100e60ff3148ec5d2892294ea3ed84fb74f7
b0cc5920a18d31bc22d346ae10e99e6b78b12b32
/wsgi/zosiaproject/agenda/views.py
4132c02e6a381bf1a3b0baeaae4c4ff632a0ba79
[]
no_license
kamarkiewicz/zosiaproject
de33525b786908585edd03dfb235c67031bcd440
440316ae1dea4feff5b6a9ac6f40c19382022d91
refs/heads/master
2021-01-17T09:51:34.944777
2016-01-03T21:06:58
2016-01-03T22:07:47
41,800,412
0
1
null
null
null
null
UTF-8
Python
false
false
419
py
from django.views.generic.base import TemplateView from django.utils import timezone from .models import Agenda class AgendaView(TemplateView): template_name = 'agenda.html' def get_context_data(self, **kwargs): context = super(AgendaView, self).get_context_data(**kwargs) context['agenda'] =...
[ "k.a.markiewicz@gmail.com" ]
k.a.markiewicz@gmail.com
1876abc92390f28ad4c30d6353ffec70594f359c
9b2f5932717ba0e8dd88ba54c70901d8d3aff85d
/mygrations/core/commands/version.py
0a7f275720b4f4ad77551b6db11fa432a97bccf6
[ "MIT" ]
permissive
jvillacorta/mygrations
234520effa73d965747f8b4569336480bc548f24
52524f9f8b37b3b5123cb5dc67f8d8f67bf2efd1
refs/heads/master
2020-03-23T09:08:18.572276
2017-11-13T15:21:35
2017-11-13T15:21:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
from .base import base import mygrations def execute( options ): obj = version( options ) obj.execute() class version( base ): def execute( self ): print( 'mygrations v%s' % mygrations.__version__ ) print( 'Copyright (c) 2017 Conor Mancone (cmancone@gmail.com)' ) print( 'MIT Lice...
[ "cmancone@homestargroup.com" ]
cmancone@homestargroup.com
5b49f9ed2760916b19bd8f252a154986087ef41b
23b686feb2d0ab9082a7ce622fc055946ed99c55
/.history/atkd/views_20190409152250.py
368f52282a2afbb37d8b96dd4a13e80011e77a5e
[]
no_license
jasvr/atkd
a18b9840bf9948a7560684cd5eb0d5e22f6c52c7
daf61f7aa11cfc812171298894b1d0019641c4bd
refs/heads/master
2020-05-07T09:35:56.343837
2019-04-12T16:17:09
2019-04-12T16:17:09
180,383,260
1
0
null
null
null
null
UTF-8
Python
false
false
161
py
from django.shortcuts import render from .models import Parent, Student def parent_list(request): parents = Parent.objects.all() return render(request)
[ "jas.vrgs@gmail.com" ]
jas.vrgs@gmail.com
9dc8f2e6c9f60331c1c4894e1182c096842a971a
f9a587ffcc42e06294f12ac761bcc589ba202f85
/lesson04/del_r.py
01a034a4317736930147e9cc21cb34e12acce1b3
[]
no_license
Bulgakoff/files_utf8_04
3c49d5f8b637eaa834dd99fd6f140f37ebf96794
a6299e9c088812c63e1967290a97a2798bc19d1c
refs/heads/master
2020-09-16T09:10:00.268684
2019-11-27T14:58:14
2019-11-27T14:58:14
223,722,605
0
0
null
2019-11-27T14:58:15
2019-11-24T09:51:44
Python
UTF-8
Python
false
false
158
py
with open('del.txt', 'rb') as f: result = f.readlines() print(result) f_var = [] for p in result[:]: f_var.append(p.decode('utf-8')) print(f_var)
[ "hlbu@yandex.ru" ]
hlbu@yandex.ru
d8e42fc549d9b2a1c812f6ee2603f4e60900f5d5
ac1bf6d8baf875a5f41381e459b2ca73c511499d
/practice/从入门到实践/test/language.py
f880f535d969ea80f06dee4c955edf3a4e60db7c
[]
no_license
AmberJar/Python-Project
f30e85234be04ebe7d9123c45edc698fb8a3abe3
d108af6794e95c473aa0213f060e28e5b241d875
refs/heads/master
2022-12-01T19:14:28.039764
2020-08-18T17:06:26
2020-08-18T17:06:26
278,311,820
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
class AnonymousSurvey(): def __init__(self, question): self.questions = question self.responses = [] def show_question(self): print(self.questions) def store_response(self, new_response): self.responses.append(new_response) def show_results(self): print("Surve...
[ "fpcfpc1995" ]
fpcfpc1995
be3bde8a3d4a28f8589231ac09bd121cce79ebce
5fc1167cdbcd4287cd1c572d287a018ed0e20cdd
/Spectrometer/urls.py
7c34a3164280550563a52ff8b125ff4385b56d36
[]
no_license
The-Next/PhysicalExperiment
dfe76d45fbd843c23e9ca891db7da2bad1e258cc
b291bc4286d7bebc3ad47f19ad6ba1a17819d2cb
refs/heads/master
2022-12-09T17:51:06.497549
2019-08-07T11:49:25
2019-08-07T11:49:25
171,600,529
1
0
null
2022-12-08T01:48:10
2019-02-20T04:25:00
Python
UTF-8
Python
false
false
178
py
from rest_framework import routers from Spectrometer import views route = routers.DefaultRouter() route.register(r'spectrometer',views.SpectometerAPI) urlpatterns = route.urls
[ "2199405327@qq.com" ]
2199405327@qq.com
5485a970566a26513ba7761fcf092dac48138d02
ee561aa019a80f621007f82bdb21fe6ed8b6278f
/devel/turtlebot3-melodic-devel/turtlebot3_description/catkin_generated/pkg.installspace.context.pc.py
b595bae6cb52a86f7d280558d437f0187c648e65
[]
no_license
allanwhledu/agv_edu_prj
4fb5fbf14cf0a14edd57ee9bd87903dc25d4d4f2
643a8a96ca7027529332f25208350de78c07e33d
refs/heads/master
2020-09-23T23:32:54.430035
2019-12-04T07:47:55
2019-12-04T07:47:55
225,613,426
1
1
null
null
null
null
UTF-8
Python
false
false
376
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "urdf;xacro".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "turtlebot3_description" PRO...
[ "bitwanghaili@gmail.com" ]
bitwanghaili@gmail.com
0bff6542b01214850dc1e9d20ccbcaef70a88d83
962ae07b8047a23425de2c1941a5bd1a3f460795
/File-2 [Beta].py
8badbd2f87fc00ed79dfdd4c409b1aa89197737b
[]
no_license
AlperN21/SES-TANIMA
1210f55c9078870141df9eb3901aa14916dfe3a6
5eb65f407426c08dc6b408f730ff7e280127102b
refs/heads/main
2022-12-28T18:22:25.992251
2020-10-13T19:03:40
2020-10-13T19:03:40
303,802,706
1
0
null
null
null
null
UTF-8
Python
false
false
304
py
#SES DOSYASI TANIMA PROGRAMI import speech_recognition as sr import time import os r = sr.Recognizer() file = sr.AudioFile('.wav') with file as source: r.adjust_for_ambient_noise(source) audio = r.record(source) result = r.recognize_google(audio,language='tr') print(result)
[ "noreply@github.com" ]
noreply@github.com
454704723c91aaa38436e984d0a865a2c976bf16
45f93a9d47204d76b8bf25a71dfb79403e75c33c
/Trees_and_Graphs/Binary Trees/__Right-Sibling-Tree.py
5274bf5cf821019dce12066fb96d3cb3d3954489
[]
no_license
tahmid-tanzim/problem-solving
0173bce1973ac3e95441a76c10324c0e1b0a57c3
6ddb51de6772130f209474e76f39ca2938f444f0
refs/heads/master
2023-06-25T02:18:03.690263
2023-06-20T06:58:46
2023-06-20T06:58:46
137,173,850
4
1
null
2022-03-30T08:28:41
2018-06-13T06:44:25
Python
UTF-8
Python
false
false
1,842
py
#!/usr/bin/python3 # https://www.algoexpert.io/questions/Right%20Sibling%20Tree """ Write a function that takes in a Binary Tree, transforms it into a Right Sibling Tree, and returns its root. A Right Sibling Tree is obtained by making every node in a Binary Tree have its right property point to its right siblin...
[ "tahmid.tanzim@gmail.com" ]
tahmid.tanzim@gmail.com
6524b1e4a1dbdf290f172ba2a3fc64766fac2a65
63de6f68b6472f979857bf898c168f8d09f96bcd
/WeRIndependent/urls.py
1c90bb6023eceef742db697d8444d782ed53d229
[]
no_license
jangidvishnu/WeRIndependent
600ad8d26c830309c9c82908c32ed6b06933c611
e0f3e01eb183b3dd06d5d7eb3f4e2634b8504d96
refs/heads/master
2022-12-13T08:18:32.448801
2020-09-07T16:00:40
2020-09-07T16:00:40
270,889,204
1
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
"""WeRIndependent URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
[ "vishnu.jangid@intimetec.com" ]
vishnu.jangid@intimetec.com
343654a6ff8b9ad62dfae3413bb5577c2026f7eb
5966449d2e29c9b64351895db2932f94f9de42da
/catkin_ws/build/detection/catkin_generated/pkg.installspace.context.pc.py
d0f2a9e6ba34e48a5a09cbb48f107f358d311951
[]
no_license
godaeseong/GoHriProject
8cbce6934485b8ba3253fc7b6c5b5b59397b4518
425e70b7c91b6215f5477fc2250d2b0ac96577be
refs/heads/master
2021-05-11T22:11:56.099580
2018-01-15T02:20:43
2018-01-15T02:20:43
117,484,817
0
0
null
null
null
null
UTF-8
Python
false
false
4,577
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/hri/catkin_ws/install/include;/opt/ros/kinetic/include/opencv-3.3.1;/opt/ros/kinetic/include/opencv-3.3.1/opencv".split(';') if "/home/hri/catkin_ws/install/include;/opt/ros/kinetic/include/openc...
[ "bigdream0129@naver.com" ]
bigdream0129@naver.com
c0cfe472758534f1034651b9d40834ffa6a04390
f5d320f3085e2040f0b4ad4e9a932cb0c775c305
/jasmeetsingh/urls.py
60f7f63002800a47bf31072c32c208744e451336
[]
no_license
jasmeetsinghbhatia/biog
d2fd2af1dedceb92d8302884721e83010799ff86
1ea0fdcf992ed5576ac7a6d9664971f41eb20aa4
refs/heads/master
2020-12-30T11:03:16.213301
2020-01-25T20:30:36
2020-01-25T20:30:36
98,819,710
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
from django.conf.urls import url from jasmeetsingh import views urlpatterns = [ # url(r'status/', views.status, name='status'), url(r'^$', views.HomePageView.as_view()), url(r'^about/$', views.AboutPageView.as_view()), # Add this /about/ route ]
[ "jsingh@linkedin.com" ]
jsingh@linkedin.com
8e78f5f975565385ac7b5859b9bd2eceeb2ec1ba
5d3a2cc308aa6497185549d33616d4562b9ff668
/monorail/setup.py
b02668505ff26c8c8a9e21c756f9c0344e77943e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
heinervdm/MysticMine
17e7ea6b1f34b2a92d6a2a182d036dc3e30ccbe7
cba23575c3054af967aae1a15cfb88b28bedc28d
refs/heads/master
2020-12-25T05:17:31.599183
2012-11-25T08:00:26
2012-11-25T08:00:26
6,775,391
1
0
null
null
null
null
UTF-8
Python
false
false
324
py
#!/usr/bin/env python # create ai.so with: ./setup.py build_ext --inplace from distutils.core import setup from distutils.extension import Extension from Pyrex.Distutils import build_ext setup( name = "AI", ext_modules=[ Extension("ai", ["ai.pyx"], libraries = []) ], cmdclass = {'build_ext': build_ext...
[ "koen@acer.(none)" ]
koen@acer.(none)
fb1ec6ed7257735f0d8c4f1045f47d3a8777e2b2
20a6cecef8ee7c25297ae70a01065868cc8f90e3
/armstrong.py
c9483d6a6a3f9e50c36c7683d98a662fbbaa419d
[]
no_license
UmaTaru/LearnPython
42ae43284c7a9097f3c29f24a4a22ff0f97817ec
0fc84b7be982a317ecb4ae4a1a2ac50371509861
refs/heads/main
2023-06-18T19:48:56.892952
2021-07-09T05:01:39
2021-07-09T05:01:39
359,679,959
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
def armstrong(n): sum = 0 y = n while y > 0: x = y % 10 sum = sum + pow(x,n) y = y // 10 if sum == n : print("Armstrong number") else : print("Not a armstrong number ") def order(n): x = n digits = 0 while x > 0: x = x // 1...
[ "noreply@github.com" ]
noreply@github.com
1c4f265041a1d97846a298df8fa1ee74a52ce678
b98a95b4f07c0368cb21dbb6d9e33726a5cdba5b
/NLP_Information_Extraction/NLP_TopicModelling/topicmodelling_scikitlearn_SQL_loopthrough_MSTravel.py
68a829a5bb7233da715269dc8b9d4faa00d7884a
[]
no_license
kannaxp-git/NLP
2d9a2aa24486f77166e563049525e649048e7eb9
20f102d262309427b85422b77de920bb511f1bf8
refs/heads/master
2022-12-11T14:31:41.218555
2019-12-11T18:19:51
2019-12-11T18:19:51
227,430,999
1
0
null
2022-12-08T02:39:58
2019-12-11T18:14:26
Python
UTF-8
Python
false
false
2,897
py
#https://medium.com/@aneesha/topic-modeling-with-scikit-learn-e80d33668730 from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer #from sklearn.datasets import fetch_20newsgroups from sklearn.decomposition import NMF, LatentDirichletAllocation import pyodbc def display_topics(model, feature_names...
[ "kach@microsoft.com" ]
kach@microsoft.com
53ddb769d32447f7457565f485471857c8b75a1f
d83aaf48bbd06218dcd2ac8beaae1ababb2334d4
/tests/tests_app/conftest.py
1a03b6e356bfb6b0f060a03b0e7cfaf48467ea8b
[ "Apache-2.0" ]
permissive
nikvaessen/pytorch-lightning
5a6cbb233d1ebcc54c67e377a24e638325a86c3b
59c7fadc8c9b50c47e1f4f5e9de4a4e9569508f8
refs/heads/master
2023-06-26T10:13:07.301119
2023-06-20T07:11:06
2023-06-20T07:11:06
224,524,057
0
0
Apache-2.0
2019-11-27T22:01:49
2019-11-27T22:01:49
null
UTF-8
Python
false
false
4,502
py
import contextlib import os import shutil import signal import threading from datetime import datetime from pathlib import Path from threading import Thread import psutil import py import pytest from lightning.app.core import constants from lightning.app.storage.path import _storage_root_dir from lightning.app.utilit...
[ "noreply@github.com" ]
noreply@github.com
35fbfc803b4c58ed3877c42a9dea8ca8ed8cce89
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_180/ch39_2019_09_04_15_02_03_498630.py
0029d8ac133813a2cedbf0938fddc211d09ee1cd
[]
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
144
py
soma = 0 while True: numa = int(input("Numeros para somar: ")) soma = soma + numa if numa == 0: break print(soma)
[ "you@example.com" ]
you@example.com
50ed4a346321387c9b4b9f9b02ce75e610c057a4
01a14eac64b09317b0160c521fa41290c9d575dd
/ml-dft-sandia/networks/training_data/scripts/fp_clustering/cluster_fingerprints.py
8749a49a5f87222726bb4e813d6b65d4c01cb27b
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
icamps/mala
03a1223fcf112b5a4e4162dc5292daa90d09058c
9cc771b0cdc4178c7f66fd717684658abbb0d95c
refs/heads/master
2023-08-23T11:20:06.526493
2021-07-07T11:18:35
2021-07-07T11:18:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,725
py
#!/usr/bin/env python3 import os import sys import glob import math from collections import defaultdict from itertools import cycle import yaml import numpy as np import scipy.stats from sklearn.preprocessing import StandardScaler import sklearn.cluster from mpi4py import MPI import pqkmeans mpi_comm = MPI.COMM_WORLD ...
[ "jasteph@sandia.gov" ]
jasteph@sandia.gov
d1865dd785d2765014d2581d2626fbe175aced68
049d1262acb5e0a0be1201a12b479a7a111cb6b9
/jacob/bin/wheel
3dc16ecb462f5c5b1a855b258c3c3b4aceb27f2e
[]
no_license
jaybenaim/day13-reinforcements
c579c908ac35abbe541431a85158f3c3b4ae55bf
d31e89d340465aff7e5f7917924f0ed64566a34a
refs/heads/master
2020-06-22T01:53:54.259573
2019-07-19T17:33:42
2019-07-19T17:33:42
197,604,415
0
0
null
null
null
null
UTF-8
Python
false
false
280
#!/Users/jay/bitmaker/projects/day13-oop/assignments/reinforcements/jacob/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "benaimjacob@gmail.com" ]
benaimjacob@gmail.com
0ab4d7994b04df24884f8e6496d5e3d437c15180
fb836a197b8cb3f296d3f75746c67b1a421f072e
/pythonic_garage_band.py
0f1c6fd939624a49700ed7ff93b5c2aa2a893676
[ "MIT" ]
permissive
nastinsk/pythonic-garage-band
2c4c215ad7e41d7201f48c89aed2d1fc48bfc5ea
0cb7d937f2c1a5188a51ab2a3a69553212b5e48b
refs/heads/master
2020-09-26T06:28:56.454970
2019-12-08T10:10:49
2019-12-08T10:10:49
226,188,620
0
0
MIT
2019-12-08T10:10:50
2019-12-05T21:01:58
Python
UTF-8
Python
false
false
4,055
py
# base class or parent class def read_file(file): """F() to take data from band.txt file""" with open(file, 'r') as f: template = (f.read()) return template band_data = read_file("band.txt") class Musician: """ Parent class to all musicians. Parent to Gutarist, Bassist and Drummer cla...
[ "nastinsk@gmail.com" ]
nastinsk@gmail.com
78916a222eb4c54979852581b0f2eb26045ecea0
706388f1875c71e838862bbd3bccde567f87fc7c
/ToolBox/AliveChecker.py
d34292b9b8a3ee553c2fc3107390367c0b61372c
[]
no_license
KyunZeon/ReIPDog
6e130b0c3bd4f8c17b98720542aeb1515664a710
1d1c04d837d5455faeb370b0e20d8987ad6edb15
refs/heads/master
2020-05-21T04:00:29.718084
2018-10-04T02:13:41
2018-10-04T02:13:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,756
py
# -*- coding: utf-8 -*- import requests import sys from putColor import * from threadpool import * import re Sites = [] result = [] def getStatus(url): response = requests.get(url, timeout=5) title = re.findall('<title>(.+)</title>', response.text) site = url.replace('http://', '') if title: ...
[ "997334636@qq.com" ]
997334636@qq.com
0f677f5d072eb753b88fe94e2feeead2bb50a595
f714db4463dd37fc33382364dc4b1963a9053e49
/src/sentry/analytics/events/first_transaction_sent.py
d972abeae1561c5b7482283e597056d244743902
[ "BUSL-1.1", "Apache-2.0" ]
permissive
macher91/sentry
92171c2ad23564bf52627fcd711855685b138cbd
dd94d574403c95eaea6d4ccf93526577f3d9261b
refs/heads/master
2021-07-07T08:23:53.339912
2020-07-21T08:03:55
2020-07-21T08:03:55
140,079,930
0
0
BSD-3-Clause
2020-05-13T11:28:35
2018-07-07T11:50:48
Python
UTF-8
Python
false
false
443
py
from __future__ import absolute_import from sentry import analytics class FirstTransactionSentEvent(analytics.Event): type = "first_transaction.sent" attributes = ( analytics.Attribute("organization_id"), analytics.Attribute("project_id"), analytics.Attribute("platform", required=Fal...
[ "noreply@github.com" ]
noreply@github.com
9151f2516ad65de731d8b060b55a74017f64d823
6f5684cdc5335c2203e9e562cdf01ab31a0750a4
/ec2_funcs.py
34d57dacd841a397a3e3830476514c4713872dda
[ "Unlicense" ]
permissive
afourast/spot-ec2-proxifier
13ef0fdc72f6c151552b30780bed491086ddabf8
6c760e8df65e6ca85a56f109c50dc4cf92661221
refs/heads/master
2021-01-18T12:15:56.201470
2016-02-05T23:11:10
2016-02-05T23:11:10
51,075,869
1
1
null
2016-02-04T12:55:41
2016-02-04T12:55:40
Python
UTF-8
Python
false
false
4,360
py
from boto.ec2.connection import EC2Connection from time import sleep import subprocess import ConfigParser, os, socket import sys config = ConfigParser.ConfigParser() config.read('spot-ec2-proxifier.conf') def create_client(): client = EC2Connection(config.get('IAM', 'access'), config.get('IAM', 'secret')) ...
[ "afourast@gmail.com" ]
afourast@gmail.com
e58fc752f6e7e9c03afff41ad7b044198d708e77
89f400104d4c919a735081c52e6f53c5b9dd3a6d
/tests/utils.py
0a85ee036725560612cecff6f0f4cae8e530abae
[ "MIT" ]
permissive
drsxr/tda-api
e254c7e4782daa3bebc2be453c963a78dc9ca06c
64e5c1186df48052f5d4bf1c3dac556696abbd16
refs/heads/master
2023-02-16T12:58:51.508855
2021-01-18T18:40:54
2021-01-18T18:40:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,645
py
from colorama import Fore, Back, Style, init import asyncio import asynctest import difflib import inspect import json def account_principals(): with open('tests/testdata/principals.json', 'r') as f: return json.load(f) def real_order(): return { 'session': 'NORMAL', 'duration': 'DAY...
[ "noreply@github.com" ]
noreply@github.com
8d0b903851047b9296773015aa650963853e0af8
23a0b40ede110cb719d86f04843a7a7604160d96
/FirstPythonProject/laughter.py
adf02b0c642022c37a4b9a0d0038cf98a2246c6e
[]
no_license
Thestrle/Python_Begginer
28704312412554050347fb2b328bda0d65c38006
1ed1a8863d96c3a9181a7f580490ee5c01088c41
refs/heads/master
2022-11-11T09:59:51.342183
2020-06-27T06:02:29
2020-06-27T06:02:29
254,622,554
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
#Write a function that counts the number of times a pattern appears in a given String # hah in hahahah occurs 3 times import re def paperDoll(my_str): my_string = "" for chr in my_str: my_string = my_string + chr * 3 return my_string ret_string = paperDoll("Hello") print(ret_string) #def laughter...
[ "kushvahaalok@gmail.com" ]
kushvahaalok@gmail.com
12459095f283a9b926d8c8d5ebf2d51cbecff152
99f1ecce2960411ffc98ba1841824c9bd19025eb
/App/app.py
36eac15131178bd9f4185f689f8dc19c8696c822
[]
no_license
anandb235/Sentiment-Analysis
1e45257d3206295af0a9c3d132658347a8b3c903
928c3d0c9683ad98bada93443b1031d2002f055c
refs/heads/main
2023-07-27T12:59:17.177673
2021-07-04T18:20:17
2021-07-04T18:20:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,293
py
# Import Packages from numpy.core.fromnumeric import mean import streamlit as st import altair as at from streamlit.elements import layouts import plotly.express as px import pandas as pd import numpy as np import joblib # Models models = ['LogisticRegression', 'AdaBoostClassifier', 'SVM', 'KNeighborsClassi...
[ "borkaranand19@siesgst.ac.in" ]
borkaranand19@siesgst.ac.in
aeef4cd9ad9cf60858a571c69a45edf2eaedd352
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/appengine/v1/google-cloud-appengine-v1-py/google/cloud/appengine_admin_v1/services/firewall/pagers.py
fb10d4619bc29c2163fff3b9ab11c3472f65e6f1
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,937
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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
2702ac3b9ff43d87f3180f63fbb1385c4185315b
3a7eff0bb7277cfcecba4ea4f02fff7e7adb047b
/app/api.py
650c2a6f454b03dac43958c7c2e1300c6b46c7b1
[]
no_license
Eduardogbg/weather-api
cc5f50aeb2bf92ab76d1b5e7b0f8ec2db18818e0
01d8344f5c7d0ca6acee9ad6ce422823dd181b40
refs/heads/master
2020-04-28T05:36:01.374136
2019-04-19T19:41:43
2019-04-19T19:41:43
175,018,686
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
""" Responsável por toda interação com a API climatempo """ import requests BASE_URL = 'http://apiadvisor.climatempo.com.br/' TOKEN = '0dbe332e49706163db8b4cf1e7b08742' def assemble_req_url(code): """ Retorna a URL do endpoint da API """ return BASE_URL + '/api/v1/forecast/locale/' + str(co...
[ "eduardogbg@gmail.com" ]
eduardogbg@gmail.com
a00157b7f648870f3f0aa366f3d430cc5b94b837
0aa57b777376089fc02603f9fb22b2f52caf8a21
/ModBot/cogs/utility.py
55fbc8e4681021cee9db187a14dba0ef17140a8a
[ "MIT" ]
permissive
DoggieLicc/MiniMod
b66645ebc264e5943a08a30d0b0a56efc6d8c517
5d465458394cf9c6b3e18151953d32b2c2a13078
refs/heads/main
2023-08-10T21:11:29.945536
2021-09-24T01:35:44
2021-09-24T01:35:44
361,060,195
4
3
null
null
null
null
UTF-8
Python
false
false
11,428
py
from discord.ext import commands, menus from discord.ext.commands import Greedy from typing import Union, Optional import discord from custom_funcs import * import time from datetime import timedelta import string import inspect from io import StringIO import asyncio class RecentJoinsMenu(menus.ListPag...
[ "noreply@github.com" ]
noreply@github.com
3c96164463b53f9f24a1a5ad416f7f16bff2a05d
99f21f7de1d5b0d42134ea385959a687ee84a9af
/Book.py
394c6aff20dbd1b448bdc716f3b0044d57d8ded2
[]
no_license
Khushboo0/Library-management-system
01fdfe372c7babf5c2f1dcd56b33bbf246ceb269
e02faee339b08fed4781c4a026fb8593201c8d72
refs/heads/master
2022-11-07T20:46:04.009420
2020-06-30T08:29:54
2020-06-30T08:29:54
276,040,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
import pickle import datetime class Book: def addb(self): self.name=input("Enter the title of the book:") self.isbn=int(input("Enter the isbn number of the book:")) self.year=int(input("Enter the year of publishing of the book:")) self.author=input("Enter the Author of the b...
[ "patelkhushboo057@gmail.com" ]
patelkhushboo057@gmail.com
d7ff6cd5438ab3643bf92bd8d27323a1fa9c1821
c0f41d4f45ef18a08962f45b204f69a83a1cf60a
/src/CCI_Spain/features/descriptivedemographic.py
38ab79513c8b1d0efa0574e3d3ce07270dedfb09
[]
no_license
renswvw/CircularCityIndexSpain
f24a66bba747aa679f9113ecfe9b784af158e289
4c395651452ea796ad61a0ffd940caae8b1c3860
refs/heads/main
2023-06-08T01:08:04.697772
2023-05-19T12:16:17
2023-05-19T12:16:17
607,203,776
0
0
null
null
null
null
UTF-8
Python
false
false
14,290
py
import seaborn as sns import geopandas as gpd import pandas as pd import matplotlib.pyplot as plt import os import math from scipy.stats import stats from sklearn.preprocessing import StandardScaler from sklearn.impute import KNNImputer def DescriptiveDemographic(VARIABLE_TO_PREDICT, AREA_TO_PREDICT): #...
[ "noreply@github.com" ]
noreply@github.com
47cc7185780e69d639c732ae362796e493f9cf77
baaeb8c1d335e258fd49b5ef024ac39790fd660f
/backend/alembic_users/versions/ed860c399094_added_is_gold_evaluation_cols_to_jobs_.py
bab6dc2c44ecb1672d28025e6494b2f2c7d15e48
[]
no_license
ReactARDev/React_Redux_Python
f0b80a9d2a603b38f8e144966bc899c5aa3690e6
afdb4a55f82fdff86686ad955448a4168d05c739
refs/heads/master
2021-10-10T19:28:05.142652
2019-01-15T21:24:06
2019-01-15T21:24:06
159,198,417
0
0
null
null
null
null
UTF-8
Python
false
false
1,349
py
"""added is_gold_evaluation cols to jobs and topic annotations Revision ID: ed860c399094 Revises: 9528026442d1 Create Date: 2017-12-18 12:43:18.402875 """ # revision identifiers, used by Alembic. revision = 'ed860c399094' down_revision = '9528026442d1' branch_labels = None depends_on = None from alembic import op i...
[ "talentmobile9999@gmail.com" ]
talentmobile9999@gmail.com
d2e23078717394e43c05846893316b9a2af9f3db
8575ccf9e7e6b2257ec7aee1539c91afa90d65a5
/ml/_04_clustering/SpectralClustering/src/main.py
036c05a346ea896c195d7c7ab2d8b8030b9cf5f5
[]
no_license
oaifaye/pyfirst
86b8765751175f0be0fe3f95850ff018eacf51d3
e8661b5adf53afd47fa5cb6f01cd76535d8fc8b9
refs/heads/master
2021-12-12T00:33:39.523597
2021-08-13T08:32:10
2021-08-13T08:32:10
160,138,715
3
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
''' 谱聚类 https://blog.csdn.net/songbinxu/article/details/80838865 ''' import sys sys.path.append("..") from utils.similarity import calEuclidDistanceMatrix from utils.knn import myKNN from utils.laplacian import calLaplacianMatrix from utils.dataloader import genTwoCircles from utils.ploter import plot from s...
[ "18622819565" ]
18622819565
ee804eb0e3f33f2c5468a1a3469ccc346f6e5f6a
e1ad6768f0895207ba0cd52ca4848f4403782bde
/stream.py
9b85ae5b821949c9b4a71b6aae90cacc424523bb
[]
no_license
Mundiaem/Twitter-Sentiments
bf8fac22feeebcb9e4d2216ee6beb76540cc1962
fbf15ee80398a8fb3641f5cebdcb4ad7baf6a1b8
refs/heads/master
2022-03-31T09:40:52.097134
2019-12-20T08:22:43
2019-12-20T08:22:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,250
py
import re import sys import tweepy # authorization tokens from textblob import TextBlob consumer_key = "nncHfvEB8YChjTS0dXY5Lqgih" consumer_secret = "boF0r6XawJKr1aP75Fwh9MnJspEO3d6f0ifr02z2or40cTy0sk" access_key = "1862787229-YQWKemIrdFLZ8DHMxJHK8cMRN7igzKjiUTCi5ly" access_secret = "3A7FZuoAz2WfGv3Gm9homkAD8G5bqa9FQ...
[ "machariamundia@gmail.com" ]
machariamundia@gmail.com
a7db6f2cd95e1b90ee6e6d98d05077ee69cf0bf4
97ad9c0cef96ca3a286b870a1dc2127738f9591a
/config/settings/local.py
d13cdab07191650da31a9f67cada080488ba30a3
[ "MIT" ]
permissive
ss93/modern-django
6bef77a890fb81c59ce631782951ff9c2f29fdd6
0c4178f731f7e00141e07c51ec6cf8bc5942915d
refs/heads/master
2021-07-19T11:39:01.019185
2017-10-28T22:22:23
2017-10-28T22:22:23
108,682,023
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
from .base import * SECRET_KEY = env('DJANGO_SECRET_KEY', default='dqb3(66pzed_+)t)gqa9h7%2+x5jo)=1jg#!ob!qwshk6xabcq') DEBUG = env.bool('DJANGO_DEBUG', default=True)
[ "ss93@yext.com" ]
ss93@yext.com
dab5a76d3b258bed130a09700e1a1262bf96aa21
25af61eb81f5d03ec881be8857aa3490a4c0cfa8
/tlb_flush/get_tlb_flushes.py
93674782b80dbef7b2ed2b56503bbf45f1bf623e
[]
no_license
denis-plotnikov/code
2a22402d197050a759f74c256df0884cc229cc6a
17c58952a638cc9e808528f80b1f40f493b0b6df
refs/heads/master
2020-04-06T07:09:35.059330
2018-08-13T09:15:48
2018-08-13T09:20:45
59,891,296
0
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
#!/usr/bin/python from subprocess import * import re, time counters = { "nr_tlb_remote_flush":0, "nr_tlb_remote_flush_received":0, "nr_tlb_local_flush_all":0, "nr_tlb_local_flush_one":0, } def get_counters(): p = Popen("cat /proc/vmstat", stdout = PIPE, shell = True) out, _ = p.communicate() for key in counte...
[ "dplotnikov@virtuozzo.com" ]
dplotnikov@virtuozzo.com
223487d09c1e1f4d2f04e6c6301688924842dd39
2b6a02a34ee6bf68820ad185245e2609b296e0aa
/216.py
ddb1b4fc0c865ef4cd4c335fb5586c6825614993
[]
no_license
shants/LeetCodePy
948e505b6fcb0edcb9a1cf63a245b61d448d6e27
2337b5031d4dfe033a471cea8ab4aa5ab66122d0
refs/heads/master
2020-03-28T08:43:04.606044
2019-11-25T05:03:15
2019-11-25T05:03:15
147,984,830
0
1
null
null
null
null
UTF-8
Python
false
false
1,491
py
class Solution(object): def __init__(self): self.d = {} # def is_solution(self, k,n,i, a): # if n == 0 and len(a)==k: # return True # else: # return False # # def process_solution(self, k,n,i,a): # p = a[:] # a = sorted(a, reverse=False) ...
[ "mailtoshants@gmail.com" ]
mailtoshants@gmail.com
b8c915330d5ad4d76a03dec69a8842f375b0d5ec
4aab853d94b590955c24d5c39bc5e3d389ff74b3
/sound/effects/mix.py
6e90da9a0a30812ec4e7054a34f84d28e13663ca
[]
no_license
shaikhanas1993/learningPython
33e83b2cbba1599f947e595d79c05741eb9e4425
6f4a8947b22033028422121d9356ab7394a56cc6
refs/heads/master
2021-09-12T23:17:39.522414
2018-04-22T14:31:44
2018-04-22T14:31:44
125,728,890
0
0
null
null
null
null
UTF-8
Python
false
false
70
py
def echo(): print "i am mx" if __name__ == "__main__": echo()
[ "shaikhanas1993@gmail.com" ]
shaikhanas1993@gmail.com
80b0e7dba7a4bad33ae8a5dd2133fb19936c7954
c128c149a5124687a42bc5c8ab5114e018dd051a
/cofn/apps/authentication/models.py
0547618824608d84eeb390a977e736136ece80a1
[ "MIT" ]
permissive
Cofn/cofn
9e76977e7794840577e7eab42d091442396370e2
6c4bf32c50cb8b4db1b0fe91fa6e8c50aa2d49f7
refs/heads/master
2021-01-15T16:41:34.939244
2017-08-14T15:08:28
2017-08-14T15:08:28
99,716,966
1
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from django.conf import settings import hashlib import urllib import os class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCA...
[ "vinyas.n.s@gmail.com" ]
vinyas.n.s@gmail.com
64a479d9e6ee5f31fe84d13d53432ef96d720493
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Difference/trend_LinearTrend/cycle_30/ar_/test_artificial_32_Difference_LinearTrend_30__0.py
292b04ae191d6b03a01bd8034a851358326c8b29
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
271
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "Difference", sigma = 0.0, exog_count = 0, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
05271a0e7493c3d8686fa77129529a6bf87683d9
f272ac8e50c66e3ca021ad7eb5c152e8a2c3329d
/src/django/bucketlist/migrations/0003_auto__add_tag__add_location__add_field_point_location.py
51fc3f68c46f189a53588304b3bd75ce435cc561
[]
no_license
MappingBird/web-application
dc4303ef11fa5ca1d7bdf09c5214d75c4ba1ad38
82ede12e44df1302f926bbacbbb327926887021d
refs/heads/master
2021-01-20T04:09:07.409842
2015-10-29T08:02:18
2015-10-29T08:02:18
8,653,547
0
0
null
null
null
null
UTF-8
Python
false
false
10,019
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Tag' db.create_table(u'bucketlist_tag', ( (u'id', self.gf('django.db.models.fiel...
[ "ctchen@gmail.com" ]
ctchen@gmail.com
c37e38de3217f77eae559c42b16cab2d62e5513b
a49b13586eee08280629bd028498b00889892439
/VRCpubs/migrations/0001_initial.py
a488e3f2bd353fefb93a614318bd995302e9cd1b
[]
no_license
abhay8463/Django_Website_publications
6918876c94d2174929bc769012f8bade95dc4cea
75848e57fcfd4f4f9457c2ffd9a8713fd5b6adba
refs/heads/master
2022-11-05T18:36:36.758232
2020-06-17T08:35:52
2020-06-17T08:35:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
# Generated by Django 3.0.7 on 2020-06-07 09:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='VRCPubs', fields=[ ('id', models.AutoField(...
[ "jjhaveri1906@gmail.com" ]
jjhaveri1906@gmail.com
0a186d5112add898c2383dc6db6b49b05c7bf7d3
45c2c315373f76a88b85fd65420b2a3455189f64
/basic_data_structures/arrays_linked_lists/reverse_string.py
c5549294671ac83280a35b8c201ad0f6e93feea9
[]
no_license
viks8dm/data-structures-and-algorithms
1760c43c768778292d4c95cbdfc8440c77e16b4a
9026ed82a5a2d73051686c899b816e2a6bc6df84
refs/heads/master
2021-07-15T13:16:48.423700
2020-10-18T22:34:54
2020-10-18T22:34:54
218,690,582
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
""" given a string reverse it """ def reverse_string(my_string): """ Reverse the input string Args: my_string(string): String to be reversed Returns: string: The reversed string """ rev_str = "" n = len(my_string) for i in range(len(my_string)): rev_str += my_string[n-i-1] return ...
[ "noreply@github.com" ]
noreply@github.com
775bc63dfb3bbe5ae5228df679c883c2334ae30f
6a557ff47b122097a2d03fcc1fe71f4226bf692a
/lesson03/task03.py
7754351a0d84a133cae6b766641fffbb905756f3
[]
no_license
epmskorenkyi/python-training
1c90aed280a8b09d8f328d6456976d141510a8fb
dd6d4fc8e1094f61895bcdfc6c6d237edb1b1e3b
refs/heads/master
2016-08-11T07:45:48.654443
2013-03-26T14:07:28
2013-03-26T14:07:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
""" Task03 Module ============= Contains function that takes arbitrary number of positional and named arguments and returns a string in the following format:: pos1_value, pos2_value, pos3_value named1=named1_value, named2=named2_value and uses only str.join and str.format methods """ def params_list(*args,...
[ "Mykola_Skorenkyi@epam.com" ]
Mykola_Skorenkyi@epam.com
8d572e80faa9d973f6cd675c984b8eff84d2547f
9980a6490d551a3a4ccce7e8274e583f44e1e096
/Main.py
f49dab419a7267be8ca4ced404de2e3e29a6ce63
[]
no_license
inconnito3000/Python_Tutorial
eb5e8fd20f413bd8d7de56ebfe9cd007aaed4c7f
4d0ea041a4bafcb6726d9a9328cb49c840e0abc5
refs/heads/master
2020-04-02T10:22:53.123872
2018-10-23T14:06:31
2018-10-23T14:06:31
154,336,931
1
0
null
null
null
null
UTF-8
Python
false
false
467
py
import Attacker #davin = Attacker.Plus() #print(davin.a) #c = davin.sum(3, 4) #print("c", c) #x = int(input("How old are you ? : ")) #print("Your age is : " + str(x)) #DW = Attacker.Input() #DW.name("Davin") x = raw_input("Enter your name: ") y = Attacker.Input() y.print_name(x) w = int(raw_input("How old are yo...
[ "ggory15@naver.com" ]
ggory15@naver.com
78b863cb302eda588831ca7ec03b1f20128b6463
a9f58dd7d4933ce729fcf90cf8cea88890c28565
/sudoku.py
bfedc58b2033a69e6528a4bf1cae85fd6427f148
[]
no_license
urenastephane/sudoku.py
9123d6457767a1a83cc2b2cd6e86b66d507d219a
99b4be46b387a4c7fc9f28c73df561f350bef583
refs/heads/master
2020-07-07T17:23:52.906822
2019-08-20T17:12:55
2019-08-20T17:12:55
203,420,306
0
0
null
null
null
null
UTF-8
Python
false
false
6,073
py
import sys #creating a tab to contain the game from command lines tab=[] #function that detects if an element of the game is an unknown value (ie a dot ".") or a fixed figure #in reality this function only detects numbers.... import re def hasNumbers(inputString): return bool(re.search(r'\d', inputString)) #... but...
[ "noreply@github.com" ]
noreply@github.com
8b0d661b0b50eb27ebc72eb21cfc53f9094c5f21
54cbb1756e922d6425596390d729cb89650479c8
/validate_lint/tests/test_linter.py
61a59774dbb0415eb4aac9ba8e4c1fa26b30df9d
[ "MIT" ]
permissive
AidanWoolley/GroupProjectTango
da3e957b59196377fb0860cc8926787bd00b19db
ab9c89a2981645a19f8ecfc9abe6fe7e57fc6ed4
refs/heads/master
2022-04-06T11:17:26.382861
2020-03-02T00:09:12
2020-03-02T00:09:12
235,784,063
0
0
null
null
null
null
UTF-8
Python
false
false
5,444
py
"""Unit tests for Linter.py.""" import os from contextlib import contextmanager import yaml from pytest import raises as assert_raises from ..tango.linter import Linter PATH_TO_TEST_RES = os.path.join(os.path.dirname(__file__), "linter_test_res") def _test_file(file): """ Generate an absolute path to a t...
[ "noreply@github.com" ]
noreply@github.com
27e18b5886753d4c9b26fda50058051ed83e4a1b
f78d3fb57e3e4c61ab05447c7377bb7ea3cf7a03
/cleverhans_v3.1.0/cleverhans_tutorials/mnist_tutorial_picklable.py
48fc1eab6d46df12d5340783933a8192aeb9c5fa
[ "MIT" ]
permissive
NikunjNakum/cleverhans
0a30d684f4ea170474bf688bcffb136f65127634
1b5ab25bc0298b1c9b40470954d001acd9f8ff4d
refs/heads/master
2023-04-12T13:04:24.800804
2021-05-05T00:17:19
2021-05-05T00:17:19
361,603,755
0
0
MIT
2021-05-03T23:36:39
2021-04-26T03:19:51
Jupyter Notebook
UTF-8
Python
false
false
10,006
py
""" This tutorial shows how to use cleverhans.picklable_model to create models that can be saved for evaluation later. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import numpy as np import tensor...
[ "jonas@cs.toronto.edu" ]
jonas@cs.toronto.edu
fd8ba159c5468455865fc833112aeb035392e82b
a5e28d513cc29ca39d4b31d44585def1ee6d0ae9
/tests/conftest.py
4977ec1f1af76acf593f7155d01c3553166725d7
[ "Apache-2.0" ]
permissive
blakev/ulid
1e9c79d0acc3a82bcbf3c01601127e50d7ab15ce
089c76595c15fd614a1ee0b989353079052abce5
refs/heads/master
2021-04-15T12:07:36.881868
2017-06-16T05:12:10
2017-06-16T05:12:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,928
py
""" conftest ~~~~~~~~ High level fixtures used across multiple test modules. """ import calendar import datetime import os import pytest import random from ulid import base32 @pytest.fixture(scope='function') def ulid_bytes_year_1990(valid_bytes_80): """ Fixture that yields a :class:`~bytes` ins...
[ "andrew.r.hawker@gmail.com" ]
andrew.r.hawker@gmail.com
9315295f78fc89d213aac185fe197f27431f9c18
bd75f3dd242304d11957637572a758e947e99a61
/Monochrome/JPEGConverter.py
c8100d3174e3cf71f5bd759ecba663712c619da0
[]
no_license
brianyenna/JPEGtoASCII
b60cbc59f5531ed575bc37770761a82fff574552
725bd6f0a6230d5a75abf15cfc5226b10a46797a
refs/heads/master
2020-03-29T06:34:15.346302
2018-09-20T15:54:34
2018-09-20T15:54:34
149,630,764
1
0
null
null
null
null
UTF-8
Python
false
false
10,500
py
from PIL import Image, ImageFont, ImageDraw import numpy as np import string import os import json from utils import safe_mkdir, get_all_files from yattag import Doc class Buckets(object): def __init__(self, num_buckets, symbols=None, reverse=False): ''' Purpose: Creates the buckets and sorts the ...
[ "brianyen.na@gmail.com" ]
brianyen.na@gmail.com
dd71d5de6f9c6daeddd2ad3c520b87b3f51e7225
6e39fa5c4a08ee2f1798bed3b120ed78ccf7aca5
/worldofsfx/events/views.py
091fc63e08ecaaf9bfc5fbbbaf9a5e5d5b5df744
[]
no_license
hvdklauw/worldofsfx
7686c76aa977011f8d7f0fec332ad278bb0bfd00
2692fe4743cd933e8fa61187ced2d64a60f458c4
refs/heads/master
2020-12-25T11:20:48.413948
2014-05-25T21:15:31
2014-05-25T21:15:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
#!/usr/bin/python # -*- coding: utf-8 -*- from flask import Blueprint, render_template #: Specify each model defined in your models.py for each app here. This will #: allow SQA to pick them up when the application is initialized from worldofsfx.events.models import * events = Blueprint('events', __name__, url_prefix=...
[ "shotcage@gmail.com" ]
shotcage@gmail.com
ebc3dcd37e323817823673c28a9a13d8be293c95
f8ea3582884df87172cb747e424ebd0c20223614
/tests/oldtests/testrastdist.py
7ed004fabdd17a007282c998395e528001d9933a
[ "MIT" ]
permissive
karimbahgat/PythonGis
94f52f800a769ee54b12c7277604ead011465321
fb99148a15bcbe0438ddca67b484a15076bd961a
refs/heads/master
2023-04-12T15:59:08.522464
2022-09-09T22:48:32
2022-09-09T22:48:32
47,153,255
5
1
null
null
null
null
UTF-8
Python
false
false
678
py
import pythongis as pg from time import time # test distance vect = pg.VectorData(r"C:\Users\kimo\Downloads\cshapes_0.6\cshapes.shp", )#select=lambda f: f["GWCODE"]==666) hist = vect.histogram("GWCODE") #hist.view() t = time() distrast = pg.raster.analyzer.distance(vect, bbox=[-180,90,180,-90], ...
[ "Karim.bahgat.norway@gmail.com" ]
Karim.bahgat.norway@gmail.com
e8e9334f59bc977f6773d65038384b0f6aa6da31
6319472a1618249fb5375f6505ae54b69077ed0c
/final_code.py
289d6c663b595270d822f07c1481d07d3df71c59
[]
no_license
JuliCou/CnamChallenge1ML
22d71e4c98f59c74cc96a5b98e625c74ec1c37ea
f486bf41293b3c8df98f2365ca3c6a4345db25b8
refs/heads/master
2022-04-06T19:06:20.178027
2020-01-14T09:36:49
2020-01-14T09:36:49
227,083,031
0
0
null
null
null
null
UTF-8
Python
false
false
8,308
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Oct 27 09:48:53 2019 @author: courgibet """ import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder, MinMaxScaler from sklearn.model_selection import StratifiedKFold, RandomizedSearchCV from sklearn.ensemble import RandomF...
[ "julie.courgibet@cgi.com" ]
julie.courgibet@cgi.com
2088ba088a40dd5c30752deeaf430466aeb22ab3
1b9966ae15bee555ac0838d27cbdd0405c3e8bf0
/sources/rnt/mediane/distances/ScoringScheme.py
65a160b845eff6dee13344407286371dcb18dce5
[ "Apache-2.0" ]
permissive
databill86/rank-aggregation-with-ties
f3ef509401f07b05a4e34689245bb71c9c5efe50
63b30d7c1eece837ef23ffc9414c3538052d9b9c
refs/heads/master
2020-04-02T17:04:41.213764
2018-10-05T07:51:09
2018-10-05T07:51:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
from numpy import array class ScoringScheme: def __init__(self, matrix=array([[0., 1., 1., 0., 1., 1.], [1., 1., 0., 1., 1., 0.]])): self._matrix = matrix @property def matrix(self): return self._matrix def __str__(self): return str(self._matrix)
[ "pi.andrieu.04@gmail.com" ]
pi.andrieu.04@gmail.com
de24eaba322e6a962d837210d3e877e509eef89f
7aab309dee577d4df80f69b47dc4ec48d2ed451a
/python_lessons_basics/lesson_functions.py
c5ac0c5b0cb102b9db5b95c0f700a7a48480d5ea
[]
no_license
omitiev/python_lessons
64f657e32d4414e75c6510ec111240018ed6b7d5
97561e56814c514756e207c2b323ca8e1366994e
refs/heads/master
2021-10-09T06:32:30.154748
2018-12-22T12:02:28
2018-12-22T12:02:28
97,019,527
0
0
null
null
null
null
UTF-8
Python
false
false
2,642
py
import math #----------------------------------------------- def pow(a, b): print("I'm inside pow function!") return a**b result = pow(2, 3) print(result) #----------------------------------------------- def rectangle_square (h, w): result = h*w return result result2 = rectangle_square(10, 20) print...
[ "oleksii.mitiev@gmail.com" ]
oleksii.mitiev@gmail.com
a9b11cd7b449221e4d100f98f9ec4ec31ffbe8f0
f91618ebd3bdb2514b6f47895ce73c9553bbc502
/what.py
b273341c7569da7628ea08159c3473400cdfb21c
[]
no_license
yusefmarra/Tank_Game
aebed2146a1b8a01e8bea424e97e78d3a0a8374c
0d84eab5185d27acb7f0b06d5df6e4b3e7938748
refs/heads/master
2016-09-06T18:39:43.791317
2015-07-27T23:02:05
2015-07-27T23:02:05
38,717,209
6
0
null
null
null
null
UTF-8
Python
false
false
384
py
import os, sys import pygame from pygame.locals import * from load_images import * from screentest import * pygame.init() screen = Screen() running = 1 while running: #clock.tick(60) for event in pygame.event.get(): if event.type == KEYDOWN: if event.key == K_ESCAPE: runn...
[ "yusef.marra@gmail.com" ]
yusef.marra@gmail.com
a414ae6cc75cc2bab26ee9b925f10d8309d71118
59cc4c5983dd486b93e409da3df9e20cd8dbd04e
/metaprog/composition.py
db929ad1fa422c0eb02708e1d27df290842f8ba0
[]
no_license
titu1994/Python-Work
a95866bf47a3aba274376ec72b994e2e4fbda634
bc7f201ed01e2f7c49ae8d143d29e87e94420dc9
refs/heads/master
2023-04-27T02:33:30.731988
2023-04-22T19:13:03
2023-04-22T19:13:03
53,428,058
13
10
null
null
null
null
UTF-8
Python
false
false
1,024
py
def custom_dir(c, add): return dir(type(c)) + list(c.__dict__.keys()) + add class BaseComposite: "Base class for attr accesses in `self._extra_params` passed down to `self.components`" @property def _extra_params(self): if not hasattr(self, 'components'): self.components = [] ...
[ "titu1994@gmail.com" ]
titu1994@gmail.com
e0789596652d3e81741735c7b16f2d870593395d
bdc32a05d364c81df31a5053909edcdd52042055
/bookstore/core/apps.py
b9c95a6c40437515d45ef1644b0b9cb68bc2d99c
[]
no_license
dembinski2019/bookstore
5c9c0725f1f4b637deb971f92a5b327a36bf44ba
3a5cdeed61d88e31b88d09b2a52d7551924ca4cf
refs/heads/master
2023-03-23T03:52:29.305827
2021-03-15T02:48:50
2021-03-15T02:48:50
347,816,192
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from django.apps import AppConfig class CoreConfig(AppConfig): name = 'bookstore.core' def ready(self): from bookstore.core.signals import signal_created_lended
[ "everton_s.d@hotmail.com" ]
everton_s.d@hotmail.com
96e385dfbde39eeb86e67b353f9eac684072eb9b
afc6e33c7cdbbe2526c4d84c3c9b3c07e1061252
/newlda.py
68c3de07947993c64d8c8d2bfe86226fab14f7a6
[]
no_license
BalaSatish/Sentiment-Analysis-on-Real-time-News
0a3707f9cbb6f58a48a2f0dcb324aae2a7cd216b
7f8c22a57223e677d0883c26f7812869c2d64e12
refs/heads/master
2020-06-07T07:07:28.021647
2019-06-20T17:05:55
2019-06-20T17:05:55
192,957,892
1
1
null
null
null
null
UTF-8
Python
false
false
8,349
py
from nltk.tokenize import RegexpTokenizer from stop_words import get_stop_words from nltk.stem.porter import PorterStemmer from gensim import corpora, models import gensim def lda(paralist): tokenizer = RegexpTokenizer(r'\w+') # create English stop words list en_stop = get_stop_words('en') # Create p_...
[ "noreply@github.com" ]
noreply@github.com
e9aac60d8d793b04b8cce53945eca54786292b2b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_328/ch25_2020_03_09_20_08_11_452435.py
e45f3d0a86b1198f3a6d0682673b1b7ed61d8b3e
[]
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
330
py
from math import sin, radians jacas = float(input("qual a velocidade de lançamento de sua jaca: ")) jacas2 = float(input("qual o ângulo de lançamento da sua jaca: ")) d = (jacas**2*sin*(radians(2*jacas2))/9.8 if d < 98: print("Muito perto") elif d >= 98 and d <= 102: print("Acertou!") else: print("Muito lon...
[ "you@example.com" ]
you@example.com
6e987a0d2db52bbec373bcf7c776de81d01202d5
d5d3a43c33eba7773068bc1ff17e29c908dab248
/DataLoader.py
861db0847f0a311663e65ff5cda4463e0e2a08d9
[]
no_license
amobiny/NTM_tensorflow
79f8ddd7ba3ee91325dc3035a6a8087e92741fe5
4232e4390ad1e5e95189cbb69e7a609b63f3e6b0
refs/heads/master
2020-03-19T21:49:00.024711
2018-06-11T21:24:13
2018-06-11T21:24:13
136,950,943
1
0
null
null
null
null
UTF-8
Python
false
false
4,259
py
import scipy from random import randint import numpy as np import os from PIL import Image from PIL import ImageOps from scipy.ndimage import rotate, shift from utils import one_hot_encode, baseN class OmniglotDataLoader: def __init__(self, args): self.data = [] self.image_size = (args.image_width...
[ "amobiny@uh.edu" ]
amobiny@uh.edu
ffafc2657e6dc9c5d5cfc6047acfe9dbd8b04796
067c6e2806bea84db21200755f377209acd89a42
/data/weishi.py
7bb02f26029036606854538a70c01301246be310
[ "MIT" ]
permissive
XUHUAKing/ssd.pruning.pytorch
a8faf66b0aa0a5655d3ac518f33a59ac0d19f057
39592ee00e02f28742028a97592beec18d07258c
refs/heads/master
2020-03-19T10:54:24.619999
2018-08-17T16:14:09
2018-08-17T16:14:09
136,411,324
14
6
null
null
null
null
UTF-8
Python
false
false
11,454
py
"""WEISHI Dataset Classes Updated by: xuhuahuang as intern in YouTu 07/2018 """ from .config import HOME import pickle import os import os.path as osp import sys import torch import torch.utils.data as data import cv2 cv2.setNumThreads(0) # pytorch issue 1355: possible deadlock in DataLoader # OpenCL may be enabled by...
[ "xhuangat@connect.ust.hk" ]
xhuangat@connect.ust.hk
6c916e0f7c613c2cfacfba067f14de472e719f4d
3ce69b28f1f65aac5a86f89548dd2d1b672846bf
/Python processing/util/image_augmentation_with_augmentor.py
fe37483288c51c03eb7106ed94628d5e00f67f04
[]
no_license
XuzhouLee/OCT_Retinal_Segmentation_And_Processing
c4df087828356c7643834decaf83e8d2b5fac3cd
fc3168f2fb56d387d3f52128a37c9f71c6ac0b8e
refs/heads/master
2022-11-30T21:12:16.171740
2020-08-12T19:57:12
2020-08-12T19:57:12
281,703,133
3
0
null
null
null
null
UTF-8
Python
false
false
919
py
# -*- coding: utf-8 -*- """ Created on Sat Aug 1 20:05:58 2020 @author: thuli """ import numpy as np import skimage.io as io import os from keras.preprocessing.image import ImageDataGenerator import skimage.transform as trans import sys sys.path.append(r'C:\Users\thuli\OneDrive - Umich\Desktop\OCT retinal segmenation...
[ "44683163+XuzhouLee@users.noreply.github.com" ]
44683163+XuzhouLee@users.noreply.github.com
79e915ca85b0b8558c57bcf95dd63707aee00ee1
e876610bbe649587d0b9fb8a2fe103c7556bcde0
/source/conf.py
bd62544fbc2365674d98a0e5af58406ea9f79e05
[]
no_license
simplesolutionsfs/alcateldocs
f02d84e40e504fc45ac4a1d780380adf8fd38ad9
15fedfa603d1294a77582d6d6a8811f4be4aca96
refs/heads/master
2020-04-15T07:22:37.797896
2019-01-07T21:42:23
2019-01-07T21:42:23
164,492,843
0
0
null
null
null
null
UTF-8
Python
false
false
5,363
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ "hachuelsimon@gmail.com" ]
hachuelsimon@gmail.com
0a4ce33e6ab878081008aa7f349dfe389c2a5a49
199319e04fd259a420af2a9d804fa5f12c507f4c
/tests/test_user.py
fd51d913c5fd16ca49ee2bc381222db66e09a65a
[ "MIT" ]
permissive
Krukov/amocrm_api
b1c75ef298c0c8d7ce102e05834d18da81780e6a
662b6a132127da4fdc2bdf62d38b10f6db161836
refs/heads/master
2023-08-19T05:35:49.001823
2023-07-31T18:51:30
2023-07-31T18:51:30
21,548,431
96
69
MIT
2023-07-25T19:29:16
2014-07-06T20:54:37
Python
UTF-8
Python
false
false
512
py
import pytest from amocrm.v2 import exceptions from amocrm.v2.entity.user import User from .data.users import DETAIL_INFO def test_get(response_mock): response_mock.add("GET", "https://test.amocrm.ru/api/v4/users/3", match_querystring=False, json=DETAIL_INFO) user = User.objects.get(3) assert user.id =...
[ "dmitry.kryukov@exness.com" ]
dmitry.kryukov@exness.com
1337178688bd5220acc5931716815caab9d5eede
f56c39dfb9bb4c9b3d2b16b835c26438a9b03e1c
/task5/courses/permissions.py
4d12859f55ca286947d151a192a2cbff8693ef8b
[]
no_license
INVICTA1/LeverX
4cb1a83e97a8139d2a356708300f8bb1dd68b6ad
949161970d842e35b364c590b6d8e22bd8f0a1b6
refs/heads/master
2023-05-12T19:59:29.302361
2021-06-04T05:48:13
2021-06-04T05:48:13
365,831,773
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
from rest_framework import permissions class IsTeacherOrReadOnly(permissions.BasePermission): def has_permission(self, request, view): return bool(request.method in permissions.SAFE_METHODS or request.user.pk and request.user.profile == 'teacher') class IsStudentOrReadOnly(permission...
[ "makc.pinsk@gmail.com" ]
makc.pinsk@gmail.com
208657d9d5c24118e1aa05169185d8d265dc0a02
542e2f65261e1878d6cb9f9353e3f7a7fe266dcf
/Week 6/geoJSON_api.py
261aeb5c9fad032aee3f7e445256a951291a0126
[]
no_license
pranay0124/Python_For_Everybody-Coursera
51fa08315d55b345fa0a178a04cc21432f1b9051
18f8637b846446e44c0ce6f1d189b786a8b3326f
refs/heads/master
2021-05-18T03:49:59.502155
2020-03-29T17:46:20
2020-03-29T17:46:20
251,091,401
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
import urllib.request, urllib.parse, urllib.error import json serviceurl = 'http://py4e-data.dr-chuck.net/json?' address = input('Enter university: ') url = serviceurl + urllib.parse.urlencode({'key':'42', 'address': address}) data = urllib.request.urlopen(url).read().decode() info = json.loads(data) info = info['res...
[ "pranay0124@msitprogram.net" ]
pranay0124@msitprogram.net