blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
0f46ecd515b03bc76076832351d4ad319fa07fb2
9d474a95e76b2c9e299f26e1a1ecdce2421eb527
/taskmate/settings.py
0798e8eadf5cc42924a747e978d980f8c3409c5a
[]
no_license
itzzyash/taskmate
6c584357a630e9fd3aa60d5a04e64fd9c6d56304
a0d2e9d2a6a109fb3e35108fa144413c61422bc0
refs/heads/master
2023-07-02T15:33:21.834927
2021-08-07T12:26:51
2021-08-07T12:26:51
393,466,542
0
0
null
null
null
null
UTF-8
Python
false
false
3,395
py
from pathlib import Path import os import environ import django_heroku # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent env = environ.Env(SECRET_KEY = str,) environ.Env.read_env(os.path.join(BASE_DIR, '.env')) # Quick-start development settings - unsui...
[ "awesomeyash8@gmail.com" ]
awesomeyash8@gmail.com
4a9bc42d0f3d053028bbf3ba0fab3b325d1568df
a06e22a046bd36d969a159f10feb6f0be92bd18f
/core/migrations/0001_initial.py
70ba189891f7da1ff3459cc7bd0ba5d31c03570d
[]
no_license
GridIO/babl
78f880d04d2dc0c1514f14201f387e34e4decdd2
61c6278dfaa3be462926ecd2f0cee585d273cca4
refs/heads/master
2020-04-01T19:48:11.748396
2018-03-28T22:28:52
2018-03-28T22:28:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,576
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-12 21:13 from __future__ import unicode_literals import core.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_u...
[ "haldunanil@gmail.com" ]
haldunanil@gmail.com
0424f67b9592fe8ef200c8a0114136022d63055d
1621188daf95535f13de976f2a6db500f134495a
/bin/url-encode
ce9c0f939e8b1017b00fe778cb240e54171cc2d2
[]
no_license
adamball/dotfiles
c278a3c5944cc82d5fc2dfc03c20fb72ade6aa67
f2a7908140093244c8e13774f7e02e12c6069682
refs/heads/main
2023-05-28T05:09:43.559104
2023-05-17T15:30:57
2023-05-17T15:30:57
41,573,122
1
0
null
null
null
null
UTF-8
Python
false
false
329
#!/usr/bin/env python3 # Perform a URL encode (quote) on the passed in string from sys import argv, stderr from urllib.parse import quote def help(): print(f"usage: {__file__.split('/')[-1]} [STRING]", file=stderr) if __name__ == '__main__': if len(argv) < 2: help() exit(1) print(quote(ar...
[ "etc@adamball.org" ]
etc@adamball.org
280e83ef0782347a3afd107ead0084773b84c6ae
aa8af4dc70c14339a05489b0c4c4925d7a00e319
/starbox_custom/starbox_custom/doctype/store/test_store.py
908d6e2311d2d1c252d713c5f8fb6e7b22ab9769
[ "MIT" ]
permissive
vhrspvl/starbox-custom
925768540b318ee923dd6587291fbece003fd17e
0d1143e64119cff66ad52fbe8453fa7281b62998
refs/heads/master
2021-05-13T21:35:17.327744
2019-07-24T16:11:50
2019-07-24T16:11:50
116,466,334
0
2
null
2018-08-13T15:05:27
2018-01-06T08:15:26
Python
UTF-8
Python
false
false
217
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, Starboxes India and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestStoreKeeper(unittest.TestCase): pass
[ "hereabdulla@gmail.com" ]
hereabdulla@gmail.com
e095f43482857706f465881fc451333a99f14c46
c35a2a0b5829f250bacad72e14e464ebea0cf452
/Alpha/alpha2/text2.py
d6cc05c9b97193f825acab231f751d59730f77ad
[]
no_license
cherry-p/031802123
93c8c47b30b7cd382fabf33c15d9e5fd9528a6a5
7f9a16bf61a59cd358c767b38a20290a6aafbefa
refs/heads/master
2023-01-10T12:16:21.468824
2020-11-13T10:47:47
2020-11-13T10:47:47
293,068,950
0
0
null
null
null
null
UTF-8
Python
false
false
4,066
py
# !coding=utf-8 #根据电商平台商品url爬取价格趋势 import requests import os import re import json import datetime import time import pandas as pd from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) import win32api, win32con def raw(text): # 转化...
[ "903357544@qq.com" ]
903357544@qq.com
768fc1bca9411a3b126022e603bbd813570d4d97
f895647af259039c7edcadba461d83f0bddc86f0
/util.py
be8659fc5d57bb703ad4b4e22d98a5c3af936531
[]
no_license
tonywang0613/practical4
302d7dc59a4150bffa3d5c0492a3887201bbf26b
2b4c5b63aa7c9903a3957ece87bc802d31a280c3
refs/heads/master
2020-12-24T19:04:03.399416
2016-04-30T02:15:33
2016-04-30T02:15:33
57,227,896
0
0
null
null
null
null
UTF-8
Python
false
false
2,008
py
import numpy as np import random class util: def __init__(self): self.reward=0.5 self.last_state=None self.last_action=None self.bin=50 self.EPS=0.01 self.gamma=0.9 self.Q=np.zeros((600/self.bin,400/self.bin,70,2)) self.epsilon=np.zeros((600/self.bin,400/self.bin,70,2)) def action_callback(self,stat...
[ "haowang@MacBook-Pro-4.local" ]
haowang@MacBook-Pro-4.local
6fc42a04c26c690643db44c5fc33a7775295c903
eddfb875dfb2cfea7da427832cd1d13f2f3ef24a
/pygame/transEx.py
df8e6ebd4cd7769e016a2ec31eae45acd881caaf
[]
no_license
CoderDojoLu/BBQjam
f3405f078572e5b0679f6756d449a284c0841aac
d590238c2d73aa30a6d31fb1e8bf80e6b9f3a234
refs/heads/master
2021-05-28T02:00:55.291075
2014-08-30T12:19:19
2014-08-30T12:19:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
#!/usr/bin/env python3 import sys, time from colors import * from screen import * def main(): ck = (127, 33, 33) size = 25 while True: time.sleep(0.5) for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() if ...
[ "steve@localhost.lu" ]
steve@localhost.lu
44019f8e0054c62342b61280690b6ff62aac80ff
8b576f16cfd9202f756611001e684657dde3e812
/03_TryExcept/venv/Scripts/pip3.7-script.py
68fc52157e004291293a7e15bf0d026173449d4c
[]
no_license
WenhaoChen0907/Python_Demo
26cc4d120aaa990c2d26fd518dfe6bcb622b1d77
136b8ced40623b0970c2a5bd47852425dcac3e86
refs/heads/master
2023-02-23T23:58:09.584321
2021-01-30T11:49:50
2021-01-30T11:49:50
334,374,597
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
#!E:\python-pycharm\03_TryExcept\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "18738127274@163.com" ]
18738127274@163.com
42578ba3422cde2aa409b7883dec36b75c62a800
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/leap/f8586ba81c1349918117ff21ab2d5b5e.py
48a969f886f37d77fddd9072875bff7e3adeb896
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
95
py
#!/usr/bin/env python def is_leap_year(y): return y%400 == 0 or (y%4 == 0 and y%100 != 0)
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
3012db0130225eacb31636816ca5a31adb4ab3c9
3b8381c7717e15fc3654fa87e93a78dd6a1ba437
/Python基础/chapter06/singleton.py
91b7b2d9cb5499182e2f89424fc2f314006fe625
[]
no_license
Onlysuran/Python
7e3fce51068a489d1c00f7bad991096c9d2a24e9
db372f64b9eb5300108b74174b5b32f86e656764
refs/heads/master
2023-06-11T08:12:03.520326
2021-07-09T01:54:59
2021-07-09T01:54:59
372,162,948
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
#coding:utf-8 ''' singleton type by rwriting __new__ filename: singleton.py ''' class Singleton: _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = super().__new__(cls) return cls._instance class MyClass(Singleton): a = 1 x =...
[ "2290220710@qq.com" ]
2290220710@qq.com
37ca63e7d6589e600ef1d73ef8e9be632371f6d2
b6f3f9a9d056e12660b99889a4a9e471e6f83378
/tests/remove_tabs_test.py
24befc43df5de8cb33e31ef55b0127063bd9a353
[ "MIT", "LicenseRef-scancode-unknown" ]
permissive
henryiii/pre-commit-hooks
0a377c0f9d468f5c9e31d1aa7f8d16c59dfcdef0
93b709d9ca27610518f5435fa9a51d98f7ada18d
refs/heads/master
2022-11-19T09:55:23.744580
2020-07-02T12:07:52
2020-07-02T12:07:52
281,143,934
0
0
MIT
2020-07-20T14:47:03
2020-07-20T14:47:02
null
UTF-8
Python
false
false
836
py
from __future__ import absolute_import from __future__ import unicode_literals import pytest from pre_commit_hooks.remove_tabs import main as remove_tabs @pytest.mark.parametrize( ('input_s', 'expected'), ( ('foo \t\nbar', 'foo \nbar'), ('bar\n\tbaz\n', 'bar\n baz\n'), ), ) def te...
[ "lucas.cimon@gmail.com" ]
lucas.cimon@gmail.com
4a2c91451796f219d51b74f12ba3c8156185b68d
79041f273c057b2fbb115b35494b13250ac7a42c
/bel/lang/migrate_1_2.py
a33ee3c88896e423a30211e7b124513032101612
[ "Apache-2.0" ]
permissive
belbio/bel
3786b65a10d44735407b0e79c8489bea1df58863
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
refs/heads/master
2022-12-08T23:02:28.242510
2020-12-21T16:17:47
2020-12-21T16:17:47
116,027,945
6
2
Apache-2.0
2022-06-01T23:58:52
2018-01-02T15:14:32
Python
UTF-8
Python
false
false
6,958
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Migrate BEL from 1 to 2.0.0 # # Standard Library import json # Third Party from loguru import logger # Local import bel.belspec.crud import bel.core.settings as settings from bel.belspec.crud import get_enhanced_belspec from bel.lang.ast import BELAst, Function, NSAr...
[ "william.s.hayes@gmail.com" ]
william.s.hayes@gmail.com
8bcd712f4be349d7fe2b89d4ff19355202af1010
b2ba670818623f8ab18162382f7394baed97b7cb
/test-data/AndroidSlicer/Chart/DD/8.py
09e5ae21e49aeca31e6e629fd56dbf73b0e2b860
[ "MIT" ]
permissive
hsumyatwin/ESDroid-artifact
012c26c40537a79b255da033e7b36d78086b743a
bff082c4daeeed62ceda3d715c07643203a0b44b
refs/heads/main
2023-04-11T19:17:33.711133
2022-09-30T13:40:23
2022-09-30T13:40:23
303,378,286
1
1
null
null
null
null
UTF-8
Python
false
false
990
py
#start monkey test import os; from subprocess import Popen from subprocess import PIPE from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage from com.android.monkeyrunner.MonkeyDevice import takeSnapshot from com.android.monkeyrunner.easy import EasyMonkeyDevice from com.android.monkeyrunner.easy...
[ "hsumyatwin@gmail.com" ]
hsumyatwin@gmail.com
e092ef74f6a936fe2bdfb351da8168a21f63b7af
02f40db82a233f67572de5880c924c3cec954bf1
/commute.py
3cc68692c170a94130fc80595d7b058196661ea5
[]
no_license
shinerd/SecurityDataAnalysis
b36f2534ca5a121f6a9ef40e810cb3743af8c45f
999629915798a059c196cdbfbb311c55643a2070
refs/heads/master
2020-04-10T13:39:59.893196
2018-12-09T16:47:03
2018-12-09T16:47:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,460
py
import random import pandas as pd IndividualList = [] Set = [] member = 1000 exclim = 100 def Intemp(): in_rand = random.random() # 출근시간 범위 if in_rand < 0.03: # 3% (7.0~7.5) temp = 0 elif 0.03 <= in_rand < 0.08: # 5% (7.5~8.0) temp = 1 elif 0.08 <= in_rand < 0.2: # 12% (8.0~8.5) ...
[ "vnflqkq@gmail.com" ]
vnflqkq@gmail.com
d670ac1ceb107656f1675249d6bf6acde68d380a
675de3fe4393072ac1fc5300c9254f26e8a68790
/main_app/migrations/0004_auto_20210206_2241.py
1da75edc87fb6c6d60a369784e7400fcf508c9f4
[]
no_license
juliors1/petgram
f3aaa22ce1f2b765990ccda288792d952746ea1b
9dbc7114e3ad367a7d343a55bc60eff917b2fd68
refs/heads/main
2023-03-02T05:54:01.633629
2021-02-10T09:54:34
2021-02-10T09:54:34
335,518,331
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
# Generated by Django 3.1.6 on 2021-02-06 22:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main_app', '0003_remove_post_user'), ] operations = [ migrations.AlterField( model_name='post', name='caption', ...
[ "juliorojassolis@gmail.com" ]
juliorojassolis@gmail.com
6cd48226c2b5daa5312ca2232f47327b3926aa63
7e6864c5c48317a590ed6cc9b2acb85754bcda3b
/app/bin/back_end_scripts/minimax.py
7a7839692657faffc8427321758349942d25078c
[ "MIT" ]
permissive
michaelneuder/connect_four
f83d8c1adf03af14632ab1acb23cc79ea5a3f035
de2a1d7296ffddaee4282b722775225cdfbe6304
refs/heads/master
2021-01-20T10:06:56.505978
2017-06-05T23:04:34
2017-06-05T23:04:34
83,929,928
2
0
null
null
null
null
UTF-8
Python
false
false
8,084
py
#!/usr/bin/env python3 import numpy as np import random as rand class minimax(object): def __init__(self, current_board, move_number): self.board = current_board self.number_rows = 6 self.number_cols = 7 self.move_number = move_number self.right_diag_1 = [] self.righ...
[ "michael.neuder@gmail.com" ]
michael.neuder@gmail.com
7c01a2dc952544084c821b874a5f922f27dc2f0f
1400d8489b19dc99c98f83dd16b6a6391d94cdb1
/cube_solver/rotate.py
cf2943cc7e2c1a7a14b7ffe0614109a4177963e7
[]
no_license
HZYYYYY/Rubik-s-Cube
e0da2c3551ec715121195d53f189a8b74ba5f5e7
b638ba299c25ed78ecb0497ab80bd055330731ae
refs/heads/master
2023-01-10T22:28:20.618639
2020-11-08T14:43:42
2020-11-08T14:43:42
197,895,926
0
0
null
null
null
null
UTF-8
Python
false
false
10,826
py
def rotate(config, direction): # U--0 new_fig = [] for i in range(6): new_fig.append([]) if direction == "U": new_fig[0] = config[0][6]+config[0][3]+config[0][0]+config[0][7]+config[0][4]+config[0][1]+config[0][8]+config[0][5]+config[0][2] new_fig[1] = config[5][:3] +config[1][3:...
[ "u6342051@anu.edu.au" ]
u6342051@anu.edu.au
8528ef1ce55149fb7e8d424939f432b07cf8de78
a1beace99088976ac6810bdf217ed4968c84734e
/f/urls.py
53c49e937d369a3ad6f4ea50cecef2f6805d211c
[]
no_license
DanitzaFren/transversal
09873889d8f9002599e3e6227348b6526b9b8c75
d7b1651fc300f10dbec56b34aeb5f1f9deffd2b4
refs/heads/master
2022-07-03T00:04:21.001525
2018-12-12T17:00:23
2018-12-12T17:00:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
from django.urls import path from django.conf.urls import url from . import views urlpatterns = [ path('registrar', views.RegistroUsuario.as_view(), name='usuario'), path('listar',views.ListaVenta.as_view(), name='listar'), path('', views.menu, name="menu_vendedor"), path('venta', views.vender,...
[ "daniifreen" ]
daniifreen
39f60d65fe06c2c39b37afd3e9c440c00fc973d9
9ae77604c7e32c6822e57744ccb0a45dab0e5e5e
/stock_demo2.py
79b59f1dcfe9613da7f2808b85abf7e98640219e
[]
no_license
KDF5000/SyncFs
afac9f0c374a7a6d7b19f3835b26dd6ccb8f32b2
1f38533d2229f8cb70967fd8e278dd9592fc5542
refs/heads/master
2021-01-24T08:35:37.479442
2016-10-01T12:29:00
2016-10-01T12:29:00
69,551,924
0
0
null
null
null
null
UTF-8
Python
false
false
4,776
py
# -*- coding: utf-8 -*- # Spark Application - execute with spark-submit # imports from pyspark import SparkConf, SparkContext import pandas as pd import json # Module Constants APP_NAME = "My Spark Application" def cal_similarity(line): """ 计算相似度 """ # 使用 sklearn,pandas 来简化计算流程 import pandas as p...
[ "kdf5000@163.com" ]
kdf5000@163.com
aada12de831e2f3f523165cadb6695df2301e4f6
ce531c5b1c30042e8f6b376b0d0d47ec4e48fb80
/Day 02 - Password Philosophy/puzzle_1.py
0038bc7a43644fa60343a6ff4ad1857d4688cf3e
[]
no_license
Kudusch/advent-of-code-2020
c4e74126f19db26caf5cedb72cb79a55f308123e
5c6be4495c98ad8ae80dfe268822fa0231487a80
refs/heads/main
2023-02-08T05:35:44.550570
2020-12-25T12:57:17
2020-12-25T12:57:17
317,523,928
2
0
null
null
null
null
UTF-8
Python
false
false
922
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import itertools # read puzzle input to list of integers puzzle_input = [] for l in open("input.txt", "r").readlines(): parts = l.split(":") req = parts[0].strip().split(" ") password = parts[1].strip() puzzle_input.append([req, password]) def check_passw...
[ "kudusch@posteo.de" ]
kudusch@posteo.de
3479c7c18fc546b2fa4bd85f56e4365ac4e7587d
270c91b5a1da8b83d6759a3f00cccb2e411af4f5
/learning/migrations/0009_auto_20151208_0627.py
cdb787d52cf7ec82ceadcc5cff04e8b6202cb291
[]
no_license
aninditaayu/skripsi
89ea6ccd39a3ad52d5b24677210721f254b50b73
f3861e5f0c44d201bc35e92f90f01578d72659b9
refs/heads/master
2021-05-04T10:54:10.347867
2016-03-18T10:04:34
2016-03-18T10:04:34
47,667,590
1
0
null
null
null
null
UTF-8
Python
false
false
506
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('learning', '0008_auto_20151208_0613'), ] operations = [ migrations.RemoveField( model_name='materi', ...
[ "aninditaayu12@gmail.com" ]
aninditaayu12@gmail.com
9ec2b9263915f6f2c1474d75fae188b9434f0f49
9d9591596f9d8994a4dfe38c4e4d57abd6a36f8b
/pyantplus/_version.py
2f79140746ef4258cd300c490b87caaea297d892
[ "MIT" ]
permissive
stuwilkins/antplus
a39a33730056be0d18555381a8465fc7ea8a5795
21276a118ffdd04a9251bb720352cd9e3c4a0a12
refs/heads/master
2022-04-05T23:17:50.398362
2020-02-10T23:44:54
2020-02-10T23:44:54
231,378,055
1
0
null
null
null
null
UTF-8
Python
false
false
18,452
py
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
[ "swilkins@bnl.gov" ]
swilkins@bnl.gov
c4abb6a4a7d59ffc7f5937cdb2dc6bbca37759f7
ceea504ea61e263070ddf7f1c2c4299c5f2cb47c
/main.py
82abf18c01717fb6644bdd8a2412bffc65a6ed83
[]
no_license
codydroster/drone-comp
64bf86360a014702dc4d32f0772e546a1c8b0ee3
75a8b80e4726d2d1438e298b55553dd1abdc36ba
refs/heads/master
2023-05-24T18:42:17.687511
2020-03-31T01:27:40
2020-03-31T01:27:40
251,469,884
0
0
null
null
null
null
UTF-8
Python
false
false
1,214
py
import serial import serial.tools.list_ports #available_ports = serial.tools.list_ports.comports() #for port in available_ports: # print(port.device) ser1 = serial.Serial('/dev/ttyUSB0') ser1.baudrate = 115200 ser1.bytesize = serial.EIGHTBITS ser1.parity = serial.PARITY_NONE ser1.stopbits = serial.STOPBITS_ONE...
[ "cdroster@gmail.com" ]
cdroster@gmail.com
9b14a2820d4cc80a9eab2473b65daaa211bc1d64
4673f12dbb574b68f82a483b9bc5eb06d87bddf3
/utility.py
71cc5fb6a5fdf0aa2e6a8426d401358b0ea75636
[ "MIT" ]
permissive
sv2fr/DS6999_HAR
df90e2e91a33e9cd3173e31b564b5f44b51470b1
5af62e9fbfb965d4f4e6d50ed223ef43e5afdaa4
refs/heads/master
2020-05-05T11:55:57.541350
2018-08-10T15:26:49
2018-08-10T15:26:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
# -*- coding: utf-8 -*- import glob import os import pandas as pd import scipy import scipy.signal """ Contains helper functions to process data """ def add_labels_to_data(dataframe, labels): dataframe.columns = labels return dataframe def apply_butter_filter(dataframe, hz): butter_filter...
[ "noreply@github.com" ]
noreply@github.com
7eda7b136c8c88c4f9bf6d3a7d904d40a130f1a9
cb23a005ec59b3ed8588ea89d47abbd7f095a9c9
/aula13d53.py
a6ca6490a1c6880937609e2487120b1d8c2c8e5c
[]
no_license
0martinelli/pythonFirstSteps
16a4fde9d6cc292f6376b35eb2366604843a0a65
118b1809a4e0820886b87deeec31cade7cb2486a
refs/heads/master
2020-04-01T21:21:54.363960
2018-10-18T16:06:41
2018-10-18T16:06:41
153,651,601
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
#ler uma frase e dizer se ela é um palindromo frase = str(input('Escreva sua frase pra testarmos a situaçao de palindromo: ')).strip().lower().replace(" ", "") reversa = frase[::-1] if frase == reversa: print('Sua frase é um Palindromo')
[ "jeferson.martinelli@ecrmac-100668.local" ]
jeferson.martinelli@ecrmac-100668.local
f8e3f5ce532c971b20d292aa314e60fdc227aa61
ab096f9ab285eea3f804979e058e873d0202c191
/2015/sol_5.py
d1c0fe89b1998c802ef5e9cb2ee3ff22701dedc8
[]
no_license
abhee/advent-of-code
7d2469814e2b0febbfcc55da5274104bd6370527
7d5cd776a208d587cfbdb50f60fa1d5153358db4
refs/heads/main
2022-01-15T01:31:26.917789
2021-12-30T14:52:42
2021-12-30T14:52:42
100,534,709
0
0
null
null
null
null
UTF-8
Python
false
false
2,778
py
#!/usr/bin/env python3 ### Part 1 def has_three_vowels(s): ''' Returns True if string has atleast 3 distinct vowels. ''' vowels = {'a':0, 'e':0, 'i':0, 'o':0, 'u':0} for i in s: if i in vowels: vowels[i] += 1 return sum(vowels.values()) >= 3 def has_a_double_lett...
[ "soman.abhijit@gmail.com" ]
soman.abhijit@gmail.com
4a81c66c100c42fbeea9583481fb5d316d18ffb1
768c4cb4a4873c5a0f953d41f0c456280a22e9d4
/physics.py
55e60903a145d8d92a356a74c4af2ee558ffcd8f
[]
no_license
mnlevy1981/MARBL-notebooks
fe327c78087a0f5e68531fce1d5ed825aed35837
37afd054b67a3dddbf766c49bfa3265551bff1b1
refs/heads/master
2021-07-31T22:27:04.369982
2021-07-26T03:35:17
2021-07-26T03:35:17
124,121,164
1
2
null
null
null
null
UTF-8
Python
false
false
1,932
py
""" Python module containing functions to convert from one physical quantity to another. E.g. depth (m) -> pressure (bars) """ import numpy as np def depth_to_pressure(depth): """ ! !DESCRIPTION: ! This function computes pressure in bars from depth in meters ! using a mean density derived from depth...
[ "mike.levy.work@gmail.com" ]
mike.levy.work@gmail.com
faced2756b74256548e783a632a7ab6292ddfbf6
c769535cfc2941952dd9d086bd7f2295fa37beea
/Problem Solving/Udemy/Practice 35. How to Replace a Substring of a String.py
d477c5b621793fb68008d028e77949abc0c55845
[]
no_license
kgpyi/python
8af2a3f98cc1817e9688b314f9a1e6ff774f70c2
f54363e49a7d016454b9394fdb55212c6f9ee580
refs/heads/master
2023-01-03T17:04:29.484618
2020-10-26T22:54:33
2020-10-26T22:54:33
307,523,154
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
str = "My name is winetoys" print(str) substr1 = input("Choose an old substring to replace: ") substr2 = input("Insert new substring: ") lensubstr1 = len(substr1) while str.find(substr1) > 0: i = str.find(substr1) print(i) str = str[:i] + substr2 + str[i + lensubstr1 :] print(str)
[ "hssunami@gmail.com" ]
hssunami@gmail.com
c0547c17df0566ed1858908873c44c217a855435
7c3b89dd87c7e1f3ecca4c644f97b608e57d461e
/buzzni/ai/reco/mlserving/predictors/tensorflow/__init__.py
e108eb54e31c7a70d2c6085b35f5ab086b6e3a74
[ "MIT" ]
permissive
BuzzniAILab/buzzni-ai-reco-ml-serving
e6c379b7aa81e254b626ed86ec0f60674f788374
8b8add9dbe5cdd6392e0c87ee789492de0a1c70e
refs/heads/master
2023-06-03T11:02:34.108408
2021-06-22T07:43:25
2021-06-22T07:43:25
357,028,769
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
from .http import TFServingPrediction, TFServingRequestError
[ "noreply@github.com" ]
noreply@github.com
e966f04e9525fb6b367303324e44fbcbcfcfae94
221b2221703f9cddeee7054c5dc426b81a3f53bd
/venv/lib/python3.9/site-packages/pyrogram/raw/functions/langpack/get_language.py
e88bc93e119755902d6020efd7ffc9cf8d817575
[]
no_license
ch3p4ll3/Royal-Racing-Bot
37c998a650078e4b5f5c3b34b8c081d52b018944
eab5baf61a9782fbedd42ddf35b7e11cbae9ec22
refs/heads/main
2023-06-26T03:34:58.104068
2021-07-30T17:36:14
2021-07-30T17:36:14
348,089,837
1
0
null
2021-03-20T11:32:46
2021-03-15T18:59:39
Python
UTF-8
Python
false
false
2,400
py
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
[ "slinucs@gmail.com" ]
slinucs@gmail.com
b54ecce8159f8b1c66de84ac86d69b55a4766b42
3630b2bad672fa387b5c4855dd879eeb948f9b96
/example/ids_picture.py
b924c01857d2c9a9b9d5a071e914fb7508d6288b
[]
no_license
aliakbarhamzeh1378/ids_camera
3b02fb85160e028c388306f8bf861d6990f2647f
d09cc74e9e45dc0b64247869cb62697e8ad2eacd
refs/heads/master
2020-03-11T19:13:23.430306
2018-06-22T13:00:00
2018-06-22T13:00:00
130,200,683
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
import numpy as np import cv2 import ids import ids_core cam = ids.Camera() cam.color_mode = ids_core.COLOR_RGB8 cam.exposure = 5 cam.auto_exposure = True cam.continuous_capture = True img, meta = cam.next() a = cv2.cvtColor(img, cv2.COLOR_RGB2BGR) cv2.imshow("mask", a) cv2.waitKey(0) cv2.destroyAllWindows()
[ "noreply@github.com" ]
noreply@github.com
0167e321b51d6d372c282cf6d9c44fec0475ce4a
8b87b6cd15abfda36a55cb7bfd4cf6099c67caf5
/lab1C/lab1C/lab1C.py
f18791323a15fb65356d47135ef767414199c3e0
[]
no_license
AverageOatmeal/SE126
27540a02ee3bb0fcfbd28bf66c002dbd80bb76c3
50323531ad5d2d42c0c8ad6e488bbffcd0bd840c
refs/heads/master
2020-12-06T10:38:22.831831
2020-01-23T23:17:53
2020-01-23T23:17:53
232,442,207
0
0
null
null
null
null
UTF-8
Python
false
false
2,474
py
#Zachary Baughan, Lab 1C #Variable Dictionary #entering - controls while loop that allows for multiple room inputs #maxCapacity - capacity of the room currently being checked #outcome - outcome of people showing up to event #difference - calculates spots left in event #validInput - only True if valid input entered whe...
[ "zsbaughan@labs.neit.edu" ]
zsbaughan@labs.neit.edu
e0efe6165cc51b9b348da6bbc978c1b4b46d786f
2e62ab26b1da94344a8860d02d2e5756cb4173a9
/enumerate.py
3651f143c3c252db5194bb20a563355cb27b86e8
[]
no_license
kiran199326/Test
710d3849bd4873d61cc6556f2be078bfa3706b5c
b105ccd581a65ec6a5917e4d9fa54b78696f220b
refs/heads/master
2023-02-25T10:28:42.568960
2021-02-06T21:33:04
2021-02-06T21:33:04
282,542,092
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
#enumerate examole #for item in enumerate("TEST"):print(item) for index,item in enumerate(list(range(100))): if item == 50:print(index,item)
[ "kirankumar.dot.dot@gmail.com" ]
kirankumar.dot.dot@gmail.com
206146ddffedd60bf477a416ab75b3c14e9f720f
758bf41e46a3093f4923af603f1f7f8063408b9c
/website/testFromRemoteRepo/_bsch3398/museum/python/django/utils/timesince.py
55e53c65cfc601a4fa7399ed0b4d33d81b8588c3
[]
no_license
mpetyx/mpetyx.com
4033d97b21c9227a6ba505980fd0c1b57254e8fb
d50c379b4fe09e0135656573f7049225fc90ae36
refs/heads/master
2021-01-10T19:50:15.488371
2014-01-22T09:04:14
2014-01-22T09:04:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,698
py
import datetime from django.utils.tzinfo import LocalTimezone from django.utils.translation import ungettext, ugettext def timesince(d, now=None): """ Takes two datetime objects and returns the time between d and now as a nicely formatted string, e.g. "10 minutes". If d occurs after now, then "0 min...
[ "mpetyx@gmail.com" ]
mpetyx@gmail.com
f69504729af79407f2cc3c37688aedfdbe190a0d
1719920a92f7194766624474b98d59ef8d6eddaf
/models/device_enrollment_configuration.py
9e22612e3cb2ffb4bf77a9608e129ccf5936870e
[ "MIT" ]
permissive
MIchaelMainer/msgraph-v10-models-python
cfa5e3a65ba675383975a99779763211ed9fa0a9
adad66363ebe151be2332f3ef74a664584385748
refs/heads/master
2020-03-19T12:51:06.370673
2018-06-08T00:16:12
2018-06-08T00:16:12
136,544,573
1
0
null
null
null
null
UTF-8
Python
false
false
3,747
py
# -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from __future__ import unicode_literals from ..model.enrollment_con...
[ "mmainer@microsoft.com" ]
mmainer@microsoft.com
01247794d9c9eed7a08dadfc7789c0c398c974f9
1f7213b1aaa9cc4474726e7c4de40ff8939b4b12
/controllers/custom.py
0ef94bc1de431e1bcd39f67c0f562675dffc4db8
[ "MIT" ]
permissive
keiser1080/Skytoop
c389dae85571cd32e9004775dd9deb3a876e5f97
171514be21f2dd07c4f9f61601bd77b0d9c4d05a
refs/heads/master
2021-01-16T00:22:46.960444
2011-09-25T16:08:02
2011-09-25T16:08:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
# -*- coding: utf-8 -*- # # Copyright 2011, Alexandre Strzelewicz # Licensed under the MIT Version # ######################################################### # # Desktop customization controllers # ######################################################### def change_wallpaper(): if not request.vars.path: ...
[ "strzelewicz.alexandre@gmail.com" ]
strzelewicz.alexandre@gmail.com
cc8a8453dcbfc50cc508c0fffb18ca9c01acbe54
827b7ad1cdf882824bf13717bd0baa08cc852eaf
/src/python/pants/backend/python/dependency_inference/module_mapper.py
868969ac95364e4b502388856523007bee7f3316
[ "Apache-2.0" ]
permissive
cclauss/pants
e4be17df24c9a962a123b94c0782d0941862220a
4f39186f780310e73a708b3b589635dfa2e09696
refs/heads/main
2023-03-31T10:07:13.165248
2021-04-02T19:04:58
2021-04-02T19:04:58
354,131,355
0
0
Apache-2.0
2021-04-02T20:56:27
2021-04-02T20:56:26
null
UTF-8
Python
false
false
17,912
py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import logging from collections import defaultdict from dataclasses import dataclass from pathlib import PurePath from typing import DefaultDict from p...
[ "noreply@github.com" ]
noreply@github.com
c9f1570942627b2e6d793f734d64f3c3ba97d9f3
4c80a2749bcea87f822622908ac3242fcb0a6faa
/week_09/rendezett_e.py
7f8cd86910a31e7b899eb78239046d563e6d7e71
[]
no_license
balazs589/bme-python-2018-osz
95b2566613f0931ef53174905854f3d858987758
9e385ce0b790ae84b0bc9edf6c8d1bf675823c5e
refs/heads/master
2020-06-09T01:35:23.782893
2019-06-23T12:22:49
2019-06-23T12:22:49
193,344,439
0
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
def rendezett_e(lista) : """ Fuggveny ami eldonti, hogy a parameterkent kapott listaban novekvo sorrendben szerepelnek-e az elemek. Kis-nagybetukre mukodik ekezetesekre nem. """ if type(lista[0]) is str : for i in range(1,len(lista)) : #if lista[i - 1] >...
[ "noreply@github.com" ]
noreply@github.com
580da918b9e753982f64df202a00616cb50a3ab8
703a04355896d74f6f8be1ad41e578d4ae0c47e6
/game_tools/pydoom/udmf/udmf_antlr4.py
f03c87c75b06f8ed1f3ebc282288a3157447c646
[]
no_license
alexey-lysiuk/tools
7f7bafc009c6bce7e8ab3e25a50fe66b012ff922
77add0f40e1e71db1d55c1f1036af03a31474249
refs/heads/master
2023-07-27T22:01:03.538805
2023-07-27T15:08:44
2023-07-27T15:08:44
45,457,644
13
9
null
null
null
null
UTF-8
Python
false
false
2,344
py
# # Python Doom Tools # Copyright (C) 2016 Alexey Lysiuk # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
[ "alexey.lysiuk@gmail.com" ]
alexey.lysiuk@gmail.com
7ebae6cbb44f224eeb207515f660ec6f022e29df
29ec32b5a89229ccc602351ace88f5d60d428851
/wifi/migrations/0002_auto_20191224_1208.py
f471e76fb58d5854abfeeda64d481ce3ed05bf93
[]
no_license
arnobmonir/wifi-moniroting-and-billing-system
696dc631d89e78f17949bc5063370d6cc02c72c3
36309e98c6e4f3e84e886edca91c1638aa6c8aaf
refs/heads/master
2022-12-08T18:25:50.616431
2019-12-31T10:15:37
2019-12-31T10:15:37
231,069,532
0
1
null
2022-12-08T03:24:14
2019-12-31T10:12:09
Python
UTF-8
Python
false
false
1,868
py
# Generated by Django 3.0.1 on 2019-12-24 06:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wifi', '0001_initial'), ] operations = [ migrations.AddField( model_name='device', name='hostname', fiel...
[ "aarnob.monir@gmail.com" ]
aarnob.monir@gmail.com
e15ab783b8524095dfce9416304b9b29b70fb815
f9357dc6ebe6ae1af0b03a9afc5f765706b8d31f
/cv2_functions/cv2_minbox.py
9614fc7f0d142f6072a8812d1af97c5d594b277c
[]
no_license
cilame/any-whim
660acd966048655aa36886047fbc232539807881
1520accbe1506a133989a6c2be17572e7fb4693e
refs/heads/master
2023-08-17T05:10:56.348200
2023-08-13T16:45:11
2023-08-13T16:45:11
110,548,292
125
64
null
null
null
null
UTF-8
Python
false
false
913
py
import cv2 s = cv2.createBackgroundSubtractorMOG2(varThreshold=100) f = cv2.VideoCapture(0) while(1): a,v = f.read() g = s.apply(v) g = cv2.morphologyEx(g,cv2.MORPH_DILATE,(7,7),iterations=7) a,b,c = cv2.findContours(g,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) for i in b: #print cv2.minAreaR...
[ "opaquism@hotmail.com" ]
opaquism@hotmail.com
15bd3ab190803e81b23696a5f59fb2cde302be17
58787a498e716a772e527d3a648bc3193882e3f8
/project1/sum1.py
9c57d31ac802185e18b019cc2b8e0702267dc5fc
[]
no_license
2212243743/leecode
9c7c4a99d4b468c4c2119f54f445749ee7367484
2b3ae332af5abd140a3962370ef1f06b7a3becab
refs/heads/master
2022-11-07T00:50:36.229585
2020-06-26T06:08:45
2020-06-26T06:08:45
275,086,115
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
from typing import List class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(0, len(nums) - 1): j = target-nums[i] try: index = nums.index(j,i+1) except: continue return [i,index] if __na...
[ "vannywan@tencent.com" ]
vannywan@tencent.com
5cb3546ffe475164a9e7552c83a635063b8c0d44
3f04adbe6f8f729911f1b9bb0c2e83f131c6b9d8
/爬取房天下网站的新楼盘名称位置和价格.py
06cf501164a999ce8b46687af404031475480212
[]
no_license
dongdongjiang666/scapy
091426693867c7698e50c7199f321f90b846424d
1998b04b273b75e188f2183f9ef0e11a20ff97cb
refs/heads/master
2021-01-20T03:12:38.053755
2017-08-25T01:57:22
2017-08-25T01:57:22
101,354,365
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
__author__ = 'Administrator' #coding=utf-8 import requests from bs4 import BeautifulSoup def geturl(url): #获取下一条页面的url r = requests.get(url) r.encoding='gb2312' html=r.text soup = BeautifulSoup(html,"html.parser") next_url=soup.find('li',attrs={'class':'fr'}) mm=next_url.contents s=soup.f...
[ "381883595@qq.com" ]
381883595@qq.com
efeb837d98a108675068be21300403346921cbbc
a63b33088836aeb87a7f4ee68e761ca42cdced18
/pro35.py
2930c385f39328b9e7b05bb0fa5be3168b6fdf6b
[]
no_license
qinggeouye/ProjectEuler
e1e157cce014ad09ab2292e3253e8d9799e2602c
868594008969d0ace56cde5a85305096d3dbce47
refs/heads/master
2020-04-21T21:21:20.013312
2019-07-14T18:08:53
2019-07-14T18:08:53
169,876,654
0
0
null
null
null
null
UTF-8
Python
false
false
1,164
py
import time import eulerlib is_prime = list(map(str, eulerlib.prime_numbers.primes(999999))) # int to str def is_circular_prime(s): return all(s[i:] + s[:i] in is_prime for i in range(len(s))) def count(): ans = sum(1 for i in range(len(is_prime)) if is_circular_prime(is_prime[i])) return str(ans) #...
[ "qinggeouye@gmail.com" ]
qinggeouye@gmail.com
24e4b0ad47c9b1e9b8550c854f5f9d2ee0933396
7b967bd752b7655510de35e9c5f8813b427f050b
/pipelineservice/compose/_column_transformer.py
635a8853256f41354d6c2aee5427db1240256b03
[ "Apache-2.0" ]
permissive
toandaominh1997/pipelineservice
7582f13fb0ed6a1c775eb145742abef35630a6ac
2946fc6b61cc73f8695eff03f5d2066e6064ad3f
refs/heads/main
2023-06-30T05:55:58.104795
2021-08-03T10:38:46
2021-08-03T10:38:46
329,199,264
3
1
null
null
null
null
UTF-8
Python
false
false
197
py
import numpy as np import pandas as pd from sklearn.compose import ColumnTransformer class columnTransformer(ColumnTransformer): def _hstack(self, Xs): return pd.concat(Xs, axis = 1)
[ "toandm2@onemount.com" ]
toandm2@onemount.com
66e9343b3ece7ecfbec090375f64c44969c80316
2a4e4b17459b64601d3eda981a07fd243b32db69
/plotting_DVS_latency_DAVIS346FSI.py
afb87f203de1f1f991a242e2009948302b753411
[]
no_license
SensorsINI/pyCaerMeasure
5dadfdcb00687171bfe3438e15011d40d7fb5004
e107d2b13548f2819879d2df284339e09bd385ac
refs/heads/master
2021-06-03T19:56:41.406374
2017-07-02T12:55:41
2017-07-02T12:55:41
96,022,006
7
0
null
null
null
null
UTF-8
Python
false
false
7,565
py
# #################################### # fully customizable plotting script # # #################################### import matplotlib.pyplot as plt import numpy as np from scipy.stats import mode import os #################################################### # select data files to import and output directory...
[ "lich@ini.uzh.ch" ]
lich@ini.uzh.ch
751081f85d09e40535cbe9c504166106a950db78
b075a389e6fb8ded4f8e4f3395a7c3ecbfb98a86
/blog/blog.urls.py
0ee2a5f4ac098760fd85c41ac0787fd809d58276
[]
no_license
posko17/my-first-blog
2a1ddcd01d1c9579eac6b3c7e017b8b0f6ed1a63
8a8a4b89a6499ab9722b77253d9ac326ff57099b
refs/heads/master
2020-03-08T08:23:39.528373
2018-04-18T07:31:55
2018-04-18T07:31:55
128,021,135
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
from django.conf.urls import url from .import views urlpatterns = [ url(r'^&',views.post_list, name ='post_list'), ]
[ "posko17@postech.ac.kr" ]
posko17@postech.ac.kr
12eccea519cf528a022fb992f2e8b153fcdda210
b8988c49f8c62a73ecde65d87af4c435a63c3bd5
/backend/app/boat_crew/migrations/0002_boatcrew_members.py
f5a23a2c73a5c2fe4df68f7acc01e6680fd4f570
[]
no_license
hirtant/sailcom
6c5f1a269f177f04f03b2883c6dbebf043dcf653
24455648a036cf4ce3c0680447fa06f1e9dfd241
refs/heads/master
2022-12-08T03:34:05.293768
2020-07-31T08:22:32
2020-07-31T08:22:32
284,941,256
0
0
null
2020-08-31T11:47:37
2020-08-04T09:57:09
JavaScript
UTF-8
Python
false
false
534
py
# Generated by Django 3.0.7 on 2020-07-14 09:38 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('boat_crew', '0001_initial'), ] operations = [ ...
[ "timo.huber@bluemail.ch" ]
timo.huber@bluemail.ch
02ea114ff409655a397fc3f592cc237463103206
0cbc2ea187ad0289e59f5a7ab5f0d6e43240a9b0
/Selenium-web/POMProjectDemo/Tests/login.py
d91acf2f42165dc75d2aaf8681472b8580dfc1b3
[]
no_license
biplabsarkar99/python-learning
a8e1631362e5b3de6f84bdbee07bab1fe14a3303
30001b4b14869910d6c0f7cb7292720e2fc3d2b1
refs/heads/master
2022-12-18T22:17:27.713438
2020-09-11T12:16:18
2020-09-11T12:16:18
270,700,433
0
0
null
2020-09-11T12:16:19
2020-06-08T14:30:54
Python
UTF-8
Python
false
false
3,752
py
from selenium import webdriver import time import unittest as ut from POMProjectDemo.Pages.loginPage import LoginPage from POMProjectDemo.Pages.homePage import HomePage import os import sys #Below step is an alternative for making package references #Alternate make every folder as package #sys.path.append(os.path.join(...
[ "biplab.sarkar99@gmail.com" ]
biplab.sarkar99@gmail.com
142144b5442ca690b3d6a46860b642f52214b50c
2995a54cb3373fc558dbd83b094f24294f8ab8e8
/models.py
76722d6db946aaf0540c86cd7f965ef22e201740
[]
no_license
iamtburger/quizapp
cbbed50dcac0be99b0d5bcd0da430865a0373854
860e942e048835342acb56c91258953ea92a349c
refs/heads/master
2023-03-20T04:12:19.715705
2021-03-13T19:34:24
2021-03-13T19:34:24
264,669,539
0
0
null
null
null
null
UTF-8
Python
false
false
1,826
py
from quizapp import db, login_manager from flask_login import UserMixin class Quiz(db.Model): id = db.Column(db.Integer, primary_key=True) quizname = db.Column(db.String(20), unique=True, nullable=False) quiztitle = db.Column(db.String(80), unique=False, nullable=False) questions = db.relationship('Qu...
[ "tamas.burger@gmail.com" ]
tamas.burger@gmail.com
df004da63a64bed312c2d45ad9d337333d93d167
2160b580f64693eb8a27afc58dbdff9363247e3f
/doc2dash/parsers/__init__.py
164faf6c4ec769dfc84c4a88ad42ba11ba703c48
[ "MIT" ]
permissive
pombredanne/doc2dash
fa65fc4428d03c1be9dbdfdb5b311d37c439c3ae
c2f342a74b596d3e0470f9ac69f73c9aef1fc7bd
refs/heads/master
2021-01-16T19:30:41.265173
2014-08-14T08:12:10
2014-08-14T08:13:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
from __future__ import absolute_import, division, print_function from . import pydoctor, sphinx, intersphinx DOCTYPES = [ intersphinx.InterSphinxParser, sphinx.SphinxParser, pydoctor.PyDoctorParser, ] def get_doctype(path): """ Gets the apropriate doctype for *path*. """ for dt in DOCTY...
[ "hs@ox.cx" ]
hs@ox.cx
24d9a893c5a8d6cc5b32ec247485591280343a68
392b75d19861ba97f1cad4d3257aaba6d499e762
/objects/rest.py
bc69fb998114e69304d8d31b993cd8da4339142a
[]
no_license
MarjanStojanov/rcp-api-wrapper
2b6e551b96715cfe0ea3fa929733eec2daaaea14
e8f8c6b5f1c389d68086c3eb6ae16f38065de11a
refs/heads/master
2020-04-14T05:39:41.283913
2019-01-03T20:39:22
2019-01-03T20:39:22
163,665,390
0
0
null
2019-01-11T16:02:21
2018-12-31T11:59:34
Python
UTF-8
Python
false
false
566
py
class REST: token = None def __init__(self): self.object_class = self.__class__.__name__.lower() self.url = 'https://api.rechargeapps.com/' + self.object_class + '/' @property def headers(self): return { "X-Recharge-Access-Token":REST.token, "Accept":"application/json", "Content-Type":"application/j...
[ "marjanstojanov996@gmail.com" ]
marjanstojanov996@gmail.com
2d2ed40c42036848e940ac7e0662c9fc9fc8a531
21bec659fe882026c48ae4ebe36507db0eb1b908
/api_server/api_server/urls.py
a393c2e7e3c24d07a8972e5cac173740786537b1
[ "Apache-2.0" ]
permissive
eznode/Assets_Report
614ea649bfad0c3da71e0d07cb83d07be40d9b2d
c2484031f0c3e14beb7bf65ff53afba523028d58
refs/heads/master
2020-03-06T21:58:01.654110
2017-03-17T08:53:30
2017-03-17T08:53:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
"""api_server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
[ "wucheng@staff.sina.com.cn" ]
wucheng@staff.sina.com.cn
f1a328d4b851b97f92f88b3321c0663faf83867a
5747f6be54ab244aec640ed4d26f0a2b6feb1eee
/deep_q_uav.py
906ea9b5e7736b349d54f388c889b6acfbee1a9f
[]
no_license
hyunghunny/connected-y
ddf6beedfd6d2bac6064a5ff291612cc503d96db
e668f7eaf0c636ef47765e70c7cbe3b70c9c86ba
refs/heads/master
2020-12-24T05:54:10.459178
2016-06-29T11:30:09
2016-06-29T11:30:09
61,091,019
0
0
null
null
null
null
UTF-8
Python
false
false
7,313
py
# -*- coding: utf-8 -*- """ Created on Sun Jun 19 21:48:05 2016 @author: changho """ #!/usr/bin/env python import tensorflow as tf import sys sys.path.append('/usr/local/lib/python2.7/site-packages') import cv2 import sys sys.path.append("Wrapped Game Code/") import uav_enemy2_fun as game import random import numpy ...
[ "skywind143@naver.com" ]
skywind143@naver.com
59237183d1561975fc024c6f4b5bf5ae38cd4a83
61de4215db02e250190f4b9889737b9ffc0e21a3
/Ronny_Bujok-session3.py
86946dda721c4435e471458f273ca60f61deb92e
[]
no_license
RonnyBujok/Python_Repository
252f68f488b95adf587ccd6e4b9b8f286c35b45c
a6ec646eb1b95a7aaad5f2f789c3ee7285652698
refs/heads/main
2023-01-18T16:10:39.971149
2020-12-09T15:14:38
2020-12-09T15:14:38
319,978,837
0
0
null
null
null
null
UTF-8
Python
false
false
2,813
py
# Lexical Decision Task from psychopy import visual, sound, event, core import pandas as pd import numpy as np #-----------------------defining all the variables------------------------------- window = visual.Window((800,600),color=(1,1,1)) #grey is default fixation = visual.TextStim(window, text='+', color...
[ "noreply@github.com" ]
noreply@github.com
a6e127ddbba6fc0257ec8b9426f8a1bff0aa532c
d9f7aff5a1ab1b39e0c3d4cf65e7fe69393e8b98
/Canvas_Colour.py
f9d36db9987fbaa955792138289ece97c5b7bb24
[]
no_license
ConnerTenn/Legacy_Python
6a79d435042cb71ee94e700e7910b3021cf2f650
13e3df764a2511c8caaecdce7df604f1a10975a3
refs/heads/master
2021-05-09T21:47:37.463767
2018-02-17T21:37:27
2018-02-17T21:37:27
118,735,887
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
from tkinter import * tk=Tk() Width=1000 Height=600 canvas = Canvas(tk, width=Width, height=Height) canvas.pack() def clear(): canvas.create_rectangle(0,0,Width,Height,fill='white',outline='white') Image=PhotoImage(file="C:\\Users\\Conner\\Desktop\\fox.gif") canvas.create_image(0,0,anchor=NW, image=Image) ex...
[ "connertenn@gmail.com" ]
connertenn@gmail.com
1a233e79ac87182b9c310abc48d3fa51028a286b
f579a26f22fb083e477f5b908b67faad3b78e41f
/Code/main.py
4a5421a19763b89688e03c80d0b283504d3a07cf
[ "MIT" ]
permissive
ThunderCow/OHAMA-PIOS
c9f8e857f769452dee805da078acd7f5f7f83f2f
9a4568bb9aa395f6b7ecef5d88eb6c4b44f541c1
refs/heads/master
2020-04-21T01:24:59.991808
2019-05-30T11:25:31
2019-05-30T11:25:31
169,222,990
0
1
MIT
2019-04-24T09:08:29
2019-02-05T10:26:59
Python
UTF-8
Python
false
false
54
py
from Code import server serv = server.start_server()
[ "noreply@github.com" ]
noreply@github.com
ba0b3436d4e12ac5b7d0287f60a5f77ee1a07423
171dedf6303d3e5e91dbc7fca2b8df3eeb378011
/barentsz/_meta.py
bb624bbfe92269c2082e19071a8ed0dcdf263065
[ "MIT" ]
permissive
ramonhagenaars/barentsz
9d35fafa5c9899c25ff3a662dd560df0fb863b52
0f12a53722df5b926483fea008f9f6302aa1fb81
refs/heads/master
2022-12-18T19:46:31.899425
2020-09-26T11:58:11
2020-09-26T11:58:11
244,004,582
2
1
MIT
2020-09-26T11:58:12
2020-02-29T16:43:56
Python
UTF-8
Python
false
false
278
py
__title__ = 'barentsz' __version__ = '1.2.1' __author__ = 'Ramon Hagenaars' __author_email__ = 'ramon.hagenaars@gmail.com' __description__ = 'For discovering modules, classes, functions and attributes.' __url__ = 'https://github.com/ramonhagenaars/barentsz' __license__ = 'MIT'
[ "p8u7wAPC5Pg9HYkkCkzA" ]
p8u7wAPC5Pg9HYkkCkzA
5364974b4842a87c78ddf8f72143f621cafc9f2c
821c523dc1b6ccacb86f8cc8c2c2002c16591093
/basic.py
5dc737c2979c74ea8112fd4620de6ada557dd2f9
[]
no_license
fengjun-Liu/MyWechat
35c26b6c7bbf71a2d80338f6f69ffc5e8b8ae18f
82ca02435328a0d7238b6ae20ac06efcfde574ce
refs/heads/master
2022-07-17T19:45:45.529396
2020-05-18T15:27:27
2020-05-18T15:27:27
261,931,335
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
# -*- coding: utf-8 -*- # filename: basic.py import urllib import time import json import config class Basic: def __init__(self): myconfig = config.Config() self.__accessToken = '' self.__leftTime = 0 def __real_get_access_token(self): appId = self.myconfig.wechatAppid ...
[ "939643949@qq.com" ]
939643949@qq.com
b58e705deed2f0b8a2254709321b6101b634b952
fcc6fa7905b6045a68b992c74e5301e00d5dd3d3
/users/tasks.py
bf40dc7db3c53264f1f01878dcefd90681f297b2
[]
no_license
alinzel/BookStore
cc394c9935155c7fda29aa105edd1e9914bd94aa
5dfbf13182ce19dfae4d7f8b443cd8e7a54d1204
refs/heads/master
2020-03-07T03:22:18.771701
2018-03-29T08:00:19
2018-03-29T08:00:19
127,233,714
1
0
null
null
null
null
UTF-8
Python
false
false
795
py
from __future__ import absolute_import,unicode_literals from celery import shared_task from django.conf import settings from django.core.mail import send_mail # 发送激活邮件 @shared_task # 共享任务 返回一个总是使用current_app中的任务实例的代理 def send_active_email(token, username, email): subject = '尚硅谷书城用户激活链接' # 标题 message = '你好' + userna...
[ "944951481@qq.com" ]
944951481@qq.com
32fa81854a34f546922a318370430e0d1951d793
fb8382afcc9540cdc67e785b4ac80b0806f485e5
/website/migrations/0004_blog_by.py
339e8054854933a5d0d30033e1d0169197268fe2
[]
no_license
husain3012/enactus-new
3882f042e64724af58dfe1dc05fb3a64249b9b02
ae8916debff87caaa383bf0a6b58e99c5c95c311
refs/heads/main
2023-08-30T08:06:38.707919
2021-10-23T07:03:02
2021-10-23T07:03:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# Generated by Django 3.1.2 on 2020-11-08 11:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('website', '0003_auto_20201108_1129'), ] operations = [ migrations.AddField( model_name='blog', name='by', ...
[ "husain3012@pop-os.localdomain" ]
husain3012@pop-os.localdomain
230d26e5c2b5c4bc19665857dfe972ec6b36874b
b15d2787a1eeb56dfa700480364337216d2b1eb9
/accelbyte_py_sdk/api/platform/models/client_request_parameter.py
9f7b1f469cdc712522fbd02313e75c9d9297b6f3
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
6,030
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: ags_py_codegen # AccelByte Gaming Services Platform Service (4.32.1) # pylint: disable=d...
[ "elmernocon@gmail.com" ]
elmernocon@gmail.com
27015d7f017ad20cb7d82da20a2776f1cc171bed
3a430162c360f0c1034f03297741a74f330a6cb2
/demo/EON_webApp/GraphingDemo/GenerateGraphs.py
8e613a893043cdd46f1f6bedb0d85cfaa7e2a9c6
[]
no_license
joseph-mihaljevic/EON
4f358cee0e1404e882e2de6577da80835fea94cb
840013c7805d8263e95f76f85386f6fbf841b123
refs/heads/master
2020-04-20T03:03:26.676374
2019-05-14T19:55:18
2019-05-14T19:55:18
168,587,322
0
1
null
null
null
null
UTF-8
Python
false
false
128
py
from matplotlib import style import Image def Generate_Example_Graph(CSV_FilePath): return 0 def Get_CSV(): return 0
[ "jeeppinger@gmail.com" ]
jeeppinger@gmail.com
fac6cc01c8ae34e4e87f1576c20bde0a1065eba4
45fa756f4e794eddef530e075bed0b38a186af49
/bin/db.py
627d98a50fb38a982bba1d361557f2505aa9a113
[]
no_license
Dialjini/Test_task
9d26491a6ab0d42bbfc656b8ca5d5004d6e00d29
c0a0e3da75c7ba1259c5b28fe58855ef12cb44a1
refs/heads/master
2023-04-25T10:54:12.183278
2021-05-02T22:02:36
2021-05-02T22:02:36
363,336,060
0
0
null
null
null
null
UTF-8
Python
false
false
1,959
py
import aiopg.sa from sqlalchemy import ( MetaData, Table, Column, ForeignKey, Integer, String, Date, Float ) meta = MetaData() async def init_pg(app): conf = app['config']['postgres'] engine = await aiopg.sa.create_engine( database=conf['database'], user=conf['user'], password...
[ "danil_kustov@mail.ru" ]
danil_kustov@mail.ru
158a4f994cf78023fe7ba84dfefc682429760787
8c29ac4caa432a12155d45fcb5c68796dc479651
/Linkedlist/app.py
5a1f959b1aae7c08a0ea8e808046a2c0ece1925f
[ "MIT" ]
permissive
emmanuelalo52/linked-lists
a7646db5dfd4360d44b4cc1ed7c00d78eb694ca2
2d7d69d03e24ed8520a60c35846a28ebcaa7a24a
refs/heads/main
2023-07-15T18:51:06.539125
2021-09-06T13:06:35
2021-09-06T13:06:35
403,440,396
0
0
MIT
2021-09-06T13:06:36
2021-09-06T00:21:46
null
UTF-8
Python
false
false
25
py
from inkedlist import *
[ "noreply@github.com" ]
noreply@github.com
948cfd26f6231d12a4463589a8d9322ffb687ebf
be5e5aebd753ed1f376dc18ce411f0fac6d2f762
/natuurpunt_purchase_search/__init__.py
1503b4c0ebedce5264569792216f47998b67fa9c
[]
no_license
smart-solution/natuurpunt-purchase
7d9fcfdde769b6294d8dc705cecc99a177b4573c
0ac94cb68cee4ef464158720e04007ee12036179
refs/heads/master
2021-05-22T04:43:21.594422
2020-11-02T13:32:27
2020-11-02T13:32:27
39,186,322
0
2
null
2020-11-02T13:32:28
2015-07-16T08:42:31
Python
UTF-8
Python
false
false
926
py
# -*- coding: utf-8 -*- ############################################################################## # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of ...
[ "fabian.semal@smartsolution.be" ]
fabian.semal@smartsolution.be
20947ccf802631ec01474e52ab2310cf9b617690
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_redoubtable.py
8645cb26ee8dbbcd8fcdc345eeb5befad16d369c
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
#calss header class _REDOUBTABLE(): def __init__(self,): self.name = "REDOUBTABLE" self.definitions = [u'very strong, especially in character; producing respect and a little fear in others: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
debfa74d1d6e20d73a144d3fa46f60efbe005dec
f605054b92b6a0f8321787492e377a43f3828b73
/Array/leetcode_01_Two_Sum.py
0fb9d3c2b9179be9255b092edf4bda2a0e778b56
[]
no_license
AIFFEL-SSAC-CodingMaster3/eunji
0530a5b5b32ba4299f6ede5dff85795899ae5855
6935d5671204c7ec52daa5c79382f715bc92435d
refs/heads/main
2023-04-14T13:09:16.087949
2021-04-28T07:58:10
2021-04-28T07:58:10
329,225,155
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
""" leetcode 01. Two Sum 문제 링크 https://leetcode.com/problems/two-sum/ 주어진 리스트에서 두 수를 뽑아 target이 되는 숫자들의 인덱스를 리턴하라. """ """ Runtime: 48 ms Memory Usage: 14.3 MB """ from typing import List class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: c_dic = {} i = 0 for n...
[ "namji117@gmail.com" ]
namji117@gmail.com
6aaa3b4185f3addbe1fb58f91be2e71eadd14801
5e779a1d8643ba0b6434d6b33388a54362f9a100
/13.py
6d47d2ede9695a48cbd8187551f27b1227c4a606
[]
no_license
Luciferochka/Colokvium
3b11db18dcc4104507b3195834e4cc44035c4eaf
a5a173cdff1167712a49ecc7659a63d7cbc478e6
refs/heads/master
2022-04-18T08:16:04.725537
2020-04-24T11:31:01
2020-04-24T11:31:01
258,492,718
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
#Створіть масив з 15 цілочисельних елементів і визначте серед них мінімальне значення. import numpy as np import random n = 15 a = np.zeros((n),dtype=int) min = 0 for i in range(n): a[i] = random.randint(-15,15) if a[i] < min: min = a[i] print(f'Your array:{a}\nYour min value:{min}')
[ "miroslav.daniliyk@gmail.com" ]
miroslav.daniliyk@gmail.com
8fb6bfee4530acca0b7936e56a0c29ede098296b
2be5b2a6f5172b37fde90b076504fa9fe4f93784
/nosmsd/management/commands/nosmsd_incoming.py
a31a1677e93343f07145d84bad79c89cede66b3e
[]
no_license
pedrokiefer/nosmsd
74b73e959b8482744531caf4f81e7515791a5ff3
e69d7f55d54f0f5e85eec16cde6da0cb64d63b5c
refs/heads/master
2021-01-14T13:17:11.680061
2014-11-25T13:34:31
2014-11-25T13:34:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
#!/usr/bin/env python # encoding=utf-8 # maintainer: rgaudin import sys from django.conf import settings from django.core.management.base import BaseCommand from django.utils import translation from nosmsd.nosmsd_incoming import handle as nohandle class Command(BaseCommand): def handle(self, *args, **options):...
[ "rgaudin@gmail.com" ]
rgaudin@gmail.com
38d97f83542b11aeae27d8f5d9e77f6682349dbd
5f2ea7496fb9d01045b3fb6b68fba9ab6cffdb2e
/manage.py
cb0b36e0069ebaab6099f98515029a1739473d4f
[]
no_license
anagha-todalbagi/contactup
8742117f0d9b5f7444e10f10a3aef5c5d1fce707
7aba1215023531313f2c4f43d15237bddac0fd22
refs/heads/master
2021-01-16T18:02:22.578941
2014-12-02T21:37:51
2014-12-02T21:37:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "contactup.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "anagha-todalbagi@users.noreply.github.com" ]
anagha-todalbagi@users.noreply.github.com
848825b0b590da3bc145ed73c646b784999a5dff
b48f323da6b572df4028ba07a233f320dce45438
/models/FCN.py
54f30d965c2d17ac0ed742c8f2f9df4701ea8ae2
[]
no_license
crystal98tang/Aerial_Image_seg
66fb7fbdebfae17ea0a766d6c55f063a2f532163
c6855bd905958af437bf895070592b76821a5d15
refs/heads/master
2023-03-16T08:46:05.643181
2021-03-07T05:46:21
2021-03-07T05:46:21
222,077,013
0
0
null
null
null
null
UTF-8
Python
false
false
4,347
py
from models.utils import * from tensorflow.python.keras.regularizers import l2 from models.BilinearUpSampling import * def FCN_8(nClasses=Classes, input_height=imageSize, input_width=imageSize, nChannels=Channels): inputs = Input((input_height, input_width, nChannels)) conv1 = Conv2D(filters=32, input_shape...
[ "tyk502709661@126.com" ]
tyk502709661@126.com
8ee2d7c7cfec8a059e6c4f84dfb4a253e1464a52
89a90707983bdd1ae253f7c59cd4b7543c9eda7e
/python_cookbook/10/monkeypatching_modules_on_import1.py
89edccaa9b169b1d124990a2c3e05dd183a7d93b
[]
no_license
timothyshull/python_reference_code
692a7c29608cadfd46a6cc409a000023e95b9458
f3e2205dd070fd3210316f5f470d371950945028
refs/heads/master
2021-01-22T20:44:07.018811
2017-03-17T19:17:22
2017-03-17T19:17:22
85,346,735
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
from postimport import when_imported @when_imported('threading') def warn_threads(mod): print('Threads? Are you crazy?') if __name__ == '__main__': pass
[ "timothyshull@gmail.com" ]
timothyshull@gmail.com
42e5bde676d30d095cbee05157edd33b77c24f65
280faffe536af6facb7385a9042697f1541e459c
/Matlab and Python Scripts/PyAppNotes/PyAppNotes/Class/UsbADI.py
108a037cffd9485b6e7b3154c1ef3d751abe64bf
[ "MIT" ]
permissive
chenbocome/Final-Year-Project
ea758eef020f88d30dda8931041ef59aa6939b2c
881297dc3446899ac2b2f7a9b380eab839369c44
refs/heads/master
2023-05-03T12:02:39.997873
2021-06-01T20:13:46
2021-06-01T20:13:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,813
py
"""@package UsbADI Implements a simple usb class, which loads a DLL The DLL uses the WinUSB API to Read and Write blocks via USB """ import ctypes from numpy import * class usbADI(): """Implements an interface to the WinUSB driver Loads the dll via ctypes. Arguments which are passed to functions (which...
[ "oisinwatkins97@gmail.com" ]
oisinwatkins97@gmail.com
28ef3309ea1c0af7d7c199ff4dfdcf9e68caf048
4254c7f88b95c7aec20979691aecf63053c97570
/cfdm/core/bounds.py
b3d70390051fcf096b1fe5d9ae2ad1b2f42f5528
[ "MIT" ]
permissive
cofinoa/cfdm
2a1fc2069ef253c6eb4a71a4d1fa252295d9be1d
1e074dbc28054780a9ec667d61b9098b94956ea6
refs/heads/master
2020-05-07T08:39:24.996138
2019-04-08T14:34:56
2019-04-08T14:34:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,016
py
from builtins import super from . import abstract class Bounds(abstract.PropertiesData): '''A cell bounds component of a coordinate or domain ancillary construct of the CF data model. An array of cell bounds spans the same domain axes as its coordinate array, with the addition of an extra dimension whose size i...
[ "d.c.hassell@reading.ac.uk" ]
d.c.hassell@reading.ac.uk
550b818fabeccdd99866dae4b9c04a5b78b967af
0eee1cd1be2ba5f81c4aa9fd01ce82345dc1b832
/week 5/String Power.py
f7c019be3be6445ac6c3586cbed81924a922b2e3
[]
no_license
EduardDek/ML-lvl-0-Homeworks
740b30706cbfa75eca2a333de60d91777b9ef99e
b6f9d0f3f1a1c5de6ef6a3dbd9d1b0de40e0e4a6
refs/heads/main
2023-06-13T22:21:24.571086
2021-07-16T13:28:33
2021-07-16T13:28:33
376,030,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
def power(txt,power): newtext="" if power>0: for _ in range (0,power): newtext += txt print(newtext) if power<0: found = False ln = len(txt) for i in range (1, ln): counter = 1 next_occ = txt[i:ln].find(txt[0])+i ...
[ "noreply@github.com" ]
noreply@github.com
aaf0fcdaee70b39287fea8239def89eee1d419c9
ba54b70f93fe7f9d114623d76b1ad3f88309d66f
/uvideo/forms.py
99e3e96d880007e37a2d6a8887d3860983e0d765
[]
no_license
loobinsk/newprj
9769b2f26092ce7dd8612fce37adebb307b01b8b
c6aa6a46973fb46375f4b05a86fe76207a8ae16d
refs/heads/master
2023-05-07T00:28:44.242163
2021-05-25T08:22:05
2021-05-25T08:22:05
370,617,690
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
#-*- coding: utf-8 -*- from django import forms from uvideo.models import UserVideo from django.template import loader, Context from gutils.forms import BootstrapFormMixin class UploadVideoWidget(forms.HiddenInput): def render(self, name, value, attrs=None): tmpl = loader.get_template('uvideo/video-upload...
[ "root@bazavashdom.ru" ]
root@bazavashdom.ru
2219cc48d3ce86f02e721ff54258d26ffe7e8440
badf323e371c4b35b85455dfc38411c8712e20f9
/traffic_capturing.py
e65758ba70d09db5b34e0067f70de0bf05aae139
[]
no_license
HieuKim/network-traffic-analysis
4a67b80917112d3a8c65f9a088ad94c45e282df4
a4bd66df9a17ba9ab9913eb6cf91970d206ca0dd
refs/heads/master
2023-05-09T06:45:45.421489
2021-05-31T03:04:38
2021-05-31T03:04:38
352,900,962
0
0
null
null
null
null
UTF-8
Python
false
false
2,614
py
from scapy.all import sniff import time import csv import ipaddress import collections start1= time.time() def make1D(data): # 2D-> 1D conversion function returned=[] for x in data: returned += x return returned tcp_ip_src = [] tcp_ip_dst = [] tcp_src_nondecimal = [] # ...
[ "tradaviahe1998@gmail.com" ]
tradaviahe1998@gmail.com
56353cd85c0fd029d5f3f9c443bd2df21affd347
57f18ea17510a1e8ade7ee16fad795080d4753f3
/tests/mitra_tests.py
63101f5ceb9a60843d2778ea4dcb63a5bad8fe6e
[]
no_license
soumyadipdm/mitra
823aadb86846eb9e7061e9b1b9f33708b3746d63
ccd4a022f406cf58980a0cda1eafdb17e5ece1f9
refs/heads/master
2021-01-01T05:56:47.511496
2017-07-28T17:50:36
2017-07-28T17:50:36
97,315,014
1
0
null
null
null
null
UTF-8
Python
false
false
154
py
from nose.tools import * import mitra def setup(): print "SETUP!" def teardown(): print "TEAR DOWN!" def test_basic(): print "I RAN!"
[ "unixuser@workstation.local.net" ]
unixuser@workstation.local.net
d96e517dd571f22a97a5db2c58f0aacff16fa8e5
c14855637b7e322c5dbb53dda4a31c91dc07ab30
/dummy.py
aa4e3b744df832ee03505a47fdba54e3e84289a2
[]
no_license
AvichalChadha/guest-post
f866ab78a83cc67c9221d9b12ae70aeef470a7ee
694e0ea91a182b77f6d3b633853796fb5d77c659
refs/heads/master
2021-04-27T00:16:55.376555
2018-03-04T21:15:59
2018-03-04T21:15:59
123,783,509
0
0
null
null
null
null
UTF-8
Python
false
false
4,628
py
''' thinhs to be done- 1) the validation lenght is to be set ptoparly. Not done yet for testing purposes! 2) Even the sql table varchar has to be set! 3) emial and URL validation is not also set 4) And also we have to do the prevention from SQL injection, Learn that from sendtex. 5) THere are couple of pics clic...
[ "avichalchadha1999@gmailcom" ]
avichalchadha1999@gmailcom
8b7a72746072ed26252896a9327365a8179c9098
a54b1fd8e06dad0ddf8b827afe4b4aa60825ff14
/Django/sculptit/api/serializers.py
05baecd48e3fd65346156e1d6adc99c935cf9542
[]
no_license
Kartikmalik271/sculpt-it
c0cb2784fd1a2ff8c6d05fdac3fdeadfb462525d
4dea0d4c8c5d516ef8f77d68227aa580a81fcc1d
refs/heads/main
2023-08-04T11:05:52.306798
2023-07-19T13:50:15
2023-07-19T13:50:15
353,289,733
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
from rest_framework import serializers from django.contrib.auth.models import User from rest_framework.authtoken.views import Token class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ['id','username']
[ "kartikmalik271@gmail.com" ]
kartikmalik271@gmail.com
d62a3c8ebea23e61a2d2da2b98a38edc53894977
7864b25e41454a81f3d01ec64386d271988b44ad
/pathfinder.py
337d7e9b3f39fe84e59f515b50a74c842e9c00fa
[]
no_license
momentum-cohort-2018-10/w2-pathfinder-poas14
9240f87757964aed32eeba4f98e015402f5dccfd
5b457e57720364bd4117e3a6bd9750355ab0c3d3
refs/heads/master
2020-04-05T09:07:15.303087
2018-11-13T03:00:35
2018-11-13T03:00:35
156,743,544
0
0
null
null
null
null
UTF-8
Python
false
false
4,685
py
from PIL import Image import random """Make the take the info in elevation_small and make it a list of lists""" with open('elevation_small.txt') as file: stripped_lines = [line.strip() for line in file.readlines()] listed_lines = [line.split(' ') for line in stripped_lines] numbered_pixels = [[int(x) for ...
[ "oas.peter@gmail.com" ]
oas.peter@gmail.com
9a95da2d8e63b5fbd51b1ce96de4d38b4f59b6ff
dbe1eb806973435ebdc876c1a8120d64adfa0af8
/venv/Scripts/easy_install-3.6-script.py
c54fc030534a9e902537db48668d2966c7f88b56
[]
no_license
moseskadamba/calculatorapp
650e3a4b26b2e97b9ff5f26eeb3ad0ad445c7d38
c4353b7c1219b82ccf56f586ae6b2165f1abd79e
refs/heads/master
2020-03-22T19:49:17.024319
2018-07-11T09:32:19
2018-07-11T09:32:19
140,552,945
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
#!C:\Users\kadamba\PycharmProjects\calculatorapp\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' __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'(-scr...
[ "moseskadamba@gmail.com" ]
moseskadamba@gmail.com
736e9e1a22663053a31a445dbb2ce7cecb2841c3
232fc2c14942d3e7e28877b502841e6f88696c1a
/ding/interaction/config/base.py
446e260203ff8119d34f20748b6d29698b85da7d
[ "Apache-2.0" ]
permissive
shengxuesun/DI-engine
ebf84221b115b38b4b3fdf3079c66fe81d42d0f7
eb483fa6e46602d58c8e7d2ca1e566adca28e703
refs/heads/main
2023-06-14T23:27:06.606334
2021-07-12T12:36:18
2021-07-12T12:36:18
385,454,483
1
0
Apache-2.0
2021-07-13T02:56:27
2021-07-13T02:56:27
null
UTF-8
Python
false
false
432
py
# System configs GLOBAL_HOST = '0.0.0.0' LOCAL_HOST = '127.0.0.1' # General request DEFAULT_REQUEST_RETRIES = 5 DEFAULT_REQUEST_RETRY_WAITING = 1.0 # Slave configs MIN_HEARTBEAT_SPAN = 0.2 DEFAULT_HEARTBEAT_SPAN = 3.0 DEFAULT_SLAVE_PORT = 7236 # Master configs MIN_HEARTBEAT_CHECK_SPAN = 0.1 DEFAULT_HEARTBEAT_CHECK_S...
[ "niuyazhe@sensetime.com" ]
niuyazhe@sensetime.com
6ff244287ec860da15d12bfbdff15b963dfbab9a
3f3d3adc417e789884d3b323f0392362c8fb7a2b
/app/models.py
68ff68bb929e52a97c522f485bb3b291afa98b8b
[]
no_license
UoToGK/WeChatSpider
cc161949aadde65f55c0aa6d2306b2a9a658b801
e459de0c342be4433e4a59b9c59e7713348e668f
refs/heads/master
2022-11-19T11:00:35.727141
2020-07-25T11:22:33
2020-07-25T11:22:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,471
py
import uuid from flask import Flask, request, json, Response from flask_sqlalchemy import SQLAlchemy from sqlalchemy import create_engine,Column,Integer,String from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base import mysql.connector from app import db from config import Con...
[ "yu_wl_h@163.com" ]
yu_wl_h@163.com
2370fac06ce03a6f9a61ce67e20f69220e4e7123
92b27393b69a9db96eac9d8266e5263adf636a9a
/qa/rpc-tests/p2p-acceptblock.py
c1a88548f58bd93fdf3681d34b271613c8c00de9
[ "MIT" ]
permissive
Fair-Exchange/Commercium
ecd390d6ba12a8e2df014e7303bd634af765a4ea
3efe35b6acf6631094e1f9acd78b9ca7dabcdc9e
refs/heads/master
2020-04-08T04:01:05.505639
2018-11-25T06:31:39
2018-11-25T06:31:39
157,740,006
0
0
MIT
2018-11-15T16:21:45
2018-11-15T16:21:45
null
UTF-8
Python
false
false
11,938
py
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Commercium Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import CommerciumTestFramewor...
[ "hellomoto@stage.commercium.net" ]
hellomoto@stage.commercium.net
b2e4985b6430b407be3fe3d835729ebeb8aa2e69
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/era5_scripts/02_preprocessing/combine82/502-tideGauge.py
658865e7aebe194e5247d2a059242aa96349e091
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
2,117
py
# -*- coding: utf-8 -*- """ Created on Tue Apr 16 16:11:00 2020 -------------------------------------------- Load predictors for each TG and combine them -------------------------------------------- @author: Michael Tadesse """ import os import pandas as pd #define directories dir_in = '/lustre/fs0/home/mtadesse/er...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
8d58e8632b928bc92ba414ab0604d64b30e0393b
850284039d5aada2b247f1abc2f8fb51a4454d01
/updateStatus.py
8d47d86ef89afa959e0cd40d3df5845091895e1b
[]
no_license
SSantosLab/Pipeline_Master
f28e22c8e93d85c37aacf018ac0fe0a0bcc09edb
49b7a739d422e0e5fb7b93cf22617430fdba2bef
refs/heads/master
2020-04-28T07:12:11.544940
2019-05-13T16:02:18
2019-05-13T16:02:18
175,083,944
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
def updateStatus(statuslist,season,expnum): stat=open('ImgProcStatus'+str(season)+'_'+str(expnum)+'.txt','w+') for status in statuslist: if status == False: stat.write('False \n') elif status == True: stat.write('True \n') elif status == 'Waiting': sta...
[ "alyssag94@brandeis.edu" ]
alyssag94@brandeis.edu
3f96d8878c3bb4206095f84b4f67f59194a2984b
4af65b44b39816c7037ff928da1ae153f4d970e5
/mud/thing.py
37a9732599722b87d944c6e390898be6dba87f1c
[]
no_license
Cloudxtreme/mud-14
0745eda694ffeee79120fcfc82aab2da8b7a9655
f02d4ca0e8360b0924b86a3da99e5230c3028642
refs/heads/master
2021-05-28T06:14:37.121028
2014-12-01T08:00:27
2014-12-01T08:00:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
import mudclasses as mc import event as evt import english from types import TupleType # bug: permanence (sp?) is not yet handled
[ "leif.theden@gmail.com" ]
leif.theden@gmail.com
5a8d87c8871f4b5879836b466e7049fd661da1ea
ca23b411c8a046e98f64b81f6cba9e47783d2584
/ncsnv3/main.py
d7a89ddfc89627cb854f233719729e3382012dce
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
pdybczak/google-research
1fb370a6aa4820a42a5d417a1915687a00613f9c
0714e9a5a3934d922c0b9dd017943a8e511eb5bc
refs/heads/master
2023-03-05T23:16:11.246574
2021-01-04T11:30:28
2021-01-04T11:30:28
326,629,357
1
0
Apache-2.0
2021-02-01T12:39:09
2021-01-04T09:17:36
Jupyter Notebook
UTF-8
Python
false
false
1,580
py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
6f8ad3af34ab6750d53753c74bf879b5399f9408
133c91357dea6bac8fb24480a80a58e9da112ce2
/lcd_display.py
c229fb5f9c7328396661aaf3adfe269ea8734d07
[ "Apache-2.0" ]
permissive
Danigy/rpi
5ea205bd8620137d82fbcc07ba401302a47060d1
93713f0d3b2a32b2909cf3b106dcba3d5e5a53f3
refs/heads/master
2020-07-10T07:12:47.677616
2017-07-23T17:51:56
2017-07-23T17:51:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,306
py
import RPi.GPIO as GPIO import time # ======================= # PIN LAYOUT OF THE CHIP # ======================= # The wiring for the LCD is as follows: # 1 : GND # 2 : 5V ***************************** 3.3 volt wont work # 3 : Contrast (0-5V)* # 4 : RS (Register Select) # 5 : R/W (Read Write) - GROUND THIS PIN ...
[ "bansalparijat@gmail.com" ]
bansalparijat@gmail.com
67b2f06c9d46879a2705d4eff36c0d90376d2027
3607f505e257d9956f3be91895c2773d99c64902
/config/admin.py
6914d9e0f2923609f78616665fcec3ac24862dd5
[]
no_license
5110209161/typeidea
9f744cc733b67b452c7e277801b5ba42c096a249
1795410eda47ac225fe675f68252aa3b9b10bf67
refs/heads/master
2020-05-01T15:11:48.741434
2019-03-27T06:01:42
2019-03-27T06:01:42
177,540,473
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
from django.contrib import admin # Register your models here. from .models import Link, SideBar from typeidea.custom_site import custom_site @admin.register(Link, site=custom_site) class LinkAdmin(admin.ModelAdmin): list_display = ('title', 'href', 'status', 'weight', 'created_time') fields = ('title', 'href'...
[ "hbin6358@163.com" ]
hbin6358@163.com
001e5a99a27ae6b5902599010bdf499829ac8b6e
200c41bb42d405f056daffd3d27a47d3779b0020
/onecloud/admin.py
4bc69a1b21e016c7fa0d81332ed8fc52c289f9b9
[]
no_license
prdioliveira/onecloud-qa
8a3bd938c71ef260af26f60c6ceb1e0428e6def6
04f1bb40da6a1543906c0ef90862177c7e62e424
refs/heads/master
2020-12-25T07:37:03.690645
2016-01-27T22:33:59
2016-01-27T22:33:59
50,066,061
0
1
null
2016-01-27T10:47:04
2016-01-20T22:51:46
Python
UTF-8
Python
false
false
150
py
# coding: utf-8 from django.contrib import admin from .models import Provider, Service admin.site.register(Provider) admin.site.register(Service)
[ "saintclair.com@gmail.com" ]
saintclair.com@gmail.com
7cfc837ee39c5e189b66d18e258c2768e4f7851d
57434c9cf08f3e01a4e8fcf2bbc79efec6d6d11b
/repositories/i_district_repository.py
65b7cbed27dc9d6a6443640dbd849479a391e454
[]
no_license
carlomagno83/epidemiologic-calculator
f795b04d838c5cc4125faaa727e5ec990e2736d8
15b6fe64067deefe3e26b5a5f36a07d5870672bf
refs/heads/master
2021-05-25T20:57:14.684180
2020-04-03T19:12:34
2020-04-03T19:12:34
253,916,064
0
0
null
2020-04-07T21:27:59
2020-04-07T21:27:58
null
UTF-8
Python
false
false
324
py
from abc import ABC, abstractmethod from entities.district import District class IDistrictRepository(ABC): @abstractmethod def add(self, district: District): pass @abstractmethod def find_all(self): pass @abstractmethod def find_by_province(self, province_id: int): p...
[ "mirakel1401@gmail.com" ]
mirakel1401@gmail.com
81751512153b821a1a8a5eafbf86a5a3a6bd2c74
deea8ca95270e01b0a7ed8aeee8f82efa0569c73
/Extractor/mfspendCSVExtractor.py
abe49f63c461b0a2bc3f8e13e5f773325e53e7d9
[]
no_license
studenttwok/TVDWExtractor
08535c3a0ffcfa18804e96d618dd6cc6ddb09d3f
53dfcee80a2c0eb4d77f58772662c94b2b997a87
refs/heads/master
2023-04-30T13:35:37.615639
2023-04-17T13:25:58
2023-04-17T13:25:58
51,765,405
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
from struct import * import csv fIn = open("mfspend.mft", "rb") fOut = open('mfspend.csv','w') csv_out = csv.writer(fOut) # define the structure dataFormat = "i" try: # each block has 4 bytes for i in range(0,576): fIn.seek(i * 4, 0) # read 4 bytes dataRecordAllBytes = fIn.read(4) ...
[ "studenttwok@gmail.com" ]
studenttwok@gmail.com
ed02f18c109df5ac521e18bc0b70d45919aa5d9d
ceece138b141a610dc1f00627258912a85bff548
/main.py
1752fb98b81e0d9f746684e0624b0ba7a150ad18
[]
no_license
winstondouble/bouncing
3c7ec0d1f0c589d13b3eb676706807c741c08a4d
a383ecd075185d4e96cd791df0ab6565ddb7b4b5
refs/heads/master
2021-05-19T14:11:23.498513
2020-03-31T21:47:31
2020-03-31T21:47:31
251,750,417
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
import sys, pygame, random from pygame.locals import * pygame.init() screen_info = pygame.display.Info() size = (width, height) = (int(screen_info.current_w), int(screen_info.current_h)) screen = pygame.display.set_mode(size) clock = pygame.time.Clock() color = (21, 123, 591) def main(): while True: clock...
[ "winstondouble42069@gmail.com" ]
winstondouble42069@gmail.com
3314310b124324421bdc948e97abc2584f9cc2e0
30268e3918f8dc079a757e985fee374605c931b2
/api/tacticalrmm/winupdate/tasks.py
487b171e5b0bfbde2f2bdf9fc3fb94be0d93781c
[ "MIT" ]
permissive
doytsujin/tacticalrmm
e1be7ad7950bb95c4b37dd63ac03eb323115d866
7fb79e0bcce62dbb892fb36665ff6d7135d7bebf
refs/heads/master
2021-03-21T14:02:24.858487
2020-02-24T07:11:15
2020-02-24T07:11:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,999
py
from time import sleep from agents.models import Agent from .models import WinUpdate from tacticalrmm.celery import app @app.task def check_for_updates_task(pk, wait=False): if wait: sleep(60) agent = Agent.objects.get(pk=pk) resp = agent.salt_api_cmd( hostname=agent.salt_id, ...
[ "dcparsi@gmail.com" ]
dcparsi@gmail.com
4983c0b212d9d99a861c02e9614fb5639097d3f3
7cc9843fc3e3cb01542a9672f669a58be8368d3c
/venv/bin/pip3
713674a67e5658dea631be4d27cb06a76d9e1654
[]
no_license
adempus/movie-lookup-tool
4e4c3dfbe76e5638f74186c9ed8d699bc7b86d11
8c8443d8957a6c80dd95b487a3c145d127d63922
refs/heads/master
2020-03-20T08:12:54.733828
2018-06-22T00:14:42
2018-06-22T00:14:42
137,302,132
0
0
null
null
null
null
UTF-8
Python
false
false
406
#!/home/adempus/PycharmProjects/Week4_API/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]) ...
[ "adempus@pop-os.localdomain" ]
adempus@pop-os.localdomain
37cbb1c43a0fa8c60bdb3d1c098447b665bb851b
25388ab3438cd6432c9681d551f07733452c8e10
/N皇后/51.N皇后.py
8c8cfd6ab1ad0bb8fb72788d66c8e4868b1462dd
[]
no_license
wanghuafeng/lc
a4fc208dfb5e258eae5d5e31c231e777707c2d4e
8326f4bc880229aa3707bba365165860e597d7f5
refs/heads/master
2023-02-01T03:53:55.813184
2020-12-20T11:26:59
2020-12-20T11:26:59
268,943,732
0
0
null
null
null
null
UTF-8
Python
false
false
2,437
py
#!-*- coding:utf-8 -*- """ https://leetcode-cn.com/problems/n-queens/ n 皇后问题研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。 给定一个整数 n,返回所有不同的 n 皇后问题的解决方案。 每一种解法包含一个明确的 n 皇后问题的棋子放置方案,该方案中 'Q' 和 '.' 分别代表了皇后和空位。 示例: 输入: 4 输出: [ [".Q..", // 解法 1 "...Q", "Q...", "..Q."], ["..Q.", // 解法 2 "...
[ "sivilwang@163.com" ]
sivilwang@163.com
a954ecfbd39179bb80fb1f37131f1c2a0c0f2d13
e1feb4ad58bf1a89a56af2fffc4d24f11c48622f
/udf/supervise_formationtemporal.py
54a6376fdf32383150d54637804b8ceae06c1171
[ "Apache-2.0" ]
permissive
Mcirino/pdd
562d2393fd06ebeb7b8ac312d415d7e634fc8442
0a8264315c3b03636507cc01cf66da08ea0b688f
refs/heads/master
2021-01-21T01:17:00.709435
2016-06-22T20:38:10
2016-06-22T20:38:10
61,580,446
0
0
null
2016-06-20T21:08:24
2016-06-20T21:08:23
null
UTF-8
Python
false
false
2,335
py
#! /usr/bin/env pypy from lib import dd as ddlib import re import sys import json kb_formation_temporal = {} kb_formation_country = {} for l in open(ddlib.BASE_FOLDER + "/dicts/macrostrat_supervision.tsv"): (name1, n1, n2, n3, n4) = l.split('\t') name1 = name1.replace(' Fm', '').replace(' Mbr', '').replace(' Gp', '...
[ "czhang@cs.wisc.edu" ]
czhang@cs.wisc.edu