blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5d497e34c6d852313063361b3beaa86632b1650 | 18d94ebd5eb0854340d0f4ce68c3a0c879f44d7e | /LinkedInCrawler/parameters.py | 2cdd0ccfdbeb5efde9e8af79f6fa4399a7aad9ef | [] | no_license | benjamincarney/EECS-Faculty-Salary-Predictor | c3d2a268847a377fecaab9885a815f01edd6f701 | 2a3efe01806c93f7cbdd8a4db22c31ed296101ba | refs/heads/master | 2020-04-24T19:54:21.149330 | 2019-08-14T16:41:44 | 2019-08-14T16:41:44 | 172,227,168 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | '''
Contains user information to login to LinkedIn
'''
# specifies the path to the chromedriver.exe
driverDirectory = 'C:/Users/Aaron/Desktop/ChromeDriver/chromedriver.exe'
# query = 'site:linkedin.com/in/ AND "University of Michigan" AND "Professor"'
query = 'site:linkedin.com/in/ AND "University of Michigan"'
# Use... | [
"balestaa@umich.edu"
] | balestaa@umich.edu |
d688346d4d087c2a6241963d45df681e1cd106b5 | a51fb785beb1fe70c9b1352ac24159d01061868c | /05-深入python的dict和set/04-dict_performance.py | 63cf01a087618bb5c08d3767a03a2abbfc7af58d | [] | no_license | zhagyilig/AdvancePy | f3cfe560919bd15760686b391d863d813781a867 | f98a8abb5898474a0f00d2d9856fd46713b65d82 | refs/heads/master | 2020-09-07T08:35:14.779826 | 2020-01-06T02:30:26 | 2020-01-06T02:30:26 | 220,724,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | # -*- encoding: utf-8 -*-
__author__ = 'ericzhang'
from random import randint
def load_list_data(total_nums, target_nums):
"""
从文件中读取数据,以list的方式返回
:param total_nums: 读取的数量
:param target_nums: 需要查询的数据的数量
"""
all_data = []
target_data = []
file_name = "fbobject_idnew.txt"
with open... | [
"zhagyilig@gmail.com"
] | zhagyilig@gmail.com |
8f835971103604fef87f915b2e98181e52cbf08a | 6a747c7daca848aa0f352fe2466dba249fa08eda | /customerapp/customerapp/wsgi.py | cfd56fbe00295ab7b1083b1ead3d7c3426c4d1fb | [] | no_license | sujabshrestha/customerapp | 229ae8a70f04be4402ed5470910dcb7a502cc950 | 74b31e34d895c2f06a6520b448a15b0092b7a50f | refs/heads/master | 2023-01-20T20:25:07.552808 | 2020-12-02T14:21:44 | 2020-12-02T14:21:44 | 317,863,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for customerapp 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ssujab9@gmail.com"
] | ssujab9@gmail.com |
5072fa236fc47cf8d3722ba3b44e8dfdd85b3df4 | 11ed61997e14cac429dc5fe76b1de8f17e457a99 | /lab1/task1.py | c6781343573519b3ffc36489b2eaa93760b9485a | [] | no_license | 4jeR/wfiis-python-in-the-enterprise | 0215cf9e005665a3bee5eb5f4eb407ea5991ef02 | 8c32e0e5651c4d34bd3ab65f87564a65b38ac9af | refs/heads/master | 2023-01-13T21:35:40.371763 | 2020-11-16T18:33:41 | 2020-11-16T18:33:41 | 304,587,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | # Write a module that will simulate autonomic car.
# The simulation is event based, an example:
# car1 = Car()
# car1.act(event)
# print(car1.wheel_angle, car1.speed)
# where event can be anything you want, i.e. :
# `('obstacle', 10)` where `10` is a duration (time) of the event.
##The program should:
# - act on the ev... | [
"bdlugosz98@gmail.com"
] | bdlugosz98@gmail.com |
035d3b7ecfd085642724be6fbf2d04839d3ff812 | 4c68186ef1c4cb184e4b09192bff080ea8f7bf57 | /ERROR:print odd num.py | 2651d3dd4c74f71b358a65f9fd3f5e55456f1137 | [] | no_license | neelakandan1905/python | e70c12d45a7c32be9787c85551c5647b90141bad | 75b23c751f22f763b1c881b0c83e32a83a9683f4 | refs/heads/master | 2021-06-23T01:28:47.828267 | 2021-04-09T12:09:13 | 2021-04-09T12:09:13 | 211,134,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | n= input()
l=list(n)
c=0
for i in l:
if int(i)%2!=0:
print(i,end=" ")
elif int(i)%2==0:
c=c+1
if len(l)==c:
print(-1)
| [
"noreply@github.com"
] | noreply@github.com |
7f470f8bf2a672988fc108db926df5c8295a3df2 | d2dd15ebf96c0ded11666998d7e3b8c2251adf75 | /roles/blueprint/templates/PushBlueprint.py.j2 | fed4f22c2ed6191cd1105bbc8504cac8da760bfa | [] | no_license | borgified/ansible-hadoop | 98e9e24631aa826350a62b0227fe6902b65edd18 | 00508df9be33cf50853b157bf865d1ddef50dea6 | refs/heads/master | 2020-11-30T10:54:07.132488 | 2014-09-23T10:01:08 | 2014-09-23T10:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | j2 | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | [
"monoliv@gmail.com"
] | monoliv@gmail.com |
f51dc8e865ace127ea3dc8e354921dc11e914eae | 0c69d52c02923d896855be6df48d63eb7c1d8a2f | /counting_quad_sorts.py | 48704861b8b3601d258228d8326a214d36946367 | [] | no_license | bzia/Complexity-Visualizer | d2e5c196cc17377a7539b9b7c323ee0627e363dd | e34654728c2869ca4b775e9aa5f9676c43642b4d | refs/heads/main | 2023-04-24T05:27:20.380688 | 2021-05-04T16:37:46 | 2021-05-04T16:37:46 | 325,883,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | """
This module contains four sorting algorithms which
can be used in other models to generate empirical data.
"""
def bubbleSort(items):
"""
Orders the items from lowest to highest value
Parameters: items - list to be sorted
Returns: count - number of times the loop has been iterated
"""
... | [
"noreply@github.com"
] | noreply@github.com |
c2506ad3b81d0b1849f86465fdfb65d22aeedc52 | 293e76be374728f72c89019b0274cf0755629e95 | /feature graphs.py | 3ed91b771740f2afd9b55c97c112cd2eb910801a | [] | no_license | Hudki/Noise-Pollution-Classification- | a206915015d5229af486219ea1e26c38291fbf5d | 6a4928f89aaca43b6872129670987dcee3697cf2 | refs/heads/master | 2020-06-16T19:31:42.430749 | 2019-12-04T00:04:20 | 2019-12-04T00:04:20 | 195,679,415 | 1 | 0 | null | 2019-08-07T17:45:24 | 2019-07-07T17:32:38 | null | UTF-8 | Python | false | false | 2,008 | py | import librosa
import matplotlib.pyplot as plt
import numpy as np
import librosa.display
y, sr = librosa.load('output.wav')
librosa.feature.melspectrogram(y=y, sr=sr)
librosa.feature.mfcc(y=y, sr=sr)
librosa.feature.chroma_stft(y=y, sr=sr)
D = np.abs(librosa.stft(y))**2
S = librosa.feature.melspectrogram(S=D, sr=sr)
... | [
"42683289+Hudki@users.noreply.github.com"
] | 42683289+Hudki@users.noreply.github.com |
851bc6989765017b016ae4c617aace38f8d4ff45 | e67fa22b0193dca6809a15fa67a84f1d2ba27cf5 | /src/map_conf_cities.py | a6696409d84aef360dfb31186ab2b88326a54f33 | [] | no_license | kientz/If-you-host-it-will-they-come | 6c8f7bfee8e8ce6cee60c4ba00ab93fbd5690645 | 6e86204c3c56709d0abd9d8ded0241f5fc22cb54 | refs/heads/master | 2021-01-23T12:48:47.881358 | 2017-06-16T19:25:42 | 2017-06-16T19:25:42 | 93,201,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,143 | py | import folium
import pandas as pd
import numpy as np
from set_region_and_super_region import define_regions
# float_formatter = lambda x: "%.1f" % x
# np.set_printoptions(formatter={'float_kind':float_formatter})
superregions2, superregions, regions, regions2, state_to_code, code_to_state = define_regions()
srg=pd... | [
"kientzsm@gmail.com"
] | kientzsm@gmail.com |
573ab5c65291d81f2a1a2ccb6ae82183b69edb20 | baf592c7483656ca8270472c4b90d4a9f250882f | /Lib/site-packages/redis/connection.py | 8329cf6570b96b123a05391caa357ff4785a71d6 | [] | no_license | LuisACC/test2 | 10c0873df197a564506804abc246987e53d51943 | c910c7cda7d7602e84ad314b4f5a35b1219828b8 | refs/heads/main | 2023-03-23T00:16:47.536965 | 2021-03-12T11:06:03 | 2021-03-12T11:06:03 | 347,027,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,954 | py | from __future__ import unicode_literals
from distutils.version import StrictVersion
from itertools import chain
from time import time
import errno
import io
import os
import socket
import threading
import warnings
from redis._compat import (xrange, imap, unicode, long,
nativestr, basestring,... | [
"l.a.casas685@gmail.com"
] | l.a.casas685@gmail.com |
58bdf0804bc8b7ad982f2eb35cec240b9a395eb9 | cb4be2d145c529192cad597ebf6bba8aed0ec12e | /2014-x64/prefs/00_important/mec_shelf_loader/shelves/00_Trash/noske_marc_riggingtools_cri1_1405.py | f8c8ae94094ed2cfba76c6061d8544926d1870cf | [] | no_license | mclavan/Work-Maya-Folder | 63e791fdbd6f8ac1f4fda2d46015cd98df38825c | c56dbdb85a7b1a87ef6dd35296c56e0057254617 | refs/heads/master | 2020-05-20T07:21:15.891179 | 2014-10-17T14:28:45 | 2014-10-17T14:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,440 | py | '''
Lesson - Joint Renamer
rigging_tools.py
Description:
Practical use of loops.
Renaming joint based upon a naming convention.
How to Run:
import noske_marc_rigging_tools
reload(noske_marc_rigging_tools)
'''
print 'Rigging Tools Active'
import pymel.core as pm
def hierarchy():
'''
Create a hierarchy basd u... | [
"mclavan@gmail.com"
] | mclavan@gmail.com |
075dc5ac96d9959d8b37233b21e8f77234e9c826 | e9b5916013c2e3fc0ef91d505f4b8db3778e97e5 | /Where_is_the_ISS.py | 887e085004080f70fe5faf68b4f1535d67a8ccee | [] | no_license | Robin-van-Schendel/Stuff | 039ea55c5dbadfa6e0978d45d97de17afea475c5 | 9e2d74a98ffa5d79e7796e161542df3d7eaa5f04 | refs/heads/main | 2023-06-20T00:51:43.946230 | 2021-07-19T00:19:03 | 2021-07-19T00:19:03 | 380,754,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 19 01:04:32 2021
@author: Robin
"""
""" We are going to do a little python project here for fun. It's based on this
Youtube video (https://youtu.be/R6CCTuHast0) and involves pandas and plotly.
We are going to use an API and we are going to plot on a map the actu... | [
"noreply@github.com"
] | noreply@github.com |
1f5282f0900b7d72c28cfe9b137fc1ed048289da | dd17f48dbfd60a775730c9ceab4e38331f3ab04e | /main_bonus.py | d3ac9fb3108f436e04afe21060af32e541c3b1ff | [] | no_license | KPI-Sense/intern-take-home-assessment | 3bf03fe8cc2a69abdcc4c7e45b5dc4c3e0d2a40f | 99b4130ef7007b15ec95fa08aba1839490eccd3b | refs/heads/master | 2022-11-02T03:30:29.012566 | 2020-06-18T19:50:05 | 2020-06-18T19:50:05 | 269,168,515 | 0 | 0 | null | 2020-06-18T19:50:07 | 2020-06-03T18:49:12 | Python | UTF-8 | Python | false | false | 1,778 | py | import xlrd
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import numpy as np
from textwrap import wrap
import pandas as pd
from datetime import datetime
from datetime import timedelta
import getopt
import sys
from openpyxl import Workbook
import openpyxl
xl = pd.read_excel('demo_model.xlsx', sheet_... | [
"noreply@github.com"
] | noreply@github.com |
045eaa1ba5008040aa5cfb9cf8fdb29a4824d58b | ba9f1dfad6df7946f1dff62f42b8cca465a9d6a8 | /PEuler_076.py | 4ae4dd35459e19dc9b76d58f1b9571325877ab12 | [] | no_license | Concarne2/ProjectEuler | 7148e54ec74683d7a6ff3aeb41f4dfbc31386fe3 | 8fa87f3c0e59b730edc11272ef04790173e6a831 | refs/heads/master | 2020-07-21T14:46:04.140951 | 2019-09-07T01:42:45 | 2019-09-07T01:42:45 | 206,899,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | results = [0,0,1,2]
def nextResult():
n = len(results)
ways = results[n-1] + 1
for i in range(2,n//2 + 1):
ways += results[n//i]
results.append(ways)
ways = [1]
for i in range(1,101):
ways.append(0)
for i in range(1,100):
for j in range(i,101):
ways[j] += ways[j-... | [
"peter.y.kim98@gmail.com"
] | peter.y.kim98@gmail.com |
623c325e61835a7b871177b94263a55960e72177 | a9f517df3af78a18c79b92a25fce3f676e2597c0 | /ckanext/ytp/comments/logic/auth/delete.py | e14918d608183f1dac79de377ce7dadad2f71a20 | [] | no_license | nvgiambruno44/ckanext-ytp-comments | d3f70e261badb634013ed585444d240cd869c64f | 0dd9069ed564076b850366bb37136436be9079da | refs/heads/master | 2020-08-05T19:14:48.284385 | 2019-10-03T20:22:43 | 2019-10-03T20:22:43 | 212,672,045 | 0 | 0 | null | 2019-10-03T20:18:43 | 2019-10-03T20:18:43 | null | UTF-8 | Python | false | false | 622 | py | import logging
from pylons.i18n import _
from ckan import logic
import ckanext.ytp.comments.model as comment_model
log = logging.getLogger(__name__)
def comment_delete(context, data_dict):
model = context['model']
user = context['user']
userobj = model.User.get(user)
cid = logic.get_or_bust(data_dict... | [
"jari.voutilainen@iki.fi"
] | jari.voutilainen@iki.fi |
fb92dd9b2f76b302c782a0613c06b023634ee190 | f391e9b02730cf61c19d53423ab861b252691a07 | /manage.py | 04e547904b2845ddb906df1e889b2916ab9f2db2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Bogdanp/django_dramatiq_example | 7eb7b6f92c73aacb93b7bf964e437faad35dc5fd | 07b00b70233b7fb7eb72c1766f0d73ba68f08d17 | refs/heads/master | 2022-11-05T00:05:54.944946 | 2018-01-06T10:54:28 | 2018-01-06T10:54:28 | 109,243,253 | 34 | 4 | NOASSERTION | 2020-06-23T09:59:59 | 2017-11-02T09:23:55 | Python | UTF-8 | Python | false | false | 821 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_dramatiq_example.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. ... | [
"popa.bogdanp@gmail.com"
] | popa.bogdanp@gmail.com |
c19ba77da1e470b244cb2d31ae64f6e5753bc812 | 5b4529582c9e1c6d832387672cc295e775cdd39a | /day04/统计.py | 66008caaeaf6780c5aaa4f09e36c9d21f593a831 | [] | no_license | gitxf12/demotest | 8ccbc7f050eaefb96a6399171e103495371f403a | 5d4807d7e3a4e869038ceb1f08356d0caf40f6f5 | refs/heads/master | 2023-04-21T06:16:00.368012 | 2021-05-31T08:37:08 | 2021-05-31T08:37:08 | 359,756,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | List = [1,4,7,5,8,2,1,3,4,5,9,7,6,1,10]
i=0
while i < len(List):
a = List.count(List[i])
if a > 1:
print(List[i],"重复了:",a-1,"次")
i=i+1
| [
"sxfeng92@163.com"
] | sxfeng92@163.com |
53bc1a13640e400a6b5db1007807747461441931 | 7fffc39739869f259fe2d103efa05b87739778d1 | /Python/3021.py | 0f36f7063cfd086de49ec99c21fa25ca058daed7 | [] | no_license | yunbinni/CodeUp | be39b3bd9fbeaa64be2a77a92918ebcc79b1799b | 5cb95442edb2b766de74154e0b91e8e1c236dd13 | refs/heads/main | 2023-08-15T19:02:29.819912 | 2021-10-12T00:50:16 | 2021-10-12T00:50:16 | 366,761,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | """입력 및 초기화"""
a = '0'+input()
b = '0'+input()
stack = []
oneNum, tenNum, sum = 0, 0, 0
res = ''
"""계산부"""
if len(a) >= len(b):
b = '0'*(len(a) - len(b)) + b
else:
a = '0'*(len(b) - len(a)) + a
# 숫자 뒤집기
a = a[::-1]
b = b[::-1]
loopNum = len(a) if len(a) > len(b) else len(b)
for i in range(loopNum):
sum ... | [
"yunbin9049@gmail.com"
] | yunbin9049@gmail.com |
ba30f17076ec8a6204953eed47762879a99d80e6 | 60a3353c5c497cae6092ead3d81c4e908d86d1b4 | /m-solutions/euclidean.py | 437f848fce6891f81828fc8cfa60179375f902c5 | [] | no_license | kt8128/atcorder | a60dee4b727292506281e512a176454a16b27481 | f7f61c8e25db73d725d9f87b655f9e46daf0c36e | refs/heads/master | 2020-08-27T19:03:59.451172 | 2020-01-13T02:16:15 | 2020-01-13T02:16:15 | 217,466,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import sys
import pandas as pd
import math
args = sys.argv
d, d_prime = int(args[1]), int(args[2])
x, x_prime, y, y_prime, q = 1, 0, 0, 1, 0
df = pd.DataFrame([[d, d_prime, x, x_prime, y, y_prime, q]], columns=["d", "d_prime", "x", "x_prime", "y", "y_prime", "q"])
while d_prime != 0:
d_prev, d_prime_prev, x_pre... | [
"auiiiiiehhh@yahoo.co.jp"
] | auiiiiiehhh@yahoo.co.jp |
1677e59cd251670e285e829e2b42e65aabc776e2 | 43bb2144abf954a42995ea84ea1a71c2483ac3db | /django/api/appclassdash/urls.py | 0ea37291a17122b15ab8ba053212d7be0073b041 | [] | no_license | classdashapp/ALLClassDashServerFiles | d281464f0da715628f9d4f8f9a69ba1016734fa8 | dd05531b7422ca4e254de8841af7fffc71f006db | refs/heads/master | 2020-05-17T11:07:58.030951 | 2019-04-26T18:36:49 | 2019-04-26T18:36:49 | 183,676,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from django.urls import path
from rest_framework import routers
from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from .views import InterestViewSet, UserViewSet, CourseViewSet
from rest_framework.authtoken.views import obtain_auth_token
router = routers.Defaul... | [
"fhorn97@gmail.com"
] | fhorn97@gmail.com |
531e12ee91b3b3cc63baa365562d4af6120eef6c | 09eeb8352feb8a59574dc58d894b986575e78e5d | /packaging/myproject/pkgB/B_feature.py | 15fe78cd476250c0af84dc889c7a5c79e411bfb7 | [
"MIT"
] | permissive | TxuanYu/packaging_practice | 5d03f85ede49020ddeabf48724297db3d834e39a | 4f62953bdac18f542e216b429e4e70e892ee8f6b | refs/heads/main | 2023-04-03T11:56:58.183888 | 2021-03-29T05:14:37 | 2021-03-29T05:14:37 | 352,520,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | def nice_test():
print('B')
if __name__ == '__main__':
nice_test() | [
"hohahi0@gmail.com"
] | hohahi0@gmail.com |
0c8ed463b89362b26c7aa74053162692a31bf33a | d877e1f98f907fa8556138265f0b7fb224639323 | /discusProject/asgi.py | 97806e780bcaa5c1a5456192c1da9c4195a0e3b8 | [] | no_license | MuflikhunovRR/discusProject | 2034867b8423b8713fc29b876f30f287e338e09f | 8fb9f568c7984f8b8f1184106d1518aeb794334e | refs/heads/master | 2023-04-27T13:38:07.857764 | 2021-05-14T12:01:09 | 2021-05-14T12:01:09 | 367,331,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for discusProject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"Muflikhunov.R.Ra@sberbank.ru"
] | Muflikhunov.R.Ra@sberbank.ru |
abbc97914297519c3d4d2f494cb8a8fe7b094b5f | a1ef11a1861bc94495f5cc1bc0de2355080f5c3f | /19/19_2.py | 6784acc25b51363b757cce9704b7a6d1da4b99b7 | [] | no_license | womogenes/AoC-2020-solutions | 85208d1a2b24daf299150a40056fe9cb3c52355d | 72c4673a24c1d06d8f385536f1881c9202991d10 | refs/heads/main | 2023-02-08T01:03:30.384345 | 2020-12-25T19:20:10 | 2020-12-25T19:20:10 | 318,245,689 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | import re
from functools import lru_cache
from pprint import pprint
with open("19_input.txt") as fin:
data = fin.read().split("\n")
# Variable to keep track of rules
rules = {}
# Get all the rules
line = 0
while data[line] != "":
number = int(data[line][:data[line].index(":")])
rule = data[line][data[lin... | [
"williamfeng1729@gmail.com"
] | williamfeng1729@gmail.com |
47f9a655abcd4d887051fc29d68c0b3f18df2950 | 18ca91dcce6f15e761c1ccae7a7fde5dc6ee93d3 | /spec/interpreter/interpreter_spec.py | 04c5458826ccaf59a801a20fc96874c5af6b7b34 | [] | no_license | IgnusG/H4ck3rs-D3l1ght | cc6e2f02b4d67a877259f43012fe7b9ff91101a7 | cadbe2842910885502c355a6269ee281bbcf334a | refs/heads/master | 2020-04-06T06:57:34.583845 | 2016-08-04T22:30:37 | 2016-08-04T22:30:37 | 64,971,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import unittest
from interpreter.interpreter import Interpreter
class InterpreterTest(unittest.TestCase):
def setUp(self):
Interpreter.reset_storage()
def test_interpreter_basic_output(self):
user_input = 'HD! HD! HD='
self.assertEqual(Interpreter.run_interpreter(user_input), '2')... | [
"ignus.gracia@gmail.com"
] | ignus.gracia@gmail.com |
68765f3d71df3158760cd4cdd1511398f5249306 | e1b0baf821459cc58ad7e562ed59a2c18538f5d6 | /02_variables.py | 88cac0703aecb141fc88550754061815876ac408 | [] | no_license | Moses-Mumo98/Python-Basics | 57a8a5df7f8a973093ecb1fd5b333633e9fbb0d4 | 2c65123cc6a9977abd6746a761b2efb986bafdea | refs/heads/main | 2023-05-09T01:47:39.599003 | 2021-06-01T17:39:23 | 2021-06-01T17:39:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # what is a variable - named containers used to temporarily store data in the computers memory
# declare a variable;
# reassign a variable
# float
# string
# boolean
# define appriopriate variables from the folloing line
# check in a student named John doe
# He is 21 years old and is a new student
# gett... | [
"barakamulumia@gmail.com"
] | barakamulumia@gmail.com |
88a2924f6e0807ecffd10efb725949441bceb4fa | cfd493f1c1908b0c4b339da60e2453eec15bcdbb | /packages_ext_ws/build/universal_robot/ur_driver/catkin_generated/pkg.installspace.context.pc.py | 4b12042306581e950751fe8171f7862fe8861eb3 | [] | no_license | skypap/projets_ros | bc95e3baff468febba8169bd6375ed56d74a86df | 66f00307ffcf96141027752f287f57e16ade5e57 | refs/heads/master | 2021-05-16T14:11:58.086748 | 2018-01-29T22:32:06 | 2018-01-29T22:32:06 | 118,060,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/maxime/projets-ros/packages_ext_ws/install/include".split(';') if "/home/maxime/projets-ros/packages_ext_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure".replace('... | [
"maxime.papillon.1@ulaval.ca"
] | maxime.papillon.1@ulaval.ca |
90200eb35d16e47548cb09c81a083e16a412daf5 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /otp/uberdog/RejectCode.py | 4676d7c5bbdcf662d24bc3867799ee2d361bf35e | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | # 2013.08.22 22:15:51 Pacific Daylight Time
# Embedded file name: otp.uberdog.RejectCode
class RejectCode():
__module__ = __name__
TIMEOUT = 65535
NO_GUILD = 10000
MAY_NOT_JOIN_GUILD = 10001
MAY_NOT_INVITE_GUILD = 10002
NO_MEMBERSHIP = 10003
GUILD_FULL = 10004
LEAVE_CURRENT_GUILD_FIRST... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
b3fd148f25d0931228a52e238f31c93d73495d1a | 95fa704c0e2809bb7f740a79828eedaec7cffe05 | /Wrapper/MapFunctions.py | a59246b03e6d8eeb2d230c87aad60bf92e704165 | [] | no_license | jgontrum/GeoTweetEstimator | 03a9dccb49a3577fdc21c28cfa00ac2b3ad75850 | a4e5c6cdef1b0c377d6bcf318c14b907829dda93 | refs/heads/master | 2020-12-28T21:51:41.776151 | 2015-10-17T13:49:22 | 2015-10-17T13:49:22 | 34,210,768 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Johannes Gontrum <gontrum@uni-potsdam.de>'
# Use this if there is no X-Server availible, e.g. this script runs on a cluster
import matplotlib as mpl
mpl.use('Agg')
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
"""
This wrapper ma... | [
"johannes.gontrum@uni-potsdam.de"
] | johannes.gontrum@uni-potsdam.de |
c63312dedb59f427503f31e21b0dc9fc56c7ba3d | db4157453ae65b6679809e8298dd63576387de9e | /scikit_learn_morvan/skl_4.py | 848363a3f14e0e6b482f1eb807eeb259679ddb8f | [] | no_license | TanMengyuan/Machine_Learning | c0a24471b4408c1677aa11107ec107645f9cc79c | 9581a6a1beb5060b5a5c8530706a8ce3a6520c2d | refs/heads/master | 2020-05-27T19:27:44.609118 | 2019-11-18T13:36:58 | 2019-11-18T13:36:58 | 170,133,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from sklearn import preprocessing
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.datasets.samples_generator import make_classification
from sklearn.svm import SVC
import matplotlib.pyplot as plt
# a = np.array([[10, 2.7, 3.6],
# [-100, 5, -2],
# [120, 20,... | [
"tanmy1016@outlook.com"
] | tanmy1016@outlook.com |
fb2f9f6c456de289f09f1b7a377ac669354429f8 | 6b35764647da66746818da584b9a058c838b98eb | /ble/projects/bookreview/app.py | e8de149b2b332854704508b475c0d3c43370eca7 | [] | no_license | seon0522/front_study | fa16ad6806c6b789b6d343a9cdcf5db3665e1a8e | 613f2cedd68abe3e6c3e2159739c08209020e476 | refs/heads/main | 2023-06-24T22:01:12.206324 | 2021-07-22T04:39:31 | 2021-07-22T04:39:31 | 374,309,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from flask import Flask, render_template, jsonify, request
app = Flask(__name__)
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.dbsparta
## HTML을 주는 부분
@app.route('/')
def home():
return render_template('index.html')
## API 역할을 하는 부분
@app.route('/review', methods=['POST'])
d... | [
"iabc0005@daum.net"
] | iabc0005@daum.net |
c2bde3703edd788b56bd303b9772777a3ab417c1 | c0df141c1e4cd2fc7148c88526c24099d994bb8a | /LinearRegression.py | 0531745cf64cc5d0beb55085d9c0534b2ccca200 | [] | no_license | Solony/MachineLearningDemo | 41c75986d18eaf2dc23ac3e04b315a0952ee53e7 | ec37a227384e8fec50e60f70249a20d26cacb1dc | refs/heads/master | 2021-07-17T04:39:34.736943 | 2017-10-20T03:07:52 | 2017-10-20T03:07:52 | 107,617,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | import numpy as np
import matplotlib.pyplot as plt
X = np.linspace(0, 10)
#inline method y = x
f = lambda x: x
#Turn f into numpy thing
F = np.vectorize(f)
Y = F(X)
#init dataset
num = 100
random_sign = np.vectorize(lambda x: x if np.random.sample() > 0.5 else -x)
data_X = np.linspace(1, 9, num)
data_Y ... | [
"noreply@github.com"
] | noreply@github.com |
43560555f43f44b5b8ef4fe21a2f9d054e2ff43d | 2fd40155f0b7efce82ea87711db3b790aa7bb99e | /call_job.py | 3b26eb555841609295156c7e3c5cbb4c23fb68ee | [
"MIT"
] | permissive | breecummins/dsgrn_net_gen | 3c743ecbe173f33e129f8d865cf4af0001e11726 | bcd77b71ad3e311d2906f0af986559d2c54ffe6d | refs/heads/master | 2021-12-27T02:19:38.054600 | 2021-09-23T18:58:16 | 2021-09-23T18:58:16 | 251,466,654 | 1 | 0 | MIT | 2021-04-13T19:17:15 | 2020-03-31T01:09:42 | Python | UTF-8 | Python | false | false | 107 | py | from dsgrn_net_gen.makejobs import Job
import sys
paramfile = sys.argv[1]
job = Job(paramfile)
job.run()
| [
"breecummins@gmail.com"
] | breecummins@gmail.com |
caa80222721a93370d33ce36be40304194ab3e32 | 7c99880c8014f090ec5694e14276211284bf4220 | /backend/wallet/migrations/0001_initial.py | f0061f9d57752af31404c778f37cb7a132166de7 | [] | no_license | crowdbotics-apps/selekni-24543 | bf1e087ae15fd7c99f02b89ba50d79c1e03b189c | f740a5dcf449ac7180e50bf2979a882a8d4353b3 | refs/heads/master | 2023-03-04T23:59:38.938220 | 2021-02-16T20:03:28 | 2021-02-16T20:03:28 | 339,158,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,258 | py | # Generated by Django 2.2.18 on 2021-02-15 19:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("task_profile", "0001_initial"),
("task", "0001_initial"),
]
operations = [
mig... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b38ff14e2876add3596c10fc062f2902405b898e | dcf9a7aeaddc876530e8f28fd17130f8859feda9 | /pymatflow/cp2k/base/motion_driver.py | f3e40b94ad64f31523d19937480656281410f41c | [
"MIT"
] | permissive | DeqiTang/pymatflow | 3c6f4a6161a729ad17db21db9533187c04d8f5ac | 922722187e2678efbfa280b66be2624b185ecbf5 | refs/heads/master | 2022-05-25T19:41:19.187034 | 2022-03-05T03:07:08 | 2022-03-05T03:07:08 | 245,462,857 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
# ========================
# CP2K / MOTION / DRIVER
# ========================
class cp2k_motion_driver:
def __init__(self):
self.params = {
}
self.status = False
def set_params(self, params):
for item in params:
... | [
"deqi_tang@163.com"
] | deqi_tang@163.com |
626a52bc6976c92a5a598edb3e2ca4eaf21e0e9e | d4296be903796d6edbbd59b863ff4d45aa03ad36 | /day18/day18.py | 3089dd6aefa1307224b8d8920deaf073494f49ce | [] | no_license | yamnikov-oleg/aoc2020 | e534edcb64109f68f903e1b66d7b73151ae5364e | 0ad20f4db5b79a38e53364117dfda6787c6259f5 | refs/heads/master | 2023-02-05T03:08:54.390805 | 2020-12-27T14:46:05 | 2020-12-27T14:46:05 | 318,168,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,595 | py | from enum import Enum
import re
from dataclasses import dataclass
from typing import List, Tuple, Union
class Expr:
"""
A base class for an evaluatable expression.
"""
def eval(self) -> int:
raise NotImplementedError("eval")
@dataclass
class LiteralExpr(Expr):
"""
A number literal. E... | [
"oleg@oyam.dev"
] | oleg@oyam.dev |
eb41129ed3f7057d5cc5083bb4c41750be22ebc3 | 979dbbef0b9818d4b950f42ee7d7c0ff0d515617 | /epitools-env/bin/pip3.8 | ea2258fe562378939df7d3d60b46e371f7db2bc7 | [] | no_license | adjovichancel/EPITECH-DOCUMENTATION | 86f6b767162f194d92f53144d01ccde77455653f | b4a13592ef6679117271fef16f2e16ccdbf3ae36 | refs/heads/master | 2022-12-09T14:37:59.591845 | 2020-09-23T21:42:16 | 2020-09-23T21:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | 8 | #!/home/blacky/github/EPITECH-DOCUMENTATION/epitools-env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hamidtessilimi@gmail.com"
] | hamidtessilimi@gmail.com |
cdbb1dc82dac13f36383f179e2df457c3bf5a1b1 | 5a1e1756025bacae88b619d388ebf61b330001ab | /1.Class/Language_Python-master/Language_Python-master/LC25_1_IPaddressChecking.py | 7e82ec909b2bbe4f4feb7d208d5df661e74ba574 | [] | no_license | reshmaladi/Python | d1953497703aa15e163cd8ac27be23e3e5c3e947 | 8e9092af63476fef35d221e20acf418983957e53 | refs/heads/master | 2021-10-15T00:55:08.136039 | 2021-10-01T14:32:16 | 2021-10-01T14:32:16 | 165,836,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py |
import re
def checkip(ip):
pattern = re.compile("(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})")
k=re.match(pattern,ip)
type=k.group(1)
print(type)
type = int(type)
if(int(k.group(2))<256 and int(k.group(3))<256 and int(k.group(4))<256):
if(type<127 and type>0):
print("Class A")
elif(type<192 and type>127):... | [
"reshma.ladi@gmail.com"
] | reshma.ladi@gmail.com |
e4fc443083d31d36d7520fafdf282e4d77b2f4e4 | 3df322b2e1ed2b63ee5cd6903a602010ba99d801 | /sniffer/tests/scent_file.py | af43f2f6fc5c9705a258521c03b4d33f665d87db | [
"MIT"
] | permissive | walnutgeek/sniffer | a76799aa31921a8bd2f15c5376fe2cd2da3d5683 | 5b462f61aa39972c42d14af4ff6b1f3f69658b47 | refs/heads/master | 2020-06-04T10:26:20.347812 | 2019-06-14T17:48:25 | 2019-06-14T17:48:25 | 191,983,870 | 1 | 0 | MIT | 2019-06-14T17:43:55 | 2019-06-14T17:43:54 | null | UTF-8 | Python | false | false | 386 | py | from sniffer.api import *
@select_runnable('execute_type1')
@file_validator
def type1_files(filename):
return filename.endswith('.type1')
@select_runnable('execute_type2')
@file_validator
def type2_files(filename):
return filename.endswith('.type2')
@runnable
def execute_type1(mock, *args):
mock('type... | [
"hansel@interpretthis.org"
] | hansel@interpretthis.org |
7daf6a04365cbddc656882e3c00036eba767ca17 | 2dd224df341afd0d10e08024dc53197944ea2df9 | /datacollectvenv/Scripts/django-admin.py | 1e640b005e370c8d78f6c771e14cae2f3b6f487b | [] | no_license | c0pper/datacollector | fc319735c0a8e5e4df590b70ff5b25819f569ef1 | 798548d7b045771335ca87b3e250cbc169ecf34c | refs/heads/master | 2023-06-09T01:02:09.583650 | 2021-06-27T20:42:01 | 2021-06-27T20:42:01 | 380,715,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #!c:\users\simon\pycharmprojects\django data collector\datacollectvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"93simonster@gmail.com"
] | 93simonster@gmail.com |
2341e1ce655b42e820e7cb430efa637bb46d886a | 409b87a4f3b77e929d84f140d9574e28c00ed9ec | /06-Condities/Test.py | b3d51bc8cad9e661f346bef5a111f392aa3d7db5 | [] | no_license | WoutVdb19103/Informatica5 | d16f76f308ecd95e5c1339e0b3f5be50e07d0e08 | 7d127e54b01a6dcac33907c346c1c360a07fa019 | refs/heads/master | 2020-03-28T03:19:03.832752 | 2019-05-23T08:05:59 | 2019-05-23T08:05:59 | 147,637,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | leeftijd = int(input('leeftijd: '))
if leeftijd > 16 and leeftijd > 21
print('Drink met mate.')
elif: leeftijd > 16:
print('Wel pintje, geen sterke drank')
else:
print('Alcohol verboden!')
| [
"wout.vandenberghe@sgsintpaulus.eu"
] | wout.vandenberghe@sgsintpaulus.eu |
85f8c276c3f225a7b4195c6f3beabc4213a234ba | f888669dcf1ae6c6a25235c49ccb67333163b7f2 | /korpokkur/scaffolds/pygitignore/__init__.py | 9527f58b84b5b1659f7f3ff9417039e7cf668b02 | [] | no_license | podhmo/korpokkur | dd50f6df9b7659ab70b8dcde809fb50ebc848d40 | 9bf4cb6ca6fa3ec45fe1820282345e78268b396d | refs/heads/master | 2020-07-04T07:03:29.605665 | 2016-10-01T14:04:09 | 2016-10-01T14:04:09 | 19,282,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # -*- coding:utf-8 -*-
from zope.interface import implementer
from korpokkur.interfaces import IScaffoldTemplate
import os.path
## see: korpokkur.interfaces:IScaffoldTemplate
@implementer(IScaffoldTemplate)
class Package(object):
"""tiny python package scaffold (this is sample)"""
source_directory = os.path.j... | [
"podhmo+altair@beproud.jp"
] | podhmo+altair@beproud.jp |
179a1ab778d5951e027a1585095e9502fc057b84 | 3f6187741f631db0f43865b0029397324e1bd190 | /Script1.py | 2b0edc2b8a93e02b6a65a97cc985006853467c04 | [] | no_license | petervdl112/selenium | 9067cf614263aafa934ea400304ba1b2487ad27c | f8eee9a82a364bba5d3ec008b9df2c77529ddefa | refs/heads/main | 2023-08-11T17:12:56.084169 | 2021-09-15T19:05:20 | 2021-09-15T19:05:20 | 400,483,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys #om enter etc. door te kunnen geven
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
#1e video on selenium TechW... | [
"PvdL@iMac-van-Peter.local"
] | PvdL@iMac-van-Peter.local |
bfdea5090dfe44846995ad0ad8fc2a19c97373c8 | 6d8cc1eeb320988a9e8e9047e6cd403600361257 | /manipulator_grasping/src/grasp_demo_3.py | 9891d2217e57dda760b8347052151f832699859b | [] | no_license | SalahEddine1919/mov | de3ce43a2e0fc2dc7d7e66a81d6730df23c663d4 | 7c5d6ce72df563bb88dfd42ac7b949c8b2ed0682 | refs/heads/main | 2023-04-28T16:00:32.041816 | 2021-05-21T09:29:08 | 2021-05-21T09:29:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy, sys
import moveit_commander
from control_msgs.msg import GripperCommand
class MoveItFkDemo:
def __init__(self):
# Initialize the move_group API
moveit_commander.roscpp_initialize(sys.argv)
# Initialize ROS node
... | [
"noreply@github.com"
] | noreply@github.com |
8147e3887f21a7dd5c37cf59f704ec8811f0a409 | c4ad1f2a6c1bc6cfc22c57a70035444340244854 | /snippet_converter/__init__.py | 074e3b044258b8d49dbb4542c2cf2a5a52f9c06e | [
"MIT"
] | permissive | pr4shan7/snippet-converter | 646598f765deb6edb13b05dc8816d5a5ac251ebd | ac9f29bc7a723b7f2bcbdf6fca4cbdee02526d5e | refs/heads/master | 2022-12-21T23:21:17.728089 | 2020-10-02T11:40:57 | 2020-10-02T11:40:57 | 263,321,787 | 0 | 1 | MIT | 2020-10-02T11:40:59 | 2020-05-12T11:49:57 | Python | UTF-8 | Python | false | false | 107 | py | from snippet_converter import setup
from snippet_converter import sublime
from snippet_converter import cli | [
"pr4shan7@gmail.com"
] | pr4shan7@gmail.com |
450ace0a062d76157a65deb0ea308b6eada98826 | 118371a66a1649bf515712f66ae96e15a4443171 | /util.py | 472f745fa7cd04ecc6077843ce2471e146f61757 | [] | no_license | sodiffi/hot_source_server | 82dd8e721d9b043c2a04e8b841e4a011e0f82c8a | 81722e59d3b12571ddeb7c76497f5436915c2fa6 | refs/heads/master | 2023-08-28T12:49:39.984556 | 2021-10-07T03:56:38 | 2021-10-07T03:56:38 | 412,814,126 | 0 | 0 | null | 2021-10-03T15:44:58 | 2021-10-02T14:06:38 | Python | UTF-8 | Python | false | false | 338 | py | from flask import Response,jsonify,make_response
import json
from coder import MyEncoder
def ret(result):
mes="成功" if result["success"] else "失敗"
resultData=result["data"] if "data" in result else {}
return make_response(json.dumps({"D":resultData,"message":mes,"success":result["success"]}, cls=MyE... | [
"10656010@ntub.edu.tw"
] | 10656010@ntub.edu.tw |
4b7ba8fe703eed263317b0fd81b1007e71aafd01 | 00d7e9321d418a2d9a607fb9376b862119f2bd4e | /patterns/__init__.py | 00b2afc5cbacee223ea57b5ca685e1d8786dd191 | [
"MIT"
] | permissive | baluneboy/pims | 92b9b1f64ed658867186e44b92526867696e1923 | 5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13 | refs/heads/master | 2021-11-16T01:55:39.223910 | 2021-08-13T15:19:48 | 2021-08-13T15:19:48 | 33,029,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | """
A place to keep all our string-type patterns (like regular expressions, for example).
""" | [
"ken@macmini3.local"
] | ken@macmini3.local |
c3cdd5ad8556ee86fd866d49b31d93dc6e696596 | ad7391451b41e95c4349bdf62846969f6a92e155 | /VCF data mining new.py | 2f7b386892a330e72f5fe26c08748adeab807684 | [] | no_license | bearnomore/Evolution-genomics | 10ed959024f91ac944ec6a236da4c063c50f2bee | 9a48cde3b8d61d540c5a907c6b42e2c266458776 | refs/heads/master | 2020-03-13T09:33:03.231419 | 2018-07-10T20:39:28 | 2018-07-10T20:39:28 | 131,066,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,584 | py |
# coding: utf-8
# In[150]:
import pandas as pd
import numpy as np
import glob
# In[180]:
def vcf_clean(file):
'''
Input = Exported VCF from Geneious,
Select columns ['Minimum', 'Maximum', 'Amino Acid Change', 'Change', 'Codon Change', 'locus_tag', 'Polymorphism Type', 'Protein Effect',
... | [
"yxu@Morgridge.net"
] | yxu@Morgridge.net |
1de878da8da08496ed34586ab07431295564e3c0 | 876c5c693739673ece340fca377746292da41d69 | /Simulation/Minutia/Dopplers Mirror/Doppler Mirror.py | 1528f8768a030248dc0c2e7e02b265bcd21b4a9a | [] | no_license | DanielxDWhite/Y4Project | b72ab9d37f5b5810cafe5cea9f96ac43ce417ee0 | e7bbfb72034fefbe80eea94f9b1956ff13b20fb6 | refs/heads/master | 2021-04-09T09:08:43.302472 | 2020-03-20T23:43:17 | 2020-03-20T23:43:17 | 248,858,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | import matplotlib.pyplot as plt
import numpy as np
c = 3*10**8
#d = 30*10**6
d = np.linspace(0.5 * 10**7, 11**7, 15)
f0 = 382.230484468*10**12
f = f0 + d
a = f/f0
xx = 1-a
xy = np.negative(2)
xz = 1+a
disc = xy**2-4*xz*xx
Bp = (xy+np.sqrt(disc))/2*xx
Bm = (xy-np.sqrt(disc))/2*xx
Vp = c * Bp
Vm = c * Bm
print(Vp,... | [
"white.daniel53@gmail.com"
] | white.daniel53@gmail.com |
39a03d47b7ac9f20e8cfcc3abf17a00db972c6dc | 5b18718ca8526788dde87be82da3c078ea40c766 | /geometry/discriminant.py | 4d450a6c9dc4a2371dab75736a401267bd11ed73 | [] | no_license | rhyshardwick/maths | 42443dcd888937128176d9fedbda22ad25ab09d8 | bca86c3d5b7db95a9063e0113067b437e00f9e40 | refs/heads/master | 2023-02-23T23:47:17.715035 | 2022-10-06T15:59:54 | 2022-10-06T15:59:54 | 185,846,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Calculates the discriminant value
# discriminant: the expression that appears under teh square root (radidical) sign in
# the quadratic equation
# b ** 2 - 4ac
# w3resource exercise uses x, y, z, I will use the more standard a, b, c
print("Calculate the discriminant for the quadratic equation axx + bx + c")
a = floa... | [
"rhys@RhysSurfacePro7"
] | rhys@RhysSurfacePro7 |
ce1c4491d2da4a9c8e764be676f415cea4e6e04e | 124b35ccbae76ba33b9044071a056b9109752283 | /NeuralNetwork/selective/g_final.py | ea9f9155e11885614eb73dff119af6f31e7741ed | [] | no_license | anilmaddu/Daily-Neural-Network-Practice-2 | 94bc78fe4a5a429f5ba911bae5f231f3d8246f61 | 748de55c1a17eae9f65d7ea08d6b2b3fc156b212 | refs/heads/master | 2023-03-08T22:04:45.535964 | 2019-03-15T23:10:35 | 2019-03-15T23:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,831 | py | import tensorflow as tf
import numpy as np
import sys, os,cv2
from sklearn.utils import shuffle
from scipy.misc import imread
from scipy.misc import imresize
import matplotlib.pyplot as plt
from sklearn.preprocessing import OneHotEncoder
from skimage.transform import resize
from imgaug import augmenters as iaa
import i... | [
"jae.duk.seo@ryerson.ca"
] | jae.duk.seo@ryerson.ca |
646e4bdb64395b37d72c7eec6ab0b6d0a82ec228 | 14edb3491718f55ac4faddbeeb804a18496d7b68 | /test/functional/test_framework/test_shell.py | 1d81a19057ef51b4ab48026087eb79e2906bf93b | [
"MIT"
] | permissive | freelancerstudio/Danecoin | 712f361abdf2a635f86ea9be7e8a0f63a419437d | 73d21d335c11a8966c995b7e8c520c2b55695c04 | refs/heads/main | 2023-07-03T04:22:05.076216 | 2021-08-16T17:43:48 | 2021-08-16T17:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import DanecoinTestFramework
class TestShell:
"""Wrapper Class for Dan... | [
"36169687+blockinator@users.noreply.github.com"
] | 36169687+blockinator@users.noreply.github.com |
1fbc8fe692bbd42fa5947ae91067fa7daa1e18d2 | cd208b4a40be8bf166da79fdc126dbcb71e95a7d | /app/notification/advance_notifications.py | 8304f7d69b491586773bac5131f10c0f31a25f4c | [
"MIT"
] | permissive | Moirted/MyPersonalKitchenBot | 63a2b1be6e21e90ed908c9f3162bd085162cd83f | 03de0beeaf2665e8b3ddd1709da3d4edcd422b80 | refs/heads/main | 2023-04-21T12:17:52.486113 | 2021-05-16T13:00:22 | 2021-05-16T13:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | import datetime as dt
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from dateutil.parser import parse
from sqlalchemy import and_
from app.misc import bot
from app.models import UserSettings
from app.models.product import Product
async def advance_notification_checker():
users = await UserSettings... | [
"ka.kovjarova@gmail.com"
] | ka.kovjarova@gmail.com |
8cd9e0a4dd1402479c1142722ce6f9bfb837ff1e | 5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04 | /google/ads/googleads/v5/services/services/reach_plan_service/transports/grpc.py | 2a1fae4361e4090055a995f0e2712c344ada0370 | [
"Apache-2.0"
] | permissive | pdsing/google-ads-python | 0ce70227cd6bb13a25cd13de0ca05c2636279ecd | ee2c059498d5679a0d1d9011f3795324439fad7c | refs/heads/master | 2023-05-04T18:39:57.412453 | 2021-05-21T16:38:17 | 2021-05-21T16:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,745 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
902fa14e9c84754d961df78eee10d849f8f767bf | a9dd94198cb4d67d1b5b4c8d8dfdc6122da59613 | /Longinus/redisScan.py | 904d7a755d92c6a0bcbefde54aac14ba9d2739b4 | [] | no_license | orange23qi/Evangelion | 004cc637ffed8b23cd3ea07c09fc589e943664e8 | 17145875ef31d6f0f901265439fe5042ec4c7f25 | refs/heads/master | 2021-01-01T07:58:39.817105 | 2017-07-18T08:30:07 | 2017-07-18T08:30:07 | 97,568,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,018 | py | # -*- coding: UTF-8 -*-
import redis
from rediscluster import StrictRedisCluster
from .models import config_redis_command
class redisScan(object):
"""
def __init__(self, redisHost, redisPort, redisType, redisDb):
self.host = redisHost
self.port = int(redisPort)
self.type = int(redisTy... | [
"chenqi-orca@hotmail.com"
] | chenqi-orca@hotmail.com |
6ed1735ed355ea388a28aabc6fcfc46865ffb3d9 | e726624ca76481066d66e74dc4bcc14f589d05c3 | /utils.py | e3fb1fbf86d303aed240b3be11e7a9ef9f97f546 | [] | no_license | diwakar-vsingh/Scene-Recognition | 381387688d470775b8bb1f06845f3e00a40585d2 | 736bfeb9e85abc550db284f2bb28c03596757dc6 | refs/heads/master | 2022-12-19T15:23:06.983620 | 2020-09-20T22:40:08 | 2020-09-20T22:40:08 | 297,175,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,410 | py | import sys
import os
import os.path as osp
import shutil
import time
import random
import numpy as np
import cv2
import torchvision.transforms as transforms
import torchvision.datasets as datasets
import torch
import torch.utils.data
from glob import
from torch.autograd import Variable
from IPython.core.debugger impo... | [
"31905456+diwakar-vsingh@users.noreply.github.com"
] | 31905456+diwakar-vsingh@users.noreply.github.com |
ff52b8f529b94dda69dce7fafc24efc220fa1e7c | d5985446e35eeb71b77b26a45c1c7c48db2bf1fa | /Web-Scraper/scraper.py | 0795bc31a5597bfad4c99f8d98aa2313680fad00 | [] | no_license | sl-spase/Python_NLP | aa7b9bd555ebdc31bcba07ddd83d19b1e37cc703 | fed717c719be16018acd1b092bdbee48ef340f97 | refs/heads/main | 2023-07-31T16:08:54.864313 | 2021-09-13T09:34:52 | 2021-09-13T09:34:52 | 405,909,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | import requests
import string
import os
from bs4 import BeautifulSoup
page = input()
article_type = input()
for i in range(1, int(page) + 1):
url_list_articles = "https://www.nature.com/nature/articles?sort=PubDate&year=2020&page=" + str(i)
r1 = requests.get(url_list_articles, headers={'Accept-Language': 'en-U... | [
"noreply@github.com"
] | noreply@github.com |
443a8d75e938c169af2de29928c8608a50907fc9 | d61482ba081ab69edbe53f1d641eba9b4295684f | /utilities.py | 1c038126e3f99e9b7eeabd6081ec962fd1b7998b | [] | no_license | lucapegolotti/FingerMovement | 6099bad810429444d1b94c6d4350e16ed2302c4c | d515da1bd7394fc62657dc9e065132f3b2d169bb | refs/heads/master | 2020-03-06T22:34:43.389476 | 2018-05-18T12:46:20 | 2018-05-18T12:46:20 | 127,106,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | import torch
from torch import nn
import numpy as np
import random
"""
Compute number of errors on given datset wrt its target
"""
def compute_nb_errors(model, input, target):
# To deactivate dropout:
model.train(False)
y = model.forward(input)
indicesy = np.argmax(y.data,1).float()
nberrors = n... | [
"luca.pegolotti@epfl.ch"
] | luca.pegolotti@epfl.ch |
7aca51c0bc9b994fc566fd826ff4718574520621 | 77938a0011373d88a966374a7464e03781372ee8 | /canvas_stream/helpers.py | 03386cf4133bbc3b7bea3f6d0f59c0e884a6fe7f | [] | no_license | benjavicente/canvas-stream | f1f5283dab646885ffe73c14c5862c10419835ba | 897b9600b2b8da3a66feaeac044dad3cf1041471 | refs/heads/main | 2023-06-18T22:37:08.352444 | 2021-07-14T03:10:57 | 2021-07-14T03:10:57 | 385,799,020 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | "Utilities"
import unicodedata
import re
from pathlib import Path
import requests
def slugify(value: str) -> str:
"Makes a string a valid file path"
value = (
unicodedata.normalize("NFKD", value)
.encode("ascii", "ignore")
.decode("ascii")
.lower()
.replace(r"/", "-")
... | [
"benjavicente@uc.cl"
] | benjavicente@uc.cl |
27505b546eae906b61150035fa0d980ecabbeead | b49fe70be4977ff9ba4903d410d6a2628922f486 | /app.py | c49553b5708536de071d9ac843d182b4e101ba7d | [] | no_license | CarlosPlatoni/BeeDetection | 8609af08d8c4b59098e292d4c09ed074f90ae0eb | cc459b576a0d4c492acf7c68f8b545a0eb4dfcf4 | refs/heads/master | 2021-01-01T06:19:21.300110 | 2017-07-16T19:53:21 | 2017-07-16T19:53:21 | 97,406,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | #!/usr/bin/env python
from flask import Flask, render_template, Response, flash, jsonify
from flask_socketio import SocketIO
from camera import Camera
from flask_bootstrap import Bootstrap
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
import tim... | [
"noreply@github.com"
] | noreply@github.com |
12e4d32bdd3605e95d8b769aaf8df68f4b0dca2d | 31b53c36c3573af089b768afeb4fda2e7e095916 | /backend/env/Scripts/django-admin.py | a288ebf49e5bb51ba02edf823fe2fdc70ce4b4a8 | [] | no_license | jlavery828/django-react | 75fbe952144b3deb37d67657ab166b35cf912308 | 6faa065779a9978431dc6ba28174e58762ff790a | refs/heads/master | 2022-12-11T18:05:15.322678 | 2019-03-09T16:05:07 | 2019-03-09T16:05:07 | 174,713,724 | 0 | 1 | null | 2022-11-27T23:36:31 | 2019-03-09T15:49:13 | JavaScript | UTF-8 | Python | false | false | 176 | py | #!c:\users\miner\documents\python-projects\djreact\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"jlavery828@gmail.com"
] | jlavery828@gmail.com |
07d25a17906756a002a0fc08fb221ed13ac6ad2a | ba3be84d355e90860479fc2a0d92b536c377c643 | /PYTHON/string/3ld.py | 7a3773926eea3d04b6c3ec283fe50647e16eed21 | [] | no_license | vipin26/python | c62a3427511658ff292085fc382c5b3b3ff4d609 | e8442b84c385ddef972d6a514e471d8eba8af0a3 | refs/heads/master | 2020-09-29T12:39:52.775466 | 2019-12-15T05:44:31 | 2019-12-15T05:44:31 | 227,034,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py |
s1=""
s1=raw_input("enter a string : ")
f=open("ele.txt",'w')
f.write(s1)
f.close()
f=open("ele.txt",'r')
s=f.read()
print s
c=0
for i in s:
if(i==" "):
c=c+1
print c
| [
"58661640+vipin26@users.noreply.github.com"
] | 58661640+vipin26@users.noreply.github.com |
b45bc654f093c8fd49cd30f653fc0c4abdc0e330 | 811036ddc4996d5dfd71a2f28f877a0e8c518593 | /python_course/bin/pip2 | c86fdb7c6bbb88f0df7019c7fe43812fb3c314c4 | [] | no_license | canyoubaby/python_course | 728409ab1adaeb53614f9192d2bbfc156995b5d5 | c418c811aa0d70c91d0fadcbca6765a8c09eabb6 | refs/heads/master | 2020-05-21T00:27:41.099422 | 2019-05-25T02:19:08 | 2019-05-25T02:19:08 | 185,826,697 | 0 | 0 | null | 2019-11-02T12:07:53 | 2019-05-09T15:35:47 | Python | UTF-8 | Python | false | false | 256 | #!/home/hieu/Desktop/python_course/python_course/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hieunguyentrung203799@gmail.com"
] | hieunguyentrung203799@gmail.com | |
cfe5fe1188d19fce17f316165c315b36d38060dc | 48909fe6205f92d707b5d825426e1da9cb4b7738 | /amazon_6/first_non_repeating _char.py | cc6b8893428e5c00532b4fa1b3a65cd5922c15fc | [] | no_license | BJV-git/amazon_6 | 608fd9ad76611d6050d8ff14d19ff29de3240b96 | b8959581ca501ecebcc7f67982a18a4a985a6852 | refs/heads/master | 2020-05-04T05:22:21.008271 | 2019-04-02T02:36:08 | 2019-04-02T02:36:08 | 178,983,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # isntead of maintaingin a dict lets mainatain a row of all alphabets
# Time: O(N)
# Space: O(1)
def firtsUnique(s):
count={}
for i in s:
count[i] = count.get(i,0)+1
for i in s:
if count[i]==1:
return i
return -1 | [
"noreply@github.com"
] | noreply@github.com |
31465cfde8c86ee957b1f48a96915c6c548da66e | a3f991609b9f25e4ef4f65dc16867d602c1e867e | /scs_account_report/report/financial_report.py | a7cc4ddfa8199eb0d9a3384cd067412a5c829c5a | [] | no_license | RLJO/custom_gtl1 | ecdb86ebb5dbead92a2ec152748eb125381f3ce2 | ee9b9148aa8b2746322f67cd1afdb43078af7eaf | refs/heads/main | 2023-07-29T04:25:18.016192 | 2021-09-13T13:48:48 | 2021-09-13T13:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,317 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details.
import time
from odoo import api, models, _
from odoo.exceptions import UserError
class ReportFinancial(models.AbstractModel):
_name = 'report.scs_account_report.report_financial'
_description = 'Financial Account Report'
... | [
"hetal@laxicon.in"
] | hetal@laxicon.in |
fbf7b12a7de7632c7500856f41831d7973ddded9 | fa3f1f73ccb50ab551b0560ccece9f1bd41fa10a | /WeightedAvg_categorybased.py | 8c9a0d2a32a5bc6580ffa7f13c4306f480d83c72 | [] | no_license | harithagmu/SciCast-PredictionMarketData-Analytics-Engineering | d4074efd66d94bc49f587c412609e8c83c92cff5 | beaf1a9b1236cb46cfaab6bfbba798223683821d | refs/heads/master | 2020-09-09T21:08:28.103697 | 2020-04-21T20:59:30 | 2020-04-21T20:59:30 | 221,571,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,074 | py |
#Importing required libraries
import psycopg2
import pandas as pd
import numpy as np
from datetime import datetime
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score
from sklearn.metrics import classification_report
import os
import ma... | [
"noreply@github.com"
] | noreply@github.com |
11c26bc67655788b4e9134383d372e909eb9b40f | 65e39deb4e1e152d3650323cc7641686d4b1776d | /list1.py | 5d2fa070bcaaf00b6da4a8edfa3cf2da580e9bc2 | [] | no_license | bwigoder/pythontut | a7c07c4f55afcb41b04cc4b895e256058bbaf134 | 629e889326bfd4473d7073837b0058c0f7328361 | refs/heads/master | 2021-01-10T20:39:46.667380 | 2014-02-17T19:59:02 | 2014-02-17T19:59:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic list exercises
# Fill in the code for the functions below. main() is already set ... | [
"bwigoder@gmail.com"
] | bwigoder@gmail.com |
cb4160269f36707e4931919c274db435eb21cb6c | 944401a6292baa2d23b9738898e0b0cb199d0795 | /lib/python2.7/site-packages/bokeh/models/widgets/tables.py | 5584c2821cb4704e2b0077b69ef9bc9912d443fe | [
"Python-2.0"
] | permissive | sunnyweilai/Finding-Theme-Color-Palettes | cc84c93ce58abdd1802431c41bd59181d7a4f75b | 4c38b112f5c40b43d6ec126e415b609c7fdc1f39 | refs/heads/master | 2022-12-21T09:41:31.187411 | 2019-04-30T14:50:17 | 2019-04-30T14:50:17 | 184,273,925 | 1 | 0 | null | 2022-12-07T03:46:55 | 2019-04-30T14:09:52 | Python | UTF-8 | Python | false | false | 17,275 | py | ''' Various kinds of data table (data grid) widgets.
'''
from __future__ import absolute_import
from ...core.enums import DateFormat, FontStyle, NumeralLanguage, TextAlign, RoundingFunction
from ...core.has_props import abstract
from ...core.properties import Bool, Color, Either, Enum, Float, Instance, Int, List, Ove... | [
"wnn2260@gmail.com"
] | wnn2260@gmail.com |
e2c572e43c469fc2dd9396060cc0563e3547fb90 | c5cbb2a8a32ad0f6d86290921ed5fd623e02e624 | /MICCAI_Challenge2018_YuHsiang/DICELOSS/DLV3+3AS.py | f34d0e00979214a3c80d0ba2232c218d09f23eab | [] | no_license | leocvml/MICCAI2018_Robotic-Scene-Segmentation- | 779835ca506b935c9ae0282c2d49924735d473a6 | 8b23c352188449bf73f5976723ff22326911cfd7 | refs/heads/master | 2020-07-23T12:13:04.395012 | 2019-09-10T12:28:08 | 2019-09-10T12:28:08 | 207,552,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,418 | py | from mxnet import gluon, image, ndarray
from matplotlib import pyplot as plt
from mxnet.gluon import data as gdata
from os import listdir
from mxnet.gluon import nn
import mxnet as mx
from mxnet import nd
import os
import numpy as np
#########################################################################... | [
"noreply@github.com"
] | noreply@github.com |
387fbf7012807a35c5ca715e00d16344878a7166 | 3c191eddb3f83a18d2f20836ccbc7d64470d441e | /IDEA/pythod_work/spark_to_pgMysql/pgDDLToSpark/pg_ddl_spark.py | 9ae11f6d2e5de3d9120dd766cc4f297eb473032e | [] | no_license | maizi12580/test | 69c7aa60264d4757e58daba0f268408a22bb96a2 | df354eb1de71b459b92a5a505e27b9d17880332c | refs/heads/master | 2023-06-29T13:50:30.401052 | 2021-08-03T16:21:14 | 2021-08-03T16:21:14 | 289,845,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,108 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
# Atom
import ConfigParser
import base64
import csv
import logging.config
import random
import sched
import socket
import traceback
import psycopg2
import json
from datetime import datetime
import subprocess
import time
import os
import sys
import re
class CryptoUtil:
d... | [
"1633043127@qq.com"
] | 1633043127@qq.com |
9893462377c8a546220e77bccda1fa2062b2e625 | 37b906301a5a63575ddca4f76c6218039cb1ee64 | /core/receivers.py | 83b75a215d442fc31775c161bd9ca81ea701f609 | [] | no_license | oseniasjunior/order-system | 83c19a97f36de14bbb822c6de5db96e1d065ca11 | 4d398d5ae51bb146c4a8d13eaf13710516b2d8a5 | refs/heads/master | 2022-12-28T05:14:36.755278 | 2020-10-16T00:46:16 | 2020-10-16T00:46:16 | 302,489,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.db.models.signals import post_save, pre_save
from django.dispatch import receiver
from core import models, actions, tasks
@receiver(post_save, sender=models.Product, dispatch_uid="update_detail_decription_by_product", weak=False)
def update_detail_decription_by_product(**kwargs):
tasks.populate_test.a... | [
"oseniasjunior@gmail.com"
] | oseniasjunior@gmail.com |
ed1c2824292e2442eaf2e0e8dbf0274376b7629e | 8bc13cf88d47d5b3c65f215f3f138f82dc7b86b9 | /auth_path/models.py | ee76cdc16a4171052339448e6f9c0ee673e8ef97 | [] | no_license | xal9wiii4ik/store | f941673dbff1b8a333d0df36dc04b51775df54c9 | d8b7fbae3f6232e956859abb078c236986a0cc3a | refs/heads/master | 2023-04-10T09:14:36.777575 | 2021-04-08T21:52:40 | 2021-04-08T21:52:40 | 323,389,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from django.contrib.auth.models import User
from django.db import models
from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_base64_encode
class Uid(models.Model):
"""Model uid for future verification of user"""
uid = models.CharField(max_length=25, verbose_name='Юид')
use... | [
"xal9wIII4ik@yandex.ru"
] | xal9wIII4ik@yandex.ru |
0499b11e79ad0ae0ace80eb279ded4f3c66e0293 | 32fd2ea54af5f802f0568de168254b070a9f9bef | /tests/test_xmp.py | 3f6a364914a02057509833e3c3bc6e2f6b7de103 | [] | no_license | gaqzi/py-xmp-tool | 923b6ade266880f0d64734bf83d80db37f4409fb | df69d5a3527fddb4e1c2d271974227ba81f1a7b3 | refs/heads/master | 2021-01-01T16:00:26.248178 | 2015-02-19T05:47:36 | 2015-02-19T05:50:52 | 19,036,805 | 4 | 1 | null | 2018-03-05T00:55:54 | 2014-04-22T16:23:26 | Python | UTF-8 | Python | false | false | 2,429 | py | import os
import tempfile
from shutil import copyfile
import pytest
import xmp
FILES_FOLDER = os.path.join(os.path.dirname(__file__), 'files')
BUBBA_JPG = os.path.join(FILES_FOLDER, 'bubba.jpg')
HELLO_TXT = os.path.join(FILES_FOLDER, 'hello.txt')
@pytest.fixture
def clean_file(request):
filename = tempfile.mks... | [
"ba@sanitarium.se"
] | ba@sanitarium.se |
55c7b7e568f950238f82b23b7c2310569f498664 | 5609efe94f138a820e7478a2ee9e49164241621a | /article/models.py | 6611404a5db2bf6afe54f517ab8a25e4b17f8ba4 | [] | no_license | hynn911/tony_blog | 546a7f4943a927860f43dc0dc6011429b846a63d | 8b26e151f767cc83a91ac7ea9279ae29d93cc1d4 | refs/heads/master | 2021-09-10T10:07:37.880664 | 2018-03-24T11:46:55 | 2018-03-24T11:46:55 | 120,170,947 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | from django.db import models
from django.forms import ModelForm
# Create your models here.
class HssUser(models.Model):
msisdn_no = models.BigIntegerField(db_column='MSISDN_NO', primary_key=True) # Field name made lowercase.
imsi_no = models.BigIntegerField(db_column='IMSI_NO', blank=True, null=True) # Field... | [
"xujinlei@js.chinamobile.com"
] | xujinlei@js.chinamobile.com |
9ce278978b150bbbdbe42f9f29d5a065f081ab42 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/prime-big-734.py | ae9cb7e5ea058d3ccbe2d140c51960c31f68dea9 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
70064ac4483b4656d78c4854940aa8a1d6e54c2f | 068bf97bc4c2a7c95ffe281e480d4e168435837b | /base/3.python循环while/08_print函数的结尾.py | 63b5682d74c8327bfeba144ae4adc170a6fd0f70 | [] | no_license | EricLeeN1/pythonStudy | 6ab28833f4f25340ea5ddfc9e2dd4fbe34630567 | e8bc47214711e43e6d5273843937b73e27ad1acf | refs/heads/master | 2020-09-30T17:50:18.448680 | 2020-01-18T03:47:13 | 2020-01-18T03:47:13 | 227,340,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | '''
@Author: your name
@Date: 2020-01-09 10:34:45
@LastEditTime : 2020-01-09 10:35:56
@LastEditors : Please set LastEditors
@Description: In User Settings Edit
@FilePath: \pythonStudy\base\3.python循环while\08_print函数的结尾.py
'''
# - 在默认情况下,print 函数输出内容之后,会自动在内容末尾增加换行
# - 如果不希望末尾增加换行,可以在 print 函数输出内容的后面增加 , end=""
# - 其中 ... | [
"179310009@qq.com"
] | 179310009@qq.com |
03fcd43a145d21132262958bba4ac98d27fdfe04 | ff9be20d8ec3eb0e4a35d13c1b95b25d81221b75 | /orthos/graphicsItems/linked_view_box/infinite_grid_lines.py | c7c6fb047e73252dd617fdece8bc82b22559309e | [] | no_license | DerThorsten/orthos | 340ec785c053f8f3423117e6c1f7aee340fb3d77 | 529454df365ccca93162e2cc2ee2cbf1c3688e42 | refs/heads/master | 2021-01-17T06:16:12.947418 | 2016-07-21T11:45:47 | 2016-07-21T11:45:47 | 44,521,841 | 0 | 2 | null | 2015-11-27T15:07:36 | 2015-10-19T08:43:37 | Python | UTF-8 | Python | false | false | 2,077 | py | import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
import numpy
#from ..tiling_image_item import *
#from tiling import VisibleBlocks
def make3dSlicing(begin,end):
slicing = []
for b,e in zip(begin, end):
slicing.append(slice(b,e))
return slicing
class InfiniteGridLines(pg.GraphicsOb... | [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
f8015ddfe4a45df4802411afbc079c4499655f43 | 7b54c0e315fa38f604d767d9559af54889b38bd6 | /open_wechat/settings.py | 032439f75357884dfebe6db0284cbf968e304e11 | [] | no_license | dongtianqi1125/open-wechat-grant | 790e7076e5f186e8ee340a5a9d8aa0eb5d6380dc | 07126f1ea6a176959dab962ebfc0127da85a9bf8 | refs/heads/master | 2022-04-26T18:38:40.219360 | 2020-04-27T08:45:07 | 2020-04-27T08:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,337 | py | """
Django settings for open_wechat project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"chinajiezhang@gmail.com"
] | chinajiezhang@gmail.com |
1981fa46e690336fe98322561d70fff3b3b90049 | e4a0a50471c38aea60f4f4dc99b38ad9020250e7 | /Transformer_TextClassification/utils.py | 28f427e3410bee8a2199e2ed4ce3df1a5fbada0a | [] | no_license | Macielyoung/TextClassification | 3041d7bb6161abb78ed1aab91af1a930bbbae9b0 | ee53558f252cfbf399816ed5d5012e35f5f2f9f3 | refs/heads/master | 2020-06-29T22:12:06.406940 | 2020-04-18T07:21:39 | 2020-04-18T07:21:39 | 200,638,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | # coding:utf-8
import torch
from torch import nn
from torch.autograd import Variable
import copy
import math
def clones(module, N):
# 生成N层encoder子层
return nn.ModuleList([copy.deepcopy(module) for _ in range(N)])
class Embedding(nn.Module):
# embedding层
def __init__(self, d_model, vocab):
supe... | [
"ywy940215@gmail.com"
] | ywy940215@gmail.com |
1ae5603381bc89456335cb745e6e62f3ba9fb909 | d78f98494135212f626b5c13dae35cf1a7195436 | /AutomatedMails/AutomatedMails/urls.py | 3f5f550580d596be28d1203c361684d9e62098ff | [] | no_license | JasbirCodeSpace/Django-Mini-Projects | 0d4cd1981d356a7b737be25f5bc69ab70863292a | 87634eeb1e15540b88bcd3e5d6f788cdfbe0c797 | refs/heads/master | 2023-07-30T17:44:21.500000 | 2020-06-07T07:54:51 | 2020-06-07T07:54:51 | 257,206,866 | 0 | 0 | null | 2021-09-22T18:55:32 | 2020-04-20T07:40:00 | CSS | UTF-8 | Python | false | false | 1,041 | py | """AutomatedMails URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home... | [
"shikhawat.jasbir@gmail.com"
] | shikhawat.jasbir@gmail.com |
b82bb341708cdea6fa41b4c567c2b87179a7e0e7 | 382f4acfd565be4aedb07c694e8daa489ff3e70a | /eveutil1/bin/OLD/fwcorps | 4d476f84186e8d5ceb9b7bff45e8e2e8863a33ab | [] | no_license | electusmatari/legacy | 913c5a9f68074d1fa793b0e3ff76fd3f9c3f481e | 9266e955398a0c8279b82b8347a85d9186a455da | refs/heads/master | 2021-01-22T05:24:13.935562 | 2013-09-29T11:44:19 | 2013-09-29T11:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | #!/usr/bin/env python
import urllib
import os
import re
from lib import characters
URLS = []
#"http://www.amarr-empire.net/killboard/?a=alliance_detail&all_id=517&view=corp_kills",
# "http://www.minmatar-militia.org/kb/?a=faction_detail&fac_id=2&view=corp_kills"]
line_rx = re.compile(r'^([^(]*)(?: \(.*\))?$'... | [
"forcer@forcix.cx"
] | forcer@forcix.cx | |
4db6bd1dbd44a581974b10488b2d28062ae27e45 | 60634610b4a96f28afc5ce20c7389704e60957a9 | /Python/django_intro/integration_project/apps/words/views.py | 0f0fe4a555513d8b378d6ad8953e1bc0ea230512 | [] | no_license | r-knight/DojoAssignments | 31f313d8f566080195fb8024fb2aed87599ff9e7 | 81c5231a7f1d58a975cd3bda0a1250f4155d24ac | refs/heads/master | 2020-03-10T17:00:34.372821 | 2018-06-30T22:12:33 | 2018-06-30T22:12:33 | 129,488,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | from django.shortcuts import render, redirect
import time
def index(request):
return render(request, 'words/index.html')
def process(request):
if request.method == "POST":
size = request.POST.get('checkbox_big', False);
if size == False :
size = 'normal'
curr_time = time.gm... | [
"ryan.thomas.knight@gmail.com"
] | ryan.thomas.knight@gmail.com |
8feff5fd04db2a6ebab56a8c444af3bf03ee13ff | 07f8d2b32aaf96f7a0fbb23a6146bea49ecf2de2 | /old_version/nombre_rut_firma.py | d7926635cd868f93973c5e7b1573026f2ef9a94b | [] | no_license | ROBLIENAN/rutificador_nombrerutfirma | 6a7cc2904c001111e6f8692f10b559ede356d37c | f861276707ad19dd75438bf67a9190bc3fd049ed | refs/heads/master | 2023-04-22T02:09:26.797150 | 2021-05-14T16:34:24 | 2021-05-14T16:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | #!/usr/bin/env python3
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import csv
import time, sys
import warnings
import os
if not sys.warnoptions:
warnings.simplefilter("ignore")
pwd = os.getcwd()
print('')
print('Rutificador automático para nombrerutyfirma.cl. Cre... | [
"deivid@deivid.xyz"
] | deivid@deivid.xyz |
a8b946fea7fc3a21cb19090832a8fb387d4ddb6a | 5247dbbe6555c73358775e9b82c2bd4154a418fa | /user/api/views.py | a9d6d97ddba9049a5b185b7f4cdf25428086ed7e | [] | no_license | pimka/django-microservices-example | f6fc260768afd1197b89b0aff0b956632459ad71 | 18a6dcd38480bca917f5c2898dea10da257026c4 | refs/heads/master | 2021-06-25T11:54:23.759781 | 2019-12-22T10:36:50 | 2019-12-22T10:36:50 | 216,499,308 | 0 | 0 | null | 2021-03-19T22:47:33 | 2019-10-21T07:02:00 | Python | UTF-8 | Python | false | false | 2,202 | py | from django.http import Http404
from rest_framework import status
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.pagination import LimitOffsetPagination
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import AP... | [
"zelenova.yulia@mail.ru"
] | zelenova.yulia@mail.ru |
158b25e7b92fec4e90254c369ae5634e94b55675 | 561378ab9a6eb737c21144f085878eb825f64729 | /guest_list.py | e59b8253018d762c2310c664ce376ec5a1b41fec | [] | no_license | NotAKernel/python-tutorials | 75a88554ffdddfff636582f9e66b734f33404601 | ccdb37af7680cb465d73c0468d8667406f1c9f14 | refs/heads/master | 2022-05-01T19:51:35.465524 | 2022-03-22T19:51:01 | 2022-03-22T19:51:01 | 217,547,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | while True:
f_name = input("Enter your first name: ")
l_name = input("Enter your last name: ")
username = f"{f_name.title()} {l_name.title()}"
file_name = 'guest_list.txt'
with open('guest_list.txt','a') as file_object:
file_object.write(f"{username}\n")
print("Next name") | [
"daniely101202@gmail.com"
] | daniely101202@gmail.com |
b8f337665d6ff249d50cfbf245afee15ee82ae62 | 0544ff7fc0736d2f6dded68e5ae27f4e2ddf7a06 | /sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py | ffeba8865187656ea9fe006fd81dd0e4f9bf577c | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | dhanizael/azure-sdk-for-python | 160469181f80593b0dff9104a8eb0d5b781722a9 | 17a1d048a8be4c869c7b943b2aff5a0c8213652e | refs/heads/master | 2023-03-04T14:47:54.334635 | 2021-02-10T20:16:40 | 2021-02-10T20:16:40 | 337,845,515 | 0 | 0 | MIT | 2021-02-10T20:37:41 | 2021-02-10T20:30:09 | null | UTF-8 | Python | false | false | 2,533 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
d8714ee24f591c485cd9ec54687dc4e2c60e795e | 6ac2c27121d965babbb4bcbc7c479c26bf60bdf5 | /pymatex/node/BinaryOperator.py | a1ed0964642e5cd803a9f7cb8a373142fde706b7 | [
"MIT"
] | permissive | Gawaboumga/PyMatex | 5a2e18c3e17d3b76e814492f7e2ca63a57d720e9 | 3ccc0aa23211a064aa31a9b509b108cd606a4992 | refs/heads/master | 2020-03-28T01:40:32.341723 | 2018-12-20T13:49:12 | 2018-12-20T13:49:12 | 147,521,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | from pymatex.node.Node import Node
class BinaryOperator(Node):
def __init__(self, lhs, rhs, symbol, operator):
super().__init__()
self.lhs = lhs
self.rhs = rhs
self.symbol = symbol
self.operator = operator
def __eq__(self, other):
assert (self.lhs is not None... | [
"yourihubaut@hotmail.com"
] | yourihubaut@hotmail.com |
5c50fc9485d29bdbbdc80e762cf0bf71aab040fc | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /isSameTree.py | 92b84e0e9e9ebf88b5ff80b0395446eb323b984e | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | from typing import *
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def isSameTree(self, p: TreeNode, q: TreeNode) -> bool:
def same(a,b):
if a... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
b59ef2972aee022007baf201ac8cd373a9d77aa0 | c5d1e08312ddfaac8bb3f558d09b5378e28f7add | /design_patterns/proxy_pattern/urer_proxy.py | 27b1d5ab375b0cd13f44b4f194b376e9c5de96d5 | [] | no_license | dimitriepirghie/UReR | 7d368752e6c21dccfe7734d3d58921c0992b4393 | eefe22cb60d5e7d8e259dcc7bf5d3bc1ce14ad18 | refs/heads/master | 2021-06-12T15:27:07.369326 | 2017-01-23T23:35:00 | 2017-01-23T23:35:00 | 71,646,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | from flask import Flask, request, abort
app = Flask(__name__)
class Dispatcher(object):
__service_identifier_proxy_mapping__ = {}
def __init__(self):
"""
Get all proxies
"""
import Proxies
self.__service_identifier_proxy_mapping__['facebook_identifier'] = Proxies.Face... | [
"dimitriepirghie94@gmail.com"
] | dimitriepirghie94@gmail.com |
ec2c3157e9435ae144c7542e34e4d008a82f24ee | 3a6f9f492a625c1b688baf5607bd9b0efae049ee | /GFS/FIS/DecisionSystem.py | d72c542075908c1a88100df578ab28eb3bcebbc8 | [] | no_license | HarderThenHarder/GeneticFuzzySystem | ad77866fa34bf584040460bde466d4867ec91ee0 | d625523e62fc6a41b2c257df255c067a5ae9c3eb | refs/heads/master | 2023-08-17T08:31:08.174303 | 2021-09-27T04:37:35 | 2021-09-27T04:37:35 | 320,836,303 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | class DecisionSystem(object):
def __init__(self, fuzzy_variable_list, rule_lib):
"""
FIS决策系统:由模糊变量集与模糊规则库组成
:param fuzzy_variable_list: 模糊变量集
:param rule_lib: 模糊规则库
"""
self.fuzzy_variable_list = fuzzy_variable_list
self.rule_lib = rule_lib
| [
"1414463123@qq.com"
] | 1414463123@qq.com |
4aeaa6069f610d5d0cfb69906fdfedaf7e462021 | 0421985d1af2c039e3ad1867b674adf3393dfbae | /basicFunctions.py | 01886de7ee6da99319df36caa30f8271ed49e21c | [] | no_license | mayankloyalka/Maths4330 | 854f7b6ac1822f0ec6651133402a18d3a3775f40 | fcb705ccb031c30a07595db2d958ebdfec283563 | refs/heads/master | 2020-04-22T12:25:42.321533 | 2019-05-09T04:15:21 | 2019-05-09T04:15:21 | 170,370,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,729 | py |
def vandermode(arg1):
# What does the Vandermode function do?
# It takes a list of vectors and raise it to the power of [0,1,2,3,4]
# Arguments:
# args1 :Arg1 is a list of vectors, that is entered by the user
result=[]
for i in range(5):
new_list=[]
for element in... | [
"noreply@github.com"
] | noreply@github.com |
c98bd1e48e841a4636e99391915ab7d93eae1383 | b7639e383c9250b0de2e4713c55f1d366840d758 | /todo/views.py | 0015de031217bfa43d734ecf77d13c27b1fbdcac | [] | no_license | mohammad2745/awsome-todo | 6fe0263147917cc92a4e335cff3d7adb1580af64 | 571633ae39146df00ef4c40b272d00abfe4c415f | refs/heads/master | 2023-08-04T13:02:41.375094 | 2021-06-22T05:06:25 | 2021-06-22T05:06:25 | 277,222,183 | 0 | 0 | null | 2021-09-22T19:23:13 | 2020-07-05T03:10:35 | Python | UTF-8 | Python | false | false | 935 | py | from django.shortcuts import render, redirect
from django.views.decorators.http import require_POST
from .models import Todo
from .forms import TodoForm
# Create your views here.
def index(request):
todo_list = Todo.objects.order_by('id')
form = TodoForm()
context = {'todo_list': todo_list, 'form': form... | [
"mohammadfcc2745@gmail.com"
] | mohammadfcc2745@gmail.com |
8203b06fc0a707631c4c0f8c113869357cde1785 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/check_verify_codes_request.py | 4a523c962e6e5a6b6fd6bb917e72c51422a6eb24 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,852 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CheckVerifyCodesRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): Th... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f93b9c60190b4f7e57154c753e126e12e0b25105 | 70961aa4e7aab24e2c8d32a3b5e5f5c804c40144 | /id11.py | c7b57b7c24c9a8abbd5bfd1e1786518d70091f7e | [] | no_license | kxtan/euler | 5c98726a43d38bc7840c9835a746e34f8d923fe6 | 97b20cdbf699b808b94bfb3986de3f7f81f5f0cd | refs/heads/master | 2021-01-11T00:04:16.534649 | 2017-02-07T12:50:18 | 2017-02-07T12:50:18 | 70,759,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | """
In the 20×20 grid below, four numbers along a diagonal line have been marked in red.
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 3... | [
"cwlim1995@hotmail.com"
] | cwlim1995@hotmail.com |
e29437a2fb5d9ded927b7bb4e7a848eb1239d407 | da03465c8a2dbd7b1415f1703f824bb4f582408a | /nova/policy.py | 2ebe6a69c2e40fd4a68168dd74dc7ef32b8f6c39 | [
"Apache-2.0"
] | permissive | rbenali/nova | 4d4622189aa0b54aec90e07bc71919ca9f99bbe6 | fb4a138bc5791d23e6f302b78da13ea99a511f26 | refs/heads/master | 2021-01-16T20:50:13.224776 | 2012-01-11T16:50:50 | 2012-01-11T16:50:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2011 OpenStack, LLC.
# 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... | [
"vishvananda@gmail.com"
] | vishvananda@gmail.com |
617197ff5520b1ea151f45448772ca8e3edcd9d5 | 3c0687e6ee69b079d2cdced80494681fef0512e5 | /file handling_Corey Schafer/reading and wrting.py | e80ca9a152436e6d458a4387629797ccf333313f | [] | no_license | wingedrasengan927/Python-tutorials | b51f21f13b2e4f7ff924eb702e236f320de70d85 | 7af09884b4c4bec3a234bcdb8ed4f80aa8c2210a | refs/heads/master | 2021-07-09T01:02:46.431532 | 2020-08-09T16:42:48 | 2020-08-09T16:42:48 | 180,403,864 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py |
# first let's clear the file
f = open('dummy3.txt', 'r+')
f.truncate(0)
# let us read the contents of dummy.txt and copy it into dummy3.txt
with open('dummy.txt', 'r') as rf:
with open('dummy3.txt', 'w') as wf:
for line in rf:
wf.write(line)
| [
"ms.neerajkrishna@gmail.com"
] | ms.neerajkrishna@gmail.com |
baa962e00a091243b62064081042f24aec064f21 | ade74e6b497703ef01fe267b665261e90e335a18 | /studyvisapp/utils.py | c34695abd775ad8f16791ec085d2291043680e61 | [] | no_license | TMdiesel/study-vis-app | 0492ff8bdda5f1c2596cca0ac3642b6c81691f9a | a0440a8ffd21d5848faf8eeabfed4c7be38be90f | refs/heads/main | 2023-07-08T04:32:48.564623 | 2021-08-15T12:08:53 | 2021-08-15T12:08:53 | 395,558,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | import os
import pathlib
from dotenv import load_dotenv
from omegaconf import OmegaConf, dictconfig
from django.core.management.utils import get_random_secret_key
def load_config() -> dictconfig.DictConfig:
load_dotenv()
config_path = os.getenv(
"CONFIG_PATH", pathlib.Path(__file__).parent.parent / "... | [
"cerezzodora2262@icloud.com"
] | cerezzodora2262@icloud.com |
6f23f4bc5f9f62fe62decd8935d9f299c4c0d995 | 032d4ed8cfdbc10b6b22186a28d527e2ad0161c4 | /CourseraCourse ProgrammingforEverybody/Code/Wk9q4.py | 06cc8dc8d1d3fc27f1f128f279761b76f6bd62d2 | [] | no_license | jish6303/Python | fa83a8d95707982426a484330c82c167577404a5 | 841976b71b0028c8cfaa57aaea0bc472ce3ea55b | refs/heads/master | 2021-01-19T18:08:33.263735 | 2014-12-09T00:00:18 | 2014-12-09T00:00:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | #Write a program to read through the mbox-short.txt and figure out who has the
#sent the greatest number of mail messages. The program looks for 'From ' lines
#and takes the second word of those lines as the person who sent the mail. The
#program creates a Python dictionary that maps the sender's mail address to a
#cou... | [
"jiaju.shen@colorado.edu"
] | jiaju.shen@colorado.edu |
96a2a20b910aa08899a63d5c2c2b228bfeecca9f | 8fb1cd16158873c97976c6861e4a16817f11c096 | /WhatsAppManifest/automator/whatsapp/conversation/conversation.py | e540fb729eb786e85f3425596f61f2c0dfa1675b | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | alexbnkz/WhatsAppManifest | bdce7b281d17b68e72090fd0f269fc77618a4879 | 963546dbcc254b332c704c823f1f291906f8dee6 | refs/heads/master | 2021-03-10T15:51:31.201749 | 2020-03-11T03:06:34 | 2020-03-11T03:06:34 | 246,465,139 | 0 | 1 | null | 2020-03-11T03:26:48 | 2020-03-11T03:26:47 | null | UTF-8 | Python | false | false | 1,942 | py | from time import sleep
from WhatsAppManifest.adb.base import WhatsAppManifest
from WhatsAppManifest.consts import _PACKAGE_NAME_
from WhatsAppManifest.adb.device import Device
from WhatsAppManifest.manifest.android import AndroidKeyEvents
from WhatsAppManifest.automator.whatsapp.database import WhatsAppDatabaseMSGStore... | [
"rique_dev@hotmail.com"
] | rique_dev@hotmail.com |
47404961f7e18c58781bec4b2c30100d3659544b | f85e7b3e347622c7541a15974d90159c4fd9b973 | /kitchensink-prj/kitchensink/statics/views.py | b7c7eacd735135b4fab68a876456c7f490477497 | [] | no_license | giubeppe/django-study | 45baca5e7b03d478319214b28bb62ae73629c34e | 34c31609bf02ea56cd6c8d24fac8dde0a051207e | refs/heads/master | 2021-01-04T14:06:20.942460 | 2011-09-27T05:21:49 | 2011-09-27T05:21:49 | 2,456,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # Create your views here.
from django.http import HttpResponse
from django.shortcuts import *
def index(request):
return render_to_response('index.html')
| [
"giubeppe@gmail.com"
] | giubeppe@gmail.com |
861791a99cff6199e12450b643eb878adfecc0e4 | 6d25434ca8ce03f8fef3247fd4fc3a1707f380fc | /[0072][Hard][Edit_Distance]/Edit_Distance.py | a5ef60b431b491c1ee9c91a3dfbba9d16a70f005 | [] | no_license | sky-dream/LeetCodeProblemsStudy | 145f620e217f54b5b124de09624c87821a5bea1b | e0fde671cdc9e53b83a66632935f98931d729de9 | refs/heads/master | 2020-09-13T08:58:30.712604 | 2020-09-09T15:54:06 | 2020-09-09T15:54:06 | 222,716,337 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # leetcode time cost : 180 ms
# leetcode memory cost : 16.9 MB
# Time Complexity: O(M*N)
# Space Complexity: O(M*N)
# solution 1. dp with iteration
class Solution:
#def minDistance(self, word1: str, word2: str) -> int:
def minDistance(self, word1, word2):
m = len(word1)
n = len(word2)
... | [
"xxm1263476788@126.com"
] | xxm1263476788@126.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.