blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a190607625a690d7574afa6ac51c511908c664d | 2ddc456deb713a182692f04a0f58b6219c683c3d | /manage.py | 83e6cb6b4ad6924c454de15cd1c2a04e74b6ca2b | [] | no_license | rabithakuri/blog | feabb6ffcac216abd6c081544f95dd46d773a76e | 59af4161fa751b7c5b49ac97100b3175f2e32d44 | refs/heads/master | 2023-01-03T17:11:53.568997 | 2020-10-28T03:44:41 | 2020-10-28T03:44:41 | 307,582,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'intern_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"you@example.com"
] | you@example.com |
c5ec3cebc6acd55c78f200d64e7195209a6a3380 | 8eeef634531bddfd99bad995517a6dc2750e5815 | /tests/TestServidorHTTPConfiguracion.py | 4d385d32ef1d5c2c8e778218724c9a2373bb1195 | [] | no_license | GabrielMartinMoran/balizaIntegracionContinua | 99c882b9376520d832ef72c3e98194835aaf1b37 | 7f82c917793716fef30d30d0cd0a2d98ffda6d47 | refs/heads/master | 2021-06-08T14:14:44.112718 | 2021-04-27T18:06:17 | 2021-04-27T18:06:17 | 153,819,687 | 0 | 0 | null | 2021-04-27T18:07:03 | 2018-10-19T17:37:59 | JavaScript | UTF-8 | Python | false | false | 1,808 | py | #----------------------------- IMPORTAMOS EL DIRECTORIO src ---------------------------
import os
import sys
#IMPORTAMOS DEL PADRE
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src')))
#--------------------------------------------------------------------------------------
import unitt... | [
"moran.gabriel.95@gmail.com"
] | moran.gabriel.95@gmail.com |
22b1198f010dde12d103a5f65f822ee6e9dd0675 | e9fade80d627161ace797e6e80c54e328da4cf46 | /issure_tracker/accounts/migrations/0001_initial.py | 468da38e15e4ee1e580be4f953070a92552736f3 | [] | no_license | nurbekov0001/tracer | 1d48558f4064fd8c8382c16c57b11dbef21554e9 | 3daff8790efd87f99459d9ab9824960a0b8159a8 | refs/heads/master | 2023-04-17T16:06:01.446028 | 2021-04-22T10:04:48 | 2021-04-22T10:04:48 | 346,675,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # Generated by Django 3.1.7 on 2021-04-16 13:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"nurbekovbekbolot090501@gmail.com"
] | nurbekovbekbolot090501@gmail.com |
433b32bb5daca94ed59dd9026ce5d90ddf8b386b | a230088db9185a549fc63db351cc3558fbf78fe8 | /tests/gallery/test_gallery.py | 147c5bae1edb6779c17447d57a4b498268546f16 | [
"MIT"
] | permissive | ciphertechsolutions/construct | 7cebb8ec1634fafcbd1d89af3772fdcbec9509c3 | e75adbee3cc2bc3fc0326166d623566bf4358424 | refs/heads/master | 2020-05-17T06:06:49.291119 | 2019-07-04T01:49:02 | 2019-07-04T01:49:02 | 183,551,585 | 0 | 0 | NOASSERTION | 2019-10-19T22:37:53 | 2019-04-26T03:38:32 | Python | UTF-8 | Python | false | false | 286 | py | from declarativeunittest import *
from construct import *
from construct.lib import *
from gallery import pe32file
def test_pe32():
commondump(pe32file, "python37-win32.exe")
commondump(pe32file, "python37-win64.exe")
commondump(pe32file, "SharpZipLib0860-dotnet20.dll")
| [
"arek.bulski@gmail.com"
] | arek.bulski@gmail.com |
513f6a85f513250674a0329b3e5b13a71f2ada85 | 77741ac3384cf80ba9f5684f896e4b6500064582 | /PycharmProjects/继承/09-super().py | a9a8a4081e86dbcffdb4377fb61750a70e521906 | [
"MIT"
] | permissive | jiankangliu/baseOfPython | 9c02763b6571596844ee3e690c4d505c8b95038d | a10e81c79bc6fc3807ca8715fb1be56df527742c | refs/heads/master | 2020-05-09T12:11:02.314281 | 2019-04-13T01:17:24 | 2019-04-13T01:17:24 | 181,104,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | class Master(object):
def __init__(self):
self.kongfu = '[古法煎饼果子配方]'
def make_cake(self):
print(f'师傅运用{self.kongfu}制作煎饼果子')
# def xx(self):
# print('aaaaa')
# 黑马学校类
class School(Master):
def __init__(self):
self.kongfu = '[黑马煎饼果子配方]'
def make_cake... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
79435fffffd54d4dd35c5ea37db3e9fa998944b7 | 99ada05e0088a8e93400b245c02fb0b28ef91a2d | /api_v1/containers/shop/views.py | 90df9332a7860db17f2d5387f1c797548f3e16de | [
"MIT"
] | permissive | eric-scott-owens/loopla | 789fdf128393c29ced808b10e98eb55d5a0ed882 | 1fd5e6e7e9907198ff904111010b362a129d5e39 | refs/heads/master | 2022-12-12T17:30:44.373305 | 2019-08-01T06:17:05 | 2019-08-01T06:17:05 | 199,980,906 | 0 | 0 | MIT | 2022-12-11T00:23:28 | 2019-08-01T05:08:43 | JavaScript | UTF-8 | Python | false | false | 6,925 | py | import copy
from datetime import datetime
from django.contrib.auth.models import User
from django.conf import settings
from django.db import transaction
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
import stripe
from shop.models import Ord... | [
"eric.owens@loopla.com"
] | eric.owens@loopla.com |
67c01605dd097ec955b09e05c3ffb60a960ea937 | 69a415b34e14537b12f1fc4975360a45ea86af39 | /app/migrations/0059_auto_20210323_1537.py | c3494a4b0a778a68824d8194da53a3af538a1d30 | [] | no_license | imagilex/sosadelbosque | 36aa0a4fcec737717e58ce4ae6cc195c679c8b19 | ae52203213cea278690dc13cde60377775c2ef62 | refs/heads/master | 2023-05-15T09:26:20.842589 | 2023-03-07T21:33:27 | 2023-03-07T21:33:27 | 170,960,865 | 0 | 1 | null | 2023-04-30T11:23:33 | 2019-02-16T04:05:38 | Python | UTF-8 | Python | false | false | 2,802 | py | # Generated by Django 3.0.7 on 2021-03-23 15:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('initsys', '0003_auto_20190723_1358'),
('app', '0058_auto_20210315_1901'),
]
operations = [
migratio... | [
"maths.unam@gmail.com"
] | maths.unam@gmail.com |
3ded5cc16aa18ec2b0aadcdc17047b5871c455f3 | b8151327e53471c48679908bad4f80e26e4de056 | /Datasets/us_cropland.py | a107245f114533b4d17d70eb4ef833a848cd5143 | [
"MIT"
] | permissive | edencfc/earthengine-py-notebooks | 5d91b4e1e3773742890a7498b0e19354b8ed02b5 | f37adeffc40574f2de82efc9e8103a9c7f918585 | refs/heads/master | 2021-04-03T21:29:11.948772 | 2020-03-17T12:41:30 | 2020-03-17T12:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | '''
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Datasets/us_cropland.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" hre... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
39ceedaebdc2ac1eece9c5118a1b8e68f0d01460 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_352/ch19_2020_03_24_01_38_47_185100.py | ac0a448a458fe9fddfb5f3d65c33f54c47e13d4b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | def classifica_triangulo(x, y, z):
if x==y and y==z:
return "equilátero"
elif x!=y or x!=z or z!=y:
return "isóseles"
else:
return "escaleno"
| [
"you@example.com"
] | you@example.com |
b75dbfb5879fc58f82f014ed3d954cd18d86fdf8 | 66e45a2760db8a1fc580689586806c2e3cce0517 | /pymontecarlo/options/beam/gaussian.py | f899c96d4c539645036e125a335c60688599a596 | [] | no_license | arooney/pymontecarlo | 4b5b65c88737de6fac867135bc05a175c8114e48 | d2abbb3e9d3bb903ffec6dd56472470e15928b46 | refs/heads/master | 2020-12-02T18:01:42.525323 | 2017-05-19T16:44:30 | 2017-05-19T16:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | """
Gaussian beam.
"""
# Standard library modules.
# Third party modules.
# Local modules.
from pymontecarlo.options.beam.cylindrical import \
CylindricalBeam, CylindricalBeamBuilder
from pymontecarlo.options.particle import Particle
# Globals and constants variables.
class GaussianBeam(CylindricalBeam):
... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
00da945565f09b900f74aadad32813c82c145c2f | 6b5431368cb046167d71c1f865506b8175127400 | /challenges/filtra-positivos/tests.py | c5012357f4ede037d68c5541b1104ebaf7a60f7b | [] | no_license | Insper/design-de-software-exercicios | e142f4824a57c80f063d617ace0caa0be746521e | 3b77f0fb1bc3d76bb99ea318ac6a5a423df2d310 | refs/heads/master | 2023-07-03T12:21:36.088136 | 2021-08-04T16:18:03 | 2021-08-04T16:18:03 | 294,813,936 | 0 | 1 | null | 2021-08-04T16:18:04 | 2020-09-11T21:17:24 | Python | UTF-8 | Python | false | false | 401 | py | from strtest import str_test
class TestCase(str_test.TestCaseWrapper):
TIMEOUT = 2
def test_1(self):
entradas = [[-1, -2, -3],[-1, -2, -3, 0, 1, 2],[0, -1, 1, -2, 2]]
esperados = [[], [1, 2], [1, 2]]
for entrada, esperado in zip(entradas, esperados):
self.assertEqual(espera... | [
"andrew.kurauchi@gmail.com"
] | andrew.kurauchi@gmail.com |
3f3ea32395628def25fe0fafc5c4996611eb9cf0 | 085488720112922ff3aed15f99f3c93911425c4a | /vesper/command/station_name_aliases_preset.py | 0188c41410e63f2a621096eea37ab59056c0769b | [
"MIT"
] | permissive | HaroldMills/Vesper | 0b61d18bc241af22bfc251088fc87d72add6367b | ec92fe5231f54336499db189a3bbc6cb08a19e61 | refs/heads/master | 2023-07-05T22:45:27.316498 | 2023-07-04T11:58:14 | 2023-07-04T11:58:14 | 19,112,486 | 49 | 6 | MIT | 2023-02-14T16:09:19 | 2014-04-24T14:55:34 | Python | UTF-8 | Python | false | false | 377 | py | """Module containing class `StationNameAliasesPreset`."""
from vesper.util.yaml_preset import YamlPreset
class StationNameAliasesPreset(YamlPreset):
"""
Preset that specifies station name aliases.
The preset body is YAML that specifies a mapping from station names
to lists of aliases.
... | [
"harold.mills@gmail.com"
] | harold.mills@gmail.com |
5d11bcbbbb8cfe659783ba765ff02b2cd2ea8b0d | 6609c26b4ed72c156104ce282c3cf88c6aac59f6 | /chapter09/example15_formulas.py | a0b854c34b5de02f0e522bd4669039b9c7180405 | [
"MIT"
] | permissive | yordanivh/intro_to_cs_w_python | 4ab9dbbc2963b285b22cacb6648d1300fded18ce | eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a | refs/heads/master | 2020-09-06T12:25:23.362118 | 2020-02-14T14:07:07 | 2020-02-14T14:07:07 | 220,423,698 | 0 | 0 | MIT | 2020-02-14T14:07:08 | 2019-11-08T08:41:25 | Python | UTF-8 | Python | false | false | 385 | py | #Repetition based on user input
text = ""
while text != "quit":
text = input("Please enter a chemical formula (or 'quit' to exit): ")
if text == "quit":
print("...exiting program")
elif text == "H2O":
print("Water")
elif text == "NH3":
print("Ammonia")
elif text == "CH4":
... | [
"yordan@hashicorp.com"
] | yordan@hashicorp.com |
10ad81e1ec0dbb45e3b86748b126cb9c94ee3c97 | 043e511436798e9aed96052baddac7a353ac6562 | /printZigZagMatrix.py | 88bb65c74eabe5d24283634c30dbb4d1b1d12569 | [] | no_license | bch6179/Pyn | 01e19f262cda6f7ee1627d41a829609bde153a93 | e718fcb6b83664d3d6413cf9b2bb4a875e62de9c | refs/heads/master | 2021-01-22T21:28:13.982722 | 2017-05-05T07:21:19 | 2017-05-05T07:21:19 | 85,434,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | Solution(object):
def printZigZagMatrix(self, A):
n,m = len(A), len(A[0])
x,y=0,0
x = []
for i in range(n+m):
if i % 2 == 0:
x = i
while x >= 0:
if x <= m and (i-x) <= n:
res.... | [
"bch6179@gmail.com"
] | bch6179@gmail.com |
6dc24e6e9dc2ac5b81fe106aafe9c9efcdd3c231 | 1f98ccf9ef52d3adab704676480c85fe22c9542d | /simpledb/tx/TxTest.py | 2243678f4f85a87127d5ea2fc6e3c2c891fab0d3 | [] | no_license | 61515/simpleDB_Python | 234c671cbbf57f3e8fc5489ec4c292365085b7a8 | b6846da4a78369838f5b3c7a704de704e18f7be7 | refs/heads/master | 2023-02-22T14:07:52.660633 | 2021-01-24T02:25:40 | 2021-01-24T02:25:40 | 332,343,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | from simpledb.buffer.BufferMgr import BufferMgr
from simpledb.file.BlockId import BlockId
from simpledb.log.LogMgr import LogMgr
from simpledb.tx.Transaction import Transaction
from simpledb.util.File import File
from simpledb.file.FileMgr import FileMgr
class TxTest(object):
@classmethod
def main(cls, args):... | [
"1632039752@qq.com"
] | 1632039752@qq.com |
3b852eab16c802fad017d8dbc780791730df3e35 | 8eadd4c7db6872f28592333207b23a6e9309aba7 | /cities/migrations/0019_hotel_city.py | 5c67acf480e7b48ac8f8eb8188f58c5733437c25 | [] | no_license | tripupp/Sep19 | 142255904d186845f0f5cdc5b04064fa081c9e6d | 4e9ab2077be21c914f2f0207e64268fe6f98224d | refs/heads/master | 2022-11-23T23:46:01.512565 | 2019-09-19T19:46:20 | 2019-09-19T19:46:20 | 205,845,957 | 0 | 1 | null | 2022-11-22T04:13:26 | 2019-09-02T11:51:07 | CSS | UTF-8 | Python | false | false | 510 | py | # Generated by Django 2.2.4 on 2019-09-17 23:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cities', '0018_hotel_hotelfacility'),
]
operations = [
migrations.AddField(
model_name='hotel',... | [
"ahuja.devansh2@gmail.com"
] | ahuja.devansh2@gmail.com |
bf41d3301840a07139a8656932fa600b19eeaa9d | b1ff576cdde5adf698b98446538e0b56d18f070f | /klasses/migrations/0003_auto_20210308_1410.py | 38ed54499f645f695f7d61108f3d1d74e57c9592 | [] | no_license | DUMBALINYOLO/gbc_oms | e3cfba17a12f3600b6503fc70cc9f3dcab5cc0e2 | cdea6fd81333088b2db9911140681fec9577132a | refs/heads/main | 2023-08-20T11:48:36.418990 | 2021-10-11T23:25:35 | 2021-10-11T23:25:35 | 322,593,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | # Generated by Django 3.1.5 on 2021-03-08 12:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('people', '0001_initial'),
('klasses', '0002_auto_20210201_1054'),
]
operations = [
migrations.Alter... | [
"baridzimaximillem@gmail.com"
] | baridzimaximillem@gmail.com |
e0606d6d38fc089b63725df350a5cdfd84866c17 | 85a32fc66050b5590f6a54774bbb4b88291894ab | /10-days-of-statistics/day-8-least-square-regression-line/python3.py | 8b9028d791e8278e76ef465b56d78615f88c5516 | [] | no_license | charlesartbr/hackerrank-python | 59a01330a3a6c2a3889e725d4a29a45d3483fb01 | bbe7c6e2bfed38132f511881487cda3d5977c89d | refs/heads/master | 2022-04-29T07:40:20.244416 | 2022-03-19T14:26:33 | 2022-03-19T14:26:33 | 188,117,284 | 46 | 37 | null | 2022-03-19T14:26:34 | 2019-05-22T21:38:18 | Python | UTF-8 | Python | false | false | 387 | py | x = [95, 85, 80, 70, 60]
y = [85, 95, 70, 65, 70]
n = len(x)
mean_x = sum(x) / n
mean_y = sum(y) / n
square_x = sum(x[i] ** 2 for i in range(n))
product_xy = sum(x[i] * y[i] for i in range(n))
b = ((n * product_xy) - (sum(x) * sum(y))) / ((n * square_x) - (sum(x) ** 2))
a = mean_y - (b * mean_x)
score_x = 80
# re... | [
"e-mail@charles.art.br"
] | e-mail@charles.art.br |
5c0b1ed0af605cfca6411fb25f4e72fc5d812943 | f9fe13fe62ba3fb1fb096da4268d5dc43e435ea4 | /52)convert_num_to_words.py | e2ec69789424a1254d41ee6f1e0853fc530c1494 | [] | no_license | MANNEMPRATAPVARUN/guvipy | 7e460da8b9d98c2fcd488757585d5bd207570666 | 4da4fe4f3d4855e14383015da19588ef0aea4f32 | refs/heads/master | 2020-06-10T01:22:26.063815 | 2019-06-12T13:44:44 | 2019-06-12T13:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | n1=int(input())
if(n1==1):
print("one")
elif(n1==2):
print("two")
elif(n1==3):
print("three")
elif(n1==4):
print("four")
elif(n1==5):
print("five")
elif(n1==6):
print("six")
elif(n1==7):
print("seven")
elif(n1==8):
print("eight")
elif(n1==9):
print("nine")
elif(n1==10):
print("te... | [
"noreply@github.com"
] | MANNEMPRATAPVARUN.noreply@github.com |
f226d0ef2e31d350f86f78906f0565ae5e9b2432 | eb40a068cef3cabd7a0df37a0ec2bde3c1e4e5ae | /imperative/python/megengine/data/tools/_queue.py | 9acd8396acb4078c93b51588585ba3c9a4325c34 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | tpoisonooo/MegEngine | ccb5c089a951e848344f136eaf10a5c66ae8eb6f | b8f7ad47419ef287a1ca17323fd6362c6c69445c | refs/heads/master | 2022-11-07T04:50:40.987573 | 2021-05-27T08:55:50 | 2021-05-27T08:55:50 | 249,964,363 | 1 | 0 | NOASSERTION | 2021-05-27T08:55:50 | 2020-03-25T11:48:35 | null | UTF-8 | Python | false | false | 5,241 | py | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | [
"megengine@megvii.com"
] | megengine@megvii.com |
976b4d718dda1ead16bd28d32cc7063864b631dd | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /norml/train_maml.py | 1b115e00c874ca240844f93a803a8535781b8616 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 1,731 | py | # coding=utf-8
# Copyright 2022 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 |
543fd4be6b22c96bcaa75db052979e4302c6b24d | 52f0984561895b48f3e6e40658a6e52c97705715 | /python-folder/serverless2.py | ddcd1ce97acb5419e4a251fe3bee710c7535e509 | [] | no_license | jsanon01/python | 8da2755e7724850875518455c1760bb9f04dd873 | edd52214e3578f18b71b0ad944c287411fb23dfb | refs/heads/master | 2022-05-20T00:29:10.550169 | 2022-05-10T01:08:48 | 2022-05-10T01:08:48 | 165,682,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,377 | py | """
I want to import website for Reference
I want a function named 'compute'
I want a function named 'storage'
I want a function named 'data_stores'
I want a function named 'api_proxy'
I want a function named 'api_integration'
I want a function named 'analytics'
I want a function named 'dev_tool'
I want a function name... | [
"jeansanon180@gmail.com"
] | jeansanon180@gmail.com |
5883b13a008f89976e099bb9238c124fc37ad18d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03273/s686375641.py | da4e84ee5bc242bc4a53671532a88a0e7dd849e7 | [] | 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 | 876 | py | H,W = map(int,input().split())
A = [list(input()) for _ in range(H)]
B = [[0 for _ in range(W)] for _ in range(H)]
for i in range(H):
for j in range(W):
if A[i][j]=="#":
B[i][j] = 1
C = []
for i in range(H-1,-1,-1):
if sum(B[i])==0:
C.append(i)
B1 = []
for i in range(H):
if i not... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0187e3cf9f492ef6c1bc89361772c035ddcc37f | 2ed229651c21f552b61c2a2e520450d20795780f | /simple_issue_tracker/issue/migrations/0003_auto_20180331_0756.py | 2e079cb4b6193e0bd6c65a5a589f0d070d56a4b3 | [] | no_license | SurendraKumar19/LaunchYard | 360c2fbff58f453e5e1d21716ba033ce0203e279 | 8be7d967f986320cf212799e4a30b19724904cf2 | refs/heads/master | 2020-03-07T18:59:31.975463 | 2018-04-02T04:16:24 | 2018-04-02T04:16:24 | 127,658,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-31 07:56
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('issue', '0002_auto_20180330_... | [
"="
] | = |
c03da917bab449ab5a0857c6e6e2c45956ddfbcd | f0e9efbb0b90ff3f6c3796ab5cfcfecd3d937188 | /travel_buddy/apps/first_app/views.py | 6565dd2f866b03559a79d10cee1eef1fe5aac969 | [] | no_license | john-gore/belt_exam_travel | 9d6a05b6128ab4d8d3ac50c80784e383e0098a44 | 2d32a22aa66f58a0835e7d3daedeab83925a0a8c | refs/heads/master | 2021-07-21T11:54:26.658977 | 2017-10-27T21:42:54 | 2017-10-27T21:42:54 | 108,598,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | from django.shortcuts import render, HttpResponse, redirect
from django.core.urlresolvers import reverse
from .models import User, Trip
from django.contrib import messages
def index(request):
return render(request, "login.html")
def register(request):
result = User.objects.validate_registration(request.POST)
... | [
"johngore@Johns-MBP.localdomain"
] | johngore@Johns-MBP.localdomain |
3565507f8d9a85c2327ed93fe28b09dfd4f644e6 | f4b5721c6b3f5623e306d0aa9a95ec53461c1f89 | /backend/src/gloader/xml/xpath/Context.py | f82a5fa07e901b4eb84d3947e8023d537613d205 | [
"MIT"
] | permissive | citelab/gini5 | b53e306eb5dabf98e9a7ded3802cf2c646f32914 | d095076113c1e84c33f52ef46a3df1f8bc8ffa43 | refs/heads/uml-rename | 2022-12-10T15:58:49.578271 | 2021-12-09T23:58:01 | 2021-12-09T23:58:01 | 134,980,773 | 12 | 11 | MIT | 2022-12-08T05:20:58 | 2018-05-26T17:16:50 | Python | UTF-8 | Python | false | false | 2,193 | py | ########################################################################
#
# File Name: Context.py
#
#
"""
The context of an XPath expression.
WWW: http://4suite.org/XPATH e-mail: support@4suite.org
Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.org/COPYRIGHT for lice... | [
"maheswar@MacBook-Pro.local"
] | maheswar@MacBook-Pro.local |
71e2016edbb152b6c30a8d3f50f6cea2e63b1cb2 | 8d56828fb72dcbb502a857c48394ee3684120745 | /parsers/pe_hdr.py | 691798f51cd9c757b0c1468369c4f99201b1566b | [
"MIT"
] | permissive | ArseniySky/mitra | 1a26166e39df76d4472ce2a3000fca46e5327034 | bb6038587300d34072cda1409e3bb72772b11dc9 | refs/heads/master | 2023-01-03T05:39:51.486063 | 2020-10-24T15:35:56 | 2020-10-24T15:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | #!/usr/bin/env python
from parsers import FType
from helpers import *
class parser(FType):
DESC = "Portable Executable (hdr)"
TYPE = "PE(hdr)"
MAGIC = b"MZ"
def __init__(self, data=""):
FType.__init__(self, data)
self.data = data
self.bAppData = True # let's not have duplicates
self.bParasite = True
# ... | [
"ange.albertini@gmail.com"
] | ange.albertini@gmail.com |
c3bf55ecaebb7517aa85a0abef26fdf5363f20dd | e730c3367959c0d46a4d776442704fec24b84afd | /guoke_spider/pipelines.py | 0148d313b6cb0bf2b7a2554e0d257e74afdf9841 | [] | no_license | IanChen6/guoke_spider | 3baf4f110856b951ccf4b33c9a30d74287a12e0d | 90c0e99ad752d421c46117a26af448bede8d5e9c | refs/heads/master | 2021-01-23T18:44:36.839711 | 2017-09-08T01:57:43 | 2017-09-08T01:57:43 | 101,175,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import codecs
import json
import MySQLdb
import pymysql as pymysql
from scrapy.pipelines.images import ImagesPipeline
from twist... | [
"626614767@qq.com"
] | 626614767@qq.com |
41bfa16dc61c56da11b0ac61055d62943d6efcf4 | 76b1e713a3057e6f08abc116814af00891dbc2ef | /store/models/product.py | c85acce04472c75ceaee1e079948a3a94d9b3407 | [] | no_license | Jay28497/Django-Ecommerce-Website | ed17f6536fe4be4d6db658c46999bb05ec22d3f8 | 2697d376c8ff2720720183c0e475b188ff7b0e33 | refs/heads/master | 2023-03-31T15:20:56.008251 | 2021-04-10T12:21:08 | 2021-04-10T12:21:08 | 355,427,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from django.db import models
from .category import Category
class Product(models.Model):
name = models.CharField(max_length=50)
price = models.IntegerField(default=0)
category = models.ForeignKey(Category, on_delete=models.CASCADE, default=1)
description = models.CharField(max_length=200, default='')
... | [
"jaykanjariya28@gmail.com"
] | jaykanjariya28@gmail.com |
870b89779a326a8ad7f5d0a8ae8f9736e854516a | 46646aaeecc313471ce5b9fbc3ffe98fa2779079 | /tests/test_pitch_shift.py | 0f638710fbd8cddecf6cff6c5bf78c9a7b9ef8f0 | [
"MIT",
"Python-2.0"
] | permissive | psgainz/audiomentations | c57840cc9516564cff00a9db64e8e92807024bfb | a5512965bb59995cbad6a3e5a5994dfaba7185d0 | refs/heads/master | 2020-08-23T01:30:44.289468 | 2019-09-22T13:48:07 | 2019-09-22T13:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import unittest
import numpy as np
from audiomentations.augmentations.transforms import PitchShift
from audiomentations.core.composition import Compose
class TestPitchShift(unittest.TestCase):
def test_dynamic_length(self):
samples = np.zeros((512,), dtype=np.float32)
sample_rate = 16000
... | [
"iver56@hotmail.com"
] | iver56@hotmail.com |
7761e5f25a807647a04357adc679ee7e8ac02fa0 | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /dp/금광.py | 8190eebcd06649d3cf24238703d4170ac0996cbf | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | T=int(input())
for _ in range(T):
n,m=map(int,input().split())
arr=list(map(int,input().split()))
dp=[]
index=0
for i in range(n):
dp.append(arr[index:index+m])
index+=m
for j in range(1,m):
for i in range(n):
#왼쪽 위에서 오는 경우
if i==0:
... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
663b87517554847f85f756083b55562af5062418 | 24b1258616111c3b585e137ee64f1395e73f18db | /torch/testing/_deprecated.py | 3cf7338bff889e10f349fd6b7aab1548aed2db30 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | neginraoof/pytorch | 9ca47c2d32e5b71a24f13232329bea1e5744acda | ed79eff6d3faf126fec8895e83bf5ac28aa1041c | refs/heads/master | 2021-12-13T16:03:02.260731 | 2021-09-09T20:37:36 | 2021-09-09T20:37:36 | 193,156,038 | 1 | 0 | NOASSERTION | 2021-01-15T23:15:32 | 2019-06-21T20:23:32 | C++ | UTF-8 | Python | false | false | 2,590 | py | """This module exists since the `torch.testing` exposed a lot of stuff that shouldn't have been public. Although this
was never documented anywhere, some other internal FB projects as well as downstream OSS projects might use this. Thus,
we don't internalize without warning, but still go through a deprecation cycle.
""... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1185038b5add6d6e2bb70633f7fb38a0bd4a4477 | f324cd2cbebd303fd34cd2e26fe1a51c44202d55 | /test/integration/vint/linting/policy/test_prohibit_encoding_opt_after_scriptencoding.py | 867a2e0269f74fa396c1c0c04952e24076736d24 | [
"MIT"
] | permissive | Vimjas/vint | d71579154d177daf458ec68423a66055f90fa308 | e12091830f0ae7311066b9d1417951182fb32eb5 | refs/heads/master | 2023-09-02T07:31:31.299270 | 2022-10-24T13:06:33 | 2022-10-24T13:06:33 | 20,857,415 | 191 | 11 | MIT | 2022-10-24T13:10:00 | 2014-06-15T14:38:32 | Python | UTF-8 | Python | false | false | 2,200 | py | import unittest
from test.asserting.policy import PolicyAssertion, get_fixture_path
from vint.linting.level import Level
from vint.linting.policy.prohibit_encoding_opt_after_scriptencoding import (
ProhibitEncodingOptionAfterScriptEncoding,
)
VALID_ORDER_VIM_SCRIPT = get_fixture_path(
'prohibit_encoding_opt_... | [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
e086eda2496c310a06840292336539270a37fa7c | 82e57ddf893ec8b1d3c19e4eeab758eb2cb4ace4 | /but/trades/views/send_email.py | ded5f2cabc1f01788ff32fda5c6f102a6c146d22 | [
"MIT"
] | permissive | yevgnenll/but | 1cf072afdb95492aae7efc9847040d1770a623c7 | 2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1 | refs/heads/master | 2021-01-21T04:55:31.408608 | 2016-06-09T02:53:42 | 2016-06-09T02:53:42 | 55,655,016 | 4 | 0 | null | 2016-06-09T03:14:06 | 2016-04-07T01:54:33 | Python | UTF-8 | Python | false | false | 535 | py | from django.shortcuts import render, redirect
from django.core.urlresolvers import reverse
from trades.models import Contact
from users.models import User
def send_email(request):
title = request.POST.get('title')
content = request.POST.get('content')
accept = request.POST.get('user_id')
contact = ... | [
"yevgnenll@gmail.com"
] | yevgnenll@gmail.com |
e5013a8634f961854d429a44905a148c553490fc | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/libraryManager.py | eb2bfd17f26d7d9e8e79fdfc1d61ba2439c6cd68 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,028 | py | bl_info = {
"name": "texture library manager",
"author": "Antonio Mendoza",
"version": (0, 0, 1),
"blender": (2, 72, 0),
"location": "View3D > Panel Tools > Texture library manager panel (sculpt mode)",
"warning": "",
"description": "Load and unload image libraries",
"category": "Learnbg... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
25d875712d847ff5331efc882b0a32e303df0b65 | 15bfc2b3ba52420d95ed769a332aaa52f402bbd2 | /api/v2010/incoming_phone_number/create-test-post-example-3/create-test-post-example-3.6.x.py | d8100d65b045e9b542be53429173ac37acc793ac | [] | no_license | synackme/sample-code | 013b8f0a6a33bfd327133b09835ee88940d3b1f2 | 5b7981442f63df7cf2d17733b455270cd3fabf78 | refs/heads/master | 2020-03-17T04:53:07.337506 | 2018-05-07T16:47:48 | 2018-05-07T16:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = '"ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
incoming_phone_number = c... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
076cf2edeb38036316e575bf5611e0df4742847d | 6cb67c5ae32faf6168d87858b43d3457282a022e | /esercizi/exchange2.py | 082747f748f13162d798425ecbe6a739df126a5b | [
"Apache-2.0"
] | permissive | formazione/formazione.github.io | 4d64320ab524db5a47eb1ee25bcfd8afc5c7a238 | 161e7fdf8b7b8aaeab6e44ad360b3a5dfd90503d | refs/heads/master | 2023-08-10T15:57:22.646132 | 2023-07-25T11:08:04 | 2023-07-25T11:08:04 | 125,328,356 | 0 | 0 | Apache-2.0 | 2020-02-15T09:02:12 | 2018-03-15T07:25:29 | Python | UTF-8 | Python | false | false | 4,043 | py | import random
class Exchange:
'''e1 = Exchange(dollars=1000, euro=1, cambio=1.18) will give you the euro for 1000 $\
d1 = Exchange(dollars=1, euro=500, cambio=1.18)
'''
def __init__(self, dollars, euro, cambio):
"If euro = 1 it changes dollars into euro and viceversa"
self.dollars = dol... | [
"gatto.gio@gmail.com"
] | gatto.gio@gmail.com |
6b511d19244e574fcd3136bdc4ce1388d22015d1 | dc42551b91ccb14541730975f4c377aedb0ad7c4 | /model/bert_ce.py | 764390df746ee82ab6f70c7c758eb374c71a677d | [] | no_license | liqinzhang/ChineseNER | df862eef8d19204c9f9f9e72ac7f716ed6237f7c | 7d1c6c107b5cc5c57391c0feb1a57357ee519b6a | refs/heads/main | 2023-08-29T18:05:04.404609 | 2021-11-18T01:15:33 | 2021-11-18T01:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | # -*-coding:utf-8 -*-
from tools.train_utils import *
from tools.layer import *
from tools.loss import cross_entropy_loss
from tools.utils import add_layer_summary
from config import TRAIN_PARAMS
def build_graph(features, labels, params, is_training):
"""
pretrain Bert model output + cross-entropy loss
""... | [
"lixiang.2533@bytedance.com"
] | lixiang.2533@bytedance.com |
4298c3737468598270839efff3011bedf2e31660 | 8f4c59e69cce2f6e932f55b3c65aae376b206a2c | /笨办法学python/projects/setup(1).py | 332fa7f39039701ec9d8ae239e60aa76c3237f66 | [] | no_license | zmjm4/python | ef7206292f1c3a3a5763b25527024999de5e8e79 | 44cf74c0f16891c351ce214762218ccf2d7353a0 | refs/heads/master | 2020-05-27T17:23:48.776167 | 2018-05-24T07:14:16 | 2018-05-24T07:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # -*- coding: utf-8 -*-
try:
from setuptools import setup
except:
from distutils.core import setup
config={
'description': 'My Project',
'author': 'My Name',
'url': 'URL to get it at.',
'download_url': 'Where to download it.',
'author_email': 'My email.',
'version': '0.1',
'install_requires':['nose'],
'pack... | [
"715073608@qq.com"
] | 715073608@qq.com |
ebda7187c990755ed5402fe5d8d27ea22d320b99 | a84b99ce26f86a467df95b3ef2b57dd15cb1b49e | /boston_housing_v1.py | 3422493d35a3c0ff7bae1422e2c0fc0720a5c705 | [] | no_license | yanqinghao/KerasDL | 3ea6246495bc01bda5792a7146ad4519088375dc | 853f2872fff600fdd62d882d52d6dd6f82200cd8 | refs/heads/master | 2020-03-28T14:07:10.799496 | 2019-05-20T06:17:51 | 2019-05-20T06:17:51 | 148,458,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | import ptvsd
# Allow other computers to attach to ptvsd at this IP address and port.
ptvsd.enable_attach(address=('10.122.24.46', 3000), redirect_output=True)
# Pause the program until a remote debugger is attached
ptvsd.wait_for_attach()
import ssl
ssl._create_default_https_context = ssl._create_unverified_context... | [
"187280967@qq.com"
] | 187280967@qq.com |
1467080cc60312b2af114571aaf42827195feca1 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/LQ/LQToCMu_M_800_TuneZ2star_8TeV_pythia6_cff.py | 1e0c27817afa82ce4cc3f09aea6c3fd1520590fb | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,777 | py | import FWCore.ParameterSet.Config as cms
source = cms.Source("EmptySource")
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity... | [
"sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch"
] | sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch |
c9d58c17e864ab025f0a150793e137ea2d21d2f7 | 009628e385aca8552dad5c1c5cba018ca6e5954d | /scripts/cazalsconnolling | 63c09a69565fefe3cdc31f78c056fdc17bca2aa8 | [] | no_license | csrocha/python-mtk | 565ebcfeb668a6409d48135bf081321d8121b263 | c3ba520f55c2e204feb6b98251abcb046e51c6cd | refs/heads/main | 2023-01-12T02:46:44.457520 | 2020-11-17T20:20:59 | 2020-11-17T20:20:59 | 313,939,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | #!/usr/bin/python
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
import sys, os
import os.path as path
from math import copysign
from numpy import array, zeros, arange, float, abs, argmax, all
from numpy import ndenumerate,round, dot, outer, arccos, pi, nan
from numpy.linalg import det, norm
from mt... | [
"cristian.rocha@moldeo.coop"
] | cristian.rocha@moldeo.coop | |
b2514650358f9f9158ce3d6cff20a73195fa8295 | c18bdb1abf3bb9be1997a568e2260850c11137ab | /lib/tinyusb/hw/mcu/microchip/samd/asf4/tools/update_from_atmel_start.py | 0ef2a04c372b36a6d8f7d128ead7f5776f2a39e1 | [
"MIT"
] | permissive | diybitcoinhardware/micropython | a730026ad7fa4e3cff4cb5ed14dd6b3f1fb54734 | 6bdf1b69162b673d48042ccd021f9efa019091fa | refs/heads/master | 2022-11-23T04:42:47.976301 | 2022-11-07T14:25:09 | 2022-11-07T14:25:28 | 182,322,508 | 4 | 4 | MIT | 2022-10-16T11:47:28 | 2019-04-19T20:34:49 | C | UTF-8 | Python | false | false | 2,514 | py | import requests
import zipfile
import os.path
import shutil
import os
import os.path
import sys
import subprocess
if not subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], universal_newlines=True).strip() == os.getcwd():
print('Please run "{}" from the top directory in the asf4 repo.'.format(sys.argv... | [
"snigirev.stepan@gmail.com"
] | snigirev.stepan@gmail.com |
eb41704997bf530667ea55f44b8a1c784eaeb6b5 | 871454bb6203d26f93c144cb8604e5c6276ab94b | /auth/demo/serializers.py | eae85b34749d46389279c7317dc7fb45f67302a9 | [] | no_license | netology-code/DJ_code | 1b13a51b7f85c1f35dcfb2b2d010fe2ded7eb297 | a9b657aa6e2d9b3a9f4f4c4c120bb30e8802c042 | refs/heads/master | 2023-06-20T11:35:44.791530 | 2021-07-25T14:41:21 | 2021-07-25T14:41:21 | 388,563,577 | 3 | 44 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from rest_framework import serializers
from demo.models import Adv
class AdvSerializer(serializers.ModelSerializer):
class Meta:
model = Adv
fields = ['id', 'user', 'text', 'created_at', 'open']
read_only_fields = ['user',] | [
"oz.sasha.ivanov@gmail.com"
] | oz.sasha.ivanov@gmail.com |
e98cfae6341abe6f37c3f1a0a2427707d096ce33 | fb54704d4a6f9475f42b85d8c470e3425b37dcae | /medium/ex723.py | 72d622c13c82343615c20230acd3754aceafcd33 | [] | no_license | ziyuan-shen/leetcode_algorithm_python_solution | b2784071a94b04e687fd536b57e8d5a9ec1a4c05 | 920b65db80031fad45d495431eda8d3fb4ef06e5 | refs/heads/master | 2021-06-27T05:19:47.774044 | 2021-02-04T09:47:30 | 2021-02-04T09:47:30 | 210,991,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | class Solution:
def crush(self, board):
for r in range(self.nrow):
p1 = 0
p2 = 1
while p2 < self.ncol - 1:
val = abs(board[r][p1])
while p2 < self.ncol and abs(board[r][p2]) == val:
p2 += 1
if p2 - p1 > 2... | [
"ziyuan.shen@duke.edu"
] | ziyuan.shen@duke.edu |
a0f7d764e965e2a2a6b2307b6cffc09c9e55114e | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/test/test_timeout.py | 48fdc0108adcd87a0723272de8ee9ff835c08394 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 7,061 | py | """Unit tests for socket timeout feature."""
import unittest
from test import test_support
# This requires the 'network' resource as given on the regrtest command line.
skip_expected = not test_support.is_resource_enabled('network')
import time
import socket
class CreationTestCase(unittest.TestCase):
... | [
"278688386@qq.com"
] | 278688386@qq.com |
ea2aa046e4ada2f0e7f4f8eabf7b353f0795682a | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/mtledn001/question1.py | d2992358e9f1fd6e7a51fafadabd786f4caafacd | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # Draw a rectangle
h = eval(input('Enter the height of the rectangle:\n'))
w= eval(input('Enter the width of the rectangle:\n'))
for i in range(1,h+1):
print("*"*w)
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
a8f1dd9db7c0ce138615ac6844de319aaa5c692f | dec29f40788478f73798f23b79ca892b3121150a | /apps/product/migrations/0006_product_featured.py | 239bba971c32d72c05c0f20fc7113bd3b3a59639 | [] | no_license | RonaldTheodoro/django-ecommerce | 2c661e6f3ae0154ecb7a8e25183875da8c27d14f | 9097049107e5a7ab52474aa89fe40f02689fb24a | refs/heads/master | 2021-05-06T02:08:51.166682 | 2017-12-17T00:32:03 | 2017-12-17T00:32:03 | 114,499,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-30 11:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0005_auto_20171119_1838'),
]
operations = [
migrations.AddField(... | [
"ronald.silva4@fatec.sp.gov.br"
] | ronald.silva4@fatec.sp.gov.br |
52a14bcf8d67657749c1e9d1a0a544f03ad604c3 | 6644e20a38f22b2b0842981b9b4855fb08bb0113 | /exer706.py | d303559ba7fbd7a9ddd388a86fe41bc3f199b33d | [
"MIT"
] | permissive | profnssorg/valmorMantelli1 | 506acb35243aeea24701d70e369280f064a3024e | a9a42218b54da208e834f333aa5242d14639b28b | refs/heads/master | 2020-04-11T13:55:03.354177 | 2019-01-18T20:28:33 | 2019-01-18T20:28:33 | 161,834,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | ###Titulo: Leitor de string
###Função: Este programa lê três strings e substitui na primeira os caracteres da segunda e terceira
###Autor: Valmor Mantelli Jr.
###Data: 08/01/2019
###Versão: 0.0.13
# Declaração de variáveis
f = ""
s = ""
t = ""
x = ""
p = ""
y = 0
#Entrada de dados
f = input("Digite a primeira... | [
"noreply@github.com"
] | profnssorg.noreply@github.com |
e88c2e150d4d4d9f1fee48c6f67a8495f4ed9ccc | d2cb388a385598489e36817afb15502596780dc2 | /hedgehog/test_bayes_net.py | 4ac37b9ca124ff2baad63ef64502765f00f3f245 | [
"MIT"
] | permissive | dormanh/hedgehog | 2ab5bd0fe58e8e8d4fb6410946a532c4a5d09f7c | 6ebb6fad04dcae810e16768cfc90e6a12bbc5cd4 | refs/heads/master | 2023-03-13T05:45:42.648064 | 2021-02-28T13:49:20 | 2021-02-28T13:49:20 | 343,113,432 | 0 | 0 | MIT | 2021-02-28T13:34:20 | 2021-02-28T13:34:19 | null | UTF-8 | Python | false | false | 3,524 | py | import copy
import importlib
import inspect
import math
import random
import numpy as np
import pandas as pd
import pytest
import hedgehog as hh
def check_partial_fit(bn):
"""Checks that partial_fit produces the same result as fit."""
bn_partial = copy.deepcopy(bn)
# Fit the parameters of the first BN... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
065879523e20eb090c83b185d34a52dad01e6602 | c71799bd4e86b8354588e395396e559df867843b | /utility/utility_env.py | 07867072760d3dfc04b871d842687612217b90a6 | [] | no_license | jacob-heglund/capture-the-flag | ab564c6f271dd2bb2bc07dd4660eb0798f5480f4 | 99423e6606fa4f32358df91f83d69b39c68c6593 | refs/heads/master | 2020-09-06T20:03:17.997672 | 2019-11-08T19:37:31 | 2019-11-08T19:37:31 | 220,535,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,781 | py | import numpy as np
import gym_cap.envs.const as CONST
UNKNOWN = CONST.UNKNOWN # -1
TEAM1_BG = CONST.TEAM1_BACKGROUND # 0
TEAM2_BG = CONST.TEAM2_BACKGROUND # 1
TEAM1_AG = CONST.TEAM1_UGV # 2
TEAM1_UAV= CONST.TEAM1_UAV # 3
TEAM2_AG = CONST.TEAM2_UGV # 4
TEAM2_UAV= CONST.TEAM2_UAV # ... | [
"jheglun2@illinois.edu"
] | jheglun2@illinois.edu |
6a61a4502a0334d46da5be716ffb38dbcc31975f | 583fdb9f37dea28ada24e335f1e44ba6cf587770 | /860 柠檬水找零.py | 109ef98e4711690d86ba8fbc1ce323e5179e55a1 | [] | no_license | Ford-z/LeetCode | 8c4c30eeaa3d8f02b24c8d0058c60f09c3a6debe | 88eeca3780b4dc77efce4f14d317ed1c872cf650 | refs/heads/master | 2021-11-21T00:51:05.314084 | 2021-09-16T15:45:18 | 2021-09-16T15:45:18 | 194,425,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | #在柠檬水摊上,每一杯柠檬水的售价为 5 美元。
#顾客排队购买你的产品,(按账单 bills 支付的顺序)一次购买一杯。
#每位顾客只买一杯柠檬水,然后向你付 5 美元、10 美元或 20 美元。你必须给每个顾客正确找零,也就是说净交易是每位顾客向你支付 5 美元。
#注意,一开始你手头没有任何零钱。
#如果你能给每位顾客正确找零,返回 true ,否则返回 false 。
#来源:力扣(LeetCode)
#链接:https://leetcode-cn.com/problems/lemonade-change
#著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
class Solution:
def... | [
"noreply@github.com"
] | Ford-z.noreply@github.com |
1c6da6f5d8052821f26f42065a6f5aaba410456d | dec494542217437afa7f38e8703328b25b183cb8 | /39.py | c80519dded9c7ba9b7dd4286c678e9a42e4168c1 | [] | no_license | Transi-ent/LeetcodeSolver | ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd | a89e19753666657a6f15c1be589b9b2dbd4b6c84 | refs/heads/master | 2021-04-16T20:37:34.710175 | 2021-02-24T03:51:43 | 2021-02-24T03:51:43 | 249,383,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | class Solution:
"""
回溯法。枝叶粗大,
"""
def combinationSum(self, candidates: list, target: int) -> list:
s = set()
res = self.findCombnt(candidates, target, 0, [],[],s)
print(res)
return res
def findCombnt(self, nums: list, target: int, index: int,
tmpli... | [
"1305113016@qq.com"
] | 1305113016@qq.com |
3a6b487f57c857ad7468ca3079d6f2dcc05ee7d9 | dd31ec8f3f979b0339cf686ce9094def03ef003a | /almoxarifado/admin.py | 439d557537488c4abfc4866aa38d2ec5b78db9fc | [
"MIT"
] | permissive | rvmoura96/projeto-almoxarifado | 872bb945b4057bdbf108776e2101e9966a23f4de | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | refs/heads/master | 2022-11-11T07:45:33.475443 | 2017-11-21T21:13:19 | 2017-11-21T21:13:19 | 106,044,249 | 1 | 1 | MIT | 2022-10-26T05:02:32 | 2017-10-06T19:48:08 | Python | UTF-8 | Python | false | false | 322 | py | from django.contrib import admin
from .models import Equipamento, Item, Tipo, TipoItens, Modelo, Fabricante
# Register your models here.
admin.site.register(Tipo)
admin.site.register(TipoItens)
admin.site.register(Modelo)
admin.site.register(Fabricante)
admin.site.register(Equipamento)
admin.site.register(Ite... | [
"rvmoura.96@gmail.com"
] | rvmoura.96@gmail.com |
ff9ef6987c579208033a4e26c738b75647883f52 | bb81b9c70f204e636560dc969b68c1654e24cb77 | /tests/i2b2modeltests/metadatatests/test_modifier_dimension.py | 8b6124f32a4a8cc9d09f52c4faf5c4d17e173218 | [
"Apache-2.0"
] | permissive | BD2KOnFHIR/i2b2model | 8f526225498ccfadddeb180e76d644f1098a4041 | 566be446f4b8691f8d82d5d04b7635248aba6041 | refs/heads/master | 2021-04-27T20:52:59.357953 | 2020-04-14T17:01:02 | 2020-04-14T17:01:02 | 122,386,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import unittest
from collections import OrderedDict
from datetime import datetime
from dynprops import as_dict, clear
from i2b2model.shared.i2b2core import I2B2Core
from i2b2model.testingutils.base_test_case import BaseTestCase
class ModifierDimensionTestCase(BaseTestCase):
def setUp(self):
clear(I2B2Co... | [
"solbrig.harold@mayo.edu"
] | solbrig.harold@mayo.edu |
dbc9ed063bb15f5e00d2bafe49c707761c1595fe | e58e59ed72562454750c87556bf44d7a4bae5065 | /pymontecarlo_casino2/expander.py | da2650a680f18028b0b14a523f6e6077d26b8430 | [
"Apache-2.0"
] | permissive | tomyanmmx/pymontecarlo-casino2 | 587c67bc32217a5eb23583f58a6a88511f3c69e2 | d1c7eb761ccbde745fe858caf9490e87b13347d5 | refs/heads/master | 2021-05-07T22:59:52.396739 | 2017-09-10T14:22:59 | 2017-09-10T14:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | """"""
# Standard library modules.
# Third party modules.
# Local modules.
from pymontecarlo.options.program.expander import Expander, expand_to_single
# Globals and constants variables.
class Casino2Expander(Expander):
def expand_analyses(self, analyses):
return expand_to_single(analyses)
| [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
22da037eb35ae20878e8e83e233f08cc4cad5413 | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P430.py | 2e1a4f1b681e32e310db002cc62a8f5a002e90be | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, prev, next, child):
self.val = val
self.prev = prev
self.next = next
self.child = child
"""
def tail(node):
if node is None:
return None
t = node
while t.next is not None:
t = t.next
re... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
a7e12fe087d3ae0a715b5abdef52d114f3c2ff4f | 6452098273ff0555d3edf349ed800958cf89b7d8 | /Posts/posts/migrations/0003_auto_20190626_1200.py | 6fb96575c2c8114c2c9aa2295368ad35fb88895a | [] | no_license | karthik018/DjangoPractice | 8a530ec90d6efd7cc9c7122743bc647d6274b736 | 041e1144e8b6153f5f8c0d5a367472f1e68a9dc6 | refs/heads/master | 2020-06-11T08:07:59.201541 | 2019-06-27T08:54:42 | 2019-06-27T08:54:42 | 193,900,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.2.2 on 2019-06-26 12:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20190626_1134'),
]
operations = [
migrations.AlterField(
model_name='comment... | [
"thinkcreative01karthik@gmail.com"
] | thinkcreative01karthik@gmail.com |
db4718b5c11abc46048e756487f6714698f41805 | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/415_Add_Strings.py | abfc1fed5d4ddd31c6b7d8e9156cb801b0847556 | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | """
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.
Note:
The length of both num1 and num2 is < 5100.
Both num1 and num2 contains only digits 0-9.
Both num1 and num2 does not contain any leading zero.
You must not use any built-in BigInteger library or convert the... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
b5e0e9c943a15be5ba40d7ff9c3c755ac2c3a131 | 7748d76ac2557477733c245189a5510e793c965a | /5 - Django/Amadon/apps/amadon/views.py | 9c08620dd6db4778c4a77f3047aef83137c8ccee | [] | no_license | ectom/Coding-Dojo-Python-Stack | 9798fd0c452389d485d343659eed7132c61b9055 | 07d2d48e966f4210627a1a11d561f1d28e8a9982 | refs/heads/master | 2021-06-27T22:59:40.794253 | 2017-09-15T09:54:40 | 2017-09-15T09:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from django.shortcuts import render, HttpResponse, redirect
def index(request):
try:
request.session['data']
request.session['total_price'] = 0
request.session['total_quantity'] = 0
except:
request.session['data'] = []
return render(request, 'amadon/index.html')
def process... | [
"etom579@gmail.com"
] | etom579@gmail.com |
5e4a349d5502380c981d7f17a2242bfa4f4745a3 | b7ad21dc8a2bf3459f8f65c7c2df944f168b9086 | /regression_tests/bugs/78484.py | fcfaf180b6266f5d2fdf43038e46c5cdbba6e362 | [] | no_license | italiangrid/WMS-Test-Suite | ee99651cdacbd18ec202ba3d62d6c1aeb02ab405 | 0c72c8a868c671691eae55800e906d55d9b5de0d | refs/heads/master | 2016-09-03T06:28:05.953113 | 2013-11-25T13:29:30 | 2013-11-25T13:29:30 | 3,335,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | #
# Bug: 78484
# Title: [ YAIM_WMS ] Multiple parameter configuration added in condor_config.local
# Link: https://savannah.cern.ch/bugs/?78484
#
#
import logging
from libutils.Exceptions import *
def run(utils):
bug='78484'
logging.info("Start regression test for bug %s"%(bug))
logging.warning("To ve... | [
"akretsis@ceid.upatras.gr"
] | akretsis@ceid.upatras.gr |
253068a67dcd85f578e3f01e7400efd2cdf1f67e | f2149869f6b2d12ce0fe68cecaf3b7c63dc6d3d8 | /src/paramCube.py | b41e2345df0684e08dc9287533832617e552a305 | [] | no_license | mclaughlin6464/HODEmulator | 35946bb55ead0427970dece32110a5932018d561 | 97a86c6c74cc49689478dde3155ab7a4c89f7c91 | refs/heads/master | 2020-04-05T14:09:05.870165 | 2016-08-31T00:56:44 | 2016-08-31T00:56:44 | 55,720,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,599 | py | # This module is similar to testSeveralSteps, but with an increase in scale.
#@Author Sean McLaughlin
import numpy as np
from time import time
from os import path
from itertools import izip
import argparse
from myCats import cat_dict
from allCorrFunc import loadHaloAndModel, popAndCorr, RBINS, MIN_PTCL
from doBatchCa... | [
"mclaughlin6464@gmail.com"
] | mclaughlin6464@gmail.com |
565266b855d7039287e4042a28519c553237365d | 0c5ab5c69ed77ed9a0613e4cefd3fc1b418ceef6 | /FinalProject/WordSeg/SylMap.py | 060d497164e78364b3b7d61ee8d8eeef063be86f | [] | no_license | Neil-Do/HUS-Python | 00831eb1121690f76752867ccfdcb8bd98973af6 | 630849717bb27b99a9ddfb33ae479485ebb032d4 | refs/heads/master | 2020-09-13T10:54:50.523791 | 2020-01-17T06:53:43 | 2020-01-17T06:53:43 | 222,749,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | class SylMap():
def __init__(self):
sylMapDataFile = open("../data/VNsyl.txt", 'r')
size_ = sylMapDataFile.readline()
self.syl_ = set(syllabel.strip() for syllabel in sylMapDataFile)
sylMapDataFile.close()
def isVNESE(self, token):
return token in self.syl_
# da test
| [
"dotatthanhk60@gmail.com"
] | dotatthanhk60@gmail.com |
01c70cd54c7ba983dca24fdedac9503fe11c80ca | cc26a1bbae6af3dec61fd27e44484e01da21d36e | /Scientific Expedition/Sum by Type/mission.py | 7577f5f610a89a6c3cd896fe72c83b758d036bf5 | [] | no_license | ofisser86/py-check-io | 6bacef0783987e49f3bf28b9bea74e59e4ebb184 | 70469deea240f03199072f2dd28d6819815a2624 | refs/heads/master | 2023-02-02T09:32:53.934629 | 2020-12-16T13:44:51 | 2020-12-16T13:44:51 | 309,277,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from typing import Tuple
def sum_by_types(items: list) -> Tuple[str, int]:
# your code here
return "".join([i for i in items if type(i) is str]), sum([i for i in items if type(i) is int])
if __name__ == '__main__':
print("Example:")
print(sum_by_types([]))
# These "asserts" are used for self-ch... | [
"ofisser86@gmail.com"
] | ofisser86@gmail.com |
196450c05cebf762582c46904661852744c4960a | d200a54adcec3a254a909b9689f925c1614f6fb1 | /backend/core/urls.py | 6a071e60621875e2de757a1a6ad7a79bb286993f | [] | no_license | shusaku-ishikawa/binance | 1bbe7f4aaf32c0ade4f67da7a4c1972f414bfa19 | 60bad0848fa4f4666e2476117a79ee8452326ed1 | refs/heads/master | 2022-01-27T01:35:24.038917 | 2019-11-30T12:42:36 | 2019-11-30T12:42:36 | 204,909,653 | 0 | 1 | null | 2022-01-15T05:20:54 | 2019-08-28T10:50:13 | JavaScript | UTF-8 | Python | false | false | 137 | py | from django.contrib import admin
from django.urls import path
app_name = 'core'
urlpatterns = [
path('admin/', admin.site.urls),
]
| [
"ishikawasyuusaku@gmail.com"
] | ishikawasyuusaku@gmail.com |
2685be9bebb71c12c8a3a6a0c4af0206ea9d012b | ff7ed554b920bf1871e0e8991e4aa1fb5084f152 | /src/scoring/scorer.py | db30a09dca5aec826b5b5fc8c0f9583ce8c5213c | [
"BSD-3-Clause"
] | permissive | uw-bionlp/ards | 68bfec52c4b2c2a4b4878acf089709cb1ddebddb | e9fc27f7034cc6b54f0ccdba4a58377948cf0258 | refs/heads/main | 2023-04-04T19:48:41.375668 | 2021-04-15T01:05:25 | 2021-04-15T01:05:25 | 358,041,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,695 | py | import logging
import os
from collections import OrderedDict, Counter
import pandas as pd
class Scorer(object):
def __init__(self):
pass
def compare(self, T, P):
return None
def combine(self, dfs):
return None
def fit(self, T, P, params=None, path=None):
'''
... | [
"ndobb@uw.edu"
] | ndobb@uw.edu |
a48fc7b47b8c888ac0173f2c85b6eee2778b957f | eac7f7b96ebce1351dc6b50e45f1fcfa0f930dbb | /python/graphscope/interactive/query.py | b848c3c4251f27b449d1ffbb815dab5ff5b304e6 | [
"Apache-2.0"
] | permissive | Jancd/GraphScope | 82bc43e02717fc3df1811ccfb73f476649b709fa | e162f11886dc49d68038836b665aa5381cea8d24 | refs/heads/main | 2023-01-31T18:40:06.995923 | 2020-12-15T01:24:12 | 2020-12-15T01:24:12 | 321,543,831 | 1 | 0 | Apache-2.0 | 2020-12-15T03:39:00 | 2020-12-15T03:38:59 | null | UTF-8 | Python | false | false | 5,129 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 Alibaba Group Holding Limited. 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... | [
"linzhu.ht@alibaba-inc.com"
] | linzhu.ht@alibaba-inc.com |
ed4062b3b9dba0e71e56a70a329d543dd325663d | 4f0ceccea62d3c909af88a7e3f5e1d063ed94b2e | /1368_Minimum Cost to Make at Least One Valid Path in a Grid.py | 8406191983ad2ec32fef45f5613be51ea9b98894 | [] | no_license | 0as1s/leetcode | d19c2ec4f96666a03227871b9b21b26adcd6b3b4 | c82d375f8d9d4feeaba243eb5c990c1ba3ec73d2 | refs/heads/master | 2021-05-09T21:30:35.378394 | 2021-02-01T15:37:37 | 2021-02-01T15:37:37 | 118,729,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | def minCost(self, grid: List[List[int]]) -> int:
if not grid or not grid[0]:
return True
m, n = len(grid), len(grid[0])
directions = [[0,0],[0,1],[0,-1],[1,0],[-1,0]]
q = deque([(0,0,0)])
visit = set()
visit.add((0,0))
while q:
cx, cy, dis = q.popleft()
if cx == m-1 and cy == n-1:
return dis
vis... | [
"still_crazy@qq.com"
] | still_crazy@qq.com |
82613acce0ae9f7f5f98b7e788444a5660de8c5c | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/goatLatin_20200803094226.py | 95977408a574cf0cbbe7838b30f3c6531d9dfa24 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | def goalLatin(S):
vowels = {'a','e','i','o','u'}
S = S.split(" ")
count = 1
for i in range(len(S)):
begin = 'a'
newWord = ""
if S[i][0] in vowels:
begin = begin * count
newWord += S[i] + "ma" + begin
else:
begin = begin * count
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
1ce1c226b036e66a4128c738fb794ba8a6a298eb | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/UnitedVoucherDigest.py | 215bbce60af562cae3f1e47b250b8e73ca0210bc | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 5,157 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class UnitedVoucherDigest(object):
def __init__(self):
self._budget_close = None
self._ceiling_amount = None
self._discount_type = None
self._from_amount = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
c8be4275c567f1b45a9c30be24e70d5c9f86cb5f | bc441bb06b8948288f110af63feda4e798f30225 | /terraform_sdk/model/inspection/metric_group_pb2.pyi | 744283cf0fc142859439410d535c139cf855a348 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
811d4b3ee04b7828cbc1c09b26fa4f53da40ae09 | 2b28814e50b036a17afb26cd56accdacb6f38854 | /src/api/migrations/0001_initial.py | c91b14a01d4a3367c1fbda7671980d2c60cc7a76 | [
"BSD-2-Clause"
] | permissive | Financial-Times/bullet-train-api | c6660965ca5e8f956b7666bde35b5f64bf18f773 | a54e0df1c85ff353c1b5c3056ea3e3e4d1fc7006 | refs/heads/master | 2023-08-03T16:31:06.503907 | 2021-02-10T09:29:35 | 2021-02-10T09:29:35 | 170,123,292 | 1 | 1 | BSD-3-Clause | 2019-10-01T16:26:51 | 2019-02-11T12:14:35 | Python | UTF-8 | Python | false | false | 4,536 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-04-20 12:59
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"matthewe@solidstategroup.com"
] | matthewe@solidstategroup.com |
60ea8faede03779356d2fbe48b62b1b293086d76 | 1c0175a77bb5edb1a9d2f9ea795cf15b42e5c5c2 | /hackbright.py | 93d596be219ac559ef29f834e8d4ef8136720d13 | [] | no_license | jengrace/project-tracker-flask2 | 89fb53a03c0e07a4c25c3ff45be424c03b7e78d2 | 49125d272537d2dbb8259e2b9b94f8816a3a7d26 | refs/heads/master | 2021-04-30T07:00:24.470001 | 2017-01-25T21:03:10 | 2017-01-25T21:03:10 | 79,973,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | """Hackbright Project Tracker.
A front-end for a database that allows users to work with students, class
projects, and the grades students receive in class projects.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
def connect_to_db(app):
"""Connect the database to our Flas... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
c9923efa24c881279a13f57397a90a6c1b858295 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /scripts/ci/pre_commit/pre_commit_check_2_2_compatibility.py | d4fe0ea78d24abc8a7965ec863bd16283ce84c71 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 4,803 | py | #!/usr/bin/env python
# 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
# "Li... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
28643ece960fbdb5ec5bf2ab0ecc38b9f974345c | b8fd7e01a7069a0666eb2fe21991753fd5ff7860 | /Python Language/Stack/3 . top.py | 89b10fca7acd6e331210a9db5f36ac8f9bed3454 | [] | no_license | Jafoor/Leet-Code-Solved-Problems | 0b6be0f3c82b1bc13c0c484782db65601cefa7b8 | 935e5679e04bf6f9c9d8a0bdf8b204923a2bc7a5 | refs/heads/master | 2023-07-02T13:38:59.690783 | 2021-07-19T16:20:48 | 2021-07-19T16:20:48 | 256,105,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Stack:
#declearing stack
def __init__(self):
self.stack = []
#pushing values
def push(self, data):
self.stack.append(data)
#pop element from Stack
def pop(self):
if len(self.stack) <= 0:
return ("No elemennt to pop")
else:
return s... | [
"abujafor.cse11@gmai.com"
] | abujafor.cse11@gmai.com |
e5e2f907488bbd1e533f57e90d04fbf9ca1a94e9 | 33ce95a46bad431fb9acde07f10f472c43533824 | /functions_advanced_exercise/keyword_argument_length.py | 8521f0728b213aa0197f75f270a97e0e6e220239 | [] | no_license | ivan-yosifov88/python_advanced | 91dead1a44771a46e85cecdfc6b02e11c0cb4d91 | 21830aabc87eb28eb32bf3c070bf202b4740f628 | refs/heads/main | 2023-06-29T21:31:30.285019 | 2021-06-23T20:31:36 | 2021-06-23T20:31:36 | 342,571,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def kwargs_length(**kwargs):
return len(kwargs)
dictionary = {'name': 'Peter', 'age': 25, 'baba': 'Peter'}
print(kwargs_length(**dictionary))
| [
"ivan.yosifov88gmail.com"
] | ivan.yosifov88gmail.com |
e902eec2088a110c55e9d2063a8d882bcd34f49d | 0c021e881a2d5507f2dd0600a7bc36fa2b8de112 | /turtlecircle.py | 31d3b56a4add57cb27afc03411115accd4f46ccf | [] | no_license | Techsrijan/girlspolytechnic | 016299f28d808f7628693dec555642463862a537 | 0eb136632dd37c1e65ac290509ed166144e8d2a0 | refs/heads/main | 2023-02-03T20:40:30.474711 | 2020-12-16T10:22:59 | 2020-12-16T10:22:59 | 307,243,788 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from turtle import *
import time
t=Turtle()
s=Screen()
s.title("Circle Example")
s.setup(800,600)
'''t.circle(50) # anticlockwise
t.circle((-100))
t.up()
t.forward(200)
t.down()
t.pencolor("red")
t.circle(300)
'''
t.circle(50)
t.up()
t.goto(-100,-100)
t.down()
t.circle(50)
t.undo()
t.reset()
time.sleep(2)
t.write("Thi... | [
"aswanibtech@gmail.com"
] | aswanibtech@gmail.com |
1e75f91cfeb5d9ec5f124aa4adcddf060fb9624d | 2329ba07662331526c508e16512eb8c194c2d0c8 | /src/measurement/area/imperial.py | 6b26952f153010fe609458008baeca02b9c31ad8 | [] | no_license | patricknevindwyer/Converto | 9265e2c6a7af88f6d2a767baed78ce8e95b83215 | 8b9a874a63a8fefde3149d8f6c28c338cc20f09f | refs/heads/master | 2020-05-18T19:58:49.335100 | 2010-12-03T13:40:40 | 2010-12-03T13:40:40 | 1,091,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | '''
Created on Dec 3, 2010
@author: patricknevindwyer
Imperial measurements of Area.
'''
from measurement.bases import Area
square_feet = Area(
toBaseUnit = 0.09290304,
fromBaseUnit = 10.7639104,
suffixes = ('square foot', 'square feet')
) | [
"patricknevindwyer@gmail.com"
] | patricknevindwyer@gmail.com |
879cdf55ca3f1f61547f825cbd91ff885eb084e1 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/dossier/content_deleter.py | a165f1f965b4eda76e04acabca72a444e73e2129 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 707 | py | from opengever.base.browser.folder_buttons_availability import FolderButtonsAvailabilityView
from opengever.base.content_deleter import BaseContentDeleter
from opengever.dossier.behaviors.dossier import IDossierMarker
from zExceptions import Forbidden
from zope.component import adapter
@adapter(IDossierMarker)
class ... | [
"e.schmutz@4teamwork.ch"
] | e.schmutz@4teamwork.ch |
a01f9443c22e4e22c3db6a462ca1c40ad91e0bd4 | d85fbcf9199a46d7ce43537a6b333e381fd1b868 | /argo/workflows/dsl/__about__.py | eb032ad16c682ac31874759e105c26fd5d1f1c5c | [
"Python-2.0",
"Apache-2.0"
] | permissive | binarycrayon/argo-python-dsl | 78af89ab6a4e522a0bd9b1a28124ce687d544cef | 0eb6fcf1c0901c842dd280d8c052981b5b3378ce | refs/heads/master | 2021-02-13T15:35:52.177954 | 2020-03-08T07:41:46 | 2020-03-08T07:41:46 | 244,710,162 | 0 | 0 | Apache-2.0 | 2020-03-03T18:22:47 | 2020-03-03T18:22:47 | null | UTF-8 | Python | false | false | 500 | py | """About this package."""
__all__ = [
"__title__",
"__summary__",
"__uri__",
"__version__",
"__author__",
"__email__",
"__license__",
"__copyright__",
]
__title__ = "argo-workflows-dsl"
__summary__ = "DSL for Argo Workflows"
__uri__ = "https://github.com/CermakM/argo-python-dsl"
__ver... | [
"macermak@redhat.com"
] | macermak@redhat.com |
a13ba3403a954a805e8bc586f2179587ed19b562 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02843/s696796090.py | 05e70395147aa3317b5c278c07796ed013434575 | [] | 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 | 348 | py | X = int(input())
price = [100,101,102,103,104,105]
dp = [[0]*100001 for _ in range(6)]
dp[0][0] = 1
for i in range(100,100001):
dp[0][i] = dp[0][i-100]
for i in range(1,6):
for j in range(price[i]):
dp[i][j] = dp[i-1][j]
for j in range(price[i],100001):
dp[i][j] = max(dp[i-1][j],dp[i][j-p... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b0ae8f4bfb739eb24ac9fc0d06617715c46a65d9 | e84020108a7037d8d4867d95fada1b72cbcbcd25 | /src/chattisgarh/fto/processFTOStatus.py | d660f4fc16006a208a39e4abc60bff1a449ef8b8 | [] | no_license | rajesh241/libtech | 8384316051a2e8c2d4a925cd43216b855b82e4d9 | 0105e717357a3626106028adae9bf162a7f93fbf | refs/heads/master | 2022-12-10T03:09:00.048841 | 2020-06-14T09:39:04 | 2020-06-14T09:39:04 | 24,629,538 | 1 | 1 | null | 2022-12-08T02:26:11 | 2014-09-30T07:57:45 | Python | UTF-8 | Python | false | false | 3,182 | py | import csv
from bs4 import BeautifulSoup
import requests
import MySQLdb
import time
import re
import os
import sys
fileDir=os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, fileDir+'/../../includes/')
from settings import dbhost,dbuser,dbpasswd,sid,token
from globalSettings import datadir
#Error File Defina... | [
"togoli@gmail.com"
] | togoli@gmail.com |
04231d91e5d33e957c15c28892b7716bb60a70c1 | 895dfeb5c6af5e8c66772491d164e9d5b57d4302 | /Courses/Full_Stack_Foundations/restaurant_raw/webserver.py | 7fa49de6ca38602236c51866bf2598078cc5b8a0 | [] | no_license | JPGITHUB1519/FSND-Udacity | 753747aac6b727ac7a0e98d95059127bf8a3690d | a7acb4df6ff3b2216da5749e7087b0e254ed80cd | refs/heads/master | 2020-12-30T12:11:21.051853 | 2017-10-05T02:30:22 | 2017-10-05T02:30:22 | 91,410,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | import os
import cgi
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from jinja2 import Environment, FileSystemLoader, select_autoescape
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
### jinja config
config = {
"directo... | [
"juanpedro1519@gmail.com"
] | juanpedro1519@gmail.com |
1aa3752c58335a1b8cb63f5ca192c48180bc3889 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4062/codes/1845_2220.py | 3d32d34040dc707ac31d11f0735accdb07b48017 | [] | 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 | 131 | py | from numpy import *
m= array(eval(input("Pagamentos: ")))
l = shape(m)[0]
c = shape(m)[1]
for i in range(l):
print(max(m[i, :])) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
21a347c147a0776a230dc184af319b1643c6a013 | 4b758ca583d2a58d4d711381405e024109a0f08f | /dali/test/python/test_operator_random_resized_crop.py | 483d481dbf53a927fd48e58f3eff3b31bc9c649c | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | ConnectionMaster/DALI | 76ff07b2fa3f62490b059088c88ade7570130ff4 | 6b90519d2c209d705e8912a5f00b71a018aeaa52 | refs/heads/master | 2023-04-14T13:04:57.520421 | 2021-01-22T16:34:31 | 2021-01-22T16:34:31 | 187,683,855 | 1 | 1 | Apache-2.0 | 2023-04-03T23:45:28 | 2019-05-20T17:18:56 | C++ | UTF-8 | Python | false | false | 6,577 | py | import nvidia.dali as dali
import nvidia.dali.fn as fn
import numpy as np
import test_utils
def close(a, b):
return abs(a - b) < 1e-5 or abs(a - b) < abs(a) + abs(b) * 1e-6
def analyze_frame(image, channel_dim):
def pixel(x, y):
return image[:, y, x] if channel_dim == 0 else image[y, x, :]
x0, y0,... | [
"noreply@github.com"
] | ConnectionMaster.noreply@github.com |
2e71d123768a4baaceb7cf78751643f3bc645473 | eb8855df9efcaafe7be3c33ac6a9eba09190a802 | /article/migrations/0002_articlepost_total_views.py | 1afe206df23165b96a38b7402b009dcd70fbdaca | [] | no_license | demo112/Bloging_new | 4441b32cde519b8aa6e5fd04a30af09a2e2cbe46 | ab8fbf0e33dd91413a707491bfce3e46d4d021c9 | refs/heads/master | 2020-04-30T00:52:41.741959 | 2019-03-28T00:08:28 | 2019-03-28T00:08:28 | 176,513,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.1.7 on 2019-03-22 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='articlepost',
name='total_views',
... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
44c5dbbc3246735c0cdeeccde1162967ba8c658e | f768ddba19c7bc7664ae581daeef5fe2f650a539 | /post/post.py | ddb481a99e2e6e443b0f580bbc720d0f68fac4c2 | [] | no_license | douwings/pythonWork | 36ac2ba32a721ed6d9af62a9168eee12a61891af | 70f84eb179e12cc36b521fdb9a2573a14a300d23 | refs/heads/master | 2022-12-23T18:41:50.560391 | 2020-09-28T06:20:36 | 2020-09-28T06:20:36 | 273,136,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,047 | py | # -*- coding=utf-8 -*-
import urllib.request
import urllib.parse
import ssl
import json
import time
def postsendsms():
ssl._create_default_https_context = ssl._create_unverified_context
sendsmspost_url = 'http://172.16.2.111:3000/v1/login_by_wx'
t = time.time()
sendsmsheaders = {
# 'Conte... | [
"1020763068@qq.com"
] | 1020763068@qq.com |
736aecf523f7137ffba1df7104167bee096698f0 | 035ec6f79bb70374a54d6b491b34114fcc9f0e24 | /wtDigiTwin/fast/fastlinfiles.py | 0b796235f81f0435db9e1ae181eee4b64a327b49 | [
"MIT"
] | permissive | deyh2020/wtDigiTwin | b8b8d8f0a0ca73a6e7dddba0e3b6457a7551a9da | 2c1e965ab5fdca10e67b0db9ef87837f5abebc02 | refs/heads/master | 2023-07-14T07:23:28.628625 | 2021-07-26T15:12:22 | 2021-07-26T15:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,700 | py | import numpy as np
import pickle
import glob
import os
import weio
class FASTPeriodicOP(object):
""" Class for a set of *.lin files, all assumed to be for the same periodic operating point"""
def __init__(self,prefix,nLin=None):
if nLin is None:
linfiles= glob.glob(prefix + '*.*.lin')
... | [
"elmanuelito.github@gmail.com"
] | elmanuelito.github@gmail.com |
b6076b5e720e510264d359984df649983226d155 | bac5ecb5eef06dfe76b9b7bff80faee7485c67dd | /.history/django_vuejs_tutorial/django_vuejs/dataiku/admin_20200829045700.py | 95c85e8343b24f314b19ffb3176a56a4567e185b | [] | no_license | MChrys/dataiku | fb1e48401d544cbcc5a80a0a27668dc9d2d196e5 | 6091b24f565224260a89246e29c0a1cbb72f58ed | refs/heads/master | 2022-12-16T11:06:13.896643 | 2020-09-12T19:03:51 | 2020-09-12T19:03:51 | 293,287,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from django.contrib import admin
# Register your models here.
from .models import QCM, Answer, Task, Dataiku_account, Operation, Session, Question, Run, Posibility
admin.site.register(Task)
admin.site.register(Dataiku_account)
admin.site.register(Operation)
admin.site.register(Session)
admin.site.register(Question)
a... | [
"cbeltran@umanis.com"
] | cbeltran@umanis.com |
7b7c17e361f20416c6b1ac8296418c9a8ec75d00 | cba8f623e613cfb0cdba73fb373bec68f7bbfdcb | /ABC085D.py | 9802bdf40462578e6247674b1b8a473147a6a75d | [] | no_license | bonoron/Atcoder | 7d0af77a12b40ce2bdebf5ab5a76462629a03ea5 | e8c0d1ed7d113a0ea23e30d20e8d9993ba1430fa | refs/heads/master | 2022-12-24T20:00:32.702741 | 2020-09-24T07:03:48 | 2020-09-24T07:03:48 | 271,685,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | n,h=map(int,input().split())
A=list(tuple(map(int,input().split())) for i in range(n))
A,B=zip(*A)
a=max(A)
count=0
for i in sorted(B)[::-1]:
if h<=0:break
elif i>=a:
count +=1
h -=i
if h>0:
if h%a==0:count +=h//a
else:count +=h//a+1
print(count) | [
"noreply@github.com"
] | bonoron.noreply@github.com |
76078cb90de2d17011da5b083945e6a4c92670c6 | a0b27e1a3a17ce9ec21bea460ba75b9d72564e33 | /ublog/routes.py | 3975864270044f0b4cf884b72d3cc09e93b704b2 | [] | no_license | florije1988/ublog | f662bc0dadf0fb244af054db2ca1a491b0454827 | a94fd3a52a9898b8e89020a7b8754e52ea00d664 | refs/heads/master | 2020-12-24T20:25:02.679572 | 2016-05-09T09:39:50 | 2016-05-09T09:39:50 | 58,360,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from ublog import app
from flask import render_template, request, flash, session, url_for, redirect
from forms import ContactForm, SignupForm, SigninForm
from flask_mail import Message, Mail
from models import db, User
mail = Mail()
@app.route('/')
def home():
retu... | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
d2d869abcf663c008f157d716357b792152c0431 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/tablib-0.10.0/tablib/packages/openpyxl3/shared/date_time.py | 8a58cd098dcb8ffa0bdc3773c76a3d882c73d5c1 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-Advertising-Acknowledgement",
"MIT"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 5,931 | py | # file openpyxl/shared/date_time.py
# Copyright (c) 2010 openpyxl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | [
"abraham@elmahrek.com"
] | abraham@elmahrek.com |
f5d5c94e264e9b416f9e321c6f92c2a627772d05 | 9b265894d94a46f91ca20aab4fb5ece5d635dd16 | /LPAv/Trabalho 9 - Python/questao1.py | 5fe445972f602478bf68c2a4d9cdbae5b266bf31 | [] | no_license | JosephLevinthal/LPAv | fad4499ec294b3bbec82f73c9989fcf602f65d79 | 73ecf1cb39b550b13be558b80cbd97701ea34fa0 | refs/heads/master | 2021-09-16T11:08:07.828030 | 2018-06-20T02:56:42 | 2018-06-20T02:56:42 | 130,502,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import re
stringDeEntrada = input()
while (stringDeEntrada != "####"):
if (re.match("^([0-9]{7,7}-[0-9])$", stringDeEntrada)):
print("SIM")
else:
print("NAO")
stringDeEntrada = input()
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
faa7bd06c204447f3804c32070026adf782a82f3 | 45243d7b7412814b8cb43fefdf088099e0c93419 | /src/user/migrations/0007_user_uid.py | 090e72b9c2445055597e04d4b1cb18f3a2b3feab | [] | no_license | AlexanderNevarko/drec_stud_site | e08e621c54bdd145709913d4a69c8f089475fcad | 4e176a77bf5b4a20e57e1379581713a6fa6d2d21 | refs/heads/master | 2020-09-21T07:55:46.820999 | 2019-01-14T20:22:50 | 2019-01-14T20:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-04 12:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0006_auto_20170809_1308'),
]
operations = [
migrations.AddField(
... | [
"makaleks@live.ru"
] | makaleks@live.ru |
54e37c4b81fec916c8fc8cd7108b3e190dcd4ace | f00699824a8c5def54421ee3cf836ec2cd15d957 | /3/django_1703_day3/app01/urls.py | e7561509abebc6e85ef5e6b1b8c19ae0201bd4be | [] | no_license | ZhiqiWu/student_manage | 9171d78c32d6900b08de9034b9a2f50c9e24d0b8 | da12ebaf4e9d6357cd9f832144ed756a55510433 | refs/heads/master | 2023-03-29T04:56:09.486061 | 2020-01-24T08:11:50 | 2020-01-24T08:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.conf.urls import include, url
import views
urlpatterns = [
url(r'^$', views.index),
url(r'^zhale/$', views.zhale),
url(r'^tpl/$', views.tpl),
]
| [
"1049939190@qq.com"
] | 1049939190@qq.com |
8b50c33b2267b1a35cc4a73a591c173d6eea2280 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_revues.py | f49493dcdf30e1cce36d2723a65a559d1a24960d | [
"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 | 218 | py |
#calss header
class _REVUES():
def __init__(self,):
self.name = "REVUES"
self.definitions = revue
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['revue']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
60847a2a95c5d716ddfcd9d539af72449d1f0591 | aa49120740b051eed9b7199340b371a9831c3050 | /greaterTree.py | 3e539eb3cf0e2a93dd98c58dad666501da74daf5 | [] | no_license | ashutosh-narkar/LeetCode | cd8d75389e1ab730b34ecd860b317b331b1dfa97 | b62862b90886f85c33271b881ac1365871731dcc | refs/heads/master | 2021-05-07T08:37:42.536436 | 2017-11-22T05:18:23 | 2017-11-22T05:18:23 | 109,366,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | #!/usr/bin/env python
'''
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed
to the original key plus sum of all keys greater than the original key in BST.
Example:
Input: The root of a Binary Search Tree like this:
5
/ \
... | [
"ashutosh.narkar@one.verizon.com"
] | ashutosh.narkar@one.verizon.com |
7f18193d0a006abf5e133bd1826ca925772415d9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/marketplaceordering/manual/custom.py | c3d4d03fbbc01f38de3e9be67de777584acd4f5b | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 1,754 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | [
"noreply@github.com"
] | Azure.noreply@github.com |
36678e9ffcaa6862ab6d1a86c3294802fe005f96 | 1a1e4f0f525ebe080dcd74b7e5e8c33477eab6b8 | /backend/dating/api/v1/viewsets.py | 86fd6380f5c9628e9208d847b9a0a804ff8898db | [] | no_license | crowdbotics-apps/homedesign-20669 | 0b1e65aa4f169dd9f54cbbb9d6c4af38057b7efe | 0623f0d613cdc057079a799fccfe05db9c51ca73 | refs/heads/master | 2022-12-31T18:34:29.656171 | 2020-09-25T07:55:18 | 2020-09-25T07:55:18 | 298,505,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | from rest_framework import authentication
from dating.models import Setting, Profile, Inbox, Dislike, Match, UserPhoto, Like
from .serializers import (
SettingSerializer,
ProfileSerializer,
InboxSerializer,
DislikeSerializer,
MatchSerializer,
UserPhotoSerializer,
LikeSerializer,
)
from rest_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fde9ceaca4cd01c3520936f567cc4c0b9da7ea2f | 6a7058009587e78b5c758ff783410325ad7c2a4b | /leet/stack/removeDuplicates.py | 7b454b38480b649f7012a1ba584510296d51d6df | [
"Apache-2.0"
] | permissive | stacykutyepov/python-cp-cheatsheet | 8b96b76403c501f5579befd07b3c4a4c69fe914e | a00a57e1b36433648d1cace331e15ff276cef189 | refs/heads/master | 2023-07-16T13:26:35.130763 | 2021-08-30T11:23:39 | 2021-08-30T11:23:39 | 401,442,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | """
time: n
space: n
Remove All Adjacent Duplicates in String II
"""
class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
stk = []
for c in s:
if stk and stk[-1][0] == c:
stk[-1][1] += 1
if stk[-1][1] >= k:
stk.po... | [
"peterrlamar@gmail.com"
] | peterrlamar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.