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
b7d55215524685e8696fe519f227c6d7d2580212
c049214b58dd9569ad6205c324b33d11ebce4c5b
/network/unet.py
3d0c3ea7d3a303310257f3f17aca5f26c373b141
[]
no_license
slsjnp/lightning-sacc
d102921a5cb49cce3e755b8c4a9ac5bf87080b83
eedcce760f4f89ac3b84b393ca578a33b6fde483
refs/heads/main
2023-04-05T17:22:43.454410
2021-04-26T14:28:30
2021-04-26T14:28:30
356,294,596
0
0
null
null
null
null
UTF-8
Python
false
false
10,614
py
# U-Net网络 import torch.nn as nn import torch from torch import autograd class DoubleConv(nn.Module): def __init__(self, in_ch, out_ch): super(DoubleConv, self).__init__() self.conv = nn.Sequential( nn.Conv2d(in_ch, out_ch, 3, padding=1), nn.BatchNorm2d(out_ch), ...
[ "slsj7899@126.com" ]
slsj7899@126.com
6f0ca0ccf5f5cb96a3e89b2201a5c7b67ea7be13
b408a224da745e3f65bda8a8bf007b12a56ffbe2
/EuclideanDistClass.py
88b497abaddcf36eff6728e875ad92051a390184
[]
no_license
akashdobaria/RideSharing
cc01119744bfe2c58551e6e52615604d09c3bc4c
9c594052e0a370ae54a566dc4500f13c31b84825
refs/heads/master
2020-03-08T01:30:32.124145
2018-04-22T19:26:22
2018-04-22T19:26:22
127,832,497
0
0
null
2018-04-03T01:20:15
2018-04-03T01:20:14
null
UTF-8
Python
false
false
5,466
py
# -*- coding: utf-8 -*- """ Created on Wed Mar 21 14:50:01 2018 @author: Khushbu """ import RideDetailsClass import time #input - location dictionary #location dictionary format {"trip_id": <pickup lon, pickup lat, dropoff lon, dropoff lat>} #output dict - key = merged trip ids , value = [euclidean d...
[ "akash4492@yahoo.com" ]
akash4492@yahoo.com
11747c6c47dac83634412c274cf07f358aba12e3
75f6f5bdf3c9f031761c350debee3554991125a0
/my_project/insert_lookup.py
487143f20eecf68b53a39100e974f98436403437
[ "MIT" ]
permissive
ttngu207/canonical-full-imaging-pipeline
43946cd2c8fbc8f2b9759d2ac57d462fc1d375e5
0fab308ff7e506cb6449d6611a02c135bc710761
refs/heads/master
2023-01-14T13:01:59.468436
2020-11-13T19:47:12
2020-11-13T19:47:12
285,085,557
1
0
null
2020-08-04T19:56:22
2020-08-04T19:56:22
null
UTF-8
Python
false
false
1,061
py
from my_project import subject, imaging import numpy as np # ========== Insert new "Subject" =========== subjects = [{'subject': '82951', 'sex': 'F', 'subject_birth_date': '2020-05-06 15:20:01'}, {'subject': '90853', 'sex': 'M', 'subject_birth_date': '2019-07-14 08:40:01'}, {'subject': '91706...
[ "thinh@vathes.com" ]
thinh@vathes.com
3a2273dc92a5c2b9265c2540a7fef68a3aa56444
8c0e76eff0efff760afcbdc1e93fa73076f8d1a4
/autorun.py
273c00847c68f0fdd98f0a241257cd6ce571086b
[]
no_license
32Bites/AutoTSSSaver
2935d67cbb634c0a90a2d18509ea00bd8bb637a7
6bbddfb40e0fec04011a090d3b061a5b0509bfed
refs/heads/master
2021-04-29T18:49:00.384801
2018-02-13T07:39:36
2018-02-13T07:39:36
121,701,343
0
1
null
2018-02-16T00:47:04
2018-02-16T00:47:04
null
UTF-8
Python
false
false
577
py
#!/usr/bin/python import os from mdfmonitor import URLModificationMonitor files = os.listdir(".") # create Watcher instance monitor = URLModificationMonitor() # append file to mdfmonitor instance monitor.add_url("https://api.ipsw.me/v2.1/firmwares.json") print "started..." for mdf in monitor.monitor(): print...
[ "isatou41@gmail.com" ]
isatou41@gmail.com
d7ec75359773e22454809b020fd51948e71989f7
e8c82271070e33bb6b181616a0a518d8f8fc6158
/fce/numpy/distutils/tests/f2py_ext/PaxHeader/setup.py
a2db623a83dba720bc9b9a648ba146aae721a167
[]
no_license
DataRozhlas/profil-volice-share
aafa0a93b26de0773fa6bf2b7d513a5ec856ce38
b4424527fe36e0cd613f7bde8033feeecb7e2e94
refs/heads/master
2020-03-18T01:44:26.136999
2018-05-20T12:19:24
2018-05-20T12:19:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
17 gid=713727123 15 uid=3629613 20 ctime=1458667064 20 atime=1458667064 23 SCHILY.dev=16777220 23 SCHILY.ino=31296588 18 SCHILY.nlink=1
[ "honza@datastory.cz" ]
honza@datastory.cz
b30367867662727af7808d148036434465b4aa5b
fab7472a72ae38b1999bb483a246cfe02ae79076
/CNN/Relu.py
259abb30a51f5171cf80d722c608b1af693f3348
[]
no_license
csvw/CNN-Numpy-Implementation
72401dc9548c9541499f8644d06639ec9e815c40
757b7b59edb76b5a0d5fd22e78c09edb52c71571
refs/heads/master
2022-03-28T22:22:25.187874
2020-01-01T00:27:46
2020-01-01T00:27:46
231,118,623
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
import numpy as np # Citation: gradient for Relu obtained from the following article: # https://medium.com/@karpathy/yes-you-should-understand-backprop-e2f06eab496b class Relu: def __init__(self): self.last_input = 0 self.last_batch = 0 def apply(self, input_vector): self.last_input =...
[ "cwagoner@gatech.edu" ]
cwagoner@gatech.edu
9e59be260b9e496ea4737cf99784ccfd44412b45
6a77b42871d1996b9037e3be4fea31436315c8ab
/aula_17.py
bef96bc1d569815421e4d6047d8cc9491aae6ac8
[]
no_license
RaphaelMolina/Curso_em_video_Python3
4e1e299681695db69a0439107b32ae90cdea32f5
f22100865d7137bc420b677f118c848d963ee90a
refs/heads/master
2022-01-10T09:48:25.777665
2022-01-06T16:23:52
2022-01-06T16:23:52
244,028,670
1
0
null
null
null
null
UTF-8
Python
false
false
58
py
from Titulo import Titulo a = Titulo(17, '!!!') a.Aula()
[ "manson1307@gmail.com" ]
manson1307@gmail.com
f1ad9636a241389cacc29a8c7c4bb31eb2a3be28
4c395d4e66369c44e298642ff32faae1250045f3
/app1.py
78b632560a9a6327ac3eceb3b06f82466b7e94ce
[]
no_license
Ashwini-gowda/flask-proxy-server-for-python
09178055e79b50afc5b083190dd6a7a9f1ff55c7
6832c41e0d261f17905c07fab2512e6bfe20fa3a
refs/heads/master
2020-06-29T21:37:42.880060
2019-08-06T11:07:14
2019-08-06T11:07:14
200,631,376
0
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
from flask import Flask, render_template, request, jsonify from flask_mysqldb import MySQL app = Flask(__name__) app.config['MYSQL_HOST'] = 'localhost' app.config['MYSQL_USER'] = 'root' app.config['MYSQL_PASSWORD'] = 'root' app.config['MYSQL_DB'] = 'mypgm_db' mysql = MySQL(app) @app.route('/form-example', methods=['...
[ "shivani.raj@nighthack.in" ]
shivani.raj@nighthack.in
370478fd93220a2e0f29ee830a9036ef236ad689
d886b60674a970234134a2d9d84f1d5c2882f5e9
/flaskday-05-1/apps/__init__.py
9cb985bc01bf9bfc373c419ff7a933f356a9279f
[]
no_license
CuiDingke/Python_Flask
d17c32530ca54282f6e8df55b8240982a37480a6
31afe5bd4608599e187b1285365e422fe60c2798
refs/heads/main
2023-08-27T17:24:45.231146
2021-11-10T08:15:23
2021-11-10T08:15:23
426,536,383
2
0
null
null
null
null
UTF-8
Python
false
false
343
py
from flask import Flask import settings from apps.user.view import user_bp from exts import db def creat_app(): app = Flask(__name__, template_folder='../templates', static_folder='../statics') app.config.from_object(settings.DevelopmentConfig) app.register_blueprint(user_bp) db.init_app(app) # 关联上ap...
[ "15736980819@163.com" ]
15736980819@163.com
54ab6172059da7ad82cbe83fb2411ff87434eb18
81a1c5db1f24a7daf4fe51de499e1aea81d8ea05
/azure/urls.py
e7a5a34369c0b02b7a1c1bde086ee4c96bb833cf
[]
no_license
Beomi/azure-django-test
cf0d1fe323a63d9ba2672b8ebea2fc3e170980ce
a811afb62501f2fe245226f9bb94cd51bebc6866
refs/heads/master
2021-06-19T15:53:18.932591
2017-06-08T12:20:34
2017-06-08T12:20:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
"""azure URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
[ "latheledusjp@gmail.com" ]
latheledusjp@gmail.com
cc8704fe54076805d28fed406bd8316e9f117ed7
09714ed46ca6f9741dc296787ba51df4767b572e
/steam/protobufs/steammessages_remoteplay_pb2.py
bf30b7ecdce3814bb31fbf00d0bf94bbd3f8093b
[ "MIT" ]
permissive
sha016/steam
c6da65bca23aac99fcc1ec56a1efc812a60ad162
1cb46e181d458b6087401d21eca2499b21cbc760
refs/heads/master
2023-08-25T21:28:00.725668
2021-10-22T19:16:16
2021-10-22T19:17:25
null
0
0
null
null
null
null
UTF-8
Python
false
true
265,869
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: steammessages_remoteplay.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor ...
[ "2720787+rossengeorgiev@users.noreply.github.com" ]
2720787+rossengeorgiev@users.noreply.github.com
7b0b6a2ff24158ac13b1eeee4ca1a98bddb849cc
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/1201-1400/001260/001260.py3
b4101df26ed6ec988c9c9582d04d0a412131f062
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
945
py3
class Solution: def shiftGrid(self, grid: List[List[int]], k: int) -> List[List[int]]: m, n = len(grid), len(grid[0]) if m == n == 1: return grid def shift(): lastElem = currElem = None for i in range(m): for j in range(n): ...
[ "noreply@github.com" ]
BIAOXYZ.noreply@github.com
d3c1f9e98a976b85cb81eb7fa528283e73842ebc
3382efebf73d7123436fcd415f6c953cd5af44ad
/Rep_Addn.py
c16308acbeb9d6b059c64ac2321e579d093bb197
[]
no_license
Samar2173/Basic-Codes
b13b861e7b4eeb08906368c4802f26c22e400f28
2a5650af731ffb2304c029b42ef90bada88a648a
refs/heads/master
2020-04-01T13:21:35.441173
2018-10-17T13:30:06
2018-10-17T13:30:06
153,249,478
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
#-*-coding:utf8;-*- #qpy:3 #qpy:console print("This is console module") n=int(input('Enter Number')) sum=0 for i in range(n,0,-1): sum+=i print(sum)
[ "noreply@github.com" ]
Samar2173.noreply@github.com
6faecbf965c210422b07c98a674c321567136553
8959a3fd6707ee5bb7aadc750acba284bd367a61
/test/wlcrawl/ptparse/delWeibo.py
e65a790e91f985a1f88924ae79d649c600ab9c1a
[ "BSD-3-Clause" ]
permissive
ptphp/PtPy
4cc38fc7e7f69dc07a83f295dbbf96a563f33a8f
8b0b3ab75773637d1ca22b261158509175f460b5
refs/heads/master
2021-01-10T20:13:39.657010
2014-06-29T01:12:57
2014-06-29T01:12:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,162
py
#delWeibo.py # -*- coding: utf-8 -*- from urllib import urlencode from StringIO import StringIO from sys import argv from urlparse import parse_qsl import pycurl import re #以上为本脚本的依赖 b = StringIO() c = pycurl.Curl() #这两行定义对象,c为cURL,用以发送http请求,b用于存放cURL得到的response def fake_write(x):pass def sigint(signum, frame): ...
[ "fangtee@qq.com" ]
fangtee@qq.com
6bafbfbbf5306c1daa9bf05643d7e75c6933f2eb
7a7c2ef0f0d55165b80abef7a481058aa842bd34
/customized_class.py
fc2b700e5d2709afbbbfe37b2cde91f1ffc5e62b
[]
no_license
TonnyL/MyPythonLearnProject
e123e50c6b1c1d18174623e0d5983c0b941dc705
1610eb71d83e7058fa23a3834d2f6575d9464ed2
refs/heads/master
2021-06-06T06:54:11.213971
2016-08-03T02:36:58
2016-08-03T02:36:58
64,402,670
2
0
null
null
null
null
UTF-8
Python
false
false
7,745
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # 定制类 # 看到类似__slots__这种形如__xxx__的变量或者函数名就需要注意,在python中是有特殊用途的 # __slots__我们已经知道怎么用了,__len__()方法我们也知道是为了能让class作用于len()函数 # 除此之外,python的class中还有很多这样有特殊用途的函数,可以帮助我们定制类 # __str__ # 我们先定义一个Student类 class Student(object): def __init__(self, name): self.name = name ...
[ "marklztl@sina.cn" ]
marklztl@sina.cn
46a6758d5875a7d57ad50cc97a46edb5fa25bab5
d2a3eec49f5032c5f34501b085fdef4af265a873
/restrain_jit/becython/representations.py
494d84ffb2d89e98a6607414a376fbc49d0ba156
[ "MIT" ]
permissive
lvyitian1/restrain-jit
3a69634ecf0adfdaa18f1728a4cc29d55721539b
f76b3e9ae8a34d2eef87a42cc87197153f14634c
refs/heads/master
2022-04-09T03:24:27.778381
2019-12-09T03:22:58
2019-12-09T03:22:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
from enum import Enum, auto as _auto import abc import typing as t from dataclasses import dataclass class Repr: pass @dataclass(frozen=True, order=True) class Reg(Repr): n:str pass @dataclass(frozen=True, order=True) class Const(Repr): val:object pass @dataclass(frozen=True, order=True) cla...
[ "twshere@outlook.com" ]
twshere@outlook.com
04c9824617f802809f3c0049470676f54f9b31ac
e59c3d94254e4d592e8ae52db9d95b9bbc1e5fb4
/ames-test/ames-test.py
000571b2e3e19acbee09eb60a9c5582738a1eaf7
[]
no_license
mina990209/NASA_discovery
7cd9fe69a1427ffba1a9f086301f5d8635191748
b5ec4a6681e5cccae4f27ef149c19eeb5296e596
refs/heads/master
2020-08-30T12:49:32.288660
2019-11-21T18:13:56
2019-11-21T18:13:56
218,385,255
1
0
null
null
null
null
UTF-8
Python
false
false
642
py
from graphics import* # import pandas as pd def main(): # import csv file # test = pd.read_csv("tester.csv") # newtest = test.set_index("rows") # # # # # # # isolate specific variable; currently hardcoded # val = newtest.loc["row 2","col 1"] # print(val) #graphics section # ...
[ "jainarchita@gmail.com" ]
jainarchita@gmail.com
b591e0013346ef620438d2e015f86be5394c509f
51d442cb0786bd022ea4b62ec7f6f9e310978971
/BlenderPlayground/Assets/External Resources/hello_world.py
058848fd7d52026a183e175e20d178d163892276
[]
no_license
iamchriskelley/theda
c912e23225535b8447bc2266ecf2d7895682d1bc
045225943a77276516f3819890dd917ad4eb0c38
refs/heads/master
2020-05-04T03:14:14.978954
2019-05-28T07:45:50
2019-05-28T07:45:50
178,942,973
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
import bpy print("hello world") object = bpy.data.objects['Body1'] object.select = True
[ "iamchriskelley@gmail.com" ]
iamchriskelley@gmail.com
dc1dd380a09f0562de9c0474f2e29dbb8eba66e3
6a2a1b2b06bb531d01c9248ee169aa63e2001166
/plotter.py
80cef009aba67525e35c3197a1830f2227f110d2
[]
no_license
tonygallotta/ece568-final-project
53cf35009a80e0c36f56e2911958252031ccfd50
baf5ca0d4e271902524468b9d4bde1cf0338d61c
refs/heads/master
2020-12-24T19:03:56.468088
2016-04-28T00:41:56
2016-04-28T00:41:56
57,002,067
0
0
null
null
null
null
UTF-8
Python
false
false
2,809
py
import csv import matplotlib import matplotlib.pyplot as plt import numpy as np import matplotlib.cm as cm import itertools published_results = [] experiment_results = [] # column index of various fields FREQ = 0 VDD = 1 POWER = 2 def autolabel(axis, rects, decimals=2): # attach some text labels for rect in rects...
[ "tgallotta@signal.co" ]
tgallotta@signal.co
7ee0e3a037473836747b536291023045a0d1aa34
ef2bc383dd922bcd5ce7e9f47b51dda8801e4883
/drummer.py
aabd0490fe1df5466d7f24673e518065953c8cbf
[]
no_license
jcoviell/drummer
e298a7f640ed70521115da6b5cc975ed6d1eb804
02ae81cfaf7c550868a2bf1d2a7e323298d573f0
refs/heads/master
2020-12-24T18:42:19.135958
2016-04-24T15:40:18
2016-04-24T15:40:18
56,979,670
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
#always include "object" in parenthesis when creating a new class class Musician(object): def __init__(self, sounds): self.sounds = sounds def solo(self, length): for i in range(length): print(self.sounds[i % len(self.sounds)],) print('') class Bassist(Musician): #...
[ "jpcoviello@gmail.com" ]
jpcoviello@gmail.com
e7a0d65d7d02ae0fb998dd209c9309eccdba333c
45129489b5556a70d3caa6020b0f035de8019a94
/probn/30.03/14.py
14cf4dd0260a915d30bc6c5effe9b19446e8be87
[]
no_license
trofik00777/EgeInformatics
83d853b1e8fd1d1a11a9d1f06d809f31e6f986c0
60f2587a08d49ff696f50b68fe790e213c710b10
refs/heads/main
2023-06-06T13:27:34.627915
2021-06-23T20:15:28
2021-06-23T20:15:28
362,217,172
3
1
null
null
null
null
UTF-8
Python
false
false
195
py
def f(a, to): s = "0123456789" n = "" while a > 0: b = a % to a //= to n += s[b] return n[::-1] print(f(128**30 + 16**60 - 16, 8).count("7"))
[ "noreply@github.com" ]
trofik00777.noreply@github.com
381cf5a3d10eebe2a5063ef8ec14a01c255cd78a
813c34988d17fc13165e50456fdf570b5452e50e
/Lab4-6/Lab4/Exercitiu_pachete/main/app.py
aa6a09571a817363408dc8d64641d866affcfee3
[]
no_license
Burbon13/Python
094538b7316661be267ce486a63b267a8bab7121
b22977b0b4e1c939be57c806407300862b362bb6
refs/heads/master
2020-03-28T04:38:44.013975
2018-09-06T20:13:02
2018-09-06T20:13:02
147,727,537
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
from ui.console import isPrimeUI def run(): while True: number = int(input("Introduceti un numar ")) isPrimeUI(number) run()
[ "razvan_roatis@yahoo.com" ]
razvan_roatis@yahoo.com
89a45d6d58354db3498fed2ef38af288af442a70
e6004af62641749060a4ac45d4f2c221ef9aaa36
/server/APJP/Application.py
60a092900d55d801511a0c6f816ac6186f43a177
[]
no_license
lixingke3650/APJP-BAE-Python-
e715237423bc4f0f0f6f7b25ff977e66e08c151a
604af67316fd6887d7074c4e64d0d1d0ff13701c
refs/heads/master
2020-04-08T14:58:50.461325
2014-01-19T12:41:50
2014-01-19T12:41:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,262
py
# APJP, A PHP/JAVA PROXY # Copyright (C) 2009-2012 Jeroen Van Steirteghem # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. #...
[ "lixingke3650@gmail.com" ]
lixingke3650@gmail.com
8db8802a656d037982623fb0230012a20cd84642
a727818c6ecce84359a898a1791158f50d4a8c09
/Day_3/ex_1.py
fe2aa83a4103ef546c9e0b3fc97604b9b3e02cef
[]
no_license
rahulkumar353/open_cv
d6f6c652c344eb7c234682685f24df55c98e13d5
c9b0ecdd95dec3e4a4b446cd9454c3ba366ca0a4
refs/heads/master
2022-11-20T04:54:52.024321
2020-07-21T13:16:21
2020-07-21T13:16:21
281,150,720
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
import cv2 img=cv2.imread('hand3.jpeg',1) img=cv2.resize(img, (300, 300)) blur=cv2.GaussianBlur(img,(7,7),0) #blur = cv2.medianBlur(img, 11) edge=cv2.Canny(blur,40,150) contours, hierarchy = cv2.findContours(edge, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE) print("total no of contours =" + str(len(contou...
[ "noreply@github.com" ]
rahulkumar353.noreply@github.com
138e76e563c0be99cd1a2c7c9f4f184c4f2ae32a
49b264ea470246fa685192b90be2aba8b94cf803
/src/pyotelem/dtag.py
f4dee7256ec3c5723374200e17a1f1aba60c1ac6
[ "MIT", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ryanjdillon/pyotelem
284bf310ac910b93d1be0e1efc58bb29bb2285be
3c92a368c53631046ed74d073b0af498226567ad
refs/heads/master
2023-04-13T23:31:12.415992
2019-12-17T14:59:23
2019-12-17T14:59:23
104,341,008
0
0
MIT
2021-04-20T19:05:55
2017-09-21T11:42:53
Python
UTF-8
Python
false
false
4,256
py
def fix_gaps(y): """Linearly interpolates over NaNs in 1D input array x Args ---- x: ndarray array containing NaNs to interpolate over Returns ------- y_interp: ndarray array with NaN values replaced by interpolated values """ import numpy # Boolean mask for al...
[ "ryanjamesdillon@gmail.com" ]
ryanjamesdillon@gmail.com
36cf178976e5be4c0e55aea9a3c2ab34eb0264a2
4997449156b8a15f0ddfff7003f16b78b9868b56
/build/haptic-shared-control/geomagic_touch/geomagic_control/catkin_generated/pkg.develspace.context.pc.py
3d6a9c99ca5fab6ec4ec79204efac4198ad4f958
[]
no_license
terryxychan/MotionPlanning
f9473ab79f044bf2b2b5166c4dfb5d7e242f3f03
b59c9e757c900f2eb5aa0667f58f384e1dd38cc3
refs/heads/master
2020-04-09T15:48:24.265830
2018-12-17T17:13:17
2018-12-17T17:13:17
160,436,299
1
2
null
2018-12-17T15:12:33
2018-12-05T00:24:11
Makefile
UTF-8
Python
false
false
502
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/wall-e/Terry_ws/devel/include".split(';') if "/home/wall-e/Terry_ws/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;geometry_msgs;genmsg;rosconsole;tf;urdf".replace(';', ' ...
[ "yychan@bu.edu" ]
yychan@bu.edu
32582de1d72d19c3056ffa1a574b434948189035
516d8b09391fcf6f1dd95fb665a617c4982af55d
/contact/migrations/0015_auto_20200330_2016.py
4b80ff1a310fb13e41c97875caaa8f34ffcddcd3
[]
no_license
rezmehp/abasian-peroject
33eb357fbef3591b9cdd7d5a73fb2c90b62fb7a7
5c09a4d235719933f10688454066962dae13f3f5
refs/heads/master
2023-04-06T21:17:12.855048
2021-04-13T15:16:23
2021-04-13T15:16:23
235,763,509
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
# Generated by Django 3.0.2 on 2020-03-30 15:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('contact', '0014_remove_c...
[ "rezmehproject@gmail.com" ]
rezmehproject@gmail.com
ce0f95ab73e4c27e33feae70b78339a270859841
034e07aa9a3cc7cd47b7cb46522f1f599469088b
/Physics 331/Textbook Programs/Chapter 8/getstats.py
0d96d29debc5546ad211aae207e2945a0e13414c
[]
no_license
CodyDBrown/Physics-331
5799f239e667897a82720aecd5d6c2bc9194f5ca
a2faadb9bb83cac67535b3e992a8577a9d3fd1ed
refs/heads/master
2020-03-20T02:29:43.705568
2019-02-06T23:26:19
2019-02-06T23:26:19
137,114,945
0
0
null
2018-08-28T16:06:11
2018-06-12T18:55:25
Python
UTF-8
Python
false
false
905
py
def getstats(x, y): """ Determine the statistical measured for an array of data points 'x' and 'y' Inputs ---------- x: Independent varriable y: dependent varriable. Outputs ---------- mean: Mean of 'x' dmean: Uncertainty in the mean variance: Variance """ impor...
[ "noreply@github.com" ]
CodyDBrown.noreply@github.com
fa43c1233f1b58f187b49192dd5934802bf36cd0
6b65442dd3ba31c5f825dc56652728ca742dd01a
/src/libs/baseview.py
dd51942aa39abd01857d70ac1e3fb0a4dfa76550
[ "Apache-2.0" ]
permissive
ttcats/tyearning
cf11d03bf964df9f995b5fe729995aea2bfe954f
33f16226ec81950b032c3cbae391e0a3bc1d592a
refs/heads/master
2020-03-21T07:22:41.744152
2018-06-22T11:35:19
2018-06-22T11:35:19
138,276,782
0
0
null
null
null
null
UTF-8
Python
false
false
1,554
py
from rest_framework.permissions import ( IsAdminUser, IsAuthenticated, BasePermission ) from core.models import globalpermissions from rest_framework.views import APIView ''' user.is_staff == True ,IsAdminUser; ''' class BaseView(APIView): permission_classes = (IsAuthenticated,) def get(self, ...
[ "ttcats@sina.com" ]
ttcats@sina.com
01e46e154082881e5ff9662c4d950a5b5a985a48
8bb972ef7f6ab1db947be1f556eaa309fa5caa2b
/utils/decorators.py
a966c4b5b0a4eabdcc2eccb02ceb04c650808a61
[]
no_license
pr4k/Auction-Web-App
efaebe96e7a660a79454d2a43865cfd00d90f149
e535f78e0a32f9bae07bc01958d0ce2873184afb
refs/heads/master
2020-05-20T07:23:11.102253
2019-05-07T17:39:20
2019-05-07T17:39:20
185,445,950
0
0
null
null
null
null
UTF-8
Python
false
false
1,254
py
from flask import session, redirect, url_for, flash, g, abort from functools import wraps def login_required(f): @wraps(f) def decorated(*args, **kwargs): if "user_id" in session and session["user_id"]: return f(*args, **kwargs) else: flash("You need to be logged in to a...
[ "prakhark19@gmail.com" ]
prakhark19@gmail.com
48f381373ab22065c5ba0974915c1f94ee648552
57dbc8c59ed683a4ba5c1c29867edb8ab46eb3b1
/859. Buddy Strings/python.py
e1d220e9d713aa52f74c631548a1857a41e759a7
[]
no_license
yuan-chen-hu/LeetCode-Practice
1b4ada528f5165ea61f681f08b6c90727c7248b4
aaccf440f1b67ecde897cbf873a8965832db1900
refs/heads/main
2023-02-18T18:53:17.988440
2021-01-22T18:01:59
2021-01-22T18:01:59
331,450,385
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
class Solution: def buddyStrings(self, A: str, B: str) -> bool: if len(A)!=len(B): return False old=None if A==B: C=sorted(A) for i in C: if old==i: return True old=i return ...
[ "yuanchenhu0309@gmail.com" ]
yuanchenhu0309@gmail.com
ca496b609ef10843b2fb8901ed92a9abe39ff3f1
5b54d73e3e2eeeb348884261b60c930cb9d610fd
/env/bin/rqworker
1ac9c19a1565545f64de9acd0502e735efc5dcc0
[]
no_license
AhmadAbdoli97/frappe-bench
acba2fee86ce25ea608db55ca421c746c4f4d733
321a9c56289252b326edc649570230ed4e612ef2
refs/heads/main
2023-06-30T07:36:02.584260
2021-08-04T10:26:49
2021-08-04T10:26:49
392,624,116
0
0
null
null
null
null
UTF-8
Python
false
false
233
#!/home/ahmed/frappe-bench/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from rq.cli import worker if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(worker())
[ "ahmadabdoli29@gmail.com" ]
ahmadabdoli29@gmail.com
5e686c1e69f1784db3ed79c919a8ae7247bfc439
1af178aa9808629c98172ed2a1d73c66e7d78dae
/myapp/migrations/0001_initial.py
407025b70df8a31b47b838d2cedde6a8892cc8a9
[]
no_license
ian-yitzhak/django-pagination-and-product-search
58b08540b44bdc6e99275ea9ff51c4530f00b4b2
947cd15562a3fbaa2de1fb0711e40145f1171d56
refs/heads/master
2023-02-20T16:11:08.304036
2021-01-22T18:07:51
2021-01-22T18:07:51
332,025,278
0
0
null
null
null
null
UTF-8
Python
false
false
1,159
py
# Generated by Django 3.1.5 on 2021-01-22 06:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
[ "onyangoian71@gmail.com" ]
onyangoian71@gmail.com
079628cce2775bf9d39315d8f21d0170312b90c1
1e13fc61778f9a9486ea58f3012dfe2f9420331b
/Chapter 7/titanic_transform.py
534439190d36040afda0b1279370678482f89c9c
[]
no_license
andrewshir/CollIntel
23fabb5ffd2a33bd6843521cc2159fefca548939
4bea4e803c32e2b8c8fd6133b0b23b0cca5961cc
refs/heads/master
2016-08-12T05:17:10.724349
2016-04-13T18:49:51
2016-04-13T18:49:51
43,281,462
0
0
null
null
null
null
UTF-8
Python
false
false
3,236
py
import csv work_path = 'C:\\Users\Andrew\\Source\\Repos\\CollIntel\\Chapter 7\\' def traverse_file(row_f, header_f, input_csv_file, output_csv_file, correction): with open(work_path + input_csv_file, 'rb') as f_input: reader = csv.reader(f_input) with open(work_path + output_csv_file, 'wb') as f_...
[ "andrewshirokoff@gmail.com" ]
andrewshirokoff@gmail.com
3f64277f1c7d71922101fc70a30d4036e9c69b11
c2ee97bfc35b74932dae2d667f10966b296c81d8
/event/models/event_zones.py
b189af2da436be5d042c3d6e1d782aa077aa5c7f
[]
no_license
GMR027/social-events-platform-api
4c241bee10a839ca66624243930ed379ef3ec257
89bbf030b7801aba8930fe4a7ba432eb14b06cc0
refs/heads/integration
2023-08-22T23:11:36.205042
2021-10-18T22:44:02
2021-10-18T22:44:02
411,797,995
0
0
null
2021-10-11T15:52:55
2021-09-29T19:05:53
Python
UTF-8
Python
false
false
567
py
from django.db import models from common.models import CommonFields # Create your models here. class Zone(CommonFields): zone=models.CharField ( max_length=64, null=False, blank=False ) event = models.ForeignKey( "event.Event", verbose_name="Evento", null=Tr...
[ "christopher.guzman.monsalvo@gmail.com" ]
christopher.guzman.monsalvo@gmail.com
54812df5e8ebf9b4d78c86cdaeee501a3b8437b1
48e5c0d6d0f0f7df541320dfa292c6cdbd0c95ef
/main/test_torch.py
5598d49a8accae28d176a8e41aef39049025802e
[]
no_license
1036225283/python
9f9d5ba4c7aab64775b2441f7e85bd5ade7d1857
bb3e0afab316fe66a06910d9d6e34e7589ec8849
refs/heads/master
2021-06-20T13:07:15.970486
2021-02-20T16:53:32
2021-02-20T16:53:32
182,051,139
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
from __future__ import print_function import torch # 构造一个5*3的矩阵 x = torch.empty(5, 3) print(x) # 构造一个随机初始化的5*3的矩阵 x = torch.rand(5, 3) print(x) # 构造一个初始化为0的5*3的矩阵 元素类型为long x = torch.zeros(5, 3, dtype=torch.long) print(x) # 直接用数据构造一个张量 x = torch.tensor([5.5, 3]) print(x) x = x.new_ones(5, 3, dtype=torch.double) #...
[ "qq15171962899" ]
qq15171962899
6c1bd673c4c30b9b39635fb65795753919de274d
c269899aba4c4c32efa2b94a9213a9893507d458
/cart/views.py
aa8667fc2e2bc4f707c6f9017cf03018b6edae43
[]
no_license
Code-Institute-Submissions/Project-4-DareBee
86fcdb45f325e66fd1426180600520ad152969ff
b63cb9f9490b209d03583266b3de44608e3a4270
refs/heads/master
2022-12-23T05:43:58.184075
2020-10-04T14:12:18
2020-10-04T14:12:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,959
py
from django.shortcuts import render, HttpResponse, redirect, reverse, get_object_or_404 from django.contrib import messages from products.models import Exercise, Mealplan # Create your views here. def add_to_exercise_cart(request, exercise_id): cart = request.session.get("shopping_cart", {}) # check if exerc...
[ "m.fareez.aziz@gmail.com" ]
m.fareez.aziz@gmail.com
d294047a757d98160f51a8216a3f00002260b65e
cf790f8169918606770683da323c436a20f4fb04
/examples/pipeline_wavernn/utils.py
e924c9f51250509fb1b95fd8182b27ebf34680fb
[ "BSD-2-Clause" ]
permissive
krishnakalyan3/audio
f6d3dabf456cd5ce9a8f033b83301ce7bff47f19
0cd25093626d067e008e1f81ad76e072bd4a1edd
refs/heads/master
2023-07-05T08:20:37.366199
2021-11-15T14:23:52
2021-11-15T14:23:52
176,415,764
1
0
BSD-2-Clause
2019-03-19T03:27:23
2019-03-19T03:27:22
null
UTF-8
Python
false
false
1,546
py
import logging import os import shutil from collections import defaultdict, deque import torch class MetricLogger: r"""Logger for model metrics """ def __init__(self, group, print_freq=1): self.print_freq = print_freq self._iter = 0 self.data = defaultdict(lambda: deque(maxlen=se...
[ "noreply@github.com" ]
krishnakalyan3.noreply@github.com
3f501b85fb272f6e69e3de4404df13da27f197d5
35b622843b5a14cef90bccd8fdefe6e2aa7f58e8
/venv/Scripts/pip-script.py
add663e2a656062c04fddb5d4792452504bcaa07
[]
no_license
bkapilg/sample1
5f0904b0818c53cc45b85a6a5ca1e1441ad8f95d
d558a7727a73c810826ab7befdf06635893c0620
refs/heads/master
2022-11-22T14:50:42.280475
2020-07-25T18:15:06
2020-07-25T18:15:06
282,500,288
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
#!C:\Users\20126635\PycharmProjects\sample1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg...
[ "kartikeybarsainya12@gmail.com" ]
kartikeybarsainya12@gmail.com
1f4a7e9c9982c3b6f76d3ff626f68bd8d2da3f60
ea9559246d7b482661a75a79618b9b9035f0d30c
/refinery/bnpy/bnpy-dev/bnpy/learnalg/StochasticOnlineVBLearnAlg.py
8b3a2151a063d2ea073736f2d9039157c05134fb
[ "MIT" ]
permissive
ajbloureiro/refinery
998438fad170bf7a73d1dd66df444aa43a978ab2
0d5de8fc3d680a2c79bd0e9384b506229787c74f
refs/heads/master
2021-06-01T02:50:57.259433
2016-09-02T19:42:52
2016-09-02T19:42:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,540
py
''' StochasticOnlineVBLearnAlg.py Implementation of stochastic online VB (soVB) for bnpy models ''' import numpy as np from LearnAlg import LearnAlg class StochasticOnlineVBLearnAlg(LearnAlg): def __init__(self, **kwargs): ''' Creates stochastic online learning algorithm, with fields rhodelay, rhoexp ...
[ "daeil.kim@nytimes.com" ]
daeil.kim@nytimes.com
203ba7939ec3b6e2e005c09cdf947028f34b2708
52b07ec619504acd850b0ecdebf04f148c184722
/exploracao_espacial/exploracao_espacial/settings.py
6ad783c714bb87467ac83b978a2d985afb89f0d6
[]
no_license
nnatsumy/cefet-web-templates
df2c6b78531fef4676f88910bebc4c402e0f71ee
6ceaabf9d759d420a62baab463db03b74dee87b0
refs/heads/master
2020-04-06T10:44:36.636357
2018-11-13T14:08:39
2018-11-13T14:08:39
157,390,085
0
0
null
null
null
null
UTF-8
Python
false
false
3,263
py
""" Django settings for exploracao_espacial project. Generated by 'django-admin startproject' using Django 2.0.4. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ ...
[ "you@example.com" ]
you@example.com
ef88ad46963ae78719c011257fb6012f7f4d47ca
2f38a0b3ef92e981b79e92d9b9a4357e35354a05
/userbot/plugins/deepfryer_IQ.py
30dfd8a5fa07b53eb4502070fc01804386e5c0ed
[ "Apache-2.0" ]
permissive
Sarkaaut/telethon-iraq
b50233189200be4ca5cddf9be220aefca46812bd
a247d2a44c547a2a98befdc4d7be93d55a077f70
refs/heads/main
2023-03-17T01:23:43.430482
2020-11-22T17:53:53
2020-11-22T17:53:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,336
py
#TeleOniOn """ Userbot module for frying stuff. ported by @TeleOniOn """ import io from random import randint, uniform from PIL import Image, ImageEnhance, ImageOps from telethon.tl.types import DocumentAttributeFilename from uniborg.util import admin_cmd from telethon import events @borg.on(admin_cmd(pattern="de...
[ "noreply@github.com" ]
Sarkaaut.noreply@github.com
c33b61597c596c7533115ae9341cd2c626972d22
737c825f562fcdc95137f796d7b643db32f52bf4
/src/main/python/prototype.py
cc2a85152c7a6ac36b7fcb35d8e7106e81c7dca6
[]
no_license
elfkinx/soundcloudArchiving
75e4959ceea430ab4de86a32c7c2f18021f70b80
ce140ece90825b85ede2175813736f0a04b01142
refs/heads/master
2020-12-04T21:17:29.346106
2020-02-16T12:57:19
2020-02-16T12:57:19
231,905,238
1
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
""" scdownload (SoundCloud Downloader) This file contains prototype code / examples of how additional functionality can be implemented The use of the soundcloud API is very restricted. In order to use certain custom functionality you must be registered as a soundcloud developer and/or authenticate using their OAuth ...
[ "verticalwallmonkey+github@gmail.com" ]
verticalwallmonkey+github@gmail.com
ef97ae543a3212d1b2ff32ad02b6a9c469d7a2a0
c59f289e08860fa3daf48dd5476f4f3b0a9c44e0
/Class/Class4/4.04.py
08cf46e88d4053b4357d7e4fe35b00d8a1573871
[]
no_license
Yaraslau-Ilnitski/homework
3abfc4c6115fd0cbf81805f3f22c813eeaadb113
70f7cda71db47aa34f2fb2af6904b0354c1c1f07
refs/heads/master
2023-03-18T17:54:27.199191
2021-03-11T16:51:01
2021-03-11T16:51:01
340,057,189
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
a = int(input("Введите число\n")) s = 0 i = 0 while i <= (a): s += i ** 3 i += 1 print(s)
[ "yilnitski@gmail.com" ]
yilnitski@gmail.com
97d86ce3a9b79b0a674c7875385af3aa7f2c6887
bbc23c85b85cdaec67b5e7a557bf464745c1fa30
/product/permissions.py
0d8b0ad76eb68c235b248df2c8611edd502f4443
[]
no_license
sentf436/Tango
8d59abe84eecd163485422f463c7c383e42f3311
702fc92f98c8be39742e3931fae6a196d7784477
refs/heads/master
2023-08-13T10:51:14.363876
2021-09-20T03:55:09
2021-09-20T03:55:09
408,303,672
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
from rest_framework.permissions import BasePermission, SAFE_METHODS class IsAuthorOrIsAdmin(BasePermission): def has_permission(self, request, view): if request.method in SAFE_METHODS: return True return bool(request.user and request.user.is_authenticated) def has_object_permissio...
[ "dengy.my@gmail.com" ]
dengy.my@gmail.com
cdecca77906e90aff13fe9b8700f41661801839b
6c6e73e9673026defadd0bee869c7429670bebeb
/test/helperFuncs.py
7d57fec2943565565f6572a701cc42a11872dc29
[ "BSD-2-Clause" ]
permissive
carlwestman/uba_report_builder
e611060c52367645a3552f7fed97cfc19f631db1
5b7357b724880de2a25a28d32cc46a3db818fb9f
refs/heads/main
2023-02-19T12:11:41.009954
2021-01-19T21:44:01
2021-01-19T21:44:01
329,865,889
0
0
null
null
null
null
UTF-8
Python
false
false
1,568
py
from random import choice, randrange from datetime import datetime from calendar import monthrange import re def n_to_str(n): if n < 10: return '0'+str(n) else: return str(n) def multiplier(i): return 2 if i % 2 == 0 else 1 def check_sum(s): digits = [int(d) for d in re.sub(r'\D', ...
[ "carl.westman@gmail.com" ]
carl.westman@gmail.com
8d5fdb574575b7437e5d850159284d6807694528
b6472217400cfce4d12e50a06cd5cfc9e4deee1f
/sites/top/api/rest/SimbaCampaignAreaoptionsGetRequest.py
95afbc116c4b727c865648b6f9d4ab716578132f
[]
no_license
topwinner/topwinner
2d76cab853b481a4963826b6253f3fb0e578a51b
83c996b898cf5cfe6c862c9adb76a3d6a581f164
refs/heads/master
2021-01-22T22:50:09.653079
2012-08-26T19:11:16
2012-08-26T19:11:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
''' Created by auto_sdk on 2012-08-26 16:43:44 ''' from top.api.base import RestApi class SimbaCampaignAreaoptionsGetRequest(RestApi): def __init__(self,domain,port): RestApi.__init__(self,domain, port) def getapiname(self): return 'taobao.simba.campaign.areaoptions.get'
[ "timo.jiang@qq.com" ]
timo.jiang@qq.com
567bbbd788558b0874f6915a4805306282a1f6ba
e0e095d77d610cee6e9aaa7a6c2b4317660a3c2b
/代理IP/getgoodip.py
2cc0170c613ca5dee04ba1d5b47bcae866db61ae
[]
no_license
Foxgeek36/Reptile
46be7c2af5ba00d50e214060f9bdfd69283ca41d
4f9f5e42d0e90a233e61b2bec472e80abb3cde5a
refs/heads/master
2020-07-05T07:21:51.258810
2019-08-14T08:59:27
2019-08-14T08:59:27
202,569,833
1
0
null
2019-08-15T15:50:25
2019-08-15T15:50:25
null
UTF-8
Python
false
false
2,353
py
# -*- coding: utf-8 -*- """ Created on Tue Jul 30 12:27:42 2019 @author: Lee """ import requests from bs4 import BeautifulSoup import threading from pymongo import MongoClient from lxml import etree def checkip(proxy): try: url='http://ip.tool.chinaz.com/' headers={'User-agent':'Mozilla/5.0 (Win...
[ "870407139@qq.com" ]
870407139@qq.com
f80403b2a9a9ee11a950b3e0d53b738c7a986e5e
237fa2d18d8819cc170985eeb4305ad95ff09e95
/utils.py
62a861cbea1104798564ec8e30f78175449eb0f0
[]
no_license
AI4Disaster/EarthquakeDamageDetection
2e53de7c970f0f799edbdc5aa0c93f7083cf7baf
29f38286b2592b7e14cc4ffe084f7ce3f10dd6f6
refs/heads/master
2023-04-16T00:32:23.291118
2019-01-27T18:02:33
2019-01-27T18:02:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
from imageproc import Image import numpy as np from tqdm import tqdm import os def get_training_set(image_path, mask_path): ids = os.listdir(image_path) X = [] Y = [] for i in tqdm(ids): img = Image('{}/{}'.format(image_path, i), 'image') #img.normalize() img.set_band_type('l...
[ "janekravchenko09071996@gmail.com" ]
janekravchenko09071996@gmail.com
2f360521ec10d93df91c7b1922ae5aa9e49a2b0b
a8ce78506388e24ab9f66664c4b8d12ad0aa203a
/ov3/ov3.py
6facd07f0bc3f02a66693d278ac4a2b2931ec41c
[]
no_license
nadiawangberg/robotsyn
f49b125d4b8a2389d8574ea67aff8a128d010a66
aed0db414abfabdfa913517b8d475674825f38e5
refs/heads/master
2020-12-15T12:52:09.555293
2020-03-15T12:40:15
2020-03-15T12:40:15
235,108,649
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
import matplotlib.pyplot as plt import matplotlib.image as mpimg import math as math import numpy as np # think about whether it is rows or columns # matrix[row][column] def decompose(H): lamb = math.sqrt(H[0][0]**2 + h[1][0]**2 + h[2][0]**2) H_a = 1/lamb * H r_3a = H_a[0] CROSS H_a[1] H_b = -1/lamb * H r_3b =...
[ "nadiagw@stud.ntnu.no" ]
nadiagw@stud.ntnu.no
f74b25e68c5598deab3ed95040a22bab6dfe38ba
eb5e59a4268e18a329d0d07f4e39f257143aa210
/yelib/utils/num_utils.py
081b2a887b7d396d341063895c67cde7d585f8ec
[]
no_license
jeffzhengye/yelib
a2ed2a3a6c4877986df8eb824919e5fe8aa31266
6fe4c7fe044c35fbb4488fd9c5540a13f2045067
refs/heads/master
2022-01-18T22:57:32.109578
2021-12-25T08:41:58
2021-12-25T08:41:58
84,448,680
3
0
null
null
null
null
UTF-8
Python
false
false
201
py
# encoding: utf-8 def int_bytes(v, length=4): return v.to_bytes(length=length, byteorder='big', signed=True) def bytes_int(v): return int.from_bytes(v, byteorder='big', signed=True)
[ "jeffzhengye@gmail.com" ]
jeffzhengye@gmail.com
5aa9b08bafbdc22bcd849fa8c5ccaeba6cdbb439
703687f3c86cda455b71197fba32da1df61b0ca3
/locust/reward/API_get_reward_summary.py
9aabd776a09604553ad3bf9e9529e02afa41971f
[]
no_license
a9311072/SideProjects
4f86ae104579b60d3cc7abc37a599e1851957e41
b47bb1bc79ccfe7ceb91ae66f34cf7816075449d
refs/heads/master
2023-01-08T11:34:36.747431
2020-11-12T09:24:36
2020-11-12T09:24:36
294,865,938
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
import random import sys sys.path.append('./service') from get_data import get_json_header, get_config from locust import HttpLocust, TaskSet, task company, users_info = get_config() url= '/api/me/rewardSummary?branchId=1' class UserTasks(TaskSet): def get_headers(self): user = random.choice(users_info...
[ "a9311072@gmail.com" ]
a9311072@gmail.com
21b6cc602f6d38c5c1687fc9c74de5dd4c7eb80e
2eeac8d1a19d117e22c89f7fcef54d6fef8bf8da
/proxy-ddos.py
b5727155a16cc08fe80f818b7d9bcacced3ac10e
[]
no_license
fnatalucci/ddos
882831c499d62597fca17990849acd3242c4a61b
470323cccf9b4ccbc2d999f062b18c128f180d5a
refs/heads/master
2021-01-17T23:58:54.396520
2014-11-10T13:29:46
2014-11-10T13:29:46
30,622,203
0
1
null
2015-02-11T00:28:21
2015-02-11T00:28:21
null
UTF-8
Python
false
false
4,842
py
import urllib2 import urllib import threading import random import re import sys import socket #if responce time is more than 3s, it's really a bad one. there is no need to dos . socket.setdefaulttimeout(1) #global params url='' host='' headers_useragents=[] headers_referers=[] request_counter=0 F = open...
[ "dantangfan@gmail.com" ]
dantangfan@gmail.com
b92d9ace7e31d418ca6e4844c3efada789c53b56
eabf2ff3b5b0e31a08182e5983baa8e76e301c69
/main.py
1ecd6e0d6c21326cc8b00c168620090be1ce1271
[]
no_license
githuv4/test
adef1b817f75698b9fddd8749feacf9e304760a7
413de4398865e6813278c690d0cd1353b10b735a
refs/heads/master
2023-04-23T16:30:51.915127
2021-05-06T13:37:54
2021-05-06T13:37:54
364,921,337
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
class Car(): def __init__(self,**kwargs): self.wheels = 4 def __str__(self): return f"Car with {self.wheels} wheels" print(Car())
[ "sendex485@gmail.com" ]
sendex485@gmail.com
9b3f24b2f9d34529c0cd76cfb7f8478e3bb16589
8c1457d9e8ead16aa7eb8d26b1e5f363c227067a
/test/test_examples.py
98550caaed7a95102490752bd6013bf4096ef47b
[]
no_license
gg-project/pygg
a21f0b4a7604802b66d9a6034dc10e2e79845fe5
bd0408b48274dbf990b06d89fb57c826f99e1c3d
refs/heads/master
2023-02-13T23:22:01.787100
2021-01-08T03:27:05
2021-01-08T03:27:05
327,167,563
1
0
null
null
null
null
UTF-8
Python
false
false
2,031
py
from unittest import TestCase, skipIf import pathlib import re import tempfile import subprocess as sub import os import shutil as sh import sys class ExampleTest(TestCase): @skipIf(not pathlib.Path("examples").exists(), "Missing examples dir") def test_examples(self) -> None: ex_dir = os.path.abspath...
[ "aozdemir@hmc.edu" ]
aozdemir@hmc.edu
1d615aa0d77eb62ff98f2b42d36dee5e9b5f0ba5
da1cdd3f43adadb96be1a9e47107478b050717b0
/Implementation/generate_data.py
d064c8a50f52504b9ae7c6956277fcefb14403be
[ "Apache-2.0" ]
permissive
LMesaric/Seminar-FER-2019
34da5abe60efaa3f8c690683d950031b42cab72f
4917f2f19ce7fed23ee707acf3e444a64498d091
refs/heads/master
2021-08-04T12:57:30.857624
2020-06-12T21:49:42
2020-06-12T21:49:42
186,222,429
3
0
null
null
null
null
UTF-8
Python
false
false
643
py
import os import numpy as np import sympy from sympy.utilities.lambdify import lambdify def main(): file_name = input("Enter file name: ") sym_fun_raw = input("Enter function form: ") sym_fun = sympy.sympify(sym_fun_raw) func = lambdify('x', sym_fun, "numpy") xx = np.linspace(-10, 10, num=21) ...
[ "luka.mesaric@fer.hr" ]
luka.mesaric@fer.hr
5fad3bee9aef9649c56296d16dbe5a1f170dc1ed
a05633d4949ef4b236a7f6aa6d7dea4db85ea794
/angr/procedures/linux_kernel/vsyscall.py
c96ad75248b035106495f74ed498893d14e9ff93
[ "BSD-2-Clause" ]
permissive
HemantR88/angr
63b674bb3953d8a78adf0fa58ba7b0f4f164af18
245681597be253ec2261b299e08d9ef0d0fddb7d
refs/heads/master
2020-04-16T07:35:32.266662
2019-01-12T06:37:28
2019-01-12T06:37:28
165,392,624
2
0
BSD-2-Clause
2019-01-12T13:45:13
2019-01-12T13:45:12
null
UTF-8
Python
false
false
490
py
import angr import claripy class _vsyscall(angr.SimProcedure): NO_RET = True # This is pretty much entirely copied from SimProcedure.ret def run(self): # pylint: disable=arguments-differ if self.state.arch.call_pushes_ret: ret_addr = self.state.stack_pop() else: ret...
[ "andrewrdutcher@gmail.com" ]
andrewrdutcher@gmail.com
ff87cb24b2ec8147c419a3da9639f38e6bad8dc6
ec276a5c01968932d83df0b01bd4c9e013fdebe5
/codingchallenge/week4day3.py
231d5bd44a9ea3ff2af1a852955005715c4563c6
[]
no_license
raj-sekhar-au9/assignments
9751965551947ec4aea0ea293e41e5819a89fa00
3fa6544e8951f13aa030bb1b58a98aa8fe5dd292
refs/heads/master
2022-11-26T18:10:45.661209
2020-07-24T16:35:59
2020-07-24T16:35:59
278,550,293
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
substring of a string test_str = char(input("Enter a string")) print("The original string is : " + str(test_str)) res = [test_str[i: j] for i in range(len(test_str)) for j in range(i + 1, len(test_str) + 1)] print("All substrings of string are : " + str(res)
[ "noreply@github.com" ]
raj-sekhar-au9.noreply@github.com
a52f60b481ac799cc3e1f0a5009e0c8a248d3973
80a068532a9efdafddfa13cf9afc8df31eaca270
/stockmgmt/apps.py
847e5d6aab26db342ba57f8a00056be63f10b2d8
[]
no_license
Harshitv670/stockMGMT
af503b29f43f7e30ea7b519ff14a4de49b92035f
46de3e20be8e126934c8590a57ee95ff68306a1d
refs/heads/main
2023-08-13T23:38:10.094493
2021-10-16T07:33:28
2021-10-16T07:33:28
407,251,647
0
1
null
null
null
null
UTF-8
Python
false
false
150
py
from django.apps import AppConfig class StockmgmtConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'stockmgmt'
[ "verma.harshit670@gmail.com" ]
verma.harshit670@gmail.com
29dc1a9b2e1c8b243440868de02a7685d9be2632
dd8c8bc9b56d9ff5266cd7950350a4c373646606
/program_2D/main_program.py
1b665942ac794e9934e335d4b03693225eaaf8df
[]
no_license
dennist26/cahn-hilliard-tumour-fenics
81d0ef3ae1bdc751efd5cb0bbfed839100148fba
bf0dd3a4649efa6cc6baf257278162bdfb93bb7f
refs/heads/main
2023-01-01T07:36:39.759377
2020-10-11T13:08:02
2020-10-11T13:08:02
301,979,681
4
1
null
null
null
null
UTF-8
Python
false
false
2,177
py
from dolfin import * import matplotlib.pyplot as plt from os import path from shutil import copyfile # import necessary files from settings import * from useful_functions import * from class_Tumour import * ''' initialize form compiler ''' parameter_form_compiler(discr) # for mpi mpi_comm = MPI.comm_...
[ "noreply@github.com" ]
dennist26.noreply@github.com
b40da820e755f502e53d956dfeea79bed64cef55
d7016f69993570a1c55974582cda899ff70907ec
/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_accesses_operations.py
30883beab52fdc55a4189602a8be3624341db882
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
52,920
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
5a8e04afdc36104d5c089cdc470a55778a4eadb1
8557a7211b9002aaf3e7c0bb019bc4366a4c3ead
/src/mrsattachment/migrations/0003_remove_mrsattachment_mimetype.py
cb678c886c69b90cd8cf0c1826c6215a4bae6a0d
[]
no_license
mwolff44/mrs
5e24628c11dc4e73bd1739f386bfcca95ff1569a
b5e5b6d97e0d1ba5c454a44762db0713df3a7ba0
refs/heads/master
2020-03-10T13:41:55.310983
2018-04-11T02:30:14
2018-04-11T10:21:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
# Generated by Django 2.0.2 on 2018-02-09 13:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mrsattachment', '0002_mrsattachment_mimetype'), ] operations = [ migrations.RemoveField( model_name='mrsattachment', name='m...
[ "jpic@users.noreply.github.com" ]
jpic@users.noreply.github.com
275b576dcd4c0521d4e3193c7c02dd8d680a2597
1df7d5c6a99f490a4e60f5dc51fa3f4411458280
/orderable/querysets.py
526c72ab283022b3db69e07dc0ce39372c8a9dae
[ "BSD-2-Clause" ]
permissive
todd-dembrey/django-orderable
34b45c8516c9554d33cd48ff1368a7357904c275
a74ed5219593bda1fdbc398efc6bef4a31a2f1e4
refs/heads/master
2020-06-28T04:59:57.827298
2016-11-21T10:03:10
2016-11-21T10:03:10
74,507,777
0
0
null
2016-11-22T19:50:36
2016-11-22T19:50:35
null
UTF-8
Python
false
false
548
py
from django.db import models class OrderableQueryset(models.QuerySet): """ Adds additional functionality to `Orderable.objects` and querysets. Provides access to the next and previous ordered object within the queryset. As a related manager this will provide the filtering automatically. Should you w...
[ "toddd@incuna.com" ]
toddd@incuna.com
edac5f9551360d1d301a353c281a140812b2bfae
d7b3b3e705f7f7e9721b45caf1aff39087402ec8
/fisite/pytest/testfunc.py
8abec30c90bdcd0891579b9053b0ed3d297a362c
[]
no_license
ifcheung2012/fisite
4c400d230355d57f7b332eac565f976e5bc99dc8
9d949a79c96f808eda30d6e962ccde3965077b93
refs/heads/master
2021-01-10T10:18:05.367571
2013-09-26T11:32:58
2013-09-26T11:32:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
from pytest import spam print spam.a para = spam.a spam.foo(para) c = spam.bar() c.grok()
[ "ifcheung@ifcheung-P31-ES3G.(none)" ]
ifcheung@ifcheung-P31-ES3G.(none)
bd78132d735345a3ed742913a3fdd23cee41780c
b35aea9f4411f5dc7942392d78dc31bb76c7ec73
/PythonProject/functions/project_funcs.py
c47d65f8ad3d850f7a80b8fa8c8795f7c4b56f1f
[]
no_license
ashkanusefi/rondshow
1079b81704fff55a1d54fa8dee2712ab61e92f4a
7e5a80fcc6e326b8b1737a54fb53becc4195e475
refs/heads/master
2023-09-01T18:45:33.170465
2021-09-18T11:24:52
2021-09-18T11:24:52
407,820,565
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
def show_menu(): print('********************') print('1-add') print('2-show all') print('3-search') print('4-update') print('5-delete') print('6-exit') print('********************') def fake_data(contacts): contacts['ali']='0912564873' contacts['alireza'] = '0913243876' co...
[ "yousefi.ashkan96@gmail.com" ]
yousefi.ashkan96@gmail.com
7b97643ded1a20f256e1ee9d33c923a1928aca47
bce97baa0eeebbc1323648d913c70ad8e950032a
/vorinclex/old/collate2.py
325fc66ee9ac603871a0afd8cbbf2994b4b7620b
[]
no_license
Corvidium/evemktpy2
4575ade6a5e8c3dc5d8f246762a2562d4a24d39f
cb74f8c8ac00730bc6b47b30ba2b7b8ebad664c3
refs/heads/master
2022-06-03T17:39:39.802051
2020-04-26T21:09:14
2020-04-26T21:09:14
257,740,966
0
0
null
null
null
null
UTF-8
Python
false
false
1,434
py
#OPENS THE REGION ACTIVE MARKET ITEMS LIST AND OPENS THE TYPEID:ITEMNAME LIST AND CONNECTS THE NAME OF EACH ACTIVE ITEM TO ITS ID, THEN PUTS THE RESULT IN ACTIVEITEMS.JSON import json, time import mktconfig from util import uniLog mktset = {} itemrefdat = {} #load itemref data from file into dictionary with open(m...
[ "garrettkno3@gmail.com" ]
garrettkno3@gmail.com
74c87c705a0f4e5e9b962423c68820399b58e061
725b6e877a5cd1593b5a349f9e780302d9e6b771
/cnn_3_Classes_local.py
eb0ef2d5af37647a827973e65e5eff853fd1f766
[]
no_license
RanaMK/Arabic-Sentiment-Analysis-Classification-Project
0817472ba41e1e85b7fe2bbcde41e475df727a70
1a3842e2159cd62c08fb40744f201860d1516894
refs/heads/main
2023-03-22T11:06:47.990780
2021-03-10T17:17:31
2021-03-10T17:17:31
346,290,960
1
0
null
null
null
null
UTF-8
Python
false
false
18,076
py
# -*- coding: utf-8 -*- """ Created on Sat Jan 27 08:21:58 2018 @author: Rana Mahmoud """ import os #os.environ['THEANO_FLAGS']='mode=FAST_RUN,device=gpu,floatX=float32' # Parameters matplotlib # ================================================== import matplotlib.pyplot as plt plt.rcParams['figure.figsiz...
[ "noreply@github.com" ]
RanaMK.noreply@github.com
0658f5c9ccc3c55170a1c98c3ebfc73e980fc31e
1d1973a3ab280609ccf94e866c760b428ec8e51a
/blog/populate/book.py
5209798759e258c0dc1d2111b57a8dd9f8ebd124
[]
no_license
joanne987321/yiblog
7e7afe59629e93b4b25b327c689b6dcf4b72045c
1d847bda017af8164f1c27926f366d07d7c69a4f
refs/heads/master
2021-01-11T07:57:26.261773
2016-11-18T04:37:16
2016-11-18T04:37:16
72,162,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
from populate import base import random import datetime from article.models import Book def populate(): print('Populating book...', end='') titles = ['如何像電腦科學家一樣思考', '10 分鐘內學好 Python', '簡單學習 Django' '如何像電腦科學家一樣思考2', '10 分鐘內學好 Python2', '簡單學習 Django2' '如何像電腦科學家一樣思考3', '10 分鐘內學好 P...
[ "joanne@m516-HP-EliteDesk-800-G1-TWR" ]
joanne@m516-HP-EliteDesk-800-G1-TWR
cf8eca2a88c5a6dd95e1afdab331ae225fbf3df0
c90f01b6780a6446f1c3a2cd85afee08e881f5b1
/authApp/migrations/0002_profile_email.py
377f183f408848b8166dd622a7d9d6a2be70409a
[]
no_license
Masud2017/invoice_inspector
f75b5ff7ece70be793d2cf654503c324299ba3c3
afcb78209ec23b800b2d88bf27d2f1536309aa89
refs/heads/master
2021-04-14T00:18:29.340423
2020-11-12T21:36:07
2020-11-12T21:36:07
249,197,567
2
0
null
2020-10-24T08:25:51
2020-03-22T14:12:24
Python
UTF-8
Python
false
false
387
py
# Generated by Django 2.2.2 on 2020-03-28 03:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authApp', '0001_initial'), ] operations = [ migrations.AddField( model_name='profile', name='email', fie...
[ "unroot@localhost.localdomain" ]
unroot@localhost.localdomain
c4e5ffa01c16819dbb3597b99a6ca8131cb93f9f
b9de33c6fb310ef69cba728b9de1a31165c3a031
/chapter_16_17/closures_VS_classes.py
29b07b69748af656a9f9da7e2ab672e65fdf4541
[]
no_license
bimri/learning-python
2fc8c0be304d360b35020a0dfc16779f78fb6848
5f2fcc9a08f14e1d848530f84ce3b523d1f72aad
refs/heads/master
2023-08-12T20:30:09.754468
2021-10-15T20:53:49
2021-10-15T20:53:49
377,515,946
0
0
null
null
null
null
UTF-8
Python
false
false
2,474
py
"Retaining Enclosing Scope State with Defaults" def f1(): x = 88 def f2(x=x): # Remember enclosing scope X with defaults print(x) f2() f1() # Prints 88 ''' Code inside a def is never evaluated until the function is ...
[ "bimri@outlook.com" ]
bimri@outlook.com
10c764d5ec29bff6abf3c3452acf53b4ecd52792
b9394465cf2ef5bb2b3bb527110233e8e8783b21
/01 Data Prep and Visualization/Convert_to_dict.py
ab2fbb9ede04de69c76ec48a80daa6cf4d754802
[]
no_license
gretaheng/Django_Project
e0f8d65471a2329a71b96a9a818cbe1fc68997f6
551c7d4529c5a3f3462d94df06b4940104d4e3b1
refs/heads/master
2022-11-29T07:26:01.785484
2020-08-19T03:14:09
2020-08-19T03:14:09
288,620,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
# Convert the output from Modify_csv_data.py into a dictionary and export as json file import pandas as pd import json # import hyde_park_crime data into pandas data frame hyde_park = pd.read_csv('hyde_park_crime.csv') # make all upper case in to lower case hyde_park = hyde_park.apply(lambda x: x.astype(str).str.low...
[ "gretaheng18@gmail.com" ]
gretaheng18@gmail.com
396a0d78e2dbad583b9cf3ed2da19e3cc2c7e15a
f0e6a2cd2ba976e5f1b80a49d523c7c3f4333073
/OrganizadorDeTareas/users/migrations/0003_auto_20191129_0724.py
7caa580e21aaf71b544849f180ef8455372bdb5d
[]
no_license
DCC-CC4401/2019-2-Another-One-Bytes-DDoS-T4
11a58dc274a60b8943721e4521c9549137ec823c
29549c73be592e5cea159c51fedadd2b6d2f0766
refs/heads/master
2020-07-31T00:44:39.131991
2019-12-01T23:04:50
2019-12-01T23:04:50
210,419,406
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
# Generated by Django 2.2.7 on 2019-11-29 07:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20191129_0716'), ] operations = [ migrations.AlterField( model_name='usuario', name='correo', ...
[ "sebastian.alfaro@ing.uchile.cl" ]
sebastian.alfaro@ing.uchile.cl
4f16ffbaed8486809cfe453c84b2ec553518556a
a631984152b1449df9ef156cf80a033f6a5692ed
/Sentdex Tutorials/Quantopian [SENTDEX]/QuantopianTradingTutorial_p3.py
91e4d220130eadf92e9d470d90397779c9eda869
[]
no_license
john-m-hanlon/Python
2f58e20ba56b3dede3baf6f5ed259d741434108b
56ebf291b2d8d15f47c942c49d9f40d0ae18741e
refs/heads/master
2020-06-11T09:47:09.188169
2017-03-14T03:32:51
2017-03-14T03:32:51
75,688,794
0
1
null
null
null
null
UTF-8
Python
false
false
3,055
py
''' def initialize(context): context.security = [sid(8554)] def handle_data(context, data): print(data) price_hist = data.history(context.security,'price',200,'1d') MA1 = price_hist[-50:].mean() MA2 = price_hist.mean() current_price = data.current(context.security, 'price') cu...
[ "JohnHanlon@Johns-Air.home" ]
JohnHanlon@Johns-Air.home
96dd71a9955f0d1d9f7160eba7c179a5106bf09d
688f9d1afac62260570f1b82ec16fd99b7c6d28e
/src/assn6/problem2-3.py
3264b26f3158f19ffd571801d6de427728f824b9
[]
no_license
Bryson14/Numerical_Methods
8d9a84ec73a5715a38b88668d4fd02f2433f1a07
d4398cb16473d9bbdd705d68b3f076cb9e701ce6
refs/heads/master
2020-09-28T13:48:47.159737
2020-04-09T00:53:25
2020-04-09T00:53:25
226,790,392
0
0
null
null
null
null
UTF-8
Python
false
false
3,740
py
import numpy as np import matplotlib.pyplot as plt ''' y_x+1 = y_x + h * f(t_x, y_x) ''' def euler(inital_v, initial_y, step): curr_y = initial_y positions = [curr_y] times = [0] velocities = [inital_v] index = 0 while curr_y > 0: # hasn't hit the ground yet if index % (1/step) == 0: ...
[ "bryson.meiling@aggiemail.usu.edu" ]
bryson.meiling@aggiemail.usu.edu
5d1d37d350ad863d0d4e0dda06e14fa47443dc69
fda04351cf6c292e39b639b22075d5aa0c06eecd
/decoder/lperesde/default.py
2c09f205f0ecc64894cb5ce026b9d7f9e5d67462
[]
no_license
turash104/NLP
b9e604d109ef4d4d2f293a9a9c888dea9a43936c
82747a47a9d87b02d06a8e170232f1e3a5f48a4d
refs/heads/master
2021-05-11T22:48:32.503151
2017-12-09T07:42:56
2017-12-09T07:42:56
117,502,316
0
1
null
null
null
null
UTF-8
Python
false
false
4,578
py
#!/usr/bin/env python import optparse import sys import models from collections import namedtuple optparser = optparse.OptionParser() optparser.add_option("-i", "--input", dest="input", default="../data/input", help="File containing sentences to translate (default=data/input)") optparser.add_option("-t", "--translatio...
[ "luiz_peres10@hotmail.com" ]
luiz_peres10@hotmail.com
258935b8a9252c579930fffdb4bbb983e47816fe
9bfc1d17079606513eec50aa9cc02e722eae76d8
/dev/event_timer.py
fcd7422970bf6f455830249e8f25839ca51e8add
[]
no_license
causelovem/ddsCrewBot
a84ec535539558f7fb3a6e3830f661bf75b358b8
9d04e1aece165443d6355dbfa02ca0ac80e398a9
refs/heads/master
2020-07-28T12:02:56.388083
2020-06-20T13:09:12
2020-06-20T13:09:12
209,404,013
1
1
null
2020-03-17T15:01:26
2019-09-18T21:05:55
Python
UTF-8
Python
false
false
14,450
py
# -*- coding: utf-8 -*- import threading as th import datetime import config as cfg import database as db import random as rnd import time import utils rnd.seed(datetime.datetime.now().time().second) @cfg.loglog(command='call_all', type='bot') def call_all(query=db.sel_all_text, chat_id=None): chatUsers = {} ...
[ "rat.taurus@gmail.com" ]
rat.taurus@gmail.com
30133e53023e74bc86d8fb0e6b49f2b89d41c862
c116852255fab7952961dcf5f86cd8a2d5a59fea
/Mundo3/Desafio090.py
d5cffe4b9b93bf024134daa122bf1ccbbe62d267
[ "MIT" ]
permissive
Marcoakira/Desafios_Python_do_Curso_Guanabara
cd4490dfcc739a3ea3fc6bfde605d301123b7bd8
c49b774148a2232f8f3c21b83e3dc97610480757
refs/heads/main
2023-04-27T11:42:13.252040
2021-05-17T02:25:59
2021-05-17T02:25:59
367,167,016
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
# Desafio090 o programa mostra o nome e media do aluno em uma lista com dicionario. ele retorna com os dados e se o mesmo foi ou nao aprovado #aluno = {'nome':'joaquim', 'media': 4.5} aluno = {} aluno['nome'] = str(input('Nome do aluno(a)')) aluno['media'] = float(input('media do aluno(a)')) print(aluno) print(f'Nome:...
[ "tetissu2@gmail.com" ]
tetissu2@gmail.com
46657570c006e0c476ef96b201e147f66569f7e4
488987fa46d8ab760a68f368784fcf6dca4e065c
/Website/warehouse/migrations/0001_initial.py
2b58d528618269e9cada284090b2c5e4557d4548
[]
no_license
ScrumdogMillionaire/SkyAccessories
cf03e9f8727dac5df96077e42e28ea3dfa30955d
e96bc45a234935b0e92e12d8c533f4136a804232
refs/heads/master
2021-01-19T21:25:39.380876
2015-07-25T10:16:13
2015-07-25T10:16:13
39,084,178
1
0
null
null
null
null
UTF-8
Python
false
false
503
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Warehouse', fields=[ ('id', models.AutoField(ve...
[ "megan@theparkes.me.uk" ]
megan@theparkes.me.uk
e40a6d49051f873f3a67643eb5506a6a5b9886b7
7e0a8226c17afbfa5005b9b9867d60c28f87274e
/TestRobotFunctions.py
a10978c4f5fb9b143b0ae3f9b0d11fc66efdf81c
[]
no_license
VicZamRol/RobotSimulator
816978c7ae24ffc0242143dab341ecda38045055
4e186cd47e9c47aaa95d0e7b034c33a5ac34b7b5
refs/heads/master
2020-03-29T18:35:46.911956
2018-09-26T04:21:27
2018-09-26T04:21:27
150,222,268
0
0
null
null
null
null
UTF-8
Python
false
false
6,251
py
# TestRobotFunctions.py # import statements import unittest import ParserFunctions import RobotFunctions import Game class TestSystemFunctions(unittest.TestCase): # Test Parser Functions def test_isValidCommand_forMOVE(self): result = ParserFunctions.isValidCommand("MOVE") self.assertEqual("valid command", re...
[ "victor.zamoraroldan@gmail.com" ]
victor.zamoraroldan@gmail.com
c941edde2a0e098c955ef45b30a2a83a0c7c272a
2422ee49450d11f318a501ed22a77ca1efa586c9
/HELLOPYTHON/day03/pyoop01.py
6df71c234ac23e7e1dae68ef239312396ad62ed3
[]
no_license
Jinny-s/ddit_python_backUp
aefc371afbc4f8d7bdff90682b3fe6bdd93a8c1b
3fb62e69574b98f8ee935ffff9f37e324a17f771
refs/heads/master
2023-05-11T21:48:28.412306
2021-05-28T00:13:12
2021-05-28T00:13:12
369,527,325
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
class Animal: def __init__(self): self.fullness = 0 def eat(self): self.fullness += 1 def manddang(self): self.fullness = 10 class Human(Animal): def __init__(self): super().__init__() self.flag_cook = False def goHakwon(self): ...
[ "46083003+Jinny-s@users.noreply.github.com" ]
46083003+Jinny-s@users.noreply.github.com
1e9f546fc3daa952a696e913dd48272b89249664
7f44bbd04f6ba09610527ee7ffee7b2ed3f66534
/algorithms/greedy/travelling_salesman_problem.py
b54ad516b8f52161f083b077aea87431b3fdc80d
[]
no_license
corolyy/Algorithm
dd4bc5838e68e0e0648534ee85ec92c2b19b1e03
fca2619d69bb3c18310dd32cd6ba6a7aaf2bf6f3
refs/heads/master
2021-07-25T02:34:18.406822
2017-11-05T15:36:34
2017-11-05T15:36:34
106,845,440
0
0
null
null
null
null
UTF-8
Python
false
false
1,986
py
# -*- coding: utf-8 -*- from random import randint import sys '''旅行商问题: 最优方案需O(N!) 求N个城市之间的最短路线,不定起点 ''' MARLIN, BERKELEY, SAN_FRANCISCO, FREMONT, PALO_ALTO = ('Marlin', 'Berkeley', 'SanFrancisco', 'Fremont',...
[ "coroyu@163.com" ]
coroyu@163.com
047e3a2e376468ced519fa3d14b40881c125243e
00cfb6b10afed712da7789c6e58f601a04778c6e
/model/__init__.py
f7d3eddfd0fb7111d53cf9ac8ee6433898a8c048
[ "MIT" ]
permissive
TotallyFine/DataScienceBowl18
4bf5c7db99ed615e3558262d74c32af913a47deb
cd683d55e4275f13beff121c83be3bc7d19ff566
refs/heads/master
2021-05-03T06:37:42.901963
2018-03-14T14:34:01
2018-03-14T14:34:01
120,599,829
5
0
null
2018-02-14T08:24:22
2018-02-07T10:24:00
Python
UTF-8
Python
false
false
38
py
# coding:utf-8 from .UNet import UNet
[ "jipuzhaoklp@outlook.com" ]
jipuzhaoklp@outlook.com
7b0eb062bdb82ba3e31330f3c10272afeea5b48a
3f78fea343abcab2f0283afe31771d25a7df6229
/NaiveBayes.py
ab19ae8c0d39c8206ae199499a43000bb740bd78
[]
no_license
VishalJadhav90/MLAITryouts
1c2a84278efe2aded947d383777ee00d7ddeb6ae
24a1824454889dacca9b33c95b11966bb0032366
refs/heads/master
2020-07-21T16:07:17.279620
2019-10-20T04:38:45
2019-10-20T04:38:45
206,917,261
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
import numpy as np x = np.array([[-1, -1], [-2, -1], [-3, 0], [1, 2], [1, 1], [2, 2]]) y = np.array([-1, -1, -1, 1, 1, 1]) from sklearn.naive_bayes import GaussianNB cls = GaussianNB() cls.fit(x, y) predictions = cls.predict([[-0.2, -1]]) from sklearn.metrics import accuracy_score print(accuracy_score(predictions, [...
[ "jadhav.vsh@gmail.com" ]
jadhav.vsh@gmail.com
36427bc68422838a83e33aaa143b65e001468997
7947e4512a324026f83f7242ddb02a62d1d51f39
/readparquet.py
b635a0fa27ee8085734eae0e71065be7da47d611
[]
no_license
NuTufts/ubparquet
0ed65b144d456fa5c8dc06b7bd78c2dda4c191e5
7b8f925ceb32f92b215aa6e6ff8cf8000642501a
refs/heads/main
2023-09-05T22:33:09.962946
2021-11-22T21:31:30
2021-11-22T21:31:30
413,850,058
1
1
null
2021-11-18T14:50:31
2021-10-05T14:23:02
Python
UTF-8
Python
false
false
1,349
py
import os,sys import numpy as np import pyarrow as pa import pyarrow.parquet as pq class UBParquetReader: def __init__(self,filename): self.table = pq.read_table(filename) print("columns: ",self.table.column_names) print("nrows: ",self.table.num_rows) self.nentries = self.table.num_...
[ "taritree.wongjirad@gmail.com" ]
taritree.wongjirad@gmail.com
403c6e6e44b99774b3178c68715699270e452db1
da19363deecd93a73246aaea877ee6607daa6897
/xlsxwriter/test/comparison/test_chart_scatter03.py
b5f7f25997bbd1dbb9a40b7b9b9bdf7a9af21cad
[]
no_license
UNPSJB/FarmaciaCrisol
119d2d22417c503d906409a47b9d5abfca1fc119
b2b1223c067a8f8f19019237cbf0e36a27a118a6
refs/heads/master
2021-01-15T22:29:11.943996
2016-02-05T14:30:28
2016-02-05T14:30:28
22,967,417
0
0
null
null
null
null
UTF-8
Python
false
false
1,735
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTes...
[ "lealuque.tw@gmail.com" ]
lealuque.tw@gmail.com
7f66969edaa3a47ede87d591fc160eb7f5b05f4f
0bfdc5d241cb15959e1b12ba9886e330e2bd27b0
/test.py
895e80085c46b0e1fccc36388f429f561b0f30be
[]
no_license
xianpeijie/AlphaZero_Gomoku_PyTorch
a0ad79d4f77a921e2f152980653ce0c152883e8d
bd5c5c106a74cf8b3de62d8b0101845f57e72933
refs/heads/master
2023-06-05T10:05:06.352498
2021-06-25T12:16:41
2021-06-25T12:16:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
#! /user/bin/env python # -*- coding: utf-8 -*- """ @author: gingkg @contact: sby2015666@163.com @software: PyCharm @project: AlphaZero_Gomoku_PaddlePaddle @file: test.py @date: 2021/3/4 @desc: 测试用文件 """ import torch import torch.nn as nn import torch.nn.functional as F conv1 = nn.Conv2d(4,16,3,1,1) fc1 = nn.Linear(...
[ "sby2015666@163.com" ]
sby2015666@163.com
ce8d5f2a493812c5c08129eedd350876554db2e6
ff9a907da4f6a7504e6b199d67a2ba5b333d11ed
/setup.py
5c980a76221af3fd193a3dc884679ee89dd1ca8c
[ "Apache-2.0" ]
permissive
LJStroemsdoerfer/boxify
61175f637da03421e8e0369aa1aa82bbd95bda2c
e721b740ec9dfe29b99004215e86b51a6988f919
refs/heads/main
2023-03-14T23:19:08.544141
2021-03-08T20:53:03
2021-03-08T20:53:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
# load libs from setuptools import setup import boxify # read in README.md with open("description.md", "r") as fh: long_description = fh.read() # catch the version current_version = boxify.__version__ # define the setup setup(name='boxify', version=current_version, description='Containerization for P...
[ "ljstroemsdoerfer@gmail.com" ]
ljstroemsdoerfer@gmail.com
454c41f67acd3d912bb5d5053791e65b4da74332
217d76069856b3e187003636745ede20b27146f2
/Unidad 4/Pilas.py
777874b7dac951b4df6a17d0e2077a6ab7fd4e2e
[]
no_license
ArielAyala/python-conceptos-basicos-y-avanzados
05b5b537c61a8f5e339f18d3b86e4fdaabb88a2e
5d7540bb700e7f9107d4829c2b5733d14ce46b70
refs/heads/master
2020-12-01T09:02:52.079041
2020-01-12T23:45:46
2020-01-12T23:45:46
230,597,485
1
0
null
null
null
null
UTF-8
Python
false
false
249
py
pila = [3, 4, 5] pila.append(6) pila.append(7) print("Toda la pila :", pila) print("Quitando el último dato", pila.pop()) ultimoValor = pila.pop() print("El último valor de la pila es : ", ultimoValor) print("La pila sin el ultimo valor ", pila)
[ "arielayalamail@gmail.com" ]
arielayalamail@gmail.com
06917bdd90b1a9961c35903a13520d96cbecf7aa
1346721a8e737f611aae46a237410955ab21b89b
/source/assign4_stepanovic/assign4_stepanovicApp/migrations/0004_auto_20171029_1418.py
b4c374e7121b384326ffb0ac04009eae887bb371
[]
no_license
it-teaching-abo-akademi/web-services-2017-project-part3-sstepano
37e3531827f43c7d1e0c03c62689c3621d1a4a97
b5b23c9dddbb5ffb59d47cd3c9cf417f9690d3f5
refs/heads/master
2021-07-22T10:51:18.361364
2017-10-31T19:42:17
2017-10-31T19:42:17
108,551,623
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-29 12:18 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('assign4_stepanovicApp', '0003_profile'), ] operations = [ migrations.RemoveField( ...
[ "srboljub.stepanovic@abo.fi" ]
srboljub.stepanovic@abo.fi
1dd1795cdb320e2b1a62ab64528ba8efc74aa4b8
ea6b36a1886a3edbe3d922daafdc805e65bd6f45
/Lib/Timer.py
65eb85cf5e009f90812c5793dd270f27570f9357
[]
no_license
zorchenhimer/Meili-Display
b1200aa06f0062ff504e7c3637713e9276192638
95c6471831d66949ff0e854bcc59648d87db2a1a
refs/heads/master
2016-09-06T12:59:36.896312
2014-12-27T10:17:14
2014-12-27T10:17:14
30,287,672
0
0
null
null
null
null
UTF-8
Python
false
false
3,331
py
#!/usr/bin/python import time from Logger import Debug, Info, Warn class TimerEvent(): def __init__(self, id, interval=5): self.ID = id self.LastUpdate = 0 self.UpdateInterval = interval Info("New TimerEvent() with id '" + str(self.ID) + "'") def time_to_update(self): if time.time() - self.LastUpdate > ...
[ "zorchenhimer@gmail.com" ]
zorchenhimer@gmail.com
63bd22ad08dd606c44b591bfbac74191e5796400
e7c19b31f3328755d5e309d45f0003665511361d
/SearchTrees2/UpdatingSearchTreePlayer.py
a0957167e14544706cf2564baeccf823c379164c
[]
no_license
janhon3n/MarkovMaze
1f5d0e183c3309045a7868e2324ac6512961aa10
8640949ae304a29b2621f27dd61c4a932890a0ef
refs/heads/master
2021-09-07T08:31:13.487943
2018-01-09T08:09:44
2018-01-09T08:09:44
107,707,826
0
0
null
null
null
null
UTF-8
Python
false
false
2,525
py
from SearchTreePlayer import * class UpdatingSearchTreePlayer(SearchTreePlayer): maxIterations = 100 moveCost = 0.0 discounting = 0.9 leafNodes = [] def initialize(self): return def move(self): move = self.findPathWithMaxReward(self.maxIterations) self.stage.execute...
[ "janhon3n@gmail.com" ]
janhon3n@gmail.com
12917b835a1c4b41df8b0df293d7f0501c45be0c
e9d6a3ff13386cd32113f063cf38d18da81b2d10
/clients/services.py
61b4f3d7b2c5719ca5eb3e1c90ae51e96623b0f4
[]
no_license
dimekai/Client-Systems
fbf9aadb5829257b8f49632e1732e484b10bb77b
00b2e41fff5caead6e3ce7aa9aea74105190e7f4
refs/heads/main
2023-06-19T02:27:20.747813
2021-07-16T03:02:08
2021-07-16T03:02:08
386,482,208
0
0
null
null
null
null
UTF-8
Python
false
false
1,503
py
import csv import os from clients.models import Client class ClientService: def __init__(self, table_name:str): self.table_name = table_name def create_client(self, client): with open(self.table_name, mode='a') as f: writer = csv.DictWriter(f, fieldnames=Client.schema()) ...
[ "jesus_kdm@hotmail.com" ]
jesus_kdm@hotmail.com
d254493b3f1aad7dea444048ac4156a0d2f8ae1c
ee6fc02e8392ff780a4f0d1a5789776e4d0b6a29
/code/practice/abc/abc050/a.py
84c536ac978d890ee0358817b30a0ea7e3036ba0
[]
no_license
mollinaca/ac
e99bb5d5c07159b3ef98cd7067424fa2751c0256
2f40dd4333c2b39573b75b45b06ad52cf36d75c3
refs/heads/master
2020-12-22T11:02:13.269855
2020-09-18T01:02:29
2020-09-18T01:02:29
236,757,685
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- print(eval(input()))
[ "github@mail.watarinohibi.tokyo" ]
github@mail.watarinohibi.tokyo
85fef72280fba4b1885f2ebbc9ed6dcf012afa4f
1c5145b08987b46c11c6303f54c7b5e85e2091a8
/answers-python/206-ReverseLinkedList.py
4802908878f3bf97bba8b17810da70593ff1472b
[]
no_license
prefrontal/leetcode
bd44f5bd9829536504a0da12e101c6a483fb6897
27c2ea1b5fb6f60cd434c4fb52f87b4132d23025
refs/heads/master
2022-12-25T21:03:28.674338
2020-09-09T04:30:23
2020-09-09T04:30:23
284,881,441
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
# LeetCode 206 - Reverse Linked List # # Reverse a singly linked list. import time class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next def reverseList(head: ListNode) -> ListNode: if not head or not head.next: return head next_node = None wh...
[ "prefrontal@gmail.com" ]
prefrontal@gmail.com
8cbcd9c2cc9d54eef562fcec466ec9620e0acd80
5491342888577af7fd9c51b404f6bad60794955b
/migrations/versions/f1dacd342deb_.py
9ab9290658393cb1a8a60900e47ba4d3be70281f
[]
no_license
hanaryadn/python-project-krs
028dc40071eb85b2666d5b7440b7dfc181d6efa2
402567787208f09f0bd0fb4402073f492ef25f42
refs/heads/master
2020-03-23T07:30:52.454376
2018-07-17T10:54:32
2018-07-17T10:54:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
"""empty message Revision ID: f1dacd342deb Revises: c28bfec6b5e0 Create Date: 2018-07-15 12:10:27.998827 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'f1dacd342deb' down_revision = 'c28bfec6b5e0' branch_labels = None depe...
[ "hanaryhanz17@gmail.com" ]
hanaryhanz17@gmail.com
cd49636ca58174bc30efdf2af8bb38bead9ced7c
0a727f3ffde045805b9b789abbaa9c8497667f8e
/SimpleCalc.py
8b0c58d59b4eea6a5c6bb5a9128d18445c849add
[ "MIT" ]
permissive
esitarski/CrossMgr
ff4a632089a144f6ecc57970e2b29a7c31a15118
a95ac1d65f2d0cab712cc6e5f9393668c1bbf83c
refs/heads/master
2023-08-30T22:48:43.457978
2023-08-24T14:12:44
2023-08-24T14:12:44
1,042,402
33
20
MIT
2023-04-30T13:32:11
2010-11-01T17:25:15
Python
UTF-8
Python
false
false
5,359
py
import re import math tokNum = 'n' tokError = 'e' tokEnd = '$' reTime = re.compile( '(?:[0-9]+:[0-5][0-9]:[0-5][0-9])|(?:[0-5]?[0-9]:[0-5][0-9])(?:\.[0-9]+)?' ) # ------[HHH]H:MM:SS-------------- ------[M]M:SS--------- ---[.ddddddd]--- reNum = re.compile( '[0-9]*\.?[0-9]+' ) # [ddd][.]d[ddd] reWhitespace = re....
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
05fb5e179b99b0e6ed94e9506ce162953f5df8bf
f6e4417a6e756a57abeacf9857b621c603b7ce2f
/lib/format.py
9b4d200dd17174f74fdc44db653fa53738f1176a
[ "MIT" ]
permissive
pretech86/phonia
43b7114d2bbfa2fca1f9909f1d88afae7bdd3247
521e3fd110f60a220e5d47c46ed84facd394ddd3
refs/heads/master
2020-11-26T06:16:51.950520
2019-12-18T21:23:02
2019-12-18T21:23:02
228,988,569
1
0
MIT
2019-12-19T06:20:01
2019-12-19T06:20:00
null
UTF-8
Python
false
false
409
py
#!/usr/bin/env python3 import re def formatNumber(InputNumber): return re.sub("(?:\+)?(?:[^[0-9]*)", "", InputNumber) def replaceVariables(string, number): string = string.replace('$n', number['default']) string = string.replace('$i', number['international']) string = string.replace('$l', number['i...
[ "noreply@github.com" ]
pretech86.noreply@github.com
c270a4bf8312a3e97a2d29b77adb4f7f4e1be3e4
d9dee018534159b40ce43db47e3987e6ac6e1d4b
/tests/integration/test_payment_method.py
775e6dddccc054496bcf7bc3ad4a3a67ed67f1ad
[ "MIT" ]
permissive
willardj093/braintree_python
65fc70e029a0f04da024f7a67322a9051c5485c8
1363cda4fec56b3e53681dc37eeb34586eb5d50f
refs/heads/master
2023-07-10T13:37:25.075950
2021-08-19T19:33:37
2021-08-19T19:33:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
67,856
py
import time from datetime import datetime from tests.test_helper import * from braintree.test.credit_card_numbers import CreditCardNumbers from braintree.test.nonces import Nonces class TestPaymentMethod(unittest.TestCase): def test_create_with_three_d_secure_nonce(self): customer_id = Customer.create().cu...
[ "code@getbraintree.com" ]
code@getbraintree.com
581f399461e2e9d4620c41a64c9be5adf5b2dc9b
a7d5fad9c31dc2678505e2dcd2166ac6b74b9dcc
/tests/dlkit/primordium/locale/types/test_language.py
f3319f5513702a06de80ebba455a6f6bc7b90c19
[ "MIT" ]
permissive
mitsei/dlkit
39d5fddbb8cc9a33e279036e11a3e7d4fa558f70
445f968a175d61c8d92c0f617a3c17dc1dc7c584
refs/heads/master
2022-07-27T02:09:24.664616
2018-04-18T19:38:17
2018-04-18T19:38:17
88,057,460
2
1
MIT
2022-07-06T19:24:50
2017-04-12T13:53:10
Python
UTF-8
Python
false
false
1,458
py
import pytest from dlkit.abstract_osid.osid import errors from dlkit.primordium.locale.types.language import get_type_data class TestLanguage(object): def test_get_type_data_with_iso(self): results = get_type_data('gl') assert results['identifier'] == 'GLG' assert results['namespace'] == ...
[ "cjshaw@mit.edu" ]
cjshaw@mit.edu
83833092fcb6d0da8ef00dbc5c3f3e091dd4a6da
212321b2ac57d33e76a955cb6d2418551f245b1c
/Daniel/0. Clases - Coche.py
6bf77cd8669f9f133b594997bc8111bd1298a82c
[ "MIT" ]
permissive
alexxfernandez13/Clases
506700f29d873a5fb6d16b6514aca8cfe1cde424
c69876f0701846aeeac0ccf625b96240a5601320
refs/heads/main
2023-01-01T22:40:41.452312
2020-10-25T17:04:46
2020-10-25T17:04:46
305,363,261
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
##### CLASSE vs FUNCTIONS # - 1 logica / tematica # - 2 para tener un objeto que lo contenga todo class Coche(): def __init__(self, marca, puertas): self.marca = marca self.puertas = puertas self.velocidad = 0 def acelerar(self, km_h): self.velocidad = self.veloc...
[ "alexxfernandez13@users.noreply.github.com" ]
alexxfernandez13@users.noreply.github.com