blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
44df4dcf17e329ecfa0dc1322e01f7781d412da7
c3ad52c73b7d918932a1cf31b2ade9f48d0dc4a2
/lino_book/projects/team/wsgi.py
c3796cbfbaca65ca5b039f940d0062ac89d7c749
[ "BSD-2-Clause" ]
permissive
khchine5/book
db48d800aac323fbb50ebc26167f0be02e3477b5
b6272d33d49d12335d25cf0a2660f7996680b1d1
refs/heads/master
2020-12-28T19:34:13.592286
2018-08-22T07:23:34
2018-08-22T07:23:34
58,850,532
1
0
BSD-2-Clause
2018-08-19T12:27:51
2016-05-15T08:03:56
Python
UTF-8
Python
false
false
416
py
""" WSGI config for superlists project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
297dbfe8602834f4797d5e5d7a7dd90597615a5a
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_binlog_clear_policy_response.py
935af92de8fbb7f55e5faea1f885bcdd215c91cb
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,831
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class SetBinlogClearPolicyResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
043efa442dd452c0eff7f619de7ea394af93981a
7cf8cc1f944946f0378da2e6af4ba1c89466dfb4
/dbconnector.py
16f6a0d672ffa809e3434f3739f363da0023aca5
[]
no_license
ashilz/pythonnew
8abd164f757efaefa2216d663db2082c241cf4f5
5b57e0f1211a67671999bd3a1cae064318ab1e2f
refs/heads/master
2022-12-10T21:22:02.597080
2020-09-16T06:01:53
2020-09-16T06:01:53
292,829,812
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
import mysql.connector db=mysql.connector.connect( host="localhost", user="root", password="Ashil333!", auth_plugin="mysql_native_password" ) cursor=db.cursor() sql="SELECT VERSION()" cursor.execute(sql) data=cursor.fetchone() print("Database version: ",data) db.close()
[ "ashilantony333@gmail.com" ]
ashilantony333@gmail.com
fdd4510c68c081929de07559683941fe8168de87
c87b3d41f4a7afb75733c53c810588d1cc87d828
/review_sentiment/wsgi.py
ca2f7a9b334696da0fe5899fac13a17c861a6925
[]
no_license
susvicky/seminar
c5601423f60c36ad2b44ab05f312fc52a745f598
580ce4bfc34a63458f6ad6f8abb5935f1418591b
refs/heads/master
2023-02-24T06:59:05.472513
2021-02-01T16:41:28
2021-02-01T16:41:28
334,999,174
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for review_sentiment 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
[ "susvicky393@gmail.com" ]
susvicky393@gmail.com
4f768229d4c87d06441f81a93ae972add2e23983
6d713f120794849f32bf66544d133ef50889c40a
/setup.py
bd62fe2b613dfcb1120179c0f69450609f01bd2c
[]
no_license
stothe2/maru
5889092c91210b297b61283c10b5ecfadbd16bb4
749e017fbf3fd757b89ab31f0bf81f0ea36cfac6
refs/heads/master
2020-04-26T21:06:11.007032
2015-03-29T00:52:16
2015-03-29T00:52:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,307
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ distribute- and pip-enabled setup.py """ import logging import os import re from setuptools.command.install import install as Install # ----- overrides ----- # set these to anything but None to override the automatic defaults packages = None package_name = None pack...
[ "hahong84@gmail.com" ]
hahong84@gmail.com
f2d192a279a465cd0da09663607672fb9a7a6d8b
a045055cb41f7d53e1b103c3655a17dc4cd18d40
/python-master/kubernetes/test/test_v1_daemon_endpoint.py
6b209e0c35ca46df33c6e5352667445de9ff6abb
[]
no_license
18271693176/copy
22f863b180e65c049e902de0327f1af491736e5a
ff2511441a2df03817627ba8abc6b0e213878023
refs/heads/master
2020-04-01T20:20:28.048995
2018-11-05T02:21:53
2018-11-05T02:21:53
153,599,530
0
0
null
null
null
null
UTF-8
Python
false
false
962
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
[ "906317366@qq.com" ]
906317366@qq.com
77eb55506ed931c36654ce2d0a5a6c2482183496
be44c827a826d9d73f1901b7e32ed25ffd63c325
/challenge 1.py
c092f93e80537e51ae74673083b0d9b20a6e4d35
[]
no_license
rajesh005/python
51bf58279731d42032bbeb984be3cf03c77c9b1e
7d13e5e72d7e20e889c5d4b345e48929c47a2991
refs/heads/master
2021-03-22T04:20:08.358091
2017-09-22T19:35:40
2017-09-22T19:35:40
104,265,824
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
name = input("What is your name?") age = int(input("what is your age {0}?".format(name))) if age > 18 and age < 31: print("huray, you can enjoy the holiday") else: print("I am sorry, you are not allowed for this holiday")
[ "arajesh1@umbc.edu" ]
arajesh1@umbc.edu
91ed3d06bf69cff60c4eb62e7eb7ebdb9657bb70
6a7953d4bcd4f63786c774dec742092d0ecac971
/voicemap/metrics.py
d80738c480ac850e4250caea7f6e1d1bb0a7d44e
[]
no_license
Vanova/voicemap
f636f139fd8aac3fb74df60e0862f49256ad5b9f
8d9a4d777a0611eba393d8733fa80dbab1f2c6d4
refs/heads/master
2020-05-25T06:37:25.530694
2019-09-13T07:30:01
2019-09-13T07:30:01
187,670,745
0
0
null
2019-05-20T15:48:09
2019-05-20T15:48:09
null
UTF-8
Python
false
false
2,500
py
import numpy as np import sklearn.metrics as skm def eer(y_true, y_pred): """ EER for binary classifier y_true: ndarray, [smps; 1] y_score: ndarray, [smps; 1], real valued scores of classifier # Output EER value """ fpr, tpr, thresholds = skm.roc_curve(y_true, y_pred, drop_...
[ "iva427@mail.ru" ]
iva427@mail.ru
fa09bfa08d15dd8cb19373e64b6add0653565c83
6a893c0e3cd9e73be6aa4401d14017ebcb802953
/venv/bin/pip3
49f23255fd988bb13d3aff95dda0c76b661eeda1
[]
no_license
Gobinde43/Ex1
2929034c38442481af8197581591e4f694db6e1f
fc164761aef6d3457fa80b2382f45831f14a2a07
refs/heads/master
2020-03-28T11:10:59.311248
2018-09-10T16:29:49
2018-09-10T16:29:49
148,185,890
0
0
null
null
null
null
UTF-8
Python
false
false
399
#!/Users/belen/PycharmProjects/Ex1/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' 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]) sys.ex...
[ "belenlinacero@gmail.com" ]
belenlinacero@gmail.com
625783ed57b057e3e185b620b215e217d6f0ca6c
eabf86b6e381ab13d08c60003437946857fefcad
/PyShop/products/migrations/0002_offer.py
9355bbe40081d5110238eb0b8ace19147fa6ce5f
[ "MIT" ]
permissive
ejrach/exercises-mosh
4a1d471e513a1c0f7ff78b25c0bff5b0ba699f23
baaa02dff58652a9910d654be9bdd3e76dece9b7
refs/heads/master
2023-03-20T12:10:13.836764
2019-10-01T14:39:35
2019-10-01T14:39:35
198,443,046
0
0
MIT
2023-03-03T07:12:07
2019-07-23T14:04:41
JavaScript
UTF-8
Python
false
false
618
py
# Generated by Django 2.1 on 2019-07-29 15:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.CreateModel( name='Offer', fields=[ ('id', mod...
[ "eric.rach@gmail.com" ]
eric.rach@gmail.com
cc6c5f74b00f256727c6ae1e80e9db76bbab3144
0d905aab1b7c1eb2a8b0c04b94d3047adced56ab
/products/migrations/0001_initial.py
3a1373268cc5132bad7d00b1b9dcd6c7ebd8eabe
[]
no_license
samishken/python-django-onlinestore
3ff83f418029181c54916b6834e4ba515dfd2d13
61f1a2c461a08e5262c98ad4a794eaf2676704f5
refs/heads/master
2020-05-04T02:58:32.465186
2019-10-22T23:33:55
2019-10-22T23:33:55
178,938,086
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
# Generated by Django 2.1 on 2019-04-01 18:16 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(au...
[ "samuel.haile.ga@gmail.com" ]
samuel.haile.ga@gmail.com
2c5579eaa66d8bcd568be4c8d7fb7c389c6c475e
2f71bf4a00e33404d4ff2c4121412b2ca08f518c
/video_classes.py
453e8761cfa97872909d243e7654b30e7945fcbb
[]
no_license
briskkk/video_info_obtain
6c9e7103a621f9c8143ecf1cf853a4f1b999e988
1b85e8c199f425bac12c4a6c2edb5ab30125a5fb
refs/heads/master
2020-04-09T10:57:12.547352
2018-11-29T14:13:28
2018-11-29T14:13:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
# -*- coding:UTF-8 -*- class Video(): def __init__(self,video_aid=None,video_title=None): if video_aid: self.aid = video_aid if video_title: if isinstance(video_title,unicode): video_title = video_title.encode('utf8') self.title = video_title a...
[ "18120126@bjtu.edu.cn" ]
18120126@bjtu.edu.cn
79936fa84285e98af4596782a8a456f500bb3e74
95dba78b83dfb1e9bdfcba4964ea48fe725bff33
/cadenas/cadenas.py
54e4383c8e79c092b8afd6138d52439065796961
[]
no_license
engelcituk/python-bases
36d5fa5cdb73cf87f1ace429beb130519004d841
2303fc3482f91889f7d0a95f607a5cace18e3f75
refs/heads/main
2022-12-20T16:41:21.548026
2020-10-04T22:41:39
2020-10-04T22:41:39
300,962,375
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
texto = "Este es una cadena" # los strings al igual que las tuplas, son inmutables resultado = len(texto); #para saber la longitud de la cadena print(resultado) primeraLetra = texto[0] #similar a hacerlo con las lista o tuplas ultimaLetra = texto[-1] #trae el ultimo elemento del string penultimaLetra = texto[-2] #tra...
[ "programaciondyn3.mx@sandos.com" ]
programaciondyn3.mx@sandos.com
1c8d914ba6adc344ea26ae605e8c92c396c17221
dcc38f2d59a609523c2624f4c361e522d6b3360f
/UpWork_Projects/residential-reits/clipperrealty/gBucket.py
9c855cb1f7bcb8870bd0ce95a7fac9a6d476022d
[ "MIT" ]
permissive
SurendraTamang/Web-Scrapping-1
096572319b0a5d6411c6a0b8812baaad8c9a772e
e82dab1685d6d5429950d08f71f58ee6f97653cd
refs/heads/master
2023-04-04T05:30:38.270111
2021-04-13T18:15:40
2021-04-13T18:15:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,547
py
import os import pandas as pd from google.cloud import storage import gzip import csv from datetime import datetime import smtplib from email.message import EmailMessage def send_email(body): EMAIL_USER = os.environ.get('EMAIL_USER') EMAIL_PASS = os.environ.get('EMAIL_PASS') msg = EmailMessage() msg[...
[ "p.byom26@gmail.com" ]
p.byom26@gmail.com
fbf588d645769abcd13434ffe49d6404d58725c6
ac4b9385b7ad2063ea51237fbd8d1b74baffd016
/.history/utils/ocr/handle_image_20210209135127.py
1135c639d20f290cadf012273d5562fc4ccd1ea3
[]
no_license
preethanpa/ssoemprep
76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f
ce37127845253c768d01aeae85e5d0d1ade64516
refs/heads/main
2023-03-09T00:15:55.130818
2021-02-20T06:54:58
2021-02-20T06:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,735
py
import os import cv2 import re import numpy as np from PIL import Image import pytesseract from pytesseract import Output from fpdf import FPDF ''' IMAGE HANDLING METHODS ''' # get grayscale image def get_grayscale(image): return cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # blur removal def remove_blur(image): r...
[ "{abhi@third-ray.com}" ]
{abhi@third-ray.com}
3c79eb5b77740128d1f1643ffc6b9fb5be3338ca
27eb66e8d768f16a176766001ccaac79ded8a901
/src/tools/tree_to_gas.py
136e6e2306be4d0115985d6b77a9c793d4523b46
[]
no_license
LukeEcomod/TreeBoxModel
d683df5caf7ac7f4186fd5a588bc7bbb6ecf2975
8cdbe86de9b08bc71841f831dfd8cd14eec8ed55
refs/heads/main
2023-08-17T23:31:10.692566
2023-05-23T07:07:07
2023-05-23T07:07:07
244,628,430
0
0
null
2023-08-14T22:25:59
2020-03-03T12:19:08
Python
UTF-8
Python
false
false
3,763
py
from typing import Dict, Tuple import numpy as np def convert_tree_to_gas_properties(model, gas_dims: Tuple, c_gas_soil=0.0) -> Dict: '''Convert tree properties in model.py to gas properties to be used in gas.py''' r, r_mask = convert_tree_radii_to_gas(model, gas_dims) h, h_mask = convert_tree_height_to_...
[ "optikkanen@gmail.com" ]
optikkanen@gmail.com
bc6fcd4d1fdd870fd6a3d1cfae12828f6c8c1f05
c9e1c95d79a61c2dc909e79a4e45bd779cf119ec
/hw02/main.py
b4304bd0d64d16e26a93dd191241136825af379b
[]
no_license
wq-LearnHub/IS
1a136210b5d57a78aca7dea69ac7aba1b588c368
894ff7622dd425e8e1816c0e273a19e488340272
refs/heads/master
2022-01-27T22:14:38.326789
2018-12-01T11:23:57
2018-12-01T11:23:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
907
py
import turtle def move(x, y): turtle.up() turtle.goto(x, y) turtle.down() def ls(x,y,z): move(x, y) turtle.setheading(z) turtle.begin_fill() for i in range(5): turtle.forward(46.264) turtle.right(144) turtle.end_fill() turtle.setup(width=0.9,he...
[ "noreply@github.com" ]
noreply@github.com
4b8e155e4c2aaf46296152fc46d589b1cf6822ba
40f4417f983fdd9176d003577dfd06934801e26d
/bananas/management/commands/syncpermissions.py
fd5b1d4b8c8ea2bacf52e37ed3ccce7e0167b3da
[ "MIT" ]
permissive
lydell/django-bananas
8709adafabbbc8511a4738cb82a55e14617b35e3
42a72a7c5af15bb3ae4fe014bcbc443644044c07
refs/heads/master
2023-06-04T18:33:56.747112
2017-09-28T14:26:52
2017-09-28T14:26:52
105,158,794
0
0
null
2017-09-28T14:29:47
2017-09-28T14:29:47
null
UTF-8
Python
false
false
1,482
py
from django.contrib.auth.models import Permission from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = "Create admin permissions" def handle(self, *args, **options): if args: raise CommandError("Command doesn't accept any arguments") ...
[ "jonas@5monkeys.se" ]
jonas@5monkeys.se
1e2ac21c895dbf7785efeca235de30dbd913ec1e
e45efe468372014c9b9e6c62a6bdd70611dc47a9
/database/mapmaker/migrations/0005_auto_20150626_2120.py
ec6cda4235a77905d959b97f4175a3f8e8678a12
[]
no_license
nepakala/hostgator-django
90e626f8f3a2f339a284c862d5190bc059c5ab72
98d8d8f74e1a2732ab5dc8f75d58eb076757d591
refs/heads/master
2021-01-12T07:48:01.262560
2015-10-21T15:43:26
2015-10-21T15:43:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('mapmaker', '0004_city_company'), ] operations = [ migrations.AlterField( model_name='city', name='co...
[ "areagan@newbreedmarketing.com" ]
areagan@newbreedmarketing.com
1bbe3d98d272b21dcdc471326b887f7e3836e070
ddbaed1e0707b6bb4f388e11d4038c340c2ede16
/EstruturaDeRepeticao/Ex_11.py
31469419965fdcdcc618796024e76eb61073dcca
[]
no_license
JoaoZati/ListaDeExerciciosPythonPro
bb3ca47c8488029f1be5984f3256c15ec1123e9a
0fda738590813a6526c688213898504e3e58a165
refs/heads/main
2023-07-13T13:36:17.334002
2021-08-21T20:26:21
2021-08-21T20:26:21
395,388,834
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
#%% 11-Altere para mostrar soma """ Altere o programa anterior para mostrar no final a soma dos números. """ while True: try: num_1 = int(input('Digite um numero inteiro: ')) num_2 = int(input('Digite um numero inteiro: ')) except ValueError: print('Os Numeros tem que ser inteiros') ...
[ "noreply@github.com" ]
noreply@github.com
12e987c5a4b573b3ed6fa91f2c42fc5933d70d60
db6f57d0da04eb0baa840c6b0486545eafa784b8
/py_backwards/transformers/__init__.py
d0cb70eb51b6ac028f624a98b5f89f8bfe90ec7f
[ "MIT" ]
permissive
JacksonKearl/py-backwards
49ddaaf3891be5ff7bd978d3070bd253d6b49aad
6ad0b864eebecbd23c319c2c569159931e45b811
refs/heads/master
2021-01-20T04:36:29.362742
2017-04-28T12:37:02
2017-04-28T12:37:02
89,704,552
0
0
null
2017-04-28T12:35:27
2017-04-28T12:35:27
null
UTF-8
Python
false
false
1,874
py
from traceback import format_exc from typing import List, Type from typed_ast import ast3 as ast from typed_astunparse import unparse, dump from autopep8 import fix_code from ..types import CompilationTarget from .dict_unpacking import DictUnpackingTransformer from .formatted_values import FormattedValuesTransformer fr...
[ "nvbn.rm@gmail.com" ]
nvbn.rm@gmail.com
f0ab5a59b3a151e150796fcdf89cf12dc3b7b9fa
145bf6912b4ec6602fe5ca2486db5dc6121cb9e4
/console.py
10001a71c5869a1631302219814394ff82706049
[ "Apache-2.0" ]
permissive
CW2X/idewave-core
03a8da474c9fb60fb0dcf1900f12f9d5b9a4b157
a48ee0ce3ff8f05e6baf9c34c01f21ae51f555fe
refs/heads/master
2020-09-12T01:47:05.996471
2019-09-03T06:15:42
2019-09-03T06:15:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,379
py
import argparse from DB.CreateDB import create_db, create_tables from DB.DropDB import drop_db from DB.Fixtures.Loader.load_world_data import load_world_data from Account.AccountManager import AccountManager from World.Object.Item.ItemManager import ItemManager from World.Object.Unit.Spell.SpellManager import SpellMa...
[ "sergio.ivanuzzo@gmail.com" ]
sergio.ivanuzzo@gmail.com
8cd47b841ad575b55bb9be73bdc8df9e6dbcf60e
d5500d243e0067413390ae7402be55a10f98bbbf
/tests/unit/test_general.py
a6abbdf24807cb6ed52e07acce0c91ca7bb66dca
[ "MIT" ]
permissive
lumi-io/boards
cbc5a844033ad67f39e45c681fddba091a7220d9
d56aafc70e0eede8e3027159bfb755023c4ecbb3
refs/heads/main
2023-04-25T20:33:43.668297
2021-05-28T19:05:22
2021-05-28T19:05:22
306,117,913
5
0
MIT
2021-06-08T15:31:51
2020-10-21T18:47:29
Python
UTF-8
Python
false
false
166
py
def test_homepage_with_fixture(test_client): """Testing to see if server is running.""" response = test_client.get('/') assert response.status_code == 200
[ "jybang@bu.edu" ]
jybang@bu.edu
5e95d64ec34ad4194d5831f1bcdd85b880724440
9271b14425ceaaf0741b758229cb7a8ab9ad8a85
/reset.py
c5a59c3612d42a69d043d0bdfe13ebd991130c97
[]
no_license
jeg100/Sebastian
78a6273d8fea3372fb0a6ae0489c35674dbd9636
6f9f4ac2eac8bfa153f8846d6829cd341f570334
refs/heads/master
2021-03-16T13:35:51.767993
2021-01-22T18:18:50
2021-01-22T18:18:50
246,912,030
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
### Author: John Grezmak ### ### Reset the Sebastian robot using reset function with mode=2 import time from med_Sebastian_info import * from Sebastian_library_Maestro import Sebastian # Create instance of Sebastian class reset_config = reset5_pos_info # Choice of reset configuration robot = Sebastian(center_pos_i...
[ "noreply@github.com" ]
noreply@github.com
025216dbecfd085dfb8c137b57bfa829d502fccc
7fe5fea5abfe7e6a88730ebb5ee8beb4dd3498c2
/GammaStack/sampletask/urls.py
db67ec686f1f7620941b32197613a9db94d74cf2
[]
no_license
RITESH-Kapse/GammaStack-Assignment
5c984db711dc8faae0be217b8efee2e041c5a1c1
ca647c643900b8030cd6b866e6cf1200ccd21ca1
refs/heads/master
2023-05-02T20:51:36.399628
2021-06-01T20:49:12
2021-06-01T20:49:12
372,957,448
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
from django.urls import path from . import views urlpatterns = [ path('', views.hello, name="hello"), ]
[ "riteshkapse1992@gmail.com" ]
riteshkapse1992@gmail.com
1af4d6fffa03acec2ae8ac89440f41245004a03e
46cb7d5fc2585bffce006f6d81cef9edbe961e87
/2020-08-19/treasure_hunting.py
e72d5585373e201c56703f3ef552022178820d49
[ "MIT" ]
permissive
garciaha/DE_daily_challenges
b17dbe1697552330fe237168855530e247d89d29
90805a1d0275647fafecc80ed2cf3548d1b47bff
refs/heads/main
2023-06-16T23:46:37.576470
2021-07-16T00:00:14
2021-07-16T00:00:14
382,933,335
0
0
null
null
null
null
UTF-8
Python
false
false
1,816
py
"""Helping Alex with Treasure Alex and Cindy, two students who recently spent some time on treasure hunting. Apart from scrap metal, they found a number of boxes full of old coins. Boxes are of different value and now are lined up in a row. Cindy proposes an idea to divide the treasure into two parts. She thinks tha...
[ "hectorg@fb.com" ]
hectorg@fb.com
5e7e06f4d1c2518189980b9f44976d4630237971
262e1c150b075ecf25b80301a768e74b8b986940
/external-scripts/airthings-wave/find_wave.py
9fc10f35b3222c723d62a5d422e1c44f62a9b05e
[]
no_license
yfaway/openhab-rules
30bbd2bfe696fd65f2747b8153bc592903de350c
c64c9e109173277b6b4b2473adaac9d2da623cdb
refs/heads/master
2023-07-29T01:21:29.980812
2023-07-15T19:52:36
2023-07-15T19:52:36
133,594,317
10
1
null
null
null
null
UTF-8
Python
false
false
2,537
py
# MIT License # # Copyright (c) 2018 Airthings AS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
[ "yfaway@yahoo.com" ]
yfaway@yahoo.com
789a81cae226d145195fe982245809cdba32eee0
022b8014f17ae9c46da9de67ad0b7d27d9a242ed
/tools/g15.py
ae407bf77fa1a472696b5977469b06292178b1fd
[]
no_license
endlessnessbruh/tf2-config
b6a62b47b43901f1ceb348b794a4737b79c17d4a
d254248f2607a7331f4cd66408a8122e9ca65fad
refs/heads/master
2023-03-15T19:26:26.908298
2013-12-31T04:00:48
2013-12-31T04:00:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,754
py
#!/usr/bin/env python from console.console import Console from mumble.point import Vector3D from overlay.overlay import OSD from PyQt4 import QtCore, QtGui from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtOpenGL import * import re import pprint debug = False class GrowingList(list): def __setite...
[ "andrew.hardaker1995@gmail.com" ]
andrew.hardaker1995@gmail.com
b20ca43deed3e0f9a76f5b0683505ae22844ec20
a70d43926850eec6790da93fbe2fffdf5a29965f
/tests/autopilot/uitests/main/test_main.py
ce12ff1163e8542d3b98df1ce0404e5a5d6e31d9
[]
no_license
zan-xhipe/spaceship
672098fee505d5802ba3e8d7de9723694fa02d35
984d6e197f48d7fa5c46d7ab8fbeffd6c2c0989e
refs/heads/master
2016-09-06T12:42:59.727384
2013-07-25T18:56:36
2013-07-25T18:56:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- """Tests for the Hello World""" from autopilot.matchers import Eventually from textwrap import dedent from testtools.matchers import Is, Not, Equals from testtools import skip import os from uitests import UbuntuTouchAppTestCase class MainTe...
[ "blob626@gmail.com" ]
blob626@gmail.com
04ed9edffce7cc3ed47ba731938608c4a4d98992
e6233098a835fd3041b189888358731203aefd43
/burstACS.py
ac28eb9097f896415328ca572bc42e4033d4cb8d
[ "Unlicense" ]
permissive
akononovicius/python-stats
0edf05a4bf5260d9f3a3cbbb6c27d7ba0e6332bc
4627057719277f75d769aa25c2484ee7241e2568
refs/heads/main
2021-11-12T10:47:42.316008
2021-10-25T17:41:26
2021-10-25T17:41:26
144,122,601
1
0
null
null
null
null
UTF-8
Python
false
false
3,347
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ## ## Burst statistics analysis as described in [Gontis et al., ACS, 2012]. ## import numpy as np # # Prepend and append series with fake data so that first and last bursts # do not become lost # def __PrepSeries(s,thresh,delta=1): series=s.copy() if(series[0]<t...
[ "aleksejus.kononovicius@gmail.com" ]
aleksejus.kononovicius@gmail.com
6d3f78774df64f55e3ec9f83c05c4d9766829aa0
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/network/v20200401/get_policy.py
962e6ebed92836613177fffb74f9a4f6d43965c1
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,728
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
noreply@github.com
e19e952f8114ff1d46b331e100eea2c2f95e901d
71f2b1a20caa53b1ec735341a54310978b17c886
/FastSpeech.py
9c6d2065a82de766385e21add5fffe33aaf7a588
[]
no_license
meelement/fastspeech-2
22bf0d4db2a3334070b2e80808bed112b19db5ed
fc2786d14715f385795b2bb7d44c8707b1c5e0ff
refs/heads/master
2022-03-04T03:37:26.872253
2019-10-29T16:02:36
2019-10-29T16:02:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,728
py
import torch.nn as nn from transformer.Models import Encoder, Decoder from transformer.Layers import Linear, PostNet from Networks import LengthRegulator import hparams as hp class FastSpeech(nn.Module): """ FastSpeech """ def __init__(self): super(FastSpeech, self).__init__() self.encoder ...
[ "ssumin6@gmail.com" ]
ssumin6@gmail.com
93c18c059b48e6bae10a44e89e491708a20f986f
b96a4062f5ad420dd02efed82b47dd9c249cb46c
/pytorch_lightning/plugins/training_type/parallel.py
f3c825fe9cd7aaf39df26ff0443433ebc4b626d5
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
borisdayma/pytorch-lightning
ebc210a1e7901b5f87ab67e4886bfe20b478fe33
4b7c0fae00084b72dffe37fdd0ea7d2e9b60d103
refs/heads/master
2021-11-23T07:34:01.842134
2021-02-19T17:00:27
2021-02-19T17:00:27
238,756,095
1
1
Apache-2.0
2020-02-06T18:27:51
2020-02-06T18:27:50
null
UTF-8
Python
false
false
4,617
py
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
noreply@github.com
0e253c2a0f309e9ea44cfbc0c86039ca87bd630e
dec1f4c491c7f325d7e58afde08cef8a47f33261
/security_check/U_57.py
5c61b34a70db3cc917c85741c906ade5cea6a2e9
[]
no_license
wespito/BoB-Linux
adc8767789911fc70eaacde0b8cd244f57697a65
e6a8ec81330de57dc1d5f7b09bd8681cb248a5af
refs/heads/main
2023-07-08T05:11:56.493580
2021-08-15T09:29:31
2021-08-15T09:29:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,826
py
# [U-57] UMASK 설정 값 점검 # 2020/11/27 : 노무승 # 1. 매뉴얼에 나와 있는 UMASK 설정 파일 리스트에 # 추가로 조사해 설정 파일 여러 개 추가함. # 2. 기본적인 UMASK 설정 값은 /etc/login.defs에 저장 됨. # 3. /etc/pam.d/common-session, common-session-noninteractive 파일 내부에 설정을 추가해 시스템 전체 UMASK를 지정 가능함. # 4. /etc/bashrc, /etc/bash.bashrc에 설정을 추가해 UMASK를 지정하는 것도 가능함....
[ "67176669+black6765@users.noreply.github.com" ]
67176669+black6765@users.noreply.github.com
e742888cc0187e291a1a46392a8299f283286861
8e2dd8979702ea7b95236385fe1b1e7715c3af56
/handlers/__init__.py
8ca692956d4027e89b1e8ca54a6f9ec9cbf61139
[ "WTFPL" ]
permissive
Watch-Dogs-HIT/Watch_Dogs-Server
061c8724e4ddc80bfdaa676fdfe412fddce86cab
3dfcb412197c56d6fcbf1a7e12f4fcaf16ca1eae
refs/heads/master
2022-01-13T00:49:20.024591
2019-06-22T01:57:27
2019-06-22T01:57:27
172,664,891
4
0
null
null
null
null
UTF-8
Python
false
false
4,483
py
#!/usr/bin/env python # encoding:utf-8 """ Watch_Dogs base handler """ import os import json import traceback import tornado.web from tornado import gen from conf.setting import Setting setting = Setting() def byteify(input_unicode_dict, encoding='utf-8'): """ 将unicode字典转为str字典 reference : https://ww...
[ "h.j.13.new@gmail.com" ]
h.j.13.new@gmail.com
c855770ff311e1c544bf7b358a41914de8212a82
c24b9c8dfd47527db9f6cd5158a1a0562e03f46c
/GalDynPsr/galpyMWBHpl.py
76608c27f5d2787f8ae752a15e7ed521b18d40b1
[ "BSD-3-Clause" ]
permissive
pathakdhruv/GalDynPsr
a165c082e0cb97ebfdb359b88ec73e749b7264fb
ed9b582454c3a09a1351cdd2cd529a3a50068e1d
refs/heads/master
2021-04-28T14:29:56.029738
2018-10-14T09:55:29
2018-10-14T09:55:29
152,193,421
1
1
null
null
null
null
UTF-8
Python
false
false
1,798
py
import math from galpy.potential import MWPotential2014 from galpy.potential import PowerSphericalPotentialwCutoff from galpy.potential import MiyamotoNagaiPotential from galpy.potential import NFWPotential from galpy.util import bovy_conversion from astropy import units from galpy.potential import KeplerPotential from...
[ "pathakdhruv9786@gmail.com" ]
pathakdhruv9786@gmail.com
0edcaf04d837804f4cce7e34b0e01714f1c7e38a
2a9922b22a075ff0a373c6db8d269b625d672829
/fashionist/constants.py
5d6c17d146d212721dc187c4b21a7ac0f4caee7f
[]
no_license
WhhhzFdUNpun/distributed_fashion_mnist
e7328546e342629620defcad13c7e32cc84f3fa1
85f25d8fef81e1f0d02e2af2fd6a7a1ff76ba019
refs/heads/main
2023-09-01T08:31:27.764049
2021-10-21T16:05:43
2021-10-21T16:05:43
419,788,839
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
from pathlib import Path PROJECT_DIR = Path(__file__).parents[1] STORAGE_DIR = PROJECT_DIR / 'storage'
[ "agata.migalska@alphamoon.ai" ]
agata.migalska@alphamoon.ai
254012a45627f62cf14136792d64f56fd48523d5
c53d57b6ea5b117d8fa260a29942cf9422a46063
/examples/DeepWisdom/speech_autodl_config.py
d833f42a3efde61c0177599bfe9c6640cdc4f2e3
[ "Apache-2.0" ]
permissive
zichuan-scott-xu/automl-workflow
c52ee6c7c01347274a6b1d6801a7889daa35a40d
d108e55da943775953b9f1801311a86ac07e58a0
refs/heads/main
2023-04-01T16:20:10.885273
2021-04-14T05:44:48
2021-04-14T05:44:48
327,514,705
0
0
Apache-2.0
2021-01-07T05:41:38
2021-01-07T05:41:38
null
UTF-8
Python
false
false
3,487
py
import os import json from collections import namedtuple import copy # Config for Covertor IF_RESET_TFGRAPH_SESS_RUN = False TF_DATASET_TO_NUMPY_MODE = "graph" # eager/graph # os.environ["CUDA_VISIBLE_DEVICES"] = "1" # 全局配置数据 autodl_global_config = { "meta_solution": { "cv_solution": "DeepWisdom", ...
[ "zhengying.liu@polytechnique.edu" ]
zhengying.liu@polytechnique.edu
ed1765e3a5caedf0c2941f564b78d88cedcb7aaa
82e46ddaeca0a9147f0da00f3edc7c25e2b52596
/project08_django_mineralcatalog2/minerals/tests/tests_models.py
51d878ee633b631e181419808af303c94ced4557
[]
no_license
sabinem/treehouse-python-techdegree
8f0fd57681fa0cc620e4c3bfa7553a6647bbef06
8bfbba09132b405f7c68cbfd9a0e7596223c3a53
refs/heads/master
2021-09-15T05:21:25.631722
2018-03-07T08:20:11
2018-03-07T08:20:11
121,496,395
3
1
null
null
null
null
UTF-8
Python
false
false
11,679
py
""" Tests for the minerals app's models --------------------------------------------------------- - The Database is filled with data by the datamigrations, Therefore testdata is already available and must not be created. """ import os import re from django.test import TestCase from django.conf import settings from dja...
[ "sabine.maennel@gmail.com" ]
sabine.maennel@gmail.com
c04ca627ca582efb45ec32439fa345f6c40a0feb
27e0651ada3d891fe88467e2158daab11b58947d
/goodtables/processors/schema.py
1944a5a8d645cc3a8ae503e8884b8ab9615f6d90
[ "MIT" ]
permissive
mychapati/goodtables
f94a017b4b9c476621b71839e20a22b05cce7314
3c81af866951ca340ca441e66f25a3597d15c8ee
refs/heads/master
2021-01-17T06:27:06.215070
2015-06-07T13:44:11
2015-06-07T13:44:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,893
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import jtskit from . import base RESULTS = { 'schema_001': { 'id': 'schema_001', 'name': 'Incorrect Headers', 'msg':...
[ "paulywalsh@gmail.com" ]
paulywalsh@gmail.com
cb9f0a252c18c9148ff97d724c5ff0ef3776dd78
1a5392dad90182c521753127d04a4e7c367fca0e
/app.py
fac131be0dd4d7e9b90ff32935cec6a2834994b9
[]
no_license
Cvam06/digiflux-monitor-backend
eb5799c50e3713bfb8392835399f321bc7f9a5e4
5f7a4b0f38f2e7217c8d983285c6acc7b1de9db4
refs/heads/master
2023-02-12T12:34:48.336672
2021-01-08T17:34:23
2021-01-08T17:34:23
327,970,590
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
from digifluxMonitor import app #Run Server if __name__ == '__main__': app.run()
[ "cvam612@gmail.com" ]
cvam612@gmail.com
0660ad18789747b956180df9c82ae52168af5906
803988c9f1d649456757395d37ed6a657e4ddaf2
/04-code-golf/tf-04-pn.py
87c6b3e3da3aec7af073ba2fab74f6ce08db6882
[ "MIT" ]
permissive
aglie/exercises-in-programming-style
81a3d6af444830cf6667803f4e15ac551b4690bf
e0cf1639266c48ebc29b164fe156886a4267027a
refs/heads/master
2021-01-15T10:53:32.307052
2013-11-27T05:07:42
2013-11-27T05:07:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
# My golf score is slightly lower! # Best wishes, Peter Norvig import re, sys, collections stopwords = set(open('../stop_words.txt').read().split(',')) words = re.findall('[a-z]{2,}', open(sys.argv[1]).read().lower()) counts = collections.Counter(w for w in words if w not in stopwords) for (w, c) in counts.most_com...
[ "crista@tagide.com" ]
crista@tagide.com
08527f6b7228c02ce9b5815eefa3d666d57cbfd4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/320/usersdata/279/87865/submittedfiles/lecker.py
2edf18ff90115c4a8a56d88b79c72f2c4e082079
[]
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
381
py
# -*- coding: utf-8 -*- import math a1=float(input()) a2=float(input()) a3=float(input()) a4=float(input()) r=0 for i in range (1,5,1) : if a1>ai : r=r+1 for i in range (1,5,1) : if a2>ai : r=r+1 for i in range (1,5,1) : if a3>ai : r=r+1 for i in range (1,5,1) : if a4>ai : ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3aad4316f5e3d0680f707d2ec4ca589b34723030
f7dde2747e2acc74e38c564931ff88f508a1f8e8
/app/settings.py
1fd219103dbaa08730990af97f159eea7c53c933
[]
no_license
pavancse17/user-activity
8c1013985c9bf14e8bffc71a08bfcf65cae42555
43d65224d062507040475be4687254c86cf4c567
refs/heads/master
2021-05-22T19:31:59.764556
2020-04-04T21:56:17
2020-04-04T21:56:17
253,059,830
0
0
null
null
null
null
UTF-8
Python
false
false
3,217
py
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
[ "pavancse17@gmail.com" ]
pavancse17@gmail.com
fbdd233413a6754cd7a5c5829353797caec260d7
143fd49858528d25d4695b4563be5defe701a61f
/0x0F-python-object_relational_mapping/model_city.py
f3aeeaefd948fa3bfb0ef99fc14a0316df809d6e
[]
no_license
jemn21819/holbertonschool-higher_level_programming
a64e0ead14165542d3eb17cf10c8b915e1f8570e
bb8ad3e7c15086fcd3d94f1d103ac38bc851e01f
refs/heads/master
2023-04-17T10:24:35.623482
2021-05-04T21:22:58
2021-05-04T21:22:58
319,295,963
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
#!/usr/bin/python3 """ Module that contains class definition for City """ from model_state import State from sqlalchemy import Column, Integer, String, ForeignKey from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class City(Base): """MySQL table cities""" __tablename__ = 'cit...
[ "jmartinez21834@stu.nuc.edu" ]
jmartinez21834@stu.nuc.edu
7339d5cfe2b6347fb993b26b03f127bb7483a24e
aa5d01cced9078c099ef62f0e1701ca078068ecb
/unitology/tests/test_views.py
a628013ecb687862870ac06c8e6e754ca20c5416
[ "MIT" ]
permissive
erikvw/django-unitology
951323c5adf2021f73908d8e04395e599a58c476
646c1867c8d838254aac714c7abb76787b219510
refs/heads/master
2020-09-05T13:15:52.104990
2019-03-23T16:35:16
2019-03-23T16:35:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,870
py
# -*- coding: utf-8 -*- from django.test import TestCase from django.core.urlresolvers import reverse from unitology.variables import IMPERIAL, METRIC class ReloadViewTest(TestCase): def test_weight_multi_field(self): data = { 'from_units': IMPERIAL, 'to_units': METRIC, ...
[ "basil.shubin@gmail.com" ]
basil.shubin@gmail.com
5a66c03536fed0e76c58d291c12b60c3d4ea7df6
ad2d2381951fc30514f8039528bf41954b62f39e
/python2/day03/Chating/chat_server.py
50595704621d489cd137c9dc898f58b0aec6f057
[]
no_license
seyoung5744/Basic-Python-in-playdata
bbb30213434aead1e13c3d6367916cc222dcddb3
facb4d852ee963f0244a2e69cc02af77730e8104
refs/heads/main
2023-04-30T14:18:09.526009
2021-05-14T02:12:39
2021-05-14T02:12:39
310,472,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,696
py
import socket, threading soc_list=[] #채팅방. 연결된 클라이언트 소켓 def client(soc, addr): soc_list.append(soc) #방금 접속한 클라이언트 소켓을 리스트에 담음 while True: data = soc.recv(1024) msg = data.decode() if msg=='/stop': soc.sendall(data)#본인한테 /stop 전송 soc_list.remove(soc) ...
[ "seyoung574458@gmail.com" ]
seyoung574458@gmail.com
a0e244a92dc257cd1ab3627c339d5d5b068f0ebe
d4977816258bb4e28398009833aba07b8243cfa6
/CSDNspider/searchsql.py
8d3e9fdd8016972914bf6464e36b3ac89d23fc2f
[]
no_license
junbaibai0719/csdnPaChong
eb7b1fe6e6d0539b7b02e4df1f8274c156cbe068
aa7a9a4fff12114ee707f4a3eb882853fe8f773e
refs/heads/master
2020-07-31T19:35:02.408743
2019-09-25T01:43:16
2019-09-25T01:43:16
210,728,710
1
0
null
null
null
null
UTF-8
Python
false
false
3,936
py
import sqlite3 class MySql(): def __init__(self, database): # 连接数据库 self.database = database self.conn = sqlite3.connect(self.database) self.cursor = self.conn.cursor() self.cursor.execute('''create table if not exists urldata (url char primary key ...
[ "junbaibai0719@gmail.com" ]
junbaibai0719@gmail.com
465e51513b0e0ec554100f6204b4bffb90706563
49479554c1992a9961102e3be9f1d38f40374a0c
/rolling_subs_calculator.py
04b866b8dcd196c6d5602543888f4458f986c9f0
[]
no_license
DavidJMilligan/rolling-subs-calculator
db8536d50477a83420acb253ec6ed5b732ee28bd
8fbe890197efe512e9083cbe94c1565b9525f3c6
refs/heads/master
2021-01-19T16:24:35.092042
2017-04-23T10:52:53
2017-04-23T10:52:53
88,262,209
0
0
null
null
null
null
UTF-8
Python
false
false
2,401
py
#!/usr/bin/env python3 """The rolling subs calculator calculates the amount of time each player on a team will have on the pitch, times substitutions should be made and which players are subbed on / off at each substitution. """ # Capture match variables. These vary week to week and will be set from the web app in fu...
[ "david@davidjmilligan.com" ]
david@davidjmilligan.com
4b181b086fab85df2ebf93e93bfacba96ccf632b
9e7ad8fa87a588719afa9f123a94331b44816e94
/approachs/approach3/quickinfopanel.py
d830232291319f51ab2bbbb3d7444e6947fd71d7
[]
no_license
gvSIGAssociation/gvsig-desktop-scripting-quickinfo
f15582e2fe3e6b4fc0e2afd782e60b38e300d233
b231e83d07096fc75a38f9e925e2985806c84252
refs/heads/master
2023-05-26T05:16:55.611023
2023-05-17T09:56:04
2023-05-17T09:56:04
108,833,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
# encoding: utf-8 import gvsig from gvsig import getResource from gvsig.libs.formpanel import FormPanel from org.gvsig.tools.swing.api import ToolsSwingLocator class QuickinfoPanel(FormPanel): def __init__(self, layer=None): FormPanel.__init__(self,getResource(__file__,"quickinfopanel.xml")) self.setLayer(...
[ "jjdelcerro@jjdc-Lenovo-G50-70" ]
jjdelcerro@jjdc-Lenovo-G50-70
7ced69003bd43f17bb30a6e19950b5c6713be817
7d87ed96be5ad70d4d394b40c3baa8a65ff531d5
/main.py
e2fa4d6d684499da81fa88e16fb4123621710f1c
[]
no_license
CyberPopPunk/Technical_Inventory
077c68065029804a2519a60e240b9382810affba
ba8e2309563366b801cf818780105ac61cfe16f3
refs/heads/master
2020-04-28T08:33:34.795304
2019-03-12T04:04:22
2019-03-12T04:04:22
175,132,713
0
0
null
null
null
null
UTF-8
Python
false
false
7,912
py
# Work inverntory log for HAC equipment # 12/4/2018 # Save Items to different SQL tables in a db and take inventory easily # Three main functions: Input Data, View Data, Take Inventory on Equip # import ui import sqlalchemy as sa from time import sleep conn = sa.create_engine('sqlite:///tech_inv.db') inspector = sa....
[ "noreply@github.com" ]
noreply@github.com
c5cce2bee68e0f0d25386a2d6d4b08d99adee80a
4ede4657c68979d7447aff783deb6b192e6edd88
/core/utilsForProcessing.py
3431eed17c635ca8ce7742978c391233994eeee6
[]
no_license
zerodeku/tracking3d
7cba6e567fc2776a73f2351b6da6248bca3b598a
8557ea99b24a9dc4063f7e1892b54c16c6fa4564
refs/heads/master
2021-01-20T17:54:36.086409
2016-07-06T22:08:24
2016-07-06T22:08:24
61,503,057
1
0
null
null
null
null
UTF-8
Python
false
false
4,153
py
# -*- coding: utf-8 -*- """ Created on Tue Aug 05 14:27:06 2014 @author: tcolomb """ import os from Tkinter import * import csv from guidata.qt.QtGui import QFileDialog, QMessageBox import numpy as np from os import listdir from os.path import isfile, join from matplotlib import pyplot as plt #%% MessageBox to take...
[ "zerodeku@science.mpi-stuttgart.mpg.de" ]
zerodeku@science.mpi-stuttgart.mpg.de
042a7387750534b05b32d92c9d59e401c4ac6ab4
940e44d76c5688f5920e875b260b28247ff0a81c
/config/local_settings.py
13874ce0138119b8d12daedcb48c285bf3ecfd27
[]
no_license
ignsv/centr_osvita
d267fb2fc41f8e8a28e6e880c1a8b38b2dc39544
efaa930d566bed50a6d664b0906ef7fc5e5f1c46
refs/heads/develop
2022-12-11T16:53:09.426981
2020-09-29T09:49:00
2020-09-29T09:49:00
250,006,828
0
0
null
2022-11-22T05:07:57
2020-03-25T14:50:43
Python
UTF-8
Python
false
false
7,065
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import environ import raven ROOT_DIR = environ.Path(__file__) - 2 # (/a/myfile.py - 2 = /) APPS_DIR = ROOT_DIR.path('centr_osvita') env = environ.Env( DJANGO_DEBUG=(bool, False), DJANGO_SECRET_KEY=(str, 'CHANGEME!!...
[ "krylov1295@gmail.com" ]
krylov1295@gmail.com
faedbf448d91f3277c8f273d58c15188f4123932
1194311067114c15c33601f12c5c92819317aefe
/pySpikeSorter.py
54ea678285097703e2119f1652a8c7e5511154fd
[]
no_license
vhazocar/pySpikeSorter
8b08f18635ec9170b177c0c7a61e7e590197f829
6fa4f872e57b84deadd82b33d0c110aa2245901d
refs/heads/master
2020-05-30T08:39:09.684203
2016-01-21T21:03:38
2016-01-21T21:03:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
152,267
py
#!/usr/local/bin/ipython -i #---------------------------------------------------------------------- IMPORTS import os filename = os.environ.get('PYTHONSTARTUP') if filename and os.path.isfile(filename): execfile(filename) import sys import re import tables import numpy as np #import pdb # extra widgets import ...
[ "hemanzur@gmail.com" ]
hemanzur@gmail.com
420dbb78c75611b7d1e8bd3addfb16fb0a70735f
c08b5c091f40eed4c6ded8a5ecfad5105f57d6d3
/users/migrations/0001_initial.py
8e01acce9a47f448025659bda39472937f1830c0
[]
no_license
fofochi1/book_project
e0f5e1d1b390261d0853d7fc2fc6a5d4febca27e
3a8cff45743fac1b0b5c90c04783d40b5c9bd8a9
refs/heads/main
2023-04-22T00:57:37.566751
2021-05-12T20:03:50
2021-05-12T20:14:27
366,843,151
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
# Generated by Django 3.2 on 2021-05-03 21:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
[ "alfonsobuzeta@gmail.com" ]
alfonsobuzeta@gmail.com
648959589e6ed0862ce63ccc8803fe68dd14dc8b
6518c74441a68fc99b2b08423b5ea11480806499
/mlflow/entities/model_registry/model_version.py
51f05ad4b0f376817479b3c2724d0c4345121abb
[ "Apache-2.0" ]
permissive
criteo-forks/mlflow
da58e64d09700623810da63999a1aca81b435b90
499284d8dc9e9ec79d8d9dbd03c58d162a2b7eaa
refs/heads/master
2023-04-14T17:59:29.997458
2022-01-11T09:50:26
2022-01-11T09:50:26
191,391,769
5
4
Apache-2.0
2023-04-07T15:16:20
2019-06-11T14:44:00
Python
UTF-8
Python
false
false
5,635
py
from mlflow.entities.model_registry._model_registry_entity import _ModelRegistryEntity from mlflow.entities.model_registry.model_version_tag import ModelVersionTag from mlflow.entities.model_registry.model_version_status import ModelVersionStatus from mlflow.protos.model_registry_pb2 import ( ModelVersion as ProtoM...
[ "noreply@github.com" ]
noreply@github.com
06df3ab7ee3b32c6ad05329bec7d6a3373fe7fc5
7fa90c8825c16b07309e295b003fe3173eae3d73
/(N^K).py
4ed6c01e914dc71e51476737a07dbbc74e733a00
[]
no_license
chanduvenkyteju/pythonprogramming
e3e86309af0819e70a3f2af1c7b8cf524274d978
7ee742a205d8ae25b1d96f9cf5d1416d5460672a
refs/heads/master
2021-06-17T21:41:44.368019
2021-02-02T08:54:22
2021-02-02T08:54:22
145,967,045
0
3
null
null
null
null
UTF-8
Python
false
false
47
py
N,K=map(int,(raw_input()).split()) print(N**K)
[ "noreply@github.com" ]
noreply@github.com
e09d9ca19abc53c9973aa8bba0419f984ea718e2
b2c070e09bff49241fcff98bcde825cfa96e93ca
/Coding Club India/Asked Amazon Interview Questions/DeleteMidLL.py
8a324900c83b3a9a801c9d8e8677d1381ac50b54
[ "MIT" ]
permissive
Beryl2208/CI-2
dcb1b923f9c4f1f8b167c36c8b22a80522322c53
f671292dad2695e37458866442a6b951ba4e1a71
refs/heads/master
2022-12-26T19:11:28.559911
2020-10-06T06:27:51
2020-10-06T06:27:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
''' class Node: def __init__(self, data): self.data = data self.next = None ''' def deleteMid(head): ''' head: head of given linkedList return: head of resultant llist ''' if head == None or head.next == None: return None slow = fast = prev = head while ...
[ "AbhiSaphire@github.com" ]
AbhiSaphire@github.com
46533526bd0e768c9966f1d4fbb49fbbcd2c703f
4fb0e63c0170aa6ddac587e8ad367be96702d682
/bookmarks/account/views.py
89b26c5387719ad63da597b9ea026082142b05df
[]
no_license
devvourer/bookmarks
3984d21e42022284c0348a9350b05a12e0755a61
9b6dd1600a9813fe5c2e613e0e1de82d4861dcb2
refs/heads/master
2023-04-12T22:58:12.803811
2021-04-27T12:40:58
2021-04-27T12:40:58
360,501,787
0
0
null
null
null
null
UTF-8
Python
false
false
5,063
py
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm from .models import Profile, Contact from...
[ "beksultan.toktobekov@mail.ru" ]
beksultan.toktobekov@mail.ru
310d15eb8903a5656daba033737ea2e55507c9f0
df20a12d6ab69a4e35b4aa3150650cb499a30125
/python/pcs_api/oauth/session_managers.py
1dfe4a2c8221ef48d9a4294194b06d290af6604c
[ "Apache-2.0" ]
permissive
clinthidinger/pcs_api
a46077a473ae49dbbf8889afe4022f2b2ae059c7
20691e52e144014f99ca75cb7dedc7ba0c18586c
refs/heads/master
2021-05-28T19:15:32.512734
2015-06-14T06:48:44
2015-06-14T06:48:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,075
py
# -*- coding: utf-8 -*- # # Copyright (c) 2014 Netheos (http://www.netheos.net) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ "contact@netheos.net" ]
contact@netheos.net
242f93be836d60b8ec00df8a2ef34c03e9bf5c74
9f28ddc579e52a0491e599cfcd29c044ef230a2f
/sudoku/classifier/classifier.py
9bbb53cdca8220b054449f5123634291ccb5c52c
[]
no_license
Blitzliner/sudokuSolver
d596005f13b45af27c8fe66554c73d684920bd99
f2ef0c01d62b3968a6fd8c7ad6e48442c7d70a50
refs/heads/master
2022-04-28T17:19:06.906979
2020-04-28T15:11:31
2020-04-28T15:11:31
259,655,030
0
0
null
null
null
null
UTF-8
Python
false
false
3,955
py
import os from keras.models import model_from_json import cv2 from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import Flatten from keras.layers.convolutional import Conv2D from keras.layers.convolutional import MaxPooling2D from keras.utils import np_...
[ "manuel.jasch@student.reutlingen-university.de" ]
manuel.jasch@student.reutlingen-university.de
9e5c388fb096b78adf854e6c99a848f76cb54e7e
580e92fe97ccf6fac70e483230429d6aaf31edc4
/constellation.py
cc419d942b3ef0f2123de7b1f24fba61606918bd
[]
no_license
mitooos/orion-constellation
c9aa4fd751eb38e9893669075a485ce91bd80c09
b0bed824db676f041435a517210b8ae61f44d475
refs/heads/master
2020-03-21T06:29:15.311245
2018-06-21T21:38:58
2018-06-21T21:38:58
138,223,704
0
0
null
null
null
null
UTF-8
Python
false
false
6,474
py
# coding: utf-8 # ## Project: Visualizing the Orion Constellation # # In this project you are Dr. Jillian Bellovary, a real-life astronomer for the Hayden Planetarium at the American Museum of Natural History. As an astronomer, part of your job is to study the stars. You've recently become interested in the constell...
[ "ma.hoyosr@uniandes.edu.co" ]
ma.hoyosr@uniandes.edu.co
417726b5fa7e74d09c1f9cb39aada7b694389d42
0170a7ddf23644ab0eb071356609cd894b5d6c80
/structure.py
226ce3d0b708331160c524dfcb4a1eb8b6e6b29c
[]
no_license
jakobgager/Exp_Struct
07d2a8935cb50aaeb23e7f759539ae2797058a1e
7a8e6ba1d0f57b9f6398a4a2d788f13fdb91a672
refs/heads/master
2021-01-10T21:01:50.306877
2013-05-17T22:31:18
2013-05-17T22:31:18
10,111,090
2
0
null
null
null
null
UTF-8
Python
false
false
5,240
py
#! /usr/bin/env python from math import sqrt, ceil def fbd_template(tempdict): return """ # Crosssection Pnt P1 -{l2} -{w2} -{h2} Pnt P2 -{l2} -{w2} {PC1z} Pnt P3 -{l2} -{PC1y} {h2} Pnt PC1 -{l2} -{PC1y} {PC1z} Pnt P4 -{l2} 0 {h2} Line L1 P1 P2 {L1div} Line L2 P2 P3 PC1 {L2div} ...
[ "jakob.gager@gmail.com" ]
jakob.gager@gmail.com
baf1cf3480c7a29e01545d0f677b8586e5dcb3ef
d7a68c636e6128533b17975655bd6b46ed222916
/adapter-transformers-adapters3.1.0/src/transformers/adapters/models/distilbert/adapter_model.py
4f8c9fa7becdd8743a176268a5067ccb1cabde93
[ "Apache-2.0" ]
permissive
cambridgeltl/autopeft
69179f8faf2cc4d2164ff78e544dc3fe2d39c331
d8ad6bea93aa413a54d0e09fe25bdd62b46cfcf5
refs/heads/main
2023-05-23T09:21:59.912941
2023-04-25T14:35:31
2023-04-25T14:35:31
594,316,585
26
4
Apache-2.0
2023-04-25T14:35:32
2023-01-28T06:39:25
Python
UTF-8
Python
false
false
10,915
py
import warnings import torch.nn as nn from ....models.distilbert.modeling_distilbert import ( DISTILBERT_INPUTS_DOCSTRING, DISTILBERT_START_DOCSTRING, DistilBertModel, DistilBertPreTrainedModel, ) from ....utils import add_start_docstrings, add_start_docstrings_to_model_forward from ...heads import ( ...
[ "hz416@cam.ac.uk" ]
hz416@cam.ac.uk
0e8e1d1fa3c2116e867073461282f3f321b8439b
ac1b2a94702f2a46435d11c529dc70145093320d
/snake python/snake.py
59e5c487cca36390398b0b168d2c1d107441aac3
[]
no_license
Savagekenya/snake-game---python
b788524bb850ab0be086acb52f3193b70dcaf216
b411b38030abe8a757cb276b17b6b6b6380741df
refs/heads/main
2023-08-14T03:43:16.641891
2021-09-27T18:02:55
2021-09-27T18:02:55
410,990,618
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
import curses from random import randint # setup window curses.initscr() win = curses.newwin(20,60,0,0) # y,x win.keypad(1) curses.noecho() curses.curs_set win.border(0) win.nodelay(1) # -1 # snake and food snake = [(4, 10), (4,9), (4,8)] food = (10,20) win.addch(food[0], food[1], '#') # game l...
[ "noreply@github.com" ]
noreply@github.com
34c6b5a3e9929c4caefdb3d38794d5be3e66dadb
7671e76cc3abb76f910eacb9b8782e0cc19b871e
/app/paciente/admin.py
42170f575e46a591ef8f460741450a64dcf45013
[]
no_license
bruno-ralmeida/PI_2020.1
28b2378efa203945987ae95605efa31b75fcb9a3
c97e3579c20d5022ff6bc89b617e19d73a78b5b0
refs/heads/master
2022-09-22T07:13:09.427756
2020-06-01T02:01:00
2020-06-01T02:01:00
246,153,264
1
0
null
null
null
null
UTF-8
Python
false
false
311
py
from django.contrib import admin from paciente.models import * class lista_pacientes(admin.ModelAdmin): list_display = ('id', 'nome', 'sexo', 'data_nascimento', 'cpf', 'rg', 'carteira_convenio', 'peso', 'altura') list_display_links = ('id', 'nome') admin.site.register(Paciente, lista_pacientes)
[ "bruno-ralmeida@outlook.com" ]
bruno-ralmeida@outlook.com
7906f052dd2f4b5c78b0ad9a075bbf3e537a9015
0657bf55957f17eed000e41d08c04e3a5d29c637
/user/views.py
a788ac703d5deba12e28964256055118bb7d3c95
[]
no_license
ckant96/UserRegistrationApp
feb11439bf87d1b8c6ae6076c95aba07425fb501
2d377b09c46ddd90190341e3f1f8fefcf17930d4
refs/heads/master
2022-12-24T14:45:56.149559
2020-10-03T12:41:17
2020-10-03T12:41:17
300,821,509
0
0
null
null
null
null
UTF-8
Python
false
false
3,969
py
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from django.template import loader from django.db import connection from django.contrib import auth from django.contrib.auth import authenticate,login,logout from django.contrib.auth.models import Us...
[ "09ckant@gmail.com" ]
09ckant@gmail.com
8f36b2278c2882473204ef1853a2761c11c5d2c3
a05fc652bbc854b39767d7fd56116bf775b471c9
/modules/entitysets/_genericblock.py
233662b0c7299cc210cf71befdef18cc6623b435
[ "Zlib" ]
permissive
Occuliner/ThisHackishMess
20235a2fe23f5a54f7eff495242d6c58dd3e2eda
a801d6a5988705b0d77a4c57b0737012f244fa1d
refs/heads/master
2020-11-26T20:55:56.391909
2013-12-27T23:35:59
2013-12-27T23:35:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,188
py
# Copyright (c) 2013 Connor Sherson # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use of this software. # # Permission is granted to anyone to use this software for any purpose, # including commercial appl...
[ "cppsherson@gmail.com" ]
cppsherson@gmail.com
cfbc87a6930bb46dff53098c47e8ea101e0f2f22
9931cff13b996620f7f486fa38e441ca5096aa16
/starter.py
81f2ca11aa8a198e249d5f2e246cf3441d7352d6
[]
no_license
andregossip/D7048E
429e3cdb5d41e9339371a4ea708302b4960cd058
35f98652c5aa7323abdf0cfd5c9a8d574b3f76ae
refs/heads/main
2023-03-12T22:12:59.275467
2021-03-05T13:31:50
2021-03-05T13:31:50
337,079,827
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
import os import subprocess if __name__ == '__main__': subprocess.Popen("python main.py") subprocess.Popen("python menu.py")
[ "36477978+andregossip@users.noreply.github.com" ]
36477978+andregossip@users.noreply.github.com
bcd3a9bfd5974d395977712da8223f748238c14e
9da620b96436873caa4d0739d0ea1d062d4f1869
/Código/P1.py
ab19a55de6693687b58eb5e5f44562f62922fb2e
[ "MIT" ]
permissive
RodrigoHevia/03Tarea
744dd1ce855354f95a4d6f023575ce35aef75a77
50a20b5864946092573ef91dc0b375cad3aff7f6
refs/heads/master
2021-01-15T12:10:40.788090
2015-10-11T02:45:58
2015-10-11T02:45:58
43,832,852
0
0
null
2015-10-07T17:30:44
2015-10-07T17:30:44
null
UTF-8
Python
false
false
1,886
py
#! /usr/bin/env python ''' El siguiente script resuelve la ecuacion diferencial del oscilador de Van der Pol luego de un cambio de variable, mediante el metodo de Runge Kutta de orden 3. ''' import matplotlib.pyplot as plt import numpy as np fig = plt.figure(1) plt.clf() def rk3_2(f, s0, sf, y0, v0, n) : ''' ...
[ "rodrigo.hevia@alumnos.usm.cl" ]
rodrigo.hevia@alumnos.usm.cl
6737c474b191d70378ee488dbc6534c3ce98e435
cefda53c9bc29fbb3a1994126c859dd26f884ebe
/quantumcomputation.py
849fd1a8d74ebe6f530b88b02f6710e396e6f45a
[]
no_license
trammell/qc-sim
588620462041654e034582889e4e009f93891e61
86d648795ffcc01c971602ed1168c8a869ef122c
refs/heads/master
2020-04-26T02:11:50.176485
2016-10-14T13:08:44
2016-10-14T13:08:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,200
py
from google.appengine.ext import db import math import random class QC: status = 0.0 guid = '' def __init__(self, guid): self.status = 0.0 self.guid = guid def getStatus(self): return str(self.status) ''' ' Creates input state ' ''' def createSta...
[ "sysoev@petroms.ru" ]
sysoev@petroms.ru
35cbb93289fa49079d18580c55167b424379240f
163889b6dae2de23d34b11c0f75874365b672ee1
/Gaming Laptop Battery Life.py
58d86fb63c571735b8787194c88a05971e213ad9
[]
no_license
LawrenceAD/HackerRank-Certification
fbb40821bd0c9abbcfab01febf4778329f87566e
2ba84eaa11c9782544a599b510549087b05af166
refs/heads/master
2023-06-19T21:25:17.858046
2021-06-13T07:22:35
2021-06-13T07:22:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
def getBattery(events): c=50 for i in events: if (i<0): c+=i else: c+=i if c>100: c=100 print(c) return c
[ "noreply@github.com" ]
noreply@github.com
7533be52505a6d76dd6507b4fea541ecd3e82986
b803dd98721dcf0af04bf6f322c82a90254d7bf1
/test HW/calcu.py
aed15807bbe856e38ac6b6e86a63af00604a2172
[]
no_license
DanTeegan/python_tdd_pytest
f418ac6d5cf0dd771caaa7df1054c689c1caf0d7
f966269e552dbc7a5ffd4e5950c67de5de749af1
refs/heads/master
2022-11-13T10:37:57.645505
2020-07-07T19:21:10
2020-07-07T19:21:10
277,508,969
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
# Here we are importing math into our file import math # Here we are creating a class called Calcu class Calcu: # Here we make a method to work out the sq root def find_sqrt(self, num2): return math.sqrt(num2) # Here we make a method to round up def find_ceil(self, num2): return math.cei...
[ "dan.teegan@hotmail.com" ]
dan.teegan@hotmail.com
a5dad3f329e90d477f7e4c2267e433ba19d67069
1bf7be4ba56a2f08ceb2c3f28612e597e9948ef2
/python/8kyu/Returning Strings.py
565514860e0cd68a904534739b7e1970d82b8386
[]
no_license
SaraKenig/codewars-solutions
c5fd499118ff006d5c420e292f33f3f0a05f8681
5c63a2387e2d86debce5f78e3d7fb387c87f998e
refs/heads/master
2022-12-19T21:33:48.056749
2020-10-01T09:08:43
2020-10-01T09:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
# Make a function that will return a greeting statement that uses an input; your program should return, "Hello, <name> how are you doing today?". # [Make sure you type the exact thing I wrote or the program may not execute properly] def greet(name): return f'Hello, {name} how are you doing today?'
[ "betzalelkenig@gmail.com" ]
betzalelkenig@gmail.com
6604e29b58bc7c32c533d2d6036d69e717c399fb
c22e094912582f99a96f2a63cfd1f266111239db
/config.py
bd8b59c17e54b6d7817e939698a2cddfac46d9f4
[]
no_license
syned13/ProjectManagementAPI
42cab4660227f9afb48bcca410ecc858c0f702ad
f30ba766efc2c1a29bf17f03d2f5dc7f3cd97b35
refs/heads/master
2021-05-17T17:20:57.674142
2020-04-05T23:08:47
2020-04-05T23:08:47
250,892,968
1
0
null
2021-05-06T20:01:40
2020-03-28T21:03:02
Python
UTF-8
Python
false
false
168
py
class Config(): pass class DevelopmentConfig(Config): DEBUG = True #dict para las diferentes configuraciones config = { 'development': DevelopmentConfig }
[ "drosario@truora.com" ]
drosario@truora.com
0ffc66b60d96357a82eedef5d3aebf8cd7c2ad4a
0e1b7780cfc63579dd1f0a12cfc0d92317b7227b
/test.py
9a3a6c7a4d9eab9a44dfae1588676f36a698bc9c
[]
no_license
psicktrick/weights_optimizer
3d30e0224d1a9dc79d641a3784397d435de9d81b
821202698a96af25b8bf1ea0c65c06684169016d
refs/heads/master
2023-05-03T21:12:18.507593
2021-05-24T06:08:32
2021-05-24T06:08:32
370,034,424
0
0
null
null
null
null
UTF-8
Python
false
false
12,194
py
import pandas as pd import numpy as np from ga_weights_optimizer import WeightsOptimizer from sklearn.linear_model import LinearRegression, LassoCV, Ridge, LassoLarsCV,ElasticNetCV from sklearn.model_selection import cross_val_score import warnings warnings.filterwarnings('ignore') from sklearn.model_selection import...
[ "poojarysaurabh932@gmail.com" ]
poojarysaurabh932@gmail.com
a193d412aaca282768f56eb475eb1ea80e4e01b8
27e9b46526fcebdcb4de34b8e5bade7708f1ce35
/examples/bigquery_country_codes.py
ad76e3e0c044a4a1ee2fe18a83b304f903e0bd1c
[ "MIT" ]
permissive
openknowledge-archive/datapackage-storage-py
66b75f1eae6292348e479b4d51dd1aea5a09fc8d
379acadf49b8382c9acc6ed54b3f9a2dbf221e05
refs/heads/master
2021-05-31T00:37:12.330573
2016-02-28T17:18:09
2016-02-28T18:52:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
621
py
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import sys from pprint import pprint sys.path.insert(0, '.') from examples import storages # Fixtures dataset = 'datapackage' prefix = 'country...
[ "roll@post.agency" ]
roll@post.agency
60a1f5d492ff853f1d32e4a985007dd7221a56f2
7f95850837db3baf1d85d857b57fb35130fc94a3
/venv/Scripts/easy_install-script.py
5458acc5b655a87ac5b112bed4bc7ad68cfa7550
[]
no_license
SNGxx/tencent-ai-demo
94c0616fdf6b5ec84a8bb4cbd0791de5e94e7ade
dea999e7642d999bff143e87a3c33bbec48c356d
refs/heads/master
2020-03-22T14:23:29.889868
2018-07-08T14:36:14
2018-07-08T14:36:14
140,175,094
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
#!E:\PyCharm-wokspace\test\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
[ "757471557@qq.com" ]
757471557@qq.com
30f6f989789276a07e60d2fe5e33cb7751012f7a
0599162ae41c54db4514a6929cbf8a9a410beb43
/src/ophys_etl/schemas/fields.py
3de11173fad0b623967a857fecdda984835f548c
[ "BSD-2-Clause" ]
permissive
Matyasz/ophys_etl_pipelines
26ca0e42781109a839e25497d3e73c3be30cfc72
e8473fff85cfba816ac17a661783b52f9de8ac8b
refs/heads/main
2023-02-17T20:29:45.102503
2020-11-05T23:54:56
2020-11-05T23:54:56
327,538,144
0
0
null
2021-01-07T07:37:47
2021-01-07T07:37:46
null
UTF-8
Python
false
false
832
py
from marshmallow import fields, ValidationError import h5py class H5InputFile(fields.Str): """ H5InputFile is a subclass of :class:`marshmallow.fields.Str` which is a path to an h5 file location. The file must end with an extension of '.h5' or '.hdf5' and must be able to be opened by `h5py.File`. ...
[ "kschelon@gmail.com" ]
kschelon@gmail.com
498011cf5a5816384528de6b8fdeb73f62a829c6
5c13c04df863cb13f9fa28a815c75865a464978c
/rosout_clean
2c099a79fb386804484d6a0de8c70695b6be50aa
[]
no_license
COD3BOY/probablyscripts
116532efdd8059ecdad1879130519f0d4a3d3cc6
451bc079ea1f55f8594f085285d0457bff2be233
refs/heads/master
2020-03-18T04:19:11.991363
2018-01-25T20:50:30
2018-01-25T20:50:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
301
#!/usr/bin/python import re pattern = '.*\\[ INFO\\] \\[.*?\\]: (.*)' + chr(27) rg = re.compile(pattern, re.IGNORECASE | re.DOTALL) while(True): try: s = raw_input() except EOFError: break m = rg.search(s) if m: print m.groups()[0] else: print s
[ "davidvlu@gmail.com" ]
davidvlu@gmail.com
94344abb60e3bf99a831886f6f3d88662ef74e31
47d4c7ab61991390ca2aea36f61c456aeddaada0
/data.py
69f2ec977b3b2f87aeae7bb686348758ee373ad1
[]
no_license
RuslanPopov98/Flask_Project_2
768ac2a888251b43ba363de4688d0ea5dff5d3e2
201486f0482192b78a878c87b4527724bbf2e4de
refs/heads/master
2023-07-26T15:02:35.859905
2021-09-08T20:54:37
2021-09-08T20:54:37
404,457,040
1
1
null
null
null
null
UTF-8
Python
false
false
26,098
py
goals = {"travel": "Для путешествий", "study": "Для учебы", "work": "Для работы", "relocate": "Для переезда"} days_week = {"mon": "Понедельник", "tue": "Вторник", "wed": "Среда", "thu": "Четверг", "fri": "Пятница", "sat": "Суббота", "sun": "Воскресенье"} purpose_lesson = {"travel": "Для путешествия", "lear...
[ "73123010+RuslanPopov98@users.noreply.github.com" ]
73123010+RuslanPopov98@users.noreply.github.com
c7dacfdb2f24e04f9fe94c315e29c112de6d8f4c
c18fc2aa58818788713f6865ff1c3c7b041a738d
/project2-master/Functionals/__init__.py
abd5bfa7d0ef0fba1c2f58bd7f87d704234722e8
[]
no_license
maor90b/Bartov
5b3df4049132ee233da7d58fff4cdc5d110e0ad7
50708bd3d9b85e1aaa5470bd8a80907057d0b9ae
refs/heads/master
2022-11-26T03:14:27.653421
2020-07-29T14:40:43
2020-07-29T14:40:43
282,659,055
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
str=input("enter: ") str=str[-1::-1] print(str)
[ "68278696+raphaelhazout@users.noreply.github.com" ]
68278696+raphaelhazout@users.noreply.github.com
4495b2520174b3b77e0475b1ece2025a5553d02f
ba8fd32194162e373e6669a51d9d67edce251e10
/Python/instances/gotic_3_3_10_ex1.py
cbf8fd1664f6956a29b7fabc6a916590811db45b
[]
no_license
avidhya06/SiteDepTRPTW
805277445e55a408e96dcdece8292f2552ca428f
0f400d8717fe7da48188cb133e119a69c3ccc1cd
refs/heads/master
2023-03-16T09:58:35.938261
2019-01-05T01:04:56
2019-01-05T01:04:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,413
py
data={ "name" : "gotic_3_3_10_ex1", "nbTIC" : 3, "nbJOB" : 10, "nbCMP" : 3, "speed" : 50, "tics" : [ { "id":"TIC_1", "x":11, "y":21, "t_start":480, "t_end":1080, "cmp_list":[1,2,3,] }, { "id":"TIC_2", "x":26, "y":79, "t_start":480, "t_end":1080, "cmp_list":[1,2,3,] }, { "id":"TIC_3", "x":55, "y":67, "t_start":480, "...
[ "nicolasdupin2000@yahoo.fr" ]
nicolasdupin2000@yahoo.fr
9f667c2714d1c53a42620dcf4ff00a13d613e2ae
887f4beeb3ba480f3bcc7dff1e9eb3d61d445f9b
/console/common/captcha/models.py
1ada08d10622a7562624b6259d9a90bf2fc2be17
[]
no_license
wang-shun/console
ccaa8a1716e2ab6bf5ed6d1c4240cecd4e59f155
50425ff068c4795bf13bd178891da126f8677383
refs/heads/master
2020-04-04T18:15:14.382006
2018-07-09T14:42:42
2018-07-09T14:42:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,120
py
# coding=utf-8 import datetime import hashlib import random import time from django.conf import settings from django.db import models from django.utils.encoding import smart_text from console.common.captcha.conf import settings as captcha_settings # Heavily based on session key generation in Django # Use the system ...
[ "lhongzhan@126.com" ]
lhongzhan@126.com
0a2c971002d678357c1f3f68e02ee8d526e1238e
880b789a2ad03d322768d8f471bdacb0ce205de2
/main.py
71247da411af20ffa4ebaaa6ce5b9cbe88925ff2
[]
no_license
chrisschulz131/NBA_Game_Predictions
31ef440f0b3cbb7322f69c1f2886aeda9027b39d
1603370e7c464db57ef16e7dbaf81de81252c0ff
refs/heads/main
2023-03-02T12:37:22.770605
2021-02-16T00:44:37
2021-02-16T00:44:37
321,150,489
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
""" This class will end up being the script to run the whole project. """ import pandas as pd from sklearn import linear_model from sklearn.preprocessing import LabelEncoder, OrdinalEncoder from sklearn.compose import ColumnTransformer from model.model_class import Model if __name__ == '__main__': model = Model('...
[ "vbts13@gmail.com" ]
vbts13@gmail.com
15448d4c5289de6aea6418b0528790eadfe49f61
429a8441bb9730dcf0e33fedcb5f3672a731b3e7
/xero_python/accounting/models/history_records.py
60ca925cf57bc4fd2c2babc1cafa6f50af1e85cb
[ "MIT" ]
permissive
gregsteelxinja/xero-python
1a26ec3b05ea156dd6848f2ec313c72e9f39b0e2
d0473ba91099de3464b3dffa377df5a11ad95afc
refs/heads/master
2022-12-16T10:54:11.424971
2020-09-01T01:00:23
2020-09-01T01:00:23
291,526,551
0
0
null
2020-08-30T18:16:48
2020-08-30T18:16:48
null
UTF-8
Python
false
false
1,828
py
# coding: utf-8 """ Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.2.14 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_pyth...
[ "sid.maestre@gmail.com" ]
sid.maestre@gmail.com
74e32978392857402ada1f0d62b495f4d755c7e6
bf867f8da531e0f17a57f9d526de7164207f4ac1
/Practico-04/Ejercicio-02.py
e250e74e894d7adf92ae0a0a097805cf204187f9
[]
no_license
nawealvarez/frro-soporte-2018-13
4476b57ce241639297709cfc666b0ac7d07d18f2
0f7f6518ddcf560a1070fe49d7a95fa8a2c850c9
refs/heads/master
2021-04-15T06:02:49.424867
2018-10-17T00:53:31
2018-10-17T00:53:31
126,844,485
0
0
null
2018-07-27T18:44:10
2018-03-26T14:50:08
Python
UTF-8
Python
false
false
2,768
py
from tkinter import * class Calculator: def clearall(self): self.e.delete(0, END) def action(self, num): self.e.insert(END, num) def equal(self): try: self.igual = self.e.get() self.equialidad=eval(self.igual) self.e.delete(0, END) ...
[ "37459045+nawealvarez@users.noreply.github.com" ]
37459045+nawealvarez@users.noreply.github.com
94db800dce4d743a1eb095d92417e8298f1cbb8e
45837f5bf44edf6692efbf256ed79c28a805f7ab
/make_plasmid_derep_db.py
5319e938b6d901af0f9eb23b6617c887c4b977f7
[]
no_license
JoshDaly/TrackMscripts
799dcdecb97a70355cb918ca13c0eb5a6540885d
ec53bd3278d5c1e7fc1e8de8d857a61c2e324a8c
refs/heads/master
2021-01-20T08:48:39.260779
2015-06-04T05:09:03
2015-06-04T05:09:03
31,794,600
0
0
null
null
null
null
UTF-8
Python
false
false
7,732
py
#!/usr/bin/env python ############################################################################### # # __make_plasmid_derep_db__.py - Make plasmid db from dereplicated IMG genomes! # ############################################################################### # # # This program is free software: you can redistrib...
[ "joshua.daly@uqconnect.edu.au" ]
joshua.daly@uqconnect.edu.au
e0bcafb17add192f0c17d976c9987de4a879e0b8
c5a60e12ee8ccfe3d54af7002ea2415dfe1d465f
/lib/parser/map/google/France.py
5f1603979ea11edc2b310ef8b75cc51b7d3f97f1
[]
no_license
ptax/WebCrawler_FR
3e2e34ca4cde20dd3590a4e9d554e744a62d663f
3fa69996862b2d921a594a3160f800486d8c2ab8
refs/heads/master
2020-12-03T03:52:09.027456
2017-09-18T07:23:05
2017-09-18T07:23:05
95,782,184
1
1
null
2017-08-14T06:48:22
2017-06-29T13:46:30
Python
UTF-8
Python
false
false
339
py
from lib.parser.map.google.GMap import GMap as GMap class France(GMap): ADMIN_LEVEL_1 = 'country' ADMIN_LEVEL_2 = 'administrative_area_level_1' ADMIN_LEVEL_3 = 'administrative_area_level_2' ADMIN_LEVEL_4 = 'locality' ADMIN_LEVEL_5 = 'sublocality' ADMIN_LEVEL_6 = 'neighborhood' QUANTITY_O...
[ "10122202z3223544z" ]
10122202z3223544z
18e9eb598fb803d50ba5724cb3c8489254ce1bf4
7e3410923fa4dd4ad1427abb23bba56767f7a80e
/cmain.py
46726a461119cefb782a3a9c42563e4fbc56fdef
[]
no_license
sofken/kyogi
730cca61943fa4941eb15c76f3613a185459e481
f0e9de6fdff6fa7f0a8e57e7bee12660964c6e8e
refs/heads/master
2016-09-06T16:49:04.946823
2015-10-11T18:08:36
2015-10-11T18:08:36
42,280,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,466
py
import math from copy import deepcopy import random import numpy as np from numba import double from numba.decorators import jit import pyximport pyximport.install() import cfunc #stone & stage reading #data = two stone #onedata = one stone #twostage = two stage #onestage = one stage data = cfunc.getdata() #stag...
[ "sofken.hukushima@gmail.com" ]
sofken.hukushima@gmail.com
694f2ef27c13159bf25f60313acfe0fe794edba8
7a41f8a2c9859d4aa46f3418f3c5a927d0319033
/test_imdb.py
9d60165c4885746888dd1e21051671bc1eb4d334
[]
no_license
gffbss/dev-project
174905ac42c68efadbe1f3795a0ed7c5bb68452a
2742b3f8ec9748ac008286caa1e7699eefbe5c35
refs/heads/master
2021-01-25T03:48:41.442643
2014-05-05T20:07:50
2014-05-05T20:07:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
__author__ = 'geoffreyboss' # from imdb import IMDb # # ia = IMDb() # matrix = ia.get_movie('0075860') # print matrix # # # # def median(alist): # # srtd = sorted(alist) # returns a sorted copy # mid = len(alist)/2 # remember that integer division truncates # # if len(alist) % 2 == 0: # take the avg of ...
[ "gboss4@gmail.com" ]
gboss4@gmail.com
f3d03f4c4adbe888a0b055ed9321fec36439c84f
d07287a13ef315057a9a037739176a24a76b68c7
/Project/numberPrime.py
74d4a1b8c6ec63fab82b504010a0a96e6e7b4ef3
[]
no_license
panyisheng/network-security-technology
e99cc6717dd2e14e3bd0cbcf3ec8d1f745cba87e
7f444d7725029a5be72bcbaec7d9027daba0152b
refs/heads/master
2020-03-21T10:35:56.979005
2018-06-24T07:30:35
2018-06-24T07:30:35
138,460,427
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
''' Filename: numberPrime.py Author: Pan Yisheng Description: generate big prime and compute rsa key pair ''' import random from gcd import * from primality_tester import * from random import randrange, getrandbits import time # Function to test primality def NumberIsPrime(n): if (n==2 or n==3): return True if (n...
[ "noreply@github.com" ]
noreply@github.com
64334977d2d5fcc516210f941974a893c1015f0e
bb74ab80ef44f5bd7dc8ac5c7022e6c611f81f9d
/AmazonNet.py
2de79eb61d17f8c81d8dd51fad5a1a1fc2f25991
[]
no_license
xiaofeijiGH/Amazon
710c97f679611db44dfa172bb131220202f8b369
f538621d58e3b2cfda817bafdaa5455e620ac164
refs/heads/master
2020-09-23T13:50:37.810007
2019-12-09T04:29:33
2019-12-09T04:29:33
225,515,081
0
0
null
2019-12-03T02:42:29
2019-12-03T02:42:28
null
UTF-8
Python
false
false
2,717
py
import sys import torch import torch.nn as nn import torch.nn.functional as F sys.path.append('..') class AmazonNet(nn.Module): def __init__(self, game, args): """ torch.nn.Conv2d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, ...
[ "2393421983@qq.com" ]
2393421983@qq.com
b438ce5030fd72d02e515c5a45c7fa5c0d9aad10
1a48806f2dd5fc156b0485e35156742164e0ef0c
/discwarriors/Wbug.py
da16667ccb2fa011ad9fce7acb966f3caedc3e27
[]
no_license
MasMat2/Games
29f4800e606bba984faa7c760575aebaeaf362cc
48ca7adaa355f2a5d2c40936096dd6cbf02d55ee
refs/heads/master
2020-06-05T20:21:25.582607
2020-04-16T21:01:17
2020-04-16T21:01:17
192,537,013
0
0
null
null
null
null
UTF-8
Python
false
false
1,130
py
#Disc Warriors # # Wbug.py # Class for World based bugs. # # This is, so far, not a useable # class. This is currently just a # test to get the basics of the # class to work. # import Dfile, pygame, functions from pygame.locals import * from functions import load_image class bug(pygame.sprite.Spri...
[ "maaxx.360@gmail.com" ]
maaxx.360@gmail.com
68e561ffc920fb139d5b7a78738b824ef4517510
3893d026b8380f4a87cc727020c735d753e9abae
/core/session/local.py
8930f2d13de4caf96078174c6f67beda6715bc0f
[ "Apache-2.0" ]
permissive
reinforcement-learning-fun/TradzQAI
4e46d4a79fe1bd3930f528943ab2aa428cc96d14
746c4900359cfc69db26fcf3d178827f2b0947a2
refs/heads/master
2020-03-30T17:26:00.346150
2018-10-03T05:59:59
2018-10-03T05:59:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,596
py
from core import Local_Worker from core import Local_env from threading import Thread from tools import * import time class Local_session(Thread): def __init__(self, mode="train", gui=0, contract_type="classic", config='config/', db=None, agent="PPO"): self.db = db if not "/" in config[len(confi...
[ "awakeproduction@hotmail.fr" ]
awakeproduction@hotmail.fr
0ee9d779bf7bc462a321478cadbff65f48d1fc79
cfb9e78029e539caa0230d1903f287ce9bad204a
/manage.py
98492c81a9ab920ef6cfe01a5015ed9249d4665c
[ "MIT" ]
permissive
ulyssesv/bflask
ec787587ff2daf09b2320a3ce27d116697aed61f
0d1b477a9bbf31097ef2f5a81962ecdd625265a5
refs/heads/master
2020-02-29T21:30:21.007569
2016-06-07T07:58:46
2016-06-07T07:58:46
60,293,397
1
0
null
null
null
null
UTF-8
Python
false
false
3,620
py
from bflask import create_app, db from bflask.models import Agency, Route, Stop from bflask.nextbus import NextBus from flask_migrate import MigrateCommand, Migrate from flask_script import Manager, Server from sqlalchemy import func from sqlalchemy.orm import load_only app = create_app() manager = Manager(app) migrat...
[ "ulysses@hub9.co" ]
ulysses@hub9.co
2c30c1cec07249f205a3aeedf8fc289bd1576571
fe2cbdb8859bfc541ef3b2b0b8f08b4400fdb81a
/Customer_segmentation/KMeans.py
26b5790837b4fdb4bb7f3386e9807fc4f8f9a6ef
[]
no_license
SanaAmruth/MyML
64173f81eba6c044c017e79aaa67bebc08f91ee2
93118602cd15e7b459675c3356fbd6a61a424022
refs/heads/master
2023-07-14T06:30:31.610501
2021-08-27T11:34:53
2021-08-27T11:34:53
285,191,251
0
0
null
null
null
null
UTF-8
Python
false
false
2,779
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler, normalize ,MinMaxScaler from sklearn.cluster import KMeans from sklearn.decomposition import PCA # In[2]: creditcard_df= pd...
[ "noreply@github.com" ]
noreply@github.com
d716689682146fff0d52e853e9d9fd20cde66ec4
4bf82a8be06a1c39fc8cd5536a72839ea18f6b03
/sensors/APDS-9960/python/gesture-oled.py
9da39f9eefa5f1d9d659fe2440a5cae3545e2d72
[ "MIT" ]
permissive
AnaviTechnology/anavi-examples
5571a29bd61452a1ea855dc0c16a3aa5a317657b
2725b21d2b5f0d0a0a40cec90f7edd7b4f2b9a86
refs/heads/master
2023-08-31T20:18:30.849894
2023-08-24T15:52:52
2023-08-24T15:52:52
63,726,355
34
18
MIT
2023-08-24T09:36:18
2016-07-19T20:36:36
C++
UTF-8
Python
false
false
2,127
py
import os import sys import signal import smbus import socket from time import sleep from apds9960.const import * from apds9960 import APDS9960 from luma.core.interface.serial import i2c from luma.core.render import canvas from luma.oled.device import ssd1306, ssd1325, ssd1331, sh1106 from luma.core.error import Device...
[ "leon@anavi.org" ]
leon@anavi.org
a41f99fb7ffa728e0744d0a8e53589f34b2a1f53
0f68624a2019ff7492dd0dc0b8bc55495a2e950d
/playLA/LinearSystem.py
f64a6ca6612ff20925f82afb659fc0b0d52333f2
[]
no_license
DaoLinZhou/learning-linear-algebra
3fd6fd83428c0a5354f40cb44d3f69d43a118971
413fbdebacf1ffbb625b1cdb9cbb29e10300a416
refs/heads/master
2020-09-23T17:08:13.489545
2020-03-05T03:28:22
2020-03-05T03:28:22
225,546,128
0
0
null
null
null
null
UTF-8
Python
false
false
3,058
py
from playLA._global import is_zero from .Matrix import Matrix from .Vector import Vector class LinearSystem: def __init__(self, A: Matrix, b=None): assert b is None or A.row_num() == len(b), "row number of A must be equal to the length of b" self._m = A.row_num() self._n = A.col_num() ...
[ "466118115@qq.com" ]
466118115@qq.com
561c2730ade460b8bf541c0fffa15de9760225ec
50a99ade25d8f2edd12dbf2d2514edf27bc41f02
/text_seed_DCN.py
aff2c25cc477d7a5b98949c16e47775d54aa21b5
[]
no_license
KEAML-JLU/DeepTextClustering
e8bdd86e4119ecfef44cbcb1e4f1aa320bf2c824
b84d28cbe9db02e51b3f5fa9c6e31e540b3ad219
refs/heads/main
2023-01-21T07:19:49.716295
2020-12-06T01:50:59
2020-12-06T01:50:59
318,919,906
6
1
null
null
null
null
UTF-8
Python
false
false
12,208
py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from sklearn.cluster import KMeans from torch.autograd import Variable from utils import cluster_acc, load_seeds_dict, align_labels class seed_DCN(object): def __init__(self, n_clust...
[ "wangaoqing159@gmail.com" ]
wangaoqing159@gmail.com