blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ac18fe3f7edb520beebb06692cc97b23e5356d0 | f78ddd04ac900bfe670ae841ad8b05fbd6fd305d | /collective/powertoken/view/tests/base.py | 0115392663f1379ff88738dbe412242f5028fa2c | [] | no_license | RedTurtle/collective.powertoken.view | 9b0f0ca53ae9c09258f71b95d0ef2ec90b12e88d | 0a5bc89b78918d9319d4e73adc12cf42d42b11da | refs/heads/master | 2022-12-24T10:12:31.102480 | 2012-02-15T14:38:41 | 2012-02-15T14:38:41 | 3,111,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | # -*- coding: utf-8 -*-
from Products.Five import zcml
from Products.Five import fiveconfigure
#from Testing import ZopeTestCase as ztc
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
@onsetup
def setup_product():
"""Set up additional products and ZCML re... | [
"luca@keul.it"
] | luca@keul.it |
41187baa2e786d43ecffa07d0bba00d160a1cf24 | 597d8b96c8796385b365f79d7a134f828e414d46 | /pythonTest/cn/sodbvi/exercise/example076.py | 022d87cbffcbf48924dbd4c82812d553518ea222 | [] | no_license | glorysongglory/pythonTest | a938c0184c8a492edeba9237bab1c00d69b0e5af | ed571d4c240fccfb4396e2890ad922726daa10a0 | refs/heads/master | 2021-01-21T11:39:35.657552 | 2019-08-14T02:49:26 | 2019-08-14T02:49:26 | 52,493,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
Created on 2016年1月12日
@author: sodbvi
'''
def peven(n):
i = 0
s = 0.0
for i in range(2,n + 1,2):
s += 1.0 / i
return s
def podd(n):
s = 0.0
for i in range(1, n + 1,2):
s += 1 / i
return s
def dcall(fp,n):
s = fp(n)
ret... | [
"317878410@qq.com"
] | 317878410@qq.com |
197169cda56b3bbb7963e86ddffa917b376e09b7 | 48bb4a0dbb361a67b88b7c7532deee24d70aa56a | /codekata/diftwostr.py | 7bc3823d1a60fba9ace83be0cf3bc0c788ab2075 | [] | no_license | PRAMILARASI/GUVI | 66080a80400888263d511138cb6ecd37540507c7 | 6a30a1d0a3f4a777db895f0b3adc8b0ac90fd25b | refs/heads/master | 2022-01-28T08:54:07.719735 | 2019-06-24T15:57:05 | 2019-06-24T15:57:05 | 191,355,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | s=input()
r=input()
ga=[]
if (s.isalpha() or " " in s) and (r.isalpha() or " " in r):
s=list(s.split(" "))
r=list(r.split(" "))
for i in s:
if s.count(i) > r.count(i) and i not in g:
ga.append(i)
for i in r:
if r.count(i)>s.count(i) and i not in ga:
ga.... | [
"noreply@github.com"
] | PRAMILARASI.noreply@github.com |
b0a7b8d41e7a3721214629851ac2f43b60da1a3a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_decadence.py | e45ac2d2bb3034736876e778afd0265ab221b42d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py |
#calss header
class _DECADENCE():
def __init__(self,):
self.name = "DECADENCE"
self.definitions = [u'low moral standards and behaviour: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.jsondata... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2783c24639ee36365aef4ca759ece83577cf2167 | a5dacc8ea7dba732c6884a18775317dd7c59a6d6 | /examples/cull-idle/jupyterhub_config.py | 2de8f424989a3a5da8e62e5c27381aabb3c47ecf | [
"BSD-3-Clause"
] | permissive | richmoore1962/jupyterhub | de7b995d5a4d57a471bfed9ac96de3176cfa4c5f | 5d7e0080553a2255e13980aee7249afb141b154e | refs/heads/master | 2022-12-23T11:03:30.989101 | 2017-11-03T09:31:46 | 2017-11-03T09:31:46 | 109,429,441 | 0 | 0 | NOASSERTION | 2020-09-20T20:33:13 | 2017-11-03T18:25:32 | Python | UTF-8 | Python | false | false | 194 | py | # run cull-idle as a service
c.JupyterHub.services = [
{
'name': 'cull-idle',
'admin': True,
'command': 'python cull_idle_servers.py --timeout=3600'.split(),
}
]
| [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
5f21d3d4219a6206895837a13333cb428c0e6212 | dc51e4714820d991e7d0e94b3e9eac4dbc67eea7 | /project/utils/auth.py | 18f86a9f587e9c86950a9f1d5416c4b9d61403b5 | [] | no_license | ruoxiaojie/Django | 537d27abe9ebb85e0dfc69585f318a87e7514a70 | 92b88600953cd4ff743032cab3d4785437c949e0 | refs/heads/master | 2021-01-15T22:18:56.033883 | 2018-03-09T06:15:46 | 2018-03-09T06:15:46 | 99,894,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python
#Author:xiaojie
# -*- coding:utf-8 -*-
from django.shortcuts import HttpResponse,redirect
def Auth(func):
def wrapper(request,*args,**kwargs):
session_dict = request.session.get('user_info')
if session_dict:
res = func(request,*args,**kwargs)
return res
... | [
"475030894@qq.com"
] | 475030894@qq.com |
9d58e38063f9ca3c1fa93866836158614af67dbb | 0bb49acb7bb13a09adafc2e43e339f4c956e17a6 | /OpenAssembler/Gui/AttributeEditor/attributeEditor.py | 0fa595c533f6ab79ea8d3ca02c021437b4ec8084 | [] | no_license | all-in-one-of/openassembler-7 | 94f6cdc866bceb844246de7920b7cbff9fcc69bf | 69704d1c4aa4b1b99f484c8c7884cf73d412fafe | refs/heads/master | 2021-01-04T18:08:10.264830 | 2010-07-02T10:50:16 | 2010-07-02T10:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # #####################################################################################
#
# OpenAssembler V3
# Owner: Laszlo Mates
# Email: laszlo.mates@gmail.com
# Date: 2009.06.04
#
# #####################################################################################
from PyQt4 import QtCore, QtGui
from Gui.OA... | [
"laszlo.mates@732492aa-5b49-0410-a19c-07a6d82ec771"
] | laszlo.mates@732492aa-5b49-0410-a19c-07a6d82ec771 |
f46481c123eee2c7b164413ece213c6de9a666b1 | a32c2ee4e6b2b1c6f8db02320c4bd50b17940af5 | /modules/TIMCardHolderAddFriends/TIMCardHolderAddFriends.py | 086b16f65630f26fa39058f13b7086328fafb33d | [] | no_license | wszg5/studyGit | 93d670884d4cba7445c4df3a5def8085e5bf9ac0 | bebfc90bc38689990c2ddf52e5a2f7a02649ea00 | refs/heads/master | 2020-04-05T02:55:17.367722 | 2018-11-07T06:01:03 | 2018-11-07T06:01:03 | 156,494,390 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,566 | py | # coding:utf-8
from uiautomator import Device
from Repo import *
import os, time, datetime, random
from zservice import ZDevice
class TIMCardHolderAddFriends:
def __init__(self):
self.repo = Repo()
def action(self, d, z, args):
cate_id = args["repo_number_cate_id"]
collect_count = i... | [
"you@example.com"
] | you@example.com |
d03d5c855680e1b6fa3515be40d126c7e532e244 | 943dca755b940493a8452223cfe5daa2fb4908eb | /abc116/c.py | 5267dea5164cda9c07be495dd9a9df3f46b7cd66 | [] | no_license | ymsk-sky/atcoder | 5e34556582763b7095a5f3a7bae18cbe5b2696b2 | 36d7841b70b521bee853cdd6d670f8e283d83e8d | refs/heads/master | 2023-08-20T01:34:16.323870 | 2023-08-13T04:49:12 | 2023-08-13T04:49:12 | 254,348,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | n=int(input())
hs=list(map(int,input().split()))
c=0
m=max(hs)
while not m==0:
b=0
for i,h in enumerate(hs):
if h==m:
if not b==m:
c+=1
hs[i]-=1
b=h
m=max(hs)
print(c)
| [
"ymsk.sky.95@gmail.com"
] | ymsk.sky.95@gmail.com |
b6bc653644bc26cd60b6afcceabe021e4f545686 | 9c368c9fe78a2dd186daeed2d0714651c1c27d66 | /absorption/ml_project/analyse_spectra/more_plotting/plot_phase_space_ssfr_split.py | c2c1475a8e26d8ca760a0dee52ded9982b0a0c6f | [] | no_license | sarahappleby/cgm | 5ff2121919e36b10069692f71fb1dc03f3678462 | 656bf308771dd3ff2f8c2e77107cdc14507c7ce7 | refs/heads/master | 2023-01-24T03:10:01.610418 | 2023-01-20T11:04:31 | 2023-01-20T11:04:31 | 160,820,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,599 | py | import matplotlib.pyplot as plt
import matplotlib.colors as colors
from mpl_toolkits.axes_grid1 import make_axes_locatable
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np
import h5py
import pygad as pg
import sys
plt.rc('text', usetex=True)
plt.rc('font', family='serif', size=13)
def truncate_colorma... | [
"sarahappleby20@gmail.com"
] | sarahappleby20@gmail.com |
27d97928b393f307f4e44f2cc3e0f270f71ffb57 | f1dc351b5e493bb4480f21b3a7704b9a56bb7e47 | /lego/apps/restricted/tests/test_utils.py | 30c36d42e11672b18b4bc8b8a7b26ee54bce7396 | [
"MIT"
] | permissive | andrinelo/lego | 8437d830f2b534687687d302e78ab5d34172a81b | 9b53c8fe538d9107b980a70e2a21fb487cc3b290 | refs/heads/master | 2020-03-10T01:56:41.997044 | 2018-04-11T16:09:41 | 2018-04-11T16:09:41 | 129,123,416 | 0 | 0 | MIT | 2018-04-11T16:34:22 | 2018-04-11T16:34:22 | null | UTF-8 | Python | false | false | 1,246 | py | from django.conf import settings
from lego.apps.restricted.parser import EmailParser, ParserMessageType
from lego.apps.restricted.utils import get_mail_token
from lego.utils.test_utils import BaseTestCase
from .utils import read_file
class EmailTokenTestCase(BaseTestCase):
def test_parse_valid_message(self):
... | [
"eirik@sylliaas.no"
] | eirik@sylliaas.no |
829f0239757ec9d128bbd27819f875217a449fd9 | f59b30d52433903ef8cd0a15db8ae0287c89d4e2 | /Python/libraries/recognizers-number/recognizers_number/number/__init__.py | fcdd5ac467fff37e2a9dafd4c8d5781da2912f02 | [
"MIT"
] | permissive | tellarin/Recognizers-Text | 4965c928bcbe6bbd83ec15441ab880239b6370f9 | ff019a69e9cb64de862c94b08125baaaf832ed25 | refs/heads/master | 2022-11-22T10:56:13.482434 | 2019-12-16T17:30:41 | 2019-12-16T17:30:41 | 96,207,365 | 2 | 0 | MIT | 2019-12-17T05:50:58 | 2017-07-04T10:43:16 | C# | UTF-8 | Python | false | false | 249 | py | from .models import *
from .extractors import *
from .parsers import *
from .english import *
from .spanish import *
from .chinese import *
from .french import *
from .japanese import *
from .number_recognizer import *
from .parser_factory import *
| [
"tellarin@gmail.com"
] | tellarin@gmail.com |
fb0b9424ecde134faf0417e0c5e185342354c25b | 53e0b0616ece7867b1d37d755fd034e5b3d5ebe5 | /Easy/937. Reorder Data in Log Files/solution (1).py | 6f88cdf8f90632966920efaff690919c9bae4d7f | [
"MIT"
] | permissive | czs108/LeetCode-Solutions | a7a29b90ad330d8d4bd73b5d0d243dc5b4121bc9 | fc4ef8aed90614e2e4ad39fa1c9eec5881b7b5f5 | refs/heads/master | 2023-03-03T09:55:51.045837 | 2023-02-20T23:39:15 | 2023-02-20T23:39:15 | 237,709,633 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # 937. Reorder Data in Log Files
class Solution:
# Sorting by Keys
def reorderLogFiles(self, logs: list[str]) -> list[str]:
def get_key(log: list[str]) -> tuple:
id, content = log.split(" ", maxsplit=1)
return (0, content, id) if content[0].isalpha() else (1, None, None)
... | [
"chenzs108@outlook.com"
] | chenzs108@outlook.com |
0aec8b543a666ebec07ee8d1f7de9f7df6ae0aa3 | 6710c52d04e17facbc9fb35a7df313f7a2a7bd53 | /0496. Next Greater Element I.py | 81a83b3a6afa832fca1c54f9dee831ff8ecb2cb3 | [] | no_license | pwang867/LeetCode-Solutions-Python | 535088fbe747a453360457728cc22cf336020bd2 | 188befbfb7080ba1053ee1f7187b177b64cf42d2 | refs/heads/master | 2022-11-13T16:20:28.211707 | 2020-06-28T06:01:14 | 2020-06-28T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | # use descreasing stack, time/space O(n)
class Solution(object):
def nextGreaterElement(self, findNums, nums):
"""
:type findNums: List[int]
:type nums: List[int]
:rtype: List[int]
"""
# findNums is a subset of nums
# using stack
stack = [] ... | [
"wzhou007@ucr.edu"
] | wzhou007@ucr.edu |
0b1491be7cb19a099088b52747a39f61a0ac1a3f | 951a84f6fafa763ba74dc0ad6847aaf90f76023c | /PythonLearning/c15.py | 6564d10808d0f33742e95d0a46ea1ab568e6afe4 | [] | no_license | SakuraGo/leetcodepython3 | 37258531f1994336151f8b5c8aec5139f1ba79f8 | 8cedddb997f4fb6048b53384ac014d933b6967ac | refs/heads/master | 2020-09-27T15:55:28.353433 | 2020-02-15T12:00:02 | 2020-02-15T12:00:02 | 226,550,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import t.t1.c9
print("~~~~~~~~~C15~~~~~~~~~")
print("name:",__name__) ##名字
print("package:"+ (__package__ or "package不属于任何包")) ## 所属包
print("doc:",__doc__) ## 模块注释
print("file:",__file__) ##物理路径
vvv = 23 if 3>5 else 35
print(vvv) | [
"452681917@qq.com"
] | 452681917@qq.com |
fda206922f8d0287b1b159050f65d979846ea8ad | c9f54e1a2e11a033b53b4f12564c7b87c5ce1a4a | /one_time/hidden_units.py | 0788a78f5a75634b5a6eb773e44b1b85d12ced5d | [] | no_license | mikewycklendt/dcadventures | b2e5e38ed53a698bb3c18c5b332df424540a18e3 | 542f90c3cce859416de14e40bdebf6a8cddcf67a | refs/heads/master | 2023-06-10T17:00:33.380125 | 2021-06-21T20:38:25 | 2021-06-21T20:38:25 | 290,849,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py |
@app.route('/table/db')
def table_db_columns_create():
name = 'Time Rank'
entry = Unit(time=True, name=name, hide=True )
db.session.add(entry)
db.session.commit()
name = 'Distance Rank'
entry = Unit(distance=True, name=name, hide=True )
db.session.add(entry)
db.session.commit()
name = 'Speed Rank'
ent... | [
"mikewycklendt@gmail.com"
] | mikewycklendt@gmail.com |
d18a5ff31839e9598493723bd5c0347c58ecfd44 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_get_media_packages_response_wrapper.py | 7431508715bab9f2bef9fbf745fb5efc555b45d5 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 1,104 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.common.model.api_response_header import ApiResponseHeader
from baiduads.searchfeed.model.get_media_packages_response_wrapper_body import Ge... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
14145e52b961975903bfd44a7d99be0c2f3207d0 | cf149421eb604826dc4757bc4fa1ac524b44476b | /pyscene/gradient/by_value.py | 1581fa003c44ce1b7fb7437f2d07eb90cef50cef | [] | no_license | Windspar/PyScene | 60e903106905b6eaff640dfde08d8bb447353ab5 | 004a274326f1aac06da04e3f5a663374da618a64 | refs/heads/master | 2021-09-07T11:05:41.362873 | 2018-02-22T01:31:12 | 2018-02-22T01:31:12 | 113,268,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | import numpy as np
import pygame
from .base import RGBA_FORMULA, pure_color
class HSL:
H = 0
HUE = 0
S = 1
SAT = 1
SATURATION = 1
L = 2
LUM = 2
LIGHT = 2
LIGHTNESS = 2
class RGB:
R = 0
RED = 0
G = 1
GREEN = 1
B = 2
BLUE = 2
class HSV:
H = 0
HUE = 0
... | [
"kdrakemagi@gmail.com"
] | kdrakemagi@gmail.com |
6bb9e9709cd46995967059850e6158cce9302c2d | 24381845fe5e8b8a774d74911e2f07bcd1a00190 | /azure-iot-provisioning-servicesdk/azure/iot/provisioning/servicesdk/protocol/models/__init__.py | 87d86af26eeff8f238fba3eec4bb42462abddc84 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | noopkat/azure-iot-sdk-python-preview | 94b3b29497b80e1dac6471ae906d8491f018b12d | f51733e9d3424c33ed86d51e214b20c843716763 | refs/heads/master | 2020-04-30T03:07:37.445782 | 2019-03-18T18:42:15 | 2019-03-18T18:42:15 | 176,579,084 | 6 | 0 | MIT | 2019-03-19T18:53:43 | 2019-03-19T18:53:43 | null | UTF-8 | Python | false | false | 4,016 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
try:
... | [
"noreply@github.com"
] | noopkat.noreply@github.com |
d956d330feab1a324f7948bdcbc9d48882bd40a8 | bbcce934ac20249a006580915aa61b72f8521544 | /G5_template.py | 7c966f89352d288441e458325d0c88a33e15da29 | [] | no_license | SanjuktaBhatt/G11_Projects | 6225a51cb653001af46a859ab578efba30ce7d79 | 435163bc26b759b4a185a2f4cce3d228c47cbf43 | refs/heads/main | 2023-06-19T18:58:54.684729 | 2021-07-22T08:37:56 | 2021-07-22T08:37:56 | 382,996,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | import pygame
import random
pygame.init()
WHITE = (255,255,255)
DARKBLUE = (36,90,190)
LIGHTBLUE = (0,176,240)
RED = (255,0,0)
ORANGE = (255,100,0)
YELLOW = (255,255,0)
COLOR=[WHITE,DARKBLUE,LIGHTBLUE,RED,ORANGE,YELLOW]
size = (400, 400)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("Project C5")
... | [
"noreply@github.com"
] | SanjuktaBhatt.noreply@github.com |
f25b22df40286f6b6c2b5f938e282191d7e00fa2 | 313110e3a0d01adb562e40f73d9c6fc32c74e0ca | /inventory/migrations/0004_auto_20210327_0821.py | be019a0d3e9d95fa0f6820c8f05625773f08f086 | [] | no_license | prabaldeshar/erp-project | e911ac447aab9ede39567fb82275bbbf0357932e | 31762cf765d1aee21623033c963147d69219ba56 | refs/heads/main | 2023-03-29T19:29:18.689599 | 2021-04-07T15:19:14 | 2021-04-07T15:19:14 | 344,389,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1.7 on 2021-03-27 08:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0003_auto_20210310_1630'),
]
operations = [
migrations.AlterField(
model_name='productcategory',
name='... | [
"prabaldeshar@gmail.com"
] | prabaldeshar@gmail.com |
44168503a255ef0073c8a1d1da7327f6fbd4ce70 | 78f54f911d47019da0deeeb6579c7e9e65bb8d21 | /src/process/models/base/operation/DefinitionBase.py | c35aa1747e8905cbff9dd2e3bdbd0e7a6be6e07e | [
"MIT"
] | permissive | jedicontributors/pythondataintegrator | 02f8ae1a50cf5ddd85341da738c24aa6a320c442 | 3e877b367ab9b20185476128ec053db41087879f | refs/heads/main | 2023-06-15T07:37:13.313988 | 2021-07-03T15:46:43 | 2021-07-03T15:46:43 | 354,021,102 | 0 | 0 | MIT | 2021-07-03T15:46:44 | 2021-04-02T13:03:12 | Python | UTF-8 | Python | false | false | 849 | py | from models.base.EntityBase import EntityBase
from infrastructor.json.BaseConverter import BaseConverter
@BaseConverter.register
class DefinitionBase(EntityBase):
def __init__(self,
Name: str = None,
Version: int = None,
Content: str = None,
IsA... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
70fef156091609d8d1b6faba71b19d8d7e5d3ee8 | b8d208679a3a3b16960eecd92dd3dd5ce78f8e7f | /setup.py | dac804bcf98486f6b1a18f1dc210f95a471dea12 | [
"BSD-3-Clause"
] | permissive | jessicalumian/distillerycats | e509bdd5fbb8062931938d7f952058d0c5775851 | 67ac76b21397255af604d8bf4aad2eb7889dc88c | refs/heads/main | 2023-05-03T22:10:44.999734 | 2021-05-24T16:14:36 | 2021-05-24T16:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | from setuptools import setup, find_packages
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
CLASSIFIERS = [
"Environment :: Console",
"E... | [
"ntpierce@gmail.com"
] | ntpierce@gmail.com |
781083edd3afb79a9b9fbac3d4156eaf5378e226 | f16886292a92b113f901bfd757a909854e713431 | /dd/__init__.py | 926c384fe50d4d3bbbeaa08fb2ee3e041c13208c | [] | no_license | WilliamMayor/distorteddecade | a224132aa4396d26b740415bac9ea4830c4c0c0c | 9e6cfc651a44eb1f32ba300f8954f6694de87bf1 | refs/heads/master | 2021-01-02T15:35:12.418862 | 2015-06-06T18:13:51 | 2015-06-06T18:13:51 | 25,695,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import os
from flask import Flask
from blueprints import admin, public
from assets import assets
from login import manager
from models import db, bcrypt
import logging
from logging import StreamHandler
def create_app():
app = Flask(__name__)
file_handler = StreamHandler()
app.logger.setLevel(logging.DE... | [
"mail@williammayor.co.uk"
] | mail@williammayor.co.uk |
8725d49f69e07e80693171c657e35320b01b2f6d | a712ec2940aa6a2fa51da6392ae1fb7b1ba8ce40 | /setup.py | b77b6ede0f4085fce861f415b26ea1e28f1756c1 | [] | no_license | adam139/emc.policy | 511366acd3cd70a26e12bdecae8e890704362340 | bace3cec2cf7dbcf387d34ac3b22799e650e5dd0 | refs/heads/master | 2022-05-08T21:35:15.736156 | 2022-01-10T09:05:43 | 2022-01-10T09:05:43 | 47,091,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | from setuptools import setup, find_packages
import os
version = '2.0'
setup(name='emc.policy',
version=version,
description="A plone5 website policy package for emc project",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
... | [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
384d4adc895d76bbf6dea63d7d3703e61a53f8c6 | 7262a3c12297e853f72d0c0db2c9ca0f65d2115b | /Automation/page_locators/imdb.py | 2bdd74bb839a1086727e0fa301c734f0b06e0fe6 | [] | no_license | pavankumarag/navi | 6ae77b1d26a8e2ee31ee18ea35d54823bd26a1cb | 7a05ea1e3cfe3d339cbb3047948d7d370739fc51 | refs/heads/master | 2021-01-02T06:57:23.181001 | 2020-02-14T06:17:53 | 2020-02-14T06:17:53 | 239,538,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from selenium.webdriver.common.by import By
class Imdb:
IMDB_SEARCH = By.XPATH, "//input[@placeholder='Search IMDb']"
SELECT_DIRECTOR = By.XPATH, "//li//div[text()='Steven Spielberg']"
GET_DIRECTION_DETAILS = By.XPATH, "//td[contains(@class, 'name-overview')]//a[@href='#director']"
GET_PRODUCER_DETAILS = By.XPATH,... | [
"pavan.govindraj@nutanix.com"
] | pavan.govindraj@nutanix.com |
6e7eebbf4a4ec6e46a966d3ee419978748a8cb27 | 529792835d99e8f19afbc123a09b3c7920a024d5 | /space_invaders/__main__.py | 280d82477400ca6ab3cd2e7b5db605118bf665a9 | [] | no_license | tt-n-walters/python-thursday | fe39213f5ba267fbf9c501f1ea925253a034a8d4 | 6aaff5b5e3cb567b75a7ca8e5ad422303f54060e | refs/heads/master | 2020-12-23T21:22:42.112977 | 2020-03-12T19:08:12 | 2020-03-12T19:08:12 | 237,278,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import arcade
from player import Player
class SpaceInvaders(arcade.Window):
def __init__(self):
super().__init__(800, 600, "Space Invaders")
self.player = Player(self.width / 2, self.height * 0.1)
def on_key_press(self, symbol, modifiers):
if symbol == arcade.key.ESCAPE:
... | [
"nico.walters@techtalents.es"
] | nico.walters@techtalents.es |
00fccce3734b11b4909c02dc597c81c60d9c8e91 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_014/ch164_2020_06_22_14_35_35_738838.py | 0ade4746644b61691e840b595e7b7a32fd220af8 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | def traduz (lista_ing, ing_para_port):
lista_port = []
i = 0
while i < len(lista_ing):
for palavra_ing in ing_para_port.keys():
if palavra_ing == lista_ing[i]:
lista_port.append(ing_para_port[palavra_ing])
i += 1
return lista_port | [
"you@example.com"
] | you@example.com |
90b0873478e89f1b576399d52041d83d4f8238dd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2962/60632/270495.py | 42c9a572b669dda8b1dd54444c3567f603ecce28 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | n, p = map(int, input().split(' '))
key = list(map(str, input().split(' ')))
for i in range(n):
tmp = key[i][-3:]
key[i] = [ord(tmp[j])-ord('A') for j in range(3)]
val = 0
for j in range(3):
val += key[i][2-j] * int(pow(32, j))
key[i] = val % p
print(key)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
67d4c41d2f15933810af28140432f8c215daa312 | 8acbd7fcfe1bcf94e4e895e58ac5c81f8ed13741 | /logindjango/urls.py | 4c3c68c03abc8254f5dada8c9dfad97689615c85 | [] | no_license | Rajangupta09/School-beta | 440af5d5d078a46036cfa3c50865f980c5ff1ace | 3ca6ca9992d2b47bcfe1762beb8c88609d519ea5 | refs/heads/master | 2022-12-07T19:42:19.562804 | 2020-08-04T09:53:04 | 2020-08-04T09:53:04 | 284,509,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py |
from django.contrib import admin
from django.urls import path
from django.conf.urls import include
from django.conf import settings
from django.conf.urls.static import static
import accounts.views as account_view
urlpatterns = [
path('admin/', admin.site.urls),
path('', account_view.login, name="login"),
... | [
"rjnkumar05@gmail.com"
] | rjnkumar05@gmail.com |
2f520bd3b6b313173985892d867dcf64be36af6a | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/WebKit/Source/build/scripts/make_media_features.py | 54d96901113dd71893195d9d4389b8f107851a99 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,324 | py | #!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import media_feature_symbol
import in_generator
import template_expander
import name_utilities
import sys
class MakeMediaFeaturesWri... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
193d45a64aa8c10d15e3bff1fe15b1fdea4b440c | c167d1618c1df50de21238a00d4168505dce868f | /0x0A-python-inheritance/6-base_geometry.py | f666928f53bb510d1e7df03101098d47fd1de7a1 | [] | no_license | keen-s/alx-higher_level_programming | 8201845d7142bfdcbfa603fa3d135e3fabbe2bf2 | 7a70051b8cf89441f034c4886f51a99ae85e4f34 | refs/heads/main | 2023-08-12T18:23:30.985481 | 2021-10-18T20:48:29 | 2021-10-18T20:48:29 | 403,688,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/python3
"""A class based on 5-base_geometry.py"""
class BaseGeometry:
"""A class"""
def area(self):
""" A public instance method that raises
an exception
"""
raise Exception("area() is not implemented")
| [
"keen_spe@DESKTOP-C7LRBS8.localdomain"
] | keen_spe@DESKTOP-C7LRBS8.localdomain |
c7d25be25b084123be9f503b4dc69a84f322d9d1 | d76e8c5e7853b145b2c084975cadd0e4f29943f1 | /lib/bloggertool/commands/browse.py | fd3cde8a0673dbc98206c4d686146d1b6099ede0 | [
"MIT"
] | permissive | asvetlov/bloggertool | 57ab7408d6a7624f7d44ccc60de3761e7524935c | 7c145f66aa22f4124e8b1d198bc93ff703fa72b4 | refs/heads/master | 2021-03-12T20:16:56.014541 | 2015-03-29T09:54:36 | 2015-03-29T09:54:36 | 19,406,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | # commands/browse.py
# Copyright (C) 2011-2014 Andrew Svetlov
# andrew.svetlov@gmail.com
#
# This module is part of BloggerTool and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from textwrap import dedent
import webbrowser
from bloggertool.notify import Notifier
from blogger... | [
"andrew.svetlov@gmail.com"
] | andrew.svetlov@gmail.com |
da98e4bb53e067d4f151787d8ffd0e33a97109ae | f23fda62b1335182e0a59764c83680401c32c1b8 | /API_EX_PrtyPrinted/settings.py | 699115e70e992756d10182dcfdfe325d5ba38cd4 | [] | no_license | brrbaral/DjagoRESTLanguages | 2798aa087e0607ed5afe68141ec80965a7f47c36 | 07601986ce5976268bb86d8d7e8e4e4fecd912ea | refs/heads/master | 2023-01-10T16:53:06.515318 | 2020-11-11T03:52:46 | 2020-11-11T03:52:46 | 311,851,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,309 | py | """
Django settings for API_EX_PrtyPrinted project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
imp... | [
"brr.baral@gmail.com"
] | brr.baral@gmail.com |
a8dde743a40b22f756722ef65d395379ba3c280d | f1c20d0836f4815b81c895ffe22a29005db3746d | /backend/main/wsgi.py | 55aa3e2e2e988c5c5affb5d4806a1c97c8ae1eb1 | [] | no_license | pavelm2007/leadersofdigital_2020_04 | 6ceacf0858ea46bd73c5a0e0ab120cae802e85bd | 0132d1b3361518b109b0632daaf13ed8e849192d | refs/heads/main | 2023-04-04T21:12:54.890040 | 2021-04-17T20:37:02 | 2021-04-17T20:37:02 | 358,649,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for main 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"pavelm2007@yandex.ru"
] | pavelm2007@yandex.ru |
cef6047ec940823cb0576c6bf724bb9d4e71612f | 549d11c89ce5a361de51f1e1c862a69880079e3c | /feiji/testss.py | 0a2fa1c42bfbdea0b87652b6085ffd6b503f8b1f | [] | no_license | BaldSuperman/workspace | f304845164b813b2088d565fe067d5cb1b7cc120 | 4835757937b700963fdbb37f75a5e6b09db97535 | refs/heads/master | 2020-08-01T15:32:02.593251 | 2019-09-26T08:04:50 | 2019-09-26T08:04:50 | 211,034,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import pygame
from feiji.plane_Sprite import *
screen = pygame.display.set_mode(SCREEN_RECT.size)
while True:
for even in pygame.event.get():
print(even.type)
| [
"you@example.com"
] | you@example.com |
a89d752f30f6424ebd44fad015341ca5ff2fb94b | 178766cfa5b4a4785a900595278889ed8a828c90 | /blog/migrations/0011_rename_user_author_author.py | 7c1813b1f639eb0fbbb4c61c013dc6d2806ec67a | [] | no_license | ShahadatShuvo/django_blog_app | 0a48fd03b1ab585a08ae41bea40dd905771f7093 | 13c5d98c73fd65ad7353d83ca065344a2811c694 | refs/heads/master | 2023-06-05T08:11:40.479944 | 2021-06-26T18:55:12 | 2021-06-26T18:55:12 | 376,760,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # Generated by Django 3.2.4 on 2021-06-26 14:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0010_rename_author_author_user'),
]
operations = [
migrations.RenameField(
model_name='author',
old_name='user',
... | [
"shahadat@baiust.edu.bd"
] | shahadat@baiust.edu.bd |
b216d42b41d02698e713dca93ca58a36287b9f1c | 03dfcd4bd41ff9ba76e67895e96a9794ad003a31 | /sandbox/problems/l2q6.py | 3f72d83401c659405f22bde75a2cff7ae09c26ae | [] | no_license | gittygitgit/python-sandbox | 71ca68fcc90745931737f7aeb61306ac3417ce60 | 3b3e0eaf4edad13aabe51eb3258ebe9e6b951c67 | refs/heads/master | 2021-01-19T02:41:17.047711 | 2018-11-22T18:07:15 | 2018-11-22T18:07:15 | 39,742,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/python
'''
Question:
Write a program that calculates and prints the value according to the given formula:
Q = Square root of [(2 * C * D)/H]
Following are the fixed values of C and H:
C is 50. H is 30.
D is the variable whose values should be input to your program in a comma-separated sequence.
Example
Let u... | [
"grudkowm@Michaels-Air-2.fios-router.home"
] | grudkowm@Michaels-Air-2.fios-router.home |
9dd0cdef10c7a872c03294c15a2d2ac2174cea62 | 90df9cbc8d15b0bd08ceb7fc42088021efbdfbe1 | /projectile.py | 0ef350a3367ca4d77503f15f70ae673e3c2e05cb | [
"MIT"
] | permissive | whaleygeek/variable_duty_cycle | bef0ef9dbba99fd508cbb47a2b8befc0f958f855 | 82c197f7c79c2074b7f0eacac1686aa8e28a9a21 | refs/heads/master | 2021-01-20T01:45:36.806435 | 2017-04-27T12:55:35 | 2017-04-27T12:55:35 | 89,324,831 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | # projectile.py 25/04/2017 D.J.Whale
#
# A Python implementation of the Variable Duty Cycle algorithm
# implementing a simple projectile plotter
#
# Idea from:
# https://archive.org/stream/byte-magazine-1981-10/1981_10_BYTE_06-10_Local_Networks#page/n389/mode/2up
# Original Pseudo Code
# C horizontal duty counter
#... | [
"david@thinkingbinaries.com"
] | david@thinkingbinaries.com |
16d10155454d78b274b64a76eebdc6f731152e65 | 109a830aad476305f029274d75e28bec8b54f597 | /venv/bin/django-admin | 1608e243708e9f7fa2a64226ea036f01a70824c7 | [] | no_license | Dapucla/EP | 53b156088046abfd6833eba95dc4393ebeb93f4e | 9368032b4b289b20ec1bdf0033d3fe199223d200 | refs/heads/master | 2023-06-19T08:02:55.984888 | 2021-07-11T22:52:24 | 2021-07-11T22:52:24 | 330,009,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | #!/Users/daniilalekseev/PycharmProjects/DevicesOnlineShop/ENG-PROJECT/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_comma... | [
"dapcula08@yandex.ru"
] | dapcula08@yandex.ru | |
f5d774828824bb6b08702b8147a2b8fef9436add | 4c992ca9bb41383ec3a9c7dc7a1e4204ef6cb850 | /publicdata/censusreporter/series.py | e211e540e6e3d1318fa8fb6cb525d1ea0e75569b | [
"MIT"
] | permissive | rkiyengar/publicdata | f72d19d5d2821707d7a84c232cb66fb6686801db | 8fddc1a460716a3d54a7504c82376c083a0af014 | refs/heads/master | 2021-08-28T15:14:33.113145 | 2017-12-12T15:11:46 | 2017-12-12T15:11:46 | 113,387,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | # Copyright (c) 2017 Civic Knowledge. This file is licensed under the terms of the
# MIT License, included in this distribution as LICENSE
"""
"""
from pandas import DataFrame, Series
import numpy as np
from six import string_types
import numpy as np
from six import string_types
class CensusSeries(Series):
_me... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
72dc2fa92097e059528253cd249e8a5adaa613ad | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/linkedlist_20200623140505.py | 3fbc3a13dbff9fdaff5799ef81ca03724a251395 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # Linked List implementation
# implements the node type
# stores a single data field ---> val
class Node(object):
def __init__(self,val):
self.val = val
self.next = None
def get_data(self):
return self.val
def set_data(self,val):
self.val = val
def get_next(self)... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
0ea6c1d03a86d7ca86b5f5f804c1422b102cb628 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_spites.py | d2c6c8a7bc2b2a2463e64b4751f5d767476db7b2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.verbs._spite import _SPITE
#calss header
class _SPITES(_SPITE, ):
def __init__(self,):
_SPITE.__init__(self)
self.name = "SPITES"
self.specie = 'verbs'
self.basic = "spite"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
037699b5f44d1f196eb5a8aac2be877a7d4491f3 | 089b396be42accf7dedd6a935b8cb29d43f25e2c | /core/urls.py | d30152bfd637967c2d79e3491e09b842841d8b8f | [
"MIT"
] | permissive | edgarslabans/django-ajax-xhr_nio | b4dcce4b9d5d73a60e912cc0cc926e5c78f737ba | b33ab12fc17a3fb98812c12259f97525f3746bd2 | refs/heads/main | 2023-08-22T21:16:28.266245 | 2023-08-22T11:38:48 | 2023-08-22T11:38:48 | 681,173,754 | 0 | 0 | MIT | 2023-08-21T12:35:21 | 2023-08-21T12:35:19 | null | UTF-8 | Python | false | false | 416 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from todos.views import home, todo, todos
urlpatterns = [
path('admin/', admin.site.urls),
path('todos/<int:todoId>/', todo, name="todo"),
path('todos/', todos, name="t... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
b531a7e2091cb595f280d47d3bef514cc6dba92b | ec030fab06dab9a94835a5d308fb8411111be0b4 | /myprintgoogle.py | 47bb714ad8cd0381fa217c1d8dcc3361b5b82582 | [] | no_license | mortadagzar/Python_Kivy_MobileApps | e464319cb7825c57bbfb44f95b4aca15e3734988 | d941a8d2da00a2420a47b07224e3ed876698ea23 | refs/heads/master | 2020-04-08T03:35:51.097417 | 2019-03-08T05:17:07 | 2019-03-08T05:17:07 | 158,982,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from google.cloud import storage
def upload_blob(bucket_name, source_file_name, destination_blob_name):
"""Uploads a file to the bucket."""
storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)
blob = bucket.blob(destination_blob_name)
blob.upload_from_filename(source_f... | [
"mortadagzar@gmail.com"
] | mortadagzar@gmail.com |
33d73097852c91a54cb2e24f3a6ee3f6e61acb17 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/174/36355/submittedfiles/ex11.py | 6ab9a8927f2e4d904e182bedbdc3a5c7e569d9e1 | [] | 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 | 473 | py | # -*- coding: utf-8 -*-
d1 = float(input('Dia:'))
m1 = float(input('Mes:'))
a1 = float(input('Ano:'))
d2 = float(input('Dia:'))
m2 = float(input('Mes:'))
a2 = float(input('Ano:'))
if a1>a2:
print ('DATA 1')
elif a1<a2:
print ('DATA 2')
else:
if m1>m2:
print('DATA 1')
elif m1<m2:
print('D... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
11f9cc4c53607b22d92b19a8e39858302b699a6c | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/1456_maximum_number_of_vowels_in_a_substring_of_given_length.py | b8c1ee441ba0fe9a18e4fc45c9b3521258e986f6 | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | '''
Given a string s and an integer k, return the maximum number of vowel letters in any substring of s with length k.
Vowel letters in English are 'a', 'e', 'i', 'o', and 'u'.
Example 1:
Input: s = "abciiidef", k = 3
Output: 3
Explanation: The substring "iii" contains 3 vowel letters.
Example 2:
Input: s = "aei... | [
"yu.logan@gmail.com"
] | yu.logan@gmail.com |
597713e0d9f271c187c3ffd7c3cec16228a0eb6d | 7390417d66411000e18156bf3ec6389f3a4aa3dc | /website/feature_importances_correlations/between_targets/page.py | 173578411f3867740fbdfbd59855634900e31e2d | [
"MIT"
] | permissive | HMS-AgeVSSurvival/Website | fb911e10eedd3212f1440e57a97061a50cc4e33d | 298000aee6ab951a7f90e6bb4ca4716997a0398b | refs/heads/main | 2023-07-26T06:23:39.064024 | 2021-09-14T09:15:27 | 2021-09-14T09:15:27 | 388,773,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from website.app import APP
import dash_bootstrap_components as dbc
import dash_html_components as html
from dash.dependencies import Input, Output
from website.feature_importances_correlations.between_targets.tabs.all_categories import get_all_categories
from website.feature_importances_correlations.between_targets.t... | [
"theo.vincent@eleves.enpc.fr"
] | theo.vincent@eleves.enpc.fr |
deb0389d1cc707e4fbb2f91c535f9f8f36f9d5dc | 1b554b6c970ba31bffae8434611e307770fa2e95 | /lof/generator.py | e32c81ea71f3ccd889b232fb83343ac33986dba4 | [
"MIT"
] | permissive | mkaraev/lof | 0d1821b04b0137d982638276e5d6fdb06c7d3441 | 19be33d1283842069af0dd0776027b24676aac5e | refs/heads/main | 2023-06-25T07:09:51.701689 | 2021-07-24T22:10:26 | 2021-07-24T22:10:26 | 389,283,255 | 0 | 0 | MIT | 2021-07-25T07:00:12 | 2021-07-25T07:00:12 | null | UTF-8 | Python | false | false | 2,993 | py | import importlib
import json
from typing import Callable, Dict, Optional
from fastapi import FastAPI, Request, Response
from fastapi.responses import JSONResponse
def create_route(endpoint: Dict, handler: Callable, method: str, app: FastAPI):
method = getattr(app, method)
@method(endpoint)
async def _me... | [
"xnuinside@gmail.com"
] | xnuinside@gmail.com |
e724b791e0662abba8b8bc7979733f388d1ca514 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/SUSYGluGlu/SUSYGluGluToBBHTohhTo2Tau2B_M-300_TuneCUETP8M1_13TeV-pythia8_filter_cfi.py | 352f91727e0d5853e6653e614b6f39233fbe62da | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 4,945 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter", ... | [
"Yuta.Takahashi@cern.ch"
] | Yuta.Takahashi@cern.ch |
44e0524543acf5ef0dae068943b35982c863e360 | 9ecf55bf2601e0d4f74e71f4903d2fd9e0871fd6 | /my_seg_keras/v2_unet_street/test_generator.py | bdf7e240c0cac4b018e854ff41d915a48e308ba9 | [] | no_license | qq191513/mySeg | 02bc9803cde43907fc5d96dc6a6a6371f2bef6fe | 4337e6a0ca50b8ccbf6ed9b6254f2aec814b24db | refs/heads/master | 2020-04-10T09:57:37.811133 | 2019-06-26T08:21:23 | 2019-06-26T08:21:23 | 160,951,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | import numpy as np
import matplotlib.pyplot as plt
from v1 import config as cfg
import time
from data_process.use_generator import imageSegmentationGenerator
def split_batch_to_pic_list(img):
#一个batch_size的四维张量图片分割成一组列表图片(三维)
batch_size = img.shape[0]
img_list = np.split(img,batch_size,axis=0)
for index,img in enu... | [
"1915138054@qq.com"
] | 1915138054@qq.com |
1920bee1faeb280feb1f63b7b78c650bc8c772d4 | 2b29095a4f8a60e6ad2f09dd257dc8a9ceb04ebd | /misfits/tools/smooth/__init__.py | 2658ea2efa922b41405685907facd4a792e93f0c | [] | no_license | sholmbo/misfits | f82601cdf5778c4ea57c3d9fed8aea3cd3b641f9 | e34a0ba0b62948840a6bcb1c28d340b8c613dd66 | refs/heads/master | 2023-02-25T13:17:48.670735 | 2021-02-02T15:12:12 | 2021-02-02T15:30:11 | 277,625,987 | 0 | 1 | null | 2021-02-02T15:18:35 | 2020-07-06T19:04:35 | Python | UTF-8 | Python | false | false | 132 | py | from .lowpass import LowPass
from .boxcar import Boxcar
from .gaussian import Gaussian
from .smoothingspline import SmoothingSpline
| [
"simonholmbo@gmail.com"
] | simonholmbo@gmail.com |
9a9bc9fac9a12e1a306ff9724f080209bd2e6cf5 | cc9a6fa4012c58f66d735e20486b9a1df877d1b7 | /Strings/Integer To Roman.py | 6ce9d5509a8706b487d0cf4902e31d2557ad5670 | [] | no_license | sharmaji27/InterviewBit-Problems | 6e5acb6d45296b60df8632a02b0aa272dcde8f28 | 09054fdab0350a86268cfe5eb55edc2071067b2b | refs/heads/master | 2023-08-27T23:08:34.003883 | 2021-10-20T05:33:46 | 2021-10-20T05:33:46 | 265,551,578 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | '''
Given an integer A, convert it to a roman numeral, and return a string corresponding to its roman numeral version
Note : This question has a lot of scope of clarification from the interviewer. Please take a moment to think of all the needed clarifications and see the expected response using “See Expected Outpu... | [
"asharma70420@gmail.com"
] | asharma70420@gmail.com |
505ecf386e4dc812d1ffee11c7b7ce8a2b19b3fa | 28f088b5356e66780c4bad204564bff92f910f02 | /src/python/pants/base/exception_sink_integration_test.py | bdbc6b8ff6855afb1a1bf2eb685a4f9e39400f25 | [
"Apache-2.0"
] | permissive | wonlay/pants | 57dcd99f82cdb2e37fcb7c563ec2bccf797ee7b7 | 53c66503b6898e83c9c9596e56cde5ad9ed6a0d3 | refs/heads/master | 2023-03-06T03:23:08.602817 | 2022-05-05T23:41:32 | 2022-05-05T23:41:32 | 24,695,709 | 0 | 0 | Apache-2.0 | 2023-03-01T11:59:58 | 2014-10-01T21:15:29 | Python | UTF-8 | Python | false | false | 4,970 | py | # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
import re
import signal
import time
from pathlib import Path
from typing import List, Tuple
import pytest
from pants.base.build_environment import get_buildroot
from pants.base... | [
"noreply@github.com"
] | wonlay.noreply@github.com |
fffdf977cf0f7526c91b672b614f4123a1b4ffb7 | 992969b8b0beb53bf884938ae20f5d56bb3878f2 | /rules/taxonomic_classification/Snakefile | cfeaba79fdeb1f60bd767ff30569e1b24c9ae5ba | [
"BSD-3-Clause"
] | permissive | dahak-metagenomics/taco-taxonomic-classification | c6f0120e7d5e979c03d4c6d0778756960f46e593 | 854cae4f1b2427746a1faa6a0e0aefbfb11c5523 | refs/heads/master | 2020-03-12T21:29:04.347344 | 2018-05-03T16:47:32 | 2018-05-03T16:47:32 | 130,829,061 | 0 | 0 | BSD-3-Clause | 2018-12-16T03:00:58 | 2018-04-24T09:23:14 | Python | UTF-8 | Python | false | false | 298 | import utils
include: "taxonomic_classification.settings"
include: "biocontainers.rule"
include: "sourmash_sbt.rule"
include: "calculate_signatures.rule"
include: "trimmed_data.rule"
include: "kaiju.rule"
include: "kaiju2krona.rule"
include: "filter_taxa.rule"
include: "krona_visualization.rule"
| [
"charlesreid1@gmail.com"
] | charlesreid1@gmail.com | |
49ac68fcf23d7d889d0bd59ad259e4465769c696 | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/Feshbach ramp10ms 0-47A.sub.py | 393291c0239b4dbeeb5ba83566e5ced7dd8e41ea | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,992 | py | prg_comment = ""
prg_version = "0.5.1"
def program(prg, cmd):
prg.add(0, "Delta 1 Current", 0.000000)
prg.add(1000, "Delta 1 Current", 0.470000)
prg.add(2000, "Delta 1 Current", 0.940000)
prg.add(3000, "Delta 1 Current", 1.410000)
prg.add(4000, "Delta 1 Current", 1.880000)
prg.add(5000, "Delta 1... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
bc770e9ab63ca5279016744344e0868a658a80a9 | 257bd63361aa846ffdacdc15edaecf84c6364e78 | /psou2/pyanal1/apack1/ex7_t-test.py | 0753bfe9b286ee0d0bd0745aa8b0a95a5414b8f0 | [] | no_license | gom4851/hcjeon | 86dcfd05ce47a13d066f13fe187d6a63142fb9fe | 59a00ca9499f30e50127bb16eb510553e88ace43 | refs/heads/master | 2020-06-04T23:16:08.632278 | 2019-01-15T09:54:08 | 2019-01-15T09:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,682 | py | '''
Created on 2018. 11. 29.
두 집단일 때
남녀의 성적, A반과 B반의 키, 경기도와 충청도의 소득 따위의 서로 독립인 두 집단에서 얻은 표본을 독립표본(two sample)이라고 한다.
실습) 남녀 두 집단 간 파이썬 시험의 평균 차이 검정
Male = [75, 85, 100, 72.5, 86.5]
female = [63.2, 76, 52, 100, 70]
'''
from scipy import stats
import pandas as pd
from numpy import average
from pandas.io.parsers impor... | [
"wer104@naver.com"
] | wer104@naver.com |
9d600cce89991aa6203255279e0ca1a38c358019 | 9dda81fb80905226b10e69d4c20f72533f2b68bd | /word4u/settings.py | 428f2f62207b14eda69e375e388e9fc7056bd2e4 | [] | no_license | SardarDawar/graphicStore-ecommerce | 2c610d6ef4e62d98659bf98d3d80af3d1926aa3f | 1d9208d27e4ba69bedf7a34b7e54bcc540d26438 | refs/heads/master | 2023-02-02T13:45:31.335032 | 2020-12-15T18:52:43 | 2020-12-15T18:52:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | """
Django settings for word4u project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"dawarsardar786@gmail.com"
] | dawarsardar786@gmail.com |
044ee99b8b988b65ecbc2c2dec1ecf70dd5fdc3e | 4f7319f90b9ea3bfdae13a59885b917db6037164 | /utils.py | 25d30a4ee9fd42b0e27142b1d9901d93f4fa377a | [] | no_license | DmytroKaminskiy/hillel-git | c78eb3b52b0a827527421cb2fef6e09eebf23e6d | d42f7d8f441333f83cfe5e57b7aa744737891acc | refs/heads/main | 2023-02-12T01:16:55.017896 | 2021-01-14T19:26:23 | 2021-01-14T19:26:23 | 323,099,692 | 0 | 0 | null | 2020-12-24T19:20:24 | 2020-12-20T15:10:59 | Python | UTF-8 | Python | false | false | 4,124 | py | def generate_password(length: int) -> str:
"""
generate password with given length
Homework
функция должна возвращать строку из случайных символов заданной длины.
"""
return ''
def encrypt_message(message: str) -> str:
"""
encrypt message
зашифровать сообщение по алгоритму.
См... | [
"dmytro.kaminskyi92@gmail.com"
] | dmytro.kaminskyi92@gmail.com |
16479781a6eaec6b633cfb0c482675ebfec21d1c | f1fe131614660a04e4fe4ad27b5183ffe2b2a6e4 | /2020/22a.py | adf2ab439b15c787a0786490d4ad786d1b4b22f6 | [
"MIT"
] | permissive | msullivan/advent-of-code | 5873228d562c1069d6516ee99943013bc91c4caa | e52c93e2ffa1e598f23e6d0e356b54c5e82ee61d | refs/heads/master | 2023-01-04T07:14:46.367051 | 2023-01-03T19:04:12 | 2023-01-03T19:04:12 | 47,717,709 | 9 | 4 | MIT | 2022-12-07T19:39:52 | 2015-12-09T20:41:00 | Python | UTF-8 | Python | false | false | 721 | py | #!/usr/bin/env python3
import sys
import re
def extract(s):
return [int(x) for x in re.findall(r'-?\d+', s)]
def main(args):
data = [x.strip().split('\n') for x in sys.stdin.read().split('\n\n')]
# data = [s.strip() for s in sys.stdin]
d1 = [int(x) for x in data[0][1:]]
d2 = [int(x) for x in dat... | [
"sully@msully.net"
] | sully@msully.net |
951f0b687ce2c59a9cbbd6d74b48fae3832ff058 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/miniclient/lobby/header/account_popover.py | f40f37a1d090fd11f2dd1dc02f387086e216e1ab | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,474 | py | # 2016.02.14 12:38:06 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/miniclient/lobby/header/account_popover.py
from gui.Scaleform.locale.MINICLIENT import MINICLIENT
from gui.shared.utils.functions import makeTooltip
from helpers import aop
from helpers.i18n import makeString as _ms
class ClanBtn... | [
"info@webium.sk"
] | info@webium.sk |
560fd9677d919732ed6f5c0c072bed734de5e606 | 626b14ce13986b6d5e03143e151004247659625a | /Day66-75/code/myutils.py | e013c27a881545e2cececd53c451c5dc84ae478a | [] | no_license | Focavn/Python-100-Days | c7586ecf7ae3f1fd42f024558bb998be23ee9df8 | d8de6307aeff9fe31fd752bd7725b9cc3fbc084b | refs/heads/master | 2021-08-08T17:57:02.025178 | 2020-09-17T11:58:04 | 2020-09-17T11:58:04 | 220,427,144 | 0 | 0 | null | 2019-11-08T08:59:43 | 2019-11-08T08:59:41 | null | UTF-8 | Python | false | false | 202 | py | from functools import wraps
def coroutine(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
gen = fn(*args, **kwargs)
next(gen)
return gen
return wrapper
| [
"Focavn@users.github.com"
] | Focavn@users.github.com |
72653be3b07d719ad692e5faa92e16a8f3b42b58 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/process_data/consolidate.py | ce20ffe52de5597a4618268be84969ec69785382 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | import pickle
import glob
import numpy as np
def print_stats(data):
returns = []
path_lengths = []
print("num trajectories", len(data))
for path in data:
rewards = path["rewards"]
returns.append(np.sum(rewards))
path_lengths.append(len(rewards))
print("returns")
print... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
d955f629b3a6c204796080da55b86f3e501fa3d8 | 3312b5066954cbf96c79ef3e1f3d582b31ebc5ae | /colegend/events/migrations/0003_auto_20161127_1814.py | dd7c171af96b65ca770497884530df6b420a88a0 | [] | no_license | Eraldo/colegend | d3f3c2c37f3bade7a3a1e10d307d49db225fe7f5 | 2e7b9d27887d7663b8d0d1930c2397c98e9fa1fc | refs/heads/master | 2021-01-16T23:32:09.245967 | 2020-10-07T12:12:14 | 2020-10-07T12:12:14 | 21,119,074 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-27 17:14
from __future__ import unicode_literals
import colegend.cms.blocks
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('events', '0002_auto... | [
"eraldo@eraldo.org"
] | eraldo@eraldo.org |
3294f3bed75b66731462f43071b989c78c1010b7 | a0801d0e7325b31f0383fc68517e208680bb36d6 | /ProjectEuler/142.py | 85d8bf0fe2a06c44ae1c87bb45a122ac7a0c6bae | [] | no_license | conormccauley1999/CompetitiveProgramming | bd649bf04438817c7fa4755df2c2c7727273b073 | a7e188767364be40f625612af3d16182f2d8d4de | refs/heads/master | 2023-05-14T13:19:32.678134 | 2023-05-11T16:07:33 | 2023-05-11T16:07:33 | 179,089,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | MX = 1000000
squares = set([n * n for n in range(1, MX)])
for i in range(1, MX):
s1 = i * i
for j in range(1, i):
s2 = j * j
s3 = s1 - s2
if s3 not in squares: continue
for k in range(1, j):
s4 = k * k
s5 = s1 - s4
s6 = s2 - s5
if s... | [
"conormccauley1999@gmail.com"
] | conormccauley1999@gmail.com |
9acd75923def0033845f2bee8b1a89f62688789c | 0486b6ccf883e9cd7a24bbd89b5420e7de2172b9 | /DRF Study Material/Django REST Code/gs1/api/migrations/0001_initial.py | 3f7e085f4200f8573144c16f9a572d21f27b04b6 | [] | no_license | ajitexl/restfrmaework | 2980203d7faa6c8364288283758d32c8f2a37817 | 9ab203748e623516365d9924dcc68acc786a66e1 | refs/heads/main | 2023-02-03T08:52:00.672047 | 2020-12-10T09:50:51 | 2020-12-10T09:50:51 | 320,222,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 3.1.1 on 2020-10-08 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', m... | [
"you@example.com"
] | you@example.com |
2d71ffa6cfe0c24d3bfbca19a207ee4695593d52 | c6057a6cc2cf02aa6b9aa877402e84b9cb0bf596 | /commands.py | 3a15d2dbb00813a78c73f9957bd202d12eb83de3 | [] | no_license | DollaR84/HotSound | 372b3e7bd585fa1dc14e31d9fbd0364f7293e1ce | a969f2faac6dfef3b12f69960052f33f77c0de61 | refs/heads/master | 2023-03-25T18:20:56.941975 | 2020-04-08T07:55:08 | 2020-04-08T07:55:08 | 351,373,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | """
Commands for graphical interface.
Created on 12.02.2020
@author: Ruslan Dolovanyuk
"""
import webbrowser
from dialogs.dialogs import About
from dialogs.dialogs import Message
from linker import Linker
from player import Player
import version
import wx
class Commands:
"""Helper class, contains command... | [
"cooler84@ukr.net"
] | cooler84@ukr.net |
f131821fc8232df89ad26250894a2c7c8d50ae4a | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/detection/autoassign/pytorch/mmdet/core/bbox/coder/base_bbox_coder.py | 0872bf008b42d3e9056ce17ea135c7d8ba18c92a | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 514 | py | # Copyright (c) OpenMMLab. All rights reserved.
from abc import ABCMeta, abstractmethod
class BaseBBoxCoder(metaclass=ABCMeta):
"""Base bounding box coder."""
def __init__(self, **kwargs):
pass
@abstractmethod
def encode(self, bboxes, gt_bboxes):
"""Encode deltas between ... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
4dad4fd1062e9275b9c9a467a5b2a23d31a1b62d | 3d06eeebdd598efba25d29d7e3d03d90ede1bfbd | /15_lesson(django)/itProger/blog/migrations/0001_initial.py | 2f69d752487a523064c5052cc3a50ad5bc00220d | [] | no_license | duk1edev/itproger | 58bdd16088dec7864585d318935b118ce584874d | 786f94fff6d816f3f978bd8c24c3d985ffd5ffb2 | refs/heads/master | 2021-01-02T02:43:32.684100 | 2020-03-28T18:10:25 | 2020-03-28T18:10:25 | 239,443,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # Generated by Django 3.0.4 on 2020-03-13 23:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
d8f2a9320c7bf9881c95e4b343f6339d2052933b | bd02997a44218468b155eda45dd9dd592bb3d124 | /baekjoon_2146_3.py | b09cb7e0c56e5b92cbe28541d979b1e838604d8d | [] | no_license | rheehot/ProblemSolving_Python | 88b1eb303ab97624ae6c97e05393352695038d14 | 4d6dc6aea628f0e6e96530646c66216bf489427f | refs/heads/master | 2023-02-13T03:30:07.039231 | 2021-01-04T06:04:11 | 2021-01-04T06:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | '''
Problem Solving Baekjoon 2146_3
Author: Injun Son
Date: Dec 21, 2020
'''
import sys
sys.setrecursionlimit(10 ** 6)
from collections import deque
N = int(input())
graph = [list(map(int, input().split())) for _ in range(N)]
check = [[False] * N for _ in range(N)]
dx = [-1, 0, 0, 1]
dy = [0, 1, -1, 0]
ans = sys.m... | [
"ison@sfu.ca"
] | ison@sfu.ca |
b1a25edd516630842446acf3d6b63f6392f82110 | 41249d7d4ca9950b9c6fee89bf7e2c1929629767 | /results/lmg_optimizations_50spins_criticalpoint_diffConstraints_20200617/script_lmg_crab4freq_neldermead_bound08_fixedInitialPoints_tf2.py | 3d216507ee0ed4e33aa36db3e1ff63d419d92a85 | [
"MIT"
] | permissive | lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381 | f739b3baad1d2aadda576303bb0bbe9d48ec204a | 29f80dcf914096555cee9bc2e18249a2c95d6a50 | refs/heads/master | 2022-11-22T00:44:09.998199 | 2020-07-21T08:35:28 | 2020-07-21T08:35:28 | 281,237,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | import os
import sys
import numpy as np
import pandas as pd
import logging
if '../../' not in sys.path:
sys.path.append('../../')
import src.optimization as optimization
import src.protocol_ansatz as protocol_ansatz
from src.utils import autonumber_filename, basic_logger_configuration
output_file_name = os.path.ba... | [
"lukeinnocenti@gmail.com"
] | lukeinnocenti@gmail.com |
931f4d5d28fbb6cd5865f176db4d037f806c9964 | d86e9d59784097a7262fa9337585a36bd58a6d29 | /cvxbenchmarks/lib/data/epsilon/epopt/problems/robust_pca.py | d0cb3237223924c12733872e4563a3ff724d0b0c | [] | no_license | nishi951/cvxbenchmarks | 2ae36e75c42c8bd35fafac98bad5d9d88168bd68 | 932141d8e4e929860011bf25c41e941e2f8fbd76 | refs/heads/master | 2021-01-11T07:23:32.260811 | 2018-09-15T22:23:14 | 2018-09-15T22:23:14 | 62,177,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import cvxpy as cp
import numpy as np
import scipy.sparse as sp
def create(n, r=10, density=0.1):
np.random.seed(0)
L1 = np.random.randn(n,r)
L2 = np.random.randn(r,n)
L0 = L1.dot(L2)
S0 = sp.rand(n, n, density)
S0.data = 10*np.random.randn(len(S0.data))
M = L0 + S0
lam = 0.1
L =... | [
"nishimuramarky@yahoo.com"
] | nishimuramarky@yahoo.com |
8982bb30bc58de5af180ccd22ab752d94dcc2df1 | c50cf19707ecf44c8e15acf0e994d288fe4f01a7 | /addition/migrations/0005_auto_20160420_1600.py | dbc95f4b80f196cabb9c51f3bd641a0ee163e56f | [
"MIT"
] | permissive | JeremyParker/idlecars-backend | ee5981356c60161dee05c22e01e5c913e73083c0 | 819cce48e4679d61164b238b81dab0e4d51b8afa | refs/heads/master | 2021-03-16T04:29:43.287760 | 2018-03-03T23:16:02 | 2018-03-03T23:16:02 | 31,734,223 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('addition', '0004_addition_created_time'),
]
operations = [
migrations.RemoveField(
model_name='addition',
... | [
"github@jeremyparker.org"
] | github@jeremyparker.org |
6fe457cbf36eb7f66a569eb0d932fb84baac199e | 1e9c67785cd2a07fbd12b63bd93a2eba2272f237 | /gcn1/parameters.py | 90f131240639bd833f76ced834fd592e8188d5d6 | [] | no_license | monisha-jega/mmd | 2975d0f77bce4db38795fa201f515f35498f0eb3 | d4f9d2c94409c2877ff5a5a2242e7e7ed2f87921 | refs/heads/master | 2022-07-20T17:01:39.043859 | 2020-05-16T23:31:35 | 2020-05-16T23:31:35 | 264,543,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | # train_dir = "/scratch/scratch2/monishaj/dataset/v1/valid/"
# val_dir = "/scratch/scratch2/monishaj/dataset/v1/valid/"
# test_dir = "/scratch/scratch2/monishaj/dataset/v1/test/"
# data_dump_dir = "/scratch/scratch2/monishaj/image_data_dump_SN/"
# model_dump_dir = "/scratch/scratch2/monishaj/image_model_dump_SN/"
# #Mu... | [
"monishaj@Monishas-MacBook-Pro.local"
] | monishaj@Monishas-MacBook-Pro.local |
13f35bebc83121ef7c3b39ca0bd9121a7e9981ce | d09c6ff7114f69a9326883c5b9fcc70fa994e8a2 | /_pycharm_skeletons/renderdoc/GLFBO.py | 22543193e763b3990fca10ebdc726c68f718ce92 | [
"MIT"
] | permissive | Lex-DRL/renderdoc-py-stubs | 3dd32d23c0c8219bb66387e6078244cff453cd83 | 75d280e4f500ded506f3315a49fc432b37ab4fa6 | refs/heads/master | 2020-08-22T16:55:39.336657 | 2019-11-03T01:21:26 | 2019-11-03T01:21:26 | 216,441,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | # encoding: utf-8
# module renderdoc
# from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd
# by generator 1.146
# no doc
# imports
import enum as __enum
from .SwigPyObject import SwigPyObject
class GLFBO(SwigPyObject):
""" Describes the contents of a framebuffer object. """
def __eq__(self, *args, **kwa... | [
"drl.i3x@gmail.com"
] | drl.i3x@gmail.com |
82d0e61c36c862b9836cbf9fa197313ee1b5d21a | 5a0488b1e1b3cb9423ab5537598cd2e927deada1 | /com/kute/date/caltime.py | 28d7f63207063afa069969fede799cf1ce8f4878 | [] | no_license | dajima/purepythontest | c276796a90ded77cc033b717a01425a64c5fe729 | 1e0c446f9f6d2bf1f38ab2aafec5af914cf66293 | refs/heads/master | 2021-06-07T04:15:34.450197 | 2016-11-03T14:27:28 | 2016-11-03T14:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = 'kute'
# __mtime__ = '16/7/31 17:04'
"""
计算函数执行时间 装饰器
"""
from functools import wraps
import time
def perf_counter(function):
@wraps(function)
def _caltime(*args, **kwargs):
start = time.perf_counter()
result = function(*args,... | [
"kutekute00@gmail.com"
] | kutekute00@gmail.com |
f834ec50bc964f06617f54a3c83792264173427b | ec1fad1e16d24f51987acba26c1b4014cbed0e96 | /python/xgbserver/xgbserver/__main__.py | 8d64b763e7a79c82e256e3e7e49deb18ca3d2197 | [
"Apache-2.0"
] | permissive | Jeffwan/kfserving | 4127b811fd9b778903c0c7572b0bc687e1997efd | 47a6303173dab27b157ca77c72d62b847d099d21 | refs/heads/master | 2020-06-05T03:06:11.606236 | 2019-10-06T01:47:10 | 2019-10-06T01:47:10 | 192,292,123 | 0 | 0 | Apache-2.0 | 2019-06-17T06:59:43 | 2019-06-17T06:59:41 | null | UTF-8 | Python | false | false | 1,289 | py | # Copyright 2019 kubeflow.org.
#
# 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,... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
63a925ca4475c05114f2fa5a5e84e1cfd5c070e2 | 3432efd194137e1d0cb05656eb547c9992229f02 | /test1014/other/5.py | 2163452ba68ab81662362b7241b90f2aba765a8c | [] | no_license | zhanganxia/other_code | 31747d7689ae1e91fcf3f9f758df130246e7d495 | 8d09d9d0b6d6a1a9b8755487f926ac6fafd761fa | refs/heads/master | 2021-09-04T02:22:38.632685 | 2018-01-14T15:37:14 | 2018-01-14T15:37:14 | 107,007,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | #encoding=utf-8
a=input("请输入第一个数:")
b=input("请输入第二个数:")
c=input("请输入第三个数:")
d=input("请输入第四个数:")
e=input("请输入第五个数:")
num1=int(a)
num2=int(b)
num3=int(c)
num4=int(d)
num5=int(e)
sum=num1+num2+num3+num4+num5
print (sum) | [
"kk@kk.rhel.cc"
] | kk@kk.rhel.cc |
c971d3ead94eb08032a310c9abc1c648f30c516b | 7e69c60c23fce92463c78774b5968d3320c715c9 | /django_covid/django_covid/wsgi.py | b570b88fa5b444fdc628f862febd2e87d82a55f9 | [] | no_license | hwet-j/Python | 5128d114cf7257067f68cfb1db502e4f762ac8cc | 3e6f36be665932588a576f44ebb0107a4f350613 | refs/heads/master | 2023-04-08T17:52:31.607225 | 2021-04-17T05:25:02 | 2021-04-17T05:25:02 | 353,336,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for django_covid 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"ghlckd5424@gmail.com"
] | ghlckd5424@gmail.com |
1acb6d67a1ae657f90c2e4402322ec6d567f9adc | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_network_policy_port.py | 85bb6625d011a03814dc504e0395a5ee14e54a4d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 3,880 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
20af141d1a5395d48a83884c91f1a07c01b172f3 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/core/upgrades/20190415161809_add_nightly_jobs_settings/upgrade.py | 110a092ff386b9a2072439d981ca1fcc3b5104cd | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 187 | py | from ftw.upgrade import UpgradeStep
class AddNightlyJobsSettings(UpgradeStep):
"""Add nightly jobs settings.
"""
def __call__(self):
self.install_upgrade_profile()
| [
"niklaus.johner@4teamwork.ch"
] | niklaus.johner@4teamwork.ch |
6582416d65803d8038c2fe7b1d4310ac23d17dbb | 51a936439315f892e0cb4db33ca4c9a6e60c127e | /app/controllers/stats.py | c9eed0785e6d36128393c21c43595b08435aa2ba | [
"MIT"
] | permissive | june07/packagecontrol.io | a27dfcb797f396027bcafa29392db6cf3fef80c2 | 9f5eb7e3392e6bc2ad979ad32d3dd27ef9c00b20 | refs/heads/master | 2023-02-21T15:41:54.903531 | 2021-08-14T01:14:52 | 2021-08-14T01:15:07 | 172,954,020 | 1 | 0 | NOASSERTION | 2019-02-27T16:51:47 | 2019-02-27T16:51:46 | null | UTF-8 | Python | false | false | 354 | py | from datetime import datetime, timedelta
from bottle import route
from ..models import system_stats
from ..render import render
@route('/stats', name='stats')
def stats_controller():
data = system_stats.fetch('1 days')
data['date'] = datetime.utcnow().replace(hour=0, minute=0, second=0) - timedelta(days=2)
... | [
"will@wbond.net"
] | will@wbond.net |
7d5a8a1bee2752016f38cb31f378a9bf78332833 | 6c174c0cbff5f3403d8034a13c2b8cefff2dd364 | /dfttapptest/database/cookie/jira.py | d8fe5f60dc94c88c89b05e93d14e1e6114387d28 | [] | no_license | xiaominwanglast/uiautomator | 0416e217538527c02e544e559b2d996554b10b20 | 7ce47cda6ac03b7eb707929dd2e0428132ff255f | refs/heads/master | 2021-09-12T12:37:54.286397 | 2018-04-16T10:03:57 | 2018-04-16T10:03:57 | 106,253,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #coding:utf-8
import urllib
import requests
data={'os_username':'wangxiaomin',
'os_password':'wang12345',
'os_destination':'',
'user_role':'',
'atl_token':'',
'login':'Log In'}
url='http://jira.dfshurufa.com/login.jsp'
session=requests.Session()
header={'User-Agent':'Mozilla/5.0 (Windows N... | [
"2274052689@qq.com"
] | 2274052689@qq.com |
7b6e633b612a2474b21935d9902db2f20a237d70 | 0c7d7b24a8d453fc1a9c2f27a08f3c4cfa46ec3b | /recipes/sota/2019/raw_lm_corpus/get_gb_books_by_id.py | 7e6b484fc9636ef947b6756f67c42d7b1bb9bece | [
"BSD-3-Clause",
"MIT"
] | permissive | piEYj/wav2letter | e6ae462eeeb6a4374f8280c8fa15d8f194c60215 | 49fbb1392e69b5194c077df9847505ec995b4e3d | refs/heads/main | 2023-09-06T01:08:48.837731 | 2021-11-12T14:13:41 | 2021-11-12T14:15:15 | 444,344,109 | 1 | 0 | NOASSERTION | 2022-01-04T08:37:19 | 2022-01-04T08:37:19 | null | UTF-8 | Python | false | false | 1,059 | py | import argparse
import os
import sys
from multiprocessing.pool import ThreadPool
from gutenberg.acquire import load_etext
from gutenberg.cleanup import strip_headers
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def get_one_book(book_id, outdir):
eprint("Getting book with id", book_i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6a87d1e1ce9879012a9742449f94015df579147d | 62e45255088abb536e9ea6fcbe497e83bad171a0 | /ippython/funciones_es_par.py | 055dff2bfd12db09351dbd03b0618033e06494a5 | [] | no_license | jmery24/python | a24f562c8d893a97a5d9011e9283eba948b8b6dc | 3e35ac9c9efbac4ff20374e1dfa75a7af6003ab9 | refs/heads/master | 2020-12-25T21:56:17.063767 | 2015-06-18T04:59:05 | 2015-06-18T04:59:05 | 36,337,473 | 0 | 0 | null | 2015-05-27T02:26:54 | 2015-05-27T02:26:54 | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 26 11:21:03 2013
@author: daniel
"""
def es_par(num):
return num % 2 == 0
numero = int(raw_input('Escribe un numero: '))
print es_par(numero)
| [
"danmery@gmail.com"
] | danmery@gmail.com |
dfa30680a49a5312290d890edacd03c8a0e44fe5 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2022_01_31_preview/__init__.py | 785d352dea5bec33c870f80744d1867b9bcd5b90 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 925 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
01c36473b6a401d07cf95dce5655f46b3112326f | af5a8f872cd8d689c3646376ce80dc69a0bce7b4 | /Chapter03/04-flaskdemo.py | 73defb37af61ae8cdc8e2f50acd8a07cee5fb352 | [
"MIT"
] | permissive | PacktPublishing/NGINX-Cookbook | de66c1544d8baac5a8794d7f6a2fe30f6e3a7a45 | 2cd497d6899388e3bd0721d4e64be428acc7d168 | refs/heads/master | 2023-02-06T06:29:57.001116 | 2023-01-30T08:30:16 | 2023-01-30T08:30:16 | 101,969,140 | 34 | 28 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "<h1>Demo via Nginx with uWSGI!</h1>"
if __name__ == "__main__":
application.run(host='127.0.0.1', port=9001)
| [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
4081b31cf2708adf515b0cd0051c0277648bb564 | 61699615fab0e91c7dd72d5eff6cd7326e83703c | /python/zheng_ze.py | 53c0db168c6c79b4b7656a9be74ffc164644cb3d | [] | no_license | ftZHOU/Pronostics-sportifs | b85cae26068c9bc5f9a95c821b907382d2e64386 | a9384f0ba8e41a4fb0ec049c37c97f30aec45e49 | refs/heads/master | 2021-08-07T14:44:16.267738 | 2017-11-08T10:42:51 | 2017-11-08T10:42:51 | 109,962,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import urllib2
import re
request = urllib2.Request("http://www.soccerstats.com/latest.asp?league=france")
try:
response = urllib2.urlopen(request)
content = response.read()
#print content
table3 = "<td height='22'>.*?<a href='team\.asp\?league.*?op'>(.*?)</a>.*?<font color='green'>(.*?)</font>.*?<td alig... | [
"ftzhou@outlook.com"
] | ftzhou@outlook.com |
139ac0068a4db76318adde21dbdcaaf837d4d4e5 | 2da72c9f9bbb0b5db33710cddbdee28503e5a606 | /udacity/artificialIntelligenceForRobots/search3 2.py | 3de6f54a8632bb7795501af3baee00dc13da130d | [] | no_license | gddickinson/python_code | 2e71fb22b929cb26c2a1456b11dc515af048c441 | dbb20e171fb556e122350fb40e12cc76adbb9a66 | refs/heads/master | 2022-10-26T15:20:40.709820 | 2022-10-11T16:06:27 | 2022-10-11T16:06:27 | 44,060,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 13 07:19:53 2016
@author: George
"""
# -----------
# User Instructions:
#
# Modify the the search function so that it becomes
# an A* search algorithm as defined in the previous
# lectures.
#
# Your function should return the expanded grid
# which shows, for each element... | [
"george.dickinson@gmail.com"
] | george.dickinson@gmail.com |
71980b6881124f741b4171304de8cf80c36a24c4 | ca8f2b28353e449c10cf520ee1d7d946163c211e | /grammar.py | 1fc7139d3b904220028cf69091fef1a34921e07f | [
"MIT"
] | permissive | zwytop/nlp-2017 | e42452d53279fbe4d1af279b3ad5b165a01b1ccb | ecdefc6dc179ef73c981b793673056804f37db51 | refs/heads/master | 2021-01-23T05:18:33.126936 | 2017-02-09T10:57:21 | 2017-02-09T10:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import nltk
from nltk.draw.tree import TreeView
groucho_grammar = nltk.CFG.fromstring("""
S -> NP VP
PP -> P NP
NP -> Det Nom
Nom -> N | Adj Nom
VP -> V NP | VP PP
Det -> 'the'
Adj -> 'little' | 'fine' | 'fat'
N -> 'brook' | 'trout' | 'bear'
V -> 'saw'
P -> 'in'
""")
sent = 'the little bear saw the fine fat trout in... | [
"scottyugochang@hotmail.com"
] | scottyugochang@hotmail.com |
2fbbba64e4146809c447436783d5bf7bf23032fb | 4d83e8ec852194a811cb18cfb3f4b13bd298216e | /egs/word/run_trf_neural_sa.py | 36b556740118a3faa7047edeb89ad4a445848c96 | [] | no_license | peternara/TRF-NN-Tensorflow | 9961dd41195476dd143d45607c8558cae558337e | 0b235bebdbfe285873c3bef8e62fe475e13ea70a | refs/heads/master | 2021-08-31T16:31:46.097523 | 2017-12-22T03:01:20 | 2017-12-22T03:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | import tensorflow as tf
import os
import sys
import numpy as np
from base import *
from lm import *
from trf.sa import *
import task
class Opt(trf.DefaultOps):
def __init__(self, trf_model):
super().__init__(trf_model, *task.get_nbest())
self.per_epoch = 0.1
self.next_epoch... | [
"wb.th08@gmail.com"
] | wb.th08@gmail.com |
43ed3032a9d6d8aa4d915e1207566ac1933f96b9 | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /Codeforces/ECR67/probD.py | ebbfe5197c9987bb04c7865a228eb39eb2b6054b | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | # instead of AVLTree
class BITbisect():
def __init__(self, max):
self.max = max
self.data = [0]*(self.max+1)
# 0からiまでの区間和
# 立っているビットを下から処理
def query_sum(self, i):
s = 0
while i > 0:
s += self.data[i]
i -= i & -i
return s
# i番目の要素に... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
75f8d91434a9301e13f3e2bbbdec53876240c65a | 5626d2c289e6cc3752f43a0f98c45dd914b9acc8 | /shaura/testing.py | 2b02deb282fc698b96617f58fc10e74d1dbb74f6 | [] | no_license | datakurre/shaura | b9e100b99d19789f69900dbb192bc6a57a7bbd43 | b26aef07c880134e780f4e5fbd851c37414273b2 | refs/heads/master | 2020-04-11T03:33:53.301674 | 2011-09-14T07:35:32 | 2011-09-14T07:35:32 | 2,376,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | # -*- coding: utf-8 -*-
"""zope.testrunner layers"""
from pyramid import testing
class PyramidLayer(object):
@classmethod
def setUp(cls):
cls.config = testing.setUp()
import pyramid_zcml
cls.config.include(pyramid_zcml)
cls.config.load_zcml("shaura:configure.zcml")
@cla... | [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
f3b7d8ddea426fbb7199f1006c6b2961567bed88 | 294767ff9d1190726a82931e0ac16db83eebc3f6 | /chaospy/quad/interface.py | b2191e296f5f3b8125bd53237b24f9c44b8b0ebf | [
"MIT"
] | permissive | FKShi/chaospy | 30ee2d4eac07f1ff713480aba6304726bcacae7d | 25ecfa7bf5608dc10c0b31d142ded0e3755f5d74 | refs/heads/master | 2020-05-22T00:52:20.353874 | 2019-04-21T11:24:54 | 2019-04-21T11:24:54 | 186,181,921 | 1 | 0 | null | 2019-05-11T21:14:04 | 2019-05-11T21:14:04 | null | UTF-8 | Python | false | false | 2,787 | py | """Frontend for the generation of quadrature rules."""
import inspect
import numpy as np
from scipy.misc import comb
from . import collection, sparse_grid
def generate_quadrature(
order, domain, accuracy=100, sparse=False, rule="C",
composite=1, growth=None, part=None, normalize=False, **kws
):
... | [
"jonathf@gmail.com"
] | jonathf@gmail.com |
e47fcc515260d699c5c1d37e0c345d4381a585b3 | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /python_cookbook/11/simple_authentication_of_clients/server.py | b9b26c99523a936203b19bd4f1f7b7feff3a071e | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | from socket import socket, AF_INET, SOCK_STREAM
from auth import server_authenticate
secret_key = b'peekaboo'
def echo_handler(client_sock):
if not server_authenticate(client_sock, secret_key):
client_sock.close()
return
while True:
msg = client_sock.recv(8192)
if not msg:
... | [
"timothyshull@gmail.com"
] | timothyshull@gmail.com |
4f620f7dd7a21de6a7e18e9191a7dfa62aa79cf0 | dc905bec7c109d82f26bdeca5cd1d503ecfa77c6 | /utils/getSize.py | 2d439cb5b44c6377e3dfc9306ae2e2e73331b160 | [
"MIT"
] | permissive | chjz1024/USTC-CS-Courses-Resource | d739c7b7b07dbc0b15d456b952dd3572df872cde | 605d0e704102328aa447a9365446cae45f382d14 | refs/heads/master | 2023-03-17T03:28:31.293403 | 2019-01-09T03:14:30 | 2019-01-09T03:14:30 | 163,499,702 | 0 | 0 | MIT | 2018-12-29T09:53:27 | 2018-12-29T09:53:27 | null | UTF-8 | Python | false | false | 826 | py | # coding: utf-8
import os
import sys
def formatSize(size):
s = 'BKMGTP'
ct = 0
while size>=(1<<ct):
ct+=10
if ct>=10: ct-=10
return '{sz:.2f}{a}'.format(sz=size/(1<<ct),a=s[ct//10])
def getSize(path='.'):
if os.path.isdir(path):
gen = os.walk(path)
li = ... | [
"zhuheqin1@gmail.com"
] | zhuheqin1@gmail.com |
f8ff84248a0fd4517e75554fa1ca11928afacd36 | 71cc62fe3fec8441794a725b7ce3037dc2723107 | /ifreewallpapers/apps/profile/templatetags/avatars.py | 8ed24bb18b20fe8d253a62fe106b8a5cb16962dd | [] | no_license | tooxie/django-ifreewallpapers | bda676dc5a6c45329ad6763862fe696b3e0c354b | 75d8f41a4c6aec5c1091203823c824c4223674a6 | refs/heads/master | 2020-05-21T12:50:36.907948 | 2011-01-19T04:28:33 | 2011-01-19T04:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,993 | py | # coding=UTF-8
from profile import settings as _settings
from profile.models import Profile, Avatar
# import Image
# from PythonMagick import Image
from utils.TuxieMagick import Image
from django.conf import settings
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from dj... | [
"alvaro@mourino.net"
] | alvaro@mourino.net |
1d03f8ab19d1108f3100cb736df9f97204ba0258 | a90e5b2f4cf3a3919bd082296834c9f0efa99b71 | /code/python/invertTree.py | dd798d65bced2df2badc5643ff9ec2179c1500cd | [] | no_license | yjshiki/leetcode | c6330e53fa3db463909787ca882a702e4952a2a1 | 628e732c15afe1da7f3aa690bbbc27866fcb1188 | refs/heads/master | 2020-06-05T00:38:54.136840 | 2020-05-14T04:29:25 | 2020-05-14T04:29:25 | 192,253,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | class Solution(object):
def invertTree(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
res = root
stack = []
while root or stack:
if root:
stack.append(root)
root = root.left
else:
... | [
"noreply@github.com"
] | yjshiki.noreply@github.com |
ccb373ceffa902e5f1e9bd4adf964c88e6abf2b0 | db5f520bf54122c11640a964bb50a47a6aeef8d6 | /readthedocs/projects/search_indexes.py | 8ec2d7a8b109aa106b5e28111a3eaf86fc2645aa | [
"MIT"
] | permissive | jasongrlicky/readthedocs.org | 4f0f74e2ffc3647f68349aa68dbac5b80633c742 | 538e9312527c085e665c101d66d37ba44b64e88e | refs/heads/master | 2020-12-25T10:08:35.805404 | 2011-06-24T18:52:10 | 2011-06-24T18:52:10 | 1,416,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | # -*- coding: utf-8-*-
import os
import codecs
import BeautifulSoup
from django.utils.html import strip_tags
from haystack.indexes import *
from haystack import site
from projects.models import File, ImportedFile, Project
class ProjectIndex(SearchIndex):
text = CharField(document=True, use_template=True)
aut... | [
"eric@ericholscher.com"
] | eric@ericholscher.com |
c6bed9b93e57f2c5b784b15df3dd9cb422697a7a | ba7640cffff3085f045d69f37735de0f759e66c3 | /__init__.py | 487deef5265afc2b0d3dd4e984777a3440475805 | [
"Apache-2.0"
] | permissive | luoqingfu/reudom | f5e88292a7e8cdbb372340795bc5ec5c85a26931 | 3c52ff4aa2cd772260bbf3575f2844d76bc2f16a | refs/heads/master | 2020-12-07T13:23:29.972584 | 2019-12-24T14:57:05 | 2019-12-24T14:57:05 | 232,730,930 | 1 | 0 | Apache-2.0 | 2020-01-09T05:38:10 | 2020-01-09T05:38:09 | null | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/python
#
# Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... | [
"2652612315@qq.com"
] | 2652612315@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.