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
594dd97869b7bf70da7f7fb32bf027e1c5f2b249
7d527c7b4dc893df46f81d9312fa9842432fe582
/BS4ReSeaborn.py
c368165969d2583ddb584fc4a0ce30189d22854c
[]
no_license
ezekieltech/Python-Skills
88eaceae4e0dce5a0c121fddf79b1fb7167bdf5e
0bd04cfb901ef1e0ebe70697337eb603fdda9784
refs/heads/master
2020-03-17T08:12:57.689611
2018-05-14T23:29:30
2018-05-14T23:29:30
133,429,203
0
0
null
null
null
null
UTF-8
Python
false
false
4,100
py
# requests for fetching html of website from bs4 import BeautifulSoup import requests import re import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns # Make the GET request to a url url = "http://www.cleveland.com/metro/index.ssf/2017/12/case_western_reserve_university_president...
[ "ezekielobhafuoso@gmail.com" ]
ezekielobhafuoso@gmail.com
922daea5c0e4c3046bd3740f37b835547f40cc63
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/surface/compute/instances/add_metadata.py
ca2f229cd698448f0258f6964bf550128dc0d436
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
5,472
py
# -*- coding: utf-8 -*- # # Copyright 2014 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 requir...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
cf1fcbf2e9096a8cf44a2436f62c91e187a6753c
18508cea9458b2879017b44e6f18520cd8cf4f6c
/UCMDBPython/src/CheckNonNativeAgentInstalled.py
62f309091dc2fafd53d934878365060aad106350
[]
no_license
kvt11/dd-git
7d4935962e06d835ad0023c4abb185876a5a9e77
49aafa7081b861c5f6d0e1753b425e78948116d0
refs/heads/master
2022-11-23T19:03:19.763423
2016-04-04T14:54:18
2016-04-04T14:54:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,927
py
# coding=utf-8 import logger import modeling import time import inventoryerrorcodes import InventoryUtils import AgentUtils from com.hp.ucmdb.discovery.common import CollectorsConstants from com.hp.ucmdb.discovery.probe.agents.probemgr.workflow.state import WorkflowStepStatus def StepMain(Framework): InventoryUt...
[ "bluesteelkc@gmail.com" ]
bluesteelkc@gmail.com
d870d6b9b7024875c533a226919d59fa4d0e9e1c
07570ec33eb49effd9ed6af73214bac1b607038f
/server/swagger_server/models/notification_update.py
7b64d468df541d74c56e6ac36139025a37ca4609
[ "MIT" ]
permissive
kakwa/certascale
d9998a66ba6a239ba5b5e537f12dabdd5876996c
0df8da0f518506500117152fd0e28ee3286949af
refs/heads/master
2020-03-29T09:24:32.794060
2019-01-30T14:06:10
2019-01-30T14:06:10
149,756,729
0
2
null
null
null
null
UTF-8
Python
false
false
2,761
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class NotificationUpdate(Model): """NOTE: This class is auto generated by the ...
[ "carpentier.pf@gmail.com" ]
carpentier.pf@gmail.com
4bd36cec370f8072a932548bd12a7c948265d744
e7e535c09dd35c5a09897cbb63a55ac65a68ea03
/tests/covmodzip1.py
cab642814363f7090410e36ad9eb2358be2a6b7c
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
thijstriemstra/coveragepy
036700d7e897d46f9ab67f51d7ca0778e5d99ac6
695e8cb5e09582b0cb18902e2b7d6a1f5b22f140
refs/heads/master
2021-04-28T03:53:11.468929
2018-02-10T20:44:01
2018-02-10T20:44:01
122,148,642
0
0
Apache-2.0
2018-02-20T02:55:27
2018-02-20T02:55:27
null
UTF-8
Python
false
false
359
py
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt # Module-level docstrings are counted differently in different versions of Python, # so don't add one here. # pylint: disable=missing-docstring # covmodzip.py: for...
[ "ned@nedbatchelder.com" ]
ned@nedbatchelder.com
89da7e457b76146906acac8a715e14a654f8c02e
78a15793be1ba71ea7eecee33abef4ecbe11d8f2
/apps/stats/models/__init__.py
43d20a2ff711510bc68f9708e5417720ef59458c
[]
no_license
teresaylin/my2009
f5df9c62492d4c88931f6aa45af31ee88dbe3a1a
2486750ad73df313d596497b0eb7f4c47518e6a6
refs/heads/master
2021-03-21T23:53:55.581074
2016-06-01T18:13:44
2016-06-01T18:13:44
23,392,283
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from .DailyGlobalStats import DailyGlobalStats from .DailyTaskForceStats import DailyTaskForceStats from .DailyTeamStats import DailyTeamStats from .DailyUserStats import DailyUserStats
[ "jam.hann@gmail.com" ]
jam.hann@gmail.com
5ff7d1c18a32a7c7d27154c8bac69541828e7204
89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04
/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver_unittest.py
f0266b8d7d3395592ee54e5295bbcae01734f0c7
[ "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft" ]
permissive
bino7/chromium
8d26f84a1b6e38a73d1b97fea6057c634eff68cb
4666a6bb6fdcb1114afecf77bdaa239d9787b752
refs/heads/master
2022-12-22T14:31:53.913081
2016-09-06T10:05:11
2016-09-06T10:05:11
67,410,510
1
3
BSD-3-Clause
2022-12-17T03:08:52
2016-09-05T10:11:59
null
UTF-8
Python
false
false
2,481
py
# Copyright (C) 2014 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
[ "bino.zh@gmail.com" ]
bino.zh@gmail.com
91c5c80a9a221fec3d1c9239ce3083f835fa8a24
f4b60f5e49baf60976987946c20a8ebca4880602
/lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/extnw/rsout.py
f8c4e65266ba6d552211be27245ad78546208e91
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
7,211
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
d2b5bdd2d3c557143e2dba828b3051132e51d1a3
bde6ed092b7b29703737e11c5a5ff90934af3d74
/LeetCode/mock_interview/apple_phone_1/b.py
bb5c2af8798cacd70c4abce7d06001a5d6e855f1
[]
no_license
takecian/ProgrammingStudyLog
2ab7ea601e0996b3fa502b81ec141bc3772442b6
94485d131c0cc9842f1f4799da2d861dbf09b12a
refs/heads/master
2023-04-28T16:56:18.943574
2023-04-18T06:34:58
2023-04-18T06:34:58
128,525,713
4
0
null
2022-12-09T06:15:19
2018-04-07T12:21:29
Python
UTF-8
Python
false
false
853
py
import random # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def __init__(self, head: ListNode): """ @param head The linked list's head. Note that the head is guaranteed to be not null,...
[ "takecian@gmail.com" ]
takecian@gmail.com
1f2e7807d355bef5f4e25754d9ba2bb1c05ace8c
583b2b81e0e7ac3c910bc00204f877aa9c48bdae
/Analysis/HiggsTauTau/scripts/electronTagAndProbe.py
628842e9be6827a8171c8ccbfcf11a16fffd87f9
[]
no_license
danielwinterbottom/ICHiggsTauTau
8c88a3322c8e362114a53c559634a7ecceb266d2
69f6b580ec1faa4e5b6ef931be880f939f409979
refs/heads/master
2023-09-01T17:49:18.865198
2023-02-07T13:14:15
2023-02-07T13:14:15
10,723,688
4
12
null
2023-09-07T08:41:44
2013-06-16T18:08:22
Python
UTF-8
Python
false
false
8,120
py
import ROOT import glob import sys # import json from array import array import UserCode.ICHiggsTauTau.analysis as analysis ROOT.RooWorkspace.imp = getattr(ROOT.RooWorkspace, 'import') ROOT.TH1.AddDirectory(0) bin_cfgs = [ { 'name': 'ID_pt_bins_inc_eta', 'var': 'm_ll(50,75,125)', 'tag': '...
[ "andrew.gilbert@cern.ch" ]
andrew.gilbert@cern.ch
5258a2aee2fabc6b0595f6f1d5d344f6a3c4ed7c
57ddab24ba7860f8878c689f9fa22b0779d60157
/categorias/iniciante/uri1012.py
cf839e7bcaf5658e40a3718dc4df166058bda96f
[]
no_license
matheusfelipeog/uri-judge
ba1d32e50ad7239b331ad0e1181a1bffc6e61b41
0232be52da78fd67261c6d6a74eff3267d423afd
refs/heads/master
2021-07-03T02:32:13.395829
2021-01-29T18:32:35
2021-01-29T18:32:35
215,845,427
2
0
null
null
null
null
UTF-8
Python
false
false
509
py
# -*- coding: utf-8 -*- a, b, c = map(float, input().split()) # map aplica a funcão float() em todos os itens da lista area_tri_retangulo = a * c / 2 area_circulo = 3.14159 * c**2 area_trapezio = ((a + b) * c) / 2 area_quadrado = b**2 area_retangulo = a * b print('TRIANGULO: {:.3f}'.format(area_tri_retangulo)) prin...
[ "50463866+matheusfelipeog@users.noreply.github.com" ]
50463866+matheusfelipeog@users.noreply.github.com
a1aec06d50d711aea709230d5e0a0f91152de872
a9b88bc0ded09b92393e07556de6a8c71057d041
/python/example/pd_energy_3d.py
ef5fa4caf981da1961035a118542ffe4e946020f
[ "MIT" ]
permissive
mit-gfx/diff_pd_public
3bb1287b959a8e6ad04a81aab79c44646abed133
1594aa07a6983ff9a9c107e9f0d83d07fa99c8d1
refs/heads/master
2023-03-17T07:33:53.773564
2022-03-11T18:28:42
2022-03-11T18:28:42
468,809,853
79
10
null
null
null
null
UTF-8
Python
false
false
3,656
py
import sys sys.path.append('../') from pathlib import Path import shutil import numpy as np from py_diff_pd.common.common import ndarray, create_folder from py_diff_pd.common.common import print_info, print_ok, print_error from py_diff_pd.common.grad_check import check_gradients from py_diff_pd.env.cantilever_env_3d ...
[ "taodu@csail.mit.edu" ]
taodu@csail.mit.edu
762b372f2be10be34e6d83364ffb47e654d2b83a
2d2762b79a80cb2a37e2516468d6b3e8300f55cd
/project/consulting/migrations/0003_auto_20151220_0237.py
ee1f2e9d29c2d87f4db7b78ecbca4a16ec92509d
[]
no_license
joelburton/otessier.com
438e22c9c749b53869c43790dc40014365b6ab98
b00fe90239bcaaa75d9512fe9207e4c494386bce
refs/heads/master
2021-06-05T03:00:52.028310
2017-12-24T03:29:51
2017-12-24T03:29:51
28,550,555
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-20 02:37 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('consulting', '0002_db_fixes'), ] operations = [ migrations.AlterModelOptions( ...
[ "joel@joelburton.com" ]
joel@joelburton.com
8397451fff40cfb42dfe398742fbdd3e1de83a74
560df0c3f859ae2d4c279f4669f9ab8758c486fb
/old/Euler085.py
7f27fa13d52fb270b4bd006b92d7e3b726697fe4
[]
no_license
gronkyzog/Puzzles
0e7cdd7fa5ab8139d63a721cac5ee30e80728c7a
cdc145857f123a98f1323c95b5744d36ce50355f
refs/heads/master
2021-03-13T00:01:17.715403
2015-02-22T11:59:03
2015-02-22T11:59:03
17,100,928
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
def squarecount(m,n): return (m+1)*(n+1)*m*n/4 target = 2*10**6 min_error = target product = 0 for m in range(1,2002): a = (m**2 + m)/4. b = (m**2 + m)/4. c = -target n =int(round(-b + (b**2 - 4*a*c)**0.5)/(2*a)) sc = squarecount(m,n) error = abs(target-sc) if error < min_error: product = m*n print produc...
[ "smcnicol@gmail.com" ]
smcnicol@gmail.com
0655c1582566f637494b034e35fb805577678e1f
2a2fddb49f815e207fe72c5be63cf38311373312
/Linear Regression/linear_regression.py
86fcefa8d180b036dd0b229db73dcd0e469fa8d1
[]
no_license
yyassif/ML
0a846eb040b178ff7f2abb1a7983e945b09ca875
c8c9f300fee2631ed668ba9aeb89e6b61e5bce4b
refs/heads/master
2022-10-25T09:41:51.289427
2020-06-17T22:23:05
2020-06-17T22:23:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
import pandas as pd import numpy as np import sklearn from sklearn import linear_model from sklearn.utils import shuffle data = pd.read_csv('student-mat.csv', sep=';') data = data[['G1', 'G2', 'G3', 'studytime', 'failures', 'absences']] print(data) predict = 'G3' x = np.array(data.drop([predict], 1)) ...
[ "noreply@github.com" ]
yyassif.noreply@github.com
f45f83060e9f1cd72969ea19e2fcbd392ee8b5df
694c9c73e64594bf9c98c5bd356a81b2b1a5eb3e
/PowerSupplies/Errors.py
ba0a19edc6dbea7afb7e8d51e2aa0a17a9bb77bb
[]
no_license
ibeckermayer/PowerSupplyInterface
40a60c0b9764580ea6df3a50a99ce84af646b837
11d89acf7f16f61ed24c242f633e2c4532496b9e
refs/heads/master
2020-04-05T13:04:55.715746
2017-08-15T22:45:19
2017-08-15T22:45:19
95,057,033
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
class Error(Exception): """Base class for exceptions in this module.""" pass class ChannelError(Error): """Error is raised when user gives a channel other than 1 or 2""" def __init__(self, chan): self.chan = chan def __str__(self): return "Invalid channel number " + repr(self.cha...
[ "ibeckermayer@gmail.com" ]
ibeckermayer@gmail.com
d58c3dc8ba72594e33f817a239480abab7a4ecef
38fb82ff9f5ecee937cb950889335402aba2c7a6
/blog/templatetags/blog.py
ee9422f39e9c5e0f0f9586a09456e5387cb14a85
[]
no_license
squallcs12/vivu2017
abe9c42cfd831de3411c1b986b6d5c4c4099808a
c6a3f37ee238464c9bf9de61a1c6e9f5be21f40f
refs/heads/master
2021-01-11T22:36:21.289404
2017-02-02T08:11:19
2017-02-02T08:11:19
78,998,307
0
0
null
2017-02-02T08:11:20
2017-01-15T04:55:01
Python
UTF-8
Python
false
false
480
py
from django import template from blog.models import Post register = template.Library() @register.inclusion_tag('blog/post.html', takes_context=True) def render_post(context, post): if isinstance(post, str): post = Post.objects.filter(slug=post).first() if not post: return request = conte...
[ "daotranbang@gmail.com" ]
daotranbang@gmail.com
388df1947d1cfcff16a691f16cc1bcc6e239d691
e3a8fea71f740274001ae6fd8eb7a11b8810c89b
/perfrunner/celeryremote.py
d5dbbf311da564e6d96cf3d7710023b57feaba09
[ "Apache-2.0" ]
permissive
tonyduydao/perfrunner
efeedf5faf25c1ef105203dbee94cf315c063a41
5e0dab1af6083dc6408efcaa9f8d61262a43e6f2
refs/heads/master
2021-01-21T00:07:48.046467
2016-07-05T18:55:57
2016-07-05T21:02:14
62,670,707
1
0
null
2016-07-05T21:25:44
2016-07-05T21:25:44
null
UTF-8
Python
false
false
178
py
BROKER_URL = 'amqp://couchbase:couchbase@ci.sc.couchbase.com:5672/broker' CELERY_RESULT_BACKEND = 'amqp' CELERY_RESULT_EXCHANGE = 'perf_results' CELERY_RESULT_PERSISTENT = False
[ "pavel.paulau@gmail.com" ]
pavel.paulau@gmail.com
49dfe9933e523de83175bc9c532c4fc652938202
32a2e4d3fba38de67062458416b468fe432e71f8
/grandma.py
d696eefe95ea66617960e04ccac34abff17bb756
[]
no_license
Austin-deMora/ICS3U-Unit3-07-Python-Grandma
37a6d42fa7dbefa4f3ddb17f7406d888b263ac0c
a68007ea9aae4ede8f6eb56f5fe9bdc8e8dd458d
refs/heads/main
2023-04-18T16:09:01.190420
2021-05-07T13:30:24
2021-05-07T13:30:24
365,241,773
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
#!/usr/bin/env python3 # # Created by: Austin de Mora # Created on: May 2021 # This program checks if a person reaches a certain set of parameters import math def main(): # This function checks the persons age # Input participants_age = input("Enter your age: ") print("") # process try: ...
[ "you@example.com" ]
you@example.com
08934c0a829b2951fecc5608e126f376a2766ab8
227c102ed508ad2b1d046340dcb598a7b16e2925
/.history/Forritun/Verkefni með einkunn/Lokaverkefni/lokaverkefni_20201209193141.py
501cdcc42399ee86621376492d707e0ca49f6c9e
[]
no_license
larusarmann/Skoli-haust-2020
298e48f1c20d7ec0c92124018650253f13bcbb2f
3061a0238b74919daccaa74117bc1c32b3436619
refs/heads/master
2023-02-07T09:15:45.493928
2020-12-09T19:46:53
2020-12-09T19:46:53
292,543,006
0
0
null
null
null
null
UTF-8
Python
false
false
7,410
py
import random #Importar import arcade #Importar import os #Importar SPRITE_SCALING = 0.5 # setur stærðina SPRITE_NATIVE_SIZE = 128 SPRITE_SIZE = int(SPRITE_NATIVE_SIZE * SPRITE_SCALING) # margfaldar stærð með skalanum SCREEN_WIDTH = 800 #lengd skjáar SCREEN_HEIGHT = 600 #hæð skjáar SCREEN_TITLE = "Lárus" #Titill á sk...
[ "larus.armann@gmail.com" ]
larus.armann@gmail.com
65c7b67e99e10ccdc4900a863ba8f02b6540d825
ede57252e7a7799c5dca5dce653d05b338b4e13d
/oxlos/newsletter/management/commands/test_newsletter.py
026acd7b07672b68b136517fe8311a6df7fbd8a7
[ "MIT" ]
permissive
jtauber/oxlos2
df4e8ec556da47238d916624d12e5659b9038175
5122a3d6407e233c0b4b0c001d66ef7c1fefd0d2
refs/heads/master
2021-03-22T04:34:45.649105
2019-02-17T21:53:13
2019-02-17T21:53:13
88,310,977
1
0
MIT
2019-02-17T21:53:14
2017-04-14T23:40:56
Python
UTF-8
Python
false
false
821
py
import sys from django.core.management.base import BaseCommand from oxlos.newsletter.mail import test_newsletter from oxlos.newsletter.models import NewsletterSetting class Command(BaseCommand): help = "Send test newsletter." def add_arguments(self, parser): parser.add_argument("username") ...
[ "jtauber@jtauber.com" ]
jtauber@jtauber.com
4315914a2be63be9c92bb1b8b1c5ff853ef91fbb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03970/s865775484.py
4740c456dab730e65afa8d2b3f404d6b66ca0359
[]
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
272
py
# -*- coding: utf-8 -*- # CODE FESTIVAL 2016 qual A # Problem A if __name__ == '__main__': original = 'CODEFESTIVAL2016' s = input() count = 0 for si, original_s in zip(s, original): if si != original_s: count += 1 print(count)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a81e49022751ef3a33011751b0f5905ea1266c41
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/lib/email/base64mime.py
07e65e264ca2144b54814b6434aa209e6ef7073e
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
5,452
py
# Copyright (C) 2002-2006 Python Software Foundation # Author: Ben Gertzfield # Contact: email-sig@python.org """Base64 content transfer encoding per RFCs 2045-2047. This module handles the content transfer encoding method defined in RFC 2045 to encode arbitrary 8-bit data using the three 8-bit bytes in four 7-bit ch...
[ "fede.anne95@hotmail.it" ]
fede.anne95@hotmail.it
9c1b719f9e5232459f57fea69dc20b43748010d6
0064d4b6f3908b2989a7965e49afa3f4bf65d095
/leetcode+牛客/isLongPressedName.py
d007972b67bb64b7a0753293c457e4b3b5a2f034
[]
no_license
MyHiHi/myLeetcode
d7a5c1c3a3a30ba517183f97369ed6c95e90cae3
ca36041af7f73d91c95cdbe9599ac5ec15a1243c
refs/heads/master
2021-05-20T08:29:37.017725
2020-05-03T05:17:05
2020-05-03T05:17:05
252,196,933
2
0
null
null
null
null
UTF-8
Python
false
false
1,387
py
# -*- encoding: utf-8 -*- ''' @File : isLongPressedName.py @Time : 2020/02/05 11:18:22 @Author : Zhang tao @Version : 1.0 @Desc : None ''' ''' 你的朋友正在使用键盘输入他的名字 name。偶尔,在键入字符 c 时 ,按键可能会被长按,而字符可能被输入 1 次或多次。 你将会检查键盘输入的字符 typed。如果它对应的可能是你的朋友的名字(其中一些字符可能被长按), 那么就返回 True。   示例 1: ...
[ "909535692@qq.com" ]
909535692@qq.com
e28604b30abe09eca2036d8b05c977a479f65a1c
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/295/113311/submittedfiles/testes.py
2a5df8eeba8b1354eca085d1b123f12086cdd0e6
[]
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
556
py
'''s = str(input('Informe seu sexo :')).strip().upper()[0] while s not in 'MmFf': s = str(input("Dados invalido. Digite novamente ")).strip().upper()[0] print(s)''' from random import randint computador = randint(0,10) print('Acabei de jogar um numero entre 0 e 10.') print('Sera que voce adivinha ?') a...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
4e530f72a5f7fd398eef0fa6ff9bbfae901ff9b2
5abbbb34fa0e7d0b5345ecc7238fc7fed0de590f
/learn_cerberus/p1_define_a_schema.py
8d16b5cf1287e3ee1497a7cc624d53ecb403f532
[]
no_license
MacHu-GWU/learn_cerberus-project
2446daffc1fd4affa6e125f36e1ff1313e9fce29
3b3195cac4c7664f78d539b9a9a4c598896ad186
refs/heads/master
2021-06-20T23:46:22.027041
2017-08-07T21:18:00
2017-08-07T21:18:00
39,047,510
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import cerberus def define_and_validate(): # define a schema schema = {"name": {"type": "string"}} # create a validator instance v = cerberus.Validator(schema) # validate document = {"name": "John"} result = v.validate(document) a...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
e182fd8d6628885f39179015ffce1bd87c924cc1
16047f965a69893a8cd2c8d18fbd7b9c86a07eb3
/src/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_condition.py
8d07b91f3952585293e05f7af1b9ee78e60aecfc
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
guctum/aws-kube-codesuite
9ce2cc02fe5fa15c2e175fb697138014fb162f1e
5d62beaadc13bec745ac7d2fc18f07805e91cef3
refs/heads/master
2021-05-24T10:08:00.651840
2020-04-23T20:21:46
2020-04-23T20:21:46
253,511,083
0
0
Apache-2.0
2020-04-06T13:48:14
2020-04-06T13:48:13
null
UTF-8
Python
false
false
6,891
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "olari@784f435df7a4.ant.amazon.com" ]
olari@784f435df7a4.ant.amazon.com
60c6b31233f228b1b69128ce9a68fd1a8d7ecdf3
a1dce04838e2a4aa85e8a98459ae384aa00911bc
/src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinn_front_end_common/abstract_models/abstract_has_first_machine_time_step.py
64cc9b5dc61b09ac053815b5689388b0d246b020
[ "BSD-3-Clause" ]
permissive
Roboy/LSM_SpiNNaker_MyoArm
8cb5b44c772bd9843989c64265dfcabd08905b4c
04fa1eaf78778edea3ba3afa4c527d20c491718e
refs/heads/master
2021-01-23T17:42:33.122281
2017-10-30T11:34:22
2017-10-30T11:34:22
102,772,213
2
0
null
null
null
null
UTF-8
Python
false
false
442
py
from six import add_metaclass from abc import ABCMeta from abc import abstractmethod @add_metaclass(ABCMeta) class AbstractHasFirstMachineTimeStep(object): """ Indicates an object for which the first machine timestep can be set """ @abstractmethod def set_first_machine_time_step(self, first_machine_t...
[ "simon.trendel@tum.de" ]
simon.trendel@tum.de
9fb20e63ac2fb0d0fb218b54a2b6630ef9591eab
27acd9eeb0d2b9b6326cc0477e7dbb84341e265c
/test/vraag4/src/yahtzee/167.py
b5b33cbbeeba50815cdfaa361d0a37ac0dcca025
[]
no_license
VerstraeteBert/algos-ds
e0fe35bc3c5b7d8276c07250f56d3719ecc617de
d9215f11cdfa1a12a3b19ade3b95fa73848a636c
refs/heads/master
2021-07-15T13:46:58.790446
2021-02-28T23:28:36
2021-02-28T23:28:36
240,883,220
1
1
null
null
null
null
UTF-8
Python
false
false
1,819
py
def som(stenen): som = sum(stenen) return som def is_Yathzee(stenen): lengte = len(stenen) controle = stenen[0] antwoord = True for i in range(lengte): if stenen[i] != controle: return False return antwoord def is_grote_straat(stenen): lengte = len(stenen) stene...
[ "bertverstraete22@gmail.com" ]
bertverstraete22@gmail.com
ee2426571988f268344a354a1922f9658dd386bc
740386f0ef458a99325a95283fb391bb26ddd7b3
/rnaseqlib/utils.py
2d4223e349fd9bcafe52d4775e79813d4733d5db
[]
no_license
hjanime/rnaseqlib
1467bac3151f67913cc6ea793b50ab627f26f940
d13073c58c9239f90e04e1fe854ed849a2aa99d4
refs/heads/master
2021-01-24T05:15:29.036548
2012-12-30T06:01:14
2012-12-30T06:01:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,041
py
## ## Utilities ## import os import sys import time from os.path import basename from urlparse import urlsplit import itertools import logging def get_logger(logger_name, log_outdir, level=logging.INFO, include_stdout=True): """ Return a logging object. """ logger = logg...
[ "yarden.katz@gmail.com" ]
yarden.katz@gmail.com
9de5efc98be0a86acb09992b538e988e52aed5a4
1713334f9b68255f9adab70175c21f399d0460f3
/python/384_Shuffle_an_Array.py
13bea87b865e2973023d24138f9aa9ca9eefe0e3
[ "MIT" ]
permissive
coy0725/leetcode
0a798b7adafe80f726e51c06c34835c4aa51b563
743a0bfa22402ec39858dc9c4c7dc531f825b953
refs/heads/master
2020-05-21T18:25:09.683714
2019-05-11T13:00:40
2019-05-11T13:00:40
186,132,894
2
0
MIT
2019-05-11T12:55:22
2019-05-11T12:55:21
null
UTF-8
Python
false
false
938
py
import random class Solution(object): def __init__(self, nums): """ :type nums: List[int] :type size: int """ self.origin = list(nums) self.curr = list(nums) self.size = len(nums) def reset(self): """ Resets the array to its original confi...
[ "qiyuangong@gmail.com" ]
qiyuangong@gmail.com
768487df6f0f5b0415d7f41ef994c61ef2c355d3
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/output/StudentProblem/10.21.9.53/7/1569574205.py
5f57efbea38a9c036cbce2af14249075f27e33ac
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
============================= test session starts ============================== platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 rootdir: /tmp collected 1 item ../../../../../tmp F [100%] =================================== FAILURES ==========...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
62feb631d3bfe3d5af72f73aa92ce0d6a4005600
8a78fa28230e925986fb2599bf18d21fb02133af
/Week 4/koch_square.py
44fe777a0c11479fa384a30493a3f4a3e7c31f58
[]
no_license
wma8/PythonClass
b84389df69df9a59e49f9f87f0a672623266db86
378424557e7df7e5b0cba7a6cef26eda4108e47e
refs/heads/master
2020-07-03T00:12:36.437637
2019-08-19T10:31:37
2019-08-19T10:31:37
201,719,862
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Koch Square using Turtle module """ import turtle as t def koch_square(n,L): if n==0: t.fd(20) else: koch_square(n-1,L/3) t.left(90) koch_square(n-1,L/3) t.right(90) koch_square(n-1,L/3) t.right(90) ...
[ "wma8@ncsu.edu" ]
wma8@ncsu.edu
b68898a7e0142411f92f474dd19d004f200608c7
45da48ae0a87f4bb27409bfe2e947b29a2d4a0d0
/znake/znake/docker.py
646d15000c034d62702793f67dccafe2e1a7eb35
[ "Apache-2.0" ]
permissive
per-bohlin/opensourcelib
3923165982ae1b2c78602a3485684ded75c28c36
e48427fd0b5d87ea21484e85d2575c8b8879b9a3
refs/heads/master
2020-05-21T21:34:15.112527
2019-05-11T16:57:58
2019-05-11T16:57:58
186,156,987
0
0
NOASSERTION
2019-05-11T16:34:39
2019-05-11T16:34:39
null
UTF-8
Python
false
false
4,944
py
""" Docker is used to allow testing and packaging Python projects in multiple environments. Docker images are pulled from the Zenterio Docker registry (docker.zenterio.lan) and Znake provides facilities for running tasks inside these containers. .. autofunction:: docker_run When running inside a Docker container, it...
[ "per.bohlin@zenterio.com" ]
per.bohlin@zenterio.com
1d13f4e481abb0b2063b252899113aadee892032
04b1803adb6653ecb7cb827c4f4aa616afacf629
/components/cronet/tools/link_dependencies.py
94e612e9575421256a47b5a5f2498d02e5b97246
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
Python
false
false
5,132
py
#!/usr/bin/env python # # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Links the deps of a binary into a static library. Run with a working directory, the name of a binary target, and the name of the ...
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
19284ba9e6f1e83eee80c2120623737c0f8b1dd4
a51230b2363e267ebcdf6c1fc1eb3123e3b65031
/examples/circuitplayground_slide_switch_red_led_short.py
9c06cbce3aa9b730dc272b3ca82898d8b285417f
[ "MIT" ]
permissive
sommersoft/Adafruit_CircuitPython_CircuitPlayground
2b4f95c2c7a68eec717e4ed28baabd2ebd1d70aa
418ca982b34759b2804c2e816cdb505b2b818135
refs/heads/master
2021-04-27T02:28:45.319526
2020-03-20T18:42:46
2020-03-20T18:42:46
122,697,026
0
0
MIT
2018-02-24T02:56:34
2018-02-24T02:56:34
null
UTF-8
Python
false
false
248
py
"""This example uses the slide switch to control the little red LED. When the switch is to the right it returns False, and when it's to the left, it returns True.""" from adafruit_circuitplayground import cp while True: cp.red_led = cp.switch
[ "kattni@adafruit.com" ]
kattni@adafruit.com
8cb4fbcc78ae1ca69c890f36c84aeed1e4a620de
52b5773617a1b972a905de4d692540d26ff74926
/.history/fish1_20200805124830.py
1c83130935b6cf842f3fe7291f0d16fe18671fe1
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
def fish(A,B): # we place fish moving downwards to a downstream stack # then when its not empty we'll check with the empty at A[i] # if it eats that fish we deduct it from the alive fish and del from A # otherwise we shall pop from the down stream stack downStream = [] j = 0 aliveFish = ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
059c384da211169eaa6b0ae8d1c3c73d6d2a23ba
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/examples/docs_snippets/docs_snippets/integrations/bigquery/reference/pyspark_with_spark_resource.py
babcc20f431d53b65e872b5e3843aa3c3aa265f5
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
1,384
py
from dagster_gcp_pyspark import BigQueryPySparkIOManager from dagster_pyspark import pyspark_resource from pyspark import SparkFiles from pyspark.sql import ( DataFrame, SparkSession, ) from pyspark.sql.types import ( DoubleType, StringType, StructField, StructType, ) from dagster import Defini...
[ "noreply@github.com" ]
dagster-io.noreply@github.com
c5191620ad01f23ca577da632f02971a4198012b
127e99fbdc4e04f90c0afc6f4d076cc3d7fdce06
/2021_하반기 코테연습/boj9095.py
91fc3f4bb7aeebf393ffe315deefa1653bdfc6f2
[]
no_license
holim0/Algo_Study
54a6f10239368c6cf230b9f1273fe42caa97401c
ce734dcde091fa7f29b66dd3fb86d7a6109e8d9c
refs/heads/master
2023-08-25T14:07:56.420288
2021-10-25T12:28:23
2021-10-25T12:28:23
276,076,057
3
1
null
null
null
null
UTF-8
Python
false
false
267
py
t = int(input()) while t: n = int(input()) dp = [0 for _ in range(n+1)] dp[0]=1 dp[1]=1 for i in range(2, n+1): for j in range(1, 4): if i-j>=0: dp[i]+=dp[i-j] print(dp[n]) t-=1
[ "holim1226@gmail.com" ]
holim1226@gmail.com
a23f3ec3fbbc6f4861e912cac88d749b0c8f75ef
d748710c6c5fa0f61b5bd6c2ec849d9250428811
/demo1/client_python/test/test_body15.py
9013b74dc73e5f095b8430425a23108a1d1984f8
[]
no_license
stefan2904/aries-experiments
9f4dab2d0711b76557e3d6ae8e5a27e532102685
46f31ee62cf951da2696e5ca4e6dc1d3d753743d
refs/heads/main
2023-03-23T00:06:06.362992
2021-03-18T12:56:58
2021-03-18T12:56:58
329,986,417
1
0
null
null
null
null
UTF-8
Python
false
false
902
py
# coding: utf-8 """ (Aries Agent REST Server) of VC4SM University. No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future_...
[ "dev@2904.cc" ]
dev@2904.cc
36c6cb8752330c5761133f7d42e9c04aa40bb8fe
387cf5f72ed6679a4d9e04bddd16998a190c4caf
/problems/programmers/lv1/pgs-12901-strptime.py
229f0e60304a18adfaac5c08c3a5a5c8d6b950d7
[]
no_license
CodyBuilder-dev/Algorithm-Coding-Test
db4ee1e7565fbcef3140192225167eff42ad5c02
cca5c4ba8bc31679ab00aceccfd8d9d39c232f72
refs/heads/master
2021-07-24T00:34:41.888289
2021-07-21T14:29:00
2021-07-21T14:29:00
219,123,221
1
0
null
null
null
null
UTF-8
Python
false
false
580
py
""" 카테고리 : 날짜 처리 아이디어 : 날짜 문자열을 만든 후, 이를 datetime Obj로 만들어 처리한다 문제점 : strptime(문자열,format)으로 문자열을 파싱하는 속도는 datetime(year,month,date)로 직접 생성하는것보다 훨씬 느리다(100배 이상) """ import datetime def solution(a,b) : dayOfDate = ["MON","TUE", "WED", "THU", "FRI", "SAT", "SUN"] dateStr = f"2016/{a}/{b}" dateObj = datet...
[ "imspecial1@u.sogang.ac.kr" ]
imspecial1@u.sogang.ac.kr
99c949ac67fa8bdc3db795fbb4752f9a210261a5
2ff7e53d5e512cd762217ca54317982e07a2bb0c
/eve/common/script/cef/componentViews/proximityOpenTutorialView.py
ccf770143cceae3e7fa40d201bb2660d5fade755
[]
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
841
py
#Embedded file name: eve/common/script/cef/componentViews\proximityOpenTutorialView.py from carbon.common.script.cef.baseComponentView import BaseComponentView class ProximityOpenTutorialView(BaseComponentView): __guid__ = 'cef.ProximityOpenTutorialView' __COMPONENT_ID__ = const.cef.PROXIMITY_OPEN_TUTORIAL_COM...
[ "billchang.e@gmail.com" ]
billchang.e@gmail.com
0b0aa7af98509a67cf6f050a61d1579591322937
7f9dfa2cccf77764940ffcbbf92939e37c138c43
/LoginSpider/LoginSpider/items.py
2438a925d73ece5c2cd01cc3bef0bcd04f3a75ec
[]
no_license
zhangmman/scrapy_spider
f80bd8d213edde0dea083babe610ca7b1bc449a3
2bda4aa29f2550c649c939045ce4fcdea2736187
refs/heads/master
2020-09-11T13:58:49.930929
2019-12-21T08:40:56
2019-12-21T08:43:43
222,080,585
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class LoginspiderItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() key = scrapy.Field() value = ...
[ "zhangman@ncepu.cn" ]
zhangman@ncepu.cn
d34c0a8bc8ae3661daefa7939140c63f07fd18f7
e9e433c57a7d73d848fbade5e354a8c31ff0ea87
/codeprep/parse/matchers.py
5bc50625f534c9c0b0c9cd53bf32f69f14aad0a8
[ "Apache-2.0" ]
permissive
Joshua0128/codeprep
a7f99533e7b74e089fb66a3f10f6be59d4ca4b71
0f41307f7a9ad545e5ec0cc9552a0144328f2422
refs/heads/master
2023-07-09T13:07:33.094940
2021-04-21T18:08:30
2021-04-21T18:08:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,211
py
# SPDX-FileCopyrightText: 2020 Hlib Babii <hlibbabii@gmail.com> # # SPDX-License-Identifier: Apache-2.0 from typing import List from pygments.token import Token from codeprep.parse.subtokens import split_into_words, split_string from codeprep.tokens.containers import StringLiteral, OneLineComment, MultilineComment f...
[ "hlibbabii@gmail.com" ]
hlibbabii@gmail.com
a543616e125279b2ac3c41b1a77872e36b0c8a88
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/ecdcb6a09f05795d16720ca45adc0c3f168fa0c3-<main>-bug.py
287fa419b15f4182db289c7a86dff7ae530fc689
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,807
py
def main(): command_allowed_param_map = dict(cleanup=(), createcachetable=('cache_table', 'database'), flush=('database',), loaddata=('database', 'fixtures'), syncdb=('database',), test=('failfast', 'testrunner', 'liveserver', 'apps'), validate=(), migrate=('apps', 'skip', 'merge', 'database'), collectstatic=('cl...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
fa0dfc9473bda7d977af40d8fe7934a3a0b5ffdb
2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac
/Python/Core/Lib/idlelib/CodeContext.py
8d9ef5662ab63575f56d9f3e9f22fa9b6725f471
[]
no_license
FingerLeakers/DanderSpritz_docs
f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364
d96b6a71c039b329f9f81544f645857c75360e7f
refs/heads/master
2021-01-25T13:05:51.732149
2018-03-08T01:22:49
2018-03-08T01:22:49
123,527,268
2
0
null
2018-03-02T03:48:31
2018-03-02T03:48:30
null
UTF-8
Python
false
false
6,367
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20) # [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] # Embedded file name: CodeContext.py """CodeContext - Extension to display the block context above the edit window Once code has scroll...
[ "francisck@protonmail.ch" ]
francisck@protonmail.ch
c186114a0216954a64e53918c7b378ef5e8a03cc
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02572/s385611964.py
ccccaf7fdb46d6d3cec106fa87b84aca48df3463
[]
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
133
py
N = int(input()) A = list(map(int, input().split())) sm=0 mod=10**9+7 s=sum(A) for i in A: s-=i sm+=i*s sm%=mod print(sm)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
104e018bb395b8b1d79f831552a6263af5c3fb3a
9c4ceb78678a8755c6ac7e54a47e8054b6e79c2c
/core/registration/static/tests/all.py
7451fc79c5027621889ad0002de165664b6750ac
[]
no_license
caseybecking/inventory
068ca06a9b2c28a4baaea1c71491fa029552ab1b
aa74ed891f665a0eed6899b631e08b2227e42887
refs/heads/master
2021-01-23T01:41:28.443608
2014-03-17T15:32:49
2014-03-17T15:32:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
from core.registration.static.tests.basic import * # noqa from core.registration.static.tests.A_tests import * # noqa from core.registration.static.tests.aux_attrs import * # noqa from core.registration.static.tests.PTR_tests import * # noqa from core.registration.static.tests.ipv6_basic import * # noqa from core....
[ "uberj@onid.orst.edu" ]
uberj@onid.orst.edu
f96bee2aabbb2ff7ae9d9e3953a6e2004602c1d0
4e359e13ea42fd17901adb4f42b3e7d3c98b683b
/src/image_complete/webp.py
b964b1b3e2ca1393b2118481328afb910d7fe6fc
[ "MIT" ]
permissive
waikato-datamining/python-image-complete
746aea9dadde82e718bfe5533aa86e05172f1886
3f88a7c60ff93a7bc9b4eed6a53e9be9220b3d9d
refs/heads/master
2023-04-27T20:58:53.832539
2023-04-17T04:12:41
2023-04-17T04:12:41
181,777,040
0
0
null
null
null
null
UTF-8
Python
false
false
1,673
py
import struct from io import BytesIO from .base import load def is_webp(img): """ Checks whether the image represents a WebP image. https://developers.google.com/speed/webp/docs/riff_container :param img: the absolute path to the WebP image or a bytes/BytesIO object :type img: str or bytes or B...
[ "fracpete@gmail.com" ]
fracpete@gmail.com
a536c0000e90b8763828e6a2c40f8c1b138c9b17
c8f49fdec1611df9ad6782f67612fc521d767a33
/Ch_7_User_Inputs_and_While_Loops/dream_vacation_7-10.py
b69451dccc8ee9639953ef737c54d1e0fea9faeb
[]
no_license
tdominic1186/Python_Crash_Course
777f799102df8f7293201d7f90d33b6b48745fa0
135431b33cd7571b6f0e664b8e6cd21e16dd4471
refs/heads/master
2020-05-04T23:10:55.580312
2019-04-04T19:49:01
2019-04-04T19:49:01
179,535,418
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
# -*- coding: utf-8 -*- """ Created on Mon May 14 12:39:34 2018 @author: ACANTAMA """ responses = {} polling_active = True while polling_active: name = input("What is your name? ") vacation = input(name.title() + ", if you could visit one place in the world, \ where would you go? ") responses[name]...
[ "tdominic1186@gmail.com" ]
tdominic1186@gmail.com
c80e128dc838d48408c5f770ef928f93dceee5a9
4520f56d4952c788e198ee7eee39911c9a76c60f
/03_Bigdata/04_AI/02.Text Mining/practice/1_CountVectorizer_TfidTransformer/3_Movie_Review/2_text_mining_regression.py
3f602f64e32e9b67033ae58fba01300870918ed5
[]
no_license
SuHyeonJung/iot_python2019
bef8877a1cd41981ad2125291f5af44f4fd1701c
7860630ae28c53677a3c2761c9e997b28ea55f26
refs/heads/master
2020-06-14T22:18:27.503781
2019-11-08T05:50:41
2019-11-08T05:50:41
195,142,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,002
py
# 사용 모델: LogitsticRegression # 고정 변수 항목 : review text에 쓰인 단어들, 단어 빈도 # 분석 목표(예측값) : 리뷰가 긍정인지 부정인지 판별 import pickle from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split with open('pre_movie_review.pickle', 'rb') as file: label, voca, features = pickle.load(file) ...
[ "galma94815@naver.com" ]
galma94815@naver.com
5ba82a0c8c520613272d7bb23bb3cba7454f0381
1078c61f2c6d9fe220117d4c0fbbb09f1a67f84c
/paws/bin/eulb-register-instances-with-lb
cb96528d5d2ba0fa1346650e00f04658dbf7b818
[ "MIT" ]
permissive
cirobessa/receitas-aws
c21cc5aa95f3e8befb95e49028bf3ffab666015c
b4f496050f951c6ae0c5fa12e132c39315deb493
refs/heads/master
2021-05-18T06:50:34.798771
2020-03-31T02:59:47
2020-03-31T02:59:47
251,164,945
0
0
null
null
null
null
UTF-8
Python
false
false
317
#!/media/ciro/LOCALDRV/A_DESENVOLVIMENTO/AWS/receitas/paws/bin/python -tt # EASY-INSTALL-SCRIPT: 'euca2ools===3.4.1-2-g6b3f62f2','eulb-register-instances-with-lb' __requires__ = 'euca2ools===3.4.1-2-g6b3f62f2' __import__('pkg_resources').run_script('euca2ools===3.4.1-2-g6b3f62f2', 'eulb-register-instances-with-lb')
[ "cirobessa@yahoo.com" ]
cirobessa@yahoo.com
b5087cba420a169e92ca4dea27d5912494f98983
bc441bb06b8948288f110af63feda4e798f30225
/next_builder_sdk/model/flowable/process_instance_pb2.pyi
1446b44da5ebf6e494e856ef6de0019a4ef958e9
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
4,527
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
9b71083886b2eb5468addb3d494c4cdb06cbe3e5
b0df7ea65355163b910cd1c489e614f9ad7bd162
/elvis/tests/views/test_composer.py
184b30bd8192b1da669cb3b0bbde9c9d34eace97
[]
no_license
vee-L/elvis-database
d95c8b79676e2464a6634fb53fe64cb607999cb9
37efd7d8499e7a3e71803e77a45118034ac7ab89
refs/heads/master
2020-12-29T00:29:25.943699
2016-03-02T18:19:04
2016-03-02T18:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
from rest_framework.test import APITestCase from rest_framework import status from elvis.tests.helpers import ElvisTestSetup from elvis.models.composer import Composer class ComposerViewTestCase(ElvisTestSetup, APITestCase): def setUp(self): self.setUp_elvis() self.setUp_user() self.setUp_...
[ "a.g.parmentier@gmail.com" ]
a.g.parmentier@gmail.com
b44b4115a4253c1c2f1e11df13e541b6d66d9e5e
b76615ff745c6d66803506251c3d4109faf50802
/pyobjc-framework-Cocoa/Examples/AppKit/TableModel/TableModel.py
c18db1c4bfde160d1045f3d62ed389610fd74666
[ "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
3,727
py
"""TableModel.py -- Minimal example showing how to use an NSTableView. To build the demo program, run this line in Terminal.app: $ python setup.py py2app -A This creates a directory "dist" containing TableModel.app. (The -A option causes the files to be symlinked to the .app bundle instead of copied. This means ...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
42e0083e3d496154f33e912354bc621be53a5921
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_213/26.py
b11bbfd80ca710dd9665a8154928b1df3f9aaa37
[]
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
546
py
#!/usr/bin/python3 import math t = int(input()) for it in range(1, t+1) : N, C, M = [int(i) for i in input().split()] C = [0] * C P = [0] * N for _ in range(M): p, c = [int(i)-1 for i in input().split()] P[p] += 1 C[c] += 1 ans = max(C) tot = 0 for i in...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f300583fe17af0b3fcb1bdd040078714c4aa7a24
ac6711cf815fdad87721cea21a6ff45f5de82bb5
/src/youtime/extract_event_types.py
13a54d4d6b5059f12e61593cc77e292cecaa24fc
[]
no_license
flaviovdf/youtime
340913a08fc6bbe32bd7e1735704dbe3af9dc1b7
579dc3e76e1334947ae334b9dc0abffca2f31719
refs/heads/master
2021-01-19T02:39:44.260330
2016-08-02T22:42:16
2016-08-02T22:42:16
10,673,741
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
# -*- coding: utf-8 ''' Map reduce script which prints out every event type found in raw html files. ''' from __future__ import division, print_function from vod.mapreducescript import BaseMapper from vod.mapreducescript import Runner from youtime.mapred.ig import ListDir import re import sys LINKS_START_RE = r'Li...
[ "flaviovdf@gmail.com" ]
flaviovdf@gmail.com
e96856514513cc0ff5506d61484a1545849dcb64
24cee07743790afde5040c38ef95bb940451e2f6
/acode/abc290/c/ans.py
8116b7e9006d4a5e1615aac8c07c59b2f0e2d9c4
[]
no_license
tinaba96/coding
fe903fb8740d115cf5a7f4ff5af73c7d16b9bce1
d999bf5620e52fabce4e564c73b9f186e493b070
refs/heads/master
2023-09-01T02:24:33.476364
2023-08-30T15:01:47
2023-08-30T15:01:47
227,594,153
1
0
null
null
null
null
UTF-8
Python
false
false
181
py
N,K = map(int,input().split()) A = set(map(int,input().split())) ans = 0 for i in range(K): if i in A: ans += 1 else: print(ans) exit() print(ans)
[ "tinaba178.96@gmail.com" ]
tinaba178.96@gmail.com
59238eb7af3078ff2d54a97a9044d082df5ce954
53ed8b8d650439ba9aac764f5de5d96b67cbd77a
/1356. Sort Integers by The Number of 1 Bits 2.22 contest.py
0ca29272d272e0446ade5c594739c03dffe92b38
[]
no_license
IrwinLai/LeetCode
df49d152b4bf439c966afa53eecfe3022fb043ae
779c3a98d9052a12d319c0219324e5d0f5517fc6
refs/heads/master
2021-07-03T08:02:55.425285
2021-03-21T11:19:46
2021-03-21T11:19:46
221,848,796
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
class Solution: def sortByBits(self, arr: List[int]) -> List[int]: arr.sort(key = lambda x:(list(bin(x)[2:]).count('1'),x)) return arr
[ "noreply@github.com" ]
IrwinLai.noreply@github.com
4c7da0fd8751e40a703a88b60926493e8773e4a0
ecb448dd3622d7afa1a3ea59db9418b49bf06c15
/config.py
1ed7f25be30ec54ee680f14ef5da5055bd966336
[]
no_license
RZachLamberty/learnedleague
90238f9bcbfd2919f98810e4208d061a6ab21cf9
191af72de3dea8085e2138c6c696abf1c44a177f
refs/heads/master
2021-08-26T07:08:38.479449
2017-11-22T04:15:41
2017-11-22T04:15:41
111,635,431
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module: config.py Author: zlamberty Created: 2017-11-21 Description: simple configuration details Usage: <usage> """ URLS = {'base': 'https://www.learnedleague.com'} URLS['profile'] = '{}/profiles.php'.format(URLS['base']) URLS['login'] = '{}/ucp.php'.forma...
[ "r.zach.lamberty@gmail.com" ]
r.zach.lamberty@gmail.com
ccb69a02f0e239383aba54bc5b45beb10ced9da0
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/tests/storage/cases/test_KT1Jb1Q2Z6YzwFgRTFsPLQouxWrDRDnqo2Gs_babylon.py
2dd77ffd6ef039b9b73ad0f60a2fde375c2bf22f
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
1,170
py
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1Jb1Q2Z6YzwFgRTFsPLQouxWrDRDnqo2Gs_babylon(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None ...
[ "mz@baking-bad.org" ]
mz@baking-bad.org
897812931eaf58748376234936255068f38e3290
815da50296b63d191ebedd4564daa955b604c2c5
/app/core/migrations/0014_auto_20201010_1535.py
88a49014957bce74afc3a11293105c39c4bd348c
[]
no_license
saif43/inventory_app_api
762c2b97f95a6d382b4adcf0233dafb0f0f4283c
fc447d2dd355ee0f6bacd713d85795e5f35957fb
refs/heads/master
2023-02-02T16:11:52.435789
2020-12-20T06:38:15
2020-12-20T06:38:15
293,722,247
0
1
null
null
null
null
UTF-8
Python
false
false
381
py
# Generated by Django 2.2.16 on 2020-10-10 15:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0013_expense'), ] operations = [ migrations.AlterField( model_name='expense', name='amount', fi...
[ "saif.ahmed.anik.0@gmail.com" ]
saif.ahmed.anik.0@gmail.com
24b1674d73313973f1bf269c94816f99c7b7b332
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/InAIte/scripts/addons/run_from_blender.py
c9d3fe11e5e831b5ee2df0df2ac5db953fb917a2
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
for f in range(30): print("") import bpy import sys path = r'''C:\Users\Peter\Documents\Hills road\Computing\A2\COMP4\CrowdFX\scripts\addons''' sys.path.append(path) import imp from types import ModuleType done = [] def rreload(module): """Recursively reload modules.""" done.append(module) print("...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
4c3857ff6b8575fbf86090124dc280979b38b9e3
0da627b78feede9437c669d5776b79150aa12236
/datadog_checks_base/tests/test_utils.py
ee10b212675d66076679119292acc3310112bfa7
[]
permissive
ofek-public/integrations-core
92977b2c9092fbbe224e208052d5820af0a86e5a
1e580549576f668eed98f6c443fb907d8060847d
refs/heads/master
2021-10-23T20:42:54.090006
2021-10-12T08:25:46
2021-10-12T08:25:46
174,144,200
0
1
BSD-3-Clause
2019-03-06T12:48:26
2019-03-06T12:48:26
null
UTF-8
Python
false
false
1,548
py
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.utils.common import pattern_filter class Item: def __init__(self, name): self.name = name def __eq__(self, other): return self.name == other.name class TestPatternF...
[ "mpippi@gmail.com" ]
mpippi@gmail.com
f36f3ac892b21c7591b12856dadba518755f0df7
6ad03699c6b3a9721e1dfe4a7e507fc198b11122
/CodingDojo_Python/main1/apps/vinmyMVC/urls.py
5b6e15a0fecc5bcc6021cd7873c31db2b12cab25
[]
no_license
anishg1231/Coding_Dojo2016
9389c0b44c6905def87a00c83154f79fb6fd04ae
0b55abeab2acf3d2cff8c8ebf8bd0297f0dcebe7
refs/heads/master
2020-07-04T10:16:22.000965
2017-09-26T19:59:32
2017-09-26T19:59:32
74,075,734
0
0
null
2017-09-21T16:34:28
2016-11-17T23:13:17
Python
UTF-8
Python
false
false
165
py
from django.conf.urls import url # from django.contrib import admin from.import views urlpatterns = [ url(r'^$', views.index), url(r'^users$', views.show) ]
[ "agheewala1231@gmail.com" ]
agheewala1231@gmail.com
0a57d9b214868021c805bddbc157ac4afa26f163
4ba9a6274d78ff47bc00920be790b62390fc8f42
/16最接近三数之和.py
01bb14c56ddc2ed8e119018ec9a83ef75cf2d898
[]
no_license
wzwhit/leetcode
02b04f9f354de321a32d8e5b93f20a527100cca5
e732ee7e99a015a0d124677ab73fb58fc8e64b59
refs/heads/master
2020-04-26T03:02:06.380171
2019-08-23T04:04:42
2019-08-23T04:04:42
173,253,697
0
0
null
null
null
null
UTF-8
Python
false
false
1,262
py
# 给定一个包括 n 个整数的数组 nums 和 一个目标值 target。找出 nums 中的三个整数,使得它们的和与 target 最接近。返回这三个数的和。假定每组输入只存在唯一答案。 # 例如,给定数组 nums = [-1,2,1,-4], 和 target = 1. # 与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2). # 与15题三数之和类似,先排序,遍历数值指定第一个数,双指针找其他两个数,O(n*2)时间复杂度 class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int...
[ "1064951590@qq.com" ]
1064951590@qq.com
88928f7d840b15150ef08473935022503c5c42b7
8cbe4f97176a01d6a64ab33e32ad9896a0266670
/anna_code/icd/tally_icd.py
8670690730068b40ac46f52500abe95e6aea1fc6
[]
no_license
HongyuanWu/ukbb-1
33228c189acad5f28d3d892f761ebc6a29627c38
b52a431c0d35f4a5d49b0541a42a4a840d086e02
refs/heads/master
2022-03-31T04:13:55.367963
2020-01-21T20:50:54
2020-01-21T20:50:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
#tallies up the ICD codes and maps them to the corresponding disease meaning import argparse import pdb def parse_args(): parser=argparse.ArgumentParser(description="tallies up the ICD10 codes in UKBB subjects and maps them to corresponding disease meaning") parser.add_argument("--bulk_data",default="/oak/stanf...
[ "annashcherbina@gmail.com" ]
annashcherbina@gmail.com
e50a895a4e4f1d1d8dfd26c2dadb8f525d76fe1b
cbda89443b351bb2047180dad4e300c13dc3df7f
/Crystals/Morpurgo_all_atoms_Reorgs_qsplit_fittedscreens/Jobs/Sexithiophene/Sexithiophene_cation_neut_inner6_outer0/Sexithiophene_cation_neut_inner6_outer0.py
536071d1ff8de471cc57ec21adcb524aefb855ca
[]
no_license
sheridanfew/pythonpolarisation
080f52979f98d26360a46412a10c8e3f51ee4549
178e2684e9a239a8e60af5f7b1eb414ac5f31e92
refs/heads/master
2021-07-10T01:07:40.978790
2021-03-11T16:56:37
2021-03-11T16:56:37
96,101,351
0
0
null
2017-07-03T13:37:06
2017-07-03T10:54:52
null
UTF-8
Python
false
false
7,555
py
import sys sys.path.append('../../../../../') from BasicElements import * from BasicElements.Register import GetRegister from BasicElements.MoleculeFactory import ReadMoleculeType from BasicElements.MoleculeFactory import GetMolecule from BasicElements.Crystal import * from Polarizability.GetDipoles import get_dipoles,...
[ "sheridan.few@gmail.com" ]
sheridan.few@gmail.com
5b261526b086e0a06fc4c4f1c6fd256e3fe17416
ddbf241462454bc3f9cfef1ce8bb23c192959028
/Exercise3app/migrations/0008_idoldetail_profilepicture.py
44e287a30d216655873da0410a668227a1d3095b
[]
no_license
1loveanime/Exercise3
b772f493569e618e1b7640623b37b3983a59e349
be24bd857c83b162c50d2d79c6f6d081eee855e3
refs/heads/master
2020-05-04T15:40:17.035818
2019-04-08T08:16:34
2019-04-08T08:16:34
179,251,358
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
# Generated by Django 2.0.13 on 2019-04-05 06:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Exercise3app', '0007_auto_20190405_1058'), ] operations = [ migrations.AddField( model_name='idoldetail', name='pro...
[ "you@example.com" ]
you@example.com
f37443763bc2ce7a49a5093e73da2d36edcdb70d
918f0fdef0e9224aa1a0596479178618290055ec
/mmdet3d/core/utils/gaussian.py
854faaae338b963690fa252c07352893730def73
[ "Apache-2.0" ]
permissive
Tsinghua-MARS-Lab/futr3d
b7eb3a0c9d92a58759c9c43e96bfd024a2e3de96
9130d71e487bad47f5dbcffd696fe9e4a838104f
refs/heads/main
2023-07-24T15:40:00.121665
2023-07-06T05:50:45
2023-07-06T05:50:45
499,766,918
188
27
MIT
2022-06-19T10:42:03
2022-06-04T08:21:17
Python
UTF-8
Python
false
false
5,410
py
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np import torch def gaussian_2d(shape, sigma=1): """Generate gaussian map. Args: shape (list[int]): Shape of the map. sigma (float, optional): Sigma to generate gaussian map. Defaults to 1. Returns: ...
[ "noreply@github.com" ]
Tsinghua-MARS-Lab.noreply@github.com
e632ec110eaf54bc746540bb540d7a4b25058be4
99e1a15d8f605be456f17608843c309dd8a3260f
/src/Battle/Attack/EffectDelegates/Test/weather_charge_test.py
1348f25ef1250243bde067504b4016b14377e87d
[]
no_license
sgtnourry/Pokemon-Project
e53604096dcba939efca358e4177374bffcf0b38
3931eee5fd04e18bb1738a0b27a4c6979dc4db01
refs/heads/master
2021-01-17T23:02:25.910738
2014-04-12T17:46:27
2014-04-12T17:46:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,097
py
import unittest from Test.test_helper import * from Battle.battle_environment import BattleEnvironment from Battle.Attack.EffectDelegates.weather_charge_delegate import WeatherChargeDelegate from Battle.Weather.hail import Hail class isCharging(unittest.TestCase): """ Test cases of isCharging """ def se...
[ "cloew123@gmail.com" ]
cloew123@gmail.com
cca37808dff61c614a8ffa0a53ce7445d46586d1
52b5773617a1b972a905de4d692540d26ff74926
/.history/perfectsquare_20200504163734.py
c91482860fb04a05e7fec52a76aaff5c91867c61
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
import math def perfect(sq): root= int(math.sqrt(sq)) root1 = math.pow(root,2) print(root,'root') if root1 == sq: print(sq,'is a perfect square') print (root1,'square') # next = math.pow(root + 1,2) print (next,'next') else: # print(root1) print('It...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
02c81f6bbeec6953b1a9cd8cfcfe2c796e3abaf8
df353a4f73203a415b8c97a35e1957b12b42c6dc
/pylinnworks/inventory/inventory_view_column.py
51b0b7f552825e91781964c455ba8cd58ff52b97
[]
no_license
stcstores/pylinnworks
f65b2a6a6970f6b412faea2fba7b1dda66d13b5a
9953dc500f24714ace1b4aa1b6a1f91e95c12597
refs/heads/master
2021-01-12T00:38:00.465911
2017-02-14T13:32:51
2017-02-14T13:32:51
78,750,398
0
0
null
null
null
null
UTF-8
Python
false
false
2,232
py
import json from pylinnworks.api_requests import GetInventoryColumnTypes class InventoryViewColumns: def __init__(self, api_session): self.api_session = api_session data = GetInventoryColumnTypes(self.api_session).response_dict self.columns = [ InventoryViewColumn().load_from...
[ "luke@lukeshiner.com" ]
luke@lukeshiner.com
236952c23f96ef2de21895043214d525bcc43801
35b6013c1943f37d1428afd2663c8aba0a02628d
/asset/snippets/quickstart_list_saved_queries_test.py
d09c2c0c1a666869257d50e6ec0834744e76bc37
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
913
py
#!/usr/bin/env python # Copyright 2022 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "71398022+dandhlee@users.noreply.github.com" ]
71398022+dandhlee@users.noreply.github.com
66bb5026b12b0e70bdfcebfb6b60b960ab749923
e027847c96e45561acb729cd2ef07c23543c5fcf
/details/urls.py
ccca283484a65652b7cdd5ff8ed23180a8ea1439
[]
no_license
Shwetabhk/IFSC_REST_API
e897e6026f6d7631f89f75c397bac16d37965c30
0b372cbe9d7ea129b582ccc91a2ee03eb3bf8a15
refs/heads/master
2023-01-08T16:44:44.305233
2018-11-18T13:58:14
2018-11-18T13:58:14
158,086,644
1
2
null
2022-12-08T01:18:01
2018-11-18T13:27:59
Python
UTF-8
Python
false
false
315
py
from django.urls import path from .views import ListBankView, FromIFSCView, FromBankInfoView urlpatterns = [ path('banks/', ListBankView.as_view(), name="banks-all"), path('banks/<str:pk>/', FromIFSCView.as_view(), name="from-ifsc"), path('branches/', FromBankInfoView.as_view(), name="from-info"), ]
[ "shwetabh002@gmail.com" ]
shwetabh002@gmail.com
cf6b050da2190943aefbc32a344865b33fd46df8
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/4GT8pM8JQHW97bYzi_0.py
7245d889718695c74e6383d6f9d2857f7d1f4e09
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
4,400
py
""" In this challenge, write a funcion `loneliest_number` to find the last _Lonely_ number inside a sequence. A number is _Lonely_ if the distance from its **closest** Prime sets a new record of the sequence. Sequence = from 0 to 3 # Any number lower than 3 doesn't have a Prime preceeding it... # ....
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
df098c70e5e9610277c1fd593328f0af32a22eac
c33496682b760deac61fedecba3e82ce4e41dfde
/scripts/e392.py
59f5745ef67c7dee1f39ddf0120048050fa308e8
[ "MIT" ]
permissive
ferasalsaab/neuralnilm_prototype
c5e9cde02d475ac499b15fea62143e76adff07d0
2119292e7d5c8a137797ad3c9abf9f37e7f749af
refs/heads/master
2020-04-16T14:38:03.615279
2018-01-29T15:30:43
2018-01-29T15:30:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,236
py
from __future__ import print_function, division import matplotlib import logging from sys import stdout matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! from neuralnilm import (Net, RealApplianceSource, BLSTMLayer, DimshuffleLayer, Bidirectio...
[ "jack-list@xlk.org.uk" ]
jack-list@xlk.org.uk
209dbd78fabdc6ed18e03b22c3f3d591f216c2e3
7dc77414abe19554f0f7dd7241a45dcff116a0b4
/tools/_lib/client/bean/match.py
816e7081b02589a2623ddcb78a033e961beab550
[ "MIT" ]
permissive
zhongxinghong/Botzone-Tank2
fd543de5378681e49cb619e793b690a646524579
17fd00a57405ddd2f2bace58bab27800080b1fc7
refs/heads/master
2022-07-12T13:46:02.245187
2019-06-01T08:07:37
2019-06-01T08:07:37
183,338,511
12
0
MIT
2022-07-06T20:08:59
2019-04-25T02:10:29
Python
UTF-8
Python
false
false
5,696
py
# -*- coding: utf-8 -*- # @Author: zhongxinghong # @Date: 2019-05-05 16:54:33 # @Last Modified by: Administrator # @Last Modified time: 2019-05-23 19:20:13 __all__ = [ "RankMatchBean", "FavoriteMatchBean", "GlobalMatchBean", "GroupContestMatchBean", ] from ...utils import CachedProperty from...
[ "zxh2017@pku.edu.cn" ]
zxh2017@pku.edu.cn
bad4b40af06284ec5fcbc2e4d68a86ec15cf8fbd
172f089f84b6ac54ddac69a15937a81c62f681f5
/stucampus/dreamer/apps.py
f58ae4e02d02ca6b1653de8057f7f99d21e2a1ac
[]
no_license
szu-stu/stucampus
97877cedc7f69a2aeaa3d45a08f3d6a9afc0becc
bb5ceac5f29959be054680854d9b70fac6d8ff21
refs/heads/master
2020-04-11T04:30:12.512612
2017-09-14T01:59:53
2017-09-14T01:59:53
68,268,353
5
14
null
2016-11-24T14:21:45
2016-09-15T05:16:41
Java
UTF-8
Python
false
false
134
py
from __future__ import unicode_literals from django.apps import AppConfig class MemberInforConfig(AppConfig): name = 'dreamer'
[ "shonenada@gmail.com" ]
shonenada@gmail.com
5585eda572b4a5c9fa856ea9ee7651187f7d8b39
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/392/usersdata/328/71060/submittedfiles/formula.py
6657ec68f9412056d44075dcf2b90ae654a6d7aa
[]
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
140
py
# -*- coding: utf-8 -*- p=float(input('digite o valor de p:')) i=float(input('digite o valor de i:')) n=float(input('digite o valor de n:'))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1ff281353e11b4b6662f98a3f71d4c05eb39a0dd
00a9295409b78a53ce790f7ab44931939f42c0e0
/FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/external/importtools.py
d1f57acd0e3933e8abb47669916439e7cfd49c7d
[ "Apache-2.0" ]
permissive
klei22/Tech-OnBoarding-Class
c21f0762d2d640d5e9cb124659cded5c865b32d4
960e962322c37be9117e0523641f8b582a2beceb
refs/heads/master
2022-11-10T13:17:39.128342
2022-10-25T08:59:48
2022-10-25T08:59:48
172,292,871
2
3
Apache-2.0
2019-05-19T00:26:32
2019-02-24T03:50:35
C
UTF-8
Python
false
false
7,383
py
"""Tools to assist importing optional external modules.""" import sys from distutils.version import LooseVersion # Override these in the module to change the default warning behavior. # For example, you might set both to False before running the tests so that # warnings are not printed to the console, or set both to ...
[ "kaunalei@gmail.com" ]
kaunalei@gmail.com
95b6705746caa33b7e3603cea399dec652aab3a4
c5a618ab198a7cc93b35715af2575ad4932f8dbb
/4_cupy/b.py
80a4d2a0f08b4e565c4773bedea0d33d16597101
[]
no_license
JaeDukSeo/Personal_Daily_NeuralNetwork_Practice
f33808a0413e130beae27f80fb4cc524834a8cc5
f83ad23faefd726c647cc1d78021c25e086581be
refs/heads/master
2021-09-12T07:20:49.212032
2018-04-15T08:15:37
2018-04-15T08:15:37
114,972,816
1
0
null
null
null
null
UTF-8
Python
false
false
3,963
py
import urllib.request from io import BytesIO from PIL import Image import numpy as np import cupy as cp,time,sys import matplotlib.pyplot as plt from numba import jit, double s = 15 array_a = np.random.rand(s ** 3).reshape(s, s, s) array_b = np.random.rand(s ** 3).reshape(s, s, s) # Original code def custom_convolut...
[ "jae.duk.seo@ryerson.ca" ]
jae.duk.seo@ryerson.ca
108f24a025ed00feb7827caa7d0751e6eaf32500
cf6ddc0309c1744cd9cdc215fb89ff0db9dbb3d5
/pm25_server.py
33b4aaee2fb8e1c99d913eec1de1a19d4ea6c0b2
[]
no_license
nuaays/PM25_Tornado_Server
fa664ce0f3e263f17640caccbdd27c8d40d40e23
5365c3ebf4ba398f9632526a6bd680b78b05f6d9
refs/heads/master
2021-01-01T17:33:21.053134
2016-03-01T00:59:50
2016-03-01T00:59:50
19,991,027
1
0
null
null
null
null
UTF-8
Python
false
false
4,209
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Note: Setup on AWS EC2 Linux Server # App can get the PM2.5 JSON data from the URL: http://ec*-*-*-*-*.XX-XX-X.compute.amazonaws.com:8888/{CityName} # import tornado.ioloop import tornado.web import simplejson as json import pickle import requesocks as requests impor...
[ "nuaays@gmail.com" ]
nuaays@gmail.com
c5c2769c8a60dce833c7f7987e762b15fe10779f
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_12_01/aio/_configuration.py
aa91ae19fe510176d76bdcbc85e1334927efbb24
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
3,661
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" ]
test-repo-billy.noreply@github.com
3dce680d4ceb9a18b39ecb0f3a68da8548b52db9
d6833270e21fc14d8dd9d6624f8906ed7fe3ae86
/__init__.py
75c8c7fc38a56bbae4f7dba3b7a755888ffebea7
[ "MIT" ]
permissive
ChienDavid/pysoarlib
0f9c91424f7900d43b39e401f91274b0fdf21540
3c722d163acf3dd35c5be914bf200e23369e169a
refs/heads/master
2022-10-24T22:37:24.839494
2020-06-13T15:10:32
2020-06-13T15:10:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
""" Helper classes and functions for creating a soar agent and working with SML Depends on the Python_sml_ClientInterface, so make sure that SOAR_HOME is on the PYTHONPATH SoarAgent and AgentConnector are used to create an agent WMInterface is a standardized interface for adding/removing structures from working memor...
[ "mininger@umich.edu" ]
mininger@umich.edu
1167bed1c212000aae6cd1159b7b6e058211b35f
4c0328c7fa7805cdd196cf890695ec1a8a438a5f
/devel/lib/python2.7/dist-packages/pal_navigation_msgs/msg/_NavigationStatus.py
c70121c70c31134befda0f4f1d7eaa995f47241b
[]
no_license
SebsBarbas/iRob_KTH
d98dfce8692bdd4d32ce3a4d72daa8d022976c0a
c164c9d12efcab56b4871fc5bb5538df5849a42e
refs/heads/main
2023-01-23T10:49:59.073113
2020-12-04T18:49:53
2020-12-04T18:49:53
318,595,723
0
0
null
null
null
null
UTF-8
Python
false
false
5,556
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pal_navigation_msgs/NavigationStatus.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class NavigationStatus(genpy.Message): _md5sum = "37841f68...
[ "ssbl@kth.se" ]
ssbl@kth.se
94b35bc94a905e74d456dc0f2b033ad1229e6a50
a369fac78bd8e17250b2c8bfdca90be79a40c8f5
/utils/data.py
414d4d861997a3cac557f6ec0f1811645ddf3f7b
[ "BSD-3-Clause" ]
permissive
TrentBrick/flu-sequence-predictor
1713954462cdbf780752d45b6741bfee6b435eb9
7f760e2fcd410d3ac3ccb0594d23b3050dd7637b
refs/heads/master
2020-04-01T06:11:23.232342
2018-10-14T17:24:19
2018-10-14T17:24:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
import logging from datetime import datetime import pandas as pd from Bio import SeqIO logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) def load_sequence_and_metadata(kind='feather'): """ Returns the sequences as a list of SeqRecords, and metadata as a pandas DataFrame. """ sta...
[ "ericmajinglong@gmail.com" ]
ericmajinglong@gmail.com
897619095db24141b06b08b50073834a9da8b2d5
7a63ce94e1806a959c9c445c2e0bae95afb760c8
/tests/identity/test_getpasswordpolicy.py
bd1c7c4ee1c5b28c019e3efddbeaf8c5cb1b53ca
[ "MIT" ]
permissive
pklauke/pycamunda
20b54ceb4a40e836148e84912afd04d78d6ba0ec
3faac4037212df139d415ee1a54a6594ae5e9ac5
refs/heads/master
2023-08-18T10:23:30.503737
2022-04-17T18:34:40
2022-04-17T18:34:40
240,333,835
40
16
MIT
2023-09-12T13:29:08
2020-02-13T18:37:25
Python
UTF-8
Python
false
false
1,821
py
# -*- coding: utf-8 -*- import unittest.mock import pytest import pycamunda.identity from tests.mock import raise_requests_exception_mock, not_ok_response_mock def test_getpasswordpolicy_params(engine_url): get_policy = pycamunda.identity.GetPasswordPolicy(url=engine_url) assert get_policy.url == engine_u...
[ "peter.klauke@tu-dortmund.de" ]
peter.klauke@tu-dortmund.de
08dfe4473006f1d6885acc13cc160566b28f62af
6fce025097cebfd9d1dd37f6611e7fdfdbea90e6
/rainfields/small_z/data_loader_2chan_rainfields.py
64ea1d04b67476348375098d63a27dad65842d00
[]
no_license
ANU-WALD/pluvi_pondus
ec0439d19acdcf4fdf712d6b14a1714297d661b2
ff8680f7115ab2cb75138bf6705abb59618e47d1
refs/heads/master
2021-07-01T14:32:14.501631
2020-08-22T09:41:28
2020-08-22T09:41:28
138,804,652
0
0
null
null
null
null
UTF-8
Python
false
false
3,274
py
import xarray as xr import tensorflow as tf import numpy as np import datetime import os import random tf.compat.v1.enable_eager_execution() class gen: def __call__(self, fname, insert=None, jitter=False): insert = insert.decode("utf-8") dsg = xr.open_dataset(fname.decode("utf-8")) if ins...
[ "pablo.larraondo@anu.edu.au" ]
pablo.larraondo@anu.edu.au
ffb4e9f44290ff83bf40e425e87cbbeb0ee5f0a7
cb65766afee776ac0900e7a69b25f64bda098167
/ECG/gbdt_ecg.py
8953f890d331e67d2cc77fbcc0e4b498f30984cb
[]
no_license
guohuiGH/graduation_design
9c89836ee0f60f38a865e81deb4cdec20ed3183b
6432b733537e48169e9254eb057094df3cbbe52b
refs/heads/master
2020-01-23T21:51:18.073770
2017-05-30T07:37:39
2017-05-30T07:37:39
74,739,796
0
1
null
null
null
null
UTF-8
Python
false
false
5,108
py
#!/usr/bin/env python # encoding: utf-8 import sys import numpy as np sys.path.append("../script") from convert_input import Convert from validation import Validation from read_data import DataReader from sklearn.datasets import load_svmlight_file, dump_svmlight_file from sklearn.preprocessing import OneHotEncoder fr...
[ "=" ]
=
d4bb56a009e21e9988186c76845de844060e4d27
dfb53581b4e6dbdc8e3789ea2678de1e1c4b5962
/AI/DataAnalysis/Day02/demo07_locator.py
0ba4782d898f82e3c0115dc1fff6ee94dc1fe39f
[]
no_license
biabulinxi/Python-ML-DL
7eff6d6898d72f00575045c5aa2acac45b4b0b82
217d594a3c0cba1e52550f74d100cc5023fb415b
refs/heads/master
2020-06-01T09:13:17.314121
2019-06-08T03:59:36
2019-06-08T03:59:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
# -*- coding: utf-8 -*- # @Project:AID1810 # @Author:biabu # @Date:2019/3/14 15:47 # @File_name:demo07_locator.py # @IDE:PyCharm """ 刻度定位器 """ import matplotlib.pyplot as plt localtors = ['plt.NullLocator()','plt.MultipleLocator(1)','plt.MaxNLocator(nbins=4)'] plt.figure('Locator', facecolor='lightgray') for i, lo...
[ "biabu1208@163.com" ]
biabu1208@163.com
59e7acde93552feb3312d1da6072389b4b37e466
76f23cc69dc10c44bc7cf00b78e37db04c7a9c45
/datalad/typing.py
6965b406d07d10bdf77cf432ff9da4666ee844c8
[ "BSD-3-Clause", "MIT" ]
permissive
datalad/datalad
2d9c247344d340325ba84e7ab674ac320e57f30c
40332b5ad25bf8744f7399f6c3575f7d28f71384
refs/heads/maint
2023-09-04T11:03:02.264714
2023-08-10T15:56:19
2023-08-10T15:56:19
14,052,034
453
134
NOASSERTION
2023-09-14T19:10:18
2013-11-01T19:40:08
Python
UTF-8
Python
false
false
1,070
py
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
[ "git@varonathe.org" ]
git@varonathe.org
d255ea420184aca90fb9a290bc5f7d332696858e
a50f58524c34e7e8c46d302209e35dbe57a6f7e7
/docs/src/body_nested_models/tutorial005.py
f5f19b39046f4b32a0d10ecd09ffab858c96bbbb
[ "MIT" ]
permissive
kabirkhan/fastapi
532758b9855a55ed15a7f6793f2c8c4771638a09
9ca72f4ea1fc6f04b7d8d4e2f3c4d7da5f6c322e
refs/heads/master
2021-08-06T23:55:14.278165
2019-03-30T21:57:16
2019-03-30T21:57:16
169,940,473
1
0
MIT
2019-02-10T03:48:09
2019-02-10T03:48:08
null
UTF-8
Python
false
false
495
py
from typing import Set from fastapi import FastAPI from pydantic import BaseModel from pydantic.types import UrlStr app = FastAPI() class Image(BaseModel): url: UrlStr name: str class Item(BaseModel): name: str description: str = None price: float tax: float = None tags: Set[str] = [] ...
[ "tiangolo@gmail.com" ]
tiangolo@gmail.com
1cc3cd6f3c219fdde6b51488e6aeb4ad5478de2a
c9138a8e07049dc5a501c956903171c441c47722
/dynamo_consistency/signaling.py
bed86c735b2c3167a18d375b85b6c1dbae6258c2
[ "MIT" ]
permissive
SmartDataProjects/dynamo-consistency
6857aeede7b2f1cc7f574c6394debd2577b63722
78671ed1c26785c9feb3830f192faf826cebd4a4
refs/heads/master
2023-01-07T05:48:17.244486
2022-12-28T14:59:37
2022-12-28T14:59:37
111,568,921
0
2
MIT
2022-12-28T14:59:38
2017-11-21T15:45:24
Python
UTF-8
Python
false
false
522
py
""" A small module for handling signals """ import logging from . import config from . import summary LOG = logging.getLogger(__name__) def halt(signum, _): """ Halts the current listing using the summary tables """ LOG.warning('Received signal %i. Terminating', signum) # If disabled, leave ...
[ "dabercro@mit.edu" ]
dabercro@mit.edu
29ca50bd3e3f300f1c7635a4824b1f20dbb769e9
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5738606668808192_1/Python/Moriz/coin.py
c582cfe42ed5f23ea4247db4149daf19197835a4
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,446
py
import math import random import sys def allPrimeNumbers(n): sifter = [1]*(n+1) for i in range(2, n/2+1): sifter[2*i] = 0 sifter[0] = 0 sifter[1] = 0 for i in range(3, int(math.ceil(math.sqrt(n)))): if (sifter[i]): for j in range(i, n//i+1, 2): sifter[j*i...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
545299a98006229717a4beed11c72a502c3f03e6
ae4f39840d85f0f74948231e16306242effbe6a5
/src/targets/MIMXRT595/bltargetconfig.py
d68e23841c27215f55c91a35f3ff37242b7452b3
[ "Apache-2.0" ]
permissive
AlexShiLucky/NXP-MCUBootUtility
f04e1b514598a512200ecd5f552f9dad9cfec52e
3ff9fa203d667844f83a08c855fef85723d2612e
refs/heads/master
2020-09-09T21:40:55.117941
2019-09-23T03:22:15
2019-09-23T03:22:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,076
py
#!/usr/bin/env python # Copyright (c) 2014 Freescale Semiconductor, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # o Redistributions of source code must retain the above copyright notic...
[ "jie.heng@nxp.com" ]
jie.heng@nxp.com
27b3ca297134742550229cc851849fc704eb8c47
362849779c309782c2d1f2b88a8a921ad500a656
/Lesson_1/sockets/simple/blocking/example5_nonblock_server.py
765a8b675c94ddf126b7aaa5fe8a0e70dc87dad2
[]
no_license
zarkaltair/Advanced_python_ITVDN
b6d794cd64c782b391099a3b1fc579e227932069
911037ce171723eef4131c45113692ca5c7dadad
refs/heads/main
2022-12-28T21:38:53.814025
2020-10-17T10:21:58
2020-10-17T10:21:58
304,083,498
0
0
null
null
null
null
UTF-8
Python
false
false
496
py
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('127.0.0.1', 8888)) sock.listen(5) sock.setblocking(True) # sock.settimeout(5) # sock.settimeout(0) --> sock.blocking(False) # sock.settimeout(None) --> sock.blocking(True) try: client, addr = sock.accept() except socket.error: ...
[ "zarkaltair@gmail.com" ]
zarkaltair@gmail.com
6529ed72fc861532d92b493213ffd45a7d819cfc
f7c24e58d3655016f9309fedca4e73d39087c2b7
/src/models/users/decorators.py
734b5932913a1e2a8fd8f0091c247af34f95cc08
[]
no_license
VTHoop/homer-hokie-tailgate-2
9cd3923aa83839e8ac3404d1ca76a63099d8983f
c22755cdd12e24af1ba642752d12aad1d8b105da
refs/heads/master
2020-03-26T03:33:51.359726
2019-09-01T12:31:38
2019-09-01T12:31:38
109,769,493
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
from functools import wraps from flask import session, url_for, redirect def requires_login(func): @wraps(func) def decorated_function(*args, **kwargs): if 'user' not in session.keys() or ['user'] is None: return redirect(url_for('users.login_user', message='You need to be logged in to ac...
[ "patrick.hooper.m@outlook.com" ]
patrick.hooper.m@outlook.com
db4be10ca1123b588e12dcf090c3317d21cdc8f1
48d232cc6dcf57abf6fca9cbbef8943e189acb04
/network-delay-time.py
bf6c88cf24e470cf85127e8469ddd46f00a284f6
[]
no_license
csusb-005411285/CodeBreakersCode
dae796ba4262770e0a568e9c27597a041db0775c
8f218164e1b9e42c1a928d22ef5a76328abb66a2
refs/heads/master
2022-01-12T09:11:33.668338
2021-12-27T04:45:13
2021-12-27T04:45:13
232,490,141
1
1
null
2021-01-29T23:09:14
2020-01-08T06:02:11
Python
UTF-8
Python
false
false
903
py
class Solution: def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int: adj_list = defaultdict(list) heap = [] visited = set() max_cost = 0 self.build_adj_list(times, adj_list) heappush(heap, (0, k)) while heap: node = heappop(he...
[ "noreply@github.com" ]
csusb-005411285.noreply@github.com
a209f6b0a3977cff1c4335780a9e56f6149cb465
66b7a2fb1c573d8c26bcccd7b54b950dc13bd69c
/tests/test_audio.py
a6b9e9893cd9bdeb33b0bed42cd80663107f4323
[ "Apache-2.0" ]
permissive
jodal/pyspotify
020b12e486239414c25cdf7408471a4bcbadb182
575e0cbd6dfeee0b2e22a6c1d8b4ff3a14bb129a
refs/heads/master
2023-08-25T05:36:09.958002
2022-06-15T14:30:36
2022-06-15T14:30:36
1,103,479
62
13
Apache-2.0
2022-06-14T21:53:00
2010-11-22T20:31:34
Python
UTF-8
Python
false
false
2,049
py
from __future__ import unicode_literals import unittest import spotify class AudioBufferStatsTest(unittest.TestCase): def test_samples(self): stats = spotify.AudioBufferStats(100, 5) self.assertEqual(stats.samples, 100) def test_stutter(self): stats = spotify.AudioBufferStats(100, ...
[ "stein.magnus@jodal.no" ]
stein.magnus@jodal.no