blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
9424f43d28f3d1e70f60a9571218e47324804df2
2951fa118f291f2cc3164c9c0dda7390a1603ce7
/tickeys/kivy/adapters/__init__.py
f628d998a0ae96d437d37d84927d3673e33b91f3
[ "MIT" ]
permissive
woodgreat/Tickeys-linux
43a031ca873ab244e4d860212608f3180f3bd845
15bb7b356a6bb586974af17a705762b40b461235
refs/heads/master
2022-08-12T05:03:08.218483
2022-08-07T08:13:43
2022-08-07T08:13:43
164,826,330
0
0
MIT
2022-08-07T08:13:44
2019-01-09T08:58:15
Python
UTF-8
Python
false
false
2,826
py
''' Adapters ======== .. versionadded:: 1.5.0 An adapter is a mediating controller-type class that processes and presents data for use in views. It does this by generating models, generally lists of :class:`~kivy.uix.listview.SelectableView` items, that are consumed and presented by views. Views are top-level widgets...
[ "billo@qq.com" ]
billo@qq.com
f372de0acede7f2de457a8d8ced9fed429f3fc05
1ca57b44cbb753525be35c8bd4b789a4e6440b01
/utils/serializer.py
ba1e3b562930fa0de204af255c5c6710f904629e
[ "MIT" ]
permissive
paulocheque/python-django-bootstrap
78a1b6fa7605e876df12e8771a0529a2e024c080
35fabca371c64c6787e74120b9c5ca22ec8dff92
refs/heads/master
2021-01-25T03:48:19.326581
2014-08-09T20:16:05
2014-10-15T01:22:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,616
py
# coding: utf-8 try: import simplejson as json except ImportError: import json # http://www.tornadoweb.org/documentation/escape.html # tornado.escape.json_encode(value)[source] import collections from datetime import date, time, datetime from mongoengine.base import BaseDocument from mongoengine import * from ...
[ "paulocheque@gmail.com" ]
paulocheque@gmail.com
619fa669abaf1bfaa3eb244583d97f79dddccc7d
95f615b4aeaa65b4895e30e8e6d0dc199ca3d0eb
/Catalogos/migrations/0004_auto_20190429_1144.py
8263694280cfb4652d1c4ee64e7523b6694ef2fe
[]
no_license
danielcruzmx/hciec
e576cc9e5519b577197b7091c97bdf602db4f319
4874c49e4283de7c72438af6378222553288a2fe
refs/heads/master
2020-05-19T16:30:04.336667
2019-05-13T00:14:28
2019-05-13T00:14:28
185,110,741
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
# Generated by Django 2.2 on 2019-04-29 16:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Catalogos', '0003_periodocorte_saldo'), ] operations = [ migrations.AlterField( model_name='periodocorte', name='saldo...
[ "danielcruzmx@hotmail.com" ]
danielcruzmx@hotmail.com
fb7e27f766b608581a06ecc6281d69f6295921b7
706bc9414a7b27a3c26dbc4445ff5b1b6eb2a669
/python_learning/for_advanced/for_list_learning.py
d01c7ad7f860ec24abf83b7a914afaa8fc87cf1e
[]
no_license
suiup/pythonProject
4ae548cf8d42d75c508fb0e48f0e23eb76d8c938
8b52e2d4c66859f759b97680e2ab000f3af8af0d
refs/heads/master
2023-06-24T20:47:02.544557
2021-07-21T16:15:39
2021-07-21T16:15:39
381,437,270
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
l = [] for i in range(10): l.append(i * 2) print(l) m = [i * 2 for i in range(10)] print(m) # 字典 key: value d = {"index" + str(i): i * 2 for i in range(10)} print(d)
[ "931857499@qq.com" ]
931857499@qq.com
8df6157346f9723af4d9bdd92e0e3125327f2b77
67438ea8c993bd92cb74ab598210520c3e413422
/spanserver/test_utils/_errors.py
8600901884b38ebf542577980d458ac4547f7717
[]
no_license
illuscio-dev/spanserver-py
15e10f9dcfd827117224496d5b71ccd5888463fb
91e0ddc4c2dd7ddc89df5d5d96fed0181a5af928
refs/heads/master
2022-04-07T08:54:47.227255
2020-02-25T20:12:52
2020-02-25T20:12:52
169,330,976
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
from spantools import ( ContentDecodeError, ContentEncodeError, SpanError, NoErrorReturnedError, InvalidAPIErrorCodeError, ) (ContentDecodeError, ContentEncodeError, NoErrorReturnedError, InvalidAPIErrorCodeError) class ResponseValidationError(SpanError): """Base Error for Exceptions Thrown ...
[ "b.peake@illuscio.com" ]
b.peake@illuscio.com
dbf5090e487c036ff356dee25281600597b913d7
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano3707.py
5e57bbdffec1f6d62492db64bffb9761e680ce05
[]
no_license
rsk146/CMS
4e49592fc64f6438051544c5de18598db36ed985
5f8dab8c59ae556598b9747b52b88205fffc4dbe
refs/heads/master
2022-12-01T03:57:12.126113
2020-08-04T03:29:27
2020-08-04T03:29:27
284,863,383
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era...
[ "rsk146@scarletmail.rutgers.edu" ]
rsk146@scarletmail.rutgers.edu
65fdc2d338dea3dc5e80b7d63967c227c60492be
7b102f9c8f2e3f9240090d1d67af50333a2ba98d
/gbd_2017/shared_code/central_comp/nonfatal/como/como/components/disability_weights.py
1d62de6cf06534ea50fedd3a932e319016cfd725
[]
no_license
Nermin-Ghith/ihme-modeling
9c8ec56b249cb0c417361102724fef1e6e0bcebd
746ea5fb76a9c049c37a8c15aa089c041a90a6d5
refs/heads/main
2023-04-13T00:26:55.363986
2020-10-28T19:51:51
2020-10-28T19:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,033
py
import os from copy import deepcopy import pandas as pd from ihme_dimensions import gbdize from dataframe_io.io_control.h5_io import read_hdf from core_maths.interpolate import pchip_interpolate class DisabilityWeightInputs(object): def __init__(self, como_version, dimensions): self.cv = c...
[ "nsidles@uw.edu" ]
nsidles@uw.edu
05e30d015ac05fb28e2375e5f2b66c88477bf71b
58e15bc87be89b49f71a74733826b38779b3c87d
/src/dashboard/conftest.py
2e47b6ad9ea410bc90cc0d1c4c7ceba9cc984fc2
[ "MIT" ]
permissive
karlicoss/dashboard
55e65df27b322fbb57ed2558a149432c6a5600ec
708eb183130de31e344fa0f38fa8ae74d1953e31
refs/heads/master
2023-04-08T12:18:14.621437
2020-10-22T23:44:35
2020-10-29T03:22:41
289,564,799
18
0
MIT
2020-10-29T03:22:43
2020-08-22T20:49:49
Python
UTF-8
Python
false
false
564
py
from pathlib import Path import pytest @pytest.fixture(scope='session', autouse=True) def generate_html_index(): yield outs = Path('test-outputs') # todo descriptions would be nice? maybe dump some json along the plot htmls = list(sorted(outs.rglob('*.html'))) htmls = [h.relative_to(outs) for h i...
[ "karlicoss@gmail.com" ]
karlicoss@gmail.com
34c3f59d90b969f142b17d6e45031778eb2b1f9c
1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e
/xcp2k/classes/_adjmat_write1.py
2131624101fee2683776679d5aa836284a35e49e
[]
no_license
Roolthasiva/xcp2k
66b2f30ebeae1a946b81f71d22f97ea4076e11dc
fc3b5885503c6f6dc549efeb4f89f61c8b6b8242
refs/heads/master
2022-12-23T06:03:14.033521
2020-10-07T08:01:48
2020-10-07T08:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
from xcp2k.inputsection import InputSection from xcp2k.classes._each276 import _each276 class _adjmat_write1(InputSection): def __init__(self): InputSection.__init__(self) self.Section_parameters = None self.Add_last = None self.Common_iteration_levels = None self.Filename ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
506be056e6cc495e4bb04d3e87c2f8e52b72008b
ceb3d82494813cd21e38231964e098bb3efe093b
/Filters/farid.py
6a95f707996cb110dc37613cf4c13cf4f212a677
[ "Apache-2.0" ]
permissive
Joevaen/Scikit-image_On_CT
0c0a306a9ca18668bd9bb4105e577766b1d5578b
e3bf0eeadc50691041b4b7c44a19d07546a85001
refs/heads/main
2023-03-16T01:28:04.871513
2021-03-16T07:53:57
2021-03-16T07:53:57
344,071,656
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
# 使用Farid变换找到边缘大小。 from skimage.filters import farid, farid_h, farid_v from skimage import io, img_as_float image = img_as_float(io.imread('/home/qiao/PythonProjects/Scikit-image_On_CT/Test_Img/4.jpg')) filtered_image = farid(image) io.imshow(filtered_image) io.show() # farid_h找到图像的水平边缘 filtered_image = farid_h(ima...
[ "joevaen@126.com" ]
joevaen@126.com
63d4449148408a6eb0f50b5693d9e9f852b356b0
3ac0923505e1e03a07742355edec43f23ead82b7
/Daily/PY/Leetcode1744-n你能在你最喜欢的那天吃到你最喜欢的糖果吗.py
b2887a8252124bc6419ed0a5e75f5ebc0e35074b
[]
no_license
lock19960613/SCL
5055c940d2529eef981a29698c7ea04212a8b9de
3ea28fd8f5d5233411341283c85667e4b9fc64d5
refs/heads/main
2023-08-03T04:36:33.555296
2021-09-11T06:48:49
2021-09-11T06:48:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
from typing import List class Solution: def canEat(self, candiesCount: List[int], queries: List[List[int]]) -> List[bool]: n = len(candiesCount) presum = [0] * n presum[0] = candiesCount[0] for i in range(1,n): presum[i] = presum[i - 1] + candiesCount[i] ...
[ "597494370@qq.com" ]
597494370@qq.com
4d11b9ee248e03f242acaf6262f36dc900899f97
c340835e4444c664fc2b261238e3738cf5bf7196
/unique_paths.py
12406263ac786ab39686b4b402a2666dcc01e48f
[]
no_license
z-o-e/LeetCode_OJ_Python
49f2a7378eb98f707c97d7757cc19ef19622db42
ad7f5152fe404bdd4e91710d9a719f392bec7a96
refs/heads/master
2021-03-12T22:39:44.898502
2014-10-16T05:30:25
2014-10-16T05:30:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
class Solution: # @return an integer def uniquePaths(self, m, n): grid = [ [0 for j in range(m)] for i in range(n) ] for i in range(n): for j in range(m): if i==0: grid[i][j]=1 else: if j==0: ...
[ "hyzhang22@gmail.com" ]
hyzhang22@gmail.com
eef65f3b7880ee7041b0cfd4a277aaa5b066a825
40d404e424489bb48c3673dee6664de64dbab39c
/myWebsite/venv/bin/elbadmin
249f435fa6c7445d71249a43f81f0203620e5553
[]
no_license
alyasamba/me
07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1
978053c867181bad8eb316a0920ba290a7b1ceae
refs/heads/main
2023-01-28T09:57:46.616285
2020-12-02T02:31:25
2020-12-02T02:31:25
315,935,399
1
0
null
null
null
null
UTF-8
Python
false
false
9,714
#!/home/ali/me/myWebsite/venv/bin/python3 # Copyright (c) 2009 Chris Moyer http://coredumped.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without li...
[ "sopesherifabdoulah@gmail.com" ]
sopesherifabdoulah@gmail.com
6ce4fbef22bb6441db2f36db84f964570235b304
5138ee53b2f8728fe23281035b5d5d675a29ef3a
/MuBuild/tests/test_ConfigValidator.py
5e2b93f1c36aa8baf674075a128407b6671d1117
[ "BSD-2-Clause" ]
permissive
Claudiusgonzo/mu_pip_build
a7d56f45278b442444403ba6599313655b33b0ce
7a42e81ef6f1a689dd7ac093e6a5db8e4aea95e2
refs/heads/master
2022-03-22T21:10:20.079401
2019-12-11T04:01:30
2019-12-11T04:01:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,699
py
import tempfile import logging import os import unittest from MuBuild import ConfigValidator import yaml try: from StringIO import StringIO except ImportError: from io import StringIO test_dir = None plugin_list = [] class Edk2Path_Injected(object): def __init__(self): self.WorkspacePath = None ...
[ "macarl@microsoft.com" ]
macarl@microsoft.com
fa4898d95438b28c5b97b8c63c2752cbb422c549
f1738cd603e0b2e31143f4ebf7eba403402aecd6
/ucs/base/univention-config-registry/python/univention/__init__.py
c82c5c7c9316be4d5d4a4f97f5ea70bfc9931aaa
[]
no_license
m-narayan/smart
92f42bf90d7d2b24f61915fac8abab70dd8282bc
1a6765deafd8679079b64dcc35f91933d37cf2dd
refs/heads/master
2016-08-05T17:29:30.847382
2013-01-04T04:50:26
2013-01-04T04:50:26
7,079,786
8
6
null
2015-04-29T08:54:12
2012-12-09T14:56:27
Python
UTF-8
Python
false
false
1,232
py
# -*- coding: utf-8 -*- # # Univention Configuration Registry # modules init # # Copyright 2002-2012 Univention GmbH # # http://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 # (GNU AGPL V3) as publi...
[ "kartik@debian.org" ]
kartik@debian.org
73bb4ba5f3beae9fcb15e59e2abf04148a280348
9879c8a1f1ac5884d9220e51c6256bb651fc800e
/pyot/conf/utils.py
bded19eb3eb647f1423019ee76fc38a19cff846f
[ "MIT" ]
permissive
rasmusdoh/Pyot
d260ee37b59cca026c9edd3e9be85f2197604df6
de5065c55f171bb39691ddc76da99c5f16da94d9
refs/heads/master
2023-08-05T15:56:17.726457
2021-09-15T20:59:39
2021-09-15T20:59:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
import re from typing import Mapping, TypeVar, Type K = TypeVar("K") V = TypeVar("V") class ConfDict(dict, Mapping[K, V]): def __init__(self, cls: Type[V], throw: str, *args, **kwargs) -> None: super().__init__(*args, **kwargs) self.throw = throw def __getattr__(self, k: K) -> V: t...
[ "paaksingtech@gmail.com" ]
paaksingtech@gmail.com
d691daeb1123112e94e2c65ea84d524319003a56
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_7/GDS/shamil_v3/account_invoice_custom/report/account_print_invoice.py
310d9d395dc02bb493eb29af42783b1bde8758b1
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
# -*- coding: utf-8 -*- ############################################################################## # # NCTR, Nile Center for Technology Research # Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>). # ############################################################################## import time from report impo...
[ "bakry@exp-sa.com" ]
bakry@exp-sa.com
117250774ec3543c85f9144bb838acd5ab4cb18b
c3cd2d040ceb3eabd387281835cacd0967fdbb6a
/web2py/applications/admin/languages/sl.py
e165d38982d5166ae92f04667b12c3322b618bff
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "MIT", "GPL-2.0-only", "Apache-2.0", "BSD-2-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
operepo/smc
cc55338b8b9fbeac78e67397079759965d859b68
d10e7b7567266e31de73e5b29663577cab119a90
refs/heads/master
2022-09-22T07:17:59.970650
2022-07-11T00:20:45
2022-07-11T00:20:45
116,905,452
1
3
MIT
2021-03-09T03:01:37
2018-01-10T03:53:08
Python
UTF-8
Python
false
false
39,115
py
# -*- coding: utf-8 -*- { '!langcode!': 'sl', '!langname!': 'Slovenski', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Popravi" je izbirni izraz kot npr.: "stolpec1 = \'novavrednost\'". Rezultatov JOIN operacije ne morete popravljati ali brisati', ...
[ "ray@cmagic.biz" ]
ray@cmagic.biz
5f7309c22dc20de4a50f74bf3f36b4ddb8768093
27acd9eeb0d2b9b6326cc0477e7dbb84341e265c
/test/vraag4/src/synoniemen/187.py
fd32a0de1c36614ccf4868843f3241f994fbd919
[]
no_license
VerstraeteBert/algos-ds
e0fe35bc3c5b7d8276c07250f56d3719ecc617de
d9215f11cdfa1a12a3b19ade3b95fa73848a636c
refs/heads/master
2021-07-15T13:46:58.790446
2021-02-28T23:28:36
2021-02-28T23:28:36
240,883,220
1
1
null
null
null
null
UTF-8
Python
false
false
514
py
def synoniemen(tekst, woordenboek): nieuw = "" tekst_nieuw = tekst.split() for woord in tekst_nieuw: if woord in woordenboek: nieuw += str(woordenboek[woord]) + " " else: nieuw += str(woord) + " " return nieuw[:-1] print(synoniemen('knoeien levert stoute leerl...
[ "bertverstraete22@gmail.com" ]
bertverstraete22@gmail.com
24e4923d03947a2f17e5cf4475428775d92cbb46
d12946acff8dab7127720e9f7393acc6b6c22daf
/ngcasa/simulator/__init__.py
5758ff157836ce2271676b2195795ef1ac1524d8
[ "Apache-2.0" ]
permissive
keflavich/cngi_prototype
ff84c6d36e823148d3e21d6c2a2eb8298893a5da
cf6ea38a8dd7219c351bcc5a10e9a38dcf733ae5
refs/heads/master
2023-02-01T09:21:47.847739
2020-12-14T21:03:16
2020-12-14T21:03:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
""" Simulator subpackage modules """ from .add_meta_data import add_meta_data from .add_noise import add_noise
[ "ryanraba@gmail.com" ]
ryanraba@gmail.com
f70818266d4c41b4c9c465306191fda0e65704d8
9794c677a2c0d944f1f77c20fcb3de61e84d5a2f
/app/migrations/0001_initial.py
93e5645fbb822c6ddc45a0702a8d85a8486062f8
[ "MIT" ]
permissive
henocdz/apichupe
2c3d7731e47a3791b4911d9df0f65c55bee6db33
f59f34a452664dc897abff8d26cccc12cd6c81e8
refs/heads/master
2020-12-11T05:45:33.272791
2015-08-02T00:47:50
2015-08-02T00:47:50
39,965,147
0
0
null
2015-07-30T18:07:24
2015-07-30T18:07:23
null
UTF-8
Python
false
false
614
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import autoslug.fields class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id...
[ "henocdz@gmail.com" ]
henocdz@gmail.com
63ab864cfcfa6008615da2ad2c30b988aec59ce5
9ab9d9a3883471763edbceea59a0e83170581b5f
/test/tool_shed/functional_tests.py
f9c1ffff324056a20823f888cf7f613d1b2cf30f
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
asmmhossain/phyG
24dc211dad5b3e89c87ff384e841f2e98bbd52db
023f505b705ab953f502cbc55e90612047867583
refs/heads/master
2022-11-21T12:43:46.172725
2014-02-14T12:33:08
2014-02-14T12:33:08
13,800,552
0
1
NOASSERTION
2020-07-25T21:05:41
2013-10-23T11:04:25
Python
UTF-8
Python
false
false
22,423
py
#!/usr/bin/env python import os, sys, shutil, tempfile, re, string, multiprocessing # Assume we are run from the galaxy root directory, add lib to the python path cwd = os.getcwd() tool_shed_home_directory = os.path.join( cwd, 'test', 'tool_shed' ) default_tool_shed_test_file_dir = os.path.join( tool_shed_home_direct...
[ "mukarram819@gmail.com" ]
mukarram819@gmail.com
299a8973405bee96b7dc02a634e48ee94036ff94
7c66bba92b484e5fa6ee282ef39f2c26875ca775
/dump_rule/dump_host_rex.py
e781d46c82966c84890149d22dee1d11df744513
[]
no_license
KqSMea8/PythonTools
a5ac17182b2689a706180dc349d59c2484d3984c
7279570b82fecbf59b71aa6b58ef975e90c660df
refs/heads/master
2020-04-13T04:19:19.209243
2018-12-24T05:13:12
2018-12-24T05:13:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,758
py
#!/usr/bin/env python # -*-encoding:utf-8 -*- import os import sys import re import json from MySQLdb import connect MAX_HOST = 6000 total_host = 0 black_host_set ={} host_pattern = set() exclude_char_set=set("^@:,>?<&$#!~()") lib_file = "host_lib" def load_black_host(): with open("black_host","r") as f: ...
[ "xinluomed_yuxuecheng@git.cloud.tencent.com" ]
xinluomed_yuxuecheng@git.cloud.tencent.com
e25f4238cce765d249104b358c483c967776f0b8
b97858cb4e8c148c0c578b6677698b826220df96
/day10.py
4ecd8864a3964caaba9abdb7d11c73df7c1abb27
[ "MIT" ]
permissive
coocos/advent-of-code-2019
1aa79212328d9671e2a379d9c3a501f1091195e0
0278f924de77d951958d229ce523f4f55a4f8035
refs/heads/master
2022-03-28T23:23:31.110078
2020-01-30T15:45:43
2020-01-30T15:45:43
224,995,173
0
0
null
null
null
null
UTF-8
Python
false
false
4,304
py
from __future__ import annotations import os import math import collections from operator import itemgetter from typing import List, DefaultDict, Tuple, Set, Dict from dataclasses import dataclass @dataclass class Vector: x: int y: int @property def magnitude(self) -> float: return math.sqrt...
[ "1397804+coocos@users.noreply.github.com" ]
1397804+coocos@users.noreply.github.com
79d48b5b3b7802cf3f16695c1e1eb033614e040c
f3604d4f8cc7b5ca98ecc44fb201f8424051b277
/food/apps.py
fb748fcad20f35fccf41254a4654a6c2c11195f1
[]
no_license
xa807/swiper
163749e76015332194bbd490e906e0c84272f838
e4919fa2c40fa8cda41fc60b802603a52b9d275c
refs/heads/master
2022-12-09T23:16:17.962990
2019-05-27T08:45:52
2019-05-27T08:45:52
187,580,187
1
1
null
2022-12-08T05:10:20
2019-05-20T06:27:28
Python
UTF-8
Python
false
false
84
py
from django.apps import AppConfig class FoodsConfig(AppConfig): name = 'food'
[ "610039018@qq.com" ]
610039018@qq.com
d756cb6eca665ddf4f516354339327b349d44b4b
d93159d0784fc489a5066d3ee592e6c9563b228b
/CondTools/Ecal/python/copyTrivialEnergyCorrection_cfg.py
1cebaa2399c865ff5eb26290c0f0ae75d66d3b45
[]
permissive
simonecid/cmssw
86396e31d41a003a179690f8c322e82e250e33b2
2559fdc9545b2c7e337f5113b231025106dd22ab
refs/heads/CAallInOne_81X
2021-08-15T23:25:02.901905
2016-09-13T08:10:20
2016-09-13T08:53:42
176,462,898
0
1
Apache-2.0
2019-03-19T08:30:28
2019-03-19T08:30:24
null
UTF-8
Python
false
false
1,406
py
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi") process.load("CondCore.DBCommon.CondDBCommon_cfi") process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL' process.CondDBCommon.DBParameters.au...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
e7d5f7407a6637cebc153ce97207b54d0cacd705
02177e96911a1bbd5276461baf430ddddcf30c74
/996A/hit_the_lottery.py
a78d922d821d61ddffc57b3969556614e5595b00
[]
no_license
NiltonGMJunior/codeforces-problem-set
e19e96ba52741de5336499e599e7fc0ec686e199
5c60e048fdce58d474c1d89d07cd59ac4e1465f5
refs/heads/master
2020-04-16T05:00:00.381320
2019-09-07T21:35:05
2019-09-07T21:35:05
165,289,321
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
# Codeforces # #996A - Hit the Lottery # http://codeforces.com/problemset/problem/996/A # 12/01/2019 # Nilton G. M. Junior if __name__ == '__main__': total_ammount = int(input()) num_bills = 0 for den in [100, 20, 10, 5, 1]: num_bills_den = total_ammount // den num_bills += ...
[ "nilton.junior51@hotmail.com" ]
nilton.junior51@hotmail.com
720c562f4c170ed4e9a1c811a5710761329e2264
847f94217951a3afc98b22317662c34c6063e762
/flaskr/__init__.py
2f1f233cb03b5135293e10a75b2354e1d42b3dc6
[]
no_license
tashakim/puzzles_python
abf8c4cca4046e3ab611cab2efd33265ece4e954
95a86cbbca28d0c0f6d72d28a2f1cb5a86327934
refs/heads/master
2023-08-30T19:28:55.134966
2021-11-04T03:50:04
2021-11-04T03:50:04
247,339,457
8
1
null
2021-06-11T03:38:40
2020-03-14T19:22:38
Python
UTF-8
Python
false
false
754
py
import os from flask import Flask def create_app(test_config=None): # create and configure the app app = Flask(__name__, instance_relative_config=True) app.config.from_mapping( SECRET_KEY='dev', DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'), ) if test_config is None: ...
[ "jae_young_kim@brown.edu" ]
jae_young_kim@brown.edu
b2813b3bc2ab1d204b62a8be8a3445bc973aa0ae
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/barpolar/_hovertemplate.py
04413e766d462aea836882dc10f7ce9afe923870
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
466
py
import _plotly_utils.basevalidators class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="hovertemplate", parent_name="barpolar", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=pare...
[ "noreply@github.com" ]
hugovk.noreply@github.com
ee528a0bef7b7308249eacb4a547c013c57d690d
13ee5c16660e1c283f979cb71d8cdb29dffa2c05
/tests/layer_graphics_tests.py
53196b400c9b638c42eb98d14ea615c3f570050a
[]
no_license
dclegalhackers/regulations-parser
908ac4814b78fff2461be4f8ea4b8635aff4677a
f894d60b00f1eec34b9149f0f9e04b4bd064369d
refs/heads/master
2021-01-14T08:36:43.901877
2013-10-22T14:19:42
2013-10-22T14:19:42
13,815,788
2
0
null
null
null
null
UTF-8
Python
false
false
2,117
py
from unittest import TestCase from regparser.layer.graphics import Graphics from regparser.tree.struct import Node import settings class LayerGraphicsTest(TestCase): def setUp(self): self.overrides = settings.IMAGE_OVERRIDES self.default_url = settings.DEFAULT_IMAGE_URL def tearDown(self): ...
[ "cm.lubinski@gmail.com" ]
cm.lubinski@gmail.com
962de556980b0d5814bce47272c7be489cb55bc6
d659810b24ebc6ae29a4d7fbb3b82294c860633a
/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeCapacityReservationsRequest.py
ef4b0793a5759384c564516721e639de5fe63c63
[ "Apache-2.0" ]
permissive
leafcoder/aliyun-openapi-python-sdk
3dd874e620715173b6ccf7c34646d5cb8268da45
26b441ab37a5cda804de475fd5284bab699443f1
refs/heads/master
2023-07-31T23:22:35.642837
2021-09-17T07:49:51
2021-09-17T07:49:51
407,727,896
0
0
NOASSERTION
2021-09-18T01:56:10
2021-09-18T01:56:09
null
UTF-8
Python
false
false
4,106
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
6bb75072b42b004a52bee9e5c2ddecf0c724d9e2
f72c9e46af5ce5ac738693daf65e67a0962a229a
/sdk/lusid/models/bond_default_event_all_of.py
6b003df769a000e4390f833ed63e9d9838d356ec
[ "MIT" ]
permissive
finbourne/lusid-sdk-python
db8ce602f8408169f6583783c80ebbef83c77807
32fedc00ce5a37a6fe3bd9b9962570a8a9348e48
refs/heads/master
2023-08-29T18:22:49.488811
2023-08-29T15:57:26
2023-08-29T15:57:26
125,082,278
11
11
NOASSERTION
2023-04-28T07:16:48
2018-03-13T16:31:54
Python
UTF-8
Python
false
false
14,979
py
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 1.0.463 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getful...
[ "concourse@finbourne.com" ]
concourse@finbourne.com
c62c4818039e0ba44833ad05a6e2ecbc19473bbd
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/insights/v20191101preview/get_data_collection_rule_association.py
0fece16bcbc2b8e07ae2ed97bcaba0458fbef393
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,144
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
929e826e7e9ea4a96b8202ea0f0403f1b59ac3a7
31e0b85866c73adef7ad28dfee475926df7f5bae
/hokusai/commands/logs.py
c5d3f0e0953022c3cc4252a4e2a10cc71cf0f2ce
[ "MIT" ]
permissive
ansor4/hokusai
5c3fca7a5b827e3b71c618d3a2745fa1edbd21db
211d9b78c7c1f00e1ce342dbf075df35487ea1d6
refs/heads/master
2022-02-17T01:04:23.040705
2019-08-16T13:45:21
2019-08-16T13:45:21
155,450,130
0
0
MIT
2018-10-30T20:14:29
2018-10-30T20:14:28
null
UTF-8
Python
false
false
1,322
py
from hokusai.lib.command import command from hokusai.lib.config import config from hokusai.lib.common import shout, shout_concurrent from hokusai.services.kubectl import Kubectl from hokusai.lib.exceptions import HokusaiError @command() def logs(context, timestamps, follow, tail, previous, labels, namespace=None): k...
[ "isac.petruzzi@gmail.com" ]
isac.petruzzi@gmail.com
69e5c4af87f2c4078d67e5af99228f04b2395aa7
f0858aae73097c49e995ff3526a91879354d1424
/nova/virt/libvirt/imagecache.py
48cd8868b6a66e23549d1f6dcebcd51eef5da122
[ "Apache-2.0" ]
permissive
bopopescu/nested_quota_final
7a13f7c95e9580909d91db83c46092148ba1403b
7c3454883de9f5368fa943924540eebe157a319d
refs/heads/master
2022-11-20T16:14:28.508150
2015-02-16T17:47:59
2015-02-16T17:47:59
282,100,691
0
0
Apache-2.0
2020-07-24T02:14:02
2020-07-24T02:14:02
null
UTF-8
Python
false
false
26,251
py
# Copyright 2012 Michael Still and Canonical Inc # All Rights Reserved. # # 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 # # ...
[ "sajeesh@cern.ch" ]
sajeesh@cern.ch
a2036393225b3116c5a6a9f9579607d2766cb5a2
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4347/codes/1649_1054.py
8ac187ab34b5bc2ad22c4489bdfc1f8d83142399
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
372
py
# Teste seu código aos poucos. # Não teste tudo no final, pois fica mais difícil de identificar erros. # Use as mensagens de erro para corrigir seu código. x = float(input("digite coordena x:")) y = float(input("digite coordena y:")) reta = 2*x+y if reta == 3: mensagem = "ponto pertence a reta" else: mensagem = "pon...
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
60190e1ec70ac7b4e852ee5af198d8812932b3b5
9345a46730fce150148cea7cd3f2dd78a337057a
/pyb_web/settings/development.py
6cb000edff717e359628a428524bf0baef702590
[]
no_license
PYBPYB/pyb_web
a3c8dd3be62e02e9f689e6d018f12e8ec6fafe60
d83c89a79c959b00aac0d18e43ab3c09e479a4e5
refs/heads/master
2022-12-11T09:11:55.795194
2019-05-31T14:54:48
2019-05-31T14:54:48
182,220,789
1
0
null
2022-12-08T05:11:59
2019-04-19T07:20:42
JavaScript
UTF-8
Python
false
false
2,153
py
""" 开发环境,配置文件 """ """ Django settings for dailyfresh project. Generated by 'django-webmaster startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/...
[ "you@example.com" ]
you@example.com
5db99c26cda8de5ddca15df02df1e1e44de7a5c5
01175abc7d44d788a322ad2c6cdc7ea5daee4165
/vistrails_current/vistrails/db/versions/v1_0_2/persistence/xml/xml_dao.py
c7a78cacc55825b1bc5f4d11b5014f23d1d83cb3
[ "BSD-3-Clause" ]
permissive
lumig242/VisTrailsRecommendation
917c53fbd940b3075e629d15ed41725c01db6ce3
23ef56ec24b85c82416e1437a08381635328abe5
refs/heads/master
2020-04-11T01:20:50.193303
2016-01-20T23:30:10
2016-01-20T23:30:10
50,065,923
3
0
null
2016-01-20T22:49:17
2016-01-20T22:49:17
null
UTF-8
Python
false
false
3,492
py
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
[ "you@example.com" ]
you@example.com
dbf3188c9642bba814a6a43cf1cee41576b45138
186a60582ff2513a3906a0df479c5d1c542ce02e
/Tkinter_video_thread/main.py
d0fb31d67028e69f9b218e49793c938c24da4136
[]
no_license
ss820938ss/pythonProject
1c86866a44e4d9948a86e96096fde6d7f629cf98
237cb3c74ff193557addcf5bb43af4b87cb8df4e
refs/heads/master
2023-06-23T05:55:45.856598
2021-07-23T07:48:37
2021-07-23T07:48:37
388,368,723
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
import time import tkinter import cv2 import PIL.Image, PIL.ImageTk from Tkinter_video_thread.tk_Camera import * from tk_Camera import * class App: def __init__(self, window, window_title, video_sources): self.window = window self.window.title(window_title) self.vids = [] for sou...
[ "ss820938ss@gmail.com" ]
ss820938ss@gmail.com
65c2ea46325bb09ce43a123db05c7792f9d70d7b
94a2c4417c1fdd8577a75b09a17912ebae129e6c
/test/test_reduced.py
5ad8d13c38a6656616a1e1136390faf595fd4142
[ "MIT" ]
permissive
slavaGanzin/ramda.py
ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8
634bfbe0dcb300315ded327756cb3e33241589b8
refs/heads/master
2023-01-23T04:43:48.485314
2023-01-06T10:11:53
2023-01-06T10:11:53
142,413,822
68
7
MIT
2021-12-22T13:59:56
2018-07-26T08:43:31
Python
UTF-8
Python
false
false
252
py
from ramda import * from ramda.private.asserts import * def reducer(acc, item): if item > 3: return reduced(acc) acc.append(item) return acc def test_reduced(): assert_equal(reduce(reducer, [], [1, 2, 3, 4, 5]), [1, 2, 3])
[ "slava.ganzin@gmail.com" ]
slava.ganzin@gmail.com
83a234b9220c75b8272f8f057d033ab66fa3a102
ee2af8c0fdc65f44ed9a4295806d75fb09257b58
/arian/report_structure_module/model.py
2372059eaeece0119f0996a90379a830c08d46d8
[]
no_license
sc4you/odoo-project
02b81ff4920a69d3e79c5dcc605a794779c5a77c
2ef439ef54f1165c3569a1047cd5cb6a0b50572e
refs/heads/master
2020-03-21T13:34:52.555402
2018-03-19T12:26:39
2018-03-19T12:26:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,803
py
# -*- coding: utf-8 -*- from odoo import models, fields, api from odoo.exceptions import UserError class ecube_report_structure(models.Model): _name = 'ecube.report.structure' _rec_name = 'name' name = fields.Char(string="Name") description = fields.Selection([ ('balance_sheet', 'Balance Sheet...
[ "ta.awaisajaz@gmail.com" ]
ta.awaisajaz@gmail.com
bd21db95e08e101a6653d00809deddc09f5fb02e
9f9a8ab48c8146a67258dd16cd65f3632551bc06
/CS585/code/NaiveBayes.py
3112186bfebf07e430d85a9ad190828a1d69bf05
[ "Unlicense" ]
permissive
Swapnil2095/Machine-Learning
795846298e5eb3db2042306a74316a337940fd4c
970faf77eac86f4f8680986fc6afec4558cccdfe
refs/heads/master
2022-01-05T18:42:12.835396
2019-05-25T18:35:34
2019-05-25T18:35:34
103,499,039
2
5
null
null
null
null
UTF-8
Python
false
false
12,384
py
import sys from scipy.sparse import csr_matrix import numpy as np from Eval import Eval from math import log, exp import time from imdb import IMDBdata import os #import pickle #from decimal import Decimal import pandas as pd import matplotlib.pyplot as plt from collections import defaultdict class NaiveBayes: de...
[ "swapnilgaikwad7291@gmail.com" ]
swapnilgaikwad7291@gmail.com
2d0e8b6d5e3d784a0664a4d95acc016d4c741bfc
7ec04fc867d0a48fffc05c65bff9217cfe211fe7
/文件操作/03BytesMode.py
e35147b7e1b633bc086e6edc499c6178d4ac0c83
[]
no_license
Cherry93/pythonPractic
3b9d1f99803503073bbb2f3a58009665338bd278
2889183af6c9a01ab47895b23e2d6ce8c288fd4d
refs/heads/master
2021-08-31T16:41:56.655989
2017-12-22T03:53:18
2017-12-22T03:53:18
115,008,198
0
0
null
null
null
null
UTF-8
Python
false
false
62,480
py
''' 字节读写模式 ''' # 字节只读模式 def readByes(): file = open("./doc/meinvb.jpg", mode="rb") print(file.read()) file.close() # 字节覆写模式 def writeBytes(): file = open("./doc/mymeinv.jpg", mode="wb") file.write( b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x01\x00d\x00d\x00\x00\xff\xdb\x00C\x00\x02\x01\x0...
[ "358544104@qq.com" ]
358544104@qq.com
2690e60d2861f63f8b2327530ccb2b2dcb8b501e
4c852fab792606580acb3f3a61b7f86ae25930b0
/Python/PythonHardway/ex12.py
3ceec886801ee530d5b8d46c44e9610f98f2c3e0
[]
no_license
hmchen47/Programming
a9767a78a35c0844a1366391f48b205ff1588591
9637e586eee5c3c751c96bfc5bc1d098ea5b331c
refs/heads/master
2022-05-01T01:57:46.573136
2021-08-09T04:29:40
2021-08-09T04:29:40
118,053,509
2
1
null
2021-09-20T19:54:02
2018-01-19T00:06:04
Python
UTF-8
Python
false
false
721
py
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ # Exercise 12: Prompting People age = input("How old are you? ") height = input("How tall are you? ") weight = input("How much do you weight? ") print("So, you're %r old, %r tall, and %r heavy." % (age, height, weight)) """ Study Drills 1. In Terminal where you normal...
[ "h.m.chen@ieee.org" ]
h.m.chen@ieee.org
6b3af548daf2ee2d7968d5c2fa4e29f543971d4f
c174904e6fa8e663c5004037241947cf0933e516
/client/generated/python/test/test_rolecontroller_api.py
13d52bba906f0a7b5148d499f475f909eaa9fbb3
[]
no_license
roscopecoltran/admin-on-rest-server
8129033bd84e347140868074a26920ec9f887681
b6071340bf0bd92a07afe12f391675889ac26c4a
refs/heads/master
2021-08-26T09:12:52.583930
2017-11-22T19:44:42
2017-11-22T19:44:42
111,548,369
2
1
null
null
null
null
UTF-8
Python
false
false
1,303
py
# coding: utf-8 """ DataHive RESTful APIs No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os impor...
[ "rosco_pecoltran@msn.com" ]
rosco_pecoltran@msn.com
18ea1dd4ff74f659d9a4d674bd4519502ec97c88
71b31fd6d75705b0294c154917ba6ea1c1491340
/AR_SelectDeepest.py
b179157f5e33a0d43c8c8ea9f4501b6b68e660aa
[]
no_license
zpfz/cinema4d-scripts
b429713d438e70578cb74766e3d6044bc2f73f84
19bedf12c08118a64425a19a2e7cc3de8585cce3
refs/heads/master
2020-07-15T06:19:48.471916
2019-08-23T15:30:03
2019-08-23T15:30:03
205,499,046
1
0
null
2019-08-31T05:16:51
2019-08-31T05:16:51
null
UTF-8
Python
false
false
6,193
py
""" AR_SelectDeepest Author: Arttu Rautio (aturtur) Website: http://aturtur.com/ Name-US: AR_SelectDeepest Description-US: Select deepest children of selected object(s) Written for Maxon Cinema 4D R20.057 """ # Libraries import c4d # Global variables hierarchy = {} # Initialize hierarchy dictionary level = 0 # Initi...
[ "rautio.arttu@gmail.com" ]
rautio.arttu@gmail.com
6b7c0310a1555c20b1b8ef2d5e6ba0e5d0ec0bab
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_boardrooms.py
71674c213ebed066590e3c15a7334100e0f90555
[ "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
259
py
from xai.brain.wordbase.nouns._boardroom import _BOARDROOM #calss header class _BOARDROOMS(_BOARDROOM, ): def __init__(self,): _BOARDROOM.__init__(self) self.name = "BOARDROOMS" self.specie = 'nouns' self.basic = "boardroom" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
76810c1cf0f554d65c0a36c99c2b827d7a631d2a
6761d2757f371e4705ce15812ad62332b6d207cc
/AM3_MiniImageNet/Dataset.py
ef5f965ebe337842cce2a91d3ec8a3e794e75726
[]
no_license
brycexu/Few-Shot-Networks
ed6812d4faf09ed38f4ba6d185fba6512234743f
6f84fe0489c16279821568c167d66c97e8a5697d
refs/heads/master
2023-04-07T12:36:50.904971
2023-04-04T02:23:51
2023-04-04T02:23:51
232,059,201
1
0
null
null
null
null
UTF-8
Python
false
false
1,967
py
# Author : Bryce Xu # Time : 2019/12/17 # Function: import torch.utils.data as data from torchvision import transforms from PIL import Image import os from WordEmbedding import load_model, load_embeddings class MiniImageNetDataset(data.Dataset): def __init__(self, mode, data_root, label_root, wmodel_root): ...
[ "XuXianda@Bryce-Xus-Mac-Pro.local" ]
XuXianda@Bryce-Xus-Mac-Pro.local
86cc3f27f43dd335eeba11732c329ab7354a2751
8bbb2cd199a76de35e383b09702d690a4dea1d9a
/ml/m07_boston.py
6f1127caec214e4b0c66081fc7fd35b28e0aae65
[]
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,652
py
import numpy as np from sklearn.datasets import load_iris, load_diabetes, load_boston from sklearn.preprocessing import StandardScaler, MinMaxScaler, RobustScaler from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score, r2_score from sklearn.svm import LinearSVC, SVC from...
[ "noreply@github.com" ]
wowodo.noreply@github.com
c5276013ca2800610c0f51f6dc107ebfbb67021d
efb1aaf25f2c431112ad81fa833312950c733227
/mail/tests/test_view.py
51cd5ae598e02fee14d5254a4fa845f72b307241
[ "MIT" ]
permissive
p2pu/mechanical-mooc
ce1af83bf2f27867cfa38de1560479ea7cf0722e
73882191049d8a4f5c9ebce2e547dc74390f5b1c
refs/heads/master
2023-07-08T07:19:24.001307
2023-06-21T13:29:54
2023-06-21T13:29:54
8,266,935
12
8
null
2014-11-03T14:25:02
2013-02-18T11:12:52
CSS
UTF-8
Python
false
false
5,376
py
from django.test import TestCase from django.test.client import Client from django.contrib.auth.models import User from mock import patch import math import datetime class ViewTest(TestCase): SIGNUP_DATA = { 'email': 'dirk@mail.com', 'timezone': 'Africa/Johannesburg', 'groupRadios': 'tru...
[ "dirkcuys@gmail.com" ]
dirkcuys@gmail.com
3c350128af0b8d07494dfe06a20e0256e810a058
9df795e57589a99838199f97945e96811e288e75
/W1E3.py
0d3a9f77161c77dcbc14023197d941c1dc66d16d
[]
no_license
JakeAttard/2810ICTPythonExercises
945783908a6bf981fc8128a5fc0b4bda6fd52eea
199cc42402a5cf4d8b86060af377d3906af00429
refs/heads/master
2020-06-17T19:07:46.788283
2019-07-16T11:22:15
2019-07-16T11:22:15
196,018,674
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
from PyTest import * ##//////////////////////////// PROBLEM STATEMENT ////////////////////////////// ## Given a list of ints, print a list with the elements "rotated left" // ## so 1, 2, 3 yields 2, 3, 1. // ## 1, 2, 3 - > 2, 3, 1 ...
[ "jakeattard18@gmail.com" ]
jakeattard18@gmail.com
1d5d1b845b72cd8889c1a8e88c28dc29fac84e23
df86df4f959b6fbc541a40050beec3d55c1a5d6b
/tests/runner_test.py
b91fd3dfaea445c17403b7d7d582de90feaae540
[ "Apache-2.0" ]
permissive
qitaosp/httprunner
fe63206784645fc6f82fcf00f8479bbae93eee4f
0c165d7148256219d3e9e4690af0b67e61d8e878
refs/heads/master
2022-10-27T05:19:21.957462
2020-06-18T03:06:58
2020-06-18T03:06:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
import os import unittest from httprunner import loader from httprunner.cli import main_run from httprunner.runner import HttpRunner class TestHttpRunner(unittest.TestCase): def setUp(self): loader.project_meta = None self.runner = HttpRunner() def test_run_testcase_by_path_request_only(self...
[ "mail@debugtalk.com" ]
mail@debugtalk.com
5d3237a5900512f119a00a5a26d4b43f5d641c15
b0e8b331282eb76f8e4fa35f8c86130038bd10de
/test/test_Counting.py
f7fbc550e5160a42d05113b1f95ced3cb150b557
[]
no_license
tainenko/gliacloud
38531438f4c32309a0d4ef6a080d5290541a8b73
ec8c87bc4c3ddaf43d069d46381aef98af7ba5d3
refs/heads/master
2022-12-10T03:05:15.365915
2019-06-11T03:56:49
2019-06-11T03:56:49
176,190,735
0
0
null
2022-12-08T04:53:27
2019-03-18T02:31:12
Python
UTF-8
Python
false
false
982
py
from part1.Counting import * class TestCounting: def test_get_filename(self): url="http://www.google.com/a.txt" assert get_file_name(url) == 'a.txt' def test_count_the_files(self): urls=urls = [ "http://www.google.com/a.txt", "http://www.google.com.tw/a.txt", ...
[ "tainenko@gmail.com" ]
tainenko@gmail.com
4e94bee53db5fab4823390ff7bfa4d24158a02ed
59107025a7f9afe0f94d194d547d0354e11ff6e7
/Bootcamp_2020/files_and_functions/challenges/4.5.6/5.py
4b1c5337bb85a46fde3b16e04435468fc3bdee6b
[ "MIT" ]
permissive
samirsaravia/Python_101
083856643a5ca132f7126bb9a6b51b3805ba6bbe
0c45f11d74a356514a0c436ade6af4c0f67c56b7
refs/heads/master
2022-12-19T16:12:20.751592
2020-10-19T12:30:18
2020-10-19T12:30:18
251,749,435
0
0
MIT
2020-10-19T12:45:40
2020-03-31T21:42:36
Python
UTF-8
Python
false
false
626
py
""" Question 5 Write some code that requests the user to input another capital city. Add that city to the cities in capitals. Then print the file to the screen. """ user_input = input('Add a city (capital) >>> ').strip().capitalize() while user_input.capitalize().isdigit() or user_input == '': print('There is an e...
[ "samir.saravia.10@gmail.com" ]
samir.saravia.10@gmail.com
571159fec161c32c29dfd4656061e8287fadbaa7
037a03d4b8b81bc39dc41cb4f3726f8297c8b672
/0724.py
5ed40a3f4d9e82f9f75e41aa7da44dc80cec4dc9
[]
no_license
Agchai52/Leetcode1
ee3433ef6f6c3ddd800204c25a456dc7c3fd0053
9535d038bee690b7c7aeca352a4ab32d188684bb
refs/heads/master
2021-08-22T02:59:45.632548
2020-05-21T00:31:45
2020-05-21T00:31:45
185,273,962
1
0
null
null
null
null
UTF-8
Python
false
false
962
py
class Solution(object): def pivotIndex(self, nums): """ :type nums: List[int] :rtype: int """ # Method 1: scan twice T = O(n), S = O(n) ''' if not nums: return -1 left_sum = [0]*len(nums) right_sum = [0]*len(nums) n = ...
[ "noreply@github.com" ]
Agchai52.noreply@github.com
3a1c63da82251e68c9d9aece92826fa84191321b
9ca9cad46f2358717394f39e2cfac2af4a2f5aca
/Week02/Main_HW/List Comprehensions/List Comprehensions_LGY.py
03193421d8e495958b13ed28e522a7c816ab6324
[]
no_license
Artinto/Python_and_AI_Study
ddfd165d1598914e99a125c3019a740a7791f6f6
953ff3780287825afe9ed5f9b45017359707d07a
refs/heads/main
2023-05-05T15:42:25.963855
2021-05-24T12:24:31
2021-05-24T12:24:31
325,218,591
1
3
null
null
null
null
UTF-8
Python
false
false
337
py
if __name__ == '__main__': x = int(input()) y = int(input()) z = int(input()) n = int(input()) ans = [] for i in range(x+1): # 0~x까지 for j in range(y+1): # 0~y까지 for k in range(z+1): # 0~z까지 if i+j+k != n : ans.append([i,j,k]) print(a...
[ "noreply@github.com" ]
Artinto.noreply@github.com
dc8115c31546ed1dd5343ba708065612f47d913f
bf76d5f7380b0cc004f3b7a5f657bd59fdadecda
/poll/admin.py
b73cc0d4fe611935d48833832281b3106274af1d
[]
no_license
rahulsayon/RahulEMSS
ff0f3214d64606edddad9a9382b12f929a9fede8
0af3e9e03812ecc640a0e80c51784bbaac044b2d
refs/heads/master
2022-11-23T18:25:03.492580
2020-07-19T14:32:19
2020-07-19T14:32:19
280,879,183
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
from django.contrib import admin # Register your models here. from poll.models import * admin.site.register(Question) admin.site.register(Choice) admin.site.register(Answer)
[ "rahulsayon95@gmail.com" ]
rahulsayon95@gmail.com
db38461f1753bf9f61c8b84b77eabb0be045020c
50fad8d2165cce08ea801028ac1338c5ac6dd18d
/src/bgframework/settings.py
62abd31d1a59c277a149edeb2161e5ccffc3b27c
[ "Apache-2.0" ]
permissive
tkliuxing/bgframework
32407fdfbe70069aa8fb214ed7413080ea2e2cd0
c32c609aa49688875ce9f9db11e83655f7258a42
refs/heads/master
2020-12-25T15:08:23.374751
2018-01-10T09:35:15
2018-01-10T09:35:15
62,381,524
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
APP_NAME = 'BGframework' AUTHOR = 'Ronald White' CAN_SIGNUP = False CAN_RESET_PASSWORD = False
[ "ouyanghongyu@gmail.com" ]
ouyanghongyu@gmail.com
c7c3c38aae88110afe26d8873a32255e22b3248d
1edd9cbee99dcd2c25ae719ac4bb41f1e381e391
/tutorial/3 - Trajectory Optimization and Optimal Control/1 - Block Move.py
8330e5bc62dc82bc225fdf9171815be1dabd4f5c
[ "MIT" ]
permissive
xiaoyaoyth/AeroSandbox
629c9ac95df06812246102a75bc050dd99c25bea
b2055cea72778ae0e33112e93e7aa0451d44d840
refs/heads/master
2023-03-07T15:11:11.106062
2021-02-13T04:24:52
2021-02-13T04:24:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,450
py
import aerosandbox as asb import aerosandbox.numpy as np n_timesteps = 301 mass_block = 1 opti = asb.Opti() time = np.cosspace(0, 1, n_timesteps) position = opti.variable( init_guess=np.linspace(0, 1, n_timesteps) ) velocity = opti.derivative_of( position, with_respect_to=time, derivative_init_gues...
[ "peterdsharpe@gmail.com" ]
peterdsharpe@gmail.com
2fae01807dc712213e6d09c45dd84d7a9c2f2c81
58306311bfca56105be2f9a1738bceb9a98d6250
/pyradar/Chapter07/rectangular_plate_example.py
d0df50dd4f2e7da2d673821328772e73e6f77774
[]
no_license
markuskreitzer/RADARBookSoftware
62b42b71c1778cf6ee119d12a518f652eca3f44d
97b7086897d5bb5fdb8f06252b55b9da76186466
refs/heads/master
2023-09-01T20:30:33.792319
2021-10-30T12:24:52
2021-10-30T12:24:52
355,154,984
1
0
null
null
null
null
UTF-8
Python
false
false
3,738
py
""" Project: RadarBook File: rectangular_plate_example.py Created by: Lee A. Harrison On: 11/23/2018 Created with: PyCharm Copyright (C) 2019 Artech House (artech@artechhouse.com) This file is part of Introduction to Radar Using Python and MATLAB and can not be copied and/or distributed without the express permission ...
[ "pythonradarbook@gmail.com" ]
pythonradarbook@gmail.com
8069d3349003491b8a64eb247de3e3edf3a1860c
113d5a8590a578817e1cfdbebb24584931630e9a
/tikz/histogram-symbols/process.py
d65b1c484963db8f2b62413fbf79cb491de541a5
[ "MIT" ]
permissive
MartinThoma/LaTeX-examples
17f0d147269035b8e0e454964c76521cf26cf899
6d517700348d86e21c874c131582f0e74da342dc
refs/heads/master
2023-08-23T01:27:57.441809
2022-03-25T14:05:36
2022-03-25T14:05:36
5,351,405
1,492
452
MIT
2023-03-02T18:51:55
2012-08-09T05:02:14
TeX
UTF-8
Python
false
false
4,444
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import shutil import fileinput import math def main(filename, bins, maximum, yticks_number): with open(filename) as f: content = f.read().split("\n") numbers = [] for line in content: line = line.strip() ...
[ "info@martin-thoma.de" ]
info@martin-thoma.de
fc29f750a1607e00d882a58788e307d5d07c6383
3a570384a3fa9c4c7979d33b182556e1c637e9eb
/anw/Packages/anw/client/game.py
b8114603d9f283fae07a9ad6c66b14bf5d223cc0
[]
no_license
colshag/ANW
56a028af5042db92b5ead641dc542fcb4533344e
46948d8d18a0639185dd4ffcffde126914991553
refs/heads/master
2020-03-27T00:22:49.409109
2018-10-27T06:37:04
2018-10-27T06:37:04
145,618,125
2
0
null
null
null
null
UTF-8
Python
false
false
15,299
py
# --------------------------------------------------------------------------- # Cosmica - All rights reserved by NeuroJump Trademark 2018 # game.py # Written by Chris Lewis # --------------------------------------------------------------------------- # This is representation of one game of ANW # -----------------------...
[ "colshag@gmail.com" ]
colshag@gmail.com
9888bad65b978339a79db5fbdf8ddbe2e8e557b8
76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a
/tags/release-0.7.1/pyformex/gui/image.py
dbad29743d220f66dbcda3736287d9b544ebc0d0
[]
no_license
BackupTheBerlios/pyformex-svn
ec2361b1b9967918be65e892217a691a6f8b145d
f5404809095711334bbb938d9d119a69ad8fc260
refs/heads/master
2020-12-24T13:20:47.422165
2011-11-15T11:52:23
2011-11-15T11:52:23
40,749,266
0
0
null
null
null
null
UTF-8
Python
false
false
13,226
py
#!/usr/bin/env python # $Id$ ## ## This file is part of pyFormex 0.7.1 Release Sat May 24 13:26:21 2008 ## pyFormex is a Python implementation of Formex algebra ## Website: http://pyformex.berlios.de/ ## Copyright (C) Benedict Verhegghe (benedict.verhegghe@ugent.be) ## ## This program is distributed under the GNU Gene...
[ "bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35" ]
bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35
1c9fdc87040b028ad92bdfc0b91962e0f1ec78b1
89213af925471c5954a12d0fe5bb47dfd988c351
/sorting/1451_rearrange_words_in_sentence.py
0d1c51c07086e79393acf9d31cde39babc1b1cba
[]
no_license
seanchen513/leetcode
be554dd668221b6d03c598090d6684165bc512c5
4723a64b00502c824bb9b848a1737478096aa3e1
refs/heads/master
2021-11-10T11:50:16.674255
2021-11-10T02:57:02
2021-11-10T02:57:02
237,393,266
1
0
null
null
null
null
UTF-8
Python
false
false
1,568
py
""" 1451. Rearrange Words in a Sentence Medium Given a sentence text (A sentence is a string of space-separated words) in the following format: First letter is in upper case. Each word in text are separated by a single space. Your task is to rearrange the words in text such that all words are rearranged in a...
[ "seanchen513@gmail.com" ]
seanchen513@gmail.com
abb9e4008eeba74e0a289c2f44741fdaad74edd4
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitVariableInPy36.py
253ec5b66438314715bb9e6428f1a078c8d963c6
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
126
py
<warning descr="Python versions 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 do not allow 'async' and 'await' as names">await</warning> = 1
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
3a6248f805f3a3fd37ff8639273c60969040f18c
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/2.1.1/_downloads/lasso_demo.py
24f13f43c4d2b5ef9d3e6249b30a624c6dfecc40
[]
no_license
matplotlib/matplotlib.github.com
ef5d23a5bf77cb5af675f1a8273d641e410b2560
2a60d39490941a524e5385670d488c86083a032c
refs/heads/main
2023-08-16T18:46:58.934777
2023-08-10T05:07:57
2023-08-10T05:08:30
1,385,150
25
59
null
2023-08-30T15:59:50
2011-02-19T03:27:35
null
UTF-8
Python
false
false
2,485
py
""" ========== Lasso Demo ========== Show how to use a lasso to select a set of points and get the indices of the selected points. A callback is used to change the color of the selected points This is currently a proof-of-concept implementation (though it is usable as is). There will be some refinement of the API. ...
[ "quantum.analyst@gmail.com" ]
quantum.analyst@gmail.com
09b8a6103d788657348a77ff3fb57a75826e3092
b68e3b8485ea8bef9fc7b3cbf6baa98a51fa533f
/section5/lesson39.py
7ec740ee515109fa3ec88b3f27e73f774e19c691
[]
no_license
Naoya-abe/siliconvalley-python
7936b7e779072b23e16c9d50cca44c2e0bf6eb5f
8d226adaea839b64b1e5eb62985349b5bb2e1484
refs/heads/master
2021-05-20T14:40:47.682812
2020-04-27T02:02:43
2020-04-27T02:02:43
252,336,229
1
0
null
null
null
null
UTF-8
Python
false
false
302
py
# while文とcontinue文とbreak文 count = 0 while count < 5: print(count) count += 1 # break:while文を抜ける continue:whileの先頭に戻る count = 0 while True: if count > 5: break if count == 2: count += 1 continue print(count) count += 1
[ "n.abe@gemcook.com" ]
n.abe@gemcook.com
b7037b384ce86249a2bbc5b276bcfe9c6c331e30
ea676483bf5306b4bbcd22d1a96ece8f249d0fa8
/episkopos/security.py
7b6499b84bb4bee2c0a7a55a73d44ce9e0cf02b7
[ "BSD-3-Clause-Modification" ]
permissive
kagesenshi/episkopos
c318cf55f3048da554ea7bce6da59863570e1732
382cda0be08e9c9f7b25731d8565c3d733580007
refs/heads/master
2020-09-25T01:17:23.891996
2017-01-04T09:10:54
2017-01-04T09:10:54
67,351,116
0
1
null
2017-01-04T08:17:20
2016-09-04T14:56:56
Python
UTF-8
Python
false
false
1,635
py
from kotti.security import ( Principal, ROLES, SHARING_ROLES, set_roles, set_sharing_roles, set_user_management_roles, ) from kotti.resources import Document, File, Image from pyramid.i18n import TranslationStringFactory _ = TranslationStringFactory('episkopos') SITE_ACL = [ ['Allow', ...
[ "kagesenshi.87@gmail.com" ]
kagesenshi.87@gmail.com
58931112692de5e2af6595543974a9b3d4bb5263
a4a1844e65410be684f1b6a26bb1163c44ab5142
/e_commerce/product/urls.py
8a1a605cc39f75bc8c95d9e5e67c3dc211efda6e
[]
no_license
john19968010/e_comm
67514bc5f699015e65aeffefbdb08412fedacc64
7f3bc8e87c73ea2f7356844fa8bef472b09e14b3
refs/heads/master
2023-06-13T00:52:44.999273
2021-06-30T14:12:51
2021-06-30T14:12:51
368,870,716
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
from django.conf.urls import include from django.urls import path from rest_framework.routers import DefaultRouter from product.views import ProductViewSet router = DefaultRouter() router.register("product", ProductViewSet) urlpatterns = [ path("", include(router.urls)), ]
[ "root@localhost.localdomain" ]
root@localhost.localdomain
65b12500ba2f138f429a34d8d322732616c0165e
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/PhysicsAnalysis/DerivationFramework/DerivationFrameworkTop/python/TOPQCommonTruthTools.py
85a9f19b4545c837920d5cc11ae1297dda91a3be
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
19,052
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration #==================================================================== # Common file used for TOPQ truth tools / augmentation # Call with: # from DerivationFrameworkTop.TOPQCommonTruthTools import * # TOPQXSequence += TOPQCommonTruthKernel #===...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
63f49ae549d7bd9548b8c89db895bfd9c270d2a5
c53a71996a066795860bb7804a151f3523d5133d
/jbank/management/commands/parse_aeb43.py
8ae56356d2bbf511e39a7ca67a3f60df06fce252
[ "MIT" ]
permissive
kajala/django-jbank
3cf6a0aad7a76a8e545ed1251b4855a3e400a163
dd3a198f07380b10f2b4d35821bb754ed98e3896
refs/heads/develop
2023-08-31T16:12:18.370966
2023-08-27T04:25:38
2023-08-27T04:25:38
121,233,790
0
1
MIT
2023-08-22T21:01:19
2018-02-12T10:38:45
Python
UTF-8
Python
false
false
1,102
py
import logging import os from pprint import pprint from django.core.management.base import CommandParser from jbank.aeb43 import AEB43_STATEMENT_SUFFIXES, parse_aeb43_statements_from_file from jbank.files import list_dir_files from jbank.parsers import parse_filename_suffix from jutil.command import SafeCommand logger...
[ "kajala@gmail.com" ]
kajala@gmail.com
a1a82e944ba27d6535c0a5b1aa6b7847556c2eb4
caf2536359168f15cf1da4283a6c60ee0be5bb3e
/src/energy_agent.py
d11b6116e3d8227d4fe8710f86d7a87b8ff853ec
[]
no_license
CarsonScott/Dynamic-Evolving-Memory
e99ce1ce5a4ac19601686579fd85aa766a85967c
4f27eef1d5589d2a64b9f7479a40e8ac374fa85d
refs/heads/master
2020-03-27T22:54:33.483741
2018-10-08T20:56:53
2018-10-08T20:56:53
147,271,124
0
0
null
null
null
null
UTF-8
Python
false
false
2,089
py
from database import * def replace(expression, key, value): output=[] for i in range(len(expression)): data=expression[i] if isinstance(data, list): data=replace(data, key, value) elif data==key: data=value output.append(data) return output class EnergyAgent(Database): def __init__(self, filter, thr...
[ "carsonjscott14@gmail.com" ]
carsonjscott14@gmail.com
4ecdedcd0158b9a91d91d1a5b0684e5855983839
b3574fe2aa2a04046ccbfcd5c70beef28721ce45
/lib/surfwrap2/zio.py
e7d03355dd1659ea59b1febedb96f7d989a4e465
[]
no_license
HumanNeuroscienceLab/facemem
f323f5309d7058d1923e39fd80652d3e9791542d
853162d1b5da68d73b2553e0cd5a15fee35c4ff5
refs/heads/master
2020-05-29T11:56:22.957815
2015-07-16T22:19:25
2015-07-16T22:19:25
33,929,747
0
0
null
null
null
null
UTF-8
Python
false
false
6,102
py
#!/usr/bin/env python import os from os import path from tempfile import mktemp from subprocess import Popen, PIPE import gzip import numpy as np import nibabel as nib from nibabel.spatialimages import ImageFileError import logging logger = logging.getLogger('surfer') from surfer.io import read_scalar_data # THIS ...
[ "czarrar@gmail.com" ]
czarrar@gmail.com
44618b667a943a0981e77e8f1a326bda0fdd1665
b2780652e51d15d8b6ab43b25bcee6ad941096c7
/nlpaug/augmenter/char/random.py
025e81efa6182847d4b6c8da1bcf2c09b890d24f
[ "MIT" ]
permissive
pgsrv/nlpaug
e736ff928d022609870ff653b9467e53f7e07e53
092adb7346d5efdc49fc2e3b1e1e0f20ede09a4d
refs/heads/master
2022-04-23T14:05:52.130252
2020-04-14T04:00:20
2020-04-14T04:00:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,202
py
# Source: https://arxiv.org/pdf/1711.02173.pdf """ Augmenter that apply random character error to textual input. """ import string from nlpaug.augmenter.char import CharAugmenter from nlpaug.util import Action, Method, Doc class RandomCharAug(CharAugmenter): # https://arxiv.org/pdf/1711.02173.pdf """ ...
[ "makcedward@gmail.com" ]
makcedward@gmail.com
0c4d18602a04258d7c333a77c4143c62c93bb694
f0603d2a5b6251935e17e2e28bf80de2b3cfde3e
/scrapy_util/spiders/list_next_request_spider.py
84ea4a4e1cb971e6b2e05fa3d8a039851d437a73
[]
no_license
zanachka/scrapy-util
224ea5c551b406271e2c95a243aee4a202ff1a01
d42e55f38706f4c0846f5de7611b98bd59317fd7
refs/heads/master
2023-08-08T07:04:17.946656
2023-07-28T09:43:30
2023-07-28T09:43:30
365,201,304
0
0
null
2023-07-28T16:18:08
2021-05-07T10:44:56
null
UTF-8
Python
false
false
626
py
# -*- coding: utf-8 -*- from scrapy import Request from scrapy_util.spiders import ListSpider class ListNextRequestSpider(ListSpider): """ 翻页爬虫扩展,用于需要持续翻页的爬虫 """ def get_url(self, page): raise NotImplementedError def next_request(self, response=None): if response: nex...
[ "1940607002@qq.com" ]
1940607002@qq.com
a2e3f26f88ec975737843eca0a7552ae6b0d05b4
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1595491_1/Python/fabakio/b.py
06825be205553156595db0ae782487ead266c73e
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,024
py
import sys def main(): fp = open('B-large.in', 'r') fp.readline() n = 1 for line in fp.readlines(): result = 0 line = [int(x) for x in line.strip().split(' ')] #print line for x in line[3:]: ''' menor = (x - 2) / 3 #print x, menor, line[2], line[1], menor + 1 >= line[2] if menor + 1 >= line...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
df165db3afd09b29d8107d61be3c4dc620d9f23b
be3ad8712d398d2adb39c32104d9a90a4a62b7e8
/TOO_Obs/Old/update_pornum_poc_list.py
3b8fad40fc914a03789f5255c7cf41b378125a62
[]
no_license
tisobe/Usint
3c74059b3d7b813d162af1d1c1232d77ec0dd632
07bfd42767e9bfb56e7657e4ed6780bde296cfd4
refs/heads/master
2020-03-17T15:00:11.835862
2018-05-16T16:29:44
2018-05-16T16:29:44
133,694,486
0
0
null
null
null
null
UTF-8
Python
false
false
3,309
py
#!/usr/bin/env /proj/sot/ska/bin/python ############################################################################################# # # # update_pornum_poc_list.py: update propno_poc_list ...
[ "isobe@head.cfa.harvard.edu" ]
isobe@head.cfa.harvard.edu
3f99c9f85c37735d416df4ab92466e3e48b59c5c
3dcae0124ad17284be45874e751089ee6771af4d
/tensorflow_probability/python/experimental/distribute/sharded.py
5b2fd8ca9a3d3283f2e08a7db84c63f64847893b
[ "Apache-2.0" ]
permissive
emilyfertig/probability
a6f57648a74b6766f800d9495b04c84eef2f5c48
6bba47076ee5515c8d64bd940993308ee8b5660b
refs/heads/master
2022-12-15T16:12:10.572752
2022-12-05T17:45:47
2022-12-05T17:47:02
250,119,924
1
0
Apache-2.0
2020-03-26T00:07:15
2020-03-26T00:07:14
null
UTF-8
Python
false
false
7,733
py
# Copyright 2020 The TensorFlow Probability 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 applicable law o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
41fba79d9e543f47deaf8bf7cea1f0af6d24f885
06f7ffdae684ac3cc258c45c3daabce98243f64f
/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py
c4e5ff12a4f95f80e117553571555b6f8c447f1a
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
kenkuo/azure-devops-python-api
7dbfb35f1c9637c9db10207824dd535c4d6861e8
9ac38a97a06ee9e0ee56530de170154f6ed39c98
refs/heads/master
2020-04-03T17:47:29.526104
2018-10-25T17:46:09
2018-10-25T17:46:09
155,459,045
0
0
MIT
2018-10-30T21:32:43
2018-10-30T21:32:42
null
UTF-8
Python
false
false
1,798
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "tedchamb@microsoft.com" ]
tedchamb@microsoft.com
99b5d7edbc80df25b2f08cd03017900f5cf25588
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03030/s801229474.py
f026dcb06792bbbd5f5a01a7c896b43785bea275
[]
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
211
py
n = int(input()) lst = [] for i in range(n): s, p = input().split() p = int(p) lst.append((s, p, i+1)) lst_sorted = sorted(lst, key=lambda x: (x[0], -x[1], x[2])) for _, _, num in lst_sorted: print(num)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f3b116eb11279374ba754edf15ec972780055cc1
3ba99ec496ac5ae7bb937694b670841c501ca809
/Octagon-HD-Style-Black/usr/lib/enigma2/python/Components/Renderer/OE_XPiconOBl.py
778ac64c2fdd34e6cfdfc8d671347602d32b47c2
[]
no_license
stein17/Skins-for-openEight
50875269062cd59f3e2cf236d20cec92e895152d
25adaa0ef7e0cb700219ee56bd1b29a9e8144964
refs/heads/master
2020-03-29T05:19:07.998724
2017-06-17T23:20:17
2017-06-17T23:20:17
94,654,093
0
0
null
null
null
null
UTF-8
Python
false
false
2,479
py
## ## Picon renderer by Gruffy .. some speedups by Ghost ## XPicon mod by iMaxxx ## from Renderer import Renderer from enigma import ePixmap from enigma import iServiceInformation, iPlayableService, iPlayableServicePtr from Tools.Directories import fileExists, SCOPE_SKIN_IMAGE, SCOPE_CURRENT_SKIN, resolveFilename clas...
[ "lutz.f.kroll@gmail.com" ]
lutz.f.kroll@gmail.com
258b8f28c30fb452ca63aafa448e6683e0db4071
1515be3015ad988278d5a095416c0a0066a02757
/src/users/models/microsoftgraphimage_info.py
28a97b262ed508439a482ffbac98211b03fea814
[ "MIT" ]
permissive
peombwa/Sample-Graph-Python-Client
2ad494cc5b5fe026edd6ed7fee8cac2dd96aaa60
3396f531fbe6bb40a740767c4e31aee95a3b932e
refs/heads/master
2020-12-29T09:50:38.941350
2020-02-05T22:45:28
2020-02-05T22:45:28
238,561,578
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
[ "peombwa@microsoft.com" ]
peombwa@microsoft.com
bff58597b1502827ae2fa56a31dfcc12949cf101
67b62f49ff89982ef62ce5d5c68bc7655ededcee
/stone/class_parser.py
5d859cdd9f2432de8c8176ea125908a6b929bcb1
[]
no_license
planset/stone-py
0614737e59a14745019754c453f9b49e44f125cf
467617e201a3f4028f2fb23b2bc6ce3aaa371125
refs/heads/master
2016-09-06T18:36:49.564450
2012-12-31T12:57:06
2012-12-31T12:57:06
6,389,161
1
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
# -*- coding: utf-8 -*- from . import closure_parser from . import mytoken from .myast import cls import parser rule = parser.Parser.rule class ClassParser(closure_parser.ClosureParser): def __init__(self): super(ClassParser, self).__init__() self.__make_rule() self.postfix.inse...
[ "planset@gmail.com" ]
planset@gmail.com
353dadf66090dd6bbe101a3e8400e2e2af3e787c
3ac56be7af7b1d2ae865eeb051c2f1d517ae4507
/fibonacci.py
08aa1da9d4f00ab9c247423c32d6a8906cc52b1e
[]
no_license
jtreeves/python_recursion
88789ebedfe9f5c39c7d27dad43b4911fde59c1f
6e660eb39b5184d40d36bfc0e1031a6e3a0c2d2c
refs/heads/main
2023-02-16T01:23:55.326293
2021-01-08T22:50:51
2021-01-08T22:50:51
328,009,491
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
from functools import lru_cache @lru_cache(maxsize = 100) def fibonacci(n): if type(n) != int: raise TypeError('Input must be a positive integer') elif n < 1: raise ValueError('Input must be a positive integer') elif n == 1: return 1 elif n == 2: return 2 elif n > 2:...
[ "jackson.t.reeves@gmail.com" ]
jackson.t.reeves@gmail.com
2456b88b49216e9d5ce2c1f89b8520f5c6c2c642
fb15510f4e3576f02bb45d41eef67422d27b10e0
/gallery/tests.py
75320e6497d924cf221c980e1d3dede8c89e5fd5
[]
no_license
kevahere/galleria
9833a57535eba0a36b5daaed36f07e3a5dd73ab0
0ca59d31360c0cb6979751b94830940f5cf4f948
refs/heads/master
2020-04-04T09:40:02.943144
2018-11-12T09:41:10
2018-11-12T09:41:10
155,827,053
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
import datetime as dt from django.test import TestCase from .models import Editor,Image,tags #Tests for Images class ImageTestClass(TestCase): def setUp(self): #Creating a new tag and saving it self.new_tag = tags(name ='testing') self.new_tag.save() #Creating a new Image and sa...
[ "kevahere@gmail.com" ]
kevahere@gmail.com
78e1e5aaaacbb5cd3d15cc7f7c8d41ff528a2e7b
0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e
/regexlib/python_re2_test_file/regexlib_5275.py
2495159ad336c547a8843ccaec2690e78d64172e
[ "MIT" ]
permissive
agentjacker/ReDoS-Benchmarks
c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
refs/heads/main
2023-05-10T13:57:48.491045
2021-05-21T11:19:39
2021-05-21T11:19:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
# 5275 # ^([1-9]{1}(([0-9])?){2})+(,[0-9]{1}[0-9]{2})*$ # EXPONENT # nums:5 # EXPONENT AttackString:""+"1"*32+"!1 __EOA(iii)" import re2 as re from time import perf_counter regex = """^([1-9]{1}(([0-9])?){2})+(,[0-9]{1}[0-9]{2})*$""" REGEX = re.compile(regex) for i in range(0, 150000): ATTACK = "" + "1" * i * 1 +...
[ "liyt@ios.ac.cn" ]
liyt@ios.ac.cn
c804771644ddb3f5f0e23e9b1e06cd5ef2c20e03
f358ef78bfc42105317a044fbfc164fdc9a15067
/post.py
201c3e5d3db06660f9c79ee6329b0124868336a2
[]
no_license
ddayzzz/WebApp
2d79ceff0bf065b81c52e418221a376246c8ac8c
218b7f3931456e17d3d93709b8f20364362cc54f
refs/heads/master
2021-01-22T03:54:36.968897
2017-07-10T11:05:59
2017-07-10T11:05:59
92,415,430
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
# coding=utf-8 # POST发送请求 import json import requests login = {'username': 'shu'} url = 'http://localhost:9000/login' header = {'Content-Type': 'application/json'} r = requests.post(url, data=json.dumps(login), headers=header) print(r.status_code) print(r.content.decode('utf-8'))
[ "wangshu214@live.cn" ]
wangshu214@live.cn
208394bcfacacbcae2ce6959a892cb6db36481df
12f488b15c364ca530ef30732ecb94be6cf65ca9
/fuselage/tests/test_providers_git.py
e4190279879b6bd1452bcb9bf131fb2c61a80653
[]
no_license
mitchellrj/fuselage
efd965f1b1f13dca1cb2a74aadab8cfe31ba7c3d
9861ff68abeab94f56c23c06a3a85d00af5fe0ac
refs/heads/master
2021-01-18T18:07:38.844634
2015-05-22T13:51:10
2015-05-22T13:51:10
32,332,895
0
0
null
2015-03-16T15:04:57
2015-03-16T15:04:57
null
UTF-8
Python
false
false
2,066
py
# Copyright 2013 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ "john.carr@unrouted.co.uk" ]
john.carr@unrouted.co.uk
7554a2fdbfebf643d0c644091002345566e1f39f
484f2b6ed2a51a78978a4b6450f97a3cbefcd087
/friend/api.py
f15d74bf4b2496db1faa5fb20158fb24189329d3
[]
no_license
ivan371/technotrack-web2-spring-2017
31d0a937f1b6342bd70432cbebd37bb68c1dd8df
92e9fd9040984eef66b6bab45bb4d6918e178d41
refs/heads/master
2021-01-11T14:27:04.717314
2017-05-22T18:55:22
2017-05-22T18:55:22
81,424,353
0
0
null
2017-02-09T07:54:27
2017-02-09T07:54:27
null
UTF-8
Python
false
false
3,429
py
from friend.models import Friend, FriendShip from rest_framework import serializers, viewsets, permissions, generics, mixins from application.api import router from core.models import User from rest_framework.response import Response from django.shortcuts import get_object_or_404 from core.api import UserSerializer cl...
[ "nagaiko.ivan@gmail.com" ]
nagaiko.ivan@gmail.com
0894020394f1818acebb52f1fc45233139276c79
09f0505f3ac1dccaf301c1e363423f38768cc3cc
/r_DailyProgrammer/Intermediate/C380/unittests/unittest.py
6d762a96aeec7f83b39cc28e69dbe4a9f049e20e
[]
no_license
Awesome-Austin/PythonPractice
02212292b92814016d062f0fec1c990ebde21fe7
9a717f91d41122be6393f9fcd1a648c5e62314b3
refs/heads/master
2023-06-21T11:43:59.366064
2021-07-29T23:33:00
2021-07-29T23:33:00
270,854,302
0
0
null
2020-08-11T20:47:10
2020-06-08T23:24:09
Python
UTF-8
Python
false
false
267
py
#! python3 import unittest from r_DailyProgrammer.Intermediate.C380.unittests.test_values import TEST_VALUES class MyTestCase(unittest.TestCase): def test_something(self): self.assertEqual(True, False) if __name__ == '__main__': unittest.main()
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
0ba474fda5173282ca1c3a5a35624f30b9087281
23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6
/rootfs/usr/share/pyshared/orca/scripts/apps/acroread/__init__.py
04d9d3219dbfa5f48df7423dc02f6d087433bd88
[]
no_license
xinligg/trainmonitor
07ed0fa99e54e2857b49ad3435546d13cc0eb17a
938a8d8f56dc267fceeb65ef7b867f1cac343923
refs/heads/master
2021-09-24T15:52:43.195053
2018-10-11T07:12:25
2018-10-11T07:12:25
116,164,395
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
# Orca # # Copyright 2005-2009 Sun Microsystems Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This ...
[ "root@xinli.xinli" ]
root@xinli.xinli
6dcce42b483e33328ce29e8b954a4af982d7920d
77ab593ed55a6d46b1778f6d41bc70ced3f8cd46
/my_tf/tf05_16_01.py
e7131691da459336d3f68a47b444392c03c95bb4
[]
no_license
wosxcc/bot
e93b92fbca79a915feb186160f3f72c99218ffcb
c097f5455bc6264c9f778fb72900475963836153
refs/heads/master
2021-06-12T12:43:47.314071
2018-12-14T08:51:43
2018-12-14T08:51:43
128,619,488
7
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = (14,4) n_observations = 200 xs = np.linspace(-3, 3, n_observations) ys = np.sin(xs) + np.random.uniform(-0.2, 0.2, n_observations) plt.scatter(xs, ys) plt.show() X= tf.placeholder(tf.float32,name='X') Y=tf.pla...
[ "821022156@qq.com" ]
821022156@qq.com
ca707a125eb02f189e343460ef90f11eb9f36238
9fb7df549d33b3b3d854d60873b8047c885eedf4
/lib/incapsula/test.py
a0bb013f23d5a9b1f88003e246bb8299f6a479dc
[ "Unlicense" ]
permissive
strbean/pubMunch-BRCA
3a24199440b71469d3fb0135e1d3a9d3823d39b5
b7eb1270a2f69a262747d1366e0cd16e5b222b5d
refs/heads/master
2020-03-22T22:57:41.558632
2018-09-25T04:59:47
2018-09-25T04:59:47
140,781,441
0
0
null
2018-07-13T01:29:13
2018-07-13T01:29:12
null
UTF-8
Python
false
false
1,490
py
import sys import os root = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) print root sys.path.append(root) import logging from incapsula import crack, IncapSession from incapsula.requests_ import incap_blocked import requests target_url = 'https://www.karger.com/Article/Abstract/437330' session = re...
[ "max@soe.ucsc.edu" ]
max@soe.ucsc.edu
7e57ac2b1f0ffc4767cfc728b01aa35ca76467e3
248e9951f171425a21d30f4f9789b4780aef83a7
/share/qt/extract_strings_qt.py
903faf7407f69bc1afd221268838868077c04343
[ "MIT" ]
permissive
bitcoinrtx/BitcoinRTX-V0.1
8dd4f2b79e40d1eba39a1dc8e27bffe5c34785d4
defcb5024837d0a17152d1304e6de3fb338436f5
refs/heads/master
2023-03-12T11:16:08.751490
2021-03-06T20:05:56
2021-03-06T20:05:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,347
py
#!/usr/bin/env python3 # # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up by Qt linguist. ''' from subprocess import Popen, PIP...
[ "kunal@coinrecoil.com" ]
kunal@coinrecoil.com
cbe6ee1e5bdb87b546744874e58dd8c81c49544f
f40086079bdcb465da32bfc4c244d0a699a735e3
/informatics/series 2/Rock-paper-scissors.py
de3a0c9196878aa5087a5ee02f5256cabb2665e3
[]
no_license
isk02206/python
e6dfc1e219ae3a51bde80fed75412bed98b3defe
b2fc6d1aa1155c0758883677eb2e37d9f92a4382
refs/heads/master
2022-12-06T15:14:55.264792
2020-09-02T01:02:11
2020-09-02T01:02:11
292,142,661
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
a = str(input()) b = str(input()) r = 'rock' p = 'paper' s = 'scissors' if a == b: print('tie') elif a == r and b == s: print('player1 wins') elif a == r and b == p: print('player2 wins') elif a == p and b == r: print('player1 wins') elif a == p and b == s: print('player2 wins') elif a == s and b ...
[ "67949037+isk02206@users.noreply.github.com" ]
67949037+isk02206@users.noreply.github.com
1b0141f1846f16afa754e4fb32f5acd9e2cd6168
137ba8a70dfcf94dfe7aeef1599341ecc06ca48f
/student_result/2018/02_tictaetoe/tictactoe_35.py
31286bc5511302d6c1d7b1c50c76a76ff97cb909
[]
no_license
smtamh/oop_python_ex
e1d3a16ade54717d6cdf1759b6eba7b27cfc974e
bd58ee3bf13dad3de989d5fd92e503d5ff949dd9
refs/heads/master
2020-09-22T08:35:19.847656
2019-11-13T02:47:06
2019-11-13T02:47:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,086
py
import random TEXT_LINE = 13 def display_intro(): # intro 함수 python 에서는 함수를 def 을 이용하여 정의한다. 반환형을 명시하지 않는다. print('=' * 80) print(""" This is Tic Tac Toe! Choose O or X """) print('=' * 80) def show_now(): print('-' * TEXT_LINE) for i in range(0, 3): print('|', end='') ...
[ "kadragon@sasa.hs.kr" ]
kadragon@sasa.hs.kr
76fee537f70dbfa0213fea93fb209df81845124f
b314518eb3e33c872f880c4f80a0f3d0856cf9ee
/11selectionif.py
eb3f46e8a26a572c47162eb03b729c0a04c9223a
[]
no_license
namntran/2021_python_principles
0ba48d2cb6ff32a4fefd0b13ae24d2376e17740e
bf33210f9b0e02dfefe7a9a008936e8f47d25149
refs/heads/main
2023-03-10T15:47:48.930202
2021-02-25T07:27:53
2021-02-25T07:27:53
330,814,436
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
#number guessing game #selection with if, elif, else and nested selection print("You win if you guess the magic number") n = int(input("Enter a number between 1 - 100: ")) if n == 50: print("You win") elif 11 <= n <= 19: print("it's not a teen number") elif n >= 100: print("choose a number less than 100 do...
[ "namtran78@gmail.com" ]
namtran78@gmail.com
c1498344d00b01b4048c2a8f22fed4a5db486550
5aa3e9f94e77e724c37a5b55bfb05b488b7f6b94
/Lib/site-packages/tests/test_spheres.py
988e1240e9f4e7d02811a2a90539e462486158c1
[]
no_license
candi955/FinalProjectAlgorithms_DataStructures
79efaae394286f09f24cf8721b84f3d7af90a4a0
b7b099c5971d29cce465897ce0ee6a718c3a7e10
refs/heads/master
2020-12-30T05:08:19.365577
2020-02-16T11:43:53
2020-02-16T11:43:53
238,870,709
0
0
null
null
null
null
UTF-8
Python
false
false
2,098
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, division, absolute_import from builtins import int, round, str, object # noqa from future import standard_library standard_library.install_aliases() # noqa: Counter, OrderedDict, from past.builtins import basestri...
[ "44098788+candi955@users.noreply.github.com" ]
44098788+candi955@users.noreply.github.com
8624e939decb873288ab0977951ea54c60510984
ec7f476240c8edf88bf9500c5b677113d840d6c6
/PMModels/Implementations/Backtesting/sortino_ratio.py
c53d41089e268e8c1a247d3a9cadb60ba96c94e9
[]
no_license
fagan2888/BehavioralAssignmentSolution
80b82b71a94d0da68783b00046215755c1dd3715
15acead2d6af6e59f64a7d3baf7da5356cea57ec
refs/heads/master
2021-04-21T08:31:40.453758
2018-08-27T06:18:41
2018-08-27T06:18:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
# -*- coding: utf-8 -*- #!/usr/bin/env python ''' Name: Beier (Benjamin) Liu Date: 7/5/2018 Remark: Python 3.6 is recommended Before running please install packages *numpy, scipy, matplotlib Using cmd line py -3,6 -m pip install [package_name] ''' import os, time, logging import copy, math import functools, itertools ...
[ "imbenliu@gmail.com" ]
imbenliu@gmail.com
7f131e0ab83eaf2e2a63a868b765b926bcd6ce3a
a26a3605f8055a28083107b98800d72bfcc11fd9
/selenium/reclame_aqi_rankings/reclame_aqi_rankings/pipelines.py
8470896fb9f683ae9b8d891bc67fc2e5abffba67
[]
no_license
huzaifabaloch/Modern-Web-Scraping
521c3bd9302c3be0743a16cb65a02bf5a6666d9e
021c5f987d7c150118340ccbf986be51ecdca349
refs/heads/master
2020-09-26T23:40:46.306998
2020-06-30T17:10:49
2020-06-30T17:10:49
226,367,502
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class ReclameAqiRankingsPipeline(object): def process_item(self, item, spider): return item
[ "huzbaudi3@gmail.com" ]
huzbaudi3@gmail.com