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
9d42895a3f6bc02128cf335966e69e08e46e0ba6
1863049b98d36e50fcd95bae5645675d900c5da1
/10.ES/ES Find Top.py
b7db3546c45fc0902c5c7e2c0ba0499445234381
[]
no_license
Nh-touch/TensorFlowPractice
0928bd17a87df6d9bd35dea77a28ba557f764255
2fb965a10a6a6019b4799e3f8df30ff1ea8f5d60
refs/heads/master
2018-08-25T17:50:14.611371
2018-07-08T01:29:30
2018-07-08T01:29:30
117,306,573
0
0
null
null
null
null
UTF-8
Python
false
false
3,895
py
import numpy as np import matplotlib.pyplot as plt # 利用ES算法,计算函数f(x) = sin(10x) * x + cos(2x)*x 在区间[0, 5]之间最大值点 DNA_SIZE = 1 # DNA长度 POP_SIZE = 100 # 种群大小 NUM_KIDS = 50 # 每次繁衍的后代数量 NUM_GENERATIONS = 200 # 主循环次数 DNA_BOUND = [0, ...
[ "1669159448@qq.com" ]
1669159448@qq.com
05eebb0c5cba9520c57f75b74530c4107e753a01
59d15bd038d52eb9061bad5b347ebf9ef9ddd6e5
/include/oscar.py
46b9314ff6be1d9bdbb25649c885b7fb8c32f256
[]
no_license
gipi/Richie
f7238c0f943048bd93ce483e62f9636edae62c4d
ed00425b7d0e5203eb1e17d0f9e10e5bc5177a16
refs/heads/master
2021-01-01T05:32:43.012905
2011-12-30T18:22:30
2011-12-30T18:22:30
3,075,881
0
0
null
null
null
null
UTF-8
Python
false
false
34,181
py
"""This was brutally ripped out of twisted""" from include.utils import Base import socket from threading import Thread from select import select import os import struct import md5 import string import random import types class Protocol(Base): def __init__(self, host, port, timeout=60, bufsize=60): self....
[ "cj__@7d8b11ba-8c55-0410-bd75-95494264abfd" ]
cj__@7d8b11ba-8c55-0410-bd75-95494264abfd
9114ad8bbda5e123afc7de169cc2028aa55c0ce6
9ee5c351e72afafbcb2e85ab2180151789b27624
/pwa_store_backend/pwas/signals.py
6c3c4c6a1fcfa90b35f2395406864f245833ce99
[ "MIT" ]
permissive
nathanhfoster/pwa-store-backend
7d331343c2a6e5d53bf790569c4718a0961459f7
93a4bb1d347a9076b40600a2ec2fac92cada03cf
refs/heads/master
2023-09-01T06:02:09.885737
2021-10-17T19:11:05
2021-10-17T19:11:05
391,519,625
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
from django.db.models.signals import post_save from pwa_store_backend.pwas.models import Pwa, PwaAnalytics def pwa_post_save_handler(sender, **kwargs): ''' created an instance of PWA Analytics when a new PWA is created ''' instance = kwargs.get('instance') created = kwargs.get('created', False) if crea...
[ "nabinbhusal80@gmail.com" ]
nabinbhusal80@gmail.com
3435a3efe4f2d2b77b6cd5f74d53ddf05fa774d4
473f6841c545e7edc40370782393eab947b25bc2
/NeuralNetworks/NNmodel.py
0c3099e617696d614d4e30fb90db3d71c385841d
[]
no_license
SJYbetter/supervised-machine-learning
5dcb592458fa8a1009fcec64b0624a60b3ce5dde
b8ed96ae34c5160af078dfe2fc1d771df31f0f9a
refs/heads/master
2020-04-12T12:36:21.888430
2019-04-22T13:14:19
2019-04-22T13:14:19
162,497,010
0
0
null
null
null
null
UTF-8
Python
false
false
6,401
py
import numpy as np import math import random import matplotlib.pyplot as plt import scipy.io def plot(x, y, tittle): m, n = np.shape(x) xcord1 = [] xcord2 = [] ycord1 = [] ycord2 = [] for i in range(n): if int(y[0, i]) == 1: xcord1.append(x[0, i]) ycord1.append(...
[ "sjyhyn@gmail.com" ]
sjyhyn@gmail.com
230253b7557aeac008a120659cb5432ff4aad187
042a3e00c2107d26589cb052f78be87c02b5a4c3
/models/xception.py
41363d857475121b236c8ea3558a5e3fb1de706e
[]
no_license
KosukeMizufune/segmentation
bdcf5cf4894b4b6c5d4645033f183169c7ff67de
78d5cd303690829b04b0a54629462ec175ca12ec
refs/heads/master
2020-05-15T23:27:32.935257
2019-05-05T14:35:14
2019-05-05T14:35:14
182,553,616
0
0
null
null
null
null
UTF-8
Python
false
false
7,189
py
import chainer from chainer import links as L from chainer import functions as F def fixed_padding(inputs, kernel_size, dilate): kernel_size_effective = kernel_size + (kernel_size - 1) * (dilate - 1) pad_total = kernel_size_effective - 1 pad_beg = pad_total // 2 pad_end = pad_total - pad_beg padde...
[ "mfs.coldvdgas4645@gmail.com" ]
mfs.coldvdgas4645@gmail.com
e651b351aeca8a6f33aec76c1801f3599fa076b4
bc32158f2085ae8ebf1b3a95911fd0087fd090f2
/importPkg/generate.py
e4282eef355774091820fc02b7c39d09601b8406
[]
no_license
mwintersperger-tgm/prototype
77a69558f204b1fbc012f0c877ed95e70419e745
9bb1da7119fd17fcf889f42a97e46420ce7a120a
refs/heads/master
2020-04-07T16:52:08.032189
2019-04-07T11:44:45
2019-04-07T11:44:45
158,546,637
0
0
null
null
null
null
UTF-8
Python
false
false
3,242
py
import json import csv from random import randint true = True false = False def generate(generator): """ Generates a value based on the given generator, which has to be a string Read the generate_readme for further information :param generator: string :return: """ if generator.startswith("...
[ "akramreiter@student.tgm.ac.at" ]
akramreiter@student.tgm.ac.at
62f61b10377b859a94e7cd74a9a808e563b91524
8103ec56c3a412f186078738966466494e65cb35
/player.py
b4d1216727144ed14f92092f28b0df7ce9c1c2a3
[]
no_license
ankushKun/TicTacToe
8065cc1d64075da35aaef50e5dd3f499b5ee66e1
2892ce940f75efeefdf0912f5aafd08cffb7d1b2
refs/heads/main
2022-12-30T18:38:51.368878
2020-10-19T12:19:24
2020-10-19T12:19:24
305,075,511
2
1
null
null
null
null
UTF-8
Python
false
false
446
py
#from board import Board class Player: def __init__(self,name:str,piece:str) -> None: piece=piece.upper() if not (piece=='O' or piece=='X'): raise Exception("piece should be either 'X' or 'O'") self.name = name self.piece = piece def place(self,b,x:int,y:int) -> Non...
[ "ankush4singh@gmail.com" ]
ankush4singh@gmail.com
89fbee613da8412cb0e79b72e54245fc9d1ad0d5
12d654d2f2caa42469dacc7e331b6fa61e41bf61
/polls/migrations/0001_initial.py
a557ab78b242348220f98d2d5155974a1d879169
[]
no_license
makon57/redhat-tech
d618a4a9a96e89ce09b4db469adae40c3b79b139
ed7e915fd5e63ddf9e9c30d9a14c9d0e281a7f1e
refs/heads/main
2023-09-01T07:51:48.790823
2021-10-05T19:57:24
2021-10-05T19:57:24
413,950,578
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
# Generated by Django 3.2.7 on 2021-09-29 01:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Question', fields=[ ...
[ "m.kong.57@gmail.com" ]
m.kong.57@gmail.com
9f6d9ea1d01f53cf4815e3eebe00a8d6c0061822
4a2e129c26cfbe9477785d71d34eaefd6c7832c2
/TreeB.py
dbe6ea2f0dd46671ab0a2108ec9539713e7d69f8
[ "MIT" ]
permissive
adilraja11/Binary-Tree-from-marsinf
ad4ced5507fec59b0c3a7a391b4dc32ad11811a6
a8cc17f5e7cb74cf62e12b2974a214b6cfe20a93
refs/heads/main
2023-01-21T23:27:47.949670
2020-11-29T09:51:27
2020-11-29T09:51:27
316,917,655
0
0
null
null
null
null
UTF-8
Python
false
false
2,725
py
#Nama : #NIM : #Tanggal : #Deskripsi : from TreeA import * #Fungsi NbElmt #DefSpek #NbElmt : pohon biner --> integer >= 0 #NbElmt (P) memberikan banyaknya elemen dari pohon P #basis : NbElmt (//\\) = 0 #rekurens : NbElmt (/L, A, R\) = NbElmt(L) + 1 + NbElmt(R) def NbElmtPB(P): if(IsOneElmtPB(P))...
[ "noreply@github.com" ]
noreply@github.com
7b045879714b0543348f9c2c3e0f6e3debfef07e
d9ffdfc842fd3aef47194132828bdca8e7d97a35
/state_categorizer/experiment_parsel3.py
546a70f5e3b72adbda3066470d316981711a3239
[]
no_license
pollo/categorizers
98d29192129a932efe257b32bbad7d6079fa7b72
018cf1e6884ea6c23386c5539c0a9418feadffcf
refs/heads/master
2016-09-05T19:13:14.486091
2014-07-29T13:19:53
2014-07-29T13:19:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,692
py
from experiment_parsel import ExperimentParamsSelectionBase from sys import argv import os.path """ In this experiment the features extracted will be the 3 components and the module of velocity and accelleration of each point. The svm will be used with gaussian kernel instead of linear. """ class Experiment(Experimen...
[ "pollo1_91@yahoo.it" ]
pollo1_91@yahoo.it
fb58e6b016ef706a0ea9fe64f5a1a25eecfcf477
5065377d29c8965c3d9b445b26526154d5bfbd72
/blog/admin.py
49c4b842918b5aad9764d056950b9bda4d124e90
[]
no_license
chechitajr20/aplicacionblog
095944382c46106d0275c55c55df1d4a42521701
a10b16740877ade416a5ce6cba3b976de1d38998
refs/heads/master
2023-01-14T06:14:00.287576
2020-11-14T22:23:12
2020-11-14T22:23:12
294,600,242
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
from django.contrib import admin from .models import Publicacion admin.site.register(Publicacion) # Register your models here.
[ "kevin17@mesoamericana.edu.gt" ]
kevin17@mesoamericana.edu.gt
179f582b2c0b1b3db4ccb771da4908bdf2846481
2d93e25b8b7efc7ea57cb6421894fc81b31e5c8f
/devel/lib/python2.7/dist-packages/bitcraze_lps_estimator/msg/__init__.py
54dbe5073cc27273c6646ff5533f8a96774c0fd1
[]
no_license
Supredan/UINS
5b63a33f0a143d5138cd2e59883e5820b0b23076
7a70d31944a89b00bbf302dd1f318ab93f8134dc
refs/heads/master
2020-07-23T21:39:46.500920
2019-09-11T03:23:34
2019-09-11T03:23:34
207,712,812
1
1
null
null
null
null
UTF-8
Python
false
false
27
py
from ._RangeArray import *
[ "961401327@qq.com" ]
961401327@qq.com
285294c3c1fac8f3add68e76b2a6286d591a5183
504be4ce361b3c0da04beb1f0ca2441bc375d64e
/bloody/urls.py
1e0a1f710bbcc9ca0e553855cb7159d997fe4e70
[]
no_license
NipunGupta27/bloodowners
b7b8b625364e13fd85918449e9f2a818364a2098
289667b665b9483d209c45090ba67a8084a04e6b
refs/heads/master
2020-06-01T01:07:41.733356
2019-09-17T19:14:30
2019-09-17T19:14:30
190,570,692
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
from django.urls import path from . import views urlpatterns=[ path('', views.BD.index), path('sign', views.BD.sign, name="log"), path('signup', views.BD.register, name="signup"), path('signin', views.BD.login, name="signin"), path('logout', views.BD.logout, name="logout"), path('bloodsearch', ...
[ "nipungupta.2702@gmail.com" ]
nipungupta.2702@gmail.com
1a63e4dfdfbd8600a565952b15f6d8d44e6149de
dfd384abcad2db8235886bc710ad29a2aebfdfe8
/Scripts/pip2-script.py
0048ec1246fcc85dfb95780b90493c3e1c225ad7
[]
no_license
leonardray/pythonbackup
96d48fd7caa19414d16ee9fd025a220ba29c9409
fe5c128806e7998d15bcc2960e549de49483796d
refs/heads/master
2021-01-20T19:36:33.607811
2016-07-19T06:07:31
2016-07-19T06:07:31
63,615,189
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
#!C:\Python27\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==8.1.1','console_scripts','pip2' __requires__ = 'pip==8.1.1' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('pip==8.1.1', 'console_scripts', 'pip2')() )
[ "zunrui.liu@seecwealth.com" ]
zunrui.liu@seecwealth.com
a14f2d27fb842c960da907b295098fe3078cb4ac
e333b92859dfc4ca9d48bfb13c101fbe12a4aece
/development/COPIES/intercom_bitplanes.py
36ed94a10bf5d866788a438b0d9a36ed4b242f79
[]
no_license
DjCluster/intercom
c56d831d6daf111ec0ac4fe5b5d7eae04d97f203
8475ba692913e2b58ffaa9d0351a1d03271a92cb
refs/heads/master
2020-07-27T01:12:52.836898
2020-01-23T12:48:25
2020-01-23T12:48:25
208,819,502
0
0
null
2019-10-21T14:05:22
2019-09-16T14:23:47
Python
UTF-8
Python
false
false
1,720
py
# Transmitint bitplanes. import sounddevice as sd import numpy as np import struct from intercom import Intercom from intercom_buffer import Intercom_buffer if __debug__: import sys class Intercom_bitplanes(Intercom_buffer): def init(self, args): Intercom_buffer.init(self, args) self.packet_...
[ "Toni.Schaarschmidt@hotmail.de" ]
Toni.Schaarschmidt@hotmail.de
ef6b4848b893f17267f2b33abef55ff4aa3231af
ca75f7099b93d8083d5b2e9c6db2e8821e63f83b
/z2/part2/batch/jm/parser_errors_2/260891264.py
b17d02424ce9eaaf1d928b9919113f11c3a2f91b
[ "MIT" ]
permissive
kozakusek/ipp-2020-testy
210ed201eaea3c86933266bd57ee284c9fbc1b96
09aa008fa53d159672cc7cbf969a6b237e15a7b8
refs/heads/master
2022-10-04T18:55:37.875713
2020-06-09T21:15:37
2020-06-09T21:15:37
262,290,632
0
0
MIT
2020-06-09T21:15:38
2020-05-08T10:10:47
C
UTF-8
Python
false
false
1,244
py
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 260891264 """ """ random actions, total chaos """ board = gamma_new(3, 2, 2, 6) assert board is...
[ "jakub@molinski.dev" ]
jakub@molinski.dev
b6c6890770545affae43a687df491bc4228d1c6e
b030e97629ce909e60065fb061110d9b0818aee1
/501-600/561.Array Partition I.py
abc497d0d0fffc3804b7017701ae8180a7ace8ab
[]
no_license
iscas-ljc/leetcode-easy
40325395b0346569888ff8c065cacec243cbac98
e38de011ce358c839851ccac23ca7af05a9d0b32
refs/heads/master
2021-01-20T09:27:07.650656
2017-11-22T03:07:47
2017-11-22T03:07:47
101,595,253
2
0
null
null
null
null
UTF-8
Python
false
false
247
py
class Solution(object): def arrayPairSum(self, nums): nums.sort() return sum(nums[::2]) #等价于return sum(sorted(nums)[::2]) #将数组从小到大排序,取下标为偶数的元素求和即为答案
[ "861218470@qq.com" ]
861218470@qq.com
1a8b3d4e9b1c958f9b0bce014b558636a21f1219
82fce9aae9e855a73f4e92d750e6a8df2ef877a5
/Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GLES2/_errors.py
b6a0130446adb2d6251c43327f3ea1379148a033
[]
no_license
BartoszRudnik/GK
1294f7708902e867dacd7da591b9f2e741bfe9e5
6dc09184a3af07143b9729e42a6f62f13da50128
refs/heads/main
2023-02-20T19:02:12.408974
2021-01-22T10:51:14
2021-01-22T10:51:14
307,847,589
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
from OpenGL.error import _ErrorChecker from OpenGL.platform import PLATFORM as _p if _ErrorChecker: _error_checker = _ErrorChecker(_p, _p.GLES2.glGetError) else: _error_checker = None
[ "rudnik49@gmail.com" ]
rudnik49@gmail.com
e42766c52d29e4d1e1220f55c205fd23f19c7388
f72563f5f43658ce80c89449ba7a43edd00c2a5d
/flaskapp/lib/python3.6/posixpath.py
8657d96a2d35f2cdcc7d2fcaf755b1fc0277048c
[]
no_license
vicktoriaklich/vicktorias_foundations_project
188ea68ec0be172fc5831f364f72140137d75a11
83613fd919642476ffbc2298ee172ec3401d199f
refs/heads/master
2020-05-14T17:28:27.580568
2019-04-28T21:20:44
2019-04-28T21:20:44
181,892,172
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
/Users/victoriaklich/anaconda3/lib/python3.6/posixpath.py
[ "klichvictoria@googlemail.com" ]
klichvictoria@googlemail.com
4103dd891513b167f4c5e44df7b0a7fb7670c5db
45b741f7063b6baef7ca0ced7dbaaaeba2606710
/text_jp/cleaner.py
a40748555e0d6e358c3afd04c7727ca3aba46274
[ "MIT" ]
permissive
reppy4620/glow-tts
af92f50ea1d199b5ea8e52e1ac19c1b25310ee3c
25e9999c46ced8d4508ceccc7025d2d8a5c66af3
refs/heads/master
2023-05-26T18:51:17.533034
2021-05-23T11:36:20
2021-05-23T11:36:20
365,131,941
0
0
MIT
2021-05-13T12:43:56
2021-05-07T06:10:16
Python
UTF-8
Python
false
false
937
py
# https://github.com/tosaka-m/japanese_realtime_tts/blob/master/src/jrtts/GlowTTS/Utils/text_utils.py import os.path as osp import pandas as pd DEFAULT_DICT_PATH = osp.join('./filelists', 'word_index_dict.txt') class TextCleaner: def __init__(self, word_index_dict_path=DEFAULT_DICT_PATH): self.word_inde...
[ "ilikeniku@icloud.com" ]
ilikeniku@icloud.com
30c5fbeef2b61d36df1e19d7650d461d12adef3a
1c248b5ab4e6c3d4b2880fd848c4e74c4a6495cc
/program/admin.py
af08915223d517301f6083ddf67055091e19b4c8
[]
no_license
serkankisacik/Python-Django-DietSystem
45bc4db86089edcda7e22dd1e5bcecfac1119794
e881df12c2213fc06da506a2f945605c7ae36da8
refs/heads/master
2023-06-06T06:36:53.018721
2021-07-03T20:15:20
2021-07-03T20:15:20
351,484,246
2
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
from django.contrib import admin # Register your models here. from mptt.admin import MPTTModelAdmin, DraggableMPTTAdmin from program.models import Category, Program, Images, Comment class ProgramImageInline(admin.TabularInline): model = Images extra = 5 class CategoryAdmin(MPTTModelAdmin): list_display...
[ "serkankisacik01@gmail.com" ]
serkankisacik01@gmail.com
737e3ae44d09c3a751214f2cf1bc08fc8669bdc1
72478ff5ab229b87c1092a0858605e3b13f349e0
/leveldb.py
2e2bd5a30d01c29938bfa491bcb0567fc4e82580
[]
no_license
jamiels/pyethdata
514e692610ff8ae65d3be2c6c94a329559e597ed
ac28ad9a1881802423aaa74e5d9ecd7d9cb2b2d6
refs/heads/master
2020-04-22T08:44:51.258156
2019-02-12T04:15:42
2019-02-12T04:15:42
170,250,580
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
# Jamiel Sheikh - jamiel@chainhaus.com # pip install plyvel import plyvel ### Connect and pull all keys in LevelDB - Good luck getting this to work on Windows db = plyvel.DB('/geth/chaindata/000016.ldb',create_if_missing=False) for k,v in db: print(k,":",v)
[ "i@jamiel.net" ]
i@jamiel.net
22adac66fa6865c32e5f213be1abc3f4001823a7
0f58d1d2560d7b3a9c4567ff7431a041ebe8d1ac
/0x0A-python-inheritance/8-rectangle.py
82cd7919083de7517b18001dd57682fc827dfd43
[]
no_license
peluza/holbertonschool-higher_level_programming
da2c5fc398ab7669989041f3be53a157638641c2
a39327938403413c178b943dbeefe02509957c9b
refs/heads/master
2022-12-14T08:12:27.444152
2020-09-24T21:45:49
2020-09-24T21:45:49
259,433,198
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
#!/usr/bin/python3 """8-rectangle """ BaseGeometry = __import__('7-base_geometry').BaseGeometry class Rectangle(BaseGeometry): """Rectangle Arguments: BaseGeometry {class} -- the class is BAseGeometry """ def __init__(self, width, height): """__init__ Arguments: ...
[ "edisonisaza@gmail.com" ]
edisonisaza@gmail.com
b34064101b59f3b0e11adf4c0e9850da45f52e80
fb21f0ff81e0f999a95c72bbf2f590eaa71d9ce9
/SELF_TRAINING.py
86c0eb14917e4dacbdb7ef6f01624cf29ab85b11
[]
no_license
apjohndim/3D-Lung-Nodule-Classification
b9564ce9f537e043927e7d5345256b50fdfb65e3
db86001ffd81c18444d7b0beaf47cf363aba30ac
refs/heads/main
2023-04-21T20:36:15.867162
2021-05-02T20:58:23
2021-05-02T20:58:23
363,747,693
0
0
null
null
null
null
UTF-8
Python
false
false
15,749
py
print("[INFO] Importing Libraries") import matplotlib as plt plt.style.use('ggplot') # matplotlib inline from sklearn.preprocessing import LabelBinarizer from imutils import paths import matplotlib.pyplot as plt import numpy as np import random import cv2 import os import time # time1 = time.time(); prin...
[ "noreply@github.com" ]
noreply@github.com
98f7692de70f4e66649d9da4f7c763bae59ea998
d181531573af9626f56b4de1de831489d765dccc
/rock_paper_scissor.py
b1cbbff910472b66c721bfd7fa82d6f13d53fd19
[]
no_license
sanchitjain0801/rock_paper_scissors
89e0a69bf3d2c2bcbb9fe457f2274672844100c6
bece1823649948d90e8c00a102d39c01040de423
refs/heads/main
2023-05-06T19:54:45.147249
2021-05-31T05:38:55
2021-05-31T05:38:55
372,393,848
0
0
null
null
null
null
UTF-8
Python
false
false
3,268
py
from tkinter import * import random array = ['rock', 'paper', 'scissors'] score = 0 def press(u_choice): global score user_choice.set(u_choice) c_choice = random.choice(array) computer_choice.set(c_choice) if(u_choice == 'scissors'): if(c_choice == 'rock'): ...
[ "noreply@github.com" ]
noreply@github.com
89475e009820624dceb01cc678b63beaa68e5053
341052762ea89f8a05fe7e08cf55d5a50db342c8
/azure.py
a12bbde2645555f050b08476b2dbbd15c2c8355c
[]
no_license
sergiorua/opencv-aws-face
7be4337a4a3313e4d528bba03f30b0bb6bae6c2b
ce0c99bde581b7c449462921108fe0c168fd71fd
refs/heads/master
2020-03-14T19:18:36.454106
2018-05-01T20:22:43
2018-05-01T20:22:43
131,758,667
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
import requests class AzureCognitive: url = 'https://northeurope.api.cognitive.microsoft.com/face/v1.0' key = None def __init__(self, key, url=None): self.key = key if url: self.url = url CF.BaseUrl.set(self.url) def detect(self, image): payload = { ...
[ "sergio@rua.me.uk" ]
sergio@rua.me.uk
43c71c44c5c8a320c0afa90b7a4d0b6e0c2f40fb
168baf3112f2aa6a519a99378920f54c418bd327
/basic_story_generator.py
9e2f789f81197a1fcc86646ea9bfd8f795252784
[]
no_license
DemetrioCN/python_projects_DataFlair
3f754707da4d0b576570dc1ba91066531a40810c
e82c0bf43650ea4cc091bd2f04285ee58b8377f7
refs/heads/master
2022-11-30T12:02:55.606333
2020-08-19T19:05:59
2020-08-19T19:05:59
275,613,861
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
print('\n') print(10*'-','Python Story Generator' ,10*'-') print('\n') name = input('Introduce yoru name: ') action = input('Introduce what would you like to do tomorrow: ') hour = input('Introduce the start hour: ') message = f'Hi {name}, you should do {action} tomorrow at {hour} o\'clock' print(message)
[ "dem9411@gmail.com" ]
dem9411@gmail.com
4cee085dbc89e4c9de9fa34be0a137ae06b7fc7e
9225e015b58ffb672ebf9619063767f210276efe
/network/pythonhack/mysock.py
c168df698893b76e040290c49bfffaf511d7c7f2
[]
no_license
beezy12/pythonPractice
784e6301957343068b41feabe1dc0d93344b12d6
3d3ed3b70b8bf3e1a8ff8126a1dfcdc6e370ebdc
refs/heads/master
2021-01-22T06:02:04.652594
2018-04-09T16:44:33
2018-04-09T16:44:33
92,515,057
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
''' the steps are: 1. create socket 2. bind to the port 3. socket listen 4. socket connect ''' import socket s = socket.socket() print('socket created.....') port = 1666 s.bind(('', port)) print('socket binded to ', format(port)) s.listen(5) print('socket is listening') while True: c, addr = s.accept() ...
[ "brian.stumbuagh@gmail.com" ]
brian.stumbuagh@gmail.com
9fe577b2c1f8ab7d800accf1212a8993bbe0ba12
87f10ace05662f1b60d6a75534ddf818eb98e327
/ui_tests/login_page/login_page_object.py
b78dbc76adf5857621bbeeea1b8d2db836df6f1d
[]
no_license
ane4katv/project_test_python_org
0ae16b960b932f817eadfb67872be348d46810fb
a4c7a9dd2bfd6731bcde9504227cdefca608ceaf
refs/heads/master
2020-07-05T00:54:39.878228
2019-08-15T04:47:49
2019-08-15T04:47:49
202,475,740
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver import ActionChains from selenium.webdriver.support.ui import Select from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait import t...
[ "anna.tv.sf@gmail.com" ]
anna.tv.sf@gmail.com
9f9440dbe47182b81654f1fac4c7832415b4ba21
29f7e80a31803eb196a623d0b75eb1cda47aea0d
/io_scene_bsp/__init__.py
e14db24d6b0879ce4f44de88b891b672937a0ccd
[ "MIT" ]
permissive
Rikoshet-234/io_scene_bsp
3cd6eb15fd1cc1d663040567ea536ed8eb4ef956
68e2fa1210bebb212d1792f094634dd21b145e21
refs/heads/master
2020-04-29T05:34:02.733894
2019-03-14T21:25:19
2019-03-14T21:25:19
175,887,248
1
0
MIT
2019-03-15T20:32:36
2019-03-15T20:32:35
null
UTF-8
Python
false
false
768
py
bl_info = { 'name': 'Quake engine BSP format', 'author': 'Joshua Skelton', 'version': (1, 0, 1), 'blender': (2, 80, 0), 'location': 'File > Import-Export', 'description': 'Load a Quake engine BSP file.', 'warning': '', 'wiki_url': '', 'support': 'COMMUNITY', 'category': 'Import-E...
[ "joshua.skelton@gmail.com" ]
joshua.skelton@gmail.com
c7c08e079e0f376350c96fa116f34913b88974f4
1ab7fa6f4404992cdbbf38284471d0bd81b83955
/ros/src/twist_controller/twist_controller.py
7688d809db50c89eff2346d8cb52878e3c996511
[ "MIT" ]
permissive
nalinirachit/SelfDrivingCar_Term3-SysInt_V2-
df3136d02b9cab01b36f9a5a70d600ffb2bad433
1e8f3f449e6778e92c527bc14de8637a12bfbbe8
refs/heads/master
2021-07-11T19:04:39.973361
2019-01-21T17:40:04
2019-01-21T17:40:04
139,259,482
0
0
null
null
null
null
UTF-8
Python
false
false
2,064
py
import rospy from pid import PID from yaw_controller import YawController from lowpass import LowPassFilter GAS_DENSITY = 2.858 ONE_MPH = 0.44704 # Nalini - added 9/1/2018 class Controller(object): def __init__(self, *args, **kwargs): # TODO: Implement self.wheel_base = kwargs['wheel_base'] self.steer_rati...
[ "nalini.sharma@gmail.com" ]
nalini.sharma@gmail.com
e98d82802b45dee7a575478de70e3ddfcbb5feba
af0a20320217f1e4140346ed60a585c74f16e205
/20.3-html-entities.py
a9bc00d754636e462656b97e7a8600edf425709c
[]
no_license
JasonOnes/py-library-reviews
f749a0f0c6f5ebe820792da8a2bacf00cd6964d5
00620cb78f44a1e6f647ae006dc9a35909db0f3c
refs/heads/master
2021-05-14T13:52:01.060933
2018-01-28T17:56:46
2018-01-28T17:56:46
115,957,538
0
0
null
null
null
null
UTF-8
Python
false
false
2,846
py
"""Not quite sure how to demo this module as it is basically just four dicts""" # html.entities # .html5 => maps char refs to Unicode chars # .entitydefs => maps XHTML 1.0 entity defs to replacement test in ISO Latin-1 (?) # .name2codepoint => maps HTML enity names to Unicode c...
[ "jasonr.jones14@gmail.com" ]
jasonr.jones14@gmail.com
1836e6d1f9d6c0d786a5748dc0b447e6f5be1b7f
82dc0dd66c9b37ff7ece790b7e5be33eaec93c5b
/new_project/wsgi.py
ceb968454545c0a8622ef8f6505cef3de2d718be
[]
no_license
gitllermopalafox/django-skeleton
56f2b426a633bcfb059a2d15f5c9dfd8f2f6555d
d8cb049ac6389394e754af6bc7afa17ea402f42b
refs/heads/master
2020-05-19T16:27:39.775345
2015-01-19T06:10:35
2015-01-19T06:10:35
29,002,711
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
""" WSGI config for djskeleton project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "new_project.settings.dev") from dj...
[ "palafox.87@gmail.com" ]
palafox.87@gmail.com
3a961a611edc9dacc58a6dff760b7bd3df63b909
bff655ab37993882d302ae4c73fedc5d55ff7fa2
/extract.py
b1452fb6eda81e1abefbebb65ec2b83409eadd5b
[]
no_license
yeminlan/POGO_update
8bfb3342df1730c633365bc2588e734ef4b67df1
cc2e44afe89bc701893c082e75644fa2c8220300
refs/heads/master
2021-01-10T01:14:35.873175
2015-05-31T20:49:55
2015-05-31T20:49:55
35,967,053
1
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
#!/usr/bin/python from Bio import SeqIO import sys import os.path genome = SeqIO.parse('gbk/' + sys.argv[1] + '.gbk', "genbank") cds = [] s16 = [] if len(sys.argv) < 5: product_16s = '16s ribosomal rna' else: product_16s = sys.argv[4] product_16s = product_16s.lower() print "Searching 16s tag:", product_16s for ...
[ "yeminlan@Yemins-MacBook-Air.local" ]
yeminlan@Yemins-MacBook-Air.local
a1e601c64a349fe2198b7711757e33f214b148a6
a62da02078f6dae0b2811bd7b345f8db49c5b6d8
/tasks/views.py
82f12be1415d2929d0678196827f3f0fe3314986
[]
no_license
shail151192/task-management-system-backend
7cdb9b6fd4222b59ead42e0282f373efc5549071
35f6967295cd0f717dc2c5c326ee14deb595ffa8
refs/heads/master
2021-09-05T02:40:49.188084
2018-01-23T18:08:26
2018-01-23T18:08:26
115,858,527
0
0
null
null
null
null
UTF-8
Python
false
false
2,755
py
from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from tasks.models import * from tasks.serializers import TaskSerializer from tms.user_authentication import TokenAuthentication # Create your views here. class Ta...
[ "shailendra151192@gmail.com" ]
shailendra151192@gmail.com
25b093661fdc2cb7b0fbf236c8162e5208a0438c
36800dbc851e1de6f4164dad5258c48bdb77b5e4
/docker.py
a1bc1a165359095bf0d1333e4bb979163fc4ac01
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
brad-peters/mantl
4d1ceed8bad5386b6c5784c39411aaaf6c88d9ea
92e7a715286b85e82433062fddb341f9693f7c28
refs/heads/master
2021-01-23T23:35:13.134748
2016-06-08T14:28:52
2016-06-08T14:28:52
60,772,108
1
0
null
2016-06-09T12:11:00
2016-06-09T12:10:58
null
UTF-8
Python
false
false
7,539
py
#!/usr/bin/env python2 from __future__ import print_function import os import os.path import logging from os.path import exists, join from shlex import split from sys import argv, exit from subprocess import call, check_output def symlink_force(source, link_name): """Equivalent to adding -f flag to bash invocat...
[ "samuel.e.hatfield@gmail.com" ]
samuel.e.hatfield@gmail.com
e2c8348e317ff438a9f404126243a8fb3482855e
521efcd158f4c69a686ed1c63dd8e4b0b68cc011
/airflow/providers/cncf/kubernetes/utils/xcom_sidecar.py
a8c0ea4c1936fc29a359f1c5cef8e36444cbd5c0
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
coutureai/RaWorkflowOrchestrator
33fd8e253bfea2f9a82bb122ca79e8cf9dffb003
cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f
refs/heads/main
2022-10-01T06:24:18.560652
2021-12-29T04:52:56
2021-12-29T04:52:56
184,547,783
5
12
Apache-2.0
2022-11-04T00:02:55
2019-05-02T08:38:38
Python
UTF-8
Python
false
false
2,215
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
noreply@github.com
09701644dd30da1a3c1937ded43689739d61b8da
d14f91b834b6aa0e524397d6da9c89c7036743fd
/knn_classify.py
59984284abda46c9b3d9fe288e46b1e06ade7d7a
[]
no_license
abhignya9/ML-assignments
7724293e17f4aa3246ad2933bc024946070108c8
9e318eced19a44887f4fff9a5978477e18b24f2d
refs/heads/master
2022-08-28T17:04:25.420926
2020-05-27T22:50:35
2020-05-27T22:50:35
267,441,309
0
0
null
null
null
null
UTF-8
Python
false
false
6,134
py
"""Name - Abhignya Goje UCM ID - 700703549 I certify that the codes/answers of this assignment are entirely my own work. """ import sys import numpy as np from collections import Counter def load_data(file): return np.loadtxt(file) class KNN(object): classification_accuracy = 0 def ...
[ "noreply@github.com" ]
noreply@github.com
618b5b6126ed977a4a947b5cdaf43c583c56c086
d0bb860c9d2ccd7abcfb1adbda9caa58f01f849b
/delivery-api-client/src/configuration.py
8dcec779b8dbf676b75359c2828dd263643eb883
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mptap/target-python-sdk
736f8f77afc7c361fae074cdca546277d203c129
9a7ba32d619589335e1f1d3659135bd6baf813d0
refs/heads/main
2023-03-11T16:12:44.574368
2020-12-15T18:07:41
2020-12-15T18:07:41
326,831,792
0
0
Apache-2.0
2021-01-04T23:22:47
2021-01-04T23:22:47
null
UTF-8
Python
false
false
10,057
py
# coding: utf-8 """ Adobe Target Delivery API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import ...
[ "cottingh@adobe.com" ]
cottingh@adobe.com
96cebe510e5c71ec42c2278ce74911007658585b
6faddbf76826fd744e026ea76f5891d450515a7a
/utils/pypianoroll_ops.py
2dae4713694b3cfbf89f44fd0ab0608b70a8fff9
[ "MIT" ]
permissive
jiabijue/music_generation_baselines
f0fbd60fe9f54e4a93f45cd032140b6b845b729a
066ad71e8dff7585641366427e8a6ff94514a291
refs/heads/master
2020-03-16T15:39:09.957967
2018-05-18T13:14:49
2018-05-18T13:14:49
132,753,322
3
0
null
null
null
null
UTF-8
Python
false
false
1,948
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : Bijue Jia # @Datetime : 2018/5/9 17:03 # @Github : https://github.com/BerylJia # @File : pypianoroll_ops.py from pypianoroll import Multitrack, Track def save_midi(file_path, stacked_piano_rolls, program_nums=None, is_drums=None, track_names=None, ...
[ "bijue_jia@163.com" ]
bijue_jia@163.com
8e4e9112e75465d525812b1120246bcfcf89d72c
9cc2febdd3640cd899f53d221d5c402b3201d700
/3a.py
a67802ddd40f1b7361801cb944490440087edbd0
[]
no_license
daniel-kullmann/aoc-2017
687573f708bf257cbfca3c87e7e82161bdb51d80
efc402111b408fb57caed113f22ffe745420703a
refs/heads/master
2021-09-09T16:19:34.245379
2018-03-17T22:23:35
2018-03-17T22:23:35
125,206,930
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
def val(data, x, y): result = data.get((x,y)) if result == None: return 0 return result def get(data, x, y): value = ( val(data,x-1,y-1) + val(data,x,y-1) + val(data,x+1,y-1) + val(data,x-1,y) + val(data,x+1,y) + val(data,x-1,y+1) + val(data,x,y+1) + val(data,x+1,y+1)...
[ "daniel.kullmann@sap.com" ]
daniel.kullmann@sap.com
aedbeba8d52c7fc05faa5b92bfbbaae4d1561a87
036a7b1d043eceddc096da0b5f982051624c1456
/Working Demo/plot2.py
39246f5ef2a1ca0b450de670dac03fd0caa16cca
[]
no_license
Terry0923/EMS-pipeline
7df62ca24b2619bfaa0f7eedcc06a382e4990f00
aaf326f8db7bc2a75b60ff6a10e7990ddb3d0656
refs/heads/master
2020-04-18T05:12:30.833754
2019-01-23T23:22:44
2019-01-23T23:22:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,868
py
''' import sys from PyQt4 import QtGui from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar from matplotlib.figure import Figure import random class Window(QtGui.QDialog): def __init__(self, pare...
[ "noreply@github.com" ]
noreply@github.com
2f1029356e78c66b832a76a5602223c2e542f36c
ced462aa7e22003b48230161778463760832960e
/bankAccount.py
3eb40a07042c683163224560d2739a266d729201
[]
no_license
boehmrya/testClasses
98af731c24005ba223ca6342ebcf843d78aba686
614dfdcbf9521f66b9f07a92a258719e225a868b
refs/heads/master
2021-01-19T14:14:03.620382
2017-08-20T21:08:15
2017-08-20T21:08:15
100,888,904
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
class bankAccount: def __init__(self, ibalance, icustomerid): self.balance = ibalance self.customerid = icustid def checkBalance(self): return self.balance def deposit(self, amount): self.balance = self.balance + amount def withdraw(self, amount): self.balance = self.balance - amount def transfer(s...
[ "ryan.w.boehm@gmail.com" ]
ryan.w.boehm@gmail.com
dabbbb2f56c43624d1146e7b45b7e35296f6b949
04386346644652beab89143ee900b01454aa6fc7
/setup.py
7361eac4372048953109b8d1f9a8bc4857bbb03b
[]
no_license
yoyonel/OpenCV_OMR_MusicSheet
d3d24a338929b50f4f6f8c831a8be645e44caf66
22569200ac86094eb21ca7d6bab76151ed19efc2
refs/heads/master
2021-01-10T18:46:59.922694
2019-04-12T08:44:21
2019-04-12T08:44:21
55,969,644
1
0
null
null
null
null
UTF-8
Python
false
false
2,379
py
# !/usr/bin/env python # -*- coding: utf-8 -*- from collections import defaultdict from pathlib import Path from typing import Dict, List from setuptools import setup, find_packages descr = """\ Dépôt pour le projet de scan et reconnaissance semi auto de partitions/tablatures issues des méthodes de basse. """ DISTN...
[ "yoyonel@htmail.com" ]
yoyonel@htmail.com
d947332c23ca5cca916e3a57272394962edb4f4e
a884d21244d887f5174a2d0ba8ecb811e23b6fc7
/FFN.py
65376b24bae6e6b46d191bc6eab11a44efd4de28
[]
no_license
ajaffer/prg_5
72b25571729be407e00f048233b65cdf0fc4bcd9
2c42cbb236442e9c2783ad9625a4c5153396efd2
refs/heads/master
2016-09-05T23:18:26.196868
2011-03-12T01:21:22
2011-03-12T01:21:22
1,449,263
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
__author__ = 'Ahsen' from pybrain.structure import FeedForwardNetwork from pybrain.structure import LinearLayer, SigmoidLayer from pybrain.structure import FullConnection n = FeedForwardNetwork() inLayer = LinearLayer(2) hiddenLayer = SigmoidLayer(3) outLayer = LinearLayer(1) n.addInputModule(inLayer) n.addModule...
[ "ahsen.jaffer@gmail.com" ]
ahsen.jaffer@gmail.com
2acd2a59d27001a9fc41b9b6d3ee060a45d58443
9614108483c6bc01795a707759caa6f52e184e6a
/funciones.py
0a4ff0c0ac222e73f184ae1e248152b2210b9f85
[]
no_license
tomercr037/practicas-python
03f3f381be564bec210d15a1f252b3758d8ff770
dd63daa3f7cd5b5173bc9e7785ada6fc474d765e
refs/heads/master
2020-09-17T07:41:06.308956
2019-11-25T21:53:05
2019-11-25T21:53:05
224,040,062
0
0
null
null
null
null
UTF-8
Python
false
false
3,204
py
from numpy import arange import matplotlib.pyplot as plt import math import random def biseccion(): fx = raw_input('ingrese la funcion a resolver') maximoIteraciones = int(raw_input('ingrese maximo de iteraciones a realizar')) a=-1.0 b=1.0 while 1: x = a fa = eval(fx) x=b fb = eval(fx) if (fa<0 a...
[ "tomercr037@gmail.com" ]
tomercr037@gmail.com
264db12adae710d45f7e7377aadcc8e4b1bed27c
da0f3a46bd09ab32ce16ea46912ccb24900a887c
/RubenVg/autogridr/poligono_n.py
ee6d54a793f2c91e41910de354f4ef10e25fc5f4
[]
no_license
1109israel/AprendiendoGit
ea275a145390c169f987280b5d934eb14d9026f8
f366a4555153376876a337e9b246110fdaa87795
refs/heads/master
2020-03-21T04:13:00.584488
2018-07-25T22:43:21
2018-07-25T22:43:21
138,097,310
2
2
null
null
null
null
UTF-8
Python
false
false
46
py
n=int(input()) x=0 x=((n*n)+(n-1)**2) print(x)
[ "rubenvelascogomez1234@gmail.com" ]
rubenvelascogomez1234@gmail.com
8486a2f3b8f7719eed407efb3e23b1f6c5d93a29
6dfe4039273741fa47dbd9c258d0ed403dc9f7bd
/venv/bin/easy_install
2ea95ad1fdf80497a50f416e400311db2dce95b9
[]
no_license
a-ridings13/CatalogApp
b6a3f6d6158ea1610513061f2ea63260a8513254
002ad0b4b46bad25083b74312eb9bba1f341c9ac
refs/heads/master
2020-05-20T04:40:10.881337
2019-05-12T05:21:15
2019-05-12T05:21:15
185,387,701
0
0
null
null
null
null
UTF-8
Python
false
false
318
#!/home/austin/Desktop/Udacity_FS_Nanodegree/fullstack-nanodegree-vm/vagrant/catalog/venv/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "austinridings921@gmail.com" ]
austinridings921@gmail.com
a14004664fe58f3f97fcc717e8c01095a4994f89
2a3d397178afe76d1fd1b891fb2e0f991091f0f4
/src/removeemptylines.py
7b0025f2b39b2e00c34f83c01cbedd1346fab0ea
[]
no_license
Bjornir90/TAL
26ecc66c38c1e5e4545993c023ff7b4a136fb38c
8ffa53982bd2ee901ae30d4952cf24f08047b4f1
refs/heads/master
2021-03-02T09:28:28.526084
2020-03-08T23:35:24
2020-03-08T23:35:24
245,855,720
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
import argparse def getArgs(): parser = argparse.ArgumentParser(description="Pos_tag text") parser.add_argument("in_file", help="The input file containing the text") parser.add_argument("out_file", help="The output file containing the text without empty lines") return parser.parse_args() args = getArgs() file =...
[ "celestincollin@gmail.com" ]
celestincollin@gmail.com
1c5adc51107dda11e8cf58f8903523927473fb1d
bb6576e2db39297c37a93535f676a0e665768da2
/instana/collector/base.py
2b4e5a9e579cdb81bf5d04959414971ea55ea64a
[ "MIT" ]
permissive
takeaway/python-sensor
25cc0e8e804a82dc21abf78194da4e4bd14f1b1f
52d6eaa2d6a8e625201bad36ac2448201c4bd63d
refs/heads/master
2021-06-22T08:49:22.889170
2021-05-17T09:32:45
2021-05-17T09:32:45
218,567,321
2
1
MIT
2021-05-17T09:32:46
2019-10-30T16:02:49
Python
UTF-8
Python
false
false
7,202
py
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2020 """ A Collector launches a background thread and continually collects & reports data. The data can be any combination of metrics, snapshot data and spans. """ import sys import threading from ..log import logger from ..singletons import env_is_test fro...
[ "noreply@github.com" ]
noreply@github.com
5e9bd9c20b1c09d125229d517891f7c7ec492ce5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_ottawas.py
85b54ee2bfb7c07f0824dea4c14fd7d0f039fc54
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
#calss header class _OTTAWAS(): def __init__(self,): self.name = "OTTAWAS" self.definitions = ottawa self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['ottawa']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
da18ff9e4382bec570bfebb7f5a830870c66aaf3
69e4cd36a795029d0db83ebb0b5094b3ab5f7482
/Other/loop1.py
f73289c509df1d47c8372f86afc319d7f66b9a83
[]
no_license
aranyasteve/python-
4c67adf805c8e950661151303242142a66195649
8528b53a4352666052f4435e97b5a1ea923d0e1c
refs/heads/master
2023-06-11T22:43:34.245818
2021-07-04T07:32:59
2021-07-04T07:32:59
278,655,588
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
# for a in range(0, 101): # if a % 2 == 0: # print("{:3}".format(a), end=" ") # # for x in range(2, 101, 2): # print(x, end=' ') i = 2 while i<=100: print(i,end=" ") i+=2
[ "aranyashukla9@gmail.com" ]
aranyashukla9@gmail.com
b99542f3a3322135a18969f2e1aa685b56bfa628
42c1dc42481ad4666c4ed87b42cee26d192116a5
/paraiso/hotel/migrations/0021_auto_20170615_1507.py
ac13fffdd102edad3ca303c9df8f774a4c2e0fe7
[]
no_license
williamkblera/paraiso
f65ea9750fd0bc0fcc2454017a70945a10d72353
e786d2a2a41691b3870599c88859ca839d9299db
refs/heads/master
2021-01-23T00:35:33.542190
2017-12-11T20:24:26
2017-12-11T20:24:26
92,826,289
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-15 19:07 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('hotel', '0020_auto_20170615_1500'), ...
[ "williamkblera@gmail.com" ]
williamkblera@gmail.com
dafb5f708da994490f50be8b5e8abab4a5cdb497
65390f11a35eefdbec270a162a2fd0c6e2fab64e
/code/Clustering/k_means.py
21680e4ce7a0af8c1cfdc897d8fb25478386f3c2
[]
no_license
DanielsHappyWorks/aml-data-discovery
45a89c6aad6141698d6e5e8d660aebbf7bb24e45
0381a774c873f7316c27b68c939d639eadfacc37
refs/heads/master
2021-01-05T19:55:21.492746
2020-03-22T19:24:35
2020-03-22T19:24:35
241,122,371
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
from sklearn.cluster import KMeans import code.Util.data_util as data_util from sklearn.metrics import confusion_matrix, accuracy_score import pandas as pd def run_kmeans(data_frame): x = data_frame.drop(['salary'], axis=1) y = data_frame[['salary']] model = KMeans(n_clusters=2, init='random', n_init=10, m...
[ "daniel.foth@ericsson.com" ]
daniel.foth@ericsson.com
c2a8220ae302f948c3d75ad49805cda3f36d4161
a6cf63f4a2f30b1acdf7f1aaf68592a7c06e475b
/blog/migrations/0001_initial.py
57ae8197b06e6d71693c122913d02726d9c4535a
[]
no_license
rahulginodia4005/TypeItDown-BloggingSite
9869121e6e1015345cb0605dac635d4bd6b0371e
07341243be2dcd8713db83b968a1a492390f11ac
refs/heads/main
2023-07-19T09:10:18.392511
2021-09-08T18:33:06
2021-09-08T18:33:06
404,422,082
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
# Generated by Django 3.2.5 on 2021-07-15 09:15 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "f20200784@pilani.bits-pilani.ac.in" ]
f20200784@pilani.bits-pilani.ac.in
40c839b1903dd6a5097fb9dcc7a394f0d25d2793
61844eeae93def77d5c60cba06258b32de80345b
/KM/app/config/settings/base.py
30f7c89dbfefdf28a0c8a79867ccf03b5b3c3ab6
[ "MIT" ]
permissive
ayong8/Learning
1cd5b54d0d046f7fbe6ab989c3f3a24bba1a8fdc
f33a3f4261f56cfc9b4e8eb33f08d68ab9429a70
refs/heads/master
2023-01-10T18:39:25.439074
2018-06-26T00:42:46
2018-06-26T00:42:46
126,389,952
0
0
null
2022-12-26T20:39:48
2018-03-22T20:14:10
Python
UTF-8
Python
false
false
9,384
py
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (app/config/settings/base.py - 3 = app/) APPS_DIR = ROOT_DIR.path('app') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_ENV_FILE: # OS enviro...
[ "yong8@me.com" ]
yong8@me.com
418b625b9dc9be8261cdeeedf0f8fb6c7ec8adb3
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/13/usersdata/104/5684/submittedfiles/flipper.py
525dfd44a7e141261a476cc49e226822c90d857c
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
# -*- coding: utf-8 -*- from __future__ import division import math #ENTRADA p=input('Determine a posição de p:') r=input('Determine a posição de r:') #PROCESSAMENTO if p==0: print('C') else: if r==0: print('B') else: print('A')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
800f5d933362f8b898e1cf9247e3faa130bf47ca
4d7ce5f81efd358444b6e9e116ad17ec225f0d7c
/scripts/publish-cves-to-website-api.py
ccc7f3ca6303d8eb8e788aa3e24bd0c3cd9b2077
[]
no_license
mssalvatore/ubuntu-cve-tracker-mirror
10e614d49cb76c10698d3c3e37067c9dad6505a0
393245887b9fdc3ecd3096a44e0373d9fb7038a6
refs/heads/master
2023-03-19T02:05:32.201654
2021-03-06T10:03:16
2021-03-06T10:03:16
312,426,218
1
1
null
2021-02-15T17:00:29
2020-11-13T00:03:43
Python
UTF-8
Python
false
false
9,007
py
#! /usr/bin/env python3 # Standard library import os import pprint import sys import cve_lib import re import argparse from http.cookiejar import MozillaCookieJar # Local ## from lib.file_helpers import JsonStore, download_gzip_file from cvss import CVSS3 from macaroonbakery import httpbakery IGNORE_CACHE = os.path.e...
[ "mike.salvatore@canonical.com" ]
mike.salvatore@canonical.com
d9c680c635056f20fa50c26d1c4e8ca06a8cc1f6
09a645cdd074638ab34790680bcb1122e3f5f48d
/python/GafferAppleseedUI/AppleseedAttributesUI.py
0a599834a1e4bb18444d8c89ca8b9f934d374628
[ "BSD-3-Clause" ]
permissive
cedriclaunay/gaffer
65f2940d23f7bdefca5dcef7dc79ed46745969e8
56eebfff39b1a93fff871e291808db38ac41dbae
refs/heads/master
2021-01-22T02:48:29.334446
2015-01-26T17:16:15
2015-01-26T17:16:15
28,099,102
0
0
null
null
null
null
UTF-8
Python
false
false
4,112
py
########################################################################## # # Copyright (c) 2014, Esteban Tovagliari. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribution...
[ "ramenhdr@gmail.com" ]
ramenhdr@gmail.com
689bb311707516c8cc0bd57ffe6d6baa9255dab9
ea24104edfb276f4db780638fcc8e6cf7f7dceb8
/dpaste/tests/test_snippet.py
118ef8773bf4690d18f9d094dd786be6693eae1a
[ "MIT" ]
permissive
jmoujaes/dpaste
6e195dc7f3a53ae2850aa4615514876597b6564d
27d608e5da4b045ea112823ec8d271add42fd89d
refs/heads/master
2021-01-25T14:33:06.648359
2018-03-03T19:57:51
2018-03-03T19:57:51
123,708,048
0
0
MIT
2018-03-03T16:08:54
2018-03-03T16:08:54
null
UTF-8
Python
false
false
16,562
py
# -*- encoding: utf-8 -*- from datetime import timedelta from django.core import management from django.core.urlresolvers import reverse from django.test import TestCase from django.test.client import Client from django.test.utils import override_settings from ..forms import EXPIRE_DEFAULT from ..highlight import LE...
[ "martin@mahner.org" ]
martin@mahner.org
33088de85d1d21fb85db5ede234527249596c566
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_arm/source/scipy/special/tests/test_bdtr.py
57694becc49b2028f17eac819b80a225ac010795
[ "MIT", "GPL-3.0-or-later", "BSD-3-Clause", "GPL-3.0-only", "BSD-3-Clause-Open-MPI", "BSD-2-Clause", "GCC-exception-3.1", "Python-2.0", "Qhull", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
3,231
py
import numpy as np import scipy.special as sc import pytest from numpy.testing import assert_allclose, assert_array_equal, suppress_warnings class TestBdtr: def test(self): val = sc.bdtr(0, 1, 0.5) assert_allclose(val, 0.5) def test_sum_is_one(self): val = sc.bdtr([0, 1, 2], 2, 0.5) ...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
f2e0aec80a17d6b7f6ceb231df0fcd6f343c0f4e
bcb61c2726923d730057e9fb8201d0eb3f4efb58
/Dokerfile.py
566d06d1bb3bde68075c7295f87b27791c6eefe0
[]
no_license
Abhinav1507/Abhinav
16a02e94c67741ea0b85123f854e6da9b5ec95ce
b429d14752e5ff0c28361550833ff8b30005af6b
refs/heads/master
2023-06-09T09:27:04.961839
2023-06-04T14:22:21
2023-06-04T14:22:21
274,191,747
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
# Using official python runtime base image FROM python:2.7-alpine # Set the application directory WORKDIR /app # Install our requirements.txt ADD requirements.txt /app/requirements.txt RUN pip install -r requirements.txt # Copy our code from the current folder to /app inside the container ADD . /app # Make port 80 ...
[ "noreply@github.com" ]
noreply@github.com
4f0780c8d60c4a2f4520b60aa2150f7e03ae3032
a2c0b715c6f5fa3177b3b395e22d2552df2334c5
/python/flask_app.py
b60485683808992c6b3da283592334185847cd21
[]
no_license
CHASEONGMIN/Language-study
29ec225ce70bb89c054a1ec1a3b1de2e3cc0905e
7ceb588599ea868a9129d79217563405b6591878
refs/heads/master
2023-04-04T06:34:50.103214
2021-04-01T05:31:59
2021-04-01T05:31:59
262,696,892
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
# A very simple Flask Hello World app for you to get started with... import requests from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'WEb study using Flask!' #챗봇이 메시지를 받으면 여기에서 업데이트 내용을 확인할거임. @app.route('/ssafy') def ssafy(): # 누가 메시지를 보냈는지 확인 -> chat_i...
[ "noreply@github.com" ]
noreply@github.com
1dea57973235b1a87363ebb4485e874a6183e2c8
ab0032d5dac53b11fa3c0e855efb36ae61f777d4
/library/general.py
295e0e771c5d231c2b3f8e651d1add1b2b1fc005
[]
no_license
eminmuhammadi/Needham-Schroeder-KDC
4729368ab62d7de629400c063b26e8d31f433ad0
99f6dbe4e1a2dad287ac852295180faf000ec20a
refs/heads/master
2023-08-07T14:54:46.308022
2021-09-22T09:54:31
2021-09-22T09:54:31
408,913,184
1
0
null
null
null
null
UTF-8
Python
false
false
2,463
py
from . import des from time import sleep import sys # function that convers binary to ascii def text_from_bits(bits, encoding='utf-8', errors='surrogatepass'): n = int(bits, 2) return n.to_bytes((n.bit_length() + 7) // 8, 'big').decode(encoding, errors) or '\0' # function that convers ascii to binary def text...
[ "muemin17631@sabah.edu.az" ]
muemin17631@sabah.edu.az
4c30510bd6ce2bb79440bcadd772954fbe1cd46a
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/allergies/56c0c9b37bf84ea598db6cbc74fd8ebe.py
1ef0988f5a8722518177c195c0c49f2735807e69
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
465
py
class Allergies(object): allergies = [ "eggs", "peanuts", "shellfish", "strawberries", "tomatoes", "chocolate", "pollen", "cats" ] def __init__(self, score): score = score & 0xff self.list = [ self.allergies[b] ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
b0dc8bec342246d50349b6f3a29efd0d1cd6cfce
f06d0b694f89e40f81b4d5de776b8308b64c4b8d
/bikeshare_2.py
0af7fb63d72c3c7e50b2769253815d5c21aa4b34
[]
no_license
gcole013/pdsnd_github
bf332d514e7b6dd70f320bb6b4d2cda61735535f
cb869a9c33b77df155bcfa8624738bb1c8e25fe3
refs/heads/master
2023-02-01T11:03:32.450495
2020-12-13T02:30:13
2020-12-13T02:30:13
318,824,381
0
0
null
2020-12-05T15:39:15
2020-12-05T15:39:15
null
UTF-8
Python
false
false
6,915
py
import time, pandas as pd CITY_DATA = {'chicago': 'chicago.csv', 'new york city': 'new_york_city.csv', 'washington': 'washington.csv'} def get_filters(): """ Asks user to specify a city, month, and day to analyze. Returns: (str) city - name of the city to analyze ...
[ "giancarlocoletta013@gmail.com" ]
giancarlocoletta013@gmail.com
78461667c871571e63f066c5de0023676ae2ae63
f15e057548ee7c25cafa027ff3c788d38193734e
/image_processing/image_processing.py
bcbb82cdb942e157c16fdba89437989d1583ea08
[]
no_license
TwistedW/python_basic
b297a0bcdce6c24be394b1d69e719d3b8135e5d9
8c2790feec1db2e16e837cfc2881ab2ff0c2407a
refs/heads/master
2021-01-25T09:31:56.577611
2017-11-24T12:32:04
2017-11-24T12:32:04
93,847,166
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
import cv2 if __name__ == '__main__': img = cv2.imread("image1.jpg") w = img.shape[1] h = img.shape[0] for xi in range(0, w): for xj in range(0,h): img[xj, xi, 0] = int(img[xj, xi, 0]*0.7) img[xj, xi, 1] = int(img[xj, xi, 1] * 0.7) if xi % 1000 == 0: p...
[ "2359375192@qq.com" ]
2359375192@qq.com
069227a6011bac06bb63ca5fbbc118464b7ed451
a225f1ce18361bb2309ae2b0f82984697f62a964
/Day_1.py
c23e6983d9e75cbc2334a01f40d5248d4218bd06
[]
no_license
gabbireddy/365_days_of_Python
6c781142c376a6ea746f34e37540d1dcc3a2dc4c
563aae6ca1ec7aa6b4c434d0f139b23e1a2f7f5d
refs/heads/main
2023-04-21T16:56:51.585747
2021-05-11T15:19:05
2021-05-11T15:19:05
366,427,363
0
0
null
null
null
null
UTF-8
Python
false
false
1,268
py
'''Sometimes some words like "localization" or "internationalization" are so long that writing them many times in one text is quite tiresome. Let's consider a word too long, if its length is strictly more than 10 characters. All too long words should be replaced with a special abbreviation. This abbreviation is made ...
[ "noreply@github.com" ]
noreply@github.com
348d9b7b8309079a4c69ee619bc7bf6d819d36c4
eb3683f9127befb9ef96d8eb801206cf7b84d6a7
/stypy/sgmc/sgmc_cache/testing/test_programs/numpy/basic_numpy/functions/numpy_abs.py
eb6a5f64cfb4c351a781f911bb2dd4dd546d5b68
[]
no_license
ComputationalReflection/stypy
61ec27333a12f76ac055d13f8969d3e0de172f88
be66ae846c82ac40ba7b48f9880d6e3990681a5b
refs/heads/master
2021-05-13T18:24:29.005894
2018-06-14T15:42:50
2018-06-14T15:42:50
116,855,812
2
0
null
null
null
null
UTF-8
Python
false
false
6,858
py
# -*- coding: utf-8 -*- """ ORIGINAL PROGRAM SOURCE CODE: 1: # http://www.labri.fr/perso/nrougier/teaching/numpy.100/ 2: 3: import numpy as np 4: 5: Z = np.arange(100) 6: v = np.random.uniform(0,100) 7: index = (np.abs(Z-v)).argmin() 8: e = Z[index] 9: 10: # l = globals().copy() 11: # for v in l: 12: # print (...
[ "redondojose@uniovi.es" ]
redondojose@uniovi.es
0236fd5ce64b66ba6fa95ab474dc5a1c451808e5
29cf9d831e90ed00595f11ba7ea25858b1e27f8f
/KERAS_YOUN.py
258156ca55582fcecceb1d18b1f0de5f5e17e44a
[]
no_license
hori1537/rexrexxion
8d89229bfab3bc4b24084599528c560fbf6446fc
919a82a9a193dc24edd1892ba622a737665b53db
refs/heads/master
2022-01-06T11:22:56.318650
2019-07-29T04:47:30
2019-07-29T04:47:30
105,863,418
0
0
null
null
null
null
UTF-8
Python
false
false
3,044
py
'''Trains a simple convnet on the MNIST dataset. Gets to 99.25% test accuracy after 12 epochs (there is still a lot of margin for parameter tuning). 16 seconds per epoch on a GRID K520 GPU. ''' from __future__ import print_function import keras from keras.models import Sequential from keras.layers import De...
[ "noreply@github.com" ]
noreply@github.com
11d3657d098198c144e70de197696e11d1e252d6
078dfe43133a952867412c1800ff4bf2280d1f33
/past_tense_form.py
1b63f654eb4bae1b74b1b704802668455856c611
[]
no_license
japanesegrammar/japanesegrammar.github.io
6463d00165816bcd311d57dcf0d83cf7c1ac31c9
b3e0425110e004b6b4854c40a43cd52baea568ee
refs/heads/master
2020-06-19T05:02:05.539475
2020-01-25T02:08:47
2020-01-25T02:08:47
196,572,460
0
0
null
2020-01-25T02:08:49
2019-07-12T12:04:47
HTML
UTF-8
Python
false
false
5,043
py
from python_utils.generator import printTitle, getInfoBlock, printSecondaryTitle, generateCard from python_utils.html_generator import getHtmlString from python_utils.table_generator import generateTable with open('past_tense_form.md', 'w', encoding="utf-8") as f: f.write(printTitle('Past Tense Verb Conjugation Ru...
[ "learnnihongogrammar@gmail.com" ]
learnnihongogrammar@gmail.com
0bdea361b10a4f3475f4dc9966169daced84f42c
0b767d1516ff77f62431f7464fb11b4e747b4a5a
/src/okok.py
c20649bc9a51ee921ebbfcdfd0c5062ea101c110
[ "BSD-2-Clause" ]
permissive
se4ai/code
1429f6c2e649cad1b42323cb1cf0deded5cf23a0
e2ac87c48863a471459d6aabc67ebdc1c96f440e
refs/heads/master
2020-05-23T17:45:14.567820
2019-08-06T13:56:27
2019-08-06T13:56:27
186,873,786
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from ok import ok @ok def ok1(): "This will always fail." assert 2==1, "oops" @ok def ok2(): "This will always pass." n = sum([1,2,3,4]) assert n==10, "should not fail" if __name__ == "__main__": ok()
[ "tim.menzies@gmail.com" ]
tim.menzies@gmail.com
3739cc6a38364d13c412e6c2ad0a48afea46162e
36a9f2bf56b801c690b486929deaa73eca117470
/venv/Scripts/pip-script.py
8fe118e88b2e073830a57fe97b2b33633af56028
[]
no_license
LedesmaFran/Accreditation-system
798d474fc602aa23ed5cbe567f12aba8d9830229
60fee67e08187dc1c45d5d3bc4af3b5fa5118f49
refs/heads/master
2022-04-07T19:55:16.293508
2020-02-12T21:38:28
2020-02-12T21:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
#!C:\Users\Fran\PycharmProjects\ICIT\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "fledesma@itba.edu.ar" ]
fledesma@itba.edu.ar
b81f349b219ecfb366970a6ddf21bfdcdcad34a5
71894f980d1209017837d7d02bc38ffb5dbcb22f
/audio/AlexaWithRaspioProHat/AlexaPi/main.py
9d5d327ba169eb237d036b14e4e26a54db885dad
[ "MIT" ]
permissive
masomel/py-iot-apps
0f2418f8d9327a068e5db2cdaac487c321476f97
6c22ff2f574a37ba40a02625d6ed68d7bc7058a9
refs/heads/master
2021-03-22T04:47:59.930338
2019-05-16T06:48:32
2019-05-16T06:48:32
112,631,988
0
0
null
null
null
null
UTF-8
Python
false
false
5,211
py
# msm: source - http://www.instructables.com/id/Build-an-Alexa-With-Raspio-Pro-Hat-and-Raspberry-P/?ALLSTEPS edits original #! /usr/bin/env python import os import random import time import RPi.GPIO as GPIO import alsaaudio import wave import random from creds import * import requests import json import re from memca...
[ "msmelara@gmail.com" ]
msmelara@gmail.com
e62c8f6b2972f282cd85c47b42e9e7e72b54bc76
90b040104ecb2d6c288d213bb40a65e67ab977fe
/ClassificationMultiGpu_v2.py
62fd070b7bee28c4a64941943912e9a6fa8e42e9
[]
no_license
JeanHoroma/ForesterieJacques
ce672161c926262ed561a0299d16c6a7a680b4bb
9253113b138219b1148b1f3ed256f68994f82174
refs/heads/master
2021-05-24T09:21:31.491960
2020-04-17T15:34:53
2020-04-17T15:34:53
253,493,272
0
0
null
null
null
null
UTF-8
Python
false
false
6,964
py
import os # two lines below used to select specific GPU for tests purposes # os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"; # os.environ["CUDA_VISIBLE_DEVICES"] = "0"; # select GPU : 1 from horoma.nn.conv import ResNet4b from horoma.io import sliding_window, ListFiles from config import config_ClassificationMultiGpu_...
[ "noreply@github.com" ]
noreply@github.com
de14006acab42e44ecc03e42a7fed9ae8c67074b
2ad8740638d4decf942592ef3fd48f479731b074
/ss_ex7.py
2a81549c04782e7c39fbc105798f38db316e3048
[]
no_license
ArtemisBrindlehorn/Zed
f8f5cb359b913ca1bb3d6bdf86ae32b9f3cab9cb
ab7b384693664c35c74b9374e26eb9d44aa23ae4
refs/heads/master
2023-07-25T07:53:48.689564
2021-09-10T20:40:11
2021-09-10T20:40:11
405,153,415
0
0
null
null
null
null
UTF-8
Python
false
false
1,374
py
#this line prints the classic opening to the tune print("Mary had a little lamb.") #this line prings the second line, using the format string function to place 'snow' in the escape characters {} print("Its fleece was white as {}.".format('snow')) #this is the next line, printed as we would expect print("And everywhere ...
[ "chariotman@gmail.com" ]
chariotman@gmail.com
d9b540922457935fd30085acc529678202b8f414
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/tokens/FitzRNS3.py
cee58928d034cfd5b351f2321166d94af284c10a
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
855,918
py
lis = [u'narr', u'survey', u'voyag', u'hi', u'majesti', u'ship', u'adventur', u'beagl', u'year', u'1826', u'1836', u'describ', u'examin', u'southern', u'shore', u'op', u'south', u'america', u'beagl', u'circumnavig', u'globe', u'appendix', u'ft', u'ajx', u'v0lumeia2', u'london', u'henri', u'colour', u'great', u'marlboro...
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
758feaca929778e33184002c2d53cf2527494a39
4a8b1c316ff2cd40748455721e02741d10e5a343
/webauto/addfavsearch.py
415bcbb193e4c24776e95056376c40d1d049b8f4
[]
no_license
mihnhyuk/NaverMapAddingBookmarks
23fb0672e93391258cb02d7c7304b3e817f1c189
5e79e3e11947973ec87b3e9d1d4e7b6fdc82dd09
refs/heads/main
2023-03-12T22:44:51.855282
2021-03-07T00:46:59
2021-03-07T00:48:46
345,227,386
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import Select from selenium.webdriver.support.ui impo...
[ "mihnhyuk@naver.com" ]
mihnhyuk@naver.com
bd71ce03f5e41f957894ab3eef06a36c90858d60
e64b8faa18f5163739055fe670877b5d18f063a0
/app_user/migrations/0001_initial.py
41a80d95decbdd39c810e35fcd52774e0a7cf225
[]
no_license
lurdray/market
2c1fcd2375dfb9f6dccc183d6d3cbf75d0624dea
e05b39ccb85b62f47f2b9231285aa2b6952bbe0f
refs/heads/main
2023-03-06T03:59:52.646971
2021-02-16T11:01:37
2021-02-16T11:01:37
330,923,969
0
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
# Generated by Django 3.1.5 on 2021-01-19 09:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "odiagaraymondray@gmail.com" ]
odiagaraymondray@gmail.com
63f6b7f2356548e3a4d9f856b6d48c333fb2516f
2fe9ac5c00c3c9afd19d6e124692687243e2df6c
/hawc/migrations/0003_auto_20210410_0721.py
e3a71d0e54bbb7cd3bf5d2d42039589abdaea63a
[]
no_license
d4v1dp3/hawcpapers
9d8c12c42f4b3dcf8463ee1d340442f632c5330f
573d0bb2230018f14f33edc94072987a0d943e98
refs/heads/master
2023-04-11T05:55:34.972664
2021-04-21T22:36:03
2021-04-21T22:36:03
360,324,394
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
# Generated by Django 3.1.7 on 2021-04-10 07:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hawc', '0002_auto_20210410_0542'), ] operations = [ migrations.RemoveField( model_name='email', name='principal', ...
[ "david@d4v1d-b34r.local" ]
david@d4v1d-b34r.local
ca4a09119aeb8e0bf90846f2387285fcd2f58815
008ea0c503829f33840495373ad3d60794575af3
/source/sublime/oop/o12.py
95dae399b2627636d23c46aad39907c93034e366
[]
no_license
JyHu/PYStudy
6515bea47ca6f80e336f3b6a7a14b1159fde872f
ec0855c414237bdd7d0cb28f79a81c02ccd52d45
refs/heads/master
2016-08-12T19:44:06.723361
2016-04-11T10:38:59
2016-04-11T10:38:59
45,384,810
0
0
null
null
null
null
UTF-8
Python
false
false
2,193
py
# # coding:utf-8 # ''' 除了使用 type() 动态创建类以外,要控制类的创建行为,还可以使用 metaclass ''' __author__ = 'JyHu' class ListMetaclass(type): def __new__(cls, name, bases, attrs): attrs['add'] = lambda self, value : self.append(value) return type.__new__(cls, name, bases, attrs) class MyList(list, metaclass = ListMetaclass): pa...
[ "auu.aug@gmail.com" ]
auu.aug@gmail.com
b9a3172ffef11b14eac894e9b54c0d8d35fd7581
90bcc14aa80816442f70642216eced86ef71fb38
/src/transform_utils.py
d1fcf4746b98dd78532dd023a23f89adadb5a326
[ "Apache-2.0" ]
permissive
ag-sc/SimpleQA
523e81fd35b0ccf262fc40c5289dda1534955791
0288540c57f9d44a450d74bedeea002c9244abdc
refs/heads/master
2021-04-30T08:54:31.252025
2019-05-15T08:45:26
2019-05-15T08:45:26
121,386,506
2
0
null
null
null
null
UTF-8
Python
false
false
21,719
py
import numpy import re import random from nlp_utils import pad, get_padding_shape predicate_tokens_re = re.compile(r"[._]+", re.UNICODE) def collectSamplesForTrain(question, conf, res): text = question["text"] chars = list(text) char_indices = res.char_vocabulary.get_indices(chars) tokens = text.sp...
[ "sherzod@mercury.ai" ]
sherzod@mercury.ai
50da352625d2f3d85956b56e418d52ef648a9dd2
316787bc2851acac9efb096e94bb656d46503140
/reports/forms.py
3655bbe486c8924d9ad9d85122ebcb8fd75d317d
[]
no_license
siaomingjeng/ozfriend
ed92a1b463edb3ce187377a3286fe9333112a1f8
19629a17b9126b8f5876f9d3328010ca17317c75
refs/heads/master
2021-08-22T12:30:46.085372
2017-11-30T06:47:47
2017-11-30T06:47:47
112,571,421
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
import datetime from django import forms from pytz import timezone from django.contrib.admin import widgets tz = timezone('Australia/Sydney') class ReportDateForm(forms.Form): date_from = forms.DateField(widget=widgets.AdminDateWidget(), label="From", input_formats=['%Y-%m-%d']) ...
[ "xiaoming.zheng@icloud.com" ]
xiaoming.zheng@icloud.com
6df74dcfb29df4f5470864e473ca2b87fc68cbf6
8a65b06530690562ab1fc337c28c1569bb32983a
/A0081_BasicIO/using_file_with.py
978c091cd8f86390c8c1d167b7f382fcd5e49e72
[]
no_license
wangzhiqing999/my-python-sample
31d6613e4aa9ad4621a49a513a15cff1c790265a
a5e1d423a3aaa94482f9793cc084d908eb516ce9
refs/heads/master
2023-06-09T11:12:52.034556
2023-06-08T03:54:03
2023-06-08T03:54:03
15,693,186
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
# -*- coding: utf-8 -*- # 使用文件. # 关于文件的帮助信息, 可以在 Python 命令行中输入: # help(open) # 准备用于写入文件的内容. poem = '''\ Programming is fun When the work is done if you wanna make your work also fun: use Python! 测试中文汉字, 是否能正确地写入与读取! ''' print("将文本信息,写入到文件中去..."); # open for 'w'riting # 以写入方式, 打开文件 poem.txt wi...
[ "wangzhiqing999@hotmail.com" ]
wangzhiqing999@hotmail.com
64a25d5fb03dc66a0d46a54110ca5dcc8584eb5d
181cfe97ab1caa5f8224766ad4f537f6b829d015
/I0320085_exercise7.19.py
7066df26c972ae42b5b2c4692686ff5c284f345c
[]
no_license
RetnoMurwati/Retno-Murwati_I0320085_Wildan_Tugas7
e0b2148538a4090999a8a058e2132f9c47f4b7ca
d0e2c1c6d0b55e8c8cffd93576f7087b514c71dc
refs/heads/main
2023-04-13T00:57:10.281870
2021-04-16T15:03:18
2021-04-16T15:03:18
358,446,592
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
#Numerik fungsi fabs import math a = -32 b = -3.34 print("a =", a) print("b =", b) print("math.fabs a= ", math.fabs(a)) print("math.fabs b= ", math.fabs(b))
[ "murwatiretno2@gmail.com" ]
murwatiretno2@gmail.com
221719ab8653bc020a2936945eb218d68375a28c
0ede3d2dd142aa21a50ae68b52e612a79e6d9e6b
/src/reader.py
352b9c1241a8d06ef42bae4f729ceebc906a40a3
[]
no_license
yancai/TextAnalyser
f62700150b7aa179b4d124e4605c43b6831371d3
e011089fb90f78d51569e6e5304b7ec3922a34c9
refs/heads/master
2016-09-05T22:24:16.583980
2013-05-09T05:43:44
2013-05-09T05:43:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,573
py
# -*- coding: utf-8 -*- #!/usr/bin/python # Author = 'yancai' # Date = '13-4-14' import codecs import simplejson import datetime import chardet import copy import os from model.model_copy import characters, table class Reader(): def __init__(self): self.table = copy.deepcopy(table) def get_id(self,...
[ "yancai915@gmail.com" ]
yancai915@gmail.com
3807d388af745242e706f2bb498ca4887e7d8ad5
ecd4b06d5d5368b71fd72a1c2191510a03b728fd
/6 - introduction to databases in python/count of Records by State.py
1a718a86aaba2d5c28da2d05dd2855263e57b0c8
[ "MIT" ]
permissive
Baidaly/datacamp-samples
86055db5e326b59bfdce732729c80d76bf44629e
37b4f78a967a429e0abca4a568da0eb9d58e4dff
refs/heads/master
2022-07-27T01:18:00.700386
2022-07-18T19:27:23
2022-07-18T19:27:23
123,827,284
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
''' Often, we want to get a count for each record with a particular value in another column. The .group_by() method helps answer this type of query. You can pass a column to the .group_by() method and use in an aggregate function like sum() or count(). Much like the .order_by() method, .group_by() can take multiple col...
[ "daulet.urazalinov@uptake.com" ]
daulet.urazalinov@uptake.com
46c6217199b12f0638d326e049cb76e3ae9f519a
fe501cd591cde7a95af07bce7f2e3428c9829174
/blog/views.py
c33bbbdd44242868247fb3c3e670c214597e29be
[]
no_license
mattmakai/django-1-4-boilerplate
6d8c98cacc6363b30afe77f5a88c946fa58efd28
8f13e191736f81a705828ddec9a62a5fb2b1c0cd
refs/heads/master
2020-04-14T19:20:33.341174
2012-07-05T13:29:39
2012-07-05T13:29:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,192
py
from models import BlogPost from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponse from django.core.exceptions import ObjectDoesNotExist from django.db.models import Q from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_protect f...
[ "makaimc@gmail.com" ]
makaimc@gmail.com
9c80c8b261b02516094f26d6d268e4c8c1cb929e
d7bda270836a614f21b590abe6f679dbeb467147
/radiussecrets/RadiusSecrets.py
aba539dba437e6a7bb95a4dcdbf9e319b68bbcab
[]
no_license
craighagan/PythonRadius
3e02561b1c7ada7e8a27ea1388afba602869bf1b
d657c2fb04a04330108ce3b8274a03c2157d67b5
refs/heads/master
2020-05-07T12:47:15.031580
2014-04-25T03:30:51
2014-04-25T03:30:51
19,129,017
0
2
null
null
null
null
UTF-8
Python
false
false
23,452
py
from radiusconstants import * import boto import time import json import base64 import re import platform import string import random import logging import sqlite3 from boto.dynamodb2.fields import HashKey, RangeKey, KeysOnlyIndex, AllIndex from boto.dynamodb2.layer1 import DynamoDBConnection from boto.dynamodb2.ta...
[ "hagan@cih.com" ]
hagan@cih.com
a79f92ea6a9a521701ddcca0cb6e2e3f6eb8635f
e32230533cf8b29e3db2a14a6040332d9769b16f
/env/bin/twistd
77793ec93e4e4b3136b2312559c5865cfc3d81a5
[]
no_license
darshDM/chat-room-channels
2b138d9106177344a23b94f0e5822b51f47e1234
1a2d5e5037f326cfef430c133a8502d05f1fbb70
refs/heads/main
2023-02-11T11:16:37.958844
2021-01-09T09:28:23
2021-01-09T09:28:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
251
#!/mnt/5A6A2DF76A2DD095/project/6th/env/bin/python # -*- coding: utf-8 -*- import re import sys from twisted.scripts.twistd import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "darshmamtora2122@gmail.com" ]
darshmamtora2122@gmail.com
a0927a606cbae55dc3f9765935b7c438c9e5bfdd
35ca1feaa1baf7843f6e3847198e56e729e0555a
/lesson1.6_step07.py
c7b7d24acc5276e786c50b65a7795541fde68b6e
[]
no_license
StoreMVC/Auto-tests-course
6bf86adfa57c8823b18c94b410d9b7652c40e500
16fb170dfd964545453c2ed49b3579680959dc51
refs/heads/master
2020-08-14T05:16:14.330811
2019-10-14T18:09:26
2019-10-14T18:09:26
215,104,473
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
from selenium import webdriver import time try: browser = webdriver.Chrome() browser.get("http://suninjuly.github.io/huge_form.html") elements = browser.find_elements_by_css_selector("[required]") i = 1 for element in elements: element.send_keys(str(i)) i += 1 button = brows...
[ "StoreMVC@yandex.ru" ]
StoreMVC@yandex.ru
441b350b35705f4619ffd1ec523cc71c3391facb
a4398add0be818925a34544c5933287492059aab
/compute_idf.py
2b2cb0c8e2cd447f7985e6d1c73621b613d0b27e
[ "MIT" ]
permissive
neulab/code-bert-score
ac9e4c312af700d9db4a914cd056567d5789feab
16e4e489700c2de510e3a5027217841a4d14f1ed
refs/heads/main
2023-07-09T04:16:21.811372
2023-06-25T11:17:55
2023-06-25T11:17:55
538,173,233
101
9
MIT
2023-06-25T11:17:57
2022-09-18T16:40:46
Jupyter Notebook
UTF-8
Python
false
false
1,979
py
from argparse import ArgumentParser import datasets from transformers import AutoTokenizer from tqdm import tqdm import pickle from functools import partial from collections import defaultdict from math import log from code_bert_score.utils import get_idf_dict def default_count(num_examples): return log((num_exam...
[ "urialon1@gmail.com" ]
urialon1@gmail.com
71a1987f65749e123abe8d4ab519826b34bf172a
bec8f235b1392542560166dd02c2f0d88c949a24
/examples/twisted/wamp1/rpc/simple/example2/server.py
2e21dcdeffdb7ac18f40f3c1c3790e7731539144
[ "Apache-2.0" ]
permissive
gourneau/AutobahnPython
f740f69b9ecbc305a97a5412ba3bb136a4bdec69
5193e799179c2bfc3b3f8dda86ccba69646c7ee3
refs/heads/master
2021-01-15T22:02:32.459491
2014-07-02T13:34:57
2014-07-02T13:34:57
21,437,288
1
0
null
null
null
null
UTF-8
Python
false
false
3,564
py
############################################################################### ## ## Copyright (C) 2011-2014 Tavendo GmbH ## ## 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 ## ## h...
[ "tobias.oberstein@tavendo.de" ]
tobias.oberstein@tavendo.de
8f192133264c7c08d002c1c08f67a4dab1982a32
0ac5a000e1322291e1fe76dd17bf667ddfff8faf
/Bouble-Trouble--master/game.py
bb4c1dfbef209e0a4102b69bda8eb3c08cd502fd
[]
no_license
wajahat420/Bubble-Trouble-Game-on-Python
cbc118063b099d21ee3b7bd1cb2512e7d834766e
c3388e7117342e3979f85babccb53717970722e7
refs/heads/master
2020-05-19T02:14:04.532180
2019-05-03T15:01:41
2019-05-03T15:01:41
184,775,683
1
0
null
null
null
null
UTF-8
Python
false
false
2,604
py
import pygame import time clock = pygame.time.Clock() white = (255,255,255) black = (0,0,0) blue = (0,0,255) green = (0,255,0) red = (255,0,0) lightBlue = (173,216,230) color1= (101,45,104) color2= (240,238,196) color3= (247,148,30) color4= (33,64,134) color5= (0,230,118) display_width = 800 display_height = 600 gameD...
[ "shayanmustafa11@gmail.com" ]
shayanmustafa11@gmail.com
5422b522692c425a45fb1dac4ceb3d2ff7d26fee
4e9e83fb8e2da33369eaa14174e45119b00b2dc8
/tutorial/mnist_train.py
70ecd006031975f2e2e75c58e4ff65f458f1f005
[ "BSD-3-Clause" ]
permissive
BalanceWing/examples
48626b27ded92d4fbed691c6fb0c7165dcc09aed
5969d022a7e0bb113207226d872ccfe1872a0616
refs/heads/master
2020-06-05T18:19:38.883329
2019-07-25T09:57:52
2019-07-25T09:57:52
192,509,317
0
0
null
2019-06-18T09:31:30
2019-06-18T09:31:30
null
UTF-8
Python
false
false
2,958
py
import torch from torch import nn from torch import optim from torch.utils.data import TensorDataset from torch.utils.data import DataLoader import torch.nn.functional as F import numpy as np from pathlib import Path import requests import pickle import gzip # get and process data def get_data (train_ds, valid_ds,...
[ "noreply@github.com" ]
noreply@github.com
628ab203934b97b7b16396406bf8920db09c6edf
1561b7ffc4c996cf8c480c2415c4828ebfd84625
/python_study/python_tutorial/tutorial1/_16_using_name.py
36fe26bf255e1953e1391f028d53c91e06fa2105
[]
no_license
haixuanwo/BOOK_codec
61211b239dbf7267e73dd4650410b0c021d67014
d96591b0ed1b4310dbb96159d6230d692cfe0f92
refs/heads/master
2021-09-07T19:57:08.626291
2018-02-28T05:57:52
2018-02-28T05:57:52
115,320,602
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
#!/usr/bin/python if __name__=='__main__': print 'This program is being run by itself' else: print 'I am beging imported from another module'
[ "haixuanwo@users.noreply.github.com" ]
haixuanwo@users.noreply.github.com
3ccf655441626fee556afe8864ce3b4f10b1ea36
e873deaded75f1e711d310d09cbbe12f64ff5559
/FE.py
02bc44d09f0ed104a552b4a737981557256b0f02
[ "MIT" ]
permissive
UW-ERSL/Fourier-TOuNN
7a6d3b655b96ac03e3aa75d703b129d97b2f8bdf
fce3b8a43fa426e16be16d5a05bdb81b71a773b0
refs/heads/main
2023-07-16T15:08:13.591069
2021-09-04T20:49:31
2021-09-04T20:49:31
360,926,306
3
1
null
2021-04-23T16:16:52
2021-04-23T15:21:19
Python
UTF-8
Python
false
false
1,742
py
import numpy as np from scipy.sparse import coo_matrix import numpy.matlib import cvxopt import cvxopt.cholmod import torch from gridMesher import GridMesh from quadMesher import QuadMesh #-----------------------# class FE: #-----------------------# def __init__(self, mesh, matProp, bc): i...
[ "achandrasek3@wisc.edu" ]
achandrasek3@wisc.edu
ad1c203c7a732ca9ec21f499fc2ab7b808c076de
1e12eb238eb942c35543af80bfa2c62d2188d11d
/mysite/settings.py
655d895802e26c0dd501a8116837588c5dfaa331
[]
no_license
tania89d/my-first-blog
4fb0d04233b199d6047fa64affb032be46cba685
00071ea61bc0c8e9a43600135447632a7234c016
refs/heads/master
2021-01-18T20:11:34.566442
2016-10-27T15:13:25
2016-10-27T15:13:25
72,121,322
0
0
null
null
null
null
UTF-8
Python
false
false
3,235
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.9.10. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os #...
[ "tinel.hajkova@gmail.com" ]
tinel.hajkova@gmail.com
f2524c8aac5047e8df7b39934eb9c36faf418259
c73e3f1983c9c5f870c40b1c084bf8f081e79f54
/src/fetch_data.py
1f3f72956a6869d4462d657d0a3816d0cba1f881
[]
no_license
Winnie1024/food_recognizer
6a98de6e59d5e91da9aa612f9f609e2583f0ce2e
1093904d16c1923110576faf97cc50f61731ffca
refs/heads/master
2021-09-10T16:18:03.576333
2018-03-29T05:09:12
2018-03-29T05:09:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,896
py
import os,sys,time import pickle as p import random, math import numpy as np class_num = 2 image_size = 32 image_channels = 3 #从文件中读取所有数据【label,image_data】 def unpickle(filename): with open(filename, 'rb') as f: dict = p.load(f, encoding='bytes') return dict #分离文件中的label和data def load_data_once(filen...
[ "hujn3016@163.com" ]
hujn3016@163.com
8730042d5233046229d2ff24bc29de5638271ac9
2afc946a870e4c8bf2c2b2c05012aae5d531ed04
/autoSearch/carros/admin.py
d944b28b37c1c3a422d34bc3e03d08a70aa66480
[]
no_license
chema0714/examen_desarroweb_1
01eb30cd30d05ea3407ddd702f6a58b39954f493
b989d95defdda11f8e6dac2232813b8e7d71de50
refs/heads/master
2021-08-15T03:45:08.920476
2017-11-17T08:20:18
2017-11-17T08:20:18
108,313,734
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin # Register your models here. from .models import Car class CarAdmin(admin.ModelAdmin): list_display = ["make","Type","year","colour","price","created"] searchfield = ["make","Type","year","colour"] list_filte...
[ "josemavh@gmail.com" ]
josemavh@gmail.com