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
25903dbfef9fd5252e50747533fa66260e3ab9e5
e93690e8ac06fd6aa2f7fe7d3ea56978e787e496
/memsurp/optimizeAUC/corpusIterator_FuncHead.py
07f0f5ff24c7ad2172208444b6b5c477f629b4e5
[]
no_license
m-hahn/optimization-landscapes
8446fbb0ae783f7aa76278e8a5f4cf5e6f4b2cd8
b16f640dd855a912f52844882b3de701e5b9eca6
refs/heads/master
2023-08-12T01:44:18.434912
2021-10-03T14:37:11
2021-10-03T14:37:11
273,661,277
0
0
null
2021-04-15T04:39:52
2020-06-20T07:36:12
TeX
UTF-8
Python
false
false
1,782
py
import os import random import sys header = ["index", "word", "lemma", "posUni", "posFine", "morph", "head", "dep", "_", "_"] from corpusIterator_V import CorpusIterator_V as CorpusIterator def reverse_content_head(sentence): CH_CONVERSION_ORDER = ["cc", "case", "cop", "mark"] # find paths that should be ...
[ "mhahn29@gmail.com" ]
mhahn29@gmail.com
07e29683776350a46a70a1834d2f9703c30ae904
cd0068a04a706aa902947d5f1233a7f07bec150c
/Python/function_practice/test.py
e04214206722a089e41a6cb0247049dcf67c3511
[]
no_license
eLtronicsVilla/Miscellaneous
b0c579347faad12cee64408c2a112b33b38a6201
e83f44af985faad93336c1307aeae8694905c3e3
refs/heads/master
2021-11-28T04:22:08.278055
2021-08-14T19:53:29
2021-08-14T19:53:29
161,993,103
0
0
null
2021-08-14T19:53:29
2018-12-16T11:11:10
C++
UTF-8
Python
false
false
191
py
a = "ghdsfgsdfgyusdfhsdyf" def myfun(st): for count in range (len(st)): #if count % 2 == 0: a[count].upper() if count % 2 == 0: a[count].upper() else: return a[count] print myfun(a)
[ "eltronicsvilla17@gmail.com" ]
eltronicsvilla17@gmail.com
e892fe2df3229dc7868015339ed2fe40e137afc4
50e3fcca6e2a9a73ed52d231a739f70c28ed108f
/Array/majorityElement.py
e42d323d968806d0f1bb085d44161f4552f11873
[]
no_license
thomasyu929/Leetcode
efa99deaa2f6473325de516d280da6911c2cc4ab
780271875c5b50177653fd7fe175d96dd10e84e2
refs/heads/master
2022-03-29T00:11:01.554523
2020-01-03T00:28:22
2020-01-03T00:28:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
class Solution: def majorityElement(self, nums: List[int]) -> int: # from collections import Counter # c = Counter() # l = len(nums) # for i in nums: # c[i] += 1 # for j in nums: # if c[j] > l/2: # return j nums.sort() r...
[ "yby4301955@gmail.com" ]
yby4301955@gmail.com
9b29a78ded8e61ef2fabe53d2219ce493c7b96ff
a01fb7bb8e8738a3170083d84bc3fcfd40e7e44f
/python3/concurrent/thread_pool.py
05cbd9eed4675825ea197ce2010b63c306ef9333
[]
no_license
jk983294/CommonScript
f07acf603611b4691b176aa4a02791ef7d4d9370
774bcbbae9c146f37312c771c9e867fb93a0c452
refs/heads/master
2023-08-21T17:50:19.036159
2023-08-16T00:22:03
2023-08-16T00:22:03
42,732,160
5
0
null
null
null
null
UTF-8
Python
false
false
310
py
import requests from multiprocessing import Pool def get_website_data(url): r = requests.get(url) return r.url def main(): urls = ['http://www.qq.com', 'http://www.baidu.com', 'http://www.163.com'] pool = Pool(2) print(pool.map(get_website_data, urls)) main()
[ "jk983294@gmail.com" ]
jk983294@gmail.com
3faaf222ea16d874291c8ec5e97e8029a17196f9
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_136/ch15_2020_09_23_18_06_11_320261.py
0ad14d4cfae34f3674b0024de4d84b0874353479
[]
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
201
py
def qual_o_seu_nome (nome): if nome != 'Chris': return 'olá, {0}'. format(b) else: return "Todo mundo odeia o Chris" b= input('Qual o seu nome ? ') print (qual_o_seu_nome(b))
[ "you@example.com" ]
you@example.com
6d05f518b88c6d010936fa6f1592478e35631d4e
4a48593a04284ef997f377abee8db61d6332c322
/python/pyqt/pyqt4/event_handler_button_to_label.py
b74cdc35939949307ba1928340e5524989956ed3
[ "MIT" ]
permissive
jeremiedecock/snippets
8feaed5a8d873d67932ef798e16cb6d2c47609f0
b90a444041c42d176d096fed14852d20d19adaa7
refs/heads/master
2023-08-31T04:28:09.302968
2023-08-21T07:22:38
2023-08-21T07:22:38
36,926,494
26
9
MIT
2023-06-06T02:17:44
2015-06-05T10:19:09
Python
UTF-8
Python
false
false
2,555
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org) # 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 witho...
[ "jd.jdhp@gmail.com" ]
jd.jdhp@gmail.com
b64e308ae46337de7f37c6a020ad8ac0fb64c697
fcb04d0a3deb909dae2113a3db2fb73f7d01f959
/GlyphProofer/dist/GlyphProofer.app/Contents/Resources/lib/python2.6/numpy/core/generate_numpy_api.py
9cbc317ac0014bed78f02a3172a194d8bcc71f5e
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
houseind/robothon
9e90dc7353aea411f8b322c7fbdb4f8e456ca171
b483ca3f6c6c92366b383c9f0df89d1541697723
refs/heads/master
2021-03-12T19:38:29.897078
2012-11-01T11:10:41
2012-11-01T11:10:41
3,603,847
9
1
null
2012-11-01T11:10:42
2012-03-02T16:27:43
Python
UTF-8
Python
false
false
5,728
py
import os import genapi types = ['Generic','Number','Integer','SignedInteger','UnsignedInteger', 'Inexact', 'Floating', 'ComplexFloating', 'Flexible', 'Character', 'Byte','Short','Int', 'Long', 'LongLong', 'UByte', 'UShort', 'UInt', 'ULong', 'ULongLong', 'Float', 'Double', 'LongDoub...
[ "ben@benkiel.com" ]
ben@benkiel.com
c536da30d3da43032f021111853431ccbb8adf1b
9c368c9fe78a2dd186daeed2d0714651c1c27d66
/budgets/get_mhalo_mstar.py
50fab2c5f2c0688a54ca32dccf8b55c293b4b468
[]
no_license
sarahappleby/cgm
5ff2121919e36b10069692f71fb1dc03f3678462
656bf308771dd3ff2f8c2e77107cdc14507c7ce7
refs/heads/master
2023-01-24T03:10:01.610418
2023-01-20T11:04:31
2023-01-20T11:04:31
160,820,718
2
0
null
null
null
null
UTF-8
Python
false
false
3,274
py
import numpy as np import matplotlib.pyplot as plt import caesar import h5py import sys sys.path.append('/disk01/sapple/tools/') from plotmedian import runningmedian plt.rc('text', usetex=True) plt.rc('font', family='serif', size=16) def chi_squared(data, model, noise): return np.sum((data - model)**2 / noise**...
[ "sarahappleby20@gmail.com" ]
sarahappleby20@gmail.com
ebd08eae9bcd1f3925721941b6eaba64c6ab9977
581bcf321e0cc1cda534ec42632bc5902670e72f
/opportunities/migrations/0007_auto_20180219_0223.py
11b3814dc51c583476be15b6bdbc3ad6cab56b6e
[]
no_license
ToferC/careers
55514869604b99a6a7ba77bc0f8758a9871006ef
2d0144d54fc266667eb7a2204b15bd8915f1c163
refs/heads/master
2022-12-12T01:36:04.083525
2018-02-19T22:46:17
2018-02-19T22:46:17
122,020,129
0
0
null
null
null
null
UTF-8
Python
false
false
789
py
# Generated by Django 2.0.1 on 2018-02-19 02:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('opportunities', '0006_application_slug'), ] operations = [ migrations.RemoveField( model_name='...
[ "cgeist7@gmail.com" ]
cgeist7@gmail.com
ba7df1a0b462e87df8b3c4ab0a5b9b7ebf226990
dd2a28e9e4a2fc6395215a37c183571ebdaa71a2
/tests/test_get_wsgi_filter.py
4c77003e27e8c86b13c5335a9ab190a16a189ad9
[ "MIT" ]
permissive
TylerLubeck/plaster_pastedeploy
24cbf30413a79a7366f94d48002284e157aa249b
72a08f3fb6d11a0b039f381ade83f045668cfcb0
refs/heads/master
2020-05-23T11:40:00.198267
2019-04-12T06:04:23
2019-04-12T06:05:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,517
py
import os import plaster import pytest here = os.path.dirname(__file__) test_filter_path = "sample_configs/test_filter.ini" class TestSimpleURI(object): config_uri = test_filter_path @pytest.fixture(autouse=True) def loader(self, fake_packages, monkeypatch): monkeypatch.chdir(here) self...
[ "michael@merickel.org" ]
michael@merickel.org
684646cc590fe5d73304f6e2c0edf94c90857642
d274e22b1cc5d546855fe46b089b13cfe2f4047c
/april2020/tests/test_day20_ConstructBinarySearchTreeFromPreorderTraversal.py
f0dd539b934882b52770e05b92d4c9505c17a9fe
[]
no_license
varunkumar032/lockdown-leetcode
ca6b7a8133033110680dd226c897dd8a1482682b
15a72a53be9005eca816f018cb1b244f2aa4cdfb
refs/heads/master
2023-06-30T08:31:54.323747
2021-07-12T11:29:59
2021-07-12T11:29:59
260,616,280
0
0
null
2021-05-06T10:24:48
2020-05-02T04:52:37
Python
UTF-8
Python
false
false
982
py
from solutions.day20_ConstructBinarySearchTreeFromPreorderTraversal import TreeNode, bstFromPreorder def getInorderOfBst(root): return getInorderOfBst(root.left) + [root.val] + getInorderOfBst(root.right) if root else [] def test_day20_01(): test_input = [8,5,1,7,10,12] test_output_root = TreeNode(8) ...
[ "varunkumar032@gmail.com" ]
varunkumar032@gmail.com
95517002e7c7e7be9e9c51180c7cec9231cd9c78
2ff7e53d5e512cd762217ca54317982e07a2bb0c
/carbon/common/lib/markers.py
0220cad0f184b7451c57cb06a1d67fc596afd527
[]
no_license
nanxijw/Clara-Pretty-One-Dick
66d3d69426642b79e8fd4cc8e0bec23adeeca6d6
50de3488a2140343c364efc2615cf6e67f152be0
refs/heads/master
2021-01-19T09:25:07.555284
2015-02-17T21:49:33
2015-02-17T21:49:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
#Embedded file name: carbon/common/lib\markers.py import sys import blue import bluepy GetCurrent = blue.pyos.taskletTimer.GetCurrent ClockThis = sys.ClockThis def Mark(context, function, *args, **kw): """ Mark(context, function, ...) -> value Marks the current execution context (tasklet timer context stri...
[ "billchang.e@gmail.com" ]
billchang.e@gmail.com
a805d57e37399bf85a77464afee4f80cd64864d4
43dbf438287d1ea426d1cc0e201d4a56bfd20e21
/ABC/062/A.py
185d4e7573848d7f78ad821089d75da78a41adf9
[]
no_license
hatopoppoK3/AtCoder-Practice
c98e5b0377c46b440a79dcc0bd1790b508555672
c7385b0444baf18b7a7dc8e3003cc2074bc9b4ab
refs/heads/master
2023-02-23T03:45:45.787964
2023-02-07T12:59:51
2023-02-07T12:59:51
184,423,486
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
ans = ["A", "C", "A", "B", "A", "B", "A", "A", "B", "A", "B", "A"] x, y = map(int, input().split()) if ans[x - 1] == ans[y - 1]: print("Yes") else: print("No")
[ "hatopoppo0320@gmail.com" ]
hatopoppo0320@gmail.com
0a2cc2916934dce67c6c1ed1bae0f26374c48afe
d61c4e9d1fa8abbcb3445df9197d7ee8682948f0
/app01/migrations/0002_auto_20180829_1410.py
c7946602c608d92e2c4b7bde86a335efc281050f
[]
no_license
YangQian1992/Django-Module
52fb9097f2506b7bb4798a2e17e0f23c6a5cfa51
90058b5cda0d838ac060cf802fa31232f9579f6b
refs/heads/master
2020-03-27T12:28:19.638191
2018-10-10T06:28:59
2018-10-10T06:28:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,420
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-08-29 06:10 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app01', '0001_initial'), ] operations = [ ...
[ "1289089651@qq.com" ]
1289089651@qq.com
60f35f958847aa6ea3f8199544918d5fa9ec3095
6c22354f6b977762b02cb12752614dddcdef67d2
/reconcile/utils/glitchtip/models.py
772e0c6854ad88f99afef179376d287b8320a671
[ "Apache-2.0" ]
permissive
app-sre/qontract-reconcile
266a284b96fd4876305b3c76887e982f40a065bd
91734756b84d646ac1e4b5c4d8de2cc812ea6e46
refs/heads/master
2023-08-31T11:30:35.103253
2023-08-30T15:05:45
2023-08-30T15:05:45
157,718,650
33
72
Apache-2.0
2023-09-14T12:00:01
2018-11-15T13:47:25
Python
UTF-8
Python
false
false
6,197
py
from __future__ import annotations import re from collections.abc import MutableMapping from enum import Enum from typing import ( Any, Optional, ) from pydantic import ( BaseModel, Field, root_validator, validator, ) def slugify(value: str) -> str: """Convert value into a slug. Ada...
[ "noreply@github.com" ]
app-sre.noreply@github.com
9ca2a5cfdef0ef49a2609326d036b9a073035dac
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayOpenMiniVersionAuditCancelModel.py
c733da393d8bb49fa5fb142dd9e4f59162072b6e
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,430
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniVersionAuditCancelModel(object): def __init__(self): self._app_version = None self._bundle_id = None @property def app_version(self): return self._a...
[ "jiandong.jd@antfin.com" ]
jiandong.jd@antfin.com
4a540b24108f3805fb5a6f8a07e290798e6818fb
33708a33165181749cd028568e03109777ee3f30
/circlet/users/urls.py
245f9796c5b85a22044d709969dce2723b9ea221
[ "MIT" ]
permissive
kk6/circlet
0191981e4e36f9d3cd544fdc40641c1586b4ca14
6efc373dc357a9dbc6358f55b4f3bedc8e9ea553
refs/heads/master
2020-03-21T12:06:19.233148
2019-02-16T08:14:59
2019-02-16T08:14:59
138,535,932
0
0
MIT
2019-02-16T08:15:00
2018-06-25T02:50:14
Python
UTF-8
Python
false
false
409
py
# -*- coding: utf-8 -*- from django.urls import path from . import views urlpatterns = [ path("login/", views.login, name="login"), path("callback/", views.callback, name="callback"), path("dashboard/", views.dashboard, name="dashboard"), path( "fetch_twitter_followings/", views.FetchTw...
[ "hiro.ashiya@gmail.com" ]
hiro.ashiya@gmail.com
77ade144fb2fc8146d1909aa6a7f294cd7b51ef8
e8574a1eb466c37ab15a3722f762702023998ce8
/src/cogent3/format/nexus.py
7dca1ae3ff50ac5d8c47d606423da67713a0df55
[ "BSD-3-Clause" ]
permissive
cogent3/c3test
0415210e5aee197ea7256fd3747698073a5b29c3
e200ed18a7fbc317abf7ebe76871fb2a7004375c
refs/heads/master
2021-04-16T12:35:36.652805
2020-05-19T00:03:10
2020-05-19T00:03:10
249,356,408
0
1
BSD-3-Clause
2020-05-04T02:46:01
2020-03-23T06:50:50
Python
UTF-8
Python
false
false
1,453
py
#!/usr/bin/env python __author__ = "Gavin Huttley" __copyright__ = "Copyright 2007-2020, The Cogent Project" __credits__ = ["Gavin Huttley"] __license__ = "BSD-3" __version__ = "2020.2.7a" __maintainer__ = "Gavin Huttley" __email__ = "gavin.huttley@anu.edu.au" __status__ = "Production" def nexus_from_alignment(aln, ...
[ "Gavin.Huttley@anu.edu.au" ]
Gavin.Huttley@anu.edu.au
75a0295d8fc453eb4af97bbd91bfb7a2981be70c
694c417a08cca7ab2b06fe48a9cd5d6b63ee9927
/movies/migrations/0001_initial.py
279c2b33a6c9d958be4f8b5e1541f3a9e94de15a
[]
no_license
xor0x/xmovies
cd7436d988dab9d551d469e684bea6c0d0221dc1
b4db9854ac937b076b0a825bf44420b3b29f2b8a
refs/heads/master
2020-11-28T17:50:25.660221
2020-02-05T11:04:14
2020-02-05T11:04:14
229,885,364
0
0
null
null
null
null
UTF-8
Python
false
false
6,749
py
# Generated by Django 3.0.1 on 2019-12-25 05:47 import datetime from django.db import migrations, models import django.db.models.deletion import django.db.models.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
[ "you@example.com" ]
you@example.com
8e36674c15f6885d217873cf9f128afa8282de5a
a4d2da29f28ba79b5408e74f83b723c0dbcf1b0b
/home_work_2_6/logs/configs/config_client_log.py
18e034838febf09a8c6e549dfea49813466f62ba
[]
no_license
AndreySperansky/CryptoChat
65e1dd36d58b1cb42535a51b1fa79c4203d1d795
f91db445c817a8cec026d1bc90c84e4fa189910f
refs/heads/main
2023-06-26T01:42:20.264184
2021-07-22T20:49:59
2021-07-22T20:49:59
388,574,272
2
0
null
null
null
null
UTF-8
Python
false
false
1,683
py
"""Кофнфиг клиентского логгера""" import sys import os import logging import logging.handlers sys.path.append('../..') from common.variables import LOGGING_LEVEL # создаём формировщик логов (formatter): CLIENT_FORMATTER = logging.Formatter('%(asctime)s %(levelname)s %(filename)s %(message)s') PATH = os.path.dirname...
[ "andrey.speransky@gmail.com" ]
andrey.speransky@gmail.com
659e089ca2d24e3db58a163850fa6898163be21b
dffb9a8855adecc4bd4d21b9168a4e9bdc75e508
/binarytree/q12.py
27ce2dfc8cc7c7ba716b5fc275163fdc522fa0ee
[ "MIT" ]
permissive
ResolveWang/algorithm_qa
95278c4459e38c55225304210770efb61d934fcc
a0cb649acaf8cf9d808272bc15f1951f2c05c828
refs/heads/master
2021-07-17T09:32:01.845815
2018-08-13T13:54:42
2018-08-13T13:54:42
100,107,109
90
29
null
null
null
null
UTF-8
Python
false
false
1,336
py
""" 问题描述:给定彼此独立的两棵树头结点分别为t1和t2,判断t1中是否有与t2树拓扑结构完全相同的子树。 思路: 1)使用二叉树序列化的方法将二叉树序列化成一个字符串 2)使用KMP算法判断t1字符串是否包含t2字符串 由于目前对KMP算法还不是很了解,所以直接使用了in进行判断 """ from binarytree.toolcls import Node class TopTreeTool: @classmethod def is_all_top(cls, head1, head2): str_t1 = cls.pre_order_visit(head1) str...
[ "1796246076@qq.com" ]
1796246076@qq.com
fde3e927e40e24537162d1a223e43f76a22a1f69
959a7b17884aa9af1d38d9c6b0afe2045a9be5d2
/Recursion/ Unique Binary Search Trees II.py
6ffedf013373d70f251ac9af04a6f7e6b9e44ef2
[]
no_license
dumavit/leetcode
a1c998f4c56411b061995d939093b03f7aae366b
866689f564125ca4152dc1b6b3d268991d7ec89a
refs/heads/master
2022-02-07T20:44:17.388121
2022-01-31T21:02:28
2022-01-31T21:02:28
252,981,197
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def generateTrees(self, n): return self.dfs(1, n+1) def dfs(self, start, end): if start == end:...
[ "vitalii.duma@corva.ai" ]
vitalii.duma@corva.ai
570dd858d0fd19df28e952f7d83d2f1b7fbe9759
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/drfact/fact2fact_index.py
00407de3e431807bc54d44fcb9d7de471153ba26
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
6,394
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
09649dcd2f79b7029311ea30c6b33576a2e2cf60
c017d89824c16bc2931edbac6139ac7bc3e5abbe
/final_src/node_clusterization/main.py
b4e7ba173248ef0afb67ad88d42e3f0104714298
[]
no_license
DustOfStars/GraphEmbeddings
304a4d99d3f379e2a159cd9d31a97309148c1431
691afdc5538ac6998da47eee6dfb22e3bb7c13e9
refs/heads/master
2020-12-03T11:33:14.881858
2018-08-30T21:04:30
2018-08-30T21:04:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,243
py
from itertools import product import traceback from node_clusterization.Runner import run_sbm, run_football, run_polbooks from settings import PATH_TO_DUMPS from transformation.HistLossConfiguration import HistLossConfiguration from transformation.RunConfiguration import RunConfiguration def main(): methods = [...
[ "tsepa.stas@gmail.com" ]
tsepa.stas@gmail.com
0e17e4e5c497a0599dab06ab077ed1e1f034cb6b
deae8bc2da1936c4f9afbd8e9412af8df39e96a2
/src/spaceone/inventory/manager/ip_address_manager.py
29c614eac809453e60f67fb1f61b3e6b1b51ac28
[ "Apache-2.0" ]
permissive
choonho/inventory
11a3ef0ec327214cc26260ace049305021c892cf
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
refs/heads/master
2023-04-17T05:51:20.373738
2020-06-16T07:14:27
2020-06-16T07:14:27
273,175,186
0
0
null
2020-06-18T07:49:19
2020-06-18T07:49:18
null
UTF-8
Python
false
false
2,632
py
import logging from spaceone.core import utils from spaceone.core.manager import BaseManager from spaceone.inventory.model.ip_address_model import IPAddress from spaceone.inventory.lib.resource_manager import ResourceManager _LOGGER = logging.getLogger(__name__) class IPManager(BaseManager, ResourceManager): r...
[ "whdalsrnt@megazone.com" ]
whdalsrnt@megazone.com
1a6446ba7764c1e52746991bc8f170d3cfee586b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_97/925.py
2c8372eed01e71a097a1b20fdf9394022d158d31
[]
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,255
py
FILENAME = "C-small-attempt0" LINE_PER_CASE = 1 INPUT_FILE = "%s.in" % FILENAME OUTPUT_FILE = "%s.out" % FILENAME def scramble(string, start): return string[start:] + string[:start] def scrambles(string): output = list() for i in range(len(string)): output.append(scramble(string, i)) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
18a6acae4c564ae2ead4288025e3d339894df0e4
f160d992d0ea5fa4e36af0025b5637c8962f2a29
/gzywtk_spider/mini_spider/gzywtk_mini_spider.py
de75403cd0ca88ab705f5fb6e36e8626c0004a1c
[]
no_license
Zachypentakill/Afanti_tiku
369dde43a32cecb136eb1207bf4223f6decd9843
aebee5b3d8dce76f95620cb52fda5a0f19965945
refs/heads/master
2021-07-11T15:59:03.099600
2017-10-11T10:27:43
2017-10-11T10:27:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,525
py
# -*- coding: utf-8 -*- import logging import json from achihuo_mini.async_loop import AsyncLoop from achihuo_mini.item import Item from afanti_tiku_lib.utils import md5_string from afanti_tiku_lib.dbs.mysql_pool import CommonMysql from afanti_tiku_lib.dbs import html_archive from afanti_tiku_lib.dbs.execute import ...
[ "yanfeng.li@lejent.com" ]
yanfeng.li@lejent.com
a4503b5bdc62725322c2b5563d1e11782339fcb7
25403dd331c6f273190461ed57c12c9f633853b9
/chiton/wintour/matching.py
ecbd023f7ed79db3067007fa82d6e70f048c21d1
[]
no_license
justinlocsei/chiton
d1a91a57ff90f16aa375d0f4c6a0b093a66d2d38
6ca38962d08a6ca154434a1f78235155710ffeec
refs/heads/master
2021-03-27T15:10:07.811691
2017-01-30T01:18:33
2017-01-30T01:18:33
48,400,233
0
0
null
null
null
null
UTF-8
Python
false
false
3,840
py
from timeit import default_timer from django.db import connection import voluptuous as V from chiton.closet.models import StandardSize from chiton.core.queries import cache_query from chiton.core.schema import define_data_shape, Email from chiton.runway.models import Formality, Style from chiton.wintour.models import...
[ "justin.locsei@gmail.com" ]
justin.locsei@gmail.com
e0117c1b33518a637c416d0d305d4969fbf4cbbe
5759c0ed3219c06437ce5b39ef9ad92b5e191fed
/py/0272_closest_binary_search_tree_value_ii.py
b19e2ed710d594eb8e8af6baafd5df7f0f31637e
[]
no_license
mengnan1994/Surrender-to-Reality
ba69df7c36112ad19f19157a9f368eae6340630f
66232728ce49149188f863271ec2c57e426abb43
refs/heads/master
2022-02-25T01:34:49.526517
2019-09-22T17:21:28
2019-09-22T17:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
""" Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note: Given target value is a floating point. You may assume k is always valid, that is: k ≤ total nodes. You are guaranteed to have only one unique set of k values in the BST that are closest to the ...
[ "hurricane.cui@gmail.com" ]
hurricane.cui@gmail.com
02db7c74005b3b7893913df03b9226c790ef64fe
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_virtual_appliance_skus_operations.py
5831f745f6b1b0295bfb22ca7a3059cc247a444f
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
7,589
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
catchsrinivas.noreply@github.com
b1aad7830ea72cb2ccbd44a7c1720286e2550358
50b77b527b95659c6ac8484a1091a70b4ad25d73
/2018/7/aoc7.py
7247ef3954f0b0a3421127427c1cd1cf9919d082
[]
no_license
cjuub/advent-of-code
d3a4569dd0b7bf7e10dc6a76a1ffe569df4e93a2
bb92d8ae96cde8c3e57abed26019e692fa6e168f
refs/heads/master
2023-01-10T00:32:56.847184
2023-01-02T20:46:57
2023-01-02T20:46:57
160,243,333
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
#!/usr/bin/env python3 reqs = {} with open('input.txt') as fp: for line in fp: before = line.split(' ')[1] after = line.split(' ')[7] reqs.setdefault(before, []) reqs[before].append(after) reqs_orig = dict(reqs) order = '' while not len(reqs) == 0: avails = [] de...
[ "cjuuub@gmail.com" ]
cjuuub@gmail.com
6c26ede3a76d79fc1ae4fe905c34216511b5c6b6
4555f7818bffa529bbe1e1c23cd469fd77b00fed
/docs/conf.py
86f2e10438a1d97608868d61c0e8de2923b9fd5d
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
Incognito/import-linter
6d1308041057b473a66ad8dd500e82de58a8592b
afab73c8f60c284cd5dbe013c4c7de03c294cc6a
refs/heads/master
2023-03-04T12:47:10.088128
2021-02-02T08:44:10
2021-02-02T08:44:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,958
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
[ "david.seddon@octoenergy.com" ]
david.seddon@octoenergy.com
4de567ba1d267109d3843d2ce579b486bf11fae5
7b5828edda7751700ca7002b40a214e39e5f48a8
/EA/base/lib/encodings/unicode_internal.py
55081f209be2ab385cfe68cee89a9d41caff49ed
[]
no_license
daniela-venuta/Sims-4-Python-Script-Workspace
54c33dac02f84daed66f46b7307f222fede0fa62
f408b28fb34626b2e3b2953152343d591a328d66
refs/heads/main
2023-03-29T18:08:39.202803
2021-03-30T19:00:42
2021-03-30T19:00:42
353,111,243
1
0
null
null
null
null
UTF-8
Python
false
false
854
py
import codecs class Codec(codecs.Codec): encode = codecs.unicode_internal_encode decode = codecs.unicode_internal_decode class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input, final=False): return codecs.unicode_internal_encode(input, self.errors)[0] class Incre...
[ "44103490+daniela-venuta@users.noreply.github.com" ]
44103490+daniela-venuta@users.noreply.github.com
5e72c1cc7dff55e5881bb8c1629cf0fe1b128594
bcb56cc126ea1885eb5ecc920884e2e331def045
/Part A/Interesting drink.py
707fabf2d0047d035017bdeda5d7ccf7cab92af1
[]
no_license
priyanshkedia04/Codeforces-Solutions
2d11cb7b8329fe658f983b7212c17fc89fd784f0
a5197c633bf4c3238f48bfb5b308144c2ffba473
refs/heads/main
2023-06-06T13:10:13.787843
2021-07-01T14:06:52
2021-07-01T14:06:52
382,000,707
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
import bisect input() x=sorted(map(int,input().split())) for i in range(int(input())): m=int(input()) print(bisect.bisect_right(x,m))
[ "noreply@github.com" ]
priyanshkedia04.noreply@github.com
7200d90d23a2e7fdaeb7dfbf4cfbc11f22c0a9aa
6a9907ff1b35d8970b671ed79b4fb70bd320af29
/Day01/demo01.py
1a69af972087467d7eaf95f74bd0a1dff4d6a0f7
[]
no_license
typeme/python_spider_study
dc4f91cc4bea5a34aa327263e1ccc4f9b765687d
5ecfce7bb673c2a4942d45e44d806d933fc02146
refs/heads/master
2021-02-19T23:52:22.608769
2020-03-06T03:44:42
2020-03-06T03:44:42
245,323,828
1
0
null
null
null
null
UTF-8
Python
false
false
691
py
import random ''' 模拟剪刀石头布 0 剪刀 1 石头 2布 ''' computer = random.randint(0,2) player = input() player = int(player) if player == computer: print('平局') if player == 0: if computer == 1: print('computer win') else: print('player win') elif player == 1: if computer == 2: print('com...
[ "typeme3@163.com" ]
typeme3@163.com
e66855f8845952bd0eaf49c3dc3a04b68321bae4
46b1fb8cd30718befb8a7cf50c61e36b9ca81448
/03-Functions.py
b0189283ac316c69f7b9c9c9fc0751dc9c35222d
[]
no_license
brainmentorspvtltd/MSIT_CorePython
bb19fb9701bf24f0e48370f7404ea5aca3e49881
7ff75ecacae059cb533fa18b330085d68fa3ad71
refs/heads/master
2022-10-02T19:33:51.025937
2020-06-04T11:03:46
2020-06-04T11:03:46
266,517,862
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
def inputNumbers(): a = input("Enter first number: ") # local variable b = input("Enter second number: ") return a, b def calc(operator): x, y = inputNumbers() # eval("10 / 10") print(eval(x + operator + y)) # eval uses postfix expression evaluation print(''' 1. Add 2. Sub 3...
[ "noreply@github.com" ]
brainmentorspvtltd.noreply@github.com
63e6419f1b7369fc8598f856fc6b7d50da87fce6
3a8057d469a533b13a5a0961a48bfde1b31411cd
/code_test-2021/meituan4.py
deac561dcc4259e921eeb3fffb419b28e5878478
[]
no_license
XMK233/Leetcode-Journey
41b5aa6a47db56b008e94d75029f3dffd24a4695
4012c16ccedeebc7852fda707a2399ecb0b5b60a
refs/heads/master
2022-04-26T13:08:32.470174
2022-03-07T14:09:29
2022-03-07T14:09:29
126,415,900
0
0
null
null
null
null
UTF-8
Python
false
false
2,287
py
''' 小美的跳方格 时间限制: 3000MS 内存限制: 589824KB 题目描述: 小美在路上看到一些小学生在玩跳方格,她也想跟着一起玩。 这个方格被划分为n×n的小方格,即有n行n列。每一个小方格上面都是一个1~k的正整数。小美想依次从1,2,…,k这个顺序来跳。一开始小美可以站在任意一个小方格。从一个方格跳到另一个方格的花费为两个方格的曼哈顿距离。小美想知道是否可以依照该顺序一直跳到k,如果可以,最小的总花费是多少。 两个格子(x1,y1),(x2,y2)的曼哈顿距离为:|x1-x2|+|y1-y2|。例如(3,4),(1,6)的曼哈顿距离为|3-1|+|4-6|=4。 输入描述 第一行两个正整数n,k; 接...
[ "clxfxmk@qq.com" ]
clxfxmk@qq.com
83c61ec3a8afc1f6d0bcc8b283ab50ecb33d4628
3e9d29bcf54dc54e83a33d45b9de8f9364ffc101
/activities/forms.py
33ec459d0a9b3e462416620794fd5048e958b21b
[]
no_license
Pythonian/footystory
54045cd9d44bc6ded93679d45ff73b1d132b40ed
3613af05d3f1e11a72ee84cde12950afa1067edf
refs/heads/master
2023-09-03T23:05:44.569859
2023-08-17T14:41:57
2023-08-17T14:41:57
108,721,512
0
1
null
null
null
null
UTF-8
Python
false
false
1,799
py
from django import forms from .models import Post from pagedown.widgets import PagedownWidget class PostForm(forms.ModelForm): content = forms.CharField(widget=PagedownWidget(show_preview=False)) publish = forms.DateField(widget=forms.SelectDateWidget) class Meta: model = Post fields = ['title', 'image', 'conte...
[ "prontomaster@gmail.com" ]
prontomaster@gmail.com
131e1fc7d7f51df48ecacaba79b457041c11276c
a635c083db6122e958dd56720d8b1065e5f24484
/While_Testing.py
eba71f774ed5a0fc8489dfab4ce44e50b8f56f02
[]
no_license
Khun-Cho-Lwin/Python-Files-IPND
f14dec938defecae6c85c1065ed9ac1f7fc84380
25269bff92c05d658469bb923cc9502e62227f8a
refs/heads/master
2022-07-29T21:04:43.119356
2020-05-25T18:28:19
2020-05-25T18:28:19
266,686,429
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
i = 0 while i < 10: print i i = i + 1 i = 0 while i != 10: i = i + 1 print i #While loop (2) i = 2 #(*****) while i != 10: i = i + 2 print i #While loop playground i = 0 while i < 10: print i i = i + 1 #my Test i = 0 while i < 10: i = i + 1 print i def remove_spaces(text): ...
[ "khuncholwin.2019@gmail.com" ]
khuncholwin.2019@gmail.com
ffe902c8c5ccb018e8d700ca7f57856e6b95a791
e7174bac742602a03dc646c1b33dd16a0bb1837d
/githubcap/manipulators/checkbox.py
5610b5be96a8c357846c55e64a41368638da422f
[ "Apache-2.0" ]
permissive
jayvdb/githubcap
f789a3deb8f453ddf9701608529f370f747b4922
949d4f4ec0193bc74a8849dfa7b54da19472395d
refs/heads/master
2020-12-05T21:03:48.152601
2018-01-17T08:12:42
2018-01-17T08:16:32
232,247,158
0
0
Apache-2.0
2020-01-07T05:11:06
2020-01-07T05:11:05
null
UTF-8
Python
false
false
3,225
py
"""Manipulation with checkboxes.""" import typing from githubcap.exceptions import UserInputError class Checkbox: """A checkbox manipulator.""" _CHECKED_CHECKBOX = ('* [x] ', '* [X] ', '- [x] ', '- [X] ') _UNCHECKED_CHECKBOX = ('* [ ] ', '- [ ] ') _CHECKBOX = _CHECKED_CHECKBOX + _UNCHECKED_CHECKBOX...
[ "fridolin@redhat.com" ]
fridolin@redhat.com
3b4c1a5041186ebf92ebafbd58c60528043679ad
85a5c20f55a6b361148ed324649c66114c323d00
/.history/ecommerce_webapp/StoreApp/urls_20210611130915.py
f64db57d8f0e7423833faa549267efec3b260a5c
[]
no_license
ritikalohia/tepid_store
8711934182ca1f128bc815ebd06ea7e431f53327
f66e6bc3bb0b52d40e6cc82f5f164b6afa1c8b1d
refs/heads/main
2023-05-31T12:16:36.838506
2021-06-17T16:33:31
2021-06-17T16:33:31
375,096,115
1
0
null
null
null
null
UTF-8
Python
false
false
541
py
from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path("account/", views.account, name="Account"), path("aboutus/", views.about, name="AboutUs"), path("contactus/", views.contact, name="Contact"), #path("tracker/",...
[ "rtklohia@gmail.com" ]
rtklohia@gmail.com
6582705a6170b9e0bfeb84c0473e001883243912
846506a6c9023a21ff831c637f71cffd3b0aab62
/Python/X_Archive/AddReplaceDataLabels.py
610e4341edcb212c5c64e8a4c7324282bb0971d8
[]
no_license
emonson/Weinfurt_DocFreq
b90378e57af7c17d32c72e5924a1b9af9f0f6584
1c9082d8ce4c0d002b6a65d446421840e24435fd
refs/heads/master
2020-05-29T21:05:01.397101
2015-01-22T13:53:53
2015-01-22T13:53:53
29,681,004
0
1
null
null
null
null
UTF-8
Python
false
false
1,009
py
# First pass at changing to new data label scheme # After this will have to hand split new lines and change strange # labels # -- EMonson 24 Nov 2008 f = open('LongVersion_noCTabs_rev4.html','r') whole4 = f.read() # e.g. All ${s_0} add one and put in data -> ${s_data001} for ii in range(146): for ss in ['s', 'c']:...
[ "emonson@cs.duke.edu" ]
emonson@cs.duke.edu
79d16f199d50c562b50d4ee72ae2117d2f3b40a9
03034837c5f10d19fcc4dc51388f056ec43fd1d2
/pro81.py
4a3afdc1da1db5738edafe514a66a2e6b02aba0d
[]
no_license
shaukhk01/project01
e95c19844757c631f7ffbdd910b20316f49a945b
79cfe784612fdbb4816c9fc3fc7222c845a3268f
refs/heads/master
2020-06-26T07:20:49.844532
2019-08-20T06:06:40
2019-08-20T06:06:40
199,569,813
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
class a: def m1(self): print('class a method') class b: def m2(self): print('class b method)') class c(b,a):pass o = c() o.m1()
[ "shaukhk01@gmail.com" ]
shaukhk01@gmail.com
2d4e76e2f2282871214040c143a23c9f9f3b7b3d
0308ca5b152a082c1a206a1a136fd45e79b48143
/usvao/prototype/vaopy/trunk/tests/registry/testNeedsNet.py
80722ce8d071618f5a91f08fe21f3c1774c23662
[]
no_license
Schwarzam/usvirtualobservatory
b609bf21a09c187b70e311a4c857516284049c31
53fe6c14cc9312d048326acfa25377e3eac59858
refs/heads/master
2022-03-28T23:38:58.847018
2019-11-27T16:05:47
2019-11-27T16:05:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
#!/usr/bin/env python """ Test all available tests that do not require access to the network. """ import sys, os, unittest, imp if len(sys.argv) > 1: testdir = sys.argv[1] else: testdir = os.path.dirname(sys.argv[0]) testserverport = 8081 tests = [] for t in [ "testVaoRegNeedsNet", ]: try: ...
[ "usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5" ]
usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5
a6d35e81e810fd1afc605c460a8dde11bf02f7c7
82521839296ec73768c4aafb8f290c52115eef9b
/project_admin/urls.py
ef1f6a54058d11b6333749e6b9af506dc9384468
[]
no_license
musfiqraihan/project-management
95e3120559675784a0927d916a3f1ab48613ad67
9ffa5dbe1f34e85535397d314296260b9c4eddbe
refs/heads/master
2023-04-02T04:03:03.788641
2021-04-03T07:53:45
2021-04-03T07:53:45
337,051,705
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
from django.urls import path from . import views urlpatterns = [ path('developers/add', views.add_developers, name='add-developers'), path('developers/delete/<int:pid>', views.delete_developers, name='delete-developers'), path('developemnt/tools/add', views.add_development_tools, name='add-development-to...
[ "musfiqak@gmail.com" ]
musfiqak@gmail.com
5fc9e9a23b535852544309a1ec30f4cd81240108
ffc1cc3bb7b68335b115122fdc7924fc4e31d528
/play_90.py
4a267acbb48c729c0316eb574bc544be481a0060
[]
no_license
Rihanashariff/swathi24
dba1dd3c3d2ff583ae431b432e0ef262bfeb3ac3
2b0d21f2febdd2a563e8f0affeebd5ca7a5821b8
refs/heads/master
2020-07-02T05:28:32.199982
2019-06-29T08:22:10
2019-06-29T08:22:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
#swa def fact1(n): fact=1 for i in range(1,n+1): fact=fact*i return fact n,k=map(int,input().split(" ")) print(fact1(n)//(fact1(k)*fact1(n-k)))
[ "noreply@github.com" ]
Rihanashariff.noreply@github.com
6d962ea543a97226b5060be04499975c7ef3fd2f
b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1
/tensorflow/python/data/experimental/ops/writers.py
8dd74ae7ecd8259afad8c6108fa7b445bd458915
[ "Apache-2.0" ]
permissive
uve/tensorflow
e48cb29f39ed24ee27e81afd1687960682e1fbef
e08079463bf43e5963acc41da1f57e95603f8080
refs/heads/master
2020-11-29T11:30:40.391232
2020-01-11T13:43:10
2020-01-11T13:43:10
230,088,347
0
0
Apache-2.0
2019-12-25T10:49:15
2019-12-25T10:49:14
null
UTF-8
Python
false
false
3,438
py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "v-grniki@microsoft.com" ]
v-grniki@microsoft.com
ce2e7fb4a0d899f5903674a8337bddf3e615758e
259f521085f78d5f6188afa2b166d6eb9ee2e867
/api/main/views.py
6f60907efa80618e8216414cb0763b45a331ae7d
[ "Apache-2.0" ]
permissive
till-tomorrow/AH2018
f3441d08cf3deec11c3e09477753e3c089ce0e1f
5fde4604d6d83eaa52c7add0c3a7ca87bf48fbc8
refs/heads/master
2020-03-19T13:40:36.079006
2018-05-08T18:39:19
2018-05-08T18:39:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,188
py
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser import paralleldots # from .models import * # from .serializers import * # from ....
[ "jatin.katyal13@gmail.com" ]
jatin.katyal13@gmail.com
165495e820ee37ea7b8952fb68a3741e4eca5afc
57775b4c245723078fd43abc35320cb16f0d4cb6
/Leetcode/string/first-unique-character-in-a-string.py
9f95fed1364e4c9606cc5df5bf39487d5c725e31
[]
no_license
farhapartex/code-ninja
1757a7292ac4cdcf1386fe31235d315a4895f072
168fdc915a4e3d3e4d6f051c798dee6ee64ea290
refs/heads/master
2020-07-31T16:10:43.329468
2020-06-18T07:00:34
2020-06-18T07:00:34
210,668,245
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
class Solution: def firstUniqChar(self, s: str) -> int: track = {} for i in range(len(s)): if i == len(s)-1 and s[i] not in track: return i elif s[i] not in track and s[i] not in s[i+1:]: return i else: if s[i] not i...
[ "farhapartex@gmail.com" ]
farhapartex@gmail.com
8da4f523b92432cecbacf7d5a7c7f828ac41f63c
056adbbdfb968486ecc330f913f0de6f51deee33
/575-distribute-candies/distribute-candies.py
158e8adb189fbcd31723d2cc6788250a0131bc0c
[]
no_license
privateHmmmm/leetcode
b84453a1a951cdece2dd629c127da59a4715e078
cb303e610949e953b689fbed499f5bb0b79c4aea
refs/heads/master
2021-05-12T06:21:07.727332
2018-01-12T08:54:52
2018-01-12T08:54:52
117,215,642
0
1
null
null
null
null
UTF-8
Python
false
false
1,396
py
# -*- coding:utf-8 -*- # Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute these candies equally in number to brother and sister. Return the maximum number of kinds of candi...
[ "hyan90@ucsc.edu" ]
hyan90@ucsc.edu
8230abee49776d054b5ded630c7bdff797696664
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2/qcl/b.py
934b2a605452e875037770225d079174404ba2b8
[]
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
568
py
# -*- coding: utf-8 -*- import sys def main(): f = open(sys.argv[1]) ncase = int(f.readline()) for i in range(ncase): caseN = i + 1 p = f.readline()[:-1] r = '' for gg in p: if len(r) == 0: r = r + gg elif not r[-1] == gg: ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
57cc54b6dd9275687bc9f3ca13cafd0b2137b408
a359a58aa63cb4e646022d099dd81d96c38c05fc
/数据库/python操作mysql/min_flask.py
14adf13ee05e7033b18b351e9488f2cabdb57209
[]
no_license
YuanXianguo/Python-IT-Heima
5c5a25c69e97e0de352a4dc6bb3bad6800c1cd3f
96ed9be42ba487c065b5ea1783555b053f051586
refs/heads/master
2020-05-02T17:24:35.978117
2019-12-20T02:28:40
2019-12-20T02:28:40
178,097,451
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return "Hello World!" if __name__ == '__main__': app.run(debug=True)
[ "736913978@qq.com" ]
736913978@qq.com
88c674e5687ae8510486a6802af34942b6ded1a7
9d5b0bcc105f7a99e545dd194d776a8f37b08501
/tf_quant_finance/experimental/instruments/rate_curve_test.py
82c5daaa1afdf5805abf0e4f9c842c23b3dc8d1b
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
priyalorha/tf-quant-finance
ab082a9bd6d22fd3ea9a3adcf67a35dc23460588
72ce8231340b27b047279012ffe97aeb79117cdf
refs/heads/master
2023-02-23T11:08:30.161283
2021-02-01T13:57:43
2021-02-01T13:58:14
334,980,881
1
0
Apache-2.0
2021-02-01T14:45:14
2021-02-01T14:45:14
null
UTF-8
Python
false
false
3,567
py
# Lint as: python3 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "tf-quant-finance-robot@google.com" ]
tf-quant-finance-robot@google.com
25c1aeb60563f232d9a51ed362187716fdbd3d2c
2ea977ea1faf49f17631a35aa6511de83ceea694
/Practice/longest_common_prefix.py
9fd9e970a72e12bd4c3aa381f6da7ad91f492df5
[]
no_license
14E47/LeetCode
068134e04cac0273e32f72d76dc54db89619f740
6112c2ba133e4486a6e304ffe39810a6c135d828
refs/heads/master
2020-06-15T09:59:27.327871
2020-05-03T14:55:32
2020-05-03T14:55:32
195,267,195
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
class Solution: def longestCommonPrefix(self, strs: list) -> str: strs.sort(key=len) prefix = "" word = strs[0] if len(strs)==0: return prefix elif len(strs)==1: return strs[0] for i,j in enumerate(word): for k in strs[1:]: ...
[ "wasique3@gmail.com" ]
wasique3@gmail.com
39d96e21d3020ad407c66ffe38d6349568128b1d
521efcd158f4c69a686ed1c63dd8e4b0b68cc011
/airflow/providers/snowflake/example_dags/example_snowflake.py
12144884059ec98bf87cf47d7caf57113d064deb
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
coutureai/RaWorkflowOrchestrator
33fd8e253bfea2f9a82bb122ca79e8cf9dffb003
cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f
refs/heads/main
2022-10-01T06:24:18.560652
2021-12-29T04:52:56
2021-12-29T04:52:56
184,547,783
5
12
Apache-2.0
2022-11-04T00:02:55
2019-05-02T08:38:38
Python
UTF-8
Python
false
false
4,163
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
coutureai.noreply@github.com
0352c619a7fb65b77463c517c6355659d11bf038
4546398a18590e4e182629fb55d185547dd6df0a
/2020/problems/nullogtveir/submissions/partially_accepted/bjarki_25.py
8bd151716e248cdee4eb5be98c7a991bbbcbbb11
[]
no_license
ForritunarkeppniFramhaldsskolanna/Keppnir
352341fa97c6349af65b513c03171f3e706f7db2
65c8eb5358d8a49f956edf76c2d47b9372accc3c
refs/heads/master
2023-04-28T15:33:36.396225
2023-04-23T15:00:15
2023-04-23T15:00:15
78,303,702
1
2
null
null
null
null
UTF-8
Python
false
false
134
py
import sys n = int(sys.stdin.readline()) cnt = 0 for i in range(n+1): if set(str(i)) <= set('02'): cnt += 1 print(cnt)
[ "bjarki.agust@gmail.com" ]
bjarki.agust@gmail.com
3b04100c6f115df58ae36210b06279c7e51a6a65
8f6cc0e8bd15067f1d9161a4b178383e62377bc7
/evolutionary_algorithms/course/chapter 02/3d plot/dryfeet_V1007.py
8c0fd690fe5ac304ad5cd52d73492b19ebeeda18
[]
no_license
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
1,601
py
from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt from matplotlib import cm import numpy as np from time import sleep def function_z(x_in, y_in): return (((x_in+50) ** 2 + (y_in + 15) ** 2) / 4000) - (np.cos(x_in / 4) * np.cos(y_in / 4)) + 1 plt.ion() fig = plt.figure() ax = f...
[ "geemguang@gmail.com" ]
geemguang@gmail.com
4f50f23efb03e6ad1b47f02ff06da4102b4a4420
7bdf57a9a7b9985ee08b13f10b2d8e89b777f416
/config.py
67565ce21d7e9d6318a1e20c195adc415fbf9d72
[ "MIT" ]
permissive
patricksferraz/flask-session-tutorial
9a1fdb80b094d00a4d82a27240d91235216536d7
e47d089fd3f2e08fd0f20d7b5cbd72bd59323912
refs/heads/master
2022-04-17T14:57:49.226858
2020-04-20T03:46:26
2020-04-20T03:46:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
"""App configuration.""" from os import environ, path from dotenv import load_dotenv import redis basedir = path.abspath(path.dirname(__file__)) load_dotenv(path.join(basedir, '.env')) class Config: """Set Flask configuration variables from .env file.""" # General Config SECRET_KEY = environ.get('SECRET...
[ "toddbirchard@gmail.com" ]
toddbirchard@gmail.com
0b25391d098da4e7f01175c1f5404fb779c2bb88
1d9a6406c859fda186f520bb4472c551fc572c7b
/src/tests/testutils/user_test_utils.py
c6fc86c33440accbe0a1e54f36fe5074ddf1ffdf
[ "Apache-2.0" ]
permissive
rickie/hopla
af21b794ce6719d402721550e1ee4091790410b6
24a422194e42c03d5877dc167b2b07147326a595
refs/heads/main
2023-08-13T17:33:03.612293
2021-10-12T12:13:25
2021-10-12T12:13:25
408,538,704
0
0
Apache-2.0
2021-09-20T17:30:15
2021-09-20T17:30:15
null
UTF-8
Python
false
false
856
py
#!/usr/bin/env python3 """TestUtils to get HabiticaUser objects for users.""" from typing import Dict, Optional from hopla.cli.groupcmds.get_user import HabiticaUser class UserTestUtil: """test utility to create an user""" @classmethod def user_with_zoo(cls, *, pets: Optional[Dict[...
[ "31448155+melvio@users.noreply.github.com" ]
31448155+melvio@users.noreply.github.com
fa075e81142132885bd14628d6eeb899b2ed41b0
b43af72e789c720e177c935c059937b1cfa79d9e
/packages/api-server/api_server/routes/lifts.py
e8b56f1b85a793a4a5d0a03256f1af790c1d361c
[ "Apache-2.0" ]
permissive
matiasbavera/romi-dashboard
d4a65ad293e438fdb56f1d0dd3fa5d519bbe77a1
ac3a15014ad3c3bdac523a6550934a06653cfba1
refs/heads/master
2023-07-24T13:09:23.417613
2021-09-01T02:20:49
2021-09-01T02:20:49
260,000,923
0
0
Apache-2.0
2021-10-30T13:17:53
2020-04-29T17:53:36
TypeScript
UTF-8
Python
false
false
2,597
py
from typing import List from fastapi import Depends from rx import operators as rxops from api_server.base_app import BaseApp from api_server.fast_io import FastIORouter, WatchRequest from api_server.models import Lift, LiftHealth, LiftRequest, LiftState from api_server.repositories import RmfRepository from .utils ...
[ "noreply@github.com" ]
matiasbavera.noreply@github.com
d368038a098ff78314e6f288bcd5902dc897c562
8e7a2b9efbc0d25111f01f4cddb781961032685a
/python-1025/python/a_socket/1_udpChat/cli.py
1b7f8e6e6b4685f07e478ada7075d7728e7c0f3c
[]
no_license
Dituohgasirre/python
e044aa2e1fb2233b6ccd59701b834ab01e4e24c2
05f036d2723f75cd89e4412aaed7ee0ba5d3a502
refs/heads/master
2023-06-03T13:50:18.641433
2021-06-17T10:23:40
2021-06-17T10:23:40
366,942,423
0
0
null
null
null
null
UTF-8
Python
false
false
1,498
py
#!/usr/bin/env python3 import socket import sys import os from pargs import parse from kyo.vtmenu import Menu def choice(choiceList, title="请选择: "): def handle(i, args): args['return']['data'] = args['data'] return True m = Menu(title=title) ret = {} for o in choiceList: m.a...
[ "linfeiji4729289@126.com" ]
linfeiji4729289@126.com
39c88377853ac463c30a1a973151e5a9cb98f195
1742733a6da3b08a8e387491e8b00ffa750a822b
/mysite/urls.py
4ce0669e1ea94439697ec564aadd96ae5f331424
[]
no_license
Eimis/mysite
cfacf96926d17b9b9f59c720bf8fc8f76b3a39b5
130117cdb6ba8a699a01e759acad49a0d7e0dffb
refs/heads/master
2021-01-10T21:04:48.133366
2013-08-23T05:16:03
2013-08-23T05:16:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
from django.conf.urls import patterns, include, url from django.contrib import admin from mysite.views import hello, current_datetime, hours_ahead, display_meta from mysite.books import views from mysite.contact.views import contact, thanks # jei butu tik views, clashintu su books.views. Apskritai darant dideli appsa z...
[ "eimantas.stonys@gmail.com" ]
eimantas.stonys@gmail.com
5ba8d9e31dd7617613658d2ce5e0c88efce0dc13
f829d2c4347ce85ae6dd769f0aab2491d8ee4751
/old/.history/a_20201125192237.py
ed47952b84d486a136316d24dd30d4cdab98a54c
[ "LicenseRef-scancode-mulanpsl-2.0-en", "MulanPSL-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pscly/bisai1
0ef18d4aa12541322947a5be250ef7f260c93276
257c02c8f23e373834a6275683470f3f081b7373
refs/heads/18ti
2023-01-21T22:02:15.582281
2020-11-29T09:30:33
2020-11-29T09:30:33
316,918,262
0
0
NOASSERTION
2020-11-29T12:33:33
2020-11-29T09:39:21
Python
UTF-8
Python
false
false
566
py
# for n in range(400,500): # i = n // 100 # j = n // 10 % 10 # k = n % 10 # if n == i ** 3 + j ** 3 + k ** 3: # print(n) # 第一道题(16) # input("请输入(第一次):") # s1 = input("请输入(第二次):") # l1 = s1.split(' ') # l2 = [] # for i in l1: # if i.isdigit(): # l2.append(int(i)) # for i in l2: # ...
[ "pscly@outlook.com" ]
pscly@outlook.com
e55774bad0e7e43237b4ae4e490623bd7769f047
169bbeb76f245a493504fd10f1e7cd06407868ed
/scripts/scripty.py
6d447277cb70fb3e7925e4bd4a5b28e491db6cae
[]
no_license
dantegates/music-rec
f242cd66f9687a63daae1d65552f74753276ce26
0cb51280d1e147c21866d26059c295af9190263b
refs/heads/master
2022-12-20T11:03:50.152406
2020-08-14T20:46:13
2020-08-14T20:46:13
106,285,456
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
import os import numpy as np from train import load, SIZE, TIME_SAMPLES import config as cf TRAIN_FILES = [os.path.join(cf.TRAIN_DIR, f) for f in os.listdir(cf.TRAIN_DIR)] TEST_FILES = [os.path.join(cf.TEST_DIR, f) for f in os.listdir(cf.TEST_DIR)] TRAIN_PROC_DIR = 'data/train_proc' TEST_PROC_DIR = 'data/test_proc' ...
[ "=" ]
=
3302618edc7d4ed372ce4aa9a2ef5b3d7a73fca3
4cfbc12903651dedbc799f53a8078433196e7919
/Pre Processing/Topic 3 - MatPlotLib/2. bar charts.py
0efbe623e1c5d78616ebf411cc9cbf9adf73fbad
[]
no_license
gautam4941/Machine_Learning_Codes
78bf86ab3caf6ee329c88ff18d25927125627a2c
0009d12ca207a9b0431ea56decc293588eb447b1
refs/heads/main
2023-02-06T18:05:44.154641
2023-01-30T17:04:25
2023-01-30T17:04:25
353,594,523
0
5
null
null
null
null
UTF-8
Python
false
false
2,932
py
""" 1) Single Bar Graph 2) MUlti Bar Graph. 3) Setting Width of Graph. 4) Setting the position of Bars( Left or right. ) 5) Horizontal Bar Graph. bar, barh, width, xaxis +/- value -> to shift the bar in the graph right/left respectively., xticks, yticks """ company = ['Google', 'Yahoo', 'Accenture', 'Philip...
[ "noreply@github.com" ]
gautam4941.noreply@github.com
fe338335f87316821c2b8f719d9df8eb8f9e0d90
e11250f9b307dced670711c83cbc87b98107e14e
/setup.py
7998e66691be459be3c6d73aa72bf4957216deeb
[]
no_license
chuan137/pypipe
afcb397fcfd1fca19279b93f8882de24906dc0cf
820006e126c52ccd88b01c006a7cf52d6bf0591c
refs/heads/master
2021-01-10T13:38:34.231237
2016-01-29T10:54:38
2016-01-29T11:04:20
50,594,137
1
0
null
null
null
null
UTF-8
Python
false
false
431
py
#!/usr/bin/env python import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = 'pypipe', version = read('VERSION'), author = 'Chuan Miao', author_mail = 'chuan137@gmail.com', description = 'write lightweight corout...
[ "chuan137@gmail.com" ]
chuan137@gmail.com
e751b44bc07695a4347ae9aa2b25f7e2ef450bb7
b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1
/tensorflow/python/ops/linalg/solve_registrations.py
20ff93c3fbd936ee868006eb2c1086a50a0deb65
[ "Apache-2.0" ]
permissive
uve/tensorflow
e48cb29f39ed24ee27e81afd1687960682e1fbef
e08079463bf43e5963acc41da1f57e95603f8080
refs/heads/master
2020-11-29T11:30:40.391232
2020-01-11T13:43:10
2020-01-11T13:43:10
230,088,347
0
0
Apache-2.0
2019-12-25T10:49:15
2019-12-25T10:49:14
null
UTF-8
Python
false
false
6,804
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "v-grniki@microsoft.com" ]
v-grniki@microsoft.com
8fe6a1fd423f49df7015f866c644e320876f9250
b76ae361ab277923d0fed969b795074a1ecb400b
/project/爬虫/单例.py
0fe7b45d991782b928f803d5d8536b4a99fe642a
[]
no_license
RobotNo42/old_coed
995df921e31d5a9b65f1609380235330edb546ad
59f82e5d58965dd5c6340f4daf4ef43d1d311252
refs/heads/master
2021-07-18T00:07:33.450173
2020-06-16T13:51:11
2020-06-16T13:51:11
180,384,457
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
def happy(cls): instances = {} def f(*args, **kwargs): if cls not in instances: instances[cls] = cls(*args, **kwargs) return instances[cls] return f @happy class Add(object): pass
[ "chengge1124@gmail.com" ]
chengge1124@gmail.com
1a85dc0e46533b715caae0e0207af15e108b2b11
a94757526253f3a3ae4b65b662316e3b03b271e9
/week6/Combination_Sum.py
bc8dcd0cd8ce0f657bfe1b0f0587578d1d41c3e4
[]
no_license
RRoundTable/CPPS
3e30f4d9c48aa9c85d74db6696c6d458fa38523a
fb679053ee89c15e2844fda1d705d46778ea1c0d
refs/heads/master
2021-07-06T07:19:43.806752
2020-12-15T10:59:08
2020-12-15T10:59:08
214,435,381
1
2
null
2020-02-06T14:53:13
2019-10-11T12:50:22
Python
UTF-8
Python
false
false
3,045
py
""" link:https://leetcode.com/problems/combination-sum/ Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target. The same repeated number may be chosen from candidates unlimited number of time...
[ "ryu071511@gmail.com" ]
ryu071511@gmail.com
3a10cba33d78afc2517b45a5ef6d0645073aaa7f
b31fad417ed6cafb7f76940fefaaa22354aed297
/scripts/JetCorrectionsOnTheFlyExample.py
51b95fdf221491dfd20857be98238fd18b8f90c5
[]
no_license
cms-jet/JMEDAS
a6ed5b5e445b811aedf21c2d136cd1262eb7f546
ba622e11693408ded58ddb22e86ea598cc490021
refs/heads/master
2023-01-03T20:27:26.409019
2022-12-21T13:44:49
2022-12-21T13:44:49
27,493,919
3
41
null
2022-12-21T13:44:50
2014-12-03T15:36:02
Python
UTF-8
Python
false
false
3,925
py
# PYTHON configuration file for class: JetPlotsExample # Description: Example of simple EDAnalyzer for jets. # Author: K. Kousouris # Date: 25 - August - 2008 # Modified: Kalanand Mishra # Date: 11 - January - 2011 (for CMS Data Analysis School jet exercise) import FWCore.ParameterSet.Config as cms ## ____ ...
[ "justin.pilot@cern.ch" ]
justin.pilot@cern.ch
fdcbeebe634591699f567a59ad8d06944ac6dd12
0b868fe1c0d20fcafed594ffcfac237b985eb332
/Algorithms/064. Minimum Path Sum/Solution.py
8e2727592e9df28f95025be9dfb8ab3c6cebc11f
[]
no_license
AlisonZXQ/leetcode
f43f12009b3bbf35c1dfaf06cfc6689089a3d51b
bd6b18f134336513bbc3112be6e33c79374a7cb1
refs/heads/master
2021-01-19T17:14:28.398493
2016-10-14T01:34:56
2016-10-14T01:34:56
82,442,695
1
0
null
2017-02-19T07:27:35
2017-02-19T07:27:35
null
UTF-8
Python
false
false
649
py
#coding=utf-8 __author__ = 'xuxuan' class Solution(object): def minPathSum(self, grid): """ :type grid: List[List[int]] :rtype: int """ m=len(grid) n=len(grid[0]) ans=[[0 for col in range(n)] for row in range(m)] for i in range(m): for j in...
[ "524058708@qq.com" ]
524058708@qq.com
f466d4e58bddaf9eb3ee70b397a90bb8a9eb7abb
9210dad5d84af438b9450bb8a91ae13b30392060
/mingle/models/tests/man_test_models.py
4953c0137f417e4dffce45816008833320cdce8a
[ "MIT" ]
permissive
jason-neal/companion_simulations
0ccb4e043ab5bff7e779678f3984aed6bd304c77
036610a902cb11b4c408deb2c0d3be1bb377dee8
refs/heads/master
2023-07-22T17:39:41.340156
2022-04-24T09:24:50
2022-04-24T09:24:50
83,430,578
3
1
MIT
2023-07-06T21:23:12
2017-02-28T12:36:59
Jupyter Notebook
UTF-8
Python
false
false
2,131
py
"""Try out the models and how they look. """ import matplotlib.pyplot as plt from mingle.utilities.phoenix_utils import load_starfish_spectrum from obsolete.models.alpha_model import alpha_model2 from obsolete.models.alpha_model import no_alpha # Parameters of models # host_params = [6000, 4.5, 0] # companion_params...
[ "jason.neal@astro.up.pt" ]
jason.neal@astro.up.pt
e465d455ec840a2b7fd3e0de111258524dbec7d5
a893537a71aa285071a68035c968ba6f5c0ca57d
/ch01/02/02.py
2b68eed908b17e97b81f9dd8ec9e6e3de8b2de17
[]
no_license
sinchir0/2020_NLP100
0a1810b0c299c29fa1a811f68fa87be74f9b3cf9
772123da5b5ac4094c26fdce2e192637dc55190a
refs/heads/main
2023-07-18T04:03:04.123302
2021-09-08T22:54:44
2021-09-08T22:54:44
257,416,868
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# 02. 「パトカー」+「タクシー」=「パタトクカシーー」 # 「パトカー」+「タクシー」の文字を先頭から交互に連結して文字列「パタトクカシーー」を得よ. word1 = "パトカー" word2 = "タクシー" word = "".join([a + b for a, b in zip(word1, word2)]) print(word)
[ "s-saito@chic.ocn.ne.jp" ]
s-saito@chic.ocn.ne.jp
e59135d1f91aa1d00a37a6ff418d5fac9bccaec7
9e371869045a2f091f633e9335ab091b368f254c
/src/exec.py
9f5cc4a246191df57dc0024f6ca0ab122469f688
[ "MIT" ]
permissive
liaopeiyuan/information-obfuscation-demo
e10e0bedf49a4e92d387b1c72855455a6a6fb34b
018cb6a2cce5033bf836d78aa8824204ec5553f7
refs/heads/main
2023-07-14T12:06:59.544186
2021-08-13T11:06:14
2021-08-13T11:06:14
395,622,445
2
0
null
null
null
null
UTF-8
Python
false
false
4,486
py
# -*- coding: utf-8 -*- import argparse import json import random from pathlib import Path from typing import List from helper import * def main(): """Entry point for the information obfuscation project :raises NotImplementedError: model not recognized """ parser = argparse.ArgumentParser() pars...
[ "alexander_liao@outlook.com" ]
alexander_liao@outlook.com
2f5041af9fa99d9477e3734c6747a6b8655849a4
9848a719ddfdd21b5fe1fa2f55da290c0f6952dc
/concatenation-of-consecutive-binary-numbers.py
8cb8d5cf7ac2643e61f34a418979d89f0952256c
[]
no_license
maomao905/algo
725f7fe27bb13e08049693765e4814b98fb0065a
84b35ec9a4e4319b29eb5f0f226543c9f3f47630
refs/heads/master
2023-03-13T12:38:55.401373
2021-03-25T01:55:48
2021-03-25T01:55:48
351,278,248
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
class Solution: def concatenatedBinary(self, n: int) -> int: MOD = 10**9+7 ans = 0 for i in range(1,n+1): ans <<= len(bin(i))-2 ans = (ans + i) % MOD return ans
[ "maoya.sato@gmail.com" ]
maoya.sato@gmail.com
ccace3a2f944f7454f6d72fadd3c33b76da4d910
b2fef77e77f77b6cfd83da4ec2f89cbe73330844
/tests/test_denseblock.py
c14ca2ae7a1bb3ed423b4aa19b1f7e32e040ed6e
[ "Apache-2.0" ]
permissive
Project-MONAI/MONAI
8ef2593cc5fd1cd16e13464f927fe563fe3f5bac
e48c3e2c741fa3fc705c4425d17ac4a5afac6c47
refs/heads/dev
2023-09-02T00:21:04.532596
2023-09-01T06:46:45
2023-09-01T06:46:45
214,485,001
4,805
996
Apache-2.0
2023-09-14T15:19:30
2019-10-11T16:41:38
Python
UTF-8
Python
false
false
4,368
py
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
[ "noreply@github.com" ]
Project-MONAI.noreply@github.com
4f3608ad9fa01e4635fb7d75dd4eb4b8871975ca
0923d056fe4aade84b5cf6c7d0112d3dd67a488f
/faxat/models.py
0d50ee6bd22fbd111d21f083fac16447656e8312
[]
no_license
khaled-hamada/faxes-exchange-application
28c49d7e63a9d55239f0b49c3791a8023b0115ce
775ba280ab2be0d0ecc6d1e9b0a9697f0c9a6916
refs/heads/main
2023-05-09T13:23:40.819499
2021-06-04T08:36:33
2021-06-04T08:36:33
373,549,908
0
0
null
null
null
null
UTF-8
Python
false
false
4,563
py
from django.db import models from datetime import datetime # Create your models here. from django.utils.timezone import now #import datetime class fax(models.Model): objects = models.Manager() id = models.AutoField(primary_key = True) sader = models.IntegerField(default=0) sader_edara = models.IntegerF...
[ "khaledosman737@gmail.com" ]
khaledosman737@gmail.com
0a42323b1508446c6f26d59ac25c952f1d513405
b76615ff745c6d66803506251c3d4109faf50802
/pyobjc-framework-Cocoa/PyObjCTest/test_nsdatepicker.py
086336544bf8d6055420cf3408d90449675b215e
[ "MIT" ]
permissive
danchr/pyobjc-git
6ef17e472f54251e283a0801ce29e9eff9c20ac0
62b787fddeb381184043c7ff136f1c480755ab69
refs/heads/master
2021-01-04T12:24:31.581750
2020-02-02T20:43:02
2020-02-02T20:43:02
240,537,392
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
from PyObjCTools.TestSupport import * from AppKit import * class TestNSDatePicker(TestCase): def testMethods(self): self.assertResultIsBOOL(NSDatePicker.isBezeled) self.assertArgIsBOOL(NSDatePicker.setBezeled_, 0) self.assertResultIsBOOL(NSDatePicker.isBordered) self.assertArgIsBO...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
eee76733b15a4cd763b74036e2faeb5478ab1515
72b77f97876983025eb05a5aa1d6f248a1be3074
/binarysearch/reverse_words.py
2c48ae3e87b9c61459783817b2b76edfd3ded350
[ "Apache-2.0" ]
permissive
erjan/coding_exercises
4c6bccb2cdac65ccbc3107a482914275ecd157f7
68dac358a6d4dabd41d47dbd4addb2ec50e0ca11
refs/heads/master
2023-09-02T07:25:30.886175
2023-08-27T06:13:06
2023-08-27T06:13:06
236,281,070
5
0
Apache-2.0
2020-05-05T15:08:49
2020-01-26T07:32:09
Python
UTF-8
Python
false
false
237
py
''' Given a string s of words delimited by spaces, reverse the order of words. ''' class Solution: def solve(self, sentence): s = sentence.split() s = s[::-1] s = " ".join(s) return s
[ "noreply@github.com" ]
erjan.noreply@github.com
78b91b7761a36a4285844dadb1ae932cc72f6973
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/int/Schema+Instance/NISTXML-SV-IV-atomic-int-maxExclusive-1-1.py
6c49f127d442c2dc809b4d1198ee550f356375ec
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
266
py
from output.models.nist_data.atomic.int_pkg.schema_instance.nistschema_sv_iv_atomic_int_max_exclusive_1_xsd.nistschema_sv_iv_atomic_int_max_exclusive_1 import NistschemaSvIvAtomicIntMaxExclusive1 obj = NistschemaSvIvAtomicIntMaxExclusive1( value=-2147483648 )
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
50623cd0a84a967a491105b12a5ca2afec890913
629606ef6e0ce252f74729ac60f57ca8805c3c78
/hw_003_Spider/hw_001_mongodb/hw_001_非关系型的数据库.py
b57838019f11cb94ef1a1fbd9bbb5c5fe8e1f511
[]
no_license
LeeXyan/lxgzhw006
cc31024874725f60b766c9d5d24c2dafc66b8de3
621a73544262df7e104806579242deeaa8dbe2c2
refs/heads/master
2021-10-10T17:41:52.381843
2019-01-15T00:25:08
2019-01-15T00:25:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
""" 数据是一个一个的个体,不再是有各种复杂的对应关系 关系型数据库在处理关系的问题上非常复杂 非关系型的数据库就是处理这个问题的 MongoDB更符合python的哲学风格 """ """ MongoDB 在爬虫里面用得最多的数据库 易扩展 大数据量高性能 如果是关系型数据库,一条数据需要查询多次 非关系型数据库只需要查询一次: 原因在于每条数据都是相互独立的,是完整的数据: 缺点更耗内存,需要较高的配置 灵活的数据模型 无需事先建立数据字段,存储的时候如果没有,会直接增加 高可用 ...
[ "1156956636@qq.com" ]
1156956636@qq.com
ca95c3598ac54d078936915a78cea2815a367fbe
ebe7d0655c431b916611a216858ea84d53481e8a
/order_manager/migrations/0007_auto_20180530_1021.py
672a4b06841dfde21fbc0acc56441fb8d66b39d7
[]
no_license
LambertlLan/massage_manager
59fd31e0b13edea55ff4e16f0589d2998efb71e7
c855c28501075b9cc9827d7de4d96a9276f4e4be
refs/heads/master
2022-12-22T18:34:49.536924
2018-06-08T09:15:00
2018-06-08T09:15:00
133,788,441
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# Generated by Django 2.0.5 on 2018-05-30 10:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order_manager', '0006_auto_20180529_1545'), ] operations = [ migrations.AlterField( model_name='order', name='pay_ty...
[ "landingyu@163.com" ]
landingyu@163.com
17f9625818cceb839c9d7d264d43e89701061fdd
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_statements.py
968dea676618cdf916ccf5ef020e3eabeabca5cd
[ "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
234
py
#calss header class _STATEMENTS(): def __init__(self,): self.name = "STATEMENTS" self.definitions = statement self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['statement']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
cc807c1d4c5614309a44802afdb0e1d339f32728
f4b135093281b5fb0b70a84c8227301ef505e0a9
/authenticatorpy/authenticator.py
c9a9dad6572977d92ca9f753c7dec10f584749d4
[ "MIT" ]
permissive
a849567264/authenticatorpy
cbe498c5b36cbf6dff8e83557110dac6ea706508
5f18c06db37d1f35590d099379dd01b91d26fe29
refs/heads/master
2020-09-23T06:00:03.174494
2019-11-30T22:39:22
2019-11-30T22:39:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,864
py
#!/usr/bin/env python import sys import base64 import time import hashlib import binascii import re class Authenticator(object): """Authenticator class which generates unique one time use password. """ def __init__(self, secret): """Returns a Authenticator instance. Args: se...
[ "abdullahselek@gmail.com" ]
abdullahselek@gmail.com
8cad2b5988ed6c8402ab3bb5ce5c30c90f822cf2
8dc7fdcbd418d05babe9a2b325e4b09de3cc2fa8
/Python Lab/Codes/Exp 9/canvas3.py
0605134fa52a771a05bf451d229b6e6506812066
[]
no_license
sreekeshiyer/IT-Sem4
de22ad0e3dbd806cacc02a11359052a900cc63d8
d3d867a6e2d9b3476130979f7471a485a7c56448
refs/heads/master
2023-08-04T20:51:25.241102
2021-10-06T05:56:16
2021-10-06T05:56:16
411,423,035
7
1
null
null
null
null
UTF-8
Python
false
false
841
py
from tkinter import * def checkered(canvas, line_distance): for x in range(line_distance,canvas_width,line_distance): canvas.create_line(x, 0, x, canvas_height, fill="#476042") for y in range(line_distance,canvas_height,line_distance): canvas.create_line(0, y, canvas_width, y, fill="#476042") canvas...
[ "vkrishna2090@gmail.com" ]
vkrishna2090@gmail.com
86e3c98aa1fbf7bc9b69a5deefdf90185d09e0fb
b8911bd330c08c32a205751cf2f7538494729c16
/examples/plotting/plot_3_lpi.py
4f47ef9d914cdfd9d873c318a6663cc84a8e5831
[ "BSD-3-Clause" ]
permissive
mirkobronzi/orion
3c0bb6258392729b91617997eebcf1e8897795aa
ad8f69afabf3faab557a82ef9409fabd63495ea8
refs/heads/master
2022-05-02T05:45:54.425146
2022-03-08T00:37:08
2022-03-08T00:37:08
195,877,506
0
0
NOASSERTION
2022-03-08T00:38:23
2019-07-08T19:55:26
Python
UTF-8
Python
false
false
6,960
py
""" ========================== Local Parameter Importance ========================== .. hint:: Conveys a very compact measure of the importance of the different hyperparameters to achieve the best objective found so far. The local parameter importance measures the variance of the results when varying one hype...
[ "xavier.bouthillier@umontreal.ca" ]
xavier.bouthillier@umontreal.ca
8ec6d9a3bf0c6ff03c65ad2ab66eb57651d9ad43
b3b5902f0cd292defdc1acccd8fa5c7890e8ba5d
/SPORTS/sports_spiders/scripts/nir_scripts/types_update.py
b97816168ce82ca4d246286ce54ba77ffb79525c
[]
no_license
headrun/SWIFT
83d3d926244e472813ef79b304ac1639750904a3
68bdd09d83ee2967a2378375d9b2cb6232a3a0cf
refs/heads/master
2023-01-25T00:29:57.810604
2020-12-01T01:22:16
2020-12-01T01:22:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
import MySQLdb class Types: def __init__(self): self.conn = MySQLdb.connect(db='SPORTSDB_BKP', host='10.4.2.197', user='root') self.cursor = self.conn.cursor() self.types_dict = {} def main(self): query = 'select id, title from sports_types' self.cursor.execute(query...
[ "charan@headrun.com" ]
charan@headrun.com
25686bf4eea2c911b618ea16cc3058b867a71012
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/cv/classification/Resnet50_Cifar_for_PyTorch/configs/hrnet/hrnet-w18_4xb32_in1k.py
1d8a3c23a58b1e8ddcbdb228472ce17594b1dee5
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
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
780
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
edfe21719db9b6df803aec5467aa78e66de79494
eff5cd25fa442b70491262bada0584eaaf8add46
/setup.py
87991de30af9b922c18c654ab84137e7f56a7bb1
[ "Apache-2.0" ]
permissive
fsx950223/tfx
c58e58a85e6de6e9abcb8790acbf36424b5b2029
527fe2bab6e4f62febfe1a2029358fabe55f418c
refs/heads/master
2021-01-04T12:12:51.010090
2020-01-26T04:43:14
2020-01-26T04:43:14
240,543,231
1
0
Apache-2.0
2020-02-14T15:48:12
2020-02-14T15:48:11
null
UTF-8
Python
false
false
5,711
py
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
[ "tensorflow-extended-team@google.com" ]
tensorflow-extended-team@google.com
e17ca261e76939c823629cf178d11da736ef5e29
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part009320.py
0517fa0d14ba2cd2e7d8891d149054f7476c6c47
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
2,653
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
73b340ad922d84b4fa00cf96d07d77bb3bf9ef02
b7ee82768de54a83a99ad4ddd9e090c61935b86a
/paper/gtex-methods/to-bed.py
b676a92c60f28ee7684b2129a7b8b0b08838cebc
[ "MIT" ]
permissive
brentp/somalier
5042ea9e7773a311c12825ac4ad8ee4140db2412
de50b1cfe1b859407b64ba3928cc4419f85c7403
refs/heads/master
2023-09-01T16:21:31.459237
2023-08-28T10:50:30
2023-08-28T10:50:30
143,888,326
228
32
MIT
2023-08-28T10:50:31
2018-08-07T14:52:04
Nim
UTF-8
Python
false
false
1,032
py
import sys import collections def to_exons(path): D = collections.defaultdict(list) for line in open(path): if line[0] == '#': continue toks = line.strip().split("\t") if toks[2] != "exon": continue info = dict(tuple([y.strip('"') for y in x.split(" ")]) for x in toks[8].split(...
[ "bpederse@gmail.com" ]
bpederse@gmail.com
9aa20f5d7e6d8f07cdbc97dbd6abca8180bce866
9d7d69178c6f1f1db6ed6767e0af32bfe836549c
/new_workspace/Gumtree_Workspace/Magnet/TempFieldScanAug2015.py
3a2afbec16e3ef97024e3c9ac4abc4e102408305
[]
no_license
Gumtree/Quokka_scripts
217958288b59adbdaf00a9a13ece42f169003889
c9687d963552023d7408a8530005a99aabea1697
refs/heads/master
2023-08-30T20:47:32.142903
2023-08-18T03:38:09
2023-08-18T03:38:09
8,191,387
0
0
null
null
null
null
UTF-8
Python
false
false
3,770
py
from gumpy.commons import sics #from gumpy.quokka.quokka import * from time import sleep # Reldrive bsx def reldriveBsx(offset): driveBsx(getBsxValue(), offset) def scan_temp_field(fieldList, mode, preset, tempSettleTime = 1, fieldSettleTime = 1): # for wavelength in wavelengthList: for i in xran...
[ "quokka@DAV1-QUOKKA.nbi.ansto.gov.au" ]
quokka@DAV1-QUOKKA.nbi.ansto.gov.au
8b958285e8d308460e807f5e02ca1132240cd081
1065a2782e4947b5bf14ec4536e4ad7addc7aec3
/strategy/cryptoalpha/casub.py
81d43242a7cdb41ce4b1cf6537e691cafc7c0217
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Johannesduvenage/siis
0bf6875d4a5f3638cadb01ed5541aab29ba1d77a
57e537cf9b6a71c8ad0b3bb0759772d126496a17
refs/heads/master
2020-09-10T21:51:56.814014
2019-11-13T23:57:34
2019-11-13T23:57:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
# @date 2018-08-24 # @author Frederic SCHERMA # @license Copyright (c) 2018 Dream Overflow # Crypto Alpha strategy sub-strategy base class. from instrument.candlegenerator import CandleGenerator from strategy.timeframebasedsub import TimeframeBasedSub class CryptoAlphaStrategySub(TimeframeBasedSub): """ Cryp...
[ "frederic.scherma@gmail.com" ]
frederic.scherma@gmail.com
a4b6894000d2cf5dfbb1588ff6a3cad439d6cf1e
aa85d49372445b77b5bec871ceaec204a6efd2d8
/scripts/fix_columns.py
04b431ae3bf6381bf608e82e3c1f2fe616d59747
[ "Apache-2.0" ]
permissive
broadinstitute/pyro-cov
aab41072df395a3c66a79898a9edfba432d52544
a2b5c05cdcb5c35f2882ca578607b3d86bb60484
refs/heads/master
2023-07-11T18:35:31.884395
2023-02-02T19:03:19
2023-02-02T19:03:19
292,037,402
67
21
Apache-2.0
2023-09-13T19:57:28
2020-09-01T15:34:42
Jupyter Notebook
UTF-8
Python
false
false
942
py
# Copyright Contributors to the Pyro-Cov project. # SPDX-License-Identifier: Apache-2.0 import glob import logging import os import pickle import tqdm from pyrocov.geo import gisaid_normalize logger = logging.getLogger(__name__) logging.basicConfig(format="%(relativeCreated) 9d %(message)s", level=logging.INFO) d...
[ "fritz.obermeyer@gmail.com" ]
fritz.obermeyer@gmail.com
9eb0448e3cd7164f4ce4f2d80645ee53e6415521
e0c378f27462cb00b656473cbe0b172886741818
/tests/core/data/test_batch.py
32f12f4568b080df8b5cb12d4d384231e5b04a14
[ "Apache-2.0" ]
permissive
Lightning-Universe/lightning-flash
d0c955d7fdf962175750d154b3a369a483b8d188
fc6c97a43d65b49561c896bf05bc1c75536d0dc0
refs/heads/master
2023-08-17T12:03:52.563905
2023-08-14T12:35:10
2023-08-14T12:35:10
333,857,397
58
12
Apache-2.0
2023-09-11T14:43:06
2021-01-28T18:47:16
Python
UTF-8
Python
false
false
2,774
py
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
Lightning-Universe.noreply@github.com
254da2f0eb3f82ffb8260bf961184a2be5e57faf
a3e52fbdfc81da3d17fee3d11b4451b330bfd592
/IO/src/learn/testIO.py
02c24e4038149533ecbb85616ce79407385076dc
[]
no_license
chrislucas/python
79633915dd0aa8724ae3dfc5a3a32053f7a4f1e0
d3cca374f87e134a7ddfc327a6daea983875ecac
refs/heads/master
2021-01-17T04:08:25.056580
2016-12-26T11:41:31
2016-12-26T11:41:31
42,319,868
0
0
null
null
null
null
UTF-8
Python
false
false
1,267
py
def testIO(): while True: from sys import stdout, stdin n = stdin.readline() try: n = int(n) n = int(log(n, 2) + 1) for i in range(n, -1, -1): stdout.write(str( "1" if n & (1 << i) > 0 else "0" )) stdout.write("\n") exc...
[ "christoffer.luccas@gmail.com" ]
christoffer.luccas@gmail.com
982a5634807e55bdf4a1dd40ec8f58e5be79a4ca
863a56f99b4668211b96d66e3d2698196e46f3b1
/prng/cellular_automata/rule201/run.py
2d499ff01420f2dd53bd738a29a14512be7bda2d
[ "LicenseRef-scancode-public-domain" ]
permissive
atoponce/scripts
15b958463d6e788ad6f7785d2614ddb372fc69a7
b2c8fd2a0b68e83562570c315f4c9596ee546011
refs/heads/master
2023-04-28T05:47:07.918556
2023-04-15T15:02:05
2023-04-15T15:02:05
8,612,257
22
4
null
2016-12-22T19:21:28
2013-03-06T20:18:33
Shell
UTF-8
Python
false
false
650
py
#!/usr/bin/python3 #seed = '00000000000000000100000000000000000' # textbook initial state seed = '01011111110010010011010001100100010' # random initial state bits = len(seed) for n in range(5000): print(int(seed, 2)/2**bits) state = '' p, q, r = -1, 0, 1 for n in range(bits): # there must be a more ef...
[ "aaron.toponce@gmail.com" ]
aaron.toponce@gmail.com
4a9358c4e180804283bad55a6f958bdc63d7c42e
da2583af7a14f04aed029a79a79224547de4c1f2
/rl/standalone/reps_boris/chain.py
050438952cd65ba47bdeafc9787df1029c8544cb
[]
no_license
yun-long/rl_prototype
4b0af8b817ad1c8bc30a46d7fa2e8f5cd37f7ea1
0a86a097d58ce299da90ea346e074f20fe167a5d
refs/heads/master
2020-04-23T15:37:49.498870
2019-02-18T11:28:21
2019-02-18T11:28:21
171,271,851
0
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
"""Chain environment with stochastic transitions.""" import numpy as np import sys from six import StringIO from gym import utils from gym.envs.toy_text.discrete import DiscreteEnv class ChainEnv(DiscreteEnv): metadata = {'render.modes': ['human', 'ansi']} def __init__(self, nS=5, ps=0.9, small=2, large=10): ...
[ "yun-long.song@outlook.com" ]
yun-long.song@outlook.com
ddd9676b660fb4ce2adf12fe10ea92fa6fc6c95b
c883bf3cc158aec617c3c879c5fbb7f75baccb64
/Community/bulk_register_group/bulk_register_group_page.py
01ae6e7ed03fa32f061bc7c68f143643145a9735
[ "LicenseRef-scancode-commercial-license", "Apache-2.0" ]
permissive
bluecatlabs/gateway-workflows
46b3ddd5f743beeabd91a6d943530969d62daf73
60b36434e689c3ef852ab388ca2aae370e70c62d
refs/heads/master
2023-09-05T20:57:11.804452
2023-08-23T21:51:59
2023-08-23T21:51:59
107,717,495
45
87
Apache-2.0
2023-09-07T07:43:47
2017-10-20T19:20:29
Python
UTF-8
Python
false
false
3,221
py
# Copyright 2021 BlueCat Networks (USA) Inc. and its affiliates # -*- coding: utf-8 -*- # # 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 # # Unle...
[ "rtamura@bluecatnetworks.com" ]
rtamura@bluecatnetworks.com
5332dad630aa5a5097f62687bb3d0c11a28cec21
880ee39b1e71823101491e7f8bbbd21e7271b5f4
/zoom24022021/while_demo.py
19c4703338a66d296ffb1b51ff001a10db6edd68
[]
no_license
dohcgle/pdp_tutorial
e03f7ac9ba4efd7925626f3ed5d7431f52285efb
e54ab4e82d2ea40626563d0e1dacff976d8c899c
refs/heads/master
2023-03-26T03:13:54.606967
2021-03-03T13:59:39
2021-03-03T13:59:39
344,143,837
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
# 1. chiziqli # 2. tarmoqlanuvchi # 3. takrorlanuvchi numbers = [1,2,3,4,5,6,7,8,9,10] # for number in numbers: # print(number) # range(start=0,stop=5,step=1) # for i in range(5): # print(i) # for i in range(100): # if i % 5 == 0: # print(i, end=" ") # for i in range(5, 100, 5): # [5, 10, .... ...
[ "utn1002@gmail.com" ]
utn1002@gmail.com