blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
a357f9ead60456ab5a7e9d939b363b35d728a205
1dec4f8f58202b3ebabcb12816811d22a8b7da3c
/test/scanner.py
d300ce1d50a3569256666a359fd39d53558fd36a
[ "MIT" ]
permissive
lsst-sqre/rubin-jupyter-hub
51df5d3590635009479732247c3c19333ea39ff5
162abe9422332aa60ef089af2862b7a0b0417fa1
refs/heads/master
2023-04-17T09:16:10.893045
2021-05-05T17:41:45
2021-05-05T17:41:45
287,143,775
0
0
NOASSERTION
2021-05-05T17:41:45
2020-08-13T00:33:31
Python
UTF-8
Python
false
false
280
py
#!/usr/bin/env python3 import rubin_jupyter_utils.hub as rh q = rh.SingletonScanner( name="sciplat-lab", owner="lsstsqre", debug=True, experimentals=2, dailies=3, weeklies=4, releases=3, cachefile="/tmp/reposcan.json", ) q.scan() q.get_all_tags()
[ "athornton@gmail.com" ]
athornton@gmail.com
e2810a18610a785f47a2d469dc933a538a438a11
b4b0e2979d3342449bd7847e619896a7f3878f2f
/day02/bathroom.py
396d3e9c53dcdcf71a2d0337c68f939dc29ad9eb
[ "MIT" ]
permissive
ecly/adventofcode2016
ebbfa39e0932488d930e286321d73e0cb59d24b5
d08411a887cb2bf6b53785b9b6c193a69f78ba87
refs/heads/master
2018-10-20T23:23:07.113189
2018-07-20T17:37:53
2018-07-20T17:37:53
114,026,630
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
py
def first(instructions): code = "" x, y = 1, 1 keypad = ((1,2,3),(4,5,6),(7,8,9)) for instruction in instructions: for c in instruction: if c == 'U'and y > 0: y-=1 if c == 'D'and y < 2: y+=1 if c == 'L'and x > 0: x-=1 if c == 'R'and x < 2: x+=1 ...
[ "ecly@mailbox.org" ]
ecly@mailbox.org
c2a01c5648c2e7f6f5fbaef3915cdf3dae6ded4b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2183/60895/250649.py
2ac41841d2853fb7b23c742a376c03a26de7de4b
[]
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
287
py
t=int(input()) while t>0: n=int(input()) temp=n start=0 sum=0 if n==1: sum=3 else: temp=temp-1 while temp>0: start=start+2*temp temp=temp-1 for i in range(0,2*n): sum=sum+start+i+1 print(sum)
[ "1069583789@qq.com" ]
1069583789@qq.com
15bbb5b5d25a476591ac3f22a66ddeba6418df73
e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7
/flask_api/venv/lib/python3.7/site-packages/vsts/task_agent/v4_1/models/endpoint_url.py
6ac3ef6470b0974e3a1bbc74eb73896987dc48b9
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
u-blavins/secret_sasquatch_society
c36993c738ab29a6a4879bfbeb78a5803f4f2a57
0214eadcdfa9b40254e331a6617c50b422212f4c
refs/heads/master
2020-08-14T00:39:52.948272
2020-01-22T13:54:58
2020-01-22T13:54:58
215,058,646
1
0
null
null
null
null
UTF-8
Python
false
false
1,875
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
[ "usama.blavins1@gmail.com" ]
usama.blavins1@gmail.com
9bb9fa1995a4ad19d223a45f59b6a2586b015ae6
00db9cdb3cf82306c0de9de1aac0f7514192f1d7
/dataset/SUN.py
61af030add5b5c574858bbecf4fffa3c461152a7
[]
no_license
lijiunderstand/BiSeNet-CCP
039b4aad6a20ed848141e09a265f50e204d0a28c
61023e13fed18fc58737194f1de8639b82382605
refs/heads/master
2020-04-24T22:19:47.595380
2019-01-22T01:30:40
2019-01-22T01:30:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,450
py
import torch import glob import os from torchvision import transforms from torchvision.transforms import functional as F import cv2 from PIL import Image import pandas as pd import numpy as np from imgaug import augmenters as iaa import imgaug as ia from utils import get_label_info, one_hot_it import random def augme...
[ "shuaixie@zju.edu.cn" ]
shuaixie@zju.edu.cn
efb453efca3b2188dcbc78500bd62e2a8122ab1d
1ed536ef1527e6655217e731f622d643ece49c2b
/CGATPipelines/pipeline_docs/pipeline_chipseq/trackers/Intervals.py
600487d473929b2f4042e2b2f8076266a7629344
[]
no_license
siping/cgat
de0f7af124eb38c72d7dece78fff83ff92ddbf96
aa4cc85ffdc53998ea1a5ac5516df2d16c254d2e
refs/heads/master
2021-01-22T13:03:18.060139
2013-10-07T15:53:55
2013-10-07T15:53:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,737
py
from ChipseqReport import * import IOTools class FoldChangeTracker( TrackerSQL ): '''the fold change tracker ignores unstimulated tracks.''' def __init__(self, *args, **kwargs ): TrackerSQL.__init__(self, *args, backend = DATABASE, **kwargs ) def getTracks( self, subset = None ): ...
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
85d1641bef7fd5909e21ca349f509fdd3421cc41
0987f31e64bcacb41ba3a1e20054d7b8ac0d7346
/contests/ABC062/C_correct.py
c036e7a61ea6e88afb42487b1449da2c480884d5
[]
no_license
masakiaota/kyoupuro
81ae52ab3014fb2b1e10472994afa4caa9ea463b
74915a40ac157f89fe400e3f98e9bf3c10012cd7
refs/heads/master
2021-06-27T04:13:52.152582
2020-09-20T03:21:17
2020-09-20T03:21:17
147,049,195
1
0
null
null
null
null
UTF-8
Python
false
false
743
py
# メインアイデア # T分割と||分割で差が小さい方を探す # 90度回転させた場合も考える # 総合的に小さい方を採用する # 図的な解説は別のPDFをアップロードしてある H, W = list(map(int, input().split())) # 3の倍数の場合は即座に0とわかる if (H * W) % 3 == 0: print(0) exit() def try_divi(W, H): # パターン1 err = W # パターン2 w2, w3 = W // 2, W // 2 if W % 2: w2 += 1 for h1 ...
[ "aotamasakimail@gmail.com" ]
aotamasakimail@gmail.com
399d8f1ccae0a90aaadd43bbb8361fc501069da4
34652a47355a8dbe9200db229a1bbc62619de364
/Maths/Euler Sum_for.py
d2db391244ef070127e556456b9ec176533aed0a
[]
no_license
btrif/Python_dev_repo
df34ab7066eab662a5c11467d390e067ab5bf0f8
b4c81010a1476721cabc2621b17d92fead9314b4
refs/heads/master
2020-04-02T13:34:11.655162
2019-11-10T11:08:23
2019-11-10T11:08:23
154,487,015
0
1
null
null
null
null
UTF-8
Python
false
false
213
py
import math N=int(input("Number of terms you want to sum up : \n")) sum = 0 for x in range(1, N+1, 1): sum = sum + 1/x**2 print("The result is : ", sum, "\n") print("The EXACT result is : ", math.pi**2/6)
[ "bogdan.evanzo@gmail.com" ]
bogdan.evanzo@gmail.com
ec58eda1e6caea7793bb434bbf060c242815ae28
3cbf4a9d14cd487520f2bd05db10542705a37baf
/h2o-py/tests/testdir_algos/deeplearning/pyunit_weights_and_biases_deeplearning.py
76f2f8903d02c8119cc64a31daddf0f61973f02b
[ "Apache-2.0" ]
permissive
KendraFabric/h2o-3
733ff021553ff2c2d8f0c3336450d886d029cf15
c75bc5d2dc644cc8c09df755185a4cc6e34e0d1a
refs/heads/master
2023-03-15T12:32:02.852026
2016-08-26T14:01:07
2016-08-26T14:27:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
import sys, os sys.path.insert(1, os.path.join("..","..")) import h2o from tests import pyunit_utils def weights_and_biases(): print "Test checks if Deep Learning weights and biases are accessible from R" covtype = h2o.upload_file(pyunit_utils.locate("smalldata/covtype/covtype.20k.data")) covtype[54] = covty...
[ "spnrpa@gmail.com" ]
spnrpa@gmail.com
e8858b1d17db014e60ff494d1957a7e6b40abea3
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/group_and_right_life/have_group/point/long_point_or_next_place.py
353072ad6581aa82d34c921d2190fd9605b2db54
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
#! /usr/bin/env python def person_or_next_work(str_arg): problem(str_arg) print('fact') def problem(str_arg): print(str_arg) if __name__ == '__main__': person_or_next_work('last_place')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
9997b4b6559fd1d70162f2a3a4866a702f635c0f
55591cff4b4dbfec91ac8e498652c2ad60bfdffe
/datahub/dataset/core/views.py
b8c2f58a8861f7ede2eddf27716026aace8c11eb
[ "MIT" ]
permissive
alixedi/data-hub-api-cd-poc
2caf6575cced33f0b2b22582d8bdcd60e99ba7d8
a5e5ea45bb496c0d2a06635864514af0c7d4291a
refs/heads/develop
2020-12-26T05:52:39.575158
2020-01-30T15:27:27
2020-01-30T15:27:27
237,407,350
0
0
MIT
2020-02-07T12:38:47
2020-01-31T10:25:34
null
UTF-8
Python
false
false
1,150
py
from rest_framework.views import APIView from config.settings.types import HawkScope from datahub.core.auth import PaaSIPAuthentication from datahub.core.hawk_receiver import ( HawkAuthentication, HawkResponseSigningMixin, HawkScopePermission, ) from datahub.dataset.core.pagination import DatasetCursorPagi...
[ "nick.ir.ross@gmail.com" ]
nick.ir.ross@gmail.com
54be352c9be4e5ee113aa84590c71e535dc20a78
21a7969bea3e4fb4b4734443aa1702000c26336b
/009-Guessing-Game-One.py
57b5a45057dda0866b8a9730d4d8a0efa3f39ef9
[]
no_license
jaapdejong/python-challenges
635823e7c67c6b5d769c22298d385cfa40cc9f9d
04fbb009d6c017bdb17a2a6cc45c543a13494fe0
refs/heads/master
2021-01-15T22:47:23.882155
2017-08-10T11:18:08
2017-08-10T11:18:08
99,915,001
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
#!/usr/bin/python3 # # Exercise 9 # Generate a random number between 1 and 9 (including 1 and 9). # Ask the user to guess the number, then tell them whether they guessed too low, too high, or exactly right. # (Hint: remember to use the user input lessons from the very first exercise) # from random import randint compu...
[ "jaap.dejong@nedap.com" ]
jaap.dejong@nedap.com
ab5b9ad96148fb17c93b3a77ac81f34e18a0861f
612325535126eaddebc230d8c27af095c8e5cc2f
/depot_tools/ENV/lib/python2.7/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py
033ec69f85594ccdd459e1609798e7af65464cb6
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/proto-quic_1V94
1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673
feee14d96ee95313f236e0f0e3ff7719246c84f7
refs/heads/master
2023-04-01T14:36:53.888576
2019-10-17T02:23:04
2019-10-17T02:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,229
py
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import text_type import gettext _ = gettext.gettext try: from functools import reduce except ImportError: pass from ..constants import voidElements, booleanAttributes, spaceCharacters from ..constants import r...
[ "2100639007@qq.com" ]
2100639007@qq.com
736d50cd559b4a440abd688caf3c6c50d476faaa
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/machinelearning/azure-mgmt-machinelearningservices/generated_samples/registry/code_version/delete.py
3e012305c57cb4acd3c379e49fb0e9f5eebf2636
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,683
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
6dd679509464d24a600eedfe687833818a76add8
54aeeae3c4258e2312028ecd2a38242dd3f4f34d
/examples/BLE_Alerts_Secure_2/main.py
3bea866358ed00335b014cf3690356f44e0e374c
[]
no_license
zerynth/lib-espressif-esp32ble
09f4f9ae28056d49d4062c19c0a330bff61396f3
17ab2a1fbd80e99420cd988c8fc148b8f366e379
refs/heads/master
2021-06-08T04:12:22.808499
2020-09-24T15:31:45
2020-09-24T15:31:45
167,332,727
0
0
null
null
null
null
UTF-8
Python
false
false
4,832
py
################################################################################ # BLE Alerts with Security 2 # # Created by Zerynth Team 2019 CC # Author: G. Baldi ############################################################################### import streams #import the ESP32 BLE driver: a BLE capable VM is also need...
[ "dev@zerynth.com" ]
dev@zerynth.com
cc525d1d2d9552b17bd4b2818466de9dc2db4e33
f359c953ef823cc44f7d87a3736c3e4fb1817c0b
/EDBRCommon/python/simulation/RunIIDR74X/RSGravToZZToLLQQ_M-4500.py
f8823971e11ccf67430c5a39efff4e49bce8f793
[]
no_license
jruizvar/ExoDiBosonResonancesRun2
aa613200725cf6cd825d7bcbde60d2e39ba84e39
b407ab36504d0e04e6bddba4e57856f9f8c0ec66
refs/heads/Analysis76X
2021-01-18T20:00:57.358494
2016-05-30T21:30:19
2016-05-30T21:30:19
23,619,682
1
1
null
2016-04-22T18:38:45
2014-09-03T12:41:07
Python
UTF-8
Python
false
false
879
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/mc/RunIISpring15D...
[ "jruizvar@cern.ch" ]
jruizvar@cern.ch
6bddda677ffc28c03d53706a15295b771ca75757
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02594/s262687394.py
fe06f875311bd6773825bd1fa129ec75658d119b
[]
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
72
py
x = int(input().rstrip()) if x >= 30: print("Yes") else: print("No")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7f755f14fed2076d30afd43d52d84419ec2c5011
5af5fa981a0a8598b2b031aaf10c6ba6d2f5c28c
/manage.py
b9a5ea2ec851beef60a088a13b233c88c2ace45c
[]
no_license
FMularski/image-house
d15b2fe7d0379cd237c5aef3336a0ad2ee5a136c
968e7c6a566090d0cf25246e506820dd955b34c0
refs/heads/main
2023-07-31T18:49:25.705577
2021-09-13T18:56:10
2021-09-13T18:56:10
404,382,258
0
1
null
null
null
null
UTF-8
Python
false
false
667
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'image_house.settings') try: from django.core.management import execute_from_command_line except ...
[ "mularskif@gmail.com" ]
mularskif@gmail.com
a9fc27c1b63235d582097a3ea144208589f0880d
b3b066a566618f49ae83c81e963543a9b956a00a
/Supervised Learning with scikit-learn/01_Classification/05_k-Nearest Neighbors Predict.py
96614384e3f708dc1e9787ed95b2a117a9ba84a8
[]
no_license
ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020
666c4129c3f0b5d759b511529a365dfd36c12f1a
f3d20b788c8ef766e7c86c817e6c2ef7b69520b8
refs/heads/master
2022-12-22T21:09:13.955273
2020-09-30T01:16:05
2020-09-30T01:16:05
289,991,534
2
0
null
2020-08-24T17:15:43
2020-08-24T17:15:42
null
UTF-8
Python
false
false
2,183
py
''' k-Nearest Neighbors: Predict Having fit a k-NN classifier, you can now use it to predict the label of a new data point. However, there is no unlabeled data available since all of it was used to fit the model! You can still use the .predict() method on the X that was used to fit the model, but it is not a good indi...
[ "Your-Email" ]
Your-Email
2ff172e2e6211730ddf823e829aa16698fff35b2
2f2667682bb78578445b9e3aac7cc62cfba83d5a
/googlenet/nets/cnn_model/CNN_MODEL.py
cb42ca784f10d89d88a49599ffdab9680d78e45d
[]
no_license
Yorwxue/trt_experence
9c770c2a1cb7c48c9d7f21c46be0107de91f1c41
778a6cef019dd8afdae6b608b3cbacb56480c7b1
refs/heads/master
2022-12-21T12:38:13.108402
2019-08-01T08:11:10
2019-08-01T08:11:10
195,760,238
0
0
null
2022-12-08T05:57:26
2019-07-08T07:36:12
Python
UTF-8
Python
false
false
4,407
py
import tensorflow as tf class cnn_model(object): def __init__(self, input_placeholder, num_classes): self.inputs = input_placeholder self.num_classes = num_classes self._build_model() self.labels = None def build_graph(self, label_place_holder): self.labels = label_pla...
[ "yorwxue@gmail.com" ]
yorwxue@gmail.com
2a129138b050a28bf745e50795dcbd843554f7d3
d7f45fac46598da9825a404d7511df7474237e4a
/ex.071.py
ae90bc20c6a1a345fd4295374d5d35af552c7539
[]
no_license
MarceloBCS/Exercicios_Curso_em_video
b4a8cbc8573e1303065c0cf1baad25c47d5a2fd8
a90fd67d83cf154f3554f962815fb791d3508d0c
refs/heads/master
2022-12-29T19:15:50.007022
2020-10-13T05:09:28
2020-10-13T05:09:28
303,592,782
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
cor = {'amarelo':'\033[1;33m', 'red':'\033[1;31m', 'limp':'\033[m'} print(cor['red'], '='*22) print(f' Bhering Bank') print('='*24, cor['limp']) n = int(input('Valor do Saque: R$ ')) nota50 = n // 50 resto50 = n % 50 nota20 = (resto50) // 20 resto20 = resto50 % 20 nota10 = (resto20) // 10 resto10 = resto20 % 1...
[ "63213758+MarceloBCS@users.noreply.github.com" ]
63213758+MarceloBCS@users.noreply.github.com
1517091c99791653d0cab3474d9bab53eab31f3b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_neglect.py
a50f6e279fa4b54dc4dbd0054f3c11b55146c2f7
[ "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
420
py
#calss header class _NEGLECT(): def __init__(self,): self.name = "NEGLECT" self.definitions = [u'to not give enough care or attention to people or things that are your responsibility: ', u'to not do something, often because you forget: '] self.parents = [] self.childen = [] self.properties = [] self.js...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
73139227eba251932205e3dbb90771cec1951790
92993cff825da80a8ff601572a0c52b0b7d3cbde
/algorithms/Svm/APG/L2/APG_L2_m22.py
a2277a8abdf5a9f18704027fccf9cf7bcdc2e1f7
[]
no_license
yingzhuoy/MRs-of-linear-models
06e8b1f84b08c6aa77553813824cf35c1806c5a7
c3df8299e039a12613f2022b370b8c3e9c2dd822
refs/heads/master
2023-04-07T23:09:37.736952
2021-04-04T05:33:37
2021-04-04T05:33:37
265,124,549
0
0
null
null
null
null
UTF-8
Python
false
false
2,845
py
import numpy as np from numpy import linalg import cvxopt from cvxopt import matrix,solvers from algorithms.clf import Clf def backtracking(l0, x0, p, q, low, up): # update x beta = 0.5 l = l0 L0 = 0.5*x0.T*(p*x0) + q.T*x0 g0 = p*x0 + q for k in range(128): #xp = x0 - l * g0 ...
[ "yingzhuoy@qq.com" ]
yingzhuoy@qq.com
2bd4c287bd784c2d446c13521de35f4dc46bdb33
e6c65e2e354336a4bea5b6a4ccbccd3682915fe2
/out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/embedding_ops.py
e640b65c6359932536475c67f0a4333dc2a73b54
[ "Apache-2.0" ]
permissive
rasalt/fhir-datalab
c30ab773d84983dd04a37e9d0ddec8bf2824b8a4
3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de
refs/heads/master
2021-10-09T05:51:04.593416
2018-12-21T18:11:03
2018-12-22T05:38:32
162,744,237
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/embedding_ops.py
[ "ruchika.kharwar@gmail.com" ]
ruchika.kharwar@gmail.com
1b4e72269db5cacbd411ce69d585d1981dee4c84
3449140c29d292c910527cc7163689d215d2f22d
/delivery/urls.py
edddc5b0d4461c75abdbf2a5259fa5461fd3ed6c
[]
no_license
gayatrishivani/ichoose-ead-project-sem6
89afeda33261bb18b3848e9171865409d0cf6b44
ae0f59769950656683bc72d1e76cec2bcfa7fd07
refs/heads/master
2023-03-08T18:43:02.970287
2021-02-25T19:06:25
2021-02-25T19:06:25
342,350,918
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
from django.contrib.auth import views from django.urls import path from .views import * urlpatterns = [ path('order/', OrderAPIView.as_view(), name="order"), path('deliver/', deliver_verify,name ="deliver"), ]
[ "you@example.com" ]
you@example.com
971536fe0a24d6e56e72428cf6577eb03a601f75
76133934b1dd287273a9bfa0c801d10d08a21b21
/test/functional/walletbackup.py
3734f2cfc1a6af61d4e6020705c5022fe3698f71
[ "MIT" ]
permissive
kenfmcoin/kenfmcoin
d8783b34fcb3ae01067e8d1b33e3a73e3b82b1f9
1fa48487593233f2066757dc54f48b2349e2d9db
refs/heads/master
2020-03-10T17:53:31.569229
2018-04-14T12:28:55
2018-04-14T12:28:55
129,511,375
0
0
null
null
null
null
UTF-8
Python
false
false
7,275
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The KenFMcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet backup features. Test case is: 4 nodes. 1 2 and 3 send transactions between each oth...
[ "37983255+spineinhalb@users.noreply.github.com" ]
37983255+spineinhalb@users.noreply.github.com
48ca686bf130382adbb3b325a6410896e709b516
b68aa1559ffc1228ef11b9dfe49434d618bb6d90
/src/config.py
e06f9131ea1fcb5f4e1e3749378ea0b5a5df3dc2
[]
no_license
rady1337/TelegramStatisticBot
c72c67c88aa98ce03d1f6402b5f13bc8a3a34cab
b62c042498185cb2ef5e6f40e13bbb9d4545446d
refs/heads/master
2022-11-21T06:27:36.421048
2020-07-18T11:05:27
2020-07-18T11:05:27
269,916,495
1
0
null
null
null
null
UTF-8
Python
false
false
55
py
# -*- coding: utf-8 -*- BOT_TOKEN = '' ADMIN_ID = ''
[ "noreply@github.com" ]
rady1337.noreply@github.com
6c41e3ac04ff6a47be5e08a8078f8d709e321df1
c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64
/Engine/Extras/Maya_AnimationRiggingTools/ArtToolsOSX/MayaTools/General/Scripts/Modules/ART_Core.py
876e0d7da21db78bba104005d49ddef2a26a3200
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
windystrife/UnrealEngine_NVIDIAGameWorks
c3c7863083653caf1bc67d3ef104fb4b9f302e2a
b50e6338a7c5b26374d66306ebc7807541ff815e
refs/heads/4.18-GameWorks
2023-03-11T02:50:08.471040
2022-01-13T20:50:29
2022-01-13T20:50:29
124,100,479
262
179
MIT
2022-12-16T05:36:38
2018-03-06T15:44:09
C++
UTF-8
Python
false
false
6,469
py
import maya.cmds as cmds import maya.mel as mel import os import ART_rigUtils as utils reload(utils) class RigCore(): #RigCore builds up our core components needed to start the rig build. This includes setting up the driver skeleton and building things like the rig settings, and master rig grps #These are compo...
[ "tungnt.rec@gmail.com" ]
tungnt.rec@gmail.com
eb307b0b3d4c0305cf1ec3ffde93f182d60448a4
66b1f3c3e57f53e1404d6e17c4acc850173a531d
/Python/Fundamentals/Objects and Classes/04. Exercises.py
c63352f1eab3c72ca9d0b9b6bde644bfae6dd9ba
[]
no_license
bMedarski/SoftUni
ca4d6891b3bbe7b03aad5960d2f4af5479fd8bbd
62cd9cb84b0826e3381c991882a4cdc27d94f8ab
refs/heads/master
2021-06-08T17:32:39.282975
2020-02-04T11:57:08
2020-02-04T11:57:08
67,947,148
6
3
null
2021-05-06T20:35:42
2016-09-11T18:31:02
Python
UTF-8
Python
false
false
1,149
py
class Exercise: def __init__(self,topic,course_name,judge_contest_link,): self.topic = topic self.course_name = course_name self.judge_contest_link = judge_contest_link self.problems = [] def add_problems(self,list_of_problems): for problem in list_of_problems: ...
[ "boyamedarski@mail.bg" ]
boyamedarski@mail.bg
77d363126291b572790991bb8207eda8fe0559c8
a149044762566830b4356343c062ee84c8056471
/healthid/apps/orders/migrations/0019_auto_20191118_1908.py
cb35272d4db1312cee84af4026cfee38c1046a7f
[]
no_license
malep2007/healtid-web-api
23fbe8b34a3c5256cbb60cf15205f65cc035df13
d9e88b4d8fe1dbc297b61bb007d4182928e515d4
refs/heads/dev
2022-12-12T03:24:37.537569
2019-12-17T16:26:59
2019-12-17T16:26:59
228,655,076
0
1
null
2022-12-08T05:25:00
2019-12-17T16:17:27
Python
UTF-8
Python
false
false
521
py
# Generated by Django 2.2 on 2019-11-18 18:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0018_supplierrating'), ] operations = [ migrations.AlterField( model_name='supplierorderdetails', name='stat...
[ "ephraim.malinga@gmail.com" ]
ephraim.malinga@gmail.com
6e1c053097e229c6fd3c3bb3d6e367ae5d464e29
c231bdc8d01465c9dda429be2d6535f8e8ea5ece
/Complete Python Masterclass/Source_Codes/lesson_192_pigen.py
7cd19f181a3a2e3f01176230fb3bdbda2765cf2a
[ "MIT" ]
permissive
jessequinn/Udemy
1634049711eb888f59b697d883555767e38598a3
e3d652c8144660ae155149d897b6364416106c7c
refs/heads/master
2021-08-18T09:58:57.274897
2018-10-26T22:50:26
2018-10-26T22:50:26
142,214,616
0
1
null
null
null
null
UTF-8
Python
false
false
374
py
def oddnumbers(): n = 1 while True: yield n n += 2 def pi_series(): odds = oddnumbers() approximation = 0 while True: approximation += (4 / next(odds)) yield approximation approximation -= (4 / next(odds)) yield approximation approx_pi = pi_series(...
[ "me@jessequinn.info" ]
me@jessequinn.info
4a8fa681a8b0aae3c3b191b3e2b4ec7019a401fc
f40e5c91a18fc5c7e0b4d96fe964a493f924e958
/supervised_learning/0x0F-word_embeddings/4-fasttext.py
949c893776a76d2dde5174ec730529b71a0fd9e2
[]
no_license
jgadelugo/holbertonschool-machine_learning
ab46f71477998371ca5e3623455d61fe334ab221
e20b284d5f1841952104d7d9a0274cff80eb304d
refs/heads/master
2023-02-01T03:52:43.723569
2020-12-10T19:28:57
2020-12-10T19:28:57
256,043,170
1
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
#!/usr/bin/env python3 """creates and trains a genism fastText model""" from gensim.models import FastText def fasttext_model(sentences, size=100, min_count=5, negative=5, window=5, cbow=True, iterations=5, seed=0, workers=1): """creates and trains a genism fastText model @sentences: list o...
[ "alvarezdelugo.jose@gmail.com" ]
alvarezdelugo.jose@gmail.com
a7041cf991e52b763f3cd3bc1245544d989aa779
33836016ea99776d31f7ad8f2140c39f7b43b5fe
/fip_collab/2014_11_06_composite_test/microstructure_function.py
40648669fbe68bcc57b24375b06e393199591580
[]
no_license
earthexploration/MKS-Experimentation
92a2aea83e041bfe741048d662d28ff593077551
9b9ff3b468767b235e7c4884b0ed56c127328a5f
refs/heads/master
2023-03-17T23:11:11.313693
2017-04-24T19:24:35
2017-04-24T19:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
# -*- coding: utf-8 -*- """ Created on Fri May 23 14:25:50 2014 This script reads a set of microstructures designated by the set-ID and saves the microstructure function in real and frequency space. @author: nhpnp3 """ import time import numpy as np import functions_composite as rr import scipy.io as sio def msf(el...
[ "noahhpaulson@gmail.com" ]
noahhpaulson@gmail.com
3c15ad74bdae4f5394409a54f52da75f6dfa9934
6fff0893ef43f1018d65f2e8e1bf27d9f8accf5b
/pw_stm32cube_build/py/setup.py
4a4f3b3318d0244b9e89d087778c77c813a96b56
[ "Apache-2.0" ]
permissive
isabella232/pigweed
eeb68a4eda6f0a9b5ef0b8145d0204bc9f85bfdc
53c2f3e2569d7e582d3dd3056ceb9b2c3b8197b2
refs/heads/main
2023-06-03T10:32:29.498066
2021-06-17T06:38:15
2021-06-17T20:44:55
378,165,913
0
0
Apache-2.0
2021-06-18T13:54:37
2021-06-18T13:53:40
null
UTF-8
Python
false
false
1,131
py
# Copyright 2021 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com
c2eea179b5c79d97d0acbbad1ce516c307302d5c
1819b161df921a0a7c4da89244e1cd4f4da18be4
/WhatsApp_FarmEasy/env/lib/python3.6/site-packages/cytoolz/_version.py
700c05c3519cb3546209ef31207f8d98793ce9e5
[ "MIT" ]
permissive
sanchaymittal/FarmEasy
889b290d376d940d9b3ae2fa0620a573b0fd62a0
5b931a4287d56d8ac73c170a6349bdaae71bf439
refs/heads/master
2023-01-07T21:45:15.532142
2020-07-18T14:15:08
2020-07-18T14:15:08
216,203,351
3
2
MIT
2023-01-04T12:35:40
2019-10-19T12:32:15
JavaScript
UTF-8
Python
false
false
52
py
__version__ = '0.10.0' __toolz_version__ = '0.10.0'
[ "sanchaymittal@gmail.com" ]
sanchaymittal@gmail.com
de18343ee3eb88b08ceb551823642e31ba91135a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1777.py
0029905c5b8fadd6cd1b84c5cdcbc74c89c48176
[]
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
974
py
# /usr/bin/python import sys import math def dbg(s): sys.stderr.write(str(s) +"\n") def reads(t): return map(t, input().split(" ")) def read(t) : return t(input()) palss = { 0: [], 1: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 2: [11, 22, 33, 44, 55, 66, 77, 88, 99], } pals = palss[1] + palss[2] fsq = [] def gen_pals(n):...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
39c0ddf7ea3e1e79086c341e5bb886df70d3c00f
990f6df58da264e8c35d5889a63c16ed9a9ba4c2
/kvirt/common/__init__.py
32510dae8b407d6f00883c04ce0d3b404622abad
[ "Apache-2.0" ]
permissive
aelejota/kcli
0079662591e781345aed2096f9cedc896bb5462f
0c1e1756b4af6b7dccd2f759382adf79f4a7050f
refs/heads/master
2021-01-20T09:16:03.835141
2017-05-03T15:28:58
2017-05-03T15:28:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,355
py
#!/usr/bin/env python from distutils.spawn import find_executable import socket import urllib2 import json import os def symlinks(user, repo): mappings = [] url1 = 'https://api.github.com/repos/%s/%s/git/refs/heads/master' % (user, repo) r = urllib2.urlopen(url1) base = json.load(r) sha = base['o...
[ "karimboumedhel@gmail.com" ]
karimboumedhel@gmail.com
db41ab0764713f49b58abe113aa3b99dfbace9db
a3139097d228a89255422fbfc5ee9b10992aeca1
/day_02/transcripts/trans_sets.py
2dc2e76eabc38d3dec809e54772d4dd68d597b90
[]
no_license
Code360In/07122020PYLVC
4d8e88163a00c56004d3920d5802a6c945e4af89
a0e4dd708c973ff333930191a77f289091969a3d
refs/heads/main
2023-01-29T09:03:41.375978
2020-12-11T14:00:09
2020-12-11T14:00:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> s1 = {'a', 'a', 'b', 'b', 'c' ,'d', 'e', 'f', 'g' } >>> type(s1) <class 'set'> >>> s1 {'f', 'c', 'a', 'g', 'b', 'd', 'e'} >>> s1[2] Traceback ...
[ "noreply@github.com" ]
Code360In.noreply@github.com
82e64f85567565fee068b5888b54eba2a79ab18e
f569978afb27e72bf6a88438aa622b8c50cbc61b
/douyin_open/EnterpriseGrouponGrouponCodeCodeDeposit/models/inline_response200.py
12e39d0314ab86197d71e68b691b7582b16b95da
[]
no_license
strangebank/swagger-petstore-perl
4834409d6225b8a09b8195128d74a9b10ef1484a
49dfc229e2e897cdb15cbf969121713162154f28
refs/heads/master
2023-01-05T10:21:33.518937
2020-11-05T04:33:16
2020-11-05T04:33:16
310,189,316
1
0
null
null
null
null
UTF-8
Python
false
false
3,756
py
# coding: utf-8 """ 自定义卷码预存 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six cl...
[ "strangebank@gmail.com" ]
strangebank@gmail.com
eb99088385dfeba2cc4eaf7cfc1cec214ff6f8a1
db4add5587fbcb24bd6147a5f2cc161743553429
/venv/lib/python3.6/site-packages/sqlalchemy/dialects/mssql/pymssql.py
cfcfb4afc306ea8222d264b2f34b031b8c470614
[ "MIT" ]
permissive
DiptoChakrabarty/FlaskKube-api
38dedb5695f00f1fa0ee58af1f4b595c37f3ba0f
50bf4c226ce2ed0d544cb2eb16f5279e0fe25ca1
refs/heads/master
2022-12-25T04:08:52.669305
2020-10-01T08:42:39
2020-10-01T08:42:39
259,813,586
4
5
MIT
2020-10-01T08:42:41
2020-04-29T03:20:59
Python
UTF-8
Python
false
false
4,677
py
# mssql/pymssql.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ .. dialect:: mssql+pymssql :name: pymssql :dbapi: pymssql :connects...
[ "diptochuck123@gmail.com" ]
diptochuck123@gmail.com
976b1f612310075478e65e12b9776472bcf16ee0
a6c48d5d697cd0ba48bc7c6bd64e871326ce6458
/server/libs/pyticas_noaa/test/stations.py
14a4d003b74a916682190216840fbd9e27984dac
[]
no_license
lakshmanamettu/tetres
873a878cf06b313ee26537504e63f5efdecdc98f
1acf985f378106953cbff34fb99147cac5104328
refs/heads/master
2020-06-30T19:33:44.044090
2019-08-06T16:21:18
2019-08-06T16:21:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
# -*- coding: utf-8 -*- __author__ = 'Chongmyung Park (chongmyung.park@gmail.com)' import csv import datetime class ISDStation(object): def __init__(self, row): """ :type row: list[str] """ self.usaf = None self.wban = None self.station_name = None ...
[ "beau1eth@tmsdev5.dot.state.mn.us" ]
beau1eth@tmsdev5.dot.state.mn.us
49582b8c6a9f659561e39a6385394b3b6f3d86f8
e23a4f57ce5474d468258e5e63b9e23fb6011188
/333_nuke/__exercises/Nuke_Scripting_for_Pipeline_TD/003_Dopolnitelnue_mareialu/module_nukescripts.py
2f0806e2df8e5772e47a542b87ed98158954dad2
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
624
py
import nuke import os import nukescripts nukescripts.autoBackdrop() def clearNodeSelection(): for n in nuke.selectedNodes(): # n['selected'].setValue(False) n.setSelected(False) nukescripts.clear_selection_recursive() nukescripts.declone(node) nukescripts.declone(nuke.selectedNode()) nukescripts.swapAB(nu...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
33d7882c955e9858ee8e5d4ad0d2b2178ee13693
4c432a555bc3932880b201e0686d75bc2abd80b9
/lib/core_preprocessor.py
56b4d092df896b8852f2055515ceb0d566155b86
[ "BSD-3-Clause" ]
permissive
lmdalessio/aTRAM
3a14f08994d3ce7de692df3b90d5d7f99e8af9a8
807f43d83887dd80dea158b9a22ecb2a4e1aa220
refs/heads/master
2021-03-05T11:17:02.324817
2020-03-06T16:58:56
2020-03-06T16:58:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,987
py
""" Format the data so that atram can use it later in atram itself. It takes sequence read archive (SRA) files and converts them into coordinated blast and sqlite3 databases. """ from os.path import join, basename, splitext import sys import multiprocessing import numpy as np from Bio.SeqIO.QualityIO import FastqGene...
[ "raphael.lafrance@gmail.com" ]
raphael.lafrance@gmail.com
3092a3b0b103669277fb6168d38c7712550116c8
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03611/s849629257.py
c22112651ffbef820aae30f404b80b8e6c08dc60
[]
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
282
py
n = int(input()) a = list(map(int, input().split())) count = [0]*(max(a)+1) for i in a: count[i]+=1 if len(count) <= 2: print(sum(count)) exit() ans = 0 for i in range(2,max(a)): if count[i-1]+count[i]+count[i+1] > ans: ans = count[i-1]+count[i]+count[i+1] print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
dafbe5e66dfcb61cad1999bdba519ec439021ce9
8d2c37a19076690dbe0f1b6c64467eeb7475b4ae
/kikoha/apps/voting/models.py
d958372da246c1e1c1c78cc1adb74b981448be92
[]
no_license
siolag161/kikoha
39fbdbc6f27337b8b84661165448d0e4a23a79d4
e8af8c7b0019faa6cc3a6821e2c04f6d8142fd08
refs/heads/master
2016-09-03T06:44:57.088649
2014-12-25T03:10:07
2014-12-25T03:10:07
25,884,164
0
0
null
null
null
null
UTF-8
Python
false
false
2,179
py
# coding: utf-8 from __future__ import unicode_literals from django.utils.encoding import python_2_unicode_compatible from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.dispatch import receiver from django.db import models from core.models import O...
[ "thanh.phan@outlook.com" ]
thanh.phan@outlook.com
a5c7e9f7952089395270e27d81634bb006a7830d
0133d8d56ee611a0c65ef80693ae263692557b96
/spira/yevon/filters/layer_filter.py
4ff08772238a31e9cf4202378a362503d9cfb6d0
[ "MIT" ]
permissive
JCoetzee123/spira
e77380df2e79333b0c48953faae2d3dae50a8d27
dae08feba1578ecc8745b45109f4fb7bef374546
refs/heads/master
2021-06-25T23:32:52.289382
2019-07-17T13:25:50
2019-07-17T13:25:50
198,605,222
1
0
MIT
2019-07-24T09:42:07
2019-07-24T09:42:06
null
UTF-8
Python
false
false
1,112
py
from spira.log import SPIRA_LOG as LOG from spira.yevon.filters.filter import Filter # from spira.yevon.process.layer_list import LayerList, LayerListParameter from spira.yevon.process.gdsii_layer import LayerList, LayerListParameter __all__ = ['LayerFilterAllow', 'LayerFilterDelete'] class __LayerFilter__(Filter):...
[ "rubenvanstaden@gmail.com" ]
rubenvanstaden@gmail.com
2b4c1b5b88e67aa6787b4704564067ebd2403069
938a496fe78d5538af94017c78a11615a8498682
/SwordRefersToOffer/11.NumberOf1.py
55ed4a03ad52b60ceb6e7472bafa3fd959ffa8fe
[]
no_license
huilizhou/Leetcode-pyhton
261280044d15d0baeb227248ade675177efdb297
6ae85bf79c5a21735e3c245c0c256f29c1c60926
refs/heads/master
2020-03-28T15:57:52.762162
2019-11-26T06:14:13
2019-11-26T06:14:13
148,644,059
8
1
null
null
null
null
UTF-8
Python
false
false
309
py
# -*- coding:utf-8 -*- # 二进制中1的个数 class Solution: def NumberOf1(self, n): # write code here count = 0 if n < 0: n = n & 0xffffffff while n: count += 1 n = n & (n - 1) return count print(Solution().NumberOf1(3))
[ "2540278344@qq.com" ]
2540278344@qq.com
34a7acd539aa930a26936a914f4e663c21da9000
73978c38ef18dd87b75d6af706de58f5633ee157
/trunk/zkomm_multiserver/src/modelo_lista_nodos.py
44435e9e08934dc9b4060a6c58be21ffdfa36e65
[]
no_license
BGCX261/zkomm-multiserv-svn-to-git
1702f2bc9ef8764dd9a35c301e9dbb362b4e2d12
830ccd1ec3a617f30450ad6d038107bf9aafa6a2
refs/heads/master
2021-01-19T08:53:11.428916
2015-08-25T15:43:46
2015-08-25T15:43:46
41,488,688
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
#ZKOMM Multiserver #Modelos de vistas from PyQt4 import * class modelo_lista_nodos: def __init__(self, padre, lista = []): self.m = QtGui.QStandardItemModel(0, 5, padre) encabezados = QtCore.QStringList() encabezados << "Nodo (ID)" << "Nombre" << "IP" << "Puerto" << "Capacidad" << "Carga" << "Sobrecarga" << "P...
[ "you@example.com" ]
you@example.com
9ba8b32ba254af1cf723aab25c9a85110c4f54b6
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/438/usersdata/348/94998/submittedfiles/pico.py
8c6e09f062dd15ec153e26731839b488ba972b38
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
# -*- coding: utf-8 -*- #funçoes def crescente(lista): for i in range (n,-1,-1): if lista[0] > lista[1]: return 'N' elif (lista[i-1] < lista[i-2]) and (lista[0] < lista[1]) : return 'S' elif (lista[0] < lista[1]): return 'S' elif li...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
ea1f782a1427aa290425642443e58bfbbed6a50a
b144c5142226de4e6254e0044a1ca0fcd4c8bbc6
/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/l2tpratecpf_783f5a0ed938906c9d7aa8783627a802.py
2e67204c153bbd1a243fc6bbfb26728068fbcdcc
[ "MIT" ]
permissive
iwanb/ixnetwork_restpy
fa8b885ea7a4179048ef2636c37ef7d3f6692e31
c2cb68fee9f2cc2f86660760e9e07bd06c0013c2
refs/heads/master
2021-01-02T17:27:37.096268
2020-02-11T09:28:15
2020-02-11T09:28:15
239,721,780
0
0
NOASSERTION
2020-02-11T09:20:22
2020-02-11T09:20:21
null
UTF-8
Python
false
false
12,520
py
# MIT LICENSE # # Copyright 1997 - 2019 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
[ "srvc_cm_packages@keysight.com" ]
srvc_cm_packages@keysight.com
0355e904e902fa6f33f696424157267e37861148
491235d50ab27bb871d58a5dfff74d6a4aa9bbe6
/pong-client/gui/__init__.py
4ac6e8ce43257509a2ebdc0c6c8e5d0bacc29e8f
[]
no_license
elgrandt/Pong-Network
768bb861757d1fb98be3b761a66ad14e632f7932
204e1c5d9fbd53eece906d56df394602bdc269b6
refs/heads/master
2022-12-06T16:12:01.506699
2020-08-18T03:27:47
2020-08-18T03:27:47
288,315,589
1
0
null
null
null
null
UTF-8
Python
false
false
281
py
from add_border import * from input_text import * from moving_bar import * from area_movil import * from server_list import * from server_connect_menu import * from surface_gf import * import add_border import input_text import moving_bar import area_movil from status_cur import *
[ "dylantasat11@gmail.com" ]
dylantasat11@gmail.com
17d29257f02a4cbd86e726dd708d33d09015e44d
e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a
/Systest/tests/ip_slowpath.py
6d6a6823d1c190bbc1ff7525420e8459c4038e33
[]
no_license
muttu2244/MyPython
1ddf1958e5a3514f9605d1f83c0930b24b856391
984ca763feae49a44c271342dbc15fde935174cf
refs/heads/master
2021-06-09T02:21:09.801103
2017-10-10T07:30:04
2017-10-10T07:30:04
13,803,605
0
0
null
null
null
null
UTF-8
Python
false
false
38,689
py
#!/usr/bin/env python2.5 ####################################################################### # # Copyright (c) Stoke, Inc. # All Rights Reserved. # # This code is confidential and proprietary to Stoke, Inc. and may only # be used under a license from Stoke. # ########################################################...
[ "muttu2244@yahoo.com" ]
muttu2244@yahoo.com
0d608ca99a5df062161a727ba15e6c5d0d860cfa
d55f3f715c00bcbd60badb3a31696a1a629600e2
/students/maks/9/site2/page/migrations/0002_category.py
ee732793b384633ecbbe6c4b58bbd67a5b4d787d
[]
no_license
zdimon/wezom-python-course
ea0adaa54444f6deaca81ce54ee8334297f2cd1a
5b87892102e4eb77a4c12924d2d71716b9cce721
refs/heads/master
2023-01-29T02:22:54.220880
2020-12-05T11:27:48
2020-12-05T11:27:48
302,864,112
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
# Generated by Django 3.1.2 on 2020-11-14 10:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('page', '0001_initial'), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', mo...
[ "you@example.com" ]
you@example.com
205794e0f345bd8c88dca18a2b82e9f5364d5430
168556624401cd884fe0bfdac5a312adf51286a1
/CS1430/homework4_sceneclassification-Enmin/code/trial.py
ce43e58f440332e775d1492ab4a36598380a3a3c
[]
no_license
Enmin/Coursework
f39dc7b54a07b901491fbd809187fd54e96fa5a4
a17d216c37e70a8073602389924af10019cfe7de
refs/heads/master
2021-12-28T02:53:15.949547
2021-12-21T22:45:19
2021-12-21T22:45:19
179,909,211
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
import numpy as np import matplotlib import time from matplotlib import pyplot as plt from helpers import progressbar from skimage import io from skimage.io import imread from skimage.color import rgb2grey from skimage.feature import hog from skimage.transform import resize from scipy.spatial.distance import cdist def...
[ "zhouem14@gmail.com" ]
zhouem14@gmail.com
8526bf590577cee22e9f84d173c847d4b9407e14
824f19d20cdfa26c607db1ff3cdc91f69509e590
/Array-101/5-Merge-Sorted-Array.py
e028a6ec47e16b2bddb04b2c0dac066cac1c70c2
[]
no_license
almamuncsit/LeetCode
01d7e32300eebf92ab54c983de6e183242b3c985
17aa340649574c37067ec170ceea8d9326be2d6a
refs/heads/master
2021-07-07T09:48:18.069020
2021-03-28T11:26:47
2021-03-28T11:26:47
230,956,634
4
0
null
null
null
null
UTF-8
Python
false
false
390
py
from typing import List class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: i, j, k = m - 1, n - 1, m + n - 1 while j >= 0: if nums1[i] >= nums2[j] and i >= 0: nums1[k] = nums1[i] i -= 1 else: ...
[ "msarkar.cse@gmail.com" ]
msarkar.cse@gmail.com
9ab60f6818d611b38e5a018aab0b282e5e417ec6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_bobbling.py
5754a833bc3c73ef4d8503d781013e85cd1c3248
[ "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
240
py
from xai.brain.wordbase.nouns._bobble import _BOBBLE #calss header class _BOBBLING(_BOBBLE, ): def __init__(self,): _BOBBLE.__init__(self) self.name = "BOBBLING" self.specie = 'nouns' self.basic = "bobble" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
541ff8209cf419cbd7c780213cf1f0c62b91a4d7
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_313/ch75_2020_04_07_18_04_40_887750.py
39e6ed3c06555b5fc1e686140dc5d782dadd9b6c
[]
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
500
py
def verifica_primos(l1): dicionario = {} for i in l1: if i == 0 or i == 1 or i == -1: dicionario[i] = True elif i == 2: dicionario[i] = True elif i % 2 == 0: dicionario[i] = False else: a = 3 for a in range(3,17,2): ...
[ "you@example.com" ]
you@example.com
04b60bf68bf3570d0bc85f8a5ffe962f4f658aa1
2635c2e2c31a7badb8b188306c3cdfc61dc1ecc8
/ihm_add_fields_productos/models/add_fields_product.py
71ba7678d0edaea18b210f7f577c718ee38a5872
[]
no_license
rosalesdc/ihm_testing
ec4ebf26c3c7602267a04fd183de4064f9d16bc1
d91ebeac5504c9f29a21b2b0f05bc16ed240ff48
refs/heads/master
2020-04-17T01:21:03.214595
2019-10-29T23:05:52
2019-10-29T23:05:52
166,088,611
0
0
null
null
null
null
UTF-8
Python
false
false
7,791
py
# -*- coding: utf-8 -*- from odoo import api from odoo import fields from odoo import models from odoo.exceptions import UserError from odoo.exceptions import ValidationError import smtplib class AddProductFields(models.Model): _inherit = 'product.template' name = fields.Char('Name', index=True, required=True...
[ "rosales9146@gmail.com" ]
rosales9146@gmail.com
9df29fc50a42863f005cbf20a869b2a23268e334
fe93e14d6508ac45679d2ef8a5c7876d77edbc05
/src/python/commands/MCMCImpl.py
281103c3ea66f5999e8eb918344c14fdf52cf576
[ "MIT" ]
permissive
Linhua-Sun/phycas
d216bedb08ef2fb0f05db2e5691b3d410cd7313a
8fc283abd4b6add492908f7f54abceff62fc0036
refs/heads/master
2020-12-26T18:54:33.461954
2015-09-12T18:23:40
2015-09-12T18:23:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
90,992
py
import os,sys,math,random from phycas import * from phycas.utilities.PhycasCommand import * from phycas.utilities.CommonFunctions import CommonFunctions from MCMCManager import MCMCManager from phycas.probdist import StopWatch from phycas.readnexus import NexusReader class MCMCImpl(CommonFunctions): #---+----|----...
[ "paul.lewis@uconn.edu" ]
paul.lewis@uconn.edu
3690de3d521be3542a0c4bafc7ca2f7cdc71a149
36bdbbf1be53ba5f09b9a2b1dd15e91f8f6b0da1
/house/migrations/0004_auto_20180920_2003.py
2c799c963093e1889c416fe8249beab35804299e
[]
no_license
phufoxy/fotourNew
801ab2518424118020dc6e5f31a7ba90a654e56a
6048c24f5256c8c5a0d18dc7b38c106a7c92a29c
refs/heads/master
2023-04-13T01:34:22.510717
2018-12-26T03:46:09
2018-12-26T03:46:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
# Generated by Django 2.1 on 2018-09-20 13:03 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('house', '0003_auto_20180920_2002'), ] operations = [ migrations.RenameField( model_name='house', old_n...
[ "vanphudhsp2015@gmail.com" ]
vanphudhsp2015@gmail.com
2e2066e619ccc7d33ad5a3115a5f2d7b25804acc
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_206/1619.py
627355a3f0c5448f6788990546a6563e13a4e9b3
[]
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
809
py
for Pr in xrange(1, input()+1): D, N=[int(x) for x in raw_input().split()] d, v=[], [] for i in xrange(N): c=[int(x) for x in raw_input().split()] d.append(c[0]) v.append(c[1]) d_sort=[k for k in d] d_sort.sort() v_sort=[] for k in d_sort: v_sort.append(v[d.index(k)]) d,v=d_s...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
36890bb9f1effdf8395b81675dd2e0393e4a1f10
a3b0e7acb6e0d7e73f5e369a17f367ac7caf83fb
/python/Udemy/Learn_Python_Programming_StepByStep/16_Database_SQLite/pulling data.py
a908c75deb59e48146df2835e10bc32a6420b7ed
[]
no_license
jadedocelot/Bin2rong
f9d35731ca7df50cfba36141d249db2858121826
314b509f7b3b3a6a5d6ce589dbc57a2c6212b3d7
refs/heads/master
2023-03-24T14:03:32.374633
2021-03-19T00:05:24
2021-03-19T00:05:24
285,387,043
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
import sqlite3 conct = sqlite3.connect("database/mydatabase.db") try: cur = conct.cursor() for records in cur.execute("SELECT * FROM student"): print(records) # cur.execute("SELECT name FROM student") # print(cur.fetchmany(3)) # print(cur.fetchall()) # print(cur.fetchone()) except Ex...
[ "eabelortega@gmail.com" ]
eabelortega@gmail.com
b4cc31ff92eb9ed40614c2fd26c025ec9077120f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/387/usersdata/273/107669/submittedfiles/ep2.py
33033fb09115fd60503b0008b74f07c92d2e70db
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,536
py
# -*- coding: utf-8 -*- ''' /**********************************************************/ /* Equipe: Fulano de Tal:Leandro Pedro de Freitas e Gustavo henrique */ /* N ́umero de matriculas:381420 e */ /* Exercicio-Programa 2 -- TEMA *Razao aurea /* ECI0007 ou EM0006 (EC/EM...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
fbf3c62c164a93fa9c4828bcb8325e94ed813e75
9e65e409106aad6339424a1afac3e75e15b4f488
/0x11-python-network_1/6-post_email.py
69b2654e635444013e91f5cd6642ffd28af4f413
[]
no_license
jfbm74/holbertonschool-higher_level_programming
63fe8e35c94454896324791585fe7b8e01e1c67d
609f18ef7a479fb5dcf1825333df542fc99cec7b
refs/heads/master
2023-03-05T20:44:05.700354
2021-02-10T00:21:54
2021-02-10T00:21:54
259,452,209
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
#!/usr/bin/python3 """ Python script that takes in a URL and an email address, sends a POST request to the passed URL with the email as a parameter """ import requests from sys import argv if __name__ == '__main__': url = argv[1] email = {'email': argv[2]} req = requests.post(url, email) print(req....
[ "jfbm74@gmail.com" ]
jfbm74@gmail.com
9151b1b46f2c5b5e9581951a8af9df5a3f4f1f95
b844c72c394b13d9ed4f73222a934f962d6ff187
/src/matching_counts.py
118790fdedcd4c34ee60aad44942be3563c04bce
[]
no_license
curtisbright/sagesat
b9b4c9180c75ce8574217058ffa4e121163ccf36
8fe52609ab6479d9b98a1e6cf2199a4f12c27777
refs/heads/master
2021-01-01T17:52:01.288449
2015-08-19T18:14:26
2015-08-19T18:14:26
41,425,883
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
''' Created on Sep 20, 2014 @author: ezulkosk ''' from common.common import Options from main import run if __name__ == '__main__': TEST_DIR = "../test/matching_counts/" options = Options() options.SHARPSAT=True print("Obtaining counts for hypercube matchings.") for d in range(2,6): d_di...
[ "ezulkosk@gsd.uwaterloo.ca" ]
ezulkosk@gsd.uwaterloo.ca
e598bbc2a1a04dda520a9ae42d5eb12de22c2eea
78980891d3137810bf3a3c1bb229966b7f49f0dd
/interestings/asyncio_demos/coro10.py
6c8cc07ed8e8518539a71a7fd1e9aa82e39641db
[]
no_license
miniyk2012/leetcode
204927d3aefc9746070c1bf13abde517c6c16dc0
91ca9cd0df3c88fc7ef3c829dacd4d13f6b71ab1
refs/heads/master
2021-06-17T21:50:31.001111
2021-03-10T11:36:23
2021-03-10T11:36:23
185,042,818
1
0
null
null
null
null
UTF-8
Python
false
false
476
py
import asyncio import time from contextlib import contextmanager async def a(): await asyncio.sleep(3) return 'A' async def b(): await asyncio.sleep(1) return 'B' async def s1(): return await asyncio.gather(a(), b()) @contextmanager def timed(func): start = time.perf_counter() yield ...
[ "yk_ecust_2007@163.com" ]
yk_ecust_2007@163.com
14cfc235ea57ad8c87158c3a105277b32dd89e0b
f3b233e5053e28fa95c549017bd75a30456eb50c
/p38a_input/L3FN/3FN-2I_wat_20Abox/set_1.py
a66fca767f59717be304bfaf4b0ba3facedc7df3
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/p38a/L3FN/wat_20Abox/ti_one-step/3FN_2I/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_1.in' temp_pbs = filesdir + 'temp_1.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
b964a72f0dbb3381a2b723bbe70654e1d5ab14b1
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/directory/protection/riskyusers/activity.py
f84b5aacfd83351b65aacf60389d622975b7a493
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
201
py
from office365.runtime.client_value import ClientValue class RiskUserActivity(ClientValue): """Represents the risk activites of an Azure AD user as determined by Azure AD Identity Protection."""
[ "vvgrem@gmail.com" ]
vvgrem@gmail.com
af6acf69a5f749171c212ccadb2286cebe501086
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/Examples/bokeh/plotting/file/bollinger.py
95cb41a56fde8c6e8db94b100473937ab032ef56
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
591
py
import numpy as np from bokeh.plotting import figure, show, output_file # Define Bollinger Bands. upperband = np.random.random_integers(100, 150, size=100) lowerband = upperband - 100 x_data = np.arange(1, 101) # Bollinger shading glyph: band_x = np.append(x_data, x_data[::-1]) band_y = np.append(lowerband, upperban...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
7b2b78d7ba55a651c167d3dc9d0da45dd5fb4a9f
12fa783b25175407440657173447b774b6151430
/synthesizer/preprocess.py
83a777c4dc3ec3378a5e5484e37387869c52d1e4
[ "MIT" ]
permissive
Ramstein/voice-mimicking
8e91241c414a1b2e4ae77bc0cf3f70b3295d8a37
75c4e75fb34d111071e33cea34c282a0e4b01b4d
refs/heads/master
2023-07-21T22:59:37.956103
2021-09-07T18:06:15
2021-09-07T18:06:15
404,076,950
0
0
null
null
null
null
UTF-8
Python
false
false
10,403
py
from multiprocessing.pool import Pool from synthesizer import audio from functools import partial from itertools import chain from encoder import inference as encoder from pathlib import Path from utils import logmmse from tqdm import tqdm import numpy as np import librosa def preprocess_librispeech(datasets_root: Pa...
[ "gerialworld@gmail.com" ]
gerialworld@gmail.com
3dc9c0e03163ba648da6dd6492a03da3e5d66cb0
824ccee9f5c27f5b3fec0dff710e9c4a181a9747
/atlas_coords/all_sky_phot.py
71562becbd41c1ca68d871cc16caa871a6a2114f
[]
no_license
yoachim/ScratchStuff
1450a2a785c28c209121600072e7ccb2ba47af08
10c490dd1f3c574738ff4ecb71e135180df4724e
refs/heads/master
2020-04-04T07:31:17.017542
2019-07-02T16:51:12
2019-07-02T16:51:12
35,652,984
1
3
null
null
null
null
UTF-8
Python
false
false
2,223
py
import numpy as np import astropy from astropy.io import fits import matplotlib.pylab as plt from astropy.stats import sigma_clipped_stats from photutils import DAOStarFinder, aperture_photometry, CircularAperture, CircularAnnulus # Need to pick up photutils # conda install -c astropy photutils # Following example f...
[ "yoachim@uw.edu" ]
yoachim@uw.edu
ce0c15a0ad0f852b7ae51ff9ad8119b7ad6c0b84
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2737/8160/259430.py
84b3baed41127949fbe85e854b03ddcffde98b5d
[]
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
183
py
import collections def majorityElement(nums): return [key for key, val in collections.Counter(nums).items() if val > len(nums) // 3] nums = input() print(majorityElement(nums))
[ "1069583789@qq.com" ]
1069583789@qq.com
f895c9359552253b5b8147d97aa07c1c39c028c4
fb28175748fdb497f23e71e9a11c89fdf41b8a11
/level.py
99b3afb2cfe14c3e237dd56e741ad2fd48a74604
[]
no_license
daeken/ygritte
40f571505a7a77769a98c18c45f8793cf87faa4d
0f8bf75f761b40a6c863d589dfe44f189d22ea7e
refs/heads/master
2020-05-20T02:08:31.671031
2011-04-10T21:45:42
2011-04-10T21:45:42
1,563,991
3
1
null
null
null
null
UTF-8
Python
false
false
788
py
from asset import Asset grid = Asset.load('layer0') stars = Asset.load('layer1') class Level(object): levels = {} def __init__(self, game): self.game = game self.bg = Asset.load('layer2_outline', mask='layer2_mask')# % self.levelNumber) stars.maskOff(self.bg) self.i = 0 @staticmethod def spawn(game, num...
[ "cody.brocious@gmail.com" ]
cody.brocious@gmail.com
7cd0a6131a02f20edef1352a07bec29cbd8a381e
0c98ca0ca250d0dc815813287d732c48c70aa12a
/EXP/run_bar_framed_rectangle_from_scratch.py
becb6e7809018ef3e95c4275f7f7fd715685c547
[]
no_license
AswinVasudevan21/perception
8f00479870ee767963767fc621325c1a96249196
7a6522fdfbb26ec56a682a4cdf41102cbfd6731a
refs/heads/master
2020-07-14T13:54:10.923781
2019-07-23T11:21:23
2019-07-23T11:21:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,937
py
from keras import models from keras import layers from keras import optimizers import keras.applications import keras.callbacks from keras import backend as K from keras.utils.np_utils import to_categorical import sklearn.metrics import cPickle as pickle import numpy as np import os import sys import time import Clev...
[ "haehn@seas.harvard.edu" ]
haehn@seas.harvard.edu
06d60305b023671e68cfce3af716ffa147a882e4
c934e7c27f0e72385218a14b4e2a7e94a747a360
/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/kubernetesedge/v1alpha1/kubernetesedge_v1alpha1_client.py
23a8fa7854e9c71a4bec490a3f84ac77e3adee16
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
PrateekKhatri/gcloud_cli
5f74b97494df4f61816026af9460b9c4d8e89431
849d09dd7863efecbdf4072a504e1554e119f6ae
refs/heads/master
2023-03-27T05:53:53.796695
2021-03-10T04:08:14
2021-03-10T04:08:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
46,509
py
"""Generated client library for kubernetesedge version v1alpha1.""" # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.py import base_api from googlecloudsdk.third_party.apis.kubernetesedge.v1alpha1 import kubernetesedge_v1alpha1_messages as ...
[ "actions@github.com" ]
actions@github.com
ad8d2f89fbfbfa9db5342a0c79f661cc9644b2d1
bbcaed21db23d08ebf11fabe0c6b8d0ee551a749
/q2_dummy_types/__init__.py
ccc172e8439e27f14d38fa77465ecbed5345f16f
[]
no_license
ebolyen/q2-dummy-types
c34707e2a3e7ef1ad6abf76b1b9fabbf9c7d7222
3ac8f643e5f88a6de2413bebf8fb16c1b3168e4b
refs/heads/master
2021-01-10T22:47:04.455265
2016-10-08T19:20:40
2016-10-08T19:20:40
70,352,411
0
0
null
2016-10-08T19:17:24
2016-10-08T19:17:23
null
UTF-8
Python
false
false
667
py
# ---------------------------------------------------------------------------- # Copyright (c) 2016--, QIIME development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -----------------------------------------------------...
[ "jai.rideout@gmail.com" ]
jai.rideout@gmail.com
55275eba43f18555f947ab6986f6a7ba8440046f
ae376963049fdff111d0f844b25d7a907acb27f5
/Python/Fundamentals/0.8-Text-Processing/Lab/reverse_strings.py
2a98b6cd6ae2c93c0179292403280e14bf908480
[]
no_license
Pittor052/SoftUni-Courses
bdc5968244de497f1aaaff7c6c6879c624791ad8
43216ee69e7eec59c9f14377f57ae1ef8d9cce8d
refs/heads/main
2023-08-14T05:12:11.966927
2021-09-28T13:33:30
2021-09-28T13:33:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
word = input() while word != "end": print(f"{word} = {word[::-1]}") word = input()
[ "rum3ngr0zdan0v98@gmail.com" ]
rum3ngr0zdan0v98@gmail.com
f797180c6e34873f308b5114f2ce5068da8416ee
6f0f40a1d60fecb9c1516e8119e9aade3587659d
/tensorflow/python/distribute/input_lib_test.py
2ca11024e431262d534fa92f5516615fa2d4ee31
[ "Apache-2.0" ]
permissive
gdwangh/tensorflow
65d3019ec8e385db7640b313a48f218ec14839e0
71eb168f453bd035df4d8ba27383ef53527e3aaa
refs/heads/master
2020-05-09T17:30:11.243619
2019-04-14T09:02:24
2019-04-14T09:08:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,496
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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
d39b69be8e6d36394558c1b41133aa034318b78c
9d735842aa4ae0d65b33cd71994142ea80792af5
/scrape_ebi_iedb_input.py
54acc58345dc44c5eb8ac2e69a7d2fc6e40df78b
[]
no_license
saketkc/scrape_ebi
9b5179c9cc45f6e4519732feec9bfaa34126538c
ffe451453bedd9b1aced1bd515bfe3993283809a
refs/heads/master
2021-01-15T12:16:09.599217
2012-05-25T09:13:03
2012-05-25T09:13:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,562
py
from mechanize import Browser, _http from BeautifulSoup import BeautifulSoup import sys import os def get_data_from_ebi(*arg): br = Browser() args = arg[0] filename = args[0] br.set_handle_robots(False) br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gec...
[ "saketkc@gmail.com" ]
saketkc@gmail.com
832bfaeda0f2312dfbb3cf401c494edf8c4f3f34
8c11084d9d55e7ee602695629beba646a7c9fbc6
/torch/ao/quantization/pt2e/utils.py
e9a2ae783292a8180694581aa8418ebcb164c55a
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
SamuelMarks/pytorch
201995d5d0ed72813a72c4c51ddbc6125c4fc5e7
71632d4d24616ddad6685814aae4ae54c981c0d2
refs/heads/main
2023-08-31T14:30:33.523459
2023-08-19T16:14:37
2023-08-20T08:56:21
323,614,969
0
0
NOASSERTION
2020-12-22T12:07:42
2020-12-22T12:07:41
null
UTF-8
Python
false
false
16,437
py
import torch from torch.fx import ( Graph, GraphModule, Node, ) from torch.fx.subgraph_rewriter import replace_pattern_with_filters import torch.nn.functional as F from torch.nn.utils.fusion import fuse_conv_bn_weights import copy import operator from typing import Any, Callable, Dict, Optional, Tuple, List...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
eca34ed79166d90c4f7930589dd15091b5634f63
863de8490c758435388e7328880b28fdb432a8e5
/01-MASTER/main.py
db781ed3979dcade024c94b9b7991676497f642d
[]
no_license
bopopescu/2017-2018_EMG_senior_project
46aa57c28119db34bd86ecc54e36dca9546232b0
77544e2a0afa8a75c979eb09f70d64c25e753d52
refs/heads/master
2022-11-20T01:45:05.476457
2018-05-01T19:49:56
2018-05-01T19:49:56
281,037,132
0
0
null
2020-07-20T06:48:33
2020-07-20T06:48:32
null
UTF-8
Python
false
false
27,742
py
''' AUTHOR: Aditya Patel and Jim Ramsay DATE CREATED: 2018-03-01 LAST MODIFIED: 2018-04-12 PLATFORM: Raspberry Pi 3B, Raspbian Stretch Released 2017-11-29 PROJECT: EMG Human Machine Interface ORGANIZATION: Bradley University, School of Electrical and Computer Engineering FILENAME: main.py DESCRIPTION: Main ...
[ "noreply@github.com" ]
bopopescu.noreply@github.com
76f987a556f889a22ab85458df2b31d53eed1ef0
51d602577affebc8d91ffe234f926469d389dc75
/lis/specimen/lab_receive/models/__init__.py
ba84a225c445689edf2c1adcd3ea012ec62b08af
[]
no_license
botswana-harvard/lis
5ac491373f74eaf3855f173580b000539d7f4740
48dc601ae05e420e8f3ebb5ea398f44f02b2e5e7
refs/heads/master
2020-12-29T01:31:07.821681
2018-06-24T06:06:57
2018-06-24T06:06:57
35,820,860
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
from .base_receive import BaseReceive from .receive import Receive from .receive_identifier import ReceiveIdentifier
[ "ckgathi@gmail.com" ]
ckgathi@gmail.com
ff4d51fae8a38111bc47df0a15cfa915e98ddaff
02e23da0431623db86c8138bda350a1d526d4185
/Archivos Python Documentos/Graficas/.history/TRABAJO_SPT_v3_20200223200731.py
e172ba3b981e7ffe2cd9bfa36a01f100e4a315d1
[]
no_license
Jaamunozr/Archivos-python
d9996d3d10ff8429cd1b4c2b396016a3a5482889
1f0af9ba08f12ac27e111fcceed49bbcf3b39657
refs/heads/master
2022-08-05T14:49:45.178561
2022-07-13T13:44:39
2022-07-13T13:44:39
244,073,267
0
0
null
null
null
null
UTF-8
Python
false
false
5,247
py
import os import pylab as pl from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import numpy as np #------------ #from mpl_toolkits.mplot3d.axes3d import get_test_data #------------- os.system("clear") fig = ...
[ "jaamunozr@gmail.com" ]
jaamunozr@gmail.com
938f1654252a9fbc25a0c686035dd7efd7cbc660
2d4380518d9c591b6b6c09ea51e28a34381fc80c
/CIM16/IEC61970/Protection/RecloseSequence.py
549c094a7cdff30fe983ecb50cfff2a768e9c918
[ "MIT" ]
permissive
fran-jo/PyCIM
355e36ae14d1b64b01e752c5acd5395bf88cd949
de942633d966bdf2bd76d680ecb20517fc873281
refs/heads/master
2021-01-20T03:00:41.186556
2017-09-19T14:15:33
2017-09-19T14:15:33
89,480,767
0
1
null
2017-04-26T12:57:44
2017-04-26T12:57:44
null
UTF-8
Python
false
false
3,250
py
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
[ "fran_jo@hotmail.com" ]
fran_jo@hotmail.com
5c132a7c5a5c2219a7172b0390e26e3c0c6df9b1
aaa762ce46fa0347cdff67464f56678ea932066d
/AppServer/lib/django-1.5/django/utils/timezone.py
a56ff0b6ab03a1662f1958daf56110b7e41e7f3e
[ "Apache-2.0", "BSD-3-Clause", "LGPL-2.1-or-later", "MIT", "GPL-2.0-or-later", "MPL-1.1" ]
permissive
obino/appscale
3c8a9d8b45a6c889f7f44ef307a627c9a79794f8
be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f
refs/heads/master
2022-10-01T05:23:00.836840
2019-10-15T18:19:38
2019-10-15T18:19:38
16,622,826
1
0
Apache-2.0
2022-09-23T22:56:17
2014-02-07T18:04:12
Python
UTF-8
Python
false
false
8,344
py
"""Timezone helper functions. This module uses pytz when it's available and fallbacks when it isn't. """ from datetime import datetime, timedelta, tzinfo from threading import local import time as _time try: import pytz except ImportError: pytz = None from django.conf import settings from django.utils impor...
[ "root@lucid64.hsd1.ca.comcast.net" ]
root@lucid64.hsd1.ca.comcast.net
0aa2a6a5d89aa348a47de4346965acb29112a90e
0dcce6da7adc3df08038fba39ec663aa2d6d62ab
/ch2-library-app-and-api/api/views.py
128114ffe645895bd9ad2f34635d9ae726974476
[ "MIT" ]
permissive
anectto/apidjangostudy
1e82e1dc8a7775ad18841372cfdad8d0408ad83f
c8636d54b65e3fbd74e4b3949951cc8a5d681870
refs/heads/master
2023-05-29T04:58:54.884817
2023-03-15T23:06:48
2023-03-15T23:06:48
167,802,649
0
0
MIT
2023-05-22T21:47:50
2019-01-27T11:47:31
Python
UTF-8
Python
false
false
221
py
from rest_framework import generics from books.models import Book from .serializers import BookSerializer class BookAPIView(generics.ListAPIView): queryset = Book.objects.all() serializer_class = BookSerializer
[ "will@wsvincent.com" ]
will@wsvincent.com
f4f635b18dc05411dfc2d9abc7e11b209f9c777c
ef998914b19f34f8f85cd784b6470147d73a93e0
/job_task/Value_Pitch_Assingment/scrapy-selenium-splash-python/SCI/spiders/scrapy_sel.py
95feaebe678a6566ab3909da624ae97e22af5941
[]
no_license
dilipksahu/Web_Scraping_Using_Python
9f586704a779fda551c5e3d15902591648663870
e6d3031f89b1b5d4bfa0377c11e87037772c460d
refs/heads/master
2023-01-30T14:36:00.702440
2020-12-17T16:10:25
2020-12-17T16:10:25
316,200,913
1
0
null
null
null
null
UTF-8
Python
false
false
2,433
py
# -*- coding: utf-8 -*- import scrapy from scrapy.selector import Selector from selenium import webdriver from selenium.webdriver.chrome.options import Options from shutil import which class CoinSpiderSelenium(scrapy.Spider): name = 'case_status' allowed_domains = ['www.main.sci.gov.in'] start_urls = [ ...
[ "sahud048@gmail.com" ]
sahud048@gmail.com
2c6e39a7ee4093454d57327e3b3e54a5024a56b0
c34cd98b9126cc3b03add40bd6464a7a76270088
/PythonTutorial/77PythonRegEx.py
fc53970f18d24d81fe19d49afa97f75a2b49d081
[]
no_license
riyadhswe/pythonw3schools
749e1e53e55c35cbd36f0eb08dcbbab80d40b245
35f4008a612c931784fb9d5fef1262f7d41e9764
refs/heads/master
2023-03-05T11:24:16.304462
2021-02-14T16:01:36
2021-02-14T16:01:36
324,746,990
2
0
null
null
null
null
UTF-8
Python
false
false
80
py
import re txt = "The rain in Spain" x = re.search("^The.*Spain$", txt) print(x)
[ "riyadhswe@gmail.com" ]
riyadhswe@gmail.com
ff10e9f2710cb3dc53121976e7b8d53856854d66
3784495ba55d26e22302a803861c4ba197fd82c7
/venv/lib/python3.6/site-packages/nltk/ccg/logic.py
b89bea9d8a08b7fccd7c58dfcdcb431f27dcecea
[ "MIT" ]
permissive
databill86/HyperFoods
cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789
9267937c8c70fd84017c0f153c241d2686a356dd
refs/heads/master
2021-01-06T17:08:48.736498
2020-02-11T05:02:18
2020-02-11T05:02:18
241,407,659
3
0
MIT
2020-02-18T16:15:48
2020-02-18T16:15:47
null
UTF-8
Python
false
false
1,806
py
# Natural Language Toolkit: Combinatory Categorial Grammar # # Copyright (C) 2001-2019 NLTK Project # Author: Tanin Na Nakorn (@tanin) # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ Helper functions for CCG semantics computation """ from nltk.sem.logic import * def compute_type_raised_seman...
[ "luis20dr@gmail.com" ]
luis20dr@gmail.com
c128b869ed0e8a8ddf5844d2ad95701ad963f881
8090fe014aad86878636a6d8a1ccc59a81d5d6d0
/EPROM_Emulator/directory_node.py
7ecec3164461e4eaf8db92ae08b089e586c381d8
[ "MIT" ]
permissive
hubs2545/Adafruit_Learning_System_Guides
ad5593027a9403f48c3b9fc820ba73e7ea2bd5af
1f743401b2dc18724d867a31aaf49273abd5ec0d
refs/heads/master
2020-03-18T17:11:40.107775
2018-05-25T20:14:02
2018-05-25T20:14:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,330
py
""" The MIT License (MIT) Copyright (c) 2018 Dave Astels Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
[ "dastels@daveastels.com" ]
dastels@daveastels.com
7ec35b7afd7de673969f2d0e09a32e4e2ed7e5be
ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f
/gen_basis_helpers/lammps_interface/unit_tests/utests_misc_objs.py
3b444bb7d9e73c210ba707c582f3bce01cb96999
[]
no_license
RFogarty1/plato_gen_basis_helpers
9df975d4198bff7bef80316527a8086b6819d8ab
8469a51c1580b923ca35a56811e92c065b424d68
refs/heads/master
2022-06-02T11:01:37.759276
2022-05-11T12:57:40
2022-05-11T12:57:40
192,934,403
3
0
null
null
null
null
UTF-8
Python
false
false
5,448
py
import collections import unittest import unittest.mock as mock import gen_basis_helpers.lammps_interface.misc_objs as tCode class TestNVTEnsemble(unittest.TestCase): def setUp(self): self.startTemp = 300 self.finalTemp = 500 self.dampTime = 200 self.thermostat = "Nose-Hoover" self.numbFmt = "{:.1f}" s...
[ "richard.m.fogarty@gmail.com" ]
richard.m.fogarty@gmail.com
6aab3ee55ffd45abd7f2608eec839c1371b7d460
a702fb476539272b78328f64a3a49c1012ac3ed4
/django_slack/utils.py
ee02e313e45081ff2fab63a801ba9d3356d3ca78
[ "BSD-3-Clause" ]
permissive
lamby/django-slack
7f8dea40e5b3cad93f2e207b2815327993743774
5b92410fadc1a91b9415c0991f0ff2547cd633c7
refs/heads/master
2023-03-10T23:54:17.789584
2023-03-02T08:07:43
2023-03-02T08:07:43
27,838,503
250
88
BSD-3-Clause
2023-03-01T15:08:41
2014-12-10T20:34:18
Python
UTF-8
Python
false
false
1,626
py
import json from django.utils.module_loading import import_string from .exceptions import LABEL_TO_EXCEPTION, SlackException from .app_settings import app_settings class Backend(object): def send(self, url, message_data): raise NotImplementedError() def validate(self, content_type, content, message...
[ "chris@chris-lamb.co.uk" ]
chris@chris-lamb.co.uk
4b921124dd541cdc0e677d64df53898e563848b5
00fe1823bbadc9300e4fec42ca1d12dfbd4bcde9
/Dictionary/11.py
d7986a4e30747730ee497810d2d9c9568de2029b
[]
no_license
monteua/Python
6b36eb01959f34ccaa2bb9044e2e660383ed7695
64b6154d9f59e1e2dbe033e5b9f246734b7d4064
refs/heads/master
2020-07-05T07:29:51.250343
2018-02-09T11:09:51
2018-02-09T11:09:51
74,122,698
3
0
null
null
null
null
UTF-8
Python
false
false
258
py
''' Write a Python program to multiply all the items in a dictionary. ''' dict1 = {1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49} print ("Old dictionary:", dict1) for key, value in dict1.items(): dict1[key] = value * 10 print ("New dictionary:", dict1)
[ "arximed.monte@gmail.com" ]
arximed.monte@gmail.com
ce50ec568accdb678d6f38382a3e15cb9984e4ee
fc678a0a5ede80f593a29ea8f43911236ed1b862
/380-InsertDeleteGetRandomO(1).py
7f654b9e925fa8143a6b015241c31f51b8b8f50a
[]
no_license
dq-code/leetcode
4be0b1b154f8467aa0c07e08b5e0b6bd93863e62
14dcf9029486283b5e4685d95ebfe9979ade03c3
refs/heads/master
2020-12-13T15:57:30.171516
2017-11-07T17:43:19
2017-11-07T17:43:19
35,846,262
0
0
null
null
null
null
UTF-8
Python
false
false
1,224
py
import random class RandomizedSet(object): def __init__(self): """ Initialize your data structure here. """ self.map = dict() self.size = 0 def insert(self, val): """ Inserts a value to the set. Returns true if the set did not already contain the specifi...
[ "dengqianwork@gmail.com" ]
dengqianwork@gmail.com
766be0bacab93658e605892e12eb75d5ac244ee7
0c656371d4d38b435afb7e870c719fe8bed63764
/levels/migrations/0003_space_variety.py
1efda5ef876ba0f4c06e864425969a5e529e9b6e
[]
no_license
enias-oliveira/parking-lot
cfbe5ca91dcb949e60f04cd26137260f5a9dba36
a54f5ca7b7d78bfc1a9b3c389729da14899d4048
refs/heads/master
2023-05-07T08:48:59.288672
2021-05-18T19:52:46
2021-05-18T19:52:46
369,363,475
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
# Generated by Django 3.2.2 on 2021-05-13 21:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('levels', '0002_rename_motorcylce_spaces_level_motorcycle_spaces'), ] operations = [ migrations.AddField( model_name='space', ...
[ "eniasoliveira27@gmail.com" ]
eniasoliveira27@gmail.com
424ca5b9877e60a4512eeca85195255714fa43eb
bc6b561958649c391c159d4dd3363c60eeabc7e4
/mayan/apps/documents/migrations/0051_documentpage_enabled.py
5835be769bcd26e022c28f01b95c5af6790dcfc5
[ "Apache-2.0" ]
permissive
chrisranjana/Mayan-EDMS
37deb105cda268768fea502491ae875ff905e0e9
34b414ce49a2eb156e27dc1a2915e52121c9d1b7
refs/heads/master
2020-12-22T13:50:41.263625
2020-01-28T18:45:24
2020-01-28T18:45:24
236,804,825
0
1
NOASSERTION
2020-01-28T18:12:53
2020-01-28T18:12:52
null
UTF-8
Python
false
false
411
py
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('documents', '0050_auto_20190725_0451'), ] operations = [ migrations.AddField( model_name='documentpage', name='enabled', ...
[ "roberto.rosario@mayan-edms.com" ]
roberto.rosario@mayan-edms.com
277ea298bd69c7999327b07b0015aa1e11d93b0e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03402/s642521958.py
7fcbd198121b2c295ef6f8a6e34080150121ad63
[]
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
372
py
a,b = map(int, input().split()) ans = [['.' for i in range(50)]+['#' for i in range(50)]for j in range(100)] x,y = 0,51 while a>1: ans[x][y] = '.' y+=2 if y>99: x+=2 y=51 a-=1 x,y = 0,0 while b>1: ans[x][y] = '#' y+=2 if y>48: x+=2 y=0 b-=1 print(100,10...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
840e0ebac008e76101216598b6ca7a9eb40a58eb
76f59c245744e468577a293a0b9b078f064acf07
/287.find-the-duplicate-number.py
0d410826d8b60f50737d2b511468b0a6a9a88f79
[]
no_license
satoshun-algorithm-example/leetcode
c3774f07e653cf58640a6e7239705e58c5abde82
16b39e903755dea86f9a4f16df187bb8bbf835c5
refs/heads/master
2020-07-01T10:24:05.343283
2020-01-13T03:27:27
2020-01-13T03:27:27
201,144,558
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
# # @lc app=leetcode id=287 lang=python3 # # [287] Find the Duplicate Number # from typing import List class Solution: def findDuplicate(self, nums: List[int]) -> int: low = 0 high = len(nums) - 1 mid = (high + low) // 2 while high - low > 1: count = 0 for n...
[ "shun.sato1@gmail.com" ]
shun.sato1@gmail.com
05cd52ca349b42d73c8bb6552629c6c5a911bb15
20044db9ab2c773cc80caa4a5a1175ee8148269d
/test/test_rma_nb.py
3498e98c2a687e11e0ac02e8076670280d7038cf
[]
no_license
senganal/mpi4py
a4e5dbf2d7e6cf9b6eb783f1e5f1c523326d667f
28a2e95506844a32efb6b14238ca60173fe7c5a2
refs/heads/master
2021-01-13T08:02:43.439643
2017-06-16T15:03:44
2017-06-16T15:03:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,219
py
from mpi4py import MPI import mpiunittest as unittest import arrayimpl def mkzeros(n): import sys if not hasattr(sys, 'pypy_version_info'): return bytearray(n) return b'\0' * n def memzero(m): try: m[:] = 0 except IndexError: # cffi buffer m[0:len(m)] = b'\0'*len(m) class ...
[ "dalcinl@gmail.com" ]
dalcinl@gmail.com
df01f0fb63ebfc8068c07b21de2c887bd683c017
d697c1d45e96bd440be9c17ab14243a5882b1f52
/qianfeng/常用模块/urllib/4-goujianheader.py
3b39a5b80031109ac0fc8fb0b27c5a333fcabcab
[]
no_license
ithjl521/python
9eeda2e60dda97ee36e8764c06400eb12818689f
f4fe50799501c483cb64445fd05ee0f30f56576c
refs/heads/master
2020-07-12T23:10:53.608276
2019-11-08T08:59:35
2019-11-08T08:59:35
204,931,359
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
import urllib.request import urllib.parse url = 'http://www.baidu.com' # response = urllib.request.urlopen(url) # print(response.read().decode()) # 自己伪装头部 headers = { "User-Agnet":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36" } # 构建请求对象 requ...
[ "it_hjl@163.com" ]
it_hjl@163.com