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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f13e42f723dfc011017c86d5d9d5266a52e16dcf | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/dataform/v1beta1/repository_workspace_iam_member.py | a82ed59fcb5af3a81d30a219472de2490307c4b6 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 13,541 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
b0e675a66588e8634b1b1524e860f5399ed48426 | 051910d10f4597cd1148207b1f5f2030c01d7ddf | /py/src/consts.py | e63df96ef48d5d3fb483637f645611bd156ae172 | [
"MIT"
] | permissive | LaplaceKorea/rosettaboy | 831cd285e1a305690f2ee76861ccff91d77fa4a7 | fb238cb8b73eb7903ce8b9b298896c549e75fccb | refs/heads/master | 2023-08-15T15:41:36.459790 | 2021-10-12T12:13:55 | 2021-10-12T12:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | class Mem:
VBLANK_HANDLER = 0x40
LCD_HANDLER = 0x48
TIMER_HANDLER = 0x50
SERIAL_HANDLER = 0x58
JOYPAD_HANDLER = 0x60
VRAM_BASE = 0x8000
TILE_DATA_TABLE_0 = 0x8800
TILE_DATA_TABLE_1 = 0x8000
BACKGROUND_MAP_0 = 0x9800
BACKGROUND_MAP_1 = 0x9C00
WINDOW_MAP_0 = 0x9800
WINDOW_... | [
"shish@shishnet.org"
] | shish@shishnet.org |
a7a7d34db8b105e67c352abaceb211f4a7e084c3 | a97f789530412fc1cb83170a11811f294b139ee8 | /疯狂Python讲义/codes/12/12.6/writebytes_test.py | 36e61f54a785fdf550bc07aebcbd19870b13ad75 | [] | no_license | baidongbin/python | 3cebf2cc342a15b38bf20c23f941e6887dac187a | 1c1398bff1f1820afdd8ddfa0c95ccebb4ee836f | refs/heads/master | 2021-07-21T19:23:32.860444 | 2020-03-07T11:55:30 | 2020-03-07T11:55:30 | 195,909,272 | 0 | 1 | null | 2020-07-21T00:51:24 | 2019-07-09T01:24:31 | Python | UTF-8 | Python | false | false | 413 | py | import os
f = open('y.txt', 'wb+')
# os.linesep 代表当前操作系统上的换行符
f.write(('我爱Python' + os.linesep).encode('utf-8'))
f.writelines((('土门壁甚坚,' + os.linesep).encode('utf-8'),
('杏园度亦难。' + os.linesep).encode('utf-8'),
('势异邺城下,' + os.linesep).encode('utf-8'),
('纵死时犹宽。' + os.linesep).enc... | [
"baidongbin@thunisoft.com"
] | baidongbin@thunisoft.com |
9606fc118d763b54512c8278ba1755a594d973cb | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/docs/lib/python2.7/site-packages/sphinx/environment/__init__.py | f760583ece5807e4a028e2fb675ec70d4f9836db | [
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"Apache-2.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 50,863 | py | # -*- coding: utf-8 -*-
"""
sphinx.environment
~~~~~~~~~~~~~~~~~~
Global creation environment.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
import os
import sys
import time
import types
import codecs
import fnmatch
from os ... | [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
1f31c768f9d581da1b7ad412a23ad6d4e24ce3e6 | ede5e159641ba71a1a25a50a1328c11175459cce | /day-3/generate.py | d2f956f398b09d0fff8c03fbfb6e5c34d5a4d14d | [
"BSD-3-Clause"
] | permissive | sbu-python-summer/python-tutorial | 1cf23c700b7b2588680ad78a06a3582dfcce873b | c93ac1d75188d762df7d17df7045af39dbc1bee8 | refs/heads/master | 2021-01-20T18:08:21.393092 | 2017-06-16T18:50:06 | 2017-06-16T18:50:06 | 90,908,339 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # generate data for a histogram example
import numpy as np
N = 100
a = 10*np.random.randn(N)
for i in range(N):
print("{} {}".format(i, a[i]))
| [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
7848ffce0b6988c96aae1efeb96a21b0d8bb93f4 | c762ab8c1c25ffa97229a62ff43a33543093f963 | /venv/bin/easy_install | 06e9fd8505708c760e9975bfea10710ea86251e7 | [
"Apache-2.0"
] | permissive | nahyunkwon/multi-ttach | e68948d66541e85b764216efc54a82f6fc9ac044 | 971d0d93cc39f295deb23ea71146647f6db50ebc | refs/heads/master | 2023-08-09T18:25:31.658950 | 2023-07-24T17:46:04 | 2023-07-24T17:46:04 | 297,783,964 | 0 | 1 | Apache-2.0 | 2021-04-07T07:46:24 | 2020-09-22T22:08:53 | G-code | UTF-8 | Python | false | false | 458 | #!/Users/kwon/PycharmProjects/digital_fabrication_studio/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"skgus2624@gmail.com"
] | skgus2624@gmail.com | |
ad94567b4862afe2ff1de2f46b5864cbb56a525b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_162711.80-000950.8/sdB_SDSSJ_162711.80-000950.8_lc.py | 29d244111b17ca32fa317154ab63ad362a67cc25 | [] | 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=[246.799167,0.164111], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_162711.80-000950.8 /sdB_SDSSJ_162711.80-000950.8_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
7ef19c5af8cd92e5af1c9714f074511ef1854b6e | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/wcwidth/table_zero.py | ab5150f51734a90985f4d011aeb89f7d575dd887 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 310,230 | py | """Zero_Width table, created by bin/update-tables.py."""
# Generated: 2020-06-23T16:03:21.187024
ZERO_WIDTH = {
'4.1.0': (
# Source: DerivedGeneralCategory-4.1.0.txt
# Date: 2005-02-26, 02:35:50 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
67cc8ae0e9b2a05fb85c2ca88cb58905348d3cf1 | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming Basics Python/Exam Problems 20042019/Easter Shop.py | 24f0f9d5278dd658f8d045e6e6d0eab1bb4ce257 | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | start_eggs = int(input())
sold_eggs = 0
fill_eggs = 0
available_eggs = start_eggs
while True:
command = input()
if command == 'Close':
print('Store is closed!')
print(f'{sold_eggs} eggs sold.')
break
eggs_number = int(input())
if command == 'Buy':
if available_eggs < egg... | [
"radka_valkova@abv.bg"
] | radka_valkova@abv.bg |
cac5a5118c1caa62049a0352cf2b96d18328b009 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /Django/rbac/day69/luffy_permission/rbac/middlewares/rbac.py | 05e05715e769339255dc4cd45e4b8f209919f427 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 1,122 | py | from django.utils.deprecation import MiddlewareMixin
from django.shortcuts import HttpResponse, redirect, reverse
from django.conf import settings
import re
class RbacMiddleWare(MiddlewareMixin):
def process_request(self, request):
# 获取当前访问的页面
url = request.path_info # index
# 白名单
... | [
"13269469526@163.com"
] | 13269469526@163.com |
7bdbb45c2a647db014716b1afeeb24c732579da3 | 7a73fef9ae426c48573bae41447cef7cb2b97bf6 | /dynamicserialize/dstypes/com/raytheon/uf/common/management/response/__init__.py | e1e5fcfbdc6f395fcaab59c2371def4edec4459b | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mjames-upc/python-awips | 7f0a80a04457224c9e195b82a95eef4d9b2b3091 | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | refs/heads/master | 2020-03-31T03:00:49.540816 | 2018-10-05T23:15:42 | 2018-10-05T23:15:42 | 53,707,817 | 0 | 0 | null | 2017-04-12T18:00:59 | 2016-03-12T01:46:57 | Python | UTF-8 | Python | false | false | 104 | py | ##
##
# File auto-generated by PythonFileGenerator
__all__ = [
'diagnostic'
]
| [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
2cd69de0ed6caab0657b020ebf567283aa2001c4 | 52a32a93942b7923b7c0c6ca5a4d5930bbba384b | /dojo/db_migrations/0051_regulation_categories.py | 2fe6ff5d352fd9d2bde9377ad6d5aaf8ae2c4bdb | [
"MIT-open-group",
"GCC-exception-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-3.0-or-later",
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"PSF-2.0",
"LicenseRef-scancode-python-cwi... | permissive | DefectDojo/django-DefectDojo | 43bfb1c728451335661dadc741be732a50cd2a12 | b98093dcb966ffe972f8719337de2209bf3989ec | refs/heads/master | 2023-08-21T13:42:07.238370 | 2023-08-14T18:00:34 | 2023-08-14T18:00:34 | 31,028,375 | 2,719 | 1,666 | BSD-3-Clause | 2023-09-14T19:46:49 | 2015-02-19T17:53:47 | HTML | UTF-8 | Python | false | false | 810 | py | # Generated by Django 2.2.15 on 2020-08-30 21:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dojo', '0050_deduplication_on_engagement'),
]
operations = [
migrations.AlterField(
model_name='regulation',
name='... | [
"noreply@github.com"
] | DefectDojo.noreply@github.com |
d8378edcd6198ed26579441c3a40b78c8cf15001 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/__init__.py | bf71c01861311a939e78407acf62aa9512c59a19 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 1,493 | py | from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.representations_api import RepresentationsApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.type.type_api import TypeApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.repres... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
ca40498aa30d2a1e5baee83adfbb27bbb25c2bfa | f18125b848e37a64e35136a90cf4694e52eb9fcc | /teek/_timeouts.py | 13563144be59e5b03aa5f93e5c8b5b14d4b72708 | [
"MIT"
] | permissive | carlbordum/teek | d19271dfe11e3e77052b1a3c215ddf6a9d50e440 | a931b468744c8236fd4ce6f1dc3a8c4829d59db3 | refs/heads/master | 2020-04-16T11:41:10.909230 | 2019-01-13T19:24:16 | 2019-01-13T19:24:16 | 165,547,247 | 0 | 0 | null | 2019-01-13T19:48:26 | 2019-01-13T19:48:26 | null | UTF-8 | Python | false | false | 2,489 | py | import teek as tk
from teek._tcl_calls import make_thread_safe
# there's no after_info because i don't see how it would be useful in
# teek
class _Timeout:
def __init__(self, after_what, callback, args, kwargs):
if kwargs is None:
kwargs = {}
self._callback = callback
self._... | [
"akuviljanen17@gmail.com"
] | akuviljanen17@gmail.com |
3c2f70f7d8cb1b239b139682b5e5bfd6579d4cb8 | 02c4c52f2f630df77bc25994aee13a7530e3136d | /012016/python/xmlParsing.py | ec2f58145a53178b29ba7dc467dc309ce4c9fc3c | [] | no_license | abgoswam/2016 | ac7d61828bc5fda8c003f135bc250ed57d03ae4c | 307844ba74bf302c290a4e2b4792a096e0c3cb56 | refs/heads/master | 2020-04-15T14:03:49.674650 | 2016-12-09T02:19:44 | 2016-12-09T02:19:44 | 57,982,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 10 07:38:36 2016
@author: agoswami
Code from : http://www.blog.pythonlibrary.org/2013/04/30/python-101-intro-to-xml-parsing-with-elementtree/
"""
import time
import xml.etree.ElementTree as xml
import xml.etree.cElementTree as ET
import xml.dom.minidom as minidom
#htt... | [
"abgoswam@gmail.com"
] | abgoswam@gmail.com |
17f286bd52e1fda213acc5e1347e4d32bd730c24 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/389/usersdata/346/73669/submittedfiles/poligono.py | 2d92908686c389fe16d305bc44eb0541a9bdb9f1 | [] | 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 | 156 | py | # -*- coding: utf-8 -*-
#ENTRADA
n= int(input('Digite quantos lados deve ter o seu polígono: ')
#PROCESSAMENTO
nd = (n*(n-3))/2
#SAÍDA
print('%.1f' % nd)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a23a188a9a220ca25ffaec14f74dd0d311ecb76a | ba3be84d355e90860479fc2a0d92b536c377c643 | /PYTHON/Advance/Python Controls/py_Frame2.py | d9e598e1135bffa05661b601196ac36c71774648 | [] | no_license | vipin26/python | c62a3427511658ff292085fc382c5b3b3ff4d609 | e8442b84c385ddef972d6a514e471d8eba8af0a3 | refs/heads/master | 2020-09-29T12:39:52.775466 | 2019-12-15T05:44:31 | 2019-12-15T05:44:31 | 227,034,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from Tkinter import *
top = Tk()
top.geometry("500x500")
#width="200", height="200"
f1 = Frame(top,bg="green")
f1.pack(side="left",fill=BOTH,expand=1)
f2 = Frame(top,bg="Red", width="200", height="200")
f2.pack(side="right",fill=BOTH,expand=1)
b1= Button(f1,text="Button 1");
b1.pack()
b2= Button(f2,text="Button 2")... | [
"58661640+vipin26@users.noreply.github.com"
] | 58661640+vipin26@users.noreply.github.com |
5d7f25c116d2a9fa1d5af893930135ce01f01bff | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d3d1aa2dca4988bb7a232458338d86a0c9fef06e-<main>-fix.py | 2ca55744f3a4a48e7dd7ef030d5aae4df1a066eb | [] | 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 | 6,010 | py | def main():
module = AnsibleModule(argument_spec=dict(src=dict(required=True), dest=dict(required=True), dest_port=dict(default=None, type='int'), delete=dict(default='no', type='bool'), private_key=dict(default=None), rsync_path=dict(default=None), _local_rsync_path=dict(default='rsync', type='path'), _substitute_... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
f1984d621cb9dff5c7d33467c52fd530da9da790 | d78d214c1040865d1d054cc034ff04e3cb025549 | /bdgtools/io.py | 526a76e4e092697ed3e067aaa8e3ee8588a8646d | [
"MIT"
] | permissive | knutdrand/bdgtools | 922685c6225bb0dc458d3f4b9dc6985aee0b9e51 | 18d21586515ec03e5fb96e959447f6b35e5350de | refs/heads/master | 2023-01-03T14:27:05.855074 | 2020-10-21T12:30:12 | 2020-10-21T12:30:12 | 301,361,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,279 | py | import logging
from itertools import chain, groupby
from more_itertools import pairwise
from operator import itemgetter
import pandas as pd
import numpy as np
from .regions import Regions
from .splitregions import SplitRegions, Genes
from .bedgraph import BedGraph, broadcast
log = logging
def _peek_line(f):
pos =... | [
"knutdrand@gmail.com"
] | knutdrand@gmail.com |
2749a89da17d91be60716423a5b52e513374404b | 7e325da0ec25a56158f4a47acf6f594548a72384 | /users/migrations/0005_profile_stripe_customer_id.py | 97a12f3ccd87c340090928f9137cccccc4257501 | [
"MIT"
] | permissive | drewvpham/xclude.com | 5102a921721c508552648ee03f5a8e1b0bafb6e8 | 103e89e2326c4c6fbfab819c43bc4e4634913bc9 | refs/heads/master | 2022-12-16T06:36:00.631404 | 2019-12-29T20:35:16 | 2019-12-29T20:35:16 | 222,317,889 | 0 | 0 | MIT | 2022-12-07T23:54:06 | 2019-11-17T21:58:47 | Python | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.2.7 on 2019-12-24 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_profile_one_click_purchasing'),
]
operations = [
migrations.AddField(
model_name='profile',
name='stri... | [
"drewvpham@gmail.com"
] | drewvpham@gmail.com |
aa6c6881d7565c65dcc402b478b85a6aaab77318 | 8410bb5a2e8849bb3a554b95ddc713d88f3440c4 | /aws-dev/awsdev8/venv/Lib/site-packages/amazondax/grammar/DynamoDbGrammarListener.py | e8bd3845c650ff1693a6d39c27674112f67b43c3 | [
"MIT"
] | permissive | PacktPublishing/-AWS-Certified-Developer---Associate-Certification | ae99b6c1efb30e8fab5b76e3d8c821823a4cd852 | b9838b4e038b42ad1813a296379cbbc40cab6286 | refs/heads/master | 2022-11-03T04:37:49.014335 | 2022-10-31T05:42:19 | 2022-10-31T05:42:19 | 219,964,717 | 13 | 11 | MIT | 2021-06-02T00:57:45 | 2019-11-06T09:54:09 | Python | UTF-8 | Python | false | false | 13,172 | py | # Generated from grammar/DynamoDbGrammar.g4 by ANTLR 4.7
from antlr4 import *
if __name__ is not None and "." in __name__:
from .DynamoDbGrammarParser import DynamoDbGrammarParser
else:
from DynamoDbGrammarParser import DynamoDbGrammarParser
# This class defines a complete listener for a parse tree produced by... | [
"sonalis@packtpub.com"
] | sonalis@packtpub.com |
0e928393f712c9aa0b389fc8e611da0166635eb7 | a3d6eb92c6fc6ed6095d10bc7b329cb8b4a8b166 | /src/config.py | 9f147f5f9b4dfea32202702abb0161c77899e708 | [] | no_license | hgiesel/anki_straight_reward | ab29e6f154beba7c5f2f9bd9579c21cdd942b218 | 3fe72255f667d2eb544afb2541a1eb974c23eede | refs/heads/master | 2022-12-23T22:38:28.432113 | 2022-12-12T13:46:36 | 2022-12-12T13:46:36 | 245,190,627 | 19 | 4 | null | 2023-08-28T16:01:55 | 2020-03-05T14:53:08 | Python | UTF-8 | Python | false | false | 2,381 | py | from anki.cards import Card
from aqt import mw
from .types import StraightSetting
DEFAULT_SETTINGS = StraightSetting(2, True, 5, 5, 130, 250)
KEYWORD = "straightReward"
def serialize_setting(setting: StraightSetting) -> dict:
return {
"enableNotifications": setting.enable_notifications,
"straig... | [
"hengiesel@gmail.com"
] | hengiesel@gmail.com |
841afbf9bb4cdfd5cafcbc0c6f3f11f329e527fc | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/l3v4usage32per.py | ec7d3ed093f8b0173f4a279c5813fc5c3027ba2f | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 12,181 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
314181b6076dd4f353ab40ca9d5695c63949d5ba | c0a9460591dcb5a322c1c5ec8b67e1d775f8f4ba | /advec_1d/dg_modal_gpu.py | d4b79c2b6d4cba9f5cc88e1e69a5f264c41dfdf1 | [] | no_license | wbkifun/my_research | aca8f5132d03de2e15adc3b0ded164fbd89e38a3 | eb7e61f5405834dcbea240665bdc819f4b3f97bf | refs/heads/master | 2020-12-24T16:40:29.722161 | 2016-03-07T00:31:15 | 2016-03-07T00:31:15 | 5,176,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | #===============================================================================
# DG method with modal basis functions
# 1-D advection equation
# ------------------------------------------------------------------------------
#
# Last update: 2012.4.26
# ----------------------------------------------------------------... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
2ac42e0a73d94a3ea63cdde82603cce7f4879b66 | b697b98db859c061c1174837deee1d6fc47d115e | /examples/spot/futures/futures_loan_interest_history.py | d11b8ced29894bbc52ba7c6b24d2585c250be296 | [
"MIT"
] | permissive | leozaragoza/binance-connector-python | 7e684d6e68ff7d580b7e3fa83f952540a79b1120 | 3311d102c9e788e3d71047f0af103c00d1ae2162 | refs/heads/master | 2023-07-15T12:27:50.041388 | 2021-08-22T17:08:38 | 2021-08-22T17:08:38 | 396,354,910 | 3 | 0 | MIT | 2021-08-22T17:08:38 | 2021-08-15T13:12:41 | Python | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python
import logging
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
config_logging(logging, logging.DEBUG)
key = ""
secret = ""
client = Client(key, secret)
logging.info(client.futures_loan_interest_history())
| [
"liang.shi@protonmail.com"
] | liang.shi@protonmail.com |
ba1e1883e6c6bba64621e521b0b4aa974fe7895f | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/isis/isiscsnpstats1qtr.py | 5e12cd0cc2e3b1aa65da434a7ed773805e4aebed | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 29,126 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
5994a372ecac4751d01b2d63d8cfe85ccff050c0 | e9331ebf2d83184924ade1c9e4849c3ba0285bf2 | /mutiple-devices/vgg16/8devices/node.py | 8e3356581b54e55c63cec2cc97e4e45d94968fb4 | [
"Apache-2.0"
] | permissive | parallel-ml/asplos2018-workshop | fcf7c13ff6723ac91f156377e27fc5acaf85367a | a05a63c17f43926d6411ada625b191db1abbee67 | refs/heads/master | 2022-12-02T02:12:34.450130 | 2022-11-29T16:06:36 | 2022-11-29T16:06:36 | 120,949,505 | 15 | 4 | Apache-2.0 | 2022-11-29T16:06:37 | 2018-02-09T19:58:11 | Python | UTF-8 | Python | false | false | 11,323 | py | """
This module shows the node for 8 nodes distributed system setup.
"""
import argparse
import os
import time
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from SocketServer import ThreadingMixIn
from collections import deque
from multiprocessing import Queue
from threading import Thread, Lock
impo... | [
"caojiashen24@gmail.com"
] | caojiashen24@gmail.com |
92f9238ad3092c97ec4b095701f67d1c55cfd079 | 5d302c38acd02d5af4ad7c8cfe244200f8e8f877 | /String/1408. String Matching in an Array(Easy).py | adf72b4a7fde98423f8ff4a18cf2a13c73a92e79 | [] | no_license | nerohuang/LeetCode | 2d5214a2938dc06600eb1afd21686044fe5b6db0 | f273c655f37da643a605cc5bebcda6660e702445 | refs/heads/master | 2023-06-05T00:08:41.312534 | 2021-06-21T01:03:40 | 2021-06-21T01:03:40 | 230,164,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | class Solution:
def stringMatching(self, words: List[str]) -> List[str]:
store = set();
for i in range(len(words)):
for j in range(len(words)):
if len(words[i]) >= len(words[j]) and words[i] != words[j]:
if words[i].find(words[j]) != -1:
... | [
"huangxingyu00@gmail.com"
] | huangxingyu00@gmail.com |
b24094d77418e88f7477458debc1594cdeb2b6fa | 021ce16e42120246557dfa210bef6e96a34623b6 | /tornado_sqlalchemy_login/sqla/models.py | 6769f29cf020d69ba5c5480e1a770a37fb2ae347 | [
"Apache-2.0"
] | permissive | timkpaine/tornado-sqlalchemy-login | f455b95d60d392202b46758ff230259785f7dc19 | 499bc7d79926b79352a3b9abdb864815e9896274 | refs/heads/main | 2022-12-01T22:28:06.620106 | 2022-11-22T01:46:21 | 2022-11-22T01:46:21 | 230,801,513 | 1 | 0 | Apache-2.0 | 2023-09-04T13:35:46 | 2019-12-29T20:46:05 | Python | UTF-8 | Python | false | false | 2,109 | py | import secrets
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
TOKEN_WIDTH = 64
Base = declarative_base()
class User(Base):
__tablename__ = "users"... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
3e2af68956ab395d7d6c3ee1a4238c837c4b51cc | b2472967910be9c12576f0f97d33bca0576a8667 | /atcoder-old/2019/0901_abc139/d.py | 0f4f619ee2e61c90c3c79b0e44b9d3a7b51c02c3 | [] | no_license | ykmc/contest | 85c3d1231e553d37d1235e1b0fd2c6c23f06c1e4 | 69a73da70f7f987eb3e85da503ea6da0744544bd | refs/heads/master | 2020-09-01T22:56:10.444803 | 2020-07-14T11:36:43 | 2020-07-14T11:36:43 | 217,307,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Python3 (3.4.3)
import sys
input = sys.stdin.readline
# -------------------------------------------------------------
# function
# -------------------------------------------------------------
# -------------------------------------------------------------
# main
# -------------------------------------------------... | [
"34961813+ykmc@users.noreply.github.com"
] | 34961813+ykmc@users.noreply.github.com |
368d3a8e796916e2e6cadcf0e634c978a7ef2699 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /martinkersner/train-CRF-RNN/crfasrnn.py | 472a86f853e687aa057de49dcc8aa8957733f63d | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,462 | py | #!/usr/bin/env python
# Martin Kersner, m.kersner@gmail.com
# 2016/03/03
from __future__ import print_function
caffe_root = '../caffe-crfrnn/'
import sys
sys.path.insert(0, caffe_root + 'python')
import os
import cPickle
import logging
import numpy as np
import pandas as pd
from PIL import Image as PILImage
import cS... | [
"xenron@outlook.com"
] | xenron@outlook.com |
f0ee9e58c7029957af4366c984e9861db7dfc8e2 | 6ffed3351dd608ce311a7c04d813e4cbcc283d6f | /djongo_project/files/api/serializers.py | e0c2ca3d77901c61c0d12799e99a053ec5653fad | [] | no_license | navill/ai_2-1 | bc2311dd5e8839c6bd4112965b7348252408785a | 7dd782b93286b7a407c433aa55a3b8f3f626fe89 | refs/heads/master | 2023-01-06T19:09:26.051130 | 2020-10-07T02:08:15 | 2020-10-07T02:08:15 | 290,131,119 | 0 | 0 | null | 2020-10-08T14:45:37 | 2020-08-25T06:20:46 | Python | UTF-8 | Python | false | false | 1,396 | py | from typing import *
from rest_framework import serializers
from rest_framework.reverse import reverse
from accounts.models import CommonUser
from utilities.file_utils import EncryptHandler
from files.models import CommonFile
class FileManageSerializer(serializers.ModelSerializer):
user = serializers.PrimaryKey... | [
"blue_jihoon@naver.com"
] | blue_jihoon@naver.com |
59f182eac7ff61fa54275583dd65186678b519c5 | ef34e68712fb4aa9a1320c4e1e370a24de34fcb4 | /nlu/utils/environment/authentication.py | 31b46bde24d6ece7e8670f0fe028b52bcba4a11a | [
"Apache-2.0"
] | permissive | milyiyo/nlu | dd656e77eedf2c831482edfd4ec59490b25d3954 | d209ed11c6a84639c268f08435552248391c5573 | refs/heads/master | 2023-08-16T00:03:10.326392 | 2021-10-16T03:05:49 | 2021-10-16T03:05:49 | 414,223,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | from nlu.utils.environment.env_utils import *
def install_and_import_healthcare(JSL_SECRET):
""" Install Spark-NLP-Healthcare PyPI Package in current enviroment if it cannot be imported and liscense provided"""
import importlib
try:
importlib.import_module('sparknlp_jsl')
except ImportError:
... | [
"christian.kasim.loan@gmail.com"
] | christian.kasim.loan@gmail.com |
71ca8542c4f7c61d9328341ec14b583e4d30c82d | e4920c4fe4290bde524e0c141189f80fddfe44b7 | /info/migrations/0023_remove_message_recaptcha.py | 85b4c72c01e9b2dc98df1f027f92d51e1b879720 | [] | no_license | ShahadatShuvo/Django_portfolio | 42af2b0aa686bff08730cdb105f95d6b63adb620 | 795ed7cbb6444245af08582ea63f57a0f32679a0 | refs/heads/master | 2023-05-30T01:43:50.409584 | 2021-06-14T08:29:18 | 2021-06-14T08:29:18 | 376,372,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 2.2.16 on 2020-12-22 17:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('info', '0022_auto_20201222_1655'),
]
operations = [
migrations.RemoveField(
model_name='message',
name='recaptcha',
... | [
"shahadat@baiust.edu.bd"
] | shahadat@baiust.edu.bd |
e8720a42e2d433fa822311add8bf6a44faced378 | bda32ee120fd07499fad1e5e973249ac15861200 | /ValidSudoku.py | 5996590c78e0207e3f98330665a34507963f42cf | [] | no_license | congyingTech/leetcode | 5f76d11a283115e46fdf4f295cf0279f53e692a1 | 35ff5db1ee6abcb3cf1144a9bf5420758e31e6ec | refs/heads/master | 2021-01-21T04:41:20.195451 | 2016-06-16T07:03:09 | 2016-06-16T07:03:09 | 54,643,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | #-*- coding:utf-8 -*-
'''
Created on Mar 30, 2016
@author: congyingw
'''
#Sudoku的要求有三条:每行的数只出现一次,每列的数只出现一次,每个九宫格数只出现一次。
#所以我们要验证这三个条件逐个遍历一遍。
class Solution:
def isValidSudoku(self, board):
for i in range(0, 9):
#第i行(固定的行)j列 or 第j行i列(固定的列)
if not self.isValidList([board[i][j] ... | [
"congyingTech@163.com"
] | congyingTech@163.com |
4ca6bb07c21ed85808635058d7bf3d36c71eb43e | b8f4b32171bba9e60a101f5a605e084c9aa974fd | /BaseTools/Source/Python/AutoGen/UniClassObject.py | b2895f7e5c63d238180b93830b7630499ffa202c | [
"BSD-3-Clause",
"BSD-2-Clause-Patent"
] | permissive | jinjhuli/slimbootloader | 3137ab83073865b247f69b09a628f8b39b4c05ee | cfba21067cf4dce659b508833d8c886967081375 | refs/heads/master | 2023-07-11T12:59:51.336343 | 2020-09-11T00:16:48 | 2020-09-11T00:24:52 | 149,729,121 | 1 | 0 | BSD-2-Clause | 2018-09-21T07:49:42 | 2018-09-21T07:49:42 | null | UTF-8 | Python | false | false | 29,575 | py | ## @file
# This file is used to collect all defined strings in multiple uni files
#
#
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR>
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
# Import Modules
#
from __fut... | [
"maurice.ma@intel.com"
] | maurice.ma@intel.com |
94bb8b2a0fb2fd8136b0743980291df09b163012 | 850001831b1fcdd4d27e328b356fc34909ca2917 | /tests/test_map.py | 77237924f7d6561097ffea685bfbe60e67c465bc | [
"BSD-3-Clause"
] | permissive | yidiq7/pathos | b337353ccfe447866c46a4a784a7908c2f3fe31e | 7e4fef911dc0283e245189df4683eea65bfd90f0 | refs/heads/master | 2022-08-24T08:43:34.009115 | 2020-05-27T12:18:21 | 2020-05-27T12:18:21 | 267,310,390 | 0 | 0 | NOASSERTION | 2020-05-27T12:14:50 | 2020-05-27T12:14:47 | null | UTF-8 | Python | false | false | 2,170 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2020 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pa... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
e93d618ef2a5f5ad993261c09a6a1b7b73293570 | 0fa1d839550f4bfb1d9d0860915770071422f2cd | /parrot.py | 51dd4bbc1ed740272deb7e105a164b4e9cb6f887 | [] | no_license | crystalDf/Python-Crash-Course-2nd-Edition-Chapter-07-Input | b996d5b5bfbf20be039ac2e2314e51d6a51545a1 | a8838fe405e4ce70e827a6ace98f3502b3a57f45 | refs/heads/master | 2023-06-10T08:12:07.675473 | 2021-06-20T14:45:01 | 2021-06-20T14:45:01 | 378,668,714 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | message = input("Tell me something, and I will repeat it back to you: ")
print(message)
prompt = "\nTell me something, and I will repeat it back to you:"
prompt += "\nEnter 'quit' to end the program. "
message = ""
while message != 'quit':
message = input(prompt)
if message != 'quit':
print(message)
... | [
"chendong333@gmail.com"
] | chendong333@gmail.com |
e3cb34e969e398b08d9c43935908f7b26d4014f0 | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/stripe/stripe/api_resources/charge.pyi | 2e3467e67bc5e6b90113fd9988cf281a375bde2c | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 851 | pyi | from typing import Any
from stripe import api_requestor as api_requestor
from stripe.api_resources.abstract import (
CreateableAPIResource as CreateableAPIResource,
ListableAPIResource as ListableAPIResource,
UpdateableAPIResource as UpdateableAPIResource,
custom_method as custom_method,
)
class Charg... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
37ed82c45df03e22c5d1a9edd666017218ee89f1 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/zscaler/icon_zscaler/util/helpers.py | 3a839a924b1fefd1411e0082e08af7540ce22557 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 4,440 | py | from insightconnect_plugin_runtime.exceptions import PluginException
from re import sub, match, split
from typing import Union, Any, Dict
from icon_zscaler.util.constants import Assistance, Cause
CAMEL_CASE_REGEX = r"\b[a-z0-9]+([A-Z][a-z]+[0-9]*)*\b"
PASCAL_CASE_REGEX = r"\b[A-Z][a-z]+[0-9]*([A-Z][a-z]+[0-9]*)*\b"
CA... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
0292b72004bd85deca84805fc86f18693d557717 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JFLADuABfkeoz8mqN_5.py | 418dc4c327c7b6b0b704d40cb3c93aa5c599e590 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def compare_age(self, other):
modifier = ''
if self.age < other.age:
modifier = 'older than'
elif self.age == other.age:
modifier = 'the same age as'
else:
modifier = 'younger than'
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ca93607b79207cc78004efd8c339bc2ab7e9d567 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_0/Python/yagao0o/dijkstra.py | 96ca68f0bdc39cf5943ae362656074c360209c95 | [] | 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,207 | py | # author: yagoa0o
# date : 2015/04/11
class Solution():
multi_square = {'1': {'1': '1', 'i': 'i', 'j': 'j', 'k': 'k'},
'i': {'1': 'i', 'i': '-1', 'j': 'k', 'k': '-j'},
'j': {'1': 'j', 'i': '-k', 'j': '-1', 'k': 'i'},
'k': {'1': 'k', 'i': 'j', 'j': ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
9b3c43e2159eccae5ed0ba80f67a626831e04c62 | 722d8f2aa69095dbdbe32ecdeebb4bcf20e2ea3c | /tests/test_issue10_17.py | e54ddd56630de1e5e811d12e7ec3f3da0d804333 | [] | permissive | clach04/pyqrcodeNG | 1bad85bea9c2a5ca9bcda8849e35af51f8e394f3 | 8033a915eca1946537002b8b271ea2cddb4e004b | refs/heads/master | 2022-04-23T00:18:36.478138 | 2020-01-21T22:28:44 | 2020-01-21T22:28:44 | 259,402,644 | 0 | 0 | BSD-3-Clause | 2020-04-27T17:24:36 | 2020-04-27T17:24:35 | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
"""\
Tests against <https://github.com/mnooner256/pyqrcode/issues/17> and
<https://github.com/heuer/pyqrcode/issues/10>
Unicode issues.
"""
from __future__ import unicode_literals
import pyqrcodeng as pyqrcode
def test_issue_10_17():
qr = pyqrcode.create('John’s Pizza')
assert qr
... | [
"heuer@semagia.com"
] | heuer@semagia.com |
9148b220bb576626f27c0f2cfb3cb25ebbcd7139 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/datatypes/facets/byte/byte_max_inclusive001_xsd/__init__.py | 0444a6966ba5abae09b921e38485930982799bb6 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 173 | py | from output.models.ms_data.datatypes.facets.byte.byte_max_inclusive001_xsd.byte_max_inclusive001 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
25a420ee9e5512309aafd20ed676820b038209ea | b86608b6de44642ed29cd88bba4acbbdd31a0b04 | /tools/agile-machine-learning-api/codes/trainer/launch_demo.py | 8bd90b27237627cf0a348cdc757db624b062bda7 | [
"Apache-2.0"
] | permissive | MCRen88/professional-services | a514a926dd23e3c4ac6dadb656faed22c3d91d5d | d7bc3b194159ffdb149c9507890bb1fbae7a8d88 | refs/heads/master | 2020-12-15T16:38:17.860940 | 2020-01-06T19:29:47 | 2020-01-06T19:29:47 | 235,181,173 | 1 | 0 | Apache-2.0 | 2020-01-20T19:26:15 | 2020-01-20T19:26:14 | null | UTF-8 | Python | false | false | 21,978 | py | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"jferriero@google.com"
] | jferriero@google.com |
274befd704407b98b615b5efb59b5c392ba2d396 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/sql/outbound_firewall_rule.py | 5a8309fc8ccaf95892a167a53395faad58b8bd6a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 7,974 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
fbc8f567fc64ca0f8626efc764da3297fb9e5918 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/tensor_forest/hybrid/python/models/stochastic_soft_decisions_to_data_then_nn.py | e916a8734c524c83772576e38418e6667fa6b0c9 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 1,954 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
8095b9c0a7bae6822334409e1ce923939046e30c | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/cairosvg/colors.py | d77cb275f83cb564c24eb127821c4d38243acfbb | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 11,254 | py | # This file is part of CairoSVG
# Copyright © 2010-2015 Kozea
#
# This library is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
290d3ea467c81eb4adcf2a72c26529c2a9e07eb4 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/jsinix/Problem10.py | 8f8dd302f291fb441406f1d44ec06aae2c72032e | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Question: Summation of primes
# Problem 10
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
# Find the sum of all the primes below two million.
# Answer: 142913828922
#!/usr/bin/python
def is_prime(num):
for j in range(2,num):
if (num % j) == 0:
return False
return True
list1 = [... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
abdf25273170a0e464ee6c988a08c42a21bbd8b0 | f3a1629a46f5c3cbf7314c54fc36be3156146517 | /venv/bin/sqlformat | f01aa4e0e6285b25c7aec0571805920953267bed | [] | no_license | AlexsandroMO/qualiy_applications | ec4cdbcbacc9f403d7d34ca9573af44df9c9230a | 08656c8368f10d54e5b9c8e4a758989239224dc6 | refs/heads/main | 2023-01-13T03:50:21.779274 | 2020-11-14T19:05:20 | 2020-11-14T19:05:20 | 305,471,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/Users/alexsandromonteiro/Desktop/Prog_Python/qualiy_applications/venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sandrobass@hotmail.com"
] | sandrobass@hotmail.com | |
da8b517d85a513db952f23fb60cba730404ee688 | 3c8cc407d7547f8702bfe06deb5f1c9087778ce3 | /hiword/dataloader.py | 4d6c1c1a4918a7d6da18e55b56ca7658f88ceae8 | [
"Apache-2.0"
] | permissive | jadbin/hiword | accaebbdee899e8e3ed11e024d6c488bca36c445 | 7789412747a2b6b59ee974f2a2efd57e355e3282 | refs/heads/master | 2023-04-06T21:57:17.260338 | 2023-03-15T16:21:49 | 2023-03-15T16:21:49 | 166,003,998 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | import os
from collections import defaultdict
from os import listdir
from os.path import join, dirname, isdir
class DictLoader:
def __init__(self):
self.dict = self._load_dict()
def word_freq(self, word):
return self.dict[word]
@staticmethod
def _load_dict():
res = defaultdic... | [
"jadbin.com@hotmail.com"
] | jadbin.com@hotmail.com |
db0ec3865a75078674e752309dad2296cd1bbd26 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/计算几何/直线/practice/面试题 16.14. 最佳直线 copy.py | 9a95efaf08f17ae51ca4cf2e9edb0dae3b4f6f05 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | from typing import List
from collections import defaultdict
def gcd(a, b):
return b if a == 0 else gcd(b % a, b)
class Solution:
def bestLine(self, points: List[List[int]]) -> List[int]:
n = len(points)
res = []
maxCount = 0
for i in range(n):
x1, ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
d1d2cb8fa62f4abf11d0f3c031e100adb3008d82 | 6ed01f4503fc9de234a561c945adff7cf4b1c81b | /ncar_lib/incites_authors/incites_people_reporter.py | 24328f4c760673ff83a6c2cbdde1365ae3f9d3f8 | [] | no_license | ostwald/python-lib | b851943c913a68424a05ce3c7b42878ff9519f68 | 9acd97ffaa2f57b3e9e632e1b75016549beb29e5 | refs/heads/master | 2021-10-28T06:33:34.156095 | 2021-10-21T23:54:49 | 2021-10-21T23:54:49 | 69,060,616 | 0 | 1 | null | 2018-06-21T16:05:30 | 2016-09-23T21:04:46 | Roff | UTF-8 | Python | false | false | 5,465 | py | """
"""
import os, sys
from UserList import UserList
from find_person import PersonFinder, resolveFullName
from data_filter import FilteredAuthorData
from HyperText.HTML40 import *
from html import HtmlDocument
class InCitesAuthorInfo:
def __init__ (self, id, finder, matches):
"""
names are derived from inCites... | [
"ostwald@ucar.edu"
] | ostwald@ucar.edu |
e5159573514325ddff9f0569957cbbf720a52f0e | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /B_HashTable/Basic/L1_2593_Find_Score_of_an_Array_After_Marking_All_Elements.py | c21970e05cffcfd0aa4f1a71aaa041f071a3ed8a | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 493 | py | """ https://leetcode.com/problems/find-score-of-an-array-after-marking-all-elements/
Implement the problem description using a seen array
"""
from header import *
class Solution:
def findScore(self, A: List[int]) -> int:
seen = [0]*(len(A)+2)
ans = 0
for i, x in sorted(enumerate(A), key=lam... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
6831b0fbb7a6dadcaef55a6df4497df57ec91df1 | 2b45cbccd03fb09be78b2241d05beeae171a2e18 | /字节跳动测试开发工程师面试准备/reverseList.py | 58fa0f6880134d2ea79618baafedb614640d8d8f | [] | no_license | MaoningGuan/LeetCode | c90f78ce87a8116458a86c49dbe32e172036f7b4 | 62419b49000e79962bcdc99cd98afd2fb82ea345 | refs/heads/master | 2023-01-03T14:52:04.278708 | 2020-11-01T12:15:41 | 2020-11-01T12:15:41 | 282,859,997 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | # -*- coding: utf-8 -*-
"""
206. 反转链表
反转一个单链表。
示例:
输入: 1->2->3->4->5->NULL
输出: 5->4->3->2->1->NULL
进阶:
你可以迭代或递归地反转链表。你能否用两种方法解决这道题?
"""
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def generateList(l: list) -> ListNode:
prenode = ... | [
"1812711281@qq.com"
] | 1812711281@qq.com |
26f47532449dbed8b39096a83f8cc42ae7de4c34 | 4dbe3b1b2af3ff77e8086ec32ab58dcf47849a3e | /tests/__init__.py | 50530a34b837af8bd1a04e3a510f33988b96846e | [
"MIT"
] | permissive | mnpk/dynamo3 | b83dc700345972ea2336ac8ca842fd9f23edf5c2 | 51eacee60bdf8d058831a9ab3583a2cfe9f91ca9 | refs/heads/master | 2021-01-16T21:54:32.089114 | 2016-04-30T00:53:55 | 2016-04-30T00:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,985 | py | """ Tests for Dynamo3 """
from __future__ import unicode_literals
import six
from botocore.exceptions import ClientError
from decimal import Decimal
from mock import patch, MagicMock, ANY
from six.moves.cPickle import dumps, loads # pylint: disable=F0401,E0611
from six.moves.urllib.parse import urlparse # pylint: di... | [
"stevearc@stevearc.com"
] | stevearc@stevearc.com |
26c93247ee4200baadf6355f694c14262a0ea35e | 0d09e32620e2e82f243ba86e2cc7bec19e521b1b | /Exercises/01-Sequential-Structure/ex06.py | ac27e05e4d8dd83905a5665183e94f38cefa3c27 | [] | no_license | hikarocarvalho/Python_Wiki | 401f7466377f2053cda8bfa850afd0bd64cce047 | 01f755ecc18de13a9ded794ece9e7a8bd4ad7d9e | refs/heads/main | 2023-06-14T08:37:10.728067 | 2021-07-12T20:24:41 | 2021-07-12T20:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #the user gives the ray value
#o usuário dá o valor do raio
ray = float(input("Enter with the ray value: "))
#calculate the area of a circle
#calcula a área do circulo
area = ray**2 * 3.14
#Show the result
#mostra o resultado
print("The area of this circle is:",area) | [
"hikarofcarvalho@gmail.com"
] | hikarofcarvalho@gmail.com |
dcebdc63fede722d67b16b2fb6757f67c3e20076 | 59f03c7528c9c806e3e25b9864db89f25dfa73c2 | /tests/conftest.py | 340ea85a5b213e3a629d9ba903138e93c3473583 | [
"MIT"
] | permissive | OneGov/onegov-cloud | 8d8cd6d0378991ebc2333b62337246719102e723 | c706b38d5b67692b4146cdf14ef24d971a32c6b8 | refs/heads/master | 2023-08-24T15:37:52.536958 | 2023-08-24T14:15:54 | 2023-08-24T14:15:54 | 189,431,418 | 17 | 4 | MIT | 2023-09-14T20:39:37 | 2019-05-30T14:47:14 | Python | UTF-8 | Python | false | false | 34 | py | pytest_plugins = ['tests.shared']
| [
"denis.krienbuehl@seantis.ch"
] | denis.krienbuehl@seantis.ch |
65e75880a88ed030115589f4646788aa413fd91e | 7f7213fe407f252b2323025c9b9e381a73474b7d | /drag_sheet/sds/check_files.py | 077feba9a15d97280ae0c711e7c9b67f9866a925 | [] | no_license | ahy3nz/graphene_build | 0ce62c2123b8c39248048d2cafbd0aafdd06ff9a | 44590b8db799136929fc06e490151f450ad30029 | refs/heads/master | 2021-06-20T07:28:20.958807 | 2019-07-03T19:48:24 | 2019-07-03T19:48:24 | 135,504,561 | 0 | 1 | null | 2018-08-06T21:47:17 | 2018-05-30T22:40:17 | Python | UTF-8 | Python | false | false | 572 | py | import os
import itertools as it
curr_dir = os.getcwd()
sds_folders = ['10sds', '20sds', '30sds', '40sds', '50sds', '60sds',
'70sds', '80sds', '90sds', '100sds']
k_folders = ['k50']
angle_folders = ['0']
trials = ['a', 'b', 'c']
for combo in it.product(sds_folders, k_folders, angle_folders,trials):
si... | [
"alexander.h.yang@vanderbilt.edu"
] | alexander.h.yang@vanderbilt.edu |
54348e0bd8926ccdffa383c51db801b380d5f575 | 428f2c48d6e9dabc3ac63012d4146b98bc38efc1 | /refresh/refresh/wsgi.py | 5f348f3bcbf706c24a9dad495e9bb99837caa19e | [] | no_license | Arange-code/Django-project | f96d61fcebe0aa93bd311f86fe0a0f539b0b68f5 | 53527d1f442d87f8ac8f37d0c544168670e054cf | refs/heads/master | 2021-02-05T12:29:56.201975 | 2020-02-28T14:31:58 | 2020-02-28T14:31:58 | 243,780,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for refresh project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"you@example.com"
] | you@example.com |
1cb4aefd9a5b1077a5c844f51cf26e0e25ef605b | f6761bd4b74ed9c3bc0e8f62e5a1db70c03096f0 | /torch/nn/quantized/dynamic/modules/linear.py | 7574dd53eb761570aa1b6445bc8593eba60de6c2 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | MarisaKirisame/pytorch | b638790a0997d776ad4c5e4c77badc77e5dc94f9 | 59c5de4d0eda8d4f5494602034093933600d0a3d | refs/heads/master | 2021-06-19T10:44:33.846286 | 2019-10-31T22:56:55 | 2019-10-31T22:58:28 | 218,881,408 | 2 | 0 | NOASSERTION | 2019-11-01T00:02:51 | 2019-11-01T00:02:51 | null | UTF-8 | Python | false | false | 3,423 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
from ....modules.linear import Linear as NNLinear
import torch.nn.quantized as nnq
class Linear(nnq.Linear):
r"""
A dynamic quantized linear module with quantized tensor as inputs and outputs.
We adopt the same ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
574a978e3031c00ce0d37a59ee379800c4f2d854 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/Configuration/Languages/SwigInterface/pygccxml-1.0.0/pygccxml/parser/scanner.py | 967c877a080cf5e421a7027aab7eb78b513ab7b5 | [
"BSL-1.0"
] | permissive | 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 | 21,301 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import types
import pprint
import xml.sax
import warnings
import xml.sax.handler
from pygccxml.declaration... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
094f154dc9007753efa071553ad662baa9cb66f4 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/enums/types/matching_function_operator.py | 11a366438b14b5a9625600a5fa27c1e72a1abe49 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# 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... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
233695bb1c57dade93d46c11765d5914bc3e29e0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03039/s199470028.py | 5afbcf0436e1e2a41276ee67cfaa4072153695af | [] | 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 | 673 | py | from itertools import combinations
def solve(N, M, K):
#A = [(n, m) for n in range(N) for m in range(M)]
r = 0
for x in range(N):
r += x * (N - x) * M * M
for y in range(M):
r += y * (M - y) * N * N
return r
def main():
N, M, K = map(int, input().split())
g1 = [1, 1]
g2... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6aa35f7716f196962697548423b8318a68aeb789 | 981e6d9d34a91852407d45c4b7863779e228a516 | /venv/bin/django-admin.py | 92b413158aeac93a5d38ab2670da12a6bbeeaa4c | [] | no_license | starwayagency/astrolabium_viber_bot | 5062ffcb7b35b3608f9434fd486e5806e9084ae1 | ec4e699bbc32e7275da0f12d77a0ae5cf32d000e | refs/heads/master | 2023-08-18T06:36:43.315701 | 2021-10-24T18:04:31 | 2021-10-24T18:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/home/jurgeon/projects/astrolabium/astrolabium_viber_bot/venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'dja... | [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
87a8307caea5976b9dea43adb38dbb519f275bcd | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/jakub/nonlocal_averaging/2d_rotation.py | 44dd801a3538e23552901d09a1db0e020abcbe31 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 5,857 | py | from ibvpy.api import \
TStepper as TS, RTraceGraph, TLoop, \
TLine, BCDof, IBVPSolve as IS, DOTSEval, FEDomain, FERefinementGrid,\
FEGrid, BCSlice
from apps.scratch.jakub.mlab.mlab_trace import RTraceDomainListField
from ibvpy.mats.mats2D.mats2D_sdamage.mats2D_sdamage import MATS2DScalarDamage
from ibvpy... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
2a09d365cb4047774eb081599078201fca564efa | 4d8cfbfe6498d0808eefa8983b07940e006c49fb | /ges/forms.py | 7da85805e7e5201851422ce41a3674ddf51edaf3 | [] | no_license | nikolzp/ges_google | 4b7d18e4fa039a0d4b21e5d71b2a249df958ed2b | fe89f150a624411867877491f127d71eff92bfc9 | refs/heads/master | 2020-03-12T00:59:24.072648 | 2018-04-20T14:43:38 | 2018-04-20T14:43:38 | 130,363,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from django import forms
class GesFilterForm(forms.Form):
max_power = forms.IntegerField(label='Мощность от МВт', required=False)
min_power = forms.IntegerField(label='Мощность до МВт', required=False)
max_area = forms.IntegerField(label='Объем от кв.км', required=False)
min_area = forms.IntegerField(... | [
"nikolzp@gmail.com"
] | nikolzp@gmail.com |
92208027272a6e16363b60e6e399cc6ec08fcbb5 | f3d757f421497e19f2de0d3be21b9ae381511577 | /phoneconfirmation/urls.py | 57e758f3e36f49419e6051dbeed37811f6ed3296 | [
"MIT"
] | permissive | pinax/pinax-phone-confirmation | 526ba350a5bbaaa58f229fad224cf9db41f5bcbc | 102d997db0a7cc00bd862a94987338c25ba24f98 | refs/heads/master | 2023-06-22T15:57:32.364754 | 2019-04-11T23:59:58 | 2019-04-11T23:59:58 | 22,494,944 | 12 | 3 | MIT | 2019-04-11T23:46:54 | 2014-08-01T04:14:23 | Python | UTF-8 | Python | false | false | 369 | py | from django.conf.urls import url, patterns
urlpatterns = patterns(
"phoneconfirmation.views",
url(r"^$", "phone_list", name="phone_list"),
url(r"^confirm_phone/(\w+)/$", "confirm_phone", name="phone_confirm"),
url(r"^action/$", "action", name="phone_action"),
url(r"^get-country-for-code/$", "get_c... | [
"paltman@gmail.com"
] | paltman@gmail.com |
bf1b684d24bbc4cf5a7179c2bf9f39cda4883aac | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_nextflow_job_request.py | 83b25425a82c6befc3917dc50bb320e6b8812723 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,327 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteNextflowJobRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4b7ffa1ba61b1b2c13a7c33cbe25688ed235e748 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.BAX/Mono_16/pdf_to_json_test_Latn.BAX_Mono_16.py | 419f2ec7b49e7c247dfa03dc2764cd5ebdafafec | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.BAX/Mono_16/udhr_Latn.BAX_Mono_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
7e5bdb95eceb8d543706dd352ce4101905da500f | 95c71453ed6cc6f9b94f38a3c1655680618d71a4 | /kickstart/DE/EC.py | 477f7b6f874fc7fe1f0ee7f7bd160a909212de3b | [] | no_license | ZX1209/gl-algorithm-practise | 95f4d6627c1dbaf2b70be90149d897f003f9cb3a | dd0a1c92414e12d82053c3df981897e975063bb8 | refs/heads/master | 2020-05-16T14:56:34.568878 | 2019-12-27T07:37:11 | 2019-12-27T07:37:11 | 183,116,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from collections import Counter
def isOdd(n):
return n % 2
def sortl(ls):
sums = Counter()
tmpl = []
for i in range(len(ls)):
sums[i] = sum(ls[i])
for i, j in sums.most_common():
tmpl.append(ls[i])
return tmpl
def rate(lhu,lla):
win = 0
total = 0
for hu in lhu:
... | [
"1404919041@qq.com"
] | 1404919041@qq.com |
2180fbd40a9cda6cf6e7180218f7f525f2c351ce | 664269ec1346b69b1af11d041d5352921ebef060 | /sample-apps/rds/sample-app/src/pymysql/_compat.py | 252789ec4460a3ee383f18f8af26e42ba82b666d | [
"Apache-2.0"
] | permissive | awslabs/aws-servicebroker | 0f288d4da0201a85e99f27bf7d95cc84d30d2f93 | b28f42ad1e5861fd3009a10ad4bd511a384d3943 | refs/heads/main | 2023-08-30T01:09:05.351854 | 2023-07-06T18:09:22 | 2023-07-06T18:09:22 | 125,404,208 | 468 | 165 | Apache-2.0 | 2023-08-30T14:07:12 | 2018-03-15T17:36:28 | Python | UTF-8 | Python | false | false | 481 | py | import sys
PY2 = sys.version_info[0] == 2
PYPY = hasattr(sys, 'pypy_translation_info')
JYTHON = sys.platform.startswith('java')
IRONPYTHON = sys.platform == 'cli'
CPYTHON = not PYPY and not JYTHON and not IRONPYTHON
if PY2:
import __builtin__
range_type = xrange
text_type = unicode
long_type = long
... | [
"jmmccon@amazon.com"
] | jmmccon@amazon.com |
0f0b988db044a90843787fcfa17790f226c36531 | ce1f8877fa9ff084b75bceec4cc7ddf5b3153b07 | /clif/testing/python/imported_methods_test.py | be75ee040777a7e9a8efe35837f737faf0fc1cda | [
"Apache-2.0"
] | permissive | HenriChataing/clif | 034aba392294ac30e40801815cf4d3172d3d44bd | 307ac5b7957424706c598876d883936c245e2078 | refs/heads/master | 2021-01-23T16:25:19.543400 | 2017-09-01T22:18:03 | 2017-09-01T22:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"mrovner@google.com"
] | mrovner@google.com |
19ed9b12b8f92747a7d5730dd8e9cfa7b98d1e12 | 6ed0b6576857efc67901790dbf926c558d440bd7 | /backend/manage.py | a6ec92e1ac1e5abe024afe74dc330d67aa5ff4bc | [] | no_license | crowdbotics-apps/test-aline-0721-dev-7964 | dae692cc48e757e0275c853ae975d90de97a1657 | 3104874e1b83a8863942ee6a10c2a8aceb6e52f5 | refs/heads/master | 2022-11-19T23:22:20.735744 | 2020-07-22T15:50:19 | 2020-07-22T15:50:19 | 281,442,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_aline_0721_dev_7964.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c32fdb4787b51913dcb94e2128d2912fad182b06 | 3b871bdc672632e72bbdb72f98c914db660829b4 | /Django_Project/Django_Project/asgi.py | 5eb588cf3ef16a21bf99a45c2a9698189ff79917 | [] | no_license | JasbirCodeSpace/Django-Blog-Web-App | b1a58730a17c204fe4c8ad8ab4f3f1d47d5b30e1 | 6af67d03bbec997b972feacb2873efaa542becaa | refs/heads/master | 2022-08-25T23:12:05.591494 | 2020-05-20T07:19:48 | 2020-05-20T07:19:48 | 264,860,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for Blog project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"shikhawat.jasbir@gmail.com"
] | shikhawat.jasbir@gmail.com |
950cf5404ea2b75c9cadf94aa12dfbb274256e43 | 70ad3badf3fa6e2edf1889d8640f25a7ec0d9db1 | /ros_catkin_ws/devel_isolated/rosparam/lib/python2.7/dist-packages/rosparam/__init__.py | 979cdadf5761c2736f68558fa36dbd74e4175656 | [] | no_license | MathieuHwei/OldGaitMaven | 758a937dfda2cf4f1aee266dbbf682ef34989199 | 873f7d9089c5d1c0772bd3447e2b0a31dac68b70 | refs/heads/main | 2023-06-17T18:40:06.230823 | 2021-07-19T23:08:20 | 2021-07-19T23:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/pi/ros_catkin_ws/src/ros_comm/rosparam/sr... | [
"giahuy050201@gmail.com"
] | giahuy050201@gmail.com |
9b51264685632fddec2373e3a341f25d8d1d3fc9 | e00fe1e065b448f6f8c0472ed2b8a39991fa7b1b | /Fuzzy_clustering/version2/template/project_run.py | 4188a8c1f9dfdd2d18eda05f8e884d4dcc2f62af | [
"Apache-2.0"
] | permissive | joesider9/forecasting_library | 1a4ded5b09fc603f91fa1c075e79fc2ed06c08a8 | db07ff8f0f2693983058d49004f2fc6f8849d197 | refs/heads/master | 2023-03-29T12:18:22.261488 | 2021-04-01T08:57:08 | 2021-04-01T08:57:08 | 319,906,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | from Fuzzy_clustering.version2.project_managers.project_eval_manager import ProjectsEvalManager
from Fuzzy_clustering.version2.project_managers.projects_data_manager import ProjectsDataManager
from Fuzzy_clustering.version2.project_managers.projects_train_manager import ProjectsTrainManager
from Fuzzy_clustering.versio... | [
"joesider9@gmail.com"
] | joesider9@gmail.com |
a1b9c909d2e60fb563ed2c58c3bf28e228f2e771 | 751691a21ed1d8c69c35f3cd9b9fd395dc5c1aa8 | /{{cookiecutter.项目名称}}/{{cookiecutter.初始化app名称}}/custom_viewset.py | 10b0164eb8f5f4fa01443e26d36608d2830e48cc | [] | no_license | mtianyan/cookiecutter-drf-mtianyan | 5899847f46e853a0ec5be9bcbf9e7294ce2b70cd | b1298f6c5b20149db4589ce127b2e6e0392552b6 | refs/heads/master | 2022-12-28T18:26:57.969693 | 2020-10-10T08:29:08 | 2020-10-10T08:29:08 | 275,175,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | from rest_framework import viewsets, status
from rest_framework.response import Response
from utils import change_key
class CustomViewSet(viewsets.ModelViewSet):
def retrieve(self, request, *args, **kwargs):
instance = self.get_object()
serializer = self.get_serializer(instance)
res = ser... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
7126110b6be5e67ec95d040579d17ce5b4278f11 | 0b51bc6c7a98d07880955a31e147c0c15b1e3151 | /tonkho/models/stock_quant.py | da383abe5fd406bbfc64072e6fd0731db111501c | [] | no_license | tu95ctv/duan_mi2 | 72e8bcbad73dfea1b57b69dbfd1c8d48ecebb975 | f1728d99e27fcc18684d50f5719f3dcedcffd755 | refs/heads/master | 2020-04-28T21:30:25.017845 | 2019-07-07T13:25:43 | 2019-07-07T13:25:43 | 175,584,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,283 | py |
# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
from odoo.tools.translate import _
from odoo.tools.float_utils import float_compare
from odoo.addons.tutool.mytools import name_compute
from odoo.addons.tonkho.tonkho_tool import write_to_current_path
... | [
"nguyenductu@gmail.com"
] | nguyenductu@gmail.com |
44a6e5f1f5fda5f40b242e469cc4314b106c8306 | e6b969b7c50de5ae61c4b76ec31a982d16523e46 | /sym.py | 3f88fe9fcc929640105de765ca5654c69c9dd65f | [] | no_license | dlovemore/parle | 7d52dc76716f3f8a5f085aa26277b2c52b98b098 | e949c743b2760079eb3c3eb67198e69562521d20 | refs/heads/master | 2021-01-03T07:04:09.060552 | 2020-10-20T13:01:59 | 2020-10-20T13:01:59 | 239,972,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,418 | py | class Base:
def __init__(self, *args):
self._args = args
@property
def args(self): return self._args
@args.setter
def args(self, value): self._args = value
def __repr__(self):
rargs = repr(list(self.args))[1:-1]
return f'{type(self).__name__}({rargs})'
class E(Base):
... | [
"davidlovemore@gmail.com"
] | davidlovemore@gmail.com |
f64233795111df760e19371a35a584413081cff7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/class_def_attr-big-407.py | d189ce0fed43c4a777ecf1f02981982293253209 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | class A(object):
x:int = 1
class A2(object):
x:int = 1
x2:int = 1
class A3(object):
x:int = 1
x2:int = 1
x3:int = 1
class A4(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
class A5(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
x5:int = 1
class ... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
21f188524361b8fa84956085533990c2bc3dbde9 | dcc25b784213b17015d2080a7623c772d474dc22 | /reproduce/AlphaFold2-Chinese/tests/st/mindelec/networks/test_frequency_domain_maxwell/test_frequency_domain_maxwell.py | 65c3d50f3c3832682e1414cb4e3413c5f6f49489 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mindspore-ai/community | 930c9d9fdbead852e3597d522a72fe5b66bfc005 | c72ce898482419117550ad16d93b38298f4306a1 | refs/heads/master | 2023-07-19T19:43:20.785198 | 2023-07-17T06:51:22 | 2023-07-17T06:51:22 | 250,693,100 | 193 | 10 | Apache-2.0 | 2022-10-29T10:01:40 | 2020-03-28T02:00:02 | Python | UTF-8 | Python | false | false | 5,395 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"deanyuton@gmail.com"
] | deanyuton@gmail.com |
a87bf5f31c6025305ca0fd7c72b461abad7671a5 | b2075a92c3854c921a95673a3c5ebb424ab08112 | /python/postprocessing/framework/postprocessor.py | 9eb1775d8dbd0f52159a9b31d8202b7f33272466 | [] | no_license | vhbb/nanoAOD-tools | cd2a6305991369948bb9577c5da3c7e4db275c52 | 14bce3dca68288e65b2daefce755d65914a3765d | refs/heads/master | 2021-09-04T21:44:29.892241 | 2018-01-22T12:50:50 | 2018-01-22T12:50:50 | 106,291,673 | 1 | 1 | null | 2018-01-22T12:50:51 | 2017-10-09T14:06:47 | Python | UTF-8 | Python | false | false | 4,843 | py | #!/usr/bin/env python
import os
import time
import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True
from PhysicsTools.NanoAODTools.postprocessing.framework.branchselection import BranchSelection
from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import InputTree
from PhysicsTools.NanoAODTools.postproce... | [
"andrea.rizzi@cern.ch"
] | andrea.rizzi@cern.ch |
c74d3d817ada2bcf2794d7cffebfb2b3ccbf0e02 | 23a3c76882589d302b614da5f4be0fc626b4f3cd | /python_modules/dagster/dagster/api/snapshot_trigger.py | d9414b7c2318bcc7dc7ca624569ba3ba47f8ef8b | [
"Apache-2.0"
] | permissive | DavidKatz-il/dagster | 3641d04d387cdbe5535ae4f9726ce7dc1981a8c3 | 7c6d16eb8b3610a21020ecb479101db622d1535f | refs/heads/master | 2022-12-20T13:08:36.462058 | 2020-09-14T18:12:12 | 2020-09-14T22:43:26 | 264,703,873 | 0 | 0 | Apache-2.0 | 2020-06-16T09:49:00 | 2020-05-17T15:56:57 | Python | UTF-8 | Python | false | false | 2,276 | py | from dagster import check
from dagster.core.host_representation.external_data import (
ExternalExecutionParamsData,
ExternalExecutionParamsErrorData,
)
from dagster.core.host_representation.handle import RepositoryHandle
from dagster.core.types.loadable_target_origin import LoadableTargetOrigin
from dagster.grp... | [
"prha@elementl.com"
] | prha@elementl.com |
2e5db24847888b7364737d3edcf63f609a59d47b | 65c001b5f572a6b0ca09dd9821016d628b745009 | /frappe-bench/env/lib/python2.7/site-packages/cssutils/css/colors.py | 0c4e4803b12d140e5337d66ce04c6406d01dfd2f | [
"MIT"
] | permissive | ibrahmm22/library-management | 666dffebdef1333db122c2a4a99286e7c174c518 | b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506 | refs/heads/master | 2022-10-30T17:53:01.238240 | 2020-06-11T18:36:41 | 2020-06-11T18:36:41 | 271,620,992 | 0 | 1 | MIT | 2022-10-23T05:04:57 | 2020-06-11T18:36:21 | CSS | UTF-8 | Python | false | false | 6,669 | py | # -*- coding: utf-8 -*-
"""
Built from something like this:
print [
(
row[2].text_content().strip(),
eval(row[4].text_content().strip())
)
for row in lxml.html.parse('http://www.w3.org/TR/css3-color/')
.xpath("//*[@class='colortable']//tr[positi... | [
"iabouelftouh@trudoc24x7.com"
] | iabouelftouh@trudoc24x7.com |
b731f7bb0a905cd69ba11d5d934cc0ac33f22050 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/simple-cipher/7df478df5b6546c4b554e717f00f4c75.py | 902cdef37788b91c86d3d3b606190688274c6913 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,338 | py | '''cipher.py
created 6 Nov 2014
by @jestuber '''
import string
class Caesar(object):
"""docstring for Caesar"""
def __init__(self):
super(Caesar, self).__init__()
# self.arg = arg
def encode(self,plaintext):
return Cipher().encode(plaintext)
def decode(self,encoded):
return Cipher().decode(encoded)
cl... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
51ef9ebcaa98ebc7587f1a24b2cf0e33fca79a0f | 127ed1ba90dcced8cce8366a5139973f1d21c372 | /python/lang/security/audit/insecure-transport/urllib/insecure-urlopener-open-ftp.py | edb25f3b511977c953c437733a648bdd97fd483d | [] | no_license | Silentsoul04/semgrep-rules-1 | f0c53e04b4239555a688bca687340af4736d2514 | 81b81481c0a81e45d3ffba8d60dd98491a1b0446 | refs/heads/master | 2022-12-22T15:41:34.399652 | 2020-09-13T14:59:38 | 2020-09-13T14:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | from urllib.request import URLopener
def test1():
od = URLopener()
# ruleid: insecure-urlopener-open-ftp
od.open("ftp://example.com")
def test1_ok():
od = URLopener()
# ok: insecure-urlopener-open-ftp
od.open("ftps://example.com")
def test2():
od = URLopener()
# ruleid: insecure-urlop... | [
"manhnguyen510@gmail.com"
] | manhnguyen510@gmail.com |
d8df3e108eb2a60fcac671fff7ece2212a4fd8a5 | f0e11aeb7b5bd96c828cf39728eb2fa523f320df | /snapflow/cli/commands/generate.py | 10a6882c60f47d5c9c2a9a96f8435d9b031bb621 | [
"BSD-3-Clause"
] | permissive | sathya-reddy-m/snapflow | 7bc1fa7de7fd93b81e5b0538ba73ca68e9e109db | 9e9e73f0d5a3d6b92f528ef1e2840ad92582502e | refs/heads/master | 2023-05-01T05:14:08.479073 | 2021-05-21T00:14:56 | 2021-05-21T00:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | from __future__ import annotations
import os
from snapflow.cli.commands.base import SnapflowCommandBase
import sys
from contextlib import contextmanager
from importlib import import_module
from pathlib import Path
from types import ModuleType
from typing import List, Pattern
from cleo import Command
from snapflow.cor... | [
"kenvanharen@gmail.com"
] | kenvanharen@gmail.com |
30a67ecaa65f58462ea307f9e7814f41c0df1c1a | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/2e033ce6e3a2cdde5174895cadb3b406b2a013729dd641fee2cebd9f7ed97879/cv2/cv2/StereoMatcher.py | 7ab88dbc440f1ef092cd9bd0c28536beb666920f | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | py | # encoding: utf-8
# module cv2.cv2
# from C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
# by generator 1.147
""" Python wrapper for OpenCV. """
# imports
import cv2.cv2 as # C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
import cv2.Error as Error # <module 'cv2.Error'>
imp... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
60c9db8974c4fcdaf3f0fc22cf0b0a1ad6083ca1 | 5095a2cbc3fea5b63b6f3cabf4ae1bd930cdb479 | /영동/16_숨바꼭질.py | 68332c98c92b749a3fb174e52d26d5d881b07e15 | [] | no_license | syeeuns/week03 | a198150d94caf772d6421b4adf6d8e28793853db | cf40b994fa285800854bac07b7ef86ad5dbdf35a | refs/heads/master | 2023-02-06T13:13:11.012967 | 2020-12-31T04:14:10 | 2020-12-31T04:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py |
from collections import deque
N,K = map(int, input().split())
Max=10**5+1
queue=deque([N])
D=[[-1]*2 for _ in range(Max)]
D[N][0]=0
T=[K]
z=K
while queue:
v = queue.popleft()
for newv in [v-1,v+1,v*2]:
if 0<= newv < Max and D[newv][0]==-1:
queue.append(newv)
D[newv][0]=D[v][0]... | [
"zeroistfilm@naver.com"
] | zeroistfilm@naver.com |
cde76863a99e655e46b43112532dd7da3bcc13d4 | 1bde0c807f17fc431b04b4b9cb338ee3acd34b7d | /.history/predict_20210713124241.py | 7c01488a87ec48a2cd94cb2965aba58fb29d0d56 | [] | no_license | Harrysibbenga/Pytorch-NLP | cf9d7e6376d5e19929e6703c3342c81c1a128be1 | 6f22f6ac5f2bf37f27ed2d6285f3a154eda4b566 | refs/heads/main | 2023-06-19T22:43:35.513874 | 2021-07-14T19:45:15 | 2021-07-14T19:45:15 | 385,595,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | from model import *
from data import *
import sys
rnn = torch.load('char-rnn-classification.pt')
# Just return an output given a line
def evaluate(line_tensor):
hidden = rnn.initHidden()
for i in range(line_tensor.size()[0]):
output, hidden = rnn(line_tensor[i], hidden)
return output
def pre... | [
"sibbengaharry@gmail.com"
] | sibbengaharry@gmail.com |
504ef30ee0168bc45ae83697c4235349baea0e97 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03636/s442033431.py | c0c4bfde22c431f0bcb92965231ba4426799433b | [] | 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 | 107 | py | strings = list(input())
str_len = len(strings)
print(strings[0] + str(str_len - 2) + strings[str_len - 1])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e2a883be7a61493ac52b48a563af686087b2640a | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /19100101/sundyyang/d11_training1.py | 1583902d982bb0769ab8ae4731fc7504566a7143 | [] | 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 | 875 | py |
# day 11
import requests
import getpass
import yagmail
from pyquery import PyQuery
from mymodule import stats_word
# 提取微信公众号正文
response = requests.get('https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA')
document = PyQuery(response.text)
content = document('#js_content').text()
# 应用 stats_word 方法提取前100个词
day11 = s... | [
"6396023+realcaiying@users.noreply.github.com"
] | 6396023+realcaiying@users.noreply.github.com |
2b7b1e3cfa9dbc03cc1d297534895c8a4362ab7a | 3fa27b3ad1c1ca90f2bcf311d89fe8c2ca241cb4 | /Location/models.py | 86164283ca0e8eeb3356a4bbbb87c92cee61e3a0 | [] | no_license | emperorDuke/django-backend-for-ecommerce | 717e15d7be899abcd5a4b7a7d2203c612f001aeb | 83c1ca4d016d876a5c8711ac5cdc448d5a4a533d | refs/heads/master | 2023-02-10T08:57:17.852721 | 2021-01-02T15:49:07 | 2021-01-02T15:49:07 | 271,039,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
from phonenumber_field.modelfields import PhoneNumberField
# Create your models here
class Location(models.Model):
address = models.CharField(_('address'), max_length=100, blank=False)
city = models.CharField(_('city'), max_l... | [
"effiomduke@gmail.com"
] | effiomduke@gmail.com |
093ee2463b1a86d455d7fd106f214c73722c2ee1 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/abc172_a.py | b5c6641365ed028613ce1898499a4b6fd7f432d3 | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # https://atcoder.jp/contests/abc172/tasks/abc172_a
# import sys
# def input(): return sys.stdin.readline().rstrip()
# input = sys.stdin.readline
# input = sys.stdin.buffer.readline
# from numba import njit
# from functools import lru_cache
# sys.setrecursionlimit(10 ** 7)
# @njit('(i8,i8[::1],i4[::1])', ca... | [
"hironobukawaguchi3@gmail.com"
] | hironobukawaguchi3@gmail.com |
e8bb363682e5f8e63ac0e56a986076f1e43f91b6 | 7722c0c2d616af965124120c76bed472900d48bf | /build/pi_io/cmake/pi_io-genmsg-context.py | 093469fa89dd16ff069e8425074390da5c5219da | [] | no_license | EdisonAltamirano/Turtlebot_Mapping | f1cfb190b5a239d0e0bb4932e766cce1ec6c42ba | cfb98058745e5fbf84b2388254dbad2d045362ef | refs/heads/master | 2022-11-13T11:48:27.915328 | 2020-07-06T00:02:45 | 2020-07-06T00:02:45 | 276,209,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/edison/turtle_ws1/src/pi_io/msg/gpio_input.msg"
services_str = "/home/edison/turtle_ws1/src/pi_io/srv/gpio_output.srv"
pkg_name = "pi_io"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "pi_i... | [
"a00825234@itesm.mx"
] | a00825234@itesm.mx |
3a332e60dcd0d31aa40dd5f4b190704f255a6135 | 9d484077026b7fcf26188d77281f573eaec1f1d3 | /scripts/adhoc/dendrogram_cuts.py | fef1177f5d92df2b34a79f14c35a9204d2660122 | [] | no_license | gaberosser/qmul-bioinf | 603d0fe1ed07d7233f752e9d8fe7b02c7cf505fe | 3cb6fa0e763ddc0a375fcd99a55eab5f9df26fe3 | refs/heads/master | 2022-02-22T06:40:29.539333 | 2022-02-12T00:44:04 | 2022-02-12T00:44:04 | 202,544,760 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 582 | py |
plt.figure(figsize=(10, 4))
ax = plt.gca()
hierarchy.dendrogram(z, no_labels=True, color_threshold=0., above_threshold_color='k')
ax.axis('off')
plt.tight_layout()
plt.savefig('methyl_dendrogram_%dcuts.png' % 0, dpi=200)
for i in range(2, 7):
c = clustering.dendrogram_threshold_by_nclust(z, i)
plt.figure(figs... | [
"gabriel.rosser@gmail.com"
] | gabriel.rosser@gmail.com |
92c8a0f78906a2f80b77ac6550c0ec6dda1495c7 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/videoanalyzer/azure-media-videoanalyzer-edge/azure/media/videoanalyzeredge/_generated/models/_azure_video_analyzerfor_edge_enums.py | 35371307bdbb6776cf7c3d240b1ac8a296876400 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 8,408 | 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"
] | openapi-env-test.noreply@github.com |
470289561cd1a64a4f86181ed762202ddd73d780 | 7ba48f82dac0c19d41d7da51cda3aef5173dd77c | /statements/chart_configs.py | 919e9f14fa9b673184013653232467eb12101965 | [] | no_license | saiful7/Betasmartz | 09af8b11f816adf3c2dc41ad5a70f170d6dbb981 | 337a79b59498f42294f19e53eea9cd1c8019ee48 | refs/heads/master | 2022-05-10T04:14:31.382569 | 2018-11-23T06:50:45 | 2018-11-23T06:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,429 | py | from datetime import datetime
from django.db.models import Max
from .constants import *
from common.utils import Month
from portfolios.models import MarketIndex
from .utils import get_price_from_index
class ChartData:
def portfolio_performance_config(self):
config = {
"exporting": { "enabled": ... | [
"31435513+blueskaie@users.noreply.github.com"
] | 31435513+blueskaie@users.noreply.github.com |
aa1b71d24e45defa75b428b775fb1f2ecb43ba1d | 0c4bb0b0c91a6bfb8c6ea529b93a303661bcd625 | /python/table_parse/table_data.py | c6dd3b8e0345ebfde4e1382caa04ecbcd3604d16 | [] | no_license | shahrukhqasim/TIES | 28de4bd962624856e58f5293b5a91427132fa38d | 279ce12ef5303f9428cf72d3f01a1922c7c5d584 | refs/heads/master | 2021-08-23T16:29:02.057736 | 2017-12-05T17:34:55 | 2017-12-05T17:34:55 | 106,605,384 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | class TableData:
def __init__(self, tokens_embeddings, tokens_rects, neighbor_distance_matrix, tokens_neighbor_matrix,
tokens_share_row_matrix, tokens_share_col_matrix, tokens_share_cell_matrix, neighbors_same_row,
neighbors_same_col, neighbors_same_cell, conv_features):
se... | [
"ishahrukhqasim@gmail.com"
] | ishahrukhqasim@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.