blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4755926cfff3216ab285a58a49e8ac2af920625f | 6fdb4a1a7ecb68dcddce8b03cb325578aaef3b33 | /2013-02-02/old_library/summing_subsets.py | a77f9d6dab09542dbf25e3e2d8652b5517522282 | [] | no_license | lowrey/checkio | 19e62bf9383bb21a069bc782a99bbe0e2dcf09d2 | be0090a4d444648b2295ee088bce0c0e2b4e190d | refs/heads/master | 2021-01-23T12:05:17.214951 | 2014-06-09T03:34:50 | 2014-06-09T03:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | def checkio(n):
'''
Let G(S) denote the sum of the elements of set S and F(n) be the sum of G(s)
for all subsets of the set consisting of the first n natural numbers.
For example, F(3) = (1) + (2) + (3) + (1 + 2) + (1 + 3) + (2 + 3) + (1 + 2 + 3) = 24.
Given n, calculate F(1) + F(2) + ... + F(n)
... | [
"lowrey@server.fake"
] | lowrey@server.fake |
c44e31915ea2575dc522eb49e10a41f4cfbe1772 | 308d75172c81bddb45c82429e4ddb3e09a3d220e | /01-OpencvPythonTutorial/ch22/06-hist-normalized.py | 2040ee82d34de1984caff9ba18df6ac7a162de4c | [] | no_license | Damon0626/OpenCV3ForBeigner | 956f2163249b5a3d1426089e3650695467a0427f | b3e8c5c201b6adabe067c9f2d1f614d93dcef447 | refs/heads/master | 2020-04-04T16:49:32.806739 | 2019-02-21T13:54:12 | 2019-02-21T13:54:12 | 156,095,139 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*-coding:utf-8-*-
# @Author: Damon0626
# @Time : 18-12-16 下午11:25
# @Email : wwymsn@163.com
# @Software: PyCharm
import cv2
import numpy as np
import matplotlib.pyplot as plt
image = cv2.imread('contrast75.png')
hist, bins = np.histogram(image.flatten(), 256, [0, 256])
cdf = hist.cumsum() # 累积分布
cdf_mormalized... | [
"2404448093@qq.com"
] | 2404448093@qq.com |
b49482817895ed4364111760e2e669ad95ba46db | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/scipy-master/scipy/cluster/tests/test_hierarchy.py | 84de6b3e57d6f535499c88e97ebd502ab81d922a | [
"MIT"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,971 | py | #! /usr/bin/env python
#
# Author: Damian Eads
# Date: April 17, 2008
#
# Copyright (C) 2008 Damian Eads
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copy... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
efa1bf081f157d7e08c578608723aab9760247b8 | 25278aa3c82ccb67fa8e6afc049fa3dc77d6baf6 | /ENV/lib/python3.6/heapq.py | 19ad9faf6d40e0e10f4644c661174c5ab5e41330 | [] | no_license | chianhenglee/NTU_NBD_multi-page | 8e529517c34cbccffc71e7c32e2110227f429852 | ee7e1ae070fd9ceecb5b66579d52719e823cf277 | refs/heads/master | 2023-01-08T21:06:37.596071 | 2018-11-19T07:10:36 | 2018-11-19T07:10:36 | 157,572,731 | 0 | 0 | null | 2022-12-26T20:50:25 | 2018-11-14T15:50:53 | Python | UTF-8 | Python | false | false | 45 | py | /Users/cl58/miniconda3/lib/python3.6/heapq.py | [
"chianhenglee@gmail.com"
] | chianhenglee@gmail.com |
6d137525bb523fe09492cfcbd843b3bf0d506b8e | 44f3a427263d51e0bb0e0fdc4489698bdede4245 | /code/python/solar_system_gravity.py | 8c45b307ac43d3f1eac86e5eb9f411d0b41e9e7f | [] | no_license | ThomasKundera/fedb | 0afab1a26ec58b35e53f4c7eb0fca7401b33df3a | e71b480c8dcb29f9443705d8a8bbc70825ce3741 | refs/heads/master | 2023-08-31T11:27:25.261644 | 2023-08-21T19:45:23 | 2023-08-21T19:45:23 | 588,850,816 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Units
# Distance
m=1.
km=1000.*m
UA=149597870700*m
# Time
s=1.
Y=31556925.98*s
# Mass
kg=1.
#derivatives
N=kg*m/(s*s)
# Constants
G=6.67E-11*N*m*m/(kg*kg)
# Wikipedia
# Demi-grand axe (UA) Excentricité Inclinaison (°) Période (années) Mass (kg)
planetsArray=[
["M... | [
"thomasked69@yahoo.fr"
] | thomasked69@yahoo.fr |
9a00c936f07468dcfad0916355bce60cd36cf17d | 209b1eb07d4eac15318bee6415a3701252abc272 | /Functions/update_stocks.py | f94dc4f625d891f8d0db3728fab0ee4e953a461d | [] | no_license | CodeDropper/PMS | 0bb1d41a99c49bde8846cb92d2752a9323b3b92f | 921c18873185e628ef4ec8d53224851b884877fd | refs/heads/main | 2023-06-21T05:10:36.612534 | 2021-08-05T08:02:11 | 2021-08-05T08:02:11 | 392,950,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | def createConnection():
import mysql.connector
connection=mysql.connector.connect(host='localhost',
user='hb',
passwd='mysqluserpassword',
database='pms',
auth_plugin='mysql_nati... | [
"noreply@github.com"
] | CodeDropper.noreply@github.com |
f1df347ea415e48c82664af4a4070506e7d10cc3 | a71259865e3dadd2ee43952d822ab9fd716d0dfb | /exps/pytest_exps.py | e30d4e3d958f15cb981e40d245e45f56975282ca | [] | no_license | GlebMorgan/PyUtils | f4c5ea15c45acc8dc7ff01505a7f7c6e25cad2c3 | cffaebcce6570cbd4bd6b1212067afb0561fe10e | refs/heads/master | 2023-02-01T06:35:11.270221 | 2020-12-16T21:52:51 | 2020-12-16T21:52:51 | 283,730,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,512 | py | from pytest import fixture, mark, lazy_fixture
# ————————————————————————————————— Fixture parametrization via @fixture(params=...) ————————————————————————————————— #
fixture_params = ((1, 0), (2, 5))
@fixture(params=fixture_params, ids=lambda par: f"{par[0]} and {par[1]}")
def fixture_with_params(request):
p... | [
"glebmorgan@gmail.com"
] | glebmorgan@gmail.com |
85e05e3c33ca86dc0280e5c8edbaa2ac143212c9 | 6930e9d3372e83cf43a47ae8ad165f83a218aee2 | /capture/noworkflow/now/utils/bytecode/f_trace.py | 93e8b89a211b8519aa8d55ca65e360e7e73c8d43 | [
"MIT"
] | permissive | hugobowne/noworkflow | 02ab47a8b3377ee56f1e7c4552a8dbcb3d15e5f0 | 333cbe274348428f1a9514fe81406f8416036845 | refs/heads/master | 2021-01-17T20:27:16.524245 | 2015-11-18T23:53:28 | 2015-11-18T23:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | # Copyright (c) 2015 Universidade Federal Fluminense (UFF)
# Copyright (c) 2015 Polytechnic Institute of New York University.
# This file is part of noWorkflow.
# Please, consult the license terms in the LICENSE file.
""" Define f_trace related interpreters and functions """
# pylint: disable=R0902
from __future__ impo... | [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
746c0b57bed4dd0b08863afd6dd9a3dbc999cc87 | 62f2abe3d738a7f06cbadb432ce6abab80b6f1f8 | /07_Python_projects/website_scanner/whois.py | 243f34c2cccb43f9d12fd2ba0e7580f84fb8940a | [
"MIT"
] | permissive | udohsolomon/LearnPython_Class | 042e26b5322c24eead218be8d198f84d66760ff1 | 4c5073d12d3c5fbb4d61bb506b640942cce4aecf | refs/heads/master | 2020-04-11T20:44:50.843121 | 2019-03-08T03:09:03 | 2019-03-08T03:09:03 | 162,081,210 | 1 | 16 | null | 2019-01-23T13:48:42 | 2018-12-17T05:52:35 | Jupyter Notebook | UTF-8 | Python | false | false | 178 | py | import os
def get_whois(url):
command = 'whois ' + url
process = os.popen(command)
results = str(process.read())
return results
print(get_whois('augeosai.com')) | [
"solomonlazio@gmail.com"
] | solomonlazio@gmail.com |
a69b2292889bf83dff62c0d9477259abd9002067 | 0d152a0363d52558549f126609ce460aedbe798a | /Programs & Challenges from Python for beginners book/Chapter 2/quoteManipulate.py | e517baba1ae846884d62463520f5269e81035867 | [
"MIT"
] | permissive | Ry09/Python-projects | 04acdf349c6a785a387cc64cac13f218cc6380d2 | 0987bb39149b5f02f1ac5684262e2469ffe6be31 | refs/heads/master | 2021-01-10T15:28:42.025307 | 2017-03-13T01:44:36 | 2017-03-13T01:44:36 | 45,318,778 | 0 | 0 | null | 2017-03-13T01:44:36 | 2015-10-31T21:20:36 | Python | UTF-8 | Python | false | false | 491 | py | #Quotation Manipulation
#quote from IBM Chairman, Tomas Watson, in 1943
quote= "I think there is a world market for maybe five computers."
print("Original quote:")
print(quote)
print("\nIn uppercase:")
print(quote.upper())
print("\nIn lowercase:")
print(quote.lower())
print("\nAs a title:")
print(quote.title())
... | [
"Ry09@users.noreply.github.com"
] | Ry09@users.noreply.github.com |
d03cfc54549a9351e06314cd40d6c21f91fc4c0c | 37e33587feec6006a8a134b80a1a961470564015 | /ecommerceproject/store/models.py | e45a5ff659ecc0a21810562b20f10ef9745d91aa | [] | no_license | gmdavis1/gocode-samples | cf388d74aa39035fb3b6364fa02857f09f375a68 | fc2dde82730522b1d4cb83bb8d59987144e02a7c | refs/heads/master | 2021-05-29T22:59:03.520759 | 2015-08-07T19:58:01 | 2015-08-07T19:58:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | from django.db import models
# Create your models here.
class Order(models.Model):
status = models.IntegerField()
status_legend = {1: 'in cart', 2: 'ordered'}
username = models.CharField(max_length = 128)
def get_status(self):
return self.status_legend[self.status]
class Product(models.Model)... | [
"gmdavis1@gmail.com"
] | gmdavis1@gmail.com |
84272d0c64a8128d488da1959bb8af7afbd979c7 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good807.py | 55e1c22bfa14474792c197d5bc8d4af90bf8e645 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import stringprep
import difflib
import math
import array
import textwrap
import datetime
import readline
import random
nterms = 618
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
8ee29ba37af77bfdff3612f2e215b1e79ece3c94 | 8b57edd4f28d4d68093561f96692948dfa43de2a | /Clase 1/desafio2.py | dd5f55996aec9382df9c4edac68b2a0de01f42eb | [] | no_license | priscilafaliani/Seminario-de-Lenguajes-2021 | 40ce5a143fd1d2283ff2862ff4c5de97cd7c932e | c2e8cf580d5733cb67f1e7534766e75069977bb2 | refs/heads/main | 2023-04-14T04:54:13.422835 | 2021-04-16T07:32:16 | 2021-04-16T07:32:16 | 350,755,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # ingresar un número desde el teclado e imprimir si es múltiplo de 2, 3 o 5
num = int(input('número: '))
if num % 2 == 0:
print('multiplo de 2')
elif num % 3 == 0:
print('multiplo de 3')
elif num % 5 == 0:
print('multiplo de 5') | [
"priscilafaliani@gmail.com"
] | priscilafaliani@gmail.com |
a355eeec111864ef7af555c51e8460f11f29c365 | 0581988cad7e0ea62a638d551548e409af1e5dc1 | /20200529/UI_PPT2PDF/myUI_ppt2pdf.py | cc3732bbc0196e33f92063a50d906881b836f73f | [] | no_license | Aimee888/python-20200513 | 7c1dff7d7f0fdea08e12735efeb2e889fedeee10 | 578c388be5582dc7f1556f95168adf0399b7ea1f | refs/heads/master | 2023-01-06T10:21:35.014780 | 2020-11-03T01:07:04 | 2020-11-03T01:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
# _*_ coding: UTF-8 _*_
"""=================================================
@Project -> File : six-dialog_design -> myUI_ppt2pdf.py
@IDE : PyCharm
@Author : Aimee
@Date : 2020/5/29 17:11
@Desc :
================================================="""
import sys
from PyQt5.QtWidgets imp... | [
"961745931@qq.com"
] | 961745931@qq.com |
03e265ef4512ff14b625e27be52beea9494fcc97 | 5b9e4f57a796ac3ab17fcf1d843e4b370f22ce73 | /zhihu.py | d328b7c0c3d2ea23d367771ee5b2fa27de4808f4 | [] | no_license | DivineH/MyZhihu-Helper | 7a8fe381bf460f26c706d62656a5695fe2fef98a | 4bb925792622f6aa593d88ca11fb0157ac0d6095 | refs/heads/master | 2021-01-18T19:52:07.601216 | 2017-04-16T06:23:13 | 2017-04-16T06:23:13 | 86,917,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
# 放置于首位
import sys # 修改默认编码
import os # 添加系统路径
from src.main import ZhihuHelper
zhihuHelper = ZhihuHelper()
zhihuHelper.start() | [
"2414767656@qq.com"
] | 2414767656@qq.com |
7ef42a92ae39b24782fb94eaa671bb5de5c6651c | 1676c903661f762982a272c1d7599a3f963cb5f9 | /repos/system_upgrade/el7toel8/models/opensshconfig.py | ad786d22df7ef41836614fcf4ddac241674b821a | [
"Apache-2.0"
] | permissive | NetworkManager/leapp-repository | 6ceafa62c4b24e08c96574ea6595cbc795c8b6d7 | 0b043ee7f6d0989f11e5a35491fdcb5e7eb634a6 | refs/heads/master | 2023-02-08T16:29:57.582064 | 2019-11-25T12:50:16 | 2019-11-26T11:15:03 | 224,422,560 | 0 | 0 | Apache-2.0 | 2019-11-27T12:09:48 | 2019-11-27T12:09:47 | null | UTF-8 | Python | false | false | 1,131 | py | from leapp.models import Model, fields
from leapp.topics import SystemInfoTopic
class OpenSshPermitRootLogin(Model):
topic = SystemInfoTopic
value = fields.StringEnum(['yes', 'prohibit-password',
'forced-commands-only', 'no'])
in_match = fields.Nullable(fields.List(fields.S... | [
"vsokol@redhat.com"
] | vsokol@redhat.com |
21305a05b0d16995beb47fb0437db468320c7458 | 87280e2156919618004eff4c55a3ee7b64cd5795 | /cse331/proj07/Main7.py | ab0c4c5aa8fec6295ae45974f36ecbf46662bae5 | [] | no_license | ithomps/school-backups | a2ef0823568ff55426290853095a6a90fa2cab9c | a2ee052631d61d402fa1dc395aa8f08c058ecdf0 | refs/heads/master | 2020-09-28T09:04:00.269866 | 2019-12-08T23:08:21 | 2019-12-08T23:08:21 | 226,742,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from Lis import *
def read_file(filename):
with open(filename, 'r') as reader:
return [word for line in reader for word in line.split()]
def main(file):
seq = read_file(file)
lis = find_lis(seq)
print('length:', len(lis))
print(lis)
if not verify_subseq(seq, lis):
print('War... | [
"noreply@github.com"
] | ithomps.noreply@github.com |
7012967cb00baae4f581bb049013311b240da290 | 61bc53ec90d92aece91753ec5ec9d25e0879a1e2 | /content/pythia/pythia/tasks/vqa/textvqa/dataset.py | c4bc2ee38892409d39789dc107a8a061951eb380 | [
"BSD-3-Clause"
] | permissive | aluka1994/textvqa | 08a16c9b21ea9c5eca05f5d4d1763c190d2d7275 | 694cb2be08def519ba73be78e34664afa2c607b5 | refs/heads/master | 2021-05-26T23:44:21.973827 | 2020-04-08T22:05:58 | 2020-04-08T22:05:58 | 254,190,630 | 0 | 0 | MIT | 2020-04-08T20:14:11 | 2020-04-08T20:14:10 | null | UTF-8 | Python | false | false | 1,047 | py | # Copyright (c) Facebook, Inc. and its affiliates.
from pythia.tasks.vqa.vizwiz import VizWizDataset
from pythia.utils.text_utils import word_tokenize
class TextVQADataset(VizWizDataset):
def __init__(self, dataset_type, imdb_file_index, config, *args, **kwargs):
super().__init__(dataset_type, imdb_file_i... | [
"anandkumar@instance-1.us-central1-a.c.andromanit.internal"
] | anandkumar@instance-1.us-central1-a.c.andromanit.internal |
f772e0ba9394c4d90885630e1ac201f0af5188a2 | a961e902b49c4787d839b42168927832e71347c4 | /src/SumTree.py | ce51ce2ee83e411b717ae99c120b97faa6519242 | [] | no_license | ptolmachev/Collaboration_and_Competition | 716a8be24f944dedf1d54f5b2a0386bf222e417b | 6606af223eb82319f07da636f4cfccadec1f7b4f | refs/heads/master | 2020-04-07T19:10:59.300224 | 2018-12-03T06:23:55 | 2018-12-03T06:23:55 | 158,638,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | import numpy as np
class SumTree():
'''
Tree-like data-structure to make sampling, update, add adding a new element into the structure for the logarithmic time
'''
def __init__(self, capacity):
self.capacity = capacity # maximum number of stored elements
self.tree = np.zeros(2 * capac... | [
"betadecay1993@gmail.com"
] | betadecay1993@gmail.com |
0889e4b5bf0fb41b45f187407034409007530b53 | 4ebf8204f3c8bcfdd8c296068f2154dc21fbfebb | /lifelong/datasets/permuted_dataset.py | 3b20b2a5a8a414e06f83ba74b512113eb652b8b9 | [] | no_license | ain-soph/lifelong | 10128c48b96af06c761b7bbfb2d4aee55361d92f | a420385ffd67814ed0e24fb9590c48ad85f862bf | refs/heads/master | 2023-03-01T23:26:49.303199 | 2021-02-05T02:11:19 | 2021-02-05T02:11:19 | 325,872,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | #!/usr/bin/env python3
from .lifelong_dataset import LifelongDataset
from trojanzoo.environ import env
from trojanzoo.utils.data import TensorListDataset, dataset_to_list
from trojanvision.datasets import ImageSet
import torch
import torch.utils.data
import numpy as np
class PermutedDataset(LifelongDataset, ImageS... | [
"ain-soph@live.com"
] | ain-soph@live.com |
78bf4b66b76ead27c58b57a6ee28fb64948d0173 | 6bb12d58edf19f5e06cfeda67bef8aa372a26125 | /collection/tencent/p1.py | 53579bc066a48dc126250c4f5bddcef55c578c5d | [] | no_license | eguilg/coding-interview-guide | ca06fcf4077b8b75a1d321e538732befcd79e4ea | 88f92648f2a4ecc940bb0baea44ca95fba746f91 | refs/heads/master | 2020-06-21T01:38:02.518013 | 2019-09-22T01:54:34 | 2019-09-22T01:54:34 | 197,312,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | n, k = list(map(int, input().split()))
heights = list(map(int, input().split()))
ans = 0
cur_h = 0
for i in range(k):
cur_h += heights[i]
min_h = cur_h
for i in range(k, n):
cur_h += heights[i] - heights[i-k]
if cur_h < min_h:
min_h = cur_h
ans = i-k+1
print(ans+1)
| [
"artisan6g@outlook.com"
] | artisan6g@outlook.com |
bb007c1d256afa44a338f244e95a208c91178b9d | 60509c5e1956cb64d0220e9fc4542db7ef18bbf9 | /data_processor/migrations/0015_auto_20160808_1832.py | 2862cfc8066f418d652052fdf3ed5cc011d01fdf | [] | no_license | Nemesisesq/streamsavvy_dataprocessing | 18989378c8aa6c5a250449e74d93d64303874092 | 6c814818c0bac27c99ad4a5c8799648a5d9e637a | refs/heads/master | 2021-06-15T02:38:32.982171 | 2017-01-17T16:38:49 | 2017-01-17T16:38:49 | 61,290,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-08 18:32
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('data_processor'... | [
"Nem@Carls-MacBook-Pro.local"
] | Nem@Carls-MacBook-Pro.local |
673df8917fcffa493359510bf3037a32df3e67b3 | 70bc77336e4544031ad7d7d29a2e964ef2626076 | /ui/RepositoryTreeObject.py | 981473acc6c301a58ddafa660cc03bbf33b220b2 | [] | no_license | DronMDF/vanadis | 9af7a8c9281bf0eb17df593f5c9fc9345e474612 | de692207bbd127c5a9952e3144653492a0ba969f | refs/heads/master | 2020-04-17T08:11:18.411429 | 2016-12-21T20:50:05 | 2016-12-21T20:50:05 | 66,539,179 | 1 | 0 | null | 2016-12-21T20:50:06 | 2016-08-25T08:20:03 | Python | UTF-8 | Python | false | false | 532 | py | from pathlib import Path
from ui import RepositoryId
class RepositoryTreeObject:
''' This is a tree object (blob or tree) '''
def __init__(self, entry, prefix, repo=None):
self.entry = entry
self.prefix = prefix
self.repo = repo
def id(self):
return RepositoryId(self.entry.id)
def path(self):
return s... | [
"dron.valyaev@gmail.com"
] | dron.valyaev@gmail.com |
e96bc15edcd18b498f1eb158cee26552db12498c | 2be17508626867749f2be47346ab3b8feca3f817 | /a5/ip2asn.py | be15d4066869eb9fe019549e8023092f5894cbab | [] | no_license | rettigs/cs311-operating-systems | 087402ba8967b98ad2314371b8cfb29057ebfab4 | 024ca4e250b6e6dbe728c5d7a880a4a56d3b7e75 | refs/heads/master | 2021-03-12T20:14:42.485511 | 2014-03-19T19:50:04 | 2014-03-19T19:50:04 | 30,707,453 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | #!/usr/bin/python
import os
import sys
import getopt
import socket
import re
def main():
# Defaults
debug = 0
ip = '127.0.0.1'
port = 54321
infile = None
outfile = sys.stdout
# Parse arguments
try:
opts, args = getopt.getopt(sys.argv[1:], "da:p:i:o:q:h")
except getopt.GetoptError... | [
"seanrettig@gmail.com"
] | seanrettig@gmail.com |
df48ff50d8958708c5c41fd317a1f7cab90c3ffd | b9686758a441c250e3625deb487e94eb6fb1c591 | /twisted_proto_client.py | 0c52fe02e7780495235045d60c5d5cc82054b359 | [] | no_license | MachineRunning/twistedExperiments | 501acfe3c2218b909f1c8e177e7fa77fb80e049c | 72ac88bf3670c0130bf3ce37ed6117112abae149 | refs/heads/master | 2020-04-26T11:32:50.161726 | 2015-07-17T06:53:25 | 2015-07-17T06:53:25 | 39,239,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,868 | py | from twisted.internet.protocol import Protocol, ReconnectingClientFactory, Factory
from sys import stdout
import sys
from twisted.internet import reactor
from twisted.internet import stdio
from twisted.application import internet
### https://twistedmatrix.com/documents/current/core/howto/clients.html
# bugjar twiste... | [
"recneps_running@hotmail.com"
] | recneps_running@hotmail.com |
2f52d56babbfee5ac5d6aac0cbe755517a480448 | 2e336a1c8876f17588e8144114b2b1bacf4d4f66 | /fde_cmp/old_src/old1_py_source/parse_xde.py | 941d9f4bc1de0d9651be4b8908034fd6b426a5b6 | [] | no_license | darlyz/FelacGenerator-py-version | f67c7032f04d587e34f9e538d3dce4377fd2954b | bcd47ade1fa95182a0ff9363b6a49b45bc746d79 | refs/heads/master | 2020-05-29T14:30:44.451730 | 2019-08-30T07:37:59 | 2019-08-30T07:37:59 | 189,195,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,890 | py | '''
Copyright: Copyright (c) 2019
Created: 2019-4-15
Author: Zhang_Licheng
Title: parse the xde file and check it
All rights reserved
'''
import re as regx
def parse_xde(gesname, coortype, keywd_tag, xde_lists, list_addr, keyws_reg,file):
# 0 prepare
shap_tag = regx.search(r'[ltqwc][1-9]+',ge... | [
"darlyz@163.com"
] | darlyz@163.com |
f51aef49f07d3052cb15691b3b84201f5f648e98 | b2643444ade5d54529a2e81398e23ba18eddceaf | /dglgo/dglgo/cli/apply_cli.py | c097d21a91bf9b2c08b94b6ee17da22f20aedf4f | [
"Apache-2.0"
] | permissive | CuiDachao/dgl | 49a3644180201deae61c59fe25a1cc05e1090883 | 1947d87dd77eabe5893e277a52ecf0f9eb2f1063 | refs/heads/master | 2022-09-10T06:51:45.344189 | 2022-08-23T04:08:32 | 2022-08-23T04:08:32 | 257,187,311 | 0 | 0 | Apache-2.0 | 2020-04-20T06:07:35 | 2020-04-20T06:07:33 | null | UTF-8 | Python | false | false | 601 | py | from ..utils.factory import ApplyPipelineFactory
import autopep8
import isort
import typer
import yaml
from pathlib import Path
def apply(
cfg: str = typer.Option(..., help="config yaml file name")
):
user_cfg = yaml.safe_load(Path(cfg).open("r"))
pipeline_name = user_cfg["pipeline_name"]
output_file_... | [
"noreply@github.com"
] | CuiDachao.noreply@github.com |
a052841bb1d2949bf555e862f60aaec98458a5e2 | f1c7d37fa3de5e2013999f511437d8d1997f4063 | /week6/pyqtcss/dark_blue.py | 1145b5ea969bd90df10c5dcc94b1606619760257 | [] | no_license | embed-Rayn/PyQt-fast-making-GUI | 1555cd7481fd201df01585dd3e7e2037f5f6380f | 51db441e3f76da7b7c382e8bad8e5d30e548525b | refs/heads/master | 2021-01-04T08:03:16.575739 | 2020-04-16T07:25:17 | 2020-04-16T07:25:17 | 240,457,681 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173,529 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.13.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x12\xe4\
\x00\
\x00\x66\x71\x78\x9c\xcd\x1d\x6b\x73\xdb\x36\xf2\xf3\xe9\x57\xa0\
\xce\x97\x38\x... | [
"57181674+embed-Rayn@users.noreply.github.com"
] | 57181674+embed-Rayn@users.noreply.github.com |
8b3f63549d00e8cea33abf01740c0f6a261dfde4 | 053b653acb6dae48c9fb02334388b6abd6068682 | /application.py | beb1d15284c8cb4354b5fddc47100d89cc75bd2a | [] | no_license | richardxu1983/ElectronicHealthy | 43430748c5924e98d26f92a747af9404321e423d | aff9b697c3fb60d647a87d8a53d68cfb6df9c35f | refs/heads/master | 2021-01-11T17:27:51.505888 | 2016-08-07T03:01:49 | 2016-08-07T03:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # coding=utf-8
import tornado.web
import os
import momoko
from url import url
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), "templates"),#设置静态页面路径
static_path=os.path.join(os.path.dirname(__file__), "statics"),#设置css,js文件路径
cookie_secret="qwsBnAr/SYude9L/uPmYEovG8H9rx07CsL+Ep1/HA... | [
"2755289083@qq.comm"
] | 2755289083@qq.comm |
00eb3d4cabedd40827a975661786e96777cf1673 | 8963feb7f81c45de2ba56d4d6f5fdde1f41d4a33 | /im2mesh/onet_depth/config.py | 9f5a6c1a605c27dad1acfdf0749e392e4a450711 | [
"MIT"
] | permissive | AlexsaseXie/occupancy_networks | ae2fd48d67caf944f244b4baa4045496f3bc7920 | 972119ae7a7c9f782e1fc1df48a5b85b678edd31 | refs/heads/master | 2021-07-19T03:11:42.100464 | 2020-10-30T03:41:05 | 2020-10-30T03:41:05 | 225,619,537 | 3 | 2 | MIT | 2019-12-03T12:53:04 | 2019-12-03T12:53:04 | null | UTF-8 | Python | false | false | 9,150 | py | import torch
import torch.distributions as dist
from torch import nn
import os
from im2mesh.encoder import encoder_dict
from im2mesh.onet_depth import models, training, generation
from im2mesh.onet_depth.models import depth_predict_net
from im2mesh import data
from im2mesh import config
def get_depth_predictor(cfg):
... | [
"thss15_xieyw@163.com"
] | thss15_xieyw@163.com |
e33c26e2e48f211e32598cb972cc2afe7b3e5be1 | 3ec18f7e0f6ba3739fa2a2f6eb8d5ff8a60a6f20 | /Closure and Decorators/closure.py | d1239b2ea7a73d365d135408907209d6b61d1249 | [] | no_license | devpatel18/PY4E | 740414d83b6caf94517760957fbb1b00eca5b6fd | fb887d0c4ad8175552d8e2a5b8e49c6f46e4697c | refs/heads/master | 2023-08-24T02:10:31.520198 | 2021-10-31T13:13:55 | 2021-10-31T13:13:55 | 423,085,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | #https://www.programiz.com/python-programming/closure
#A function defined inside another function is called a nested function. Nested functions can access variables of the enclosing scope.
#In Python, these non-local variables are read-only by default and we must declare them explicitly as non-local (using nonlocal... | [
"dev42a@gmail.com"
] | dev42a@gmail.com |
f73e15bf4139a0bbb0af8ffab5f9a987372e6af4 | eb08685af92e47af6f7339035b2f3e3313c2899c | /sudoku_digits.py | 5e0745c06937ca728f268a183a66f72c1e5053ed | [] | no_license | Paarth-Jain/Sudoku-Solver | da16782760ce58ace63e93b74553a3db55f22729 | 7e8c85c8dd4c664112c1aa9f63220fe74dd8afc6 | refs/heads/master | 2022-10-08T05:22:54.424814 | 2020-06-07T17:24:56 | 2020-06-07T17:24:56 | 270,220,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | py | import cv2
import copy
import numpy as np
import os
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
from keras.preprocessing.image import ImageDataGenerator
from keras.utils.np_utils import to_categorical
from keras.layers import Dense
from keras.optimizers import Adam
from keras.... | [
"noreply@github.com"
] | Paarth-Jain.noreply@github.com |
348755d702fc5ac9724209d342cc23c5b0fd2979 | bb97b50ebab71bd78e4c2bdcb08ee32297c36ee9 | /visa_test.py | e99f52e4999f417a4eb91266fff5296d3ff77dca | [] | no_license | tblawson/HRBC | ed0c52d15c63181a7e5950713c3ca3333020a29c | b68568e44d6d15b00423cde276cbb252dcfa8a36 | refs/heads/master | 2022-09-29T07:09:07.077268 | 2022-07-27T21:59:46 | 2022-07-27T21:59:46 | 87,987,616 | 0 | 0 | null | 2017-09-13T02:14:09 | 2017-04-11T23:14:13 | Python | UTF-8 | Python | false | false | 885 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 27 13:34:33 2015
@author: t.lawson
"""
import visa
import time
t = 0.1
RM = visa.ResourceManager()
print RM,'\n'
i = RM.open_resource('GPIB0::22::INSTR') # 'GPIB0::22::INSTR','ASRL5::INSTR'
print 'Opened session',i.session,'\n'
i.write_termination =... | [
"noreply@github.com"
] | tblawson.noreply@github.com |
366f02f1a2816f1244629e3f11aa05c8cac98ad0 | 0d4097a56bb0c6c4a6edd51a78befcda1788cfc1 | /server/app/console/commands/__init__.py | 11754bafe9ac9005041474773373a0e8dd3dd361 | [] | no_license | euclid1990/instaface | 6d5944364e975afa8b42dd2e0a3e184a8ff7286a | 43d1be48d77f0dbbbb2c3611360244057cb90b07 | refs/heads/develop | 2022-12-11T11:37:55.391203 | 2017-11-08T09:46:46 | 2017-11-08T09:46:46 | 101,125,345 | 4 | 1 | null | 2022-12-07T23:47:00 | 2017-08-23T01:51:00 | Python | UTF-8 | Python | false | false | 80 | py | from .seed_command import SeedCommand
from .worker_command import WorkerCommand
| [
"euclid1990@gmail.com"
] | euclid1990@gmail.com |
8be2f70f024036be4e4f7cc27126fd302cb87bd6 | a4fd9f5d765351fb771455db18290e48affc3747 | /password_generator/migrations/0001_initial.py | 6cba7dcf9ebd26fb59d017987760ec2b182b24db | [
"MIT"
] | permissive | rwgeaston/django-password-generator | a7aa9627c721b8a0f5ba66149d681c333f79da59 | 62607905bafc111802c61223a1c3c34aa927c9fc | refs/heads/master | 2020-03-28T18:50:35.512795 | 2018-09-15T22:03:23 | 2018-09-15T22:03:23 | 148,917,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # Generated by Django 2.0.6 on 2018-09-15 15:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Word',
fields=[
... | [
"rwgeaston@gmail.com"
] | rwgeaston@gmail.com |
0a440ca2304b5b85ac7be765ce40731eb7968d6e | 317b6dbc5d53a037268a6ca4983b1eb6ac2401d7 | /scratches/learning/learning_list.py | 52a6c4639c6dd2f4eec6b491c1970a5807dbfa97 | [] | no_license | xikapsy/learning | 6db9b8d84b97de1c74ff4078327d698dbef9ecbd | 71ff14510c027d0853aab9c039c35098c3ab1257 | refs/heads/master | 2023-05-27T05:07:49.527530 | 2019-12-09T08:29:42 | 2019-12-09T08:29:42 | 226,812,270 | 0 | 0 | null | 2023-05-22T22:35:08 | 2019-12-09T07:36:48 | Python | UTF-8 | Python | false | false | 288 | py | aList = [123,'123',234.213,['index','list']]
print(aList[0],aList[0:2],aList[3])
print(aList[3][1])
aList[0] = 321
print(aList)
a = 1,33.234,'13d','vsd'
print(a[0])
b = 1, #单元组需要添加‘,’
print(b[0])
b=(1,)
print(b[0])
#a[0] = sdf 元组不支持赋值
print(tuple(b))
| [
"476380800@qq.com"
] | 476380800@qq.com |
aad18d7a236ca45e76a8a2117574bf90f6006e48 | 4cfcecba71cd9b9c292b8c9b0fefb5c6dff62abc | /test/PR_test/unit_test/op/numpyop/univariate/test_contrast.py | c66f6a65efeb3b69670c7ce687a767893cfef4c0 | [
"Apache-2.0"
] | permissive | fastestimator/fastestimator | b186be549631b05c8471515df0a2d9eb4359c8c9 | b936d9272f3901dd0f49e01dd981f889caee9c5e | refs/heads/master | 2023-09-04T10:55:14.223435 | 2023-08-24T18:50:23 | 2023-08-24T18:50:23 | 178,290,396 | 83 | 62 | Apache-2.0 | 2023-08-24T18:50:24 | 2019-03-28T22:17:44 | Jupyter Notebook | UTF-8 | Python | false | false | 2,133 | py | # Copyright 2021 The FastEstimator Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"gaurav272333@gmail.com"
] | gaurav272333@gmail.com |
fd3e9d3a74cc896ead349afb4520114128eef17e | fa81f1c5039da7554277a87d334cbee675e91995 | /yelp/migrations/0002_userreview.py | 7f9ee9895e7e1142e55b6537075c7be7a23e96e6 | [] | no_license | hldai/labelel | b5eaaac5cef73ccf6941ffed474e8b544c76a944 | 87c36972d1d7f4c1b146c185bcdee5207c030b8d | refs/heads/master | 2020-12-30T13:39:45.673434 | 2017-07-09T06:20:32 | 2017-07-09T06:20:32 | 91,239,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-17 08:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yelp', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"hldai@outlook.com"
] | hldai@outlook.com |
a1980d87a7dc6fd471a8f2326f29180ca6a9e490 | d3e1632c916240838a9516da5cb80a355026063f | /tools/plot_const.py | 628312aa88b0cb2f95e083e6f9cf808239257e03 | [] | no_license | ul1234/test_tool | 384a083e1b011be2d04e552692a8ac4b1c492fc8 | 7b74f1b5719fdfb3447a0a3b1e7a34c47779abf6 | refs/heads/master | 2022-01-18T03:54:01.672681 | 2021-05-21T09:41:22 | 2021-05-21T09:41:22 | 89,684,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, re, sys
import numpy as np
import matplotlib.pyplot as plt
#filename = r'E:\03.Matlab\NR\data\nokia_10.txt'
#data_log_keyword = 'LOG_NR_L0_DL_SRP_PDCCH_PHASE_COMP_FFT_DATA'
def load_data_dsp_log(filename, data_log_keyword):
data_all = [];
with open(filena... | [
"unclelim@sina.com"
] | unclelim@sina.com |
1d8813e9a7aad155790fff79356a8c0f084eaeaa | da970654754deef5d24842362377b57aa2cf0d94 | /lists/migrations/0006_list_owner.py | f85d5de929dfe75abffb9d444eadce3f69555143 | [] | no_license | G000D1ESS/todo-lists-django | cde261390e8588b03939fa0a79a7980b5f2cf9f8 | 85ad8372ed586f5fbcf81aba66e2c620fb2c3b37 | refs/heads/main | 2023-08-17T09:08:20.931226 | 2021-09-28T16:23:17 | 2021-09-28T16:23:17 | 387,132,542 | 1 | 0 | null | 2021-09-28T16:23:18 | 2021-07-18T08:59:25 | Python | UTF-8 | Python | false | false | 604 | py | # Generated by Django 3.2.5 on 2021-09-27 21:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('lists', '0005_alter_item... | [
"62620930+G000D1ESS@users.noreply.github.com"
] | 62620930+G000D1ESS@users.noreply.github.com |
ae4e0612bd99cf3550d720c68f048a811ddad6a7 | e5f0dfe95d72f49ad164927420e107c70623e2a4 | /SimpleRDTProtocol/intermediate.py | 6d9453b0f4f4d4ecfc7d6ccd0b6bcc35fb4872da | [
"MIT"
] | permissive | fuchsteufelswild/MiniProjects | 7ccbee4e0243fc5b21e56c387e1780171c1db823 | 3b0a1e5018ae221525b0e1003eb13996f0f5c669 | refs/heads/master | 2020-07-16T17:21:10.318780 | 2020-02-20T08:46:45 | 2020-02-20T08:46:45 | 205,831,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | import socket
import threading
import sys
from utils import *
import time
class Intermediate:
def __init__(self, _ip, _port):
src_receive_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Receive messages from the source
src_receive_socket.bind((_ip, _port)) # Bind to its port, ip
... | [
"noreply@github.com"
] | fuchsteufelswild.noreply@github.com |
bd88a28726322d9e402e7e14401d7b7c2c0e8786 | 109ac2891c5af60cc0a5c9e988048315314014b3 | /Data Structure ZJU/printN2.py | 719f3203bd1e631382a9a080b659424415e69ebe | [] | no_license | francislinking/PTA-codes | 485c6019a458fa1705dde6f84a69b33c0bd7de81 | fea40800c6813300fe56f8b14f159d971b745a6b | refs/heads/master | 2021-07-10T14:50:16.643802 | 2021-05-02T02:16:35 | 2021-05-02T02:16:35 | 244,085,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 21 18:48:24 2020
@author: Deng Jie
"""
def printN( N ):
if N == 1:
print(1)
else:
printN( N-1 )
print(N)
n = eval(input())
printN(n) | [
"francis.linking@gmail.com"
] | francis.linking@gmail.com |
4578978e5d83afaaa5cd87ea5c95ba3be3b4ac3f | 6f005f0e6c0e0e408938cfd1debf510da8d2bc5f | /Exercice_23_Suite d’entiers.py | d7c1ba0704d9f5795b49e680fe510bf0b7637bce | [] | no_license | tsdiallo/Python_Exercices-2 | 53b9bbb390c9da06419552679940bfc044ac525d | 7951d3cfedade9f77a14e7170d83ed4c14088b42 | refs/heads/main | 2023-04-11T10:31:47.407164 | 2021-04-09T22:39:59 | 2021-04-09T22:39:59 | 356,414,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | n=int(input("entrer une valeur n"))
d=10
if (n==1):
print (n, "->", d)
else:
for i in range (2,n+1):
d=(d*2)+1
print (n, "->", d)
| [
"sadzioon123@gmail.com"
] | sadzioon123@gmail.com |
0a87c613070041cd6ca47ab39268421df5ed335a | f06680ed95c01f50f0b484ffa81a5baea022282d | /data/parse_wiki.py | 80f18cd87ef5eb7edc85c99419d97b5428901daf | [
"MIT"
] | permissive | mohit1997/DeepZip | d3980935517b311b06d39a429546de9f024a73e5 | 8c35502397a1488c89fa282ed033cc9d5fd4b4dc | refs/heads/master | 2022-03-16T02:17:55.479656 | 2022-03-04T22:09:48 | 2022-03-04T22:09:48 | 141,168,415 | 126 | 28 | null | 2019-04-23T23:42:20 | 2018-07-16T17:03:11 | Python | UTF-8 | Python | false | false | 1,190 | py | import io
import sys
import numpy as np
import json
import argparse
parser = argparse.ArgumentParser(description='Input')
parser.add_argument('-param_file', action='store', dest='param_file',
help='param file file', default='params.json')
parser.add_argument('-input', action='store', dest='input_fi... | [
"goyal.mohit999@gmail.com"
] | goyal.mohit999@gmail.com |
b8f3a64bbc2a8167b63c3cc6a540d10ed5ec6aca | d9ba36ecbe8f7b54809ffd5fd64784c2d02b2100 | /back-end/node_modules/argon2/build-tmp-napi-v3/config.gypi | 38d32d425ecca604273054bcf66f5d1c129e893e | [
"MIT"
] | permissive | jreddev/creativeProject | 115a550e84323dd31c518f1215094f3c00ae058e | 94e967bcc169730d56940624df836f76926bdc9d | refs/heads/main | 2023-06-01T16:40:40.289496 | 2021-06-20T19:46:30 | 2021-06-20T19:46:30 | 377,894,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,482 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v142",
"msvs_windows_target_platform_version": "10.0.18362.0"
},
"variables"... | [
"jared.devenport@gmail.com"
] | jared.devenport@gmail.com |
0ce727248c0d7d4e73b72de01af608de4b8251c1 | c3c009b97f8d753f3e7fe333574bc7471285c8a0 | /primeNum.py | 6754d6ec240c93033fa10bafcc78449b613e52cb | [] | no_license | Vk686/BridgeLabz | 985242659f804f01927206943557906ea76c4f25 | 715d20715d05490d13e5ae9ce66976d8f201e1ca | refs/heads/master | 2022-04-26T12:15:30.434311 | 2020-04-29T07:36:29 | 2020-04-29T07:36:29 | 259,850,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def prime(num):
count = 1
for i in range(1, num):
if num % i == 0:
count += 1
if count > 2:
break
if count == 2:
return True
return False
for number in range(1001):
if prime(number):
print(number,end=" ") | [
"noreply@github.com"
] | Vk686.noreply@github.com |
cba388edc4aa1e4cef2a00c1c477ee100903e965 | 9bf235aa5d6eef84de6fa3093d813c7eff982510 | /score_board.py | 25c39236f09bf842efe250d58fa893fd4136abf3 | [] | no_license | Styxlethes/alien_invasion | e1d2f66ab6a9a84e9bd2136af11f09ee06e62cd8 | 4e05c08dfb87b52418600b9eb0d81d48d04182ea | refs/heads/alien_invasion | 2020-03-22T07:28:45.654176 | 2018-07-06T09:14:14 | 2018-07-06T09:14:14 | 139,702,908 | 0 | 0 | null | 2018-07-05T08:33:07 | 2018-07-04T09:51:53 | Python | UTF-8 | Python | false | false | 2,915 | py | import pygame.font
from pygame.sprite import Group
from ship import Ship
class Scoreboard():
'''显示得分信息的类'''
def __init__(self, ai_settings, screen, stats):
'''初始化显示得分信息涉及的属性'''
self.screen = screen
self.screen_rect = screen.get_rect()
self.ai_settings = ai_settings
se... | [
"styxlethe@outlook.com"
] | styxlethe@outlook.com |
59a0931403aab7dac631dc43bdaa547d74ad841f | f96c14d4f34abef2f9130e521b05c6ab09e9fd5b | /Week_03/G20200343040026/Leetcode_429_0026.py | f0e19e0aec538fc02dc01b2471964144893a0176 | [] | no_license | Z-Clark/algorithm007-class02 | b6231db9a6826157f4211bd6c71ba591afcb582d | 840a5d4969d5541d9d92f9dbe650506af3d84a99 | refs/heads/master | 2021-03-10T17:17:41.170302 | 2020-05-15T14:26:07 | 2020-05-15T14:26:07 | 246,470,171 | 1 | 0 | null | 2020-03-11T03:58:34 | 2020-03-11T03:58:34 | null | UTF-8 | Python | false | false | 1,148 | py | """
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
# 队列解法
from collections import deque
class Solution:
def levelOrder(self, root: 'Node') -> List[List[int]]:
if root == None:
return root
d... | [
"602465307@qq.com"
] | 602465307@qq.com |
f5925291a960379a1367d2b5d148fb027a8b79e4 | abe19418099bad7b23dcae7737d127948833018e | /test/Tool/BaseFunctionTest.py | fd2d1405d06b232a70d538e4ebbd39545902a6e9 | [] | no_license | uans3k/BasicPractice | b2a3bbed1870a42fb271df41602389f1a548f98d | 72bf4066b489a7c0f7129f14dd8b60dec1b42f8c | refs/heads/master | 2021-07-12T06:51:57.483616 | 2020-12-09T09:22:51 | 2020-12-09T09:22:51 | 221,613,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | import core.Tool.BaseFunction as BF
import numpy as NP
def normTest():
a=NP.array([[1,2,3],[2,5,4],[5,6,7]])
aNorm=BF.normalize(a,axis=0)
print(a)
print(aNorm)
normTest() | [
"uans3k@163.com"
] | uans3k@163.com |
91ba21c33130d050d6e9deb747ad6b93744dad14 | b963d08cf59186a08cdc56a7a726cf5968bcc483 | /Project 1/rstr-master/rstr/rstr_base.py | 41511629283b49211fb211bc96b41bd643f4e2c0 | [] | no_license | KerolesNady/Theory-of-Computation-project | c31c2b2dec60bd61cd9d462ec3cab127c9576e74 | b33e00b02419c4bb197103af8205daf4dc8d4672 | refs/heads/main | 2023-05-31T11:08:16.826104 | 2021-06-06T17:14:29 | 2021-06-06T17:14:29 | 361,816,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,489 | py | # Copyright (c) 2011, Leapfrog Direct Response, LLC
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list o... | [
"https://github.com/KerolesNady/api.git"
] | https://github.com/KerolesNady/api.git |
4d2f1b947c37bea509fec0603fec028f2816c5f7 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/level_head/aws_company_right_program.py | a269a3cf60adfad0ae305533decf4c19f884f035 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import srt_translate as st #must use python 3
#import os
#subdirec = 'home/ben/test'
#os.chdir(test)
# Replace the subscriptionKey string value with your valid subscription key.
subscriptionKey = 'a3487bf0249992cc26cd5aaf14d5f0b0'
# Language codes and names:
# English: en
# Greek: el
# More: http://www.emreakkas.com... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
1944001d5e5e2cfa206cc7d5f062bc0d2c2597a5 | c8e8c42d6f78fd14c595640c3eeff0c139f6219c | /手绘.py | 41fd246244792e90f3a8f841146be6806cd846cb | [] | no_license | ctrlzhou/python | 92d6079322d0b554b10fd11908b52e6155da2509 | 743d18fab0adad3419c141e0eaf4e26dfe2507bb | refs/heads/master | 2020-07-21T05:19:14.791964 | 2019-09-06T09:38:53 | 2019-09-06T09:38:53 | 206,761,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # -*- coding:utf8 -*-
from PIL import Image
import numpy as np
import os
import join
import time
def image(sta,end,depths=10):
a = np.asarray(Image.open(sta).convert('L')).astype('float')
depth = depths # 深度的取值范围(0-100),标准取10
grad = np.gradient(a) # 取图像灰度的梯度值
grad_x, grad_y = grad # 分别取横纵... | [
"noreply@github.com"
] | ctrlzhou.noreply@github.com |
86a41bbcb57873b5e5e9b05c4a461a74a7aabcdf | a182cc2f1512fae7639e686a0e9727eb5477a3fe | /server.py | b2bc5d12cf02180e0f22f0666666ce0b14605531 | [] | no_license | heikipikker/Covert-Channel | 271a654477c087cf5678175712b0b1b78ef0f20f | f84a8c562677c6c73dcbb841e7ea2a33ce1ac4dc | refs/heads/master | 2021-05-15T18:08:11.205914 | 2017-09-19T22:46:53 | 2017-09-19T22:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | #!/usr/bin/python
# -----------------------------------------------------------------------------
# FUNCTION: Covert Channel
#
# DATE: September 19, 2017
#
# DESIGNERS: Paul Cabanez
#
# PROGRAMMERS: Paul Cabanez
#
# NOTES: Using Scapy, sniff for packets with C flag, then extract the character
# ... | [
"noreply@github.com"
] | heikipikker.noreply@github.com |
06e1f9b50cd4203f4526aa2af52be37ed254a692 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GnomeDesktop/RRScreen.py | 4092b6b1843f0804d1cbd81498ddbc29582ae5d0 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 19,400 | py | # encoding: utf-8
# module gi.repository.GnomeDesktop
# from /usr/lib64/girepository-1.0/GnomeDesktop-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attr... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
d26db268212730243e31afef9dac80f44edda814 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/store/views_20211010181824.py | 5404e2083299cd5fa19e695dd5bbf5bc15364268 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from django.shortcuts import get_object_or_404, render
from store.models import Product
from cate import member
# Create your views here.
def store(request, category_slug=None):
categories = get_object_or_404(Category, slug=category_slug)
products = Product.objects.all().filter(is_available=True)
products... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
bc8e0220fd562d1e2e25a436a94648ec1cdc456a | 32d1177fc001b2b50cfb65268532465cea87ac85 | /olx_scraper/middlewares.py | c9ad650632599e98dfd8625907233d700863413f | [] | no_license | Wadwadw/olx_scraper | 3d64a391e5ab7849513825c51bfcec9af15952ff | 72c6bbe0c4c4e164fda19169ffc0419dac124cc2 | refs/heads/master | 2023-05-07T22:34:37.000917 | 2021-06-01T11:19:18 | 2021-06-01T11:19:18 | 372,510,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class OlxScraperSpiderMiddleware:... | [
"sumsunh777@gmail.com"
] | sumsunh777@gmail.com |
d8430f1d5175fb1d55b52739f4da2c585b3874c1 | c22b5c68727ef7d351be6db6e4f68965dfd02146 | /blockchain/blockchain/multisig-core-master/multisigcore/oracle.py | f2b582189005f185cac943cb732f0d0abfcd43f5 | [
"MIT"
] | permissive | louiewuliyu/mail-by-blockchain | b3baf8a297c78aa0adcba83e5117e079047e0b6d | 5f36f1d0a73027c7db26585ec26b85c36e8f40bb | refs/heads/master | 2020-03-30T15:40:52.549313 | 2018-10-03T07:16:59 | 2018-10-03T07:16:59 | 151,374,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,972 | py | from __future__ import print_function
import uuid
from copy import deepcopy
import dateutil.tz
import dateutil.parser
import requests
from pycoin.tx import Tx
from pycoin.ecdsa import generator_secp256k1
from pycoin.serialize import stream_to_bytes
from .hierarchy import *
from pycoin.tx.script.tools import *
from pyc... | [
"lywu0420@hotmail.com"
] | lywu0420@hotmail.com |
4dd01610b4147862288e32fff7184a7315c42ec7 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/Products.Archetypes-1.9.11-py2.7.egg/Products/Archetypes/tests/test_utils.py | 7c7df642c1f4a38a6ef5e21daf0932724c758cb4 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,246 | py | # -*- coding: utf-8 -*-
################################################################################
#
# Copyright (c) 2002-2005, Benjamin Saller <bcsaller@ideasuite.com>, and
# the respective authors. All rights reserved.
# For a list of Archetypes contributors see docs/CREDITS.txt.
#
... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
721192edfb7089a6cda03f3928411899b67d71a0 | 9d5dd012d31bf585060d1d80eedaeafcdbee89c1 | /venv/bin/django-admin | fddb04d837dc5a842f7fac1ad378da8d185fcbc1 | [] | no_license | gimeneca/IS2_PROY | ad1abfa6f898968689f4b218bc4a2e6414b1f7bb | 744de325e700a3015b1de74e14c728c6a11e014f | refs/heads/master | 2021-05-21T19:03:32.169864 | 2020-04-01T03:51:53 | 2020-04-01T03:51:53 | 252,762,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | #!/Users/landa/PycharmProjects/IS2_PROY/venv/bin/python
# -*- 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_command_line())
| [
"gimeneca@gmail.com"
] | gimeneca@gmail.com | |
94f49f72be5a9cb1af0f0aab8b3a7450e7162cb0 | a3a170b2a93699260f8491473b926b4bbce4b3fe | /project_bedu/bin/jupyter | d8d4e88a0278fbc85b0b4e99b3900225fbc44053 | [] | no_license | erknaz/proyecto_python | 54d133267655976bbc82ccebc2d125dd9115bb28 | c8c9d2fd05dc498970d8a0e041f771be0511cbfd | refs/heads/master | 2022-10-28T07:41:42.741628 | 2019-07-18T00:30:40 | 2019-07-18T00:30:40 | 197,481,534 | 0 | 1 | null | 2022-10-07T20:55:13 | 2019-07-18T00:27:09 | Python | UTF-8 | Python | false | false | 273 | #!/home/eacosta/Escritorio/virtualEnv/django/project_bedu/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.command import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"acja.erick@gmail.com"
] | acja.erick@gmail.com | |
3eaef504291e96d86e19d626ec8720b13aec4cc8 | 6f65f959af2139d12a181c538c4deca89a549b48 | /accounts/migrations/0001_initial.py | ad2d71a2baf61cc6ee58e07c3b874f36d30c2d8f | [] | no_license | rohithpala/SocializeWebApp | 545a04e42fbaf2618a3bd019192bfae737d49fcf | 7d6e55b59bca70c5ad4e2647d6ff0166b12af023 | refs/heads/main | 2023-06-11T09:45:42.271573 | 2021-07-01T07:43:02 | 2021-07-01T07:43:02 | 381,949,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # Generated by Django 3.2.4 on 2021-06-11 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='UserAccount'... | [
"63358944+rohithpala@users.noreply.github.com"
] | 63358944+rohithpala@users.noreply.github.com |
06eb92aedb520d1abd53d84ec71c2a5db5fa3441 | 51d4d53a03ff4aa2dea4b60991389ac95b3576bf | /ddexreader/ern32/_ddexC.py | d79196b6479acd92af3babf6846231f1ddbdeec0 | [
"MIT"
] | permissive | Trax-air/ddexreader | 05fda370d4a4dd251daa19a031c6dc4dc7a42f4b | 444811b3c0a4704691e8cd27ab3d9c580f23e177 | refs/heads/master | 2023-01-05T21:40:33.901586 | 2015-09-14T14:43:57 | 2015-09-14T14:43:57 | 38,633,547 | 28 | 15 | MIT | 2022-12-26T19:44:20 | 2015-07-06T17:08:40 | Python | UTF-8 | Python | false | false | 1,359,187 | py | # ./_ddexC.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:bd3011a5b4365de65473dbafb591a813dcf669bd
# Generated 2015-07-06 15:09:50.920552 by PyXB version 1.2.4 using Python 2.7.6.final.0
# Namespace http://ddex.net/xml/20100712/ddexC [xmlns:ddexC]
from __future__ import unicode_literals
import pyxb
import pyxb.bind... | [
"flavian@trax-air.com"
] | flavian@trax-air.com |
6f8823b538aac104cbe7fd36e0d69d19bea76e71 | 1466c55e299e2c0f0b4c04a22a5827c11e123029 | /yuntien/apps/note/urls.py | e318d85a8ac5a87452fa96b920a976d9ea697571 | [] | no_license | geyuntian/yuntien | b440a90890f689405a26fe4f786a0a69c9a30e8d | 1daa0bd38fdcb15a2dfc24e5614f9e4747305259 | refs/heads/master | 2016-08-04T10:05:50.212509 | 2013-04-13T13:57:01 | 2013-04-13T13:57:01 | 3,609,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.conf.urls import *
from yuntien.apps.note.views.tool import render
from yuntien.apps.note.views.post import render_feed
def r(template):
def _r(request, context):
return render(request, template, context)
return _r
urlpatterns = patterns('yuntien.apps.note.views',
url(r'^$', 'post.list... | [
"yuntian.ge@gmail.com"
] | yuntian.ge@gmail.com |
93f9ff7f0c20a17eac24bdb842d09cdd06d72f77 | 94bfb1346a9ce4cf6ca8bfeeb5194b7a467731a6 | /aclark/db/migrations/0031_siteconfiguration_company.py | d98d10bc777b9bace6f33643961cd5d7281078eb | [
"MIT"
] | permissive | aclark4life/aclarknet-best-pro | 4006cad37c2eec166a98a73e988b9b490a10e5cb | e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea | refs/heads/master | 2023-03-01T09:10:04.041913 | 2020-12-01T18:40:07 | 2020-12-01T18:40:07 | 140,634,961 | 0 | 0 | MIT | 2021-02-10T01:57:38 | 2018-07-11T22:49:33 | CSS | UTF-8 | Python | false | false | 598 | py | # Generated by Django 2.2.3 on 2019-07-30 18:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("db", "0030_company")]
operations = [
migrations.AddField(
model_name="siteconfiguration",
name="... | [
"aclark@aclark.net"
] | aclark@aclark.net |
48d1c4923015cdb19368e88f8c02818efe22b75b | 3a9ae24eb87d8b84ff6928320aa897dfc5d72145 | /test_social2vec_rank.py | fb146ed0b1b4cde79572dc3e95fd29e61a0424c4 | [] | no_license | shashankg7/Trust-Inference | eebd22528caf1882695eb0e8dd4b214338271290 | 43e4a5154561640eecf49e6b0290d6ac977ab5e7 | refs/heads/master | 2021-03-16T05:15:27.148772 | 2017-01-05T13:31:46 | 2017-01-05T13:31:46 | 78,115,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py |
import numpy as np
import sys
import pdb
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.metrics import f1_score
from networkx import read_edgelist
import networkx as nx
path = ''
Wu = []
Wm1 = []
Wp1 = []
B11 = []
B21 = []
U... | [
"27392shashankgupta@gmail.com"
] | 27392shashankgupta@gmail.com |
d410cda4cd79517ac0aa58d972ce5a7f598add65 | 03837c332af052b0b632ca16e3e2bc6687670e99 | /python/libtrain.py | 3d77c7288117e32b69454b5ed03252b405c90727 | [] | no_license | eric-tc/testCython | 312d12411a05c8c94086a8aa7ec572c9241f3614 | 00f6d6ddb44975851049f016ded124b2e7fbf1c2 | refs/heads/master | 2020-09-24T04:33:03.818629 | 2019-12-04T15:43:48 | 2019-12-04T15:43:48 | 225,663,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,192 | py | from libmodel import simple_autoPrelu
from torchvision import transforms,datasets
from torch.optim import Optimizer
import numpy as np
import torch
from pytorch_msssim import *
import os
from libcustomDataset import ImageFolderWithPaths
class CyclicLR(object):
"""
optimizer (Optimizer): Wrapped op... | [
"emanueleperini@bitbucket.org"
] | emanueleperini@bitbucket.org |
b2e8bea287d02210c84ce9b006c288a95af8ce64 | 68f9eb0440e3387adbbc5c2c788ae606cc08ad07 | /pydownscale/config.py | acfb8054962d6f6e59a5d46117e2bae7904f5533 | [] | no_license | helianglen/pydownscale | 73e2bd7dc78fb34b9e0d8ce3e2166f0886d7a2e1 | 4f3a83cbbfe29ee5b1958da6d750ad7a6a079a41 | refs/heads/master | 2021-01-23T01:56:05.674493 | 2016-10-25T15:42:58 | 2016-10-25T15:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | #reanalysis_dir = "/gss_gpfs_scratch/vandal.t/ncep/daily/downscale-data"
reanalysis_dir = "/gss_gpfs_scratch/vandal.t/merra_2/daily_merged/"
obs_dir = "/gss_gpfs_scratch/vandal.t/cpc/regions/"
#obs_dir = "/gss_gpfs_scratch/vandal.t/gmfd/prcp/daily/0.25deg/"
gcm_dir = "/gss_gpfs_scratch/vandal.t/cmip5/historical/atm/d... | [
"tvandal20@gmail.com"
] | tvandal20@gmail.com |
61d21cd5046836892b809cc0fc7f1a977605c227 | 5c2824ff58eb8a57d71b3c24873c4695c7c3a2ba | /Fundamentals_Final_Exam/03.Problem_Three.py | 1e7d798f28b43c1d3e3e8e862cdef755df0fecb0 | [] | no_license | svetoslavastoyanova/Python_Fundamentals_Mid_and_Final_Exams | e7ff6677bc762b24262019a0ebb0ed6a5952c50d | 781e03fd5f540d55b41fbe6ef1d722d39ed62176 | refs/heads/main | 2023-04-17T17:35:38.894988 | 2021-05-02T12:28:26 | 2021-05-02T12:28:26 | 349,411,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | line = input()
minutes = int(input())
seconds = int(input())
total_time = 0
text = ""
while line != "Finish":
total_time = minutes*60 + seconds
if total_time < 55:
text = "Gold"
elif 55 <= total_time <= 85:
text = "Silver"
elif 85 < total_time <= 120:
text = "Bronze"
line =... | [
"svetoslava_stoyanova92@abv.bg"
] | svetoslava_stoyanova92@abv.bg |
1ea1ae55edc8616ffc54bd6950152e4260f94fe3 | b8e307befb2602a5a74cb4003f4a088e63215448 | /ef_coronals_allqp.py | 1dca6e7741d4bd3270d96e8f46f63dc2cf7451fb | [] | no_license | sbakst/acoustics | 537d515d7414361e4745caf6e9ee6075e6b27edb | f5cd4e4db622096904b68021aa40bd6199138713 | refs/heads/master | 2021-06-08T04:41:29.871145 | 2020-12-12T17:26:46 | 2020-12-12T17:26:46 | 136,626,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,089 | py | #!/usr/bin/env python
## USAGE: ef_coronals.py SOURCE DESTINATION TARGETS (TARGETWORDS)
import sys
import os
import re
import subprocess
import audiolabel
import numpy as np
import shutil
import datetime
# DIR is the directory containing folders of images, audio, etc
PARENTDIR = sys.argv[1]
DESTDIR... | [
"bakst.sarah@gmail.com"
] | bakst.sarah@gmail.com |
5950867e2aa946a991ac254c60ee027b6ce2234b | 5623cbb459fb18fd483094524a7f7348de55cdb7 | /jenkins_helper.py | 6b599f679231eab35e88f6d4960ad933beda1d00 | [] | no_license | derHeinz/jenkinsjobfeedback | 6d35d93d578b92b709fb2330d94b1093cbb59ca8 | 026e550478c7e8829f28d9b453c63715e24001d9 | refs/heads/master | 2021-01-19T07:53:22.158970 | 2017-04-23T20:20:03 | 2017-04-23T20:20:03 | 87,585,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import jenkinsapi
from jenkinsapi.jenkins import Jenkins
import job_state
class JenkinsJobHelper():
''' This class is the accessor to jenkins. It acually uses jenkinsapi but could use the REST api directly'''
def __init__(self, url, username, password):
self.url = url
self.username = username
self.password =... | [
"heinzserfas@gmx.de"
] | heinzserfas@gmx.de |
faab337f01de40d0231dd63feb7558dc578a207a | 0aa953ce2353ecebffe3e6853c43868ff1a9ece1 | /4. For-Loop/05. Character Sequence.py | 7875889540c2e026cd7c54b90ab285b1e1db64ee | [] | no_license | alexlikova/Python-Basics-SoftUni | 1e341233f48fb20b0d3d264623c5b74d88e852d0 | 02a6a594dfce45c4996584e80437a5fcf0022e63 | refs/heads/master | 2023-02-22T05:13:44.690580 | 2021-01-25T20:51:44 | 2021-01-25T20:51:44 | 326,074,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | text = input()
for i in range (0, len(text)):
print(f"{text[i]}")
| [
"alexlikova@gmail.com"
] | alexlikova@gmail.com |
85aeceb360ef83d314bdba8c16380f49cd51f985 | 1afa1e65ccd3a62c05f99c2ce63f65c3789532cf | /src/_gprn/tests/test_single_gp_ell.py | f1b9f042c5e78d92906259521449ed62ee492620 | [] | no_license | junbozhao/multi_res_gps | ea44c10cf041170e2dd517e189bac60c77933bc8 | 4322c1f2d28422845e6295dfee011bb002c24837 | refs/heads/master | 2022-04-11T03:31:43.961246 | 2020-01-20T09:40:32 | 2020-01-20T09:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,697 | py | #To run tests: python -m unittest *
import sys
sys.path.insert(0,'../../')
import unittest
from unittest.mock import MagicMock
import tensorflow as tf
import numpy as np
import math
import scipy as sp
import gprn
from gprn import sparsity
class Test(tf.test.TestCase):
#called by unittest before each test is ra... | [
"ohamelijnck@gmail.com"
] | ohamelijnck@gmail.com |
87ef5d8ed682d518f47eb6e1e03850066d251895 | ff268c31f10cbd3e1c44261ca65a45c88ed3dae5 | /Transfer Learning/Code/classify.py | 2670af12d79b9e3e4f9dd6f648aa8ad8c6399325 | [
"MIT"
] | permissive | gyani91/Machine-Learning | 6642c65359ed48b212a0f4296f5ce908ed6e95e3 | 2fabaa6386d3be24e56aaa9a19d58cd19d225198 | refs/heads/master | 2023-05-27T10:25:55.222053 | 2023-05-15T18:12:45 | 2023-05-15T18:12:45 | 114,811,646 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import tensorflow as tf
from resize import *
from convert import *
#IMAGE_PATH = "Classify/panda.jpg"
TRAINED_GRAPH = "sets_graph.pb"
LABELS = "label.txt"
FINAL_TENSOR_NAME = "final_tensor"
def classify(IMAGE_PATH):
# Convert the image to JPEG
converted_image = convert(IMAGE_PATH)
# Resize the image
... | [
"noreply@github.com"
] | gyani91.noreply@github.com |
5cb5f6b8ccf26d58cbd0363a37d076f1d55c436f | 16ac02b8f427bd622af1564f1236e4913ed63521 | /Codes/Version 1.8.6/geometry_def_DEP.py | 7c22289e317f50fec51f1ba4fa4e82052a6f6a8e | [
"MIT"
] | permissive | gharib85/Brownian-dynamics-in-a-time-varying-force-field | 20660665747310e1201e8ca7d404acc15ec7a3bd | 1dce268fcc4f27e066be0ec0b511178cbc1437c5 | refs/heads/main | 2023-08-16T03:47:51.957137 | 2021-10-23T19:09:50 | 2021-10-23T19:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,523 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat May 8 13:18:12 2021
@author: Mohammad Asif Zaman
Date: May 15, 2021
This code defines geoemtrical elements by a set of points. It also calculates the
normal vector for each surface of that geometry.
Definition parameters:
- In geo_pointsX() fu... | [
"39745895+zaman13@users.noreply.github.com"
] | 39745895+zaman13@users.noreply.github.com |
8875ac94e280bc86fba52d3cb162d5cf6ccbb716 | 820a9956bc066f663079c1d6c98439d921fce418 | /src/prediction/test_all.py | a9a5e70a2f0735399697e961b26ec3fe3fa6703d | [] | no_license | haolang/CMB_pred | 1be8ca3778cc0bafc22149c994e53fe7e01ad531 | 423217978f376a8074cc66fca5896ab43e423cf7 | refs/heads/master | 2020-03-20T20:42:47.196155 | 2018-06-19T13:57:48 | 2018-06-19T13:57:48 | 137,702,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,144 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from src.common.my_data import Data
from src.common.time_used import runtime
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import hamming_loss
class TestAllEvtTiems:
def __init__(self):
self.data = Data()
... | [
"1363687132@qq.com"
] | 1363687132@qq.com |
76745ecd9031d861fde3a223b7c2399fc316fbc5 | f16939eff916382abc7d28f19df0188a88d72c2c | /python/receive.py | 76a5295ce47319d75c61dbbb0d11818931b29630 | [] | no_license | thgngu/sdr | 24a83f3d8c14fb4c63ce3adcfe181b0e91c09ace | 1258095036bebd25fccf88a5adb4ceac79cc3680 | refs/heads/main | 2023-04-22T17:26:06.244617 | 2021-04-28T22:58:03 | 2021-04-28T22:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,259 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Receive
# Generated: Wed Feb 24 22:53:34 2021
##################################################
from distutils.version import StrictVersion
if __name__ == '__main__':
import ct... | [
"matt@i7deb.localdomain"
] | matt@i7deb.localdomain |
1ff640fe7e36b1fa053268a8444e4d290cd90c50 | f514f2746c69726ac38f8e8679eb2b646d11ec91 | /dota2_stats/views/matches.py | 857690b007094ca61e06f0758e261b316c1b1ecb | [] | no_license | bobbyrward/dota2_stats | 871b99ca6550496acc95ff44947a23566708861f | b3d2e7fbe4712dcb08f75e3a15b358a8388711a3 | refs/heads/master | 2021-01-19T03:23:54.158490 | 2013-02-15T22:56:08 | 2013-02-15T22:56:08 | 8,169,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from pyramid.view import view_config
from dota2_stats.models import DBSession
from dota2_stats.models import Match
from dota2_stats.models import PlayerMatch
from dota2_stats.models import Player
from dota2_stats.models import Hero
from dota2_stats.views.common import template_params
@view_config(route_name='recent_... | [
"bobbyrward@gmail.com"
] | bobbyrward@gmail.com |
403fb160036c0433e15ae4f7321d952110952034 | 9fdcaa1510225d8d140b97378cd77247b5534b4d | /api/user.py | d407c22191e60e0dde074d594a64f2f031f1c4fe | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Rudi9719/booksearch-web | 2ab465f46b0bd4c493847aa30b19e462b730f856 | c48300e04ebdf2f01a990c67d4ff63d282da8168 | refs/heads/master | 2021-03-27T13:55:38.180793 | 2016-06-05T20:29:10 | 2016-06-05T20:29:10 | 58,660,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | #!/usr/bin/env python
import datetime
import re
import uuid
import constants
import models
from api.base import BaseApi, authorize
from api.error import Error
from frameworks.bottle import request, response
from utils import request_utils, validation_utils
class UserApi(BaseApi):
def __init__(self):
Ba... | [
"rudi@lolay.com"
] | rudi@lolay.com |
6aa82ed0d8ef67869d43e05aa0adb1d4791a832c | 53bfe8bc386b3319258968c633bf9e5dc5652153 | /src/creators/views/api.py | 99b819182e2e00eb8f915749aee916cf27e4ae5f | [] | no_license | devinhunt/Django-Creators | 3b626029ddb327456826bfd0f5ca9389a88c77df | 3f8d634c6801ad0618006269930deaa08d2403b6 | refs/heads/master | 2021-01-22T01:00:07.127759 | 2011-02-24T20:49:44 | 2011-02-24T20:49:44 | 712,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,817 | py | from creators.models import *
from django.core import serializers
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import get_object_or_404
from django.conf import settings
from datetime import datetime, timedelta
import json
hack_day_date = datetime(2010, 7, 18)
# User GET Me... | [
"devinhunt@gmail.com"
] | devinhunt@gmail.com |
851e188926412577b670edf374b8128bec3b8f91 | 773dc03117f8b0d51f7a10e2a4577229c8be6ba3 | /alttprbot_discord/util/alttpr_discord.py | b109cfd6aa74d9845a9daf9414c8e7910803208f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tcprescott/sahasrahbot | 382cdff058d63feb5f42dbbd7729eb4b08c4d1bd | 64a125d948873d0faa5ea3f2d306075ad9e013be | refs/heads/master | 2023-08-31T15:33:01.533206 | 2023-08-31T01:58:48 | 2023-08-31T01:58:48 | 178,310,225 | 22 | 43 | MIT | 2023-09-01T08:45:52 | 2019-03-29T01:34:45 | Python | UTF-8 | Python | false | false | 17,139 | py | import datetime
import os
import aiohttp
import discord
import html2markdown
from pyz3r import ALTTPR
emoji_code_map = {
'Bow': 'Bow',
'Boomerang': 'BestBoomerang',
'Hookshot': 'Hookshot',
'Bombs': 'Blowup',
'Mushroom': 'Mushroom',
'Magic Powder': 'Powder',
'Ice Rod': 'IceRod',
'Penda... | [
"tcprescott@gmail.com"
] | tcprescott@gmail.com |
458cdbd1b58829509e0effc4788f3ab3a3f70a48 | 6cc3afff7dac3afda0bb7c7f4b69a546f15d5832 | /crawler/DaumCrawler.py | 8fb41ba7563a54b360ac65b578323e3b276bd163 | [] | no_license | jayong93/GraduationProject | 00a3048d6431bb091f57710d648534b5ca733fbc | d877b04176fc04d567a1387cee3643b69d814f50 | refs/heads/master | 2020-04-05T04:18:08.738473 | 2018-12-06T08:54:59 | 2018-12-06T08:54:59 | 156,545,596 | 0 | 0 | null | 2018-11-07T12:48:57 | 2018-11-07T12:48:57 | null | UTF-8 | Python | false | false | 9,745 | py | #!/usr/bin/python3
import os
import time
import datetime
import json
import argparse
import sys
import functools
from multiprocessing import Pool, Queue
from selenium import webdriver
from selenium.common.exceptions import TimeoutException, NoSuchElementException, StaleElementReferenceException
from selenium.webdriver.... | [
"jayong93@gmail.com"
] | jayong93@gmail.com |
a26bbf68119003ce6a2dd8fc24c5f0c47154a201 | 03613bca89bd257fd46353672f131d13b4f5beae | /weibo/test/myGA_raw.py | 1af88fbd850e1d9ad904606e7bf7f14773e286ba | [] | no_license | feifanhanmc/MyWeiboPrj | 8034011b9acb67c4379adce2f2fd50856be584e6 | 736d0b9f66fe4da9be324701db8510400efdf75c | refs/heads/master | 2021-01-22T09:26:59.032545 | 2017-11-15T03:22:49 | 2017-11-15T03:22:49 | 86,690,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,168 | py | # -*- coding: utf-8 -*-
import copy
import random
from math import sin, pi
import matplotlib.pyplot as plt
class Gas():
#初始化一些变量
def __init__(self,popsize,chrosize,xrangemin,xrangemax):
self.popsize = popsize
self.chrosize = chrosize
self.xrangemin = xrangemin
self.x... | [
"feifanhanmc@163.com"
] | feifanhanmc@163.com |
e48492cf46d4d18b82782a7a592364130562e8f3 | 9cc7cf3536dea04320912037b60e4b4acd54632f | /Eshopping/asgi.py | bc58a8cfc2180c41c25fe12ea155d53eb4987133 | [] | no_license | kreeshnapathak/Eshopping | a0bd9fb34b47a8300d629ea7b5b347b9c68f293b | 45c374827e002b6b01cdd1fde91ec6219d2a7930 | refs/heads/master | 2023-07-08T08:20:40.653492 | 2021-08-04T05:17:21 | 2021-08-04T05:17:21 | 392,559,503 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for Eshopping 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_SET... | [
"kreeshnapathak@yahoo.com"
] | kreeshnapathak@yahoo.com |
e3607a442bff7c43f904b6b494c8081b77810bdc | 68f4e55f3d8176dd59eeaa4a2a8cf45e714cab38 | /Luminar Python prmgs/Collections/Dictionary/employee.py | 3d6c4034d326cba90a25d56ceda6cc8e59d925b6 | [] | no_license | dhanyamc97/luminarpython | 3558f4c3a77fce84bd26e1cf6f90d4ad7505f172 | 2c57c7da2c0ba0a171f64aaa80fe49fab9bddf5f | refs/heads/master | 2022-12-31T21:22:52.623340 | 2020-10-23T10:33:28 | 2020-10-23T10:33:28 | 290,289,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | employee={
"eid":1000,
"ename":"person",
"design":"tester",
"salary":15000
}
print(employee["ename"])
#check for compny name there
print("company" in employee)
#add a new record company
employee["company"]="Luminar"
print(employee)
#update employee salary = curr + 5000
employee["salary"]+=5000
pr... | [
"dhanyamc97@gmail.com"
] | dhanyamc97@gmail.com |
c9a516a9901b8b6fb7ed70ad878490204ff0a6fd | d8641ce5b69a57f20a3a67997c4228a62a3ac902 | /pythonpro.py | 9268808aa2bbe252de24fdb14731fe1a66cab26f | [] | no_license | miteshgoplani/webcrawler | 751a330f5d0281ce4c745351a77c3112c067ef94 | 760ed72a3dbab48406642abf284efa7f8f749476 | refs/heads/master | 2020-03-11T04:59:16.254401 | 2018-04-17T13:33:09 | 2018-04-17T13:33:09 | 129,790,364 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,785 | py | import sys
from PyQt5 import QtWidgets
from bs4 import BeautifulSoup
import requests
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit,QInputDialog
import re
import os
import sqlite3
import csv
##sqlite_file = 'C:/Users/dell/Desktop/my_database.sqlite'
##conn ... | [
"noreply@github.com"
] | miteshgoplani.noreply@github.com |
b420613052b641f347f2624a872a0abe9402792e | e36fba4df1bdac2e673da63311b7bef88bc2bcd0 | /pygraphblas/demo/maxflow.py | 0d065ad74c802968f4a374563b01a46e8634aefd | [
"Apache-2.0"
] | permissive | TrendingTechnology/pygraphblas | d122a303452ccd2326945726839384560eb6fb0e | 5f7362f276ac2f1d3f5c0df02b79fb34ef0aa46c | refs/heads/master | 2023-02-17T20:34:22.099643 | 2021-01-17T04:46:22 | 2021-01-17T04:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from pygraphblas import Matrix, Vector
from pygraphblas.semiring import max_times_fp64
from pygraphblas.binaryop import max_fp64, Accum
# The graph as a list of row and column indices and values
data = [
[1, 1, 2, 4, 4, 5, 6], # rows
[2, 4, 3, 5, 6, 3, 5], # cols
[0.2, 0.8, 0.3, 0.6, 1.0, 0.7, 0.9], # v... | [
"pelletier.michel@gmail.com"
] | pelletier.michel@gmail.com |
e75e737bfe0c2277124546220c4c75fca2526deb | 86fb5726cdb4492eb263a702785e7bdd8ac53141 | /game.py | 72598ee30cff4ca852bdb6c30ae63a1165064828 | [] | no_license | aaron777collins/simple-ai-game | 0c84c32373c197f2193ba697911fb0ee72a16380 | 15c0a82d2c438288dcb64fc1872459af3edcedf3 | refs/heads/main | 2023-07-08T01:31:24.015596 | 2021-08-13T22:04:08 | 2021-08-13T22:04:08 | 381,473,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,519 | py | from visualizationSprite import VisualizationSprite
from visualization import PLAYER_NUM, ENEMY_NUM, Visualization
from enemy import ENEMY_COLOR, Enemy
from pygame import surface
import pygame
from player import DO_NOTHING_ACTION, PLAYER_COLOR, Player
from environment import Environment
from pygame.locals import (
... | [
"aaroncollins@rocketinnovationstudio.ca"
] | aaroncollins@rocketinnovationstudio.ca |
48ad8a9133516b17e67bde68ff445fe462c08fef | 0e6695df1c3fed584bdbb83e282588fb22cde7f7 | /eles/sharepage.py | 81157447b26e53dafe49a048997c4559e9a36da1 | [] | no_license | whaley-peter/Test | 6c14c915b159387da2225f703f3c3bbd81eece49 | 5def5e47ae17ec766689aeff6509355d044c1ce0 | refs/heads/master | 2021-01-16T21:24:41.700883 | 2018-01-03T09:00:49 | 2018-01-03T09:00:49 | 100,229,312 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__mtime__ = '2017/12/11'
"""分享模块"""
#分享
share = "com.snailvr.manager:id/layout_share"
share_text = "//*[@resource-id='com.snailvr.manager:id/layout_share']//android.widget.TextView"
#========================================调出分享框======================================#
#新浪微博... | [
"18207168761@163.com"
] | 18207168761@163.com |
ec8da544cd59eff81c89e4f327ad9a081c8125d6 | b45d33675b38fd3bd15fb2f73a29851a3cc4037d | /0x01-python-if_else_loops_functions/1-last_digit.py | 6fd126b08396c288541339756d823b1a022c70f4 | [] | no_license | angelah1994/holbertonschool-higher_level_programming-1 | 38b8ca1859af2ec08aa50a862ecf37cabf993b46 | 61ab83696ed45686456317c485f7adb7220654ff | refs/heads/master | 2023-03-16T04:08:44.868909 | 2020-05-15T15:40:50 | 2020-05-15T15:40:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
last = abs(number) % 10
if number < 10:
last = last * -1
if last > 5:
print('Last digit of {} is {} and is greater than 5'. format(number, last))
elif last < 6 and last != 0:
str = 'Last digit of {} is {} and is less than 6 and not 0'
... | [
"amendez72@misena.edu.co"
] | amendez72@misena.edu.co |
74f8457d4531a04c1a90c746ed740feab0b23ffc | a177866569d63aedc9a7cb368a130ad4106a79a8 | /1_hello_world/venv/bin/easy_install-3.5 | 8d62cbd277aaab1a80738271bad3135d6001dd91 | [] | no_license | MarkZsombor/learn-python | 869f2ac09ebc9b5c6fb3588f682fe666179b2904 | 648040e398d4c5ab6bb569a515271d45ee350522 | refs/heads/master | 2020-03-16T06:04:41.556073 | 2018-05-17T19:32:03 | 2018-05-17T19:32:03 | 132,546,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | 5 | #!/home/mark/PycharmProjects/hello_world/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"markszsombor@gmail.com"
] | markszsombor@gmail.com |
9ec508663ace9267c71c4058916da4b688e0a499 | 0d0783d5561941626ea9e586826aa34f77b64bcf | /meiduo_mall/meiduo_mall/apps/areas/migrations/0001_initial.py | 35d477e72c36ab66d4e6fe53704bc7e21889de74 | [] | no_license | lczdada/meiduo_mall | afb7a6da4b4bb7375b2d397aab308351917ed689 | 663699e122e1b85ff91893a174ae705812c3d82b | refs/heads/master | 2020-03-28T17:14:57.924845 | 2018-10-08T05:23:04 | 2018-10-08T05:23:04 | 148,771,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-09-20 13:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"884275720@qq.com"
] | 884275720@qq.com |
90335780df8b761aed39fd0eb7705096f2d507d6 | ea1afc640abad8fa17d3b727cd8b16edde7999c6 | /Practica1/bin/get_func.py | 5581f1f16005313bb8e437b8b6eaa988780fedf9 | [] | no_license | iTzAlver/WebApp | defc8a1649d34f8f4d65fa3bf829cbb34fa8fc9b | 27f7974c9df4752c0798e4ef104f6f57f0225a83 | refs/heads/main | 2023-09-03T15:33:32.502699 | 2021-11-05T17:27:53 | 2021-11-05T17:27:53 | 425,025,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import requests
from bs4 import BeautifulSoup
import time
URL = 'https://www.numeroalazar.com.ar/'
GPH_URL = 'https://beebotte.com/dash/ffc47900-38cd-11ec-954b-39d34f82886a'
def getRND():
response = requests.get(URL)
content = response.content
html = BeautifulSoup(content,'html.parser')
nums = html.find(id="numer... | [
"ialver.p@gmail.com"
] | ialver.p@gmail.com |
e5ec7d80a9bd8ec0d31e8695546aa7bfb197c39d | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/arrays/boolean/test_reduction.py | 7ac6c13a933d640f3b303c790f7220a60ada525b | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 2,077 | py | import numpy as np
import pytest
import pandas as pd
@pytest.fixture
def data():
return pd.array(
[True, False] * 4 + [np.nan] + [True, False] * 44 + [np.nan] + [True, False],
dtype="boolean",
)
@pytest.mark.parametrize(
"values, exp_any, exp_all, exp_any_noskip, exp_all_... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
1029307e17ff37e33f2b89833d70f7879f9f5e45 | 60dbecafad0eb3baf67265ebda5c6230dfc99088 | /old_plotter_files/CLUSTER_PLOT_NEW.py | d4f5332e0882a5300eb2ffad687c5550409349dd | [] | no_license | shanto268/NaSch_CA_Traffic_Flow_Analysis_Software | fbddadd70a70458b96a9a12c5a1c731d29266e34 | d9065df9b8288790aa688bf5bf4c30750ba2889c | refs/heads/master | 2020-09-20T01:47:41.301182 | 2020-05-17T03:28:20 | 2020-05-17T03:28:20 | 224,346,779 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 4 15:13:35 2019
@author: Owner
"""
import matplotlib.pyplot as plt
import csv
def plot1(fname):
fn = fname
nn = fn.split('.')
fr = 'processed_' + str(fname) + '.txt'
#dnewdata = "0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.0... | [
"sadman-ahmed.shanto@ttu.edu"
] | sadman-ahmed.shanto@ttu.edu |
14caf7d6f40b402dc3843b98f90334167ef8865a | 1c47ba8109f1eee265e34b846de0a5639249708a | /cart/urls.py | 821cfdc8a27b5bfaf0bdd510288da27513518c59 | [] | no_license | jpastva/nowwegrow | c0292e6a57656681a918340debbf03a38e73f0b0 | aa2b16f49430b41432369f586fb36beeb85c4058 | refs/heads/master | 2023-02-13T19:54:25.415660 | 2021-01-10T19:44:23 | 2021-01-10T19:44:23 | 328,465,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | ''' URLs for cart app '''
from django.urls import path
from . import views
app_name = 'cart'
urlpatterns = [
path('', views.cart_detail, name='cart_detail'),
path('add/<int:product_id>/', views.cart_add, name='cart_add'),
path('remove/<int:product_id>/', views.cart_remove, name='cart_remove'),
] | [
"joelen.pastva@northwestern.edu"
] | joelen.pastva@northwestern.edu |
34ed9733ad7417f4216e50a9fd6bd49b6f323df7 | fe6b912e32bb9bdf6e7fb3af8ab7294150329d06 | /problem3.py | dd3d806605f4b8d81965249792c791955a03440f | [] | no_license | btkaija/hw6 | 03a8d6d87c91d10a0d31812c97c269b9f3081a27 | 3c32dd147d6594ba6cbe85383a3950c17f229464 | refs/heads/master | 2021-01-01T04:57:35.384499 | 2016-04-26T15:12:52 | 2016-04-26T15:12:52 | 56,979,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | #! /usr/bin/python
# ECE 2524 Homework 6 Problem 3 Ben Kaija
import sys
from collections import namedtuple
from operator import attrgetter
Item = namedtuple("Item", "item_id descrip qty_1 qty_10 floor whse")
#error checking crap...
try:
d_f = sys.argv[1]
c_f = sys.argv[2]
except:
sys.exit("insufficent or unsupport... | [
"Benjamin Kaija"
] | Benjamin Kaija |
16a3a8560d14738c480e32368a3b4c2b7f240037 | fd474c0c0df7de6c09f802586068a2069222aadd | /reviewboard/reviews/evolutions/file_attachment_comment_extra_data.py | 86e3d2fc9eb496b260de4b12d19e98ab74fb6221 | [
"MIT"
] | permissive | pombredanne/reviewboard | a2970fa18cfff4b15adfe65fd0098287d73c650e | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | refs/heads/master | 2022-03-09T22:24:19.951964 | 2022-02-09T07:12:23 | 2022-02-09T07:12:23 | 2,324,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django_evolution.mutations import AddField
from djblets.db.fields import JSONField
MUTATIONS = [
AddField('FileAttachmentComment', 'extra_data', JSONField, null=True)
]
| [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
a8f414f5dc7a4f54130ea293dc1783264d5409bf | 392824767b4ccb772a33a8f242f2d43a6ced0b80 | /BIL103E - Intr. to Inf. Syst.&Comp. Eng./Course Files/OtherExamples/Bottle World Time Example Week 1/world_time01.py | 0749abe509ccce7b52950389b21566f32afff148 | [] | no_license | yilmazmuhammed/ITU-CE-Courses | 82ec520c3703c91c6eb98be2769a1418ac925b70 | 19f2db633e5fdf6f5ea0c3584a5432f6fb4adf36 | refs/heads/master | 2020-03-11T16:34:51.650985 | 2018-05-17T01:25:24 | 2018-05-17T01:25:24 | 130,121,033 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from bottle import Bottle
from datetime import datetime
app = Bottle()
page_template = '''
<!DOCTYPE html>
<html lang="en">
<head>
<title>World Time</title>
<meta charset="utf-8" />
</head>
<body>
%(content)s
</body>
</html>
'''
def time_page():
current_time = datetime.now()
content_te... | [
"halil_yilmaz1997@hotmail.com"
] | halil_yilmaz1997@hotmail.com |
14bab698f118b522cd0978a6978aea724e04ed3f | 9816e66072c8d59984af82a080a6bded62934c61 | /utils.py | c4f9b151e7187a988d57a921c96fd8ffe15736b8 | [
"MIT"
] | permissive | shivamiitgoa/Toxic-Comment-Classification-Challenge | f0a1c1bfe9f15740708ada40d3870b389dbc3fe0 | 7e0837376e68a7beceb85fdecce0b9609a59e785 | refs/heads/master | 2021-02-27T14:51:32.478523 | 2020-03-07T11:32:40 | 2020-03-07T11:32:40 | 245,613,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | from datetime import datetime
from nltk.stem.porter import PorterStemmer
from sklearn.metrics import confusion_matrix
from sklearn.metrics import roc_auc_score
stemmer = PorterStemmer()
def commentPreprocessor(comment):
'''
Converts the string given into lowercase and removes all characters which are not al... | [
"shivam7@outlook.in"
] | shivam7@outlook.in |
07628817d9d5a2d38f5f06baf10b96300ac58cd0 | 18cf6c3b9415da0938295a5688444534f16215c9 | /artisans/urls.py | 2af03fc5788de110d7a4b60fe9bcb48d98da1693 | [] | no_license | carlomagg/artisan | d1c849c7d6e9bcf2737363d058b08786b3ba8160 | a910b14572f1d46cefc0336df0926f4b5fa5fa78 | refs/heads/master | 2022-12-20T05:51:14.996034 | 2020-10-10T14:43:10 | 2020-10-10T14:43:10 | 295,440,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | """artisans URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-base... | [
"obijurumagnus@gmil.com"
] | obijurumagnus@gmil.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.