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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33e55bfd1958962944107983ffcdbbc3ca47e3ee | 3bdd0d5e8596fd33011021a08e0d513305d88e4e | /3. Greedy algorithms/D1.py | 51938b703c09d9e5081d68c45171bb991a2cdcad | [] | no_license | Ilia-Abrosimov/Algorithms-and-data-structures | 5b5b6ebd6a2612a0c9eee2fe875d1c220b74bccc | dc3a37a8e53cbd27a3e9459a10fd9f0514d43db0 | refs/heads/master | 2023-03-30T22:34:56.724678 | 2021-03-25T18:53:58 | 2021-03-25T18:53:58 | 317,554,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | """
Реализуйте код алгоритма заполнения рюкзака, рассмотренного в лекции:
Взять наиболее ценный предмет, который поместится в рюкзак. Выбрать
следующий по стоимости товар с учётом того, что для него осталось место в
рюкзаке. Формат ввода В первой строке записано целое число с в диапазоне от
0 до 1000 — вместимость рюкз... | [
"abrosimof93@gmail.com"
] | abrosimof93@gmail.com |
82d0fbdf3749294c3488152b07e75502c0c56604 | 8611dc0e4afbf8d1d3bf37cd8f65ceaef6b75917 | /ros/robofest_jtsn/scripts/sign_detect/edge_tests.py | 679a01813b9d8e26a64e8298daab8b26c8e4d2df | [] | no_license | KaiL4eK/robofest_2018 | c968dc97e393c5a8a80375cac91ded1a6f09a8a9 | 04cd4bccb8895b2a4108783ffa1d551a46737740 | refs/heads/master | 2020-07-21T22:43:14.288518 | 2018-05-09T18:51:34 | 2018-05-09T18:51:34 | 206,990,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | import matplotlib.pyplot as plt
from skimage import feature, color, data, exposure
import numpy as np
from sklearn import neighbors, datasets
image_clr = data.astronaut()
iris = datasets.load_iris()
X = iris.data[:, :2]
y = iris.target
print(np.unique(y))
image = color.rgb2grey(image_clr)
fd, hog_image = feature.... | [
"darklexi494@gmail.com"
] | darklexi494@gmail.com |
b0fc133ca6da659e3e3be02ba9c19a90d4d55eef | e80c9f0c9d4e6e8c1e545977d057188c6aec6d8f | /main.py | b3d3e5936e8dd3004e7635ed79efd507641f618c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Somedaywilldo/Keras-progressive_growing_of_gans | b50fe0b5efc8b34651552a3bee462bf377421f75 | 684dbc6934ff012e7647da108ede30fb9c450502 | refs/heads/master | 2020-03-12T01:54:04.860181 | 2018-04-20T16:32:01 | 2018-04-20T16:32:01 | 127,539,159 | 22 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,512 | py | from __future__ import print_function
import numpy as np
import sys
import os
import argparse
###################################################################
# Variables #
# When launching project or scripts from Visual Studio, #
# input_dir and out... | [
"714439471@qq.com"
] | 714439471@qq.com |
1032ffa6cd3c1d75dcc025361cc06de377d8140c | 7ff58c1ace33aeeb9b7a9ca293aceed672f910a4 | /Experimental/experiments/defense/defense_experiments.py | 590742292280afeb7d0d76a96fdc6fc1e9a37d94 | [
"MIT"
] | permissive | mballarin97/DrosophilaNetwork | 981bd56a9bef771190dc37a89d48ffd0ae26a7b9 | 53136ce68e822c745ea23e8ccd287f00a003b928 | refs/heads/main | 2023-02-21T17:38:50.374951 | 2021-01-19T15:09:12 | 2021-01-19T15:09:12 | 314,572,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | import os
import sys
import matplotlib.pyplot as plt
from collections import defaultdict
sys.path.insert(0, os.getcwd() + '/../../')
from graphs import graph_loader
from defenses import Defense
def plot_results(graph, steps, results, title):
plt.figure(figsize=(6.4, 4.8))
for method, result in results.item... | [
"francesco.bianco.5@studenti.unipd.it"
] | francesco.bianco.5@studenti.unipd.it |
a20ced181f7e4e3f10adfaa72a54e5d3d8965fdf | a29c5402b81fe3026408755f793636ed389d6316 | /requestz/__init__.py | 330e82278b13ed9c9b79854cce0f42f1e2703cd8 | [
"MIT"
] | permissive | Originator2019/requestz | 66f90b1ec38d89f77c2a5e60e8f385501ca37417 | 6ec81e4bf520ade2ed6537f24dc0a395b3af754b | refs/heads/master | 2023-03-15T15:08:08.525057 | 2020-11-23T12:19:05 | 2020-11-23T12:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | from requestz.session import Session
def session():
return Session()
def request(method, url, params=None, headers=None, cookies=None, data=None, json=None, files=None,
timeout=None, verify=None, allow_redirects=None, proxies=None, hooks=None, stream=None, cert=None):
with Session as session:
... | [
"hanzhichao@secoo.com"
] | hanzhichao@secoo.com |
e86b50789dcbecb7f6ad62d05e5844b6f2c4183e | 8c8de9155d2b54bb48f312d1b416a0cc3e2ecf46 | /saliency_experiments/see_predictions.py | 6fbca4b88321d0a18ce4ead48878692c8d0d37e8 | [] | no_license | Emr03/HonoursThesis | 6d0e80630b7ab25a49f8bf733640c52da0ff1eca | 61d4bedc9821a15bb38ec95044bb52c014d66dee | refs/heads/master | 2021-03-22T05:17:10.518771 | 2017-12-13T04:35:01 | 2017-12-13T04:35:01 | 105,307,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,891 | py | import tensorflow as tf
from keras.models import model_from_json
from os import listdir
from os.path import isfile, join
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import image as mpimg
from PIL import Image
def weighted_pixelwise_crossentropy(y_true, y_pred):
_EPSILON = 10e-8
epsi... | [
"elsa.riachi@mail.mcgill.ca"
] | elsa.riachi@mail.mcgill.ca |
84816e0ab3cc6d482ab9ffcfccb9e7f3bd8f82ff | 3b2f4fc97d45ab1d651a573f30d1e441c31d0937 | /mysite/settings.py | 5ea98a6e913322416b29002ae6feb29ed0af9005 | [] | no_license | meerim-hub/api_project | 5e2534c37a98e2e7503263554a78b2bd457b7890 | 662d8bcb249be37a090598846bee9877509189a9 | refs/heads/master | 2023-04-25T10:26:47.166634 | 2021-05-13T11:56:45 | 2021-05-13T11:56:45 | 367,033,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,198 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from p... | [
"nobody8138@gmail.com"
] | nobody8138@gmail.com |
877ca662b6fa0eb16a8bf0b460592ab61d1300d7 | c2996718fb3a103f95b5e6bdfa5b041916f19cb5 | /utils/LayerUtils.py | 296ad47ee6bb51f78392da3af36871a6307e1df0 | [] | no_license | chinzolboo/lm2_mgis | 87fe419451598ed40e49b4737de29245f66f0989 | 6a20bdc6e47ae5f9144fab9a9e85d571b8f7d20b | refs/heads/master | 2023-03-14T10:11:08.510274 | 2021-03-03T12:17:17 | 2021-03-03T12:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,592 | py | #!/usr/bin/python
# -*- coding: utf-8
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtSql import QSqlDatabase
from qgis.core import *
from SessionHandler import SessionHandler
from ..model.ClPlanType import *
from ..model import SettingsConstants
from ..model import Constants
from ..model.LM2Exceptio... | [
"aagii_csms@yahoo.com"
] | aagii_csms@yahoo.com |
f59441c882cfd878dc3c83e229c177b548adef6f | 603c76b7a69830bce15926cd0317b740500bd39f | /hw2/logistic_test.py | 7457788f9984a8896c9c75ec42bcb150a4859e2b | [] | no_license | sky1456723/ML2018FALL | e88acca528f336a5ac6d76fdb4666c2147a08380 | c5b8675f0905f45326428d7caffd6bd860475147 | refs/heads/master | 2020-03-28T19:29:40.411810 | 2019-01-15T03:41:29 | 2019-01-15T03:41:29 | 148,982,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 14 20:02:45 2018
@author: jimmy
"""
import numpy as np
import pandas as pd
#import sys
test_x = pd.read_csv('./data/test_x.csv')
w_T = np.load('./parameter/logistic/weight.npy')
mean = np.load('./parameter/logistic/mean.npy')
stddev = np.load('./p... | [
"b05901009@ntu.edu.tw"
] | b05901009@ntu.edu.tw |
177c6a9913af5efb3d97acb588046e22dc90637a | a62196ee5894d2536a9bd95a9a9134727e5b08a6 | /trees.py | 4d6be421cce4f2cddd1c0950975d82aa996b9834 | [] | no_license | mazucanti/dict-corrector | 5af82b5f572c36b4b1daa859bbab3f891958e0e7 | 28859e166d3d83ef9c0a05afc4c14eaf1a5c07cf | refs/heads/master | 2020-09-11T18:28:33.906717 | 2019-11-25T08:10:46 | 2019-11-25T08:10:46 | 222,153,149 | 0 | 0 | null | 2019-11-25T05:41:50 | 2019-11-16T20:06:54 | Python | UTF-8 | Python | false | false | 1,470 | py | import json
import requests
class trie_node():
def __init__(self, letter: str):
self.letter = letter
self.children = []
self.word = False
self.count = 0
def add_node(root, word: str):
node = root
for letter in word:
is_child = False
for child in node.chil... | [
"daniel.mazucanti.ismart@gmail.com"
] | daniel.mazucanti.ismart@gmail.com |
70ece0de49a5a8520a39f9bb1a4d20eb03c74152 | 6ef411540ceb96746f83f0a78a95929e7ca63a8e | /.history/ex44e_20190817171813.py | ff980324b7fba9418d72fb77495c81479557000b | [] | no_license | bkapadia01/python3_hardway | 4ba5c74a2646f5308602f72a1f21722544945734 | cc9ab593353c11f1205c1a67197689671d956e17 | refs/heads/master | 2020-06-10T23:36:38.783824 | 2019-08-19T02:05:14 | 2019-08-19T02:05:14 | 193,791,525 | 1 | 0 | null | 2019-08-19T02:05:15 | 2019-06-25T22:27:33 | Python | UTF-8 | Python | false | false | 625 | py | class Other(object):
def override(self):
print("other override")
def implicit(self):
print("other implicit")
def altered(self):
print("other altered")
class Child(object):
def __init__(self):
self.other = Other()
def implicit(self):
self.other.im... | [
"Bhavin@Bhavins-MacBook-Pro-2.local"
] | Bhavin@Bhavins-MacBook-Pro-2.local |
458e27d060152d28446f71c000c6ea88539ccacf | be30ac253e585ec15108c4de0b27830426715c0a | /test.py | cb210f22cad06c5ded197991f152a06f6c26b873 | [] | no_license | arun5061/Python | 04c4e64c8819ca067704dd6e539c28b94af57029 | 88b54b2fad97521e3eb5b68915e1f1c4d4a97438 | refs/heads/master | 2020-03-25T23:44:24.732419 | 2018-10-14T06:35:03 | 2018-10-14T06:35:03 | 144,290,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | print("hi")
def test():
print("hello")
test()
| [
"arun.nettam@gmail.com"
] | arun.nettam@gmail.com |
02875b9c470e1e49cf43158adc4ff740c437c40e | 58cfffe9024ff37609eeb31a50930ce651fac57e | /RetoClase.py | a2cb6f77a1ea8ba4f9daecdc2805781a27652bfd | [] | no_license | ClaudiaMoraC/Ciclo1_Python | 5f06019798ff75f744d7e16045903b52cc211083 | 1e744a2cc798fd22bc072133447e5b918d0a813f | refs/heads/master | 2023-06-07T09:45:01.280528 | 2021-07-01T17:47:52 | 2021-07-01T17:47:52 | 382,112,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # 1. Leer un número entero y determinar si es un número terminado en 4.
# entero=input("Escribe un número entero de 4 digitos: ")
# #print(list(entero)) Lista el numero ingresado
# a=int(entero[3])# toma la ultima posicion del numero de 4 digitos
# if a==4:
# print("El número ",entero," termina en 4")
# else:
# ... | [
"claudhiiiamora@gmail.com"
] | claudhiiiamora@gmail.com |
2f38b2003a98e69d9c7f7c5073618c6adcbceba3 | c68be152d2b832053586c21317f688323376b55e | /app/busi/szxl/crypto.py | e06bab6e027a79263d406e10b8e8837229dd8ab9 | [] | no_license | arbboter/wits | f1c4a39883fdc4288fd8faa22353e63f405582c1 | 3e0b1e70d7c58d9a18ff43635a9d3fe78b396f65 | refs/heads/master | 2022-12-15T20:44:17.799380 | 2018-05-17T09:30:35 | 2018-05-17T09:30:35 | 133,790,463 | 0 | 0 | null | 2022-12-08T00:44:30 | 2018-05-17T09:26:37 | CSS | UTF-8 | Python | false | false | 1,018 | py | # -*- coding: utf-8 -*-
from app.comm.crypto import Rsa
from app import app_conf
import base64
# 加载密钥
my_rsa_private_key = app_conf.my_rsa_pri_file
my_rsa_public_key = app_conf.my_rsa_pub_file
ser_rsa_private_key = app_conf.ser_rsa_pri_file
ser_rsa_public_key = app_conf.ser_rsa_pub_file
# 加密
def rsa_enc... | [
"linwu2@cmschina.com.cn"
] | linwu2@cmschina.com.cn |
4e5fa5c16d43bc73137e466b074d43eddb41abde | 02ddba8e1fe71de046fcc5194c8427ebc53fd7a5 | /users/forms.py | 19d9f1dd7ed4894d78bcd216d417485077653f3f | [] | no_license | caglayansert/flask-blog | eaa2fb40016dae95bcf216b214cc409215321348 | 799b8cd57408dd84e35094fb802dda873f6aa3cc | refs/heads/master | 2022-12-05T17:31:01.950128 | 2020-08-23T20:19:13 | 2020-08-23T20:19:13 | 289,760,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flask_login import current_user
from flaskblog.models import User
class ... | [
"caglayann059@gmail.com"
] | caglayann059@gmail.com |
b76ba866a28d3998fa82ee61b887af2a475fcd74 | 41f4285f32bab0f4e89b463d9242bc19093b39a3 | /mysite/blog/migrations/0001_initial.py | 5373215dac1c5e924c3a3ee2f8278b35e0e37d4c | [] | no_license | VikeshBaid/Django | 878333dd01035a3c348511ce638083bec78bff1f | 420fa25c1bb75a6f66ea67a4f293f1f9bb71318e | refs/heads/master | 2020-04-07T22:55:47.502454 | 2018-12-29T12:45:48 | 2018-12-29T12:45:48 | 158,790,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | # Generated by Django 2.1.1 on 2018-09-28 08:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"vikesh.happy2@gmail.com"
] | vikesh.happy2@gmail.com |
cf26d73fd4f1709c6ef86687b1dcbfc7ed846b30 | 7fefaf6b1236ccc2ee4052c0204dbb0c5979f2f9 | /venv/Scripts/pip3.7-script.py | 04c740514ff934f638e22e6f96f5100d6f2abfac | [] | no_license | RoySato/DjangoTest | 5dd82153c1e36475ccfc82d857b1fc5a00166b54 | a7b285a09e127156e1737f535c17c4f2e5b7e6cd | refs/heads/master | 2020-07-17T11:41:56.495772 | 2019-09-03T07:19:23 | 2019-09-03T07:19:23 | 184,548,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!C:\Users\Ryohei\PycharmProject\SatoNPO\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__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.arg... | [
"ryoheisato"
] | ryoheisato |
0607a1fbfc6bb659d5f7714e81c004c8b0727d30 | e653de4fc1ecfd03f0a723a944e776cab42ce7b3 | /open_file.py | 5610766040e7999a515e3095bb78794fc2d1a211 | [] | no_license | chadat23/learn_tkinter | 73630a6e9c45a4dbb64581ecc2de5bd18d99d3fc | e7baeaa3329a53f1039d788076bb2a1a4e394d77 | refs/heads/master | 2022-04-29T19:05:24.919489 | 2020-01-13T22:01:56 | 2020-01-13T22:01:56 | 233,496,519 | 0 | 0 | null | 2022-03-12T00:15:31 | 2020-01-13T02:40:11 | Python | UTF-8 | Python | false | false | 1,097 | py | from pathlib import Path
from tkinter import Tk, Label, Button, DISABLED, SUNKEN, Radiobutton, messagebox, Toplevel, \
filedialog
import tkinter
import json
path = Path('.')
root = Tk()
root.title('Frames!!')
root.iconbitmap(path / 'images' / 'favicon.ico')
def get_defaults():
with open('open_file_defaults.... | [
"chad.derosier@gmail.com"
] | chad.derosier@gmail.com |
0962c5dff2f74b0b788738127b8a74c44f562b9e | 14e1087b9de7403c1c057e9710cd6959f438e040 | /timer.py | 38529e7200d955c9756f8c9d5b28ef7c25d6a58e | [] | no_license | chetan-techqware/new_codes | d48a7d02a0bc4c861af01ff9c058b605b4b22bfe | 3257f795d2598b3ee131a37de2693f3138de8f79 | refs/heads/master | 2023-06-12T21:32:07.991725 | 2021-06-29T05:28:08 | 2021-06-29T05:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import time
def timer(func):
def wrapper(*args, **kwargs):
start = time.time()
rv = func()
total = time.time() - start
print("time : ",total)
return rv
return wrapper
@timer
def test():
for x in range(10000):
pass
test()
| [
"chetan@techqware.com"
] | chetan@techqware.com |
0f6a427acee5f6d732cbca14c98e74e867eaea63 | f215b0f8cc1ef0c6d9c72949fe71edf9f98e9dce | /src/kms_encrypt_decrypt.py | f62a51223d3822cc561204866ca353901ff99408 | [] | no_license | parthsarangi/py-scripts | e20194504f5e2dfbdcfc99b4f93e83f51f4a8a5a | 94f93d89a1a0bc9b8fcb200d74a0c5faa49d01e4 | refs/heads/master | 2022-07-10T12:37:34.326071 | 2019-08-12T18:34:09 | 2019-08-12T18:34:09 | 196,789,721 | 0 | 0 | null | 2021-03-25T22:46:23 | 2019-07-14T03:33:10 | Python | UTF-8 | Python | false | false | 2,619 | py | import pybase64 as base64
# from google.cloud import kms_v1
# google-cloud-kms
def start_encrypt(params):
val = []
for item in params["decrypt"]:
val.append(base64.b64encode(item))
return val
def start_decrypt(params):
val = []
for item in params["encrypt"]:
val.append(base64.b64de... | [
"parth.sar@ascendcorp.com"
] | parth.sar@ascendcorp.com |
8a4e10af87e6dc2de3c55b9f8c875ed514d89320 | 0c204165819daf4e1a311009955174818cb33795 | /test/functional/rpc_bind.py | a8ef0d9d9b476aed7cfcfb4427058b24504606f3 | [
"MIT"
] | permissive | minblock/shiftcoins | 06d5f11020f71e0f6519993f17568d8f951b1138 | 03ebbb07ff103894b30fdea3b67cc31e35f64abc | refs/heads/master | 2021-05-22T23:56:31.183853 | 2020-04-05T03:13:46 | 2020-04-05T03:13:46 | 253,145,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,428 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test running shiftcoinsd with the -rpcbind and -rpcallowip options."""
import sys
from test_framework... | [
"POSTMASTER@provgn.com"
] | POSTMASTER@provgn.com |
b67290080e30bc45b05ee3f015c6778f063a453c | 2549087f04d43c8c2d4a0817736a1fba9f174d27 | /apps/accounts/decorators.py | efc10a57d3a908e62c436e3865352ab010780c12 | [
"BSD-3-Clause"
] | permissive | tarvitz/icu | a8632d43f4485b684bb686a6a89e15dc4d0eb43d | 9a7cdac9d26ea224539f68f678b90bf70084374d | refs/heads/master | 2021-01-02T09:15:38.456981 | 2016-09-09T20:29:06 | 2016-09-09T20:29:06 | 6,606,287 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
from apps.accounts.models import Invite
from apps.core.helpers import get_object_or_None
from django.shortcuts import redirect
from datetime import datetime
def check_invite(sid):
def decorator(func):
def wrapper(request, *args, **kwargs):
now = datetime.now()
... | [
"lilfoxster@gmail.com"
] | lilfoxster@gmail.com |
ecb0a73ee20955a481b3be1832c1c583e8f7d44f | ea3d85d86f28f13c6d60f4f2002b8d1d21a6074a | /Zenva/Python/Lists/ListChallanges/AppendSize.py | 86b836caa9ef8165efb2dc5a84ced86f241e0516 | [] | no_license | TaylenH/learningProjects | 934b075d2ec8fa62661e268196f70a67887e71f7 | 27b58c187c9fd93da462d91fd2be22e5ad781f6a | refs/heads/master | 2023-01-13T15:03:03.364520 | 2019-12-03T18:26:15 | 2019-12-03T18:26:15 | 193,642,579 | 0 | 0 | null | 2023-01-11T20:55:38 | 2019-06-25T05:47:25 | HTML | UTF-8 | Python | false | false | 497 | py | # Create a function called append_size that has one parameter named lst.
# The function should append the size of lst (inclusive) to the end of lst. The function should then return this new list.
# For example, if lst was [23, 42, 108], the function should return [23, 42, 108, 3] because the size of lst was originall... | [
"theynel3@gmail.com"
] | theynel3@gmail.com |
4272ddda13fd9a53289e55d25b9e911dc38e107f | 3ddc4a80624a044b9dc9e547b1b8185af617f843 | /regression_df.py | 09f63cd23d06c868ac73763670e418a14b952a55 | [] | no_license | sidpremkumar/MoneyBall-Statistics | 7227f3bd11dc0ad36cf8c5a05ca8f76552eed9bf | 047977de76c3d37d0aaeebebda6d55b42e4f480e | refs/heads/master | 2021-01-09T18:18:49.770619 | 2020-03-05T21:25:53 | 2020-03-05T21:25:53 | 242,404,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | # 3rd Party Modules
import pandas as pd
def main(games_dict, n = 10):
"""
takes games dictionary and returns single data frame ready for regression
games_dict: dictionary of games,
n: running team stats size
cols_to_add are columns which we add to default
cols_to_remove are columns wh... | [
"anthonytersaakov@gmail.com"
] | anthonytersaakov@gmail.com |
db9a73f53ee529f049229e599950929d9e27a7f9 | 3fe820ef703cb594fd0897e8ba87f05e9ab7a381 | /Q11.py | 8a7420d1b9de6700b0bbf50b3babbeda5320283a | [] | no_license | Sheetal-145/dictionery | af67c95debc7414ceeca1cf083319be753e3ef70 | 30e299e466f75fc2b66f366ecf6dd6f0bbcb72e6 | refs/heads/main | 2023-07-16T10:13:50.264496 | 2021-08-24T14:41:23 | 2021-08-24T14:41:23 | 399,352,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | d = {'a':50, 'b':58,'c': 56,'d':40,'e':100, 'f':20}
a=[]
for i in d:
a.append(d[i])
| [
"noreply@github.com"
] | Sheetal-145.noreply@github.com |
2a8270faa10bafac32ba056c7ccde6686464b98c | 078318ecbd76e8af3e3c35aa3cfe3d1d7748fb43 | /my_modules/rsa.py | 6f6a39ea010fb6ed82beca07fe5a01416569bca0 | [] | no_license | NobuyukiInoue/Example_RSA_Work | 0e466b7b62f98c17560afd92369232147dc429ed | 24438d23c76f93e9ecc3fe4daeffaacf8abe7d4c | refs/heads/master | 2020-05-16T09:31:09.878534 | 2019-05-07T01:44:13 | 2019-05-07T01:44:13 | 182,951,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | # -*- coding: utf-8 -*-
import base64
import math
import random
def calc_p_q(primeNumber_indexMin, primeNumber_Max):
"""2つの素数(p, q)を求める"""
"""primeNumber_Max以下の素数のリストを取得する"""
prime_list = sieve_of_eratosthenes(primeNumber_Max)
"""p*qの下限値をセット"""
lower = math.pow(2, 16)
while True:
"... | [
"spring555@gmail.com"
] | spring555@gmail.com |
4c8d45598b387770e901a3f5edaa9cca8ccc7d5c | f661a041434a80a9f81c48f5ebb30e50262c423a | /src/bdc/dependencyChecker.py | 9c2aaebb9d6ce0909c77400a6b505f7a1faf87b3 | [
"MIT"
] | permissive | adamjenkins1/BootableDiskCreator | 9e31f1e18ecea9038cae8e6159b7a6eedfad11f4 | 7d9b36b4125df41a03ee027b335d23da80d315c9 | refs/heads/master | 2020-03-28T00:15:21.514439 | 2018-12-21T00:50:36 | 2018-12-21T00:50:36 | 147,388,955 | 0 | 0 | MIT | 2018-10-30T08:00:52 | 2018-09-04T18:17:38 | Python | UTF-8 | Python | false | false | 1,615 | py | #!/usr/bin/env python3
"""Contains class to check required dependencies for BootableDiskCreator CLI and GUI
File name: dependencyChecker.py
Author: Adam Jenkins
Date created: 10/28/18
Date last modified: 10/28/18
Python Version: 3.6.5
"""
import sys
import shutil
class DependencyChecker:
"""class to check Bootabl... | [
"adamjenkins1701@gmail.com"
] | adamjenkins1701@gmail.com |
6ffe76e67b3a50e6829e496e8cb9ad7b747e36e7 | a84e22847d000aa3294d53f35bf59d61fba4666c | /apps/empresas/admin.py | 77accf4deba363aee21b1c83f6cf88ebc89023f0 | [] | no_license | gpxlqa/gestao_rh_django | e45ac5f51f1ce702fbb130720eda04ce8f4605c2 | 35bc561603f14fcde6bdef8d9e8418ff26a78338 | refs/heads/main | 2023-01-13T05:46:10.273944 | 2020-11-18T23:30:59 | 2020-11-18T23:30:59 | 302,779,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from .models import Empresa
# Register your models here.
admin.site.register(Empresa)
| [
"gabrielpeschl@gmail.com"
] | gabrielpeschl@gmail.com |
cd0efe1579923d92cccb3e33d6aa8d379d5696f3 | 5c98bdca28de9bb3c878ec5df139b43a6ac8f470 | /COT/disks/tests/test_iso.py | b9c9ab65fc428b82b113a351e2b00b0caacf8f16 | [
"MIT"
] | permissive | glennmatthews/cot | 2af5ca01c51086a314cf3cb2b626c1a5d3c15e92 | 0811b96311881a8293f28f2e300f6bed1b77ee31 | refs/heads/master | 2023-08-17T12:56:11.858190 | 2019-12-04T15:42:20 | 2019-12-04T15:42:20 | 21,240,523 | 88 | 24 | MIT | 2023-08-08T17:41:56 | 2014-06-26T12:54:34 | Python | UTF-8 | Python | false | false | 9,013 | py | #!/usr/bin/env python
#
# test_iso.py - Unit test cases for ISO disk representation.
#
# October 2016, Glenn F. Matthews
# Copyright (c) 2014-2017 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/COPYRIGHT.... | [
"glenn@e-dad.net"
] | glenn@e-dad.net |
ccb77f5627e45aa5a35143c74f5f33113967e24a | 22f25d369df00ae2bcee850a8ad22754eb6bb04d | /code/crispr_mismatches_counts.py | ee4878b3640fee9c45f25a3728811f7a800d65cd | [
"MIT"
] | permissive | linsalrob/PhageHosts | 4142a6bf082bc9c597bd061585e604132ec9d7e0 | d3b156b3c2dbbc0e69bf6464b644c03c1c084f8f | refs/heads/master | 2021-11-11T21:17:54.469304 | 2021-11-07T02:47:21 | 2021-11-07T02:47:21 | 28,326,376 | 19 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | """
Generate a list of NC ids of the phages and their hosts for the CRISPR
searches. We accept two different parameters, the number of mismatches
and the BLAST output file. Note that we expect the blast output file
to incldue qlen slen as the last two columns
"""
import rob
import sys
import os
import re
try:
mm... | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
1cd105a79dfdc9370646c2d54157fc7ab85ee646 | 7db61dd832bbb7a1da331286f26a7e63e0379477 | /venv/Scripts/pip-script.py | af28fcddb41975b327eb6e898e9b0cefda6e75c9 | [] | no_license | MrStubbsGCS/triangleGenerator | d41101fd939d7f7d43d2474af09e183c85c71825 | 336d9491374ce0bf73d25b70952165565f4cc5d0 | refs/heads/master | 2020-06-18T21:27:20.038973 | 2019-07-11T23:11:33 | 2019-07-11T23:11:33 | 196,454,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #!C:\Users\collin_stubbs\PycharmProjects\triangleGenerator\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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)?... | [
"collin.stubbs@greenwoodcollege.com"
] | collin.stubbs@greenwoodcollege.com |
e234b14b17d3d08b23107a846a3ac5a8aab3810b | aa35de3242d594915af2dcfe3cc6101a78ca3d87 | /array_list_tests.py | 898d3e4b19bed30388286d933a183da0ebe0f495 | [] | no_license | davyyjones/lab3 | a003c6f7982d54d231ffed55acf0da17a25cf1b6 | d3f64dcca22b2bedb7cfce0f0e66a10389af2127 | refs/heads/master | 2021-01-19T23:46:54.049031 | 2017-04-27T22:33:09 | 2017-04-27T22:33:09 | 89,025,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import unittest
class testCase(unittest.TestCase):
def test_remove(self):
t_listy = ListClass([0, 1, 2, 3], 5, 6)
self.assertRaises(IndexError, remove, None, 2)
def test_set(self):
t_listy = ListClass([0, 1, 2, 3], 5, 6)
self.assertEqual([5, 1, 2, 3], set(t_listy, 0, 5))
d... | [
"danydaniel9@yahoo.com"
] | danydaniel9@yahoo.com |
f469b74c398f33524d8134b54beb3044ba0d23d4 | c9b3a2f26314f3d300fcb9b4099ec11a2caa8b35 | /many_classes/__init__.py | 426015a1309adc7053abf61d151f78131e5a0730 | [
"MIT"
] | permissive | LJBD/lib-tango-sample-device | a52113c817ea8040f035bda4ce8d3aef66d4a3ab | 0439b64729e09f27029b87d616d5aebd635346d6 | refs/heads/master | 2021-01-02T08:54:47.509656 | 2017-08-09T15:46:49 | 2017-08-09T15:46:49 | 99,095,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | """
This package contains an example on how to run a Tango Device Server with 2
or more Device Classes.
It includes the said 2 example Device Classes and a module to run them in one
Device Server.
"""
__author__ = "Lukasz Dudek"
__all__ = ["device_one", "device_two", "run_server"]
| [
"lukasz.j.dudek@uj.edu.pl"
] | lukasz.j.dudek@uj.edu.pl |
3ee206e6b317fe4144014725ea4049942832e622 | c46f2840a2773a09e5f4a03c7d20f22f9516f2e0 | /dash_interactivity.py | bb6b74508e59778cd4721557ded6b9b95588b0e7 | [] | no_license | guruprasath16/guruprasath16 | 881d0d916043d68ff7e25b35e9ca741dec83f68a | 7bc2fb53eb1ff70546767494f8f3d5476d2bf2f6 | refs/heads/main | 2023-06-02T07:37:44.471092 | 2021-06-17T07:25:52 | 2021-06-17T07:25:52 | 370,590,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | import pandas as pd
import plotly.graph_objects as go
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash.dependencies import Input, Output
# Read the airline data into pandas dataframe
airline_data = pd.read_csv('https://cf-courses-data.s3.us.cloud-object-storage.appdomain.... | [
"noreply@github.com"
] | guruprasath16.noreply@github.com |
cc00026499a649377e8479b2603316dbbab51c1e | 2e7f4d016d9f44db9504927a8ee8071406c215bc | /hardest/binary_validator.py | 417c42e0a3ef901432b9dc94cbc48445451d56ba | [
"MIT"
] | permissive | proggga/hardest | 435e89b9b1e35425df90a0be394cff8a9cebe2f2 | 234cb41115c30a756ee11ed7c5fa41c9979d3303 | refs/heads/master | 2020-06-20T03:50:02.789663 | 2017-08-18T10:38:25 | 2017-08-18T10:38:25 | 94,193,250 | 2 | 1 | MIT | 2018-02-05T18:27:18 | 2017-06-13T09:07:14 | Python | UTF-8 | Python | false | false | 574 | py | """Binary file validator."""
import os
from hardest.interfaces.validator import Validator
class BinaryValidator(Validator): # pylint: disable=R0903,W0232
"""Validate is binary file is valid."""
def validate(self, data):
# type: (object) -> bool
"""Validate is file is ok."""
filename... | [
"noreply@github.com"
] | proggga.noreply@github.com |
865c18dda277000d31c27f85f8a47905f619d3ef | f45cc0049cd6c3a2b25de0e9bbc80c25c113a356 | /LeetCode/堆(heap)/1383. 最大的团队表现值.py | df293e7f6ac3d24e2d5c2ca9511ba0195bf928bd | [] | no_license | yiming1012/MyLeetCode | 4a387d024969bfd1cdccd4f581051a6e4104891a | e43ee86c5a8cdb808da09b4b6138e10275abadb5 | refs/heads/master | 2023-06-17T06:43:13.854862 | 2021-07-15T08:54:07 | 2021-07-15T08:54:07 | 261,663,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | """
公司有编号为 1 到 n 的 n 个工程师,给你两个数组 speed 和 efficiency ,其中 speed[i] 和 efficiency[i] 分别代表第 i 位工程师的速度和效率。请你返回由最多 k 个工程师组成的 最大团队表现值 ,由于答案可能很大,请你返回结果对 10^9 + 7 取余后的结果。
团队表现值 的定义为:一个团队中「所有工程师速度的和」乘以他们「效率值中的最小值」。
示例 1:
输入:n = 6, speed = [2,10,3,1,5,8], efficiency = [5,4,3,9,7,2], k = 2
输出:60
解释:
我们选择工程师 2(speed=10 且... | [
"1129079384@qq.com"
] | 1129079384@qq.com |
7d26c40695281ce74574f0af79b99979e5eb6f19 | 2ad47d27f4d7e7616935091ff92641a2606b8d5b | /all_news/aviation_news/views1.py | ae96e729612d6fc94db9cc92cd69bf22209af7ed | [] | no_license | arsh14jain/aviator_news | 446df9e11cc90f95f3a384d717e184eb24ea2d54 | 8485d9a212a4eb68ecbfbc360cee3dd017a86578 | refs/heads/master | 2020-12-06T20:28:20.417458 | 2020-01-08T11:23:06 | 2020-01-08T11:23:06 | 232,546,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import requests
from django.shortcuts import render, redirect
from bs4 import BeautifulSoup as BSoup
from aviation_news.models import Headline
def scrape(request):
session = requests.Session()
# session.headers = {"User-Agent": "Googlebot/2.1 (+http://www.google.com/bot.html)"}
url = "https://www.ainonline.com/a... | [
"arshjain99@gmail.com"
] | arshjain99@gmail.com |
7260be47229f42e8fd2089f31c6484f8c9f28901 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1KeY3WswmdH38Q862u9tnFC5Qks4ikSuvJ.py | dc7295f528e4260b33b58611a0d25225baf6975c | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,134 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1KeY3WswmdH38Q862u9tnFC5Qks4ikSuvJ(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
d3ee76e5c591a4c9b831c91e31ba1b7351022ac2 | 1b0265c61140a1faabcfbea5282b256bb59d4dd9 | /duplicate_remove.py | c8046294bdd189f1225abd6dd45599692fd5ed9f | [] | no_license | verdantfire/Python-Tutorial-for-Beginners-2019---Programming-with-Mosh | 63ca417c2a757ab3002b1b694ba1ab33a8551f6c | 7fe10bde939d881050226772ea75d997c5753c52 | refs/heads/master | 2020-05-29T13:42:36.416284 | 2019-03-08T12:05:31 | 2019-03-08T12:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | list=[13,7,7,7,18,13,82,333,18,15,16,90,82,7]
uniques_value=[]
for i in list:
if i not in uniques_value:
uniques_value.append(i)
print(uniques_value)
| [
"noreply@github.com"
] | verdantfire.noreply@github.com |
a40427c6e3ecafaa837fb30cf74a5112298114c9 | 70280955a5382d73e58395eba78c119a400f4ce7 | /abc/78/2.py | 0e2305c3a0ec10c37d21b773a5ee96ca15cf0788 | [] | no_license | cohock13/atcoder | a7d0e26a10a4e58690347a2e36839c2f503a79ba | d268aa68fc96203eab94d021bd158cf84bdb00bc | refs/heads/master | 2021-01-03T00:41:31.055553 | 2020-10-27T12:28:06 | 2020-10-27T12:28:06 | 239,839,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | X,Y,Z = map(int,input().split())
print((X-Z)//(Y+Z)) | [
"callout2690@gmail.com"
] | callout2690@gmail.com |
6cf99d039199f484ddbf451e74eb04266475954a | 5c4d29a2643bf2e8304c0b219b892ee1199d3a09 | /IVTp/2014/Karamyan/Karamyan 9_8.py | 337c9b7d5fbdcab725e7674f489252d941e06aca | [
"Apache-2.0"
] | permissive | MasBad/pythonintask | fc30ef1a1182ca72086396523c93899b08b5978e | 8553f1eaa481d71d2c7046b0959711b1aa56a9f6 | refs/heads/master | 2021-01-24T09:21:02.240724 | 2016-10-26T00:34:28 | 2016-10-26T00:34:28 | 69,497,511 | 1 | 0 | null | 2016-10-24T22:21:23 | 2016-09-28T19:38:53 | Python | UTF-8 | Python | false | false | 2,325 | py | # Задача9, Вариант 8.
# Создайте игру, в которой компьютер выбирает какое-либо слово,
# а игрок должен его отгадать. Компьютер сообщает игроку, сколько
# букв в слове, и дает пять попыток узнать, есть ли какая-либо буква
# в слове, причем программа может отвечать только "Да" и "Нет".
# Вслед за тем игрок должен по... | [
"karamyan.nkk@gmail.com"
] | karamyan.nkk@gmail.com |
f937574359536b682ac650ab692471ff9c88e0db | cd957535983d2e996d3db3c4e3d0f20d2fcb7e9b | /bump | c0bf9af8a73ee29befa19b5a6ff888620936c793 | [
"WTFPL"
] | permissive | silky/git-bump | 092e1e7add37c95b4924699272ece8a8cd258bb6 | 0fb04048ab72c881b566903fcf63607d689d419d | refs/heads/master | 2021-01-18T10:38:46.083556 | 2014-01-03T22:09:05 | 2014-01-03T22:09:05 | 20,876,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | #!/usr/bin/env python
import re, sys
__USAGE__ = \
"""BUMP is a semantic versioning bump script which accepts the following
mutually exclusive arguments:
-m - a "major" version bump equal to +1.0.0
-n - a "minor" version bump equal to +0.1.0
-p - a "patch" version bump equal to +0.0.1
All of these option... | [
"rmckenzie92@gmail.com"
] | rmckenzie92@gmail.com | |
2668fcd1ee7cd482eaec956800ad9e5415313b72 | 6573401ab6b19604bff5c79e66f77412fdb26b36 | /giris/giris/post/admin.py | d10ebad42221d484bf2833dbbf3848b3c26d99f1 | [] | no_license | yasar38/Python-Django-Blog-Web-Site | d2da49805c02173a2e282c9f31783b9e6271838d | a763644adeab13d433f0a9f69095058905390272 | refs/heads/main | 2023-07-25T16:30:35.338534 | 2021-09-07T13:36:23 | 2021-09-07T13:36:23 | 403,982,024 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.contrib import admin
from .models import Post
# from post.models import
class PostAdmin(admin.ModelAdmin):
list_display = ['title', 'publishing_date', 'slug'] # üstlerinde tarih ve detaylar çıkması postların
list_display_links = ['publishing_date'] #üstlerine geldiğin zaman içine gitme
list_fil... | [
"56197358+yasar38@users.noreply.github.com"
] | 56197358+yasar38@users.noreply.github.com |
2a41970083f8b69ab98c7b9f179a1f3b690ce11c | 8743912905eb2e1468ec005d6531340c9bb38d00 | /venv/bin/easy_install-3.7 | 1b9adf076246bfbd1df72306e935e42bd88be7be | [] | no_license | Sharanappabadni/robotframeworkdemo | 687366b92b813810cf2b07d3e6d03039953074ce | 3491afd3e3b13d3b63bd826b60098d25e83153a3 | refs/heads/master | 2020-07-27T03:44:52.393764 | 2019-09-17T10:40:51 | 2019-09-17T10:40:51 | 208,856,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | 7 | #!/Users/sharanbadni/PycharmProjects/RFSelenium/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?... | [
"sharanbadni@Sharans-MacBook-Pro-3.local"
] | sharanbadni@Sharans-MacBook-Pro-3.local |
1486e03f2d9b873d38d171c6e3b51981836b0c77 | cd87ee7b6fb0c8510db18ae67219a4c130a3d1c5 | /can2mqtt/bridge.py | 3635d919178e4dc1b0f9b94f4585a88dd67f81ef | [] | no_license | sadziu82/can2mqtt | 53e64779030621667144887a2d685bcabed78499 | 6422c7ce299646146389988be37847b5622e1657 | refs/heads/master | 2021-07-10T16:19:45.096382 | 2020-08-23T20:19:40 | 2020-08-23T20:19:40 | 190,271,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,606 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import can
import sys
import json
from struct import unpack, pack
from can2mqtt.operation import Operation
from can2mqtt.message import Message
from can2mqtt.device import Device
from can2mqtt.node import Node
from can2mqtt.mqtt import Mqtt
from can2mqtt.excp ... | [
"pawel.sadowski@ithaca.pl"
] | pawel.sadowski@ithaca.pl |
29d4542fbdb48121fa28c9c41ecc6168653409b7 | ef6b4973cec48057444fe29e589eef5b7f5d9898 | /result.py | 76478b0cdbb459eff405dc3fe827bac102a9bb44 | [] | no_license | mqf-ython/My_git | 1894e30770ba39fd80f28672993bb92ba6533d36 | b466b74820a5fc08b7a78e13b051f9944b45027e | refs/heads/master | 2020-11-28T05:50:10.482655 | 2019-12-23T11:59:34 | 2019-12-23T11:59:34 | 229,721,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | 这是一个py文件
| [
"mqf842562664@sina.com"
] | mqf842562664@sina.com |
fd2e76e82415d22ca41e18768408d78109ce9287 | 5ad1d0a55cd0b9ffb582fba7f85cfcab690b3ff6 | /tests/test_rottenTomatoesTvShowsBrowser.py | 4afa7ab6152e29a736667387e0c7c7c0a76754e0 | [
"MIT"
] | permissive | jaebradley/rotten_tomatoes_cli | e4624150be486596fb749a239790c2ece9cdb7a4 | 9cecf3d7028aa238f1fb07e53b702e389d94f973 | refs/heads/master | 2022-12-11T03:05:48.541756 | 2019-07-30T14:55:48 | 2019-07-30T14:55:48 | 92,615,694 | 18 | 2 | MIT | 2022-12-07T23:57:12 | 2017-05-27T18:08:18 | Python | UTF-8 | Python | false | false | 921 | py | from unittest import TestCase
from mock import Mock, patch
from data.services import RottenTomatoesTvShowsBrowser
class TestRottenTomatoesTvShowsBrowser(TestCase):
browser = RottenTomatoesTvShowsBrowser()
@patch("rotten_tomatoes_client.RottenTomatoesClient.browse_tv_shows")
def test_browse(self, mocked... | [
"jae.b.bradley@gmail.com"
] | jae.b.bradley@gmail.com |
bc7b37f363d264ba60828d96ba860e347c24131a | 9bb16f8fbf9f562f1171a3bbff8318a47113823b | /agc002/agc002_c/main.py | ba4c1ff6b1f5cc9cef6d0e52c7435d9f5a81cd6f | [] | no_license | kyamashiro/atcoder | 83ab0a880e014c167b6e9fe9457e6972901353fc | 999a7852b70b0a022a4d64ba40d4048ee4cc0c9c | refs/heads/master | 2022-06-01T03:01:39.143632 | 2022-05-22T05:38:42 | 2022-05-22T05:38:42 | 464,391,209 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python3
# from typing import *
YES = 'Possible'
NO = 'Impossible'
# def solve(N: int, L: int, a: List[int]) -> Any:
def solve(N, L, a):
pass # TODO: edit here
# generated by oj-template v4.8.1 (https://github.com/online-judge-tools/template-generator)
def main():
import sys
tokens = ite... | [
"kyamashiro73@gmail.com"
] | kyamashiro73@gmail.com |
a9f5ea7a63bc4d731f11bb06c5adae2e27a6a1c8 | f7c657bb472029b56c3dc1e7cf8bede5c7414052 | /cgi-bin/convertStatus.cgi | 5282399f6ef7bea99befb406d6e4300931c8c789 | [] | no_license | tofergregg/virtualgrade | 3210a7544e554827f1494e0c4f2ca6f46e09bb3e | 76aaa08b69876ea073d15628a8e1abd3ebfdf30b | refs/heads/master | 2021-01-17T11:18:53.247739 | 2016-05-21T18:02:38 | 2016-05-21T18:02:38 | 15,314,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | cgi | #!python2.7virt/venv/bin/python
import cgi,sys,os
import cgitb
import subprocess
import uuid
import threading
cgitb.enable()
dataDir = "../data/"
logDir = "log/"
sys.stdout.write("Content-Type: text/plain")
sys.stdout.write("\n")
sys.stdout.write("\n")
sys.stdout.flush()
form = cgi.FieldStorage()
convertId = form[... | [
"cgregg@cs.tufts.edu"
] | cgregg@cs.tufts.edu |
e143191f39ab16858822f4ae63456d0a9efd03a7 | f200708b8e5a67074f6c805a736311e9b1637532 | /part_02_system_programming/part_2_3_concur/day9/test.py | 939992b2b6b0079e70039b5ac18e2175d75becdf | [] | no_license | vivid-ZLL/tedu | 48b78951eae07f5f0433ba85f7cc4e07cd76011d | 319daf56d88e92f69ee467e0ccf83c01367ed137 | refs/heads/master | 2021-04-23T22:40:11.391574 | 2020-01-25T11:26:56 | 2020-01-25T11:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class A01:
def __init__(self, a = "998"):
self.a = a
# def f01(self):
# print("A01")
class B01(A01):
def __init__(self):
super().__init__()
def f01(self):
print(super().a)
c01 = B01()
print(c01.a)
| [
"283438692@qq.com"
] | 283438692@qq.com |
14fcbe7c9e598d53e6d34ada297850aec3f245aa | c3f6936220f76c056b5b6349a2adb0079e651d90 | /tethysapp/earth_engine/app.py | f47105ea16e560b01bbf64f16a46d4a992eeb307 | [
"BSD-3-Clause"
] | permissive | kasitif/tethysapp-earth_engine | d4fbe0398e68caf847b9e14b6e2bfd8bb49a8671 | 8d029d12cfd37f8ed45594c85dd49de041c9f180 | refs/heads/master | 2022-11-28T12:14:51.946940 | 2020-08-12T09:39:36 | 2020-08-12T09:39:36 | 286,971,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | from tethys_sdk.base import TethysAppBase, url_map_maker
class EarthEngine(TethysAppBase):
"""
Tethys app class for Earth Engine.
"""
name = 'Earth Engine'
index = 'earth_engine:home'
icon = 'earth_engine/images/earth-engine-logo.png'
package = 'earth_engine'
root_url = 'earth-engine'... | [
"kasitif@gmail.com"
] | kasitif@gmail.com |
90dee1592f22498dfffa373aab92d94898758b53 | 787a4bddd35110f96c7a133a9ce394d1b949f8dc | /01_Deep_Learning/00_Courses/PyTorch_Udemy/Course_notes/Summarize materials/3_overfitting.py | 239eadbdba9ee21f57ae58cef42838ebe134f8f2 | [] | no_license | rzhang0716/Data-Science | 8310b2e49f417633f88046225abb6df7447d80c5 | c456d3223d22b494a77d8142a1b0f9b53cec2bab | refs/heads/master | 2023-08-31T15:03:03.953547 | 2023-08-09T18:32:26 | 2023-08-09T18:32:26 | 244,043,432 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,063 | py | # -*- coding: utf-8 -*-
"""3. Overfitting.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1HBtFuLMd-Knfd8_KokRiZ4y7UB91VVdD
"""
# import libraries
import torch
import torch.nn as nn
import numpy as np
import matplotlib.pyplot as plt
# import dat... | [
"noreply@github.com"
] | rzhang0716.noreply@github.com |
110af786a26a7419a6d9df56b0aaf0f906a45537 | c0b0041ceb7e7a291976ae08932e7ae927c3d95a | /mte/exeptions.py | 00ef517ba985342d2786051ffdd79b663ca0cae1 | [] | no_license | jibingli/mte | 07bba299f00f5cff28a09fc1b2d2b7d2fd859a06 | 5d3574aec0d31e6f45545dfc2579b5a653d399d1 | refs/heads/master | 2021-05-15T14:28:49.773588 | 2017-11-03T07:18:32 | 2017-11-03T07:18:32 | 107,210,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # coding: utf-8
class MyBaseError(BaseException):
pass
class ParamsError(MyBaseError):
pass
class ResponseError(MyBaseError):
pass
class ParseResponseError(MyBaseError):
pass
class ValidationError(MyBaseError):
pass
class FunctionNotFound(NameError):
pass
class VariableNotFound(Name... | [
"jibing.li@dianrong.com"
] | jibing.li@dianrong.com |
63c98a4d42c9af9236971f85199473a55734bed9 | 7c6b05dd2ea67c51d629ef70d3867a3d5ca1cb9a | /py/scrape8.py | ae87ebf176a016ca0c753e30c5c1ded749f059c9 | [] | no_license | Nick-Henderson/genre-from-lyrics | 579fa135f5d859f0c1832d91e1dea68e8f9fadb9 | efadbb1a2d2c4325b6666f45c818a18b47cba9f8 | refs/heads/main | 2023-02-10T12:34:39.300735 | 2021-01-12T20:29:50 | 2021-01-12T20:29:50 | 326,758,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # Make HTTP requests
import requests
# Scrape data from an HTML document
from bs4 import BeautifulSoup
# I/O
import os
# Search and manipulate strings
import re
import pandas as pd
def scrape_song_lyrics(url):
try:
page = requests.get(url)
html = BeautifulSoup(page.text, 'html.parser')
lyri... | [
"henderson.nicholasT@gmail.com"
] | henderson.nicholasT@gmail.com |
371ce404788449552f8fd540973c2da2197ceb76 | 888b8541150f498e15457d7c2f62545b6ed1e213 | /first missing positive integer.py | dc89ad3d3191b2be7b143ed0e8e8fbaef7f3cc34 | [] | no_license | densaiko/coding-challenge | fb8d2f4a8524d293136d8752f9f57db7eecb3567 | 8f10cd8781e4747bb4dc9e44213e2b52bd6602d0 | refs/heads/master | 2022-08-03T17:00:02.467525 | 2020-06-01T00:11:54 | 2020-06-01T00:11:54 | 261,627,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | # First missing positive integer is one of the easy coding challenge in Leetcode, HackerRank and others.
# Here is the list of number [1, -2, 4, 2, 5, 7]
# You have to find the first missing positive integer in that list.
# The solution is so simple. I consider on the fastest solution based on time and space complex... | [
"noreply@github.com"
] | densaiko.noreply@github.com |
6c0c0e121d69521b40dad3083246cc459574ef82 | 5a405dc212f91a75752d7987e32d5576a4ba71b2 | /eor/models/sqlalchemy_base.py | 2e2bf51dae728346af615f6623ab1fb74e45ff1c | [] | no_license | pthorn/Eye-Of-Ra | 58651c1eac9e1912bc68e48aa25153545200a707 | 959a049458de74fb9228acba1f074f3fa56f626f | refs/heads/master | 2020-05-17T00:51:51.914658 | 2016-02-24T11:56:45 | 2016-02-25T11:57:02 | 23,795,644 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | # coding: utf-8
import logging
log = logging.getLogger(__name__)
import sqlalchemy
from sqlalchemy import engine_from_config
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from zope.sqlalchemy import ZopeTransactionExtension
... | [
"p.thorn.ru@gmail.com"
] | p.thorn.ru@gmail.com |
7223483feb8d9ce151a8390f2c7ab38831abbdff | aec4eaad5bcfe98fdef38f57afeadd170370827b | /test/test_git_blob_response.py | bb48f823ba9654ae306d3baf6cc1c4705f05e77b | [] | no_license | mastermanas805/giteapy | d2d0810a45ba4ab2c15711eae62cc66698bafbc2 | 001e9b66795a6d34146c8532e9d8e648d5b93e59 | refs/heads/master | 2023-06-02T07:33:01.136554 | 2020-01-14T11:53:36 | 2020-01-14T11:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapy
from giteapy.models.git_blob_respons... | [
"rajesh.p.hegde@gmail.com"
] | rajesh.p.hegde@gmail.com |
fbf9dd1ed06fc32111e4f6654332c0b7ca5c45af | e6ef20050f7e4167719a26ac78a2830014ccdc0a | /sistema_tesis/urls.py | 8696cc2c17e597e445bcfe1f2726f67b339217a6 | [] | no_license | danielmesa20/sistema_dase | d4b559c8582edd3d5975ef25106c8800c8577e44 | 0977ef3b7bb5ebe3ac574b42454f6083856ca66d | refs/heads/master | 2020-12-08T02:21:40.673357 | 2020-01-26T02:16:25 | 2020-01-26T02:16:25 | 232,858,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """sistema_tesis URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"daniel.mesa@correo.unimet.edu.ve"
] | daniel.mesa@correo.unimet.edu.ve |
926bfb02f0293ab529bb2bd939bcdd2cd936118c | 06b5d50d92af07dc7c2d9cc24922a2a906f7b88c | /church/main/models.py | e40ee931c0616fe4fd17e52e097f5659a351b2e3 | [] | no_license | ShehanHD/Django | 4fe6d841e38450b028765cc84bbe7b99e65b9387 | bc855c16acad5d8f1f5a24dc68438749704935fd | refs/heads/master | 2021-05-20T12:57:36.980701 | 2020-04-25T13:03:43 | 2020-04-25T13:03:43 | 252,305,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | from django.db import models
from datetime import datetime
from ckeditor.fields import RichTextField
# Create your models here.
class event(models.Model):
Event = models.CharField( max_length=50)
def __str__(self):
return self.Event
class services(models.Model):
img = models.ImageField(upload_to... | [
"51677228+ShehanHD@users.noreply.github.com"
] | 51677228+ShehanHD@users.noreply.github.com |
d3f56ad470fc6b8eee4653ef42415876f7527f1c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/pose_estimation/Hourglass_for_PyTorch/mmpose-master/docs/conf.py | 0275ff35cbed20eb780a081e77423b8fec306ee0 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,281 | py | # -*- coding: utf-8 -*-
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
942a568fad26ba3a231acd697bdf6e42c49421a4 | c0d670be24ffdf6e885d3d17cd4b263792cba134 | /make_scaled_rms.py | eea87f93dde9bb2949e1ac9154f3ab5a7d38b67e | [] | no_license | nhurleywalker/sf_spectral_lines | 5d3ed9f28cba5d64663d053f778b02f22f87b178 | 9ccac2ed73ac757804fa2667f42b56b3495b6a16 | refs/heads/master | 2020-07-09T08:03:35.914661 | 2020-04-29T05:21:48 | 2020-04-29T05:21:48 | 203,921,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
from astropy.io import fits
import numpy as np
import sys
print "make_scaled_rms.py <input cube file> <slice number> <spectral rms file>"
infits = sys.argv[1]
inslice = sys.argv[2]
hdu = fits.open(infits)
subset = hdu[0].data[:, int(inslice)-1, 1000:1250, 1000:1250]
rms = np.nanstd(subset)
hd... | [
"nhw@icrar.org"
] | nhw@icrar.org |
726a7d0da4908e19868bd2b398f98e7fe59590ab | 025b2a1db533b9cda0d0765d23389eecced55c06 | /models/FCSMNet.py | 8df6697a90088235a2401f29c1a6a28a66c42a7a | [] | no_license | yokosyun/FCSMNet_LR | 9d9504c0e4a097c65dfb1a318b78e3ff4c81b0a5 | c48d0011f5ac281ceb80bd7878405ab1b20e72ac | refs/heads/main | 2023-05-15T09:42:21.515550 | 2021-01-26T00:48:52 | 2021-01-26T00:48:52 | 331,175,051 | 0 | 0 | null | 2021-01-26T00:48:53 | 2021-01-20T02:56:04 | Python | UTF-8 | Python | false | false | 5,751 | py | from __future__ import print_function
import torch
import torch.nn as nn
import torch.utils.data
from torch.autograd import Variable
import torch.nn.functional as F
import math
from submodule import *
import sys
sys.path.append('../')
from utils.activations_autofn import MishAuto
from utils.selectedNorm import *
Act =... | [
"yoko.syun.1408@gmail.com"
] | yoko.syun.1408@gmail.com |
c26e4f66872c3610637b93a586e13eaf42f13c53 | f2e55a3ee86ece26035755141f34633e8110c27d | /misc_test.py | 21b4be5f81e032451a6e9b10b057737273036959 | [
"MIT"
] | permissive | seanstappas/qbert-reinforcement-learning | 2449372f508d4b9e274768321d1906b20809d6c4 | 3d9c8b0821ba6df07d1711c0199a6e876ebc4ad7 | refs/heads/master | 2021-03-30T17:53:13.865786 | 2017-11-07T04:54:53 | 2017-11-07T04:54:53 | 107,693,096 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | import numpy as np
from csv_utils import save_to_csv, read_from_csv
from pickler import save_to_pickle, load_from_pickle
from plotter import plot_scores
INITIAL_PARAMETERS1 = [
[0],
[0, 0],
[0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0],
]
INITIAL_PARAMETERS2 = [
[0],
[0... | [
"seanstappas@gmail.com"
] | seanstappas@gmail.com |
3f4047b169d4bd87b9690e9e7255d65e465edd15 | a259ef5aa97b04dba9dc300c9f07cd92532db9df | /mailing/views.py | ebc5a7100199be2e8b38ed42f15711a57fea4414 | [] | no_license | Pavan-Red-E/ubuntu | c73102ecbdce97438660cbc0ccf25e46c6e42f90 | 4d196d91c48dcc7a8991134597c22e8bc6368b97 | refs/heads/master | 2022-12-11T08:53:28.359750 | 2020-02-22T11:23:29 | 2020-02-22T11:23:29 | 242,320,880 | 0 | 0 | null | 2022-12-08T03:39:57 | 2020-02-22T10:20:06 | CSS | UTF-8 | Python | false | false | 462 | py | from django.shortcuts import render
from django.core.mail import send_mail
from django.conf import settings
# Create your views here.
def email(request):
subject = 'Thank you for registering to our site'
message = 'it means a world to us '
email_from = settings.EMAIL_HOST_USER
recipient_list ... | [
"pavanreddykandula56@gmail.com"
] | pavanreddykandula56@gmail.com |
468152c3e796a1614a72459477e6f8770924b024 | fafbdf6c37caf5a0cbb74e0bad1f18dfeb3f1692 | /ch3/fig3-13.py | 4b94babf4a2a06c4d09b39e45aa9fa581e18e420 | [
"MIT"
] | permissive | qwerty239qwe/BEBI-5009 | e09c9f32e2e6e333160920ac929c7f81e266fbe0 | 6265d2912db5b26aea57d8f09439657fae9b76be | refs/heads/master | 2021-04-06T20:31:11.970801 | 2018-03-15T04:06:01 | 2018-03-15T04:06:01 | 125,300,068 | 0 | 0 | null | 2018-03-15T02:13:57 | 2018-03-15T02:13:57 | null | UTF-8 | Python | false | false | 396 | py | """Figure 3.13: Comparions of GMA and Michaelis-Menten rate laws"""
#%%
import numpy as np
import matplotlib.pyplot as plt
t = np.linspace(0, 4)
plt.plot(t, 2 * t / (1 + t), 'k', linewidth=3, label='Michaelis-Menten')
plt.plot(t, t**0.4, 'k--', linewidth=2, label='GMA')
plt.xlabel('Substrate concentration (arbitrary u... | [
"sosiristseng@gmail.com"
] | sosiristseng@gmail.com |
eac3d4a782335a1f9e3a436649c4379eb329ed8c | 2371c3a56bc7daa8b40d3701ca43b714680fdee4 | /cbtstudy/asgi.py | efe5cce2e2936409380b2c6ca01e7530a02513d0 | [] | no_license | poteto1212/cbtstudy | 5ba2d0c7e51fba715ae86c9c1fb781ad27cd9e62 | a5e07c89d9aa40572471403d6193c4298bc372d6 | refs/heads/master | 2023-05-18T01:58:48.661487 | 2021-06-10T23:55:08 | 2021-06-10T23:55:08 | 374,130,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for cbtstudy 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"you@example.com"
] | you@example.com |
477d1c6e00499b43ef2f5bb2ab93e46cd296fbc5 | 5baff1ec4b5db1c1001c150d73b1fe78caf45b34 | /database_setup.py | c99e235fe02f58c28e0047bc84e90497947967c4 | [] | no_license | judyzaratan/clothing_cat | 10f0c319e628eca2014e30cb7f8f36d7637449c6 | 2232460fc47e221c6726800b4c11f24fb0304b02 | refs/heads/master | 2021-06-24T12:52:15.197338 | 2017-09-07T19:29:34 | 2017-09-07T19:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | import sys
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy import create_engine
Base = declarative_base()
class User(Base):
__tablename__ = 'user'
id = Column(Integer, pri... | [
"mochicat8@gmail.com"
] | mochicat8@gmail.com |
df31dd5ada4fedb8ca1246e14d401d81113a57db | 74675a3ca63eb6cf8f1de989eef5c7b2a892ea4c | /xpath爬取百度好听轻音乐.py | 9c82dfbc7feaed48f16fa656cd58295acea229d6 | [] | no_license | michael-wy/Reptile | 19285cd6e814f5ad524ace4b421f5bc83d35ef53 | b9979c14f3f2fee511c442f48a6115442c717f59 | refs/heads/master | 2021-03-11T13:32:01.669819 | 2020-03-11T14:15:48 | 2020-03-11T14:15:48 | 246,532,991 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | import requests
from lxml import etree
import re
import time
headers={
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
}
songID=[] #歌曲sid
songName=[] #歌曲名字
songNamee=[] #歌曲作者
for i in range(0,2):
u... | [
"254208240@qq.com"
] | 254208240@qq.com |
4dedc11bbcb4cf48033088f8cb65e49f59faa0ed | a27e12f7c1c53fa246b7e806724124266459379a | /2020-d9.py | 4d6245551524d8449d46a7ec6a6219d19c46516e | [] | no_license | budidino/AoC-python | f5fb2e9f3c1e1c341b123182fdcfefee7a74603f | 9e10db2dcbb59808614237389ebfb9745ece078b | refs/heads/master | 2021-07-09T15:21:14.680716 | 2020-12-18T23:23:41 | 2020-12-18T23:23:41 | 225,146,155 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | INPUT = "2020-d9.txt"
numbers = [int(line.rstrip('\n')) for line in open(INPUT)]
from itertools import combinations
def isValid(numbers, number):
for num1, num2 in combinations(numbers, 2):
if num1 + num2 == number:
return True
return False
def findSuspect(numbers, preamble):
for index, number in en... | [
"budidino@gmail.com"
] | budidino@gmail.com |
59295628eac2b05f473fb7d9ec72948296bdf797 | d03c7dda8d053530b0df136a6a43e4d876742386 | /expedientes/migrations/0001_initial.py | 381a7c61cbf0390b737abc3f4ff8e7aec452d37a | [] | no_license | ConsultarPlus/Modelo_Andres | 89ee0a59ddef30a3b5cab0e05cf58b183044152d | 726a78155403de5fc537ae83d6a04125b1a0e4ba | refs/heads/master | 2022-03-15T10:58:24.068449 | 2019-12-14T15:43:00 | 2019-12-14T15:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 2.2.7 on 2019-11-18 17:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Expedientes',
fields=[
('id', models.Intege... | [
"software@consultar.org"
] | software@consultar.org |
d160d661f6c4804357472bf27bc7cb347402704b | 35f93b1c89e68f776e21a57307c132e8cb5f9131 | /validator/atompubbase/tests/pretty-test.py | b86262844a05de4c3a11668b76b446077be547e8 | [] | no_license | myblup/atompubbase | a0d1cff6fab39d557cf6a56fedfa9f03df6d22e6 | 6b25900bbda2e05592011d75f43e63e401706b67 | refs/heads/master | 2020-12-28T22:01:02.993148 | 2013-04-08T13:39:45 | 2013-04-08T13:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | from pretty import pretty
try:
from xml.etree.ElementTree import fromstring, tostring
except:
from elementtree.ElementTree import fromstring, tostring
src = """<html:div xmlns:html="http://www.w3.org/1999/xhtml">
<html:p >I took a couple of days off work
and we drove down to Florida to visit family in "The... | [
"strycore@gmail.com"
] | strycore@gmail.com |
cf25c6e6015646681869607d42c0638e8d9c3e7b | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_09_01/aio/operations/_network_security_groups_operations.py | 8a70c96f53bcefee3a26a39802d0d9277be36791 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 30,507 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
529b47a43c93136a63a93b3c54e0538cc7fc6563 | 6d63708f42e157815a788398dc2d9fb2d05ae2bb | /hackernews/hackernews/items.py | 68d24d8d8311e3a81956ffa7b304ab7234b2ada8 | [] | no_license | vipulsingh24/Scrapy | 0a6b22b2552f010f9c243b40348d523f2c6b1799 | 3ec5337448b81a06f532500260c359025cc4ff8d | refs/heads/master | 2021-04-06T19:43:28.035983 | 2018-04-08T14:26:47 | 2018-04-08T14:26:47 | 125,396,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Hackern ewsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
link_title = scrapy.Field()
url = sc... | [
"letsmailvipul@gmail.com"
] | letsmailvipul@gmail.com |
cac4c21a91c4d05fff833cb225997c74a84f67a9 | 4996f8a222d64c9af4dca815ab0055944365c753 | /2-c9/app.py | 5913fd04834b8ca4a1a92a5139d65b656035f5a3 | [] | no_license | harvey1114/shiyanlou | ad118e7d36205e6571799ad3b2d2a29ae6d244ad | 871dd85ca09017324f950310c4f6ba4b6d6f892f | refs/heads/master | 2020-04-01T22:25:36.170274 | 2018-12-05T14:54:04 | 2018-12-05T14:54:04 | 153,707,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,860 | py | import os
import json
from flask import Flask, render_template, abort
from flask_sqlalchemy import SQLAlchemy
from pymongo import MongoClient
app = Flask(__name__)
app.config['TEMPLATES_AUTO_RELOAD']=True
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root@localhost/shiyanlou'
db = SQLAlchemy(app)
client = MongoCli... | [
"harvey@qq.com"
] | harvey@qq.com |
b6e8416bb33d12648ad3efb10387f6473c61cb3e | 40ce4d7545309ca57f0670a3aa27573d43b18552 | /com.ppc.Bot/devices/gas/carbon_monoxide.py | bba3afce23c227967ee0cb6e2b55f74537325cc8 | [
"Apache-2.0"
] | permissive | slrobertson1/botlab | 769dab97cca9ee291f3cccffe214544663d5178e | fef6005c57010a30ed8d1d599d15644dd7c870d8 | refs/heads/master | 2020-07-28T06:45:37.316094 | 2019-09-18T15:34:08 | 2019-09-18T15:34:08 | 209,341,818 | 0 | 0 | Apache-2.0 | 2019-09-18T15:23:37 | 2019-09-18T15:23:37 | null | UTF-8 | Python | false | false | 1,939 | py | '''
Created on May 6, 2017
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
from devices.device import Device
class CarbonMonoxideDevice(Device):
"""Entry Sensor"""
# Measurement Names
MEASUREMENT_NAME... | [
"dmoss@peoplepowerco.com"
] | dmoss@peoplepowerco.com |
067d22fbbf7aca86bdd1f2062c87f55ae0660c05 | fccca352b4db6ecdbd76849a3bff52b8756279f0 | /scraper/scraper/settings.py | f5346833ec12802b382a87f90beb80a6859e72d6 | [] | no_license | dustinmichels/moodle-archiver | 7e789c65b71faa053dce14da121fe8f08985cb96 | 552144589e8bdd3aede43cc17ba762a82ec8a11b | refs/heads/master | 2020-03-18T19:50:40.418584 | 2018-09-02T20:10:49 | 2018-09-02T20:10:49 | 135,181,335 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | # -*- coding: utf-8 -*-
# Scrapy settings for scraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topic... | [
"dustin7538@gmail.com"
] | dustin7538@gmail.com |
8549c2316735ab70b1ad802d82ea6847832e6d13 | 868fd5bb48d9a93a6d31a48b7faabb102705b788 | /examples/wordcount.py | f346c221fbeb028fd25051e5dcf71fcf2a91087a | [
"MIT"
] | permissive | toddrme2178/featureflow | f2223ea263ad9286f687d1608daf388f2c62dfe7 | 15de54864798f600de75185e05764e64835460a3 | refs/heads/master | 2020-04-04T20:30:26.962607 | 2018-06-26T14:20:09 | 2018-06-26T14:20:09 | 156,249,241 | 0 | 0 | MIT | 2018-11-05T16:35:54 | 2018-11-05T16:35:53 | null | UTF-8 | Python | false | false | 3,452 | py | from __future__ import print_function
import featureflow as ff
import argparse
from collections import Counter
import re
import hashlib
class Tokenizer(ff.Node):
"""
Tokenize a stream of text into individual, normalized (lowercase)
words/tokens
"""
def __init__(self, needs=None):
super(Tok... | [
"john.vinyard@gmail.com"
] | john.vinyard@gmail.com |
9861da30017314ba4235383958ebe1ac1213b676 | 6d03e98f216062984ee9b68118426806ecdc94d2 | /custom/plugins/git-prompt-custom/gitstatus.py | d88e798d71846f1617f11fc59395340faac97b3d | [
"MIT"
] | permissive | sgpthomas/oh-my-zsh | fc02aa0899fa7e229a25dba0891318468e5bc9df | 47551d647c094b2475947314679bfefad14c8742 | refs/heads/master | 2021-08-27T18:40:58.731450 | 2021-08-04T21:05:29 | 2021-08-04T21:05:29 | 155,802,190 | 0 | 0 | NOASSERTION | 2018-11-02T02:16:38 | 2018-11-02T02:16:37 | null | UTF-8 | Python | false | false | 730 | py | #!/usr/bin/env python3
import sys
from subprocess import Popen, PIPE
# `git status --porcelain --branch` can collect all information
# branch, remote_branch, untracked, staged, changed, conflicts, ahead, behind
po = Popen(['git', 'status', '--porcelain', '--branch'], stdout=PIPE, stderr=PIPE)
stdout, sterr = po.commu... | [
"sgpthomas@gmail.com"
] | sgpthomas@gmail.com |
4703e4c6245617739a5d4e76ba664eb9502ae538 | 5e5d42a75b60dabfbc36330606fc4e6297f5d185 | /kariera/models.py | f2adf74bca33bfaffcb0c009ad742dcc1bd26da8 | [] | no_license | kintarus/netbox_app | 24782b0f90568eedbd504b3225b1e64fa1c830b1 | 2d32830b49e04e6def23658922a90d6bca6e0112 | refs/heads/master | 2021-03-15T08:43:58.124970 | 2020-03-12T13:34:33 | 2020-03-12T13:34:33 | 246,838,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | from django.db import models
from django.utils import timezone
from tinymce.models import HTMLField
from ckeditor.fields import RichTextField
class Miasto(models.Model):
nazwa = models.CharField(max_length=200)
kod_pocztowy = models.CharField(max_length=6)
adres = models.Charfield(max_length=200)
class O... | [
"kawecki.piotr@gmail.com"
] | kawecki.piotr@gmail.com |
d6967a6615adeb9befa7ff6641d173fde31732ee | 84c5b0d229f0f2ad98ed38c993112af20eabaf7f | /oniad_root/models/account_invoice.py | c685385135459e8998f5312f5288bcb9543bf826 | [] | no_license | victoralmau/oniad | 86ddfd873969cb1d6cb6897d79d0a72118fe12db | 8e45096c90406923e4c5fc69edcd9697d184040c | refs/heads/master | 2022-12-06T12:43:59.084129 | 2020-04-01T08:23:50 | 2020-04-01T08:23:50 | 284,020,289 | 0 | 0 | null | 2020-07-31T11:24:46 | 2020-07-31T11:24:45 | null | UTF-8 | Python | false | false | 4,604 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models
import logging
_logger = logging.getLogger(__name__)
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
oniad_address_id = fields.Many2one(
comodel_name='oniad.address',
string='Oniad Address'
)
@api.o... | [
"informatica@arelux.com"
] | informatica@arelux.com |
c25cd342227a2db904b9cc8b7d0eb63c4bced298 | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /src/test_driver/openiotsdk/integration-tests/common/fixtures.py | 08f9b55d6d61dc1f9c51d3d437cad53e5c64c3c6 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | Python | false | false | 4,712 | py | #
# Copyright (c) 2022 Project CHIP 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
#
# ... | [
"noreply@github.com"
] | project-chip.noreply@github.com |
4eb9117dec685610b20c0f77a560dd71ea30a929 | 3d4fcc74c87e570e33ce723900a2615ba7948469 | /ProxyPool/run.py | 11093f3a96915ec1bcab59987c0ee58602d6aa64 | [
"Apache-2.0"
] | permissive | Scarecrow1024/Python | 9e8b7f596e53535f80c81ea41cbc5eb2ef46feff | 308ce3bbd10eb3e47b97ac65926ed37dfbd8b768 | refs/heads/master | 2021-01-19T11:16:00.917906 | 2017-11-11T04:39:26 | 2017-11-11T04:39:26 | 87,946,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from proxypool.api import app
from proxypool.schedule import Schedule
def main():
s = Schedule()
s.run()
app.run()
if __name__ == '__main__':
main()
| [
"postmaster@itu74.com"
] | postmaster@itu74.com |
8f70b094f28d355731ae9ffec5792ac3562bf27f | 2bad0c6ccd4f49f4e12c0cabacadf77f5904be71 | /weixin_test/weixin_config.py | 76d0c905f43c494a42d99a4432c33e0b8b62d2b5 | [] | no_license | caozi/FISH-result-check-app | 6ec24d845d94aebf476bc4739a215881c9514c14 | a62f5570257a8fa6b8f2e0c53aa2715d5af82f72 | refs/heads/master | 2021-01-27T06:11:44.793878 | 2020-06-12T09:46:53 | 2020-06-12T09:46:53 | 243,474,594 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # weixin configurations
TOKEN = 'hellowx'
appID = 'wx6c11f5e4bbd229bd'
appsecret = '1605f2bca63385b87ec35daffa2227ea'
template_ID = 'xXKmB_vixLBkmwAZ643JLCU4EiCPgqLv1IPHom029W4'
template_ID_FISH = '6l8cvoXLcfTl6I36iXqwdBRvCXQJFzZ6ur871PqR7mw'
| [
"imcaozi@outlook.com"
] | imcaozi@outlook.com |
9879dd710062eb01d93600adb516df15be3de790 | ccf2730ab05040f7f008717436319b9044290b31 | /Питон/555.py | cf133157cd4a7cf361122439341b8842d6dbe4da | [] | no_license | bakyt86/codingbat1 | 9e6725dbb99a848f7bb30c3bb5a126f7a99e4f51 | b08b373a6fc2f4aa07ffb12e61e23e6a1036347a | refs/heads/master | 2022-12-05T23:38:10.697839 | 2020-08-21T14:19:56 | 2020-08-21T14:19:56 | 284,875,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | x = []
a = int(input('Enter number '))
for i in range(1,a+1):
if a % i ==0:
x.append(i)
print(x)
| [
"noreply@github.com"
] | bakyt86.noreply@github.com |
196c0db77a273eae8597887529a7c352a560a6a7 | a9f7e40e18c935fb004fe813f98e298ded0581af | /Google_Code_Jam/GCJ2008/GCJ2008_R1A_A.py | 53afb6e65b62316a298009f4a927889f5b0acfdc | [] | no_license | happa64/AtCoder_Beginner_Contest | 2eb350f500f4bd65f5491b98cdf002ac9b174165 | 2526e72de9eb19d1e1c634dbd577816bfe39bc10 | refs/heads/master | 2023-07-08T15:13:51.449555 | 2021-08-11T14:18:09 | 2021-08-11T14:18:09 | 255,601,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # https://codingcompetitions.withgoogle.com/codejam/round/00000000004330f6/0000000000432f33
# Minimum Scalar Product
import sys
sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7
def resolve():
t = int(input())
for i in range(1, t + 1):
n = int(input())
... | [
"happa_iidx@yahoo.co.jp"
] | happa_iidx@yahoo.co.jp |
352c29303a5086f912a8c758db6a69aef6fb84b1 | 8743b902674979e4f01f65fc14fb5771a56c4444 | /backend/src/app/db/session.py | 9f6871122b26c43b30c67ac3886dd076e0c2158d | [] | no_license | rajatgermany/brand_evaluator | 9218ae71d66c2b1f2035bc32861e96f0ac4f3e16 | 536e443affde566666fba6ff872f7995add162bd | refs/heads/master | 2023-01-08T09:34:54.895024 | 2019-10-17T09:04:33 | 2019-10-17T09:04:33 | 214,797,622 | 4 | 3 | null | 2022-12-26T21:04:23 | 2019-10-13T10:05:06 | Python | UTF-8 | Python | false | false | 390 | py | from app.core import config
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
engine = create_engine(config.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True)
db_session = scoped_session(
sessionmaker(autocommit=False, autoflush=False, bind=engine)
)
S... | [
"rajatuiet@gmail.com"
] | rajatuiet@gmail.com |
c2f5919ddc92d7619a3588b561bfa4b135d0a60a | 9947a9eba45f7daf8ec7f96920c21855563f14c2 | /polls/tests.py | cbf975a8fca0601e80f7969558f527870dddf2ec | [] | no_license | hmjrun/djangosite | f27ad99e826b06cc6d7d3d21c3ec26a264b12119 | c23fd6b010a01c673fd47d0f431777fbd4b21c95 | refs/heads/master | 2020-07-09T05:02:26.274990 | 2017-03-17T09:42:50 | 2017-03-17T09:42:50 | 67,414,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from django.test import TestCase
# Create your tests here.
import datetime
from django.utils import timezone
from .models import Question
class QuestionModelTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() should return False for
questions w... | [
"892532819@qq.com"
] | 892532819@qq.com |
548009f7d5b6a332787587db938c530701e9c277 | 6b0ff78d9adf295d4a57dbd9e489201362729665 | /communication_test.py | ea5df08bfac89b4215ca5240ddce32bd6272bdd9 | [] | no_license | Neboer/HCRC | 5873f1866fd08dab3486b066a8f40c17f53baad0 | dd023d73cda532baecc6998f625ace08daf8bce4 | refs/heads/master | 2021-04-23T18:49:08.668817 | 2020-03-30T15:01:25 | 2020-03-30T15:01:25 | 249,971,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | import unittest
from communication import *
class CommunicationCase(unittest.TestCase):
def test_check_user_from_server(self):
self.assertTrue(check_user_from_server('wsbz', '2956136'))
self.assertFalse(check_user_from_server('wsbz', '1234567'))
def test_add_user_to_server(self):
sel... | [
"gmyxgmyx@outlook.com"
] | gmyxgmyx@outlook.com |
1dc2127be89c07b2de0802f96871402251308198 | 9aca4c98a0d6ecaf263cf1cea03ec87a9c9fd926 | /HINDI/views.py | 37499c2edada6b47b3d1496aafb7fd0af3c8c37b | [] | no_license | Aman-Kumar-123/Djano-translation | cc63150c06c776e6a1af025667ac7d0e61f2145d | 768dd7a11af138b736328cabe0850a88cb98f609 | refs/heads/master | 2020-12-29T05:28:34.573257 | 2020-01-26T14:15:40 | 2020-01-26T14:15:40 | 238,471,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from django.http import HttpResponse
from django.shortcuts import render
from googletrans import Translator
T=Translator()
def index(request):
text=request.GET.get('text1','OUTPUT TEXT')
if(text is not 'OUTPUT TEXT'):
text=T.translate(text,dest='hi',src='en').text
print(text)
params={'textarea... | [
"ak1373728@gmail.com"
] | ak1373728@gmail.com |
e4bb54ee58dd6c620bd8440a4deb1ed555dff818 | 14816fb4bc3785dc7ca887c27a0b6b219ac494f1 | /obml-parser | f37197473f1b464f3713ab499150fb4f6942e5c6 | [
"MIT"
] | permissive | vinhjaxt/obml-parser | 9ba0ec8a744c73e4af4bf39b4870094a2600e0a8 | 59d29516805c858d15f970edf84adb36a48ce393 | refs/heads/master | 2020-04-27T21:39:50.074739 | 2019-03-09T15:34:54 | 2019-03-09T15:34:54 | 174,706,902 | 0 | 0 | null | 2019-03-09T14:51:06 | 2019-03-09T14:51:06 | null | UTF-8 | Python | false | false | 21,826 | #!/usr/bin/env python3
# A barebones parser for OBML files used by Opera Mini
#
# (c) 2014–2016 Mantas Mikulėnas <grawity@gmail.com>
# Released under the MIT License
#
# Originally intended to extract original URLs from saved pages, after Opera dropped
# binary compatibilty between minor releases and left me with a bun... | [
"grawity@gmail.com"
] | grawity@gmail.com | |
cbdf192fb8a2fcc0055421712037209c26498bbf | 5dd93a32e9803cbe29de37434d9bd1209f871b84 | /majiang2/src/majiang2/table_state_processor/drop_card_processor.py | 988070dbf1dce95b42ed3dff1a6d43e278470161 | [] | no_license | cnbcloud/mjserver | 71e9448478d6b6c04e852fc74968b3b2cb75f51c | b5b08a85d49c3bed460255a62dc5201b998d88d4 | refs/heads/master | 2021-01-21T17:46:29.073368 | 2017-07-27T09:25:49 | 2017-07-27T09:25:49 | 98,517,509 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 28,846 | py | # -*- coding=utf-8
'''
Created on 2016年9月23日
@author: zhaol
'''
from majiang2.table_state.state import MTableState
from majiang2.table_state_processor.processor import MProcessor
from freetime.util import log as ftlog
from majiang2.table_state_processor.extend_info import MTableStateExtendInfo
from majiang2.player.pla... | [
"gamedev@jundeMac-mini.local"
] | gamedev@jundeMac-mini.local |
d0f0de4e9b7f9434238949bfb24c6dd45a98a526 | 4a418036130cb63caa503719b4162cce9753459b | /tests/test_data_dir.py | 931e02b73c4ecca5c319aedfbeedc7afc69d0def | [
"Apache-2.0"
] | permissive | kssteven418/Q-ASR | 89a7dac24d74556453e7b54b26289fd1466070c4 | aa1ec2ef78fd7606f8f365dfe3e66691a0e48178 | refs/heads/qasr | 2023-08-05T15:43:42.493513 | 2021-10-11T20:06:53 | 2021-10-11T20:06:53 | 353,027,973 | 33 | 1 | Apache-2.0 | 2021-03-30T17:33:26 | 2021-03-30T14:20:56 | Jupyter Notebook | UTF-8 | Python | false | false | 1,008 | py | # Copyright (c) 2020, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | kssteven418.noreply@github.com |
4d508511b2d0c80e95d9287cc8c2a5d6ccdf657d | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetCode/1014 Best Sightseeing Pair.py | 8673420a64436ca8315152ef43a71e1fdc5ce278 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,775 | py | #!/usr/bin/python3
"""
Given an array A of positive integers, A[i] represents the value of the i-th
sightseeing spot, and two sightseeing spots i and j have distance j - i between
them.
The score of a pair (i < j) of sightseeing spots is (A[i] + A[j] + i - j) : the
sum of the values of the sightseeing spots, minus the... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
4d6b3b1ee0d4efb7f0b25bddc8022cd46207de2b | bef3a54931d50d87f2773a2de5491e41b708601b | /python-day-1/find_num_in _list_prob16.py | 1d0bfe19161fa49191bfc138e93f35baa459a1a7 | [] | no_license | karthikeyansa/python-placements-old | efd815db525dd15eb5f384c921b6b079678b7377 | aa361a7b8e695d34f08ec7d6b067cc57ffdf358d | refs/heads/master | 2020-12-03T18:21:55.994756 | 2020-01-02T17:27:47 | 2020-01-02T17:27:47 | 231,428,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | l1=[1,5,8,3]
n=int(input("Enter a number: "))
if n in l1:
print("TRUE")
else:
print("FALSE")
| [
"karthikeyansa39@gmail.com"
] | karthikeyansa39@gmail.com |
81731503651177321f8bd9a41ec9e116500977b2 | 7d33bef8d46946bd3621a3bbd9607a53231b0b63 | /DL/linear_regression_01_mpg.py | 74dd3d28399731e6c2d2bfeec4752aa66c436427 | [] | no_license | encaion/Python_edu | a1d234d6a84f5cbefa4a84a8171e54c8a19a63cb | d3cee899955fff12d04648eb6128d9518ef1fcc4 | refs/heads/master | 2022-02-01T20:02:50.535883 | 2022-01-09T22:39:53 | 2022-01-09T22:39:53 | 164,076,683 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | import pandas as pd
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
df = pd.read_csv("auto_mpg.csv")
df.head(2)
df.isna().sum()
df2 = df.dropna()
df2.head(2)
set(df2["Origin"])
origin = df2.pop("Origin")
df2.head(2) # Origin이 빠짐
origin_dum = pd.get_dummies(origin, prefix =... | [
"noreply@github.com"
] | encaion.noreply@github.com |
787addd50367cdbdb7de9096164e023913e11434 | 8f437c9bd966b5b1badd3587f62699b1e4fdbf9d | /patchDeploy.py | bd77f3bb1f8a56f3e30b55cf1c51a6dd78b1cd0b | [] | no_license | niski84/work | 4aeec61514521351d5b3703d6dd711e456a5d289 | 8b5be787e0f61ed309f9b701ce1e3357b2b7b344 | refs/heads/master | 2021-06-20T03:58:34.718377 | 2017-04-11T02:05:57 | 2017-04-11T02:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,547 | py | __author__ = 'Nick'
import subprocess
import time
import os.path
server=''
MacysNavAppWebVersion=''
MacysShopNServeVersion=''
def log():
f = open('/tmp/patchlog.txt','a')
f.write('run at: ' + time.strftime("%I:%M:%S")+'\n')
f.close()
def copyFile(src, dest):
if os.path.isfile(src):
cmd = "cp ... | [
"nskitch@griddynamics.com"
] | nskitch@griddynamics.com |
93978ead2ff574265ed458d87c10e1ea9e3b2210 | f8bd2f69e9b57fbdcdc712881294598dcb786a30 | /utils/__init__.py | 4b5e53c0ec35958520f1827c62cf7ad442961a4c | [] | no_license | gen1998/comp-framingham | 9db3354c24ac868dc8053a5a894a834345aaa666 | 94e0d2689714ab42877e23b785bb30d45761709d | refs/heads/master | 2023-04-03T21:49:14.812473 | 2021-04-15T15:29:04 | 2021-04-15T15:29:04 | 354,811,541 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | import pandas as pd
def load_datasets(feats):
dfs = [pd.read_feather(f'features/{f}_train.ftr') for f in feats]
X_train = pd.concat(dfs, axis=1, sort=False)
dfs = [pd.read_feather(f'features/{f}_test.ftr') for f in feats]
X_test = pd.concat(dfs, axis=1, sort=False)
return X_train, X_test
def loa... | [
"hamham37337@gmail.com"
] | hamham37337@gmail.com |
17ab93a49e789f2cc2b34c5368696f83e65e2b54 | 0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa | /cecilia-python/greedy-thinking/PartitionLabels.py | f36801ff0611f92a70396f1cff574f0966948557 | [] | no_license | Cecilia520/algorithmic-learning-leetcode | f1fec1fae71c4cf7410122f5ce969e829f451308 | 32941ee052d0985a9569441d314378700ff4d225 | refs/heads/master | 2022-05-02T03:00:57.505672 | 2022-03-19T09:51:28 | 2022-03-19T09:51:28 | 229,673,810 | 7 | 1 | null | 2022-03-19T09:34:57 | 2019-12-23T04:04:04 | Python | UTF-8 | Python | false | false | 2,027 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : PartitionLabels.py
@Contact : 70904372cecilia@gmail.com
@License : (C)Copyright 2019-2020
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2020/2/8 15:14 cecilia 1.0 分隔字符串使同种字... | [
"cc15572018516@163.com"
] | cc15572018516@163.com |
b810aa905e16c61cadcf7cdb48eb042d8080ede0 | 53cdfe9275a32920674567da36090dcd0be3e38b | /tests/testers/test_global_two_stream_embedding_space_tester.py | ab650d79f8d3c3329e7d4e7e8bed03c6ced719d3 | [
"MIT"
] | permissive | vishalbelsare/pytorch-metric-learning | b1ea7e43884c447c480df938605b98149cc4d34b | 786a8043f145f2954366271e00db1df230c22afa | refs/heads/master | 2023-08-04T16:02:38.943772 | 2021-11-20T17:29:09 | 2021-11-20T17:29:09 | 238,865,329 | 0 | 0 | MIT | 2021-11-28T19:57:30 | 2020-02-07T07:20:09 | Python | UTF-8 | Python | false | false | 1,738 | py | import unittest
import numpy as np
import torch
from pytorch_metric_learning.testers import GlobalTwoStreamEmbeddingSpaceTester
from pytorch_metric_learning.utils import accuracy_calculator
from pytorch_metric_learning.utils import common_functions as c_f
class FakeDataset(torch.utils.data.Dataset):
def __init_... | [
"tkm45@cornell.edu"
] | tkm45@cornell.edu |
c41f5ec088bb986fdca5b3ef41e8cdda600a0430 | 9a5e5536ecacbce585617ac991361484e086105e | /django/project07/movies/urls.py | 89a7bb8ae0ee6f9b28b0d11e8ef4aefd33aed871 | [] | no_license | kingssafy/til | 8bc938f9fc2525e2efb6025a587ec03536f8bf2a | 50ecf62465dfa7db57711b1a6130cbaaed90af30 | refs/heads/master | 2020-04-16T10:03:50.568961 | 2019-04-23T11:55:34 | 2019-04-23T11:55:34 | 165,488,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from django.urls import path
from . import views
app_name = 'movies'
urlpatterns = [
path('<int:movie_pk>/scores/<int:score_pk>/delete', views.delete_score, name="delete_score"),
path('<int:movie_pk>/scores/new/', views.create_score, name="create_score"),
path('<int:movie_pk>/delete/', views.movie_delete, ... | [
"inmak@INMAKs-MacBook-Air-2.local"
] | inmak@INMAKs-MacBook-Air-2.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.