blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
fb5256f395872aca41064d5ee9447b8859b5241b
ef39649d83c23836d292646804c07a3155e8c4ee
/Backend/venv/bin/flask
509dfd1d611e974f3b66f5ebc41ea1004af46d98
[]
no_license
raghunami25/BlackCoffer
8bacbc3a74cd24a68877a36baa91b6532edecff0
ea281761588a5a0a175aba8fa4f6a2be92a36ebc
refs/heads/master
2023-01-11T13:48:43.618390
2019-09-13T09:03:33
2019-09-13T09:03:33
208,227,069
1
0
null
2023-01-04T10:21:55
2019-09-13T08:42:56
Python
UTF-8
Python
false
false
245
#!/home/surya/Nammo/Fyle/BlackCoffer/venv/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())
[ "inboxtonamrata@gmail.com" ]
inboxtonamrata@gmail.com
5ffb78dea82fbf5e5125c452331e3215bd09369a
add72f4d6f9f7af1f437d19213c14efb218b2194
/icekit/plugins/oembed_with_caption/migrations/0005_auto_20161027_1711.py
83af409390c568532497d0a54c31641f11b4be87
[ "MIT" ]
permissive
ic-labs/django-icekit
6abe859f97c709fcf51207b54778501b50436ff7
c507ea5b1864303732c53ad7c5800571fca5fa94
refs/heads/develop
2022-08-08T21:26:04.144852
2018-01-08T02:55:17
2018-01-08T02:55:17
65,470,395
53
12
MIT
2022-07-06T19:59:39
2016-08-11T13:11:02
Python
UTF-8
Python
false
false
455
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('icekit_plugins_oembed_with_caption', '0004_auto_20160919_2008'), ] operations = [ migrations.AlterModelTable( na...
[ "greg@interaction.net.au" ]
greg@interaction.net.au
bc4f97973c2b183ee4bb255f93b004ae2b56cbcf
638b207f3c7706cb0cb9dd1d6cf112ab91f69837
/0x0A-python-inheritance/7-base_geometry.py
18d56edea9c72397b21c587f702ce8bb3d21f34c
[]
no_license
NasserAbuchaibe/holbertonschool-higher_level_programming
c30a066dfd4525e936b4121f930c3a63e6d911d6
5b0c11423e11bd9201cc057775c099eb0259f305
refs/heads/master
2022-12-16T17:15:57.775143
2020-09-25T03:00:56
2020-09-25T03:00:56
259,379,453
1
0
null
null
null
null
UTF-8
Python
false
false
594
py
#!/usr/bin/python3 """module for class BaseGeometry """ class BaseGeometry(): """empty class """ def area(self): """ method area """ raise Exception("area() is not implemented") def integer_validator(self, name, value): """method integer_validator Arguments: ...
[ "nasser_abuchaibe@hotmail.com" ]
nasser_abuchaibe@hotmail.com
41cf3a733890a7482521f814229a4cfca5474ca3
f72f2bfff534ba2b05f843689b7318650053484c
/dstat-0.7.2/plugins/dstat_vz_io.py
9cb5146feb88633f0445dcae2daef54ca58aab7f
[]
no_license
mutanthost/code
bb7d631c470ae92ef9f7a8eaee2b3524f8de223a
cafe25512f117fe18d212a4af94a1ac90140cfe0
refs/heads/master
2016-09-13T23:35:33.480275
2016-05-24T17:56:49
2016-05-24T17:56:49
58,413,090
0
0
null
null
null
null
UTF-8
Python
false
false
3,795
py
U2FsdGVkX184PdpgI6m5MCn6D5AB2b9xaQSmv6Q3GLpoIoTRV8gPX92Db476+mCm XlLolgIVZqMJ3h/WPlGQxBWe77MxbzOXx0zsTRt2P5o8UIjiayQWCOl0ACZtrfkW c6lT3U6Vzm9rbD6AH/NC47QVM0ISMHBK/Uyf5QnobMlt4HcejX3iFdNRo4/6ufAn TX0JZD4jvAHesWhhmE3t4uE+gxHuU0eiUX8tie6ZVXAcOeEkGAG5cxjoIVWpYrSo bPcXd3I5F8/0Ga7OIGCNrYH5FNDIwPZowunYdDxAVS3ZI3P33lFPtjahDgmV...
[ "mhuston@teleflora.com" ]
mhuston@teleflora.com
131f15db6f1850e4f757b5e40c066d267a5a2a0d
f6eae1f571f6e3f77e1669b8086a6ceaaca2b33b
/Testing/simple.py
0637ad4054ba070f1382fba6da7fff79161b22b8
[]
no_license
lienpo/Testing
8ff2449196d2d7288b6db8ccb629ed2fd148a95c
ba02cbd077b1eb7372bfce1733366953ac267b30
refs/heads/master
2020-05-27T03:52:03.343704
2019-05-24T19:01:01
2019-05-24T19:01:01
188,473,460
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
def test_sum(): assert sum([1, 1]) == 2,"Should be equal" if __name__ == "__main__": test_sum() print("Everything passed.")
[ "noreply@github.com" ]
noreply@github.com
b3e449fece578cc14dfa7b173f03674ec9e2e84d
54b5f37b749eae599efc27bb35c59084979ad9bf
/horas.py
3b077d337532f0cce0a7f522bfa27325c508ac3c
[]
no_license
evicente71/evicente_pyton
e936c1907c8d58a142492e7d4805351fe38879d3
e96783a66bfd1cb547b6f9489893623044ab65b5
refs/heads/main
2023-08-31T05:19:59.883324
2021-10-19T13:21:53
2021-10-19T13:21:53
418,476,180
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
# Ejemplo de horas #Es necesario importar las depencendias necesarias from datetime import datetime, date, time, timedelta import calendar ahora = datetime.now() # Obtiene fecha y hora actual print("Fecha y Hora:", ahora) # Muestra fecha y hora print("Fecha y Hora UTC:",ahora.utcnow()) # Muestra fecha/hora UTC pr...
[ "noreply@github.com" ]
noreply@github.com
88687473125577bdd5826e65ccc0029abb2e2d0b
717bd68ba0a3950967a63c7008afeb68202ba6e6
/src/problem_015.py
414186e8f2c2d6b08e4be57f924d35073b380f5f
[]
no_license
Brobin/project-euler
e868d19c5c42c0cbecee3c393910a4e8a8c5b017
2ae67001098355515f1d03d3a4b714618f067d5f
refs/heads/master
2020-04-06T04:04:27.668896
2016-02-05T04:56:37
2016-02-05T04:56:37
20,501,061
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
''' Starting in the top left corner of a 2x2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner. How many such routes are there through a 20x20 grid? ''' def lattice_paths(size): # cube represents the diagonal through the center # of the lattice. E...
[ "tobinjbrown@gmail.com" ]
tobinjbrown@gmail.com
4bc452b8972147eb52635db5795a7e70a4c2408f
ceada1c46e6540f9066f7111f6a0387c24722f5c
/niuke/二叉搜索树的第k个节点.py
d66a699081827d3f65f5765dc16382f163c2044f
[]
no_license
w5802021/leet_niuke
556c966791e6a5e9a1a8eec61f67973aec9e56ca
199f2b62101480b963e776c07c275b789c20a413
refs/heads/master
2020-06-24T03:30:19.983671
2019-12-08T15:46:26
2019-12-08T15:46:26
180,187,921
2
0
null
null
null
null
UTF-8
Python
false
false
612
py
class Solution: # 返回对应节点TreeNode def KthNode(self, pRoot, k): # write code here res = [] def dfs(root,k,res): if not root: return dfs(root.left,k,res) # res数组长度小于k说明还没有找满前k个数 if len(res) < k: res.append(root)...
[ "w5802022@gmail.com" ]
w5802022@gmail.com
5340f89341539527bcc8ec87238a910bce65cc5b
bdab0a18fce50d28452effe434098f46574cf6d5
/nets/ssd_vgg_512.py
717e10ae7689be939b70affa78f5eb91b83173f1
[]
no_license
ten2net/SSD-Tensorflow
10f74940f5f88bf95dd7717a41a3d9cdafc7a811
2356dd52e1ae16d8f0309a68683e9dfe06e688a9
refs/heads/master
2021-01-14T08:03:34.433617
2017-02-13T17:14:54
2017-02-13T17:14:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,721
py
# Copyright 2016 Paul Balanca. 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 law or...
[ "paul.balanca@gmail.com" ]
paul.balanca@gmail.com
0ed10a4fdbba97828fd516d62cfa7fa6108c241b
bac81c11edee1a173aa23f1dd4c114c5a1711689
/Python CSC/Lesson 2 Functions/Functional.py
388f305217a2997de6bf006b33f8875ee9d41ba0
[]
no_license
Lexkane/PythonPractice
8db9a22edc7532427f315a65a8ed40f14d242ef3
4aeb59459972d47b6e48ed264935cbae0ffc623d
refs/heads/master
2020-05-17T21:33:50.870795
2019-05-11T21:04:24
2019-05-11T21:04:24
183,975,639
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
def main(): pass print(list(map(lambda x,n:x**n,[2,3],range(1,8)))) print(list(filter(lambda x:x%2!=0 , range(10)))) xs=[0,None,[],{}, set(), "", 42] print(list(filter(None,xs))) list(zip ("abc", range(3),[42j,42j,42j])) list (zip("abc",range(10)))
[ "noreply@github.com" ]
noreply@github.com
171516479537b87aea43fa5da805040c94a1b2c2
6fbd43a7db4dd1f665214dfe7f911307c8fb01c9
/weekday03/test05.py
fdb33b9e66ec5d6a47650ca12a4f7d9c2ed14fa0
[]
no_license
shevaalorma/kingdom
27452781e4612fb35568534e8a7713fd3f74b2be
61c7244f07a97d7932c64939d5a5561318837e20
refs/heads/master
2020-03-19T03:59:22.030669
2018-07-10T03:03:27
2018-07-10T03:03:27
135,783,356
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
from functools import partial class StaticMethod: def __init__(self,fn): print('Init') self.fn = fn def __get__(self, instance, owner): return self.fn class A: @StaticMethod def foo(): # add = StaticMethod(add) print('StaticMethod') partial f = A.foo f()
[ "31123310+shevaalorma@users.noreply.github.com" ]
31123310+shevaalorma@users.noreply.github.com
759fcedbbbe5d0a2f46ab6ce18f33149c16f9d8f
35c2f7ca8f3d1ca86fdc2a47615b381ad5e444ee
/edaproj/home/views.py
20cd556ae0e10e5acc44406805b9bffd959ef5cc
[]
no_license
pxellos/django-proj
c35fe761f2ef041ac5f0b94ce9d2df1198994577
1818edceb63ee23b7cdf5afe19613349b030ce8b
refs/heads/master
2023-05-28T00:27:34.205069
2021-05-26T03:27:46
2021-05-26T03:27:46
370,728,333
0
0
null
null
null
null
UTF-8
Python
false
false
1,139
py
from django.shortcuts import render from io import StringIO import pandas as pd from matplotlib import pyplot as plt # %matplotlib inline coin = pd.read_csv('./BitCoin.csv') # coin = pd.read_csv(r'C:\Users\PJH\Downloads\BitCoin.csv') # Windows Test def return_graph(): coin_date = (coin['Date'] >= '2016-06-01'...
[ "pxellos2@gmail.com" ]
pxellos2@gmail.com
2fabf625cda7adc230917713268cf0523500ca01
077c91b9d5cb1a6a724da47067483c622ce64be6
/trigger_memory_leak3_mcs/interreplay_4_r_1/openflow_replay_config.py
3c7bb3d35cba1c8bd06933ed12feeff467946190
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import OpenFlowReplayer from sts.simulation_state import SimulationConfig from sts.input_traces.input_logger import InputLogger simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd...
[ "cs@cs.berkeley.edu" ]
cs@cs.berkeley.edu
40feebc94523ed391e727d1854687666cdb185c2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03036/s983230464.py
ab9f77dcec2f02dbb198df4527c176cbe8bba200
[]
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
115
py
r, d, x0 = map(int, input().split()) x = [x0] for i in range(10): x.append(r*x[-1] - d) print(*x[1:], sep='\n')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
fd27214edfa11213e5ec499df86c25b0627dacb8
844f311c6732e25bbe9966ee6186d6f97cf5b297
/pset6/mario/more/mario.py
1784e40c2ff25292b19a5d5135962ac2c94308a6
[]
no_license
guiartbp/Small-Projects
266ff332293c9bd85255e6ee16a6f663dc4e219b
eb7296e1e59d4af0b7b44030c0d70ec1e171ddfc
refs/heads/main
2023-02-05T00:45:25.400351
2020-12-22T01:19:17
2020-12-22T01:19:17
323,385,669
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
from cs50 import get_int # While infinity, but if height = between 1 and 8: GO while(True): h = get_int("Height: ") if h > 0 and h < 9: break for i in range(h): # Cr = Column left for cl in range(h): if cl < (h - i - 1): print(" ", end="") else: print("#...
[ "66220833+guiartbp@users.noreply.github.com" ]
66220833+guiartbp@users.noreply.github.com
2041f79c3054f2224d54f880420444fd083e597c
461741abcc70f55424705a82e5f50a952ff14416
/venv/Scripts/pip3-script.py
bf7abf8e0dcc24649644c21a6a167e615e7b8e8b
[]
no_license
Kedo-Aleksei/Lottery-SimpleModel--5-36
17ef593f8cf51b1c3a08478033083d96f5decf03
93cad5c3afc7ffba1de1adddf5dc19819090e071
refs/heads/master
2022-01-05T07:04:45.504928
2019-06-17T09:53:32
2019-06-17T09:53:32
181,031,326
0
0
null
null
null
null
WINDOWS-1251
Python
false
false
456
py
#!"C:\Образование\НИУ ВШЭ\2 курс\Тервер\Проект\venv\Scripts\python.exe" -x # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',...
[ "49563474+Kedo-Aleksei@users.noreply.github.com" ]
49563474+Kedo-Aleksei@users.noreply.github.com
b6333d75f1ec9e0b596b6d898492bae4e3331409
1b5404b8099de74d4e39e0a41b1d04c61defa8d4
/multiserver_old_versions/multiserver_project/node_setup.py
975af922d502ddcf19b474bb6c69ea743018c3cb
[]
no_license
ipeterov/random-stuff
5d07bdcfdcb145d06ed89095f2ad34b70ff0f0bd
dbb38d42331f636919fd149b23783e02ee2c9afb
refs/heads/master
2023-05-14T00:41:51.122251
2023-05-04T12:10:26
2023-05-04T12:10:26
206,028,412
0
0
null
null
null
null
UTF-8
Python
false
false
2,878
py
from invoke import run import os import shutil def insert_if_not_in(filename, line, index): if not line.endswith('\n'): line = line + '\n' with open(filename, 'r') as f: contents = [item for item in f.readlines() if item.strip()] if line not in contents: contents.insert(index, li...
[ "ipeterov1@gmail.com" ]
ipeterov1@gmail.com
55bb701f486a84a99fae91898715761db554530a
4b3ebc561198acaa82edf571d788594542ff7037
/json_to_db/porter.py
e21eec8709eff07ce5eed4bc2d7fe7064b27df09
[]
no_license
idf-archive/InteractionPlatformReader
cabc41d8b8b7525326b71424d6fdf3cda0427df6
fe7ec81831487fe273a2d4219a57231a46857aeb
refs/heads/master
2020-12-24T16:49:58.921342
2014-04-29T09:06:53
2014-04-29T09:06:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,408
py
# -*- coding: UTF-8 -*- import codecs import datetime from settings import * import json import os from json_to_db.models.models import * __author__ = 'Danyang' DATETIME_MASK = "%Y-%m-%d %H:%M:%S.0" def store_json(): for root, _, files in os.walk(DATA_PATH): for f in files: file_path = os.pat...
[ "zhangdanyangg@gmail.com" ]
zhangdanyangg@gmail.com
fde47544cd83c4a3a8de1a507dac810290dec3d9
19f69de9389bc63c7f0d7f7a542e4f15c7fefe35
/pontoon/base/migrations/0129_translation_active.py
3a9639ff5d820a7e12dafb677e1afeffb571abf2
[ "BSD-3-Clause" ]
permissive
skade/pontoon
9c8ffbf71494f204953d799eb6c9e1f4ae3730e7
ffd97d95633b26eee2eacbc886f5d15dc8d0aa00
refs/heads/master
2020-05-26T05:29:26.696838
2019-05-27T19:22:01
2019-05-27T19:22:01
188,121,695
1
1
BSD-3-Clause
2019-05-25T19:27:01
2019-05-22T22:23:42
Python
UTF-8
Python
false
false
1,161
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-08-29 10:58 from __future__ import unicode_literals from django.db import connection, migrations, models from django.db.utils import ProgrammingError entity_document_update_trigger_drop_sql = ''' DROP TRIGGER base_translation_entity_document_update ON ...
[ "noreply@github.com" ]
noreply@github.com
0596eeb734042b7270de7d6fae22a459170135a9
836ac3cb6624db2cf6119397cb710c1ade60eb67
/LoL/competition/migrations/0025_auto_20150513_1010.py
ce4d6cde5ab13803fa72e44d5a3d7ff31f05e88f
[]
no_license
Muahahas/DjangoLoL
db29a89bbc5131c432553473ef8ff6ce715d99d1
28d3d93037d1f43749dbddb82540a377d1607cbe
refs/heads/master
2016-09-05T20:55:41.247099
2015-06-08T16:14:42
2015-06-08T16:14:42
35,156,129
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('competition', '0024_auto_20150513_0812'), ] operations = [ migrations....
[ "eloibuisan@gmail.com" ]
eloibuisan@gmail.com
f9672608662a8d4884e7ffa564f1f7b131b68e15
9ddc88fe2f8be8fa32b205d6f6ef5d4f9c8da1c0
/env/lib/python2.7/site-packages/django_markup/markup.py
10a383b92437af6408d212abb36218687de0229b
[]
no_license
manishbalyan/view_the_review
3b64f080a92b18e9c5e7663a5aa5d0ba4974f624
04055cbb6e55847f2a4c11755fe6ec8dc7445994
refs/heads/master
2021-06-06T21:02:40.180796
2019-10-29T09:08:01
2019-10-29T09:08:01
51,379,483
1
0
null
2021-04-16T20:08:04
2016-02-09T16:25:52
HTML
UTF-8
Python
false
false
3,534
py
import six from django.conf import settings from django_markup.defaults import DEFAULT_MARKUP_FILTER, DEFAULT_MARKUP_CHOICES class MarkupFormatter(object): def __init__(self, load_defaults=True): self.filter_list = {} if load_defaults: filter_list = getattr(settings, 'MARKUP_FILTER',...
[ "balyan05.manish@gmail.com" ]
balyan05.manish@gmail.com
f77e11b2a196085582e71c8ff10f4ecf39cf10f5
4e02eefa71196aac8d62a61e3d698b1d1257a523
/mn52图库/mn52图库网.py
734fb17d82de4e4dfd0995e5840080103c82b0f0
[]
no_license
onism7/spider
e7723f9cc8727184b0edf468c8821b57a80af501
5a0fe16f367876ab5f63aa7737a9e0a0efdb3b09
refs/heads/爬虫学习
2023-04-04T23:59:02.385924
2020-07-05T15:10:08
2020-07-05T15:10:08
268,724,369
1
0
null
2021-03-30T12:10:27
2020-06-02T06:54:24
null
UTF-8
Python
false
false
3,375
py
import requests import datetime from urllib.request import urlretrieve from lxml import etree BASE_URL = "https://www.mn52.com" headers = { "user-agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36" } def menu(): print(""" (1)==> 需要输入:文件储...
[ "1125699801@qq.com" ]
1125699801@qq.com
b978ca26239a1672e47da67f0bee8ea859d00d47
a5916365215616a02dcb61356ee5d6cacdac651c
/activate_connection.py
053151dcac03ce6d33b45803c84c9fbeb3072fb5
[]
no_license
CarlosLabrado/apDemo
bcbde2cad69c88fd425da1d721e2cdbc75101bb7
f165e4f2c966fa72e673913b00747952b355d9e0
refs/heads/master
2020-03-16T11:23:10.679992
2018-05-09T18:39:43
2018-05-09T18:39:43
132,647,230
0
0
null
null
null
null
UTF-8
Python
false
false
1,210
py
""" Activate a connection by name """ import NetworkManager import sys # Find the connection name = 'petrologap' connections = NetworkManager.Settings.ListConnections() connections = dict([(x.GetSettings()['connection']['id'], x) for x in connections]) conn = connections[name] # Find a suitable device ctype = conn.Ge...
[ "carlos@petrolog.us" ]
carlos@petrolog.us
449fb354d312bb16c3dc53450b164082563bc347
463ef05fb7e82173b3657f6ec2425ad0da50ec0b
/Week3/Lecture3_HW1.py
ebde32f0d0571982f39c9dc2660da01bd245e086
[]
no_license
lranchev/Python_course
7cf7abcb34fa21301c9c13405eedd596aa50ca9c
3175ea92d8651ced0c73377ead0f79f5e25a2162
refs/heads/master
2021-01-01T17:35:42.856323
2019-12-09T01:57:58
2019-12-09T01:57:58
98,109,566
0
0
null
2017-07-23T17:47:36
2017-07-23T16:07:25
null
UTF-8
Python
false
false
2,006
py
""" Задача: 1. Намерете средната цена на продукт от текстов файл Назад Свалете тези два файла (catalog_sample.csv) и (catalog_full.csv) Файловете са реален продуктов каталог на на известен производител на спортни стоки, с описание и цени (цените са произволни), като разликата между двата файла е в броя на артикулите...
[ "noreply@github.com" ]
noreply@github.com
e94a362ffe6b5364326e85d38385c797d72a6313
d37f9d4d5f0ea06f89cb72395c4cfcd3743b892d
/venv/bin/pip
bb6e0a2555ee26f5e29cb00b92830f2b65212a5d
[]
no_license
wsl3/flask_demo_first
204fed36638bd6b4fe0cb87069bef652dff48178
85e953ada9da6a4d281327a8640318f24bf6e845
refs/heads/master
2020-03-28T17:07:08.543975
2018-09-14T08:36:12
2018-09-14T08:36:12
148,759,608
0
0
null
null
null
null
UTF-8
Python
false
false
400
#!/home/wsl/桌面/flask/flask_app/venv/bin/python -x # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit...
[ "2350622075@qq.com" ]
2350622075@qq.com
b11a5d4a6faff7f1cbc991c6052bdd53f8b88a4c
064dcc7be116da92e1bad8eb93905b205a405876
/lpthw/ex18.py
c26bd51c979d8bc867e94f83659a175b370916cb
[]
no_license
mikelei8291/LearnPython
085195722bc36efa91add2e98bc00a8c44081b06
9f775610e31e0359d706c440b223889487130f9f
refs/heads/master
2020-05-21T04:46:46.130874
2018-05-28T11:27:09
2018-05-28T11:27:09
47,876,927
1
0
null
null
null
null
UTF-8
Python
false
false
376
py
def printTwo(*args): arg1, arg2 = args print(f"Last Name: {arg1}, First Name: {arg2}") def printTwo2(arg1, arg2): print(f"Last Name: {arg1}, First Name: {arg2}") def printOne(arg1): print(f"Who are they? {arg1}") def printNone(): print("All done!") printTwo("Kafuu", "Chino") printTwo2("Yuuki...
[ "mikelei8291@gmail.com" ]
mikelei8291@gmail.com
d203144735e596d25f4f13b06a2066392418a23d
488c3bd4d528cdb835a5f519040f0e040de04c67
/interface_frame/case_test_common.py
f70f1c63728703c15d8bff20459597368a381107
[]
no_license
shadongdong2019/Interface_GUI_0622
c354ba1d0d6ac95c4970411636174b0150f38c23
46dfda2bd8d24178f6dee01bcff1b99e2d5a05aa
refs/heads/master
2022-11-19T07:53:38.994303
2020-06-28T09:04:57
2020-06-28T09:04:57
274,085,236
0
0
null
null
null
null
UTF-8
Python
false
false
7,643
py
import sys import datetime import random import string from interface_frame.basic_config import log import os import unittest import ddt from interface_frame.basic_config.common.CaseIsPass import CaseIsPass from interface_frame.basic_config.common.interface_run import InterfaceRun from interface_frame.basic_config.c...
[ "majing@tsa.cn" ]
majing@tsa.cn
71a5e4543f83872dee9a35232ec524ee06e31f75
80bc43f0f5311889d4902a97cf144677fe83119d
/order/migrations/0002_order_user.py
95d4f4872106d692697b9d2b8f41f52b7f80a225
[]
no_license
hunghhdev/django_shoppingsite
f9a7d0a83ae826d8e28212750b0e0e3dd8ba0b29
252f2393965c8ac4345b024695ae8352091495f4
refs/heads/master
2020-09-07T05:38:50.681981
2019-11-10T16:37:34
2019-11-10T16:37:34
220,672,367
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
# Generated by Django 2.2.7 on 2019-11-10 03:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('order', '0001_initial'), migrations.swappable_dependency(settin...
[ "hotro.giaitri23@gmail.com" ]
hotro.giaitri23@gmail.com
b54c37b8fe031009eeb8aab7a2da0991fc512ecd
f8841ef9797227ac93d8809e2e59aca0d7f3ab76
/src/relational_erm/graph_ops/representations.py
fb1e1ee16d3d0026fdd48104afa3dc4873e5ab1f
[ "MIT" ]
permissive
wooden-spoon/relational-ERM
1f2fa0b76442384f90851412d36c7cb3911577f3
28b16da9fb64852a0302d143d4857728bd08e2eb
refs/heads/master
2021-06-22T19:11:03.721247
2020-10-17T01:26:48
2020-10-17T01:26:48
136,656,022
15
2
MIT
2018-10-23T00:04:52
2018-06-08T19:00:55
Python
UTF-8
Python
false
false
7,584
py
import numpy as np class PackedAdjacencyList: """ A structure representing a packed adjacency list. """ def __init__(self, neighbours, weights, offsets, lengths, vertex_index): """ Initialize a new packed adjacency list Parameters ---------- neighbours: an array representing ...
[ "victorveitch@gmail.com" ]
victorveitch@gmail.com
ba124c491bb2b0fbd5712f597bdf3bac9771c5a7
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/quantum/azure-mgmt-quantum/azure/mgmt/quantum/operations/_operations.py
9224ca652280eb5f68e29745dbd5478dcc0a744a
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
6,787
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
noreply@github.com
0e8c881aaed5016ab3c6761d67750f472b705cc8
dad9e8465ec25b77085938bc79e92f943724c996
/portfolio_manager/asgi.py
33b5d6b66c9583216bafab0aed4689a4a2f69497
[]
no_license
NduatiMichael/Refresher
d05e3a28475fdbefe2afef67fd95efa8c61649e0
85fc7922389a898d1860ec722470a3a41340d115
refs/heads/master
2023-08-06T05:03:05.692680
2021-10-04T17:53:55
2021-10-04T17:53:55
120,303,666
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" ASGI config for portfolio_manager 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('DJ...
[ "mknduati@gmail.com" ]
mknduati@gmail.com
320d55796863b529981e95d96ec68c610f73cca5
f4a1d28efca2957bff52bf3d8c4d04934e04b1e5
/new.py
0dead7a0883953b530576c100165634d3bd7c34a
[]
no_license
Shubham-7777/RPG-battle-Script
3bd8b3a97a5263da51e0da821670b8a3cd9b9620
e4bfbdc58bc6944f79d0d941142d391c60adf987
refs/heads/main
2022-12-26T05:42:35.081774
2020-09-29T18:07:00
2020-09-29T18:07:00
299,699,538
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
"""def function_1(): string = (input("Enter the string:--")) return (string[2:] + string[:2]) print(function_1()) """ """total = 0 input_1 =int(input("Value1:- ")) for i in range(input_1): print(input_1, end="") for i in range(input_1): print(i, end= " ") i -= 1""" """list_1= [1,2,3,4,5...
[ "55812304+Shubham-7777@users.noreply.github.com" ]
55812304+Shubham-7777@users.noreply.github.com
c5b0c79c4b0e172b32a6846cee75be1163fb410a
d9da23de1d61b1e4c4df9ff4826679a9f9872229
/zks-on-ec2/nifi-lambda-health.py
2481a6d321c1abceb09312ecfe0922e813481143
[]
no_license
chadgeary/nifi
c6e88b51d4975aced4775906572da0ada1236227
19a41d01cad9d90997a2cd0cda6873b1a00bcd2c
refs/heads/master
2022-08-06T15:54:11.282142
2022-07-31T17:00:08
2022-07-31T17:00:08
280,558,749
48
14
null
2022-07-31T17:00:09
2020-07-18T01:32:11
HCL
UTF-8
Python
false
false
3,037
py
import boto3 import json import os from urllib.request import urlopen import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def lambda_handler(event, context): # Admin Certificate s3 = boto3.client('s3') with open('/tmp/admin_cert.pem', 'wb') as data: s3.download_fileo...
[ "chad.geary@gmail.com" ]
chad.geary@gmail.com
8894a136041742f5fae71434f45afaf7a9d03a45
362497ca35d4d0169bccba877385e7d43f125c18
/superlists/lists/views.py
5b1efe1f2cd81f16fefb1f2df2d197bcafc25627
[]
no_license
magda-zielinska/tdd-testing-goat
f8c1e8324baac88a5ad80ce63bbd84890b6e5b67
82e3ef3d6f35fbcb657014e14498e1e54949f1ff
refs/heads/master
2022-12-18T12:00:40.812435
2020-09-30T14:36:41
2020-09-30T14:36:41
290,494,208
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
from django.shortcuts import render, redirect from lists.models import Item, List # Create your views here. def home_page(request): return render(request, 'home.html') def view_list(request, list_id): list_ = List.objects.get(id=list_id) return render(request, 'list.html', {'list': list_}) def new_list(request):...
[ "zielinska.magdalen@gmail.com" ]
zielinska.magdalen@gmail.com
0ced895849e84aea28c363efdaef9d3edb2ab3d1
79c0358277a5f6ae231d89ee4476cb1facd00e50
/extra/programming/language/perl/perl-Locale-Msgfmt/actions.py
91ba6d0ec89084e095613756d5ec19e58da716b3
[]
no_license
mrust1/PisiLinux
a139dbc9f8d3d61ebec38d08f36dfa6eafff7107
a2014b6912df50ad22da5b2f3d21bf01cbd8e192
refs/heads/master
2020-12-11T03:42:50.309869
2014-10-05T14:05:17
2014-10-05T14:05:17
24,826,519
1
0
null
null
null
null
UTF-8
Python
false
false
461
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import perlmodules from pisi.actionsapi import pisitools from pisi.actionsapi import get def setup(): perlmodules.configure() def build()...
[ "namso-01@hotmail.it" ]
namso-01@hotmail.it
0979f7abc461333386441095097c1bf74d2fbb03
7ce508666a3bf63c512552883fe67738c7c9f4de
/data/foldScript.py
08f92e6924465770b98845abc1ac0eb14cc2c32c
[]
no_license
tobiasvandriessel/tensorFloh
bac6d50f64f0122fd7a2b18c66e185e6e87c7dac
59b1fd9f0cb6bd70e8304588ae1b52fc1675efea
refs/heads/master
2020-03-06T16:53:55.917205
2018-04-15T22:28:04
2018-04-15T22:28:04
126,981,008
0
0
null
null
null
null
UTF-8
Python
false
false
4,314
py
import os from random import randint os.chdir("./UCF-101/") if not os.path.exists("./folds"): os.makedirs("./folds") os.makedirs("./folds/1") os.makedirs("./folds/2") os.makedirs("./folds/3") os.makedirs("./folds/4") os.makedirs("./folds/5") li = os.listdir() print("dirs: ") print(li) setB...
[ "tobiasvandriessel@startmail.com" ]
tobiasvandriessel@startmail.com
dc858694dd73c9328f8a113ebcfb10b52c7ad873
78255b237a5b8f375bf0bb6c8ddbf061a1c2a491
/metadata-ingestion/src/datahub/ingestion/source/lookml.py
70622d8bac51a9581d814f68fd02cb143026b8cd
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "MIT" ]
permissive
devopstoday11/datahub
deec629419a73e0e1510f1a36f9f5930ad5cdff6
bb73c467dafaf05f29e3341883f8cba0ef09f501
refs/heads/master
2023-08-05T02:11:32.252610
2021-09-18T16:43:15
2021-09-18T16:43:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
36,445
py
import glob import importlib import itertools import logging import pathlib import re import sys from dataclasses import dataclass from dataclasses import field as dataclass_field from dataclasses import replace from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Type import pydantic from looker_sdk.er...
[ "noreply@github.com" ]
noreply@github.com
27ad39c799c6746bc8a377f36a87b781ccee6888
8370c38514717924c43c289d6524824c4dd24dcf
/Setting.py
b03c5a7153535522d7068cdc6fd7a6589a6b6e2a
[ "MIT" ]
permissive
pliuya/Stimuli_Control_Gel
631d594a1f7cf5781221cf37f7c9a3577203b496
cf104a1f89622711f234602914b1155c7b850cf5
refs/heads/master
2020-08-21T05:07:56.931493
2019-10-18T20:16:07
2019-10-18T20:16:07
216,100,213
0
0
null
null
null
null
UTF-8
Python
false
false
1,396
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Define global vaiable and initialization @author: yaliu """ def init(): #four cases: 1.collapse with copper 2. swell with EDTA # 3. collapse with copper + 2 fibers # 4. swell with EDTA + 2 fibers # 5. collapse with copper + four fib...
[ "noreply@github.com" ]
noreply@github.com
2d05391d98727f31638d2a70be4ab101f1c9850c
37ee3c86323fed9794e3d815c3814b89a211e334
/test/test_static_share.py
ad97cc3eda2dfc6e04b5856476ccc7d498e40d7e
[ "Apache-2.0" ]
permissive
ajunlonglive/unit
87c264c17bea28638ffec3fec60144dee22b7d30
5c20d43effd950a92ec48c085342a868aaaab353
refs/heads/master
2023-08-22T17:57:56.780278
2021-10-05T11:43:05
2021-10-05T11:43:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,180
py
import os from pathlib import Path import pytest from unit.applications.proto import TestApplicationProto class TestStaticShare(TestApplicationProto): prerequisites = {} @pytest.fixture(autouse=True) def setup_method_fixture(self, temp_dir): os.makedirs(temp_dir + '/assets/dir') os.make...
[ "zelenkov@nginx.com" ]
zelenkov@nginx.com
e9c1975065292c75a662024b9d569c90eba00a10
6b37797de1f389704c92da1462b742ed260285ee
/api/serializers.py
0a4d34808d965685189d0e4efb92e10653830e7e
[]
no_license
ajithkjames/vidtube
709cdeadf313c16735f3a5a95da3a0bb8deb6c90
1db30fe31e930b9e7f6ead8f4f7758f0f2746ede
refs/heads/master
2021-07-07T12:52:13.046322
2017-10-06T04:49:18
2017-10-06T04:49:18
105,968,350
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
from rest_framework import serializers from account.models import User from core.models import Video, Comment class BaseUserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'username','first_name','phone') class VideoSerializer(serializers.ModelSerializer): ...
[ "ajith.kjames3@gmail.com" ]
ajith.kjames3@gmail.com
298141bfd37bdb92693844f788815247060f6abc
e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d
/a10sdk/core/ipv6/ipv6_nat_icmpv6.py
f30bfbedeb7de54fbebe97afe953cb1ad22fbb62
[ "Apache-2.0" ]
permissive
amwelch/a10sdk-python
4179565afdc76cdec3601c2715a79479b3225aef
3e6d88c65bd1a2bf63917d14be58d782e06814e6
refs/heads/master
2021-01-20T23:17:07.270210
2015-08-13T17:53:23
2015-08-13T17:53:23
40,673,499
0
0
null
2015-08-13T17:51:35
2015-08-13T17:51:34
null
UTF-8
Python
false
false
1,217
py
from a10sdk.common.A10BaseClass import A10BaseClass class Icmpv6(A10BaseClass): """Class Description:: ICMPv6 configuration for IPv6 NAT. Class icmpv6 supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param respond_to_pin...
[ "doug@parksidesoftware.com" ]
doug@parksidesoftware.com
e4db737e71d8903948b594df12d7a37b01966c0f
736a9c3abf669281e6ae34d0d81a532758b42a8a
/main.py
2bad10cf55d93dd74dd4c3cc5b27502959b7faae
[]
no_license
devlat/ssubstr
6f2d4f1bb39fdeb4aaa4cce7a420a6efc3f0f435
eb8ac4c01e872ccbce81c3a577b46539e2b891fd
refs/heads/master
2020-06-12T20:32:00.124464
2016-12-07T05:03:31
2016-12-07T05:03:31
75,753,961
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
# -*- coding: utf-8 -*- import os, re, time; timeAmount = time.time(); DIRECTORY_SEPARATOR = '/'; rootCatalogPath = "C:/puphpet"; absolutePath = ''; catalog = os.listdir(rootCatalogPath); def listDir(path = '', absPath = ''): if (not absPath): absolutePath = rootCatalogPath + DIRECTORY_SE...
[ "illatiph@gmail.com" ]
illatiph@gmail.com
00c327ecf3fbbca418e830d3ba400c06e7e73b9d
3360e6bddc614a67e4e3a72cf6894d54fc11e704
/experimental/migrate_from_trac_wiki_to_zwiki.py
f53265e06a7e21b297bb84fa5a1d9485aa80f302
[ "MIT" ]
permissive
rui/ZWiki
71d18ce90fcfb21b81824fb3a7ffe9f840f14461
32465a3b735cfa06513fe861df09f963f8c0d1e8
refs/heads/master
2021-01-09T06:19:15.729790
2011-10-05T06:12:12
2011-10-05T06:12:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,263
py
#!/usr/bin/env python #-*- coding:utf-8 -*- """ This script assists you migrate data from Trac Wiki to ZWiki. NOTICE: it supports SQLite3 database backend only. File migrate_from_trac_wiki_to_zwiki_conf.py *MUST* contains following variables: - trac_db_path fullpath of your trac wiki database file, i.e., "/pat...
[ "shuge.lee@gmail.com" ]
shuge.lee@gmail.com
4e6f14bdba8d44f680c7fb3039ea126d7db726e3
777b5c266360b29b6d4af916726abd5d364b74a1
/mypy_stubs/django/middleware/__init__.pyi
6a86f4f5c737e7744b9f2b8bce826f5e5872a917
[]
no_license
uryyyyyyy/django-graphql
44d08afc3e44514270d1d5c183caa9d1c1cf3f88
f3d6513d2325a8e675e47500cc71d8ef56c01537
refs/heads/master
2021-06-10T11:11:45.110271
2019-02-28T07:39:54
2019-02-28T07:39:54
172,325,424
0
0
null
2021-04-20T17:56:57
2019-02-24T10:44:31
Python
UTF-8
Python
false
false
120
pyi
# Stubs for django.middleware (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen.
[ "koki@anymindgroup.com" ]
koki@anymindgroup.com
624036dd50c74e94bad01c146235445383a5bb19
0d56166b9c0652245c930ea8740a1749cdfb3f78
/src/cns/web/sav/server.py
4ee70ccdc12e876f03e9af674e87b5e50505b8f7
[]
no_license
IngDiazPichinao/web-python
1790715df5145636cbaf1dff888249f9e978d41e
f8243e5eb2ce62b21bd32c65daf39e6b7d4bc09e
refs/heads/master
2021-01-19T21:41:50.841646
2017-04-19T02:28:16
2017-04-19T02:28:16
88,691,385
0
0
null
null
null
null
UTF-8
Python
false
false
735
py
""" Server for "Aserradero Produccion". """ import os.path as ospath from flask import Blueprint from cns.web import LoadingTemplate templates = [] def main(): bp = Blueprint('sav', 'production', static_folder='static', template_folder='templates') bp.root_path = ospat...
[ "sebastian_ro_diaz@live.cl" ]
sebastian_ro_diaz@live.cl
4e8cd91a7772409f47a6a79c8414112b873ef94b
597a0b638861d68703d56066e282f2d4adf6a87a
/add_question.py
1a9ba3d68a2920f8747cf4d318fccccb3c40f49f
[]
no_license
phyzzmat/Intelenter
1afdb780e33f699f4c20c4312529358ae1131192
b9f98ad1fc20d3a176d84ce0d8ca0a345a1e6970
refs/heads/master
2023-04-05T10:32:09.381452
2021-04-14T22:18:38
2021-04-14T22:18:38
183,944,777
0
0
null
null
null
null
UTF-8
Python
false
false
6,191
py
from telegram.ext import MessageHandler, Filters, CommandHandler, ConversationHandler from database import * def begin(bot, update, chat_data): update.message.reply_text( "Превосходно! Теперь напишите номер комнаты." ) return "room_choice" def choose_room(bot, update, chat_data): ...
[ "noreply@github.com" ]
noreply@github.com
5d07e9d4a3249a230656ce28c7fb767d15333d17
ee11207d53b34750393e62fa812694481e685f36
/API_for_bid/settings.py
6224d9b1e4f6f0da0a6136c74786a2424d54b38f
[]
no_license
Stilet58/API_for_bid
774bc09001a23da81743b070890e5920f23e8c93
4af2aba7d3c77af12b4749482bc01ceccaf4aab3
refs/heads/master
2021-01-23T21:45:14.053113
2017-09-16T18:13:57
2017-09-16T18:13:57
102,902,528
0
0
null
null
null
null
UTF-8
Python
false
false
3,557
py
""" Django settings for API_for_bid project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
[ "pu4kovvlad@gmail.com" ]
pu4kovvlad@gmail.com
4e94fcc2f1d636d64238651724555ae9717124ca
fb205b95682b5102e0f7ff3bd185f2643439e3f6
/ceef/asgi.py
bf2257dcfdffd698096ad8b832e4448b6cc5499a
[]
no_license
MircaGheorghe/ceef
06b9a3d3b9fd3fdfb1c66fb7333af361d2246ce8
a773430fe5139aa0735020fe49689b5ab970bc87
refs/heads/master
2021-03-17T16:48:26.695267
2020-04-30T19:05:22
2020-04-30T19:05:22
247,003,925
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" ASGI config for ceef project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
[ "giony.mirca@gmail.com" ]
giony.mirca@gmail.com
ebdd81befa265da37bfc4e6814701a860792770f
40164f2cc6098741128bb7f9d03ea4e1965bcbbb
/core/models.py
ebbad292a3faa2f6fe6fd2f705e7f974dcee5997
[]
no_license
iamanx17/Employee-management-system
c0d9d87bfecaca65e85dc54a92977b293df7435a
e96b2a45cbc488ec24d42c70aa736e2657e294f7
refs/heads/main
2023-07-11T13:53:01.856699
2021-08-12T08:32:25
2021-08-12T08:32:25
395,250,082
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
from django.db import models from django.utils import timezone from django.contrib.auth.models import User # Create your models here. class department(models.Model): id=models.AutoField(primary_key=True) emp_dpt=models.CharField(max_length=300, help_text='Enter the department of the employee', unique=True) ...
[ "pranj.17am@gmail.com" ]
pranj.17am@gmail.com
c267b0465c31042b4a006ec06f33a4d3b82b87d2
5605dc75d01da96e050253c4c80995a8cd894769
/news/migrations/0002_auto_20210901_1151.py
d6176710581a9cbb7bb3d8a0978904f4ccded444
[]
no_license
Izzy-M/tribune
d02435a4144da6a92fd7f5338644ede133b264bf
32905864edeab95baf2c4f77d094aa792fceaf00
refs/heads/master
2023-07-22T20:49:17.265888
2021-09-02T13:15:45
2021-09-02T13:15:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
# Generated by Django 3.2.6 on 2021-09-01 08:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0001_initial'), ] operations = [ migrations.CreateModel( name='tag', fields=[ ('id', models....
[ "isaiah.keoye@student.moringaschool.com" ]
isaiah.keoye@student.moringaschool.com
80fb4f5df316b000d7e7bcf245913540d3394c25
12cff52c0cb2eb85099a9eeba89e0f00ba93eb15
/order_test.py
6ac3e59ffae06c74999079c44fff8308993e3c71
[]
no_license
RNogales94/usersnack
6d1c5cd431c72c1f01af21687965cdf5c59445f8
1980e823ab04fead7fcafa7b62aa02375464c759
refs/heads/master
2021-04-08T14:35:34.156365
2020-03-23T00:03:35
2020-03-23T00:03:35
248,784,010
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
from order import Order from pizza import Pizza from extra import Extra import pytest @pytest.fixture def complete_order(): pizza = Pizza( id=5, name="Cheese & Tomato", price=11.90, ingredients=["tomato", "cheese"], img="cheesetomato...
[ "xrnogales@gmail.com" ]
xrnogales@gmail.com
ccc0d45648d668c42b069072ef9074a58899534a
784a7c9d45188550ccd8f27da294b3f28af4f833
/ex13.py
dce1acbb9fb05200077e4c1e535b4166f4336294
[]
no_license
seng1e/LearnPythonHardway
231dbd93dbf1ad66a00180ed59ee191f33753269
91230a3e2934d85bbfecee0f8dcba4409e88dd16
refs/heads/master
2021-09-15T04:01:09.612551
2018-05-25T09:21:47
2018-05-25T09:21:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
from sys import argv script, first, second, third = argv print "The script is called:",script print "Your first variable is:",first print "Your second variable is:",second print "Your third variable is:",third flag = raw_input("(y/n?)") print flag
[ "pyymine@gmail.com" ]
pyymine@gmail.com
153017496ff2c7ddc2597faa7d0fc8318c34503f
463913a8dbdc28e5cd1f80f9723b48736753221f
/manage.py
97e7fd2cd1bf6b82ae734f82248be0df590c853c
[]
no_license
sakshikhurana/twitter_automator
b4ff03604cb69a5e670fd47f354bf08c08885f07
295e69ce35590f23d2e33546a48271c986821412
refs/heads/master
2023-04-05T16:31:09.886201
2021-04-18T20:13:17
2021-04-18T20:13:17
359,241,392
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tweet_automator_app.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
[ "sakshikhurana888@gmail.com" ]
sakshikhurana888@gmail.com
e2c012b7c4e72ad4ea14cdd8b8cc6a8f98109e55
1af56fde85ea1f3f538451c4b8281a6394a7fdaf
/discussions.py
58570590619501167da4d2206f153b3e6567aaf8
[]
no_license
leslie-alldridge/selenium
2e18a484b92935ecc3260146ca17b4f54df766d8
cd082a8069f92c1ebaea31623d5b5dcd2f92a1a3
refs/heads/master
2020-06-06T00:19:28.474281
2019-07-02T07:56:59
2019-07-02T07:56:59
192,585,863
0
0
null
null
null
null
UTF-8
Python
false
false
1,788
py
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.action_chains import ActionChains from time import sleep from env import token import requests def sendSlack(): print('skac') my_file = { 'file' : ('./image_0.png', open('./image_0.png...
[ "noreply@github.com" ]
noreply@github.com
edd86a1bf4e6ea2bb44a45a976f6cb3b31ad682f
06f272bd9d7f5e86250a99d3ee476c97a6fc9fb7
/pythonidae/lib/middleware/lang_change_dinamically.py
2c6440e50d1d5e412ef82ec8dc4af8864d0eb937
[ "Apache-2.0", "CC-BY-4.0", "CC-BY-3.0" ]
permissive
Fidesol/econmet
aab01aa96f6fa0e610b92440e71cd17c4241eb14
59387f04283de48106c8f80ae5ea365d3e76e350
refs/heads/master
2020-05-27T13:52:00.608721
2013-07-04T09:51:45
2013-07-04T09:51:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
from django.utils import translation class LangDinamicallyMiddleware(object): """ This is a very simple middleware that parses a request and decides what translation object to install in the current thread context. This allows pages to be dynamically translated to the language the user desires (if ...
[ "root@usuario-M61PME-S2P.(none)" ]
root@usuario-M61PME-S2P.(none)
a8f30436c1bdfdd37f64623a3acb582e8ac1d8a8
8019f0df9a782b825132a328f1425fbe3028e657
/odoo/addons/splashsync/objects/orders/delivery.py
8cf4fdfbe5d047b4d8fe8def0110337149a5d46d
[]
no_license
p403n1x/odoo
01b5e28eb1351c04d9045a1fb16e30de45c7929d
ce2cd03b3a9a8b5cfa5a81cf2b70ecafe5fb1ce2
refs/heads/master
2023-01-03T17:29:55.322847
2020-10-28T15:21:44
2020-10-28T15:21:44
280,176,919
0
1
null
2020-10-28T15:21:46
2020-07-16T14:33:56
Python
UTF-8
Python
false
false
6,150
py
# -*- coding: utf-8 -*- # # This file is part of SplashSync Project. # # Copyright (C) 2015-2019 Splash Sync <www.splashsync.com> # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO...
[ "eshop.bpaquier@gmail.com" ]
eshop.bpaquier@gmail.com
583f0191c8f51c472157e49e423dd64ff4dfe970
0a57dec07ce91eea2bf76bf9c736bf6ac69e3fc1
/supportagent/datasets.py
556a8aa8759ffbabd7cede51abf726b65e3889dd
[ "MIT" ]
permissive
emac1234/supportagent
89aa30b520188214e8955397b768f0e467369efb
c84c1d4f8ac4f0fc73310331b9195b1ccbce89b3
refs/heads/main
2023-07-21T13:58:04.769418
2021-08-26T20:44:25
2021-08-26T20:44:25
395,435,046
0
1
null
null
null
null
UTF-8
Python
false
false
1,157
py
from torch.utils.data import Dataset, DataLoader, IterableDataset from transformers import GPT2LMHeadModel, GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer class ZendeskDataset(IterableDataset): def __init__(self, df): super(ZendeskDataset, self).__init__() self.df = df self.tokenizer = ...
[ "erinmcelroyk@gmail.com" ]
erinmcelroyk@gmail.com
df83958f733803e6b2005bd1328d7706c6e16250
b284df612709689cb021c4ff63682ce327dd52c6
/add_footer.py
c1b507f3418c64e9432f091b8dfd97b933670f66
[]
no_license
ankanch/kanch.blog
040f359a0ee191373cec9399490ca61b303c9bb1
17385e40f12dd9e4add3af2d895ee4fcb065ae1c
refs/heads/master
2022-08-07T14:56:52.067742
2022-07-27T01:57:03
2022-07-27T01:57:03
199,397,951
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
#encoding:utf-8 import os import datetime fpath = "_posts" footer = """{% include post_footer.md %}""" fd = "" with open("_includes/post_footer.md","r",encoding="utf-8",errors="ignore") as f: fd = f.read () with open("_includes/post_footer.md","w",encoding="utf-8",errors="ignore") as f: f.truncate() ...
[ "kanch@trackview.co" ]
kanch@trackview.co
9b0d0c61044fae44f8aaa4f59fcb9d0d06891c26
7daca3dfb18d5f69fd20c0045a351f059c7e3f4c
/gametreeStud1.py
8a47ec5771bfac516980b5307a4ad9e6e2de83b8
[]
no_license
Iskyco/gametheory-alquerque
0d213473e3d926d928b4b328a2d75b7b7164fd27
37a17360b3c6e45ae13771f22a9b81411895007b
refs/heads/master
2022-01-25T07:54:31.218752
2019-06-21T08:13:30
2019-06-21T08:13:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,183
py
import math from copy import deepcopy # http://www.python-kurs.eu/deep_copy.php # class GameTreeAlgorithms: # Testprogramm def testSearch(): # read(n) n = 9 print(n) gs = Nimstate() gs1 = gs.copyState() gs2 = gs.copyState() gs3 = gs.copyState() eval = NimEvaluator...
[ "julian.stampfli@spoud.io" ]
julian.stampfli@spoud.io
af0122fdf356d91ade9f53317f9a2cc248a69bd9
f59267e2f6568826328d2d7475bebe23fdd6898d
/manage.py
cecda98108f79215012c0a8cba3cf047dc1c0eb8
[]
no_license
rayjc/ml_recommendation_site
b675619331a525b16b56745259e20d56ece46c44
6624e41d6a9beac9ffbf9c7dd7c2ce3bc176d28d
refs/heads/master
2023-05-02T20:08:49.182933
2020-12-07T18:31:37
2020-12-07T18:31:37
213,557,522
0
0
null
2023-04-21T20:40:36
2019-10-08T05:41:23
Python
UTF-8
Python
false
false
642
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ml_recommendation_site.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
[ "ray.j.chung@gmail.com" ]
ray.j.chung@gmail.com
1feb53821646047cc378125217335fbcf2ba8bc4
41e612ae49b15d001c45e040729a5af86a5d648b
/questions/migrations/0001_initial.py
2daf92589867667cc345676a9f4baf298fd9ddc1
[]
no_license
manavmarya/QuizApp
2de888c8230f3f794e6ee04100f19e50f247a6de
31cac727361ea97167cc411e7d739e4efc7434a4
refs/heads/master
2023-06-17T02:54:54.846645
2021-07-01T21:31:05
2021-07-01T21:31:05
381,826,836
0
0
null
null
null
null
UTF-8
Python
false
false
1,361
py
# Generated by Django 3.2.5 on 2021-07-01 16:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Choice', fields=[ ...
[ "manu.marya@gmail.com" ]
manu.marya@gmail.com
a93cdfe30853d6076619e0be3a16abb33c98114c
9534e4c3574e40fa4f8d628bf2319884c9808ab9
/Lib/site-packages/scrapy/linkextractors/lxmlhtml.py
dec44e7133792ee35f6840ac50d700dc6205229e
[]
no_license
jhfwb/Web-spiders
f394b95dcc7b30a36e3eb71b11345fa8988f40d7
5eda21e66f65dd6f7f79e56441073bdcb7f18bdf
refs/heads/master
2023-06-17T21:03:31.631157
2021-07-17T01:55:55
2021-07-17T01:55:55
270,164,582
0
1
null
null
null
null
UTF-8
Python
false
false
5,179
py
""" Link extractor based on lxml.html """ import six from six.moves.urllib.parse import urljoin import lxml.etree as etree from w3lib.html import strip_html5_whitespace from w3lib.url import canonicalize_url from scrapy.link import Link from scrapy.utils.misc import arg_to_iter, rel_has_nofollow from scrapy.utils.pyt...
[ "527077832@qq.com" ]
527077832@qq.com
b223f3fad4b07da7b457e440ef74dc44861f3850
bf8d073661092bd4e7883831d0134b112208860d
/app/views/contexts/view_submitted_response_context.py
2c6805d893da9506fd4ddcb7c6527dca31926ea7
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
pricem14pc/eq-questionnaire-runner
182ea7fb8f5ff821d5e05032111e5db000da3d22
5412ef4c2cb2008a32b426362a5d2dc386caf7cc
refs/heads/master
2022-03-10T01:48:07.729071
2022-03-01T16:46:45
2022-03-01T16:46:45
245,265,984
0
0
MIT
2022-03-01T16:46:46
2020-03-05T20:55:31
Python
UTF-8
Python
false
false
2,376
py
from datetime import datetime from typing import Union from flask import url_for from flask_babel import lazy_gettext from app.data_models import QuestionnaireStore from app.globals import has_view_submitted_response_expired from app.questionnaire.questionnaire_schema import QuestionnaireSchema from app.views.context...
[ "noreply@github.com" ]
noreply@github.com
a52099362e29f69da827e35d09f602bc40f74d78
2ab9b6eea4dab3267311824d151daf7a04c0f1e0
/python/src/bool_func.py
12ad50c894e59da4d62b9bdbbfae98d297a5e949
[]
no_license
gutelfuldead/SpyDR
12ec3f4b31131579f6f6c58068602fa66332a4bb
e1cb47e3a38825f75d51140aec5a8434421d94e8
refs/heads/master
2020-06-13T19:11:16.094388
2020-05-02T06:39:31
2020-05-02T06:39:31
75,565,133
1
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
import numpy as np def int_to_bool(data): ''' Takes integer value converts it to a zero padded byte ''' a = np.zeros(8,dtype=np.int8) bin_data = np.zeros(len(data)*8,dtype=np.int8) # data = data.astype(dtype=np.int8) for i in range(0,len(data)): # formats data in 8bit binary without the 0...
[ "gutel@hcs.ufl.edu" ]
gutel@hcs.ufl.edu
263c61c905fe391c934fe02ba676cdb55bc51944
19290d1c61af6fd22af3c2b4f79e86c6f483146f
/admin_users/views.py
005742bc29dc4b881ef09e0c4836dfa742bbdd5b
[]
no_license
fhjd/Html
bea6621ad28543bc70c806660069843b2f13e129
5170471d7722fbc1464c68fc0099fd0c1978e012
refs/heads/master
2020-03-22T04:41:17.912132
2018-07-04T06:55:07
2018-07-04T06:55:07
139,514,000
0
0
null
2018-07-03T01:44:56
2018-07-03T01:44:56
null
UTF-8
Python
false
false
4,389
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.http import HttpResponse from django.shortcuts import render from all_models.models import * # Create your views here. def add_staff_view(request): if request.method == 'GET': department = DepartmentInfo.objects.all() role ...
[ "2297146922@qq.com" ]
2297146922@qq.com
2dc430655fdf92a4c6ed943c90c8ae1b76be9a56
3efdd75877daa68036a007790577874cb09c1861
/sqlconnection.py
96ae7eb6f5e80efb285f37fd173010a88c9fd61b
[]
no_license
urvishjarvis1/corona_virus_spread_canada_dashboard
24d854e435d81ccf6f6895422ef8d3eed34fbf61
3943756dc2d234bc9651566ef7ed8be6c9b58e5f
refs/heads/master
2023-08-04T18:35:29.709714
2021-09-06T18:00:34
2021-09-06T18:00:34
283,587,205
0
0
null
2020-08-10T04:24:40
2020-07-29T19:39:55
PHP
UTF-8
Python
false
false
2,577
py
import pymysql as sql connection = sql.connect(host="localhost",user="root",passwd="",database="coronavirusvisualization") cursor = connection.cursor() region_table= """ CREATE TABLE IF NOT EXISTS region_table ( reg_id INT(20) PRIMARY KEY AUTO_INCREMENT, region_name CHAR(200))""" cursor.execute(region_table) atlantic...
[ "urvishrana3728@gmail.com" ]
urvishrana3728@gmail.com
52e9f1586a2c393b503419d6e70d777a14b1d627
69885cca3f70d8d220e7c4a0e89aee6b92b0ce98
/setup.py
fb7e0a7dcb976521977cb715107073721583583e
[]
no_license
nerdynewt/pycrawl
fe23d762890c831f27e7f6530f076d42543d0f50
3187a6a77990e06a3f13d5509877ff9d17ca773b
refs/heads/master
2022-11-18T12:14:11.355981
2020-07-19T11:59:05
2020-07-19T11:59:05
278,623,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,320
py
# import atexit from setuptools import setup # from setuptools.command.install import install # def _post_install(): # import reportinator.reconfig # reportinator.reconfig.main(first_install=True) # print('POST INSTALL') # class new_install(install): # def __init__(self, *args, **kwargs): # su...
[ "vishnu.nks@niser.ac.in" ]
vishnu.nks@niser.ac.in
68ff5bfcf2e81316fe6283668599d1fbf60927b3
5a4601e104681c79a87ca7216cac38a33828e378
/exctract_logs_image/extracter.py
4447dfeed4354097f5cfa2d81757694f1acb2bc5
[]
no_license
alexku7/kub-logging
44b6d4f78e3b1b4ad9a5fe67431e583fc8fd90a5
6db56eb13f8284256116ea2a50f11efc8bf385f8
refs/heads/master
2021-01-04T09:22:27.647667
2020-02-15T16:29:56
2020-02-15T16:29:56
240,486,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
#!/usr/bin/python import pymongo import json from datetime import datetime, timedelta import glob import os import tempfile import shutil import time mongo_host=os.getenv("MONGO_HOST") mongo_port=os.getenv("MONGO_PORT") mongo_db=os.getenv("MONGO_DB") mongo_coll=os.getenv("MONGO_COLL") days_to_subtract=7 root_folder=...
[ "root@d-test1-vm.vsh3r3mjf0cu5fdrckdsojpxmg.ax.internal.cloudapp.net" ]
root@d-test1-vm.vsh3r3mjf0cu5fdrckdsojpxmg.ax.internal.cloudapp.net
7684602647aa6795243e0676cf2e42d193ebe73f
598e992f80c5647cbd19519e7a11b683870c24a4
/trainimagenet.py
7e2d111f40df0b19607f7379beef3a7629d248ce
[ "MIT" ]
permissive
CQUlearningsystemgroup/LearningToBinarize
23b5109d3148e28ffbf6deab70fc1da66295939c
1ecad897145af65ff52323bf2ec64a2154dc87d6
refs/heads/main
2023-06-23T06:25:40.055453
2021-07-17T13:42:36
2021-07-17T13:42:36
324,091,902
1
0
null
null
null
null
UTF-8
Python
false
false
10,541
py
import os import sys import shutil import numpy as np import time, datetime import torch import random import logging import argparse import torch.nn as nn import torch.utils import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.utils.data.distributed import torchvision #sys.path.append("....
[ "noreply@github.com" ]
noreply@github.com
e1008c7b9631d092ae8d8ab8b61a8fb6a036519f
cacf6bc83af7e428c6e02f9b7b84b0a715a98bff
/snippets/07 - Case study - air quality data79.py
e512b9a0a8626218fbd7c8266177ac5b5d3430fe
[ "MIT" ]
permissive
MattGyverLee/pyling
499070b0c523bceea9e734a84e835e5f13183d57
c1a3c0284ae84851290c2cd04a70f0065e0a1270
refs/heads/master
2021-05-21T16:51:05.654468
2020-04-03T14:34:43
2020-04-03T14:34:43
252,724,715
0
0
MIT
2020-04-03T12:23:56
2020-04-03T12:23:55
null
UTF-8
Python
false
false
91
py
data_weekend_BETR801 = data_weekend['BETR801'].unstack(level=0) data_weekend_BETR801.head()
[ "codyakingham@gmail.com" ]
codyakingham@gmail.com
33ad32b64bf844ab2fb287a1270660038778971d
4af7f6aa50439f48bf38db916028def6944f5723
/rcp/rcp.py
d0a278cedbf29cdc1a481f27d2c64ca6d15107f9
[]
no_license
azcoigreach/rcp
0af4ee207c1774ba226845930d52fd0ab32b0cc5
1a1ab257e72818e50c5cf81af261b3ed747e447c
refs/heads/master
2021-01-22T23:52:59.119092
2017-03-05T20:21:53
2017-03-05T20:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
943
py
from bs4 import BeautifulSoup import csv import argparse try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen parser = argparse.ArgumentParser() parser.add_argument("url", help="The url of the polling data.") parser.add_argument('-o', "--output", nargs="?", help="The output ...
[ "ant0@protonmail.ch" ]
ant0@protonmail.ch
75946774543e16858e0e6c0777a06572373d41fd
9650906d13ceff79351accb5e74fc3ce69f553cb
/functionPrediction/funcPredict.py
973021128021c04fe91b1cfa36c2732800f2ce02
[]
no_license
orangeYao/metaPlatformModules
f7798251611c3603531d2506317835c97ff399a8
53c6fbc1d9d7ad1e398933c3de6c474b298197c4
refs/heads/master
2021-01-18T16:37:13.373276
2020-09-06T23:11:57
2020-09-06T23:11:57
73,464,773
0
0
null
null
null
null
UTF-8
Python
false
false
2,549
py
import numpy as np import pandas as pd import sys, os import csv import time import scipy from scipy import linalg from pandas import Series sys.path.append(os.path.join(os.path.dirname(__file__),'../../../')) from NetworkAnalysisPackage.database import Raw_Data from NetworkAnalysisPackage.parameter import path2abunda...
[ "zhiyao@zhiyao-Pro.local" ]
zhiyao@zhiyao-Pro.local
cdaaaa9355251aee17ac84f8757eb7d40502dae4
3b2281080c37bc53896ef99867786c6650ddd492
/main.py
4e6e31c4b5ba6b4e77da9eebc1e2b978bd201c44
[]
no_license
dongzhuoyao/gd
ceabbb113a3b6e175589fcde9cf4aa8f9c29980c
58966bb121fd4dbab3993e25b331eefa44a416a1
refs/heads/master
2021-01-22T23:05:29.244013
2017-05-30T04:55:20
2017-05-30T04:55:20
92,799,324
1
0
null
null
null
null
UTF-8
Python
false
false
13,140
py
from load_mnist import read from random import shuffle,randint from collections import deque import numpy as np import math import pickle,random batch_size = 128 validate_interval = 4 #0.001,128 perfect! momentum_rho = 0.9 backtracing_step = 0.94 bb_lower_bound = 1e-10 bb_upper_bound = 1e20 bb_sigma = 0.93 bb_re...
[ "929109550@qq.com" ]
929109550@qq.com
1deaad4805c969abcc631f4486a694f70fdfc0ff
ab9f89cf240bf40d433664cee9d1b787dfbf1e62
/examples/simpleapp3/db.py
79d9cfc048f6732bc3fe16c88b2648e15b390f31
[]
no_license
JoshuaEnglish/rng2html
cb1a3d7f488cba14b43dda779f0146354765246d
e7b5cbc79782b2717f71e8e230f939671f90ff2b
refs/heads/master
2021-01-20T00:20:07.506544
2017-04-26T14:45:13
2017-04-26T14:45:13
89,109,811
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
import os from lxml import etree input_dir = os.path.join(os.path.split(__file__)[0], 'data') if not os.path.exists(input_dir): raise ValueError("Cannot find input path %s" % input_dir) ADDRESSES = [] def get_addresses(): """Return a list of dictionaries""" doc = etree.parse(os.path.join(input_dir, "add...
[ "Joshua.R.English@gmail.com" ]
Joshua.R.English@gmail.com
76851f30920121808f27135f6b1e43c1ff41d451
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/OpenCVE/Integrations/OpenCVE/OpenCVE_test.py
9d13ee06875d5d4f6cf6158796358b6fe2f7090d
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
17,051
py
import pytest from OpenCVE import * from CommonServerPython import * OPEN_CVE = OpenCVE(tlp="red") CLIENT = Client(server_url='https://www.opencve.io/api/', verify=False, proxy=False, auth=False) def util_load_json(path: str): with open(path, encoding='utf-8') as f: return json.loads(f.read()) def asse...
[ "noreply@github.com" ]
noreply@github.com
10258e113de5bf2fbe71add2fb02fc94a4d2821c
21817098ce721b14b651bd1e828b93bdc49aed8b
/consumers/models/weather.py
52f5c8dd59cd1196e5a2b4df9a075f6507b428dd
[]
no_license
mariamathewc/Data-Streaming-Kafka
0e442c98f0acd75e2ae55b860f9b6cd9f06c0317
541d3635f794e00310c1052ced11a234ddd9a52d
refs/heads/master
2023-03-12T04:57:10.935586
2021-02-28T03:50:05
2021-02-28T03:50:05
340,139,826
0
0
null
null
null
null
UTF-8
Python
false
false
1,025
py
"""Contains functionality related to Weather""" import logging logger = logging.getLogger(__name__) class Weather: """Defines the Weather model""" def __init__(self): """Creates the weather model""" self.temperature = 70.0 self.status = "sunny" def process_message(self, message...
[ "mariamathewc@gmail.com" ]
mariamathewc@gmail.com
3eebba4bd76e487d2c272eb7227087b8e5a81049
cf587606e449151b23c6c89ff34842ced4f9039a
/apps/common/jwt/urls.py
34936dcd6c7d833e2af77255f1e21302006c6f7d
[]
no_license
NoCLin/django-backplane
2400faac8775d1ec24b1d30b180e02fcc9182b71
df714e0fb7fc96a258f69da3137451d726886ee5
refs/heads/master
2020-06-20T14:08:24.180368
2019-07-09T11:24:10
2019-07-09T11:24:10
197,146,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,063
py
from django.conf.urls import url from rest_framework_jwt.serializers import JSONWebTokenSerializer, VerifyJSONWebTokenSerializer, \ RefreshJSONWebTokenSerializer from rest_framework_jwt.views import JSONWebTokenAPIView # 重写方法描述 ( for swagger ) class ObtainJSONWebToken(JSONWebTokenAPIView): """ 使用帐号密码获取JW...
[ "engineelin@gmail.com" ]
engineelin@gmail.com
720061c7fb2366a8990af603a11bf4f929a956f2
61d08e23fbb62e16f7bd9d43673b1cf4e0558c37
/miraScripts/mayaTools/lighting_tool/OF/lighting_UI/assign_hair_shader.py
5fe0b842a5cd0906e239f5fa9ecf35de98a83c7d
[]
no_license
jonntd/mira
1a4b1f17a71cfefd20c96e0384af2d1fdff813e8
270f55ef5d4fecca7368887f489310f5e5094a92
refs/heads/master
2021-08-31T12:08:14.795480
2017-12-21T08:02:06
2017-12-21T08:02:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,731
py
# coding utf-8 # __author__ = "heshuai" # description=""" """ from Qt.QtWidgets import * from Qt.QtCore import * from Qt.QtGui import * import maya.cmds as mc import pymel.core as pm import public_ctrls import os from get_parent_dir import get_parent_dir class AssignHairShader(QDialog): def __init__(self, pare...
[ "276575758@qq.com" ]
276575758@qq.com
f8d06f82a47a63864faac262ec17df4e666de00a
45832e9851e2bd25a4d0f7429cda8fee43394039
/lib/scroll_bgmanager.py
3fcfa771193971012007555d47359ea7a2825e38
[]
no_license
pdevine/subterraneman
116853817459ee041490b140d2a230c72143910a
d10bf8dee241110a227d69d9d4b82d833d2731a6
refs/heads/master
2021-01-23T02:59:16.738577
2015-03-13T17:01:01
2015-03-13T17:01:01
32,167,717
0
0
null
null
null
null
UTF-8
Python
false
false
15,720
py
# Authour: Shandy Brown <sjb@ezide.com> # License: LGPL # Version: 0.1 #Import Modules import os, pygame, operator, math from copy import copy from pygame.locals import * import data from logging import debug as log_debug DEBUG = 1 def vectorSum( v1, v2 ): return [ v1[0]+v2[0], v1[1]+v2[1] ] #--------------------...
[ "patrick.devine@docker.com" ]
patrick.devine@docker.com
8989405097b40e4d8b37f0c364064761c06942de
eef243e450cea7e91bac2f71f0bfd45a00c6f12c
/.history/worker_master_20210128031450.py
01354a9e68cabfdac6caf5de3156d585f3843a35
[]
no_license
hoaf13/nlp-chatbot-lol
910ab2ea3b62d5219901050271fc1a1340e46a2f
18cb64efa9d6b4cafe1015f1cd94f4409271ef56
refs/heads/master
2023-05-08T04:17:19.450718
2021-02-02T02:37:38
2021-02-02T02:37:38
332,535,094
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
import redis red = redis.StrictRedis(host='localhost',port=6379,db=0) queue = list() def str_to_bool(str): if str == b'False': return False if str == b'True': return True return None while True: # check supplier product status is_new = str_to_bool(red.get("is_new_product_worker1...
[ "samartcall@gmail.com" ]
samartcall@gmail.com
310c12edeafe2c62c72077c3bf701b34385c631d
db27d4b3d6f846074646f7e7ee6ea40fd11ca0f5
/2020/3-16-企业微信/QYWX_APP/WXBizMsgCrypt.py
fb3fa24daeca51900ed1fff168d2cd1cf9ea67fb
[]
no_license
LuckDIY/Programer_Log
95ccd44c38754dad439738be0690661a7acac1ef
4a6bb5815d895e176d17e7a1ce53aa6ba5b774f2
refs/heads/master
2022-04-24T18:01:15.417673
2020-04-23T10:19:55
2020-04-23T10:19:55
258,235,185
1
0
null
2020-04-23T14:39:57
2020-04-23T14:39:56
null
UTF-8
Python
false
false
13,827
py
#!/usr/bin/env python #-*- encoding:utf-8 -*- """ 对企业微信发送给企业后台的消息加解密示例代码. @copyright: Copyright (c) 1998-2014 Tencent Inc. """ # ------------------------------------------------------------------------ import base64 import string import random import hashlib import time from Crypto.Cipher import AES import xml.etree...
[ "play4fun@foxmail.com" ]
play4fun@foxmail.com
5175266ea0a9201c574f0e0e99e425c541148de7
1191d49562881bd5a76ed285da572dd9e27a2270
/util/rand_mat.py
32160d98b848a6470e599289ac16e91becb97371
[]
no_license
jardelcarvalho/ufsj_computacao-paralela_tp1
28ebb6608d5dbd110033ee976979a7cdbbd47e0c
b781cb207ab96b140f3f839db12b680d7e376e4a
refs/heads/master
2020-08-24T19:02:01.403138
2019-11-01T05:31:54
2019-11-01T05:31:54
216,887,238
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
import sys import random p = [4, 9] # matrizes múltiplas de q (cond. Fox) mult = 1 for q in list(map(lambda x: int(x ** .5), p)): mult *= q path = sys.argv[1] dim = mult while (dim * 2) ** 2 / 10 ** 6 < 10: dim *= 2 print(dim) with open(path + '/' + str(dim) + 'x' + str(dim) + '.txt', 'w') as f: ...
[ "jardelfelipe.carvalho@gmail.com" ]
jardelfelipe.carvalho@gmail.com
9be9dbbde398f9702ac9b6070fcd6309a017b8b4
0957c3eb9bcc98ee864f33e8757ff7ad21341b47
/pserver/gcloudstorage/events.py
ec967a22f3eed7834fbb1c2fd0ab23b49fd3f4f5
[]
no_license
pyrenees/pserver.gcloudstorage
dc646a968e2fffc2dbb42892c1827b500e5d2f7d
6d6f8f516d1bf535a58331ea22c322787aa66a6b
refs/heads/master
2021-01-17T18:08:03.275519
2017-04-25T15:35:53
2017-04-25T15:35:53
71,178,626
0
1
null
2017-04-25T15:35:53
2016-10-17T20:31:43
Python
UTF-8
Python
false
false
472
py
# -*- encoding: utf-8 -*- from pserver.gcloudstorage.interfaces import IInitialGCloudUpload from pserver.gcloudstorage.interfaces import IFinishGCloudUpload from zope.interface import implementer from zope.interface.interfaces import ObjectEvent @implementer(IInitialGCloudUpload) class InitialGCloudUpload(ObjectEvent...
[ "ramon@MacBook-Air-de-Ramon.local" ]
ramon@MacBook-Air-de-Ramon.local
dceca5dce5afeb9649602b8fb173d5d72f947096
5eb3bcfd16561a195e7e25ec45e03bca0fe46a65
/basic/hello.py
eb88a5a6ea77d46d998426889b096b15689ab459
[]
no_license
aswin191993/googlepython
6eda6a5ca91e3b667b3443ce64e3f350bc17a394
47080eaa6f8208dfe042282ccd5025fd9b4e37f7
refs/heads/master
2021-01-01T19:46:44.540031
2015-02-03T08:28:58
2015-02-03T08:28:58
30,180,588
0
0
null
null
null
null
UTF-8
Python
false
false
969
py
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """A tiny Python program to check that Python is working. Try running this program from t...
[ "aswin191993@gmail.com" ]
aswin191993@gmail.com
606b617720c725a5c2d30fc3448864ac159a19c0
42d93fd16fb7c46b4317daaa2f988b138ff88b37
/ExampleOfPythonCookBook/ex_1_4.py
72d1054942c0b0485f2bff9bf0082172c6a02a2a
[]
no_license
zhan-ge/CodePy
6aa8af9f79bac9c4e0a0eae45ffe0318248536d6
969160d01fb7cc93845d153690528748e2b72388
refs/heads/master
2021-01-10T01:42:08.561432
2017-02-09T06:16:55
2017-02-09T06:16:55
36,662,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
# -*- coding: utf-8 -*- """ Project: 找到最大的或最小的N个元素 Purpose: Version: Author: ZG Date: 15/6/8 """ import heapq if __name__ == '__main__': nums = [1, 8, 2, 23, 7, -4, 18, 23, 42, 37, 2] print heapq.nlargest(3, nums) # [42, 37, 23] 取三个最大的值 print heapq.nsmallest(3,...
[ "zhange.zzg@gmail.com" ]
zhange.zzg@gmail.com
9db88f4cface810f0f50d597991b8c455ea86482
dc91d74daa0909d75b5512a1f0f7f32ded97cc85
/TuSimple/test.py
4cb26ef72c623bc822541c0388eb32f7a6269155
[ "MIT" ]
permissive
Ghustwb/PINet_new
a7cb5a2b413b26a26042e7496e64961d6d5f2d47
584618363c48436a8889d9d3e8aee59ab8445d18
refs/heads/master
2022-12-23T10:26:40.201272
2020-08-31T08:13:13
2020-08-31T08:13:13
292,445,075
1
0
MIT
2020-09-03T02:27:09
2020-09-03T02:27:08
null
UTF-8
Python
false
false
19,616
py
############################################################################################################# ## ## Source code for testing ## ############################################################################################################# import cv2 import json import torch #import sys #sys.path.append(...
[ "noreply@github.com" ]
noreply@github.com
84ce5330ca71b8b80f1c9606c660fff1e3be16f3
6999ebec0bed0aed8b9b8d185cd5a1e6f1de8b02
/code/StartTime/luanchtime/LuanchTime.py
846bcad4ac0bd8697234d8284df09e04e0fa4fe6
[ "Apache-2.0" ]
permissive
aohanyao/AndroidTest
5855fbdd615cb0e0a0c26c120df84911f244ab84
da9a97795d0b41ecea1e6ce6303c01b9c6a84826
refs/heads/master
2020-03-26T02:59:00.510846
2018-08-12T13:35:07
2018-08-12T13:35:07
144,434,076
0
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
# encoding:utf-8 import csv import os from time import sleep import time class App(object): def __init__(self): self.result = "" self.startTime = 0 # 启动app def luanchApp(self): cmd = "adb shell am start -W -n com.yida.cloud.client.party/.SplashActivity" self.result = os.po...
[ "928692385@qq.com" ]
928692385@qq.com
31c879c8ba1cc165a4cae8998dfb0e2df6294de1
e6328c5076fe0f1b6819c3eacca08e1c4791199b
/088. Merge Sorted Array/88. Merge Sorted Array.py
298b3b6ac8fa2d5db7fa23194a25b316bef5a8a1
[]
no_license
603lzy/LeetCode
16e818d94282b34ac153271697b512c79fc95ef5
9752533bc76ce5ecb881f61e33a3bc4b20dcf666
refs/heads/master
2020-06-14T03:07:03.148542
2018-10-22T14:10:33
2018-10-22T14:10:33
75,514,162
3
0
null
null
null
null
UTF-8
Python
false
false
335
py
class Solution(object): def merge(self, nums1, m, nums2, n): """ :type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: void Do not return anything, modify nums1 in-place instead. """ nums1[m:n+m] = nums2 nums1.sort() ...
[ "noreply@github.com" ]
noreply@github.com
c5bd4835d49e18d36d811280c498931e1fc1aeb4
6241b5c00c13130c0784371c5e4b4dc62d2adf51
/Week_02/1.两数之和.py
a920d0f6d312376d7b1cb0aece98c67f4e88671f
[]
no_license
rosencrystal/algorithm008-class02
ad5e9b61d14691661f444cb1a085325d66653ac2
df02fcdac839e9c5a9b82b5f51f16adc396d6f72
refs/heads/master
2022-11-13T06:18:00.326104
2020-07-05T05:12:24
2020-07-05T05:12:24
255,079,856
0
0
null
2020-04-12T12:41:21
2020-04-12T12:41:20
null
UTF-8
Python
false
false
2,253
py
# # @lc app=leetcode.cn id=1 lang=python3 # 法一: 普通解法 # [1] 两数之和 # 1. 找出所有比target小的数,并将它们放在一个数组less_target中 # 2. 依次从上面的数组中去数字然后做减法得到一个val,然后判断该值能否在less_target中找到,如果能则得到一个结果并返回;如果不能则继续,直到所有的元素被遍历 # import sys # @lc code=start # class Solution: # def twoSum(self, nums: list, target: int) -> list: # for i, num...
[ "rosencrystal@163.com" ]
rosencrystal@163.com
719050945a17c610cd14153ab0a9999137565f54
b18b4486c4be5e561316190fac398e132325d2b7
/longest_palindrome.py
eb96ced6ee18b735b3898b853f8adbd80c2bcd1c
[]
no_license
nooyji/algorithm
593b402e3b29a158e4639c703ef731e8164d8334
290892a8d62edc087b335e722aae20063d3359a6
refs/heads/main
2023-06-02T18:44:47.990935
2021-06-22T09:04:31
2021-06-22T09:04:31
378,690,089
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
def longest_palindrome(self, s: str) -> str: def expand(left: int, right: int) -> str: while left >= 0 and right <= len(s) and s[left] == s[right -1]: left -= 1 right += 1 return s[left + 1:right -1] if len(s) < 2 or s == s[::-1]: return s re...
[ "noreply@github.com" ]
noreply@github.com
3ac6c82a350037db4993c4067b468ec81eae4f8c
2d2c10ffa7aa5ee35393371e7f8c13b4fab94446
/projects/feed/rank/src/ensemble/avg-ensemble.py
a12bbdd39d04d5c936e702dd25060724929e18c6
[]
no_license
faker2081/pikachu2
bec83750a5ff3c7b5a26662000517df0f608c1c1
4f06d47c7bf79eb4e5a22648e088b3296dad3b2d
refs/heads/main
2023-09-02T00:28:41.723277
2021-11-17T11:15:44
2021-11-17T11:15:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
621
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # \file avg-ensemble.py # \author chenghuige # \date 2019-08-27 23:38:36.572572 # \Description # ==========================================================...
[ "chenghuige@gmail.com" ]
chenghuige@gmail.com
d1db12354091a6a30e9af2057e828efa009ed0e7
f94d58fbd7efed8a8c26274407d24658bbc4e7c5
/tensorflow-tests/test_mnist1.py
5a42b316c65dafac0fc96fd305163980043cc591
[]
no_license
ricsanfre/tensorflow-tests
ed2d64ec655cc0a06b756d39b3257556d305379f
a30070e09ce186aa7302ba0aea81b161a45f2492
refs/heads/main
2023-05-06T09:45:28.925833
2021-05-27T16:20:42
2021-05-27T16:20:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,060
py
import os.path import tensorflow as tf LOGDIR = "/home/ricardo/CODE/tensorflow-tests/logs/" DATADIR = "/home/ricardo/CODE/tensorflow-tests/data/" ### MNIST EMBEDDINGS ### mnist = tf.contrib.learn.datasets.mnist.read_data_sets(train_dir=DATADIR, one_hot=True, reshape=False, validation_size=0) def fc_layer(input, size...
[ "ricsanfre@gmail.com" ]
ricsanfre@gmail.com
905c0ef7a9ecf1647c322b2199e529f793019a71
e5aa66cd24921417899344d85fbf9f5004a15c2b
/db_create.py
3d228cded3a99c5ec819fc21c2397086ce28e37c
[]
no_license
MarsStirner/caesar
04af208b0ace5aa61c237d33d9ca07c3730e4e77
74ba0b714103d3468b467975707287325d461286
refs/heads/master
2020-12-03T00:33:22.704537
2015-02-13T09:27:14
2015-02-13T09:27:14
96,041,429
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
# -*- coding: utf-8 -*- #TODO: Add Migrations #TODO: Add Auto Creation blueprints Tables from application.app import db, app with app.app_context(): db.create_all()
[ "santipov@korusconsulting.ru" ]
santipov@korusconsulting.ru
d4bf4720ba5e864e43601258c0800bda5cef7f68
72041e3fff79e24930b15b5893c7f2268ac7e455
/thesis/thesisApp/migrations/0008_delete_book.py
acf89f9da2fcc5f0d92584e2d8f3d71e69662a48
[]
no_license
myyyy/thesis
4bdf78c1943bc30a1c9df74d3592b88e33f17b69
b65f3b2f42f6c3053c9dd0c41c9f5469a110a681
refs/heads/master
2021-01-10T06:58:13.372219
2016-03-16T14:57:05
2016-03-16T14:57:05
53,477,768
0
0
null
2016-03-18T07:22:59
2016-03-09T07:35:58
HTML
UTF-8
Python
false
false
305
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('thesisApp', '0007_book'), ] operations = [ migrations.DeleteModel( name='Book', ), ]
[ "100714131@qq.com" ]
100714131@qq.com
e4f6abf656404cad96834cc94e886dc356333681
c2f10e271bda2c2095237f6a4fef7524fc096814
/ex8.py
4de7440d680cd1d063921511912e346f3c7ee952
[]
no_license
speeser/learningpython
3732ef379ac3863daf7f096ddc498be92b150dd9
30352dfc1fd8418f6937d416dcfd40010d0a665d
refs/heads/master
2020-06-07T12:07:50.281284
2013-12-26T07:31:59
2013-12-26T07:31:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
#!/usr/bin/python #-- coding: utf-8 -- formatter = "%r %r %r %r" print formatter % (1, 2, 3, 4) print formatter % ("one", "two", "three", "four") print formatter % (True, False, False, True) print formatter % (formatter, formatter, formatter, formatter) print formatter % ( "I Had this thing.", "That you could ...
[ "dcbrind@linux1234.haagnet.net" ]
dcbrind@linux1234.haagnet.net
c83b7b5a535d0699dc3f91138cb2269d9e1b9364
fc6494e30a711079474b7cb08556d63b4f56e8dd
/Chapter4_variables.py
bffbcc5b855302900ae6e40baaae137daa0424c4
[]
no_license
wsgan001/YiwuLPN
a0b846c6cccd770b286f07f484243774d2a2f4eb
09235855a3547924a3bfd7695879ee96de784c90
refs/heads/master
2023-03-19T06:52:01.971288
2021-03-06T06:31:26
2021-03-06T06:31:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,695
py
#搜寻模型——生成变量 import pandas as pds import networkx as nx import numpy as np from industryconvert import convert edge09 = pds.read_csv("data/2009.csv",engine="python") node09 = pds.read_csv("data/2009nodeinfo2.csv",engine="python",index_col=0) edge10 = pds.read_csv("data/2010.csv",engine="python") node10 = pds.r...
[ "noreply@github.com" ]
noreply@github.com
658da8cbd49d008a6065fcecd403e3e1a0c07bd8
5d57b93a18b68948cb02321b6252b7777698a288
/cd2021-guiao-3-98388_98430/src/broker.py
9b4a8c904aaa1676bd09d7526d1121d070076753
[]
no_license
ricardombrodriguez/CD-PracticalClasses
3a11113c56a52953a6e1222da95b58a7224aa1ae
58a7a76bc1f4bf7ce2e29d4ea142f271206bf552
refs/heads/main
2023-06-17T02:13:22.963372
2021-07-19T17:18:06
2021-07-19T17:18:06
387,539,796
0
0
null
null
null
null
UTF-8
Python
false
false
11,108
py
"""Message Broker""" import enum import json import pickle from typing import List import socket import selectors import xml.etree.ElementTree as tree class Serializer(enum.Enum): """Possible message serializers.""" JSON = 0 XML = 1 PICKLE = 2 class Broker: """Implementation of a PubSub Message...
[ "ricardorodriguez@ua.pt" ]
ricardorodriguez@ua.pt
4d7ee48edaf76f609c4fc7645802036a5c11ea83
53994424a9f3ce98986f50462c39108456609632
/compiler/interpreter.py
4ded1b50720a353ab54d986bf828c747ab916eed
[ "BSD-2-Clause" ]
permissive
ethan2-0/Slang
e87e73f118006e124ff741792133023a4ecede0f
ce0844777b550f51b84d6eba7c80f1a5acf612ce
refs/heads/master
2020-03-22T21:03:14.678505
2020-01-25T02:37:43
2020-01-25T02:37:43
140,652,588
1
0
null
null
null
null
UTF-8
Python
false
false
11,246
py
from typing import List, Generic, TypeVar import typesys import emitter import parser import abc T = TypeVar("T", bound=typesys.AbstractType, covariant=True) # Not inheriting from abc.ABC: https://stackoverflow.com/a/48554367 class AbstractInterpreterValue(Generic[T]): def __init__(self, typ: T) -> None: s...
[ "white.ethan.l@gmail.com" ]
white.ethan.l@gmail.com
0807a7286c1ebab68bf7b40f1d17f15b483f1c8f
cbbc8652087c22f3474ca5d8db619d9b4210ca95
/com/kakao/cafe/menu/tea/lavenderTea.py
84b9af134ac344eea5460a5d87913ccd45d55e45
[ "MIT" ]
permissive
bamin0422/kakao-cafe
da1afa61347bc5fefd93b11bb1f329d913e679c3
f5aca5f6eaf3637eca6af136157f53737c0bffc8
refs/heads/master
2021-05-22T21:53:13.170602
2020-04-04T19:28:54
2020-04-04T19:28:54
253,113,215
2
0
MIT
2020-04-04T22:48:50
2020-04-04T22:48:49
null
UTF-8
Python
false
false
1,097
py
from com.kakao.cafe.menu.tea.tea import Tea class LavenderTea(Tea): def __init__(self): super().__init__() self.__lavenderTea = 1 self.name = "LavenderTea" self.__price = 3500 self.__water = 300 def getName(self) -> str: return self.name def setName(self,...
[ "nsh1998@kookmin.ac.kr" ]
nsh1998@kookmin.ac.kr
feea2a313d9429af3bdd7dea8044c61e70a33333
01ae57dd2ee10e12256147ec2c8aab2b24b589b8
/huster/server.py
1eaf18ee0d49a110054b7b44e8db7d8d3bfe0044
[ "MIT" ]
permissive
ZQPei/Huster
4be331fa3d8f419b2d473ef48ab66b800e6c854b
61e2cf7d52ec624c66e0755df2129bb906a3317b
refs/heads/master
2020-11-23T19:51:08.290688
2019-12-16T13:13:00
2019-12-16T13:13:00
227,796,868
8
0
null
null
null
null
UTF-8
Python
false
false
910
py
import os import sys if sys.version_info.major == 2: from .SimpleHTTPServerWithUpload_py2 import server elif sys.version_info.major == 3: from .SimpleHTTPServerWithUpload_py3 import server else: raise RuntimeError("Python version not found!") __all__ = ['build_server', 'run_server'] def run_server(po...
[ "dfzspzq@163.com" ]
dfzspzq@163.com