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
92d62ace7714ddef67f936c87933148a421363ee
0d6ed26ac9a6d09536b0d4f65428e893e48cebd8
/main.py
ed9973823eddbaf85a099b2177be9c265dc541ca
[]
no_license
Rubs24/TTT-Python-Advanced
484436b1deb497df61c51847faf3ce77bd036e27
5957851eea218d529d8174ca9a722c7178224c3c
refs/heads/master
2023-08-31T21:30:42.111702
2021-10-27T18:49:31
2021-10-27T18:49:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
from onePlayer import * from twoPlayer import * def choose_game(): game_choice = input("Would you like to play a one or two player game? (1/2): ") valid = False while not valid: if game_choice == "1": valid = True one_player_game() elif game_choice == "2": ...
[ "rubenmendoza@gmail.com" ]
rubenmendoza@gmail.com
155f96f27a6d198180e038e369da4cc63d345163
5a6354ebeef52b138f09ac3829b8664f14a46ef1
/cap03/ex03.py
51b02f0112ada4ae3f94bc651ab0f5a3ba002f4e
[]
no_license
dmagdaleno/opencv_examples
be64e48841c84a1aeb3a8532ee567cddfc6d1a5a
d37e7ee6cb6b37843cebe4ed632c00d2b88cb798
refs/heads/master
2020-04-25T06:02:11.145503
2019-03-01T20:47:56
2019-03-01T20:47:56
172,564,543
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
import cv2 capture = cv2.VideoCapture(0) while True: ret, frame = capture.read() cv2.imshow("Frame", frame) if cv2.waitKey(1) & 0xFF == ord("q"): break capture.release() cv2.destroyAllWindows()
[ "diegommagdaleno@gmail.com" ]
diegommagdaleno@gmail.com
ebb6d4329d0a72b943eceeaa361603e468a00491
2f17d0b69206300e38741285d3101f5e9d5a769a
/04 - 字符串变量/code_challenge_solution.py
3d87170a958ca4c5212cf96e8b81949cd68f384e
[ "MIT" ]
permissive
lingshen09/c9-python-getting-started-zh
2db34457fd6a16faead1b35ca8d37bd9f40bf2da
483d9c13ac085b6342b10223bb81e3e6ab34cc28
refs/heads/master
2020-12-07T10:02:02.195592
2020-01-10T08:56:39
2020-01-10T08:56:39
232,698,988
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
# ask a user to enter their first name and store it in a variable 让用户输入姓并存入变量first_name first_name = input('What is your first name? ') # ask a user to enter their last name and store it in a variable 让用户输入名字并存入变量last_name last_name = input('What is your last name? ') # print their full name 打印出完整姓名 # Make sure you ...
[ "xiaodawei@qeeyou.cn" ]
xiaodawei@qeeyou.cn
ee3b20fc697c3d1f3fbf397a840d3b576efd3513
cf1736096051056434ee38407fd0034d07c49044
/test/testing/test_collect.py
1f2251bbb1659c5134bb79bda56a52b33275875d
[ "MIT" ]
permissive
paskma/py
5a41a50381ef7c35bc77b261941d7a0eff8553a8
92c92afa7096a167eb70ba82a526b879fbd27afd
refs/heads/master
2020-05-20T05:49:17.301451
2013-01-20T16:01:44
2013-01-20T16:01:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,789
py
from __future__ import generators import py from setupdata import setupdatadir from py.__.test.outcome import Skipped, Failed, Passed, Outcome def setup_module(mod): mod.datadir = setupdatadir() mod.tmpdir = py.test.ensuretemp('test_collect') def skipboxed(): if py.test.config.option.boxed: py.t...
[ "paskma@gmail.com" ]
paskma@gmail.com
fbd608fda78efd080fc844d09860e874519dbdae
c5e45dfe84f4318d58ac7cf7ba815ea5db594c12
/w2v_lang_model_2_1.py
a52fdc4b74e7d9853b1b624cba776a81c299d5d1
[]
no_license
swapnilg915/Email_sentence_prediction
13fb1a602e8eed138390f7594fd5c299aec3c55f
8325c5873aeeaaf751e1c7ba871fc956ddddcc41
refs/heads/master
2020-04-14T03:04:28.812763
2019-06-02T18:27:14
2019-06-02T18:27:14
163,599,331
1
0
null
null
null
null
UTF-8
Python
false
false
4,442
py
# -*- coding: utf-8 -*- import pickle, traceback, csv, re, os, json import numpy as np from numpy import array from keras.preprocessing.text import Tokenizer from keras.utils import to_categorical from keras.preprocessing.sequence import pad_sequences from keras.models import Sequential from keras.layers import Dense, ...
[ "swapnilg915@gmail.com" ]
swapnilg915@gmail.com
270fe9327ff01e8675e00fc0f2740f4587ef2f69
9e2383e20ec6974584ada07b9c04178ec1309c69
/detection/background_sub_mog.py
9c3b6f949b89f5f24c207a695ec79abd7e046645
[]
no_license
weizy2018/moving_object_detection
c15966ac4e79d0eff3edb6e4b9ca008b95267f82
77b41d44aa61c3f2cc422372aa3c407984a89c8c
refs/heads/master
2022-09-25T18:24:21.254287
2020-06-07T07:16:42
2020-06-07T07:16:42
265,260,632
3
0
null
null
null
null
UTF-8
Python
false
false
650
py
import numpy as np import cv2 as cv capture = cv.VideoCapture('/home/weizy/Programs/opencv/opencv-4.1.0/samples/data/vtest.avi') # capture = cv.VideoCapture("/home/weizy/Videos/people.mp4") fgbg = cv.bgsegm.createBackgroundSubtractorMOG() count = 0 while True: ret, frame = capture.read() if not ret: ...
[ "2233467661@qq.com" ]
2233467661@qq.com
d37cca6c091d341668621d986cf845ec599913be
2dbb39316215cf3259fe2c16efa405af0f882117
/Polarization/jpsi/makePolPt.py
cd4f28980c9025fdc57a4b532e506b9bcd267278
[]
no_license
zhlinl/usercode
5b2eac392c947df3cd1ba335337619b86357d481
64a35973567d7ecb2bfbd240f9bcbb9dc897bee6
refs/heads/master
2020-06-02T17:56:26.424790
2013-06-25T12:00:23
2013-06-25T12:00:23
10,526,709
0
1
null
null
null
null
UTF-8
Python
false
false
9,269
py
#!/usr/bin/env python # implementation of the full polarization fit using a RooSimultaneous # should be much more stable than what we had previously # nuisance parameters will be fit without polarization first and # then constrained during polarization fit. import os from optparse import OptionParser import ROOT impo...
[ "" ]
4ba16bfe6846a7b2f9f066a4d5929c56f01f48e1
d9bcbdc5894f3222015069a62e13356ed5f034fd
/blog/models.py
5dd9ef4e2804dd85c2aeefa4cba872457f00c74e
[]
no_license
naeglinghaff/blog-python-django
6edc5ac1bf1167bfa4068d0c176095443936d3f1
9889d10cc810cfc5451061ecf4967e0f8816344d
refs/heads/master
2022-12-14T08:52:24.416297
2021-05-10T06:54:53
2021-05-10T06:54:53
186,142,502
0
0
null
2021-09-22T17:53:13
2019-05-11T14:24:28
Python
UTF-8
Python
false
false
1,129
py
from django.conf import settings from django.db import models from django.utils import timezone from ckeditor.fields import RichTextField class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) title = models.CharField(max_length=200) text = RichTextField()...
[ "kate.o.haffenden@gmail.com" ]
kate.o.haffenden@gmail.com
2929ae846fc40ff6d48f675acc8da62e79b73e75
d27c8580ae3897899f325d22d4c337adb57a92b4
/web_services/googleapi.py
2d50f24c65b2187e05918f93e37a0580589fd5cf
[]
no_license
johnnymcodes/cs131b_python_programming
a87fa4803670ff9b3f3a9914a4482f4e3f208b9b
a5bfcf8e0629e947084ce23c187fee9bcae22fd0
refs/heads/master
2022-12-28T15:47:52.602455
2020-08-07T20:57:30
2020-08-07T20:57:30
285,878,388
0
0
null
null
null
null
UTF-8
Python
false
false
1,062
py
#prompts the user for a serach string, calls the google geocoding API and extracts #infofrmation from the returned JSON import urllib.request, urllib.parse, urllib.error import json serviceurl = 'http://maps.googleapis.com/maps/api/geocode/json?' while True: address = input('Enter location: ') if l...
[ "me@MacBook-Pro.local" ]
me@MacBook-Pro.local
03a7ebb03c05b658a236c3dea48771fc3a2d4243
3d9d87cdb5617694c7307f5af0bd3d885524ad7d
/main.py
9d9ec2130838ccc328009f0fe17e8af79d6d3e89
[]
no_license
nasimnian/ADC-802.11
a5f1f644deace9957931a1e28b2483f2c6a04024
bfb6f44ae7657c9d3064dd2e2e9f448b2a1df0fa
refs/heads/main
2023-03-02T17:47:37.775049
2021-02-07T13:48:17
2021-02-07T13:48:17
336,806,329
0
0
null
2021-02-07T14:26:38
2021-02-07T14:26:37
null
UTF-8
Python
false
false
3,898
py
## Modules import numpy as np import math import matplotlib.pyplot as plt from numpy import fft ## Initialization bpsk_6 = { "rate": 6, "coding rate": 1/2, "Nbpsc": 1, "Ncbps": 48, "Ndbps": 24, "RATE": [1, 1, 0, 1], } bpsk_9 = { "rate": 9, "...
[ "noreply@github.com" ]
nasimnian.noreply@github.com
25439acf858c1dfe9d9f42de104a9aeb6e09e8b4
ae59ba0b5140e80a4ae3aa89c5dd46a628b19033
/moment_calculation.py
edb76dccd60daf4f2ad82ad92791a2bb0c78eed1
[ "MIT" ]
permissive
Smitheey/robinhoodMarket
4008fc692e3a76b34efc58adb8bda65bef1d26d3
f535f82a7546a354135816eb2f914a9508e05197
refs/heads/master
2022-12-29T01:48:54.202440
2020-10-12T20:58:34
2020-10-12T20:58:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,603
py
''' Util functions to calculate moments through the program ''' from project_parameter import * def get_realized_daily_vol(returns, make_pct=True): ''' :param returns: 1D np array of doubles, corresponding to financial returns :param log_ret: True iif the returns given are log-returns (True by default, sin...
[ "gaby.cazau@gmail.com" ]
gaby.cazau@gmail.com
5027fa1a8207dd5805fcbe76b11be6861b88b173
e28a68a91e5ce15e0a88682d9231280ab9bb9a9c
/fast_pack_fcr.py
8961ace77a020016a14f26b1f56d9086fde32f4d
[]
no_license
chaoranf/fast_pack_fcr
a87e6e7524219d2f8239b57706f36d65fa822969
21bce58d81ca2caf675a32856ccb45dad2463b10
refs/heads/master
2021-05-14T06:04:14.635574
2018-01-08T09:23:27
2018-01-08T09:23:27
116,233,124
3
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
#!usr/bin/python # coding = utf-8 import os import shutil import sys import zipfile def getChannels(): f = open("./channels", "r+", -1, "utf-8") channel_list = [] for line in f: channel = line.split(" ")[-1] channel = channel.strip('"') channel = channel.rstrip('\n"')...
[ "noreply@github.com" ]
chaoranf.noreply@github.com
ce7b88bcc169d7506cdfc7ce433db94ac446e0c6
a0a5c9879e6eb3f599dac46cabf3a0df4ed92a43
/stream.py
ce6b33ec68c2cb444c2ea0f465aeb49ae4acf0f3
[ "MIT" ]
permissive
SyrZifanW/600
cc8e6fe3a2f29dc883b500b99af2b5e6942e5981
6fdc3e5e5ec7133d0ef50af4f29d5cffb0985c67
refs/heads/master
2021-06-20T01:18:39.184410
2020-04-15T20:57:55
2020-04-15T20:57:55
254,494,682
0
3
MIT
2020-04-11T14:32:26
2020-04-09T22:51:12
Python
UTF-8
Python
false
false
16,444
py
import sys import twitter import sqlite3 import time def oauth_login(): CONSUMER_KEY = '' CONSUMER_SECRET = '' OAUTH_TOKEN = '' OAUTH_TOKEN_SECRET = '' auth = twitter.oauth.OAuth(OAUTH_TOKEN, OAUTH_TOKEN_SECRET, CONSUMER_KEY, CONSUMER_SECRET) twitter_api = twitt...
[ "spereshelde@gmail.com" ]
spereshelde@gmail.com
e306d29dba601cd3ac539c15fa01b2e1fd8a43e9
69469247b374c70f9a9b1dc63951401000f4fab8
/extract_gutenberg_dammit.py
87b43666b28cf7ec13d7f3230bb06e33f5df45cf
[]
no_license
jessicavliu/city-notes
407ebc682e6ef38424adca718fa12bdcbe7eb597
6b901e7dc9113fc8c57492ab3493b402abad59b6
refs/heads/main
2023-03-26T23:32:14.252400
2021-03-13T19:42:56
2021-03-13T19:42:56
347,312,323
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
import gzip, json all_lines = [] for line in gzip.open("gutenberg-poetry-v001.ndjson.gz"): all_lines.append((json.loads(line.strip())['s']))#.encode('utf-8')) for i in range(10): print(all_lines[i]) print("Unprocessed lines:") unprocessed = 0 '''f = open("poetry.txt", "w", encoding="utf-8") for i in range(10):...
[ "msjessicavliu@gmail.com" ]
msjessicavliu@gmail.com
586cefde8d91e3d8c5130ef8970d04a70083ed8d
c3934a1c8db4b9de967804c9bca0475bbd77a04b
/untitled5/paywave/migrations/0013_auto_20190404_1508.py
143b4045257822a3d3eef9579d21fffe77a13f53
[]
no_license
nikhilkularia/paywave
da16ec76b07efd7f0a394221ee764a7ec0323ca5
f570dc0fd52a4c16803b185242b86ed41e45e904
refs/heads/master
2020-05-17T19:06:26.822980
2019-04-28T13:40:36
2019-04-28T13:40:36
183,905,084
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# Generated by Django 2.1.7 on 2019-04-04 09:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paywave', '0012_auto_20190404_1423'), ] operations = [ migrations.AlterField( model_name='mobiles', name='service_ty...
[ "nikhilkularia@gmail.com" ]
nikhilkularia@gmail.com
5748f6c658af5cec5d0d43f8677000e582b0b680
4628b965ca7eee718b7465ad1daba9041a990dbb
/samimi_selam/sifatlar.py
8d179067975b678b1b8a7ab746b38e253c00fe37
[]
no_license
eneskeles/samimi-selam-python
c7795759357ba7554120a64fa0557ec623ac3d17
bfe2f5634ad54a4c9c5c643b074c7c0704fced9f
refs/heads/main
2023-02-21T23:17:12.276229
2021-01-17T20:57:34
2021-01-17T20:57:34
330,479,481
5
0
null
null
null
null
UTF-8
Python
false
false
187,241
py
TURKISH_ADJECTIVES = [ "100'üncü", "45'lik", "7'nci", "a'zel", "aba", "aba gibi", "abacı", "abadan", "abajurlu", "abajursuz", "abalı", "abanges", "abanoz", "abani", "abapuş", "abartıcı", "abartık", "abartılı", "abartısız", "abartmacı", ...
[ "noreply@github.com" ]
eneskeles.noreply@github.com
6e6fc5b6645be6a06f8ffb7491c3a7af565264ae
2fa222ac451a5ed6bd762d71fd579414fb1c0fb0
/superblock/superblock.py
989d63ab0d872203ec9c2e7108468ae451627d62
[]
no_license
inkoguto/ext2
ff2a9249cd61c7a4423c138f601d25d63c389991
0b3c2d1bd35370d73f51a5300c8fe078d6c0df2c
refs/heads/master
2021-10-22T10:06:14.083308
2021-10-16T17:09:57
2021-10-16T17:09:57
225,201,521
0
0
null
2020-02-08T17:10:41
2019-12-01T17:36:47
Python
UTF-8
Python
false
false
4,572
py
from math import ceil from item.static import Item from factory.filesystem import filesystem_factory class Superblock: EXT2_MAGIC_NUMBER = 0xef53 SUPERBLOCK_SIZE = 1024 BOOT_RECORD = 512 ADDITIONAL_BOOT_RECORED = 512 STRUCTURE = [ Item('s_inodes_count', Item.TYPE_NUMERIC, 0, 4), It...
[ "a.pawcenis@gmail.com" ]
a.pawcenis@gmail.com
ab33e8f4a3f0597c4a1c685d8a052c7527bf862f
b97427da4c076d0c296a66267066c5a763ea702b
/mods/log.py
80354e5fe3841d604b4ab4ba4feca8f17649234f
[ "MIT" ]
permissive
seyhajin/flux
d31d0edb5160c2bc2044db45d4bb59c6bea407b5
22884cd9a9cab117b0013394ace2a399bd5907f7
refs/heads/main
2023-04-08T23:54:17.355750
2021-04-23T09:27:01
2021-04-23T09:27:01
349,572,671
5
0
null
null
null
null
UTF-8
Python
false
false
2,725
py
"""logging functions""" import sys from mods import util #------------------------------------------------------------------------------ #from datetime import datetime #TODO: add datetime - (datetime.now().strftime('%H:%M:%S')) # log colors BLACK = '\033[30m' RED = '\033[31m' GREEN = '\033[32m' YELLOW = '...
[ "seyhajin@gmail.com" ]
seyhajin@gmail.com
0ec29911f7cb44e391963134825f3be0ec1676b5
606d7c7b71b39134bea3c979dc5400f75148001a
/basic/wordcount.py
a07418ac22c16b990090405703ded1397b10969e
[ "Apache-2.0" ]
permissive
aditya2kx/GooglePythonExcercises
20ecb8073329108ef0d7a712ab0e053f566bab7c
4ad12bda31fedbd5076b4b5887be49c4aef623e8
refs/heads/master
2021-01-02T08:14:37.045596
2017-08-01T07:27:52
2017-08-01T07:27:52
98,972,227
0
0
null
null
null
null
UTF-8
Python
false
false
2,822
py
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
[ "adi2ky@yahoo-inc.com" ]
adi2ky@yahoo-inc.com
4d77c490369492746ce8abeb9bbded2ad6e3ac96
6a59bceb5cfcce6dbb8e9fc2af41018146bae27e
/scikit/color_quantization.py
ce1d9ca5dc1ae3534ec9d26be3af69126672832a
[]
no_license
hewayGitHub/for_scikit
d92e24ff26454ed07ad9671b9827c98df60f6034
154f8b7c337822f7e18d1aefeecff441337f8bd5
refs/heads/master
2020-05-20T01:38:52.285565
2014-06-16T11:08:50
2014-06-16T11:08:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,536
py
#/bin/evn python #-*- coding='utf-8' -*- # Authors: Robert Layton <robertlayton@gmail.com> # Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # # License: BSD 3 clause print(__doc__) import numpy as np import pylab as pl from sklearn.cluster import KMeans from sklea...
[ "heway.cn@gmail.com" ]
heway.cn@gmail.com
4d7d2f04abe4f47b0b6839a749a80b49bbc6d2df
f4130c546c089356ca666cf28a229e133f5a4b1f
/main.py
cd2e1ab090eb7c791933fadfd53dcee7d911abde
[]
no_license
AndreyKlekovkin/SIS_model
6ea838d7f98f168c144a445f6d24cf7e5d70a475
2efd792742fdca36e1806bafa993601483539335
refs/heads/main
2023-01-24T05:00:44.231918
2020-12-07T12:34:09
2020-12-07T12:34:09
316,777,504
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
import EoN import networkx as nx import matplotlib.pyplot as plt # генерируем граф малого мира, с n=100 вершинами, # Каждый узел связан с k=4 ближайшими соседями в кольцевой топологии, # p=0.6 вероятность повторного соединения g=nx.watts_strogatz_graph(n=100, k=4, p=0.6) gamma = 0.2 beta = 3.2 nx_kwargs = {} ...
[ "noreply@github.com" ]
AndreyKlekovkin.noreply@github.com
e9e2ff9a1feac90f1521554b8284b96815b18e34
f6ee5c1fe6fda190c558a1da906fb21cddeff79a
/HandsOn/Aula02/Models/Model.py
704777c07c06e60aad6f53a0ee1e40100e72c389
[]
no_license
SpectronPanic/FourLinux2
2c32f304a18d528297e99108bb7ee0ab9a0d0287
e888be7c5ac968029c73c9dd44ce8342cf543e8d
refs/heads/master
2021-01-20T19:36:32.603860
2016-06-01T00:30:33
2016-06-01T00:30:33
60,132,638
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
#!/usr/bin/python from flask import Flask from flask.ext.mongoengine import MongoEngine from datetime import datetime app = Flask(__name__) app.config["MONGODB_SETTINGS"] = {"db":"dexter-api"} db = MongoEngine(app) class Usuarios(db.Document): nome = db.StringField() email = db.StringField(unique=True) ...
[ "alisson.machado@4linux.com.br" ]
alisson.machado@4linux.com.br
f32d432c18ea133d1a4fcd44d2bbae3ed5a95e43
80a15446dcbcbbe4b4605e536d64ba661be9a099
/app.py
b73a5d74aab484942106c1d4b2a9af186d128099
[]
no_license
betahope/Entrepreneur-Bookshelf
eadab2e785fae9e7f0d516b252e1e0b6633f887b
20941eef4094f12848d3fdb814ec75dee3088f23
refs/heads/master
2023-01-08T08:53:51.411907
2020-11-02T16:01:46
2020-11-02T16:01:46
305,623,360
0
1
null
null
null
null
UTF-8
Python
false
false
7,594
py
# Base of this code was inspired by CI To-Do list Mini-Project (https://github.com/Code-Institute-Solutions/TaskManagerAuth). # Code base was modified and adapted to meet the project's need. import os from flask import Flask, flash, render_template, redirect, request, session, url_for from flask_pymongo import PyMongo...
[ "me@devhope.co" ]
me@devhope.co
f36ba303596cbb747219a2c2e7f7ef047a3de25d
555c6ae723f2466673b7e6aeea11e7071461bfb3
/sakura/common/tools.py
66706081a63c70c046e108faf53597dc919d3359
[]
no_license
riteshms/sakura
788ade92cd0f65fb891a737d0113b807bf955a33
e8d2b4454c26ea80f6275a1bde293db38db73d30
refs/heads/master
2021-07-05T10:58:41.774892
2017-09-20T09:03:15
2017-09-22T14:53:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
import sys, gevent class StdoutProxy(object): def __init__(self, stdout): self.stdout = stdout def write(self, s): self.stdout.write(s) self.stdout.flush() def __getattr__(self, attr): return getattr(self.stdout, attr) def set_unbuffered_stdout(): sys.stdout = StdoutPro...
[ "etienne.duble@imag.fr" ]
etienne.duble@imag.fr
decd67bc9c7ad4b5e89eb587294568092dcb65ac
0f8b4e30b36dc33ca645f716183a975268d720ac
/polls/urls.py
accb6192be30430adfe0604e9d03c85852e4131d
[ "MIT" ]
permissive
srgautam01/pollalizer
6af0a846f56559026beb883d14542fc82da79cf2
8808907f3f17078233d17d096ce80659fdd8e1be
refs/heads/main
2023-03-28T10:00:38.627063
2021-03-31T18:36:48
2021-03-31T18:36:48
350,174,890
1
0
null
null
null
null
UTF-8
Python
false
false
346
py
from django.urls import path from . import views app_name = 'polls' urlpatterns = [ path('', views.IndexView.as_view(), name='index'), path('<int:pk>/', views.DetailView.as_view(), name='detail'), path('<int:pk>/results/', views.ResultView.as_view(), name='results'), path('<int:question_id>/vote/', vi...
[ "sundar.gautam@selu.edu" ]
sundar.gautam@selu.edu
412308ef5fdfbe3c97d7a1ae6a9c7348d867ee68
699a8e7c9cf651d61a3b8f47b699d7eeb3441d9f
/api/urls.py
58f1c01ad4acd2999e8ab278f66570c132002b12
[]
no_license
m7mdGNo/onlinechat
ba99d3b83c161b3cbd4d2896d59ed087192aba68
d9c10376dcdd40464ccfa9d7f3cc9222d827f418
refs/heads/main
2023-06-18T04:38:18.082075
2021-07-22T18:27:52
2021-07-22T18:27:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
from django.urls import path from .views import * urlpatterns = [ path('messages/', main, name='older') ]
[ "ahmedahmedyasseryasser@gmail.com" ]
ahmedahmedyasseryasser@gmail.com
8968a994c1fe106db75f16913d6a9a08c0008f85
c2f0dbf82cb28670e83fd2f1da1a1741a59554c5
/nonlinear/source/backup/deep_qrc.py
fe7c8e7b28306ec9c7d9e028eca9b0d718867beb
[ "MIT" ]
permissive
ZdM87/higher-order-quantum-reservoir
526b8bf352ca6e07b19b28133b8a6e1af67db2ae
7fc75d03bb5ff2398d245ed7c5d7939fad00ef96
refs/heads/master
2023-08-12T08:18:50.762744
2021-10-07T01:44:48
2021-10-07T01:44:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,629
py
import sys import numpy as np import scipy as sp import utils import qrc from scipy.special import softmax def solfmax_layer(states): states = np.array(states) return softmax(states) def linear_combine(u, states, coeffs): assert(len(coeffs) == len(states)) v = 1 - np.sum(coeffs) assert(v <= 1 and...
[ "k09tranhoan@gmail.com" ]
k09tranhoan@gmail.com
cd132ece0a207de28397b90ab9b66aed61d02342
1f13d652d9b39a120429a09b223d1ceaa7b331a5
/YingXao_Embedded/sensor_dev/DHT22/adafruit_blinka/board/hardkernel/odroidc4.py
27ccae8afc443cfd9cb3dec32cb3d5ba627d59af
[ "MIT" ]
permissive
savage12138/YingXao
18fcb01eb508e60db06bae2a5036cf98169d2dac
66bc13046f86cef3ca8912d28df57f3de5491189
refs/heads/main
2023-04-07T14:51:52.075227
2021-04-10T19:50:00
2021-04-10T19:50:00
356,682,309
1
0
MIT
2021-04-10T20:03:06
2021-04-10T20:03:06
null
UTF-8
Python
false
false
970
py
"""Pin definitions for the Odroid C4.""" from adafruit_blinka.microcontroller.amlogic.s905x3 import pin for it in pin.i2cPorts: globals()["SCL" + str(it[0])] = it[1] globals()["SDA" + str(it[0])] = it[2] SCL = pin.i2cPorts[0][1] SDA = pin.i2cPorts[0][2] SCLK = pin.SPI0_SCLK MOSI = pin.SPI0_MOSI MISO = pin.S...
[ "yida12138@gmail.com" ]
yida12138@gmail.com
08df54e86dd24b01731777565d90e2478a401f63
b93bc07c6bb70393b8e013070a20a807c6b556b4
/run_benchmarks.py
5638d3b4b7dd61cdc8f301c0b44783d52ae157ff
[ "MIT" ]
permissive
LukasSlouka/TF_XNN
61c7481ebd48c9ea59d9576ad59255fdb6d2a02b
152698a5da5ed6fff9ec4337e8dca4a1a396b458
refs/heads/master
2020-03-17T23:33:06.107938
2018-05-19T13:03:17
2018-05-19T13:03:17
134,050,954
3
0
null
null
null
null
UTF-8
Python
false
false
257
py
from benchmarks.gemm_benchmark import gemm_benchmark if __name__ == '__main__': for batch_size in range(100, 4001, 100): gemm_benchmark(run_tf=True, out_path='logs/bm_xgemm_2', batch_size=batch_size, min=100, max=4001, step=100, iterations=10)
[ "xslouk02@stud.fit.vutbr.cz" ]
xslouk02@stud.fit.vutbr.cz
1e069099d8f5b8c00afc0c0dcaa1de51d0c80883
e9fdf7f854903336041be02b3affb6ce73500d57
/aiotfm/packet.py
7a050a1f91fc3845d6d3702f35007c31bb53c6ad
[ "MIT" ]
permissive
Blank3495/aiotfm
40d6d064a77d5d4dd7885ec1f9bc091102c48804
5bf87713dbb7d880b733ac4388c73545907bd1d8
refs/heads/master
2020-09-21T19:59:26.768407
2019-11-30T21:04:49
2019-11-30T21:04:49
224,909,097
0
0
MIT
2019-11-29T19:07:34
2019-11-29T19:07:33
null
UTF-8
Python
false
false
4,749
py
from aiotfm.errors import PacketError, PacketTooLarge, XXTEAInvalidPacket, XXTEAInvalidKeys class Packet: def __init__(self, buffer=None): if buffer is None: buffer = bytearray() elif not isinstance(buffer, bytearray): buffer = bytearray(buffer) self.buffer = buffer self.pos = 0 self.exported = Fals...
[ "athesdrake@gmail.com" ]
athesdrake@gmail.com
209b79c613856a3a9efc9586a621842d4e69098e
f28591fab50d9b7a539c66b5a81fc91d1bc2ce64
/py3/def/uint16_bigendian_tobytes.py
718ccd6205a399b3b6fa9f1c5e6402ea7d33c9fa
[]
no_license
tnzw/tnzw.github.io
b8a5fe1f8479736bbf2b3594d511a1282939a3b3
6d95968db793cebcfa77cb49eecd987f821350db
refs/heads/master
2023-04-21T14:22:49.849859
2023-03-31T15:55:01
2023-03-31T15:55:01
176,712,013
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
# uint16_bigendian_tobytes.py Version 1.0.0 # Copyright (c) 2020 Tristan Cavelier <t.cavelier@free.fr> # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of the Do What The Fuck You Want # To Public Lice...
[ "tzw56702@outlook.com" ]
tzw56702@outlook.com
607d1da123c004833b6bb3de8ea05d10bed09217
4cf33ce9959fbb2180305f0f03dfc89db05dc55c
/RockPhysics.py
88046814bd02f92463ed58a5db89c79c5b6107dc
[ "MIT" ]
permissive
profmagmaticyemi/SeReMpy
ab3145b68a92465f2ce45738af4532241c8124e9
743905a148b64b42b3438a193f550356285d9334
refs/heads/main
2023-02-22T13:27:50.182384
2021-01-28T20:38:07
2021-01-28T20:38:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,209
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 17 18:40:50 2020 @author: dariograna """ import numpy as np def BerrymanInclusionModel(Phi, Rho, Kmat, Gmat, Kfl, Ar): # BERRYMAN INCLUSION MODEL implements Berryman's inclusion model for # prolate and oblate spheroids # INPUT Phi = P...
[ "noreply@github.com" ]
profmagmaticyemi.noreply@github.com
58a5f07540b39ebe0f9262bdb34450227fadb59f
f2d35178a44f56d96b9056f328165d33e7349e75
/project/code/src/posdbos/processor/gyro_processor.py
287fe8515bd53d5d1baa4ef911982a6b9552e3c4
[]
no_license
AlexanderWebber0/current-adas
5cef224577d00439e705d51cd093c3d4e161826f
94f881ce2ed5eeb5a7578c77c0dd475761d5bc55
refs/heads/master
2020-04-24T23:44:49.172937
2017-04-06T18:54:19
2017-04-06T18:54:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 23.01.2017 :author: Paul Pasler :organization: Reutlingen University ''' from posdbos.util.signal_util import SignalUtil from config.config import ConfigProvider class GyroProcessor(object): def __init__(self): self.su = SignalUtil() se...
[ "paul@ppasler.de" ]
paul@ppasler.de
25c471b5da6a1bc9b5a5b072b018d4fe3b99a274
28408be306353cca67d43c20beb4d5acfe37ea57
/lab2/setup.py
aef15a64b65c398caf3ec059981c2ae0520afe35
[]
no_license
DimaAntoniuk/amazon
84d2fd2fb49c8e630b5af9f908546df8f06cac26
0c844f91500e2660e3f2c271393b8e7fd2ec64e0
refs/heads/main
2023-04-12T15:06:11.708319
2021-04-13T19:09:01
2021-04-13T19:09:01
353,085,213
0
0
null
2021-04-13T19:09:02
2021-03-30T17:27:04
Python
UTF-8
Python
false
false
323
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(): app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database/amazon.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db.init_app(app) return app app = create_ap...
[ "dimaantoniuk09@gmail.com" ]
dimaantoniuk09@gmail.com
43d95c71ff802dedced6f59c2a3f74c50149f8eb
b9aab4585a7f5433504e17490c45b37ef98541de
/Environment.py
fc39675f9504751be487df8c33ef58830e41255b
[]
no_license
AbhishekPrabhudesai/RL-Based-Chatbot
8d5f7e18da97633b0e4b3918d5dbdb9589f0c6f2
55c1a14af4e989afcbc9a1163b8814e7089fac0b
refs/heads/master
2020-12-28T10:54:21.672735
2020-02-04T20:16:27
2020-02-04T20:16:27
238,300,030
1
0
null
null
null
null
UTF-8
Python
false
false
4,309
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 3 11:15:45 2019 @author: pagarwal """ import numpy as np import os import pandas as pd import gensim from nltk import word_tokenize # Load pre-trained Word2Vec model created by the create_model class os.chdir("/Users/pagarwal/Downloads/DRL-Chatbo...
[ "abhishek.s.prabhudesai@gmail.com" ]
abhishek.s.prabhudesai@gmail.com
77af388de4287b2c3af68359cd2a590aa575d956
c9cf1fa3b9a6268368c50f60b55e4ae98b68e88a
/yass/yass.py
4bfbca63299208fe9a8f7efcf05cacb7aa690c08
[]
no_license
viveshok/yass
8d80bb0fc8c526d4dc8aad01f6ff1c98690c72ff
2e124895fd20ff20e2797604fa9b2b259b86cc02
refs/heads/master
2021-05-26T17:40:11.389245
2013-09-01T08:29:36
2013-09-01T08:29:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,241
py
import re import copy def explode(puzzle): """ take a list of list of chars representation' of a sudoku puzzle and replace any '0' it encounters with '123456789' """ assert(is_valid(puzzle)) result = list() for row in puzzle: result.append(['123456789' if cell=='0' else cell fo...
[ "abeaulne@eclipseoptions.com" ]
abeaulne@eclipseoptions.com
598093b781f847e1a6804ccb957bcb6ecb8362ef
353e68cfa24cd35d8ba21ddad7fcf6b8ee5173f8
/reconstructImg.py
1ad848eff14df3425e7defe012b825beae19c174
[]
no_license
chetan-tutika/Image-Blending
3d500490e792499bc407fd9a5804565a18ace134
605f1ab0cc401e8e799e5b14476f4df5d836a36d
refs/heads/master
2020-04-01T05:12:43.040544
2018-10-13T17:23:12
2018-10-13T17:23:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,458
py
''' File name: reconstructImg.py Author: Date created: ''' from PIL import Image import matplotlib.pyplot as plt from scipy import signal import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Polygon from matplotlib.mlab import dist_point_to_segment from matplotlib.path im...
[ "noreply@github.com" ]
chetan-tutika.noreply@github.com
9ddee95515d2c6dfb8656282798aa121eb5100be
af62d7e773257ce7c6fb294590c1339e38c134e2
/iampacks/cross/mercadopago/views.py
9d8d80d127df578b3665c28b262e94353ad97708
[]
no_license
sebasgoldberg/iampacks
1e3355fc3a2818766bde0b0614883d1df8a1db76
887acb4ea83ff1c89a5b70383faa1f30a811d7e7
refs/heads/master
2021-01-10T04:09:57.226591
2019-02-14T15:02:16
2019-02-14T15:02:16
52,726,621
3
0
null
null
null
null
UTF-8
Python
false
false
41
py
# coding=utf-8 # Create your views here.
[ "sebas.goldberg@gmail.com" ]
sebas.goldberg@gmail.com
47162ebd1af4d95ee0efbbf121ed9bf6ceb3515d
9a63689a52902185bc4ed1da1556244b7c05f3d2
/venv/Scripts/easy_install-3.8-script.py
9f72ffd7041febdb524eb25da96a36210dc2f444
[]
no_license
anabanslo/hw-dictionary
c226789e5361276ba75c959d033bac456b07470d
2a7568c76b6397f7d44ebe040104b16d7cd0aed9
refs/heads/master
2021-02-16T09:12:10.447935
2020-03-04T19:38:36
2020-03-04T19:38:36
244,988,063
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
#!C:\Users\Anaba\PycharmProjects\hw-data-dictionery\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-...
[ "anabananaslo@hotmail.com" ]
anabananaslo@hotmail.com
1e9578c1be4629580715ea3f431e6e47e384fbb2
05d052cd8456d99ce267ed446487f96e248f108f
/web_flask/3-python_route.py
892a7514853a4ce0e8529d22bb90d4a3c7bba1a7
[]
no_license
gjdame/AirBnB_clone_v2
c29b5c8f515db61633dec3ea1332ffc7ff9350ba
47afe62fccdf9369edcacf49dc5de5071279ad54
refs/heads/master
2020-03-23T15:21:02.206965
2018-08-15T22:34:31
2018-08-15T22:34:31
141,740,814
0
2
null
2018-07-23T17:00:54
2018-07-20T17:39:23
Python
UTF-8
Python
false
false
553
py
#!/usr/bin/python3 '''crates a flask web application''' from flask import Flask app = Flask(__name__) app.url_map.strict_slashes = False @app.route('/') def hello(): return('Hello HBNB!') @app.route('/hbnb') def hbnb(): return('HBNB') @app.route('/c/<text>') def c_is_fun(text): return('C %s' % text.r...
[ "gregoryjdame@gmail.com" ]
gregoryjdame@gmail.com
1349ca196e5a2ff6e0419f003553c46d2bbdae9b
0cd2d7ee58a7c2d25e8b76d131c69108b246dc20
/likelion/settings.py
75ddcc9ca2c8b48ec186b506bdaf3ab883839476
[]
no_license
suzy0125/lastxshell
bb1eb8d9ad839aac066a25086e2110b3b784033e
fe54c2b74fb59b03e672bad8010ab36c6483134f
refs/heads/master
2020-06-17T13:13:05.973513
2019-07-31T04:35:37
2019-07-31T04:35:37
195,935,272
0
0
null
null
null
null
UTF-8
Python
false
false
3,335
py
""" Django settings for likelion project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
[ "xz_xz@hanmail.net" ]
xz_xz@hanmail.net
4924907b43a6235b4d307800a50c588f9542004a
17d2aa771b44fc45d6d901d0bf1eaf3477fe52ca
/Problem5-Longest Palindromic Substring .py
a745b014d111cd2d5289275217eff148c910619b
[]
no_license
QianchaoLiu/LeetCode
b857dd00386b1263718590aa8ba7d671634570da
24ad958a781e4b000923bd1b448550ed075d1471
refs/heads/master
2020-12-24T16:23:48.060998
2016-12-15T15:43:07
2016-12-15T15:43:07
37,072,443
0
0
null
null
null
null
UTF-8
Python
false
false
1,797
py
class Solution: # @param {string} s # @return {string} def longestPalindrome(self, s): if len(s)<=1: return s else: def isPalindrome(st): if len(st)>=2: if st[0]==st[len(st)-1]: return 1*isPalindrome(st[1:len...
[ "liuqianchao@163.com" ]
liuqianchao@163.com
37e3e3512a6f1f1287b1a694f08dfe50a02f42c1
6a2dd06b6cbdc9117b58b6db0b491d90ac653f15
/day06.py
2e7658d53f595695e76d5ca2a86dc21b3ae862ab
[]
no_license
sweavo/code-advent-2019
292ad2f11d623c7e7e615988c9949874cdd07239
a8514d6c1263a7b2f94f1b875403d326a3554438
refs/heads/master
2020-09-23T02:36:16.807651
2019-12-19T14:03:59
2019-12-19T14:03:59
225,380,640
0
0
null
null
null
null
UTF-8
Python
false
false
2,502
py
#!python3 """ Starting at each body that orbits anything, count its direct and indirect orbits. We do this by first extracting the relationship "directly_orbits". Then for each key in that map, we count the steps to get to the COM. Summing the lengths of those paths gives us the answer. Right? """ import...
[ "sweavo@gmail.com" ]
sweavo@gmail.com
78709c70029ab15aec63d76b6399c97d65281cf3
60cf9330aa2f7d81c4469486ef57159dbe566df9
/loaner/web_app/backend/api/permissions.py
ae1a9b697459c400a662d51f1cba7df01e993c0e
[ "Apache-2.0" ]
permissive
ryangugcloudca/loaner
16e8827f8c3152ecdb2fc14b1d057562e028eb75
91753e47aff26d78978ebe7aca70f4a7cbf6a3d4
refs/heads/master
2022-04-30T22:37:27.123476
2022-03-08T20:19:26
2022-03-08T20:19:26
240,277,380
0
0
Apache-2.0
2020-02-13T14:17:29
2020-02-13T14:17:28
null
UTF-8
Python
false
false
1,253
py
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "loaner-devs@google.com" ]
loaner-devs@google.com
403dde571e965f481ee7bab27c365952df1ee720
d4c8111bcd4302f4da035c4f57f6518037cb5c5a
/hq/hquery/sequences.py
18b424f0d6f4d5ea813098ea8f7dcd0f5bfec744
[ "MIT" ]
permissive
rbwinslow/hq
0bffbc56e0edfc33c260bccdeb9ccec685f8bf7a
54ddb5e26d3802ccdeb3bd40d9a814d4758a1553
refs/heads/master
2023-01-08T00:54:29.046943
2022-09-28T21:28:15
2022-09-28T21:28:15
59,501,759
43
1
MIT
2022-12-26T22:34:58
2016-05-23T16:58:39
Python
UTF-8
Python
false
false
1,145
py
from itertools import filterfalse from hq.hquery.evaluation_error import HqueryEvaluationError from hq.hquery.object_type import object_type_name from hq.soup_util import is_any_node def make_node_set(node_set, reverse=False): ids = set() def is_unique_id(node): node_id = id(node) if node_id...
[ "rwinslow@ziprecruiter.com" ]
rwinslow@ziprecruiter.com
b57b34b5ca65e0c6b0145da406936fab562e76bd
0adae024b525ae201f88432d89efdb918e324f44
/main.py
4dbe7db07ce1ad91680f0aa05f59c1205cf225fc
[]
no_license
dosatos/own-uwsgi-framework
233e5d75817bdbfdaf0aee87e9dba0ac31ff0250
5e453099de2219c42137de66a612c24f42309ff3
refs/heads/master
2020-03-26T23:54:05.841635
2018-08-22T00:40:19
2018-08-22T00:40:19
145,576,192
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
from web.server import Server from web.mywsgi import WebApplication from project.urls import url_patterns def main(url_patterns): app = WebApplication(urls=url_patterns) server = Server(app) server.run() if __name__ == "__main__": main(url_patterns)
[ "yb2n17@soton.ac.uk" ]
yb2n17@soton.ac.uk
7b74cc681fdd50f712c42f1604cb790300fe0a4d
ef821468b081ef2a0b81bf08596a2c81e1c1ef1a
/PythonWebBasics_Django/petstagram/pets/urls.py
212f52bff8daa5f925d309e180d924a318f1cc1b
[]
no_license
Ivaylo-Atanasov93/The-Learning-Process
71db22cd79f6d961b9852f140f4285ef7820dd80
354844e2c686335345f6a54b3af86b78541ed3f3
refs/heads/master
2023-03-30T20:59:34.304207
2021-03-29T15:23:05
2021-03-29T15:23:05
294,181,544
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
from django.urls import path from pets.views import pets_list, show_pet_details, like_pet urlpatterns = [ path('', pets_list, name='list pets'), path('details/<int:pk>/', show_pet_details, name='pet details'), path('like/<int:pk>/', like_pet, name='like pet'), ]
[ "ivailo.atanasov93@gmail.com" ]
ivailo.atanasov93@gmail.com
9cd767c1ed25c3f65fb035056e76a3eee110f22a
f54686f2c730633ff2d84333d9e706e9ca344b77
/Game Theory/Strategies_pool/per_ddc.py
72e4066e7e1031309ef4af58997b46b7144506a2
[]
no_license
kmoulart/SCI_Game_Theory
74cd973e02552b6cb7dfc78cc747c8edc1821c80
8d8978556cb8b770ef3f3537b5f817380b407259
refs/heads/master
2020-05-03T22:56:27.376189
2014-03-31T13:33:08
2014-03-31T13:33:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
if memory == None: memory = 0 coop = 0 else: if memory == 0 or memory == 1: coop = 0 else: coop = 1 memory = (memory + 1) % 3
[ "kevin@moulart.be" ]
kevin@moulart.be
32d9a4a4d0da479611326ea7acdfa3b28b014e52
bb88b1d6531767c90f3855be28ffd021e89f5e5d
/trashpanda-ds/post_pipeline/view_boxes/view_boxes.py
208a2ac3ae2ecd2c16e6e818948332d1a3813615
[ "MIT" ]
permissive
Tclack88/thetrashpanda
279cb2e1c29c18b2f6decc9c81b6bf913c0d6fa2
0e25db339c10bedf1c5c01940355fe445db62f99
refs/heads/master
2023-02-02T13:55:41.370879
2021-04-28T06:23:40
2021-04-28T06:23:40
247,579,096
0
1
null
2023-01-24T04:24:05
2020-03-16T00:54:28
Jupyter Notebook
UTF-8
Python
false
false
2,876
py
#!/usr/bin/env python3 import cv2 import imghdr import numpy as np import os from PIL import Image, ImageDraw import time # Show boxes def show_boxes(image_file,text_file): """ A tool for visualizing the created bounding boxes NOTE: As written it will only show the first bounding box, if multiple lin...
[ "tclack@aol.com" ]
tclack@aol.com
c0118ad0e0f29fc84614d3d9782b2b74eeeff8b8
7ee1fd7584f8770cd2381d85f797bf85cb9b4b67
/usuarios/applications/users/migrations/0002_auto_20200318_0722.py
a428a6912352c1390b859456cca63c55c637915a
[]
no_license
neunapp/usuariosdj
3171160fdf6898d07d6b353d034c70801e4bc21b
3fe69b7357757baa5d799b614f232d75ed659502
refs/heads/master
2022-12-01T16:51:00.432272
2020-09-17T14:28:21
2020-09-17T14:28:21
237,993,639
4
2
null
2022-11-22T05:17:26
2020-02-03T15:10:33
Python
UTF-8
Python
false
false
550
py
# Generated by Django 3.0.3 on 2020-03-18 07:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='apellidos', fi...
[ "csantacruz1127@gmail.com" ]
csantacruz1127@gmail.com
ec8f89eaa854f2b250ee448172f016ce0aede211
adce83d8c3651b5dbe54262d0dd7c11266b3d592
/tvb_algo/multiscale.py
7429e1228d42987d27496da19e0dd9e55f58888b
[]
no_license
maedoc/tvb-algo
675c9960e64b4522c0274fa07dd456a7fd7996c9
616fe08e18daee2734f7ad0d99a410057916d48e
refs/heads/master
2021-07-06T05:49:21.425533
2020-08-31T13:28:56
2020-08-31T13:28:56
178,886,838
1
0
null
null
null
null
UTF-8
Python
false
false
364
py
import numpy as np def vtx2roi(rmap, vtx): """Map vertex activity to ROIs with sum. """ out = np.zeros((rmap.max() + 1,) + vtx.shape[1:]) np.add.at(out, rmap, vtx) return out def roi2vtx(rmap, reg): """Map ROI activity to vertices. """ # TODO div by vtx count st. vtx2roi(rmap, roi2vt...
[ "marmaduke.woodman@univ-amu.fr" ]
marmaduke.woodman@univ-amu.fr
b0b14da84042b9971c28982f9d77f519829a1047
aa1352a2f32c0c36194d3a6f8e683adba487a3eb
/FiRoom_backend/users/urls.py
461aad0c0a56efdbc04145b7094f3c83cd7a2a12
[]
no_license
Ace-bb/FiRoom_backend
6c98d01c40e8de31ccbe86beaeada6c62516705e
efd4d9c1d7265e42f56638d5374a569a146acc03
refs/heads/main
2023-03-30T15:48:21.376390
2021-03-23T15:53:48
2021-03-23T15:53:48
338,780,869
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from django.urls import path from . import views urlpatterns = [ path('masterIdentify/uploadCertification', views.uploadCertification), ]
[ "13489323285@163.com" ]
13489323285@163.com
a8de7ce7a52d7cba3bbbfe5d5ff65160a6db1708
81a0c231f9c2e4c1ec974d8136beb5f142c1a19b
/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}-appsrv/db/converters.py
5431c6cb4900c38269442a240e49e0c5379ed079
[ "WTFPL" ]
permissive
todpunk/tnl-cookiecutter-first
d2099a31f695ce3f6951a725abfc00ccf0062a6e
a29d7b17e371091ce639192e93929fbd5dec25a0
refs/heads/master
2021-05-05T07:07:52.918461
2018-02-24T21:01:24
2018-02-24T21:01:24
118,851,571
0
0
null
null
null
null
UTF-8
Python
false
false
6,833
py
# -*- coding: utf-8 -*- """ This file contains utility functions for use in the Pyramid view handling """ from sqlalchemy.ext.declarative import declarative_base def make_set_of_field_names(field_names=None): """ :param field_names: :return: """ if field_names: field_names...
[ "githubpub@todandlorna.com" ]
githubpub@todandlorna.com
a338d271ec0923802c40201490bc836120bf8437
fe13ea3ee2944ff387756741f91dbaee66be71d7
/code/OLD_WORKING/version_without_fading_reverse/regex_blaster_13.py
2dabbc0df26ce4d5fa39abb8629e0bf90f52ab8a
[]
no_license
brannerchinese/regex_blaster
2c9f1523e28b8b01d4d8435943566eb74bc9db19
6a5fcda8b1928f8a11431e3455e24b76664edab8
refs/heads/master
2020-04-14T04:02:43.909556
2014-06-14T01:20:45
2014-06-14T01:20:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,285
py
#! /usr/bin/python # regex_blaster_13.py # David Prager Branner # 20140408 """Arcade game to help user practice regular expressions. Curses version.""" import sys # Not necessary: appears to work in Python 2. #if sys.version_info[0] != 3: # print('Python 3 required.') # sys.exit() import curses import random im...
[ "brannerchinese@gmail.com" ]
brannerchinese@gmail.com
7e9302d32787862d768a2e2a3a7eeea66f8a542c
fc2fb2118ea02867d559bf8027e54e3c6b652cfd
/devItems/spring-2020/SEEAccuracyImprove/jirasoftware/step1_vectorize_text.py
80e2c2b832ef7448c32e352447bb35267dbcc71c
[]
no_license
pdhung3012/SoftwareStoryPointsPrediction
2431ad599e0fba37617cfd467de1f4f1afed56cc
520990663cb42adcac315b75cd4eb1150c3fc86c
refs/heads/master
2023-08-29T15:16:30.413766
2021-09-18T17:12:20
2021-09-18T17:12:20
254,596,878
0
0
null
null
null
null
UTF-8
Python
false
false
6,611
py
from sklearn.feature_extraction.text import TfidfVectorizer import pandas as pd from nltk.tokenize import word_tokenize import os import numpy as np import gensim from sklearn.decomposition import PCA from sklearn.random_projection import GaussianRandomProjection nameSystem='jirasoftware' fopVectorAllSystems='vector_t...
[ "pdhung3012@gmail.com" ]
pdhung3012@gmail.com
bcdba61080bd76e4b9820530e9c810c32812d9ef
d65c38985f97414d40ba88eb99a2209aa8da2413
/python/简单的语句/import.py
2ba71975f86703aa99f4aadc2477b8734568510f
[]
no_license
martinroad/Notes
ffabeabc0ddb79984981f5a36d2ccbbaea73438c
fb356157fd3f06d31dc482e676b372277f9e03cb
refs/heads/master
2023-04-19T12:56:07.019341
2021-05-10T02:48:36
2021-05-10T02:48:36
356,278,268
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
# import 语句 # import moduled # import module as new_name # from module import function # from module import function as new_name # from module import *
[ "hghai@126.com" ]
hghai@126.com
c4006da28b8476755c3f41bf5a0fcdea5757ca98
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/azure-firewall/azext_firewall/vendored_sdks/v2020_07_01/v2020_07_01/aio/operations/_express_route_connections_operations.py
a0bfb04f1caa8c809a50e9e6dd906b6a5def7b1f
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
21,558
py
# 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) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
9bea5e1eada06fa70192f113563e4516d9e6a21e
dd097c7ae744227b0312d762ee0482a3380ff8c6
/makenei_from_ele_xyz.py
5af3305f3e285e46149ab1da568e6c0ac15fdcba
[]
no_license
moflaher/workspace_python
0d6e98274d923a721db2b345f65c20b02ca59d08
6551e3602ead3373eafce10d11ce7b96bdcb106f
refs/heads/master
2023-03-06T02:15:01.945481
2023-03-01T19:15:51
2023-03-01T19:15:51
20,814,932
3
4
null
null
null
null
UTF-8
Python
false
false
1,260
py
from __future__ import division,print_function import numpy as np import matplotlib as mpl import scipy as sp from datatools import * import matplotlib.tri as mplt import matplotlib.pyplot as plt #from mpl_toolkits.basemap import Basemap import os as os name='kit4' xyz=np.genfromtxt(name + '.xyz') ele=np.genfromtxt...
[ "073208o@acadiau.ca" ]
073208o@acadiau.ca
251b09205b5da76bbeea02956b12072047bd8dc7
56e21c73978ee176b49226a2c982156c4fb9c0c7
/fasta.py
2668b13b7684fd4002fb87556b5c33f608f3c663
[]
no_license
michalfilippi/IntroductionToBioinformatics
8ce4fd9c50caf56f462715fb0a802d6c815646db
57d5d00ffe858f1e16c46e77495f420398b205ad
refs/heads/master
2021-01-11T10:07:07.156059
2016-12-18T15:36:34
2016-12-18T15:36:34
72,772,628
0
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
class Reader(): """Simple reader of dna sequences in FASTA format. """ def __init__(self, filename, verbose=False): """ :param filename: location of file with FASTA-formated sequences """ self.ordered_ids = [] self.sequences = dict() if verbose: ...
[ "michal.filippi@gmail.com" ]
michal.filippi@gmail.com
f4d523bf8b922bf42041001ffdc30993d9ab3efc
d6780d2a5126bff23d0a46c7376f5085063a3a4e
/backend/chat/api/v1/viewsets.py
211c8f530ed018dec88234b4bfad728e6cf050ca
[]
no_license
crowdbotics-apps/test-25190
2721890ce00a97b8168e1188fe5d96ff86e1b6e4
48ce90fb307e5d98963a73e8c07a9a631b370f59
refs/heads/master
2023-03-24T23:43:59.659900
2021-03-22T15:53:21
2021-03-22T15:53:21
350,400,795
0
0
null
null
null
null
UTF-8
Python
false
false
1,983
py
from rest_framework import authentication from chat.models import ( Message, ThreadMember, MessageAction, ThreadAction, ForwardedMessage, Thread, ) from .serializers import ( MessageSerializer, ThreadMemberSerializer, MessageActionSerializer, ThreadActionSerializer, Forwarded...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
1c3ed83904694220567ea86e128fa406f7106b47
53530c982e4ac3c643f92dc0945965be76a13731
/migrations/versions/e12cc5ad7900_.py
95770fdd99d1e57303a73c2543511d301659290c
[]
no_license
odbalogun/my-wishlist
71f997c7acb9b633a607a967bd18e71430f79452
8fd8ca9c137232f9bd53443c256a8a3bc87a8f9b
refs/heads/master
2022-12-10T22:50:13.867335
2020-02-21T06:18:40
2020-02-21T06:18:40
227,097,937
1
0
null
2022-12-08T03:21:57
2019-12-10T11:04:53
JavaScript
UTF-8
Python
false
false
804
py
"""empty message Revision ID: e12cc5ad7900 Revises: ba1745921ed4 Create Date: 2020-02-19 18:49:14.726131 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e12cc5ad7900' down_revision = 'ba1745921ed4' branch_labels = None depends_on = None def upgrade(): # ...
[ "15163838+odbalogun@users.noreply.github.com" ]
15163838+odbalogun@users.noreply.github.com
3f667962450527567e81e790a4e54ed9f1945d73
68566fa69aadfa95aab72005ed406d281ebfad33
/tic toc .py
506058068ebf6079a8bd59780e2c4b3aba5295da
[]
no_license
Sankalpa7/Tic-toc-toe
ded24e7708f669ae80f49f84e80b60fad0cbcf9e
2a5293875bdcf00a84bfc7b8f78ddeb3f9623605
refs/heads/main
2023-04-18T03:18:56.856835
2021-05-03T14:54:47
2021-05-03T14:54:47
363,964,341
0
0
null
null
null
null
UTF-8
Python
false
false
4,088
py
#!/usr/bin/env python # coding: utf-8 #This file only works in Jupyter Notebook. from IPython.display import clear_output def display_board(board): clear_output() print(' | |') print(' ' + board[7] + ' | ' + board[8] + ' | ' + board[9]) print(' | |') print('-----------') print...
[ "noreply@github.com" ]
Sankalpa7.noreply@github.com
7e749d9cfdf6b6af07e6c5e6d4938e412ae0aeb3
d26aebefdc6358f63e050f7712589e9fd9f4a258
/cat_api_proj/settings.py
02f54b418b70047175a1723d0eec397f4420c924
[]
no_license
matthewgstillman/Cats_API
e93c7319a26c6bb06ed1be211e8f588edc4dc871
c0918930d663527535e35d02c5c7ac098dbf6aa4
refs/heads/master
2020-03-29T20:47:06.514147
2018-09-25T21:17:48
2018-09-25T21:17:48
150,330,437
0
0
null
null
null
null
UTF-8
Python
false
false
3,132
py
""" Django settings for cat_api_proj project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import...
[ "matthewgstillman@gmail.com" ]
matthewgstillman@gmail.com
c2108381f0aa3dc54ea2812312d80e98117659a0
5574620c834f96d4baf50d6aa349242dae7c17af
/126.word-ladder-ii.py
1ab52f8b88f5662f72456dcd442d5aab3fe52358
[]
no_license
Ming-H/leetcode
52dceba5f9a605afbdaa65e286a37205873e21bb
057cee4b830603ac12976ed7d5cea8d06a9b46a0
refs/heads/main
2023-09-02T21:30:48.796395
2023-09-01T01:59:48
2023-09-01T01:59:48
489,290,172
1
0
null
null
null
null
UTF-8
Python
false
false
959
py
# # @lc app=leetcode id=126 lang=python3 # # [126] Word Ladder II # import collections import string class Solution: #def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: def findLadders(self, start, end, dic): dic.add(end) level = {start} parents...
[ "1518246548@qq.com" ]
1518246548@qq.com
d1673dfbc274511726ff488dff0cf54974f5953f
44588b44409b5ab11ab10ae220b5c4295c40007e
/silver-authorize/silver_authorizenet/tests/conftest.py
fc7f985783e5f827fa37f817fa14b286803b3d22
[]
no_license
Dynamicic/silver
480398fe8955f5473c3f8aa8d602380b807dc87f
dfa1e04338d495e5b3ebbd5225f4f4bed9d007dd
refs/heads/master
2020-04-10T10:55:57.471984
2019-04-01T23:25:33
2019-04-01T23:25:33
160,979,890
0
0
null
null
null
null
UTF-8
Python
false
false
11
py
asdf = "1"
[ "ryan.david.hayes@gmail.com" ]
ryan.david.hayes@gmail.com
35c0536489dccd74fd4e596488a184fadc9bdfcb
5f93816a128dcb92e9f4380c3d153f8fcbdb67b2
/call_normal_computation.py
8061c7105e36587ab160a413be4f55ad45892358
[]
no_license
fatemehyb/welling_scale
983de7328817c6bbb7b81be7c7af12a752a46d20
68ba4c4b5c1e5fc95e749941d8feacccd065c4a1
refs/heads/master
2020-09-06T04:59:18.277737
2019-11-07T21:16:31
2019-11-07T21:16:31
220,330,092
0
0
null
null
null
null
UTF-8
Python
false
false
3,387
py
# mesh created with # verts, faces = skimage.measure.marching_cubes(volume, level, spacing=(1.0, 1.0, 1.0)) from mayavi import mlab # import os # import argparse # import itk # import SimpleITK as sitk # import numpy as np # import read_image_m as RIM import glm from skimage.measure import marching_cubes_lewiner X_2...
[ "noreply@github.com" ]
fatemehyb.noreply@github.com
748188ed28fde4abc2b26a91c727a0d58176ac3f
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2484/60691/284691.py
e7ae022ea8ced39460e70e67ef7cc820c09dc498
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
447
py
def union(s1, s2): l = s1.split(' ') l1 = s2.split(' ') if l1 == ['']: return len(l) for i in range(len(l1)): if (not l1[i] in l) and (l1[i] != ' '): l.append(l1[i]) print(l) return len(l) n = int(input()) useless = [] arra = [] arrb = [] for i in range(n): u...
[ "1069583789@qq.com" ]
1069583789@qq.com
c8c15219af67880c2aef5d6e365ccc85d9c4fe02
73d9480df1e4d137ec03b985d1eae6810a63a325
/Exercicios-Mundo2/ex037.py
69588bd6bb0b7da84bb30212dde18530d3990770
[ "MIT" ]
permissive
WeDias/RespCEV
335bc4dd0ade352205056b4007e6d127f6484d69
3cf0918c5c90e3b2d6dc7e57f2824436c639c04c
refs/heads/master
2020-08-19T05:17:49.971950
2020-04-29T19:13:24
2020-04-29T19:13:24
215,882,465
1
0
null
null
null
null
UTF-8
Python
false
false
562
py
num1 = int(input('Digite Um Numero Inteiro: ')) print('''Escolha Uma Das Bases Para Conversão [1]CONVERTER PARA BINÁRIO [2]CONVERTER PARA OCTTAL [3]CONVERTER PARA HEXADECIMAL''') opcao = int(input('Sua Opcção: ')) if opcao == 1: print('{} Convertido para Binário é: {}'.format(num1, bin(num1)[2:])) elif opca...
[ "noreply@github.com" ]
WeDias.noreply@github.com
0666b14fb707a76d1147e80c03ad63ed6061ec52
e9d8d83f5d5ada2de0d8b9c3c8aece3ac51d2e3d
/openstack/sshtest2.py
0741916eb370a340aec57ef1a7f80e6c98614b64
[]
no_license
bhanum2/python
55c23d991e15190046575526939d70de296fa893
81549c52e5a97d0e2c2e1fc6f987e1934e5dd51d
refs/heads/master
2022-10-11T01:27:23.059746
2020-06-12T13:18:33
2020-06-12T13:18:33
271,778,668
0
0
null
null
null
null
UTF-8
Python
false
false
2,258
py
from __future__ import print_function import os, socket, sys from novaclient.client import Client as NovaClient def isOpen(ip, port): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(5) try: s.connect((ip, int(port))) s.shutdown(socket.SHUT_RDWR)...
[ "bhanuxkiran@gmail.com" ]
bhanuxkiran@gmail.com
954763b560cb63e28c271b6e2a24d6a704bd272c
b1e6b5bdeae01f9cf2a5d68e181ed74960d246b1
/utls.py
ef1089b38f5ffba5aad4483a4dbea079a2e73035
[]
no_license
TheLukaDragar/SuperTabelar3000
bb3ccf84a924d64c056d1349105a78c99b05a69f
32c35d44b01f63c3e66ec101ff615f830f4670d0
refs/heads/master
2023-08-14T11:16:23.534977
2021-10-13T11:24:38
2021-10-13T11:24:38
309,352,023
0
1
null
null
null
null
UTF-8
Python
false
false
2,137
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import itertools class Term(): def __init__(self, term='', source=None, flag=False): if source is None: source = [] self.term = term self.source = source self.flag = flag self.length = len(term) def __eq__(se...
[ "luka.dragar3@gmail.com" ]
luka.dragar3@gmail.com
1cd0c886be0252be92dd2e66dc2f2d576323d251
d4bbc9ee15604106a6f67912bfabab32508e0ffc
/make.py
2aea63d9688d848fa2a1adf4574050379e8d9a1b
[]
no_license
jiazycat/oracleAnalyze
71afbdef915d3b5c07fbf5eadb36fd3f05e06c0c
ec280674346c0138d1b77267c5c699063156747f
refs/heads/master
2020-03-19T23:55:48.459244
2018-06-08T08:52:47
2018-06-08T08:52:47
137,025,155
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
from distutils.core import setup import glob import py2exe setup(windows=[{"script":"Analyze.py","icon_resources":[(1, u"OracleAnalyzeBig.ico")]}],data_files=[("bitmaps",["OracleAnalyze.ico"])])
[ "1136919179@qq.com" ]
1136919179@qq.com
3c134724ea40b06d4fde5cf44e935e8671b6f11e
b6eff8973b7b9921668f6cb4a019d483e6f05282
/request/urls.py
6839af2369fd721fdfb14e74c1ab2872b681b820
[]
no_license
Allinka1/helpdesk
fff15d65d4a1cea1adc4c68dbba98db6a0a5b209
6f13ce678f6867b65fa51094f3049c145a53b14d
refs/heads/master
2023-06-26T04:41:10.398570
2021-07-14T13:51:12
2021-07-14T13:51:12
383,216,360
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
""" Purchase Application URLs Configuration ======================================= """ from django.urls import path from request.views import (RequestCreateView, RequestDetailView, RequestListView, RequestUpdateView, FormUpdateView, ) app_name = "request" urlpa...
[ "alishasergeeva94@gmail.com" ]
alishasergeeva94@gmail.com
d884b328280e8d6ca9f596e780fc457db9adce87
aff385e5ea88e119df8bd57741ac82e7bbb383aa
/NLPs/experiments/Hybird_tVAE_test.py
5d3db79ec3752a986185e7917bf6c0ef0a4d5ebc
[]
no_license
threefoldo/MyResearchCodes
2ab34b1cbb7f7925c03674647109da1d571260dc
3dd18e431d40b7c4dae5c183e8964d84340c2889
refs/heads/master
2021-09-03T21:28:04.333755
2018-01-12T05:03:31
2018-01-12T05:03:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,838
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import utils.DataLoader as D # 查看随机生成的情况 def infer_by_normal_test(model, sess, data_loader): sentences = model.infer_by_normal(sess, data_loader) for ix in ...
[ "yxue3357@163.com" ]
yxue3357@163.com
f4e19f1c69aa5d30c88ef2c6058d170ce86c5ff0
e2d2eeb0fa15696d5e0d212521426b5dd1d66822
/lectures/migrations/0007_auto_20200328_1749.py
1116b48fe36e8503aa782b091abe748b2f97d43d
[]
no_license
Adampatryk/attendance-tracking-web-portal
223b629efb8d9528ecf48e79140470e66f7645b0
77c08429b7fae9ab3d54a1fc1f7bc7cc31706904
refs/heads/master
2022-06-06T15:07:21.250538
2020-05-04T04:26:58
2020-05-04T04:26:58
242,003,151
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
# Generated by Django 3.0.3 on 2020-03-28 17:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('lectures', '0006_auto_20200328_1746'), ] operations = [ migrations.AlterUniqueTogether( name='allocation', unique_together={...
[ "psyak12@nottingham.ac.uk" ]
psyak12@nottingham.ac.uk
0089fdff188b76a31794493a8f9da2712c9a0278
be629ba40bafc2ec34b1243c9a916594643be4b1
/exUnit17.py
f4b8d48be1b6e8e278a715fe722bf3ab54bbf173
[]
no_license
rovm/python
bd2b04aaee49d9106b705b14a83ec9665243de79
922ed20e30bad5573a7e7aba12f38e33dba6c051
refs/heads/master
2022-07-28T08:08:24.895053
2020-05-22T04:41:27
2020-05-22T04:41:27
259,561,141
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
#while 반복문 출력 i = 1 while i <= 10: print('Hello, world! ', i) i += 1 i = 10 while i > 0: print('Hello, world! ', i) i -= 1 import random i = 0 while i != 3: i = random.randint(1,6) print(i) dice = ...
[ "rovm92@naver.com" ]
rovm92@naver.com
4f53fca6de83c3e1a1350e96ab8c05885220e402
a5fabc6d6341925b587fecb082dc70c0d1b95619
/py_FPA/FPA_Fil.py
0e0dabdbc7f14bd77822cefddf3a45b70a4ed9d5
[]
no_license
illuminous/pythonScripts
fcfef9c0fb9bd3155edcf02b56bbec563ff08b2a
1bb69a1bb1e10f6041274c027cc0ab06c7a9efed
refs/heads/master
2022-10-22T09:35:48.088907
2022-09-28T22:35:32
2022-09-28T22:35:32
120,963,663
0
0
null
null
null
null
UTF-8
Python
false
false
17,844
py
import glob, arcgisscripting import os # Create the Geoprocessor object gp = arcgisscripting.create() gp.CheckOutExtension("spatial") gp.AddToolBox gp.toolbox = "management" zones = ['RM_WY']#'EA_IL', 'EA_IN', 'NW_WA', 'SA_PR','NR_MT','CA_CA', 'EA_IA', 'EA_MI', 'EA_MN', 'EA_MO', 'EA_NH', 'EA_NJ', 'EA_OH', 'E...
[ "noreply@github.com" ]
illuminous.noreply@github.com
5152b34d823d6a11128d9e66f1e9e53e70047cb9
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_NoCycle_AR.py
b8ab652e2b3ff4f4365950f4e030704063914475
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
151
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['BoxCox'] , ['PolyTrend'] , ['NoCycle'] , ['AR'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
3595629e040ecabb0010cfa549841f3d56c5d3b3
3b4a31b59c0585bce03914e3b7c5635b516ac5fb
/Tests/2_test.py
7e1d63b231e337099a10729e6b9d6c1fcccb9e5c
[]
no_license
Norddan/Homework_share
d9f2b0cb57cc5dff1c30563ba07f308b16dbaae9
5856c1599fb15ce2b7527faa028038b8944f7bf8
refs/heads/master
2020-08-07T13:03:55.225441
2019-11-10T16:14:56
2019-11-10T16:14:56
213,461,661
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
import unittest import codecs import urllib.request from bs4 import BeautifulSoup class Second_test(unittest.TestCase): def test_crawler(self): urllib.request.urlretrieve("https://stopgame.ru/news", "test.txt") with codecs.open("test.txt", "r", encoding="utf-8") as outfile: t...
[ "noreply@github.com" ]
Norddan.noreply@github.com
0fa2c1ed41206d28353413910d65f5c9d9938701
39c8f0c0018f19a00ae7dfec8774e7a105822504
/evaluate.py
102fa32099bd91a6c1e41b38c220ca8ab5b30052
[]
no_license
darshanbangera/3D-Change-Detection
5e086ffd85d41bf413abcbd5789393f5b74a3587
45f49d546faf8cd6f7d7710475666c932b2701f1
refs/heads/main
2023-03-15T16:09:29.809254
2021-03-02T08:22:31
2021-03-02T08:22:31
343,514,031
3
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
import os import torch from train import Net import pickle import numpy as np labels = {'nochange': 0, 'added': 1, 'removed': 2, 'change': 3, 'color_change': 4} import argparse parser = argparse.ArgumentParser() parser.add_argument( '--Mode', type=str, default="train_val", help='train_val or test ') opt = parser....
[ "noreply@github.com" ]
darshanbangera.noreply@github.com
a2f15e0547de1995865418308a7aa46fce26847b
f90112cacd5623d2f55ff76eccee691e1e84dc59
/venv/bin/gunicorn_paster
2448ddfe24e7641a942820b67d964ea2e7e3806c
[]
no_license
wsankey/wsankey
9e92daa477d2a6b8a3d283dd8112c37acaa3567e
6394df2b35ad9a71a80b7ae3635d7f75563754a6
refs/heads/master
2023-01-10T04:11:51.105060
2015-09-12T16:19:45
2015-09-12T16:19:45
29,715,116
0
0
null
2022-12-26T19:47:05
2015-01-23T03:40:31
CSS
UTF-8
Python
false
false
269
#!/Users/cenchen/Documents/Code/personal_flask/venv/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.pasterapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "WSankey@gmail.com" ]
WSankey@gmail.com
1b6234992670a05ecdb188d90b42a17c134b3d07
79eb0792873fa3d7895b96f26952c5dc13118f14
/tf/migrations/0017_migrate_team1_team2.py
96d584df1c92e77cbdd14737e45b49e5c37ce269
[]
no_license
amr2393/occ_elo_rankings
95adbaa5b0fd7c93ea778e2059bc088c2842dd5a
13d0984bfee4d3c9925b005827c7794f440efdd7
refs/heads/master
2021-01-21T04:38:49.132824
2016-07-09T09:52:57
2016-07-09T09:52:57
48,841,505
1
2
null
2016-01-12T20:16:09
2015-12-31T08:22:32
JavaScript
UTF-8
Python
false
false
719
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-07-09 06:20 from __future__ import unicode_literals from django.db import migrations def migrate_teams(apps, schema_editor): Matches = apps.get_model("tf", "TfMatch") for m in Matches.objects.all(): if m.team1.id < m.team2.id: m.te...
[ "philipp.g.deutsch@gmail.com" ]
philipp.g.deutsch@gmail.com
bf48d99032b71025a6866216f93638dade663ca6
10d09408c25e0d41230a3e952f8eca466fd8ccda
/schemas.py
1bea189b856a48caf12c4dbefaee8af7af57a241
[]
no_license
Loosper/telemetry
ea0077490b4f21091cf9aa7ea1c3fd28e44c976b
b040c4553c4ceab5333cfc2d4d3a27ea76ec8cf8
refs/heads/master
2021-01-13T07:29:26.072081
2017-07-24T14:16:32
2017-07-24T14:16:32
71,283,127
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
from voluptuous import ( Schema, Required, MultipleInvalid, All, Any, Number, In, Date, Match ) company_mapping = { -1: None, 0: 'Maverick Cardio-Telemetry', 1: 'Maverick Water-Telemetry' } providers = ['Amazon', 'NewEgg'] device_types = ['cardio', 'medical', 'telemonitoring'] carriers = ['Mtel', '...
[ "boian4o1@gmail.com" ]
boian4o1@gmail.com
930ecbf87a7438ad4356edae2d94461dcdcc3d1f
0666e1fad716ada85d175a844e61fd3bae068318
/GoogleOutput/parser.py
fb732fd6791807c8b2055d298d9a8b72bf65ddc1
[]
no_license
erzaliator/word2vec-curiosity
ef9cc6d4a3c745a83825600e568ed3adfc998274
8fa177a83f37b7ff822f602350b7569c25b3cd5b
refs/heads/master
2021-01-18T23:14:53.741107
2016-11-04T04:25:02
2016-11-04T04:25:02
72,683,891
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
mapping=dict() temp="" plain=open('unigrams','w') unique_values=[] with open('curiosity_output') as f: for line in f: line=line[:-1] # print line # print "---------------------------------------" try: #it is the list fruits = eval(line) # print "fruits",fruits mapping[te...
[ "comethalley61@gmail.com" ]
comethalley61@gmail.com
e879014372eba55f1488cb5d2e545eeb90fac00e
68aabdfc01678012b0635f7c954af04491592fbc
/src/matejc/myportal/tests/test_setup.py
241d6819855efc1493fe834897577849a9ddb258
[]
no_license
matejc/matejc.myportal
23a701061422ec52431faa8f571adb9342eb7535
220163383514465444a7e81425933108f293653e
refs/heads/master
2016-08-04T00:19:05.340043
2014-05-24T21:36:59
2014-05-24T22:25:14
8,150,110
1
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
# -*- coding: utf-8 -*- """Setup/installation tests for this package.""" from matejc.myportal.testing import IntegrationTestCase from plone import api class TestInstall(IntegrationTestCase): """Test installation of matejc.myportal into Plone.""" def setUp(self): """Custom shared utility setup for te...
[ "matejc@kiberpipa.org" ]
matejc@kiberpipa.org
430824462729548581bdc19129e9be54edd89a74
ea3ae95eb504e09529ec3d6b05230a466479fa7e
/ApplicationLogger/logger.py
10fdaca7615ca2565ca6d78ae0545b0293527440
[]
no_license
motheesh/tweet
f172ebb00a18be53edf8c426d3ac3113cd435783
aede8c7e0a26d71480992fca6c0eb71bdee1104a
refs/heads/main
2023-08-18T18:20:11.647785
2021-10-02T13:49:03
2021-10-02T13:49:03
412,808,236
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
import logging as lg import time import logging.config from os import path class logger: def __init__(self,path="./ApplicationLog"): self.logPath=path self.log_file_path="./ApplicationLogger/logging.config" def log(self,errorType,error): filename=time.strftime("%m_%d_%Y") ...
[ "motheesh96@gmail.com" ]
motheesh96@gmail.com
522b229ed5441f337e5ffaf6d29ee042868dfd53
f48512f1f42d55fabc9ab46f448138e771b78c68
/sphinx/conf.py
d3bc27682716395cd7e2c284cb4cb038eaed7629
[]
no_license
HussainAther/chipseq
07871167f894ba612d6ca476b5a6fb37440c682a
6d12752c15a0368a5d4b40af6f5916d2c04c767f
refs/heads/master
2020-03-08T07:49:44.997059
2018-04-04T03:58:42
2018-04-04T03:58:42
128,004,481
0
0
null
null
null
null
UTF-8
Python
false
false
5,167
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # snakemake documentation build configuration file, created by # sphinx-quickstart on Thu Jul 27 17:54:40 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # ...
[ "shussainather@gmail.com" ]
shussainather@gmail.com
3ea9a191dc1591e06c4a01ad61eaae4a8fc32fe3
925f1c159e2809d9505a1bd8dd343c7123506261
/arm_kinematics_tools/scripts/create_ikfast_moveit_plugin.py
ff098b68c7c0e591732ad1aa81fc864ae28634f4
[]
no_license
rethink-rlinsalata/kaist-ros-pkg
3bdbdafd20380011c2d98d3c6b14823dfc279ab9
7679ac314ed412a115294ead8c00a4ddbcd31acc
refs/heads/master
2021-01-17T11:59:05.099748
2013-03-14T07:42:10
2013-03-14T07:42:10
42,735,053
1
1
null
null
null
null
UTF-8
Python
false
false
11,032
py
#! /usr/bin/env python ''' IKFast Plugin Generator for moveit Creates a kinematics plugin using the output of IKFast from OpenRAVE. This plugin and the move_group node can be used as a general kinematics service, from within the moveit planning environment, or in your own ROS node. To use, you should have created y...
[ "davidb@kaist.ac.kr" ]
davidb@kaist.ac.kr
ec8f221cde5fdf597b6c8d7493464006d316c717
d2dda11e125068512c5c0db0f24b80bc53c94ce3
/LeetCode/Ex0/Ex88.py
730a58387b0e8f11def225a9734664b6064cfec2
[]
no_license
JasonVann/CrackingCodingInterview
f90163bcd37e08f6a41525f9f95663d5f42dd8e6
8f9327a1879949f61b462cc6c82e00e7c27b8b07
refs/heads/master
2021-09-02T09:28:34.553704
2018-01-01T12:05:12
2018-01-01T12:05:12
110,519,907
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
class Ex88(object): def merge(self, nums1, m, nums2, n): """ :type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: void Do not return anything, modify nums1 in-place instead. """ k = m + n - 1 i = m - 1 j = n -...
[ "jasonvanet@gmail.com" ]
jasonvanet@gmail.com
2b243f3967ce7af8ef166cfe9108bcddac30959f
31ec71df06ed3b7114aa2e6ef6dd945655a6329d
/oku.py
94227a3bb5f5d1c9c553e55676cf18669e10f3bb
[ "Apache-2.0" ]
permissive
mzuvin/bol-parcala-yonet
043336beaf23158463c6ac4391c2fbf9ab91eebd
4b5e1ddb405d4eb9a767fd5b03aa6f98f1e62a77
refs/heads/master
2020-04-11T07:41:17.070645
2018-12-13T09:57:12
2018-12-13T09:57:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,670
py
#python ile büyük dosyaları satır satır okuma işleme arama yapma import os,time,re,sys,random,threading #regex desenimiz regex = r"[0-9]+" dosyaYolu='data.txt' def oku(boyut): bas=boyut.split('/')[0] son=boyut.split('/')[1] f=open(dosyaYolu) f.seek(int(bas)) lines=f.read(int(son)).spli...
[ "noreply@github.com" ]
mzuvin.noreply@github.com
9de4328c990241cfbf7d1d75a9cfce27d3959d8e
81b90328f11b42736f4a2313f87ca704d660879e
/neuralgas/examples/example_train_on_iris_kfold.py
37c25513e0d2c7372a6aee19f8f1183c7c4b2149
[]
no_license
pietromarchesi/neuralgas
b3deb1f0373dd26bd37ba6b329c1b9e6dfb83477
37769203fe30897a8cdbb3dac5e052cd2b1acadc
refs/heads/master
2021-06-15T23:30:25.920418
2017-05-11T15:36:01
2017-05-11T15:36:01
82,312,094
4
1
null
null
null
null
UTF-8
Python
false
false
672
py
import numpy as np import logging import sklearn.datasets import sklearn.metrics import sklearn.model_selection from neuralgas.oss_gwr import oss_gwr iris = sklearn.datasets.load_iris() X = iris.data y = iris.target kf = sklearn.model_selection.KFold(n_splits=10) acc = [] for train_index, test_index in kf.split(X):...
[ "p.marchesi@uva.nl" ]
p.marchesi@uva.nl
109befbc05f0567fd884dabebd24fff19c8a95f7
a46a1f35e096ccb1659222e92ba84666724f8058
/grad-descent.py
0f2eb72438896e54de3afb8d8dd2d33079ae8650
[]
no_license
Felix660/wustl-math449
d82da335defe48ef5cf13a75731838e385d59412
b5f6aada9c36aa2000f634054e15e44be673d989
refs/heads/master
2023-03-19T23:23:17.651831
2020-12-11T23:22:54
2020-12-11T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
#%% import numpy as np import matplotlib.pyplot as plt from utils import * # %% # f = lambda x,y: x**2 + 2*y**2 + 4*x + y + 6 f = lambda x,y: 100*(y-x**2)**2 + (1-x)**2 # Rosenbrock # print(f(0., 2)) # %% plot_coutour(f, box=(-2,2), scale='log') #%% plot_surface_2d(f, box=(-2,2),scale='log'); # %% h = 1e-8 gradhx = lam...
[ "scao.math@gmail.com" ]
scao.math@gmail.com
4d8f17adb5adc19acf2d26d281bb5cad1e75b509
325b8e1688b818a4dbf947e87e931dba8b9003f6
/build/lib/juneau_extension/jupyter.py
750cc4e3797457fd7080732e69892a3cc2c64d5b
[]
no_license
peterbaile/jupyter-extension
301721a01caacb05ea29f7b786d1976330da81f5
3111caba4af7f732971378e5f0d25d9d02d3aa1b
refs/heads/master
2022-11-16T16:39:06.269422
2020-07-15T00:14:15
2020-07-15T00:14:15
269,253,077
0
0
null
null
null
null
UTF-8
Python
false
false
6,704
py
from jupyter_client import find_connection_file from jupyter_client import MultiKernelManager, BlockingKernelClient, KernelClient import logging from queue import Empty import sys import site import subprocess import json import juneau_extension.config as cfg from juneau_extension.file_lock import FileLock logging.ba...
[ "peterchenwflms@gmail.com" ]
peterchenwflms@gmail.com
97e4f586954b32923cee09c942c961dc8c127c0e
b2f48d7bb94df04ee32f27d5d2b0d5954a4e52b0
/tests/fetcher.py
832ac2e857616edbd3d216c1d4d409479098e4ed
[]
no_license
tp6vup54/myStock
f195fee1c2aa1a60fdf63559085b1001e8cae121
e2a4caf0d27ae458a363dfd773b001b9723e5b3b
refs/heads/master
2022-12-12T03:39:23.301005
2020-09-17T12:33:18
2020-09-17T12:37:11
290,576,495
0
0
null
null
null
null
UTF-8
Python
false
false
4,470
py
from bs4 import BeautifulSoup import unittest from fetcher.id import StockIdFetcher class TestFetcher(unittest.TestCase): def setUp(self): self.test_raw_text = """ <body> <h2><strong><font class="h1">本國上市證券國際證券辨識號碼一覽表</font></strong></h2> <h2> <strong> ...
[ "genius091612@gmail.com" ]
genius091612@gmail.com
e4e5b5b777d0c2876ccd93f0e0687824c3d9acc0
53706aea0f1358c3589b9afa8a94f1c902c2c494
/algorithms/tmax/apps/record_trajectory_manually.py
29adb24df33967fa011df4579ea3ccccb99c3b98
[ "MIT" ]
permissive
alex-petrenko/landmark-exploration
6df0eae63ba501c3509e1264f8f99101ff0df345
faaeff84176de34e2ab4c18b24ee022bd069299e
refs/heads/master
2021-06-28T16:43:41.299431
2019-06-02T00:09:09
2019-06-02T00:09:09
164,031,073
4
1
MIT
2021-06-18T20:53:45
2019-01-03T22:53:03
Python
UTF-8
Python
false
false
3,668
py
import datetime import pickle import sys import time from os.path import join from threading import Thread from pynput.keyboard import Key, Listener from algorithms.utils.algo_utils import main_observation from algorithms.utils.env_wrappers import reset_with_info from algorithms.tmax.agent_tmax import AgentTMAX from ...
[ "petrenko@usc.edu" ]
petrenko@usc.edu
69934e8bb364518dc2211b8437956f41afedb242
fc98d6ba7da477e38840edf00e5b1a8552c14924
/my_module.py
1f5890243c3f5aa0b2cb97360b3ff6fbec7ed2ff
[]
no_license
Hitvardhan-Singh-Solanki/python-bootcamp
f599450238e55f3c952cfdc9012fa47fbae70f44
1ec2473c6a3256676c249d8d60f3c8f545e4686f
refs/heads/master
2020-04-16T13:44:07.018930
2019-01-18T09:09:44
2019-01-18T09:09:44
165,640,376
1
0
null
null
null
null
UTF-8
Python
false
false
65
py
def myfunc(): print("FROM MODULE!") return "from module"
[ "Hitvardhan.Solanki@gds.ey.com" ]
Hitvardhan.Solanki@gds.ey.com
aa9e6743da5a6d295eb5a80872d2ad62f8545fe2
981eccc782894bd46c4d223ae18afda8b4e4ef9d
/Self-taught programming/Chapter 13/No.2 add change_size method.py
6d4e2dc1e82c838f6447357da3b55267ea6b6507
[]
no_license
kannkaku0406/Book
22e04bf340288cbc09b7ac5fa96b17c506f9fcff
6326f1325e1ec188a2f700b0e669e30d6e7aeb8c
refs/heads/main
2023-03-18T16:28:15.915997
2021-03-14T08:26:29
2021-03-14T08:26:29
342,724,312
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
class Square: def __init__(self, side): self.side = side def calculate_perimeter(self): self.perimeter = self.side * 4 print(self.perimeter) def change_size(self, change): self.side += change print(self.side) square1 = Square(5) square1.change_size(1)
[ "noreply@github.com" ]
kannkaku0406.noreply@github.com
6f353343ebfd3b1bb1b40a1c028e27b4db514c59
7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0
/1401-1500/1475-Final Prices With a Special Discount in a Shop/1475-Final Prices With a Special Discount in a Shop.py
4b181402e0898044f9b11bafe9ab82e4848e82b7
[ "MIT" ]
permissive
jiadaizhao/LeetCode
be31bd0db50cc6835d9c9eff8e0175747098afc6
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
refs/heads/master
2021-11-05T04:38:47.252590
2021-10-31T09:54:53
2021-10-31T09:54:53
99,655,604
52
28
MIT
2020-10-02T12:47:47
2017-08-08T05:57:26
C++
UTF-8
Python
false
false
362
py
class Solution: def finalPrices(self, prices: List[int]) -> List[int]: n = len(prices) result = [0] * n St = [] for i in range(n - 1, -1, -1): while St and prices[i] < St[-1]: St.pop() result[i] = prices[i] - (St[-1] if St else 0) S...
[ "jiadaizhao@gmail.com" ]
jiadaizhao@gmail.com
e02885b6cd8708e0cc8a5c11902ad7c189c28a49
4c67dfb8e7c4f16c138aa4625a5bac2a3a99c48c
/hw7.py
6f6651cda6d2ef87b86fdb0d2bf9be35b46da416
[]
no_license
maryblack/intro_to_ML
b07bd6117e5f6c86a3323390a2e02be37ad29bb6
eaf2b5add1bc1e16bb1691df64f5fd4a93b6bd32
refs/heads/master
2020-06-16T17:28:48.372453
2019-07-28T17:02:01
2019-07-28T17:02:01
195,650,647
0
0
null
null
null
null
UTF-8
Python
false
false
1,866
py
import pandas as pd import numpy as np import math from sklearn.metrics import roc_auc_score def scalar_prod(w1,w2): s = 0 for i in range(0,len(w1)): s+= w1[i]*w2[i] return s def r_exp(x_i1, x_i2, y_i,w1,w2): return 1 - 1/(1+math.exp(-y_i*(w1*x_i1+w2*x_i2))) def a_sigma(x, w): return 1/(...
[ "maniya.chernova@gmail.com" ]
maniya.chernova@gmail.com
62e04bbd95a7026917581159582cad7cf4093504
5a99abab42b690ef5e71a72d16243e3497d940bc
/tp_purchase/models/__init__.py
3ac324efa58021cc8b65959f415ab23203f20272
[]
no_license
arRki1/odoo_module
e48a0992f7f2293cfd2ae8b0f768c125ea12daba
5c8b55ed94ae67916df0459f56220133781a60ab
refs/heads/master
2023-01-29T05:07:34.947364
2020-12-08T08:46:47
2020-12-08T08:46:47
314,103,049
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
# -*- coding: UTF-8 -*- from . import purchase_stage from . import purchase_order
[ "arrki1_git@163.com" ]
arrki1_git@163.com
523701e4b1c0dde83404b46ab63526d1ed263308
7b4b31a8b736db18995474ac109cfbee868cca7a
/interface/user_login_online.py
d77555321638ec80cad8000b9b971a2b88496131
[]
no_license
morainwang/yqt
d727cf61c481943b61eef67af44ce91651d675e5
390e5f8b50df046f4c02be5461f3fc0be55cef34
refs/heads/master
2021-01-10T06:47:14.763655
2016-02-04T06:02:15
2016-02-04T06:02:15
51,055,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
#!/usr/bin/env python # coding=utf-8 from multiprocessing import Process, freeze_support import socket import time import msgserver_login def login(uid): msgserver = msgserver_login.Login(uid) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((msgserver[0], 8888)) def ke...
[ "945999681@qq.com" ]
945999681@qq.com