blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f089183b785e1121300cfb0257d7c0b43a4df73c | 8b3551600c4e12a12d604fd08408814e80b0db9e | /src/accounts/forms.py | 702f9e2a97931f69399b8f142d595dc31973d631 | [] | no_license | GaLaxY1101/CrashCourse | abe73879e4d6623321ce4d800ba452455a718605 | a528fe4ebb3ed5d59602a3d226dd9e04f503dc20 | refs/heads/main | 2023-04-16T22:30:50.380524 | 2021-05-04T10:28:38 | 2021-05-04T10:28:38 | 361,800,054 | 0 | 0 | null | 2021-05-04T10:09:33 | 2021-04-26T15:27:56 | Python | UTF-8 | Python | false | false | 1,047 | py | from django.forms import ModelForm
from .models import Order, Customer
#For user register
from django.contrib.auth.forms import UserCreationForm
from django import forms
#For login
from django.contrib.auth import authenticate
class AccountAuthenticationForm(ModelForm):
password = forms.CharField(label='Password')
... | [
"korniykhik3@gmail.com"
] | korniykhik3@gmail.com |
8b2d298b6d6dd1f9af96d7ca7332a979fe1e6fb2 | a6b7dbdf66de11f6e04bac5b9da5cb2d71b8e111 | /summary/main.py | 20667469ee285696734faf0e0f74dc2f014641f8 | [] | no_license | gabrielwong159/tf | 9b9e144682daab3901c5cde703d39d5ee1a68b72 | bd506341034ecb47ea50a0b38040c1765003deb3 | refs/heads/master | 2021-07-03T23:50:22.391246 | 2019-03-15T10:29:25 | 2019-03-15T10:29:25 | 143,256,201 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
from tensorflow.examples.tutorials.mnist import input_data
from model import MNIST
from os.path import join
from tqdm import trange
summaries_dir = 'summaries'
learning_rate = 1e-4
batch_size = 50
num_iterations = 5_000
mnist = input_data.read_data_sets('... | [
"gabrielwong159@gmail.com"
] | gabrielwong159@gmail.com |
e3132af7574a4af4aa2f40ac4284b1a802d240a9 | f7b7412991b101d0d7ea0d2321047dceee5b8370 | /options/option_data_tool.py | 66024cd86c99fe074ba70337da6f0de71bd995b6 | [] | no_license | spelee/Options | 5d9860b1878d3d1b79daf266c60d1a147926f950 | 3449bc295edb14c1bccae44e7693628eaa7dacbf | refs/heads/master | 2021-04-12T04:30:15.961163 | 2018-05-02T20:57:15 | 2018-05-02T20:57:15 | 125,902,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | import blpapi
class BLPRefSession():
"""XXX need to later decide how to create access to bbrg data
Do we want single session that is on? Possible multiple session instantiations?
redo for use as context manager?
"""
def __init__(self):
# Fill SessionOptions
sessionOptions = blpapi... | [
"spelee@gmail.com"
] | spelee@gmail.com |
e2df814ae7681abe960261c59ca05a1857aa0349 | c98a98486663b2fd4654e9d0b80b57776f6b4db8 | /python/src/main/python/Q069.py | 7976fb172cd24039cfdc926afdd1d9fb92414a00 | [] | no_license | renkeji/leetcode | 6ae31d63cd4819ebd2a69be0665d04907fc8cc3c | 1d40d357ff20a0560656727a07bf3e1c00dc4cb8 | refs/heads/master | 2020-05-22T04:24:48.263249 | 2017-05-21T22:26:05 | 2017-05-21T22:26:05 | 41,816,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from src.main.python.Solution import Solution
# Implement int sqrt(int x).
#
# Compute and return the square root of x.
class Q069(Solution):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
if x < 2:
return x
epsilon = 0.000001
left, right... | [
"kren@apple.com"
] | kren@apple.com |
dfa2627f80936e2cfdd5cdba073341bfc8db39ee | 65bad08af9e76c1adbdfd9d5447621c713d4e483 | /studay_sele/__init__.py | 84c8ae7085de930eafff8406caf0cb2f69b69e8a | [] | no_license | jinsm01/changlumanman | c74bbd7f1d80bdca40076722265213a94f2dc691 | 0afe5f01d4ed31e9dba1611eed8dae3a24884635 | refs/heads/master | 2022-07-21T23:58:15.525735 | 2020-05-18T03:07:07 | 2020-05-18T03:07:07 | 262,966,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/5/13 17:22
# @Author :labixiaoxin
# @File : __init__.py.py | [
"61052379+jinsm01@users.noreply.github.com"
] | 61052379+jinsm01@users.noreply.github.com |
989c322db653f0c43afcb8cb9d00fbe13c961e15 | 65156c80527fb8543d5b17ac6e548f8d0d6d391c | /github_wh/urls.py | b4b2d0aa31da3f40072ceb6a7a112bea3cf29b4f | [] | no_license | ArtemAAA/github-wh | 3abee596f5b932ed39008d19e041b0fe6880b973 | dd2690792384bd44c04b5f9acc9cda09f36c1242 | refs/heads/master | 2022-11-07T04:36:15.803505 | 2019-07-12T11:28:01 | 2019-07-12T11:28:01 | 196,535,953 | 0 | 0 | null | 2022-11-04T19:39:50 | 2019-07-12T08:00:47 | Python | UTF-8 | Python | false | false | 217 | py | from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('apps.api.urls')),
path('', include('apps.webhooks.urls')),
]
| [
"artemkozlovets@gmail.com"
] | artemkozlovets@gmail.com |
c3ffeec57531320981263bd35fe7e2b6d51878f0 | 877f2c8a24c42703b26db38bcebd22400fe0b948 | /test1/excelUtil.py | b13b8d7f1b5f39a568d7c2e2153b7974c7c37087 | [] | no_license | zsjkulong/spider | c17932247a2ea4bbab03980293329f4dd14b54c2 | 13b78350fed355f6743fd911ef885dae600de19b | refs/heads/master | 2020-03-20T05:22:47.942043 | 2018-08-06T08:33:46 | 2018-08-06T08:33:46 | 137,212,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,836 | py | import openpyxl
import datetime
import operator
from openpyxl.styles import colors
from openpyxl.styles import Font, Color, Fill,PatternFill
from openpyxl.cell import Cell
from test1.tushareUtil import AnalysisIndexData
import configparser
from test1.Item.indexItem import indexItem
class excelUtil:
sheetName= ['每日指... | [
"zhousijian@travelsky.com"
] | zhousijian@travelsky.com |
775271a58abd0433fdefa7dccf9f7d67305d1eac | 5a8222a754ba01ce9a9c317bf98970a4db033d67 | /slackings/wsgi.py | 12b40e31063e835b00ae8118fe1b3e5927020e5d | [] | no_license | dLook/slackings | 35e342be401b91b170adc35594d35aa0a73b902b | 63943c66626e39e40a89d0fb82aeec3239edc7e3 | refs/heads/master | 2020-03-09T03:54:56.727371 | 2018-04-07T23:16:03 | 2018-04-07T23:16:03 | 128,575,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for slackings 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"dlook@Dinos-MacBook-Pro.local"
] | dlook@Dinos-MacBook-Pro.local |
d91092559747ba009e3bd6de574cea1337cf31a8 | f3502ff306980f9f9fe3807795881ce740bf98a9 | /venv/bin/easy_install-2.7 | e32914450a347e58ba2c8124daf0a8dc562ce695 | [] | no_license | umroh/FirstWeb | df66207e7e10e3be9f67d294253de6e71d43a8a5 | 087e35c8f1517faf14afeeb1e1228a2bebc05300 | refs/heads/master | 2021-01-10T02:02:29.307254 | 2016-03-18T11:14:25 | 2016-03-18T11:14:25 | 52,944,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | 7 | #!/home/umroh/PycharmProjects/prototypeAsisten/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.24','console_scripts','easy_install-2.7'
__requires__ = 'distribute==0.6.24'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('distribute==... | [
"umroh.machfudza@ui.ac.id"
] | umroh.machfudza@ui.ac.id |
adcaed4b3126aaf255a3fd151f53b4cd40aa336d | 8006cd33697ad21689f54891233c111082d5b3df | /components/unusable_model/inference.py | f4357cfbebef3672b4d6fccd4bcf6c9afbdf5e04 | [] | no_license | mytnitskaya/only_unusable_model | b25d41673b6ce52baec2e5c8df53dbfa9f15dbf5 | 656cc3de4b469525bda895dd9f27fb74d66e0480 | refs/heads/master | 2023-05-07T21:16:49.300771 | 2021-05-28T16:43:06 | 2021-05-28T16:43:06 | 371,759,672 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import tensorflow as tf
def main():
physical_devices = tf.config.experimental.list_physical_devices('GPU')
assert len(physical_devices) > 0, "Not enough GPU hardware devices available"
tf.config.experimental.set_memory_growth(physical_devices[0], True)
import os, sys
import argparse
ROOT_DIR ... | [
"mariya.mytnitskaya@rubius.com"
] | mariya.mytnitskaya@rubius.com |
1bce8567d8f1d14ff4bc68b9b00f0fa42b87eeaa | 8fcc4f687e7e451157d7f54689b0d176a1431e40 | /freightforwarding/python/api_query.py | 7b2abeed12e642b30344d0812ef14cb079c077eb | [] | no_license | shipamax/samples | b650b56f1d5582082260874eee1af69e6a16fa26 | c924503ec3c4dc08f1cec19cea0580c994e21a3c | refs/heads/master | 2022-07-13T05:29:43.563066 | 2022-06-23T08:01:15 | 2022-06-23T08:01:15 | 132,764,935 | 2 | 1 | null | 2022-06-23T08:01:05 | 2018-05-09T13:58:40 | C# | UTF-8 | Python | false | false | 1,252 | py | import requests
import json
import argparse
import uuid
from util import login, logout
DEFAULT_HOST = 'https://developer.shipamax-api.com'
def query(_host, custom_id, _token):
""" Query parsing result """
url = '{}{}'.format(_host, '/api/v1/DocumentContainers/query')
custom_id_json = '["{}"]'.format(cus... | [
"fabianblaicher@gmail.com"
] | fabianblaicher@gmail.com |
467db476e9ed6f07be6d963d9636a39636293a3c | 172c7d494865f85ff598c0a7cff4628fcb6477e9 | /milk2.py | 2d695b892024e725b68a3f070c200f68ba1f9dee | [
"Apache-2.0"
] | permissive | dazer-chen/usaco | f9ba5265c959a5b6d0a826249fd80fd8a198223d | 82673a2a235e7393b1f8f610925c1063149176dd | refs/heads/master | 2020-08-06T00:23:09.121745 | 2019-10-04T07:21:14 | 2019-10-04T07:21:14 | 212,769,605 | 1 | 0 | Apache-2.0 | 2019-10-04T08:30:26 | 2019-10-04T08:30:24 | null | UTF-8 | Python | false | false | 1,269 | py | """
ID: tony_hu1
PROG: milk2
LANG: PYTHON3
"""
a = []
m=[]
total = []
with open('milk2.in') as filename:
for line in filename:
a.append(line.rstrip())
num_cows = int(a[0])
for i in range(num_cows):
b = a[i+1].split(' ')
m.append(int(b[0]))
m.append(int(b[1]))
total.append(m)
m = []
tim... | [
"tony@tonys-MacBook-Air.local"
] | tony@tonys-MacBook-Air.local |
06648aa873d47bf1a3429114bfc2a4d5585aa1c1 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_20914.py | 3c20fbf20829f9b981a226ccaa46c39051a43f32 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | # py.test Tracebacks: Highlight my code, fold frames of framework
--tb=short
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
e9698f717dafb868d4d636d00100df973ead155f | 23c8bbd92b7d95055d86b024ff5b00379a7eacea | /core/__init__.py | deb3a1e972a1be849572c12a2eaa172469d3599c | [
"MIT"
] | permissive | bhok/kundouzhishou | b2f867ed545748ad2ab16f53cfeeb3b3684777b4 | 0c9d41e89e51e2217fdbee30cc3494f4ab643010 | refs/heads/master | 2020-12-07T15:20:40.374020 | 2016-07-30T11:29:42 | 2016-07-30T11:29:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import conf
import core
from yunbi_wrapper import yunbi_wrapper
from poloniex_wrapper import poloniex_wrapper
from bittrex_wrapper import bittrex_wrapper
from exchange_pair import exchange_pair
from exchange.yunbi import yunbi
from exchange.poloniex import poloniex
from exchange.bittrex import bittrex
| [
"kundouzhishou@gmail.com"
] | kundouzhishou@gmail.com |
4bdb1d41c5ecb5a22515bf4eef03d89fc2731ce1 | 40f89ee8843b10928d1d2147c7368d498fe931aa | /List Exercise 5.py | d6a9e3b8c5f3e7a120c11e1a693163e28b5ab40b | [] | no_license | the-llama-codes16/the-llama-codes-Python | 56e78b084f7d01f3c60fe94570453ad6d87c0cc6 | a0a48d108adae76fd58509d245214a10973794cf | refs/heads/main | 2023-05-30T08:56:10.807303 | 2021-06-02T14:33:22 | 2021-06-02T14:33:22 | 367,573,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | fname=input('Enter file name:')
fhand=open(fname)
count=0
for line in fhand:
line=line.rstrip()
if line.startswith('From '):
count=count+1
wordlista=line.split()
print(wordlista[1])
else:
continue
print('There were',count,'lines in the file with From as the first w... | [
"noreply@github.com"
] | the-llama-codes16.noreply@github.com |
f294ff625480eee76eba21c36fc1128186724cee | 3c5fc55c8a19f13448fe83061131b761e586e650 | /wishImage/wish_image.py | 4daa23a2acd455b282fe045cc62db0bf4b183ddf | [] | no_license | psstores/E-business | bc2c8e0fd97444688532634b5570965a9e7f7937 | c5890c4b10fd19b73abcc1f2a4747b1c594e5b4a | refs/heads/master | 2021-01-10T04:45:56.105340 | 2016-03-05T08:53:45 | 2016-03-05T08:53:45 | 47,673,252 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #encoding=utf-8
import re
import os
from os import getcwd
import urllib
from bs4 import BeautifulSoup
import time
# url='https://www.wish.com/search/scooter#cid=55ff8599e768aa10f8c45af7'
f=open('temp.html','r')
html=f.read()
soup=BeautifulSoup(html,'html.parser',from_encoding='utf-8')
g_data=soup.find_all('div',{'class... | [
"2669578421@qq.com"
] | 2669578421@qq.com |
4a259a11584bf85810a4da9b13274f6414e5308f | 28483b16e58f04219b9e25640ffbc36360641a0a | /charissa_johnson/belt_reviewer/apps/belt_reviewer/migrations/0002_auto_20170725_1614.py | 0f20ff5c85fe5fbc24b75a96cfb513e70f23956b | [] | no_license | charissayj/python_july_2017 | c69755a4d068440c2799b2b4a37ad15a4fb94a80 | 3939f823646b90b51f5c2d6f64699357728c3ab4 | refs/heads/master | 2020-12-02T06:18:14.106345 | 2017-07-27T20:20:47 | 2017-07-27T20:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-25 16:14
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('belt_reviewer', '0001_initial'),
]
operations = [
migrations.RenameField(
... | [
"charissa.y.johnson@gmail.com"
] | charissa.y.johnson@gmail.com |
11d50c1286a304fed91b138875020fb4bd18920c | c81b633c452616636120daba9ef3fa9a2b2640b3 | /Class10/example_5_tdd.py | 7b14d71ab2eb2ffcea775fc59ec4134f947d258d | [] | no_license | formigaVie/SNWD_Works_201711 | ba3dca2ef4cf74166b8a5c7c804ea01ccc866876 | 16ec6c169a5828cadc515b7612dbfd8638ba7224 | refs/heads/master | 2021-09-07T03:41:36.674833 | 2018-02-16T18:58:47 | 2018-02-16T18:58:47 | 110,582,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#Funktion schreiben, die zu jeder Zahl die Quadratzahl zurückgibt
def square_number(x):
return x**2
def check_square_number():
assert square_number(9) == 81
assert square_number(-3) == 9
if __name__ == '__main__':
check_square_number()
print "Passed ... | [
"manfredg30@gmail.com"
] | manfredg30@gmail.com |
303bdc24b9ea78a05b85cec43ce43fdde458378f | 3eb4d64a8bb0bc240a2ef189724f4d51b5275eac | /heltour/tournament/migrations/0056_auto_20160810_0204.py | e08071bf6059ce3ea2af6bcb2b399bc27522b344 | [
"MIT"
] | permissive | brucemubayiwa/heltour | c01cc88be7f86dce8246f619d7aa2da37e0e0ac2 | fa4e9b06343acaf6a8a99337860e1ad433e68f6b | refs/heads/master | 2021-01-23T19:59:04.099215 | 2017-09-06T03:34:31 | 2017-09-06T03:34:31 | 102,840,526 | 1 | 0 | null | 2017-09-08T08:53:30 | 2017-09-08T08:53:30 | null | UTF-8 | Python | false | false | 850 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-10 02:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tournament', '0055_auto_20160809_2228'),
]
operations = [
migrations.AddFiel... | [
"lakin@structuredabstraction.com"
] | lakin@structuredabstraction.com |
01aaab4806daf83624fce5a5d71e77ac84e3cb95 | 714983fc24c6befe80d426dd94134d09ad2cbdfb | /env/lib/python3.6/site-packages/RestAuth/Services/migrations/0004_delete_old_m2m.py | 31494a3ab34e3a19585de405f5ad81cb7bb1f511 | [] | no_license | sachinlokesh05/login-registration-forgotpassword-and-resetpassword-using-django-rest-framework- | 486354ffb3a397c79afc6cbb290ab1cd637f50ac | 60769f6b4965836b2220878cfa2e1bc403d8f8a3 | refs/heads/master | 2023-01-28T22:19:13.483527 | 2020-01-28T14:07:53 | 2020-01-28T14:07:53 | 233,223,694 | 3 | 0 | null | 2023-01-07T22:10:06 | 2020-01-11T11:49:44 | Python | UTF-8 | Python | false | false | 4,682 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing M2M table for field hosts on 'Service'
db.delete_table('Services_service_hosts')
def backwa... | [
"sachin.beee.15@acharya.ac.in"
] | sachin.beee.15@acharya.ac.in |
52bd5b80c303f7ec03c6a84634f9654784e1fe1c | 2293c76c3d18e2fcd44ded90bd40113d26285663 | /pyeccodes/defs/grib2/modelName_def.py | ca5790b97b3bf22a70902abdc87628726645d7a4 | [
"Apache-2.0"
] | permissive | ecmwf/pyeccodes | b1f121dbddf68d176a03805ed5144ba0b37ac211 | dce2c72d3adcc0cb801731366be53327ce13a00b | refs/heads/master | 2022-04-23T10:37:40.524078 | 2020-04-18T06:30:29 | 2020-04-18T06:30:29 | 255,554,540 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import pyeccodes.accessors as _
def load(h):
def wrapped(h):
originatingCentre = h.get_l('originatingCentre')
if originatingCentre == 242:
return 'cosmo-romania'
if originatingCentre == 220:
return 'cosmo-poland'
if originatingCentre == 96:
... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
fbfc207ef43a7797ae51a3f77a2080848f479024 | d94be223f733daa58ce03f6f2dd701c55355f044 | /docs/data/new_east_st_louis-3.py | 7270fd573042b368984fc13a16e5220c497a576b | [] | no_license | emirdemirel/JAAH | 7bb4f9c2a434e1df34d99596dd294b7c96836bfe | 8c065c3b043ad7ac95241c242bb468fe4c731ec7 | refs/heads/master | 2023-02-10T14:10:52.755206 | 2021-01-07T23:11:02 | 2021-01-07T23:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import siteUtils
siteUtils.show5HexagramsForFileList(['../../../annotations/new_east_st_louis.json']) | [
"seva@ringrows.ru"
] | seva@ringrows.ru |
0b708efca3d4ee6d405876434f35114d143c360c | 37b7c4e552e72951d83ab4bce60edd6a12e3039d | /scraper.py | 9900c568f0ced099c6d71206a95d8871d9638bae | [] | no_license | mjrice04/mass_audobon_scraper | 5f8222ef2ed1601cf9f1cb1da4fb3ce2ee2a945b | 3b0daa68cd0c74f068848d26176af46106bb634e | refs/heads/master | 2020-09-16T18:50:50.454309 | 2020-01-06T04:44:46 | 2020-01-06T04:44:46 | 223,857,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | """
Requirements Take 1
Takes in list of mass audobon locations
Able to scrape the events coming up in the month
Able to tune parameters of search
Able to email this list to my email
What I want to get from this project
Practice Web Scraping
Learning to set up a tool to send emails to me (could be a good reusable... | [
"xricexx77@gmail.com"
] | xricexx77@gmail.com |
3bd95a3b443aa1ebb62757343cb66710a7f88821 | fac77900129f3e11b2b72cd65a4f9e088aaa8bbc | /PythonExercicios/ex112/utilidadesCeV/moeda/__init__.py | 49b54b5b8ecd3111fc70113cce1a95716c8da5d3 | [
"MIT"
] | permissive | Lucas-ns/Python-3-Curso-Em-Video | ff01cc35b383b7c548e4aa1e92e6ed60bad25079 | f6d338fffd7a4606d34fab09634eea0fe4b3dfb3 | refs/heads/main | 2023-03-18T09:02:49.685841 | 2021-03-16T20:45:14 | 2021-03-16T20:45:14 | 348,480,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | def aumentar(preço=0, taxa=0, formato=False):
"""
-> Calcula o aumento de um determinado preço,
retornando o resultado com ou sem formatação.
:param preço: o preço que se quer reajustar.
:param taxa: qual é a porcentagem do aumento.
:param formato: quer a saída formatada ou não?
:return: o v... | [
"nascimentolucas786@gmail.com"
] | nascimentolucas786@gmail.com |
cf804c286316be21436f2bc8bac54f7846881266 | d8148d71f69190e2fb82aac0b241485751a803d1 | /metadata/find_nest.py | c772447d667cdbf9f03dc2710a0712de0ebe13b0 | [] | no_license | MTG/acousticbrainz-labs | df23a3af030260da9817c15b03e3d75910b509e7 | dc0a48ac855c3fa50c3b1496e2cd14eb27a81eed | refs/heads/master | 2022-09-08T10:08:30.304372 | 2021-09-02T10:37:24 | 2021-09-02T10:37:24 | 26,653,441 | 27 | 8 | null | 2022-08-23T17:32:55 | 2014-11-14T19:14:11 | Jupyter Notebook | UTF-8 | Python | false | false | 240 | py | import threader
class EchoNest(threader.ComputationThread):
"""
This thread tries to get data from the echnonest
"""
def _calculate(self):
self.data = ''
if __name__ == '__main__':
threader.main(EchoNest)
| [
"alastair@porter.net.nz"
] | alastair@porter.net.nz |
4a1913a5680d68adee209c5aa25118387d6527a1 | 35a43fd34bccacf87b6b3c1d56cc4573e75ec744 | /notification/message.py | 0e5a93a8072b3a923d450869130dde04c0503bff | [
"Apache-2.0"
] | permissive | silence99/cigarette | 31782b7de18fa7dc9fc038051a60945dd1e21ff4 | 468ada4f40aeaedf0efa5bbed9eb75f23a825737 | refs/heads/master | 2023-03-17T22:05:25.935560 | 2021-03-08T13:47:29 | 2021-03-08T13:47:29 | 345,304,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | from .status import Status
CR = '\r'
CL = '\n'
NewLine = CR + CL
MessageFlags = 'CITI'
Version = '1.0'
MessageType = 'CONFIG'
ContentLength = 'content length'
ContentType = 'content type'
DefaultEncoding = 'utf-8'
Encoding = "encoding"
class Message(object):
def __init__(self):
pass
@classmet... | [
"liuff_yantai@126.com"
] | liuff_yantai@126.com |
3a08573df3e117f7abeacc2d96fc32821ca167f3 | 8ac92ae9f84ef349ac66c8e83bcd7952c45bfdf2 | /trainsite/wsgi.py | 0a3c8d71299ad4f087ed105f2c349b69b0b4f0f2 | [] | no_license | zzy19960618/trainsite | 6bc78b706119ea78624f4a0d20df484e73681958 | 0dc8b87c801a756b3433ff6a51b4af363fb97977 | refs/heads/master | 2020-05-23T23:19:03.913892 | 2019-05-16T09:08:05 | 2019-05-16T09:08:05 | 186,992,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for trainsite 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"zouziyi_9618@163.com"
] | zouziyi_9618@163.com |
469eebafcf857f87276c308ad37773ed5d6351dd | 95ec78292e150591dc0587988cf3a4b9b5ad08c2 | /code/srmcollider/Residues.py | 988d50d1542f6b880b4d90b333ad0cef6cd72721 | [] | no_license | hroest/srmcollider | 40b034f4f1713d94a6f36ed78b3ed67857b47eb7 | 67c0a04fb21a4f089e3aab15d5ee8884b389ec44 | refs/heads/master | 2021-01-18T23:10:14.927217 | 2018-01-15T15:04:25 | 2018-01-15T15:04:25 | 10,242,093 | 0 | 2 | null | 2017-12-05T22:02:04 | 2013-05-23T11:18:25 | Python | UTF-8 | Python | false | false | 18,191 | py | """
*
* Program : SRMCollider
* Author : Hannes Roest <roest@imsb.biol.ethz.ch>
* Date : 05.02.2011
*
*
* Copyright (C) 2011 - 2012 Hannes Roest
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | [
"you@example.com"
] | you@example.com |
f46b7a5482737a9f8febe9dbd264cf281c128fac | 3f06f0c74219805beaca5146934c6b079aeba729 | /1-dive-in-python/hw1/root.py | 27d01911c5baff2234c895dcf9021c187fecd550 | [] | no_license | bolshagin/python-spec | 133b90aad48ca09e2256ea02172e932d8dadfc93 | be573b1164ca2222948369c9041c894d1eb080bd | refs/heads/master | 2022-10-20T11:31:09.511367 | 2020-06-15T17:08:52 | 2020-06-15T17:08:52 | 265,213,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import sys
#a, b, c = 13, 236, -396
#a, b, c = 1, -3, -4
a = int(sys.argv[1])
b = int(sys.argv[2])
c = int(sys.argv[3])
x1 = (-b + (b ** 2 - 4 * a * c) ** 0.5) / (2 * a)
x2 = (-b - (b ** 2 - 4 * a * c) ** 0.5) / (2 * a)
print(int(x1), int(x2), sep='\n')
| [
"bolshagin.nikita@yandex.ru"
] | bolshagin.nikita@yandex.ru |
489eb03b22c1ffffde1be70112c97a985e0f64e9 | ca4b4cb4ce7da93c3a35dab3a877e4a6546edcb4 | /encode.py | 4654e878bd8627bdb271cb1e4192adb443a3a1c5 | [] | no_license | arjun-14/hidden-api | ecb68a193a9e1e8dacc8334b4f5fa429db5e8c6e | 80492197f6160028c383d0fbbf7af0d257367999 | refs/heads/main | 2023-07-13T15:21:29.582878 | 2021-08-24T17:47:45 | 2021-08-24T17:47:45 | 399,554,449 | 0 | 0 | null | 2021-08-24T17:41:26 | 2021-08-24T17:41:25 | null | UTF-8 | Python | false | false | 5,115 | py | from PIL import Image
import re
from io import BytesIO
from fastapi import HTTPException
class encode:
def __init__(self, image, message, content_type):
self.image = image
self.message = message
self.content_type = content_type
def initial_validation(self):
if(not(self.content... | [
"impmmmm@gmail.com"
] | impmmmm@gmail.com |
96764c52211e9e183c77e8463ac38389e6aaee5c | 70ca6ff825eec1cbc818a406a167173d9db9e5a5 | /jdSpider/jd/pipelines.py | c3c132e2a35684a5f95ea651e6df64605288f247 | [] | no_license | guyueyuqi/JDSpider | 2c89e5d4c69e4a427046c330e9994a85ac74616c | 13e933acda61d5519dcb7d4b2de26abb0ef34a74 | refs/heads/master | 2023-06-25T02:45:20.769657 | 2018-03-23T12:05:31 | 2018-03-23T12:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import random
import os
from .items import JdcommentItem
class JdspiderPipeline(object):
def __init__(self):
sel... | [
"369943318@qq.com"
] | 369943318@qq.com |
16653c4264c3452d13d64d7f5be4eaac7e1c0f95 | ebda7a1756f8d9ca89ef6aa9e257d747cbb9186d | /pipelines/templates/pickatlas.py | 22e8943f6e50982f16f40aa91041b986181553e8 | [
"MIT"
] | permissive | villeneuvelab/vlpp | d521ed5f991262575ec2c2cfe41c6e896935568c | 88d3cc43742e594237153c9cdd98efc345836287 | refs/heads/master | 2021-05-14T14:48:47.084329 | 2019-06-11T14:00:38 | 2019-06-11T14:00:38 | 82,604,427 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from vlpp.operation import maskFromAtlas
def main():
output = "${participant}_roi-${refName}${suffix.mask}"
maskFromAtlas("${atlas}", ${indices}, output)
if __name__ == '__main__':
main()
| [
"christophe.bedetti@gmail.com"
] | christophe.bedetti@gmail.com |
701efcd2c2b505fc3ac4e0416b386c15dcc95220 | ee268bca0d0114a543db8f5c979019ea07a8de86 | /djantube/asgi.py | ac2c150f7df8e7f6e3b64e2dba95d285971e2189 | [] | no_license | mehdi-benhariz/DjangTube | 63be28686f3e4330198a0f9158d0d456c0710667 | 646bb32edf2d9da33b71ec78eb3f67e67f22e77f | refs/heads/master | 2022-12-01T11:53:23.419049 | 2020-08-05T10:56:06 | 2020-08-05T10:56:06 | 285,043,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for djantube project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"benharizmehdi20@gmail.com"
] | benharizmehdi20@gmail.com |
4023b90f8758b34748d937ccd2ac854ae94b604a | a83a08f7192f09876b893392faf7f15fb529cd25 | /app/models.py | ba8d9d75e78a663ddae91e2afacf9e1688b2b344 | [] | no_license | jsnyder10/45 | 80d92988f4f6c53b2e2d9ce1cf52223d5d13cf47 | e488ad07c492170311bfac79e740510e17b217ca | refs/heads/master | 2022-09-03T20:02:27.281725 | 2017-07-14T02:56:55 | 2017-07-14T02:56:55 | 96,055,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,173 | py | from hashlib import md5
import re
from app import db
from app import app
from passlib.apps import custom_app_context as pwd_context
import datetime
from dateutil.parser import parse
followers = db.Table(
'followers',
db.Column('follower_id', db.Integer, db.ForeignKey('user.id')),
db.Column('followed_id', ... | [
"jsnyder10@gmail.com"
] | jsnyder10@gmail.com |
8fbeae9a4326bddee26e1a4de2ade8d305654222 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210715223105.py | d97dd858d1598f85d9ebd66b49358181614c0345 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,070 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
343463fe4db8357c595ca5d678bb025251c44331 | 144e2be8fea60da984aee8c75f90af3a67c9d732 | /esempio_controllo_IP/controlla_server.py | df60bd2780b136d355f62d8b0f0f6721d8a246ca | [] | no_license | lukes1582/scripts_python | fff913ac357c67b44e1505a3c05534016cadafa2 | d9dd6a2dae7f9afb6e9d006ac7feb1dd372fd1db | refs/heads/master | 2021-08-22T01:51:36.016718 | 2021-07-14T09:59:10 | 2021-07-14T09:59:10 | 246,614,442 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | '''
Created on 12/02/2021
@author: lukes158@gmail.com l0m1s
'''
import os
import re
import threading
from datetime import datetime
# dichirazione variabili personalizzabili
# indirizzo email a cui inviare i dati
mail = "lukes1582@gmail.com"
# timer PING in minuti
timePING = 5
# timer per l'invio MAIL... | [
"noreply@github.com"
] | lukes1582.noreply@github.com |
99d6070d539a5b867b13698bdd27be4a9352e2b6 | 66e68aae8714d9c74dd99f8a39f9f8c21f3a2041 | /if_while_for.py | f76534ff5b89c23635b6ccec7f3e50a4608befff | [] | no_license | turtlecoder207/Python-Practice | d102d6e0b746824a62d2e51f0f167f5ffa3d205a | 646c20fd9983ebdcc03ce3a9dd1d6a7cb1cc6685 | refs/heads/master | 2021-01-22T03:53:42.094225 | 2017-05-25T14:15:03 | 2017-05-25T14:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | #돈이 3000원 이상 있으면 택시를 타고 그렇지 않으면 걸어 가라
"""
money =1
if money >= 3000:
print("택시를 타라")
else:
print("걸어 가라")
#돈이 3000원 이상 있거나 카드가 있다면 택시를 타고 그렇지 않으면 걸어 가라
money=2000
card=1
if money>=3000 or card:
print('택시를 타라')
else:
print('걸어 가라')
#만약 주머니에 돈이 있으면 택시를 타고, 없으면 걸어 가라
pocket = ['paper','cellphone','money... | [
"chohj377@gmail.com"
] | chohj377@gmail.com |
118bf383996fd25bef8f492def819d9cbe119194 | a5cdeb1246fbc105fb5d5233a8569dd27093870a | /Lab10/EntryApplicationUnitTests.py | ce07df9dae12abe5fa7eb5c8182ccfa56543e9c5 | [] | no_license | gongyiwen/ECE364 | 58bc571cf1711bf0dc2387a81b8cb2611866f3d0 | 24afe1b144ef02e8463dc23fccc5fa63cdb40cbb | refs/heads/master | 2021-05-04T08:38:04.400833 | 2015-11-18T02:27:23 | 2015-11-18T02:27:23 | 45,637,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,914 | py | import os
import unittest
from PySide.QtTest import *
from PySide.QtCore import *
from EntryApplication import *
singletonApplication = None
singletonForm = None
class EntryApplicationTestSuite(unittest.TestCase):
def setUp(self):
"""
Creates the QApplication singleton instance, if n... | [
"gong32@purdue.edu"
] | gong32@purdue.edu |
28bea0e23fcc6f2869cb586ae611db56fe7a8c7f | 1154de9658be97b0c6625a6ae03b8bf4c1875a35 | /src/MyNetworks/beta/testST.py | 8955222a39d3a2b3eba6a9b027770fcb6a2af376 | [] | no_license | ghostotof/stage_s6 | 720bd5be7f357bdf6e326f76f11908ab695c6a6b | 30f8948ccaafc85795aaadd12f206aed528ddcf2 | refs/heads/master | 2021-01-19T17:56:45.206288 | 2014-12-11T14:55:53 | 2014-12-11T14:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,996 | py | #!/usr/bin/python2
# coding:utf-8
from brian import *
from time import time
import pickle
##############
# PARAMETERS #
##############
min_period = 1 * msecond
basePeriod = 125 * min_period
t_pres = basePeriod * 4
# min_weight = -10.0 * volt
# # min_weight = 0 * volt
# max_weight = 1.0 * volt * 10.0
# inc_weight ... | [
"christophe.piton22@gmail.com"
] | christophe.piton22@gmail.com |
b79625e562b14a8677b18af115c52c86d1d2319a | 9ce8cdcc0df179a9b898dac768231ed0ac41249b | /turtle_sort/turtle_sort.py | f844828add18dc00a185f030b59ded9452dcf87b | [] | no_license | maradude/aps-code | 50ce3b7fc3344f049a0497a34bdd0d2e8091669d | afc95535d638967849de48289d064bfd5d0588a9 | refs/heads/master | 2022-10-07T12:35:02.626710 | 2019-03-03T19:52:09 | 2019-03-03T19:52:09 | 171,647,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | def count_turtle_sort_steps(not_sorted, is_sorted, turtle_count):
# find how many turtles don't need to be moved, return the difference
expected_turtle = actual_turtle = turtle_count - 1
need_to_move = 0
while actual_turtle >= 0:
if is_sorted[expected_turtle] == not_sorted[actual_turtle]:
... | [
"martti@aukia.com"
] | martti@aukia.com |
1a7371535df33ccdd563e4b656e57c1ddf539554 | 3019928adaf37fe4acf4444587ee6fd83e634600 | /src/getTotallyNew.py | 7b9600c5b51f2693732348747687ff95eeadd2f0 | [] | no_license | lucian-whu/Project3 | 013c9aace191fdd4c4cdef731e4889f1d80f3e15 | c5735962c7b022c0ef8f290e8dfc9b2ae5eb0839 | refs/heads/master | 2021-05-15T10:11:47.835001 | 2017-10-25T08:27:33 | 2017-10-25T08:27:33 | 108,241,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # coding=utf-8
import csv
with open('D://python_projects//project3//data//acute_myocardial_infarction_MESH_NEW_2006_2010.csv','r') as f:
lines = f.readlines()
for line in lines:
print(line[0])
# with open('','rb') as f1:
# csvReader1 = csv.reader(f1)
# for csvLine1 in cs... | [
"lucianwhu@163.com"
] | lucianwhu@163.com |
bb5ebaf33900bfcc44fdc19ac42207993daeaa5f | 551d993b15f7e54635cc11d7ed3ee45a2e9aacc6 | /AAE/Tensorflow_implementation/unsupervised/regularized_z/model.py | df4e3fcf6ad90ce669025df91eb33dfbcfbcb10a | [
"MIT"
] | permissive | hendrikTpl/GAN_models | 6185a3c112a8b45205bdd4c556164b6153fbec19 | 8234c7f04be39d20fe09f81511b591deab9152a9 | refs/heads/master | 2021-10-25T16:52:13.239290 | 2019-04-05T15:28:06 | 2019-04-05T15:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,844 | py | from component_without_bn import *
class Object:
pass
def build_graph(is_test=False):
# Inputs
images = tf.placeholder(dtype=tf.float32, shape=[None, config.ndim_x])
z_sampler = tf.placeholder(dtype=tf.float32, shape=[None, config.ndim_z])
learning_rate = tf.placeholder(dtype=tf.float32, shape=[... | [
"1019636836@qq.com"
] | 1019636836@qq.com |
4e84c64706c5b3dcde4f84dc13e6085aa18fa72b | 61296b98e4d481893db4bc51d75652c7109ae626 | /0000_examples/cobotta_g.py | 116d8d398c21d519f84520776dd6e95bfdd43b4d | [
"MIT"
] | permissive | Shogo-Hayakawa/wrs | 23d4560b1062cf103ed32db4b2ef1fc2261dd765 | 405f15be1a3f7740f3eb7d234d96998f6d057a54 | refs/heads/main | 2023-08-19T19:29:15.409949 | 2021-11-02T01:22:29 | 2021-11-02T01:22:29 | 423,663,614 | 0 | 0 | MIT | 2021-11-02T00:59:17 | 2021-11-02T00:59:17 | null | UTF-8 | Python | false | false | 1,418 | py | import visualization.panda.world as wd
import grasping.planning.antipodal as gp
import robot_sim.end_effectors.grippers.cobotta_gripper.cobotta_gripper as cg
import modeling.collision_model as cm
import modeling.geometric_model as gm
import numpy as np
import math
base = wd.World(cam_pos=np.array([.5, .5, .5]), lookat... | [
"wanweiwei07@gmail.com"
] | wanweiwei07@gmail.com |
6b668b8f038dc5cb395934f517fcc7da8dada50f | d71ab4eeb925ff1246781ed162de573b46be6ee7 | /Python/lesson_2/exersize_8.py | 8eb36100f7b8e40fb88dc5536980b39ad21d0cc6 | [] | no_license | Tixon74/test | d2cfbd0bd0519dce091bcde368e2f08fb6f5b03c | f85620d0ada0169ee4b67be3bcc8a272f624f13b | refs/heads/master | 2021-04-02T16:52:26.318401 | 2020-04-23T17:58:16 | 2020-04-23T17:58:16 | 248,296,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | int_num = int(input())
while int_num > 0:
if int_num % 10 == 5:
print('yes')
break
int_num = int_num // 10
else: print('no') | [
"tixondamage@gmail.com"
] | tixondamage@gmail.com |
560bbdf2d856311a383f2556ff042c6b24798d81 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/SAF-ENTERPRISE.py | 25f13b95d7e50531041d277cb4e2ad47bc261ce1 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 2,343 | py | #
# PySNMP MIB module SAF-ENTERPRISE (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SAF-ENTERPRISE
# Produced by pysmi-0.3.4 at Wed May 1 14:59:53 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
960fa88e71e4cbe57c6854a3e565830fbc731386 | de9444984bb341ca72337de329f170fe7a1d0e63 | /bin/sqlformat | cb339fe340cf02d691bf9ec3cbbdffa9a569a0dc | [] | no_license | CRcr0/Oauth2Test | bc33fe491a9ee28df275d5e8b18b25f5eafff946 | 6d9116e0dc331a978b6810a55a1a458efcf2331f | refs/heads/main | 2023-09-01T14:43:11.797155 | 2021-10-31T23:16:04 | 2021-10-31T23:16:04 | 423,279,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/Users/xinjianzhanghu/PycharmProjects/TestOauth2/django-vue/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"“1156898468@qq.comssh-keygen -t rsa -C “1156898468@qq.com"
] | “1156898468@qq.comssh-keygen -t rsa -C “1156898468@qq.com | |
b18c5a2b2afb8aa641c036874755e5247c1d83d0 | be78d77bea1a5eea2a7f0d4090e1fc138623b79a | /cybox/test/objects/link_test.py | bac34e34bbbca2617a14995b938c2e2f2505741b | [
"BSD-3-Clause"
] | permissive | CybOXProject/python-cybox | 399f73feb6a54778dca9260b1c0340a3895c6369 | 25e6e8b3a6f429f079d3fbd9ace3db9eb3d5ab71 | refs/heads/master | 2020-05-21T19:05:56.725689 | 2020-05-01T13:33:48 | 2020-05-01T13:33:48 | 7,631,169 | 43 | 31 | BSD-3-Clause | 2020-05-01T12:41:03 | 2013-01-15T19:04:47 | Python | UTF-8 | Python | false | false | 980 | py | # Copyright (c) 2017, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import unittest
from mixbox.vendor.six import u
from cybox.core import Observables
from cybox.objects.link_object import Link
from cybox.objects.uri_object import URI
from cybox.test.objects import ObjectTestCase
... | [
"gback@mitre.org"
] | gback@mitre.org |
23bdac21856e5f762bf57fd760d7ca15c75acd9f | c09f78b725502d7a1aeed9d1b0de3ba47796d211 | /mmd_tools/import_pmx.py | 5a40423541c21fc1b20992f542305892381dac04 | [
"MIT"
] | permissive | usodaraki/blender_mmd_tools | 1d880871c395eb67ad00bf4a6092c30f9004be4c | a12e5b615526248c669170b86e02d0a7b6118ffd | refs/heads/master | 2021-01-17T12:47:34.592505 | 2013-06-29T19:01:23 | 2013-06-29T19:01:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,067 | py | # -*- coding: utf-8 -*-
from . import pmx
from . import utils
from . import bpyutils
import math
import bpy
import os
import mathutils
import collections
import logging
import time
class PMXImporter:
TO_BLE_MATRIX = mathutils.Matrix([
[1.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0],
[0.0, 1.0,... | [
"melanitta_nigra@yahoo.co.jp"
] | melanitta_nigra@yahoo.co.jp |
8d91b25ef38c6a82575e0ce7a3d3056269efe663 | 399f602db61ce825299abfa9331b9dca2c23ef87 | /AIProject.py | f584a8f7b464c2bea469ef9865317c586d6fe263 | [] | no_license | FuzzyCoder20/Virtual-Drag-and-Drop- | bff71b9f29808e9be894cf1e7afb82effcc2db65 | 790db30d91a4ce0517fddb25adddc51f08898bcb | refs/heads/main | 2023-08-23T06:23:15.625179 | 2021-10-08T07:59:08 | 2021-10-08T07:59:08 | 414,892,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py |
#pip install mediapipe==0.8.7
import cv2
from cvzone.HandTrackingModule import HandDetector
import cvzone #Version: 1.4.1
import numpy as np
import time
cap = cv2.VideoCapture(0)
cap.set(3,1280)
cap.set(4,720)
detector = HandDetector(detectionCon=0.8)
colorR=(255,0,255)
cx, cy, w, h = 100, 100, 200, 200
pTime=0
c... | [
"noreply@github.com"
] | FuzzyCoder20.noreply@github.com |
5bdbf01baa6ade72cd727e466d72bc4ba506dd63 | 18a9b3a0edf6544c70ec729aa18e74b7f7e9befa | /models/backbone.py | bccdb347e2befcc6d0cb0ccc7d0e0b9ee235bb3d | [
"MIT"
] | permissive | AustinTapp/Spine-Transformers | 9bb1796a1dfd28b0b288c0ced399c502cbfe495d | b653d6186ac703edf8a871d46e7ad2fa051a28a4 | refs/heads/main | 2023-06-11T22:19:17.732693 | 2021-07-04T14:26:05 | 2021-07-04T14:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | """
Backbone modules.
"""
import torch
import torch.nn.functional as F
from torch import nn
from typing import Dict, List
from models.resnet_no_pool import generate_model
from util.misc import NestedTensor
from .position_encoding import build_position_encoding
class Backbone(nn.Module):
def __init__(self, num_cha... | [
"noreply@github.com"
] | AustinTapp.noreply@github.com |
ad12009b6062e7d7426eb2e5ae598a4e5cf813ed | bab42fa4c574d47f57a6bad221c285676397ecdc | /Week1/Day2_3_FineTuningStringExtraction.py | 452d04047e0121c6f9cca3654cc85f9145cd7ed4 | [] | no_license | neighborpil/PY_WebCrawlingStudy | 7647f85f4610b98ed838fdff1d08d3983ff9b519 | 146f75e2bdb176c920194fdf9ce88b3e76b1ec4a | refs/heads/master | 2020-04-11T05:48:51.389458 | 2018-12-13T09:39:47 | 2018-12-13T09:39:47 | 157,983,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """
# Fine-Tuning String Extraction
- You can refine(개선하다) the match for re.findall() and seperately determine which
portion of the match is to be extracted by using parentheses(괄호).
# 정규표현식
- \S : whitespace가 아닌 문자
- \s : whitespace 문자
- () : 괄호를 통하여 조건식에는 포함되지만 뽑아내는 부분에서는 제외 할 수 있다
"""
import re
x = 'From s... | [
"feelongpark"
] | feelongpark |
bad288ecbd12c0613a3e83bc87a35fb058b0f264 | 521b19d65cd2a12b522e166ea3fff0d90b1171ec | /Notebooks/LPTHW/ex13_dul.py | 3299138be6e6149993678e975c6d108e95b1bb44 | [] | no_license | sescoto/intro_ds_sat_feb_2018 | e121aae624bccfbc5c17061f52657e0e5d425813 | 32d4e43bf6a653aa3b54c2f32ff4ef589701a1c8 | refs/heads/master | 2021-08-22T03:17:53.389013 | 2020-04-25T06:53:51 | 2020-04-25T06:53:51 | 171,802,043 | 0 | 0 | null | 2019-02-21T04:48:34 | 2019-02-21T04:48:33 | null | UTF-8 | Python | false | false | 228 | py | script, first, second, third = "ex13_dul.py", "hola","bola","super"
print("The script is called:", script)
print("Your first variable is:", first)
print("Your second variable is:", second)
print("Your third variable is:", third) | [
"jpdebotton@gmail.com"
] | jpdebotton@gmail.com |
38bbcf1c7fd0aaa56a14c15e19764477da9b8d5b | 8bf0b8107521b03a1ebd4789f19cbb2f47380a88 | /BSmodel_modified/root_finding_algorithms.py | 537e386e647c91de3f9b2f48c0988aace2bf06ef | [] | no_license | dp540788912/OptionGreeks | d49cc59eec70cfb94918952db869a3db730678a3 | 1d004a6f04ac0b8090d188907f4b4128d273123f | refs/heads/master | 2020-07-28T20:57:05.980493 | 2019-11-29T13:12:10 | 2019-11-29T13:12:10 | 209,535,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,584 | py | import numpy as np
import pandas as pd
from datetime import datetime
from datetime import timedelta
import warnings
def bound_adjustment(target_function, lower_bound, upper_bound):
initial_search_range = upper_bound - lower_bound
max_iter = 100
_iter = 0
while target_function(lower_bound) * target_fun... | [
"deng.pan@ricequant.com"
] | deng.pan@ricequant.com |
1e8fed92b77867c5a707bc1e8cdaed3ff6f5566b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/20ed819acd6f85b1facda3b799d3c24b3ada7ad6-<run>-bug.py | 9d67f4caf81ac18c3daab8feb6cc8736cb5c336a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | def run(self, terms, variables, **kwargs):
if (not CREDSTASH_INSTALLED):
raise AnsibleError('The credstash lookup plugin requires credstash to be installed.')
ret = []
for term in terms:
try:
version = kwargs.pop('version', '')
region = kwargs.pop('region', None)
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6695e43b08ccf097696b09c23a6d6000166142d9 | 214e13b750665cffb2fad32e2020b1e003780655 | /4/4.4/foods.py | 197ee0522f9890e4c53dea6dadc7d6debe53e55c | [
"Apache-2.0"
] | permissive | liqiwa/python_work | ea4a1139b6dced941377d0baf5363a3cf6d683b8 | 3d1198d5616b28a37fee7dfba5bbef0e1d489c2d | refs/heads/master | 2021-07-08T06:28:03.085223 | 2020-07-18T07:57:13 | 2020-07-18T07:57:13 | 138,620,066 | 0 | 0 | Apache-2.0 | 2020-07-18T07:57:37 | 2018-06-25T16:17:02 | Python | UTF-8 | Python | false | false | 298 | py | my_foods = ["pizza","orange","falafel","carrot cake"]
friend_foods = my_foods[:]
print(friend_foods)
my_foods.append("my_foods + 1")
friend_foods.append("friedd_foods + 2")
print(my_foods)
print(friend_foods)
my_foods = friend_foods
my_foods.append('cannoli')
print(my_foods)
print(friend_foods) | [
"menghe163@gmail.com"
] | menghe163@gmail.com |
5834e0a57800b02d71d53f916eb638ef10d37250 | 1dbbe2ecdcfb39850be6b561c7e6495e9125d638 | /HW2/grammar.py | 66fff60f8dec6efeb26c234c9fda1b60f748339f | [] | no_license | itsmenick212/NLP | bf5ec860c2eae3c09426021545d2650651f3f88a | 47a6c3de4f8b28ec42c44d9ee2c3e1c5b31d5105 | refs/heads/master | 2020-12-12T15:52:50.680005 | 2020-07-26T02:39:28 | 2020-07-26T02:39:28 | 234,165,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | """
COMS W4705 - Natural Language Processing - Summer 19
Homework 2 - Parsing with Context Free Grammars
Daniel Bauer
Student: Nick Gupta, UNI: ng2528
"""
import sys
from collections import defaultdict
from math import fsum
class Pcfg(object):
"""
Represent a probabilistic context free grammar.
"""
... | [
"noreply@github.com"
] | itsmenick212.noreply@github.com |
d7a7bfbba34482fc68919c726646fe8255199e3e | 2681edbd35d0ced02cbb995292929b3f73c8df66 | /Keys and Locks.py | 99925433b091e73417f6ac4f4ec96153092685e3 | [] | no_license | vit-aborigen/CIO_woplugin | 46a658b93e939e406f88f4d317ef15d804e3115e | f252730fd8e2efa25735c8a90732608f58fa765b | refs/heads/master | 2020-12-30T12:55:27.688801 | 2019-02-17T18:03:10 | 2019-02-17T18:03:10 | 91,370,583 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | def cut(plan):
if '#' not in plan: return 0
top, bottom, left, right = 1000, -1, 1000, -1
for idx, line in enumerate(plan[1:].splitlines()):
if '#' in line:
top = min(top, idx)
bottom = max(bottom, idx)
left = min(left, line.find('#'))
right = max(rig... | [
"vit.aborigen@gmail.com"
] | vit.aborigen@gmail.com |
09d3b6f3dc518b71e5ac7013db8d512620bbe1a1 | 7bb64fb43c503e8f2ecf0f02619b539af3401d39 | /test_files/Zr_Vasprun/test_Vasprun.py | adc1d5cc9df5295240f97a9d3801a1ca67e323a4 | [
"MIT"
] | permissive | montoyjh/pymatgen | 13c3179cd4cf5ff521e8380e480b23d35709c379 | 62ecae1c7382a41861e3a5d9b9c8dd1207472409 | refs/heads/master | 2023-06-09T15:02:15.309354 | 2019-04-03T14:39:33 | 2019-04-03T14:39:33 | 42,539,977 | 2 | 2 | MIT | 2019-06-21T17:15:55 | 2015-09-15T18:56:26 | Propeller Spin | UTF-8 | Python | false | false | 99 | py | #!/usr/bin/env python
from pymatgen.io.vasp.outputs import Vasprun
run = Vasprun("./vasprun.xml")
| [
"shyuep@gmail.com"
] | shyuep@gmail.com |
07ef9b577bbbf09e05099ffba90fc0e592f3e466 | c0e45bc202a50f4b0dcc645b5f805596d10958b8 | /datasets/kitti_raw_monosf.py | 606ea8a37d8df1728bc577c923ea30545dcbea4d | [
"Apache-2.0"
] | permissive | visinf/self-mono-sf | 532d3a09ebdce9abb4177517ba521f5f2dc66687 | eec356d95038da49e6705194e6dc0780b750f2b0 | refs/heads/master | 2022-05-17T07:47:37.688855 | 2022-04-18T07:45:27 | 2022-04-18T07:45:27 | 246,596,511 | 240 | 55 | Apache-2.0 | 2022-04-18T07:45:28 | 2020-03-11T14:40:46 | Python | UTF-8 | Python | false | false | 9,440 | py | from __future__ import absolute_import, division, print_function
import os.path
import torch
import torch.utils.data as data
import numpy as np
from torchvision import transforms as vision_transforms
from .common import read_image_as_byte, read_calib_into_dict
from .common import kitti_crop_image_list, kitti_adjust_i... | [
"hurjunhwa@gmail.com"
] | hurjunhwa@gmail.com |
a1014d52d825b419662540a87f34f68956584d91 | 3b56942de9b298d048f73a813a54d496811213e9 | /sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py | d1df52d5d2309fba31ef336a575778b53d8c39f3 | [
"Apache-2.0"
] | permissive | timo955/pulumi-kubernetes | 6b90a180b2ea3e1c48ecfe105bdaf79654edc670 | 155b56cd0718c05fe46e50d5fdbcc2f9a27d9f8f | refs/heads/master | 2023-03-25T07:45:12.781830 | 2021-03-17T20:41:06 | 2021-03-17T20:41:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,634 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outpu... | [
"noreply@github.com"
] | timo955.noreply@github.com |
f4190d398a0299cf47843f1003efe2f9682f091e | 2464a7d05940a2f39231354397cb06f7b2861e0e | /country_errors.py | 3a09672e9ca5469ff078604e404d5a45dfadf1af | [] | no_license | imbiginjapan/python_crash_course | c1226aeafe296d6b78d111f2f6d934579c4676af | 422d3bb32e47af21c5f69ba517fe1da9be2d063d | refs/heads/master | 2021-05-14T03:09:19.772417 | 2018-01-08T01:28:00 | 2018-01-08T01:28:00 | 116,611,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | import json
import pygal
from pygal.style import LightColorizedStyle, RotateStyle
from country_codes import get_country_code
# load the data into a list.
filename = '/media/jeremy/ExtraDrive1/python_cc/pcc/chapter_16/population_data.json'
with open(filename) as f:
pop_data = json.load(f)
# Build a dictionary of popu... | [
"32070505+imbiginjapan@users.noreply.github.com"
] | 32070505+imbiginjapan@users.noreply.github.com |
b4936261a2e0ae4ad21557800d4eb153185b267b | 94a35fa71116c33cbad52522415ffa394b2e98fb | /vanda_jobs/scripts/utils/extract.py | 283b04a009d3e35b1c33b425f57a3e0609234176 | [
"MIT"
] | permissive | TheScienceMuseum/heritage-connector | c6caafe1126737c0bd7e98ed1facf562bd69dc27 | 77c994d7ba7253bd81140a2202bf8b03b6082e43 | refs/heads/master | 2023-02-19T08:40:02.619873 | 2022-10-10T13:37:04 | 2022-10-10T13:37:04 | 248,162,073 | 16 | 3 | MIT | 2023-02-14T22:20:49 | 2020-03-18T07:08:40 | Jupyter Notebook | UTF-8 | Python | false | false | 1,304 | py | import bz2
import gzip
import fnmatch
import json
import os
def bz2Reader(folder_path):
print(f"checking {folder_path}, {os.path.isdir(folder_path)}")
for dirpath, dirnames, files in os.walk(folder_path):
count = 0
for f in fnmatch.filter(files, "*.jsonl.bz2"):
fileName = dirpath ... | [
"warriorwomenblog@gmail.com"
] | warriorwomenblog@gmail.com |
00884fcc431f3b0fc1c306f662977b63ebc1c16c | 743da4642ac376e5c4e1a3b63c079533a5e56587 | /build/lib.win-amd64-3.6/fairseq/modules/quantization/pq/modules/__init__.py | b6881e26bb167f75f55dacfac72238979dd74f80 | [
"MIT"
] | permissive | tmtmaj/Exploiting-PrLM-for-NLG-tasks | cdae1b6e451b594b11d8ecef3c1cd4e12fe51c9b | e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5 | refs/heads/main | 2023-06-16T08:26:32.560746 | 2021-07-14T17:50:19 | 2021-07-14T17:50:19 | 371,899,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .qconv import PQConv2d # NOQA
from .qlinear import PQLinear # NOQA
from .qemb import PQEmbedding # NOQA
| [
"qkrwjdgur09@naver.com"
] | qkrwjdgur09@naver.com |
ab91db034cc7f44e288520021e2620e5204b634a | 4a180430fc0dc4dd8b5948728bc5b50ac77d1662 | /ghcnFTP.py | 090c0840467038a6730b36248c23156b11cf7176 | [] | no_license | johnmchristensen/NOAA.Python | 56a0faf01d1de1bd759a2d519b808a8f6ee0ba9c | 855f5a339bef57c8b9ada6e00b9ea3e1063ac888 | refs/heads/master | 2023-03-19T02:05:09.939088 | 2021-03-14T22:01:31 | 2021-03-14T22:01:31 | 346,199,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | from ftplib import FTP
from stationInfo import StationInfo
from stationData import Station
from stationData import MonthData
def getAllStationInfo():
class Indexes:
LATITUDE_INDEX = 11
LONGITUDE_INDEX = 21
ELEVATION_INDEX = 31
STATE_INDEX = 38
NAME_INDEX = 41
GSN_FLA... | [
"john.m.christensen@icloud.com"
] | john.m.christensen@icloud.com |
f0f0fcb3fdee07b36435350efebe87d77cde8406 | 8a9f1128a3ad23b8f6bfda17335f5b5110dbcc4d | /resources/user.py | c275b4d3a13b2ea32129ad684ca38ddb2cc3c937 | [] | no_license | cspineda/stores-rest-api | 7dcc339d68c44f41c5e7596538f7a34f29eb76fc | aa290f2928a527c45f46cc415a6a429f936cec93 | refs/heads/master | 2023-03-25T03:20:41.697525 | 2021-03-06T11:07:11 | 2021-03-06T11:07:11 | 343,125,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | from flask_restful import Resource, reqparse
from werkzeug.security import safe_str_cmp
from flask_jwt_extended import (
create_access_token,
create_refresh_token,
get_jwt_identity,
jwt_required,
get_raw_jwt,
)
from models.user import UserModel
from blocklist import BLOCKLIST
_user_parser = reqpar... | [
"cspineda559@gmail.com"
] | cspineda559@gmail.com |
f89d77ec7050a0b3fad826498e49acf3dae1ad69 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4060/157004060.py | 58e52da8c9b818275d320822a6d5a4d065d5c91c | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,347 | py | from bots.botsconfig import *
from records004060 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'NP',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 99999, LE... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
a0593e35dc2c449e0f9aa7678f6ceccdf3b5f2db | e8a45018a6a906a88418d7aaf2a28507125c673a | /test_filter.py | c3cb804e80d2e907e6189387cb7ed277c9d87193 | [] | no_license | shtormnick/test_saucedemo | e0ed742f2fe0b596e91384581306e7f2d7600ed8 | 911e3ded07d14b483a5e416e4156d4b6433f4e7c | refs/heads/master | 2023-06-26T20:47:57.614274 | 2021-08-02T10:37:12 | 2021-08-02T10:37:12 | 389,844,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | import pytest
from pages.product_page import ProductPage
@pytest.mark.main_test
class TestLoginFormProductPage():
@pytest.mark.checker
def test_guest_can_see_title(self, browser, setup):
link = "https://www.saucedemo.com/inventory.html"
self.page = ProductPage(browser, link)
self.page.... | [
"foxred324@gmail.com"
] | foxred324@gmail.com |
0b5be72076ca98cc30b6d85fe652a33a31717b3d | cec83c5873317bf8f7e9f963115278c874430cb2 | /c09/enter_text_count_words.py | 66792654428d85e6ce3aa19f5c0da4b930073e67 | [] | no_license | qualityland/Python_for_Everybody | 9ab7bb5094158e9eed63b69cb1bc2bd7f34a603f | 280265ddde40787190a503d880b30dad3ea5d141 | refs/heads/master | 2023-08-19T08:46:37.272285 | 2021-10-14T14:50:30 | 2021-10-14T14:50:30 | 409,518,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | text = input('Enter text: ')
words = text.split()
print(words)
d = dict()
for word in words :
d[word] = d.get(word, 0) + 1
print(d)
| [
"stefan.joachim.schmidt@gmail.com"
] | stefan.joachim.schmidt@gmail.com |
e4ba71bf1ba724c0db53d8730a07c16ea26d3366 | ef8f2a5dee38b6355ffa9c23dedde2fc112298ff | /examples/simpyx/simpyx1.py | 6b5aff7839e7082eecd241e3f04c0f362d28fe3e | [] | no_license | ambrosiano/python-x | 3c873f27f17c8bcc9f3dfd40ac9a10372055373c | 09d032e7824472a58d9ee7f9908aeae43eb550f9 | refs/heads/master | 2021-01-16T23:05:52.179326 | 2019-09-19T04:00:59 | 2019-09-19T04:00:59 | 70,008,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from simpy import *
def car(env):
while True:
print('Start parking at %d' % env.now)
parking_duration = 5
yield env.timeout(parking_duration)
print('Start driving at %d' % env.now)
trip_duration = 2
yield env.timeout(trip_duration)
if __name__=='__main__':
... | [
"ambro@lanl.gov"
] | ambro@lanl.gov |
c21de1b9fb27178980aa03e7d7e2310507622237 | 9b30a517b5b74b58e5ffd1e63378b79d77fb6e32 | /Python/ER para AFD mínimo/python/state implementation/ER_AFD.py | db3025e77656020b48aef2505fa287004b7e7613 | [] | no_license | Daniel-Aragao/Compiladores | 067d044984473cfdfd84a942b0a8c6fbeaf8d353 | 5720bd0689a6144f81d44fbd2f8f300f70eab039 | refs/heads/master | 2020-03-10T01:41:42.721942 | 2018-04-07T16:57:21 | 2018-04-07T16:57:21 | 129,116,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from Lexical import LexicalAnalyzer as LxA
from ER_AFNE import ERtoAFNE
from AFNE_AFD import AFNEtoAFD
# entry= 'e(e|d)*' falta implementar os ()
# entry = 'e|d'
# entry = 'e*'
entry = '78d2'
tokens = LxA.analyzer(entry)
root = ERtoAFNE().convert(tokens)
matrix = AFNEtoAFD().convert(root)
print(root) | [
"thiago.maia971@gmail.com"
] | thiago.maia971@gmail.com |
089468f8e1f36838097225d9dd164abf436d4917 | 25d6f09c8157dfc70becd19aa43361eb7b52de1b | /tests.py | 2413f1ebdf7d52f4f8c6c594ba207be724d5ad1e | [] | no_license | eguzmanf/s17c126-microblog-git | b78d8f9c5a1964e934a4d2ac40765c91a47555da | 420a6873f88c06bff6db636705c7558fb5a0430b | refs/heads/master | 2022-12-28T04:59:41.477266 | 2018-08-08T21:12:29 | 2018-08-08T21:12:29 | 144,066,834 | 0 | 0 | null | 2022-12-08T02:21:19 | 2018-08-08T20:57:29 | Python | UTF-8 | Python | false | false | 3,616 | py | #!/usr/bin/env python
from datetime import datetime, timedelta
import unittest
from app import create_app, db
from app.models import User, Post
from config import Config
class TestConfig(Config):
TESTING = True
SQLALCHEMY_DATABASE_URI = 'sqlite://'
class UserModelCase(unittest.TestCase):
# setUp() => wh... | [
"guzman.exe@gmail.com"
] | guzman.exe@gmail.com |
9473a6fe8f89b5541d5abb47dac6dc45376dbe01 | bd8fd0c735daeb93ae10dbdd58a224204790e05d | /sale_order_line_margins/models/sale.py | 8a00bcf4c3661b2a7dd392799f9b0411d8c4f153 | [] | no_license | Liyben/vertical-instaladores | 87f3906240d2802c90b24e4402d48f33f468311b | 623a4ee3745c84cff383fa52f65edf7e8806435e | refs/heads/master | 2023-08-30T14:55:39.681612 | 2021-05-28T18:39:43 | 2021-05-28T18:39:43 | 235,099,352 | 0 | 0 | null | 2021-05-28T18:39:45 | 2020-01-20T12:44:53 | Python | UTF-8 | Python | false | false | 895 | py | # © 2020 Liyben
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models, _
from odoo.addons import decimal_precision as dp
class SaleOrderLine(models.Model):
_inherit='sale.order.line'
margin_benefit = fields.Float (string='Margen', digits=dp.get_precision('Produ... | [
"soporte@liyben.com"
] | soporte@liyben.com |
51d7428ae284b0c6df2a73dad8baa582447f9273 | 05276898508e103401ec4dba3b214e192ee38c2f | /pj_tools/test.py | 41fa5513ca3bf8653ba6ed5171f77e0ac64dcee0 | [] | no_license | yiyilinghun/pj | fe7b7ee021d59342ab33456e55fd606f0e6d692e | 70c820c9c101871b9f6b6da58d77b6a8beaaa3d3 | refs/heads/master | 2019-08-31T03:12:44.142984 | 2018-01-05T05:06:14 | 2018-01-05T05:06:14 | 94,193,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,612 | py | ###!/usr/bin/env python
###--coding:utf-8--
### import ptvsd
##import threading
##from multiprocessing.dummy import Pool as ThreadPool
##from http.server import BaseHTTPRequestHandler, HTTPServer
##from os import path
##from urllib.parse import urlparse
##import MySQLdb
##import time
##import os
##import sys
##if len(... | [
"200866850@qq.com"
] | 200866850@qq.com |
52ae3a1a8d1d8f8f7503b9181f015b165f68bf00 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_scrubs.py | 6efbee2e9b847a91a88e3d43d8c1023f95e3fd07 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.nouns._scrub import _SCRUB
#calss header
class _SCRUBS(_SCRUB, ):
def __init__(self,):
_SCRUB.__init__(self)
self.name = "SCRUBS"
self.specie = 'nouns'
self.basic = "scrub"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
40fcdbd078d6c61bc662a0c83e634ccf29e1c9d0 | 32a921f29eb9e2478e1482ba5df26877b6c004db | /myapp/views.py | b7294f518de61601507d7d94993073ebbacfd0ca | [] | no_license | GowriShanker98/P7 | 429f009c892bb07c5a1bd430691c3cce99198e7e | 8705bfff8a59cb07400e9332083bdf5b0a0444bd | refs/heads/master | 2022-11-22T02:31:48.645501 | 2020-07-27T15:38:15 | 2020-07-27T15:38:15 | 282,940,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from django.shortcuts import render
from django.http import HttpResponse
from math import factorial
# Create your views here.
def index(request):
return HttpResponse("<h1>welcome to views of an app</h1>")
def home(request):
return render(request,"myapp/home.html",{'name':"CHITI"})
def fact(request,n):
n=... | [
"gowrishankarkoothappan@gmail.com"
] | gowrishankarkoothappan@gmail.com |
4d43820c4aea93ba07694e36222ea28055300864 | d2939926801729eb91c4075bb6f2b443295af18d | /backend/tests/test_token_auth.py | a85085a059b7f12a26bcfadead307418e3d01d5c | [] | no_license | releaseChecker/release_checker | cfb2e7bb4ab45e025ba15dc90378bd85f16a5a62 | 02fbaf2d74c96586f651cf32eed301adc809c4ff | refs/heads/main | 2023-01-14T07:00:23.576722 | 2020-11-26T03:50:59 | 2020-11-26T03:50:59 | 300,520,624 | 0 | 0 | null | 2020-11-26T03:51:01 | 2020-10-02T06:21:50 | Python | UTF-8 | Python | false | false | 599 | py | import pytest
from rest_framework import status
from rest_framework.reverse import reverse
class TestAuth:
@pytest.fixture
def requiring_auth_url(self, live_server):
return live_server.url + reverse("tag-list")
def test_no_auth(self, client, requiring_auth_url):
response = client.get(req... | [
"roqkfwkehlwk@naver.com"
] | roqkfwkehlwk@naver.com |
71a4f664ac45fcad7b14d47b66424851e5d160ea | 4a06d9c889b5db2b7f9cbce0c39dedfce27876c4 | /Project3_fast.py | 9f4c92e0e604bb16a02fc9f237ec2d1ca281de91 | [] | no_license | Oleksandr-Olefirenko/AlgorithmicThinking | f75fe8a98877deb4ed724cdb680f893fe5830f4b | 3c5986d6003ee1a00e05e736f81540001480469e | refs/heads/master | 2021-05-29T22:03:01.457838 | 2015-08-04T19:08:25 | 2015-08-04T19:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,994 | py | """
Student template code for Project 3
Student will implement five functions:
slow_closest_pair(cluster_list)
fast_closest_pair(cluster_list)
closest_pair_strip(cluster_list, horiz_center, half_width)
hierarchical_clustering(cluster_list, num_clusters)
kmeans_clustering(cluster_list, num_clusters, num_iterations)
wh... | [
"TogusaRusso@gmail.com"
] | TogusaRusso@gmail.com |
e0a92a7830861071ff26621538d111156e36a394 | b6524221787c0bcd1a57484ce562c6bdf2b6c001 | /logger.py | 7a4fc8613dcf460a93b2f46dde1ac7678c774e29 | [] | no_license | kobimic/boiler | 9a489e8c03f37a3fecb85601bae3eac0d405c13b | 21e70158476b7baaf418b9d7da8e1f04307d8f83 | refs/heads/main | 2023-05-02T07:34:11.163150 | 2021-05-15T18:07:47 | 2021-05-15T18:07:47 | 366,294,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import logging
import os
app_name = os.getenv('APP_NAME', 'Boiler')
logger = logging.getLogger(app_name)
console_handler = logging.StreamHandler()
logger.setLevel(logging.DEBUG)
console_format = logging.Formatter("%(name)s | %(levelname)s | %(module)s | %(message)s")
console_handler.setFormatter(console_format)
logge... | [
"kobi.m@claroty.com"
] | kobi.m@claroty.com |
ef2c1f1eda59fbff3084875ec80f14ae00e10fa1 | 01773eac9e1ae4b8477a1ed5b7d2c76e31ee44de | /utils/meter/msemeter.py | a696a1193821d27ebaa03acdb0194a8e9a8b958d | [] | no_license | yifanfeng97/coding | a54615025a4dfa0fa51fed313891f58b39ada128 | 9be1f58b67198a930de76b0b44569770ad0d7719 | refs/heads/master | 2021-04-03T05:53:49.809968 | 2018-03-25T13:23:49 | 2018-03-25T13:23:49 | 124,754,833 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import math
from . import meter
import torch
class MSEMeter(meter.Meter):
def __init__(self, root=False):
super(MSEMeter, self).__init__()
self.reset()
self.root = root
def reset(self):
self.n = 0
self.sesum = 0.0
def add(self, output, target):
... | [
"czqofnju@gmail.com"
] | czqofnju@gmail.com |
e4ed98e057375a8da643e377f7a420d297c0a54c | bfba1e0065ef482971941d3b1aa7eeb7bfdae523 | /visualization/new_get_model_data.py | 820dd76ab62465d9a25c77a61fb290d3b99cb7cd | [] | no_license | mcoppolino/are.na-analysis | d440c87d6320225d8892beab13342b6eb7033b9d | d8cb8ccde5a1573333fd0b02b49d66f09646cd2a | refs/heads/master | 2022-06-25T22:30:44.287120 | 2020-05-08T02:18:12 | 2020-05-08T02:18:12 | 242,257,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | import numpy as np
def get_model_data(path):
with np.load(path + "/svd.npz") as data:
return_dict = {}
types_of_matrcies = ['M', 'T', 'M_U', 'M_D', 'M_V', 'M_U_trunc', 'M_D_trunc', 'M_V_trunc', 'T_U', 'T_D', 'T_V', 'T_U_trunc', 'T_D_trunc', 'T_V_trunc', 'M_hat', 'T_hat']
for t in types_of_... | [
"x.e.loinaz@gmail.com"
] | x.e.loinaz@gmail.com |
1b77f9b58df747702b7f5db704f9356a3d158fde | 1fb512a12fab72900a708bc30efa545118f7d4a4 | /freezeatoms.py | 0ce8d5cd27d287ce10ae766e9b61bc6666958dd8 | [] | no_license | mrnechay/mikescripts | e0cf5c3f5ba85e47e25c1cc5a46fdf026a1a55a1 | ea2552e2a6364234d478bc68dabb01de04d47764 | refs/heads/master | 2020-05-25T11:04:16.366633 | 2015-05-07T21:16:14 | 2015-05-07T21:16:14 | 24,625,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | #!/usr/bin/python
# usage:
# freezeatoms.py coord 1,2,5,10,20
# will freeze atoms 1, 2, 5, 10, and 20 in 'coord' file
import sys, os
coord = sys.argv[1]
frozenList = [int(x) for x in sys.argv[2].split(',')]
cartesianSection = False
atomIndex = 1
newCoord = open("__coord",'w')
with open(coord) as coordFile:
fo... | [
"michaelnechay@gmail.com"
] | michaelnechay@gmail.com |
1c9dd7e26081592920c899a26d9fb7f590119f91 | 867f6ad1c978af2e410742220720bb8d689a01ac | /adminapp/migrations/0006_alter_products_price.py | 0a4ec7df19e0c24370db88f9f9343153571bac89 | [] | no_license | sumisalam/Django_Ecommerce_shop | b12f0c16638de02913baf0280ef74eef604593b2 | 25a1c31aa15c8f9ef3382fd1d36575c05eed8b23 | refs/heads/master | 2023-07-18T14:43:14.338467 | 2021-09-06T13:14:32 | 2021-09-06T13:14:32 | 403,626,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.2.3 on 2021-06-21 15:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adminapp', '0005_orders'),
]
operations = [
migrations.AlterField(
model_name='products',
name='price',
... | [
"sumeenasalam746@gmail.com"
] | sumeenasalam746@gmail.com |
3101dbfa94b6660b8fac02963f5b7480e805d946 | 5a612067f77ae86eea36142460e9cfae5d9e64ee | /.zsh/gitstatus.py | 964fc650f737b12292b546f5ca616bae09924f0c | [
"MIT"
] | permissive | snehesht/dotfiles | d14d9d3622506c003002445b963087413e1ae591 | aa0181ac35517c8217facd4e97ad66610a334a6d | refs/heads/master | 2021-09-28T05:59:50.195167 | 2021-09-17T23:23:49 | 2021-09-17T23:23:49 | 72,886,356 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
import re
import shlex
from subprocess import Popen, PIPE, check_output
def get_hash():
cmd = 'git log -1 --format="%h"'
output = check_output(shlex.split(cmd)).decode('utf-8').strip()
return output
def get_tagname_or_hash():
"""r... | [
"mail@snehesh.me"
] | mail@snehesh.me |
b6ae88cb05a5a7feabddf34c2073a2f2ab4db368 | 489f363c571ee3121922feebc8bf8e92e2179f9d | /wagers/migrations/0001_initial.py | b34af4c88efdc5bbcce1b0376668eb593ea51f69 | [] | no_license | ryanchoe1205/wagering | 4485c6fca5c7050139781193ec90c93b0094ae3c | 6372d5c7ba79b6f6b2aa60a864955f56863ad86d | refs/heads/master | 2021-01-16T18:12:14.342153 | 2013-08-28T13:19:48 | 2013-08-28T13:19:48 | 12,314,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,457 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'WagerSettingSingleton'
db.create_table(u'wagers_wagersettingsingleton', (
(u'id'... | [
"jColeChanged@gmail.com"
] | jColeChanged@gmail.com |
9c765fca0194129caa59e74b70cc204fc59bce14 | cf1e19f7b6354302037bca563b42218df7d79400 | /최단경로/[2307]도로검문.py | 3540a2ab6f4b48e1f02290e4e11b12bf476f0669 | [] | no_license | kim-kiwon/Baekjoon-Algorithm | 680565ddeced2d44506ae6720cf32d8004db42f8 | 4699e6551d3e7451648b9256c54ea4318b71bd4d | refs/heads/master | 2023-04-13T11:10:21.031969 | 2021-04-26T10:50:08 | 2021-04-26T10:50:08 | 325,209,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | #다익스트라 + 경로추적
import heapq
n, m = map(int, input().split())
INF = int(1e9)
graph = [[] for _ in range(n+1)]
previous = [1] * (n+1) #이전 노드 저장
for _ in range(m):
a, b, dist = map(int, input().split())
graph[a].append((b, dist))
graph[b].append((a, dist))
def dijkstra():
distance = [INF] * (n+1)
... | [
"76721493+kim-kiwon@users.noreply.github.com"
] | 76721493+kim-kiwon@users.noreply.github.com |
70fc859e6f0c1a2b989734ed88fb10fcc3455899 | d9936f30ec5010587fad0ac707207bb344fcac5b | /Team 2/slave.py | b8a1f504c247ee0ecf8c9100c6956e79efb6cc01 | [] | no_license | ncss/projects-2018-8 | 4aff4acdbf4f0eab9a3f2469ce084d101628cc7e | abc61f3c5d9d06546847e5e98818d076fc740340 | refs/heads/master | 2021-09-04T01:04:49.759738 | 2018-01-13T19:26:15 | 2018-01-13T19:26:15 | 114,090,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from microbit import *
import radio
radio.on()
radio.config(channel=43)
upper_th = -200
lower_th = -1600
motion_state = "not_moving"
round_start = False
while True:
message = radio.receive()
#(start transmitting time)
if message == "1":
round_start = True
#stop transmitting time
... | [
"noreply@github.com"
] | ncss.noreply@github.com |
ece41af7422e8232631b6226812697070bf3291c | ab3aa69dcaee04ad1ee3f0c4b5086c02f759fa4c | /setup.py | dbb17a87378e6c2de407b53d3b7e6fd0f4f7c75c | [] | no_license | akshaygh0sh/ChessAI | 0030a94e6516c4b92f960f90badc1aebcc61ff2e | 7674ff5c3e73c8d4d847faa9162c0ca3a3f955d6 | refs/heads/main | 2023-06-24T01:09:58.543150 | 2021-07-27T19:37:52 | 2021-07-27T19:37:52 | 339,857,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from setuptools import setup
from Cython.Build import cythonize
import numpy as np
setup(
ext_modules = cythonize("ChessGame.pyx", language_level = "3", annotate = True),
include_dirs = [np.get_include()],
) | [
"akshayghosh@ucsb.edu"
] | akshayghosh@ucsb.edu |
7da78a1be6b833505b7f856351bba9a44121d0c4 | b1c5dd3763542558e22f7e81b0cfca94b99a5da5 | /geo.py | f6ae775f7680297f3a45d2bdeffa177f862ce859 | [] | no_license | jsmcallister98/GeodataVisualization | 6d89fc9044af313396603aaa2e79c7b5eeced679 | ac6255481ffbc9b9ac7b0f5b00f40e57b239032b | refs/heads/main | 2023-05-14T12:19:19.358241 | 2021-05-13T09:21:44 | 2021-05-13T09:21:44 | 366,982,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | import numpy as np
import pandas as pd
import shapefile as shp
import matplotlib.pyplot as plt
import seaborn as sns
from datetime import datetime, timedelta
import geopandas as gpd
# set the filepath
fp = "India_Districts.shp"
#read the file stored in variable fp
map_df = gpd.read_file(fp)
# check dat... | [
"noreply@github.com"
] | jsmcallister98.noreply@github.com |
280f96bebe498d018a6a7490f7d48898c669dd97 | edc0ce97f4b2a33c738a93d1b4421dab8680bd87 | /other_querying_strategies/s2_querying.py | 99226b25f7f4153c74c7dbec32b8f25701aab957 | [] | no_license | maksim96/active_graph_halfspaces | b76f5a9857c60ec3bacefab68bb8702893c20bf6 | aa6d38b56250d034ed8584d6ab73140981de5629 | refs/heads/main | 2023-06-17T16:16:57.245651 | 2021-07-10T18:26:55 | 2021-07-10T18:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,340 | py | import itertools
import graph_tool
import graph_tool.topology
import numpy as np
from labelled_graph_primitives.cuts import get_cut_vertices
from prediction_strategies.labelpropgation import label_propagation
'''
this is a naive implementation of Dasarathy et al.'s S^2 '15
'''
def local_global_strategy(Y, W, alpha... | [
"maximilian.thiessen@tuwien.ac.at"
] | maximilian.thiessen@tuwien.ac.at |
e1c2fca2bad35624293caa5c903e7e1a37fcb96d | e35eb92b5ab6547119585004b9eea3cafe948050 | /efsw/archive/errors.py | 3b9ac8626e58cb7513fc221356b582c5bec573f4 | [] | no_license | einsfr/mmkit | 0a084db85b2cf5ba268e692676095d768733f387 | f12bc2f83254a3123e02abdc105816cc04c438b5 | refs/heads/master | 2020-12-31T05:56:19.287611 | 2016-06-10T05:56:58 | 2016-06-10T05:56:58 | 29,473,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | ITEM_LINK_SELF_SELF = 'Элемент не может иметь связь с самим собой.'
ITEM_LINK_TYPE_UNKNOWN = 'Неизвестный тип связи между элементами: {0}.'
ITEM_NOT_FOUND = 'Элемент(ы) с ID {0} не существует(ют).'
STORAGE_NOT_FOUND = 'Хранилище(а) с ID {0} не существует(ют).'
STORAGE_NOT_ALLOWED_AS_ARCHIVE = 'Хранилище(а) с ID {0} нел... | [
"einsfr@users.noreply.github.com"
] | einsfr@users.noreply.github.com |
afc625c1e0d85c204130fec0ec4348513bb6c180 | db8692575378366957b246a5b5938f67de936386 | /2021/feb/5feb/chef_meetings_codechef.py | 360f3315f7013ff3c4aabecde5f7d98ceb10e7f3 | [] | no_license | adarhp0/coding | 24f474f2a3ef4ef578e33509dc57514563929956 | 63db62efdcdeaae934066c337437afcf52a6e28c | refs/heads/master | 2021-07-10T20:04:54.375292 | 2021-04-03T15:11:06 | 2021-04-03T15:11:06 | 242,801,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | def time_score(ctime):
chef_am_pm = 0
if ctime[6] == "A":
chef_am_pm = 0
else:
chef_am_pm = 12*60
chef_hh = int(ctime[:2]) % 12
chef_mm = int(ctime[3:5])
chef_score = chef_am_pm+(chef_hh*60)+chef_mm
return chef_score
tes = int(input())
for t in range(tes):
chef_time = i... | [
"adarshahp0@gmail.com"
] | adarshahp0@gmail.com |
3d771670cf4e1f444d8547474dd5ddcfff23f50a | e6af27b11dc53f61f04ce0fa4761298c840b91b1 | /demo.py | 3ee73aeff055e47b0f1834bea8af54cbb0535e93 | [] | no_license | rcsevinc/hw1 | a07822a6a0af5bb7fac6d7521455b2cedaec2e9d | 7124182dfa72daffda92ef4a804dd7ddc8b3af2f | refs/heads/master | 2020-02-26T15:49:55.488678 | 2016-10-13T17:13:36 | 2016-10-13T17:13:36 | 70,799,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from flask import Flask
from flask import render_template
from flask import request
from algorithm import *
import yaml
app = Flask(__name__)
import logging
logging.basicConfig(filename='example.log',level=logging.DEBUG)
@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route('/compute', methods... | [
"rcsevinc@gmail.com"
] | rcsevinc@gmail.com |
ca5fb4440d58f32f5c49783d4b7a5aa445777168 | 430b6cc9acf78e68af427dc48822117e16012484 | /P9.py | 1598c37a5790c323d055b83fe2c37bb4b703aaf0 | [] | no_license | ManishBhat/Project-Euler-solutions-in-Python | 86da08e31b3c09b39eb5a6fededf0ef5229b8239 | ae982f4bd72adf6aafb9881c4b63f3244575287e | refs/heads/master | 2023-01-14T02:07:12.745176 | 2020-11-02T05:11:04 | 2020-11-02T05:11:04 | 233,341,400 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 25 02:03:02 2019
@author: manis
"""
n=1000
for i in range(1,n):
for j in range(i,n-i):
k=n-i-j
if k*k==i*i+j*j:
print(i,j,k)
print(i*j*k) | [
"manish.bhat@gmail.com"
] | manish.bhat@gmail.com |
b2d24a26d42b2a0c76b31118dd956f8e49e2a7bd | f205319c1a6af71ee6433a737de4796ac7c145f9 | /task2.py | 6c0b143278a1a507e89c1aaa1f67aeb362f453dd | [] | no_license | photosartd/Math-models-Lab2 | ef1199f01dbd2d1937ff8f622f31d5f7bc7b33a2 | e1dc314ba6193a65e25e6885fbd1e7bc20f5fef9 | refs/heads/main | 2023-05-03T23:05:12.473052 | 2021-04-19T09:21:33 | 2021-04-19T09:21:33 | 359,137,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import numpy as np
round_to = 5
r = np.array([6,9,2])
C_1 = np.array([6,20,20])
C_s = 36992
T = 51
print(r*5)
def task2(r, C_1, C_s, T, t_s=None, if_print=True):
if t_s is None:
t_s = round(np.sqrt((2*C_s)/sum(C_1*r)), round_to)
q = r*t_s
D = round(sum(C_1*r)*t_s*T/2 + C_s*T/t_s, round_to)
... | [
"dmitry.trofimow2011@gmail.com"
] | dmitry.trofimow2011@gmail.com |
bb9e7d7199760f8ffe314a0cf5f8be5ac8ae6737 | 449d2c420958b8f0fa7ad6df656885c17b976090 | /Python Complete course/Simple python/list and tupple.py | c0e0efd69187d28b1b8ad92466f8b38983c5266f | [] | no_license | rehanali4790/Python-Complete-Course | d577f10091d41e1454d2f9521c4107a86e194760 | 526a529f236e03940026816f33e7b0a0971ecaeb | refs/heads/main | 2023-03-27T05:46:43.537739 | 2021-03-23T12:30:06 | 2021-03-23T12:30:06 | 350,698,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | grocerry = ["potato","tomato","ketchup","roll","noodles"]
print(grocerry[::])
#grocerry.sort()
numbers_ = [1,3,89,2,90,67,82]
#numbers_.sort()
#numbers_.reverse()
#print(min(numbers_))
#print(max(numbers_))
#numbers_.append(93)
#numbers_.append(54)
#numbers_.insert(1,2)
#numbers_.insert(0,"numbers")
#number... | [
"noreply@github.com"
] | rehanali4790.noreply@github.com |
9084c5e743b26571e62ba65a4df2d3ec5e68700c | a3972cb6ba32abd18b374975f4abd5318bc95f09 | /project/src/yosigy/api/yosigy_list_views.py | 960d32f8f54604c94ee00262c81979094695a2d5 | [] | no_license | ssr03/MiniDelivery | c57bb45e497cab34787473925663ace46dbb6b2d | 659d9757d1f369a6713aa5a66bab2aa5d6381b8e | refs/heads/master | 2020-07-30T15:05:01.401229 | 2019-09-23T11:52:51 | 2019-09-23T11:52:51 | 210,267,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | import enum
from datetime import datetime
from django.core.paginator import Paginator
from django.db.models import F, Count
from django.http import JsonResponse
from django.views.generic.base import View
from accounts.mixins import LoginRequiredMixin
from restaurant.api.views import CategoryNum
from yosigy.models i... | [
"43363127+ssr03@users.noreply.github.com"
] | 43363127+ssr03@users.noreply.github.com |
1217e3e57869565f3ec42a80986e66bb1d63dbd2 | e00fe1e065b448f6f8c0472ed2b8a39991fa7b1b | /Fuzzy_clustering/version2/dataset_manager/create_datasets_pca.py | 0542341ca3bd78c1d9c10831c04312420e50e87c | [
"Apache-2.0"
] | permissive | joesider9/forecasting_library | 1a4ded5b09fc603f91fa1c075e79fc2ed06c08a8 | db07ff8f0f2693983058d49004f2fc6f8849d197 | refs/heads/master | 2023-03-29T12:18:22.261488 | 2021-04-01T08:57:08 | 2021-04-01T08:57:08 | 319,906,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,155 | py | import os
import joblib
import numpy as np
import pandas as pd
from joblib import Parallel
from joblib import delayed
from pytz import timezone
from sklearn.decomposition import KernelPCA
from sklearn.model_selection import GridSearchCV
from sklearn.preprocessing import MinMaxScaler
from Fuzzy_clustering.version2.com... | [
"joesider9@gmail.com"
] | joesider9@gmail.com |
95357fa5d7cf18a24347b9bda601d56234546e34 | 69b72b3c9c01db229733f9a217ed0a109e916108 | /ex03-algorithm-selection/tests/test_hybrid_models.py | 687d59bf06e3b4c61d707155f43877633e19e380 | [
"MIT"
] | permissive | shushu-qin/automl-hw | 113bf698ff886374877269582b72a2ff6119f372 | 6a810a641c297ecd1d222f912274ff2654a42e99 | refs/heads/main | 2023-08-17T18:29:24.498582 | 2021-10-21T12:46:53 | 2021-10-21T12:46:53 | 409,740,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | import unittest
import logging
from src.aslib import select, get_stats
class TestSelectionHybridModels(unittest.TestCase):
def setUp(self): # This Method is executed once before each test
logging.basicConfig(level=logging.DEBUG)
data = [['a', 1., 'A', 1., 'ok'],
['a', 1., 'B', ... | [
"s.qin-1@tudelft.com"
] | s.qin-1@tudelft.com |
09511399f74ac3c8cf5b85cbba3f50c397a45a36 | 3c6595ed12131dfbf1e15ec0e7cebfb19d418761 | /tests/models/torch/handler_financialNet_NoReference.py | 901572a8b507531f099f1d436faa244a04afe5de | [
"MIT"
] | permissive | RedisAI/aibench | c4d3e742824df85ec9e839b8b0e94c5668aa18c0 | bf0ac872c0fa25754ecacd1322ff9d2f2146fb53 | refs/heads/master | 2023-07-24T03:22:59.587178 | 2023-07-13T07:18:20 | 2023-07-13T07:18:20 | 201,507,583 | 18 | 3 | MIT | 2023-09-07T15:05:06 | 2019-08-09T16:48:13 | Go | UTF-8 | Python | false | false | 3,377 | py | # custom service file
# model_handler.py
# https://pytorch.org/serve/custom_service.html
# https://pytorch.org/serve/logging.html
# https://pytorch.org/serve/server.html
# torch-model-archiver --model-name financialNet_NoReferenceTorch --version 1 --serialized-file torchFraudNetNoRef.pt --handler handler_financialNe... | [
"noreply@github.com"
] | RedisAI.noreply@github.com |
bf261138ee9f64a8877b605647e8315e62e71feb | 09ce79c538f6cc66a51e9fe0e032a0cb9b24f222 | /test/test_echo_udp.py | 4996930ce743f4acdfa63b485d75f83fad717629 | [] | no_license | dlaperriere/misc_utils | d33007adccbbd08a06ab463e5a39b193d8faac00 | 3e04fdfe0f692d644e43f55a8362f0456c79ee88 | refs/heads/main | 2021-08-02T09:23:28.288183 | 2021-07-31T19:05:49 | 2021-07-31T19:05:49 | 60,727,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python
"""
Description
Test echo_udp.py script
Note
- works with python 2.7 and 3.6
Author
David Laperriere <dlaperriere@outlook.com>
"""
from __future__ import print_function
import os
import sys
import unittest
sys.path.append(os.path.abspath(""))
sys.path.append(os.path.abspath("../"))
fro... | [
"dlaperriere@hotmail.com"
] | dlaperriere@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.