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
f72b255f1a70060f3fae7db94812b435d5bb8b2d
818e5e78f84596a7c086b218fd4aa9e8ea912afe
/hackatons/materials/algo/source/T5_LinearStructure/P2_Queue/counter_game_deq.py
d78087eb4b0f2a733e40cb405b86b2885f5e47e4
[]
no_license
davendiy/forpythonanywhere
44fbc63651309598b58391667f0fead40e8fad91
1b9292ca33b06b17cd516e4e9913479edb6d35cd
refs/heads/master
2020-08-10T04:24:02.665635
2019-10-25T07:05:46
2019-10-25T07:05:46
214,255,096
0
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
#Лічилка з використанням деку from source.T5_LinearStructure.P2_Queue.counter_game import Player from source.T5_LinearStructure.P2_Queue.Deque import Deque def count_counter(): """ Функція розв'язує задачу "лічилка" """ d = Deque() # створити дек d n = int(input('Кількість ...
[ "davendiy@gmail.com" ]
davendiy@gmail.com
8333137c128e54828c5eee264b4aee1b358fa310
f0a1a85e8cae69144ce304d4c91b53b8f8cf5116
/mysite/blog/models.py
6bc8deb3e116bb18d028e1c31219e4e91c1c6bb9
[ "MIT" ]
permissive
ohduran-attempts/by-example
0a96b59cf41e3c955e8e744b0604c909168fd998
a56385c169d426090970f3f481d15fec50a9c603
refs/heads/master
2020-04-22T16:41:53.512719
2019-02-15T07:32:51
2019-02-15T07:32:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,995
py
from common.models import TimeStamped from django.conf import settings from django.db import models from django.urls import reverse_lazy from django.utils import timezone from taggit.managers import TaggableManager class PublishedManager(models.Manager): def get_queryset(self): return super().get_queryse...
[ "alvaro.duranb@gmail.com" ]
alvaro.duranb@gmail.com
bffe3775877350a0d53f049549cc6499bd1d2cee
36901e58fbdeabc7380ae2c0278010b2c51fe54d
/gatheros_subscription/urls/me.py
4823370a6d4c79d1b4002d326f190346c0136ed1
[]
no_license
hugoseabra/congressy
e7c43408cea86ce56e3138d8ee9231d838228959
ac1e9b941f1fac8b7a13dee8a41982716095d3db
refs/heads/master
2023-07-07T04:44:26.424590
2021-08-11T15:47:02
2021-08-11T15:47:02
395,027,819
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
from django.conf.urls import include, url from gatheros_subscription import views urls = [ url( r'^subscriptions/$', views.MySubscriptionsListView.as_view(), name='my-subscriptions' ), ] urlpatterns_me = [url(r'^me/', include(urls))]
[ "hugoseabra19@gmail.com" ]
hugoseabra19@gmail.com
070fc92166fd5c5e64836d1cf9676f441f1cdd5c
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_6404600001200128_1/Python/ihadanny/r1_p1.py
f67fc6f333dd5df96ae47855e77a0df26307669e
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
412
py
from sys import stdin import re import operator import bisect import sys import random cases = int(stdin.next().strip()) for case in range(1, cases+1): N = int(stdin.next().strip()) M = map(int, stdin.next().split()) drops = [max(i-j,0) for i, j in zip(M[:-1], M[1:])] max_eaten = [min(max(d...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
81370fb27ca8ee771d8333b297381817241fd383
9193e2743434893c76e45b85a6a2ebcef71e8e2d
/ch03/ans27.py
7e4795a48c12edf941443c284fa07ea89d030dc3
[]
no_license
kyodocn/nlp100v2020
d4f06a0eb089d7f056aa00817f79199fb4edfed2
99c66511352092a0f4c5028b1f440e09d6401331
refs/heads/master
2022-04-15T02:43:12.003780
2020-04-13T18:41:15
2020-04-13T18:41:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import re import pandas as pd df = pd.read_json('ch03/jawiki-country.json.gz', lines=True) ukText = df.query('title=="イギリス"')['text'].values ls, fg = [], False template = '基礎情報' p1 = re.compile('\{\{' + template) p2 = re.compile('\}\}') p3 = re.compile('\|') p4 = re.compile('<ref(\s|>).+?(</ref>|$)') for l in ukText[...
[ "upura0@gmail.com" ]
upura0@gmail.com
a2111854ac54c26359b72bf65a3d4e34aa50b31e
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/EYojuPCtvSzF2chkZ_1.py
d247c0967894694c7c4e84c2701804484f99a9dd
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
""" Create a function that returns the selected **filename** from a path. Include the **extension** in your answer. ### Examples get_filename("C:/Projects/pil_tests/ascii/edabit.txt") ➞ "edabit.txt" get_filename("C:/Users/johnsmith/Music/Beethoven_5.mp3") ➞ "Beethoven_5.mp3" get_filename("ffp...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
fde97c8249d30b9f96310f9a0f91c45db0dcdc11
4fe971fdd0fb1d87b2bfaa5fe4b249b121501836
/vignewton/managers/admin/images.py
a76a68be13c22e69ecf041c2f50c32321f7ec221
[ "Unlicense" ]
permissive
umeboshi2/vignewton
709c3395b74951385d1d3f9a932e4e6a6c1e0350
bf55f90a25ae616e003ff0f71643dbe5084e924f
refs/heads/master
2021-01-20T13:47:26.052679
2013-10-25T18:36:29
2013-10-25T18:36:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
from cStringIO import StringIO from datetime import datetime import transaction from PIL import Image from vignewton.models.sitecontent import SiteImage class ImageManager(object): def __init__(self, session): self.session = session self.thumbnail_size = 128, 128 def images_qu...
[ "joseph.rawson.works@littledebian.org" ]
joseph.rawson.works@littledebian.org
9f77e916c511b53114f58ea7fa8a56b79e0034a7
7a8bb4c1de15f987e3231590eae74c051bf33726
/SJVA_Scanner_KoreaTV_Download.py
6a40cfa985904b82d46ef3644e0cc39210ea8b19
[]
no_license
sunyruru/SJVA-Scanners
cbe6efa56be4c74a96059a91b32b60ff2ba4f3b6
5028c8c4aa58d4514f77ab46f3155f288c64b6f5
refs/heads/master
2020-04-21T13:40:04.306951
2019-01-28T08:21:35
2019-01-28T08:21:35
169,606,889
2
0
null
2019-02-07T16:53:39
2019-02-07T16:53:39
null
UTF-8
Python
false
false
3,916
py
# -*- coding: UTF-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8') import re, os, os.path import Media, VideoFiles, Stack, Utils import time, json, traceback, io episode_regexps = [ r'(?P<show>.*?)[\s\.]E?(?P<ep>\d{1,2})[\-\~]E?\d{1,2}', #합본 걸리게 r'(?P<show>.*?)[eE](?P<ep>[0-9]{1,4})' ] date_rege...
[ "cybersol@naver.com" ]
cybersol@naver.com
9e0ed93c65839146d4639537314916ed89f2de42
cdd5c3238ba9feba53f95a04c247a846b15ecd09
/code/client/munkilib/updatecheck/unused_software.py
6c770cb491ffacf602e09ea131244321d63ffc2c
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
munki/munki
13d786513f8fd5dba6f533bfbea76d28c4836d8e
d3c9eb4ffccd280fe3e4bbce9544171cb6c2cc80
refs/heads/main
2023-08-27T23:19:04.095339
2023-08-01T23:44:10
2023-08-01T23:44:10
24,219,473
2,890
474
NOASSERTION
2023-08-22T15:15:44
2014-09-19T06:51:32
Python
UTF-8
Python
false
false
5,577
py
# encoding: utf-8 # # Copyright 2017-2023 Greg Neagle. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "gregneagle@mac.com" ]
gregneagle@mac.com
7942255ce3e00ae3769a7cdbbb8edc73fc986e87
6b1cac18b81a4704c310fb30a30e2906c6137511
/onepanman_api/views/api/notice.py
26a0a1f3a0327c3e7ae9f34146fc170cb14d8ea3
[ "MIT" ]
permissive
Capstone-onepanman/api-server
973c73a4472637e5863d65ae90ec53db83aeedf7
1a5174fbc441d2718f3963863590f634ba2014e1
refs/heads/master
2022-12-09T22:43:23.720837
2020-03-20T00:43:21
2020-03-20T00:43:21
234,227,137
0
0
MIT
2022-12-08T02:37:19
2020-01-16T03:29:36
Python
UTF-8
Python
false
false
247
py
from rest_framework import viewsets from onepanman_api.models import Notice from onepanman_api.serializers.notice import NoticeSerializer class NoticeViewSet(viewsets.ModelViewSet): queryset = Notice serializer_class = NoticeSerializer
[ "dngusdnd@gmail.com" ]
dngusdnd@gmail.com
dd17276b517f0934344b4de656f26eca45e56c03
df9b342f71cee4306c52ee5e29d105f8712d7439
/BOJ/하노이탑/다른사람.py
b447ae5dea94644e425cae796590c5652794ad21
[]
no_license
qkreltms/problem-solvings
a3fbd93d5664830761c70ef6a476e94ada399af0
cade3fc738c0b7b40ae4bf0385fdd552313ad5a1
refs/heads/master
2023-07-19T08:17:48.580833
2021-08-31T08:45:57
2021-08-31T08:45:57
136,621,853
2
0
null
null
null
null
UTF-8
Python
false
false
187
py
def f(n, a, b, c): if(n == 1): print(a, c, sep = " ") else: f(n-1, a, c, b) f(1, a, b, c) f(n-1, b, a, c) n = int(input()) print(2**n-1) if(n <= 20): f(n, 1, 2, 3)
[ "junghooncentralpark@gmail.com" ]
junghooncentralpark@gmail.com
fbe5bbf72cfc77e0e0a289bbf4f3e02ff45f6c7d
c421330a5e03df01aa4ec9dc1c60dd2b9c514423
/movieproject/movieapp/urls.py
29e716810f30b03d4a9e060a55a905cdf4dcd5f1
[]
no_license
sayanth123/movieapp
16051774cbb1766c513a3e2b28c45b905c45c4d0
f4e50a7f1b7441390ab234c11a13e1d989ec3118
refs/heads/master
2023-05-06T05:41:09.735871
2021-05-26T12:46:47
2021-05-26T12:46:47
371,027,811
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
from . import views from django.urls import path app_name='movieapp' urlpatterns = [ path('', views.index,name='index'), path('movie/<int:movie_id>/', views.detail,name='detail'), path('add/', views.add,name='add'), path('update/<int:id>/', views.update,name='update'), path('delete/<int:id>/', views.delete,name='delet...
[ "you@example.com" ]
you@example.com
63b6f5beff30f469db12c028c0a1fefdad4c79f5
d507d0846902e0012a4b2a0aaaea1cbbdb21db46
/supervisely_lib/annotation/json_geometries_map.py
394b5674ece0eb53c38ebf1dfc6160b66988b185
[]
no_license
wpilibsuite/supervisely
a569fdc0d5e5f2fb912f32beab8f3fedb277504e
19805ca9b2bd20e31d6d41a99dc37dc439bc257a
refs/heads/master
2022-09-09T02:32:54.883109
2020-06-01T20:55:49
2020-06-01T20:55:49
267,916,361
2
3
null
2020-06-03T13:59:56
2020-05-29T17:27:30
Python
UTF-8
Python
false
false
843
py
# coding: utf-8 from supervisely_lib.geometry.bitmap import Bitmap from supervisely_lib.geometry.cuboid import Cuboid from supervisely_lib.geometry.point import Point from supervisely_lib.geometry.polygon import Polygon from supervisely_lib.geometry.polyline import Polyline from supervisely_lib.geometry.rectangle impor...
[ "austinshalit@gmail.com" ]
austinshalit@gmail.com
996df35200d2adc6b93a637fd11c0fe8b8974d26
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/_claims_models.py
9859688f266bb0aff4d28d6e620d07a0fd31064e
[ "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
4,138
py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """Models for application claims.""" from typing import Any, Dict, Optional, Union from dataclasses import dataclass @dataclass class LedgerEntryClaim: """ Le...
[ "noreply@github.com" ]
Azure.noreply@github.com
0185c4f4c626389ea2464ebda9f072d8a3b86e50
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/python/keras/api/_v2/keras/applications/xception/__init__ 2.py
bf93ae01110de2a54ca5eaeaa25020b85ad82eab
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:bdac5cda377d4d39bccb19a4cdeafc9b8f2a51c4983a1c81f5f33a22b6729864 size 731
[ "business030301@gmail.com" ]
business030301@gmail.com
5528da26ff17297745c4e882767344421f6747fc
5da373c7f45b65894804002ef33fd53264d976f9
/ppim/models/__init__.py
375413f9f747aca74a305719606c6d34f8708fba
[ "Apache-2.0" ]
permissive
chenhaohan88/Paddle-Image-Models
55bfafdbb43ef001faa4ea2e53570ab3248e4786
c80e3423ce57779b3426c3c024f3fc51cdb9d1b7
refs/heads/main
2023-04-10T22:52:45.251251
2021-04-04T02:20:15
2021-04-04T02:20:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
# Transformer # from .tnt import tnt_s, TNT from .vit import VisionTransformer from .pit import pit_ti, pit_s, pit_xs, pit_b, pit_ti_distilled, pit_s_distilled, pit_xs_distilled, pit_b_distilled, PoolingTransformer, DistilledPoolingTransformer from .deit import deit_ti, deit_s, deit_b, deit_b_384, deit_ti_distilled, de...
[ "2286040843@qq.com" ]
2286040843@qq.com
de9883ebf4e9b195992a3a40d7ed18ada729acc7
ab1c920583995f372748ff69d38a823edd9a06af
/hw/day9/day9_hw3.py
16f8486856923f4b36925b819f6988b3d58adbad
[]
no_license
adyadyat/pyprojects
5e15f4e33892f9581b8ebe518b82806f0cd019dc
c8f79c4249c22eb9e3e19998d5b504153faae31f
refs/heads/master
2022-11-12T16:59:17.482303
2020-07-04T09:08:18
2020-07-04T09:08:18
265,461,663
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
for i in range(1,9): for j in range(8,i,-1): print(' ',end='') for k in range(1,i+1): print(i,end='') for x in range(2,i+1): print(i,end='') print() for i in range(7,0,-1): for j in range(i,8): print(' ',end='') for k in range(i,0,-1): print(i,end='') for x in range(i,1,-1): print(i,end='') print() ...
[ "omorbekov.a@gmail.com" ]
omorbekov.a@gmail.com
5b809ff208831e26008b58b30ecc4453fe7f150d
fcc665fc2792820e438d32339cc12ae796c1835c
/opps/core/models/profile.py
d012047a545730de5be9f658dfa00941a86911e5
[ "MIT" ]
permissive
marcelomilo/opps
e3614e644d97ebc6b62e0083aee9a42c242f567c
bf92a003b6ad1f521d662d767a29f58a6033cb3d
refs/heads/master
2021-01-16T18:50:12.146646
2013-03-02T05:15:51
2013-03-02T05:15:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
# -*- coding: utf-8 -*- from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ class Profile(models.Model): user = models.ForeignKey(User, related_name='user') twitter = models.CharField(_(u"Twitter"), max_length=75, blank=True, ...
[ "thiagoavelinoster@gmail.com" ]
thiagoavelinoster@gmail.com
ef2d18211c323bd7603ec0938ce87dce09755d62
b4c2bbf32748f381f8918c2c20d2a86b5453dc87
/plugins/convert/mask/box_blend.py
f42177463e6d8e748353a1bd9354d1eaf432d0ff
[ "MIT" ]
permissive
oveis/DeepVideoFaceSwap
d45c7a18204f851a5c8b9cb6c9618284d4314b59
e507f94d4f5d74c36e41c386c6fb14bb745a4885
refs/heads/dev-gan-model
2022-07-14T10:06:08.131201
2019-07-09T00:48:16
2019-07-09T00:48:16
184,978,011
6
5
MIT
2022-06-21T22:00:38
2019-05-05T04:09:53
Python
UTF-8
Python
false
false
1,990
py
#!/usr/bin/env python3 """ Adjustments for the swap box for faceswap.py converter """ import numpy as np from ._base import Adjustment, BlurMask, logger class Mask(Adjustment): """ Manipulations that occur on the swap box Actions performed here occur prior to warping the face back to the background fram...
[ "jinil@nyu.edu" ]
jinil@nyu.edu
1a6bfbbed305ea623e2da442fa25a000b9f34077
53568d7c9ca6d53f3f90fe45d33cf6357a732a88
/170521-lambda-expresions,list-comprehension,classes/ulamek.py
4b3d6cf7509a99713ff711da7a639b031f54f698
[]
no_license
majsylw/Python-3.x-examples
eb7ce7df9c582f7b56fa6d40db5f96479858f867
59b56ca98a0ea27ce48fb47a173333bf0a9d1349
refs/heads/main
2023-06-08T07:24:53.052672
2021-06-29T12:46:15
2021-06-29T12:46:15
348,288,268
0
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
""" Przykładowa definicja klasy ułamek -- wykorzystanie metod specjalnych """ import math class Ulamek: def __init__(self, licznik, mianownik): assert(mianownik > 0) self.licznik, self.mianownik = licznik, mianownik self.skracanie() # funkcja print def __str__(self): retur...
[ "58003896+majsylw@users.noreply.github.com" ]
58003896+majsylw@users.noreply.github.com
1edbe9210cdaf8b6747c0577918cd4156ca3452d
57ddfddd1e11db649536a8ed6e19bf5312d82d71
/AtCoder/ABC1/ABC184/D.py
b4c97e61d1c7838d65bbca5688a51931bd044ccf
[]
no_license
pgDora56/ProgrammingContest
f9e7f4bb77714dc5088c2287e641c0aa760d0f04
fdf1ac5d1ad655c73208d98712110a3896b1683d
refs/heads/master
2023-08-11T12:10:40.750151
2021-09-23T11:13:27
2021-09-23T11:13:27
139,927,108
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
import sys sys.setrecursionlimit(10**9) memo = {} def search(a,b,c,cnt): tot = a+b+c if a > b: a, b = b, a if b > c: b, c = c, b if a > b: a, b = b, a if a in memo: if b in memo[a]: if c in memo[a][b]: return memo[a][b][c] else: ...
[ "doradora.prog@gmail.com" ]
doradora.prog@gmail.com
6cbdb1487c6d3378423262ea3ae076dec93232d6
7c6b801ff36aa0a82ceb30c98e90091209320c7c
/cloudant121234.py
36222d26b5123a8e34eafb378d33919373468894
[]
no_license
SmartPracticeschool/llSPS-INT-2442-Smart-Waste-Management-System-For-Metropolitan-Cities
5872fc64c1290991bb36b8f7fdc03eceb0025a8f
c6673bf9171b66b08a0c5a5f6643799b0d7fc3e6
refs/heads/master
2022-10-20T07:07:52.180598
2020-06-09T14:23:00
2020-06-09T14:23:00
267,571,204
2
0
null
null
null
null
UTF-8
Python
false
false
4,459
py
import time import sys import random import ibmiotf.application import ibmiotf.device #Provide your IBM Watson Device Credentials organization = "q2va6d" # repalce it with organization ID deviceType = "rsip" #replace it with device type deviceId = "108" #repalce with device id authMethod = "token" authT...
[ "noreply@github.com" ]
SmartPracticeschool.noreply@github.com
9a5b1d2e7d6dea3e986d99e0bb25fe5acc6bb443
63b0f544dc8ad899dd605d36e6048077c7a9ed6e
/tests/test_shrinking.py
1c5b0a732701a01bc5dd6b9c42af810e40883b84
[]
no_license
DRMacIver/structureshrink
c2372d7e4686879cb035292573d32a60459f1024
625e01236d6a7d72295782277737595f81d77d2a
refs/heads/master
2020-05-22T02:47:24.446684
2016-06-16T12:16:39
2016-06-16T12:16:39
55,408,891
101
6
null
2016-04-18T20:24:31
2016-04-04T12:20:29
Python
UTF-8
Python
false
false
734
py
from structureshrink import shrink from hypothesis import given, strategies as st import hashlib @given(st.binary(), st.random_module()) def test_partition_by_length(b, _): shrunk = shrink(b, len) assert len(shrunk) == len(b) + 1 @given( st.lists(st.binary(min_size=1, max_size=4), min_size=1, max_size=5...
[ "david@drmaciver.com" ]
david@drmaciver.com
b22e2138f9c4c2578dd2761ab351bdc609613b66
381b75fe68a4da258e2e60a97105b66ac47214e4
/qa/rpc-tests/getblocktemplate_proposals.py
bd844d49dd91db1fa1eb0f16535ccea2625de16b
[ "MIT" ]
permissive
lipcoin/lipcoin
3a5997dfc9193ee7dee6f9fa0adc1cb5fb8c92a3
7afc0a02d63620e5a5601474cca131cb0cf3bbe4
refs/heads/master
2021-01-24T07:57:56.248620
2018-03-17T19:04:38
2018-03-17T19:04:38
112,155,869
0
0
null
null
null
null
UTF-8
Python
false
false
5,726
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The LipCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import LipCoinTestFramework from test_framework.util import * from bi...
[ "support@lipcoins.org" ]
support@lipcoins.org
3d3ed85bb76718a4e5973252aefc6b9b998ef6c6
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/OTLModel/Datatypes/KlOmegaElementMateriaal.py
0e4f888f71af1341513eee503beab2556145d36f
[ "MIT" ]
permissive
davidvlaminck/OTLMOW
c6eae90b2cab8a741271002cde454427ca8b75ba
48f8c357c475da1d2a1bc7820556843d4b37838d
refs/heads/main
2023-01-12T05:08:40.442734
2023-01-10T15:26:39
2023-01-10T15:26:39
432,681,113
3
1
MIT
2022-06-20T20:36:00
2021-11-28T10:28:24
Python
UTF-8
Python
false
false
2,285
py
# coding=utf-8 import random from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlOmegaElementMateriaal(KeuzelijstField): """De gebruikte material...
[ "david.vlaminck@mow.vlaanderen.be" ]
david.vlaminck@mow.vlaanderen.be
bf7636f3f80aa31b41bfea8c5de09a9c2c78081e
be5e5aebd753ed1f376dc18ce411f0fac6d2f762
/natuurpunt_purchase/__openerp__.py
2c5775f49e8c2d135a4f1389ae4e637f0ac437cf
[]
no_license
smart-solution/natuurpunt-purchase
7d9fcfdde769b6294d8dc705cecc99a177b4573c
0ac94cb68cee4ef464158720e04007ee12036179
refs/heads/master
2021-05-22T04:43:21.594422
2020-11-02T13:32:27
2020-11-02T13:32:27
39,186,322
0
2
null
2020-11-02T13:32:28
2015-07-16T08:42:31
Python
UTF-8
Python
false
false
1,548
py
# -*- coding: utf-8 -*- ############################################################################## # # Smart Solution bvba # Copyright (C) 2010-Today Smart Solution BVBA (<http://www.smartsolution.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the ...
[ "fabian.semal@smartsolution.be" ]
fabian.semal@smartsolution.be
981bbfed69a5508f0cfab20fc831cfd657c03bfd
690c4fd238926624c1d3fa594aeb9d7140618b5b
/day04/mysite4/mysite4/settings.py
b6283d1c8dc99f4cc72597551584c5d90b1ccbf3
[]
no_license
dalaAM/month_04
66c4630a169294f4e4dca26c77989ad5879da2ca
322532fedd095cd9307ee4f2633026debe56f551
refs/heads/master
2022-12-04T06:02:12.995054
2020-08-23T04:06:19
2020-08-23T04:06:19
286,018,771
0
0
null
null
null
null
UTF-8
Python
false
false
3,203
py
""" Django settings for mysite4 project. Generated by 'django-admin startproject' using Django 2.2.13. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os ...
[ "1105504468@qq.com" ]
1105504468@qq.com
387622b9565cfcaa2fe10c694aeb971fe457181e
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/MuonSpectrometer/MuonCnv/MuonByteStream/share/WriteMuonByteStream_jobOptions.py
a8c537456ede0b7ccc707e97e9cfe4a5455e6a66
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
221
py
theApp.Dlls += [ "MuonByteStream" ] StreamBS = Algorithm( "StreamBS" ) StreamBS.ItemList +=["4187#*"] StreamBS.ItemList +=["4190#*"] StreamBS.ItemList +=["4186#*"] StreamBS.ItemList +=["4183#*"] StreamBS.ForceRead=True
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
235b0d7e97c24574ab59397ad07507f0a41dccd3
45d515a0e33794e7c46a3ad7e1cfdf3ac6c2ee83
/collector.py
75168f49016e4b9e35ec36b52b159adbb814a41a
[ "MIT" ]
permissive
djcarter85/Fantasy-Premier-League
12b2aaef62c5bc4e0656b83572c2ff9087aa4238
46a8e72b80b34a1afe3d7a9c9b4f8ad0cba48b7e
refs/heads/master
2021-07-03T13:04:05.621833
2020-12-21T17:16:41
2020-12-21T17:16:41
201,034,915
1
0
NOASSERTION
2019-08-07T11:16:27
2019-08-07T11:16:26
null
UTF-8
Python
false
false
4,066
py
import os import sys import csv def get_teams(directory): teams = {} fin = open(directory + "/teams.csv", 'rU') reader = csv.DictReader(fin) for row in reader: teams[int(row['id'])] = row['name'] return teams def get_fixtures(directory): fixtures_home = {} fixtures_away = {} f...
[ "vaastav.anand05@gmail.com" ]
vaastav.anand05@gmail.com
bb010b096427cce84eb368767cc9d17ddb8f16db
a9fc496e0724866093dbb9cba70a8fdce12b67a9
/scripts/field/eunwol_house.py
131e7ecadea4a9957479632d96bd39eede25e3ea
[ "MIT" ]
permissive
ryantpayton/Swordie
b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0
ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e
refs/heads/master
2022-12-01T09:46:47.138072
2020-03-24T10:32:20
2020-03-24T10:32:20
253,997,319
2
0
MIT
2022-11-24T08:17:54
2020-04-08T05:50:22
Java
UTF-8
Python
false
false
878
py
# 410000001 if sm.hasQuest(38002): sm.removeEscapeButton() sm.flipDialoguePlayerAsSpeaker() sm.sendNext("What happened? A house and a new name... But what happened to my friends? Are they alive? If I am, then maybe we failed to seal the Black Mage...") sm.sendSay("No. They wouldn't give up that easily. ...
[ "mechaviv@gmail.com" ]
mechaviv@gmail.com
cc95e675ce9006d3e9f7d28cffe4c7ef20978ece
e024cc2f51d2c9104a514f3f1a77c5cabbe7691a
/examplePandas.py
c717fed2795c5e5ce4b716fd2779e9a249e1c041
[]
no_license
wilsonsk/Machine-Learning-for-Stock-Trading
1818f144df02e69ce3e29fe1eb576675d512324a
bf5a36942e0f39e6c6d1c521bb3532e7eb82b669
refs/heads/master
2021-06-08T18:47:35.787532
2016-09-23T05:13:22
2016-09-23T05:13:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
import pandas as pd def test_run(): df = pd.read_csv("data/AAPL.csv"); print df #print entire dataframe #print df.head() -- print first 5 rows #print df.tail() -- print last 5 rows #print df.tail(n) -- print last n rows if __name__ == "__main__": test_run()
[ "root@localhost.localdomain" ]
root@localhost.localdomain
6b2dc4c4ace54c42df53fad4d1201457c5f52c49
881041fab1b4d05f1c5371efed2f9276037eb609
/tasks/where-civilian-complaints-were-reported-2005-2009/depositor.py
cfc1f38a64c3ca6b8dd165f0179f14f18bf8bf97
[]
no_license
ResidentMario/urban-physiology-nyc-catalog
b568f3b6ee1a887a50c4df23c488f50c92e30625
cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c
refs/heads/master
2021-01-02T22:43:09.073952
2017-08-06T18:27:22
2017-08-06T18:27:22
99,377,500
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
import requests r = requests.get("https://data.cityofnewyork.us/api/views/wqr5-zmgj/rows.csv?accessType=DOWNLOAD") with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/where-civilian-complaints-were-reported-2005-2009/data.csv", "wb") as f: f.write(r.content) outputs = ["/home/alex/Desktop/urban-phys...
[ "aleksey.bilogur@gmail.com" ]
aleksey.bilogur@gmail.com
216af594580d96800f9747a8650c7a4f5c81e89f
88ba19b3303c112a424720106a7f7fde615757b5
/03-data_manipulation_with_pandas/01-transforming_data/sorting_rows1.py
0939c1757697add7f2c7c4dbd665fad67ebd8b1c
[]
no_license
mitchisrael88/Data_Camp
4100f5904c62055f619281a424a580b5b2b0cbc1
14356e221f614424a332bbc46459917bb6f99d8a
refs/heads/master
2022-10-22T18:35:39.163613
2020-06-16T23:37:41
2020-06-16T23:37:41
263,859,926
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> # Sort homelessness by individual homelessness_ind = homelessness.sort_values("individuals") # Print the top few rows print(homelessness_i...
[ "noreply@github.com" ]
mitchisrael88.noreply@github.com
170a9f6840626ccbdc39ec724bedd10138df1fc0
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/security/azure-mgmt-security/azure/mgmt/security/_configuration.py
9aa2b7aa11ce32d405db56ca4db44791e423a5c6
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
2,145
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 ...
[ "zikalino@microsoft.com" ]
zikalino@microsoft.com
07ccca1ad2d1ac1eabc7ee6a124434a18a9abf44
5e5799e0ccce7a72d514fbc76dcb0a2108013f18
/DAQConst.py
97bc899ca96bfab6e6bceb5513c84de6b84fe56f
[]
no_license
sourcery-ai-bot/dash
6d68937d225473d06a18ef64079a4b3717b5c12c
e1d1c3a601cd397d2508bfd4bb12bdb4e878cd9a
refs/heads/master
2023-03-07T17:15:39.174964
2011-03-01T17:11:21
2011-03-01T17:11:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
#!/usr/bin/env python # # DAQ Constant values class DAQPort(object): "DAQLive port" DAQLIVE = 6659 "IceCube Live logging/monitoring port" I3LIVE = 6666 "CnCServer XML-RPC port" CNCSERVER = 8080 "CnCServer->DAQRun logging port" CNC2RUNLOG = 8999 "DAQRun XML-RPC port"...
[ "dglo@icecube.wisc.edu" ]
dglo@icecube.wisc.edu
6eb0d84530b500e74e8e9edde1228aadfe50f8ea
8966d83bf85d4738d644624bd7b7063e8534a515
/data.d/code/python/example/wxpython/frame_boxsizer_horizontal.py
cb90c4dd5a0b24d8d1c6b59f67b455c564814a00
[]
no_license
taka16a23/.emacs.d
84a77c04c4d5e00c089cb01cc42a94b884f729ae
ac5794e2594037e316d5fe9cf6bf1fd20b44a726
refs/heads/master
2023-05-29T06:25:38.449977
2023-05-16T22:08:04
2023-05-16T22:08:04
82,106,233
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from time import sleep import wx def _main(): app = wx.App() frame = wx.Frame(None, wx.ID_ANY, 'test Frameme', size=(400, 200)) panel = wx.Panel(frame, wx.ID_ANY) panel.SetBackgroundColour('#AFAFAF') button_1 = wx.Button(panel, wx.ID_ANY, ...
[ "root@qu" ]
root@qu
d29954de8f62e3c9ec1497319acc72009ec90777
42d8bea28c7a34dde8d47f81e9463c5970af7120
/app/api/convert.py
6b5629f6f561c782c33307b24c72610c5501db73
[ "MIT" ]
permissive
Tharitos/mse_teacher_plan
1e26818811db4991eadca3157b28b2c9ae691416
4c577f810eb040c4a74810c98e2c8c4b514caf5d
refs/heads/master
2020-04-07T05:57:52.084094
2018-11-18T19:04:02
2018-11-18T19:04:02
158,116,922
0
0
NOASSERTION
2018-11-18T19:01:48
2018-11-18T19:01:48
null
UTF-8
Python
false
false
2,032
py
from typing import Union, List, Type, Dict import bson import datetime import mongoengine from mongoengine.document import Document ConvertedField = Dict[str, Union[str, int, List[str]]] ConvertedDocument = List[ConvertedField] def f(text: str, name: str, type: str, opts: List[str] = None, value: str='', fix...
[ "thexcloud@gmail.com" ]
thexcloud@gmail.com
c09c4c872e08f2b035c24a8533dc2d86407835e1
ee53b0262007b2f0db0fe15b2ad85f65fafa4e25
/Leetcode/1488. Avoid Flood in The City.py
8c3fd8f830fe17cfd954caa9f8977d15f440474a
[]
no_license
xiaohuanlin/Algorithms
bd48caacb08295fc5756acdac609be78e143a760
157cbaeeff74130e5105e58a6b4cdf66403a8a6f
refs/heads/master
2023-08-09T05:18:06.221485
2023-08-08T11:53:15
2023-08-08T11:53:15
131,491,056
1
0
null
null
null
null
UTF-8
Python
false
false
3,234
py
''' Your country has an infinite number of lakes. Initially, all the lakes are empty, but when it rains over the nth lake, the nth lake becomes full of water. If it rains over a lake that is full of water, there will be a flood. Your goal is to avoid floods in any lake. Given an integer array rains where: rains[i] > ...
[ "xiaohuanlin1993@gmail.com" ]
xiaohuanlin1993@gmail.com
d7c897b1fa38a472e0636bfb49694cb78a9a4151
5492859d43da5a8e292777c31eace71e0a57dedf
/chat/migrations/0021_auto_20190711_2100.py
648c9ff6915b6a1a5b5e87052c58dbab41893255
[ "MIT" ]
permissive
akindele214/181hub_2
93ad21dc6d899b6c56fbe200354b1678bb843705
48b8814b5f66ad87f9a54721506076ddf70fe9bc
refs/heads/master
2022-12-13T01:15:07.925556
2020-05-19T09:39:57
2020-05-19T09:39:57
196,470,605
1
1
MIT
2022-12-08T01:22:55
2019-07-11T22:04:42
Python
UTF-8
Python
false
false
762
py
# Generated by Django 2.1.5 on 2019-07-11 20:00 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('chat', '0020_reportchat_content'), ] operations = [ migrations.AlterField(...
[ "yaomingnakel@gmail.com" ]
yaomingnakel@gmail.com
72c5c560be0c150db2650cd8ddc1d2d5d0b5b6df
f4d8faeebbf9b7fe43396c637096a56c01a70060
/blog/migrations/0006_auto_20201105_1114.py
5f8babf0fc5e5c91344168878c7a39cc28a2de29
[]
no_license
eloghin/blog
eb44f6d57e88fefacb48111791b9c96fd4883be9
3c27a112bb3d51a5a25e901c10a632d4d6251a15
refs/heads/main
2023-01-07T05:47:59.124104
2020-11-05T13:12:48
2020-11-05T13:12:48
309,698,269
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
# Generated by Django 3.1.2 on 2020-11-05 11:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0005_auto_20201021_0920'), ] operations = [ migrations.AlterModelOptions( name='comment', options={'ordering...
[ "contact@elenaloghin.ro" ]
contact@elenaloghin.ro
90687734a25d313028207d5b66add9b5d039eb1f
6ab217b675b0d33dec9d8985efc2de314e3a7a28
/menus/controllers/restapi/menu_category/urls.py
05579b2896e01b722317338f1b06535471c80647
[]
no_license
nujkram/dream_cream_pastries
3547928af859ebbb93f8d6ff64d02796d8c61a0c
c6a764f4f2c16191661ee6747dc0daa896eae5ec
refs/heads/master
2023-06-20T20:20:21.001373
2021-07-29T00:55:49
2021-07-29T00:55:49
375,721,861
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
from django.urls import path from dream_cream_pastries_project.urls import ( URL_READ_ONLY, URL_DETAIL, URL_CREATE, URL_UPDATE, URL_DELETE ) from .api import( ApiPublicMenuCategoryListDetail, ApiPrivateMenuCategoryViewSet ) VERSION = 'v1' urlpatterns = [ # public path( f'{...
[ "markjungersaniva@gmail.com" ]
markjungersaniva@gmail.com
0646e9fd57a5a8ba9198885afcbdf59f25a09de9
027635467005c93a5b5406030b6f8852368e6390
/question1_highest_average.py
a26682a8d9d01efbdae4eb073f9c60eec3e52feb
[]
no_license
Shadyaobuya/Opibus-Assessment
0472a05e4c78b28cc5779d1a2a78c29cabb1ba04
8675e82a1c64d864eb4f85604d7843670a3f8078
refs/heads/master
2023-08-22T16:14:57.912494
2021-10-16T11:40:14
2021-10-16T11:40:14
417,516,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
#This is a program that takes in a list of discharge rates and returns the highest average def find_highest_average(discharge): new_list=[] #create an empty list that will hold the sum of two contiguous rates for rate in range(len(discharge)-1): high=discharge[rate]+discharge[rate+1] ne...
[ "shadyaobuyagard@gmail.com" ]
shadyaobuyagard@gmail.com
1a54da2add1bd9577ec9109d3620de423fa16e30
d31d744f62c09cb298022f42bcaf9de03ad9791c
/federated/tensorflow_federated/__init__.py
7153a5a59599a5d2457dc00818688f32f3380d26
[]
no_license
yuhuofei/TensorFlow-1
b2085cb5c061aefe97e2e8f324b01d7d8e3f04a0
36eb6994d36674604973a06159e73187087f51c6
refs/heads/master
2023-02-22T13:57:28.886086
2021-01-26T14:18:18
2021-01-26T14:18:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,090
py
# Copyright 2019, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
abada1167457df8faaf71d0f85057c37fcd5b748
929fc8dd47b91c963c8c2f81d88e3d995a9dfc7c
/src/subject/Tree.py
3ebe30494ae72e4da3574a67bea453247420b88b
[]
no_license
1325052669/leetcode
fe7571a9201f4ef54089c2e078810dad11205b14
dca40686c6a280bd394feb8e6e78d40eecf854b9
refs/heads/master
2023-04-01T17:53:30.605822
2021-04-10T15:17:45
2021-04-10T15:17:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,284
py
class TreeNode: def __init__(self,val): self.val=val self.left =None self.right = None class Tree: def __init__(self): pass def pre_order_traverse(self,root): if not root:return [] res = [] def dfs(node,res): if not node:return ...
[ "js7995@nyu.edu" ]
js7995@nyu.edu
eb96064b42e96778d4d8b0bdffaf9669ba512f73
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2178/60692/285974.py
d49a0e281bfcaae701b49245a014c2d5ce39431b
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
816
py
from collections import defaultdict ''' n = int(input()) list1 = input().split(" ") count = 0 s1 = '' res = [] dic1 = defaultdict(int) for i in range(n): count += i + 1 if i == 0: s1 = list1[i] else: s1 += list1[i] if list1[i] == list1[i - 1]: dic1[list1[i]] += 1 ...
[ "1069583789@qq.com" ]
1069583789@qq.com
5a68d169b1831d85bb68d490f987e3d2d2cbac5a
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil979.py
e80fc8be8c4791851baaa5a6a9e04a24ad913cfd
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,043
py
# qubit number=5 # total number=43 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=3 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
becca70bff7e7bf31f995812875dc8047fd6f021
177455bdf1fece221eef93b50f16253d342aa6a6
/alerta/api/v2/views.py
b3627e1aa8dedf3635fb8cf886a08f541b70a809
[ "Apache-2.0" ]
permissive
ntoll/alerta
c42630d91bf16cb649b43b69ae798abe60f39ed6
8122526b1791a0ff0d1aa26061129892b7e86f00
refs/heads/master
2021-01-18T05:18:30.062671
2013-03-03T23:17:10
2013-03-03T23:17:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,637
py
from flask import jsonify, request, current_app from functools import wraps from alerta.api.v2 import app, mongo import datetime # TODO(nsatterl): put these constants somewhere appropriate MAX_HISTORY = -10 # 10 most recent # TODO(nsatterl): use @before_request and @after_request to attach a unique request id @app....
[ "nick.satterly@guardian.co.uk" ]
nick.satterly@guardian.co.uk
49ef83378fcd0ea9e5514661358c72f05e5b41ae
d37bac0cca5a3fce2eaeded5ab8262f3ec215b85
/backend/home/migrations/0002_load_initial_data.py
7de06fbaafa1d57c815551632a91d73c08613ed1
[]
no_license
crowdbotics-apps/m-18-nov-dev-15260
52ada15c3d64dc0ba8fdc83a0887e830268ff02c
4e951ccfe3ab16025f995ef8fea500522e0470e0
refs/heads/master
2023-01-16T06:03:20.219329
2020-11-18T06:47:21
2020-11-18T06:47:21
313,847,239
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "m 18 nov" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
a20ffd93c0dcbfea4dfc93f1a9c4a64f1c8d25aa
36de14c6b188886df6a284ee9ce4a464a5ded433
/Solutions/0838/0838.py
ca1246e69387c77941ed2610ee370d69c953d1e0
[]
no_license
washing1127/LeetCode
0dca0f3caa5fddd72b299e6e8f59b5f2bf76ddd8
b910ddf32c7e727373449266c9e3167c21485167
refs/heads/main
2023-03-04T23:46:40.617866
2023-02-21T03:00:04
2023-02-21T03:00:04
319,191,720
3
0
null
null
null
null
UTF-8
Python
false
false
1,323
py
# -*- coding:utf-8 -*- # Author: washing # DateTime: 2022/2/21 11:16 # File: 0838.py # Desc: class Solution: def pushDominoes(self, dominoes: str) -> str: l = list(dominoes) status_c = l[0] status_id = 0 for i in range(1,len(l)): c = l[i] if c =...
[ "1014585392@qq.com" ]
1014585392@qq.com
af5e890ed0bb583636307a1cf2b0d3b8d7d1c779
6b66e499e7c2c6246c114029b83ae6ed3a4daa27
/barista/kinematicplots_Bu.py
01e0803f97f8df228c08c070882104a36adfa5fd
[]
no_license
DryRun/boffea
d837723eee13650306ede501a6e9fe1c5a9c610b
433fdb92f3b60b6f140c0a0a3b2761d812b7044e
refs/heads/master
2023-09-01T17:41:04.451388
2023-08-24T21:55:18
2023-08-24T21:55:18
232,651,843
1
0
null
2022-06-22T04:50:57
2020-01-08T20:24:05
Python
UTF-8
Python
false
false
6,047
py
import sys import numpy as np import matplotlib.pyplot as plt from cycler import cycler from coffea import hist, util from pprint import pprint import glob import mplhep plt.style.use(mplhep.style.ROOT) plt.tight_layout() from brazil.aguapreta import * figure_directory = "/home/dryu/BFrag/data/kinematic/" input_file...
[ "david.renhwa.yu@gmail.com" ]
david.renhwa.yu@gmail.com
88c304f224ab60062582abbfa1146a651e1233e6
f21814f3b4c8217e830af48b427de0b24dc398d4
/missing_value_count_and_percent.py
aed47ea11574bbab9b091a7ff7b5448c8d28d997
[]
no_license
CaraFJ/Utility
2d1dbc3f09c33d9d92bf1e602f1a01b0f3ba656e
f032e6b376d65a05fe9d25fca31794c1302ec7ed
refs/heads/master
2021-09-08T16:47:26.173366
2021-09-08T04:51:04
2021-09-08T04:52:05
248,438,511
0
0
null
null
null
null
UTF-8
Python
false
false
496
py
def missing_value_count_and_percent(df): """ Return the number and percent of missing values for each column. Args: df (Dataframe): A dataframe with many columns Return: df (Dataframe): A dataframe with one column showing number of missing values, one column showing percentage of ...
[ "cc4167@columbia.edu" ]
cc4167@columbia.edu
27b94c9d7849b71176bca1cb1da910235230ce4d
c087e0bbeeac080335240c05255bd682cfea100e
/remap_reads_consensus.py
f0decb7ac4e13e3cab2add1986e43a77371c997a
[]
no_license
ifiddes/notch2nl_10x
f537481da544ec5e3c62a2899b713b4cb68e7285
35cfd95b0e7563bad0c5d2354fd7be526bc3a39d
refs/heads/master
2021-01-10T10:18:59.098115
2016-03-24T17:43:03
2016-03-24T17:43:03
50,366,711
1
0
null
null
null
null
UTF-8
Python
false
false
5,718
py
""" Run the traditional WGS-SUN based pipeline on 10x data to compare to the results """ import pysam import sys import vcf import string import itertools import numpy as np import argparse import tempfile import os import subprocess from pyfasta import Fasta from operator import itemgetter from itertools import group...
[ "ian.t.fiddes@gmail.com" ]
ian.t.fiddes@gmail.com
f59db1371af75f94b82190561a99278bcd02b079
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/balancer_active_window.py
aeea9247f02f3b36a9f8fd0019a8e52731f28dcd
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
3,518
py
# coding: utf-8 import pprint import re import six class BalancerActiveWindow: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the val...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
07cfd1607796d3ca94ad028d3b8c573a0d32cc3b
4f998e9798b5d72a508a62013d8179e58d94b8bb
/home/migrations/0001_load_initial_data.py
592ecd278b5ad39a6095474d97880b4060026301
[]
no_license
crowdbotics-apps/testcerabc-27781
72437420dc97964cfd2c882f723f6e8dc4177fe8
a58dc42415d0c2c7a523a8b9566f3a64b20a6164
refs/heads/master
2023-05-12T14:34:46.264425
2021-06-06T18:47:08
2021-06-06T18:47:08
374,438,770
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "testcerabc-27781.botics.co" site_params = { "name": "testcerabc", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_cr...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
b3b8eb91fa66a2775490954f8c3ff2b4d06a219f
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_critics.py
daa20c16b7ffcfd31864b2f9e82bd272a677bdae
[ "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
238
py
from xai.brain.wordbase.nouns._critic import _CRITIC #calss header class _CRITICS(_CRITIC, ): def __init__(self,): _CRITIC.__init__(self) self.name = "CRITICS" self.specie = 'nouns' self.basic = "critic" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
91b1725adfaa4f3636377b6571089cf7925ad856
05e634a232574f676434dfa8e4183f3d0a1a4bc9
/tutorials/pp-series/HRNet-Keypoint/lib/metrics/json_results.py
9e0ceea69b6c0e57ed0f0224ad12a02078870de0
[ "Apache-2.0" ]
permissive
PaddlePaddle/models
67ac00d93c5255ac64a9d80ae5be2e8927e47cee
8042c21b690ffc0162095e749a41b94dd38732da
refs/heads/release/2.4
2023-09-04T15:23:59.543625
2023-07-20T11:54:16
2023-07-20T11:54:16
88,868,842
7,633
3,597
Apache-2.0
2023-09-05T23:23:54
2017-04-20T13:30:15
Python
UTF-8
Python
false
false
5,121
py
# Copyright (c) 2021 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
c22c2d6937f2f8e7d0605c8690d553ce6add5b2e
2aac13d0048f12ac877af92a93f73c4ef1311d6e
/mrchunks/process.py
49a1ec417764052f224f2e231e044e3ae6be2ef8
[]
no_license
victorpoluceno/mrchunks
18250e2bf0be375de48e01b2a42976285d556e85
8328ed3d836144ccc563b135d78f59e50ff4104b
refs/heads/master
2021-01-15T22:18:39.091832
2015-11-22T23:00:53
2015-11-22T23:00:53
32,928,863
0
0
null
null
null
null
UTF-8
Python
false
false
2,760
py
import zmq from mrchunks.concurrent import Engine, switch from mrchunks.mailbox import Mailbox from mrchunks.serializer import decode, encode class Server: def __init__(self): self._context = zmq.Context() def __call__(self, *args, **kwargs): self.listen(kwargs['address']) while Tru...
[ "victorpoluceno@gmail.com" ]
victorpoluceno@gmail.com
530ae96e854fca34aa8899b13ba869d5d6b1f658
019fd2c29b8239d7b0a3906cfbdddfd440362417
/asset/google/cloud/asset_v1beta1/gapic/asset_service_client_config.py
340e89de38b2510f4f5c219239170706bfdfdc83
[ "Apache-2.0" ]
permissive
tswast/google-cloud-python
1334d26cdb994293f307d889251d7daef5fcb826
d897d56bce03d1fda98b79afb08264e51d46c421
refs/heads/master
2021-06-10T17:40:06.968584
2020-01-11T17:41:29
2020-01-11T17:41:29
58,775,221
1
1
Apache-2.0
2019-04-10T17:09:46
2016-05-13T22:06:37
Python
UTF-8
Python
false
false
1,179
py
config = { "interfaces": { "google.cloud.asset.v1beta1.AssetService": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], "non_idempotent": [], }, "retry_params": { "default": { "initia...
[ "noreply@github.com" ]
tswast.noreply@github.com
91c46ed6861438fb001bf94fe1fa600cd41ad2c9
423f9cbe3b39e431b7eca2ba6ad15b2fd70ef56b
/EditDistance.py
d1cb6dc2cf6a49df28a308e6019e0e55bb7329c4
[]
no_license
SerChirag/Dynamic-Programming
8f7e6f23fd76c8d99fb8eb23b4324e1eb8e5b790
672bf3cb726cea302ce72ad7183d7f684b2788f0
refs/heads/master
2021-10-10T17:29:16.346125
2019-01-14T18:00:59
2019-01-14T18:00:59
115,982,525
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
def edit(str1,str2): edit = [[0 for j in range(len(str2)+1)] for i in range(len(str1)+1)] count = 0 for i in range(1,len(str1)+1): for j in range(1,len(str2)+1): if(str1[i-1] == str2[j-1]): edit[i][j] = edit[i-1][j-1] + 1 else: edit[i][j] = m...
[ "you@example.com" ]
you@example.com
9947c254c93bcc92b396bff46d6f0321e70fe555
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adverbs/_bleakly.py
28b608df7c1220eda261a778a410c245be7da9ea
[ "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
434
py
#calss header class _BLEAKLY(): def __init__(self,): self.name = "BLEAKLY" self.definitions = [u'in a way that suggests a lack of hope: ', u'in a way that is cold and empty: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adverbs' def run(self, obj1,...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
79f2687bc8f4a9add7c0fbbba2af25d1ce45be2a
4fcb2e797ba83b310fe05461d48f02931ea5a427
/2017/day-19/solution.py
b22d5be009cad3f1c42f831b1e093a846f34a4d9
[]
no_license
BrentChesny/AdventOfCode
5a642d081505563f7518c5244bb814e9e4dfc5de
dad5224961539149bed5757bbae0ccc35a3a293d
refs/heads/master
2022-12-11T19:51:22.138655
2022-12-04T21:46:29
2022-12-04T21:46:29
47,266,210
1
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
def parse_input(): return [list(line.strip('\n')) for line in open('input.txt').readlines()] def solve_part_one(): grid = parse_input() pos_r, pos_c = 0, grid[0].index('|') dir_r, dir_c = 1, 0 result = '' while grid[pos_r+dir_r][pos_c+dir_c] != ' ': pos_r, pos_c = pos_r + dir_r, pos_c ...
[ "brent.chesny@gmail.com" ]
brent.chesny@gmail.com
128d601cae05a0f318b0a90ac3ac53d97636fa48
e0980f704a573894350e285f66f4cf390837238e
/.history/home/models_20201026174905.py
36accded34a74330fba536c865386a721c5957a3
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,730
py
from django.db import models from wagtail.core.models import Page from wagtail.core.fields import StreamField from wagtail.admin.edit_handlers import FieldPanel, PageChooserPanel, StreamFieldPanel from wagtail.images.edit_handlers import ImageChooserPanel from wagtail.snippets.blocks import SnippetChooserBlock from st...
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
0f3a08eb19415e6839f084ef6b5fd54d9bb6cee3
6019b48f027b1f62de8474a834f52157fc8faf2c
/src/ch3/cv2io/negaposi.py
7aa3463cf05aee3a2932641dbca8b3d908f3f44e
[]
no_license
kujirahand/book-mlearn-gyomu
d540aebf96af84d5c271fa11f31bf18417c16f34
b1d5f04a69777fb3896b28144ecb18d49a744c25
refs/heads/master
2023-07-04T01:14:39.673001
2023-04-05T13:27:53
2023-04-05T13:27:53
135,913,708
127
113
null
2020-08-10T23:16:30
2018-06-03T14:56:59
Jupyter Notebook
UTF-8
Python
false
false
212
py
import matplotlib.pyplot as plt import cv2 # 画像を読み込む img = cv2.imread("test.jpg") # ネガポジ反転 img = 255 - img # 画像を表示 plt.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB)) plt.show()
[ "kujira@kujirahand.com" ]
kujira@kujirahand.com
7d7f982e88dc574bb2ed1b7b4f0f6c36f495a5a7
ece0d321e48f182832252b23db1df0c21b78f20c
/engine/2.80/scripts/addons/archipack/presets/archipack_stair/l_wood_over_concrete.py
d4fc1344a54ccd723bdcb01aad8a5764c427b8b4
[ "Unlicense", "GPL-3.0-only", "Font-exception-2.0", "GPL-3.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "Bitstream-Vera", "LicenseRef-scancode-blender-2010", "LGPL-2.1-or-later", ...
permissive
byteinc/Phasor
47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
refs/heads/master
2022-10-25T17:05:01.585032
2019-03-16T19:24:22
2019-03-16T19:24:22
175,723,233
3
1
Unlicense
2022-10-21T07:02:37
2019-03-15T00:58:08
Python
UTF-8
Python
false
false
5,867
py
import bpy d = bpy.context.active_object.data.archipack_stair[0] d.steps_type = 'CLOSED' d.handrail_slice_right = True d.total_angle = 6.2831854820251465 d.user_defined_subs_enable = True d.string_z = 0.30000001192092896 d.nose_z = 0.029999999329447746 d.user_defined_subs = '' d.idmat_step_side = '3' d.handrail_x = 0....
[ "admin@irradiate.net" ]
admin@irradiate.net
c3f1f40c430acf8791af7d15a9c634c03815ed76
3b7b6648b72910046b6a227db30f71aeee2cba9c
/2021-03-08-SimpleRNN/StockReturnPredictionWithLSTM.py
f0ad401fbb2df1790b2b25eb955c0d967a9b1a7c
[]
no_license
ken2190/deep-learning-study
f2abeb1cd302e405a15bbb52188ae44ffb414e2f
f2998be89d0c931176f158ae5f48ca562786e171
refs/heads/main
2023-04-02T05:07:08.504212
2021-04-11T15:11:22
2021-04-11T15:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
from tensorflow.keras.layers import Input, SimpleRNN, GRU, Dropout, LSTM, Dense, Flatten, Softmax from tensorflow.keras.models import Model from tensorflow.keras.optimizers import SGD, Adam from sklearn.preprocessing import LabelBinarizer, StandardScaler import numpy as np import pandas as pd import tensorflow as tf i...
[ "machingclee@gmail.com" ]
machingclee@gmail.com
14e14add80032e04c6e82d148372cd9e1ea89a4a
dbe7731552d8e6d1e63cc0f2e27d3810cc61f350
/hyper_paras/hp_a2c.py
1265b7c895a914b699bf58d2d2719a54eb9e5c15
[]
no_license
ZhangRui111/rl_breakout_tf
6bb3f57f2b1d52f196323916393234e8abb990ac
04f259cd3c32eaffbad87fe1035b0f87c96127b0
refs/heads/master
2020-04-08T19:24:16.018734
2018-12-18T02:42:56
2018-12-18T02:42:56
159,653,713
1
1
null
2018-12-18T02:42:57
2018-11-29T11:12:04
Python
UTF-8
Python
false
false
356
py
from hyper_paras.base_hyper_paras import BaseHyperparameters class Hyperparameters(BaseHyperparameters): def __init__(self): super().__init__() self.model = 'A2C' self.MAX_EPISODES = 50001 # 50001 : 500 self.LEARNING_RATE_ACTOR = 0.00005 self.LEARNING_RATE_CRITIC = 0.0001...
[ "zhangruisg111@163.com" ]
zhangruisg111@163.com
7e11fd6bffade16b50990049c688e90b29754bf0
282769509af68245596dc73de42f552cfd73cd21
/autoindex/watcher.py
d560ceaf60985c133ac610de4bc2a6e3972819c7
[]
no_license
brutasse-archive/autoindex
1130173d22c1d996a7cb38fcd59b51d07c0b8068
cc5cfc414325aff133c684257e8c2bfdc9aaa672
refs/heads/master
2021-01-19T14:34:18.472167
2012-07-17T21:31:27
2012-07-17T21:31:27
5,048,409
15
5
null
null
null
null
UTF-8
Python
false
false
1,877
py
import logging import os import signal from pip.download import is_archive_file from pyinotify import WatchManager, Notifier, ProcessEvent, EventsCodes from .indexer import index logger = logging.getLogger(__name__) class IndexProcess(ProcessEvent): def __init__(self, wm, mask): self.wm = wm se...
[ "buburno@gmail.com" ]
buburno@gmail.com
e1a6d1b6a7f2d662c54225f864327197af261dea
2b6fa34dac030ec1f2918b1377956bf791219d22
/leetcode/medium/unique-paths.py
ec4b4d43fdfd54d17af687e347baacf85881da50
[ "MIT" ]
permissive
rainzhop/cumulus-tank
aa13fb8f14c27893838a67d2eb69fdd2ac3d6450
09ebc7858ea53630e30606945adfea856a80faa3
refs/heads/master
2020-06-06T23:24:37.498966
2020-01-06T09:52:16
2020-01-06T09:52:16
192,874,778
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
# https://leetcode.com/problems/unique-paths/ # # A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). # # The robot can only move either down or right at any point in time. # The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram bel...
[ "rainzhop@gmail.com" ]
rainzhop@gmail.com
4729a3d9e08865cacd04820127685a2d0a867ff4
aa3f670fcc2b43d8a5eb8a131082510bed2eb4d8
/nagios/check_raster.py
92fd2d22b4429549a4571011b62d3ee9c259b62b
[ "MIT" ]
permissive
jamayfieldjr/iem
e0d496311d82790ad518c600c2fcffe44e834da1
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
refs/heads/master
2020-08-07T11:55:56.256857
2019-10-04T04:22:36
2019-10-04T04:22:36
213,439,554
1
0
MIT
2019-10-07T17:01:20
2019-10-07T17:01:20
null
UTF-8
Python
false
false
782
py
"""Check a raster file and count the number of non-zero values.""" from __future__ import print_function import sys from osgeo import gdal import numpy def main(): """Go Main Go.""" ntp = gdal.Open('/home/ldm/data/gis/images/4326/USCOMP/ntp_0.png') data = ntp.ReadAsArray() count = numpy.sum(numpy.whe...
[ "akrherz@iastate.edu" ]
akrherz@iastate.edu
53241e5667493e3b22a78779f524d5b575342228
2fb755e1d23267495345d1a94f4b79a1356657e7
/black_box_tests/mapper_example.py
45461118a2357b70b83703ecf1eaf2fdcd10696d
[ "MIT" ]
permissive
daringer/lollygag
66bc86c7bea7943fd713cd5e463d911552b4d979
27da172cfa769ef7b850de517f778059068badca
refs/heads/master
2021-05-16T03:24:15.691274
2017-10-11T12:45:45
2017-10-11T12:45:45
105,471,520
0
0
null
2017-10-01T20:19:20
2017-10-01T20:19:20
null
UTF-8
Python
false
false
849
py
#!/usr/bin/python from lollygag import run from lollygag.services import Services from lollygag.dependency_injection.inject import Inject from lollygag.core.crawlers.mapper_crawler import MapperCrawler import json def on_finish(log_service, crawler): def callback(*args): log_service.important("----------...
[ "littlesnorrboy@gmail.com" ]
littlesnorrboy@gmail.com
43dde8d0256d76c729723e64d08000466a23902b
d3055f3eedfdb124084f092c0f4540aa82a0f04d
/texture_tool/describe.py
62e6307f6e97bb0cf9de3478bdc4598cdf08df36
[]
no_license
podgorskiy/texture-tool
a90ec9adee2c8d19b21cdf42b714d8d4917c9612
f8973871ee2ce72b4d4756796276b07be06e42dd
refs/heads/master
2022-04-17T13:36:05.448525
2020-04-08T18:03:36
2020-04-08T18:03:36
253,153,161
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
# Copyright 2020 Stanislav Pidhorskyi # # 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 wri...
[ "stanislav@podgorskiy.com" ]
stanislav@podgorskiy.com
b29df2eab12bee0ea732b5953df4904701e18f95
c34380b64145b4ce26df9b27c34139d08de27515
/highest_scoring_word.py
d6718e1ecce87a61b07dea1aab9b93f1d03c0fe1
[]
no_license
codeandrew/python-algorithms
531bc1574700cb7d822904f1e1ead9a596a85d29
c71b0941f14825fcaa3fbb1429365ca1f28a3018
refs/heads/master
2023-04-28T23:56:01.283434
2023-04-05T03:06:22
2023-04-05T03:06:22
169,078,505
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
""" Given a string of words, you need to find the highest scoring word. Each letter of a word scores points according to its position in the alphabet: a = 1, b = 2, c = 3 etc. You need to return the highest scoring word as a string. If two words score the same, return the word that appears earliest in the original s...
[ "jeanandrewfuentes@gmail.com" ]
jeanandrewfuentes@gmail.com
75dc35285e4cc28b0a0071cdf2c074aa2ea6f960
37fd103f6b0de68512e3cb6098d0abb9220f5a7d
/Python from scratch/014spectogram_waveform.py
fb3fad05fc153b831ee682fc1949eb029c556f40
[]
no_license
FlyingMedusa/PythonELTIT
720d48089738b7e629cad888f0032df3a4ccea2c
36ab01fc9d42337e3c76c59c383d7b1a6142f9b9
refs/heads/master
2020-09-11T18:17:17.825390
2020-04-21T16:38:03
2020-04-21T16:38:03
222,150,066
0
0
null
2020-04-21T16:38:04
2019-11-16T19:37:33
Python
UTF-8
Python
false
false
562
py
from scipy.io import wavfile import matplotlib.pyplot as pyplot sampling_frequency, signal_data = wavfile.read('sample_for_task_013.wav') # duration = len(signal_data)/ sampling_frequency pyplot.subplot(311) # three rows, one col,1st plot pyplot.specgram(signal_data, Fs = sampling_frequency) pyplot.title('Some spectog...
[ "sleboda.m98@gmail.com" ]
sleboda.m98@gmail.com
1088e21e565a1e3657d113b966546a1b0eb98ac8
5679731cee36c537615d285ed72810f4c6b17380
/167_TwoSumII_InputArrayIsSorted.py
4ea08c7abe24681955be0a656cf106fb19e4146e
[]
no_license
manofmountain/LeetCode
6b76105190a9b62df65a7b56b6def4120498b9fa
718f688b3d316e8c10ef680d9c21ecd518d062f8
refs/heads/master
2021-01-12T03:41:48.318116
2017-07-18T12:35:58
2017-07-18T12:35:58
78,252,164
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
##43.90% class Solution(object): def twoSum(self, numbers, target): """ :type numbers: List[int] :type target: int :rtype: List[int] """ if len(numbers) < 2: return [] left, right = 0, len(numbers) - 1 while left < right: ...
[ "noreply@github.com" ]
manofmountain.noreply@github.com
ce63be621dd2fa160d3e9198752579ac7e8f9b18
364b36d699d0a6b5ddeb43ecc6f1123fde4eb051
/_downloads_1ed/fig_fft_text_example.py
78f8d57d71630eb3e61ff1ec81dc25ae5256806e
[]
no_license
astroML/astroml.github.com
eae3bfd93ee2f8bc8b5129e98dadf815310ee0ca
70f96d04dfabcd5528978b69c217d3a9a8bc370b
refs/heads/master
2022-02-27T15:31:29.560052
2022-02-08T21:00:35
2022-02-08T21:00:35
5,871,703
2
5
null
2022-02-08T21:00:36
2012-09-19T12:55:23
HTML
UTF-8
Python
false
false
2,376
py
""" Example of a Fourier Transform ------------------------------ Figure E.1 An example of approximating the continuous Fourier transform of a function using the fast Fourier transform. """ # Author: Jake VanderPlas # License: BSD # The figure produced by this code is published in the textbook # "Statistics, Data ...
[ "vanderplas@astro.washington.edu" ]
vanderplas@astro.washington.edu
cfbb540e6dfba1237f2ee80097afe65bc324da40
177df2b442866474377498a8b85f3d58410d0193
/create_glidein_tarball.py
45b070a821e819c0b6f139301c0d4fe04e8cab66
[]
no_license
briedel/pyglidein
6c19f2d310bd15a85df50eb384e8d2f186aaff50
835c458e4f7f0dc0dcf785120da31ffa9425f0bd
refs/heads/master
2020-12-11T03:35:27.540075
2017-03-24T14:28:47
2017-03-24T14:28:47
49,531,789
0
0
null
2016-03-18T17:26:32
2016-01-12T22:02:49
Python
UTF-8
Python
false
false
7,707
py
""" Create a glidein tarball by downloading the source, building it, then copying what is needed into the tarball. """ import sys import os import shutil import subprocess import tarfile import tempfile if sys.version_info[0] < 3 and sys.version_info[1] < 7: raise Exception('requires python 2.7+') def libuuid_do...
[ "davids24@gmail.com" ]
davids24@gmail.com
f1fdec782a19b71a749c643458ec9d0408978d66
053221e1d90b365f68701dbd5b6466f30d1f6fd7
/Day4/vd2.py
d2624b1ae91bd834e7c6b6d1c9a499d95af8c68b
[]
no_license
pytutorial/py2011E
eceb4d563cc807294b08b818edadd521ed8da488
306437369b0bfe55a2fa827b098283856242e731
refs/heads/main
2023-02-28T23:57:32.851536
2021-01-30T14:56:12
2021-01-30T14:56:12
318,186,117
1
1
null
null
null
null
UTF-8
Python
false
false
364
py
# vd2.py # Nhập vào họ tên đầy đủ của một người # In ra Họ, tên đệm, tên của người đó ho_ten = input('Họ và tên:') #TODO : items = ho_ten.split() ho = items[0] ten = items[-1] ten_dem = '' for i in range(1, len(items)-1): ten_dem += items[i] + ' ' print('Họ: ', ho) print('Tên đệm:', ten_dem) print('Tên: ', ten)
[ "duongthanhtungvn01@gmail.com" ]
duongthanhtungvn01@gmail.com
6859b7420def17cbc91c49bd229e6028b100e87d
bf3a87fd7725ad4e7e85492509f3e5aa68709fd0
/chat/.history/Cliente_20191106204840.py
8b51d56c2ef6c7a8b2f56ce7b17b3a47b7f38cdd
[]
no_license
slalbertojesus/merixo-grpc
f468b4f6349b4367ad6064f175cef7c3e49d829f
182569a89cad605fd81b095861fd58390729c720
refs/heads/master
2020-09-04T21:39:53.488701
2019-12-25T02:07:24
2019-12-25T02:07:24
219,899,136
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
import grpc import uuid import chat_pb2 as structure import chat_pb2_grpc as grpc_chat from Usuario import Usuario class Cliente(): def IniciarCliente(self): id = uuid.uuid1() print(id) channel = grpc.insecure_channel('localhost:50051') conn = grpc_chat.ChatAdminStub(...
[ "slalbertojesus@gmail.com" ]
slalbertojesus@gmail.com
405a1959f9d4f85a7a2f446f5fc40e3adc4d2834
f89cd667200844f019dbf2c93798e7fee96b89e2
/dynamic-programming/exercises/ugly-numbers.py
ab24762e2184774dfc0008339825acefc4170efc
[]
no_license
radomirbrkovic/algorithms
575f4540c7aab2daf3e55d0df99030e440ee2060
621d0f82e0e4cd253afc0e07772a201b019f7889
refs/heads/master
2023-07-15T23:59:29.725946
2021-09-01T19:47:08
2021-09-01T19:47:08
250,455,390
0
0
null
2021-09-01T19:47:09
2020-03-27T06:12:52
Python
UTF-8
Python
false
false
596
py
# Ugly Numbers https://www.geeksforgeeks.org/ugly-numbers/ def maxDivide(a, b): while a % b == 0: a = a / b return a def isUgly(no): no = maxDivide(no, 2) no = maxDivide(no, 3) no = maxDivide(no, 5) return 1 if no == 1 else 0 # Function to get the nth ugly number def getNthUglyNo(n): ...
[ "radomir.brkovic@pmf.edu.rs" ]
radomir.brkovic@pmf.edu.rs
31cdbe882af4808f510d60c5303fc71448bad50f
28a462a28f443c285ca5efec181ebe36b147c167
/tests/compile/basic/es2016/Symbol.keyFor.spec
4405fe814db693ef8c40840d1d430431bc104824
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kaist-plrg/jstar
63e71f9156860dc21cccc33a9f6c638dfee448ea
1282919127ea18a7e40c7a55e63a1ddaaf7d9db4
refs/heads/main
2022-07-22T08:12:34.947712
2022-02-27T04:19:33
2022-02-27T11:06:14
384,045,526
6
4
NOASSERTION
2022-02-27T11:05:26
2021-07-08T07:53:21
Python
UTF-8
Python
false
false
396
spec
1. If Type(_sym_) is not Symbol, throw a *TypeError* exception. 1. For each element _e_ of the GlobalSymbolRegistry List (see <emu-xref href="#sec-symbol.for"></emu-xref>), 1. If SameValue(_e_.[[Symbol]], _sym_) is *true*, return _e_.[[Key]]. 1. Assert: GlobalSymbolRegistry doe...
[ "h2oche22@gmail.com" ]
h2oche22@gmail.com
b27373bc38eff28a67ebaad6b5aa01a01e97f5e3
a884039e1a8b0ab516b80c2186e0e3bad28d5147
/Livros/Livro-Desenvolvimento web com Flask/Capitulo02/Nível 02/exemplo07a.py
0129fa2065636c4e62560194d3ba20d2e016d1d8
[ "MIT" ]
permissive
ramonvaleriano/python-
6e744e8bcd58d07f05cd31d42a5092e58091e9f0
ada70918e945e8f2d3b59555e9ccc35cf0178dbd
refs/heads/main
2023-04-10T14:04:24.497256
2021-04-22T18:49:11
2021-04-22T18:49:11
340,360,400
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
# Program: exemplo07a.py # Author: Ramon R. Valeriano # Description: Programa do Capítulo 2, para melhorar a fixação # Developed: 02/03/2020 - 16:29 from flask import Flask, make_response app = Flask(__name__) @app.route('/') def index(): response = make_response('<h1>Este documento esta sendo carregado em um co...
[ "rrvaleriano@gmail.com" ]
rrvaleriano@gmail.com
eb14ad9cc026342ecb88f0372c9d46218bb7bf1c
584db1be8b6bdedaa56d186692ad72da5ee07164
/patron/cells/weights/__init__.py
d83f31e1ab2fdb889a4e774c5b82817b6dad2c51
[ "Apache-2.0" ]
permissive
casbin/openstack-patron
66006f57725cf1c3d735cd5529d3459fd77384c8
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
refs/heads/master
2023-05-31T05:23:37.721768
2015-12-31T12:18:17
2015-12-31T12:18:17
382,054,546
0
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
# Copyright (c) 2012-2013 Rackspace Hosting # 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 # # Unles...
[ "hsluoyz@qq.com" ]
hsluoyz@qq.com
d999acb14a4258c765255569ad0349f26990ecdc
38bf7e24a2150983f482a6749dc661ed4c4a4439
/docs/source/conf.py
914308cfb0a62a3b79401f3a79e53ff0e90b1f3c
[]
no_license
guoweikuang/flask_v2ex
15b6247d979146ada57fe2e6dd7c93f7708297ff
d84c14b1d90be78e634677dee332a63bca69c7fc
refs/heads/master
2022-12-17T19:36:57.945884
2019-10-23T13:25:44
2019-10-23T13:25:44
116,472,843
20
5
null
2022-11-22T02:08:35
2018-01-06T10:09:07
JavaScript
UTF-8
Python
false
false
4,776
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ "673411814@qq.com" ]
673411814@qq.com
9bf3d2c051c29082aa33cfeceab377e3427f85ff
05abb78c60a69422ae3e00a542bbd4573faf8174
/python-para-zumbis/lista2/exercicio1.py
9918795b5836c2bd55e4644ea40ede511eb2e42b
[]
no_license
xuting1108/Programas-de-estudo
72b812d52f5b130a95103c38dbe9e471dc5aa6f9
01fe21097055d69c2115cff3da2199429e87dead
refs/heads/master
2022-10-20T17:06:14.517643
2019-04-08T11:16:12
2019-04-08T11:16:12
179,678,721
0
1
null
2022-10-09T13:13:57
2019-04-05T12:38:23
Python
UTF-8
Python
false
false
600
py
# Faça um Programa que peça os três lados de um triângulo. O programa deverá informar se os valores podem ser um triângulo. # Indique, caso os lados formem um triângulo, se o mesmo é: equilátero, isósceles ou escaleno. lado_a = float(input('informe a medida do lado a: ')) lado_b = float(input('informe a medida do lad...
[ "xuting1108@hotmail.com" ]
xuting1108@hotmail.com
b9bbeafefaafd8ff7661334198c1365cd73e36d1
f73bcada5ab8432d2af07b5cb7fd7a38109d3e3a
/.history/parser_20201108170616.py
c0517d7feb1c60b713329f35cfcf547572ddba48
[]
no_license
mariajbp/gedcomparser
837bf4ae5628a81e535d233c7c35313c6d86d78c
6fc55899e5a82c4071991ab94a344b64c014b84d
refs/heads/master
2023-01-23T09:01:27.459597
2020-11-19T23:58:53
2020-11-19T23:58:53
310,900,559
0
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
#!/usr/bin/python3 #python3 parser.py input/bible.gedcom > test.txt import sys from re import * filename = sys.argv[1].split('/')[1] assetPath = "assets" indPath = "individuals" famPath = "families" cssPath = "assets/gedcom.css" def createFamily(fk,fi): f = open('assets/families/'+fk+'.html', 'w') f.write('...
[ "mariajbp00@gmail.com" ]
mariajbp00@gmail.com
4a5d3fe945019ad4717eef5286af1768dc05b083
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_vicarage.py
3cfe8615692b2c6a7f3f67bc930f9033fcdd2e06
[ "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
316
py
#calss header class _VICARAGE(): def __init__(self,): self.name = "VICARAGE" self.definitions = [u'the house in which a vicar lives'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj2 = []): return self.jsondata
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4c9ec16df1b6a85b34a767c4e8a4d46e53d950f7
82256eb259bf5fa75a8f15500a6b5a1306a07034
/addintegers3.py
f6d586ed9a6c80d2002f3850a12e20180a03404d
[]
no_license
dennisnderitu254/Andela-Exercises
1c0d2c309b6ea113a4d812e313ded867f6dea9a4
edb17f0ed867a4436478a8d9bf5690a749155781
refs/heads/master
2021-05-05T13:38:06.658363
2017-10-31T14:35:38
2017-10-31T14:35:38
105,002,996
3
3
null
null
null
null
UTF-8
Python
false
false
193
py
# Exhibiting functional composition num1 = int(raw_input('Please enter an integer value:')) num2 = int(raw_input('Please enter another integer value:')) print(num1, '+', num2, '=', num1 + num2)
[ "dknderitu@gmail.com" ]
dknderitu@gmail.com
a972d8916751e7929616031a929acb51c7a7b956
3e2447737acc8e6bef6728b1a8e5f1d5e6db2968
/opennem/pipelines/wem/balancing_summary.py
fd431bcabfb48da0aacae2723bb3de03f7e58e17
[ "MIT" ]
permissive
gaslitbytech/opennem
5a5197003662725ccd2f82d790cdb1495a975a07
deec3e2079db9d9d84171010fd0c239170d1e7ce
refs/heads/master
2023-07-23T14:08:28.949054
2020-10-09T03:53:20
2020-10-09T03:53:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,148
py
import csv import logging from sqlalchemy.dialects.postgresql import insert from opennem.db.models.opennem import BalancingSummary from opennem.pipelines import DatabaseStoreBase from opennem.schema.network import NetworkWEM from opennem.utils.dates import parse_date from opennem.utils.pipelines import check_spider_p...
[ "nc9@protonmail.com" ]
nc9@protonmail.com
c54cbc847e347a11beaa33ad2bd3cb4e97c48277
28cd350c10e5fe3542f2913e1833f5725aa56fd5
/prepare_VehicleID.py
17adc3f1c349e6a19d4ae965ba534f591054547c
[ "MIT" ]
permissive
layumi/Person_reID_baseline_pytorch
dffeb79f25f2fe1b83646746bbb295f2df36bad4
4dae9cdf42f71c72a44a64fb23bfc470c501085f
refs/heads/master
2023-09-03T14:34:04.082508
2023-08-17T04:12:26
2023-08-17T04:12:26
115,712,649
4,042
1,132
MIT
2023-06-19T08:29:17
2017-12-29T10:22:41
Python
UTF-8
Python
false
false
2,992
py
import os from shutil import copyfile def copy_file(s, t): for root, dirs, files in os.walk(s): for name in files: copyfile(root+'/'+name,t+'/'+name) # You only need to change this line to your dataset download path download_path = './data/VehicleID_V1.0/' if not os.path.isdir(download_path):...
[ "zdzheng12@gmail.com" ]
zdzheng12@gmail.com
16ee84d5d1b6441baaf6dbf58d95f65b16fd49cb
e1b3816615cce62ebe2b6c59b0eb3fbd3693d73b
/solutions/167-two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
60d0a04a154052849aad48a3e763a43ca3bebcba
[]
no_license
fagan2888/leetcode-6
1fb18979ffacb82d5db77988b38ecd7371b428b9
14176f1752e2bb94dec51bd90dfd412896ed84de
refs/heads/master
2022-01-10T03:27:51.388066
2019-06-15T14:13:48
2019-06-15T14:13:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
# -*- coding:utf-8 -*- # Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. # # The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. # # Note: #...
[ "rzhangpku@pku.edu.cn" ]
rzhangpku@pku.edu.cn
8852e9dcd8cde183a336da575c9de3ddf255095c
15a2a8c612545e61dab18a5d0673b1cef95a9638
/Part/神龙天女.py
a09f4df92188101b24dd402950e0a0ce29b7c469
[]
no_license
YICHENG-LAI/DNFCalculating
6fa10b692580dad119446307508a3bf32ff46d1a
426375e4e0034e435a8f38974ce81323c8ea7f9c
refs/heads/master
2022-11-17T00:18:06.650791
2020-07-05T07:28:50
2020-07-05T07:28:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,360
py
from PublicReference.base import * class 神龙天女主动技能(主动技能): def 等效CD(self, 武器类型): return round(self.CD / self.恢复 * 1.05, 1) #念珠1.05 class 神龙天女技能0(神龙天女主动技能): 名称 = '罪业加身' 所在等级 = 10 等级上限 = 60 基础等级 = 48 基础 = 2014 - 204.4468 成长 = 204.4468 CD = 6.0 TP成长 = 0.08 TP上限 = 7...
[ "wxh_email@yeah.net" ]
wxh_email@yeah.net
d33b2b4cab54b838414fd70c755f3bcd6fb1580f
5d34d74965504c363dc294c1ba97a46393759995
/channels/tech_weekly_radar/app.py
c5371872c92041105e68e3e47f6e22824e230e65
[ "MIT" ]
permissive
Nalorokk/reddit2telegram
7f898b7d17771e9de98c7f176a5a1d071f6d47d9
28bfc1271f40b219ee7a34e8338fa93f0d44cbd2
refs/heads/master
2020-03-18T08:29:33.946768
2018-05-23T04:25:52
2018-05-23T04:25:52
134,513,083
0
0
null
null
null
null
UTF-8
Python
false
false
3,893
py
#encoding:utf-8 import csv import importlib import random import datetime import pymongo import yaml from utils import SupplyResult subreddit = 'all' t_channel = '@r_channels' def get_active_period(r2t, channel_name): min_cursor = r2t.stats.find({'channel' : channel_name.lower()}).sort([('ts', pymongo.ASCEND...
[ "git@fillll.ru" ]
git@fillll.ru
7a0a3a277b02addb1e326d10fb728c20339483e7
d9a11615b57624a47e4719222ffd346eedbbabc1
/tests/test_flow.py
cbb43664378e920dfe878bdfd884a44676142e9b
[]
no_license
mattjegan/pyzerem
79461659521bf98551d8b54e74861a0609db29e3
d3fe9fb54454b14747cc1d238961a93b854aee46
refs/heads/master
2021-04-28T21:12:13.909647
2018-02-19T11:13:54
2018-02-19T11:13:54
121,944,907
0
0
null
2018-02-18T11:19:44
2018-02-18T11:19:44
null
UTF-8
Python
false
false
1,568
py
from zerem import Flow, Slot, process class TestFlow(object): def test_slots_register(self): """ Tests that slot is added to the flows available slots """ class MyFlow(Flow): slot = Slot() m = MyFlow() assert getattr(m, '__flow_available') == ...
[ "matthewj.egan@hotmail.com" ]
matthewj.egan@hotmail.com
d1d0508de70a0ada37a1c3e68468cb649846a73f
9a423dfb84041a926970e10afad93f15619a34d8
/backend/google_helpers/utils.py
cc3592f7ee47ae2ca715dbd7623e04aa1cc1fb21
[]
no_license
Babalwa01/Tilde
3c2d6295b3d5e8a0cce1331f657ad835688a4db5
8eaffeb2c6b78aec4f0d6b5f573106e0a705ae53
refs/heads/master
2023-05-28T23:06:49.205259
2021-05-18T08:41:14
2021-05-18T08:41:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,651
py
import logging import pandas as pd from functools import lru_cache import re from timezone_helpers import timestamp_str_to_tz_aware_datetime from google_helpers.constants import TIMESTAMP_FORMAT, TIMEZONE_NAME def timestamp_to_datetime(timestamp): return timestamp_str_to_tz_aware_datetime( timestamp=time...
[ "sheena.oconnell@gmail.com" ]
sheena.oconnell@gmail.com
25f36707799253f370eeb2ff989176d7430e52ac
0c84cc9a2c06594e01835a617a7d5866f9db68a4
/importing-example/example_2/use_animals.py
a55375cf73a3a4e3806d644da20f0e1ba7b9f72f
[]
no_license
01-Jacky/Python-Things
a508ac4161c0f836fb793bd07e8c69ff0f3d6e1d
5153a27cdf9dc17ec3344c2774674c7f92156cf6
refs/heads/master
2021-03-19T16:59:50.000741
2018-04-04T23:48:46
2018-04-04T23:48:46
100,906,338
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
# Import classes from your brand new package from package.Animals import Mammals from package.Animals import Birds # Create an object of Mammals class & call a method of it myMammal = Mammals() myMammal.printMembers() # Create an object of Birds class & call a method of it myBird = Birds() myBird.printMembers()
[ "hklee310@gmail.com" ]
hklee310@gmail.com
043f39369ddb5869a0f589beb403b66748b3f3a0
ceedf463269728f0257030671917f9fc979c720a
/popula.py
8a2b370eed09596f677c02302927860324171dcd
[]
no_license
weltonvaz/Zumbis
4a8bc213b2d7380b0ef4f3672c6a36b45f3f5c0a
da760e9f258c03660a2eae1439190ce36dee716d
refs/heads/master
2021-01-19T08:33:58.430648
2015-04-17T11:59:11
2015-04-17T11:59:11
32,888,135
0
4
null
null
null
null
UTF-8
Python
false
false
507
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Problema de crescimento populacional # Desenvolvido por Evaldo Junior (InFog) # http://evaldojunior.com.br/blog popA, popB, anos = 80000, 200000, 0 cresA, cresB = 0.03, 0.015 # Crescimentos de 3% e 1,5% ao ano while (popA < popB): anos += 1 popA = popA + (popA * c...
[ "weltonvaz@gmail.com" ]
weltonvaz@gmail.com
65a01fd1f09658838b02901d836cc99d3fe44dd1
ed37a985a7411fb3b8f29282a81f1d823f8f4afc
/pascal_triangle/implementations/cython/base.py
5289433918abcc9fb01106fd869644cc623a41fb
[]
no_license
dmugtasimov/pascal_triangle
5b310451582f6fc2ddc74f316259c6ec9fc4ec4b
875deac43300a42560f0433a92e5f1e0475bb754
refs/heads/master
2021-06-16T10:55:11.338999
2017-04-11T17:20:54
2017-04-11T17:20:54
35,548,062
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from pascal_triangle.implementations.base import PascalTriangleBase class CyPascalTriangleBase(PascalTriangleBase): language = 'Cython'
[ "dmugtasimov@gmail.com" ]
dmugtasimov@gmail.com
5aabfdaa690e6d5f51e29d29af16c5f7bbebe551
f9c7969c8649c484f2460fb245a3d5bd6870fa5a
/ch07/exercises/exercise 50.py
57914cc3e70dcbd399eceb03ac689bf9eefd314c
[]
no_license
Pshypher/tpocup
78cf97d51259bfea944dc205b9644bb1ae4ab367
b05b05728713637b1976a8203c2c97dbbfbb6a94
refs/heads/master
2022-05-18T13:11:31.417205
2020-01-07T13:50:06
2020-01-07T13:50:06
260,133,112
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
# Program written to transfer the elements of a list to another # list whilst rearranging the order in which the elements appear # Unless stated otherwise, variables are assumed to be of type int def transform(list1, list2, r1, r2): """Removes items from list1 in the slice r1:r2, appends them onto list2 i...
[ "jimishote@gmail.com" ]
jimishote@gmail.com
6a71ee61962bf5aaad4affa272e4d5ea139738fa
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY4JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_106/run_cfg.py
9695dd7ce6e979864c86ead25607ebeee3e6d533
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY4JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
1a0e532b26b8e1f4e25a0bdf0c0d61114323d61c
e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1
/String/test_q014_longest_common_prefix.py
5c11b0ca85d14ca6dca237e3305afcd9f12663cf
[]
no_license
sevenhe716/LeetCode
41d2ef18f5cb317858c9b69d00bcccb743cbdf48
4a1747b6497305f3821612d9c358a6795b1690da
refs/heads/master
2020-03-16T16:12:27.461172
2019-04-22T13:27:54
2019-04-22T13:27:54
130,221,784
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
import unittest from String.q014_longest_common_prefix import SolutionF class TestLongestCommonPrefix(unittest.TestCase): """Test q014_longest_common_prefix.py""" def test_longest_common_prefix(self): s = SolutionF() self.assertEqual('fl', s.longestCommonPrefix(["flower", "flow", "flight"])...
[ "429134862@qq.com" ]
429134862@qq.com