blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e09fa967d92023bca99cf54837fa105b810f030b | 4cb1fd4f6f4a8e57ca3d222007c1a5cde3deebfe | /Chapter04/pingmesh.py | 8fb17a404fcdee3635ee36367d652fcfefc59daf | [
"MIT"
] | permissive | PacktPublishing/Python-Network-Programming | 838097e82762fed54fbc2abffe4db71d5acd350b | 416cea10fe56b2312cf25150ed7ba27837cddf18 | refs/heads/master | 2023-02-11T00:34:43.611524 | 2023-01-30T08:58:32 | 2023-01-30T08:58:32 | 166,771,428 | 52 | 51 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py | import getmeshvalue
from getmeshvalue import getallvalues
getdevinformation={}
devicenamemapping={}
arraydeviceglobal=[]
pingmeshvalues={}
arraydeviceglobal=["192.168.255.240","192.168.255.245","192.168.255.248","192.168.255.249","4.2.2.2"]
devicenamemapping['192.168.255.240']="R1"
devicenamemapping['192.168.255.245... | [
"rutujay@packt.com"
] | rutujay@packt.com |
ca152810fc429ad3a3aa2281e6960067671ebd20 | 5f862a5f0116030adb4ce8d1f66c22e52eb5546f | /test/test_automl/test_smbo.py | 7094e9c51ac478e5b9391d662872db4ddc3f1610 | [
"BSD-3-Clause"
] | permissive | IsoLATionzhw/auto-sklearn | 9c1adbffe8f077471cbf9eb1c0a89d4ab9593220 | a263efb49f7b7f597963bc1e787105ea7615ea75 | refs/heads/master | 2021-07-15T05:47:23.268566 | 2017-10-04T10:08:21 | 2017-10-04T10:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | import unittest
from autosklearn.smbo import AutoMLSMBO
from autosklearn.metrics import accuracy
from smac.facade.smac_facade import SMAC
from smac.scenario.scenario import Scenario
from smac.tae.execute_ta_run import StatusType
from ConfigSpace import ConfigurationSpace, UniformFloatHyperparameter, Configuration
cl... | [
"feurerm@informatik.uni-freiburg.de"
] | feurerm@informatik.uni-freiburg.de |
c470665fd971ef55fbcbf2c680c5254eb0e69e51 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/memre/armv7l/obsolete/corp2/system/base/man-pages/actions.py | e17573a3dc5e34c142d651a5d3274ff1b0d7e803 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import crosstools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
d... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
dced842cb0138a15c1c028b64d73971e74c64f60 | 9d37286183243fd2a040466f0df0b3b31f69ef6a | /hunt/wsgi.py | b0853fef3d467722dedf7cf93cef1e236a011cd8 | [] | no_license | ma9shah/Product-Hunt-Django | 4a5b95db2d042718f374d3fd7cd771b4b0d196ed | 19bbfb72889ebce6813a0845df10787f8f7a93f6 | refs/heads/master | 2022-01-25T15:04:42.207144 | 2019-07-27T08:54:29 | 2019-07-27T08:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for hunt project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"ma9shah@gmail.com"
] | ma9shah@gmail.com |
67fa6bad0b3fbe89d5c78e8cb9d16e3f6de865da | daef437c4cd7ed6ca4be3989f6c7b990ee1efcc7 | /djangogirls/asgi.py | 71b39e44a12e3493104e2d080c24e3277d71d1c8 | [] | no_license | YY-U/Myblog-web-app | b157624f5cd56b3b0b56d30f40fe5ae62973c78f | fd90497dc0aa7e6b3efb6e6d5a24c165fde6de33 | refs/heads/main | 2023-08-28T05:13:40.068384 | 2021-09-23T14:33:34 | 2021-09-23T14:33:34 | 401,692,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
ASGI config for djangogirls 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.setdefa... | [
"chxgw030@yahoo.co.jp"
] | chxgw030@yahoo.co.jp |
a4dfcab1929a4549495921aec3b9178da6d67f3e | 7e0ea1a29084f9536e02f6d7dcf9a0fb80babf58 | /core/views.py | e1eeeec7ef5bcd9a087405bb5c4fbdd5e1cfbecf | [] | no_license | ABYARTH/mywallet | a5b0bdbd0d08d22eb55fbc55e61147b92fcc5805 | 8eb0ce84422b55d0211e391269a7716b4f9c90a7 | refs/heads/master | 2021-01-16T20:00:05.470714 | 2016-01-14T15:17:26 | 2016-01-14T15:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | import requests
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.contrib.auth import login, authenticate
from django.contrib.auth.models import User, AnonymousUser
from dj... | [
"s.mohanty.006@gmail.com"
] | s.mohanty.006@gmail.com |
9687e2ef03ae47ee8da4844d73ec64b309f7fa7d | 3e95e4399ac1386b6ea21d1ed0841a0da9ed4ed8 | /Code/show_images.py | 16141eca01fd591d7594b76ba86a1acd71b2743b | [] | no_license | sbaio/Restricted-Boltzmann-Machine | 9ddbdef618600c68224ab9f6ffb3d7bced02c00b | e1c304aac444c3a30e29645aa5f9f6e76149f1f4 | refs/heads/master | 2020-01-23T21:41:12.593660 | 2017-01-19T13:42:24 | 2017-01-19T13:42:24 | 74,689,495 | 3 | 0 | null | 2016-12-08T11:13:51 | 2016-11-24T16:29:58 | Python | UTF-8 | Python | false | false | 2,206 | py |
from loadMNIST import load_mnist
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
def showImage(image):
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
imgplot = ax.imshow(image,cmap=mpl.cm.Greys)
imgplot.set_interpolation('nearest')
ax.xaxis.set_ticks_position('top')
ax.yaxis.set_tic... | [
"otossbai@gmail.com"
] | otossbai@gmail.com |
5223e23b482a1bfdb8243afce164d650eb01a992 | 6d1af2b4930d6454ad215a645a6ee2e8900ec45d | /tests/context.py | d05a6b307936e3dc2d9c135d32f2382d7a94e390 | [
"MIT"
] | permissive | orange-erotic-bible/orange-erotic-bible | 7cc8c477118dea8e20e03883029b79cd57e788a9 | cd9e31f44ccdf4b69782c5a21af25407cfe5418b | refs/heads/master | 2023-01-13T04:17:57.275994 | 2020-04-05T12:09:10 | 2020-04-05T12:09:10 | 225,234,684 | 49 | 2 | MIT | 2022-12-26T21:00:58 | 2019-12-01T21:38:03 | Python | UTF-8 | Python | false | false | 142 | py | import os
import sys
module_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
sys.path.insert(0, module_path)
import oeb
| [
"57139857+orange-erotic-bible@users.noreply.github.com"
] | 57139857+orange-erotic-bible@users.noreply.github.com |
5bd0502dc889f757281d2e3246e31016f6681c03 | cf9f56f50d947cfb9490a9b3a25aec1e7506066f | /lpthw/ex20.py | 92462c8b1a9c2a23781fcd60cbdb6fff519aa234 | [] | no_license | Nipuncp/lyceaum | ce14758ae4834031e47df731de64a52b965f32db | 4ba26b89915786656bd93e1e62aa3002b59aab2b | refs/heads/master | 2020-03-26T08:24:19.309122 | 2018-08-14T09:28:00 | 2018-08-14T09:28:00 | 144,699,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from sys import argv
script, input_file = argv
def print_all(f):
print(f.read())
def rewind(f):
f.seek(0)
def print_a_line(line_count, f):
print(line_count, f.readline())
current_file = open(input_file)
print("First let's print the whole file: \n")
print_all(current_file)
print("Now let's rewind. Ki... | [
"nipuncp123@gmail.com"
] | nipuncp123@gmail.com |
c4d8e805c1f6b10bf7e2aa5d93ed4a594334fcc9 | a7fce57f807f35ae9c417f03c8a92a431362a0ce | /app/models/base.py | 588953c21c2f9b63e6bd7f1c170b0b0f6818e57d | [] | no_license | ONSdigital/census-rm-case-processor-prototype-python | 5e9cf1645b63736bde9487508c1009946c41f7be | dfeeeecbae94b8bbedcc85c12b56699488b04f48 | refs/heads/master | 2020-05-14T05:08:33.683697 | 2019-04-16T14:58:37 | 2019-04-16T14:58:37 | 181,700,008 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from sqlalchemy.schema import MetaData
from sqlalchemy.ext.declarative import declarative_base
metadata = MetaData(schema='casesvcv2python')
Base = declarative_base(metadata=metadata)
| [
"neale.dj@gmail.com"
] | neale.dj@gmail.com |
9adaee7940a1f0dbfd276202c2578faa1ef36ad7 | a97792ea5b48c1d0aacca906bc2d393b59ceb59a | /accounts/migrations/0001_initial.py | 3b079163e2466e9166ba44051a16589ed2ecc286 | [] | no_license | ebrahimasifismail/custom_login_view_django | 0de9e66846d19101506232e67c2a32777f70bdff | c1d8b3aa712b601f2c9f0e8cbeaf9080d329f00d | refs/heads/main | 2023-07-25T17:52:11.821384 | 2021-09-09T14:36:56 | 2021-09-09T14:36:56 | 404,233,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # Generated by Django 3.2.7 on 2021-09-04 15:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MyUser',
fields=[
('id', models.BigAutoFiel... | [
"ebrahimasifismail@gmail.com"
] | ebrahimasifismail@gmail.com |
021841d84dc923f063d7a2f09b346af1e7452d2a | 1d4f4c45da7465f2d39e567de31d79b578002bca | /old/collect_script/depth_crawl.py | 3d9a78ec3a152b89ed30696150fcdb5f702f741b | [] | no_license | lihn1987/CoinCollector | 9f1e7ab45273fea04b809a363b5af2f4fd6f1733 | 3115be42a6bf72e969bbdc245f5bf217b33b25d9 | refs/heads/master | 2022-07-16T07:39:27.269642 | 2021-03-31T16:45:03 | 2021-03-31T16:45:03 | 196,840,232 | 24 | 2 | null | 2022-06-22T04:12:20 | 2019-07-14T13:32:02 | Python | UTF-8 | Python | false | false | 171 | py | import time
import depth_huobi
import depth_ok
import depth_binance
depth_huobi.StartCrwal()
depth_ok.StartCrwal()
depth_binance.StartCrwal()
while True:
time.sleep(1) | [
"lihn1011@163.com"
] | lihn1011@163.com |
d691c4b54e635a2d515ac8e2806e29ed04c757c3 | c2285444392e8eb1904255b82f62b49f317aca07 | /tagger/db/models/tag.py | 95a487c8861a4b3aa4e29120ff433e8162fdbc16 | [] | no_license | tlskr/tagger | ced0ed36437bb29fe488eb2fae8b03314c5a9558 | 1230a1f36b91bd7ef2d57840dcfa013ca07e5a4a | refs/heads/master | 2022-12-16T00:44:36.798298 | 2018-08-17T13:23:02 | 2018-08-17T13:26:37 | 145,027,493 | 0 | 0 | null | 2022-12-08T02:46:37 | 2018-08-16T18:55:02 | Python | UTF-8 | Python | false | false | 2,353 | py | # coding: utf-8
from sqlalchemy import Column, Text
from sqlalchemy.dialects.postgresql.json import JSONB
from . base import Base
from tagger.db.session import get_session
class Tag(Base):
__tablename__ = 'tag'
tag_id = Column(Text, primary_key=True)
vendor_id = Column(Text, nullable=False)
tag_met... | [
"gordon@practicalhorseshoeing.com"
] | gordon@practicalhorseshoeing.com |
0bf3e08e5e06852a8c723c159ca73d8b4cab3d49 | 8009c659b53e22f06593d849ee373f327372b49a | /Problems/Implement a function/main.py | ba88587a77a4fe3979c0e3cc06606a1288253caf | [] | no_license | rolmos14/bill_splitter | 6f7824b1d0b5a5c6e525c0fe164074ac94f148bd | 36c3ce9888d1089df6cbef4369f2b94a233df190 | refs/heads/master | 2023-06-27T09:23:50.319746 | 2021-07-31T15:27:15 | 2021-07-31T15:27:15 | 391,341,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def get_number(num):
"""Return the number one less than the given positive number.
If the number is nonpositive, return a string "Enter a positive number!".
Arguments:
num -- an integer.
Return values:
An integer one less than the input number.
"""
if num <= 0:
return "Enter a ... | [
"olmos.rafa@gmail.com"
] | olmos.rafa@gmail.com |
70f011987d0d83896b55fb107ebb146db7604a64 | 94ed2beea5ac8936f555824a6c799a4c5c810937 | /apps/aula01/cadastro_edital/migrations/0002_auto_20190313_1819.py | 02dc4db4fb0a40ca7b0654e0b90886d8feea2591 | [] | no_license | SarahRaq/handson_django | a4fc851022b4a20d314c149cb582aa6c60f95726 | 5277011ec8a25c3490089c4f7ba137bd5959ae9e | refs/heads/master | 2020-04-28T05:02:23.375150 | 2019-03-15T18:01:04 | 2019-03-15T18:01:04 | 175,004,387 | 0 | 0 | null | 2019-03-11T13:19:33 | 2019-03-11T13:19:33 | null | UTF-8 | Python | false | false | 1,494 | py | # Generated by Django 2.1.7 on 2019-03-13 18:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cadastro_edital', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='pagamento',
name='edital',
... | [
"sarahraquelrs@gmail.com"
] | sarahraquelrs@gmail.com |
d5633a2b848b581a3a034619a61450208a8052e8 | da1d21bb8d0760bfba61cd5d9800400f928868aa | /apps/common/utils/iterables.py | 3d4d2470b42a38d43cc00ac6ac9d420b5e00c8f0 | [] | no_license | biznixcn/WR | 28e6a5d10f53a0bfe70abc3a081c0bf5a5457596 | 5650fbe59f8dfef836503b8092080f06dd214c2c | refs/heads/master | 2021-01-20T23:53:52.887225 | 2014-05-13T02:00:33 | 2014-05-13T02:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # -*- coding: utf-8 -*-
from itertools import izip_longest
def grouper(n, iterable, padvalue=None):
"grouper(3, 'abcdefg', 'x') --> ('a','b','c'), ('d','e','f'), ('g','x','x')"
return izip_longest(*[iter(iterable)]*n, fillvalue=padvalue)
| [
"mbc@Mathiass-MacBook-Pro.local"
] | mbc@Mathiass-MacBook-Pro.local |
1bcd4f24598b0f823162ecf23a97fcaee260cc6b | be70c1a9e6600cdfb0691e746b7132d0f7f9890b | /bmi.py | 324aa713ddc12e44de9a142a077b0efe55b7f9c4 | [] | no_license | jasonmahony/python | ec16cf10407c40809f9f667828bbb5c8970a47d6 | 7676ee18425114a9084e74d10eb5d75fda2b9236 | refs/heads/master | 2021-06-14T16:42:49.390585 | 2021-05-30T15:29:12 | 2021-05-30T15:29:12 | 74,153,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def bmi(weight, height):
bmi = (weight/height**2)
print(bmi)
return ("Underweight" if bmi <= 18.5 else "Normal" if bmi <= 25 else "Overweight" if bmi <= 30 else "Obese")
print(bmi(90, 1.80)) | [
"jason.mahony@autodesk.com"
] | jason.mahony@autodesk.com |
a948cb00874c590197218356b4be33325d720557 | 317676b47c60e3a86ef58c93fab14829156a2f27 | /18.1/18.1/_18.1.py | dfd81a7d3b92e9485e3ed4361784def2d932865f | [] | no_license | bellontea/python_lab3 | aa650a6e42997f0b03837bb3850c0590e92a91bc | 756a2a4929a1c3a6a1e26c7dec21f52cf1b44b87 | refs/heads/master | 2023-04-26T20:10:40.406188 | 2021-05-15T20:15:01 | 2021-05-15T20:15:01 | 367,721,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | def print_shrug_smile():
print("¯\_(ツ)_/¯")
def print_ktulhu_smile():
print("{:€")
def print_happy_smile():
print("(͡°ʖ ͡°)")
| [
"71792005+bellontea@users.noreply.github.com"
] | 71792005+bellontea@users.noreply.github.com |
2fab7f0d353b7e9fa2819146c61ec7b6bc83105a | 0cd096c51dda831ee64c405c7a994d18b0fe783f | /components/joystick.py | 792ba5075cc46b5ada499bf3459d4285c93c6d5d | [] | no_license | Denrur/ecs_turn_based | db1797ed787f644f334e7c08450139febf5ae7ae | 79ff9ea23fe74db7936d81afce8ddca4f0541e6f | refs/heads/master | 2020-07-12T22:47:09.800235 | 2019-11-06T12:47:24 | 2019-11-06T12:47:24 | 204,926,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | from bearlibterminal import terminal as blt
class Joystick:
def __init__(self):
self.action = None
def handle_player_turn_keys(self, key):
# r = blt.TK_KEY_RELEASED
if key == blt.TK_UP or key == blt.TK_W:
self.action = {'move': (0, -1)}
return {'move': (0, -1)}... | [
"denrurak@gmail.com"
] | denrurak@gmail.com |
a2de1e5017153780b682b865a1dba29d1ab68342 | b1e304b259d0cbca2cb86640237e24be7d6f870f | /plugin/database_prefab.py | 439e22d0057e56ec4f6e491b9225ad1f8eb52a31 | [] | no_license | toshihr/alignbench | 4b30edd42a7dec1a4c36c8fc93e8ec8b3521a3ec | 7000427e3b0b015856893ee43b69dedb63cdf4c3 | refs/heads/master | 2021-07-21T09:10:47.624153 | 2017-10-30T18:33:06 | 2017-10-30T18:33:06 | 108,892,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # -*- coding: utf-8 -*-
RESOURCE['databases'].update({
'prefab1':{
'arcName': 'prefab1.tar.bz2',
},
'prefab2':{
'arcName': 'prefab2.tar.bz2',
},
'prefab3':{
'arcName': 'prefab3.tar.bz2',
},
'prefab4':{
'arcName': 'prefab4.tar.bz2',
},
})
| [
"toshihr@toshihr-mbp.local"
] | toshihr@toshihr-mbp.local |
82a0c09f77fd08d7efdf8332cfffa06c22aff9ad | b55e0a122670a6a29b0b5e1581865f784ef200b9 | /chats/migrations/0005_alter_message_user.py | b4f25fa34cbf96c09ffe16b6c103ecfea68972d4 | [] | no_license | kattyeye/django-rest-chat-app | fc6b0a23535adb28efeff1d9f1af18ad982ce7bf | 052eadadcccd1e7f77d10f37424156e32b0210de | refs/heads/main | 2023-08-20T19:55:20.388391 | 2021-10-30T14:23:53 | 2021-10-30T14:23:53 | 416,809,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # Generated by Django 3.2.8 on 2021-10-16 13:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('chats', '0004_message_us... | [
"69052750+kattyeye@users.noreply.github.com"
] | 69052750+kattyeye@users.noreply.github.com |
7a0349daadc974318ba22b4c139e3450f7f2d011 | b008f826a1eaccdadaf7cba6d7a757f709d41ee6 | /salt-2016.3.2/salt/modules/data.py | 7263f1316eed85e060a86740fb98a706aace7ed1 | [
"Apache-2.0"
] | permissive | stephane-martin/salt-debian-packaging | 76b3c6f53bf908c230774abc3c35c0c8dc31d5dd | 4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66 | refs/heads/master | 2020-07-21T14:58:31.913198 | 2016-09-04T18:18:57 | 2016-09-04T18:18:57 | 66,794,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | # -*- coding: utf-8 -*-
'''
Manage a local persistent data structure that can hold any arbitrary data
specific to the minion
'''
from __future__ import absolute_import
# Import python libs
import os
import ast
import logging
# Import salt libs
import salt.utils
import salt.payload
# Import 3rd-party lib
import salt.... | [
"stephane.martin@vesperal.eu"
] | stephane.martin@vesperal.eu |
836924b6936b1ef655900c7fe38af18dfa353232 | 5c58587ebfbf56192b3dc6ed6f43bc002c8e2cff | /payments/api_clients/payeer.py | f71e3b1f3c7e7413e30dbc9dc0f7bf76fb48caaf | [] | no_license | hossamelneily/nexchange | fb9a812cfc72ac00b90cf64d6669a8129c2d2d4b | 6d69274cd3808989abe2f5276feb772d1f0fa8b4 | refs/heads/release | 2022-12-13T09:20:47.297943 | 2019-02-12T08:20:34 | 2019-02-12T08:20:34 | 210,064,740 | 1 | 2 | null | 2022-12-09T00:54:01 | 2019-09-21T23:19:34 | Python | UTF-8 | Python | false | false | 2,487 | py | from payments.api_clients.base import BasePaymentApi
import requests
import json
class PayeerAPIClient(BasePaymentApi):
""" Documentation: http://docs.payeercom.apiary.io/# """
def __init__(self, account='12345', apiId='12345', apiPass='12345',
url='https://payeer.com/ajax/api/api.php'):
... | [
"oleg@nexchange.co.uk"
] | oleg@nexchange.co.uk |
24477cb63cb6f686691370294340502c0cc654b2 | 10d9756f6c711ae20a0bbcb84f2be1adebb9ed5f | /examples/sparse_jacobi_matrix.py | 2fc5789dbff287ffd673d86521d98f0fd08f1579 | [
"BSD-3-Clause"
] | permissive | paulrozdeba/pyadolc | f44fa5589eeefb4a6b8e5e86625798c40aa529f0 | b3ab24a7181346545697a363ab5a3171d4bb218e | refs/heads/master | 2021-01-01T07:59:13.796652 | 2018-01-21T17:32:52 | 2018-01-21T17:32:52 | 97,529,945 | 0 | 0 | null | 2017-07-17T23:06:38 | 2017-07-17T23:06:37 | null | UTF-8 | Python | false | false | 752 | py | import adolc
import numpy
M,N = 4,2
sparsity_pattern_list = [numpy.random.randint(0,4*N,M)//(3*N) for n in range(N)]
def F(x):
y = numpy.ones(M, dtype=x.dtype)
for n,sp in enumerate(sparsity_pattern_list):
for ns, s in enumerate(sp):
if s == 1:
y[ns] *= x[n]
... | [
"sebastian.walter@gmail.com"
] | sebastian.walter@gmail.com |
da9cb52b8cf4baa8f36751f5f276ece4eef2e963 | cfaa6c0c92e3325fa49b6d6fc0079223bdd67f08 | /pre_processing.py | a8b897f81b2725b50ad4618874e535b9c3304ae5 | [] | no_license | ieee820/metal_crack_detector | e08187d503b4d6e71b1e0625a41491b05e477b7d | 4d1fc779f688046eba10ea6babc8e5a8df1bfde6 | refs/heads/master | 2020-06-30T21:31:48.394439 | 2019-07-23T05:16:02 | 2019-07-23T05:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import os
import numpy as np
import cv2
import matplotlib.pyplot as plt
from parameters import RESIZE_DIMENSION
HEALTHY_FENDER_APRON_PATH = './data/YE358311_Fender_apron_2/YE358311_Fender_apron/YE358311_Healthy'
DEFECTIVE_FENDER_APRON_PATH ='./data/YE358311_Fender_apron_2/YE358311_Fender_apron/YE358311_defects' \
... | [
"john.janmejaya@gmail.com"
] | john.janmejaya@gmail.com |
bfb9ba31588b661323abab54f4fd5873f537d7ca | 42e063977c906d351f463d68bbcfbab6baf32488 | /Train1.py | 79b5edc185a7b3d4209cf0fde6c0c0dcb9e7595b | [] | no_license | Yk1n0gEa/Linear-Regression | 01edac563bfcb7f7eb09ff2f19dcd8a1ed6ee0ac | 0a3c07e84bc402bac032500d0b524f73109789f8 | refs/heads/master | 2020-03-19T01:49:44.275480 | 2018-05-29T09:10:49 | 2018-05-29T09:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,404 | py |
import tensorflow as tf
import numpy as np
import pandas as pd
import random
tf.reset_default_graph()
train_user=0
train_time=1
model_path=""
X_csv_train_file_path=""
y_csv_train_file_path=""
Y_prediction_file_path=""
root_directory = "D:\\jd\\model"
#train_object=train_user
train_object=tra... | [
"noreply@github.com"
] | Yk1n0gEa.noreply@github.com |
a1ccf5b2c9bf663dea0c43f1ea78d0c558b05a2c | c744a0c0abb6a09144329deca0cfec542e0a147c | /trainw_keras.py | 08b3283e6097cddef24b8a68e41a2a81c355e20a | [] | no_license | pattywan234/Human-Activity-Recognition-HAR | c627421209910905be04035672e7f5158fd4a9bb | 636e0aa843350e7b61b5667b96ddcfdba009b82b | refs/heads/master | 2023-06-03T02:25:35.675593 | 2021-06-24T02:47:48 | 2021-06-24T02:47:48 | 235,273,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | # from numpy import array
import numpy as np
from LSTM_model05 import vanilla_LSTM, stacked_LSTM, bi_LSTM
#import training and test data
X_train = np.load('wesad/S2/Normalize/label_selected/train_keras/X_train.npy')
X_test = np.load('wesad/S2/Normalize/label_selected/train_keras/X_test.npy')
y_train = np.load('wesad/S... | [
"noreply@github.com"
] | pattywan234.noreply@github.com |
b3c2d00bbbcb4af4d0d9fc7842cf3e8e929b270b | 659e6db1ae3488fa15f1df551380d8e1b747cfb9 | /model/model.py | b5e337983d3ef2bea60b88444e7a9f66f78e6282 | [] | no_license | wormys/fracture | 17ee9c7216937603c0f6c97eb23da20244001c2a | 39c62201f82d18a144e0507ad74fc96f3604e7c2 | refs/heads/master | 2023-08-24T15:14:49.062061 | 2021-10-18T12:57:54 | 2021-10-18T12:57:54 | 366,652,767 | 0 | 1 | null | 2021-09-26T08:39:04 | 2021-05-12T08:55:13 | Python | UTF-8 | Python | false | false | 2,208 | py | """
Date: 2021/05/10
Author: worith
"""
import torch
import torch.nn.functional as F
class NetX2Y(torch.nn.Module):
def __init__(self, hidden1, hidden2, hidden3, physical_hidden, is_physical_info, n_feature, n_output):
super(NetX2Y, self).__init__()
self.hidden1 = torch.nn.Linear(n_feature, hidd... | [
"2589978839@qq.com"
] | 2589978839@qq.com |
3f1b92b2238951235a205e6a99611b26200bd26b | a03fad402b5380c290737ea31d2419bad404fe26 | /enfants/urls.py | 51b80d140f9125d428db40257faa56ef29ed9bc0 | [] | no_license | DavidS1106/pfe_backend | 982986ecf52b6c9b73ea1d45f55662841d51de60 | 7a66f8f1573488fa32c643fd1a3697f2fa4a3d65 | refs/heads/master | 2023-04-13T23:04:51.432942 | 2021-05-10T21:02:41 | 2021-05-10T21:02:41 | 276,981,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from django.urls import path, include
from . import views
from rest_framework import routers
router = routers.DefaultRouter()
router.register('enfants', views.EnfantsView, basename='enfant')
router.register('logged_enfant', views.logged_enfant, basename='logged_enfant')
router.register('non_logged_enfant', views.non_l... | [
"david.sabo@hotmail.be"
] | david.sabo@hotmail.be |
52bece35aa3f449fd4068d45847eb3aca3b36443 | 411eff94020c192d5e5f657fa6012232ab1d051c | /game/src/coginvasion/ai/AIBaseGlobal.py | e02f38f0e5f171a4dab307e0fed79073eeab559e | [] | no_license | xMakerx/cio-src | 48c9efe7f9a1bbf619a4c95a4198aaace78b8491 | 60b2bdf2c4a24d506101fdab1f51752d0d1861f8 | refs/heads/master | 2023-02-14T03:12:51.042106 | 2021-01-15T14:02:10 | 2021-01-15T14:02:10 | 328,268,776 | 1 | 0 | null | 2021-01-15T15:15:35 | 2021-01-09T23:51:37 | Python | UTF-8 | Python | false | false | 960 | py | from AIBase import AIBase
from direct.directnotify.DirectNotifyGlobal import directNotify
from panda3d.core import RescaleNormalAttrib, NodePath, Notify
__builtins__['base'] = AIBase()
__builtins__['ostream'] = Notify.out()
__builtins__['run'] = base.run
__builtins__['taskMgr'] = base.taskMgr
__builtins__['jobMgr'] = ... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
ef36daca0df48a857bb2a548b85be845df066979 | 1b298205e6164314d5d2d41ef1fa4986494b24e2 | /viterbi.py | a87ac08ce85b47b4f4e208f7a5eefab054d4d5a0 | [] | no_license | ywng/pos-tagger | 8c925fb7e07423e1bc16a3c3ed648d350ee6e44f | 620c4fd8a91f2f3e96479bd6d58ad705d4d6095b | refs/heads/master | 2020-04-27T08:46:29.592314 | 2019-03-08T03:00:53 | 2019-03-08T03:00:53 | 174,185,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | from __future__ import division
from const import START_END_OBS, START_END_TAG
import math
class Viterbi:
def __init__(self, obs_space, states, trans_prob, emit_prob):
'''
obs_space: all the possbile value of observations. In POS tagging, it is the vocabulary.
states: the HMM states. In POS tagging, ... | [
"victor.not.to.yield@gmail.com"
] | victor.not.to.yield@gmail.com |
d2ec3022630495244009b0dfaad6ae6fb279abda | 37dcb5cbe43eb2fd1ffe716e6bcf318dce10a275 | /RLE/R8C.py | bb7bfec73a62d8bfdc2d2f2ab76e00969219e847 | [
"MIT"
] | permissive | nesdoug/SNES_00 | 488f405d673927443dbbec05cfa5bfae6667d8c0 | c5755eb3e8d01c017b962a8ad2b5ec1b7067f18a | refs/heads/master | 2021-11-21T10:50:15.410248 | 2021-11-06T13:59:24 | 2021-11-06T13:59:24 | 237,279,311 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,049 | py | #!/usr/bin/python3
# 8 bit RLE compressor
# written by Doug Fraker 2020
# for SNES background maps (and other things)
# all 8 bit units, and 8-16 bit headers
# non-planar and planar combined version
# (planar = split all even and odd bytes)
# it tests both and outputs only the smaller
# eof byte (last of file) of F0... | [
"dougfraker@gmail.com"
] | dougfraker@gmail.com |
be0d2c0404f5a1d0904d36ae3e5636b9dbfb75f9 | 7fa176ce9ef29258ea3711612b0605ee82afd799 | /python/scikit-learn/svm/plot_dbscan.py | 778af1090ffaa7bbb5c36e76a8d5ecbfbdd491df | [] | no_license | fooyou/Exercise | c5137945821ee7f9f21a86f95c06d8e71941c19f | 1a5438d961f1716953b90921aa1ee9d60a97b23e | refs/heads/master | 2022-07-08T13:15:52.481707 | 2018-07-08T03:21:17 | 2018-07-08T03:21:17 | 37,168,041 | 1 | 1 | null | 2022-07-06T20:05:34 | 2015-06-10T01:18:11 | C++ | UTF-8 | Python | false | false | 2,478 | py | # -*- coding: utf-8 -*-
"""
===================================
Demo of DBSCAN clustering algorithm
===================================
Finds core samples of high density and expands clusters from them.
"""
print(__doc__)
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn... | [
"liuchaozhenyu@gmail.com"
] | liuchaozhenyu@gmail.com |
08fa44a4100c48ec759dfc091669bab7cb0353f1 | 0805820a350d51e832e5a5be995a3046b0445a20 | /developer_test/migrations/0005_auto_20210513_1716.py | 9b2295dd42f55bd3f19053b990b44a588b15b724 | [] | no_license | nseetim/patricia_task | a36ffdac5c15c603c1231800815a62fc619b90ec | 85bf0b3e1d2fa2cef3d7450b7485af8efb078db1 | refs/heads/master | 2023-05-02T07:33:24.371578 | 2021-05-14T05:35:19 | 2021-05-14T05:35:19 | 367,241,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | # Generated by Django 3.1.5 on 2021-05-13 17:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('developer_test', '0004_auto_20210513_0013'),
]
operations = [
migrations.A... | [
"etimnseabasi@gmail.com"
] | etimnseabasi@gmail.com |
a8714593d0c65c179984a8185652a1628d449660 | cf398ec3d87f334ecc9aadf23de6813b729b4633 | /src/tests/test_logging.py | 9462dbcd83175d57d3de26cd2373117f6315e65c | [
"MIT",
"MS-PL",
"LicenseRef-scancode-generic-cla"
] | permissive | fuhuifang/confidential-ml-utils | 71a385efb81eb27acd59c6152584313176165092 | 6b530a893fc650a5cf2bb68d560c2833ac1bf014 | refs/heads/main | 2023-05-05T01:46:23.576045 | 2021-03-01T16:19:14 | 2021-03-01T16:19:14 | 344,288,160 | 0 | 0 | MIT | 2021-03-03T23:05:16 | 2021-03-03T23:05:15 | null | UTF-8 | Python | false | false | 3,609 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import confidential_ml_utils
from confidential_ml_utils.constants import DataCategory
import io
import logging
import pytest
import re
import sys
def test_basic_config():
logging.warning("before basic config")
logging.basicConfig()
... | [
"noreply@github.com"
] | fuhuifang.noreply@github.com |
1c3fe5065e8682d0bc0842ad949a3e5b60eae09c | 9a51a7d5ddd3103e5d6ecce0077d70cf0db81927 | /148A.py | d5794a5dbf698af3b2db9c91475cde6fe6e2e5a4 | [] | no_license | Anikcb/Codeforces | 6eb9627eee07756d04e246e78ec1ad7c7b956c99 | 9a8d620447a23afa519f0aef8df6a8be189ddf12 | refs/heads/main | 2023-06-15T05:12:57.169088 | 2021-07-12T15:21:48 | 2021-07-12T15:21:48 | 380,301,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | k = int(input())
l = int(input())
m = int (input())
n = int (input())
d = int (input())
res=0
for i in range(1,d+1):
if i%k==0 or i%l==0 or i%m==0 or i%n==0:
res=res+1
print(res)
| [
"noreply@github.com"
] | Anikcb.noreply@github.com |
2c60324b3fa048f21d4ddb7e4a4d608d2f4ae9fe | a8fa4a499c44dce9a82e768edc82bdd193797128 | /ScrapePlugins/Crunchyroll/Run.py | 072c151bc74086a6fe1c380808eb0b7785a732e7 | [] | no_license | oliuz/MangaCMS | d8b2e44922955f6b9310fb6e189115f1985f2e93 | 7e2a710a56248261ab01686d3e586c36ce4a857d | refs/heads/master | 2020-12-28T19:46:41.265347 | 2016-08-27T23:37:47 | 2016-08-27T23:37:47 | 67,316,457 | 1 | 0 | null | 2016-09-03T23:36:21 | 2016-09-03T23:36:21 | null | UTF-8 | Python | false | false | 505 | py |
from .DbLoader import DbLoader
from .ContentLoader import ContentLoader
import runStatus
import ScrapePlugins.RunBase
class Runner(ScrapePlugins.RunBase.ScraperBase):
loggerPath = "Main.Manga.CrunchyRoll.Run"
pluginName = "CrunchyRoll"
def _go(self):
fl = DbLoader()
fl.go()
fl.closeDB()
if not ru... | [
"something@fake-url.com"
] | something@fake-url.com |
dd901b37ae78074d1b136ce7ad9d125fb38bfa9b | 1f38af9bae11acbe20dd8f5057b374b9760e6659 | /pyscf/geomopt/geometric_solver.py | 6e63b860d5f970435b404aca3d39f5e5b97bdb6f | [
"Apache-2.0"
] | permissive | highlight0112/pyscf | d36104ef727f593d46fbfd3e5d865c6cd0316d84 | 4afbd42bad3e72db5bb94d8cacf1d5de76537bdd | refs/heads/master | 2020-03-25T01:16:59.927859 | 2019-03-06T01:11:59 | 2019-03-06T01:11:59 | 143,229,588 | 0 | 0 | Apache-2.0 | 2019-03-06T01:12:00 | 2018-08-02T02:05:59 | Python | UTF-8 | Python | false | false | 5,188 | py | #!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
96f689b758e78d0bdd04395f059ac2cacaa4ac36 | 256e664847bf6a24d02b98f755348272f1e73368 | /merra/grid.py | d2a454a75ff7aab1101a7311ca434a67b3c75ecb | [
"BSD-3-Clause"
] | permissive | BRIK-Engenharia/merra | c4c5f9e3be5c6e534248c331bedfb9399d507a0d | 504d167b044a2cf236b727b6d0befcb435612e6a | refs/heads/master | 2021-10-21T14:01:43.391399 | 2019-03-04T10:46:25 | 2019-03-04T10:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | # The MIT License (MIT)
#
# Copyright (c) 2019, TU Wien
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | [
"felix.zaussinger@geo.tuwien.ac.at"
] | felix.zaussinger@geo.tuwien.ac.at |
e1c0280fa4672db1594118ed124f9ae4c0c5f5c0 | 0acfe39cbbf843e35696c4c5e312192ac7b7159b | /renrenribao/article/migrations/0002_article_created_time.py | e974de0e9f1617a4c14c24ba56fbcc7905085d90 | [] | no_license | tiant167/renrenribao | c2d8bdaa2ecdb60cecfdfb53a17e96c940851920 | 1b0a1fdcd5ce3fa97adc515c3178402ec869f018 | refs/heads/master | 2021-01-25T07:39:45.462791 | 2014-12-17T08:50:58 | 2014-12-17T08:50:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | 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 = [
('article', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"haotianchai@wandoujia.com"
] | haotianchai@wandoujia.com |
04521521cd080fa531cf3cecce5a57426136edae | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/w11.py | d34dec34a1f3c4bc9a0709f495d47f09c917783a | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
9bff11e3a8633333af71b3cc5a2bc2241e5e3ec0 | 68c182cbb167ec6870ec1a301958e71ce8f9bcbb | /test/functional/p2p_permissions.py | d59b0acadab68cf792b145888a6743bf9ce0b48e | [
"MIT"
] | permissive | megamcloud/umkoin | de10e9bbe0afbdc7210db56e41f823a0805283be | 3e0d7a48f459ff09f0b9e02c3ed30563670009c8 | refs/heads/master | 2022-05-30T00:18:10.962521 | 2020-04-26T08:21:01 | 2020-04-26T08:21:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,694 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test p2p permission message.
Test that permissions are correctly calculated and applied
"""
from test... | [
"vmta@yahoo.com"
] | vmta@yahoo.com |
9514286077c40b1598552cdc24d2d2d31844d5fe | 34ed92a9593746ccbcb1a02630be1370e8524f98 | /lib/pints/pints/tests/test_mcmc_relativistic.py | 1fb0e2abb531defd9c0d3b86dccf543b66d3e108 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | HOLL95/Cytochrome_SV | 87b7a680ed59681230f79e1de617621680ea0fa0 | d02b3469f3ee5a4c85d756053bc87651093abea1 | refs/heads/master | 2022-08-01T05:58:16.161510 | 2021-02-01T16:09:31 | 2021-02-01T16:09:31 | 249,424,867 | 0 | 0 | null | 2022-06-22T04:09:11 | 2020-03-23T12:29:29 | Jupyter Notebook | UTF-8 | Python | false | false | 6,142 | py | #!/usr/bin/env python3
#
# Tests the basic methods of the Relativistic MCMC routine.
#
# This file is part of PINTS.
# Copyright (c) 2017-2019, University of Oxford.
# For licensing information, see the LICENSE file distributed with the PINTS
# software package.
#
import unittest
import numpy as np
import pints
imp... | [
"henney@localhost.localdomain"
] | henney@localhost.localdomain |
e6a758972e70604e79582b0290a099ed73535f7d | 0f880611b30941662cee4b37fb16e90b1227a3e4 | /lib/utils/log.py | 1a50c636269ed470cc8a80b1712004bcd313ad75 | [] | no_license | ColdHumour/PortfolioMonitor | 6cefa499aa6bec059e035fca7300926f84c840e9 | d7da8a8c52e494bee30b1238521fc383b2489154 | refs/heads/master | 2020-04-06T05:13:51.245235 | 2016-11-02T07:01:34 | 2016-11-02T07:01:34 | 54,858,149 | 0 | 1 | null | 2016-08-24T07:08:16 | 2016-03-28T01:59:22 | Python | UTF-8 | Python | false | false | 731 | py | # -*- coding: utf-8 -*-
"""
log.py
@author: yudi.wu
"""
import json
import logging
from . path import LOG_FILE, CONFIG_FILE
open(LOG_FILE, 'w').close()
def set_logger(name, level):
logger = logging.Logger(name)
logger.setLevel(level)
# set handler
handler = logging.FileHandler(LOG_FILE)
handle... | [
"jasper.wuyd@gmail.com"
] | jasper.wuyd@gmail.com |
eb02dc1e6b7e567cad140a6e64b4ffcbd14c3557 | 44f3a3b7541c99554cbd94b015a8c25593f3e95e | /email/pyse_mail/public/login.py | d317bbd7ab8d43b189f8f4b3b87307630db4bbd1 | [] | no_license | reblues/study | adc2d255c4c5990fcfcd4d8691625057c95357d8 | 7ea2854c778279d40d1dd3df362f463774f5971b | refs/heads/master | 2020-12-31T05:24:13.440027 | 2016-06-01T06:28:33 | 2016-06-01T06:28:33 | 58,917,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | #!/user/bin/env python
# -*- coding:utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException
import time,... | [
"534948651@qq.com"
] | 534948651@qq.com |
e0164f076b0f134294981ab8b376febecefb227c | 02f2e8b08231290656ffaea8fce5bf03b2150780 | /mall/apps/areas/serializers.py | e74483ac5c6f3463545b6b8434d75d72ba22fb25 | [
"MIT"
] | permissive | googleliyang/django-meiduo-teach | 407aa08b65d29c914281a8b759db3b1cdd25defb | afb89767b77118f38dca6f1c2e3b98db0474e48f | refs/heads/master | 2020-04-28T16:25:23.905191 | 2019-03-11T04:38:01 | 2019-03-11T04:38:01 | 175,409,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | from rest_framework import serializers
from areas.models import Area
# area
# 省的信息
class AreaSerializer(serializers.ModelSerializer):
# area_set = serializers.PrimaryKeyRelatedField(many=True,read_only=True)
class Meta:
model = Area
fields = ['id','name']
# 市的序列化器
class SubsAreaSerializer(se... | [
"qiruihua@itcast.cn"
] | qiruihua@itcast.cn |
efcef61de6ca47fda0549982e2032134ed07f440 | f9be26f1a01aecda9f4ded28922e1490c450558d | /plc-2.0/lib/python2.7/site-packages/pyfits-3.5-py2.7-linux-x86_64.egg/pyfits/compression.py | 8b72aebbd02c0324116a1c1f29b8765231a7a106 | [] | no_license | NinaKate/CCR | 7c71c5dc2a31af2bb76b2cc2d9e5a7c6193486ee | ba4c5ae159d97bcc78eb3570428ec33f87761ebe | refs/heads/master | 2018-11-14T01:24:27.890646 | 2018-08-27T17:08:23 | 2018-08-27T17:08:23 | 105,586,700 | 0 | 0 | null | 2017-12-03T20:20:34 | 2017-10-02T21:24:35 | C++ | UTF-8 | Python | false | false | 281 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__,'compression.so')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"ninastei@buffalo.edu"
] | ninastei@buffalo.edu |
fff66fda560450668aa9428a18225497f0cf09ee | cbb6ef5b109d262459167dc8cee8264e4b4b4487 | /pollsapi/polls/migrations/0001_initial.py | e72942e34d8f5ed5363e047f78baa698c959b1a4 | [] | no_license | TaTRaTa/Django_DRF | 2b5541eec39fbc85fa71634f80efadf80ff15a36 | 232d36058073ee74e63e13cf9f69481b51d0a3b9 | refs/heads/master | 2021-03-13T12:38:16.164786 | 2020-03-17T21:56:32 | 2020-03-17T21:56:32 | 246,681,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | # Generated by Django 3.0.4 on 2020-03-12 22:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"cvetomir.defyy@gmail.com"
] | cvetomir.defyy@gmail.com |
ac572ec20daedd8a6e8d42a53fc9d042e52f7602 | 24820f2df644263d6273e7de78f0733ca81511d9 | /Robot_Simulator/pose_script.py | d28af4ff074b8220be03e92cd55a9d617ebc6258 | [] | no_license | dwhisler/robotic_arm | 1c0603d9a21710bd08d108b3397aa7147f789720 | c8eef383e1401141f5a87f485798240cfd2ff8fb | refs/heads/master | 2020-03-15T18:37:24.885097 | 2018-09-20T04:03:42 | 2018-09-20T04:03:42 | 132,288,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 19 23:18:15 2018
@author: David
"""
from ServoDriver import *
from DTRobot import *
COM = 4
serv = ServoDriver(COM)
rob = DTRobot('config.ini')
#serv.setPose([0, 0, 0, 0, 0, 0])
#input("Press Enter to continue...")
serv.setPose(rob.robot.joints)
input("Press Enter to... | [
"dwhis428@gmail.com"
] | dwhis428@gmail.com |
b7787491c00166a9f9516646d4c2054fe8fe1245 | 557ca4eae50206ecb8b19639cab249cb2d376f30 | /Chapter12/Ex12_3.py | 96ad465cf0df4d21b32435eb806eb5946bf1eb75 | [] | no_license | philipdongfei/Think-python-2nd | 781846f455155245e7e82900ea002f1cf490c43f | 56e2355b8d5b34ffcee61b38fbfd200fd6d4ffaf | refs/heads/master | 2021-01-09T19:57:49.658680 | 2020-03-13T06:32:11 | 2020-03-13T06:32:11 | 242,441,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from Ex12_2 import *
def metathesis_pairs(d):
for anagrams in d.values():
for word1 in anagrams:
for word2 in anagrams:
if word1 < word2 and word_distance(word1, word2) == 2:
print(word1, word2)
def word_distance(word1, word2):
assert len(word1) == len(w... | [
"philip.dongfei@gmail.com"
] | philip.dongfei@gmail.com |
80c5331bac48eab4818a62eed9690372b32be540 | 0fbc1c6f72a69f368c14f2ca9af8b03487140b6d | /contact/views.py | a057a95c4ae29a16f497435a13015110b9c9b17d | [] | no_license | ritusabu/Ecommerce-product | 1c3e95d09438ab2ff8dfb83aaf3c2771f97e3440 | b9e6f8f16c1dbf19a0f2624f5c9b1bbdd8b2d670 | refs/heads/master | 2023-03-05T05:18:02.065448 | 2021-02-16T10:30:10 | 2021-02-16T10:30:10 | 334,204,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from django.shortcuts import render
from django.http import HttpResponse
from contact.models import Contact
from product.models import Offer, Category, Products
# Create your views here.
def contact(request):
a= request.POST.get("name", "")
b= request.POST.get("mail", "")
c= request.POST.get("text", "")
... | [
"ritusabu12@gmail.com"
] | ritusabu12@gmail.com |
f7fcb553c02ffff0e4816ffbb847e1c926470726 | b55f70755712b26688b80a8ba3806a4124fbcd11 | /BinaryTree/lowest_common_ancestor.py | c5fac7a034bae171afb4a6a2bb03b6ce00e81aa2 | [] | no_license | Shanshan-IC/Algorithm_Python | a44703a0f33370c47e3e55af70aadeae08d5a1a5 | ace23976d2f1f51141498c4c4ea6bca0039b233f | refs/heads/master | 2021-09-08T07:16:59.576674 | 2018-03-08T09:24:01 | 2018-03-08T09:24:01 | 114,254,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | '''
两个值都在左边,则LCA在左边
两个值都在右边,则LCA在右边
一个在左一个在右,则说明LCA就是当前的root节点。
'''
"""
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param: root: The root of the binary search tree.
@param: A: A TreeNode in... | [
"shanshan.fu15@imperial.ac.uk"
] | shanshan.fu15@imperial.ac.uk |
21b6f5c9313bb2beb0284929069e54b107bf6ea9 | 1d7a6d74a9a906a96aa61ab94c1edee610ccd92b | /zip_build/rvt-qgis/qrvt_dialog.py | 36b723c750e4f016c2627a61d72d8aac9017b43b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | IsaacMrSmile/rvt-qgis | 350fc6283cfe17e021a22ec62ec98e000b2f0606 | fac15ef95534483967be691a1dfacd5b0bd9a047 | refs/heads/master | 2023-02-21T00:32:30.917054 | 2021-01-22T07:12:22 | 2021-01-22T07:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
QRVTDialog
A QGIS plugin
RVT plugin lets you compute different visualizations from raster DEM.
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
... | [
"zm8597@student.uni-lj.si"
] | zm8597@student.uni-lj.si |
6e69cbf407d691845da736d0f0e4fe9b57e0019a | a65c77b44164b2c69dfe4bfa2772d18ae8e0cce2 | /test/testgen.py | 045d1ec03e086452f960b6967c1fd274939e737d | [] | no_license | dl8sd11/online-judge | 553422b55080e49e6bd9b38834ccf1076fb95395 | 5ef8e3c5390e54381683f62f88d03629e1355d1d | refs/heads/master | 2021-12-22T15:13:34.279988 | 2021-12-13T06:45:49 | 2021-12-13T06:45:49 | 111,268,306 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | #!/usr/bin/env python3
from random import randint, shuffle
import string
import random
def randomString(stringLength=10):
"""Generate a random string of fixed length """
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for i in range(stringLength))
def randomTree(sz):
edg = []
... | [
"tmd910607@gmail.com"
] | tmd910607@gmail.com |
f50377730a35ff7aa5b58fa06bcf47fcd71189ea | 033da72a51c76e5510a06be93229a547a538cf28 | /Data Engineer with Python Track/20. Introduction to Spark SQL in Python/Chapter/01. Pyspark SQL/02-Determine the column names of a table.py | a60646c8daa0abfe3fe390558fd3a17b52d8658c | [] | no_license | ikhwan1366/Datacamp | d5dcd40c1bfeb04248977014260936b1fb1d3065 | 7738614eaebec446842d89177ae2bc30ab0f2551 | refs/heads/master | 2023-03-06T13:41:06.522721 | 2021-02-17T22:41:54 | 2021-02-17T22:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | '''
Determine the column names of a table
The video lesson showed how to run an SQL query. It also showed how to inspect the column names of a Spark table using SQL. This is important to know because in practice relational tables are typically provided without additional documentation giving the table schema.
Don't ... | [
"surel.chandrapratama@gmail.com"
] | surel.chandrapratama@gmail.com |
be2c9c0203597021595d503e7f6d72164b2028eb | 889b542e025a3f4857aa9faf7abcec6afebdce37 | /init.spec | c2ada7cfd4de5d92f4af1c8ed130636b9c6554cb | [
"MIT"
] | permissive | mfneirae/Sara | c685bafe6bd69378cd81ada98d011d7f18564948 | a4b4bcae05bf39e4f8ad49b47640ccf552abce03 | refs/heads/master | 2020-03-25T19:20:04.915517 | 2018-09-19T21:43:24 | 2018-09-19T21:43:24 | 144,077,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['init.py'],
pathex=['C:\\Users\\Ing_99\\Desktop\\Sara'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer... | [
"mfneirae@unal.edu.co"
] | mfneirae@unal.edu.co |
030af696a1ebdd2d98a56cc9345bfe20f5099896 | 67ceb35320d3d02867350bc6d460ae391e0324e8 | /practice/hard/0675-Cut_Trees_for_Golf_Event.py | e91dcd1441c759908435b4cb1b2766949823a97b | [] | no_license | mattjp/leetcode | fb11cf6016aef46843eaf0b55314e88ccd87c91a | 88ccd910dfdb0e6ca6a70fa2d37906c31f4b3d70 | refs/heads/master | 2023-01-22T20:40:48.104388 | 2022-12-26T22:03:02 | 2022-12-26T22:03:02 | 184,347,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | class Solution:
def cutOffTree(self, forest: List[List[int]]) -> int:
"""
0. while there are trees to cut down
1. walk to coordinates of next tree; cut down - do BFS dummy
2. if tree is unreachable - return
"""
from collections import deque
from sortedcontainers import SortedDict
def... | [
"noreply@github.com"
] | mattjp.noreply@github.com |
5d03c3f6f21cf2a5cf29fc8907a7adfcc620d57f | 2ad41c2a31618433568c86e63f68a3ef2918d55c | /tool/Modules/cfg_scripts.py | 25ca07351b013433ffe1409fb953f7919d31d99b | [
"MIT"
] | permissive | Iemnur/megaman-zx-traducao-ptbr | 7cad0b7f7bcfd6692fe850f3c6c4e26ab2b90f63 | f2710a06052384cf93d423681e9875c6cd424f06 | refs/heads/master | 2021-12-14T20:13:48.206022 | 2020-05-26T01:53:10 | 2020-05-26T01:53:10 | 82,298,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | '''
Created on 05/03/2013
@author: diego.hahn
'''
import os.path
import sys
python_path = os.path.dirname( sys.executable )
packages_path = os.path.join( python_path , r"Lib\site-packages" )
scripts_path = os.path.dirname( os.path.abspath( __file__ ) )
libs = [r"" , r"rhCompression", r"rhImages", r"pytable"]
with... | [
"hansen.hahn@gmail.com"
] | hansen.hahn@gmail.com |
2c4d4ae9918a8cfb4516783ec1911a72d0c2c3c0 | ca51878f71e5b3e1958e42e45019f92c9045b02e | /ClubWebsite/settings.py | 299f6528cb142d270cc7732323a0fb9ce4ec8ea1 | [
"Apache-2.0"
] | permissive | pettta/ClubWebsite | 07d1c828fa73f8d5b35fba99bfa910ba3a610b7c | 83ed5e2c923d8c13aa1f76e564bb817e6ad81fb1 | refs/heads/main | 2023-07-16T10:43:55.841813 | 2021-07-01T20:32:46 | 2021-07-01T20:32:46 | 401,377,529 | 0 | 0 | Apache-2.0 | 2021-08-30T14:41:02 | 2021-08-30T14:41:01 | null | UTF-8 | Python | false | false | 3,280 | py | """
Django settings for ClubWebsite project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [
"vivekkhimani07@gmail.com"
] | vivekkhimani07@gmail.com |
f8041e3723b6c11795df50a6b0361b01f3581dbe | c81a507a4c76db54e9e29a2a457a017a8725a8c2 | /scripts/data/CIFAR10.py | 1b8661fae5a1a2e9020944f726264ac045937008 | [] | no_license | CSWater/blitz | b8e5d1f5a69a64a9dc12be7252f95ed40f2178c5 | cc5488f1623f5b3161fa334e6813d499918dcc5e | refs/heads/master | 2020-06-11T00:27:52.466242 | 2016-12-27T07:49:22 | 2016-12-27T07:49:22 | 75,832,706 | 1 | 0 | null | 2016-12-07T12:11:00 | 2016-12-07T12:10:59 | null | UTF-8 | Python | false | false | 3,580 | py | import os
import sys
import cPickle
import h5py
import numpy as np
def _valid_path_append(path, *args):
full_path = os.path.expanduser(path)
res = []
if not os.path.exists(full_path):
os.makedirs(full_path)
if not os.path.isdir(full_path):
raise ValueError("path: {0} is not a valid dire... | [
"robinho364@gmail.com"
] | robinho364@gmail.com |
414e11c2131f405f7fa99aba0b23eed0f5667a6f | e6a43cb50cd36ed8bc3f70a3cd830bffb3f03d5e | /set03/q23_sectionlv.py | 4b077194b48d1e5b797178b986dcb9b80fcb16aa | [] | no_license | pizzaboi/nlp100_2_python | a74b4ab0aadffe6a5cd75cd205bca8777ebce8e5 | b36a50442b581c6547ab6f02c7c2b18038a7b420 | refs/heads/master | 2016-09-05T09:31:40.081775 | 2015-12-17T05:53:29 | 2015-12-17T05:53:29 | 34,831,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | #! /usr/bin/python
#-*- coding: utf-8 -*-
"""
USAGE: python q20_readjson.py < jawiki-country.json.gz | python q23_sectionlv.py
"""
import re
import sys
def section_lv():
for line in sys.stdin:
if line.startswith('=='):
print line.strip('= \n'), (line.count('=') / 2) - 1
if __name__ == '__main__':
section_lv(... | [
"tophamhatt.crazy@gmail.com"
] | tophamhatt.crazy@gmail.com |
fee35bcc21bb856c0b4260204cdaba7d991b37b3 | 8ead622826bc21b37eb6fd2048af91d510151356 | /projects/alonememo/app.py | 94e5e9ca5d90d447b61d5b72d5f09acf303d21a0 | [] | no_license | smc5720/Sparta-Coding-Basic | 5762a5e397c60fcbde5e9ea58fcb9449931d8031 | ff4271ededa516ed5c44875509e4b916f04320c5 | refs/heads/main | 2023-05-14T19:21:53.848721 | 2021-06-11T09:32:00 | 2021-06-11T09:32:00 | 374,037,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | from flask import Flask, render_template, jsonify, request
app = Flask(__name__)
import requests
from bs4 import BeautifulSoup
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.dbsparta
## HTML을 주는 부분
@app.route('/')
def home():
return render_template('index.html')
@app.ro... | [
"smc503@naver.com"
] | smc503@naver.com |
d080f213409dd5c85811969f8b2e789bd4d38370 | 78b165272ba2cb3719de3c27e83d9c5b3b6b0a85 | /scripts/python/minheap.py | 9e4ddae3174b98e471e0e7a2d94196a4efea0227 | [] | no_license | SeaTalk/Funcodes | 5fcd4727565d2ca99d226b04bd58385218bd2fbf | bd34b19fa99be42433e1305f2f8c6bef14a6bb3f | refs/heads/master | 2021-10-11T22:11:18.898476 | 2021-09-30T07:26:34 | 2021-09-30T07:26:34 | 140,306,910 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | #!/usr/bin/python
import string
class MinHeap(object):
def __init__(self, cap):
self.data=[]
self.count=len(self.data)
self.capacity=cap
def size(self):
return self.count
def isEmpty(self):
return self.count == 0
def getData(self):
retu... | [
"tangjintao@jd.com"
] | tangjintao@jd.com |
848df2db66999946ac0072ad26a7281ea8eebf06 | 7a110d64c3d1ca8a88623b6fb0453904011552ad | /weather_app/weather/views.py | 75ca56cb64cdd7fbcaeccffc2ff30c9f06367b9b | [] | no_license | shubhamt10/weather-app-django | a93e15ce146fd8fcbd0aaaed7166eb418d97d244 | 539a4d087f88d78621f456aec5ef1a6f261ae4f0 | refs/heads/master | 2021-03-25T11:44:52.885816 | 2020-03-16T05:09:35 | 2020-03-16T05:09:35 | 247,614,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | from django.shortcuts import render,redirect
import requests
from .models import City
from .forms import CityForm
# Create your views here.
def index(request):
url = 'http://api.openweathermap.org/data/2.5/find?q={}&units=metric&APPID=cc40415657293a697c8f80bd1e548a4b'
err_msg = ''
message = ''
message... | [
"tripathi.shubham509@gmail.com"
] | tripathi.shubham509@gmail.com |
f8b10ec3dbc9c3b2d9a88a5d5b82dd518963aa1a | 155b365fb459caff5f57f9e5eb55a26895a016cd | /evento_01/evento_01/wsgi.py | a69659105175ae9239e21c792c5af9e5efe7552a | [] | no_license | Claison/EVENTO | a43fa39eb3ea4fdd29c4c9ffd858b6e20be1c02b | 61b97f980f7cd77b4de92088c6601378a520ea86 | refs/heads/master | 2021-06-25T18:55:51.229559 | 2017-09-12T00:59:17 | 2017-09-12T00:59:17 | 103,141,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for evento_01 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"30608657+Claison@users.noreply.github.com"
] | 30608657+Claison@users.noreply.github.com |
d8ec9342e39bee550628a862353198ee5b37bcd4 | cd2a90eb6df7361a2ed00312ff1be196bf686f0e | /homework/conftest.py | 389e88c0dba10d7f481700966d7f3336333c57db | [] | no_license | Liuzicheng1994/auto | 8006337b530b80fea39cd36a04bf103e2a3ba711 | e9a4069f454d0be0e5be2dd79700944623dea153 | refs/heads/master | 2023-07-30T17:59:28.558035 | 2021-09-10T01:40:00 | 2021-09-10T01:40:00 | 356,810,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import pytest
from homework.calculator import Caculator
@pytest.fixture()
def calculate():
print("开始计算")
cal =Caculator()
yield cal
print("结束计算") | [
"569974494@qq.com"
] | 569974494@qq.com |
229ad85295f1114269334096a485f0e1a78646d3 | 17d7d9a35c617132965f331060e846d9fe12f129 | /lessons/16/serialization2.py | f93ed3958b09fb964dae1bb369120a7ae61b2498 | [] | no_license | loristissino/oopython | c46f3e07dc6c4829362efb43f5bbfb496053747b | 0e3ab872f8c2736a0e2d189f7d9700997a3c857a | refs/heads/master | 2016-09-05T11:33:54.287376 | 2011-12-14T17:01:45 | 2011-12-14T17:01:45 | 40,006,358 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3.1
import pickle
data=('foo', 'bar', 'baz')
with open('mydata', 'wb') as f:
pickle.dump(data, f, pickle.HIGHEST_PROTOCOL)
data=()
with open('mydata', 'rb') as f:
data = pickle.load(f)
print(data)
| [
"loris.tissino@5be9ef65-fe4e-d553-c31d-209ad9341544"
] | loris.tissino@5be9ef65-fe4e-d553-c31d-209ad9341544 |
7fd98a807bdf12bc76653e933673247354cf7d49 | 692a43899841bf0569c4f44bf2bba435eea71bbe | /pycloud/pycloud/network/cloudlet_dns.py | 3850491cebff1b2b95defae29992e92f2166ad82 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-2-Clause"
] | permissive | SEI-TAS/pycloud | 52a4403cdbdb2eaeabf18c377a806089591aea31 | beebe297b3ed35de0bc53b75f9f2b4a2e80d892a | refs/heads/master | 2023-06-22T08:19:46.038367 | 2023-06-15T18:24:31 | 2023-06-15T18:24:31 | 30,374,770 | 5 | 4 | NOASSERTION | 2023-06-15T18:24:32 | 2015-02-05T19:46:50 | Python | UTF-8 | Python | false | false | 3,913 | py | # KVM-based Discoverable Cloudlet (KD-Cloudlet)
# Copyright (c) 2015 Carnegie Mellon University.
# All Rights Reserved.
#
# THIS SOFTWARE IS PROVIDED "AS IS," WITH NO WARRANTIES WHATSOEVER. CARNEGIE MELLON UNIVERSITY EXPRESSLY DISCLAIMS TO THE FULLEST EXTENT PERMITTEDBY LAW ALL EXPRESS, IMPLIED, AND STATUTORY WARRANTIE... | [
"sebastian.echeverria@gmail.com"
] | sebastian.echeverria@gmail.com |
0aa0ebe728e983713ebd5eb41983a47e04759129 | d1f4ab60c5439c4e91025d96384acdedbcb47271 | /DFS,BFS/5-6 미로 탈출.py | 8d23a0a4c92327dfb359e8bd664531de2d099f1c | [] | no_license | ans4572/CodingTest-with-Python | 8722f07967c76073485282c4eee7506a6d75edb6 | ab5e559fd2b8bd73785435c60debd6d558b01ca7 | refs/heads/main | 2023-07-31T10:24:01.685112 | 2021-09-24T16:13:34 | 2021-09-24T16:13:34 | 372,752,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from collections import deque
N,M = map(int,input().split())
graph = []
for i in range(N):
graph.append(list(map(int,input())))
dx = [-1,0,1,0]
dy = [0,1,0,-1]
def BFS(x,y):
queue = deque()
queue.append((x,y))
while queue:
x, y = queue.popleft()
for i in range(4):
... | [
"noreply@github.com"
] | ans4572.noreply@github.com |
9660216677c127738ccae93efffd11f88bb9cf9a | fa21ed4e665f00bd22236b6b224b247014ff2772 | /nodes/speed_controller.py | a964d53f56b5d404997bc813aff01b95e3d68cdf | [] | no_license | klipfel/rosGoturn | 87d77969102e22aff94ce83a07c77556d0e47062 | 2243259820a542791df5baed0eb97c16836dba46 | refs/heads/master | 2020-06-15T23:00:27.008175 | 2019-07-19T13:45:44 | 2019-07-19T13:45:44 | 195,414,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | #!/usr/bin/env python3
import board
import adafruit_pca9685
import busio
import time
import os
class Servomotor:
def __init__(self):
i2c = busio.I2C(board.SCL, board.SDA)
self.pwm = adafruit_pca9685.PCA9685(i2c)
self.pwm.frequency = 50
# values
self.leftMax = 100
self.rightMax = 0
self.straight = 50
... | [
"arnaudklipfel@hotmail.com"
] | arnaudklipfel@hotmail.com |
9670e8c23fe063f1c2f789cdbab33cb5eb371392 | 543efc7b32ab55a44ba4b85029c322228ac207db | /scripts/fit_aves.py | 80a60cb3346d348755ab51ba454b7a6467e7899a | [] | no_license | hmnaik/aves | 2238627b0a73237e74479f67eb78ee198283aab1 | 92cb2c5a50fd65d7056f93f209931e721946e818 | refs/heads/main | 2023-05-05T13:20:37.315266 | 2021-05-19T17:56:55 | 2021-05-19T17:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
import torch
import _init_paths
from models import mesh_regressor, AVES
from optimization import base_renderer, AVES_Fitter
from utils.renderer import Renderer
from utils.cub_dataset import CUB_Dataset
parser = argparse.ArgumentParser()
par... | [
"yufu@seas.upenn.edu"
] | yufu@seas.upenn.edu |
35365a1db34207810102ae5b1c2ee05f251e40f1 | 93c1d86cfa6893063519a89e73a647f0c2b48257 | /stronka/migrations/0033_auto_20190617_1916.py | 8e7099f79b5e85ec7f89d6a13685914ca616f883 | [] | no_license | panchrobry/ProjektSzkieletoweREPO | 24629649989a2eefe6af199e31b84e0b8d88b9b8 | a0eeb244cfa8fc829739932ce167802b54f62382 | refs/heads/master | 2022-12-10T04:51:03.773554 | 2019-06-20T11:13:09 | 2019-06-20T11:13:09 | 177,784,319 | 0 | 0 | null | 2022-11-21T21:31:28 | 2019-03-26T12:29:41 | Python | UTF-8 | Python | false | false | 453 | py | # Generated by Django 2.0.13 on 2019-06-17 17:16
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stronka', '0032_auto_20190617_1737'),
]
operations = [
migrations.AlterField(
model_name='team',
na... | [
"karolek9.10@o2.pl"
] | karolek9.10@o2.pl |
eee4cab21177b67375dd31d211b70f0587198b8e | 0e014984751a44761864c79546939bc21d699752 | /edx_AI_Week9/search.py | ba613c6121722cbb407f881c34bbefb2ba79bd47 | [] | no_license | miguel-ossa/AI-Columbia-Exercises | 8c76bb0e469f8b55976b22b035867ea68041d4da | 25758f35bc7f93e8e3dece6fed5b6db7a4cf5c81 | refs/heads/master | 2020-03-29T12:14:05.010584 | 2019-06-02T07:32:29 | 2019-06-02T07:32:29 | 149,854,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,167 | py | """Search (Chapters 3-4)
The way to use this code is to subclass Problem to create a class of problems,
then create problem instances and solve them with calls to the various search
functions."""
from __future__ import generators
from utils import *
import agents
import math, random, sys, time, bisect, string
class... | [
"miguel.ossa.abellan@gmail.com"
] | miguel.ossa.abellan@gmail.com |
a07db48cd66c17dc6ba5bed0065585a071c5c8a4 | 8f83fb0541a9b542de4f4456bd2c14d6ed188b95 | /mysite/config/settings/local.py | d8c13717c8331dda3aae85834587525058f6ad0e | [] | no_license | klee2017/Deploy-EB-docker | fc3b8c7d577f141b0273290f6fd8716f2e423204 | b78292d6ef2f38987a1b6ad816ffaa89c4698789 | refs/heads/master | 2021-07-24T12:23:02.248951 | 2017-11-03T08:01:02 | 2017-11-03T08:01:02 | 108,818,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import random
import string
from .base import *
ALLOWED_HOSTS = [
'localhost',
'127.0.0.1',
'.elasticbeanstalk.com',
'.locomoco.co.kr',
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
SECRET_KEY = ''.join(... | [
"kaythechemist@gmail.com"
] | kaythechemist@gmail.com |
bfc85210f3b259e11c7149a04537292c0612d22b | dfb193385a1d15f0aa0898ee67a7abd837666a5f | /RPi4B/dht22.py | eb036879e6ac282710090a6af7b1b70e8719d759 | [] | no_license | OSHW-UHU-Group/SBA-IST | ed3a25e01c9efbc35262187c1b6f29f812138c9e | 3c3a2cfafea0754f6aa51151db828401a7048ab6 | refs/heads/master | 2023-06-16T08:29:26.648085 | 2021-07-09T11:36:52 | 2021-07-09T11:36:52 | 379,353,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import time
import board
import adafruit_dht
dht = adafruit_dht.DHT22(board.D26, use_pulseio=False)
def humidity():
global dht
i = 0
while i<10:
try:
temperature_c = dht.temperature
humidity = dht.humidity
return humidity, temperature_c
except RuntimeEr... | [
"alvarez@uhu.es"
] | alvarez@uhu.es |
e7f1ba699ec76f92212d50d4d70c0fb5f85ae38d | 97228f81e03cebd8c250c267b4943bddb3640fd1 | /gdksite/event/migrations/0011_auto_20181221_1244.py | e01af6b8008dd2e6ca92ca49f5c67484b84daf3c | [
"MIT"
] | permissive | vgrivtsov/moygdk | 88e48e234d8737e044dc6bd9c4e1794c2a25fe32 | 74d63299c7326bcae92a17b61d978ad91f0d5552 | refs/heads/master | 2022-12-09T18:38:28.731819 | 2021-02-12T10:20:45 | 2021-02-12T10:20:45 | 164,198,744 | 0 | 0 | MIT | 2022-12-08T01:34:21 | 2019-01-05T09:02:21 | JavaScript | UTF-8 | Python | false | false | 443 | py | # Generated by Django 2.1.4 on 2018-12-21 12:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('event', '0010_auto_20181220_0821'),
]
operations = [
migrations.RemoveField(
model_name='eventpage',
name='event_date',
... | [
"vgrivtsov@gmail.com"
] | vgrivtsov@gmail.com |
dd58b30a002ad28ef364d7b282cc7d5afacbd9da | 2a115b2a0a4d3c87ae6d262ba97a673a6c9a748b | /web-py/myWeb/get_img.py | 741b804d6dfce4281c843bbc639d1882cda926de | [] | no_license | GoldenZhu/classroom | 935407db720ecdda2c0ad05973a36784a205d0ab | 26672b20477d3ae1d5aac9713302f1d3a6d1d834 | refs/heads/master | 2021-01-21T10:19:40.625219 | 2017-11-17T09:00:39 | 2017-11-17T09:00:45 | 83,407,700 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import urllib
import time
import web
def get_poster(id, url):
pic = urllib.urlopen(url).read()
file_name = 'poster/%s.jpg' % id
f = file(file_name, "wb")
f.write(pic)
f.close()
db = web.database(dbn='sqlite', db='MovieSite.db')
movies = db.select('movie')
count = 0
for movie in movies:
get_pos... | [
"2451255133@qq.com"
] | 2451255133@qq.com |
1b006e7f6b992e3c1dccc846fe3689745833841a | 9c88bd2c194ccc19b4989bf844564c5857e2ea82 | /Simple_Calculations/rectangle_area.py | 379677136a28e027dd00a9629978df03cbd0f470 | [] | no_license | ectky/PythonProjects | faa1d600f6b1e3aaee19b96a1cbf384ac0dc47a2 | 5920ee1752df729c178fe088b58ba17d8585b333 | refs/heads/master | 2021-08-11T09:31:38.562054 | 2017-11-13T13:59:04 | 2017-11-13T13:59:04 | 110,552,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import math
x1 = float(input())
y1 = float(input())
x2 = float(input())
y2 = float(input())
upper_side = math.fabs(x1 - x2)
right_side = math.fabs(y2 - y1)
area = upper_side * right_side
perimeter = upper_side * 2 + right_side * 2
print(area)
print(perimeter)
| [
"noreply@github.com"
] | ectky.noreply@github.com |
0aac049c8263f7e956cea14027ed8e142b6344e5 | 0931696940fc79c4562c63db72c6cabfcb20884d | /Exercises/Regular_Expresions/furniture.py | 8a02f7b386384bfbe0d6b9fe2cf832c3b0cd53d3 | [] | no_license | ivklisurova/SoftUni_Fundamentals_module | f847b9de9955c8c5bcc057bb38d57162addd6ad8 | 69242f94977c72005f04da78243a5113e79d6c33 | refs/heads/master | 2021-12-01T01:56:22.067928 | 2021-11-08T17:07:31 | 2021-11-08T17:07:31 | 253,281,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import re
furniture = []
total_money = 0
while True:
order = input()
if order == 'Purchase':
break
pattern = r'>{2}([a-zA-z]+)<{2}(\d+[.]\d+|\d+)!(\d+)'
matches = re.findall(pattern, order)
for i in matches:
if len(i) == 0:
break
furniture.append(i[0])
... | [
"55747390+ivklisurova@users.noreply.github.com"
] | 55747390+ivklisurova@users.noreply.github.com |
69d495704dd2fc3552f5d20c65f2c842be179e23 | 164ebfa24817cd7d4c5dbf760c1600232aebee1c | /src/filer/observers/observer.py | 086f2765aafd9ab0ef6d4cd8cfb8657ebcc293d2 | [] | no_license | adarshtri/filer | bd3806e4d8b3859b5cc68a30ed4ee2e46178342d | 985fcb9a9792ba18603771489bb6dbdae19d638d | refs/heads/master | 2020-05-19T05:49:34.631133 | 2019-05-04T06:08:05 | 2019-05-04T06:08:05 | 184,858,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from interface import Interface
class Observer(Interface):
"""Interface to support observers for newly registered directories"""
def update(self, updateinfo: dict):
"""
:param updateinfo: dictionary containing information regarding the updation.
:return: None
"""
pas... | [
"adarsh.trivedi100@gmail.com"
] | adarsh.trivedi100@gmail.com |
03d97741b6759ae1f367e5a530b53d4f599f17f5 | ec841eb43a9bdf840e227bed932900405a89fe95 | /maze.py | 0f037d255b655f43d76b449720d3ac77c2d3f91d | [] | no_license | 130e/SnakeGame | e358c85a0f80eb1740d75e93857eba8828b91aa1 | 28166ea346b7aae9728fa3f12355a1bf35733ab6 | refs/heads/master | 2022-11-17T13:02:14.806785 | 2020-07-16T18:19:19 | 2020-07-16T18:19:19 | 139,757,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | # fernival made
# set certain macros
KEY_EXIT = 27 # define macros
KEY_SPACE = 32
KEY_UP = 119 # WASD
KEY_DOWN = 115
KEY_LEFT = 97
KEY_RIGHT = 100
KEY_LOST = KEY_DOWN
NO_ENTRY = float('-inf')
ABSORB = 1.0
MIN_TOLERANCE = 0.0000000001 # 10^-11
class node():
def __init__(self, y, x, value=0.0):
... | [
"noreply@github.com"
] | 130e.noreply@github.com |
bdc06186b30b43623dc40611426d6798cf09e14e | 08c3f4b38204609d9f398f4b0a7a1aa6457993f0 | /archive/Decathlon-meta-deeplearning/meta.py | a88a9223b3f618d89077beeb4ad102798afaf8d7 | [
"MIT"
] | permissive | tueimage/meta-segmentation-msc-2018 | 0cb9b25c75352ab023dc307f956fc0577fee119b | d497e6ea99b89fdb54e11568452894f022269043 | refs/heads/master | 2020-04-07T13:16:01.725093 | 2019-12-13T18:02:00 | 2019-12-13T18:02:00 | 158,400,064 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | # from meta_network import meta_learner
from data import Data, MetaData
from utils import subset_index_to_address
from utils import meta_pred_generator, historyPlot, create_data_subsets, dice_coef_loss, auc, mean_iou, dice_coef
from keras.optimizers import Adam
from meta_network import meta_learner
from networks import... | [
"45205052+tjvsonsbeek@users.noreply.github.com"
] | 45205052+tjvsonsbeek@users.noreply.github.com |
ff7fa112a3352d67dbc4074aac0cf24ea3e98617 | 7d35fcbcceb1ff4d458cef69a6eda3c5a3a5734b | /app/core/migrations/0001_initial.py | 6a57eddf491c01619605b9ae2fe151f53636b5b4 | [
"MIT"
] | permissive | hemant-mehra/UDEMY_REST_API_advance_course | 4b1ea47037633090b06c037a8abc63eea73af8a7 | c8c0298e3650e64d2fb35370fb5b8a1bae741937 | refs/heads/main | 2023-04-23T09:03:17.131445 | 2021-04-29T12:28:23 | 2021-04-29T12:28:23 | 361,781,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | # Generated by Django 3.2 on 2021-04-27 15:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"hemantmehra.p@gmail.com"
] | hemantmehra.p@gmail.com |
595ee2d2c462822d03e02122bed94ccf834309c7 | 5ed917ada5766c0a028914f2c15549b6a9095b53 | /pyt/bin/jupyter-labextension | 03c9c79c4c5f4cbadfdd6106350523ec20a32373 | [] | no_license | shreyanshu007/backup | eb53c3cc44b17e1bcaa42ff2f46ea9364f1bcdfc | 5a0a4c9715375ae224db8c0f427f847022a9af02 | refs/heads/master | 2023-01-12T13:33:04.174671 | 2020-06-12T06:00:53 | 2020-06-12T06:00:53 | 201,099,769 | 0 | 0 | null | 2023-01-04T06:33:29 | 2019-08-07T17:46:24 | Python | UTF-8 | Python | false | false | 250 | #!/home/shreyanshu/sem_fir/pyt/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyterlab.labextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"2016csb1060@iitrpr.ac.in"
] | 2016csb1060@iitrpr.ac.in | |
61f623bb2311199c6f90a06eafc6177b8604e7b1 | a38856315e9a35f5eb0905a10eae6840741c468a | /stix_edh/cyber_profile.py | a1b921a93c6da80b797c6892d9627ef92aadfe44 | [
"BSD-3-Clause"
] | permissive | emmanvg/stix-edh | bbf4cebb908ad8a7c7dd8728ebfc67284f17365d | b426f9785339ab741bb9fb21d356b36193791afc | refs/heads/master | 2020-04-11T23:35:44.934139 | 2018-08-01T16:16:15 | 2018-08-01T16:16:15 | 162,172,740 | 0 | 0 | NOASSERTION | 2018-12-17T18:22:40 | 2018-12-17T18:22:39 | null | UTF-8 | Python | false | false | 4,224 | py | # Copyright (c) 2017, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
# python-stix
import stix
from mixbox import fields
# internal bindings
from stix_edh.bindings import cyber_profile
class AccessPrivilege(stix.Entity):
_binding = cyber_profile
_binding_class = _binding.... | [
"gback@mitre.org"
] | gback@mitre.org |
7a5ddbcad3a15a9946b3546a3153387a9b875871 | 202e657b5c9bfcf3040146f779eafaf453d43d10 | /number-of-people.py | cd46b5b272560c65fca28b84aae50f97b45be1bd | [] | no_license | derekmcauley7/star-wars-api-college-assignment | 4695ff5c7393cefeb0d837a11c065431f3266998 | 1d080dbe7dc759de1f313fe727518e7e4feb8e6c | refs/heads/master | 2020-05-09T17:05:50.835601 | 2019-04-14T11:08:44 | 2019-04-14T11:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from urllib.request import Request, urlopen
from json import loads
import ssl
# How many people are returned by the API? Show how you can solve this without using the results count attribute?s
certsPath='/usr/local/lib/python3.7/site-packages/pip/_vendor/certifi/cacert.pem'
context=ssl.SSLContext()
context.load_verif... | [
"derekmcauley7@gmail.com"
] | derekmcauley7@gmail.com |
62ce19f3d0f04ce110c1dd241445d520cdfc6c0c | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/containerservice/v20210901/private_endpoint_connection.py | 2c0b95aa60f3e4a88ea7d42d3e4f40430d813fb8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,975 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
e4902d2ddf6c8dfca1b465dcd01596243d1635fb | 063a45f56dab2a1ae77aaa3a96539fe25512e15c | /gazebo_turtlebot3_dqlearn.py | 1af1209067bfd6c2a3096ab19a6e0700c931d28e | [] | no_license | changpowei/ROS_Gazebo_SB | 44fe7c4312faad6b095a956e5074c26dfed25328 | 229759fd13f98d36e3802f4e4ac3ced19d4dab14 | refs/heads/master | 2023-08-23T21:34:22.277892 | 2021-10-21T05:38:49 | 2021-10-21T05:38:49 | 419,157,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,481 | py | import rospy
import roslaunch
import time
import numpy as np
import math
import random
from gazebo_msgs.srv import SpawnModel, DeleteModel, SetModelState
from gazebo_msgs.msg import ModelState
from geometry_msgs.msg import Twist
from geometry_msgs.msg import Pose
from geometry_msgs.msg import Point
from nav_msgs.ms... | [
"c95cpw@ncsist.org.tw"
] | c95cpw@ncsist.org.tw |
a5dc301a477f897e6ebee27e6add64e1ac8c514c | 173ccb51fbf21555a4bc3e7f3f1e28c02a6c3499 | /apps/goods/views.py | dcb59e4890bee3e984309bedf473ed8fce8b1e1e | [] | no_license | lingyunds/myproject | ec9bcb9a5917bd73377ecedc112f48cac62fb246 | d8bf8c784f434680b9584d84387f4a428b69ae1c | refs/heads/master | 2023-04-22T17:45:07.249340 | 2021-05-04T09:13:34 | 2021-05-04T09:13:34 | 363,365,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,484 | py | from django.shortcuts import render,redirect
from django.urls import reverse
from django.views import View
from django_redis import get_redis_connection
from django.core.cache import cache
from django.core.paginator import Paginator
from apps.goods.models import GoodsSKU,IndexGoodsBanner,IndexPromotionBanner,Good... | [
"200826704@qq.com"
] | 200826704@qq.com |
91e700c2b68497c13aa063de195ee61e65a3dc8e | 2552b11e55ebeab1ceb16f43ac2117e67292616d | /corpus_health/spiders/spider_medlive.py | e8e18783254833aaa1ce4082915b8919205eb8f3 | [] | no_license | bzqweiyi/corpus | 7271fc93ad0c91dcff90de9c123cd9aa90222ff3 | 69793804161361bf79944043aa786e96d3c14c9d | refs/heads/master | 2020-04-02T02:12:32.808658 | 2018-10-20T11:12:50 | 2018-10-20T11:12:50 | 153,897,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,815 | py | #!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
"""
中国好中医网:祛湿
James
"""
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
from corpus_health.items import ArticlespiderItem
from scrapy_redis.spiders import RedisCrawlSpider
from scrapy_redis.spiders import Spider
from scrapy.http import Re... | [
"bzqweiyi@163.com"
] | bzqweiyi@163.com |
84f9eee0a4ffea06d2accb83ecb72ac8b44d7b69 | a1bd103181681e1ea0af8859585e3ce599801335 | /musictagger/handlers/numbering.py | 130631e398f3a784589e8b35021b0575309f7358 | [] | no_license | Tbsc/musictagger | 3ce82bf1cf6bd9b265d787014ce23cfb9fdd8103 | c01a3ebdb573f6a3ec5957bb876170192ecb73b8 | refs/heads/master | 2021-12-22T19:18:46.876057 | 2021-12-18T12:05:54 | 2021-12-18T12:05:54 | 99,435,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import re
# ensure numbering always consists of at least 2 digits, adding zeros if needed
def check(filename):
# if numbering is correct, return function with current filename
if check_correct(filename):
return filename
new_filename = filename
# begin checks
new_filename = check_single_d... | [
"danielben60@gmail.com"
] | danielben60@gmail.com |
23159149d8d9130887e04ea1d4f0fd74e9ad9bd7 | 4e8ae597e7f5010c4dd7208226c3cda99b11e561 | /blog/models.py | eee192ab822d24d4e5c69c3761f3737ecc6181a8 | [] | no_license | peckzl/django_bloggy | a50999c0f527854a5af5e655155c56c1e8e051b0 | cf3e9d3b052f0504256c87c7fab8d1a199fe586a | refs/heads/master | 2021-01-10T05:28:32.091423 | 2015-11-05T00:13:44 | 2015-11-05T00:13:44 | 45,576,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from django.db import models
from uuslug import uuslug
class Post(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
title = models.CharField(max_length=100)
content = models.TextField()
tag = models.CharField(max_length=20, blank=True, null=True)
image = models.ImageField(upload_to="images", bla... | [
"peckzl@clarkson.edu"
] | peckzl@clarkson.edu |
f3c4d9fd7986ae013086ca33b92b7e7b2de6fac1 | 831b2c2d88d03ce366c091ebc851281a20b3c567 | /clean_unsupervised/predictorUnsupervised.py | 18398a5162c9cd84ea48ea8cc360a732834bfba4 | [] | no_license | nathanieljblack/PriceRight | cb2d0ca0929f6b5791397bd1f72267da20ac0144 | c4fb112ae27f3adbd75bb88603d23db35de29ff3 | refs/heads/master | 2020-04-19T11:24:56.683210 | 2015-05-01T14:05:33 | 2015-05-01T14:05:33 | 67,873,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,011 | py | import pandas as pd
import re
from unicodedata import category as cat
from nltk.corpus import stopwords
from gensim import corpora, models
import operator
from collections import OrderedDict
import scipy
from scipy.cluster.vq import kmeans, vq
class Predictor(): # Note: This predictor trains the model and runs the mo... | [
"marguerite@oneto.us"
] | marguerite@oneto.us |
49db5b641d88aa13b1b34b6fcceea02798bae5a6 | cf64c598ee8ace5eb72a3992ca214b8f05383177 | /Tools/lib/cherrysoda.py | 09e40be6062bab2616daef95af54740f9d9178ca | [
"MIT"
] | permissive | brucelevis/cherrysoda-engine | 6c6efb9545a27ca8a612b56e6ffb61a8347a3923 | 64b2ff5a2a53831ded3e60ff2a28a101fa84f3fd | refs/heads/master | 2023-02-01T15:57:38.809819 | 2020-12-17T02:35:01 | 2020-12-17T02:35:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import glob
import os
import pathlib
import platform
import shutil
import subprocess
import sys
import zipfile
if sys.version_info.major == 3:
import urllib.request as urllib2
else:
import urllib2
def is_windows_system():
return platform.system() == 'Windo... | [
"c.even@live.cn"
] | c.even@live.cn |
396d3be1f2a5e259471ee0be5f9b6850177f96e3 | b648a0ff402d23a6432643879b0b81ebe0bc9685 | /benchmark/tslintbasic/thrift/run.py | 6b63c1b1ffc1c7036f1224f0530a63f3d6a08ca5 | [
"Apache-2.0"
] | permissive | jviotti/binary-json-size-benchmark | 4712faca2724d47d23efef241983ce875dc71cee | 165b577884ef366348bf48042fddf54aacfe647a | refs/heads/main | 2023-04-18T01:40:26.141995 | 2022-12-19T13:25:35 | 2022-12-19T13:25:35 | 337,583,132 | 21 | 1 | Apache-2.0 | 2022-12-17T21:53:56 | 2021-02-10T01:18:05 | C++ | UTF-8 | Python | false | false | 581 | py | def encode(json, schema):
payload = schema.Main()
payload.rules = schema.Rules()
payload.rules.orderedImports = schema.OrderedImports()
payload.rules.orderedImports.options = schema.Options()
payload.rules.orderedImports.options.groupedImports = \
json['rules']['ordered-imports']['options'][... | [
"jv@jviotti.com"
] | jv@jviotti.com |
6343515d83aa5cbb5afcc7c49c954ed62aa5cfbb | ef147caaf28199b7961ec40320df4ff080ff3146 | /tsdownloaderv1.3.py | 364353d72db960c53b5a5896b25f697354c677d3 | [] | no_license | DicksonC96/TS-video-downloader | 6891868ee42476d99413dd8cb4a563ab922512de | 6917f7a32b5c9e0cbef8d587e24e075f940b20ed | refs/heads/main | 2023-05-12T14:02:00.242037 | 2021-06-02T07:24:09 | 2021-06-02T07:24:09 | 362,239,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | import requests
import sys
def main(url, fname, mini=0, maxi=5000):
with open(fname+".ts", 'wb') as f:
if not mini==0:
for i in range(mini):
r = requests.get(url+str(i)+".ts", stream=True)
sys.stdout.write("Downloading "+str(i)+".ts ...\n")
sys.st... | [
"66625723+Dickson96@users.noreply.github.com"
] | 66625723+Dickson96@users.noreply.github.com |
f767561f0b3d9e8b78a4864603261931f59d4217 | 012c9396f6fd0c88769165b484f77c346b96cb56 | /software/artyS7/cmdClass.py | be3bc532207ec15d1bda90d8a099b5f7857efe07 | [] | no_license | atfienberg/artyS7 | d770209dfddc9860a57626cc8b318b4e7aba3c7c | cd29d49f6d3811e425098715f969853cfdb4872c | refs/heads/master | 2021-05-25T21:16:48.620081 | 2020-11-16T16:43:50 | 2020-11-16T16:43:50 | 253,920,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,533 | py | ################################################################
# Tyler Anderson Thu 07/25/2019_ 9:24:16.32
#
# A python script for parsing commands.
################################################################
import logging
import string
import binascii
import sys
import struct
import crcmod
class cmdClass:
... | [
"atfienberg@psu.edu"
] | atfienberg@psu.edu |
9ca07e7be454f472e705453ea355ee2b9fe48e9d | f8cc2cbde9aafca45f1ecd7fe2e0296d536cf94f | /src/ls-files.py | 933b6d6ea1a18eaf2f8f7293bfc7369a7ca957bc | [] | no_license | minekoa/mgit | aa6dbc9c971e77ce0f5005e99c4ebd00a5f8feee | de137829be2cd0098309a8dfdab8097f190f9b80 | refs/heads/master | 2021-01-23T15:41:57.708857 | 2015-05-13T14:30:31 | 2015-05-13T14:30:31 | 35,554,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | #!/usr/bin/env python
#-*- coding: shift_jis -*-
from mgitlib import *
import sys
import os
import os.path
import struct
if __name__ == '__main__':
db = GitDB()
index = GitIndex()
with db.openIndexFile('rb') as rf:
index.unpack(rf)
for key, item in index.rows.items():
... | [
"mineko.orange@gmail.com"
] | mineko.orange@gmail.com |
5de03e92e379b9d36dae4594c56cd3ed06ad61cc | 8a60ed6b07bb361cea238462689f51ff2f220e0a | /Final Project/tags.py | e14052985b3bb540146a1554a48b96f0db7fb37f | [] | no_license | joshsee/P2-Data-Wrangling-with-MongoDB | 3b4b9820e7e6d1ac58006570cf2ee3330766d759 | 658d084bfd7459349018cd1bdea11ef4b3acdd24 | refs/heads/master | 2016-09-06T00:21:19.961782 | 2015-03-25T15:34:14 | 2015-03-25T15:34:14 | 29,285,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.ElementTree as ET
import pprint
import re
"""
Your task is to explore the data a bit more.
Before you process the data and add it into MongoDB, you should
check the "k" value for each "<tag>" and see if they can be valid keys in MongoDB,
as well as see if t... | [
"ychian@gmail.com"
] | ychian@gmail.com |
d37a57bf782e04065867f737dfe764d33b9abd38 | da54e1256c8e66c78c069331af02a55a00f36faa | /new_python/day2/ch6_1.py | 3abcbed2eba1d17b92141354232f795b56841de6 | [] | no_license | tghyyhjuujki/Study2 | 5f7642d5c65176c46cf66b6341a9cdb8cd196400 | fffa315ebbe6088cdba219515c8d5ce1b5a4b8a6 | refs/heads/master | 2023-02-10T15:51:36.757719 | 2021-01-01T19:34:54 | 2021-01-01T19:34:54 | 276,801,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import math
#a
math.floor(-2.8)
#b
abs(round(-4.3))
#c
math.ceil(math.sin(34.5)) | [
"tghyyhju@gmail.com"
] | tghyyhju@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.