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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39bfc099bc688fabf0c71e5df5cdc5a462b08d3d | 29f01d669b179591380decaf74332856d712be67 | /MCB.py | b09afab447b721d9b5efb64fd05f9ef6de38c9a2 | [] | no_license | madhawabk/IcyPlanetMassRadiusRelation | 982b776ae56ec409309b3daa5fe33c9a13e3e993 | d277b9e794a4fcd62033f21308a18383a2eb0f2d | refs/heads/master | 2023-06-25T20:11:49.765760 | 2021-07-30T16:20:03 | 2021-07-30T16:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,868 | py | import pylab
from math import *
from scipy.constants import G
from scipy import optimize
import matplotlib.pyplot as plt
import numpy as np
def runkut(n, x, y, h):
#"Advances the solution of diff eqn defined by derivs from x to x+h"
y0=y[:]
k1=derivs(n, x, y)
for i in range(1,n+1): y[i]=y0[i]+0.5*h*k1[i]
... | [
"sasiruravihansa@gmail.com"
] | sasiruravihansa@gmail.com |
d5b1789b3dd0c839b86dd726c2e71effbdd484ab | 371277a2586e85337cd50a0e2889a962b89fbca0 | /Semana 5/Subida de Archivos Flask - Portfolio/models/conocimiento.py | e4e67176849e22c32a4fec64a7569de0c8b0abe9 | [] | no_license | Jesuscueva/Virtual-Back-5 | eca62561f19a3028880e3a68868ff4f1c271d579 | 2f4557a6cdae91c9fd4f22103b5bdd473845d5a4 | refs/heads/main | 2023-04-02T13:47:58.161874 | 2021-04-10T02:09:01 | 2021-04-10T02:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | from config.base_datos import bd
from sqlalchemy import Column, types
from sqlalchemy.schema import ForeignKey
class ConocimientoModel(bd.Model):
__tablename__ = 't_conocimiento'
conocimientoId = Column(
name='conocimiento_id',
type_=types.Integer,
primary_key=True,
unique=True,... | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
93239fc5a08525d57708c1f823bde02ddff2f792 | 2ede3d8003efd70bff2ff4935f22eddacb9a7f53 | /ebsa/migrations/0002_auto_20160216_1735.py | c765617f1ed6684489c65484355341068f23accf | [] | no_license | sreilly/ebsa | ab25d163ce4b794db775399a3ff8a026812aeae1 | 2760a9095dbcfefcc1a9ccb73a84f72749c2ba47 | refs/heads/master | 2021-01-24T20:25:20.279593 | 2016-03-04T11:52:52 | 2016-03-04T11:52:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-16 17:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ebsa', '0001_initial'),
]
operations = [
migr... | [
"alexis@ww.net"
] | alexis@ww.net |
ecea23ae37a6a0fd12e5da215e3f82d59b6c2318 | 6f9ba1982122c87047ec7cf5dc7ba7319f3e788e | /lianjia/items.py | 853eb2a9dd349b4f8f34b73e36f55557ae83c25d | [] | no_license | mortyxu/git-lianjia | c8504215112770e4a3388851a9e6d8104bf80a75 | 5ff785fe25069dc96d0230ef0f3bf615277e507c | refs/heads/master | 2020-03-31T06:58:49.268292 | 2018-10-08T02:11:06 | 2018-10-08T02:11:06 | 152,002,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class LianjiaItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
region = Field() ... | [
"38303498+mortyxu@users.noreply.github.com"
] | 38303498+mortyxu@users.noreply.github.com |
e85935828e845a8db316fa404e80e29a58be5ec2 | 2d27176ea061a237f8451ccbecc20efb7c01b155 | /ex_influxdb/connect.py | 53c7c39624450b2be82c0a0024b15c117cd69c31 | [] | no_license | WISE-PaaS/example-db-connection | 7ae0603c26534772e02b5b3ee08476e850e0b215 | 8fb2342cf76b9ec4a7d4345cfa857b400aa00a3c | refs/heads/main | 2023-02-11T23:04:59.091196 | 2020-12-31T10:13:14 | 2020-12-31T10:13:14 | 324,118,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | import os
import json
from influxdb import InfluxDBClient
def testInflux():
# Load 'ENSAAS_SERVICES' from enviroment variable and parse the URI
ensaas_services = os.getenv('ENSAAS_SERVICES')
ensaas_services = json.loads(ensaas_services)
try:
influx_database = ensaas_services['influxdb'][0]['cr... | [
"stanley.yeh@advantech.com.tw"
] | stanley.yeh@advantech.com.tw |
2652ccb0f7fd0e86cf77b13991aabd3efa46c48d | c134c473eb21bcb0eb8d6255e5467c11fd043859 | /Q106_ConstructBinaryTreeFromInorderAndPostorderTraversal.py | 119405f711ccf4e1692339a89b70800be8498f00 | [] | no_license | fivemoons/LeetCode_Python | 758efff7a669adf655e772d077134c5a02205542 | 2ef448771ce48dd5475f329474e7cc2b0bb51cc3 | refs/heads/master | 2021-01-17T20:55:33.482122 | 2016-09-20T10:09:21 | 2016-09-20T10:09:21 | 64,149,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def buildTree(self, inorder, postorder, inl=0, inr=None, postl=0, postr=None):
"""
:type inorder: List[in... | [
"liuyuyao1992@qq.com"
] | liuyuyao1992@qq.com |
6648dc83958d98e09181be589c965e5d5083dbc0 | e2604baf3baddbbebf8597c7a3a76bac988efb41 | /venv/bin/wsdump.py | 6f6c90fbda8537d5bc52a71ac71732e9a1879bcb | [] | no_license | Surajgupta5/Django-WIth-Docker | 2fe1037451c113feba72c50d5425d4461c2f40be | ca879e43af043dccba6b325f89ac3c6f495dbe56 | refs/heads/master | 2022-07-19T18:55:48.243626 | 2020-05-11T05:53:52 | 2020-05-11T05:53:52 | 262,951,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,437 | py | #!/home/workspace/project2/venv/bin/python
import argparse
import code
import sys
import threading
import time
import ssl
import gzip
import zlib
import six
from six.moves.urllib.parse import urlparse
import websocket
try:
import readline
except ImportError:
pass
def get_encoding():
encoding = getattr... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ab4d5831098fe2e9a2d15ee4a894914b8f70c9e7 | d893c8bb1f15d52811d860c2e59c2b84b0b0b751 | /ai/train.py | 959d1654751d1a2d3f552daefe6c019bf4fbae9b | [
"MIT"
] | permissive | bajcmartinez/kickass-chess | acd258f6c6e4e16a4af692839f7277a1eb5b7683 | 397d2f40b403e3b2b590cd54b708e97a4108316a | refs/heads/master | 2020-04-17T10:30:33.654778 | 2019-01-21T18:09:35 | 2019-01-21T18:09:35 | 166,503,723 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | import numpy as np
from keras.models import Sequential
from keras.layers import Conv2D, Dense, Flatten, MaxPooling2D
from keras.optimizers import Adam
from keras.losses import categorical_crossentropy
import keras
if __name__ == '__main__':
batch_size = 128
epochs = 100
# Load the entire dataset
with ... | [
"bajcmartinez@gmail.com"
] | bajcmartinez@gmail.com |
2e3a99a2a2f8ea1a985a74d8d043771932f25fde | 8a2cb7bf6b7e819ea554781a5775fc9411ac3054 | /study_flask/app/web/book.py | d1d706c9c11638b44f284b133013a8dc8b295bd0 | [] | no_license | Foxgeek36/lagou_data_analysis | 9aca8f9d6bc9be7fcd86ba1d0d1b8c4b8c0901a5 | 14b1b325c8af81f13b6e90ad4d6ec6da22a00739 | refs/heads/master | 2020-07-20T20:33:40.956532 | 2019-06-24T02:44:22 | 2019-06-24T02:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | #Email:dazhuang_python@sina.com
from flask import request, render_template
from flask.json import jsonify
from app.forms.book_forms import SearchForm
from app.view_models.book_view_model import BookCollection
from app.web.blue_print import web_blue
from app.libs.helper import isbn_or_key
from app.spider.yushu_book impo... | [
"1780292537@qq.com"
] | 1780292537@qq.com |
82ea99ed4413fd07403f69621525bcf0df58dc1c | ed8ed9d4d6a8a53891544427df2fe3ffe25efc31 | /train/train.py | 78b7e57383ce274fa8b244cb77a36fe8e20a0799 | [] | no_license | atkatchev/deploying-sentiment-analysis-model | 62dc0c58f9a567da253916024da4a66313b98c8b | bb147e9d662c74deb5c3107f802bdd8a091e7bae | refs/heads/master | 2020-10-01T09:31:41.740721 | 2019-12-12T04:13:36 | 2019-12-12T04:13:36 | 227,509,644 | 0 | 0 | null | 2019-12-12T04:13:36 | 2019-12-12T03:12:07 | HTML | UTF-8 | Python | false | false | 6,335 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import torch
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
def model_fn(model_dir):
"""Load the PyTorch model from the `model_dir` directory."""
print("Loading ... | [
"alextkatchev17@gmail.com"
] | alextkatchev17@gmail.com |
7a5019f032d3564ba4d7d1adff38dcfc7b6dad35 | d109b64bfa8c80a6ec7d647beeadf9fe1c667fac | /class1101/LED11.py | ef6615d3a9cc7c3e69773a9d62dd8e9899f26d39 | [] | no_license | jumbokh/micropython_class | d34dd0a2be39d421d3bbf31dbb7bfd39b5f6ac6f | 950be81582dba970e9c982e2e06fa21d9e9a0fdd | refs/heads/master | 2022-10-10T22:27:02.759185 | 2022-10-01T14:44:31 | 2022-10-01T14:44:31 | 173,898,623 | 4 | 3 | null | 2020-03-31T09:57:23 | 2019-03-05T07:40:38 | Jupyter Notebook | UTF-8 | Python | false | false | 160 | py | from machine import Pin
import utime
LED = None
LED = Pin(11, Pin.OUT)
while True:
LED.value(0)
utime.sleep(1)
LED.value(1)
utime.sleep(1) | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
5ffb8cea15446256dcc29283f7b13541b743e7c7 | 2df764eefd511bf85273d88d94ee1b776af1779f | /web010/models/weibo.py | 80f0131f8bff44fed9f5219899e64f175d758e70 | [] | no_license | ymcat626/web_project | 2b241b901f9d083e9333785045ceddeb72749336 | 990d9b4f5b1068e7a928dad7196cc98729f25253 | refs/heads/master | 2020-03-18T19:41:07.518253 | 2018-09-10T10:52:04 | 2018-09-10T10:52:04 | 135,170,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from . import Model
from .user import User
# 微博类
class Weibo(Model):
def __init__(self, form, user_id=-1):
self.id = form.get('id', None)
self.content = form.get('content', '')
# self.c
# 和别的数据关联的方式, 用 user_id 表明拥有它的 user 实例
self.user_id = form.get('user_id', user_id)
... | [
"meattimes@live.cn"
] | meattimes@live.cn |
9facc5c16f98982ee060f50e2dc665bfba85eee8 | cb84d6a8100554079e1f816cb6634a001849f29f | /pysac/mhs_atmosphere/parameters/__init__.py | ecbf1d86ac0bddae2fbcb406f50f85148a904568 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | SWAT-Sheffield/pysac | 8d25e09188c852b82d4f1813e0d1cc2784c464ce | 0a92c7bf62ef6ac0530787d03cbc276d66a8273b | refs/heads/master | 2020-04-06T07:06:57.091190 | 2016-10-17T11:27:53 | 2016-10-17T11:27:53 | 25,865,703 | 1 | 3 | null | 2016-02-19T12:25:14 | 2014-10-28T11:15:08 | Python | UTF-8 | Python | false | false | 142 | py | #from units_const import *
#from model_pars import *
#from options import *
import units_const
import model_pars
import options
| [
"fred.gent.ncl@gmail.com"
] | fred.gent.ncl@gmail.com |
d63a8359e7b3a7e5e2b38953a52bd3879d8075ce | bb8df26d7cf5e2a5614a1f1e002cefe9890d6ba3 | /venv/bin/pip | ad8cbe5a58182a4fd9364d6bef8bc5f90ec4cce2 | [
"MIT"
] | permissive | ngenohzephenia/flask-week-2-IP | 80f1ad3faa1c9e3b2435ec1b5a8308aadcd16da1 | 2b314b3098ca8c859344217e660cf937b8d4d9f2 | refs/heads/master | 2023-03-11T22:53:16.972596 | 2021-03-02T20:31:47 | 2021-03-02T20:31:47 | 340,302,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/home/moringaaccess/Desktop/News-API/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ngenohzef@gmail.com"
] | ngenohzef@gmail.com | |
99210570127cc5fece4e75eb505550b20b82dd51 | a2d2c2f640f8f50b126b77eeeea2ec0f438fdf0c | /day_2/answer.py | d72e884e596b6e80d84cb28ff846a96ac1c70db5 | [] | no_license | alexagriffith/advent_of_code_20 | 92306b884cc042444ed6d8c08ea2258c1d7374f0 | 9b49ab683109bfaf69beca7b8ef4349d73d92fdd | refs/heads/master | 2023-02-02T01:37:30.543775 | 2020-12-16T04:35:57 | 2020-12-16T04:35:57 | 318,681,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | import re
def read_input():
# group the min, max, letter, and password
r = re.compile("([0-9]+)\\-([0-9]+)\\s([a-z])\\:\\s([a-z]+)")
f = open("input.txt", "r")
policies_passwords = []
for line in f:
grouped = r.findall(line)[0]
# this isn't efficient but whatever
policy_pas... | [
"agriffith@bluecore.com"
] | agriffith@bluecore.com |
cc0709ce6018df1945ef22e48c1aa21db809d017 | ebac8f2944d35cf42137fe22ddbb7ecbd552618d | /day1.py | 49cb0c2aeadd552902c7d4441ce6180df3c1442a | [] | no_license | ShubhamCoder007/Coding-problems | f686f7adb02f9d15fe1ad2a5d615439cc6d7f2bf | 5b3c2b3b8babfe7cfeee2a75b3842fb19f93c110 | refs/heads/master | 2020-04-23T08:54:57.063677 | 2019-10-14T17:10:15 | 2019-10-14T17:10:15 | 171,052,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | '''Given a list of numbers and a number k, return whether any two numbers from the list add up to k.
For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.
Bonus: Can you do this in one pass?'''
a = [10, 15, 3, 7]
target = int(input("Enter the target: "))
def list_input(n):
fo... | [
"noreply@github.com"
] | ShubhamCoder007.noreply@github.com |
ab7f2304caaf730267119f94fb25d35965564aca | 27fe9c0fb5f5459241d11a205bfa7c887d643db1 | /2020/Day03_p2.py | 007290dddfe7de1c5237cb1d88d7f85be574cdf8 | [] | no_license | johnrozmaryn/adventofcode | 21c5fdd8d3a95882ce04103484538a215c49491c | 80d67371cfedb71eda0e35cd9130ee25b6c39091 | refs/heads/master | 2023-01-05T19:21:46.034612 | 2022-12-27T15:13:14 | 2022-12-27T15:13:14 | 225,509,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 3 16:36:58 2020
@author: jrozmaryn
"""
treelist = []
yval = 0
f=open("Day03.data","r")
contents = f.readlines()
#figure out the dimensions of the map
numlines = len(contents)
numcolumns = len(contents[0])-1 #stripping out the newline
def checkfortrees(xinc,yinc):
... | [
"JROZMARYN@BECKMAN.COM"
] | JROZMARYN@BECKMAN.COM |
225cf46464767cc87e3de5acdd111b3d2d50c482 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2594/60640/267498.py | 06ef98d3317b58f2f24605f47cf036c4eaa392d4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """
O(N)
"""
t = int(input())
for i in range(t):
inp = list(input())
set_inp = list(set(inp))
if len(set_inp) == len(inp):
print(-1)
else:
MAX_CHAR = 256
# 记录每个字符的位置,-1表示从未出现过
firstIndex = [-1 for x in range(MAX_CHAR)]
res = 0
for j in range(len(inp)):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0ba65146cf6659db44dd47b906d4f6f8ea99fa48 | 6e800b3513537622df14bb598abe9c051116106c | /51-100/088MergeEasy.py | 14ead1c1a42033d242f68373f994af50d34f3ddf | [] | no_license | Huxhh/LeetCodePy | fd72f03193d1f0b58c44bffc46a9a59ba9714215 | 6a99e84c5742ca68012b14da362f6c3255e10b21 | refs/heads/master | 2023-06-09T09:23:54.209025 | 2023-05-31T16:29:03 | 2023-05-31T16:29:03 | 148,866,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # coding=utf-8
def merge(nums1, m, nums2, n):
index = m + n - 1
x = m - 1
y = n - 1
while True:
if x < 0 and y < 0:
break
if x >= 0 and y >= 0:
if nums1[x] >= nums2[y]:
nums1[index] = nums1[x]
x -= 1
else:
... | [
"563255387@qq.com"
] | 563255387@qq.com |
77f53849e9baa5ba00cf4fecb76c44a81b14081f | 173624dde6173ac15d2bf5b9737d3934116dc6cd | /Leetcode题解/101.对称二叉树.py | 1ea68d3d89a6c146ca41e17740ce06b131c69918 | [] | no_license | jiufang7/git_repository | 79bb780e563f1aad5fe91ce53b091abaaf5b9a31 | e3d69ec8640f1caab74f1a4473888022f72de644 | refs/heads/master | 2023-01-21T01:31:18.265359 | 2020-12-01T05:21:31 | 2020-12-01T05:21:31 | 304,177,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def isSymmetric(self, root: TreeNode) -> bool:
def check(node1, node2):
if not node1 and not node2 :
return True
elif not node1 or not... | [
"646428502@qq.com"
] | 646428502@qq.com |
c91095bd52b791805e852fbb423a0d0a80917e51 | e61cbd9d69454f096bdcbc9a802354b53b643e62 | /BsToPhiMuMu/test/crabConfig_2016B_Charmonium_MINIAOD.py | 690a9327e97dc1b0625930a7d77210e25f967075 | [] | no_license | rishabh-raturi/BsToPhiMuMu_angular_analysis | 47248133b44b56f216c1063ab07b4283d18be1cb | d3199e834055c2c396350d2904baf8e2ae224df3 | refs/heads/master | 2023-04-04T23:42:47.953299 | 2021-04-12T18:29:49 | 2021-04-12T18:29:49 | 305,628,429 | 0 | 2 | null | 2021-04-09T18:20:52 | 2020-10-20T07:41:03 | C++ | UTF-8 | Python | false | false | 2,752 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'job_crab_data_Charmonium_finaljob_MINIAOD_CMSSW10218_16B_v1'
config.General.workArea = 'crab_data_Charmonium_finaljob_MINIAOD_CMSSW10218_16B_v1'
config.General.transferOutputs = True
config.General.transf... | [
"rr26@iitbbs.ac.in"
] | rr26@iitbbs.ac.in |
995fbd9c36e61986e2b7b52770d1883f929b0dde | dd498f63ccf60f9f6b2708bbe890291a39b52932 | /musixmatch/parser.py | 06a8c5e31fa17487e33ce6cbb5f78409f5cf2ecb | [] | no_license | pgromano/musixmatch | 8d302a28794f81e6f68c165c7b4cd864336dfea8 | 40dec801ea4c15ab89710cc67d4466dc0c9451f3 | refs/heads/master | 2021-05-09T06:27:20.712398 | 2018-01-29T16:23:43 | 2018-01-29T16:23:43 | 119,329,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | import json
def jsonp2json(jsonp):
try:
l_index = jsonp.index(b'(') + 1
r_index = jsonp.rindex(b')')
except ValueError:
print("Input is not in a jsonp format.")
return
return json.loads(jsonp[l_index:r_index])
def album(response):
return jsonp2json(response.content)['m... | [
"pablo.romano42@gmail.com"
] | pablo.romano42@gmail.com |
409fd7bbc3b2fbc4598c33fcc93cab31f356454c | bcf65d8e5ceebd6b92d72a32ddc724343e93bc05 | /myfaceapp/migrations/0001_initial.py | b984559cf2217cf2d6984b8de3301e53015c8494 | [] | no_license | AliHashimi12345/fb-clone4 | 1f01558e0dbb7e3c3a3de6f889e63b3d3810266c | ad0fad1e15ffad3707ad5b90b5e90244d24326fc | refs/heads/master | 2023-09-04T23:29:06.281093 | 2021-11-18T12:10:37 | 2021-11-18T12:10:37 | 429,415,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | # Generated by Django 3.2.8 on 2021-11-17 09:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"alihashimivns@gmail.com"
] | alihashimivns@gmail.com |
525b8df092a35354d0bda23dde9fa0101c66e688 | fb2fc8154460c2d02c3719f7447064b4635f1520 | /response_time_analysis.py | 707080ac8f60c886547a521514d46529248db13e | [] | no_license | renzj/porcupine | 6a18baf89926efbbadf6d148467560ff24b39ff7 | 51c87f385e32216220332a475f0cf0cef297b99a | refs/heads/master | 2021-01-15T15:44:11.908226 | 2016-10-25T03:46:44 | 2016-10-25T03:46:44 | 43,235,525 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,120 | py | #encoding=utf8------------------------------------------------------------------
# Name:
# Purpose:
#
# Author: tianmingZhang
#
# Created: 19/04/2016
# Copyright: (c) tianmingZhang 2016
# Licence: <your licence>
#-------------------------------------------------------------------------------
im... | [
"renzju@gmail.com"
] | renzju@gmail.com |
1ed7d3aaf68851dbf8dafb254281a1bed12ea1f6 | 4bc51e6724ac31b2f2bcc8b699d790f53ec9516c | /cptac/file_download.py | ba7a933a8b150330fb2df9636fb6af726c245dd0 | [
"Apache-2.0"
] | permissive | MTschool20/cptac | 073e599c0c6609802914a6a45e49acba8dd687bd | 90e7bc2e264e4238ca21d654fd3b559f41b974f8 | refs/heads/master | 2023-05-07T09:31:48.793943 | 2021-05-18T00:45:33 | 2021-05-18T00:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,477 | py | # Copyright 2018 Samuel Payne sam_payne@byu.edu
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law ... | [
"calebmlindgren@gmail.com"
] | calebmlindgren@gmail.com |
f7890fddbceeaca7539b8578a744574f2f12a935 | 998a6b1cc770754f10784a25c1812bb1fc2aa4c3 | /Loops.py | ed59a686233a18ae066509a8ec4151c2d45e40d0 | [] | no_license | A-Young-Coder/Python-For-Beginners | fe48fa96b97c222867d51873666a405591389b8a | eb4603536b020d5b1dd1dbf7607ec518879164cb | refs/heads/master | 2023-07-30T03:21:13.262036 | 2021-09-12T13:51:03 | 2021-09-12T13:51:03 | 405,416,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | loop_tiems = [1, 2, 3, 4]
loop_number = 0
while loop_number < len(loop_tiems):
print(f'This is loop number: {loop_number}')
loop_number += 1 | [
"the.young.coder11@gmail.com"
] | the.young.coder11@gmail.com |
583a033788c0b550cdea3e0cb188d0f3ef7da24a | bc0a99010c49b0a80e912bb7bf15d5479ee11200 | /serveml/loader.py | 7b8c98d2140d1729eb5d3785962822d1c0cd17dd | [
"Apache-2.0"
] | permissive | gfalcone/serveml | 6b017ceda45c7926ba734a186bcc69697e74d3c4 | 51937e3884f73d04482e22d82d3f771946361751 | refs/heads/master | 2023-05-22T22:28:40.778780 | 2020-04-02T10:26:58 | 2020-04-02T10:26:58 | 243,072,210 | 26 | 1 | Apache-2.0 | 2021-06-10T15:46:32 | 2020-02-25T18:35:04 | Python | UTF-8 | Python | false | false | 850 | py | import mlflow
from mlflow.pyfunc import load_model
def load_mlflow_model(path: str, tracking_uri: str = None):
"""
Generic function that loads model from MlFlow.
Relies on this function : https://www.mlflow.org/docs/latest/python_api/mlflow.pyfunc.html#mlflow.pyfunc.load_model
:param path: path of t... | [
"paolo@getaround.com"
] | paolo@getaround.com |
483e2de8f5aabad5ceb3ec89255f04baab08ecd1 | 0e973d6b0c72ce426c19ece76596dd8a83b2f955 | /tools/editor/pack_panel.py | 4982a94407412b914587be7dc9d64cc5a1158bda | [] | no_license | korialuo/ejoy2dx | 733b98172c1fe8e5535c10fc039dd8e9cc40d1de | e30e821682beb927326795d37eb0926e02bbd61f | refs/heads/master | 2021-01-11T16:05:12.920643 | 2016-12-08T11:22:39 | 2016-12-08T11:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | import wx
import os
import sys
from custom_tree import CustomTreeCtrl
import pack_tree
try:
from agw import customtreectrl as CT
except ImportError: # if it's not there locally, try the wxPython lib.
import wx.lib.agw.customtreectrl as CT
class pack_panel(wx.Panel):
def __init__(self, parent, style):
... | [
"rainfiel@gmail.com"
] | rainfiel@gmail.com |
50069148941266ffbabb148d1571b7acd8eab9e3 | a515b936fffb89c6a786200e5aff47d44f419d56 | /fedcodeathon2018/settings.py | ebc003772231f6e4ccb7330ffe2bf1a872786445 | [
"MIT"
] | permissive | hannah-west/fedcodeathon2018-1 | ff7c4143411caff5594ce7305954a744b8e52ba9 | 2cac972b6eaebd7bfc47c02aade36b0f4a6869ab | refs/heads/master | 2020-04-02T11:41:03.285892 | 2018-10-22T02:20:34 | 2018-10-22T02:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,509 | py | """
Django settings for fedcodeathon2018 project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
imp... | [
"elly.richardson18@gmail.com"
] | elly.richardson18@gmail.com |
8d9c0ab0f998c8f01a122e1b82d8798cd73ec36f | 54e0dddbd13841e818eb58361102bccf7742d0c1 | /codeforces/403/A.py | cd3bb607add30d1f9eea5ae495517022f773471c | [] | no_license | tjytlxwxhyzqfw/online-judge | fae0ff3a96182ec13fd5da6183f4d5ce6aef2a7a | 4fbc9194de8d4977bd90cfb6662fff81b66b1d08 | refs/heads/master | 2021-06-20T15:42:55.950240 | 2021-03-28T08:06:15 | 2021-03-28T08:06:15 | 74,032,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import re
import sys
import time
def read(t=None):
string = raw_input()
return string if t is None else [t(x) for x in string.split()]
def solve():
n = int(read())
a = read(int)
n *= 2
f = [0 for i in range(2*n)]
ans = 0
max_ans = 0
for x in a:
if f[x] == 0:
f[x] = 1
ans += 1
if ans > max_ans:
... | [
"534038294@qq.com"
] | 534038294@qq.com |
940ba161fbdf17a6beae7caec9216150b6957149 | dde3552677efe21da25c94a4c4c04df7def802ac | /qa/model/order.py | 0d8efd305797514857815c2db79a672c949c44bd | [] | no_license | wanglei850429/NLP | 61b094831e8fac378902ee8e5ff3a1c72bd08b48 | 25e03c86ce1c680b4e2ca7f165e00f3c61a937a3 | refs/heads/master | 2020-06-03T01:45:29.478167 | 2019-08-06T05:13:15 | 2019-08-06T05:13:15 | 191,380,545 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | import sys
sys.path.append('../')
from model.word2vect import load_model, vector_similarity
from utils.utils import Utils
MODEL_FILE = '../data/question.word2vec.bin'
DEBUG = False
word_vector_model = load_model(MODEL_FILE)
def order_by_word2vector(es_result, question,n=5):
if DEBUG:
for i in es_result:
... | [
"shiori5555@163.com"
] | shiori5555@163.com |
b3a64d09dd12170ebd5c17716c48878216461273 | 213a2ef70e92fa108f7087b0170eecf02d8981ad | /mainmenu.py | 5b9d771f5dcd54c7c6c3c68e101bd31bcc177113 | [] | no_license | shanjaynielle/milktea-py-master | 863770502bf0f78e8e91f8857b901f8e62491db5 | 16c0c37603b6b8bfccea9da4a8349bba61f9665c | refs/heads/master | 2023-08-27T03:33:04.618771 | 2021-11-02T10:07:55 | 2021-11-02T10:07:55 | 423,792,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from tkinter import *
#FUNCTIONS
def btn_clicked():
print("Button Clicked")
#FUNCTIONS
mainmenu = Tk()
mainmenu.geometry("730x490")
mainmenu.title("Main Menu Window")
mainmenu.configure(bg = "#ffffff")
canvas = Canvas(mainmenu,bg = "#ffffff",height = 490,width = 730,
bd = 0,highlightthickness = 0,relief = "ri... | [
"shanicejaynielle@gmail.com"
] | shanicejaynielle@gmail.com |
29e81b0aeb77c2d7f97adab42a369a78d855924c | 855c94bcc9aff1e069cd2fd95c4e07d37a4d7fd8 | /gui/sparc2nwb_gui.py | adc1d0ef9fc880328bd419b0bdf340dade1bb4ab | [
"MIT"
] | permissive | DerekYJC/sparc2nwb | 5410d9b3c8b7adb8de155acc446486850639edc1 | 45dd82a1fcc5cbe7f3203bfa72b12b31d87d4ec4 | refs/heads/main | 2023-06-22T18:25:48.294865 | 2021-07-26T14:48:19 | 2021-07-26T14:48:19 | 386,140,349 | 0 | 0 | MIT | 2021-07-26T14:45:42 | 2021-07-15T02:43:36 | Python | UTF-8 | Python | false | false | 11,613 | py | import os
import itertools
import tkinter as tk
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd
import logging
import pickle
import pynwb
import sys
from tkinter import *
from PIL import ImageTk,Image
from tkinter.ttk import Combobox, Progressbar
from tkinter.filedial... | [
"noreply@github.com"
] | DerekYJC.noreply@github.com |
366de226c7646d2431d87cfddec889845e445d13 | 8770524b3ffcc082e7e41f5a4d190ff7e74e2661 | /producerVelib/producer.py | c8f004947ae953ab6fab54f1631700f55f176f9a | [] | no_license | grvn-ht/VelibApp-Kafka-Python-React-Docker | 1cd4962e532c0b936fedc7408a32bd62bbb63323 | a9250218be35aac5fecd4d7869c1d46cc88ab9b9 | refs/heads/master | 2023-03-08T08:21:12.151352 | 2021-03-01T20:01:10 | 2021-03-01T20:01:10 | 332,783,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import json
import time
import urllib.request
from kafka import KafkaProducer
producer = KafkaProducer(bootstrap_servers=["kafka1:29092","kafka2:29093","kafka3:29094"], api_version=(0, 10, 1))
req = 'https://opendata.paris.fr/api/records/1.0/search/?dataset=velib-disponibilite-en-temps-reel&rows=1500'
while True:
... | [
"grvn.huet@gmail.com"
] | grvn.huet@gmail.com |
b34561df0fc9fbf7967d223ac8a7b9c44c4323a2 | 174f02e66915184aa6353af732e9aa1d6989e6de | /source/lib/SConscript | bed9a68f5c45fc7af8e21b222f67b3379dc888a2 | [] | no_license | giszo/urubu | a4f1ef3bb6d78275ad0d482d7afedb4378de0a5b | 0a80e1f45fb66c273162f07718e74ff95aa4a14c | refs/heads/master | 2020-12-24T13:28:38.871285 | 2013-11-14T20:09:30 | 2013-11-14T20:09:30 | 14,167,345 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 852 | # Urubu build system
#
# Copyright (c) 2013 Zoltan Kovacs
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This pro... | [
"giszo.k@gmail.com"
] | giszo.k@gmail.com | |
4b3237b0d4f5231a5cb009b616b46afaa72b71de | 40fe9004b894e42ba0fc0d5dcc38c074026ca7a9 | /ejemplo 5.py | e9ccc283f6dffbde290b4a93461e2e61297f1378 | [] | no_license | AlfredoGuadalupe/Lab-EDA-1-Practica-9 | 2bee96c24ec7400274cb63387246a2bccae0c95a | ed93f911e4ea55102060945b55d93fe896974d01 | refs/heads/master | 2021-05-19T11:31:38.056056 | 2020-04-04T22:38:33 | 2020-04-04T22:38:33 | 251,675,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | x=10
cadena="Hola Mundo"
print(type(x))
print(type(cadena))
x="Hola Mundo"
cadena=10
print(type(x))
print( type(cadena))
| [
"noreply@github.com"
] | AlfredoGuadalupe.noreply@github.com |
7036ac32fee9e65130dd13ff7295975182eedaf6 | 78bb44c98f241d16a853e318cdbe9573d307d3e1 | /google/appengine/api/appinfo_errors.py | a681837a4ab7d9b740ebe66866196e98388a8b54 | [
"Apache-2.0"
] | permissive | vicmortelmans/catholicmissale | 2a8129eef31142b43e66fbd72620c7454b3c929b | b36916181d87f4f31f5bbbb976a7e88f55296986 | refs/heads/master | 2021-01-17T11:36:49.768808 | 2020-11-17T18:14:16 | 2020-11-17T18:14:16 | 11,186,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,750 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"vicmortelmans@gmail.com"
] | vicmortelmans@gmail.com |
0f302751d52a6405f153aeca48f9dfd49db15020 | a9a1ffcef92fc711b8850f30370cfe37cfaf98e4 | /core/domain/recommendations_jobs.py | c766d33ea1b0409aa7646aeaadfdbe19d9fcba42 | [
"Apache-2.0"
] | permissive | leandrotoledo/oppia | bb81ebd198c594054a752e93ed4618bba2f279c3 | 55bc67251a70768b7ec9555750f236fb530497c0 | refs/heads/develop | 2020-04-14T00:04:20.109854 | 2015-09-21T07:50:09 | 2015-09-21T07:50:09 | 42,904,723 | 1 | 0 | null | 2015-09-22T01:52:28 | 2015-09-22T01:52:27 | null | UTF-8 | Python | false | false | 4,821 | py | # coding: utf-8
#
# Copyright 2015 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"wxyxinyu@gmail.com"
] | wxyxinyu@gmail.com |
88221fcdc4d5cdbc8170fc30fecdbfb61a5a11af | 041b53214bb9b5677a71a372458653f273c8019c | /ParametricLeaf.py | edd4b3b0e212a6c11cef01fe2a2d655c2c03b5a2 | [] | no_license | ChenLingFeng22/Pcd-to-Parametric-Leaf | a0a84134452810770a2d0352d67e6539c7d1aac2 | 826d5d4164a87f7fa4b5ada518d8c549d79b6a97 | refs/heads/master | 2020-07-14T16:18:11.518326 | 2019-08-30T09:40:58 | 2019-08-30T09:40:58 | 205,347,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,900 | py | from PcdReconstruction.Bezier import Bezier
from PcdReconstruction.Midrib import Midrib
from PcdReconstruction.Silhouette import Silhouette
import numpy as np
MIDRIB_SAMPLE = 50
CROSS_SECTION_SAMPLE = 20
class ParametricLeaf:
def __init__(self):
self.A1 = np.array([0, 0.3, 0])
self.A2 = np.array(... | [
"cheng.wen.bupthu@gmail.com"
] | cheng.wen.bupthu@gmail.com |
bd7d5a9145e6a90674771087727d96fb67fd1c04 | 2ae6784fe5388da20f858ac7bb2976b6ec5b522d | /code/plottingScripts/plotMLines.py | a65f7f09b7927469a474bf5c8c69c3bcb10f8233 | [] | no_license | yanyuechuixue/PTAInference | 8e39f95f4905cf17a3a6241be0806e39ebdc2c8a | 88f399db579d3f8bac7d2ff1648444075e64dec2 | refs/heads/master | 2023-01-07T23:40:09.978266 | 2020-11-08T14:45:49 | 2020-11-08T14:45:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | import numpy as np
import matplotlib.pyplot as plt
import confBands
import matplotlib
matplotlib.rcParams.update({'font.size': 15})
orange = '#E69F00'
blue = '#0072B2'
green = '#009E73'
red = '#D55E00'
green2 = '#004D40'
blue2 = '#1E88E5'
orange2 = '#FFC107'
red2 = '#D81B60'
colSimp=orange
colGalExt=green
col... | [
"hmiddleton8@googlemail.com"
] | hmiddleton8@googlemail.com |
3d839a1fa9233be5b27f6e913afa36303108bc53 | c0f303806580d54b2ab48b37a59f530856bf0e71 | /scripts/dns_add_zone | 012fd10fea44f5446b8a592c93408829f588965d | [] | no_license | JoranTrompet-r0667009/SystBeheer | 0be21893d1a512fa1cfa21a5db3514142275b830 | 1fd20a5a31f072f1a2dcc70148b825e25ade57f1 | refs/heads/master | 2020-04-01T20:56:46.841884 | 2018-12-13T19:31:01 | 2018-12-13T19:31:01 | 153,628,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | #!/usr/bin/env python3
import sys
import os.path
import re
def print_error(message):
print(message)
sys.exit(1)
def newZone(name):
zone = name + ".joran-trompet.sb.uclllabs.be"
path = "/etc/bind/zones/" + zone
with open(path, "w+") as file:
file.write("$TTL 604800\n")
file.write("@ IN SO... | [
"joran.trompet@uclllabs.be"
] | joran.trompet@uclllabs.be | |
bb491114b0cef321d3302da6567c88bca4d754f1 | 93dd3eaa3d53f80891250fd3cf7f8fa4e3a16a3d | /15Backgrounddetection.py | 540cc77811b20b74d4fc0d8ba12a03160708e1ea | [] | no_license | nishant-neo/ImageProcessing-Python | 3a903819ad9de0396ce830220e5bb82e927e82e0 | 604b94617416194cacd3c3050f6eca4690fe2360 | refs/heads/master | 2020-07-01T21:56:03.195610 | 2017-03-27T06:22:22 | 2017-03-27T06:22:22 | 74,253,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | import cv2
import numpy as np
#we will try to extrct the moving folks walking down the street
cap = cv2.VideoCapture('people-walking.mp4')
fgbg = cv2.createBackgroundSubtractorMOG2()
while True:
ret, frame = cap.read()
fgmask = fgbg.apply(frame)
cv2.imshow('original', frame)
cv2.imshow('fg', fgmask... | [
"noreply@github.com"
] | nishant-neo.noreply@github.com |
d8220916ecbd98047f863432cb5fb2eccd456d55 | 6217c4ec98e249ad4fe5f47b5e12f40b18c98dfd | /backend/mushrooms/migrations/0005_remove_mushroom_type.py | 4e5559265cb0af75625aa0f9200c61e99f6cb1fe | [] | no_license | mbrodziak/Mushrooming | 8d32ef67624d4682e5de0a5ca1d84f1fa1112558 | 3188cbff1faa720733ce3c94e297dbdc35b9a9ee | refs/heads/master | 2023-02-04T06:23:42.577857 | 2020-12-20T17:40:18 | 2020-12-20T17:40:18 | 292,370,380 | 2 | 0 | null | 2020-12-20T17:40:19 | 2020-09-02T19:02:13 | Python | UTF-8 | Python | false | false | 330 | py | # Generated by Django 3.1.1 on 2020-09-06 09:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mushrooms', '0004_auto_20200905_1927'),
]
operations = [
migrations.RemoveField(
model_name='mushroom',
name='type',
... | [
"Mateusz@Mateusz"
] | Mateusz@Mateusz |
2a5c2f2bf1ceebbcc5947b1f7cb54ce037ae73ac | fba17ffa4796e4dd66d94bc552a9f6da1464e55b | /demo/util.py | 876fd186689202c42ffd0234ba00d50caaf213e1 | [] | no_license | Chenxuanqi666/Crawlerists | 0fd4889875aa6d249011eec648320ebb81f90a96 | eceaf3b261e6da549e29f894b22719837bff0003 | refs/heads/main | 2023-06-20T07:40:44.480792 | 2021-07-21T11:49:26 | 2021-07-21T11:49:26 | 387,184,840 | 0 | 0 | null | 2021-07-18T13:39:46 | 2021-07-18T13:39:46 | null | UTF-8 | Python | false | false | 2,775 | py | import time
from datetime import datetime
import re
class Util(object):
month = {
'January': 1,
'February': 2,
'March': 3,
'April': 4,
'May': 5,
'June': 6,
'July': 7,
'August': 8,
'September': 9,
'October': 10,
... | [
"noreply@github.com"
] | Chenxuanqi666.noreply@github.com |
d0c999d0e575dcb44f8db9f2c8ab5d1d5eeba244 | 498f68b80d2f5c20f24cc3ffd86d34a3ed494757 | /test_main_page.py | e20d983b3a2e39572afa552d018fa7b56ed61e69 | [] | no_license | NazarovIL/final_task_selenium | 4218ac762076d0252d3adbac01c3e46c5dc22d52 | 057e7ab3c8e10888485603f4923ad3e7ae7d6382 | refs/heads/master | 2022-07-10T06:54:40.126692 | 2020-05-14T10:02:46 | 2020-05-14T10:02:46 | 255,917,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from .pages.main_page import MainPage
from .pages.login_page import LoginPage
from .pages.basket_page import BasketPage
import pytest
link = "http://selenium1py.pythonanywhere.com/"
@pytest.mark.login_quest
class TestLoginFromMainPage():
def test_guest_can_go_to_login_page(self, browser):
page = MainPage(br... | [
"nazarovil2011@yandex.ru"
] | nazarovil2011@yandex.ru |
a15aa169c301e35f89e5ec5e9905e2b6d06c1520 | 85c96f45589b578ca8b61a71ef0408bd31e595da | /Classifiers/Classifier.py | 2fceb1cb313485badd039dbb8adfd690b2f0e104 | [] | no_license | MaciejBlaszczyk/Tuning-deep-learning-parameters-for-classification-problems | 7667e300d2aa4a6befe8a2faea4c6d31b370a155 | df8db5246bd3cc6af706dcdabac41382fe83ac62 | refs/heads/master | 2020-07-12T03:45:10.618384 | 2020-02-23T06:18:58 | 2020-02-23T06:18:58 | 204,709,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | import numpy as np
from Utilities.Utilities import balanced_accuracy
from Enums.ClassifierType import ClassifierType
class Classifier:
def __init__(self, data_handler, epochs, batch_size, eval_type):
self.data_handler = data_handler
self.epochs = epochs
self.batch_size = batch_size
... | [
"maciejblaszczyk1996@gmail.com"
] | maciejblaszczyk1996@gmail.com |
66041de006ed19ac7784b6f1fe70f62b8b665fb2 | fd6c4a7bb28ffe139c4385f58b2921ed86d9b8f5 | /youshi_api/job.py | 95b85d9c873b6a0edfd32c17f0ea15ac7328bb67 | [] | no_license | xxlv/youshi_api | 5419c29d1bf96723e718f0cd3477e5301d3b8136 | 95234497c3c977be57c5877510f449ab9176db3a | refs/heads/master | 2021-01-24T06:13:18.215870 | 2015-04-14T03:51:18 | 2015-04-14T03:51:18 | 33,657,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,035 | py | from flask import Flask
from flask.ext.httpauth import HTTPBasicAuth
from flask import make_response
from flask import jsonify
from flask import abort
from flask import request
#导入ORM
from sqlalchemy import Column, String, Integer,create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative imp... | [
"1252804799@qq.com"
] | 1252804799@qq.com |
0aa80d7dfbf7afc3a6099f45c6922fd1da7c10de | 6751a17f3d8523df503dd3935c321b4cdc1916a0 | /hello.py | 42546a9abb1a92fb36ba474a49258035e2c4f369 | [] | no_license | vishwas-upadhyaya/house_prediction | 63a203501d007694703fe4df27785ace411b09d6 | 04b876f954bd46cf235bccfa27c1f6555aad31bc | refs/heads/master | 2021-05-22T14:33:18.523112 | 2020-04-04T10:10:08 | 2020-04-04T10:10:08 | 252,964,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import winsound
frquency=32767
duration=10000000
winsound.Beep(frquency,duration)
def sos():
for i in range(0,3):
winsound.Beep(5500,100)
for i in range(0,3):
winsound.Beep(5500,400)
for i in range(0, 3):
winsound.Beep(5500, 100)
sos()
| [
"vishwasu2001@gmail.com"
] | vishwasu2001@gmail.com |
a7130f914b80f01a50ef06a27dcc13ca21f8568e | 38dc4462ed52f76b8b0b5daf1ab93dd7591d9487 | /scripts/navigation_example/nav_env.py | cbeb5345da3b07e97c742e2e07709f5aaf46779a | [] | no_license | AmyPhung/rl_experiments | d1542ee928ee2c056e92773cd4275f713d77f9d2 | 99c3eb71124aeb514c893264c1815c01bffae2f7 | refs/heads/main | 2023-04-23T06:32:29.402412 | 2021-01-02T17:11:08 | 2021-01-02T17:11:08 | 323,732,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,657 | py | """
Simple system where a robot attempts to navigate towards a goal.
Based on cartpole example
Helpful Inpsiration:
Car racing example: https://github.com/openai/gym/blob/master/gym/envs/box2d/car_racing.py
Known Bugs: prev dist is never updated
"""
import math
import gym
from gym import spaces, logger
from gym.util... | [
"amyngph@gmail.com"
] | amyngph@gmail.com |
fc274e273effbbfd8f37c4b72009be0dc1e540ac | 7445e5bf01fa41766cc04ad976dd42c8e88cb1fc | /welcome2.py | 7fe2944270e5c358a5530e261e443914ffd6207a | [
"Apache-2.0"
] | permissive | rakshit1994/powertrack-1 | 338d5e2a7c4af66726538d3dc2c5653af9e31f17 | 1460a351b09173e2e3393d53828c35797a7baa96 | refs/heads/master | 2016-09-12T13:19:29.540292 | 2016-05-12T06:56:44 | 2016-05-12T06:56:44 | 58,616,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | # Copyright 2015 IBM Corp. 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"singhrakshit@gmail.com"
] | singhrakshit@gmail.com |
530fdc5d6a45f3971b47b706210ea10a43889957 | 24ea9f61a3555df660e770c4f84d34097aff152d | /killswitch.py | 50bc7b51449d550d3f0ef9fa14fb62fb07eae4a9 | [] | no_license | Scyless/killswitch | c848feb2a4b29332eb27f0848a23bb716581f96e | 4e828e1ef6b7e6aa3a0b1ec94b1bc2907c34edd4 | refs/heads/master | 2020-07-06T14:48:45.991309 | 2019-08-18T21:11:42 | 2019-08-18T21:11:42 | 203,056,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | #'' The killswitch '''#
#'''Created on Aug 17, 2019'''#
#'''@author: scy'''#
import time
import os
import urllib.request
import psutil
from datetime import datetime
import easyufw as ufw
from playsound import playsound
#'''Start the client'''#
ovpn = "openvpn" in (p.name() for p in psutil.pr... | [
"noreply@github.com"
] | Scyless.noreply@github.com |
235e928730c8d8c9fde2e8fa3eaea25bfd213334 | ba2bfad32435a7c29b2e3cd084778f9031e35b46 | /addepiclc_lcmath.py | 032f928dc1331fd8ef5cd3619dc15b963a672354 | [
"MIT"
] | permissive | evandromr/python_scitools | c13953df0fc32d0ece8cfc0001d9bc88ce19471b | afe8ad113245069af0ef2a05c69046938459ab2d | refs/heads/master | 2020-05-16T20:46:02.475071 | 2015-01-26T19:05:38 | 2015-01-26T19:05:38 | 12,600,983 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | #!/usr/env python
import glob
import subprocess
if __name__ == '__main__':
'''
Add lightcurves
MOS1 + MOS2 = MOSS
PN + MOSS = EPIC
'''
mos1files = glob.glob('mos1_lc_net*')
mos2files = glob.glob('mos2_lc_net*')
pnfiles = glob.glob('pn_lc_net*')
mos1files.sort()
mos2files.sort... | [
"evandromartinezribeiro@gmail.com"
] | evandromartinezribeiro@gmail.com |
752d257e3a1e350ceddddf586666ae7e97341291 | 75e2c3f02f99273549405609804530c79320fc63 | /app/main/views.py | 2656bc74a7a3abdcd8d2447c702aeb92a5b160ae | [] | no_license | Sanagiig/myBlog | 8dbd27e2fe8aabd6c2bddba20863439d97254060 | 1bfcbd7a114df2b354bc8800a6fecc8e1bce568d | refs/heads/master | 2021-07-17T21:54:34.371501 | 2017-10-25T03:31:10 | 2017-10-25T03:31:10 | 108,208,889 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | from flask import request,current_app,render_template,g,session,render_template_string
from flask_login import current_user
import json
from app.main import main
from app.models import Article,Category,Tag,\
Comment,Reply,\
UserInfo,Article_PutPorC,Comment_PutPorC,Reply_PutPorC,\
Anonymous
#首页
#返回文章
@ma... | [
"laiwenjunhhh@163.com"
] | laiwenjunhhh@163.com |
38bc5a82aded1c7c235e5a86140665f0845a4f34 | a93f2f699e666233bcd546b759e60adc36190129 | /Action/ac_CPA_Report_Sale.py | 7ca39ad18beabeac64476a29c89f20d9ccaa35d1 | [] | no_license | Javis1205/cpa_report | a85ae8fed3238f290631c879b05443812ccdeada | 6c8f1260ab00ca010b39cf612c2b2d091e2c4256 | refs/heads/master | 2021-01-20T19:39:44.766124 | 2016-08-11T03:06:53 | 2016-08-11T03:06:53 | 65,373,132 | 0 | 1 | null | 2016-08-11T03:07:43 | 2016-08-10T10:21:31 | Python | UTF-8 | Python | false | false | 6,497 | py | import sys
sys.path.append('Class/')
sys.path.append('Functions/')
sys.path.append('Config/')
import config
import convert_datetime, datetime, functions
import cls_DataFactory_DS, cls_AssemblyWorker, cls_GSS
def return_dict_data(sta_date, end_date):
sql_update_data_fixed = """ SELECT MIN(ord_id), MAX(ord_id) FROM ord... | [
"dai12051997@gmail.com"
] | dai12051997@gmail.com |
6da0310c39bad903d29b919f240b4d114494c7a3 | 0fa774e0aadacde7b8420c5012cd9e7dcffc7cee | /gyro_3dv3.py | cc567f2ab0a6c6efd1c876f1a5520a9ee4b59d7b | [] | no_license | DreamKiller-Z/smart-recipe | 06be3215f021de077ce4dc8dc9e0c82213760230 | 38256d7d8cc0f3135b13740bf94f009d7b5fa59d | refs/heads/master | 2020-05-23T21:40:45.903409 | 2019-10-04T01:27:46 | 2019-10-04T01:27:46 | 186,957,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,661 | py | #!/usr/bin/python
import smbus
import math
import time
import pandas as pd
import numpy as np
import os
# from pynput.keyboard import Key, Listener
# import cv2
# Register
power_mgmt_1 = 0x6b
power_mgmt_2 = 0x6c
def read_byte(reg):
return bus.read_byte_data(address, reg)
def read_word(reg):
h = bus.read_by... | [
"zyw666@uw.edu"
] | zyw666@uw.edu |
c606713dfad3e29420a9b92000d57f563d35f17f | db31945a728752ba954a025ef0dddc946b27d2b8 | /vaccineAvailabilityNotifier/commands/router.py | b44126a5bf68016f6bbd12f208a357499bc832cd | [
"MIT"
] | permissive | bhaskernitt/vaccine-availability-notifier | 0ed56db3f4efa9eeb17e93c96fbd5ee10e51564d | 20d020b2050ca76dca190dc6e767dcc5697339b8 | refs/heads/master | 2023-05-08T22:47:23.049439 | 2021-06-03T15:38:16 | 2021-06-03T15:38:16 | 365,131,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import click
from .sub_commands import schedule_job_cmd
def safe_entry_point():
entry_point()
# except Exception as e:
# print(Fore.RED, '------------------------------------------')
# print(Fore.RED, 'unable to process../ COMMAND NOT NOT FOUND',e)
# print(Fore.RED, '-------------------------------... | [
"bhasker.nandkishor@gmail.com"
] | bhasker.nandkishor@gmail.com |
7eb8ea70ec6bbc7a25369c496fa0b110a37dcb37 | c29f7c0ead08c93b0185daa70e129ffe016a6aae | /store/migrations/0024_auto_20171114_1432.py | c5717e7477357d97d52a7cb58a8c4fb49a7ac7b3 | [] | no_license | amandacav/media_v1 | 280ccd368f9f0e358315d08fb9001054612bc14b | bb903bd2b21088b5be96ff1bda8313bd6165e24a | refs/heads/master | 2022-12-22T12:09:28.210106 | 2021-02-16T21:20:48 | 2021-02-16T21:20:48 | 92,543,691 | 0 | 1 | null | 2022-12-07T23:59:17 | 2017-05-26T19:49:00 | HTML | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-11-14 19:32
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('store', '0023_... | [
"harrisons1@hhmi.org"
] | harrisons1@hhmi.org |
4fd102c324075eef6ff94a31890e60d8667dd49e | 11928b93ef00667411bcb1b6b32121ddf3566ee3 | /index.py | b6002a854188933a8dab6de393c6434f36797c9a | [] | no_license | Gersonrecinos02/examen-finalb | d4055469ae1c2957222221d7b54432b77222588e | 0fb5371335eab1183681b520df3dc2f75ac9c4db | refs/heads/master | 2022-10-02T18:36:56.395914 | 2020-06-06T23:28:09 | 2020-06-06T23:28:09 | 270,005,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | from tkinter import *
root = Tk()
ancho = 400
alto = 270
root.geometry(str(ancho)+"x"+str(alto))
root.title("FINAL")
saludo = Label(text="Bienvenido",font=("Agency FB",14)).place(x=150,y=5)
lblname=Label(text="Nombre",font=("Agency FB",16)).place(x=80,y=30)
entrada=StringVar()
nombre =Entry(root,textvariable=entra... | [
"gersonenriquerecinoslemus@gmail.com"
] | gersonenriquerecinoslemus@gmail.com |
e7cdfda84040ee41a1ec5676b2980c6c554743da | bc5ecee964520ecfb6df6cd6df79569a4a418a68 | /Seance 1/Exo05.py | 6b0d8c4480d386c6efcbab5c9b802e9de8dbbea9 | [] | no_license | EnzoZuniga/Python | 839225c7b904fc2f0379ed734432a7d948091b19 | 1c0ffdb8f25c933b82ba2f6f52b9e8489c3c8c4e | refs/heads/master | 2020-04-01T23:13:02.205515 | 2019-03-15T15:29:34 | 2019-03-15T15:29:34 | 153,748,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | print('Dans cette algorithme, la première variable prendra la valeur de la troisième variable, et la deuxième de la quatrème.')
a=int(input('Entrez la valeur de votre première variable :'))
b=int(input('Entrez la valeur de votre seconde variable :'))
c=int(input('Entrez la valeur de votre troisième variable :'))
d=int(... | [
"ezuniga@sio.jjr"
] | ezuniga@sio.jjr |
83797b20d04be3d673211f36fc563230f6841f17 | c3c51ba1a2981bba05f2a82ff3b536bbcc6e72b5 | /owtf/api/handlers/plugin.py | f60803092a971f08c59d11c688da5fe50f7ec6de | [
"BSD-3-Clause"
] | permissive | alienus/owtf | 83761a501e21f768eba7a2dc272d03e6bd201be1 | b6d81fac83c324c2b8c6fe2a974c036881c1fcd0 | refs/heads/master | 2021-04-28T09:06:41.048563 | 2018-02-20T05:27:57 | 2018-02-20T05:27:57 | 122,031,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,382 | py | """
owtf.api.plugin
~~~~~~~~~~~~~~~
"""
import collections
import logging
import tornado.gen
import tornado.httpclient
import tornado.web
from owtf.api.handlers.base import APIRequestHandler
from owtf.lib import exceptions
from owtf.managers.mapping import get_all_mappings
from owtf.managers.plugin import get_types... | [
"bradleywitcher@gmail.com"
] | bradleywitcher@gmail.com |
385aff300767551db85ad08bc165eda8b9f974dc | 5400469e22bd3522447ed50a466e3f0253e2fd0d | /utils/data_utils.py | 615287b88238594459e8b27c182b792d8acf7a29 | [] | no_license | guyucowboy/LungCancerDiagnosis-pytorch | 8effefda5bf2b55a52475ae80d2a316b71a7022b | 018853de09f77a3177b77edc942f92ca8057193d | refs/heads/master | 2020-09-01T11:55:25.135948 | 2018-09-23T21:47:38 | 2018-09-23T21:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py |
import time
import numpy as np
import random
import os
import argparse
from joblib import Parallel, delayed
import scipy.misc
import misc_utils as gp
from scipy import ndimage
def create_test_dataset(data_dir, AUG):
NSL = 5 #Number of slices (lanes) for multi-line network
files = os.listdir(data_dir)
fil... | [
"noreply@github.com"
] | guyucowboy.noreply@github.com |
c10ae7a7917a0f0a63a1d0f344adbeb560387611 | 3358d5efaa9d6aeadfa530cc7ae5a8e1b54f161e | /triangle/test.py | d82daa098bdfc171868dd3fd771265c174a68138 | [] | no_license | datnt55/ktpm2013 | 0e56e13477824da86132d12ebf2ef2999b1039ac | a432b76a01eaca43f703bce1c6664399e9f82145 | refs/heads/master | 2021-01-22T07:32:36.839341 | 2013-10-19T14:31:10 | 2013-10-19T14:31:10 | 12,721,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | import unittest
import math
import triangle
__author__ = 'datnt_55'
class TestTriangle(unittest.TestCase):
# Test mien gia tri
def testKhoangGiaTri1(self):
self.assertEqual(triangle.detect_triangle(3,5,-1),"Ngoai khoang gia tri")
def testKhoangGiaTri2(self):
self.assertEqual(triangle.detect... | [
"daylodes@gmail.com"
] | daylodes@gmail.com |
1dd5a34e612e0492339d21754f8ab58d9faef979 | 08ed873bba09a3874651801c4a86b36aa8f7abdc | /routing.py | e4264762140344eab484de19281defc2a23eee6f | [] | no_license | geek-proj/socketGameApp | a5a66cc6f2c49d707bb160e645e66a3753bde059 | 580d71d1c623debedb7085ab6e7a131d7f448233 | refs/heads/master | 2022-11-16T00:29:30.715088 | 2020-07-14T10:02:21 | 2020-07-14T10:02:21 | 279,547,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.security.websocket import AllowedHostsOriginValidator
from django.conf.urls import url
from project.consumers import ChatConsumer,EnterConsumer
application = ProtocolTypeRouter({
'websocket':Allow... | [
"joha-2001@mail.ru"
] | joha-2001@mail.ru |
7208be6a9eb3a77a2d42bd26b5ffea973ce3e40e | f725b5a04a179d7259b2a6d51213a78425515935 | /venv/Scripts/easy_install-3.7-script.py | 5992d027fa011e01843869793012e4d1a317457d | [] | no_license | MoSedky/Football_Prediction- | a67aeaacd38afea8b096e2f262b5476bd1190749 | 329842f7df2c85ddb53501f917673c49cb716fda | refs/heads/master | 2020-05-02T15:38:05.934992 | 2019-03-30T14:48:16 | 2019-03-30T14:48:16 | 178,047,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!C:\Users\sedky\PycharmProjects\Udemy_1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"sedky.cs@gmail.com"
] | sedky.cs@gmail.com |
8930c718988ec9ff9e2fa05fd2fb822d8a01ce61 | b60804cc2c6379b54f9473e0b5c88054b6ab5789 | /TurtleOne.py | 03b2248ec8876bb67209eacf5cfe23ace98e6c8e | [] | no_license | kumaren14/Kumaren-MyFirstTurtle | a605ac6dab599046624979729e239ec187ff9fb6 | 2b71b962e9bd4ae3ea7de0e4df975ad618dcf43d | refs/heads/master | 2020-07-19T08:28:32.650887 | 2019-09-09T20:58:55 | 2019-09-09T20:58:55 | 206,410,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import turtle
turtle.shape("turtle")
turtle.speed(7)
turtle.pensize(5)
turtle.color("honeydew3")
turtle.forward(50)
turtle.right(90)
turtle.forward(50)
turtle.right(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(50)
turtle.right(90)
turtle... | [
"100157451@lubbockisd.net"
] | 100157451@lubbockisd.net |
2302c5232d04a5a863ae16ffe06d5ca30271fc71 | 52c79a87b9c6375d9563f995ae4624dee564e88c | /model/bot/server.py | dca303dc6828186fbc1f5cdaa558924dee4e770b | [] | no_license | doobeh/scudbot | 54733fadfe2fe6fb20728272d9726d73776e5ab0 | 3fcc16d115ba456b0db6a00725eee64d5b22bd51 | refs/heads/master | 2021-01-10T19:03:12.440183 | 2013-03-26T15:27:49 | 2013-03-26T15:27:49 | 2,173,968 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from database import Base, ASCII
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey
class Server(Base):
__tablename__ = 'server'
network_name = Column(String(100), ForeignKey('network.name'))
address = Column(String(100), primary_key=True)
port = Column(Integer())
isSSL = Column(Bo... | [
"PintSizedCat@gmail.com"
] | PintSizedCat@gmail.com |
c6f80b6fcff9d820146a6c798e6abee898629364 | 4fb5eb0a9a24fa5c112a4ebc854ee2604b04adda | /python/oanda/models/calculated_trade_state.py | 996c9bbd4d0e98b92e6550ccd12dbbf12aedeb73 | [
"MIT"
] | permissive | KoenBal/OANDA_V20_Client | ed4c182076db62ecf7a216c3e3246ae682300e94 | e67b9dbaddff6ed23e355d3ce7f9c9972799c702 | refs/heads/master | 2020-03-27T20:42:25.777471 | 2019-12-02T15:44:06 | 2019-12-02T15:44:06 | 147,088,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | # coding: utf-8
"""
OANDA v20 REST API
The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/perso... | [
"koen.bal@gmail.com"
] | koen.bal@gmail.com |
018ee3bc438ee98a5db180f60d32d8fc7b89183b | 3f9ce8ee23132e3c240fa86b4467888efaea00dc | /media/base.py | 366c209575111ddc6398c50b8d62c45247976401 | [] | no_license | ShawnYi5/logic_service | 700263a027c7639dc4a396a6fd118499160c5db5 | 868329cbdb94718316db6a8b633f623183dc55b5 | refs/heads/master | 2021-06-17T13:33:45.314931 | 2019-08-22T02:59:59 | 2019-08-22T02:59:59 | 203,698,877 | 0 | 0 | null | 2021-04-30T20:53:13 | 2019-08-22T02:25:03 | Python | UTF-8 | Python | false | false | 33,770 | py | import threading
import xlogging
import os
import datetime
import json
import copy
import uuid
import shutil
import sys
import collections
import time
import errno
try:
from . import tape_librarian
from .models import MediaTaskRecord
except Exception:
import tape_librarian
from models import MediaTaskR... | [
"yi.shihong@aliyun.com"
] | yi.shihong@aliyun.com |
a3ee49591f6deed0087d42e9b632c8a6a0a2ecc7 | 7a81a6cb525b00716bfe8594d250d46e01a09d5b | /Acomodar Fotos/changeName-FullyDiferent.py | f3edaf29b4c99a2fc3f2dc89b1fd4a2c89502ce2 | [] | no_license | LichaDC/GitProgramming | 84de8543190269bbcbde08b538b51ceba85ccb1f | e99c30bcabee8350406d708943f717ab74739ebd | refs/heads/master | 2020-03-28T07:54:03.684310 | 2018-11-15T20:23:41 | 2018-11-15T20:23:41 | 147,595,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,919 | py | from PIL import Image
import os, time
months = {
'01': '01 Enero',
'02': '02 Febrero',
'03': '03 Marzo',
'04': '04 Abril',
'05': '05 Mayo',
'06': '06 Junio',
'07': '07 Julio',
'08': '08 Agosto',
'09': '09 Septiembre',
'10': '10 Octubre',
'11': '11 Noviembre',
'12': '12 Diciembre'
}
schemeP = "'IMG-{} {} {} - {}{}'.fo... | [
"lisandrodc06@gmail.com"
] | lisandrodc06@gmail.com |
0abd01b4de8d1bcc1e337fe1c49bb5dbe7f3e2de | 81dbd272716480e7e8f21a9d2dbcbaf2c1c42398 | /src/app.py | 5c649fd90fd00602f45a9026a499a705951c4ed2 | [] | no_license | MatthieuMayer/palo_itest | c97c2decb8d53068fbd4f879f66c3b4a547aad04 | 7f9223562339b64440b79dd635b65cc00694c512 | refs/heads/master | 2023-04-05T05:59:11.275808 | 2021-04-07T19:55:53 | 2021-04-07T19:55:53 | 354,943,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # -*- coding: utf-8 -*-
# ------------------------------------------ Module Imports & Definitions -------------------------------------------- #
# Standard package(s) import ----------------------------------------------------------------------
import flask
from flask import send_file
# Project packages(s) import --... | [
"matthieu.mayer@sogeti.com"
] | matthieu.mayer@sogeti.com |
9f95168b1eedd2a04d670f60fb12bc9e7240a22c | 3d5e69cd8b889372e41bb1b69d119be9b886a409 | /0034_FindFirstAndLastPositionOfElementInSortedArray/FindFirstAndLastPositionOfElementInSortedArray.py | c1cd7083753d007cd35f170592d4b7009139e7a4 | [] | no_license | trilamsr/LeetCode | f55babf58efa1292c92f65c5d338b95782ac949a | 8b962e2affad32dafc9ab07fd88e596da213a00b | refs/heads/master | 2020-09-06T06:08:25.785595 | 2020-06-11T22:04:00 | 2020-06-11T22:04:00 | 220,347,389 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | class Solution:
def searchRange(self, nums: List[int], target: int) -> List[int]:
GTE = lambda x: target <= nums[x]
LTE = lambda x: target >= nums[x]
lo = lower_bound(nums, target, GTE)
hi = upper_bound(nums, target, LTE)
return [lo, hi] if lo <= hi else [-1,-1]
... | [
"tree@Tree.local"
] | tree@Tree.local |
cb9a875d7dbfc09ee81ee33082a576bec3973a8d | 18ccc4cd6f2937498fd5f487862b1451a1c8cf29 | /Main/entity.py | e78c2f1792e41571cb38fc6a05272751ee60cfd3 | [] | no_license | pei91/FirstRoguelikeGame | 3b4190bf57cbc60c9150b9eb5b888f341681d53f | dc7464d7cb414d79fd3efec3f5393c1f647be059 | refs/heads/master | 2022-12-15T15:04:02.638043 | 2020-09-13T03:44:57 | 2020-09-13T03:44:57 | 295,074,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,554 | py | """
A generic object to represent players, enemies, items, etc.
"""
import tcod as libtcod
import math
from render_functions import RenderOrder
class Entity:
"""
A generic object to represent players, enemies, items, etc.
"""
def __init__(self, x, y, char, color, name, blocks=False,
re... | [
"peichuan@buffalo.edu"
] | peichuan@buffalo.edu |
e2050ae7ec3732efd1bcb13c76ce0d0125fae948 | 8a47a76b839bf9169a39a5563d8fbac09f5b8038 | /graph_properties.py | 0bc7e0a3542ca67feedb04a191bbc67401fc7b85 | [] | no_license | snehass135/Python-Programs | 7f00b858a593706d4abfe7ca57140588d7786ed5 | 044800f8e4a7d313cd90fa16945877d795dda7b3 | refs/heads/master | 2022-12-29T19:14:29.312456 | 2020-10-15T18:11:51 | 2020-10-15T18:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import networkx as n
import matplotlib.pyplot as plt
import sys
### Functions ###
def add_nodes(graph):
"""Function to add nodes in the graph:
Parameters - take a list of space separated node names
"""
print("Enter the name of nodes to add to graph: ")
graph.add_nodes_from(list(map(str,input()... | [
"noreply@github.com"
] | snehass135.noreply@github.com |
5b1ab5ecdc9c7d23974f8baeee363624f3d5b617 | dcf65c5811010a38c45c595f1582c94b6a78dd3c | /sites/social/google/__init__.py | 16db10c1090d64b4a39947117690e2ffb086c777 | [] | no_license | jerryxing98/Tully | 7d4d9ee177902cbda0601c7f02715d29a417c2f6 | 78bb082ce16fd3b814d4d590a875bfbcdfdfe5fb | refs/heads/master | 2021-06-25T01:42:20.388899 | 2014-04-11T14:20:33 | 2014-04-11T14:20:33 | 11,405,119 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | #!/usr/bin/env python
#coding=utf-8
import urllib2, json, urllib, time
from django.conf import settings
def get_access_token(code):
auth_url = settings.GOOGLE_ACCESS_TOKEN_ENDPOINT
body = urllib.urlencode({
'code': code,
'client_id': settings.GOOGLE_API['client_id']... | [
"jerryxing98@gmail.com"
] | jerryxing98@gmail.com |
31598f939a5d375801ffa4549f2ce013baae15b0 | aaca39e751d9045ac6f94b9982f5d296d4a51724 | /709._To_Lower_Case/python/709. To Lower Case.py | d31bf167cc548e30317de16fb8a3ae9d7229cd6f | [] | no_license | panxl6/leetcode | 5299586148f68fa22b28b7c147aa8620de3664ef | 0dbfa41a96872a4c4042696a51bea0909909b4a6 | refs/heads/master | 2021-07-16T05:55:40.820163 | 2021-05-05T08:15:50 | 2021-05-05T08:15:50 | 54,037,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | # author: 潘兴龙
# date: 2019-02-11 08:25
"""
1) 题型剖析:典型的操作实现题
2) 解法:遇到大写的字母就转换
3) 知识点讲解: 矩阵的操作还有很多,旋转等。
4) follow up:
5) 时间复杂度分析:矩阵遍历,时间复杂度为o(n*m)
6) 备注:
这一类的题目经常出现在手写bug free的代码面试题中。
a. 遗漏了非字母的判断;
b. 记不清是加32,还是减32;
7) 评测结果分析:
"""
class Solution:
def toLowerCase(self, str:... | [
"sysupanxl6@gmail.com"
] | sysupanxl6@gmail.com |
60bd54bd38d11ab70479c900f2af0537fe11b75e | ba0d2a8c3532d93c4f0dabb60892db350c745433 | /app/app/settings.py | e5d578e72e263c120baf7c4346a30a9f45020d2a | [
"MIT"
] | permissive | jcazallasc/burriking-citibox | 94c0574397d05f98ed8fdb51dfdf4af25114b8e5 | 30f0a4520bedb6b9ba613e8cf279b37f0cc60704 | refs/heads/main | 2023-01-23T17:47:18.094910 | 2020-11-17T08:54:04 | 2020-11-17T08:54:04 | 312,210,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.2.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# B... | [
"javier.cazallas@Javiers-MacBook-Air.local"
] | javier.cazallas@Javiers-MacBook-Air.local |
bab9256dcbc3b248409060312975f24a2aa03668 | 69f4410c1f435988239c323ea98fd125d5caa003 | /信息内容安全/scrapy/tutorial/tutorial/pipelines.py | 8d93de3a2cbeed995f0f20113e9378e8bc7d6c07 | [
"MIT"
] | permissive | zhcy2018/homeworks | ab832807013d6b8cb9a58534623c7ccffd24c2e0 | 3aaa85e9fcbd999cdb0b05eac76906383437832e | refs/heads/main | 2023-05-07T13:45:56.032530 | 2021-06-02T11:12:35 | 2021-06-02T11:12:35 | 352,532,772 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
import json
import time
import random
import r... | [
"980514750@qq.com"
] | 980514750@qq.com |
dbd232948ff0f4296d567c45e201cb6f89018bda | 5f394d0109932ebb3ea66680ff329102ab90b65c | /Status_module.py | 37c27ad91e9f11c7dd4d914dfa845e4110137344 | [] | no_license | python-project-study/Command-handler_modules | d65fd17f620c38f3ab610f829169dab9815a935d | b3713abb2fc75f7fc9a615c96b907cc91615a90c | refs/heads/master | 2020-05-30T16:53:35.699308 | 2019-06-03T04:00:56 | 2019-06-03T04:00:56 | 189,858,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | ### --- Status module
##### class: status command #####
class Status :
def __init__(self) :
self.my_status = "my status"
def run_status(self, none) :
print("=============== Status ===================")
print(" RS232 : Baud Rate=%dbps, Data=%dbit, Parity=None, Stop=1bit"
... | [
"jisookk33@gmail.com"
] | jisookk33@gmail.com |
5760acd1de2dc2c41b016403e7abfea505df1759 | c4b516432c7f39d0c2ff5ba778f9ce099666ef07 | /scripts/radar_pack.py | 888ab8c8b8d22a8409dad318e193b70dba34d4c8 | [
"MIT"
] | permissive | IncubatorShokuhou/cpol_processing | 6e6a129637f7405f27f43154e8678ed0b7f6b299 | 4a27118678bbdcb5475ec136b0ec0425fcb48876 | refs/heads/master | 2020-09-30T14:01:11.242417 | 2019-10-08T07:42:16 | 2019-10-08T07:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,236 | py | """
Raw radar PPIs processing. Quality control, filtering, attenuation correction,
dealiasing, unfolding, hydrometeors calculation, rainfall rate estimation.
Tested on CPOL.
@title: cpol_processing
@author: Valentin Louf <valentin.louf@monash.edu>
@institution: Monash University
@date: 13/03/2019
@version: 2
.. autos... | [
"v.louf@bom.gov.au"
] | v.louf@bom.gov.au |
2e09a4c9e3a815569c8bedee11ea75a1e0e77ebd | cb5b2234bbd56aee74e39b2b9b84c104ab076434 | /gate_entry_app/admin.py | b50e9a507f43cbcbc0a4107ed5dde0ecc9910d16 | [] | no_license | YernarKambar/gate-entry-system | 8bbc74bcbd82b50512f38b046f35283ddedf515f | 49aad328e3bada684e7a92cb746b1f729863badb | refs/heads/master | 2021-09-24T23:07:34.787512 | 2020-05-10T09:30:48 | 2020-05-10T09:30:48 | 249,390,443 | 0 | 1 | null | 2021-09-22T18:48:26 | 2020-03-23T09:43:23 | CSS | UTF-8 | Python | false | false | 196 | py | from django.contrib import admin
from .models import Person, Role, Gate, AttendanceHistory, Device
# password superuser - qwe
admin.site.register([Person, Role, Gate, AttendanceHistory, Device])
| [
"ernar.k.20@gmail.com"
] | ernar.k.20@gmail.com |
5a0a1efd03c48ad2748c47249854bf9b093606d7 | f615f1d5d027959b365da22419b07dcbec2094d4 | /architectblog/blog/models.py | 6f738416f7d6bf5734dac496491ffa087e6e420b | [] | no_license | mbryantms/architectblog | 823386aacc54706b233c7c4a8a6d48166b4c60c4 | 555b9325fd00cd189f94226b7315ab4dbe774539 | refs/heads/master | 2023-07-16T18:29:36.239842 | 2021-08-27T20:06:58 | 2021-08-27T20:06:58 | 377,636,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,850 | py | from django.db import models
from django.utils.timezone import now
from django.contrib.postgres.search import SearchVectorField
from django.contrib.postgres.indexes import GinIndex
from django.conf import settings
from django.utils.text import Truncator
from django.utils.html import strip_tags, escape
from tinym... | [
"mbryantms@gmail.com"
] | mbryantms@gmail.com |
8e3e9d7bb7b3b9099411eac787873e7da6d3c9e9 | e6de5b03b30e50e004aa272b0fc462789a6860fe | /solves/problem5.py | 581c9106d61bb8cd56b2beb507d92e8db51e6456 | [] | no_license | aoqfonseca/project-euler | 71a100ae9055d8306e0ef68bec1235e47f6b71bc | 6078aaa7fe9d054451071af01df5c1d6ad244bab | refs/heads/master | 2020-05-19T14:44:36.480572 | 2013-01-29T21:20:58 | 2013-01-29T21:20:58 | 2,035,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | number = 20
while True:
is_him = True
for div in range(1,21):
is_him = is_him and (number%div) == 0
if is_him:
break
number+=20
print(number)
| [
"aoqfonseca@gmail.com"
] | aoqfonseca@gmail.com |
ee59ea8489cc423e5053c5e1f04f3b92b54998cf | 15e4e57f1e49ec38fe6c6e86f8309b0105093960 | /python/runFakeRateExtrapolation.py | 6220e321b8681c80102aeda3773d4360f19c1fe6 | [] | no_license | govoni/FlatNtStudy | eb621eb12d3a35bd58cd7f2de2a1c371d81b9eb3 | e58cbfed0c9a5e11822a254a554ecb62a7457ebc | refs/heads/master | 2020-12-24T16:59:17.649955 | 2015-05-13T10:31:05 | 2015-05-13T10:31:05 | 27,048,572 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,639 | py | #! /usr/bin/env pythony
## example python python/runLumiExtrapolation.py --datacardDIR output/DataCards_WW_SS_Inclusive/Card1D/lumiExtrapolation/ --inputVariable ptjj --outputDIR computeAsymptotic --makeAsymptotic --injectSignal 1 --nToys 100 --rMin 0.85 --rMax 1.15
import os
import glob
import math
from array import ... | [
"raffaele.gerosa@cern.ch"
] | raffaele.gerosa@cern.ch |
5716310b1d277a7b06a28ebd7482656970c66386 | 868d88fa52f458f1e155b174c19991f2a036a549 | /old/do4.py | ba3f25d1aba6b2107c4cfa4e5e088009b87e047a | [] | no_license | amuriy/MISC | 269db95744281f10fa4f5b3bfcc0b19f9d9829a6 | 27ee9eff88cb6076cd5f63d414851a23d910faa6 | refs/heads/master | 2020-12-04T13:31:58.159228 | 2020-07-14T04:59:58 | 2020-07-14T04:59:58 | 67,042,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,362 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## pip install psycopg2
## pip install geocoder
## pip install wikimapia_api
## pip install bs4
## pip install wikipedia
## pip install sparqlwrapper
## pip install wptools
import psycopg2
import geocoder
import sys
import time
import re
import requests
# from bs4 import... | [
"amuriy@gmail.com"
] | amuriy@gmail.com |
70ed19c70da4256e4f1960b216e0f63a9984ec46 | 95890713ce369691a1782219c94899c138e856b5 | /ceilometer_ecs/__init__.py | 5074fb852d0ffe550bef36306761bf4d1cc2e0f6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | QD888/ceilometer-ecs | f17b44d31bcf6fa6dfe7ce6f3cb203a233ae5ebc | c2d997a1943da2cac3d556d7a5cb74af0e8dd58f | refs/heads/master | 2022-02-06T02:45:53.197717 | 2016-07-06T13:46:47 | 2016-07-06T13:46:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | import pbr.version
__version__ = pbr.version.VersionInfo(
'ceilometer_ecs').version_string()
| [
"Jiale.Huo@emc.com"
] | Jiale.Huo@emc.com |
451819e65d89942721e8114483e6aa288dcd0879 | 215a5d6d655eeab07345849ed13b968b9fe520c2 | /Etdclass.py | 8c77fc0945bdbab11ed87dea5894aff1ce3fd8e9 | [] | no_license | sirakfilho/ETD-01 | fae3650017140b14aecb5494bf33e31b50bc05cd | ef552f96e04b35d6eb63bcfe6b86c6390ed7064b | refs/heads/master | 2020-09-05T12:56:36.068902 | 2019-11-06T23:49:28 | 2019-11-06T23:49:28 | 220,111,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | class Etdclass:
def __init__(self):
# variaveis do Academico
self.bancoAcademico = []
self.nomeAcademico = ""
self.tituloAcademico = ""
self.descricaoAcademico = ""
self.numParticipantesAcademico = ""
self.chaveAcademico = ""
# variaveis de ... | [
"noreply@github.com"
] | sirakfilho.noreply@github.com |
d0e979ec26dd550985879e92a80114873a539b89 | 7cdd5cc2fc0a11250b922daa53d7fcede895e643 | /sources/character.py | 91b7c8c754253ccb645d1da4839cf7c8824e4912 | [] | no_license | pauvarela3/acadaemia | 708ce3a14a60bd9cae7bc0a803b6857c0cf96f37 | efeec5d9eb066c9a6da1178cf96ad548fd36b3d2 | refs/heads/master | 2021-05-15T21:22:15.527922 | 2017-10-26T22:25:53 | 2017-10-26T22:25:53 | 106,485,607 | 0 | 0 | null | 2017-10-11T00:25:05 | 2017-10-11T00:25:05 | null | UTF-8 | Python | false | false | 1,690 | py | """This is a file defines the character class
"""
from objects import gameObject
class character(gameObject):
def __init__(self, name, gender):
super(character, self).__init__()
self.name = name
self.gender = gender
self._status.update({'HP':100, 'AP':100, 'happyness': 100, 'streng... | [
"paulinavarela@paulinas-MacBook-Pro-6.local"
] | paulinavarela@paulinas-MacBook-Pro-6.local |
9faee59c0f45d8684657cc02616de807f9e50c64 | aba5a125f84e6b78bc44a88b21eed68517195555 | /modules/api.py | 4be7044fb26e4474c08b1189288ed7bd7b967d90 | [
"MIT"
] | permissive | veffhz/namestat_v2 | 8a612980d8dfbfd93b5f7434bdd9388adb30f0f6 | ebe8451d8cc2fb9a2b8309b4bfb157f86251d6d6 | refs/heads/master | 2020-03-23T13:28:34.733104 | 2018-07-25T14:22:18 | 2018-07-25T14:22:18 | 141,620,195 | 0 | 0 | MIT | 2018-07-25T14:22:19 | 2018-07-19T19:03:15 | Python | UTF-8 | Python | false | false | 977 | py | import ast
from modules import helpers
from modules.analyze_handlers import get_functions_in_tree
from modules.analyze_handlers import get_trees_in_specified_path
def get_top_functions_names_in_path(path, top_size, language):
trees = get_trees_in_specified_path(path, language)
functions_names = [name for na... | [
"veffhz@gmail.com"
] | veffhz@gmail.com |
717a782303e4a87687213821bb835c381c2f657d | a5b01641e369270875bf832d357361d45d7782d9 | /Yule-Walker/test.py | c2f9b0a0a21b2eebcae454af073b9a8a81c54b27 | [] | no_license | k0305916/MachineLearning | 1687ecb6d4da20024d149189dc84e802b19af54a | 9522fffa59089e3771afea1317f6ba58946b27b7 | refs/heads/master | 2022-02-04T21:17:25.189866 | 2022-01-08T07:25:03 | 2022-01-08T07:25:03 | 127,285,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from scipy.signal import lfilter
from spectrum import *
from numpy.random import randn
import matplotlib.pyplot as plt
A =[1, -2.7607, 3.8106, -2.6535, 0.9238]
noise = randn(1, 1024)
y = lfilter([1], A, noise)
#filter a white noise input to create AR(4) process
count = 20
[ar, var, reflec] = aryule(y[0], count)
# a... | [
"fan.li01@sap.com"
] | fan.li01@sap.com |
ed7e287dd6291709d1f6f3d0b5744fe3ebb5e52b | d6dd01342a88fb3167237fbfb536108f119944f0 | /general_analysis.py | d7325dd9ff7ccdcd655225c5981bdc94ebd9b800 | [] | no_license | slam36/unsupervised-learning | b664672aba4168a2820316b2f37aec6be81fec52 | 513e9a855a9534f5d9897d0713276ee4d3f8bfea | refs/heads/master | 2020-09-03T02:27:06.929309 | 2019-11-08T23:26:44 | 2019-11-08T23:26:44 | 219,361,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | import csv
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import roc_curve, auc
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
from sklearn.utils.multiclass import unique_labels
import seaborn as ... | [
"noreply@github.com"
] | slam36.noreply@github.com |
d778fbf760aa56ea3f8892c5ad20900286e975a4 | 87476a78cd94a98c2e018c406460d3cbdd9b7ca4 | /tools/email_preprocess.py | df912053c309e6eaa0eaf5f34dec49d3dcce5ba0 | [] | no_license | AliMehrpour/MachineLearning | ea9b6034ab2f01b2d2d8b4d2ec527f855596f174 | d6acec9048adb92815beee0da5e861c3ef13d8c0 | refs/heads/master | 2021-05-04T07:08:39.000110 | 2016-11-22T07:44:06 | 2016-11-22T07:44:06 | 70,568,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | #!/usr/bin/python
import pickle
import cPickle
import numpy
from sklearn import cross_validation
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_selection import SelectPercentile, f_classif
def preprocess(words_file="../tools/word_data.pkl", authors_file="../tools/email_authors.pkl")... | [
"alimehrpour@gmail.com"
] | alimehrpour@gmail.com |
82fd787ff515121c96abf65456f9a4e538d43d6b | 1a074bc42f351071538c905423e75e6d37bc20c8 | /practise/fn.py | 072fb379cdb164adf623d7e2ef7b716b2ea451a5 | [] | no_license | zhouatie/python | 587dd20938045a81fcb44522a587a210af16f9f5 | 56632e1c66e4ba89ee8431cce493f63eb15e9c0f | refs/heads/master | 2020-03-17T00:45:06.260191 | 2018-05-26T17:52:39 | 2018-05-26T17:52:39 | 133,128,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | def printStr(a):
print(a)
arr = [1,2,6] | [
"zhoust@guahao.com"
] | zhoust@guahao.com |
d807c711dfd494e037aa22535ff88a7ef1670443 | 7b2f54bb106acf31f0c3b08e5cc7c55f999b8f55 | /dojo/tools/qualys_infrascan_webgui/parser.py | 29c16742e649b7ac9759d63db48f557904a7fedd | [
"BSD-2-Clause",
"BSD-3-Clause",
"MIT-open-group",
"libtiff",
"GCC-exception-2.0",
"EPL-2.0",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"MPL-2.0",
"MIT-Modern-Variant",
"GCC-exception-3.1",
"BSD-3-Clause-Modification",
"... | permissive | devGregA/django-DefectDojo | 546ad06beeba14a105ff8390544f8975fe3dbc77 | 33d387e7682a410b336f528078a0ade38c42c00e | refs/heads/master | 2023-04-09T18:08:23.844584 | 2022-12-14T02:19:46 | 2022-12-14T02:19:46 | 487,615,561 | 1 | 0 | BSD-3-Clause | 2022-05-01T18:44:47 | 2022-05-01T18:44:46 | null | UTF-8 | Python | false | false | 4,808 | py | import logging
from datetime import datetime
import html2text
from dateutil import parser
from defusedxml import ElementTree
from dojo.models import Endpoint, Finding
logger = logging.getLogger(__name__)
def htmltext(blob):
h = html2text.HTML2Text()
h.ignore_links = False
return h.handle(blob)
def is... | [
"noreply@github.com"
] | devGregA.noreply@github.com |
06d53d27cf6030de730e01cc8bee684b5fbf80e9 | 527a91b2f697cbca425872ae5f167181ed6191cc | /Shopify_API_Chall2019/urls.py | f51aca57d10cf00f78326aa586fea74c9605e788 | [] | no_license | MoeBazziGIT/Shopify-Backend-Challenge-2019 | 42629e139b5d5c711563dc39b571e05a26bb2f3b | bf5bf61bda77ebf3c2da34a39ad8e8236fcf7aef | refs/heads/master | 2020-04-16T21:55:22.003337 | 2019-01-19T18:30:51 | 2019-01-19T18:30:51 | 165,945,407 | 0 | 0 | null | 2019-01-19T18:30:52 | 2019-01-16T00:31:30 | Python | UTF-8 | Python | false | false | 1,110 | py | from django.contrib import admin
from django.urls import path, include
from rest_framework.urlpatterns import format_suffix_patterns
from products import views as product_views
from cart import views as cart_views
from rest_framework import routers
# setting up router
router = routers.DefaultRouter()
# these two rout... | [
"bazzimoe3@gmail.com"
] | bazzimoe3@gmail.com |
6153f9fc3ea1bfc715efc6a24611642f39237bba | e32e321f9f8a6b4e2fc5ab75ed3d6391e3701eb6 | /1 - Sequencial/3.py | 034c8cbabfd440c231061a889dde49ae3b58b206 | [] | no_license | AlineFreitas/ProgrammingExercises | 383b6a81928ed12e8e1eeeff5ceeae97fce8b750 | 8667d294c091580d249a26b0fe34c6705919ebd9 | refs/heads/master | 2016-09-01T14:21:12.822245 | 2015-12-02T15:54:00 | 2015-12-02T15:54:00 | 47,188,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | #!/usr/bin/env python
#coding:utf-8
num1 = input("")
num2 = input("")
print "%i + %i = %i" %(num1, num2, num1+num2) | [
"aline.do.freitas@gmail.com"
] | aline.do.freitas@gmail.com |
4afee5f7a96fc247d59062cad5213d2fbf817ec8 | b8eb2203b74631944071ecfeb04988a40a401b78 | /Code/Preproccesing/Crowd_TFIDF (2).py | 1b6d95c9b6169cdd01e7e60c91856aef8737bb16 | [] | no_license | SPrio/Events-in-Text | 60c80d176f860c272350035e401d108ec95c12e5 | 222d552f50232436ed80af973d3b6dfc70d2d38e | refs/heads/master | 2020-03-20T16:55:38.716815 | 2016-05-20T10:18:05 | 2016-05-20T10:18:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,089 | py | import os
import math
def create_tfidf(dataset, sentences, wordtoid):
words_to_document_sentence_id_word ={}
words_to_document_sentence_id = {}
document_sentence_id_to_word_id_dict = {}
for line in wordtoid:
line = line.strip()
info = line.split('|')
word = info[0]
... | [
"mau_577@hotmail.com"
] | mau_577@hotmail.com |
d53d640b90ea1a5e90a03697bc99fe7c8e26c35e | 56baaf3127069ca31b6ec8a6015416d8e3f484b8 | /account/views.py | 098a9e3f16ab78c0ff0af78c6ad98d02cae74f82 | [] | no_license | payamQorbanpour/Borrow | 16ce210cfbdbc61261b6c50d241ce983e7f02796 | 82132a30345b88cfa412e58c6ba2a55eabcd051b | refs/heads/master | 2020-04-02T09:03:51.441742 | 2019-07-26T07:46:39 | 2019-07-26T07:46:39 | 154,274,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, update_session_auth_hash
from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm
from django.contrib.auth.decorators import login_required
from .models import... | [
"payamqorbanpour@gmail.com"
] | payamqorbanpour@gmail.com |
013d698540b83ad9614cd9791f75016949a40fe7 | 9fd2c9744d80c1f61f51ffb2fb0a2b9ef5ed3713 | /QuestionAnalysis/main.py | ada8e6bc84aa0e24d9620d4b8cbc7ec34de09a6d | [] | no_license | realentertain/WikiQA | 84a9bf688e3112d37b96ee7c3c7db2c778497e9b | cfa65f585f23a8af7ee5ed87b875712ab8fa28a2 | refs/heads/master | 2021-01-19T07:07:25.253829 | 2015-05-20T03:13:51 | 2015-05-20T03:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,388 | py | #!encoding=utf8
__author__ = 'user'
from process import file
import jieba.posseg as pseg
from process import question
from config.main import *
from DocsRetrieveSystem.docs_process import *
from AnswerExtraction.process.answer import *
def main_debug():
count = 0
start = False
process_data = {'QuestionSe... | [
"fucusy@gmail.com"
] | fucusy@gmail.com |
7b96f80980d5394fe002ccfabf254a0d209a4eaa | f901d116a07d410f5be08b1760fcef6aa5222574 | /buns_and_cakes/main.py | 5653225de66566eec7115db9974103bcba523847 | [] | no_license | JackCX777/buns_and_cakes | 7b8e39680d92b6368398e7e5d4324be2c5855bcc | 03358e62076fb7c1310394e7c006a5e2af3aaa8a | refs/heads/main | 2023-05-22T13:01:16.067789 | 2021-05-27T08:39:02 | 2021-05-27T08:39:02 | 363,499,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import os
from dotenv import load_dotenv
import vk_api
from vk_api.bot_longpoll import VkBotLongPoll
from db_adapter import Categories
from bot_setup import bot_init
load_dotenv()
ACCESS_TOKEN = os.getenv('ACCESS_TOKEN')
GROUP_ID = os.getenv('GROUP_ID')
API_VERSION = os.getenv('API_VERSION')
OWNER_ID = os.getenv('OWN... | [
"jackcx777@gmail.com"
] | jackcx777@gmail.com |
9347db929779b693fa84fc806d4c890b30ba9e6c | 5f8ab664edde2353a2b35d07c9d7fa9bb8970689 | /FDforClassification/FDforClassification/settings.py | 87b56c7640fbcae939778368485d059b05922b32 | [] | no_license | zhoulw13/Classification-FDLayout | 661c1733bbc733d7afb8521f215f1dfd264dc2aa | ac1865169d22d153cf59891bea2b10fbd570bdcd | refs/heads/master | 2021-09-02T14:59:41.639293 | 2018-01-03T08:29:58 | 2018-01-03T08:29:58 | 113,308,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | """
Django settings for FDforClassification project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
""... | [
"huangrp2013@gmial.com"
] | huangrp2013@gmial.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.