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
2014ec8e685ef502f09049145c975e7d7d1c2fc0
97b6d53ed1306db1c284ad9df7034ef035523ad1
/Headline/GetHeadlineCookie.py
b5ecb4d85fb6113ccbf2e20ac2600f5d126b2a2d
[]
no_license
molefuckgo/Spiders
cd7174e65650d10397e4f3f194b58add9fc6c5cc
6c8ba40b1f5258783c1842e5945eed8da6fa0079
refs/heads/master
2022-12-13T23:50:57.498843
2020-01-09T20:06:16
2020-01-09T20:06:16
232,619,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
# !/usr/bin/env python # coding=utf-8 """ @File: GetHeadlineCookie.py @Time: 2020-01-09 16:04 @Desc: """ from selenium import webdriver import time window=webdriver.Chrome() window.get("https://www.toutiao.com/") c1={u"name":u"uid_tt",u"value": u"1f46d8d4bfcbefe9bc65e11e68f7d548",u"domain":u".toutiao.com"} c2={u"name":...
[ "17647361832@163.com" ]
17647361832@163.com
6fdd24a3d6b6ce8ba8f54ce5147babfcf93ea7c7
6d44e17911050ff2516c2c025b852ffe1b864a59
/superlists/urls.py
4b8a451669ee5a9f577b3105f7a4f9bfff21077d
[]
no_license
coa1esce/clash
e0086e9dd93eced80333ad95a46548618a54eedb
b3ef85733f762d6724783257cf816506214a1906
refs/heads/master
2021-01-10T13:08:49.868155
2016-04-07T22:45:21
2016-04-07T22:45:21
55,635,947
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
"""superlists URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
[ "william.deguire@gmail.com" ]
william.deguire@gmail.com
286c2725fa2a7c64423fb359d8742ff3a8f7170a
3f7bd5c0db79b7fbf24b99d93f9a7bb285513fe6
/tools.py
620b108fe0598eaba2693dc7b9cd63b1686e0422
[]
no_license
mfldavidson/dfs_nsc_import_prep
f550d393a66f64329c6671dfac1b74344be9dc79
579b7aa0446070f9f372d5dc4346d6be5284b5bb
refs/heads/master
2022-12-20T21:16:29.971461
2020-11-02T15:59:55
2020-11-02T15:59:55
250,892,888
0
0
null
2022-12-08T10:21:23
2020-03-28T21:02:36
Jupyter Notebook
UTF-8
Python
false
false
2,680
py
from collections import OrderedDict import pandas as pd import numpy as np def extract_record(d): ''' Given an OrderedDict, extract the records and return a list of attributes and a list of columns. ''' record = [] cols = [] for var in d: if var not in ['attributes', 'url']: # Skip th...
[ "jmagdavidson@gmail.com" ]
jmagdavidson@gmail.com
61f6dfee794cce2f3c3049caa511c66cc76090fd
6119f01302e1412bb6987266bf49b037d5560d30
/up_load/migrations/0001_initial.py
39feac41ed81c4509a2636739088af12ed6b7016
[]
no_license
wangdiaodiao520/Marketing-data-management
ce3a92b7531f823633a74e95542cc30d694c2619
e1864423229bbe26d1a661ef3db2e6f779a00fb7
refs/heads/master
2023-02-01T10:09:00.158293
2020-12-17T09:26:54
2020-12-17T09:26:54
310,980,322
0
0
null
null
null
null
UTF-8
Python
false
false
1,516
py
# Generated by Django 2.0 on 2020-11-03 17:49 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Channel', fields=[ ('id', models.AutoField(pr...
[ "15075747143@163.com" ]
15075747143@163.com
af363d021e5648986bed5c80abd2f2829a4eac67
7024f5e954fa46dc266eedcde54b5bd32e5cd8c0
/users/views.py
1a6e718191a843d270f45fe705f9c5fd16e18b0b
[]
no_license
rahulg510/blogger
25e9a6105dd37ef3102386e6d2b8924cdfa0b0d1
8bb62d16908a5bb61e8d3e1b8b8057092d73cdfd
refs/heads/master
2022-04-27T03:13:43.511502
2020-04-18T07:02:05
2020-04-18T07:02:05
255,612,691
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from .forms import RegistrationForm def register(request): if request.method == 'POST': form = RegistrationForm(request.POST) if form.is_valid: form.save() username = request.PO...
[ "rahulg510@live.com" ]
rahulg510@live.com
c5cf8aee1be268414aa93dbc592e7fed079198c0
d84ac0465808797072ee6da70a42113b938777c1
/distance/traj_dist/lcss.py
504292478e3672893ea2963457dacedb65b72ad7
[]
no_license
mattkennedy416/Big-Time-Series-Analysis
d0c4520d7db27c2d805c5353a3e9e813dd9b1995
ae60833095fe99ee2dd2a85c1f69cf8748d95883
refs/heads/master
2020-04-16T08:30:20.064962
2019-02-21T04:58:39
2019-02-21T04:58:39
165,427,239
0
0
null
null
null
null
UTF-8
Python
false
false
1,916
py
from distance.traj_dist.basic_euclidean import eucl_dist from distance.traj_dist.basic_spherical import great_circle_distance ###################### # Euclidean Geometry # ###################### def e_lcss(t0, t1, eps): """ Usage ----- The Longuest-Common-Subsequence distance between trajectory t0 an...
[ "mattkennedy416@gmail.com" ]
mattkennedy416@gmail.com
4661588400a58471995f03dc263819540a3d00a2
fcd6647e9e8861bf05aa678faba4b913074edf3e
/mbed-os/tools/build_travis.py
13a3d6f0c81cae1ba74a0d81b80d6ad54240383b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ashok-rao/BLEClient_mbedDevConn_Watson
a23386def82d0da5fc8bbbe3fc79cbeb93a37e92
f162ec8a99ab3b21cee28aaed65da60cf5dd6618
refs/heads/master
2020-06-23T07:50:16.852047
2017-07-14T09:10:05
2017-07-14T09:10:05
74,658,976
1
3
NOASSERTION
2020-03-06T23:26:39
2016-11-24T09:40:20
C
UTF-8
Python
false
false
12,313
py
#!/usr/bin/env python2 """ Travis-CI build script mbed SDK Copyright (c) 2011-2013 ARM Limited 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 Unle...
[ "Ashok.Rao@arm.com" ]
Ashok.Rao@arm.com
5be6010f3a856a416a0282d5b935f9e45d4e5abb
03f5ab2084198aa585be4a305c60d70cb16a93ee
/ex19.py
19cecb1d9194f814e48327fd85bf9a98b2545582
[]
no_license
Izaya-Shizuo/lpthw_solutions
b156c0f2f80ad002464e62783c65f36ace2b54db
b2be3c4d849265f952652c2680028fd582c3a67a
refs/heads/master
2021-01-10T16:26:53.208425
2015-12-24T07:51:37
2015-12-24T07:51:37
48,531,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
# Defining the function here with two arguments. The function prints the values of the arguments def cheese_and_crackers(cheese_count, boxes_of_crackers): print "You have %d cheeses!" %cheese_count print "You have %d boxes of crackers!" % boxes_of_crackers print "Man that's enough for a party!" print "Get a blanket...
[ "izayaikebukro@gmail.com" ]
izayaikebukro@gmail.com
78374d045b6f66c2b39d4930157a45720df92186
2474ddeb131e641f097ed137d0f25b378c4b1a30
/migrations/versions/4b754e76ffe5_.py
51a9200cf0185a7eb77729acee7ca9ee8a853a42
[]
no_license
fatetwist/blog
7f44c6546b818c2bc2d66697ee78b1c1bcc27008
68ff35c6f71813c70df7427820683c39d84298e4
refs/heads/master
2021-08-28T04:49:58.051933
2017-12-11T08:02:13
2017-12-11T08:02:13
112,607,498
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
"""empty message Revision ID: 4b754e76ffe5 Revises: 77f969a8abc1 Create Date: 2017-11-30 20:01:27.313714 """ # revision identifiers, used by Alembic. revision = '4b754e76ffe5' down_revision = '77f969a8abc1' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): # ##...
[ "591210216@qq.com" ]
591210216@qq.com
db19624cb6bca80ea8e281560b363a90983a931b
ab13fe1bd925fc20f60b8bdfb44d8ed9ca437462
/Python/tempCodeRunnerFile.py
626dbfa1170c4ccf7320fbcf717fbffa8d7b21ef
[]
no_license
chaitanyakette/TechFiles
a5fc9b2f1f81cef3e3aaa47e08ace3a1f5ffb3cc
cfe66811439cdfe98ce965df1428887818ccc4b0
refs/heads/master
2023-07-13T23:57:12.714638
2021-08-23T17:28:53
2021-08-23T17:28:53
399,188,962
0
0
null
null
null
null
UTF-8
Python
false
false
14
py
c=c+1
[ "chaitmoun@gmail.com" ]
chaitmoun@gmail.com
323a4c7eddab68f041ff6fe4f9828b26f769b0ca
525c6a69bcf924f0309b69f1d3aff341b06feb8e
/sunyata/backend/chainer/core/map/power.py
f883795e8d4b0bb7d086f28a97f498406b350ed9
[]
no_license
knighton/sunyata_2017
ba3af4f17184d92f6277d428a81802ac12ef50a4
4e9d8e7d5666d02f9bb0aa9dfbd16b7a8e97c1c8
refs/heads/master
2021-09-06T13:19:06.341771
2018-02-07T00:28:07
2018-02-07T00:28:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
from chainer import functions as F from ....base.core.map.power import BasePowerAPI class ChainerPowerAPI(BasePowerAPI): def __init__(self): BasePowerAPI.__init__(self) def pow(self, x, a): return F.math.basic_math.pow(x, a) def rsqrt(self, x): return F.rsqrt(x) def sqrt(se...
[ "iamknighton@gmail.com" ]
iamknighton@gmail.com
fd494bed9ae526726c9566484dca2746fcf315b4
a024eb30d51fd73d1366def184b91f2b4159f3d1
/python/專案3LBOT/抓天氣.py
18c5bd47caa4184adb51426a0a234af274aa1bd9
[]
no_license
ooxx2500/python-sql-for-test
e4e084719374157cc8bd87e0f62fb2f5d71eb397
66f6ce9f500d2a5eeac162bfc5de321b305c0114
refs/heads/master
2023-02-19T08:19:10.541402
2021-01-18T17:04:16
2021-01-18T17:04:16
266,665,158
0
1
null
null
null
null
UTF-8
Python
false
false
3,207
py
# -*- coding: utf-8 -*- """ Created on Sat Jul 25 01:25:37 2020 @author: 莫再提 """ import requests from bs4 import BeautifulSoup def check_weather(city): citynumber=[20070335, 20070568, 20070569, 20070570, 20070572, 22695855, 22695856, 2295794, 2296315, 2296872, 2297839, 2301128, 2303611, 2304594, 2347336, 2306179,...
[ "ooxx2500@gmail.com" ]
ooxx2500@gmail.com
b33fb5e2e744096ee753cca7e42a61f4e3f7efdd
a7092612d3b9f53d8e9585006a0f69fe8de10c55
/blog/blog_api.py
26446cb07e8f52ac2f6ccddac3addceaf99d2949
[]
no_license
Surfingbird/PythonTPRep
bc2fc80869a85d30c178325bc5221c23fb1a6a56
dc94822e966fa6b7af1630be13bc44a97716b062
refs/heads/master
2020-03-30T04:47:15.722204
2018-12-10T21:11:50
2018-12-10T21:11:50
150,761,775
0
0
null
null
null
null
UTF-8
Python
false
false
9,322
py
import pymysql.cursors from hashlib import md5 import configparser class BlogAPI: def __init__(self, path_to_config=None): path_to_config = path_to_config or 'settings.config' config = configparser.ConfigParser() config.read(path_to_config) host = config.get('Settings', 'host') ...
[ "a.baronskiy@mail.ru" ]
a.baronskiy@mail.ru
55ffff92327e8de2093937623f78cd5e42b87c18
38f4a7ab5d174baab0fe7c0e45b7bd0b23fa9b91
/Python/Exe04.py
14952f564b92c2cdf562dc9a24f731824d9e05a3
[]
no_license
ranjiewwen/Everyday_Practice
764b7d89d6aecea3423980d30acc1985a40e7715
b12855d0414d7d64571093ec0b69ba775eda2068
refs/heads/master
2020-04-15T14:30:23.139626
2018-12-28T05:14:27
2018-12-28T05:14:27
54,867,492
8
1
null
null
null
null
UTF-8
Python
false
false
1,577
py
# coding: utf-8 var1 = 1 var2 = 10 del var1 #var3=ceil(4.3) var3='hello world!' var4='Python Rundo!' print 'var1[0]:',var3[0] print 'var2[1:5]:',var4[1:5] var5='hello world!' print '更新字符串:-',var5[:6]+'Runoob' a='hello' b='python' print a+b print 'H' in a print 'M' not in a print r'\n' print 'my name is %s and w...
[ "532685734@qq.com" ]
532685734@qq.com
d9bec0f6c57a3c8732298f0a3c6a95177cd043cd
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-6378.py
52a0e4f72cbae1d4e1737577e4ff7f5cd9ab764f
[]
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
23,288
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
5f578f05e9eeca2e7a85d76fb6cb42a0d606f54b
8ec910de801b424540abb4e6e955838a287663b6
/Bucles/ManoMoneda.py
7ea1f29e4f99d1de6ef426446f1d5ad4a59e551a
[]
no_license
hector81/Aprendiendo_Python
f4f211ace32d334fb6b495b1b8b449d83a7f0bf8
9c73f32b0c82f08e964472af1923f66c0fbb4c22
refs/heads/master
2022-12-28T03:41:20.378415
2020-09-28T09:15:03
2020-09-28T09:15:03
265,689,885
0
0
null
null
null
null
UTF-8
Python
false
false
1,520
py
# El programa simulará el juego de adivinar en qué mano está la moneda. # Le preguntará a la persona el nombre y cuantas partidas quiere jugar, # luego calculará el ganador. import random def introducirNumero(): while True: try: numeroVecesPartida = int(input("Por favor ingrese un...
[ "noreply@github.com" ]
hector81.noreply@github.com
c5f52c7666b606152434f9ac8390f8a97c2b6e24
611f6102af951691aa3108bcf16b0f13da0ce734
/tests/test_example_dags_system.py
cbf549d8edf21129a85952f566c8d1833597a6c3
[ "Apache-2.0", "BSD-3-Clause", "MIT", "Python-2.0" ]
permissive
marwan116/airflow
6b74dcdd1c7e1819a0160a634a355f90a89983da
e7b8eb7f3189fa587c49a2856dfd570f7625ca78
refs/heads/master
2021-02-07T09:16:40.246909
2020-02-29T17:05:56
2020-02-29T17:05:56
244,007,975
2
0
Apache-2.0
2020-02-29T17:06:22
2020-02-29T17:06:21
null
UTF-8
Python
false
false
1,108
py
# # 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"); you may not...
[ "jarek.potiuk@polidea.com" ]
jarek.potiuk@polidea.com
28eb7a405c2e0bd1f3d508e0392db692e874d22d
0db39ede175595a1cbe397fe76266e41841a072f
/mysite/settings.py
b0e51e58323834d417a941f9f1e1eb8441f53050
[]
no_license
vandlaw7/my-first-blog
a3b382b5bc0ee79d29d2962a60a02a24c1c7817b
cb8b9ce64ea1958b77ef100d140d82c9c2c99ff8
refs/heads/master
2020-12-12T04:38:51.774083
2020-01-15T12:04:15
2020-01-15T12:04:15
234,043,972
0
0
null
null
null
null
UTF-8
Python
false
false
3,187
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.9. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
[ "vandlaw@naver.com" ]
vandlaw@naver.com
7a7e1ce328c51f102ed2cf7acf2c61434b1b49d9
93f73e263f1cb286376da9ea8b23a654a3060f58
/setup.py
ad37fa00f376050751cf92a428b36f9c01dc375f
[]
no_license
chriscz/capstone_wrapper
d71f07157c1819857c9a13767de3935e43246616
26ca3d92d8f67ab295baf85727cabdc24b819f67
refs/heads/master
2021-01-20T03:01:26.466335
2017-02-24T20:07:13
2017-02-24T20:07:13
82,589,737
1
0
null
null
null
null
UTF-8
Python
false
false
446
py
from setuptools import setup __version__ = '0.2.2' setup( name='capstone_wrapper', version=__version__, description='A functional wrapper for capstone Python', url='', author='Chris Coetzee', author_email='chriscz93@gmail.com', license='Mozilla Public License 2.0...
[ "chriscz93@gmail.com" ]
chriscz93@gmail.com
40fe45b75cd461748963249eac96f4ea46ba7896
516f48aab1445f03601507faa8e0be4aa0066b09
/485.Max Consecutive Ones/Solution.py
6b3266f03291485f14b10a4e118d0505db1c3730
[]
no_license
LCKYN/leetcode
5894da8935a15f15aa01f11275f012a8f85113e6
4ccf010cfefee2849b41b3f63c23a88e814e1888
refs/heads/main
2023-07-14T20:23:14.833791
2021-08-08T13:20:11
2021-08-08T13:20:11
364,069,672
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
class Solution: def findMaxConsecutiveOnes(self, nums: List[int]) -> int: for i in range(1,len(nums)): if(nums[i]): nums[i] += nums[i-1] return max(nums)
[ "root@lckyn.com" ]
root@lckyn.com
7a47ac5c645e3e4674a4ab2a914c4082fd04d90d
5b6663056169ca85db13993adba9fe5a7a9bd164
/art_gallery_app/urls.py
897bde8e3fc4dee43a7ea1dc394595a5a21eadb2
[]
no_license
parthbhope/art_gallery_git
4302f78178a67cde5903d9daeef7207f2217de04
4dff6864d8df0eafeeba432b8115536c61861673
refs/heads/master
2022-12-07T06:10:24.876989
2020-09-07T18:10:14
2020-09-07T18:10:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
from django.urls import path from . import views app_name = 'art_gallery_app' urlpatterns = [ path('', views.HomeView.as_view(), name='home'), ]
[ "nikhil.sangwan95@gmail.com" ]
nikhil.sangwan95@gmail.com
8e4b245285f07713e1c4369fdee8f87e0bfeb513
6bee67a6684bb47d45b476b3b3db44608cd6b89f
/main/admin.py
64f7e6e656ea93017b7832dcc31f5e3635b815a7
[]
no_license
crutchweb/mrgsh
729032cf7728fe8311ae4ceab9489cf3781b4716
541bee0a46f07e74429a6256e6d18d5684bfe981
refs/heads/master
2020-06-27T01:11:26.861729
2019-07-31T08:17:45
2019-07-31T08:17:45
199,807,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,757
py
from django.contrib import admin from django_mptt_admin.admin import DjangoMpttAdmin from main.models import * from django.utils.html import format_html def get_picture_preview(obj): if obj.pk: return format_html('<img src="{}" style="max-width: 200px; max-height: 200px;" />'.format(obj.image.url)) re...
[ "ilya@MacBook-Pro-Ilya.local" ]
ilya@MacBook-Pro-Ilya.local
0abd1c788cd3722d148b30f9bf0fad0685983d00
42e3621158be2fead9fe4af2e351a34dca1fac53
/jobs/app.py
0d765039d72c7cff5a4410977dfab438ee0e23e5
[]
no_license
Manofdesign/PythonFlask-JobBoard
24aabbbec933b2bf4a1898c6b1106d1259422756
6399aaf147471cef93c424a1bb6005b31bc5c908
refs/heads/master
2023-01-01T16:41:36.403832
2020-10-28T22:17:13
2020-10-28T22:17:13
298,415,492
0
0
null
2020-09-24T23:09:30
2020-09-24T23:09:29
null
UTF-8
Python
false
false
2,927
py
import sqlite3 from flask import Flask, g, request, redirect, url_for from flask import render_template import datetime PATH = "db/jobs.sqlite" app = Flask(__name__) def open_connection(): connection = getattr(g,'_connection', None) if connection == None: connection = sqlite3.connect(PATH) g....
[ "43456962+Manofdesign@users.noreply.github.com" ]
43456962+Manofdesign@users.noreply.github.com
1f284369bfbe954056b67fc0947ca8007b2caf08
beab30a1bb6ea08abc6bb63e6f22b1ed36c28af3
/pommerman/fight.py
978069671958a5f911bfa025bd3758221cdb3652
[ "Apache-2.0" ]
permissive
davnn/deep_pommerman
e350f2e6d657c5240000357494ed46f100273d75
98375ffbd076ade584309b9feef248e30de77120
refs/heads/master
2023-05-29T17:30:58.582056
2021-06-18T19:22:48
2021-06-18T19:22:48
375,286,652
0
0
null
null
null
null
UTF-8
Python
false
false
6,080
py
"""Run a battle among agents. Call this with a config, a game, and a list of agents. The script will start separate threads to operate the agents and then report back the result. An example with all four test agents running ffa: python run_battle.py --agents=test::agents.SimpleAgent,test::agents.SimpleAgent,test::age...
[ "muhrdavid@gmail.com" ]
muhrdavid@gmail.com
29da5c21f55c6f0560b8849c7880343c04b3024c
ab4d24f955b179190966e1bb90ea71f45c420b38
/scripts/pre-processing/gen_star_results.py
9291da14679e41e9a0f567223aa0ca572760fed4
[]
no_license
ludmercentre/rna-seq_workflow
b59cf88699bf328d0f9f441c15ae3dd5e9773887
df2e1aae95d84bcb491297b1e910871ed203d5a9
refs/heads/master
2023-05-08T03:33:51.385617
2021-05-26T21:00:07
2021-05-26T21:00:07
277,873,548
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
import os import sys import numpy as np import pandas as pd input_folder = sys.argv[1] output_file = sys.argv[2] # Import all STAR output files and append them in results_l list: results_l = list() for file in os.listdir("../{}/".format(input_folder)): if file.endswith("ReadsPerGene.out.tab"): results_l....
[ "pedrobordignon@hotmail.com" ]
pedrobordignon@hotmail.com
6b57aa51eb80cb2ba879e3fe19dc47e190d2b60e
65cefe621c2444d9b793d7969d2e2c3ff54373d1
/analyze/api.py
c831cbc8c9d0c07781dd86cede87b9b4f346509d
[ "Apache-2.0" ]
permissive
leekangsan/HanziSRS
01585e694fbf81428085b8a162acf101f7f5bec1
50f84a9171b61df3305e8922b645b553e895a509
refs/heads/master
2020-03-29T05:19:19.583429
2018-04-28T04:37:35
2018-04-28T04:37:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
import requests from bs4 import BeautifulSoup def jukuu(word): params = { 'q': word } res = requests.get('http://www.jukuu.com/search.php', params=params) soup = BeautifulSoup(res.text, 'html.parser') for c, e in zip(soup.find_all('tr', {'class':'c'}), soup.find_all('tr', {'class':'e'})):...
[ "patarapolw@gmail.com" ]
patarapolw@gmail.com
0698c99303800807bd68f06413f3d56b2238d786
ba2fa46d365a8aaf4db689dbcece501eceb4021d
/DSA/array/REVERSE ARRAY/bySlice.py
2a6d03393db81d44e871baa51a0830a0c3358719
[]
no_license
itzsoumyadip/DSA
81283fb6197d49c242784711d4768230f9ada24d
97188f11b88ed6097679f7ab0682dc3c1c7424f0
refs/heads/main
2022-12-29T23:40:47.051109
2020-10-23T10:17:07
2020-10-23T10:17:07
306,034,999
1
0
null
null
null
null
UTF-8
Python
false
false
194
py
#Using Python List slicing def reverseList(A): print( A[::-1]) # Driver function to test above function A = [1, 2, 3, 4, 5, 6] print(A) print("Reversed list is") reverseList(A)
[ "noreply@github.com" ]
itzsoumyadip.noreply@github.com
296283618e61a02a6f6c8c8516a5ae54f984803f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02766/s873846892.py
1b5165713fefb3469a152f09d2a75411c31b81ee
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
def main(): N, K = map(int, input().split()) ans = base10to(N, K) print(len(ans)) def base10to(n, b): if (int(n/b)): return base10to(int(n/b), b) + str(n%b) return str(n%b) if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
dc626b4ebb260142009e22ea191beae6612323fb
64f1558d2549c2f0b9d3a6fa3200eaf7cc3e486b
/openodia/_understandData.py
52ab2b14e9f0c776897248d7085a7c7388e828fc
[ "MIT" ]
permissive
JanviRaina/openodia
e38b02abd261fdb50f0a634b4279326d77802eff
f33d095afcb2e87108986ecf16a5ee0f59568502
refs/heads/main
2023-08-19T01:43:51.503249
2021-10-10T17:08:26
2021-10-10T17:08:26
411,574,369
0
0
MIT
2021-09-29T07:32:43
2021-09-29T07:32:42
null
UTF-8
Python
false
false
2,286
py
import re from typing import Any, Dict, List, Union from openodia.common.constants import STOPWORDS from openodia.common.utility import LOGGER class UnderstandData: """Tokenizer implementation""" @classmethod def word_tokenizer(cls, text): """Split the text into words""" # TODO: Do not r...
[ "soumendra.s@outlook.com" ]
soumendra.s@outlook.com
5f0c9801ddd45972b8b510d2b70081f2894354c1
b21967593e233242681d5a1879acad00ee2d52c7
/dongtai/apps.py
a939561a0601142fde86b2bb1713361a58d7d96f
[ "Apache-2.0" ]
permissive
Darius-1024/dongtai-core
0796498fee39e14306579ac00a51cfaab10101e7
f98ba3b36897c30f6fd7139de36fae38e607e8c1
refs/heads/main
2023-07-18T11:21:49.166162
2021-08-31T15:44:37
2021-08-31T15:44:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.apps import AppConfig class DongTaiConfig(AppConfig): name = 'dongtai'
[ "dongzhiyong@secnium.cn" ]
dongzhiyong@secnium.cn
44c6d72d5f21383b6d928195d79e3ad79f27b826
5a208abf60e7ca0f7076426e3ec8f37b71883665
/system/storage.py
f9717c7d158eb7e861a5e9c4b61c3cd23c766233
[]
no_license
heynick/weChatIT
c076fd3c05e82c4b09c548b226484768bff9d77c
73911da2d9847b8e759a5ab8cf6d5e4cb54d10aa
refs/heads/master
2021-10-23T08:01:24.326967
2019-03-15T08:39:16
2019-03-15T08:39:16
175,779,792
0
0
null
null
null
null
UTF-8
Python
false
false
877
py
# -*- coding: UTF-8 -*- from django.core.files.storage import FileSystemStorage class ImageStorage(FileSystemStorage): from django.conf import settings def __init__(self, location=settings.MEDIA_ROOT, base_url=settings.MEDIA_URL): # 初始化 super(ImageStorage, self).__init__(location, ba...
[ "hey.nick@outlook.com" ]
hey.nick@outlook.com
a9824d0d81388e7a1c86015a10f71b7baff98af1
1ab8048dee0b503c9371c7ec47979f6135964262
/src/DenseNet/Model.py
c8e0fc8f4252bf97d15086412dc5b12589890cfa
[]
no_license
MoZhouting/ADDetect
7e60e8970dbf04341a19393740213bd469f3604f
881e49b4e73f0470401f16bd637bc35ebe4db4b1
refs/heads/master
2020-04-26T16:27:41.331473
2018-06-19T05:42:57
2018-06-19T05:42:57
137,845,119
0
1
null
null
null
null
UTF-8
Python
false
false
4,035
py
# coding = 'utf-8' import tensorflow as tf import numpy as np from tensorpack.graph_builder.model_desc import ModelDesc, InputDesc from tensorpack.models.conv2d import Conv2D from tensorpack.models.batch_norm import BatchNorm from tensorpack.models.pool import AvgPooling, GlobalAvgPooling from tensorpack.m...
[ "1090898535@qq.com" ]
1090898535@qq.com
b9b94499cb2c65d677f9882700d36123591c641a
1888c630bed201cf97e4f047c7392270dfba749f
/scripts/utils.py
7e50f55f1375ab308e989d7fd7b94ff40562385e
[]
no_license
matchVote/matchvote_ops
ba4ca38df087db61adeb8cadf5b6ed2fc4100e3d
20f00763f43f99ad00ad8e294ec3a15701cf922b
refs/heads/master
2023-03-31T15:18:55.159226
2019-12-23T16:13:55
2019-12-23T16:13:55
103,915,269
0
0
null
2021-03-25T21:42:29
2017-09-18T08:49:41
Python
UTF-8
Python
false
false
163
py
from contextlib import contextmanager import sys @contextmanager def log(message): print(message, end='') sys.stdout.flush() yield print('Done')
[ "jimbonkgit@gmail.com" ]
jimbonkgit@gmail.com
f472b761fec7406623071220b5224871d1110572
1cce4bbf7e6719661e63a05a10e6ca1022f2fc28
/briana_bennett/django_FS/courses/courses_app/urls.py
225ab6d618c92aa38a55cf90c8f9e73b697a0cdd
[]
no_license
mthwtkr/python_april_2017
f85ff49ff27e5ccf677da9a9dadce0b26af66b79
974d2e78ecb0fb9f03cbd4af3f935ed55e2c7545
refs/heads/master
2021-06-18T01:05:40.783921
2017-06-17T17:17:29
2017-06-17T17:17:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index), url(r'^create$', views.create), url(r'^courses/(?P<id>\d+)/delete$', views.delete_page), url(r'^courses/(?P<id>\d+)/destroy$', views.destroy_or_not), ]
[ "bri.bennett89@gmail.com" ]
bri.bennett89@gmail.com
f721fab446ec3c64e7791814788840c03215dd1d
1979325574fdff56026cac0b654dadfd41574ae1
/src/expts/allinPHS.py
39377f0c20a70cc3dcdc02f18cf0e53a15e76221
[ "Apache-2.0" ]
permissive
daStrauss/subsurface
5e45bac80d64a543c7f02fae83266109698b071f
0277c57aa777196d8e6b7d0a3b3f58c2fd39bab8
refs/heads/master
2021-01-23T12:11:39.043513
2013-07-09T06:21:03
2013-07-09T06:21:03
10,812,381
1
1
null
2016-02-23T09:39:29
2013-06-20T04:44:39
Python
UTF-8
Python
false
false
1,284
py
''' Created on Jan 9, 2013 Copyright © 2013 The Board of Trustees of The Leland Stanford Junior University. 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.apac...
[ "dstrauss85@gmail.com" ]
dstrauss85@gmail.com
fdacb5b821ae1e0631dd4fb0cba3ca063ba60457
74264a37ad1b8e4bbdc1069edf7301b7f88dfecf
/eigen_pair.py
37e9b7263d68e74f4ddda50c698342b85b39c637
[]
no_license
JakeStubbs4/MTHE-493
89aceb507bcad52f52e199672af0f0c3de043409
5228ea157f94eb9ce0daff9866cd9a0a390ba8a4
refs/heads/master
2020-08-30T10:50:57.178588
2020-04-02T05:48:54
2020-04-02T05:48:54
218,356,612
1
0
null
2020-01-21T15:14:35
2019-10-29T18:32:37
Python
UTF-8
Python
false
false
259
py
class EigenPair: eigen_value = None magnitude = None eigen_vector = None def __init__(self, eigen_value, eigen_vector): self.eigen_value = eigen_value self.magnitude = abs(eigen_value) self.eigen_vector = eigen_vector
[ "jmichaelt98@gmail.com" ]
jmichaelt98@gmail.com
068d8dce5daa9ac6705c8b77bd447240a513c227
a38bf459ae380f67e0de22f7106a8df4385a7076
/tests/integration/goldens/logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_views_sync.py
b273c465d3ec976b018c54a7b83e2a4218b81327
[ "Apache-2.0" ]
permissive
googleapis/gapic-generator-python
73ce9d52f6f5bb2652d49b237b24263d6637b1da
4eee26181e8db9fb5144eef5a76f178c1594e48a
refs/heads/main
2023-09-04T11:12:14.728757
2023-09-02T10:34:44
2023-09-02T10:34:44
129,809,857
116
65
Apache-2.0
2023-09-12T18:57:01
2018-04-16T21:47:04
Python
UTF-8
Python
false
false
1,852
py
# -*- coding: utf-8 -*- # Copyright 2023 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 or...
[ "noreply@github.com" ]
googleapis.noreply@github.com
c35530d38480de046393b7f5b8eeaa544d902652
34bec6ee7a2e5c6ae90e8b646b34cfaa58bf65bb
/network/embedding.py
b8074b3f7088af7ab2eafb1a9c8058e887e2e744
[]
no_license
ninjatrick/Factored-Neural-Network
b5d68ad6e40bf17397268f76f4abd84f9257bfd1
d7139b78c47019107314174aa10bc9a778198c6f
refs/heads/master
2020-03-26T00:38:45.730539
2018-08-24T06:24:27
2018-08-24T06:24:27
144,329,793
0
0
null
null
null
null
UTF-8
Python
false
false
3,608
py
import tensorflow as tf import numpy as np FLAGS = tf.app.flags.FLAGS class Embedding(object): def __init__(self, is_training, word_vec,pos_vec, word, pos1, pos2,pos3): temp_word_embedding = tf.get_variable(initializer=word_vec, name = 'temp_word_embedding', dtype=tf.float32) unk_word_embedding =...
[ "noreply@github.com" ]
ninjatrick.noreply@github.com
bfac869f0436a17893a452f29634f8a5de14a7c7
3c2dcf75aab54af8e621d53b2c66dbca6bbc70de
/Lc_solution_in_python/0966.py
80de192dcd34cad900a2a150f72ad4c3ccf7948b
[]
no_license
Chenlei-Fu/Interview-Preperation
2169cbd4409dff78590d0ce1d842f1840abea9f3
5dc755560b453d852cc56855515f03a2c69e921a
refs/heads/master
2023-07-08T11:03:39.069933
2021-08-24T02:56:29
2021-08-24T02:56:29
366,813,424
2
0
null
null
null
null
UTF-8
Python
false
false
904
py
class Solution: def spellchecker(self, wordlist: List[str], queries: List[str]) -> List[str]: """ the trick is vowel part since the vowels ('a', 'e', 'i', 'o', 'u') can be replaced they can be translated into * """ def translate(word): return ''.join('*' i...
[ "chenlei.fu@outlook.com" ]
chenlei.fu@outlook.com
b6d2755a36f48a61ed029eb35bd4add95a9a0fc2
c343eb7934cb5e4aa7de1bf7fcbb914546b31f96
/glusterfsrest/fs/lock.py
fbef2691b50e6555101f104eed6f76299d593a87
[]
no_license
farfou/glusterfs-rest
1fa96ce0edcdf150cf79a02435044a44979eb586
2b9c299737c11eb483a1e8e78ebb1ebdc28c8823
refs/heads/master
2021-01-18T01:26:04.352485
2016-03-05T22:35:02
2016-03-06T11:46:39
53,226,576
0
0
null
2016-03-05T22:33:15
2016-03-05T22:33:15
null
UTF-8
Python
false
false
823
py
from threading import Lock as threading_Lock storlever_lock_factory = threading_Lock # default is threading.Lock def set_lock_factory(lock_factory): """set lock factory for storlever This lock should has a context interface(support "with") """ global storlever_lock_factory storlever_lock_fa...
[ "fabien.alin@gmail.com" ]
fabien.alin@gmail.com
feb03a00a8935db7f4557b8168f6365946ed2470
7479c35c5e3290a24892237871b9ff0c67554892
/mycoffee/admin.py
f8482772d211e93c9a2fcd9b28a0f6a11df8d8ca
[]
no_license
waed123/PrimeRose-Coffee
974e1267f67300b8daccb6ec0ac91a5beccc7ae2
7b8cb9b37177bba0da45a9c8c254c1425d03a3a3
refs/heads/master
2021-08-28T15:02:15.015045
2017-12-12T14:31:34
2017-12-12T14:31:34
113,331,896
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
from django.contrib import admin from .models import Bean, Roast, Syrup, Powder, Coffee admin.site.register(Bean) admin.site.register(Roast) admin.site.register(Syrup) admin.site.register(Powder) admin.site.register(Coffee)
[ "waed@AUBs-MacBook-Pro.local" ]
waed@AUBs-MacBook-Pro.local
330aee838bcfa337faecb71ec4cf47d8f2d01a0b
98c95fde2fadb00764769b8ef3c07d50e6e21778
/petsie/migrations/0001_initial.py
a5eb7a7f63d15e2739776b68bef75486e30b7e54
[]
no_license
golrizr/pets
a08c06719b78717297f25f88b78f2c3c13dd8970
67692074a0c33a457755cc10a0ec15482a6cdd6f
refs/heads/master
2021-01-13T01:54:19.907503
2014-08-22T18:00:54
2014-08-22T18:00:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): pass def backwards(self, orm): pass models = { } ...
[ "golriz25@hotmail.com" ]
golriz25@hotmail.com
f230add663cb646c6a58b790057e3589310fff4a
d2a128ac5e73affa7baed75f8a76b3f9f30bea30
/spiders.py
1d596a902f100c54920345d2136dcb849d68dda9
[]
no_license
EEEEEEEEEEEEEEEEEEEIEEEEEEEEEEEEEEEEEE/Free_proxy_pool
11049451f2123bf12af2e50cc83cc888a7948ca7
1eb2318262a59830be46ac07e7766e29bfe76b2d
refs/heads/master
2021-07-16T22:38:44.724117
2017-10-23T03:50:08
2017-10-23T03:50:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,996
py
# -*- coding: utf-8 -*- ''' @author: yaleimeng@sina.com (C) Copyright 2017. @desc: 爬虫类。为代理池提供抓取代理IP功能。 @DateTime: Created on 2017/10/16,at 8:47 ''' import chardet, re, time import requests as rq from bs4 import BeautifulSoup as bs class Proxy_Spider(object): proxies_got = set() de...
[ "noreply@github.com" ]
EEEEEEEEEEEEEEEEEEEIEEEEEEEEEEEEEEEEEE.noreply@github.com
73f8dacb0a6fd98a99721e8a113c12641950a990
175522feb262e7311fde714de45006609f7e5a07
/code/nprd/visualize_PTB.py
aab1cc504cd8b84b3cb1e24016f16bf6ca0b9dde
[]
no_license
m-hahn/predictive-rate-distortion
a048927dbc692000211df09da09ad1ed702525df
1ff573500a2313e0a79d68399cbd83970bf05e4d
refs/heads/master
2020-04-17T13:49:36.961798
2019-06-20T12:37:28
2019-06-20T12:37:28
166,631,865
0
0
null
null
null
null
UTF-8
Python
false
false
3,051
py
# Was called runMemoryManyConfigs_NeuralFlow_Words_English.py from matplotlib.ticker import MaxNLocator import math import subprocess import random import os from paths import LOG_PATH_WORDS import numpy as np ids = [x.split("_")[-1][:-4] for x in os.listdir("/home/user/CS_SCR/CODEBOOKS/") if "nprd" in x] print(ids)...
[ "mhahn29@gmail.com" ]
mhahn29@gmail.com
b6e77859e8bbd31e695a444d619c0d2c0cdd7b2b
2965ef9b397ff45748d9dbdb4aa7aada275c52c7
/airflow_blog_dag.py
9ec6e4040c7e4cf394f6fde9afd5901a8f19cb35
[]
no_license
caglarkeskin/airflow_blog_example
a2dc95bf2a8068140db4de3e710f56b377384484
72dae7f9fa2ae16211d9293603313a5fbc753337
refs/heads/main
2023-04-06T18:02:31.205534
2021-04-11T19:11:03
2021-04-11T19:11:03
356,876,498
0
0
null
null
null
null
UTF-8
Python
false
false
1,738
py
from airflow.example_dags.spider import Cls from datetime import timedelta from airflow import DAG from airflow.operators.bash import BashOperator from airflow.operators.python import PythonOperator from airflow.utils.dates import days_ago spider = Cls.spider read_db = Cls.read_db db_to_s3 = Cls.db_to_s3 report = C...
[ "caglar.keskin@zingat.com" ]
caglar.keskin@zingat.com
22b0d7305194d18157b442fd91971e5029a6d26e
3587a975786bb743c13603f4ad28ed2bac2c18d5
/Python/Exercise/ex28.py
1565a2a852a20e598b627ce630b103f67d9883af
[]
no_license
Joycici/Coding
378ee84b8a172e0bf23cb2fbd61a61b4e2312927
c3975017c3aeaa54e94fea3a19befbfc352e2e20
refs/heads/master
2021-04-29T07:36:21.359565
2017-02-21T15:23:43
2017-02-21T15:23:43
77,978,547
0
0
null
null
null
null
UTF-8
Python
false
false
2,786
py
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' Exercise 28: Boolean Practice This practice should be running on python shell, so there is no coding on this Or, we can use print to show results. ''' """ __author='Joycici' __version__='1.0' """ print "The result should be True, isn't it? Type the result: %r" % (True ...
[ "xuci123@qq.com" ]
xuci123@qq.com
8043bf4f0fcdecc59ee5421189b23a4884fc8599
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-sblp/sblp_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=30/params.py
d0a52d0abffd2812cb65883935448f5d49c0ec13
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
{'cpus': 4, 'duration': 30, 'final_util': '3.528333', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.65', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'RUN', 'trial': 30, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
86235f3224799eb00ea074017b73aa199c9f3ccc
86510b47b768d80127adcbd53b06fdff58fd95a4
/python/problem_010.py
c20fb3db3973ee559120b86ea5f3fdacea78b2cd
[]
no_license
Kimbsy/project-euler
d018ad759ae599147e11431f818c9bfd3fc82f73
e1eda2779b6499a6d33a848eacc5e1c15405bf70
refs/heads/master
2021-08-27T16:22:19.167892
2021-08-16T17:09:08
2021-08-16T17:09:08
50,948,043
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
import math """The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. """ def is_prime(num): for i in range(2, int(math.sqrt(num)) + 1): if num % i is 0: return False return True target = 2000000 total = 2 for i in range(3, target, 2): ...
[ "lordkimber@gmail.com" ]
lordkimber@gmail.com
e1deceb39a471d45d08bfbacced76cdca43b001a
ccdc81165a6bfb65fd4d7956ed223dec94b3057d
/src/services/LogService.py
93a883d9145e9ba623769550a4e1f9d240283b3c
[]
no_license
asimyildiz/webservice-for-xibo1.7-python
1a1f76e161526061094b012f6446b83115fa21a9
d6e27825a627d0f8b7f514c93c5f636a338b0b06
refs/heads/master
2020-10-01T17:42:35.248951
2019-12-13T05:27:03
2019-12-13T05:27:03
227,589,335
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
# To change this license header, choose License Headers in Project Properties. # To change this template file, choose Tools | Templates # and open the template in the editor. __author__ = "asim" __date__ = "$03.Kas.2015 16:18:39$" import logging class LogService(object): DEBUG = "debug" WARNING = "warning...
[ "asimyildiz@istanbulmd.com" ]
asimyildiz@istanbulmd.com
6cbec5e2430ea9ccfe0c2fe991f77e6418b25aff
fb942ec75797204fbe4a5b0e292797d5c76e4272
/yatube_api/settings.py
ecf707054678490423a6403c9ab64e13c61870cc
[]
no_license
hexhowk/api_final_yatube
682f64367a0437a245a5da4f4923e78b649764bd
57f0d6dd857ff808089a866f796171dab46c6eb1
refs/heads/master
2022-05-20T07:09:32.376754
2020-04-29T00:56:53
2020-04-29T00:56:53
259,788,547
0
0
null
null
null
null
UTF-8
Python
false
false
2,293
py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'hhz7l-ltdismtf@bzyz+rple7*s*w$jak%whj@(@u0eok^f9k4' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessio...
[ "57973073+Rimmini@users.noreply.github.com" ]
57973073+Rimmini@users.noreply.github.com
7e3a97d42210041be00fe78eac7fdc797d8027a2
e74e89592d8a3b1a0b465a7b1595708b224362d2
/pset_pandas1_wine_reviews/data_cleaning/solutions/p8.py
3d5b21f733b7e5400eea8fc4cc02f3214b41120a
[ "MIT" ]
permissive
mottaquikarim/pydev-psets
016f60f1e9d9a534bd9a66ecde8eb412beee37d1
9749e0d216ee0a5c586d0d3013ef481cc21dee27
refs/heads/master
2023-01-10T11:15:57.041287
2021-06-07T23:38:34
2021-06-07T23:38:34
178,547,933
5
2
MIT
2023-01-03T22:28:27
2019-03-30T11:09:08
Jupyter Notebook
UTF-8
Python
false
false
564
py
""" Cleaning Data VIII - Find Null Values """ import numpy as np import pandas as pd wine_reviews = pd.read_csv('../../winemag-data-130k.csv') wine_reviews.rename(columns={'points': 'rating'}, inplace=True) # Use the below df for these problems: wine_ratings = wine_reviews[['title', 'country', 'rating', 'price']] ...
[ "jgarreffa112@gmail.com" ]
jgarreffa112@gmail.com
12b340cd3ef8ebe5393bbdda0a5384ff90b2db85
07af7ff63c39f07441f0aeee401b6adb2a964b2d
/Model/XGBoost/lightgbm_model.py
0e7c2ce4e4b1ed5970f5e4dc0e2ffeb85daa0748
[]
no_license
LuckyTiger123/TimeSeries
aa4b5de5dfc9e871f1f3dbc4c3e32b9b633c196e
350515a1f6912dac196eb76ec697cbd17fae5b98
refs/heads/main
2023-02-19T13:31:25.894511
2021-01-10T08:07:25
2021-01-10T08:07:25
313,842,543
0
0
null
null
null
null
UTF-8
Python
false
false
4,357
py
import os import time import lightgbm as lgb import pandas as pd import numpy as np train_data = pd.DataFrame() train_label = pd.DataFrame() test_data = pd.DataFrame() test_label = pd.DataFrame() # define sample proportion proportion = 4 g = os.walk('/data/luckytiger/shengliOilWell/train_data') for _, _, file_list ...
[ "747837496@qq.com" ]
747837496@qq.com
47157eb7e1d8d2f5101413c4a384d3e2cb7d69b6
ace88a8f0a8644a8bf816d659f663c315eddfa64
/dnd/map_utils/dedge.py
de770f5b5bf6494a8b0d75772146aa0d2249c947
[]
no_license
ekrakar/Pathfinder-Toolkit
70808a8ef4f0e9c6a28a71e66c4b7410b41a22fa
2fc66a1d2de8fee36fb5589570a9cfbc9d8a5385
refs/heads/master
2020-03-26T17:04:21.857032
2018-08-17T16:10:36
2018-08-17T16:10:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
from dnd.map_utils import * class dedge(object): def __init__(self, point1, point2, number): self.number = number self.point1 = point1 self.point2 = point2 self.river = 0
[ "41119473+zefenzile@users.noreply.github.com" ]
41119473+zefenzile@users.noreply.github.com
4cb7933f1486a3aa55f92c6eca146b5e08994939
4fc5c590e90e973da8602c032eb9bc19c0d45dda
/super-hero-level/beautifulsoup2.py
cb4894529425fc3869cca8e4a3c1151b42a84e42
[]
no_license
shazam2064/python-excercises
6b27e39df30ec48a3aafa71253e911b2a09b3590
df7632150d4e64bfb5579996737dd4036ad91c7b
refs/heads/main
2023-03-30T20:13:49.910990
2021-03-31T12:27:22
2021-03-31T12:27:22
334,925,542
0
0
null
null
null
null
UTF-8
Python
false
false
2,260
py
# Extracting webpage elements by tag # Extracting the head - creates a Tag object # Will return only the first tag by that name from unittest import result head = result.head type(head) # Extracting h2 heading - creates a Tag object # Will return only the first tag by that name h2 = result.h2 type(h2) # Extractin...
[ "gabriel.salomon.2007@gmail.com" ]
gabriel.salomon.2007@gmail.com
5b421ca138ad52f140295d34f8ee1fdfc8559474
bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4
/sage/src/sage/modular/cusps_nf.py
ea7befba4c0d9a2601835cf1167a18323322bd32
[]
no_license
bopopescu/geosci
28792bda1ec1f06e23ba8dcb313769b98f793dad
0d9eacbf74e2acffefde93e39f8bcbec745cdaba
refs/heads/master
2021-09-22T17:47:20.194233
2018-09-12T22:19:36
2018-09-12T22:19:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
42,980
py
r""" The set `\mathbb{P}^1(K)` of cusps of a number field K AUTHORS: - Maite Aranes (2009): Initial version EXAMPLES: The space of cusps over a number field k: :: sage: k.<a> = NumberField(x^2 + 5) sage: kCusps = NFCusps(k); kCusps Set of all cusps of Number Field in a with defining polynomial x^2 + 5...
[ "valber@HPC" ]
valber@HPC
89f84e5991577b3aaefe1cd98c93a8b80579f788
ae0434c20e5604a2beeb8183e577e8f1d91020f8
/Python/valid_parentheses.py
9008937d67f86b117651e8d7d11bf3bfe9bfc855
[]
no_license
savadev/leetcode-4
d0324078b9cdded4801888427ce1a13a83ef9e07
aec4b06b3bccc640ecfe5c349ccf9e71d5a33474
refs/heads/master
2020-12-31T20:04:22.904153
2016-05-07T20:46:43
2016-05-07T20:46:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
#!/usr/bin/env python # Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. # The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. class Solution(object): def isValid(self, s): """ ...
[ "rayzhang1011@gmail.com" ]
rayzhang1011@gmail.com
5f3eb0adbedd522f2f753458e0903b5e7b4e8430
decce7f88ac26892896802fd8508342f58889219
/typeidea/comment/migrations/0001_initial.py
78ff329fc3ff4c21d3ead9245fcd7e40a7ed65a7
[]
no_license
woxidadiaosi/typeidea
2c59cce8aa6e6c59b28798fabd99943473a4b773
cfe3db444f1ba72f0076c121aee86f5cd4c88c34
refs/heads/master
2020-12-28T17:51:50.622748
2020-02-07T04:04:36
2020-02-07T04:04:36
238,428,970
0
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
# Generated by Django 2.2 on 2020-02-07 03:46 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(au...
[ "hty1194123800@163.com" ]
hty1194123800@163.com
e07cea74af325bc2f4c384e1e7cf10621696e0c4
5419846a9e7010847fdbd232aa031fbd3e53e2bd
/Flask/ElasticBeanstalk/Request_Beanstalk.py
54e8f27c0df3f9a3c33df245136e699cc3db59ec
[]
no_license
RubensZimbres/Repo-2018
432d492df83bb6cf9268131d34b03241e0a2cbf5
4880ff9f85e5a190f6515d16a810b1cda9288c68
refs/heads/master
2021-12-14T08:25:45.171826
2021-12-06T22:14:48
2021-12-06T22:14:48
114,630,397
180
88
null
null
null
null
UTF-8
Python
false
false
673
py
import requests import boto3 from io import BytesIO import matplotlib.image as mpimg client = boto3.client('s3') resource = boto3.resource('s3') my_bucket = resource.Bucket('bucket-vecto') image_object = my_bucket.Object('dog.jpg') image = mpimg.imread(BytesIO(image_object.get()['Body'].read()), 'jpg') KERAS_REST_A...
[ "noreply@github.com" ]
RubensZimbres.noreply@github.com
5ed1168c6daa809a0d2e8373f1dab54ae662f419
495ba1416e1aec34be69ded0b34eeb728896f25e
/tests/test_math.py
be32bcb4880ae7f021fb05dfcb8e5693b2f0b55e
[]
no_license
Brunorodrigoss/pytest_structure
a8ebdebc7380e8768a54f4c7b343f11ad70fec30
cf3bec49800c3caa06e7b6812c3016f9bd65fe1a
refs/heads/main
2023-01-19T07:58:16.854743
2020-11-21T20:24:42
2020-11-21T20:24:42
314,825,331
0
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
import pytest """ This module contains basic unit tests for math operations. Their purpose is to show how to use the pytest framework by example. """ # ------------------------------------------------------------------------ # A most basic test funcion # --------------------------------------------------------------...
[ "bruno.rodrigo@farfetch.com" ]
bruno.rodrigo@farfetch.com
334f2e09ecf33e29d0f56df23a63fab3582e9ffb
d09a1fae642abf1a68c4f0563a40045a688be20d
/Module-3/3-1-4-4-Lists-collections-of-data-Operations-on-lists-Removing-elements-from-a-list.py
30b89896d32dd466857cbc7342942e1d49d35e1b
[]
no_license
rolandoquiroz/CISCO_PCAP-Programming-Essentials-In-Python
fdbf02b16f47c89d7d8c457159e8eb079ca8d307
7ae5e1e65bb1c9982b9789e382cf626c863ffcb3
refs/heads/master
2022-11-13T20:26:48.549176
2020-07-08T14:06:12
2020-07-08T14:06:12
267,685,762
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
#!/usr/bin/python3 """ It may look strange, but negative indices are legal, and can be very useful. An element with an index equal to -1 is the last one in the list. Similarly, the element with an index equal to -2 is the one before last in the list. """ numbers = [111, 7, 2, 1] print(numbers[-1]) print(numbers[-2])
[ "rolandoquiroz@gmail.com" ]
rolandoquiroz@gmail.com
d27a3896f5fa3feb5f17cd7861eb6378cabfc5d6
867846ed1df7f560ccc473413a70020155f66ad4
/writeImageToBinary.py
8ebf38106007bbfc86bd7004a67293c4219d32a9
[]
no_license
abhineet123/PTF
84297bf5aa95320dbc2d34f422f2dd563ff65a58
0c63f7f8251af0d70c329b2cef53694db76c1656
refs/heads/master
2023-08-18T18:34:40.513936
2023-08-09T17:28:51
2023-08-09T17:28:51
157,794,848
5
1
null
2021-05-16T18:48:32
2018-11-16T01:24:05
MATLAB
UTF-8
Python
false
false
4,088
py
# from DecompUtils import * # from distanceGrid import applyFilter # import time import os import cv2 import numpy as np # from Misc import getParamDict if __name__ == '__main__': db_root_dir = 'C:/Datasets' track_root_dir = '../Tracking Data' img_root_dir = '../Image Data' dist_root_dir = '../Distance...
[ "asingh1@ualberta.ca" ]
asingh1@ualberta.ca
79ec1a1ca8c7622eb1730afafe9b0ba4277f92e5
61fa6dd1672bcef50c0acde02cd0ec7d689254d0
/pyats/csr1kv/bin/yamllint
6709d236df4be9d1f69cf40d4a2557acd6475f1c
[]
no_license
jholsteyn/devnet-src
46364d993d83f24eede40f88c83c05044f2ad286
615893b7af0b08684af161fa99316d06703fcbbc
refs/heads/master
2023-05-12T08:49:42.488958
2021-06-08T16:50:10
2021-06-08T16:50:10
354,581,999
0
0
null
null
null
null
UTF-8
Python
false
false
427
#!/home/devasc/labs/devnet-src/pyats/csr1kv/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'yamllint==1.26.1','console_scripts','yamllint' __requires__ = 'yamllint==1.26.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys....
[ "holsteynjohan@hotmail.com" ]
holsteynjohan@hotmail.com
0a94e8b28ffb9b780fef50e6b6ab2f2f57064e96
8842fdf7738b51469fda6803688d5e66ce7bdc20
/MD5.py
45326261e43b1d54f014ad1f23c3ff82ea90a5fe
[]
no_license
yadav-umesh/DATA
bf1c79b5db426e125774e5ed99dd243345cc76fa
d83ac5a4f789b36c828229703d0c67da697eac40
refs/heads/master
2020-09-21T07:24:41.874695
2019-11-29T06:14:06
2019-11-29T06:14:06
224,723,488
0
0
null
null
null
null
UTF-8
Python
false
false
2,596
py
import math rotate_amounts = [7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15...
[ "noreply@github.com" ]
yadav-umesh.noreply@github.com
6d8979e0e0896e0486d44fe100a07499207bbae9
00ddd642a75e3c66321ac690ef4bffadfcf298c0
/framework/utils/rnn/rnn.py
109cafee737646a7207c86114cd7dd0aca677df5
[ "MIT" ]
permissive
Francesco-Sovrano/Combining--experience-replay--with--exploration-by-random-network-distillation-
51f444e58a53a051334a1152785c71f4007ec320
bf6f2b9a8703227dc40b06bbb170cbb89c04e76f
refs/heads/master
2020-05-01T11:42:24.393414
2020-01-03T21:09:58
2020-01-03T21:09:58
177,449,608
5
2
null
null
null
null
UTF-8
Python
false
false
9,126
py
# -*- coding: utf-8 -*- import tensorflow as tf import numpy as np from tensorflow.contrib.cudnn_rnn import CudnnLSTM, CudnnGRU from tensorflow.contrib.rnn import LSTMBlockCell, LSTMBlockFusedCell, GRUBlockCellV2 from utils.tensorflow_utils import gpu_count class RNN(object): def __init__(self, type, units, batch_s...
[ "toor@MacBook-Pro-di-Toor.local" ]
toor@MacBook-Pro-di-Toor.local
9fded41e53994926b9987688f2a0c3d676ccb209
869447f4d4ab7620dc71c01d97f4a45b67ef7080
/custom_py/validate_rate.py
91f61320f63d8e7a42818e49e58dbdd418659ed0
[]
no_license
gsnbng/gsn_erpnext_fixtures
1daf08d81489a22a7c8d6471be2c07175474ebbd
3f84b25979208485f7c40e95cd711a97e4b2fce5
refs/heads/master
2020-04-17T11:05:55.090160
2016-12-12T15:04:52
2016-12-12T15:04:52
66,152,624
0
0
null
null
null
null
UTF-8
Python
false
false
1,926
py
from __future__ import unicode_literals import frappe from frappe.utils import cint, formatdate, flt, getdate from frappe import _, throw from erpnext.setup.utils import get_company_currency import frappe.defaults import ast import logging import string import datetime import re import json from frappe.utils import get...
[ "sheshanarayanag@gmail.com" ]
sheshanarayanag@gmail.com
1e1bed689d29fc1001498014cc02e0800969be85
a22c3c1d13fa01e1a61718393dbf89f4dc406bee
/week3/usepack.py
ae11d4ea6e720549f2c28ce8beb6c1d59554d325
[]
no_license
jumirang/python-test
f6a6c35059a8b62a6888a3bace0045b9a95f176f
5e12dbeea6ba3334ca0780fc42144efee646d1f0
refs/heads/master
2021-01-19T15:54:53.297888
2018-11-07T05:17:55
2018-11-07T05:17:55
88,233,883
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
# import game.sound.load as LOAD # 축약어 사용 # LOAD.load1() # LOAD.load2() from game.sound.load import * load1() load2()
[ "minseok.hwangbo@lge.com" ]
minseok.hwangbo@lge.com
336b66817aeb69caf5a08e2b80c1beac92d48c6d
de01cb554c2292b0fbb79b4d5413a2f6414ea472
/algorithms/Easy/1275.find-winner-on-a-tic-tac-toe-game.py
b051c0e2d84dffb8192059fd3585ceb77ed909e8
[]
no_license
h4hany/yeet-the-leet
98292017eadd3dde98a079aafcd7648aa98701b4
563d779467ef5a7cc85cbe954eeaf3c1f5463313
refs/heads/master
2022-12-10T08:35:39.830260
2020-09-02T23:12:15
2020-09-02T23:12:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,576
py
# # @lc app=leetcode id=1275 lang=python3 # # [1275] Find Winner on a Tic Tac Toe Game # # https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/description/ # # algorithms # Easy (52.88%) # Total Accepted: 17K # Total Submissions: 32.2K # Testcase Example: '[[0,0],[2,0],[1,1],[2,1],[2,2]]' # # Tic-tac-to...
[ "kevin.wkmiao@gmail.com" ]
kevin.wkmiao@gmail.com
e9f6eacfaf01a7fff4da4c15768700dfd006c709
423cc7775d1ab9874729ba304d7682a12b4a4d43
/plugins/analyzer/previewcomparer.py
6cc2539edc04ea1fb6f7350dfbf6e684d05043bc
[]
no_license
eyeyunianto/ghiro
7ec2dc5ae2b766883da6f26975fd41829336e8f8
24ce80244893fc94300e1c4f5e3305bd182d65a6
refs/heads/master
2020-04-06T04:33:07.155509
2015-06-21T21:30:27
2015-06-21T21:30:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,807
py
# Ghiro - Copyright (C) 2013-2015 Ghiro Developers. # This file is part of Ghiro. # See the file 'docs/LICENSE.txt' for license terms. import logging from itertools import izip from lib.analyzer.base import BaseAnalyzerModule from lib.utils import str2image from lib.db import get_file try: from PIL import Image ...
[ "alessandro@tanasi.it" ]
alessandro@tanasi.it
56cc9c7aab8b053852097bf92de03832d5bbbbe3
3a6a9bd8cb6a977b77c9313282b769177bf1e0c6
/src/data_access/via_DMS/DMSDatabase.py
3fdc487f0c8cc8bfabf09c2f02b32b31692bdfb0
[]
no_license
PNNL-Comp-Mass-Spec/NMDC-Proteomics-Workflow
d34dd04ac1e32b7cfc77df3252ebec6a873f2ee2
1c8d04a6cdb497905a42e026663b39417ffdad02
refs/heads/master
2022-11-24T22:56:20.454860
2020-08-06T02:33:35
2020-08-06T02:33:35
266,201,144
0
0
null
null
null
null
UTF-8
Python
false
false
1,553
py
import pymssql import logging import sys class DMSDatabase: ''' Database connection class''' def __init__(self, config): ''' :param config: ''' self.SERVER = config.db_server self.USER = config.db_user self.PASSWORD = config.db_password self.DATABASE_NA...
[ "anubhav@pnnl.gov" ]
anubhav@pnnl.gov
a13daec41fb007a716ec02000dd869e5b10ad0d7
65ff11d13d2f8e007d2224005329cce07ec8b84b
/mysite/polls/models.py
ce7d109d899c93e7c008d8ccf36190e3be3ee80f
[]
no_license
jpinfanti/MyProjects
19d9f1ed992dcd4d66d03eab46ae65e51f4c98c6
2199876d1c1d391998ac46a30b7626b1ca7befed
refs/heads/master
2020-05-25T09:21:00.079517
2019-06-01T11:13:52
2019-06-01T11:13:52
187,733,712
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
import datetime from django.db import models from django.utils import timezone # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_publi...
[ "jpinfanti@gmail.com" ]
jpinfanti@gmail.com
bc538b379293fe63b0ba139868e58411d965d740
6b511b69062ad8cfee9dcc2b44cfe4fb2db5d229
/QuoraQuestionChallenge/preprocessing_util/parsetree_operations.py
cd8bab13651341c097bf342bb0d3685067738f07
[]
no_license
ahmorsi/QuoraQuestionChallenge
3b0421b92f2322767af7311d953674750614e78c
15bac05d258a5c147c731f59d31dd67b2c3f7174
refs/heads/master
2021-01-23T00:05:58.570102
2017-04-07T19:47:00
2017-04-07T19:47:00
85,693,384
0
0
null
null
null
null
UTF-8
Python
false
false
12,702
py
from pattern.text.en import parsetree, parse import pickle from question import Question import unicodedata from itertools import chain with open("./stored_data/lemmatized_questions_pairs.pickle", "rb") as loader: lemmatized_questions_pairs = pickle.load(loader) with open("./stored_data/clean_question_pairs.pickl...
[ "ahani.fcis@gmail.com" ]
ahani.fcis@gmail.com
f78847b795173c43b7152e277ae789321145022a
82bae57f5e5e591a645b7e81b445153c8fcc3c6d
/Glider/GliderFull.py
d8f479c573f8b7e0ad317b5ae6cf95795ae99ae9
[]
no_license
Aerothon-2020/Adv2019Aircraft
ed74ef5ffc65bb8044c36d974c2b9662a6e0459b
eb8cb724578628ff5bf9a9858817632b64a6fa3b
refs/heads/master
2020-08-04T01:30:57.995223
2019-09-30T20:48:05
2019-09-30T20:48:05
211,953,382
0
0
null
null
null
null
UTF-8
Python
false
false
10,734
py
from __future__ import division # let 5/2 = 2.5 rather than 2 #from os import environ as _environ; _environ["scalar_off"] = "off" from scalar.units import M, FT, IN, ARCDEG, RAD, LBF, SEC, KG, SLUG, OZF, gacc, GRAM, OZM from scalar.units import AsUnit from Aerothon.ACAircraft import ACTailAircraft from Aerothon.ACWing...
[ "41376231+mwybo@users.noreply.github.com" ]
41376231+mwybo@users.noreply.github.com
5159d1ced08d025941903ecb69f0c155b3a03343
20c1fbd31cdab2b198574fa13d36aa46f7ab093f
/Chapter3_2.py
27adf263d210068d0948ff92465d46738aa6f313
[]
no_license
EyeMyData/INFX501
093fd879a84673b61b54f7db18f305a3ca62b86d
2243e425725e3214f0d5d0c067bf125f0e64e237
refs/heads/master
2021-01-15T16:28:33.583772
2015-12-07T02:19:26
2015-12-07T02:19:26
44,037,011
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
## Exercise 2: Rewrite your pay program using try and except so that your ## program handles non-numeric input gracefully by printing a message ## and exiting the program. The following shows the output from three ## executions of the program: hours = input('Enter Hours: ') rate = input('Enter Rate: ') try: hours...
[ "rtbrush@yahoo.com" ]
rtbrush@yahoo.com
70136f71853311d56750505b916562c57a3ecfe2
91d550f23c8716eb06171f41f2fd54d3e2d17a04
/TODO/TODOapp/migrations/0017_auto_20181117_0124.py
4feaeaaff74fa0b0a16b0a819a278b1664088d0d
[]
no_license
johannesWestenhoeferGit/scalors-assignment-backend-todo
b5c5470b6d9112452f1a82732ee946f1108e1df9
362d974430f85e52086d79fc4220290c751a1c08
refs/heads/master
2020-04-07T10:51:13.982057
2018-11-19T23:24:20
2018-11-19T23:24:20
158,300,412
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
# Generated by Django 2.1.3 on 2018-11-17 00:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('TODOapp', '0016_auto_20181117_0115'), ] operations = [ migrations.AlterField( model_name='todo'...
[ "45103219+johannesWestenhoeferGit@users.noreply.github.com" ]
45103219+johannesWestenhoeferGit@users.noreply.github.com
ef227b68a8ef96872a75eda2e6d46bd3f4e313fb
2d2268e2e1ab883c6532b86345e7f54a9769a29e
/grupos/migrations/0005_auto_20190218_1137.py
32fa0e257cbbb8244daba2001071261a91a5dde6
[]
no_license
thygolem/pyadminGrupos
3ddd2553aec5b2186f936f98012d16b28cafc0fe
d1a9479ec836365d50247ccdd8b9437fb382433d
refs/heads/master
2021-10-25T12:18:35.013425
2019-03-11T11:57:37
2019-03-11T11:57:37
179,463,429
0
0
null
null
null
null
UTF-8
Python
false
false
8,408
py
# Generated by Django 2.1.5 on 2019-02-18 10:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('grupos', '0004_auto_20190215_1043'), ] operations = [ migrations.RenameField( model_name='grupo', old_name='timestam...
[ "ivansimo@industria40.me" ]
ivansimo@industria40.me
bd8c5e0702e994db9f0374d5bbc3e2dbd3556e83
83dfcc05045a2dbe797bb7869932a03881d6f33a
/tools/preprocess_pascal_voc.py
6703656b4110e2f9a3cc5930ca20ea89d12d53e4
[]
no_license
deepaksinghdangi/Yolo-DNA
8de4bc488603ec178dcff38f168ab6c3ab3c7235
870424e67c02edc38489acdce98acec194342ff5
refs/heads/master
2021-04-28T13:51:11.982694
2018-04-01T13:49:07
2018-04-01T13:49:07
121,951,015
0
1
null
null
null
null
UTF-8
Python
false
false
2,323
py
"""preprocess pascal_voc data """ import os import xml.etree.ElementTree as ET import struct import numpy as np PASCAL_OP='data\\pascal_voc.txt' YOLO_ROOT_PATH='data\\VOCdevkit2007' classes_name = ["aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", ...
[ "noreply@github.com" ]
deepaksinghdangi.noreply@github.com
d710a089b2dc8dcb65b7b3f939796b6203abf478
74b7a3165c1ef143fc648e83c228795ee70c0e26
/cs253.py
5fae75f99073dd8fb38c3317de33dcf9deb9b433
[]
no_license
Nandan1996/Intro-To-Backend
98d90ada4bf6c89187a4f85c042746d33d0badf6
c8015ccd28a8186b122f32a3287580b982cba847
refs/heads/master
2021-01-13T14:13:19.693056
2016-11-04T10:23:39
2016-11-04T10:23:39
72,839,234
0
0
null
null
null
null
UTF-8
Python
false
false
7,473
py
import os import re from string import letters import random import hmac import hashlib import webapp2 import jinja2 from google.appengine.ext import db #setting up jinja environment template_dir = os.path.join(os.path.dirname('__file__'),'templates') jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(tem...
[ "choudharynandan260@gmail.com" ]
choudharynandan260@gmail.com
5280e76f15eda7f59c1e3df3589cfef7933ddb8c
b04e7039549ab26aee5b8f8e41d6508cc5a12815
/Logic/functionalitati.py
84742e194c6aa264ea41e9064166070ac96f94e6
[]
no_license
H0R4T1U/Asociatii
bb5da881178607ffdd8bbf20d0c1c8f53cb64b04
ce75b121803c86c19dcb9c1a151e77df927e75ca
refs/heads/main
2023-01-02T17:30:49.630560
2020-10-28T21:56:36
2020-10-28T21:56:36
308,148,343
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
from Logic.crud import get_nr_apt def sterge_toate_cheltuielile(nr_apt,lista): [cheltuiala for cheltuiala in lista if get_nr_apt(cheltuiala) != nr_apt]
[ "horatiubanciu11@gmail.com" ]
horatiubanciu11@gmail.com
04ddbac7ba10873f1683d524b740172d45be4312
f5cbcc5f356fbcb801545b358241e3a0e283a3a9
/setting.py
fe5c764f9cbbc02b1d935eed59a78b2b66af6b64
[]
no_license
hulinbig/flaskblog
6c1001decf4e1a5241d7153759f6599ea0767137
13def2b1a83b06792f646f4217fd78a6d30ecf39
refs/heads/master
2023-04-05T01:41:28.456457
2021-04-14T01:53:42
2021-04-14T01:53:42
317,810,762
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
#!-*- coding:utf-8 -*- import os __author__ = 'ALX LIN' class Config: ENV = 'development' DEBUG = True #mysql + pymysql://user:password@host:port/databasename SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:123456@localhost:3306/blog" #这里只能用localhost,不能用本家地址127.0.0.1 SQLALCHEMY_TRACK_MODIFICATION...
[ "hulinbig" ]
hulinbig
f5654ebb548102ad5967c419da8d9acc2be6c724
84ce2afa75e1fede9ec5dad94381f8a406e8b44f
/hello-world/quotes.py
41bc03835b643b05fb88efd6d6599f923f1cd08a
[ "MIT" ]
permissive
selvendiranj-zz/python-tutorial
c920b0b3565a90792743414b1c357f77d04ce62f
e3fd0855fc06b1b3ec45079cd6bd055a439d2e84
refs/heads/master
2021-09-05T15:18:30.150647
2018-01-29T07:20:55
2018-01-29T07:20:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
""" Python accepts single ('), double () and triple (''' or ) quotes to denote string literals, as long as the same type of quote starts and ends the string. """ word = 'word' sentence = "This is a sentence." paragraph = """This is a paragraph. It is made up of multiple lines and sentences.""" days = ['Monday', 'Tues...
[ "selvendiranj@gmail.com" ]
selvendiranj@gmail.com
3101fafbbcfc2cfaa0e6f7a1575e16028e6c40f7
e8d59cb03af8da46d8e0dafcc721dc4e7681f9ef
/ex005.py
ee00125552322f8e31b66bcd1f523f015eb3dee4
[ "MIT" ]
permissive
GuilhermeAntony14/Estudando-Python
51490ff7e37500bbfd936af0e1a616e2f960239d
b020f6d2625e7fcc42d30658bcbd881b093434dd
refs/heads/main
2023-04-14T01:26:38.004729
2021-04-26T01:17:42
2021-04-26T01:17:42
361,016,865
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
v1 = int(input('adicione um numero: ')) print(f' \n Antecessor \033[34m{v1-1:>10}\033[m ' f'\n Valor original \033[34m{v1:>6}\033[m ' f'\n Sucessor \033[34m{v1+1:>12}\033[m')
[ "gdutramerlo@gmail.com" ]
gdutramerlo@gmail.com
f7a2533e7ef495540bbd17beb264ad19363e9de1
2eb318ab2034256e68dc3c2d33abd203fbadcc45
/the actual siri.py
700a4970ef43ccd0a4e3c58888a8b554be4b70ac
[]
no_license
Gustavasa/PG_ENY
c779a1a2664af19f5417fc4482e7c4afc0ef0b1e
37481673785183a93b7847aedef4aadedb2fbd1d
refs/heads/master
2021-09-14T17:21:02.955190
2018-05-16T15:43:52
2018-05-16T15:43:52
116,997,453
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
import win32com.client as wincl import speech_recognition as sr import webbrowser as wb speak = wincl.Dispatch("SAPI.SpVoice") r = sr.Recognizer() with sr.Microphone() as source: speak.Speak("Hello Erik how can I help you") print("listening...") audio = r.listen(source) print("thinking...")...
[ "noreply@github.com" ]
Gustavasa.noreply@github.com
67f8dd978a2a2ff13f5ff70942fa69acd743fbf3
36dd43d5ad263902c6280e371063ad6e1d5ff1e6
/blog/models.py
c737b883f947523f8e0ec08abe73c80f1033b9f5
[]
no_license
monica-0218/Pazcal-Blog
1625a28d2fec3fc451578cd040bb0efe36340adc
de8bd3a1f1d55b11a03f0a179fe7e4df3de8b1f5
refs/heads/master
2022-12-31T14:14:48.563036
2020-10-26T14:04:36
2020-10-26T14:04:36
307,390,392
0
0
null
null
null
null
UTF-8
Python
false
false
2,690
py
from django.db import models from markdown import markdown from markdownx.models import MarkdownxField from taggit.managers import TaggableManager from django.conf import settings class Dungeon(models.Model): img = models.ImageField('サムネ', upload_to='images/') name = models.CharField('ダンジョン名', max_length=255) ...
[ "sorakawa0218@gmail.com" ]
sorakawa0218@gmail.com
791aa3c7a4424a4e38c935d847f9fa57c01e7616
780c28373887ae0ef1ced41732987ace7647384f
/vinmonopol/env/bin/pip2.7
948c3172dfc3d73761e1c3750d2fc4dd30a769f6
[]
no_license
Paalar/AlcoSearch
1803262018098f2a59fc4689e7ad4da629a68909
a3a7cece79e5efd132e4295c114544398aa43ee4
refs/heads/master
2021-03-30T17:57:03.354123
2018-05-31T08:37:02
2018-05-31T08:37:02
107,410,954
0
0
null
null
null
null
UTF-8
Python
false
false
272
7
#!/Users/GPD/Desktop/python-docs-samples/appengine/standard/django/env/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "paaledward@gmail.com" ]
paaledward@gmail.com
72a2fc5198d4c85f8cce4bbdb3d5833ef90ac973
ccd0d58fc77536f289ef2da4b66406966b514162
/Cluster.py
26edfe154ce91a59662b957412429384949fa882
[]
no_license
hiafi/cs497_project
07d2ea2a6e492196aaed35edec0fa5bf0473959a
6acc554180e0bdef2c31eacd6d59ecc4dc843512
refs/heads/master
2016-09-08T05:06:06.424951
2013-06-03T19:07:44
2013-06-03T19:07:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,920
py
#!/usr/bin/python #-------------------------------------------------------------------------------- #Jonathan Roberts, Nathaniel Nguyen, and John Ho #Computer Science 497B #Spring Quarter 2013 #Network Intrusion Project #------------------------------------------------------------------------------ # Credits to pando...
[ "nnguyen939@gmail.com" ]
nnguyen939@gmail.com
f86fab53d5d760b38c0e7a595bbe3472b3653bce
4dbe83d625dfbc5da6eea2c73a41feda6cbea708
/scalyr_agent/third_party_tls/oscrypto/_osx/_core_foundation_ctypes.py
138544f0c96b85ef866644988987c69598bc691c
[ "Apache-2.0" ]
permissive
Kami/scalyr-agent-2
e95732763e57ab768f488690574a58fd0ea6acd4
b26ebb6a74c2670ae28052079f2fac95d88e832a
refs/heads/master
2021-03-16T17:58:44.098136
2020-06-03T13:40:11
2020-06-03T13:40:11
246,929,083
0
0
Apache-2.0
2020-06-03T13:48:26
2020-03-12T20:53:56
Python
UTF-8
Python
false
false
13,520
py
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from ctypes.util import find_library from ctypes import c_void_p, c_long, c_uint32, c_char_p, c_byte, c_ulong, c_bool from ctypes import CDLL, string_at, cast, POINTER, byref import ctypes from .._ffi import FFIEngineEr...
[ "echee@scalyr.com" ]
echee@scalyr.com
97c3d4708e7a5c659b516edef9ebd33c1c164dbc
f66201c96e38cbdc1f345b24be31106b43496e26
/manage.py
e591674f09e70a40cddea8db036c09b45c392be5
[]
no_license
vivek4112/DjangoProj
8e241aad1cee5f60d847077d801c9f6f06191653
6a5ec99717b21c294b5ef8820e5ab2c7fb499b18
refs/heads/develop
2022-12-11T11:36:20.289771
2018-08-20T15:43:43
2018-08-20T15:43:43
144,486,214
0
0
null
2021-06-10T20:45:10
2018-08-12T17:16:46
HTML
UTF-8
Python
false
false
538
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'weread.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are y...
[ "18182313+vivek4112@users.noreply.github.com" ]
18182313+vivek4112@users.noreply.github.com
a9f0ba50e1273c6a25a49d2e0bba74d1942c67b8
b1c7a768f38e2e987a112da6170f49503b9db05f
/stockkeeping/migrations/0021_remove_purchase_stockitem.py
56aa900ba0363ea26816b298cca975bca2319252
[]
no_license
Niladrykar/bracketerp
8b7491aa319f60ec3dcb5077258d75b0394db374
ca4ee60c2254c6c132a38ce52410059cc6b19cae
refs/heads/master
2022-12-11T04:23:07.504966
2019-03-18T06:58:13
2019-03-18T06:58:13
176,218,029
1
0
null
2022-12-08T03:01:46
2019-03-18T06:27:37
JavaScript
UTF-8
Python
false
false
338
py
# Generated by Django 2.0.6 on 2018-11-02 11:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stockkeeping', '0020_auto_20181102_1628'), ] operations = [ migrations.RemoveField( model_name='purchase', name='stockitem',...
[ "niladry.kar85@gmail.com" ]
niladry.kar85@gmail.com
e3bf9755f80a733381018bc4cff5a8a3ed3e0097
e90cdfe33c204987372fd56177df70c09436c003
/apps/users/views.py
a8f7e3956227245775925c3a9831f5947f1ab642
[]
no_license
Aliyaseidalieva/django_cinema
c4f2884197a4d4949317557e26325e97d451f71c
feedfe9410834c9c0fe0a939a56a4ae57153f7ea
refs/heads/master
2022-12-18T08:52:01.813359
2020-09-19T09:23:37
2020-09-19T09:23:37
270,371,926
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
from rest_framework.generics import (ListCreateAPIView,RetrieveUpdateDestroyAPIView,) from rest_framework.permissions import IsAuthenticated from .models import userProfile from .permissions import IsOwnerProfileOrReadOnly from .serializers import userProfileSerializer class UserProfileListCreateView(ListCreateAPIVie...
[ "aseidalieva@askartec.com" ]
aseidalieva@askartec.com
9611ea5034446ad9760170ff5cf6b279139456de
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/pydev/pydev_pysrc.py
b9ed49e8005e3b547bd967bac75b0d83e7dd1861
[ "Apache-2.0", "EPL-1.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
100
py
'''An empty file in pysrc that can be imported (from sitecustomize) to find the location of pysrc'''
[ "dmitry.trofimov@jetbrains.com" ]
dmitry.trofimov@jetbrains.com
30d1666faf99c5f78e76ef60c5dcde682f89ddb2
b51d9f725c349c71d5ef6678d615d346b105272b
/src/captcha/conf/settings.py
41dee9bd23b62938b1c26d160bfe19defad909d3
[]
no_license
lpe234/dannysite.com
9557a5ed19da223057d6617153388526398618b1
2edae21fcfaec8625422007cc9ef4e1471a4ea54
refs/heads/master
2021-01-17T05:54:39.802076
2014-04-07T04:36:33
2014-04-07T04:36:33
22,376,149
1
0
null
2019-01-08T09:41:41
2014-07-29T10:24:22
null
UTF-8
Python
false
false
2,658
py
import os from django.conf import settings CAPTCHA_FONT_PATH = getattr(settings, 'CAPTCHA_FONT_PATH', os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'fonts/Vera.ttf'))) CAPTCHA_FONT_SIZE = getattr(settings, 'CAPTCHA_FONT_SIZE', 22) CAPTCHA_LETTER_ROTATION = getattr(settings, 'CAPTCHA_LETTER_ROTATION',...
[ "manyunkai@hotmail.com" ]
manyunkai@hotmail.com
58886a0fe49b2b547bce5fc1506904ba9f8bbd44
28381c3cc17761bc06f0c95e0e0ae28276cca2d7
/manage.py
82de5fd67b825771d6c8a3fbf97233f586e1cf95
[]
no_license
ankita21prasad/craigslist-clone
ddce0db9a3aa53ed6f8508826485be4dade157d3
8c28b8fc1ade15b03d008fb814aa9ab107b2c1fc
refs/heads/master
2022-07-15T02:28:53.468733
2020-05-19T13:44:39
2020-05-19T13:44:39
265,256,363
2
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'craigslist.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "ankita2108prasad@gmail.com" ]
ankita2108prasad@gmail.com
c5dca2065aacf2b0ee59d318d60cb64a9fc6d155
6be7f986b59dc1ac02c54e0bd9a3d46127bb6d33
/examples/lesson8/walk_folder.py
f1e35076eac9370d959db88a554033ebd75a069c
[]
no_license
sol87/TDTutorial2
4d143e6c381301e00d636476a8b018807f35bf52
49dd68ea4a0d3ccf44c1efc7dc63b78ce66d5078
refs/heads/master
2020-03-28T17:09:25.073663
2018-09-29T13:12:33
2018-09-29T13:12:33
148,762,636
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
import os def walk_folders(folder_path): sub_file_list = [] for sub_file_name in os.listdir(folder_path): sub_path = os.path.join(folder_path, sub_file_name) if os.path.isfile(sub_path): sub_file = {"type": "file", "name": sub_file_name} sub_file_list.append(sub_file) ...
[ "guoliangxu1987@163.com" ]
guoliangxu1987@163.com
770326a7c554452415a3a4823c7975bc958ac5bb
45a2fef5a35090e2c3794824735dc137553c3d3b
/backup/fcards/utils.py
a968797ac2ea04b200ab1d427b0368cd1c17ba3c
[]
no_license
kris-brown/personal_website
9248ec23e2ebab8d820a0c6be70f6fb06a80144f
4dadfeba80eaf3f25f87b6f7bed48aa9db6ec8fc
refs/heads/master
2021-08-28T00:03:07.483092
2021-08-09T06:19:56
2021-08-09T06:19:56
190,462,717
1
0
null
null
null
null
UTF-8
Python
false
false
3,164
py
from typing import List as L, Tuple as T '''Misc helpful things''' def flatten(lol:L[list])->list: return [item for sublist in lol for item in sublist] ################################################################################ class Tree(object): ''' Parse a nested bullet structure where nesting i...
[ "ksb@stanford.edu" ]
ksb@stanford.edu
b906134b607c89cf803ce1ab88827ca311706925
9aa8dafe2fd0d05ba5041a888df2bcde1f139375
/house-prices-advanced-regression-techniques.py
5ad18042cfa0528e9283b7c442de9b11701bff51
[]
no_license
maxwellsarpong/house_prices_predictions
543805a046d044df5099f3630ff5588ec25c60e7
a7272b3c542028a86bdb4f2eeac0b3e8a6e91815
refs/heads/master
2022-05-25T02:16:01.340007
2020-05-01T18:55:38
2020-05-01T18:55:38
260,523,897
0
0
null
null
null
null
UTF-8
Python
false
false
4,271
py
#!/usr/bin/env python # coding: utf-8 # In[92]: # importing the modules import pandas as pd import numpy as np import matplotlib as plt from sklearn.model_selection import train_test_split # importing the data train = pd.read_csv('C:/Users/Big-Max/Desktop/BIG-MAX/BOOKS\Machine Learning/DATA SCIENCE/house-prices-adv...
[ "maxwellsarpong07@gmail.com" ]
maxwellsarpong07@gmail.com
4b5c2feae0827ca54d89ebebb2759cf9ee89b6ef
65f43c876a05a3e741716ee51a3a0d66833b474f
/NovoService/sumario.py
99d872c478ee02cbfdb01c985c344312c2c510bf
[]
no_license
lgpbentes/OpenLab
cb2638583d1a2e194172a8bec857711feb009be4
148d8bc5844e17437afe62f89aa5710f4a476122
refs/heads/master
2020-12-07T00:47:01.536609
2017-04-21T14:47:07
2017-04-21T14:47:07
66,236,387
0
0
null
null
null
null
UTF-8
Python
false
false
2,344
py
def LoadSummarizerByUser(user, timestamp, event, idView, sumarioL): #Percorre o sumario atras do usuario exemplo = sumarioL #print "exemplo" #print exemplo t = [] i = 0 if sumarioL: #print "if" for line in sumarioL: #print "for" listDataLine = line.split(";") if user == listDataLine[0]: #print ...
[ "aac@icomp.ufam.edu.br" ]
aac@icomp.ufam.edu.br
e075b4e7eb1d68b584d157154f05e397e8d0397a
22f66e6fdf32d22bab056cbd1194afa40b367358
/201902yusuan/probudget.py
3f59adbed4ab1c85b83222941d258cd448ac6697
[]
no_license
KingJoan/projectExample
4795b01c91abb919a6ffdf0e019d16f3f8dec71a
2f6915ccf7404252d6914197f97ec1e00bda1dc2
refs/heads/master
2020-04-29T14:17:23.605976
2019-03-18T02:17:37
2019-03-18T02:17:37
176,187,027
0
0
null
null
null
null
UTF-8
Python
false
false
6,614
py
# -*- coding: utf-8 -*- # @Time : 2019/2/26 14:43 # @Author : Joan # @Email : sj11249187@126.com # @File : probudget.py # @Software: PyCharm import numpy as np import json import pandas as pd import time def readJson(path, filename): with open(path + '\\' + filename, encoding='utf-8') as f: data...
[ "jinj@toone.com.cn" ]
jinj@toone.com.cn
92fa0a39166a1280f0826dd7f76fbed92352e96f
a44e975490591fc0d468e6f3a4505d8731e11111
/packaged_dags/deanslist_dags/deanslist_daily_endpoints.py
819e326151e3cda75cd2b2e6eae71263b815a768
[ "Apache-2.0" ]
permissive
Altons/silo-airflow
1b5673d02f67d853c2258d9393f4b8b29d6d92cc
21166392404152d3e8056f53065b7e1bb9a6185b
refs/heads/master
2022-12-15T04:07:09.924966
2020-09-15T15:48:23
2020-09-15T15:48:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,953
py
# The first step os to follow Charlie Bini's lead [here](https://github.com/TEAMSchools/sync_deanslist). # # However, we will combine this into one file rather than a module and a scipt file since we will be using Airflow, it will be easier to maintain in a single file. # # The first chunk comes from the config file. Y...
[ "chaid@kippchicago.org" ]
chaid@kippchicago.org
57434be9b73618bccc3f47e200f121e553a50545
51066a6a08b2d15b3e320293ff7a5e8a84e8267f
/Saving_ChairDataset.py
3a2c232a7a4bfc0a2d5cfe04db46c2fbc8b4920f
[ "BSD-3-Clause" ]
permissive
cocolab-projects/reference-game-exploration
40dd54a01b053e5390b16e9e55bbface6bb2bfe1
eb20b8c6a7d81cfa8063bc89d9ad41a728f61ff9
refs/heads/master
2020-05-29T17:32:31.440573
2019-08-25T08:59:53
2019-08-25T08:59:53
189,275,222
0
1
null
2019-07-15T23:13:35
2019-05-29T18:06:40
Python
UTF-8
Python
false
false
26,673
py
from __future__ import print_function import os import json from copy import deepcopy from tqdm import tqdm import numpy as np import pandas as pd from PIL import Image from utils import OrderedCounter from nltk import sent_tokenize, word_tokenize import torch import torch.utils.data as data from torchvision import t...
[ "100021710@mvla.net" ]
100021710@mvla.net
ddbb3ae7a19ecd0e0b4eca63b7bc8cf0185801ef
25d9d79c705d695cf96d9b77aef92825c86fb6cf
/maths/class_simple.py
383e25be7fb3dcec19e021dca6bc9df3e9e25726
[]
no_license
ioannispol/Py_projects
dc1d87f3ffbf62c763e78034c0de772ba66460fe
abc506b5cc6a1527bead8f3d1bdd590529166b82
refs/heads/master
2023-02-07T22:29:31.420366
2020-12-16T20:04:15
2020-12-16T20:04:15
275,893,430
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
class Calculations(): def __init__(self, x, y): self.x = x self.y = y def add(self): return self.x + self.y def sub(self): return self.x - self.y def mult(self): return self.x * self.y def div(self): return self.x / self.y
[ "giannis.polimenis@gmail.com" ]
giannis.polimenis@gmail.com