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
39f57c10873dc5efeea1c40d3f35d8a875752a36
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_update_tags.py
8ee1c7cf9b1a0d4963d50d2406f32510d2a37a27
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,614
py
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
[ "noreply@github.com" ]
Azure.noreply@github.com
627ad397bc9cac97d59ee45e981aabac63839ec2
1e8142725aa06844713d18fa38c6779aff8f8171
/tndata_backend/goals/migrations/0039_auto_20150501_1332.py
47957608f0a0fba364284a0e0abc1a51866ca164
[ "MIT" ]
permissive
tndatacommons/tndata_backend
8f4db3e5cf5272901c9087a85e21d7560240bb3b
3d22179c581ab3da18900483930d5ecc0a5fca73
refs/heads/master
2020-12-03T07:53:17.339769
2017-03-27T06:18:58
2017-03-27T06:18:58
68,407,220
1
2
null
2017-03-27T06:18:59
2016-09-16T18:59:16
Python
UTF-8
Python
false
false
3,086
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('goals', '0038_remove_behavior_categories'), ] operations = [ migrations.AlterField( model_name='action', ...
[ "brad@bradmontgomery.net" ]
brad@bradmontgomery.net
5ab68abc62761c0926aa94485ba9a542df2e4131
3bf6b373547dae4eca53af9a9271745085632209
/backend/home/migrations/0002_load_initial_data.py
f06014022267c67e7065dad06b6386bfcd0562c7
[]
no_license
crowdbotics-apps/fruit-of-peace-18240
282f78884ed4763c5bee3609ff2184d856215d5e
b24c20465987c185a7bc39269a5166cbed287752
refs/heads/master
2022-11-06T01:14:57.924906
2020-06-19T00:08:33
2020-06-19T00:08:33
273,361,641
0
0
null
null
null
null
UTF-8
Python
false
false
1,310
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Fruit Of Peace" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage"...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
b97e93a8aed3d4500c88d2fbe332704ac8d0946b
b933eb3e7f6f5eefe2af1fb9f6c1805d91734449
/gimmemotifs/utils.py
da7823315878904bb0e0127e7bc672cd26c72a58
[ "MIT" ]
permissive
prabhakaranm/gimmemotifs
72ba44551b1b6b8463fd80f87c761bb4d8421904
33c8430883342cbf4d306d6d93e415d88f1278a8
refs/heads/master
2021-01-12T05:16:51.804387
2016-12-17T12:14:46
2016-12-17T12:14:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,026
py
# Copyright (c) 2009-2016 Simon van Heeringen <simon.vanheeringen@gmail.com> # # This module is free software. You can redistribute it and/or modify it under # the terms of the MIT License, see the file COPYING included with this # distribution. """ Odds and ends that for which I didn't (yet) find another place """ ...
[ "simon.vanheeringen@gmail.com" ]
simon.vanheeringen@gmail.com
7f3c2dc97ed990179b60119f2568b0b551417524
e73d4b7bb0bbbc6f547a9bac7b5a2a97059fbb4f
/cicd_project/blog/models.py
5c2b726e65984ebda2bda432f0c063942242e473
[]
no_license
soohyun-lee/cicd_dev
0d7ad568cfafd07d940a9938ae2a2f624b8556f7
472048d4c46ca283ede9490206055c00eabcea07
refs/heads/main
2023-08-11T01:25:43.000435
2021-08-10T01:51:06
2021-08-10T01:51:06
394,487,476
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
from django.db import models from django.db.models.fields import CharField class Booklist(models.Model): name = CharField(max_length=100, null=True) category = CharField(max_length=40, null=True) class Meta: db_table = 'bookList'
[ "soohyun527@gmail.com" ]
soohyun527@gmail.com
ff1f87d47ce4289fd8848474d974dcd85f9435dc
d7f89062dc6524f2ed3b5bee349fe3f06246ffab
/chainercv/visualizations/__init__.py
9449ed8a8e6c45c096b9d72f8ce91fadae2e2e4c
[ "MIT" ]
permissive
fukatani/chainercv
d9943afa1eb2465a36a23ffee08d4414ffa7ed84
49acfb2bd76742237e8cd3e8ce132de357b58c4d
refs/heads/master
2021-09-10T14:06:49.348027
2018-03-23T03:52:51
2018-03-23T03:52:51
114,512,105
0
0
null
2017-12-17T05:32:51
2017-12-17T05:32:50
null
UTF-8
Python
false
false
290
py
from chainercv.visualizations.vis_bbox import vis_bbox # NOQA from chainercv.visualizations.vis_image import vis_image # NOQA from chainercv.visualizations.vis_point import vis_point # NOQA from chainercv.visualizations.vis_semantic_segmentation import vis_semantic_segmentation # NOQA
[ "yuyuniitani@gmail.com" ]
yuyuniitani@gmail.com
53990e9e54df628151cb3075384dd3ecd9f10e89
a5882e39df9fb1ded1a3941c4b43646010dc2c3a
/can-funds-be-transferred-b.py
04691eb50e4ef5e978febaecdf8c3f32ac4bf31d
[]
no_license
hlltarakci/hackerrank
d58c8761cf21a64fd6f85bb6f82ae7a3964e7cf1
fb5adf854f528ac46330c45172f93dfcd37aed49
refs/heads/master
2020-03-27T08:49:52.519889
2018-08-24T06:40:08
2018-08-24T06:40:08
146,291,257
1
0
null
2018-08-27T11:58:55
2018-08-27T11:58:55
null
UTF-8
Python
false
false
2,060
py
#!/usr/bin/env python3 import functools import itertools # # Use this function to write data to socket # # write_string_to_socket(connection, message) where connection is the socket object and message is string # # Use this function to read data from socket # # def read_string_from_socket(connection) where connectio...
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
0c349048cf8dcc51df1a847c1a3fa879b204b10a
d1808d8cc5138489667b7845466f9c573591d372
/notebooks/Computational Seismology/The Finite-Difference Method/fd_seismometer_solution.py
154d22e4b1082f796247ce50c3d5933ed4f2c6e6
[]
no_license
krischer/seismo_live
e140777900f6246a677bc28b6e68f0a168ec41ab
fcc615aee965bc297e8d53da5692abb2ecd6fd0c
refs/heads/master
2021-10-20T22:17:42.276096
2019-11-27T23:21:16
2019-11-28T10:44:21
44,953,995
69
59
null
2020-05-22T11:00:52
2015-10-26T08:00:42
Python
UTF-8
Python
false
false
8,047
py
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.2.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <div style='background-image: url("../....
[ "lion.krischer@gmail.com" ]
lion.krischer@gmail.com
87ab9929f76972431b26c279e2ae1beb0af37277
4ada7aa922154f5aefd2c5ae83ea5e4e3a392c6d
/Python/algorithm/hanoi_tower/하노이의탑.py
4b6aa799cc2666c9cf56270080be00b7825ea21b
[ "MIT" ]
permissive
sug5806/TIL
ae483c0efc5c45f133993d1bd95a411fc6501140
2309d8a270e4a7b8961268a40b6492c5db317e37
refs/heads/master
2022-12-21T03:20:24.393316
2019-09-26T14:04:25
2019-09-26T14:04:25
180,498,457
0
0
MIT
2022-12-08T05:48:15
2019-04-10T03:56:28
Go
UTF-8
Python
false
false
357
py
n = 0 a = "A" # 출발 b = "B" # 중간 c = "C" # 도착 def hanoi(n, a, b, c): if n == 1: print("{}번째 원반을 {}로 이동".format(n, c)) return hanoi(n - 1, a, c, b) print("{}번째 원반을 {}로 이동".format(n, c)) hanoi(n - 1, b, a, c) if __name__ == "__main__": hanoi(3, a, b, c)
[ "sug5806@gmail.com" ]
sug5806@gmail.com
32bdcc38967b67dbf751a35e5b61bee09851481f
06c367fe2d2233c6efb64f323e15bebd7f48c625
/venv/lib/python3.6/site-packages/phonenumbers/data/region_SJ.py
c90ff44f85e3f8c821321de9306a08f67ec87f90
[ "BSD-3-Clause" ]
permissive
AkioSky/FishMart
ce630bc4addf63bc105e4f3e13e92c15b119b558
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
refs/heads/master
2022-12-11T16:13:38.277080
2019-04-22T03:44:22
2019-04-22T03:44:22
182,615,627
0
0
BSD-3-Clause
2022-12-08T01:44:37
2019-04-22T03:20:03
Python
UTF-8
Python
false
false
1,503
py
"""Auto-generated file, do not edit by hand. SJ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_SJ = PhoneMetadata(id='SJ', country_code=47, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:0|(?:[4589]\\d|79)\\d\\d)\\d{4}', poss...
[ "whitebirdinbluesky1990@gmail.com" ]
whitebirdinbluesky1990@gmail.com
1463d9705d4789697917bb07dbf5896342834968
aadea82d00400b71de86b1906ed347d10416e69b
/b28.py
00fd9fe769124a535b86b9054f0f7ab0f6658b98
[]
no_license
abishekravi/guvipython
fc0f56912691cd5a41ab20f0c36b2027ebccfb00
4fbb83f0a131775cd9eb3f810c2d1c9ad22d710a
refs/heads/master
2021-08-16T10:22:00.052735
2020-06-25T04:35:42
2020-06-25T04:35:42
196,218,458
2
27
null
null
null
null
UTF-8
Python
false
false
97
py
#a q1=int(input()) w1=list(map(int,input().split()))[:q1] for i in range(0,q1): print(w1[i],i)
[ "noreply@github.com" ]
abishekravi.noreply@github.com
0b7613ed687f0eb0d89c213de50cb5dfaf7140cd
be4459658d667c47eefeeb3cf689a678042edb94
/scripts/cloud/get_switch_known_macs.py
f796984baaffda0fb49ebb51e388f5873d9760cc
[ "Apache-2.0" ]
permissive
kparr/RIFT.ware-1
7945174aa23ac1f7d74a7464b645db5824982fc3
6846108d70b80b95c5117fdccd44ff058ac605be
refs/heads/master
2021-01-13T08:36:03.751610
2016-07-24T21:36:15
2016-07-24T21:36:15
72,420,438
0
0
null
2016-10-31T09:11:27
2016-10-31T09:11:27
null
UTF-8
Python
false
false
1,099
py
#!/usr/bin/env python # # (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import subprocess import re import os import sys macs = dict() cmds='''terminal length 0 show mac-address-table q ''' re1 = re.compile('\s*[0-9]+\s+([0-9a-f:]+)\s+Dynamic\s+Te\s+0/([0-9]+)\s+Active') devnull = open(os.devnull, "w") ...
[ "Jeremy.Mordkoff@riftio.com" ]
Jeremy.Mordkoff@riftio.com
ad0ed729ddbfca606c205b7712f4b6e4b02deb5d
9083924b324cd31f1143f54effd46b2a0ea62664
/Algoritmia/Semana2/Taller1.py
ceeefe4f52ac2f9274ed906d8cd8fd26ab47e637
[]
no_license
dcardonac31/diplomado_comfenalco
ee0321d8bba4dd31780a22d26524bcb4d8fe28bf
ce51923b927130963750ede1aadd2d671859f12b
refs/heads/master
2023-05-19T18:57:09.004508
2021-06-14T00:47:29
2021-06-14T00:47:29
372,342,348
0
0
null
null
null
null
UTF-8
Python
false
false
5,804
py
print(" EJERCICIOS CON DECISIONES LÓGICAS TALLER 1") print("1. Elabore un algoritmo que permita averiguar cuál es el nombre del mayor de 2 hermanos no gemelos. Como datos de entrada se tiene el nombre y la edad de las 2 personas.") nombre1 = input("Nombre hermano 1: ") edad1 = int(input("Ingrese edad hermano 1: ")) no...
[ "david_ec10@hotmail.com" ]
david_ec10@hotmail.com
a13567f0e3d8d8902392285c9731804607eddf86
d8f25577efe8cef687ee4f0cd9a234f1e4b39e14
/src/memorycoinrpc/config.py
5435ab138e6b95ffafb0a04085ec5dcbf65aa6b3
[ "MIT" ]
permissive
baby636/memorycoin-python
cf82f3fdc8699df30f982d8a42d8675af190b623
2b938a1be9dc360bba9d825fd3e9492d08fdddd2
refs/heads/master
2023-03-16T14:50:31.299150
2014-01-15T16:55:23
2014-01-15T16:55:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,352
py
# Copyright (c) 2010 Witchspace <witchspace81@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
[ "mail@emreyilmaz.me" ]
mail@emreyilmaz.me
09762017c24b5336f4c5d95f277192e6c1447cc1
03034837c5f10d19fcc4dc51388f056ec43fd1d2
/ex8.py
281eeca7a393efba92404cf62a6beb6b31e97edb
[]
no_license
shaukhk01/project01
e95c19844757c631f7ffbdd910b20316f49a945b
79cfe784612fdbb4816c9fc3fc7222c845a3268f
refs/heads/master
2020-06-26T07:20:49.844532
2019-08-20T06:06:40
2019-08-20T06:06:40
199,569,813
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
class P: a = 10 def __init__(self): self.b = 20 class C(P): c = 30 def __init__(self): super().__init__() self.d = 40 obj = C() print(obj.a,obj.d,obj.b)
[ "shaukhk01@gmail.com" ]
shaukhk01@gmail.com
88ebec75815792ee70d0fd841925d841c72a7b81
46d3b41f98164bd869ac7f987a644ba0d6839e2c
/accounts/api/views.py
e95bfbe80b8ff95bab7c8053668fe9576ac11920
[]
no_license
Dimas4/Blog
dc22392c82ffb7050418d05b4f149d79c91bca30
c9d6322bcf0a4b35f80c51830d1f4d5ad7f41bb3
refs/heads/master
2021-07-22T00:31:59.491338
2018-12-01T12:55:21
2018-12-01T12:55:21
135,898,131
2
0
null
null
null
null
UTF-8
Python
false
false
839
py
from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from rest_framework.response import Response from rest_framework.views import APIView from .serializers import UserCreateSerializer class Register(APIView): def post(self, request, *args, **kwargs): serializer ...
[ "vaniashatuhomail@mail.ru" ]
vaniashatuhomail@mail.ru
21ce77bc33800933fde5ac7c54caaaf1d046f917
74e53273dc5aa71293a385512b3d239971099738
/Data_structures_and_Algorithms/arrays/four_numbers_sum_k.py
806cf72e986f8984ee790d73a21007df20d839de
[]
no_license
BJV-git/Data_structures_and_Algorithms
3b240bf699e7091453f3a1459b06da1af050c415
393c504b2bb17b19e76f6d9d9cce948b4c12dbb2
refs/heads/master
2020-04-23T22:32:22.525542
2019-02-19T16:09:51
2019-02-19T16:09:51
171,504,949
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# logic: O(n3) def four_sum_k(nums,k): nums.sort() lnums=len(nums) for i in range(lnums-3): for j in range(i+1, lnums-2): l=j+1 r = lnums-1 while (l<r): summ = nums[i]+nums[j] + nums[l] + nums[r] if summ==k: ...
[ "noreply@github.com" ]
BJV-git.noreply@github.com
7aa9c8bd9de4bc0f6e608c6eaeb06f35d347808a
8d47d0bdf0f3bcc8c8f82e7624e391ba2353efe1
/openstack_dashboard/dashboards/admin/projects/tables.py
643ac828a0d5f95e54ed87ee06949a210829cd91
[ "Apache-2.0" ]
permissive
cosgrid001/cosgrid_hh
48328bbfae69f9978b82fe2c94799fbf8bc978b2
9b4dbf3c9c134f0c08c7d0330a3d0e69af12a8f4
refs/heads/master
2020-01-23T21:03:04.242315
2016-12-11T05:39:33
2016-12-11T05:39:33
74,579,908
0
1
null
null
null
null
UTF-8
Python
false
false
6,882
py
# 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, software # distributed under t...
[ "jayaprakash.r@cloudenablers.com" ]
jayaprakash.r@cloudenablers.com
174bd9cd9df62a07c54b3f9e40b8fd97e11f162b
009bf39bb082d175538d9c667009cadea367b005
/erp_customization/config/desktop.py
ded7fbf7c1954c72dafd7cab5945bf8888bea260
[ "MIT" ]
permissive
mbhavesh95863/erp_customization
0d3c5c107a44b126c5bc085f8f7964fc8c7167fd
33cb6c98b3b95a221462cea30033efdbca12cbed
refs/heads/master
2020-05-17T10:07:15.373067
2019-04-30T07:41:50
2019-04-30T07:41:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "ERP Customization", "color": "Blue", "icon": "Bhavesh", "type": "module", "label": _("ERP Customization") } ]
[ "erpnextdeveloper1@gmail.com" ]
erpnextdeveloper1@gmail.com
8e8ccb975ca50708e3d1a12dfc8247901cdc5286
e3d268f17f9b0c43e14c080fca9052765de86614
/musette/forms.py
bb0630f32e8069dd62e4cc9c5e4cb36c6120dd42
[]
no_license
tawanda/django-musette
401559e2670160d34a145f7eff80c2bba3674388
19a35531999db357df2dfa79b2d81a78ca15d7d3
refs/heads/master
2020-04-05T23:44:49.635378
2015-08-02T20:45:08
2015-08-02T20:45:08
40,992,561
1
0
null
2015-08-18T19:15:16
2015-08-18T19:15:15
Python
UTF-8
Python
false
false
5,310
py
# encoding:utf-8 from django import forms from django.forms.widgets import ClearableFileInput, CheckboxInput from django.utils.html import conditional_escape from django.utils.safestring import mark_safe from .utils import basename from .models import Topic, Comment from .widgets import TextareaWidget class FormAdm...
[ "martinpeveri@gmail.com" ]
martinpeveri@gmail.com
b65e882d1259f051cce3a321b1d581c616225de0
0ddaa393ff22758621fd1123aa32e298974efa10
/kblocks/experiments/__init__.py
d994a7ba587d2d4db839665d090d460aec93e623
[ "MIT" ]
permissive
jackd/kblocks
d0a1d890f66d0783eec75247fd359ad9e2f0d135
0ae39f39ad0e797f19dcdc29417a928b11070097
refs/heads/master
2021-07-05T22:33:21.219466
2021-01-07T02:59:02
2021-01-07T02:59:02
218,962,609
0
1
NOASSERTION
2020-12-21T00:17:26
2019-11-01T10:16:15
Python
UTF-8
Python
false
false
187
py
from .callbacks import ExperimentCallback from .core import Experiment, run from .status import Status __all__ = [ "Experiment", "ExperimentCallback", "Status", "run", ]
[ "thedomjack@gmail.com" ]
thedomjack@gmail.com
a96f787beaee5952807655d5ab639a64e33e983c
afb8a16ef981766c2fdbc95b5bd963f963affce6
/b3/parsers/moh.py
3277653ae2327d22879a647db411e96cafbbb0b5
[]
no_license
ptitbigorneau/BigBrotherBot-For-UrT43
3c27a0e147be4946ea672c4fad254e5334e7af7a
7606156bb704a781d21a8a9b95119b995ea2db50
refs/heads/master
2021-01-10T23:54:25.277248
2019-05-16T06:19:19
2019-05-16T06:19:19
70,788,589
4
3
null
null
null
null
UTF-8
Python
false
false
25,814
py
# -*- coding: utf-8 -*- # ################################################################### # # # # BigBrotherBot(B3) (www.bigbrotherbot.net) # # Copyright (C) 2005 Michael "ThorN" Thornton # # ...
[ "ptitbigorneau@ptitbigorneau.fr" ]
ptitbigorneau@ptitbigorneau.fr
29fffb48a9e663544324fd2af5ce46a84d61c96d
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_tight_crop_size256/pyramid_0side/bce_s001_tv_s0p1_L7/step10_a.py
fc7beba190ab5b5cb7e770bfebbd16709a53e1da
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
5,838
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
26cd827693df39816b4e8f1cb6ead467289b3f8c
2006a22faca0265cab5f7de486971103c478439e
/tmdbSearch/migrations/0001_initial.py
195f99d71e4c2058e3519767365bb32f9c42951a
[]
no_license
GuardianBob/portfolio
4b6060b1ed9b1f59047d21d90732f1fbb3271066
1296cb13632c619c18a3513d3064b16f4eab1f8b
refs/heads/main
2023-04-20T10:08:23.715797
2021-04-30T00:46:21
2021-04-30T00:46:21
362,626,413
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
# Generated by Django 2.2.13 on 2021-04-20 20:44 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Movie', fields=[ ('id', models.AutoField(a...
[ "78508863+GuardianBob@users.noreply.github.com" ]
78508863+GuardianBob@users.noreply.github.com
e5a1ffe642b9b33247a8e70bb7902591cc486875
2407490f32568f4469a71172e74b4e41c7b8231e
/you_app/main/utils.py
457f007022faed7fe7ef315f005ab778c9fda487
[]
no_license
sidneyarcidiacono/you
d730695422a576628940374e8a14a52decc2ba54
e09cba147eac37265611033ec84e5eae653d952c
refs/heads/main
2023-02-01T12:34:08.407341
2020-12-20T05:19:49
2020-12-20T05:19:49
314,082,678
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
"""Module and package import.""" import os import secrets from PIL import Image from you_app import app def save_image(form_image, size, folder): """Save avatar upload to static.""" random_hex = secrets.token_hex(8) _, f_ext = os.path.splitext(form_image.filename) image_filename = random_hex + f_ext ...
[ "sidneyarci@gmail.com" ]
sidneyarci@gmail.com
68ff602265388da8fda949d0229e1b522e8295bf
272ae95716e530d538937ded59ec5b6e0b6d4db8
/섹션 4/5. 회의실 배정/AA.py
b83f646899b731a0afb42018fc6a94f735e513ac
[]
no_license
gogoheejun/algorithm
83a1cb30bff5c349f53be16764e517a46e99cf1c
39e999abf7170f434a7ac6e1f698f066e55aca03
refs/heads/main
2023-06-22T13:06:32.135917
2021-07-25T15:46:19
2021-07-25T15:46:19
383,379,782
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
import sys # sys.stdin = open("input.txt", "r") n = int(input()) meeting = [] for _ in range(n): s, e = map(int, input().split()) meeting.append((s, e)) meeting.sort(key=lambda x: (x[1], x[0])) et = 0 cnt = 0 for s, e in meeting: if s >= et: et = e cnt += 1 print(cnt)
[ "heejjuunn@gmail.com" ]
heejjuunn@gmail.com
0dd2ad1bd7f6a0c7c6051ed6d96eaa5afe02632d
e3c8f786d09e311d6ea1cab50edde040bf1ea988
/Incident-Response/Tools/grr/grr/server/grr_response_server/gui/api_plugins/artifact_test.py
098afe7f9d00f1413eca44a3d6ba8e71eb2e859a
[ "Apache-2.0", "MIT" ]
permissive
foss2cyber/Incident-Playbook
d1add8aec6e28a19e515754c6ce2e524d67f368e
a379a134c0c5af14df4ed2afa066c1626506b754
refs/heads/main
2023-06-07T09:16:27.876561
2021-07-07T03:48:54
2021-07-07T03:48:54
384,988,036
1
0
MIT
2021-07-11T15:45:31
2021-07-11T15:45:31
null
UTF-8
Python
false
false
4,800
py
#!/usr/bin/env python """This modules contains tests for artifact API handler.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import io import os from absl import app from grr_response_core import config from grr_response_core.lib.rdfvalues import ar...
[ "a.songer@protonmail.com" ]
a.songer@protonmail.com
8750b5a85f5bf639089362275a3f6ae04d98a764
e5d82c5f4ad8c11e0003df1ffde1ee108ce54081
/geodashserver/views.py
ebe1c10d649d1afb75def58558e2cf43739b9eb5
[]
no_license
geodashio/geodash-server
38277c0da0b2038283e79c1a7f3d17066e2b711d
196a2a437e75dc6b2687cd778e87e37d11f7a1a2
refs/heads/master
2020-04-06T07:12:14.765134
2016-08-20T18:14:05
2016-08-20T18:14:05
60,358,601
1
0
null
null
null
null
UTF-8
Python
false
false
14,036
py
import datetime import requests import yaml import errno from socket import error as socket_error from django.conf import settings from django.core.urlresolvers import reverse from django.contrib.auth.models import User, Group from django.http import Http404, HttpResponse, HttpResponseRedirect from django.views.generi...
[ "pjdufour.dev@gmail.com" ]
pjdufour.dev@gmail.com
48ae08d55da5746ef76de8913b98bd278a9bbb20
23392f060c85b5fee645d319f2fd5560653dfd5c
/01_jumptopy/chap06/practice/Q1_duplicate_numbers.py
a45ed6b9decff9ed5cf440a352e3639d9c2df4e0
[]
no_license
heyhello89/openbigdata
65192f381de83e4d153c072ff09fa7574f003037
b35ff237c32013c3e5380eee782085a64edb9d80
refs/heads/master
2021-10-22T04:29:00.852546
2019-03-08T02:14:34
2019-03-08T02:14:34
125,938,319
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
string=input() list_str=string.split() for index in list_str: for num in range(0, 10): match=index.count(str(num)) if match!=1: print("False ", end="") break elif num==9 and match==1: print("True ", end="")
[ "heyhello89@hanmail.net" ]
heyhello89@hanmail.net
6f372e79944370fefdf90422131141fd69d2fbe5
3c41889e19235e5d272d4f184339b3a88d96a0c6
/_utils/_behaviors.py
7280b7b6a7049df13a6152d7634be433e425a8a0
[]
no_license
manfreddiaz/safe-iil
b0908fc7be9fb772fae267f6f2f835fa90f9f0a2
9cd5007a7f8e8abd10e844351bec278bfd942387
refs/heads/master
2020-04-19T07:58:34.915693
2019-01-30T18:55:22
2019-01-30T18:55:22
168,062,938
2
0
null
null
null
null
UTF-8
Python
false
false
1,289
py
# experiments configurations for submissions, define behavior of the environment after each episode from ._settings import simulation class Icra2019Behavior: def __init__(self, env, at, routine): self.env = env self.at = at self.routine = routine self.routine.on_step_done(self) ...
[ "takeitallsource@gmail.com" ]
takeitallsource@gmail.com
cc8e386611414bbb123e4f2825c50621055a9554
e43e8bd052a613f158e29339aaa7e3bdec40b6fb
/core/model.py
5255942cf17f618f2b2d69e0d5345d05659da948
[]
no_license
sakshijain032/Harmful-Object-Detection
249f586ffbc7de99f6647689bae230f3b79694b3
8e1711fc1596b451f97b5ff2f7690453a888c848
refs/heads/master
2022-12-24T18:40:41.795010
2020-10-01T17:34:42
2020-10-01T17:34:42
293,727,797
2
0
null
null
null
null
UTF-8
Python
false
false
16,001
py
# Copyright 2017 The TensorFlow Authors. 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 # # Unless required by applica...
[ "sakshijain032@gmail.com" ]
sakshijain032@gmail.com
a7d2c811b546018c304f178a881df787cc8e2853
cd40b7cc395f36740000ed4a4144b1c0666ab0fd
/hstrat/_auxiliary_lib/_jit_numpy_bool_t.py
52bdb898f0c1d675364549536be667f6b30ab1ba
[ "MIT" ]
permissive
mmore500/hstrat
94fd22c86a87a5707590b9398ef679444ed82d6d
b2d2caded1db5e2dc681d9f171d7c74b322c55c3
refs/heads/master
2023-08-31T03:36:44.457576
2023-08-25T14:39:29
2023-08-25T14:39:29
464,531,144
5
2
NOASSERTION
2023-08-25T13:07:52
2022-02-28T15:11:45
Python
UTF-8
Python
false
false
541
py
"""Provides numba bool type or numpy bool type. Type must be declared outside jit'ed function or numba fails. """ import numpy as np from ._is_in_coverage_run import is_in_coverage_run try: import numba as nb except (ImportError, ModuleNotFoundError): jit_numpy_bool_t = np.bool_ else: if is_in_coverage_...
[ "mmore500.login+gpg@gmail.com" ]
mmore500.login+gpg@gmail.com
a12b81b7189ddaad2b23fb1cf3c39108553e9ad5
7b1b4ed8bd4c887362b367625a833c28aa919dd8
/wpaudit/providers/aliyun/resources/ram/security_policy.py
b93d7eec5d765aa027031811d6f696ba0828c11d
[]
no_license
wperic/wpaudit
6bbd557c803ce9bceb764c1451daeb5e440a3d9c
ed69c1eabcf85e80ed8fe5397d2d369fd3ff35d8
refs/heads/main
2023-07-16T21:36:57.528548
2021-09-03T10:35:43
2021-09-03T10:35:43
402,716,870
0
0
null
null
null
null
UTF-8
Python
false
false
1,722
py
from wpaudit.providers.aliyun.resources.base import AliyunResources from wpaudit.providers.aliyun.facade.base import AliyunFacade class SecurityPolicy(AliyunResources): def __init__(self, facade: AliyunFacade): super().__init__(facade) async def fetch_all(self): raw_security_policy = await se...
[ "90035639+wperic@users.noreply.github.com" ]
90035639+wperic@users.noreply.github.com
703a51314294f29c9ed2fcd533c35ee9bf016b26
c2584c3fbace76b253db1dfbc4fb435b1bbd1717
/Python/PycharmProjects_1718/Final_Project/Final_Project/venv/Lib/site-packages/pyad/adcontainer.py
8c3e92be9ea9571fea6c5720cd04f5a626b5389c
[]
no_license
absentee-neptune/Personal-Projects
9c17e9112eca20a02ae8875c5790116db5170c45
5cb7649093fd420c5a6882051aa82f4c947dd667
refs/heads/master
2023-01-03T11:57:19.257253
2020-10-16T18:53:47
2020-10-16T18:53:47
304,392,815
0
0
null
null
null
null
UTF-8
Python
false
false
4,068
py
from __future__ import absolute_import from .adobject import * from .aduser import ADUser from .adcomputer import ADComputer from .adgroup import ADGroup from . import pyadconstants class ADContainer(ADObject): def get_children_iter(self, recursive=False, filter_=None): for com_object in self._ldap_adsi_ob...
[ "brianna.guest20@gmail.com" ]
brianna.guest20@gmail.com
0a32952a073fb05025a29c20c191ba3dd7b7b545
26ec9889c37dfd41c151ca36e292a298f88d2210
/debug/traverse.py
e9613ff1d568f9a6f25592518ba45ef2b1013202
[]
no_license
mihai2014/mihai2014.github.io
d11988c42d5c38c53325455069b9de3bdc221f71
bd479e8d6ffb86c01594259baac54fe5f7262642
refs/heads/master
2021-11-15T11:35:11.073938
2021-08-19T20:05:50
2021-08-19T20:05:50
185,383,637
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
import os import re from names import names startStr = "https://nbviewer.jupyter.org/github/mihai2014/mihai2014.github.io/blob/master" startStr = "" string = "" def traverse_dir(dirName): global string string += '<ul>\n' for item in sorted(os.listdir(dirName)): fullpath = os.path.join(dirName, ...
[ "mc200520052005@yahoo.com" ]
mc200520052005@yahoo.com
5e2093794cc2accc1cbebc99ba054c968e19efa6
3581148ef2a3e96dda4b9dd1ae5bdb84577c5e57
/package/diana/utils/endpoint/endpoint.py
8f4dc487a922de1b0d9bc8c4771c1ba3d75264f8
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
devhliu/diana2
515c82f34f831507f4ad1da825a0ffe8ec4c6b13
f266c7f5abbfa2a245714c569d090d6676864dfc
refs/heads/master
2020-05-05T01:10:03.247825
2019-03-12T17:39:33
2019-03-12T17:39:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,565
py
""" CRUD Endpoint API """ from abc import ABC from typing import Mapping, TypeVar, NewType, Union, Sequence, Iterator, Collection import logging import attr Item = TypeVar('Item') ItemID = NewType('ItemID', str) Query = NewType('Query', Mapping) @attr.s class Endpoint(ABC): """ Generic CRUD endpoint API. ...
[ "derek_merck@brown.edu" ]
derek_merck@brown.edu
442ef8a97a68346e9aa3f556094524d80577de51
5e6d8b9989247801718dd1f10009f0f7f54c1eb4
/sdk/python/pulumi_azure_native/sql/v20180601preview/managed_instance.py
f6d12514c1980b5a7b625dd69d20cab1cafba569
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
vivimouret29/pulumi-azure-native
d238a8f91688c9bf09d745a7280b9bf2dd6d44e0
1cbd988bcb2aa75a83e220cb5abeb805d6484fce
refs/heads/master
2023-08-26T05:50:40.560691
2021-10-21T09:25:07
2021-10-21T09:25:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
40,380
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
vivimouret29.noreply@github.com
08075ae1a6f80646aaf8c95c14d832ed43889e21
33f3ac31530417d1a901873f26c94f6e9e7e7e82
/data_structures/graph/test_graph.py
0c33fbcf5a46c2358516363e995ec991771b299e
[ "MIT" ]
permissive
jpchato/data-structures-and-algorithms-python
9227b57951384e9518da073ee7124df4bd5efec2
5615d3637deea1b876760d981682f7fea0c4988f
refs/heads/master
2022-11-13T13:40:33.984171
2020-06-28T19:10:10
2020-06-28T19:10:10
263,187,808
0
0
MIT
2020-07-02T15:35:42
2020-05-12T00:08:48
Python
UTF-8
Python
false
false
1,833
py
import pytest from graph import Graph, Vertex # 1. Node(vertex) can be successfully added to the graph def test_add_vertex(): g = Graph() expected = 'spam' vertex = g.add_vertex('spam') actual = vertex.value assert actual == expected # 2. An edge can be successfully added to the graph def test_ad...
[ "jpchato@gmail.com" ]
jpchato@gmail.com
da54eaf11a2245398f65e46f3a8f604039b36659
30150c7f6ed7a10ac50eee3f40101bc3165ebf9e
/src/catalog/CatalogNotifyDialog.py
889f471d6b029ae25ef8a038417f93ef6bb94674
[]
no_license
toontown-restoration-project/toontown
c2ad0d552cb9d5d3232ae6941e28f00c11ca3aa8
9bef6d9f823b2c12a176b33518eaa51ddbe3fd2f
refs/heads/master
2022-12-23T19:46:16.697036
2020-10-02T20:17:09
2020-10-02T20:17:09
300,672,330
0
0
null
null
null
null
UTF-8
Python
false
false
3,125
py
from direct.directnotify import DirectNotifyGlobal from toontown.toonbase import ToontownGlobals from toontown.toonbase import TTLocalizer from direct.gui.DirectGui import * from toontown.toonbase.ToontownModules import * class CatalogNotifyDialog: """CatalogNotifyDialog: Pops up to tell you when you have a n...
[ "brianlach72@gmail.com" ]
brianlach72@gmail.com
a647f0d480891d488f49205feca83727cde55097
b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4
/toontown/src/coghq/DistributedStageBattle.py
ec71350320aa213743339055c2aa1ec8c3b1e6aa
[]
no_license
satire6/Anesidora
da3a44e2a49b85252b87b612b435fb4970469583
0e7bfc1fe29fd595df0b982e40f94c30befb1ec7
refs/heads/master
2022-12-16T20:05:13.167119
2020-09-11T16:58:04
2020-09-11T17:02:06
294,751,966
89
32
null
null
null
null
UTF-8
Python
false
false
2,727
py
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from toontown.battle.BattleBase import * from toontown.coghq import DistributedLevelBattle from direct.directnotify import DirectNotifyGlobal from toontown.toon import TTEmote from otp.avatar import Emote from toontown.battle import SuitBatt...
[ "66761962+satire6@users.noreply.github.com" ]
66761962+satire6@users.noreply.github.com
eaaaae0d74223cebb8f81036790229d3ab273d68
f653f96c26501523d36f67330186e546b9067749
/19/01/1.py
e812107b39defcf013b2d2980b8f1703d6e3cec8
[ "CC0-1.0" ]
permissive
pylangstudy/201711
6d5fb40d3bf0b1be5310e6c85ac23c76a7f9db56
be6222dde61373f67d25a2c926868b602463c5cc
refs/heads/master
2022-11-13T22:11:52.127874
2017-11-29T23:32:17
2017-11-29T23:32:17
109,062,692
0
1
null
2022-10-20T07:22:56
2017-10-31T23:22:16
Python
UTF-8
Python
false
false
194
py
import argparse parser = argparse.ArgumentParser(prog='PROG') parser.add_argument('--foo', nargs='?', help='foo help') parser.add_argument('bar', nargs='+', help='bar help') parser.print_help()
[ "pylangstudy@yahoo.co.jp" ]
pylangstudy@yahoo.co.jp
8bfc3383fca13b78421259423948ab780bfdf222
65388597294f4174ad82c7ccc65d611ce278d2a8
/tests/test_readthedocs_links.py
8e737aa9758bb2ddd1be6735b82c9c4b253332db
[]
no_license
ThreatConnect-Inc/threatconnect-developer-docs
5e13bafa14a7418d14c84f62fa0672690ebeb991
3c681a04cef29c5347090b687dfd4e1a28ba3efd
refs/heads/master
2023-08-07T11:39:36.267492
2023-07-28T15:31:07
2023-07-28T15:31:07
78,577,108
8
19
null
2023-07-21T14:15:20
2017-01-10T21:46:46
Python
UTF-8
Python
false
false
7,851
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Find and test each of the links in the docs to make sure they are working properly.""" import os import re import sys from bs4 import BeautifulSoup import requests base_url = 'https://docs.threatconnect.com/' pages = { "https://docs.threatconnect.com/en/latest/res...
[ "floyd.hightower27@gmail.com" ]
floyd.hightower27@gmail.com
a40bd18fba15baaf84f5502990110a80b52f8914
de5df8163e5507da37435e7d2b82dfdd5eb38be0
/fabfile.py
7d5be93f357e902d8af26a91363749bd520bc5fb
[]
no_license
csinchok/Twitter-Roulette
27634be0b69b56bc88010b7dc111bdca0d658929
2cf7f49e5a1534aac172dcc9b375f5e92fce5a91
refs/heads/master
2021-01-23T02:28:51.070024
2011-09-03T17:52:00
2011-09-03T17:52:00
2,150,021
2
0
null
null
null
null
UTF-8
Python
true
false
1,470
py
from __future__ import with_statement from fabric.api import * from fabric.contrib.console import confirm env.hosts = ['csinchok.webfactional.com'] env.user = 'csinchok' webapp_path = '/home/csinchok/webapps/social_roulette' def test(): local('./bin/test', capture=False) def pack(): local('git archive --for...
[ "chris@sinchok.com" ]
chris@sinchok.com
74fc6b57948f736f797cb83945d8a4829b3f3a69
36957a9ce540846d08f151b6a2c2d582cff1df47
/VR/Python/Python36/Lib/test/test_smtpnet.py
3897b365aea88acbec5ce7eab639e0c13496946a
[]
no_license
aqp1234/gitVR
60fc952307ef413e396d31e0d136faffe087ed2b
e70bd82c451943c2966b8ad1bee620a0ee1080d2
refs/heads/master
2022-12-29T15:30:12.540947
2020-10-07T15:26:32
2020-10-07T15:26:32
290,163,043
0
1
null
2020-08-25T09:15:40
2020-08-25T08:47:36
C#
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:08adc8ef5440c83129013a75e849ab9f5161edb3c4a891362c47afd72f5c22a8 size 2846
[ "aqp1234@naver.com" ]
aqp1234@naver.com
04dc80f99264954bfbccc015f965c642b2f59186
c8c53b7eef6de1d7d8c236a5e6a4c1bf93dbd578
/text editor/text editor project.py
91a6aacaadb6678a68de849687881dd51a2df35b
[]
no_license
tanya-agarwal06/project-text-editor
d6e6e3b7d59a6cf86ee34fe3667b073ec22a7b62
311d49d767845b2df9257363812b42794a823ee1
refs/heads/master
2020-03-23T13:36:20.645485
2018-07-20T15:00:50
2018-07-20T15:00:50
141,627,256
0
1
null
null
null
null
UTF-8
Python
false
false
535
py
import os import tkinter from tkinter.messagebox import * from tkinter.filedialog import * from tkinter import * class texteditor: def __init__(self, root): self.file_path = None self.menu = Menu(root) root.config(self.menu) self.Submenu = Menu(self.menu) Menu = self.menu.a...
[ "=" ]
=
454bbc56bff1e7386f6ffc4391eb2034ced8a15e
f042383cbc9f10837ebdb5b9033a0263f6a43698
/python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_decorators.py
7b12c56059e3c716d70e4e026d9ed4659c1eaf1b
[ "Apache-2.0" ]
permissive
helloworld/dagster
664e6636d68bafa5151418c9d4316a565717f5ee
779e27faa3e46b7d043cb9624617e655a9ed570c
refs/heads/master
2022-03-24T12:15:36.626783
2022-02-26T01:34:29
2022-02-26T01:34:29
464,019,094
0
0
Apache-2.0
2022-03-05T20:23:14
2022-02-27T02:38:17
null
UTF-8
Python
false
false
8,726
py
import pytest from dagster import ( AssetKey, DagsterInvalidDefinitionError, OpExecutionContext, Out, Output, String, build_op_context, check, ) from dagster.core.asset_defs import AssetIn, AssetsDefinition, asset, build_assets_job, multi_asset from dagster.core.asset_defs.decorators imp...
[ "noreply@github.com" ]
helloworld.noreply@github.com
d9809f2b9e5da68e9a544248dd175ab612a045f3
c7603730fe2e0615cb8af85360f4270c6e519dcd
/eu-structural-funds/common/processors/currency_convert.py
1d99a8e00a7a7bb1e7f4b8628efbb431f9d882df
[ "MIT" ]
permissive
transpresupuestaria/os-data-importers
b58266d03274901bf6104dc10ab725fa97a22d18
929e07aefc98ae4788e75c682d4c3adc014bf6ce
refs/heads/master
2022-07-02T16:21:34.023556
2020-05-18T18:48:08
2020-05-18T18:48:08
112,221,613
0
0
MIT
2018-08-07T00:26:10
2017-11-27T16:40:20
Python
UTF-8
Python
false
false
2,255
py
import os import json from decimal import Decimal from datapackage_pipelines.wrapper import ingest, spew parameters_, datapackage_, resources_ = ingest() column = parameters_['column'] currency = parameters_['currency'] currency_column = parameters_['currency-column'] date_columns = parameters_['date-columns'] miss...
[ "vitor@vitorbaptista.com" ]
vitor@vitorbaptista.com
269809d7b627a90f5f11c5c9ace2c3f29fa30f4f
c5d68f58c9523257a8b41954553f5cff2cd5f487
/Secao_08_Funcoes/08_50_entendo_**kwargs.py
d343ee19fbcd415be4e842c400608dec38b1b742
[]
no_license
SouzaCadu/guppe
04bfcde82d4404eb9ec795006c6931ba07dc72b6
1f8a672230c5c27712f522e1e34516591c012453
refs/heads/master
2023-03-13T01:32:51.019871
2021-02-25T17:02:59
2021-02-25T17:02:59
320,908,119
1
0
null
null
null
null
UTF-8
Python
false
false
1,880
py
""" Entendendo o **kwargs É mais um parâmetro, diferentemente do *args que coloca os valores como tupla, o **kwargs exige que utilizemos parâmetros nomeados, transformado-os em um dicionário Nas nossas funções podemos ter parametros obrigatórios, *args, default e **kwargs nessa ordem obrigatoriamente. # Exemplos d...
[ "cadu.souza81@gmail.com" ]
cadu.souza81@gmail.com
3cc0b9cb31a005ae94dc7f3acff88300027a6a1d
8dfe4b53fae92795405d789d52148d1291836afa
/python/python学习/day1/day1.py
65bc4a989f226b5bd262f50145244d2b1b28eb90
[]
no_license
ymyjohnny/python
e07c54a88954e090cf3d30a4c6f6ac46353063fb
b483fd55e577d4dcceb5762bddf833df23874f3a
refs/heads/master
2021-01-10T01:10:19.038424
2019-07-02T02:40:23
2019-07-02T02:40:23
45,223,843
0
0
null
null
null
null
UTF-8
Python
false
false
1,697
py
from twisted.python.filepath import FilePath s = 'abc,def' ### n = 10 m = 20 a = s.split(',')[0] * n +','+ s.split(',')[1] * m print a ############ l = range (2,9) target = 9 #print l #print l1 = [] print range(len(l)) print "" for i in range(len(l)): for a in range(i+1,len(l)): # print i, a, l[i...
[ "ymyjohnny@adsame.com" ]
ymyjohnny@adsame.com
a8f2bd9a07fbc63473bf693862244d67980412d9
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/display_board_20201108135106.py
aacb939237acaabb1399d0a40ec9b70e096e23fb
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
9,822
py
from config import * import pygame as pg class Display_board(): def __init__(self, screen): self.screen = screen self.font_num = pg.font.SysFont("comicsans", NUMBER_SIZE) self.font_cdt = pg.font.SysFont("comicsans", CANDIDATE_SIZE) def draw_val(self, val, x, y): text1 = self....
[ "jle040@uit.no" ]
jle040@uit.no
06b1d29b7b6c839e81497373b6d46b51d3c3dd6d
63768dc92cde5515a96d774a32facb461a3bf6e9
/jacket/api/storage/views/qos_specs.py
42aa19da5215b83b075b3de08f6075637dade38b
[ "Apache-2.0" ]
permissive
ljZM33nd/jacket
6fe9156f6f5789e5c24425afa7ce9237c302673d
d7ad3147fcb43131098c2a5210847634ff5fb325
refs/heads/master
2023-04-16T11:02:01.153751
2016-11-15T02:48:12
2016-11-15T02:48:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,489
py
# Copyright (C) 2013 eBay 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 # # Unless required by...
[ "nkapotoxin@gmail.com" ]
nkapotoxin@gmail.com
7eb014003bb70b5d650dfd37cad67df51eca45ad
3367451615f082b21a9f65c0f3cf833b269082c0
/Stripes/HadCRUT5/stripes_single_member_longitude.py
612f1e91064785482e9aa2deb5a8a04f8526cc83
[]
no_license
philip-brohan/Posters
dd20eb399f559b6c205c300f96d95d0f13c52808
d030a926ea1163e7078b2c468dfca22866552f50
refs/heads/master
2022-10-16T01:08:39.589886
2022-09-25T16:41:08
2022-09-25T16:41:08
91,101,772
0
0
null
null
null
null
UTF-8
Python
false
false
2,336
py
#!/usr/bin/env python # Make a poster showing HadCRUT5 monthly temperatures. # Inspired by the climate stripes popularised by Ed Hawkins. import os import iris import numpy import datetime import matplotlib from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figu...
[ "philip@brohan.org" ]
philip@brohan.org
0fe41fc67d558792e39af525d95f1f466e64b777
6820424467be6d77b5ff44c3f6a55d2273565e21
/services/layer_initializer_service.py
5bd94b4a04669f24198e552d2e9da827e30a8d46
[]
no_license
gbattra/Generator_ML_Framework
ca70ce58c69109fc3a5f974ff1f57c53deea3bc7
29dae8ef4c1d83260abc9777735c5537425337be
refs/heads/master
2021-06-19T10:00:36.191586
2021-01-11T19:43:15
2021-01-11T19:43:15
132,356,001
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
from models import * class LayerInitializerService: @staticmethod def load_layers(num_classes: int, learning_rate: float): fc_layer_1 = fully_connected_layer_model.FullyConnectedLayerModel(67500, 50, 'fc1', learning_rate) ...
[ "greg.attra@gmail.com" ]
greg.attra@gmail.com
efa37b4b73a3d0a36c690472b2bf52257a42df6f
a09740e643d6277ada23c82d8e87853a1cd1a9e5
/Z_ALL_FILE/Py1/fndatetime.py
a83056dcaaff17a4c8bb5663424924b5fd04f7f2
[ "Apache-2.0" ]
permissive
FuckBrains/omEngin
c5fb011887c8b272f9951df3880a879456f202e8
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
refs/heads/main
2023-03-20T18:27:53.409976
2021-03-14T15:50:11
2021-03-14T15:50:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,102
py
import pandas as pd import numpy as np from datetime import * nw = datetime.now().strftime("%d/%m/%Y %H:%M:%S") def add_col_df(df, colname, colval = False, indx=False): if indx == False: if colval == False: ndf = df.assign(coln = 'NWC') ndf.rename(columns = {'coln': colname}, inpl...
[ "omi.kabirr@gmail.com" ]
omi.kabirr@gmail.com
309efb252bd66f33562a67370f0b33b5353d3b3c
c5e8eb946f2bcad3658642b4895d86cd811efb36
/src/biocommons/seqrepo/fastadir/_data/migrations/0001-initial.py
f0bedb0874caf0908ca60ae2db8e1ddd17817a40
[ "Apache-2.0" ]
permissive
biocommons/biocommons.seqrepo
a96e4bdee79a4409a6d7927aeafe82510350a807
9ce861b5b86d1a1aa366fb62f6ed340186b4eed5
refs/heads/main
2023-05-15T10:03:17.856522
2023-05-08T17:48:08
2023-05-08T17:48:08
65,880,786
31
40
Apache-2.0
2023-09-13T22:42:45
2016-08-17T06:11:21
Python
UTF-8
Python
false
false
390
py
from yoyo import step step(""" create table seqinfo ( seq_id text primary key, len integer not null, alpha text not null, added timestamp not null default current_timestamp, relpath text not null )""", """drop table seqinfo""") step("""create unique index seqinfo_seq_id_idx on seqinfo(seq_id)""") ...
[ "reecehart@gmail.com" ]
reecehart@gmail.com
334b4650c630ade42418535c1e8d04189d672562
98cb2f2afbe57bdda9d6b8b1dd8cf624987d91bc
/torchdp/utils/module_modification.py
4030d29505ea6abafd97f6595903eaefc6e859ca
[ "Apache-2.0" ]
permissive
jyhong836/pytorch-dp
0e7613b01f09ceb2c3787284372f8e887bf0deb3
e050b98d630d4db50cacc4fff82575daf345f012
refs/heads/master
2023-01-03T15:08:54.976598
2020-08-18T01:26:07
2020-08-18T01:27:02
260,974,801
0
0
Apache-2.0
2020-05-03T16:40:11
2020-05-03T16:40:11
null
UTF-8
Python
false
false
6,490
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved r""" This module includes utils for modifying model layers, replacing layers etc. """ from typing import Callable, Type from torch import nn def _replace_child( root: nn.Module, child_name: str, converter: Callable[[nn....
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
f4af02d72276d26a7b42cf74021b8cacbefbc203
15e6385746ccf4b8eb6c6e302aca236021bb8781
/LintcodePartII/li431_ConnectedComponentInUndirectedGraph.py
0aaef6d8f48f26c5fde250d842fb4cbed53b8f0b
[]
no_license
akb46mayu/Data-Structures-and-Algorithms
11c4bbddc9b4d286e1aeaa9481eb6a620cd54746
de98494e14fff3e2a468da681c48d60b4d1445a1
refs/heads/master
2021-01-12T09:51:32.618362
2018-05-16T16:37:18
2018-05-16T16:37:18
76,279,268
3
0
null
null
null
null
UTF-8
Python
false
false
1,566
py
""" Find the number connected component in the undirected graph. Each node in the graph contains a label and a list of its neighbors. (a connected component (or just component) of an undirected graph is a subgraph in which any two vertices are connected to each other by paths, and which is connected to no additional...
[ "noreply@github.com" ]
akb46mayu.noreply@github.com
8f7b3bfce121ccb2d2573d48f316ac8d9aab2f91
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_275/ch60_2019_08_14_14_28_12_204229.py
380a8cb5bc5320d5db0f3b1ee7e069291380fa5e
[]
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
32
py
def asteriscos(n): return n*"*"
[ "you@example.com" ]
you@example.com
712e712493519ee5d473af6188e03db378c409a2
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnbeaucoup.py
c0e7a943c034e2cd1432380876d9b04108c9184c
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
314
py
ii = [('SadlMLP.py', 1), ('WilbRLW4.py', 3), ('RennJIT.py', 1), ('CookGHP.py', 2), ('PettTHE.py', 2), ('PeckJNG.py', 2), ('AdamWEP.py', 1), ('KiddJAE.py', 5), ('WestJIT2.py', 4), ('DibdTRL2.py', 3), ('FerrSDO2.py', 1), ('HogaGMM.py', 1), ('WestJIT.py', 1), ('MackCNH2.py', 3), ('JacoWHI.py', 1), ('RogeSIP.py', 1)]
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
7acb418e83413fd1754a421433ce2a02e64ce114
0f38e4df503f9e72982d96d0db415caf68e9d44a
/pytraj/make_meta.py
8320991e14f2e2022f2f6c2caa1e4e6eeaed09bb
[ "BSD-2-Clause" ]
permissive
hainm/conda-recipes
df0946bc0789252fb112beba23f3f44c2b2c5980
79268c30c15370f6d7bf3e802f57852476865bb7
refs/heads/master
2020-04-04T20:03:27.563895
2016-05-29T06:06:56
2016-05-29T06:06:56
42,761,866
0
0
null
2016-03-08T06:41:43
2015-09-19T05:59:53
Shell
UTF-8
Python
false
false
2,045
py
#!/usr/bin/env python meta_template = """ package: name: {pytraj_status} version: !!str {pytraj_version} source: {source} requirements: build: - python - cython - libcpptraj {libcpptraj_version} - libnetcdf run: - python - libcpptraj {libcpptraj_version} - libnetcdf - numpy t...
[ "hainm.comp@gmail.com" ]
hainm.comp@gmail.com
e495f8bef89008e00064387e3a8ce29270e3524b
449da7b08bb82654028967aa0fa8efce8b2b10d2
/apps/hadoop/migrations/0014_clusterinfo_app.py
cfa385a4f7bfc57faa5012ce6414b735cdab2bbd
[]
no_license
sdgdsffdsfff/bk-dop
f1ae15f858f6236405e50e9453554026d2bcfd21
97cfac2ba94d67980d837f0b541caae70b68a595
refs/heads/master
2023-08-31T22:24:30.616269
2021-10-19T17:56:36
2021-10-19T17:56:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
# Generated by Django 2.2.6 on 2021-05-10 11:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hadoop', '0013_delete_hadooptaskrecord'), ] operations = [ migrations.AddField( model_name='clusterinfo', name='app'...
[ "1297650644@qq.com" ]
1297650644@qq.com
0d3762371ed81433d3be36430298dfdd8ae1f5ab
ba7e9a424362ad1fe6d78592de4ffafdf8f778dd
/text_parser/test_utils.py
9e49ac2fd034db9587bc7acb1dc11959dd7e1c63
[]
no_license
MrLYC/TextParser
f854b45775f42d153cf616ec53f5bf806772e06d
a0e32ad6831237f01466435e897002a19e9b6364
refs/heads/master
2021-01-23T11:32:00.344723
2017-06-09T07:23:41
2017-06-09T07:23:41
93,141,709
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
# encoding: utf-8 from unittest import TestCase from text_parser import utils class TestUtils(TestCase): def test_force_text(self): self.assertEqual(utils.force_text(1), u"1") self.assertEqual( utils.force_text(u"测试".encode("utf-8")), u"测试", ) self.assert...
[ "imyikong@gmail.com" ]
imyikong@gmail.com
01fef293d0d99d60ac6171d39112bcfc35dfe9bd
0c0a6a41b5bb15e74f2e938218a971d6036dfd0d
/drf40/api/views.py
abb37cb3888df52bf1e5872828714372fff4e2bf
[]
no_license
kamal0072/API-s-based-on-drf-and-python
54067cd1b364a50ace2c3f4b35cccaafc977d39f
b31299ff2bc32f836c85f402dbe2cfa34f34dd69
refs/heads/master
2023-03-25T16:51:36.511505
2021-03-24T16:27:46
2021-03-24T16:27:46
351,147,386
1
0
null
null
null
null
UTF-8
Python
false
false
573
py
from django.shortcuts import render from rest_framework import viewsets from .serializers import StudentSerializer from .models import Student from rest_framework.filters import OrderingFilter from rest_framework.pagination import CursorPagination class Mycursorpagination(CursorPagination): page_size=5 orderi...
[ "hasan.kamaal0072@gmail.com" ]
hasan.kamaal0072@gmail.com
5837959d72166cbfc7ead2d42e2a0ea16b1ea896
e59fe240f0359aa32c59b5e9f581db0bfdb315b8
/galaxy-dist/test/tool_shed/functional_tests.py
af6e1b16c283ec25c8fb8a52a7d963a6d2589b49
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
subway/Galaxy-Distribution
dc269a0258471597d483687a0f1dd9e10bd47448
d16d6f9b6a8b7f41a218c06539863c8ce4d5a73c
refs/heads/master
2021-06-30T06:26:55.237251
2015-07-04T23:55:51
2015-07-04T23:55:51
15,899,275
1
2
null
2020-10-07T06:17:26
2014-01-14T10:47:28
Groff
UTF-8
Python
false
false
22,857
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...
[ "sabba_88@hotmail.com" ]
sabba_88@hotmail.com
824ad691679beddca24f539abae8266669640813
f0e190ae8eff009ca2243551f06c84b56ab27b46
/q44.py
ff0c11065bd3a98a87e734dbbda42871ffc0574f
[]
no_license
VinayHaryan/Array
7d042c57619cc1a89bef0eff1a019d66b5a6203c
c19d36054b5d0b39a29673966e14a3b6329da9da
refs/heads/main
2023-05-29T23:41:07.612633
2021-06-17T08:38:17
2021-06-17T08:38:17
377,736,580
2
0
null
null
null
null
UTF-8
Python
false
false
1,864
py
''' MAJORITY ELEMENT Write a function which takes an array and prints the majority element (if it exists), otherwise prints “No Majority Element”. A majority element in an array A[] of size n is an element that appears more than n/2 times (and hence there is at most one such element). Input : {3, 3, 4, 2,...
[ "noreply@github.com" ]
VinayHaryan.noreply@github.com
dd440a9f5411f168d6a47869bc44632c78ce7bf6
49217cbcb100c1e92ab707065dfa7c1c684e6440
/spacegraphcats/search/test_workflow.py
ea63248fc443ff0e9c9af48ec34a2344f24a292d
[ "LicenseRef-scancode-biopython", "BSD-3-Clause" ]
permissive
bluegenes/spacegraphcats
5bba5e6ff63ecd0f632803a6d6103a0888eb250b
35f8057068e4fe79ab83ac4efe91d1b0f389e1ea
refs/heads/master
2022-04-12T15:37:13.372545
2018-12-18T03:17:35
2018-12-18T03:17:35
160,425,418
0
0
NOASSERTION
2018-12-18T03:19:14
2018-12-04T22:11:30
Standard ML
UTF-8
Python
false
false
4,683
py
import os.path import tempfile import shutil import screed from spacegraphcats.catlas import catlas from spacegraphcats.index import index_contigs_by_kmer from spacegraphcats.search import extract_nodes_by_query from spacegraphcats.search import characterize_catlas_regions from spacegraphcats.search import extract_una...
[ "titus@idyll.org" ]
titus@idyll.org
c19e4d29857ba91dcc6287fda9784e3aa0622f9a
e5b9d8327634bd3a0cb6baa94738013fc01e14a4
/extras/examples/example.py
edcd2c8d66e24d10dce933cffdc328fba4b7c289
[ "Apache-2.0" ]
permissive
google/tmppy
42ef444eb11675f10f3433180414d6818a602342
faf67af1213ee709f28cc5f492ec4903c51d4104
refs/heads/master
2023-09-02T19:20:45.172571
2020-06-01T02:31:28
2020-06-01T02:31:28
105,428,926
32
10
null
null
null
null
UTF-8
Python
false
false
836
py
# Copyright 2017 Google 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 # # Unless required by applicable law or...
[ "poletti.marco@gmail.com" ]
poletti.marco@gmail.com
14638c0d23a09fe9cedb49b79aef9ee0cf3b3614
47ae678aa432deb0eb4f99b6a9787853315ab899
/qikan/spiders/SAGE165.py
dc7625ae18edefb0d94b476690eacb0be769f8af
[]
no_license
RoggerLuo/python-scrapy-journal
1f3fb2ac41d90d25a0b635932600ff2327bf22d1
38d8e714f346e5951bcb55487fc0056a834f30d8
refs/heads/master
2020-04-05T20:32:42.201876
2018-11-13T06:35:59
2018-11-13T06:35:59
157,185,106
0
0
null
null
null
null
UTF-8
Python
false
false
9,160
py
# -*- coding: utf-8 -*- import scrapy from qikan.items import QikanItem import re import time from .config import Config,postItemWithPdf,postItem,proxyRequest class Sage165Spider(scrapy.Spider): name = 'SAGE165' start_urls = ['http://journals.sagepub.com/toc/han/current'] base_url = 'http://journals.sage...
[ "luojie.5408@163.com" ]
luojie.5408@163.com
25030ec11209b9e14609ffce77d412fbd91f108e
b7eed26cf8a0042a61f555eed1e9bf0a3227d490
/students/piotrowski_stanislaw/lesson_02_flow_control/how_many_zeroes.py
8379f81dc8394b9c4067827762a18bd7cb6915a7
[]
no_license
jedzej/tietopythontraining-basic
e8f1ac5bee5094c608a2584ab19ba14060c36dbe
a68fa29ce11942cd7de9c6bbea08fef5541afa0f
refs/heads/master
2021-05-11T11:10:05.110242
2018-08-20T12:34:55
2018-08-20T12:34:55
118,122,178
14
84
null
2018-08-24T15:53:04
2018-01-19T12:23:02
Python
UTF-8
Python
false
false
240
py
# https://snakify.org/lessons/for_loop_range/problems/how_many_zeroes/ # piotrsta number_of_numbers = int(input()) zeros = 0 for i in range(number_of_numbers): number = int(input()) if number == 0: zeros += 1 print(zeros)
[ "32517941+kadilak83@users.noreply.github.com" ]
32517941+kadilak83@users.noreply.github.com
2a7e4358f7a367d5e21734b0352b8f6b646af2ca
cab56af420ee38782b27363ba2564a57309ca500
/captcha_ids.py
d9c79aa9354f744d36ed273754b37fb2dcd98aa3
[]
no_license
fagan2888/PSTE
8f4ca75a3e4dc4a7a85c46ef7b06e906b2bec4c5
8ab074ed80df2e76b40ac97b9cedcd85c1ae0aa0
refs/heads/master
2021-10-09T13:59:15.169194
2018-12-29T02:00:25
2018-12-29T02:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
197,106
py
# coding=utf-8 caps = [ 'b267334dc40d4110ab97da1cb9d56556', 'c79c82d2b5f44819a8cfd4b671c7687b', '7fb60cc90ec94c18845857c601a2c8e9', 'c32ec98e715c4b4bbf245992243d8577', 'f730c418f8e24b8f8ea43503c829e4b2', '7ca388e301c6466980ba5aea085c48f7', 'e89f2890703e4875ade541affbfa8ae6', '1e2591ccef...
[ "forme.wjw@aliyun.com" ]
forme.wjw@aliyun.com
3fe182a7305979372bdb7c5590c323baa6dda99f
dea8cfa596d52d5db0e28ac43504e7212b43081b
/python/AtCoder Beginner Contest 152/D_new.py
16f861824d8037f0975636f52839b592b1e36b9d
[]
no_license
Yuta123456/AtCoder
9871a44f12a8fca87b0e2863a999b716128de1ac
ca04422699719563e311f7d973459ba1dc238c2c
refs/heads/master
2023-01-04T22:33:54.120454
2020-11-04T05:20:37
2020-11-04T05:20:37
286,409,112
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
n = int(input()) memo = [[0 for i in range(10)] for j in range(10)] for i in range(1,n+1): i_first = int(str(i)[0]) i_last = int(str(i)[-1]) memo[i_first][i_last] += 1 ans = 0 for i in range(1,n+1): i_first = int(str(i)[0]) i_last = int(str(i)[-1]) ans += memo[i_last][i_first] print(ans)
[ "yuuta09090530@icloud.com" ]
yuuta09090530@icloud.com
91f058583cc024417caa7cd714d9ec19a965205b
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow_nightly/source2.7/tensorflow/contrib/cmake/tools/create_def_file.py
53c2285699a6ca94e1e6b147080338b507f4d768
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
6,305
py
# Copyright 2017 The TensorFlow Authors. 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 # # Unless required by applica...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
d6b1d62fefd154fc216753ece44b8a604cc0fd8a
e567b06c895054d88758366e769de77ee693a568
/SciComputing with Python/lesson_05-01/sample.py
e0cab4169f719e7eeb254d1eea52b6d3135cd176
[ "MIT" ]
permissive
evtodorov/aerospace
68986b4ae772e1de8cc7982b4f8497b6423ac8cc
54a1b58c3c0b02c0eaa3aef14d0e732d7f867566
refs/heads/main
2023-01-19T17:52:29.520340
2020-11-29T13:23:31
2020-11-29T13:23:31
315,653,634
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
import sys, pygame pygame.init() size = width, height = 320, 240 speed = [2, 2] black = 0, 0, 0 screen = pygame.display.set_mode(size) ball = pygame.image.load("ball.gif") ballrect = ball.get_rect() while 1: for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() ballrect = ballre...
[ "evgeni.todorov@tum.de" ]
evgeni.todorov@tum.de
2960b03d31a1e34b49cacd7b63cd200e1d241e6a
1eddc123709611cf2ddccb0b7d48b722b2a09a5d
/plugins/modules/fmgr_system_logfetch_clientprofile_logfilter.py
49cafb7d5012d7b13262ce02ae1d2cec38bf9dec
[]
no_license
fortinet-ansible-dev/ansible-galaxy-fortimanager-collection
bfb2014a72007358b491bb1d27c0fa3191ec62a8
63b65abce410ed4d6b76e3dd1dcf7a4341cc173d
refs/heads/main
2023-07-09T04:33:38.304263
2023-06-21T21:11:57
2023-06-21T21:11:57
242,629,431
10
18
null
2022-12-16T15:57:16
2020-02-24T02:28:03
Python
UTF-8
Python
false
false
18,341
py
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2023 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
[ "hq-devops-admin@fortinet.com" ]
hq-devops-admin@fortinet.com
a3505eec5c244a934af89056da0444db4381f88d
4fb4899758f3d8c5f1db07e8bc405b13ab4eb0b8
/kth-largest-element-in-an-array.py
94892abc4fb04595156d8e98c265ae30e953475a
[]
no_license
stephenosullivan/LT-Code
e70df6c52c4944c56bb604109c2fc5b537e28ae6
b93e46f6526be7a92ebe16f45998527e2b1dc494
refs/heads/master
2020-04-05T14:39:57.569699
2016-09-14T16:01:22
2016-09-14T16:01:22
15,329,855
1
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
__author__ = 'stephenosullivan' class Solution: # @param {integer[]} nums # @param {integer} k # @return {integer} def findKthLargest(self, nums, k): return self.recursiveFind(nums,0,len(nums)-1,len(nums)-k) def recursiveFind(self,nums,left,right,k): if left == right: r...
[ "osullisg@gmail.com" ]
osullisg@gmail.com
ea14a3b2cb23b70f118f638da113ae63a424dfcc
1ecde4178548f331f15717f245e3f657b58b9993
/yyx_crawler/scrapySchool_Canada_College/scrapySchool_Canada_College/spiders/RedRiverCollege_U.py
6ebd535948b6d3fbcd37154521d382317a534f13
[]
no_license
gasbarroni8/python_spider
296dcb7c3fd9dd028423fe5ec0a321d994478b15
7935fa462926bc8ea9bf9883bd15265dd0d3e6df
refs/heads/master
2023-03-26T05:22:59.858422
2019-04-15T07:17:56
2019-04-15T07:17:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,284
py
__author__ = 'yangyaxia' __date__ = '2018/12/19 11:39' import scrapy import re from scrapySchool_Canada_College.getItem import get_item from scrapySchool_Canada_College.middlewares import * from scrapySchool_Canada_College.items import ScrapyschoolCanadaCollegeItem from w3lib.html import remove_tags from lxml import et...
[ "1102213456@qq.com" ]
1102213456@qq.com
5afb9b6b49f791278da028950a5e4ee455494382
200d924e3a24343f057919cb46b39516c3b228cd
/src/controller/python/test/unit_tests/test_cluster_objects.py
b687cca0036223fe589012e24937fc193665f2e0
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ARMmbed/connectedhomeip
4a992fb91019eb4106ced03944d2669fd735d697
81310d6b73c5d3415c9f76972698a9c3185c127e
refs/heads/master
2023-03-11T03:49:03.271328
2022-08-26T13:54:13
2022-08-26T13:54:13
330,608,139
10
9
Apache-2.0
2023-03-06T16:05:41
2021-01-18T08:57:27
C++
UTF-8
Python
false
false
10,519
py
import typing import unittest from dataclasses import dataclass from chip.clusters import ClusterObjects from chip.tlv import TLVReader, TLVWriter, uint import chip.ChipUtility ''' This file contains tests for checking if the cluster object can generate correct TLV data. For readability, the TLV related tests are p...
[ "noreply@github.com" ]
ARMmbed.noreply@github.com
e9d0c5ae757e80692fa2dc5b31504379db90cd78
2dadc071440a236c32645e5af81d0aa72d68050f
/statistics/estimate_time_visit.py
c0a81f14a1fa6fb9114a84a2e5f8c36978262938
[]
no_license
sunary/data-science
a58d572d05c7c14b7ab5d281889d7206838d97ab
ac5d2af680948e76cf21248797a7014b27e96703
refs/heads/master
2023-04-12T08:42:13.950495
2023-03-28T01:05:32
2023-03-28T01:05:32
43,934,997
4
3
null
2023-03-31T14:29:53
2015-10-09T05:31:13
Python
UTF-8
Python
false
false
6,795
py
__author__ = 'sunary' from datetime import datetime, timedelta class BehaviorEstimate(): ''' Estimate next time visit page in REST crawler ''' LENGTH_HISTOGRAM = 50 CUMULATIVE_DAYS_VISIT = 14 PERCENT_SUBTRACT = 2.0 def __init__(self, min_times=0.2, max_times=10.0, scale_times=3.0): ...
[ "v2nhat@gmail.com" ]
v2nhat@gmail.com
517b023f89130276edb683420abccce55bff849d
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/apimanagement/v20191201/get_content_item.py
666f2b1d836dc8b4fea2b9349128bcf7cba80097
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,753
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...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
6238116c5732ba605c7c4205d8ae65222be4acd1
a9f7e40e18c935fb004fe813f98e298ded0581af
/JOI/JOI_2007_Camp/JOI_2007_Camp_G.py
a7007ccc9f95f65bb2a0d47716a06309f9ed71d5
[]
no_license
happa64/AtCoder_Beginner_Contest
2eb350f500f4bd65f5491b98cdf002ac9b174165
2526e72de9eb19d1e1c634dbd577816bfe39bc10
refs/heads/master
2023-07-08T15:13:51.449555
2021-08-11T14:18:09
2021-08-11T14:18:09
255,601,137
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
# https://atcoder.jp/contests/joisc2007/submissions/17078836 # anagram - アナグラム (Anagram) import sys from collections import Counter sys.setrecursionlimit(10 ** 7) f_inf = float('inf') mod = 10 ** 9 + 7 def resolve(): S = input() n = len(S) D = Counter(S) fact = [1, 1] for i in range(2, n + 1): ...
[ "happa_iidx@yahoo.co.jp" ]
happa_iidx@yahoo.co.jp
0a9e88f11e6bbce3e103e9e4c169699781bddd66
32cf9c3099c36a46804e393dd1491a8954f50263
/2019.05.14 - 팀프로젝트(3)/final_project/workspace/Movies/movies/admin.py
ccf1bccecced7ac7c71989de629aae9c701e9d50
[]
no_license
ash92kr/s_code
ce3bda6a403600892750e181dca5ed8c4caebcb1
92eace551d132b91ee91db6c0afd38b93f9b647b
refs/heads/master
2020-04-12T00:27:07.043091
2019-05-21T08:17:39
2019-05-21T08:17:39
162,200,447
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
from django.contrib import admin from .models import Movie, Actor, Genre # Register your models here. class MovieAdmin(admin.ModelAdmin): list_display =['movie_name', 'time', 'year', 'nation', 'director', 'company',] admin.site.register(Movie, MovieAdmin) class ActorAdmin(admin.ModelAdmin): ...
[ "ash92kr@gmail.com" ]
ash92kr@gmail.com
72d0ef308a76fcc82ad27bdfc8e1eddc24236f9e
88b4b883c1a262b5f9ca2c97bf1835d6d73d9f0b
/src/api/python/hce/app/LogFormatter.py
b175cd80a595a9ebd2b83b0161c0e00772cde50d
[]
no_license
hce-project/hce-bundle
2f93dc219d717b9983c4bb534884e4a4b95e9b7b
856a6df2acccd67d7af640ed09f05b2c99895f2e
refs/heads/master
2021-09-07T22:55:20.964266
2018-03-02T12:00:42
2018-03-02T12:00:42
104,993,955
1
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
''' HCE project, Python bindings. Logging messages formatters classes. @package: dtm @author bgv bgv.hce@gmail.com @link: http://hierarchical-cluster-engine.com/ @copyright: Copyright &copy; 2013-2014 IOIX Ukraine @license: http://hierarchical-cluster-engine.com/license/ @since: 0.1 ''' ##Log formatter event, defines...
[ "bgv@bgv-d9" ]
bgv@bgv-d9
c18961ccd3a21b980f7e0491796ac9a3161fe109
fe9b840db1f522c5fbf92d36bd00717549ec39e0
/Classify/mobilenet.py
7e2b70829f0e59d7ffdd4c611f6586023cc4d7d2
[]
no_license
Interesting6/video_query
82ae32ed75766ead8ac1a8ae7554811535b51454
139df472669ff658a787ddd35e87e8e27bec50a9
refs/heads/master
2021-01-05T05:51:48.625492
2020-05-22T12:41:53
2020-05-22T12:41:53
240,904,052
0
0
null
null
null
null
UTF-8
Python
false
false
6,340
py
from torch import nn # from .utils import load_state_dict_from_url __all__ = ['MobileNetV2', 'mobilenet_v2'] model_urls = { 'mobilenet_v2': 'https://download.pytorch.org/models/mobilenet_v2-b0353104.pth', } def _make_divisible(v, divisor, min_value=None): """ This function is taken from the original t...
[ "cym1106515697@outlook.com" ]
cym1106515697@outlook.com
be414c6d9c8a4fa38608306f213f02dc4f0b0ddb
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/tests/opcodes/cases/test_set_car_201.py
fa6ea91aeb693b4a4e81f6c6103373dac6100b92
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
859
py
from unittest import TestCase from tests import abspath from pytezos.repl.interpreter import Interpreter from pytezos.michelson.converter import michelson_to_micheline from pytezos.repl.parser import parse_expression class OpcodeTestset_car_201(TestCase): def setUp(self): self.maxDiff = None se...
[ "mz@baking-bad.org" ]
mz@baking-bad.org
ed66cc6768c9405f0f187a6c1e81ccb5a154645c
38c10c01007624cd2056884f25e0d6ab85442194
/third_party/chromite/appengine/cq_stats/deploy_app.py
2b5698fd6f5dd69aab98fd2d0d4eaa2730b642c9
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
zenoalbisser/chromium
6ecf37b6c030c84f1b26282bc4ef95769c62a9b2
e71f21b9b4b9b839f5093301974a45545dad2691
refs/heads/master
2022-12-25T14:23:18.568575
2016-07-14T21:49:52
2016-07-23T08:02:51
63,980,627
0
2
BSD-3-Clause
2022-12-12T12:43:41
2016-07-22T20:14:04
null
UTF-8
Python
false
false
4,551
py
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Helper script to deploy the cq_stats app to our appengine instances.""" from __future__ import print_function import os import time from chromite.li...
[ "zeno.albisser@hemispherian.com" ]
zeno.albisser@hemispherian.com
3c1b311d02211bb08bdd94372cca6e663346bf05
0f9c9e4c60f28aa00aff8b80e1e4c142c61d24ce
/Python/LeetCode/242_isAnagram.py
3e5cd108a2aaca80b538583e09a2f80aca6d9f97
[]
no_license
shouliang/Development
c56fcc69e658393c138b63b507b96c48232128d5
b7e3b02c50d54515e584cb18dff83109224245d0
refs/heads/master
2020-03-22T09:14:51.070228
2019-08-29T02:50:26
2019-08-29T02:50:26
139,825,052
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
''' 有效字母的异位词 242. Valid Anagram:https://leetcode.com/problems/valid-anagram/description/ 思路:利用两个哈希表分别记录两个字符串中每个字母的数量,然后再判断这两个哈希表是否相等 ''' class Solution: def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ hash_map1, hash_map2 = {}, {} ...
[ "git@git.dxl.cc:node/hunqing.git" ]
git@git.dxl.cc:node/hunqing.git
717fe40bd5b19f91cfcf1f8aedd7b268368f6a91
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03722/s574255848.py
cb0707f0d06dcc5e4c5b8d71974a4054c8626065
[]
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
507
py
N, M = map(int, input().split()) edges = [None]*M INF = 10**18 for i in range(M): a, b, c = map(int, input().split()) edges[i] = (a-1, b-1, -c) def bellman(n, edges, r): d = [INF] * n d[r] = 0 for i in range(n): for (u, v, c) in edges: if(d[u] != INF and d[u]+c < d[v])...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
890c89205dc57f63f4cc67df2d9cc8e40adbd865
760f598fef1f9a75c4f900c055162387ecbb2e90
/tests/__init__.py
a3ecd56802b0474657bf520da4d90bc201b491d5
[ "MIT" ]
permissive
kernel1983/Fukei
5bb418b1d923c36aa8b241377f39796a0158e084
c2ab6a59166e8b84d19db0774009db39066a1764
refs/heads/master
2021-01-18T10:59:54.528768
2016-01-28T14:07:25
2016-01-28T14:07:25
50,578,445
2
0
null
2016-01-28T11:29:31
2016-01-28T11:29:30
null
UTF-8
Python
false
false
197
py
#!/usr/bin/env python import unittest from test_crypto import TestCrypto from fukei.utils import log_config if __name__ == '__main__': log_config('test', True) unittest.main(verbosity=2)
[ "lyanghwy@gmail.com" ]
lyanghwy@gmail.com
d1f9cd3c08607ebe0da6416f4b5e42eb2652fd12
2634f30c03e5d57574c4d9b29011159bc50cb141
/pythonds/map/node.py
a556c740f57ad91a0aa9105d5bbd8859e43b0401
[]
no_license
ZhouPan1998/DataStructures_Algorithms
800e5066cdd20929b9a365af349ea9616134f148
b2981a7323ff0b42a1e16f5488d5812c5e93dce4
refs/heads/master
2023-07-14T21:18:15.128089
2021-08-26T15:47:12
2021-08-26T15:47:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
# -*- coding: utf-8 -*- from typing import Union class HeaderNode: """跳表头节点""" def __init__(self): self.__down: Union[HeaderNode, DataNode, None] = None self.__next: Union[DataNode, None] = None @property def down(self): return self.__down @down.setter def down(self...
[ "2435128850@qq.com" ]
2435128850@qq.com
54e61c7d98c653417ee8363334fe3665ac157d65
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/compute_operation_value_paged.py
06165ad1a5048168557c142ad220a768e0f20a82
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
997
py
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
e090552291bf9bbc3c1b7220ea1a12fc8ad7e716
2118f244be2e09508e3c89dee432d4a75343b430
/CSV/csv_ex1.py
308dfa85d7e93e0b02c3b1f1aecdf46cc0bddaf4
[]
no_license
RamiJaloudi/Python-Scripts
91d139093a95f9498a77b1df8ec2f790c4f4dd4c
37e740a618ae543a02c38dc04a32ef95202ff613
refs/heads/master
2020-04-29T14:55:41.108332
2019-03-18T05:42:06
2019-03-18T05:42:06
176,212,014
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
# From csv.py def next(self): if self.line_num == 0: # Used only for its side effect. self.fieldnames row = self.reader.next() self.line_num = self.reader.line_num # unlike the basic reader, we prefer not to return blanks, # because we will typically wind up with a ...
[ "rjaloudi@gmail.com" ]
rjaloudi@gmail.com
8a624bb6c252d01e91e85c01db568090a196805a
d33fa69a6948e4f7ec95e9fe8f3ff2befbd51779
/mmdet/core/bbox/samplers/pseudo_sampler.py
6c7189c5902ed0fe0f3155c91af02fd1c86a6bd9
[ "Apache-2.0" ]
permissive
chengdazhi/mmdetection
83848d7d26940ca982460e6a5c54f625b94f47db
08cb54216479e59b4e4fad19ea2c9b3c72fb0405
refs/heads/master
2020-04-10T13:46:51.481551
2018-12-25T13:01:27
2018-12-25T13:01:27
161,059,155
2
0
Apache-2.0
2018-12-09T16:32:58
2018-12-09T16:32:58
null
UTF-8
Python
false
false
789
py
import torch from .base_sampler import BaseSampler from .sampling_result import SamplingResult class PseudoSampler(BaseSampler): def __init__(self): pass def _sample_pos(self): raise NotImplementedError def _sample_neg(self): raise NotImplementedError def sample(self, assi...
[ "chenkaidev@gmail.com" ]
chenkaidev@gmail.com
33db64af4b6ad37a8ec321099aa706a1b8b4384c
07f837d8c5236fe5e75ef510cd296814452370ce
/py/testdir_single_jvm/test_mixed_causes_NA.py
a24a12cd046b8e8886ec2a49e8b3b2181c4a941f
[ "Apache-2.0" ]
permissive
vkuznet/h2o
6f9006a5186b964bac266981d9082aec7bc1067c
e08f7014f228cbaecfb21f57379970e6a3ac0756
refs/heads/master
2021-08-28T11:37:52.099953
2021-08-10T22:43:34
2021-08-10T22:43:34
20,032,996
0
0
Apache-2.0
2021-08-10T22:43:35
2014-05-21T18:46:27
Java
UTF-8
Python
false
false
1,074
py
import unittest, random, sys, time sys.path.extend(['.','..','py']) import h2o, h2o_cmd, h2o_hosts, h2o_import as h2i class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): global localhost localhost = h2o.decide_if_loca...
[ "kevin@0xdata.com" ]
kevin@0xdata.com
34b846756d284503d3d3b0c6ba934e8b12c9642d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_studding.py
6678ad5abd0de12b25008f628d0975d1f26a230f
[ "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
220
py
#calss header class _STUDDING(): def __init__(self,): self.name = "STUDDING" self.definitions = stud self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['stud']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
911f6962a4e6534eb1a2956b6024c1d1ae530963
87ced16167203723557f75dc005c3aaae7e3f404
/online-judges/leetcode/design-add-and-search-words-data-structure.py
2f71bb888414a1be337580044ae83a8a74ae8f26
[]
no_license
joao-conde/competitive-programming
87e0c46f06bc017eea2701b9be860ee614c0e159
0d2d7375f0603142febab69707496d3b5b985054
refs/heads/master
2023-08-07T01:47:19.864827
2023-07-25T11:43:39
2023-07-25T11:43:39
132,962,490
6
3
null
2020-04-20T23:15:25
2018-05-10T22:55:01
C++
UTF-8
Python
false
false
1,304
py
# https://leetcode.com/problems/design-add-and-search-words-data-structure/ class Trie: def __init__(self) -> None: self.terminal = False self.children = dict() class WordDictionary: def __init__(self): self.root = Trie() def addWord(self, word: str) -> None: cur = self....
[ "joaodiasconde@gmail.com" ]
joaodiasconde@gmail.com
666a7c5bf826c9d8442621b3bb6f45d2ab638655
90e089c800d3ac6c9b338618574ce21a306f1399
/core/migrations/0001_initial.py
307b6fd284f8d2f50bffe710697675fced609aba
[]
no_license
Matroskins/fortypes
962e8f28297a565884703ed68ba8a0b93c8e16b3
708a7cc67f6e510152b796759f7e556d96a93522
refs/heads/master
2021-04-27T17:13:41.959941
2018-02-22T14:48:57
2018-02-22T14:48:57
122,317,047
0
0
null
2018-02-21T09:38:05
2018-02-21T09:38:05
null
UTF-8
Python
false
false
667
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-26 10:04 from __future__ import unicode_literals import django.core.files.storage from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
[ "chepe4pi@gmail.com" ]
chepe4pi@gmail.com
3644ea56d205d33828d5068c5f09c042d86d7eaa
4a63e96d7015e3e13d9b5204fc0261c05f600d3b
/Standard Library/argparse/Tutorial/06.1_getting_Advanced.py
afa833359fb3417e73abc11605b031434e4b5584
[ "Apache-2.0" ]
permissive
shubhamnag14/Python-Documents
0e38f58298d35b4df5b61adb361d720337148a00
d3fee0ad90232b413f6ac1b562588fb255b79e42
refs/heads/master
2023-06-08T23:51:26.089840
2021-06-20T15:07:44
2021-06-20T15:07:44
380,832,776
0
0
Apache-2.0
2021-06-27T20:33:08
2021-06-27T20:31:41
null
UTF-8
Python
false
false
654
py
import argparse parser = argparse.ArgumentParser() parser.add_argument("x", type=int, help="The Base") parser.add_argument("y", type=int, help="The Exponent") parser.add_argument("-v", "--verbosity", ...
[ "subhadeep@klizos.com" ]
subhadeep@klizos.com
41782d3bc803c312156388e6359672049401a10e
e62d5b3e9cb8e3549c711067e3f17d7c761f1b2a
/Namedtuple.py
88513e75c97b7868d741eab0904caf7a3f50ff1b
[]
no_license
UncleBob2/MyPythonCookBook
5fe658b3e281861015e154493480753d169764a7
131051c884415cde789a487acb7e7d1f60aea3ac
refs/heads/master
2023-01-03T04:26:15.493832
2020-10-29T20:09:45
2020-10-29T20:09:45
259,091,643
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from collections import namedtuple # a good compromise between tuple and dictionary color = {'red': 55, 'green': 155, 'blue': 255} print('Using dictionary for color', color['red']) Color = namedtuple('Color', ['red', 'green', 'blue']) color = Color(55, 155, 255) white = Color(255, 255, 255) print('Using namedtuple...
[ "trohoang@yahoo.com" ]
trohoang@yahoo.com
e9d586534bf615faad2f0f3aa15943c1fd224d86
875bb84440094ce058a2ec25a661a7da6bb2e129
/algo_py/boj/bj11652.py
86054ecf9b20fc9613ea6167f4bd7af1a8400746
[]
no_license
shg9411/algo
150e4291a7ba15990f17ca043ae8ab59db2bf97b
8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d
refs/heads/master
2023-06-22T00:24:08.970372
2021-07-20T06:07:29
2021-07-20T06:07:29
221,694,017
2
0
null
null
null
null
UTF-8
Python
false
false
202
py
card = dict() for tmp in map(int, __import__('sys').stdin.read().split()[1:]): if tmp not in card:card[tmp] = 1 else:card[tmp] += 1 print(sorted(card.items(), key=lambda a: (-a[1], a[0]))[0][0])
[ "shg9411@naver.com" ]
shg9411@naver.com
fae30accf7693ee02154afb6779d5637a7101c64
4a255da2c8d4c4589ab2c38c378282ea4a65f1d9
/tests/deprecated_api/__init__.py
91c7ef1c1f8801ce7e8c8f96c9d7a65ac3e8d502
[ "Apache-2.0" ]
permissive
wandb/pytorch-lightning
7a2fcdd03d67757c7eb5be7fffc090f55d7927ef
fe34bf2a653ebd50e6a3a00be829e3611f820c3c
refs/heads/master
2022-02-10T12:09:00.469103
2022-01-24T08:19:57
2022-01-24T08:19:57
223,654,630
3
0
Apache-2.0
2021-06-16T10:34:53
2019-11-23T21:19:50
Python
UTF-8
Python
false
false
1,752
py
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
wandb.noreply@github.com