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
86afa0e5e88a8970004df2cfeba52d5e44b8418e
d933cfa05e370c6f02bece2dd30b89745bf0fbed
/frozen_happines/urls.py
ac88c05a79715ebfae73f58f7efb14c0c34862db
[]
no_license
pynef/frozen_happiness
828c98e428eccaf3fc74ccb57b4c7c62808e98b5
84829f44e5c133a4d7143285a5d32ddbc38d56bc
refs/heads/master
2020-12-24T21:36:52.701366
2016-05-16T12:07:43
2016-05-16T12:07:43
58,926,394
1
0
null
null
null
null
UTF-8
Python
false
false
277
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.conf import settings from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^',include('frozen_happines.apps.web.urls')), ]
[ "nefinef@gmail.com" ]
nefinef@gmail.com
755a9ec32509ad9fbac62ad3e09dbc46fc24ba6c
10af1202867e07ec4769670efbd3f32e6a297511
/captioning/neuraltalk2-master/coco-caption/pycocoevalcap/tokenizer/ptbtokenizer.py
990d342cddddc5c9a71fd2ed17c79d5e6509e241
[ "BSD-2-Clause-Views" ]
permissive
amritasaha1812/bridge_seq_learning
75ab692fec6be3a650c6cd73f6a94d8c5181f49e
d8d383e35942584a13f18caf28a5f68a1eeb9642
refs/heads/master
2021-01-11T06:23:59.009266
2016-10-07T12:17:17
2016-10-07T12:17:17
69,964,832
0
0
null
null
null
null
UTF-8
Python
false
false
2,866
py
#!/usr/bin/env python # # File Name : ptbtokenizer.py # # Description : Do the PTB Tokenization and remove punctuations. # # Creation Date : 29-12-2014 # Last Modified : Thu Mar 19 09:53:35 2015 # Authors : Hao Fang <hfang@uw.edu> and Tsung-Yi Lin <tl483@cornell.edu> import os import sys import subprocess import temp...
[ "amrita.saha87@gmail.com" ]
amrita.saha87@gmail.com
4fb1758cee4308cc464a65c8c616aa9e471991af
2c542b4fb1bb3b313911524ac3ea03528150ca1e
/saisie.py
579e348749fbca3bdf6b9c818a40415f777ef8d5
[]
no_license
tnemelck/crypto
d5c2a4926da0d9fb2b5944fc199000e7de406a9f
5a2f797d2b137c14b792730bce9c9980cf7ceda1
refs/heads/master
2021-05-13T13:27:45.118081
2018-01-08T17:40:03
2018-01-08T17:40:03
116,707,863
0
0
null
null
null
null
UTF-8
Python
false
false
6,990
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jan 3 17:17:51 2018 @author: tnemelk """ import generateurDeNombrePremier as gnp import os def saisie_int(inf, sup): s = input("Choisissez bien. \n") try: r = int(s) assert (r >= inf) and (r <= sup) except (ValueError, A...
[ "tnemelkb@gmail.com" ]
tnemelkb@gmail.com
3502fcc6b3e92025f05f524cabb5ac4cba7720bc
7d6f4321de756fc2b4daec3b05551c5b1e311ec4
/Web_Spider/spiders/Scanner.py
3d89674ba2f08682724fa05006441cf5834420cc
[]
no_license
serdaraltin/Scrapy-Web-Spider
c84be73a80e1fba0c656ca865dd13ba2384c56d4
0af0331c5982094dde2ea56a66e3bba6aefed95b
refs/heads/master
2021-02-08T04:00:37.800524
2020-03-01T07:40:44
2020-03-01T07:40:44
244,106,633
1
0
null
null
null
null
UTF-8
Python
false
false
746
py
import scrapy class QuotesSpider(scrapy.Spider): name = "lamerhaber" start_urls = [ 'https://lamerhaber.com/', 'https://lamerhaber.com/category/hack-haber/', 'https://lamerhaber.com/category/ozel-haberler/', 'https://lamerhaber.com/category/hack-gruplari/', 'https://lamerhaber.com/category/...
[ "noreply@github.com" ]
serdaraltin.noreply@github.com
25e73d0f46e4a57b1c947f110db94b2853e7fc10
79aa4b99a48bb16a907916ad63c902443420541a
/0056.py
680d3134344eab5388e4c0b5d48fd531d58e8b3f
[]
no_license
mach8686devops/leetcode-100
62dec66c719d7cfa120ca9505701df49d8d5b982
f90526c9b073165b86b933cdf7d1dc496e68f2c6
refs/heads/main
2023-04-11T06:28:15.059587
2021-04-13T12:11:54
2021-04-13T12:11:54
329,346,572
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
# 合并空间 # 排序的做法 class Solution: def merge(self, intervals): if len(intervals) < 2: return intervals result = [] intervals.sort(key=lambda x: x[0]) for interval in intervals: if len(result) == 0 or interval[0] > result[-1][-1]: result.append(in...
[ "zhangjohn202@gmail.com" ]
zhangjohn202@gmail.com
0b1e26ac589857328e504db76cfa69134a2cb7b6
181cf26a68637707a1b2aae0be250b606a92ef07
/venv/Scripts/pip-script.py
6f5372c0fac373569bf15cf02192a2bcb7d2bc6e
[]
no_license
sunnypig2/SocialNetworkCode
bbc1b7fe731d19be88ef53008950785632b4b679
5c7b7d1b3caf5c1ae97c4309e30b701bbe224ea3
refs/heads/master
2020-05-16T16:56:59.397774
2019-06-03T09:37:40
2019-06-03T09:37:40
183,174,120
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!C:\Users\lenovo\Desktop\socialNetworkCode\venv\Scripts\python3.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip' __requires__ = 'pip==9.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv...
[ "email@example.com" ]
email@example.com
f3260fb9bc4046cb9560d2d3f9ace38b07a48d39
ec47104831406b4fbba42ae09de842c41cdd7bad
/final_project.py
8bd75285e033b50d7b972082aac52ac6775229aa
[]
no_license
kairzhan8/ml-project
c162cf25dcccfbcd3264576d76f88420ccf8aba8
ef27c2228d218b69173b0637f8f734db0c20b6d5
refs/heads/master
2021-08-30T22:45:02.723707
2017-12-19T17:40:19
2017-12-19T17:40:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,496
py
from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split from sklearn.model_selection import cross_val_score, ShuffleSplit import matplotlib.pyplot as plt import seaborn as sns from sklearn import metrics from show_confusion_matrix import show_confusion_matrix import numpy...
[ "noreply@github.com" ]
kairzhan8.noreply@github.com
85c31fdea8edee5bcfbb326f2c65874eca7eb679
910786e6fcc1021a523b71071225256f07444c8a
/env/lib/python3.8/tokenize.py
009b6cf237995eb246a8696f83f80473e7b1cef2
[]
no_license
Hugo-cruz/birdie-ps-webcrawler
c71c115b440252b53a9280b5b97c0205acb20bcc
a64399f0aa00e9391ab386dac44fb69beef235c3
refs/heads/main
2023-01-02T23:59:00.370237
2020-10-21T01:31:30
2020-10-21T01:31:30
304,638,747
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
/home/olodum/anaconda3/lib/python3.8/tokenize.py
[ "cruz@raccoon.ag" ]
cruz@raccoon.ag
4425d2dc2406f7ea3aab5326e6b47153da11058a
2356ff9946a3122838b8c505c52eb922a614154e
/expenses_tracker/expenses_tracker/profiles/views.py
1d7e97ee4f9886cf0212fdb3d2a6ed97c7dcab05
[ "MIT" ]
permissive
BoyanPeychinov/python_web_basics
8587a10c9e36fd0ebedd7bfefc636a73949410d4
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
refs/heads/main
2023-07-03T05:09:21.037914
2021-08-06T12:44:01
2021-08-06T12:44:01
374,112,261
1
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
from django.shortcuts import render, redirect from expenses_tracker.core.profile_utills import get_profile from expenses_tracker.expenses.models import Expense from expenses_tracker.profiles.forms import CreateProfileForm, EditProfileForm def profile_details(request): profile = get_profile() context = { ...
[ "BoyanPeychinov@gmail.com" ]
BoyanPeychinov@gmail.com
85bb2ea2d537ece6edc6ae1a6168ca2cbddc5380
d05b3cd50e1b0732eb487fba451bab6aaf713a02
/beginner/69c.py
95dc80b1a7f5b1bb9811e7feb7afaba2e19855a9
[]
no_license
shiba24/atcoder-solutions
bf85319bee7ad742c58bc22e5ea3a1d5b7a2a733
1b30c017d6c8ac874a724039909cfec61f0bdc3b
refs/heads/master
2020-12-30T15:30:46.732647
2018-04-08T03:49:24
2018-04-08T03:49:24
91,154,147
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
import numpy as np N = int(raw_input()) l = np.array(map(int, raw_input().split())) mod_4 = len(np.where((l % 4 == 0))[0]) mod_2 = len(np.where(l % 4 == 2)[0]) if N <= 2 and mod_4 == 0 and mod_2 <= 1: print 'No' elif N <= mod_4 * 2 + 1: print 'Yes' elif N <= mod_4 * 2 + mod_2 and mod_2 >= 2: print 'Yes' ...
[ "shiba.shintaro@gmail.com" ]
shiba.shintaro@gmail.com
28b2e3ab1b084406129198cd83bff23f6079048a
9d3b3be57f15d5b3b45f81c5788922d80ed02477
/mr_base.py
3e4b4ef464342a64e1c01bdd480c9db710a67d20
[]
no_license
wang-ye/python_mr
b465578537f0f9ef11a37226d52270eaeea6d7d9
9673cb462d1cd8aa174aa1e9fd478a08eacce746
refs/heads/master
2018-12-27T23:20:00.154300
2013-08-21T15:07:01
2013-08-21T15:07:01
12,272,821
1
1
null
null
null
null
UTF-8
Python
false
false
5,419
py
#!/usr/bin/python '''author: Ye Wang The base file for MR.''' import config import os import os.path import sys class MapReduceBase(object): '''The Basic mapreduce framework. User supplies map_func and reduce_func. ''' def __init__(self, num_processes, num_input_files, input_file_dir, output_file_dir): self....
[ "wangye880191@gmail.com" ]
wangye880191@gmail.com
58871d6a211a6c7a2638e33078d578c29251118d
e389a8b4d4d7a21b3049f191e9600666e69d51ec
/_Archived/DT_GUI/NeuroportDBS-master/NeuroportDBS-master/PlotDBSTrack/brpylib.py
2400bbd5c6df419a2eddbe0c60da5df1daaa669a
[]
no_license
Doug1983/MRI_GUI
01f8a593ab135b79e39f0d9ac142a7137c7b5fa8
35d9409ecf6409caa33c0ff4a6a6a37eb1ad7f73
refs/heads/master
2020-04-07T09:56:48.612452
2019-02-27T18:47:16
2019-02-27T18:47:16
158,270,267
0
0
null
null
null
null
UTF-8
Python
false
false
69,243
py
# -*- coding: utf-8 -*- """ Collection of classes used for reading headers and data from Blackrock files current version: 1.3.2 --- 08/12/2016 @author: Mitch Frankel - Blackrock Microsystems Version History: v1.0.0 - 07/05/2016 - initial release - requires brMiscFxns v1.0.0 v1.1.0 - 07/08/2016 - inclusion of NsxFile....
[ "guillaume.doucet2@mail.mcgill.ca" ]
guillaume.doucet2@mail.mcgill.ca
7f63c9542d741b1f878c60b4bf2129b95b9de527
2084aacbcc299561ff7b76fff02a0710786c6052
/B4162/Kozlov/Homework 2018-12-01.py
097c778eefb31dff47e3e0c1d267478d8b0df8cc
[]
no_license
kuperchal/python-course-2018
8d5c2c5005b859a31417e22066077bc3aadb0809
eec0af6892190abe2244424fc05fa679154938bc
refs/heads/master
2020-03-29T10:20:02.175730
2019-01-27T11:53:07
2019-01-27T11:53:07
149,799,897
0
3
null
2019-01-27T11:53:25
2018-09-21T18:03:54
Python
UTF-8
Python
false
false
1,955
py
import numpy as np import matplotlib as mpl from matplotlib import pyplot as plt x = np.arange(-10, 10, 0.1) #Задаём диапазон значений для ох для разных графиков x1 = np.arange(-1.56,1.57,0.05) x2 = np.arange(0,3.15, 0.1) fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(10,7), dpi=85, facecolor='white', ...
[ "noreply@github.com" ]
kuperchal.noreply@github.com
56b60992b52817b496456c67420676c2dbb9af53
980852f3fe17b3f40ec70d45e1d4f64bb0270230
/gginfo/spiders/daqing.py
d327d0b1270864c5de7cdea55ff29c35b56150c6
[]
no_license
logonmy/Data-Crawler
332bb1aa6f1abecd8249c48585f22a6cc44a4f17
6d862f0617356accde5260766ff0251336157529
refs/heads/master
2022-09-01T00:33:29.500311
2020-05-27T16:03:54
2020-05-27T16:03:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,934
py
# -*- coding: utf-8 -*- import scrapy import bs4 import re from gginfo import items class DaqingSpider(scrapy.Spider): name = 'daqing' # allowed_domains = ['http://www.dqsbwg.com/view.asp?id='] # start_urls = ['http://http://www.dqsbwg.com/view.asp?id=/'] def start_requests(self): start_page ...
[ "1012668100@qq.comgit commit -m Collectionexitgit config --global user.name x-coder-Lgit config --global user.email 1012668100@qq.com" ]
1012668100@qq.comgit commit -m Collectionexitgit config --global user.name x-coder-Lgit config --global user.email 1012668100@qq.com
bd006143c55c546974bbb237ad7d8a80d54be85f
850370ad34b40bc3332e8954a79798568331a4a4
/Number Guess.py
182cf760d7a1f763174ba413eb962d26ea6041de
[]
no_license
romil-rc/Game-of-Guess
d91e323002a77ca342f5a755d06662679c4d2a3d
d3faa7166e918ad21a801f8e8b641dcbcccb8767
refs/heads/master
2023-03-05T10:51:08.910733
2021-02-16T13:12:00
2021-02-16T13:12:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
# Set a key number. # Set number of guesses. # Take a number input from user. # Print, is the number smaller or greater than the key. # Print, number of guesses left. # If number of guesses is over print "game over". key = 63 chance = 0 guess = 10 print("Game of Guess") while(chance < guess): num = int(input("Ente...
[ "itssaahil208@gmail.com" ]
itssaahil208@gmail.com
22d62da0dd7376888e5e477d9481a578a6638fb8
eaeb5e71b0b5b03e4cb8d60ca206160a7bdc3488
/Inventory/store_app/urls.py
6a5d5548d308aa7dff06c734890b2b3e8195a728
[]
no_license
aonchicken/Dev
a15d79c8399fb63eb376b57c4bb2f49a73a250d6
6fe3510d1fe1b877376afa21d082f1230c025b35
refs/heads/master
2022-10-22T02:03:06.641148
2018-07-19T10:02:49
2018-07-19T10:02:49
141,110,191
0
1
null
2022-10-10T16:12:27
2018-07-16T08:32:44
Python
UTF-8
Python
false
false
3,246
py
#!python # log/urls.py from django.conf.urls import url from .import views #2pdf #from store_app.views import GeneratePdf #from django_pdfkit import PDFView #log in from django.contrib.auth.decorators import login_required #from easy_pdf.views import PDFTemplateView #from .views import PDF_View from django.template...
[ "aonchicken@gmail.com" ]
aonchicken@gmail.com
da88233a14db93263b4ee9e6ad8f520f0e6afa9c
b52e27c68a2a2b03c39c0698fde0acbd988f52a5
/test4.py
9e70c57fa08eabd6f98a82ee81bf496991f2f25c
[]
no_license
nmcnwr/python_test
fae0b3e6ee981abce5a43ae26fe590f4083aa6e9
52ac4522c7d6d022254aeb348fdf82c4ea302dc9
refs/heads/master
2021-07-23T17:09:17.116262
2020-05-28T08:17:04
2020-05-28T08:17:04
178,802,667
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
filename ="FILE1.txt" print("Filename: ",filename) file = open(filename, "r") for line in file: line = line.replace("\n", "") print(line) file.close()
[ "pavel.b.kuznetsov@gmail.com" ]
pavel.b.kuznetsov@gmail.com
0609c654e9cd175e77f91139ee849e861fc9e1e0
2f831410a345fe44b385eb4453a3777150db3eea
/retriever/dense_retriever.py
84bf96056114fb8411e26e5e5b79b5173ef087e4
[ "MIT", "CC-BY-4.0" ]
permissive
michaelmccracken90/Quin
89a2b5e7796440cfe72fb0af01b4963674b469c2
461af08123757840fcc6cbbd08e7c2862a28ebbd
refs/heads/master
2023-02-17T12:45:55.230655
2021-01-10T11:43:40
2021-01-10T11:43:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,614
py
import logging import pickle import torch from .vector_index import VectorIndex class DenseRetriever: def __init__(self, model, batch_size=16): self.model = model self.vector_index = VectorIndex(768) self.batch_size = batch_size self.use_gpu = torch.cuda.is_available() def cr...
[ "algoprog@users.noreply.github.com" ]
algoprog@users.noreply.github.com
3bce62061ed8d284331b3570797e87de8c2eefc3
503e97b5c0bb77e923fe135ff14a8b5ca5e6ba07
/mxshop/mxshop/urls.py
ff2b7608058cef6c3f850164773fe310905e259e
[]
no_license
pshyms/dianshang-1
72345de3ce769efeb2b17c975b586590524dcdbe
788b7950f52cb7979a8b73e5d9193243f2e69cad
refs/heads/master
2021-05-21T10:11:38.248170
2020-04-03T06:25:13
2020-04-03T06:25:13
252,649,823
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
"""mxshop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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') Class-based ...
[ "1816635208@qq.com" ]
1816635208@qq.com
04d569ac26879a082158c2acffd50077389bf00c
ae323b6e8407576249c4f1300c2261f63ee57610
/bootstrap.py
57adc1466694c5178b4fdc1782e6600609583191
[ "MIT" ]
permissive
silx-kit/dynamix
b3e22ccaebeef35c97604a2188e8790e55241ce2
445a85b331278097a0c997dfecd73c39dc8f1afd
refs/heads/master
2023-08-08T03:23:01.963283
2021-09-13T15:14:37
2021-09-13T15:14:37
191,756,780
3
7
MIT
2023-06-29T13:53:58
2019-06-13T12:15:12
Python
UTF-8
Python
false
false
9,058
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bootstrap helps you to test scripts without installing them by patching your PYTHONPATH on the fly example: ./bootstrap.py ipython """ __authors__ = ["Frédéric-Emmanuel Picca", "Jérôme Kieffer"] __contact__ = "jerome.kieffer@esrf.eu" __license__ = "MIT" __date__ = "05...
[ "jerome.kieffer@esrf.fr" ]
jerome.kieffer@esrf.fr
01acfe330f914e60e16edd354e09a95e5f455717
c887464a73c249f3a6bc4e344c001724a46d2bd2
/web_app/views/misc.py
cd26cb069637e94c4b08058e2edc18da001b3a39
[ "Beerware" ]
permissive
erikdeluca/beer-analytics
004017229fa32574bbf58d703023c455d9a57e69
630cfb1dcd409a1b449a54a99aa9b3f73da0f756
refs/heads/main
2023-04-26T20:18:22.794454
2021-03-06T18:45:17
2021-03-06T18:45:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,834
py
from django.http import HttpResponse, HttpRequest from django.shortcuts import render from django.urls import reverse from recipe_db.models import Recipe, Style, Hop, Fermentable, Yeast from web_app.charts.fermentable import FermentableChartFactory from web_app.charts.hop import HopChartFactory from web_app.charts.sty...
[ "privat@stylemotion.de" ]
privat@stylemotion.de
3c2c8682ab6ffc62a2a322782250bbe1881dc6b3
5fc9cad39efe2eb4020d604540d3adc38a89114a
/Restanta/NLP/Lab4/venv/Scripts/easy_install-3.6-script.py
b3ec84eafe341f92b593dab5a84d306ca45ff789
[]
no_license
daneel95/Master_Homework
bf16db69366fe09140c5cdf71c5e98c875611d79
7987341c78a6572342b6823ff610d9222d8c3b62
refs/heads/master
2022-12-27T04:38:18.358573
2020-10-08T12:23:20
2020-10-08T12:23:20
156,966,214
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
#!C:\Users\Daniel\Desktop\Master_Homework\Restanta\NLP\Lab4\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re....
[ "holteiu.daniel@gmail.com" ]
holteiu.daniel@gmail.com
858ac55278eb1e921054886e184330cd3adb1dcc
a454671bb5df86f99496a20ad0dd0648617cd2cb
/orders/migrations/0001_initial.py
cb04c20c429c6aacaed6b91bf73ea6e9e01433e4
[]
no_license
ppcs50/project3
7a86d6d34682fc29a887b94dae975feb0f1a91ae
27909fa6b48325c026e7913b604e1333469bdc5e
refs/heads/master
2020-03-25T03:40:38.637545
2018-08-02T23:20:04
2018-08-02T23:20:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,436
py
# Generated by Django 2.0.7 on 2018-07-29 21:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Cart', fields=[ ...
[ "eg60125@meiji.ac.jp" ]
eg60125@meiji.ac.jp
37e328f83c46f0f167e1ed7dec7853f184aed7db
376120dc62be6868331e77e6fcd9b3f44c0f247b
/main_app/migrations/0001_initial.py
fe895754b3dc3ae26ab7bfea39c75bcd366ade53
[]
no_license
kevinka58/cardcollector
279a57ad9f7731aef9b28545fa9629dba9da62c7
d9395dc53c17ac88abf183ec3371a58e6dd40502
refs/heads/main
2023-07-05T21:33:12.695174
2021-08-18T23:31:11
2021-08-18T23:31:11
395,808,358
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
# Generated by Django 3.2.6 on 2021-08-16 18:06 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.BigAutoField(...
[ "kevinayala6969@gmail.com" ]
kevinayala6969@gmail.com
1f250ec8288fb8e6ae009a8ed472731dd54824ca
466e5e56d2f350bcea90683af67e160138af836c
/Onsite/Week-4/Monday/Pancake V.2.py
5366d063ab28ea1aa0f95f78a73ddb562d2f9689
[]
no_license
max180643/Pre-Programming-61
bafbb7ed3069cda5c2e64cf1de590dfb4a542273
e68d4a69ffeedd4269fffc64b9b81e845a10da4d
refs/heads/master
2021-06-17T14:10:44.889814
2019-08-01T09:35:42
2019-08-01T09:35:42
135,553,863
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
"""Pancake V.2""" def main(): """Main Function""" promo_buy = int(input()) # ซื้อถึงแล้วได้แถม promo_give = int(input()) # จำนวนแถม want = int(input()) # ต้องการ price = int(input()) # ราคาต่อชิ้น pack = promo_buy + promo_give #จำนวนชิ้นในแพ็ค buypack = want // pack #จำนวนแพ็คที่ต้องซื้อ ...
[ "noreply@github.com" ]
max180643.noreply@github.com
621bedf5d75156e92bf5e1ec10226d82735cf03c
801268d9ff5b2e74986646c5469017ba98e2368f
/examples/information_extraction/DuIE/data_loader.py
71554cfc47c9cbef94a5766477c0049f511bcd52
[ "Apache-2.0" ]
permissive
Amy-l-iu/PaddleNLP
1e3f699b7b2ecc1d7600afad19c721652a5eb18f
cbcb958eb561550f38224b5b51cf027dd891f4cc
refs/heads/develop
2023-05-13T21:34:18.886738
2021-06-10T08:49:53
2021-06-10T08:49:53
375,710,949
1
0
Apache-2.0
2021-06-10T13:40:02
2021-06-10T13:40:02
null
UTF-8
Python
false
false
13,221
py
# Copyright (c) 2021 Baidu.com, Inc. 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 # # Unless required by applicable l...
[ "noreply@github.com" ]
Amy-l-iu.noreply@github.com
d9196cc3a173854616ff24c78864a891732ea5fb
dc3755709936a2ad4ac7e8f4dba87ee545ae1e12
/detector.py
b20d1ea1a4efaae513717be042c0963a24d7cb3d
[]
no_license
umeshkh-Official/Python-Project-Facerecognition-system-
f8174a49c2832889bc84236e7f3f9b40da534d19
4b46cf1970fac1d42c18ccfef969cf065b205c2e
refs/heads/master
2022-03-26T03:16:10.234549
2019-12-14T06:28:17
2019-12-14T06:28:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,258
py
import cv2 from tkinter import messagebox import mysql.connector import numpy as np from datetime import datetime now=datetime.now() formatted_date= now.strftime('%Y-%m-%d %H:%M:%S') def getProfile(id): conn = mysql.connector.connect(host="127.0.0.1", user="root", password="tiger",database="employee") ...
[ "noreply@github.com" ]
umeshkh-Official.noreply@github.com
a0e49acc8c730929c378924c601b41a8d7cf4485
a0602756643d613fb35bccc6f364a729beffd1d6
/pipeline/edges/EdgeDetectionTemplateMatching.py
dd97b93886cd1245218eb34aa5783236736f50dc
[ "MIT" ]
permissive
sunsided/CarND-Advanced-Lane-Lines
02ec7f73ae9813050b098a91c2509eb0ee26d48c
9692cf242f6d531fe37dca9ec462c632f1bcf832
refs/heads/master
2020-03-23T00:35:03.777640
2018-09-03T07:57:12
2018-09-03T07:57:12
140,871,683
1
0
null
2018-07-13T16:50:21
2018-07-13T16:50:21
null
UTF-8
Python
false
false
2,342
py
import glob import os from concurrent.futures import ThreadPoolExecutor import cv2 import numpy as np from typing import Optional from pipeline.edges.EdgeDetectionBase import EdgeDetectionBase class EdgeDetectionTemplateMatching(EdgeDetectionBase): """ Obtains edges for for further processing. """ ...
[ "widemeadows@gmail.com" ]
widemeadows@gmail.com
682abb270f0c3d71384d9f1422f488a142fd684f
3e5d9f0cd81a6d60002819a1fda56007f407a614
/ProjetosimulacaoDiscreta/listaFinal/questao01a.py
439b6f4aebe27e00a712cbe4e1763c0478f25dfd
[]
no_license
anderson89marques/simulacaoDiscreta
b305258766bbbe5f66e65a333a84528a7e2e9a64
849b042a89271447ec38dd881effa9b2e27e0083
refs/heads/master
2021-01-15T18:03:49.983979
2014-12-02T02:28:39
2014-12-02T02:28:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
__author__ = 'andersonmarques' from random import randint experimentos = 10000 cont = 0 for x in range(experimentos): dado1 = randint(1, 6) dado2 = randint(1, 6) dado3 = randint(1, 6) if 9 <= dado1 + dado2 + dado3 <= 15: cont += 1 print("Probabilidade: %.4f" % (cont/experimentos))
[ "Andersonoanjo18@gmail.com" ]
Andersonoanjo18@gmail.com
6209d6c126116ec3ac5e03684a649997b76d1a92
81a29997e5ad3ff6194b961aaa60ad262b590458
/tests/test_url_generating.py
0ba2c0fcbf217bab1202f39b12bbcdff9585ee95
[ "MIT" ]
permissive
maxzhenzhera/python-freeDictionaryAPI
71143679aeba49b770d51a2f802c69bf22763773
556415527835ef6e559756f6ed9fa5da387ceb3c
refs/heads/main
2023-05-06T08:41:56.001247
2021-05-24T02:38:52
2021-05-24T02:38:52
365,132,988
4
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
""" Contains tests for API url generation. .. class:: TestApiUrlGeneration """ import typing import pytest from freedictionaryapi.languages import LanguageCodes from freedictionaryapi.urls import ApiUrl class TestApiUrlGeneration: """ Contains tests for * API url generator (``ApiUrl``). Check...
[ "megashurik@urk.net" ]
megashurik@urk.net
ddd3e8c757d55624ec472097294af1b6b986fb9f
9c91119fe567df359d83c1453148967ce9830304
/deprecated/scripts/vaders-mc2xml/vaders-mc2xml.py
c9465eb14b16fb53bbc46dbe69f7552f08cb1ea9
[ "MIT" ]
permissive
oottppxx/enigma2
f2425646b756272f6515bafcfac583b0f7613dcd
2ceb21a787f6a656985e2aa1cd5ea537e08bff30
refs/heads/master
2022-11-08T09:45:21.037355
2022-11-01T00:16:35
2022-11-01T00:16:35
130,276,423
24
33
MIT
2022-04-13T18:42:33
2018-04-19T21:52:38
Python
UTF-8
Python
false
false
2,762
py
#!/usr/bin/python import json import re import sys import time import urllib2 import zlib VAPI_MC_SCHED='http://vapi.vaders.tv/mc/schedule?username=%(USER)s&password=%(PWD)s' TIME_FMT='%Y-%m-%d %H:%M:%S' def getJsonURL(url): request = urllib2.Request(url) request.add_header('User-Agent', 'MC2XML script @oottppxx...
[ "@oottppxx" ]
@oottppxx
2d64c3d2dcb4340084edf32824852cf49b1bb2d1
11c30d4e8418c0ecae1131af2868d9ddaa58e7e6
/Exercício 114.py
e7732565a9a8fa21ba6e85e255cc02fcafb4f885
[]
no_license
FabianoJanisch/CursoEmVideo-Python
6a99453cdf891086450fe05416318347ef8f4da2
b3e238256af11cb48013bd57eb1815698f41142c
refs/heads/main
2023-02-19T07:31:45.048125
2021-01-18T19:34:12
2021-01-18T19:34:12
330,767,953
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
import urllib import urllib.request try: online = urllib.request.urlopen('http://www.pudim.com.br') except urllib.error.URLError: ('O site não está online') else: print ('O site está online')
[ "fabianoaugustojanisch@hotmail.com" ]
fabianoaugustojanisch@hotmail.com
752ccdcaaecb2bf67fcdec7cb60e92757e101071
bc20be4024b159c47c12780f8840c47ed991b449
/setup.py
4742049596cbe85ecd278a05db7cdd66eb49acbd
[]
no_license
jhrdinka/FCChhAnalyses
704c827798571a24d65c1ef3a164f39b652ee189
b47f355910633267d926e571e3cac4a3345238c3
refs/heads/master
2020-05-06T13:43:42.557528
2019-03-26T15:39:04
2019-03-26T15:39:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
#!/usr/bin/env python2 from setuptools import setup, find_packages import glob setup(name='FCChhAnalyses', version='0.1.0', description='Produce flat ROOT trees using FCCSW EDM in heppy', author='Clement Helsens', author_email='clement.helsens@cern.ch', url='https://github.com/HEP-FCC/FC...
[ "javier.cervantes.villanueva@cern.ch" ]
javier.cervantes.villanueva@cern.ch
3bf025ca6b569587910ee9310692ef856bc9759e
c6431cdf572dd10f0f4d45839e6081124b246f90
/code/lc179.py
3aaa4820cd2d067a5c93a9bd7ec62299708b2b99
[]
no_license
bendanwwww/myleetcode
1ec0285ea19a213bc629e0e12fb8748146e26d3d
427846d2ad1578135ef92fd6549235f104f68998
refs/heads/master
2021-09-27T19:36:40.111456
2021-09-24T03:11:32
2021-09-24T03:11:32
232,493,899
2
0
null
null
null
null
UTF-8
Python
false
false
952
py
""" 给定一组非负整数,重新排列它们的顺序使之组成一个最大的整数。 示例 1: 输入: [10,2] 输出: 210 示例 2: 输入: [3,30,34,5,9] 输出: 9534330 说明: 输出结果可能非常大,所以你需要返回一个字符串而不是整数。 """ class Solution(object): def largestNumber(self, nums): res = '' for i in range(len(nums)): for x in range(i + 1, len(nums)): if self.c...
[ "461806307@qq.com" ]
461806307@qq.com
5dc9e6d9ca09f4d108701e06c92e18d3768a1d0a
251e7002f2ecc218447c0602cb5e02920adfb548
/python/sitemonitor/lib/splunked.py
102b5f1d83f0715dd0d6f60eb4a54be6725a378c
[]
no_license
useEvil/site-monitor
d0018bfccdaa38acb42d61384410114f94d613b2
392412797f61ebddd3855030777e1f935e780147
refs/heads/master
2020-05-29T17:20:32.759687
2012-10-29T17:32:47
2012-10-29T17:32:47
4,162,859
1
1
null
null
null
null
UTF-8
Python
false
false
3,404
py
"""The Splunk Controller API Provides the Splink class for subclassing. """ import time import splunk from splunk import auth, search from pylons import config HOST = config.get('splunk.host') splunk.mergeHostPath(HOST, True) class Splunk: # first get the session key # (the method will automatically cache d...
[ "useEvil@gmail.com" ]
useEvil@gmail.com
e7db557128138182a4636941585056d2d674a53e
b55aa5b0642a19a62acb996d3c5a1e87cd1b9d63
/model/generate_ai_customer_service.py
35e1c7cdeb41e2692779fc86b99971952dbd3542
[]
no_license
Innerface/qarobot
b01913c034770dca9d75d81a853b30e09edd8a4c
ed51d09621d567e16d3d15c79696028d3059d7ee
refs/heads/master
2023-02-24T03:32:58.905942
2018-05-11T07:52:08
2018-05-11T07:52:08
133,007,690
1
0
null
2023-02-15T17:49:39
2018-05-11T07:49:51
Python
UTF-8
Python
false
false
4,427
py
# Author: YuYuE (1019303381@qq.com) 2018.03.16 import re from itertools import groupby from extend.data_optimization import keywords_sorted as doks from model import generate_word_vector as vectormodel from model import nlp_pinyin_hanzi_transfer as phtransfer def remove_special_tags(str_): """ 特殊字符处理,可选择性配置 :para...
[ "yuy@workway.com.cn" ]
yuy@workway.com.cn
6daf8b4f3c24f4b8b3d3dc70540f2ea7d90a499d
773e55fe106852600adff8ff886c4890414e4540
/sample.py
e01cd32223797f9c1e57ccfb44d68bb075f9e380
[]
no_license
gloveboxes/Python-DMX-Client
a7702d416b42b9cfa2cef031dbfa79c29f1a1c5b
503626826d4e34b9b0cb08ae3b57b8965c646cd1
refs/heads/master
2020-05-31T21:16:25.863307
2019-06-05T12:15:24
2019-06-05T12:15:24
190,494,080
1
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
import dmxclient import time import random dmx = dmxclient.DmxClient(dmxServerAddress='dmxserver.local', fixtureIds=[1, 2, 3]) def cycleColours(): for cycles in range(10): for colour in range(100, 255): dmx.colours(red=colour) dmx.publish([1, 3]) dmx.colour...
[ "dglover@microsoft.com" ]
dglover@microsoft.com
7c3cd07ebf63dfc48ef91adefa1a240b5a5f9ea2
06cff881a57a161763cd9ca532118dd545d5d7e7
/src/profiling_command.py
6b5b79bdd119944db8ece8ca89c7c7084b7b3974
[ "MIT" ]
permissive
chilin0525/modelstat
d72d78c66659397dc90a3a13034cbb1d3899ba5f
a6db805b48b2a2a064eb41cb1a50ddda0f5ed79d
refs/heads/main
2023-08-01T14:09:43.136206
2021-09-14T08:08:34
2021-09-14T08:08:34
402,698,086
0
1
null
null
null
null
UTF-8
Python
false
false
306
py
def generate_command(model_type, gpu_idx, command): dlprof = "dlprof --reports all" + \ " --force=true" + \ " --mode=" + model_type + \ " --formats=json" + \ " --output_path=log " + command return dlprof
[ "sky707070.cv07@nctu.edu.tw" ]
sky707070.cv07@nctu.edu.tw
1a633e6391da83a80c5b9071eb7f440b90a5e856
0523c56528465acfb4a4107d3960f85dc23e395e
/mod_cycle/r_diagram.py
c81636d245eb0c497fd3f5243957b49caaecf0f6
[]
no_license
Nathanzhn/GA4
46e0eccc1050740c45da70c603e67c60f0b3be85
6843fd139ff2355b98eac0ac9cf09aee6fede7cd
refs/heads/master
2020-05-19T13:43:57.655145
2019-06-07T09:30:24
2019-06-07T09:30:24
185,046,708
0
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
import CoolProp.CoolProp as CP import numpy as NP def r_diagram(): #ofile = open ('sat.txt','w') #fluid = input ('Enter fluid name: ') fluid = 'R134a' pc = CP.PropsSI(fluid, 'pcrit') pt = CP.PropsSI(fluid, 'ptriple') # Create lists of properties on saturation line with GP variation in p ...
[ "hz325@cam.ac.uk" ]
hz325@cam.ac.uk
09242a62a09ba5ba8535db7d793e49b3b2eb14a9
d2a030f7a050a641fddd657e895651ee0310ae41
/givers/migrations/0010_auto_20210909_1153.py
d07c21117cc4a4aa04ffcaf388c9d91eb2b085fe
[]
no_license
Shawen17/Giveawaynow
f052a1055a96f2d0a392aaf748adcafbec2a5135
92f3bc0b359a712776661348e239b492894b81a1
refs/heads/master
2023-09-05T00:28:59.237486
2021-10-24T21:12:37
2021-10-24T21:12:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
# Generated by Django 3.1.7 on 2021-09-09 10:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('givers', '0009_give_gift_recipient'), ] operations = [ migrations.RenameField( model_name='give', old_name='phone_number', ...
[ "shawen022@yahoo.com" ]
shawen022@yahoo.com
834ec6a6d8f6eb46399cf5c9441e992f04caf2a3
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_138/1236.py
914087508eb86863c5f11d9d67e00191230d743f
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
import copy T = int(raw_input()) for t in range(0,T): N = int(raw_input()) nb = [float(x) for x in raw_input().split()] kb = [float(x) for x in raw_input().split()] nb.sort() kb.sort() dkb = copy.deepcopy(kb) #print nb #print kb # deceitful war dw_p = 0 ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
2f4d9a096f13e77f9c74695299c6b3647424473a
56b5e0ca548c805973494ed0e2fd06ac2b583827
/beast/tools/star_type_probability.py
c88ea0d2ad93b9269f7dde4b761b9a5276ac886b
[ "BSD-3-Clause" ]
permissive
dthilker/beast
1fa4124a5bfdafc0c2225a9b118058adb8324d9f
892940813f4b22d545b501cc596c72967d9a45bc
refs/heads/master
2022-07-01T06:53:14.129362
2020-05-04T19:34:37
2020-05-04T19:34:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,674
py
import numpy as np from collections import defaultdict from astropy.table import Table from astropy.io import fits def star_type_probability( pdf1d_files, pdf2d_files, output_filebase=None, ext_O_star_params=None, dusty_agb_params=None, ): """ Calculate the probabilities of a set of star ...
[ "lhagen@stsci.edu" ]
lhagen@stsci.edu
a694c0f308be0902485e4db6142cc6874788303a
d9eafe91bd585f46cc896c5c6704863b00e1a6d7
/experiments/2015_02_20_mnist/1/experiment.py
3b7a53cda6faa1157774e0ce1d15e3fc1f2e5965
[]
no_license
davidbonet/maxwells-daemon
b2145412c65a8645261d60509f350736683515a0
c947afac67b992676a44c9615edba46fa40531c0
refs/heads/master
2023-06-15T14:32:14.778557
2021-07-13T15:20:58
2021-07-13T15:20:58
379,681,838
0
0
null
2021-06-23T17:31:15
2021-06-23T17:31:14
null
UTF-8
Python
false
false
5,765
py
"""First real experiment - how well do we do on MNIST?""" import numpy as np from numpy.linalg import norm import pickle from collections import defaultdict from funkyyak import grad from maxwell_d.util import RandomState from maxwell_d.optimizers import entropic_descent2 from maxwell_d.nn_utils import make_nn_funs ...
[ "dduvenaud@seas.harvard.edu" ]
dduvenaud@seas.harvard.edu
50e83cdef85a998a42841277e6aeb8552d6c9e4b
c7979f4f6435fe8d0d07fff7a430da55e3592aed
/ABC035/C.py
3896d58a52d5cbdff09b32a7a1e9ace983db5d2b
[]
no_license
banboooo044/AtCoder
cee87d40bb98abafde19017f4f4e2f984544b9f8
7541d521cf0da848ecb5eb10ffea7d75a44cbbb6
refs/heads/master
2020-04-14T11:35:24.977457
2019-09-17T03:20:27
2019-09-17T03:20:27
163,818,272
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
N,Q = map(int,input().split(" ")) s = 0 for i in range(Q): l,r = map(int,input().split(" ")) bit = (1 << (N-l+1)) - (1 << (N-r)) s ^= bit ans = "" for i in range(N-1,-1,-1): if (s >> i) & 1: ans += '1' else: ans += '0' print(ans)
[ "touhoucrisis7@gmail.com" ]
touhoucrisis7@gmail.com
af581fa5b0a483c2f126c59fbcaebea7e27c9491
102ad7bc61d20d9ea92ed3c4b872c5748adb81c5
/AromaAnnounce/models.py
ab639f7d3d4ca889ac5140b76e4c989631054207
[]
no_license
neofyte/aroma
ae3e53943418d202b32f7af814bb10bc6163848c
0cea963fc58848fbf36251770959d4177faf11a7
refs/heads/master
2021-01-22T10:17:50.180961
2013-09-10T14:52:27
2013-09-10T14:52:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,255
py
from django.db import models from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic from django.dispatch import Signal, receiver from AromaFriend.models import Relationship from AromaFriend.signals import relationship_created class A...
[ "nikegu@gmail.com" ]
nikegu@gmail.com
bd449ec4e27a83d7f61f5a3a0271fb13f1f0645f
dd9b64651b7761401e4f8bce1f56a231892a4946
/inplace_swap.py
e0b0527aa58e84815702c781f2e55a9d1983aa4c
[]
no_license
richnakasato/ctci-py
793bf33c3e2c5d5f9f597e6574aa32185145a801
81e79ef75d8f8f8770b2e13bcd05f2ea3011895b
refs/heads/master
2020-03-27T08:14:15.918723
2019-01-10T02:28:16
2019-01-10T02:28:16
146,235,144
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
''' Perform swap inplace using only XOR Takeaways: - This works because XOR of a^b^a == b (think about finding missing number from [1, 2, ..., n+1] in arr of size n) - So... a^b=c, c^a==b, c^b==a (because c==a^b, c^ a or b cancels out a or b) ''' import random def inplace_swap(a, b): print(a, b) ...
[ "richnakasato@hotmail.com" ]
richnakasato@hotmail.com
71ae0fad47ff3c1ef04664f1dff4da8471053cdd
36f35ecfc54ca57ed9a5444242286c3b5905b9de
/Python/TriangleQuest.py
4cb887412f3fe43efe308f080335bdd7a83d4fb8
[ "MIT" ]
permissive
anujitm2007/Hackerrank-Codes
7e447e8ba0e76c3ef0fb9da0fc73b3feefc11d3e
3afe9d1ec1c3563916a32815e5133f4cbb5234dd
refs/heads/master
2023-01-04T06:18:10.605095
2020-10-28T14:37:01
2020-10-28T14:37:01
302,840,781
0
0
MIT
2020-10-28T14:37:03
2020-10-10T07:19:44
null
UTF-8
Python
false
false
631
py
''' You are given a positive integer . Print a numerical triangle of height like the one below: 1 22 333 4444 55555 ...... Can you do it using only arithmetic operations, a single for loop and print statement? Use no more than two lines. The first line (the for statement) is already written for you. You have to comp...
[ "noreply@github.com" ]
anujitm2007.noreply@github.com
495f547d5bada6337f2891daadb8866a8e134d79
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/KQ5H9aFBZDKEJuP6C_21.py
fd6ff8f60e7ca560d02d17a9ef74b3d81df4ccad
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
import re ​ pattern = "(?<!good )cookie"
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
e525b56f6061196df2ad2a70f0aee00b6682f319
e4288c575d10ad31bb2b7b8217bec2f7fda5a0fd
/simbert/models/bert/BertForRanking.py
571f6642c093d94f97c9dd203f8d977ef42f9241
[]
no_license
serafima-ai/SimBert
3f2beb92ced1f6a71933d2435b3ecc7b07668624
fada20ceee9ca9559a5f8cee59d631038d197157
refs/heads/master
2021-03-24T21:44:49.741371
2020-05-07T21:57:29
2020-05-07T21:57:29
247,567,129
6
0
null
null
null
null
UTF-8
Python
false
false
6,944
py
import pytorch_lightning as pl from dotmap import DotMap from torch import nn from torch.utils.data import DataLoader from simbert.models.lightning import SimbertLightningModule from simbert.models.model import Model from transformers import * import torch from simbert.datasets.processor import DataProcessor from simb...
[ "nik@serafima.ai" ]
nik@serafima.ai
281977c6331e0b79883b8bad6d90ca9f317bcded
b91a14f051de65ab315d43f4f2c3baadb72de0bb
/venv/Desktop/python2021Projects/bin/flask
f75d81f5f46ba528503205bd4f916080d99c6b5b
[]
no_license
tnak1126/day70-blog
807e298c41c934091e49ec8d840355c48d284b5b
0f5fc3bb12a8bb96039ad119226fd806503e886d
refs/heads/master
2023-07-04T00:00:29.916463
2021-08-16T19:33:54
2021-08-16T19:33:54
396,068,884
0
0
null
null
null
null
UTF-8
Python
false
false
297
#!/Volumes/10T_082020/Python100_May2021_projects/day64_movielist/venv/Desktop/python2021Projects/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "terrynakamura@gmail.com" ]
terrynakamura@gmail.com
05a3ebcb2a64f2590133f058fc593b972c008a1e
1e035ce830ea1b1671efab5c890b899e58f1cace
/addbook.py
d6205cbdc02f9a71d8b5efd2f2b9b7e4b92d76b5
[]
no_license
Shantanu03-ux/Library-Management-System
39bb74d8b8371f9c4b957291af1847678852917f
21058c53f25a7e895d64aa12ccaa7ad79f666565
refs/heads/main
2023-08-30T04:14:32.983785
2021-10-07T10:23:03
2021-10-07T10:23:03
414,553,493
0
0
null
null
null
null
UTF-8
Python
false
false
2,912
py
from tkinter import * from tkinter import messagebox import sqlite3 con = sqlite3.connect('library.db') cur = con.cursor() class AddBook(Toplevel): def __init__(self): Toplevel.__init__(self) self.geometry("1300x1300") self.title("Add Book") self.resizable(False,False) ...
[ "noreply@github.com" ]
Shantanu03-ux.noreply@github.com
4bab841b23056527667cd539e0600260a63727ec
a71c0634fda6161571fcff26855eb324983939ee
/account/migrations/0014_auto_20191024_1636.py
89d2c44019e502a7594b6ff379a07dbea2942700
[]
no_license
Jincykk1996/mydjang
19b7acab68f50aee83d6cf604739d087f766d92c
877bc84a66a835bc15a49f8dd0fa51f4b52bdb64
refs/heads/master
2020-08-30T19:41:31.662945
2019-10-30T08:18:23
2019-10-30T08:18:23
218,471,570
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
# Generated by Django 2.2.4 on 2019-10-24 11:06 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0013_auto_20191024_1632'), ] operations = [ migrations.AlterField( model_name='cart', nam...
[ "jincykalarikunumal@gmail.com" ]
jincykalarikunumal@gmail.com
1338b206aae85f69c1fb457f6bfa740573d2ff60
a353a4b535edce2f12b125205d7ffc1964d26cda
/app.py
a901f23e78a634331e655a2c9ecb6e881e3bfe81
[]
no_license
asu1610/lineBot2
bee992114dfc5f113e8f25657d700bd39442eb37
cfdb8898b049370ef05fd284c85a0a8f047cb711
refs/heads/master
2020-06-18T01:08:52.620122
2019-10-10T04:45:12
2019-10-10T04:45:12
196,117,839
0
0
null
2019-07-10T02:41:26
2019-07-10T02:41:26
null
UTF-8
Python
false
false
1,537
py
from flask import Flask, jsonify, request import os import json import requests app = Flask(__name__) @app.route('/') def index(): a=os.environ['Authorization'] return "นางสาวคณิศร วงษ์สุวรรณ์ เลขที่ 7 ชั้น ม.4/1" @app.route("/webhook", methods=['POST']) def webhook(): if request.method == 'POST': ...
[ "noreply@github.com" ]
asu1610.noreply@github.com
792683deda5f938d090c31bf671fec709f1b6178
04ca6a06be3861bfb8d4bc0e839e8b78e7d76eb7
/bot/handlers/__init__.py
7103b81d1ce26b26c87090619ddd37ea645a256b
[ "MIT" ]
permissive
rashidovich2/Russian-Qiwi-Bot
70cb9f0f4796abafd96ca7a56666b011aad5539d
d5b0f23516343205ca7bad15b2d2fae7b675f584
refs/heads/main
2023-08-25T02:58:17.796592
2021-10-20T19:12:27
2021-10-20T19:12:27
576,804,780
0
0
MIT
2022-12-11T03:01:25
2022-12-11T03:01:24
null
UTF-8
Python
false
false
21
py
from . import users
[ "noreply@github.com" ]
rashidovich2.noreply@github.com
8983bc7b01719b00420a52a9a90148f67588ba26
a17eeaedb059b11dbaaf7dd2dedf31bc5251008b
/Python/function/sorted.py
379eb7a72f83a7314fd57a0842144a24f2229f48
[ "MIT" ]
permissive
KrisCheng/HackerPractice
b94c575bf136c06b4ea563147ac94cae74947d22
778948db4836e85c9af90267dc9b03d50f29d8e9
refs/heads/master
2021-01-19T20:24:35.466720
2017-10-09T05:47:11
2017-10-09T05:47:11
88,504,300
1
0
null
null
null
null
UTF-8
Python
false
false
261
py
# 排序算法 a = sorted([1,3,23,-5,-344,23]) print(a) L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)] def by_name(t): return t[0] L2 = sorted(L, key=by_name) print(L2) def by_score(t): return t[1] L3 = sorted(L, key=by_score) print(L3)
[ "743628145@qq.com" ]
743628145@qq.com
431300dc169839d8a8781e7751dddbc9007a6f2d
be1c3e70f12124f6ce402aed54cdbd9f41e052ca
/Day 2/Q3.py
655174032af027b752bf2a0a71632f35a9d6b66d
[]
no_license
vapoorva/LetsUpgradeDataScience
de0858854950673021ffeeca0f70df0bdc430110
b2962f69c68f9dd00a46531f62302c125870739a
refs/heads/master
2023-01-13T14:28:55.998656
2020-11-20T07:21:11
2020-11-20T07:21:11
312,668,976
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
n= int(input()) d={} for i in range(1,n+1): d[i] = i*i print(d)
[ "apoorva200299@gmail.com" ]
apoorva200299@gmail.com
c697c259d8e52b844afbe7f1737ba3b929bdf1ab
a7943c40d294e6088408967303b4af4867fc8bae
/analyse/migrations/0001_initial.py
8fb4e0cb931113f000243727df25beb9b7481723
[]
no_license
mudassir2700/Sentometer-Aspect-based-Sentiment-Analysis-
ce2a0d22eca9aefda862b2be352d8ade3aa359fc
ade4d70b33a342683eb26a14504b9e4fa385cb86
refs/heads/master
2021-02-23T21:37:29.627121
2020-03-06T12:52:03
2020-03-06T12:52:03
245,411,981
0
0
null
2020-03-06T12:22:25
2020-03-06T12:18:02
HTML
UTF-8
Python
false
false
1,553
py
# Generated by Django 2.1.7 on 2019-04-13 20:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Features', fields=[ ('id', models.AutoField...
[ "mudassirali2700@gmail.com" ]
mudassirali2700@gmail.com
9759212dbdc123e208cb9b58fcb04caf51495317
295f068e817882e14a8fdcd765a6582c1b35e506
/tests/mock_google/case.py
f15a4119efdb3051132c823feaf77e7659711467
[ "Apache-2.0" ]
permissive
shafaypro/mrjob
57a40dd072f60c4a5cda6e14d72ac74ec0025a83
2a7d1c3c7917efed0118ebffd52865c4a50298f4
refs/heads/master
2020-05-15T13:56:27.752415
2019-04-16T01:05:55
2019-04-16T01:05:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,243
py
# Copyright 2018 Google 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 law or agreed to in writing, soft...
[ "dave@davemarin.com" ]
dave@davemarin.com
f8adb41d307eafa204c095eb025eed155b7ac3e0
0bf6356518fc0b7ae503a5be8b8852ada6395353
/video_8/p1.py
9a71f0aad0a2652e4a0545e309c813abaeae6fb3
[]
no_license
thatfellarobin/w2021-ta-manim
13fdc511aa86582f499a6da343f61540e7f8bc12
93f57222b5381886d60daf8c3227ef47f611ad5d
refs/heads/main
2023-04-07T18:06:43.026901
2021-04-12T15:16:00
2021-04-12T15:16:00
331,493,770
0
0
null
null
null
null
UTF-8
Python
false
false
17,566
py
from manim import * import numpy as np GOLD_DARK = '#5c4326' EVERGREEN = '#077319' GREEN_DARK = '#2b4022' BLUE_DARK = '#26545e' BROWN = '#8f4a04' MED_DARK_GREY = '#666666' BLUE_E_DARK = '#0c343d' DIM_A=1.25 class T8P1(Scene): def construct(self): attribution = Tex('Robin Liu, 2021', color=MED_DARK_GREY)...
[ "Robin.Liu.831@gmail.com" ]
Robin.Liu.831@gmail.com
86f0df1cdc3565a1f7596669eaecdfb925a1eb5e
179b85c1170939c31f26b4fab3459c6d0c636cef
/ftp_send.py
670d42f4ab369885a6b33a68c0f5b92d81a77424
[]
no_license
rezabehjani/python_Example
872c239352523e01bd2ae3e8e9551aaedba74ec3
665a925242ec4226c04c823d907fe351f2a796e4
refs/heads/master
2021-01-03T22:04:59.054087
2020-04-21T07:44:06
2020-04-21T07:44:06
240,253,012
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
from ftplib import FTP ftp = FTP('136.243.87.101') ftp.login('reza', '19972910') #show list file in ftp ftp.dir() #cd to file in ftp ftp.cwd("/files") ftp.dir() fp = open("D:\\music Reza\\video\\Baran - Tazahor [1080].mp4", 'rb') # upload file ftp.storbinary("STOR Tazahor.mp4", fp, 1024) fp.close() print("ok send")...
[ "rezabehjani13@gmail.com" ]
rezabehjani13@gmail.com
88a16982ff77ebb5084720c3eb36c664ee5dbf4e
7e16c5cb801dae422fc408c422f97c2a32c5e33f
/internal2cartesian.py
f4dd29a6a0996d17bd91dfb2195ec6e567ee9be3
[]
no_license
Jussmith01/Internal-to-Cartesian
18e230275fa731e62a5f0612c5a6f4994456ea7f
1a7f6b72d1e9343e4359705248145331ee44af3e
refs/heads/master
2021-01-10T15:56:24.048690
2015-10-07T19:48:40
2015-10-07T19:48:40
43,840,840
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
import re from vectors import * from functions import readZmat, getdist, createCSVstring import sys # Inputs a = 0.5 b = 4.0 inc = 0.01 type = 0# 0 = bonds; 1 = angles; 2 = dihedrals tidx = 0 icfile = 'inputexample.txt' fnout = 'distances.dat' # -------------------CODE---------------------- a1idx = [];...
[ "jussmith48@gmail.com" ]
jussmith48@gmail.com
30ae1b5c5ef14f56cba710bc9a40d1d1cd0d84dc
bc00bdc08d76c8be38c51b1f1caeced2a4668592
/abjad_demo/env/lib/python3.6/site-packages/uqbar/_version.py
a135f3b2259762ca39cbc026a3990ae925bbc05a
[]
no_license
gsy/gmajor
769afd6e87f6712e4059f3f779f41932cbca962d
7f5f20a19494256615fbaaa840b2a0bbbf6e311f
refs/heads/master
2023-02-08T07:00:44.479895
2019-05-20T13:58:03
2019-05-20T13:58:03
161,866,236
0
0
null
2023-02-02T06:26:34
2018-12-15T03:32:48
Scheme
UTF-8
Python
false
false
87
py
__version_info__ = (0, 2, 16) __version__ = ".".join(str(x) for x in __version_info__)
[ "chenxuanguang@chuangxin.com" ]
chenxuanguang@chuangxin.com
17d2c400a107de5d20d5eafa4ed9af255198d7f4
ba1f77bea85efa1bf9de89c17b4940728ae3db52
/plot_loss.py
9b1a8bb536c4e77b74ef780191004a639fa59319
[]
no_license
andrewbo29/feedforward_network
3b93a43f7efeb21b52fddc56149f7e774d495d7f
267cd97f35149855818240e1e3f3164fa71eca1a
refs/heads/master
2021-01-18T21:11:10.840803
2016-06-03T11:06:23
2016-06-03T11:06:23
52,079,943
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
import numpy as np import seaborn as sns import matplotlib.pyplot as plt def plot_loss(log_fname): loss = [] with open(log_fname) as f: for line in f: words = line.strip() loss.append(float(words)) sns.set(style='whitegrid') fig = plt.figure() ax = fig.add_subplot(1, 1, 1) ax.set_ylim([-0.5, 1]) ax....
[ "andrewbo29@yandex.ru" ]
andrewbo29@yandex.ru
0279409e67cf584ba24a2a24308967d9c568e754
20d461f0414f16c4c2b906e8871a96d85d46d734
/src/item.py
3ead9670c78135b4736e35ab3841527089bc39f0
[]
no_license
beccacauthorn/Intro-Python-II
e3ec8ef4bb8e8d6f6f07ab02ef07f15d84257583
82b3605bc0283b1d7d01bc9803797cf1fbac3c49
refs/heads/master
2022-11-17T05:52:50.194511
2020-07-17T03:48:19
2020-07-17T03:48:19
279,744,375
0
0
null
2020-07-15T02:42:26
2020-07-15T02:42:25
null
UTF-8
Python
false
false
546
py
#Create a file called `item.py` and add an `Item` class in there. # The item should have `name` and `description` attributes. # Hint: the name should be one word for ease in parsing later. class Item: def __init__(self, name, item_description): self.name = name self.item_description = item_descript...
[ "beccacauthorn@gmail.com" ]
beccacauthorn@gmail.com
8ec20d3340c9e4975c2289bcb569bbb74f0b4721
e20bbe07bba9f9c86dfe40e394079b7c527b0ba2
/4_Iterators and Generators/4.4_Implementing the Iterator Protocol.py
2ae96c3785cc6ff4802c70f032d558fe4bf0441e
[]
no_license
gavinloverqq/Python_Cookbook_Notes
f819b0a30efb399277bd81c3bc85e6419b7e8845
422c3740940554eaaca3fd8f873bd3b36f91dca3
refs/heads/master
2020-03-19T13:26:08.002941
2018-06-17T13:38:39
2018-06-17T13:38:39
136,579,303
0
0
null
null
null
null
UTF-8
Python
false
false
2,108
py
class Node: def __init__(self, value): self._value = value self._children = [] def __repr__(self): return 'Node({!r})'.format(self._value) def add_child(self, node): self._children.append(node) def __iter__(self): return iter(self._children) def depth_firs...
[ "779483309@qq.com" ]
779483309@qq.com
07d9d74ffddb92feb9918379f74c35e641baa1f9
977abdcd089b5f19fefdb1ab8d2c284dde9ea7c9
/hikyuu/indicator/indicator_doc.py
221dbb2e52f27891e5627f4852905dafe2c5e4ba
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fei090620/hikyuu
51f8ece1ab4ab366cb09e7c8c78d34155e167d26
161b9317f20e411468f2c1e4b0985d7a45fc141b
refs/heads/master
2020-05-18T21:25:40.171535
2019-05-02T12:02:41
2019-05-02T12:02:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,026
py
#!/usr/bin/python # -*- coding: utf8 -*- # cp936 # # The MIT License (MIT) # # Copyright (c) 2017 fasiondog # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including wi...
[ "fasiondog@163.com" ]
fasiondog@163.com
640b13b1987767b0a3d0b86bd3125925a4a237cb
49982c52a56e86bc24605bf6bdb3e239036b2e32
/api_server.py
654c51eb6a237dd312a07462eaed96fb6e321057
[ "Apache-2.0" ]
permissive
forkpool/GeeProxy
d75bdaa88018a7d49c5245268c749e88de5cc3bf
6f2f57ef1e1e8ea9a295cf987577dab5f1cadfe5
refs/heads/master
2023-05-12T17:05:36.562844
2020-08-17T06:36:09
2020-08-17T06:36:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
''' @Author: qinzhonghe96@163.com @Date: 2020-03-10 01:23:39 @LastEditors: qinzhonghe96@163.com @LastEditTime: 2020-03-10 01:23:58 @Description: ''' from GeeProxy.api.api import run_app run_app()
[ "qinzhonghe96@163.com" ]
qinzhonghe96@163.com
a6fa541aae3131eab1654b88551c903a078be740
6a1117f9a5671780c78c423c7bd54c3f7a469c81
/learn_temp/basic_app/templatetags/my_extras.py
a6cbad23344f161ea907215c79f57ca33c55011f
[]
no_license
mahmoudgobba/django-deployment-example
533e14d00d7d50653195869dc961a550ab948ea0
9a83736cfe609fe59f3ed0403d31e88358475d32
refs/heads/master
2022-11-14T03:14:43.242344
2020-07-03T00:57:00
2020-07-03T00:57:00
276,688,639
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
from django import template register = template.Library() @register.filter(name='cut') def Cut(value,arg): """ This cuts out all value of "arg" from the string """ return value.replace(arg,'') # register.filtter('cut',Cut)
[ "mahmoud.aid55@yahoo.com" ]
mahmoud.aid55@yahoo.com
eb9d465c0fdcbf5ae8e749b5c00705a8bacaabd5
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/EightTeV/VH_TTH/TTH_HToGG_M_125_TuneZ2star_8TeV_pythia6_cff.py
0e74691e62089d8fbb3ef01c45eec1f2489f987a
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
3,033
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.PythiaUEZ2starSettings_cfi import * from GeneratorInterface.ExternalDecays.TauolaSettings_cff import * generator = cms.EDFilter("Pythia6GeneratorFilter", pythiaPylistVerbosity = cms.untracked.int32(1), # put here the efficiency of your filte...
[ "sha1-c8b28d70dd1f4235246c4a027e80dcdcf397db6f@cern.ch" ]
sha1-c8b28d70dd1f4235246c4a027e80dcdcf397db6f@cern.ch
4575d91d96b7789dc79ceaf32dede3a23ddf0dd9
b17f799e05ced53a70bc088fe49cd0ab072f88db
/str2.py
d8b34c431a27f1d2994db3d82ed9ec006f20065d
[]
no_license
sharabao13/mypython_t
99cfb11bf6932d1e3a64b3214a72bcc01520a4a3
5783dfa274902254928ad5d53db813e4b20a8d65
refs/heads/master
2020-12-03T03:15:57.440612
2020-01-08T14:14:15
2020-01-08T14:14:15
231,194,242
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
# 字符串分隔 # 方法 partition 返回元祖 (heap,sep,tail) # # startwith # endwith
[ "sharahong13@gmail.com" ]
sharahong13@gmail.com
8894d154163de31d129e692a1299c8f470930ed8
71966cb76360f818c09dd4464c7d999ee2cd5ff8
/import.py
36a28219089b223e1a8425bd24ec058e34e44ebf
[ "MIT" ]
permissive
gatesata/my-beancount-scripts
2f27b5998f35ee5c6305ccc0c13bfd2b63e8c5d0
c13a95985e847814f13c2d18ea56422ec956d482
refs/heads/master
2020-07-26T06:03:13.062182
2019-09-14T11:05:30
2019-09-14T11:05:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,406
py
from datetime import date from beancount.core import data from beancount.parser import parser, printer from beancount import loader from modules.imports.alipay import Alipay from modules.imports.wechat import WeChat from modules.imports.citic_credit import CITICCredit import re import argparse parser = argparse.Argume...
[ "git@zsxsoft.com" ]
git@zsxsoft.com
9807e0d279b139e81f7f4a461b64f14634c105c1
a0e603abe4855c7cf8c0247299e57dfe30b0f36e
/src/update_tags.py
1b55d73b72feba925f7600893acadf28b49c7ea6
[ "MIT" ]
permissive
massens/alfred-notion
2e275b475cc08263986104298fe4c5e8100f067d
9582299d7b4022f2d0f8debf72827b840634eefd
refs/heads/master
2020-06-22T16:57:27.143506
2019-06-18T02:31:31
2019-06-18T02:31:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
#!/usr/bin/env -S PATH="${PATH}:/usr/local/bin" python3 import sys import json from notion_api import tagsDatabase from config import tagsFilePath try: database = tagsDatabase() results = database.default_query().execute() tags = [{ "uid": row.id, "title": row.title, "variables":...
[ "kevin.j.jalbert@gmail.com" ]
kevin.j.jalbert@gmail.com
51bde64b6e8c44be8a7bca91c0d160b83b678fef
3d66286c210de64e52b0fa71acc0440bdd59fda7
/app/models/reviews.py
23bf4475ae9f8fdeff5b40d2ffd15e5d863b8e40
[ "MIT" ]
permissive
YomZsamora/Watchlist
678f875d39d5ddac84623327b839ec47500331e5
d808f2b1fc569b7541f240a3b4f96256322ab863
refs/heads/main
2022-08-14T21:09:20.765769
2022-05-09T03:08:26
2022-05-09T03:08:26
485,275,242
2
0
null
null
null
null
UTF-8
Python
false
false
915
py
class Reviews: all_reviews = [] def __init__(self, movie_id, title, imageurl, review): self.movie_id = movie_id self.title = title self.imageurl = imageurl self.review = review def save_review(self): # save_review method that appends the review object to a class ...
[ "samaurah@gmail.com" ]
samaurah@gmail.com
3e3325a7c0a4e4cbc896466a9b9210bee03d20ac
e1021f41e4426ec326665da35ced1579a452d248
/TFVariable.py
650d3df2a0aa38de446132d43e7ccbc0aa3b52b0
[]
no_license
weizhenzhao/Tensorflow
ccf47d68402e2c73df3e0e7c71c6bce0ded92c8e
cdbeb367cccc1db38440fb6abda7671a11734a6f
refs/heads/master
2021-01-20T00:20:43.723276
2017-06-25T02:41:59
2017-06-25T02:41:59
89,114,924
0
0
null
null
null
null
UTF-8
Python
false
false
12,113
py
''' Created on Apr 21, 2017 @author: P0079482 ''' #如何通过tf.variable_scope函数来控制tf.ger_variable函数获取已经创建过的变量 #在名字为foo的命名空间内创建名字为v的变量 import tensorflow as tf with tf.variable_scope("foo"): v = tf.get_variable("v",shape=[1],initializer=tf.constant_initializer(1.0)) #因为在命名空间foo中已经存在名为v的变量,所有下面的代码将会报错: #Variable foo/v alr...
[ "958904120@qq.com" ]
958904120@qq.com
ed5507ca40f694aaeb3f0fd6c7cea9ccbffd46ff
0ef88e57246d46aac70e49905f8394f63b0874c7
/logger.py
1c0ce0ed70e53f95dc2bb7e05acc1cfdfa6d0066
[]
no_license
liko006/Image_Segmentation_practice
06924a60cba11b936582b5188116830d8d6efb8e
f4e4d93d170f3959aa96e2398b0c68f276993eb7
refs/heads/main
2023-04-25T06:23:56.247648
2021-05-14T06:53:36
2021-05-14T06:53:36
359,327,090
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import logging import os import sys __all__ = ['setup_logger'] # reference from: https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/maskrcnn_benchmark/utils/logger.py def setup_logger(name, save_dir, distributed_rank, filename="l...
[ "noreply@github.com" ]
liko006.noreply@github.com
b01109d3234d3e5a2c1000f7c0150a5e91f60ab6
46732d613208ee4096fbbd3fd74f22146471d1ce
/wangyiyun_songs&lyrics/all_singer歌手情绪分析/郝云/jieba分词并统计词频后输出结果到Excel和txt文档.py
f9eb64a2d25577b8f29969ec4dc7b43cf3e4d8fa
[]
no_license
cassieeric/python_crawler
7cb02f612382801ae024e2cee70e0c2bcdba927c
6d2b4db3d34183d729f6fd30555c6d6f04514260
refs/heads/master
2022-11-30T20:30:50.031960
2022-11-27T02:53:22
2022-11-27T02:53:22
118,204,154
322
283
null
2022-12-21T09:33:08
2018-01-20T03:17:14
HTML
UTF-8
Python
false
false
1,588
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import sys import jieba import jieba.analyse import xlwt # 写入Excel表的库 # reload(sys) # sys.setdefaultencoding('utf-8') if __name__ == "__main__": wbk = xlwt.Workbook(encoding='ascii') sheet = wbk.add_sheet("wordCount") # Excel单元格名字 word_lst =...
[ "noreply@github.com" ]
cassieeric.noreply@github.com
8d192b1eceecea7cb7705301da9a7f46f6f2ab93
2aa82f6809da72301bd40ebbfc47a1470d8d340c
/log.py
0514f0627f43aee6ce3581d411d9e165188756ae
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
norangLemon/snuBot
ea5f47bfeab0e7e6ccc524c04efbe38df68207bb
02123052d9e53b6b2a8c2c304f97c670de8f01df
refs/heads/master
2021-01-09T20:52:15.538934
2019-05-22T10:48:25
2019-05-22T10:48:25
60,683,563
2
2
null
2019-05-22T10:48:26
2016-06-08T08:55:11
Python
UTF-8
Python
false
false
1,630
py
import logging import logging.handlers import sys # log file 만들기 # '/'로 시작하는 command와 샤샤의 심심이 기능을 분리해서 로그를 남긴다 # 일반 채팅은 로그를 남기지 않는다 # 최상위 loger에게 stdout으로 출력하도록 한다 root = logging.getLogger() root.setLevel(logging.DEBUG) ch = logging.StreamHandler(sys.stdout) ch.setLevel(logging.DEBUG) formatter = logging.Formatter('...
[ "pinethee@naver.com" ]
pinethee@naver.com
e7be973356287b1f6f9f3adf7daae099cff5e85d
6fc13c46caf0b64f0e4b128378fb205dee87bd43
/gallery/migrations/0003_auto__add_field_galleryimage_description.py
db70b888fdd6a79acca5b359a38d95da13a072c8
[]
no_license
wreckage/sammy-pjax
dc48b01d5cc48544d7a08cbd490ee428e4a84316
3b294fcfcd84892c3308551876bc8e4d156abbf3
refs/heads/master
2021-01-11T23:53:14.133047
2017-01-11T13:14:29
2017-01-11T13:14:29
78,640,519
0
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'GalleryImage.description' db.add_column(u'gallery_gallery...
[ "reubenurbina@gmail.com" ]
reubenurbina@gmail.com
99d58e8cc76b55254b312749479d7bf54baae87e
8c9712b40d184fcb0ed1d2e1bc5369312f4086c4
/trojhackproj/ptfoapp/ptfoapp/settings.py
33dba0ee0a0d647528ab35c50c35625c4c59aa38
[]
no_license
medhivya/2d4e-trial
6f738126d14a0eda8357f9fcba1caf859bd68426
d59c487d6ba534ab45a84f8f69536a6016666904
refs/heads/master
2020-04-26T11:24:47.178911
2019-03-03T11:13:36
2019-03-03T11:13:36
173,515,324
0
0
null
null
null
null
UTF-8
Python
false
false
3,528
py
""" Django settings for ptfoapp project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ ...
[ "noreply@github.com" ]
medhivya.noreply@github.com
b9930750f13f33f681ca4d714cfb85b0de95c5ea
e1585b905cbf76a344bc7b73dd14b445d3c5d70c
/packages/_LibreOffice/_LibreOffice.py
be5c9c6ab08e7d618f606d3a6d5aa5582c43402a
[ "MIT" ]
permissive
camilleC/windows-installer
4584408bc6e3651d6e0907fd98985f17430d5bb7
2410240bed7559afaf458819ee1f9695ad647614
refs/heads/master
2021-01-16T22:46:50.910132
2012-09-04T22:50:06
2012-09-04T22:50:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
''' @author: ''' from ..defaultpackage.package import Package class _LibreOffice(Package): def __init__(self): Package.__init__(self)
[ "nycteaa@students.wwu.edu" ]
nycteaa@students.wwu.edu
0ae63594cd647e083be2093d5d31eba3b47fa930
714268a27bd4cc34ec053cb3d991012151554aad
/CodeChef/May Lunchtime/LOSTWKND.py
13d3ab6d379aba7ff6968174279243e54554f2d9
[]
no_license
yashhR/competitive
2b649011c2cea74eea8d9646bcfafc73743651eb
37f2ec68b33828df4692bc23f28d532cb8d4a358
refs/heads/master
2022-11-10T04:53:47.634062
2020-06-22T16:43:03
2020-06-22T16:43:03
274,190,602
0
0
null
2020-06-22T16:36:02
2020-06-22T16:36:02
null
UTF-8
Python
false
false
449
py
t = int(input()) while t: info = list(map(int, input().split())) p = info[-1] info.pop(-1) work = list(map(lambda x: x*p, info)) for i in range(5): if i == 4: if work[i] > 24: print("Yes") else: print("No") break eli...
[ "17131a05h5@gvpce.ac.in" ]
17131a05h5@gvpce.ac.in
ca055970b0ed963a1c28b40c99b3a2c958095e72
1fc7fc8cc0ad49133ba9a4dae910fd7d6e9b242c
/pyqtgraph/examples/multiprocess.py
2e32b041aa44c70ff2198f1041646ce0ef6291df
[ "MIT" ]
permissive
Yingzhang1122/DiffractionLimitedAnalysis
2a67ac2ac87e9fdaf9262a565cc717899e439561
6ea260b738a624962a329dcb7ae19ee048515edf
refs/heads/main
2023-06-03T16:12:15.684375
2021-05-26T18:47:40
2021-05-26T18:47:40
368,825,659
0
0
MIT
2021-05-19T10:11:17
2021-05-19T10:11:17
null
UTF-8
Python
false
false
1,539
py
# -*- coding: utf-8 -*- import initExample ## Add path to library (just for examples; you do not need this) import numpy as np import pyqtgraph.multiprocess as mp import pyqtgraph as pg import time print("\n=================\nStart Process") proc = mp.Process() import os print("parent:", os.getpid(), "child:", proc...
[ "zengjie.xia7@gmail.com" ]
zengjie.xia7@gmail.com
800ad800104a7a948b97070e18c41fc42e2b2e44
5b3140819d8a1b531746b57403e976c2ced0cf56
/foundation/test.py
6b5e8fb4bce38b122b00a34aa47a108aad2cca43
[]
no_license
celcoco/PythonExercise
53ff756f0f970b58b8aada4dab833f858f2be5ff
5906d7752374757a98a8a7454b11b8a23d7cd239
refs/heads/master
2021-01-19T05:18:36.517714
2016-09-26T02:53:55
2016-09-26T02:53:55
63,924,844
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
def traverse(seq_len): idx = 1 traversed = [] while len(traversed) < seq_len : traversed.append(idx) traversed.append(2*len(traversed) + 1) idx += 2 if idx > seq_len: idx -= seq_len print traversed,len(traversed) sum = 0 for idx in traversed: ...
[ "enle.chen@gmail.com" ]
enle.chen@gmail.com
4a548acbd2e82977a69418ac05f42ad040b90671
c89a53455f295b777bcf1f7b0d373566bbd57356
/Vilgaxeye/mainfindpathfordemopathtwo20201207.py
8afbc5245f338e8eb837f6e7ed7a9607e5350088
[]
no_license
KarnMatas/Vilgalaxy
9fe5133abcf8d60bae852848a578b69b3ca850ff
d7338fd5dfd98a26c0fce4dce331c2d281f53c90
refs/heads/main
2023-02-04T04:24:25.629964
2020-12-23T17:36:29
2020-12-23T17:36:29
313,986,716
0
1
null
2020-12-04T13:54:46
2020-11-18T16:05:48
Python
UTF-8
Python
false
false
13,664
py
import cv2 import math import imutils import numpy as np from mpl_toolkits import mplot3d import matplotlib.pyplot as plt from matplotlib import pyplot as plt # from CardDetect import * # cropsize = 40 # def resize(frame,cropsize): # oldframe = frame[cropsize:-cropsize, cropsize:-cropsize] # return oldframe...
[ "56544166+KarnMatas@users.noreply.github.com" ]
56544166+KarnMatas@users.noreply.github.com
430efca059ba8e99ce07e28c0118ee8db7567ddd
08f4bc2751ec9d9a312e8a11ddf79c86df94a4fa
/AV_control_host/build/catkin_generated/installspace/_setup_util.py
aa91c1058d2eacf79b43d0e77e1e68893df12082
[]
no_license
physicsdolphin/Agile_Vehicle
4b2750d4dcad0a1dcba7db19be8fefaf5ff91459
c409f0e2e30769f19cf47f7163db6b1b8e073d46
refs/heads/main
2023-08-26T12:32:56.441728
2021-10-25T02:34:01
2021-10-25T02:34:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,355
py
#!/home/wbc/anaconda3/bin/python3 # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: ...
[ "glaciercoder@github.com" ]
glaciercoder@github.com
cff59f646f6b18df9aba102a124e6b05941d94bf
cf88dbdda8803f77036fa51d1cc9968006754166
/tests/test_code_style.py
068bbc74436fd0e267247968d9cddb5a4c84cc8f
[ "MIT" ]
permissive
saymedia/python-coal
b11cab7e0de92bd74ca35b25c0d11dff90fb5ae2
5aefaaaf56727a61cee7e37fae1e7f25ef97c952
refs/heads/master
2021-01-20T06:25:46.990699
2013-11-19T00:49:21
2013-11-19T00:49:21
14,349,835
1
0
null
null
null
null
UTF-8
Python
false
false
464
py
import unittest import pep8 import os.path tests_dir = os.path.dirname(__file__) modules_dir = os.path.abspath(os.path.join(tests_dir, "..", "coal")) class TestCodeStyle(unittest.TestCase): def test_pep8_conformance(self): pep8style = pep8.StyleGuide() result = pep8style.check_files([tests_dir,...
[ "matkins@saymedia.com" ]
matkins@saymedia.com
65cdeb847c52630545c176d506c77e08da15e5a7
3469a778edcc959050f54a0c68c27db6efa643e2
/D2/re_ip.py
e78b3e212c52e1454ed1493481cccf791001b6ef
[]
no_license
ciscowh/Python-test
d8e3ddfac1725259f1c39c0ddbc9cca34cc719a1
0260aa2aac6c0a81e697c53b82930339df2ccf8c
refs/heads/master
2022-12-07T00:37:41.153998
2020-08-02T16:17:32
2020-08-02T16:17:32
281,024,128
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
import re str1='Port-channel1.189 192.168.189.254 YES CONFIG up' re_result = re.match('(\w+.\w+\d.\d\d\d)\s*(\d\d\d.\d\d\d.\d\d\d.\d\d\d)\s?\w+\s?\w+\s?(\w+)',str1).groups() port = re_result[0] IP = re_result[1] status = re_result[2] str_po = '接口' str_ip = 'IP地址' str_status = '状态' line1 = f'{str_po:<6}:{port:<10}' li...
[ "95636521@qq.com" ]
95636521@qq.com
abe62a0645c07773cd8b8c0817344736bb804b0a
624d5a364fb1a6f7c0b56e02429ac1280b116c02
/django_crud/urls.py
91724291b37e72b08fb1d45cd35d0a11f223a59e
[]
no_license
yeojinhwang/django_crud
c167dd10ccd0947b030967b6f9540807e82f83ec
7b9fce1503c169f3e9b21b40c550459acdc2ce83
refs/heads/master
2020-04-23T14:45:37.223417
2019-02-19T07:21:14
2019-02-19T07:21:14
171,242,940
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
"""django_crud URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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') Class-b...
[ "hwangyj0202@gmail.com" ]
hwangyj0202@gmail.com
dbe51e99e91db517aeb0e986569300a370b3791b
d599358cc35b883e0ba007f58067b2e9818cd365
/3sum_Closet.py
69a4b51d8cfe22a1df6d6ae3da7c25c80578183f
[]
no_license
San1357/Leetcode-july-challenge-2021
b4a992492a398480ba72719259963d27d30e2f36
0de1916dd84b82b0126a790c936655959fd26ad0
refs/heads/main
2023-06-28T14:12:04.455490
2021-07-31T15:48:31
2021-07-31T15:48:31
389,917,604
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
class Solution(object): def threeSumClosest(self, nums, target): result, min_diff = 0, float("inf") nums.sort() for i in reversed(range(2, len(nums))): if i+1 < len(nums) and nums[i] == nums[i+1]: continue left, right = 0, i-1 while left < ...
[ "noreply@github.com" ]
San1357.noreply@github.com
3a4a81507b810e8c3de2c5d62a86f33c9cc9dba4
371c3eb56a0e0044f53209c457c7d1982511ccec
/server/venv/Scripts/pilprint.py
72ff8f5b6bd60a9b2789dee8906d1fa2e7ff1e78
[]
no_license
oceanixinc/lingohop
1e4e9e2602691e8720d8e45ed0d682a0d9e65666
cb0595675fd31c0589757e5e0551e0ca6e1ac91b
refs/heads/master
2021-03-24T11:50:40.020683
2017-05-03T21:09:05
2017-05-03T21:09:05
66,260,003
0
0
null
null
null
null
UTF-8
Python
false
false
2,628
py
#!d:\work\lingohop\server\venv\scripts\python.exe # # The Python Imaging Library. # $Id$ # # print image files to postscript printer # # History: # 0.1 1996-04-20 fl Created # 0.2 1996-10-04 fl Use draft mode when converting. # 0.3 2003-05-06 fl Fixed a typo or two. # from __future__ import print_function ...
[ "mrinalmech@gmail.com" ]
mrinalmech@gmail.com
cea81827eb196d2bd0479583275edcbe40891b5b
93cc7d1297c202f561cb0faf1dbf852b6b4611fd
/sprites/metalgear.py
dab6de90ff64a9266044416b4f646df9a06d8a6e
[ "CC-BY-4.0" ]
permissive
carloartieri/8bit_raspi_pixel_art_display
60ebbc1b4d5fc0f6eecef3bd0c579bbf7e8a9473
f8afc8a03460d07d1151b4cbd7bb62e35283fe35
refs/heads/master
2020-03-23T02:40:55.605446
2018-09-29T16:10:50
2018-09-29T16:10:50
140,986,084
11
0
null
2018-09-29T16:10:51
2018-07-15T00:03:57
Python
UTF-8
Python
false
false
7,344
py
import sys sys.path.append("../") from settings import (NES_PALETTE_HEX, animation_settings) from core import sprite SolidSnakeWalkRightGun01 = sprite( palette = { "b":NES_PALETTE_HEX[0, 13], "g":NES_PALETTE_HEX[1, 9], "s":NES_PALETTE_HEX[3, 7], }, matrix = [ "x8b3x5", ...
[ "cartieri@guardanthealth.com" ]
cartieri@guardanthealth.com
3ddc451d381de33b7a2ad5da04358f63c4d38f1e
612c128a31cd2b34534142fcb45c4bd83d17ab2c
/src/core_game/coregame_manager.py
696323e8c8f667e78215c4aa0179a1d6f6938970
[ "MIT" ]
permissive
sskkrrttt/valorant-skin-cli
7c14559e69c78eeeaa5af2a88af98cba43c62a39
65c78990bada8ab963757fea2d0f4d55fa2569b3
refs/heads/master
2023-06-15T06:51:39.158404
2021-07-13T23:10:00
2021-07-13T23:10:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
''' async manager calls to coregame to update session session keeps track of inmatch/map/other data about live match ''' import asyncio from .session import Session # important imports or something from ..flair_management.skin_manager.skin_manager import Skin_Manager class Coregame_Manager: def __init__(self,c...
[ "colinjoe9@gmail.com" ]
colinjoe9@gmail.com
d410bec00a2a34da61f0af3a62839e82e95192d3
0abe3c336e8f8a6f807b0c43d4c0f2b1e98640c2
/pelix/remote/discovery/mdns.py
b49121ea060f46d1692945a999006b35aac3e395
[ "Apache-2.0" ]
permissive
tcalmant/ipopo
0c9109b4e3e8fbc373c49d897f87a5e351428c76
1d0add361ca219da8fdf72bb9ba8cb0ade01ad2f
refs/heads/v1
2023-08-29T07:51:28.650303
2022-12-08T15:27:20
2022-12-08T16:01:25
4,015,794
67
34
Apache-2.0
2022-12-08T16:01:26
2012-04-13T12:53:13
Python
UTF-8
Python
false
false
14,493
py
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Pelix remote services: Zeroconf (mDNS) discovery and event notification This module depends on the zeroconf package :author: Thomas Calmant :copyright: Copyright 2020, Thomas Calmant :license: Apache License 2.0 :version: 1.0.1 .. Copyright 2020 Thomas C...
[ "thomas.calmant@gmail.com" ]
thomas.calmant@gmail.com
80a16c5d0c1017c5a638a61803ede4759b34201e
bbbe070b22d97da33bb19abd22c79d4ea1f9e409
/django_app/Tipo_de_Ingrediente/admin.py
1c1a2ef128e2302f976521844f8b4eda05f153b2
[]
no_license
danielyoshizawa/projeto_db_subway
1928f7c999c8087858619a4a8382c55ae1538b80
ead6959297487db29c9dbdbcb1dde5ddd6f84eed
refs/heads/master
2021-01-12T14:17:57.828602
2016-11-28T18:01:52
2016-11-28T18:01:52
68,964,762
0
1
null
2016-11-22T20:06:12
2016-09-22T21:45:30
Ruby
UTF-8
Python
false
false
163
py
from django.contrib import admin from Tipo_de_Ingrediente.models import Tipo_de_Ingrediente # Register your models here. admin.site.register(Tipo_de_Ingrediente)
[ "yoshidanielcwb@gmail.com" ]
yoshidanielcwb@gmail.com
86f86654dcc045f2c536af73fa39685c25c5c29d
0184fa50190412dd2cf5eb1da0305b43259f9a72
/productos/migrations/0001_initial.py
4e8b6d962e4e003163afc495a568939bb5266772
[]
no_license
CARocha/mcampesino
20c88975e992aecdf7371e760d76d5a46883565f
79dae67c2c2cbad5167a624a3f89a8117b5cb8e4
refs/heads/master
2021-01-19T00:41:08.919529
2013-04-05T16:12:36
2013-04-05T16:12:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,691
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ProductosFrescos' db.create_table('productos_productosfrescos', ( ('id', self.gf...
[ "crocha09.09@gmail.com" ]
crocha09.09@gmail.com
eb8e0958019cdf56a28622415948ecb82da8035c
074d417b3e468562bfb8ae6a1ec09a9e86bdc391
/.ipynb_checkpoints/app-checkpoint.py
a60d526c9317b5da096937d874c6d209cc9e148a
[]
no_license
hamzachataoui/NLP-for-arabic_dialect_Detection-TopicDetection-SentimentAnalysis
6e7d2176d6520d4716c666867a30005088af8d06
94d2e156fa563890c1aff9792f23b7ea77e4b7d7
refs/heads/main
2023-08-05T01:55:38.786053
2021-09-25T10:36:48
2021-09-25T10:36:48
308,471,554
6
2
null
null
null
null
UTF-8
Python
false
false
9,820
py
# -*- coding: utf-8 -*- import numpy as np from flask import Flask, request, jsonify, render_template import pickle import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer import nltk import re app = Flask(__name__) lr = pickle.load(open('lr.pkl', 'rb')) mulNb = pickle.load(open('MultinomialNB_...
[ "noreply@github.com" ]
hamzachataoui.noreply@github.com
88003dac9146455ec30d6d23ac9b2b742b15c289
a7b21e187141b19ecd1163ddbc99cb2925abca6e
/ex/pyhxbc/tsUserv.py
327a739f2be0b9fb43377df2b6bc770f92d46ab6
[]
no_license
zhangyue0503/python
b387b955aafeecad254e1bdc0b2115c94ca6667b
4b7014d80b325eed37af9f280f7c92a5edcdbb19
refs/heads/master
2023-04-04T19:45:31.190018
2023-03-20T06:57:36
2023-03-20T06:57:36
70,409,084
0
1
null
null
null
null
UTF-8
Python
false
false
407
py
#!/usr/bin/env python from socket import * from time import ctime HOST = '' PORT = 21568 BUFSIZ = 1024 ADDR = (HOST,PORT) udpSerSock = socket(AF_INET,SOCK_STREAM) udpSerSock.bind(ADDR) while True: print 'waiting for message...' data, addr = udpSerSock.recvfrom(BUFSIZ) udpSerSock.sendto('[%s] %s' % (ctime...
[ "zhangyue0503@hotmail" ]
zhangyue0503@hotmail
92fca1268b7584330755792319953fa74a501063
86dc940f511c5550447acb0a44b2fd845ad64db5
/dymos/transcriptions/solve_ivp/components/solve_ivp_control_group.py
01a47867dad5a126c387673fbc10327c6f975ba6
[ "Apache-2.0" ]
permissive
thearn/dymos
5900c9e456d4bed32082aa787baff63ab9caf8b0
1f36a4472fdeb93d337904955c012f254a5db06c
refs/heads/master
2020-04-06T15:23:05.374083
2019-11-26T14:51:01
2019-11-26T14:51:01
157,576,764
0
0
null
2018-11-14T16:20:44
2018-11-14T16:20:43
null
UTF-8
Python
false
false
9,922
py
from __future__ import print_function, division from six import string_types, iteritems import numpy as np from scipy.linalg import block_diag import openmdao.api as om from ...grid_data import GridData from dymos.utils.misc import get_rate_units from ....utils.lagrange import lagrange_matrices class SolveIVPCont...
[ "noreply@github.com" ]
thearn.noreply@github.com
dda4965db6bc90ff683653d69741ba78636b1639
ded519cf89b578109b2874b425ac99bac0470e13
/tests/test_malicious_uploads.py
b7e5c32a18d643c2719337e64dc92dd5221f0fbe
[]
no_license
Tubbz-alt/arxiv-filemanager
6fa21225a0c75f86c008fe57405d0a04568a9916
59c72d037518f343753145148461fbcb4aeb34bc
refs/heads/master
2022-04-12T04:20:03.821659
2019-06-05T14:08:47
2019-06-05T14:08:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
"""Tests specifically focused on security vulnerabilities.""" import os from unittest import TestCase, mock from datetime import datetime import tempfile from werkzeug.datastructures import FileStorage from werkzeug.utils import secure_filename import shutil from filemanager.process import upload TEST_FILES_DIRECTO...
[ "brp53@cornell.edu" ]
brp53@cornell.edu
fc71f5ef9510879b616faee6fc4371a43f8b7e01
7c292ca8a627b96eb74f9b9dfbb47dc2bbaeef24
/Parciales/TallerGrupal.py
3e5ae974c029adf760e2f5ef86d98f4c1b46aa93
[]
no_license
DuvanDu/ProgramacionI
b2469a0fba12f8ace520b265cc738da4339beafd
71869d74698157ddb048076936d0e48fb75789bc
refs/heads/main
2023-05-26T23:27:58.824162
2021-05-27T12:56:51
2021-05-27T12:56:51
335,283,280
0
0
null
null
null
null
UTF-8
Python
false
false
3,132
py
class ElementosDigitales(): def __init__(self, nombreEntrada, creadorEntrada, fechapuEntrada): self.nombre = nombreEntrada self.creador = creadorEntrada self.fechapu = fechapuEntrada def mostrarAtributos(self): print(f'''El nombre del autor {self.nombre} ...
[ "duque.duvan@uces.edu.co" ]
duque.duvan@uces.edu.co