blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
โŒ€
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
b433071c1b5f4e674584d383125c5d02880a1c16
608677b05202bc33525a6eb890b609398964ade4
/ex2.py
8dc3fdf8faacd4d6739abe0d55781fade2efb07d
[]
no_license
caseyjferguson/mystuff
f9f23c1b7f79798a5160fe88d4b4f8ec42430cd9
0b366290bd080eb876ab1b4b19f63262dca06b43
refs/heads/master
2016-09-08T01:38:48.653430
2014-06-12T17:19:49
2014-06-12T17:19:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
# Comments are done like this print "I could have code like this" #with comments after #print "This won't run" print "This will run"
[ "caseyjferguson@gmail.com" ]
caseyjferguson@gmail.com
53404ed82c847e0d1bc08d8d278fd4c8ae0914a9
12928571488cdf4cc750635376549e092366d748
/pl/quepas/speechy/recognition.py
11c7e75e042ee8aa2452c114938a9e20dec96091
[]
no_license
quepas/Speechy
860fdee85caf31cf76837cff4fc1d967a4a01572
4b75c68ff7dd3a92b7150f4f241783af6a4e94d3
refs/heads/master
2016-08-03T08:32:38.216190
2013-08-18T21:42:21
2013-08-18T21:42:21
12,202,142
0
1
null
null
null
null
UTF-8
Python
false
false
477
py
__author__ = 'Quepas' from urllib.request import Request, urlopen def speech_to_text(speech, language): googl_speech_url = 'https://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang=%s&maxresults=10&pfilter=0' % (language) headers = {'Content-type': 'audio/x-flac; rate=12000'} file_conte...
[ "oneinchman.dev@gmail.com" ]
oneinchman.dev@gmail.com
0a665aa2e57907efca51c566cca92cd77759af12
22d239478b77e3677b56e633d9ec368f0941ee27
/Backend/ChatbotBackend/chatbot_api_module/apps.py
a2ed488413561dc4f1ed10c9e6e2c91fba2cfc41
[ "WTFPL" ]
permissive
Cyberlander/OEChatbot
4e4848155b8d932ab67465c6d9687a9cfb2f9331
5b67def828193cb45a9345c3bdb4959f2863d799
refs/heads/master
2020-05-22T04:56:42.989881
2019-05-12T07:54:41
2019-05-12T07:54:41
186,226,561
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
from django.apps import AppConfig class ChatbotApiModuleConfig(AppConfig): name = 'chatbot_api_module'
[ "felix.froehlich1@gmx.net" ]
felix.froehlich1@gmx.net
436ec6aa9fd6fc7604758956b24b5f0b387358e3
7629d20164e522f217ef5c6d5e496d0a936bb3a5
/๋จธ์‹ ๋Ÿฌ๋‹/ํ…์„œํ”Œ๋กœ GPU์‹คํ—˜.py
211a53d0c2c4d624e69e329fff6980f791c972b3
[]
no_license
sopo9909/hoyoung
5ba5d94f7be8c32efba08e36b29495d617d8c9fd
fa578aaa34fabea3ef75190239940c90a1dd2d3d
refs/heads/master
2023-06-03T09:44:27.975160
2021-06-16T02:25:00
2021-06-16T02:25:00
353,883,564
1
0
null
null
null
null
UTF-8
Python
false
false
3,698
py
<<<<<<< HEAD #import tensorflow as tf import numpy as np # a =[[1,2,3],[4,5,6],[7,8,9]] # b =[[1,1,1,],[1,1,1],[1,1,1]] # print(a+b) # d=np.append(a,b,axis=1) # print(d) # #c = [sum(t) for t in zip(a,b)] # c =[[0]*3 for i in range(3)] # for i in range(0,3): # for j in range(0,3): # c[i][j] =a[i][j] + b[i][j...
[ "sopo9909@naver.com" ]
sopo9909@naver.com
8f29355b48d577d76508144eef52b9d627eadf1f
1ff75a70dc5b7f3632ab128d9713f8138bd6c23a
/HW5 MTurk Crowdsourcing/si618_f17_hw5_clean_rxjiang_spoonert.py
a743f824ddffc318af62f51622fe651478e53f81
[]
no_license
spoonertaylor/SI_618
05399c4937cd47f45085bb9681fb5a6b224de917
1f83b28eb288db171209b74f51c172fe11ae4394
refs/heads/master
2021-01-23T08:34:30.258261
2018-01-04T02:19:44
2018-01-04T02:19:44
102,536,873
3
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
# -*- coding: utf-8 -*- """ Created on Thu Oct 5 12:59:10 2017 @author: spoonertaylor """ import pandas as pd dt = pd.read_csv("si618_f17_hw5_batch_result_rxjiang_spoonert.csv") # We need rows as ## pagename, post_id, comment_id, answer_1, answer_2, answer_3, answer_4, answer_5, answer_6 dt = dt[['Input.pagename'...
[ "spooner.taylor@gmail.com" ]
spooner.taylor@gmail.com
83d8fefb3ace17d535d34b88abad80b3b939c020
1d0e6567e746bcc2e03cefce217bbbe78d5cc66b
/source_learning_site/courses/migrations/0003_auto_20171011_2256.py
ff77e8d9f840297a3f3aa991daf0b6c2e337f235
[]
no_license
ananya94/Django
87f84c9a4bf6cb5cc2d117eafb664192359495fd
515115fa99fe98668b3e4633875997893033d036
refs/heads/master
2021-07-09T18:54:22.718981
2017-10-12T19:02:40
2017-10-12T19:02:40
104,970,825
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-12 03:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0002_step'), ] operations = [ migrations.AlterModelOptions( ...
[ "ananya.2394@gmail.com" ]
ananya.2394@gmail.com
76158face08b864fabf3b051da927e72e1689cbc
321e0c164a4116557046574473f32f6f083d23d8
/week03/homework.py
ff4162b260bf7db03a07bb8ce15f4eb3d1de02b8
[]
no_license
seeun98/WebSparta
1c380523a02a05a75d3c55953f26628fd964a9e7
67096c7536f26a4094a79a406c585464882e7664
refs/heads/master
2023-01-01T09:50:15.237119
2020-10-19T13:29:52
2020-10-19T13:29:52
302,230,589
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
import requests from bs4 import BeautifulSoup #ํƒ€๊ฒŸ url ์ฝ์–ด์„œ html์„ ๋ฐ›์•„์˜จ๋‹ค. headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'} my_url = 'https://banksalad.com/savings' res = requests.get(my_url) #์‘๋‹ต ๋ถ„์„ # HTML์„ BeautifulSoup์ด๋ผ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ...
[ "saeeun5659@gmail.com" ]
saeeun5659@gmail.com
5716a1a288105a17a2f22eef605af95ad7f91432
b5e67022b35e75cdf05d05a34daa692df0512b09
/env/bin/isort
ee52b836156e55471bd96eb91ef7540817eb6165
[ "MIT" ]
permissive
Esha-Sherring/automate-aws-s3
e503fc573117e2323ae208333344f20c63087c18
511a18cd6a0142874e8090f957e8f46668adbc3e
refs/heads/master
2023-08-27T20:55:33.866009
2021-10-13T06:55:55
2021-10-13T06:55:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
265
#!/home/specter25/Desktop/assignmnets/cloud/personal-cloud/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from isort.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ujjwalcoding012@gmail.com" ]
ujjwalcoding012@gmail.com
1f9832351965502060568585905168b70b238398
53e9b7bf64e42e79e1b628c26f51ea5b8a37cfc8
/scripts/433c.py
084cdd08bdcfa0c2531c33a376eb0c51afd16b0a
[]
no_license
acoomans/py433d
1100cc0728e03d8bd539412ff0cffa8df276ef32
75814ff5f4681070590f9c9f76ae938c4803ec47
refs/heads/master
2022-05-05T12:51:56.121037
2018-05-22T03:05:49
2018-05-22T03:05:49
134,118,283
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
#!/usr/bin/env python3 from argparse import ArgumentParser from sys import exit from py433 import ( client, __version__, defaults ) parser = ArgumentParser(description='Client for 433d server') parser.add_argument('-o', '--host', default='localhost', help="Set host to connect to") parser.add_argument('-v...
[ "arnaud.coomans@gmail.com" ]
arnaud.coomans@gmail.com
2ae5d9b88f73a0c944c126c339a8065d29228a58
0745947a2b98b6a06b06c427952558036daa3219
/lolchess/model/analyze_set5.py
52811cc88915940dce06981449f3bf983e57857e
[]
no_license
dogzz9445/team_fight_tactics_analyze
8cc296313a982a6e6fb5dd12fa7a6f05a72d1618
f6cca895ff0821bef0bf89c0d3cf81129e52709d
refs/heads/master
2023-06-10T02:54:56.699378
2021-06-27T05:07:46
2021-06-27T05:07:46
362,142,223
0
0
null
null
null
null
UTF-8
Python
false
false
17,997
py
from sqlalchemy import Column, String, Numeric, DateTime, Integer, ForeignKey from sqlalchemy.dialects.mysql import TINYINT from sqlalchemy.orm import relationship from .base import Base class AnalyzeSet5(Base): __tablename__ = 'analyze_set5' id = Column(Integer, primary_key=True) Set5_Assassin_num_units...
[ "37837785+dogzz9445@users.noreply.github.com" ]
37837785+dogzz9445@users.noreply.github.com
0082aebae4aec3f03c29b607f488d9528cbd22f8
c58c3cbdd77b6804da6d623d16e368823b587344
/select_sort.py
60092079ba94ac86ddf42fd628275b3dd413f28a
[]
no_license
zhaojiawen-coding/Sort
86fad7219f23af17174c05f0e2d927ae283e4cbc
d30270cbe094c8ac0e332eee334440fbb7057214
refs/heads/master
2023-03-28T10:31:54.301466
2021-03-26T08:14:03
2021-03-26T08:14:03
351,708,721
1
0
null
null
null
null
UTF-8
Python
false
false
452
py
#้€‰ๆ‹ฉๆŽ’ๅบ import random def SelectSort(list): n = len(list) for i in range(n-1): index = i for j in range(i+1,n): if list[j] < list[index]: index = j temp = list[i] list[i] = list[index] list[index] = temp return list if __name__ == '__main...
[ "zhaojwen0421@163.com" ]
zhaojwen0421@163.com
3b03072ec7ed26a376ab97669dac40c77589f552
f99341a3a043137ba2c24c06b80ff30073cf028e
/config/env_constructor.py
1eccb22fc91fee860e4cb13babbf3617e41bcfac
[]
no_license
szrlee/ucbmq_code
30ed4c7645800824a2db47647b2a17289b10bc88
d7e84b1c64e3be2bd7c52057d1ff6d91ee0779cf
refs/heads/main
2023-05-09T00:18:02.900944
2021-06-05T18:33:11
2021-06-05T18:33:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
from rlberry.envs.finite import GridWorld def constructor(nrows, ncols, success_probability): env = GridWorld(nrows=nrows, ncols=ncols, walls=(), success_probability=success_probability) return env
[ "omar.drwch@gmail.com" ]
omar.drwch@gmail.com
ad959b3402b36e4d726a85cea45ac9f132eaf8b4
13b4ec36b7ff2e2794a5fdc86aa94db5ce653ddc
/ntf/mininet/int_cfg.py
6353a7643055a849eed5a2da02ee52432e2bf241
[ "Apache-2.0" ]
permissive
Oldsongsu/P4-learn
d395f737ee2b89aa2309629c5c0d621c31bb4320
dd9c8d3baa92027f745be84a521aa30d54dcca78
refs/heads/master
2021-01-01T14:25:07.950768
2020-02-09T14:34:44
2020-02-09T14:34:44
239,319,360
0
0
null
null
null
null
UTF-8
Python
false
false
11,299
py
#!/usr/bin/python # Copyright 2015-present Barefoot Networks, 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 app...
[ "wusong_1@126.com" ]
wusong_1@126.com
169fed7ffb9b741d3f80a8b0e1bbce92fa561804
f442ea49bad17972dff75b270b586023195c699d
/odl/players.py
ae0d7ebe801beb3031858dfe7b3f1346c9f01cd0
[]
no_license
podlibre/odl
2147ad75e87d94e30a4f4d57d350a62fd3d36200
263b63f14cdad9d7910f6b5dd5577fcfbe146bcf
refs/heads/master
2022-02-09T03:37:16.487084
2019-08-05T23:18:09
2019-08-05T23:18:09
299,545,172
0
1
null
2020-09-29T07:56:43
2020-09-29T07:56:42
null
UTF-8
Python
false
false
1,869
py
import os import re import json import time DIR_PATH = os.path.dirname(os.path.realpath(__file__)) __all__ = ["get_app"] def get_useragents(): with open(os.path.join(DIR_PATH, './data/user-agents.json'), 'rb') as jsonfile: return json.load(jsonfile) class Players(object): """ Use...
[ "anrope@gmail.com" ]
anrope@gmail.com
85d8cfdd2bdbd846ff6b5a02cc95ebf9d5be6042
30816710f64515d9af98b19da522ecdd2a745258
/yeyun/rcnn/rpn.py
9d4678547716a31c75af19b4884ce080a31fdf04
[]
no_license
unsky/Feature-Pyramid-Networks
457a441a500b1b552b5a89c11384e96f8cf60dd5
890e9c74a8fcea20bd33b90bac6c58e42294298d
refs/heads/master
2021-06-26T00:59:50.874246
2017-09-06T02:57:19
2017-09-06T02:57:19
101,043,340
0
0
null
null
null
null
UTF-8
Python
false
false
9,328
py
""" RPN: data = {'data': [num_images, c, h, w], 'im_info': [num_images, 4] (optional)} label = {'gt_boxes': [num_boxes, 5] (optional), 'label': [batch_size, 1] <- [batch_size, num_anchors, feat_height, feat_width], 'bbox_target': [batch_size, num_anchors, feat_height, feat_width], 'bbox_weig...
[ "2081264@qq.com" ]
2081264@qq.com
51b5cc22c33340c76b5ef0e285b2c525496e9af8
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/40/usersdata/62/25332/submittedfiles/main.py
13737f40f1a9c141d8c52153a57e1b9fe8ac9897
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
# -*- coding: utf-8 -*- from __future__ import division import funcoes #COMECE AQUI def calcula_valor_absoluto(x): if x<0: x=x*(-1) else: x=x return x def calcula_pi(m): i=1 soma=0 denominador=2 if 1<=m<=2000: while i<=m: if i%2!=0: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
cd37fca8b59f3095d38c9d4696f6609c59d5b3ab
470ab293f1ebfcbec1ce7ab18c2749357d735a9d
/eps_rapid/models/room_content.py
3fdb968a5cee0ef292fd05bf395ced77b6b888f4
[]
no_license
TripElephant/eps_rapid_client
53b51308a5032935ac3db7ce97e17e359b081859
2a21a00c3b12cccb16585035ed59845c4ffe1604
refs/heads/master
2020-06-28T02:49:22.514338
2019-08-01T22:04:46
2019-08-01T22:04:46
200,124,688
0
0
null
null
null
null
UTF-8
Python
false
false
10,218
py
# coding: utf-8 """ Rapid EPS Rapid V2.3 # noqa: E501 OpenAPI spec version: 2.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from eps_rapid.models.amenity import Amenity # noqa: F401,E501 from eps_rapid.models.bed_gro...
[ "daniel.vu@protonmail.ch" ]
daniel.vu@protonmail.ch
162fef594f6f12dc88ff0ebb0dd42f78bef309bf
47aa4e85cf90337c64cffdbc947290abaf116192
/ranpy/games/rps
6b10c4b3a9838d89da0cbad2769dbc8a0df28f3a
[]
no_license
mushy0364/python
76fe4a58f944006f118ac70e9272ff2749ffb130
b94a1b300f276e3faffcb76fa845c50e98892d19
refs/heads/master
2020-12-25T14:32:56.561386
2017-05-27T19:23:33
2017-05-27T19:23:33
66,312,267
0
1
null
null
null
null
UTF-8
Python
false
false
2,204
#!/usr/bin/env python3 import random def rockpaperscissors(): win_talley = 0 while True: weapon_bank = ['rock','paper','scissors'] usr_input = input("Would you like to play rock paper scissors? y/n > " ).lower().strip() if usr_input == "y": selection = input("Rock, paper, o...
[ "jmush32456@gmail.com" ]
jmush32456@gmail.com
db7d2017f3fe4d376d26481829e2492ca16c57c1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02393/s585346290.py
8e0858a11d775723f75f99c894ac1365db950d68
[]
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
51
py
a = input().split() a.sort() print(a[0],a[1],a[2])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d607c0e74e615045baba41abc4bed0f60f643dc6
a2730bcf179b7dd5969cc9ec2f2aceb4e35c4bf6
/py_gnome/gnome/spill/sample_oils/oil_ans_mp.py
c3704db912bf6c872da621e925a5089631a1aeb2
[]
no_license
CheolHuh/PyGnome
5d85d8f5fe357e8f078129a3e589da965ea4eec7
fc807faba66c33abd0c6e6c3a72a2e88b56fdd32
refs/heads/master
2023-05-26T09:02:31.435353
2021-02-08T18:34:57
2021-02-08T18:34:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,397
py
oil_ans_mp = {'api': 29.9, 'boiling_point': [313.15, 313.15, 353.15, 353.15, 393.15, 393.15, 433.15, 473.15, 573.15, 573.15, 673....
[ "caitlin.oconnor@noaa.gov" ]
caitlin.oconnor@noaa.gov
e39d2e29afaf499c1d468a3292e396993aae8ec7
04ad466db13a382cc679d9562e515d57b54c47e6
/scripts/schools8_eb.py
149fb0ad7602a286b481eed890c6b06c67581f68
[ "MIT" ]
permissive
shivaditya-meduri/pyprobml
d9423463ae7b352c52f3d005fbf33ee66d366971
9dbe0c95f4ec061b98bf32fa3ac1deafe2e0c04d
refs/heads/master
2023-04-12T13:09:45.572071
2021-05-07T18:22:02
2021-05-07T18:22:02
356,659,290
1
0
MIT
2021-04-11T05:04:38
2021-04-10T18:07:31
null
UTF-8
Python
false
false
458
py
# Empirical Bayes for 8 schools import numpy as np # Data of the Eight Schools Model J = 8 y = np.array([28., 8., -3., 7., -1., 1., 18., 12.]) sigma = np.array([15., 10., 16., 11., 9., 11., 10., 18.]) d = len(y); mu = np.mean(y); # MLE-II V = np.sum(np.square(y-mu)); s2 = V/d; sigma2 = np.mean(np.square(sig...
[ "murphyk@gmail.com" ]
murphyk@gmail.com
05d6ff8c6fbea905e0072c34bcac275e68cc1197
ac4b9385b7ad2063ea51237fbd8d1b74baffd016
/.history/s1_3_getHtml_20210209165850.py
576f3f18bbd11d0765890ce07bf6aa32fbf8af7b
[]
no_license
preethanpa/ssoemprep
76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f
ce37127845253c768d01aeae85e5d0d1ade64516
refs/heads/main
2023-03-09T00:15:55.130818
2021-02-20T06:54:58
2021-02-20T06:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,514
py
# This module is called from 3R Automation Component. import os import sys # pdftotree is available as part of the virtual environment for 3R Python processing import pdftotree import json from pprint import pprint import pdfminer import matplotlib.pyplot as plt import ocr_extract as imgpdf from utils.ocr.handle_ima...
[ "{abhi@third-ray.com}" ]
{abhi@third-ray.com}
de1e8e2233a9400ead166a6200c61a3d7a35b0ae
6664571d148aeebfcee96db20760618621306a35
/EmployeeApp/urls.py
376e559b99685df079d81826b2412c5109a8fa50
[]
no_license
arturoromeroae/django-api
cb0f33a7bd27ddc921ca07da6ef9e62203543ba7
9dec56635891e20b16bac35774d84b160bda39b5
refs/heads/main
2023-05-31T10:20:19.508736
2021-06-25T21:45:10
2021-06-25T21:45:10
380,359,796
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
from django.conf.urls import url from EmployeeApp import views from django.conf.urls.static import static from django.conf import settings urlpatterns = [ url(r'^departamentos/$', views.departmentApi), url(r'^departamentos/([0-9]+)$', views.departmentApi), url(r'^empleados/$', views.employeeApi), ur...
[ "aromero@aeonlinesolutions.com" ]
aromero@aeonlinesolutions.com
3b4c42dff6e447ff6f8fc3eb1f26829a595f3dc2
df62c121e28453fe27ceb854ae24920cc30275f3
/datastore/ext/query.py
35b4001a9ef1bcf20cec995dccabd0e8eae0068d
[]
no_license
leenr/appscale-datadashboard
020e617ae7b42887999f3952d26969563c179cf3
93f97ec7c4985f845f6a660144daa177f92d43f0
refs/heads/master
2023-07-08T06:51:00.357538
2017-01-25T07:51:35
2017-01-25T07:51:35
79,257,241
0
0
null
null
null
null
UTF-8
Python
false
false
2,390
py
from google.appengine.ext import ndb from google.appengine.datastore import datastore_query from .context import ext_context class QueryIterator(ndb.QueryIterator): ''' Version of ndb.query.QueryIterator with support of custom context ''' def __init__(self, query, options, context=ext_context): callb...
[ "i@leenr.ru" ]
i@leenr.ru
188e372c6f58c605bbcf87a042c27a6df5ce5968
5d6b8fae1447eab5f2822607dca7784169285fec
/scikit_learn_nltk_local_processing/processing_script.py
9251d96f8078209b6524473a9ce20db83f664b48
[ "MIT-0" ]
permissive
etmunoz/amazon-sagemaker-local-mode
13f71b90fa8b60fd410ca5c7fd800277ab438fa1
a80190583c4ea6cca439e981bf1934a87208e03a
refs/heads/main
2023-03-24T23:50:21.843970
2021-03-25T00:12:14
2021-03-25T00:12:14
316,067,468
0
0
NOASSERTION
2021-03-25T00:12:15
2020-11-25T22:30:03
null
UTF-8
Python
false
false
1,950
py
import os import sys from datetime import datetime import subprocess subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "/opt/ml/processing/dependencies/requirements.txt"]) import nltk nltk.download('punkt') from nltk.tokenize import word_tokenize input_data_path = '/opt/ml/processing/input_data/' p...
[ "eitan.sela@gmail.com" ]
eitan.sela@gmail.com
d50243dbaaae1a5880daab230dbd0fcf4f7db7df
3048c5187d0494ccee120fa374a6c5bfad9b6d42
/module3_3_cifar_dataset.py
ed3d3f4c85980a4f8abb2b2de7fe241c57d92f68
[]
no_license
MikeKras/tensorflow_workshop
25c7ffdbc7de41cddd6180ceac584243d6d7421f
e5903fd23c5e0d445ad346c1917ac3f4667e8192
refs/heads/master
2021-01-20T13:07:53.342751
2017-06-27T04:04:43
2017-06-27T04:04:43
90,454,050
0
3
null
2017-05-06T10:01:28
2017-05-06T10:01:28
null
UTF-8
Python
false
false
305
py
# Module 3: Datasets # CIFAR-10 dataset # Step 1 Get Data from tflearn.datasets import cifar10 (X, Y), (X_test, Y_test) = cifar10.load_data() # Step 2 Shuffle Data from tflearn.data_utils import shuffle, to_categorical X, Y = shuffle(X, Y) Y = to_categorical(Y, 10) Y_test = to_categorical(Y_test, 10)
[ "michal.krason1@gmail.com" ]
michal.krason1@gmail.com
450acf91c7eec889501f5d082beec3e6a82390dd
bc9444bf8250fe11558e7450f96958507e2c8dd8
/model.py
54f76418577b9c475beca588620b265487dfb9fa
[]
no_license
jetnguyen273/Speech_Emotion_Recognition
7c64dca6dcfaa7b865c47144775599cf30c826a1
b19da26ba9859f669e3d59ae8659dc6509e2e691
refs/heads/master
2023-03-18T17:25:58.558895
2020-10-15T23:09:51
2020-10-15T23:09:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,978
py
#%% import os import numpy as np from feature_extractors.hand_crafted_data_producers import Data_Producer_Hand_Crafted_Train_Test from feature_extractors.end_to_end_data_producers import Data_Producer_End_to_End_Train_Test from util import * from PyQt5 import QtCore class SER_Data_Producer(object): def __init__...
[ "raulsteleac@yahoo.com" ]
raulsteleac@yahoo.com
8baa56e66b85e8205c9f06625b8b694c47703ec0
4b2246a3b9fa86447fc00cf059f71dc7e914edc0
/src/theming/toolkit/portlets/photowall.py
74442a4e781fac13d1c59c0209cd2fc5c0fc3aef
[]
no_license
propertyshelf/theming.toolkit.portlets
2346d43a53a01c3ed5769ebe5bef99e96b07a8fa
5c231d6d6bb6ecd83f7cc57c5155d0daee074411
refs/heads/master
2021-01-10T04:41:52.173322
2015-08-25T15:58:14
2015-08-25T15:58:14
36,862,717
0
0
null
null
null
null
UTF-8
Python
false
false
2,463
py
# -*- coding: utf-8 -*- """ PhotoWall Portlet """ from plone.app.portlets.portlets import base from plone.portlets.interfaces import IPortletDataProvider from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from zope.interface import implementer from zope import formlib, schema from zope.schema.field...
[ "jens@propertyshelf.com" ]
jens@propertyshelf.com
c1e656fc6fc8fdf41ad315d269930268dabe63c0
c117f7064b7132778bead5a8b77b67e2429a2b7a
/gmail.py
9832cf9a0595ba497995e39e74e170770e6e4ad1
[]
no_license
gurudurairaj/gp
664306f41f73f8b620ba74b048372e1c94e59bc7
2fce98f7428103b54b9edd075d4a83dc434c2926
refs/heads/master
2020-04-15T05:00:45.934019
2019-05-26T17:54:54
2019-05-26T17:54:54
164,405,807
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
a=input() c=0 if a.count("@")==1 and a.count(".")==1 and a[len(a)-4:len(a)]==".com": s="" for i in range(len(a)): if a[i]=="@": break s=s+a[i] if len(s)>=3: c=c+1 s="" v=a.index("@") for i in range(v+1,len(a)): if a[i]==".": break s...
[ "noreply@github.com" ]
noreply@github.com
66b6b60af7d9827be356d811f59544d7fa2ccdc1
fe5ed850257cc8af4df10de5cffe89472eb7ae0b
/11.pythonๅฎž็Žฐ้ซ˜ๆ•ˆ็ผ–็จ‹/pythonๆ ‡ๅ‡†ๅบ“/ไธ‰ๆ–นๆจกๅ—/python3่ฏปๅ†™Excelๆ–‡ไปถ็š„ๆ“ไฝœๆ–นๆณ•/ๅˆ›ๅปบexcelๅนถๅ†™ๅ…ฅๆ•ฐๆฎ.py
196c74cea951a5cdcc3c9feb4746234994d02c14
[]
no_license
hujianli94/Python-code
a0e6fe6362868407f31f1daf9704063049042d9e
fe7fbf59f1bdcbb6ad95a199262dd967fb04846c
refs/heads/master
2020-09-13T01:11:34.480999
2019-11-19T05:29:59
2019-11-19T05:29:59
222,614,662
2
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
#!/usr/bin/env python # -*- coding:utf8 -*- import xlwt import os def set_style(name, height, bold=False): style = xlwt.XFStyle() # ๅˆๅง‹ๅŒ–ๆ ทๅผ font = xlwt.Font() # ไธบๆ ทๅผๅˆ›ๅปบๅญ—ไฝ“ font.name = name font.bold = bold font.color_index = 4 font.height = height style.font = font return style def writ...
[ "1879324764@qq.com" ]
1879324764@qq.com
b34da93daff3b0147a5beeb599b6785d29d18905
9f7c106d50681b394d822fbdc5e3ad25f04d927c
/week6_nissi_miika/week6_ass4_nissi_miika.py
c35170d25f810049f893fd6c2f03cbeec7c89d04
[]
no_license
miikanissi/python_course_summer_2020
edf032b1d9815dfa6e0b5f7c902f7b469117c04f
3969288b969b3db8f9d7f2fdb67905f13d4969fa
refs/heads/master
2022-12-02T09:33:42.625374
2020-08-24T17:38:59
2020-08-24T17:38:59
273,909,320
2
0
null
null
null
null
UTF-8
Python
false
false
290
py
def factorial(x): try: if x < 1: raise ValueError elif x == 1: return 1 else: return x *factorial(x-1) except ValueError: print("Factorial can not be negative.") print(factorial(-20)) print(factorial(20)) print(factorial(4))
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
73e291988df085449411f3d55bad2679e0cb3123
12fcc9365d36e3ed5a4797c23a0ef41166eaabb1
/day1/coffee.py
7c87e9d7df61d9ad765cc57e2216ef89063dbd65
[]
no_license
clemwek/ande_bc_18
d848d26b744586e881e4d56d48eebb125d1011e7
76abeb85a49fd5afd5cbd0e49486c7f35f3573cb
refs/heads/master
2021-01-20T14:25:30.759147
2017-05-11T18:22:22
2017-05-11T18:22:22
90,610,545
0
0
null
2017-05-08T12:43:36
2017-05-08T09:30:32
Python
UTF-8
Python
false
false
1,295
py
""" Make coffe 1. Took a cup 2. poured coffee into the cup 3. added sugar 4. pour milk 5. Stir 6. ready to serve """ # Make coffee cup # print ("1. Took a cup") # print ("2. poured coffee into the cup") # print ("3. added sugar") # print ("4. pour milk") # print ("5. Stir") # print ("6. ready to SERVE") # num = inpu...
[ "clemwek@gmail.com" ]
clemwek@gmail.com
5c8f31ab8d4d2a9d2d74cca5ad32e2389cc79c75
c0541b4ebe207acbcfbef00e298d59bd589c92fb
/MxOnline/apps/courses/models.py
710f268b985d33021e2c78956303ac7598f67192
[]
no_license
csusupremeRB/DjangoWeb
c117f7d621d65390606a2c10b53207a0c519c735
5859d234e92efaf1bd975be86a8036292e99bd28
refs/heads/master
2020-03-27T08:27:05.413231
2018-08-27T06:49:12
2018-08-27T06:49:12
146,255,682
0
0
null
null
null
null
UTF-8
Python
false
false
4,549
py
# coding=utf-8 from __future__ import unicode_literals from datetime import datetime from DjangoUeditor.models import UEditorField from django.db import models from organization.models import CourseOrg, Teacher # Create your models here. class Course(models.Model): """่ฏพ็จ‹ไฟกๆฏ""" course_org = models.ForeignKey(...
[ "csusoftwarerb@163.com" ]
csusoftwarerb@163.com
ca743993675615421f0c5d02f0357b0ba36b9559
f3acd48e0d553143e941b16b5241cb86272a87f4
/Laboratorium/_04_klasy/Zwierzeta.py
1ff08b829c973bb1b1696c38dfc392be78f6aa69
[]
no_license
tborzyszkowski/PythonWyklad
1ceb4b5e1fca8c41f4ad5fb5b32a100b58e24a4d
58871126689418d51a4e4ba0b9ab884de260f3c5
refs/heads/master
2023-05-10T20:55:21.140705
2023-05-07T14:58:49
2023-05-07T14:58:49
44,440,440
14
44
null
2020-02-27T22:32:03
2015-10-17T14:33:07
HTML
UTF-8
Python
false
false
548
py
class Zwierz: def replay(self): return self.glos() def glos(self): pass class Ssak(Zwierz): def glos(self): return "Ssak: glos" class Kot(Ssak): def glos(self): return "Kot: glos" class Pies(Ssak): def glos(self): return "Pies: glos" class Naczelny(Ss...
[ "t.borzyszkowski@gmail.com" ]
t.borzyszkowski@gmail.com
a96b6ed872d91306d80fd6b59094ba72d65b0f45
83e87f6c1a771157d5e505ae0a833cfb7cb106a7
/python/type_check.py
df4cd6490ebcd764393f0e2b87b12990cf8bc06b
[]
no_license
rohitwtbs/235711
7b495915088b54f3a8694f08333efdba263139ea
aaf6d498bb3a4c1d68a7498377627446c9d24a9b
refs/heads/master
2023-04-09T04:02:38.546102
2023-03-26T10:51:20
2023-03-26T10:51:20
174,187,527
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
class Flower(): def __init__(self): return def smell(self): return class Lillies(Flower): def __init__(self): return def color(): return objA = Flower() objB = Lillies() print(type(objA) == Flower) print(type(objB) == Flower) print(isinstance(objB, Flower))
[ "12rohit4@gmail.com" ]
12rohit4@gmail.com
9294c7dad264a88530321d4abfc827cebe6850d8
37940bb85e6c372e959877d3371ba892f983c411
/1011.py
53555f170d728157dda3e1b9c893e8f116be5a0d
[]
no_license
yasminms/URI-Online-Judge
478a456dbbe2f7bdcb8679cc111e2b2156c691c4
ced38296cc844f784982c66fdef4e39b9fc4b8e3
refs/heads/master
2020-03-12T19:01:57.002812
2018-04-24T02:28:51
2018-04-24T02:28:51
130,775,521
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
# -*- coding: utf-8 -*- raio = input() pi = 3.14159 tot = (4.0/3)*pi*raio**3 print 'VOLUME = %1.3f'%(tot)
[ "noreply@github.com" ]
noreply@github.com
41923f313c9e86d2166a3ac9511a741151eaf5dc
1ff32f56755094ea2a4bd6d085bce3f29899fedc
/falkon/tests/naive_kernels.py
67e49c26f6f5f1d0977dc4b7329a4fadee4d50ba
[ "MIT" ]
permissive
lingweizhu/falkon
20522ae3543637eab6b0c10279a56cd3b4add97c
67413adbef9c181e2f086c0c11e4390b93ddeeae
refs/heads/master
2023-03-13T16:29:13.290491
2021-01-18T22:52:47
2021-01-18T22:52:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
import numpy as np from scipy.spatial.distance import cdist __all__ = ("naive_gaussian_kernel", "naive_sigmoid_kernel", "naive_laplacian_kernel", "naive_linear_kernel", "naive_polynomial_kernel") def naive_gaussian_kernel(X1, X2, sigma): pairwise_dists = cdist(X1, X2, 'sqeuclidean') return np.exp(...
[ "giacomo.meanti@gmail.com" ]
giacomo.meanti@gmail.com
20ceb6ed2a265ee3de925a2ef5df92b2299c4daa
fd5c30a7cb4411b715e20b9f4e7fb26ed23b4fe2
/binaryClassification.py
b1baa94c9b908a907896ec4013feb72db798282d
[]
no_license
nikkiptaylor/CS221
df0f9f00244713770206b48617e25134b917df6b
d68691ede07201111180179abbce44d8c51e068d
refs/heads/master
2021-11-11T14:50:50.567795
2017-12-16T02:03:11
2017-12-16T02:03:11
110,474,827
0
0
null
2017-11-12T22:31:56
2017-11-12T22:31:55
null
UTF-8
Python
false
false
1,141
py
import random import classifierUtil import readData import collections def signNumber(x): if (x >= 0): return 1 else: return -1 def binaryClassifier(K, N = 0): fakeAndRealRecipes, classification = classifierUtil.generateEntireDataset(K, 0) stepsize = 1.0/len(fakeAndRealRecipes) weights = classifierUtil.t...
[ "noreply@github.com" ]
noreply@github.com
d9229d752cfa80ab7bd2968dd4c24268e55ce0a3
73cbba00a85c34c84397bdeec9a3094cff7efae1
/deals/asgi.py
526f18dc9e4b96a284fa0b7f440648a5a77351ed
[]
no_license
SaraFarron/deals
c7015a0c3242fcdbacca7feb063b291571dba748
7a57677139a543bd5110e04c7c476ff84b84c1d7
refs/heads/master
2023-07-20T18:56:16.041125
2021-09-02T11:15:55
2021-09-02T11:15:55
386,696,208
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
""" ASGI config for deals project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
[ "nikita_sulin@idpowers.com" ]
nikita_sulin@idpowers.com
0782a9b01c132cece78f0d640fbecb22de784ae2
ffcf85c7866e4d95d17afadc7d823a123fd79247
/Info/modules/passport/views.py
de73375f606b69baa4bba8b0d84658356ea3a338
[]
no_license
CcLmL/InfoNews
1c7b9df7f7924dac5750886444a46ace313095bc
2c8dad2719fde697c8283ec88721479701e81bf9
refs/heads/master
2020-03-27T01:14:57.059554
2018-09-04T07:16:20
2018-09-04T07:16:20
145,694,197
0
0
null
null
null
null
UTF-8
Python
false
false
6,916
py
import random import re from datetime import datetime from flask import request, abort, current_app, make_response, jsonify, session from Info import sr, db from Info.lib.yuntongxun.sms import CCP from Info.models import User from Info.modules.passport import passport_blu from Info.utils.captcha.pic_captcha import c...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
62acc660f5b77d53ea3ab32631ba09429c3a1973
24896295db4c299de4813a280526abb72e9da24a
/Article_project/app_article/models.py
f0787963384fcf15228f5f9ab48b65c1496dd7f5
[]
no_license
manvithatera/Article
3e50b46dc2b4cd18699bd0cc9a8c60d1cfad4edf
9596f43c985bbdad29b83161833d68f60b104eaa
refs/heads/master
2022-11-19T14:59:49.911800
2020-07-23T13:56:43
2020-07-23T13:56:43
281,939,110
0
0
null
null
null
null
UTF-8
Python
false
false
962
py
import uuid from django.db import models from django.contrib.auth.models import User from django.urls import reverse # Create your models here. import datetime from django.utils import dates class Token(models.Model): user = models.ForeignKey(User,on_delete=models.CASCADE) token = models.UUIDField(default=uu...
[ "62323763+manvithatera@users.noreply.github.com" ]
62323763+manvithatera@users.noreply.github.com
4f207fc33a82256e32426744f6f89f6799d2c8f1
aaf12fe9de8da36f4dc85973568f7e747b312c16
/log_output.py
1731fde8938341360c34f445f9883c728d4d1f04
[]
no_license
UESTC-Liuxin/pytorch
aa092f15ba2187bb9a9e73fd50309a6abbb5362c
d1029f0c38813f1a0a18bbb9499d06d93829d79a
refs/heads/master
2021-01-02T01:20:50.132014
2020-04-08T02:01:12
2020-04-08T02:01:12
239,429,974
2
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
import logging class Mylog(object): """ @create log file and output log information """ def __init__(self,logFilename): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', datefmt=...
[ "625092890@qq.com" ]
625092890@qq.com
06fc413696d4c5fef98592345fad61d07b7043fa
caacba7e734c0335cb09da35dbd158c56f092722
/src/robot_control/path_following.py
5c9df0da20db19c78021024d9262096500209b81
[]
no_license
aivian/utilities
6916b0c3358edd611ecf772f5c88e8f8291c0ebd
f8895895f53e6a1557dc851bfe8b5b6f4030d294
refs/heads/master
2021-01-09T05:58:33.852974
2018-11-09T17:13:59
2018-11-09T17:13:59
80,879,445
0
0
null
null
null
null
UTF-8
Python
false
false
17,596
py
""" A collection for path following controllers """ import pdb import numpy from geodesy.conversions import lla_to_ned from geodesy.conversions import ned_to_lla from geometry.lines import point_line_distance from geometry.lines import get_point_on_line import geometry.conversions from geometry.helpers import ring_in...
[ "jjbird@gmail.com" ]
jjbird@gmail.com
e4cbb31ad6daf99eec239d166f2bd793915d6232
e68b7d69cde6cbe5d57eef64aab6b03d28ea2b07
/db_handler.py
aff17e5f8e41b30b37d04782284fa1538d15cee6
[]
no_license
thakryptex/adwizard_task
45c66c214dce747453b11981321e6f7f14e6fc5b
d7e5c10f52e55b4ec0731811425adcd00fc4fec1
refs/heads/master
2016-09-12T12:19:24.429659
2016-04-13T11:07:13
2016-04-13T11:07:13
56,143,837
1
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
from db_model import Database """ ะ”ะฐะฝะฝั‹ะน ะบะปะฐัั ัะฒะปัะตั‚ัั ะพะฑั‘ั€ั‚ะบะพะน ะฝะฐะด db_model ะดะปั ั‚ะพะณะพ, ั‡ั‚ะพะฑั‹ ะบะฐะถะดั‹ะน ะฟะพั‚ะพะบ ะฝะตะฟะพัั€ะตะดัั‚ะฒะตะฝะฝะพ ัะฐะผ ะพะฑั€ะฐั‰ะฐะปัั ะบ ะฑะฐะทะต ะดะฐะฝะฝั‹ั…. ะšะฐะถะดั‹ะน ะผะตั‚ะพะด ะฒั‹ะทั‹ะฒะฐะตั‚ัั ะธะท ั€ะฐะทะฝั‹ั… ะฟะพั‚ะพะบะพะฒ, ะฟะพัั‚ะพะผัƒ ะฟั€ะธั…ะพะดะธั‚ัั ัะพะทะดะฐะฒะฐั‚ัŒ ะฟะพะดะบะปัŽั‡ะตะฝะธะต ะบ ะ‘ะ” ะดะปั ะบะฐะถะดะพะณะพ ะพั‚ะดะตะปัŒะฝะพะณะพ ะผะตั‚ะพะดะฐ. """ NAME = "keys.db" def check_existence()...
[ "tommiv@mail.ru" ]
tommiv@mail.ru
337de078e52acf02bce60f74007886466bedb92c
676f77b353181394acfbf8f819a7a5361bc86eee
/mysite/settings.py
525de8f855d0f881a0d15d8da91819cdf6956a23
[]
no_license
breinersn/myblog
69e489ce41c940c70ffa6f740284a0ce61bc2e3a
1e413022ab1691dfe3ccb0dfedb1c17980831a72
refs/heads/master
2020-04-04T15:52:17.048964
2018-11-04T06:26:44
2018-11-04T06:26:44
156,055,243
0
0
null
null
null
null
UTF-8
Python
false
false
3,201
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.9. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # ...
[ "bsuarezn1@unicartagena.edu.co" ]
bsuarezn1@unicartagena.edu.co
1496701a7dcaacef30df2d1e3c95c166dc87a959
f9e369628caa31c2f536c96af2847d8d43413be6
/Python_Challenge/Scrapper/remote.py
d6f93337c133f40403d683c39294d3dd6e420759
[]
no_license
wold21/Python
00de03cc948794d2128ccd1e6e13729a96e62de5
8bbe5317faeae6aabe6c3c03c3d5b87b9c131645
refs/heads/main
2023-01-23T17:05:36.153101
2020-11-29T07:20:51
2020-11-29T07:20:51
305,049,792
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
import requests from bs4 import BeautifulSoup def extract_job(html, link): # title = html.find("span", {"class":"title"}).string # company = html.find("span", {"class":"company"}).string # location = html.find("span", {"class":"region company"}).string # link = link.find("a")["href"] # return {"tit...
[ "wold2180@gmail.com" ]
wold2180@gmail.com
4565df909b3e0e3e2cbca97207b6da138461b346
fa346a2d5886420e22707a7be03599e634b230a9
/temboo/Library/GovTrack/Bill.py
0e1c3ee23f956f8cd9161b911714ba5a64e5bbcb
[]
no_license
elihuvillaraus/entity-resolution
cebf937499ed270c3436b1dd25ab4aef687adc11
71dd49118a6e11b236861289dcf36436d31f06bc
refs/heads/master
2021-12-02T17:29:11.864065
2014-01-08T04:29:30
2014-01-08T04:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,472
py
# -*- coding: utf-8 -*- ############################################################################### # # Bill # Retrieves bills and resolutions in the U.S. Congress since 1973 (the 93rd Congress). # # Python version 2.6 # ############################################################################### from temboo.c...
[ "cedric.warny@gmail.com" ]
cedric.warny@gmail.com
ffb4dea06b82d1e436845c5b9e60222f5b72ca09
7884bba8394d434ab3be59a6f85a995b5d6e84bc
/GA/GA_peaks - Copy.py
b347acdfa5a6cba1ebe14f466770bb41f5cfd9ee
[]
no_license
fevemo/Problema_Especial
abd434a8e5ccb3ae534d8a1d9de2d2ccf6bac169
e1aa909c52039737e85e47d1303063c51f27a75b
refs/heads/master
2021-08-24T12:42:20.723321
2017-12-09T21:20:26
2017-12-09T21:20:26
110,586,547
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
import numpy as np import matplotlib.pyplot as plt xRange=[-3,3] yRange=[-3,3] #Objective function def f(x,y): return 3*((1-x)**2)*(np.exp(-x**2-(y+1)**2))-10*(x/5-x**3-y**5)*np.exp(-x**2-y**2)-np.exp(-(x+1)**2-y**2)/3 #Converts decimal numbers in range (xRange, yRange) to binary representations def encode(x,y):...
[ "f.velasquez10@uniandes.edu.co" ]
f.velasquez10@uniandes.edu.co
47041586f9c8b4f5058e2f980d8104f3af434f7e
99ad0f6a67ae2d080d76da411530869408351026
/A3-CSP/CSP/constraints.py
284e68ae861f37864f2a00ddc772284a1df1d060
[]
no_license
wilguo/Pacman-With-AI
e95ea23040d4613247e402d966fca25ffc6328ff
27658dc318110869d074eea0170f2f624da7b524
refs/heads/master
2020-04-13T20:55:51.872869
2018-12-28T19:37:48
2018-12-28T19:37:48
163,443,450
0
1
null
null
null
null
UTF-8
Python
false
false
13,568
py
from csp import Constraint, Variable import util class TableConstraint(Constraint): '''General type of constraint that can be use to implement any type of constraint. But might require a lot of space to do so. A table constraint explicitly stores the set of satisfying tuples of assignments.''...
[ "guowilbert98@gmail.com" ]
guowilbert98@gmail.com
284a99c010709af23582bf680aff3583cca868c3
f4e3b92dc4411a761a01e647e9dac16db971ba7f
/mysite/settings.py
5675f239cf2812eee08c4b5c6b51d4aa48b5a654
[]
no_license
HOSEON-LEE/LHS
955a0f86522b851488b516e57a2aa720a050f692
6e85fb41f9eec1832079a910ef2ee00a9a52ac9d
refs/heads/master
2020-07-06T09:04:15.437042
2019-08-21T10:26:44
2019-08-21T10:26:44
202,965,599
0
0
null
null
null
null
UTF-8
Python
false
false
3,101
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.4. 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 # ...
[ "rootcat22@gmail.com" ]
rootcat22@gmail.com
aac9561b32896b7c36416149f5a7c85232dd78f6
8d97abead3d1e7fb1a77cf77da2c237c507e1599
/pureFreshProj/fruitsApp/views.py
67128cb7d5478c06030c2ad2b51774d4d3ea19c9
[]
no_license
techiesoul8/pureFreshRepo
f8b5d5828149835593408cf3c9c6d904cabcc96e
9b41710c8ed22c9ab87617dc0e6e0df2bd731aa7
refs/heads/master
2021-09-24T22:14:33.675072
2020-02-01T20:51:08
2020-02-01T20:51:08
236,665,625
0
0
null
2021-09-22T18:28:47
2020-01-28T05:32:06
HTML
UTF-8
Python
false
false
1,005
py
from django.shortcuts import render from django.http import HttpResponse from .models import Fruit from cart.forms import CartAddProductForm from cart.views import cart_add # Fruits = [ # { # 'author':'ceo', # 'name':'Soursop' , # 'price':'10.00', # 'description':'Excellent soursop...
[ "techiesoul8@gmail.com" ]
techiesoul8@gmail.com
b9cf3b8a2cf28697fa9ba6706aa2eacca14bb3ed
767b5482f3c5b9c2c85575c711e37561f5b8f198
/engine/plugins/no_request_check_file_url.py
0e03353b89807171f88766e8dd5cd2fab7be8a9d
[]
no_license
zhupite233/scaner
8e39c903f295d06195be20067043087ec8baac4f
7c29c02bca2247a82bcbb91cc86955cc27998c95
refs/heads/master
2020-05-18T03:23:03.459222
2019-04-15T04:29:10
2019-04-15T04:29:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
#!/usr/bin/python # -*- coding: utf-8 -*- import json from engine.engine_utils.common import * from engine.logger import scanLogger as logger def run_url(http, ob, item): try: path = item['url'] params = item['params'] method = item['method'] timeout = ob.get('webTimeout') ...
[ "lixiang@yundun.com" ]
lixiang@yundun.com
8d74613cad0dc001cec85fcf3578f6f5a43efa65
d940698bf8dabeb318609508f3d24615232440b3
/mrndappday/iplclone/serializers/season_serializer.py
481a45994ceb68370763461c1534442f7d565c2f
[]
no_license
paruchurimadhurima/IPL-Clone---Django-React
0c34c635b2d3087e72275583d8e6158f92938e45
6d83336f1953eaa47c627dd2a1f1b13dc0a264bc
refs/heads/master
2020-08-23T23:23:19.341657
2019-10-22T05:42:34
2019-10-22T05:42:34
216,723,032
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
from iplclone.models import * from rest_framework import serializers class SeasonSerializer(serializers.ModelSerializer): class Meta: model = Match fields = ('season' ,)
[ "madhurimaparuchuri@gmail.com" ]
madhurimaparuchuri@gmail.com
f8fc5c030c2436c703dc785d49d670fa7afbedca
eb20c81639b3206abc82bde1d237f0390bb91af5
/conanfile.py
2f6a5c877831e2c28e24c4479e5c2948fcd5add0
[ "BSL-1.0", "LicenseRef-scancode-free-unknown" ]
permissive
martinmoene/variant-lite
b4b62862386c90be82423eba6e6419fa0a8a6585
5015e841cf143487f2d7e2f619b618d455658fab
refs/heads/master
2022-12-04T14:02:06.008567
2022-12-03T12:58:44
2022-12-03T12:58:44
70,513,372
244
37
BSL-1.0
2022-12-03T12:58:45
2016-10-10T17:45:14
C++
UTF-8
Python
false
false
992
py
from conans import ConanFile, CMake class VariantLiteConan(ConanFile): version = "2.0.0" name = "variant-lite" description = "A single-file header-only version of a C++17-like variant, a type-safe union for C++98, C++11 and later" license = "Boost Software License - Version 1.0. http://www.boost.org/LI...
[ "martin.moene@gmail.com" ]
martin.moene@gmail.com
249a2a3f10722ddcdab9e8e84c5362bdcf688b9f
775e7a81691249cb8ef3027da92db33f992eaa4a
/backend/apisix_admin/apps/upstreams/urls.py
fdae44693ff724b451110c6b6eed7993982f9d7e
[]
no_license
cctv86/apisix-admin
0ee8c5c51fcfd4b7e9ca68146d60c85bd54acb4a
9fb5f16a3e4676cfb2d30108aaefd789c963aba8
refs/heads/master
2021-11-30T18:00:44.256200
2020-06-17T08:31:41
2020-06-17T08:31:41
241,030,856
7
2
null
2021-09-22T18:34:59
2020-02-17T05:56:37
Python
UTF-8
Python
false
false
311
py
from django.urls import path, re_path from .views import UpstreamViewSet app_name = "upstreams" urlpatterns = [ re_path(r'list/', UpstreamViewSet.as_view({"get": "list", "post": "create"})), re_path(r'(?P<pk>\d+)$', UpstreamViewSet.as_view({'get': 'retrieve', 'put': 'update', "delete": "destroy"})), ]
[ "qq.com" ]
qq.com
1570ef0139326ca4a972af344522a632c7ba1439
6a1f6500d2319a2b7d974e3075747b86f102198e
/Path Sum2.py
9703bc4df062f41f7e1a445a26019ace51bfb9fb
[]
no_license
vpc20/binary-trees
257672bb3b76c63c1530787a17c664665f5ed15e
90e074ec33acfa431285fbc3236335814a37feb2
refs/heads/master
2023-04-30T01:14:06.556085
2021-05-20T08:27:42
2021-05-20T08:27:42
271,945,306
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
# Given the root of a binary tree and an integer targetSum, return all root-to-leaf paths where # each path's sum equals targetSum. # # A leaf is a node with no children. # # Example 1: # Input: root = [5, 4, 8, 11, null, 13, 4, 7, 2, null, null, 5, 1], targetSum = 22 # Output: [[5, 4, 11, 2], [5, 8, 4, 5]] # # Example...
[ "cuevasvp@gmail.com" ]
cuevasvp@gmail.com
aecd3945d0c0b32a57368f9f324571b5d6c16fd0
82f91128db634cb9dac106773975ef0440c46a5a
/week-2/2a_kthsmallest.py
eba21111e386780656fec41b7ae76ac0fe6e46fe
[]
no_license
kedar-shenoy9/ADA-1BM17CS041
c7184a50f370fd816b79f80b618d8a7384ed1893
5e4c9b488827683bdadcdc37933f8800aa4e3021
refs/heads/master
2020-07-01T15:57:45.365483
2019-11-27T16:26:28
2019-11-27T16:26:28
201,218,363
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
def kthsmall(arr, k): for i in range(0, k): small_pos = i for j in range(i+1, len(arr)): if arr[j] < arr[small_pos]: small_pos = j temp = arr[small_pos] arr[small_pos] = arr[i] arr[i] = temp return arr[k-1] l = list(map(int, input("Enter the list of numbers ").split())) k = int(input("Enter the va...
[ "kedarshenoy.cs17@bmsce.ac.in" ]
kedarshenoy.cs17@bmsce.ac.in
b25f07299d3bf5078a6ef216889cecd554398f24
8dc5cd6d7e53196c661aac0e055f3802d43a619b
/api/serializers.py
49c14acc88889c7fe8454cf3e50b059854d56ee0
[]
no_license
rappongy/django_learn
ca00e73abf8037e4be18c22c67a973e49e0270f7
efbb0c9659cf297df65e7f1e6d0d371c0c9a12f5
refs/heads/master
2021-09-26T16:46:04.089719
2020-06-30T02:56:27
2020-06-30T02:56:27
245,110,125
0
0
null
2021-09-22T18:44:40
2020-03-05T08:40:19
Python
UTF-8
Python
false
false
432
py
"""Serializers define the API representation""" from django.contrib.auth.models import User, Group from rest_framework import serializers class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ['url', 'username', 'email', 'groups'] class GroupSerializer(...
[ "mirmametovez@sibedge.com" ]
mirmametovez@sibedge.com
ac7b9bd2e8ad0754ffb063a3e53d1392905aca38
3bb75a1184fd94f2afdd3f973d3cb118fecbb143
/kod/imp.py
5719209e4e4b9bac1948136dbdd985a5d630b30b
[]
no_license
JacobPrivitt/Python-Challenge
59dc7af9f27ffc072131f1b20b78f9b96edd7b4a
552907c049bddfa9c2fe953eb0ceca4480d8ca3f
refs/heads/master
2020-03-27T14:48:16.655832
2018-08-30T01:35:32
2018-08-30T01:35:32
146,679,125
0
0
null
null
null
null
UTF-8
Python
false
false
2,260
py
class Thing(object): def __init__(self, name: str, description: str): self.name = name self.description = description ''' class Item(object): """ Items are Things that are potentially carry-able or interactive in some way, either by the player or a Creature of some kind. Items can also...
[ "belger99@yahoo.com" ]
belger99@yahoo.com
f7f3d8f02b6d308c3f3bc24d81e2dd1a11e6d95d
0f5668e822e30f2ebcddeb7121d5227305f3e3e7
/rate_the_movies/admin.py
3aaf97a82685e6ab7fc2ae93104abcb9d2835682
[]
no_license
hpaasch/weekend_movies
ff8e7e531202d1b6a02388e5087bfcd22b89f7e8
d7a71815358fa1dfec842d73a05f95f59eff5ab9
refs/heads/master
2021-01-19T00:25:43.980980
2016-06-12T18:31:31
2016-06-12T18:31:31
60,794,716
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
from django.contrib import admin # Register your models here. from rate_the_movies.models import Rater, Movie, Rating, TopMovie admin.site.register(Rater) admin.site.register(Movie) admin.site.register(Rating) admin.site.register(TopMovie)
[ "hepaasch@gmail.com" ]
hepaasch@gmail.com
df5c2b71006333f1987c38f69fa80f9f54f7b59c
27b4ee3aa2447d7aa5ec1227ecad34c7ee91d782
/spider_offline/spider_offline/pipelines.py
323d6ebd1eb514122aa9d2f5c5a6154f8839e517
[]
no_license
diogoffmelo/spider_offline
8ebdaab6f0e132f8f1881bf7df00fd111b18c9fc
47420f23a1a447ed52fa629e9cc05e7c6984e58e
refs/heads/master
2021-07-25T16:49:43.514341
2017-11-07T02:35:22
2017-11-07T02:35:22
109,760,453
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class SpiderOfflinePipeline(object): def process_item(self, item, spider): return item
[ "diogoffmelo@gmail.com" ]
diogoffmelo@gmail.com
ccfed84a9d9030cdde84e7b4bef13728374aa2b3
9cd9599a27670296df2868289b03b9d1a1668c98
/dictionary_based/retrofit/retrofit.py
91871c3ab64d424aadad65ac7e3a42557533d1ce
[]
no_license
hxsnow10/MultilingualNlp
fe5404270b37d3fd1720629a48446c796328dd2b
7528ba5a177bafd65dc445f84b62e8c18d5886c1
refs/heads/master
2020-03-17T07:04:33.998296
2018-05-17T07:59:35
2018-05-17T07:59:35
133,382,119
0
0
null
null
null
null
UTF-8
Python
false
false
7,138
py
# encoding=utf-8 import tensorflow as tf import numpy as np from collections import OrderedDict from nlp import load_w2v,save_w2v from utils.base import dict_reverse from data_utils import get_words, SynonymDataset import config import sys sys.path.append('../test') from base import semeval17_main_test class Word2Ve...
[ "xia.hong@baifendian.com" ]
xia.hong@baifendian.com
adc736021470154ae3f9537ac384713568c9af50
b49d2cf31f331483007547249eb41dc3073d3c42
/comment_manager/serializers.py
db62d28d9126e65765c9bf4a2b478d34e96cc6ed
[]
no_license
georgehong/shoulders
df579ca845ff5918b127330b721934973cdd9753
0401643056877c9dbcebb3ab83838a8c4fa3a18a
refs/heads/master
2022-12-04T06:54:10.893747
2020-08-16T19:36:16
2020-08-16T19:36:16
287,891,999
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
# Converts Python class to JSON in a browser! from rest_framework import serializers from .models import Comment class CommentSerializer(serializers.ModelSerializer): class Meta: model = Comment fields = ('id', 'name', 'email', 'message',...
[ "george.r.hong@duke.edu" ]
george.r.hong@duke.edu
6e217e6f3939ed8e26166e26843fa9f5b34e2330
60be3894ad491bde502b8f6909a026ee115d952e
/aiosmb/authentication/kerberos/multiplexor.py
3f54b8c402def066580a983a3ce93219f5a30a6b
[]
no_license
topotam/aiosmb
7c97c6a9806c84a9fae28fa372cc6903fa6ec0c5
e2ece67bbf380f576b154b09ea5fd63d9b4ecf4c
refs/heads/master
2023-06-25T17:41:03.605226
2021-07-27T18:31:12
2021-07-27T18:31:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,412
py
## ## ## Interface to allow remote kerberos authentication via Multiplexor ## ## ## ## ## ## TODO: RPC auth type is not implemented or tested!!!! import enum from aiosmb.authentication.spnego.asn1_structs import KRB5Token from minikerberos.gssapi.gssapi import get_gssapi, GSSWrapToken from minikerberos.protocol.as...
[ "info@skelsec.com" ]
info@skelsec.com
451c9e4604360a3846e67ffe0e13ba94bd96c322
5ed01684710115265fa4b0d28966c626bbac0ba3
/q_learning.py
ba86684791c62e4c12ce900ca855562dd89379dc
[]
no_license
dongba1/drl_blockchain
8f9a36c9646116d46c63946d3e63cf799fe2af40
a62631910c64f088387838c07ffc2750fe1c2189
refs/heads/main
2023-03-23T15:12:50.275982
2021-01-01T14:52:50
2021-01-01T14:52:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
""" This part of code is the Q learning brain, which is a brain of the agent. All decisions are made in here. View more on my tutorial page: https://morvanzhou.github.io/tutorials/ """ import numpy as np import pandas as pd class QLearningTable: def __init__(self, n_features, actions, learning_rate=...
[ "danieldoe33@gmail.com" ]
danieldoe33@gmail.com
528138c7b3242a2e6f034c7f518b4ae11ec9f5d9
48aacf0425c5ab071972034c3fbd388feb036578
/node-3/site-packages/heat/db/sqlalchemy/models.py
cf9d5ea7798f3b6c01c0e09b9f9f4502429310ab
[]
no_license
wputra/MOS-centos
2b8ec0116bb3a28632c54d6052d322a42391439f
0a4f24dd4183d4d44e8c7beb27adce12e42f0201
refs/heads/master
2021-01-10T19:22:22.920342
2014-09-12T03:33:54
2014-09-12T03:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,877
py
# # 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 agreed to in writing, software # ...
[ "wasis.putra@gmail.com" ]
wasis.putra@gmail.com
967fda0ee6130a6a128f3eef6c9e3e14e16f7d10
22f284b38222e1b039e85dec8c13ab23eaba00e3
/snakepic/models.py
3b396050e675cbb26f8588b0b95cc513604092e4
[]
no_license
ismail-se/snakeimage-django
acc2bc509cba1e73a06827c0428a6910797c1a7c
099e6766c430175f26d8bb8ae870440c80daf0ac
refs/heads/main
2023-02-10T15:41:22.428610
2021-01-06T07:52:16
2021-01-06T07:52:16
327,236,217
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
from django.db import models # Create your models here. class Image(models.Model): img = models.ImageField(upload_to='images/')
[ "officialmismail@gmail.com" ]
officialmismail@gmail.com
fb3bd2b3efa2d0b7d148e8720bce77319f292afb
9b72e85e892a3dd42d0cdc8ddb1b588f8e800b80
/set52.py
55017c56c153621182aa090337b514b6b66048ac
[]
no_license
alageshwaran/alagesh
98cd3897325d64b5b8fb6060f7e908ca10319fee
d3411c9794f789aad51a9d52a512922f99e93672
refs/heads/master
2021-06-23T17:56:14.490203
2019-06-13T06:17:53
2019-06-13T06:17:53
143,844,296
0
1
null
null
null
null
UTF-8
Python
false
false
121
py
n,k=input().split() n=str(n) k=str(k) if(len(n))>(len(k)): print(n) elif len(n)==len(k): print(k) else: print(k)
[ "noreply@github.com" ]
noreply@github.com
cd3c6bb18ce17c210ced4e1a33ebf7f55bb1957a
47032f7d12ac71a283583e477e8701b1d75a9fc5
/Palindrome_Number.py
988f6fb1f1f96e8ff91594bc98f9423df459a6ae
[]
no_license
zhangguof/LeetCode
02f48bb30974d95ca7c88115c37c1bb6a7f78e34
ad06a5312d4276e60b66097425750076c45c12ca
refs/heads/master
2020-12-24T16:43:16.538747
2019-02-03T15:36:16
2019-02-03T15:36:16
34,612,237
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
#-*- coding:utf-8 -*- # Determine whether an integer is a palindrome. Do this without extra space. class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ t = x/10 n10 = 1 if x<0: return False while t: ...
[ "zhangguof@gmail.com" ]
zhangguof@gmail.com
bc4c60928955804a1ddae11370510ac859ded3d5
10a3e2dfb10f2dcb15a4ec5f1312a83d7c69aa88
/idr-mgt-shared-libs/AMS-SDK/python/ams_utils/payload_parser.py
06583eeab3eff645ac48dae8bd853ed6be1e77ff
[ "Apache-2.0" ]
permissive
intel/intel-device-resource-mgt-lib
981d592bded509d1a79ec22c823280d4ceee3e44
a5aeb1238b26c1af55cf3a82787ed347dff1fb86
refs/heads/master
2023-05-27T13:34:09.991898
2022-08-25T11:31:21
2022-08-25T11:31:21
118,522,873
2
16
NOASSERTION
2023-04-07T10:28:29
2018-01-22T22:16:29
C
UTF-8
Python
false
false
727
py
# -*- coding: utf-8 -*- # Copyright (C) 2017 Intel Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
[ "xin.wang@intel.com" ]
xin.wang@intel.com
980aa3c5f4c6eaed6ee474cd1e1365429f9e3fdd
0c3ae8b983065fd64bb55daa1055980df1cb341f
/report.py
aa70379a37c4d7bccde1679687d197ae27cbc2e6
[]
no_license
razvanmarinescu/thesisPhd
5e76a413558a8d8cbac90d74ede100e86913c1cc
5af54fe4378c02778b743e237b0a2480eaa3f3f5
refs/heads/master
2022-01-19T04:12:36.891021
2019-07-08T15:31:46
2019-07-08T15:31:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
for f in range(10): if f == 5: print '\n' if f == 0 or f ==5: #print r'' print r'\begin{subfigure}[b]{0.223\textwidth}' print r'\centering' print 'f=%d' % (f+1) print r'\includegraphics[width=\linewidth, trim=22 0 35 20,clip]{\adniThickCVFolder/'+ 'f%d/trajSamplesOneFig_cogCorr_\\adniThickCV...
[ "mrazvan22@gmail.com" ]
mrazvan22@gmail.com
6f79ef8106ca5544b91f35dde2f875dbb11e065c
b5fbddf84dd9b8772bcbfec988944aac75a25f90
/python_coursera/pythonprogramming/scripts/Exercises2.py
4824bee88abb358818ab5aeb3cc4cef3af44be4a
[]
no_license
srinivasm55/python-scripts
e00dadb417e0f4900c02afb91a7ed9c384750e3e
559a13d1d1dd3678c82fa51a58383b8c7a4ba2d5
refs/heads/master
2021-01-25T12:31:16.102264
2017-04-07T15:02:36
2017-04-07T15:02:36
82,336,113
0
0
null
null
null
null
UTF-8
Python
false
false
17,740
py
# - Exercises2.py *- coding: utf-8 -*- """ Python has lists. The empty list is []. The following is a list of one item ["a"] and so is [3]. Here is a list with 3 items ["ball",3.14,-2]. Let's define a list, I'll call it lis and we'll do things with it to illustrate accessing items in a list. Execute the following ...
[ "srinivasmyana55@gmail.com" ]
srinivasmyana55@gmail.com
018d89ef715025c2d5aa99d5c08e4d1b3c8fc225
cc90e1c6d638ebd6ef38d44158a20bbf2494dfda
/transformersx/examples/tasks/summarizer/abstract_sum_selections.py
cc05620a0572588b7bf6b29ee3b746fc2239006d
[ "MIT" ]
permissive
aicanhelp/ai-transformers
d49ef8d73422a48bd823c0fba79b21ffdfbd045c
fa30031fa7360ee6d4fd3d016a3c81a23cfe8af1
refs/heads/master
2022-11-29T13:34:21.076461
2020-08-04T11:01:41
2020-08-04T11:01:41
259,859,825
1
0
null
null
null
null
UTF-8
Python
false
false
3,496
py
import itertools from transformersx.utils.text_utils import get_word_ngrams, rouge_clean def cal_rouge(evaluated_ngrams, reference_ngrams): reference_count, evaluated_count = len(reference_ngrams), len(evaluated_ngrams) overlapping_ngrams = evaluated_ngrams.intersection(reference_ngrams) overlapping_cou...
[ "modongsongml@163.com" ]
modongsongml@163.com
274d6e3c4367105dc79da95ea9b7fa21483075cd
c77185d50e341c2f6702aa491477204de7d59eea
/machine_learning/Regression_types/polynomial_regression/polynomial_regression.py
753a97874007a8f963a06d6ab1ccda744ee34ab3
[]
no_license
ardaunal4/My_Python_Lessons
ed8ea74861b35ec1966cf4665bc57c08f80dba0b
563ec855f3ead40fe9468272162a1e5036c7c4cd
refs/heads/main
2023-04-09T17:23:43.206308
2021-04-27T12:36:58
2021-04-27T12:36:58
350,825,288
0
0
null
null
null
null
UTF-8
Python
false
false
992
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.preprocessing import PolynomialFeatures # y = b0 + b1*x + b2*x^2 + b3*x^3 + ... + bn*x^n df = pd.read_csv("polynomial_regression.csv", sep=";") x = df.araba_fiyat.values.res...
[ "noreply@github.com" ]
noreply@github.com
22b92f6be0c95f43fb806da41592317e1713df07
7e9623e92b0d033ba986112decae0eb5dad2d713
/FalCorr.py
76e640f0679d8e5c83064ecba416479fb8f73d26
[ "CC0-1.0" ]
permissive
dbrinkstudent/FalCorr
763df2533e42663d1a03990b8687990149b575a4
57987e62511c427568d4d8a037f93bb9af3d0db8
refs/heads/main
2023-08-28T20:17:02.675923
2021-06-12T03:03:23
2021-06-12T03:03:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
67,592
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # GUI module generated by PAGE version 4.13 # In conjunction with Tcl version 8.6 # May 24, 2018 10:33:11 PM import sys import FCSoptionWindow #user-defined import FPGAserial #user-defined from threading import Thread import io import os import queue import time im...
[ "farrarmj@gmail.com" ]
farrarmj@gmail.com
30fe0226a2f52db3c5d9c027b9f43cf46dcbb44f
520ebbbedbbe10d75ea6f57b7a8963aae235b9a1
/callback/__init__.py
a561499229fa3f0252ce00d7ff168f422ebd26f3
[]
no_license
mduca/MQTT-Cam
d4dbf22bf6e21b0088fb1794d62909b5edec6d8a
c7f8a79456818aabc59b22a691209aa821885624
refs/heads/master
2022-04-14T18:39:24.205012
2020-04-05T21:46:54
2020-04-05T21:46:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
import ujson from .action import Action class ActionTypes: def __init__(self): self.LED_STATE = 'led_state' self.CAPTURE_IMAGE = 'capture_image' def sub_callback(topic, msg): msg_json = ujson.loads(msg) action = Action(msg_json) action_types = ActionTypes() if 'type' in msg_jso...
[ "jonothanallen@gmail.com" ]
jonothanallen@gmail.com
71ad7b9031f74fb6d2a48cdcc5e6d1a8dfb5be04
c4f015d5bc513258b7eb0060fbf89b0f9e018aab
/attribute_class.py
0341fe43b53db8ba6fd9c2766760c0bcad6b73fe
[ "MIT" ]
permissive
BenoitValdes/custom_ix
94919b2968022987e87cda4a90f506eabe2dc60e
9728513ea7c797cd5ce83a64910518f64faf40c0
refs/heads/main
2023-01-07T08:23:52.458758
2020-11-02T13:35:37
2020-11-02T13:35:37
303,433,867
0
0
null
null
null
null
UTF-8
Python
false
false
3,005
py
import ix, wrapper reload(wrapper) class Attribute(wrapper.Wrapper): def __init__(self, ix_node): super(Attribute, self).__init__(ix_node) self._node = ix.get_item(str(ix_node)) def get_values(self, disabled=False): """ Get the value of the current attribute. Not matter...
[ "valdes.benoit@gmail.com" ]
valdes.benoit@gmail.com
aeb1b2b02dedd76208af4900290767ab944c32da
2fac796fa58c67fb5a4a95a6e7f28cbef169318b
/leetcode/bit-manipulation/majority-element.py
1bf72be5da81fd021752159644b0555f580d16ab
[]
no_license
jwyx3/practices
f3fe087432e79c8e34f3af3a78dd10278b66dd38
6fec95b9b4d735727160905e754a698513bfb7d8
refs/heads/master
2021-03-12T20:41:59.816448
2019-04-14T06:47:30
2019-04-14T06:47:30
18,814,777
2
0
null
null
null
null
UTF-8
Python
false
false
516
py
class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: int """ # ๆŠ•็ฅจ result = count = 0 for num in nums: if count == 0: # ๅฆ‚ๆžœไน‹ๅ‰็ฅจๆ•ฐ็›ธๅŒๆˆ–่€…ๅˆšๅผ€ๅง‹๏ผŒ้‡ๆ–ฐ้€‰ไธ€ไธชๆ•ฐ result = num count = 1 eli...
[ "jwyx88003@gmail.com" ]
jwyx88003@gmail.com
dc9e9b17d92e4a634f06a5f313b86e0ba8dd50c1
3a68f70b8882e8f4078a61bf0a12120b9710f03b
/web/servers/mysite/home/urls.py
bbf9d10b6b7125a5fd76bca0197a75fe65b747ff
[]
no_license
kudohdtt/Web-application
3c723be53041d6ced5fafaae920a0caf0781b99c
9315e3f647ddf37e8da9f90d0aac609d3706393c
refs/heads/main
2023-05-01T12:58:52.219506
2021-05-25T14:31:57
2021-05-25T14:31:57
370,718,862
0
0
null
null
null
null
UTF-8
Python
false
false
990
py
from django.urls import path from . import views from django.contrib.auth import views as auth_views urlpatterns = [ path('', views.index,name ='index'), # path('login/', views.login,name ='login'), path('rooms/<int:hotel_id>/', views.rooms,name ='rooms'), path('roomdetail/<int:roomtype_id>/', views.roomde...
[ "kudohdtt@gmail.com" ]
kudohdtt@gmail.com
3f9d8a2f180df15fcbfb8dc0ed2c47ed93e3ceb8
943e6337ac3c4ab36d20d86fc58eba6f5d442484
/backend/src/controller/TaxController.py
3685f3438e373a2d093e65e3bcaba2678e7ab7a9
[]
no_license
khuhroproeza/taxCalculator
16d13524a6f56bf1924f96f46e730117f96f0d47
32b12a45c0c3dad2491aaaaae0e160a53de94451
refs/heads/main
2023-08-29T13:14:47.005509
2021-10-24T19:20:32
2021-10-24T19:20:32
415,432,204
0
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
from datetime import datetime from sqlalchemy.orm import Session from src.schemas import BaseSchemas from src import enums from src.schemas import BaseSchemas from src.schemas import models from src.helpers import itemAnalyser from src.helpers.itemAnalyser import proper_round def taxRate(db: Session): taxRate = m...
[ "s.khuhro@appose.com" ]
s.khuhro@appose.com
3ac711d7c0f84683c8cc9d9284e21878c34df0be
e22172cb163f467aa8ab21d63299edca4d225d64
/selectAmt.py
84ea11a16bead8cec552793342039dc65b9f6126
[]
no_license
fengjinli/Talking-ATM-Simulation-With-PyQt
80f463818cc731f716f97615406428ff9e3f925c
2172d55cf29f5520d81aefbf1693c4ee84b6358b
refs/heads/master
2020-06-02T14:19:34.461383
2019-06-06T12:26:50
2019-06-06T12:26:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
__author__ = 'habeeb' from PyQt5.QtWidgets import * from PyQt5.QtCore import * class SelectAmt(QWidget): amt500 = pyqtSignal() amt1000 = pyqtSignal() amt3000 = pyqtSignal() amt10k = pyqtSignal() amt15k = pyqtSignal() amt20k = pyqtSignal() other = pyqtSignal() def __init__(self, pare...
[ "omotee24@gmail.com" ]
omotee24@gmail.com
9bb4d70dd7c338ea7f81ca1c4636dc4ae0794ad9
1cd32389590d2b7d933025e05faa7476f35b3cc5
/example.py
718187b61e443b7c51c392c6876234b2280b2007
[]
no_license
ericumolu/cssinto
8039ec3c5e062d25b905dbbe907f1fa91188907d
f96ce3fa584d1c82916a0392cef855713cfd2ba8
refs/heads/master
2021-03-12T19:42:33.226692
2012-11-28T04:56:29
2012-11-28T04:56:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
#!/usr/local/bin/python3.1 from cssinto import Css css = Css() css.read('css_file.css') css.add_block() print (css.show_block()) print (css.get_block(3).show_selector()) print (css.get_block(3).show_body())
[ "reach.eric@hotmail.com" ]
reach.eric@hotmail.com
2348003e69e9be41170732da0da7c4c6df183f1a
3a44aac617b3c44378aeb16c50ba8344f48712e0
/tests/a_unit/test_31_fieldcontainer.py
280653d25c45886daec4022d85554411812436d9
[ "MIT" ]
permissive
lars-tiede/aiorethink
b13d416c5b1e3064dddc38941d44680c22b7a7ba
569900841ac216cffa064d4502377c36474098f7
refs/heads/master
2021-01-19T04:41:02.470791
2016-06-19T19:24:45
2016-06-19T19:24:45
54,712,523
8
4
null
null
null
null
UTF-8
Python
false
false
12,361
py
import asyncio import pytest import rethinkdb as r import aiorethink as ar @pytest.fixture def EmptyFC(): class EmptyFC(ar.FieldContainer): pass return EmptyFC def test_empty_fc_class(EmptyFC): fc = EmptyFC() assert len(fc) == 0 assert fc.len(ar.ALL) == 0 assert fc.len(ar.UNDECLARE...
[ "lars.tiede@gmail.com" ]
lars.tiede@gmail.com
96cef320658d2a00caa40235f644f6291b6d8bb4
88edc0d91eae83eabe6b3c3a7ea78512c2008814
/cnn_save.py
79800c84aa80421228a68bd774320a4cea9be1ee
[]
no_license
Jonzhang666/tensorflow
69495033fd08a14d6f40c5035a644d5dd53020fd
0b64269ca944b5c703c087bc1fe852b0cb25d657
refs/heads/master
2020-04-08T13:33:49.258258
2018-11-27T21:05:06
2018-11-27T21:05:06
159,396,334
1
0
null
null
null
null
UTF-8
Python
false
false
3,701
py
import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data # number 1 to 10 data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) #Parameters learning_rate = 1e-4 training_epochs = 150 #Network Parameters n_input = 784 n_classes = 10 def compute_accuracy(v_xs, ...
[ "jz@email.com" ]
jz@email.com
9129b30571e6a078b7505fb3734157be31a09d97
c540300393a07921fed453587075e9075822b3f5
/scripts/learn_transformation.py
e0cfb4239e40b80535b61ade134e6192f8aafcb6
[]
no_license
JafarAbdi/learn_ros
eb13f490d2bef4b560e2e8b64437adde4ebfee44
3f0e446ca15cf42bfe79a07c7b5b6f61259de13a
refs/heads/master
2021-01-15T18:27:30.460848
2019-02-20T14:16:38
2019-02-20T14:16:38
99,790,390
1
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
#!/usr/bin/env python import rospy import tf import tf2_ros from geometry_msgs.msg import TransformStamped, Transform import numpy as np from markdown.util import int2str def message_from_transform(T): msg = Transform() q = tf.transformations.quaternion_from_matrix(T) p = tf.transformations.translation_fro...
[ "cafer.abdi@gmail.com" ]
cafer.abdi@gmail.com
bce51cf40903b853ddfed5d05c36f7c82099c276
75ea066045ca46d2ed8a694b3392ddb2d02410c7
/Solutii/solutie_lab5/sol_lab5.py
ab65e7133cbd35595237b3e05a33d2e6997dc87e
[]
no_license
AnaCiaciru/ML
62e94c19d7fd5c646dd4ceb70556a7b78835203d
54f47877e4fe73d0f26b2739a1595ca0bd3b9244
refs/heads/master
2022-06-04T12:10:42.354782
2020-05-02T20:31:16
2020-05-02T20:31:16
260,765,998
0
0
null
null
null
null
UTF-8
Python
false
false
2,461
py
import numpy as np from sklearn import preprocessing from sklearn import svm from sklearn.metrics import f1_score, classification_report import pdb from bag_of_words import * # save np.load np_load_old = np.load # modify the default parameters of np.load np.load = lambda *a, **k: np_load_old(*a, allow_pickle=True, ...
[ "45535529+password168@users.noreply.github.com" ]
45535529+password168@users.noreply.github.com
b2c2ee77f605d88a1e3ec2b65d0ab64037f85d01
00a48a6d180190de4a9bb26db3631d2a21604ada
/site/fxhostsite/fxapp/models.py
a1d9067b56d16dc2f1f0e7f643d0c773c46415ab
[]
no_license
ddoucette/apphost
2ed91d4534a480f81138fd0e892fe416bda75c4c
4a7bc53e24968e395c098d5387003e0242f2da2d
refs/heads/master
2021-01-23T22:37:06.567253
2013-03-20T05:38:51
2013-03-20T05:38:51
7,184,914
1
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
from django.db import models class Customer(models.Model): username = models.CharField(max_length=64) created = models.DateTimeField('date created') def __unicode__(self): return self.username class Strategy(models.Model): name = models.CharField(max_length=128) customer = models.Foreign...
[ "doucette.daniel@gmail.com" ]
doucette.daniel@gmail.com
54c644fefb5f70333d5c4950410d296896f83553
ad6f3ee4931dec35aeb45cabef8daa6b41f7e4c9
/josh_exercises/leetcode/matrix.py
201f50a1e885a94851ed438414fa530eb37ae1ec
[]
no_license
jblovett/leetcode_practice
a09a061a854ad62d1e71ccc9b63efa6493f2a096
4bbf893eed882d4520791eeafe9d671680906715
refs/heads/main
2023-08-21T05:13:41.635133
2021-09-24T12:59:54
2021-09-24T12:59:54
337,807,732
1
2
null
2021-03-27T18:21:38
2021-02-10T17:57:38
Python
UTF-8
Python
false
false
414
py
class Solution: def rotate(self, matrix): # n is the height and width of the matrix n = len(matrix[0]) for i in range(n // 2 + n % 2): for j in range(n // 2): tmp = matrix[n - 1 -j][i] matrix[n - 1 - j][i] = matrix[n - 1 - i][n - j - 1] ...
[ "jblovett@live.unc.edu" ]
jblovett@live.unc.edu
fb2ee23205b14e21ce0958e6d4dc14b269a473bf
b9564f87483950d2dee9a589126dbb26149105b2
/applicant/pm/migrations/0003_auto_20180711_1659.py
e2498fc9e07a11e1b3744ed0c75d440f073f4d3f
[ "BSD-3-Clause", "MIT", "BSD-2-Clause" ]
permissive
harenconstruction/applicant
d241ddf64704d23ed6e823c88556a7f095eb8f18
d7e6cc769e1a060490db1a95af370cad87581201
refs/heads/master
2023-04-28T09:41:28.492678
2022-05-08T19:06:16
2022-05-08T19:06:16
69,577,006
0
0
NOASSERTION
2022-11-22T02:49:23
2016-09-29T14:44:38
HTML
UTF-8
Python
false
false
1,311
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2018-07-11 16:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pm', '0002_auto_20180710_2306'), ] operations = [ migrations.CreateModel( ...
[ "andy@duncaningram.com" ]
andy@duncaningram.com
476a4f4b8e20d19700d6f2a5687fa6634a162372
897318ba87d79997417c848f69104ebcb745f34d
/test_qnv_2.py
573219c536cdf811024e3525563c2f691302224d
[]
no_license
Student-Satellite-IITB/Advitiy-ADCS-CLS
82a5106d0915a361e790c587368167e9986ec58c
eb9cd1b80bfa6652e8ce5eb66569e9d2fe0fb81c
refs/heads/master
2023-04-08T09:02:52.070307
2023-04-03T17:30:12
2023-04-03T17:30:12
167,546,181
3
9
null
2019-06-22T06:15:18
2019-01-25T12:45:29
Python
UTF-8
Python
false
false
2,333
py
import qnv import unittest import numpy as np from ddt import ddt,file_data,unpack,data @ddt class Testquatrotate(unittest.TestCase): @file_data("test-data/test_quatRotate.json") @unpack def test_quatrotate(self,value): v = np.asarray(value[0]) q = np.asarray(value[1]) vr = np.asarray(valu...
[ "noreply@github.com" ]
noreply@github.com
f866b98b6ff8c2f5cc0a69c0e2b7adb82891a2fd
c7cf251886a2157804a1a3d75491908dd2814001
/Python/com/sun/py/test/OfflineFilesCheck.py
1de3c4ca14a07f6350805ac678b78e52555ce584
[]
no_license
yutaosun209205/MSExercise
f8f7a4bdafaf73afffbc716d1a7feacb71177bdf
497a2473db0138ead5487944c207624f3eff20fc
refs/heads/master
2020-12-04T04:17:13.655152
2018-04-20T03:54:15
2018-04-20T03:54:15
66,622,289
1
0
null
null
null
null
UTF-8
Python
false
false
3,531
py
#!/usr/bin/python # -*- coding:utf-8 -*- import sys import os import datetime import time import json # import commands # python3.x ไธญcommandsๅบŸๅผƒๆމ๏ผŒsubprocessๆ›ฟไปฃ import subprocess def is_valid_date(date, fmt): try: time.strptime(date, fmt) return True except: return False if __name__ =...
[ "bjsunyutao@corp.netease.com" ]
bjsunyutao@corp.netease.com
2461bc3b27ac1e64018c7ce2935a8b83b6cc2655
ecf8d2c468650a3ab25b9a78e69a792002282a77
/Object_detection_webcam.py
a2cd3d45c1b96f9893f42ab591e55ec2abb85c5d
[]
no_license
PriyankRaj25/LICENSE-PLATE-RECOGNITION
2ebb788049e341a224085603e5a86557f2bb9ff2
3a220ca2329116781246838b2670676d0c708e0d
refs/heads/master
2020-07-10T12:38:42.843402
2019-08-25T08:58:51
2019-08-25T08:58:51
204,264,453
1
0
null
null
null
null
UTF-8
Python
false
false
3,564
py
import os import cv2 import numpy as np import tensorflow as tf import sys # This is needed since the notebook is stored in the object_detection folder. sys.path.append("..") # Import utilites from utils import label_map_util from utils import visualization_utils as vis_util # Name of the directory cont...
[ "noreply@github.com" ]
noreply@github.com
d022411e4a91c4c1d8956851da5301feea012b68
cfcd4cdac3df6b18c2b3486219ca0aa0047a857d
/problem5.py
e16fc302643a80ea0e7fa1bd613d93297bc5df76
[]
no_license
Grasseh/adventofcode-2015
7837f4478d3806387ff2f99a8f53324a8f0c11e9
c6c4249b4398b4b081c5cd096e411f7e5b4acdad
refs/heads/master
2021-01-10T16:42:15.129658
2017-11-30T18:35:46
2017-11-30T18:35:46
47,337,294
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
from inputs.input5 import input input() string = input() array = string.splitlines() value = 0 for i in array: Check1 = False Check2 = False Check3 = True #Check 1 -- At least 3 vowels vowels = 0 for character in i: if character in ["a","e","i","o","u"]: vowels += 1 Check1 = vowels >= 3 #Check...
[ "steve.gagnev4si@gmail.com" ]
steve.gagnev4si@gmail.com
52a17870b9b8e982f209a824ddc76570dd86b98b
2e22abd8e8c7f89d3827506eaa89b8649a35f4b4
/0x03-python-data_structures/6-print_matrix_integer.py
484854fb2487500d1a06801799171246dc9c9656
[]
no_license
luismelendez94/holbertonschool-higher_level_programming
d93b8d80675684a1e7e6e96c79d4c9542a352b32
65ff9061aa3243f0486718998fcba220331beb3a
refs/heads/main
2023-08-13T19:06:34.525382
2021-10-05T03:41:53
2021-10-05T03:41:53
361,932,443
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
#!/usr/bin/python3 def print_matrix_integer(matrix=[[]]): for row in matrix: count = 0 for column in row: count = count + 1 print("{:d}".format(column), end="") if count < len(matrix[count - 1]): print(" ", end="") print()
[ "2709@holbertonschool.com" ]
2709@holbertonschool.com
b532e44f7a63247edf850a7bb2a6b053d13b435b
43250831968a8f7b470bde0976a3b60d49c43c1b
/shop/orders/migrations/0002_auto_20210406_1820.py
71ae7f84c45a98eecb3e6840651938ff92f73530
[]
no_license
Aleks11103/dip_project
a259dcc32734ed29fc44f9378f4ec00c18137c0f
bc32c13c627fac10cabf5c74443595d8157c8db1
refs/heads/develop
2023-04-07T02:33:21.009114
2021-04-12T16:31:24
2021-04-12T16:31:24
344,891,434
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
# Generated by Django 3.1.7 on 2021-04-06 15:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0001_initial'), ] operations = [ migrations.AlterField( model_name='order', name='address', fi...
[ "lesha_smancer@mail.ru" ]
lesha_smancer@mail.ru
6db2f98207503a545443ed30c2b57a6f53f3d7ec
9f2bbe7d643021386c7ae745caf29ca9a7fd7dba
/python/testcase/thread2/baidumap.py
6d5f6f888d403eb456ddc35bec2b59e41fe75c85
[]
no_license
bin38121cn/Selenium
19e01774120a9700a9a326b53faa65dc389af9d4
10ec6c30d8220ea02221ae66bc8606c468be637f
refs/heads/master
2020-04-07T04:53:58.300813
2016-12-30T08:07:14
2016-12-30T08:07:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
# -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import NoAlertPresentException...
[ "noreply@github.com" ]
noreply@github.com
794a1511483b2ba0353ad9e36d7f92869953b6ae
5049e42ffef7752e88695a5106c45a5ec6912a42
/scrapers/MLB_scraper.py
8637ea5b4638c3f347d7e910c4ba38fa6c9a9506
[ "BSD-2-Clause" ]
permissive
jgengelhardt/wpct-vs-chance
bb5c216274056f4b36b4e4b3431b8b0ab119125a
d2b360449d6d7885cf62b22d29ccfe62b011b0e7
refs/heads/main
2023-02-04T22:39:43.172255
2020-12-22T18:19:29
2020-12-22T18:19:29
315,844,522
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
import csv import os from bs4 import BeautifulSoup, Comment from math import sqrt from statistics import variance from urllib.error import HTTPError from urllib.request import Request, urlopen def get_season_var_MLB(year): try: # check if the URL exists url = f'https://www.baseball-reference.com/league...
[ "44878057+jgengelhardt@users.noreply.github.com" ]
44878057+jgengelhardt@users.noreply.github.com
78db078e135187f33c291f93895ddeaf85c37a10
1287f5d4ab1cbebaf5ad990ae1a058e3044998d5
/twitter.py
c161b873a2979b98106a979916426339dad975df
[]
no_license
hrishikeshmane/Twitter_Sentiment_Analysis
96be3f9173c3713fcf8b9681837a1ba900a6e3e6
e0828ced173ac1c391244b8279e785d1e5f3d950
refs/heads/master
2021-06-16T11:33:43.285145
2019-11-29T08:27:11
2019-11-29T08:27:11
183,933,909
3
2
null
2021-03-20T00:56:26
2019-04-28T16:42:20
HTML
UTF-8
Python
false
false
2,744
py
# author = rhnvrm <hello@rohanverma.net> import os import re import tweepy from tweepy import OAuthHandler from textblob import TextBlob class TwitterClient(object): ''' Generic Twitter Class for the App ''' def __init__(self, query, retweets_only=False, with_sentiment=False): # keys and toke...
[ "hrishikeshmane87933@gmail.com" ]
hrishikeshmane87933@gmail.com
1b521983045b44485e0f452dcc1e99cb5581eb79
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/security_group_info.py
76e7cc60717b39fc78380ac4d1d3214564057876
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,998
py
# coding: utf-8 import re import six class SecurityGroupInfo: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
ae43579bd8e2dc7c56f1fbe83e8861d58b5f40f0
e27b357a7a2514e2bf8bd44b56a447b422dfe629
/app/utils.py
929357f7d64744a976cc93b0f509924d5dd7088d
[]
no_license
shailiran/TinyURL
742e38e940391f94392a9cfd1ec295a80e450819
477402232073faf61075dda30f0dd0f52bbc32d5
refs/heads/master
2023-07-05T01:51:30.155140
2021-08-09T09:41:28
2021-08-09T09:41:28
390,010,659
0
0
null
2021-08-05T17:38:53
2021-07-27T14:18:15
Python
UTF-8
Python
false
false
355
py
from math import floor def base62_encoder(id): characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" base = len(characters) r = id % base res = characters[r] q = floor(id / base) while q: r = q % base q = floor(q / base) res = characters[int(r)] ...
[ "shailiran@gmail.com" ]
shailiran@gmail.com