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
09624c254fd814d60f06f3e974c3b11e8a555ac6
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/MxNcFpABB68JCxSwA_11.py
9d14b1e736cb8251be6b631017bdd3a50318fe68
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
def legendre(p, n): i, res = 1, 0 while p**i <= n: res += n // p**i i += 1 return res
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
7efa9975210f4ac91ff681aafebfb83b62f65fe5
79359f4814c53a09460cd7c257d17901ba665f7b
/adress/models.py
eab690f225d2bd8ddbf10507db3f22156be3d793
[]
no_license
idelfrides/API_django_REST_framework
77e784bc8d5fd0e282273bb401acae3e7c2dc6e3
06429c9e394a40925850504f6fe233296b0d303a
refs/heads/master
2020-08-12T22:59:12.775204
2019-10-13T17:11:00
2019-10-13T17:11:00
214,859,685
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from django.db import models class Adress(models.Model): line1 = models.CharField(max_length=150) line2 = models.CharField(max_length=150, null=True, blank=True) city = models.CharField(max_length=50) state = models.CharField(max_length=50) country = models.CharField(max_length=50) latitude = ...
[ "idelfridesjorgepapai@gmail.com" ]
idelfridesjorgepapai@gmail.com
bf49b30027e8e76c3e2969b93abaf9b1c89d9e40
beb4d7c16ea8d8da9747b94298891cf01d9466f6
/users/forms.py
8e58828a265c591a8f885ad7435e82918ab2af63
[]
no_license
Chirag-Django/nonstopio_assignment
48985445a19f8d01c1f0565e8058cd032942d903
b1f1561e841857ea64d9a5170974704a347cc0e3
refs/heads/master
2023-03-05T07:05:49.963018
2021-02-20T18:35:29
2021-02-20T18:35:29
340,347,626
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from .models import Profile from django import forms from django.contrib.auth.models import User class UserForm(forms.ModelForm): class Meta: model = User fields = ('username','password') widgets = { 'password': forms.PasswordInput(), } class ProfileForm(forms.ModelFor...
[ "chirag.django@gmail.com" ]
chirag.django@gmail.com
2b629008ebebe1c82a9798ac82abd5a380f666de
8d02b867eaa5d7aedb80ae31cec5dfe7b0201d1f
/Ch_06 - Functions/ants_solution.py
c1117f5a2df92b0bc9247374d9ddcc7f38d2443a
[]
no_license
capncrockett/beedle_book
df17f632990edf4dfae82ccedb5f8d2d07385c00
d65315ddff20fb0ef666c610dbe4634dff0a621a
refs/heads/main
2023-07-23T08:33:17.275029
2021-09-01T02:47:08
2021-09-01T02:47:08
401,894,762
0
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
# c06ex02.py # Prints lyrics for "The Ants Go Marching". def verse(number, action): print(march(number), hurrah()) print(march(number), hurrah()) print(march(number)) print(littleOne(action)) refrain() def march(number): return "The ants go marching %s by %s," % (number, number)...
[ "root@YOGA-720.localdomain" ]
root@YOGA-720.localdomain
4e083f58b4e80f2947c7cd47ac00d60a37371e07
8be2df0c4508cc5254887b8cccb044032aea5c21
/interview/first/tests/test_first.py
97b686ec7178ed3528336ed4a0d8dfa6763ad96e
[]
no_license
ezhk/python-learning
2d3dad2190ac9ce9299534f0f303e8b76a8eeab2
424ec9ca08541273f9ec39ff25f75a3b78d9dcb7
refs/heads/master
2023-01-05T16:50:08.829169
2020-06-02T18:03:05
2020-06-02T18:03:05
165,482,083
0
1
null
2023-01-04T04:59:43
2019-01-13T08:21:44
Python
UTF-8
Python
false
false
572
py
#!/usr/bin/env python import sys import unittest sys.path.append(".") from first import * class TestFirst(unittest.TestCase): def test_multiplication_table(self): result = """- -- -- -- -- -- -- -- -- -- 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 ...
[ "ezhik@ezhik.info" ]
ezhik@ezhik.info
6db4923a1304a510d7f7b79194c89fae3d3e433d
f7b05ca511d923822ae8519de4c3f35b24a76f5f
/stubs/beancount/core/data.pyi
58f15af63d5704d692508807380a0e2130b72883
[ "MIT" ]
permissive
iEverX/fava
50d4c1214afbc80a01c60841ecd33bc366d2b44b
2c5508038b886b42e13648e3fb8a50bf9ac484cf
refs/heads/main
2023-04-26T23:32:10.516227
2021-05-23T07:08:45
2021-05-23T07:08:45
369,947,837
0
0
MIT
2021-05-23T02:52:55
2021-05-23T02:52:54
null
UTF-8
Python
false
false
3,760
pyi
# pylint: disable=all # flake8: noqa import datetime import enum from typing import Any from typing import Dict from typing import FrozenSet from typing import List from typing import NamedTuple from typing import Optional from typing import Set from typing import Tuple from typing import Type from typing import Union ...
[ "mail@jakobschnitzer.de" ]
mail@jakobschnitzer.de
429bb3f927f5e101a0070ec3957c352f1b2b81ec
d308fffe3db53b034132fb1ea6242a509f966630
/pirates/chat/PChatInputTyped.py
f5bd65337bfac2d93587b1771aa561f8438e1070
[ "BSD-3-Clause" ]
permissive
rasheelprogrammer/pirates
83caac204965b77a1b9c630426588faa01a13391
6ca1e7d571c670b0d976f65e608235707b5737e3
refs/heads/master
2020-03-18T20:03:28.687123
2018-05-28T18:05:25
2018-05-28T18:05:25
135,193,362
3
2
null
null
null
null
UTF-8
Python
false
false
12,284
py
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.chat.PChatInputTyped from direct.fsm import FSM from otp.otpbase import OTPGlobals import sys from direct.directnotify import Di...
[ "33942724+itsyaboyrocket@users.noreply.github.com" ]
33942724+itsyaboyrocket@users.noreply.github.com
db7e7c16b31a09e8b6ca45c25861d6d291100c75
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/v34oCTbkrceCZjgRE_13.py
a9172c7f75c4daa5b8039320bd29cd908f79cc2b
[]
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
1,286
py
""" The **right shift** operation is similar to **floor division by powers of two** , thus, the process is _repetitive_ and can be done _recursively_. Sample calculation using the right shift operator ( `>>` ): 80 >> 3 = floor(80/2^3) = floor(80/8) = 10 -24 >> 2 = floor(-24/2^2) = floor(-24/4) = -6 -5 ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
c8cad4bbe0e65284571d2098ad9eac09162e0c47
fe6e0a2cfb00d34b58f64f164a747e3df08e8a9d
/client/application/controller/quyuxiaoshoutongji.py
bf2221e525b580d1453b72118bd22302a81d672e
[]
no_license
huboqiao/kmvip
c141814666631c35b8adeec3d3beb5aca0d2d1cd
11ae7e1f78943c8425516c4f06acf043a99acdcc
refs/heads/master
2020-02-26T14:58:31.573602
2016-08-03T06:29:41
2016-08-03T06:29:41
64,809,269
0
1
null
null
null
null
UTF-8
Python
false
false
3,712
py
#coding:utf-8 from application.lib.Commethods import * from application.view.quyuxiaoshoutongji import Ui_Dialog class QuYuScale(ControllerAction,Ui_Dialog,PrintAction): def __init__(self,parent = None): ControllerAction.__init__(self, parent) PrintAction.__init__(self,u"区域销售统计表") ...
[ "42320756@qq.com" ]
42320756@qq.com
4c5b927c53c82fc293f4290aa24ae57772b12da7
930309163b930559929323647b8d82238724f392
/typical90_i.py
ea4c1a1584c4ad62fa2c06098d162e2a63c7da57
[]
no_license
GINK03/atcoder-solvers
874251dffc9f23b187faa77c439b445e53f8dfe1
b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7
refs/heads/master
2021-11-07T14:16:52.138894
2021-09-12T13:32:29
2021-09-12T13:32:29
11,724,396
3
1
null
null
null
null
UTF-8
Python
false
false
1,077
py
import itertools import numpy as np import bisect def angle(c0, c1): cosine_angle = np.dot(c0, c1) / (np.linalg.norm(c0) * np.linalg.norm(c1)) angle = np.arccos(cosine_angle) return np.degrees(angle) def slow(): N=int(input()) XY = [] for _ in range(N): x, y = map(int,input().split())...
[ "gim.kobayashi@gmail.com" ]
gim.kobayashi@gmail.com
d93e485b32559ed9bbeb9095906afc77c3b293b1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/19/usersdata/102/7266/submittedfiles/jogoDaVelha.py
ca7bac2dab81b9c471ab886a8d0b50f2746278a9
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
# -*- coding: utf-8 -*- from __future__ import division import math x1 = input('Digite x1: ') x2 = input('Digite x2: ') x3 = input('Digite x3: ') x4 = input('Digite x4: ') x5 = input('Digite x5: ') x6 = input('Digite x6: ') x7 = input('Digite x7: ') x8 = input('Digite x8: ') x9 = input('Digite x9: ') #CONTINUE... if ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
ea1f690bb16b6f3b7c4f574beb17f9754aa3dfa2
3fad7381b03607e908dc06a7f91ae60f10e5be16
/01_tests/05_andrei_repository/2017.08.23_RaportMnist/knn_slider_experiment/slider.py
549c9c6779a84f95aa31a5ece4f596f64525af76
[]
no_license
Cloudifier/CLOUDIFIER_WORK
ea5efe0f8e75315313db5ee145f4cc8092b542fa
e8ce18fad97b1207545e933ed0947347ed09c536
refs/heads/master
2021-12-23T16:41:03.149554
2021-12-13T13:16:51
2021-12-13T13:16:51
108,911,842
0
0
null
null
null
null
UTF-8
Python
false
false
5,605
py
import numpy as np import pandas as pd from utils import sigmoid, softmax, min_max_scaler from sklearn.metrics import pairwise_distances from scipy.stats import mode import multiprocessing from tqdm import tqdm, trange import time import gc import inspect import sys class Slider(): def __init__(self, df_files, size...
[ "damian@cloudifier.net" ]
damian@cloudifier.net
923ca287952b81c4d4382b7af028fdc1393fab6e
5a9a28b79e01a71dae8c92d1c1feaee139a92510
/2022/2022-02/02-07/1405.py
48c8814e0ea1a5ed2f0f7c36808ffbe89f92fc37
[]
no_license
ez4lionky/Leetcode-practices
b81854e0ab9a9b39b6a26df6faf99bcf89860c39
0c28803043ea8196e564dacdbb231f6bb1693226
refs/heads/master
2023-02-08T03:33:42.756691
2023-01-21T03:31:09
2023-01-21T03:31:09
196,699,617
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
import heapq class Solution: def longestDiverseString(self, a: int, b: int, c: int) -> str: max_heap = [] if a > 0: heapq.heappush(max_heap, (-a, 'a')) if b > 0: heapq.heappush(max_heap, (-b, 'b')) if c > 0: heapq.heappush(max_heap, (-c, 'c')) res = '' while max_he...
[ "codex.lxy@gmail.com" ]
codex.lxy@gmail.com
a0aa5f38758c6fb400aeb788892f86ccbf5513d2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02778/s359431231.py
05bef0f491391dffa6e151fc8c6564e36229bb6a
[]
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
168
py
import sys input = lambda: sys.stdin.readline().rstrip() def solve(): n = len(input()) ans = 'x' * n print(ans) if __name__ == '__main__': solve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
81a1fc018ec8c711319f15d08beb753759612447
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03573/s699758897.py
68dc4cc90a48839d7a5ebf77da31afb0a341b1ff
[]
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
112
py
a, b, c = (int(x) for x in input().split()) if a == b: print(c) elif b == c: print(a) else: print(b)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
35587ddb86a9f14e7a0f7fb2e1d56c72f3e4c63b
bc441bb06b8948288f110af63feda4e798f30225
/resource_package_tools_sdk/model/topology/view_pb2.pyi
87c922d2bad9ae781ab1970c8f62c712ab95c8b8
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
7,522
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
0ecd372f87cdeb4bbb342d2f31042ecb2e05bd41
683876019cad0b0d562ac7f9da8c679cb310cfb2
/2016/day19/part1_ll.py
4a08c2e641a6605382f82513fdc09f18e30d97da
[]
no_license
CoachEd/advent-of-code
d028bc8c21235361ad31ea55922625adf743b5c8
10850d5d477c0946ef73756bfeb3a6db241cc4b2
refs/heads/master
2023-05-11T05:20:26.951224
2023-05-09T18:54:16
2023-05-09T18:54:16
160,375,311
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
""" AoC """ import time import sys # A single node of a singly linked list class Node: # constructor def __init__(self, data = None, next=None): self.data = data self.next = next # A Linked List class with a single head node class LinkedList: def __init__(self): self.head = None # insertion ...
[ "CoachEd@gmail.com" ]
CoachEd@gmail.com
de63c3e5d529ce92b9c76636a9c9546bef4fc10b
34263dd7d7cb038bd62b50239ba5f7a88d0430ce
/extra_apps/xadmin/plugins/ueditor.py
c95778d810b957813b85d7268919b96c31d85c15
[]
no_license
vevoly/StudyOnline2
c8da53ccc4d58e10d7f58639ffe4a0944757aef1
224a9d21a8600e26945e09ae4240b67267392173
refs/heads/master
2020-04-21T08:01:44.043799
2019-02-12T15:17:46
2019-02-12T15:17:46
169,407,451
0
0
null
null
null
null
UTF-8
Python
false
false
1,394
py
# _*_ coding: utf-8 _*_ __author__ = 'jevoly' __date__ = '2018/12/13 0013 上午 10:15' import xadmin from xadmin.views import BaseAdminPlugin, CreateAdminView, UpdateAdminView from DjangoUeditor.models import UEditorField from DjangoUeditor.widgets import UEditorWidget from django.conf import settings class XadminUEdit...
[ "jevoly@163.com" ]
jevoly@163.com
4fb1a32acd37b6b3c8a78123ef3c9402f520f7b1
3c868540c8f5b0b9b46440e9b8e9160de9e8988f
/ch04/items.py
7acd94f1c49dc7b2622e2f46537cd18c9af52490
[]
no_license
sarte3/python
cc8f41b8b22b0a980252d6546358dd212324e2cd
15d984e5df03387950692092b6b5569adab845bb
refs/heads/master
2023-01-18T18:37:40.720326
2020-11-17T08:43:27
2020-11-17T08:43:27
304,824,911
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
example_dictionary = { '키A': '값A', '키B': '값B', '키C': '값C' } print('# 딕셔너리의 items() 함수') print('items() : ', example_dictionary.items()) print() print('# 딕셔너리의 items() 함수와 반복문 조합하기') for key, element in example_dictionary.items(): print('dictionary[{}] = {}'.format(key, element))
[ "sarte@outlook.kr" ]
sarte@outlook.kr
0761f644ba1f7580cfe8081b9a120d644abca30f
4ebdc7053d9341ce7ad45f1e859ff86ef1455177
/56_simple_interest.py
4ada91727b9d65ad66eee49e2e59748636e9322d
[]
no_license
daikiante/python
1f4d55e1fd04eef22702b364148b8e1a2beea2d3
9d604b8dcd9e3cbe8b4db24ef16c5c969f6f894f
refs/heads/master
2020-09-17T00:14:24.034179
2019-12-02T09:03:25
2019-12-02T09:03:25
223,928,994
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
# 単利計算 # 元本*金利*運用期間 = 単利 def simple_interest(p, t, r): return p * (r / 100) * t p = int(input('Enter the amount (/Rs):')) t = int(input('Enter the hold span (/Year):')) r = int(input('Enter the interest (/%):')) print(simple_interest(p,t,r))
[ "daikiante@gmail.com" ]
daikiante@gmail.com
151e343e9c8d0f2441e111d73315a7c1519ef256
4cdb92fddb5082070ea8e25df63a7d43e9259c81
/pubsubpull/migrations/0005_auto_20150520_1121.py
e0bcf42821b5225682cacbac07cad406faa9d580
[ "MIT" ]
permissive
WFP-BKK/django-pubsubpull
50b22604eef82379124f8377188d956e4965a146
ae4341ff9fdbe7493399adb7f2ecb43024cb7961
refs/heads/master
2021-01-20T14:53:32.616023
2016-10-26T03:12:29
2016-10-26T03:12:29
82,781,454
0
0
null
2017-02-22T08:46:10
2017-02-22T08:46:10
null
UTF-8
Python
false
false
698
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime class Migration(migrations.Migration): dependencies = [ ('pubsubpull', '0004_auto_20150520_1041'), ] operations = [ migrations.AddField( model_name='reque...
[ "k@kirit.com" ]
k@kirit.com
b1613ee7db44819afd8e61048612766198986df2
1dd89e25ae58eded2fc3a5756a706fd654c9b40a
/test/test_analyze.py
652880fcf500bc53bbb28c8567a8a18605915ec9
[ "Apache-2.0" ]
permissive
jiev/chan
9672bd3ac3146248da1da60660a6123ab1fa34b1
a6c57a9f64e37c9cb05cf498f16719dbc2757a4c
refs/heads/master
2022-06-17T21:31:19.680827
2022-06-10T01:52:36
2022-06-10T01:52:36
247,880,355
2
0
MIT
2020-03-17T04:38:18
2020-03-17T04:38:17
null
UTF-8
Python
false
false
4,209
py
# coding: utf-8 import zipfile from tqdm import tqdm import pandas as pd from czsc.analyze import * from czsc.enum import Freq from czsc.signals.signals import get_default_signals, get_s_three_bi, get_s_d0_bi cur_path = os.path.split(os.path.realpath(__file__))[0] def read_1min(): with zipfile.ZipFile(os.path.jo...
[ "zeng_bin8888@163.com" ]
zeng_bin8888@163.com
acf74262f60d7d295e91526be0a91ace5f16d7bc
db14241eca00e2bcbf03924106c377ccb2b2aec8
/lte/gateway/python/magma/pipelined/bridge_util.py
2efc3bb2f1fb9a55a423fcaffd22af6c2e1ac7ae
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bdryja/magma
24a893abaf65284b9ce721455d70564b2447b547
7d8e019a082b88f63d22313abffdb98257160c99
refs/heads/master
2022-04-19T14:08:14.365184
2020-03-26T15:59:44
2020-03-26T16:03:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,059
py
""" Copyright (c) 2018-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ import binascii from collect...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
4edd2ce054246103a8e3827a9b3be861c706652a
09379c13eea9c6b806c43fca12ebf182684ea11f
/Day12/04装饰器进阶.py
af26a492d965e1d4d3728d61152eea7cccc77e28
[]
no_license
ExplorerX/PythonProjects
0d97348dc9712c622e4f20e9c33b3904e2810e1d
de23e5f7a9415bf983f9c99ba5c0bd12dc7b6a99
refs/heads/master
2020-04-19T10:39:12.788123
2019-02-26T05:38:47
2019-02-26T05:38:47
168,146,465
1
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
# 带参数的装饰器 # 装饰器的本质就是闭包 # 闭包的本质就是内层函数使用了外层函数的变量,而这个变量会一直存在于内存中 # import time # FLAG = True # # # def wrapper(flag): # def tim(f): # def inner(*args, **kwargs): # if not flag: # start = time.time() # ret = f(*args, **kwargs) # end = time.time() # ...
[ "384470140@qq.com" ]
384470140@qq.com
40b395494ca5039218e435761d3aac136f825bd5
ebf723d6066e157ad5cedf94099deb62e6191390
/py/yahoo_procon2019_qual_b.py
ec66b16507bbf79dc272e9e4cf3a9ffbaa169713
[]
no_license
PeterGrainfield/AltCoder
a960bd2642887502829bb4078a35712c492a8d54
378cebdf1cf713310a83575b4dc1e39834e76e59
refs/heads/master
2023-05-08T16:32:53.653689
2021-05-31T06:10:55
2021-05-31T06:10:55
368,459,650
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
lab = [list(map(int, input().split())) for _ in range(3)] road = [0]*4 for ab in lab: road[ab[0]-1] += 1 road[ab[1]-1] += 1 if min(road) == 0: print("NO") elif max(road) == 3: print("NO") else: print("YES")
[ "peter@vollegunord.work" ]
peter@vollegunord.work
05b39c43cf82306a1e921f4a016fbda0bddbc0d2
24e843a90a3b3a37cc4d76a207f41d1fc628c2e7
/python3/solved/P674. Longest Continuous Increasing Subsequence.py
e9b047b175727dd2037cea06f93d22535d18a00e
[]
no_license
erikliu0801/leetcode
c595ea786716f7df86bd352c1e8d691f1870ec70
1de7bfe192324f9de28afa06b9539331c87d1346
refs/heads/master
2023-08-07T14:47:19.074076
2021-09-05T09:46:35
2021-09-05T09:46:35
224,321,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,720
py
# ToDo: """ 674. Longest Continuous Increasing Subsequence Easy Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Note: Length of the array will not exceed 10,000. """ # Conditions & Concepts """ """ # Code ## submit part class Solution: def findLeng...
[ "erikliu0801@gmail.com" ]
erikliu0801@gmail.com
e24fedc5e7ee860538e5849e1ecaa5874d393e8f
88e3ae7a21301c56f25fb7561d354cb169139932
/likebee/core/migrations/0002_auto_20190113_1657.py
af66823781f4b2dd875b0cc34fbdeefbeaeeada6
[ "MIT" ]
permissive
ow7/likebee
9cf54a3c45d031cc92e9a9cdebe11e7db11acf6a
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
refs/heads/master
2020-04-16T11:13:24.643022
2019-04-23T07:34:20
2019-04-23T07:34:20
165,528,187
1
0
null
null
null
null
UTF-8
Python
false
false
794
py
# Generated by Django 2.1.5 on 2019-01-13 18:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AddField( model_name='sprint', name='finish_on', fie...
[ "kleberr@msn.com" ]
kleberr@msn.com
06ddd7dcca2fe0eb55e52f4f2f0c3f73f995e301
0a0cc1d675d57704e6fd15e60f7ef752fe296f6d
/code/data_utils.py
9a62de4d851bd06e2846755e5a801a3137677d43
[]
no_license
RichardcLee/SRGAN-LYH
83660ff4f92fe6ae61a030cfd7ba71d0b080d2fd
726e5b172fa3790976ff17efb5401f52efd23816
refs/heads/master
2021-07-08T17:26:33.109918
2021-04-20T07:30:12
2021-04-20T07:30:12
239,928,994
3
0
null
null
null
null
UTF-8
Python
false
false
3,598
py
from os import listdir from os.path import join from PIL import Image from torch.utils.data.dataset import Dataset from torchvision.transforms import Compose, RandomCrop, ToTensor, ToPILImage, CenterCrop, Resize def is_image_file(filename): return any(filename.endswith(extension) for extension in ['.png', '.jpg'...
[ "0yunhow@gmail.com" ]
0yunhow@gmail.com
ccbd80416743a01517fc733d6407b812ed9d7c4c
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/units/astrophys.py
9a4a5f2f26913ab6e4eb9c7e050137ab68f603e3
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
7,282
py
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst """ This package defines the astrophysics-specific units. They are also available in the `astropy.units` namespace. """ from . import si from astropy.constants import si as _si from .core import (UnitBase, def_unit, si_prefixes,...
[ "nicolas.holzschuch@inria.fr" ]
nicolas.holzschuch@inria.fr
238fb1753a99b26170c07e8c5f7b6c37dcdaec9d
a6ea3ddd3592f83b6d4b38d9e803d8ad387975d1
/districts/ak/districts.py
76eb48ad290e7b4b7ea15712a6cabbc1abd47c0b
[]
no_license
CTCL/bip-data
80a9cbde0057e551fe8b85091f2be891b669a803
39cf25545937db19daf17aeb3f0b86fb202fe74c
refs/heads/new_nat
2020-12-25T10:36:22.906223
2013-02-06T03:00:50
2013-02-06T03:00:50
50,055,835
1
0
null
2016-01-20T19:48:51
2016-01-20T19:48:51
null
UTF-8
Python
false
false
1,029
py
state_senate_district = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T'] school_district = [] state = ['AK'] judicial_district = [] congressional_district = ['001'] county_id = ['ALEUTIANS EAST BOROUGH', 'BRISTOL BAY BOROUGH', 'CITY & BOROUGH OF JUNEAU', 'CITY & BOROU...
[ "gaertner@gaertner-lap.(none)" ]
gaertner@gaertner-lap.(none)
e61020e2fbd20892008b21a3e1c7a11a32a01765
e714dfd95cb74f4e357af8d085e4dcaf8b7ecdf3
/0x0A-python-inheritance/2-is_same_class.py
aa4b57fcbf256d54c6bd85d4a1fca0b859008f73
[]
no_license
MCavigli/holbertonschool-higher_level_programming_classic
2cea769dc1fd39e90f6ef74cdb3191e2472b0282
870548f964a3deac4a41918e9c3d0bad6cd732b4
refs/heads/master
2022-03-06T09:33:56.839118
2019-09-27T06:04:34
2019-09-27T06:04:34
184,122,977
3
4
null
null
null
null
UTF-8
Python
false
false
399
py
#!/usr/bin/python3 """This module holds a function that checks if an object is an instance or a specified class """ def is_same_class(obj, a_class): """Returns True if the object is exactly an instance of the specified class; otherwise False Args: obj: the object to check a_class: The clas...
[ "mcavigli@gmail.com" ]
mcavigli@gmail.com
19313e15aa82c9fa0f64105caffdbd82c478fe72
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startQiskit_QC239.py
5f958a1bc26ad324bb6b43561bf565c7887f736f
[ "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
5,430
py
# qubit number=3 # total number=45 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
7b1d972987a309a0f4c5c451712b01728c5e99c4
a9fbbfc990ad79f412d8078d27b8937e5ef00bde
/inheritance/exercise/problem_02/reptile.py
b485963519f9b88bc3f05e703e0f4304972141f5
[ "MIT" ]
permissive
BoyanPeychinov/object_oriented_programming
e2d23ec0ff681ca2c6cf1805e581af3d601aafee
a960721c7c17710bd7b151a9025647e953435962
refs/heads/main
2023-03-31T16:19:20.239216
2021-03-30T19:43:42
2021-03-30T19:43:42
342,281,483
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
from problem_02.animal import Animal class Reptile(Animal): # def __init__(self, name): # super().__init__(name) pass
[ "BoyanPeychinov@gmail.com" ]
BoyanPeychinov@gmail.com
0e34820d502392826161fb5b3bcd150e9b63c521
80831d77ef6fc3b485be80501b73ccb30ce5e444
/networkapi/plugins/F5/lb.py
c9ab8665c63964bffc6932c9cf03eb11aba63fb8
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
globocom/GloboNetworkAPI
e2fdf5a9e6070359e90801bf3e45c2d499f199c5
eb27e1d977a1c4bb1fee8fb51b8d8050c64696d9
refs/heads/master
2023-06-25T21:34:04.923940
2023-05-29T12:07:20
2023-05-29T12:07:20
22,734,387
86
74
Apache-2.0
2023-05-29T12:07:21
2014-08-07T19:47:43
Python
UTF-8
Python
false
false
2,601
py
# -*- coding: utf-8 -*- import logging from time import sleep import bigsuds from networkapi.plugins import exceptions as base_exceptions from networkapi.system.facade import get_value as get_variable log = logging.getLogger(__name__) class Lb(object): def __init__(self, hostname, username, password, session=...
[ "ederson.brilhante@corp.globo.com" ]
ederson.brilhante@corp.globo.com
8f09cbf72c7a7c1685667c667533b247017eefc2
9a4de72aab094c87cfee62380e7f2613545eecfb
/git_python/views_api.py
594be88299c49b034c5904e620c87bf81a9cb19c
[]
no_license
jamesduan/asset
ed75765c30a5288aaf4f6c56bbf2c9a059105f29
f71cb623b5ba376309cb728ad5c291ced2ee8bfc
refs/heads/master
2021-01-10T00:06:41.120678
2017-05-27T11:40:48
2017-05-27T11:40:48
92,730,581
0
0
null
null
null
null
UTF-8
Python
false
false
27,342
py
# -*- coding: utf-8 -*- from rest_framework.decorators import api_view, permission_classes from rest_framework.response import Response from rest_framework.permissions import AllowAny from rest_framework import status, generics, filters, viewsets from assetv2.settingsapi import * from git import Repo from git.exc impor...
[ "duanlingxiao@yhd.com" ]
duanlingxiao@yhd.com
968e3135fb1bfbcd2d8917579b2fb4b0c066cec9
3fc8c5588252ce522d8d0b7fdda398397475abd7
/enigma/rotor/__init__.py
0a341da2b84f2c9f997739721df1b37e879ff132
[ "MIT" ]
permissive
lukeshiner/enigma
242362a37b7c82fabef237af424a5eca7bc6cdc9
51b9dcb9ec8190b780775135dc88b95fbba120fe
refs/heads/master
2023-07-23T12:10:11.397318
2023-07-19T10:34:37
2023-07-19T10:34:37
137,946,565
0
0
MIT
2023-09-11T08:43:50
2018-06-19T21:16:36
Python
UTF-8
Python
false
false
185
py
"""Enigma's rotors.""" from .reflector import Reflector # NOQA from .rotor import Rotor # NOQA from .rotor_mechanism import RotorMechanism # NOQA from .wiring import Wiring # NOQA
[ "luke@lukeshiner.com" ]
luke@lukeshiner.com
47a1b00a4c65511b02ad861524c25a8f5032850e
d9e0016dce735cf1d72b8f922733c1aa2eb0ac69
/tests/test_dicom2nifti.py
d3dc3e3dc00f2f6bb02fa808f0d14a1c55f07931
[ "MIT" ]
permissive
fmljr/dicom2nifti
4228af03d00342fd3ab6b2fbf1846b5af2dc7790
807dbf5d8d16f9cb1fc681344de4f1eeed04b0dd
refs/heads/master
2021-01-12T10:16:17.640273
2016-10-26T11:39:22
2016-10-26T11:39:22
76,402,823
0
0
null
2016-12-13T22:11:56
2016-12-13T22:11:56
null
UTF-8
Python
false
false
4,839
py
# -*- coding: utf-8 -*- """ dicom2nifti @author: abrys """ import unittest import tempfile import shutil import os import dicom2nifti import tests.test_data as test_data from tests.test_tools import compare_nifti, ground_thruth_filenames class TestConversionDicom(unittest.TestCase): def test_main_function(self...
[ "arne.brys@icometrix.com" ]
arne.brys@icometrix.com
df57c2e1baa7e2f56403f2f29ca0b10aee646060
be8bb4346a3043c62d914ccc9865cc561218158b
/Interfaces/API/NewInterface/Applications/OverlayInput.py
23482473bd27e56295ef1a278928dc399ef00e13
[]
no_license
LCDsoft/ILCDIRAC
72afc0aa3089ba1c9e9bef092c027403c2bbe2cf
9c366957fdd680a284df675c318989cb88e5959c
refs/heads/Rel-v29r2
2021-05-24T03:00:01.211717
2020-05-25T14:36:01
2020-05-25T14:36:50
9,239,327
1
5
null
2020-05-18T10:01:19
2013-04-05T11:01:20
Python
UTF-8
Python
false
false
15,440
py
""" OverlayInput : Helper call to define Overlay processor/driver inputs """ # pylint: disable=expression-not-assigned import types from collections import defaultdict from ILCDIRAC.Interfaces.API.NewInterface.LCUtilityApplication import LCUtilityApplication from ILCDIRAC.Workflow.Modules.OverlayInput import allowedB...
[ "andre.philippe.sailer@cern.ch" ]
andre.philippe.sailer@cern.ch
56c2ff039bc08f1a07ec735e680f16991d49556a
d4f1bd5e52fe8d85d3d0263ede936928d5811bff
/Python/Problem Solving/AlgorithmBook/9-1-1 Future City.py
fe41df785080e0f3bb92f7720429ed5e7b550f36
[]
no_license
ambosing/PlayGround
37f7d071c4402599995a50cac1e7f1a85c6d10dd
0d5262dbb2fa2128ecb3fd969244fa647b104928
refs/heads/master
2023-04-08T04:53:31.747838
2023-03-23T06:32:47
2023-03-23T06:32:47
143,112,370
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
import sys INF = int(1e9) n, m = map(int, sys.stdin.readline().split()) graph = [[INF] * (n + 1) for _ in range(n + 1)] for a in range(1, n + 1): graph[a][a] = 0 for _ in range(m): a, b = map(int, sys.stdin.readline().split()) graph[a][b] = 1 graph[b][a] = 1 x, k = map(int, sys.stdin.readline().split...
[ "ambosing_@naver.com" ]
ambosing_@naver.com
7748936c73223f57680a54fc92426bd279181b0e
af32685025305eb77125b6a0a544522422be3b2f
/basics/croping.py
772a3a71b2adc2d835a6db1f5293d8fbb5c57577
[]
no_license
Mohammed-abdelawal/py-opencv-practice
5e913f48f7ad875b00ce8a5e7bb692b2aa2efb35
876df49d54a0083650f3f9682c5e3dc226e31b76
refs/heads/master
2022-10-10T04:19:27.300790
2020-06-09T20:05:22
2020-06-09T20:05:22
270,372,834
1
0
null
null
null
null
UTF-8
Python
false
false
334
py
from cv2 import cv2 import numpy as np img = cv2.imread('data/home.png') print(img.item(100,100,0)) print(img.shape) print(img.size) print(img.dtype) ball = img[280:340, 330:390] cv2.imshow('old',img) cv2.imshow('cropped area',ball) img[273:333, 100:160] = ball cv2.imshow('new',img) cv2.waitKey(0) cv2.destro...
[ "mohammedabdelawaldeveloper@gmail.com" ]
mohammedabdelawaldeveloper@gmail.com
b54648dead31dbe6de0c6b4821ea81cd6fefb3aa
c8c1c8b3327ae93ceaa671681d5f9eac0933e738
/mrgpylinux/femcalcadv/gls/rotateypr.py
deb111704561ac9583192469d8ab27a4ccfd7a90
[]
no_license
gpspelle/acoustic-pollution
bbb2a6492b3d02d046cb533470affabcacb38409
ad80f1fd582f47ce679748bb6ac93ff3149fd445
refs/heads/master
2022-07-28T06:49:20.493083
2019-11-15T00:27:52
2019-11-15T00:27:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,091
py
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x06\x00\x33\x0d\x0d\x0a\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\xa3\x06\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe3\x50\x8c\x64\x26\x42\xd6\x...
[ "gpsunicamp016@gmail.com" ]
gpsunicamp016@gmail.com
61f52032ebbb4a63f30604d312a1fa77475aa7fe
b4e4399f6d18ee83760604fc67c90d3f5eac52dd
/Python/11.PythonFunctionals/75.ValidatingEmail.py
ecefafd0f2b944edb0a95f31372d5b79104984b9
[]
no_license
angelvv/HackerRankSolution
88415c3ace68ddc10c76ae8df43ab5193aa921d4
8b2c323507f9a1826b4156aeab94815f41b6fc84
refs/heads/master
2021-07-17T20:51:50.758364
2020-05-26T17:25:05
2020-05-26T17:25:05
167,896,187
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
def fun(s): # return True if s is a valid email, else return False try: username, url = s.split("@") website, extension = url.split(".") except ValueError: return False if not username.replace("-", "").replace("_", "").isalnum(): return False if not website.isaln...
[ "angel.huang90@gmail.com" ]
angel.huang90@gmail.com
42fed85bf89726b3b133b5d263eceb2d46e6ef2d
6874015cb6043d1803b61f8978627ddce64963b4
/django/contrib/gis/utils/wkt.py
626eab9d6e36dd5f62cab03c5178868563ee66ad
[ "BSD-3-Clause", "Python-2.0" ]
permissive
yephper/django
25fbfb4147211d08ec87c41e08a695ac016454c6
cdd1689fb354886362487107156978ae84e71453
refs/heads/master
2021-01-21T12:59:14.443153
2016-04-27T09:51:41
2016-04-27T09:51:41
56,134,291
0
1
null
null
null
null
UTF-8
Python
false
false
1,982
py
""" Utilities for manipulating Geometry WKT. """ from django.utils import six def precision_wkt(geom, prec): """ Returns WKT text of the geometry according to the given precision (an integer or a string). If the precision is an integer, then the decimal places of coordinates WKT will be ...
[ "smileszzh@163.com" ]
smileszzh@163.com
3409b6ddd08874520206f0046806448740c5c21e
9830360802428854384d6b27a172102de0e59c8f
/2776.py
737239add71ab1b31f319104e5d8d171bb4e8a89
[]
no_license
banje/acmicpc
d4009535ec31892f706333d812c92fddead08aa1
69d44a3b60d2a559563b5a1055bcc2290090e35c
refs/heads/master
2022-07-20T20:01:56.623346
2020-05-16T11:30:17
2020-05-16T11:30:17
260,843,463
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
a=int(input()) for i in range(a): b=int(input()) c=set(map(int,input().split())) d=int(input()) e=list(map(int,input().split())) for j in range(d): if e[j] in c: print(1) else: print(0)
[ "pak2t@naver.com" ]
pak2t@naver.com
8533b4b408672ace1a5fb2af100207eb14c91acc
cb94a4cdd7a9df17f9c6f1a03f8f4ff12c916cf3
/Python_Essential_Training/Exercise Files/Chap06/for.2.py
7a77df333bfaa16c51725a084f1e21a1691e55a8
[]
no_license
sedstan/LinkedIn-Learning-Python-Course
2b936d0f00703a6e66a872220ed47572123dc7fd
b4584218355bf07aa3d2939b950911eae67adb0b
refs/heads/master
2021-10-11T10:19:13.675662
2019-01-24T17:55:20
2019-01-24T17:55:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
#!/usr/bin/env python3 # Copyright 2009-2017 BHG http://bw.org/ animals = ( 'bear', 'bunny', 'dog', 'cat', 'velociraptor' ) for pet in animals: if pet == 'dog': continue print(pet)
[ "sed@wearewhy.co.uk" ]
sed@wearewhy.co.uk
c46892506c1b9dcdb921b6d830ec352ff9d8c096
fdf531435b0a4d771083bab78f5a2f91b2ec1b28
/Hashing/Hashing II/2. Hashing + Sliding Window/2. Window String.py
e0b5714f9d7256422a8e49cf6a0f1275ba856489
[]
no_license
srajsonu/100DaysOfCode
d556cf4c8491d2bea2bf6c17cc4410f64ae71829
b25ff694a04a16bd2bdd33cf5bb84f9cbe5f3af6
refs/heads/main
2023-03-22T22:48:11.030576
2021-03-18T18:50:00
2021-03-18T18:50:00
325,747,085
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
class Solution: def minWindow(self, A, B): m = len(A) n = len(B) if m < n: return '' freqA = {} freqB = {} for i in B: if i not in freqB: freqB[i] = 1 else: freqB[i] += 1 cnt = 0 i,...
[ "srajsonu02@gmail.com" ]
srajsonu02@gmail.com
26446c43755f56300804abd5f5b9d97113d69cb9
d52413173437ba73ecdf822ca895e659f00a8ce7
/kiwibackend/application/website/messages/http/packageUse_request.py
1e9eebdd11e508f0afbc3bb02fb584f586d612a3
[]
no_license
whiteprism/mywork
2329b3459c967c079d6185c5acabd6df80cab8ea
a8e568e89744ca7acbc59e4744aff2a0756d7252
refs/heads/master
2021-01-21T11:15:49.090408
2017-03-31T03:28:13
2017-03-31T03:28:13
83,540,646
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
# -*- encoding:utf8 -*- from messages.http import BaseHttp class PackageUseRequest(BaseHttp): def __init__(self): super(self.__class__, self).__init__() self.packageCode = ""
[ "snoster@163.com" ]
snoster@163.com
6ee1c27a32d25079040da61af38f1c0d53ab849f
8f6cc0e8bd15067f1d9161a4b178383e62377bc7
/__OLD_CODE_STORAGE/reinforcement_learning/a3c/from_internet/playground-ikostrikov-pytorch-a3c/envs.py
84224c825875b4c885430cd14323acae0c470d82
[ "MIT" ]
permissive
humorbeing/python_github
9c4dfc61a3cefbb266fefff335f6b28d05797e5e
e4b4b49bee7e7e3843c6874717779ce8d619bd02
refs/heads/master
2023-01-22T21:51:20.193131
2020-01-26T21:47:23
2020-01-26T21:47:23
163,707,778
0
0
null
2022-12-27T15:37:48
2019-01-01T01:58:18
Python
UTF-8
Python
false
false
2,163
py
import cv2 import gym import numpy as np from gym.spaces.box import Box from matplotlib import pyplot as plt def si(data): plt.imshow(data, interpolation='nearest') plt.show() # Taken from https://github.com/openai/universe-starter-agent def create_atari_env(env_id): # print('2') env = gym.make(env_id...
[ "geemguang@gmail.com" ]
geemguang@gmail.com
8d0ba3fffd49ea3eea2c0d620f4f2610304025b1
48c0e32b803b59ed695e9d8f1dcdb877a2124252
/virtual/bin/confusable_homoglyphs
899edb47b6e39425a22faa0ecada590b2de2579c
[ "MIT" ]
permissive
willyowi/my-hood
512604dc189527c7872125daf45b1cf8173448a8
8643b901b6234fc9c5ac50727d1789893cebc3b4
refs/heads/master
2022-12-15T03:52:57.961655
2019-09-17T05:54:01
2019-09-17T05:54:01
208,743,454
0
0
null
2022-11-22T04:15:05
2019-09-16T08:01:29
Python
UTF-8
Python
false
false
262
#!/home/moringa/Django/InstaInsta/virtual/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from confusable_homoglyphs.cli import cli if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(cli())
[ "wilsonowino1@gmail.com" ]
wilsonowino1@gmail.com
caf56dfe7e0c49a264c81da81d9ea914a84447b2
b29acb2e230b3cf2f8be070850c34ed5d62dc80c
/Python/YPS/11/Sample6.py
4b1cb2312995ea62fe3367f82ff96ca26700c936
[]
no_license
MasatakaShibataSS/lesson
be6e3557c52c6157b303be268822cad613a7e0f7
4f3f81ba0161b820410e2a481b63a999d0d4338c
refs/heads/master
2020-06-17T13:42:08.383167
2019-11-11T07:23:14
2019-11-11T07:23:14
195,940,605
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
import urllib.request page = urllib.request.urlopen("https://www.python.org/") html = page.read() str = html.decode() print(str)
[ "masataka.shibata.ss@gmail.com" ]
masataka.shibata.ss@gmail.com
c7002a8a4fd72fba25c69325e8430ad8ced27ca8
9eee1566e436a883fa3bd0266c6a7375e34ab4d7
/core/cli/commands/__init__.py
44633d5b9ef2ce1a47eab7ce8d55f2271b91fcce
[]
no_license
gropax/qiq-django
aa87fa070bf2083aba9043ebc96c2287be2cf7e5
31f8c6ad717994bd9b37fcdde3fec8549be5aec1
refs/heads/master
2020-07-09T05:19:13.117991
2017-01-10T16:54:52
2017-01-10T16:54:52
65,904,082
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
from .manage import ManageCommand from .qiq import QiqCommand
[ "maximedelaudrin@gmail.com" ]
maximedelaudrin@gmail.com
6bdf85290bd663dbcce0fcc6c25afc13b3ec49b3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03076/s440054219.py
3147caa674c3d4a08d5b4d7bfac6bdbff79f2610
[]
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
395
py
from itertools import permutations Order = [int(input()) for _ in range(5)] ans = [] for orders in permutations(Order): # print(orders) tmp = 0 cnt = 1 for order in orders: tmp += order if cnt == 5: ans.append(tmp) for _ in range(11): if tmp % 10 == 0: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f9c248c90a84e28028bd38121a1b2c64c0646d36
277d4ee56616bb5930c57a57c68a202bf5085501
/stubs/pytorch_transformers/modeling_transfo_xl_utilities.pyi
690e9c0e6bf58fb17eaeff7e7fa883231a190cb1
[ "MIT" ]
permissive
miskolc/spacy-pytorch-transformers
fc502523644eb25cb293e0796b46535ba581a169
ab132b674c5a91510eb8cc472cdbdf5877d24145
refs/heads/master
2020-07-22T09:47:17.905850
2019-09-04T15:12:09
2019-09-04T15:12:09
207,156,566
1
0
MIT
2019-09-08T18:37:55
2019-09-08T18:37:55
null
UTF-8
Python
false
false
1,205
pyi
# Stubs for pytorch_transformers.modeling_transfo_xl_utilities (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. import torch.nn.functional as nn from typing import Any, Optional class ProjectedAdaptiveLogSoftmax(nn.Module): n_token: Any = ... d_embed: Any = ... d_pr...
[ "honnibal+gh@gmail.com" ]
honnibal+gh@gmail.com
26b8d5c8ca06054ba4ceacb635d29f047733406b
cedf275d9d0a9034f4d1227605b2f869098a4322
/guize/migrations/0002_rule.py
c2a52efa781f4067da427bec40d04527405c7710
[]
no_license
thorDemo/WagtailPointsShop
bb019dfef781d843d1d9e78fb24142f67a0d178a
f069bcb66514067197a59ffe25b68b47dea282e3
refs/heads/master
2020-06-02T23:34:47.100993
2019-08-30T10:08:43
2019-08-30T10:08:43
185,065,560
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
# Generated by Django 2.2.1 on 2019-05-15 09:05 from django.db import migrations, models import django.db.models.deletion import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'), ('guize', '0001_i...
[ "thortwo@outlook.com" ]
thortwo@outlook.com
0a847c650ed4c43f4378921035fc98866e7c64ca
8441f156e53afcc6c2b5190de2439c68eb40f218
/scripts/test_pdl2resources.py
4a1a86f180bd2d2d6030e297f64ca2bb8c9e882d
[]
no_license
usnistgov/oar-metadata
99436a84d32d623d77310e75eee834c683ea1d5b
2190bfc79d97f81d52dd24df0d4e9dc844065b67
refs/heads/integration
2023-07-08T16:06:23.258608
2023-04-22T21:00:09
2023-04-22T21:00:09
82,972,531
4
7
null
2023-06-30T18:27:38
2017-02-23T21:20:34
Python
UTF-8
Python
false
false
2,595
py
#!/usr/bin/env python # import os, pdb, sys, shutil, json import unittest as test import ejsonschema as ejs datadir = os.path.join(os.path.dirname(os.path.dirname( os.path.abspath(__file__))), "jq", "tests", "data") pdlfile = os.path.join(datad...
[ "raymond.plante@nist.gov" ]
raymond.plante@nist.gov
84e6c18f5c63e7aa8929734ce272fa3a09eeb159
15ae6a6ca3a202e50e1905fb8f1bf8461d14e525
/bender_behaviors/src/python_old/entrevista1.py
184866f75c8f0ce575384b10e486eb55729d6c29
[]
no_license
uchile-robotics-graveyard/code_graveyard
5f8fa65ce0dc4698598ee4df00e27172cfd5be36
09feb04d2303456723542b95257e3ef3c86e263e
refs/heads/master
2021-01-21T08:24:24.254179
2016-12-13T03:23:19
2016-12-13T03:23:19
91,625,843
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
from bender_msgs.msg import * from bender_srvs.srv import * # Messages from std_msgs.msg import * # Services from std_srvs.srv import * rospy.init_node("ceremonia") face = rospy.Publisher('/head',Emotion) client_speech_synth = rospy.ServiceProxy('/speech_synthesizer/synthesize',synthesize) print "Presione Enter" a...
[ "matias.pavez.b@gmail.com" ]
matias.pavez.b@gmail.com
5627b2e467cd0e1614f8d47a99d2bf22066b9b4e
fb3caa66ac0b2254b422303d670a70e597067758
/201911_AI_Sec_Baidu/core-attack-codes/a_04.py
9f9cf0803ac57b036a01e238785d504de381f628
[]
no_license
dyngq/Competitions
065ec9f153919950b161aaa9fff6a9de9e29ba32
e9b7ff8fbe038e148bc61b21b077f35cdc5368a9
refs/heads/master
2021-06-13T13:55:11.352531
2021-05-08T09:49:24
2021-05-08T09:49:24
186,392,400
0
0
null
null
null
null
UTF-8
Python
false
false
5,022
py
#coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import functools import numpy as np import paddle.fluid as fluid #加载自定义文件 import models from attack.attack_pp import FGSM, PGD from utils import init_prog, save_adv_image, proces...
[ "dyngqk@163.com" ]
dyngqk@163.com
6509d45fac1e61e8e1adb7641a828be45e3c4bd6
f1d2a86b7dd93f4ddafa8961780775a28e7b4508
/LeetCodePractice/657. Judge Route Circle.py
c460223a113be445b4b0e16c29382cf9793142c3
[]
no_license
deepika087/CompetitiveProgramming
76f8c1451fce1a8e3c94656f81a5b04363987dc6
d40c24736a6fee43b56aa1c80150c5f14be4ff22
refs/heads/master
2021-06-12T02:26:22.374506
2021-02-20T19:27:57
2021-02-20T19:27:57
70,208,474
10
6
null
null
null
null
UTF-8
Python
false
false
540
py
__author__ = 'deepika' class Solution(object): def judgeCircle(self, moves): """ :type moves: str :rtype: bool """ start = [0, 0] for pos in moves: if pos == 'U': start[1] += 1 elif pos == 'D': start[1] -= 1 ...
[ "deepika_087@yahoo.com" ]
deepika_087@yahoo.com
c669a2a88652de7ad32f758264e4aebdb6518c22
461d7bf019b9c7a90d15b3de05891291539933c9
/bip_utils/addr/egld_addr.py
5ce39f3efdc68e319a149a4f7e603112e1d6e4b2
[ "MIT" ]
permissive
renauddahou/bip_utils
5c21503c82644b57ddf56735841a21b6306a95fc
b04f9ef493a5b57983412c0ce460a9ca05ee1f50
refs/heads/master
2023-07-16T05:08:45.042084
2021-08-19T09:33:03
2021-08-19T09:33:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,965
py
# Copyright (c) 2021 Emanuele Bellocchia # # 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, merge, publish,...
[ "54482000+ebellocchia@users.noreply.github.com" ]
54482000+ebellocchia@users.noreply.github.com
8c30f409fcf6bfd0fc431ba46999e04e306eb0a3
c36679186f669c6e3bd1c106c96d4a17be1f5ab1
/Practice_Telusko/18.py
09fd1764f0a745f0ee53343d99e9499adde34fde
[]
no_license
touhiduzzaman-tuhin/python-code-university-life
60a3d671b200a6f5222c6d176c13c5f20f013509
6d2e3d90d430faa5c83fe79e7fb1ebe516994762
refs/heads/master
2023-03-22T15:18:10.636203
2021-03-06T18:52:04
2021-03-06T18:52:04
332,467,190
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
li = [1, 2, 3, 4, 5] print(li[-1]) print(li[-2]) print(li[-3]) print(li[-4]) print(li[-5])
[ "touhiduzzamantuhin95@gmail.com" ]
touhiduzzamantuhin95@gmail.com
c38c36d6ffc05d42fe02639a242917e1d5d32199
fd54c0886b81b49a55c31eb8c5254ce83df78785
/Source_Code/madagascar/appussd/utilities/data_ucip/tests.py
67147cdba1ee753b31be73451e555d3f685e8c22
[]
no_license
santsy03/RADIX
7854896651833b1be6e3279be409db59a71c76e4
da8f2535692697b80a6dc543b9eb270fe3d5e4d3
refs/heads/master
2021-01-12T09:48:32.085432
2016-12-13T06:01:41
2016-12-13T06:01:41
76,260,115
0
0
null
2016-12-13T06:01:41
2016-12-12T13:46:31
null
UTF-8
Python
false
false
984
py
def test_bill_subscriber(): '''tests the bill_subscriber function''' from utilities.ucip.core import bill_subscriber resources = {} parameters = {} parameters['msisdn'] = '254735267974' parameters['transactionId'] = 1 parameters['externalData1'] = 'test' parameters['externalData2'] = 't...
[ "root@oc4686551628.ibm.com" ]
root@oc4686551628.ibm.com
2e58446c7b4fbaa9e6612720013bf890545919e6
a6bc66b6c1561fc465d7c321d2584c1c7d6bd792
/sqliteschema/_text_extractor.py
ec137f4f88eedc36c5d605868782f47158484aff
[ "MIT" ]
permissive
dirkakrid/sqliteschema
defffda63d5922ec29d4f04cbe3895dfdca8a3e2
70aae30bd6e1eba0e959476246a2a6907b8f4b2d
refs/heads/master
2021-01-22T21:27:54.759880
2017-02-26T13:24:58
2017-02-26T13:24:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,261
py
#!/usr/bin/env python # encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals from collections import OrderedDict import six import typepy from ._error import DataNotFoundError from ._interface import AbstractS...
[ "gogogo.vm@gmail.com" ]
gogogo.vm@gmail.com
4bd6b7505d8e2a7353534586bcc8c68933891220
c5b4d174ace61dd5914ca99fb0f2c710d0182324
/pypes/fmri/rest.py
3e34ff1e4c8139ca7c77288a6ee1befd637781ba
[ "Apache-2.0" ]
permissive
erramuzpe/pypes
636c6b31023747a571af90390fd85b2dd6806dea
3922d3162dc633b30961c036efdeb5d221ab1bfb
refs/heads/master
2020-12-24T06:43:15.063955
2017-04-05T19:51:05
2017-04-05T19:51:05
73,461,509
0
0
null
2016-11-11T08:54:15
2016-11-11T08:54:14
null
UTF-8
Python
false
false
2,291
py
# -*- coding: utf-8 -*- """ Nipype workflows to process resting-state functional MRI. """ from .grouptemplate import attach_spm_fmri_grouptemplate_wf from .clean import attach_fmri_cleanup_wf from .warp import attach_spm_warp_fmri_wf def _attach_rest_preprocessing(main_wf, registration_wf_name="spm_warp_fmri", do_gr...
[ "alexsavio@gmail.com" ]
alexsavio@gmail.com
7d48674929e67d0b4ff1c26a9fdc2fdda1b32b00
83cf642504313b6ef6527dda52158a6698c24efe
/scripts/addons/remote_debugger.py
50b2e8e90a16e7b474042e3fa8c4903af0829552
[]
no_license
PyrokinesisStudio/Fluid-Designer-Scripts
a4c40b871e8d27b0d76a8025c804d5a41d09128f
23f6fca7123df545f0c91bf4617f4de7d9c12e6b
refs/heads/master
2021-06-07T15:11:27.144473
2016-11-08T03:02:37
2016-11-08T03:02:37
113,630,627
1
0
null
2017-12-09T00:55:58
2017-12-09T00:55:58
null
UTF-8
Python
false
false
2,146
py
bl_info = { 'name' : 'Remote Debugger', 'author' : '', 'version' : (0, 2), 'blender' : (2, 75, 0), 'location' : '', 'category' : 'Development'} import bpy import os.path from bpy.types import AddonPreferences from bpy.props import StringProperty class ...
[ "dev.andrewpeel@gmail.com" ]
dev.andrewpeel@gmail.com
2dab992e4eb273021e8b75698a6f71b4a65cd9bb
66973fe6468e1b1f9cd7df765819ba0cb89f6ff8
/bin/gitstatus
cdb9115b3dd0b17ae88a8f7b6f75db6f5111949c
[ "MIT" ]
permissive
dsavransky/miscpy
90fee44f245c5eca89897e6536dae702f8836484
2aab0e3d089a678ee7fee18be47f2b16591c150a
refs/heads/main
2022-06-15T21:54:07.285900
2022-05-31T23:25:27
2022-05-31T23:25:27
39,569,507
3
1
null
null
null
null
UTF-8
Python
false
false
1,712
#!/usr/bin/env python import os import subprocess import glob import argparse if __name__ == "__main__": parser = argparse.ArgumentParser( description="Check status on all git repos, fetching (or pulling) from remotes." ) parser.add_argument( "--pull", action="store_true", ...
[ "dsavransky@gmail.com" ]
dsavransky@gmail.com
0b3988687c2fcec1c85d3999fa91dd1ed46daa05
d9a912d066b8a10f2611ed80af8e720522da7a51
/tf.py
54cb79555f0d631b74adee30da18cc24db3adfbc
[]
no_license
Sanny26/information_retrieval
871bba71d1e8d93329e24fc052d738d03241875f
4fb29c9da28fa1937f43c5b36fc470b0420f2ba0
refs/heads/master
2021-08-26T08:39:04.094595
2017-11-22T17:14:51
2017-11-22T17:14:51
111,576,998
0
0
null
null
null
null
UTF-8
Python
false
false
1,603
py
"""Main code for finding TF-IDF scores.""" from collections import Counter from math import log from utils import preprocess_file import os import numpy as np import pickle def get_tf_idf_weights(path): """Get the wieghts for TF.""" doc_no = 0 doc_names = dict() tf_list = dict() # how many term t o...
[ "chris.g14@iiits.in" ]
chris.g14@iiits.in
bac5086f28d452d811d08211fd9648f3fd55c034
41bea39563c74621924d79723f8ba84889958365
/nkamg_pcap/server/antimal/misc/trails/feeds/proxyspy.py
1ac62a432b900d21ea14ee85e56f7891e002c3b8
[ "MIT" ]
permissive
NKQiuKF/pcap_update
abee0c13cb583fddb89eb9e86a487279bdc18f1d
679e3f116367394a5f58eb4f95b5318e80fee331
refs/heads/master
2022-10-21T17:49:30.706480
2019-09-02T09:22:06
2019-09-02T09:22:06
205,816,421
1
0
null
2022-10-06T18:33:32
2019-09-02T08:55:55
JavaScript
UTF-8
Python
false
false
717
py
#!/usr/bin/env python """ Copyright (c) 2014-2016 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ from core.common import retrieve_content __url__ = "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/proxyspy_1d.ipset" __check__ = "proxyspy_1d" __info__ = "pr...
[ "453341288@qq.com" ]
453341288@qq.com
d00bc0b7e81a3e19920c70b70559eaeea7761f16
42e4cc242a2be105dae0288d02a08fbd95bb476a
/deepspeed/elasticity/constants.py
03cba725fa87d66ef5008c333c05243c149fe043
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
afiaka87/DeepSpeed
a49ca48a410190b631a78c392c25359ed4478577
83ff549aa365d4fee744074ac0a64f27571ecbc8
refs/heads/main
2023-04-14T16:22:37.595209
2021-04-12T09:20:06
2021-04-12T09:20:06
356,466,212
2
0
MIT
2021-04-12T09:20:07
2021-04-10T04:09:31
Python
UTF-8
Python
false
false
2,262
py
""" Copyright 2020 The Microsoft DeepSpeed Team """ ######################################### # Elasticity ######################################### ''' Elasticity Utility in DeepSpeed can be used to create highly elastic jobs compatible with a large number of GPUs. For elastic jobs, DeepSpeed will provide a batch siz...
[ "noreply@github.com" ]
afiaka87.noreply@github.com
f8114ec28447eee38a12cf5ac1de1c2782d617a8
b34463870a1754e5f60029a77621c72f32b29a64
/08_cpp-overload-eigen/test.py
1d53e9920cbff02aaa4110da2d6b1f686d5c2d89
[ "MIT" ]
permissive
strint/pybind11_examples
63d59c064a0e9a6d4ddd64413c3955df53a84969
f74b3cda2b9d39728923b9b155920e828b7a29f7
refs/heads/master
2022-12-02T12:56:52.824416
2020-08-13T07:41:10
2020-08-13T07:41:10
285,498,754
0
0
MIT
2020-08-06T07:04:18
2020-08-06T07:04:17
null
UTF-8
Python
false
false
210
py
import numpy as np import example A = np.array([[1,2,1], [2,1,0], [-1,1,2]]) B = 10 print(example.mul(A.astype(np.int ),int (B))) print(example.mul(A.astype(np.float),float(B)))
[ "tom@geus.me" ]
tom@geus.me
315603494a810e20704e702766b8df35b57a18c2
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/ACL_PyTorch/contrib/nlp/Rosetta_Resnet34_vd/Rosetta_Resnet34_vd_postprocess.py
6e17c6800c641359f12e3e433a4c33587569cab5
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
2,248
py
# Copyright 2022 Huawei Technologies Co., Ltd # # 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 ...
[ "noreply@gitee.com" ]
noreply@gitee.com
115cd19c16bf70d8b6fb245210f8ee067431cb67
adb6755eb1a3d91375e6b4e9b8c1afd07f85313b
/venv/Lib/site-packages/pandas/tests/tseries/offsets/test_offsets_properties.py
afb0549a23c3d833a3cad9b8f36e3d974929567b
[]
no_license
Atwinenickson/Socialmediaclassifier-
af54b559569e80004c441fc90dc44b0ee945555d
05c5abbaba8694d9bf95d745ffca75c17ac69621
refs/heads/master
2022-12-15T01:33:18.073259
2019-06-07T15:38:18
2019-06-07T15:38:18
190,616,071
1
0
null
2022-12-08T05:13:29
2019-06-06T16:41:17
Python
UTF-8
Python
false
false
3,941
py
# -*- coding: utf-8 -*- """ Behavioral based tests for offsets and date_range. This file is adapted from https://github.com/pandas-dev/pandas/pull/18761 - which was more ambitious but less idiomatic in its use of Hypothesis. You may wish to consult the previous version for inspiration on further tests, or when trying...
[ "atwiinenicxon@gmail.com" ]
atwiinenicxon@gmail.com
32dbcf217e368ae2de5dac068c7d6e37cadb9bce
6536946f7997b3eccda846505f1e30edd3af99d5
/mycroft_jarbas_utils/hivemind/clients/standalone_voice_client.py
b5c077751ba1fd4724ddc518a4974b33e3151e67
[]
no_license
JarbasAl/ZZZ_mycroft_jarbas_utils
2a6e4d032675fc340c3ccec5eabcf94bacf06460
f05f99a19e88aa7d7d778e30058e759fedacbb25
refs/heads/master
2022-03-24T19:37:56.187643
2019-12-13T02:57:42
2019-12-13T02:57:42
122,380,983
0
1
null
null
null
null
UTF-8
Python
false
false
7,114
py
from twisted.internet import reactor, ssl from autobahn.twisted.websocket import WebSocketClientFactory, \ WebSocketClientProtocol from twisted.internet.protocol import ReconnectingClientFactory from mycroft_jarbas_utils.hivemind.clients.speech.listener import RecognizerLoop from threading import Thread conf = {...
[ "jarbasai@mailfence.com" ]
jarbasai@mailfence.com
61c7e594c9592fed0407aa4a923ed6db00bd2fae
0e477667e6ce65e0799a5605b8f7f9cd778ff81f
/P2/dino_game.py
2da57b2b18949ee9d6558768c7a7d094a4753f69
[]
no_license
rohitaswchoudhary/py_projects
2e79eb88e8b2d504e9f2c86e5cdedf6ba1470cb9
adde531b1311a1f4e4dd1d5bc57f5f8b743e4f7f
refs/heads/main
2023-04-16T08:40:05.614405
2021-04-29T07:43:21
2021-04-29T07:43:21
337,432,934
2
0
null
null
null
null
UTF-8
Python
false
false
791
py
import pyautogui import time from PIL import Image, ImageGrab def hit(key): pyautogui.keyDown(key) def is_collide(data): for i in range(300,415): for j in range(410,560): if data[i,j]<40: hit("down") return True for i in range(300,415): for j ...
[ "you@example.com" ]
you@example.com
38a04f01a5160d296ff561122a00bddcde966b66
5240574e3e89cfd8393141e08479aac6f314acc8
/L2/helloCont.sh
bfb2b4bdad7774191024f82f87f35458d3afc6a6
[]
no_license
linnil1/2018_LAB_Tutorial
1d1fdce3c37e1881715de0c92ea7ad7a66e49e2f
2d7d9418f29915c828e4f2561709bd731dd0cab8
refs/heads/master
2020-03-23T02:08:03.535006
2018-07-22T06:21:04
2018-07-22T06:21:04
140,957,748
4
0
null
null
null
null
UTF-8
Python
false
false
268
sh
#!/usr/bin/python3 import time import sys num = 0 while True: if num % 3: print("hello -- " + str(num)) sys.stdout.flush() else: print("hello -- " + str(num), file=sys.stderr) sys.stderr.flush() num += 1 time.sleep(0.1)
[ "linnil1.886@gmail.com" ]
linnil1.886@gmail.com
6f6b240798e75a5c8450064de2832f08eb972382
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/reln/releasereftask.py
50743f3c071a1e3b7e6d5798bcaf007822e36006
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
18,748
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
f4283609b0b15e9b8ea4c1d8aee1778707b75c26
34599a66861f7d95a5740eeb5329ea77014e18d4
/problems_solving/project-euler/pro043_sum_pandigital.py
311f0e0f4f790452348cb363b5436bcaf2be503e
[]
no_license
laolee010126/algorithm-with-python
f0f5f1bc3cbe374ccbb59e10ac639674c44ae743
89ff0c47a6d8b0cd5b31a25bb3981b8e90971f19
refs/heads/master
2022-04-01T17:38:36.199309
2020-01-14T01:54:22
2020-01-14T01:54:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
def get_digit(n, start, length): n = str(n) return n[start-1:start-1+length] def sum_pandigial(): LENGTH = 3 used = [False] * 10 starts = [2, 3, 4, 5, 6, 7, 8] dividers = [2, 3, 5, 7, 11, 13, 17] pandigitals = [] ans = [] def generate_pandigitals(tmp, used, left): nonlocal...
[ "shoark7@gmail.com" ]
shoark7@gmail.com
51f9546b94c3bcb4cd440a1de34e1b7e0459997f
4631798b64f2118b7d8e64483a14d7485163358b
/8.6.1_making_pizzas.py
03606d0835e6cdc7d73d325e5776c21e070d9050
[]
no_license
royrowe/python
288680aba27b8c2d46368250b45fb1672427fe6a
dc7cebd56aa1bee7b2afd91e3a2a4b03f1775ba5
refs/heads/master
2020-04-15T20:05:02.587794
2019-01-10T02:53:08
2019-01-10T02:53:08
164,978,105
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
#!/usr/bin/env python ''' @File :8.6.1_making_pizzas.py @Copyright :luoming @Date : @Desc : ''' import pizzaim pizzaim.make_pizza(16, 'pepperoni') pizzaim.make_pizza(12, 'mushrooms', 'green pepers','extra cheese')
[ "your email" ]
your email
4a15925f7f82e3ae829257f3fb188b69d1c18d48
3df98e7d4551220e3b09d122e8d6897ca572d9f3
/basic programs/10.py
f86b5bacd38650a07e43778f169c04f12db69575
[]
no_license
Madhav2108/Python-
2e4bf778348786d8dd082e3e1cdd7acb41d9f559
fdfdf944a96d83352979bc23c3b65aac7bd41d26
refs/heads/master
2023-03-30T21:37:26.326980
2021-03-31T17:40:49
2021-03-31T17:40:49
273,668,175
1
0
null
null
null
null
UTF-8
Python
false
false
181
py
U=int(input("Enter the Units")) if U<100: print("Charges are Rs.1perday") elif U<200: print("Charges are Rs.2perday") else: print("Charges are Rs.4perday")
[ "noreply@github.com" ]
Madhav2108.noreply@github.com
f5f512c9f8f86db91f8603d6019f03c368f21a93
60969b1074b333554d519eb2bffac9651ef7a6de
/build/my_stage/catkin_generated/pkg.develspace.context.pc.py
d10e621a6b583859a842cd3ad6656c58b3fe8641
[]
no_license
p870668723/rosWS
123823611459227ea6f2ade1c2dd88425b596a44
ba6c6dbecf5e755b65fa999116bc26a5abe71020
refs/heads/master
2021-01-11T01:46:05.522396
2017-01-21T07:37:17
2017-01-21T07:37:17
70,671,021
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "my_stage" PROJECT_SPACE_DIR = "/home/...
[ "=" ]
=
a94799987815dbae47be87fd753fc0b8e50c3e3e
1d5b2b72d322dd154a8efb547290ad5abb1fd098
/work_dir/autoencoder_test/prepare_nn.py
f10b3551f9bc5475708ae0a016220f1b6df6eaa6
[]
no_license
hxzwd/drafts
6b593b50cae309c02495a8aff28719f7b636962d
478f4a4c399ab0c7c3f8f6e22d13131488716e4d
refs/heads/master
2020-04-28T01:42:58.998610
2019-05-05T17:49:48
2019-05-05T17:49:48
174,868,171
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
from keras.layers import Input, Dense, Flatten, Reshape from keras.models import Model def create_dense_autoencoder(): encoding_dim = 49 input_img = Input(shape = (28, 28, 1)) flat_img = Flatten()(input_img) encoded = Dense(encoding_dim, activation = "relu")(flat_img) input_encoded = Input(shape = (encodi...
[ "=" ]
=
5e28913dc9429bda9278535096ad84a6da40a243
315006dde839c66dab61757f5073466ef63883b6
/imagepy/core/manager/languagemanager.py
1b9b348f99ed51e5ab4b8044a585b22061c156df
[ "BSD-2-Clause" ]
permissive
clickinfinite/imagepy
0777b819e95840a6e41dafc623643e22dfc44adf
5e6425a08ce3a0d9c2ab1b6e749b02cb9362e7f4
refs/heads/master
2021-07-25T20:29:26.767885
2017-11-07T16:33:00
2017-11-07T16:33:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,709
py
import os from ... import root_dir from glob import glob class LanguageManager: plgs = [] langs = {} cur = None filename = os.path.join(root_dir,'data/language/*.dic') @classmethod def set(cls, cur): cls.cur = None if cur=='English' else cls.langs[cur] curfile = open(os.path.jo...
[ "imagepy@sina.com" ]
imagepy@sina.com
973212974c4e2f21d28c3c8e897643227ad9a0af
3a527d62947ad6d01ebfc8932958636270bc055a
/contact/validations.py
4b8254ea28a6c080b75e8528388aa8b575f5bce0
[]
no_license
Iamprakashkhatri/contactcrud
5bc9209dc104914608c1c9f86604c7bfadbe0fa6
ffd2d18cccde5c7dd9c2dd67382564847c4f6eff
refs/heads/master
2020-09-03T20:03:00.759839
2019-11-06T05:08:32
2019-11-06T05:08:32
219,555,483
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ def validate_domainonly_email(value): if not "your@domain.com" in value: raise ValidationError(_("Sorry,the email submitted is invalid")) return value Blacklisted=['abc','new'] def validate_black...
[ "prakash" ]
prakash
4d767e75c1a3e17efffcd6541128012239313ac2
108fc2873b5c07e4ad9515adc16bc8e9fdf7d021
/smorest_sfs/utils/sqla.py
e650ad9a22a4a200e49a5264a8c8d62e89b89d0c
[ "Apache-2.0" ]
permissive
ssfdust/yt-media
4ac5eba6a25830268f42b951e8307bb57e7baeeb
36c3d1977df5851d8df54846f0bc84be2b86e962
refs/heads/master
2021-08-08T09:40:31.241228
2020-05-11T03:11:20
2020-05-11T03:11:20
175,938,603
2
1
null
null
null
null
UTF-8
Python
false
false
1,269
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import namedtuple from typing import List, Optional from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Table, UniqueConstraint, inspect from smorest_sfs.extensions.sqla import Model RelateTableArgs = namedtuple( "RelateTableArgs", ["table...
[ "ssfdust@gmail.com" ]
ssfdust@gmail.com
c08c2580a68df779f963d6ec34f0eaa6d259e563
e57d7785276053332c633b57f6925c90ad660580
/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client_async.py
b2ec715a6a65a09d86a2cdbdef21bcfb94147d91
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
adriananeci/azure-sdk-for-python
0d560308497616a563b6afecbb494a88535da4c5
b2bdfe659210998d6d479e73b133b6c51eb2c009
refs/heads/main
2023-08-18T11:12:21.271042
2021-09-10T18:48:44
2021-09-10T18:48:44
405,684,423
1
0
MIT
2021-09-12T15:51:51
2021-09-12T15:51:50
null
UTF-8
Python
false
false
17,050
py
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import logg...
[ "noreply@github.com" ]
adriananeci.noreply@github.com
0623a8380a36e5f62792222f8e00a5d1dfb009bf
1e89a90ac62db38a2a565ec11ac005e6a394c152
/corehq/apps/reports/standard/cases/basic.py
5d4fef720c29eae647a56d9008f1a9cbff334ebd
[]
no_license
gmimano/commcaretest
ec762f5632193a29ccb2f026152e7c89880f61ed
9fefc664c99d2fa2ab602d626aa395dd3c960a6a
refs/heads/master
2016-09-05T20:48:12.442519
2014-02-16T21:20:40
2014-02-16T21:20:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,772
py
import logging from couchdbkit import RequestFailed from django.utils.translation import ugettext_noop, ugettext from django.utils.translation import ugettext as _ import simplejson from corehq.apps.api.es import CaseES from corehq.apps.groups.models import Group from corehq.apps.reports.api import ReportDataSource fro...
[ "dmyung@dimagi.com" ]
dmyung@dimagi.com
f8311679b31b7b468a2b34ecffa528474554e3af
e3e5efe47f51f71b28fa6d7d5b2311f25d64b580
/analytics/migrations/0004_auto_20191002_1350.py
189d799a1f81daee8ef86dcdbb73ce505ba25707
[ "BSD-3-Clause" ]
permissive
boxed/analytics
be9169584459434dd2b0099d8ff2ff0755086a95
b1237de9d13ee3509d524d06c561342071090331
refs/heads/master
2023-04-15T01:38:03.702986
2023-03-22T05:38:22
2023-03-22T05:38:22
210,958,980
1
0
BSD-3-Clause
2023-03-22T05:38:24
2019-09-25T23:30:59
Python
UTF-8
Python
false
false
529
py
# Generated by Django 2.2.5 on 2019-10-02 13:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('analytics', '0003_auto_20190929_1620'), ] operations = [ migrations.AlterField( model_name='referrers', name='page_u...
[ "boxed@killingar.net" ]
boxed@killingar.net
3752bd2b4cb84fb188177ba0d85a16a73e44cd8c
8ea6b3429ec95420029a188e898cc63d6acac871
/fnb/views.py
44d1330b9653e6cb948596d5c33847e862a19beb
[]
no_license
chidimo/fnb
131cbbcb44778fae607929e55515907bd15125ba
1ecbed6ce55f7ce368f8909975c2ba28e908d1c3
refs/heads/master
2023-04-10T03:37:40.886743
2021-04-23T18:04:26
2021-04-23T18:04:26
359,479,691
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
from django.shortcuts import render from django.contrib.auth.decorators import login_required # @login_required def home(request): template = "home.html" context = {} return render(request, template, context)
[ "orjichidi95@gmail.com" ]
orjichidi95@gmail.com
6c2bbef21302fc2cebc465ed246a30dbf26672cb
a66460a46611483dfbdc94c7996893f427e60d97
/ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_datastore_cluster.py
4e635ef511387fe7f9fee40439d8fbc1498d0585
[ "MIT", "GPL-3.0-or-later" ]
permissive
otus-devops-2019-02/yyashkin_infra
06b57807dde26f94f501828c07503d6bf1d70816
0cd0c003884155ac922e3e301305ac202de7028c
refs/heads/master
2020-04-29T02:42:22.056724
2019-05-15T16:24:35
2019-05-15T16:24:35
175,780,718
0
0
MIT
2019-05-15T16:24:36
2019-03-15T08:37:35
HCL
UTF-8
Python
false
false
5,606
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2018, Ansible Project # Copyright (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type...
[ "theyashkins@gmail.com" ]
theyashkins@gmail.com
e40ab14da91a94eef3ca5f0162f555fd7f3063e2
1f689e448d8b510ea6575590cb6920048b4e9aea
/leetcode/237_delete_node_in_a_linked_list.py
18f860fadd7f55ef02c8c54a766f4dd7909583d7
[]
no_license
lijenpan/python
52c6061ff90c611efd039b1858339edbefdb5ad0
7f67045a83bd2592ccc399420194094fb78404b8
refs/heads/master
2020-05-30T10:53:15.634090
2016-12-02T20:50:28
2016-12-02T20:50:28
7,646,477
1
0
null
null
null
null
UTF-8
Python
false
false
706
py
""" Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3, the linked list should become 1 -> 2 -> 4 after calling your function. ============================== I was confus...
[ "noreply@github.com" ]
lijenpan.noreply@github.com
6b1995c24faa13aa921aa46b8fc645f211e7c15b
350796fa13c98af7a5a2e8873e5cb74e4f29043c
/redis_test/__init__.py
eb36980e51a8b42aa8c379c220023807fec5d382
[]
no_license
dajun928/Python36
3babdb47124cace844bf8d7b8054c1c6181a0a9f
8974fc9c9c808e10fef02ed4c061bfbac5a0961f
refs/heads/master
2022-12-12T17:47:47.724277
2021-01-10T03:29:45
2021-01-10T03:29:45
174,575,956
0
0
null
2021-06-01T23:57:50
2019-03-08T16:59:19
HTML
UTF-8
Python
false
false
174
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ @version : @file : __init__.py.py @time : 2019/07/13 23:14:22 @func : """ import platform print(platform.python_version())
[ "1663177102@qq.com" ]
1663177102@qq.com
36d31948ef1c79f995c44675dea5764a3d0967f1
7684ffabb75ed2d6396d3a720c56ed0ee09ee77d
/crack_detection/gcloud/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/dlp/v2/dlp_v2_client.py
fe9d6a7d787f294c78f57e6a585b33e7fa8db543
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/CrackPropAPI
da7cc7a1ef046d20992423f7c7a148e390bb70e7
24c0cfd1f258eeaa7e5e953253b5d778f2fbecb5
refs/heads/master
2022-11-09T07:15:41.142453
2020-07-02T14:34:15
2020-07-02T14:34:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
130,297
py
"""Generated client library for dlp version v2.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.dlp.v2 import dlp_v2_messages as messages class DlpV2(base_api.BaseApiClient): """Generated client library for service dl...
[ "yopi1838@gmail.com" ]
yopi1838@gmail.com
1b747ea8a43a236bb90f881c0f94541e88f10226
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/time/great_company/person/think_thing/large_person.py
404255285e129d19a24dfea618205b314abd8f64
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
#! /usr/bin/env python def different_point_and_important_person(str_arg): own_life(str_arg) print('small_government') def own_life(str_arg): print(str_arg) if __name__ == '__main__': different_point_and_important_person('tell_high_fact_about_next_government')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
773f91abb27727fe00fca57a9a0057b794f7b0a2
26f6313772161851b3b28b32a4f8d255499b3974
/Python/HowManyApplesCanYouPutintotheBasket.py
b7e35d3681a27ba6f75f3b9c535237f76e621a1e
[]
no_license
here0009/LeetCode
693e634a3096d929e5c842c5c5b989fa388e0fcd
f96a2273c6831a8035e1adacfa452f73c599ae16
refs/heads/master
2023-06-30T19:07:23.645941
2021-07-31T03:38:51
2021-07-31T03:38:51
266,287,834
1
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
""" You have some apples, where arr[i] is the weight of the i-th apple. You also have a basket that can carry up to 5000 units of weight. Return the maximum number of apples you can put in the basket. Example 1: Input: arr = [100,200,150,1000] Output: 4 Explanation: All 4 apples can be carried by the basket sinc...
[ "here0009@163.com" ]
here0009@163.com
08cd8c874f133dbc2800ce6ab8f767de9c81419b
e22e03d9761f5c6d581b5af2e77343e8ee4b201d
/edk2/BaseTools/Source/Python/CommonDataClass/DataClass.py
32196c5e672752fcf319d543203b6ceeae23fc0b
[ "OpenSSL", "BSD-2-Clause" ]
permissive
SamuelTulach/SecureFakePkg
759975fcc84d62f05ac577da48353752e5334878
f34080a6c0efb6ca3dd755365778d0bcdca6b991
refs/heads/main
2023-08-17T07:51:22.175924
2021-10-01T10:46:14
2021-10-01T10:46:14
410,938,306
94
14
null
null
null
null
UTF-8
Python
false
false
16,686
py
## @file # This file is used to define class for data structure used in ECC # # Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. ...
[ "samtulach@gmail.com" ]
samtulach@gmail.com
87ba885929017189ab742b8e8999ce8d820bb5f2
987ead1eb0877b9bdea16f3ee50bf19d5fe204bd
/matplotlib/fig_axes_customize_simple.py
86517664a5dd13b23da4617281156274fa684c85
[]
no_license
ZHX1996/project
da62151e32254848a02292a2f9bdb1db17850d67
5a57be55cf173dde7e5a135a9cf1cfbc9a63a158
refs/heads/master
2021-07-15T11:36:02.412231
2020-05-15T08:51:34
2020-05-15T08:51:34
94,512,901
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
import numpy as np import matplotlib.pyplot as plt fig = plt.figure() rect = fig.patch rect.set_facecolor('lightgoldenrodyellow') ax1 = fig.add_axes([0.1, 0.3, 0.4, 0.4]) rect = ax1.patch rect.set_facecolor('lightslategray') for label in ax1.xaxis.get_ticklabels(): label.set_color('red') label.set_rotation(4...
[ "1365370292@qq.com" ]
1365370292@qq.com
e6979701b78027a1810a73e1e1afa3b9d8e5a65b
d6a209a45bb14846e47b07a77641de26e073e9fb
/drill14.py
a5fe48baad84fb34879066dbc046251dce45ee47
[]
no_license
fan-bingbing/pyexcercise
ca711212af0f5df07a57d253190f63cf4a0dd887
ddb32bfae1891cda9f0ef0effd43a95a95e1d043
refs/heads/master
2021-03-13T19:49:24.042399
2020-03-17T04:24:21
2020-03-17T04:24:21
246,705,823
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
from sys import argv script, user_name = argv # don't forget how to run this kind of file, pass argv in command line. prompt = '>' # a handy way of changing prompt icon print(f"Hi {user_name}, I'm the {script} script.") print("I'd like to ask you a few questions.") print(f"Do you like me {user_name}?") likes = input(...
[ "fanyu1980@hotmail.com" ]
fanyu1980@hotmail.com
c2bb5f0ed30a64641673adc9923cb1f29d84b06d
c30906c50ea0fbcccbf080b89eca84edb9f04673
/DaVinci_scripts/MC/twoBody/KK/job_2016_down.py
766fe4d29a71ab572fa7135bf3f63551a126e3ce
[]
no_license
hpullen/DPhil_B02DKstar_analysis
543661c4c2e978fb7f60a1d81f27bc660710994d
651b3f333d3959e78512fc294afa334e3ea26fd9
refs/heads/master
2023-07-15T17:38:53.009366
2021-08-25T19:40:42
2021-08-25T19:40:42
107,555,335
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
j = Job(name='KK_2016_down', backend=Dirac(), application=DaVinci(version = "v41r3"), splitter=SplitByFiles(filesPerJob = 10, maxFiles = -1) ) j.application.optsfile = '2016_KK.py' BK = BKQuery(path=('//MC/2016/Beam6500GeV-2016-MagDown-Nu1.6-25ns-Pythia8/Sim09b/' 'Tr...
[ "hannah.pullen@physics.ox.ac.uk" ]
hannah.pullen@physics.ox.ac.uk
8a0ce920566673a8897bd95bdffab20b9ca62d2e
5496b9682dec06925f3572e64d7f1eb48d78ebe1
/src/visualization/FragmentationKaandorpPartial/FragmentationKaandorpPartial_timeseries.py
e0c5e0fe4cbbd37de19ad52a5dd362f293e1991e
[]
no_license
VictorOnink/Lagrangian-Transport-Scenarios
64bec8b992e2909a05b0258524dbae25f967ea29
586bcecc42d6a7f4f299507da8f0cb29c8d71a2e
refs/heads/master
2023-04-14T12:22:29.309172
2022-07-11T18:46:38
2022-07-11T18:46:38
297,894,637
1
0
null
null
null
null
UTF-8
Python
false
false
4,986
py
import settings import utils import visualization.visualization_utils as vUtils import matplotlib.pyplot as plt import string from datetime import datetime, timedelta class FragmentationKaandorpPartial_timeseries: def __init__(self, scenario, figure_direc, shore_time, lambda_frag, rho, simulation_length, weight, ...
[ "31734765+VictorOnink@users.noreply.github.com" ]
31734765+VictorOnink@users.noreply.github.com
88bda27ed804dfe8b840c9d8fa91efb4676af7f7
bd172241a0c0f2817ecd348593f3b4076f233e48
/train_lorenz_gan.py
3d5c2af1378cce7e00c3f20405ceeabbe1131ee4
[]
no_license
josteinstraume/lorenz_gan
2ccb1f6c5413fc00e4fdb5ceaf278e46eee122bc
4b7495c00e28574d4cf5faeee0d93d7f0582a4b1
refs/heads/master
2022-04-01T20:32:25.970642
2020-02-12T05:16:30
2020-02-12T05:16:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,158
py
import tensorflow as tf tf.compat.v1.disable_eager_execution() from lorenz_gan.lorenz import run_lorenz96_truth, process_lorenz_data, save_lorenz_output from lorenz_gan.gan import generator_conv, generator_dense, discriminator_conv, discriminator_dense from lorenz_gan.gan import predict_stochastic, generator_dense_stoc...
[ "djgagne@ou.edu" ]
djgagne@ou.edu
e8c85a198d85379bb175f16c9e3150e47000350b
f03e771eb4c1f300ae819179090efc388bcc6d32
/src/pymine/tile/Tile.py
3547ab54aab3f2536690989bfb2649112dcd016b
[]
no_license
lacthan28/PyMine
d8d2365b0aabefcb056754260f67095dbcbe62ff
e7d4778f01181d45551c02fa0cef151327fa240a
refs/heads/master
2021-01-21T19:50:48.417635
2017-06-30T05:38:46
2017-06-30T05:38:46
92,161,042
0
0
null
null
null
null
UTF-8
Python
false
false
2,618
py
# -*- coding: utf-8 -*- import inspect from abc import * from pymine.event.Timings import Timings from pymine.level.Level import Level from pymine.level.Position import Position from pymine.nbt.tag.CompoundTag import CompoundTag from spl.stubs.Core import isset, microtime class Tile(metaclass = ABCMeta, Position): ...
[ "lacthan28@gmail.com" ]
lacthan28@gmail.com