blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5412c7892243d6e657b82483122380f58f6573e3 | 8f579e9fb95433e5b95bcc34e99ce70c6afa35b3 | /bin/check_samplesheet.py | 3ed7a8a2b7dbd9031ee837a9bd7cd87e753654d5 | [
"MIT"
] | permissive | SoniaD89/magmap | 43141f5f144102bdb789c22af83c45175369416d | b132da6e34f67daea408e253a0b1d9efc73f4f4a | refs/heads/master | 2023-04-06T04:37:00.952965 | 2021-04-13T08:32:34 | 2021-04-13T08:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,933 | py | #!/usr/bin/env python
# TODO nf-core: Update the script to check the samplesheet
# This script is based on the example at: https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv
import os
import sys
import errno
import argparse
def parse_args(args=None)... | [
"erik.rikard.daniel@gmail.com"
] | erik.rikard.daniel@gmail.com |
403b0d2881050e9400e3625af364517ec46494e9 | b0d0ec80dc1f57e7e8edb7a17dd15d77c0236146 | /Day 4/day4.py | 0c5ca23301ee12f3fb9aaa58ba7aebea1c1e00a6 | [] | no_license | bob3825/Advent-of-Code | 485214628c1a1cd6f890f3ac8a677e593769d4f4 | 5b3d9ae2a5cfe9f59b58cc5826fe4bf6557ac5a4 | refs/heads/master | 2021-01-13T15:11:32.079707 | 2016-12-14T23:52:25 | 2016-12-14T23:52:25 | 76,255,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | from collections import Counter
in_file = open('input', 'r')
def main():
sum = 0
for line in in_file:
splits = line.split('-')
checksum = splits[-1][-7:-2]
sector_id = splits[-1][:-8]
del splits[-1]
letters = ''.join(splits)
sum += isRoom(letters, checksum, sec... | [
"bob38255@gmail.com"
] | bob38255@gmail.com |
b40596b4ffdb7f94462aec274762e33c4d4253c2 | 46436ebeb9ebc281d15c8502fbd47b308a69b551 | /commands/peekaboo.py | de1db451a190b63a05622d8296b559bf4b724c66 | [] | no_license | jahsu/LunaBot | a6c4e70f86a3138e11e5811b4b8caaf17a4da03d | d13dffaa1e16ef41efb31668e51cf86f4eb43d89 | refs/heads/master | 2020-03-12T20:12:17.536744 | 2020-01-12T07:39:04 | 2020-01-12T07:39:04 | 130,800,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | def peek_iu():
return 'https://image.ibb.co/cGzwcc/IU_2.gif'
| [
"jahsu@JDENHAKKO.localdomain"
] | jahsu@JDENHAKKO.localdomain |
a92a1b6b6b9d0856b0154121d86f29c993295fcf | 72898b75b68b96f0c272d17f20ec3cd22b937603 | /multiple_test.py | 6de3e31dd4860b19f38daf08dd62b724dc41c29c | [] | no_license | PreranaPandit/PytestProgram | e7437950d85c1be53bde28367d420f8d2e35ca24 | 9f9615417d855d7cfdf6dd15bf86746b50cc578a | refs/heads/master | 2023-07-14T03:23:39.466209 | 2021-08-26T06:02:28 | 2021-08-26T06:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import pytest
def test_method1():
x = 5
y = 10
assert x == y
def test_method2():
a = 15
b = 20
assert a+5 == b
| [
"preranapandit07@gmail.com"
] | preranapandit07@gmail.com |
c8bf5e28512be596af475810b379876a8f3f028e | 3b8f7ed08ff1bbe2dd534de320b661e9a17932e6 | /utils.py | 2a422f27263ef1311f8feedda7b0625abe2686ef | [] | no_license | thevarshanair/LSTM | fb55154fcec8d557862d36ff9dd664b1aeca6fcd | c9f4b1e955b95043810542e86a72601faa6db331 | refs/heads/master | 2020-04-20T10:47:40.997915 | 2019-02-02T05:40:34 | 2019-02-02T05:40:34 | 168,798,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 29 13:48:28 2018
@author: VarshaNair
"""
import datetime as dt
class Timer():
def __init__(self):
self.start_dt = None
def start(self):
self.start_dt = dt.datetime.now()
def stop(self):
end_dt = dt.datetime.now()
print('Time taken: %s' % (end_dt - self.sta... | [
"varsha.nair@ttu.edu"
] | varsha.nair@ttu.edu |
c7c1a370661891ff5baeeb09d0e2713dc5e93d2f | 5dd344e0471f245287f40b1b6e87f17508092393 | /py/py_sparkling/ml/models.py | 910af804a50d7c0af72ab6b145c24b139bbbd153 | [
"Apache-2.0"
] | permissive | shinezai/sparkling-water | b8c7f18fde36956b7d4e0cab357661839dfe8751 | 3940c723be075502da9596fbf77f811fef3dcf13 | refs/heads/master | 2020-03-19T09:24:58.981185 | 2018-06-04T18:53:21 | 2018-06-04T18:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | from pyspark.ml.util import JavaMLReadable, JavaMLWritable
from pyspark.ml.wrapper import JavaModel
from pysparkling.initializer import *
from pyspark.sql import SparkSession
class H2OGBMModel(JavaModel, JavaMLWritable, JavaMLReadable):
pass
class H2ODeepLearningModel(JavaModel, JavaMLWritable, JavaMLReadable):... | [
"noreply@github.com"
] | noreply@github.com |
b2a5fcd5e780d94822b28ea8268397cdea35b039 | ebc1ea8ddda3d305517ca4a7f7630cc21cea56af | /noolite_mqtt/noolite_cli.py | 858a47795d52d259d0099d5ede0a7b8ce01de28c | [
"MIT"
] | permissive | foxel/noolite-mqtt-python | 41fa9ecf982300dc6f2779447ba2029aafaa5f57 | edb3aa538b5f8234f2469b14ab035101dcc4b302 | refs/heads/master | 2021-10-07T11:02:49.484758 | 2021-10-06T09:17:36 | 2021-10-06T09:35:54 | 97,506,414 | 3 | 2 | null | 2018-04-18T09:01:23 | 2017-07-17T17:57:54 | Python | UTF-8 | Python | false | false | 853 | py | #!/usr/bin/python3
import sys
from noolite_mqtt.noolite_serial import NooLiteSerial
noo_serial = NooLiteSerial('/dev/ttyS0')
if len(sys.argv) < 3:
raise Exception('Not Enough params')
noo_serial.send_command(int(sys.argv[1]), int(sys.argv[2]), 0)
print(noo_serial.receive())
# ch, cmd, mode, ctr
# print noo_ser... | [
"foxel@quickfox.ru"
] | foxel@quickfox.ru |
056fc13d54df98506518956199931a47a4e5fd50 | f926ba225ba4d2f197966a5e1d3b9cdddb17e43c | /1001361876-P3/2itemsets_reducer.py | 2720d57366a497dcd5df88dd0a775c552512100e | [] | no_license | shkhatri/MapReduce-for-market-basket-analysis | b78e2e29ee17dbf1956fb1f39123c2f20ccd211c | e01415a59664ec184236e358246819a0db15ee69 | refs/heads/master | 2021-04-26T21:48:42.617832 | 2018-03-07T01:39:50 | 2018-03-07T01:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | #!/usr/bin/env python
import sys
current_word = None
current_count = 0
word = None
for line in sys.stdin:
line = line.strip()
word1,word2, count = line.split('\t', 2)
word=word1+'\t'+word2
try:
count = int(count)
except ValueError:
continue
# if first word is s... | [
"shwetarkhatri@gmail.com"
] | shwetarkhatri@gmail.com |
511c910fb90555896a1d38399295f9addb2bcffb | d1f01a827aca8d9f1e7e8888d4859605123533eb | /vamp_1.0/vpregion.py | c6019f0049458e02a451557bef8b02102b00daf5 | [] | no_license | sarahappleby/VAMP | 232bd40b0f25b1186a986462c5410dc1f281788d | 448401f70759fe679e94b09d81bddc6df82c2598 | refs/heads/master | 2021-07-19T19:02:13.904757 | 2020-04-30T08:58:19 | 2020-04-30T08:58:19 | 150,605,242 | 0 | 1 | null | 2018-09-27T15:03:20 | 2018-09-27T15:03:19 | null | UTF-8 | Python | false | false | 6,648 | py | from scipy.ndimage.filters import gaussian_filter
from scipy.signal import argrelextrema
import numpy as np
from copy import copy
from vpfits import VPfit
import gc
class VPregion():
def __init__(self, frequency_array, flux_array, noise_array, voigt=False, chi_limit=1.5,):
self.frequency_array = frequency... | [
"sapple@roe.ac.uk"
] | sapple@roe.ac.uk |
128902adf28d2ffa058348060bc4cb5b09cddc8a | 5eb97d15b975c3ef3de10401594f31c502e04de4 | /YeNet-Tensorflow/testSRM.py | f04d18729452e84e6c517654c59ebc785251e5bd | [] | no_license | coriverchen/Steganalysis | 863f133f506afa9e8400d2c14acee833d942d51f | f7844698bff217ff206b9a3de15ccec708951c83 | refs/heads/master | 2022-03-30T10:25:30.118715 | 2019-11-29T04:21:59 | 2019-11-29T04:21:59 | 256,136,538 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 8 14:33:16 2019
@author: Lee
"""
import numpy as np
SRM_Kernels = np.load('SRM_Kernels.npy')
print(SRM_Kernels[:1]) | [
"870407139@qq.com"
] | 870407139@qq.com |
672157107eddb9e52d55ac8a7f57cfa87fbd7f46 | 2dd36e2f7c798373b4ba127760e83c38651a3f65 | /card.py | c102794a393bc70945c9ce06917e24876057fac4 | [] | no_license | usharma6/set_player | 2bcf773aa11dd1229f48ba59d5af0c06905d6da0 | 3471cb17ce059ab40961aebb17e27250d77031f8 | refs/heads/master | 2021-05-26T00:55:40.657344 | 2020-04-08T19:12:16 | 2020-04-08T19:12:16 | 253,990,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | class Card:
def __init__(self, color, number, shape, shade):
self.color = color
self.number = number
self.shape = shape
self.shade = shade
def __str__(self):
return "Color: " + str(self.color) + "\n" + "Number: " + str(self.number + 1) + "\n" + "Shape: " + str(self.shape... | [
"usharma6@jhu.edu"
] | usharma6@jhu.edu |
3a53e520857abe8308bca1b83255252761e07877 | 7403c132b21e0b9266ef5b12309a34b1856fc59d | /divide/__init__.py | 3c2a94aafda776a9ac7da4259f14071559fe2096 | [] | no_license | dalean5/azure-functions-calculator-api | 9f1cfb13e73516c143dc1fe53bbc59389e106cd8 | 3fdba2ee9c6821954c07541828900b8dee44abaa | refs/heads/main | 2023-05-29T03:22:33.530214 | 2021-06-08T03:16:02 | 2021-06-08T03:16:02 | 374,864,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import json
import logging
import azure.functions as func
from helpers.validate_request_params import validate_request_params
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info("Python HTTP trigger function processed a request.")
res = validate_request_params(req)
if isinstance(res, fu... | [
"dalean.barnett@outlook.com"
] | dalean.barnett@outlook.com |
15bca9cf5bb579a370f81194a6b0d804ba13e4f1 | 12518932bd96bd5714f8ce277cd50fcffb576eba | /scripts/make_zip.py | f83d8f96c08ae3cdd0ca934faf1017dd0cf7ebe5 | [] | no_license | tom-hightower/Digilogue | d607b21b1c6d89f0c8cb0a03a79fedb5ebf6e2d0 | b10ea5db06eb837e4bca37e1818b973d8bd6f783 | refs/heads/main | 2022-12-29T15:13:26.179687 | 2020-10-12T05:18:39 | 2020-10-12T05:18:39 | 300,758,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | import zipfile, os, fileinput, string, sys
scriptpath = os.path.dirname(os.path.realpath(__file__))
projectpath = os.path.abspath(os.path.join(scriptpath, os.pardir))
MajorStr = ""
MinorStr = ""
BugfixStr = ""
BUNDLE_NAME = ""
def main():
if len(sys.argv) != 2:
print("Usage: make_zip.py demo(0 or... | [
"tom.hightower356@gmail.com"
] | tom.hightower356@gmail.com |
5c3ec9b8bca633c0b13497f11002177fbd589d58 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_151/ch22_2020_09_09_18_55_45_398877.py | 949d4f34161a93ae72b7f3993ee0a87fd3a1d540 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def reduction(x, y):
f = round((365 * x * y * 10) / (60 * 24), 0)
return f
a = int(input('cigarros p/ dia '))
b = int(input('fuma a quantos anos '))
c = reduction(a, b)
print(c) | [
"you@example.com"
] | you@example.com |
ee1bcc67b6cdba59988db5f3ed193eee037ee4b2 | 3cbed72afad5531177d3778109d7b03d198abaa4 | /homework2/zad3random.py | 2396bbb9c5921d319f2aac7f45c11cc8a3081990 | [] | no_license | VerityG/tmskurs | eedc40515cf54c74b166ac0ee09c3ea5a2bbf928 | 749abfab3dca03f37730de9d6fe15392799ce9e1 | refs/heads/master | 2022-09-04T18:12:02.784413 | 2020-05-27T14:26:11 | 2020-05-27T14:26:11 | 257,980,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import random
a = random.randint(1, 11)
answ = 0
while answ != a:
answ = int(input('Попробуйте угадать число: '))
print(f'You right, the answer is {answ}!')
| [
"ivan.vasiliuk@gmail.com"
] | ivan.vasiliuk@gmail.com |
d27a99a396b7142caaf7354defe235cf6e3a526e | 539a6f995b6ccdc1786a19c478dc899ec554ffdb | /src/bolts/simple_bolt.py | bafa0100603b01ce8f36e06a9432b51d52f6d1d8 | [
"Apache-2.0"
] | permissive | avmarchenko/dronestorm | 7e7839bf1e1ccd4de678c05f8c5ec4bfe32a8fb6 | 6de64ee43b62a09be5806b91a7e853a3c0701204 | refs/heads/master | 2020-03-21T08:04:24.291373 | 2018-07-02T22:13:35 | 2018-07-02T22:13:35 | 138,318,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,989 | py | # -*- coding: utf-8 -*-
# Copyright 2018 Alex Marchenko
# Distributed under the terms of the Apache License 2.0
"""
Simple Drone Storm Bolt
##########################
This module provides a Storm bolt that converts altitude, latitude, and longitude
associated with a given aerial object (tuple message) to Cartesian coor... | [
"alexvmarch@gmail.com"
] | alexvmarch@gmail.com |
6da4091fd8ac8ad313d1b7259bd84c569f0a6e08 | 920f0fbb7064f2017ff62da372eaf79ddcc9035b | /lc_ladder/company/amzn/oa/Search_A_2D_Matrix.py | 617d0c9cea04baca4bd662f4ceb49c9887b4a548 | [] | no_license | JenZhen/LC | b29a1c45d8c905680c7b4ad0017516b3dca80cc4 | 85219de95e41551fce5af816b66643495fe51e01 | refs/heads/master | 2021-06-03T10:03:02.901376 | 2020-08-05T19:44:48 | 2020-08-05T19:44:48 | 104,683,578 | 3 | 1 | null | 2020-08-05T19:44:50 | 2017-09-24T23:30:35 | Python | UTF-8 | Python | false | false | 1,980 | py | #! /usr/local/bin/python3
# Requirement
# Example
# 写出一个高效的算法来搜索 m × n矩阵中的值。
#
# 这个矩阵具有以下特性:
#
# 每行中的整数从左到右是排序的。
# 每行的第一个数大于上一行的最后一个整数。
# 样例
# 考虑下列矩阵:
#
# [
# [1, 3, 5, 7],
# [10, 11, 16, 20],
# [23, 30, 34, 50]
# ]
# 给出 target = 3,返回 true
#
# 挑战
# O(log(n) + log(m)) 时间复杂度
"""
Algo: Binary Search
D.S.:
Solutio... | [
"jenzhen.nyc89@yahoo.com"
] | jenzhen.nyc89@yahoo.com |
8caa8d3717d97a3a31f6da04dd96d453f39769f4 | 2e145e0045f5bfc7da29483135027c91d343540f | /server/apps/api/routers.py | fc891414fa49a69013928e876b4a01ae6006051b | [] | no_license | saichenko/offers | 196bcdf391ac142ba1f865e8de44ee5a6e13e26f | 8a86ca8fbb9ffbb0a0a28782b03056625efccbdd | refs/heads/master | 2023-07-01T17:00:17.362775 | 2021-07-24T08:43:36 | 2021-07-24T08:43:36 | 382,387,620 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from rest_framework import routers
router = routers.DefaultRouter()
| [
"reallinuxforlinux@gmail.com"
] | reallinuxforlinux@gmail.com |
35d2c662fbb29329f46cc039d12df65fcc2e402e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_337/ch78_2020_04_12_01_52_05_952994.py | 618d2e41901705a68a61d1e4af17bec9060603e5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | nome = input('Nome?')
atletas = {}
i = 0
while nome != 'sair':
a = float(input('aceleração?'))
atletas[nome] = a
nome = input('Nome?')
if i == 0:
vence = a
i+= 1
valores = atletas.values()
dic = {}
for i in valores:
tempo = (200/i)**(1/2)
for k in atletas.keys():
if atletas[... | [
"you@example.com"
] | you@example.com |
c48d547a02107433a9ba668d5a79b1c1374499e5 | 03f1a716d426dcb7b5d77b9050e6332ab0726a9f | /nn6/__init__.py | 724f5c4d6039bd7f245d65cd0740ea1f63523eab | [
"MIT"
] | permissive | brice291/nn6 | 8e8688179834dfea3bd8d1f453e1135bfb6c5e45 | 9c7ca32514aa121ad36504f0c11177d8989660ae | refs/heads/master | 2022-04-03T02:00:13.599236 | 2019-12-02T09:20:16 | 2019-12-02T09:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import numpy as np
from numpy.linalg import norm
# 函數 f 對變數 k 的偏微分: df / dk
def df(f, p, k, step=0.01):
p1 = p.copy()
p1[k] = p[k]+step
return (f(p1) - f(p)) / step
# 函數 f 在點 p 上的梯度
def grad(f, p, step=0.01):
gp = p.copy()
for k in range(len(p)):
gp[k] = df(f, p, k, step)
return gp
# 使用梯度下降法尋找函數最低點
def gd(f,... | [
"ccckmit@gmail.com"
] | ccckmit@gmail.com |
65bf464f5dceb33f4c91f492406f183bd03bdd56 | 667dd66c2cb23eef287428c16b0d3604ab17c8f6 | /applications/autor/models.py | 27d423274c91ae58a3d0d68bf447f3557f7cc373 | [] | no_license | MariangelaC/biblioteca | eb052fb5f1766199bf3ec3ba11539a315014e960 | 1412e1db1732deb95adacab7c4425d9d4b54198a | refs/heads/master | 2023-08-25T21:12:36.517457 | 2021-10-20T18:38:05 | 2021-10-20T18:38:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django.db import models
# managers
from .managers import AutorManager
class Persona(models.Model):
nombres = models.CharField(
max_length=50
)
apellidos = models.CharField(
max_length=50
)
nacionaldiad = models.CharField(
max_length=20
)
edad = models.PositiveI... | [
"mariangela.cneptuno@gmail.com"
] | mariangela.cneptuno@gmail.com |
edfc6c5424a267368ecce67767021a65e69360ec | 8e027967f01cd3e1277716902a353745dcd4e2e9 | /python/old/downsample.py | 04ba0986c878fca2166e25ff6c3ed7a72495c661 | [] | no_license | albheim/EEG-klassificering | 04d7cbd7607acefa9ba380fd4306a85ec7c04358 | 5a990996e61193b0e9f9157eb0423c26628c06b4 | refs/heads/master | 2020-07-24T04:18:17.171920 | 2019-09-11T07:59:37 | 2019-09-11T07:59:37 | 207,798,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | import sys
from datetime import datetime
import numpy as np
from scipy import io
import tensorflow as tf
from keras.models import Sequential
from keras.layers import Dense, Dropout, Input
from keras.layers import TimeDistributed
from keras.layers import SimpleRNN, RNN, LSTM, GRU
from keras.layers import Conv1D, MaxP... | [
"albheim@hotmail.com"
] | albheim@hotmail.com |
aadde31d4b05e798f57e68bae1e734a43553753f | a2b598d8e89c1755f683d6b6fe35c3f1ef3e2cf6 | /search/[boj]1525_퍼즐_bfs_visitedS.py | d00568bc9cd50e8030f9a5c014ec44468580d405 | [
"MIT"
] | permissive | DongHyunByun/algorithm_practice | cbe82606eaa7f372d9c0b54679bdae863aab0099 | dcd595e6962c86f90f29e1d68f3ccc9bc673d837 | refs/heads/master | 2022-09-24T22:47:01.556157 | 2022-09-11T07:36:42 | 2022-09-11T07:36:42 | 231,518,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from collections import deque
from copy import deepcopy
dR=[0,0,-1,1]
dC=[1,-1,0,0]
def toInt(myL):
word=""
for i in range(3):
word+="".join(myL[i])
return int(word)
L=[]
iniR=0
iniC=0
for i in range(3):
temp=list(input().split())
if "0" in temp:
iniR=i
iniC... | [
"noreply@github.com"
] | noreply@github.com |
8c668b86ebbff575b31a98bff7bedba2c4eb5716 | 44c41f055e27479493c545ff074c04138c183c73 | /dot product.py | fdcf3e06336b8c5dbb9cd21f4a02d520e6993e0a | [] | no_license | gabrown08/Dot-Product | f50dadc808071d2489615c2467241712c958adde | 78985d9c8c52d3024b752a0f93c8fc039b896ddf | refs/heads/master | 2020-05-31T12:13:24.717359 | 2019-06-06T21:57:46 | 2019-06-06T21:57:46 | 190,275,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | print("DOT PRODUCT CALCULATOR by Greg Brown")
print()
n = input("input vector dimension: ")
while type(n) != type(1):
try:
n = int(n)
except ValueError:
print()
print("error: the input was not an integer. enter an integer.")
n = input("input vector dimension: ")
v... | [
"noreply@github.com"
] | noreply@github.com |
a76426fce9150b66d25e45f27cf70a5f4ef87ffc | 99e44f844d78de330391f2b17bbf2e293bf24b1b | /pytorch/torch/optim/lr_scheduler.py | 69c0da4e36cb9c95170818a997cced0fb0e7c5d2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | raghavnauhria/whatmt | be10d57bcd6134dd5714d0c4058abd56a1b35a13 | c20483a437c82936cb0fb8080925e37b9c4bba87 | refs/heads/master | 2022-12-04T05:39:24.601698 | 2019-07-22T09:43:30 | 2019-07-22T09:43:30 | 193,026,689 | 0 | 1 | MIT | 2022-11-28T17:50:19 | 2019-06-21T03:48:20 | C++ | UTF-8 | Python | false | false | 32,251 | py | import types
import math
from torch._six import inf
from functools import partial, wraps
import warnings
from bisect import bisect_right
from .optimizer import Optimizer
class _LRScheduler(object):
def __init__(self, optimizer, last_epoch=-1):
if not isinstance(optimizer, Optimizer):
raise Ty... | [
"rnauhria@gmail.com"
] | rnauhria@gmail.com |
06382ab12f45d78c3489faa902b8c74c93767a93 | e0ff495d05f773df60695934dc4f025d97f39bf3 | /Простой классификатор и метрики/Простой классификатор и метрики.py | 792371de3547a247e114999ceb9328509b69ec4f | [] | no_license | sanya1998/AI | 9c8c661627f0c3fa764bae454d2ab796fff6eb7f | 1278b67f461ead994ad30f16aa9a41fd8bab4dab | refs/heads/main | 2023-08-02T01:42:46.311026 | 2021-10-06T07:20:09 | 2021-10-06T07:20:09 | 389,052,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import matplotlib.pyplot as plt
import numpy as np
c0 = np.random.normal(190, 10, 500)
c1 = np.random.normal(210, 10, 500)
TP = TN = FP = FN = 0
c0_classif = []
c1_classif = []
porog0 = 200
for i in c0:
if i >= porog0:
c1_classif.append(i)
FP += 1
else:
c0_classif.append(i)
... | [
"noreply@github.com"
] | noreply@github.com |
47eb76acd33cc3d344a41e9fc0dd0216f4d37fff | e47b7885895d9d0aeb5c7ce1b7808e2ea46f0fa7 | /p/single-cell/20171130-BCXX/2_stats_a_histbygroup.py | 098f6ccc3e20115d7fba7b9cce903fb56aad1b80 | [] | no_license | numpde/as | 265b1cee58053058111ac239a0a983a1d3a56411 | 3e721fbb54a1248c632bacbc652f5349d9fde9f6 | refs/heads/master | 2022-12-09T16:54:10.851746 | 2020-02-07T11:53:54 | 2020-02-07T11:53:54 | 107,930,599 | 1 | 1 | null | 2022-11-21T22:42:53 | 2017-10-23T04:06:26 | Python | UTF-8 | Python | false | false | 2,862 | py |
# RA, 2017-12-02
### IMPORTS -- #
import re
import scipy
import pickle
import numpy as np
import matplotlib.pyplot as plt
from progressbar import ProgressBar as Progress
from scipy import stats
### INPUT ---- #
input_file_selected = "OUTPUT/0_select/UV/GSE75688_GEO_processed_Breast_Cancer_raw_TPM_matrix.txt-sele... | [
"romanize@hotmail.com"
] | romanize@hotmail.com |
850ac07380673e3ec79b314d5c5c986d50092181 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/transform_ucs.py | ee0962d84cada4759f9a40046f14c79071c8b632 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 4,940 | py | # Copyright (c) 2020-2021 Manfred Moitzi
# License: MIT License
import pathlib
import math
import ezdxf
from ezdxf import zoom
from ezdxf.math import UCS, Vec3
OUTDIR = pathlib.Path("~/Desktop/Outbox").expanduser()
NARROW = "OpenSansCondensed-Light"
X_COUNT = 7
Y_COUNT = 7
DX = 2
DY = 2
def add_circle(msp, ucs):
... | [
"me@mozman.at"
] | me@mozman.at |
6b83126cd8ccf646180298caaa022e36af380c52 | f9482fb366fc4689ac62f037e88e9958d22a7fd4 | /app/core/models.py | c37865a8c677b9dd214e45246356040999cee3d0 | [
"MIT"
] | permissive | robertanton81/recipe-app-api | 0bb2cafd4e65ab7c2cf375ee1a85199dc45d8502 | 8bdad1485eb20f4920b153225a94664fdf9a929a | refs/heads/main | 2023-04-30T02:44:30.582447 | 2021-05-16T18:58:12 | 2021-05-16T18:58:12 | 364,861,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, \
BaseUserManager, PermissionsMixin
class UserManager(BaseUserManager):
def create_user(self, email, password=None, **extra_fields):
if not email:
raise ValueError('email not provided')
user = sel... | [
"18146018+robertanton81@users.noreply.github.com"
] | 18146018+robertanton81@users.noreply.github.com |
a6d4461e99d50cd622d2c76d48146f24c8b01445 | 1d069747ecc89c28e2ac473705d76d1f51cd9c58 | /FindLongestWord.py | 4dc4c3506e56179ba4b3bbd47efc8e6d2bcf9386 | [] | no_license | xzeck/CodeRepo | a43e5ee7963366c4fd439d8d9e6323359416a1e0 | 6e3c0b200702308cbd52493091fd03bd433065eb | refs/heads/master | 2020-05-15T05:37:00.864764 | 2019-04-20T14:09:53 | 2019-04-20T14:09:53 | 182,107,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | Words = ["Some", "Random", "Words", "Because", "I", "Have", "To", "Add", "Words", "Into", "This", "List"]
WordLength = int(input("Enter the word Length"))
for Word in Words:
if len(Word) > WordLength :
print(Word)
| [
"ajaypnair99@gmail.com"
] | ajaypnair99@gmail.com |
736d8034c4316ab8cb9e35e849f78c18a4c8e7b0 | 015995699ea18a8bae6f0863481a79848916863f | /Heaps.py | f9ce1eed7ce8e43bd675d26c70087df4d211d97d | [] | no_license | baskotra/Solutions_in_Python | b64907a52b42d805eddce11c244f76a2e03073ad | 781f8eb4c598119a1b2caf2ee5ee805137dca005 | refs/heads/master | 2023-02-18T07:42:47.008995 | 2023-02-13T10:45:48 | 2023-02-13T10:45:48 | 273,180,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | class MinHeap:
def __init__(self):
self.heap_list = [None]
self.count = 0
def parent_idx(self, idx):
return idx // 2
def left_child_idx(self, idx):
return idx * 2
def right_child_idx(self, idx):
return idx * 2 + 1
def retrieve_min(self):
if self.count == 0:
print("No items i... | [
"noreply@github.com"
] | noreply@github.com |
f331f5519aba4dfc16930fc407ff381ba8ae81da | 9506756bc7f19961a71bbc83fd7bca04b16b673e | /eval.py | 480e4420b60b1cdd5b3787fdc35fbcf39687c705 | [] | no_license | trisongz/question-answering-lightning | 34c8b98673e98afba3be0562920fcf7ff042ed4b | a2503cc18f5de2e2879148bf07d57583f6cc83d4 | refs/heads/master | 2021-05-17T03:14:52.491455 | 2020-03-27T17:38:40 | 2020-03-27T17:38:40 | 250,593,903 | 9 | 1 | null | 2020-03-27T17:14:59 | 2020-03-27T17:03:57 | Python | UTF-8 | Python | false | false | 3,332 | py | # external libraries
import torch
import os
# internal utilities
from preprocessing import DataPreprocessor
from torchtext import data
from model import Seq2Seq
import config
# Preprocessing values used for training
prepro_params = {
"word_embedding_size": config.word_embedding_size,
"answer_embedding_size": ... | [
"tri@songzcorp.com"
] | tri@songzcorp.com |
63c4f2547bf2d570869cb45aa33b8caee1136142 | 203e4c58836e7994616b7a50ad442dd8c29f2cc0 | /src/proxy/proxy.py | ad681432dc57dd2d49c4dc0fbf99e73e87a889c2 | [
"MIT"
] | permissive | WhiteBoardDev/address-location-tool | 1fd8f6d0d5bbf5cd8b53e9447e60608902765064 | 6fe1957a405258e3f53a19a617a3b1c966992cf8 | refs/heads/master | 2020-05-03T05:08:44.444728 | 2016-01-16T06:46:18 | 2016-01-16T06:46:18 | 37,108,800 | 0 | 1 | null | 2015-12-30T16:04:49 | 2015-06-09T03:49:29 | Python | UTF-8 | Python | false | false | 564 | py | from common.config.alt_config import AltConfig
from common.config.proxy_config import ProxyConfig
import common.data_access.dao as dao
import nginx
__author__ = 'cnishina'
class Proxy:
def __init__(self, alt_conf, proxy_conf, db_conf):
self.alt_config = AltConfig(alt_conf)
self.proxy_config = Pro... | [
"craig.nishina@gmail.com"
] | craig.nishina@gmail.com |
e8dae75bef2bdbb6b0f50f1f729f81c52d20f3c6 | 3d994202c73767e045182df0a16f8c686c6e094b | /prime_factorization.py | 576b59585297fc6ce21707a91330d982d6ec044f | [] | no_license | vividsky/CSES | 760097d5ed20257f8b00f4adfafc10cacd580ce1 | 193a981439c7df7f6c837c464e84fd58b4f1b8c4 | refs/heads/master | 2023-04-28T02:02:02.055632 | 2021-05-20T18:16:04 | 2021-05-20T18:16:04 | 361,843,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | def bruteForce(n):
elts = []
for i in range(2, n):
if n%i == 0:
count = 0
while n%i == 0:
count+=1
n//=i
elts.append(f'({i}^{count})')
print('*'.join(elts))
bruteForce(18)
#if n is a composite number, then there must be a prime divisor
# of n which is l... | [
"vividsky09@gmail.com"
] | vividsky09@gmail.com |
7dbddb385507d6a89cf971fcca635178c9018a16 | 448cd0e50d1c67b71b59f9fd49b74dcb48b278be | /2outof4_dnds.py | 7c8e5ae6a74be0befcdbff7e71e40c4a38295f66 | [] | no_license | Jasondai9/BioinformaticsTools | 1d5754393b122a6a78c66a6add1b253a8d26ca38 | 215cd2d41694be86cb36c16fd4af97d251086489 | refs/heads/master | 2021-07-23T06:23:54.873627 | 2021-07-05T21:00:40 | 2021-07-05T21:00:40 | 183,302,072 | 0 | 3 | null | 2019-05-17T18:59:13 | 2019-04-24T20:28:44 | Shell | UTF-8 | Python | false | false | 4,012 | py | import glob
import os
import argparse
import sys
header_length = 0
def Intersect_Wrapper(vcf1, vcf2, vcf3, vcf4):
intersect = {}
intersect = Union(intersect, Intersection(vcf1, vcf2))
intersect = Union(intersect, Intersection(vcf1, vcf3))
intersect = Union(intersect, Intersection(vcf1, vcf4))
in... | [
"jad054@tscc-login3.sdsc.edu"
] | jad054@tscc-login3.sdsc.edu |
9f60c22771197b28373702c5ae1169c8ffa1dc8b | 21fca63f67a2c0086fed4bb9989de5603cdb8770 | /CO4/CO4-Q2.py | bff59176b7b3920ff1582ebda53728c059308824 | [] | no_license | imhari4real/Python-Programming-lab | a6f94b5ac23a472e57d9709a4f0b94e98cb7a16d | 6227b9cefe85fc47840bb45a103cbdde8dea7bfc | refs/heads/master | 2023-03-26T16:41:42.973271 | 2021-03-20T12:39:53 | 2021-03-20T12:39:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | class Bankaccount:
def __init__(self):
accno=float(input("Enter Account Number: "))
name=str(input("Enter name of Account Holder:"))
typeofacc=str(input("Enter Type of Account:"))
self.balance=0
def deposit(self):
amount = float(input("\nEnter amount to... | [
"harikrishna3054@gmail.com"
] | harikrishna3054@gmail.com |
261532ca2c00510c5ce9c8dbe6e2c6d3433977c6 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/HH3C-MP-MIB.py | 7952f4768e11aeef8d12a312c4032a70c9ce1d05 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 8,080 | py | #
# PySNMP MIB module HH3C-MP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-MP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:15:35 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
86428ef549a2fcba04528b267e7e5f05e98ad1c0 | 44ca745e2ef0e45c516a0d91174c83fdb8dc6a5c | /Leg.spider_0a/downloader.py | 57fadce80b39929b44fb79a2cf51b835d9cd94da | [] | no_license | RainmanRay/VSCODE | 211c8fbe7a033f6cb917c1d11362ec7fbe0a1998 | 45d64e9ea26a0e77d17657607f3a42385cdd75db | refs/heads/master | 2021-09-09T19:26:40.160932 | 2018-03-19T07:39:50 | 2018-03-19T07:39:50 | 125,820,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | #coding:utf8
import urllib.request
import random
import urllib3
class Downloader(object):
def download_(self,url):
if url is None:
return
agents = ['Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36','Mozilla/5.0 (Win... | [
"rainman_lei@outlook.com"
] | rainman_lei@outlook.com |
68cbb827457124b670e1bb005a1e1ff45f5037c5 | 72c1cf7e163381ff54c1d5a3260aefb85977b4a0 | /subsets_2.py | fca017b0ca3db4ea444881f0a4f7732889655387 | [] | no_license | zhexiong/LTC | 9592fa5c932c36269b05a992f58c907d63bd5e6d | aa73dcaadcefe7d9ff2ea5481ada1f4433127799 | refs/heads/master | 2020-12-24T15:31:17.465717 | 2015-03-07T22:57:34 | 2015-03-07T22:57:34 | 30,448,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | class Solution:
# @param S, a list of integer
# @return a list of lists of integer
def subsetsWithDup(self, S):
S.sort()
results = []
self.subsetsHelper(S, 0, [], results)
return results
def subsetsHelper(self, S, index, result, results):
if index == len(... | [
"zhe@Zhes-MacBook-Air.local"
] | zhe@Zhes-MacBook-Air.local |
6ab9254daab4b3ebd07b316a92703ac720156627 | 8d867601642f438697eca31adf4cece446d7517a | /Max_Area_of_Island.py | 24dff0f0bab746a3a8d450911d0686b619333d65 | [] | no_license | benjamin2300/Leecode-python | 6edbc8d024af900fd814673df74e0b1ab66f15a3 | 4d05b83931264d9cc867801cefb1447f2b487db5 | refs/heads/master | 2020-03-18T23:15:56.490694 | 2018-07-29T15:05:46 | 2018-07-29T15:05:46 | 135,392,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | class Solution(object):
def maxAreaOfIsland(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
maximum = 0
m = len(grid)
n = len(grid[0])
visited = [[0]*n for i in range(m)]
for i in range(m):
for j in range(n):
... | [
"benjamin2300.b98902064@gmail.com"
] | benjamin2300.b98902064@gmail.com |
94ea30651ad19b93245ce169cddff57ad7f7876a | e2fd1d7c4167a4cf660d978b8facfb2b88c861ef | /satcuentas/config/docs.py | df3a7326bacf3dee0d52a8e8eeae3d84977da059 | [
"MIT"
] | permissive | dacosta2213/satcuentas | 3f2054197ef217c5fb4c4f9ab84fa6103d13f0b0 | d3e329a48189e50f00462cc0d3d39346ff2179d3 | refs/heads/master | 2023-03-17T10:12:20.262717 | 2021-03-19T16:52:34 | 2021-03-19T16:52:34 | 335,777,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/satcuentas"
# docs_base_url = "https://[org_name].github.io/satcuentas"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "Satcuentas... | [
"root@ip-172-31-67-8.ec2.internal"
] | root@ip-172-31-67-8.ec2.internal |
d7ca2662615309dffb8694f7333f7b13866cb74a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/kcrt/A.py | 8a78979fdd4d2249fd6b2449edec65b0d5a74bda | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 371 | py | # -*- coding: utf-8 -*-
T = int(input())
for t in range(T):
N = int(input())
if N == 0:
result = "INSOMNIA"
else:
n = 0
digits_seen = set()
while len(digits_seen) != 10:
n += N
for x in str(n):
digits_seen.add(x)
result = str(n... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
5f477bed338ceb2d6e833ae8f6b79e32aa1680ee | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sneers.py | a803280a36259a958b364c4e672bcfc2c97f2596 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.nouns._sneer import _SNEER
#calss header
class _SNEERS(_SNEER, ):
def __init__(self,):
_SNEER.__init__(self)
self.name = "SNEERS"
self.specie = 'nouns'
self.basic = "sneer"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
844196133db7c9fb10cccf7176a74602c652261d | ebde214dce1d797648289e6fa6d0d71619f644e6 | /venv/Lib/site-packages/aliyunsdkimm/request/v20170906/GetVideoRequest.py | a441d95c97ddd958f0a389e122d5063e9ebdf921 | [] | no_license | likang2005608/IMM-Project | 80012634aabf2641a4f6f667e59be53c4918ea13 | a9a34d69b5aae4c5dd0a9f100b3b1e0983aef2f4 | refs/heads/main | 2023-01-14T19:22:04.159694 | 2020-10-28T18:56:46 | 2020-10-28T18:56:46 | 308,107,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"likang2005608@163.com"
] | likang2005608@163.com |
8fccf7816b9470fb84f1a4004f158f26b3e9010d | fa165cdb86defd6d6131ac763c38d6875c4ebec8 | /manage.py | e472a9b3db0e0dfb7893cce4f0d989c49fb87545 | [] | no_license | HongHanh120/generate-image-captcha | 3f93665393eae0df41c2bafdb2e02a1d9dd29da4 | 144aae5fed9e15c670d8eda9501e53d7dc252256 | refs/heads/main | 2023-05-16T05:41:52.215234 | 2021-06-01T19:18:17 | 2021-06-01T19:18:17 | 354,935,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'generate_captcha.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"lehonghanh.120@gmail.com"
] | lehonghanh.120@gmail.com |
c83e2817d9a860680a5a11fdeadfb2a9d45c9037 | 1793aac7856809ed8e121955056154de50a2ae8f | /c07_pycon_tw/p14_digit_stack.py | 51b37d4dba55ac1dce6921328221a67bb068261c | [] | no_license | ZpRoc/checkio | fe4af88f116f75f8197cd31d857ae5262615b6af | 126647f8971732bdf13d49092df178654dee889b | refs/heads/main | 2023-03-22T23:52:37.330312 | 2021-03-10T02:28:56 | 2021-03-10T02:28:56 | 335,871,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # ---------------------------------------------------------------- #
# Digit Stack
# Take the one off the top of the pile!
# (Numbers)
# ---------------------------------------------------------------- #
# ---------------------------------------------------------------- #
# -----------------------------------... | [
"zheng_roc@163.com"
] | zheng_roc@163.com |
2ff27b5966f4bdfbaa4b33c3ab3de32a22dabec9 | 2833556b759ce6e1ac7af7a18e2b057ada897a43 | /codes/ee18btech11033/ee18btech11033_1.py | 92b09091106b395d12ec54d06383f8cbd76a5ad2 | [] | no_license | Rishithapawar/Ketan-manual | dd3214391e5b00c56fd5d1f9c9faa2279d90bc6a | 067b7629842a541491417e62caa5e28bb5c36ad8 | refs/heads/master | 2022-05-28T16:21:34.448976 | 2020-05-02T06:39:03 | 2020-05-02T06:39:03 | 259,860,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | # License
'''
Code by Rishitha
April 29,2020
Released under GNU GPL
'''
from scipy import signal
import matplotlib.pyplot as plt
from pylab import*
import control
from control import tf
#if using termux
import subprocess
import shlex
#end if
#Defining the transfer function
s1 = signal.lti([1], [1,27,207,405])
#sig... | [
"noreply@github.com"
] | noreply@github.com |
3709d92c1d436f88dee505f6e4c80aed45dc7372 | 5340b24258f0e5ce967c64bd78d14716a1855422 | /accounts/urls.py | d324a16b43d12195a202630eb0dc4a75e3596494 | [] | no_license | kevinbeirne1/tdd_with_python | 72b71302cc5d0fd57266746f8edd18a0ab3ab86e | cb8cfe61ae0050f1ec98e0f6cac62ca09ece1907 | refs/heads/main | 2023-07-16T06:11:31.163228 | 2021-08-25T18:56:57 | 2021-08-25T18:56:57 | 383,532,296 | 1 | 0 | null | 2021-08-23T18:48:28 | 2021-07-06T16:25:07 | JavaScript | UTF-8 | Python | false | false | 334 | py | from django.conf.urls import url
from django.contrib.auth.views import logout
from . import views
app_name = "accounts"
urlpatterns = [
url(r'^send_login_email$', views.send_login_email, name='send_login_email'),
url(r'^login$', views.login, name='login'),
url(r'^logout$', logout, {'next_page': '/'}, nam... | [
"kevingbeirne@gmail.com"
] | kevingbeirne@gmail.com |
6ae443a0c42bbd0ef6e5d95ec969b5734ed0fb0b | 5a07d10d7df60bb535eeda246fcf9a074e81d839 | /usuarios/models.py | a28419770fd49970528685642605d46c286fb2d8 | [] | no_license | Keyblader/tapapp | 1da67b27ef566edfd806e08b2636797b2716589e | 694859524e988097fc2cd5d494937c868d2516a5 | refs/heads/master | 2021-01-10T16:40:49.346981 | 2015-12-09T09:36:08 | 2015-12-09T09:36:08 | 43,435,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from django.db import models
from django.contrib.auth.models import User
import os
def get_image_path(instance, filename):
return os.path.join('users', str(instance.username), filename)
class Usuario(User):
"""
Clase que representa a los usuario del sistema.
Atributos heredados de Use... | [
"i22balur@i22balur-K53SD"
] | i22balur@i22balur-K53SD |
8db1eee44a1888f6cf31974738ba1965a9129795 | d7f5fc5bbaa53c7b391eb5f98f0b6124e86425df | /day05.py | 225de65ec416240d18570b4c88877138c53df88e | [] | no_license | bednarz0/AoC2020 | 8601cda7a3092b78c4ba543902cd1482a9baea52 | 8af5e523bef2ef6d96f81bc9fcc6e299297e7c9f | refs/heads/master | 2023-02-06T04:48:39.351302 | 2020-12-29T19:00:29 | 2020-12-29T19:00:29 | 325,083,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | takenSeats = []
with open('day05.txt') as f:
for line in f:
id = 0
for c in line.rstrip():
id *= 2
if c in 'BR':
id += 1
takenSeats.append(id)
print('Part 1:', max(takenSeats))
takenSeats.sort()
i = 0
while takenSeats[i] + 1 == takenSeats[i+1]:
i ... | [
"philip.bednarz@stanfordalumni.org"
] | philip.bednarz@stanfordalumni.org |
291ab02ed979348e94062f8dfa48aa3b87c29f40 | af5c8d742226965ef73cf761782f0825fb374b7c | /string_format/parcela.py | 21d6fe1122398071d26d21ef974fc71e743cdae5 | [] | no_license | Zahidsqldba07/PythonExamples-1 | 002e99d2581c05bfb8a1766caff12991f55e11bb | a9f5bbc58cc6941a73c537b3a22d812cc9081785 | refs/heads/master | 2023-03-16T08:40:43.781000 | 2019-01-11T04:33:03 | 2019-01-11T04:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # coding: utf-8
# Passagem Aérea
# (c) Héricles Emanuel, UFCG, Programação 1
milhas = float(raw_input())
aliquota = float(raw_input())
valor_passagem = (milhas * aliquota) + 51.00
print "Valor da passagem: R$ %.2f" % valor_passagem
#Formas de Pagamento
# À vista
pag_vista = valor_passagem * 0.75
# Em 6 parcelas... | [
"noreply@github.com"
] | noreply@github.com |
8b63d992a02ca74d65638be46fc3620aceea7599 | 00851e8795c7a15c6b91016287d95ee48014fc71 | /hellowworld/venv/bin/pip3 | a6d28cd61d9f55e60b15396f8fc0f39373d90e65 | [] | no_license | VissageMo/Study | a9fdd28e4364e3aec4529fe406ae4d1430542972 | b142f03206107769b4f2e5734d16df0f9dba3aad | refs/heads/master | 2020-03-30T23:00:09.399181 | 2018-10-10T07:19:29 | 2018-10-10T07:19:29 | 151,685,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | #!/Users/mowenhao/PycharmProjects/hellowworld/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"434753117@qq.com"
] | 434753117@qq.com | |
6a470cfb956bf1d151527568e68e8e73116e5f4f | 07de6d86f41fa9e9d8de12167fd6d3a6b934b5a3 | /read_outlier_imagenet.py | 318d7227ec0c3f683a380d1b913ff24879e674e1 | [] | no_license | GabrielXia/imagenet_outlier | 0e866953b8fa79213b64824b752ec2f93a698c7a | 93e8cc44c7e6ad068a2d7c2762a3c6b414069bf2 | refs/heads/master | 2021-05-04T01:38:52.424447 | 2018-02-07T09:53:36 | 2018-02-07T09:53:36 | 120,360,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,875 | py | import gzip
import numpy
from tensorflow.python.platform import gfile
def _read32(bytestream):
dt = numpy.dtype(numpy.uint32).newbyteorder('>')
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
def dense_to_one_hot(labels_dense, num_classes):
"""Convert class labels from scalars to one-hot vectors."""... | [
"Ga.Xiajin@gmail.com"
] | Ga.Xiajin@gmail.com |
423741d8baaa38f30489498de5f63f96d1378903 | 8dd286d8a2f54a7f1c19d87bb146c11991995058 | /CLOOK.py | 5e0419603d3d697991fb742bdf339d081a954bda | [
"MIT"
] | permissive | matgd/HDD-Access-Simulation | f06e3143d302c48c6e7a9b9dbd87dc3fe9513ab7 | 665eeb9029e49167f588656de322ff55fd3706af | refs/heads/master | 2021-01-20T14:34:48.227224 | 2017-07-07T11:45:19 | 2017-07-07T11:45:19 | 90,628,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | def execute(timePerBlock, head, calloutsFile, dataProcessTime):
totalCourse = 0
totalTime = 0
listLeft = []
listRight = []
calloutsFile.seek(0)
for line in calloutsFile:
totalTime += dataProcessTime
value = int(line)
if value <= head:
listLeft.append(value)
... | [
"matgd@users.noreply.github.com"
] | matgd@users.noreply.github.com |
58dbc585102ac19af2b4e57dbebd624fc82f9067 | c5234d1e1deca9ef493de6dc87c712c386c668f0 | /butterflow/source.py | fe9d1b735b3269ba463431146aa01578eff5bb12 | [
"MIT"
] | permissive | aanand/butterflow | 192772a59436ef78b29e094f9ca4e9b5675e40b4 | 48d3fca11c21f6680839ea9789eb928791a22b3e | refs/heads/master | 2021-01-16T21:23:19.882769 | 2016-04-04T10:33:15 | 2016-04-15T00:40:38 | 56,675,962 | 0 | 0 | null | 2016-04-20T09:57:46 | 2016-04-20T09:57:46 | null | UTF-8 | Python | false | false | 1,477 | py | # use opencv's video api to get frs from a video
import cv2
class OpenCvFrameSource(object):
def __init__(self, src):
self.src = src
self.capture = None
self.nfrs = 0
@property
def idx(self): # next fr to be read, zero-indexed
return self.capture.get(cv2.cv.CV_CAP_PROP_PO... | [
"dthpham@gmail.com"
] | dthpham@gmail.com |
d248faeb0338f48307cc84d495b625eda597c96e | 41160e566426ca0dfe3fe7d52f6e44209886c9ae | /cache_helpers/decorators.py | f14cb77b95f3ea9a9eb43316e2c41c349c05eba1 | [
"MIT"
] | permissive | jorrete/django-cache-helpers | bf248e113388c657df9722160ea070b6c9e82d41 | 44f00f66de10549fb137d8e5722a06e23d375f61 | refs/heads/master | 2023-01-04T02:22:58.037915 | 2023-01-01T17:23:03 | 2023-01-01T17:23:03 | 263,586,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,757 | py | import time
import inspect
from functools import wraps
from django.core.cache import caches
from django.utils.cache import add_never_cache_headers, patch_response_headers
from django.utils.http import http_date
from .utils import check_bust_header, func_to_string
from .settings import CACHE_HELPERS_ALIAS, logger
de... | [
"jorrete@gmail.com"
] | jorrete@gmail.com |
e1647dd652acfda7928891842dd822496d6dbe08 | d8bfba950f2f8a5f3a759d3bd22f5d8e4d19c9a8 | /3. Dyna-Q/test.py | 680010cea3c415e060614b3409c4fe71dbc4fe57 | [] | no_license | zhangshuomo/Tensorflow-ReinforcementLearning | 1be754085d9b184ea4663b20747cc125239d4229 | 9df78d98ca1149fd483b921a135431f6b5bd8a09 | refs/heads/master | 2020-04-28T00:02:00.417019 | 2019-06-13T08:30:38 | 2019-06-13T08:30:38 | 174,800,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from Dyna_Q import Dyna_Q
from maze import Maze
import matplotlib.pyplot as plt
total_episodes=500
env=Maze()
agent=Dyna_Q(4, 0.3)
steps=[]
for epi in range(total_episodes):
state=env.reset()
step=0
while True:
action=agent.chooseAction(state)
next_state, reward, done = env.step(action)
agent.learn(state, ac... | [
"172810919@qq.com"
] | 172810919@qq.com |
c08ec1a39f87481356488b091beac3df81fe526e | 0905fd10bb7ea1eb0aa3808b2cafada96ea693d9 | /PIATEA/publish_bed.py | d664cd55049228a38ebf9c525095c6dea90f09a5 | [] | no_license | DRH-Samples/Samples01 | 2edb7ad563886bc50a1a6f2561f1434efc267459 | ee379145741cf886757a3441d829870c3c749a11 | refs/heads/master | 2021-05-14T04:22:31.148440 | 2018-01-08T07:19:52 | 2018-01-08T07:19:52 | 116,640,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | #!/usr/bin/env python
'''
Input a BED file. Sort it, convert it to bigBed, copy the bigBed to a specified tracks folder,
and update tracks configuration using specified names, as follow:
bigBed filename = <trackName>.bb
DB table name = piatea_<trackName>
Will abort if any of the output files already exist or if track... | [
"35213942+DRH-Samples@users.noreply.github.com"
] | 35213942+DRH-Samples@users.noreply.github.com |
a10fc098ac387efff712af758fd6e50520b7bef1 | 5ec6711503f2a586f4e42dbc3eccfd40818da9f0 | /fairseq/fairseq/criterions/label_smoothed_cross_entropy_with_diversity_penalty.py | c79e52c671b8be29ceac494f840171f57251ebbf | [
"MIT"
] | permissive | Mounika2405/LongForm-Question-Answering | 4570011e4c332c9d8878694f23e31c9230418fea | da161f5d7d6ae05155693c8580eaa01e75fbf884 | refs/heads/master | 2022-06-18T20:51:07.465979 | 2020-05-05T06:03:18 | 2020-05-05T06:03:18 | 261,249,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import math
from fairseq import metrics, utils
from fairseq.criterions import FairseqCriterion, register_criterion
def label_smoothed_nll_l... | [
"mounikakankanti24@gmail.com"
] | mounikakankanti24@gmail.com |
2facbb1ce7570c8227c25a19f561d45f47185148 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/1446. Consecutive Characters.py | 9379134d01e057544f21fef8f3b8eec1ee75c106 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py |
import time
from util.util_list import *
from util.util_tree import *
import copy
import heapq
import bisect
import collections
class Solution:
def maxPower(self, s: str) -> int:
if not s:
return 0
cur = s[0]
mx = cnt = 1
for i in range(1, len(s)):
... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
eff98383dc42096826d66231bb78ecc6c6d11d16 | 1c9e0f1d0c4a20f4f0fb1af94c15be436956aae4 | /env/bin/ckeygen | 82d74f5212e7aa5dfe7928effb95323edb5704ec | [] | no_license | shreyanshdwivedi/Chat-App | a24fa55535bdabd197d174c167a60d849191281c | 03d90d3e0b75fad88d0c0c9f141a759e0dc2ec29 | refs/heads/master | 2021-08-30T11:00:15.511608 | 2017-12-17T15:26:25 | 2017-12-17T15:26:25 | 114,406,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/home/shreyansh/Desktop/Chat-App/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from twisted.conch.scripts.ckeygen import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"shreyanshdwivedi1997@gmail.com"
] | shreyanshdwivedi1997@gmail.com | |
f31ec0922f7dcb952a00b28ebb5b1d5f9469532d | d2cbdb42f2249a21a606351ebf90b5f6ffbefc22 | /python/json/json_test.py | 1b3df1a0a775e1f07e76ee4257f13c27d4495809 | [] | no_license | tiger52/admin_helper | b61ee342413e76cdb2b43878b67a0551e5e0f8db | f2edc51309f70a251890f8d4627c9e7d40518cb0 | refs/heads/master | 2023-05-26T08:58:39.593498 | 2023-05-11T11:21:39 | 2023-05-11T11:21:39 | 189,885,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/env python3
#import argpase
import json
#from urllib2 import urlopen
with open('example.json', 'r') as file:
json_data = json.load(file)
json_data['qwe'] = '0.1'
print(json_data["qwe"])
| [
"svyatoslav.babik@gmail.com"
] | svyatoslav.babik@gmail.com |
505531df048d9fb9897b224aeb674653a6931a7a | c4dd75fa0cfbb056794606e240d1f95a3f3d8d15 | /013-LargeSum.py | 000dd5fa80cde464182fe35ea4721cb10a39575a | [] | no_license | ozturkemre/EulerProject | d8eeec4ee00c083d56c9d3194660ba6fb33cc1b2 | 647c203d54471e6da40bc47982254444b9520f12 | refs/heads/master | 2021-01-22T05:20:48.905093 | 2017-02-23T19:49:50 | 2017-02-23T19:49:50 | 81,641,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,516 | py | numbers = "37107287533902102798797998220837590246510135740250\n\
46376937677490009712648124896970078050417018260538\n\
74324986199524741059474233309513058123726617309629\n\
91942213363574161572522430563301811072406154908250\n\
23067588207539346171171980310421047513778063246676\n\
892616706966236338201363784183836841787... | [
"ozturkemry@gmail.com"
] | ozturkemry@gmail.com |
6d6fb4d607c17abee186a8a6756ed2d9b2741600 | 4bd5e7fac5e34978c6dc59b7729ead4bd857c4ea | /ex41.py | 2d5afe0cb89ec1e8bac1ea005630215c1cbd69f1 | [] | no_license | Kenneth-R/lpthw-r | 9f0da0a1afa50e77de137226e63fd6f237a53151 | 261443c62e9f0b789d551a06ffc54f01c5ae7969 | refs/heads/master | 2022-11-12T15:09:39.970149 | 2020-07-09T18:19:59 | 2020-07-09T18:19:59 | 273,118,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | import random
from urllib.request import urlopen
import sys
WORD_URL = "http://learncodethehardway.org/words.txt"
WORDS = []
PHRASES = {
"class %%%(%%%):":
"Make a class named %%% that is-a %%%.",
"class %%%(object):\n\tdef __init__(self, ***)" :
"class %%% has-a __init__ that takes self and *** params."... | [
"noreply@github.com"
] | noreply@github.com |
ccbda452276e696ecd7daf696243cd20c4943636 | 32ee33084cde028c654f04829c765c7df28f058e | /vk/tests/test_validators.py | 23845e7a137bb6a81d67d39fd5b03f90508b6093 | [] | no_license | mursigkeit22/Django-VK-Bot-public | 8859ac0a10a4500daa68c5366dcf91564692c9b6 | b2dd0053abce8d0057d7ba0dff23aa1047c24c88 | refs/heads/master | 2021-09-18T01:59:20.567900 | 2021-08-23T04:29:38 | 2021-08-23T04:29:38 | 237,951,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | from django.core.exceptions import ValidationError
from django.test import SimpleTestCase
from vk.validators import group_validator
import vk.tests.data_for_tests.group_links as links
import re
class ValidatorsTest(SimpleTestCase):
def test_split_longer_than_one(self):
value = "firstword secondword"
... | [
"lera_shel@mail.ru"
] | lera_shel@mail.ru |
5fd15f4ad8b4b0d231a28125bcd23fac5c0a1c1d | 755f92dd0b1f877cad88d3e7f47d508a4c501f84 | /greatcard/urls.py | 5f8076131d29759c04726e13f6eed72419be08f5 | [] | no_license | barkhayot/great-card | 67a37f523810c46d8efc6288a13528b3741d6f13 | a45f69aabb2faabe61232eefa4946f94ee85bd5a | refs/heads/main | 2023-05-03T21:26:19.606351 | 2021-05-20T05:51:39 | 2021-05-20T05:51:39 | 360,442,485 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | """greatcard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-bas... | [
"barkhayotjuraev@Barkhayots-MacBook-Pro.local"
] | barkhayotjuraev@Barkhayots-MacBook-Pro.local |
9cd32c91cb7a00b4410c1b31721f41b7e90a1238 | 4c2ca37f289098083a08997670f0a2a4de0c2ee8 | /blog/schemas.py | 81e5b81a63a4b17efaec3e4259410eb9d50603e0 | [] | no_license | Parmida-Granfar/fastapi-env | c8e550b4af1610efa7d41ad1688c1f1e9eb734b1 | 5d11d6266e4cc67922a9e1fb7b8b0b0d9adead6d | refs/heads/master | 2023-07-03T00:42:52.701894 | 2021-08-08T23:26:31 | 2021-08-08T23:26:31 | 393,915,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from pydantic import BaseModel
class Blog(BaseModel):
title:str
Body:str
| [
"parmidagranfar@gmail.com"
] | parmidagranfar@gmail.com |
3a6d28722c61e406a5026f62c7c0456785c49173 | 005e94c0660bd12845c5207649f3d0ebd28a8b36 | /users_postgres/venv/Scripts/easy_install-script.py | 8daffecc3d4bf94dbb9dbd869aba0a4bfb711def | [] | no_license | Plachey/Users_api | f7a0c4c391b027747b2f2d224dcf0c0f38cd75fe | f3e1337418e51456ad57d38d18812d1d4ffd85c3 | refs/heads/master | 2022-12-14T03:30:07.060238 | 2019-07-19T13:26:58 | 2019-07-19T13:26:58 | 193,487,668 | 0 | 0 | null | 2022-12-08T05:48:41 | 2019-06-24T10:53:36 | Python | WINDOWS-1251 | Python | false | false | 465 | py | #!"C:\Users\NT Алекс\Desktop\43\users_postgres\venv\Scripts\python.exe" -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"plachey1@gmail.com"
] | plachey1@gmail.com |
1e59474946fbe95e7b25ffe8197e221f21ba3765 | fbc636aee5818588ed766526960406a314f57ffe | /utils.py | 6e2e71152d26c49e893175ca14d677f761f0e081 | [] | no_license | zhaobomin/crnn.pytorch-ocr-train | 75a6e7bc2bb7a08d5fdab94e97866abd141a7c67 | cdb1b358628b17176088b9b57d0ff2205ba8019b | refs/heads/master | 2022-12-08T08:08:35.851245 | 2020-08-27T02:40:11 | 2020-08-27T02:40:11 | 290,553,627 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,312 | py | #!/usr/bin/python
# encoding: utf-8
import torch
import torch.nn as nn
from torch.autograd import Variable
import collections
from PIL import Image
import numpy as np
def resizeNormalize(img,imgH=32):
scale = img.size[1]*1.0 / imgH
w = img.size[0] / scale
w = int(w)
img = im... | [
"tonny.z@gmail.com"
] | tonny.z@gmail.com |
02cbc4c479f88a8746a7bb395013d8a80e45c248 | c6d32acea180b007de3f7a47f430834e0480b718 | /pass_gen/settings.py | 403e418c5a49c587bfae76c436fcd19c9a3ac20c | [] | no_license | ShyamSundhar1411/Password-Generator | 007c73aaff06d8929d6515f369a511465de0d796 | a82daa36550d50afb512cf4ff0a25ca6196148be | refs/heads/master | 2022-11-09T23:14:30.198183 | 2020-06-24T21:58:36 | 2020-06-24T21:58:36 | 274,777,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | """
Django settings for pass_gen project.
Generated by 'django-admin startproject' using Django 3.0.7.
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
... | [
"clashwithchiefrpjyt@gmail.com"
] | clashwithchiefrpjyt@gmail.com |
10c7deb201459fa6798bbffd639e1547f2cfd02e | 7b0157954a471ed1cc89e2581115a57ada26aed7 | /src/learn_model_mpe.py | 4dce9bcbe2e15b32c28756613db6a770539f88ce | [] | no_license | aamas-marco/MARCO | fcd9e4ba596d95e95a46a4c7648942ef2b644c5d | acf1fa7bcbda8eaaa9544b4479490dc760a9d6e1 | refs/heads/main | 2023-05-08T08:00:03.596812 | 2021-06-04T17:52:16 | 2021-06-04T17:52:16 | 371,169,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,755 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import TensorDataset, DataLoader
from torch.distributions import Bernoulli, OneHotCategorical
import numpy as np
import pickle
import random
import sys
import os
from envs.mpe_env import m... | [
"noreply@github.com"
] | noreply@github.com |
f76cd12fffb74fc1535a567ecab2a0b4f0529b44 | d7519f49b901786af381adb0e312be6dfcabe61f | /Python/WebDrVtex.py | 889578daaa1234e0d983cd31476d76c96f236bce | [] | no_license | llguedes/projectone | 41feeb9e0bc487ff246bb27d5c71779e0811e4bd | b234a40375e777197309965574301605ee40efdc | refs/heads/master | 2023-06-21T12:13:37.247547 | 2023-06-11T01:48:10 | 2023-06-11T01:48:10 | 249,778,183 | 0 | 0 | null | 2021-01-19T17:08:45 | 2020-03-24T17:49:18 | Java | UTF-8 | Python | false | false | 2,542 | py | import selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_condit... | [
"noreply@github.com"
] | noreply@github.com |
e71626aa2569cfe4fb9b86193a5f544b66ecccf1 | 4742b4d0ecee61d720bf1ae5e3e45af99e283e7e | /TCP_IP/client.py | fcf756b606ac9790c2cd63e4306748b67a09513f | [] | no_license | varshithyelleti/Socket-Programming-Using-python | 5a036760e25ab1c8566f6f72bae8315ed5b18d74 | 833873eba5b221a3c076b81c0e0d54a2c4fcc33e | refs/heads/master | 2020-06-28T11:16:16.859535 | 2019-08-02T10:53:19 | 2019-08-02T10:53:19 | 200,218,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import socket
hostname, sld, tld, port = 'www', 'integralist', 'co.uk', 80
target = '{}.{}.{}'.format(hostname, sld, tld)
# create an ipv4 (AF_INET) socket object using the tcp protocol (SOCK_STREAM)
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# connect the client
# client.connect((target, port))
clie... | [
"varshith17291@gmail.com"
] | varshith17291@gmail.com |
e4abf78a4efbf76345fb58e4b84d6f7dba73ab65 | 4fb0796c9e94ddc8db13c146200bd5a0608d07d8 | /kmeansN.py | 9aa015356895c5f680d0a41513fc2004a6d84b8f | [] | no_license | nickboy/kmeans | 34c01a48d0ee51b392fed43dc10eaa91a8db951e | 3ae84e1f0068ca900bdafd96816ed63e8f238ded | refs/heads/master | 2021-01-10T20:05:02.263583 | 2014-02-04T19:23:41 | 2014-02-04T19:23:41 | 14,995,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import csv
def parse_csv_to_array(filename):
array = list(csv.reader(open(r+filename)))
if __name__ == '__main__':
import re
import sys
def usage():
print("usage: %s k docs..." % sys.argv[0])
print(" The number of documents must be >= k.")
sys.exit(1)
try:
fi... | [
"nickboy0211@hotmail.com"
] | nickboy0211@hotmail.com |
f89b5fe7026c344d53685391568625798d60d2c3 | a0b909c19621cb03be0b391020dd6ba6f023958d | /LIB/DB.py | 5844901a9e29401f85222783e9a38356d33f6b96 | [] | no_license | Chedroni/Messanger | 6b09a383872ca684715b3157387421a5781f06f3 | 4c324a7a33c04353e89e12b26247f0205bdcc4d4 | refs/heads/main | 2023-01-01T01:07:06.842819 | 2020-10-26T21:53:56 | 2020-10-26T21:53:56 | 307,514,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import asyncio
import asyncpg
class DB:
def __init__(self, host: str, database: str, user: str, password: str):
self.conn: asyncpg.Connection = await asyncpg.connect(host=host,
database=database,
... | [
"73279432+Chedroni@users.noreply.github.com"
] | 73279432+Chedroni@users.noreply.github.com |
1140cd31d5beedbc687c1dd5eaf266ab5783b6f3 | dc123b6c82494d1c4b276dd2969481e95f37d400 | /multichat/settings.py | 92fb21f6065b71ca29602e9a75d6bfa4aac677f1 | [] | no_license | AnuhyaK/ChatApplication | 05d5aae5cfd664c0c63a43cfd6bac2700522b85f | 78eb8291df6801d53b448d0d7af9357ad56c7fa5 | refs/heads/master | 2020-03-24T06:39:36.760863 | 2018-07-27T12:06:21 | 2018-07-27T12:06:21 | 142,536,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,529 | py | """
Django settings for multichat project.
Generated by 'django-admin startproject' using Django 1.10.dev20151126161447.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings... | [
"koormachalamanuhya@gmail.com"
] | koormachalamanuhya@gmail.com |
d1e7c9124ae2c756459fb09a8a11ff7fb018d50d | 60515a1b6bb47697cf0056484c463ecd372db0c0 | /_1_Multiples_of_3_and_5/_1_while_solution.py | ae9686fe4f163f4e68ca35fa5081f33a817bc9b4 | [] | no_license | ojhermann-ucd/ProjectEuler | 7cc277a99d28d1a84162325ee5b18479e6e9b7ea | 5b84711d4c14ccbf4046a2bc25cf058347049e7c | refs/heads/master | 2021-01-01T17:49:41.539292 | 2017-10-23T22:51:20 | 2017-10-23T22:51:20 | 98,167,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | """
https://projecteuler.net/problem=1
"""
# imports
# functions
def multiple_of_n(number, n):
return ((number % n) == 0)
if __name__ == "__main__":
current = 6
output = 3 + 5
while current < 1000:
if multiple_of_n(current, 3) or multiple_of_n(current, 5):
output += current
current += 1
print(output) | [
"otto.hermann@ucdconnect.ie"
] | otto.hermann@ucdconnect.ie |
a486c1d5cd4496a625d21ae04f61e624c60c7024 | a2f5581c062d4d98d98def4e3f7ee412550a957c | /python/klm_evla_bars_gas.py | 58a32400b8db45615eb989368a3c462e972f385d | [] | no_license | vrooje/galaxyzoo2 | ccd5508da6d8f199825a0ba5a2d70c71300119ec | dbffae2b7d7b012efdfe75bd112701683ccaaa85 | refs/heads/master | 2020-12-25T13:07:55.429182 | 2013-03-15T22:31:08 | 2013-03-15T22:31:08 | 9,007,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | from astropy.io import fits as pyfits
import numpy as np
from galaxyzoo2 import fits_path
gz2_full_data_file = fits_path+'gz2_original_extra_s82norm_table_sample.fits'
p = pyfits.open(gz2_full_data_file)
gzdata = p[1].data
p.close()
pdisk = gzdata['t01_smooth_or_features_a02_features_or_disk_weighted_fraction']
pnote... | [
"willettk@gmail.com"
] | willettk@gmail.com |
6a055f51bcc0e541d0f84344d3cba0112d07b97e | 739fb0ed73e8921499db8913a277f9468b8ee2ba | /env/bin/chardetect | 6dc794fa8b79363ea90111e4d302c626944afe39 | [] | no_license | typow21/projects-01-book-soundtrack-creator | f1d1501fac671820e59585987327aa192cd60ef3 | e06cbe2a12e1988cfe6ec75b7972438258dbfd07 | refs/heads/main | 2023-01-23T15:09:21.263818 | 2020-12-06T04:20:21 | 2020-12-06T04:20:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/Users/tyler/Desktop/School/3296/labs/projects-01-book-soundtrack-creator/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tuh26432@temple.edu"
] | tuh26432@temple.edu | |
08448232ff4a693834fac9b703f40ca34e846adb | f2f9435ad73c685b3c544e7811d4b62d6bf243ac | /main.py | 3fa424b829fec1ef706dd7aebc66d2776efebe1c | [
"MIT"
] | permissive | almohajer/adfly-bot | 4a3f898cec9bdfe07afc2aeda8f21621b269ebef | 1906d9ec3d3eeaa89e0f549ad7ba6aafd63d440c | refs/heads/master | 2022-11-23T19:02:59.224443 | 2020-07-24T15:58:45 | 2020-07-24T15:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | import os
import sys
import signal
import platform
from argparse import ArgumentParser
from multiprocessing import Process
from modules.bot import Bot
from modules.lists import *
from modules.helpers import Input
from modules.webdriver import *
class Program(object):
browser=None
processes=[]
def check_support():
... | [
"debosgit@pm.me"
] | debosgit@pm.me |
2f1a3d7401b312b6b3dbbeef3cacb792e34eb756 | 206e54f4ad23386a08b634dbf1c5bc691ef76390 | /build/scripts-3.6/4scanner | 80627675ba7ac052fa3161208bd2848b3dfb8f4e | [
"MIT"
] | permissive | Python3pkg/4scanner | f604cd0e265ec96f39116270c5dedb67f4d9b7d1 | 7e647081fd6a4fb7baff1a5fd11e2cdc3d22bd20 | refs/heads/master | 2021-01-21T09:14:32.962898 | 2017-05-18T19:38:38 | 2017-05-18T19:38:38 | 91,650,218 | 0 | 0 | null | 2017-05-18T04:56:17 | 2017-05-18T04:56:17 | null | UTF-8 | Python | false | false | 1,866 | #!/usr/local/opt/python3/bin/python3.6
import argparse
import os
import scanner
import time
def main():
# Arguments parsing and validation
parser = argparse.ArgumentParser()
parser.add_argument("keywords_file",
help="file with the keywords to search for")
parser.add_argument("... | [
"raliclo@gmail.com"
] | raliclo@gmail.com | |
fedd53070c0b4a1d64e61591d4c69662132cb765 | 7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f | /proj1/tests/other-tests/oskis-angels_tests/regexperts_tests/test-proj1 | afb5b61b6d7e62ec1bf967ca1639a3a68c36a002 | [] | no_license | czchen1/cs164-projects | 0d330efef85421e611a436b165428ba0ddfb3512 | a04cafbcaafd32e518227dacf89a6d7837bf9f57 | refs/heads/master | 2020-03-27T04:03:31.727524 | 2018-08-23T21:43:46 | 2018-08-23T21:43:46 | 145,909,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,436 | #!/usr/bin/env python3
# Test compiler against suite of Python programs. Requires that pyunparse be
# on the path.
import os, sys, re
from subprocess import Popen, PIPE
from getopt import getopt, GetoptError
def Usage():
print('''
Usage: test-proj1 [ --errors ] [ --compiler=COMPILER ] [ --retain ] \
... | [
"czchen@mit.edu"
] | czchen@mit.edu | |
db894417a5ce7a21d1c10f08945c922b31f5083e | cebb4390109a8c927d3e23760fc979ae368cd979 | /aula2/pessoa.py | 35dc6c35aae40b21a959b035f7abe31669aa9de7 | [] | no_license | juniorsousa95/CursoPythonNt | 080ea40464bfb55e5df1a6db9600d772e9087423 | 88f5fc536b4e0f8bd01b805216790affc8208f13 | refs/heads/master | 2020-09-01T22:02:56.453161 | 2019-11-19T01:07:39 | 2019-11-19T01:07:39 | 219,070,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | class Pessoa:
nome =''
sobrenome =''
data_nascimento = ''
email = ''
senha = ''
def cadastrar_pessoa(self):
self.nome = input('digite seu nome: ')
self.sobrenome = input('digite seu sobrenome: ')
self.data_nascimento = input('digite sua data de nascimento: ')
... | [
"junior16vt@gmail.com"
] | junior16vt@gmail.com |
e7e0c38178d388d789d1caec87893f7825006c74 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/L/lk_morgan/molecular_spectroscopy_data_3.py | e22a7abf2fdbca5d126d00da9a5629182b65adc7 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,992 | py | ###########################################################################################
# We use a ScraperWiki library called pdftoxml to scrape PDFs.
# This is an example of scraping a simple PDF.
###########################################################################################
import scraperwiki
import... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
afe1f06f5552b50235a14bf638966624319104a3 | b645968bd54fdfdffea30d163ccd8326aeef9c21 | /archive/ray.py | caafa08b503751578f8f4a014135dbc8c973abd2 | [] | no_license | aamazan/python | 4639df95a612017b90465883f5b0a0023b9cf0e6 | a152f06efa1f3532b917adc102255961ee7ead89 | refs/heads/main | 2023-08-14T03:56:37.740029 | 2021-10-04T20:24:28 | 2021-10-04T20:24:28 | 365,370,561 | 0 | 0 | null | 2021-06-19T01:00:27 | 2021-05-07T22:52:28 | Python | UTF-8 | Python | false | false | 242 | py | import plotly.express as px
import numpy as np
fig = px.line_3d(x= np.linspace(1,10), y=np.linspace(1,10), z=np.linspace(1,10), title="a ray")
fig.update_layout(
width=400, height=400,
margin=dict(t=80, r=0, l=40, b=40)
)
fig.show()
| [
"armaan.amazan@gmail.com"
] | armaan.amazan@gmail.com |
542c67616a9037bdaccc8c044a46adb2e1129bcb | c4ac254dfcc5915a88bf0725f81d323731b09d0e | /problem16.py | 8617e501835b742d74eec4a3dafa87c07aec548e | [] | no_license | pxue/euler | 4194cad1f8ddf512141f9a9e963546f5d877adc3 | bab7c6749b33475e2a8c706e937e99b6c5cc0626 | refs/heads/master | 2020-05-31T09:08:34.092106 | 2014-12-23T22:03:02 | 2014-12-23T22:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | # power digit sum
print reduce(lambda x, y: x+y, [int(d) for d in str(2 << 999)])
| [
"xuepaul.xp@gmail.com"
] | xuepaul.xp@gmail.com |
4725719dc1935bb3f1ed2ec06813dc3887ec4a29 | c6c7af21e69c5169249420d092a86cac3270ae2c | /colors.py | bdc4d0196a9b6d0d61c516f37ee1bd890bdd749d | [
"MIT"
] | permissive | rgthree/docker-compose-boilerplate | 1580bb98adb1bd1a58ce35142c0f6beb81df3cb1 | 9ce40c5857176e08b2243d090e2977f33e93e8d6 | refs/heads/main | 2023-04-03T09:11:29.459671 | 2021-04-03T04:40:11 | 2021-04-03T04:40:11 | 353,890,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | #!/usr/bin/env python3
# Python program to print
# colored text and background
class colors:
'''Colors class:reset all colors with colors.reset; two
sub classes fg for foreground
and bg for background; use as colors.subclass.colorname.
i.e. colors.fg.red or colors.bg.greenalso, the generic bold, disabl... | [
"regis.gaughan@gmail.com"
] | regis.gaughan@gmail.com |
237881d1efcacc8a677adc585e4d749afd015af4 | ebda2abceb39e2a85210f0f0b193d3221811d582 | /5ed sozdanie.py | 4960fa60c8c4903e3fae811136d6f612453db8a8 | [] | no_license | PashaKim/Python-dnd-backstory | 783e7604a185e594810a65430d1151db8388f8bb | d13876f3530b6dfca18a9638260a77d49990a401 | refs/heads/master | 2020-03-18T15:04:02.296576 | 2018-05-26T03:15:27 | 2018-05-26T03:15:27 | 134,885,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,372 | py | # coding=utf-8
import numpy
import random
import sys
def dice(dicemin,dicemax,droll):
return numpy.random.randint(dicemin, dicemax+1, droll)
def story():
return dice(1, 20, 1)
# def Characteristics():
# Char = [dice(1, 6, 4) for x in range(0, 6)]
# Char = [sum(L[1:4], 0) for L in Char]
# Char.sort... | [
"kimrotwarrior@gmail.com"
] | kimrotwarrior@gmail.com |
08f0af57ec4745742c3f5e63cc329feb4cd6b4fc | 3b0f7fd74978eeb2bfcb35a2da4c57fb9773882b | /app/package/awesome_streamlit/database/tags.py | d4bb880bdb9ca960b7736d90241756bde3afe78d | [] | no_license | jejobueno/Churn-prediction | 3f53e510c3f09f5e609476bc3d2f1ce8d9fd3fa7 | da7b057f04d2adf84ff70be9b7faf05c6b11ceef | refs/heads/main | 2023-07-06T00:36:22.741764 | 2021-08-13T11:14:30 | 2021-08-13T11:14:30 | 392,662,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | "Module containing Tags"
from package.awesome_streamlit.shared.models import Tag
# Tags
ALTERNATIVE = Tag(name="Alternative")
APP = Tag("App")
APP_IN_GALLERY = Tag(name="App In Gallery")
ARTICLE = Tag(name="Article")
AWESOME_STREAMLIT_ORG = Tag(name="Awesome-Streamlit.org")
AWESOMESTREAMLIT_COMPONENT_AUTHOR = Tag(name... | [
"Brussel.20"
] | Brussel.20 |
9d4b0c5e23e9726aea67deaf0cd58d32e86eb555 | a8225672e294b58afe16d789ce07612cb1344d16 | /mailingchimp/urls.py | 1a814299b7c443836e3646b8d26c2f026a86098f | [] | no_license | suman1oct/mailingchimp | 2e938035f4706a6bc1741727ffac584d4d626a29 | 6b0688046089cd85de1ef5614834f3ce54dc13ba | refs/heads/master | 2021-01-19T14:09:49.375641 | 2017-05-08T06:28:54 | 2017-05-08T06:28:54 | 88,128,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """mailingchimp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"suman@dsvdsvsd.com"
] | suman@dsvdsvsd.com |
f3d5774db9f610d270e3f7040f074ee1e5c03c6a | 0618e162b5d2ad93eb53b6bb41d3483dee33493f | /cmuprints/mainpage/views.py | 39b931585d085e1a7ee33639f387ae844a411863 | [] | no_license | kkleiven/cmuprints | 390389b1a707a55fb7e556411346a678caa9fe33 | c96658d1aab12b67f3beaa4cec48e8a71493ed51 | refs/heads/master | 2020-12-11T03:34:26.284498 | 2014-11-01T21:36:35 | 2014-11-01T21:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # Create your views here.
from django.http import HttpResponse
def index(request):
return HttpResponse("Page under work. Check back soon!")
def about(request):
return HttpResponse("Project by Kim Kleiven, Jenna Choo, Clark Chen and Kirn Hans")
| [
"kirn.hans@gmail.com"
] | kirn.hans@gmail.com |
54c63b11093f44bc482f36aee5ef77f1a35e4761 | 6644c49967c9ca1c111b07ffacfa3585f54cbcf0 | /webapp/webappproject/celery.py | efa96a01c6f17e5cb65918fa3425159fad7e179a | [] | no_license | dzynin/pdf_analyst_webapp | c46f00ec3c819b9b1f3d9f7caddeb2ad77693d95 | 26c98d10857d2aea0a6d4b1a7a4d4da12802ab13 | refs/heads/master | 2023-01-27T18:39:12.595555 | 2020-12-08T19:34:25 | 2020-12-08T19:34:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webappproject.settings')
app = Celery('webappproject')
# Using a string here means the worker doesn't have... | [
"rashbits@gmail.com"
] | rashbits@gmail.com |
3f9973bc480c921afdc3a33e7fc46b8c1cf81fbf | 2bfefa31a60ca358587ddc122c6932dd27dcd486 | /src/tequila/ml/__init__.py | 65d1a42288e433387182e75e14774fb4828a6579 | [
"MIT"
] | permissive | MIBbrandon/tequila | 3d52ceb95afd973f2f26134ea16c16c2cfe4b2c9 | 8e872e33b40c7dcfd58d998a61071f66034e39df | refs/heads/master | 2023-07-07T23:54:15.733406 | 2021-07-29T22:33:33 | 2021-07-29T22:33:33 | 323,895,199 | 0 | 0 | MIT | 2021-01-10T10:51:56 | 2020-12-23T12:22:45 | Python | UTF-8 | Python | false | false | 128 | py | from .ml_api import to_platform
from .ml_api import HAS_TORCH, HAS_TF
if HAS_TORCH:
from .interface_torch import TorchLayer
| [
"sumner.alperin@mail.utoronto.ca"
] | sumner.alperin@mail.utoronto.ca |
a15aac5dc06c527f823ae24b95fc0968be55a2d6 | e99cbfa53d729f7cc00dea3593f2a18d51175178 | /Project Number System/hexadecimal_to_octal.py | 6efd23f8774d79d7a8d15fe576c3a83985f64362 | [
"MIT"
] | permissive | chandthash/nppy | 8de8b077956d0091ebef822ca9ef20eb2ee0ae8a | 228116d4efa6d28a9cdab245c6c8045844e96211 | refs/heads/master | 2021-03-21T00:29:27.759468 | 2020-02-24T02:57:24 | 2020-02-24T02:57:24 | 247,247,711 | 0 | 0 | MIT | 2020-03-14T09:30:18 | 2020-03-14T09:30:18 | null | UTF-8 | Python | false | false | 2,757 | py | def hexadecimal_to_octal(hexadecimal_number):
'''Convert hexadecimal number to octal number
To calculate hexadecimal to octal you need to first convert hexadecimal to decimal and obtained decimal to octal
For an instance, lets take hexadecimal number as 123
Step 1: Converting to... | [
"6292santosh@gmail.com"
] | 6292santosh@gmail.com |
940b1f8a56e14cf6ae960bd6fe2b982812ddca64 | 39dbf17119dc36179b383eb8f81f5966014bb488 | /2_convolutions/3_cnn.py | abd7b936fba0ac2c480ce78fc33db6cde5c6d440 | [] | no_license | shwetajoshi601/datacamp-image-processing-with-keras | 74989f41e9f47250dbb311405add1d11a6c2cc74 | 46c4f18d23c65aab6aca88af4422678cefa28c84 | refs/heads/master | 2022-04-25T09:25:56.912583 | 2020-04-26T15:51:44 | 2020-04-26T15:51:44 | 258,513,847 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | # Import the necessary components from Keras
from keras.models import Sequential
from keras.layers import Dense, Conv2D, Flatten
# Initialize the model object
model = Sequential()
# Add a convolutional layer
model.add(Conv2D(10, kernel_size=3, activation='relu',
input_shape=(img_rows, img_cols, 1)))
... | [
"shwetajoshi601@gmail.com"
] | shwetajoshi601@gmail.com |
c20ef58d20f34d8cb7e2c6df7c4607975c74d86e | 2dadf0fb64c52655704d9231b8039fc0343c5e88 | /py_wake/tests/test_blockage_models/test_selfsimilarity.py | f7695f796c9dfe4810417efb6ead3f6cf6b334b5 | [
"MIT"
] | permissive | luqidndx/PyWake | 45377245e8d35db3c7b33b27ef11b812db0a6ada | 3d046eb14c4597de49ac2fee3771b8e0e68820ad | refs/heads/master | 2022-07-02T01:40:28.575907 | 2020-05-13T16:51:42 | 2020-05-13T16:51:42 | 259,701,236 | 0 | 0 | MIT | 2020-04-28T17:06:59 | 2020-04-28T17:06:58 | null | UTF-8 | Python | false | false | 5,796 | py | import pytest
import matplotlib.pyplot as plt
import numpy as np
from py_wake.deficit_models import SelfSimilarityDeficit
from py_wake.deficit_models.no_wake import NoWakeDeficit
from py_wake.deficit_models.noj import NOJDeficit
from py_wake.examples.data import hornsrev1
from py_wake.examples.data.hornsrev1 import Ho... | [
"mmpe@dtu.dk"
] | mmpe@dtu.dk |
dca16bb72fc33ab45fd2be06786badaae0999a48 | d81d72ac7bea14be4b7ffb83e760500c85e9ae7a | /oddt/scoring/functions/RFScore.py | 491c229cf96116498ceae99bb5222eaa55d8b3a2 | [
"BSD-3-Clause"
] | permissive | mwojcikowski/opendrugdiscovery | 8f46978dc6379362ef1e812c46a4c656a1490a55 | 174b22f6a9378bfbb1f435a6e71cad13218e5e6d | refs/heads/master | 2020-04-15T20:53:07.699266 | 2018-04-25T09:30:25 | 2018-04-25T09:30:25 | 20,921,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,264 | py | import csv
from os.path import dirname, isfile, isdir
import numpy as np
from multiprocessing import Pool
import warnings
from oddt import toolkit
from oddt.scoring import scorer
from oddt.scoring.models.regressors import randomforest
from oddt.scoring.descriptors import close_contacts
# numpy after pickling gives Ru... | [
"maciek@wojcikowski.pl"
] | maciek@wojcikowski.pl |
2b7d96b9fa9ee55ba0d0dfc8dbd6f19a14e1b8dc | 22fa4d84ca9c622a97c6c101f70cc82fccddc8c7 | /sql_query/fetch_db_data_2_file_process.py | 8ced0990679e59ad27a3d5d5c68380010c1b49a8 | [] | no_license | Leon0427/distribute_or_not_determined_by_follow_prediction | 828ee7e82d56c0b57967ad585b854d7cfe6f151a | 856477d126e39b5892d3ea922e9dc8483e0907a4 | refs/heads/master | 2020-04-17T16:27:37.237100 | 2019-02-12T09:45:57 | 2019-02-12T09:45:57 | 166,741,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | # -*- coding: utf-8 -*-
import codecs
import re
from .base_dao import BaseDAO
from ..log.get_logger import G_LOG as LOG
from ..config import global_config
MYSQL_CONFIG_FILE = global_config.MYSQL_CONFIG_FILE
CONTROL_CHARS = ''.join(map(unichr, range(2, 7) + range(11, 12+1) + range(17, 31+1)))
CONTROL_CHAR_RE = re.comp... | [
"liangxiao@sunlands.com"
] | liangxiao@sunlands.com |
3c21067c5298b9d49ebf8c39c6ce7615ca3d5250 | bd8cfaf6d0f41329db1221bc4f582ce802c26dd7 | /nesus1.py | a74ba21fa8867b482872cca7fd1e302cd2c627df | [] | no_license | Berkayuguralpsahin/Python-Cyber-Security | d56698fccf71a41ef3d23454c2c1d3e2b61e232c | 12f4658dfd80dc13ef57083aa5a646fd05213a33 | refs/heads/main | 2023-07-31T05:31:45.705292 | 2021-09-08T12:26:44 | 2021-09-08T12:26:44 | 404,313,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | import requests
import subprocess
header={"X-ApiKeys": "accessKey=4e8b198bff5fbcffeceb4724787bca36ff1759a35ba73ba4e84bdc31345cce35; secretKey=85a22a8376d2dd6e5d798"}
url="https://127.0.0.1:8834/scans"
sonuc=requests.get(url=url,headers=header,verify=False)
for i in sonuc.json()["scans"]:
print(i["id"]) #scan_id=i[... | [
"Berkayuguralpsahin@hotmail.com"
] | Berkayuguralpsahin@hotmail.com |
117c69c09b9a3cdf8d05e5b3f7727d55e611a397 | 3161ba5d51b5e9c2b0d14b81620a1b13f90ddd02 | /Python/NM8.py | 00e9699f022f20c018ca9885aadc52cc0d3d4f04 | [] | no_license | bbahngju/coding-test | eeddf3846a660661be094d12ff557532eb758d36 | ce99e62e5b9ba86a449c2162a7571db09240ffa2 | refs/heads/master | 2023-09-01T15:05:02.020697 | 2021-10-04T13:47:53 | 2021-10-04T13:47:53 | 279,816,097 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | def Permutation(index, node, M):
if index == M:
for i in range(M):
print(result[i], end = " ")
print()
return 0
for i in node:
if index != 0 and result[index-1] > i:
continue
result[index] = i
Permutation(index + 1, node, M)
N, M = map(in... | [
"47097563+BJuyoung@users.noreply.github.com"
] | 47097563+BJuyoung@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.