blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c646056ce26a51c41069113ac3ea417b26a8726 | 89a5bb6d7ca44b081b6b6e6359918d3ec9a48b89 | /forms.py | 450a4a45cbe7a01de41965dc9ab5cb423be0e593 | [] | no_license | jetamartin/flask-MyNotes-App | 2719089c5a0371089ee51870cead14a340369cf6 | 0555f77ad0f4e04065656abcb2f03b51738ff5ac | refs/heads/master | 2023-03-24T12:32:41.048956 | 2020-05-14T21:10:01 | 2020-05-14T21:10:01 | 264,022,910 | 0 | 0 | null | 2021-03-20T03:59:22 | 2020-05-14T20:54:22 | Python | UTF-8 | Python | false | false | 1,567 | py | """ Forms for MyNotes App """
from wtforms import StringField, PasswordField
from wtforms.validators import InputRequired, Length, NumberRange, Optional
from flask_wtf import FlaskForm
class RegisterForm(FlaskForm):
""" User registration form. """
username = StringField(
"Username",
validators=[InputReq... | [
"jetamartin@gmail.com"
] | jetamartin@gmail.com |
a77f8eebd37076a3c6fe53a769845787c5aa43d9 | 737988155d6949005600e4e72c85bb8096608607 | /sort/__init__.py | 577b19ed9b11349d727f2b51a895eda1efe10f63 | [] | no_license | nxexox/aist | 85d716521a111d4d54debeb8a6766c868d929820 | da86184ad2b8c597c71562f551763bec5c3c50be | refs/heads/master | 2021-01-22T13:30:45.729867 | 2018-05-04T08:32:32 | 2018-05-04T08:32:32 | 100,676,375 | 0 | 8 | null | 2017-10-30T06:23:13 | 2017-08-18T05:33:48 | Python | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/python
# coding: utf8
from .comb_sort import comb_sort
from .heap_sort import heap_sort
from .insert_sort import insert_sort
from .quick_sort import quick_sort
from .radix_sort import radix_sort
from .shell_sort import shell_sort
if __name__ == "__main__":
test_list = [12, 68, 213, 1, 59, 394, 43, 12,... | [
"nxexox@gmail.com"
] | nxexox@gmail.com |
99d30b344e559124924b3313cdd62dc0b265257b | fb5adbcbd169cdcebd7205bc9704edd6278f2391 | /code/Smith-Waterman similarity.py | 3dd647b58a28a4de7c93855ba6d55c6e3ac1057f | [] | no_license | zyk2118216069/LPI-MiRNA | 7c42625d5a51d3b63505e78ed5c400ffecadfb25 | a233d427c4859c8beed1c44fbd703a937e2956d4 | refs/heads/master | 2022-03-25T01:29:28.711872 | 2019-12-05T13:26:54 | 2019-12-05T13:26:54 | 223,330,813 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | import numpy as np
import pandas as pd
lenapth = r'C:\Users\zyk\Desktop\PAPER\data\5_select based on common miRNA\lncRNA species.csv'
content = pd.read_csv(lenapth,header=None,index_col=None,low_memory=False)
data = np.array(content)
lendata = data[:,5]
swpath = r'C:\Users\zyk\Desktop\PAPER\data\9_similarit... | [
"noreply@github.com"
] | noreply@github.com |
fd13a713a5caf9c48c60ad83f504415838e20c7c | 710d2f31b6808187c4895a618101c25b36d25b3c | /backend/home/migrations/0002_customtext_homepage_message.py | 306e32a28d93fb23006c97f446b674b7a449a077 | [] | no_license | crowdbotics-apps/haplen-28237 | 920231c921a3aa490acc97a7debacc6858c520de | 938cef97a8534941cb5f4de9684c95361ae27ef3 | refs/heads/master | 2023-05-31T20:26:37.979544 | 2021-06-25T20:12:49 | 2021-06-25T20:12:49 | 380,344,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # Generated by Django 2.2.20 on 2021-06-25 20:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('dating', '0001_initial'),
('home', '0001_load_initial_data'),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f3d4d9b99d9b282e026c3b0ecc9e4acaedb53641 | b72929066ea8cc1ac0baf2109b7b267c31dcc0ed | /GuiaColombiana/Apps/AdministracionGuia/apps.py | 9bfe5bd6ac7c36895e22db14bfba8ae4331438ea | [] | no_license | dfnino10/GuiaColombiana | 87c4767eebe2f9a390d9233ac1ba5d73b7e88706 | 67c1443124078ed169861441695845229e40e79c | refs/heads/master | 2023-01-10T05:52:55.341689 | 2020-02-14T13:05:07 | 2020-02-14T13:05:07 | 203,075,644 | 0 | 1 | null | 2023-01-07T09:11:47 | 2019-08-19T01:18:50 | CSS | UTF-8 | Python | false | false | 111 | py | from django.apps import AppConfig
class AdministracionguiaConfig(AppConfig):
name = 'AdministracionGuia'
| [
"df.nino10@uniandes.edu.co"
] | df.nino10@uniandes.edu.co |
14d9e93beee2ce1dc6ba45d5720eae2e039aa2fc | 45b911eee552869cdd61061e546491e4945d0804 | /pyserver.py | b3d23b8db216ccc60c89d1ffdb77be36ec58b3c7 | [] | no_license | eschmalzy/messageLog | a432da1b3e6cf4ddec165f2cc3be9c14c86349fc | e58588de2f9647c0da2f28266fc5b14721cd7f1e | refs/heads/master | 2021-01-12T12:43:54.702112 | 2016-10-03T18:30:30 | 2016-10-03T18:30:30 | 69,290,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | from http.server import BaseHTTPRequestHandler, HTTPServer
from urllib.parse import urlparse, parse_qs
import json
import os
import ast
class MyServer(BaseHTTPRequestHandler):
#GET request
def do_GET(self):
#status code
self.send_response(200)
self.send_header('Access-Control... | [
"schmalzys@gmail.com"
] | schmalzys@gmail.com |
e309786604352cf226db5f2fd9c227d02a538eb4 | 1dbcab22f6480f4c64e2c0ba8ad288b78a8d2cee | /src/front.py | 964e15cf378de944c44ed1df5aa12b279d4d29a7 | [
"Apache-2.0"
] | permissive | MLH-Fellowship/Auto-Tagger | e18dadf665d192e3d0b936c3639cb4123eb44fbf | 9157c7b8d698f579fbc8cd02238f645e47ac4e24 | refs/heads/master | 2022-12-22T06:57:58.772728 | 2020-10-07T18:52:12 | 2020-10-07T18:52:12 | 298,593,960 | 4 | 5 | Apache-2.0 | 2020-10-07T18:52:14 | 2020-09-25T14:20:09 | Python | UTF-8 | Python | false | false | 1,242 | py | from flask import Flask, render_template, request, redirect, abort
from nltk.tokenize.treebank import TreebankWordDetokenizer
from nltk import word_tokenize
import bentoml
import itertools
app = Flask(__name__)
LOAD_PATH = "/home/parthparikh/bentoml/repository/PyTorchModel/20200926132654_E3B49E"
@app.route('/')
def i... | [
"parthparikh1999p@gmail.com"
] | parthparikh1999p@gmail.com |
09925f31f19351fda75ef9c39ecb6ecb186a5c99 | 24f354c0a362c0a44fe0946f0a947930f0724f4d | /tests/unit/config/test_ini.py | d3608a6f540a216b4c83bd97783eb9170438e817 | [
"MIT"
] | permissive | pypa/virtualenv | 783cf226c806bcb44ee63fd87c37d76e90c121ce | 6d22da631fd289f89f921a4010047ad969b7bfa7 | refs/heads/main | 2023-09-04T06:50:16.410634 | 2023-08-30T14:32:38 | 2023-08-30T14:32:38 | 1,446,474 | 4,313 | 1,073 | MIT | 2023-09-12T14:54:09 | 2011-03-06T14:33:27 | Python | UTF-8 | Python | false | false | 842 | py | from __future__ import annotations
import sys
from textwrap import dedent
import pytest
from virtualenv.info import IS_PYPY, IS_WIN, fs_supports_symlink
from virtualenv.run import session_via_cli
@pytest.mark.skipif(not fs_supports_symlink(), reason="symlink is not supported")
@pytest.mark.xfail(IS_PYPY and IS_WIN... | [
"noreply@github.com"
] | noreply@github.com |
578b59740c5979f7b07443a56487b3cabe0040ae | 18105618d16d1699cb3f273eef63477d254e3709 | /Convolutional_neural_network/Convolutional_neural_network_tensorflow_v2.py | ab51e291cc346202897120a4fc5b1cf554d18df9 | [
"MIT"
] | permissive | Jaehoon-Cha-Data/TF2.0 | c33911b55e8218662c81020f59976b011a19fad2 | 9dbbffaf52178b94b7b337efe32d26408d5a37d8 | refs/heads/master | 2020-08-12T03:06:37.112028 | 2019-10-13T18:42:28 | 2019-10-13T18:42:28 | 214,676,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,234 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 13 17:00:20 2019
@author: jaehooncha
@email: chajaehoon79@gmail.com
CNN in tensorflow_v2
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
from tensorflow.keras.layers import Dense, Flatten, Conv2D, MaxPool2D
... | [
"chajaehoon79@gmail.com"
] | chajaehoon79@gmail.com |
5d7458f2c2d6962f5be50183283d1437f8dc2908 | 68f757e7be32235c73e316888ee65a41c48ecd4e | /python_book(이것이 코딩테스트다)/03 그리디/3-2 큰수의 법칙.py | b1f160381acf71c965174db1df86f096e154ed49 | [] | no_license | leejongcheal/algorithm_python | b346fcdbe9b1fdee33f689477f983a63cf1557dc | f5d9bc468cab8de07b9853c97c3db983e6965d8f | refs/heads/master | 2022-03-05T20:16:21.437936 | 2022-03-03T01:28:36 | 2022-03-03T01:28:36 | 246,039,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | n, m, k = map(int,input().split())
L = list(map(int,input().split()))
f = max(L)
L.remove(f)
s = max(L)
flag = 0
result = 0
for i in range(m):
flag += 1
if flag >= k:
result += s
flag = 0
else:
result += f
print(result)
| [
"aksndk123@naver.com"
] | aksndk123@naver.com |
d8ca473834215464d9cf5cbef9af09d117952933 | fcb517b1d2fa8dfb7dce1ca9e156bcee835e1f20 | /qqbot GroupEmotions/main.py | b94420ea021275423b56f851132720fc3a1c0885 | [] | no_license | acdzh/python_projects | 2ae6b0d6eeab3883c5ad688bd1da08b4e6a6434f | d165da54dc9d6e21b2ec618cac8a75c7e8e9b3f6 | refs/heads/master | 2021-06-03T16:53:19.784523 | 2020-10-03T07:33:54 | 2020-10-03T07:33:54 | 135,989,177 | 6 | 5 | null | 2020-10-03T07:35:18 | 2018-06-04T07:44:39 | Python | UTF-8 | Python | false | false | 632 | py | from qqbot import QQBotSlot as qqbotslot, RunBot
import json
import baidu_ai as bd
@qqbotslot
def onQQMessage(bot, contact, member, content):
print('get a msg: ' + content)
txt = content
if '@ME' in content:
out = bd.ai_get(txt,1)
bot.SendTo(contact,out)
print (out)
... | [
"1069436872@qq.com"
] | 1069436872@qq.com |
93638e6c349607a0107252696396903b701dc859 | f4329f3234ad1f4e3b8f666503ada7665c34098f | /gc.py | a4d02b32b8c112e25c4bfc0191ffb8cfb7495756 | [] | no_license | Andrea-DM95/Homework4 | 30f07425cd1539eef9fd39ad240860bb9cccc097 | 90601e3d47bc58059c4fd4c90107748eb57b0b55 | refs/heads/main | 2023-02-05T17:31:33.465644 | 2020-12-06T09:31:10 | 2020-12-06T09:31:10 | 318,992,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from collections import Counter
def gc(d):
mGC={}
lGC=[]
for k,v in d.items():
c=Counter(v)
GC=((c['G']+c['C'])/len(v))*100
lGC.append(GC)
mGC[GC]=k
m=max(lGC)
return "{}\n{}".format(mGC[m],m)
fasta={}
with open("rosalind_gc.txt", 'r') as f:
for lin... | [
"noreply@github.com"
] | noreply@github.com |
338a60d0851ccf757b65b9116b86de9062ee4777 | 95f4c29adc4ebd1553efc95c71a16da592bfde80 | /apps/foscam_app_v2/homeassistant0.54/foscam.py | d491f553efae8c59031c3c658d1a6b63c402e8ee | [] | no_license | ganice/My-AppDaemon | c4210f2c550ad8657ec41f6ebdcc6971e6db4640 | a4ee9e81bf5f512508db8ebabdd85d7c29873e68 | refs/heads/master | 2020-09-08T11:46:21.024835 | 2019-09-13T11:57:40 | 2019-09-13T11:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,598 | py | ###########################################################################################
# #
# Rene Tode ( hass@reot.org ) #
# ... | [
"noreply@github.com"
] | noreply@github.com |
b4732a7f6c96f3017dae541e6ef9294eb8632c9c | 6982c3c54ee9199d93fb89c61cfdcba15b9b7012 | /python3_cookbook/chapter08/demo02.py | 85770265aaaf5341ddc89a3e76168dd08817c360 | [] | no_license | gzgdouru/python_study | a640e1097ebc27d12049ded53fb1af3ba9729bac | e24b39e82e39ee5a5e54566781457e18c90a122a | refs/heads/master | 2020-03-29T11:33:13.150869 | 2019-03-08T09:24:29 | 2019-03-08T09:24:29 | 149,858,658 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | '''
自定义字符串的格式化
'''
_formats = {
'ymd': '{d.year}-{d.month}-{d.day}',
'mdy': '{d.month}/{d.day}/{d.year}',
'dmy': '{d.day}/{d.month}/{d.year}'
}
class Date:
def __init__(self, year, month, day):
self.year = year
self.month = month
self.day = day
def __format__(self, format_s... | [
"18719091650@163.com"
] | 18719091650@163.com |
8d00fdfee6c74af3a17a7795f687be123a3c4aca | ce42c96065ee487c9715d8dacc4b5be78e68ca55 | /Optimization/nnOptimizationNew.py | 6ece5dc48c2f4edf04f341465f4d220ccc78ca7a | [] | no_license | farhan-toddywala/VisualOdometry | 091880fa01d56d83294ce49990720691f63fa602 | a754e2ea79c3afa9f5daebd7b2c9600095ffab7d | refs/heads/master | 2021-01-06T10:54:51.403919 | 2020-02-18T08:29:54 | 2020-02-18T08:29:54 | 241,303,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,541 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy import signal
import cv2
import seaborn as sns
X1 = np.loadtxt("data/base_point_no_noise.txt")
X2 = np.loadtxt("data/base_point_noise.txt")
X3 = np.loadtxt("data/point_before_moving.txt")
X4 = np.loadtxt("data/point_after_moving.txt")
X1 = np.delete(X1, 11... | [
"noreply@github.com"
] | noreply@github.com |
e6aaeb095bc5f80a528def54a281d8534449f9a1 | a1566f5733611a930c82990e4c7c5d05664c1eb0 | /jspy1/test.py | 8809144780e3fc2a8e4db10d0a0ba8223aaefaa0 | [] | no_license | sjbrown/misc_work | 95e7020c9fb0a2fe840c7a4e25bf30a30b26aaea | 4215e3d612811426686b1a90db4f975052c4023d | refs/heads/master | 2022-10-21T02:05:04.928161 | 2022-10-12T23:43:56 | 2022-10-12T23:43:56 | 18,151,228 | 5 | 3 | null | 2021-05-29T21:47:17 | 2014-03-26T19:38:07 | Python | UTF-8 | Python | false | false | 47 | py | import os
def foo():
return False
foo()
| [
"github@ezide.com"
] | github@ezide.com |
85135c0dda32ef85af2237a0e39b66d110e0c90d | a7f47db2b4889a1a3528c4729a5b87388b932b1c | /2014201426/paper_detect_w2v/src/getSegment.py | 08405c0ce67034d6a06a3d24a2485129a471e040 | [] | no_license | fanyuqing111/ai-project-2016 | 4dca9e8c48d041e7a651556d41ff3ae09d7c0438 | 1c81933a94d0d869a7f0085c8925fca69a721f52 | refs/heads/master | 2021-12-21T15:17:11.458947 | 2017-09-29T13:50:03 | 2017-09-29T13:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from utils import *
import os,sys
import math
traindir = "TXT-final/True/"
testdir = "TXT-final/False/"
files = os.listdir(traindir)
cnt = 0
for f in files:
cnt+=1
if cnt%100==0:
print cnt
make_seg(traindir+f,Dir='segment/True/')
files = os.listdir(testdir)
cnt=0
for f in files:
cnt+=1
if cnt%100==0:
print c... | [
"oysq@ruc.edu.cn"
] | oysq@ruc.edu.cn |
3033e6d1836363f7bb5afdf44a0c0c1d5e093bf0 | ad372f7753c70e3997d035097ee03f740a5fb068 | /pygym/custom_storage.py | 83d139b7b163479af1d7152929f4ca060d13b04d | [] | no_license | Insper/servidor-de-desafios | a5f09fe9368887b06b98800f2bb8f35ff13f80a9 | 9875e9b9248c14237161ca73983595f7d929e963 | refs/heads/master | 2022-12-14T17:28:42.963112 | 2022-09-12T19:18:36 | 2022-09-12T19:18:36 | 167,026,050 | 3 | 42 | null | 2022-12-08T07:36:47 | 2019-01-22T16:19:46 | Python | UTF-8 | Python | false | false | 1,053 | py | # Source: https://github.com/druids/django-chamber/blob/master/chamber/storages/boto3.py
from django.core.files.base import ContentFile
from storages.backends.s3boto3 import S3Boto3Storage
def force_bytes_content(content, blocksize=1024):
"""Returns a tuple of content (file-like object) and bool indicating wheter... | [
"andrew.kurauchi@gmail.com"
] | andrew.kurauchi@gmail.com |
84a51f1c66522d2338158587e627aa28ee1c0298 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pyDemMDspSSFdWsh4_2.py | b7cb001bbe31b50d1e5bc5559aa8530b83963619 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py |
def digital_decipher(eMessage, key):
keyPos = 0
key = str(key)
decodeMessage = ''
for digit in eMessage:
decodeMessage += chr(int(digit) - int(key[keyPos])+96)
keyPos += 1
if (keyPos >= len(key)):
keyPos = 0
return decodeMessage
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cef2087d11823bc458cbf93cd06433c58f41febc | b980c3c7e47c970e662f218782b6c8eac721ab70 | /job_web/handlers/job.py | a99dab80b6654a74a145620aa1ffa4bfc5990bc2 | [
"MIT"
] | permissive | csudragonzl/master | 24466d016a2cbb0a00daa96b77a4457c6125ca01 | e5ea6418ff9676b8c68bf4bbe14cdf06ccae27d8 | refs/heads/master | 2023-03-24T23:39:25.002815 | 2021-03-27T01:35:36 | 2021-03-27T01:35:36 | 351,474,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,890 | py | # -*- coding: utf-8 -*-
from flask import Blueprint, render_template, abort,\
current_app, redirect, url_for, flash, request
from flask_login import current_user, login_required
from ..decorators import company_required
from ..models import Job, db, Delivery
from ..forms import EXP, JobForm
job = Blueprint('job',... | [
"1359622058@qq.com"
] | 1359622058@qq.com |
2e26315e5deace2c6c9e35f2b77d72e8ed8732f3 | 51c7482c02c1b6695ceebd6c4e011b6b3a7f01ab | /renku/service/serializers/cache.py | c42415245e1abbf01b30240f67310d3238e87eda | [
"Apache-2.0",
"Python-2.0"
] | permissive | cyberhck/renku-python | aa60c2204e2507a07aa11efd5ffdfb8ac49aef9d | 2e52dff9dd627c93764aadb9fd1e91bd190a5de7 | refs/heads/master | 2020-12-12T08:55:08.112921 | 2020-01-15T12:05:07 | 2020-01-15T12:05:07 | 234,093,844 | 0 | 0 | Apache-2.0 | 2020-01-15T14:06:13 | 2020-01-15T14:06:12 | null | UTF-8 | Python | false | false | 5,007 | py | # -*- coding: utf-8 -*-
#
# Copyright 2019 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compli... | [
"noreply@github.com"
] | noreply@github.com |
f7b21a906007932e12e6b9b620df1487e6bf7182 | 180d59e5ff42d724db49b46860640e14cb8b198c | /myFace.py | dc2415c98850bd6e50b3178adb79ff78fb063dfb | [] | no_license | KaanKesgin/Generating-Realistic-Faces-w-GANs | 409f53423a0158964e6e22eabe324357c5d1aedb | 1fdd62fcc49cdd2143a8a655c77be272404e48db | refs/heads/master | 2020-07-18T01:06:59.447004 | 2019-09-03T18:00:38 | 2019-09-03T18:00:38 | 206,140,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,254 | py | #GANS for face generation
import os
import helper
from glob import glob
from matplotlib import pyplot
import warnings
import tensorflow as tf
import numpy as np
#check for GPU because why not
#if not tf.test.gpu_device_name():
# warnings.warn('No GPU found, You are going to want to use a GPU for this')
#else:
# pri... | [
"noreply@github.com"
] | noreply@github.com |
9df13b60fe7e01a4f1d644f01e37df3490769058 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp156_6000.py | d472674e752a50fc2c150d7c07922e1993e4e721 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,771 | py | ITEM: TIMESTEP
6000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-2.7215234007832265e+00 4.9921523400776607e+01
-2.7215234007832265e+00 4.9921523400776607e+01
-2.7215234007832265e+00 4.9921523400776607e+01
ITEM: ATOMS id type xs ys zs
1622 1 0.483866 0.6696 0.0502502
1525 1 0.0892975 0.141091 0.0758595
815 1 0.... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
e3fa02b862a4442c9a2a11c88c611c5f3b54bd12 | 264bc7fd19e67ab1eed7892a896c47e9a031434d | /programs/finalsdc/SDC-tarun/graph.py | 6a64587d1dc52d80d677873019d80766c3bc000a | [] | no_license | tfpf/PRML_project | ccd8e1281ffc91b78dd79fb68d643ad798b514cf | 9490488c847db253281bd879572f881bd158f135 | refs/heads/master | 2020-03-14T16:39:29.952377 | 2018-05-04T16:12:43 | 2018-05-04T16:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | from graphviz import Digraph
dot = Digraph(comment='OBDD')
print ("enter splitting order")
order=list(input())
numbers = len(order)
file=open("input.txt","r") #complements are represented with capital letters
input1=file.readlines()
for i in range(len(input1)) :
input1[i]=list(input1[i][:-1])
input... | [
"rohanbfg@gmail.com"
] | rohanbfg@gmail.com |
d20971ac7d122528ac943d5a46e7e8f529aa93db | 19a4365d81507587ef09488edc7850c2227e7165 | /159.py | 1269b3a84de6cd5b5911a7d86d4ea7721918348b | [] | no_license | akauntotesuto888/Leetcode-Lintcode-Python | 80d8d9870b3d81da7be9c103199dad618ea8739a | e2fc7d183d4708061ab9b610b3b7b9e2c3dfae6d | refs/heads/master | 2023-08-07T12:53:43.966641 | 2021-09-17T19:51:09 | 2021-09-17T19:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Time: O(n)
# Space: O(1)
class Solution:
def lengthOfLongestSubstringTwoDistinct(self, s: str) -> int:
d = {}
count = 0
start, end = 0, 0
result = 0
while end < len(s):
c = s[end]
d[c] = d.get(c, 0) + 1
if d[c] == 1:
count... | [
"tiant@qualtrics.com"
] | tiant@qualtrics.com |
414a502ec52a6351df06b41af65aede0299e8ef0 | 2de259bc9e3306c2ddbe72b83df31df83436091b | /gol/view.py | a146a7f010b3e120e654cfa04215a76e67cf1a7c | [
"MIT"
] | permissive | FlipEnergy/gol | 102b7f3b7aa710a13badb8bd81c37d381ce6f7c5 | d5d37621c2b3ed6d0718b6ccd8d433c9b44d97ec | refs/heads/master | 2023-04-08T00:10:46.424338 | 2020-05-17T16:03:50 | 2020-05-17T16:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | import curses
import time
from gol.board import Size
from gol.errors import BoardTooLarge
class View:
def __init__(self):
self.symbols = {
'alive': '\N{FULL BLOCK}',
'dead': '\N{LIGHT SHADE}',
}
def play(self, stdscr, generate_boards):
curses.use_default_colors... | [
"sohyongsheng@gmail.com"
] | sohyongsheng@gmail.com |
e286a0a6a6ef5d3669680cd9ceacd7caf05f7a4b | 7d91ec17756f64c5dec8d1d2c7cf028162a87fb8 | /online_library/urls.py | 8ea4ec61f2b20744a30897255352f7cd27cf26ed | [
"MIT"
] | permissive | svaradinov/online_library | a24dbe0eb0bdcbe16f2e1fd0305f368fa34f0ac4 | 183f841dc27e899136a437b37221e1385abe0c33 | refs/heads/main | 2023-08-14T11:15:07.107456 | 2021-09-11T22:57:55 | 2021-09-11T22:57:55 | 395,108,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('online_library.book.urls')),
path('user', include('online_library.user.urls')),
]
| [
"sv.varadinov@gmail.com"
] | sv.varadinov@gmail.com |
baf9e01690d9b7617c973a0ffbeaf8dff30a2ba2 | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python网络爬虫部分/day02/lxmlTest.py | 5436f0ebe77b8b9ef01a6d55ce88f6ab04779c42 | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 12 17:20:25 2018
@author: jyb
"""
from lxml import etree
lxmlStr = '''
<bookstore>
<book>
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book>
<title lang="zh">hello world</title>
<author>... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
39dcc0a8cb19d050d40f63af8512633fbbddc8e7 | f17fe3c240aeda4205d934a34fc2fc407c6d9f8a | /backend/silent_lake_29099/wsgi.py | 25d60da238c4e278e073595fb4c11c76d1b79f0b | [] | no_license | crowdbotics-apps/silent-lake-29099 | d5baaa2272c8362af6cc2adacf738c99fa4bb770 | 6993bc68a87d0e835d5d3b4240e9e1412d851528 | refs/heads/master | 2023-06-22T22:49:18.030820 | 2021-07-23T23:51:23 | 2021-07-23T23:51:23 | 388,954,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for silent_lake_29099 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
be23945603db0d48e9bf6c9b3d89f7c8c219bc1d | 7d85c42e99e8009f63eade5aa54979abbbe4c350 | /game/tools/build_tools/make.py | 2e55e59e68a8d04a495b61e0b90078d11af6cf1a | [] | no_license | ToontownServerArchive/Cog-Invasion-Online-Alpha | 19c0454da87e47f864c0a5cb8c6835bca6923f0e | 40498d115ed716f1dec12cf40144015c806cc21f | refs/heads/master | 2023-03-25T08:49:40.878384 | 2016-07-05T07:09:36 | 2016-07-05T07:09:36 | 348,172,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | '''
Use this script to invoke Nirai builder and compile the game.
This process consists of 3 step:
1. Pack models into a models.mf.
2. Compile src/sample.cxx and generate sample.exe using NiraiCompiler.
3. Generate sample.nri, which contains the Python modules.
'''
import argparse
import sys
import os
from niraitool... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
979fdb825b0a5335d0686544a45de62b21f44394 | 747f759311d404af31c0f80029e88098193f6269 | /addons/product_size/__terp__.py | 993d5bef698daa83448dd32d4d3643e51c4d6420 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | /home/openerp/production/extra-addons/product_size/__terp__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
3334adb8db9c8e79af700a28b088578f390eedec | b128e285d084b12caf0856c64a588134c71840c3 | /optomedik/migrations/0022_auto_20201201_1846.py | 2266b37ac4044dcd785f429d1267749686a323d4 | [] | no_license | headlerb/Proyecto-poloTic | 781e8350fef30f4c9d35e206b4c8c9fd4688e9c9 | 9b96393fd4626805bc2447b490d492e19e476798 | refs/heads/main | 2023-02-09T19:17:10.616464 | 2021-01-05T15:32:29 | 2021-01-05T15:32:29 | 318,217,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.1.3 on 2020-12-01 23:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('optomedik', '0021_language'),
]
operations = [
migrations.AlterModelOptions(
name='language',
options={'verbose_name': 'regi... | [
"arielbedoya@gmail.com"
] | arielbedoya@gmail.com |
905eaafec477c4313a60d72e343b277f8b846d0f | f36a012b948408badca1b0931d0b499ccb655283 | /figure_scripts/02_plot-geodesic-scatterplots.py | 46a4e049d4cce13e4e7e882f0b15c1cb2504b4c2 | [] | no_license | alisonpeard/spatial-nets | 352ac2523e5d1b5583eacb3e58e66570ad6ab10b | 58e765a650ca3547f3bea2137bf7404946e4b470 | refs/heads/main | 2023-07-16T20:35:53.568525 | 2021-07-31T12:57:52 | 2021-07-31T12:57:52 | 367,377,694 | 1 | 0 | null | 2021-05-14T13:52:34 | 2021-05-14T13:52:34 | null | UTF-8 | Python | false | false | 2,390 | py | import os
from pathlib import Path
import pickle
import numpy as np
import matplotlib.pyplot as plt
from cycler import cycler
from spatial_nets import LocationsDataClass
from spatial_nets import utils
from spatial_nets import draw
from config import SAVEFIG, LEGEND, FORMAT
# Change the default colors
colors = ["aq... | [
"rodrigolealc@ciencias.unam.mx"
] | rodrigolealc@ciencias.unam.mx |
ab492279e4cf87cdf5fa60d1fa58f80a9ca98732 | 3e4c5e56d1a1bcae3c0ee5eae2eea9e12d7bb6c6 | /tests.py | 826b067a34dd3b83c526fec4e2768191b7fbfb49 | [
"MIT"
] | permissive | glentakahashi/python-tuya-experimental | 3ce1d6c7d8eebd646b621293866644433ffe7a97 | 86434700ae5552ec1aa972a632bc45da941528ec | refs/heads/master | 2020-04-16T11:26:58.370361 | 2019-01-13T18:06:57 | 2019-01-13T18:06:57 | 165,536,629 | 0 | 0 | MIT | 2019-01-13T17:56:22 | 2019-01-13T17:56:22 | null | UTF-8 | Python | false | false | 7,220 | py | #!/usr/bin/env python3
import logging
import unittest
try:
from unittest.mock import MagicMock # Python 3
except ImportError:
from mock import MagicMock # py2 use https://pypi.python.org/pypi/mock
from hashlib import md5
import json
import logging
import struct
# Enable info logging to see version informat... | [
"dmbp35@gmail.com"
] | dmbp35@gmail.com |
a8a55c5ceaf4f047f4055dd69e03d9e78b0fb41b | e8c4392a4470abd770be6805e6032ef36cb50ea9 | /dev/prepare_jvm_release.py | 045adf5bd2e93b90499e8c464ec286e10128b43c | [
"Apache-2.0"
] | permissive | vishalbelsare/xgboost | 3f133a97c20654e1ada64af4d89da2493a0197f0 | b124a27f57c97123daf9629555aa07e90dc77aed | refs/heads/master | 2023-08-17T01:50:45.285904 | 2021-11-23T08:45:36 | 2021-11-23T08:45:36 | 129,266,376 | 0 | 0 | Apache-2.0 | 2021-11-23T18:35:32 | 2018-04-12T14:44:31 | C++ | UTF-8 | Python | false | false | 2,918 | py | import os
import sys
import errno
import subprocess
import glob
import shutil
from contextlib import contextmanager
def normpath(path):
"""Normalize UNIX path to a native path."""
normalized = os.path.join(*path.split("/"))
if os.path.isabs(path):
return os.path.abspath("/") + normalized
else:
... | [
"noreply@github.com"
] | noreply@github.com |
ffe3dc8e3432d0c52d4ba7a768b8ceff1583aca5 | cc7c792dbae584b0f2874a9ded97b66079d9ac48 | /Dashin_API/CheckConnection.py | da71a5fa0b73a470b23aff19813576a064e4eaa4 | [] | no_license | kk13332488/Python-Algorithm-Trading | 7f2a55df6d6c89c0d57fa0ef4ec7409030ceae4a | 0ce0ba8740f1628c4e85db14e40cf317552267d9 | refs/heads/main | 2023-04-19T04:50:13.727769 | 2021-05-06T15:28:10 | 2021-05-06T15:28:10 | 363,645,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | import win32com.client
instCpCybos = win32com.client.Dispatch("CpUtil.CpCybos") #연결상태 확인
print(instCpCybos.IsConnect)
| [
"kk13332488@gmail.com"
] | kk13332488@gmail.com |
32edd15bb9e860bcd3c4952389654eabd58f83b4 | e500972531cc39476a9bbc65b0a284e77ca928b2 | /CeaserCipherDecoder.py | 5825c74af4ac5cb1030a7384ca7a655370784153 | [] | no_license | bivin1999/InterestingCodes | 0c5dcffab5af4a6448ccfaa80029eb602593136a | 1266764294473b97a7ef772b6f8c9f6b2ee590c3 | refs/heads/main | 2023-03-10T18:10:58.487674 | 2021-02-25T04:15:56 | 2021-02-25T04:15:56 | 342,119,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | cipher=input().strip()
cipher=cipher[::-1]
plain=""
for c in cipher:
plain+=chr(((ord(c)-68)%26)+65)
print(plain) | [
"noreply@github.com"
] | noreply@github.com |
372b0cfb9f859bbd24bc6c5acc254a8040ea3761 | cc112f5ad28288b5e17e559f68ac4b7465c6ef03 | /exercise-2/pnseb-allocation-tool.py | a235b382131515e1943abcc2c2181062d725795f | [] | no_license | zachary-vinyard/business-innovations-interview | c3ea65dc8e018c7c3f9feb3d13e0546fcaf295f2 | 0755e31ee813e10c7452dcf70a5011ecefe96898 | refs/heads/master | 2020-05-29T16:06:39.899511 | 2019-05-30T11:02:53 | 2019-05-30T11:02:53 | 189,240,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,455 | py | """
@author: zachary.vinyard@oneacrefund.org
example script for business innovations associate interview
"""
import os, sys
import pandas as pd
import math
from datetime import datetime
#version number
version = '2-15-6'
#FILEPATH - CHANGE THIS TO THE FILE DIRECTORY FOR YOUR COMPUTER
filepath = os.path.expanduser('~'... | [
"30409881+zachary-vinyard@users.noreply.github.com"
] | 30409881+zachary-vinyard@users.noreply.github.com |
a7bd3d34bdfa7aa034d660135acf803ebf2ef5f4 | 3faf5550dd55c62e5a23d213b4dfb54f924cfc8f | /models.py | 434305d05cd665e4352e43a70405d3491c403842 | [] | no_license | MihirSahu/Flask-Tutorial | 70bac2dc432323cc831570c60e9a534bc4fa2179 | 78496c6f2b97715432c6872a1a30725578cd03ce | refs/heads/main | 2023-08-17T14:50:06.685468 | 2021-10-01T04:00:30 | 2021-10-01T04:00:30 | 412,315,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | #Classes are considered individual tables in sqlalchemy
class Item(db.Model):
id = db.Column(db.Integer(), primary_key = True) #best practice to create primary key
name = db.Column(db.String(length = 30), nullable = False, unique = True) #create a new column that holds string with a max of 30 characters, no nul... | [
"2002mihir@gmail.com"
] | 2002mihir@gmail.com |
1fb32508e1d364d7b765c2f2940ca3d1f940a816 | f1875c53990cd87944bf7268d1c5a13263b5762d | /pathseg/models/encoders/deeplabv3plus_encoder.py | fd18606e329d808681b0e187e4c9d2be547181e3 | [] | no_license | yinchimaoliang/pathology-segmentation | c4aa9eb7c29e1e7a9d326548288d81366da47505 | 77bb9424d6f89cfa5ede82c6c7365baeb6ed5ddc | refs/heads/master | 2021-02-28T21:16:26.495200 | 2020-11-26T11:52:02 | 2020-11-26T11:52:02 | 245,733,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | import torch
import torch.nn as nn
from torch.nn import functional as F
from pathseg.core.common.blocks import SeparableConv2d
from pathseg.core.utils.dilate_utils import replace_strides_with_dilation
from ..builder import ENCODERS
from .base_encoder import BaseEncoder
class ASPPConv(nn.Sequential):
def __init_... | [
"liyinhao@sensetime.com"
] | liyinhao@sensetime.com |
796544094ff9099277358b51572925655de465ba | 5928703295f6d49a7639f305e56b8b0c465fae49 | /nadocoding/module, package/run_internal.py | b1b8d15c31e39afa0e2c785dd409fd990b31b6aa | [] | no_license | jinxue0907/python | fc568d75b28975a9dbecac70e3b83d525b8a4281 | 9e58ca331c630407aa118f9b316686f2e246bb77 | refs/heads/master | 2023-08-28T10:42:18.637516 | 2021-11-12T01:03:03 | 2021-11-12T01:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import math
print(math.ceil(3.5))
print(math.ceil(3.4))
print(math.floor(3.5))
print(math.floor(3.4))
print(math.pow(2, 10))
print(math.sin(math.pi/2))
import random
print('-'*20)
print(random.random()) #0.0 <= r < 1.0
print(random.randrange(1, 10)) #1 <= r < 10 정수
print(random.randint(1, 10)) #1 ... | [
"80078131+lasini123@users.noreply.github.com"
] | 80078131+lasini123@users.noreply.github.com |
21efc7c417f88971eaa082808bcee2525569477c | 60cafea63b2aa301b2a8603e4952395cdee0e49a | /ProblemSets/ProblemSet4_Kirimhan.py | 64d8cbf3fb019785e37078b6d8c84bf6320be648 | [] | no_license | destankirimhan/CompEcon_Fall17 | 65959dca426e6740241ff5a678cf2881770ef63d | 065bc5ea74d5b117e6496bd0e0073b598bd39c60 | refs/heads/master | 2021-01-22T17:48:27.946758 | 2017-12-14T19:53:26 | 2017-12-14T19:53:26 | 102,405,186 | 0 | 0 | null | 2017-09-04T21:45:31 | 2017-09-04T21:45:31 | null | UTF-8 | Python | false | false | 7,684 | py | # Importing the required packages
import pandas as pd
import numpy as np
import scipy.optimize as opt
import time
from scipy.optimize import differential_evolution
from geopy.distance import vincenty as vc
# Reading in the dataset
ps4_data = pd.read_excel('radio_merger_data.xlsx')
# Taking the natural logarithm of th... | [
"destan.kirimhan@grad.moore.sc.edu"
] | destan.kirimhan@grad.moore.sc.edu |
b92b30135c9cc2240589abc7f74df6e0a477dc6a | 53fa91eb6107a0c7ff401cc69a4d2c0b397956c6 | /network_monitoring/get_net_info.py | 676808e562d26a30698548545ee779f2c1c4b134 | [] | no_license | SahanaSatya/network_management | e10b01e16e315592913fe7607f2292437d5067d8 | 356a08190466dade7631e09a1283a48720897919 | refs/heads/master | 2020-07-03T07:13:44.138998 | 2019-08-12T02:19:31 | 2019-08-12T02:19:31 | 201,834,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from netmiko import ConnectHandler
ios_r1={
'device_type':'cisco_ios',
'username':'lab',
'password':'lab123',
'ip':'192.168.1.1',
}
net_connect=ConnectHandler(**ios_r1)
print("----------Routing Table ------------")
output1=net_connect.send_command('show ip route')
print(output1)
print("-----------ARP Table --------... | [
"noreply@github.com"
] | noreply@github.com |
2655711d5568b9d61c4250f84b97d70cb56775f5 | 34594aa8303b76a3f309e9c82f501cdd16c7b797 | /worldbank.py | 8d790b132a0cc983e0f21b7d07599eac7c7d9280 | [] | no_license | vskalkat/DataStructures | 8a817dc9ee342c6f26e8c261f8168b8c4b3bd1f2 | 2cf4806dd31d5d861c87fe800c7c39adc7da282f | refs/heads/master | 2021-05-03T13:01:47.658198 | 2018-01-05T03:17:21 | 2018-01-05T03:17:21 | 120,508,232 | 0 | 0 | null | 2018-02-06T18:56:32 | 2018-02-06T18:56:31 | null | UTF-8 | Python | false | false | 7,649 | py | import urllib2
import json
import csv
from collections import defaultdict
from csv_tables import *
def extract_raw_country_information(iso2code):
url = ('http://api.worldbank.org/v2/countries/%s?format=json' % iso2code)
response = urllib2.urlopen(url).read()
json_response = json.loads(response)
if not json_r... | [
"s26mehta@gmail.com"
] | s26mehta@gmail.com |
dcb6a6d9db8bcaafab7bfe2da66350daa43a69e6 | c36a8b52ffeeeed8242f10e8d6f3615bf8b7cbab | /sides_of_a_triangle.py | 6683e01bf21254ccfdb22b48d4c2963a9cf77919 | [] | no_license | parveen99/infytqpy | ee86e148a89c2f290963e1961740716923b111f0 | 44a31659410dea6d1d1c70d815fbb8dc5efc1a25 | refs/heads/master | 2020-05-09T12:56:16.196252 | 2019-06-04T08:24:52 | 2019-06-04T08:24:52 | 181,130,537 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | #PF-Assgn-24
def form_triangle(num1,num2,num3):
#Do not change the messages provided below
success="Triangle can be formed"
failure="Triangle can't be formed"
#Write your logic here
if(num1<num2+num3 and num2<num1+num3 and num3<num1+num2):
val=success
else:
val=failure... | [
"noreply@github.com"
] | noreply@github.com |
7a67c47173425d5c73bb905a499cbf5a91d248db | f2df88dd0e6e9b2dbffe9b12e98366d116022deb | /Academic Projects/Advertisement duplicate Detection/script.py | ae02f54322ece19ed847039766b43e2dcb6d9d85 | [] | no_license | ZouCheng321/Codes | 6ea2aae30bccd19dbb9ed2a5a5ebd61bc298471b | 18048a26fcfc25f0781df1ebd3b9b6257cfb3e02 | refs/heads/master | 2020-07-20T19:25:09.145432 | 2016-06-11T14:17:31 | 2016-06-11T14:17:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,591 | py | import numpy as np
import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.preprocessing import StandardScaler
seed = 1358
nanfill = -1000
trainInfo = pd.read_csv("../input/ItemInfo_train.csv")
trainInfo = trainInfo.drop(['locationID', 'metroID', 'categoryID', 'attrsJSON'], axis = 1)
trai... | [
"cpsamdavid@gmail.com"
] | cpsamdavid@gmail.com |
b80be6fb025b30540edd6d726ca50c4756a7d739 | fd1ed6e7fdad1bbb2fb8b6df02aed796c336fe1e | /exit.py | e9e94a21cb640f2b5686acfac3a77d14ffe26aab | [] | no_license | gauravwt63/Iris-Data-analysis-and-prediction | b033d788f0c4956a5e6a712b4229fb65c999b894 | a0101481887bea7c151cbf8dba9c8905bd6a8720 | refs/heads/master | 2023-06-08T20:05:33.495570 | 2021-06-22T18:43:37 | 2021-06-22T18:43:37 | 379,368,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | while True:
again = input("Do you want to Exit(yes / no):").strip().lower()
if again == "yes":
break
elif again=="no":
continue
| [
"gauravwt63@gmail.com"
] | gauravwt63@gmail.com |
89e2373d1870ea26db666a16121383000169882e | 8a081742c8a58c872a15f01d6d4d8c1028e4f7eb | /1404.py | b7f2fe45af35e2bd9b49f8c76ce20624ed64ad2c | [] | no_license | dibery/leetcode | 01b933772e317ccd4885b508de503b7873a4b65f | 096218b5d0b47ce38874c4b7141aca35e9d678c9 | refs/heads/master | 2022-05-20T03:50:45.525256 | 2022-05-17T00:57:48 | 2022-05-17T00:57:48 | 211,606,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | class Solution:
def numSteps(self, s: str) -> int:
s, ans = int(s, 2), 0
while s > 1:
ans += 1
s += 1 if s % 2 else s //= 2
return ans
| [
"bor810818@yahoo.com.tw"
] | bor810818@yahoo.com.tw |
0ded20645f7f188aff3c3657537ad2ed8f4a01b1 | f61cfb446a9286d897e481f8a9ce3c8cd13e8bb6 | /scrappers/sulbar.py | e634687c764c6a461f9ffebc2a3d806f7b8150fd | [] | no_license | agusedyc/covid19-province-scrapper | 3305192dac003d5f00ae752fe03d85f10b361444 | 02c63c43da1979720443ebe929e41e82880c6c1d | refs/heads/master | 2022-07-08T22:04:40.576758 | 2020-05-06T11:33:45 | 2020-05-06T11:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,430 | py | import datetime
import dateparser
import pandas as pd
import requests
from bs4 import BeautifulSoup as soup
from peewee import fn
from models import Province, KabupatenKota, Data
def scrape():
prov = __name__.split(".")[-1]
propinsi = Province.select().where(Province.nama_prov == "Sulawesi Barat")
if pr... | [
"muhammad.robee@gmail.com"
] | muhammad.robee@gmail.com |
1bccf0f17e21a5f80aa85d92e8131607b1f3fa1c | 9818262abff066b528a4c24333f40bdbe0ae9e21 | /Day 28/UtopianTree.py | 1bc5b897230286bb4173fdca69d29b1cdd03d6f9 | [
"MIT"
] | permissive | skdonepudi/100DaysOfCode | 749f62eef5826cb2ec2a9ab890fa23e784072703 | af4594fb6933e4281d298fa921311ccc07295a7c | refs/heads/master | 2023-02-01T08:51:33.074538 | 2020-12-20T14:02:36 | 2020-12-20T14:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | '''
The Utopian Tree goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases by 1 meter.
A Utopian Tree sapling with a height of 1 meter is planted at the onset of spring. How tall will the tree be after growth cycles?
For example, if the number of growth cycles... | [
"sandeepiiitn@gmail.com"
] | sandeepiiitn@gmail.com |
45aba41af0d535134768e5f9a3a6b157615a01f0 | b7b12fbb05a95e14fe350cc8332dae7f474f5584 | /estruturaSequencial/exercicio15.py | e037a0f7f0c913b961cae64ab2728ff15f0a11c6 | [] | no_license | florianodev/maratona_datasciencebrazil | eb43506393dae86f1562d2d6bd22343b98c7679e | e456e88988a42701f265ca407871510e86fd8202 | refs/heads/master | 2020-04-12T19:31:51.530267 | 2018-12-27T01:51:35 | 2018-12-27T01:51:35 | 162,711,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | import module.MyLib as ml
hh = ml.entradaFloat("Quanto ganha por hora? ")
ht = ml.entradaFloat("Horas trabalhadas no mês? ")
salario = hh*ht;
ir = salario * 0.11
inss = salario * 0.08
sindicato = salario * 0.05
liquido = salario - ir - inss - sindicato
print("+ Salário Bruto: R$ %.2f" % salario)
print("- IR: R$ %.... | [
"floriano.nunes@gmail"
] | floriano.nunes@gmail |
f776d1a93a69794decb2e66b335e5c397fc247ed | 7e0f18afb297a221f79495c03bce1c35d653d27a | /shopping-cart/phone.py | 4fd41ee05a7b4dbaff0365f7d84bd802ca30ac90 | [] | no_license | mounipopuri/Shoppingcart | 669e0c85d28774362e5bd841f32a7c64bef151a4 | bc305bb732c197c19e0105a888b7a98642c800c2 | refs/heads/master | 2020-05-03T22:30:19.041293 | 2019-04-08T09:36:02 | 2019-04-08T09:36:02 | 178,844,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | import nexmo
responseData = client.send_message(
{
"from": "Acme Inc",
"to": '917702592673',
"text": "A text message sent using the Nexmo SMS API",
}
)
if responseData["messages"][0]["status"] == "0":
print("Message sent successfully.")
else:
print("Message failed with error: {resp... | [
"muqeeth.23@gmail.com"
] | muqeeth.23@gmail.com |
48e691d9db78dd5311f2cf2ccafe9a0f023f231f | a1fd7d56240180e59ff272b1bbb78e31daadb460 | /cmc/manage.py | eecab2757d789171ce11b6866d43191313965710 | [] | no_license | daranedag/cmc | 10572110a5b8e78bbb90eb0ce06b0bf2672a081d | 83616ed25db9c7f5a530b442028760ce6805ee84 | refs/heads/master | 2020-03-06T18:21:23.001855 | 2018-04-04T14:53:49 | 2018-04-04T14:53:49 | 127,005,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmc.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you ... | [
"daraneda@allware.cl"
] | daraneda@allware.cl |
5af889034a242a85d9b2af11a9bffb472f0ac57a | bf9ae1e4269952622c7f03dc86c418d21eb20ec7 | /PythonCode-OldBoy/考核/4_For实现加法计算.py | 78f161cc14d31dcc8db5fe4393529f7e24a1eaf8 | [] | no_license | ChuixinZeng/PythonStudyCode | 5692ca7cf5fe9b9ca24e9f54f6594f3a79b0ffb5 | 2986c83c804da51ef386ca419d0c4ebcf194cf8f | refs/heads/master | 2021-01-21T16:09:58.622069 | 2019-12-01T14:30:36 | 2019-12-01T14:30:36 | 91,876,874 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # -*- coding:utf-8 -*-
# Author:Chuixin Zeng
# 使用for循环和range实现输出 1-2+3-4+5-6...+99 的和
b = 0 #结果
for i in range(1,100):
if i%2 == 0:#判断是偶数
b = b - i #结果加当前的i
else:#基数
b = b + i #结果减当前i
i += 1 #判断完自增一
print(b)
#结果:50 | [
"zengchuixin@le.com"
] | zengchuixin@le.com |
3a8f518a84296bd33cd4f2020765e60f958f8856 | 5e83d62064ea4fd954820960306fb06cc8f0f391 | /newsletter/forms.py | b32cd71b5fa39b823de5b46be2724352afed7ec5 | [] | no_license | bharatkumarrathod/cfe_ecommerce2_RESTapi | eff2fad0cbff7cb3def2c13de282b085aba7291d | a081cdbf10c1fbde58e128b9c9b287443c726071 | refs/heads/master | 2020-12-25T21:43:44.166109 | 2015-10-27T21:04:19 | 2015-10-27T21:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | from django import forms
from .models import SignUp
class SignUpForm(forms.ModelForm):
""" create form using our model """
class Meta:
model = SignUp
fields = ['full_name', 'email']
## DEBUG ONLY ## use this to manually add entries for different dates.
# fields = ['full_name... | [
"carlofusiello@gmail.com"
] | carlofusiello@gmail.com |
0c8ef2128af545fdb92c81391e5d815bbd2a1371 | 37087383bbb91dbd76b50634111e273aaf2786f5 | /venv/Lib/site-packages/comtypes/gen/_00020430_0000_0000_C000_000000000046_0_2_0.py | 041f2deac1da41636cf3efe0eef6ae5f780a5eb3 | [] | no_license | akhtar016/Pdf-Reader-with-Python | 3a5e5f6ea76d414b8c4ef2a3b4ef2f863c24a2a0 | a9a62dd914fe15006a12d93e9a4f13dfcde6f521 | refs/heads/master | 2022-11-29T04:29:36.929501 | 2020-08-11T07:17:22 | 2020-08-11T07:17:22 | 286,673,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,761 | py | # -*- coding: mbcs -*-
typelib_path = 'C:\\Windows\\SysWOW64\\stdole2.tlb'
_lcid = 0 # change this if required
from ctypes import *
FONTSIZE = c_longlong
from ctypes.wintypes import VARIANT_BOOL
FONTBOLD = VARIANT_BOOL
from comtypes.automation import IDispatch
from comtypes import GUID
from comtypes import BSTR
from co... | [
"akhtaruzzamankhan016@gmail.com"
] | akhtaruzzamankhan016@gmail.com |
c36443c259db9ea6eeb60c6aa6b75b4990e29d85 | c070464ca88ced58abd25783822eb293ebd34769 | /chap6/stack.py | 8e62e8cc24bd3e5babd837f5a18d1c3522550b76 | [] | no_license | debrekXuHan/core_python | 8b3d034b335826f22eee6e98fe1c244906ebf2ad | ebdbc934334eaa6e8070b213b390a99247386145 | refs/heads/master | 2021-05-05T15:57:35.412331 | 2019-04-29T09:30:53 | 2019-04-29T09:30:53 | 103,156,101 | 0 | 0 | null | 2017-09-11T23:49:42 | 2017-09-11T15:50:59 | Python | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python
stack = []
def pushit():
stack.append(input('Enter New string: ').strip())
#delete the blank space on both sides of the input string
def popit():
if len(stack) == 0:
print('Cannot pop from an empty stack!')
else:
print('Removed [', repr(stack.pop()), ']')
def viewstack():
print(stac... | [
"debrek_xuhan@hotmail.com"
] | debrek_xuhan@hotmail.com |
9902c2894b1ebc6917d9c4228758ad6c8af16999 | 7aa686f395ffcc94933f95ca3ccc0f960f8ccb19 | /recurrent-neural-networks/char-rnn/Character_Level_RNN_Exercise.py | c65c19fa223096cb77d1203485b2a29a1b654365 | [
"MIT"
] | permissive | chorus12/deep-learning-v2-pytorch | ca1495ff0b612457a311f1a5def544e20bfea8d7 | 69873120ef8537c212a7398e78ba1c756a075793 | refs/heads/master | 2021-08-03T20:40:22.402289 | 2021-07-27T14:20:09 | 2021-07-27T14:20:09 | 241,337,731 | 0 | 0 | MIT | 2020-02-18T10:53:23 | 2020-02-18T10:53:22 | null | UTF-8 | Python | false | false | 33,201 | py | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.5.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# !jupytext --to py Character_L... | [
"pa151501@mail.ru"
] | pa151501@mail.ru |
d7ce82cd92dd0e5ae2c3e33a2bbb2f04c5a3d44b | 987697512ce9b8d7c29bfd2f18d5aec0261a6863 | /最长回文串.py | 8b40ab6ad9297a3c3ba8188befafb8af968ff812 | [] | no_license | Luckyaxah/leetcode-python | 65e7ff59d6f19312defdc4d4b4103c39193b198a | 2b9c78ba88e7bf74a46a287fb1914b4d6ba9af38 | refs/heads/master | 2023-06-05T12:15:31.618879 | 2021-06-22T13:05:30 | 2021-06-22T13:05:30 | 262,287,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | class Solution:
def longestPalindrome(self, s: str) -> int:
d = {}
for i in s:
if not i in d:
d[i] = 1
else:
d[i] += 1
ret = 0
m = 0
for i in d:
if d[i] % 2 ==0:
ret += d[i]
else:
... | [
"math_leqi@163.com"
] | math_leqi@163.com |
5e051a55c197cdb3591a9123e13532896aadb30b | 46a9527550716765c28f61d015d1526d5b918a54 | /users/views.py | df9c118e4c6d53f3520736474489e1ac8e61d9e8 | [] | no_license | Maratan/DZ | 1ede6d25478936aa9a6e64e0d90dac1b6601aca1 | 1a7bd32a7c8d62e9a48597a0daf85d1359c7fd55 | refs/heads/master | 2021-01-11T10:55:30.067437 | 2016-12-11T10:09:11 | 2016-12-11T10:09:11 | 76,165,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | from django.contrib.auth import login
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
from django.contrib import auth
from django.http import HttpResponseRedirect
from django.views.generic.edit import FormView
from .models import User
class login_f(FormView):
form_class = AuthenticationF... | [
"noreply@github.com"
] | noreply@github.com |
e06ad4aba91f9778ff9a8b6e7115461c5bf9d169 | dab9557fe8ee3e09a38743dfb970e72ee828cceb | /practice problems/p3.py | bcaf2f18c67d0f1559958b052f02ab46ba37aee0 | [] | no_license | Namanvijay/CP | 160b98b70a298584fbccdb153430c7731d04d80f | 1540636d84f1b2dd67767a2cad0552f9ef507504 | refs/heads/master | 2022-04-22T21:17:19.737761 | 2020-04-25T04:41:28 | 2020-04-25T04:41:28 | 258,688,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | s=input("Enter string:")
n=int(input(" No of Elements to remove "))
w=input("Elements to remove")
w=w.split(' ')
s=s.split(' ')
for i,j in enumerate(s):
if j in w:
s[i]="*"*len(j)
s=' '.join(s)
print(s)
| [
"namanvj26"
] | namanvj26 |
50200dd19d5504549379f554180fe7c6e288d37b | b09da8853a01164153499b949e5737cbf802f1fd | /basic/first.py | 1734338e4353f7f7b3b5a8c636d2b5f4dd9cb7e6 | [] | no_license | SHPStudio/LearnPython | e060d91f161b4a4359fae8bd56576ee99dc9a4e8 | 57cdfb68d2fb782e0947d0f93b99b55231043e15 | refs/heads/master | 2021-09-03T15:52:19.289533 | 2017-11-22T11:23:04 | 2017-11-22T11:23:04 | 108,791,407 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | # 输入 name = input()
# 输出 print('name', name)
# a = -100 赋值
# 如果以:为结尾的话那么就代表缩进的为代码块
# if a > 0:
# print('大于0', a)
# else:
# print('小于0', -a)
# 如果要转义的字符串特别的多 可以用r''去表示不要转义字符串
# print(r'/r/s/e')
# 使用'''...''' 来输出多行数据
# print('''shpshp2
# shp3''')
# python代表Null是None
# python中的常量是全部大写的比如 PI=3.1415926
... | [
"sunhaipeng@jd.com"
] | sunhaipeng@jd.com |
2098d21ee99832c33038bc0f47ec05606c5c0ad2 | 9dc23b64eb10f0fdc7147b5d2ebb3621405c58cc | /joint_model_knowl_v7_with_domain_knowledge_context_window/joint_intent_slots_knowledge_domain_predict.py | fa68fccd03fb6bf241dffa365350904ff5a1ba8c | [] | no_license | Xnsam/slot_filling_intent_joint_model | b98f23d3787fdb80687e673582fd6ad847aea68b | f011729ae3b7726e0a0f3d5a99755b89c70d5d7d | refs/heads/master | 2020-03-21T20:12:31.895920 | 2018-06-28T09:37:07 | 2018-06-28T09:37:07 | 138,993,544 | 0 | 0 | null | 2018-06-28T09:02:06 | 2018-06-28T09:02:05 | null | UTF-8 | Python | false | false | 13,578 | py | # -*- coding: utf-8 -*-
#prediction using model.process--->1.load data. 2.create session. 3.feed data. 4.predict
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import tensorflow as tf
import numpy as np
import os
from joint_intent_slots_knowledge_domain_mode... | [
"xul@fitme.ai"
] | xul@fitme.ai |
c782dbe3a6069af1298cc9d88de6368616befaf6 | cb640818860c6388fc659a80a24824c5ec9afc8a | /AutoApiTest/tests/TestScript/infoApi/test_info.py | 0b1399c85b247163ed4e0a135857c7c28bffd5ce | [] | no_license | anqianqi5227/apiAutoTest | 211d16829b65ff4310b43eea3f1c366b5eac2073 | 7a2f5b2292b73fed5e27cfdfb6e866896f1e7dc1 | refs/heads/main | 2023-06-10T20:38:56.702181 | 2021-07-01T03:34:13 | 2021-07-01T03:34:13 | 381,894,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,781 | py | import pytest
import allure
from common.unit.initialize_yaml import ini_yaml
from common.unit.initialize_relevance import read_relevance
from common.unit.api_send_check import api_send_check
from common.unit.setupTest import setupTest
from Main import root_path, case_level, product_version
case_path = root_path + "/tes... | [
"591243446@qq.com"
] | 591243446@qq.com |
bcad2095d69a28b0cecd13f2126677211b59c099 | 8544d75deee3d8037c1cddc6c5ea6b6039abf084 | /test.py | 27817ab1343814600b6c03b7b9ce7d223310080b | [] | no_license | everpalm/TwoSum | b972ce0a28bc30ccb46db52d79ff5d7313d8b199 | d812c2e2fe6b40f28cc24db6323bf9a7c350d33f | refs/heads/master | 2020-06-26T15:08:09.573342 | 2019-08-01T15:31:15 | 2019-08-01T15:31:15 | 199,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | class Solution:
def twoSum(self, nums, target):
print(nums, target)
complement={}
for nums_count in range(len(nums)):
if (target-nums[nums_count]) not in complement:
#print("complement =", complement)
#print(target, "- nums[",nums_count,"] = ", tar... | [
"everpalm@gmail.com"
] | everpalm@gmail.com |
df21640281926ce627e762e7a9f257f9b679b918 | 7538343b2acac2fad6a8adfe5fa987e7bcc34faa | /tests/test_fastapi_example.py | a337a603c5c6d90313f16ce1f0e00b25601dcf5b | [] | no_license | spyndutz/fastapi-example | 5d819d43763e2fd33820eb13f2a60fc6bd60806f | a8c77e1cb01466bc1061c82c62ccd581207ceef0 | refs/heads/main | 2023-03-04T11:19:46.543911 | 2021-02-10T05:56:59 | 2021-02-10T05:56:59 | 337,603,532 | 0 | 0 | null | 2021-02-10T05:57:00 | 2021-02-10T03:15:10 | Python | UTF-8 | Python | false | false | 133 | py | """
This is test example module
"""
from fastapi_example import __version__
def test_version():
assert __version__ == "0.1.0"
| [
"spyndutz@gmail.com"
] | spyndutz@gmail.com |
d13c548e1ff9bf8afe87ef0436455580acbe03df | c02c2e90309844aece0a6cd18c24abd5b7205501 | /backend/todo/urls.py | c6b1b06a93cef8998416f150d9aae3d3afcb66bb | [] | no_license | magnunleno/pair-django-pytest-vue | 612ee34886f03ea9095a1b1c5bdf3137dffca3a8 | 2d6c7ea9cc2ecb3a2b4c8a4fafb66a57fece1001 | refs/heads/master | 2020-03-18T08:28:03.202655 | 2018-05-23T04:05:57 | 2018-05-23T04:05:57 | 134,511,269 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.urls import path
from . import views
app_name = 'todo'
urlpatterns = [
path('', views.index, name='index'),
]
| [
"magnun.leno@gmail.com"
] | magnun.leno@gmail.com |
702e0a2739121304d414e430741208fedc77fff3 | b1528fbef030ce53d2373e8dee0c5e764e5ec02a | /segments.py | 218d7afe32f2009678168970e6ba41caaaa5622c | [] | no_license | VascoXu/CityScanner-API | dc26b99307e7ae49907355082d38ba8f9e705ca7 | 55cf3759132cd06b246de5073a9cbdbf1c27ed64 | refs/heads/master | 2023-07-08T07:03:13.581072 | 2021-08-04T01:42:03 | 2021-08-04T01:42:03 | 350,403,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | import io
import os
import numpy as np
import pandas as pd
import osmnx as ox
from geojson import FeatureCollection, Feature, Point, dumps, dump
from mapbox import Uploader
from sklearn.cluster import DBSCAN
from shapely.geometry import MultiPoint
from sklearn.neighbors import BallTree
from datetime import datetime
... | [
"vamiguelxu@gmail.com"
] | vamiguelxu@gmail.com |
9e45ecb2e12786ff9bae318d2d14df78b0fb4e93 | 794f9f57c975345ce6f2b43f9823b94b01b49f44 | /api/project/apps/gatekeeper/tasks.py | 229830fac82e117991e56a040e3b26b89ef8e923 | [
"BSD-2-Clause"
] | permissive | buddyup/api | 367b7cb02de142ef81fbfacf692559c32974539b | ae42fb99de0104d63b6a087710c31e377958eb77 | refs/heads/master | 2021-05-31T05:13:01.388483 | 2016-04-11T08:55:59 | 2016-04-11T08:55:59 | 55,948,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,443 | py | import json
import requests
from binascii import hexlify
from simplecrypt import encrypt
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import render_to_string
from celery.task import task
from utils.email import get_school_key_from_email
from gatekeeper.models imp... | [
"steven@inkandfeet.com"
] | steven@inkandfeet.com |
e08986934f548993b70d30092dadbd0b8f412c85 | 620c7bd0f3642a87d9a69563f55857c47acba8d3 | /sniff_beacons.py | 0a08ede5aad32e7cc0712544f4be5a8ce8b0ef79 | [] | no_license | WhoTippedMyCows/Scripts | d4ab7e070b2365382315393d93bc0149f93c8cce | fb68d39d3692f7812fe9c534942cb3838fb01782 | refs/heads/main | 2023-02-27T16:25:09.198731 | 2021-02-11T02:20:37 | 2021-02-11T02:20:37 | 335,766,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Sniff wireless packets
# Setup monitor mode:
# ifconfig wlan0 down
# iwconfig wlan0 mode monitor
# ifconfig wlan0 up
# iwconfig
from scapy.all import *
def get_packets(packet):
if packet.haslayer(Dot11):
if packet.type == 0 and packet.subtype == 8:
print("BSSID: "+packet.addr2,
"ESSID: "+packet.info,
... | [
"noreply@github.com"
] | noreply@github.com |
c2e3ddd4b12b41ff8990d4864171cbf2b80ae6d7 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pandas/tests/resample/test_resampler_grouper.py | 204efa0e5670fcd8e1e750dae7e7b34df513e81a | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 14,411 | py | from textwrap import dedent
import numpy as np
import pytest
import pandas.util._test_decorators as td
from pandas.util._test_decorators import async_mark
import pandas as pd
from pandas import (
DataFrame,
Index,
Series,
TimedeltaIndex,
Timestamp,
)
import pandas._testing as tm
from pandas.core.... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
9eac965462f06dc9a3e77c216a9147f97de74a0e | 0cfcd625daf61159ea8869551c750e7ad34c730a | /migrations/versions/b0c8e2c5414c_created_loan.py | c9d9b4cb0a6a2f99d96c014681bed90338b710ad | [] | no_license | GaronSmith/webserver-loans | 96269342d535568c00db976282716f9bcdf269b4 | 9f08b279c737e2cab31407d81c918830b3e0938a | refs/heads/master | 2023-03-31T01:22:25.170835 | 2021-03-30T01:40:53 | 2021-03-30T01:40:53 | 352,091,024 | 1 | 0 | null | 2021-03-29T22:20:50 | 2021-03-27T14:17:28 | Python | UTF-8 | Python | false | false | 894 | py | """created-loan
Revision ID: b0c8e2c5414c
Revises:
Create Date: 2021-03-27 17:02:03.012084
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b0c8e2c5414c'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gener... | [
"wgaronsmith13@gmail.com"
] | wgaronsmith13@gmail.com |
efb53530e5f90e6d505ae760ff80f52b67f20ea1 | 004d8c592a3a88ea138c83516322d6825821a335 | /app.py | d9d3f8cb6a283dad7cc0a54a10451f0fce142c38 | [] | no_license | JoeBusLife/cupcakes | 8dd69b097e36cf1e1b3d7f0b94da2ac30a9ff511 | 9671c5d56f4313fdb012d51a48a412525787fb37 | refs/heads/main | 2023-06-05T06:06:17.635321 | 2021-06-21T19:26:41 | 2021-06-21T19:26:41 | 378,298,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | """Flask app for Cupcakes"""
from flask import Flask, request, render_template, jsonify, redirect, flash, session
from flask_debugtoolbar import DebugToolbarExtension
from models import db, connect_db, Cupcake
from forms import CupcakeForm
from sqlalchemy import desc
app = Flask(__name__)
app.config['SQLALCHEMY_DATAB... | [
"h.joseph91@hotmail.com"
] | h.joseph91@hotmail.com |
f37207209c196d663aa2e43026e64b1a2b9cd70e | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /great_year_and_same_woman/important_part/group/want_old_place.py | 611d05cfce1273ef655fed24e8b67caedddea3ff | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py |
#! /usr/bin/env python
def great_work(str_arg):
life(str_arg)
print('able_person')
def life(str_arg):
print(str_arg)
if __name__ == '__main__':
great_work('life_and_child')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
58404aca7b0867347df5c46dc518357cdf127a16 | a93660b1026c030492f330595b92605788337cd0 | /5 Given a two list. Create a third list by picking an odd-index element from the first list and even index elements from second.py | 4b2ecf871a6f1ea91bd6c4bbb7a3db662430878d | [] | no_license | shawyou1/testseries-day-1 | da476ebf71aca174bc4cd01c49cc8491e0b44623 | 9bf7cfbdc462e4287f2d2b49665d4ff05aed48a8 | refs/heads/master | 2022-07-17T16:58:30.130789 | 2020-05-15T09:38:18 | 2020-05-15T09:38:18 | 263,872,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | a=list(map(int,input().split()))
b=list(map(int,input().split()))
a=a[0::2]
print("Element at odd-index positions from list one \n",a)
b=b[1::2]
print("Element at even-index positions from list two \n",b)
c=a+b
print("Printing Final third list\n",c)
| [
"noreply@github.com"
] | noreply@github.com |
350aba3f5ae51a3e7b63b960204bddbeee38d131 | d01822ba7fa5522c89c83f20907003f5c4823dde | /CNN_GPU.py | 559d15521dd4810f15c81c1a9f11094f08a722f2 | [] | no_license | cp4011/Neural-Network | 853aab63c871d19aeb73911af56ccf9351ad1f3c | 93b33b6a14fed7010285da8fb3efc4a62152cef3 | refs/heads/master | 2020-05-02T07:22:18.778871 | 2019-04-15T10:49:40 | 2019-04-15T10:49:40 | 177,816,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import torch
import torch.nn as nn
import torch.utils.data as Data
import torchvision
# torch.manual_seed(1)
EPOCH = 1
BATCH_SIZE = 50
LR = 0.001
DOWNLOAD_MNIST = False
train_data = torchvision.datasets.MNIST(root='./mnist/', train=True, transform=torchvision.transforms.ToTensor(), download=DOWNLOAD_MNIST,)
train_lo... | [
"957628963@qq.com"
] | 957628963@qq.com |
e43972840366d521837f8540cf4bf978710485ab | cba0257401ebc18932ffe998ea27385c83dfa6d0 | /self_pratice/Demo1.py | 1d7f0c064861945a246d44903455cde5c32ef2c0 | [] | no_license | Zero-Fire/Pycharm | 07bfde367c16790aacf76c267cfeb538f713b675 | 3d0738ae60775790eb7ea6b0422222b06168de18 | refs/heads/master | 2023-05-05T10:11:55.130661 | 2021-06-01T07:13:26 | 2021-06-01T07:13:26 | 317,237,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | # -*- coding: utf-8 -*-
#字典
# dict_a={"a":1,"b":2}
# dict_b=dict(a=1,b=2)
# b=dict_a.fromkeys((1,2,3),"a")
# print(b)
# print({i: i * 2 for i in range(1, 4)})
# print(dict_a.keys())
# print(dict_a.values())
# print(dict_b.pop("a"))
# print(dict_a)
# print(dict_b)
# #集合 a=set(1,2,3)
# a={1,2,3}
# b={1,4,5}
# print(a.... | [
"992106950@qq.com"
] | 992106950@qq.com |
0eb204f2777859997c66c81bb0b68cc25729608e | b5062ae8da600be085218398ecc8ad9f8482a7ed | /backend/backend/settings.py | 44defea99d26172969aecbd1d0d1d08f0b4d92df | [] | no_license | sankethkini/autowork | 22fe07b5049da3cffa9e01bcfecd62312d92ed8e | 8f5b892dbe2b0c4b91ea3594d40c947f7509974e | refs/heads/master | 2022-12-12T05:43:40.124746 | 2020-08-13T05:41:44 | 2020-08-13T05:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,384 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 2.2.2.
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
#... | [
"kinisanketh@gmail.com"
] | kinisanketh@gmail.com |
c9c758f898830a0e19e8518f67c67299e5974c6d | 01a009e1f77d364020fc3c3159b0c679758b670d | /scrap_covid.py | ac7af93a4944458a6415bdf0a7f742327f1b1045 | [] | no_license | Surajcse5338/AIassistant | baf08650e2c107fb3ad5a48f6d30e740c03d4ca8 | 45e42b6e0452b9d5757b8ae4e8c2bab18a63b8ea | refs/heads/master | 2022-11-28T21:46:47.057073 | 2020-08-09T20:44:23 | 2020-08-09T20:44:23 | 283,849,588 | 0 | 0 | null | 2020-07-30T18:34:59 | 2020-07-30T18:31:55 | null | UTF-8 | Python | false | false | 1,543 | py | from bs4 import BeautifulSoup
from selenium import webdriver
import json
def getAllStateCovidData():
driver = webdriver.Chrome('D:/chromedriver')
driver.get('https://www.mohfw.gov.in/')
r = driver.execute_script("return document.documentElement.outerHTML")
driver.quit()
soup = BeautifulSoup(r, 'h... | [
"noreply@github.com"
] | noreply@github.com |
78dfd5e6cca3b9bcc1360d2a0781159697dff1f4 | 34f1e34416df71803635f5940554e0626b168818 | /bascal/code/pop.py | 966212413a3f6ecbf1e7bea780317021bb171d4b | [] | no_license | CCjerrymi/python | f2a268442648fee33046d2186d92ffb99c1be5f0 | 4fb7e8a5ff7181f1c2413210d8f63deb0191b6e1 | refs/heads/master | 2021-01-25T14:05:05.742062 | 2018-03-07T12:16:09 | 2018-03-07T12:16:09 | 123,654,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #pop.py
import sys
from poplib import POP3
import socket
from getpass import getpass
#pop3 server
POP3SVR='pop3.qq.com'
print("enter the emali:")
username = input()
password = getpass("enter the password")
try:
recvSvr = POP3(POP3SVR)
recvSvr.user(username)
recvSvr.pass_(password)
ret = recvSvr.stat()
print(ret)... | [
"rongfu97@outlook.com"
] | rongfu97@outlook.com |
16e0e3b92cd1522b98412523e323e7d95c5b724b | 34c113622832088c2b419a6b472e50428199c2b7 | /functions/quotes_for_list_adjClose.py | a6bea0a833231c4f9d8233deb428e06f90e652ac | [] | no_license | michaellinp/PyTAAA | 64690a505ef30b610ca41bac41a408ca9a77fced | 78eb38d1f06859f450342ea1023d5e99d6dbdc10 | refs/heads/master | 2021-06-07T13:27:03.476539 | 2016-09-24T02:33:33 | 2016-09-24T02:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,773 | py | import numpy as np
import datetime
import datetime
from scipy import random
from scipy.stats import rankdata
import functions.quotes_adjClose
from functions.quotes_adjClose import *
from functions.TAfunctions import *
from functions.readSymbols import *
def get_SandP500List( verbose=True ):
###
### Query wik... | [
"donpg1@yahoo.com"
] | donpg1@yahoo.com |
9615461a5293189ea9ccf409f475b6f55413cc97 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /1201-1300/1273-Delete Tree Nodes/1273-Delete Tree Nodes.py | 5aaf4cc9fdfc040b2b1d974afc0e5e5b2294eae5 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 545 | py | import collections
class Solution:
def deleteTreeNodes(self, nodes: int, parent: List[int], value: List[int]) -> int:
graph = collections.defaultdict(list)
for i in range(1, len(parent)):
graph[parent[i]].append(i)
def dfs(root):
total = value[root]
... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
c182a9588efd965178c2f3e7b6f10c4a37750821 | 8435da9eccc5c12bd92bb21185ca1dcc6495dd5b | /coursera code/coursera1.py | 675c311d420dad96bc0e79eb17ddeee9b76c079b | [] | no_license | Lynn-Lau/Python-Practice | 2d0a240382e74c11a09d6f2e4724fd00a89ff508 | 54b569db3db32f3e0af013098cd146eaaa1ea28f | refs/heads/master | 2021-01-17T12:49:33.601611 | 2016-07-21T13:02:42 | 2016-07-21T13:02:42 | 56,281,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | '''
A Simple Program for Coursera Python Data Structure $ Chapter 8 List
Open a file and read the file line by line.Split the line into words
and print them.May be some words shoud be split twice.
Author: Lynn-Lau
Origin Date: 2016/07/14 Version: 1.0
Modified Date: 2016/07/16 Version: 1.1
'''
path = 'D:romeo.txt'
Li... | [
"liu.silin@foxmail.com"
] | liu.silin@foxmail.com |
2166dde51f70387142d0bcdbdb804d5c418968d9 | 3155f0937b67dd99f2a583e5132acc2253c677a2 | /Chapter2-ApplicationLayer/Assignments/assign3/smtpClient.py | 34328c904b6b3fa77a0f602856afe2204de09aa1 | [] | no_license | BIT-zhaoyang/ComputerNetwork | 422d05db98ec339ea4079c5c982057c23e3b8b47 | 0fc832fb5c78d370fca17d503be9dc1e218cfe7e | refs/heads/master | 2021-04-15T17:08:59.307426 | 2018-03-26T01:58:28 | 2018-03-26T01:58:28 | 126,758,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | #!/usr/bin/python
import socket,ssl,base64
msg = "\r\n I love computer networks!"
endmsg = "\r\n.\r\n"
mailServer = ("smtp.163.com", 465)
# Build safe connect
context = ssl.create_default_context()
sslSocket = context.wrap_socket(socket.socket(socket.AF_INET, socket.SOCK_STREAM), server_hostname="smtp.163.com")
ssl... | [
"bit.zhaoyang512@gmail.com"
] | bit.zhaoyang512@gmail.com |
82b58aed3ca85fe890296c8b74ef57978bd1651b | cb0ac5754bf5a2f2c9a9640e9816b02107ea8898 | /authentication/views.py | 6473b2ba2db16e368133234c2f46261dc17569d9 | [] | no_license | mnk179/dreamcather-backend | 342020a2857adca45760913c8aed98fc847d55c8 | e68cfec3b1b2e2b6f0c8aea3a78ae4c0ddc7f676 | refs/heads/master | 2022-05-04T00:21:17.462481 | 2019-11-16T18:03:39 | 2019-11-16T18:03:39 | 222,138,954 | 0 | 0 | null | 2022-04-22T22:43:13 | 2019-11-16T18:01:16 | Python | UTF-8 | Python | false | false | 1,764 | py | from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
from rest_framework.decorators import api_... | [
"martynas.nor@gmail.com"
] | martynas.nor@gmail.com |
b04b9e636a59a5c6f889dd245dae7adbd868af09 | 8f6946286dfad1d61be7425dde737daed7027c3f | /ckstyle/command/args.py | 0c7551eafb4fb344689f8901ef20f989f68d82c1 | [
"BSD-3-Clause"
] | permissive | ljspace/CSSCheckStyle | e75d7616d8c9444b581b38a91a10aff7b4f731ad | c12be2181d6576349bf52c218d8fb1809c11da12 | refs/heads/master | 2021-01-16T20:29:55.157662 | 2013-04-16T03:58:36 | 2013-04-16T03:58:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | class CommandArgs():
def __init__(self):
self.operation = None
self.errorLevel = 2
self.recursive = False
self.printFlag = False
self.extension = '.ckstyle.txt'
self.include = 'all'
self.exclude = 'none'
self.standard = ''
self.exportJson = Fal... | [
"wangjeaf@gmail.com"
] | wangjeaf@gmail.com |
bf8c7a1eb3e446dca8f0a6dc4e01d8b8f26a1264 | 9a10aabe68f9e98e22362abd9ef79cc784ba55e0 | /snooty/cache.py | e8cfef1648860aed5dcc1b915d55d9d11322f7d8 | [
"Apache-2.0",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | mrlynn/snooty-parser | 5594aa3a082bee15dc543b574c125a93d7536986 | 2df825d324bf8f73646a8c2299cf765690c1a93f | refs/heads/master | 2023-04-15T17:38:26.310408 | 2020-10-21T17:32:15 | 2020-10-21T20:28:06 | 306,339,200 | 0 | 0 | Apache-2.0 | 2023-04-04T01:26:41 | 2020-10-22T13:03:06 | null | UTF-8 | Python | false | false | 1,475 | py | from collections import defaultdict
from dataclasses import dataclass, field
from typing import Set, Tuple, Dict, DefaultDict, Optional, Iterator, TypeVar, Generic
_T = TypeVar("_T")
@dataclass
class Cache(Generic[_T]):
"""A versioned cache that associates a (_T, int) pair with an arbitrary object and
an ... | [
"i80and@foxquill.com"
] | i80and@foxquill.com |
a6f529f5c6d00ff3aba3df255dba713e85eac766 | 1c07579679f8a4c861777cff4faf30a8064862db | /social/__init__.py | e993f2fda050c964968927a8b09d383d28ce9fcc | [
"BSD-3-Clause",
"Python-2.0",
"BSD-2-Clause"
] | permissive | florelui001/python-social-auth | 86591a1c12dfc011a0d755a7b397691e54821400 | 81093d2135c3eafd6fc5dd763f31a7889a9f1ce4 | refs/heads/master | 2021-01-15T08:10:42.444979 | 2014-02-27T21:00:17 | 2014-02-27T21:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | """
python-social-auth application, allows OpenId or OAuth user
registration/authentication just adding a few configurations.
"""
version = (0, 1, 22)
extra = '-dev'
__version__ = '.'.join(map(str, version)) + extra
| [
"matiasaguirre@gmail.com"
] | matiasaguirre@gmail.com |
20b8cce1f5fab387d925e323c5d9bd3f3d64c01a | 0bf2dfce698190e61cecc1bbb07ba03d98497157 | /patch_library.py | 8bbd041bf69fac354d7c0b2c1f5a99e9997f4a15 | [
"MIT"
] | permissive | Edwinngera/Brain-Tumour-Segmentation | 2cd9bad67ea304e97a28ef2c67620155d589ddbf | a87a3f4bc62a19fdf3e2699d70ad588e18e0ff6f | refs/heads/master | 2020-04-12T11:40:00.806007 | 2018-02-10T13:23:23 | 2018-02-10T13:23:23 | 162,466,847 | 1 | 0 | MIT | 2018-12-19T16:59:42 | 2018-12-19T16:59:42 | null | UTF-8 | Python | false | false | 7,373 | py | import numpy as np
import random
import os
from glob import glob
import matplotlib
import matplotlib.pyplot as plt
from skimage import io
from skimage.filters.rank import entropy
from skimage.morphology import disk
import progressbar
from sklearn.feature_extraction.image import extract_patches_2d
progress = progressba... | [
"noreply@github.com"
] | noreply@github.com |
a1cf96c8d43a4e0b3a16b690bbcbd7de73f7ad31 | 1cdea163c2b053d0ceb0c19ac0203a8d515736d6 | /venv/bin/easy_install | e58a660abf2a1ecf5715b7576976181e0e30fe72 | [] | no_license | git-nori/PortDjangoSampleBlog | 1cb4e52e699f89246a1912361b1fb9836e961d2e | ab8fddc392b19419ca393b2318f8f4ea94b30deb | refs/heads/dev | 2020-06-18T20:26:15.921897 | 2019-07-26T14:12:24 | 2019-07-26T14:12:24 | 196,435,019 | 0 | 0 | null | 2019-07-26T14:12:25 | 2019-07-11T17:04:30 | Python | UTF-8 | Python | false | false | 457 | #!/Users/satouhironori/PycharmProjects/PortDjangoSample/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__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\.... | [
"maza.hs5360@gmail.com"
] | maza.hs5360@gmail.com | |
424d7fe665c85846cf1bb062915cf9447f3236be | ab3fb86c87c64c2ef59fa152b6a6e306edd07640 | /answer_key.py | 0b6276293645e3040f1da836e0d6a36466a6b308 | [] | no_license | joachimcordero/Crash-Course-in-Python---Final-Output | d2f2b1325185469097bb48b4ddc0ed5a70e887b9 | ddb982c46a49afc18e6b7128bd83adab7d8791ef | refs/heads/master | 2023-03-16T12:35:09.274321 | 2020-11-03T14:59:18 | 2020-11-03T14:59:18 | 345,056,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import re
import sys
import operator
import csv
users={}
errors={}
f=open("syslog.log")
for line in f:
line=line.strip()
usrname=(re.search(r"\((.*)\)",line)).group(1)
msg=(re.search(r"(ERROR|INFO)",line)).group(1)
if (usrname not in users):
user_count = {'INFO': 0, 'ERROR': 0}
users[u... | [
"joachimcorder@gmail.com"
] | joachimcorder@gmail.com |
aa7a161ab5068d20d258b20e3c6e0f813989f089 | efa856940078b88295fe11a6004b7e3b5065e4eb | /Problem Solving/Algorithms/Implementation/Easy/Cats and a Mouse.py | 7c9148e4b5e8efd798f1d3e6e9a89872f2c536ca | [] | no_license | AdithyaK47/HackerRank | ee3ed43e6345eee874f5664a71cabec48f091b86 | 6c1979f9c43e625d55741b545ce47ddbb6d048e3 | refs/heads/main | 2023-01-10T03:18:04.236606 | 2020-11-16T15:45:48 | 2020-11-16T15:45:48 | 301,372,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | #!/bin/python3
import math
import os
import random
import re
import sys
def catAndMouse(x, y, z):
if (abs(x - z) == abs(y - z)):
return "Mouse C"
elif (abs(x - z) < abs(y - z)):
return "Cat A"
else:
return "Cat B"
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PAT... | [
"adithyakrishna1@gmail.com"
] | adithyakrishna1@gmail.com |
b9608a0dee3287386b23d01f28dacb30bd1c0c08 | cec725bb2b9a2baa9ca97f8ee23be6db57f8be38 | /zemployed/bin/django-admin.py | fb6f32d253b52bc590141b8ea51357160308ff8d | [] | no_license | cdelaney314/zemployed | 3218d0e9fff3e56995bec8088dc459318e4867fe | 80609006332c8a8d88f2a81d71cda8a6a7ba8b1c | refs/heads/master | 2023-04-07T11:43:04.346453 | 2021-04-14T23:33:47 | 2021-04-14T23:33:47 | 358,065,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #!/var/www/html/cse30246/zemployed/zemployed/bin/python3.9
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was ... | [
"wrobson@nd.edu"
] | wrobson@nd.edu |
b56cf17c850ee1b033aa5372bb53774fe8d95850 | dd221d1ab80a49190a0c93277e2471debaa2db95 | /hanlp/components/parsers/ud/ud_model.py | 729f49c1af9decf8c14572ed1691eed63ed91021 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | hankcs/HanLP | 29a22d4e240617e4dc67929c2f9760a822402cf7 | be2f04905a12990a527417bd47b79b851874a201 | refs/heads/doc-zh | 2023-08-18T12:48:43.533453 | 2020-02-15T17:19:28 | 2023-03-14T02:46:03 | 24,976,755 | 32,454 | 9,770 | Apache-2.0 | 2023-08-13T03:11:39 | 2014-10-09T06:36:16 | Python | UTF-8 | Python | false | false | 5,198 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-12-15 14:21
from typing import Dict, Any
import torch
from hanlp.components.parsers.biaffine.biaffine_dep import BiaffineDependencyParser
from hanlp.components.parsers.biaffine.biaffine_model import BiaffineDecoder
from hanlp.components.parsers.ud.tag_decoder impo... | [
"jfservice@126.com"
] | jfservice@126.com |
ecb41bdb47bd56c47a86b55a3a537259cbad39f1 | 70a8d9379b503635cd101f10b39f00a4b2f0e13a | /DataBased/batchRun_nnConform.py | bf19d0941236a0a2ad05f056b8b35ea53a493830 | [] | no_license | tkushner/nnSensitivity-hscc2020 | 013edefc66f8f3b5370fc17e7d0331c998a3813d | 4d025b5842603db474b3614edb33697be85d5740 | refs/heads/master | 2022-09-19T18:52:54.440742 | 2020-06-03T17:51:04 | 2020-06-03T17:51:04 | 232,232,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | ## script to batch run output range for networks
## HSCC 2020
## Taisa Kushner
## taisa.kushner@colorado.edu
import csv
import tempfile
import subprocess
import os
#pull the list of glucose initial trace files from glucIC directory
path = './glucICs/'
glucIC_files = []
# r=root, d=directories, f = files
for r, d, f... | [
"Taisa.Kushner@Colorado.EDU"
] | Taisa.Kushner@Colorado.EDU |
3d7a846c6ebead37ae4742dbd4b30c43e3f5edcc | 9b3769a69736dccf4812d744c5d20c31f293790d | /FlaskSample/env/Lib/site-packages/adal/log.py | 9fbc2d8395419c45f41ceb7c41361202de024558 | [] | no_license | ToyamaDataCenter/FlaskLinebotEcho | 3b75662da77334ebd7781e7d488ce9a44ccf32e2 | 06c7947525bb77d70090bfbdaf067f07b224aeee | refs/heads/master | 2023-01-12T11:31:21.478181 | 2018-10-26T08:47:38 | 2018-10-26T08:47:38 | 153,573,536 | 2 | 3 | null | 2022-12-27T15:33:52 | 2018-10-18T06:23:01 | Python | UTF-8 | Python | false | false | 5,978 | py | #------------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation.
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated document... | [
"itou@tdc-ict.co.jp"
] | itou@tdc-ict.co.jp |
4532ea4272c0db0940cd69b69a8782cafd161afd | 118a3b794d1e8d62221a16d36f0ff08338a84ca1 | /04Linear_Regression_MV/03-1.py | 90034bfd1b65167bc250b42e058a235249e3052f | [] | no_license | oppa3109/MyTutor_TF_SungKim | 22e1dc0e789a6eab24f37cf992bf7ea53721ede2 | 5880f3224547d1433edcd9b693762b1e9c0445c1 | refs/heads/master | 2021-01-23T07:25:48.940435 | 2017-09-29T06:25:06 | 2017-09-29T06:25:06 | 80,501,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | import tensorflow as tf
x_data = [[73., 80., 75.],
[93., 88., 93.],
[89., 91., 90.],
[96., 98., 100.],
[73., 66., 70.]]
y_data = [[152.],
[185.],
[180.],
[196.],
[142.]]
X = tf.placeholder(tf.float32, shape=[None, 3])
Y = tf.placeholder(t... | [
"byoungki.jeon@gmail.com"
] | byoungki.jeon@gmail.com |
34da4c02c5e9aef4bb76bf8ab68e179817b9db01 | 42a7b34bce1d2968079c6ea034d4e3f7bb5802ad | /ex3.py | da806348e797aa669ec5014ca90987dda6716f49 | [] | no_license | linpan/LPTHW | 45c9f11265b5e1ffe0387a56cec192fa12c6c4d5 | 227bfee3098e8ecb5f07ffc3a0b8e64a853106ce | refs/heads/master | 2021-04-26T13:42:56.859644 | 2014-12-18T15:21:14 | 2014-12-18T15:21:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | #! /usr/bin/env python
#coding:utf-8
print "I will now count my chieckens."
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
print "Now I will count the eggs:"
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 +6
print "Is it true that 3 + 2 < 5 -7 ?"
print 3 + 2 < 5 -7
print "What is 3 +2 ?", 3 + 2
print "W... | [
"shine_forever@yeah.net"
] | shine_forever@yeah.net |
d33c81f835ede07edefa28e45721b9fe3610bf9b | ca74496b2b53ecc8bad1fb895ff37fa096e319a5 | /backend/ServerlessApplication/tests/integration/test_deleteBucketItem.py | ff28adaed81e0aebd60501954596911c7727b280 | [] | no_license | COS301-SE-2021/Ptarmigan | a4f98cd7ff4011118828c1e2f3af50ccf7724954 | 71ebe6bea2912e6d70905dea5b18d0b5ca8268b0 | refs/heads/master | 2023-08-28T12:24:52.406997 | 2021-10-13T20:10:42 | 2021-10-13T20:10:42 | 369,604,842 | 3 | 1 | null | 2021-10-05T09:24:04 | 2021-05-21T17:13:35 | Dart | UTF-8 | Python | false | false | 844 | py | import json
from unittest.mock import patch
import pytest
import unittest
import requests
baseUrl = "https://localhost:3000"
def fixture_event():
return { "content" : "IBM" }
class Test_DeleteBucketItem(unittest.TestCase):
def test_Delete_Bucket_return_success (self):
api_url = "https://cn9x0zd937.ex... | [
"u18033882@tuks.co.za"
] | u18033882@tuks.co.za |
a4e9175d9ebdbf75f3903cdd5197dad03a4113e9 | 9c47fbb2761cc50b7b0be67decb20c377dd1d078 | /HackerRank/Python/Basic data types/finding-the-percentage-testcases/solution.py | b6a1da399d97474589f46398c9de2c6e14054b3a | [
"MIT"
] | permissive | IsFilimonov/Interviews | 782ec1f5d82373c20df0edaaeb56cfb0d493a9e7 | 3b9858f43ef6b7a2b5e565ef58406e4018edbf97 | refs/heads/main | 2022-12-12T13:16:25.750870 | 2022-11-30T11:31:38 | 2022-11-30T11:31:38 | 213,611,039 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | input00 = open("input/input00.txt", "r")
input01 = open("input/input01.txt", "r")
input00_list = input00.read().splitlines()
input01_list = input01.read().splitlines()
count_elements = int(input00_list[0])
dictionary = {}
for i in range(count_elements):
str_elements = input00_list[i+1].split()
dictionary[str... | [
"Filimonov_IS@mail.ru"
] | Filimonov_IS@mail.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.