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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba67a997031db2c0e515c4a5482c639ada0244ce | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/outputs/Foursquare/FoursquarePrice.py | 7ed7c0dc31db447135de491c19e91a686e1034d0 | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # coding: utf-8
class FoursquarePrice:
"""
Contains price information for this venue
"""
def __init__(self, base):
if base:
self.base = base
else:
self.base = {}
def getMessage(self):
"""
The message for pricing
"""
r... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
c438dec0e818066eca6913ee68770cc101ab5b16 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/eca4897a088f70475799c1d90803f9f3568f619b-<compile_folder_path_for_object>-bug.py | 209ada1c75e30aaa55eb51e44d96b3964a6a4f4d | [] | 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 | 567 | py | def compile_folder_path_for_object(vobj):
' make a /vm/foo/bar/baz like folder path for an object '
paths = []
if isinstance(vobj, vim.Folder):
paths.append(vobj.name)
thisobj = vobj
while hasattr(thisobj, 'parent'):
thisobj = thisobj.parent
try:
moid = thisobj._m... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
782b76b3ba862500e2c28d98323295673cde0ab8 | c36d21353df9c5f6a3a3df4545a29c2b306c3ede | /.history/myproject/account/urls_20200816195149.py | 00ec55aaf9c6d19a79be08041571a55affdf3817 | [] | no_license | moteily/DjangoSystemMonitor | 73289ac8fbc60e0f30be631d10f9f3ea5fc1c021 | f671f3ac226d1add5cc659bc3b2c6bf5ccc9abb5 | refs/heads/master | 2022-12-16T06:45:39.719312 | 2020-09-11T09:37:59 | 2020-09-11T09:37:59 | 286,942,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
urlpatterns = [
# path('login/', views.user_login, name='user_login'), #使用自己写的登录视图
path('login/', auth_views.LoginView.as_view(template_name='account/login2.html'), name='user_login'), #使用Django内置的登录视图
pa... | [
"994283977@qq.com"
] | 994283977@qq.com |
7d57c8924709835bae11e068d6a069a8d27a0e81 | e07ba3eeea2d9a3ce44bdc6fb26386db5b72d8fc | /ijvine_ebay_base/models/mappings/channel_mapping.py | 24cee289061c34b70b341dd716547785569b31cf | [] | no_license | tosink/ab | 8e4b931214eb333e141fd5c6512ba956e5cde3d4 | 1c410562edce9be367ad6cab7ac3370353e395c8 | refs/heads/master | 2023-06-14T10:34:21.120996 | 2021-07-15T20:09:14 | 2021-07-15T20:09:14 | 275,185,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | # -*- coding: utf-8 -*-
##############################################################################
# Copyright (c) 2021-Present IjVine Corporation (<https://ijvine.com/>)
##############################################################################
from odoo import api,fields,models
class ChannelMappings(models.... | [
"komolafetosin@gmail.com"
] | komolafetosin@gmail.com |
a7a068cb2787732e5e0aefa80ae989afbd8c8a3f | 000abefecad43621a246a83f9591f849313000d1 | /code/src/urllib_link_extractor.py | e6d5a2f91bff6fa8953fb1d7574c31764887196a | [] | no_license | carlhinderer/python-networking | 5234cd0f128c31f7221511f90ed07babc49761ca | 6fa8fc161a85dd0c7d2b12096fa9bad7ffb19e8c | refs/heads/master | 2023-07-25T00:05:46.136722 | 2023-07-17T04:34:58 | 2023-07-17T04:34:58 | 195,435,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/env python3
from urllib.request import urlopen
import re
def download_page(url):
return urlopen(url).read().decode('utf-8')
def extract_links(page):
link_regex = re.compile('<a[^>]+href=["\'](.*?)["\']',re.IGNORECASE)
return link_regex.findall(page)
if __name__ == '__main__':
target_url =... | [
"carl.hinderer4@gmail.com"
] | carl.hinderer4@gmail.com |
e7e88e8b01a1e95948518ca69a226b75e544999b | 3197bcf3e80989d0fc13519b2a5689c8b21049d8 | /prototypes/training_scripts/RAW40X/bn_feature_net_61x61_RAW5.py | cb97bc35ce27b6c3846f6144ff9364db51f7d7e3 | [] | no_license | YubinXie/DeepCell | d6a5434dcf5fb208f407caf714d4877ed745a7cd | 887ac6be63e2594c3480680fdde63fbe9dded336 | refs/heads/master | 2021-05-05T16:17:38.178635 | 2018-01-13T20:39:34 | 2018-01-13T20:39:34 | 117,307,949 | 0 | 0 | null | 2018-01-13T02:45:18 | 2018-01-13T02:45:18 | null | UTF-8 | Python | false | false | 1,075 | py | '''Train a simple deep CNN on a HeLa dataset.
GPU run command:
THEANO_FLAGS='mode=FAST_RUN,device=gpu,floatX=float32' python training_template.py
'''
from __future__ import print_function
from keras.optimizers import SGD, RMSprop
from cnn_functions import rate_scheduler, train_model_sample
from model_zoo import bn_... | [
"vanvalen@gmail.com"
] | vanvalen@gmail.com |
8b2611561e559ceec2749279a10d02369fa778ea | 974cd426fa2fed6aee61c5500fff8634e9438f96 | /Extract-TA-Final-Data.py | 2c9bb498f7585887b4bebf1de1a72226a56ef2bc | [] | no_license | nithinveer/CSCI5622-machine-learning-project | 2bb60dfdfdf2faf1ea2446f175de8fe4320bc717 | 473b6e081ea1b1b13a4334f85701cc221ab42775 | refs/heads/master | 2020-09-06T09:47:43.079987 | 2019-12-14T06:43:47 | 2019-12-14T06:43:47 | 220,368,141 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | import csv
import time
from selenium import webdriver
# import the webdriver
driver = webdriver.Chrome("chromedriver.exe")
# insert the tripadvisor's website of one attraction
driver.get(
"https://www.tripadvisor.it/Attraction_Review-g657290-d2213040-Reviews-Ex_Stabilimento_Florio_delle_Tonnare_di_Favignana_e_Form... | [
"nithinveer@iitj.ac.in"
] | nithinveer@iitj.ac.in |
e6849873d5889e824a7450590404cc53faadbc54 | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x0F-python-object_relational_mapping/10-model_state_my_get.py | 1c403524e6ce07ecd6e7e14606e339600d867910 | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/python3
"""
'10-model_state_my_get' module, uses sqlalchemy to list state
objects from a database
"""
if __name__ == '__main__':
from model_state import Base, State
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import sys
engine = create_engine("mysql+mysqld... | [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
8d6fe682b477761cbafc9d73e34a62a0e47e649e | 5c870acaaded85b0a4e7cf1d355b67bf4fd14c84 | /wdiv_dublin_imported.py | ae6dff06b3c46f5cc9a712af459632e42046f670 | [] | no_license | DemocracyClub/aws-cleanup | 723d406b1567eaf02f9ea81dae29fc85e84012c1 | 5fc6aa6de7be780daa3e783c1ed5e237993614c3 | refs/heads/master | 2020-03-27T01:14:53.007694 | 2020-01-02T13:41:06 | 2020-01-02T13:41:06 | 145,694,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | REGION_NAME = 'eu-west-1'
TAGS = {
'application': 'wdiv',
'build_step': 'imported-db',
}
| [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
7e702dd0f6668f2c4ed4705f6e7f8803ccacd033 | cdb02bf06bd3a04a348f9d339510af5dbf8e4294 | /arith.py | 228dbb7348e5140b707fab54c22ee43ff6122adb | [] | no_license | soundarya-1609/sound1609 | 1b0c76b78c2bf1251c3acdc40ac6dc1014e1ca6b | 671aef9a4dc7d672f262d4b77470d6c20627a8f0 | refs/heads/master | 2020-06-13T11:05:14.112940 | 2019-07-09T08:50:16 | 2019-07-09T08:50:16 | 194,634,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | s,g,h=map(int,input().split())
if(1<=s,g,h<=100000):
print((s*g)+(s*h))
| [
"noreply@github.com"
] | soundarya-1609.noreply@github.com |
6982976bc009cbf612b60782f48b01899224605a | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_9443.py | e5dbad08728e5c7c92d1013c7103f026257e6bab | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # python Tkinter: passing an argument to a function
submenu.add_command(label=p, command = lambda p=p: onButtonPosObject(p), underline=0)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4c38bf092c85f8538ca0908d7c32ce4c983df61f | 75e94bd79e559b394a8034db1379b7766bcec7a5 | /twitter/migrations/0001_initial.py | 07557bf6631501e7b8f96d94b565ace815d20561 | [] | no_license | Ianodad/sentimental2 | 760e37fd58d152f8299e53d70d6c4354253b0190 | d5447e887f184bd0e466a679d4c050835568f840 | refs/heads/master | 2022-12-13T06:15:16.271533 | 2018-11-05T06:20:34 | 2018-11-05T06:20:34 | 156,169,900 | 0 | 0 | null | 2021-06-10T20:57:54 | 2018-11-05T06:18:44 | Python | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-02 21:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Sentimen... | [
"you@example.com"
] | you@example.com |
45da72ff736e0733394335645cfa073ce4c6f464 | 0fe394b10b39864915fcc4073a5fa050aa02502e | /WorkOnJson/quick_weather.py | 2c3169e66b87e6f8dd9b31104e41ebc5c752a361 | [] | no_license | JohnAssebe/Python | 9997d47bba4a056fdcd74c6e5207fc52b002cbfd | b88a7c2472f245dc6a0e8900bbea490cb0e0beda | refs/heads/master | 2022-05-14T10:08:37.311345 | 2022-05-09T19:48:53 | 2022-05-09T19:48:53 | 212,562,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import json,requests,sys
if(len(sys.argv)<2):
print("Thanks for using QuickWeather")
sys.exit()
location=''.join(sys.argv[1:])
url ='http://api.openweathermap.org/data/2.5/forecast/daily?q=%s&cnt=3' % (location)
response = requests.get(url)
response.raise_for_status()
# Load JSON data into a Python vari... | [
"noreply@github.com"
] | JohnAssebe.noreply@github.com |
e020cd9fac1867bdcd007c80710133f83c14f27b | 4012f290d83ae7f4c09d7440f26d2acd7e63efbe | /4492.py | e297853f6e24ca3a4aa39171402328b937421e02 | [] | no_license | jinaur/codeup | ffc2d0fdf73892c1f46d80021ad8f4c1293c9e2e | 5f75ace909e2b3151171932cc3ee9f3c49dd46d9 | refs/heads/master | 2023-04-15T07:42:06.244806 | 2021-04-25T13:59:42 | 2021-04-25T13:59:42 | 277,760,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | n = int(input())
r = 0
for i in range(0, n) :
a = list(map(int, input().split()))
r += max(a)
print(r)
print(r) | [
"50763720+jinaur@users.noreply.github.com"
] | 50763720+jinaur@users.noreply.github.com |
bb775a9eaf0cfc2387b24c087b5df5a88b61e778 | 2eb386991d9975f0f8440d90de26e950304ac42f | /TGHACK2020/solve_quantum.py | 8f964339262e835d90583f971c01d35b4a11295d | [] | no_license | Quintec/CTFs2020 | 2816a66e8a486537c31e5ac25253840bc3a8ffe9 | bdaa327c9f0b0ee16ff95bafcaf65f0df8acd8b9 | refs/heads/master | 2022-12-19T21:39:14.129702 | 2020-10-01T16:49:06 | 2020-10-01T16:49:06 | 281,812,929 | 1 | 0 | null | 2020-10-01T16:49:08 | 2020-07-23T00:37:44 | null | UTF-8 | Python | false | false | 10,089 | py | from base64 import b64decode
pub_key = "39a32a9b03510e26eb1e06158e2408de661005da4c6e2d770cb51b725b7a417c427cbf07f4def9211b1f7e749eb76df51bce5cff422f80aa1a4e9e490ab1bc64bb33cc5c4b1568c0119fdabc3ed82743fe93e72018b3df62857370640ad15bc2aa5d1b5effcb752894658a3da9731506bedaae7566676626199c17d2a34329d29189b4b1998994690a7e913... | [
"zhongbrothers@gmail.com"
] | zhongbrothers@gmail.com |
f845d5b9579f2666c27e69aa1146e1a7bc8c6215 | d4679b63ff98399a2e2c90a70196ca61be12d5ed | /Part_1/Алгоритмы и структуры данных/Homeworks/base_string_algo/Task_B.py | 243e8c429728af0bf361cedb45ddb17a80dd03a6 | [] | no_license | akoshel/MADE | 9a702064f9dd5f89664efed4e76f9a2fb0a94743 | e0c3aceaf190bb86bae9f8239ae181d5529bc044 | refs/heads/main | 2023-04-28T14:25:53.210880 | 2021-05-19T16:23:52 | 2021-05-19T16:23:52 | 328,123,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import sys
def zfunction(word):
left = 0
right = 0
n = len(word)
z = [0 for _ in range(n)]
z[0] = None
for i in range(1, n):
z[i] = max(0, min(right - i, z[i - left]))
while i + z[i] < n and word[z[i]] == word[i + z[i]]:
z[i] += 1
if i + z[i] > right:
... | [
"johndoe@example.com"
] | johndoe@example.com |
05acda3d335c7567ea58066a12b62f31f9e00a51 | 70ed3c69f7c7da1567e861cfd1eb582751287677 | /aea/helpers/yaml_utils.py | 1c4922cefd0357648327ad7ba46b3e39eadd2ff3 | [
"Apache-2.0"
] | permissive | nunoedgar-invest/agents-aea | f84769fe8db88f08a6241d060f4a1e344fcc2b98 | fb4b6db1fa6f4706d7b63f473f0c2c6e2857fbf6 | refs/heads/master | 2023-04-13T12:53:52.034608 | 2020-11-25T14:11:53 | 2020-11-25T14:11:53 | 320,889,877 | 0 | 0 | Apache-2.0 | 2023-03-24T05:46:29 | 2020-12-12T17:49:34 | null | UTF-8 | Python | false | false | 5,788 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2020 Fetch.AI Limited
#
# 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 ... | [
"marco.favorito@gmail.com"
] | marco.favorito@gmail.com |
f9577ab60789fcc3b79363e2665bcddb7d88c884 | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/item/consume_2436644.py | 32f11f4f9ad7d1d663e3a032e2f1c460e14fec22 | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 235 | py | # Created by MechAviv
# Color Pop Damage Skin (30 Day) | (2436644)
if sm.addDamageSkin(2436644):
sm.chat("'Color Pop Damage Skin (30 Day)' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() | [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
a312c1f28584823e8204fbb7b63cc82cbe33229e | e8446a5eadd109eef6fee9caf87cc0294e1da54c | /src/zojax/content/permissions/tests/content.py | 2081358c552b466544eacb82fb41ea58ab28b494 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.content.permissions | d24b481063220dec7a8cb35d2da1a464b4168987 | 2bc276e329e4810adbfe2894996b43f77767a869 | refs/heads/master | 2021-01-21T19:35:08.381230 | 2014-02-05T16:37:43 | 2014-02-05T16:37:43 | 2,035,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
49e5c6fe5a468e642a6ae3ef62afe851a982769c | 1119089b34e952ba63fb3f32d4106cfa244ad2a0 | /bitwiseOr.py | e1295b0bda5ccf4f6ad74a2da9c07b78dd1bc318 | [] | no_license | ranog/automatize_tarefas | 72aee22241139cbe6bce226edb6b7aae356344e9 | 31063bb27dc0920e1d0d89fa7b1b52a9d3efa5e6 | refs/heads/main | 2023-05-08T08:50:12.934691 | 2023-04-29T14:47:20 | 2023-04-29T14:47:20 | 340,995,104 | 1 | 0 | null | 2023-04-29T14:47:21 | 2021-02-21T20:18:18 | Python | UTF-8 | Python | false | false | 623 | py | """
Podemos combinar as variáveis re.IGNORECASE, re.DOTALL e re.VERBOSE
utilizando o caractere pipe (|) que, nesse contexto, é conhecido como o
operador ou bit a bit (bitwise or).
Portanto, se quiser uma expressão regular que ignore as diferenças entre
letras maiúsculas e minúsculas e inclua quebras de linha para que
... | [
"jprnogueira@yahoo.com.br"
] | jprnogueira@yahoo.com.br |
cdb60eecbeb502ed80d77d123dee950729649ae9 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Integration/trend_MovingMedian/cycle_7/ar_/test_artificial_32_Integration_MovingMedian_7__100.py | 23dc9609e8635e60f82493524d5d9d04f0b0f2f9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 269 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 7, transform = "Integration", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
4517d856515ed0318f7fbe1ef2efa33138cfe46f | 720e75d59f1e7676d6b60be62179128301b42179 | /supervised_learning/0x06-keras/0-sequential.py | e9583ff56453444ec328a371070ac3fdef3a2e92 | [] | no_license | jadsm98/holbertonschool-machine_learning | 507f3561d08a376638cc9e44c2aae8429288640a | b5e8f1253309567ca7be71b9575a150de1be3820 | refs/heads/master | 2023-05-23T02:17:55.186795 | 2021-06-09T10:48:10 | 2021-06-09T10:48:10 | 317,543,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python3
"""module"""
import tensorflow.keras as K
def build_model(nx, layers, activations, lambtha, keep_prob):
"""function"""
model = K.models.Sequential()
l2 = K.regularizers.l2(lambtha)
model.add(K.layers.Dense(layers[0], activation=activations[0],
inpu... | [
"jadsamaha98@gmail.com"
] | jadsamaha98@gmail.com |
7ea53556015d700182d4cfbdd96777364ff65732 | 4e678f6967745c3da2a3e8899204e34d99fc3be0 | /predicting-office-space-price.py | de7311ad373b3e7f555788351bb0d6bcde57c5c7 | [] | no_license | pratikshah1701/hackerrank | bf689a583b462c0fde697abd536ae0638d14ced9 | 73fde2a0d9dc063e1c06d42f0572ce01f5dd04b9 | refs/heads/master | 2021-01-19T18:47:15.278811 | 2017-04-13T09:16:27 | 2017-04-13T09:16:27 | 88,381,516 | 1 | 1 | null | 2017-04-16T00:20:00 | 2017-04-16T00:20:00 | null | UTF-8 | Python | false | false | 885 | py | #!/usr/bin/env python3
# http://scikit-learn.org/stable/modules/linear_model.html#polynomial-regression-extending-linear-models-with-basis-functions
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
import numpy as np
def main():
F, N = map(int, input().split(... | [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
8e124cb811d3da3867e2d8df80718e1acca92ae1 | 362a1e2826cb8d5f08fad55e57c67e9840aed50f | /tpdatasrc/kotbfixes/scr/Spell090 - Cure Light Wounds.py | f92e749c1a2f77baadfe8e4c11351c4ad5c75921 | [
"MIT"
] | permissive | mercurier/TemplePlus | 1058c8c79f22570425527b97c4b0800a9e7e62d7 | 244f83346d1f1afb64017ee2a8d6e3639e43320d | refs/heads/master | 2020-03-31T16:03:16.554445 | 2018-10-10T04:55:19 | 2018-10-10T04:55:19 | 152,360,491 | 0 | 0 | MIT | 2018-10-10T03:55:37 | 2018-10-10T03:55:37 | null | UTF-8 | Python | false | false | 3,536 | py | from toee import *
def OnBeginSpellCast( spell ):
print "Cure Light Wounds OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
game.particles( "sp-conjuration-conjure", spell.caster )
def OnSpellEffect( spell ):
print "Cure Li... | [
"doug1234@unknown"
] | doug1234@unknown |
9a9a921a3a2df7e1b95922747327906f747bb44e | 1deb6daf07e0511da5d9afcf2317f8b17e82d7cd | /profile_bluesky/startup/instrument/framework/check_bluesky.py | 3ef722eec436815bfa051a75f38699da63a55d66 | [] | no_license | APS-3ID-IXN/ipython-s3blue | 8e77dddc491fd2e7860e95edeea4f6baddca2882 | 0592da145ded871de40f7ab0ddb38f43c5c1a674 | refs/heads/master | 2021-05-13T14:08:58.507117 | 2021-01-11T17:24:01 | 2021-01-11T17:24:01 | 116,731,947 | 0 | 0 | null | 2020-02-21T20:53:04 | 2018-01-08T21:47:45 | Python | UTF-8 | Python | false | false | 591 | py |
__all__ = []
# ensure BlueSky is available
try:
import bluesky
except ImportError:
msg = 'No module named "bluesky"\n'
msg += 'This python is from directory: ' + sys.prefix
msg += '\n'*2
msg += 'You should type `exit` now and find the ipython with Bluesky'
raise ImportError(msg)
req_version... | [
"prjemian@gmail.com"
] | prjemian@gmail.com |
5eb5d7f037e0146d687855c8cfe94e3b770bb449 | 2de3c52fa5c29796a192fc211debbd8200a5cc6f | /day_02/transcripts/trans_lambda_special_functions.py | f31ffd2bbe8837bacafa71d19b6582f5e48ad254 | [] | no_license | Code360In/22022021PY | ecd51c4081fdd2c1a610fb7333540e3d87f9f050 | b0cfee596d4588f7be9c7d3789b319cc039847e3 | refs/heads/main | 2023-03-11T21:38:09.134086 | 2021-03-03T07:30:31 | 2021-03-03T07:30:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> f = lambda x,y : x + y
>>> type(f)
<class 'function'>
>>> f(10, 20)
30
>>> f("py","th")
'pyth'
>>> f([1,2,3], [4,5,6])
[1, 2, 3, 4, 5, 6]
>... | [
"noreply@github.com"
] | Code360In.noreply@github.com |
65712ed29859084ae907e6ce29ecd63fde4303d9 | e3b5e20bcb560a3c37c09f728b9340b1715c1818 | /venv/lib/python3.7/site-packages/plotly/validators/sankey/link/concentrationscales/_cmax.py | af04c29f74c8b67bf4c841231bebe555f69b5700 | [
"MIT"
] | permissive | 180Studios/LoginApp | 63bc50b1f91e7221c7581627ab166eeb01758f5c | 66ff684a81b23d8f45eef2c56be19a2afd95ab29 | refs/heads/master | 2022-12-24T00:33:08.481826 | 2020-02-03T05:14:41 | 2020-02-03T05:14:41 | 144,414,562 | 0 | 1 | MIT | 2022-12-08T01:38:26 | 2018-08-11T19:57:44 | Python | UTF-8 | Python | false | false | 495 | py | import _plotly_utils.basevalidators
class CmaxValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name='cmax',
parent_name='sankey.link.concentrationscales',
**kwargs
):
super(CmaxValidator, self).__init__(
plotly_name=plotly... | [
"kylenahas@gmail.com"
] | kylenahas@gmail.com |
dd71947b6ca880a243da6c0dd13777440a4e55b6 | 6c2ecefb12be6b04f597e3fb887d9389050aa7e1 | /DjangoCourse/第五周/djangopaginater/manage.py | e4a4960967ef6c92ccac80dac1fe273c78632051 | [] | no_license | GmyLsh/learngit | 99d3c75843d2b0b873f26e098025832985c635b3 | 3e7993c7119b79216fea24e5e35035336e4f5f5b | refs/heads/master | 2020-04-12T09:11:55.068312 | 2018-12-19T07:19:42 | 2018-12-19T07:19:42 | 162,395,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangopaginater.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"469192981@qq.com"
] | 469192981@qq.com |
72d965089b093013d83673954b64172404ac0c84 | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Regular-Contest/ARC013/ARC013_A.py | 63d620598137ec0eb1c077a4a2b1d7bb71385b1a | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | #ARC013_A | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
ed66387d76e7fbce176e121389b014c7dd09c877 | c124cd627d1cd2ecc2056a932db4c5c3203943f2 | /.svn/pristine/ed/ed66387d76e7fbce176e121389b014c7dd09c877.svn-base | 41163a62bb505b87a1c601b0219e84a485e7b2a6 | [] | no_license | longooglite/mps | 8fb2093b6a9f483a2ce4543949f7cbf0b280a1f1 | fd8c0d1491b80074fdf5a8c923d50e55a1991ad0 | refs/heads/master | 2021-01-10T08:17:15.852252 | 2016-02-29T21:07:04 | 2016-02-29T21:07:04 | 52,824,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,726 | # [Copyright]
# SmartPath v1.0
# Copyright 2014-2015 Mountain Pass Solutions, Inc.
# This unpublished material is proprietary to Mountain Pass Solutions, Inc.
# [End Copyright]
'''
'''
import optparse
import os
import os.path
import sys
import json
import subprocess
import commands
sys.path.append(os.path.abspath(__... | [
"longuskikirk@gmail.com"
] | longuskikirk@gmail.com | |
7fc5dcb2bed43759133800013a7dec85cdd2e133 | 984954b235db8280d856c178973290e22997f33c | /chainer_/chainercv2/models/resnet.py | 5f9e272858f5219661928370a8cdb8eb17ce49b5 | [
"MIT"
] | permissive | yyfyan/imgclsmob | d7d6f555f7753d9a05f0bb2e674ea927a97abace | 6b6a285621fd3759d75ba52f5bcecc5ad4e80713 | refs/heads/master | 2020-04-10T03:48:53.704889 | 2018-12-07T05:15:49 | 2018-12-07T05:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,577 | py | """
ResNet & SE-ResNet, implemented in Chainer.
Original papers:
- 'Deep Residual Learning for Image Recognition,' https://arxiv.org/abs/1512.03385.
- 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507.
"""
__all__ = ['ResNet', 'resnet10', 'resnet12', 'resnet14', 'resnet16', 'resnet18_... | [
"osemery@gmail.com"
] | osemery@gmail.com |
e1fbf34345ebba3ed98288472b38d6a676eec999 | 32f93afc32e68e27a91e9ba32981a1de67025436 | /caminobakery/specials/models.py | 51e9228aadeba407fce142f43d89464378e08383 | [] | no_license | patrickbeeson/camino-bakery-website | 8b8fb7b3f558c2895aca01d05806dcb4b92a1aa8 | a6e8fd28bf78b2495fc010db51c8a356dfe993dc | refs/heads/master | 2021-01-19T04:28:04.655528 | 2016-06-26T00:33:18 | 2016-06-26T00:33:18 | 44,538,272 | 1 | 1 | null | 2016-06-26T00:33:18 | 2015-10-19T13:52:50 | Python | UTF-8 | Python | false | false | 1,415 | py | from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from datetime import date
from django.db import models
class SpecialTodayManager(models.Manager):
def get_queryset(self):
return super(SpecialTodayManager, self).get_queryset().filter(
day_o... | [
"patrickbeeson@gmail.com"
] | patrickbeeson@gmail.com |
5eca53f811539dd113391d80988dc9df2915ef39 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/sympy/core/logic.py | 7b01ddd79198cf62cdf53490c78de8ce6abb6ed5 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 10,877 | py | """Logic expressions handling
NOTE
----
at present this is mainly needed for facts.py , feel free however to improve
this stuff for general purpose.
"""
from __future__ import print_function, division
from sympy.core.compatibility import range, string_types
def _torf(args):
"""Return True if all args are True,... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
f5ba37152865af615dc4c7ea02c7485ea7e15dd2 | c31ee8136a57a96649196081e1cfde0676c2a481 | /larcv/app/arxiv/mac/pyrgb/lib/image_types/whiteimage.py | c07a07c8d82cdb412922b613a597c53eab1f6c78 | [
"MIT"
] | permissive | DeepLearnPhysics/larcv2 | b12b46168e5c6795c70461c9495e29b427cd88b5 | 31863c9b094a09db2a0286cfbb63ccd2f161e14d | refs/heads/develop | 2023-06-11T03:15:51.679864 | 2023-05-30T17:51:19 | 2023-05-30T17:51:19 | 107,551,725 | 16 | 19 | MIT | 2023-04-10T10:15:13 | 2017-10-19T13:42:39 | C++ | UTF-8 | Python | false | false | 2,354 | py | from whiteplotimage import WhitePlotImage
from .. import np
from .. import QtGui
import pandas as pd
class WhiteImage(WhitePlotImage):
def __init__(self, img_v, roi_v, planes):
super(WhiteImage, self).__init__(img_v, roi_v, planes)
self.name = "WhiteImage"
# # Custom presets for ... | [
"kazuhiro@nevis.columbia.edu"
] | kazuhiro@nevis.columbia.edu |
c14b314ac98a05946788391f5f896b8103c43b17 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/leetCode/TwoPointers/16_3SumClosest.py | c756663e5b6dceb4277f50c1a023fccc7ac1f58e | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,323 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
class Solution(object):
def threeSumClosest(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
nums.sort()
min_distance = 2 ** 31 - 1
length = len(nums)
# keep the s... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
03a6db62ee14b4c816ce8b91fbc13b1e3e23dd8a | 3b11dc40c7d772fffeb4d8683e5c9791c41f6454 | /custom/clients/ecobank/ecobank_inventory/models/inventory_item_new.py | 457ce48b23fd16229b805bbda1a128a5c2cebad5 | [] | no_license | Jacky-odoo/Ecobank | b986352abac9416ab00008a4abaec2b1f1a1f262 | 5c501bd03a22421f47c76380004bf3d62292f79d | refs/heads/main | 2023-03-09T18:10:45.058530 | 2021-02-25T14:11:12 | 2021-02-25T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,949 | py | from odoo import models, api, fields
from odoo.exceptions import ValidationError
from odoo.addons.report_xlsx_helpers.report.abstract_report_xlsx import AbstractReportXlsx
_render = AbstractReportXlsx._render
class InventoryItem(models.Model):
_name = 'inventory.item'
_rec_name = 'name_and_code'
name = f... | [
"francisbnagura@gmail.com"
] | francisbnagura@gmail.com |
a263dc201ad512321189b9cef91c4bfcbab5d09c | 35d9487da9be027445f402aa8a71d8556d555c01 | /stackoverflow_04/stackoverflow/handlers/__init__.py | f41e5b9d5d55250b78319917f0c2e846d41d48a8 | [] | no_license | Manchangdx/StackOverflow | d307f5f33115e866d5ab9bb1bd98307a2d688ad3 | d6a53adc9cc93eb785cda516e360c2c1f58cff3d | refs/heads/master | 2023-05-11T12:56:48.650582 | 2020-03-18T09:57:25 | 2020-03-18T09:57:25 | 246,776,106 | 1 | 0 | null | 2023-05-01T21:23:05 | 2020-03-12T08:00:53 | CSS | UTF-8 | Python | false | false | 51 | py | from .front import front
blueprint_list = [front]
| [
"1195581533@qq.com"
] | 1195581533@qq.com |
8f459caa5a47adf738114926aa3e8f3a9aec67bf | 2fe99e88b7ac8e140bf4569bff651a2addb23c55 | /tests/core/views.py | 56cb2146e7ef2b6f69d920c3563d6b35ca8226b8 | [
"Apache-2.0"
] | permissive | timgates42/django-selenium | e257a714b6dc80a3ff4d0fab6d2e840c8bf46009 | aec304c51dc4e3a5bc412dde892a54241c546ceb | refs/heads/master | 2021-04-19T23:37:57.643274 | 2016-03-28T20:54:32 | 2016-03-28T20:54:32 | 249,641,410 | 0 | 0 | NOASSERTION | 2020-03-24T07:32:52 | 2020-03-24T07:32:51 | null | UTF-8 | Python | false | false | 367 | py | from django.views.generic import FormView
from core.forms import SampleSearchForm
class SampleSearchView(FormView):
template_name = "home.html"
form_class = SampleSearchForm
def form_valid(self, form):
"""Show the results that will be used in tests"""
return self.render_to_response(self.g... | [
"roman.prokofyev@gmail.com"
] | roman.prokofyev@gmail.com |
ed18f34916428b2a8d69182aa9e7270680d87e85 | 34aedd480bb6dc32d8c6750244684239cce4b31f | /Любимые числа.py | 12fef83ae90a494d5f7170ee87fc7c9c2ba8284a | [] | no_license | pohily/Yandex_contests | 67f8161d5330689ca53bea93191ea3c20eca1bd6 | 7e61a1ed269ac522dd9ff168e5faf7b2bddfa021 | refs/heads/master | 2020-06-16T10:21:23.000932 | 2019-07-06T12:45:41 | 2019-07-06T12:45:41 | 195,537,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | with open('input.txt', 'r') as f:
data = []
for line in f:
data.append(line.strip())
result = 0
#/6
num = list(data[0])
len_num = len(num)
sum_num = sum([int(i) for i in num])
if sum_num % 3 == 0:
two = num.count('2')
if two:
result += num.cou... | [
"mpohily@gmail.com"
] | mpohily@gmail.com |
9067837e922d131bdb60e40ef815d9d45e71e173 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/salesforce/unit_test/test_delete_record.py | 22f8048c5e826860a384828d49e3481f6ef0af00 | [
"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 | 2,045 | py | import sys
import os
sys.path.append(os.path.abspath("../"))
from unittest import TestCase
from komand_salesforce.actions.delete_record.action import DeleteRecord
from unittest.mock import patch
from parameterized import parameterized
from komand_salesforce.util.exceptions import ApiException
from util import Util
fr... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
9d1ac4f4db486aa2664a76869691d2758e9302d3 | 759a047559130921ce22b5f27824bbe529b2bd1f | /app.py | 04792572780a0d2311bf27dcc150459f1cd61960 | [] | no_license | hieubkvn123/UOWBookingSystem | 70ce9b6467a4b72241e12916b6850b5165c7aeb8 | 18ab9b0a9dd4008a153266e7675483b4d3c7d431 | refs/heads/master | 2023-07-20T01:41:00.936913 | 2022-02-22T08:56:14 | 2022-02-22T08:56:14 | 252,978,636 | 1 | 0 | null | 2023-07-06T21:58:32 | 2020-04-04T11:27:33 | CSS | UTF-8 | Python | false | false | 15,558 | py | from flask import Flask
from flask import request
from flask import session
from flask import redirect
from flask import render_template
from db_config import DB_CONFIG
from werkzeug.utils import secure_filename
from scipy.spatial.distance import cosine
import os
import cv2
import json
import hashlib
import numpy as ... | [
"hieubkvn123@gmail.com"
] | hieubkvn123@gmail.com |
f2096660c12bb12301e8b7046c1f6445eeb95a90 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/customer_service/client.py | 84b191ffbd990e18dc2455ba989347c9d573735b | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,789 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
bf527f139e7ab97869d713ee48d00d6ab9fa7143 | 648fbac90569e520540a14ad7be6714dc3aa303d | /scripts/cell/card_20000113.py | 7faae6bfcb30522fb19fa897ee50d9b480817bb8 | [] | no_license | zhlhmjz/kbe_lscs | e573c1eac74c12005cb6c50288a952b2874e231b | 6dc4eae5ab7fee66e929204abc80125f4f6be8f6 | refs/heads/master | 2021-08-24T13:43:42.208183 | 2017-11-21T08:39:14 | 2017-11-21T08:39:14 | 111,522,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *
from interfaces.GameObj import GameObj
class card_20000113(GameObj):
def __init__(self):
GameObj.__init__(self)
#--------------------------------------------------------------------------------------------
# Callbacks
#-... | [
"752612571@qq.com"
] | 752612571@qq.com |
d972653eb9b5efb6a32106a5d882e2c333590ce1 | 932a6797f1e97c7f8c96af83647fc27d2324765e | /python/1209. Remove All Adjacent Duplicates in String II.py | 5066de222f5685580807c4f3d8b82724009383a9 | [] | no_license | rhzx3519/leetcode | 1245e0a19dbcb4b853eb0ac369601f31171b55c5 | 2fe336e0de336f6d5f67b058ddb5cf50c9f00d4e | refs/heads/master | 2023-08-17T01:27:49.674440 | 2023-08-16T23:08:59 | 2023-08-16T23:08:59 | 85,682,362 | 3 | 1 | null | 2021-05-08T12:10:56 | 2017-03-21T09:23:02 | Python | UTF-8 | Python | false | false | 585 | py | class Solution(object):
def removeDuplicates(self, s, k):
"""
:type s: str
:type k: int
:rtype: str
"""
n = len(s)
l = 1
for i in range(1, n):
if s[i]==s[i-1]:
l += 1
else:
l = 1
if l=... | [
"louzhenghao@itiger.com"
] | louzhenghao@itiger.com |
354b21a7a9fd55f0b8e3762bb9d82d157b5325e7 | e5eec1428da1d24d3e9b86f5723c51cd2ca636cd | /DFS-BFS/감시 피하기_기출.py | c3a4fffe6a112eca469b549d5cb28781ad38a0dc | [] | no_license | jamwomsoo/Algorithm_prac | 3c36c381f59277721517d331a8f1640399d80c1d | 8393f3cc2f950214c47f3cf0b2c1271791f115d0 | refs/heads/master | 2023-06-09T06:49:14.739255 | 2021-06-18T06:41:01 | 2021-06-18T06:41:01 | 325,227,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | from itertools import combinations
n = int(input())
graph = []
space = []
teacher = []
for i in range(n):
graph.append(list(map(str,input().split())))
for j in range(n):
if graph[i][j] =='T':
teacher.append((i,j))
if graph[i][j] == 'X':
space.append((i,j))
coms = co... | [
"41579282+jamwomsoo@users.noreply.github.com"
] | 41579282+jamwomsoo@users.noreply.github.com |
99f5e7a6106a9ca9ace7b3ec2d3aedcf795a2c18 | 10a18920f93008659f49b18fb016b84a21765e73 | /server/venv_ubuntu/lib/python3.8/site-packages/os_ken/services/protocols/bgp/base.py | 5e786f68b0f5b84e62d6eeb188b239f2d23863c1 | [] | no_license | psitadmin/network-junco | 48fa704878fe9566cda393eddd88dafae07fa47c | 63a1e4afa46514852345e03eb32a2911621540f2 | refs/heads/master | 2023-08-18T07:01:48.836761 | 2021-09-28T09:47:42 | 2021-09-28T09:47:42 | 403,928,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,165 | py | # Copyright (C) 2014 Nippon Telegraph and Telephone Corporation.
#
# 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... | [
"enrique.garcia.practicas@telefonica.com"
] | enrique.garcia.practicas@telefonica.com |
fc35dc85829511903157c837b3b653a21f6e592c | b9efe7ff9b6fe70382d3d94a3c542af6c0f6f6bb | /python/day02_1.py | 59b5a3b379f172d5eaa61fd4c81a971663f01210 | [] | no_license | shalgrim/advent_of_code_2020 | 0ec28b3e09ab83252d1aaec773ed1724232c43b7 | 822d1894d3443773d9a8e0e106e3cd53d1b59558 | refs/heads/main | 2023-02-14T05:30:06.082537 | 2020-12-25T06:49:21 | 2020-12-25T06:49:21 | 317,433,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import re
from file_ops import readlines
LO = 'lo'
HI = 'hi'
LETTER = 'letter'
PWD = 'pwd'
PATTERN = re.compile(
rf'(?P<{LO}>\d+)-(?P<{HI}>\d+)\s+(?P<{LETTER}>[a-z]):\s+(?P<{PWD}>\S+)'
)
def is_valid(groupdict):
lo = int(groupdict[LO])
hi = int(groupdict[HI])
letter = groupdict[LETTER]
password ... | [
"shalgrim@gmail.com"
] | shalgrim@gmail.com |
f5872f5d610a4a0d91395d4b552d2a319606d94e | 498474967e1480acf5cc0f25756e1d748c677195 | /projects/mmdet3d_plugin/core/bbox/coders/__init__.py | 2be78ce5389f62d716cc5f1aded821641aa88dea | [
"MIT"
] | permissive | hustvl/MapTR | adc37f78cbae9d8c909dd8648088a4930bf55377 | feb0664e64684d3207859279f047fa54a1a806f6 | refs/heads/main | 2023-08-25T17:44:47.672149 | 2023-08-14T13:31:17 | 2023-08-14T13:31:17 | 518,672,305 | 643 | 95 | MIT | 2023-09-14T03:30:23 | 2022-07-28T02:20:43 | Python | UTF-8 | Python | false | false | 109 | py | from .nms_free_coder import NMSFreeCoder, MapTRNMSFreeCoder
__all__ = ['NMSFreeCoder', 'MapTRNMSFreeCoder']
| [
"cnliao62@gmail.com"
] | cnliao62@gmail.com |
686ba46f38dce1a56d393f047007c0db612c49f0 | 59cc5177ea0078daf7e33cce1e774e2cd23340ad | /modoboa/extensions/webmail/exceptions.py | 15465e565bd7964bd1c36e400ef31d4e1ab34f1b | [
"MIT"
] | permissive | kirillsem/modoboa | 4045bc15c94efcbe7effc7768d20bfb38ad0cfca | 03fce9f5bba87ef00a4beae81e9a7c182c00271a | refs/heads/master | 2021-01-10T08:26:38.861385 | 2016-03-14T16:26:40 | 2016-03-14T16:26:40 | 55,626,425 | 1 | 0 | null | 2016-04-06T17:25:47 | 2016-04-06T17:25:47 | null | UTF-8 | Python | false | false | 799 | py | # coding: utf-8
"""
:mod:`exceptions` --- Webmail custom exceptions
-----------------------------------------------
"""
import re
from django.utils.translation import ugettext as _
from modoboa.lib.exceptions import ModoboaException
class WebmailError(ModoboaException):
errorexpr = re.compile("\[([^\]]+)\]\s*([^\... | [
"ks1986830@hotmail.com"
] | ks1986830@hotmail.com |
66b81cfb4c248e2b702680d824dc08326e2d246c | 7a0625ef4c271ed9992a736de7bb93215b7013fd | /leetcode296.py | 2e3bab1f97dfac050548dae0fb33092c886bc530 | [] | no_license | yuchien302/LeetCode | 6576b93c005ea2275646df7b9547c22683d3b45c | c9a53ef2fc1fd1fea7377c3633689fa87601dba6 | refs/heads/master | 2020-12-11T01:42:36.980414 | 2015-12-03T02:53:51 | 2015-12-03T02:53:51 | 36,424,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | class Solution(object):
def minTotalDistance(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
rows, cols = [], []
for r in range(len(grid)):
for c in range(len(grid[0])):
if grid[r][c] == 1:
rows.append(r)
... | [
"yc2257@cornell.edu"
] | yc2257@cornell.edu |
9f6ce3fd9cc557687e32d06185d383e7e5b86f85 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Scaling-nmt_for_Pytorch/fairseq/data/mask_tokens_dataset.py | 0ca9051c9ae9eaf4bb31a917ae115cbeb13879a7 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 8,721 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from functools import lru_cache
import numpy as np
import torch
from fairseq.data import Dictionary, data_utils
from . import BaseWrapperDat... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
cbc641367920120c0c26782428bbda70b556c7b8 | 95ed0367aaa71e98121fe8de3159a71440a002fb | /covalent_dock.py | e0b097f91950d9c116ba0b85bd62738aa395c6c1 | [] | no_license | matteoferla/SARS-CoV-2_CL3_covalent_docking | ce0ef9ee2d68679db04b114400e59dde6bbc238e | 396cb2cb45e6a4377a224e9a758114699c182814 | refs/heads/master | 2021-05-21T23:42:43.341311 | 2020-04-16T20:20:21 | 2020-04-16T20:20:21 | 252,863,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,678 | py | ########################################################################################################################
__doc__ = \
"""
Automated covalent ligand docking via PyRosetta.
"""
__author__ = "Matteo Ferla. [Github](https://github.com/matteoferla)"
__email__ = "matteo.ferla@gmail.com"
__date__ =... | [
"matteo.ferla@gmail.com"
] | matteo.ferla@gmail.com |
41cbb58cbfba43c9e274699b0765e91ab8899243 | 7e0393251012e91213dddfd9c93f6b6b73ca2bfe | /cloudnetpy/categorize/categorize.py | ec936aa8e6603ec0ac3a627a8ea74608c0d7a39f | [
"MIT"
] | permissive | josephhardinee/cloudnetpy | ff4cc0303d7f2ae40f2d3466298257659ff3ccde | c37760db3cdfe62ae769f8090ba621803ec9a92c | refs/heads/master | 2021-03-06T15:37:51.529776 | 2020-02-13T09:05:29 | 2020-02-13T09:05:29 | 246,207,849 | 0 | 0 | MIT | 2020-03-10T04:29:48 | 2020-03-10T04:26:16 | null | UTF-8 | Python | false | false | 12,813 | py | """Module that generates Cloudnet categorize file."""
from cloudnetpy import output, utils
from cloudnetpy.categorize import atmos, classify
from cloudnetpy.metadata import MetaData
from cloudnetpy.categorize.radar import Radar
from cloudnetpy.categorize.model import Model
from cloudnetpy.categorize.mwr import Mwr
from... | [
"simo.tukiainen@fmi.fi"
] | simo.tukiainen@fmi.fi |
222b7d97add5561ab0cbbb85d291938056796870 | c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5 | /keras2/keras67_1_male_female1_3.py | 5174b0203aff12ab1f0031c2fd86beac7c877af9 | [] | no_license | 89Mansions/AI_STUDY | d9f8bdf206f14ba41845a082e731ea844d3d9007 | d87c93355c949c462f96e85e8d0e186b0ce49c76 | refs/heads/master | 2023-07-21T19:11:23.539693 | 2021-08-30T08:18:59 | 2021-08-30T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,620 | py | # male, female >> Imagegenerator, fit_generator 적용해서 완성
import numpy as np
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from sklearn.model_selection import train_test_split
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Dropout, MaxPool2D, Flatt... | [
"hwangkei0212@gmail.com"
] | hwangkei0212@gmail.com |
6220ec3c1d5d66cf63aa67161dd5af103bf25430 | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/libCharon/Charon/VirtualFile.py | 889b4f75ba65f5df6aa14fb75d3d2e9facb7ee08 | [
"LGPL-3.0-only",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 2,852 | py | # Copyright (c) 2018 Ultimaker B.V.
# libCharon is released under the terms of the LGPLv3 or higher.
import os
from Charon.FileInterface import FileInterface # The interface we're implementing.
from Charon.OpenMode import OpenMode #To open local files with the selected open mode.
# The supported file types.
from Cha... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
fe0e205b24614e4078ee8b779a51a579a3eb14c9 | d7ea06d519469f53b2cc47eeaa8892bc47d2a6ab | /crypten/mpc/mpc.py | 4373380afaef103f2c787f29d41d90c89ecef5ed | [
"MIT"
] | permissive | hyunjay/CrypTen | 668a3ec17f78564a0b1ead2205bc4d1b19373278 | 4854e181ea0c7bf72509e57bd31f75cde7c79ba6 | refs/heads/master | 2022-09-13T18:20:48.008375 | 2020-06-02T19:29:55 | 2020-06-02T19:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,528 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from dataclasses import dataclass
from functools import wraps
import crypten
import torch
from crypten import communi... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
449c7e0445bc41c83b4c685a9040e6497bc4ed4a | d9784faf0be563bee3138233393d112b98655288 | /src/config/setting.py | 1bf369921967145702f473a142a4b51e33f1c979 | [
"BSD-2-Clause"
] | permissive | jack139/cnnc | 3e0ebd13d03e6ff0fd7ba48ebde0a06ce4c7a404 | c32611ec01af50bedb67dcd4c8a28e4b0c7a9aef | refs/heads/master | 2022-12-21T08:51:58.746515 | 2020-09-23T07:50:25 | 2020-09-23T07:50:25 | 297,877,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import web
from pymongo import MongoClient
#####
debug_mode = True # Flase - production, True - staging
#####
#
enable_proxy = True
http_proxy = 'http://192.168.2.108:8888'
https_proxy = 'https://192.168.2.108:8888'
proxy_list = ['192.168.2.103']
enable_local_test = True... | [
"jack139@gmail.com"
] | jack139@gmail.com |
94d89d11d03e5c70402d5bb6b1b2a8ddae56a66e | 3f96f46389d5786ab48a909d6a164fb89fdc0958 | /tests/cases/test_integration/test_view_login.py | 81d387dddb778bc82e924dc43910f020152818ac | [
"MIT"
] | permissive | veronicazgirvaci/pyramid_fullauth | 80f7ade90fce1671992b2b10e44c85a7c8cc9621 | 1db5b6b0809160525a0c45959fa2d48f3b49b2fb | refs/heads/master | 2020-12-24T23:09:48.500095 | 2013-09-30T21:29:52 | 2013-09-30T21:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,036 | py | # -*- coding: utf-8 -*-
import time
from tests.utils import BaseTestSuite
class TestLogin(BaseTestSuite):
def check_if_logged(self, app):
'''
Checks for auth_tkt cookies beeing set
'''
cookies = app.cookies
if 'auth_tkt' in cookies and cookies['auth_tkt']:
re... | [
"fizyk@fizyk.net.pl"
] | fizyk@fizyk.net.pl |
5c15664c8705aa9530e82c6c9798831246cf0d90 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-green/aliyunsdkgreen/request/v20170823/DescribeImageUploadInfoRequest.py | 98053889b1fee3b30726e6d4d04d47763b8ec828 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,423 | 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 |
61e5b864cfd8e7a70ea20c22e2b66415866c0b73 | bddad6fbb4d991eceecff417f2de4f763413001d | /sage/query_engine/iterators/union.py | ecd2142255ba820000dda516789466559de90dab | [
"MIT"
] | permissive | GDD-Nantes/sage-engine | 39ff837bde5eb1a7eadd61548881a0889bed63fe | ea06b77b15b13f5297e937718c1c742e8afcc017 | refs/heads/master | 2021-01-02T02:41:56.890666 | 2020-02-04T10:17:01 | 2020-02-04T10:17:01 | 239,457,429 | 1 | 0 | MIT | 2020-02-10T08:00:30 | 2020-02-10T08:00:29 | null | UTF-8 | Python | false | false | 3,832 | py | # union.py
# Author: Thomas MINIER - MIT License 2017-2020
from typing import Dict, Optional
from random import random
from sage.query_engine.iterators.preemptable_iterator import PreemptableIterator
from sage.query_engine.protobuf.iterators_pb2 import SavedBagUnionIterator
class BagUnionIterator(PreemptableIterator... | [
"tminier01@gmail.com"
] | tminier01@gmail.com |
1459049135b5aec32c47e42b01e739658e3ec84e | 6fc7f97017613956e23bf0117d03340d858793aa | /ManufactureAI/Hw2/seo.py | ad459d70521a636f24fc0f7a73301240860df70f | [] | no_license | Chaeguevara/21_1-SNU | 50c1a026b472c2caf5b1fed6307e01b1f91c9871 | fcef342729ab9e57ee5c77017499e9514f790870 | refs/heads/master | 2023-07-12T20:39:01.873987 | 2021-08-22T15:28:17 | 2021-08-22T15:28:17 | 345,637,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | import numpy as np
import matplotlib.pyplot as plt
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def sigmoid_deriv(x):
return sigmoid(x) * (1-sigmoid(x))
def forward(x,w1,w2,predict = False):
a = np.matmul(x,w1)
z = sigmoid(a)
bias = np.ones((len(z),1))
z = np.concatenate((bias, z), axis =... | [
"dfso2@naver.com"
] | dfso2@naver.com |
dcc2c2598e923093814282382f2d8df499e89480 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/friendly.py | bfb435a4a4daa448c9e576c606b7094a029c6abb | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('friendly', __name__, url_prefix='/friendly')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('rep... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
8d6074a66ec69f64cfd4dfad74e5e729f844c25b | 4d89652acca24e0bc653e0b4cb5846ceb5b568e4 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/sourcerepo/v1/sourcerepo_v1_messages.py | 65b32b38c31b993d7e782466622f8ebc4c8c7a25 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ibssasimon/LyricLingo | 410fcec94d2bd3ea75c975c55713f5b8fb913229 | 0dfc951b270912470b36ce0083afd9d4fe41b10a | refs/heads/master | 2021-06-25T10:00:18.215900 | 2020-01-09T00:35:46 | 2020-01-09T00:35:46 | 222,135,399 | 2 | 1 | null | 2021-04-30T20:54:14 | 2019-11-16T17:32:19 | Python | UTF-8 | Python | false | false | 35,655 | py | """Generated message classes for sourcerepo version v1.
Accesses source code repositories hosted by Google.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py import extra_typ... | [
"ibssasimon@gmail.com"
] | ibssasimon@gmail.com |
d3e63e5240481f26d30cbfeed81e5322157d3cac | 55815c281f6746bb64fc2ba46d074ca5af966441 | /easy/109.py | b0bcba5aafd2cc72608ac01def789b4e584acccd | [] | no_license | brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from typing import Optional
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left ... | [
"brandoneng000@gmail.com"
] | brandoneng000@gmail.com |
a951d4ed2a50441fa8b01007daeba48cbc836c73 | adfc4f6efd75a1372897f535c07de7d6440d1023 | /src/faber/module.py | 5a2940b7bc953b6d38bafc651540675bd3aef501 | [
"BSL-1.0"
] | permissive | terrorfisch/faber | cf00555f258155e469dbe4cddc0bf75011ebf657 | bea11ab054c46babdd75399b0eabf52d318e52f6 | refs/heads/master | 2021-09-15T03:02:26.009724 | 2018-03-07T15:05:37 | 2018-03-07T15:38:56 | 134,722,324 | 0 | 0 | null | 2018-05-24T13:52:40 | 2018-05-24T13:52:39 | null | UTF-8 | Python | false | false | 4,346 | py | #
# Copyright (c) 2016 Stefan Seefeld
# All rights reserved.
#
# This file is part of Faber. It is made available under the
# Boost Software License, Version 1.0.
# (Consult LICENSE or http://www.boost.org/LICENSE_1_0.txt)
from .feature import lazy_set
from .artefact import artefact
from .tool import tool
from .utils ... | [
"stefan@seefeld.name"
] | stefan@seefeld.name |
988f63e6799f4f20f17484e37aa2946fad80c0fb | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1396.py | 6ab0f43a4df428bcb8e61fe735134e75116b357b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py |
def count(arr,startX,startY,deltaX,deltaY):
TCount = 0
XCount = 0
OCount = 0
EmptyCount = 0
for i in xrange(4):
currentX = startX + i*deltaX
currentY = startY + i*deltaY
currentSpace = arr[currentY][currentX]
if currentSpace == '.':
EmptyCount+=1
elif currentSpace == "T":
TCo... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2cddfa6620d75c40f2babc17964077c4f76d6a5d | c0d489d1173c05d9225b6f927d93d50e8038740b | /backend/backend_config.py | 57adb3dff894c70403ef93605c2d6071a979190f | [
"Apache-2.0"
] | permissive | rishub2000/jina-app-store-example | f89f31b608017eeba63455ecb184ccf9be28ed72 | 9abedf615c1289b4a496319070026752b0c3db58 | refs/heads/main | 2023-06-07T05:55:08.142649 | 2021-06-25T12:39:51 | 2021-06-25T12:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # in executors.py
backend_model = "sentence-transformers/msmarco-distilbert-base-v3"
backend_top_k = 10
# in app.py
backend_port = 45678
backend_workdir = "workspace"
backend_datafile = "./data/appstore_games-shuffled.csv"
text_length = 50 # How many words to index for each app? Longer = more accurate, shorter = quick... | [
"alexcg@outlook.com"
] | alexcg@outlook.com |
57ff4a2e5760d2848631cf24f0237c021aad59ea | 4d892dc51e2dda0fcce246ac608fc4e0ce98c52b | /FirstStepsInPython/Advanced/Exercise/Lists_as_Stacks_and_Queues/06_Balanced_Parentheses.py | 8614d5dd45314f7919be76544dc2bb509b579b83 | [
"MIT"
] | permissive | inovei6un/SoftUni-Studies-1 | 510088ce65e2907c2755a15e427fd156909157f0 | 3837c2ea0cd782d3f79353e61945c08a53cd4a95 | refs/heads/main | 2023-08-14T16:44:15.823962 | 2021-10-03T17:30:48 | 2021-10-03T17:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | open_list = ["[", "{", "("]
close_list = ["]", "}", ")"]
line_input = input()
stack = []
stop = False
for ll in line_input:
if ll in open_list:
stack.append(ll)
elif ll in close_list:
pos = close_list.index(ll)
if (len(stack) > 0) and (open_list[pos] == stack[len(stack) - 1]):
... | [
"lazar_off@yahoo.com"
] | lazar_off@yahoo.com |
cf80c137888b6f49b5adfee6d6a3e79e478a0b62 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/pandas/compat/__init__.py | d0d7d6a1b8da633e171ba50ced5e1f32e7cf614b | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,119 | py | """
compat
======
Cross-compatible functions for different versions of Python.
Other items:
* platform checker
"""
import os
import platform
import sys
from pandas._typing import F
from pandas.compat.numpy import (
is_numpy_dev,
np_version_under1p19,
np_version_under1p20,
)
from pandas.compat.pyarrow imp... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
795611a5f2a7a0b294ec606215e5497efd29de1c | bf681fbd7edbf4f8f1e0b20cbd09b362f777c9c3 | /bazel/libtorch_example/print_libs.py | c8dd39275881c5cb20075ffa0925bc026811cc40 | [
"BSD-3-Clause"
] | permissive | EricCousineau-TRI/repro | 308d4a86f3c7da8be5811db2f3f68d39db60d7ed | 9800f45e07f511c9a355ee90333955451b55559a | refs/heads/master | 2023-08-31T13:49:23.540640 | 2023-08-25T19:18:33 | 2023-08-25T19:18:33 | 87,116,976 | 24 | 13 | NOASSERTION | 2023-03-25T01:40:55 | 2017-04-03T20:19:28 | Jupyter Notebook | UTF-8 | Python | false | false | 317 | py | #!/usr/bin/env python
from subprocess import PIPE, run
def subshell(cmd, check=True):
return run(cmd, shell=True, check=check, stdout=PIPE, text=True).stdout
libs = subshell("cd bazel-libtorch_example/external/libtorch/lib && ls *.so *.so.*").split()
libs.sort()
for lib in libs:
print(f" -l:{lib} \\")
| [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
ed8a77ad78f2add9dd000c709926b510e11b3318 | 1dcb3fe92427c77fadcb45713b408ddb3924ad4b | /draw_k-means_compare.py | c5d4fbcc2d22f3ea37fc9078dfb564b618d38a79 | [] | no_license | Phoenix-Z/GraduateProject | e6402094f5be44e405c613ba7ec0dad0b3da2140 | a57bfe5f62e09c5965ead7979b9532883d1668d7 | refs/heads/master | 2021-01-22T07:28:03.643801 | 2017-06-23T12:46:35 | 2017-06-23T12:46:35 | 81,826,397 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # coding:utf-8
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei']
n_groups = 4
# 运行时间
means_paillier = (2.122, 1.941, 10.236, 24.956)
means_01encode = (0.121, 0.215, 3.491, 10.478)
# 平方误差
# means_paillier = (16.44, 3908.48, 10.83, 3213.73)
# means_01encode = (7.95, 1622.82... | [
"phoenixzhao1105@gmail.com"
] | phoenixzhao1105@gmail.com |
919e8f70a509de199a1ce314e107413e601632fb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /8gE6FCdnWbECiR7ze_8.py | 5c565fe1fe7bc819109064f88b70a5fc5232d2ca | [] | 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 | 2,817 | py | """
In numbers theory, a positive composite integer is a Smith number if its
digital root is equal to the digital root of the sum of its prime factors,
with factors being counted by multiplicity. Trivially, every prime is also a
Smith number, having just one prime factor that is equal to itself. If two
Smith numbers... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a2642d2639d84bd20afc6ca9dcd7b67aa9139250 | f7f21de636b89967a6fcef4f832eef4b4e7f3647 | /photologue/tests/test_zipupload.py | faeae2a056c1cff38bace897689bff8299a6d118 | [
"BSD-3-Clause"
] | permissive | JackFill/django-photologue | 633caf8192320686590c181250df800b153ee452 | c5d0bf2f0ded6481d98d6b2f09fbf4ccc164ddfb | refs/heads/master | 2021-01-18T17:55:12.740506 | 2015-07-11T21:28:25 | 2015-07-11T21:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,249 | py | import copy
from django.test import TestCase
from django.contrib.auth.models import User
from ..models import Gallery, Photo
from .factories import GalleryFactory, PhotoFactory, SAMPLE_ZIP_PATH, SAMPLE_NOT_IMAGE_ZIP_PATH, \
IGNORED_FILES_ZIP_PATH, LANDSCAPE_IMAGE_PATH
class GalleryUploadTest(TestCase):
"""... | [
"richard@arbee-design.co.uk"
] | richard@arbee-design.co.uk |
6f909d33ba8019593fd93050860954ef4fc97bde | cf7c928d6066da1ce15d2793dcf04315dda9b9ed | /Jungol/Lv1_LCoder_Python/pyd0_기타_자료형/Main_JO_943_기타_자료형_자가진단3.py | 2175917ffaefc8ef91175bbdf0b8bf336b9129c9 | [] | no_license | refresh6724/APS | a261b3da8f53de7ff5ed687f21bb1392046c98e5 | 945e0af114033d05d571011e9dbf18f2e9375166 | refs/heads/master | 2022-02-01T23:31:42.679631 | 2021-12-31T14:16:04 | 2021-12-31T14:16:04 | 251,617,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # 인터넷 게임 계정의 수를 입력 받은 후, 각 계정의 아이디, 승률, 계급을 입력 받아, 계급이 'Bronze'가
# 아니면서 승률이 60.0 이상이거나, 계급이 'Platinum' 인 아이디를 입력 받은 순서대로 출력 예와 같은
# 형식으로 "[Gosu]"를 붙여 출력하는 프로그램을 작성하시오
n = int(input())
for i in range(n):
a, b, c = input().split()
bb = float(b)
if bb >= 60.0 and c != "Bronze":
print(f'[Gosu] %s' % a... | [
"refresh6724@gmail.com"
] | refresh6724@gmail.com |
7ab5da850015835fd36826b6dc32dacb5fa77abb | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200420142059.py | e80911593816ec52fed2a6059d885e476daf78ac | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,012 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una part... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
59c018b608fd97672d5fb880fb5e4eab99010664 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/numberofStepstoReduceaNumberinBinaryRepresentationtoOne/numberofStepstoReduceaNumberinBinaryRepresentationtoOne.py | a8a36865555215ba4a1ee015acc052f44cb53e7d | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/number-of-steps-to-reduce-a-number-in-binary-representation-to-one/
# Author: Miao Zhang
# Date: 2021-04-29
class Solution:
def numSteps(self, s: str) -> int:
res = 0
carry = 0
for i in range(len(s) -... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
ed12534f1da767dfebef5c8563d1b4aae5a66da3 | b6b30fb06124883b074144c419b43d9182efcdff | /Basics/dutch_flag_partition_fastest.py | fb164ade1f056ae18da155dfb6ec6402aad9dfba | [] | no_license | JohnnySunkel/BlueSky | da9f5107034289bfbdd3ba40458f9b9bd8d01a13 | 5a20eba9ef7509a5a7b7af86e7be848242e1a72f | refs/heads/master | 2021-07-07T09:57:37.256950 | 2020-09-02T23:06:46 | 2020-09-02T23:06:46 | 166,883,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | def dutch_flag_partition(pivot_index, A):
pivot = A[pivot_index]
# Keep the following invariants during partitioning:
# bottom_group: A[:smaller].
# middle_group: A[smaller:equal].
# unclassified_group: A[equal:larger].
# top_group: A[larger:].
smaller, equal, larger = 0, 0, len(A)
# Kee... | [
"noreply@github.com"
] | JohnnySunkel.noreply@github.com |
84a03ff8450360e7be6e7b4763ca22a702633ad4 | e17a3eb6388890b6f7b6692e75953a0479e05d5c | /date_range/__manifest__.py | a00346a3d9e80c81950a8cbf500bd4b3e99d1bae | [] | no_license | FIDINGSARL/compta13 | 8824e858bd35811b2549b74f10330535e3d29756 | 329c4985d188ee1e6323f00d3e4148a32ce5c1d8 | refs/heads/master | 2023-02-24T10:09:04.829763 | 2021-02-01T10:58:28 | 2021-02-01T10:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # -*- coding: utf-8 -*-
{
"name": "Périodes diverses",
"summary": "Manage all kind of date range",
"version": "10.0",
"category": "Uncategorized",
"author": "Andema/OCA",
"website": "http://www.andemaconsulting.com",
"application": False,
"installable": True,
"depends": [... | [
"macbook@MacBook-Pro-de-MacBook.local"
] | macbook@MacBook-Pro-de-MacBook.local |
4c79808d9463d4a13074215f5aa7241b21ce661c | 21ffff58b99c8f486dfe17fdb06c1759720ce1a5 | /进程线程协程/协程/greenlet实现协程.py | d8cfe3ea6591f8708bd58dd4a9ae4cfaaf86bc50 | [] | no_license | gupan2018/pythonLearn | cac1da4e0563b7517a86c4adcc9e1ae40cecc32c | 7d12e5770ef8d01949c09d1d73fbb756e85be55d | refs/heads/master | 2021-09-04T05:15:05.424323 | 2018-01-16T07:44:33 | 2018-01-16T07:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding:utf-8 -*-
# __author__ = 'gupan'
# 已经封装好了的协程
# 外部扩展包,需要安装gevent
# greenlet是手动切换协程,gevent封装了greenlet,是自动切换协程
from greenlet import greenlet
def test1():
print(1)
gr2.switch()
print(2)
gr2.switch()
def test2():
print(3)
gr1.switch()
print(4)
# gr1.switch()
gr1 = greenlet(... | [
"610077670@qq.com"
] | 610077670@qq.com |
b9cddbfad5e3228444afbeedddc9ae5d83693f9f | 014b3d25392a37f3ee1bc64358e4f7f1d10a7841 | /wormhole/net_util/network.py | 7c5aa28580b5197a3e77d87acbebe09698d2cf35 | [] | no_license | back1860/wormhole | a979d07dd9f1029db3ce4c1c7e935f908e3844bb | 563d83514152bae05d80e9770724ab311da34049 | refs/heads/master | 2021-01-16T18:23:32.428799 | 2016-11-24T03:01:47 | 2016-11-24T03:01:47 | 68,501,614 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # Copyright 2014 OpenStack Foundation
# 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 requ... | [
"nkapotoxin@gmail.com"
] | nkapotoxin@gmail.com |
9b8d38539bf53351b41349123cee84212a38f669 | 1056cffd08ecfd564093280446aec800ef826274 | /SinglyLinkedList_003.py | 9e6caa02d514249f2a862dae8ee20c9c26449046 | [] | no_license | richnakasato/dsa-katas | 1398bab97a792aba17b0516358a9b0d5a91b8f02 | d3a92eecba94d0b592a9f7afb9555d6df80c6816 | refs/heads/master | 2020-03-20T22:34:14.878821 | 2019-05-24T20:05:54 | 2019-05-24T20:05:54 | 137,804,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | '''
Practicing SLL, no timing
'''
import random
class SinglyLinkedList:
class Node:
def __init__(self, data):
self.data = data
self.next = None
def __init__(self):
self.head = None
self.size = 0
def __len__(self):
return self.size
def __str_... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
5428dc0e2b578edb5a16d02d7ae25b6db19219b2 | e96576ebf91dba31d3d46e14b665f8562a0839e6 | /python/Models/FiducialNJETSModel.py | c6d59a327bd5dd1ee62d8c8c52b5abf7bfe7ea32 | [] | no_license | cecilecaillol/Run2HTT_Combine | 9178b0e407ffb902c3650f5fd011e515dad1d1e0 | 56ba6593476065f505fe99d2127dc36e29da44ad | refs/heads/master | 2021-06-18T01:46:37.255611 | 2020-12-12T11:32:02 | 2020-12-12T11:32:02 | 198,190,828 | 0 | 0 | null | 2019-07-22T09:27:15 | 2019-07-22T09:27:15 | null | UTF-8 | Python | false | false | 1,879 | py | from HiggsAnalysis.CombinedLimit.PhysicsModel import *
import re
class FiducialNJETS(PhysicsModel):
def doParametersOfInterest(self):
"""Create POI and other parameters, and define the POI set."""
self.modelBuilder.doVar("mu_fid[1.0,-15.0,15.0]");
self.modelBuilder.doVar("rho_0[1.0,-25.0,25... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
c122404b06a7862e347c25ab605454d9afb2bd32 | fe2ffc4d3f6ef90e4999ce2ae83e9075b2b884a8 | /src/posts/views.py | 241d1bdd46398b5ea98436a368ded0c3a8ff9df2 | [] | no_license | Richiewong07/django_blog | a11a396f6b2e40a14f2bef7905b0d4b30383ac7e | af0ac9c5a152514554d02f1a76917276a2d60622 | refs/heads/master | 2021-04-12T10:36:04.758000 | 2018-04-08T20:19:04 | 2018-04-08T20:19:04 | 126,552,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,601 | py |
from urllib.parse import quote_plus
from django.contrib import messages
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404, redirect
from django.http import Http404
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
# Create your ... | [
"richiewong07@yahoo.com"
] | richiewong07@yahoo.com |
eed46e8dc0503394018defb868a96dd18adf3433 | f9ff9ffc9d5e48b63c137382e1d3299a518215ec | /plumber_analysis/src/plumber_analysis/pipeline_optimizer_wrapper.py | cc2db0cdad8e20afe1924beaab14a3c6e20bb0b5 | [] | no_license | mkuchnik/PlumberApp | 240b760cf0250a68253153950bf9a85014c35499 | 6123f5bce36eec7dc75b6b9298054b493d930bdc | refs/heads/main | 2023-04-16T08:32:54.829454 | 2022-03-13T04:08:37 | 2022-03-13T04:08:37 | 459,011,430 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,286 | py | """High-level pipeline optimizer.
The goal here is to populate resource and pipeline metadata
and create optimizer instances acting on that metadata.
Don't use this API directly. Use annotations.
"""
import multiprocessing
import functools
import logging
import os
import itertools
import distutils.util
import pickle... | [
"michaelkuchnik@gmail.com"
] | michaelkuchnik@gmail.com |
33b1851bfd8e2c5e2480c16d3d2dcac17eb9f118 | 1ea0e2b4f064ba0de45a73c527ee89a36771e8fc | /src/sentry/south_migrations/0059_auto__add_filterkey__add_unique_filterkey_project_key.py | 5696e96ead4c31e5d657da08c62e01f94ed49856 | [
"BSD-2-Clause"
] | permissive | atlassian/sentry | 6775e59c317f20f96982e91c2b3c88c02ecbb56b | b937615079d7b24dc225a83b99b1b65da932fc66 | refs/heads/master | 2023-08-27T15:45:47.699173 | 2017-09-18T22:14:55 | 2017-09-18T22:14:55 | 103,999,066 | 1 | 5 | BSD-3-Clause | 2023-04-01T07:49:37 | 2017-09-18T22:38:18 | Python | UTF-8 | Python | false | false | 28,468 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'FilterKey'
db.create_table(
'sentry_filterkey', (
(
... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
cf9e745d9df3e4bf9fe724b6278b4caf88f24ac6 | c19ca6779f247572ac46c6f95327af2374135600 | /Data Structure/网易 下厨房.py | 0fd1bc2e77da185af384224334a9f4a635a0d287 | [] | no_license | clhchtcjj/Algorithm | aae9c90d945030707791d9a98d1312e4c07705f8 | aec68ce90a9fbceaeb855efc2c83c047acbd53b5 | refs/heads/master | 2021-01-25T14:24:08.037204 | 2018-06-11T14:31:38 | 2018-06-11T14:31:38 | 123,695,313 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | __author__ = 'CLH'
'''
这题说白了就是统计不同单词数
用前缀树加快搜索
注意点:python如何读取多行输入
'''
import sys
class TrieNode():
def __init__(self):
self.childs = {}
self.word = False
class Solution():
def __init__(self):
self.root = TrieNode()
self.size = 0
def add(self,word):
node... | [
"15720622991@163.com"
] | 15720622991@163.com |
7110b1b3d08e08d691a2dca5d9d9aed1f76a5c42 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-5095.py | 190aab4a4b7bcb434277cf6fc723c8e58897b10d | [] | 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 | 31,754 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
41622dc1b69cba2f920adb23a7976d66b58e587e | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/models/v1_deployment_spec.pyi | 97a0b3d79dfc7c85bc36d8a8180f8aa08c8d156c | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 1,481 | pyi | import datetime
import typing
import kubernetes.client
class V1DeploymentSpec:
min_ready_seconds: typing.Optional[int]
paused: typing.Optional[bool]
progress_deadline_seconds: typing.Optional[int]
replicas: typing.Optional[int]
revision_history_limit: typing.Optional[int]
selector: kubernetes.... | [
"nikhil.benesch@gmail.com"
] | nikhil.benesch@gmail.com |
192dbeca0043049fe6de9c445da836b22cdcd18e | f19689c0f28c218732f48e715d5ba75a4be82437 | /tests/fixtures/__init__.py | bb90a2521835766318bf1330c9d04333a5a77134 | [] | no_license | imclab/splicer | 5c9df05196fd79f382a3627b2de45936b688479e | ffad7ee1b7fa31f434026098a1b23975d201f98e | refs/heads/master | 2021-01-23T13:17:20.819110 | 2014-03-28T18:48:24 | 2014-03-28T18:48:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from splicer import DataSet, Query
from .mock_adapter import MockAdapter
from .employee_adapter import EmployeeAdapter
def mock_data_set():
dataset = DataSet()
dataset.add_adapter(MockAdapter())
dataset.add_adapter(EmployeeAdapter())
return dataset
| [
"srobertson@codeit.com"
] | srobertson@codeit.com |
9c50f8d2f87fa4254fa5b53f983be65eb46aacbe | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/configs/faster_rcnn/faster_rcnn_r50_caffe_fpn_mstrain_1x_coco.py | 730af54ff080129d6504489d2729823653b41013 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,068 | 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
99493d5276aecf80f7c044b58e43059c248a10f3 | ad608959e3cbf484af70f8ec17ac4c03b00f934a | /src/object.py | 69ff8584c770405de180e77a3c17909043f25171 | [] | no_license | CarsonScott/Evolutionary-Logic-Learning | 612a8409b90d42f7cc42f1bef3d3f964830a6d27 | 05a9d98a2dc5ef4e2671a683a516fc5522d71b02 | refs/heads/master | 2020-03-19T04:44:08.287138 | 2018-09-01T12:40:56 | 2018-09-01T12:40:56 | 135,860,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from template import *
class Pointer(Template):
def __init__(self, index=None):
super().__init__()
self.assign(0, 'index')
self.store('index', index)
class Relation(Template):
def __init__(self, inputs, function=None):
super().__init__()
X = []
for i in range(inputs):
self.assign(i, 'input')
X.app... | [
"carsonjscott14@gmail.com"
] | carsonjscott14@gmail.com |
b525bc2a57d8ccd3c1af033a5b21957e30c05963 | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /starrez_client/models/term_session_free_item.py | 136d50f684b13079684ca953728c546df1772c37 | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,641 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
7b82c25e5304b7c96b5e806747765e2034a79e7f | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/tests/integration/awslambda/test_awslambda.py | 8945922a57ac8b6c5f7981839bf3b5781ed63fa2 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 1,668 | py | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# 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 ... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
0916a489a2902c5894ac1bbd282cb806dde7d8cb | e1c40e96073f3caf9268c5e2fbe949ce6b8d48f6 | /board/__init__.py | 98176777da88a68597c99363840444af72d3bb6b | [] | no_license | kt3k/cilib | 1f58a297de429d362e81de859aeee687c253f669 | 80763454e00b3552d338311a0bb268d56bb9c017 | refs/heads/master | 2023-08-18T03:57:35.449273 | 2013-08-11T12:16:54 | 2013-08-11T12:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from querymanage import *
from logmanage import *
from renderer import *
from logsplitter import *
| [
"stibium121@gmail.com"
] | stibium121@gmail.com |
c90c7a102ee45edee6765f20db29b6be78091415 | d8d3a09ed5cfd4b35ce1f5c98c5f9aa2b41b7548 | /psquery/psquery.py | cb6ec73b8033c7d68f991b45daf774f4c3a79bc5 | [
"BSD-3-Clause"
] | permissive | KshitijAggarwal/psquery | 101f03d05c495673ae3c0ab7d12449929ee2dd22 | 55d41d428ed6c7decc19b7e404022856c7ebe0bb | refs/heads/master | 2022-12-25T00:41:04.050057 | 2020-09-22T21:49:51 | 2020-09-22T21:49:51 | 286,840,721 | 1 | 0 | BSD-3-Clause | 2020-08-11T20:22:51 | 2020-08-11T20:22:50 | null | UTF-8 | Python | false | false | 6,343 | py | import numpy as np
import requests
from urllib.parse import quote as urlencode
from urllib.request import urlretrieve
import http.client as httplib
from astropy.io import ascii
from astropy.table import Table
from astropy import coordinates, units
def query_radec(ra, dec, ndet=5, radius=5/3600):
""" c... | [
"caseyjlaw@gmail.com"
] | caseyjlaw@gmail.com |
518c5fa92974fd3d01b3b92fdbe17560cb10dfc5 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/brocade_mpls_rpc/ping_mpls/output/__init__.py | 5b03575895228badcbdf72e118fe05542ad1ad4d | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
047b2c2c4c49c39e1b61d11d2b9303c61a4f9af5 | 608aeaeebe616116e92c541b58debcba4a20466d | /Turtle graphics/Sept_24/marina_turtle.py | cbad4eb9dca2daa07f7cfe9bd67c74e6118d8ef7 | [] | no_license | marinasupernova/100daysofcode | c8008a60cc56efbebda5e52c531507d78d8b7717 | 77c2515c19e71667de8a1983cc43d186f9566a27 | refs/heads/master | 2023-04-30T08:26:21.710429 | 2021-05-13T09:08:19 | 2021-05-13T09:08:19 | 287,949,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import turtle
'''turtle.shape('turtle')
turtle.setup(500, 500)
turtle.Screen().bgcolor("blue")
turtle.Screen().colormode(255)
turtle.Screen().bgcolor(29, 162, 216)
turtle.shape('turtle')(9, 185, 13)
turtle.pencolor(0, 128, 0)'''
import random
stamp = turtle.Turtle()
stamp.shape('turtle')
stamp.penup()
turtle.colormod... | [
"marina.de.suvorova@gmail.com"
] | marina.de.suvorova@gmail.com |
2b432d03da3f4a527efc427e98b7ff80666c9f59 | 0a97a31af519500cdc3e0704e6fba75afcbfe82e | /监督学习/广义线性模型.py | c759aa10305c4dad709f57d9c0972dee987a2886 | [] | no_license | yooq/sklearn_test | fca9f5b1c37410bba1f78d7170183508397eee5d | a3b88fd67948c4be4f3f2b759c240b16fc740fe7 | refs/heads/master | 2022-11-06T04:30:03.283340 | 2020-06-22T03:51:05 | 2020-06-22T03:51:05 | 261,703,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | from sklearn import linear_model
import numpy as np
# 基于普通最小二乘法的线性模型 复杂度(n_samples,n_features)-->O(n_sample*n_features*n_features)
# 必须满秩,趋向于奇异矩阵,可能产生大的方差
train_x = np.random.normal(size=(10000,2))
train_y = np.random.normal(size=(10000,1))
reg = linear_model.LinearRegression()
reg.fit(train_x,train_y) #train
test_x=... | [
"990250040@qq.com"
] | 990250040@qq.com |
a5a449a62b641b3c799995a523997b823834698c | d138deda43e36f6c79c5e3a9ef1cc62c6a92e881 | /python/paddle/fluid/incubate/fleet/utils/http_server.py | 50933ce5d1bd35ac4596740f33c0a58c46a4f478 | [
"Apache-2.0"
] | permissive | seiriosPlus/Paddle | 51afd6f5c85c3ce41dd72953ee659d1539c19f90 | 9602a182b2a4979247c09df1ec283fc39cb4a981 | refs/heads/develop | 2021-08-16T16:05:10.848535 | 2020-12-27T15:15:19 | 2020-12-27T15:15:19 | 123,257,829 | 2 | 0 | Apache-2.0 | 2019-12-10T08:22:01 | 2018-02-28T08:57:42 | C++ | UTF-8 | Python | false | false | 5,719 | 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 app... | [
"noreply@github.com"
] | seiriosPlus.noreply@github.com |
d8a7ce4f9742c8b8fae36ea3f000567f512d1726 | a90ba084b85683f4c52d0e638cfb6108207ced38 | /15.py | 7fcce1f1bc58279a9627540a3e75f97cebc015c9 | [] | no_license | JiayuZhai/leetcode_python3 | 4a9260d00a52cde9ec37e6292e64d04161e66111 | 5755c3edd6d949af18d0247d2103379510dfab85 | refs/heads/master | 2020-04-02T21:22:42.270736 | 2019-03-29T23:28:48 | 2019-03-29T23:28:48 | 154,796,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | class Solution:
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums_hash = {}
result = list()
for num in nums:
nums_hash[num] = nums_hash.get(num, 0) + 1
if 0 in nums_hash and nums_hash[0] >= 3:
... | [
"zhaijiayu2013@gmail.com"
] | zhaijiayu2013@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.