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
213 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
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
d9c287cab24e6c7f442c5f92b060f296c5897baf
efa947c7bc90a0dfbce2ada2fe0986a4fa3baff0
/todos/urls.py
a9d19064c4ddd51a387b814b1451ac0d0585f07c
[]
no_license
Lakshmeesh-H/pythontodo
064a7cd6d621d780238d69cc061c8eff7b8c74bb
3d344dd5ade3d79e36d0619369419b8562ce5cc3
refs/heads/master
2020-04-26T07:47:12.580144
2019-03-02T07:57:21
2019-03-02T07:57:21
173,403,977
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index') ]
[ "lakshmeesh.h@gmail.com" ]
lakshmeesh.h@gmail.com
c5f2f26d46bac1c9ac0732bb80058056477b270f
e7a7d83c73bda42d41df6e89d3733856cec5a8b2
/getMat.py
ddd9ecfb644bd4f20941a65113e9aae2770622ab
[]
no_license
sonhill/Array-assisted-Phase-Picker
19d812bed8d13809a216e7c9c5c44d0715d3e56a
f656ad1801fa5d344aa374234574fdd8774ec8d6
refs/heads/master
2022-08-24T02:01:06.582122
2020-05-22T10:06:50
2020-05-22T10:06:50
266,090,354
1
0
null
2020-05-22T11:08:20
2020-05-22T11:08:20
null
UTF-8
Python
false
false
1,317
py
import os import detecQuake import sacTool from imp import reload from obspy import UTCDateTime import tool from glob import glob import names R=[37.5,43,95,104.5] sDate=UTCDateTime(2014,10,17,0,0,0) eDate=UTCDateTime(2014,12,18,0,0,0) cmpAz=sacTool.loadCmpAz() staInfos=sacTool.readStaInfos('staLst_NM',cmpAz=cmpAz) qu...
[ "35212072+baogegeJiang@users.noreply.github.com" ]
35212072+baogegeJiang@users.noreply.github.com
9df844d7cc10a18d1cc1fdda1ef09ce7251b3861
523f245f39acae912a19adb476b1b1866e9d1c7f
/scoring/scripts/image_generator.py
736c0448827a0fb1b201533819f8c4821eacd1f3
[]
no_license
Sapphirine/YelpRecommendation
dcfa3de67589fec1ff5021e74f95f3d6b2537c98
45338f5e0a34e993e38116b487736f8bbb18be23
refs/heads/master
2021-08-31T11:39:34.963847
2017-12-21T07:17:13
2017-12-21T07:17:13
114,938,125
0
0
null
null
null
null
UTF-8
Python
false
false
10,417
py
#!/usr/bin/env/ python # ECBM E4040 Fall 2017 Assignment 2 # This Python script contains the ImageGenrator class. import numpy as np from matplotlib import pyplot as plt from scipy.ndimage.interpolation import rotate as rt class ImageGenerator(object): def __init__(self, x, y): """ Initialize an...
[ "zxdmike@163.com" ]
zxdmike@163.com
a3b6ab4f0b46969ac9e288517ab593a9c27966fb
f77a842ac3f196d1fdb6eb0c2dcbafbbdb130ac0
/tools/linux/Linux_SecurityAVB/avb-challenge-verify.py
7b6e856174eb20bed2e63fee27e22b89ae90192c
[]
no_license
mrigendrachaubey/nanopi
c742fe61497c6fb01dd9723d20e474fb1c46ab91
d8e917c6440c672b05b0663b794c4bafc799df1d
refs/heads/master
2021-07-15T03:08:38.613135
2021-05-25T09:51:10
2021-05-25T09:51:10
247,435,551
5
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
#/user/bin/env python "this is a test module for getting unlock challenge" import sys import os from hashlib import sha256 def challenge_verify(): if (len(sys.argv) != 3) : print "Usage: rkpublickey.py [challenge_file] [product_id_file]" return if ((sys.argv[1] == "-h") or (sys.argv[1] == "--h")): print "Usag...
[ "mrigendra.chaubey@gmail.com" ]
mrigendra.chaubey@gmail.com
98252c27be41a24bc7fc6115b4d0a60b67779206
9b75aba6053794beb3ba50ba86fbc41909f54fa3
/welp/api/client.py
ca83bd4271156e7ba96fd3abb5b8dca36acd915d
[ "MIT" ]
permissive
azye/welp
a16a07391d3db6773038eb7c16fc7e27bd79a355
af18a94673c8e04fdf10f8222d15b67af924f9e8
refs/heads/master
2023-05-09T13:15:38.346926
2021-05-30T04:27:33
2021-05-30T04:27:33
237,330,064
0
0
MIT
2021-03-06T10:50:20
2020-01-31T00:03:34
Python
UTF-8
Python
false
false
271
py
import requests from .google.geolocation import Geolocation from .yelp.business import BusinessSearch class Client: def __init__(self): self.session = requests.session() self.yelp = BusinessSearch(self) self.geolocation = Geolocation(self)
[ "alexzye1@gmail.com" ]
alexzye1@gmail.com
93431b4260ae9bcc50dc2babafb602fe5f3a56f8
f3598888ce889075d006de9559aa67499ca0d708
/Common/CenterToLeft.py
d1cf789f60c0bb67849262f0612c7c308bf8032d
[]
no_license
JinYanming/jym_cmot_semi_mask
6f1ceafa344d2831cdc91e1af0515b417b3939d6
be5fc9694f802ab0fb2eaeb11c7eca10ee0e72b3
refs/heads/master
2022-02-20T05:56:36.418283
2019-09-18T18:23:40
2019-09-18T18:23:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
# Generated with SMOP 0.41 from libsmop import * # /workspace/MOT/cmot-v1/Common/CenterToLeft.m @function def CenterToLeft(x=None,y=None,height=None,width=None,*args,**kwargs): varargin = CenterToLeft.varargin nargin = CenterToLeft.nargin ## Copyright (C) 2014 Seung-Hwan Bae ## All rights reserved. ...
[ "1535640262@qq.com" ]
1535640262@qq.com
1b0e51b919441b6d97ed1baefb9ae33a0afd199e
b8fb60543cfd1c432640397727dcbb64c0c71b17
/blog/migrations/0046_auto_20201115_1826.py
bf32dca3cdc6f288b46bc4ccb5a7848e6276663b
[]
no_license
thambub/eatnowtrack
57e8cc98897de8904adf91cd0328c4abda61d632
998eceed88ccdc8f1de9b2823bd0a175d1a25190
refs/heads/master
2023-01-28T17:09:30.821820
2020-12-03T23:47:14
2020-12-03T23:47:14
318,330,861
0
1
null
null
null
null
UTF-8
Python
false
false
674
py
# Generated by Django 3.0.8 on 2020-11-15 23:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0045_auto_20201115_1516'), ] operations = [ migrations.AlterField( model_name='comment'...
[ "bavisnnut@gmail.com" ]
bavisnnut@gmail.com
781ffa6094e1e065a1662ff414e97c2d8e72f5f6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_clambake.py
a60e6c1d2e25f9b27e08fb830685e405c05f668b
[ "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
359
py
#calss header class _CLAMBAKE(): def __init__(self,): self.name = "CLAMBAKE" self.definitions = [u'an event in which seafood is cooked and eaten outside, usually near the sea'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
a2f9e589693f4eda5cea8869d53759b116acfc76
b0e299f6ab0139b831d0ed86cc6da0c3eb80b50d
/hello/public/deploy/chal.py
3cdcfdcec0ecf9a88f3f75665084382c0d2855d2
[]
no_license
kendricktan/paradigm-ctf
96768eb6a3ee76867b873e96e2f623796803361c
21ba8273f858d1af24d0abdb841bb019e8fa0965
refs/heads/main
2023-06-26T07:50:39.179665
2021-07-31T06:27:11
2021-07-31T06:27:11
387,947,845
5
0
null
null
null
null
UTF-8
Python
false
false
191
py
import eth_sandbox from web3 import Web3 eth_sandbox.run_launcher([ eth_sandbox.new_launch_instance_action(deploy_value=Web3.toWei(0, 'ether')), eth_sandbox.new_get_flag_action() ])
[ "kendricktan0814@gmail.com" ]
kendricktan0814@gmail.com
73782f3ba66ecf7f99c21522cdbbf9118fadd0e6
32e2ba212d39e022bea40f12cdd6b3c138a62ac0
/mizani/tests/test_breaks.py
b1e61d60f512ce503f985284c50ce6a24b8c473b
[ "BSD-3-Clause" ]
permissive
vals/mizani
148dd985d25796c25346a3fac106c1c5c7f40d05
6b288fe6061e36add001cc5f8ffb147154e7ca62
refs/heads/master
2020-09-11T09:59:07.672839
2017-06-16T08:03:30
2017-06-16T08:03:30
94,454,967
1
0
null
2017-06-15T15:47:21
2017-06-15T15:47:21
null
UTF-8
Python
false
false
5,432
py
from __future__ import division from datetime import datetime, timedelta import pandas as pd import numpy as np import numpy.testing as npt import pytest from mizani.breaks import (mpl_breaks, log_breaks, minor_breaks, trans_minor_breaks, date_breaks, timedelta_br...
[ "has2k1@gmail.com" ]
has2k1@gmail.com
562c9bb35d998b8ce6627c717bf74278490a6cd0
d96c552ff8debe98d6bd8d1ebf376f999ec4bcd1
/src/UpdateWeather.py
0b33f4692a2d8978e8a19ff8e74ff9f9f43e83b5
[]
no_license
shema102/AddressableLedClock
535cfc207d7380e92b3a57bfcbf7cfbcc169858d
e22703544c2254034187a68dbc0e8678b56cc3f0
refs/heads/master
2021-02-15T21:32:12.902520
2020-04-02T17:03:31
2020-04-02T17:03:31
244,934,071
0
1
null
null
null
null
UTF-8
Python
false
false
699
py
import math import urequests apiKey = "&appid=a988988f9b8811b3d5b23b888af9a7ca" url = "api.openweathermap.org/data/2.5/weather?q=" city = "Kyiv" url = "https://" + url + city + "&units=metric" + apiKey response = urequests.get(url) parsed = response.json() if parsed["cod"] == 200: weather = { "temperatu...
[ "sergeishemshur@gmail.com" ]
sergeishemshur@gmail.com
fa8d5992af22569fce3cc34d5d811404061b7321
fa1002dd32e2332396d0b359094050825e42c343
/emotion-program-pi-version.py
0cea550ccba505b69dfebe8c3071874a0e5092a7
[]
no_license
vanstorm9/Emotion-Recognition-DOF
ced912158e45636b53469b3dc0645bb4c5ab69f8
0d6e395bf950388a37065cb9ccf1bba44171c35f
refs/heads/master
2021-01-10T02:14:11.917489
2018-05-26T04:17:40
2018-05-26T04:17:40
45,325,932
28
15
null
null
null
null
UTF-8
Python
false
false
12,001
py
# Program implemented in the Raspberry Pi (with camera module) #from matplotlib import pyplot as plt #from sklearn.naive_bayes import GaussianNB import numpy as np import math import cv2 import os import os.path import io from time import time import picamera import smtplib #camera = picamera.PiCamera() from time i...
[ "antlowhur@yahoo.com" ]
antlowhur@yahoo.com
085d1484b6ee362c5c3585056107cee77dbe61f9
2a6640a155c3b5d64b57c2403d1eaa573a24cef4
/sales/models.py
f68ef1890fcff41b94d3ad9c709dc408ac1194be
[]
no_license
mortex/Mortex-System
db29813cc0e82c0c5fc840161b1703ffadecacba
f24972012a05dd4b5700b121c31b5bd5298b106c
refs/heads/master
2020-05-06T13:52:51.243130
2011-02-20T20:48:08
2011-02-20T20:48:08
1,390,293
0
1
null
null
null
null
UTF-8
Python
false
false
1,893
py
from django.db import models class ShirtStyles(models.Model): ShirtStyleNumber = models.CharField('Style Number', max_length=20) ShirtStyleDescription = models.CharField('Description', max_length=200) def __unicode__(self): return self.ShirtStyleNumber + ' ' + self.ShirtStyleDescription class Sty...
[ "ytfeldrawkcab@gmail.com" ]
ytfeldrawkcab@gmail.com
f03251f2e2c93487fb9538d28c53e60da6493523
772f8f0a197b736cba22627485ccbdb65ed45e4b
/day09/mygui3.py
85903ce1a15afbb06fa75763d482edd7e38d2f79
[]
no_license
zhpg/python1805
ddc69cd1b3bda8bef1cb0c2913d456ea2c29a391
3d98c8ebc106fd0aab633a4c99ae6591013e4438
refs/heads/master
2020-03-26T11:26:59.378511
2018-08-05T09:25:21
2018-08-05T09:25:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import tkinter from functools import partial def say_hi(world): def welcome(): label.config(text='Hello %s' % world) return welcome root = tkinter.Tk() label = tkinter.Label(text='Hello world', font="15px") b1 = tkinter.Button(root, bg='red', fg='whit...
[ "root@room9pc01.tedu.cn" ]
root@room9pc01.tedu.cn
9c0f12c71633297f2138baedc5d8a36a3f503ace
7337a861cd6fc6d445bebcc0b35738c25c0e2056
/Luck_check.py
542b453cd2797da88a89e394b98bcaec3641fb54
[]
no_license
szyymek/Python
556ba510709a3a1095dd19648f949422cb69ba96
0a6b25eeb39dcec5fef090f09a037353638f3b99
refs/heads/master
2020-07-24T01:20:53.418696
2019-10-04T08:05:06
2019-10-04T08:05:06
207,760,122
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
def luck_check(string): srodek=len(string) if srodek%2==1: string=string[:int(srodek/2)]+string[(int(srodek/2))+1:] lewa=prawa=0 for x in string[:int(srodek/2)]: lewa+=int(x) for y in string[int(srodek/2):]: prawa+=int(y) return prawa==lewa
[ "noreply@github.com" ]
szyymek.noreply@github.com
9205e79d281ae4f2c7b9d5297ae15e2a7e9864b7
ff88948139d3de275388d8747cafec9dba1f136d
/calameo-downloader.py
6017d7ee0ec49c5003e5f5952a28a3ba2146b59f
[]
no_license
quatrejuin/Calameo-SVG-Downloader
94d8c1893bd8e27ba888066fa6ce9bda7bf8e450
ae2cce295af267d6c542724a8c57149d074e5c9a
refs/heads/master
2022-12-14T13:10:42.695967
2020-09-16T20:05:48
2020-09-16T20:05:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,166
py
# -------------------------------------------------------------------------------------------------- # Calameoassets Downloader - # Copyright (c) 2020. Dr Watthanasak Jeamwatthanachai - All Rights Reserved - # ---------------...
[ "noreply@github.com" ]
quatrejuin.noreply@github.com
f43eac6a2df0d3e193a9bd001c6fd16852221592
898289e0a9e6638f1a85ceeb7efab6e031306355
/sharkcop-server/utils/Helper.py
0e9e3959bbd6406c36a9c4a51d3cc6c311de9f84
[]
no_license
CaoHoangTung/sharkcop
7c6beaf43765b6b2ae5b3d7a30d3842a2ff29726
7322601caf3a3780e38dda13960949f9b37e1931
refs/heads/master
2021-08-22T17:45:53.495133
2020-10-02T01:57:11
2020-10-02T01:57:11
227,616,144
8
0
null
null
null
null
UTF-8
Python
false
false
4,945
py
import threading from utils.Checker import Checker class Helper(): def url_is_internal(url,compare): # url is the param needed to be compared to compare if ".".join(extract(url)) == ".".join(extract(compare)) or (url[0:4] != "http" and url[0] != "#"): return True else: ...
[ "caohoangtung2001@gmail.com" ]
caohoangtung2001@gmail.com
c9a9d2dda80846c0c2c7b067316cfabaf6aed24b
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/1266/1266.minimum-time-visiting-all-points.289659185.Accepted.leetcode.python3.py
76eb95f002965918c8ee1bffff4858d8a5a97364
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
277
py
class Solution(object): def minTimeToVisitAllPoints(self, points): x1, y1 = points[0] time = 0 for x2, y2 in points[1:]: dx, dy = abs(x1 - x2), abs(y1 - y2) time += max(dx, dy) x1, y1 = x2, y2 return time
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
6e0a89dab8282ce28c62edeed53f22fefad4d2e7
6dc8db56c090c814840010d215da4d9f518eb7b3
/rt-rank/script/get_nfeat.py
30ac703502cab975b5f3396f7d5d370110d342a9
[]
no_license
fancyspeed/solution_of_kaggle_merck
571e4d008141bf6f161ce76af0bf2439dddfb3e9
f1da95bd69529395b8b370831c854f16ba1d90a3
refs/heads/master
2016-09-05T15:03:59.762071
2014-07-23T16:35:07
2014-07-23T16:35:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
def get_head_train(line): arr = line.strip().split(',')[2:] #head = [ele.split('_')[1] for ele in arr] head = [str(i+1) for i in range(len(arr))] return head def trans_train(p_in): n_cur = 0 for line in open(p_in): n_cur += 1 if n_cur == 1: head = get_head_train(line) print head[-1] ...
[ "michael@zamplus.com" ]
michael@zamplus.com
d8c6eb7e638620f0db30fcee4607c3f27da7d23c
501e9924cb19e95c32e2d168e73ea44e7c9c440c
/readfiles.py
9c0300bb83848b8231570bcef6216b1d447617f6
[]
no_license
Miguelmargar/file-io
cc2790b109187dbeec87788c662aaf52d8e96c02
f1c6f6ccfefbc572cac83a6ddc21ba2e902ac0c1
refs/heads/master
2020-03-17T17:23:49.493484
2018-05-21T12:22:23
2018-05-21T12:22:23
133,786,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
#to read a file's data # ONE WAY ----------------------------------------- f = open("data.txt", "r") # opens file to read it with "r" lines = f.readlines() # stores the file info in lines variable therefore in memory f.close() # closes the file but it is ...
[ "miguelitalia@hotmail.com" ]
miguelitalia@hotmail.com
9e4c1b0c6e3548f8390780416d6b8b139e913430
a07b644c3edec618d388207a15473072391496bb
/authentication/admin.py
b4122a2c3e0acf906408eb5865b577f60c778555
[]
no_license
sahadeb1234/Ecommerce-Site-using-Django-Framework
f16b4c28756eea087859d099cb68504b1839c950
9ee09c323ed99c185a88ae3327907f27c53b3dbe
refs/heads/master
2023-08-11T11:33:54.353876
2021-09-27T15:45:51
2021-09-27T15:45:51
410,944,658
1
0
null
null
null
null
UTF-8
Python
false
false
274
py
from django.contrib import admin from django.contrib.admin.decorators import display from .models import PreRegistration # Register your models here. @admin.register(PreRegistration) class PreRegistrationAdmin(admin.ModelAdmin): list_display=['first_name','last_name']
[ "np03a190065@heraldcollege.edu.np" ]
np03a190065@heraldcollege.edu.np
62c0360071a15ade3e6a6b3f38a577416759847b
7160e632d88bf49492616f8152c91cb9f1d40d8d
/testcases/statistical_form2/test_case_166_statistical_form_alarm_detail.py
53c29adc336cc3d9a149c60941a9e7a5f1d2954e
[]
no_license
huangqiming123/tuqiangol_test1
ad5ddf22ce61b5b6daad55f684be5da160a64e59
75722812260590480320910c4ad6f6c1251a2def
refs/heads/master
2021-03-30T23:29:08.478494
2018-03-12T03:45:11
2018-03-12T03:45:11
124,832,890
1
0
null
null
null
null
UTF-8
Python
false
false
2,802
py
import unittest from time import sleep from automate_driver.automate_driver import AutomateDriver from pages.alarm_info.alarm_info_page import AlarmInfoPage from pages.base.base_page import BasePage from pages.base.lon_in_base import LogInBase from pages.statistical_form.statistical_form_page import StatisticalFormPage...
[ "mail_zhangao@126.com" ]
mail_zhangao@126.com
9b44fa322343a38acbbcec9a94de34bb8d2c3102
3c559d076d6a2533dc19f724ca0d1d9fed942a9a
/voice/figures_fpa/parse_new.py
eb98cbd05b1055d49523937cfd5453794d041656
[]
no_license
YoungofNUAA/Deep-Reinforcement-Learning-for-5G-Networks
7e13fa6cfbf2d5f0f85829dc09189cb8cd08c3e7
1e8fb6f0407814b7251e443ef1626f6408d85df1
refs/heads/master
2020-09-11T12:31:22.499797
2019-11-11T13:46:47
2019-11-11T13:46:47
222,065,219
1
0
null
2019-11-16T07:47:47
2019-11-16T07:47:47
null
UTF-8
Python
false
false
1,192
py
#!/usr/local/bin/python3 # Note, if any output has NAN in it, we drop the entire episode from the calculation. import glob import re import numpy as np import pandas as pd files = glob.glob('measurements*.txt') f1 = open('ue_1_sinr.txt', 'a') f2 = open('ue_2_sinr.txt', 'a') f3 = open('ue_1_power.txt', 'a') f4 = open(...
[ "faris_mismar@hotmail.com" ]
faris_mismar@hotmail.com
cb2c71aa663f2ac3fe8a4c27dbcd52b9d4deb57d
ac33fa7e87fd771c2169a254b301665271a9dbb1
/util/preprocessing_yesno.py
82b15f6ee26c596ec48f23a8b97f88f7997febed
[ "Apache-2.0" ]
permissive
mimbres/FFTNet
c9444ed974040daf3909d30353f5bb1530e2b19d
3a6bfb4731bab2e0a59fc3a1ddb55f19f84aeba2
refs/heads/master
2021-07-06T02:50:09.106668
2020-07-21T19:50:37
2020-07-21T19:50:37
132,438,209
1
0
null
null
null
null
UTF-8
Python
false
false
4,724
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ preprocessing_yesno.py Created on Thu May 3 00:15:48 2018 This code saves: - apply zero padding to the first 48,000 samples - [mu-law encoded audio] to <out_filedir>/enc - [mfcc] to <out_filedir>/mfcc - NOT IMPLEMENTED YET ([f0] to <out_filedir>/f0 *...
[ "1ronyar@gmail.com" ]
1ronyar@gmail.com
28b8669c94017d20014d6686d8a7e309277cd2be
47fecfd05f2ef2881437b9f4716a56f3cbfd2443
/unique_in_order_7.6.18.py
1a4ed2556a8f0b6ac6da205b9dc392af10d25673
[]
no_license
royceduong/codewars
0c7d3ff0ef382b8b8eabd59807b5d495dc49d035
488410017873355d2dad3b125f9185a6c17a79e7
refs/heads/master
2020-03-23T00:45:49.941106
2018-07-21T06:16:11
2018-07-21T06:16:11
140,884,203
0
0
null
null
null
null
UTF-8
Python
false
false
1,575
py
# def unique_in_order(iterable): # array = [] # for v in iterable: # array.append(v) # print(array) # return array # def unique_in_order(iterable): # a = list(iterable) # i = 0 # b = [] # n = len(a) # while i < n: # j = 1 # while j < n: # if...
[ "royceduong@royces-mbp.attlocal.net" ]
royceduong@royces-mbp.attlocal.net
7b4457f2ee91759bffa3db4f8f238845a1d7c0af
49a983da9b890afba6983a35536945fb8e862a76
/bestgroup/bestgroup/wsgi.py
549c220ab1fb16bdcdf73adb8f5c07c9eda1a411
[]
no_license
Mumalo/BestGroups
e78d6b4967169f88bdec6f74c8881c7d200886cd
a2e4d1c7d60813e9a52554291f66f07b66fdbbea
refs/heads/master
2021-01-19T20:43:51.854174
2017-04-18T21:34:39
2017-04-18T21:34:39
88,540,777
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
""" WSGI config for bestgroup 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.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from mezzanine.utils.conf import ...
[ "ticha.muma@aun.edu.ng" ]
ticha.muma@aun.edu.ng
d13ca45229ac72fcabdb232a12ede0fc2c022130
30e52ca4bb782396c94b56a67cb5a3d3d1da89fb
/pages/main_page.py
9058fc68efb336c5b7bd7d335040accc705c0abf
[]
no_license
Daniil0555/final-project-stepik
0efcfd07076fbc60a1018de81183383e18c650fa
be727bd60dc023f7eed5ef2053d36b3c77f6c473
refs/heads/main
2022-12-27T12:43:12.795613
2020-10-12T17:19:18
2020-10-12T17:19:18
302,731,302
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
from .base_page import BasePage from .locators import MainPageLocators class MainPage(BasePage): def __init__(self, *args, **kwargs): super(MainPage, self).__init__(*args, **kwargs) def go_to_login_page(self): link = self.browser.find_element(*MainPageLocators.LOGIN_LINK) link.click()...
[ "d.golovin@city-mobil.ru" ]
d.golovin@city-mobil.ru
9361aa700700b980f8e9441d56dee3d2730b8b05
8c09764a1258696c51ef9ef9c1c3bdc1b931b00d
/pylons__shootout/shootout/tests/test_views.py
a2226095f946dd0ef87a8ab37d4b07a6f4f23cf8
[]
no_license
mindreframer/python-pyramid-stuff
2178c4922adca15b7905bb0916c8f035ca495564
4b9034bdde63ac8dd799ae2050506edd164a96b7
refs/heads/master
2021-01-18T16:09:52.835796
2013-04-09T20:09:44
2013-04-09T20:09:44
9,325,528
2
0
null
null
null
null
UTF-8
Python
false
false
14,887
py
import unittest from pyramid import testing def init_db(): from shootout.models import DBSession from shootout.models import Base from sqlalchemy import create_engine engine = create_engine('sqlite://') DBSession.configure(bind=engine) Base.metadata.bind = engine Base.metadata.create_all(...
[ "roman.heinrich@gmail.com" ]
roman.heinrich@gmail.com
d3f3963754a68023200fa1fc0ba465a86508387f
8324e8db16cdd8797b57b5a514c173614c6e94cc
/Praktikum-Protek-05/Latihan 2/latihan06.2.py
bdd44d95e3739361f6fc3bd6a4f9592f8fef2b6a
[]
no_license
itsme-dazainaki/Praktikum-Protek-05
f19681837b031199183fcdc50931bedabe045ac1
21b77fb85059709f27955b39033171045b737ae0
refs/heads/main
2023-01-05T07:23:52.268240
2020-10-31T15:03:30
2020-10-31T15:03:30
308,905,022
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
#intro print("Hai.. nama saya Mr. Lappie, saya telah memilih sebuat bilangan bulat secara acak anatara 0 - 100. Silakan tebak ya !!!") #mari mendeklarasikan variabel buat nampung skor skor = 0 #pengecekan menggunakan perulangan while True: skor +=1 bil=int(input("Tebakan Anda : ")) #ini buat menampil...
[ "noreply@github.com" ]
itsme-dazainaki.noreply@github.com
2209b38614cce66f22db5824dd24b4616f625049
2a2b2fdab63be529165ea1032eb532be9f2a1834
/process_seq.py
66f652977e64504f4727fb62e97d45ca7f3298fd
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
lucymaybio/FastSeq-pipeline
da64a6e47d9bb960e3841d1d5d7f423aaef1629b
2d9db00e76996c9619a75583bc547be535d692b1
refs/heads/master
2020-04-21T19:29:44.844101
2019-02-08T06:35:54
2019-02-08T06:35:54
169,808,114
0
0
MIT
2019-04-05T16:45:51
2019-02-08T22:37:49
Python
UTF-8
Python
false
false
13,278
py
#!/usr/bin/python3.6 """ Sequence processing pipeline used to analyze packaged viral genomes """ from argparse import ArgumentParser from csv import DictReader, DictWriter import logging import os from pathlib import Path from subprocess import run import sys # Argument parsing setup parser = ArgumentParser(descriptio...
[ "ntilmans@gmail.com" ]
ntilmans@gmail.com
dcdddf53bab181771e04c9a9bf3252384665391b
3330426fe8ccd5d313e12fbf53e4423b0428560b
/crossover6.spec
30f91a58e9b76774020dfbcd5cc457e9b95b46b2
[]
no_license
ryanjhbae/ics3u-culminating
75ed5f660a594e412e00f34bf9a3ea0dd7079ccf
c3baa8f87c7d90e040991b2a176abbbf2b44c828
refs/heads/main
2023-04-24T01:27:05.333864
2021-05-06T15:52:50
2021-05-06T15:52:50
364,963,721
0
0
null
null
null
null
UTF-8
Python
false
false
871
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['crossover6.py'], pathex=['E:\\Python\\Culminating5'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_r...
[ "59541976+ryanjhbae@users.noreply.github.com" ]
59541976+ryanjhbae@users.noreply.github.com
325f50720e6a0ef2fe6a1ebfeb94d424c5f73687
bb065d599a2d39f4b5df520ac9e8ce2ee7adc7c7
/src/py/var_int_to_var_ubin.py
f67f88b1d6f591ffeed0dc96e70f40cc3dbdeb8b
[]
no_license
arq5x/gqt
ad60441e4abcb2eb3585595dea22e851f274d664
2d6dbde100c255526134dfee1767459b482d0ddc
refs/heads/master
2021-01-18T09:28:27.972850
2014-09-23T13:29:21
2014-09-23T13:29:21
24,371,487
1
0
null
null
null
null
UTF-8
Python
false
false
1,779
py
#!/usr/bin/env python import sys import numpy as np import array from optparse import OptionParser parser = OptionParser() parser.add_option("-v", "--var_int_file", dest="var_int_file", help="Variant int file") parser.add_option("-b", "--ubin_file", dest="ubin_file", help="Uncompressed varia...
[ "ryan.layer@gmail.com" ]
ryan.layer@gmail.com
e969823ef0cead302c9668f1da26a031f717fbd4
58f649415d23c4ff4d86226564de699493f63d61
/Day1.py
68256325512b0284297b817b703208eded450f75
[]
no_license
Aselian-Gull/Advent2017
d34a9fb49a7ca8582da5104d312b861ed4fd65ae
6bd6f4ea7f6a36335be6921e3e8f7b8dfad0cad3
refs/heads/master
2021-09-01T05:41:10.329756
2017-12-25T05:42:18
2017-12-25T05:42:47
113,138,615
1
0
null
null
null
null
UTF-8
Python
false
false
762
py
#import math #import hashlib print("Good evening. Advent of Code 2017, Day 1.") f = open("/home/smacgil/Development/Advent/input2017_1.txt", "r") inputfile = f.read() f.close() totalone = 0 totalhalf = 0 maxval = len(inputfile) - 1 # EOL is a thing. halfval = int(maxval / 2) # Convenience. for digit in range(0, ...
[ "wizzard.gull@gmail.com" ]
wizzard.gull@gmail.com
09c5c0f500049f682537e17e758566cd5a346d59
bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4
/sage/src/sage/combinat/species/functorial_composition_species.py
6c84368ba4dfa192538a5c7946a0850b4b801bd3
[]
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
5,158
py
""" Functorial composition species """ from __future__ import absolute_import #***************************************************************************** # Copyright (C) 2008 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distribute...
[ "valber@HPC" ]
valber@HPC
fe955cbfd83504fea6956a13b9d40c1f5a88b5a8
9051a89f6e849adf68225d862483f8bd218a54a6
/sql/convert.py
582757cb652b80ba4be06ddc40d55899812a5dc8
[]
no_license
witalosk/chemical
9deb2741db7358ddb163239e9372f64c554f1950
f6c1e69fb50344a8cf3e54d5f638de1c6c21afc1
refs/heads/master
2021-04-18T18:52:02.307949
2018-06-12T15:00:19
2018-06-12T15:00:19
126,440,023
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
#! /usr/bin/env python import sys def main(): print("SET sql_mode='NO_BACKSLASH_ESCAPES';") lines = sys.stdin.read().splitlines() for line in lines: processLine(line) def processLine(line): if ( line.startswith("PRAGMA") or line.startswith("BEGIN TRANSACTION;") or line...
[ "shun_september@live.jp" ]
shun_september@live.jp
068777999b31a9511eaf61a997af405208261bad
09aedd16bee72d68ecfc84c86e8eaa9a9a00a1b9
/Sprint_Challenge/northwind.py
f27555c2382acafb5ef149173936c82e6b8d5d1c
[ "MIT" ]
permissive
albert-h-wong/DS-Unit-3-Sprint-2-SQL-and-Databases
d911ddabce11533a326268048af708ad82ad0f02
4220f5ced48080da338e99d4fa9da3fb878b6daf
refs/heads/master
2020-04-24T11:37:30.227299
2019-02-28T00:47:05
2019-02-28T00:47:05
171,931,476
0
0
MIT
2019-02-21T19:25:04
2019-02-21T19:25:04
null
UTF-8
Python
false
false
2,674
py
#!/usr/bin/env python """ Unit3 Sprint2 Challenge - Northwind """ import sqlite3 conn = sqlite3.connect('northwind_small.sqlite3') curs = conn.cursor() curs.execute("""SELECT ProductName, UnitPrice FROM Product ORDER BY UnitPrice DESC LIMIT 10;""") results1 = curs.fetchall() print(results1) # [('Côte de...
[ "albe.h.wong.com" ]
albe.h.wong.com
042cbf52143196b868afdd9abf034bc2a4ed1dd5
a3a3183bc3ae9d3d4bad2f4923e8297bce0ff7d3
/final/Python-3.10.0/Lib/ensurepip/__init__.py
f28ab11ed400828f39a629a46d2708f9de616bad
[]
no_license
Nuitka/Nuitka-references
4b78831e6947f1c4b32ef034435a88ecfd27f701
f20d1b5728ec00cf8a5b23d650101c288b2594e9
refs/heads/main
2023-08-06T19:12:11.795836
2023-08-03T14:54:16
2023-08-03T14:55:22
169,884,560
2
1
null
null
null
null
UTF-8
Python
false
false
9,487
py
import collections import os import os.path import subprocess import sys import sysconfig import tempfile from importlib import resources __all__ = ["version", "bootstrap"] _PACKAGE_NAMES = ('setuptools', 'pip') _SETUPTOOLS_VERSION = "57.4.0" _PIP_VERSION = "21.2.3" _PROJECTS = [ ("setuptools", _SETUPTOOLS_VERSI...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
5e41747f40d11f76f99a1e32c1a1325790c104b9
1fc092e26377798f33dbc39b4e469df5a72a672f
/Fibonacci.py
f2eabbfa27ea7da5a9acc24212bef6ee8407e2ae
[ "MIT" ]
permissive
lelouch0125/Fibonacci-Numbers
8646192249016190fcc4495abb516bf677a345c7
3649c5d991b887e0b5bafb6dc39f9b8c752c1e56
refs/heads/master
2022-11-14T17:49:51.560414
2020-07-08T17:38:29
2020-07-08T17:38:29
278,146,456
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
#Program to print Fibonacci numbers n1=0 n2=1 i=0 n=int(input("Enter the number of terms ")) if n<=0: print("Enter positive numbers") elif n==1: print("Fibonacci series:\n") print(n1) else: print("Fibonacci series:\n") while i<n: print(n1) s=n1+n2 n1=n2 ...
[ "noreply@github.com" ]
lelouch0125.noreply@github.com
fae38ea09e1beb8207caeb28a4f7c4996b13a758
af179f861c423a27ed4539882b1b17202c4833b5
/algorithms/curious_a2c/agent_curious_a2c.py
5c24f7f2685aa3ba6dedb53e35ac26524afdf941
[ "MIT" ]
permissive
alex-petrenko/curious-rl
1666251076859304b55969d590447fc6b5c3b2f6
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
refs/heads/master
2020-04-08T01:32:28.271135
2019-06-13T20:54:22
2019-06-13T20:54:22
158,899,170
22
3
null
null
null
null
UTF-8
Python
false
false
24,992
py
""" Implementation of the curious variant of the Advantage Actor-Critic algorithm. """ import time import numpy as np import tensorflow as tf from tensorflow.contrib import slim from algorithms.algo_utils import RunningMeanStd, EPS, extract_keys from algorithms.baselines.a2c.agent_a2c import AgentA2C from algorithms...
[ "petrenko@usc.edu" ]
petrenko@usc.edu
bc852715d8fa163594392bc2797185b171e26502
c91100ba78470286ec305a790b7a73747b0cc5c8
/WeatherHarvester.py
e0b31ebe6cb2acf626028400fcd91c0b6d985054
[]
no_license
oze4/oPyn_weather_map
d70ef4707f174f84a0579238d7e145fe5667f63f
353ccef78438b2947a8d1d958c996d41873fdfa0
refs/heads/master
2020-03-27T14:22:08.299948
2018-08-30T03:29:25
2018-08-30T03:29:25
146,658,630
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
# TODO: put classes to work
[ "moestreich@centretechnologies.com" ]
moestreich@centretechnologies.com
6b3c1d860fb9496abc013b7c05295ca4b5aec5a6
b5989239ab2088123317734124305c8c3ba13de1
/pets.py
b9c849099f0b37c8c6fc7a9005b1524aac331616
[]
no_license
iayoung85/2ndsandbox
d5771c24ace20290642c7c5a2870f4925d8e7b1a
f94f21c7e9b2576ede6d88ad025b99e7ae806bb4
refs/heads/master
2023-07-13T03:47:21.659957
2021-08-25T21:16:39
2021-08-25T21:16:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
color=input("What's your favorite color? ") animal=input("What's your favorite animal? ") number=input("What's your favorite number? ") print("Ok, I guess your ideal pet would be a "+color,animal+" with "+str(number)+" legs!")
[ "iayoung8505@gmail.com" ]
iayoung8505@gmail.com
7a74a41d8122d6130dccc0e194bd291246fac564
749f096d2146bdb37f11e5face2b7a1b51fc7beb
/centerloss.py
3b18997efd86c12cdb4bde3e54665af5ad78c892
[]
no_license
WangBenHui/fgcmr
2129eca7d3ea4f059b70710c458891967d0496bf
1568d67817a8bbcb537b556f34285f17654601fa
refs/heads/master
2022-04-24T17:23:58.564203
2020-04-30T14:25:30
2020-04-30T14:25:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
import torch import torch.nn as nn import scipy.spatial class CenterLoss(nn.Module): """Center loss. Reference: Wen et al. A Discriminative Feature Learning Approach for Deep Face Recognition. ECCV 2016. Args: num_classes (int): number of classes. feat_dim (int): f...
[ "noreply@github.com" ]
WangBenHui.noreply@github.com
8482e6db69da923cddef863c3d9bd5a5fa84fe6c
660d24268591ecb54e9f7885a195bb7f37f6836a
/DataStructure/Set/Prob6Union.py
999c8e253f2fd0b02e7af0d0d6a0ecbbdb8704f5
[]
no_license
mandar-degvekar/DataEngineeringGCP
3e924c3438fcdb3db7aa3fe14ab5b60a9a796554
086a82d4fb66c4ed70337d7715dc9ad32ddd46df
refs/heads/master
2022-07-15T19:37:53.052570
2019-06-25T09:59:44
2019-06-25T09:59:44
192,692,729
0
0
null
2022-06-21T22:11:24
2019-06-19T08:37:21
Python
UTF-8
Python
false
false
137
py
s=set(['abc','xyz','ss','bb','ss','dd']) print('Set1:',s) m=set(['abc','xyz','coco','mocha']) print('Set2:',m) print('union:',s.union(m))
[ "mdegvekar@gmail.com" ]
mdegvekar@gmail.com
969b43e6469219c4cc7b935c8ba80b364f6e5e5a
21e9b5b658d8190b793b75ce74d6b5a2f96c20d5
/magma/lte/gateway/python/magma/pipelined/datapath_setup.py
347334e093a85fc93fe17ac4088cc32085780ce5
[ "BSD-3-Clause" ]
permissive
shivesh-wavelabs/magma-main
e483a2e9640e31f890ebe23cd17a3b190f1ab2da
66bc17004a07c26028562b328b07539ecc3d2f9c
refs/heads/main
2023-07-18T20:06:28.202153
2021-07-23T07:35:45
2021-07-23T07:35:45
400,152,493
0
0
null
null
null
null
UTF-8
Python
false
false
3,358
py
""" Copyright 2021 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
[ "shivesh560@gmail.com" ]
shivesh560@gmail.com
9c94a6ae985e0ffbcc4884ebef338fa1f8d357d0
b7a2a80843fa5141ffb9c7b4439f1d2ac713af30
/Version2/U7.2_Threads_Alt.py
6e674dc4ae02171ef537759fd638fb0b727f2a73
[]
no_license
wunnox/python_grundlagen
df1bc2b9b1b561bd6733ccc25305e799a48e714e
fa84d7aae7332a7acbb3ba7ff0fe2216cc345fc0
refs/heads/master
2023-05-01T12:19:23.208445
2023-04-16T11:29:01
2023-04-16T11:29:01
222,099,539
2
3
null
2019-12-19T10:56:43
2019-11-16T12:57:54
Python
UTF-8
Python
false
false
1,241
py
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function #################################################### # # Uebung: # Erstellen Sie ein Programm, welches drei Threads startet # Der erste Thread läuft 8 Sekunden, der zweite 4 Sekunden und der dritte 6 Sekunden # Nehmen Sie als Vorlage , die ...
[ "peter.christen@cssgmbh.ch" ]
peter.christen@cssgmbh.ch
9db249d2ef36520a60d54f9e60ae144e9e92038e
932ce227a7b641cf5243a61dc97ea7c40455ef89
/api/celery.py
d0261c6928ed44368604cc9382ac64e711fa5492
[]
no_license
aserguie/SeelkCoinAPI
d1d3b8a8bc3f86f2680753ecca88c265a795d363
084007153c3614e830874fc8ceade30975b4927c
refs/heads/master
2022-12-10T05:53:25.158661
2019-11-19T10:40:42
2019-11-19T10:40:42
222,402,223
0
0
null
2022-04-22T22:41:55
2019-11-18T08:45:09
Python
UTF-8
Python
false
false
714
py
import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.settings") app = Celery("api", broker="redis://", backend="redis://", include=["api.tasks"]) # Using a string here means the worker doesn't have to serialize # t...
[ "adrien.serguier@ernesti.fr" ]
adrien.serguier@ernesti.fr
efe434213dc08aa37d70206d5ba0731cffc4253b
3ddd6915d480b3e69d95d3970ed22cd64ce5cb2b
/Monster.py
81965497b40fe0c979f81702fbe6ebebec2d0352
[]
no_license
batescol/Zeaurk
8b299f6ff498bc53c6a198620185eb679cfadca7
b748baec1e7800113dce6587bcdaf0a5d6ac41d1
refs/heads/master
2021-04-15T14:20:10.344945
2018-03-23T03:41:43
2018-03-23T03:41:43
126,427,464
0
0
null
null
null
null
UTF-8
Python
false
false
821
py
import Observer import random # This class represents a generic monster class Monster(Observer.Observable): def __init__(self, house): super().__init__() self.house = house # set the label to something memorable so we can # catch weird bugs self.label = "__MON__" self.setObser(house) # Called to ...
[ "noreply@github.com" ]
batescol.noreply@github.com
ed86654502c4aba575c6e6a700d207d96b6f6a5e
acdf28f00143f4b9f21494fe08abf2b32a04e2c5
/comment/migrations/0002_auto_20181214_0037.py
8b845764eeedb1286d64a0274b74fa27210adcea
[]
no_license
ITuDous/myblog
5341ff8afba0b624a83c7874b8a6a8791314cc53
c3a84ec34647a4907434c94c80739ee99c11f78d
refs/heads/master
2020-04-11T12:26:03.355313
2018-12-17T16:15:14
2018-12-17T16:15:14
161,780,084
1
0
null
null
null
null
UTF-8
Python
false
false
485
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-12-13 16:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comment', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "771316531@qq.com" ]
771316531@qq.com
ae973368e63b0ad138b2cd102e4f343956afe41d
d6cc3073f85f962e717e706abf83091be3bf44dd
/easemyshopping/urls.py
5ffcc63648d72102c4b8dda700e0f0b2c0115c68
[]
no_license
pranav-katlana-56/Ease-My-Shopping
358d9cfdd5ed9818477a96c80409101b021276eb
480bd69466d06aef56b8331c1f47ca67ceb07704
refs/heads/main
2023-06-23T03:47:33.490227
2021-07-24T18:54:51
2021-07-24T18:54:51
376,473,662
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
"""easemyshopping URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
[ "pranav.k@usa.com" ]
pranav.k@usa.com
163265522ac5b1d53899d5d114cb4432cf72522d
1548ce77537dcd50ab04b0eaee050b5d30553e23
/tests/test_pipeline/components/classification/test_lda.py
f78f133407c5e5dff1614b0807339f117fb6d6e8
[ "Apache-2.0" ]
permissive
Shamoo100/AutoTabular
4a20e349104246bf825ebceae33dca0a79928f2e
7d71bf01d2b7d84fcf5f65c9f45c5cea1255d8a2
refs/heads/main
2023-08-13T21:34:34.329888
2021-10-02T07:06:00
2021-10-02T07:06:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
768
py
import sklearn.discriminant_analysis from autotabular.pipeline.components.classification.lda import LDA from .test_base import BaseClassificationComponentTest class LDAComponentTest(BaseClassificationComponentTest): __test__ = True res = dict() res['default_iris'] = 1.0 res['default_iris_iterative'...
[ "jianzhnie@126.com" ]
jianzhnie@126.com
cc042b33e9836bf1c995f6cbc4bb6b74aaab5ce0
c25fe18d30e3d4fdaf78b65608b8997c8b05ddca
/myweb/guestbook/migrations/0001_initial.py
44c7eae0610c7b144e0d30e28583735d871c3901
[]
no_license
qmakzl/Python-Django
aafb8005da9e5ecd6dfcd6591ac0052e88342150
b9d5cf7fc5caf288cb91daf144d4eb2bc71b1eb0
refs/heads/main
2023-07-27T14:05:07.645794
2021-09-02T07:39:40
2021-09-02T07:39:40
320,154,381
1
0
null
null
null
null
UTF-8
Python
false
false
759
py
# Generated by Django 3.1.3 on 2020-11-26 02:00 import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Guestbook', fields=[ ...
[ "noreply@github.com" ]
qmakzl.noreply@github.com
afbe88d7eb97cb8bd5ee6d07a3d91df5a0d6ddef
909bbd1bf3e52db2027e6f8075a8e1587cec0470
/req-client.py
38619eececf0d04bafba36975e14bf47a3a68c33
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
lkarsten/libvmod-policy
c85c16e99b015d9fcde0a55bd8155180703ef5e7
7447ed73dc654cccf981d6c1795ebe3c9971c004
HEAD
2016-08-07T17:02:34.776618
2013-12-11T15:16:45
2013-12-11T15:16:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,045
py
#!/usr/bin/env python # # This would be what Varnish does. # import struct import socket from time import sleep, time # no empty ending lines. req = ["""xid: 12345 vcl_method: 1 client_ip: 127.0.0.1 t_open: %s http_method: 1 URL: / proto: HTTP/1.1 """ % time(), """Host: localhost Accept: text/html,application/xhtml+xm...
[ "lkarsten@varnish-software.com" ]
lkarsten@varnish-software.com
043db3e45d99d02a4a0ebd409673a173cd7d82e1
bd298cf70991a97f896c2be7d0c255d822166b54
/Servidor/client.py
09991814f19d399b26858f7b6cc25e5735cc2d17
[ "MIT" ]
permissive
wesbdss/GameFabrica
97a2671cd6da49e1122d24007ecc1d06e3a2fb71
6b0940237bcfc08e43b389e910ae72936f7ebeda
refs/heads/master
2020-08-07T15:15:05.248991
2019-12-04T14:34:22
2019-12-04T14:34:22
213,501,969
1
0
MIT
2019-11-08T06:56:53
2019-10-07T22:57:29
Dart
UTF-8
Python
false
false
697
py
from websocket import create_connection import json ws = create_connection("ws://localhost:8080/event") msg = "" while msg != "sair": print("Teste de funções (wey): 1 - jogar 2 - ingame 3 - end") msg = input("Digita o função >> ") username = input("Digita o username >> ") if msg == "sair": quit...
[ "allanleite.97@gmail.com" ]
allanleite.97@gmail.com
ac6a0ca371b731aea7262b3985218e9426f0ad47
bab72bfcdb7fa3bd982220ce1fb4865a4cf3612f
/app/Database/website.py
0735be0909b59ed1dd924b1e830a087508684230
[]
no_license
AtulPhadke/Energy
45e815cbce8f5d2e353a2abf162b2ae1f6446e53
860cb8061b5158cf215102f32bc1d25cbfed4d65
refs/heads/master
2020-11-27T20:27:05.226903
2019-12-22T16:01:57
2019-12-22T16:01:57
229,590,598
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
from flask import Flask from flask import render_template, request import time import os app = Flask(__name__) @app.route('/') def function(): humidity = 0 temperature = 2 wateranalog = 3 print ("something for testing") return render_template("Data.html", humidity=humidity, temperature=temperature,...
[ "noreply@github.com" ]
AtulPhadke.noreply@github.com
6eb14329982905dd577294ff85fde1af3c9295af
427e2c921704e1064db85ffca63f887b865d8f60
/src/extract_chromosomes.py
8fa547c8a6cbaa84ed38793906e3b0bbfe953aaa
[]
no_license
Shannon-E-Taylor/apis-numb
62a9bc7139af358fe4b403e1dc9713d8047a7bbc
8289fa3b8c4e4ed3573d5566d984e0463805df26
refs/heads/master
2021-01-25T10:35:38.948680
2018-09-28T02:54:09
2018-09-28T02:54:09
123,363,414
0
1
null
2018-03-08T22:48:48
2018-03-01T01:14:21
Python
UTF-8
Python
false
false
401
py
#!/usr/bin/env python3 from Bio import SeqIO ########### # GLOBALS # ########### fa = snakemake.input['fa'] output_fa = snakemake.output['fa'] target_chr = ['Group1.4', 'Group3.5'] ######## # MAIN # ######## scaffolds = [x for x in SeqIO.parse(fa, 'fasta')] kept_scaffolds = [x for x in scaffolds if x.id in target_...
[ "twharrop@gmail.com" ]
twharrop@gmail.com
262fc3846844f497b0bab68f27751c6f64640fdc
4b62abbdc2a37ec7b38ad09d287acb1f868c9389
/skimage/color/__init__.py
29f36aeced04a598b59474cc226c989d9a314b6b
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
retsyo/scikit-image
98b3472e569dc40d2373ad282c8d9bcf93ac02ad
821c9f249df5c3cd0a5e885db8fbf3f659b65ef0
refs/heads/master
2023-06-08T15:55:05.840330
2023-05-24T22:03:21
2023-05-24T22:03:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,937
py
"""Utilities for color conversion, color labeling, and color difference calculations. """ from .colorconv import (convert_colorspace, xyz_tristimulus_values, rgba2rgb, rgb2hsv, hsv2rgb, rgb2xyz, ...
[ "noreply@github.com" ]
retsyo.noreply@github.com
e3e125bda8aedcaab4392164dede677f506328b4
35804ed41d74afd5610adfba6d8ee11dce579a8a
/sender/tesla.py
176896bbe72028c163f911ec3c6e0097972ebe98
[]
no_license
ye11ow/omw
cd6edbbfaa8b09d63a30fb64659026a9474b4a8e
e4b5828ca5d47315a9c43199e473480eaabfd6d7
refs/heads/main
2023-07-25T03:11:25.125427
2021-09-03T03:45:57
2021-09-03T03:45:57
389,790,447
0
0
null
null
null
null
UTF-8
Python
false
false
2,978
py
import traceback import time import json import random import logging import threading import click import requests import teslapy LOG_FORMAT = '%(asctime)s %(levelname)s %(module)s(%(lineno)d) - %(message)s' DATE_FORMAT = '%m/%d %H:%M:%S' logging.basicConfig(format=LOG_FORMAT, datefmt=DATE_FORMAT, level=logging.INFO...
[ "ye111111ow@gmail.com" ]
ye111111ow@gmail.com
592ac9a1613e8c2b0e733f3b1ebe6ebb4046e7ca
cb12e3eff7bbb5fe2f4d0e2be9ca165a5577dc93
/plt-and-algo/webrtc-p2pframe/serve.py
a43133af73a4329d22e725d2ebc34e112a0c7968
[]
no_license
overminder/kitchen-sink
6b1227ff00f8804d4d0a632e613ee903d51ab753
2e61b9041ceed536d42b42b75a5c50dae080c0ba
refs/heads/master
2023-06-09T05:48:47.291336
2023-05-29T17:38:34
2023-05-29T17:38:34
50,777,705
18
3
null
2020-02-09T19:22:18
2016-01-31T14:13:16
Scala
UTF-8
Python
false
false
3,346
py
#!/usr/bin/env python3.5 import logging import os import sys import random import json HERE = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) STATIC_PATH = os.path.join(HERE, 'static') from tornado import gen from tornado.websocket import WebSocketHandler from tornado.web import Application, RequestHan...
[ "p90eri@gmail.com" ]
p90eri@gmail.com
bb00b04ea2af5bfbb5cba1eaff0af1be4450a0e7
d965d74c37a519c4e1b3fc34c81dfdb86748c21c
/IA/Fibonnaci/Busca Gulosa.py
f2962b14ed0e90c65fe4b717da5275ac430299d6
[]
no_license
igorveridiano/faculdade
a5acbc3223e5a9b1347a18820a449f0e01d94ef1
f9fc97f75ca174e196697b7dc000492ffc573ea0
refs/heads/master
2021-10-15T23:06:42.586429
2019-02-06T13:11:51
2019-02-06T13:11:51
169,293,798
0
0
null
null
null
null
UTF-8
Python
false
false
2,301
py
map_maze = { 'A': [('B', 5)], 'B': [('A', 5), ('C', 7), ('F', 2)], 'C': [('B', 7), ('L', 8)], 'D': [('E', 3)], 'E': [('D', 3), ('I', 6)], 'F': [('B', 2), ('G', 5), ('J', 6)], 'G': [('F', 5), ('K', 6)], 'H': [('I', 3)], 'I': [('E', 6), ('J', 2), ('H', 3)], 'J': [('F', 6), ('I', 2)...
[ "igorveridiano@hotmail.com" ]
igorveridiano@hotmail.com
8704bbaf901d8a35e0ee5512cc626afd639f0d60
bed0d23d35b42b7316dee35f9fa06d4d2cc9de26
/src/custom_admin/__init__.py
5ec402089bc364c75d9685df1a8d89ebdb5cca66
[]
no_license
Bloodlettinger/meandre
b55911c93faf6c279f496394137def21ec181e6a
f9a8c5dc709fcdda808fc1329264724c7b8d951e
refs/heads/master
2020-05-17T23:01:15.326103
2012-10-11T17:22:48
2012-10-11T17:22:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
# -*- coding: utf-8 -*- from datetime import date, datetime def ddmmyy(value): if isinstance(value, (date, datetime)): return value.strftime('%d.%m.%y') else: return u'--'
[ "ruslan.popov@gmail.com" ]
ruslan.popov@gmail.com
4fd9c70db157736bfaf3aab4bd859f51b90b8f41
82aee3211216f55392d5a757eb57f02c859e9a28
/Easy/599_minimumIndexSumOfTwoLists.py
d92b6e8b5c30aa160a4ed09faac635a69b9d9ca6
[]
no_license
Yucheng7713/CodingPracticeByYuch
505d18095d4b9a35c1f3b23632a90a76d811b64a
1461b10b8910fa90a311939c6df9082a8526f9b1
refs/heads/master
2022-05-01T11:51:00.612603
2022-04-18T09:46:55
2022-04-18T09:46:55
198,961,132
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
class Solution: def findRestaurant(self, list1: List[str], list2: List[str]) -> List[str]: r_set = set(list1 + list2) map_1 = {res : i for i, res in enumerate(list1)} map_2 = {res : i for i, res in enumerate(list2)} common_res = [] min_sum = float('inf') for r in r_se...
[ "yuchengh@usc.edu" ]
yuchengh@usc.edu
904648d859ac06f42d2c1b82922651494faa5529
5b565d3b1eb96f3f70782bf2d3c97c47fcc9db17
/oops/constructor.py
a86bfe3416b2eb77d6a700a1f167a0768a0ba4db
[]
no_license
vinodkkumarr/PythonAdvance
46a49eefd7b66b765dc7d43963979b7c1db06f2e
af7b1f939a38fb7166f67e7f25be1c8db1625ca1
refs/heads/master
2020-05-19T05:58:06.752271
2019-05-11T11:31:11
2019-05-11T11:31:11
184,861,385
1
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
# -*- coding: utf-8 -*- """ Created on Sat May 4 11:07:21 2019 @author: Aarav """ class calculator: a=5 b=10 def __init__(self): self.a=10 self.b=20 def addition(self): return self.a+self.b def subtraction(self): return self.a - self.b def multiplicat...
[ "vinod.k.kumar@live.com" ]
vinod.k.kumar@live.com
9a4a66b73d5ac59e838f0aa82bbb615cf4efa43f
6c58da2c54a3d35273e7984313d181f1da9981fc
/Multiple_Apps/djangoEnv/bin/django-admin.py
78fd42c83301322a9da7ef20392fed2b3158a0b1
[ "MIT-0" ]
permissive
py1-10-2017/rgero215_PY1-10-2017
e582cb12cc63f84b1c0c14d09a922cb6cb228016
f455b335ec9c8c850571f3a75dcd95759b4cfdad
refs/heads/master
2021-09-04T03:23:48.062326
2018-01-14T21:07:26
2018-01-14T21:07:26
105,612,652
1
0
null
null
null
null
UTF-8
Python
false
false
187
py
#!/Users/RGero13/Desktop/rgero215_PY1-10-2017/Multiple_Apps/djangoEnv/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "rgero215@gmail.com" ]
rgero215@gmail.com
d37e35abfbf2c3e77023a18d970272c7300ff78e
a83708c948e47c4c259a7b36162f03e3a94de623
/blog/migrations/0009_post_photo.py
741eb18998de47554f96e1ed508c83817577c49c
[]
no_license
thingwithgrace/askdjango1
b6e79a5f0f7443562fec445e2fc3eb6342cf406b
b6dd45c7cee4da2de6a2486e321656df898e66de
refs/heads/master
2021-08-15T19:56:52.545201
2017-11-18T05:48:19
2017-11-18T05:48:19
111,119,372
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-11-12 05:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0008_auto_20171104_0938'), ] operations = [ migrations.AddField( ...
[ "thingwithgrace@gmail.com" ]
thingwithgrace@gmail.com
077a8eab9da148e455511ab157c33a420305bc9d
ce2e72a45446699917a306654a7f826c054858a2
/placetoplay/models.py
dfac32cd60628ac780dd0b1c032ff840e4fba7f0
[]
no_license
camiry/Placetoplay-Student_Project
de574460cac6fd807175cd7f7ab21bf1798eb78f
d4baeb0e35b102f8b2d49fb3fdb7fca2f215aeb8
refs/heads/master
2020-06-04T17:07:20.763927
2014-01-10T22:02:45
2014-01-10T22:02:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,633
py
from django.db import models from django.contrib.auth.models import User SKILL_CHOICES = ( ("No prior experience", "No prior experience"), ("Novice", "Novice"), ("Intermediate", "Intermediate"), ("Skilled", "Skilled"), ("Expert", "Expert") ) class Games(models.Model):#all m...
[ "camiry@gmail.com" ]
camiry@gmail.com
0c677d9e518612c3fc5e0bacb9933ba4d2590d55
9ed9e15c380b442175e56cf8dfdb22e2b34481a9
/task4.py
d87fe0e74fc54d5fd5d3e2cb238f9353392201d4
[]
no_license
Kolyan78/Zachet1
20e2af45ac3a07e0a985a5ffbb8f19b905dcd959
9978216e8e33dde1fd06943d4a346d91d1ebfc27
refs/heads/master
2023-09-06T09:16:14.813445
2021-11-06T19:18:05
2021-11-06T19:18:05
417,811,641
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
''' 4. На входе имеем список строк разной длины. Необходимо написать функцию all_eq(lst), которая вернет новый список из строк одинаковой длины. Длину итоговой строки определяем исходя из самой большой из них. Если конкретная строка короче самой длинной, дополнить ее нижними подчеркиваниями с правого края до требуемого...
[ "kolyan78@gmail.com" ]
kolyan78@gmail.com
2489b3cb627d4f223f765feef5d1da637afe9945
dcd83aeb799143b58956612fb0bfc0258d30f229
/util/InjectProduction.py
080e7bd5f38e06ae65983f3e5b91a4e0a5d453bf
[]
no_license
giffels/PRODAGENT
67e3e841cfca7421caa505d03417b663a62d321b
c99608e3e349397fdd1b0b5c011bf4f33a1c3aad
refs/heads/master
2021-01-01T05:51:52.200716
2012-10-24T13:22:34
2012-10-24T13:22:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,545
py
#!/usr/bin/env python """ Generate jobs for the workflow provided """ from MessageService.MessageService import MessageService from ProdAgentCore.Configuration import loadProdAgentConfiguration import sys,os,getopt,time usage="\n Usage: python InjectTest.py <options> \n Options: \n --workflow=<workflow.xml> \t\t wo...
[ "" ]
71ce47dbb7b39722811ea20222f23d88399b72e6
0476de1f17b2968e7639aa2e953594edd675a160
/CRUD(Success)/js/admin.py
fdc25e8b98f79f098bcaec84fb4437824bb88276
[]
no_license
hinomoto/Django
f50e98660631a61d7c3c8c79c6557ba3e816c31e
a52c8ab14049e553520956413e428041eed40b12
refs/heads/master
2023-08-03T22:29:28.651647
2020-01-06T11:19:09
2020-01-06T11:19:09
231,688,064
0
0
null
2023-07-23T01:55:01
2020-01-04T00:44:05
Python
UTF-8
Python
false
false
120
py
from django.contrib import admin # Register your models here. from .models import Color admin.site.register(Color)
[ "hinodevvvv@gmail.com" ]
hinodevvvv@gmail.com
b20ec919b3bf275ed1bcbe843963d49d1abfdeae
d6a87864028abde8da69b0a1075e3d4c483ed73c
/base/baseheap.py
6db645d2a85ffa7480fc4454289c7144d0ee5942
[]
no_license
Windsooon/LeetCode
7ef78c7e001c1e6924244869a7ba5491d33eb246
409d7db811d41dbcc7ce8cda82b77eff35585657
refs/heads/master
2021-01-10T15:26:16.986357
2020-01-01T14:57:58
2020-01-01T14:57:58
54,531,267
1
1
null
null
null
null
UTF-8
Python
false
false
105
py
class BaseHeap: def upheap(self, p): pass def downheap(self, p): pass def
[ "wiwindson@outlook.com" ]
wiwindson@outlook.com
b4d37ac1239c80ecc49ed220ce9f6f19b293de14
3ac01f05ef7c579c84237dec6fb06d7be141e998
/功能说明文档/提取文本.py
eef2dbaea6b9c8983c213223f86a1d4861cdcd05
[]
no_license
xiaohaiz1/dxkStickIDE
8027d4962f23ccf48c5fa3c5448ff6cd28d29979
27cbdc9ae4bacc2361e53ebc8c05026f9d58719f
refs/heads/master
2021-03-27T00:07:48.456668
2019-11-17T03:46:57
2019-11-17T03:46:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
import os, sys, re from os import path func_name = re.compile(r'(?<=def )([A-Za-z0-9_]+)\((.*)\)') code_dir = '../plugins_setup/microbit_dxk/dxk_ext' output = open('Document_raw.md', 'w', encoding='utf-8') fprint = lambda *args, **kwargs: print(*args, **kwargs, file=output) fprint('# dxkStick 开发者文档') for filename in o...
[ "799433638@qq.com" ]
799433638@qq.com
4be89123e49ddac69d783cd58a65464869343d44
3f9e0b03c86fa4f4e28b5e28bcb9bb2e737fe7e1
/env/Lib/site-packages/pip/_internal/network/auth.py
74d225472f6f62727fd2e4d698f77cf3137725e8
[ "Apache-2.0" ]
permissive
sinha-debojyoti/Ookla-Speedtest.net-Crawler
58c5b9d535b9f10f54eecbc656a6d62c50cc19b7
02e54f5679de74f732a34a37fac260d2ac34eb12
refs/heads/master
2022-07-18T10:27:35.020386
2022-07-03T03:53:11
2022-07-03T03:53:11
218,542,102
17
33
Apache-2.0
2022-07-03T03:55:41
2019-10-30T14:08:16
Python
UTF-8
Python
false
false
11,645
py
"""Network Authentication Helpers Contains interface (MultiDomainBasicAuth) and associated glue code for providing credentials in the context of network requests. """ import urllib.parse from typing import Any, Dict, List, Optional, Tuple from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth from pip._vendor...
[ "92641125+RoyCoding8@users.noreply.github.com" ]
92641125+RoyCoding8@users.noreply.github.com
f9fa5bd49d7735c223174b25cefd4fe467330275
f513fd306f53653511c8854556971956f5a38a0e
/算法入门/查找排序习题/习题3.py
62fdf650386650a471df10ed601c64ac166482f4
[]
no_license
forest-data/luffy_py_algorithm
ab10ca070cfbf17a08a61f88bfd9c3b3cb07f382
f6bec726ee98176b56b5ea556c1a521b693a80fb
refs/heads/master
2023-04-02T21:48:28.372136
2020-09-10T01:46:57
2020-09-10T01:46:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,788
py
""" 3. 给 nums =【1,2,5,4】 target = 3 结果 返回 (0,1) """ from 算法入门.cal_time import cal_time class Solution: @cal_time def twoSum1(self, nums, target): for ind, val in enumerate(nums): if target - val in nums and ind != nums.index(target-val): return (ind, nums.index(target-v...
[ "mail@gmail.com " ]
mail@gmail.com 
8449b0ad34f7cd388b0f486ff3029c4e45215abc
d12c1a96aa84c6fc24d4670bb8a258521088cee3
/art_gallery/gallery/migrations/0012_remove_gallery_g_id.py
270601a74289d7b6ba8a3de57dbdd10be3ec2b2a
[]
no_license
MrunalKotkar/Art-Gallery
b6f1301f236d03af77ee4b09af069d00a3fb1b64
91936a076d34515c7efb858c8f5891b9a4d35689
refs/heads/main
2023-01-07T12:57:54.223138
2020-11-06T16:45:18
2020-11-06T16:45:18
309,106,380
2
3
null
2020-11-06T15:57:31
2020-11-01T13:51:23
HTML
UTF-8
Python
false
false
316
py
# Generated by Django 3.1.2 on 2020-10-27 11:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('gallery', '0011_profile'), ] operations = [ migrations.RemoveField( model_name='gallery', name='g_id', ), ]
[ "kotkarmrunal@gmail.com" ]
kotkarmrunal@gmail.com
132238d5761dd0b15e7f41c87f1a002bdc31ab4a
1e783783668c46113e594cab9883a45cebc77142
/tools/IndicatorCalculation.py
cb7e5f5c6cbd60e0074e4074584296cb66269311
[]
no_license
shimq99/quant-trading-project
efbea4675adfa25c009e19f79b486386d4f1ba72
78334ea9eb926de74d1f3f25cfe4226964c994d3
refs/heads/main
2023-07-20T16:06:09.744719
2021-08-24T04:36:23
2021-08-24T04:36:23
364,751,660
1
0
null
null
null
null
UTF-8
Python
false
false
10,082
py
#encoding:UTF-8 import math import numpy as np import pandas as pd import datetime class IndicatorCalculation(object): @staticmethod def calculateMaxDD(ytdYieldList): #highestYield = -float("inf") highestYield = ytdYieldList[0] maxDD = 0.0 currentDD = 0.0 winDays = 0.0...
[ "shimq@berkeley.com" ]
shimq@berkeley.com
5f06821bd866c81f3ca62e6f14480248302bfc93
f53b37e6454ae2f96ae0608c39ff8395674b808f
/settings.py
e9e146d84c7c6c40a9d2bb27c732aab7ab72dccd
[]
no_license
dhanushraj2508/products
346f73317f5ee61ad0f0464ef3f25d7663a4ff27
57d7d242ef0f269ea0cf0269781988c73d44c4e7
refs/heads/master
2022-12-25T20:45:13.571309
2020-10-06T08:43:00
2020-10-06T08:43:00
301,618,655
0
0
null
null
null
null
UTF-8
Python
false
false
3,275
py
""" Django settings for productdetails project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ ...
[ "dhanush@instahire.us" ]
dhanush@instahire.us
30d76d5a0ff3e6f690abdabd2e750c027eb4391d
c05f9fb686ef49c093e618a4078ffe723231f346
/config/conf.py
aa2247f1303787036d7ea5fca1e3fa1d81a42f4c
[]
no_license
wmm0165/PytestAuto
d1bb40dcc5760439658c15af653953646119af44
42846b12ed7aefaa4e5890529ec71a76d27f245d
refs/heads/master
2020-07-16T16:35:19.962864
2019-09-16T10:08:37
2019-09-16T10:08:37
205,825,635
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
from datetime import datetime import os # 项目根目录 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 报告目录 REPORT_DIR = os.path.join(ROOT_DIR, 'report') # ui对象库config.ini文件所在目录 CONF_PATH = os.path.join(ROOT_DIR, 'config', 'config.ini') # 测试数据所在目录 DATA_Path = os.path.join(ROOT_DIR, 'data', 'tcData.xl...
[ "wmm_0165@163.com" ]
wmm_0165@163.com
7b9873841c9133e434fa69c2bdf27cf2707abbce
b9d4e2cee9cd6da7f07a63d2b9b426614cbb5346
/lambda_function.py
fb2c2809897ab79eca8116d17e19f0dd74416880
[]
no_license
jscaria/meetup-auto-rsvp
caaf422a88314e07e2ce9090100493395417b551
e1b84f827277a02e70f4a8300344ac74d9d127d5
refs/heads/master
2020-03-29T12:35:01.974103
2019-09-01T19:52:03
2019-09-01T19:52:03
149,907,091
0
0
null
null
null
null
UTF-8
Python
false
false
3,389
py
import json from botocore.vendored import requests import logging import os import boto3 import datetime import pytz logger = logging.getLogger() logger.setLevel(logging.INFO) ses = boto3.client('ses') def lambda_handler(event, context): events_url = "https://api.meetup.com/{0!s}/events?sign=true&photo-host=publ...
[ "jscaria@apple.com" ]
jscaria@apple.com
2c479f99d99661f008430e819abbbaef7e2c6f44
f24ebd0ee446e95f3953dbb840526fc6d299b13d
/env/bin/ipython
82b752a6c290b808cc8ce20367c3d216d899162e
[]
no_license
hendro15/flaskFramework
158f8f01aeec12e26d88f1a1522a93303ff32468
306a5b4885fdb4549d0472eac6fbd99b7986f949
refs/heads/master
2020-04-08T19:11:39.063975
2018-11-29T11:17:21
2018-11-29T11:17:21
159,644,343
0
0
null
null
null
null
UTF-8
Python
false
false
268
#!/home/sonic/Documents/latihan/flaskPACKT/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from IPython import start_ipython if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(start_ipython())
[ "hendro.prabowo15@gmail.com" ]
hendro.prabowo15@gmail.com
1d85ed4d923a65a348f818735d606d763db63edc
186e0826d663762db647cb96f52d01e54e391e77
/Part 1 - Getting Started/2 - Key Types/PublishSubject.py
8e76498cbe58b3425c74e1a89c39d63556712500
[ "MIT" ]
permissive
gmariotti/Intro-to-RxPY
09cb70f603f470b37a83ea854c3c1633a46a305d
37d102f13fd26950143875fbf8005bb5ce0b1a73
refs/heads/master
2021-03-22T04:19:12.775415
2016-07-22T21:30:34
2016-07-22T21:30:34
61,143,226
1
0
null
null
null
null
UTF-8
Python
false
false
219
py
from rx.subjects import Subject # In RxPY Subject instead of PublishSubject as in RxJava subject = Subject() subject.on_next(1) subject.subscribe(on_next=print) subject.on_next(2) subject.on_next(3) subject.on_next(4)
[ "developer.mariotti@gmail.com" ]
developer.mariotti@gmail.com
8b92035f4b34e0556c903e155ba9a8618bf17529
275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc
/test/test_bad_request_error_code.py
670128cb3664339498ad0e2fe8a03b0977a7c7ff
[]
no_license
cascadiarc/cyclos-python-client
8029ce07174f2fe92350a92dda9a60976b2bb6c2
a2e22a30e22944587293d51be2b8268bce808d70
refs/heads/main
2023-04-03T16:52:01.618444
2021-04-04T00:00:52
2021-04-04T00:00:52
354,419,532
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
# coding: utf-8 """ Cyclos 4.11.5 API The REST API for Cyclos 4.11.5 # noqa: E501 OpenAPI spec version: 4.11.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.bad_req...
[ "dan@leftcoastfs.com" ]
dan@leftcoastfs.com
7b82ae27e930608f379bae63c303ce502a3c27db
8a0acf95b459937c539ef935e524481c9d327ad0
/principal.py
655980f884a7973ab832dfe9b59d8a81c882d441
[]
no_license
ekdespe/botAgenciaTelegram
20f7087807590a2ff8f742bf498a26c785e0e73e
9768eb1d9de214c3638dcbde4332a9ef7f3d115c
refs/heads/master
2023-08-22T20:25:43.639874
2017-06-22T21:14:09
2017-06-22T21:14:09
410,154,625
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
#!/usr/bin/python #-*- coding: utf-8 -*- import telegram #from telegram.ext import Updater from telegram.ext import Updater, CommandHandler import os myTocken ="354690332:AAFB8Dgjae9nLjbOlwbJHDSczCOXFKP-ybo" def ajuda(bot, update): text = "/quemtaai - Lista todos os membros da agência presentes\n/ajuda - exibe ...
[ "ekdespe@gmail.com" ]
ekdespe@gmail.com
f93ba8788473687f41c7a3b09f3253b2ad98a371
2662da5c82071f4fa03ee0fa1ce3fd8f4e78096a
/Algorithms/Implementation/Lisa's Workbook/solution.py
60e15530cb4e33aea6d950351d5453c92f3b55c2
[]
no_license
perrinod/hacker-rank-solutions
8e64122f15c87932059d7dec5a87bc2f64b23e9e
088e94a4d74516c25781be5fd85a50f09b7cbda2
refs/heads/master
2020-08-02T11:48:48.550299
2020-05-29T10:51:33
2020-05-29T10:51:33
211,340,553
2
0
null
null
null
null
UTF-8
Python
false
false
737
py
#https://www.hackerrank.com/challenges/lisa-workbook/problem #!/bin/python3 import math import os import random import re import sys def workbook(n, k, arr): count, page = 0, 1 for problems in range(0, len(arr)): for i in range (1, arr[problems] + 1): if(i == page): count ...
[ "perrinod@unlv.nevada.edu" ]
perrinod@unlv.nevada.edu
805b07a4f1730c6ee6d19977351adf8d2591824a
21a82223831e5c8a51809a4d384e2de26c42b84e
/Solutions/350_Intersection_Of_Two_Array_II.py
939ada7741d4713f7c111422eacc9c88f1e45d0d
[]
no_license
xtymichael/Leetcode_python
91ef24adf174cb8d2a3e99f2784995a7439987a1
be47b1e0d22174043a2596eae6f141912573c67f
refs/heads/master
2021-06-15T23:46:57.335941
2017-04-24T05:46:28
2017-04-24T05:46:28
39,522,606
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
class Solution(object): def intersect(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ c1 = collections.Counter(nums1) c2 = collections.Counter(nums2) result = [] for num in c1: if num in c2:...
[ "chineserealsky@hotmail.com" ]
chineserealsky@hotmail.com
6627104198ebf9344162f9f5e1a84e658f4c0a6b
7175d25162eaa96c9d5860563b9d134185a3e706
/input/topics.py
66e5b9d0a8005a2ce62f52067155a7e9925874fd
[]
no_license
wimboes/SpeechHub
3612b8d9b528162b86d84b2a9d822740eab032cb
808f360a804173c1d118b88ab252982133841097
refs/heads/master
2023-03-04T09:22:52.289028
2017-05-26T09:30:21
2017-05-26T09:30:21
69,444,761
1
2
null
2022-10-22T00:56:11
2016-09-28T08:53:34
null
UTF-8
Python
false
false
384
py
from gensim import models, corpora lda = models.LdaModel.load('lda_512_10.ds') dic = corpora.Dictionary.load('dictionary.ds') #word_to_id = dict() #for (wordid,word) in dic.iteritems(): # word_to_id[word] = wordid nb_topics = lda.num_topics for i in range(nb_topics): lst = lda.get_topic_terms(i,topn=10) lal = [di...
[ "robbe_bobbedoes@hotmail.com" ]
robbe_bobbedoes@hotmail.com
34aee97e06e7bc1273527c6d8c5021b48c57f2a5
a30b3e3d6d9dd71f3df1e284ddf64687b8bb672a
/Python Data Structure/Assignment/assignment5.py
d055e0670f996a2223eb32a8bf2757f1111596c2
[]
no_license
shahbazkhan22/Python_for_Everybody_Specialization
23d5b15e9688471fc31a61d8c18e08f9cf4f0028
0d098ccaab64eae484416fed4105aea727393d5e
refs/heads/master
2020-04-29T18:16:48.702294
2019-04-14T07:30:50
2019-04-14T07:30:50
176,318,793
0
1
null
null
null
null
UTF-8
Python
false
false
297
py
file = open('mbox-short.txt') count = 0 lst = [] for line in file: if line.startswith('From') and not line.startswith('From:'): #lst = line.split() print(line.rstrip().split()[1]) count = count+1 print('There were',count,'lines in the file with From as the first word')
[ "mailshahbazkhan@gmail.com" ]
mailshahbazkhan@gmail.com
076bf3038294b33eac256cefdfcdc846835b8fba
9905901a2beae3ff4885fbc29842b3c34546ffd7
/nitro-python/build/lib/nssrc/com/citrix/netscaler/nitro/resource/config/filter/filterglobal_filterpolicy_binding.py
5aac2b8dd0a9540023a40b6dd3d6be45a9da1f39
[ "Python-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
culbertm/NSttyPython
f354ebb3dbf445884dbddb474b34eb9246261c19
ff9f6aedae3fb8495342cd0fc4247c819cf47397
refs/heads/master
2020-04-22T17:07:39.654614
2019-02-13T19:07:23
2019-02-13T19:07:23
170,530,223
0
0
null
null
null
null
UTF-8
Python
false
false
6,576
py
# # Copyright (c) 2008-2016 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "mdculbert@marathonpetroleum.com" ]
mdculbert@marathonpetroleum.com
0d8675623ee25e5eed9509e8c2626383d0468b6c
461670493b15f5e9e471ddcc76732261cf948b37
/challenge_189/challenge.py
7a6537928e7136b6d38472ac3259c8f68390cc46
[]
no_license
narenaryan/CodeEval-Solutions
d3d5f6bbecf74642d83b1e33c9e41f8ac2518924
bd63c78b5fac28439beefd747e272383cd839a89
refs/heads/master
2021-01-12T06:36:54.665037
2016-12-31T16:54:07
2016-12-31T16:54:07
77,394,649
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
import sys with open(sys.argv[1], 'r') as test_cases: for test in test_cases: if test.strip() != '': # Format the input inputList = test.split(" ") noOfFriends = int(inputList[0]) friendHouses = [int(i) for i in inputList[1:]] # This list stores d...
[ "naren@Narens-MacBook-Air.local" ]
naren@Narens-MacBook-Air.local
514c6c1c53e0f7b71bdda18ad194f84ac9781aa8
968ec31230d56db163f07f46f4aea82225bd03ee
/stubhub.py
1350e96fe6d240a1adc6d8f4eefda851bc56ad6d
[]
no_license
jboenawan/Facebook_Chat
3c0c9371d0b46726997de0fc0054ad93b3360785
eb966001c7d1eded9106222187126aaf9bf4c6ec
refs/heads/master
2021-08-23T23:29:25.166366
2017-12-07T02:48:37
2017-12-07T02:48:37
113,389,937
0
0
null
null
null
null
UTF-8
Python
false
false
1,996
py
# application token: b0c594ce-9b1d-3796-8dbe-f4b55d7600f6 # iPwnVBEYbRgOswSyn2kTqZq0qcsa:HM3QaC1nnoRbdqJM91UD70gSvnMa # aVB3blZCRVliUmdPc3dTeW4ya1RxWnEwcWNzYTpITTNRYUMxbm5vUmJkcUpNOTFVRDcwZ1N2bk1hDQo= # Content-Type: application/x-www-form-urlencoded # Authorization: Basic basicAuthorizationToken import requests impor...
[ "jboenawan1@babson.edu" ]
jboenawan1@babson.edu
d0f6ae52cfa302a69d163e0abc0b1bd64badc931
ca3da680541003e604947f0f454e11846b0841da
/IEA_Policy_Scrapper_Multi.py
254d52681db3cbb2d5172429f0dc15c3f6551ecf
[]
no_license
Mejinha/IEAPolicyScrapper
06b9c469261d9f849260007e604f40c380d070e6
7e1cc10dcb468cdc3afb586ab651321914e76a69
refs/heads/main
2023-05-05T12:12:44.452081
2021-05-28T13:47:25
2021-05-28T13:47:25
371,115,638
0
0
null
null
null
null
UTF-8
Python
false
false
4,041
py
# -*- coding: utf-8 -*- """ Created on Tue May 25 15:49:06 2021 @author: amejd """ import requests from bs4 import BeautifulSoup import pandas as pd from multiprocessing import Pool import numpy as np def GetData(page): '''Access main page and search data in each row''' url = 'http...
[ "noreply@github.com" ]
Mejinha.noreply@github.com
d113d5b1f490cd2cd692541d4ef26a1fa3b0f904
bd8964a0d512f73c39013125b489950a4b43d915
/main.py
c122d98a41f063b55f1fca3b9de7155460dcefa2
[]
no_license
drcut/ML_class_weibo
79c0613364a15cdcc006ea8ff090bfd2b3ff474f
dab793b55941410a6f93be7445857ea0cbeb4580
refs/heads/master
2021-01-19T08:51:18.744025
2017-04-09T14:07:42
2017-04-09T14:07:42
87,687,154
1
0
null
null
null
null
UTF-8
Python
false
false
8,261
py
#! /usr/bin/python # -*- coding: utf8 -*- from __future__ import print_function import tensorflow as tf import tensorlayer as tl from tensorlayer.layers import set_keep import numpy as np import random import math import time import os import re import sys from six.moves import xrange import layer data_dir = "./data" ...
[ "ruobinghan01@126.com" ]
ruobinghan01@126.com
be5e0b741dc6ad841c668031edaee115bfe5314e
36059411cedfeec7478fd725c43f2120ab5ad38d
/boulder_ftp.py
a055a456e089b72f19569b633bd3059a4fd66cd2
[]
no_license
tytechortz/Arctic-Ice
a8345746bdd2d73559941ea71efe06601212a7f1
83aac39c00027cca6bd85fd2709fcfe86cf3ef31
refs/heads/master
2022-07-09T13:38:41.735808
2020-01-02T16:22:52
2020-01-02T16:22:52
167,096,158
1
0
null
2022-06-21T23:10:16
2019-01-23T01:35:54
Jupyter Notebook
UTF-8
Python
false
false
541
py
from ftplib import FTP import os import pandas as pd # Log into ftp site. ftp = FTP('sidads.colorado.edu') ftp.login(user='anonymous', passwd='ICE_PSWD') ftp.login() # Read file. ftp.cwd('/pub/DATASETS/NOAA/G02135/north/daily/data/') ftp.retrbinary('RETR N_seaice_extent_daily_v3.0.csv', open('N_seaice_extent_daily_v3...
[ "jmswank7@gmail.com" ]
jmswank7@gmail.com
44c37a6d6deff849d4ab0e9f88cf61dcde7a8413
07697d48b35e964a7d851a26c93508eb8abb1569
/xabr/urls.py
96462404368d1dead587bd1ad82d903db2fcce87
[]
no_license
Solntseva24/NewProjectXabr
58decc7961378ed1dca4a7c10744e2d1a0f9740b
20bd62c04a8ae2949ec999795ce45d57cefd090e
refs/heads/main
2023-08-10T18:29:55.137693
2021-09-30T21:07:21
2021-09-30T21:07:21
412,218,218
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
from django.contrib import admin from django.urls import path, include from django.conf.urls.static import static from xabr import settings urlpatterns = [ path('', include('mainapp.urls', namespace='main')), path('auth/', include('authapp.urls', namespace='auth')), path('blog/', include('blogapp.urls', n...
[ "w-j-olga24@mail.ru" ]
w-j-olga24@mail.ru
51834523099e3ca59c889ea40d94cfd03ffdbb05
f31fda8014ecadf6af7d4e3392fb917c49e0352a
/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu5CaloJetSequence_pp_data_cff.py
ee3d9695514ad371c28857cd6d3dce622b1ebe50
[]
no_license
jniedzie/lightbylight
acea5051f053c49824a49a0b78bac3a2247ee75f
f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8
refs/heads/master
2020-03-18T12:24:31.970468
2018-02-09T15:50:00
2018-02-09T15:50:00
134,724,759
0
1
null
2018-05-24T14:11:12
2018-05-24T14:11:12
null
UTF-8
Python
false
false
14,202
py
import FWCore.ParameterSet.Config as cms from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import * from RecoJets.JetPr...
[ "rchudasa@cern.ch" ]
rchudasa@cern.ch
7f22b72ea7a79d84d1ad1eae48f6da2e1be66cba
78e858ad206cd2f2689514e573129d3b2a346820
/non_shiny _code/03_analysis_code/mrjob/mrjob4Gram.py
7f9af16de28e64f40a4797b1585884900ee27128
[ "MIT" ]
permissive
NosajGithub/subreddit_profiler
0d7346dd123242ff1b0f40b21557c73a6e985969
045cd3ddf27bc6e0d9f97356f048546a5c5dc686
refs/heads/master
2021-01-21T12:21:31.793452
2014-12-19T11:25:19
2014-12-19T11:25:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,119
py
"""Run MRJob to get the top scoring 4-grams by subreddit.""" from mrjob.job import MRJob import re, sys class MRNGram(MRJob): def mapper(self, _, line): try: score_celing = 100 cline = re.sub("[~`*>#().!?,\[]","",line) cline2 = re.sub("(&gt;)|(&amp;)|(&lt;...
[ "Jason.Ko.Goodman@gmail.com" ]
Jason.Ko.Goodman@gmail.com
3d8e6882276ef181b422c8f15e7f3ec495bb3668
5e7c35e35daf74ebea6a3efbf72eef8597e8a8f1
/models/__init__.py
9664c39d9c0166bd5db5e259a48b76b8c5d94b01
[]
no_license
softhuafei/document_summarization
784bd8909d902caab4d1d6da82d146cd5e6b43cb
642fa8de5b0200c6270881c7cd75ca9d679b098b
refs/heads/master
2020-07-29T18:25:40.378238
2019-09-23T03:01:30
2019-09-23T03:01:30
209,916,993
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
# from models.seq2seq import *
[ "1148665215@qq.com" ]
1148665215@qq.com
21108a445d65be0ac0386514b2c345649b88fd66
32fb781cb6718ef90c4fdfba0469f9278380a256
/AntShares/Core/Transaction.py
83091faf4d380c5c037c959eb17dbfab2778feca
[ "MIT" ]
permissive
OTCGO/sync_antshares
1dcd6f809518ff2f9f89047d7da5efedb14e8625
5724a5a820ec5f59e0c886a3c1646db2d07b4d78
refs/heads/master
2021-01-22T22:49:26.094742
2017-12-14T17:15:33
2017-12-14T17:15:33
85,582,206
10
3
null
null
null
null
UTF-8
Python
false
false
2,899
py
# -*- coding:utf-8 -*- """ Description: Transaction Basic Class Usage: from AntShares.Core.Transaction import Transaction """ from AntShares.Core.AssetType import AssetType from AntShares.Core.TransactionType import TransactionType from AntShares.Helper import * from AntShares.Fixed8 import Fixed8 from AntShar...
[ "flowjacky@gmail.com" ]
flowjacky@gmail.com
3c9872153472f8bf29eb66021ddd178e01ae5ed6
ab421f8f66c9bdb4649eca2a435c325644836112
/categories/migrations/0001_initial.py
9381e41a91dcfa4438d14d06b7ca4ed985a1c877
[]
no_license
adrian2020my/magstreet-abstract
ace0d6efb463f111a1670df8e9b8625519613750
c940c76c26d952c2f3b557d34fc06fed9634f6b1
refs/heads/master
2021-01-09T06:51:51.527317
2015-06-05T21:52:14
2015-06-05T21:52:14
35,466,539
0
0
null
null
null
null
UTF-8
Python
false
false
889
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
[ "“kai2.theng@gmail.com”" ]
“kai2.theng@gmail.com”
bf5c6fee091e8426d7dd6d71ed755b2e3e1eaeed
7e4425342a4d7e0f40978af17091f32d2712c79c
/Cb_DeepLearning_lec/Day_04_02_collection.py
280b5a625f46315f5d0d9b50bfda8439d9fccca1
[]
no_license
yunhui21/CB_Ai_NLP
eca3da00c6c9615c8737b50d2c5ebe8dd1e3ba8a
b66ecc24abfd988fc9e7f19fa1941826b1bf38a4
refs/heads/master
2023-01-07T14:21:26.758030
2020-11-16T05:57:30
2020-11-16T05:57:30
291,835,156
1
0
null
null
null
null
UTF-8
Python
false
false
2,389
py
# Day_04_02_collection.py a = [1, 3, 7, 9] for i in a: print(i, end=' ') print() # 문제 # 리스트를 거꾸로 출력하세요 for i in reversed(a): print(i, end=' ') print() # 튜플 : 상수 버전의 리스트 (읽기 전용 리스트) b = (1, 3, 7, 9) print(b) print(b[0], b[1]) for i in b: print(i, end=' ') print() # b[0] = -1 # error # b.append(...
[ "yunhui21@gmail.com" ]
yunhui21@gmail.com
ffcfc74ce4c1bbce06d1f958565e8f9d7d31fafe
abebd304a9bc3ff1b90db09eba66c003f51a74d5
/sug/preprocess/main/dump_main_db.py
52cee76fa23f547cb7454b3abffa9857895b8aa6
[]
no_license
jiakechong1991/search
817715c58a1b117d177a7b49f443cb2411ee3c6f
86c644e9d26f2eba25d4cf50821ffcc8e14e7953
refs/heads/master
2021-04-15T17:42:01.074581
2018-04-10T14:04:17
2018-04-10T14:04:17
126,668,534
0
0
null
null
null
null
UTF-8
Python
false
false
2,800
py
# coding: utf8 import argparse import codecs import copy import json import logging import re from search_service.indexing import Searchable from config.conf import LOGGING_FORMAT, MAX_WORD_LEN from utils.connection import with_mysql_cursor class WordGetter(): def __init__(self): pass @with_mysql_cu...
[ "wangxiaoke@xuetangx.com" ]
wangxiaoke@xuetangx.com
6a77ac2319eeb067520d311c16be9f401776261a
2ab446eeff7a504c537c288a95ba341e4589db2c
/week2_modules/day4/prob2.py
04482bc92d680f7a80f94df9f0010245f906151d
[]
no_license
SukeshP1995/CompititiveProgramming
9fce36223605ce75d3cfd8744d802cd747ed321d
94db70ea6341f32d400ddc4d646e15f3e3c50714
refs/heads/master
2020-03-21T14:56:07.713518
2018-07-19T07:00:23
2018-07-19T07:00:23
138,684,109
0
1
null
null
null
null
UTF-8
Python
false
false
1,203
py
import unittest def get_permutations_helper(lst): if len(lst) == 0: return [''] if len(lst) == 1: return [lst] l = [] for i in range(len(lst)): m = lst[i] rlst = lst[:i] + lst[i+1:] for t in get_permutations_helper(rlst): l.append(m + t) return l ...
[ "sukeshpabolu@gmail.com" ]
sukeshpabolu@gmail.com