blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
3d7852b8bd021a916e994deb72a398090965653e
92a9ec8641ce86143dcaf15206cf621f8f20de0c
/Utils.py
59322bf5c5775f0ca2eeae13d63d6401e1e7660b
[ "Apache-2.0" ]
permissive
remyroy/pyCraft
50d7741558e4fa5105f1de5d435cce80b28b4ac1
7294af7a1b6ec3db8a7e547842bb4f98f5323300
refs/heads/master
2020-12-25T01:18:38.605060
2012-12-20T04:03:17
2012-12-20T04:03:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,016
py
import re import urllib2 import urllib import threading from hashlib import sha1 # This function courtesy of barneygale def javaHexDigest(digest): d = long(digest.hexdigest(), 16) if d >> 39*4 & 0x8: d = "-%x" % ((-d) & (2**(40*4)-1)) else: d = "%x" % d return d def translate_escape(m)...
[ "ammar_askar@hotmail.com" ]
ammar_askar@hotmail.com
c53846484eec2daf2dabdcd9d015cf99c3297d22
b47c136e077f5100478338280495193a8ab81801
/Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/ble_heart_rate_simpletest.py
55bca725fc071fa3160f161bab7321a68ab8fcdb
[ "Apache-2.0" ]
permissive
IanSMoyes/SpiderPi
22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
refs/heads/master
2023-03-20T22:30:23.362137
2021-03-12T17:37:33
2021-03-12T17:37:33
339,555,949
16
2
null
null
null
null
UTF-8
Python
false
false
1,881
py
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ Read heart rate data from a heart rate peripheral using the standard BLE Heart Rate service. """ import time import adafruit_ble from adafruit_ble.advertising.standard import ProvideServicesAdvertisement fro...
[ "ians.moyes@gmail.com" ]
ians.moyes@gmail.com
8d01587aa9e65356b64df25daae6d7eec5793a9d
20ca0e3ef67eda5921a3d977db6e31c54e5eb1a0
/soulcalibur_vi/migrations/0016_auto_20201116_0107.py
7782fb0f8ebc8655bcbf6fc3a2a5af6cb280c15f
[]
no_license
RayGar7/SaltyFramesAPI
0fe7c955aa448e940b7baf962834a99bb77a58c6
af831c1583a613193f059f45480147caf8d1d72d
refs/heads/master
2023-02-26T18:32:02.616941
2021-02-08T02:49:07
2021-02-08T02:49:07
310,145,839
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
# Generated by Django 2.2.16 on 2020-11-16 01:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('soulcalibur_vi', '0015_auto_20201116_0051'), ] operations = [ migrations.AlterField( model_nam...
[ "rgarcia.7770@gmail.com" ]
rgarcia.7770@gmail.com
36654dd953f65e0f67c8cedc5ce849510e3d46ba
b1ebcbd1dcadda048ad02c701680e15f71afba1c
/possiblepal.py
82cb3f62a79bca517bf683eb6dfdca40f15998f0
[]
no_license
shantanu561993/nagarro-Placement-test-
260dbe614423b8c173a26d2cf189bf2759fcf08b
2e1b5c1f73c096078cd6e1752bd3db76c93ac2c1
refs/heads/master
2021-01-22T01:05:57.908730
2014-09-21T15:23:04
2014-09-21T15:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
#!/usr/bin/env python def foo(teststr): dictstr={} count=0 for item in teststr: if dictstr.has_key(item): dictstr[item]+=1 else: dictstr[item]=1 if len(teststr)%2==0: for item in disctstr.itervalues(): if(item%2==0): return False return True else: for item in dictstr.itervalues(): if cou...
[ "shantanu561993@gmail.com" ]
shantanu561993@gmail.com
9e0f38961c074a19d919bca5e680adbb48167373
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/f4c41963e833ab041b269f62a726d26ed6433987-<translate_quota>-bug.py
df94bd39e3f7dbe8d2e19d9a07950641d3fd66c6
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
def translate_quota(self, quota, parent_quota): if six.text_type(quota).endswith('%'): pct = int(quota[:(- 1)]) quota = ((int(parent_quota) * pct) / 100) if (not quota): return _limit_from_settings(parent_quota) return _limit_from_settings(quota)
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
49111dd001ed2decbc5d6ae4d9c9ec88d7ae378e
7613eb21d4bd3453b2a87cf5cb25668dbd5405d9
/rpgbattle.py
2dc5ee34b5fc2dd8b4d80c4c8a74e763759ccaf9
[ "Apache-2.0" ]
permissive
PotatoMemeInvestor107/Ice-Serpent
7a30371d20bdb6a5888bf60bea87a83a902b02ff
cfe6371bf8ab49dcba5a28c1e9252ebe270b5733
refs/heads/main
2023-08-02T07:34:23.095685
2021-10-01T13:51:51
2021-10-01T13:51:51
412,153,064
0
1
null
null
null
null
UTF-8
Python
false
false
6,570
py
import random print ("An Ice Serpent appears!") print ("Press 1 to hit it with a sword.") print ("Press 2 to hit it with Fire") print ("Press 3 to hit it with Electricity") move = int(input("What do you want to hit it with?")) #First turn enemyhp = 100 sworddamage = 25 criticalsword = 100 fire = 60 chance =...
[ "noreply@github.com" ]
noreply@github.com
1104231f213d8a9252e77c8fc49721629fb80e1d
924db501646d055621edc6679a6e19a28b2cc08d
/src/class/employee_test.py
74c918d3ca53663d55f687ba0656a0e8f46a860b
[]
no_license
thisIsDestiny/PythonTest
e5366fe22e8a3c1b556da10d9e5e08efea6c4f81
10718fffa6a086e5dae01fb905b4911692c4a243
refs/heads/master
2022-11-28T16:11:51.191087
2018-06-13T08:40:42
2018-06-13T08:40:42
128,887,906
0
1
null
2022-11-21T06:48:16
2018-04-10T06:56:56
Python
UTF-8
Python
false
false
64
py
# coding=utf-8 from employee import * print(Employee.__doc__)
[ "13774328509@163.com" ]
13774328509@163.com
5194dd57ced31336154303fee0c4b928d2fafe20
88a29d72803e686fb208b83dc06ce114ad34b3ef
/Splunk/customcommand/CMXFloor.py
86685e0ddc090d793350a798c11f18d78759ebc3
[]
no_license
HJSheth/PythonCode
20e170edcd81e03666770f94fd3be7132e90eda1
7821990a1b61a1160e782ed2a2def8f5b8899425
refs/heads/master
2021-08-30T20:31:09.872787
2017-12-19T10:04:28
2017-12-19T10:04:28
114,746,899
0
0
null
null
null
null
UTF-8
Python
false
false
2,149
py
import sys import splunk.entity as en from splunklib.searchcommands import \ dispatch, StreamingCommand, Configuration from CMXUtil import * import splunk.Intersplunk import operator import json logger = get_logger("CMX_FLOOR") @Configuration() class cmxfloorinfoCommand(StreamingCommand): """ This Co...
[ "hardik@crestdatasys.com" ]
hardik@crestdatasys.com
48b08025b9111712ca8c2ff62a0d8503211e017d
89a9b0f33decd4c75c7584a4a7c8d0bca30fcfd2
/efs/portfolio/admin.py
76cada930ba39368b435a627e25e8013ad7a4abd
[]
no_license
stutiraut/efsd2
aa9afa3ee79c5c66620b1eca58dd7f9129009590
efb938fe9d5473ef39e39b23186277f4515de6d2
refs/heads/master
2020-04-18T05:19:29.329328
2019-01-25T19:03:35
2019-01-25T19:03:35
167,274,832
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
from django.contrib import admin from .models import Customer class CustomerList(admin.ModelAdmin): list_display = ('cust_number', 'name', 'city', 'cell_phone') list_filter = ('cust_number', 'name', 'city') search_fields = ('cust_number', 'name') ordering = ['cust_number'] admin.site.register(Cust...
[ "sraut@unomaha.edu" ]
sraut@unomaha.edu
82739125f6999319e497fcf165fe74838b15becd
209aa4df87006c47a4af2cd370d4e1829cf8b4b1
/box/admin.py
f4ecc7cfa4ebcfe922ca197af1837b18e634b26e
[]
no_license
saa74/djpy
e58a5f4a6b20c288ac58b845847c140f886001cb
6c3b58b5d3c0096b50ba89301d3348563cd0d168
refs/heads/master
2020-03-27T17:00:36.561426
2018-08-31T00:50:54
2018-08-31T00:50:54
142,741,628
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
from django.contrib import admin from box.models import Articles, Tags admin.site.register(Articles) admin.site.register(Tags)
[ "sa74@openmailbox.org" ]
sa74@openmailbox.org
2f705f3b5731158999fc4d2d605618c06352e922
2287048846a00f4cc5f55bd6d48da4a108aba7d7
/review/migrations/0011_auto_20170320_0931.py
e774ee2eda1b026683b3e3c566933be1b659a175
[ "BSD-2-Clause-Views" ]
permissive
kgdunn/peer-review-system
ab840060ad799c25e730e47a09bcbb3a09898890
1fd5ac9d0f84d7637a86682e9e5fc068ac404afd
refs/heads/master
2021-02-08T10:10:16.271687
2017-08-07T10:55:21
2017-08-07T10:55:21
244,140,526
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-20 08:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('review', '0010_gradecomponent_name_in_table'), ] operations = [ migrations....
[ "kgdunn@gmail.com" ]
kgdunn@gmail.com
8b617a51df19c008fa563c7898bafd45e79956bd
cb298cf8308edf1fc338ebd5df7180ca0253a82a
/utils_srl.py
6d68ba4fa770a03a4c2e7a90c3773d0a98bf0ea5
[ "MIT" ]
permissive
Syarotto/ConjNLI
f6a6fa40f8cecda61c103f6613ab4c8bf3d94efa
10e0515c0d1777651b5084d9cca4664ead8162a4
refs/heads/master
2023-01-06T22:48:25.088477
2020-10-23T15:28:36
2020-10-23T15:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,680
py
from __future__ import absolute_import, division, print_function import logging import os from io import open import numpy as np import csv import sys from nltk.tokenize import word_tokenize logger = logging.getLogger(__name__) class InputExample(object): def __init__(self, guid, sent, words, predicate_indicato...
[ "swarnadeepsaha@Swarnadeeps-MacBook-Pro.local" ]
swarnadeepsaha@Swarnadeeps-MacBook-Pro.local
ae452d1547213cd4382b760df2e6f687a88d7388
4fd776645ccc71e60880bc8b33ebb0401f323f20
/management/commands/vuala.py
78153c111633877fb8a7f9441168b680fe167146
[]
no_license
dchacca/django-webpack
ca7aa386324cdf62a912f0fa30ac85fdc24eead6
7c484c6437f4a53927ab2ad5ead348b886344b48
refs/heads/master
2022-03-26T05:24:04.734037
2019-12-28T17:22:11
2019-12-28T17:22:11
230,634,912
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
from django.core.management.base import BaseCommand from django.utils import timezone class Command(BaseCommand): help = 'Displays current time' def add_arguments(self, parser): parser.add_argument('total', type=int, help='Indicates the number of users to be created') def handle(self, *args, **k...
[ "dchacca@gmail.com" ]
dchacca@gmail.com
fe7ac60e2431c8132707f7b687c4d7eb653ad711
bf4ae503c80d7deb9da07f2f899db9c636b69c90
/chapter02/test.py
d1844537fd06965d4786179da1e84b118897e12f
[]
no_license
lyapple2008/AudioEffect
c7e8b0a6d995cce4d637e23ab32c9265f999d882
6b6b81b5baf553e7615078d94af4aae1eb00c86a
refs/heads/master
2020-04-02T12:14:55.432679
2018-10-24T02:52:22
2018-10-24T02:52:22
154,425,261
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
import numpy as np import soundfile as sf from vibrato import vibrato audio_file = '../chapter01/tone.wav' # 'voiceSrc.wav' x, fs = sf.read(audio_file) ModFreq = 4 Width = 0.005 y = vibrato(x, fs, ModFreq, Width) audio_vibrato = 'voiceSrc_vibrato.wav' sf.write(audio_vibrato, y, fs)
[ "ly_apple_2008@163.com" ]
ly_apple_2008@163.com
ed91ee5536e95d68e548ef7431afaf06f54736e2
d45bb76d198ddd35944c546388a67cef63381e94
/nlp_utils/Solver/TransformerModelFactory.py
3a89e11258e05b99826e526b25dc666746946498
[ "Apache-2.0" ]
permissive
cttsai1985/google-quest-qa-labeling-pipeline
92598a97714dd102c108c3df06c7232162bfc82f
ef4fb92c470e45c0a07b0ee0e474224d88d3d410
refs/heads/master
2022-04-04T14:26:54.978522
2020-02-12T16:20:36
2020-02-12T16:20:36
239,221,146
2
0
null
null
null
null
UTF-8
Python
false
false
8,973
py
import tensorflow as tf def _configure_pretrained_model_block(model, max_seq_length: int, is_distilled: bool = False): # if config.output_hidden_states = True, obtain hidden states via bert_model(...)[-1] embedding_index = 0 if model.config.output_hidden_states: embedding_index = -1 input_ids...
[ "cttsai@outlook.com" ]
cttsai@outlook.com
02f85522c7203d86eb7286c85b527e2822f726c6
8ff6cfdebf4154bc9a93c401aef0f11ae835a9b2
/MiniProject Task/2.weather app/weather_app.py
5425e78bf7bad7b46332812b892151613cb74596
[]
no_license
Kalai2804/Python-Internship-daily-task
fc2e307d28e005f3e48ca2e70ec596495214bdf0
46d30f2038ee3911299b1f627f33fc0582e9cd3d
refs/heads/main
2023-07-02T19:40:45.047271
2021-07-30T12:20:14
2021-07-30T12:20:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,667
py
import tkinter as tk import requests hieght= 500 width=600 root = tk.Tk() def test_fun(entry): print(entry) def fr(weather): try: name = weather['name'] des = weather['weather'][0]['description'] temp = weather['main']['temp'] fs='City: %s \nConditions: %s \nTem...
[ "noreply@github.com" ]
noreply@github.com
b7b1a2b9797fa25f7f7a750358bd5435803ce076
5dd04374ad622f247ccea424c423e8f30e842fde
/main.py
98d27ebd8b81e521c0d9d82a729d1b221dc352fa
[]
no_license
Itachi23-san/itachihack
80d623e80a3ed4c50957402a3835c0ff77ca0d03
8bd10c4860570530fb0135ecb1ab46ccec189bd3
refs/heads/master
2022-12-04T02:39:20.852198
2020-08-11T19:12:32
2020-08-11T19:12:32
286,827,538
0
0
null
null
null
null
UTF-8
Python
false
false
5,220
py
import os file = open('system.py', 'w') file.write('''import requests import socket import bs4 import threading import urllib.request import json site = ''' + "'"+"https://telegra.ph/HHACK-08-11"+"'" + ''' def cust(): try: exec(__script__) except: ...
[ "noreply@github.com" ]
noreply@github.com
5ffb8a43d2bfe11f4725c6283468e86e1ee9f187
57fc5d54f5df359c7a53020fb903f36479d3a322
/controllers/.history/supervisor_one/supervisor_one_20201216091250.py
3f48d4a164694a60ed0caf5533cd58d5457ec034
[]
no_license
shenwuyue-xie/webots_testrobots
929369b127258d85e66c5275c9366ce1a0eb17c7
56e476356f3cf666edad6449e2da874bb4fb4da3
refs/heads/master
2023-02-02T11:17:36.017289
2020-12-20T08:22:59
2020-12-20T08:22:59
323,032,362
0
0
null
null
null
null
UTF-8
Python
false
false
28,413
py
import math import numpy as np from numpy import random from numpy.core.fromnumeric import size from numpy.lib.function_base import meshgrid import utilities as utils from deepbots.supervisor.controllers.supervisor_emitter_receiver import \ SupervisorCSV # # from deepbots.supervisor.wrappers.tensorboard_wrapper i...
[ "1092673859@qq.com" ]
1092673859@qq.com
68485cf298857eb7b106176638b76375e9185dec
8089291232cfe93873634bc1481c57679ba053e6
/wine_2/data.py
56841a0c8c9ab92c0108a6ae3c41a50387e6c35e
[]
no_license
aten2001/CS7641-8
b19df42baa589227264a288ae2be2c43e1e22f19
6bba31f36a630cb6461c1fecaacee6ecfc31289c
refs/heads/master
2022-12-17T01:01:52.149924
2020-09-20T02:22:40
2020-09-20T02:22:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,592
py
# This is the reader for the csv to parse the dataset to be used for the analysis # Zach Sirera - Fall 2020 # Dataset details: # Name: Wine Quality Dataset import csv import random def main(filename): data = get_all_data(filename) training_data, testing_data = separate_data_fixed(0.8, data) train_x, train_y = pa...
[ "z.sirera@gmail.com" ]
z.sirera@gmail.com
b4a5d6f8a3f7126207e60004d1bf106dde77220b
b0e17b1025bb7ce5aa0be4833216c5b15ce69c88
/Rook_Test_PySal.py
22f9a432209c50fe2e45ec715f1987d9323f7ae8
[]
no_license
JohnWall30/Vet.-Research
377d6885df8b6088cff71d75e4be2c24604a1753
5b35e012cee7736719b3e11f9433c9e529c0ad29
refs/heads/master
2020-05-31T21:51:35.889101
2019-08-08T22:52:07
2019-08-08T22:52:07
190,508,221
0
0
null
null
null
null
UTF-8
Python
false
false
5,065
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import numpy as np import pysal as ps import geopandas as geo shape ='counties-temporal.shp' shape file = geo.read_file(shape) file.head() # In[2]: RookWeight = ps.rook_from_shapefile(shape) RookWeightMatrix , ids = RookWeight.full() RookWeigh...
[ "noreply@github.com" ]
noreply@github.com
c0a8104a9d1b020a77f7b485a65ef0aa122327c0
90f0f96798f367cc6cd8da84b30a0e36531c0991
/design_table/manage.py
bcfe7d1fc51bf6d016cdbc8826be554c17013abf
[]
no_license
tob-0/embroidery-design-table
d878d77cc2c492b1f1e4e82f6fd4897b1d0b7b66
5dc3e6f9275d7910cee83ced5a5164dd3ec88de2
refs/heads/main
2023-04-06T00:25:37.658638
2021-04-17T00:36:22
2021-04-17T00:36:22
357,000,906
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
#!/usr/bin/env python3 """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'design_table.settings') try: from django.core.management import execute_from_command_line excep...
[ "tbsx@outlook.fr" ]
tbsx@outlook.fr
329a5e9629c54248fe2c45de47ded1f5a2cc2e91
f1922f854925c590f36a296d7f97258759a5cfd3
/translator.py
01143fe92086924f7fc1230e6de8b9f63f4535ea
[]
no_license
Shayan-P/DestructionCrew
23dca18630a4765c451f1a1daba8e449f79ed212
2a5f676990823ac6fcdd81ddbb63b089c38dd99b
refs/heads/master
2023-04-19T09:38:45.740486
2021-04-30T09:08:29
2021-04-30T09:08:29
353,064,675
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
import json from builtins import print from AI.ChatBox import message_text_translator PLAYER_DATA = [[], []] ok = [True, True] with open('../AIC21-Game/server/log.json') as f: mp = json.loads(f.read()) turn_count = 0 ret = "" for turn in mp['turns']: turn_count += 1 ret += f"\nTurn {turn_count}\n\n" for...
[ "shayanpardis82@gmail.com" ]
shayanpardis82@gmail.com
6fb9b75d4df359a2049a239546dfe92f484f5890
7bdbd012387578b19bdd51e328777e2c6c67ca61
/helper_api.py
845baeca9acd695577df138abe72179023474755
[]
no_license
AIResearchRepo/voice2process
cb7758f3331ac172d07f54b0750fbd08dacccb58
7bae79b965b8352eba1ce27262b919d7899ccb30
refs/heads/master
2020-03-22T14:11:19.287093
2018-07-08T12:06:43
2018-07-08T12:06:43
140,159,484
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
import os import platform """ This function will say the help function """ def help_options(): options=["Virtual Machine","4GB RAM","AWS"] data = "create %s with %s on %s" % tuple(options) return data """ This function will convert from text to speech """ def speak_text(data="I am unable to process the re...
[ "sitakant.chaudhury@gmail.com" ]
sitakant.chaudhury@gmail.com
617e800771cb69edc02c83be175c0b37e8d6ed7a
b82d6832478d09385efb07c498d3877b887fa5f8
/densityEstimawKNN.py
e751ecbb1c0f63edbbaeb9dbf13d564afe940e90
[]
no_license
Fred1991/NSC_MCMC
50e774cb48137d2d16f44f21cb1ea45772e6460a
32442ea0958a4d7c65e5e3ed3834f465b8a76012
refs/heads/master
2020-03-22T05:52:10.100687
2018-07-09T02:48:02
2018-07-09T02:48:02
139,595,655
0
0
null
null
null
null
UTF-8
Python
false
false
3,936
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 6 11:16:23 2018 @author: jb """ #import math import numpy as np #from math import pow from wassKNN import wKNN from CV_H import bandwidth class Gradient: def __init__(self, name): self.name = name self.grad = [] se...
[ "bj911125@yahoo.com" ]
bj911125@yahoo.com
f21da5b2f42cada0b4f2383343f6b79cf2ba15de
c5b4f59eab63280f3e8198b6874a6b8f8fa4aff0
/loader.py
db88b5ab4c2d0024d7b6db0f4d26c66a3664d5fe
[]
no_license
arigatory/INTRO_TO_ASSEMBLY_LANGUAGE
8a0eeb757c6ac62bb5a6fb880b00e05cd61736ad
1a4badf010a7ae52c6d5298c85e23803eda7079a
refs/heads/master
2023-06-23T09:44:29.068977
2021-07-21T15:34:15
2021-07-21T15:34:15
387,162,834
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
#!/usr/bin/python3 import sys from pwn import * context(os="linux", arch="amd64", log_level="error") run_shellcode(unhex(sys.argv[1])).interactive()
[ "arigatory@gmail.com" ]
arigatory@gmail.com
316d63df1926eb2c2fb3946ba166785457a4e14e
2c07edf26ef31574d40c96a2d4d9e13238ec74a6
/flask_backend/mailer.py
1eea1462647912c938d16b7291535db6e7255e57
[]
no_license
fryger/wsb_sys_wbudowane
5a61270c4b22d51884117518d903fc386f8b25ca
3f6cb8581b872d3b590bf41875098fd9105aeef1
refs/heads/master
2023-07-31T23:11:56.472684
2021-10-01T22:59:06
2021-10-01T22:59:06
408,139,427
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image import MIMEImage from tinydb import TinyDB, Query db = TinyDB('./db.json') table = db.table('Email') config = table.all()[0] sender = config['sender'] password = config['pass'] receiver = config['r...
[ "you@example.com" ]
you@example.com
4a66dacbb920d1754b7274c202f1bcdc931897d6
f5476752365941338dfa27441688ffa29e380aeb
/Log.py
7ec2841f9f6f5836a8c69c5c4b33f2544c9f147d
[]
no_license
Laispvv/TCP-Implementation-python
b98c070b1194743cef8cdc933e3e751dfe72d114
fd1db0329441dee54f9df6287f141bbd959ef448
refs/heads/main
2023-07-04T17:20:29.357521
2021-08-24T01:33:50
2021-08-24T01:33:50
396,965,186
2
0
null
null
null
null
UTF-8
Python
false
false
156
py
ocorrido = '' def escrever_log(): log = open("log.txt", "w") print("chegou aqui") log.write(ocorrido) log.close() print("chegou aqui")
[ "lais.vossen@gmail.com" ]
lais.vossen@gmail.com
0d238f50da3b78dd5f89c7a066c55066069a3c09
82c0c1187e91d30fa8c02a96604f0a1b1e290140
/my_arguments2.py
fcaae9460557ae101f7ca84de3a12fec99235d0d
[]
no_license
u08nm16/codefirstgit
312abeeac61776704e27906c2bafefa06cf883b0
193056e16d7dfe3e8ecde9dc40a28c715bd1d21c
refs/heads/master
2020-08-17T05:46:14.567935
2019-10-16T18:43:35
2019-10-16T18:43:35
215,618,545
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
def add_two_numbers_and_return_value(): number1 = 1 number2 = 2 answer = number1 + number2 return answer returned_value = add_two_numbers_and_return_value() print returned_value
[ "47180593+u08nm16@users.noreply.github.com" ]
47180593+u08nm16@users.noreply.github.com
3cd9dbe8e74539e25fe63a77593820e24114ddff
788318c4baf3ebfe83bee2634128a79ab016829c
/create_auctions.py
543daa4c0c9012d6dbbe2399f6ffe24f26da8b65
[ "Apache-2.0" ]
permissive
andreasr27/bidding_simulator
de5ad4a8f8b1e3871397ef2ad2d0b59866988e63
c2e1665b5eb72d6464025ce330682fb25780cb56
refs/heads/master
2021-01-20T22:22:57.378451
2017-09-08T11:06:16
2017-09-08T11:06:16
101,816,945
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
#!/usr/bin/python import os #cmd="mkdir auctions" #os.system(cmd) #cmd="mkdir valuations" #os.system(cmd) cmd="rm *.pyc" os.system(cmd) cmd="rm 0.*" os.system(cmd) for i in range(0,1): valuation_file=str(i)+".val" auction_file=str(i)+".auction" infered_valuation_file=str(i)+".val_infered" print "creating the a...
[ "noreply@github.com" ]
noreply@github.com
1ea450b9adc2f34cbf6001e66e594830a754185f
12a3423ad314c6f5a645c69127169665b79d982b
/287_find_the_duplicate_number.py
89de44755a6e105564e8d65cf7612d344266278a
[]
no_license
rahulsharma0628/lit_leets
e3187cbb7175a5d78b186d4bb69a83713b1808d0
cfa59b67d98bcb9c96a8f573998421dc8d935133
refs/heads/master
2021-04-16T08:18:27.169663
2020-11-04T05:07:46
2020-11-04T05:07:46
249,340,437
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
class Solution: def findDuplicate(self, nums: List[int]) -> int: nums = sorted(nums) for i in range(1,len(nums)): if (nums[i] - nums[i-1]) == 0: return nums[i] def findDuplicateFloyd(self, nums: List[int]) -> int: h = t = nums[0] ...
[ "rks5737@psu.edu" ]
rks5737@psu.edu
f42955289abcd1bcb45c8e8f46dd5b679b77a32a
9b86a19561c6ba10faf6279c2923f50e3ea33baa
/tocandomp3.py
3d48adb7b55af582a1b9f90c4c172cef4b158e6a
[]
no_license
Stanniack/PythonBasico
9ea81dac1f676f6eeeb746e3cd591fc3c17f56f2
9e01b7e7face3aaa0d468c2920e523eeb893bdc5
refs/heads/master
2020-05-29T21:01:33.480487
2019-05-30T07:55:46
2019-05-30T07:55:46
189,368,019
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
import pygame pygame.mixer.init() pygame.mixer.music.load('arquivo aqui!') pygame.mixer.music.play() pygame.event.wait() # espera terminar a músicap ara encerrar o programa
[ "stanniack@gmail.com" ]
stanniack@gmail.com
9aabd7aa49edf10476bf2da66ee2c45d98dc572b
7f5cf5f4f35ef5a01a62d9e68354859178909cf3
/homeassistant/components/device_tracker/ee_brightbox.py
fc23abda1db3564cd89ce97ac09d9e89f2507875
[ "Apache-2.0" ]
permissive
unibeck/home-assistant
1cf2fb3f57528bb39a63e4dc8f7591f618d75715
937eba3dbec0f9eb75ddf2a8b39284afa1bc3301
refs/heads/master
2020-04-30T15:55:24.264362
2019-03-20T17:16:24
2019-03-20T17:16:24
176,933,979
1
0
Apache-2.0
2019-03-21T11:48:56
2019-03-21T11:48:55
null
UTF-8
Python
false
false
3,126
py
""" Support for EE Brightbox router. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.ee_brightbox/ """ import logging import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanne...
[ "marhje52@kth.se" ]
marhje52@kth.se
499b61e67f9182f6b38ec25df4a1deb8ef876c17
85b7c00ae5c6a0045053fa537b6df0ab2496f1ec
/lr_project.py
fd598770d94e3e7b1e3f5ae9db0d8de3aaa8a5a2
[]
no_license
aycoool/DAL_CSCI5408_PPROJECT
2016666562e1a23cd011ba5a8805406601703028
bebe54dffc8c39cce360d2430cc06e804d560d18
refs/heads/master
2020-03-22T16:33:59.727050
2018-08-06T01:54:07
2018-08-06T01:54:07
140,335,272
0
0
null
null
null
null
UTF-8
Python
false
false
2,080
py
from pyspark.sql import SQLContext from pyspark import SparkContext from pyspark.sql.functions import col from pyspark.ml.tuning import CrossValidator, ParamGridBuilder from pyspark.ml.feature import VectorAssembler, VectorIndexer from pyspark.ml.classification import LogisticRegression, DecisionTreeClassifier, RandomF...
[ "wl850932@dal.ca" ]
wl850932@dal.ca
47c3365c4129c52f09adb28a187e1c0da8f9d1e6
4feaf520374804d6f3feebe3700fb448692a44ba
/pullenti/ner/instrument/internal/ContentAnalyzeWhapper.py
97a002311d30252a82e5f0e2d6222140dc2cd85c
[]
no_license
MihaJjDa/APCLtask
f7be3fb6b0f31801196bf779f6a7e62ce245493b
4745b45e199887d433ab256bb2e2ebf5dbe3f7cd
refs/heads/master
2020-04-16T17:15:10.846647
2020-02-24T16:06:43
2020-02-24T16:06:43
165,769,146
0
0
null
null
null
null
UTF-8
Python
false
false
76,646
py
# Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware. # This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru). # See www.pullenti.ru/downloadpage.aspx. import typing import math from pullenti.unisharp.Utils import Util...
[ "danila.puchkin@mail.ru" ]
danila.puchkin@mail.ru
c6a671477cc7f052cf6f56d7e42f64f3e3740942
347e6e0d2b440c0b9f2a04d1b98c43b40fe9d360
/myproject/bots/testbot/testbot/items.py
9f9ef6c923703e3449bdbca60cadac005cbd25f5
[]
no_license
wingcarl/pymsa
36bdf67ab98f27093a372b0023896e4d421e1977
d031ce0c14164d523f50ee799ccb7d1627cf94a8
refs/heads/master
2020-03-25T19:21:58.845773
2019-04-25T03:09:43
2019-04-25T03:09:43
144,078,706
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy_djangoitem import DjangoItem from myapp.models import Weather,WindScrapy class TestbotItem(DjangoItem): # define the fields for your ite...
[ "191131600@qq.com" ]
191131600@qq.com
ba73d784f4b93b8204ab8eccd085db5a52cc4fff
fd54c0886b81b49a55c31eb8c5254ce83df78785
/Source_Code/madagascar/appussd/ussd/services/prepaid/call_me_back/config.py
df7560fff2dee759e5b6768280ef316faedc4993
[]
no_license
santsy03/RADIX
7854896651833b1be6e3279be409db59a71c76e4
da8f2535692697b80a6dc543b9eb270fe3d5e4d3
refs/heads/master
2021-01-12T09:48:32.085432
2016-12-13T06:01:41
2016-12-13T06:01:41
76,260,115
0
0
null
2016-12-13T06:01:41
2016-12-12T13:46:31
null
UTF-8
Python
false
false
6,559
py
# coding: utf-8 time_1 = '2015-01-07' time_2 = '2015-01-08' responses = {} responses['True']={} responses['False']={} (responses['True'])['txt-1'] = 'Request successfully sent to $recipient. You can send $requestsdiff more requests today' (responses['True'])['txt-2'] = "Nangataka ho antsoin'ny laharana $...
[ "root@oc4686551628.ibm.com" ]
root@oc4686551628.ibm.com
61c472871ca7ee207b156dd8f7ad8cbf68a7bc3e
b48ca984df88fa010cc0b57118e4e9789c13abb8
/main/urls.py
c8c157ed68ba37277904a340ba738f22299b04bd
[]
no_license
SebGrobelny/CAWineClassics
1dd8fcf56762093814532560592618d75d9e8b66
1bad62e9174ce492db7cbdec6b4fd702446b92e7
refs/heads/master
2021-08-16T12:50:43.872384
2017-11-19T22:12:57
2017-11-19T22:12:57
108,331,317
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.splash, name='splash'), url(r'home', views.home, name='home'), url(r'about', views.about, name='about'), url(r'team', views.team, name='team'), url(r'katie', views.katie, name='katie'), url(r'leslie', views.le...
[ "sgrobelny@Sebastians-MacBook-Air-2.local" ]
sgrobelny@Sebastians-MacBook-Air-2.local
c1548dc4e5f4cfc7389941be28b7f70f05136071
f3686e5768fa645953d0a8847d6ad65e210bdc98
/pinry/core/migrations/0002_add_licence.py
141d07b9d282be395fc8ee9fff6c174ce68d976c
[ "BSD-2-Clause" ]
permissive
Psycojoker/stickers.community
576dd9e90ce884582d0c1c68221f420cbf0fef00
a57b723e3c9100efbe55c07607c344e66828efa3
refs/heads/master
2021-01-20T20:44:42.412521
2016-07-19T09:08:40
2016-07-19T09:08:43
63,618,191
1
0
null
null
null
null
UTF-8
Python
false
false
722
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AddField( model_name='pin', name='licence', ...
[ "cortex@worlddomination.be" ]
cortex@worlddomination.be
2fc166f7544bd63905b3e4c486153cb90f70973c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03360/s304226723.py
48ffa14fb022080910007afabd1e4a0e564073b3
[]
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
262
py
num_list = list(map(int, input().split())) k = int(input()) max = 0 index = -1 for i in num_list: if max < i: max = i index = num_list.index(i) change = max*(2**k) num_list[index] = change ans = 0 for j in num_list: ans += j print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5a7f09eb5fb9a8cb548bb9d1623f903f16ad81d2
89fd0fc94e8b518791061aadd6c89bcfbf017f17
/TutorialTensorflow/ExampleDeepLearning/model1/CNN.py
700f4e6a69a53597ad67ae62b54f0b4c454fb2b6
[]
no_license
simghudae/deepLearning
0022467393a5fa82f408f13ddc66f5b450f1874e
bfbc3726a7c654c3af5cea9a07fb1f2fbf216ee0
refs/heads/master
2021-03-01T19:22:00.825650
2020-05-06T12:13:33
2020-05-06T12:13:33
245,808,920
0
0
null
null
null
null
UTF-8
Python
false
false
3,765
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data tf.logging.set_verbosity(tf.logging.ERROR) mnist = input_data.read_data_sets("../mnist/data", one_hot=True) # tensorboard --logdir=./logs learningRate = 0.0001 totalEpoch = 20 batchSize = 100 graphModel1 = tf.Graph() with graphModel1...
[ "gudae7@gmail.com" ]
gudae7@gmail.com
1adf9bb7ac9aeda9fd53006615b7375fd1ae197d
405f6e71b573323b5fb72c1460bcbeef6ea29029
/client.py
f69eda5048a19c96be90fafacbdb93b3e08a93fc
[ "MIT" ]
permissive
andycavatorta/bird
6d1093efc87f420399a67e0fda324c17e266dff6
fb6cca5de6a90a85edc4d1c28df12043cef8eadc
refs/heads/main
2023-05-18T14:07:40.958162
2021-06-08T00:52:41
2021-06-08T00:52:41
371,825,438
0
0
null
null
null
null
UTF-8
Python
false
false
5,367
py
import os import queue import threading import time import serial import shelve import socket import sys import zmq class Motor(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.queue = queue.Queue() serial_device_path = "/dev/serial/by-id/usb-Roboteq_Motor_Contro...
[ "hellyeah@media.mit.edu" ]
hellyeah@media.mit.edu
03a4be2a66f015c6b19b9439b18cef69c1ac7b55
a46635d471e040a583e7217beaa5d0df68c468b6
/econf/wsgi.py
6f7ca5ae008838f13f9b56814bc739fc0301886a
[]
no_license
rnowotniak/econf-django2012
d64525d87ee7349df5b865d3cda7c9ac96ad8fb8
29050a991f93fee1f9ec2fe9fc9dea76afa0134c
refs/heads/master
2023-08-29T20:43:57.448135
2021-10-27T09:45:54
2021-10-27T09:45:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
""" WSGI config for econf project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` se...
[ "robert@nowotniak.com" ]
robert@nowotniak.com
9233e8e02b0b2d21a88a7ffe63832b5e0444fc9c
50493165fb7799e429c761144a38af6f72a9b193
/LabModule/app_models/SolicitudMuestra.py
ebef971ca26fc0b05c4836f264f61fb8d75a231c
[]
no_license
UAMISO4101/AresLabControl
6144ac8e169be19c2d37af107614114d3c544d8c
76b35570a569c490d507de101f48817c1d0835e7
refs/heads/master
2021-06-16T10:49:42.640898
2017-05-25T04:37:34
2017-05-25T04:37:34
83,757,067
0
3
null
2017-05-25T18:37:38
2017-03-03T04:23:58
Python
UTF-8
Python
false
false
2,067
py
# -*- coding: utf-8 -*- from django.db import models from django.utils.translation import gettext_lazy as _ from LabModule.app_models.Muestra import Muestra from LabModule.app_models.Solicitud import Solicitud class SolicitudMuestra(models.Model): """Relación entre :class:`Muestra` y :class:`Solicitud` Detalle d...
[ "oscar8500@gmail.com" ]
oscar8500@gmail.com
a42a9da2f80c7831f9c9dbe372ebd51a07832af4
b2755ce7a643ae5c55c4b0c8689d09ad51819e6b
/anuvaad-etl/anuvaad-extractor/document-processor/word-detector/craft/src/utilities/filesystem.py
c37c99ac38c309b30030e0008937d396d5bad88a
[ "MIT" ]
permissive
project-anuvaad/anuvaad
96df31170b27467d296cee43440b6dade7b1247c
2bfcf6b9779bf1abd41e1bc42c27007127ddbefb
refs/heads/master
2023-08-17T01:18:25.587918
2023-08-14T09:53:16
2023-08-14T09:53:16
265,545,286
41
39
MIT
2023-09-14T05:58:27
2020-05-20T11:34:37
Jupyter Notebook
UTF-8
Python
false
false
3,001
py
import os import shutil import glob import pdf2image from anuvaad_auditor.loghandler import log_info from anuvaad_auditor.loghandler import log_error import config def create_directory(path): try: os.mkdir(path) return True except FileExistsError as fe_error: return True except OSErr...
[ "srihari.nagaraj@tarento.com" ]
srihari.nagaraj@tarento.com
5d5fe204a6def2bd44c608f74a0415d96a551487
586c7d7bcd669a8d7dff81d0e18cff6249fa8020
/appicons/api/serializers/__init__.py
9209d708ba40ad061ceabd29221f2e253c7d2869
[]
no_license
ali-zahedi/django-appicon
eebf915e3134981148533563e1043490eeb4fe47
f0eb9279f5a8e23be129a466c0c7ce349f61e833
refs/heads/master
2023-04-30T22:46:52.370239
2021-05-22T21:45:25
2021-05-22T21:45:25
366,841,350
1
0
null
null
null
null
UTF-8
Python
false
false
72
py
from .appicons import AppIconSummarySerializer, AppIconDetailSerializer
[ "ali.zahedigol@gmail.com" ]
ali.zahedigol@gmail.com
d8b9c5388493619cf19d1e9f52865e0a78f94b04
d3ae53e6af855cf7c38e3ada99ff2ddc722e3ad7
/full_sieve.py
2a8d35b13826b99ad5fb8d7c7ddbe4529454d478
[]
no_license
mickeyUcas/G6K-GPU-Tensor
0871159f370d7d100cda06a64297c56313815647
221336be89c227f25cc668c1c11172f442cc4146
refs/heads/main
2023-03-04T09:03:37.018764
2021-02-16T15:28:23
2021-02-16T15:28:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,548
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Full Sieve Command Line Client """ import logging import pickle as pickler from collections import OrderedDict from g6k.algorithms.workout import workout from g6k.siever import Siever from g6k.utils.cli import parse_args, run_all, pop_prefixed_params from g6k.utils.s...
[ "wesselvanwoerden@gmail.com" ]
wesselvanwoerden@gmail.com
20a7393406a9fee8f89adef2111e98c8be4a9788
fa7da6fa2441d92a68e4de0609e64a02ad40c6d1
/simplegallery/test/test_gallery_upload.py
747d5017d2a7fd9250cf0985d3b1848b6ae09353
[ "MIT" ]
permissive
tyeeman/simple-photo-gallery
d176c84f1791b97905d05e2c0350bcf31b00eb7b
02574c5ab0a27f4151f6a17fd45d587eb4c331fe
refs/heads/master
2023-02-21T06:07:52.385493
2021-01-22T05:26:08
2021-01-22T05:26:08
312,966,056
0
0
MIT
2021-01-22T05:26:10
2020-11-15T05:39:47
null
UTF-8
Python
false
false
5,645
py
import unittest from unittest import mock import sys import os import json import subprocess from PIL import Image from testfixtures import TempDirectory import simplegallery.gallery_init as gallery_init import simplegallery.gallery_build as gallery_build import simplegallery.gallery_upload as gallery_upload def crea...
[ "vladimir.haltakov@gmail.com" ]
vladimir.haltakov@gmail.com
309fc100997510f14c5ff8f5505ab2db03b4b839
8e1b68f077b669cdcd6d43fffb2a28969e645663
/task 3/65.py
6f2b8bcd79e314fd24de14c81de2ae507edde442
[]
no_license
KaraKala1427/python_labs
0f1986683089fa4a450a8353ead719f9ca8b5125
5d5c52b59dd0833d2947eb9b4cf3740855428702
refs/heads/main
2023-04-01T22:51:13.162831
2021-04-14T14:05:41
2021-04-14T14:05:41
341,621,138
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
perimeter = 0 x1 = int(input("Enter the x part of the coordinate: ")) y1 = int(input("Enter the y part of the coordinate: ")) interrupted = False while not interrupted: print() x2 = input("Enter the x part of the coordinate (blank to quit): ") y2 = input("Enter the y part of the coordinate (blank to quit): ") ...
[ "ernarerbol027@gmail.com" ]
ernarerbol027@gmail.com
be21736c952c41c888e074b2373d70cf39704a94
22e07337937b525d8a559f23b6068b2aac5d13e2
/model/hyperparameters_tuning.py
50860bccf4895e514bb3fede939422941afd0797
[]
no_license
jwiszowata/fashion
951c6acc36d67055343179f513452986f1f91f45
fab53a45415133294556e27828c209c5909a754e
refs/heads/master
2022-11-27T03:02:29.884998
2020-01-14T00:26:45
2020-01-14T00:26:45
233,421,444
0
0
null
2022-11-21T22:43:02
2020-01-12T16:21:37
Jupyter Notebook
UTF-8
Python
false
false
3,005
py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from tensorflow.keras import datasets, layers, models from utils import mnist_reader from sklearn.model_selection import train_test_split import wandb from wandb.keras import WandbCallback from hyperas import opti...
[ "wiszowata.joanna@gmail.com" ]
wiszowata.joanna@gmail.com
810edbbaca73336383dfff31da4093edd67fca4c
edf5a9276783b8bbb8405588c7c104c07fa83253
/第21周-源码/s14day21/utils/pagination.py
c6726128ec0347013731da74875dbfeb333d9053
[]
no_license
hklliang/python_summary
ed15c8f56f42d3bbfd7183bb1f9f874111e03f27
0b0dd342fab1aff0e7134c62492aea53ca78a3e9
refs/heads/master
2021-07-18T19:33:48.809019
2017-10-24T15:56:23
2017-10-24T15:56:23
100,615,901
0
0
null
null
null
null
UTF-8
Python
false
false
2,720
py
__author__ = 'Administrator' from django.utils.safestring import mark_safe import math class Page: def __init__(self, current_page, data_count, per_page_count=10, pager_num=7): self.current_page = current_page self.data_count = data_count self.per_page_count = per_page_count self.pa...
[ "304978040@qq.com" ]
304978040@qq.com
0b41300d19ec0a0f06441b51ecbc59a55174550f
460fc67503ab2487dafe44145cbc0a7b91654d0a
/tests/data_list_test.py
57a80fbd413637b3c7eb948d8d5260382258093a
[ "MIT" ]
permissive
lover2668/textmulclassify
3fbfdbd625d5d65597546c78c809a73fb1604e92
d6c577875cc7aac174783a711eca4994dba50287
refs/heads/master
2020-03-17T20:57:26.480331
2015-05-24T12:31:25
2015-05-24T12:31:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,034
py
# -*- coding: utf-8 -*- # 每个题至少有一个标签在data_list是有的。 data_list_test = [ {"_id": u"1", "content": u"解:方程的根是函数y和ylog3|x|图象的交点的横坐标,在同一坐标系中画出它们的图象,如图根据图象可知方程有两个异号根.故选C.方程的根的情况是(  )1C分析:方程的根,就是方程组的解,即为两个函数的交点的横坐标,在同一坐标系中画出它们的图象即可求得结果.点评:本题考查函数的零点与方程根的关系,把方程的根转化为函数图象的交点是解题的关键,体现了转化的思想,属中档题.有4个不等的正根有4个根,其中两个正根、两个负根有两个异号根有两个不等...
[ "mvjome@gmail.com" ]
mvjome@gmail.com
a490519255f833a6757b089bece303247e25680e
eda678c6158431430fa195fd5d51c424293fc724
/experiments/dyad_isolate/Snakefile
e42ff25cfeb717a0fc291320fdfb94f76695d7d4
[]
no_license
ohsu-comp-bio/dryads-research
8e75ecf812aa3c5139cffacf43116772d6a36376
c5c4b9e3c5e4ae5820b1dcfa669abf222e85d0db
refs/heads/master
2023-04-12T20:55:52.147569
2021-08-14T21:36:57
2021-08-14T21:36:57
139,887,441
0
3
null
null
null
null
UTF-8
Python
false
false
2,665
import os import sys sys.path.extend([os.path.join(os.environ['CODEDIR'], 'dryads-research', 'experiments', 'utilities')]) from pipeline_setup import get_task_arr, tasks_files TMPDIR = os.path.join( os.environ['TEMPDIR'], 'dryads-research', 'dyad_isolate', config['expr_source'],...
[ "mgrzad@gmail.com" ]
mgrzad@gmail.com
4d9a898e32164feec88d8b38fb4a873f82049413
858f76c43869927ba66b36319c0e7f9f64a7577e
/SRDF.py
4712939c9e63b56a305adcb93d5800e1509f1396
[]
no_license
Simba2017/SRDF
1d4b814da3418a7a21a6f23c29aecdf92b937089
8bb7c12ad21aa737d5043d8918e27901bff5116e
refs/heads/master
2021-05-03T06:40:47.129661
2018-02-07T10:25:39
2018-02-07T10:25:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,850
py
# -*- coding: utf-8 -*- """ Created on Wed Jan 24 13:39:25 2018 @author: Luo Jiacheng, Hao Wuhan Social-Regularized Deep Factors Model for Rating Prediction (Baseline) """ import tensorflow as tf import numpy as np from LoadData import LoadData from sklearn.base import BaseEstimator, TransformerMixin from sklearn.metr...
[ "nonenullo@hotmail.com" ]
nonenullo@hotmail.com
a2fd4a7c2cc18606b621cbbf841972930e4e0ca6
fb4417bcd7af279817ec0765f5807ced2d2ead24
/ejercicios_python/espaider.py
f20d4cedd2e2fa209ee39ad368bd9862ad3db6fd
[]
no_license
agustinpodesta/Python-Course
54604d084dd59b973b3f8599222b21d826039f2e
8fd417c1211712c3ffde784f050745d845e0596d
refs/heads/main
2023-05-07T08:29:13.741586
2021-05-26T21:15:07
2021-05-26T21:15:07
337,084,983
0
0
null
null
null
null
UTF-8
Python
false
false
1,171
py
# -*- coding: utf-8 -*- """ Created on Fri Dec 25 12:46:18 2020 @author: Agustin Podesta """ def propagar(vector): propagacion=[] for n_a,a in enumerate(vector): propagacion.append(a) if a == 0 and 1 in propagacion[n_a-1:n_a]: propagacion[n_a] = 1 elif a...
[ "noreply@github.com" ]
noreply@github.com
3d0d09dafcf8b4a3bab2e4a4f31cf6c8fb681d03
bf9ecac3d7a45692c749a7faca334058b0fb8b64
/tests/application/services/jobs/test_jobs_service.py
1395529552934018ab3c80ee1723c771eefc9cdc
[ "MIT" ]
permissive
reaper47/job-search-aggregator
4f036ba15ec425dbcefdb61daf3ab692f41feda4
efcab781901a5f7e0698ec75d36bf6a062804e43
refs/heads/master
2023-03-05T07:24:06.178456
2023-02-17T08:24:23
2023-02-17T08:24:23
161,712,063
1
1
MIT
2023-02-17T08:24:24
2018-12-14T00:46:41
Python
UTF-8
Python
false
false
2,141
py
import pytest from unittest.mock import Mock from job_search.domain.jobs.job_repository import JobRepository from job_search.domain.jobs.value_objects.job_type import JobInfo, JobTypeSource from job_search.domain.jobs.value_objects.simple_objects import ContactInfo, LocationInfo from job_search.application.services.job...
[ "macpoule@gmail.com" ]
macpoule@gmail.com
b1cfad557bc3694448f8884abe55763e72bbfd29
a47b9a658baee426aa05218ce2b6ab71010cd508
/Asx/web_Service/flask-introduction-master/flask_introduction/library/_01_simple.py
41c1c6188e71c3398677a22c2d7c71cfe2e8f1ae
[]
no_license
wsgan001/work
7d545acd14297d8257571831339fbe7d3c0a5651
ff39647b9baff50354189c3d02da3197e38b0f7c
refs/heads/master
2020-04-14T18:42:06.207604
2019-01-01T13:45:14
2019-01-01T13:45:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
789
py
"""This is the most basic example of a Flask application. As you can see we need just three things: * Create an app object from the Flask class. * Define a route to match (in this case the root '/' path) * Link it to a specific "view". A View is a simple Python function that will take care of the work to be done f...
[ "kite@192.168.3.37" ]
kite@192.168.3.37
087b0a60a232ac975d6f97c182cdb3f97f2b8023
36ad0839d62d326f60bdcc17af21b48f2391987f
/Layers/bottlenecks.py
c44d28a9e8cdbb5cd6029fe63bbfa152a9a77a12
[ "MIT" ]
permissive
esmou2/Kylearn-pytorch
adef4be5e59a4d6c7e6f33bc76fe6b1aaea0c5be
2e07f7b40b3cbbabf8be6b1abc8a350ddc66eef0
refs/heads/master
2022-11-09T23:11:49.225401
2020-05-09T22:45:44
2020-05-09T22:45:44
260,531,095
0
0
MIT
2020-05-01T18:31:32
2020-05-01T18:31:32
null
UTF-8
Python
false
false
5,175
py
import torch.nn as nn class LinearBottleneckLayer(nn.Module): ''' Bottleneck Layer ''' def __init__(self, d_features, d_hid, d_out=None, dropout=0.1): super().__init__() if d_out == None: d_out = d_features self.encode = nn.Linear(d_features, d_hid) self.decode = n...
[ "sjc951213@gmail.com" ]
sjc951213@gmail.com
b2e5bfaa01c75daa81180cd60c89c33ea1a487f7
4b71b9a25b9a77104de16a059ef74c09be5305e0
/wristband/stages/serializers.py
acc7f190747ceb066cb3eafea0bad6c34e75ff3b
[ "Apache-2.0" ]
permissive
beyond-code-github/wristband
bd34657e33f38da7264b031c7529ab6552ec8694
35648a15b91dea4a927e486bfe0ace5e00b44dcc
refs/heads/master
2021-10-25T12:20:59.500614
2019-04-04T09:35:11
2019-04-04T09:35:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
from rest_framework import serializers class StageSerializer(serializers.Serializer): name = serializers.CharField()
[ "alessandro.denoia@gmail.com" ]
alessandro.denoia@gmail.com
93bd466031a6e1f606c2d8b3b36d1c9f6fc30d99
51a8fdb44eb3d2f8d85339f76db0a55f52e32337
/books_app/test_books_app.py
26f676cf92141a093cc59cf423720fffc68c4f47
[]
no_license
malgorzata-kozera/stxnext_task_books
ed84c344844d2729ea9730e0aacccbe5b6f7844c
d33fce39570a513d7139ae9efd7a1891c48dd2e7
refs/heads/master
2020-05-24T23:08:22.736238
2019-05-20T09:49:59
2019-05-20T09:49:59
187,509,308
0
0
null
null
null
null
UTF-8
Python
false
false
2,731
py
import pytest from django.test import TestCase from books_app.models import Book, Category, Author from books_app.forms import AddBookForm class TestTasks(TestCase): def setUp(self): author = Author.objects.get_or_create(name='test author')[0] self.author = author category = Category.objec...
[ "malgorzata.kozera5@gmail.com" ]
malgorzata.kozera5@gmail.com
57ec1c8837dbbf8ef325c7d10c00a3ba0a6fd2c6
673e829dda9583c8dd2ac8d958ba1dc304bffeaf
/data/multilingual/Latn.COT/Sun-ExtA_16/pdf_to_json_test_Latn.COT_Sun-ExtA_16.py
6f18e32b3f24f6feeadfec011553ba559a4c128f
[ "BSD-3-Clause" ]
permissive
antoinecarme/pdf_to_json_tests
58bab9f6ba263531e69f793233ddc4d33b783b7e
d57a024fde862e698d916a1178f285883d7a3b2f
refs/heads/master
2021-01-26T08:41:47.327804
2020-02-27T15:54:48
2020-02-27T15:54:48
243,359,934
2
1
null
null
null
null
UTF-8
Python
false
false
311
py
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.COT/Sun-ExtA_16/udhr_Latn.COT_Sun-ExtA_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
1f5531465bc0a3b731ae7971a7b903cc3feb40fe
e28ce5cca66c56ee7446a46e18375430d0d404eb
/OpenCV/color_study.py
6a9c15b7489c871bf2e477d6074c9f588571fd66
[]
no_license
git4robot/PyKids
4fb60c5b107527336d9e686a98988ba7a8354f31
866e45e13171322ad1892d604508cfee9f8086c8
refs/heads/master
2020-04-17T20:45:26.741363
2020-04-14T02:21:55
2020-04-14T02:21:55
166,919,523
1
0
null
null
null
null
UTF-8
Python
false
false
4,439
py
''' # RGB: https://www.jianshu.com/p/25712f48a354 ''' import cv2 import numpy as np from sklearn.cluster import KMeans from collections import Counter from matplotlib import pyplot as plt def get_dominant_color(image, k=4, image_processing_size = None): """ takes an image as input returns the domina...
[ "49167781@qq.com" ]
49167781@qq.com
55361428a27c9dd5eaf8abb5d3587fd3334487a2
1c544df3db082ce4822b3303072b260b9d242382
/import.py
7d6b9f7c1113b2ade90529bf6cf3f32ffeb88c3c
[]
no_license
Manjeete/book-review-website
eb2c56aae508ae2deafd984595fde01d69c153ba
e313042da3195bf246d1650707623a3d975a71a2
refs/heads/master
2021-07-05T10:09:28.860045
2020-10-06T09:29:03
2020-10-06T09:29:03
189,349,345
2
2
null
2020-10-06T09:29:04
2019-05-30T05:11:04
Python
UTF-8
Python
false
false
855
py
import csv import os from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker DATABASE_URL="postgres://eaggqrlwacukhg:1da400a2b48765cf5616b5284e3a833c1b6db80ffdc80a9d1cc9233d4e00a2c7@ec2-107-20-230-70.compute-1.amazonaws.com:5432/d1immff20judvu" engine = create_engine(os.get...
[ "noreply@github.com" ]
noreply@github.com
193f651e19a1a630db84e2981b89952668885e56
596771563726fd2f590fae53edfdfeaa37aecc89
/consumer.py
ec54ba97e6c92bdc690fb42345e0adafe124ab0c
[]
no_license
mateusbarbedo/projetoIN242
b02c40304c5086ebddec3421dbc8686558ed7a36
77d70eb753cb6fc569fd5fedb22c543cd34789b6
refs/heads/master
2022-12-30T18:51:16.994524
2020-10-14T00:30:09
2020-10-14T00:30:09
303,861,063
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
import paho.mqtt.client as mqtt from pymongo import MongoClient import json import datetime mongo_client = MongoClient('localhost',27018) mongo_db = mongo_client['in242'] mongo_collection = mongo_db['pessoas'] def msg_recebida(mqtt_client,obj, msg): print('Recebendo mensagem...') print(msg.payload) msg_fo...
[ "71927790+mateusbarbedo@users.noreply.github.com" ]
71927790+mateusbarbedo@users.noreply.github.com
46149e5f7ae35d429d3ee88aac5ec2195744e436
ccfa5a011e99d326675917d6a0f33a8a8200e83d
/join/views.py
81cb0be2f952df6985c051d5db271a9bac592218
[]
no_license
lcbiplove/frutonp
74c44d5db5b68db41b2740fe94bbadf6dcd65afc
94751753d907b1299613fd35b0cf8a2cec3cd208
refs/heads/master
2023-08-13T02:55:06.221400
2021-08-06T12:25:21
2021-08-06T12:25:21
258,729,561
0
0
null
2021-09-22T20:08:07
2020-04-25T09:07:12
JavaScript
UTF-8
Python
false
false
9,310
py
from re import match as reMatch from django.shortcuts import render, redirect from django.contrib.sites.shortcuts import get_current_site from django.http import HttpResponse, JsonResponse, Http404 from django.contrib import auth, messages from django.contrib.auth import authenticate, login as auth_login, logout as aut...
[ "lcbiplove1@gmail.com" ]
lcbiplove1@gmail.com
e6cb5541bc2771f4b51aa3a905616862b05db54f
b21829d0e7ad6ab339bbf7b21c73bab690b27c67
/mytuple.py
e875af025bcbeedcb431309d97b06205c51ae87e
[]
no_license
kirankunapuli/python-scripts
d209e3a6a93ee9d1a9de1c5cd2ea2e83a1838ea9
ff2f29b9b9dc2995a3279411da000d64b7fd8ea1
refs/heads/master
2020-12-24T06:35:40.211651
2017-02-16T06:17:18
2017-02-16T06:17:18
73,471,546
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
mytuple = ('Tony', 'Pat', 'Stewart') mytuple = mytuple + ('John', 'Stewart') print(mytuple)
[ "kvskiran92@gmail.com" ]
kvskiran92@gmail.com
f8c31523793ac19d1cfdb00f1c73b64b9bf6e9b5
761d86e2c191c1f3f23ce6e08290b7c3dc9d18a8
/qmv.py
53a2721997bd2e957c2e3a95c913df66f271c176
[]
no_license
topretejal/conditionalGaussionRecreation
a64374cde4bd8c8e61207d1f48a08ffc829d1c17
a191a5c7fecc647f5b552d13842230888f978241
refs/heads/master
2023-02-05T23:42:59.732004
2020-12-18T15:57:12
2020-12-18T15:57:12
322,639,086
0
0
null
null
null
null
UTF-8
Python
false
false
8,765
py
# import os os.environ['R_HOME'] = '/home/loganriggs/anaconda3/lib/R' #path to your R installation from rpy2.robjects.packages import importr from rpy2.robjects import numpy2ri import numpy as np from sklearn.mixture import GaussianMixture from sklearn.mixture import BayesianGaussianMixture import pprint, pic...
[ "tejal17trt@gmail.com" ]
tejal17trt@gmail.com
7c03529bb6f59646fb9f76a6e8293168b77906bf
5c4d4a2c44eebf8fd9dd790da2a9ba4ededcfb70
/django_kala/django_kala/test_settings.py
8d079d8b604125d1fece8ccd9988b53999bdd663
[ "LicenseRef-scancode-other-permissive", "MIT" ]
permissive
brahimmade/kala-app
bc2602c6034203f83ced448ba54db7606a1234fe
6ac816e7c2711568cd7bcb1d996ba74c09513b3f
refs/heads/master
2023-03-21T05:15:52.436228
2020-03-10T15:50:29
2020-03-10T15:50:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,371
py
# Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ from django_kala.functions import import_from_string INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.s...
[ "bgroff@hawaii.edu" ]
bgroff@hawaii.edu
ff409e11b20ba3ca54c0c78a0c8f11bdc745293d
b1ea14ac9d3a57b6327a9632ffd5be6ab65aad8d
/catalog/migrations/0003_auto_20170212_1438.py
dd5cde7dadbc95b721d53a4d05fe3c2c6cd1f0b9
[ "Apache-2.0" ]
permissive
che4web/kafka2
d4c7b8d5dbfa202da6fa54dab9c45c5669ae52d8
589407a246a5081183341972271ad6f607b0e5aa
refs/heads/master
2021-01-12T10:32:14.529083
2019-03-01T06:32:15
2019-03-01T06:32:15
81,299,455
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2017-02-12 09:38 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('catalog', '0002_auto_20170211_0015'), ] operations ...
[ "che-email@yandex.ru" ]
che-email@yandex.ru
c810f95f31d4ad884a259365b31db41f457890f2
cfd5cc0cccd5b6e572fc02fe0e10f6d70e1f5fe0
/config.py
1a1884c6c0ce26d712e8f80a27d23d72b43e6b82
[]
no_license
ekut2104/web_currency_rate_app
0f014e1e4acf4c4514d8120a49805f7e68d94215
ec2a655594912209a91160d9758f998bd2570dca
refs/heads/master
2020-04-21T02:05:10.326341
2019-02-06T11:57:05
2019-02-06T11:57:05
169,243,767
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
import logging DB_NAME = "currencies.db" LOGGER_CONFIG = dict(level=logging.DEBUG, file="app.log", formatter=logging.Formatter(u"%(asctime)s [%(levelname)s] - %(name)s:%(message)s") ) HTTP_TIMEOUT = 15
[ "ekut2104@gmail.com" ]
ekut2104@gmail.com
7963678b9cda612be84d73744e807130d93a15a4
6ddaddc1fbc6d2d258ab6c04094dc47dd56453b7
/archlinuxcn/docker-rootless-extras/lilac.py
4f557e75a744768598585e259a03ca819f18ee64
[]
no_license
lisuke/repo
6ca836acaf755ae8985e2c8209c20b022660a79b
afdf83d667544aabd1fa30a891830ea32e02120c
refs/heads/master
2023-08-31T08:27:22.038191
2023-08-30T23:11:30
2023-08-30T23:11:30
104,623,007
1
0
null
2023-02-13T10:38:55
2017-09-24T06:10:18
Shell
UTF-8
Python
false
false
190
py
#!/usr/bin/env python3 from lilaclib import * def pre_build(): update_pkgver_and_pkgrel(_G.newver.lstrip("v")) def post_build(): git_pkgbuild_commit() # vim:set ts=2 sw=2 et:
[ "hot123tea123@gmail.com" ]
hot123tea123@gmail.com
c0ed6552ab058902a8ed5dcc21c397f9b6d9c417
048f2002ed13503d50428c8949c95a2e4f9bd532
/BST/331_VerifyPreorderSerializationofABinaryTree.py
1a2935f033ebb619a2fc7ed1ed56b4ab37754480
[]
no_license
ZhengLiangliang1996/Leetcode_ML_Daily
9c9330bd2c7bab5964fbd3827a27eeff5bd2c502
8cdb97bc7588b96b91b1c550afd84e976c1926e0
refs/heads/master
2023-04-06T19:52:23.524186
2023-03-30T21:08:57
2023-03-30T21:08:57
213,055,072
1
0
null
null
null
null
UTF-8
Python
false
false
704
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2021 liangliang <liangliang@Liangliangs-MacBook-Air.local> # # Distributed under terms of the MIT license. class Solution(object): def isValidSerialization(self, preorder): """ :type preorder: str :rtype: bool ...
[ "zhengliangliang1996@gmail.com" ]
zhengliangliang1996@gmail.com
2e505c893c27189846386fa9b6bfa5ead6e389a4
a71bb454570abb498935fddb98184c9d2a86da04
/hw1/src/asr.py
4a43afaae017c9c5c511aad2a2a5f5563510f838
[ "MIT" ]
permissive
hdchieh/NTU-Deep_Learning_for_Human_Language_Processing
f49275688b637197088e5dcd9b07c6f51dfe3db2
594512d95327fe394450e55bd137dea44b0e0770
refs/heads/master
2022-11-08T18:22:39.242506
2020-06-23T04:29:02
2020-06-23T04:29:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,214
py
import math import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from torch.distributions.categorical import Categorical from src.util import init_weights, init_gate from src.module import VGGExtractor, CNNExtractor, RNNLayer, ScaleDotAttention, LocationAwareAttention class ASR(nn.Mo...
[ "r08922a02@ntu.edu.tw" ]
r08922a02@ntu.edu.tw
076e5bb65c072c5c1cdebd40c31d7afdf37925af
6ab87d4ab191c11a04b81c0ef7beac7a7bde3904
/venv/bin/pyrsa-encrypt
53e3a54ea56129c62a85eda7b9bb5bb051e92fd8
[]
no_license
Bereketab/Beck
744c7eda3ffd2a4cff0dca04058e222e68684b25
fedc630f04c2893a85ed79edb7ec936d568eca50
refs/heads/master
2022-05-02T03:48:35.151758
2020-11-19T08:49:16
2020-11-19T08:49:16
77,160,727
0
0
null
2022-04-22T23:31:40
2016-12-22T16:45:07
Python
UTF-8
Python
false
false
245
#!/home/anom/Desktop/projects/proj/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from rsa.cli import encrypt if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(encrypt())
[ "bekban2020@gmail.com" ]
bekban2020@gmail.com
0857e6a407614cfc12e549e81dca0581fdf90fe8
e2ca3205bb5240a1e4c87de0bdb13faa70241f16
/src/main/nspawn/wrapper/machinectl.py
51e4e7868c85c7b149882efb48b037a9ba526c72
[ "Apache-2.0" ]
permissive
random-python/nspawn
67da4d96d54dcbf537adaf3421a03020ea5c1769
25f53aa565c0685842a89d48d949b0459b1de0a6
refs/heads/master
2023-05-11T21:27:44.557577
2023-05-07T17:00:18
2023-05-07T17:00:18
184,904,641
21
2
null
null
null
null
UTF-8
Python
false
false
2,425
py
""" Wrapper for machinectl https://www.freedesktop.org/software/systemd/man/machinectl.html """ from nspawn.wrapper.base import Base from nspawn.wrapper.sudo import Sudo from typing import List from dataclasses import dataclass @dataclass(frozen=True) class MachineDescriptor(): MACHINE:str CLASS:str SERV...
[ "andrei.pozolotin@gmail.com" ]
andrei.pozolotin@gmail.com
c7b9e687615a4ddf235552ed32cfde91c3b3419c
d07a5d47e99d1160b8f6f6231bdf45cd2637f7ab
/Exercises/dfs/flattenBinaryTree.py
965facde66afa4e1b13269bc5221fe98a10660e4
[]
no_license
dannyshin0510/Study-Guide
b704a8abc1a31c0e80bd4e6b4722bc4a54998d0b
a5995917490b289cb877e22526e5a662e1425cc7
refs/heads/main
2023-08-04T20:31:55.248135
2021-09-22T18:02:20
2021-09-22T18:02:20
327,480,165
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
# Flatten Binary Tree to Linked List class Solution: def flatten(self, root: TreeNode) -> None: """ Do not return anything, modify root in-place instead. """ self.prev=None def recur (node): if node is None: #stop statement return rec...
[ "42787400+dannyshin0510@users.noreply.github.com" ]
42787400+dannyshin0510@users.noreply.github.com
338343a0263d48bad4169987badc7be39954e332
6927080433713ec141d5ff6eed112567ad6946db
/mini_facebook_project/profile_app/migrations/0006_auto_20190117_1418.py
397316baa9882cb873fd2e4fdf31ebadb5ff27a8
[]
no_license
yoniamarv/Mini-Facebook
e438b24274f52905acd0ed03adca94419f722c1b
ea7c01c9bbf440ee7c34afff399352437078e0a9
refs/heads/master
2020-04-16T11:57:49.721604
2019-03-13T16:44:25
2019-03-13T16:44:25
165,559,122
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
# Generated by Django 2.1.5 on 2019-01-17 14:18 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profile_app', '0005_statut'), ] operations = [ migrations.AlterField( model_name='statut', ...
[ "yoni.amarv@gmail.com" ]
yoni.amarv@gmail.com
86bc504dd562680a7e6c7323385fc96f61a75973
e0fb7cee04d5c55adc966b07e4b791ac4c884d19
/Models/Position.py
c924aed09e14bd943a28ce18a8a3a55846306516
[]
no_license
evansmusomi/portfolio-manager-api
5a8b3daeec81eae412515562c7c11e7627977d5f
62ec460e8bc3c7bc650a8abb43c2107591ce1c6a
refs/heads/master
2021-03-16T04:59:00.920154
2017-07-07T02:30:22
2017-07-07T02:30:22
91,534,186
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
""" Defines position structure """ from sqlalchemy import Column, String, Integer, ForeignKey, Numeric, Date from sqlalchemy.orm import relationship from .Model import Model class Position(Model): """ Position blue print """ __tablename__ = 'positions' id = Column(Integer, primary_key=True, nullable=Fal...
[ "evans.musomi@gmail.com" ]
evans.musomi@gmail.com
32a6fd6f70fe33a204cbf0330db8b8349c9eaedf
6fd6da94f63c30157a70bdea6e92759f9d50c9b6
/boto3/client.py
3b3f22406bb0bb52a123f6d38656b784ae240bfe
[]
no_license
CooperEthan/boto3_cooper
79de30121a9338e0b571a6d480d967e378421ddb
219805580cf99e691270baac647b4c72ea7e2d29
refs/heads/master
2023-08-31T20:03:13.171649
2021-09-07T23:44:24
2021-09-07T23:44:24
401,905,448
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
import boto3 import boto3_type_annotations aws_man_con = boto3.session.Session(profile_name="default") # iam,ec2 and s3 iam_con_cli = aws_man_con.client(service_name="iam", region_name="eu-west-1") ec2_con_cli = aws_man_con.client(service_name="ec2", region_name="eu-west-1") s3_con_cli = aws_man_con.client(service_n...
[ "cooper@Ethans-MacBook-Air.local" ]
cooper@Ethans-MacBook-Air.local
6b68199abe8bf0b6d060ec23615bb04b173df895
9b69cca4639a3068ea76cdcb50e6de392b8829a9
/ExceptionEx.py
57e4fcef08e8873457bcc6d599185c04ec564317
[]
no_license
Vimlesh073/Python
6f261d55c8a2d410268efe225e64ce9ee27965ad
62931208c904ef02a2b738ad389c682c2d820b2e
refs/heads/master
2021-09-04T00:13:54.297982
2018-01-13T05:49:06
2018-01-13T05:49:06
114,435,254
1
0
null
null
null
null
UTF-8
Python
false
false
541
py
try: n = input('enter data ') d = input('enter data ') except ValueError: print('error : ',ValueError) except NameError: print('error : ',NameError) except TypeError: print('error : ',TypeError) except : print('error : ') try: a = [11,2,3] #nested try try: ...
[ "vimlesh073@gmail.com" ]
vimlesh073@gmail.com
3654f835fbad1c47fc19e522073094cd9e83d170
8660ed35484914f0917eff2d138d3c49f1030882
/package/scripts/broker.py
98388aa07638ce1c2a99b4b528147a71a81072ed
[]
no_license
leoChaoGlut/ambari-kafka-service
edb64b9fdc1b69814b86a2eef90f36650e44e54a
8a6d3fd87384967096daf36d7a25a42e0153a70d
refs/heads/main
2023-06-26T22:50:25.867521
2020-11-18T02:44:21
2020-11-18T02:44:21
308,545,000
0
1
null
null
null
null
UTF-8
Python
false
false
2,317
py
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
[ "leoiscoding@163.com" ]
leoiscoding@163.com
940add1ceeaab117c4b3e46040e7cc1ded172e30
73eeb02c6aea8ea7411b0e9243962264f19119f5
/src/create_folds.py
793f95f0baa1f96a1de443cea49243dc57b43aa9
[]
no_license
pranavmandolkar/Bengali_ai
14a61344d7a488b049b409d575dc74b4a367e6af
30f38cea325807164ef09c9f7f97437dfa7498b4
refs/heads/master
2022-12-20T04:53:08.846232
2020-09-30T02:20:06
2020-09-30T02:20:06
290,356,250
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 24 01:04:03 2020 @author: pranavmandolkar """ import pandas as pd from iterstrat.ml_stratifiers import MultilabelStratifiedKFold if __name__ == "__main__": df = pd.read_csv("../input/train.csv") print(df.head()) df.loc[:, "kfold"] = -1...
[ "pranav.mandolkar@gmail.com" ]
pranav.mandolkar@gmail.com
26f1aaa508d8cf2eda9d97550cd952c5d81f7376
3715dcb51dc17072044490d15abf61da7474406f
/L9 pop a specific element in the stack.py
d345e09cbea5c8f33941ee0a40f1b13f620a9e49
[]
no_license
pavan1126/python-1-09
ff71a2d5d1c548aceda96740c7667b9691403a12
76676a79b02b03e55e10ab2aeb267f25a64bf73e
refs/heads/master
2023-01-14T15:47:51.710216
2020-11-17T04:52:25
2020-11-17T04:52:25
291,905,621
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
#A.pavan kumar - 121910313047 #program to pop a specific elemant in the stack class Stack: def __init__(self): self.items = [] def push(self, data): self.items.append(data) def pop(self,data): if data in self.items: self.items.remove(data) print(...
[ "noreply@github.com" ]
noreply@github.com
09bddd7d8477d495775d0acfde4f16bf998802b8
832281e5dbc051cb227d1325009d8466527e090c
/lab4-ex1.py
6a787a0e077b41318819d9f024939cd81a428940
[ "Unlicense" ]
permissive
LiliHavingFun/python
77bfbc275e90f8992099eec82c9d61ff54f51688
947ec5396a65ce1a21faf31d70bb3ffb98c3304c
refs/heads/master
2020-03-31T06:28:46.790456
2018-11-19T07:25:50
2018-11-19T07:25:50
151,983,852
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
import re import sys def sort_uuids(file_name): try: in_file = open("sample.txt", "r") out_file = open("results.txt", "w") except Exception as e: print("Failed to open the file \"sample.txt\": {}".format(e), file=sys.stderr) raise lines = in_file.readlines() lines.sort...
[ "lilian.moraru90@gmail.com" ]
lilian.moraru90@gmail.com
0e4dab8c2cea1a697d9dc3a58db269185f5d4c6b
baa67ec198b3eda522f8fb807c0682b92de785ae
/order/views.py
7e373fffb988e7395be7ac94978ca3c420e88140
[]
no_license
KellyHsu/GroupBuy
212765e71ec9f3e98927aac1a72b1fff5bcd2b1f
f091e998f17703abbfe284000d982a4a7efb0f42
refs/heads/master
2020-04-12T23:20:21.348669
2018-12-21T03:54:08
2018-12-21T03:54:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse import json from deal.models import Order, Item @csrf_exempt def order_add(request): if request.method == 'POST': print(request.body) data = json.loads(request.body) # buyer_id = int(data['buyer_id'])...
[ "hsuanchen@outlook.com" ]
hsuanchen@outlook.com
aef431f8d27b10dad651f9680e9fea08d8e3ddb9
088b51c48b7fbd7209570634b2e8b4884e37c680
/Bot/Luna.py
8b2608ca96d8899a36c74ac976af5516d058db92
[]
no_license
Atm85/Luna
a23292cb98fd34b2aad750fde6988000ac645b9f
bc31752dd4350c0f9b31917fe4ce34506651caec
refs/heads/master
2022-03-31T20:21:48.063970
2019-12-30T20:15:00
2019-12-30T20:15:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,503
py
import discord from discord.ext import commands from utils.Logger import Logger from utils.FileManager import FileManager as File import json token = "" prefix = "" # returns console logger def getlogger() -> Logger: return Logger() # registers bot credentials try: config = File.read("config.json") tok...
[ "stevecoulter99@gmail.com" ]
stevecoulter99@gmail.com
a6b76c33dbf3842d77b5594df2b060042ec23e54
acc6dbe49d8d29cd47036cbcb06add9ea798ab9c
/MRND/classproject/onlineapp/urls.py
de0108f5d99f4efdb5f474e092d1911fe3518d76
[]
no_license
BhargaviBavana/MRND-SUBMISSIONS
a65692ec2bed768e3a43909137fac4137d6b902f
53aad1dde8b42aa3e547da83720a19c85e9e52ac
refs/heads/master
2020-05-30T09:18:48.980225
2019-06-18T05:42:48
2019-06-18T05:42:48
189,641,598
0
0
null
null
null
null
UTF-8
Python
false
false
1,878
py
from onlineapp.view import * from django.contrib import admin from django.conf import settings from django.urls import include, path,re_path # For django versions from 2.0 and up from . import view from onlineapp.view.college import * #from onlineapp import views urlpatterns = [ #path('get_my_college/', views.getmyco...
[ "bsb770187@gmail.com" ]
bsb770187@gmail.com
52c1d61d88bc555db478d99cd478969f3b6d8759
f49b0eb48e7549b9263e87515c10b3e9d40f695a
/tensorflow_hub/file_utils.py
99b421427d210ac37f19e50acdd3495557185052
[ "Apache-2.0" ]
permissive
Pandinosaurus/hub
f8e0a6b95f91643ff51f7403f70080b5bc822f5f
fa1cf068b9cf034b59e7cd59a6ac0ce7e21a4fd4
refs/heads/master
2023-08-11T22:12:41.727750
2023-08-09T12:05:12
2023-08-09T12:05:45
129,443,631
1
0
Apache-2.0
2023-08-10T10:03:26
2018-04-13T19:12:58
Python
UTF-8
Python
false
false
2,779
py
# Copyright 2020 The TensorFlow Hub Authors. 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 app...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
b13579dcc6aae0d9da8c07d9dd5ef5ba461fc3e5
54a87a7e531b94b1d7a98a8f1adddefa21b232b6
/Rabbit_Cloud/The_Full_Counting_Sort.py
89b844a5f96f60ea31338e0d7ae418260957a594
[]
no_license
Kcheung42/Hacker_Rank
c12230f6755c9b22c7561e14ca614aafff25eff4
88be5a814315b90832aac2c53a598b1a0550b196
refs/heads/master
2021-09-10T13:28:18.481029
2018-03-26T23:58:37
2018-03-26T23:58:37
104,678,132
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
#!/bin/python3 import sys if __name__ == "__main__": n = int(input().strip()) for a0 in range(n): x, s = input().strip().split(' ') x, s = [int(x), str(s)]
[ "kcheung@Kenneths-iMac.local" ]
kcheung@Kenneths-iMac.local
73c040d87bb8f39b8306ff100b8532bb96b26810
3eec249b3629c31ed0114eaaff485b94f23d6b47
/form/urls.py
cb7ce8fbbbc45917ab4e7149eccca260c57d5997
[]
no_license
sarkmen/form
19bae21eafc01aa60c443861dad57833d98fa7d8
0efa1bee36e418095210e0fcc1459cdba8ffa1d6
refs/heads/master
2020-12-25T14:13:11.061223
2016-05-10T17:09:59
2016-05-10T17:09:59
58,479,505
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
"""form URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ "beomjun.gim3@gmail.com" ]
beomjun.gim3@gmail.com
7ca4bd07fa06239afd26749fed24e48ee4257212
dbb4c490acf0727dfc431ed09130259af23e04a6
/Databases/Yogesh/Assignment4/mysite/polls/models.py
ffa4d565ce533cd41c29abd2eb57c16082f8a7a6
[]
no_license
varshavasthavi/SummerProjects18
0ef0d3b722e384efab25e435a198d6594cfe33a2
6219c20e2c7ed031bc8064c01c565c7bbd2228f6
refs/heads/master
2020-03-15T12:58:07.626144
2018-06-23T16:22:32
2018-06-23T16:22:32
132,155,712
2
0
null
2018-05-04T15:10:54
2018-05-04T15:10:53
null
UTF-8
Python
false
false
638
py
from django.db import models import datetime from django.utils import timezone class Question(models.Model): def __str__(self): return self.question_text question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def was_published_recently(self): ...
[ "archpndy@gmail.com" ]
archpndy@gmail.com
1d8aec667fd0d504f7dfed82f63e82b5ea090b85
24a6cd4261214a3fb9a3820e70e31e86890d12a0
/Semana 5 - Fechas/93_Leer_archivos/main.py
3df53bedd7d4eec5f37bce3f92fc6a09f5aa0a68
[]
no_license
bonfl/Python
ab3294835b543375d619e898a8e14166812a1e8a
25b3758ae39a518444809a1dd7b07af414f75da8
refs/heads/master
2020-07-25T05:25:10.574792
2019-10-09T01:25:41
2019-10-09T01:25:41
205,285,395
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
#Importar libreria de archivos import re #Abro el archivo archivo = open("sample.txt",encoding="utf-8") #leo el archivo informacion = archivo.read() #Lo cierro para liberar memoria archivo.close() #Imprimo en pantalla la informacion del archivo print(informacion)
[ "nicolas.bonfiglio@gmail.com" ]
nicolas.bonfiglio@gmail.com
b4ff1f0cbab4dae99060fab58f83b9f7c6d24782
bb66ef2431914b3acca540717bb8119b4d709121
/atelier/views.py
968a80031d8052d0e033a8285e17d64d79348faf
[]
no_license
1735v/atelier
9ba1960954ac7791a3261c036055d9161f29f7e3
92da01916b29061a09734bd0b83264561b8aebc1
refs/heads/master
2020-12-23T03:30:47.317738
2020-03-23T12:10:06
2020-03-23T12:10:06
237,019,067
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
from .forms import EmailPostForms def home(request): pass
[ "vovasapuzhak@gmail.com" ]
vovasapuzhak@gmail.com
a9349a98d48f230457a2fa0341f7643c6469eb17
0867c8fa31733d0bc2f082ebbd6e979944e5461c
/Image2vector.py
85cbc69458edf7362d58412fb9a35fbb91be7066
[]
no_license
nvakhoa/SearchImagebyText
8e654773cf18a32849210ccf8b73fb6f88e1ba66
acb7fdd0136060b2f15787f7983d49145ffa0322
refs/heads/master
2020-05-30T10:27:17.068312
2019-06-04T08:51:04
2019-06-04T08:51:04
189,673,009
0
0
null
null
null
null
UTF-8
Python
false
false
4,952
py
import coco from cache import cache import os, time, re, math import matplotlib.pyplot as plt from PIL import Image import numpy as np from spacy.lang.en import English nlp = English() stopword = 'stopwords_en.txt' dir_path = 'data\coco' def set_path_stopword(newpath): global stopword st...
[ "noreply@github.com" ]
noreply@github.com
a998644544086e041fd6e9571fdd314168659403
d8967f09fd50777786628d8752e21f5f023cb829
/datainsight/todaysactivity/web.py
9b3f4b64225aac8b2d0f7bf840e07556e203f5b6
[]
no_license
robyoung/datainsight-todays-activity-recorder-python
e158774aee4b8b8b7a495c8ff28a5fb7c8dcab61
408e30476e9e756bea485aac88c51a714f0d16ba
refs/heads/master
2020-05-20T03:49:05.310653
2012-08-18T16:28:02
2012-08-18T16:28:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
import datetime import flask from datainsight.todaysactivity import data app = flask.Flask(__name__) @app.route('/todays-activity') def todays_activity(): def json_default(obj): if isinstance(obj, datetime.datetime): return obj.isoformat() else: raise TypeError("Invalid object") return flask.R...
[ "rob.young@digital.cabinet-office.gov.uk" ]
rob.young@digital.cabinet-office.gov.uk
71b999916cf50f05dfc2ee12de948350f864b7e6
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_scipy_numpy/source/sklearn/cluster/k_means_.py
dd9058d966e85f63fb502940fb82cfd33fe40fc0
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
55,793
py
"""K-means clustering""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.prettenh...
[ "master@MacBook-Pro-admin.local" ]
master@MacBook-Pro-admin.local
917aecf896086dad84f109bebfcb2384960ce100
9846fae4f22ed1e1c3a6c49f845f87bfe48f0b9f
/apigee/permissions/permissions.py
346c4bb3d6527889f9928e6a769da88d4502c656
[ "Apache-2.0", "Python-2.0" ]
permissive
mdelotavo/apigee-cli
40bdab663d99caca850136b8bc0d9c6df9aa6031
8fed27cb1f8b2fba9a333573b7ed256779b1ef87
refs/heads/master
2023-07-08T16:18:35.312739
2023-06-28T05:33:32
2023-06-28T05:33:32
210,954,117
5
4
null
null
null
null
UTF-8
Python
false
false
2,849
py
import json import requests from apigee import APIGEE_ADMIN_API_URL, auth from apigee.permissions.serializer import PermissionsSerializer CREATE_PERMISSIONS_PATH = "{api_url}/v1/organizations/{org}/userroles/{role_name}/resourcepermissions" TEAM_PERMISSIONS_PATH = "{api_url}/v1/organizations/{org}/userroles/...
[ "matthew.t.delotavo@gmail.com" ]
matthew.t.delotavo@gmail.com
5a265576031746510157b52c10735bcf0b9f06b9
5b4f9c8574f55472950109bc38141907e3f9eef6
/Core_set_SVM.py
cef947477f061f6f4a947ba0b8e00a73b988a9bd
[]
no_license
Randyzhang98/Distributed_SVMs_Core-Sets
083301d028e246943539077294caa74208822f8e
dc19e49cc0a19c51a24457249cecf4d5a42169a4
refs/heads/master
2020-12-20T02:08:02.110392
2020-01-24T03:17:11
2020-01-24T03:17:11
235,927,657
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
from meb import MEB import numpy as np from sklearn.svm import SVC from Data_load import read_UCI_data def training_loss(SVM_model, train_data): alpha = np.abs(SVM_model.dual_coef_) loss = 0.5 * np.dot(alpha, SVM_model.decision_function(train_data[SVM_model.support_])) - np.sum(alpha) return loss C = 7....
[ "601981285@qq.com" ]
601981285@qq.com
4d3c56b4dcf5255a81edb01d7bb903d2cdae5d39
3d00d3d1dc15f7af6d157da10ab0e61707c6018f
/extract_feature.py
6e7024705b9512de30e8c6c77db8e59252664518
[]
no_license
ravisha-96/FLM_Genre_Data
bfdd77ec0ac2b555991a3946d8807590ba4abd77
aa197a26d278425c9431b4dff9e09b4083c7d80f
refs/heads/master
2020-09-16T13:20:38.259131
2019-11-24T19:26:27
2019-11-24T19:28:12
223,782,182
0
0
null
null
null
null
UTF-8
Python
false
false
5,959
py
import librosa import math import os import re import numpy as np class GenreFeatureData: "Music audio features for genre classification" hop_length = None genre_list = [ "classical", "country", "disco", "hiphop", "jazz", "metal", "pop", "r...
[ "noreply@github.com" ]
noreply@github.com
655f7ea726516a6bf1944a85fbc962b8c9898eeb
bc6dbfbe29800973109687daf033daded1e977c2
/blog_project/blog/urls.py
d5dc524c0d9c1c124ee168edca3bcec7b3e4e1a2
[]
no_license
hishamad/Blog
cbe5c0df3f79d7345b411f880ad0a4c7f5c3b1f6
4e5a410053f7767d4ffd61ba6120e6c0b79bc2d1
refs/heads/main
2023-07-09T11:08:05.130343
2020-10-29T20:37:24
2020-10-29T20:37:24
308,413,400
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
from django.urls import path from .views import PostListView, PostDetailView, CategoryDetailView, TutorialListView, TutorialDetailView from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', PostListView.as_view(), name='blog-home'), path('post/<int:pk...
[ "hisham.ahmed@aol.com" ]
hisham.ahmed@aol.com
ce6ee73a31200e63a1139adc8ef584f8f14fe536
2a0b6c10c20051de0daad5e7e06513fe8d3abacb
/test_label.py
c829dfb624092e43440bca6c79b37e4018274001
[ "MIT" ]
permissive
iancze/Pysplotter
b87f5e95aaee9c2081f0b151a3709b8f83c1e04c
54d273e27b26968b05730750c365c58375b6a5e7
refs/heads/master
2021-01-25T07:08:09.461659
2012-06-27T19:00:09
2012-06-27T19:00:09
2,457,047
1
1
null
null
null
null
UTF-8
Python
false
false
6,392
py
import matplotlib matplotlib.use("Qt4Agg") from matplotlib.pyplot import figure, show from matplotlib.patches import Ellipse import numpy as np if 1: fig = figure(1,figsize=(8,5)) ax = fig.add_subplot(111, autoscale_on=False, xlim=(-1,5), ylim=(-4,3)) t = np.arange(0.0, 5.0, 0.01) s = np.cos(2*np.pi*t...
[ "iancze@gmail.com" ]
iancze@gmail.com