blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
14c394d59f076aeee389e3ff56e40f2ff8eebd3d
1a64fd8b9d76a0ca119bb37ec109441dc2b03f6a
/plot_result.py
6742214e9e77d79026c049ec1716b5a3ae5e1b84
[]
no_license
Qdake/AI_for_Roboticsac__ademic_project
a46df07dbfe90cf7c10a6114dfbe8938cf3b9095
fb403ca6822faf2a07a88a43b9c15d2c9ad1581a
refs/heads/master
2022-04-12T10:52:22.828413
2020-01-01T13:27:01
2020-01-01T13:27:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
plot_result.py
import matplotlib.pyplot as plt import numpy as np import matplotlib.image as mpimg import pickle from deap import base from deap import creator ## creat class Individual IND_SIZE = 192 #(5,2,2,10) #create class creator.create("FitnessMax",base.Fitness,weights=(1.0,)) creator.create("Individual",list,fitness=creator.Fi...
03c1a3ec5f496c10301458476e480845c1f50d58
14fee4b5ee62e02b51f33d8b66426d1d0a2d92d8
/EstruturaDeRepetição/er17.py
43fd7f6522d44e1dea27187146fbebc4a4195dfb
[]
no_license
irandijunior1903/SI---Monitoria
41d6e3cbcf4f1cba450896074df75ab45e6e6a83
7940c7ef1f3274850c075050c59e9c9defc7c583
refs/heads/master
2021-07-12T02:09:01.353325
2017-10-12T22:25:51
2017-10-12T22:25:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
er17.py
num = int(input("Digite um valor: ")) aux = 1 for i in range(num, 1, -1): aux *=i print(" {} ! = {}". format(num, aux)) print("FIM")
3d73bc172c5297a5da7ef11cc0d33a8c932d558b
8d4d3e5e9c9394f44027d44610cb831bf697191d
/mainProject/account/forms.py
62946b1834beb70cb00e16a5e73327fe0d02311f
[]
no_license
ruhinshukurlu/Hackathon-Project-Backend
15ae3cb004061b3dfb9cbe1c0e1c8ecec70a65fe
3897602908d5a977e0481e6a5ecb46332f38cbf7
refs/heads/master
2022-12-05T12:54:43.640824
2020-08-22T08:28:41
2020-08-22T08:28:41
286,552,020
1
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
forms.py
from django.contrib.auth.forms import UserCreationForm, UserChangeForm,AuthenticationForm, PasswordChangeForm, PasswordResetForm, SetPasswordForm from django import forms from django.contrib.auth import get_user_model User = get_user_model() class RegisterForm(UserCreationForm): password1 = forms.CharField(widge...
fb8b71e76ef8c0ff264d91152411dafa3d70163e
293851f6d33bec5bb27e45e2a23e30f8affea61b
/initPSLF3.py
bc7cf03d0d50ffe132143f54e499e51f5a2b0da6
[]
no_license
thadhaines/LTD_sim
b94b1d692bb2a6e67045982727c3ad27e5a24294
683067c4f5a31519562ed1354eaee15ec6cb1ad0
refs/heads/master
2020-04-11T13:27:13.169581
2019-03-05T02:11:48
2019-03-05T02:11:48
161,816,877
0
0
null
2019-03-05T02:11:49
2018-12-14T17:07:17
TeX
UTF-8
Python
false
false
897
py
initPSLF3.py
"""File to handle import of PSLF libraries and Creation of global PSLF object Replaces imports at begining of Model and init_PSLF function inside Model TODO: before implementation, all Model.pslf references must be corrected. """ import builtins #ensure locations list exits from __main__ import * # load .NE...
67b90150eac710a95f4300efb78c8f0f14b0cce1
19e8c044f747a910dda4933946c1408b9a5b71c0
/tags/urls.py
1b8b814a2aaf965311bc0b50e7e3b0223a6f1588
[]
no_license
thewebcat/livecamsbay
f2ca6128c481b45ca65910b4a9e7929e8c651522
9c46e756e285fba9853dad6c510b1f87968a7092
refs/heads/master
2021-01-20T08:43:20.660175
2017-10-22T17:42:32
2017-10-22T17:42:32
90,184,029
1
0
null
null
null
null
UTF-8
Python
false
false
142
py
urls.py
# -*- coding: UTF-8 -*- from django.conf.urls import url from tags import views urlpatterns = [ url(r'^$', views.tags, name='tags'), ]
53d66bdebcc3f669dc2eaf59c3aeb5f05a0d7b97
3e44a6a79f29b1b37bbfa6730240425c6d237cd2
/assignment1/tests/KNNTest.py
bab4c9e1b82b20f070f1025b5a44b7fe56c1e9ee
[]
no_license
Aran00/CS231nAssignments
a417b1d4c36c6436c43046dbf280159ff0d3c3be
f25a4a0b36afe164fcd414a96e15a85149015584
refs/heads/master
2021-01-13T05:23:26.933387
2017-02-24T09:52:14
2017-02-24T09:52:14
81,391,184
0
0
null
null
null
null
UTF-8
Python
false
false
992
py
KNNTest.py
from __future__ import absolute_import import unittest import numpy as np from unittest import TestCase from cs231n.classifiers.k_nearest_neighbor import KNearestNeighbor class TestKNNClassifier(TestCase): def setUp(self): self.classifier = KNearestNeighbor() x_train = np.array([[1, 3], [2, 4], [...
a3d97f1cf4a3f77bd6acf2912982b1a7da08eb6f
2ab231a522104c79844201ab3c67abcbe05eb10d
/Exercise5_2_Punnatorn_T.py
3724a9600ee50f0923d9af4a1aaa0ca6b2e4b17b
[]
no_license
30th-th/CP3-Punnatorn-Thuanthanom
c5fa90e29fca9367edbbde2b2fdbfaa9554fb101
138467fe6d101531df3d0560ece0ca896ab84aff
refs/heads/master
2022-07-12T07:59:26.960065
2022-07-01T15:50:39
2022-07-01T15:50:39
233,635,405
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
Exercise5_2_Punnatorn_T.py
v = int(input('ความเร็ว :')) t = int(input('ระยะทาง:')) vPerT = v/t print(vPerT,"km/h")
3cfb463c06aa8fa264c0a90b20cf65d53fd38e4f
ac64c35ac59045280cdead9525a218c3426eb05e
/jupyterlab_pullrequests/github_manager.py
ab73a3cee840c322a0865588aa5e6480691ba9da
[ "BSD-3-Clause" ]
permissive
VonRosenchild/pull-requests
d2ca9dd6e3164c93960dc0dc15de58333481e30a
538c53668d8df6f7158ff0cb54965be25d6b2c56
refs/heads/master
2020-08-03T01:04:47.451423
2019-08-08T18:43:23
2019-08-08T18:43:23
211,576,035
1
0
BSD-3-Clause
2019-09-29T00:00:41
2019-09-29T00:00:41
null
UTF-8
Python
false
false
7,801
py
github_manager.py
import json from http import HTTPStatus import tornado.gen as gen from jupyterlab_pullrequests.manager import PullRequestsManager from notebook.utils import url_path_join from tornado.httpclient import AsyncHTTPClient, HTTPClientError, HTTPRequest from tornado.httputil import url_concat from tornado.web import HTTPErr...
a3d0f0dedf6a69a41e091fc59cb7228083816e71
403ba5fc6aabaac1c0bcfcd7f47bee69aef1267d
/1.python基础/位运算.py
233debe04e4456d56ee39f071c992b3cf2a13f57
[]
no_license
mrliangcb/python_basic
65070374cbcd50b67ea2e13cecc9ec9c9c0accb1
697b86bdb4f218f389c6c45b88cd8bd3461d272a
refs/heads/master
2021-07-08T05:37:03.127529
2020-08-26T00:32:35
2020-08-26T00:32:35
158,006,146
0
0
null
null
null
null
UTF-8
Python
false
false
2,596
py
位运算.py
# int 有两种形式 10进制(一般用10进制) 和 2进制 # bin b'' 是 str形式 都可以通过int(,2)转int a=bin(4) #十进制转二进制 #oct是十进制转八进制 hex转16 print(a) #显示二进制缩写,这是str字符串 print(type(a)) b=b'0100' print(b) #显示完全二进制 print('b的类型',type(b)) #bytes类型 字符集 #二进制转10进制 print('0100的十进制',int(b,2)) #要记得表明这个原来是几进制 print(bin(4))# bin 就是把Int转化为 str print(bin(...
2fc0e77570fa834994b99e463bafc317152ca0f2
4971e12aabbc3f80b18a558ef3c4dec4cc847b7b
/tests/conftest.py
362679667002510b6c74019aac1a75a10b5e7f3c
[ "MIT" ]
permissive
AmesianX/skitai
3d6a10f8d5a64ea3174d31dfbe19562fca3f30b1
d8ed2a02986f8bb0013a593c083a2ca97818f6d2
refs/heads/master
2020-05-18T09:42:58.026212
2019-02-27T06:39:38
2019-02-27T06:39:38
184,334,658
1
0
null
2019-04-30T21:34:09
2019-04-30T21:34:09
null
UTF-8
Python
false
false
1,790
py
conftest.py
import pytest, os, time import confutil import skitai from atila import Atila from rs4 import logger from skitai import testutil from skitai.testutil import server, channel as cha from skitai import PROTO_HTTP, PROTO_HTTPS, PROTO_WS, DB_PGSQL, DB_SQLITE3, DB_MONGODB, DB_REDIS try: import pytest_ordering except...
ad747bc5bff45f147b82917484e528c056b97de5
026d2e1bd4f1cac7493c0ce376a58eeef05890d0
/5.4 NextNumber.py
05b30535e2671010589c13a08817edd3ff256c5a
[]
no_license
up824/crackingTheCodingInterview
5666e2b3f6558c9c36e90bd5e75118bc4a52cfe9
82abb84ae047d4bc6cb627ffe31fcf52f12c056d
refs/heads/master
2020-03-08T00:59:51.558483
2018-05-15T00:46:48
2018-05-15T00:46:48
127,818,916
0
0
null
null
null
null
UTF-8
Python
false
false
40
py
5.4 NextNumber.py
# Next Number def nextNumber(a):
8be2aa3292c9dee9287fa9df94f670fd96245829
394072f7fd3e2a226aeed78bf0a4f587f4c4e383
/lambdaExpr/utils.py
3df163f26ee53bf954a87db7739a010e71bad3a4
[]
no_license
LeonCrashCode/DRSparsing
ec5cca079a2c73eb512444e1ac86215722e6503a
c7e92beb8878ff2386bc6789e6c17f0d35bf1277
refs/heads/master
2020-03-16T09:52:11.217219
2019-01-17T14:20:16
2019-01-17T14:20:16
124,549,958
0
0
null
null
null
null
UTF-8
Python
false
false
6,010
py
utils.py
import types def get_index(node): index = [] for subnode in node: if subnode.tag == "indexlist": for cc in subnode: index.append(int(cc.text[1:])) if len(index) == 0: return [] return index def normal(r): new_r = "" for i in range(len(r)): if r[i] == "(": new_r += "-LRB-" elif r[i] == ")": ...
800a366792c6af3e5126957a8028ec42b9196fee
69c117a004a37f59c72b38c734a486a08ed43720
/staff/models.py
9b94e24acdb12c2d9a682149638ca912a4126b8b
[]
no_license
dheerajsatokia/OrangeTrack
ed00ac5576adf9f9285647c03d05d61e20a07bbe
f06e936a2e4f376eb6df4ccf44cdb0f4553d784c
refs/heads/master
2022-12-14T02:19:01.192089
2020-09-23T22:22:06
2020-09-23T22:22:06
293,525,042
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
models.py
from django.db import models from project_management.models import Project from user.models import User # Staff class StaffCategory(models.Model): type = models.CharField(max_length=8) project = models.ForeignKey(Project, on_delete=models.CASCADE) def __str__(self): return self.type class Staf...
f029211303067f8051543949bb66f99435c7b376
958f18691e650c8334168dda2147b22c4106300f
/plot.py
bf3b6bbe2cbead0b2c819316e89b7dbe99a3efe4
[]
no_license
bhattagoutham/scara_simulator
0bc2d6177eef391edac19602578f40c1ac700b5a
e699cd837196ce25cc2710fdae554e2dc7f5cad7
refs/heads/master
2021-06-18T05:43:57.717137
2017-04-25T16:21:48
2017-04-25T16:21:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
plot.py
from matplotlib import pyplot as plt import numpy as np def plot(ctraj): #gets list of all x-co-ordinates x_pt = ctraj[:,0] #gets list of all y-co-ordinates y_pt = ctraj[:,1] plt.plot(x_pt, y_pt, 'g.') plt.show() ##Documentation and notes for this module: ##x = np.array( ## [[1,...
6d49ea050b0420ef6920fd858c4c09056286b43e
03fbee72f2408df043962663aa874c21faf53686
/software/python/test_input_counter.py
4d7876d960a48c364d35051fe69c53912e7cd84d
[ "BSD-3-Clause" ]
permissive
imrehg/pulse-programmer
a262bf6c409b5a648bded35b8325f034e4f9ff19
47f47e19a9098ba97b5303127bafb6007e2afac3
refs/heads/master
2016-09-05T13:44:49.096957
2010-06-04T01:57:14
2010-06-04T01:57:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
test_input_counter.py
from test_config import * parse_params(('dummy', 'int')) begin_sequence(reset_dds=False) reset_input_counter(Input_1_Trigger) latch_input_counter(Input_3_Trigger) write_input_counter(Input_4_Trigger) compare_input_counter(Input_5_Trigger) label1 = create_and_insert_label("test_label1") label2 = create_label("test_l...
98f40b8c56a7aafef7b6d817b9c5bc82c65b7a12
bf681fbd7edbf4f8f1e0b20cbd09b362f777c9c3
/python/lru_cache_check.py
4d6fc561e04fc8de1986b0876be24f7e30e4aea3
[ "BSD-3-Clause" ]
permissive
EricCousineau-TRI/repro
308d4a86f3c7da8be5811db2f3f68d39db60d7ed
9800f45e07f511c9a355ee90333955451b55559a
refs/heads/master
2023-08-31T13:49:23.540640
2023-08-25T19:18:33
2023-08-25T19:18:33
87,116,976
24
13
NOASSERTION
2023-03-25T01:40:55
2017-04-03T20:19:28
Jupyter Notebook
UTF-8
Python
false
false
464
py
lru_cache_check.py
from functools import lru_cache @lru_cache def cached_1_arg(x): print(" called cached_1_arg") return 2 * x @lru_cache def cached_0_arg(): print(" called cached_0_arg") return 10 def main(): for i in range(3): print(f"i={i}") assert cached_1_arg(10) == 20 assert cached...
ca5ebce0d69b639ba9d57f758678c190a343072c
98d6726b1e70f842fd5363c543d4fdb0f24752ba
/mainichicountdowndownloadpage.py
6b36de4d2e83e221475dc8d6c6bc1e0069a48602
[]
no_license
tanjoin/mainichicountdown
3701500c3ff3cbde3fd8be3f3610fbc16c0460ad
89248d67d715b4eecab6db71bb114c78cc428dfd
refs/heads/master
2020-05-16T22:11:55.262541
2014-01-25T15:01:56
2014-01-25T15:04:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
mainichicountdowndownloadpage.py
#!/usr/bin/python #coding:utf-8 import sys, urllib import os.path from datetime import datetime yonkoma_url = "http://www.kadokawa.co.jp/sp/soraoto/" now = datetime.now() now_string = now.strftime('%Y%m%d') url = yonkoma_url page = urllib.urlopen(url) localfile = open( "pages/" + now_string + ".html", 'wb') local...
1df12d3aa06524640a6662417cc5d4f24cbde81d
0e7e71354fb065b742a6cb3488203d602f28f0fb
/FinalProject/code/networks.py
7170a233092720b6cf6cb3e5c4e6961b80bdeb9e
[]
no_license
mickvanhulst/Computational-Cognitive-Neuroscience
251b3f7847f4b570afc9a9db178ae982ad94bd0e
78d18fd0ece01ba430ccd13e15f74bfb0d7a94d0
refs/heads/master
2021-04-15T10:04:19.438749
2018-11-06T17:49:39
2018-11-06T17:49:39
126,825,798
1
0
null
2018-03-26T12:32:30
2018-03-26T12:32:30
null
UTF-8
Python
false
false
2,386
py
networks.py
import chainer.functions as F import chainer.links as L from chainer import Chain class CNN(Chain): """ For the Atari experiments we used a model with 3 convolutional layers followed by a fully connected layer and from which we predict the policy and value function. The convolutional layers are as follows...
9e97bbdcbed203169b2fe1cf1b806b884d9195ba
9fef997fb4458687552f2219f88688b7ca8f8038
/src/Scraping_data/pullOldPosts.py
684240e75d2acad6274488f1af5eecdeff89495d
[]
no_license
Kevin-Gillanders/FinalYearProject
623be4a1c91d311e83f14384fb7eefb8b6bc1fc3
ae6e72ab3f1cd9804f9c8b56d9f2a195b2ac1991
refs/heads/master
2020-03-23T20:47:42.487228
2018-07-25T12:47:05
2018-07-25T12:47:05
142,061,662
0
0
null
null
null
null
UTF-8
Python
false
false
1,277
py
pullOldPosts.py
# -*- coding: utf-8 -*- import praw import time #This version of praw(3.6) is now out of date #I am planning to use the more modern version from now on # This was a very early version of scraping, the output of which was not cleaned # at all. Just placed into a file. I am keeping this file here as the output of # th...
e08e515022e219d2f1ecc6fd62ca2a479cfa5da3
3ddc031087558f1b0f71190b9eeafc015e41128c
/services/model/ClusterInfo.py
c22ee77201df9967d1bc756c357aa92f79830ffd
[]
no_license
alphafan/waves-flask
9bd4c654e614204023afdd611f72cdc8e6f0a0d7
50b0d5854151d4b3f038b8326d6862a61cf061b6
refs/heads/master
2020-12-30T10:12:22.049918
2017-11-10T09:49:43
2017-11-10T09:49:43
98,866,392
1
0
null
null
null
null
UTF-8
Python
false
false
1,781
py
ClusterInfo.py
""" Cluster Information Settings for Waves Configuration This configuration is used for specify the IP and Port for each services """ class ClusterInfo(): def __init__(self, zookeeperHosts = ["localhost:2181"], kafkaHosts = ["localhost:9092"], redisHost = ...
a11956c46f431fca0b22c9d8edc1984a1a435af8
446ebbd78cfccb319b0447645b1fc9e18c9c27d6
/healthapp/apps/firstaid/migrations/0003_auto_20200810_1509.py
737dd7e941f3ac3ad1c9d019085c64cb055a38e3
[]
no_license
xilousonw/healthapp
b26057cc3c4c35bea37f42fb8125c110878487e8
dfbc2182ec61832231a85bef1e37fb2a2aa33564
refs/heads/master
2022-11-27T23:53:39.769766
2020-08-15T13:33:54
2020-08-15T13:33:54
286,454,046
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
0003_auto_20200810_1509.py
# Generated by Django 2.0.7 on 2020-08-10 15:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('firstaid', '0002_remove_firstaid_orders'), ] operations = [ migrations.AlterModelOptions( name='firstaid', options={'verbose...
ebcb9d8a8b2f43e12de3b35788b7a3eb5caf3ad6
e38cdcefd0f2d1c79864861156a9e7ede04ffcbb
/mechantania/batch_code/world_builder/build_areas.py
f6ae48bf4fd5abd97805cf6131e5921790da7df8
[]
no_license
Klayre/mechantania
e66e0999cc788d89c1b974d04ca5e23d6561267f
6ea0a80165707bffcab07d5f4ac46869bfc04635
refs/heads/master
2020-03-27T21:40:41.284367
2017-10-16T17:41:16
2017-10-16T17:41:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,808
py
build_areas.py
#HEADER import evennia import evennia.utils.search import utils.import_trizbort_map as MapImporter from utils.builder_utils import remove_all_rooms # A list of area files you should use when constructing. These will # be accumulated into the callers "ndb.build_area_list" dictionary. # The dictionary will contain ke...
59a052ce7e369ae48df35378606d7f652eb7b21b
245e2ebed5193fc027404c0940b26e05493f0d04
/app/main/ajax.py
b7b13e7d5db9675ea3e287a844f5a7f86ad0e2e8
[ "MIT" ]
permissive
quanrd/phenoproc
d50029989a980b1117b99a2d4acdcd3c9cde134d
039adc96539fae25843b1fc36074a4e5e55830ec
refs/heads/master
2020-12-04T21:03:54.866452
2018-04-03T14:12:19
2018-04-03T14:12:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,215
py
ajax.py
from __future__ import print_function from flask_login import login_required, current_user from ..models import Permission, Role, User, Workflow, WorkItem, DataSource, Data, DataType, OperationSource, Operation from ..operations.executor import workflow_executor from flask import current_app from ..util import Utility...
21fbdddcffcb019c359b947f4c39b0a8f7b2064f
80869d3ea667ab4e059a049370467dcd5869b719
/Dataprocess/evaluateGreedy.py
1e99a6ef74332f274d617bd74fce23ffdb451774
[]
no_license
ChaunceyCXC/Bitcoin_Vendor_Matching
3456806d7a8f641578c79353bae09ac4ec33ecd8
e598ad2f5125daa4ca8cfea133db010c8981a0f0
refs/heads/master
2022-10-25T08:25:41.687889
2020-06-12T03:06:20
2020-06-12T03:06:20
264,223,145
0
0
null
null
null
null
UTF-8
Python
false
false
1,593
py
evaluateGreedy.py
import json import os import numpy as np import datetime root="/home/chauncey/address/252bit" files=os.listdir(root) arraylist=[] count=0 for file in files: if file!="frequency": fp=open(root+"/"+file,"r") arr=[] count=0 for line in fp: count+=1 number=int...
0782655a72ace8d303e5ed199642d974358af21e
05681e7f309a31fb353a7af29471827af336360c
/tests/test_graphical_units/test_brace.py
1c171884e57c47529ebd48312c4283ba98b2b00b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ArvinSKushwaha/manim
c67e1d1e578b4cc799f823cd01e0d8cb5d110435
fbee8ad7e039b61753cc0c92d4038f79bc996885
refs/heads/master
2022-12-03T12:09:20.864914
2021-05-20T02:46:00
2021-05-20T02:46:00
289,195,491
1
0
MIT
2020-08-21T06:30:05
2020-08-21T06:30:05
null
UTF-8
Python
false
false
1,094
py
test_brace.py
import pytest from manim import * from ..utils.GraphicalUnitTester import GraphicalUnitTester from ..utils.testing_utils import get_scenes_to_test class BraceSharpnessTest(Scene): def construct(self): line = Line(LEFT * 3, RIGHT * 3).shift(UP * 4) for sharpness in [0, 0.25, 0.5, 0.75, 1, 2, 3, ...
85266b9011ae4c490e078aa12daad78589276af0
1bc7eb7ed6c19a9b8108310f01c0bcf67af80353
/make_plot.py
3e1b140a5b793cc3e57e522692300c83171da566
[]
no_license
lkahre/insight_app
4c0cd235314ae406fa3b1661f51911188eadeadc
af0af9ca1d3df592a970ae430db076d3ca8a0717
refs/heads/master
2020-03-28T21:25:43.209293
2018-10-05T17:27:21
2018-10-05T17:27:21
149,155,411
0
0
null
null
null
null
UTF-8
Python
false
false
1,363
py
make_plot.py
def make_plot(probs): import matplotlib.pyplot as plt import numpy as np import datetime as dt import pandas as pd from bokeh.plotting import figure from bokeh.resources import CDN from bokeh.embed import components from io import StringIO import base64 months_list = [] ...
d7401aa3b3c2ace3e43dfb3afb9ce64eccee88f1
b6f9f7978284174abd7fc2ac37b55fc9471055d3
/ide/API/src/submission/migrations/0007_submission_box.py
75b935b9b1609ec3d2bbcdf95d9b33cbd9011199
[]
no_license
pratikdaigavane/Son-Of-Anton
77c3c505e9ba02a0d5572950ca2e767b753b86fa
29f7ba9eb0cc4ee8961ec7cb6aa7420d30fdc648
refs/heads/master
2023-01-11T06:04:03.398782
2020-10-07T10:35:04
2020-10-07T10:35:04
226,457,933
2
1
null
2022-12-22T13:23:21
2019-12-07T04:55:50
CSS
UTF-8
Python
false
false
428
py
0007_submission_box.py
# Generated by Django 2.2.2 on 2019-10-24 14:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('submission', '0006_auto_20191023_1959'), ] operations = [ migrations.AddField( model_name='submission', name='box', ...
c1bc318c65d5e87eaaec621b0a2e33a8bef3e601
be84495751737bbf0a8b7d8db2fb737cbd9c297c
/tests2/spectrum/chromacity_conv.py
3274c153e89afea6b0fcfb77a86e5d9b7c3e692c
[]
no_license
mario007/renmas
5e38ff66cffb27b3edc59e95b7cf88906ccc03c9
bfb4e1defc88eb514e58bdff7082d722fc885e64
refs/heads/master
2021-01-10T21:29:35.019792
2014-08-17T19:11:51
2014-08-17T19:11:51
1,688,798
1
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
chromacity_conv.py
import unittest from tdasm import Runtime import renmas2 class ChromacityTest(unittest.TestCase): def setUp(self): pass def asm_code1(self, ren): code = """ #DATA """ code += ren.structures.structs(('spectrum',)) + """ float x, y spectrum spec ...
cb16c5f09b89512c5eecd4adde6edc250a843d09
83e1f2c01a2aae34a3308b7d20cff997f8de3cc1
/ex046.py
5f3ae35ac6780880daa1de56532d3b2f073d52d8
[]
no_license
ORodrigoFerreira/ExerciciosCursoemvideo
634e81595ae2853667aae21f72cb0d9a0a810ded
1a973d3db7ec0bc7b79c6c3027cbfe828f5560c4
refs/heads/main
2023-07-08T04:35:54.257470
2021-07-29T23:15:32
2021-07-29T23:15:32
358,718,410
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
ex046.py
from time import sleep import emoji print(emoji.emojize(':fireworks:')) for c in range(10, 0, -1): print(c) sleep(1) print(emoji.emojize(':fireworks:'*10)) print('\033[31;40m Feliz Ano Novo!!!\033[m') print(emoji.emojize(':fireworks:'*10))
dbbb9087d0c81f6cb4ed9d1a1f9155659f99e6b4
5dccc5c87166e5ca5e33800234482e1805c12785
/scripts/test.py
743f137e98c75638b6e9a2257d908ffbd9df048c
[]
no_license
denis-draca/capstone
8fcabc1d87bbf3e1798373d8587b78ea5a625140
5470f78e50f433b06db86718d6f2fec3224e663b
refs/heads/master
2021-01-16T21:33:23.721438
2017-09-30T07:33:48
2017-09-30T07:33:48
100,236,190
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
test.py
#!/usr/bin/env python y = 2 print range(y-1, y+2) y_2 = int(2.0) if y_2 is y: print "hi"
0ad5e4c25cc8e7a18bcef4b7f9792503c18ef018
552d3cc253ec015f069073c1e562760e419dd063
/backend/listings/migrations/0004_auto_20200810_1518.py
ea2c3b0bcc55d45916c51d0267191e449cd49363
[]
no_license
MohammedSabah96/real-estate-app
bf22166c66bf1d5adf98bb577d1a6dbc295a39a7
aee0a2d4c01ac1ac6a168b9b4d5a1d18c34b22a3
refs/heads/master
2022-11-28T23:59:49.930604
2020-08-15T05:41:42
2020-08-15T05:41:42
286,194,488
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
0004_auto_20200810_1518.py
# Generated by Django 3.1 on 2020-08-10 12:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('listings', '0003_remove_listing_images'), ] operations = [ migrations.RenameField( model_name='photo', old_name='Listing', ...
bfee9dd25debb7133ac870d29babbda4eb6f4c38
c1328a5ddbe17858a21b22e226a7677dcf3a37d1
/cvrp_part2_local_env/code/GA.py
3d64a6a16150a02b366ebfd2a43c357347089005
[]
no_license
XuHuaXH/capacitated-vehicle-routing-solver
8bfc29b4f4fa56b71b4e3ba6147ff6267bf77904
bbfceacdea9f8baa414ceb60320724ceebf317ac
refs/heads/main
2023-07-14T08:27:19.309347
2021-08-28T04:10:55
2021-08-28T04:10:55
394,006,699
0
0
null
null
null
null
UTF-8
Python
false
false
11,966
py
GA.py
from solve import Solver, Parcel, Route import sys import random import heapq import time depot_name = sys.argv[1] time_matrix_path = sys.argv[2] loads_path = sys.argv[3] out_path = sys.argv[4] unordered_time_matrix_path = sys.argv[5] class Solution: # gene is just a single solution def __init__(self, gene)...
29d3b7a8d053257a48cc820e1a5665d755b55a24
1007b0286a7e33566af2f1a0900644fab714c989
/tests/test_unittest_T3.py
37cdc37c5e1f32f82846c6f8d8b2371d9eb176ae
[ "MIT" ]
permissive
windcoinplatform/WIND_wallet
8b27d5a5e82736739c5342aa4d154c416b2cc495
28b4fc122706d1ecc3a139d69bb9defa0183b1ec
refs/heads/master
2021-07-05T16:50:55.314550
2021-02-07T14:45:26
2021-02-07T14:45:26
224,718,219
2
0
MIT
2019-12-04T23:09:16
2019-11-28T19:39:21
JavaScript
UTF-8
Python
false
false
637
py
test_unittest_T3.py
import unittest import T3 class BasicTestsT3(unittest.TestCase): ############### #### tests #### ############### def test_t3_logger(self): self.assertNotEqual(T3.logger, None) def test_t3_url_ok_false(self): self.assertNotEqual(T3.url_ok('127.0.0.1', 4200), True) self.a...
faef26a5c1968fc352ad6f3c4b23d1671961b492
e24d768ddff6093ecbe2584823fff638cc3fa5b1
/Data Types/19.py
bd9dad3725cf1f70cf9f13599b25d8d506d0f02b
[]
no_license
pr0d33p/PythonIWBootcamp
3a9fbbb3f679a67acdcff8602ce965760a220449
16fa4a15a73e00319b6fc4a5441113a04891c5a7
refs/heads/main
2023-03-05T22:06:17.777894
2021-02-15T11:18:16
2021-02-15T11:18:16
339,022,654
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
19.py
list = [9, 1, 5, 8, 19, 11, 3] smallestNum = list[0] for item in list: if(smallestNum > item): smallestNum = item print(smallestNum)
a686a91c1c51d2f43af39d9b2d76baaf1716dcca
8bbb2cd199a76de35e383b09702d690a4dea1d9a
/project_bike/bike_sharing_Demand2_2.py
93f13abdd6c60cfb622f9182139349bdc461b82e
[]
no_license
wowodo/bit_seoul
008c482b6c0fd8681ad219a7d70c3e752939f156
31363c2558738bb3fb88a06e5d5167a1a32fc2ba
refs/heads/main
2023-02-01T10:26:06.846242
2020-12-18T07:39:34
2020-12-18T07:39:34
311,280,541
0
0
null
null
null
null
UTF-8
Python
false
false
2,300
py
bike_sharing_Demand2_2.py
import numpy as np import pandas as pd x = np.load('./project/bike_x.npy', allow_pickle=True) y = np.load('./project/bike_y.npy', allow_pickle=True) # print(x_train.shape)#(10886, 6) # print(y_train .shape)#(10886, 1) from sklearn.model_selection import train_test_split x_train, x_test, y_train, y_test =...
0a39281d0632aa657bebac9f47cbadc9d6b66e4e
8f7916313aca21075eb102b84cb6f479e2e0d280
/exercise/字符串/1.2.py
992ccf568da433375f2ceaa01d32fbad4232ae99
[]
no_license
CurryMentos/algorithm
0c1e526a75a3c9b3ed76ea251285da75b33765ae
b156f25a93dfea6ea0a8e639bd5e058c4f288516
refs/heads/main
2023-07-22T10:39:39.900514
2021-09-08T07:38:19
2021-09-08T07:38:19
404,253,750
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
1.2.py
# !/usr/bin/env python # -*-coding:utf-8 -*- """ # File : 1.2.py # Time :2021/7/14 15:03 # Author :zyz # version :python 3.7 """ """ 回文的定义:"回文" 就是正读倒读都一样的。 如奇数个:"98789",这个数字正读是"98789" 倒读也是"98789"。 偶数个数字"3223"也是回文数。 字母 "abcba" 也是回文。 判断一个字符串是否是回文字符串,是打印True, 不是打印False """ def fun(): l1 = list(i...
c746f64c3ca96cfdabeaffed912aa7e52ef8d45f
59bdd776b810a0c6003bcfb94104b92978db86d6
/testgm3.py
5415a0418c81fad854efe7bfa749d56c52842d4f
[]
no_license
linshilogin/pytestproject
ee59075cccaf9fd1fd93f7fae95c4e2a33c106e8
c60c8a7623d854008492f302ff00805ba6d4c5d4
refs/heads/master
2022-03-20T20:33:00.179406
2019-12-11T09:58:06
2019-12-11T09:58:06
111,869,113
0
0
null
null
null
null
UTF-8
Python
false
false
2,628
py
testgm3.py
from gm.api import * import sys sys.path.append(r'..\indicatorModule') from pyalgotrade import gm3HelpBylw set_token('216936b4ccd9bd2b20cbc4504f3f823f072b024d') # # sss=gm3HelpBylw.getHQData_Fade(['CZCE.MA909'],'2019-08-05 10:45:00','2019-08-05 11:15:00',fre='tick',\ # fields_='symbol,cr...
f260e4d6d21f89322caf1f0c8defb559102c97a8
5a3811fa35c81b0c1816c510a7772d00bbab51d8
/apigee/virtualhosts/virtualhosts.py
a18fb77893b9c0d54cfed36e130b8174cdbabb7a
[ "Apache-2.0" ]
permissive
heiner-gb/apigee-cli
48a30618d7307194d0ecdd274256b09263d25d03
d6455b8d2e99fd1d69644ddd87998aa2baf73757
refs/heads/master
2023-07-30T13:42:50.491028
2021-09-18T03:46:47
2021-09-18T03:46:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,870
py
virtualhosts.py
import json import requests from requests.exceptions import HTTPError from apigee import APIGEE_ADMIN_API_URL, auth, console from apigee.virtualhosts.serializer import VirtualhostsSerializer CREATE_A_VIRTUAL_HOST_FOR_AN_ENVIRONMENT_PATH = ( '{api_url}/v1/o/{org_name}/environments/{environment}/virtualho...
0980d3a13655aa2cca3af90685898506c27e4768
cf9f98db19332d284370c4e135793dfd940f474b
/parameters/activation_funtions.py
128ef4857e8dbe9cb8b8f95b31a81c36ca063b63
[]
no_license
DairoCantillo/neural-network-in-python
256ea1e67f0046630974093a5eae437c2442e838
dd7719c828d81e9867db418bda4f7c470e45c04a
refs/heads/master
2020-06-19T16:49:01.364687
2019-07-14T06:57:28
2019-07-14T06:57:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
activation_funtions.py
# -*- coding: utf-8 -*- import numpy as np # FUNCIONes DE ACTIVACION sigm = (lambda x: 1/(1+np.e**(-x)), lambda x: x*(1-x)) relu = (lambda x:np.maximum(0, x), lambda x:np.maximum(0, x), ) tanh = (lambda x: (2/(1+np.e**(-x)))-1, lambda x: x*(1-x)) #def relu(x): return np.maximum(0, x)
3d1e82b8cbe0a27745e40cbba0f19a7b1f9b2bf6
c3375bae4b3fea7ca425e0390ba86e41d4083041
/sql_queries.py
f72a000dc5bce3adeead40db0329f66d3df570b5
[]
no_license
vijaypattar28/Data_Modelling_with_cssandra
81534c5983a21867e59b1441ef6b0b8eff511f9d
8076d8afcd46d401d1f1c52013b7a2879fd6d2ab
refs/heads/main
2023-02-17T11:31:55.815677
2021-01-14T11:41:41
2021-01-14T11:41:41
326,391,725
0
0
null
null
null
null
UTF-8
Python
false
false
4,209
py
sql_queries.py
''' Drop the tables ''' drop_table_artist_song_by_sessionid_item = 'DROP TABLE IF EXISTS artist_song_by_sessionid_item' drop_table_artist_song_by_userid = 'DROP TABLE IF EXISTS artist_song_by_userid' drop_table_username_by_song = 'DROP TABLE IF EXISTS username_by_song' ''' ### Now we need to create tables to run the ...
36920e4c61c97902e90a779323a9f000901b815c
8ce0fd5e5c5b858fa24e388f2114885160421c03
/sle/test.py
209558c296e4290c7659db6fbb2e8ea7702ad518
[]
no_license
kong-ling/scripts
266e9975ae0156d6fdddf43b8f1d7ee20469b388
3c41c49646358d46871c8fd8ebe1ba52bdea046c
refs/heads/master
2021-01-10T08:29:34.772634
2020-01-03T09:04:57
2020-01-03T09:04:57
43,275,002
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
test.py
import os import sys import subprocess subprocess.Popen('ls') os.popen('ls') os.system('echo "hello world"')
70fdafc72a674d42216d53a41c05b8b794754248
47267247675fb109e262a8497ad8cdb880628eb3
/python/Multiply Strings.py
b70c4ddf2b4e72f19c7ae4a3ef0e22fb99cdf57e
[]
no_license
bkyileo/algorithm-practice
2aa461f6142fe92b2619f31643ee470f901e320a
616e4db3f4f0004288441805572c186ef64541d8
refs/heads/master
2021-01-21T21:00:44.011317
2017-11-02T02:20:12
2017-11-02T02:20:12
92,297,914
1
0
null
null
null
null
UTF-8
Python
false
false
1,997
py
Multiply Strings.py
# coding=utf-8 __author__ = 'BK' ''' Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. Subscribe to see which companies asked this question ''' class Solution(object): def multiply(self, num1, num2): ...
6ebee478051fa0b8722e281ebf4f83407c233b71
22767a4626d229a3d30296eb6fb61d9c139822bb
/models/O2P2/preprocess/splitByStability.py
6cf0c0b7f9b7c859d211c808de739a709613cf98
[]
no_license
mengjin123/intuitive-physics
8e7bdf738125e1d0f0face25cf7c6621b2e85519
f4e025a19910e6f97bb8d686ec0338f76af584a5
refs/heads/master
2023-06-12T21:59:52.485052
2021-07-10T16:26:27
2021-07-10T16:26:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
splitByStability.py
metadata_path = "..\\datasets\\PhysNetReal\\all_metadata.txt" split_path = "..\\datasets\\PhysNetReal\\split_only_unstable.txt" unstable = set() scene_count = 0 with open(metadata_path, "r") as metadata: for scene in metadata: scene_count += 1 scene_att = scene.split() idx = scene_att[0] ...
7bf384bc694acbc0c5a70dfe15fdc1ba3add16ff
8a65941a6d8ba58fcb187ac5d9d2615fa3641e80
/production_kaju/kaju/migrations/0020_grade_names.py
be804a67e32c857677934e00faf1f36ebcf30974
[]
no_license
Achuthaprakash/CT_Manage
5fc708d6a116605bbf10f02f11da640b2740acd7
154790ba55e8a1a1fe2c80ac1b3c472e75626f8f
refs/heads/master
2022-11-02T05:42:38.138998
2020-06-13T00:37:48
2020-06-13T00:37:48
271,912,544
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
0020_grade_names.py
# Generated by Django 2.2.5 on 2019-12-25 16:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kaju', '0019_auto_20191225_2107'), ] operations = [ migrations.CreateModel( name='grade_names', fields=[ ...
ba98d2524a9a0f6038acf96dcdfc34cdbad14647
5f0b8679ea62d5de623bbdfe5a666ec400be5d57
/LV2/실패율.py
f4dbb8c41c1769a7a06398ca48856d7d3f98cb47
[]
no_license
joohyun333/programmers
2fa3e38ae15059fe34ddb6178fbe653846e7bdc5
244943ab483bc87631a97baeaf907eed86b24fa9
refs/heads/master
2022-01-29T13:07:34.619762
2022-01-11T20:51:20
2022-01-11T20:51:20
248,827,301
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
실패율.py
# https://programmers.co.kr/learn/courses/30/lessons/42889 import timeit import collections def solution(N, stages): stage = collections.Counter(stages) #Counter({2: 3, 3: 2, 1: 1, 6: 1, 4: 1})) result = collections.defaultdict(float) total_n = len(stages) for i in range(1,N+1): if total_n > 0 :...
ec6e83c24042a214b371f60f71214206e5453123
049c18d83c7a9617f140414a13c64df949c59676
/data/generate_inputs.py
c05f902848b265befbc8531a7ade9ea8350d33b1
[]
no_license
aniketbiprojit/Mapping-Instruction-to-Actions-with-Reinforcement-Learning
805e712a08babc8a576adbfe12b2465ee4cd0525
936ce7b150aa75e290abef410b02d15d649012fa
refs/heads/master
2023-04-02T15:35:35.666724
2021-04-10T18:20:05
2021-04-10T18:20:05
338,047,169
0
0
null
null
null
null
UTF-8
Python
false
false
1,911
py
generate_inputs.py
from random import randint from typing import List from chess.Box import Box from data.generate_moves import generate_input_output, vocab from sklearn.preprocessing import OrdinalEncoder from chess.Board import board, init_board import pandas as pd ord_enc = OrdinalEncoder() vocab = [i.lower() for i in (list(set(vo...
b7c833d22162195c354533a05822b52296cd0126
902b3b310a5b81787b133d020808a6d48a084753
/nuke/J_Ops/py/J_Ops/J_3Way/CDLUtils.py
0fee48147ec0dd14fd7971ba7e22c9ceeb5bb6e3
[]
no_license
utsdab/usr
bbbe97d241532c361533f15a6ed25ebaacb20d74
b0dd7a850f3b3f1aa9dfcdab02fa5186c88814fa
refs/heads/master
2022-05-04T04:47:43.033127
2022-05-04T03:58:16
2022-05-04T03:58:16
47,383,603
2
2
null
2022-05-03T00:06:39
2015-12-04T05:37:38
Python
UTF-8
Python
false
false
17,303
py
CDLUtils.py
# CDLUtils.py # J_Ops # # Created by jack on 17/01/2010. # Copyright (c) 2010 Jack Binks. All rights reserved. import xml.etree.ElementTree as ET import nuke import nukescripts class parseDialogue(nukescripts.PythonPanel): """Dialogue used to display CDL params found in ASC CDL files. Displays, an...
7db1edb209768de08256ca98d0bb026ac3d642c3
81d520afa043e8334b7bad213d7ae78804bbc11f
/tempfit/experimental_zero_finding.py
ca102ef66e48f419fa5f7af275df3ea207b55ed6
[ "MIT" ]
permissive
alxsoares/FastTemplatePeriodogram
a6d4a851cd381b0ddad8b0328d772caecdc9a68b
a8062d8ecda156282e280ef35e599a5afeeb9d5c
refs/heads/master
2020-12-30T15:29:55.306666
2017-03-30T22:24:12
2017-03-30T22:24:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,268
py
experimental_zero_finding.py
from __future__ import print_function from scipy.optimize import newton, brentq from numpy.polynomial.polynomial import Polynomial import numpy.polynomial.polynomial as pol # ZERO FINDING UTILITIES. ################################################# # Using Sturm chains and bracketing zeros # this method is slower ...
54540e885f43566f97a9e6331a1ecad7cc95cfeb
795c34e920f99819045ab4bbe052c6c7208fa769
/PythonDir/newPython/practic/files/Hack.py
4864989a8d2d04ad785c9b9f0389666f7943b414
[]
no_license
AyazYakupov/test
b9f9a53ad334a70a68ac31c8e813510963d5761f
b5ec44cd6c6f3f3710373d6cfa71a45098cb7722
refs/heads/master
2020-03-17T14:00:15.386924
2018-05-16T14:23:56
2018-05-16T14:23:56
133,653,710
1
0
null
null
null
null
UTF-8
Python
false
false
518
py
Hack.py
import os import codecs def OpenFile(file_name, mod): try: the_file = codecs.open(file_name, mod,encoding='utf-8',errors='ignore') except IOError as e: print('Невозможно открыть файл - ',file_name,'. Работа программы будет завершена. \n', e) else: return the_file def Main(): for...
8458f16e6a0b52a5fc3b0096d42622a47cb7d1a9
1b1a20d75e46ae96fd871ccee29b4cd5065ff17b
/get_iam_user_detail.py
0eab2b61d3bd9cd4648acd60bdf6b83272a5cf75
[]
no_license
kaushik853/udemy-python-aws
0818c517c0d115e571e07787f54463493b2b265b
561362499e1065b0a41f930fda6fc34e1dca3bbb
refs/heads/master
2022-02-06T09:45:57.291914
2020-05-04T14:28:36
2020-05-04T14:28:36
236,810,967
0
0
null
2021-04-30T22:00:44
2020-01-28T18:41:27
Python
UTF-8
Python
false
false
539
py
get_iam_user_detail.py
import boto3 import datetime import sys session = boto3.session.Session(profile_name="adi_security") iam_re = session.resource(service_name='iam') # iam_re_user = iam_re.User("kaushik.pal@adidas-group.com") # print(iam_re_user.name, iam_re_user.arn, iam_re_user.create_date, iam_re_user.user_name) try: for each_ia...
c5067e64518a80c6f3b28e6639d794f7da0eab5a
92fa5a2aac61caab510bcf283038ef2f5701aeee
/Regular Expression.py
702fb7590e400ccf7c81c6b5b44daaf9d1cc6598
[]
no_license
Benson-Jhang/Web_Crawler_JobHunter
7c3ccdf0446efd8d1cd080eddbcdc7f8a8f86161
912b9e91c146c2423934a5a7b2b81cd6eddbe8b3
refs/heads/master
2021-04-15T06:04:03.051815
2018-03-21T16:03:38
2018-03-21T16:03:38
126,205,267
0
0
null
null
null
null
UTF-8
Python
false
false
3,468
py
Regular Expression.py
import re # '-' 一定在中括號裡面 (單一字元) str = 'abc1234' print(re.search(r'[a-c0-4]', str), '#1') # '[]' 整個中括號代表一個字元,裡面的內容就是這個字元的所有可能 (單一字元) print(re.search('a[a-c]c', str), '#2') # '^' 在中括號[]中表示「相反」或「非」的意 (單一字元) print(re.search('a[^d-e]c', str), '#3') print(re.search('a[ayz]c', str), '#4') # a 或 y 或 z s = 'a-baaa' print(re....
4d4e3c8d0fbfc430d33279e38cbaea2714bfbc75
a6f64fbc3e97962f8443cba0b499570268f85697
/interactivepython/settings.py
42db04c1e5e4ba1ab9580299d9ee2c278715814e
[]
no_license
xggrnx/translate_problem_solving
f8b55c4aadd893c6685bbf1bfa295531fee23d10
b8c19da196abc0ddb3ad3ebf62c252d1c70100dc
refs/heads/master
2021-01-15T20:44:07.994835
2014-06-01T08:15:15
2014-06-01T08:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,298
py
settings.py
""" Django settings for interactivepython project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DI...
a1e4602ee718d599cf8561fe6bc1f4db171f5056
7dce6129fc93b4e181e30648f1b4ea54917bc6bb
/urlannotator/crowdsourcing/models.py
06bf66cbf7b1b12927957614340fb443ec65f967
[]
no_license
kkonrad/urlannotator
39ec871ac15fcfcb98fd6efadec65d1078d0c378
f4b2b4df2d145042719b1a448aa11d31e4c5b067
refs/heads/master
2021-01-18T06:02:45.309288
2013-01-29T22:35:26
2013-01-29T22:35:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,517
py
models.py
from django.db import models, IntegrityError from django.utils.timezone import now from urlannotator.main.models import (Worker, Sample, LABEL_CHOICES, Job, WorkerJobAssociation, SAMPLE_TAGASAURIS_WORKER, LABEL_YES, LABEL_NO, LABEL_BROKEN, Account, worker_type_to_sample_source, make_label) from urlannotator.cl...
0a3fde8cfd0709acb06224af5398dcea791469cf
f75fab10836a617e2cc76f49280edbeff2209b86
/fetcher_labeler_classifier/labeler.py
dea99bf4830adb68f866ba8fdf69259ae9e37959
[]
no_license
megab96/newstime
8c9ad34c748e1572d933f55f898a25c247cc7934
b88893f7d44cd873313fe67622ba5066d37f4303
refs/heads/master
2020-03-11T16:32:57.871978
2018-04-18T20:29:25
2018-04-18T20:29:25
130,120,120
0
0
null
2018-04-18T20:46:57
2018-04-18T20:46:56
null
UTF-8
Python
false
false
1,026
py
labeler.py
# The labeler takes a url of a news article, extracts topics and entities from the text and writes them in a text file. # To do: # think about labeling multiple urls concurrently # output labels directly to the classifier component without the need for a file import textrazor textrazor.api_key = "5634740d9e8d89a1437...
5afb5a01c2a3088d6fdf3ea887a2e5c5ab96ed8e
137e58b7a423cc470bf3e9bec2758329248c3f60
/Server.py
91f4b4a1fe4cc812c844e307f8a8c2f2ec1214ab
[]
no_license
timlardner/PieSecure
e6a0fca9735b4128636431aa136a41d1b3add71b
4f6d613e22404d51a6bb3f57bc312c59ee9ad2a0
refs/heads/master
2021-01-10T02:38:10.185074
2015-05-30T21:09:24
2015-05-30T21:09:24
36,552,956
0
0
null
null
null
null
UTF-8
Python
false
false
4,921
py
Server.py
import socket, threading, pickle, sqlite3 class ClientThread(threading.Thread): def __init__(self,ip,port,cid,key): threading.Thread.__init__(self) self.ip = ip self.port = port self.CID = CID self.Key = key print "[+] New thread started for "+ip+":"+str(port) d...
44b61057a7abe5f89c794a502230fdce3507e873
1358ef9bac9629038656cb05d458dfda38cc91de
/game.py
f2723ce34e712ee4239542ea1504dc6cc7bdb231
[]
no_license
steinitzu/platformy
ec55aba3e9dba7c0f9ad6dad7e8c8e0603fbf71f
9c4ad51818fbca60b39c81bfd4fe984bcb88ba1a
refs/heads/master
2021-01-21T12:46:55.357987
2015-10-01T18:44:37
2015-10-01T18:44:37
42,413,417
0
0
null
null
null
null
UTF-8
Python
false
false
32,337
py
game.py
import os import random import logging import math import warnings from collections import namedtuple import threading from webcolors import name_to_rgb as rgb import cocos from cocos import sprite, layer, actions, collision_model from cocos.rect import Rect import pyglet from pyglet.window import key as keycode fro...
cce12485e8ddda99a503e61991383acc8c802fb9
67427a9b03dcf5f77cdc596f4ccbdd89271fe76f
/Planimetry/newpmjh1.py
313d7ab36d31c9d3da0f2f1a3a8eeec2193ca07b
[]
no_license
Graphcities/ManimProjects
fb1f9fa0a8fc80b3a3e75473fb1dee460ad02eaa
7b4e0fe99572496c01ff020d33b392f7adc95568
refs/heads/master
2023-07-09T21:51:34.422904
2021-08-12T08:55:43
2021-08-12T08:55:43
392,963,737
0
0
null
null
null
null
UTF-8
Python
false
false
44,673
py
newpmjh1.py
from numpy import tri from manimlib.imports import * import math import os import pyclbr global txtsc txtsc = 2 def title_of_video(self): # 开头 text = Text( "浅谈平面几何", font="Microsoft YaHei", t2c={ "平面": RED, "几何": "#2196F3" }, stroke_width=0.5, ...
460b5f373825bebaf3da9f1ead0c8109cd0334b2
71c904165a604382a3e6d3ef8905d8ee1a196bd6
/COURS/Systeme_multi-agents/BDD/robdd.py
1b3e118bcc3cbaea5ad72b8e9d92425f26f4abcc
[]
no_license
Silmaril64/Personal_Work
622a4fa4e154881b440c752cf11eb4cc3ea9b3e1
3dffeb3e2f13cb3920b7b192bc1032fba5c1212b
refs/heads/master
2021-07-04T21:04:58.566535
2021-01-13T23:09:51
2021-01-13T23:09:51
219,303,507
0
0
null
null
null
null
UTF-8
Python
false
false
4,559
py
robdd.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from ite import Ite from sys import maxsize class Robdd: # static helper methods @staticmethod def true(): return Robdd.make(Ite(1, 1, 1)) @staticmethod def false(): return Robdd.make(Ite(1, 0, 0)) @staticmethod def make_x...
67f9627699172d8fc2d713fad03108a3689ff867
8c2de4da068ba3ed3ce1adf0a113877385b7783c
/hyperion/torch/layers/norm_layer_factory.py
cd7e542f25fe9c86c8d6511ca71ef440de8d31d3
[ "Apache-2.0" ]
permissive
hyperion-ml/hyperion
a024c718c4552ba3a03aae2c2ca1b8674eaebc76
c4c9eee0acab1ba572843373245da12d00dfffaa
refs/heads/master
2023-08-28T22:28:37.624139
2022-03-25T16:28:08
2022-03-25T16:28:08
175,275,679
55
20
Apache-2.0
2023-09-13T15:35:46
2019-03-12T18:40:19
Python
UTF-8
Python
false
false
3,594
py
norm_layer_factory.py
""" Copyright 2020 Johns Hopkins University (Author: Jesus Villalba) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ import torch.nn as nn class NormLayer2dFactory(object): @staticmethod def create(norm_name, num_groups=None, momentum=0.1, eps=1e-5): """Creates a layer-norm callabe co...
764660cf0dee3772ba1a006d8a3ef4e356bc0cf4
5f23ce78c8ae864bc21a9b16f290a2cb54a89ce6
/Speech.py
70cd099dc3e27f370f15e239dc3f030aa598c6c5
[]
no_license
JayaSaxena/MicroPython-code-for-BBC-micro-bit
b0f2e6d2834b9f400b481cd2688d5a6f8fd0015b
5126304606f30551fe5ebc8e752cb2354d9c50d9
refs/heads/master
2020-04-13T11:52:34.230963
2018-12-30T18:21:31
2018-12-30T18:21:31
163,186,214
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
Speech.py
#https://microbit-micropython.readthedocs.io/en/latest/tutorials/speech.html import speech while True: #speech.say("Hello Aarav ", speed=255, pitch=100, throat=100, mouth=200) speech.say("Hello Aarav ", speed=255, pitch=255, throat=100, mouth=200)
846589c24d8be96e05edbec0497c0be0dc6ed96b
315276a030532990735109d8d579cd1456e5317a
/analog_read_red.py
df6b4023d21e28a97279349952de8652fdc24db2
[ "MIT" ]
permissive
Harduski/US-Data-Project
b8248102d72442bb9d5d1808563a41d7f8107553
e1dd64eddc5e3c994b486f3f325eb0b6bd135525
refs/heads/master
2022-04-16T12:36:54.938235
2020-04-16T07:53:35
2020-04-16T07:53:35
256,141,965
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
analog_read_red.py
#!/usr/bin/python import redpitaya_scpi as scpi import matplotlib.pyplot as plot import time import numpy as np # Variables ip_adress = '192.168.128.1' file_path = r'Ergebnisse/Test/Test.csv' num_of_cycle = 10 buff_array ='' buff_np = np.zeros((num_of_cycle, 16384), float) #inizilation trigger rp_s ...
4cd805a67aee1ba08b348915e09ef94333433237
739e782a93991fbb3cf3ad80e5c777bac808d0f8
/blockchainTV.py
602820462de5e430143e3c701d19e6f6822bd198
[ "MIT" ]
permissive
SaxonWang99/CMPE273-WeWin
f3a6ac2e2e5ecf4e7841bcc3e4e0da58f76bca1c
a0c3051576f321d81bad39d13648b15b955e17e8
refs/heads/master
2022-12-11T05:25:37.725055
2018-05-11T02:22:18
2018-05-11T02:22:18
122,562,295
0
1
MIT
2022-12-08T02:07:55
2018-02-23T02:19:59
Python
UTF-8
Python
false
false
8,386
py
blockchainTV.py
import hashlib import json from time import time from urllib.parse import urlparse import requests import datetime class Blockchain: def __init__(self): self.product = {'upc':"777777777777", 'item_no':"9"} self.owner_history = [{'owner': "WeWin-TV"}] self.chain = []...
09e666956e1c669f54cfff44c4d06dbbd41119c1
10f047c7631b3aad90c7410c567c588993bfa647
/PythonDispersal/src/TestsDrafts/ColDeath.py
1cea53e42a90c952d3f32d87c324790812d15fa1
[]
no_license
ruthubc/ruthubc
ee5bc4aa2b3509986e8471f049b320e1b93ce1d5
efa8a29fcff863a2419319b3d156b293a398c3a9
refs/heads/master
2021-01-24T08:05:40.590243
2017-08-30T01:37:56
2017-08-30T01:37:56
34,295,740
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
ColDeath.py
''' Created on Aug 14, 2014 @author: Ruth ''' from core.ColonyClass import Colony from core.SpiderClass import Spider from core.PopulationClass import Poplt list1 = [1,2,3,4,5,6,7] list2 = [] if not list1 and not list2: print "dead" else: print "alive" test = [i for i in list1...
0e93f67bcc4ac1f561682d5fe6c2e441ad65e14a
bc5af70af75141a8efdb8467ae5791d66e0057e1
/winterexperient/blank.py
c5fd16d2175d2582ca339c3a4dc200ebba70fcce
[]
no_license
momosukezo/ubuntu
16324afadd68b9a6fef0c329712cf90befca4edb
346ac056e1dc2957d390ff47f8e5454f762f966f
refs/heads/master
2021-10-11T22:59:38.431751
2021-10-01T13:25:43
2021-10-01T13:25:43
209,837,640
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
blank.py
import cv2 import numpy as np height = 600 width = 1060 blank = np.zeros((height, width, 3)) blank += 100 cv2.imwrite('blank.png',blank)
479616bce03abd9c57c9ad1af6f606cff1f20003
32c2bd0c0c5cd4e16706b35853fdfe848a5e1ef6
/bot/decimal_to_precision.py
7e3d10cec277ab1329b5fad97e79d3e7ddb409ef
[]
no_license
webclinic017/fx-1
c83dc13114f67dd66892dbf6b38adbd378613289
04ad9a0414d74a4211587dbd6e446782d13ad317
refs/heads/master
2022-04-04T05:23:34.390185
2019-12-22T07:22:00
2019-12-22T07:22:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,802
py
decimal_to_precision.py
import decimal import numbers import itertools import re __all__ = [ 'TRUNCATE', 'ROUND', 'ROUND_UP', 'ROUND_DOWN', 'DECIMAL_PLACES', 'SIGNIFICANT_DIGITS', 'TICK_SIZE', 'NO_PADDING', 'PAD_WITH_ZERO', 'decimal_to_precision', ] TRUNCATE = 0 ROUND = 1 ROUND_UP = 2 ROUND_DOWN = 3 DECIMAL_PLACES = 2 S...
08f2e88f44e2b789f9ad5550650c93f57ccfbef0
d70fe0fdfce43258de6c87dc9b506ebcdfaa49c0
/confirm_ieeg.py
f617ca2f5a003f17daf1c6f47ee44598476c34e5
[]
no_license
LabNeuroCogDevel/mgs_encode_memory.py
64dd5064018b8edf8d954a4007f77a2dfec7746d
43ce77b79d8f18e0814576362d857f8e675cac4d
refs/heads/master
2023-01-19T02:46:22.070082
2023-01-13T19:20:18
2023-01-13T19:20:18
103,667,779
0
1
null
null
null
null
UTF-8
Python
false
false
1,242
py
confirm_ieeg.py
#!/usr/bin/env python from psychopy import visual, core, logging from mgs_task import mgsTask, msg_screen from host_info import host_tasktype host = host_tasktype() win = visual.Window([400, 300]) textbox = visual.TextStim(win, text='**', name='generic_textbox', alignHoriz='left', color='whi...
cc2dafeab4f307190090737626c81ff49d92c396
5e0f1d14a795ad6d385467f75ab813066155d653
/api/settings.py
932c24d3e5a31705257c496297707a964497d090
[]
no_license
YaroslavKaminsky/piastrix
5e95a8d662551fc4edea024f82be1c1dd74a95cb
73c0fbbeee95295bfe6c8fc20352f4b5fa3d23df
refs/heads/master
2022-01-29T14:25:43.719975
2019-05-05T19:07:03
2019-05-05T19:07:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
settings.py
import os PIASTRIX_PAY_URL_RU = 'https://pay.piastrix.com/ru/pay' PIASTRIX_PAY_URL_EN = 'https://pay.piastrix.com/en/pay' PIASTRIX_BILL_URL = 'https://core.piastrix.com/bill/create' PIASTRIX_INVOICE_URL = 'https://core.piastrix.com/invoice/create' SECRET = os.environ.get('SECRET_KEY_PAYMENT') SHOP_ID = os.environ.get(...
a68a5de98994688d2f7c719a0972f033df08b622
85327bee50e66a3c6f0961d52fa0c6ae51a8040b
/014_ColorDetect.py
eaba4199fe2df2ef1d45c1981620b336f9f5d6a1
[ "MIT" ]
permissive
supercatex/OpenCV_Tutorial
d41c0c6baf325f0b744b3a64bd27ab57e1e592a8
a448f01962832a75e8e7521e394a93cffe7de956
refs/heads/master
2020-08-01T13:13:54.353330
2020-02-24T03:40:31
2020-02-24T03:40:31
211,008,631
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
014_ColorDetect.py
import cv2 camera = cv2.VideoCapture(0) while camera.isOpened(): success, frame = camera.read() if not success: continue hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) lower = (18, 100, 100) upper = (22, 255, 255) mask = cv2.inRange(hsv, lower, upper) contours, _ = cv2.findContours...
7f00e0e649ccb4e589d2c5406b7cce0748677f99
9a875bb254120b88e95bd63e5c434976b569d980
/apps/mail/views.py
6eb0acdecf6809c63f7a0f200e43c7ee312e7369
[]
no_license
buffalobill571/linus
a17a01f87821bc223c3d858f5b7266f70383af4b
5928eb72c666f76afb5ee333b5a496c9e544cc23
refs/heads/master
2020-03-25T10:40:43.434252
2018-08-21T18:06:12
2018-08-21T18:06:12
143,701,423
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
views.py
from rest_framework import generics, mixins from rest_framework.permissions import AllowAny from apps.mail.serializers import EmailMessageSerializer class SendMailView(generics.CreateAPIView): permission_classes = (AllowAny,) serializer_class = EmailMessageSerializer
28b04982b620aed5b16f2f61452610bcf41e312a
dd8ed74b8e25d076de672feceee6fb6a5089d815
/app/imports/external.py
0bd9a90ae7bbfeaf1a2e54ff35ba8fb108d9c3f2
[]
no_license
nkrokhmal/simple-chat
d7eaf36155d37275137341a78206337dbcc835c4
ea4e3f82303b34fe1cc92bb64705c9d70be9105e
refs/heads/main
2023-07-27T07:06:30.326247
2021-09-10T09:02:58
2021-09-10T09:02:58
403,977,105
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
external.py
import hashlib import os import binascii import mongoengine import flask from datetime import datetime import uuid from loguru import logger import inspect import flask_script import flask_migrate import flask_admin from app.globals import *
185d6af261fcedbb5f8afa90240a5a7f0759955e
95efb37b6ab155d38936e02262bdad4c6844e4a7
/Weekly-meeting/Week-5/BeautifulSoup으로 네이버 랭킹 영화 크롤링하기/crawler/crawling.py
4626d0c15346ea15a24304cee346a9f320fc67f1
[]
no_license
MSWon/Python-dev-moim
3032810e2e0e04acd8b642888b6f971cd3dff603
cb5b00c579d238ae475543a4d561c4cd24b53d01
refs/heads/master
2021-01-16T16:23:41.862279
2020-10-14T13:41:52
2020-10-14T13:41:52
243,182,286
4
2
null
null
null
null
UTF-8
Python
false
false
4,360
py
crawling.py
import re import requests import time from bs4 import BeautifulSoup # 각 url 정보 RANKING_URL = 'https://movie.naver.com/movie/sdb/rank/rmovie.nhn?sel=pnt&date=20200810&page=' # 랭킹 URL MAIN_URL = "https://movie.naver.com/movie/bi/mi/basic.nhn?code=" # 영화의 주요정보 URL IMG_URL = "https:/...
0442f13871026e48cf760b50630582e13729a0de
4072b421924935e927325e0c01f3e164eee9d002
/massa_agua.py
bfe05b6a84e049d33f9efc24c82e7167155d0970
[]
no_license
werble7/exercitando-python
b1b6ba7f08688f8cef58a8cd617864a7caa21fd7
13d1322edcbe2dcfa5fd8b7f27b228bc43354ae8
refs/heads/main
2023-06-01T09:05:33.520975
2021-06-22T02:34:00
2021-06-22T02:34:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
massa_agua.py
massa = float(input("insira a sua massa: ")) resultado = massa * 0.03 print("sua quantidade ideal de líquido é {:.1f}" .format(resultado)) # ".format" foi usado para deixar apenas uma casa deciaml no resultado.
4e9d26d6d04e2bee062f534e96e0596eeee0a4db
f7d2aa85e712fbb43e1d548194db059befff8dae
/status/migrations/0020_auto_20200428_1739.py
5bd5e409d2f471da403c8851813d06e9313ca05b
[]
no_license
Ampath-Summer-2020/Ampath-Summer-2020
7898b1d63f9cddd29d9a9750b7af35716db9a968
e4c228b90add962640b04b66e2952ce2502215c5
refs/heads/master
2023-08-05T08:21:28.478219
2020-07-16T21:07:17
2020-07-16T21:07:17
265,015,739
1
1
null
2021-09-22T19:09:26
2020-05-18T17:44:23
Python
UTF-8
Python
false
false
380
py
0020_auto_20200428_1739.py
# Generated by Django 3.0.5 on 2020-04-28 21:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('status', '0019_auto_20200428_1736'), ] operations = [ migrations.RenameField( model_name='status', old_name='status_category_...
ca5088ce1247be3587ae0be6499b085f53a8f8da
70ff0c7c718f7921dafc51ace6a5eb2758014e1f
/model.py
1a90d2ce456f1fdf929f46302cb7c39b8b603a5f
[ "MIT" ]
permissive
harshmathur1990/PoreAnalysis
0e9234083b2b562d7333e3a7a03a23a398cd0cb7
ab860669cd41a598ea5b21980b29ee3372f0a178
refs/heads/master
2020-06-14T13:30:10.053595
2019-12-05T12:55:02
2019-12-05T12:55:02
195,016,595
1
0
null
null
null
null
UTF-8
Python
false
false
4,013
py
model.py
import datetime from sqlalchemy import Column, Integer, DateTime, \ Float, ForeignKey, String from sqlalchemy.orm import relationship from utils import Base from utils import session class Record(Base): __tablename__ = 'record' id = Column(Integer, primary_key=True) date_time = Column(DateTime, uniq...
1dd6cfd2908a9ea71238f817f6ad398445a9be2b
3b4ea5c8e3129ec222eb959d6310df0046cd9484
/cogs/desativado/server/web.py
4f9d172ad8f8286381fc1e2a9d5822e2ab5b3fa5
[]
no_license
J-HenriqueDev/New-Dev-s
3d775ec6f43dbdb36a6f0b1f56841ecfeb7b5596
126c3277a3258aef7bd85b9edfdf97ea8f1b34e8
refs/heads/master
2023-05-31T22:13:41.117995
2019-07-07T16:44:38
2019-07-07T16:44:38
169,625,221
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
web.py
import discord from discord.ext import commands import random import time import asyncio from pymongo import MongoClient import pymongo import json import config.database import config.db class web(): def __init__(self, client): self.client = client @commands.command() async def id(self, c...
f0349c5502aca3c0e637787b5de1aec5fae1b518
32cc5fe0dd9376f9f7211f6defe3100cfdc10b3c
/BinaryTree/binary_tree_all_path.py
6069e7ce9b873f78fdbe570d106a6560646ee347
[]
no_license
RegCookies/Offer-Sward
601bb16d107027599de1376db76435875d6525e7
82cff33aee421a2e4288e8d21ea3a54a8834a8ec
refs/heads/master
2020-03-31T00:35:20.246454
2018-12-10T13:59:29
2018-12-10T13:59:29
151,746,368
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
binary_tree_all_path.py
class BitNode: def __init__(self,val): self.val = val self.lchild = None self.rchild = None def FindRoad(root,num,sums,v): #记录当前的节点 sums += root.val v.append(root.val) if root.lchild == None and root.rchild == None and sums == num: i = 0 while i< len(v):...
db1e33ee9de41fa587b9c4536e5827ee792bf200
b9fb4aef887445c4cffe4a7367dd5a080c8ae857
/ejerciciosDeClase/ochoReinas/Fer-n-queensBFS.py
121d8fe90345c559f8812a32d79ba721e0faaace
[]
no_license
nestorivanmo/ai-codes
0b6cffaa38084581e29953a87b5844998f53a546
7ba0a7e1d1a1bb6aaa6b4b61be30ff2b742160bc
refs/heads/main
2023-03-07T04:34:21.174793
2021-02-15T13:45:41
2021-02-15T13:45:41
306,449,998
0
0
null
null
null
null
UTF-8
Python
false
false
2,985
py
Fer-n-queensBFS.py
class Tablero(): costo = 0 def __init__(self, n): self.dimension = n self.reinas = set() self.level = 0 def __hash__(self): return hash((self.level,tuple(self.reinas))) def __getitem__(self, key): return self.reinas[key] def set(self, y, x): item = ...
9f84057dca059dc36eee27da82a24ab3f7f5e380
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02768/s154587209.py
49e7f5394402edbeee01bec6ea2c905716db182c
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
s154587209.py
n, a, b = map(int, input().split()) mod = 10**9+7 # (2**n-1)-nCa-nCb sum_n = pow(2, n, mod)-1 # print(sum_n) child = 1 mother = 1 for i in range(0, a): child *= (n-i) child %= mod # 分子 mother *= (i+1) mother %= mod # print(mother) # mod-2はフェルマーの小定理によるchild/mother ->child*(mother**(mod-2)) -2が出てくる...
8a51d08bedec954618431f56a3f34efb29f09f49
47288e23d0248d7bfbda0cfae5bc138d389cbbb6
/axiom/algebra/cond/cond/infer/imply/cond/induct.py
420051e50e93612a5ddc7d2105e595a07ab0d28c
[]
no_license
cosmosZhou/sympy
d94ce6ad9028d143bb877f46fad4eda1d5dc2173
6160fff63636fd81755bd94e777ba450a09df517
refs/heads/master
2022-07-30T20:51:35.359580
2022-07-11T12:40:50
2022-07-11T12:40:50
199,948,191
3
1
null
2020-08-26T14:13:49
2019-08-01T00:34:25
Python
UTF-8
Python
false
false
1,101
py
induct.py
from util import * @apply def apply(f0, f1, suffice, n=None, start=0): start = sympify(start) fn_fn1, fn2 = suffice.of(Infer) fn, fn1 = fn_fn1.of(And) if fn._subs(n, n + 1) != fn1: fn, fn1 = fn1, fn assert fn._subs(n, n + 1) == fn1 assert fn._subs(n, n + 2) == fn2 assert fn._su...
1eff0cc934b261c72c3eb77182ae6c3602f0e065
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02889/s526617186.py
9fa50a707d58b0c4ee96c87b995fd7ce9edd1d03
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
s526617186.py
import numpy as np import sys from scipy.sparse.csgraph import floyd_warshall,csgraph_from_dense from scipy.sparse import csr_matrix input = sys.stdin.readline def inputs():return [int(x) for x in input().split()] N,M,L = inputs() ABC =[inputs() for _ in range(M)] graph = [[10**13]*(N+1) for _ in range(N+1)] for a,b,c ...
91b1a630491eb952a3bef01492988bce19a4cff2
a2065fec7cfae2d96c173fcd0afbd822c3d74580
/Variable/maHoa2.py
5f192c700fe549473ee036dcbd3c5788b8ad4b13
[]
no_license
DinhVanGioi2001/LearnPython
6505e1bc5f13ba9cae68e04842e4e3837787e8c3
d7f8d66b1c3f362ca8b3a07a3d0817510d7d760d
refs/heads/main
2023-07-28T01:09:50.971445
2021-09-19T13:51:33
2021-09-19T13:51:33
399,729,173
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
maHoa2.py
p = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_." n = input() arr = n.split() k = int(arr[0]) line = arr[1] res = [] while k: res.clear() for i in line: res.append(p[(p.find(i) + k) % 28]) #them vao phan tu thu (i+k)%28 res.reverse() for i in res: print(i, end='') print("") i = input() i...
44ca2a1a821e254d880c297324472605daa50945
525b9bea636b24a76eabbc31d153b8aeaae3f6d4
/config.py
3296f73a158f80b2d2d329f28123ca3bd816accd
[]
no_license
kverdone/daily_ff
2c90ff1c45019681cffe78744381c3b9a9c0d071
0f1964ffa2c9f310ff7053d25b63de9be29319d7
refs/heads/master
2021-01-10T08:01:02.688130
2015-10-02T05:51:00
2015-10-02T05:51:00
43,272,187
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
config.py
import os class BaseConfig(object): DEBUG = False SECRET_KEY = 'Still not secret key' SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] class DevConfig(BaseConfig): DEBUG = True class ProdConfig(BaseConfig): DEBUG = False
e0196821506279c6d71990ffb11f001d6ea1a41d
170366fd613c86bcc471df8cbc1045e143de5fe1
/anomalyapp/migrations/0010_auto_20201209_0939.py
82c4b2dcf02a035458ede6a15424b49c9504bc9f
[]
no_license
marco-ramsay/Anomaly
1741d44aeaf07ebaa8a4994ee0ca91946c5db650
3f57a372501789f0ab25deb154aef4eb31803633
refs/heads/main
2023-02-14T23:53:06.209341
2021-01-11T17:21:45
2021-01-11T17:21:45
328,693,771
0
0
null
2021-01-11T16:00:20
2021-01-11T14:40:42
Python
UTF-8
Python
false
false
862
py
0010_auto_20201209_0939.py
# Generated by Django 3.1.4 on 2020-12-09 09:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('anomalyapp', '0009_auto_20201209_0919'), ] operations = [ migrations.AddField( model_name='anomaly', name='pdf_uploa...
a975c482874fcf7439cc47d626b1655b4beaa6ed
aba442afba026d2130c4aeca863308ca26e7e472
/eda/setup.py
ec9dd155c057478097d1ddf4ffd3c607aca5f43a
[ "Apache-2.0" ]
permissive
stjordanis/autogluon
c8fd03a9bf7624911b13e90239e9260dd8885ddf
6af92e149491f6e5062495d87306b3625d12d992
refs/heads/master
2023-08-21T15:16:53.202431
2023-08-11T20:15:31
2023-08-11T20:15:31
228,360,888
0
0
Apache-2.0
2019-12-16T10:25:32
2019-12-16T10:25:30
null
UTF-8
Python
false
false
2,447
py
setup.py
#!/usr/bin/env python ########################### # This code block is a HACK (!), but is necessary to avoid code duplication. Do NOT alter these lines. import importlib.util import os from setuptools import setup filepath = os.path.abspath(os.path.dirname(__file__)) filepath_import = os.path.join(filepath, '..', 'co...
6d1eac84fbe4a5aa908f3bbded893b18f715c437
59f43d8d6b0c11b8316c2a30d835d89514028ab7
/test03/test_mytest.py
8b682ef50c6ddae0ff999e2e628419963e921f9b
[ "Unlicense" ]
permissive
vogonsoft/pytest-tutorial
1e6a1a62435e30c6e27c20e3ba2ca5a7efbe83d1
bc0608bdf425f14e0485a2bb45ee5bf41fbc85c6
refs/heads/master
2016-09-05T18:19:05.342593
2013-09-16T12:41:06
2013-09-16T12:41:06
12,770,399
1
2
null
null
null
null
UTF-8
Python
false
false
123
py
test_mytest.py
from mypkg.power import power def test_mod(mod): assert power(2, 4, 10000) == 16 assert power(2, 10, mod.modulus) == 0
55df1f85d8c4209462d0b8626dd2b77956ed667e
4da1f1fe0634f1142ff693ce490a8246eeb24f2d
/app/models/book.py
c36547dacadc8f0ddedabad30072df4773583ea8
[ "MIT" ]
permissive
saint816/fishbook_python
2a20238fc09dcdf1b80ca276def95bd0f4046804
80a4b563a05086c85eb347286d28bb0e6258ff1c
refs/heads/master
2020-05-14T23:19:23.912439
2019-05-10T01:12:59
2019-05-10T01:12:59
181,994,716
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
book.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: book Description : 模型层 Author : pengsheng date: 2019-04-19 ------------------------------------------------- """ # sqlalchemy # Flask_SQLAlchemy 对 sqlalchemy进行封装 from sqlalchemy import Column, String...
f51e173e12f24e524fc0cc9ff230027587e2fbfe
50609b491ba8495e6688b2753c890e456b4c9171
/1507_ReformatDate.py
8a6ea1371efcab75de481756576d4fdd5f256753
[]
no_license
lokendra1704/LeetCode
cd83f4aa6ebe743f48b99af225eb5a7c9848d532
8035605f0666899981a4f61bfb74d2eb69f60de6
refs/heads/master
2022-12-23T19:42:38.107695
2020-10-07T22:10:16
2020-10-07T22:10:16
272,093,038
1
0
null
null
null
null
UTF-8
Python
false
false
556
py
1507_ReformatDate.py
class Solution: def reformatDate(self, date: str) -> str: date, month, year = date.split() date = date[:-2] if int(date) < 10: date = "0" + date d = { "Jan": "01", "Feb": "02", "Mar": "03", "Apr": "04", "May": "0...
70e86a9acb581f144c0a5ef385d273a8e4d4f576
0d2011dd3f0372167c9d6ed0b0e297d0b5802f87
/String/49_GroupAnagrams.py
b224712d98769f97f6a2faf5348503fb4282447b
[]
no_license
jonghoonok/Algorithm_Study
4c049f5b7c733933d8d56a3f2eac5e74db21d27a
48bce15553034a3d2cf92f4c8f3312e41e08a2bd
refs/heads/master
2023-07-02T13:45:55.572922
2021-07-31T14:56:15
2021-07-31T14:56:15
283,682,316
1
0
null
null
null
null
UTF-8
Python
false
false
622
py
49_GroupAnagrams.py
def groupAnagrams_1(strs): words = dict() for element in strs: check = ''.join(sorted(element)) if words.get(check): words[check].append(element) else: words[check] = [element] return [word for key, word in words.items()] # 책의 풀이: IDEA는 나와 같은데 defaultdict를 이...
988d3fcd53c97a5ede41314660ab8cbe455f09c4
39e87ad58a5b243f1b742f6af8954f52974f587a
/__init__.py
15544afe30918249187b5149982f735c67233010
[]
no_license
a7xsalvador/note-python
c65c7f76c8e7b9e837e6f159cf141ddd38e3f30c
ea61b0d48bd52cdcb0c897a258b30cf727410e3f
refs/heads/main
2023-07-01T00:18:21.646665
2021-08-11T01:30:49
2021-08-11T01:30:49
394,822,921
0
0
null
2021-08-11T01:30:50
2021-08-11T01:15:14
null
UTF-8
Python
false
false
373
py
__init__.py
def run_note(): print('ingresa la nota') nota = str(input()) print('quieres guardar la nota?') def run(): print('0 para salir') print('1 para ingresar una nota ') opcion = int(input('selecciona el numero ')) if opcion == 0 : print('chao') exit() elif opcion == 1: ...
7f802e56fe95e4e5b41f995937a85918dfef33ae
c7766b10999ce7e809ca96109988fb08225bb778
/legacy/comparelist/test.py
0612b66bf68d7a9a2ad40bf2bf2ad84b33d33599
[]
no_license
ruatwork/ru-work
a93d9b057ab18ea6a7b6865c425cdcccb170609e
f2c2b7409c70e9a00ccaf7915539772b49ebbe94
refs/heads/master
2020-04-20T06:02:28.159680
2019-05-15T11:29:57
2019-05-15T11:29:57
168,672,339
2
0
null
null
null
null
UTF-8
Python
false
false
728
py
test.py
#!/usr/bin/python3 # checks external text files and makes them into lists # open and make a list of the file containing the MAC addresses of all employees with open("checklist.txt", "r") as alltext: checklist = [item.strip() for item in alltext] # open and make a list of the file containing current connected MAC...
97f171128afa9fad6c067feb59e4e0b4fd45c090
3bfffbf06a241d1da5c5679ab73052b86d057321
/envs/inventory/dev/inventory/inventoryKMA/migrations/0002_complaint.py
067b61d59bd796a5ec350290b750fe27db2f4faa
[]
no_license
valysenko/python
6e8260a5a755110393fe103781ea6febe8390b0e
b6afe289e6901e6440854d07fefbbbc6aa270267
refs/heads/master
2021-01-13T16:10:12.599434
2015-05-17T20:01:57
2015-05-17T20:01:58
30,964,777
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
0002_complaint.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators class Migration(migrations.Migration): dependencies = [ ('inventoryKMA', '0001_initial'), ] operations = [ migrations.CreateModel( name='Com...
bf764264ddc8a553065bac6ac24a6886628ffa39
a0d7dbe2f15f9816f1986607196cdf8bf2a152fc
/domletters
1e059b31f67439b2e5e242e352593a2c3690ab52
[ "MIT" ]
permissive
VictorPDX/domletters
94fc5eade00c93681fa2d0e5ff39f38c8b0ad1fe
3902fe3647b42309cc6ed0aa0d23ec4a6a8478a7
refs/heads/main
2023-06-04T00:34:06.220642
2021-06-30T03:53:39
2021-06-30T03:53:39
379,443,888
0
0
null
2021-06-23T01:25:34
2021-06-23T01:25:33
null
UTF-8
Python
false
false
2,066
domletters
#!/usr/bin/python3 import re import sys import collections from string import punctuation def count_domLetters(word): """The acutal algorithm that does the counting of the dominant letters in the input. Args: word ([type]): The word whose dominant letters are being counted. Returns: [int...
7d918ba41c8487b161a4d388434b90cf6ef0cf94
f7dcca9e7c07a2fbcf8c0d3e7b0c5aed5c10a783
/akaricast/setup.py
37ed4de6025fa56bbe4808c29906e5ea2cdf4fa5
[]
no_license
TypicalFence/akaricast
f19d19c2d7c470c9c94818d8200ed518cbb0841a
1482681b4a24b36212fa6caafb77c411663372dd
refs/heads/master
2023-01-24T02:58:55.263014
2020-12-06T00:06:18
2020-12-06T00:06:18
294,918,213
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
setup.py
from setuptools import setup setup( name="akaricast", version="0.0.1", description="akaricast client", author="fence", license='GPL-3.0', packages=["akaricast"], entry_points={ "console_scripts": [ "akaricast = akaricast.cli:akaricast" ] }, )
f9f262a0cd1f981db99f10ad59c0752f7355481f
15185d572e982eccbcd1764fabda2a2d2a721149
/dino2.py
faf5df477b5df2d6502be514bf2f10a683bd8b1d
[]
no_license
srBruning/T-RexAi
8081808882378447dcf19eeb7af9cc139ffe71fb
37660a15dc9172336b7b87f423faf3865027061c
refs/heads/master
2022-07-05T08:56:49.949678
2020-05-13T05:05:20
2020-05-13T05:05:20
263,528,103
0
0
null
null
null
null
UTF-8
Python
false
false
1,757
py
dino2.py
import util import values as vl import pygame from event_watcher import EventWatcher from dino import Dino from ai.neuronio import RedeNeural import logging logging.basicConfig(filename='app.log', filemode='w', format='%(message)s') class Dino2(Dino): def __init__(self, context,sizex=-1,sizey=-1, position=15, r...
376cf96e24c6b0c49e5cc6b0bd75a2f8026d6eb1
eda4e4708289a0461544285646a19cbdeb1fc47b
/src/objects/__init__.py
bd62fec71096ea8818200c35be4712ffad9984e7
[]
no_license
cylwqq/TestAutomationFramework
31fa1497d3e0990ae0fbb74e607ed083f0501bb8
e7679cfa00bd6321206059f7cae71b763669aeee
refs/heads/master
2022-09-26T11:16:51.133405
2020-06-10T09:51:29
2020-06-10T09:51:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
__init__.py
from .api_base_obj import APIBaseObject from .base_obj import BaseObject from .web_base_obj import WebBaseObject
dc876a87b9fd8d75e1e894d29aea48afaf1fe54c
14016759a4cc008c8d30819b66b48c1deba20034
/src/obsidian/interpreter/funs/scope.py
4d1ca6a00ddffef51e320609ecf0b4ededca15c6
[]
no_license
agajews/Obsidian
34c84d0c91e770c3c51da112f98113693f3245d0
32e61b1d8cdd0207c85eb4c0fc368e4ba3ec4320
refs/heads/master
2021-04-28T14:41:36.500849
2018-05-30T23:11:17
2018-05-30T23:11:17
121,970,355
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
scope.py
from ..types import ( PrimFun, Scope, String, nil, ) class ScopeConstructor(PrimFun): def __init__(self): super().__init__('Module', ['parent']) def fun(self, parent): if parent is nil: return Scope() return Scope(parent) class ScopeToStr(PrimFun): de...
9735420b8b8b9ec21896b2de86e98b4440aecb85
37b5b22a002d8d89538995c59e39c430145f75f4
/partC.py
92df7af16c8f18244ccd29ed4e37f44d81478471
[]
no_license
xiaotaichai/Newton-s-Method
ec4ff17dbbda51d053413aaf6eca607f74d42f6d
45d0764d1bb7e8527496a67ca9743f9c75155225
refs/heads/master
2021-01-25T13:28:53.870792
2018-03-02T12:52:08
2018-03-02T12:52:08
123,578,466
0
0
null
null
null
null
UTF-8
Python
false
false
2,813
py
partC.py
''' Exercise: 3.1, but only the Newton's method part and no line search is required. However, have your code plot in 2D the places where the evaluations occurred so it will be easy to see the path the search algorithm took. Program the Newton algorithms using the backtracking line search, Algorithm 3.1. Use them to mi...
646ba1ce119c0be72cc6a381348f1b7d9775dabc
44234df81b186fb5cf7e11cc49ae4a5ad148906f
/torch/preprocess.py
c6b29f663be7f8c459e45764f5dbde37c7b4a561
[ "MIT" ]
permissive
zhmz90/first_step_with_julia_kaggle.jl
b586daeffa623552e165fde2a7a13d28f3de5fff
563137a918834d42f419421875d7f2dba748a08d
refs/heads/master
2021-01-10T01:44:33.987213
2016-09-10T04:54:09
2016-09-10T04:54:09
48,595,535
1
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
preprocess.py
#!/usr/local/env python import h5py from skimage.io import imread import numpy as np import pandas as pd def read_data(typeData, labelsInfo, imageSize, path): x = np.zeros((labelsInfo.shape[0], 3, 20, 20)) for (index, idImage) in enumerate(labelsInfo["ID"]): nameFile = "{0}/{1}Resized/{2}.Bmp".format(path, ty...
d2b160a8eff0cb27c12bdfce4b01f5aa684c4c01
5547c05049131e9d39b2d173cdab35511b1f1df2
/Laplacian.py
0293871afa95274a95a9bf41d34fc7fb1c7701cc
[ "BSD-3-Clause" ]
permissive
siudej/Ricci
5b22fce31e2ad24625c26f259bb04e3f9f830747
694904872162f1d62831fb79f22822728efdcad2
refs/heads/master
2021-01-22T06:54:34.102556
2016-04-21T05:48:50
2016-04-21T05:48:50
53,709,413
1
0
null
2016-03-12T02:33:34
2016-03-12T02:33:34
null
UTF-8
Python
false
false
2,106
py
Laplacian.py
""" Approximate Laplace matrix via heat kernel. """ import numexpr as ne import numpy as np def computeLaplaceMatrix(sqdist, t, L): """ Compute heat approximation to Laplacian matrix using logarithms. """ # FIXME Is the scaling ok in here? lt = np.log(2.0 / t) ne.evaluate('sqdist / (-2.0 * t)', out=L...
1c3b4e6461b36a08e49f444f898b88d136b219bd
baf1991c7e036606511fa3921e2ef9dc2484f182
/passcheck.py
65aa790625b498f1bb29b2509b7dac830eaa5feb
[]
no_license
anesh/Scripts
f19c1eae2199092bfa46fc075be0cfca93f3d1e5
b37fed5152dcd64021089bdb555a33c8cac1bbb9
refs/heads/master
2020-05-25T18:52:51.274602
2018-04-09T14:27:27
2018-04-09T14:27:27
48,869,827
0
0
null
null
null
null
UTF-8
Python
false
false
4,074
py
passcheck.py
#! /usr/bin/python import os import paramiko import xlsxwriter import socket import re import sys import smtplib from email import encoders from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.MIMEText import MIMEText username = raw_input('Enter your nbkid:') password = raw...