blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
045849a6dcf37e6dfd8deaa91796aebe1f3f2334 | c6609c161df66949656ca91d8a3d9f4d27a4c399 | /rates_project_04122021/rates_client/rates_client/rate_client.py | 71771ba20ad4886144213eb414be5cd5d7451817 | [
"MIT"
] | permissive | t4d-classes/advanced-python_04122021 | b93ea38c5b35af2b1eb06bc1d5fe6d3f0c1cf39f | 07b27aea8ac3c7170eb66d5243c5cd841f41322c | refs/heads/master | 2023-04-11T11:45:18.114381 | 2021-04-20T12:36:04 | 2021-04-20T12:36:04 | 357,016,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | """ rate client module """
import socket
import sys
import pathlib
import yaml
from rates_shared.utils import read_config
def main() -> None:
"""Main Function"""
try:
config = read_config()
host = config["server"]["host"]
port = int(config["server"]["port"])
with socket.soc... | [
"eric@t4d.io"
] | eric@t4d.io |
6b542f6ede6cde3cb763bfadd5e6b97c989bfb7f | 051293c8772878ec04d9e7a81839ac1b4b7b01ee | /samples/sample_cli.py | dae2abcd1f8a8089cb4c7e33b9935f299b292489 | [
"Apache-2.0"
] | permissive | siliconjesus/TCGstorageAPI | 055b70b8db1de313137dc40017ed68f745f363f3 | 7fd3096d152e604bb836921f7cf3a03ffc987cab | refs/heads/master | 2022-04-25T02:26:33.950835 | 2020-04-27T17:16:13 | 2020-04-27T17:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,386 | py | #----------------------------------------------------------------------------
# Do NOT modify or remove this copyright
#
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License... | [
"keerthana.a.bidarakoppa@seagate.com"
] | keerthana.a.bidarakoppa@seagate.com |
58ef79ce89e1f6bd6f29e494daffced31fdb85b4 | f51f978026c9b04f78ede0a7465cf0db0a863777 | /Packages/numerical.py | cb77cf4829203f873f68cd4cb8dbfdb50c2bd828 | [] | no_license | TurakaSrilakshmi123/Problem-Solving-Programming-in-Python-June-2019 | ef7397caa5aad561155784e48e5dedfe82f46e1f | de943b797e2345b9d3b187dd588b2d689097618e | refs/heads/master | 2020-06-03T08:34:32.422311 | 2019-06-27T04:16:35 | 2019-06-27T04:16:35 | 191,511,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | def isPrime(n):
flag = 1
if n == 2:
return True
for i in range(2,n//2+1):
if n % i == 0:
flag = 0
return False
if flag == 1:
return True
def numberOfPrimeFactors(n):
if isPrime(n):
return 1
count = 0
for i in range(2,n//2+1):
... | [
"srilakshmibhaskar565@gmail.com"
] | srilakshmibhaskar565@gmail.com |
6ebdda91bfa552e387b3967c6aef821e345699a3 | 97e6c6c61154f7d40846c01b34e6cec7bb09d980 | /quickdb/sql2mapreduce/agg.py | 465fef43f1a3fc8014a4bf6c6e5b462102ac9185 | [] | no_license | michitaro/quickdb | f975f0a979517299911f797c519fea78f9c48168 | 6444795ddb869545bf166c870f5ba0d1f0d56944 | refs/heads/master | 2020-06-15T14:00:38.701760 | 2020-02-19T01:13:07 | 2020-02-19T01:13:07 | 195,318,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,521 | py | import abc
from quickdb.datarake.safeevent import SafeEvent
from typing import (
Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Type, Union, cast)
import numpy
from quickdb.datarake.interface import Progress, ProgressCB, RunMakeEnv
from quickdb.sql2mapreduce.numpy_context import NumpyContext
from quickdb... | [
"michitaro.nike@gmail.com"
] | michitaro.nike@gmail.com |
abe2dcd4cac371c04bab58961142da554d221fc3 | 6cc14ff36ef4a6f46000e2b5b1ecbe9d9ffa289d | /Python/Regular_Expressions.py | 57420cb310a87f716551312c2c8dc9f51ab1d162 | [] | no_license | mominpasha/Practice-Code-Samples | bc45b5b49b68252c67b57a7a031b27d1018c6474 | f241a4e35a35d414fee0ee529dd090a438d0dbee | refs/heads/master | 2021-08-28T14:14:30.519680 | 2017-12-12T12:42:24 | 2017-12-12T12:42:24 | 103,299,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | #%%
import re
result = re.match("Momin","My name is Momin Pasha")
print(result)
#%%
result = re.search("Momin","My name is Momin Pasha")
print(result)
#%%
result.group()
result.start()
result.end()
result.span()
#%%
result = re.findall("the","The history of the great king of the kingdom of the apes lies in... | [
"noreply@github.com"
] | noreply@github.com |
f9ed10bc581a959ecacc6f7e395dd6fef7ea68b0 | 016f96e528141db111f15a4c00a0fc46e61cdff6 | /lib/emailses/urls.py | 5fb0d6077dd92bf4cd7ecabb113f5b0498156de9 | [
"BSD-2-Clause"
] | permissive | hdknr/emailqueue | 3d02407b06a492cdf9b89fde2b06c766cd500555 | 05e108562f4fb612440f769973b9a3d02c11afcd | refs/heads/master | 2021-01-23T20:13:04.807258 | 2015-10-08T08:41:51 | 2015-10-08T08:41:51 | 20,243,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.conf.urls import url
import views
urlpatterns = [
url(r'(?P<topic>.+)', views.notify, name='emailses_notify'),
]
| [
"gmail@hdknr.com"
] | gmail@hdknr.com |
193e2e78f289aa1bb05e4b344b5c7d17b61c984e | 6b0161214e4db57a81d3b4432d82c874c7106f13 | /couchbase/_pyport.py | 20700a813860e5ed162b08ac93b31aa54775c92d | [
"Apache-2.0"
] | permissive | neilalbrock/couchbase-python-client | de9d6115d1240f56f4cb7b57aee7e8765c5c7d1f | 95789e3d49c42613fe719bbd02e6d9ad30216334 | refs/heads/master | 2021-01-15T18:51:31.311163 | 2013-10-14T13:58:28 | 2013-10-14T13:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #
# Copyright 2013, Couchbase, Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"mnunberg@haskalah.org"
] | mnunberg@haskalah.org |
bf90be02d2fafe1561a49ed955d60d56bb46aba3 | 466114a10af7b2e148cc39a4af1461fd169d42af | /apps/movies/urls.py | f40b4e2921541aaa75d58c8c657d193fa9fef670 | [] | no_license | peter-zsn/api_test | 0c46b91d7ed5f98d15c67c5caa9cee994ea2e880 | 4bc4e866a79810affa5020d9da8fbabcec2c7bb3 | refs/heads/master | 2023-02-24T10:32:46.156718 | 2021-01-25T08:02:08 | 2021-01-25T08:02:08 | 209,009,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # coding: utf-8
from django.conf.urls import url, include
from apps.movies import views
urlpatterns = [
url(r'^getList$', views.getList), # 获取电影列表信息接口
] | [
"zhangshuainan@tbkt.cn"
] | zhangshuainan@tbkt.cn |
3055ffae2a22fc351a17eea8579fba30bbc3769e | d6f67251c016e7d105f8ce2fd3a94af449657e8e | /2021/day_02/__init__.py | 9ca25cf3a85cf0452b140ce915fa65f028fe97ab | [] | no_license | DanaMC18/advent_of_code | 6f8dedec0907f34bd99a4b50798cdbb852f800b6 | 32ab8170e25bf375db8ddc5e42fb6cc9379fce4a | refs/heads/master | 2022-12-15T14:27:16.524364 | 2022-12-08T04:14:52 | 2022-12-08T04:14:52 | 225,783,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | """Init 2021 day 2."""
| [
"danaczinsky@gmail.com"
] | danaczinsky@gmail.com |
7e768dbc4e7dc51e1a08a60fbd0065f7bdc79ec2 | c2ebcd88d1ba2324530ab9e6ff89a63a5242900f | /plugins/gavanna_plugin.py | c535bd0920161def32ca6b0f86235ac54ba25cc1 | [
"MIT"
] | permissive | joel-wright/DDRPi | 83ddc326f7be4871f46a076909452be8ed4bcf8b | 9d51f0f8702af0fba068f0346e051d6579e05e16 | refs/heads/master | 2016-09-06T15:08:38.974215 | 2013-02-17T16:49:24 | 2013-02-17T16:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | __authors__ = ['Andrew Taylor']
import logging
import pygame
import random
import time
from datetime import datetime
from DDRPi import DDRPiPlugin
class GavannaPlugin(DDRPiPlugin):
pulse_rate = 2000
pulse_increasing = 1
pulse_last_ratio = 0
def post_invalidate(self):
self.changed = 1
def configure(self, co... | [
"joel.wright@gmail.com"
] | joel.wright@gmail.com |
6c1b90f51e34233524e5e26a5c9a8f7430194532 | 30e7adc325de1f52c624047dfd8775d9713ef74f | /bin/rename_contigs.py | fbfd52a6e67c1443ba7e599e61f23f7daa20e904 | [
"MIT"
] | permissive | Arcadia-Science/metagenomics | f44572e256baf7125d48c7984d2399754605c866 | 3f49be3a1706a9561a68051d34065c2464acf726 | refs/heads/main | 2023-06-11T08:31:48.251809 | 2023-05-25T18:28:00 | 2023-05-25T18:28:00 | 550,378,025 | 27 | 2 | MIT | 2023-05-24T21:51:22 | 2022-10-12T16:57:58 | Nextflow | UTF-8 | Python | false | false | 1,926 | py | #!/usr/bin/env python3
import argparse
import os
import sys
import gzip
from Bio import SeqIO
from Bio.SeqRecord import SeqRecord
# Arguments
def parse_args(args=None):
Description = "Rename contigs in a FASTA file after assembly."
Epilog = "Example usage: rename_contigs.py <FASTA> <ASSEMBLER> <OUTPUT>"
... | [
"elizabethmcd93@gmail.com"
] | elizabethmcd93@gmail.com |
219d2f333e3269a900b48b27c08cc48a24363b80 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02707/s167454120.py | 27b53e15e36617817a3cd3b043a523410132faad | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | import math
n = int(input())
c= [0]*n
s = map(int,input().split())
for i in s:
c[i-1]+=1
for i in c:
print(i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d0be37c6a1df802e6cf7ddcc9ab9bcf87b07dd64 | 3aed304ea163b9b910133bb8e33c29028a5ca8c0 | /setup.py | 8d64c26b2060fb79e23fda1bcf245264cc5fab5a | [
"ISC"
] | permissive | arnaudrenaud/django-djaffar | cce4e3cb6922783d9e2dc92079dedd46cb0c20bd | 068851951729d4a1de0b8beca4fbde510517ac59 | refs/heads/master | 2022-07-12T22:06:52.456444 | 2017-01-04T11:28:21 | 2017-01-04T11:28:21 | 77,291,688 | 1 | 0 | ISC | 2019-11-15T09:28:17 | 2016-12-24T16:37:59 | Python | UTF-8 | Python | false | false | 2,512 | py | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
package = 'djaffar'
def get_packages(p... | [
"arnaud.renaud@gmail.com"
] | arnaud.renaud@gmail.com |
2f0c54950c0ab91c97cc12a6797f81d91b85ec0b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/stmt_for_str_same_var-9.py | f87144cd7e69039ad5482181a2f622e922dcd6a8 | [] | 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 | 42 | py | x:str = $STRING
for x in x:
print(x)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
84c1a89c806b2cba9d39dadc938e2b05f0a7bd4f | e7ce192fb7a4c980af71b42a3a89383f4a3f1396 | /EmployeeWage.py | b48614e6adcc9a741540e97e4906d3b0d41c2965 | [] | no_license | Archana-Bhamare/Employee_Wage_Python | 112c2152c9f97b42ddc5b93da1d40e8ae66ae213 | 7ece8ccdcbbc4ba1ba0237e4d3d1d4341a41760a | refs/heads/master | 2023-01-19T00:45:09.222132 | 2020-11-29T13:11:18 | 2020-11-29T13:11:18 | 316,681,224 | 0 | 0 | null | 2020-11-29T13:11:19 | 2020-11-28T07:33:44 | Python | UTF-8 | Python | false | false | 1,685 | py | import random
class EmployeeWage:
IS_FULL_TIME = 1
IS_PART_TIME = 2
empHours = 0
EMP_WAGE_PER_HOUR = 20
NUM_OF_WORKING_DAYS = 20
MAX_HRS_IN_MONTH = 100
dailyWages = []
day = {}
def checkEmpAttendance(self):
attendance = random.randint(0, 2)
if attendance == Employe... | [
"archusonar2@gmail.com"
] | archusonar2@gmail.com |
b055872ca036b87a5294a9e1ff3502871bb0dbd5 | 6b7efc1fbc4ec9fa47e9b91876a8abd319fa762a | /manage.py | 1b022f576275907781a701bd98e87bf82c21ccf1 | [] | no_license | hectwor/API_sneapp-DJango | 6cd6bbca12c4c337c44edfdac141c7ba65a93fb9 | a5a3cc177050b23dbf6232929db215542e24b434 | refs/heads/master | 2020-03-23T06:46:53.795678 | 2018-07-17T03:59:43 | 2018-07-17T03:59:43 | 141,229,235 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "API_sneapp.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that t... | [
"hectorh.danielv@gmail.com"
] | hectorh.danielv@gmail.com |
b274c5b6d77f22cc1da6e46b67d0d9571653bfef | b82c7b44c28e27519626e29bb74ec0d7dfae1177 | /snmpdesk/traffic.py | a6c7339e4b456920bcee3eb3fa0567dfd51bab73 | [] | no_license | uralbash/snmpdesk | 77f59f80ce550390cb7689cb737f4899333d0b4c | afde63a3060d4405e1033092900229b205bf9e6d | refs/heads/master | 2020-04-06T04:22:12.387805 | 2012-03-15T06:24:23 | 2012-03-15T06:24:23 | 3,039,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | import sys
import collections
from pysnmp.entity.rfc3413.oneliner import cmdgen
'''def datafrommib(mib, community, ip):
value = tuple([int(i) for i in mib.split('.')])
generator = cmdgen.CommandGenerator()
comm_data = cmdgen.CommunityData('server', community, 1) # 1 means version SNMP v2c
transport = c... | [
"spam@19216801.ru"
] | spam@19216801.ru |
1bfe7aea8483c772458514da7fd037f980ab3784 | 9a77adbac4aa41a3a230d551369f613bda796473 | /codes/MyPoisson.py | 66390b21deeb57354e857e98850ffb9646fa13f4 | [
"MIT"
] | permissive | statcompute/py_countreg | 6d74565ff6042cd1cf621c1a4cd0c0837b064a66 | 3f62b8f16b95be5be46cacb93f544bbca6b1ec55 | refs/heads/main | 2023-03-01T15:59:06.107550 | 2021-02-07T04:21:30 | 2021-02-07T04:21:30 | 328,307,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | import numpy, scipy
from statsmodels.base.model import GenericLikelihoodModel
def _negll_poisson(y, X, beta):
mu = numpy.exp(numpy.dot(X, beta))
pr = numpy.exp(-mu) * numpy.power(mu, y) / scipy.special.factorial(y)
ll = numpy.log(pr)
return(-ll)
class StdPoisson(GenericLikelihoodModel):
def __init__(self,... | [
"noreply@github.com"
] | noreply@github.com |
2ce770cc188a83a86cae96a14bc9779493541139 | 2053a90c97b277cf8f816efc938c16482a68bcb2 | /3-1线性回归.py | f743e4bfbbccd8392e6b938521cfd9489326967d | [] | no_license | xxNB/tensorflow_study | 703365e3a47b73364131d6ed969ca44918a7169b | 3749574e9d7bd0f67b1f57be6ff71c3c8ffed3f0 | refs/heads/master | 2021-03-30T15:37:09.235052 | 2017-11-23T08:04:50 | 2017-11-23T08:04:50 | 110,522,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | # -*- coding: utf-8 -*-
"""
Created on 2017/11/13 下午4:37
@author: SimbaZhang
"""
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
#使用numpy生成200个随机点
x_data = np.linspace(-0.5, 0.5, 200)[:, np.newaxis]
# print(x_data)
noise = np.random.normal(0, 0.02, x_data.shape)
y_data = np.square(x_data) + ... | [
"zhangxin@zhangxindeMacBook-Pro.local"
] | zhangxin@zhangxindeMacBook-Pro.local |
2d9971c4c44a021182d7e06c30a1b9cfe7dff063 | cfb08ae8db8f20985ce3f6aa6426642f9891f67d | /apps/users/auth.py | 1fced72c4d1c82603d506af2eeddd3ec9e94abac | [] | no_license | mylove132/web_backed | 707b7df236c2ffaddf2720a0f5df45530629273b | f30a32d33bd0eabcb2cae515ac1c57897cd4bc21 | refs/heads/master | 2022-05-01T16:46:21.597813 | 2019-06-26T09:55:43 | 2019-06-26T09:55:43 | 188,396,244 | 0 | 0 | null | 2022-04-22T21:19:48 | 2019-05-24T09:44:45 | Python | UTF-8 | Python | false | false | 1,545 | py | from rest_framework.authentication import BaseAuthentication
from rest_framework import exceptions
from .models import Token
class TokenAuthentication(BaseAuthentication):
def authenticate(self, request):
token = request.META.get("HTTP_TOKEN")
if not token:
raise exceptions.Authenticat... | [
"liuzhanhui@okay.cn"
] | liuzhanhui@okay.cn |
4b2f0957666496d3fd757c2ee95c3310fcc03314 | 173624dde6173ac15d2bf5b9737d3934116dc6cd | /Leetcode题解/31. 下一个排列.py | 363ce4f96f1300d4c01ee006cda5cf4f4e012a70 | [] | no_license | jiufang7/git_repository | 79bb780e563f1aad5fe91ce53b091abaaf5b9a31 | e3d69ec8640f1caab74f1a4473888022f72de644 | refs/heads/master | 2023-01-21T01:31:18.265359 | 2020-12-01T05:21:31 | 2020-12-01T05:21:31 | 304,177,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | class Solution:
def nextPermutation(self, nums):
"""
Do not return anything, modify nums in-place instead.
"""
if len(nums) < 2:
return
i = len(nums) - 1
while i > 0 and nums[i] <= nums[i-1]:
i -= 1
a, b = i, len(nums)-1
... | [
"noreply@github.com"
] | noreply@github.com |
392cb84f7fb97fc10dd40ee30b52ea4dccc43d0f | 990ae6fd62d25eefe033003716827951c5fdac16 | /HW3/hw2/attention.py | 332eee2b39e92c972e19bf9936dc50d33ae61f42 | [] | no_license | wwzoe/MT | 3df537b609bd028392868597cffee16c3cb78dee | acd437b23bc1d756f621692d41c6c41a98253d35 | refs/heads/master | 2021-01-01T06:19:25.100293 | 2017-07-16T20:12:12 | 2017-07-16T20:12:12 | 97,404,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,689 | py | # coding: utf-8
#---------------------------------------------------------------------
'''
Neural Machine Translation - Encoder Decoder model
Chainer implementation of an encoder-decoder sequence to sequence
model using bi-directional LSTM encoder
'''
#-----------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
b49a99e04713d520e0e7809f8c87bf5075857b17 | 059f13774530ba14cac8da46baf60aecabf48770 | /lang/preprocess_lm.py | e12fbc1233c8728b48a43ecd8ef569a2a5e23912 | [
"BSD-3-Clause"
] | permissive | rainyrainyguo/ARAE | 76796501ee8180d20dac44225e6bb9ddf891a43a | f12499d70f5fe61ca36bae4d2f57ccae28b1c5bc | refs/heads/master | 2020-03-27T05:45:18.550942 | 2018-08-24T23:41:41 | 2018-08-24T23:41:41 | 146,047,307 | 0 | 1 | BSD-3-Clause | 2018-08-24T23:04:36 | 2018-08-24T23:04:36 | null | UTF-8 | Python | false | false | 8,788 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Create the data for the LSTM.
"""
import os
import sys
import argparse
import numpy as np
import h5py
import itertools
from collections import defaultdict
class Indexer:
def __init__(self, symbols = ["<pad>","<unk>","<s>","</s>"]):
self.vocab = defaultdict... | [
"yoonkim@rushgpu02.rc.fas.harvard.edu"
] | yoonkim@rushgpu02.rc.fas.harvard.edu |
e83b9d3c0be7a33e00b85393338fd4d1bb2d0e8d | cbc7ca332ff4cb8c98cb9eb37af654ee63297802 | /torch/_C/_distributed_c10d.pyi | 1cbf030e4afedebc674b36fe035faa072792c35e | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yfzheng11/pytorch | 307ebedbf6c5f23ed49584cf9536e47cff0a3ab0 | 1aa14fcb14dd1ecc8382f747de6f2070d929ed02 | refs/heads/master | 2023-05-26T14:07:05.459920 | 2021-06-03T20:28:45 | 2021-06-03T20:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,379 | pyi | from datetime import timedelta
from enum import Enum
from typing import Optional, List, Any, Tuple, overload
from torch import Tensor
# This module is defined in torch/csrc/distributed/c10d/init.cpp
_DEFAULT_FIRST_BUCKET_BYTES: int
_DEFAULT_NO_TIMEOUT: timedelta
_DEFAULT_PG_TIMEOUT: timedelta
class BuiltinCommHookT... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
50682e61b81b2e670fa3d045ccd01007692a04f2 | 9b3160cf14c2be19cd4bb573272de22e2cbfc58e | /catkin_ws/build/catkin_generated/generate_cached_setup.py | 69aad08a3b4171c8ddd89ecf4e94b5bd12ff42e3 | [] | no_license | tdnvl/ROS | 4395628252da32fa6e0aada1182adf7ec9bcb418 | 95f2ca2003279f719757be191fd19942ea8113ce | refs/heads/master | 2021-01-02T23:01:48.193996 | 2017-09-08T11:30:04 | 2017-09-08T11:30:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"bummel1889@gmail.com"
] | bummel1889@gmail.com |
08f55e2eb709522cf7653be85bcdd8dc564d7a75 | c2ec0817c6a9573a67f616860bb18bde23b5ef91 | /BossSpider/pipelines.py | 1e92c7b57cf012052c0be5f1bdf02035599b8716 | [] | no_license | shuguo-ma/BossSpider | a3437d1a523af75cbf986c2459fb45dd9e17a360 | 3b429c797bc39a6343f941a04072f0e111916982 | refs/heads/master | 2020-03-18T21:47:47.798886 | 2018-05-29T13:54:11 | 2018-05-29T13:54:11 | 135,303,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
'''
import sqlite3
class BossspiderPipeline(object):
#打开爬虫时,连接数据库connect('database_name')
def open_spider(self,spider... | [
"wahlmzr@163.com"
] | wahlmzr@163.com |
930737c12616f230b3bc3b9803ca7fc4d51929cc | 390d2a378fd60d35f34d4e140887451ba74cc9e7 | /gamestonk_terminal/stocks/technical_analysis/finnhub_model.py | f344acf2f2601118b994c50f387f8c28144df069 | [
"MIT"
] | permissive | sechours/GamestonkTerminal | ebb7ae44c7ede1bbf40d7b3802cbf63cfa4be2cf | 0b554c6893aa4e805c27b606f7de7ae6c0eb454d | refs/heads/main | 2023-07-31T18:19:09.487365 | 2021-09-13T18:07:00 | 2021-09-13T18:07:00 | 406,403,995 | 1 | 0 | MIT | 2021-09-14T14:37:11 | 2021-09-14T14:37:10 | null | UTF-8 | Python | false | false | 1,074 | py | """Finnhub model"""
__docformat__ = "numpy"
import requests
import pandas as pd
from gamestonk_terminal import config_terminal as cfg
def get_pattern_recognition(ticker: str, resolution: str) -> pd.DataFrame:
"""Get pattern recognition data
Parameters
----------
ticker : str
Ticker to get p... | [
"noreply@github.com"
] | noreply@github.com |
02275546e99d17fd7465ff2cbf3e4eacf57003e3 | a64757759a7170478ad3e9c71429c484491426be | /autoconv.py | 85e7b1b45b29a9ad766ab17c57193b68b5453c93 | [] | no_license | fy0/autoconv | 940928810bcda472bf401c14c2452ef64359fd9c | 1073934a0d03eba5e5192ffb583629308ff74d13 | refs/heads/master | 2021-07-01T01:30:25.249292 | 2017-09-18T08:11:57 | 2017-09-18T08:11:57 | 103,892,929 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,704 | py | """
{
"global": {
"encoder": "opusenc.exe",
"input_dir": "input",
"output_dir": "output",
"watch_ext": [".wav"],
"output_ext": ".opus"
},
"types": {
"music": {
"--title": "track title"
}
}
}
"""
import os
import json
import time
impor... | [
"fy0@qq.com"
] | fy0@qq.com |
6c6e0e149c60270d3573a57dfa2fd3aa115c5361 | e1fe1ed4f2ba8ab0146ce7c08d65bc7947150fc8 | /credit11315/spiders/no_redis_detail_info_scrapy.py | 3fb233a4bbd3603929edc4969dbae24a6847b673 | [] | no_license | yidun55/credit11315 | 0d88ceef314efa444de58eb5da8939c1acff3abe | b048ec9db036a382287d5faacb9490ccbf50735c | refs/heads/master | 2021-01-20T01:03:30.617914 | 2015-07-31T09:58:24 | 2015-07-31T09:58:24 | 38,853,611 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,621 | py | #!usr/bin/env python
#coding: utf-8
"""
从11315全国企业征信系统http://www.11315.com/上
爬取企业信息
"""
from scrapy.spider import Spider
from scrapy.http import Request
from scrapy import log
from scrapy import signals
from scrapy import Selector
from scrapy.exceptions import DontCloseSpider
import sys
from credit11315.items import *... | [
"heshang1203@sina.com"
] | heshang1203@sina.com |
eaea7564dec27050ddfd3d3746903d8608f0a40b | c842ae21582fb91a19605744d3d9b026b5bf9cc5 | /cl3/settings.py | ae097bc7e618daea589f8c37329b6d28b6d8b32d | [] | no_license | Carlos-Daniel260/cl3 | 2e94bdf3254e38d646f8634092d2d3302886ee1a | bdaf12b3b88078e62cc6f59470892e01c653209f | refs/heads/master | 2022-04-05T16:02:20.765358 | 2020-02-22T18:13:03 | 2020-02-22T18:13:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for cl3 project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bui... | [
"183403@ids.upchiapas.edu.mx"
] | 183403@ids.upchiapas.edu.mx |
733be284b833d1981ed58e617f84b58ca2f8dc00 | d7a6502e2bad57aefa1a509e13074f014821abfd | /00x-isolate_digits_from_number.py | d6486ccd0a9989a6235762b25840b6e3f5284dda | [] | no_license | anibalvy/katas | 5d63d5db6d7ec784f1e60de9c380be318fcb04f7 | a28c26e8e2c9c174594fa4b81e14d9733ba44dc3 | refs/heads/main | 2023-07-16T08:47:31.494670 | 2021-08-24T06:44:28 | 2021-08-24T06:44:28 | 399,362,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | >> 1234//1000
1
>> 1234%1000//100 ... | [
"anibalvy@gmail.com"
] | anibalvy@gmail.com |
f36e4bac20c903f91a082d88b22b765caafeac35 | a708f1d36586d2b01c99f2cb44aa4612b10192f6 | /周赛/week183/5376非递增顺序.py | eb36dbf409919c8981dd21302f726a93af63edc0 | [] | no_license | LeopoldACC/Algorithm | 2477e8a371e9cdc5a47b582ca2a454539b96071e | fc1b0bec0e28d31e9a6ff722b3a66eacb0278148 | refs/heads/master | 2023-01-25T02:28:14.422447 | 2020-12-03T15:01:10 | 2020-12-03T15:01:10 | 197,297,197 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | class Solution:###最终版
def minSubsequence(self, nums):
nums = sorted(nums)
prefix_sum = nums[:]
for i in range(len(nums)-2,-1,-1):
prefix_sum[i]+=prefix_sum[i+1]
index = -1
for i in range(len(nums)-1,-1,-1):
if prefix_sum[i]>prefix_sum[0]//2:
... | [
"zhenggong9831@gmail.com"
] | zhenggong9831@gmail.com |
499a03357c8ae0101e94a0ea850bdfd693fd861f | 77fc5af96da1d461c86c7f9668b64b99ca04a1b6 | /codes/montecarlo.py | 32c0ce13aa246aa42786f17cd7c0371a3c56965c | [] | no_license | rene-d/edupython | 5b6bc8ddb5eb8ec896ee70fb961d4e689af1075a | 1261d0c7aae17bb2d4ff3370860768b73ba4172d | refs/heads/master | 2020-11-24T10:07:18.504472 | 2019-12-21T21:03:08 | 2019-12-21T21:03:08 | 228,099,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # Découpe d'un carré en 3 zones
# https://edupython.tuxfamily.org/sources/view.php?code=montecarlo
# Les zones sont les domaines du plan délimitées par les courbes
# des fonctions carré et racine carrée, à l'intérieur du carré unité,
# dans un repère orthonormal.
# Les aires sont obtenues par la méthode de Monte Carlo... | [
"rene.devichi@gmail.com"
] | rene.devichi@gmail.com |
6a6975ede1ec62e3b6946074fc686843e6cf3c4a | d1cf5e22ddf7f03ca032a405455802794273bd7b | /init.wsgi | 9e8ff9cd8f5edeb7e8328139524937a2c02b3c63 | [] | no_license | bibek-p/psabots | 4af99dac0b4d2f3d82396ccb85bd3c2bde03ac3d | a9b763ae132cdab73a91794dbd6568e2d3be3e05 | refs/heads/main | 2023-08-02T16:41:04.053578 | 2021-09-16T05:56:40 | 2021-09-16T05:56:40 | 405,976,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | wsgi | activate_this = '/home/bitspan/testing_bitspanindia_com/venv/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))
import sys
sys.path.insert(0,"/home/bitspan/")
from testing_bitspanindia_com import app as application
| [
"root@dedi.bitspanindia.com"
] | root@dedi.bitspanindia.com |
86ed1a431a9ff503d5f122745fcd477b8c57065b | a379f5c5578ebd50998f634345f77f519c6b31a6 | /share/gnuradio/examples/digital/ofdm/tunnel.py | aaf7ca5ee5e83217c9b78b60295d1565a29327a1 | [] | no_license | bjarkimb/EQ2443-2445-Project-Group2 | 867cf3533ee2325b9966232cead6b3531031b3dc | dcbabc70fd0c865ab6e6ac724c6be606f9c61a38 | refs/heads/master | 2020-04-12T09:54:11.257264 | 2018-12-19T10:58:43 | 2018-12-19T10:58:43 | 162,412,306 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,352 | py | #!/usr/bin/python2
#
# Copyright 2005,2006,2011 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your o... | [
"bjarkimb@gmail.com"
] | bjarkimb@gmail.com |
6ed1bc1d026edbcc0983015edc3b0d6b6c053af7 | ea8e945af461ae6e5a2dcd9dce244391f14ec695 | /koyama/chapter10/knock98.py | e465cc971c6708ec9fbbc0331c437272abe9da90 | [] | no_license | tmu-nlp/100knock2020 | b5a98485e52b88003fa97966c8d6eef292c9f036 | 1133fa833ea32ad3e54833e420bcb1433f3ec2f3 | refs/heads/master | 2023-04-09T06:48:04.571566 | 2020-08-13T05:38:25 | 2020-08-13T05:38:25 | 258,825,143 | 1 | 2 | null | 2020-08-12T15:56:56 | 2020-04-25T16:43:13 | Python | UTF-8 | Python | false | false | 1,304 | py | # 98. ドメイン適応
# Japanese-English Subtitle Corpus (JESC)やJParaCrawlなどの翻訳データを活用し,
# KFTTのテストデータの性能向上を試みよ.
'''
CUDA_VISIBLE_DEVICES=6 nohup fairseq-train \
/work/aomi/100knock2020/chapter10/data/JESC/processed/bin \
--save-dir /work/aomi/100knock2020/chapter10/knock98/models/model_1111/pretraining \
--arch transform... | [
"aomiabracadabra@gmail.com"
] | aomiabracadabra@gmail.com |
dd755e188ecdc91d717143c7321fa6eaf8bdb91a | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /.sample_configs/param_handlers/cancel_data_labeling_job_sample.py | b11a0a22ff20d8c981aefa487bf8a6a00db46715 | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 716 | py | # 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 agreed to in writing, s... | [
"noreply@github.com"
] | noreply@github.com |
bdb70c823e7f2efc492d211d2b17fc90893b5be9 | 40c4ffab36810c3d43825f61a14c61a4ede8b6d2 | /venv/mysite/polls/models.py | d347611bf71a2f8a1fa47626da08b2f7df5d760d | [] | no_license | Andrei705/pythonProject | d2ffa0c1731e4bc42f98a51edd0df5ccf6620260 | ac9c97b24c982edb6615e16a598583cbc828490f | refs/heads/master | 2023-09-01T03:05:25.929920 | 2021-10-19T10:55:53 | 2021-10-19T10:55:53 | 388,744,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | from django.db import models
# Create your models here.
class Object_folder(models.Model):
name = models.CharField('Папка', max_length=100)
name_films = models.CharField('Название фильма', max_length=100)
name_cinema = models.CharField('Название кинотеатра', max_length=100)
def __str__(self):
... | [
"75162990+Andrei705@users.noreply.github.com"
] | 75162990+Andrei705@users.noreply.github.com |
80f832455983b37492aabb45c118bac2cd8e5ae4 | e49f2251e07a70c943b70bbae27c439631a31552 | /tfx/components/model_validator/component.py | d6bc178a4182f17e0e083067fa3c9cd3df96c6b5 | [
"Apache-2.0"
] | permissive | hephaex/tfx | eac03c1ab670368088ec2a49af28ff374dc95c4a | 76d8731cb54be3451e10d270d8bcb0589401135f | refs/heads/master | 2020-09-16T11:52:06.198631 | 2019-11-23T21:01:50 | 2019-11-23T21:45:46 | 223,760,941 | 1 | 0 | Apache-2.0 | 2019-11-24T14:53:08 | 2019-11-24T14:53:08 | null | UTF-8 | Python | false | false | 4,026 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
be22c1e11ed28eafca08cf5bcfe0da6b20b66836 | 7c13de6b7831f99b8790452e03953e5ded0aca64 | /classy_vision/generic/distributed_util.py | ec5211f4123496d80e7c9396eef6df0d0e8b1338 | [
"MIT"
] | permissive | vreis/ClassyVision-2 | 3f99d3c06ec422e81e29b0f38f02a7ce56e480d6 | 80aa4d421d1203b4b92bb9b848ccc866816e4f6d | refs/heads/master | 2021-07-15T18:03:14.212417 | 2019-12-06T16:48:19 | 2019-12-06T16:50:46 | 226,377,934 | 0 | 0 | MIT | 2019-12-06T17:27:46 | 2019-12-06T17:27:45 | null | UTF-8 | Python | false | false | 5,284 | 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.
import torch
# Default to GPU 0
_cuda_device_index: int = 0
# Setting _cuda_device_index to -1 internally implies th... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e0b5ee0cd516322f32a722536ad76fe2471c92fa | f682815bff031cf04e958ac39380d73b2e671fe5 | /ml_experiment.py | 01388edb34d76c41b99b015822717c06d053d5dd | [] | no_license | crocodoyle/deep-mri-qc | 8ec6665d48d8f92ea5baf034027dc04e4ac5e3d7 | 35058166ef1460f841728bd97a676d0758d13317 | refs/heads/master | 2020-06-28T18:39:13.509219 | 2018-12-06T22:54:21 | 2018-12-06T22:54:21 | 74,483,623 | 5 | 7 | null | 2018-01-12T01:33:55 | 2016-11-22T15:00:58 | Python | UTF-8 | Python | false | false | 573 | py | import os, pickle
def setup_experiment(workdir):
try:
experiment_number = pickle.load(open(workdir + 'experiment_number.pkl', 'rb'))
experiment_number += 1
except:
print('Couldnt find the file to load experiment number')
experiment_number = 0
print('This is experiment numbe... | [
"doyle.andrew@gmail.com"
] | doyle.andrew@gmail.com |
73a032a0612a77d65c7a07200994e83c69f92ce3 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/TheTaintedOne/solution.py | 746f30c4b1aac93a50dee4c7e781e4c5746595eb | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import sys
lines = sys.stdin.readlines()
ntests = int(lines[0])
vowels = set(["a", "e", "i", "o", "u"])
linenum = 1;
for c in xrange(0, ntests):
name, csize = lines[linenum].split()
csize = int(csize)
# print "[" + name + "]"
# print start_size, num_others
cons = [];
for cc in name:
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
5661147fb32392e5da9c640eb4c2970ac23560ef | f5b95b7b520d6986eed909eebba7a13d839b2164 | /function/variable length arguments/demo2.py | 45287652be2149fa1b24093b8f42d125b7be27e1 | [] | no_license | NeenaBenny1995/Luminaronlineclassneenabeny | 0a5e2e80c70aca5d60aee39f3e4872818abf4f20 | 2753b7f293e072b6654bf4b5efab05a6fe98756c | refs/heads/master | 2023-04-30T08:30:10.908393 | 2021-05-20T08:25:54 | 2021-05-20T08:25:54 | 368,791,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | def print_employee(**kwargs):#accept argument as key value pair
print(kwargs)
print_employee(id=100,name="Arjun",salary=10000) | [
"neenabenny555@gmail.com"
] | neenabenny555@gmail.com |
3a87d592cde203deedef3e8df7131bca17d15baf | f508d22d4ce8a350c14dfbc783991a1fe59e5547 | /Video/Django_StreamingHttpResponse_and_countdown_in_loop.py | a753a1b1f057470f2356a97858ffb9af31804835 | [] | no_license | zDragon117/SomeCrapCode | e7459e42325e29c051da6d5065ea77cc1db600ac | 812c6fade4e4e63eea5ddfd75e3b629d68c6b0e9 | refs/heads/master | 2021-10-25T00:08:12.040472 | 2021-04-15T16:08:51 | 2021-04-15T16:08:51 | 249,888,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | globalIsOver = False
def gen_camera_stream_resp(
camera_source,
fps=10,
scale_width=720,
scale_height=-1,
):
countdown(120)
while True and not over():
try:
frame = camera_source.get_stream_data(
scale_width=scale_width,
scale_... | [
"thepathtosuccess1346@gmail.com"
] | thepathtosuccess1346@gmail.com |
6cfeff895436cedefcd17101ee2bfb6460f6e66d | da4dcd5dc90c8b3bbcc4b250da65017e090aafd5 | /9.27/scrapy/scrapyboss/scrapyboss/pipelines.py | 33d0caf8124ddacaacf491d9dcea3527ae61f6d2 | [] | no_license | yuebanwanwan/9.27 | 2a8100d987597056d1611590256114c67e77e24f | 1ee29ac21371524764c4be43c5dd90a3082e1ac6 | refs/heads/master | 2020-03-29T23:55:00.608808 | 2018-09-26T22:12:43 | 2018-09-26T22:12:43 | 150,495,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,333 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
import pymysql
from scrapy.exceptions import DropItem
class MongoPipeline(object):
def __init__(self, mong... | [
"943804417@qq.com"
] | 943804417@qq.com |
7cb7899c5d50aeeb8857f7c68469cd872242a07d | 37183206f6b97a329367df0913f7bd1e9504278b | /services/equity_parser.py | dbe8f05e9ddc3c5e38ad56d0979784f2c80986ff | [] | no_license | imaayush/Equity | d9b31b45d7f57d22006c5cbcb0356884e15250c7 | 5a5851f1d436c874e383c78098f9342632f967a7 | refs/heads/master | 2021-09-02T00:02:11.163788 | 2017-12-29T09:13:55 | 2017-12-29T09:13:55 | 115,530,509 | 0 | 0 | null | 2017-12-29T08:41:49 | 2017-12-27T14:47:18 | Python | UTF-8 | Python | false | false | 3,013 | py | import os
from .constants import FIELDS_NAMES
class EquityParser():
"""Take .csv file path as input and return list of dic"""
def _is_readable_file(self, path):
return os.path.isfile(path) and os.access(path, os.R_OK)
def __init__(self):
self.column_names = FIELDS_NAMES
self.erro... | [
"aayuhtiwari41@gmail.com"
] | aayuhtiwari41@gmail.com |
00df633d7c8b33c3a85ec2a26c6b5ab806db56b6 | d2b4a7bcf22f494edd7bc8d91e256f2c95fc3e46 | /0x0A-python-inheritance/1-my_list.py | 586dffe1974e28f7ddbb7e400964310cf48a0d3c | [] | no_license | sidcarrollworks/holbertonschool-higher_level_programming | 72c56d90b24eab9b7fcb1861be17be2019db4041 | 26295d1e3c1e68ad22a7b3fe28fae2e938fadd9a | refs/heads/master | 2022-05-03T23:10:49.527658 | 2018-05-10T19:40:40 | 2018-05-10T19:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | #!/usr/bin/python3
'''
Inherit
'''
class MyList(list):
def print_sorted(self):
print(sorted(self))
| [
"squidcarroll@gmail.com"
] | squidcarroll@gmail.com |
6eff69d26d7e3eaee11c0cb00bccf058d78dcb99 | 7640f7e8ea742cd8938e62d165929a044036cd31 | /BTransR_train.py | c4897af6963778cae662897ed0a2e671b06ded2a | [] | no_license | Jason101616/BTransX | 94fffe0598ca7f073e28319cbea3ca54a5cc9c39 | ab3e11b693705b3cd74c92404932b0542d988ad9 | refs/heads/master | 2021-06-20T19:49:28.063663 | 2017-08-15T03:51:03 | 2017-08-15T03:51:03 | 100,281,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,347 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2017-03-29 14:06
# @Author : Zhang Du
# @File : BTransR_train.py
import numpy as np
from constants import *
import json
import random
class BTransR:
def __init__(self, step = 0.001):
def load_aligned_triples():
with open(path_align... | [
"duz1@andrew.cmu.edu"
] | duz1@andrew.cmu.edu |
7ba038517977014232bb369d1a1be06c6546ca03 | fcc47f227245e523e5603c7ac2b86ed301e91874 | /chapter02/work04.py | eccc4f7cd6998df9d0ba6c7685efc6f4151b0cde | [] | no_license | programmingkids/python-level3 | f420566c104f2ffe411afbad0a67ae72acfd3584 | 52a0abdf3410060edfcf69f0395b85f754def06b | refs/heads/master | 2022-12-15T02:16:01.102846 | 2020-09-17T08:18:00 | 2020-09-17T08:18:00 | 289,796,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | colors = ["red","blue","green","yellow","pink"]
| [
"ec2-user@ip-172-31-11-152.ap-northeast-1.compute.internal"
] | ec2-user@ip-172-31-11-152.ap-northeast-1.compute.internal |
0a458cffdfd12e0e313827f589640df8bbc8290b | b2b532b74a89510d71e108cf7d20507384d115d4 | /print_index.py | 5ddb8aa6ad516d27e645ef43e5c3f7a38368fbe2 | [] | no_license | jyurick/cmput397Assignment1 | 6b624cc2fb187be4cbae0e52cd3e5a4fbf5801cf | 363985076fd251d7a623a6826f933f325c8c7f2c | refs/heads/master | 2020-04-06T05:47:16.724276 | 2017-02-28T06:09:15 | 2017-02-28T06:09:15 | 82,961,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import sqlite3
import sys
#takes in system argument as the sqlite3 db_Name and connects to it
db_name = sys.argv[1]
conn = sqlite3.connect(db_name)
#selects data required and orders it by term and docid
stmt = """
SELECT TERM, DOCID, POSITIONS
FROM LISTINGS
ORDER BY TERM, DOCID ASC;
"""
curs = conn.execute(... | [
"jyurick@ualberta.ca"
] | jyurick@ualberta.ca |
3b731d40bb96886cefc781104bd86c32f03bdaea | 67c2b8719515a00714ae07e6be1257d5986b9528 | /pyQT/笔记/列表.py | 697b5217758465f5b48de7193aa605a2a8f69167 | [] | no_license | zhangxf2020/jeee | b980cfda0e2b79b1e736ff5b4fea38fdfea9a89d | 922a9ec42591397bf1a7f94cd84f63d459f2dbae | refs/heads/master | 2021-02-19T10:04:53.804492 | 2020-03-16T01:25:40 | 2020-03-16T01:25:40 | 245,301,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | a = '32.123'
print('.' in a) | [
"fan102684@163.com"
] | fan102684@163.com |
d95e8925cc8de16faad7f38369d751625be57b1b | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/networkx-1.11-py27_0/lib/python2.7/site-packages/networkx/algorithms/centrality/betweenness.py | b8c2b125f647b1c691d87810ce7eb454c7f0ab78 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 11,680 | py | # coding=utf8
"""
Betweenness centrality measures.
"""
# Copyright (C) 2004-2015 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
from heapq import heappush, heappop
from itertools import count
import networkx... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
72739765e377bc2c3ededd2471ef4acd179e7817 | f0f80303b43aa2b248eb8bd8b97c0fa42e8dd7c2 | /src/data_visualization/display_pairwise.py | 22c49dc6d722b1fdd7ff44550dde17a85c52b273 | [
"MIT"
] | permissive | CrivelliLab/Deep-Protein-Scoring | 7377bb02bbd72ccddf4faaa25a5d90310097f767 | 059791a54133c2d03eb14cf98fba1c6ef27c8f49 | refs/heads/master | 2020-05-04T23:55:23.606379 | 2019-03-23T19:17:28 | 2019-03-23T19:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | '''
display_pairwise.py
Updated: 3/20/18
'''
import os
import h5py as hp
import numpy as np
import matplotlib.pyplot as plt
# Data parameters
data_folder = '../../data/T0882/'
################################################################################
if __name__ == '__main__':
# Set paths relative to thi... | [
"rz4@hood.edu"
] | rz4@hood.edu |
168173786349698c8ae6e3a87590ff088b046c10 | 13119e54911404e9be9fe6a9b7732f23a16f5e1f | /lists/tests/test_models.py | d70ca968d7fd6ac126e80610e5b95ae2db78d6ef | [
"MIT"
] | permissive | PatrickLeonard/superlists | d290f24c96f5faa3e06f7934ca301ac787f2b4c0 | c99cdb5ed32009a878016da9e3bb2659a267f851 | refs/heads/master | 2021-01-11T02:29:49.721734 | 2016-11-14T02:01:54 | 2016-11-14T02:01:54 | 70,960,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | from django.contrib.auth import get_user_model
User = get_user_model()
from django.core.exceptions import ValidationError
from django.test import TestCase
from lists.models import Item, List
class ItemModelTest(TestCase):
def test_default_test(self):
item = Item()
self.assertEqual(item.text, '')
... | [
"patrickleonard789@gmail.com"
] | patrickleonard789@gmail.com |
83497eb9655ea0c266abbffacf149e61e78c537c | f521f594f6c9189433b4fcab5155d1194fcbeac2 | /parse/log_decorator.py | 83d1568cc5671d5fc685d6ac4f49e3d36e860ef2 | [] | no_license | easyinplay/tor_spider_scrapy | cd1a8241ff1e744a10d812998ea49ce38a6c310e | 736285d1bd0a82b4e1db2857a232a1623993482a | refs/heads/master | 2023-02-02T11:03:45.312559 | 2020-12-22T08:57:43 | 2020-12-22T08:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import os
import logging
import functools
from datetime import datetime
def _logger():
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
sh = logging.StreamHandler()
today = datetime.now()
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 上一级目录
# fh = loggin... | [
"chen752869839@qq.com"
] | chen752869839@qq.com |
14bfb45539a15719c26658a0696082529fc4bc0f | 65465c6a8ffde330dea87c347b5a6f8345f0bdca | /p3/urls.py | 2cdfbf5928658f3f5bc0f17c9e063acab2b297b6 | [] | no_license | Saranyaram890/p3 | 27a0fa81ea16772e73b8a61fb306893c63977ba5 | 48fad442244da2d97f2444806540bc0a133e3e45 | refs/heads/master | 2022-11-22T14:51:58.800929 | 2020-07-23T02:04:37 | 2020-07-23T02:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | """p3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based view... | [
"anburangaa@outlook.com"
] | anburangaa@outlook.com |
c8d58bad12f2d00dbaaa0a198b391fe827e89ccc | 79a60fa1daeaa9dbe0cb551423fe28c2f2cf7da3 | /websocket/bottle/mqttwsweb.py | a0e1c343be062aba3efa12502005552a8a3d9e11 | [
"MIT"
] | permissive | swkim01/mqtt | a505494815cd5f487cbc1e434fd0546c1bc08eac | 030d9106bf791b54538aac8789df872abaa96e17 | refs/heads/master | 2021-01-10T22:07:04.788958 | 2019-07-19T01:41:07 | 2019-07-19T01:41:07 | 42,844,241 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | #-*- coding: utf-8 -*-
from bottle import route, get, request, template, response, static_file
from bottle import run
#import json
host="<HOST IP>"
port=8008
wsport=9001
@route('/mqttws31.js')
def mqttws31():
return static_file("mqttws31.js", root=".")
@get('/mqttwschart')
def dht22chart():
return template("... | [
"swkim01@gmail.com"
] | swkim01@gmail.com |
e0008060475c57100422a4370823f602a7d1dbaf | de4f05070b7194b00facd823ce369e2733034ea1 | /EC2/GetEC2Instance.py | 065371954d97b7998fa4965e5e5df48296e69405 | [] | no_license | JeongWonjae/AWS_CLI_Script | 2679e6072c210665f0c7c65705f73c67a6c591b6 | 91c5c122799a0b930f9eb3652ae1570ef1abbcec | refs/heads/master | 2023-06-01T22:27:32.824199 | 2021-06-24T05:46:59 | 2021-06-24T05:46:59 | 345,669,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,707 | py | import boto3
import json
session=boto3.session.Session(profile_name='DemoUser', region_name='us-east-1')
client=session.client('ec2')
instances=[]
# for minimize call API set 'MaxResults=1000'
response=client.describe_instances(MaxResults=1000)
# response = {'Reservations': [{'Groups': [], 'Instances': [{'AmiLaunchIn... | [
"justv95@naver.com"
] | justv95@naver.com |
64822061c6bd698ceeda74ad46900f76caebdc88 | bfc5b2f0743c6e9adb877fa891d874529760b007 | /deb-update.py | 18034002a5b26f694c39deac88fe1fe16ca05cfc | [] | no_license | MrNathanSmith/arbitrary-python | 930603b760bf46250a71e5729517e90f8bff3f5e | 80e5dd256bddae750a1ab941dedbef8319870ed1 | refs/heads/master | 2021-01-21T23:24:02.032325 | 2017-06-23T18:10:11 | 2017-06-23T18:10:11 | 95,242,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | #!/usr/bin/python
import os
import sys, traceback
import time
print ""
print "A Simple Update/Upgrade Python Script For Debian"
print ""
#Options
print "~~~~~~~~~~~~~~~~~~~~~~~"
print "Update/Upgrade Debian"
print "~~~~~~~~~~~~~~~~~~~~~~~"
print "(1) System Update"
print "(2) System Upgrade"
print "(3) Distribution ... | [
"noreply@github.com"
] | noreply@github.com |
050414edb4e192e13b8368dffaf21774c78ca1cb | 163554ecfd9c3b059171e42166cf2b4c550e0ea7 | /dataclassificationapp/wsgi.py | 406ce971ba6d58416e1052f9bf20c706db98d671 | [] | no_license | danielRos01/DataCassifierBackend | 9ca2e18aa08a75538373f14570d2589c3bf26038 | 6fba2f5c5ca0f4c2e248e65223f33d17606d0e63 | refs/heads/main | 2023-01-19T02:38:12.629536 | 2020-11-22T20:22:32 | 2020-11-22T20:22:32 | 315,088,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for dataclassificationapp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"daniel.socoza079@gmail.com"
] | daniel.socoza079@gmail.com |
80bfdaf5259b84ac700aab294d7db8d5372259c3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02546/s914300427.py | 3dad5d294d902104d5bf9e91b64a4bd3c9b6633e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | S = input()
if(S[-1] == "s"):
S += "es"
else:
S += "s"
print(S) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b34e8eb425d1099c4b4358e74814477818dfc003 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/vulkan-deps/vulkan-validation-layers/src/scripts/common_ci.py | 88e5f1af7cda75fbf03793a27e6bf5f32ce53c52 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 10,787 | py | #!/usr/bin/python3 -i
#
# Copyright (c) 2015-2017, 2019-2023 The Khronos Group Inc.
# Copyright (c) 2015-2017, 2019-2023 Valve Corporation
# Copyright (c) 2015-2017, 2019-2023 LunarG, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licen... | [
"jengelh@inai.de"
] | jengelh@inai.de |
ef91d187951a98f0a2cc58320241353d9beb1284 | dd24ca271419b49be54a0f632eeaf684da3f4a71 | /python3/exercise/csdn.py | 2d1aca3e0e27ffb2b9403eb1adb22208f1a8af2b | [] | no_license | Soulor0725/PycharmProjects | fd766d7760900f7aa2c47f130974017f13c184db | 664bb3c54b7ece844263b5a3e3adc4731ea772ff | refs/heads/master | 2021-09-14T22:22:49.920606 | 2018-05-21T07:12:52 | 2018-05-21T07:12:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | '''''
program: csdn博客爬虫
function: 实现对我的csdn主页所有博文的日期、主题、访问量、评论个数信息爬取
version: python 3.5.1
time: 2016/05/29
author: yr
'''
import urllib.request,re,time,random,gzip
#定义保存文件函数
def saveFile(data,i):
path = str(i+1)+".txt"
file = open(path,'wb')
page = '当前页:'+str(i+1)+'\n'
file.... | [
""
] | |
cb32c7cea02c9d8b4ab326ff7d7b6217ae6c00d9 | 1d67056d57c656f6d64ab315b60c36c62317ad50 | /nameGender.py | 538bf13eedfa42510b9133812260f40bee940b4f | [] | no_license | Drob-AI/Book2Ontology | dd7d6462bf14f6c721368eb2afca90ed3284f1f5 | b3daa6a491acafe0b4388f4de9b566d7ec760792 | refs/heads/master | 2021-01-17T17:25:34.073352 | 2016-07-08T00:51:21 | 2016-07-08T00:51:21 | 62,723,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | from nltk.collocations import TrigramAssocMeasures
from nltk.collocations import TrigramCollocationFinder
from random import sample
def read_raw_data(file_name):
f = open(file_name, 'r')
raw_data = []
for line in f:
raw_data.append(line)
f.close()
return raw_data
def char_type(characte... | [
"bladespinner@gmail.com"
] | bladespinner@gmail.com |
68ea6c85f64c98acc2cb88a841724df7e5d89167 | 925cb9f77ca120fa33f5b68bb0e733942c33fe0c | /Dojo_survey_with_validation/server.py | 4d011a44228c28efa4ee729c1b6a81967212a02e | [] | no_license | dhurataK/Python_Flask | 58c309813ad455e247b1e653ec8134f23e0667f4 | dd55a6800addf8eb6a87f65b4ef8f7b41d511d1b | refs/heads/master | 2020-12-31T06:22:40.073635 | 2016-09-23T15:28:43 | 2016-09-23T15:28:43 | 68,420,179 | 0 | 1 | null | 2016-09-18T22:47:04 | 2016-09-16T23:05:18 | HTML | UTF-8 | Python | false | false | 1,082 | py | from flask import Flask, render_template, request, redirect, session, flash
app = Flask(__name__)
app.secret_key = "verySecret!"
@app.route('/')
def home():
return render_template('index.html')
@app.route('/result', methods=['POST'])
def validate():
name = request.form['name']
location = request.form['loc... | [
"dhuratakamberi_@hotmail.com"
] | dhuratakamberi_@hotmail.com |
a24404703336545fc6ae88cede1fb645987258ff | 8c409c79ef8a9aeacb2ba8af99fcb8456529257f | /python/png2svg/png2svg.py | cc74b3131ad3546c06b263f5f417e292f9a29522 | [] | no_license | damo-wang/book | 97cec663770c6565d92f9657542b2fe38f851a0a | 3254d1d2afc4dac239b65c80a9ec425a628fd1e1 | refs/heads/master | 2022-10-16T17:36:34.127248 | 2022-10-14T15:04:17 | 2022-10-14T15:05:12 | 107,131,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import aspose.words as aw
doc=aw.Document()
builder=aw.DocumentBuilder(doc)
shape=builder.insert_image("Input.png")
shape.image_data.save("Output.svg")
| [
"hemoparrot@gmail.com"
] | hemoparrot@gmail.com |
c15f0bec4691b59ccddfa52d5cf261f07b0ea133 | 1789386464cb22e1d00fec011b440970cf4a923c | /ch2/ch2p1.py | 2a3e816d27344def35a743d2263c36b76696b3a7 | [] | no_license | milnorms/pearson_revel | 06f14d382ed106e24705c91e87b0244bfe81f2f4 | ac72692394962d3952888a90791e7468b73d9bf3 | refs/heads/master | 2020-12-01T16:56:45.509114 | 2019-12-29T05:05:25 | 2019-12-29T05:05:25 | 230,703,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | '''
(Financial application: calculate tips)
Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total. For example, if the user enters 10 for the subtotal and 15% for the gratuity rate, the program displays 1.5 as the gratuity and 11.5 as the total. Here is another sample run:
... | [
"mili@milis-mbp.home"
] | mili@milis-mbp.home |
227893b265ced510ed159a0e46ff9adff34c2178 | ba1d012f951b0d96c43805d79195bfa1d9c7892e | /backend/base/migrations/0003_auto_20210423_1734.py | de050484f5dbb22671769c496d0c2ccfca8cc833 | [] | no_license | ramoncelestino/react-django-blog | 89c22bf00b35ae35ca0a1e27e0d74e79a4b3dea3 | 7820bfb50bb9bdeaa0dce1d95a3b460c3074fae6 | refs/heads/main | 2023-04-28T01:04:24.984416 | 2021-05-01T01:26:13 | 2021-05-01T01:26:13 | 361,168,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 3.2 on 2021-04-23 20:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0002_auto_20210423_1730'),
]
operations = [
migrations.RenameField(
model_name='city',
old_name='city',
... | [
"ramoncelesteramos@gmail.com"
] | ramoncelesteramos@gmail.com |
5961d295b23abd4a5c1995b3f10bf6ccb333c741 | 44600adf1731a449ff2dd5c84ce92c7f8b567fa4 | /colour_down/adaptation/fairchild1990.py | 4ce1a10481213f117c2508f1c43f594b728df699 | [] | no_license | ajun73/Work_Code | b6a3581c5be4ccde93bd4632d8aaaa9ecc782b43 | 017d12361f7f9419d4b45b23ed81f9856278e849 | refs/heads/master | 2020-04-11T23:16:43.994397 | 2019-12-28T07:48:44 | 2019-12-28T07:48:44 | 162,161,852 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,432 | py | # -*- coding: utf-8 -*-
"""
Fairchild (1990) Chromatic Adaptation Model
===========================================
Defines *Fairchild (1990)* chromatic adaptation model objects:
- :func:`colour.adaptation.chromatic_adaptation_Fairchild1990`
See Also
--------
`Fairchild (1990) Chromatic Adaptation Model Jupyter No... | [
"ajun73@gmail.com"
] | ajun73@gmail.com |
68e3dbcc684161b2f8d32f752aaad8f778937993 | 9f6b9a40444df2b09960b5b531232ee6975e74dd | /level_1.py | 13d4ca664e2d9291979dc351d30188b94817ea48 | [] | no_license | nildiert/hodor | f60e94f4a64b8b0217c760104f501a6a586d4129 | 3c8b2df854ed2af6c5345250bc8f557b52761aee | refs/heads/master | 2020-06-02T06:19:44.740188 | 2019-06-10T02:59:23 | 2019-06-10T02:59:23 | 191,067,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | from lxml import html
import requests
import time
def req_values(url):
page = requests.get(url)
tree = html.fromstring(page.content)
me = tree.xpath(next_val)
return ([page, tree, me])
try:
url = 'http://158.69.76.135/level1.php'
data = {'id':'730','holdthedoor':'submit'}
next_val = '//td[... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
685535ed109dab696f4e5360794e0b67396276b8 | 91905ec87a4724d8e8d3c084574b616cc3ae03d4 | /mysite/urls.py | 9352a7c1d4216b202affaf2e23dedfb5b1c249c6 | [
"MIT"
] | permissive | evvrivas/mis_proyectos | c64a58ff2ad506063947f9cf1ac426ab6a7383a4 | ed4c9c1bc1b1ae8eeca968a10f77b8e1c1515e92 | refs/heads/master | 2021-05-06T15:42:54.998970 | 2020-06-11T05:45:01 | 2020-06-11T05:45:01 | 113,632,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | #from django.conf.urls import patterns, include, url
#from django.contrib import admin
#from mysite.views import Index
##########################
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import url,include
from django.contrib import admin
from django.conf import settings
import mysite.s... | [
"evvrivas@gmail.com"
] | evvrivas@gmail.com |
64402309d95926900ca65d4eebb29551360c1b03 | 1def774fa7899e53de2f63578518a634050c1e82 | /section6/security.py | 62396f43b2da68138c6f88accf1c0ffbf869ea3b | [] | no_license | albayona/flask_content | f570e937c92c2813e5db8919cfa1707918178034 | 7030da7a8457ec818112bacee011d21343cab841 | refs/heads/master | 2023-01-29T00:54:59.864671 | 2020-12-17T04:27:34 | 2020-12-17T04:27:34 | 314,171,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | from flask import request, jsonify
from flask_jwt_extended import create_access_token, get_jwt_claims, create_refresh_token, jwt_required, get_raw_jwt, \
jwt_refresh_token_required, get_jwt_identity
from blacklist import BLACKLIST
from models.user import UserModel
from functools import update_wrapper
from flask_re... | [
"al.bayona@uniandes.edu.co"
] | al.bayona@uniandes.edu.co |
907b8d2e4fbac6eb91146f0df7ba54c27035b164 | 3da93763bbc39692ef6f468a91c42b335674af44 | /python/tautau.py | 4b3b070d64b461333e438d27ae701bc767b0a60c | [] | no_license | mbirostris/cpt | 59f5fd0a45bf2c044b55156835dbb1c5c460ee84 | 5bae5d82647e271e686f892b0b762425563f1e50 | refs/heads/master | 2020-06-06T03:07:26.096708 | 2015-06-23T08:04:12 | 2015-06-23T08:04:12 | 27,839,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | import sys
import ROOT#gROOT, TCanvas, TF1, TFile
from root_numpy import root2array, root2rec, tree2rec
import os
import shutil
import math
from ROOT import * #gROOT, TCanvas, TF1, TFile
import pylab as pl
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 im... | [
"olszewski.mikael@gmail.com"
] | olszewski.mikael@gmail.com |
e55b0c7aae5064490a387ff915342f70c51b626a | 336705b43988965b7601cdb47b0588e31c88b880 | /TG_AutoConfigurator/plugins/inline.py | 6f87931dcaba06a65cd9f69b2c5707eab79ddc4c | [
"MIT"
] | permissive | qwertyadrian/TG_AutoConfigurator | 13b251fe5477cb6918286d08816e3d0d0e827d70 | d3aee59076ae4b1e77f2c0d487d56b6d74021f5a | refs/heads/master | 2022-06-22T15:03:33.685971 | 2022-06-08T15:10:36 | 2022-06-08T15:10:36 | 192,208,383 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from pyrogram import InlineQuery, InlineQueryResultArticle, InputTextMessageContent
from ..TG_AutoConfigurator import AutoConfigurator
from ..utils import tools
@AutoConfigurator.on_inline_query()
def inline(bot: AutoConfigurator, query: InlineQuery):
if tools.admin_check(bot, query):
string = query.quer... | [
"20292956+qwertyadrian@users.noreply.github.com"
] | 20292956+qwertyadrian@users.noreply.github.com |
69f9dd47463c7924f4b97ceba4c0412bd8f0fad0 | 4addd4aa5f38387be3ee1fc9cefff69485d74e1a | /GOPE/Gopesa/principal/migrations/0001_initial.py | 8fbff4085107be2c0cfcfefd2c190f1af34c8f6c | [] | no_license | A01701833/GOPESA | a40f2a328dd9f7e108ab5a7e85f1d99c6a047a0e | 33dda28a8fe66ef3f76d22c16ace9e37c7ff1937 | refs/heads/master | 2020-04-08T09:29:24.321695 | 2018-11-26T20:14:09 | 2018-11-26T20:14:09 | 159,226,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 2.1.1 on 2018-11-16 20:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Propiedades',
fields=[
('id', models.AutoFi... | [
"A01701833@itesm.mx"
] | A01701833@itesm.mx |
c58367f57e3a973de97e3542dc625d0ddef9babe | 2f23f2ddce5b44950c0ecc8fac11d7eb7cd6c6ca | /src/bptl/camunda/migrations/0011_auto_20200226_1441.py | 21914fbf0fd13fb6906b4a40f4d6683c3cc5aad5 | [] | no_license | Amsterdam/bptl-lite | c989c22f0efb2ae866e1b81b0f2effdeb18917c9 | 7dd8a13cef455e34a7432e310978f7871a81de23 | refs/heads/master | 2023-07-09T21:20:13.028609 | 2021-08-10T08:09:00 | 2021-08-10T08:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # Generated by Django 2.2.10 on 2020-02-26 13:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("camunda", "0010_copy_tasks_to_parent"),
]
operations = [
migrations.RemoveField(
model_name="externaltask",
name="execution... | [
"anna.shamray@maykinmedia.nl"
] | anna.shamray@maykinmedia.nl |
4061b69cd1a0426dd429f731702ee97b4ae88e23 | 90bc2d33954d4db8608e77d0430a3f8c0a920d64 | /midaasTask/asgi.py | b37d065f6e1f66323b5d92de7d437d3e0dbdbf95 | [] | no_license | anil-bothe/midaasTask | 873512a7bb31ba7c7a711e2c3a4085cc6e2505fe | 33420cb97682dbba8246b388cf3ac990e314df64 | refs/heads/master | 2023-07-09T18:49:46.301471 | 2021-08-02T05:59:56 | 2021-08-02T05:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for midaasTask project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"anil_bothe@yahoo.com"
] | anil_bothe@yahoo.com |
3a3796bf98f90c15d5b4c72280decdc7e412449c | 7e5c96cf9091f3912b51215f98e4e75a1fd5fe56 | /lucky/lucky.py | 1d572cd3c5a6d7528c63213dd644cac608dfe1a7 | [
"BSD-3-Clause"
] | permissive | aenon/shiba_cogs | ef3cdff2d274cb8029b9fc7204a119c5c92e4c80 | cb65b75f648698f63913b8b38ed7bafa33df6f4c | refs/heads/master | 2021-07-13T06:09:02.672212 | 2017-10-18T07:04:34 | 2017-10-18T07:04:34 | 105,968,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import discord
from discord.ext import commands
class lucky:
"""Cog for Husky Lucky"""
def __init__(self, bot):
self.bot = bot
@commands.command()
async def lucky(self):
"""Cog for Husky Lucky
instagram https://www.instagram.com/thehuskylucky/
get random post: descript... | [
"s.sn.giraffe@gmail.com"
] | s.sn.giraffe@gmail.com |
9e02a82736c3444d9a8a3e3f92dc8fc5eb8cd8bc | c3f4e09bba013cc1ac99830077b89edad23b21f7 | /hello.py | dd4d12ce9e04dc511fd3be04347eaad83ca7458d | [] | no_license | mkemper/herokupythonwebapp | 70477d990c8640ac467f6e406b04a87b61f6ebe7 | 55e76253ac2ae346e8958a00792b50c2820ac7a9 | refs/heads/master | 2020-05-28T14:08:07.801003 | 2014-05-02T19:54:06 | 2014-05-02T19:54:06 | 18,992,699 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import os
from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route('/')
@app.route('/hello')
def hello():
return render_template("index.html",title = 'TestApp',user = 'Gustave Gans')
| [
"kemper.mt@gmail.com"
] | kemper.mt@gmail.com |
a366043bb5e6902c35d10a0d2a4c4f20f7c00e59 | 09790593dd44a1ad31b387bbe4adea927697d3ef | /gitrepo/python/potega.py | bc854f3e91c77fa6df3de3052f801055ae4470c6 | [] | no_license | kuba332211/gitrepo | 0baa6179725fee3f200c619f0b436e89906a76a1 | b80b1931337b886bd6cff343b0feae4ce3055dbb | refs/heads/master | 2020-03-28T01:02:56.559496 | 2019-10-11T06:36:16 | 2019-10-11T06:36:16 | 147,471,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# potega.py
# obliczanie potęgi podstawy podniesionej do wykładnika
def potega_it(a, n):
wynik = 1
for i in range(n):
wynik = wynik * a
#print(wynik)
return wynik
def main(args):
#a =int(input("Podaj podstawę: "))
#... | [
"noreply@github.com"
] | noreply@github.com |
c862a250c2c47d807e95c99304745e82a2d09ea8 | fa60cc12d59d73376e5812c11613c238c2e17447 | /performance/stat.py | f5f255373f674e68f841a6e5920a0e80f710348e | [] | no_license | ftao/playzmq | 1a466c364d0f4c935d678656cd6eb8aceb571703 | dde945f27850159c0cfc4d1ecda53e9f32331612 | refs/heads/master | 2020-03-30T11:30:52.107291 | 2012-02-06T15:10:34 | 2012-02-06T15:10:34 | 3,289,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #!/usr/bin/env python
'''
Do stat calucation on data
'''
import time
import json
import sys
import itertools
import zmq
def stat(data, field):
total = 0
count = 0
for item in data:
total += item[field]
count += 1
return total, count, total * 1.0 /count
def get_data_stream(socket):
... | [
"ftao@debian.localdomain"
] | ftao@debian.localdomain |
49387a3cdc6c6e23837c5436d99d317dbd2554eb | 40b262d813d07a113914d6009af8737898f2e096 | /Platos test/apps/schedules/migrations/0001_initial.py | 8cf8f0fa053f62e70fdc4f248d417b5c4d27999c | [] | no_license | Nish8192/Python | cb6de3b96e790464a0a4ad10eda86ce4f79688b4 | 5c03beff6f3669d5cfb6b31c5749827db8b6a627 | refs/heads/master | 2020-12-23T16:56:18.301723 | 2017-05-27T02:09:02 | 2017-05-27T02:09:02 | 92,563,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 22:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('login_register', '0001_initial'),
]... | [
"nish8192@gmail.com"
] | nish8192@gmail.com |
020f0da0cd7aa01961d16151a1bafcc96e78372c | dc696115f95a173c358f749b3ab867681f4b4cbb | /code/centroid_plot_csv_new_1.py | 86c267194d2e750849c67b552f803d94a68bbf6d | [] | no_license | smohammed/GalexScanCalibration | 2c81a660f6a19b5c5125f9fcce1b5a0857152d7c | 59953cd2312b2f639891e434a54c5b9e8aabd155 | refs/heads/master | 2020-04-27T18:58:27.816939 | 2018-08-30T12:31:35 | 2018-08-30T12:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,166 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import c3
from astropy.io import fits as pyfits
import numpy as np
from astropy import wcs as pywcs
import sys
import aplpy
import os
from sklearn.neighbors import KernelDensity
import csv
import math
import asp_cal
import glob
from astropy.coordin... | [
"wsdun1029@gmail.com"
] | wsdun1029@gmail.com |
3317db01ff8d0d5eff65cd314197024a8f717d5c | cc196a0111bbdcc04af7e579bc87e808cc0c7b02 | /trident/__init__.py | 880dacc18d173da5184a33655707722ed4ae11ab | [
"MIT"
] | permissive | Jackliaoall-AI-Framework/trident | 73819a95121d9d4dbf81d28ae32aea43c0541840 | cd26c1108c05c3ab4c262f9b416a126b2ad2f858 | refs/heads/master | 2023-01-15T15:15:10.544946 | 2020-11-23T04:15:33 | 2020-11-23T04:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | """trident api"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
from importlib import reload
from sys import stderr
defaultencoding = 'utf-8'
if sys.getdefaultencoding() != defaultencoding:
reload(sys)
sys.setdefaultencoding(defaultencod... | [
"allan@asiaminer.com.tw"
] | allan@asiaminer.com.tw |
2da7f4194e18775060afca1bfc1dcd85d1009570 | 3411ad233c411c06765f4b07f8670c12025178b6 | /201-300/231-240/237-deleteNodeInLinkedList/deleteNodeInLinkedList.py | 9b19cef457feb64cb67a51b92b91f733e6ae73ed | [
"MIT"
] | permissive | xuychen/Leetcode | 7d9d31fed898ce58440f5ae6665d2ccaf1a4b256 | c8bf33af30569177c5276ffcd72a8d93ba4c402a | refs/heads/master | 2021-11-19T20:39:43.741589 | 2021-10-24T16:26:52 | 2021-10-24T16:26:52 | 140,212,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def deleteNode(self, node):
"""
:type node: ListNode
:rtype: void Do not return anything, modify node in-place instead.
... | [
"xuychen@ucdavis.edu"
] | xuychen@ucdavis.edu |
912e2103ce003cb1d9fcd5a02369716b032b4a25 | 63872807248066ffd0435dcd12ea37d60dc4a9e2 | /pyCDFTOOLS/draw_clock.py | c02c4946e1043f9c0b18b75c93bb072decd01a2e | [
"MIT"
] | permissive | malzubairy/NEMO-related | 8214d80216a874b710c487e14f586596941fa587 | 81ea5a5e94aa40b90e95093384bf769ec269afc4 | refs/heads/master | 2020-04-27T02:59:48.745286 | 2019-03-04T09:28:04 | 2019-03-04T09:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,159 | py | #!/usr/bin/env python3
# JM: 27 Nov 2018
# draw a clock
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import LinearSegmentedColormap
# units in radians
def draw_clock(yyyymmdd, clock_color = "xkcd:grey", progress_color = "Spectral", fontsize = 14, ax = None):
"""
fairly dumb way of d... | [
"julian.c.l.mak@googlemail.com"
] | julian.c.l.mak@googlemail.com |
78c173508b8ba231c1887527ff227333e548ecf8 | f010d4693aa8c3a8ba10220cec010a1138fc9311 | /venv/bin/faker | 85b96713c2cc50149d465d9527ac94eb10891e19 | [] | no_license | difasdfs/project_crisbardashboard | a4cf028e65a76688bd347e12b888cad910db5ae5 | 5c47bff0d491c29abb1cddaad152e66d5624336d | refs/heads/main | 2023-02-03T09:58:09.859779 | 2020-12-26T03:53:56 | 2020-12-26T03:53:56 | 315,183,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | #!/home/itcrisbar/project_crisbardashboard/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from faker.cli import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"itcrisbar@vps.server.local"
] | itcrisbar@vps.server.local | |
b0c14efa30aa6296d714f88a56de72b29a3cb346 | 821d830910c354cb89767a77e00c77deb592ca0c | /bayesnet/math/__init__.py | a7e1743bd4c1a5cdfed8a8de29633ed4e5c1f037 | [
"MIT"
] | permissive | zxsted/BayesianNetwork | c61aa77a511e96852dec38f268f0dc31b6752cac | efe75b5416a262741fa60ad09380684886e91eff | refs/heads/master | 2021-05-09T05:38:43.513255 | 2017-10-25T06:58:26 | 2017-10-25T06:58:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | from bayesnet.math.add import add
from bayesnet.math.divide import divide, rdivide
from bayesnet.math.exp import exp
from bayesnet.math.log import log
from bayesnet.math.matmul import matmul, rmatmul
from bayesnet.math.mean import mean
from bayesnet.math.multiply import multiply
from bayesnet.math.negative import negat... | [
"r0735nj5058@icloud.com"
] | r0735nj5058@icloud.com |
ca2d354525667e6ce05dcbd15758dec072a1e2c1 | 0559941516569d39a040341ab0861975fa70a327 | /Code/src/hellopython/第二章/test/monthrate.py | a933543be04d02f56c353bc94fe127fb1b402d5d | [] | no_license | LYTXJY/python_full_stack | e4cadfea45a711a72d56229d6032d46c0b752899 | 9e99b0d9d44e7191b0358a02e114bbcd18eee635 | refs/heads/master | 2021-02-03T22:34:13.939998 | 2020-03-11T14:05:29 | 2020-03-11T14:05:29 | 243,561,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #计算利率
#月供 = 贷款数*月利率 / (1 - 1/(1+月利率)**(年限*12))
years = eval(input("请输入贷款年限:"))
money = eval(input("请输入贷款金额:"))
monthrate = eval(input("请输入贷款月利率:"))
monthmoney = money * monthrate / (1 - 1 / (1 + monthrate) ** (years * 12))
totalmoney = monthmoney * years * 12
print("月供:", monthmoney, "总还款:", totalmoney)
... | [
"18822148155@163.com"
] | 18822148155@163.com |
5b16d88b43724df85472827ca9a1de35f189620b | 6ed48bf3c72e61fe53144a3545ab305112c93501 | /appengine/findit/handlers/test/help_triage_test.py | ef11561424031e1e74e5d088f7422bb54953dd08 | [
"BSD-3-Clause"
] | permissive | eunchong/infra | ee5f7a9379977de8c814f90dbba3f6adbf06a75c | ce3728559112bfb3e8b32137eada517aec6d22f9 | refs/heads/master | 2022-11-27T06:26:57.415805 | 2016-04-08T12:34:36 | 2016-04-08T12:34:36 | 55,699,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,341 | py | # Copyright 2015 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 json
import os
import webapp2
from testing_utils import testing
from common.git_repository import GitRepository
from handlers import help_triage
fro... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
afff7325a984dc8bfcc0c081baafbff71099bdcd | 8d7d847f109183365022112a6b76cb20fa158255 | /Crawler/Crawler/settings.py | fd19646728c9c25cb290559bf94c5142869e8503 | [] | no_license | Xarliend/DataViewSite | 42e59fed9483ff2f877a40b4f31a1b82c5435ecd | 59921492547d68908e6e8f54a062baeb05b19580 | refs/heads/master | 2022-11-24T15:12:01.842042 | 2020-01-04T22:21:17 | 2020-01-04T22:21:17 | 227,699,982 | 0 | 0 | null | 2022-11-04T19:31:04 | 2019-12-12T21:29:47 | Python | UTF-8 | Python | false | false | 3,089 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/top... | [
"43079993+Xarliend@users.noreply.github.com"
] | 43079993+Xarliend@users.noreply.github.com |
b0395f5306037472584cb31f83bbac95066c2fa6 | 7e293e5992eea0e139f9420925a9bcb64d0fd7c2 | /data_sets/generate_data.py | 4f9c0ce0032bc0049e8a5d47b4efcaf54e9a29cd | [
"MIT"
] | permissive | xcleancode/Distributed_GPU_LSH_using_SYCL | 5dd0ee84220119ef8b1577b0dc3f357e9caf8195 | a1763670fa4e9df8ac1df4ffcc89b0c5ceed36cb | refs/heads/master | 2023-05-13T04:45:41.573043 | 2021-06-07T12:31:52 | 2021-06-07T12:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,743 | py | # @author Marcel Breyer
# @date 2020-08-06
# @brief Python3 script for generating data sets.
import argparse
import sklearn.datasets
import sklearn.preprocessing
import numpy as np
import sys
import csv
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
def size_in_bytes(numpy_type):
return... | [
"breyer.marcel@web.de"
] | breyer.marcel@web.de |
57b500dbbccbef6d98b6b6d9293526c6082141e2 | 3ff9a091e9546b336b5d167fb3678c315e2a6e44 | /testing/test_calc.py | cbc579781beafe9ef19d32d8a33b008117c3ab31 | [] | no_license | titoeb/python_tuts | 7b2a8b7a6a3d5afc83d0f44a7ec46c575ec6ef3b | 4efb0e364ba929ce2cf8dd21a7fa86fec5e049f6 | refs/heads/master | 2021-05-25T07:30:19.292777 | 2020-04-07T11:27:36 | 2020-04-07T11:27:36 | 253,715,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import unittest
from unittest.mock import patch
import calc
class TestCalc(unittest.TestCase):
def test_add(self):
self.assertEqual(calc.add(10, 5), 15)
self.assertEqual(calc.add(5, -5), 0)
self.assertEqual(calc.add(-10, -5), -15)
def test_subtract(self):
self.assertEqual(cal... | [
"tim.toebrock@rewe-digital.com"
] | tim.toebrock@rewe-digital.com |
82bf1eea5257be4934bb0ac54853d03f28b2cab4 | fcf656dccbf69fd2fe6abe4fa82b5e9722bc3052 | /util/__init__.py | e8c2b4443a05f4f240f2f5008f3ef4edd7fc6b3e | [] | no_license | tetrapus/Karkat | 7630374fe3d3ecea3706b29ccfa1ec08722db5fd | 6e898ce3e6814924314bd0106b1b844adced7258 | refs/heads/master | 2021-01-17T08:55:42.857753 | 2017-10-31T03:51:07 | 2017-10-31T03:51:07 | 9,131,639 | 9 | 10 | null | 2023-06-28T11:38:30 | 2013-03-31T15:01:06 | Python | UTF-8 | Python | false | false | 1,381 | py | import threading
from . import services
from . import irc
from . import text
from . import dcc
from . import images
from . import files
from . import throttle
from . import database
# Taken straight from the xchat source. Thanks, xchat!
rfc_tolowertab = {'A': 'a', 'G': 'g', '\\': '|', '^': '~', 'D': 'd', 'C': 'c', 'T... | [
"joey@tetrap.us"
] | joey@tetrap.us |
42fed63039e8e6390da8ccfcffd357ec6875fbb3 | 08aec07b5db889e586a56e36efea31c21c5695f2 | /day009/ex56.py | 9e14fad93694867afc15eb03ad6e7d9908ee1a76 | [] | no_license | nileshnegi/hackerrank-python | 7bb19929d2b963f02b37259c06b893c6520f33dc | 0d2ab9ee40156e81b568ab4d5a6d5cd4f6ca7385 | refs/heads/master | 2023-01-07T07:20:44.859336 | 2020-11-11T14:30:21 | 2020-11-11T14:30:21 | 279,877,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """
Introduction to Sets
Ms. Gabriel Williams is a botany professor at District College.
One day, she asked her student Mickey to compute the average
of all the ```N``` plants with distinct heights in her greenhouse.
"""
def average(array):
array = set(array)
return sum(array) / len(array)
if __name__ == '__... | [
"nilesh_negi@yahoo.co.in"
] | nilesh_negi@yahoo.co.in |
f2e42d00a9c9ec787e590be61a586dcb7a5ca218 | 938645067e93c08e8c4f2bf26a03565e0dc9002b | /filter/particle_filter.py | bb8b15b5700119d309c42c3cf2e1186bc15661ed | [
"MIT"
] | permissive | kolaszko/particle_filter | 51d584e90d78a3837a21dad1025dc8550c93c7fd | 9fedcee5ef2eb00a1fa85398327121e3df53f94c | refs/heads/main | 2023-02-27T17:51:39.468016 | 2021-02-04T11:12:56 | 2021-02-04T11:12:56 | 335,359,281 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import abc
class ParticleFilter(abc.ABC):
@abc.abstractmethod
def resample(self):
pass
@abc.abstractmethod
def predict(self):
pass
@abc.abstractmethod
def update(self):
pass
| [
"mikolaj.lysakowski.bk@gmail.com"
] | mikolaj.lysakowski.bk@gmail.com |
0a86e4fc0405ed8ccd273d8afd97faa2407ff8a0 | 1f9f0f53555a32417cd4f8a84ca65b766b7b5230 | /sequence_operations/nucleotides_and_complements.py | 256313ac7ac21c94612ccff312c05ba9636c9dd5 | [] | no_license | AlexThePav/biopython_tutorial | 56044ca924e04fbce545cb712efa4fb5e23050fd | ed8950ba0e199498340c54e8dc5eba0b0cc7b69d | refs/heads/master | 2020-05-27T11:28:49.980694 | 2019-06-06T15:58:38 | 2019-06-06T15:58:38 | 188,601,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from Bio.Seq import Seq
from Bio.Alphabet import IUPAC
my_seq = Seq("GATCGATGGGCCTATATAGGATCGAAAATCGC", IUPAC.unambiguous_dna)
print(repr(my_seq))
print(repr(my_seq.complement()))
print(repr(my_seq.reverse_complement()))
print(repr(my_seq[::-1])) | [
"alexandrupavilcu@gmail.com"
] | alexandrupavilcu@gmail.com |
f5aa93af1b204622e971696dced1aaeadd31c668 | 9b7ccf0deba84b8d53efcd42d407a7650feb1848 | /djangoAnswer/djangoAnswer/manage.py | dc86f99c714f93995a3a750e48089906ae5e7f68 | [] | no_license | Ryu-Morimoto/Django-Training | 37ba72232714164b992f333630172d638a91238f | 3e5a1a4501e2bb04a841f8ae7b3155ef204192eb | refs/heads/master | 2022-12-10T00:26:46.832692 | 2020-01-21T04:29:55 | 2020-01-21T04:29:55 | 298,179,922 | 0 | 0 | null | 2020-09-24T05:42:46 | 2020-09-24T05:42:45 | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoAnswer.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"hukusuke1007@gmail.com"
] | hukusuke1007@gmail.com |
5c28ac9cbfe8f5ad592a4cfcd48b4f8f7a649334 | 3553129c1ddef3cab5f4aa7670c8c2f7dc970884 | /GuardCam_Test.py | b092b2dc7896273bc44b396a53586454c046a853 | [] | no_license | kichichoi102/GuardCam_HackATL | f979d8f3f00d6f451fb8744d494955af6deb0ea0 | f70f6ecc1abd9b3b74b46524dd68c3e43cfb6e29 | refs/heads/main | 2022-12-23T13:45:14.721945 | 2020-10-04T03:51:43 | 2020-10-04T03:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | import os, io
from google.cloud import vision_v1
import pandas as pd
request = vision_v1.GetProductSetRequest(name="name")
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r'###Directory to Google Cloud Key#####'
client = vision_v1.ImageAnnotatorClient()
file_name = "offenders1.png"
image_path = f'.\Images... | [
"noreply@github.com"
] | noreply@github.com |
9bdbd72fc4ed1a170536032760d6ca6dc7f9be45 | f4133969204cdc43719dd9da6edd1e438bc94d29 | /feb15/r1.py | bce2e6cae9073fd780db27e8cf61b782e909b185 | [] | no_license | elake/inclass | 305def75f832c963cfb0bfc12c2f150481e02903 | f64a1d93aff317af2b79d64ed64d2f0eecac8764 | refs/heads/master | 2021-01-20T11:23:34.937770 | 2013-04-03T23:51:31 | 2013-04-03T23:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | while True:
x = input()
print(x)
| [
"cmput296@ubuntu.(none)"
] | cmput296@ubuntu.(none) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.