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
78bdca14128518d133ddf2e80c557c7d2e26fd7f
933493356546a769dda5c67f0a89eed9c970afa8
/ch6/q57.py
e42bbe6997419cc37dcd0703bfc6f51610b9fcca
[]
no_license
irtfrm/NLP100
233aa3b76d14dd89fe1d8f6d2e204ca3566bd5f5
ee0acedf7d2b00fe23f457120313d621fd1f098f
refs/heads/master
2021-08-06T09:47:38.238306
2020-06-05T08:18:08
2020-06-05T08:18:08
184,555,295
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
import xml.etree.ElementTree as ET def gets_dot(tokens, deps): ans = 'digraph {\n' ans += ' token%s [label="%s"];\n' % (0, 'ROOT') for token in tokens: ans += ' token%s [shape=box, label="%s"];\n' % (token['id'], token['word']) for dep in deps: ans += ' token%s -> token%s;\n' % (dep['governor...
[ "furukawa.tomoya@g.mbox.nagoya-u.ac.jp" ]
furukawa.tomoya@g.mbox.nagoya-u.ac.jp
e9eef0ae487bb90ae983c14902b33bc6d26c7a4f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/429/usersdata/313/105928/submittedfiles/jogoDaVelha.py
6702e638a0b195b5ad2f3fe0c84a675088f19cc5
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
print (" BEM-VINDO AO JOGO DA VELHA ") print("O primeiro jogador será o (X) e o segundo o (O) ") posicao = """ posicoes do jogo 1 | 2 | 3 ----------- 4 | 5 | 6 ----------- 7 | 8 | 9 """ print (posicao) posic...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e36bbc0c4240de429927358094f5d3cd4c54a838
f7e4ba62191d39b050eab6cbf196c9000751a779
/examples/function_param.py
b285fc9ff46f8f155c969867b438a10ade9d1976
[]
no_license
heimo-tiihonen/hello-world
04bdc59f7806b9c851adf43dfa6312ed219bac79
b1d513242a0511f1866874cec9b410484b186038
refs/heads/master
2021-01-09T06:16:34.729181
2017-02-04T19:41:57
2017-02-04T19:41:57
80,949,066
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
def print_max(a, b): if a > b: print(a, 'is maximum') elif a == b: print(a, 'is equal to', b) else: print(b, 'is maximum') # directly pass literal values print_max(3, 4) x = 5 y = 7 z = 'Testi' # pass variables as arguments print_max(z, y)
[ "heimo@dsl-espbrasgw1-50dfb2-69.dhcp.inet.fi" ]
heimo@dsl-espbrasgw1-50dfb2-69.dhcp.inet.fi
67f1386cbcd7aa7765debd357ae2e31c5ecdad81
8ab2c341b570e26c8a06e7c5e9e95e3e2a108aba
/build/tasks/catkin_generated/pkg.installspace.context.pc.py
1a3ac85d66d27b61334ac967aed258bf919d3a93
[]
no_license
Aquavaders/Vader3-Control
c6429d58d208f303d5ed309c488d06f140ab08b5
8523e7ddda78b747106586bacfac14e99201741b
refs/heads/master
2020-07-29T04:01:25.852450
2020-02-27T20:04:36
2020-02-27T20:04:36
209,660,745
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "tasks" PROJECT_SPACE_DIR = "/home/ala...
[ "AlaaAnani" ]
AlaaAnani
4345a2c669d02154dade74de723eb3affdd3c2a8
07252bc9ce0ba693e8c3cd0ad969ab7e9f336083
/apps/posts/forms.py
d2e808cc4daa9f7550ad748f64978972f26c3e4b
[]
no_license
Bakal1990/project
9f038ae2f821e737ae3cd39e3c4d1efcf8db90e1
3673c621383f8366572b083be203f49074eba55e
refs/heads/master
2020-12-25T19:26:10.888707
2015-02-16T19:31:09
2015-02-16T19:31:09
30,318,392
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
from django import forms from .models import Post from profiles.models import User class LikePostForm(forms.Form): post_id = forms.CharField() user_id = forms.CharField() def clean_post_id(self): post_id = self.cleaned_data.get('post_id') return Post.objects.filter(id=post_id).exists() ...
[ "molotovxiii@gmail.com" ]
molotovxiii@gmail.com
4b8450ca316cbf700f09c76a6c374e71ef1ce7c9
62b78ad6d3ec041ad20e4328d1730d815c9e35f1
/Twosteps.py
8c659c092569737b987696cb0d9e96f753e7dd19
[]
no_license
Jamshid93/ForLoops2
7fe5b3240370d88a888f2d4609fb6d7787965a4d
296de0ccc51872001e45e20926b91a4528abd7a5
refs/heads/master
2022-01-26T05:22:18.206075
2019-07-20T04:12:37
2019-07-20T04:12:37
197,874,396
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
for item in range(3, 14, 2): # this is code result 3,5,...13. Because after 14 writin 2 print(item)
[ "hamzayevjf@gmail.com" ]
hamzayevjf@gmail.com
b91cd725562befb469c66d4ce9802baecaa2cf54
e999577db526bdc87ab83d30d393e06f921c2326
/multiagent/multiAgents.py
2dab318ae711f77bae0c426c49a25673c4ad1a2c
[]
no_license
anant-k-singh/Pacman-AI
e4a630de420ad942fef8b0c5ab0d6799859c0737
503730f7baa5fac690cedcd6f65cc592bb7758c3
refs/heads/master
2022-01-22T18:23:32.347366
2019-07-31T17:24:26
2019-07-31T17:24:26
115,016,037
2
0
null
null
null
null
UTF-8
Python
false
false
14,272
py
# multiAgents.py # -------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.e...
[ "anant02sep@gmail.com" ]
anant02sep@gmail.com
1cdb9ccb8eb20c40eb3ca82b06c082532bc3b005
db2e1604cdd45df402b93cd72b36e1995f0ded57
/baidu_baike/baidu_baike/middlewares.py
69c61f1ce3dc83c9f549186ad6a2fc5baa47e026
[]
no_license
JimyFengqi/baidubaike
9bd558bea58d728ef1d256aa9746978b058a138f
6bf6114494db485107f8869ed79ec70200ed26c2
refs/heads/master
2020-04-07T10:46:12.906874
2018-04-26T07:52:49
2018-04-26T07:52:49
124,205,144
2
0
null
null
null
null
UTF-8
Python
false
false
3,605
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class BaiduBaikeSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scra...
[ "jmps515@163.com" ]
jmps515@163.com
4b9670f8ab0b81af5668d3c702c93f533e2797c4
48581671e6fe9f59633aa9527c07d2724783a45c
/backend/Sunshine/api/urls.py
13f6022e5be3c9148cab22057ca78eec281224c2
[]
no_license
suma2001/SeniorSunshine
14fdcf22877c30d3f81d0f159c3b91df91e5bc44
54274d3b2f1a87fcb8926313a32bc4234fe48572
refs/heads/master
2023-02-03T03:24:26.871423
2020-12-11T14:08:02
2020-12-11T14:08:02
320,590,319
0
0
null
null
null
null
UTF-8
Python
false
false
1,661
py
from django.urls import path from .views import * from rest_framework.urlpatterns import format_suffix_patterns from rest_framework.authtoken import views from knox import views as knox_views urlpatterns = [ path('register/', RegisterAPI.as_view(), name='register'), path('login/', LoginAPI.as_view(), name='log...
[ "sumashreya.t18@iiits.in" ]
sumashreya.t18@iiits.in
d23876d3a93f905357e7be2a1449341ef64f86a7
f4718efa9d34fabad15f1b4ef856c4639eb6e718
/Test.py
0f3fceb541fd26b23c09661bee50a64c921d957e
[]
no_license
wilee1224/Data_wrangling
98faa7428da2ec28dba5ad524d811bfadaf2db2b
ba4d88a987a38a4c1850f2954073d423300f1652
refs/heads/master
2020-03-12T04:14:49.194795
2018-08-06T12:24:57
2018-08-06T12:24:57
130,441,245
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
import xlrd book = xlrd.open_workbook("SOWC 2014 Stat Tables_Table 9.xlsx") for sheet in book.sheets(): print sheet.name
[ "wilee1224@gmail.com" ]
wilee1224@gmail.com
43ded90cced3f1255adfe6cd098a2966f73fb180
42705b3049418c3dc2815a0262aa814c6a2e3d9e
/feat_eng/funcs.py
dcc248c03ab3520bd17e5e378f3b4fea24b3f0f4
[]
no_license
ppiont/cnn-soc-wagga
617f4a0fecd6ac0b7d6fac2cb7171df9bfbf74a2
5152faf59c38c4b168a1dc9639fa8d13c16a91cd
refs/heads/master
2023-07-11T09:01:08.786970
2021-08-14T12:17:09
2021-08-14T12:17:09
257,276,955
0
0
null
null
null
null
UTF-8
Python
false
false
2,506
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 30 18:32:01 2020. @author: peter """ import numpy as np def min_max(array, axis=(0, 1, 2), rm_no_variance=True): """Min-max scale an array and optionally remove features with no variance. Parameters ---------- array : ndarray ...
[ "piontek0@gmail.com" ]
piontek0@gmail.com
2ca4b0788bfc54be10e712eabe0884ac23c7bf0a
ba9d6e33133709eb8ef9c643e50646596f8ab98b
/homeworks/hole_detection.py
79f5583093614b7b290b86aac89e248e3a1b6e74
[]
no_license
otniel/computer-vision
2eb5588d7662ada0999001083e5562e3c3e69fd1
82430fd60c21d3f6c6609b429b051b25526b0102
refs/heads/master
2021-01-25T07:07:51.592712
2015-05-18T17:29:10
2015-05-18T17:29:10
29,542,857
1
0
null
null
null
null
UTF-8
Python
false
false
2,639
py
import Image import numpy as np import matplotlib.pyplot as plt from scipy.signal import argrelextrema from utils.tools import normalize_rgb_image, normalize_grayscale_image from utils.detect_peaks import detect_peaks class HoleDetection: def __init__(self, image): self.image = normalize_rgb_image(image)...
[ "otnieel.aguilar@gmail.com" ]
otnieel.aguilar@gmail.com
c6d6c965204756070013e9e873147cede25d1b53
70fd9545d8f273db2126ac8bb0715c90838fe98b
/polls/serializers.py
42ab6011a5fffa46a4744713a8cd70ab5d82ac49
[]
no_license
Gohstreck/Backend
6fd99e0c304054d6b60e44111b56b3453c78109b
6052e6ffecf3c297d1256f51a695d55b89b3b883
refs/heads/master
2020-04-04T12:52:39.966936
2018-11-12T04:13:20
2018-11-12T04:13:20
155,940,576
0
0
null
2018-11-03T01:58:44
2018-11-03T01:58:44
null
UTF-8
Python
false
false
2,459
py
from rest_framework import serializers from . import models class PersonSerializer(serializers.HyperlinkedModelSerializer): groups = serializers.HyperlinkedRelatedField( many = True, read_only = True, view_name = 'group-detail' ) articles = serializers.HyperlinkedRelatedField( many = True, ...
[ "equiroz@ciencias.unam.mx" ]
equiroz@ciencias.unam.mx
8f4026d972f244c0391ff8f24625e881b3fc284a
1bf7f5fdfc5e7dbbc5ba14698ff488aa76b34d58
/virtual/bin/gunicorn_paster
3977588403c354347f27e635608040cf5dca8a00
[ "MIT" ]
permissive
Brian23-eng/News-Highlight
ca86fab23ebfc429b31624c36ac7c3520d46966d
19c8816cbcf2980a381d01788ba604cc85c8ebaa
refs/heads/master
2021-06-25T02:05:01.848783
2019-10-17T08:09:19
2019-10-17T08:09:19
214,452,153
0
0
MIT
2021-03-20T01:54:54
2019-10-11T14:06:20
Python
UTF-8
Python
false
false
282
#!/home/brian/Documents/Core/Python/Flask/News-Highlight/virtual/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.pasterapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "b.odhiambo.bo@gmail.com" ]
b.odhiambo.bo@gmail.com
301248baf3e0ec9b7f224e9ddc8096a28fe52d4c
6ce6e78391e957fabf47a2242cb0a337f419a1fe
/Chapter 3/zeroDivide.py
10b8be0c2898b90b67324319d6c1ae6348ab2c36
[]
no_license
bj-mckay/atbswp
3e6d84fc58cff640acc6d6236b65f19eb378d63c
be46902f6f2ae36b85fde91964bdc99187c4186a
refs/heads/master
2020-12-29T23:29:07.200194
2020-09-02T20:22:14
2020-09-02T20:22:14
238,776,217
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
def spam(divideBy): try: return 42 / divideBy except ZeroDivisionError: print('Error: Invalid argument') print(spam(2)) print(spam(12)) print(spam(0)) print(spam(1))
[ "brad.goetsch@gmail.com" ]
brad.goetsch@gmail.com
fdf8d0c74a52e8f39d8f597575a9abaa39184b7d
31996e49289655f60b71ed176cc94e32648ffe40
/criterion.py
3354fd91fc4305af5fdb94aa158db4645a80560f
[]
no_license
Will3577/MultitaskOCTA
064fe7d437fe4a234653f4e5ba50faccc6f4bfb6
b6719e10318421bc841daf66468c52066bec0f7a
refs/heads/master
2023-06-24T06:59:05.763417
2021-07-13T09:05:55
2021-07-13T09:05:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,651
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 14 10:40:54 2019 @author: wujon """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import surface_distance # import nibabel as ni import scipy.io impo...
[ "11712616@mail.sustech.edu.cn" ]
11712616@mail.sustech.edu.cn
5e1e5a1b37d9ffaf4acf035129a76aebec8edb4b
242453b215468acdd2c13109757a3076aa7d04aa
/lessons/lesson11-prallel-tasks/Thread-web-examples.py
54a5d5626bf4d1f16a0e940738d74651ece09e56
[]
no_license
maksrom/data-science-less
de5644ce3fd27b99271c4c9b190243c945327ec3
8eb494cc907a48218bdcbcc0b9e63403b85e3941
refs/heads/master
2020-03-21T08:06:39.474963
2018-06-22T16:02:16
2018-06-22T16:02:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
import urllib.request import threading import queue q = queue.Queue() def request(): while True: url = q.get() if url is None: break r = urllib.request.urlopen(url) print(len(r.read())) q.task_done() for i in range(5): t = threading.Thread(target=request)...
[ "Maxim.Romaniv@netent.com" ]
Maxim.Romaniv@netent.com
3a79af3088336b15e677b0d3a821806575a98c86
2a466b71eb9f24c58ca6ba52a379870485d19140
/src/cert_scanner/report/progress_graph_generator.py
ff14fd2a750106e8b5427dfc8ef64f1e2832767a
[ "MIT" ]
permissive
kgarwood/digital_certificate_scanner
5df0fb47193f838353a0cadb696d49b8acbf8351
ede1344144fa62349c0076d5618eccfc4131f98f
refs/heads/master
2020-03-30T07:42:53.860968
2018-10-02T16:12:47
2018-10-02T16:12:47
150,961,231
0
0
null
null
null
null
UTF-8
Python
false
false
11,102
py
import cert_scanner.util.file_name_utility as file_name_utility import cert_scanner.util.certificate_scanner_utility as \ certificate_scanner_utility import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator from matplotlib.ticker import MultipleLocator import os def generate(original_df, ...
[ "kevin.garwood@digital.cabinet-office.gov.uk" ]
kevin.garwood@digital.cabinet-office.gov.uk
9090a6049a51ef8672151f75d28c7f01c75a1436
fc3deae46d7104924d9b982638f38eb42eadbb9f
/yrnetwork/setting.py
0fd31990a155271ff3f6b9b4c0a28ee4958148c9
[]
no_license
THRILLERLEMON/YR_Greening_Network
6fc578d4a94bf240b954181d9ea8d1cf18fb172d
8745679d58c3e459d88524e0afae18e072b18e0a
refs/heads/main
2023-03-19T00:08:28.187235
2021-03-05T13:21:53
2021-03-05T13:21:53
303,892,090
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
class BaseConfig(object): RESULT_PATH = '' LUC_NET_DATA_PATH = 'D://OneDrive//JustDo//The_Greening_of_YR_from_the_Perspective_of_Network//Data//LUCNetData//' LUC_NET_DATA_HEAD = 'InfoForLUCNet' LUC_NET_DATA_TAIL = '.csv' GEO_AGENT_PATH = 'E://MY PROGRAM//YR_Greening_Network//data//GeoAgent//ForCarto...
[ "thrillerlemon@outlook.com" ]
thrillerlemon@outlook.com
2917ef2371964c06a2bedd3acf1b8cd301c7a4b7
216fe95ca1d92c6071155cf59c36789edcb27123
/languageBot/messengerBot/urls.py
f6e9f82f5d5d8ff77f08b523aed294744dc7ad97
[ "MIT" ]
permissive
singhvisha/LanguageBot
16b5b153e55b432bfa108a7add5a087b38af7722
9cef316bceb2f6951863af2fa869398fb5242519
refs/heads/master
2023-05-31T11:26:41.773724
2020-07-12T17:49:15
2020-07-12T17:49:15
279,117,273
0
0
MIT
2021-06-10T23:09:31
2020-07-12T17:46:28
Python
UTF-8
Python
false
false
192
py
from django.conf.urls import include, url from .views import messengerBotView urlpatterns = [ url(r'^21975e0a3c7ab17aa37124158bbda569af363d15eacb576e06/?$', messengerBotView.as_view()), ]
[ "vishalsingh600700@gmail.com" ]
vishalsingh600700@gmail.com
629f2ff4feeb1c2a14b762b23be4363df4961583
bee1bf4e458a7ea4be0cd70be00f2d7d7b2d1d3f
/lu_factorization.py
7250058d8c2ecadc8a5e05d55857cdff0822430f
[]
no_license
mateusoliveira43/estudos-Algebra-Linear-Computacional
3b3abd4f4b3ee7b4e2c75b8863753d5299324334
aa1cbe2d3a928c9de689512aa8da7add3d43ebb6
refs/heads/master
2023-02-16T04:51:31.749993
2021-01-16T14:13:22
2021-01-16T14:13:22
295,873,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
import numpy as np from pprint import pprint import timeit def lu_factorization(matrix): # fazer type hinting depois dimensions = matrix.shape n = dimensions[0] lower_matrix = np.eye(n) for i in range(n-1): for k in range(i+1, n): lower_matrix[k][i] = matrix[k][i]/matrix[i][i]...
[ "matews1943@gmail.com" ]
matews1943@gmail.com
dac71081393db6a981bf3c583d5697793ad0de22
24ce8e56cd54c93c5a285089acb1825132e9e2eb
/495.TeemoAttacking/teemoattacking.py
ebdaf083b15431291215be7042244143c3ef7706
[]
no_license
mayuripatil07/LeetCode
6c7d2148e05fe2c086412d38a7cb71e6e74eee87
4617b11d9487385522ba665ca34b378659afe02c
refs/heads/master
2023-01-13T11:03:49.805792
2020-11-01T21:41:59
2020-11-01T21:41:59
261,207,306
0
0
null
null
null
null
UTF-8
Python
false
false
729
py
class Solution: def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int: if not timeSeries: return 0 poison_time = timeSeries[0] + duration poison_condition = duration for i in range(1,len(timeSeries)): if poison_time <= timeSeries[i]: ...
[ "mpatil7@binghamton.edu" ]
mpatil7@binghamton.edu
2d399e7009cc07f480db636304e56d03c3aa52d9
32d4cbfce0edf448e5c6518a3dc5fb7a27d74b88
/build/lib/malaria/study_sites/SugungumAgeSeasonCalibSiteBabies.py
d572d77d05d0948e88dbcdb4bceecce749917500
[]
no_license
bertozzivill/dtk-tools-malaria-old
7458164f35452d3ede99d03d709197a7108366ba
9aef758261b67c0b06520d8b74b7a9da537448fc
refs/heads/master
2020-03-24T19:24:02.338717
2018-12-17T21:53:21
2018-12-17T21:53:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,717
py
import logging import os import numpy as np from calibtool.analyzers.Helpers import season_channel_age_density_csv_to_pandas from calibtool.study_sites.site_setup_functions import \ config_setup_fn, summary_report_fn, add_treatment_fn, site_input_eir_fn from calibtool.study_sites.DensityCalibSite import DensityCal...
[ "jsuresh@idmod.org" ]
jsuresh@idmod.org
f024098d382063eb23c1aa5ac661a60dd1e56307
0556e11758ec9a632d4b1406be1597c6900aa93d
/tutorials/tutorial05/05_SPDE_on_fenics_solver.py
99cad0868dac1a4b573f149230b8cc61853a6a92
[ "MIT" ]
permissive
mtezzele/ATHENA
85b5f1dd44180314ab9548a7cac054ca8a77b9df
d8f48680e035a4d51d51c1883932b46fd0bd8da8
refs/heads/master
2023-05-30T10:53:27.722329
2023-04-27T22:05:40
2023-04-27T22:05:40
226,117,142
0
0
null
2019-12-05T14:10:57
2019-12-05T14:10:56
null
UTF-8
Python
false
false
5,930
py
from dolfin import * import matplotlib.pyplot as plt import numpy as np import sys import os from pathlib import Path import warnings warnings.filterwarnings('ignore') def compute_mesh_map(mesh, dim): m_map = np.zeros((dim, 2)) for j, cell in enumerate(cells(mesh)): m_map[j, :] = cell.midpoint().arra...
[ "francesco.romor@gmail.com" ]
francesco.romor@gmail.com
7c9b22a38ca78b7384d98f036477bb1f96f5c71f
08637a7a73653c1c3c0d5c5316589e3f290fbbfd
/ProjectEulerProblem45.py
a44a26a4d4f9f456bee09040e9a5899b5c902ea7
[]
no_license
jdbr827/ProjectEuler
91253bf36c86e21d95deed2bac2a43a33289da66
ddc728a75303d7ad949c723c0aa0f36900cc9aae
refs/heads/master
2022-07-24T12:42:50.038387
2019-11-12T23:39:35
2019-11-12T23:39:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
def solve3(): T = 1 Tn = 1 P = 1 Pn = 1 H = 1 Hn = 1 found = set([]) while len(found) < 2: # update the sequence whose most recent element is smallest M == min(T, P, H): if M == T: Tn += 1 T = Tn * (Tn+1) / 2 elif M == P: Pn += 1 P = Pn * ((3*Pn)-1) / 2 elif H == P: ...
[ "noreply@github.com" ]
jdbr827.noreply@github.com
4acf925d2f474e88d0b195933e8e7df31a2aa765
9446feb2a94486ac16c585f712dbcbea7d112a9d
/src/taskmaster/cli/master.py
b78926059cf4a36ee7d184b223ba2326de9179e4
[ "Apache-2.0" ]
permissive
jdunck/taskmaster
c16c879a546dd2ac383f804788e2d8ae2606abd1
04a03bf0853facf318ce98192db6389cdaaefe3c
refs/heads/master
2023-08-23T19:29:22.605052
2012-05-16T00:52:24
2012-05-16T00:52:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
""" taskmaster.cli.master ~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010 DISQUS. :license: Apache License 2.0, see LICENSE for more details. """ def run(target, reset=False, size=10000, address='tcp://0.0.0.0:3050'): from taskmaster.server import Server, Controller server = Server(address, size=size) contr...
[ "dcramer@gmail.com" ]
dcramer@gmail.com
3e9b63e9492405f039f1e350d73adff14fddf664
39ab815dfdbab9628ede8ec3b4aedb5da3fd456a
/aql/aql/options/aql_option_types.py
e93027919b544a7de53973e716f7a8f385c8a943
[ "MIT" ]
permissive
menify/sandbox
c03b1bf24c1527b47eb473f1acc433f17bfb1d4f
32166c71044f0d5b414335b2b6559adc571f568c
refs/heads/master
2016-09-05T21:46:53.369065
2015-04-20T06:35:27
2015-04-20T06:35:27
25,891,580
0
0
null
null
null
null
UTF-8
Python
false
false
18,600
py
# # Copyright (c) 2011,2012 The developers of Aqualid project - http://aqualid.googlecode.com # # 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 limitati...
[ "menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b" ]
menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b
92467aabe2d3e0851ea17a982715577fa57c6fde
4aa6b7c3a5ae3817007e09ad1289c1e9f7a355c0
/dynamic_programming/best-time-to-buy-and-sell-stock-iv.py
57dc30b64f80d1c90423152d8d4b8f9a47789989
[]
no_license
liuhuipy/Algorithm-python
8f5143e06cf5fa2de2c178e3ba9e5fd12b9bcdf7
4e92a0b874f956d1df84d1493f870a5d1f06cde2
refs/heads/master
2021-06-03T04:19:01.946149
2021-01-08T07:44:40
2021-01-08T07:44:40
99,838,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
""" 买卖股票的最佳时机IV: 给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。 设计一个算法来计算你所能获取的最大利润。你最多可以完成 k 笔交易。 注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 示例 1: 输入: [2,4,1], k = 2 输出: 2 解释: 在第 1 天 (股票价格 = 2) 的时候买入,在第 2 天 (股票价格 = 4) 的时候卖出,这笔交易所能获得利润 = 4-2 = 2 。 示例 2: 输入: [3,2,6,5,0,3], k = 2 输出: 7 解释: 在第 2 天 (股票价格 ...
[ "liuhui_py@163.com" ]
liuhui_py@163.com
2e9f65cb125310604066c976eeca51526b77e980
4b226dfa9c17da6bab4c2e1831de057b049a7919
/monitoring/availability.py
17860d236749fd6a9fab47a417a837db94250c16
[]
no_license
eea/inspire.harvest.feasibility.tools
616070cff9608c09bb3543be711e7d66152c17a5
b4994db8bd02ccfc2c5d5bf9fe5c8efbfda55bc3
refs/heads/master
2023-08-01T06:27:52.888886
2018-11-15T16:09:17
2018-11-15T16:09:17
142,995,171
1
0
null
null
null
null
UTF-8
Python
false
false
3,446
py
import logging import csv from datetime import datetime import pytz import requests from monitoring.common import HTTPCheckResult, Monitor, get_service_urls logger = logging.getLogger("availability_check") info, debug, error = logger.info, logger.debug, logger.error def check_availability(url, url_id, output_path, ...
[ "andrei@duhnea.net" ]
andrei@duhnea.net
3a16a90b838831a9cd17e75fbc0cf1128433630b
509b42db1734d1fd0577ac9d471a5dc597f81a3b
/Web/polls/migrations/0001_initial.py
2534117e0a2c66cc416eafe0ff03efba89f6917e
[]
no_license
kote2ster/ChaosStack2019
19063c0fbcaf47fe6732dc78a5535890f42904a1
61dbb37a67c9ab15fc44f10bd98a3b955624b4b6
refs/heads/master
2022-12-10T09:18:15.104635
2019-09-28T17:00:01
2019-09-28T17:01:24
202,116,975
0
0
null
2022-12-08T06:17:12
2019-08-13T10:05:32
Python
UTF-8
Python
false
false
1,075
py
# Generated by Django 2.2.5 on 2019-09-27 14:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Question', fields=[ ...
[ "kote2ster@gmail.com" ]
kote2ster@gmail.com
40115813710fb922b4615d58c11ab7d51905be62
9de9beaf657bf3d5967997b301753c3d1cd03d51
/2. SLAE/errors/errors.py
925669e7fe86341252a64bbc1bc78c60a59c5b8c
[]
no_license
karmapolice-0/Numerical-things
e87116b86c52b63424137f72ae079c3a48a7154b
41852fb84fed71a0a5673eaa977a476b95733e59
refs/heads/master
2021-05-18T19:35:04.576327
2020-04-04T19:59:14
2020-04-04T19:59:14
251,380,982
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
class MatrixError(Exception): def __init__(self, msg=""): self.message = msg def __str__(self): return self.message class DimensionError(MatrixError): def __init__(self, err, *args): self.message = err class NotListOrTuple(MatrixError): def __init__(self, err, *args): ...
[ "akselivj@gmail.com" ]
akselivj@gmail.com
817f463578dec04dd4c4938523da72404795d281
f5b31994dfbe4effa7868557f223952d1a2dc0f6
/src/mic.py
e648fca6167cfaad255f044ac0b3bb511beb4322
[]
no_license
jacobsny/hackathon_checkin
96f39a4f4b55599e214617c439bbc63159a0fcf6
ff588c8511f4cf496bdf53dee1e534977a6e5a8a
refs/heads/master
2020-07-29T21:06:08.345970
2019-09-22T13:14:05
2019-09-22T13:14:05
209,959,335
0
0
null
null
null
null
UTF-8
Python
false
false
5,423
py
from __future__ import division import re import sys from google.cloud import speech from google.cloud.speech import enums from google.cloud.speech import types import pyaudio from six.moves import queue # Audio recording parameters RATE = 16000 CHUNK = int(RATE / 10) # 100ms class MicrophoneStream(object): "...
[ "jacob.snyderman@gmail.com" ]
jacob.snyderman@gmail.com
001acef57576b87eb38040f53889537d452e2f72
552865ae5daa143bc6a7dec46f7febe49f0a7226
/src/mr/cabot/kml.py
96d3de4531e1a03cd61c963cb5568f2f5a0be081
[]
no_license
collective/mr.cabot
231a4a96c38e793356c4d06438d236d447e97bc8
3e905d80ed5eac52a258b74d19abf5ab182d49e2
refs/heads/master
2023-03-22T15:30:19.171188
2013-01-27T17:54:22
2013-01-27T18:32:03
6,816,996
1
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
import datetime import urllib import os import simplekml from mr.cabot.interfaces import IListing, IGeolocation import sebastian colors = {"commit": "ff00ff00", "mailing-list": "ffff0000", "answer": "ff00ffff"} def join(objs): kml = simplekml.Kml() unique_locations = set() for obj in objs: ...
[ "git@matthewwilkes.name" ]
git@matthewwilkes.name
d6db180179ec7d18235d889f23c35b8b394da45a
154620312f4e4b53382a2637e9a130e458a0d4cd
/alcoholExample.py
4897a663f0158fe1464a8843754cb4b2e2badc1a
[]
no_license
heltongo/VAA-Tool
0cebae267f536a449eccf6f64f0559093d17b7cb
ebe93ed0d80d4729d71bf353ae11ed3172de5988
refs/heads/main
2023-08-02T10:59:24.269362
2021-10-10T10:41:59
2021-10-10T10:41:59
406,747,486
0
0
null
null
null
null
UTF-8
Python
false
false
8,025
py
import wx from numpy import arange, sin, pi import matplotlib import os.path #matplotlib.use('WXAgg') from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wx import NavigationToolbar2Wx from matplotlib.figure import Figure # from data.db_utils import * BASE...
[ "80892899+debbiemaborekhe@users.noreply.github.com" ]
80892899+debbiemaborekhe@users.noreply.github.com
601c6109a398a6044f0de960eb68847c99317d8b
b65cd9500e73e51459ce426dd7702d82cee405ba
/ANN/artificial_neural_network.py
a5e7c148dd445479dfd1f243bef73358ebc95213
[]
no_license
ashish-atkar/ML_Algorithms
b335f9fbb04bbb093c76222c9d18fb1340ec9835
647cc7bb17ae201ce3cdaeb1c644b6b5a277a106
refs/heads/master
2022-10-08T10:11:08.101779
2020-06-09T19:15:27
2020-06-09T19:15:27
270,686,921
0
0
null
null
null
null
UTF-8
Python
false
false
1,983
py
#Part 1: Data importing and preprocessing import pandas as pd dataset = pd.read_csv('Churn_Modelling.csv') X = dataset.iloc[:,3:13].values Y = dataset.iloc[:,13].values #Encoding Categorical data from sklearn.preprocessing import LabelEncoder,OneHotEncoder labelencoder_X_1 = LabelEncoder() X[:,1] = labelencoder_X_...
[ "ashish.atkar12@gmail.com" ]
ashish.atkar12@gmail.com
cff049faf2a96253a3c9ab4ba304667f2b5d2244
00edbbf472066b51d1dafa361303aa1836f3b177
/stock_incoming_shippment_container/stock.py
9e3d3fa5ea458d2b80b197b33294f5bb1ae8ea0d
[]
no_license
kevin808/ellico_extra_addons
22513a927e23c00d8380c9c75ac2a5df68adf8c8
9953fe3ad9a092aa1dbb1631b0cf30bd96403166
refs/heads/master
2020-05-17T02:55:03.091842
2014-06-17T02:37:43
2014-06-17T02:37:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,373
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (c) 2010-2014 Elico Corp. All Rights Reserved. # Alex Duan <alex.duan@elico-corp.com> # # This program is free software: you can redistribute it and...
[ "lin.yu@elico-corp.com" ]
lin.yu@elico-corp.com
aee259f55635db4b74927412b4c3d307f3038436
1d90a784f0fb673b188f3fdde425bd7ca23617e6
/python/multiparadigma/1195.py
0d4b9b31bcfc229f6642bd5c9c89253f87968f29
[]
no_license
lzacchi/INE5416
8b767dec0aa19baf8f27930b6c345b609220c6ff
e182dc7777a1d49c478c6655afdf1e754dce43b1
refs/heads/master
2021-03-15T09:36:09.924193
2020-11-25T01:10:40
2020-11-25T01:10:40
246,840,501
0
0
null
null
null
null
UTF-8
Python
false
false
1,846
py
class Node: def __init__(self, value): self.value = value self.left = None self.right = None class Tree: def __init__(self): self.root = None self.buffer = "" def insert(self, value): if self.root is None: self.root = Node(value) else: ...
[ "zacchilucasm@gmail.com" ]
zacchilucasm@gmail.com
019e554986b56d005e4f2668da030024fbc2998a
3bfe2238f9337a03780961f756c3317320dbdf7d
/td3.py
9e349dc284a3a807947fa1644f1cf5e39fd22087
[]
no_license
herrbilbo/neural-ode-rl
6cd30f0c9d360a3e131e9a52ff837fb9c1e3f3ab
f30bfa62f93bae527aae981179ef46c50fa64145
refs/heads/master
2022-11-08T07:46:16.271687
2020-06-24T22:46:15
2020-06-24T22:46:15
274,783,544
1
0
null
null
null
null
UTF-8
Python
false
false
13,262
py
import gym import random import numpy as np from collections import deque import torch import torch.nn.functional as F import torch.optim as optim import torch.nn as nn import pybullet_envs from torchdiffeq import odeint from torch.utils.tensorboard import SummaryWriter import multiprocessing.dummy as ...
[ "noreply@github.com" ]
herrbilbo.noreply@github.com
7a6ad161974c26b3fb9c026dab412103523de24d
6492db43d623d3ef5d47bfe9b22486d858b9a243
/assignments/day2-homework/fasta_reader.py
bbbb51724a88ffbd816b5edebaaaccd892802607
[]
no_license
rgenner/qbb2021
76cfed73916e51e7985f95d31e3b1587e49ebd72
bb6b1d069f2ff438205ce5e44ddaa6ec42ddb3be
refs/heads/main
2023-08-26T02:52:18.649496
2021-10-22T05:24:42
2021-10-22T05:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
#!/usr/bin/env python3 def FASTAReader(file): # Get the first line, which should contain the sequence name line = file.readline() # Let's make sure the file looks like a FASTA file assert line.startswith('>'), "Not a FASTA file" # Get the sequence name seq_id = line[1:].rstrip('\r\n') ...
[ "kweave23@jhu.edu" ]
kweave23@jhu.edu
46f9074e93f7bef5beaa27844351f2b1ba6935da
3307766701d680af6d12a726a2d98df2cb1830e5
/jams/gcj/2013/1C/C/C.py
0660c807359fca4cfb396ebfa66c729d1b5b2f9e
[]
no_license
dpaneda/code
c1a54037a275fa7044eb5c2d6079f052dd968615
7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff
refs/heads/master
2023-01-07T18:41:00.816363
2022-12-30T09:24:22
2022-12-30T09:24:22
1,583,913
2
1
null
null
null
null
UTF-8
Python
false
false
2,495
py
#!/usr/bin/python2 import sys import bisect def calculate_atacks(tribes): # We calculate attacks day by day, until no tribe have any attacks left attacks = {} for tribe in tribes: for i in xrange(0, tribe[1]): d = tribe[0] if d not in attacks: attacks[d] = ...
[ "dpaneda@gmail.com" ]
dpaneda@gmail.com
58a25e67f1a25a87bcf69394078f2dff07c063d3
274a72fffdeea616d65e1ca6c343a948325b12c1
/bot.py
6e3b160bb2bea21e1f41575a9d32fbfa7f4cf744
[]
no_license
ideasincrypto/moderatorBot
9091b224039f560b9bea94d1abec736a6b1b2720
9e8d12cfa3b7cfb05a64aa6a80eb5ef416167319
refs/heads/main
2023-05-15T10:23:59.363963
2021-06-17T07:21:35
2021-06-17T07:21:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,616
py
import time import config import logging import bot_helpers from aiogram import Bot, Dispatcher, executor, types from filters import IsAdminFilter from sqlite import SQLight # log level logging.basicConfig(level=logging.INFO) # bot init bot = Bot(token=config.TOKEN) dp = Dispatcher(bot) db = SQLight("db.db") # acti...
[ "cent1pede@protonmail.ch" ]
cent1pede@protonmail.ch
c38d01418bc5557e97442e26d3317de141654596
5858cc331d73f04d38f2572d68bd9c2eb3747165
/subscriptions/tests/test_views_detail.py
27515f097684c7bcca36babb70f8b52b11b5e55c
[]
no_license
rougeth/wttd
6f9817e3f34df8adebda5a12bde3aa66a4f5d966
b8d63ccce01c0f7403fc53547c0a421fbe5e6c8b
refs/heads/master
2021-01-17T05:27:04.678657
2014-06-01T03:02:30
2014-06-01T03:02:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
874
py
# coding: utf-8 from django.test import TestCase from subscriptions.models import Subscription class DetailTest(TestCase): def setUp(self): s = Subscription.objects.create( name='Marco Rougeth', cpf='12345678901', email='marco@rougeth.com', phone='61-1234567...
[ "marco@rougeth.com" ]
marco@rougeth.com
f85d432e037030d3e230472ed90ab71633bfd965
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/benchmarks/sieve-6.py
50bed63741a7b659fb9658ec148349d295ad58a5
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
# A resizable list of integers class Vector(object): $ClassBody # A faster (but more memory-consuming) implementation of vector class DoublingVector(Vector): doubling_limit:int = 1000 # Overriding to do fewer resizes def increase_capacity(self:"DoublingVector") -> int: if (self.capacity() <= s...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
9c1c1496d9e87ef0b64186d9951572487e4eec52
2d5648035b8bd32b4a6ded311e48975e5ea100d4
/runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.cfg.py
0df43d2c6562ed9dcdd7e02e3967e1cde40ca70a
[ "MIT" ]
permissive
Largio/broeval
3975e54a1eaead6686c53e5e99250a00becbe1e0
89e831d07f066100afdd1a5b220f9f08f1c10b3d
refs/heads/master
2021-05-08T08:54:06.498264
2017-11-10T17:09:02
2017-11-10T17:09:02
92,508,227
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
# Write results to this file OUTFILE = 'runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.result.csv' # Source computers for the request SOURCE = ['10.0.0.1', '10.0.0.3'] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'] # IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql) IDSMODE = 'ssl...
[ "larswiete@googlemail.com" ]
larswiete@googlemail.com
29f193740bef122fbd90749abed73ecb40569459
b3a2beaab1ac676c96e93a48d4f35ff6ed6799d0
/anyex/async/btcchina.py
1adec6030b7a567203d310d05d8ea27f4920560c
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
ttwishing/anyex
40c06cf34e4d8f96bb968e8b7be3d2da5e6023f8
cfd1f2f04ab992b790add4843aafff91e5773cbf
refs/heads/master
2020-05-23T12:07:58.615432
2019-05-15T05:09:46
2019-05-15T05:09:46
186,751,745
0
0
MIT
2019-05-15T04:57:08
2019-05-15T04:57:08
null
UTF-8
Python
false
false
11,676
py
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/anyex/anyex/blob/master/CONTRIBUTING.md#how-to-contribute-code from anyex.async.base.exchange import Exchange import base64 import hashlib class btcchina (Exchange): def describe(self): ...
[ "yong2452@gmail.com" ]
yong2452@gmail.com
57209408cf256d9887b2a70f4019707fbfca8030
bf78c33be28fcd1b33cf5e3eab1e6923607bca8d
/fullversion/pressure_system/pressure_system_sensor/CurveDetection.py
97fd783b5d1f3e37f78854af70f9431191838ec5
[]
no_license
marcosase/E-MA-docker
4531c973bb96ab588a039198cf5a55c5b50f6da1
5ce56f7ac79df0b0fcfd957b2750840b7261f973
refs/heads/master
2020-05-27T02:46:55.258051
2019-05-24T00:23:41
2019-05-24T00:23:41
188,456,200
1
0
null
2019-05-24T16:39:10
2019-05-24T16:39:10
null
UTF-8
Python
false
false
15,343
py
''' Created on Jul 2, 2018 @author: rodrigo.guercio ''' #!/usr/bin/python # -*- coding: utf-8 -*- '''Peak detection algorithms.''' import numpy as np from scipy import optimize import math from lmfit.models import LorentzianModel import matplotlib.pyplot as plt import pylab def indexes(input_array,axis_x, thres = ...
[ "root@LNLS55-linux.abtlus.org.br" ]
root@LNLS55-linux.abtlus.org.br
4af4f611f29d8399e7635e13af155fc04e99e0b9
9e1dcb4f71b7eda84bbf0855d574eb38719d21a9
/nested_loops_prime_number.py
09ead76ff7a45ba184bcf3f6b8ff47bf66b017c6
[]
no_license
ayoubabounakif/edX-Python
689c2730458513151fc3b7a69f6a3e8b25462028
2449616fd6d9d8d8d74819cff24f3a54bff9dd4b
refs/heads/master
2020-12-30T03:46:10.271688
2020-02-07T05:28:09
2020-02-07T05:28:09
238,849,304
0
0
null
null
null
null
UTF-8
Python
false
false
1,763
py
#ALGORITHM ''' 1. Select a number 2. Select a divisor and set it equal to 2. 3. Assume number is prime 4. If divisor is less then the number go to step 5 else go to step 8 5. If remainder of (number/divisor) is 0 then number is not prime(exit/stop) 6. Add one to the di...
[ "noreply@github.com" ]
ayoubabounakif.noreply@github.com
75ef228fd5619a6cc49f30d58c3284d5f4dbb728
584dda592f5869a5ba2c0bbaee12401bcfe5454a
/telloner/apps/tellonym_api/tellonym/User.py
a40dd16a4d884433f06b7898a58c445447b60ab8
[]
no_license
Rei-x/django-tellonym-api
d769d79549443f1729f79bbf4a498ba014198311
04b43f7c4f71188351ffe482b23b58c6aaa98128
refs/heads/master
2023-02-22T14:20:55.987434
2021-01-27T12:45:30
2021-01-27T12:45:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
class User: def __init__(self, input): print(input) self.id = input['id'] self.display_name = input['displayName'] self.username = input['username'] self.about_me = input['aboutMe'] self.avatar_file_name = input['avatarFileName'] self.is_verified = input['is...
[ "wszyzdgo@gmail.com" ]
wszyzdgo@gmail.com
7cb4c2732a9e0437ad2c3c1be8df7a72b03dab80
b8062e01860960131b37e27298b6b755b4191f5f
/python/level1_single_api/9_amct/amct_pytorch/resnet-101/src/resnet-101_calibration.py
1fb64a80ea43a7e08efa9490757866a88b3a89a4
[ "Apache-2.0" ]
permissive
RomanGaraev/samples
4071fcbe6bf95cf274576665eb72588568d8bcf2
757aac75a0f3921c6d1b4d98599bd7d4ffda936b
refs/heads/master
2023-07-16T02:17:36.640036
2021-08-30T15:14:05
2021-08-30T15:14:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,051
py
""" # Copyright 2021 Huawei Technologies Co., Ltd # # 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...
[ "derek.qian.wang@huawei.com" ]
derek.qian.wang@huawei.com
556a064c6aaa406e6208c1055530438590c6f151
9b2f4810b093639209b65bbcb5fa07125e17266f
/src/radical/pilot/umgr/staging_input/__init__.py
66be18b437eb382c61a394d1bf9f1abbbf8f82d4
[ "MIT" ]
permissive
karahbit/radical.pilot
887d25d370d08e3455f19cd240677b62278ef67f
c611e1df781749deef899dcf5815728e1d8a962e
refs/heads/devel
2020-12-21T09:54:10.622036
2020-08-20T18:18:12
2020-08-20T18:18:12
254,967,331
0
0
NOASSERTION
2020-05-01T00:47:51
2020-04-11T22:37:20
null
UTF-8
Python
false
false
141
py
__copyright__ = "Copyright 2016, http://radical.rutgers.edu" __license__ = "MIT" from .base import UMGRStagingInputComponent as Input
[ "andre@merzky.net" ]
andre@merzky.net
963def63ffb064f3a9cabda28fe6da460f3f0ce1
4384fea5021c660abd188f0d7d5072a42b0b37a3
/analysis/irb_13384/scripts/coh_04_analyze_segmentations.py
3135adde1749d7792bb7af0868383fd7f86ec669
[]
no_license
cohmathonc/car-t-image-analysis
ae39b6c8cb22d55f606fd478f10f56fbd6b65181
3719ddbd3c0da74f26da04aebdb42cad3956a184
refs/heads/master
2023-07-14T22:27:15.013239
2019-06-05T18:31:08
2020-06-10T08:14:39
190,288,277
0
1
null
2023-06-29T20:33:00
2019-06-04T22:31:16
Python
UTF-8
Python
false
false
1,646
py
import analysis.irb_13384.coh_config as config from tools import data_io as dio import analysis.irb_13384.coh_helpers as ch import tools.general_tools as gt import os gt.ensure_dir_exists(config.coh_dir_analysis_segmentation) data_io= dio.DataIO(config.coh_dir_bids, config.path_to_coh_bids_config) # This function l...
[ "djs.abler@gmail.com" ]
djs.abler@gmail.com
120fb4ec281dcd2b86e5467ee1a6d5de6064f9a9
08405d519907288da5e780c4c7edd86c5e898f67
/sql_and_python_asignment_14.py
d191384a0354d544f26177e48a1941db3affeee0
[]
no_license
brambabu/Python_oops
a2a8aeb38fb44084367e21d7119ab17edc6dc7d5
fca97ba7be04902dc88b24a67a2d36a782b16ffb
refs/heads/master
2022-08-26T10:22:31.024124
2020-05-27T04:59:35
2020-05-27T04:59:35
257,840,293
0
5
null
2020-04-22T08:32:12
2020-04-22T08:32:12
null
UTF-8
Python
false
false
2,923
py
def write_data(sql_query): import sqlite3 connection = sqlite3.connect("students.sqlite3") c = connection.cursor() c.execute("PRAGMA foreign_keys=on;") c.execute(sql_query) connection.commit() connection.close() def read_data(sql_query): import sqlite3 connection = sqlite3.conne...
[ "noreply@github.com" ]
brambabu.noreply@github.com
fbb9c8ae7ff641259199c43c4776c6e6207c9d4a
bddd137df94aeefe3b2dddda450cb3830c4d612a
/数据/raw data/20170816price_radio_2012/2_128/tsc_model.py
faa4fa79ffe20f5d75bfc9d8e1eaf3cae1bfd247
[]
no_license
yangyiqwer/vue-sp
e211f05965930086edb0b6625177ec1f0a9557c6
44f09352dc6aac01ebb749f55635714c3cf11b53
refs/heads/master
2021-01-01T19:04:16.109666
2017-08-27T15:04:26
2017-08-27T15:04:26
98,498,080
0
0
null
null
null
null
UTF-8
Python
false
false
5,624
py
import numpy as np import pandas as pd import os os.environ['TF_CPP_MIN_LOG_LEVEL']='3' import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) from tensorflow.python.framework import ops from tensorflow.python.ops import clip_ops from tensorflow.contrib.rnn import LSTMCell from tensorflow.python.ops.rnn im...
[ "yangyiqwer@gmail.com" ]
yangyiqwer@gmail.com
4117bf0fede268a09fcfef5704f7c884814e3c6f
d2e822f47779dff3cec81e1c9e71f381a6ceb0f0
/COURS/python/TP7/TP7 EX1.py
ff3531bce28bd7438b72b0db37e93aad0b6b48e6
[]
no_license
BrandidiCH4O4/Code-des-cours
fe019ba211785ade42d54fc1238d4944bb178373
ac9eb6bf9042f2ceaca5e8e5a6de49848395bffb
refs/heads/main
2023-01-21T02:03:51.412532
2020-12-02T13:41:19
2020-12-02T13:41:19
309,106,429
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
"""Ex 1""" #1: print("1:") def saisieON(): rep=input("Entrer OUI ou NON ") while rep!="OUI" and rep!="NON": print(rep, "n'est pas une réponse acceptable.") print("") rep=input("Entrer OUI ou NON ") return rep print("") print(saisieON(), "est une réponse accépté.") ###...
[ "noreply@github.com" ]
BrandidiCH4O4.noreply@github.com
62840653bb6acafdea57d4f93202a81cccb65c4f
488d6a8df1c50f232344308c6377e9bbe58eb012
/Trabajo Practico 1 - B/errorController.py
60c54ba0c325b51b043479d4b1fc66218c03c865
[]
no_license
fjp2k/SistemasDeTransmisionDeDatos2017
97e719c759f98652b6796d40375d3fa1a81f8b69
c301bdcad1d92cc419730dacbb17d21b0abcff9c
refs/heads/master
2021-01-20T06:08:21.967764
2017-11-20T17:42:20
2017-11-20T17:42:20
101,487,633
0
0
null
null
null
null
UTF-8
Python
false
false
1,453
py
def controlar_trama(trama): error_funcion = trama[2:4] if error_funcion == '83': return False elif error_funcion == '86': return False elif error_funcion == '90': return False return True def obtener_error(trama): error_funcion = trama[2:4] codigo_error = trama[4...
[ "fpalma2k@gmail.com" ]
fpalma2k@gmail.com
287b2dea5d50e568064505e8ecdad813d1967f06
e966e08e69df8f6669034c1d8a2ed57293a48ef7
/www/main.py
a8c620ef841d4f5469289bfa7a8cbc2b5c224f3a
[]
no_license
adrianPerez/notify-io
c9d06f5fb2a40d25a9399bb72319225e60ffa142
20eeafa5edfe2455d4b154733283aa8ce2969dbb
refs/heads/master
2021-01-18T12:14:50.622242
2009-11-12T06:13:36
2009-11-12T06:13:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,257
py
import wsgiref.handlers import hashlib, time, os from google.appengine.ext import webapp from google.appengine.ext import db from google.appengine.api import users from google.appengine.api import urlfetch from google.appengine.ext.webapp import template from google.appengine.ext.webapp.util import login_required from...
[ "progrium@gmail.com" ]
progrium@gmail.com
4285a06223ef406e7b6a8cfcba809f60b3d98731
57eb2354f8fba9d46c8edcfac60c13fc0468d950
/Lekhaka/deformer_noiser.py
af37dc110bc7fa9c610374b8ecf483f63c73effc
[]
no_license
rakeshvar/Lekhaka
597e91e60c30c566e6f792af2d1378205f698087
1d2d31035fe8a29f002adb5a70d762669102a0f3
refs/heads/main
2023-06-16T11:18:30.121653
2021-07-09T08:35:56
2021-07-09T08:35:56
370,766,062
0
0
null
null
null
null
UTF-8
Python
false
false
5,731
py
import numpy as np from scipy import ndimage as nd from scipy.special import cosdg, sindg def _summary(mat, name): print(f"{name}\tshape:{mat.shape}\tmax:{mat.max():.2f} min:{mat.min():.2f}") pass class Deformer: def __init__(self, translation=0, zoom=0, elastic_magnitude=0, sigma=1, angle=0, nearest=Fa...
[ "rakeshvar@gmail.com" ]
rakeshvar@gmail.com
4b3bcb583dfe4073fbaf60da96a44bc417c9ff61
1ddbe64e41ba648bb60a8758be6764e19b1c418a
/trunk/tygame-hall5-py/src/hall5/plugins/hallitem/_private/_actions/open.py
722642fc9426119f820446f54c160267601f47ce
[]
no_license
zhaozw/freetime5
9bc3d0671a594822cc82e04b69c8016b7afd0554
99c47ad235583e765c35627ba34d4f496ccccbe4
refs/heads/master
2020-03-08T04:09:15.293616
2020-02-11T06:06:29
2020-02-11T06:06:29
127,913,013
0
0
null
2018-04-03T13:31:36
2018-04-03T13:31:35
null
UTF-8
Python
false
false
8,612
py
# -*- coding=utf-8 -*- """ @file : itemaction @date : 2016-09-22 @author: GongXiaobo """ from hall5.plugins.hallitem._private._actions import _action from hall5.plugins.hallitem._private._items.box import TYBoxItem from tuyoo5.core.typlugin import pluginCross from tuyoo5.game import tycontent from tuyoo5.game._priva...
[ "tuyoo@tuyoodeMac-mini-8.local" ]
tuyoo@tuyoodeMac-mini-8.local
295338183b59fe88a08317b8e639fd6a5734f638
1ee4c8d3208d1b51a72d30e4732a9b2082da605c
/sao_portal/asgi.py
42ad8861fc2ad5d0afd93f540fdc60c77c34b824
[]
no_license
abhiram-g/SAO_service_dashboard
8336f52a9968019102884e24edc735e8e4f38bc6
4d2cde4cefe6c10bc644223981b67755cf6c1145
refs/heads/master
2022-10-15T10:23:30.537956
2020-06-08T12:43:51
2020-06-08T12:43:51
270,624,725
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" ASGI config for sao_portal project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
[ "abc@gmail.com" ]
abc@gmail.com
db7db6a90704df75b54f315bea68f0ad7f3365c1
649bd422025e421d86025743eac324c9b882a2e8
/exam/1_three-dimensional_atomic_system/dump/phasetrans/temp101_6000.py
ca5589222090cec51eb4387d80afbfad76d2ebaa
[]
no_license
scheuclu/atom_class
36ddee1f6a5995872e858add151c5942c109847c
0c9a8c63d9b38898c1869fe8983126cef17662cd
refs/heads/master
2021-01-21T10:52:28.448221
2017-03-07T23:04:41
2017-03-07T23:04:41
83,489,471
0
0
null
null
null
null
UTF-8
Python
false
false
68,814
py
ITEM: TIMESTEP 6000 ITEM: NUMBER OF ATOMS 2048 ITEM: BOX BOUNDS pp pp pp 1.4321272860081535e-01 4.7056787271390377e+01 1.4321272860081535e-01 4.7056787271390377e+01 1.4321272860081535e-01 4.7056787271390377e+01 ITEM: ATOMS id type xs ys zs 8 1 0.121128 0.0652153 0.0529452 35 1 0.0586052 0.120368 0.0662597 130 1 0.04784...
[ "scheuclu@gmail.com" ]
scheuclu@gmail.com
402bd32071698d56c3451e82af17c292a4406371
64dd93c757173c57ffcb0810c66e339650b37a22
/client/models.py
7980945194f56eb06a495c1305489b132e69785d
[]
no_license
bannawandoor27/Django-Tenant-Single-URL
0a09ce6df33c06ec80bc4a4f69ea01e1b93b5e78
47ca4c2b7ce1f71050b9ae896df98e5749082bfc
refs/heads/main
2023-08-11T13:31:31.622577
2021-09-15T20:51:07
2021-09-15T20:51:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
from django.db import models from django_tenants.models import TenantMixin, DomainMixin import uuid import os from django_tenants.postgresql_backend.base import _check_schema_name # Create your models here. class Client(TenantMixin): REQUIRED_FIELDS = ("tenant_name", "paid_until", "schema_name", "on_trial") ...
[ "david@holdcb.com" ]
david@holdcb.com
201d456efa359e1836be4a554f33efd81f1843c1
552a03030160de2f096489e704f7b8088450f979
/concesionario/apps/empleado/views.py
f578f11b90b50e634d7022b3f57a4dff3e76097f
[]
no_license
lisafbe/SIGIA
ce718e9ba5b37cabeaaabe879ca99dcbe6e12059
a883b38e310af646fa8d6023e8f62bdb9e0a21d8
refs/heads/master
2021-01-10T08:46:08.055581
2016-02-20T18:58:54
2016-02-20T18:58:54
52,169,345
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
# -*- encoding: utf-8 -*- from django.shortcuts import render_to_response from django.template import RequestContext from django.views.generic import TemplateView from .models import Empleado from apps.sucursal.models import Sucursal class EmpleadoListView(TemplateView): def get(self,request,*args,**kwargs): s...
[ "lisabetanco@gmail.com" ]
lisabetanco@gmail.com
c6984060bdb66e9297a30262564f0ec5543acd5e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03146/s790644084.py
7e0cb3ce3d0317c1b444b17f7e0a4ff736bda753
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
s = int(input()) a = s prev = set() for i in range(1, 1500000): if a in prev: print(i) exit() prev.add(a) if a % 2 == 0: a //= 2 else: a = 3 * a + 1
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
baaf7396d7d64ca02b696064862bf5652b225a14
568ed7fdc9ccbd7967dd2950669c68002b454869
/yotta/test/cli/test.py
ccec43116468a2790ebad484c3f8dcd52ce643de
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
headlessme/yotta
ade06c41108dca045e295bd2e0fdb2b7baef8c89
947ab074b629c8f18ca91ab84ebaa29096b011c6
refs/heads/master
2021-01-17T11:10:07.569198
2015-12-08T11:45:12
2015-12-08T11:45:12
27,595,705
0
0
null
null
null
null
UTF-8
Python
false
false
5,592
py
#!/usr/bin/env python # Copyright 2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import unittest import copy # internal modules: from yotta.lib.detect import systemDefaultTarget from . import cli from . import util Test_Tests = { 'm...
[ "James.Crosby@arm.com" ]
James.Crosby@arm.com
6a6035e8568deb8735087e5c391727eb03d1e06f
9b9be4c8c1824c524556a074afaec0b989cf389e
/download.py
5e9b29fb8bc0d4458de9d72ff46ee060abd7dc9b
[]
no_license
bezoadam/MetaIT
ad9abc459b932efc3d6c86226afaa710081eb71a
23cf145d3ad796198d9e916f00c6a50f341d2749
refs/heads/master
2021-01-19T22:47:15.019640
2017-04-20T20:09:19
2017-04-20T20:09:19
88,870,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,374
py
#! /usr/bin/env python3 import sys import json import requests from operator import itemgetter # sys.path.insert(1,'/usr/local/lib/python3.5/site-packages/') from bs4 import BeautifulSoup NHL_LINK = "https://www.ifortuna.cz/cz/sazeni/hokej/nhl" PREMIER_LEAGUE_LINK = "https://www.ifortuna.cz/cz/sazeni/fotbal/evropska-...
[ "bezoadam95@gmail.com" ]
bezoadam95@gmail.com
593e2746323dfc3130f56fe671a34f9ddd763f58
f55818124fe2e82e18a03174637c7166bfb5bda6
/File Display.py
0dae5fca52780dc144dc1925fbc03f7081870fac
[]
no_license
jfranck99/Python-Projects
46b12aca9a0c99ecf7316dc3ae110b37173bf123
b61c42030c17eb4171862ce81e99291d0f439b63
refs/heads/main
2023-04-12T05:30:03.713769
2021-05-12T18:28:56
2021-05-12T18:28:56
366,805,770
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
#Open the file myfile = open('numbers.txt', 'r') #Read and display file for line in myfile: number = int(line) print(number) #Close the file myfile.close()
[ "noreply@github.com" ]
jfranck99.noreply@github.com
c89fddca810ff0a6a6816e86a3546737492b1e5e
56b3f373de5189f128d84ea191cc5dfc6f88636a
/TrackProblems/trackproblems/controllers/__init__.py
32c45f64e71509d5257896d8ff5c8bf2795962c0
[ "Apache-2.0" ]
permissive
tongpa/TrackProblems
0e301d01735ebc523de18553d670207b9a75427e
41e827a21907f0e9e4cc036ec0f96ab379b94544
refs/heads/master
2021-01-02T08:53:47.648786
2017-09-11T09:56:39
2017-09-11T09:56:39
99,089,555
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
# -*- coding: utf-8 -*- """Controllers for the TrackProblems application."""
[ "tong_pa@hotmail.com" ]
tong_pa@hotmail.com
72c565718ed0cf9f285301d357f8ad4810cba575
a1588ec1e4480c4ab58dccf49150066ce2ab1ee8
/exampls/operationLogic.py
de1a5aa399a69ee2262eb544dd54396d4260ec34
[]
no_license
silvermiguel96/pythonVentas
9e9a60b9573e39d2113f91362bf82b3a9ab42153
b785696dea666a49076d01ec9edecf8d054e09d4
refs/heads/master
2020-04-22T13:45:48.822291
2019-02-14T21:55:39
2019-02-14T21:55:39
170,420,763
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
x = 2 y = 3 x == y y = 2 x == y x != y x > y x < y x >= y #false x <= y #True x = 2 y = 3 a = 5 b = 6 print('De acuerdo a los siguientes valores de variables') print('x=',x) print('y=',y) print('a=',a) print('b=',b) print('Sabemos que...') if x == y: print ('"x" es igual que "y"') else: print ('"x" no es igual que...
[ "silvermiguel96@gmail.com" ]
silvermiguel96@gmail.com
8c3118deb13c8c994393b2003f7d577b34e10853
0479655f53b20aabd58e74fab15d7a0d278bd0f5
/scripts/modules/enumerators.py
7767ef0c42ae6ae865e130491fb2e739654393d2
[ "MIT" ]
permissive
gianheck/MeshSim
a717e54fa92bafea5b4522b54d02f9967c95d7b4
f2ff91634e1d7db2946fa86ab4384047dbfe0747
refs/heads/master
2022-04-07T11:06:38.212254
2020-02-27T22:45:46
2020-02-27T22:45:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,437
py
#!/usr/bin/env python """ Small module to enumerate sets of variable values. For simulation, we often want the enumerate the possible values in a grid, i.e. look at the cartesian product possible values. Sometimes the set is slightly more complicated, but usually not much so. In such cases, the explicit listing of ...
[ "lminder@gmx.net" ]
lminder@gmx.net
fc4c8a68056ed1b5b0241e8b4020194a7895889a
e560cf41cf47debaa297d43522f52961eb660c1c
/Python/3.- Logging.py
1ed14805b8e569dba36b2fbfe62a59773fea1661
[]
no_license
ActivandoIdeas/Concurrent-Programming
6c2eb18981c62f09c1cc6de00392343c01158ac9
bcd673dcd676b33c9f33c8b28dac3cb968d8d041
refs/heads/master
2022-12-16T08:15:01.130024
2020-09-16T03:56:26
2020-09-16T03:56:26
295,833,380
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
import logging # Debug (10) # Info (20) # Warning (30) # Error (40) # Critical (50) logging.basicConfig( level=logging.DEBUG, # 10 format='%(filename)s %(asctime)s %(message)s %(funcName)s %(levelname)s %(lineno)s %(module)s %(name)s %(pathname)s %(thread)s %(threadName)s %(process)s %(processName)s', da...
[ "eliasojedamedina@gmail.com" ]
eliasojedamedina@gmail.com
e62b2815fac299fb1b126e73cee5e4166cd51d2f
4296c26a6669870671ae92d0588ad08c18590bdb
/imageboard_withLinuxPaths.py
cfa0f4ceb767bc03fd5d60932cfa9b32a793e4d7
[]
no_license
neisor/imageboard
4c4af1d8567ecb9892d6d5279029cfd0d7323881
18b6db42fe67ef4e65cc63c96addf08f42089be0
refs/heads/master
2022-12-12T09:06:40.527836
2020-09-11T12:04:43
2020-09-11T12:04:43
294,684,283
0
0
null
null
null
null
UTF-8
Python
false
false
8,986
py
# -*- coding: utf-8 -*- from flask import Flask, flash, redirect, render_template, request, session, abort, jsonify import sqlite3 import random import os from datetime import datetime from werkzeug.utils import secure_filename #Flask configuration variables UPLOAD_FOLDER = os.getcwd() + r'/static/images' AL...
[ "noreply@github.com" ]
neisor.noreply@github.com
f1516933ea445803defec8a1fa0c6335c45eb5e6
491d3ad04c852d2efe3e49842ccfcd20e40eab96
/mysite/blog/admin.py
6f0dd47e26f5ddf14bfd772d3edc6b2cfbd7becd
[]
no_license
marianwitkowski/python-24082019
746c9824c15c2072caceeac8a9b610d79c63f0f6
df849d09aa7d9b7a08d8276a9c2b557d9f9d7ce7
refs/heads/master
2020-07-07T03:55:55.398961
2019-09-29T16:12:40
2019-09-29T16:12:40
203,239,578
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
from django.contrib import admin from .models import Post # Register your models here. class PostAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'status','created_on') list_filter = ("status",) search_fields = ['title', 'content'] prepopulated_fields = {'slug': ('title',)} admin.si...
[ "marian.witkowski@gmail.com" ]
marian.witkowski@gmail.com
8481ed2d0f149e2feca988ff41ea6b4cf7e1eef4
ceb726ec9aaee5b6b914ca850aa4147d3ce0aedf
/addons/odoo/addons/sale/tests/test_access_rights.py
492ff640ce31d43341918b07152f51c87de97ddc
[ "Apache-2.0" ]
permissive
BabakMahmoudi/parOdoo
969ab3f2946243c71a54fd12a2d80667b2671927
abef1218992751cd87019689963e62aa3c614f31
refs/heads/master
2022-12-10T13:28:57.753225
2020-08-31T11:20:49
2020-08-31T11:20:49
291,694,670
0
0
Apache-2.0
2020-08-31T11:20:50
2020-08-31T11:18:48
null
UTF-8
Python
false
false
7,269
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.exceptions import AccessError, UserError, ValidationError from odoo.tests import tagged from .test_sale_common import TestCommonSaleNoChart @tagged('post_install', '-at_install') class TestAccessRights(TestCo...
[ "babak@gnco.ir" ]
babak@gnco.ir
f6bb2899a6ff92ba5e477f3de7c6537b0ec6391e
14f66af5aefd883ed49d3c3bd349581e64f2207d
/app/user/tests/test_user_api.py
fb932470d2aa8c492618d0ab71b698b099ab06dc
[ "MIT" ]
permissive
CompSci2013/recipe-app-api
10e2dd253ba7b53c2a3a2ea719b22b874fb4df70
b5546ad7b1d05492eacf2d086274e45a97a86f24
refs/heads/main
2023-04-25T18:48:36.906440
2021-05-31T14:32:13
2021-05-31T14:32:13
359,903,860
0
0
null
null
null
null
UTF-8
Python
false
false
3,287
py
from django.test import TestCase from django.contrib.auth import get_user, get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') def create_user(**params): return get_...
[ "kcollins2004@gmail.com" ]
kcollins2004@gmail.com
b71f4f4c0c82b54bf051e4b6b83878612d3b30c1
dc9f2638209a9be235a1c4acc44fe2a26256c4b4
/venv/projects/lib/python3.8/site-packages/pip/_vendor/msgpack/_version.py
7f0f77b35e6f3f520b75e0ff6182498615a30fa0
[]
no_license
alwinruby/RealWorld
4f5fcaed68fdd2d9fc37f5973fec365195cb3e9e
ec446f96f3545cb847429b5e33cefdc4f00ce432
refs/heads/main
2023-08-13T10:28:40.528047
2021-10-10T14:58:23
2021-10-10T14:58:23
408,079,742
0
0
null
null
null
null
UTF-8
Python
false
false
20
py
version = (1, 0, 2)
[ "alwinsolanky@gmail.com" ]
alwinsolanky@gmail.com
0e848300eeaafad6eda8c0a708e85d39d6455cce
5229fd82b398b4f1fc370dd874af780f41837c35
/bot/triggers/commands/story.py
4c10178151d808eb8de42b894985b5a220238436
[]
no_license
kdung/jenova
3264bd2b0dd6b5aa32cd4517a3f325d643f8e23a
df0589ee8a6f4e1da8183ee113bb727e7122b27b
refs/heads/master
2020-12-30T15:42:10.101999
2017-05-12T08:19:38
2017-05-12T08:19:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
"""Trigger implementation to tell a story""" import time import random from ev3bot.trigger import Trigger from utils import tts class Story(Trigger): """Trigger to tell a story""" def __init__(self): Trigger.__init__(self) self.stopped = False def run(self, execution_context): ...
[ "griever@Dzungs-MacBook-Pro.local" ]
griever@Dzungs-MacBook-Pro.local
2adf1b16dc0fe58417825d349d3e29ccf10e3135
a247e3a40bca426f604ee057319ae3f7fce5c22f
/django1/venv/bin/django-admin
8279c65ae89eb5715eb0a7f394b21f42bacec363
[ "MIT" ]
permissive
stephenndele/django-1
fcb5cd2a8598b5d68855814fb588a231e06efc09
11be0289bc3b6b3234b1e34979f282bd06cbce2e
refs/heads/main
2023-03-26T14:55:11.769279
2021-03-25T12:12:55
2021-03-25T12:12:55
349,335,362
0
2
null
2021-03-25T12:12:56
2021-03-19T07:22:05
Python
UTF-8
Python
false
false
345
#!/home/moringa/Desktop/moringa-school-projects/core/Django/django-playlist/django1/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(exec...
[ "stephenndele09346@gmail.com" ]
stephenndele09346@gmail.com
4df0a799a412b846b2b31ff74dc86ea649ff1808
dbffdb62709e36618162d708377bbc63ca76ff65
/Towers.py
6cd0a4f0bd63f0cffc4cd3b7f9465468b6458b8c
[]
no_license
Yupiter5505/Project-4th-sem-
21f8dfc61ab30d77795d642a7a31e2677473286c
201917745dc30a50a12ec62e8115ca6174a25693
refs/heads/master
2021-04-27T03:57:24.588626
2018-05-21T07:32:55
2018-05-21T07:32:55
122,723,661
1
0
null
null
null
null
UTF-8
Python
false
false
5,190
py
import pygame as pg import SingleNumbers as SN import random as rnd import Effects class Bullet: def __init__(self, position: SN.Vector, direction: SN.Vector, damage, effect): self.position = position self.direction = direction # Радиус-вектор тайла прибытия self.damage = damage...
[ "noreply@github.com" ]
Yupiter5505.noreply@github.com
d7833d20c9de724dea0ff27dce90bb80523ae797
a22cc323b29f50da397d8363ac2521e3542a0fd7
/tests/dpaycli/test_witness.py
a4b82ed9882df3b715a284b0fdf967a5516a4db1
[ "MIT" ]
permissive
dpays/dpay-cli
1a58c7dae45218e3b05b7e17ff5ce03e918d27b9
dfa80898e1faea2cee92ebec6fe04873381bd40f
refs/heads/master
2020-04-01T09:26:43.200933
2018-10-15T08:03:06
2018-10-15T08:03:06
153,075,154
0
0
null
null
null
null
UTF-8
Python
false
false
4,801
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import super import unittest from parameterized import parameterized from pprint import pprint from dpaycli import DPay from dpaycli.witness import Witness, ...
[ "jaredricelegal@gmail.com" ]
jaredricelegal@gmail.com
4dc1e5bc9c09fba76c3d8b83675b6caf6567e2f6
3da0a07e0c89f2cb0331752f531d8c2c3e728c0c
/testing/cjdemo/test_order.py
51dd338c1244e82e0faae1b8522dfae580c649c8
[]
no_license
yindan01/yindan
4e1dffa418d7b4d90396b12b7c1fbda4e492d036
ec596632c34e90acf1496128fa0d04f2906fd5b7
refs/heads/master
2022-12-22T22:37:32.177854
2020-09-22T14:46:52
2020-09-22T14:46:52
283,661,616
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
import pytest @pytest.mark.last def test_foo(): assert True @pytest.mark.third def test_bar(): assert True @pytest.mark.fourth def test_aar(): assert True
[ "1130083087@qq.com" ]
1130083087@qq.com
9f70e24acb6247d89104f02908ac2638143ee173
ca4910e944cca453050299cb6c8e856c06a76fb0
/blog/settings.py
1175ab8bc4cd442f1245d312eacf024ca32835cc
[]
no_license
SonerArslan2019/djangoRESTAPI
f8e33cd8570f86f14810ef8fabea918503e0fc90
5398b578524fc5c6eb3b7ed51db68bc4f3687221
refs/heads/master
2023-04-18T01:45:45.093105
2021-04-24T09:50:22
2021-04-24T09:50:22
360,634,992
0
0
null
null
null
null
UTF-8
Python
false
false
3,603
py
from pathlib import Path import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the sec...
[ "soner@arslanyapi.com.tr" ]
soner@arslanyapi.com.tr
5bcdd778d1e6f731488beb83daa9a83c0f4996a2
b8e29b6e957b0a55571f7cffc4357666a43fb56e
/mxnet/insightface/insightface/src/symbols/fdpn.py
0544f8347e0d24662ee3f007fe9468e1d3a22ddd
[ "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
aliyun/alibabacloud-aiacc-demo
b9bbe565021757ecaea0e7d7209632cbdb5cc8ab
2e49deeb38d12d4af4c5e50bb15d731c4bbf4cf1
refs/heads/master
2023-05-14T08:09:33.067050
2023-05-04T08:19:51
2023-05-04T08:19:51
228,604,743
38
14
Apache-2.0
2022-06-22T02:41:01
2019-12-17T11:46:44
Python
UTF-8
Python
false
false
9,635
py
import mxnet as mx import symbol_utils bn_momentum = 0.9 def BK(data): return mx.symbol.BlockGrad(data=data) # - - - - - - - - - - - - - - - - - - - - - - - # Fundamental Elements def BN(data, fix_gamma=False, momentum=bn_momentum, name=None): bn = mx.symbol.BatchNorm( data=data, fix_gamma=fix_gamma, mom...
[ "ziqi.yzq@alibaba-inc.com" ]
ziqi.yzq@alibaba-inc.com
91489aef1cfcb6675882a5ed78249f485727af5a
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/access_package_request_state.py
8d2207eae29267f561c8c719c8dc968d0f903cb0
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
410
py
from enum import Enum class AccessPackageRequestState(str, Enum): Submitted = "submitted", PendingApproval = "pendingApproval", Delivering = "delivering", Delivered = "delivered", DeliveryFailed = "deliveryFailed", Denied = "denied", Scheduled = "scheduled", Canceled = "canceled", P...
[ "GraphTooling@service.microsoft.com" ]
GraphTooling@service.microsoft.com
95869793a95931568444941801533d4d5e6cb5eb
d6be2453d1c4428a4b9d9f78ea80e7e1a39f0f5b
/src/utils.py
20225ec0e46d35e08388cbfdfc634ce8c9a2e343
[]
no_license
bcrestel/sls
8f6a6356264747285fb193b2ebfa1c2914aa0fe3
f0392135e5c4072e3341998651091c8455a882fb
refs/heads/master
2020-12-15T16:51:03.663284
2020-10-06T14:22:58
2020-10-06T14:22:58
235,185,248
0
0
null
2020-01-20T19:47:07
2020-01-20T19:47:06
null
UTF-8
Python
false
false
1,478
py
import hashlib import pickle import json import os import itertools import torch import numpy as np def hash_dict(dictionary): """Create a hash for a dictionary.""" dict2hash = "" for k in sorted(dictionary.keys()): if isinstance(dictionary[k], dict): v = hash_dict(dictionary[k]) ...
[ "issam.laradji@gmail.com" ]
issam.laradji@gmail.com
f0cb718b6420d11174583a18554cb1278090ca7f
b67693ed0ab64bc540dd5d4d24a8fb81efc08031
/build/catkin_tools_prebuild/catkin_generated/pkg.develspace.context.pc.py
f30dc76d7d900620f2d7aaa1c1354eee7c788d31
[]
no_license
kbhakt/epicIMU
35cc609404ae3661ec435e4fc19a74d8d7c3ce89
0904281e4956bac47732577d65e25afee69aff06
refs/heads/main
2023-06-06T11:22:28.041534
2021-06-22T13:25:51
2021-06-22T13:25:51
379,272,854
0
1
null
null
null
null
UTF-8
Python
false
false
420
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "catkin_tools_prebuild" PROJECT_SPACE_...
[ "kbhakta3@gatech.edu" ]
kbhakta3@gatech.edu
186088d2e2d202f72cb654fef5b82afc371e8bb8
1643b8c9dfec62cb41e1172a8602ffc8d510b01b
/00-学习/1.0-类型-常量-输出-分支.py
25e68268c74f7d42d92296498c68941b5ecf6bbf
[]
no_license
yangyiko/helloworld
56b922f0b26342f37e5c4dee1c002c31940fb02b
40da8a23b3de304a092574a2856d26d3920b176b
refs/heads/master
2020-04-16T18:53:44.712759
2019-01-15T11:40:22
2019-01-15T11:40:22
165,839,076
0
0
null
null
null
null
UTF-8
Python
false
false
4,278
py
"""注释""" #=============================================================================== # """注释""" #=============================================================================== # 特殊注释 # encoding=utf-8 # coding=utf-8 # _*_ coding:utf-8 _*_ # _*_ coding:utf-8 _*_ # Python2.x 版本 from test.test_tools.test_unparse impo...
[ "yangyiko@163.com" ]
yangyiko@163.com
f6a760119a4c4b2c583957abb4a7066cbb64a2eb
dc67e70a303f265ee6cb4c1a2d61fe811053fb3d
/beginner/066/A.py
cabb38041ad8e0ea035492830c9cef953fb894b2
[]
no_license
cry999/AtCoder
d39ce22d49dfce805cb7bab9d1ff0dd21825823a
879d0e43e3fac0aadc4d772dc57374ae72571fe6
refs/heads/master
2020-04-23T13:55:00.018156
2019-12-11T05:23:03
2019-12-11T05:23:03
171,214,066
0
0
null
2019-05-13T15:17:02
2019-02-18T04:24:01
Python
UTF-8
Python
false
false
193
py
def ringring(a: int, b: int, c: int)->int: return sum(sorted([a, b, c])[:2]) if __name__ == "__main__": a, b, c = map(int, input().split()) ans = ringring(a, b, c) print(ans)
[ "when.the.cry999@gmail.com" ]
when.the.cry999@gmail.com
4eaa794568039ff5217f0ae9c40798be17b54adb
2eecc6419b28b5f5b1d84f0fd04861e7de05027d
/read_files.py
1be2b02e96cb572e659e749ed22a5097f3e7bae5
[]
no_license
priyanka36/RetinalDiseaseClassification
61f49b16c9bc447c2454f1969e6830610ee6f5e0
3cf5932dc0dcec1632f90a7798215fee5df0ba2c
refs/heads/main
2023-06-26T19:29:05.365292
2021-08-01T00:15:30
2021-08-01T00:15:30
390,621,647
1
0
null
null
null
null
UTF-8
Python
false
false
3,762
py
import os import numpy as np import cv2 from glob import glob from tqdm import tqdm import imageio from albumentations import HorizontalFlip,VerticalFlip,ElasticTransform,GridDistortion,OpticalDistortion,CoarseDropout def create_dir(path): if not os.path.exists(path): os.makedirs(path) ...
[ "poudelnipriyanka@gmail.com" ]
poudelnipriyanka@gmail.com
b9f098dd72ef674afb3bd21f560cc6124c6f2a47
d159a228eebf3a050e75f72f8e49c64e19a09eb8
/ui/SwitchButton.py
24bed49fc5f28fb547fceaffa54b56c9b1941a60
[]
no_license
LK007CX/General-Industrial-Smart-Monitoring-V2.0
ca7f34d3f26e6e09f73a77f7b9bf4aca19590968
ae16825504ab4b081779867513ea7a068acff7b1
refs/heads/main
2023-06-20T09:57:16.338101
2021-07-19T14:28:33
2021-07-19T14:28:33
343,361,608
0
0
null
null
null
null
UTF-8
Python
false
false
5,626
py
#!/usr/bin/python3 # -*- coding: UTF-8 -*- import sys from PyQt5.QtCore import pyqtSignal, QTimer, QRect, QRectF, QSize, Qt from PyQt5.QtGui import QColor, QFont, QPainter, QPainterPath, QPen from PyQt5.QtWidgets import QPushButton, QMainWindow, QApplication """ TO DO LIST """ class SwitchButton(QPushButton): c...
[ "1317108121@qq.com" ]
1317108121@qq.com
10912b08ab87df2a95943513ea9d012cdd01ef7b
b78ef5518bf4c735b86a8ecf50fba6cc95dd3fc8
/django/09_DRF/drf/urls.py
bcbada83c30c75c633435b07318323fa2a5e78f5
[]
no_license
AmberPark/TIL
58ff9dcc4607ae199deb278d8f4971aafa6addac
b5a3455f15b3eeb35dc994116e06b74e67234669
refs/heads/master
2023-07-10T20:24:30.439653
2021-08-22T12:57:38
2021-08-22T12:57:38
332,991,061
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
"""drf URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
[ "amberso1996@gmail.com" ]
amberso1996@gmail.com
2984f1f901892baa21d75ff5c8020bbf9ce301ea
0a7aa62ff09fef26f1e3af5cafa95cd22ae146f9
/bin/calc_edge_activity.py
2b4c1452450044f4816605a10d38983a175ff8f6
[]
no_license
Boston123456/MIDAS
bd32313d8aced4dfc4c9a77ca63f9229fe06f818
fcacae06be387fd692bb5d33e40c56bf7a268e89
refs/heads/master
2022-04-10T08:34:52.626800
2020-04-09T12:05:17
2020-04-09T12:05:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,980
py
import networkx as nx import sys import csv import matplotlib.pyplot as plt from graph_node import Graph_node from centrality import calc_centrality from calc_edge_act_parallel import * def dic_return(temp_dic, temp_key): result=0.0 if temp_key in temp_dic: result= temp_dic[temp_key] else: result= 0.0 return...
[ "noreply@github.com" ]
Boston123456.noreply@github.com
72d7de871b2fb085d76442aa9a24ad3405cd961b
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/centerface/preprocess.py
a985c6b64428994c27265c5fcd6ff413bee6b92a
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
2,585
py
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
[ "chenhaozhe1@huawei.com" ]
chenhaozhe1@huawei.com
071f4455fe0d1f60f156ab41e827e9bf8ac15021
3fe0db879006076936376ef1b8b573f300e4a9f8
/client/gui/resources_rc.py
e3f8f80c0ebffd774d80e97f838f0ab2558ad24c
[ "MIT" ]
permissive
Laikos38/ADS-TP-Seguridad
a3e6eef37a208341481b8781528acf77acb4bec8
d6cf0403a6c2e4eaed3adc344c28b3e82354d001
refs/heads/master
2023-05-27T11:27:10.789356
2021-06-04T21:42:03
2021-06-04T21:42:03
362,307,644
0
0
MIT
2021-06-04T19:38:57
2021-04-28T02:00:26
Python
UTF-8
Python
false
false
24,439
py
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x12\xc6\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x01\x2c\x...
[ "j.f.maurino@gmail.com" ]
j.f.maurino@gmail.com
977cd1f34ed3ff2b174cb7a5bb2ad1829606c277
fbff973537eae45b724b23e9b6fc8692da959b21
/app/core/config.py
979658548ef83b1914a5730ab318dedd6ab5b824
[ "MIT" ]
permissive
lsetiawan/cava-metadata
d4a8878480cd9da4bfa163b9d9c42d705a0fb263
e45c469a4b5cbdebfba74ab0031fb94eb59fd724
refs/heads/main
2023-04-08T02:28:24.402853
2021-01-27T20:02:23
2021-01-27T20:02:23
358,033,596
0
0
MIT
2021-04-14T20:26:35
2021-04-14T20:26:35
null
UTF-8
Python
false
false
1,418
py
import os import fsspec # API SETTINGS SERVICE_NAME = "Metadata Service" SERVICE_ID = "metadata" OPENAPI_URL = f"/{SERVICE_ID}/openapi.json" DOCS_URL = f"/{SERVICE_ID}/" SERVICE_DESCRIPTION = """Metadata service for Interactive Oceans.""" CORS_ORIGINS = [ "http://localhost", "http://localhost:8000", "htt...
[ "landungs@uw.edu" ]
landungs@uw.edu
dcd109650ffae5939c920e522bef889514d1f60b
8e0dd6f0a1936a15a23831db614697d783031df5
/10K/LDA_10K.py
76ef8a9b080a529fe5d8b207b7818395629801f1
[]
no_license
Russzheng/Financial-Reports-Analytics
e7a375917c255d382ba3e02c1865ed71f50f4811
c741ec8d858f8e01b4c04a57df8052e1d7184767
refs/heads/master
2021-07-21T09:53:37.411259
2017-10-27T06:42:39
2017-10-27T06:42:39
103,638,473
1
0
null
null
null
null
UTF-8
Python
false
false
5,731
py
####### GENSIM LDA for 10-K Filings ####### # GENSIM: wrapped python version of MALLET # This gensim library is incredibly slow. sklearn # library's perplexity calculation method is all wrong # and the paper used MALLET. So we stick with Gensim. # But it is really slow # This file applies the LDA model using Gensim...
[ "noreply@github.com" ]
Russzheng.noreply@github.com
f9b589aa7e5cb26eda1a3b56bc67249768ee6093
4b819b9c7aee9d60689f487557e437445101188d
/lanuch/accounts/views.py
e04d7ebbd2e15bedabf699d153c0170baa54e03b
[]
no_license
Damidara16/dev
c2fe90fb70d4644bdee964ce9b7b85bf9f71c99a
f3c8666bc32b19ffb623b83019fdbf404433ece8
refs/heads/master
2020-03-10T20:14:11.173397
2018-04-15T00:56:56
2018-04-15T00:56:56
129,565,993
0
0
null
null
null
null
UTF-8
Python
false
false
3,485
py
from django.shortcuts import render, redirect from .forms import RegistrationForm, EditProfileForm, AddInfo from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth import update_session_auth_hash from .models import Author from blog.models import waste from django.contrib.auth.models import Us...
[ "sajala8624@gmail.com" ]
sajala8624@gmail.com
c7d6ae9174a1d5de81776048a2bf38d10148c42d
38c7e9a2752c03498d4807f263b60f7021f6667d
/src/doublebook/ebook.py
c08a9de4c04edcdb0884c40381c3e22df2176555
[ "MIT" ]
permissive
plysytsya/doublebook
2915ebbc8ae67cd77796776c990ffb3241af21f8
09dcd5399288c9544df928136a9e2f2e54639cbd
refs/heads/master
2020-09-21T19:08:21.663868
2019-11-29T20:25:41
2019-11-29T20:25:41
224,893,782
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
from .text_tokenizer import TextTokenizer class Ebook: def __init__(self, path): self.path = path self.read() self.tokenize() def read(self): print("Reading text into memory.") with open(self.path) as file: self.content = file.read() def tokenize(self)...
[ "pavlo.lysytsya@outfittery.de" ]
pavlo.lysytsya@outfittery.de
4c308631d8558f3143ccd5dbbebe96c450af9f82
5b10b05d22c17836aa139239bd6d2e0c7c7d8427
/5c1t/Algebra in Algorithms/task-10/all.py
6a21a428e54addf4dfa6a630c2299db51c4abf75
[]
no_license
a1ip/mipt-materials
f362218c095df61a9ade282726009909589c0e23
5e9d8cc5d32922e939d2f4c30d0250bb5352699f
refs/heads/master
2023-03-21T12:54:21.519985
2018-05-21T17:33:37
2018-05-21T17:36:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,728
py
from copy import deepcopy import numpy as np from collections import Counter, namedtuple class Node: def evaluate(self, *args, **kwargs): raise NotImplementedError() class InputNode(Node): def __init__(self, name): self._name = name def evaluate(self, *args, **kwargs): pass ...
[ "sautin1@yandex.ru" ]
sautin1@yandex.ru
12dc8e0255927fe426d8d84f615a6566ebf6cdb7
ef2b79578ebb2fd8cbccbd2af53fc60a0a188f5f
/poc/polls/admin.py
2881a09dbab98ca870e3c66313c6043cfdb728e2
[]
no_license
oscarmyepes/django-polls
15e999fdbd49b60747118bba3db3a44d3372c3f7
c503349243b20d55285086faba106bbff535c095
refs/heads/master
2023-04-27T01:54:38.938285
2020-01-04T03:40:32
2020-01-04T03:40:32
231,703,569
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
from django.contrib import admin # Register your models here. from .models import Question, Choice class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): fieldsets = [(None, {'fields': ['question_text']}), ('Date information', { 'fields': ['pub_...
[ "oscarmyepes@gmail.com" ]
oscarmyepes@gmail.com
cc9a5cfca7fa31d2f2c94d92b36a1c1bd5caae4b
a9e6a1dea27a984b7e3f46c56e5d62e57ac5d8a5
/first/gevent/3.py
8557daca47a4c80492bf9f028e91463ad466bcb9
[]
no_license
spiderTom/pythonReference
fd2f21c0c3b919e08429b27464b4d161a20db2f7
fa1d7de8630c12a8add3a7370a452daef0e62c73
refs/heads/master
2021-01-19T05:01:01.490392
2017-04-06T09:01:04
2017-04-06T09:01:04
87,408,456
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
def fibon(n): a = b = 1 for i in range(n): yield a a, b = b, a + b for x in fibon(20): print(x)
[ "tomtubo@163.com" ]
tomtubo@163.com