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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d76c7ac7230899afca2ec03da09f81a9ab6d1f03 | b7939b343e52d2633857a93e19108dde49109008 | /setup_finish.py | 3bd9921ead93001611ff878fb4301620787d7fd6 | [] | no_license | hobson/safety-monitor | 040e74e0ac6d153b084860b3cdd6d9739fd0c10e | 122b09bc7f55302cdd5fda576358b56dcd8ee03e | refs/heads/master | 2021-01-22T05:28:23.350603 | 2012-04-15T04:45:09 | 2012-04-15T04:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import os
import glob
dist_dir = 'dist'
files = ['C:/Python25/lib/site-packages/wx-2.8-msw-ansi/wx/MSVCP71.dll',
'C:/Python25/lib/site-packages/wx-2.8-msw-ansi/wx/gdiplus.dll',
'./rev20.log',
'images']
for f in files:
os.system("cp -r "+f+" "+dist_dir+"/")
os.system("rm -... | [
"hobsonlane@gmail.com"
] | hobsonlane@gmail.com |
a1c2632983e12ba8f5a00201653014204fb6181f | 14a853584c0c1c703ffd8176889395e51c25f428 | /sem1/fop/lab9/static/strings.py | 5a11cfaee8f14accb2823f0183f03c5641998655 | [] | no_license | harababurel/homework | d0128f76adddbb29ac3d805c235cdedc9af0de71 | 16919f3b144de2d170cd6683d54b54bb95c82df9 | refs/heads/master | 2020-05-21T12:25:29.248857 | 2018-06-03T12:04:45 | 2018-06-03T12:04:45 | 43,573,199 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """
Most long messages displayed by the UI will be found here.
"""
from util.Color import *
STRINGS = {
'helpPrompt':
'Commands:\n' +
'\t%s - displays this prompt.\n' % Color.strong('help') +
'\t%s - adds a new student or assignment.\n' % Color.strong('add') +
... | [
"srg.pscs@gmail.com"
] | srg.pscs@gmail.com |
664537e820a66d7f15136e41787f159ac3ab7b86 | ba80ca143ba35fd481730786a27ebdb1f88ce835 | /algorithm/f/test/RomanNumerals.py | 50f14a15f212f49ed60fcc34487da6bd4748ab19 | [] | no_license | uiandwe/TIL | c541020b65adc53578aeb1c3ba4c6770b3b2e8b3 | 186544469374dd0279099c6c6aa7555ee23e42fe | refs/heads/master | 2022-02-15T08:33:07.270573 | 2022-01-01T15:22:54 | 2022-01-01T15:22:54 | 63,420,931 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | '''
I(1), V(5), X(10), L(50), C(100), D(500), M(1000)
1 -> I
2 -> II
3 -> III
4 -> IV
7 -> VII
10 -> X
39 -> XXXIX
246 -> CCXLVI
207 -> CCVII
1066 -> MLXVI
1776 -> MDCCLXXVI
1954 -> MCMLIV
'''
def roman(n):
dict = {
1000: 'M',
900: 'CM',
500: 'D',
400: 'CD',
100: 'C',
... | [
"noreply@github.com"
] | uiandwe.noreply@github.com |
c292451580a6c057267d586c1da1f9416fa0cefc | 882cc558e786a82f3c0f11d3b332b2c26c59e8d0 | /funker/handle.py | 0d0870e0e8a539cfdf27e1bc1354498910403167 | [
"Apache-2.0"
] | permissive | bfirsh/funker-python | 79fbff296a909cf58ae8817ab42c6f8df1432122 | e7e4f598a6ec2b0c14adde2f49af89aa88ec4dea | refs/heads/master | 2020-06-21T18:53:11.309645 | 2016-11-29T16:13:35 | 2016-11-29T16:13:35 | 74,773,577 | 9 | 2 | null | 2017-01-29T17:23:46 | 2016-11-25T16:31:02 | Python | UTF-8 | Python | false | false | 658 | py | import json
import six
from six.moves import socketserver
class HandleHandler(socketserver.StreamRequestHandler):
def handle(self):
kwargs = json.loads(six.text_type(self.rfile.read(), "utf-8"))
return_value = self.server.func(**kwargs)
return_str = json.dumps(return_value)
self.wf... | [
"ben@firshman.co.uk"
] | ben@firshman.co.uk |
55ffce84c42c62bceb73afa45c1838869dcec02b | 2fa102b20ea99d796cc3677c9305f1a80be18e6b | /cf_1154_A.py | 4edb3e6632103f67e9975c1130ae3888571ab9c4 | [] | no_license | pronob1010/Codeforces_Solve | e5186b2379230790459328964d291f6b40a4bb07 | 457b92879a04f30aa0003626ead865b0583edeb2 | refs/heads/master | 2023-03-12T11:38:31.114189 | 2021-03-03T05:49:17 | 2021-03-03T05:49:17 | 302,124,730 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | s = list(map(int, input().split()))
s.sort()
apb=s[0]
apc = s[1]
bpc = s[2]
apbpc = s[3]
c = apbpc - apb
b = bpc - c
a = apb-b
print(a,b,c) | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
3147f1152d915a56edd4b17322b801527d96c1ea | ed0dd577f03a804cdc274f6c7558fafaac574dff | /python/pyre/applications/Executive.py | 3205a28c66169bb035d90b03ef2457a2a234159b | [
"Apache-2.0"
] | permissive | leandromoreira/vmaf | fd26e2859136126ecc8e9feeebe38a51d14db3de | a4cf599444701ea168f966162194f608b4e68697 | refs/heads/master | 2021-01-19T03:43:15.677322 | 2016-10-08T18:02:22 | 2016-10-08T18:02:22 | 70,248,500 | 3 | 0 | null | 2016-10-07T13:21:28 | 2016-10-07T13:21:27 | null | UTF-8 | Python | false | false | 2,919 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~... | [
"zli@netflix.com"
] | zli@netflix.com |
027107bfc9df6f0ba6ae047043cc917f2ccf3edb | 9d7ae4ba781a06d96fb1f4cc51b42abcc0928da6 | /sqlalchemy_utils/listeners.py | 29970ffb5b90253f2ab092e7f3c4779177c3cd81 | [] | no_license | tonyseek/sqlalchemy-utils | 5a4d6d1ebaf1d72af04fce30ff5473210cfdbef3 | 0ef12b0a070694fb8ef4c177f9816305110114b1 | refs/heads/master | 2021-01-15T08:47:40.983766 | 2015-01-14T13:39:04 | 2015-01-14T13:39:04 | 29,289,223 | 1 | 0 | null | 2015-01-15T09:03:24 | 2015-01-15T09:03:24 | null | UTF-8 | Python | false | false | 6,855 | py | import sqlalchemy as sa
from .exceptions import ImproperlyConfigured
def coercion_listener(mapper, class_):
"""
Auto assigns coercing listener for all class properties which are of coerce
capable type.
"""
for prop in mapper.iterate_properties:
try:
listener = prop.columns[0].t... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
e093a9d168e7b73683ab2dcdbec945c443c0eedf | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/maintenance/azext_maintenance/tests/latest/test_maintenance_scenario.py | aba6a30c11220859b917d2ba8734bfbb18eeef80 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 12,891 | py | # --------------------------------------------------------------------------
# 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 cause incor... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
66b67eedee61c580be05e07398fad94dcf884e02 | 716af8750041594a729461117cf1c6bcf28ae850 | /ioflo/base/odicting.py | b0d13f7a6c6464977d94718b15e3e1780a8db544 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | systronix/ioflo | 66c21dd134e7c7554d64658b5d7844bf0e401ba1 | 0b4397efede138216b518c46cca2e29e8c032dc1 | refs/heads/master | 2020-12-26T09:36:25.491800 | 2014-03-14T21:15:31 | 2014-03-14T21:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,146 | py | """Ordered dictionary class.
Modified 2007, 2008 by Samuel M Smith
Modifications CopyRight 2007 by Samuel M smith
Based on various ordered dict implementations found in the wild
"""
#print "module %s" % __name__
class odict(dict):
""" Dictionary whose keys maintain the order they are added to the dict. Not
... | [
"smith.samuel.m@gmail.com"
] | smith.samuel.m@gmail.com |
d746fe4996011cd8732a10c60d661dbd2bc53eff | bb1e0e89fcf1f1ffb61214ddf262ba327dd10757 | /plotly_study/graph_objs/waterfall/increasing/__init__.py | bacb03f40d90248bd3aad08622978e5ad5d72d1e | [
"MIT"
] | permissive | lucasiscovici/plotly_py | ccb8c3ced89a0f7eccf1ae98551fa712460033fe | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | refs/heads/master | 2020-09-12T05:43:12.363609 | 2019-12-02T15:13:13 | 2019-12-02T15:13:13 | 222,328,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,415 | py | from plotly_study.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# color
# -----
@property
def color(self):
"""
Sets the marker color of all increasing values.
The 'color' property is a co... | [
"you@example.com"
] | you@example.com |
789c0fd16ea82c8264607f3c813fe7c1703ceb81 | 660e35c822423685aea19d038daa8356722dc744 | /party/category.py | a35b8795bf2973d2c3aa84d30eef643b06b6e910 | [] | no_license | saifkazi/tryton_modules | a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb | 94bd3a4e3fd86556725cdff33b314274dcb20afd | refs/heads/main | 2023-05-05T12:20:02.059236 | 2021-05-19T10:46:37 | 2021-05-19T10:46:37 | 368,768,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from sql.conditionals import Coalesce
from sql.operators import Equal
from trytond.model import (
ModelView, ModelSQL, DeactivableMixin, fields, Exclude, tree)
class Cat... | [
"saif.kazi76@gmail.com"
] | saif.kazi76@gmail.com |
cf53335750949034c20cc3ef5786467e683305df | 9811904ef72f0832c5fce44444f8f3b106dea165 | /admin_tools_stats/migrations/0001_initial.py | 36a32afa4b3c225c0ee7912bdce6010276ffb40e | [
"MIT"
] | permissive | areski/django-admin-tools-stats | 3b8d9f39ba41dbe733076e6d1f62c69d328637ff | 20fb537388895ed1f0913805bca18b97723b7dc1 | refs/heads/develop | 2023-02-22T18:53:01.672623 | 2020-01-16T14:48:21 | 2020-01-16T14:48:21 | 2,348,691 | 214 | 41 | NOASSERTION | 2023-02-11T17:57:17 | 2011-09-08T14:11:07 | Python | UTF-8 | Python | false | false | 3,865 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-13 11:29
from __future__ import unicode_literals
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"areski@gmail.com"
] | areski@gmail.com |
cbce07708e421612df9f4943eec5efae3a595746 | 2a68ce2f0f47370e2f57b9279cc8e1aab85e26da | /trojsten/dbsanitizer/tests.py | 45308305cf9ed8198fdb56412d4331066df8d443 | [
"MIT"
] | permissive | trojsten/web | 52007c3d575b21603bf205c1e7294a482eedbf85 | 97b7b3ae3ac46be786bde9c49a2cae6609dbf50f | refs/heads/master | 2023-08-17T23:30:16.857469 | 2023-07-30T16:31:34 | 2023-07-30T16:31:34 | 10,618,952 | 6 | 10 | MIT | 2023-09-04T19:09:09 | 2013-06-11T10:04:10 | Python | UTF-8 | Python | false | false | 2,543 | py | import datetime
from django.test import TestCase
from trojsten.contests.models import Competition, Round, Semester, Task
from trojsten.people.models import User, UserProperty, UserPropertyKey
from .model_sanitizers import (
GeneratorFieldSanitizer,
TaskSanitizer,
UserPropertySanitizer,
UserSanitizer,... | [
"mhozza@gmail.com"
] | mhozza@gmail.com |
15737f4817cf53b326364b6d29fe9fd568947d70 | 517d461257edd1d6b239200b931c6c001b99f6da | /Circuit_Playground/CircuitPython/libraries/adafruit-circuitpython-bundle-6.x-mpy-20211013/examples/emc2101_lut_example.py | e40521c8205807f188e5d8c7ce4b8be76f169be6 | [] | no_license | cmontalvo251/Microcontrollers | 7911e173badff93fc29e52fbdce287aab1314608 | 09ff976f2ee042b9182fb5a732978225561d151a | refs/heads/master | 2023-06-23T16:35:51.940859 | 2023-06-16T19:29:30 | 2023-06-16T19:29:30 | 229,314,291 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # SPDX-FileCopyrightText: 2020 Bryan Siepert, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import board
from adafruit_emc2101.emc2101_lut import EMC2101_LUT as EMC2101
i2c = board.I2C() # uses board.SCL and board.SDA
FAN_MAX_RPM = 1700
emc = EMC2101(i2c)
emc.manual_fan_spee... | [
"cmontalvo@southalabama.edu"
] | cmontalvo@southalabama.edu |
4445e59c151d0526998628fc5e6f48826e731efe | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_132556.93-032329.6/sdB_sdssj_132556.93-032329.6_lc.py | 40f5f972dc38f9ea75f637b807ff08d9e12c39a9 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[201.487208,-3.391556], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_132556.93-032329.6/sdB_sdssj_132556.93-032329.6_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
553f97fb014b172cd5365d8b22bf2ebbb4f7bd97 | 0d0b8236ff06027037d2a8a724d13a1866a9999c | /0x11-python-network_1/100-github_commits.py | 246b7b51fe87ce6eb9f1acda243b8b3831205621 | [] | no_license | Danucas/holbertonschool-higher_level_programming | 3f8e81a610bf80890280b764362b56ad8803e2df | b963d41af8bccf764dff67f80ea16f1184c0a96d | refs/heads/master | 2022-07-31T05:53:57.046789 | 2020-05-21T21:29:54 | 2020-05-21T21:29:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!/usr/bin/python3
"""
Python script to fetch an https request
"""
import requests
import sys
def main():
url = "https://api.github.com/repos/{}/{}/commits"
url = url.format(sys.argv[2], sys.argv[1])
response = requests.get(url)
commits = response.json()
for com in commits[:10]:
sha = co... | [
"danrodcastillo1994@gmail.com"
] | danrodcastillo1994@gmail.com |
4994f8e2ea7c14a3f49a1cc6ec20ccf81e3033c5 | 5779d964d5ee42b586697a640ff0f977e0fa1e55 | /synclient/model/paginated_results_of_submission_status.py | dfbe22b68739ed6283ac18d415da2dae69a78377 | [] | no_license | thomasyu888/synpy-sdk-client | 03db42c3c8411c8c1f8808e1145d7c2a8bcc3df1 | d1e19e26db5376c78c4ce0ff181ac3c4e0709cbb | refs/heads/main | 2023-02-28T09:33:12.386220 | 2021-02-02T15:09:59 | 2021-02-02T15:09:59 | 333,744,741 | 3 | 0 | null | 2021-01-30T12:10:50 | 2021-01-28T11:57:48 | Python | UTF-8 | Python | false | false | 7,401 | py | """
Platform Repository Service
Platform Repository Service - Sage Bionetworks Platform # noqa: E501
The version of the OpenAPI document: develop-SNAPSHOT
Contact: thomas.yu@sagebionetworks.org
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
i... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
77dbd599f3c0b21c50f8a630b45f745368c7c237 | 663d429e1f552ef958d37cfe4a0707354b544a9a | /rimi_linux_mysql/tcp_ip_socket/Io_test/io_select_test/test5.py | 5305eb8f5071b28540bcab38f841a1e131f9fe30 | [] | no_license | nie000/mylinuxlearn | 72a33024648fc4393442511c85d7c439e169a960 | 813ed75a0018446cd661001e8803f50880d09fff | refs/heads/main | 2023-06-20T07:46:11.842538 | 2021-07-15T13:46:43 | 2021-07-15T13:46:43 | 307,377,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import socket
import select
r = []
server = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server.bind(('127.0.0.1',28889))
server.listen(1)
r.append(server)
while True:
rlist,wlist,xlist = select.select(r,[],[])
for i in rlist:
if i is server:
con,add = i.accept()
print(a... | [
"1073438012@qq.com"
] | 1073438012@qq.com |
e6a4e9ddf7a5f4d895cab6048734f09fac8132c9 | f7a797f88c197bcab75d5906b1e5f655ef69ebec | /WDC 2021 Jan 31.py | 91bb7a672a0b22feda50cd41158b036b340a8f2f | [] | no_license | ramlaxman/wdc-2021-jan-advanced-python | 3bcac28c0d5d6bdbb53ef17dc5e9db4522c886cd | e96ef09b9a5e6366f780af7a030aecf9fb252a96 | refs/heads/main | 2023-04-13T04:51:26.329823 | 2021-02-23T07:32:43 | 2021-02-23T07:32:43 | 342,255,655 | 0 | 0 | null | 2023-04-04T00:15:56 | 2021-02-25T13:36:08 | null | UTF-8 | Python | false | false | 11,205 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
print('Hello, world!')
# # Agenda
#
# 0. About assignment, `==` and `is`
# 1. Basic data structures — how they work
# 2. `Decimal`
# 3. `namedtuple`
# 4. Variations on `dict`
# In[2]:
import sys
sys.version
# In[3]:
x = 100
y = 100
x == y
# In[4]:
x is y
... | [
"reuven@lerner.co.il"
] | reuven@lerner.co.il |
6aa870cef6388448f00bc19edcd80f5e465a6ca7 | fa4df5c5790b4c7af37c46ef82aeac1230e36a0e | /VRD/backend/factory/modifier_factory.py | b0b36c65ff883eab7821c81539e9fc22790904d7 | [] | no_license | Gorgious56/VRD | 32d548b6f2e096b151c49f83b80c48c351b1265d | f7d5bbb665ebaa4f3b1d274909c15fffb7b74bf5 | refs/heads/master | 2022-11-15T10:14:39.196704 | 2020-07-18T15:29:30 | 2020-07-18T15:29:30 | 280,684,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | import bpy
from typing import Iterable
class ModSettings:
def __init__(self, mod_type: str, mod_name: str, attributes: dict = None):
self.mod_type = mod_type
self.mod_name = mod_name
self.attributes = attributes
def add_modifier(
obj: bpy.types.Object,
settings: ModSettin... | [
"nathan.hild@gmail.com"
] | nathan.hild@gmail.com |
2986f1a06afe7c78517613346f8667e2a57ab23a | 525a0588ed3eb7ae5843e55522b6cc83ac2abd59 | /biodivhack/urls.py | 4febb1b8d565cc1db71a64ad24b5e976e748dafb | [] | no_license | dvoong/biodivhack | 1601d51dc2a34b5a8002bbf7efd3faccfd5b93e1 | 618ce01016d212ed0463957180ee06c0b9d62fa0 | refs/heads/master | 2020-12-24T16:23:42.746356 | 2015-06-20T19:22:04 | 2015-06-20T19:22:04 | 37,766,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | """biodivhack URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"voong.david@gmail.com"
] | voong.david@gmail.com |
413e356a52c9f144199c7e864701249b61464792 | 541b292bda3e78b384b785335f2e6399c4702015 | /hypergolix/cli.py | 3eeb7a409a3906221519c552d042d028e6c18e39 | [
"Unlicense"
] | permissive | Muterra/py_hypergolix | 7b674bf83a79d7d4a503794f63f6d3d6c9de54e0 | 6d9ce0e0e4473ad2dc715d984b83e6c277260288 | refs/heads/master | 2021-04-22T04:58:23.005851 | 2017-05-19T00:52:41 | 2017-05-19T00:52:41 | 53,230,798 | 80 | 5 | null | 2017-05-19T00:52:41 | 2016-03-06T00:53:19 | Python | UTF-8 | Python | false | false | 11,715 | py | '''
LICENSING
-------------------------------------------------
hypergolix: A python Golix client.
Copyright (C) 2016 Muterra, Inc.
Contributors
------------
Nick Badger
badg@muterra.io | badg@nickbadger.com | nickbadger.com
This library is free software; you can redistribute it and/o... | [
"badg@nickbadger.com"
] | badg@nickbadger.com |
79724f1ea72d380422927eb99113cb5d4c02866d | 4af454bced0f99e4ed8269d71e97284f0ef13afb | /gameserver/api/__init__.py | 7c75af4919b7a1a0716aba1e04d76f1cb60c1af0 | [] | no_license | L2jBrasil/L2py | c46db78238b4caf272a2399f4e4910fc256b3cca | d1c2e7bddb54d222f9a3d04262c09ad70329a226 | refs/heads/master | 2022-11-19T01:39:02.019777 | 2020-07-24T20:07:15 | 2020-07-24T20:07:15 | 292,115,581 | 1 | 1 | null | 2020-09-01T21:53:54 | 2020-09-01T21:53:54 | null | UTF-8 | Python | false | false | 38 | py | from .login_client import LoginClient
| [
"yurzs@icloud.com"
] | yurzs@icloud.com |
d1a50006728152eb14ee0200eb479b5264089dc0 | 28b1036824bfa4c3290d285090f073c3676a4389 | /my1stsite/settings/testing.py | 2d67d73d80806b9830c7bdded15661987ba366f5 | [] | no_license | zoie0312/my1stsite | ee0154409d2ac9ed1408f1b8736ef6a1547e82fb | b147102e332f789ee430e4666717189ae6e88d51 | refs/heads/master | 2021-01-22T04:41:15.006631 | 2013-11-29T02:36:30 | 2013-11-29T02:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
TEST_RUNNER = 'discover_runner.DiscoverRunner'
TEST_DISCOVER_TOP_LEVEL = root('..')
... | [
"vagrant@precise64.(none)"
] | vagrant@precise64.(none) |
c4681ca77b4913f01fadb65694fba7264ec93bb4 | f2b172f7c1dcf0ac28fe7465b5844b48facade18 | /12/1207/1207.py | 5d2fce8683456a4a169c17b65ac51d8606aae2cc | [] | no_license | 0gravity000/IntroducingPython | 2fde12485d0597e72a7da801a08d5048a47f2ff5 | 5d3281dbe37ed1a08d71cb6a36841781f9ac0ccf | refs/heads/master | 2023-07-19T02:53:23.081806 | 2021-09-30T01:51:44 | 2021-09-30T01:51:44 | 403,935,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # 12.7 Pythonコードのデバッグ
# デバックでもっとも単純なのは、文字列を表示すること
# vars()は、関数への引数を含むローカル変数の値を抽出する
def func(*args, **kwargs):
print(vars())
func(1, 2, 3)
func(['a', 'b', 'argh'])
| [
"0gravity000@gmail.com"
] | 0gravity000@gmail.com |
fbfb74e10109085225bb38751b05a62c682c4b98 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /701/701.insert-into-a-binary-search-tree.291646803.Wrong-Answer.leetcode.python3.py | 3687f08550163587025901f57d3b5e1f85a4cfef | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | class Solution():
def insertIntoBST(self, root, val):
root_head = root
root_val = TreeNode(val)
while True:
if val < root.val:
if not root.left:
root = root.left
else:
root.left = root_val
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
cce56bc46a072cd4a07a8d3c7507c78ed15de20d | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D98B/REQOTED98BUN.py | 830d94b77397c27e9f72d80b435724d8e803eb91 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 7,917 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD98BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 35},
{ID: 'PAI', MIN: 0, MAX: 1},
{ID: 'ALI... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
c07f51e53dc8e49f9eef1416a8fd830023679490 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901040051/day11/mymodule/main1.py | 6d64c07eba011299f1539a221de2d0c5df683f51 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 2,360 | py | import jieba
import re
import json
import sys
import collections
from collections import Counter
sys.path.append("c:")
# import stats_word
with open("mymodule/tang300.json", "r", encoding="utf-8") as file:
try:
read_data = file.read()
except ValueError as e:
print(e)
def stats_text_en(en,count)... | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
a8ddc101a423861f9bad5474af8d432f66c1eb80 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /RzrKedEonc3BJGhY5_12.py | a021d787d5af49db12fceee016b509e732de9173 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | """
**Mubashir** needs your help to plant some trees. He can give you three
parameters of the land:
* **width** of the land `w`
* **length** of the land `l`
* **gap** between the trees `g`
You have to create an algorithm to return the **number of trees** which can be
planted **on the edges** of the given... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
dd533c06790b50ac9ae03e9af75ebdd783e97e20 | e9983a186a30a461507064533aa7459d2df0a6ef | /afmformats/fmt_jpk/read_jpk.py | be85886b7d9d290cbb6119063e7ba20a213bf04d | [
"MIT"
] | permissive | ericpre/afmformats | f8f04647d51cf3d974660e36bcf67d031de8a7f8 | f783eb0ae8faae3919daef501e06eb8e43ec36ec | refs/heads/master | 2021-02-08T23:28:09.214311 | 2020-02-19T11:01:58 | 2020-02-19T11:01:58 | 244,210,475 | 0 | 0 | null | 2020-03-01T19:29:04 | 2020-03-01T19:29:03 | null | UTF-8 | Python | false | false | 18,939 | py | """Methods to open JPK data files and to obtain meta data"""
import pathlib
import shutil
import zipfile
import numpy as np
from . import read_jpk_meta as meta
from ..errors import FileFormatNotSupportedError
class ReadJPKError(FileFormatNotSupportedError):
pass
class ReadJPKColumnError(BaseException):
p... | [
"dev@craban.de"
] | dev@craban.de |
49b4f104d0a3ffacd0a6920cd0f12b858d6768e7 | 83b9910372a8246c947c7365b9eb39d9b20cde13 | /src/model/plainEffNet.py | c7dddc5608db4d3bd223d3d118df0da818b4556e | [
"MIT"
] | permissive | comword/TCD20-DP-DeepModel | 977394a9b1c9ce350efdf944919f034a28ff878a | 7dca097957b745cf6345d8ac218ff28f306a5218 | refs/heads/main | 2023-07-09T15:12:45.228999 | 2021-08-22T14:05:01 | 2021-08-22T14:05:01 | 338,325,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import tensorflow as tf
class PlainEffNet(tf.keras.Model):
def __init__(self, input_shape=[3, 15, 224, 224], backbone='EfficientNetB0',
MLP_DIM=256, n_classes=16, MLP_DROPOUT_RATE=0.4, **kwargs):
super(PlainEffNet, self).__init__(**kwargs)
self.img_input = tf.keras.layers.Input(i... | [
"comword@live.com"
] | comword@live.com |
cf3cf7a93963bbf5a088a5e1c72b59a4549b56c9 | 145f57f0418924d982444598f12b291f9c280657 | /roboticstoolbox/tools/models.py | 3fdfee260d919f196663e064d2178c7f06ebc3fa | [
"MIT"
] | permissive | HaoWangSir/robotics-toolbox-python | 3b56fd7abc094df1555f7c0aa8d015ef6c344c53 | a93165018e9fa165bde353193af2eb1534bba992 | refs/heads/master | 2022-12-18T22:41:18.642417 | 2020-09-18T01:15:13 | 2020-09-18T01:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import roboticstoolbox.models as m
def models():
"""
Display all robot models in summary form
``models()`` displays a list of all models provided by the Toolbox. It
lists the name, manufacturer, and number of joints.
"""
for category in ['DH', 'URDF', 'ETS']:
print(category + ':')
... | [
"peter.i.corke@gmail.com"
] | peter.i.corke@gmail.com |
ff539193b88130070464951bfe9d6c30cd6969a6 | 9833cd31d96f2c38fd4d6291d660c534cbee638e | /code/visualize-dataset.py | 2fbb6a72df8418329a2ba66bf6f4ea5f9ef0ff06 | [] | no_license | AspirinCode/drug-discovery-feature-selection | 35129cdeb6665db0d04111364925dc5f62dd0661 | 69ae43ef498aaf1e3523220547732c5d3f7f310e | refs/heads/master | 2020-03-27T20:17:39.215137 | 2018-07-20T06:20:11 | 2018-07-20T06:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | """
Visualize dataset:
* Feature importances using Extra Trees
* 2D plot using t-SNE with various perplexities
Execution time:
real 15m50.854s
user 14m30.858s
sys 0m30.375s
@author yohanes.gultom@gmail.com
"""
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import pandas
import os
from... | [
"yohanes.gultom@gmail.com"
] | yohanes.gultom@gmail.com |
ced609ff3700746a595cba6e854a51c4d16c80b6 | cfd7cd86b7098952910e7addf84ee96bbe463c4b | /iprPy-tools/process/process_structure_static.py | eeff1ef1535c0198bc273cd0230f24091a97cd67 | [] | no_license | vtran61/iprPy | 58519896abfd59bb7477bd8943e8a72ae0cce6cc | 53bc2b82863ac381710c3b20e90fd6f21db946f5 | refs/heads/master | 2021-01-14T14:23:16.459995 | 2016-03-30T19:32:11 | 2016-03-30T19:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,202 | py | import os
import glob
from DataModelDict import DataModelDict
def structure_static(xml_lib_dir):
calc_name = 'structure_static'
groups = os.path.join(xml_lib_dir, '*', calc_name, '*')
error_dict = DataModelDict()
for group_dir in glob.iglob(groups):
if os.path.isdir(group_dir):
... | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
1c6f5308ee148577f7f5e8389a9945efc8506c3e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/514.py | caadd24b565d411ff0959939b90e3e6c793fb7b7 | [] | 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 | 822 | py | #!/usr/bin/python
import sys
ns = [0]*31
s = [-1]*31
for i in xrange(1,31):
if i % 3 == 0:
ns[i] = i // 3
s[i] = i // 3 + 1
elif i % 3 == 1:
ns[i] = i // 3 + 1
s[i] = i // 3 + 1
elif i % 3 == 2:
ns[i] = i // 3 + 1
s[i] = i // 3 + 2
i = iter(map(int, sys.st... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e48daae6ec102de56d95f2ca83541aae1805e989 | d3e2a5fec27ae2272ff9191f45af84c8eacc7693 | /snakemakelib/graphics/axes.py | cefa25eb6f0b4fa0d06c5d8c7230925f1388ef4e | [
"MIT"
] | permissive | jfear/snakemakelib-core | c49b9308a66361722b75869b7f461e340fef188b | b2d3cf1ecb84d630d0cc04646f86859ccac7f4c1 | refs/heads/master | 2021-01-21T00:44:32.396115 | 2016-02-07T22:49:08 | 2016-02-07T22:49:08 | 50,690,606 | 0 | 0 | null | 2016-01-29T20:53:48 | 2016-01-29T20:53:48 | null | UTF-8 | Python | false | false | 4,374 | py | '''
Author: Per Unneberg
Created: Wed Dec 2 07:52:08 2015
'''
from . import utils
from snakemakelib.log import LoggerManager
smllogger = LoggerManager().getLogger(__name__)
__all__ = ['xaxis', 'yaxis', 'main', 'grid', 'legend']
def xaxis(fig, i=None, **kwargs):
"""xaxis - modify the xaxis
Args:
fig... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
686480212b8364d3ab57598f0cbbe63d471e740d | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/translation/azure-ai-translation-document/tests/asynctestcase.py | b1c7a3b9c6813d0e7969edfc55beae0aed351f78 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 4,458 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import os
from testcase import DocumentTranslationTest, Document
from azure.ai.translation.document import DocumentTranslationInput, TranslationTarget
c... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
ae7f88407fe7d2451eb8774356d45933f90af59a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03340/s635836646.py | 2c571bf6e84d7cac823b0f125ae5db4cf672e286 | [] | 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 | 296 | py | n = int(input())
A = list(map(int,input().split()))
ans = 0
l = 0
r = 0
bit = A[0]
total = A[0]
while True:
if bit == total:
ans += r-l+1
r += 1
if r == n:
break
total += A[r]
bit ^= A[r]
else:
total -= A[l]
bit ^= A[l]
l += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed684da54409de93089b30bba581a10520c3695c | d12c7b974285a9ca0d4ddd06bd43223a03db5126 | /bkup_files/switchdb2.py | de040cb1d162e22ed404edfb5a92408a5984534d | [] | no_license | xod442/sad | 6b0006bdeb0ca31dc383b15de8197433c1a21733 | 0a1179b2730ee5a47c6e2d888b8bd748c9a46a0a | refs/heads/master | 2020-04-25T06:38:26.934968 | 2019-02-25T21:31:20 | 2019-02-25T21:31:20 | 172,587,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | #!/usr/bin/env python
'''
Copyright 2016 Hewlett Packard Enterprise Development LP.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
U... | [
"rick@rickkauffman.com"
] | rick@rickkauffman.com |
85c357808c48b54144a7b87a95e364a7db447d23 | 3eeee2ab87695b5e9f209ba4601dbcebd5d00036 | /AndroidApp/app_hello.py | 8fc554a906525fa547bbd1abcd92ebc3908161f0 | [] | no_license | pangxie1987/WebApp | 483fbdd6c65f78e35ab2f1bd98701a7fb1fbb8f9 | 7d3e679bf1af4a5a4d4e89866789bb6f583eae71 | refs/heads/master | 2020-03-18T17:53:01.030177 | 2018-07-02T11:09:32 | 2018-07-02T11:09:32 | 135,057,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # -*- coding:utf-8 -*-
#qpy:kivy
import kivy
kivy.require('1.10.0')
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='hello,kivy')
TestApp().run() | [
"lpb.waln@outlook.com"
] | lpb.waln@outlook.com |
ecda99ac45a8c50659a0c956bd055386e192a895 | 27455af4306bdb2d470bc7aa6a412ffb7950e1e1 | /cask/accounts/models.py | cd6dbae3e1fef3870e44d171a3457f357b2ed62c | [
"Apache-2.0"
] | permissive | dcramer/cask-server | 7a647a31cb798273ee9d3d8c7e43c28e829dec80 | 32535229a907479c3645aa34b75755d3e2b12dda | refs/heads/master | 2022-12-09T10:00:57.842269 | 2018-08-30T15:50:44 | 2018-08-30T15:50:44 | 143,897,850 | 3 | 0 | Apache-2.0 | 2022-10-18T19:15:29 | 2018-08-07T16:08:56 | Python | UTF-8 | Python | false | false | 2,658 | py | from uuid import uuid4
from django.conf import settings
from django.contrib.auth.models import AbstractUser, BaseUserManager
from django.db import models
from django.utils.translation import ugettext_lazy as _
class UserManager(BaseUserManager):
use_in_migrations = True
def _create_user(self, email, passwor... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
e6179298367cbd15cd408ea1aff67299148fb15c | 531947701b18907ab1646bc1666ad3129f20ccec | /ttp/formatters/n2g_formatter.py | d22e2fdf8b02047f75ae55b30b9f059645d323e5 | [
"MIT"
] | permissive | dmulyalin/ttp | 45a0df04c089874f677670e1105dd2c544b095b2 | 483863e7966f9ab2be5e8cbd8b6316c82e380f1a | refs/heads/master | 2023-07-06T01:46:40.799147 | 2023-06-25T00:40:39 | 2023-06-25T00:40:39 | 216,000,389 | 322 | 44 | MIT | 2022-10-21T09:32:32 | 2019-10-18T10:33:52 | Python | UTF-8 | Python | false | false | 1,501 | py | import logging
log = logging.getLogger(__name__)
def n2g(data, **kwargs):
# load kwargs
module = kwargs.get("module", "yed")
method = kwargs.get("method", "from_list")
path = kwargs.get("path", [])
node_dups = kwargs.get("node_duplicates", "skip")
link_dups = kwargs.get("link_duplicates", "sk... | [
"d.mulyalin@gmail.com"
] | d.mulyalin@gmail.com |
31f519dcb85e758e5d904e064226e0b0b4d5cae2 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/wiColorJ/pyr_Tcrop255_p60_j15/Sob_k33_s001/pyr_2s/L4/step10_a.py | e5d17650ad1f771bdfb4e5864b7e912ecfa372d0 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,549 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
042568a8ee2acf18093ebb5b70a37e1db07273dd | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/o0v.py | fb34f375bd962237285840ba0c98437fa4444cb0 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
16d282009891a2c4adc9dddaac41212fbcddde77 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/services/transports/user_data_service_grpc_transport.py | ec4db4762b7980b03241c7cdc39e9b4037068321 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 4,394 | py | # -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
0d2350576ecf378e8d10e1a1b24cde6cb267ba87 | c7967ec500b210513aa0b1f540144c931ca687ac | /알고리즘 스터디/개인공부/BinarySearch/LIS2.py | 779a83856bf648e87df66face366164bdbfb6827 | [] | no_license | sunminky/algorythmStudy | 9a88e02c444b10904cebae94170eba456320f8e8 | 2ee1b5cf1f2e5f7ef87b44643210f407c4aa90e2 | refs/heads/master | 2023-08-17T01:49:43.528021 | 2023-08-13T08:11:37 | 2023-08-13T08:11:37 | 225,085,243 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # https://www.acmicpc.net/problem/12015
# https://www.acmicpc.net/problem/12738
#세그먼트 트리로도 구현 가능
import sys
from bisect import bisect_left
if __name__ == '__main__':
n_number = int(sys.stdin.readline())
numbers = list(map(int, sys.stdin.readline().split()))
lis = []
for n in numbers:
idx = bi... | [
"suns1502@gmail.com"
] | suns1502@gmail.com |
e998cf66ff60d424742afe61f74535b053faffa7 | cc9a87e975546e2ee2957039cceffcb795850d4f | /venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_internal/models/link.py | 141f2d2c35393534ffdd72be7baa027e24c5b1d5 | [] | no_license | CodeHunterDev/Belajar-Python | 304d3243801b91b3605d2b9bd09e49a30735e51b | 9dd2ffb556eed6b2540da19c5f206fedb218ae99 | refs/heads/master | 2023-03-19T22:12:46.330272 | 2020-02-04T08:02:00 | 2020-02-04T08:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,860 | py | # Copyright (c) 2020. Adam Arthur Faizal
import posixpath
import re
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip._internal.download import path_to_url
from pip._internal.utils.misc import (
WHEEL_EXTENSION, redact_password_from_url, splitext,
)
from pip._internal.utils.models import K... | [
"adam.faizal.af6@gmail.com"
] | adam.faizal.af6@gmail.com |
0cb2292823c2f8a42d1cff2808998981ab7b4e92 | 0ff91fa3bcd9cc115d5f9e73d82dca4d777143aa | /hackerrank/python/Strings/find-a-string-English.py | 59f84647150fc1b03d914bd883a9ebdb033c0039 | [] | no_license | Cekurok/codes-competition | 1b335851b3e07b58a276b29c72df16ddbeff6b80 | 834afa2cc50549c82c72f5b0285661cd81f9a837 | refs/heads/master | 2021-09-16T05:08:58.689661 | 2018-06-16T18:35:16 | 2018-06-16T18:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def count_substring(string, sub_string):
count = 0
subLen = len(sub_string)
strLen = len(string)
strLen -= subLen
for i in range(0,strLen+1):
if (sub_string == string[i:i+subLen]):
count += 1
return count | [
"rrangarajan.85@gmail.com"
] | rrangarajan.85@gmail.com |
353c0067d968cb6f3ae5b0d88ad3817aec595d26 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KbAdvertChannelResponse.py | 4713f34ba023cae3655b08598ab7e21203a5508d | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,569 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KbAdvertChannelResponse(object):
def __init__(self):
self._channel_id = None
self._memo = None
self._name = None
self._status = None
self._type = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
b3d499fb081e6e3f518bdc86e8f89fb91acb6430 | 754f2e0cc83a16efda4f7a9c76b34dceb082bec6 | /myblog/project/blog/models.py | 90f126c98a839a791c3f635a734c0273983e8491 | [] | no_license | veujs/myblog | b520c7742c6e761c851bbe9be13b235ef49587ea | 326613e1563d3e63af35604c6592f014b35177d2 | refs/heads/master | 2020-04-15T17:14:34.161131 | 2019-02-27T06:51:17 | 2019-02-27T06:51:17 | 164,866,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from django.db import models
# Create your models here.
from django.utils import timezone
from django.contrib.auth.models import User
class BlogArticles(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(User,related_name="blog_posts")
body = models.TextField()
publish... | [
"624040034@qq.com"
] | 624040034@qq.com |
eb7c616950b5af0ac046e3f4e20c015ceb71c733 | b1b77bb1ed47586f96d8f2554a65bcbd0c7162cc | /NETFLIX/NfWebCrypto/plugin/ppapi/ppapi/ppapi_ipc_untrusted.gyp | f1711feb5727c6987e611615c579f35dc1ca2e24 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | DanHefrman/stuff | b3624d7089909972ee806211666374a261c02d08 | b98a5c80cfe7041d8908dcfd4230cf065c17f3f6 | refs/heads/master | 2023-07-10T09:47:04.780112 | 2021-08-13T09:55:17 | 2021-08-13T09:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | gyp | # Copyright (c) 2012 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../native_client/build/untrusted.gypi',
'ppapi_ipc.gypi',
],
'conditions': [... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
0515d3547fc81361b6a0ce562a54675280caf442 | f4dcde4b7b91bf293d9f1f626ff2d609c29fbd79 | /common/configDB.py | 1cffde0d8724676b17179dc96b4add15aa6f93b5 | [] | no_license | hanzhichao/interfaceTest | ce182486336f276431f849e5b7b49978b22a37a2 | bc75261ed246e3b18433a98ab91700281dca45ca | refs/heads/master | 2020-03-08T02:17:52.004295 | 2018-04-03T05:28:26 | 2018-04-03T05:28:26 | 127,855,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | """数据库操作"""
import pymysql
import sys
sys.path.append("..")
import readConfig as readConfig
from common.Log import MyLog as Log
localReadConfig = readConfig.ReadConfig()
class MyDB(object):
global host, username, password, port, database, readConfig
host = localReadConfig.get_db("host")
username = localR... | [
"han_zhichao@sina.cn"
] | han_zhichao@sina.cn |
bdc0f69515b694afde031a265ab90f53cd14d3b0 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/USPS/DeliveryInformationAPI/TrackConfirmFields.py | b3eb3882fb518cf16065c175fb1206576e708c22 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,238 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# TrackConfirmFields
# Track a package sent via USPS and return tracking information with details in separate XML tags.
#
# Python version 2.6
#
####################################################################... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
017e7f2ed891206d9d845f61c7bdc5467026b6d5 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_148/218.py | d6a472b10295e9b40fed81edb93442d25c164db7 | [] | 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 | 848 | py | import sys
def prework(argv):
'''do something according to argv,
return a message describing what have been done.'''
return "nothing"
def once():
'''to cope once'''
n, x = [int(_) for _ in input().split()]
ss = [int(_) for _ in input().split()]
ss.sort()
cnt = 0
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3231720c659ace7a738b91243cdd3c9dcfc2283a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/p4c.py | 85276715e5d3795dbf4bcd582233ab98028579b1 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
f99b17b6e18c5be816cfc3a835d3e975bcc42435 | 85b402cd9e762b2749c978105ea362b10d335e5c | /219-unet_model_with_functions_of_blocks.py | 2fe553b815fa93ba3cdb1597aaf31e80f749f4f1 | [] | no_license | bnsreenu/python_for_microscopists | 29c08f17461baca95b5161fd4cd905be515605c4 | 4b8c0bd4274bc4d5e906a4952988c7f3e8db74c5 | refs/heads/master | 2023-09-04T21:11:25.524753 | 2023-08-24T18:40:53 | 2023-08-24T18:40:53 | 191,218,511 | 3,010 | 2,206 | null | 2023-07-25T07:15:22 | 2019-06-10T17:53:14 | Jupyter Notebook | UTF-8 | Python | false | false | 1,734 | py | # Building Unet by dividing encoder and decoder into blocks
from keras.models import Model
from keras.layers import Input, Conv2D, MaxPooling2D, UpSampling2D, concatenate, Conv2DTranspose, BatchNormalization, Dropout, Lambda
from keras.optimizers import Adam
from keras.layers import Activation, MaxPool2D, Concatenate
... | [
"noreply@github.com"
] | bnsreenu.noreply@github.com |
0c281ae6304261a2e7ecb3ffae3479c22088a9b6 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/ospfpseudointerface_f8951a0e4c7d97b10ce403458d4a9a66.py | e316b694921985962f4f1eb39cbe5286557d5a52 | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,993 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 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,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
697935f155a7bdd2c57c63062706724a1ee2d1c3 | c264153f9188d3af187905d846fa20296a0af85d | /Python/Python3网络爬虫开发实战/《Python3网络爬虫开发实战》随书源代码/scrapyseleniumtest/scrapyseleniumtest/items.py | 383caae92fceee363746119211b6714f0b0d361a | [] | no_license | IS-OSCAR-YU/ebooks | 5cd3c1089a221759793524df647e231a582b19ba | b125204c4fe69b9ca9ff774c7bc166d3cb2a875b | refs/heads/master | 2023-05-23T02:46:58.718636 | 2021-06-16T12:15:13 | 2021-06-16T12:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class ProductItem(Item):
collection = 'products'
image = Field()
price = Field()
deal = Field... | [
"jiangzhangha@163.com"
] | jiangzhangha@163.com |
60194a6d0d99911e72ce15440b1a894e43f1cb31 | c20a356220d3f66d49bbad88e6bd56a26aac1465 | /tf_test_4_4_2.py | 2c4f0eb10427a9ae2fd3635bea1995c04a5a6e4e | [] | no_license | liuwei881/tensorflow_example | 5f7164f94a3cec63b47c78764fd6a3023de3247e | 5bed141ee0c64f3e62d508a171ed735edbfbffff | refs/heads/master | 2020-06-12T04:27:02.016333 | 2019-05-30T09:58:05 | 2019-05-30T09:58:05 | 194,194,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | # coding=utf-8
import tensorflow as tensorflow
def get_weight(shape, lambd):
# 生成一个变量
var = tf.Variable(tf.random_normal(shape), dtype=tf.float32)
# add_to_collection 函数将这个新生成变量的L2正则化损失项加入集合
# 这个函数的第一个参数'losses'是集合的名字, 第二个参数是要加入这个集合的内容
tf.add_to_collection(
'losses', tf.contrib.layers.l2_regularizer(lambd)(va... | [
"liuweia@mail.open.com.cn"
] | liuweia@mail.open.com.cn |
c5b4385fbf41eb155af8c374bb450da4b85d0662 | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_nocturne/na_nocturne_mid.py | e6ba0b8402afbf89e98fd709a52024e8f59a786d | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,821 | py | from getratings.models.ratings import Ratings
class NA_Nocturne_Mid_Aatrox(Ratings):
pass
class NA_Nocturne_Mid_Ahri(Ratings):
pass
class NA_Nocturne_Mid_Akali(Ratings):
pass
class NA_Nocturne_Mid_Alistar(Ratings):
pass
class NA_Nocturne_Mid_Amumu(Ratings):
pass
class NA_Nocturne_Mid_Anivia(... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
820d18976ceb036fc4e268a237ec43a25998aa45 | f5f771cd8600c2aeb7fc9b192d9084ec5fdf3616 | /lux/extensions/rest/user.py | 8c79233356ca1acf51458387f80667140e8413dc | [
"BSD-3-Clause"
] | permissive | SirZazu/lux | 75fe9fde4ddaee1c9c17e55c6e6d07a289ea2f5b | d647c34d11d1172d40e16b6afaba4ee67950fb5a | refs/heads/master | 2021-01-21T19:40:46.536485 | 2015-06-02T16:30:18 | 2015-06-02T16:30:18 | 36,931,033 | 0 | 3 | null | 2015-10-09T14:08:26 | 2015-06-05T12:15:21 | Python | UTF-8 | Python | false | false | 4,779 | py | import time
from importlib import import_module
from datetime import datetime, timedelta
from pulsar import PermissionDenied, Http404
from pulsar.utils.pep import to_bytes, to_string
import lux
from lux.utils.crypt import get_random_string, digest
__all__ = ['AuthenticationError', 'LoginError', 'LogoutError',
... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
73e35aa72ced86eef9739609dfcb0a5cc7ba54f9 | 290394852b7fb70f791c6c4bb96141523ab96090 | /ExpertIdeas_WikipediaProxyServer_Bot_EmailTracking/ExpertIdeas/core/scripts/blockreview.py | 5d76775fa0189a1c5c2a336beb4f5c6c4e06d997 | [
"MIT"
] | permissive | ImanYZ/ExpertIdeas | da1564671f2cfe92d9de3fce68b82552cc6f33f7 | 23e23240854aef59108b16b63a567fffb2aabb69 | refs/heads/master | 2022-07-27T08:11:36.481824 | 2022-07-16T20:32:47 | 2022-07-16T20:32:47 | 144,018,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,664 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
This bot implements a blocking review process for de-wiki first.
For other sites this bot script must be changed.
This script is run by [[de:User:xqt]]. It should
not be run by other users without prior contact.
The following parameters are supported:
-
All other param... | [
"oneweb@umich.edu"
] | oneweb@umich.edu |
7b9ed189a2e8a042b0c9614fde530a77d4c760df | 897d3299ef2eb9747ed21b9857b3c5dfda841f97 | /cnns/graphs/distortion_graph/distortion2.py | 6514b5b161779ddc90b89a85fcc4f0f9c3ebc379 | [
"Apache-2.0"
] | permissive | stjordanis/bandlimited-cnns | 59a286cdae16fb07d4418ac2008c34f7849c35da | e2b20efd391a971e128d62acc1801c81dc1bf4d7 | refs/heads/master | 2020-07-03T07:01:17.732061 | 2019-08-07T23:33:40 | 2019-08-07T23:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,469 | py | import matplotlib
# matplotlib.use('TkAgg')
matplotlib.rcParams['pdf.fonttype'] = 42
matplotlib.rcParams['ps.fonttype'] = 42
import matplotlib.pyplot as plt
import csv
import os
print(matplotlib.get_backend())
# plt.interactive(True)
# http://ksrowell.com/blog-visualizing-data/2012/02/02/optimal-colors-for-graphs/
M... | [
"adam.dziedzi@gmail.com"
] | adam.dziedzi@gmail.com |
72e7f4e7fd84a20bfa099d9c9aae57b6505f71a2 | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_fit.py | 889a9f9b40d3cc5385c37d05a86cd79592d13c05 | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 802 | py | # Copyright 2017 Google Inc. 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 applicable law or ... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
a3206f4e1b6da273c4478040585ac8b75ed083b0 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/website_event_track_quiz/controllers/community.py | 7748a2dc1db19bac7ade948bd9df677a27aada67 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 4,477 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import math
from odoo import http
from odoo.addons.http_routing.models.ir_http import slug
from odoo.addons.website_event.controllers.community import EventCommunityController
from odoo.http import request
class Websi... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
23a549649db32408d622701f911b724d3231db54 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Data Scientist with Python - Career Track /15. Interactive Data Visualization with Bokeh/02. Layouts, Interactions, and Annotations/03. Nesting rows and columns of plots.py | 4a34c4b1509d2e81c41dfc8db282991c297c849f | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | '''
Nesting rows and columns of plots
You can create nested layouts of plots by combining row and column layouts. In this exercise, you'll make a 3-plot layout in two rows using the auto-mpg data set. Three plots have been created for you of average mpg vs year (avg_mpg), mpg vs hp (mpg_hp), and mpg vs weight (mpg_weig... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
29c223f3be9ebfbf847f6f23addf34933a47d3bc | 0ef8d98726078a75bc9e4d7001ca3eb4d0dd43f4 | /tests/queries/select/where/expressive_tests.py | 3e8f8a6776f5a5bc95892070529b102fc1e6346f | [] | no_license | fuzeman/byte | b32a5ff02cb5aa37aa9f86b0ec2fa1814fa8838e | cfd552583a20afded620058e18b950fe344b0245 | refs/heads/master | 2021-01-20T11:56:07.164270 | 2017-05-19T05:47:48 | 2017-05-19T05:47:48 | 82,638,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | from __future__ import absolute_import, division, print_function
from byte.collection import Collection
from byte.core.models.expressions.proxy import ProxyEqual, ProxyGreaterThanOrEqual, ProxyLessThan, ProxyNotEqual
from tests.base.models.dynamic.user import User
from hamcrest import *
users = Collection(User)
de... | [
"me@dgardiner.net"
] | me@dgardiner.net |
cdb6db06ca510e1725ee054c97aacb151761f4e3 | c065ff2a6a377aea2303b7b8482558049958a7ec | /spam/1562226369/tactile.tac | 10ddf48fe2a06c4f6386cf59674fe64707965772 | [] | no_license | waedbara/vision2tactile | 7bc9861eecb4247fd254ea58dc508ed18a03b1af | edbc9dfee61b4a4b1f0caebb2f16faef090dff32 | refs/heads/master | 2022-04-02T20:43:16.621687 | 2019-12-11T08:07:39 | 2019-12-11T08:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | tac | ,3620,3726,3686,3728,3416,3675,3764,3588,3589,3537,3511,3678,3384,3398,3293,3293,3452,3489,3004,2809,3696,3658,3585,3218,2013,2007,1854,2299,2611,3211,3418,2241,3186,3327,2730,3426,3364,3299,3049,3253,3472,3232,3331,3345,3255,3343,3312,2862,2718,3456,3442,3467,3351,2045,2046,2880,2034,2477 | [
"brayan.inf@gmail.com"
] | brayan.inf@gmail.com |
f606251b65cb39a42ee14338420816cf79dc988b | 67ebe31bd561bad451f4cc1274f89b06c3c4f1e5 | /ldLib/GUI/Button.py | 3ed66d1ee9e7f4b842bc93039004f422536b86dd | [] | no_license | Bobsleigh/LDEngine | 9c7e60a887c1c118fa5348aaf2891ea800bb26b6 | 110aaf53f7843e9f18579f156b38f57c0fcc0ba6 | refs/heads/master | 2020-12-24T10:23:58.963627 | 2020-08-25T20:42:33 | 2020-08-25T20:42:33 | 73,085,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | import pygame
from app.settings import *
class Button(pygame.sprite.Sprite):
def __init__(self, pos, size, text, callback):
super().__init__()
self.method = callback
self.fontSize = 24
self.buttonFont = pygame.font.SysFont(FONT_NAME, self.fontSize)
self.width = size[0]
... | [
"philippe.gendreau.2@ulaval.ca"
] | philippe.gendreau.2@ulaval.ca |
60f43fe61e1fa6fc5236f134ab1fd87d002bcfbd | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/05054/5054.py2.py | 62c2c79226369578246b4836b928612466f4dc1d | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
b35a279c534a0599d23de680ac9e6fad6a6ead3c | b46f5825b809c0166622149fc5561c23750b379c | /AppImageBuilder/app_dir/bundlers/apt/package_lists.py | 2a9ebdbd72908f76f446d8de376dd6127592ef65 | [
"MIT"
] | permissive | gouchi/appimage-builder | 22b85cb682f1b126515a6debd34874bd152a4211 | 40e9851c573179e066af116fb906e9cad8099b59 | refs/heads/master | 2022-09-28T09:46:11.783837 | 2020-06-07T19:44:48 | 2020-06-07T19:44:48 | 267,360,199 | 0 | 0 | MIT | 2020-05-27T15:42:25 | 2020-05-27T15:42:24 | null | UTF-8 | Python | false | false | 1,936 | py | # Copyright 2020 Alexis Lopez Zubieta
#
# 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, publi... | [
"contact@azubieta.net"
] | contact@azubieta.net |
40fa34f31d61c6e5ac53b3bd7e6e3f4adeb6fd93 | 79661312d54643ce9dcfe3474058f514b01bfbe6 | /model/main_window_8_btc.py | 7259dfb9dd2b86c0e24dfdde1dc30162d7187831 | [] | no_license | davis-9fv/Project | 5c4c8ac03f5bf9db28704e63de9b004f56a52f10 | f2bd22b3ac440b91d1d1defc8da9e2ba2e67265e | refs/heads/master | 2020-03-20T22:24:07.244521 | 2019-02-28T16:58:04 | 2019-02-28T16:58:04 | 137,796,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,750 | py | from sklearn.utils import shuffle
import datetime
from Util import algorithm
from pandas import read_csv
from sklearn.metrics import mean_squared_error
from math import sqrt
from Util import misc
from Util import data_misc
import numpy
def compare(y_test, y_predicted):
predictions = list()
for i in range(len(y... | [
"francisco.vinueza@alterbios.com"
] | francisco.vinueza@alterbios.com |
f4cfce085f2bee40324b89a91182e3026dbc3fec | 4fd84e0e1097d1153ed477a5e76b4972f14d273a | /myvirtualenv/lib/python3.7/site-packages/azure/servicefabric/models/cluster_health_report_expired_event.py | d09441c8e9559e4bdf055e5d5613c9698a8815f4 | [
"MIT"
] | permissive | peterchun2000/TerpV-U | c045f4a68f025f1f34b89689e0265c3f6da8b084 | 6dc78819ae0262aeefdebd93a5e7b931b241f549 | refs/heads/master | 2022-12-10T09:31:00.250409 | 2019-09-15T15:54:40 | 2019-09-15T15:54:40 | 208,471,905 | 0 | 2 | MIT | 2022-12-08T06:09:33 | 2019-09-14T16:49:41 | Python | UTF-8 | Python | false | false | 3,889 | 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 ... | [
"peterchun2000@gmail.com"
] | peterchun2000@gmail.com |
a0c559f5b6acd5920910dc1440eafcf7205673ca | 4461af13a595982b2940e45796c336d3ba7a14ac | /test/dygraph_to_static/test_word2vec.py | a17bf5e5f9e57fa8162caad888b2173d1b1ac837 | [
"Apache-2.0"
] | permissive | Xreki/Paddle | 6659c3c5ad727bc071a302e510c9da202d4f1bf4 | 5e1ee1064052ffe285bc18e3fdeb5667824f1c20 | refs/heads/develop | 2023-08-31T18:23:12.073614 | 2023-04-24T03:44:36 | 2023-04-24T03:44:36 | 66,993,970 | 2 | 0 | Apache-2.0 | 2023-04-24T05:17:59 | 2016-08-31T02:08:14 | Python | UTF-8 | Python | false | false | 9,658 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | Xreki.noreply@github.com |
c1d6d7777b160f039547f7ae9d7740a8f555281d | 9e8e8026e575bbe791770ec4b8630c818b1aab61 | /backend/perfil/models.py | d07743edf026397cb4aa4515b4a336db51bd98fc | [
"MIT"
] | permissive | marcusgabrields/gabr | d4b47e0df35dfca4e8ce1e657c0e4e77cded18ec | 95ade6094ed7675ca267f2f16f77f0033eae9c1f | refs/heads/master | 2023-01-12T16:25:16.610427 | 2020-04-16T23:55:37 | 2020-04-16T23:55:37 | 249,736,516 | 0 | 0 | MIT | 2023-01-05T16:58:31 | 2020-03-24T14:53:42 | Python | UTF-8 | Python | false | false | 542 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from common.models import TimeStampedModel
class Perfil(TimeStampedModel):
slug = models.SlugField(_('slug'), max_length=300, unique=True)
user = models.OneToOneField(
'users.User',
on_delete=models.CASCADE,... | [
"marcusgabriel.ds@gmail.com"
] | marcusgabriel.ds@gmail.com |
99a637e6bb615e7ca38345ad4eab10e7d6cfd66b | 3cadd7873d22de23a2b6ba030a422f7343ca0622 | /cloudbench/version.py | 42b8659f2dbcf9ba38eb0d49b555b7cfc2b3e152 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wo083053253/cloudbench | 6620fb1e58e1cc638c7cb2a6032aa0ab10944e95 | df3f7d4e9ce1465d43b57c894da3623aad58c926 | refs/heads/master | 2021-05-03T08:50:23.780043 | 2014-05-30T11:05:31 | 2014-05-30T11:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | #coding:utf-8
__version__ = "0.14.1"
| [
"thomas@orozco.fr"
] | thomas@orozco.fr |
159149a9c5d8223eb83ff1f41461f63ee257711c | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119205543.py | 8083e5043cdb9a60da3d9f28cc65246da25b9252 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,809 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
03d43e7eadc35e0ce127897a908e6e2af12eedee | 832eec4d9e618f9f3bdaeec259a79884283ac817 | /books/admin.py | 53abe34d35bd74067b5ad741bcf89a34861fc492 | [] | no_license | mconstantin/books-project | d0a5035014c9e61c5331b64b8879fce694e06540 | aa9acc64bf9a4bd654e98eaad5afbc23adbea312 | refs/heads/master | 2021-01-23T04:28:44.006164 | 2017-03-26T00:51:53 | 2017-03-26T00:51:53 | 86,197,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from django.contrib import admin
from .models import Publisher, Author, Book, BookCategory, BookFormat
# class BooksInLine(admin.StackedInline):
class BooksInLine(admin.TabularInline):
"""
Example of modifying the admin interface to show a list for a model in tabular form (multicolumn).
"""
model = Bo... | [
"constantinm@sharplabs.com"
] | constantinm@sharplabs.com |
743e3a712fdca05eef0079ce7d5c9ebefe17394d | b3d655616ec8a7caa12e0c65d89519dd0b055802 | /prediction.ml/tensorflow/src/main/python/model_server_python3.py | e8e448693cfe25b3fc88faa93b08236dd6b3e5c4 | [
"Apache-2.0"
] | permissive | akram-mohammed/pipeline | 0d295e62ffa8bfc09896170d6fb5fa6efcde4a0a | 5d97c8c66b8157230f98db3b0d2b69e446864a2f | refs/heads/master | 2021-01-23T12:54:48.491126 | 2017-06-02T21:42:47 | 2017-06-02T21:42:47 | 93,211,853 | 1 | 1 | null | 2017-06-02T23:50:52 | 2017-06-02T23:50:52 | null | UTF-8 | Python | false | false | 10,982 | py | #!/usr/bin/env python3
import os
import sys
import tornado.ioloop
import tornado.web
import tornado.httpserver
import tornado.httputil
import tornado.gen
import importlib.util
from grpc.beta import implementations
import asyncio
import tensorflow as tf
import predict_pb2
import prediction_service_pb2
import tarfile
im... | [
"chris@fregly.com"
] | chris@fregly.com |
7788549a3662ca1e2a17c904ac5f22ecd49ac69b | 67416177cd9e221db0b20332c02dcc7680fcdd0e | /이것이 취업을 위한 코딩 테스트다/Chapter06_Sorting/Q02.py | 5f904fd8060abd698a7a21fca906fefb6368fa34 | [] | no_license | svclaw2000/Algorithm | 4fe5e3bf50888b974df4f3d87387a003b5249352 | b6d92cf0d18997e9e973d5f731ecb44a7935d93a | refs/heads/main | 2023-06-21T21:50:13.089719 | 2021-07-11T14:18:47 | 2021-07-11T14:18:47 | 363,825,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | # 00:02 / 00:20
N = int(input())
student = []
for _ in range(N):
inp = input().split()
student.append((int(inp[1]), inp[0]))
student.sort()
print(*[s[1] for s in student]) | [
"svclaw2000@gmail.com"
] | svclaw2000@gmail.com |
24e45112ef804b859c5fac4694945f26f9faf26d | f1738cd603e0b2e31143f4ebf7eba403402aecd6 | /ucs/test/ucs-test/tests/52_s4connector/s4connector.py | 4931adb730b3043036fbd0357bf0b3e45c5f64b7 | [] | no_license | m-narayan/smart | 92f42bf90d7d2b24f61915fac8abab70dd8282bc | 1a6765deafd8679079b64dcc35f91933d37cf2dd | refs/heads/master | 2016-08-05T17:29:30.847382 | 2013-01-04T04:50:26 | 2013-01-04T04:50:26 | 7,079,786 | 8 | 6 | null | 2015-04-29T08:54:12 | 2012-12-09T14:56:27 | Python | UTF-8 | Python | false | false | 3,597 | py | import ldap
import univention.config_registry
from ldap.controls import LDAPControl
import ldap.modlist as modlist
import time
import ldap_glue_s4
import univention.s4connector.s4 as s4
configRegistry = univention.config_registry.ConfigRegistry()
configRegistry.load()
class S4Connection(ldap_glue_s4.LDAPConnection):
... | [
"kartik@debian.org"
] | kartik@debian.org |
b5c44cbbab50c96d3ed02f99623993dae708a4fa | fce280d1a9ef78784d28409c47865ec92402fad4 | /019Echarts/Demo_Geo.py | b5e92a127be827c15759193c16ca3deb9aa35c9c | [] | no_license | angus138/--- | 204fa9f5713fc3cee1ec814b0d600e5e4f413ab1 | 39ea3e51f32e093c01afae6984363afaaa5e120f | refs/heads/master | 2020-12-12T13:39:56.871807 | 2020-01-15T11:06:20 | 2020-01-15T11:06:20 | 234,139,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # coding:utf-8
"""
create on Jan 2, 2020 By Wayne Yu
Function:
基于Pyecharts的Geo图
"""
from pyecharts.faker import Faker
from pyecharts import options as opts
from pyecharts.charts import Geo
from pyecharts.globals import ChartType, SymbolType
from pyecharts.charts import Map
def geo_base() -> Geo:
c = (
G... | [
"ieeflsyu@outlook.com"
] | ieeflsyu@outlook.com |
4f5f46a2c9ca7140338f82554c8064b407e1d2d1 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/CSS/juejin_1727.py | f64f660ab9993897acb4bd4196895de5b9c70bcc | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,429 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6897739815920500743", "article_info": {"article_id": "6897739815920500743", "user_id": "3790771822799240", "category_id": "6809637767543259144", "tag_ids": [6809640394175971342], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "一篇... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
305c1d5c727d5961cbda6d9218376a6e0b1f7e8c | 7944d2fd5d885a034347a986f3114f0b81166447 | /facebookads/adobjects/transactioncurrencyamount.py | a8258dea5f141931966835b4349ea71a84f93500 | [] | no_license | it-devros/django-facebook-api | 4fd94d1bbbff664f0314e046f50d91ee959f5664 | ee2d91af49bc2be116bd10bd079c321bbf6af721 | refs/heads/master | 2021-06-23T06:29:07.664905 | 2019-06-25T07:47:50 | 2019-06-25T07:47:50 | 191,458,626 | 2 | 0 | null | 2021-06-10T21:33:08 | 2019-06-11T22:22:47 | Python | UTF-8 | Python | false | false | 1,864 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"it-devros@outlook.com"
] | it-devros@outlook.com |
1fbaf1949e4010bbf72b7c8c23c1bcba96b43012 | 0b9e588b3d6ddf95d87a0a0f02d10ef6efcccf51 | /eduapi/analytics/models.py | d9d7a52d0e60648209033a8328d81b20c002dbb3 | [] | no_license | omni360/inspiration-edu-api | b5d07a7fe3a473689d5323e60e6f88dd3d6fb4cb | 6e1bbf8d895082d4c44af4ae35b9f5aa5cc9addc | refs/heads/master | 2022-01-22T23:30:09.879433 | 2016-04-28T02:02:46 | 2016-04-28T02:02:46 | 57,559,736 | 0 | 0 | null | 2022-01-06T22:24:03 | 2016-05-01T06:35:12 | Python | UTF-8 | Python | false | false | 30 | py | from api.models import Project | [
"frida.cai@autodesk.com"
] | frida.cai@autodesk.com |
ff93921ebd8c703b4a92793b7feac4e91c7c11f6 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/google/protobuf/unknown_fields.py | 172028c1fce1769a75be9b83aa83ec41ca749cf7 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/b0/c6/91/ac8a4d83d0130a6cf50b629b1194b74f0949be3b5bca5aa9b102cfcf97 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
6306d40d8de8fa5309662dd4786bb511bd60a1f6 | 4182f5c371c15b8f79bc744b8bed0965ffd13c79 | /backend/pytx/views.py | fc5d4aa8a7a85c01fd20e630902f9ff9259702e4 | [] | no_license | pytexas/PyTexas2015 | f4db37a7d43ee523272311139f480189ecba02cd | f4648581a197e2f9387f61c2b94a8f178298becc | refs/heads/master | 2021-05-30T18:47:47.431250 | 2015-11-21T20:52:43 | 2015-11-21T20:52:43 | 17,159,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import os
import subprocess
from django import http
from django.views import static
from django.conf import settings
from pytx.utils import index_generator
def favicon(request):
return static.serve(request, 'favicon.ico', settings.FRONT_ROOT)
def default_conf(request):
return http.HttpResponseRedirect(setting... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
a6faf47fb558554f6674362748930f2d99227172 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-sae/aliyunsdksae/request/v20190506/UpdateNamespaceRequest.py | dccc5256a59542e159be6e9d83c4f970cab07b3c | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,483 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ed26c4174c273e492eba64f98d9537ec1ad20864 | f3d38d0e1d50234ce5f17948361a50090ea8cddf | /CodeUp/파이썬 풀이/1230번 ; 터널 통과하기 2.py | 3d02cf7a4fd78a7e1ee60df5860d0451ae9e76c7 | [] | no_license | bright-night-sky/algorithm_study | 967c512040c183d56c5cd923912a5e8f1c584546 | 8fd46644129e92137a62db657187b9b707d06985 | refs/heads/main | 2023-08-01T10:27:33.857897 | 2021-10-04T14:36:21 | 2021-10-04T14:36:21 | 323,322,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | # https://codeup.kr/problem.php?id=1230
# readline을 사용하기 위해 import합니다.
from sys import stdin
# 세 터널의 높이 a, b, c를 공백으로 구분해 입력합니다.
# 각각 int형으로 변환합니다.
a, b, c = map(int, stdin.readline().split())
# 세 터널의 높이 a, b, c를 차례대로 170 보다 큰 지 검사해봅니다.
# 첫 번째 터널의 높이가 170 초과라면
if a > 170:
# 두 번째 터널의 높이가 170 초과라면
if b > 170:... | [
"bright_night_sky@naver.com"
] | bright_night_sky@naver.com |
a19e8ca6e4d0aacdea80fd56b4f663d4369843c5 | 9795dda526b3436de26c73353021a0651a6762f9 | /pyefun/typeConv.py | 6d16e72c8caf0defa6bb38fc430f6bf3af2868de | [
"Apache-2.0"
] | permissive | brucekk4/pyefun | 891fc08897e4662823cf9016a680c07b31a8d5be | 1b4d8e13ee2c59574fded792e3f2a77e0b5e11a2 | refs/heads/master | 2023-07-10T03:54:11.437283 | 2021-08-23T17:46:19 | 2021-08-23T17:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | """
.. Hint::
类型转换
.. literalinclude:: ../../../pyefun/typeConv_test.py
:language: python
:caption: 代码示例
:linenos:
"""
from .timeBase import *
import json
def 到文本(bytes):
return str(bytes, encoding="utf-8")
def 到字节集(str):
return bytes(str, encoding='utf-8')
def 到数值(val):
return float(... | [
"ll@163.com"
] | ll@163.com |
41017bba584e3df78520c70725466e1e02d28e2d | ad0e853db635edc578d58891b90f8e45a72a724f | /python/ray/train/lightning/__init__.py | a827dcd064ab3cc2b3b8ce362535db6e20395342 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | ericl/ray | 8c93fc713af3b753215d4fe6221278700936e2db | e9a1c6d814fb1a81033809f56695030d651388f5 | refs/heads/master | 2023-08-31T11:53:23.584855 | 2023-06-07T21:04:28 | 2023-06-07T21:04:28 | 91,077,004 | 2 | 4 | Apache-2.0 | 2023-01-11T17:19:10 | 2017-05-12T09:51:04 | Python | UTF-8 | Python | false | false | 638 | py | # isort: off
try:
import pytorch_lightning # noqa: F401
except ModuleNotFoundError:
raise ModuleNotFoundError(
"PyTorch Lightning isn't installed. To install PyTorch Lightning, "
"please run 'pip install pytorch-lightning'"
)
# isort: on
from ray.train.lightning.lightning_checkpoint import... | [
"noreply@github.com"
] | ericl.noreply@github.com |
b73ea34e6add92014bf1249f36194a4bccd11194 | 6921b29c09905e910c97c799fdb1c5249dff0274 | /pyocd/coresight/gpr.py | b0ecaff545f1a43b824d27b15bc33ad403f98186 | [
"Apache-2.0"
] | permissive | huaqli/pyOCD | b476a0d58cf55cc4855bea33b2c7a3afc37f7f35 | ee8324de9e0219a0e6e28e686c81fa5af3637479 | refs/heads/master | 2022-04-16T17:22:33.861865 | 2020-04-20T16:44:07 | 2020-04-20T16:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | # pyOCD debugger
# Copyright (c) 2018 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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
#
# ... | [
"flit@me.com"
] | flit@me.com |
69c02c736463a9b65e274fce99476ca679810c4f | 2603f28e3dc17ae2409554ee6e1cbd315a28b732 | /ABC181/prob_d.py | 4907374640a893c516218398622363e984976b2f | [] | no_license | steinstadt/AtCoder | 69f172280e89f4249e673cae9beab9428e2a4369 | cd6c7f577fcf0cb4c57ff184afdc163f7501acf5 | refs/heads/master | 2020-12-23T12:03:29.124134 | 2020-11-22T10:47:40 | 2020-11-22T10:47:40 | 237,144,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | # Problem D - Hachi
from itertools import permutations
# input
S = list(input())
# initialization
ans = False
def conv_nums(nums):
num_list = [0] * 10
conv_result = []
for n in nums:
num_list[n] += 1
for i in range(1, 10):
if num_list[i]==0:
continue
if num_list[i]... | [
"steinstadt@keio.jp"
] | steinstadt@keio.jp |
a5e75047a5d44c391ab9fe5a3c6909b31a774f11 | 0f54a2a03fba8e231bfd2a14785a7f091b4b88ac | /WeeklyProcessor/3. Analysing & Cleaning Content/column_cleaners/business_cleaner.py | 6d08b30c9eb7d94fa33c09233a891de80532a431 | [] | no_license | LukaszMalucha/WeeklyProcessor | ced08869397e54fb7c0a26a53a760c74868942c8 | b9c787248f41f6a30e34c4c13db08ce4d0834f52 | refs/heads/master | 2022-06-01T08:40:25.377037 | 2020-05-03T18:13:21 | 2020-05-03T18:13:21 | 243,991,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 19 17:55:52 2020
@author: jmalucl
"""
def business_cleaner(dataset):
dataset['Business'].fillna("Not Specified")
# REMOVE (OTHER CHOICES AVAILABLE)
dataset['Business'] = dataset['Business'].str.replace("other choices available", "")
... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
1a15250cb5546c6b48ee83829dba429154c20d41 | c9bb8998bde76bf88117a5d8f710621cd824df14 | /tests/cupy_tests/cuda_tests/test_driver.py | fbc1e33d94198e127f8636923c068e6bf7df5cd6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hephaex/cupy | 4a0d8198b889a26d9b958ec9c31346ec58598e49 | 5cf50a93bbdebe825337ed7996c464e84b1495ba | refs/heads/master | 2020-06-06T18:55:49.827170 | 2019-06-19T21:00:21 | 2019-06-19T21:00:21 | 192,827,521 | 1 | 0 | MIT | 2019-06-20T01:28:56 | 2019-06-20T01:28:56 | null | UTF-8 | Python | false | false | 990 | py | import threading
import unittest
import cupy
from cupy.cuda import driver
class TestDriver(unittest.TestCase):
def test_ctxGetCurrent(self):
# Make sure to create context.
cupy.arange(1)
self.assertNotEqual(0, driver.ctxGetCurrent())
def test_ctxGetCurrent_thread(self):
# Mak... | [
"webmaster@kenichimaehashi.com"
] | webmaster@kenichimaehashi.com |
6c3187ec0a176e1dda16a1d8fa32a1350f49b595 | e1c14c3b3ed552f1af97f427c342be70d8e3b27f | /src/yMaths/print-combinations-integers-sum-given-number.py | d21539fee7022d456e69899e5a0e5284fbccefa3 | [
"MIT"
] | permissive | mohitsaroha03/The-Py-Algorithms | 4ab7285b6ea2ce0a008203b425ec3f459995664b | b5ba58602c0ef02c7664ea0be8bf272a8bd5239c | refs/heads/master | 2023-01-28T09:25:33.317439 | 2020-12-05T06:17:00 | 2020-12-05T06:17:00 | 280,189,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # Link: https://www.techiedelight.com/print-combinations-integers-sum-given-number/
# IsDone: 1
# Recursive function to print all combination of positive integers
# in increasing order that sum to a given number
def printCombinations(A, i, sum, sum_left):
# To maintain the increasing order, start the loop from
# pre... | [
"MohitSaroha@Etechaces.com"
] | MohitSaroha@Etechaces.com |
0b2fd01ae9041f32ba9b913c03009fd5954e14ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s478211086.py | e348f33b7bcd5b939cd80827f0dd178d0a30ffa6 | [] | 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 | 2,119 | py | from math import gcd
from functools import reduce
from collections import defaultdict
n=int(input())
a=list(map(int,input().split()))
g=reduce(gcd,a)
if g!=1:
print("not coprime")
exit()
def isPrimeMR(n):
d = n - 1
d = d // (d & -d)
L = [2]
for a in L:
t = d
y = pow(a, t, n)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dfbdf95b718951deb80f412553aeecbbadee397d | 7ba05e73515c14fb8d2f3d056b51102131171a11 | /000_mid_exam_retake/test.py | 9f34a58afac2898aea41cae6d451743ed3c488e6 | [] | no_license | gyurel/SoftUni-Basics-and-Fundamentals | bd6d5fa8c9d0cc51f241393afd418633a66c65dc | 184fc5dfab2fdd410aa8593f4c562fd56211c727 | refs/heads/main | 2023-07-05T11:16:58.966841 | 2021-08-31T19:25:40 | 2021-08-31T19:25:40 | 401,485,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | d = {}
for x in range(1, 10):
d["string{0}".format(x)] = "Hello" | [
"gyurel@yahoo.com"
] | gyurel@yahoo.com |
f0595be963dc4b4499181013831a9970ba963495 | 180e1e947f3f824cb2c466f51900aa12a9428e1c | /pattern4/hamburg_store_v5/src/SichuanIngredientsFactory.py | db6d7e34726ae46ecf5b21659ff3352834e2f368 | [
"MIT"
] | permissive | icexmoon/design-pattern-with-python | 216f43a63dc87ef28a12d5a9a915bf0df3b64f50 | bb897e886fe52bb620db0edc6ad9d2e5ecb067af | refs/heads/main | 2023-06-15T11:54:19.357798 | 2021-07-21T08:46:16 | 2021-07-21T08:46:16 | 376,543,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | #######################################################
#
# SichuanIngredientsFactory.py
# Python implementation of the Class SichuanIngredientsFactory
# Generated by Enterprise Architect
# Created on: 19-6��-2021 21:34:31
# Original author: 70748
#
#######################################################
from .Chi... | [
"icexmoon@qq.com"
] | icexmoon@qq.com |
fdd539cdf1889df24696c662f74796e12e6ae49e | b8ed6b49f25d08a0a313d749f3e40d7a5b59dfc9 | /torch/fx/experimental/fx_acc/acc_op_properties.py | e2f53d7c48194b54b5f9ff834e1f73c13267da68 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yinchimaoliang/pytorch | 191f154ede241d6c61f3600f2987f2a9ec637c92 | ecf7e96969dec08f5e0091f1584557f13c290c18 | refs/heads/master | 2023-08-22T07:05:37.055667 | 2021-10-26T00:42:38 | 2021-10-26T00:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from collections import defaultdict
from enum import Flag, auto
from typing import Callable, DefaultDict, Set
import torch
import torch.fx
class AccOpProperty(Flag):
pointwise = auto()
quantized = auto()
acc_op_properties: DefaultDict[Callable, Set[AccOpProperty]] = defaultdict(set)
acc_ops_with_property: De... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.