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
1f39128b5d5eeb0953bc7d7049588612432da170
88726f0d487a0d9f1c568722f458d5cc8ad40566
/ABC165/A.py
d26d50094d05b137c34a1e9a6b882ca1f658de32
[]
no_license
thortoyo/study
60e3cccbf7b6587044ca3ee5c4cdb07f038a5800
7c20f7208703acf81125aca49de580982391ecfe
refs/heads/master
2023-06-21T21:56:47.141439
2023-06-20T02:38:47
2023-06-20T02:38:47
196,919,933
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
K=int(input()) A,B=map(int,input().split()) ok = 0 for i in range(A,B+1): if ( i%K==0 ): ok = 1 if(ok==1): print("OK") else: print("NG")
[ "thor.toyo@gmail.com" ]
thor.toyo@gmail.com
b1f562793576d8d7c4626b58d3c72be7fcc47f59
419873dd3b7412f704b1a7907b64a60b44cedf39
/python/树/1110. 删点成林.py
d549213d451cd2cfd6321e8b68abb9a481f33a1f
[]
no_license
Weless/leetcode
0585c5bfa260713f44dabc51fa58ebf8a10e7814
0566622daa5849f7deb0cfdc6de2282fb3127f4c
refs/heads/master
2021-11-13T07:59:20.299920
2021-10-25T02:09:53
2021-10-25T02:09:53
203,720,668
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
from typing import List class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def delNodes(self, root: TreeNode, to_delete: List[int]) -> List[TreeNode]: s = set(to_delete) res = [] def dfs(root): if n...
[ "409766394@qq.com" ]
409766394@qq.com
e918e2d5e0c0d843ec45480a68bc3ecaa18253b6
84a1f9d626828b6ecaee4ef037081f4d8750a990
/编程/2月/2.9/sock_server_ssh.py
8fe2d10f8d5a63ec910fa41af39479024b356c67
[]
no_license
dujiaojingyu/Personal-programming-exercises
5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04
72a432c22b52cae3749e2c18cc4244bd5e831f64
refs/heads/master
2020-03-25T17:36:40.734446
2018-10-01T01:47:36
2018-10-01T01:47:36
143,986,099
1
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
__author__ = "Narwhale" import os import socket server = socket.socket() server.bind(('localhost',6565)) server.listen() while True: conn,addr = server.accept() print('新地址:',addr) while True: print('等待新命令。。。!') data = conn.recv(1024) if not data: print('客户端已经断开。。') ...
[ "34296128+dujiaojingyu@users.noreply.github.com" ]
34296128+dujiaojingyu@users.noreply.github.com
8f45dd1c2872b9ccd96287434355ce67faf81a7a
6ec459388f44b2b1c4fde45b08f2f8372ba82b78
/wordfugue/blog/views.py
26c9e02bf8e8e58b927f4714303305b5aef8658f
[]
no_license
phildini/wordfugue
a326a032fdab4832b61cd7bb6ea29e254935e0cc
77e04eebf193670ff2963705d38bcf302c58043a
refs/heads/master
2022-12-11T00:19:40.280948
2019-03-03T22:28:57
2019-03-03T22:28:57
49,110,902
0
0
null
2019-10-18T15:40:10
2016-01-06T03:54:43
Python
UTF-8
Python
false
false
1,322
py
from braces.views import LoginRequiredMixin, StaffuserRequiredMixin from django.shortcuts import get_object_or_404 from django.views.generic import DetailView, ListView from . import models class BlogPostView(DetailView): model = models.BlogPost template_name = 'blog/blog_post_page.html' def get_querys...
[ "pjj@philipjohnjames.com" ]
pjj@philipjohnjames.com
7093f85e8b72869925a23b1483b2b0e045c5d25e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03937/s470044267.py
bafbbf62da77ded61c8e4718c2e6a2a6902ee6ee
[]
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
629
py
h,w=map(int,input().split()) a = [list(input()) for _ in range(h)] a[0][0] = "." q=[(0,0)] dy=[0,1] dx=[1,0] while len(q)>0: y,x=q.pop(0) if y == h-1 and x == w-1: break for i in range(2): if not (0<=dy[i]+y<h and 0<=dx[i]+x<w): continue if a[dy[i]+y][dx[i]+x] != "#": ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ac2a91133f9a521b695513c575289eb412eaed9f
6db1e1f0debb79aa9a6adb0236e3b41cda39ce99
/l10n_be_coda_batch/__openerp__.py
9713a3e18ceeea9087de43b9b424f1fe829108d2
[]
no_license
lubonbvba/noviat-apps
b7450222ae4bec325d4241a7ca2199e50bc75cb6
d9ad1628a1d25550c7957150079b50728d5b1a0d
refs/heads/8.0
2021-01-18T11:34:54.911486
2017-07-08T15:20:30
2017-07-08T15:20:30
56,927,140
0
0
null
2017-07-08T15:20:31
2016-04-23T15:44:45
Python
UTF-8
Python
false
false
633
py
# -*- coding: utf-8 -*- # Copyright 2009-2017 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Belgium - CODA statements batch import', 'version': '8.0.2.0.0', 'license': 'AGPL-3', 'author': 'Noviat', 'website': 'http://www.noviat.com', 'category': 'Accounting ...
[ "luc.demeyer@noviat.com" ]
luc.demeyer@noviat.com
4c68c1860a1956121d3faad51db60556cfc20f8c
7f57c1bc457f693d1e2b482bd92180b5f619d3bb
/783-minimum-distance-between-bst-nodes.py
748a9b4dd876b84a44c77a0d4ba077e3db6b7763
[]
no_license
mtianyan/LeetcodePython
17694eed256886a075208264904ac1533df71d03
6880de6f92d8b6bf9223656f356831fb2b475202
refs/heads/master
2023-07-11T19:46:54.388781
2023-07-06T15:59:34
2023-07-06T15:59:34
331,367,286
1
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
class Solution(object): """ 将树中所有节点的值写入数组,之后将数组排序。依次计算相邻数之间的差值,找出其中最小的值。 """ def minDiffInBST(self, root): vals = [] def dfs(node): if node: vals.append(node.val) dfs(node.left) dfs(node.right) dfs(root) vals.so...
[ "1147727180@qq.com" ]
1147727180@qq.com
edc35e97cd67a22398560c197cfce372c1d72a0b
e97ba6702214d90db5a4be88b06298342d0e3bab
/.workflow/unseenbio-oesd-frontend.py
8a4b78ac6d902beaecf284db900d75dbcbc7539b
[]
no_license
kvikshaug/dotfiles
9408d0777796669a8fa9aae4211bf07b943b26eb
ae1e1b70a25cb666da438a189d2e75014a802e08
refs/heads/master
2023-04-30T02:48:30.196673
2023-04-13T11:13:04
2023-04-13T11:13:04
352,044
1
0
null
null
null
null
UTF-8
Python
false
false
457
py
from _models import Command, Project project = Project("code/unseen-bio/oesd-frontend", [ Command("serve", ["npx vue-cli-service serve"]), Command("lint", ["npx vue-cli-service lint --no-fix --max-warnings 0"]), Command("format", ["npx vue-cli-service lint"]), Command("test", ["npx vue-cli-service test...
[ "ali@kvikshaug.no" ]
ali@kvikshaug.no
b80987c6c1f2656b621f173755883afd7fe0c379
9c5ed2298394edfe5c4b7639bf987077f78ad36d
/ch-3-django-myproject/email_messages/forms.py
7cd7044944e3cc80ddd35a63f61badf54263c689
[]
no_license
yoyonel/web-development-with-django-cookbook
f6006369f51682bf0fb1d0a84721836678f2fb21
2cf21ece0603318dfb7f66430377dc32abdb0dc5
refs/heads/master
2021-01-20T09:55:51.432462
2016-07-02T07:52:26
2016-07-02T07:52:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
# -*- coding: UTF-8 -*- from __future__ import unicode_literals from django import forms from django.utils.translation import ugettext, ugettext_lazy as _ from django.core.mail import send_mail from django.contrib.auth.models import User class MessageForm(forms.Form): recipient = forms.ModelChoiceField( ...
[ "guinslym@users.noreply.github.com" ]
guinslym@users.noreply.github.com
98cda563c30047f13ef8b0faa92945a1122a44cb
8a2f6867eca5d40d1770b58ab73e8a9f01a9ddc5
/problemas uri/Problema2167.py
51a3d22b9a2704bd6ba31bc9c2bfd2b9ab37bdeb
[]
no_license
PauloVilarinho/algoritmos
822eaae631de1660df553d87d2f168c2646efa60
a3cfed6081bbf5ae0b17766a027abcd558b9e9d0
refs/heads/master
2020-03-13T18:31:50.980839
2018-06-21T21:17:28
2018-06-21T21:17:28
131,236,984
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
quantidade = int(input()) entrada = input().split() index = 0 for i in range(1,len(entrada)) : if int(entrada[i]) < int(entrada[i-1]) : index = i + 1 break print(index)
[ "paulotarsobranco@gmail.com" ]
paulotarsobranco@gmail.com
689cc34246fe1d813572102eca3617c5c6169a59
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2/gotche/b.py
bc0b383f0164abbf2641ab1b9cc7c0fe96740f0a
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,006
py
import sys class Prob1(object): def __init__(self, s): # reduce all strings l = list(reversed(list(s))) if '-' in l: self.s = l[l.index('-'):] else: self.s = [] def toggle(self): if self.mark == '+': self.mark = '-' else: ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
13b750654b4352ddc1edafa9e6cb4ae3694d7fef
451d95ac140ac8a2db82f0130a197da3f47451a4
/home/serializers.py
e84b15ff948031193588ee1afd199f77d1c4b18a
[]
no_license
sgmagar/drf_test
ee74ea33d752b3b48482fca9ea45c3c8f443dfe2
278ecdcee0c7babf61b00e236e092bc312f8e2d1
refs/heads/master
2021-01-01T17:08:43.894240
2017-07-22T08:46:29
2017-07-22T08:46:29
98,010,152
0
0
null
null
null
null
UTF-8
Python
false
false
1,195
py
from rest_framework import serializers from rest_framework.serializers import Serializer, ModelSerializer from .models import User, ProfileFeedItem class HelloSerializer(Serializer): name = serializers.CharField(max_length=10) class UserProfileSerializer(ModelSerializer): '''A serializer for user profile ...
[ "sp.gharti@gmail.com" ]
sp.gharti@gmail.com
198edfffd3674f803d196993c434415b8570032a
20527de15bff7810c8cb3d8b45d919ce413c22ec
/taint/test/integration/model_simplification.py
bdfdcdd1bc9d6d8577af87361b0a3fbaf142f679
[ "MIT" ]
permissive
modulexcite/pyre-check
7fd921b4f323e149aebe9a3eb03f6db124d23822
a84e85f735fa80a95cd4a0a10d1b88bff3495c8e
refs/heads/master
2020-06-27T07:56:18.019456
2019-07-31T01:11:01
2019-07-31T01:14:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
# @nolint from typing import Any, Dict class RecordSchema: _META_PROP = ... class DictRecord: items: Any = ... class MutableRecord: __dict__: Dict[str, Any] = ... def _is_dataclass_instance(obj) -> bool: ... def fields(obj): ... def asdict(obj: RecordSchema, *, dict_factory: Any = dict)...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
911b5edbf70970f053d48756a542199a09995254
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_produce.py
a40fbe953f48c824e214219c4a6d2b57a46525e7
[ "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
862
py
#calss header class _PRODUCE(): def __init__(self,): self.name = "PRODUCE" self.definitions = [u'to make something or bring something into existence: ', u'When animals produce young, they give birth to them: ', u'to cause a reaction or result: ', u'to organize the practical and financial matters relating to the...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f5d69474508cca791df8d0d1d266a26aead2480d
5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8
/buildout-cache/eggs/plone.app.dexterity-2.0.18-py2.7.egg/plone/app/dexterity/browser/export.py
655133dabcacaa1965a0a40744a8d537d1f55951
[]
no_license
renansfs/Plone_SP
27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a
8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5
refs/heads/master
2021-01-15T15:32:43.138965
2016-08-24T15:30:19
2016-08-24T15:30:19
65,313,812
0
3
null
null
null
null
UTF-8
Python
false
false
4,472
py
# @@types-export view for dexterity types configlet. View support for the # "Export" button. This is done by repurposing the GS typeinfo export and # removing unselected type information from its output. import time from StringIO import StringIO from zipfile import ZipFile from lxml import etree from Products.CMFCore...
[ "renansfs@gmail.com" ]
renansfs@gmail.com
435900941a02cea8af792d4b434964e60b3784a4
0fd49b4779351c68bbe51ee978939f39c8e57d7c
/400-1000/993-Cousins in Binary Tree.py
a6c5fb3c1f6c389cc73deab8c5900bd0d31e5646
[]
no_license
jia0713/leetcode
8f632b96d0bc900cf4357ab1b8affd6068964dec
13565941f16c74d32124020285ce887a4cb31b27
refs/heads/master
2023-06-17T20:41:47.185832
2021-07-16T09:42:39
2021-07-16T09:42:39
247,866,418
1
0
null
null
null
null
UTF-8
Python
false
false
994
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution(object): def isCousins(self, root, x, y): """ :type root: TreeNode :type x: i...
[ "pkuljn@gmail.com" ]
pkuljn@gmail.com
d395e88e78495685bd15dda53e430a096598c67f
75dcb56e318688499bdab789262839e7f58bd4f6
/Python Solved Interview Ques on Algorithms, Data Structures/Section 2 Linked Lists/src/24. write a program to find the nth node from the end of the single link list.py
150c09ffb43667a904ff3d4b48337a7019d55d76
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
2,827
py
from pprint import pprint class Node(object): def __init__(self, data=None, next_node=None): self.data = data self.next_node = None def get_data(self): return self.data def get_next(self): return self.next_node def set_next(self, new_next): self.next_node =...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
919a73832770c541c7baa2a0630e92cde3839176
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/scipy/ndimage/morphology.py
dd07d60671b27cb21791971fde6ef28728ab14d8
[]
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
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:df30a898056965cbdac6e968045fc95c265e0cdbd331434d1510c5459ada5466 size 82893
[ "business030301@gmail.com" ]
business030301@gmail.com
c9c39cd5d450cf314156014eea75e70b89ab82cf
7f88cff95ea5e6f049f73b2646038e90f8eeee7c
/manage.py
e8eb27a53fe13433f28e3c0174aa1d48bb798327
[]
no_license
arecker/Diplomacy
a2fe2806571dad1560322c3ffe53e9c70860875e
3ac6ce4ef20b64ffe618eaf41cdce6d19e87f1f8
refs/heads/master
2020-05-19T11:55:26.421119
2014-09-08T04:52:02
2014-09-08T04:52:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Diplomacy.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "alex@reckerfamily.com" ]
alex@reckerfamily.com
0ad13eb4e29b3386d8c00808b0f53447bf96d265
1af6958461af6257264ace2a6d13385b47104606
/pyscf/pbc/dft/roks.py
3c469013df450f7a834dadd301d3cbc0690a61bb
[ "Apache-2.0" ]
permissive
tmash/pyscf
ac9a86c078170044b52be71e5d00fa5f680f55af
89c101c1c963e8247808635c61cd165bffab42d6
refs/heads/master
2020-12-04T04:41:23.456744
2020-01-02T18:05:16
2020-01-02T18:05:16
231,615,690
1
0
Apache-2.0
2020-01-03T15:33:33
2020-01-03T15:33:32
null
UTF-8
Python
false
false
2,626
py
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
[ "osirpt.sun@gmail.com" ]
osirpt.sun@gmail.com
d55542441960a07d23cc7a62518e1534a3f74e5c
1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5
/apps/targets/customer_contact/__init__.py
6b87ae8474e6de70de0f63c9e5e5e801bd3082ae
[]
no_license
zhanghe06/migration_project
f77776969907740494281ac6d7485f35d4765115
0264b292873b211bfeca0d645cc41abc9efe883f
refs/heads/master
2022-12-12T10:55:43.475939
2019-09-29T09:19:13
2019-09-29T09:19:13
185,584,884
0
1
null
2022-12-08T05:04:58
2019-05-08T10:31:57
Python
UTF-8
Python
false
false
251
py
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: __init__.py.py @time: 2019-04-27 16:34 """ def func(): pass class Main(object): def __init__(self): pass if __name__ == '__main__': pass
[ "zhang_he06@163.com" ]
zhang_he06@163.com
06434aa6ebf373694a3a03999a3ded9393a6117f
52e05d43e6c37ee7a586118cf0f390b04e92ada3
/1110. Delete Nodes And Return Forest _ DFS.py
bb183fd2e0692add30b7a5a2a20ca07e00862a4e
[]
no_license
CaizhiXu/LeetCode-Python-Solutions
8f7a856e11e0804f32c43ed98bc08525a950ac13
63120dbaabd7c3c19633ebe952bcee4cf826b0e0
refs/heads/master
2021-05-18T04:57:16.412834
2020-08-05T04:33:13
2020-08-05T04:33:13
251,121,107
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def delNodes(self, root: TreeNode, to_delete: List[int]) -> List[TreeNode]: res = [] to_del = set(to_delete) def...
[ "xucaizhi@gmail.com" ]
xucaizhi@gmail.com
7b71d834d023a84b4aaa8d6b15eb9cb07ce8733c
e5aac74d568023a2888ef7545f18afe62f6cefd0
/state-of-the-data-for-desktop/GP Toolbox/src/geodataset/io/sqliteio.py
21a3d64301609421d91e291b3b6ae45dae57ceac
[ "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
ngageoint/state-of-the-data
3d42088b4c3239425e15e9858523c9d35a65cbbd
e654448a3a8a933acefb85a462042e016ca1a91a
refs/heads/master
2023-02-22T17:15:23.100068
2023-02-15T18:36:12
2023-02-15T18:36:12
103,418,047
22
8
MIT
2018-08-24T15:31:31
2017-09-13T15:35:01
Python
UTF-8
Python
false
false
2,252
py
""" Converts a Spatial DataFrame to a SQLite DB """ from __future__ import print_function from __future__ import division import os import json import warnings from .fileops import to_featureclass SUPPORTED_FORMATS = [] try: import arcpy HASARCPY = True except ImportError: HASARCPY = False warnings.warn...
[ "gbrunner@esri.com" ]
gbrunner@esri.com
3facdc3f56d663f6217467843d6555deb82a56cb
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/initial_2076.py
beb5b45acdf83629213cac2ba300ecc3d27fbc14
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,331
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
a239f00eca630581cc74890de3c93562d80de37c
36f05a64c8b87422afd619a98f5376d3bcfeccf3
/networking_bagpipe/agent/bgpvpn/agent_extension.py
59289d703260bbaafb675e2d5c622819aabd19ef
[ "Apache-2.0" ]
permissive
ythomas1/networking-bagpipe
a794bb6fce86afcfbd7f3453a927a1a8f92dda39
fc6874e624ff3985b87aefff752857152bb1c475
refs/heads/master
2021-01-15T16:36:20.256400
2017-08-02T17:04:20
2017-08-02T17:04:20
46,333,069
0
0
null
2015-11-17T08:24:32
2015-11-17T08:24:31
Python
UTF-8
Python
false
false
2,452
py
# Copyright (c) 2015 Orange. # 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 a...
[ "thomas.morin@orange.com" ]
thomas.morin@orange.com
10f78f0dfa109a395454c30dc579bf5c0952f2ab
796518cbc7efd830c1c376fa38abffdf0940763e
/conf/RocksDBQuizup.py
0a3b2dfa763facbae5b02aa950e008a1d114c1bb
[]
no_license
hobinyoon/mutant-ec2-tools
40bec163ad99ab7cbd7ec0ac98f163be553c013c
c645b6c3cd5b9bd8745272041185eede7b982b75
refs/heads/master
2021-09-08T12:36:43.764166
2018-03-09T18:08:45
2018-03-09T18:08:45
65,597,924
0
1
null
null
null
null
UTF-8
Python
false
false
1,467
py
# Storage usage measurement for unmodified RocksDB and Mutant with # sstable migration threshold 10. storage_usage_measurement_unmodified_rocksdb = { "monitor_temp": "false" # Fast device paths. , "fast_dev_path": "/mnt/local-ssd1/rocksdb-data" # Slow device paths. , "slow_dev_paths": {"t1": "/mnt/ebs-gp2/rocksd...
[ "hobinyoon@gmail.com" ]
hobinyoon@gmail.com
db6b52569ee5283f3884a5aafd8531de68935234
ba7c4862dfbc9d0469f389c0cdb3fed01f99ebe3
/controls/bode/problem6.17d.py
a4e058527768c54ac35ddfff48e95186d110aa55
[]
no_license
cmontalvo251/Python
293cbdf8832d7637d5c0b31eadd02d3ccf2f2c05
2b12ce043ee41e08537cfb62301c6a55d4661e04
refs/heads/master
2023-06-22T21:50:21.225067
2023-06-14T13:42:16
2023-06-14T13:42:16
229,313,158
8
3
null
2021-07-31T16:01:54
2019-12-20T18:03:52
Python
UTF-8
Python
false
false
871
py
import control as ctl import matplotlib.pyplot as plt import numpy as np G1 = ctl.tf([1],[1,0,0]) print(G1) G3 = ctl.tf([1,1],[1])*ctl.tf([1,1],[1]) print(G3) G2= ctl.tf([1],[1,10]) print(G2) GOL = G1*G2*G3 ctl.bode(G1,dB=True,label=str(G1)) ctl.bode(G2,dB=True,label=str(G2)) ctl.bode(G3,dB=True,label=str(G3)) ctl....
[ "cmontalvo@southalabama.edu" ]
cmontalvo@southalabama.edu
98ed664d04b7ea7b377e819cbe9212fd23fa8e81
086dcfda911bfbeb5b5a9646847768dd21bd9302
/experimental/nanomax/reccrop_align.py
bc7139a7eefaf6a7db1ab765beaef2fc51145d03
[]
no_license
nikitinvv/ptycholamalign
949ed83940498d1b84bbb0847408b44e0f812976
bb536d2da3f879bb25385aa0237806d9bf41bc25
refs/heads/main
2023-07-13T11:50:16.677110
2021-07-22T15:00:00
2021-07-22T15:00:00
377,331,860
0
0
null
null
null
null
UTF-8
Python
false
false
2,544
py
import dxchange import numpy as np import sys import ptychotomo data_prefix = '/data/staff/tomograms/vviknik/nanomax/' if __name__ == "__main__": n = 512-128 nz = 512-192 ndet = 128 ntheta = 1 ptheta = 1 voxelsize = 18.03*1e-7 # cm energy = 12.4 nprb = 128 # probe size recover_p...
[ "vnikitin90@gmail.com" ]
vnikitin90@gmail.com
ded45e69e5a4a93d279a4b6283c7f5ba4fd543dc
ae07a7dadba9f4a22e6b1b550aacabd5c4aa76d3
/test_host_pool.py
dace77873b4878a431e74b054474ff20b08705ca
[]
no_license
davemarchevsky/host_pool
afdf0152208581e28f3fbbf11a7f8d9488353b0f
af1cfaf22e63b8b9667ce6e7658225626cf92519
refs/heads/master
2020-04-06T06:40:19.150107
2012-06-14T15:40:27
2012-06-14T15:40:27
36,826,687
0
0
null
2015-06-03T19:49:21
2015-06-03T19:49:21
null
UTF-8
Python
false
false
798
py
""" this is a py.test test file """ import host_pool def test_basic(): pool = host_pool.HostPool(['a','b','c']) assert [pool.get(), pool.get(), pool.get(), pool.get()] == ['a', 'b', 'c', 'a'] pool.failed('a') pool.failed('b') assert pool.get() == 'c' pool.success('c') assert pool.get() == ...
[ "jehiah@gmail.com" ]
jehiah@gmail.com
bd44693c98ba27cd26a8b3fe24a53c629fef23b7
0c25196fc490ab8394a8e578f50bfd07670a54d0
/partition/lib/layers/partitionNet.py
e4c11789911e749cf1ddc4ed652a9f5d1097bed8
[]
no_license
xiaogaogaoxiao/MinMax-MTSP
42b73f9a64ce9731e387dabc0f77e721571488ec
ae05e3d6666e01e15ecdfeb8bd1e2f2a5b8770ff
refs/heads/master
2022-11-22T22:46:01.111180
2020-07-22T06:40:03
2020-07-22T06:40:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,164
py
import torch from torch import nn as nn from torch.nn import functional as F import numpy as np from .graph_embedding_v2 import graph_embedding_v2 as graph_embedding from .prob_decoder_v2 import attention_decoding class mtsp(nn.Module): def __init__(self, hidden_size, etypes, anum, common_hop, global_hop): ...
[ "noreply@github.com" ]
xiaogaogaoxiao.noreply@github.com
e42a8ff958a8f3e65dd6b078f5da28c6ec54ff4d
88e06bab1989c81a2dd649bb09b144fa7c958f89
/ib_zigzag_level_order_traversal.py
f9a240e0e12786bea0f77e10bd2fdb47310d64ee
[]
no_license
VaibhavD143/Coding
4499526b22ee4ef13f66c3abcea671c80a8f748a
5de3bae8891c7d174cbc847a37c3afb00dd28f0e
refs/heads/master
2023-08-06T21:56:44.934954
2021-10-09T18:31:29
2021-10-09T18:31:29
263,890,286
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
from collections import deque # Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param A : root node of tree # @return a list of list of integers def zigzagLevelOrder(self, A): ...
[ "vaibhav.dodiya143vd@gmail.com" ]
vaibhav.dodiya143vd@gmail.com
8899fa3853f7fc84f42447ebc786c213d9e4bcc3
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Digit sum/solution.py
2001a198ca46dbdb7d18dd5caec8191751a95b69
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
294
py
def solve(N, S): # Write your code here import math sum1 = sum(int(i) for i in S[:N]) sum2 = sum(int(i) for i in S[N:]) return math.ceil(abs(sum1 - sum2) / 9) T = int(input()) for _ in range(T): N = int(input()) S = input() out_ = solve(N, S) print(out_)
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
2d60c8c0cc643820ac1113821f2493b13e928ffc
d87483a2c0b50ed97c1515d49d62c6e9feaddbe0
/.history/get_positions_20210204130508.py
6b253f42b074fceabbbdb12615a40c97aed8ff02
[ "MIT" ]
permissive
HopperKremer/hoptrader
0d36b6e33922414003cf689fb81f924da076a54b
406793c10bc888648290fd15c7c2af62cf8c6c67
refs/heads/main
2023-06-12T15:51:00.910310
2021-07-06T16:15:41
2021-07-06T16:15:41
334,754,936
0
2
null
null
null
null
UTF-8
Python
false
false
930
py
# Buy top tickers from Financhill import requests from tda import auth, client from tda.orders.equities import equity_buy_market, equity_buy_limit from tda.orders.common import Duration, Session import os, sys import time from selenium import webdriver import json currentdir = os.path.dirname(os.path.realpath(__file__...
[ "hopperkremer@gmail.com" ]
hopperkremer@gmail.com
62e6798ae1aa1d1db2237966556f5d73d14f1cf9
09efb7c148e82c22ce6cc7a17b5140aa03aa6e55
/env/lib/python3.6/site-packages/plotly/validators/scatterternary/marker/colorbar/title/__init__.py
d8ac43171127c947b53e687f12fee289453ea3a9
[ "MIT" ]
permissive
harryturr/harryturr_garmin_dashboard
53071a23b267116e1945ae93d36e2a978c411261
734e04f8257f9f84f2553efeb7e73920e35aadc9
refs/heads/master
2023-01-19T22:10:57.374029
2020-01-29T10:47:56
2020-01-29T10:47:56
235,609,069
4
0
MIT
2023-01-05T05:51:27
2020-01-22T16:00:13
Python
UTF-8
Python
false
false
2,623
py
import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="text", parent_name="scatterternary.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=pl...
[ "griffin.harrisonn@gmail.com" ]
griffin.harrisonn@gmail.com
d61428b8dc7758ec78a012f42ec91fb59746fef0
59565013634749b888e3c67aee5ae2cbf16034a0
/email_alerts/migrations/0004_auto_20190830_2357.py
a95284a1e1eadeee4624c4ee72056e12c2615e78
[ "MIT" ]
permissive
ralphqq/dc-alerts-service
f0a379da3227d0fa3b00ea735dc0255abeefd7c5
f00131dd7b2a0ee72ae5476b40f8552480c655b6
refs/heads/master
2022-07-23T16:51:23.021754
2021-01-08T03:08:04
2021-01-08T03:08:04
204,107,188
1
0
MIT
2022-07-06T20:14:20
2019-08-24T04:15:38
Python
UTF-8
Python
false
false
559
py
# Generated by Django 2.2.4 on 2019-08-30 15:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('email_alerts', '0003_emailalert_outage'), ] operations = [ migrations.AddField( model_name='emailalert', name='html_...
[ "ralph.quirequire@outlook.com" ]
ralph.quirequire@outlook.com
86da368eb4e41c4fa88e4d238399cf642e833290
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_168/107.py
4e9afe128bb50fef4346159faa22441e441dae44
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
def solve(): n, m = map(int, raw_input().split(' ')) board = [] forbidden = {} for i in range(n): board.append(raw_input()) for i in range(n): j = 0 while j < m and board[i][j] == '.': j += 1 if j < m: if (i, j) in forbidden.keys(): forbidden[(i, j)] += ['<'] else: forbidden[(i, j)] = ['...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d660c5d829295964a5534a6ba8422f435632e70f
82762d776e2400948af54ca2e1bdf282885d922c
/230. 二叉搜索树中第K小的元素.py
5a20a9b94ba6f3c2198658f6a2b6fc77bb468fed
[]
no_license
dx19910707/LeetCode
f77bab78bcba2d4002c9662c122b82fc3c9caa46
624975f767f6efa1d7361cc077eaebc344d57210
refs/heads/master
2020-03-17T02:50:46.546878
2019-06-25T09:22:13
2019-06-25T09:22:13
133,208,490
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def kthSmallest(self, root, k): """ :type root: TreeNode :type k: int :rtype: int """ ...
[ "dx19910707@qq.com" ]
dx19910707@qq.com
9c78ddfeb9976b6e32ddd5fc0eb6398af3be79df
3ed7d76dd1c09cad2c4acfe0b7244909603eb14c
/cardinality_email_address_search.py
3369ce66c897bc5f1c56453061601fc9217c273c
[]
no_license
chrisgarcia001/Spark-Email-Analytics
85c76dc5a3a7c2b7590e7f3464d8ef73d49f8db3
1b0f23b667e46d754e58ac4782578f6f007b825a
refs/heads/master
2021-01-13T03:40:13.889916
2017-01-28T15:07:38
2017-01-28T15:07:38
77,252,955
0
0
null
null
null
null
UTF-8
Python
false
false
3,126
py
#-------------------------------------------------------------------------------------- # Author: cgarcia # About: This script is for cardinality-based searching of email addresses/recipients. # The recipient categories to include in the search (FROM, TO, CC, and BCC) may # be specified in the parameter ...
[ "chrisgarcia001@gmail.com" ]
chrisgarcia001@gmail.com
5750b4f5d92309b1095905b59c93c6cde3c6af35
bc441bb06b8948288f110af63feda4e798f30225
/metadata_center_sdk/api/stream/replace_metric_states_pb2.pyi
8124a33ad0765192ed1c9f9102afbbd753b20371
[ "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
4,328
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
9fcae6114889d1a79f7a03c5ce801617639da1d2
b7a98a761007cf8b913b75152a278c1693f2d00d
/assignment/w2/solve/solve.py
22a38e9847650cf17a5187173d8693fa5b9b7f3d
[]
no_license
VuHoangvn/descrete_optimize
be18fcfc230a9d1133ec94a49b1fc5cfcb50b449
7a17d472af7d54624860aeff590db423a7e47d59
refs/heads/master
2022-10-14T00:22:50.368095
2020-06-05T09:48:31
2020-06-05T09:48:31
261,913,231
0
0
null
null
null
null
UTF-8
Python
false
false
3,290
py
from collections import namedtuple import sys Item = namedtuple("Item", ['index', 'value', 'weight']) def greedy1(items, capacity): value = 0 weight = 0 taken = [0]*len(items) items = sorted(items, key=lambda item: item[1], reverse=True) for item in items: if weight + item.weight <=...
[ "20161728@student.hust.edu.vn" ]
20161728@student.hust.edu.vn
884f791cff6c586d1ee3d8dc9d331ef588ed7063
6bcfb27114e076139ebf943b31b34deaf9914463
/main/core/utils/boolean.py
0d8a3023a467e38fcbd8dcb7af7f644f4aae09bf
[]
no_license
101t/jasmin-web-panel
f09be3ebb7de132cc28bc121a186a8eba89e1c24
d7dfe74a63663571178843d5e664b2121d4d5943
refs/heads/master
2023-08-02T22:22:34.421658
2023-07-27T20:54:49
2023-07-27T20:54:49
212,270,500
66
63
null
2023-07-27T20:54:50
2019-10-02T06:31:44
Python
UTF-8
Python
false
false
747
py
# -*- encoding: utf-8 -*- from __future__ import unicode_literals from django.utils.translation import gettext_lazy as _ from django.conf import settings from dateutil.parser import parse from decimal import Decimal import json def is_json(string): try: json.loads(string) except: return False ...
[ "tarek.it.eng@gmail.com" ]
tarek.it.eng@gmail.com
ee6903e5fdd03c2a430fc802f5986673ae4516d9
30416a809d25a51999a1a2e30e737570af6c7fbe
/Maximum_SubArray/SimpleSolution.py
2b77ce2864abd7bbbe821305ec7b26c39e58c8af
[]
no_license
Vanditg/Leetcode
06e22b418d45a841df4256567ec28a653954be77
6f427ea663d3772b0b83f8afc28b7967ead1f574
refs/heads/master
2021-05-24T14:52:54.298801
2020-06-22T12:52:23
2020-06-22T12:52:23
253,614,081
1
0
null
null
null
null
UTF-8
Python
false
false
874
py
##================================== ## Leetcode ## Student: Vandit Jyotindra Gajjar ## Year: 2020 ## Problem: 49 ## Problem Name: Group Anagrams ##=================================== #Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its...
[ "gajjarvandit@gmail.com" ]
gajjarvandit@gmail.com
2a706ab290abef4b2418b5bdebab396cab5879ec
e0af8662a03acfd3719630eea571efaf366630ff
/Topics/Intro to NumPy/Collecting info/main.py
4f0d5105ae440ab0e54cc1f4804e326a3f475d58
[]
no_license
ivanelisandro/PythonStudiesMatrixProcessor
5a594491646b63875c7aaeef85c517a1e88c421d
f21396191eabcc957f5f070cb47c0dd5c2fe9e87
refs/heads/master
2023-07-03T21:27:56.489680
2021-07-31T23:29:10
2021-07-31T23:29:10
349,613,696
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
import numpy as np def collect_info(array: np.ndarray): shape = f'Shape: {array.shape}; ' dimensions = f'dimensions: {array.ndim}; ' length = f'length: {len(array)}; ' size = f'size: {array.size}' return shape + dimensions + length + size
[ "ivan.elisandro@gmail.com" ]
ivan.elisandro@gmail.com
4067179fa5ed3b2c909ee511341faa65c15f342f
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/kosmos-2/torchscale/examples/fairseq/tasks/data/utils.py
c551398cf4d64a69113c0a0ac0754cc24671dda3
[ "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
4,858
py
# Copyright (c) 2022 Microsoft # Licensed under The MIT License [see LICENSE for details] import collections from random import Random from typing import Dict, Iterable, Optional import numpy as np from infinibatch import iterators EOL_SYMBOL = "</line>" BOI_SYMBOL = "<image>" EOI_SYMBOL = "</image>" def apply_to...
[ "1083127130@qq.com" ]
1083127130@qq.com
c31edfe4ee2595abd5fc3d7c8201a4fc07dc95a0
c3c31ce9a8822ac0352475934f5b3fbdacac62a1
/ssseg/modules/models/gcnet/contextblock.py
b9c7d1afc60e5ef55a4d5189eb86af61edb33ec4
[ "MIT" ]
permissive
guofenggitlearning/sssegmentation
1e51b5b14bff3b5ad0d469ac98d711adb79cef11
7a405b1a4949606deae067223ebd68cceec6b225
refs/heads/main
2023-08-28T03:26:39.204259
2021-11-03T00:51:30
2021-11-03T00:51:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,578
py
''' Function: Implementation of ContextBlock Author: Zhenchao Jin ''' import torch import torch.nn as nn from ...backbones import BuildActivation, BuildNormalization '''context block''' class ContextBlock(nn.Module): def __init__(self, in_channels, ratio, pooling_type='att', fusion_types=('channel_add', )...
[ "1159254961@qq.com" ]
1159254961@qq.com
1ffd00afa72ebf7a9125d43254cec437cbd6854a
7f26f3bb3fd3950782511a5c350954f1815de1dd
/apps/home/urls.py
7fe050a893cc36babb49c46521746ea3f920f213
[]
no_license
matheuskaio/SistemaGerenciamentoQuestoes
e70bf43650965c4fb60d3ae810d5a5b73fafa746
62d987e5ff7de9c5104d1e5cc5753408cc5da564
refs/heads/master
2020-04-22T00:31:03.972907
2019-02-27T00:36:16
2019-02-27T00:36:16
169,982,367
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
from django.contrib import admin from django.urls import path from .views import home urlpatterns = [ path('', home, name='page-home'), ]
[ "m.k.m.p.2000@gmail.com" ]
m.k.m.p.2000@gmail.com
162633af790e0e0dd0e83a473923907890d69016
2368797b51548c0f6393d63bf4973898ac99d528
/backtrack/medium/q17.py
1c9324f63cdbdd5624dea39d2af14c9a42872311
[]
no_license
pengzhefu/LeetCodePython
595887d1625666962e7e959ffa148580f9b89ada
59eff778a5fd5cff3b5b6b88c6c7e76dd213dfb0
refs/heads/master
2021-06-08T19:44:52.487031
2021-06-01T15:44:29
2021-06-01T15:44:29
175,763,155
1
0
null
null
null
null
UTF-8
Python
false
false
1,973
py
# -*- coding: utf-8 -*- """ Created on Tue May 7 23:01:42 2019 @author: pengz """ ''' Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does no...
[ "32311379+pengzhefu@users.noreply.github.com" ]
32311379+pengzhefu@users.noreply.github.com
c8a9e132783fa3406aa6cccb4e2747088eac95ae
47243c719bc929eef1475f0f70752667b9455675
/bungeni.transcripts/trunk/bungeni/transcripts/utils/misc.py
2b629e3b197234716babb4e1505b5d85686230b7
[]
no_license
malangalanga/bungeni-portal
bbf72ce6d69415b11287a8796b81d4eb6520f03a
5cf0ba31dfbff8d2c1b4aa8ab6f69c7a0ae9870d
refs/heads/master
2021-01-19T15:31:42.943315
2014-11-18T09:03:00
2014-11-18T09:03:00
32,453,405
0
0
null
null
null
null
UTF-8
Python
false
false
1,662
py
from bungeni.models import domain as bungeni_domain from bungeni.transcripts import domain from ore.alchemist import Session import sqlalchemy.sql.expression as sql def get_assigned_staff(context, role): session = Session() query = session.query(bungeni_domain.GroupMembership).join( (domain.Assi...
[ "mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc" ]
mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc
ac17e919872c0217dd1773b3165826a2b70d5d3f
5430cd3b483c858567f1687b0bed43eccd4d0fe0
/main2.py
3edd2dac5761b04112fabdd4e1730363820890cf
[]
no_license
roholazandie/gaussian_process_tutorial
a1b46c712d31545ee428db04a511150933902de8
f7efbaa534f6834447cb77a97e5162efd92f9a1a
refs/heads/master
2021-02-14T15:40:12.649801
2020-05-21T16:17:37
2020-05-21T16:17:37
244,816,147
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
from gpytorch.likelihoods import GaussianLikelihood, BernoulliLikelihood, SoftmaxLikelihood import torch import numpy as np from gpytorch.settings import num_likelihood_samples from torch.distributions import MultivariateNormal #likelihood = GaussianLikelihood() #likelihood = BernoulliLikelihood() likelihood = Softmax...
[ "hilbert.cantor@gmail.com" ]
hilbert.cantor@gmail.com
785f6cc0f6b0b649ad97f63ae894525caba34b7f
3088dc21f3e5eeb31575704712a695d71772495f
/torch/distributed/pipeline/sync/_balance/profile.py
6b8a240a2cdfe8e9b2f04e57e4c34088184996a0
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
ezyang/pytorch
8e82444c78025ff12fa605a62a18acfc43b176b8
6fc64500d1af9ee1306c7695ab0a2ff01852ff00
refs/heads/master
2023-09-02T01:56:28.108400
2022-06-07T19:13:21
2022-06-07T19:13:21
101,798,885
3
0
NOASSERTION
2022-08-23T22:10:07
2017-08-29T19:28:39
C++
UTF-8
Python
false
false
3,539
py
# Copyright 2019 Kakao Brain # # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. """Per-layer profilers.""" import copy import time from typing import Any, Generator, List,...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e9892d450d6c82da2cbcaf8a6ddcabc7560ed47b
f39528e9bad8cfa78b38fcbb7a5b430ac0c7a942
/Heavy_Neutrino/test2/HeavyNeutrino_trilepton_M-4_V-0.00656_tau_pre2017_massiveAndCKM_LO_pre2017.py
cd445088fe951f8667d975e1299625542ec0488e
[]
no_license
isildakbora/EXO-MC-REQUESTS
c0e3eb3a49b516476d37aa464c47304df14bed1e
8771e32bbec079de787f7e5f11407e9e7ebe35d8
refs/heads/master
2021-04-12T11:11:03.982564
2019-04-29T15:12:34
2019-04-29T15:12:34
126,622,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
import FWCore.ParameterSet.Config as cms externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/slc6_amd64_gcc481/13TeV/madgraph/V5_2.4.2/exo_heavyNeutrino/displaced_pre2017/v1/HeavyNeutrino_trilepton_M-4_V-0.00656_tau_pre2017_massiveAndCKM_LO_sl...
[ "bora.isildak@cern.ch" ]
bora.isildak@cern.ch
8f986f78663716068a9820977ce47f7b7a434129
e26b2488888f4a1046d0f7107b8785a047a0b607
/reqs/tests/sync_agencies_tests.py
e8b88d2d31fe6b827d866d2a2400c27a3ef5406e
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
jcscottiii/omb-eregs
3a0b7a00f4bc8ab2dc9e7bb5f00c51a8454075ef
9b38ba6172be9044b9e352410e6125bbab098ff8
refs/heads/master
2021-01-22T03:50:20.902586
2017-05-17T20:27:09
2017-05-17T20:27:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,008
py
import pytest from model_mommy import mommy from reqs.management.commands.sync_agencies import Command from reqs.models import Agency, AgencyGroup @pytest.mark.django_db def test_create_system_groups(): AgencyGroup.objects.create(slug='cfo-act', name='Alt CFO') cmd = Command() cmd.create_system_groups() ...
[ "christopher.lubinski@gsa.gov" ]
christopher.lubinski@gsa.gov
199ab8a4c5bf7af36f4ccf03d82c2ba718c58baf
eb43ddeb1cd3a22ab57803b8747ae304547b607b
/detect.py
1b5dd9551b0b1a076c8b4a30a78246bcfd73c5d6
[]
no_license
SeanEstey/simbot
c393690583488b0d7cccb545050d08821b301bd5
c21519bc0fd6cafbfaea8dc81d1ea1f468bd7278
refs/heads/master
2021-09-05T04:21:30.240290
2018-01-24T06:01:03
2018-01-24T06:01:03
103,627,523
1
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
'''detect''' import os, requests, socket, sys, time from flask import current_app, g from os import environ as env import eventlet, flask #,celery from logging import getLogger log = getLogger(__name__) G = '\033[92m' Y = '\033[93m' ENDC = '\033[0m' #-------------------------------------------------------------------...
[ "estese@gmail.com" ]
estese@gmail.com
6e6e471fe332be2cfdf595fab47fada56802511b
40d608977fa29307016eac4fbcc4cac2afdf630d
/dockermap/__init__.py
0e375d67d5a8f396d69c905bb4c62d196d7b1e27
[ "MIT" ]
permissive
zalan-axis/docker-map
b3862c9f011306d10632c3e5ff6dcd54e79589f4
bdededc7e9721293a9d133af759aedb73f368195
refs/heads/master
2021-01-22T06:03:24.282310
2015-07-11T21:01:22
2015-07-11T21:01:22
38,710,822
0
0
null
2015-07-07T19:45:46
2015-07-07T19:45:44
Python
UTF-8
Python
false
false
153
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals __version__ = '0.4.1' DEFAULT_BASEIMAGE = 'tianon/true' DEFAULT_COREIMAGE = 'busybox'
[ "matthias@erll.de" ]
matthias@erll.de
ad6aaabf21a2a3f888f2d91cb6c5446eba786f89
b00f8ab1df148363f638e2201e4bfb380e4adfd5
/backend/punch_list_2013/wsgi.py
d7dcdfad535c0e61e53a3bf8d8fc0e5f84ea0c9b
[]
no_license
crowdbotics-apps/punch-list-2013
3cf36e245e0d9478f05e0d457f19032d8fa69dbb
9ca781a8c9111b19e949c3cc330571450a01a56f
refs/heads/master
2022-12-10T13:19:27.235413
2019-04-06T05:14:11
2019-04-06T05:14:11
179,791,558
0
0
null
2022-12-06T16:28:34
2019-04-06T05:14:07
JavaScript
UTF-8
Python
false
false
408
py
""" WSGI config for punch_list_2013 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJA...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
cf39ae6b277d62ca5bdc3d4e788917c337dca18f
c2b1500ad13c0047c532e12fe5e6277ed2d597f2
/alembic/versions/34a1efbca5fa_initial_state.py
bb940a8f7211055c9970ec0c62019ac2725b2351
[ "BSD-2-Clause" ]
permissive
leetoo/finance
84c67df6d2fd94ca213692dc19043145c7173721
857b22e6b44e99327517c7f01daa8114a2ab87a6
refs/heads/master
2022-08-25T13:42:10.002698
2020-05-14T17:22:42
2020-05-14T17:22:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,708
py
"""Initial state Revision ID: 34a1efbca5fa Revises: Create Date: 2018-01-13 01:18:55.838885 """ from alembic import op import sqlalchemy as sa from finance.models import JsonType # revision identifiers, used by Alembic. revision = "34a1efbca5fa" down_revision = None branch_labels = None depends_on = None def upg...
[ "suminb@gmail.com" ]
suminb@gmail.com
08aa6a4fc9fb79427f66e02b36d9f3bf85e4d36c
3ac0923505e1e03a07742355edec43f23ead82b7
/Daily/sbgo/Leetcode773-滑动谜题.py
23f89e3896e7cc8b59a10a4e177fc43e95037c06
[]
no_license
lock19960613/SCL
5055c940d2529eef981a29698c7ea04212a8b9de
3ea28fd8f5d5233411341283c85667e4b9fc64d5
refs/heads/main
2023-08-03T04:36:33.555296
2021-09-11T06:48:49
2021-09-11T06:48:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
import copy from typing import List from collections import defaultdict class Solution: def slidingPuzzle(self, board: List[List[int]]) -> int: target = [[1,2,3],[4,5,0]] if target == board: return 0 que = [] que.append(board) dist = defaultdict(int) dist...
[ "597494370@qq.com" ]
597494370@qq.com
c2db78bd10c4e4cf1ed27b8c9b1b0f4886f6d8af
f394598dad4276f9667e702b7360ab14dcd10cfc
/unsolved/determine_pythagorean_triplet_in_array.py
470c4dd6327d16ad6d8b32f50019ef91fcff1e8f
[]
no_license
siowyisheng/python-problem-solving
fe9ded3761e637883467cb81abc01bcb0a54b589
7e32767a3ac710ecfc37f205ee35eda194400122
refs/heads/master
2020-03-21T19:57:56.118616
2019-06-28T08:12:09
2019-06-28T08:12:09
138,980,214
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
Given an array of integers, determine whether it contains a Pythagorean triplet. Recall that a Pythogorean triplet (a, b, c) is defined by the equation a2+ b2= c2.
[ "siowyisheng@gmail.com" ]
siowyisheng@gmail.com
b10ae8c9a014f24ddfa186309ec7b3f6edb210b0
cdb64a1003ca454d1ddc5dff10ff73a80c8c6561
/project24/settings.py
5e701a4dccd3fcac2e8cab8de169e40c59961dfa
[]
no_license
harshadvali11/user_registrations
7bce4db5d1aceb5c84ac207434e3c4390001842a
ccad73466c33d0cfe1bbaeaca1bd1fd3b4aa957d
refs/heads/main
2023-01-02T08:55:09.569193
2020-10-31T16:16:53
2020-10-31T16:16:53
308,405,519
2
0
null
null
null
null
UTF-8
Python
false
false
3,397
py
""" Django settings for project24 project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathl...
[ "66057460+harshadvali11@users.noreply.github.com" ]
66057460+harshadvali11@users.noreply.github.com
44c7ac299ae2dae9703d48e19ce747841d9697ab
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/error_state/team_president_community/program/history/week.py
ce77eec66919d476583fb69de347ee29ec64fbac
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
4,391
py
using CategoriesPOC.TranslatorService; using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; namespace CategoriesPOC.Helpers { public static class TranslatorHelper { private const string SubscriptionKey = "ff4f6d9805c06c32539f02cf5b1b4014"; //Enter here the Key from yo...
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
d1e065d25f2ea68004cdc641c14f85dd604e4edf
65bb9ce5d92d3e7061d9247af9b9b7492f522051
/app/models/order.py
31525bf10c438850c0d6e8cb110351fa16abf245
[ "MIT" ]
permissive
zhongxinghong/EECS-Volunteer-Reservation-2-Backend
3ff70fffc048af0b801e7e7e968718bcabf1b5b3
e468aff0f33760432326a8b355ef8ed028b96bdf
refs/heads/master
2023-02-06T15:57:53.208876
2019-10-29T16:40:29
2019-10-29T16:40:29
218,276,716
0
0
MIT
2023-02-02T06:40:40
2019-10-29T12:00:41
Python
UTF-8
Python
false
false
4,434
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # filename: order.py # modified: 2019-10-29 from ..core.mysql import db from .order_register import OrderRegister class Order(db.Model): __tablename__ = "order" #////////////# # status # #////////////# STATUS_WAITING = 0 STATUS_PROCESSING...
[ "zxh2017@pku.edu.cn" ]
zxh2017@pku.edu.cn
945c2ec05aaf310369002054cee70f01f085dbb7
3de3dae722829727edfdd6cc3b67443a69043475
/edexOsgi/com.raytheon.uf.edex.dataaccess/utility/common_static/base/python/dataaccess/JGridData.py
3286ed5d159460535ab46953c4f86415efbfcd46
[ "LicenseRef-scancode-public-domain", "Apache-2.0" ]
permissive
Unidata/awips2
9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb
d76c9f96e6bb06f7239c563203f226e6a6fffeef
refs/heads/unidata_18.2.1
2023-08-18T13:00:15.110785
2023-08-09T06:06:06
2023-08-09T06:06:06
19,332,079
161
75
NOASSERTION
2023-09-13T19:06:40
2014-05-01T00:59:04
Java
UTF-8
Python
false
false
4,447
py
# # # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to no...
[ "mjames@unidata.ucar.edu" ]
mjames@unidata.ucar.edu
cc45589cea1d1873409377315b40bdc24d0f0c23
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2334/60725/269943.py
334f2d82e96ae716a6897cec7f95544f3b6b4e0c
[]
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
131
py
s=inpuut() s.sort() for i in range(len(s)-3,-1,-1): if s[i]+s[i+1]>s[i+2]: print(s[i]+s[i+1]+s[i+2]) break
[ "1069583789@qq.com" ]
1069583789@qq.com
9c4f1e4ff0415e95e800f11fd6f44d7034c019ba
361adca9f871ae8ca03f1d4bedff99b3de5fd0a4
/cameras/3d_reprojection/scripts/gesnat1_random_camera_to_eye_task_nature_walk_1.py
e4a0bfc3dda775a3a2e3a6a491991a37fcf9ab34
[]
no_license
Berkeley-BORIS/NDS-Code
123fb76eb7c339a2dd8dd17fd8110520839e4a50
aca912e22d62980ae78729355ad2b3b761186da3
refs/heads/master
2016-09-06T10:30:00.075969
2015-03-24T18:44:33
2015-03-24T18:44:33
39,850,584
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
from camera_image_to_eye_image_parallel import * subj = 'gesnat1' fixed_fixations = 'random' if fixed_fixations: # if fixed_fixations isn't empty, we might need to add an underscore if not fixed_fixations.startswith('_'): # so if it doesn't start with an underscore... fixed_fixations = '_' + fixed_fixations # a...
[ "bill.sprague@berkeley.edu" ]
bill.sprague@berkeley.edu
aeb7b9b6b4121d0a128f914a214f6cfdf2f2e9f0
6017802a27c2170a81838faffe65a450081ef142
/addons-own/crm_facebook_leads/dev_tools/get_page_access_token.py
96c8a6b96fce453daf0e9d9216b705ca87b15297
[]
no_license
OpenAT/online
5fe6f997ab6a37cfb90b7651a6d3cef81ff35e73
de4a1fea0b4e60226fc51bd731388e88d2e25b3f
refs/heads/o8
2023-08-06T21:40:37.006251
2023-07-19T15:07:33
2023-07-19T15:07:33
50,013,003
5
9
null
2023-02-16T00:33:21
2016-01-20T07:34:28
JavaScript
UTF-8
Python
false
false
616
py
import requests import json fb_page_id = 123 user_access_token = "aaa" # Generate non expiring page token from user access token # ------------------------------------------------------- response = requests.get("https://graph.facebook.com/v6.0/{}".format(fb_page_id), params={"fields": "access_...
[ "michaelkarrer81@gmail.com" ]
michaelkarrer81@gmail.com
49f49cfdaa08cdd862d5b740a2aef9cf9c925b37
bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd
/neekanee/job_scrapers/plugins/com/resumator/mashable.py
1c9a6712267bbb18e383cb5376581990eb68a7b7
[]
no_license
thayton/neekanee
0890dd5e5cf5bf855d4867ae02de6554291dc349
f2b2a13e584469d982f7cc20b49a9b19fed8942d
refs/heads/master
2021-03-27T11:10:07.633264
2018-07-13T14:19:30
2018-07-13T14:19:30
11,584,212
2
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
import re, urlparse from neekanee.jobscrapers.jobscraper import JobScraper from neekanee.htmlparse.soupify import soupify, get_all_text from neekanee_solr.models import * COMPANY = { 'name': 'Mashable', 'hq': 'New York, NY', 'home_page_url': 'http://mashable.com', 'jobs_page_url': 'http://mashable.t...
[ "thayton@neekanee.com" ]
thayton@neekanee.com
decb161190899b2d4f8215d955c81d89a09608e2
78260a7ab56c581684f5cb6efbf37ae6468cb092
/payserver/test/auto_test/inviter_build.py
272a5f8c611f466cf97ae370cec5c71346fb2fe4
[]
no_license
yiyuhao/FukuanUnion
4702ee0c60b9a8d74a48c4c4c981c2f949dac04e
0d32f98f42591b43e0b4da5e978b627da517f758
refs/heads/master
2022-01-09T21:44:57.767264
2019-06-19T02:48:22
2019-06-19T02:48:22
192,504,062
0
0
null
2022-01-06T22:36:08
2019-06-18T09:00:40
Python
UTF-8
Python
false
false
490
py
# -*- coding: utf-8 -*- # # Project: payunion # Author: zhaopengfei # # Copyright (c) 2018 麦禾互动. All rights reserved. from .inviter import Inviter class InviterBuilder(object): @classmethod def build(cls, info=None): inveter = Inviter() inveter.entry_mini_program() inveter.c...
[ "yiyuhao@mixadx.com" ]
yiyuhao@mixadx.com
4e90aeebd0f62319aeffb5a5e59088fe406edf2f
3b99e2863db4bcd3707e6f13641ddd9156289bc6
/tilemap/part 15/main.py
ad78c39b711f82dce3c79b8034cb630d2f8e8247
[ "MIT" ]
permissive
m-julian/pygame_tutorials
500a5be3b4fad86fad577a7ea5493ac09ca41168
be57d865de4ac0c18148e1785443c05445159779
refs/heads/master
2022-07-18T00:15:01.335459
2020-05-12T15:39:45
2020-05-12T15:39:45
263,055,700
0
0
MIT
2020-05-11T13:48:49
2020-05-11T13:48:48
null
UTF-8
Python
false
false
5,831
py
# KidsCanCode - Game Development with Pygame video series # Tile-based game - Part 15 # Simple Visual Effects (and a bug fix) # Video link: https://youtu.be/ZapYMuV8f1g import pygame as pg import sys from os import path from settings import * from sprites import * from tilemap import * # HUD functions def draw_player_...
[ "chris@kidscancode.org" ]
chris@kidscancode.org
9bed3fa1060e69fa4ba28bf4533886331fe4a9d0
a56a74b362b9263289aad96098bd0f7d798570a2
/venv/lib/python3.8/site-packages/jedi/__init__.py
efec776d28c4f230fc6258bb8ed0734ca99a390a
[ "MIT" ]
permissive
yoonkt200/ml-theory-python
5812d06841d30e1068f6592b5730a40e87801313
7643136230fd4f291b6e3dbf9fa562c3737901a2
refs/heads/master
2022-12-21T14:53:21.624453
2021-02-02T09:33:07
2021-02-02T09:33:07
132,319,537
13
14
MIT
2022-12-19T17:23:57
2018-05-06T08:17:45
Python
UTF-8
Python
false
false
1,749
py
""" Jedi is a static analysis tool for Python that can be used in IDEs/editors. Jedi has a focus on autocompletion and goto functionality. Jedi is fast and is very well tested. It understands Python and stubs on a deep level. Jedi has support for different goto functions. It's possible to search for references and lis...
[ "kitae.yoon@deliveryhero.co.kr" ]
kitae.yoon@deliveryhero.co.kr
d49c9778d1b665719a55615fd53877ad21e877ef
f4726db4ec192dee3709c6d474b1fb9a743e9d2f
/rllib/policy/derived_policy.pyi
b8cb42228bec72e61aa291b9c01e0b19858e26aa
[ "MIT" ]
permissive
SamueleMeta/optimal_is
fc32dbec2eaa1ceb24a70a0c6c7d982bd7cb2c69
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
refs/heads/master
2023-03-05T23:25:22.651481
2021-02-13T21:30:30
2021-02-13T21:30:30
323,657,959
0
0
null
null
null
null
UTF-8
Python
false
false
430
pyi
from typing import Any, Tuple from torch import Tensor from rllib.dataset.datatypes import TupleDistribution from .abstract_policy import AbstractPolicy class DerivedPolicy(AbstractPolicy): base_policy: AbstractPolicy def __init__( self, base_policy: AbstractPolicy, dim_action: Tuple, *args: Any, *...
[ "metasamuele@gmail.com" ]
metasamuele@gmail.com
3569dc7db9ff335a1c3b89a07ae547102c6248d4
2445f8b8f1acac7dfcc8fc51e0c3769958813aa2
/tic_tac_toe_who_wins/tic_tac_toe_who_wins.py
e4e5be9ff130dbed6ccb260e12498d2709c1e6e6
[]
no_license
qinjker/codefights
6ed992d7f7ddadd3bd0a6c55290efd86aec823c2
2516bd03e9f980c3561c8e9e5fa2375dce5e78ef
refs/heads/master
2022-11-15T02:30:30.844734
2020-07-15T21:11:14
2020-07-15T21:11:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
# https://app.codesignal.com/challenge/sqoxMxgWEannMAZgz g = eval(dir()[0])[0] c = list(zip(*g)) # columns d = [[g[i][abs(y-i)] for i in (0,1,2)] for y in (0,2)] # diagonals m=9 # game numbers are from 0 to 8 => denote 9 as a draw for l in g+c+d: # lines v=map(lambda x: int(x)%2, l) if len(set(v)) == 1: ...
[ "unabl4@gmail.com" ]
unabl4@gmail.com
755476defc5836e65df85fa05e744f4f9d124091
320bf3ddd6233577d9f2f08f046eaef96f881e4e
/simplemooc/core/migrations/0003_delete_course.py
82d12c308a1d25042c6b3c5194f3edd16958cf8b
[ "MIT" ]
permissive
leorzz/simplemooc
057ba3e220c20907017edfd8d0fc0422f9a6d99c
8b1c5e939d534b1fd729596df4c59fc69708b896
refs/heads/master
2022-10-22T02:24:46.733062
2017-12-17T16:37:04
2017-12-17T16:37:04
112,488,280
0
1
MIT
2022-10-08T17:50:17
2017-11-29T14:52:23
Python
UTF-8
Python
false
false
357
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-26 17:10 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20171126_1647'), ] operations = [ migrations.DeleteModel( ...
[ "rizzi.leo@gmail.com" ]
rizzi.leo@gmail.com
f85bc71a23b275f64f4cea19e2bf37fe66811858
6ab810f6ca51dc2e2d0b7197fc1866b738ca70a2
/Contest/WC220/5632.检查边长度限制的路径是否存在.py
99672ae0fea2d94e8370b032deb4d0077b810c94
[ "MIT" ]
permissive
ApocalypseMac/LeetCode
2309223be0c3e2969850cf1770eef2a447d39317
84c229eaf5a2e617ca00cabed04dd76d508d60b8
refs/heads/master
2023-04-14T19:22:34.340333
2021-03-28T05:20:40
2021-03-28T05:20:40
282,896,723
1
2
MIT
2020-07-29T05:05:19
2020-07-27T12:49:40
Python
UTF-8
Python
false
false
1,423
py
# Union-Find with path compression and union with rank class UF: def __init__(self, n): self.count = [1] * n self.parent = [_ for _ in range(n)] def find(self, i): # find root(i) and compress the path if self.parent[i] != i: self.parent[i] = self.find(self.parent[i]) ...
[ "ApocalypseMac@users.noreply.github.com" ]
ApocalypseMac@users.noreply.github.com
8d21895e4f8ae3600a50c999cb10739d590570f8
e940e2d5e0696b9f1385962100796c3d990c33d1
/chapter2/km_to_mi_exercise_2.9.py
3ca70fc8cc160c22d3cd9d6fab1899fb11ef3d88
[]
no_license
sfwarnock/python_programming
a84b6c3d18f55e59d50e5299cedd102c265dfc6b
aa45be8984cd80094f685d4fc4d0b9aca9e9eefb
refs/heads/master
2021-04-12T03:16:49.267143
2018-08-06T12:24:00
2018-08-06T12:24:00
125,944,584
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
# -*- coding: utf-8 -*- """ Created on Mon Apr 2 15:24:48 2018 @author: Scott Warnock """ # kilometers to miles, exercise 2.9. # This program converts user inputed kilometers to miles. def main(): km = eval(input("Type number of kilometers: ")) mi = km / 1.609344 print(km, "kilometers i...
[ "noreply@github.com" ]
sfwarnock.noreply@github.com
c5c270d9d0a0aa46c1aa87079535abce706304dd
d24cef73100a0c5d5c275fd0f92493f86d113c62
/SRC/common/IO/GUI/gtklogger/__init__.py
ad86c2b0b9e1e9b3f80ad9a2fa796de689fe7c00
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
rlinder1/oof3d
813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee
1fb6764d9d61126bd8ad4025a2ce7487225d736e
refs/heads/master
2021-01-23T00:40:34.642449
2016-09-15T20:51:19
2016-09-15T20:51:19
92,832,740
1
0
null
null
null
null
UTF-8
Python
false
false
732
py
# -*- python -*- # $RCSfile: __init__.py,v $ # $Revision: 1.2.24.1 $ # $Author: langer $ # $Date: 2013/06/28 14:42:54 $ # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities as...
[ "faical.congo@nist.gov" ]
faical.congo@nist.gov
eecf95b08f8e5d65f9a6f9a96f42b3d71fff8c7d
f60db22647be669f0c5fadbd2e8dbb44a3e7df47
/SIRS-Model/scripts/plot_comparison.py
0d5477796d4bd959ba84bb933243e8d98d0e71ae
[]
no_license
bergolho1337/Infection-Diseases
e2ab6e931db7b56b257440f3ad26a19bba7bca17
616a5699a37f65deb9ed2f4667db8146deb5cf47
refs/heads/master
2021-04-17T15:08:03.266550
2020-03-29T17:53:38
2020-03-29T17:53:38
249,453,639
1
0
null
null
null
null
UTF-8
Python
false
false
2,318
py
# This script can be use to compared two different simulations import sys import numpy as np import matplotlib.pyplot as plt def read_results(input_file): data = np.genfromtxt(input_file) n = len(data) t = data[:,0] s = data[:,1] i = data[:,2] r = data[:,3] return t, s, i, r def plot_r...
[ "berg@ice.ufjf.br" ]
berg@ice.ufjf.br
dd8d51f13aa79c5e43e063e457be999a52e0917f
e57f62ce463ae10e2a61bfee6682f92773d56520
/scripts/generate_scenario1.py
0bf8610d18f914205467e2c68e2f618935268388
[ "MIT" ]
permissive
rffowler/simim
7f5a0ac7df5abce8b13627ef3f838d4196fb657e
d5b9793ebb469fe903fdff0f98898b6f87a433b3
refs/heads/master
2020-05-18T19:34:46.965775
2019-04-24T13:58:08
2019-04-24T13:58:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,416
py
import os import numpy as np import pandas as pd import simim.data_apis as data_apis import simim.scenario as scenario """ Scenario 1 ("MISTRAL Arc Scenarios", Usher & Hickford by email 3/19): Number of new dwellings From 2020, growth is slowed in existing settlements, decreased to 70% of baseline. The other 30% of b...
[ "a.p.smith@leeds.ac.uk" ]
a.p.smith@leeds.ac.uk
97f7a17f9292f16f637ec75d3a71835c16bf60ef
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_069/ch32_2019_09_25_13_33_39_817839.py
37d3d262f999bad77711270f9a2c1600f6a60fd9
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
d = input('Tem alguma dúvida? ') while d != 'não': print('Pratique mais') d = input('Tem alguma dúvida? ') if d = 'não': print('Até a próxima')
[ "you@example.com" ]
you@example.com
dd3bc5605a65e2780c26be735aca8e452ac98862
3b2b0c3edc800bfda49e58402bdf60dd42138615
/qwb2019/xx_warm_up/pow.py
85030c14f46f470c3c682ac7895ac03b8d079ee9
[]
no_license
xmoct/Buuoj-Pwn
e3672ba1c1a914754596a7fb29384874b54683db
2425fa697e7ba0bd8a72eeb0e9b4ef07f89c9e17
refs/heads/main
2023-06-26T05:17:57.942639
2021-07-15T01:47:12
2021-07-15T01:59:24
386,145,955
1
0
null
2021-07-15T03:09:28
2021-07-15T03:09:28
null
UTF-8
Python
false
false
1,842
py
#!/usr/bin/python -u # encoding: utf-8 import random, string, subprocess, os, sys from hashlib import sha256 os.chdir(os.path.dirname(os.path.realpath(__file__))) def proof_of_work(): chal = ''.join(random.choice(string.letters+string.digits) for _ in xrange(16)) sys.stdout.write(chal + "\n") sys.stdout....
[ "ilovekeer@users.noreply.github.com" ]
ilovekeer@users.noreply.github.com
90207baab721e4f3adac0ff3b78d6c7f216b2836
479a0afe76ee1a90b2e72acc02af933ab3046134
/sms.py
0c6bb533d3089febf36d431d69078996d08ae67c
[]
no_license
0428402001/appserver
a9b86d874b89bdf1d092adec5c1732a6f924f468
d7da440a7940eed229ff7a710ab3a6b96da7b007
refs/heads/master
2021-01-12T15:59:34.084804
2016-10-24T08:28:39
2016-10-24T08:28:39
69,328,962
0
0
null
null
null
null
UTF-8
Python
false
false
1,668
py
#!/usr/local/bin/python #-*- coding:utf-8 -*- # Author: jacky # Time: 14-2-22 下午11:48 # Desc: 短信http接口的python代码调用示例 import httplib import urllib import random #服务地址 host = "sms.253.com" #端口号 port = 80 #版本号 version = "v1.1" #查账户信息的URI balance_get_uri = "/msg/QueryBalance" #智能匹配模版短信接口的URI sms_send_uri = "/msg/HttpBa...
[ "root@localhost" ]
root@localhost
e0b397fbad8aa6fac26609ad84a37d8878a414d0
c9fe27dd429741f2fd6d567e0aa157871fa89bed
/fork/consensus/pot_iterations.py
db1f867aab1f38722a51699a9aa82afb0b1df4ab
[ "Apache-2.0" ]
permissive
Fork-Network/fork-blockchain
858d3aefe359a3fff547cf4464f45216b3718fa3
4e7c55b5787376dabacc8049eac49c0bb0bfd855
refs/heads/main
2023-06-23T00:28:14.607265
2021-07-24T02:23:22
2021-07-24T02:23:22
388,574,519
7
2
null
null
null
null
UTF-8
Python
false
false
2,793
py
from fork.consensus.constants import ConsensusConstants from fork.consensus.pos_quality import _expected_plot_size from fork.types.blockchain_format.sized_bytes import bytes32 from fork.util.hash import std_hash from fork.util.ints import uint8, uint64, uint128 def is_overflow_block(constants: ConsensusConstants, sig...
[ "bekbol17281923@outlook.com" ]
bekbol17281923@outlook.com
b62c8417cf176d389d9b394eea5aa52997704fd6
d79b689e17b877b8b412bfdf8715853cc1693e4b
/Server/Python/src/dbs/dao/MySQL/FileType/Insert.py
de06ae4d19ea540a6df84f2cf4d93ffea4f167a9
[]
no_license
ticoann/DBS
254d9b8423b2ac92ce5826b677024b38a4484dcb
7f36d95a0410216fcae77a82f5d60ecca06857a4
refs/heads/master
2021-01-20T16:06:11.641439
2014-03-10T18:28:56
2014-03-10T18:28:56
17,671,825
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
#!/usr/bin/env python """ DAO Object for FileTypes table """ __revision__ = "$Revision: 1.3 $" __version__ = "$Id: Insert.py,v 1.3 2010/08/18 19:46:37 yuyi Exp $ " from dbs.dao.Oracle.FileType.Insert import Insert as OraFileTypesInsert class Insert(OraFileTypesInsert): pass
[ "metson@4525493e-7705-40b1-a816-d608a930855b" ]
metson@4525493e-7705-40b1-a816-d608a930855b
d5281fbe8359c6d5c5583f237715ea8fd4bc743a
a089fab4b0e363ba48bff57b3948c32172570e8f
/home_connect_sdk/models/array_of_events.py
b9c11f589292d80fd4af1d4e4753d6ab0137d7a9
[]
no_license
jeroenvdwaal/home-connect-sdk
ed2e44a01b72d64d17d41af8400eb2e42792232c
3c0ab6791bb0e9df95154f8f177d889ebef0c749
refs/heads/master
2022-04-23T01:20:32.621570
2020-04-26T09:40:16
2020-04-26T09:40:16
255,988,008
0
0
null
null
null
null
UTF-8
Python
false
false
4,296
py
# coding: utf-8 """ Home Connect API This API provides access to home appliances enabled by Home Connect (https://home-connect.com). Through the API programs can be started and stopped, or home appliances configured and monitored. For instance, you can start a cotton program on a washer and get a notification...
[ "jeroenvdwaal@gmail.com" ]
jeroenvdwaal@gmail.com
4281a4f3ae2a7a0a94d0a2bd01e8742fce6647bc
d07568b5c0f96bacee1bb216d7d1bb04d1f62350
/pyadb/adb/sub_command/reverse.py
746950db8db5ff23733ce7da54fd196df792eaaa
[ "MIT" ]
permissive
HsOjo/OjoPyADB
faa4d7eab8fea2271b634ff9dff7806c4778607f
4f5272b5a838a09a3a5d4653dea7e24b5103283d
refs/heads/master
2021-01-05T10:36:02.198929
2020-04-02T07:48:28
2020-04-02T07:48:28
240,995,641
2
0
null
null
null
null
UTF-8
Python
false
false
151
py
import pyadb from .mapping import Mapping class Reverse(Mapping): def __init__(self, adb: 'pyadb.ADB'): super().__init__(adb, 'reverse')
[ "1134031392@qq.com" ]
1134031392@qq.com
ee238cf5deb8651adb6660ab20a68b987505da0d
38c0ca15d7b067bf04e8bf0b16bbf33f39bc050a
/TaobaoSdk/Request/ItemPropimgUploadRequest.py
c2252650392458359a4ca6bb39b28deb8f7a73e0
[]
no_license
yuchangchun/TaobaoOpenPythonSDK
04da9a6f74c449b9cf93620d13424a3e1851cedc
668436f6f934602a236e57b9a276fb3876c524d0
refs/heads/master
2021-01-18T07:49:25.743392
2012-07-04T09:55:11
2012-07-04T09:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,502
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 et: ## @brief 添加一张商品属性图片到num_iid指定的商品中 传入的num_iid所对应的商品必须属于当前会话的用户 图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的 商品属性图片只有享有服务的卖家(如:淘宝大卖家、订购了淘宝多图服务的卖家)才能上传 商品属性图片有数量和大小上的限制,最多不能超过24张(每个颜色属性都有一张)。 # @author wuliang@maimiaotech.com # @date 2012-07-03 1...
[ "liyangmin@maimiaotech.com" ]
liyangmin@maimiaotech.com
921ddc6ec751c68014600168292dade109cbfaf6
3e4c69317323bca865b025503b60bf83d3ae65f8
/tests/commands/update/test_update_panel_cmd.py
5be285ad7152d4a50627c2c2c9d79f410dc1c20b
[ "BSD-3-Clause" ]
permissive
tapaswenipathak/scout
f59beaa997a45487ac96c3b3e560b5e5aa9b30ae
c9b3ec14f5105abe6066337110145a263320b4c5
refs/heads/master
2020-05-30T11:13:25.662300
2019-05-28T09:26:25
2019-05-28T09:26:25
189,694,812
1
0
BSD-3-Clause
2019-06-01T05:36:35
2019-06-01T05:36:34
null
UTF-8
Python
false
false
1,144
py
# -*- coding: utf-8 -*- from scout.commands import cli from scout.server.extensions import store from scout.utils.date import get_date def test_update_panel(mock_app): """Tests the CLI that updates a panel""" runner = mock_app.test_cli_runner() assert runner # Test CLI base, no arguments provided ...
[ "rasi.chiara@gmail.com" ]
rasi.chiara@gmail.com
1a21daddf51370d36abcb9b33b7a35727cf0136e
8730e891f8aa953d668b83ba1bea66a4af18c1bd
/markov.py
2fe35ca011ad081b603653d90880ca288d65af01
[]
no_license
dvgupta90/sept-11th---markov-chains
f82897901c4abe2ded552a8cb727c6ddb4ecb319
c6666381a8e40a8f3b1a14e0ebe3935c19a19cb0
refs/heads/master
2020-03-28T13:08:03.470602
2018-09-12T19:40:41
2018-09-12T19:40:41
148,369,207
0
0
null
null
null
null
UTF-8
Python
false
false
4,841
py
"""Generate Markov text from text files.""" from random import choice import sys import string def open_and_read_file(): """Take file path as string; return text as string. Takes a string that is a file path, opens the file, and turns the file's contents as one string of text. """ # your code ...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
82dc62c099b7bf4477389ac3920f4ed0e16e30f0
fd18ce27b66746f932a65488aad04494202e2e0d
/day03/codes/c05_httpserver_SimpleHTTPRequestHandler.py
fb8fe3e454da01111f1960fae3f28c11e936fdfd
[]
no_license
daofeng123/ClassCodes
1acbd843836e550c9cebf67ef21dfca9f6b9fc87
fbcd1f24d79b8bb56ad0669b07ad118064609612
refs/heads/master
2020-06-24T12:34:28.148197
2019-08-15T03:56:40
2019-08-15T03:56:40
198,963,469
3
0
null
2019-07-26T06:53:45
2019-07-26T06:53:44
null
UTF-8
Python
false
false
293
py
# coding = utf-8 import http.server print('启动服务器') server = http.server.HTTPServer( server_address=('', 11111), RequestHandlerClass=http.server.SimpleHTTPRequestHandler, bind_and_activate=True) print('接受用户请求') server.serve_forever() print('服务器退出')
[ "38395870@qq.com" ]
38395870@qq.com
ce691053b1e8c3c5e0249bb20f22c59ee8e4d822
3ffb6ec95903808bb39f150b309f9b97c1e8c909
/migrations/0010_auto_20160327_0814.py
a5758be017a201f57dc894ada4d5560f4d0592ab
[]
no_license
jd615645/course
57b11ebf855e6c2b5c5eca4b924708ba29397f04
ce66afda77dd3b3a86ea0c51ff4ae79633b9db3e
refs/heads/master
2021-01-12T04:59:16.151645
2016-09-07T05:52:37
2016-09-07T05:52:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0009_course_of_user_idlist'), ] operations = [ migrations.RenameField( model_name='course_of_user', ...
[ "davidtnfsh@gmail.com" ]
davidtnfsh@gmail.com
094a2c8c465e4b413b8f401799f46f46fba13ec2
14d7f5f83b6f84871ff6ebfa0af4c17b7115a33f
/eco_models/mpb/MPB_Cold_T_test_v2.py
4bd03b1c85c4adf18a5eed77ed16f40c16791ae2
[]
no_license
tonychangmsu/Python_Scripts
8ca7bc841c94dcab36743bce190357ac2b1698a5
036f498b1fc68953d90aac15f0a5ea2f2f72423b
refs/heads/master
2016-09-11T14:32:17.133399
2016-03-28T16:34:40
2016-03-28T16:34:40
10,370,475
2
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
#Title: MPB_Cold_T_test.py #Author: Tony Chang #Date: 02.03.2015 #Abstract: Testing the functionality of the MPB_coldT_model.py functions import MPB_coldT_model as mpb import numpy as np import pandas as pd import matplotlib.pyplot as plt #main datafile = 'E:\\MPB_model\\MPB_phenology\\DATA\\temp.txt' raw_temp = pd.r...
[ "tony.chang@msu.montana.edu" ]
tony.chang@msu.montana.edu
d13c5152b51553990ec55f5f9d8873aad354e35d
b7f8c9288a024a41435d267be835c23cb38eaa6c
/windows/uiHandler22.py
4bcfeb5cb58ec42b0d2a4a8cfdbdb10e74de3c33
[]
no_license
wasifzaman/ryb_tms_cleaned_old_skin
fa53ac41d691ab129c9422da34f7c75636809234
cd84d5f12128ebeb181c06ae5ec5403111e9ceb2
refs/heads/master
2021-01-10T20:23:05.045562
2015-04-20T17:54:43
2015-04-20T17:54:43
31,466,490
0
0
null
null
null
null
UTF-8
Python
false
false
2,723
py
import sys, os images = os.path.abspath(os.pardir) + '\images\\' #image directory from tkinter import * import os.path from PIL import Image, ImageTk class AppFrame(Frame): def __init__(self, parent, *args, **kwargs): Frame.__init__(self, parent, *args, **kwargs) self.parent = parent self.curRow = 0 self.c...
[ "zelvenstormrage@gmail.com" ]
zelvenstormrage@gmail.com
bab883e79a711d4c3d0533a3c952dd888506fcbd
77f5a3a422cca02694f2b2161e94dfaa4509b7ff
/CPD_search/recover_loop.py
828e4844e38c60f766265765a41f39c79c9e74f5
[ "MIT" ]
permissive
interstellarmedium/DSHARP_CPDs
850b0c345056560f4b20f763a4d7b3f72eae1c40
40d8f02945e0d412c5c912b050d4a3d8c6dbbfa2
refs/heads/master
2023-03-19T13:39:52.406972
2021-03-15T19:26:16
2021-03-15T19:26:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,712
py
import os, sys, time import numpy as np from astropy.io import fits sys.path.append('../') import diskdictionary as disk # target disk/gap; iteration target = 'AS209' gap = 0 ix = '1' # load the injection file data inj_file = 'injections/'+target+'_gap'+str(gap)+'_mpars.'+ix+'.txt' Fstr, mstr, rstr, azstr = np.loadtx...
[ "sandrews@cfa.harvard.edu" ]
sandrews@cfa.harvard.edu
5059348a0a9cb6cdf3c361d36525ebcb11729436
b853c16efafa74a9e1cb076008a17c9d85389fca
/HOME/笔记/python/Python基础代码-G/lianxi3.py
81620b3c75d3d13bb577038d547c3838f5679b7b
[]
no_license
Jason0221/backup
14c48f1adb871b915d6f0ba49a26396e7cf0cd64
dfd54cbcf7c27b0df6249104747e9a7ceffcb392
refs/heads/master
2020-06-03T13:14:39.751679
2017-05-15T08:50:38
2017-05-15T08:50:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
#!/usr/bin/python #coding=utf-8 score=input("please input your score:") if score>100 or score<0: print "please input correct score!" exit() if score >= 90: print "your grade is A" elif score >= 80: print "your grade is B" elif score >= 70: print "your grade is C" elif score >= 60: ...
[ "jasonlearning@outlook.com" ]
jasonlearning@outlook.com
57ddefe3be214bc5e8a9d4df54317ebb336d9647
73aaee1f4a577de3fe839ec7f3bbbb483b822886
/webstruct/model.py
fe1b282dd7eb8ff72b745325e6dc75f210666de2
[]
no_license
ankumar/webstruct
720486eff4858cfae38bd576d35360aac866424c
d74a7f6384da7bda8cad8ef3412e28c3b3e74be4
refs/heads/master
2020-12-27T08:16:22.055630
2014-03-26T11:05:54
2014-03-26T11:05:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,439
py
# -*- coding: utf-8 -*- """ :mod:`webstruct.model` contains convetional wrappers for creating NER models. """ from __future__ import absolute_import import urllib2 from webstruct.loaders import HtmlLoader from webstruct.feature_extraction import HtmlTokenizer from webstruct.sequence_encoding import IobEncoder from web...
[ "kmike84@gmail.com" ]
kmike84@gmail.com
3fca879e1e299ad08225c4abadc5eb68b62e7f22
e65d16ea1e8d412bac75a809be6d390126bdf528
/homeassistant/components/fully_kiosk/sensor.py
eed14f246743bbde679b91365739000b40c70e51
[ "Apache-2.0" ]
permissive
syssi/home-assistant
6347d57866cb16ab9d4499ad38e2be6f0399077f
fd43687833741b21221769d46b4d1ecef8a94711
refs/heads/dev
2023-08-17T09:31:52.680518
2023-06-11T14:22:12
2023-06-11T14:22:12
97,874,495
6
16
Apache-2.0
2023-09-13T06:31:21
2017-07-20T20:12:37
Python
UTF-8
Python
false
false
5,355
py
"""Fully Kiosk Browser sensor.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassist...
[ "noreply@github.com" ]
syssi.noreply@github.com
22ac4376de6620f219d11cee55ae014dd5755fc3
22bea740c45a8bca47f97a1f2d69c401084a7fa5
/nakhll_market/migrations/0012_auto_20191214_0244.py
f134cc4cb796a0714152e7a7dddd4e7562ddd534
[]
no_license
learnasgo/app
7c60c3556350a6dc00a1c5548b86d1c33d85a920
876c1af2e477b66282f11a7119c0f9c6ea47d70c
refs/heads/main
2023-01-24T06:01:03.300104
2020-11-21T15:00:51
2020-11-21T15:00:51
314,040,000
0
1
null
null
null
null
UTF-8
Python
false
false
534
py
# Generated by Django 2.2.6 on 2019-12-13 23:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nakhll_market', '0011_auto_20191213_1608'), ] operations = [ migrations.AlterField( model_name='alert', ...
[ "admin@example.com" ]
admin@example.com
b7d518d6faf6de7d66fd2d1615c2ffd8e79e4dcf
de577e64440d2c330ff0018e8bfb7cf3abf11b70
/fsleyes/actions/savelayout.py
91ea7a927c662f35a746e55e31e8fa8ff63bb96a
[ "Apache-2.0", "CC-BY-3.0", "BSD-3-Clause" ]
permissive
CGSchwarzMayo/fsleyes
bb887bf8e8dd46bb9e0e3d5c3028d97811fabad1
37b45d034d60660b6de3e4bdf5dd6349ed6d853b
refs/heads/master
2023-09-01T01:39:38.508051
2023-08-21T18:21:34
2023-08-21T18:21:34
272,476,938
0
0
NOASSERTION
2020-06-15T15:34:36
2020-06-15T15:34:34
null
UTF-8
Python
false
false
2,530
py
#!/usr/bin/env python # # savelayout.py - The SaveLayoutAction # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides the :class:`SaveLayoutAction` class, an action which allows the user to save the current layout. """ import fsleyes.strings as strings import fsleyes.layouts as layouts from . i...
[ "pauldmccarthy@gmail.com" ]
pauldmccarthy@gmail.com
aa9c44433ea78f88139690946b34a9da844de17f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03804/s467230935.py
41c765bdaf1bf682d974e7fec07873a30cf24157
[]
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
429
py
from sys import exit n, m = map(int, input().split()) A = [input() for _ in range(n)] B = [input() for _ in range(m)] for x, a in enumerate(A): if x > n - m + 1: break for i in range(n - m + 1): if a[i: i + m] == B[0]: for j in range(m): if A[x + j][i: i + m] != B[j]:...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1c4958090d67f00121d0c2e36d6270362721623b
0fbb9807b11d859139bfe4373437e67f8999759e
/regulus/models/inv_reg.py
cb792436fe67acd429e9bfb705d8f2634d82831b
[ "BSD-3-Clause" ]
permissive
yarden-livnat/regulus
e6ef5f73f664fdc3f1014142e0d81233b903aaa2
ab78a5ef7d2dcdc95f5f8e16dfe58c8db296812f
refs/heads/master
2021-07-24T23:33:19.900552
2020-03-19T20:56:39
2020-03-19T20:56:39
100,637,501
2
2
BSD-3-Clause
2018-03-30T01:12:41
2017-08-17T19:20:24
JavaScript
UTF-8
Python
false
false
3,790
py
import math import numpy as np import pandas as pd SIGMA = 0.1 N = 40 def radial_kernel(x0, X, sigma): return np.exp(np.sum((X - x0) ** 2, axis=1) / (-2 * sigma * sigma)) def gaussian(sigma): f = 1 / (math.sqrt(2*math.pi) * sigma) def kernel(x, X): return f * np.exp(np.sum((X - x) ** 2, axis=1...
[ "yarden.livnat@gmail.com" ]
yarden.livnat@gmail.com
99c395f51fc5d9cb5feca38d7e2bb511713c8e70
6d6bf817a49b99c391a2d641474823843a54f78c
/slack_history.py
15189db64fe5ea5b272e50866440093959f59362
[]
no_license
ryanvilbrandt/personal
19e61b158d5a5535f8086165a947af426bb06cbe
0bf34e792c4239fd1c132f939ec39d99adf2c8c1
refs/heads/master
2023-09-01T21:37:00.264945
2023-08-22T06:40:53
2023-08-22T06:40:53
19,037,567
0
1
null
2022-04-25T14:44:29
2014-04-22T16:47:04
Python
UTF-8
Python
false
false
7,925
py
# https://gist.github.com/Chandler/fb7a070f52883849de35 # MIT License # Copyright (c) 2016 Chandler Abraham # 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 w...
[ "ryan.v@zonarsystems.com" ]
ryan.v@zonarsystems.com