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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d87951222fd9f2b48a08af76fcf84366e5cb50d2 | 94d502b2dab7202a39d6ddd1c6f94d772deb1f1a | /buildfunctions/d.py | f1c1f2690abd252c743aa47d882d542f72e4d9c9 | [] | no_license | titangate/raytracer | 3a0bc263207ffc79ca1612369720d1bb25ed11c9 | adca95cb627d082591a4be7750fc5fe820c8427e | refs/heads/master | 2020-05-29T11:01:25.672556 | 2015-07-12T23:16:57 | 2015-07-12T23:16:57 | 34,577,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | from sampler import RegularSampler, MultiJitteredSampler
from camera import PinholeCamera
from tracer import ViewPlane, AreaLightTracer
from light import AmbientOccluder, AmbientLight, EnvironmentLight
from geometry import Plane, Sphere, ConcaveSphere
from material import Phong, Matte, Emissive
import numpy
from... | [
"nyjiang@uwaterloo.ca"
] | nyjiang@uwaterloo.ca |
d5f6c06496222f1ab1be818eb9eaf01281fe6935 | 78365c142474424c24dc9e0bb25620c740999527 | /task1/task1.py | b57bb4a405f77a8d606f8fa7d03432eae1e26dca | [] | no_license | deepa-karthik/Python_assignments | 77e9a312abf0a3749c824979957505e9bf10b898 | 154bd0b4abd8a310b411e69b2e034d8b53ba0389 | refs/heads/main | 2023-05-01T01:31:51.716974 | 2021-05-23T20:47:07 | 2021-05-23T20:47:07 | 365,310,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | #1) Create three variables in a single line and assign values to them in such a manner that each one of
#them belongs to a different data type.
name,age,salary="deepa",60,200.00
print(type(name))
print(type(age))
print(type(salary))
# output
# <class 'str'>
# <class 'int'>
# <class 'float'>
#2)Create a variable of... | [
"deepa.karthik.0827@gmail.com"
] | deepa.karthik.0827@gmail.com |
5a5e7d7fd0f74f12e8861148a3ac86ed39f97e2a | 05cac37ef365314dc669d6f389ec9a4c3e2d5196 | /code/training.py | b2c7e57dff907a4445e2bf8b4480c0e7d4da620f | [] | no_license | dianasaur323/twitter-recommend | 94c9797ce69dc7465f2e2baaf990165d3868e83b | 630df20e36442d9e1483198ba647e7c9840e3dec | refs/heads/master | 2016-09-06T18:29:25.612887 | 2016-01-21T09:47:04 | 2016-01-21T09:47:04 | 34,145,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # File contains processes that need to be run to train the engine.
# Methods available include
if argv[1] == "NYT":
PreProcessor.scrapeNYT(argv[2],argv[3]) | [
"dhsieh@g.harvard.edu"
] | dhsieh@g.harvard.edu |
f2613ac43e286ee6c63cc7b579b00d0c613e1729 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/1488_avoid_flood_in_the_city.py | 1789aba0bebf606b5ccb155577af2e6cf7b5dc09 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | class Solution:
def avoidFlood(self, rains: List[int]) -> List[int]:
"""Hash table.
"""
n = len(rains)
res = [1] * n
f = {}
s = []
for i, r in enumerate(rains):
if r > 0:
if r in f:
idx = bisect.bisect_left(s, f[... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
3f680456f216965b1fc0f7206491e2399e06cd9c | 2f0173bda567d45e786a54905657985631e213fb | /opsearch/DP.py | d705628269f70a152c64a85a7bc0c545bd8382dc | [] | no_license | villmi/ScrapyServerByPython | da3163ec916a502d9ef603bd8555cb14244b481e | b7bce20c9a43a9708ed648b73481d71a291bfbc6 | refs/heads/master | 2020-04-13T13:48:29.667832 | 2019-02-24T17:59:58 | 2019-02-24T17:59:58 | 163,242,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | def isMatch(str1, pattern):
if (str1 is None) or (pattern is None):
return False
flag = [(True for i in range(len(str1))) for i in range(len(pattern))]
m = len(str1) + 1
n = len(pattern) + 1
for f in flag:
f[0] = False
for num in range(1, n):
if (num >= 2) and (pattern[n... | [
"544912473@qq.com"
] | 544912473@qq.com |
f269747848d2dd0e3a79d5ecf9a288943470f20b | fdb7126e0bbd351eabd555852690ea2df0fcfedf | /tests/iterator_tests/test_vertical_advection.py | 0f649f278f2cad789e8c237052b2d163fbb500f7 | [] | no_license | tehrengruber/gt4py_functional_frontend | 17dc66031abb13168e2d92a52b1babd9345353db | c673e66e03d048a51ad80506ec18d88e5518e42f | refs/heads/master | 2023-09-05T17:51:08.071442 | 2021-11-05T15:32:11 | 2021-11-05T15:32:11 | 393,398,078 | 0 | 0 | null | 2021-08-11T23:37:08 | 2021-08-06T14:14:49 | Python | UTF-8 | Python | false | false | 3,157 | py | from iterator.builtins import *
from iterator.embedded import np_as_located_field
from iterator.runtime import *
import numpy as np
import pytest
@fundef
def tridiag_forward(state, a, b, c, d):
# not tracable
# if is_none(state):
# cp_k = deref(c) / deref(b)
# dp_k = deref(d) / deref(b)
# ... | [
"till.ehrengruber@cscs.ch"
] | till.ehrengruber@cscs.ch |
2fa71a031c40cb40889b2ce7145f7a56b30f5832 | 4b1779f878979b0609aedfef0f3204bf3f07bed7 | /vectormath.py | bcdf3056b35697844d2c17723b4b2c98f7782714 | [
"MIT"
] | permissive | NtateLephadi/csc1015f_assignment_6 | c7fd5eb278f6fc2341b0d1fafaab520f81a15775 | af7ffd74a590ef74cb1658efbca99b8705f1d45d | refs/heads/master | 2020-04-08T17:56:59.912767 | 2018-11-29T03:01:30 | 2018-11-29T03:01:30 | 159,587,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | from math import *
A = input("Enter vector A:\n")
B = input("Enter vector B:\n")
A = A.split()
B = B.split()
def addition(A, B):
C = ['', '', '']
for i in range(3):
C[i] = int(A[i]) + int(B[i])
return C
def dot_product(A, B):
product = 0
for i in range(3):
product += int(A[i]) * in... | [
"lphtum003@myuct.ac.za"
] | lphtum003@myuct.ac.za |
6c8b38b6d15a6bd41c5d52f248b988df73a5dd17 | 1a86447ebec0c6bf0ea84cd58b2bd470e272ee90 | /devices.py | 1950218d72f37561bedbf64d4ebe31307540789d | [] | no_license | mathiskuendig/IPA_Checkout_Station | 098db1667902478b702b7226785a29e5372fea24 | f22a98ffa09ddfdbd3a708205c34308f74183330 | refs/heads/master | 2021-05-21T16:41:09.104085 | 2020-05-06T08:47:25 | 2020-05-06T08:47:25 | 252,720,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,659 | py | ###############################################################################
# devices.py
#
# Contacts: Manuel Weber
# DATE: 24.02.2020
###############################################################################
import csv,os
from datetime import datetime
from myDatabase import MyDatabase
#from logger import Lo... | [
"mathis.kuendig@zuehlke.com"
] | mathis.kuendig@zuehlke.com |
ac23e3ecfead2f8831b9eadcf2718c9281b31314 | d9c2ebea31b35ab7d35b44c9c5d0dd1bf7d4b11b | /Examples/g_hBN_NF_contrast.py | 3ba244221ae0433a3d3988f0f45281b7c81df811 | [
"MIT"
] | permissive | asmcleod/NearFieldOptics | d2b0d3c6a46e503cd7cd69f60d2a86a909c6b9a3 | eb8dd0f25704ea4146abddf2d407a9bbd6c9180a | refs/heads/master | 2022-08-29T06:13:42.323023 | 2022-08-06T02:41:17 | 2022-08-06T02:41:17 | 96,278,983 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,082 | py | # -*- coding: utf-8 -*-
# This example shows construction of a graphene heterostructure comprising a
# monolayer of graphene sandwiched between two thin layers of hexagonal boron
# nitride (hBN), all sitting on a silicon substrate with topped by a silicon
# oxide layer. We compute the reflection coefficient o... | [
"am4734@columbia.edu"
] | am4734@columbia.edu |
828dfa447c59d62524caf79e751b49b3197e90c4 | 54cf08b3eed76c9bc9f72a88a705fea12c1648f4 | /AnkitPort/urls.py | 82900efa82afe347848437f9a3785f21c0ddd7d1 | [] | no_license | mrattitude0913/AnkitPort | 3cd0407ab6b0d49ef2a49ff8b4f31e24dd34b667 | e451c65da8e3cc6e1db4f10cee725d41b5427777 | refs/heads/master | 2022-12-09T11:13:52.159431 | 2020-09-11T13:19:27 | 2020-09-11T13:19:27 | 294,700,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """AnkitPort URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"aupadhydy007@gmail.com"
] | aupadhydy007@gmail.com |
580890856816b84b2c399beed261e3e18ce678fc | 872b40b6878d6292b704d50526831e2dae580960 | /convert2cable_pft/cable_lai.py | 9c2209f31949f54753b2ce413eb214774c5d233d | [] | no_license | lteckentrup/LIG | c47233060a9e4b4db242cb21863e2b79c7fa4087 | 1960c27433f2b58fcf8e30075b6f8710e3cb499b | refs/heads/main | 2023-06-02T03:38:52.571239 | 2021-06-24T05:46:09 | 2021-06-24T05:46:09 | 363,819,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import xarray as xr
import numpy as np
import matplotlib.pyplot as plt
ds_fpc = xr.open_dataset('fpc_LPJ-GUESS_1066-1100_BC_detrend.nc')
ds_fpc['Woody'] = ds_fpc['Total'] - ds_fpc['C3G'] - ds_fpc['C4G']
ds_fpc['Grass'] = ds_fpc['C3G'] + ds_fpc['C4G']
ds = xr.open_dataset('lai_LPJ-GUESS_1066-1100_BC_detrend.nc')
ds['E... | [
"noreply@github.com"
] | noreply@github.com |
f7a4637914542b39f88b631fb0e91e6734546313 | 68b8e6549345ba020bdd7ac1eeef03af26c251fd | /tests/test_ia_markov.py | 0857a5521d2e26b80eed17cc8bbbfa75236d8b76 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Abelarm/python-ia-markov | 8826e31746ce4de26cd023db26b986249c9cf88a | 8bef5d620b77a0944924263af6042396cf9b768b | refs/heads/master | 2020-03-30T10:44:01.936698 | 2018-10-01T18:21:45 | 2018-10-01T18:21:45 | 151,133,654 | 0 | 0 | BSD-2-Clause | 2018-10-01T18:00:03 | 2018-10-01T18:00:02 | null | UTF-8 | Python | false | false | 83 | py |
import ia_markov
def test_main():
assert ia_markov # use your library here
| [
"accraze@gmail.com"
] | accraze@gmail.com |
18fda8c6b8d0b8e2500c3b36b9827d4b0e77f14c | 5ce2a1a10fe8e0ec152ae3446dfef11c7b65bd5b | /HelloWorld/operators.py | 16da57c52d8aba0357c13230477001f67b88717c | [] | no_license | mhirai-bit/Learn_Python_Programming_Masterclass | f2888d06c6d378380b3bfb38cafe99d298c8a696 | 7c9a7217102f42cdb4e3ce6f95757c79bb4b14fc | refs/heads/master | 2022-11-28T05:00:45.001706 | 2020-08-12T09:16:12 | 2020-08-12T09:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | a = 12
b = 3
print(a + b) # 15
print(a - b) # 9
print(a * b) # 36
print(a / b) #4.0
print(a // b) #4
print(a % b) # 0 modulo
print()
print(a + b / 3 - 4 * 12)
print(a + (b/3) - (4*12))
print((((a + b)/3)-4) * 12)
print(((a + b)/3 -4)*12)
c = a + b
d = c / 3
e = d - 4
print(e * 12)
print()
print(a/(b... | [
"mkohri22@gmail.com"
] | mkohri22@gmail.com |
cdab036bcc144a1b4af05f01908dd0ef707765b4 | 8c3a9b16293a5d741a3ec476b5933fe261ba9537 | /za_schools/src/scripts/populate_databases.py | 51f908b2b12ab6275db8b942b79da42dda0dc353 | [] | no_license | ditjhaba/za-school-results | 7b5a21183003de4d28c772c7d590133e6be12c20 | a335c3a628aa7c1ce7c2511e55221b48960bf4a5 | refs/heads/master | 2021-01-22T09:03:57.358891 | 2014-08-01T22:07:19 | 2014-08-01T22:07:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,586 | py | """
Copyright 2014 J&J Digital Project
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limit... | [
"charles@aims.ac.za"
] | charles@aims.ac.za |
ff39b83bf5cb4e098e6febc68d2ac3edc250047f | 1ddc2c622c544e2cb226862e5d4ecc194add3a51 | /104/max_depth_tree.py | 20bbd39ed25b480c4d81343480acaa3206aea2c2 | [] | no_license | evorontsova/LeetCode | 73b01b5b8bb1a0c477a6531e4bb4ec62a8b5b60e | 1595421fa5667524cec547086217ff377a5b177c | refs/heads/main | 2023-07-31T23:21:59.853417 | 2021-09-26T18:38:08 | 2021-09-26T18:38:08 | 392,981,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 13 20:02:37 2021
@author: Evgeniya Vorontsova
LC Problem 104 Maximum Depth of Binary Tree
Given the root of a binary tree, return its maximum depth.
A binary tree's maximum depth is the number of nodes along
the longest path from the root node down to the farthest lea... | [
"noreply@github.com"
] | noreply@github.com |
1e3bef00fde8ecdcf4dfaecc5062592f363f8474 | 4ef62b6ec9677425b39cd9d0f880018b33b5e345 | /sailor/urls.py | 1b57b89b4d991437af78e7650814ae262bc54da8 | [] | no_license | DrunkenDebuggers/DrunkenSailor | 57db73367875ef013a298c93ab7c007984e83892 | 067a0756e6520e121e67ef86e08deb6c94f91b4c | refs/heads/master | 2020-12-24T15:14:46.864975 | 2014-12-29T11:30:54 | 2014-12-29T11:30:54 | 23,201,410 | 1 | 0 | null | 2014-08-22T11:09:27 | 2014-08-21T20:12:04 | Python | UTF-8 | Python | false | false | 226 | py | from django.conf.urls import patterns, url
from sailor import views
urlpatterns = patterns('',
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'),
) | [
"buherator@silentsignal.hu"
] | buherator@silentsignal.hu |
3127f5f74189ef235384867419086c5ee08f9d05 | 289c08a9460086c301ef56f31640e888fc376a46 | /test_models/7p_6t/check_data.py | cffb31c579d362a5e4dd176944963dc14d8f5bbd | [] | no_license | nailimixaM/LCL-NN | 5b62605e514f9ba353f07dc87ca9f9929a135981 | 4b9da6749f74325513d395856c0ce5fec6928f4e | refs/heads/master | 2022-12-29T00:08:12.662018 | 2020-10-16T16:02:43 | 2020-10-16T16:02:43 | 263,338,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | preprocessing_scripts/check_data.py | [
"mlc70@eng.cam.ac.uk"
] | mlc70@eng.cam.ac.uk |
edb781d30e430c9c08333dbb372211b7b2c9cccd | 35d563efccf65d7462fd81ac3e5d2c83cdc8dd2e | /penScan/plugins/weblogic.py | 01f1cb384ab9dff5eb53ac9579e754485529f165 | [] | no_license | conix-security/audit-penscan | 6d8973c834caaf5f33429a28e08533632458916e | 0b88cab77243cbfa28425af30fa3e29579de2e7d | refs/heads/master | 2022-12-31T14:05:30.962385 | 2017-01-20T15:19:07 | 2017-01-20T15:19:25 | 57,120,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | '''
plugin WebLogic
triggers=servlet
ports=7001
'''
import os
import sys
import httplib, urllib
def tryingCreds(ip_addr,port):
print "[*] Trying default weblogic creds on "+ ip_addr
f_users = open(os.path.dirname(os.path.realpath(__file__))+ "/wordlists/users", 'r')
f_passwds = open(os.path.dirname(os.path.r... | [
"adrien.peter@conix.fr"
] | adrien.peter@conix.fr |
c8cfb0d13f86d1ce92d7d27c2adb46b094bc1a13 | ecdbe50c5186100c7077b6c50e4ec7199ed0d784 | /matmult1_2.py | 48e550562abe2791ada999d7ad2b0d6486bc74e6 | [] | no_license | Quasi-quant2010/cython_matmult | e003645e12bbbdc9f962b7a0b035f8509f9afa02 | 77a88d8c95072522331d102f3aeb662c4514d3c2 | refs/heads/master | 2021-01-22T02:03:25.328237 | 2013-12-31T13:47:35 | 2013-12-31T13:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # -*- coding: utf-8 -*-
import numpy as np
def matmult_intrn(a,b,iterations):
row_c = a.shape[0]
col_c = b.shape[1]
c = np.zeros( (row_c,col_c), dtype=np.double )
for iteration in xrange(iterations):
c = np.dot(a,b)
return c
def wrapper_matmult(x,y,iterations):
"""
A warppe... | [
"root@nakai.(none)"
] | root@nakai.(none) |
f4d93735199b77d96a538c80e2aeff92a7cd4f14 | f1d501d68bfa93f90a74eeee68a67da1316bc0f3 | /which_plates/main.py | 9489e300bdcc5a928a85d07f71530f360dce625e | [] | no_license | drewverlee/which_plates | b7c1aa0a1db3575155ed8937bd9c4dabdb58a333 | f4adfb0a5bfe5c3f4835fa1a72f07b3c01d710c6 | refs/heads/master | 2020-04-13T02:52:57.974209 | 2015-04-26T16:29:02 | 2015-04-26T16:29:02 | 33,374,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | """
Functions
* which_plates : finds path of least effort
"""
from which_plates.make_totals import _make_totals
from which_plates.closest import _find_closest_goals
from which_plates.goals import _make_goals
from which_plates.a_star_search import _a_star_search
from which_plates.priority_queue import _PriorityQueu... | [
"drew.verlee@atomicobject.com"
] | drew.verlee@atomicobject.com |
a7bad4ce3abfb7a5d641cd43643bf7723cbb08fb | ffa242b3cae3520ee2da975468014fb3b04cbe34 | /jydelv/BrowserView.py | daf10cec7850e70e3f1a0478a84bd034a657a11d | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | krismz/Delv | 2b4d5a78ed6f0319be93a71fa8323d9c762c854d | c88e3a2f705feb88fd2c06e7f7910615327a6404 | refs/heads/master | 2021-01-10T21:29:14.455418 | 2015-09-28T18:55:18 | 2015-09-28T18:55:18 | 13,383,902 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,222 | py | # ======================================================================
# Copyright (c) 2013, Scientific Computing and Imaging Institute,
# University of Utah. All rights reserved.
# Author: Kris Zygmunt
# License: New BSD 3-Clause (see accompanying LICENSE file for details)
# =========================================... | [
"krismz@sci.utah.edu"
] | krismz@sci.utah.edu |
19231243102cae313e9ffe1fb4aa503ac094635f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_permutation.py | 995d0cfcfbff595c0f8b2d0a59d0d980653557db | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py |
#calss header
class _PERMUTATION():
def __init__(self,):
self.name = "PERMUTATION"
self.definitions = [u'any of the various ways in which a set of things can be ordered: ', u'one of several different forms: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1b1e4a3b67cbe0ef0be074e07e830c69dd8e1ec0 | 834c13ca724379cea242c9cd48279e04620c0a7c | /cards/templatetags/forms.py | f21a1fedaed346cb4f1e8e534e374234c45dca27 | [] | no_license | arnoyim/poker | bd20e79eefada3e7143084605f5868222121b376 | 86f41462c03bd738700ab8ae9945a832169b57fb | refs/heads/master | 2021-01-22T17:47:36.538275 | 2014-07-25T22:54:02 | 2014-07-25T22:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py |
from django import forms
from django.contrib.auth.forms import UserCreationForm
# from django.contrib.auth.models import User
from cards.models import Player
__author__ = 'Arno'
class EmailUserCreationForm(UserCreationForm):
email = forms.EmailField(required=True)
class Meta:
model = Player
... | [
"arno.yim@gmail.com"
] | arno.yim@gmail.com |
5148241c3ae38b7e5c07c6e630db899b97f46acb | 2a50f19e2a79dec0f43bd41ef43e091e30f0d20b | /main.py | b19b985c890238ac7adb1cf2478ece31201a44eb | [] | no_license | octavio-sosa/mountain_car | 27d2ea804b55a46237ccde42fa95472feece0a12 | c0d404d694d586678d095c0a97f5543c32b66509 | refs/heads/master | 2023-01-07T20:40:55.700525 | 2020-11-14T22:07:11 | 2020-11-14T22:07:11 | 312,069,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | import gym
import numpy as np
from plot.plot import plot
def get_state_index(state, observ_space_low, observ_bin_size):
index = (state - observ_space_low) / observ_bin_size
return tuple(index.astype(np.int))
def main():
env = gym.make("MountainCar-v0")
env.reset()
# init q-value constants
LEA... | [
"octavio@ku.edu"
] | octavio@ku.edu |
647a572e9ba2e7966acdd91addd8ee34c6ae74ea | 18427bd66cce008820edc23c581d5dfcd1bbfa73 | /smtp_email.py | e7ad7d12d571d3064767c5d9070b1c3eae1444e2 | [] | no_license | muthuguna/python | 99e5ca2321acec4297f131c29b4eeedf496b5e75 | 9613824cd44a99102cde54b10f03a3f8b78e8c7d | refs/heads/master | 2021-01-09T12:01:05.860912 | 2020-02-22T06:45:08 | 2020-02-22T06:45:08 | 242,293,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #Go to this link and select Turn On
#https://www.google.com/settings/security/lesssecureapps
import smtplib, getpass
server = smtplib.SMTP_SSL("smtp.gmail.com", 465)
userName = input("Enter userName:")
pwd = getpass.getpass("Enter Password:")
server.login(userName, pwd)
server.sendmail("From Email id", "To Email id", ... | [
"noreply@github.com"
] | noreply@github.com |
0f1da3d71f0983d12aa74e5081d45f5618982652 | 553e972f5c574ae81320cdeaf0fa5b0501757d41 | /OpenCV/customInterfaces.py | 5bf8ee4438893013333afb9fde596136c2cfc5ff | [] | no_license | yashasvimisra2798/OpenCV_Beginner | db2dac707d4e6e9890b5be0bb7269823e453fb83 | c0ebf2a68147dfabb941904eaebfe22cb7b7cb4e | refs/heads/master | 2022-11-30T11:56:51.753849 | 2020-08-19T15:26:24 | 2020-08-19T15:26:24 | 287,553,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | #Designing our own real time interfaces
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
color = (0,255,0)
line_width = 3
radius = 100
point = (0,0)
#Function to get the information everytime you put the mouse on video feed
def click(event, x, y, flags, param):
global point, pressed
if event == cv2.EV... | [
"54177363+yashasvimisra2798@users.noreply.github.com"
] | 54177363+yashasvimisra2798@users.noreply.github.com |
84d3852ea9e37451d2df07cf5855edabe663ba12 | 754f71f70dfd6a22944d8d872c6d2f1d6983ac14 | /tests/serial_frame_builder/test_miso_frame_builder.py | a78831ae697787e71eac1215a585a220bf59fbf5 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | Sensirion/python-shdlc-driver | 052685da8db5629fa5929da65000210db82358e7 | 31e9683c27004ee05edf89996d656bc50f5bdb3a | refs/heads/master | 2021-06-10T10:35:47.299481 | 2021-03-19T08:47:12 | 2021-03-19T08:47:12 | 144,961,065 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | # -*- coding: utf-8 -*-
# (c) Copyright 2019 Sensirion AG, Switzerland
from __future__ import absolute_import, division, print_function
from sensirion_shdlc_driver.serial_frame_builder import \
ShdlcSerialMisoFrameBuilder
from sensirion_shdlc_driver.errors import ShdlcResponseError
import pytest
def te... | [
"urban.bruhin@sensirion.com"
] | urban.bruhin@sensirion.com |
17b3bd9e1b3438573a97b406d7053e418d73586b | 8179d57d29972653c966b713814a35a0c87704a4 | /dumpstermap-backend/dumpsters/management/commands/importfallingfruit.py | 05f3f40ff5ce6427286e14aae3011c6fe9e210ef | [] | no_license | mcverter/Dumpstermap | ec00ff6c8cf5ccc0afc4a3acf61b201dd3026194 | 55b664a479862230ede8d6cef2bcf5ee21283480 | refs/heads/master | 2021-01-23T02:16:13.135283 | 2016-10-22T10:21:50 | 2016-10-22T10:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from django.core.management.base import BaseCommand, CommandError
import csv
from dumpsters.models import Dumpster, Voting
class Command(BaseCommand):
help = 'Imports Dumpsters from fallings fruit .csv file'
def add_arguments(self, parser):
parser.add_argument('file', nargs='+', type=str)
def ha... | [
"mail@mrtz.me"
] | mail@mrtz.me |
b556abd64b99542196d2f3ad8714dce4c12d2d3d | 768f7a8aebf2969ce66404068df975aa98737f07 | /pyteal/ast/err_test.py | e52afc3c2c756514fd629ba12be94cdc09c7821e | [
"MIT"
] | permissive | Lumene98/pyteal | b2e1201aae006e7ea9492f0c42af8cee99caf4cd | 9191e3c6074eaa7aaefac7dab0ab024d1110f8a6 | refs/heads/master | 2023-03-24T23:32:25.569906 | 2021-03-19T20:30:52 | 2021-03-19T20:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import pytest
from .. import *
def test_err():
expr = Err()
assert expr.type_of() == TealType.none
expected = TealSimpleBlock([
TealOp(Op.err)
])
actual, _ = expr.__teal__()
assert actual == expected
| [
"noreply@github.com"
] | noreply@github.com |
a2676e558ee7b10567e7d3604eccdaaab446eb0f | c1b7655fbbf5e647c9de01d55bf31f044e26b7bf | /HE_cell_classification/predict/predict_Local.py | 58a36cc8ee6751d13abcac3b49b2f6dc8a825d63 | [] | no_license | sara-kassani/UNMaSk | ef170ddcfd7b8b5599e7d412d547084848308eb1 | c03f56a6e926fe14b1923470d22a112892116e38 | refs/heads/master | 2023-07-17T12:38:46.086746 | 2021-04-29T19:59:48 | 2021-04-29T19:59:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | import os
from parse_arguments import get_parsed_arguments
from classifier.sccnn_classifier import SccnnClassifier
from classifier.subpackages import NetworkOptions
#########comment the below two lines if its running on a cpu environment###############
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.envir... | [
"noreply@github.com"
] | noreply@github.com |
1d63c8fedf4a68de7fa3d43040e2a72f1dcce24b | 780ae99e04967335ce241435b61503c71fa3af72 | /draft/migrations/0008_auto__add_field_batteryearline_avg__add_field_batteryearline_obp__add_.py | f799e4ba8cc08bbd6327e50483d239eb7c476421 | [] | no_license | fbasas/BaseballTrackAndDraft | ca77c0d0dac5578cc45fcecf39e85942bcf9b23f | bb467223ceb903f5421103f98b5097efc89c0457 | refs/heads/master | 2020-07-07T10:03:51.789373 | 2012-05-01T11:03:59 | 2012-05-01T11:03:59 | 3,578,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,661 | py | # encoding: 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 field 'BatterYearLine.avg'
db.add_column('draft_batteryearline', 'avg', self.gf('django.db.models... | [
"fmb@alum.mit.edu"
] | fmb@alum.mit.edu |
45b9872b67aeb1490a5490178ca9f94fe40a84b1 | 0b414a080c9853997bfba016c7f66e5f11d80a14 | /cj_env/lib/python3.6/site-packages/pysmi/compiler.py | 6d049e77452977b1da1898285226848b68702db1 | [] | no_license | alkhor/Cable_Journal | 2bd4bf00210f78c08fcc5508c13833b5e8aa3c46 | e64fb1bfcc4d1b7844b2e0a10653264d58039259 | refs/heads/master | 2021-01-22T19:09:33.562313 | 2018-04-15T19:42:16 | 2018-04-15T19:42:16 | 100,772,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,824 | py | #
# This file is part of pysmi software.
#
# Copyright (c) 2015-2017, Ilya Etingof <etingof@gmail.com>
# License: http://pysmi.sf.net/license.html
#
import sys
import os
import time
try:
from pwd import getpwuid
except ImportError:
# noinspection PyPep8
getpwuid = lambda x: ['<unknown>']
from pysmi import ... | [
"khomenkoalexandr@gmail.com"
] | khomenkoalexandr@gmail.com |
274da28179cb1694055ac23cbf3ebfd534b336dd | 681cc9dad4d981af011c0fe0ef615ac7d54ff82d | /athlete_events/migrations/0002_rename_athletesevents_athletes.py | 1b625ab873fb5e9648c25a780bf4f875827f151c | [] | no_license | marcelocmatos/desafio_celero | 3922bff1a9c91f324a85e7a9e4102fd2c9ec4229 | c21baac948ad360823f5f86d7056b4d527d9a181 | refs/heads/main | 2023-05-28T11:46:59.568846 | 2021-06-10T23:30:03 | 2021-06-10T23:30:03 | 374,795,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # Generated by Django 3.2.4 on 2021-06-09 01:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('athlete_events', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='AthletesEvents',
new_name='Athletes',
... | [
"harley.ufpr@gmail.com"
] | harley.ufpr@gmail.com |
a13236684fc8f4e178535305e1415020397a7cd1 | 75c671b7f70c2ffe8679de37efd351e4877756cf | /new shit - there and back again/run/batman.py | 8ca3b8962300614cff7c903c8c4d1f5aabdb368e | [] | no_license | jpdol/FaceRecognition | d376df9464cffe7779e0c3352ac6aca446aa40d2 | 9b21d036627f6d9c6fee5c3754688c281d29776d | refs/heads/master | 2020-04-07T00:47:15.106054 | 2019-05-17T17:20:00 | 2019-05-17T17:20:00 | 157,918,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | import numpy as np
import cv2
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH,640);
cap.set(cv2.CAP_PROP_FRAME_HEIGHT,480);
while True:
ret, frame = cap.read()
if ret == True:
#gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame', frame)
if cv2.waitKey(30) & 0xFF == ord('q'):
break | [
"31112041+LuizCarlosS@users.noreply.github.com"
] | 31112041+LuizCarlosS@users.noreply.github.com |
123b1cbb1b81c70709c950c532951eaeed017c86 | 1523e2fff267279bbf99a44a71b7482081dd1141 | /The_Watch/The_Watch/wsgi.py | 2cbac8cc2093ca421a722294adc2ee44bfc89a4c | [
"MIT"
] | permissive | Kipngetich33/The-Watch | 4c77f5e365553ab5af9b7a9c4a5bea71139d47c0 | 96e39937c0015eae749836f6215d60ae5cb86e51 | refs/heads/master | 2021-05-02T07:20:46.854250 | 2018-02-12T08:37:36 | 2018-02-12T08:37:36 | 120,872,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for The_Watch 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"khalifngeno@gmail.com"
] | khalifngeno@gmail.com |
937a198163bdd0099b12d639b3a00d0cde230d86 | 6a0a50a91c44f1fc376b157e65159f8049a3b490 | /Playground/linear-regression/linear-regression-with-sklearn.py | e58fdeb6f9e4607af33f03f5870a6c82bb33b863 | [] | no_license | mSengera/Machine-Learining-I_Uni-Paderborn | af723153a68af3ec4924a11b59e0fa209d7b672c | 9bb6942a41d6c9bfb84875cebc3db4555d09339e | refs/heads/master | 2020-04-03T17:43:37.415388 | 2018-11-21T16:12:51 | 2018-11-21T16:12:51 | 155,456,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | from sklearn import datasets
from sklearn import linear_model
import pandas as pd
"""
:Attribute Information (in order):
- CRIM per capita crime rate by town
- ZN proportion of residential land zoned for lots over 25,000 sq.ft.
- INDUS proportion of non-retail business acres per to... | [
"work@marvin-sengera.de"
] | work@marvin-sengera.de |
fc2b4ecc642b306ab4dd0b2c57827d976450c387 | 317d0981898ec9c40afbc65e0bd4c167533d348e | /src/requests_eg/requests_eg2.py | a24a546d26055052b157b8afa712277f0de01455 | [] | no_license | hyuhyu2001/python_practice | b6e642fb6277514b117b508a37fa8341a4a57f90 | a2258ca6d87dd970e552917d8d644b389745c95f | refs/heads/master | 2020-07-02T05:00:22.321168 | 2017-02-22T06:55:13 | 2017-02-22T06:55:13 | 66,232,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: jinzj
@desc:
requests学习教程2
github的api地址:https://developer.github.com/ https://developer.github.com/v3/
GET:查看资源
POST:增加资源
PUT:修改资源
DELETE:删除资源
HEAD:查看响应头
OPTIONS:查看可用请求方法
requests使用某种方法:requests.[method](url)
#github api实例 https://developer... | [
"hyuhyu2001@163.com"
] | hyuhyu2001@163.com |
6fc833e1360cd1461a185e6418da611f9ec80004 | f10db3b11131ddf2bf5026e42cdd72c275e49693 | /ToolsX/leetcode/0069/0069_4.py | fc86c98645998a5d503330fc7b69982f3ce3ac41 | [] | no_license | JunLei-MI/PythonX | 36def40e33c9ebb64ce28af2b5da010393b08356 | efea806d49f07d78e3db0390696778d4a7fc6c28 | refs/heads/master | 2023-04-07T10:58:45.647430 | 2021-01-25T16:54:37 | 2021-04-15T13:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | class Solution:
def mySqrt(self, x: int) -> int:
"""
从 0 到 n 肯定不行,可以优化为到 n/2
1
只计算一次,依然超时,只好用二分的了
2
一定要注意验算 0 和 1
注意 while 和条件的变化
如果是 low <= high,那么后面 low=mid 要 +1,high=mid 要 -1
最后退出循环时,high 比 low 小 1,返回 high
3
二分
4
... | [
"pingfangx@pingfangx.com"
] | pingfangx@pingfangx.com |
e24f16a1bfd1f9d84ffe69227692e8594c811b73 | 734bfde987fe037b2d1458ab2ae1ab8b3514c13a | /service/catsay/catman/urls.py | d25d92cdc3ec05dedd7f8875f3085a7c38a7e69e | [] | no_license | oneGoon/CatSay | 32b7178f2ba138059e42213a452c81439a26d07c | aba3d6f4873dd55abbc78100ec5556f6d5dc5110 | refs/heads/master | 2021-02-24T10:04:39.117185 | 2020-03-08T13:08:43 | 2020-03-08T13:08:43 | 245,428,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.urls import path
from . import views
urlpatterns = [
path('name', views)
]
| [
"alan.wang1@homecredit.cn"
] | alan.wang1@homecredit.cn |
d4e16ff248cec4c267c87a29de94624f5c920488 | bc4b6e30b505c684aaa593b2fa4d5763a7132ac1 | /apps/history/migrations/0001_initial.py | 05db7eb70ee67969d2f1a096a2e2720dba9d24c3 | [] | no_license | arao/workflow-api | e9890faab6c14e9f4b9e6c8359bca7ee4b36172a | bedb1d7cf25188619d4afc748d17b7ffe20b6992 | refs/heads/master | 2022-11-29T00:51:37.018500 | 2019-07-17T19:57:46 | 2019-07-17T19:57:46 | 197,452,667 | 0 | 0 | null | 2022-11-22T03:35:01 | 2019-07-17T19:47:46 | Python | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-02-28 11:42
from __future__ import unicode_literals
import django.contrib.postgres.fields.citext
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"akhilesh.rao@joshtechnologygroup.com"
] | akhilesh.rao@joshtechnologygroup.com |
0053118ee1490b159f089c73f760467d06236d65 | e367a39b9abc0729401d36610882c275c2263688 | /tts.py | 32554f41728e92ecc73e063dc78c5ddc745df835 | [] | no_license | nguyenhuyanhh/nlp_lexicon_builder | ce7af63053cb4972f29af138a6b20d933ae11246 | 5ac669f1eb6fbbb6d12cd2debfe9cbd531d69510 | refs/heads/master | 2020-07-25T10:41:33.966132 | 2017-01-03T03:42:44 | 2017-01-03T03:42:44 | 73,777,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | """Module for text-to-speech operations."""
import os
import json
import logging
import re
from decimal import Decimal
import sox
CUR_DIR = os.path.dirname(os.path.realpath(__file__))
TTS_DIR = os.path.join(CUR_DIR, 'tts/')
if not os.path.exists(TTS_DIR):
os.makedirs(TTS_DIR)
logging.basicConfig(level=logging.I... | [
"nguyenhuyanhh@users.noreply.github.com"
] | nguyenhuyanhh@users.noreply.github.com |
02aea388baeecdf450749332637825ef25ee1e47 | dce2e3b11804fdb141feaa48299fa8cd751f0e5d | /1154.一年中的第几天.py | a811e8c92ef10d247014b84f42c7884b8caf4f93 | [] | permissive | Cosmos-Break/leetcode | bf056efb6f3eb6448df7fb3fc4869992a3e7eb48 | 9f5f3d24e35b0a482ed40594ea665e9068324dcc | refs/heads/main | 2023-06-26T04:29:25.135826 | 2021-07-19T12:29:29 | 2021-07-19T12:29:29 | 293,397,157 | 0 | 0 | MIT | 2020-09-07T01:55:39 | 2020-09-07T01:55:38 | null | UTF-8 | Python | false | false | 427 | py | #
# @lc app=leetcode.cn id=1154 lang=python3
#
# [1154] 一年中的第几天
#
# @lc code=start
class Solution:
def dayOfYear(self, data: str) -> int:
year = int(data[0:4])
month = int(data[5:7])
day = int(data[8:])
dic = [31,28,31,30,31,30,31,31,30,31,30,31]
if year%400==0 or year%4==0 ... | [
"438854233@qq.com"
] | 438854233@qq.com |
c082a478e13e3831289e5d9dedeb5209b5808ed4 | e6259c39e698fbf8b665390b8e5db973f0b4d0d3 | /pythonfile.py | f5b89a38eed93425f946b9c713254ca5e15c44a2 | [] | no_license | samirbaniya33/Germin8 | e53e37bf28d67325344378a61778c9bb62cf4c44 | ff377e909c59929012d935e7983cb9baa4b6f10c | refs/heads/main | 2023-07-15T06:04:59.461134 | 2021-08-24T16:26:23 | 2021-08-24T16:26:23 | 399,005,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | import json
# opening json response file
with open('response.json', encoding="utf-8") as f:
data = json.load(f)
#for state in data['data']:
# print(state['id'])
#print(len(data['data']))
teng=0 # counter for counting total engagement
urlsrc = "https://twitter.com/narendramodi/status/"
... | [
"noreply@github.com"
] | noreply@github.com |
3fbef31ab44f7f7928253701aacca5637318f44b | e267d1dbb7eb7cad239b18cffe6ddc53ae45aa9a | /tests/test_validators.py | f4ff4da249c4db81979e8286293a8a41471d1559 | [] | no_license | papercapp/DisposableEmailChecker | 038fa91f60f2798d687ca846d5836200af30f624 | 60f055f9102a4f9e967d740e4446e5c7ac76c351 | refs/heads/master | 2020-05-29T08:52:05.319215 | 2015-11-04T02:00:38 | 2015-11-04T02:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
from django.test import TestCase
from django.core.exceptions import ValidationError
from disposable_email_checker import validators
from disposable_email_checker.emails import email_domain_loader
class TestDisposableEmailValidator(TestCase):
def setUp(s... | [
"me@aaronbassett.com"
] | me@aaronbassett.com |
ab96f9e7dce97407422463970d66d2be69fd4d87 | 59b4e2e4846dece59bc69470abf5394a1e059276 | /management/commands/import.py | c406bdc886878aae83ba7f1d1a43a3ce15d7c235 | [] | no_license | rameshvarun/vrameshprojects | 065d38fd6bb27dedf515b07b98e778ac99611327 | 2ee7002f3edefd1310dcece34222b1594186fe9b | refs/heads/master | 2021-01-25T06:00:57.679520 | 2014-09-04T17:52:14 | 2014-09-04T17:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | from django.core.management.base import BaseCommand, CommandError
from projects.models import *
import urllib2
from optparse import make_option
import json
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option('-p', '--pages', action='store_true', default=False, help="Import pages.")... | [
"varun.ramesh@aol.com"
] | varun.ramesh@aol.com |
0573efe918ccf95663497bf599c6c52d1eeaa3f9 | b2d0eef0c3f09d9873b885daba378e8f03977b9e | /aula05/pilha.py | b287fe89f2107521491c862a56831dc83f443d13 | [] | no_license | alinenecchi/aula01-algoritimos-II | bad5d308648901d24576a08d02aac29c533f3710 | f9d0eee8f64c4c368134eceaa2a32c5fd3001724 | refs/heads/master | 2023-01-08T19:50:19.748511 | 2020-11-12T00:45:18 | 2020-11-12T00:45:18 | 288,887,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | from node import Node
#inserir no fim da pilha
#remover elemento que está no topo da pilha
#observar o topo da pilha
class Pilha:
def __init__(self):
self.topo = None
self.tamanho = 0
def inserir(self, novo_dado):
novo_node = Node(novo_dado)
novo_node.anterior = sel... | [
"alinenecchi@gmail.com"
] | alinenecchi@gmail.com |
58eaa7b021e07cb27d7ce32d821e70003d354f64 | b6bd84283f5db4f27e9a745a40f4be260d0f135e | /test/functional/qtum_block_index_cleanup.py | dff125f54ff92d6503a14d0c2400648f905284de | [
"MIT",
"GPL-3.0-only"
] | permissive | michelvankessel/qtum | da6f92e70755da4d6c734c67cc21f1bf48c6a977 | 8bb9cd6a8038c3e7ec3ca1f6d4dfd224bd9e167a | refs/heads/master | 2023-04-11T02:47:13.864058 | 2021-04-20T17:57:51 | 2021-04-20T17:57:51 | 295,159,719 | 0 | 0 | MIT | 2020-09-13T13:42:24 | 2020-09-13T13:42:23 | null | UTF-8 | Python | false | false | 5,826 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from tes... | [
"david.jaenson@gmail.com"
] | david.jaenson@gmail.com |
81b461ecdce2974f170b1f01a5fca78baecfb52d | ba5eff7678b514d13d37f5e30534d8781cf0bc00 | /birthday.py | 35d25f60b2331341e3622b0567c854b12e6a7c21 | [] | no_license | isaacmugume/display-date | f02578389832136a972c8b2acf58f98888b5e861 | 5a39ad2d30132cd65646ae3ce6f49b22807802dd | refs/heads/master | 2021-01-21T10:52:12.184239 | 2017-05-18T17:36:19 | 2017-05-18T17:36:19 | 91,709,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #MUGUME ISAAC
#16/U/648
#BELE
import datetime,calendar
current_year = 2017
date = input("ENTER YOUR DATE OF BIRTH (1-31)\n")
endings = ["st","nd","rd"] + 17*["th"]+ ["st","nd","rd"] + 7*["th"] + ["st"]
days = ['Monday','Tuesday','Wednesday','Thursday',
'Friday','Saturday','Sunday']
month = int(input("ENTER ... | [
"izakmugume@gmail.com"
] | izakmugume@gmail.com |
5c063af410a69dacf060c417b62ce8a72206e0e4 | c5e74cd3142176428ddb1a730d65149016b93f8f | /clase_2/primer.py | b43e51c806269f28c624bcc9ff9b1f0b5c4696fc | [] | no_license | IntiDev/NotasPY | 272b722a4a6699c912eeba107ff28ba0caa728a1 | fba56990abc18030d7f986ec7fe0df6263c81b71 | refs/heads/master | 2020-03-18T23:09:33.185476 | 2018-06-05T03:44:06 | 2018-06-05T03:44:06 | 135,385,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | #!/usr/bin/env/ python
# coding=utf-8
# print('Inti') #Esto es un comentario
# cadena = 'cadena de caracteres'
# print(cadena)
# # print(dir(cadena))
# tipo_dato = type(cadena)
# print(tipo_dato)
# Primer ejercicio
nombre = 'inti devp'
tipo_var = type(nombre)
metodos_var = dir(nombre)
# print(metodos_var)
# Méto... | [
"yeseniasescarcega@gmail.com"
] | yeseniasescarcega@gmail.com |
a2f13186dca194dbda5f095abcfb88c7695060d3 | 4e389a730649fedac7daf24131be6a875a865ce9 | /PiCN/Simulations/Streaming/CombinedSimulations/create_plot_combined.py | 9518e6615a7adcd2008ee483c2bc2675395a05a4 | [
"BSD-3-Clause"
] | permissive | cn-uofbasel/PiCN | f64fe6e881b1f934ffaf9efffc46697c034ac99c | 64ed40242657238e9f1d522d5873173f0b93a30e | refs/heads/master | 2021-08-29T07:12:55.251664 | 2020-08-28T09:19:29 | 2020-08-28T09:19:29 | 113,303,093 | 19 | 18 | BSD-3-Clause | 2020-07-24T09:55:49 | 2017-12-06T10:36:09 | Python | UTF-8 | Python | false | false | 3,480 | py | import matplotlib.pyplot as plt
import numpy as np
def get_measurements(filename: str):
time_list = []
with open(filename, 'r') as file:
line = file.readline()
while line:
time_list.append(float(line[:-1]))
line = file.readline()
file.close()
return time_list
t... | [
"noreply@github.com"
] | noreply@github.com |
ba0fe9069372d32e4c8e09e90a3d977eb3539798 | dcdc9431c4f822ddbb70dc4b208c3463911184d1 | /irr_nmt/tools/nmt_line_score.py | 89b90497d88a786d99258f6bad578a6ce4a79c1e | [] | no_license | he1ght/Concept_Equalization_with_Transformer | 8fca3c74d6d586b3a408af689fbaab20189f5b41 | d3bed23561739ad0bfa5e2111e2b3b8d056214c6 | refs/heads/master | 2022-05-22T00:41:35.014882 | 2020-04-23T14:18:10 | 2020-04-23T14:18:10 | 235,751,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | import sys
import nltk
from nltk.translate.bleu_score import SmoothingFunction
def read_list_of_words(directory, ref=False):
list_of_words = []
f = open(directory, "r", encoding="utf8")
while True:
line = f.readline()
if not line:
break
words = line.split()
if r... | [
"heesng.jung@gmail.com"
] | heesng.jung@gmail.com |
2ff92e4cd3707388ca85aa69563e5feae3f70746 | a05cccb9145674e4da443ece09123e4ae24533c9 | /submodular_optimization/freelancer/freelancer_dataset.py | ed1ae5822840dbc048ba3ce6178672acf9886353 | [
"MIT"
] | permissive | smnikolakaki/submodular-linear-cost-maximization | 433a0da99ce1b4768873b8090902ce8fe33b5bf1 | 98be3e79c11e4a36c253ed9a4800e6976b4aa3bf | refs/heads/master | 2022-04-21T02:32:09.882590 | 2020-04-13T15:24:02 | 2020-04-13T15:24:02 | 243,421,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,706 | py | """
This class contains methods related to the freelancer dataset
"""
import logging
import numpy as np
import pandas as pd
import sys
import warnings
from collections import defaultdict
class FreelancerData(object):
"""
This class contains methods related to the freelancer dataset
"""
def __init__(se... | [
"smnikol@bu.edu"
] | smnikol@bu.edu |
5c6be79a6ce2bd77cc31af1ba50946606927f512 | bb0038aaa26fac66be744d399654ce06b53330c1 | /apps/users/migrations/0005_auto_20181227_1707.py | e148cac325640a09b01752c573baf6459eca8d1f | [] | no_license | dongbunao/LancooOnline | 6b26b850a9b8500549ea5430092ba8db56d18867 | 0aca4fd1a34e7c6179f9795b25ecffa4b979bf30 | refs/heads/master | 2020-04-01T23:25:49.442771 | 2018-12-29T02:41:02 | 2018-12-29T02:41:02 | 153,757,837 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 2.1.2 on 2018-12-27 17:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20181221_2001'),
]
operations = [
migrations.AlterField(
model_name='emailverifyrecord',
name='se... | [
"809660773@qq.com"
] | 809660773@qq.com |
51ed24e6d81f5d2ad9ee2652d0ac7840cfb5e311 | e3c055241165e2a0b0af3a772929c1a950f751cc | /Graph Theory/KruskalMST.py | c2b23d281bf754e93cced828dd2533ab06765abe | [] | no_license | sathiiii/Hackerrank-Solutions | bcad7e76348b4bf602c2af90fa8e85b7c0c3ede9 | 7de92460a88d4c1fb7f1a0b90d88d40c54570f63 | refs/heads/master | 2021-05-26T00:46:03.734567 | 2020-10-03T05:02:48 | 2020-10-03T05:02:48 | 253,986,658 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | def find_set(u, parent):
while u != parent[parent[u]]:
parent[u] = parent[parent[u]]
u = parent[u]
return u
def union(u, v, parent):
parent[find_set(v, parent)] = find_set(u, parent)
def kruskals(n, edges):
parent = [i for i in range(n)]
edges.sort(key = lambda x:x[2])
s = 0
... | [
"noreply@github.com"
] | noreply@github.com |
ff8a2645be91617b80c6356e2396ea413e7eaa3e | 9e31a4eacf1913013061ef1684d577c66be93394 | /api/config.py | cc4c590e10cfb1411397f8ee1058cd5fc620d366 | [] | no_license | ans-lee/react-python-webapp-setup | fdaf75f21dd4dfa6aac6e5f2e2f9ff14702173cf | a7b24bdefc6edc0642ff6cb825df65444bb9549b | refs/heads/master | 2023-06-02T21:12:27.892379 | 2021-06-18T15:04:55 | 2021-06-18T15:04:55 | 376,202,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = 'peepo'
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'tasks.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
key = Config.SECRET_KEY
| [
"a.lee3213@hotmail.com"
] | a.lee3213@hotmail.com |
685006607a6dedfc50fb0c766015a6c8f8f442d3 | d2458f37ebc7a3d29bd08ae71cf45c3764c389e7 | /ex/ex15.py | 9b4a301d2899430d33708ab6511b262cdc9cc544 | [] | no_license | Hutsh/Learn-Python-the-Hard-Way-ex | b3fe393b58173d3761520a8b12694d38868d01d5 | 40ca5ccdfc7fbdd5d2bbc2b158152ba4e3fdde0f | refs/heads/master | 2021-01-12T19:42:43.326579 | 2016-04-11T12:30:22 | 2016-04-11T12:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r:" %filename
print txt.read()
print "Type the file name again:"
file_again = raw_input(">")
txt_again = open(file_again)
print txt_again.read()
txt_again.close()
txt.close() | [
"hxbbun@gmail.com"
] | hxbbun@gmail.com |
2c10762b60768d2f04d68eede0ca8ae77e7cf90e | 4bf34e6126738715cfdf9636b1b3eba7696ffba7 | /exercicio44.py | 21a3dae94bc77b8b9b7bb5047b1a55f86c0dc00c | [] | no_license | jonatasvcvieira/cursopython | 97d5e1edd7d86deeea76dd23c47c3da55a1af9df | 21392cd337f5681b426d2e17c9db10a1cbc19b76 | refs/heads/main | 2023-06-26T03:02:57.517172 | 2021-06-03T00:08:34 | 2021-06-03T00:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | '''
Elabore um programa que calcule o valor a ser pago por um produto, considerando o seu preço normal e condição de pagamento:
– à vista dinheiro/cheque: 10% de desconto
– à vista no cartão: 5% de desconto
– em até 2x no cartão: preço formal
– 3x ou mais no cartão: 20% de juros
'''
print(' {:=^40}'.format(' Loja... | [
"jonatasvieir@gmail.com"
] | jonatasvieir@gmail.com |
dbf06ccc286a7217b8086393797e902ab630965d | 4dc15d015c804ad5b988c62202e5d9cded7ae2a9 | /day10.py | dbb8679c363dd0552fde9684f98ead8bce382a14 | [] | no_license | smijeva/AdventOfCode2020 | e8939a404b69ac6644f39ac6fff1a1bebbbe37cc | 9a7639935beec6ded472d557ee770716d9fa1590 | refs/heads/master | 2023-01-31T02:01:34.327837 | 2020-12-17T15:19:49 | 2020-12-17T15:19:49 | 317,675,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | import math
def count_voltages_diffs(voltages):
v = sorted(voltages)
diffs = [0, 0, 0, 0]
diffs[v[0]] += 1
for i in range(1, len(v)):
diff = v[i] - v[i - 1]
diffs[diff] += 1
# last adapter
diffs[3] += 1
return diffs
def count_voltages_combinations(voltages):
v = sor... | [
"smijakova@turing-technology.com"
] | smijakova@turing-technology.com |
1a12e55b0a2ff993ee937a8709c1669b2aa3c52a | 976042b68ab16fd064b09d07bcc8d5bed54bcab0 | /forwardport/models/project_freeze.py | 635912c0bf77beb2efc53d3b0b510335a6acf5af | [] | no_license | odoo/runbot | cd713240f47741bf0dff4ffd30aba2840c590ce5 | e0795ffaea9233a89005044bc2bc19fdb32f27a0 | refs/heads/16.0 | 2023-09-03T21:05:05.725854 | 2023-07-20T12:41:43 | 2023-08-07T13:07:30 | 124,407,257 | 97 | 128 | null | 2023-09-14T17:41:15 | 2018-03-08T15:01:30 | Python | UTF-8 | Python | false | false | 868 | py | from odoo import models
class FreezeWizard(models.Model):
""" Override freeze wizard to disable the forward port cron when one is
created (so there's a freeze ongoing) and re-enable it once all freezes are
done.
If there ever is a case where we have lots of projects,
"""
_inherit = 'runbot_me... | [
"xmo@odoo.com"
] | xmo@odoo.com |
8d516525885f3073375b41a9582dd3e1290ec02b | 8cdeb18e8caa08985b4520077fdb8645d71999b2 | /nn/Stage1/getMatlabTrainingData.py | 203dd86cdb90b1859b5a9e063c7c209b26318769 | [] | no_license | jmidwint/nn-digit-recognizer | dc6a038eecebaaed629259bab03f78d61c58ebbd | f73a5f42fccedb0b68b51e040fe3f6f49e3c05eb | refs/heads/master | 2021-01-10T09:55:11.866459 | 2016-03-24T17:28:47 | 2016-03-24T17:28:47 | 45,922,052 | 1 | 0 | null | 2015-11-10T17:24:19 | 2015-11-10T15:45:35 | null | UTF-8 | Python | false | false | 598 | py | import scipy.io as sio
def getMatlabTrainingData():
''' Get the data based on the Coursera format
Returns:
m: Number of rows
n: number of features
X: training examples
y: labels for X '''
fnTrain = '/home/jennym/Kaggle/DigitRecognizer/ex4/ex4data1.mat'
... | [
"jkmidwinter@gmail.com"
] | jkmidwinter@gmail.com |
601163c7d28fcfe7bcc3af912c65849c60ba7f67 | 4e7db10524c938c8c6e687521def2889e20ec646 | /P6/list3.1.py | 4faa6a4724c1f365462ad94093c9c7a93b2d057b | [] | no_license | mpigrobot/python | e5cf60ca438e0d5e63a1e87a266a9e255bc07271 | bf9262657a7401f37de38318db768e630fab97a9 | refs/heads/master | 2020-03-15T15:37:03.228080 | 2018-03-31T07:33:07 | 2018-03-31T07:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | L='ABCDEFG'[:3]
print L
X='ABCDEFG'[-3:]
print X
Y='ABCDEFG'[::2]
print Y | [
"noreply@github.com"
] | noreply@github.com |
61ac870f8d50a4f6b929062e95497cec8d36aeb8 | ee0d6af294aeede69cdad1ed15b8e54a4e7a37d1 | /Core/dlgSchedule.py | a1ba0189ea3f684a5b871968c1b3981b1327e35d | [] | no_license | paul-wang0226/RoboCopy_GUI | 7a397ac2c137ba2e47e790c32f4ecad71bcfdccf | 7385b19fcafc7bc4fdace566961afc79e6945558 | refs/heads/master | 2023-05-04T12:56:58.606299 | 2021-05-13T05:44:23 | 2021-05-13T05:44:23 | 366,928,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | import os
import datetime
from PySide2.QtWidgets import (QDialog, QMessageBox)
from PySide2.QtCore import (QDate, QTime)
from UI.Ui_DlgSchedule import Ui_DlgSchedule
from Engine.ScheduledTasksManager import ScheduledTasksManager
from Engine.Settings import Settings
class DlgScedule(QDialog):
'''
Class for tas... | [
"royalcow91@gmail.com"
] | royalcow91@gmail.com |
fc81526657bb96c4d6c3918b0a3c55eddc77d219 | befd6e26a9b2c505ef76a3285511412fc804389b | /crm1/accounts/migrations/0005_auto_20200329_2332.py | ce064f91d16da6334918f1b846e12a55e2705fbc | [] | no_license | AdeelTahir447/CRM | 2a6d196449da5d5f294ca0119387fc025513d727 | 7bae92b426368cc7e9610b6cb43be2a1ef31559d | refs/heads/main | 2023-06-06T13:44:36.065975 | 2021-06-16T08:57:47 | 2021-06-16T08:57:47 | 377,432,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # Generated by Django 3.0.4 on 2020-03-29 18:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20200329_2324'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
... | [
"noreply@github.com"
] | noreply@github.com |
c20918639efad9081f633e83b443330dae738e40 | be8c4b7171237c0bc1dff9740d4e59db4f0c885a | /search/python-files/app/forms.py | 85d23883688dc400fbca417a7f2c16aa77badede | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | ragpan29/Azure | a1859eb97bb3f96e0c4c4583b7ba6b09dbb64403 | 536aa588336c95b650815d2ba2ad4f2a0731c2e3 | refs/heads/master | 2021-05-19T10:24:56.891294 | 2018-11-18T20:38:24 | 2018-11-18T20:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, FileField, IntegerField, SelectField,TextAreaField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo, Optional
from flask_wtf.file import FileField, FileAllowed, FileRequired
from app.mo... | [
"wijohns@microsoft.com"
] | wijohns@microsoft.com |
645d7e8bc122a8e9812f002fb4e5ddfdb6691351 | abda378ea6e15e4543cdfa945c49f04a009689ad | /Todo/mytodo/views.py | 8fb5363be5f2b7ea70e36497f800c7a0c3b95217 | [] | no_license | 729034444/VueTodo | 5e184d3ebf9610aca2db8991f5e312c0ae3f2643 | 01370e4baa9ebc6dc3b2d91cf1f4b0eeb7595818 | refs/heads/main | 2023-02-21T16:44:01.849078 | 2021-01-20T18:36:39 | 2021-01-20T18:36:39 | 330,395,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | from django.shortcuts import render
from mytodo.models import Todo
from mytodo.forms import TodoForm
# Create your views here.
def TodoList(request):
# 需求:点击输入框,将任务写入数据库
todolist = Todo.objects.all().order_by('-id')
if request.method == 'GET':
# GET请求获取所有已有任务
form = TodoForm()
els... | [
"729034444@qq.com"
] | 729034444@qq.com |
4e8288127628de0d3dbeadcc84aced810c6e7b7f | 2d91a1990231a007b8ef727067a8a9066d7ddb84 | /apps/plan/migrations/0006_auto_20200519_1958.py | 80b1d5d07914a2c74a266d0e1b484ad7e0a780b8 | [] | no_license | PlantainZ/PlantainZ_django | c71a6b6b2e9fb3fe482877f08c7e3291a0dbaebd | 81662ef8a8df7f2565fd9f91db76099b7d955d3e | refs/heads/master | 2023-01-28T16:49:42.167505 | 2020-12-13T12:52:42 | 2020-12-13T12:52:42 | 321,063,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | # Generated by Django 3.0.5 on 2020-05-19 11:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plan', '0005_auto_20200519_1605'),
]
operations = [
migrations.CreateModel(
name='plan_finish',
fields=[
... | [
"593525228@qq.com"
] | 593525228@qq.com |
bedf83aca263a162642c8f424b49432d623f1c69 | ea90a65690c73509bc02fa0cd08dee7cfc3128d4 | /involved.py | 3ecff6eaefce38c20b181844c322db2f8fc9c937 | [] | no_license | makwanahardik/git-experiment | ba0874a82dceb4560acb855399cabbf7dc5240da | 186c0937ee32cb3d8e8c6034a21a3a704af05174 | refs/heads/master | 2020-04-01T11:44:15.016317 | 2018-10-15T22:07:15 | 2018-10-15T22:16:14 | 153,175,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | # Dictionaries of Dictionaries (of Dictionaries)
# The next several questions concern the data structure below for keeping
# track of Udacity's courses (where all of the values are strings):
# { <hexamester>, { <class>: { <property>: <value>, ... },
# ... },
# ... }
# For ... | [
"makwanahardik0@gmail.com"
] | makwanahardik0@gmail.com |
9651eb9f6f41589d857f2dfa453791b6d5d3d479 | b81084c59a5d03db91fb71ebbb9e940bbab0bdbd | /config/settings.py | 3f4a7fd73b5ca3f2efde079343a1eaece82a8fb7 | [] | no_license | anubhavitis/Django-Company | 79bfc01d97a6c8c9288bb34ae1dbc449b5d9548e | 9329f7bea14af849d771a1592c13adc9a1abc482 | refs/heads/master | 2023-05-19T11:51:52.510924 | 2021-06-10T08:16:31 | 2021-06-10T08:16:31 | 373,129,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import django... | [
"ss.lfsgd@gmail.com"
] | ss.lfsgd@gmail.com |
45e86ccf7d4ff336764cb89f6f0447790fd12f09 | 16aadd94d8662ec543dd2adf26e2ba560e59ca8e | /Demo1.py | 9402aa0a8bf69e42a011e1ca864155c2ee7d5ef7 | [] | no_license | Zhouke0515/PyDemo | 25862955030081c754841ff017f619ad6dfb3838 | 93dd264806d7da1eec7ca0f5f6472e5d457b4f36 | refs/heads/master | 2020-03-13T15:39:41.970890 | 2018-04-26T16:45:41 | 2018-04-26T16:45:41 | 130,728,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | name = input()
print('Hello World!')
a = input()
print(name)
| [
"252356262@qq.com"
] | 252356262@qq.com |
3bc79f2fe075368b0dce038f86599748346e3675 | d60f5f2ed89abdf7197dc4c96385d20e52d7965b | /period1_xzh/rasch/group_4/Codes/group4-graph-0-1.py | ff5237269d42e436f9ef4c605b9b45e0d21baa1d | [
"MIT"
] | permissive | JinyuChata/datasci-coursework | a1336778b9bfad001efe2d0a7735a90fcbbd68bb | db1e6b6642961b452f2025a82e0fa85717b45ae4 | refs/heads/master | 2022-11-29T05:40:05.063178 | 2020-07-25T03:43:37 | 2020-07-25T03:43:37 | 261,180,461 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
import json
import pandas as pd
from matplotlib import font_manager
from pandas import DataFrame
#有很多nan 原因是有一个人做了很多别的组的题 47329,因此上面的json数据里面去掉47329
# df_group1=df_group1.drop(['47329'])
my_font = font_manager.FontProperties(fname=r'C:\Windows\Fonts\STSONG.TTF', size=10);
... | [
"181250162@smail.nju.edu.cn"
] | 181250162@smail.nju.edu.cn |
15c60558a5d48ed336761321bdefd509bf9ccd07 | 3185dc605853fdaf942fd06e206225793b198638 | /剑指offer/No20_表示数值的字符串.py | a60b824774b72020c1d40e4aef19394be63143f8 | [] | no_license | fank-cd/books_exercise_code | cb81ee8ec8167a5f5e3bfc58d3c1d6d931ca9286 | 1e8109adb82f741df1203658d4bf272f09a651b8 | refs/heads/master | 2021-07-11T01:15:11.980179 | 2020-06-29T04:01:53 | 2020-06-29T04:01:53 | 156,671,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # 面试题20:表示数值的字符串
# 题目:请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。
# 例如,字符串"+100"、"5e2"、"-123"、"3.1416"、及"-1E-16"都表示
# 数值,但"12E"、"1a3.14"、"1.2.3"、"+-5"及"12e+5.4"都不是。
# # 读不懂题意,留下代码,暂时空着
def is_numeric(string):
if not isinstance(string, str):
return False
index = 0
result, index = scan_integer(string, index)
... | [
"2464512446@qq.com"
] | 2464512446@qq.com |
7d866aa7faacddd7054257274573e65e6edc97d8 | e46a2e5bc66c1590cf725116c2395d78c2573425 | /frame_flask/lib/python3.8/site-packages/pydal/objects.py | 4542f2435011e7dae84099d7c3abe85b30f8347d | [] | no_license | eneassena/projeto-fplay-flask-python | 7b430a5ea454b01724d274f634127a572db96ed8 | 011013526a7f8e7ec086777941dd204df529e48a | refs/heads/master | 2023-08-18T03:20:43.546705 | 2023-08-13T02:49:45 | 2023-08-13T02:49:45 | 361,025,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125,276 | py | # -*- coding: utf-8 -*-
# pylint: disable=no-member,not-an-iterable
import base64
import binascii
import cgi
import copy
import csv
import datetime
import decimal
import os
import shutil
import sys
import types
import re
from collections import OrderedDict
from ._compat import (
PY2,
StringIO,
BytesIO,
... | [
"desenvolvedoreneas2000@gmail.com"
] | desenvolvedoreneas2000@gmail.com |
69a175bbdc2d3962e9289f89ed7beb14002384df | 6a8a87cd8db491f7e2ec2ad4040f442b1b0b7b93 | /0069-sqrtx/sqrtx.py | af4a10e7ece66ed116b3e0cdc10b013298921ead | [
"MIT"
] | permissive | chyidl/leetcode | 0cf2d2bad57d901941491fe5a7fc951abc72b521 | 4df626cfa9ea21e0165f64e945714a9d9275181a | refs/heads/master | 2022-05-20T20:26:02.467765 | 2022-05-08T07:17:04 | 2022-05-08T07:17:04 | 173,094,066 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Given a non-negative integer x, compute and return the square root of x.
#
# Since the return type is an integer, the decimal digits are truncated, and only the integer part of the result is returned.
#
# Note: You are not allowed to use any built-in exponent function or operator, such as pow(x, 0.5) or x ** 0.5.
#
#... | [
"chyidl@gmail.com"
] | chyidl@gmail.com |
5051c52eb90807b8d20b90ed19a7812b6ed693e7 | 315dc1173b3be12e1f6519d68af433c0bdd7f803 | /AcousticModel/train.py | 56d8b02ea6b3b483608d89a5dc72a179aa40c016 | [] | no_license | anamj/Speech_Recognition | e642c21c9ef9678e14d08ca815e3b7874867aeb1 | 9094bfaee8a54a929f03abaab239b5d9cbebeb25 | refs/heads/master | 2020-06-16T12:40:59.189624 | 2016-11-17T16:29:34 | 2016-11-17T16:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | import numpy as np
import tensorflow as tf
import read_data
from sklearn.model_selection import train_test_split
data = list(read_data.read_joint_feat_alignment(alidir="mono_ali", set="train_20h", type="mfcc", cmvn=True, deltas=True))
#Here all numpy arrays for each utterance are simply concatenated. If you are train... | [
"noreply@github.com"
] | noreply@github.com |
4cbf2335bd50f9f0d9b2c06c946cd23b71ae6d58 | a6b2dfa36483571382569a5649e42456e6bd6542 | /Pygame2/rain.py | 6519065dd75b3d7ee750d621c5ed7f8ca6cdd6de | [] | no_license | LauRivero150920/PygameTutorial | 0c89bda28ff4c30ae352fc6649fae514e8b74e4a | 2d4bb4a0c683f252f5e4aaace35e36fe2eced5b5 | refs/heads/main | 2023-07-31T17:47:40.617202 | 2021-09-23T06:52:22 | 2021-09-23T06:52:22 | 352,852,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import pygame, sys, random
pygame.init()
# Definir colores
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
SIZE = (800, 500)
# Crear ventana
WIN = pygame.display.set_mode(SIZE)
pygame.display.set_caption("Tutorial Pygame2: Rain Animation")
# Controlar frames per... | [
"A01274144@itesm.mx"
] | A01274144@itesm.mx |
ec6f9b4c5f38a2881360e90931d170d74d3fdec5 | 5f3c50ccd595573adb5d60fd7ef60bd42e47c0c9 | /ex030.py | 33701be859e860096f811bf4f2cab8892cea5f8b | [] | no_license | TaySabrina/python-practice | 4dfea32e351c5a4197fe26b2b012eaca7746421b | 0b28c33e7518cd616c5f0db498aa061e2e7591dd | refs/heads/master | 2022-09-06T13:48:59.778809 | 2020-05-27T11:07:50 | 2020-05-27T11:07:50 | 255,375,231 | 0 | 1 | null | 2020-05-27T11:07:51 | 2020-04-13T16:03:30 | Python | UTF-8 | Python | false | false | 187 | py | num = int(input('Me diga um número qualquer: '))
resultado = num % 2
if resultado == 0:
print('O número {} é par'.format(num))
else:
print('O número {} é impar'.format(num))
| [
"taysabrina.prog@gmail.com"
] | taysabrina.prog@gmail.com |
bcdc50c601528d561ed72a2f1e034397ebbca35c | 52bad8f125cdfbaf8134525f97bc8d2277bf949c | /src/res/grd_level.py | 441f0952c395500d3c03ef60009df24cc0bffbc4 | [] | no_license | meizhu812/affe | a3e08b6ad8bb0d3b2584c9f5a44c73034c839c6b | 9862a4bddb18e766525ef573993474fe2b7be1eb | refs/heads/master | 2020-07-22T07:19:51.395422 | 2019-11-03T03:01:49 | 2019-11-03T03:01:49 | 207,113,974 | 0 | 1 | null | 2019-09-10T04:15:18 | 2019-09-08T13:07:17 | Python | UTF-8 | Python | false | false | 1,607 | py | # coding=utf-8
from tools import get_files_list
import pandas as pd
# Parameters ###########################################################################################################
DATA_PATH = r'd:\Desktop\present_work\01_ammonia\02_prelim\03_Summer2018\01_footprint\South\day'
INIT = '18'
EXT = '.grd'
########... | [
"meizhu812@outlook.com"
] | meizhu812@outlook.com |
be7380a2784a0623534d1d33fd35699a62ad727d | df22dc62647b8f45ebd0076865769e46110ef428 | /api_keys.py | bb602c2d9c471ce9f0d37ffaeee6ec7b52a580af | [] | no_license | kbillec/Python-API | 6803cd4ce2f0d0e8c52cd849611b6cbde9dc4ce1 | c69ff864c342eeb3e0141496fcfc2b3f12c4782a | refs/heads/master | 2020-08-22T19:58:39.509822 | 2019-10-21T04:25:08 | 2019-10-21T04:25:08 | 216,468,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | api_key = "Deleted my api key for you to test"
| [
"noreply@github.com"
] | noreply@github.com |
35c16b5dd609e24fbc243144ddcb65eef3a54569 | 71aea3429ecb5b4ccf415078809654b6e97c2cb6 | /server/config.py | f91344f2181cace25b677f057fdaf6951c423276 | [
"MIT"
] | permissive | Nukesor/spacesurvival | dcbb8f0441c23367cd4c32beb260e336d8de06a7 | 1b02f2027f172ebbbf4f944641b7f0b5d0b5bb92 | refs/heads/master | 2021-01-19T09:27:03.809556 | 2017-12-04T13:03:17 | 2017-12-04T13:03:17 | 82,110,806 | 2 | 0 | null | 2017-11-20T13:16:30 | 2017-02-15T21:54:37 | Rust | UTF-8 | Python | false | false | 1,274 | py | """Various configs for different environments."""
from datetime import timedelta
class BaseConfig:
"""Base config."""
DEBUG = False
SECRET_KEY = 'lolololol'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'postgres://localhost/browsergame'
AUTH_TOKEN_TIMEOUT = timedelta(days=... | [
"arne@twobeer.de"
] | arne@twobeer.de |
f9be1c560063371e7d80af039cb02114dd549cc0 | d9b7b58cb36040998fee95ff87d32c6df66d2d4d | /NLP_Self_07_One_Hot.py | 8d64c41a7cdd312d16befe068c3f667e376bb6d7 | [] | no_license | Barleysack/S_DL_Basics | 7a9054f2c9b47c871cf436e1b118d1df09ac5f6c | 838991991f242d9e88b105eb1f17dd9c65cfa1d4 | refs/heads/main | 2023-08-19T06:01:01.761874 | 2021-10-08T14:19:24 | 2021-10-08T14:19:24 | 385,316,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,650 | py | """원-핫 인코딩은 단어 집합의 크기를 벡터의 차원으로 하고, 표현하고 싶은 단어의 인덱스에 1의 값을 부여하고,
다른 인덱스에는 0을 부여하는 단어의 벡터 표현 방식입니다. 이렇게 표현된 벡터를 원-핫 벡터(One-Hot vector)라고 합니다.
원-핫 인코딩을 두 가지 과정으로 정리해보겠습니다.
(1) 각 단어에 고유한 인덱스를 부여합니다. (정수 인코딩)
(2) 표현하고 싶은 단어의 인덱스의 위치에 1을 부여하고, 다른 단어의 인덱스의 위치에는 0을 부여합니다.
*)https://wikidocs.net/22647
"""
from konlpy.tag i... | [
"hookypooky@naver.com"
] | hookypooky@naver.com |
a358db9dd3218de1616532cc08eea180338d5cf1 | 5ea144b3a0a6f06f15fce2454e3e879520342325 | /Tov.py | b47777e9a4315a758e9b359135c4ae6d0f5999be | [] | no_license | GongCQ/QuantFactor | a0df16f48f8d6dd71ff398a442a84122d98c2e10 | 09bcd312a787d7e545b1e26823d5d2d934e0b92f | refs/heads/master | 2021-09-07T12:51:31.233191 | 2018-02-23T06:30:53 | 2018-02-23T06:30:53 | 115,609,373 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | import Public
import pymongo as pm
import cx_Oracle as co
import datetime as dt
import numpy as np
import os
os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'
def Beta(tovPrefix, tovDaysList, stockSql, endDate=None):
if endDate is None:
dtNow = dt.datetime.now() - dt.timedelta(days=1)
endDa... | [
"89439527@qq.com"
] | 89439527@qq.com |
7d9b5ba5be7102127596b772631b78237961e6a6 | 7ea7faba921d0800c2513052df094467e2ea4001 | /gpio_adc.py | d57994fe0010d4608341f90e8fab3c1725958edd | [] | no_license | geokai/shell_scripting | eb8083e2e2ea458a25fda04ed25535a861a242c3 | 1adb4de7e79febf033664304e78f8ead83eb686b | refs/heads/master | 2022-02-08T14:03:14.147044 | 2021-03-14T12:38:18 | 2021-03-14T12:38:18 | 162,804,592 | 0 | 0 | null | 2022-01-21T19:49:59 | 2018-12-22T11:10:30 | Shell | UTF-8 | Python | false | false | 697 | py | #!/usr/local/bin/python
# Reading an analogue sensor with
# a single GPIO pin
# Author : Matt Hawkins
# Distribution : Raspbian
# Python : 2.7
# GPIO : RPi.GPIO v3.1.0a import RPi.GPIO as GPIO, time
# Tell the GPIO library to use
# Broadcom GPIO references GPIO.setmode(GPIO.BCM)
# Define function to measure charge time... | [
"geoptus@gmail.com"
] | geoptus@gmail.com |
ad02f8785f62b23517182467691e772ea5ff368c | 981fbe20320ce16e5746c3d492545fbd30bcef02 | /screen_cap/http_screen_cap.py | 1e3c46dd41dba62f9d329daa7ebf9789613794af | [] | no_license | jinjin123/zabbix-api | f73e32c3433356c19df623066d457f5d7e0709e6 | 471116d0dcd5074b1047d4065c87e7f32c9aa9ff | refs/heads/master | 2021-01-25T06:45:16.371094 | 2017-07-26T12:23:39 | 2017-07-26T12:23:39 | 93,605,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# task argument to get the mapping grapth
#hostid and graphid its need , 每个host的id都不一样 ,从hostid 往下级拿graphid hostid=xx&graphid=xx&
import json, traceback
import datetime
import cookielib, urllib2,urllib
import time
class ZabbixGraph():
def __init__(self,url="htt... | [
"1293813551@qq.com"
] | 1293813551@qq.com |
6162152175b21cbd5114e41076bf8b02e507a70e | b658b50a1a36b6f154d92ce80500316df6e3580a | /dicts/order_fruits.py | f261a03cab265e2a5b822b53a5a7cb1a35fee757 | [] | no_license | lavriv92/digital-learning-examples | 17ea7f682960da4602d030bf2a80c65c610fa346 | 9bfa9f2937f04e7a951bbec95f68b4c7705f8905 | refs/heads/master | 2022-12-28T01:16:05.731508 | 2020-10-06T16:55:45 | 2020-10-06T16:55:45 | 281,411,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import time
from prettytable import PrettyTable
PRICE = 20
discounts = {
'apple': 0.1,
'banana': 0.15
}
fruits = [
'apple',
'banana',
'orange',
'apple',
'banana',
'apple',
'orange',
'apple',
'orange',
'graphe'
]
print('Step 1: Aggregate fruits cart')
cart = { fruit: fruits.count(fruit) * PRI... | [
"ivan.lavriv@sigma.software"
] | ivan.lavriv@sigma.software |
68af957510f5d9dd84f2c6cca428691822764078 | 341ced22003d6b3cc8daacc702ab3f2e0479d9f8 | /facilito_store/facilito_store/settings.py | 282003c75b5a380e6c74149a1f5dda30372d3168 | [] | no_license | Gabospa/django-store | ba071e746cd1645033c387a44a4230e4c37e3a16 | fcb5f84f8b4420511cd693bc03cb60f711ebd58c | refs/heads/main | 2023-03-03T05:04:21.938648 | 2021-02-03T22:22:37 | 2021-02-03T22:22:37 | 335,490,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | """
Django settings for facilito_store project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from ... | [
"gabospa@gmail.com"
] | gabospa@gmail.com |
4eea275cd0f42730986dd9b7eac6b96572f2b3cc | 2817618bd0e01f388b73bd7ec5df25aeca3eec58 | /assignment3/cs231n/classifiers/rnn.py | bc06695adcfae5344baa85fe65540a135a3846f0 | [] | no_license | tkyen1110/stanford_cs231n | ddb13ac528d4356bd618bf38cafbbff34111ca46 | 3a8a2d1ae2b7702400741cc03d5099f9d241dfb4 | refs/heads/master | 2021-07-11T15:11:11.884406 | 2020-05-16T08:30:37 | 2020-05-16T08:30:37 | 242,359,962 | 0 | 0 | null | 2021-03-20T03:48:47 | 2020-02-22T14:58:28 | Jupyter Notebook | UTF-8 | Python | false | false | 14,530 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.rnn_layers import *
class CaptioningRNN(object):
"""
A CaptioningRNN produces captions from image features using a recurrent
neural network.
The RNN receives input vectors of size D, has... | [
"tkyen1110@gmail.com"
] | tkyen1110@gmail.com |
d2a7fbdb789be7842aed535d079392da5e8ba7e8 | 81be8d21cb1043de90f7a3bc6f6460ada9252c12 | /users/models.py | 05de8429cc7c211125c354e9ac886bca412f9c16 | [] | no_license | nikhithamalkapuram/JobSearchWebApp | ab619f9fe85c39d91965fa84ebda46d970f24cd1 | 9eea2fe2997b9621d2b6cd3dd4b6f3d5e6363a53 | refs/heads/master | 2023-02-28T18:40:33.395423 | 2021-02-12T18:27:14 | 2021-02-12T18:27:14 | 338,356,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | from flask import Flask, jsonify, request, session, redirect,url_for,render_template
from passlib.hash import pbkdf2_sha256
from app import db
import uuid
from datetime import date
from bson.json_util import dumps
class Emp:
def start_session(self, user):
del user['password']
session['logged_in'] = True
s... | [
"nikhitha382@gmail.com"
] | nikhitha382@gmail.com |
21342d5542a7ffa749b1d27035e939f88e47871c | d0d97b590255ede9a0648a7db4a63c717eec8791 | /stage3/DWARFEMulator.py | 76754b9ff70dc6c2418e61553e7543098afdf260 | [] | no_license | TogDu/SSTIC_2019 | 6a30acbc189467369b989f15b768804b69bdfe8c | b5c6c6235f2d45887c9a5319bf75290b5d760edf | refs/heads/master | 2020-05-18T08:39:37.277337 | 2019-06-07T06:34:02 | 2019-06-07T06:34:02 | 184,301,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,689 | py | import struct
def printStack(s):
for i in range(len(s)):
print('%x'%s[i])
hashCounter = 0
def hook(pc, stack):
global hashCounter
if pc == 0x28E:
print('[TRACE] DoCheck')
printStack(stack)
elif pc == 0x300:
print('[TRACE] EndLoop')
printStack(stack)
# return 1, stack
elif pc == 0x2EA:
print('[TRAC... | [
"elenwel@wiwiland.com"
] | elenwel@wiwiland.com |
0f11685eba9d06d623a6191f95007f083c29cd2c | 2b109d0c638963fe8837fd4bb86de076fdaf634e | /latex_pmatrix.py | 85511aac3534e5dd91998ed62494a4d3593503e7 | [] | no_license | sikeda107/Python | ce60e36115e964283c7645e1e28fc61aa3ca2e8f | a38915c5d94fb03c6d88c22445a98f5a93dc59e1 | refs/heads/master | 2020-04-11T02:36:50.460876 | 2020-03-07T03:02:15 | 2020-03-07T03:02:15 | 161,450,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | filename = input('type file name > ')
# filename = 'array.txt'
print('file name is ' + filename)
output = './tex_'+filename
with open(output, mode='w') as fp_out:
fp_out.write('\\begin{equation}\n')
fp_out.write(input('array name >'))
fp_out.write(' = \n')
fp_out.write('\\begin{pmatrix}\n')
with ope... | [
"s.ikeda107@gmail.com"
] | s.ikeda107@gmail.com |
ac1f4677532bd69943d43bfac731b473a9f32705 | 41e2cf24f0ff3a11a98bb00e03c598dde35452c4 | /project/migrations/0009_googleapisetup.py | f2a0baa279dd151205113e1a9a0a64bb2a0691f5 | [] | no_license | anushamokashi/mob | f5dbedc729073092f94323feca6d95dee24087a2 | 37bc0eb033bc23d37e9d4fb9bb8b2b456553ff7f | refs/heads/master | 2020-04-24T08:36:56.008212 | 2019-02-21T09:09:04 | 2019-02-21T09:09:04 | 171,810,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-08-31 10:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('project', '... | [
"anusha.mokashi@gmail.com"
] | anusha.mokashi@gmail.com |
581e98ffdb743bcabf4d59d033a5c2895dc1e7f2 | fc74d9fea992230e204afdf9fd8713d9afdb1dc0 | /utest/Pramatest.py | e404f3010fa9a63e795d039f0ba1e7deb2123a86 | [] | no_license | hero881011/VIP4 | 3f819608410518d3edc437b434991b2757b6aff3 | 148aaaf33b47b5fadec94ddff95d48428afaa34c | refs/heads/master | 2021-02-18T14:20:33.105435 | 2020-03-07T14:53:03 | 2020-03-07T14:53:03 | 245,205,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # -*- coding: UTF-8 -*-
import unittest
from utest import testlib
from parameterized import parameterized
# 创建一个测试类,继承unittest
class PramaTest(unittest.TestCase):
"""
参数化:单元测试参数化的参数使用的二维列表
"""
@parameterized.expand([
['整数相加', 1, 1, 2],
['小数相加', 1.1, 1.33333333, 2.43333333],
['... | [
"hero881011.love@163.com"
] | hero881011.love@163.com |
bf42f669890aa2afb5de8d642415984eadf63771 | 60a6ba6e5f3faca2b1e17c1e90917efc3cfc561a | /aoc2018/day7/day7_part2.py | 675c2a0599f50e1f486089a078f71bc1a088a2c2 | [
"MIT"
] | permissive | GetPastTheMonkey/advent-of-code | f462f5e2b72d913e39484446ce92a043d455091c | 7a5ee30dbafaf8ef6f9bf9936e484efd024aa308 | refs/heads/master | 2023-01-14T09:45:00.553575 | 2022-12-25T10:59:19 | 2022-12-25T13:00:44 | 160,684,715 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | from os.path import join, dirname, realpath
from re import match
# Specify number of workers
worker_count = 5
workers = [{
"task": None,
"remaining": 0
} for _ in range(worker_count)]
# Load file
tasks = dict()
for i in range(ord("A"), ord("Z")+1):
tasks[chr(i)] = dict()
tasks[chr(i)]["requirements"] ... | [
"sven.gruebel@gmx.ch"
] | sven.gruebel@gmx.ch |
ba437f7e8dc2f843f25ba927c3c459249d4034dc | cc63c0afbfe64fed9c0871392bdf3a70631de559 | /Django_project_v2-master/groupA/geeks/migrations/0002_auto_20170210_1924.py | dde0a7731eaca0a6ecd833a36c37c8d7a3639b37 | [] | no_license | elmahdy-intake37/blog-webiste-django-pyhton | 2f0e04500e371c2f3450a1f10cbe27d474ba9bc2 | 6ba5547d53cb90c3c94c8124ba2cc5aeae8fde65 | refs/heads/master | 2021-06-01T13:54:04.926107 | 2019-07-13T18:24:00 | 2019-07-13T18:24:00 | 94,949,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-10 19:24
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('geeks', '0001_initial'),
]
operations = [
migrations.AlterF... | [
"ahmed.saad.farid.elmahdy@gmail.com"
] | ahmed.saad.farid.elmahdy@gmail.com |
94f7bb0c107ba916893a8ac8be11f4eaab3b3588 | f1738cd603e0b2e31143f4ebf7eba403402aecd6 | /ucs/base/univention-updater/conffiles/15_ucs-online-version.py | 69852d3acc488fb8ccf3b4f613225d51383ef948 | [] | no_license | m-narayan/smart | 92f42bf90d7d2b24f61915fac8abab70dd8282bc | 1a6765deafd8679079b64dcc35f91933d37cf2dd | refs/heads/master | 2016-08-05T17:29:30.847382 | 2013-01-04T04:50:26 | 2013-01-04T04:50:26 | 7,079,786 | 8 | 6 | null | 2015-04-29T08:54:12 | 2012-12-09T14:56:27 | Python | UTF-8 | Python | false | false | 1,777 | py | # Copyright (C) 2011-2012 Univention GmbH
#
# http://www.univention.de/
#
# All rights reserved.
#
# The source code of this program is made available
# under the terms of the GNU Affero General Public License version 3
# (GNU AGPL V3) as published by the Free Software Foundation.
#
# Binary versions of this program pr... | [
"kartik@debian.org"
] | kartik@debian.org |
f8d5a180e79c347a18ae2cb6b88ce8fc87f173d4 | 65ec831137a8c8ec8956d35c88a974d3e0380312 | /name_parser.py | f942de96302d4ad90e6e27ccff8e98aab131094e | [] | no_license | ShubhamSetia/Data-Deduplication | 7194a82a1905b78fb93ba8dc357601f6313241f4 | ace9e0f0f89f288432b41884ec4880e053b39b4e | refs/heads/master | 2021-04-27T00:12:28.047485 | 2018-03-06T16:34:10 | 2018-03-06T16:34:10 | 123,771,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,857 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 5 08:15:16 2018
@author: shubham
"""
import re
# List of suffixes, prefixes and compound prefixes used to match pattern
with open("prefixes.txt", 'r') as f:
_prefixes = [line.rstrip('\n') for line in f]
with open("suffixes.txt", 'r') as f:
... | [
"shubham.setia12@gmail.com"
] | shubham.setia12@gmail.com |
a8bcf235fd8b480ff1ebe69d018a407730a8ca48 | dbb46a0a28697712e6227fb894ea89450cc48794 | /playground/numpy/overlap/test.py | 166453d2d10c7ef69afda0b5f80926688124719a | [
"MIT"
] | permissive | tcrundall/chronostar | c584b95c0e401493084e44fdf931c87e470657a6 | d38aa19edd0229bb0a8b7126f248e61b9a0a8ff3 | refs/heads/master | 2022-09-20T22:47:15.431882 | 2022-09-15T14:22:25 | 2022-09-15T14:22:25 | 200,976,588 | 0 | 0 | MIT | 2019-08-07T05:11:43 | 2019-08-07T05:11:43 | null | UTF-8 | Python | false | false | 4,614 | py | import numpy as np
import overlap
import time
def compute_overlap(A,a,A_det,B,b,B_det):
"""Compute the overlap integral between a star and group mean + covariance matrix
in six dimensions, including some temporary variables for speed and to match the
notes.
This is the first function to be conver... | [
"tim.crundall@gmail.com"
] | tim.crundall@gmail.com |
308d55d2e4247f18dced43936cea9b728e5d8ee0 | 6fa5d46fc4be4785e6e5fd70197d34d7db70b5c5 | /Browser_Transparency.py | 7e90b0b349247ff7a8f802cd71701e7b1d021513 | [
"MIT"
] | permissive | Renyuts/Browser-Transparency | 12dfff4e71712010bb2730855ab634b0a2cb2f04 | dde493e0ef471a7ad15bc2d41422268fd4ece76b | refs/heads/main | 2023-08-03T20:13:41.366272 | 2021-09-11T03:57:48 | 2021-09-11T03:57:48 | 405,264,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | import win32gui
import win32con
import winxpgui
import win32api
import subprocess
import time
from argparse import ArgumentParser
def main():
parser = ArgumentParser()
parser.add_argument("--cmd", type=str, default='start chrome', help='command line')
parser.add_argument("--time", type=int, default=5, help... | [
"renyuts@visionatics.com.tw"
] | renyuts@visionatics.com.tw |
9686d173e8d40e35d7ba30de1ae94bf752b7c2cf | b7d1fff058db6d0a76dc8863d8ed88038119a9b6 | /venv/Scripts/pasteurize-script.py | 95112490c7eb12421821bf2f7f5bc773b21f80bb | [] | no_license | mohildemann/study_project_spatial_optimization | 7f0a592360813661d947497ef4631af5dc865693 | d71b7c469198e118f6082398b7cf3dddea6c10f5 | refs/heads/master | 2022-12-28T14:30:33.179973 | 2020-10-20T08:04:00 | 2020-10-20T08:04:00 | 303,754,016 | 0 | 0 | null | 2020-10-20T08:04:02 | 2020-10-13T15:52:21 | Python | UTF-8 | Python | false | false | 1,015 | py | #!C:\Users\morit\PycharmProjects\stuy_project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'future==0.18.2'
try:
from importlib.metadata import distribution
except ImportErr... | [
"moritz-hildemann@freenet.de"
] | moritz-hildemann@freenet.de |
56f5df9def4b8cb682c60c341fbe39ea66c4925c | 665b58d879f8a0bc29a2027c7eb7a2231ecac5ab | /sensit/api/report.py | 30f1862b7e6dc4e714a62f2aff03a7f30fd3dcf9 | [
"MIT"
] | permissive | cwadding/sensit-python | 23a1fd949763e9d31e2d86537bf5d7c7182d6c8c | b7f35d1f30e9e1ee73f6fbd97a435b6d4231ed86 | refs/heads/master | 2021-01-16T18:06:37.246409 | 2014-02-22T18:28:33 | 2014-02-22T18:28:33 | 16,932,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,965 | py | # Reports are stored filter and facet queries on the **Feed** data. A report is a assigned a `name` and the `query` is any elasticsearch query which filters only the desired data for the facets (See the [elasticsearch Query DSL](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-queries.htm... | [
"cwadding@gmail.com"
] | cwadding@gmail.com |
ccac9ec93b5e02c7de2a4458ee6c4c938bc21218 | f8d158ecf4d6b4cd6067419568ec0be6aaf04f57 | /nova/nova/tests/test_libvirt.py | 8d285901fccd954899d492484b35ff13f584ed5d | [
"Apache-2.0"
] | permissive | shidax/openstack-baremetal-compute | 31a18eea4ee93a35735740c7923a174e0af7a314 | 26d30ddd455939c5eeb309f69d0c7733eb6aa8ba | refs/heads/master | 2020-05-02T20:01:08.279172 | 2011-10-30T23:35:07 | 2011-10-30T23:35:07 | 2,674,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,743 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2010 OpenStack 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... | [
"shida.takahiro@gmail.com"
] | shida.takahiro@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.