blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
3220c6fedfbdef66c2d1bc9c9c4a39bc047ce8ae
40c2bce56832d97797c115f60d1e0459fd4ebf93
/Eclipse_Project_2/Section_1_5/database.py
3c56f2e590f4f519ae6e0c1a2f4d52010d0af71a
[]
no_license
amanoj319319319/Eclipse_Python_LastSeleniumTest
0be2e7f615160248f329b4df0e9d109612b29560
4d0978e4c2dfe9c3a9d4b429f7ff6340278c0252
refs/heads/master
2023-04-27T09:14:38.726807
2021-05-19T08:18:40
2021-05-19T08:18:40
267,038,244
0
0
null
2021-05-19T08:17:45
2020-05-26T12:35:36
Python
UTF-8
Python
false
false
6,224
py
#connecting to the database using database credentials and finding version of the database ''' import cx_Oracle con=cx_Oracle.connect('system/Manoj319319319') if con!=None: print ("successfully connected") print ("Version is:-",con.version) else: print ("connection failed") ''' #creating a table name in t...
[ "a.manoj16@gmail.com" ]
a.manoj16@gmail.com
57c166495a5ba9c4d4d739bff152b1a67f6e3fea
5ceea4106e0df754ae581c1f5e2d16082d7b6386
/hackerRank/Algorithms/Implementation/bon-appetit.py
0da733b5b6475b0511073b0a9b33e4e31f2c3664
[]
no_license
vikramlance/Python-Programming
b0d4bd70145bfaa7a66434656c5970fbc57e8bd3
4094961e3c613e33f2d8a6d30281c60ed09d8c80
refs/heads/master
2022-06-17T00:58:50.646615
2022-06-03T03:39:35
2022-06-03T03:39:35
53,989,511
1
0
null
null
null
null
UTF-8
Python
false
false
250
py
''' https://www.hackerrank.com/challenges/bon-appetit ''' n,k=raw_input().split() n=int(n) k=int(k) a=map(int, raw_input().split()) b=int(raw_input()) if (2*b== (sum(a) - a[k])): print "Bon Appetit" else: print ( b - ((sum(a) - a[k])//2))
[ "noreply@github.com" ]
noreply@github.com
113f6318406ab2f1f780a9300b4dcace49083e25
86bcf49fc5918e697bff33839164fab02bc68c83
/preprocessor.py
ca6d6d9cdf69f94ff28a4b99c42f04b9426bcf44
[]
no_license
eyosyaswd/honors-thesis
845be484e0fdcddf03c5cefb5931f963e3879811
4d70fa09527e40d24250bfa75cf55b2760e97a59
refs/heads/master
2020-04-27T14:01:41.437075
2019-04-25T00:10:53
2019-04-25T00:10:53
174,393,541
0
0
null
null
null
null
UTF-8
Python
false
false
3,036
py
""" Script for preprocessing labelled tweets. Input: csv file of with labelled tweets Output: preprocessed and labelled tweets """ # from nltk.stem.snowball import SnowballStemmer from nltk.stem.porter import PorterStemmer import pandas as pd import re USE_STEMMER = True def is_valid_word(word): return (re.sea...
[ "eyosyaswd@outlook.com" ]
eyosyaswd@outlook.com
2adea95d40fe265f37c11ef9b551f4dc668ac56c
ff5b7bae4cb9719463d532d00871bf30f55eb9e7
/tests/tests.py
915b61ec45956c69edb31f57f3478ba7a4b97cd6
[]
no_license
alexanderbai1/Vida-Project
76a514aa234c8b73c25d8b0e4c7b045831cbf10e
a509951abff6b7c211f4fc2a47a7e2f7b57dc1d5
refs/heads/master
2020-04-05T05:57:46.930921
2018-11-07T00:23:33
2018-11-07T00:23:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,815
py
import unittest import sys sys.path.append('../src') # gets into proper file path from testthis import multiply,add from condition import Condition from symptom import Symptom from users import User #users.py is pluralized because just user is another existing module. # This is just test case, remove later...
[ "aham@cs.uchicago.edu" ]
aham@cs.uchicago.edu
087cd3f2444c706d1d88702090f0b0625e335387
114ee9aa6b93e8b2a88ac0760dddfb931b4ed97e
/tests/adder_test.py
0c652414de6396ef8660eebd12f7aba7506f6747
[]
no_license
KoduIsGreat/vscode-python-unittest
423cd874c8c5eba468207f671aeacd060c51ad56
c63d688e94ea6144d72cf9f6bcbdaf9227fdd26b
refs/heads/master
2020-04-17T12:40:25.512351
2019-01-19T20:57:29
2019-01-19T20:57:29
166,587,931
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
from unittest import TestCase from adder import simple_add class AdderTestCase(TestCase): def test_add(self): assert 11 == simple_add(5,6) assert 0 == simple_add(5,-5)
[ "aashelt90@gmail.com" ]
aashelt90@gmail.com
6c0e8ee0f458aebd6ee79924bb05b5a84b07865c
5772286410ee9bff17f4b0303afc63bd2f464bbc
/Proyecto Codigo/Web Application/WebApp/WebMultimedia/views.py
163b237d63203cc8c01187cdd04cb103996939d2
[]
no_license
RoboticsLabURJC/2015-TFG-Walter-Cuenca
d39097c213d631ff195874459f97c27e93f09107
5d4e15bc28f6dea05850c3abae2bf07639c1906f
refs/heads/master
2021-06-18T12:24:35.583862
2017-07-17T17:50:57
2017-07-17T17:50:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,632
py
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect #se puede quitar no se utiliza from django.utils import timezone from models import * from forms import * #importamos para trbjar con fechas import datetime ## importamos los formularios # from forms...
[ "cuenca306@hotmail.com" ]
cuenca306@hotmail.com
cb3ae9ee7f231abcc094e426310c92e1f9b96e04
70d5ac89833250f642737cfd52c2e5977ada94f7
/RabbitMQ/Older/Cola/serverEmitter.py
77b2b85070b521fa36711c324e8c697855f34624
[]
no_license
Plozano94/CupulaCiclope
7b41d3fd0fe3e938a6aba104dcb9b64475d39229
4e22ee70210916881950bc7010e75819a21a31f8
refs/heads/master
2020-04-15T15:21:39.600058
2017-03-28T09:20:14
2017-03-28T09:20:14
46,656,430
0
1
null
2017-03-28T08:26:34
2015-11-22T10:53:50
Python
UTF-8
Python
false
false
979
py
#!/usr/bin/env python import pika import sys import config as c #!/usr/bin/env python import pika import sys credentials = pika.PlainCredentials('cupula', '1234') connection = pika.BlockingConnection(pika.ConnectionParameters( c.dictIP['servidorIP'], 5672, 'Cupula', credentials)) chann...
[ "plozano94@gmail.com" ]
plozano94@gmail.com
3c8d65c57a7bdbf95d8cdf533395ad17aa5f6a99
03e115c1937ec7bd1e249f82db0225828eaaa186
/2-GUI (tkinter)/3imagenes.py
5d2a2f4a214587d17e084764b7496fb9400deb31
[]
no_license
mivargas/Master-python
236c04205637ddd44d1cc879de2b7c48418153f9
9d1c04a8d658aa0dd8620ed792fa2133adfa57e7
refs/heads/master
2023-03-06T13:35:58.177058
2021-02-16T00:06:00
2021-02-16T00:06:00
321,731,390
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
from tkinter import * from PIL import Image, ImageTk ventana = Tk() ventana.geometry("700x500") Label(ventana, text="HOLA SOY MIGUEL").pack(anchor=W) imagen = Image.open("./imagenes/labsxd.png") render = ImageTk.PhotoImage(imagen) Label(ventana, image=render).pack(anchor=E) ventana.mainloop()
[ "miguelvargas619@gmail.com" ]
miguelvargas619@gmail.com
678de7947999a1010a6b2498d3aff6924a93146e
ec0276755c59c915596554c557cf9e89c80b52d8
/ami/blueprints/contact/__init__.py
c576479e28ceba91b50d49fe1c8f9d89840d2819
[]
no_license
ahmedozmaan/SamplePythonProject
9cb1d756d252ce6477a442487c939b282ed92e34
101c530c824f14befcca742c17dc9ce501c65a3d
refs/heads/master
2020-03-24T21:57:21.904341
2018-08-20T13:50:11
2018-08-20T13:50:11
143,059,280
0
1
null
2018-08-20T13:50:12
2018-07-31T19:39:25
Python
UTF-8
Python
false
false
49
py
from ami.blueprints.contact.views import contact
[ "ahmedozman@gmail.com" ]
ahmedozman@gmail.com
598c8ca277952e17b7940afec16c265bda1a481b
e53c3b0d99a09bef379569f85c3ca80ce05d17ee
/Algorithm/recursive/recursive.py
5eeb807d0cb9a09fc6cd117ea3f966d7008dcd9c
[]
no_license
biolchen/biologistLearningPython
c0d27246abc0795346a0dc61792b1c38748faa4d
267eb455e096e01f851a99e0afe7057a0cf7f53e
refs/heads/master
2022-06-28T21:03:57.608054
2020-05-10T06:19:11
2020-05-10T06:19:11
259,196,134
2
1
null
2020-05-10T02:53:44
2020-04-27T03:35:04
HTML
UTF-8
Python
false
false
772
py
## ''' 1137. N-th Tribonacci Number The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. Given n, return the value of Tn. ''' class Solution: def tribonacci(self, n): if n == 0: return 0 if n<3: return 1 e...
[ "18598014+biolchen@users.noreply.github.com" ]
18598014+biolchen@users.noreply.github.com
e1f72a82a0cf3e435e936c1e2a6bf0e91dc7d85a
031a5e28f91c9b357a068ad102dfe93f4cbf0c57
/DecisionTree/test.py
a9c3f5eaca8921993de3868a87179a918f19d3a9
[]
no_license
GitOfCharlie/ML-experiment
f28a6932e3952fa4eeff4c2692fa1e1d36dbc9ec
5c7c966b1c7e66ee0b3104d7200facb36e78867f
refs/heads/master
2022-04-16T17:24:19.585575
2020-04-20T06:02:25
2020-04-20T06:02:25
243,219,776
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
import numpy as np # print(np.log(2)) # print(np.log2(2)) # print(np.log10(2)) print(float(8/3) - float(5/6)*np.log2(5) + float(3/8)*np.log2(3)) print(float(1/3) * (6.5 - np.log2(5) - 0.75*np.log2(3)))
[ "1057206466@qq.com" ]
1057206466@qq.com
5c02e94311a37dbaf15d56d180884328cdaf081d
761a20a79420bc6da491c5a487f6cf218f598b66
/DemoTest/graphicsTkinter003.py
d8eb0e19c8eb84a4b963313d1955a8126b63903c
[]
no_license
namexiaohuihui/linuxlogin
50b21e247d2e06c479907aa2f94f4b5979b4025d
ad8ffce5e87624f40f89eedc0229ba70cd66699b
refs/heads/master
2020-03-24T16:56:06.313441
2018-08-03T14:06:48
2018-08-03T14:06:48
142,843,487
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
# -*- coding: utf-8 -*- """ @__author__ :DingDong @file: graphicsTkinter001.py @time: 2018/5/17 21:37 @Entry Name:operating """ from tkinter import * from tkinter.messagebox import showinfo def reply(name): showinfo(title='弹窗',message='你的名字: %s !' % name) top = Tk() top.title('账号登陆') # top.iconbitma('1178420.gif...
[ "704866169@qq.com" ]
704866169@qq.com
cdd694f1c152d8a67387552fbee357926d127b69
bb073c4ac2e28bda1d95dee5e0af5181b7f3f564
/blog/schema/blog_schema.py
6d66ce4e07155645fce5fa2ee029b8bac26607ce
[]
no_license
Navyashree-h-c/Training
982b4ca78b0cac2f962691423415dcb092dc7075
d7d550037d9c2cc1d73c8ad93cca0f450e626e13
refs/heads/master
2023-01-11T11:01:45.036811
2020-11-05T10:26:02
2020-11-05T10:26:02
309,942,426
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
import graphene from graphene_django.types import DjangoObjectType from blog.models import Blog as BlogModel class Blog(DjangoObjectType): class Meta: model = BlogModel
[ "navyashree@redintegro.com" ]
navyashree@redintegro.com
415189fbe03085b52ba901c3699c66ba2f13e2d1
9021ed14cd07ddfa16f339de91bead3ea335b0d1
/web/Logic/logic.py
7d9df59f985ea9f66a5924574b615d9af4bbfe0c
[]
no_license
mali86007/xuemc
0d443c5effd8b8c453bb5a22154dd5132a3c69c3
244d379f07c8b6973377bec0afe7b3d4fdfbe226
refs/heads/master
2020-04-08T15:54:06.493310
2018-12-03T08:30:56
2018-12-03T08:30:56
159,496,588
0
1
null
null
null
null
UTF-8
Python
false
false
6,627
py
import sys,os sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)),'..')) sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)),'../..')) # from imp import reload # reload(sys) # sys.setdefaultencoding('utf-8') from DB import orm from web.forms import SchoolForm, InstitutionForm, B...
[ "malj007@tom.com" ]
malj007@tom.com
cc2c7be217f85d5e43d8832d6140484fb1882134
0d56b9ee2bb43a9ee4d8a71eeebd9e648438c807
/agent.py
56d5979029d43959e31ade1a8fb1f5cbef965c2a
[]
no_license
melmarsezio/Nine-Board-Tic-Tac-Toe
8726fc4958d12c5cda9bbc53f0537914349444bd
aa9594aba9e24219d6a3e0e55fa78ab7b6c2af17
refs/heads/master
2021-04-21T01:33:59.532104
2020-03-27T17:34:37
2020-03-27T17:34:37
249,736,437
1
0
null
null
null
null
UTF-8
Python
false
false
10,137
py
#!/usr/bin/python3 # Sample starter bot by Zac Partridge # Contact me at z.partridge@unsw.edu.au # 06/04/19 # Feel free to use this and modify it however you wish import socket import sys import numpy as np import math import collections # a board cell can hold: # 0 - Empty # 1 - I played here # 2 - They played...
[ "noreply@github.com" ]
noreply@github.com
24facbeaca566bc44cf1b172a6621bba9a176dc4
7d111338d8d2aba0b6dba919a4d35cf8de6b452e
/top_getter.py
aab4bd0c9064c93bb5e874ad5bf043f35b852a66
[]
no_license
d07s1d0s4d1/alphatron
e3cedd6bc3eebfa243a976b7157a0b49948b0c2f
7f2e98c31703b33d06dad8e35ed87d1e8db62d8a
refs/heads/master
2020-03-14T22:19:23.219803
2018-05-02T08:10:13
2018-05-02T08:10:13
131,818,795
1
1
null
null
null
null
UTF-8
Python
false
false
820
py
import top_configs import db_handler import sending class Singleton(object): _instance = None def __new__(class_, *args, **kwargs): if not isinstance(class_._instance, class_): class_._instance = object.__new__(class_, *args, **kwargs) return class_._instance class TopGetter(Single...
[ "dsd_kem@mail.ru" ]
dsd_kem@mail.ru
f70b3475156dcaf6eded504c6366ffb479decd07
8e43b034459532934a04bd8f28468805191909b9
/k_means.py
621dc1dc34ed010a537e42b0d4e55010ccd74c8e
[]
no_license
Linar23/Machine_learning
be29a00a623214b89a9c9c9069f8f9bc3ec8087a
cf4cbc41205eaf2171c5c84f89ca2819bdb9c56c
refs/heads/master
2020-12-30T16:16:03.380955
2017-09-12T12:42:56
2017-09-12T12:42:56
89,281,859
0
0
null
null
null
null
UTF-8
Python
false
false
2,621
py
import numpy as np from matplotlib import pyplot as plt from numpy import linalg x1 = 7.5 + 2 * np.random.randn(100) y1 = 5 + 2 * np.random.randn(100) x2 = 2.5 + 2 * np.random.randn(100) y2 = 15 + 2 * np.random.randn(100) x3 = 12.5 + 2 * np.random.randn(100) y3 = 15 + 2 * np.random.randn(100) x = np.co...
[ "noreply@github.com" ]
noreply@github.com
31bdb1a9cc72b072e7e224ef83e66392692f2012
78e54d33dc3d4b0e82baf1303d8e8a4e6b7dd7cd
/Ex/settings.py
e133fac987ed90f2afb8fae65f4fe2610f076695
[]
no_license
graduation3loo2/Exodus-1.1
fa8ad1fe09b4850b747ecb002ebccee7d74d4028
b14eb631e16768737470ff4f31ccfe290398e7a2
refs/heads/master
2020-06-16T04:25:59.263506
2019-07-06T00:24:12
2019-07-06T00:24:12
195,479,430
0
0
null
null
null
null
UTF-8
Python
false
false
3,269
py
""" Django settings for Ex project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Buil...
[ "Yousef5020@gmail.com" ]
Yousef5020@gmail.com
f1033a3a96ab29a179996c21324e2e9a90a9b91e
8ecd899a8558ad0a644ecefa28faf93e0710f6fb
/ABC163/ABC163_A.py
bb4bb6c963e85231718a3704fce4761be0b06a79
[]
no_license
yut-inoue/AtCoder_ABC
b93885547049788d452e86b442a4a9f5ee191b0e
3d2c4b2b2f8871c75f86040ad07ccd7736ad3dbe
refs/heads/master
2021-07-03T09:09:20.478613
2021-02-21T13:20:31
2021-02-21T13:20:31
227,140,718
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
r=int(input()) #a,b=map(int,input().split()) #l=list(map(int,input().split())) #l=[list(map(int,input().split())) for i in range(n)] ans=2*r*3.14159 print('{:.5f}'.format(ans))
[ "yinoue.1996787@gmail.com" ]
yinoue.1996787@gmail.com
1a13773ff297844a15f7e945e42116f1f0e93e2b
fdc0c0f38d9a22a8c71e4b4c8f219a46dcd864c7
/ex1.py
6766d023af92159c724f4b20d4ee3042ec90ea02
[]
no_license
Bonanashelby/PythonTheHardWay
634bd3ff4b01964fc599be1defd6507e16cfaa2f
75747f250beac0d4f4004e0fdebba666a5ab76d4
refs/heads/master
2021-01-20T08:53:41.060747
2017-05-03T21:30:43
2017-05-03T21:30:43
90,195,149
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
print "Hello World!" print "Hello Again" print "I like typing this." print "This is fun." print 'Yay! Printing.' print "I'd much rath you 'not'." print 'I "said" do not touch this.'
[ "bonanashelby@gmail.com" ]
bonanashelby@gmail.com
0a9bcfc4715058ab6ac4036a2b44dcff54788dcf
2992fcc732685b6841c2675aef63c6e04cd61259
/open_data/xml/convert_okei_to_json.py
1bfbbe6f4df19765f23c3d5e3a705a1c58fc1fc1
[ "MIT" ]
permissive
sunveil/ZakupkiParser
b1628253d636db3c74039766d9d2225e53c13be1
d7f7750e50db90a5bf0616664dbe2d2189df490f
refs/heads/master
2023-01-11T05:01:17.554381
2020-06-30T17:01:22
2020-06-30T17:01:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
import xmltodict import json with open('xml/data/okei.xml') as fd: data = xmltodict.parse(fd.read()) data = data['ns2:nsiOkei']['ns2:body'] out = [] codes = {} for i in data['ns2:item']: try: temp = {} temp['name'] = i['ns2:nsiOkeiData']['ns2:name'] temp['...
[ "tox.home@ya.ru" ]
tox.home@ya.ru
ef0f468693701496a02abb449e5a879e5efb4c2d
cf69e3d9e5cdabe1e25fadd15ea4493715cd8caf
/bookings/views.py
e6f9fb03d2a4f246e5a4ecd9b266de148b90c8a4
[]
no_license
georgeanthony33/Quest-en-France
85218cac6895a7df9594fa0b03088ccd587eb74c
55931476cc3145bae732b91a100eee41444699a4
refs/heads/master
2023-03-15T17:50:39.477885
2022-01-27T22:25:29
2022-01-27T22:25:29
252,736,453
0
0
null
2023-03-04T16:11:04
2020-04-03T13:14:48
JavaScript
UTF-8
Python
false
false
9,420
py
# pylint: disable=no-member from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.status import HTTP_200_OK, HTTP_404_NOT_FOUND, HTTP_201_CREATED, HTTP_422_UNPROCESSABLE_ENTITY, HTTP_204_NO_CONTENT, HTTP_202_ACCEPTED, HTTP_401_UNAUTHORIZED from rest_framework.permissi...
[ "georgeanthony33@gmail.com" ]
georgeanthony33@gmail.com
aef37705f286e46903ffcd71491000c635addd56
2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5
/archive/531LonelyPixelI.py
85d2ad88ff367da5b050933632ef6d2bb1308b12
[]
no_license
doraemon1293/Leetcode
924b19f840085a80a9e8c0092d340b69aba7a764
48ba21799f63225c104f649c3871444a29ab978a
refs/heads/master
2022-10-01T16:20:07.588092
2022-09-08T02:44:56
2022-09-08T02:44:56
122,086,222
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
913
py
# coding=utf-8 ''' Created on 2017�4�11� @author: Administrator ''' class Solution(object): def findLonelyPixel(self, picture): """ :type picture: List[List[str]] :rtype: int """ if picture: rows = [0] * len(picture) cols = [0] * len(picture[...
[ "yanhuang1293@gmail.com" ]
yanhuang1293@gmail.com
daa9a4137885443683548c1077b46ef672bc3ad2
adc6bfb528a410474aa5967032b572d173c15f6b
/test/__init__.py
ad45b2685cb2edeb1a4db958ab5fa8bf9999ba5b
[]
no_license
millerhooks/pydor
13aa3bff99f88d3a8dd8543e8a3de4be81001791
e8c7a9af42a626d3316079471434b6ce757bfb65
refs/heads/master
2023-01-27T19:50:00.929475
2018-10-02T21:18:26
2018-10-02T21:18:26
151,347,717
0
0
null
2023-01-11T11:21:39
2018-10-03T01:47:43
Python
UTF-8
Python
false
false
17
py
#import api_test
[ "tomas.dohnalek@firma.seznam.cz" ]
tomas.dohnalek@firma.seznam.cz
abc19a89f586d28d24cd2468c387a49113282b1c
03520abb58a66aeed9a556d53e3a21006af02dde
/named_storms/migrations/0079_nsempsa_covered_data_snapshot.py
73c0e3338456b81ae6bf6fe88566507a8f794e9c
[]
no_license
flackdl/cwwed
23ce1d1a5e48a57ee2cb3229860f1b97ccc81636
0a1454897d397cd5e1652643616abe883ccc853b
refs/heads/master
2023-07-21T20:05:35.093270
2023-06-29T15:29:26
2023-06-29T15:29:26
118,942,664
1
0
null
2023-09-12T21:56:59
2018-01-25T17:06:47
Python
UTF-8
Python
false
false
530
py
# Generated by Django 2.2.6 on 2019-10-17 17:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('named_storms', '0078_auto_20191017_1705'), ] operations = [ migrations.AddField( model_name='ns...
[ "flackattack@gmail.com" ]
flackattack@gmail.com
1f52bb23b402ead22c0e51d79040f6549da12792
ac1a38f3b28259ab11caae989a94614c250bbc78
/remove_all_plugins.py
d89594161af9840c480f6e274f72bf4ff5721eec
[]
no_license
eonardol/cordova-phonegap-utils
9f819bc5f0c8ae0a5f1510c569713e47a65e4ddb
b599405be2d00c48fed8f9316cbe62c7e7c7451e
refs/heads/master
2020-07-04T05:47:59.813961
2015-04-17T15:35:51
2015-04-17T15:35:51
25,036,284
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
#!/usr/bin/env python3 import sys, os.path, subprocess stdoutdata = subprocess.getoutput("cordova plugin list") if ("command not found" in stdoutdata): print("cordova not installed :("); sys.exit(1) if ("Current working directory is not a Cordova-based project." in stdoutdata): print("not a cordova project ;("...
[ "eonardol@users.noreply.github.com" ]
eonardol@users.noreply.github.com
bdd60ed37f1b70cbf11c34d6e1db1b4d9f5d6caa
ef0917d016a1a2b60b2ccbb18325eadab37b61a8
/Mplayer_Reproductor.py
8e3074068ccd5aa85d1863d99f949ea05e5a9ca3
[]
no_license
sugar-activities/4355-activity
a8dcab94e01c5e45b78196a69df4391e48263e04
acefbd1ea5eabaf2783326bb1c9e2bd8f4255007
refs/heads/master
2021-01-19T23:14:25.746896
2017-04-21T05:54:35
2017-04-21T05:54:35
88,936,742
0
0
null
null
null
null
UTF-8
Python
false
false
11,529
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Mplayer_Reproductor.py por: # Flavio Danesse <fdanesse@gmail.com> # CeibalJAM! - Uruguay # 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; e...
[ "ignacio@sugarlabs.org" ]
ignacio@sugarlabs.org
a06781d0ec3b9a832a6808fad25b00373a0a8076
094fe32f3144ee03d53df10ae3e8518f372d6b62
/plugin.audio.bbc-radio/addon.py
1604dd4283dfee730d1e5112c7a443b40b068e2d
[]
no_license
PhantomRaspberryBlower/repository.prb-entertainment-pack
0b72ad49b4183c8b45b704295beadf09831f23a3
02e103228ad86aee3d8cef6fac3806c1f3605f45
refs/heads/master
2022-06-19T04:14:07.841398
2022-05-17T09:53:21
2022-05-17T09:53:21
192,784,863
10
3
null
null
null
null
UTF-8
Python
false
false
28,760
py
import xbmcgui import xbmcplugin import xbmcaddon import sys import urllib import datetime import re # Written by: Phantom Raspberry Blower # Date: 21-02-2017 # Description: Addon for listening to BBC Radio live broadcasts # Get addon details __addon_id__ = 'plugin.audio.bbc-radio' __addon__ = xbmcaddon.Addon(id=__a...
[ "jasonbulis@hotmail.com" ]
jasonbulis@hotmail.com
a5c3f6f93d1f5122a502c4bff3c84593cf568c96
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/2402.py
f7e5ebea73232aadb5a3d4e17099e09452301ea6
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
def increment_by_value(d, l, index, value): if index in d: d[index] += value else: d[index] = value l.append(index) l.sort() def occupy(s): num_stalls, num_people = [int(x) for x in s.split(" ")] free, free_index = dict(), [] free[num_stalls] = 1 free_index.appe...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8bae06f64d5c41a7bd5029e336b494470d51175c
aa6f28c0448a0363e307d04646c159471463b355
/counties.py
77da9948d6d8accd259d1f055c0a2c6abe72b75b
[]
no_license
Annikaking00/MathematicalElectionAnalysis
d1e4ca56841b3c224c752692ca22c81cd72530c3
08b4c059deba137870fab2a4975a42d535f08f6b
refs/heads/master
2022-11-28T21:30:39.090764
2020-07-24T18:51:19
2020-07-24T18:51:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,756
py
# Import necessary packages from gerrychain import (GeographicPartition, Partition, Graph) import numpy as np utah_counties = {1: "Beaver", 2: "Box Elder", 3: "Cache", 4: "Carbon", 5: "Daggett", 6: "Davis", 7: "Duchesne", 8: "Emery", ...
[ "jwmurri@byu.edu" ]
jwmurri@byu.edu
b09d2c84b36ef30c97f1bc81ce017ce57b4ec3d9
7f863ca7ed47981f69e42fc1add75ba4acad921a
/code-lab/DSA - Long Hike(Fractional Knapsack).py
f4d12e06067fcbb5aa404a68e6bcd836d7d613b3
[ "CC0-1.0" ]
permissive
Nahid-Hassan/fullstack-software-development
e9f920be9a999c78f156e6102683b93a50c4e597
892ffb33e46795061ea63378279a6469de317b1a
refs/heads/main
2023-08-19T14:16:57.801056
2021-09-29T15:34:35
2021-09-29T15:34:35
376,595,866
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
weights = 1 weights_values = [(14, 2), (20, 4), (18, 3)] def knapsack_slow(weights_values, weights): values_by_weights = [(x / y, y) for x, y in weights_values] values_by_weights.sort(reverse=True) # print(values_by_weights) print(values_by_weights) bags = [] for i in range(len(values_by_wei...
[ "nahid.cseru@gmail.com" ]
nahid.cseru@gmail.com
8d38501c599a8b003dba0f29e201972499e35da8
1729d77c13453c91968c7a63892c6074566f9394
/product.py
4e85f6bb1419da155e527901785ee40af2d25015
[]
no_license
Mickho/product
8bc9355c77c227fa1f35afb513f26d9552105625
8c1807f9d803256311a4700694e4cce01dd73737
refs/heads/master
2020-04-18T02:58:01.569085
2019-01-23T14:17:02
2019-01-23T14:17:02
167,182,321
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
products = [] while True: name = input('請輸入商品名稱:') if name == 'q': break price = input('請輸入商品價格:') p = [] # 你可以用 products.append([name, price]) p.append(name)#取代以下四行 把小清單裝進大清單 p.append(price) products.append(p) print(products)# products[0][0]#將大清單的第一個數字取出再取出小清單的第一個數字 print(products[0][1]) for p in products: ...
[ "mick.my.ho@gmail.com" ]
mick.my.ho@gmail.com
a48a82623d06441277cb384655f5746f481b1a6a
f9d17399ba4d366085c1eef078ce3b6a7e00322e
/posts/models.py
ec3252297513569538bea2b0ffc7437f187dc736
[]
no_license
lechen614/test_taggit
5a32089c34625aa73c554acb5d0cc795a1271b8b
c1c8725875b6455989d02cfec8e28697bb1e73f1
refs/heads/master
2021-09-25T04:50:09.028580
2020-04-02T22:38:59
2020-04-02T22:38:59
252,580,114
0
0
null
2021-09-22T18:53:19
2020-04-02T22:39:47
JavaScript
UTF-8
Python
false
false
365
py
from django.db import models from taggit.managers import TaggableManager class Post(models.Model): title = models.CharField(max_length=250) body = models.TextField() created_on = models.DateField(auto_now_add=True) slug = models.SlugField(unique=True, max_length=100) tags = TaggableManager() ...
[ "lechen614@gmail.com" ]
lechen614@gmail.com
fae2b2d18a21dbc203ec4fb792faef89a06acefb
71cd90793b3a409cea5de1abfcbe665cb1e7e754
/Project8/app8/forms.py
d76e37a84a27367326e22eb389f0d488a98ef243
[]
no_license
SyedShahzad1162/syed
81b9717e98531d5a7b794bcc2409c3387633767b
a50d53c264309522b1063fe265f45c45808263b3
refs/heads/master
2020-09-20T02:09:03.044013
2019-11-27T05:45:14
2019-11-27T05:45:14
224,353,224
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from django import forms from .models import EmployeeModel class EmployeeForm(forms.ModelForm): class Meta: model = EmployeeModel fields = "__all__"
[ "57654741+SyedShahzad1162@users.noreply.github.com" ]
57654741+SyedShahzad1162@users.noreply.github.com
c82435c26871d260aac691e66a99d04e0c494cb1
95735e513af2d56fbc1d971b65f6181f43232b62
/callmail_project/media/attachments/models.py
9b5d4db8d618ca792883efcc0805159098bbb27a
[ "MIT" ]
permissive
q8groups/callnmail
c0d8afab18aec5c4a99eef9e09ec239d8d3dbaed
e3f4c01050bee1442545c8e82eba3fb1efb5b3ed
refs/heads/master
2021-01-20T10:49:49.080812
2016-03-05T17:30:13
2016-03-05T17:30:13
29,821,685
0
0
null
null
null
null
UTF-8
Python
false
false
768
py
import os from django.db import models from django.contrib.auth.models import User class Mail(models.Model): user = models.ForeignKey(User) from_user = models.EmailField() to_user = models.EmailField() subject = models.CharField(max_length=255, blank=True, null=True) body = models.TextField(blank...
[ "ubuntu@ip-172-31-1-171.eu-west-1.compute.internal" ]
ubuntu@ip-172-31-1-171.eu-west-1.compute.internal
b959b2bb3ca5dd725b5a193fc0f21f9d5e7bd685
9d7d2c257d30b5dce45116f31bd803691a2a1a2d
/raidfinder/frames/xoro_shiro.py
a9c0f4e41f7c00eb08914287e4ded7fd759a6dfc
[ "MIT" ]
permissive
cottonmalone/raid-finder-bot
e413f00a59040e9509b9c1396cbcd25fc023105f
e39cd94bdd416ea9b4cd344ed4cebc9751b14149
refs/heads/master
2021-07-01T23:39:09.971736
2020-02-18T14:56:00
2020-02-18T14:56:00
240,857,317
0
0
MIT
2021-06-11T18:01:39
2020-02-16T08:32:08
Python
UTF-8
Python
false
false
914
py
import sys S1 = 0x82A2B175229D6A5B MAX_INT = 0xFFFFFFFFFFFFFFFF def rotl(x, k): return ((x << k) | (x >> (64 - k))) & MAX_INT class XoroShiro: def __init__(self, seed): self.s0 = seed self.s1 = S1 def next(self): result = (self.s0 + self.s1) & MAX_INT self.s1 ^= self.s...
[ "cotton.malone@mail.com" ]
cotton.malone@mail.com
51461f3351458fdc755f94a8d07918c66f393506
4b258823918de3e580a1331ba92fc5468d9af21b
/fidu/fidu/middlewares.py
0389210ea5e9243df12e764650a1ae28536f2e5f
[]
no_license
ivanieves/env
519c0a67a145d1abd02858fd29f7a879b9f2f228
5def3155dd4652e3807327767c2dc8e63ddf3ff5
refs/heads/master
2020-08-01T15:05:12.899386
2019-09-26T10:12:16
2019-09-26T10:12:16
211,027,842
1
0
null
null
null
null
UTF-8
Python
false
false
3,593
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class FiduSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy ac...
[ "ia.nieves2230@uniandes.edu.co" ]
ia.nieves2230@uniandes.edu.co
cfbf28112e456f0999b8c8dc64ea310f31fb5227
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/pirates/leveleditor/worldData/del_fuego_building_int_tattoo.py
615b94089f0e48bcfbf591d8fc665740418ee377
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
3,540
py
from pandac.PandaModules import Point3, VBase3, Vec4 objectStruct = { 'Objects': { '1153434880.63dzlu0': { 'Type': 'Building Interior', 'Name': '', 'AdditionalData': [ 'interior_spanish_store_tattoo'], 'Instanced': True, 'Objects': ...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
093e5e2ad83270199e605e12b7c5f8296b43bc2c
d850772af41ccb06b934cd0d6bdca8ffc706cdf4
/run/vis_evalgen.py
2d9bdd5af8b2bb233f912f0da33499f7a7148718
[ "MIT" ]
permissive
yamad07/vjvae
b8f15877c4e534c93a73966c7204446dcc254672
dd8d6607f5ec6c46df1794f903b42aee890d970b
refs/heads/master
2022-08-06T23:40:38.885699
2020-05-31T23:25:38
2020-05-31T23:25:38
264,443,189
0
0
null
null
null
null
UTF-8
Python
false
false
5,056
py
import sys, os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import json, logging import numpy as np import tensorflow as tf from collections import defaultdict, OrderedDict from sklearn.cluster import KMeans from data import * from utils.analysis import * from utils.experiments impo...
[ "work@personads.me" ]
work@personads.me
094fe75ca64a9117c1ea25f9283dba2b9d8013fa
550065648feec8b0525c2a61c3cce4509b0eaa24
/app/schemas/__init__.py
f27f58e692b3381f3e25b726ff0ea398de574f51
[]
no_license
springionic/flask-template
309fccb5a038ae6d70d2d850d9f1da8ac507a944
350ad3269a93df8b50f3cc7f92578fe85b25518a
refs/heads/master
2021-07-08T02:40:13.522739
2020-02-24T10:05:29
2020-02-24T10:05:29
228,383,158
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
# -*- coding: utf-8 -*- # created by lilei on 2019/11/10
[ "lei.li@longleding.com" ]
lei.li@longleding.com
e8e3284f06acb25496c816932d828b9e6ed1c842
1993376f454fc25ed0d21938c1f0b9c2751c4517
/gpim/gpbayes/acqfunc.py
9febfa088d3426fa70c7a8230212b1fff3a875dc
[ "MIT" ]
permissive
ziatdinovmax/GPim
1d1c62cce4b0e44a4f4e6c828817333f374ac7d8
022f8240b6b0c1b283d38d4d72fb30a567ec0f6a
refs/heads/master
2023-05-10T20:23:29.178073
2022-08-17T23:55:58
2022-08-17T23:55:58
241,448,693
53
12
MIT
2021-05-08T21:17:23
2020-02-18T19:28:27
Python
UTF-8
Python
false
false
2,598
py
''' acqfunc.py ====== Acquisition functions ''' import numpy as np from scipy.stats import norm def confidence_bound(gpmodel, X_full, **kwargs): """ Confidence bound acquisition function (a modification of upper confidence bound) Args: gpmodel (gpim reconstructor object): Surroga...
[ "ziatdinovmax@gmail.com" ]
ziatdinovmax@gmail.com
78e251a245f2d2874cde70667cda12212403b642
e32ee62a3db47f46618b08940c3d5eed29676a6c
/kola2.py
251ace050890ec070857d7beb17bdf46f6751621
[]
no_license
ATomkowiak/Milionerzy
25b49aa8ed661023d44958229c92cb055027d18e
26a7b4c3f1b12cd0e081f70c24eae8af7e4a4d1f
refs/heads/master
2020-05-25T23:31:37.818454
2019-06-12T11:23:10
2019-06-12T11:23:10
188,036,226
0
0
null
2019-06-12T11:23:11
2019-05-22T12:40:17
Python
UTF-8
Python
false
false
9,279
py
import random import time uzycie= [] #### zmienna która zapisuje użyte koła def fifty(Pytania): ####funkcja pozwala na użycie koła ratunkowego pół na pół w grze milionerzyself. #### Usuwa ona 2 losowo wybrane błędne odpowiedzi i wyświetla jedną błędną i jedną prawidłową ułatwiając wybór graczowiself. #### ...
[ "50331900+ATomkowiak@users.noreply.github.com" ]
50331900+ATomkowiak@users.noreply.github.com
6d0af6e60b4a6f03950d4d6c993e137e440c9a69
b73f0efbafab231b6df81bbed962b84609f1a92d
/Graph/BFS.py
ed9d5d72a8327be203f10c6a2855af54fc71a52d
[]
no_license
laits1/Algorithm
69a4f55b5317362fdbba6f6c8a1c8d2ded3234cd
976123f31e71578048f2738bf0f807b723d30d46
refs/heads/master
2023-06-26T08:27:13.317966
2021-07-31T08:03:16
2021-07-31T08:03:16
389,960,493
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
# BFS(Breadth-First Search) # BFS는 너비 우선 탐색이라고도 부르며, 그래프에서 가까운 노드부터 우선적으로 탐색하는 알고리즘 # BFS는 큐 자료구조를 이용 # 1. 탐색 시작 노드를 큐에 삽입하고 방문 처리 # 2. 큐에서 노드를 꺼낸 뒤에 해당 노드의 인접 노드 중에서 방문하지 않은 모든 노드를 모두 큐에 삽입하고 방문 ㄴ처리 # 3. 더 이상 2번의 과정을 수행할 수 없을때까지 방복 from collections import deque # BFS 메서드 정의 def bfs(graph, start, visited): # 큐(Qu...
[ "thsehdrl1@gmail.com" ]
thsehdrl1@gmail.com
04a2cdcdfedb4854f4b01a254dfe883f0ffe642e
83a63ce2d9b7f8148589c44f1d1085a9c80682fc
/yewu/jiekou/select_myselfsongs.py
20c88ede0df5b364e67e740e9b28d850607cf5d0
[]
no_license
lijiajing068/requests_test
1f21c8e9245830a55e4a0d13d28a0b6bf52c0b67
eecef45c7cdae45d0962691d87bdcb29d5f38eb5
refs/heads/master
2022-12-11T03:48:36.714351
2020-09-07T07:06:03
2020-09-07T07:06:03
292,235,769
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
import unittest import requests from yewu.common.Common_old import encrypted_request,basic_data_headers #from wangyi_login import LoginTest class SelectSongs(unittest.TestCase): def test_select_songs(self,uid="1541194463"): #self.id=LoginTest.test_login_success() #print(self.id) #uid为登录后返回的用...
[ "863667546@qq.com" ]
863667546@qq.com
8da58df298c3f417894362409649e16ba045b26b
11806ceb316950e41725f8acb2d7e5ecea6036a1
/biomass/core.py
fb61327fbf5acde1d04b4780683f21c215b7631e
[ "Apache-2.0" ]
permissive
TrendingTechnology/biomass
82cb65892c467cc236ce212caa9ff21cc9812e22
2e2b262f6d99834d2d1b44a1304fcf5395b566ef
refs/heads/master
2023-05-28T03:50:38.016708
2021-06-01T04:40:23
2021-06-01T04:40:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,116
py
"""BioMASS core functions""" import multiprocessing import os from dataclasses import dataclass from importlib import import_module from pathlib import Path from typing import Any, Optional from .analysis import InitialConditionSensitivity, ParameterSensitivity, ReactionSensitivity from .dynamics import SignalingSyste...
[ "31299606+himoto@users.noreply.github.com" ]
31299606+himoto@users.noreply.github.com
a8ba2d5c8302ea20dac6cf2c653d709d5b012a3b
c35d5713b9991efeb0f8a2665c91c74127138594
/bufferbloat.py
4e0431721722d6c7a93a6b3fc70e29396676f8fa
[]
no_license
vs9390/bufferbloat
70849c13f24e0f7744a7852e8ed838a6235dbd0f
cc5341b5f0c0f835e6ec2e3d536abd2d80a5b096
refs/heads/master
2020-04-21T14:16:58.228215
2019-02-07T19:30:32
2019-02-07T19:30:32
169,629,667
0
0
null
null
null
null
UTF-8
Python
false
false
5,038
py
#!/usr/bin/python "CS144 In-class exercise: Buffer Bloat" from mininet.topo import Topo from mininet.node import CPULimitedHost from mininet.link import TCLink from mininet.net import Mininet from mininet.node import RemoteController from mininet.log import lg, info from mininet.util import dumpNodeConnections from m...
[ "None" ]
None
cef01c74e4fcbe916281d218603e31553bacbd68
cd8e76903791017074bdfffa988cb76bafa77463
/pylib/chroot.py
d3d561d869d402e088b17a5095bff4f61be4907d
[]
no_license
JedMeister/turnkey-pylib-deb
d5025c9ff2e3a538428779a3bcb77355b1023ddc
0b470866e147e33bfbdfde100d1f27e9069eefd7
refs/heads/master
2016-09-05T17:52:44.198040
2014-11-07T00:26:46
2014-11-07T00:26:46
26,295,652
1
0
null
null
null
null
UTF-8
Python
false
false
2,637
py
# Copyright (c) 2008 Liraz Siri <liraz@turnkeylinux.org> # # This file is part of turnkey-pylib. # # turnkey-pylib is open source 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 3 of the # License, or (...
[ "jeremy@turnkeylinux.org" ]
jeremy@turnkeylinux.org
32c535d570b560fb223b6df5cef4f2c1fbca5d69
9078857ba924021a5bed634d395528c5d884fcdf
/11047.py
721646a826f0c1fad3404979aed3a435542f6489
[]
no_license
yujinHan97/Algorithm-Study
26ab4e565d071133c15f98eb912524f435e04c53
31d27391f1ad3b6f16c2ba79ab1d680c5b3bc650
refs/heads/master
2023-06-18T09:52:25.999567
2021-07-16T15:08:52
2021-07-16T15:08:52
336,694,933
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
''' 11047 동전 0 알고리즘: 1. 동전의 종류(A_list)를 내림차순으로 정렬 2. A_list를 K와 비교하면서 가장 가까운 종류를 찾기 3. 가장 가까운 종류를 나눈 몫만큼 count횟수 더하고, K에서 그 돈만큼 빼는 과정 반복 ''' import sys N, K = map(int, input().split()) A_list = [] count = 0 for i in range(N): A_list.append(int(sys.stdin.readline())) A_list.sort(reverse = True) ...
[ "dbwlslek97@gmail.com" ]
dbwlslek97@gmail.com
cf38d83b92adeb028ec0a5e36ef6ed766d954ac0
0e4d09b2a1b93aaa6d623d16905854d993a934ae
/Python/Django/surprise_me/surprise_me/settings.py
f424efc942cbefeba7f250e60cd038b1cc08d43a
[]
no_license
freefaller69/DojoAssignments
ee7f6308b02041be3244f795422e0e044d4a41b2
f40426ac448026c1172048665f36024ad22f0d81
refs/heads/master
2021-01-17T10:23:39.419514
2017-07-25T00:50:41
2017-07-25T00:50:41
84,012,790
0
1
null
null
null
null
UTF-8
Python
false
false
3,253
py
""" Django settings for surprise_me project. Generated by 'django-admin startproject' using Django 1.11.1. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ ...
[ "freefaller@gmail.com" ]
freefaller@gmail.com
2c59afbc1741ce1c16e5814c3f1f44ec34556c6a
d2d15f262dabda5fb2e851c5e11a35c37f1e4935
/elements/urls.py
3017d9c070585c22b978a64ab45c51306bad1781
[ "MIT" ]
permissive
Kipok/science-map
824e5ed0ced9052bfc0b0041e3694597336999cc
36d06580392780dc08d983868495ee212c8127ae
refs/heads/master
2021-06-10T10:48:17.701758
2019-10-27T10:11:11
2019-10-27T10:11:11
120,179,426
1
0
null
null
null
null
UTF-8
Python
false
false
635
py
from django.urls import path from . import views app_name = 'elements' urlpatterns = [ path('paper/<int:paper_id>/', views.paper_view, name='paper'), path('method/<int:method_id>/', views.method_view, name='method'), path('dataset/<int:dataset_id>/', views.dataset_view, name='dataset'), path('metric/<int:metri...
[ "ivypawn@gmail.com" ]
ivypawn@gmail.com
9ec56eaa7c9e3aa5e82ca68b0ea6bbed4c7e90c8
6bef61d7cb848bda73506992839b3e0990c0207c
/HW4/market_simulator_for_hw4.py
ac75b9a3cda7f21c2a7f754502a21daae7d6520c
[]
no_license
rchenmit/ML4T_coursera
522c6ef4d98f4a1eb8863535890c6ead74ac4447
1206aa146b95bd8c45e50fb886aecdb330d3b4ef
refs/heads/master
2021-01-17T11:20:33.534632
2015-10-06T20:39:03
2015-10-06T20:39:03
14,269,740
3
4
null
null
null
null
UTF-8
Python
false
false
5,618
py
## computational investing 1 - HW4 ## market simulator -- events output will be fed into here ## edited by rchen - Nov 6, 2013 import pandas as pd import numpy as np import math import copy import csv import scipy as s import sys import QSTK.qstkutil.qsdateutil as du import datetime as dt import QSTK.qstkutil.DataAcc...
[ "thinkpad@linuxmint.linuxmint-domain" ]
thinkpad@linuxmint.linuxmint-domain
39d73adac36ee04742368f02e560a675ce46567d
143289266147aec234dc6d202fc1efc9e30cd782
/TestCase/login_test.py
95b1f3814090e53d7512f601cedef370ad2c67d5
[]
no_license
nijinrong/api-test
ad32a04829916d8fcfc821f5d8dda0053d119935
98a0cb7063185ca2e7c3dab328b9c3276935ba7d
refs/heads/master
2022-12-10T05:22:34.257735
2019-04-24T09:50:05
2019-04-24T09:50:05
183,135,126
0
0
null
2022-12-08T05:01:15
2019-04-24T02:51:52
Python
UTF-8
Python
false
false
2,870
py
from Common import Request,Assert,read_excel import allure import pytest request = Request.Request() assertion = Assert.Assertions() idsList=[] excel_list = read_excel.read_excel_list('./document/test.xlsx') length = len(excel_list) for i in range(length): idsList.append(excel_list[i].pop()) url = 'http://192...
[ "nijinrong1998@163.com" ]
nijinrong1998@163.com
6edc0f2baab7ec5c405ac371a643b44914f76e20
2a5f238353c223bd283178b503a3a02f6edae797
/posts/migrations/0004_post_image_path.py
9d081ce0aa3fd6dee0b0e3f5f52550720de9c751
[]
no_license
eleanor107/blog
97619c6bd2fdd62e6313772d52c14c119b357c80
7c2df3e9da3694135722112eb1acdb57284a4988
refs/heads/master
2016-08-11T08:16:27.120604
2016-04-02T05:05:10
2016-04-02T05:05:10
55,199,491
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-04-01 02:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0003_auto_20160330_0705'), ] operations = [ migrations.AddField( ...
[ "eleanorlee@dyn-129-236-212-164.dyn.columbia.edu" ]
eleanorlee@dyn-129-236-212-164.dyn.columbia.edu
cf7a5c949b145a86634b083e8acd0620cef804a3
de4817e9c0f16283c4c6f9dcec3a0c36f49adf0f
/pytest_cases/plugin.py
b79d808e778403f49ecb8187fb7308ad67041226
[ "BSD-3-Clause" ]
permissive
yashtodi94/python-pytest-cases
3422cd4f399543b5add22d8631980b20bb92d68a
81bd5b3d2a7b358e8d9f97dae77654f6bc9c7999
refs/heads/master
2020-06-27T18:22:06.798892
2019-07-31T07:40:56
2019-07-31T07:40:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
42,492
py
from collections import OrderedDict, namedtuple from copy import copy from distutils.version import LooseVersion from warnings import warn from functools import partial import pytest from pytest_cases.common import get_pytest_nodeid, get_pytest_function_scopenum, \ is_function_node, get_param_names, get_pytest_s...
[ "sylvain.marie@se.com" ]
sylvain.marie@se.com
43af2e968300ab8273b4d068ebb206c0c17f8970
99af66869aad4d4baabb60d18f5b3e955e60920c
/pt28bak/get.py
065eec943ab0daadca873d9db2c26c70fdb68ab0
[]
no_license
zj008/pro28bak
3abfd0600ce4223952541c01e88c097f9312a453
cccbcbcfca0e5fe0329e44528d026df1c9be2b9f
refs/heads/master
2022-08-22T19:24:46.956982
2020-05-21T10:10:28
2020-05-21T10:10:28
265,805,738
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
from db import Sql from datetime import datetime def get_now_data(t): sql = Sql() ret = sql.execute(f"select id, alg0, alg1, alg2, alg3, alg4, alg5, alg6, alg7, alg8 from pt_{t} order by id desc limit 1") ret = ret[0][0] id = ret[0] data = dict( id=id, alg0=ret[1], alg1=ret...
[ "13864264792@163.com" ]
13864264792@163.com
4d97fad9266a037d603b5a43d20dff72f6a5cdfc
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/PORMain/pirates/shipparts/WheelInteractive.py
ac3fc5be3f7f39bac48476e6aa630f9acf8c2189
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
620
py
from pirates.interact.SimpleInteractive import SimpleInteractive from pirates.piratesbase import PLocalizer class WheelInteractive(SimpleInteractive): def __init__(self, ship): self.ship = ship wheel = ship.model.locators.find('**/location_wheel') if not wheel: wheel = ship.mod...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
169801635325e499f566e3cf87e34c42139d7254
507b5f8409e8b7420f0d4c8192e8cfd12a210886
/src/sdss_prediction.py
223e675669f657e1e899c6c49f5bd10ec6d8aaff
[ "MIT" ]
permissive
ronaldpereira/galaxy-cluster-prediction
7822eb43c9b96e32e3ef416e69364ea17cc50bae
21117efbee60c924c814d2ae770df77898567364
refs/heads/master
2023-04-08T04:37:07.721657
2022-11-21T23:57:06
2022-11-21T23:57:06
157,046,719
0
0
MIT
2023-03-25T01:56:26
2018-11-11T04:20:06
Python
UTF-8
Python
false
false
843
py
import pandas as pd from sklearn.model_selection import train_test_split import libs.arg_parse_config as APC import libs.data_preprocessing as DP import libs.neural_network as NN import warnings warnings.filterwarnings('ignore') args = APC.parser() sdss = pd.read_csv(args.input_path) data_prep = DP.DataPreprocessi...
[ "ronald.drp11@gmail.com" ]
ronald.drp11@gmail.com
8a3ab9a44123fb4b8c27b04b394e1d4dd75d366f
6d686e24d9fe716b999d6987bfeb612a527242c7
/RunTrainedModels.py
9f2a12bed9ea26aa5af94c77bc51e47956c391a2
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
seattlefella/cnnMNIST
2180bbbe2da238d868963aaf7ac75ccd18240bd0
85418951a8bf8f42d5f7b92fc0cdff63f4b532d0
refs/heads/master
2021-04-06T04:21:49.639313
2018-03-12T01:48:02
2018-03-12T01:48:02
124,818,611
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
""" See extensive documentation at https://www.tensorflow.org/get_started/mnist/beginners """ # Directives needed by tensorFlow from __future__ import absolute_import from __future__ import division from __future__ import print_function # Some misc. libraries that are useful import keras.backend as K from keras.mode...
[ "Seattlefella@ymail.com" ]
Seattlefella@ymail.com
97149269400558d93a4ef6ec0d73377a66d2b056
4bd555bc662b8182a2e7644976bfdb00ed5e1ebe
/PythonistaAppTemplate/PythonistaKit.framework/pylib/encodings/base64_codec.py
731c567665b73aafb55074d0d5ffc115ec9270e3
[]
no_license
fhelmli/homeNOWG2
a103df1ef97194dec9501dbda87ec1f7c111fb4a
e794fd87b296544542fd9dc7ac94c981c6312419
refs/heads/master
2020-04-04T13:40:20.417769
2019-01-30T21:41:04
2019-01-30T21:41:04
155,970,686
0
0
null
null
null
null
UTF-8
Python
false
false
10,227
py
#\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo ...
[ "tberk@gmx.at" ]
tberk@gmx.at
84935feeafc9305a180a4cda5d4038dc1716fe2c
a9976ab3959491a9f08a4c43e95aef80cb0d8332
/ddpg.py
96e1c370b9992f36eff1a873c9b87a75af2e1d3d
[]
no_license
jemdiggity/RL-Quadcopter-2
aecf63f7dc484e6c1893ae5dd3ecbd9d4b18c16c
12f03811409a4eaf426d8cbc67e08e08b89d4fbb
refs/heads/master
2020-03-26T09:39:16.466275
2018-09-29T04:27:18
2018-09-29T04:34:28
144,757,300
0
0
null
null
null
null
UTF-8
Python
false
false
16,321
py
""" Implementation of DDPG - Deep Deterministic Policy Gradient Algorithm and hyperparameter details can be found here: http://arxiv.org/pdf/1509.02971v2.pdf The algorithm is tested on the Pendulum-v0 OpenAI gym task and developed with tflearn + Tensorflow Author: Patrick Emami """ import tensorflow as tf import...
[ "jeremy.hale@gmail.com" ]
jeremy.hale@gmail.com
10ef75e8ab159bfb954c98b309c7a3446da4659f
bce02a632920b36a9fcaae35689743d9a54ea47f
/aboutdialog.py
c2969d932ecb4113c2730fa11d8c56034dda47cb
[]
no_license
alexbruy/mergeshapes
17add9cd2d05c037fb84ed4dc3312e0980c2a1e8
90d82864d9ca16e44bade18d8d7db9a89f2d60be
refs/heads/master
2021-01-01T06:26:38.374255
2018-06-25T07:55:49
2018-06-25T07:55:49
11,588,825
0
5
null
2018-06-25T08:00:13
2013-07-22T18:29:00
Python
UTF-8
Python
false
false
3,152
py
# -*- coding: utf-8 -*- #****************************************************************************** # # MergeShapes # --------------------------------------------------------- # Merge multiple shapefiles to a single shapefile # # Copyright (C) 2010-2013 Alexander Bruy (alexander.bruy@gmail.com) # # This source is ...
[ "alexander.bruy@gmail.com" ]
alexander.bruy@gmail.com
781728cd41d7b2d6039a59dec118afaea02aea57
df3e3e937e85ae03bc6714bf9aa487d9338d44fd
/mpmp/exceptions.py
feb76e4c5975c4adf3db8b9f293ccc2c91ce9877
[ "BSD-3-Clause" ]
permissive
mayala1925/mpmp
9a6b4be43f9bc29874e9c0cdfa0866d70b61263c
7bd4d49e4acd745447dc0018ac121d1a45e8bfbc
refs/heads/master
2023-08-16T13:23:08.019630
2021-10-13T23:09:07
2021-10-13T23:09:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,675
py
""" Exceptions specific to pan-cancer prediction experiments """ class ResultsFileExistsError(Exception): """ Custom exception to raise when the results file already exists for the given gene and cancer type. This allows calling scripts to choose how to handle this case (e.g. to print an error mes...
[ "jjc2718@gmail.com" ]
jjc2718@gmail.com
e2941e8af32e3746da3b3738713033ba63d61872
df197ff998c3f18276ff447aba859eb546eb866e
/Allegro/allegro/allegro/spiders/AllegroSpider.py
e3daee80f488f54553402b4dd82c29561eb69b21
[]
no_license
Ferbes/Webscrapper
d163190c58f8771a72b715098e9dfede68ca4713
ad891140e6dbf8da415a9fabb55b837b7c2d9c0e
refs/heads/master
2021-01-18T22:55:54.973695
2016-06-17T21:27:57
2016-06-17T21:27:57
54,018,212
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
import scrapy from scrapy.spiders import SitemapSpider from scrapy.selector import Selector from scrapy.exceptions import DropItem from allegro.items import AllegroItem class AllegroSpider(SitemapSpider): name = 'allegro-spider' allowed_domains = ['allegro.pl'] sitemap_urls = ['http://allegro.pl/robots....
[ "konrad.ferbes@gmail.com" ]
konrad.ferbes@gmail.com
8fda8333924bdd0b3d4d4a1fc03469652dc5986d
df823d33423d37251c49b4be12ee022170138071
/python/mycurses.py
198e2605f0b0559ffdd2ed3200c896e81e5f5c89
[]
no_license
von/sandbox
ca2a87870f0f5e3153cb33fd940f1b4cb9da7985
5e47e93c32bc85f986f39b1d4df8a384c7ff0019
refs/heads/main
2023-04-30T02:14:36.466490
2023-04-18T14:11:54
2023-04-18T14:11:54
331,739
4
1
null
null
null
null
UTF-8
Python
false
false
722
py
#!/usr/bin/env python3 import curses import os def main(stdscr): win1 = curses.newwin(3, 30, 2,0) win1.border() win2 = curses.newwin(10, 30, 10,0) win2.border() stdscr.addstr(0,0, "Testing...") win1.addstr(0,0, "Foobar") win2.addstr(0,0, "I win") stdscr.refresh() win1.refresh() ...
[ "von@vwelch.com" ]
von@vwelch.com
2bc1432323a455395c7e8d97b4f3896a33278eb9
c1c00ced90d47b9425fa11b6e0e5148a26a70085
/tests/test_cli.py
d3438f75559b5b4993b1f8da97e7d6b0531eb024
[ "MIT" ]
permissive
destos/Patterner
a8e90e30f0f2ca9411beb39e4cb8ef9e25fedc23
3e32468e843ec817b94da9df543c891ca69927fc
refs/heads/master
2020-04-25T14:44:23.872391
2019-02-27T05:50:01
2019-02-27T05:50:01
172,852,064
3
1
null
null
null
null
UTF-8
Python
false
false
718
py
"""Sample integration test module using pytest-describe and expecter.""" # pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned import pytest from click.testing import CliRunner from expecter import expect from patterner.cli import main @pytest.fixture def runner(): return CliRunner() ...
[ "patrick@forringer.com" ]
patrick@forringer.com
6c8747ad2ed115b2787072a342e14f0d14836005
f35bf19264008cf5e48b3d512a13eee643320293
/python及爬虫/初级爬虫实例/BasedOnTheCrawler/HtmlParser.py
97f8e544f6bf83daac2d6e75927c36c0f56e9f4d
[]
no_license
1446373769/NewCode
12b2be96e9efe275d39091bd2f84341dea6c3775
314b2cd85c66bf7f682418459ca436e82c3488f5
refs/heads/master
2020-05-09T22:53:46.474404
2019-04-15T14:06:17
2019-04-15T14:06:17
148,277,577
0
0
null
null
null
null
UTF-8
Python
false
false
1,774
py
import re from urllib.parse import urlparse from urllib.parse import urljoin from bs4 import BeautifulSoup class HtmlParser(object): def parser(self,page_url,html_cont): '''用于解析网页内容,抽取url和数据 :param page_url:下载页面的url :param html_cont:下载的网页内容 :return:返回url和数据 ''' if ...
[ "1446373769@qq.com" ]
1446373769@qq.com
184b601a9277e7e6f8aa27a0c38c389b529ad172
59b3dce3c770e70b2406cc1dd623a2b1f68b8394
/python_3/lessons/Timing_Computations/src/ count_thirtyone_days.py
682d87d1e84181941930cc296f2428ddc1f00032
[]
no_license
patrickbeeson/python-classes
04ed7b54fc4e1152a191eeb35d42adc214b08e39
b5041e71badd1ca2c013828e3b2910fb02e9728f
refs/heads/master
2020-05-20T07:17:36.693960
2015-01-23T14:41:46
2015-01-23T14:41:46
29,736,517
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
from datetime import datetime, timedelta now = datetime.now() delta = timedelta(31) delivery = now + delta print("Today: %s" % now.strftime("%d")) print("Delivery: %s" % delivery.strftime("%d"))
[ "patrickbeeson@gmail.com" ]
patrickbeeson@gmail.com
7581ff553d9d2380b9a3fa8d04bc19aa2433dd6d
664c3ced94ab0e9a5bac547028db59a3ca1f2074
/10. Use classes to create active objects /EG10-07 Time Tracker with exception handler.py
6ab5ddc9eaa23b6a53954e815d434c237f056033
[ "MIT" ]
permissive
nikcbg/Begin-to-Code-with-Python
2b1283a7818e26d3471677b51d1832cde52c4ddc
a72fdf18ca15f564be895c6394a91afc75fc3e2c
refs/heads/master
2021-06-23T23:09:36.009442
2021-06-23T11:17:24
2021-06-23T11:17:24
209,285,197
0
0
MIT
2021-03-17T07:48:09
2019-09-18T10:50:51
Python
UTF-8
Python
false
false
6,121
py
# EG10-07 Time Tracker with exception handler import pickle from BTCInput import * # Create the contact class class Contact: min_session_length = 0.5 max_session_length = 3.5 @staticmethod def validate_session_length(session_length): ''' Validates a session length and retur...
[ "nkcbg@yahoo.com" ]
nkcbg@yahoo.com
b9c8c3198ea3b91ca79b7666122aeba124f8d46b
8be217fe977aa0bcd9e375c75b0fb522f5bf0101
/mergetwosortedlists21.py
0065e807191a8350423dd2e81ae12019e30106ab
[]
no_license
blueones/LeetcodePractices
c63a5e773bebea17e988e8bb4962e012d7d402ba
194375ba0c07e420f420aafec98aede2f9f5d8fa
refs/heads/master
2021-07-14T14:21:55.389334
2021-01-24T22:13:21
2021-01-24T22:13:21
230,814,709
0
1
null
2020-02-25T02:58:04
2019-12-29T23:18:25
Python
UTF-8
Python
false
false
947
py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: beforeN = ListNode(0) dummyN = beforeN if l1 == None and l2 == None: ret...
[ "yiq.shang@gmail.com" ]
yiq.shang@gmail.com
c34bf188a265f8034da6248364ca612ac567b648
2c906d9728ca9a0c61fb3abbe5d49d5889abb7cb
/Experiments/Tools/convert_ascii_to_qscore.py
05f5215a8189bb94e6a68a970ad559301bd43b95
[]
no_license
si-medbif/FastFASTQTransfer
7d9d56cbe0975947a22d7b598c1149b973123f26
22404557f63e39c373a391a7b180f6929ee0d23d
refs/heads/master
2023-05-04T20:42:07.557599
2021-05-13T18:20:35
2021-05-13T18:20:35
293,693,680
0
0
null
null
null
null
UTF-8
Python
false
false
1,153
py
from joblib import Parallel, delayed import sys import os import glob import random def transform_file (file_path, destination) : input_file = open(file_path, 'r') full_destination_path = destination + '/' + file_path.split('\\')[-1] line_counter = 1 lines_buffer = [] score_line = input_file.re...
[ "peter_arnon1@icloud.com" ]
peter_arnon1@icloud.com
d854a9656861182f77a2b70cf3e1606c7efd126d
a6f88a9a33f2da39f1c297864ac29e4395dcb817
/Beginners/stdlib/csv/solution.py
ae1449f15a10d1b1205c7e0b649e3453654f78fd
[ "BSD-3-Clause" ]
permissive
csherfield/PythonTrainingExercises
b5e56c9ee67377f80404efc804df54cf06e0a366
f9fb84af4f60d71d68f00c646c0949312b90ba3c
refs/heads/master
2020-03-10T00:25:40.444426
2018-04-11T17:37:38
2018-04-11T17:37:38
129,081,385
0
0
BSD-3-Clause
2018-04-11T11:12:13
2018-04-11T11:12:13
null
UTF-8
Python
false
false
1,859
py
"""Create a function that reads a CSV file and return a list of dictionaries where the keys are the names in the first row and each dict contains the values in each subsequent row. A CSV file 'data.csv' is provided. Issues: What happens if the row is to long or two short? What happens with duplicate names in the firs...
[ "apaulross@gmail.com" ]
apaulross@gmail.com
1c83965a3a194a42d6aeef21ffa870582a214071
707eca7efb59322d7fdd4f72a97d2281f37dda02
/engines/trading_engine.py
278da5c029132aaaa2398d5389c6a52c7a0666cc
[ "Apache-2.0" ]
permissive
maollm/futu_algo
8e44736e78bfcaa9c8fe29f04e33b1850b8225c6
302f7145a14346e7bb8794fa5d2beccd86735a7d
refs/heads/master
2023-04-01T22:23:18.632417
2021-04-13T19:12:27
2021-04-13T19:12:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,614
py
# Futu Algo: Algorithmic High-Frequency Trading Framework # Copyright (c) billpwchan - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Bill Chan <billpwchan@hotmail.com>, 2021 import configparser import datetime import glo...
[ "billpwchan@hotmail.com" ]
billpwchan@hotmail.com
c27b80d12837b1f36e9a5eaaf6ebd29008d75246
532e1bdcc3f866a491b48440fe49ca9589ac019c
/automotora/core/admin.py
882d4518bc583fddbafadc2ff472c40097f3ff07
[]
no_license
bastianvargas/automotora
569fab97329d9fa35b27a2b38a4da4f6c416fb7e
768287218148664550581b2cec432f0b98364004
refs/heads/master
2020-04-13T16:45:46.347768
2018-12-27T19:05:18
2018-12-27T19:05:18
163,327,919
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
from django.contrib import admin from .models import Marca, Automovil class AutomovilAdmin(admin.ModelAdmin): list_display = ('patente', 'marca', 'anio', 'modelo') search_fields = ['patente', 'modelo'] list_filter = ('marca',) admin.site.register(Marca) admin.site.register(Automovil, AutomovilAdmin)
[ "bastianlc@live.cl" ]
bastianlc@live.cl
88d6ee612b0d1e97c48922b79fafa6f05b4281c6
e0a785810cf6c966f7b7c8eb0ec7eaf945595bfe
/prob21.py
bcf15cee489044ded4c0bc486263991cb56048c9
[]
no_license
DerekRies/eulers
e01d11aa94adcdeda388dd0da3bb40f017305e70
723e857dd9cb86c165d36dc50f36646ad6f86aed
refs/heads/master
2021-01-10T18:04:51.540776
2016-02-06T13:16:54
2016-02-06T13:16:54
51,049,778
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
# coding=utf-8 """ Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, ...
[ "influenztial@gmail.com" ]
influenztial@gmail.com
52f98364a0cef7d8e68fae2acff9757aa2344030
17f2128b748130e8601d3c4b5fded8ff7bcd49a8
/turnin/mbaut030_lab3_part2_tests.py
b6d50959c5b42d09be81ab9c2c94e726f73caf86
[]
no_license
Mavbrick/Lab_3
7c92d52fdada9e0b7b80539e9381ce796999da4b
cc4b145759b9392ef2e61a8afd05ac2aaa469aa9
refs/heads/master
2023-03-30T18:23:45.280159
2021-04-10T05:11:44
2021-04-10T05:11:44
356,374,495
0
0
null
null
null
null
UTF-8
Python
false
false
2,475
py
# Array of tests to run (in order) # Each test contains # description - # steps - A list of steps to perform, each step can have # inputs - A list of tuples for the inputs to apply at that step # *time - The time (in ms) to wait before continuing to the next step # and before checking expect...
[ "mbaut030@wch136-29.cs.ucr.edu" ]
mbaut030@wch136-29.cs.ucr.edu
b3cca6e0ac8a9ef1e9547d5f4501c40fe3a9887a
a0b4559ba6f1e3d08c56bf585c80540fa9bb0abe
/n_to_m_while_exercise.py
ecc3f719802511a8c705d225602779aeabb342dc
[]
no_license
tedgey/while_loop_exercises
430ecd0e20771ab93d30ffbd28adfaaf37dfc445
912b3f477b1c187f095085c1fef1b4aa66d61bfc
refs/heads/master
2020-05-15T05:50:42.349435
2019-04-18T15:24:50
2019-04-18T15:24:50
182,111,846
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
# counting between two given numbers start_point = int(input("What number should we start on? ")) end_point = int(input("What number should we end on?")) count = start_point while count < end_point: count += 1 print(count)
[ "thomasedgeworth@Thomass-MacBook-Air.local" ]
thomasedgeworth@Thomass-MacBook-Air.local
d8d742854ec7842465b985ad93830852b7b6d3a1
8d14d526969d8e970254f08563ff2c6e6583dd35
/Python/2019/Hafta20191122/venv/Scripts/easy_install-script.py
530572ec9997ac842f173dfe02dcf73848586a38
[]
no_license
osmanraifgunes/MedipolCodes
c29db62896162c4b1a2c8c274877fff63149f826
943b014269e9a7b529e74741ce14447dbd7d5df5
refs/heads/master
2023-01-09T10:31:02.907945
2020-06-09T18:05:04
2020-06-09T18:05:04
218,612,787
6
13
null
2023-01-07T18:58:55
2019-10-30T19:59:16
Python
UTF-8
Python
false
false
453
py
#!C:\code\MedipolCodes\Python\Hafta20191122\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __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'(-script\.pyw?...
[ "osmanraifgunes@gmail.com" ]
osmanraifgunes@gmail.com
c7e8a1160734707c181df50a65c90179c55ba35b
55dca9ceb218bc3788b8c4e7eef98d7eb563e60d
/pybo/migrations/0008_board_category_guestbook.py
d2005e2790419fdc3c2ab65b369ad0d8a9877e33
[]
no_license
venttii/pybo
bdff32b09f6b38cab0002ed74f4fdd41ce78b5b2
81a473787431e06d7bb3c32be42dba1c3b80211b
refs/heads/master
2023-02-20T21:29:15.545279
2021-01-27T16:15:35
2021-01-27T16:15:35
329,205,675
0
0
null
null
null
null
UTF-8
Python
false
false
2,582
py
# Generated by Django 3.1.3 on 2021-01-27 08:37 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), ('pybo', '0007_auto_202101...
[ "ehdgus2357@gmail.com" ]
ehdgus2357@gmail.com
dd3b524eb8f66a476b7e2643fdedf9fb7d0e6480
380a320fbdde9189c39ebbd055fedefa205fd541
/cplane_np_hw.py
f9faf3cea48511153847e3c933044b6001dfe752
[ "MIT" ]
permissive
chapman-cs510-2017f/cw-08-keith_jet
ba4f94e8fec744f4c47cbf0d6f17fd884d912b4b
cff072045fe9c7aec6a7407ed2db3cc2ff7d63e8
refs/heads/master
2021-07-16T00:17:19.440631
2017-10-20T14:12:07
2017-10-20T14:12:07
107,347,676
0
0
null
null
null
null
UTF-8
Python
false
false
4,997
py
import cplane_np as c_np import numpy as np from cplane_np import ArrayComplexPlane import matplotlib.pyplot as plt class JuliaPlane(ArrayComplexPlane): def __init__(self, c): self.xmin = -1 self.xmax = 1 self.xlen = 2000 self.ymin = -1 self.ymax = 1 se...
[ "jiali@chapman.edu" ]
jiali@chapman.edu
cffdbd0ab90b9b59ef7a69aff564ea1323fbe6b4
3181efe062a6745fc2e5d182260b8e94ce6c5701
/0MyProject_Quant/海龟反转策略/4_2.方向过滤参数自动选择及策略回测_并行.py
2c92a341e8f5ec2c95609c7db032528948d0fb42
[]
no_license
LibreChou/PythonLearning
e240fddc559dc8614d4db95e79d047b18cc1be52
562ded21e84b68f43c539c65b91aed3a880162ce
refs/heads/master
2023-03-12T12:18:33.501881
2021-03-04T11:33:42
2021-03-04T11:33:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,317
py
# Author:Zhang Yuan import warnings warnings.filterwarnings('ignore') from MyPackage import * import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.patches as patches import seaborn as sns import statsmodels.api as sm from scipy import stats #----------------------------------------...
[ "39754824+MuSaCN@users.noreply.github.com" ]
39754824+MuSaCN@users.noreply.github.com
45e74d9dfdecb336974b4cf3cdb41aa55ebedeb6
ffcb2fdd33dfb0a3271dbfb01ddcfdb61793828f
/vgg19/deploy.py
a83bc95c67226f91bfb48eeb502eba6336ed362a
[]
no_license
Richardych/challengerAI
c148f91bdbd6b15c660998f2e880edbdd98f9c4d
af622a2dd780a457f13fa037498928b208d93ee0
refs/heads/master
2021-08-24T15:34:10.452118
2017-12-10T05:28:29
2017-12-10T05:28:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,515
py
# coding=utf-8 import os import sys root='/home/yuchaohui/ych/caffe_ych/' #根目录 sys.path.insert(0,root+'build/python') import caffe import numpy as np deploy=root + 'models/vgg/vgg19/VGG_ILSVRC_19_layers_deploy.prototxt' #deploy文件 caffe_model=root + 'models/vgg/vgg19/caffe_vgg_train_iter_60000.caffemodel' #...
[ "yuchaohui1234@gmail.com" ]
yuchaohui1234@gmail.com
7c5b13fc736557163c95d289141ff4870117e2e0
b5a9469cb779031936bb613719397d7b3c279626
/backend/apps/privacy/sitemaps.py
2bc9aa6eae410f25322fcf965d670fd616158b73
[]
no_license
arsavit/Cidsfg_copy
a34858d63749db0e821cb2f26b1eb31c4565c0f9
0145e9f1a397899b03a8d767fb96f1d238ec21f9
refs/heads/main
2023-07-08T11:18:10.042595
2021-08-11T08:09:27
2021-08-11T08:09:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
from django.contrib.sitemaps import Sitemap from .models import Privacy class PrivacySitemap(Sitemap): """ Получение страницы ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ """ changefreq = 'weekly' priority = 0.9 location = '/privacy/' def items(self): return Privacy.objects.all().order_by('-id')[:1] ...
[ "arsavit@gmail.com" ]
arsavit@gmail.com
699c75b97c7a8afdb70e4ce79f91ad7f94158668
95a2bb2ef56ca80ad7cb51d67a42242bf18fa337
/jump/models.py
b17ca1bff68351cf244316d1a03fec9d36836f23
[]
no_license
zhangxianbo/soms
ac2183c0a285fe56456461101ecc78ca314c3929
0ba1802b0e2e9111e0f1855480723be8e2941bcd
refs/heads/master
2021-04-09T15:46:14.086425
2016-07-14T08:15:21
2016-07-14T08:15:21
62,615,511
0
0
null
null
null
null
UTF-8
Python
false
false
1,671
py
#coding=utf-8 from django.db import models from datetime import datetime # Create your models here. class Host(models.Model): hostid = models.AutoField(primary_key=True) idc = models.CharField('机房',max_length=50) addr = models.CharField('机架等标识',max_length=50) sn = models.CharField('序列号',max_length=30,b...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
56872ad5888944ca9236de18d8891bea6993cbc7
b27b0bcd22973d029688ea3f10c9abfe651800a4
/abc134/abc_134_c.py
ead15f57bd16c735af615104664a2ecfe8eb99b1
[]
no_license
KouheiFurukawa/atcoder-back-number
8f6b7c6704bc6fb32bb8ca9ccc9971650c0fdf8f
2fe11830614bf2ce64ee7947734043fe47800277
refs/heads/master
2020-06-03T13:45:54.531015
2020-05-17T05:53:39
2020-05-17T05:53:39
191,591,257
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
from sys import stdin N = int(stdin.readline().rstrip()) A = [int(stdin.readline().rstrip()) for _ in range(N)] first = 0 second = -1 for k in range(N): if A[k] > first: second = first first = A[k] elif second < A[k] <= first: second = A[k] for l in range(N): if A[l] == first: ...
[ "furukawabashi42@gmail.com" ]
furukawabashi42@gmail.com
058648be146529a5630cfb86feda2ef00f44c42f
8be2fac312e89453700e0a216fa05867caa12c5f
/hinge_gradientdescent_adptSetpsize.py
5089403a60cf057c9759cf38c3d31e3ce7d57cfb
[]
no_license
saumyachoksi/Machine-Learning-Algorithms
8678070716eb9c0bb1f46ab38ba0ccbc396bdc8f
141d7861c53aab8b3143e610a85b87af69e3b063
refs/heads/main
2023-03-29T21:04:04.573066
2021-03-16T23:38:58
2021-03-16T23:38:58
345,784,109
0
0
null
null
null
null
UTF-8
Python
false
false
3,448
py
import sys import math import random #datafile = sys.argv[1] datafile = "ionosphere/ionosphere.data" #datafile = "data.txt" f = open(datafile) data = [] i=0 l = f.readline() #** Read Data ** while(l != ''): a = l.split() l2 = [] for j in range(0, len(a), 1): l2.append(float(a[j])) l2.append(1)...
[ "noreply@github.com" ]
noreply@github.com
c77c63579a804de62fd29378f19a9657fa5df454
9ba5a98aaabbb851e5f44148f78d42f48cf24224
/app.py
18c80735e4e9a7da5718b55f56314ab710273bc1
[]
no_license
PrettyWood/laputa-graphql
cc695409b79d3b7eb13b0334baf84141fef90737
070c7476be93af09e2653fdbb5dad46420348ded
refs/heads/master
2020-03-18T19:36:26.697149
2018-05-29T07:51:46
2018-05-29T08:19:36
135,164,870
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
from flask import Flask, redirect from flask_graphql import GraphQLView from database import db_session, init_db from schema import schema app = Flask(__name__) app.debug = True app.add_url_rule('/graphql', view_func=GraphQLView.as_view('graphql', schema=schema, graphiql=True)) @app.route('/') def index(): ret...
[ "eric.jolibois@toucantoco.com" ]
eric.jolibois@toucantoco.com
a109967e5b7a97237246fba43de3aa5bc7166fa1
fa3096939beca2bc877824ef7bd7d7826c73aa6c
/ztq_core/test/test_redis_wrap.py
552685ffbcb343775b89b3dc01f0e092eeae8932
[ "MIT" ]
permissive
everydo/ztq
b043c18288125d6391caa14f0de6b629c7a8083b
0237239626c9662ffa47879b590a534b2287c5d1
refs/heads/master
2021-06-08T09:21:09.265011
2016-02-23T09:01:23
2016-02-23T09:01:23
6,314,401
31
16
MIT
2018-05-21T01:40:35
2012-10-20T22:21:45
Python
UTF-8
Python
false
false
4,097
py
#coding:utf-8 ''' 测试说明: 此测试是针对redis_wrap库进行自动json编码的测试 测试结果: Ran 5 tests in 0.036s FAILED (failures=1) 失败原因是在对list进行remove(value)操作的时候,redis的lrem无法删除序列化后的对象, set类型能正常remove序列化后的对象. @author: Zay ''' import unittest from ztq_core import get_redis, get_list, get_hash, get_set, get_dict, setup_redis, \ ...
[ "xutaozhe@gmail.com" ]
xutaozhe@gmail.com
a2082d583b1204cb5acc0a39b4dbc0bee07e32ba
78c98220d9b922ce82caec7152caf25044c4fbe2
/MikolovJoulinChopraEtAl2015/python/base_rnn_graph.py
87348cc3e9d96cba945df430c3d98b9187fbc3b8
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
AI-Stuff/DeepLearningCertificate
f72df5407c873653828c50bb5c7e39bb5f8186c4
48b9a315c1636997dad6024c7e4974edf95d5334
refs/heads/master
2020-03-21T22:50:37.036146
2017-08-28T15:29:21
2017-08-28T15:29:21
139,150,736
1
0
null
2018-06-29T13:07:52
2018-06-29T13:07:52
null
UTF-8
Python
false
false
7,915
py
# Structurally Constrained Recurrent Network (SCRN) Model # # This gives an implementation of the SCRN model given in Mikolov et al. 2015, arXiv:1412.7753 [cs.NE], # https://arxiv.org/abs/1412.7753 using Python and Tensorflow. # # This model is superceded by the Delta-RNN model given in Ororbia et al. 2017, arXiv:1703...
[ "noreply@github.com" ]
noreply@github.com
79800ad69194b3606c66406778ab10c02b8d53a4
75523e326e407498c7f741ae276ff09730ee86b7
/view/reviewer_view.py
6cd6bb7295123d070a9530b0604d99bef8503c53
[]
no_license
1hs9/ConferenceManagementSystem
eb374f5d18f8f0b7386dd908140829a8ecd3efa7
8e485bbe0d2af2bfb335501ae1d5cdb902c0412d
refs/heads/main
2023-06-11T21:04:56.094568
2021-07-06T05:43:50
2021-07-06T05:43:50
383,347,526
0
0
null
null
null
null
UTF-8
Python
false
false
1,126
py
import sys sys.path.append('/Users/harshitsharma/PycharmProjects/ConferenceManagementSystem/controller') sys.path.append('/Users/harshitsharma/PycharmProjects/ConferenceManagementSystem/model') class ReviewerView: def reviewer_portal1(self, first_name, last_name): print("********************************...
[ "noreply@github.com" ]
noreply@github.com
b005d6ca3c2a8b6170c8d74997aaea94fb3cdb6a
006f440b387a88ecfb48607cd979b9216f0a21e7
/mysite/WebLibrary/models.py
10d75a8707d8f1074d25f6d2436982344f114ef1
[]
no_license
moluszysdominika/PSInt
a71be4c9af7349c9eb2d9d3ff4dc4ded139c1859
91ec9cc550a09650c08407acc5ba124bc6d29837
refs/heads/master
2020-08-09T21:20:31.471978
2020-02-02T22:34:47
2020-02-02T22:34:47
214,176,962
0
0
null
null
null
null
UTF-8
Python
false
false
1,544
py
from django.db import models # Create your models here. class Reader(models.Model): login = models.CharField(max_length=45) password = models.CharField(max_length=45) first_name = models.CharField(max_length=100) last_name = models.CharField(max_length=100) address = models.CharField(max_length=200...
[ "cienista97@gmail.com" ]
cienista97@gmail.com
f98699dbba275aa7c9012f686bb3d2cdeb277ce5
49c2418c977aa6091183283b1d71be806868522d
/main_app/migrations/0008_alter_airline_rating.py
f7cdd20e29c7820b05f64941eae833ba994ad432
[]
no_license
Kir-Cicegi/voyageur
5e1a6390523935f817ad7ed38ead09f8eb3f63a9
e55eb7afc75875fcbe949216052562e6870cb73d
refs/heads/main
2023-06-12T14:18:38.034019
2021-07-09T03:13:04
2021-07-09T03:13:04
382,433,374
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
# Generated by Django 3.2.4 on 2021-07-07 21:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main_app', '0007_rename_name_airline_airline'), ] operations = [ migrations.AlterField( model_name='airline', name='...
[ "84298571+Kir-Cicegi@users.noreply.github.com" ]
84298571+Kir-Cicegi@users.noreply.github.com
627bcc579421c9e68946a4001c3726b2fc02b966
e7b665624c1134f7a6b3ab7c043cfa5ec83227bb
/CycleGAN/__init__.py
c73deef2fd0626ca2afa3252d2b902d7958b1f51
[]
no_license
zhijie-ai/GAN
46f896909d1f5caedb7725cf44d328e24f4ad699
5e64b416209058721c582c3b71a1e9ca25cf169d
refs/heads/master
2022-10-26T10:28:08.279901
2019-08-26T14:09:15
2019-08-26T14:09:15
204,423,289
1
3
null
2022-10-07T00:52:36
2019-08-26T07:45:08
Python
UTF-8
Python
false
false
622
py
#---------------------------------------------- # -*- encoding=utf-8 -*- # # __author__:'xiaojie' # # CreateTime: # # 2019/7/5 22:13 # # # # 天下风云出我辈, ...
[ "15311484394@189.cn" ]
15311484394@189.cn
9d9a806f2ec508f3d202103ff17d592e98259b7b
26f23588e80acc2b28d4cc70a8fbcf78c5b33a20
/PythonSkills/decorator/basic02.py
ac7856a1b7b8a973b0e4280108fd34948670b37e
[]
no_license
Timehsw/PythonCouldbeEverything
aa31b3e32bf68b49fe8e96b971637353a8ef644f
85d4f1a2c93c7b1edc34ceb9e8bb3c8d7beb30e9
refs/heads/master
2021-01-01T15:38:25.253094
2018-01-22T06:49:05
2018-01-22T06:49:05
97,661,530
5
2
null
null
null
null
UTF-8
Python
false
false
698
py
# -*- coding: utf-8 -*- ''' Created by hushiwei on 2018/1/7. 学习装饰器 闭包 函数里面可以定义函数 函数可以被传递赋值 函数可以被返回 那么装饰器就是,在函数之前额外做些事情 ''' ''' 装饰器 有参函数 ''' def a_new_decorator(a_func): def wrapTheFunction(*args,**kwargs): print "I am doing some boring work before execution a_func()" ...
[ "hsw.time@gmail.com" ]
hsw.time@gmail.com
f8db1a24c726745ec3776f50cf977141e2e76ff5
7e170d0bf83a0753c2d524810e4764ac94223efe
/TF-Page/website/migrations/0003_auto_20170813_2019.py
c18030b2c7de2b001ee292ada822d50af70033ee
[]
no_license
tyronfonseca/TF-page-django
2613291efca9800b9736b732897106316320c4b0
3ef1e9988d950aa7d83f15cb40d7f09035c35c7c
refs/heads/master
2023-08-29T20:41:27.734635
2018-08-30T14:47:18
2018-08-30T14:47:18
424,658,266
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-14 02:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('website', '0002_auto_20170813_2006'), ] operations = [ migrations.RemoveFie...
[ "tyron.fonseca@hotmail.com" ]
tyron.fonseca@hotmail.com
1abbb24193c9915113b11e312474efed18a77c9a
7bd1c899b2306dd96442b4d716317bac78c8a0b8
/auto_operations/config_operations.py
3c48ceedff264a10478cfe47cba67d77c0e37af8
[]
no_license
panarahc/automation
24fbde4cb2ab5bca361f1fe1e03a2044ef6f83d2
041fee604185cb8294d3ad9515be8b7740a39138
refs/heads/master
2021-01-21T21:10:37.780213
2017-05-21T07:22:38
2017-05-21T07:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
#!/usr/bin/python from operation_registry import OperationRegistry import re registry = OperationRegistry() @registry.device_operation('apply_config',family='ios,iosxe') def apply_config(context,target,commands): """ Returns: Error if any encountered or True if no errors are seen. """ with contex...
[ "scet.amit@gmail.com" ]
scet.amit@gmail.com
dcb95199ae8b2d00c2e425403a3da419cc0d1c69
c8a41e7b2caa015903dc5aff2d8e34a5cbd34b8d
/python/itertools/compress-the-string.py
0208eec6cbcbd5eed48a9fa26c1a73150292dc0a
[]
no_license
mauricioabreu/hacker-rank
bad197fec3582979df148a8212d330097191c2b7
3d2aaae53f438e4ef8d9382cc0c22003248c6787
refs/heads/master
2021-01-10T07:25:23.869714
2018-06-16T23:17:51
2018-06-16T23:17:51
46,177,986
6
1
null
2016-08-27T16:18:36
2015-11-14T14:38:13
Python
UTF-8
Python
false
false
212
py
from itertools import groupby chars = raw_input().strip() groups = [] for key, value in groupby(chars): groups.append((len(list(value)), int(key))) print ' '.join(['(%s, %s)' % (k, v) for k, v in groups])
[ "mauricio.abreua@gmail.com" ]
mauricio.abreua@gmail.com
102b5869f49685e43d6c2ce258585056568e87d3
bd5708c70d54e1798f6a11bfb7c98f5899dc1526
/packedbits.py
1e576cabd73946b400284a4c60fae51e5f48bfb1
[ "MIT" ]
permissive
patrickmacarthur/ssrando
56e8b931e498b3c9bbca7d37ca1e1b966a4d2b70
39e8fbc43433b063641474f037d9b3be134e1522
refs/heads/master
2023-08-07T07:54:51.349196
2021-10-11T05:20:31
2021-10-11T05:20:31
415,785,734
0
0
null
null
null
null
UTF-8
Python
false
false
1,975
py
# from: https://github.com/LagoLunatic/wwrando/blob/master/wwr_ui/packedbits.py import base64 class PackedBitsWriter: def __init__(self): self.bits_left_in_byte = 8 self.current_byte = 0 self.bytes = bytearray() def write(self, value, length): while length: if length >= self.bits_left_in_b...
[ "lepelog4@gmail.com" ]
lepelog4@gmail.com
0db8f21a975d0dc646839485352d0b6cf4df4064
4d66852253aaff5ee93ab73f41a531dd4a0b615d
/baseline_midsf.py
e37424d670ee6649c54e0d648617910e620d2ad2
[]
no_license
zsc19/CaBERT-SLU
ed030ed01809f0ca6f93505d483a9d6750a48442
ee1a46cf7c69ab5662a47ce9e65735cf877b1ea9
refs/heads/main
2023-08-10T19:30:21.793823
2021-09-17T14:18:25
2021-09-17T14:18:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,880
py
"""For model training and inference Data input should be a single sentence. """ import random import torch import torch.nn as nn from torch.autograd import Variable from torch.optim import Adam, RMSprop from transformers import BertTokenizer, BertModel, BertConfig from keras.preprocessing.sequence import pad_sequences...
[ "waynewu6250@gmail.com" ]
waynewu6250@gmail.com
ec3c3e9a1609b3241c9287dcf01219c6d607eeb7
d12b53101c289a1d752862e20ffc079e3ab4e057
/2.0/overturn.py
a15642ab7a89395e9a8230990f94277a71dc0b9f
[]
no_license
UCAS007/adavanced-aritificial-intelligence
13708985b65fe0d27ed1fe93e05eb54ddef9949d
d88fcc8f5a59f290a866a04db6bcbe133bdc3ba3
refs/heads/master
2021-01-10T15:21:07.819354
2016-05-03T14:03:00
2016-05-03T14:03:00
45,598,387
7
2
null
null
null
null
UTF-8
Python
false
false
4,038
py
""" Fmax=0.995512 Perceptron """ import pickle from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.linear_model import SGDClassifier,Perceptron from sklearn.grid_search import GridSearchCV from sklearn.pipeline import Pipeline from sklear...
[ "youdaoyzbx@163.com" ]
youdaoyzbx@163.com
7e639fe5d4f22819ad092582b315f0b876db46d0
621f6e38ddcb24217acabd717022c73195188d6e
/ui/play_display.py
6e52c8d3b517e4844479e0edf9f421c9aac108e2
[]
no_license
antoninmsl/threes_game
e86f6d5ca664cbbaaffe9900e59bf1cede28c227
e7e2e5ca72c9a94adc9c9b4e3c06f14090f910a4
refs/heads/main
2023-04-22T01:16:15.003089
2021-05-13T11:39:39
2021-05-13T11:39:39
367,000,325
0
0
null
null
null
null
UTF-8
Python
false
false
3,070
py
from termcolor import * import sys sys.path.append("../") from tiles.tiles_acces import get_value # -------- Fonction de la partie 1 -------- def full_display(plateau): """ Affichage en couleurs un plateau passé en paramètre. """ line_separator = ' ' * (plateau['n'] + 1) + ' ' * plateau['n'] # D...
[ "noreply@github.com" ]
noreply@github.com