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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3b348d7c621626f1a7d630d16e42082f7bea5a1 | eb568bdbe6052e7fbcb84aa6abd22918d7561a1c | /MenuButton.py | 2b734ceee9bd936f56e5a4c8eabd8b9fd29ed9a4 | [] | no_license | willholt1/ToyPlanet | 9803a3b2b4feabf30249812d4e3a7f84a11b49ee | 36f197e5bc9bec4a6bf766c5102495e3f50d1c7f | refs/heads/main | 2023-04-14T20:09:42.676995 | 2021-05-02T20:16:41 | 2021-05-02T20:16:41 | 355,202,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | ##################################################
#simple class for button sprites used in the menu#
##################################################
#libraries
import pygame
class MenuButton(pygame.sprite.Sprite):
def __init__(self, image, x, y):
pygame.sprite.Sprite.__init__(self)
self.original... | [
"will.holt.xyz@gmail.com"
] | will.holt.xyz@gmail.com |
3742ff611dc02b777b4f83d39a8aade1e7dc7cfc | a2cd609a52eb5be16a248c054fb014394f12d344 | /build/globalplanner/catkin_generated/pkg.installspace.context.pc.py | a04cf5b45702ff3cf2cd28d70712504d7506b0de | [] | no_license | rfzeg/simon_thesis_ws | c5e6d6b20ee63010ffede91d17ba144527e5f6c5 | dc79635f628dade14cab1a631cc4eb24aee1762c | refs/heads/master | 2021-09-16T12:43:41.270235 | 2018-06-20T12:40:57 | 2018-06-20T12:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/simoneforno/simon_ws/install/include".split(';') if "/home/simoneforno/simon_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;pluginlib;costmap_2d;base_local_planner;nav_core".r... | [
"s.forno@student.tue.nl"
] | s.forno@student.tue.nl |
d9b5abcacb080e839be9f2b9bf7f674eb5a4faf9 | f3b1b06470f4ca0db3f42250d340b7d4924c5d9d | /Array/contains_duplicateII.py | 6ae764b70e73e61b9d543d45f723932d0602bba2 | [] | no_license | tusharkailash/LeetCode-Problems-Python | 008d152e064cf5a8baa8062b6e490d0d20ca62bc | f86951a21c296eeeb4e55ec8287c7c4415f94570 | refs/heads/master | 2020-08-22T19:54:30.789960 | 2019-11-10T21:20:21 | 2019-11-10T21:20:21 | 216,468,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | ###Contains DuplicateII###
"""
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array
such that nums[i] = nums[j] and the absolute difference between i and j is at most k.
"""
class Solution(object):
def containsNearbyDuplica... | [
"tusharkailash29@gmail.com"
] | tusharkailash29@gmail.com |
354335a4af4d357ab0f090ed34153d0b327c5635 | d70e7b52cc748d5d98ead25c28fd59ecfcefc6b3 | /polyglot/node_servers/hue/hue.py | 00145d9775e1357f9b9a2a71c4ccfa568fef3a97 | [
"MIT"
] | permissive | PlanetJ/Polyglot | ec3765efb315f5860756557ce91a2a68fa12b7f2 | 66e319e1c1617edf335f393c9bff2bb5a8f295d4 | refs/heads/master | 2021-01-23T10:56:45.126872 | 2016-03-16T04:40:05 | 2016-03-16T04:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | #!/usr/bin/python
""" Phillips Hue Node Server for ISY """
from converters import id_2_addr
try:
from httplib import BadStatusLine # Python 2.x
except ImportError:
from http.client import BadStatusLine # Python 3.x
from polyglot.nodeserver_api import SimpleNodeServer, PolyglotConnector
from node_types import... | [
"support@universal-devices.com"
] | support@universal-devices.com |
b37adaa183985a6427d59edcc2ac306a2e973bca | aefe82c9c535fc384958f34a94977ab55a56d392 | /exercise/12/ip_table.py | 50aa47e527420cfe135883f05c3650421d4b34f9 | [] | no_license | mityagz/pyneng | 28e2b7814062215edc91117679210cacffc70656 | 5067f0a3e45e2b8f9f3d9087332fe49840f9985a | refs/heads/master | 2020-03-21T00:30:48.218881 | 2018-12-01T13:19:03 | 2018-12-01T13:19:03 | 137,896,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | #!/home/python/n/pyneng/bin/python
# -*- coding: utf-8 -*-
'''
Задание 12.3
Создать функцию ip_table, которая отображает таблицу доступных и недоступных IP-адресов.
Функция ожидает как аргументы два списка:
* список доступных IP-адресов
* список недоступных IP-адресов
Результат работы функции - вывод на стандартный по... | [
"mityagz@gmail.com"
] | mityagz@gmail.com |
058b61906b6cae83cc48a1feb07d5e6ddbdf8b2c | 3d1fc80dbb85f789546057c57c6ed29096228847 | /scripts/hdmi_brightness | ff4f70677a8cf48933db03759e4fbd868dcb1ba4 | [] | no_license | ftravers/pscripts | fb0ad379a06a5434b4bd3bdc823cfb257e126b92 | ea9859b58e319d315dc316173fc583dabefc7ab3 | refs/heads/master | 2021-07-09T07:35:04.409462 | 2015-10-25T17:27:02 | 2015-10-25T17:27:02 | 105,721,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | #!/usr/bin/env python
import argparse, sys
import pscripts.hdmi_control as hdmi
from pdb import set_trace
parser = argparse.ArgumentParser(
description='Control brightness on HDMI')
parser.add_argument('--increase','-i', action='store_true', help='Increase brightness')
parser.add_argument('--decrease','-d', acti... | [
"fenton.travers@oracle.com"
] | fenton.travers@oracle.com | |
9e2cccb2792e78e7dba3a3e963b4ae202e698169 | ca42942904fa16cf2b66be9390956b2d5fbbbf36 | /SWM/IC_BC.py | e8dcbe0ce487cffbd189a32e0e0283c41f7c93d2 | [] | no_license | kelseymalloy/CFD | 5228a84e90f75e527c688b138ee47ce8cdfb5408 | 1ec57235bba94d22cba88e59888bc4fd25a03802 | refs/heads/master | 2023-01-22T12:37:45.532512 | 2020-11-17T20:01:39 | 2020-11-17T20:01:39 | 289,296,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | import numpy as np
def gauss(X,Y,nx,ny,amp,radius):
# returns gaussian bubble
return amp*(np.exp(-((X-nx/2)**2/(2*(radius)**2) + (Y-ny/2)**2/(2*(radius)**2))))
def wave(X,Y,alpha,m,n,a,b):
return alpha*(np.cos(m*np.pi*X/a))*(np.cos(n*np.pi*Y/b))
def wave_channel(X,Y,alpha,l):
return alpha*(np.exp(-(X*... | [
"kelseymalloy4@gmail.com"
] | kelseymalloy4@gmail.com |
2d7f558b324dfd6d7556166e0210be7ec85673f6 | e94e911c6db1f876afdb21f7410514a7ca453dd6 | /Library Management Simulation/migrations/versions/0a8dc5d62b6a_.py | 3f21a910ba50fe6524ccfab8bb45b8c492090571 | [] | no_license | Radha34/Web-Development-Assignment- | 914860e3f98b3106a5f7da2d39b5d0745ea71835 | 8b446374383ea9106f5d030e86a1d2f9cba1ccb7 | refs/heads/main | 2023-05-05T21:03:06.180370 | 2021-05-19T22:40:04 | 2021-05-19T22:40:04 | 349,371,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | """empty message
Revision ID: 0a8dc5d62b6a
Revises: 4510c826385d
Create Date: 2021-05-17 09:58:54.666083
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0a8dc5d62b6a'
down_revision = '4510c826385d'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"noreply@github.com"
] | noreply@github.com |
1b596ba2f3040bc44907728413eccf542b109417 | 2525646c323496d71ff6c2110a5d72c1b4720187 | /src/nbClassify.py | cb0d9043a35a1ed4cdd837bddb91a2aaf2d9b0dc | [] | no_license | yumiobuchi/shape-of-stories | a6afc232c2ddc482d4a862089af5e393ece24ccd | c9f04db50713b7d7a4a81bcd4bfe512821db90eb | refs/heads/master | 2022-11-19T22:56:42.469010 | 2020-07-11T23:34:24 | 2020-07-11T23:34:24 | 276,186,613 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,136 | py | import re
import nltk
import pickle
import string
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
from nltk.sentiment.vader import SentimentIntensityAnalyzer
from nltk.classify import NaiveBayesClassifier
from collections import Counter
import matplotlib.pyplot as plt
import matplotlib.ticker ... | [
"yumiobuchi97@gmail.com"
] | yumiobuchi97@gmail.com |
3871c040feaf2dba614d49189b4216d7792c429d | c4e1dc923b73fe9f8ab30a391d1608d796d25737 | /test_classful/test_base_args.py | f7f7889aa87525862f5360dc707f8ca27449d379 | [
"BSD-3-Clause"
] | permissive | hjc/flask-classful | 2d9be97d19ec3fabb54310f3d184e6809ea50aee | ee88fb3bca4f782b485f851e156f7edfd0df26e1 | refs/heads/develop | 2021-06-24T16:16:53.350586 | 2017-09-11T01:54:46 | 2017-09-11T01:54:46 | 103,169,831 | 0 | 0 | null | 2017-09-11T17:58:58 | 2017-09-11T17:58:58 | null | UTF-8 | Python | false | false | 2,803 | py | import json
from flask import Flask
from flask_classful import FlaskView
from webargs.flaskparser import use_args
from webargs import fields
from nose.tools import eq_
# we'll make a list to hold some quotes for our app
quotes = [
"A noble spirit embiggens the smallest man! ~ Jebediah Springfield",
"If there ... | [
"hoatle@teracy.com"
] | hoatle@teracy.com |
704aee2dc27d64ac278a3cc960debdfaab0a7f88 | 3b72891ba5e6c6341f4825e964041f55f14bd6be | /lessons/export/a.py | 6e7d9d73050066bba5d0ef687ad8d90ad2ad7816 | [] | no_license | evjeny/qt_learning | a335a92688e06361289e32aa3ee1d5bf57973b1f | ae6666c6ba9402fd5b71fbfecd870c6ae62b2ba3 | refs/heads/main | 2023-06-20T13:48:05.307118 | 2021-07-16T11:45:14 | 2021-07-16T11:45:14 | 384,947,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import sys
import random
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QStackedWidget
from named_widget import NamedWidget
class Example(QWidget):
def __init__(self):
super().__init__()
self.stack = QStackedWidget(self)
self.names = []
self.widgets = dict()
... | [
"gkanafing@gmail.com"
] | gkanafing@gmail.com |
03a615323699874d0b2c3456177c7e1a60e68236 | 7b66fdf306a18efe9b2f9827f5a09b80ed99da3d | /crawl_celery/crawl/exceptions.py | dbe08ccaeaf75011a805aac59dca66bd40400bfe | [] | no_license | junzisheng/cbg | cc8936180276f45b46a430400de5a9cfd833adcf | ef7380f453b701d86c0335bd6b72644dca0c458b | refs/heads/master | 2020-03-23T12:18:19.250961 | 2018-07-26T16:21:46 | 2018-07-26T16:21:46 | 141,550,542 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | class NotTarget(Exception): # 返回数据但不是目标服务器
pass
class IPBanned(Exception):
pass
class DataMiss(Exception):
pass
class StatusNot200(Exception):
pass
class SystemBusy(Exception):
pass
class Empty(Exception):
pass
class ParamsError(Exception):
pass
class OterStatus(Exception):
... | [
"1298477514@qq.com"
] | 1298477514@qq.com |
7df6e282195210189ad1b0668fe6ec04141118cc | 9fac208c0f0ee88a0aacaf26ed2fdd3f8d6a09f5 | /graphing/graphmake-csvreader.py | 1f2c5fc96ad9155aef4f688cd9577d6dbe2258d5 | [] | no_license | angelaliu2015/mycode | 84c292ba98667049b79873adc2db16664c219bee | d86cbb0d80bd2f514acb84384dd5aa3b6656b1f7 | refs/heads/master | 2020-08-13T23:49:43.154973 | 2019-10-18T17:19:59 | 2019-10-18T17:19:59 | 215,058,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | #!/usr/bin/env python3
import csv
import numpy as np
import matplotlib.pyplot as plt
def parsecsvdata():
"""returns a list. [0] is LAN and [1] WAN data"""
summary = [] # list that will contain [(LAN), (WAN)]
# open csv data
with open("/home/student/mycode/graphing/2018summary.csv",\
"r") as downt... | [
"angelayh.liu@gmail.com"
] | angelayh.liu@gmail.com |
99cc72f8fadc078fb5a29992d3f79ea463e24715 | a7fb49ec630e825ae86fe40a2eb3611e64a2a27c | /src/exchange/currency_converter_v5.0.py | b73e7391274a00a39fe50a93d1de79302d3c20c2 | [] | no_license | pengpengzxm1234/python | e77321497eeab2bacfa8bdb472e08f3f497d1d96 | 4e38a30aaa400cca21b00d53d2fa627a38ab072f | refs/heads/master | 2021-08-14T09:52:18.127327 | 2017-11-15T08:59:26 | 2017-11-15T08:59:26 | 109,957,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | """
功能:汇率兑换
版本:4。0
2。0 新增功能:根据输入判断是人民币还是美元,进行相应的转换计算
3。0 新增功能:程序可以一直运行,直到用户退出
4。0 新增功能:将汇率兑换功能封装到函数中
5。0 新增功能:(1)使程序结构化 (2)简单函数定义 lambda
"""
# def convert_currency(im, er):
# """
# 汇率兑换函数
# """
# out = im * er
# return out
def main():
"""
主函数
"""
# ... | [
"pengpeng@100tal.com"
] | pengpeng@100tal.com |
575dcad18b12804754dbe2c263b5eda9c4da5b29 | 2a4290c36832e7080faa4104d58083c29ed1ea09 | /experiments/model_cat_wgan_old.py | ecc8c9353358f06089f1942e0c62a1566ac4eba8 | [] | no_license | jerryli27/my_dtn | 0380e22fb7892f5d46084339a5edb24c8ed5b8c8 | 54b16f403a480c35d5ae331dbbfd0efed53880b9 | refs/heads/master | 2021-01-19T17:17:19.787195 | 2017-03-05T21:48:06 | 2017-03-05T21:48:06 | 82,433,878 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,037 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
class DTN(object):
"""Domain Transfer Network
"""
def __init__(self, mode='train', learning_rate=0.0003, num_classes = 10, hw = 32, alpha=15, beta=15):
self.mode = mode
self.learning_rate = learning_rate
self.num_classe... | [
"jerrylijiaming@gmail.com"
] | jerrylijiaming@gmail.com |
a4b7b587d368deac92984432976cbcaf3071e9d9 | f514c9238598a313c36cf998a5c069ec3ef2f8e4 | /pydsa/tests/test_min_heap.py | f3775cd1ec42804663f5a8b9823818cca625679e | [] | no_license | ishitaverma/pydsa | 9a7c0da860aa486df80b9ccec5ba0d7fc72a6c8a | d59912763f6b633fd6f3bd8ac2f87e5177663237 | refs/heads/master | 2021-01-15T09:14:18.609910 | 2016-03-06T06:17:19 | 2016-03-06T06:17:19 | 53,156,496 | 0 | 0 | null | 2016-03-04T18:20:35 | 2016-03-04T18:20:34 | Python | UTF-8 | Python | false | false | 318 | py | from pydsa.min_heap import *
def test_min_heap():
bst = MinHeap()
bst.add(30)
bst.add(20)
bst.add(40)
bst.add(70)
bst.add(60)
bst.add(80)
assert bst.top()==20
assert bst.top()==30
assert bst.top()==40
assert bst.top()==60
assert bst.top()==70
assert bst.top()==80 | [
"ishita.verma178@gmail.com"
] | ishita.verma178@gmail.com |
988f40c87dda776c6d782725d1bcf3c7cc9bf0da | 61c13e9efc64357256fd9fd18740ca8229135928 | /listDevices.py | eac84c9710e27bc2f9a3b9c860a7481edb88234f | [
"MIT"
] | permissive | Numerix-DSP/GoogleAssistant | b3f6c3531f113494fb51a60405e9983111d7efc4 | 2d0b279132dad1b0821b4c22795e6005f9b94982 | refs/heads/master | 2022-08-23T22:36:50.513079 | 2020-05-24T18:12:30 | 2020-05-24T18:12:30 | 266,597,715 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | #!/usr/bin/env python3
import pyaudio
HOSTAPINUMBER=0
p = pyaudio.PyAudio()
info = p.get_host_api_info_by_index(HOSTAPINUMBER)
numdevices = info.get('deviceCount')
print("hostAPIcount = ", str(p.get_host_api_count()))
print("numdevices = ", str(numdevices))
if numdevices:
for i in range(0, numdevices):
... | [
"johned0@gmail.com"
] | johned0@gmail.com |
40588bf2eb6710f2c002e9f78e67d105b7e2ae10 | 2bebb34164385c8f858e3474536fdadb2d268f97 | /blog/migrations/0001_initial.py | 0a40a4e4a1c94fd0a544d6310fb05dd0bf8ab47c | [] | no_license | melay6/my-first-blog | 46ac0fc606cf27752e39c1e221047a8eba35d889 | 5b922ce55540485c1737628f725b18aea480c3ba | refs/heads/master | 2021-01-20T13:23:40.531547 | 2017-02-21T14:18:43 | 2017-02-21T14:18:43 | 82,688,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-21 04:51
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"1016239774@qq.com"
] | 1016239774@qq.com |
a6cac7d77145dd89deb708f5be1407ffe096d320 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_suffocated.py | 8b356fe7d1d8ac09890ee20e1e5dc5a7719a80ba | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py |
from xai.brain.wordbase.verbs._suffocate import _SUFFOCATE
#calss header
class _SUFFOCATED(_SUFFOCATE, ):
def __init__(self,):
_SUFFOCATE.__init__(self)
self.name = "SUFFOCATED"
self.specie = 'verbs'
self.basic = "suffocate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
361df6254470db5dbc78923d28d0eb7260dcf6f3 | 661029d044304393ffe78b770f4742a8adec89af | /deploy.py | 9165bc6d09e68f872e8c0ca9d166299ff21da39f | [] | no_license | MolVlad/Ethereum-Blockchain-Project-MIPT | e50da20b3db8f92a8ea5674357898d69d09abeff | 5898f47b19d6056f6d34dd73c002ea354cb008cf | refs/heads/main | 2023-01-18T23:33:02.734031 | 2020-11-22T19:31:32 | 2020-11-22T19:31:32 | 309,914,836 | 1 | 1 | null | 2020-11-20T21:05:47 | 2020-11-04T06:47:08 | JavaScript | UTF-8 | Python | false | false | 647 | py | from web3 import HTTPProvider, Web3
import web3
import json
web3 = Web3(HTTPProvider('http://127.0.0.1:7545'))
if web3.isConnected():
print("Test net is connected")
web3.eth.defaultAccount = web3.eth.accounts[0]
trufflePath = 'contract'
truffleFile = json.load(open(trufflePath + '/build/contracts/Monopoly.json')... | [
"molvlad@frtk.ru"
] | molvlad@frtk.ru |
d3265e7888364eddc658f959bcbe4ca229b970eb | e92dd1dba5ca5703167dbac1a10e140ab5aaf3d1 | /venv/lib/python3.9/site-packages/botocore/__init__.py | e016f63be83837e950674e07e4e2677fa2f1d1d0 | [] | no_license | bhavyabgada/rekodjango | 36c391741530bfd28385264a72b48174ff11c59d | 00a75bec11900cf54a8932b2fa19bc407b34bc55 | refs/heads/master | 2023-06-19T16:41:44.602429 | 2021-07-23T09:45:08 | 2021-07-23T09:45:08 | 388,734,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http... | [
"bhavyabgada@gmail.com"
] | bhavyabgada@gmail.com |
58e720ee47b707bc593b93409029945a57fa4617 | 3d389d0f095513da7d238d4d80452b4de7b9d509 | /nadocoding/gui_project/auto_screenshot.py | 51d60e46a7f02136e6d9733ff4aa3dd6989ecb7c | [] | no_license | HongSun2da/Python | 989c24e56e8dbd5bd8b2f16f46754ea1ed9a5449 | adad94d8645d60053b6d12165667ae69f94c4368 | refs/heads/main | 2023-02-10T11:20:35.878859 | 2021-01-05T07:11:44 | 2021-01-05T07:11:44 | 325,512,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import time
from PIL import ImageGrab
time.sleep(5)
for i in range(1, 11):
img = ImageGrab.grab()
img.save("image{}.png".format(i))
time.sleep(2)
| [
"hongsun2da@gmail.com"
] | hongsun2da@gmail.com |
bda30a3322f66ed38e7c8fe07a600a37992ac9c3 | 1f61e06271f8e9582669686457c40336235d1eee | /Module 2/Chapter 6/ch6_feature_engineering_basics/score_trolls_randomforestregressor_example.py | 3b658b8746f4936e664cf298d48824bfd79ce905 | [
"MIT"
] | permissive | PacktPublishing/Python-Real-World-Machine-Learning | f1747fdd73937544a243059ac7476bfbfac6d113 | 669e793cf80c35b6d2028f74bff2cd87b9458791 | refs/heads/master | 2023-04-13T11:48:13.459731 | 2023-01-30T09:21:10 | 2023-01-30T09:21:10 | 70,907,139 | 108 | 111 | MIT | 2023-04-04T14:38:41 | 2016-10-14T12:13:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,678 | py | # this script provides a demonstration of how the cleaned, vectorized feature set might be incorporated into a model.
# for a performant model that takes a much bigger & optimised range of input features, consult the model provided in the "detect insults - kaggle competitor version" directory.
import numpy as np
impor... | [
"eganl@packtpub.com"
] | eganl@packtpub.com |
b0a17a9049632cdda496378aac8bda8d0fea9d3f | 42f6b8d17262e76a18015fe489a432d54ed1b27a | /setup.py | cb59f1e6c1c794ea0038c1b0bd401d1c40ffc8c7 | [
"MIT"
] | permissive | suda/dashing-mining-agent | e8f2420817eed8059ee23de6f5efbf753ccb5e65 | c99e2783a131dad3c188d748c9d1a56e220d1102 | refs/heads/master | 2023-06-01T10:09:56.793850 | 2020-05-26T08:00:51 | 2020-05-26T08:00:51 | 15,683,538 | 3 | 2 | MIT | 2023-05-22T21:34:12 | 2014-01-06T19:58:11 | Python | UTF-8 | Python | false | false | 75 | py | from distutils.core import setup
import py2exe
setup(console=['agent.py']) | [
"admin@suda.pl"
] | admin@suda.pl |
3691e477e08a65c1542c4a6e65956ea567717323 | afa26c330b19046337c396645fcf7a208ab8e8bb | /codes/data/licensePlateDataset.py | e45d1681eedb79a3f0626d8b6429551c80d622a6 | [
"Apache-2.0"
] | permissive | taily-khucnaykhongquantrong/EDVR | 83456eaaa1c2a8f14ea713707126c62171e1606c | d432fd3dca0b231ba74789067e54bbd6ef2340a1 | refs/heads/master | 2023-05-12T21:28:56.890013 | 2019-12-26T18:57:19 | 2019-12-26T18:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,334 | py | """
REDS dataset
support reading images from lmdb, image folder and memcached
"""
import os.path as osp
import random
import pickle
import logging
import numpy as np
import cv2
import lmdb
import torch
import torch.utils.data as data
import data.util as util
try:
import mc # import memcached
except ImportError:
... | [
"lythanhtaiyoung666@gmail.com"
] | lythanhtaiyoung666@gmail.com |
fb5a5721930126c3778a322493c74d40ed3939f2 | 2809f97b8c3997b9ad3423073cc628bacf45a288 | /Lab 1.2.py | ec00df2241c4bf235077385940376229479401c5 | [] | no_license | HengYiJun/DPL5211Tri2110 | a39b9ed962a1b3da41b240246f3661d6477a99d5 | 3f8ae443527341162f575e819e40fa95de01f800 | refs/heads/main | 2023-08-24T21:28:59.283452 | 2021-10-11T02:37:30 | 2021-10-11T02:37:30 | 403,464,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Lab 1.2 get input two numbers and display the sum of the two numbers
number_1 = int(input("Please enter number 1: "))
number_2 = int(input("please enter number 2: "))
total = number_1+number_2
# print("The total number is ", total)
# print("The sum of ",number_1," and ",number_2," is ",total)
# prin... | [
"noreply@github.com"
] | noreply@github.com |
1b7795733d0335b5bd8004044e8ceed8278c724e | 909308c6af5c566af7931be18d51a768cd80fccb | /esgf_fetch/fetch.py | 07acf19f397cf29ee38d1248ccd07932d5360bc2 | [
"Apache-2.0"
] | permissive | cp4cds/cmip6_range_check_2 | f3568d74f3fcaff49fa8bdeed9b7b8c78b9a0c85 | 6fca2632029a2adb9736bfc1382b39f82d8a27e1 | refs/heads/main | 2023-08-30T15:08:25.013965 | 2021-10-06T15:06:05 | 2021-10-06T15:06:05 | 327,068,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,452 | py | import urllib.request
import json, collections, os, glob, csv
from dreqPy import dreq
template_001 = "http://esgf-index1.ceda.ac.uk/esg-search/search/?offset=%(offset)s&limit=10000&type=Dataset&replica=false&latest=true&activity_id=CMIP&source_id=%(source_id)s&mip_era=CMIP6&facets=mip_era%%2Cactivity_id%%2Cmodel_cohor... | [
"Martin.Juckes@stfc.ac.uk"
] | Martin.Juckes@stfc.ac.uk |
adeb59d010bdfae9169f837cf998303af2c9df2e | 463c053bcf3f4a7337b634890720ea9467f14c87 | /rllib/models/jax/misc.py | 02ebd98fd261b684769013ef6b2f7fd3ba31bc62 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 2,287 | py | import time
from typing import Callable, Optional
from ray.rllib.utils.framework import get_activation_fn, try_import_jax
jax, flax = try_import_jax()
nn = np = None
if flax:
import flax.linen as nn
import jax.numpy as np
class SlimFC:
"""Simple JAX version of a fully connected layer."""
def __init... | [
"noreply@github.com"
] | noreply@github.com |
280b60d0e3b097e45c49ec6db0db8f323a43d3c5 | 9568dee77459304ad0f7e01c9dea9432c11377d0 | /maxlike_sim_filehandler.py | c91d4799c888691d93117cefde6a1784acc6f66d | [
"MIT"
] | permissive | lbaumo/wtgpipeline | c101c7e7ec1491a1c40cbe14102662770641bb9a | 73de01736e33769c09c4467e3c040545d7070407 | refs/heads/master | 2021-06-20T14:40:38.263891 | 2017-08-14T21:08:24 | 2017-08-14T21:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | #############################
# Handles loading files for a simulation run
#############################
import ldac, cPickle, numpy as np
import astropy.io.fits as pyfits
import pdzfile_utils, nfwutils, varcontainer
#############################
__cvs_id__ = "$Id$"
#############################
class SimFilehandl... | [
"dapple@xoc7.stanford.edu"
] | dapple@xoc7.stanford.edu |
ab151524e7823fa8d8cea54e810081d78b60deec | 3d543d32624738e2d4d2b33e2c6379812779a2b3 | /not_used/old_viban_functions.py | 326b81f0a35bc291bfa4d48d3e64e19d1db8b84e | [] | no_license | eebrandt/male_vib | dfaf9bdf8760870af7d4f755821c15f12e3fb994 | b2a58f3e719ffc6ebbbb4800d8c0341715d4b80e | refs/heads/master | 2021-01-19T08:11:30.451899 | 2018-02-20T21:23:23 | 2018-02-20T21:23:23 | 19,896,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | def ratecalcs (durationinfo, srfile):
"""
This function takes in information about the duration of a given feature (usually scrape-rate regions), and the path of a file that lists each scrape-rate region and the number of scrapes found in that region. It plots the rates/length of the song (normalized to 1), and retu... | [
"brandt.erine@gmail.com"
] | brandt.erine@gmail.com |
b4478669f088f5f58f21409e1f3fc37cb0e517fc | a1f24731bd9888e462c8159d6c33353908778b32 | /unr_sandroad_1.py | 9ead6904db9f151902ab8afee2a940b1523f70b0 | [
"MIT"
] | permissive | lancelee82/rockrose | b22f9032262a34853da7eff928bbaa888842eca2 | 15b600e91e93291c8b0ad814e00160142381bbea | refs/heads/master | 2021-01-11T22:25:49.689304 | 2017-03-17T12:21:30 | 2017-03-17T12:21:30 | 78,961,775 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | """
"""
import random
import numpy as np
import argparse
import gym
from rockrose import preprocessor
from rockrose import replay_memory
from rockrose.models import unreal as rr_model_unr
from rockrose.trainers import unreal as rr_trainer_unr
from bluegym import env_bluelake
ENV_GAME_NAME = 'Sandroad-v0'
BLG_GA... | [
"lancelee82@163.com"
] | lancelee82@163.com |
d395865c3605eeb941bb91b09298508c591b437a | a8425bd731abfaa2c7bc797ce1b4d00aa8b46fa2 | /anytree/__init__.py | 295891bec7000b8494dbf942641d4a1f8fc9e872 | [
"Apache-2.0"
] | permissive | nline/anytree | 45103dea6b4ce397711a33bb873b3478fc48cd20 | 73492fb96d77a6973f3c48489064a12452646965 | refs/heads/master | 2023-02-14T03:42:42.853455 | 2021-01-04T20:41:06 | 2021-01-04T20:41:06 | 287,288,337 | 0 | 0 | Apache-2.0 | 2020-08-13T13:30:56 | 2020-08-13T13:30:55 | null | UTF-8 | Python | false | false | 1,587 | py | # -*- coding: utf-8 -*-
"""Powerful and Lightweight Python Tree Data Structure."""
__version__ = "2.8.0"
__author__ = "c0fec0de"
__author_email__ = "c0fec0de@gmail.com"
__description__ = """Powerful and Lightweight Python Tree Data Structure.."""
__url__ = "https://github.com/c0fec0de/anytree"
from .search import Co... | [
"c0fec0de@gmail.com"
] | c0fec0de@gmail.com |
1d483a76ea0064ddee68569fb474fa2474afb07f | 67ceafeb0042a2bcc49fdb60ae36e800ef354b42 | /app/maps/graphical_stitcher.py | de1ccae05042aaacfad20e3efed1d0ea2b0943c4 | [] | no_license | henrymwestfall/Platformer | 9095874482b64df78e49bdc167561be45f929648 | 56ac08f37b74a5469ea94f870d5eef19bb35e426 | refs/heads/master | 2022-10-29T06:04:29.622020 | 2020-06-14T19:39:59 | 2020-06-14T19:39:59 | 267,941,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | import os
import pickle
import pygame as pg
WHITE = (255, 255, 255)
FOREST_GREEN = (34, 139, 34)
def load_tile_map(name, *subdirs):
if ".pkl" in name:
file_name = name
else:
file_name = name + ".pkl"
path = os.path.join(*subdirs, name)
with open(path, "rb") as f:
raw_data = pi... | [
"henrymwestfall@gmail.com"
] | henrymwestfall@gmail.com |
1301f31631459997d39f2eb0f8204bcd23850b20 | bf2b2b04b0d27ccbb83fac8e4f9f2f807eddd4d1 | /AI -Try - using A Star algo (Python)/q2_single_agent_training.py | a792bb35ae3ee352301288a30c095ec02d8e1224 | [
"MIT"
] | permissive | yellowRanger1111/Personal-Projects | 334d752fda401af2ee2a29801d87445510d0bdc8 | 159dcb4e3943875aed1a0b0cc69df7474728cc71 | refs/heads/main | 2023-08-26T18:19:03.690936 | 2021-10-16T08:00:10 | 2021-10-16T08:00:10 | 417,749,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,744 | py | from argparse import Namespace
from collections import deque
#base_dir = Path(__file__).resolve().parent.parent
#sys.path.append(str(base_dir))
from reinforcement_learning.dddqn_policy import DDDQNPolicy
import numpy as np
import torch
from utils.observation_utils import normalize_observation
from utils.environment_... | [
"54380416+yellowRanger1111@users.noreply.github.com"
] | 54380416+yellowRanger1111@users.noreply.github.com |
77ee6f121ff4c31ffa03f663dcf5e8f9becf9668 | 122f9bf0d996c104f541453ab35c56f6ff3fc7cd | /binarysearch/공유기.py | f88af0df8eb7ac12ed7e91b46ea583cc0b2bc2c3 | [] | no_license | JannaKim/PS | 1302e9b6bc529d582ecc7d7fe4f249a52311ff30 | b9c3ce6a7a47afeaa0c62d952b5936d407da129b | refs/heads/master | 2023-08-10T17:49:00.925460 | 2021-09-13T02:21:34 | 2021-09-13T02:21:34 | 312,822,458 | 0 | 0 | null | 2021-04-23T15:31:11 | 2020-11-14T13:27:34 | Python | UTF-8 | Python | false | false | 1,570 | py | N, C = [int(i) for i in input().split()]
L = []
for i in range(N):
L.append(int(input()))
L.sort()
two_left=False
def chop(low, high):
global two_left
#print(low,high)
m = (low+high)//2
if low>=high: # 경우의 수가 하나 남았을 때
return low
if high-low==1: # 경우의 수 두개 남았을 때
two_left=True
... | [
"74404132+JannaKim@users.noreply.github.com"
] | 74404132+JannaKim@users.noreply.github.com |
a1f12e1a399ccb2f167547bc22020b8415ea2f24 | 36f08c580a6146d3543d4089191e93f642bb7801 | /GPyOpt/methods/auto_tune.py | 561159afba082014992f4b7eab7187518e98ea1c | [
"BSD-3-Clause"
] | permissive | FlorianWilhelm/GPyOpt | 19f3b81106f85b0b9a80671a8f04263ce3131428 | 62dd0750ae8c252d1f71bab2767f31ac4746f226 | refs/heads/master | 2021-01-22T20:55:05.154786 | 2016-05-25T23:04:09 | 2016-05-25T23:04:09 | 59,822,050 | 1 | 0 | null | 2016-05-27T09:18:06 | 2016-05-27T09:18:06 | null | UTF-8 | Python | false | false | 2,960 | py | # Copyright (c) 2015, Javier Gonzalez
# Copyright (c) 2015, the GPy Authors (see GPy AUTHORS.txt)
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from .bayesian_optimization import BayesianOptimization
class autoTune(BayesianOptimization):
def __init__(self, f, bounds=None, max_iter=None, eps = None, ... | [
"j.h.gonzalez@sheffield.ac.uk"
] | j.h.gonzalez@sheffield.ac.uk |
161017ae74be54ab13d82f983516cd0d36f0431a | 54e797ded1fea168ddd7864b7b595bb4764562fb | /stack/hlsconstructs/sentinel_step_function.py | bbd71b21f9aaa18b137b49de8e632fcef3c1eca7 | [] | no_license | jsrikish/hls-changes-23dec2020 | 5876af2ea3a7d16d1e069478d2e7200097929265 | e9786ad90ae076aa11037fa4a7f202f28cd262d7 | refs/heads/main | 2023-02-12T18:16:30.405434 | 2021-01-06T21:18:05 | 2021-01-06T21:18:05 | 327,430,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,130 | py | from aws_cdk import (
aws_stepfunctions,
aws_iam,
core,
)
import json
class SentinelStepFunction(core.Construct):
def __init__(
self,
scope: core.Construct,
id: str,
check_twin_granule: str,
laads_available_function: str,
outputbucket: str,
outpu... | [
"jayanthi.srikishen-1@nasa.gov"
] | jayanthi.srikishen-1@nasa.gov |
08b869e8d8559db4d477d360515bc7c627507ca5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03129/s302066927.py | 0887597072b00c7f90e5a7d87138c543cb18fc6f | [] | 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 | 156 | py | import sys
N, K = map(int, input().split())
ans = 0
for i in range(1,N+1,2):
ans = ans + 1
if ans >= K:
print("YES")
sys.exit()
print("NO")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2ab4879b68c702266ed923a5a2e754131db423bd | 671c79b2609c78e6ffad3077aa0862e38284bfa8 | /templet/Basetemplet.py~ | 03d8ae04cd8e3819f5d468216b36ee6f5e48795d | [] | no_license | yxxhero/pandamonitor | 89c30efdf84ef799f24cd188fe515ed64a870952 | 918cd40f8cd2a78e41001fbeaaa390564304b250 | refs/heads/master | 2020-12-06T23:27:38.381077 | 2016-09-21T15:40:38 | 2016-09-21T15:40:38 | 68,614,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | #!/usr/bin/env python2.7
# _*_ coding:utf-8 _*_
class basetemplet(object):
def __init__(self):
self.host_ip=''
self.group=''
class linuxtemplet(basetemplet):
def __init__(self):
super(linuxtemplet,self).__init__()
self.server=['mem_info']
self.name='linux'
self.me... | [
"526169407@qq.com"
] | 526169407@qq.com | |
dace36c15b534c7dffff376bb4598fb9ff665b68 | 733f92f20412370b4a653aefb78d52941b36646b | /partition/data/reshardosm.py | da36abb035ac41e102ba1324a2c143fde869d28e | [] | no_license | ablimit/hadoopgis | b0ef9bdc852859e5b388d9fdd995058d0a58d684 | 4e0fe84c14b4f7cee55ff00eca26c984b938c8c3 | refs/heads/master | 2020-04-16T00:24:25.740421 | 2015-08-24T17:13:20 | 2015-08-24T17:13:20 | 7,951,350 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | #! /home/aaji/softs/bin/python
import sys
import re
import math
def main():
if len(sys.argv) <2:
print "Usage: "+ sys.argv[0] + " [osm Map]"
sys.exit(1)
dic = {}
ID_IDX = 0
POLYGON_IDX = -1
for line in sys.stdin:
sp = line.strip().split()
if (len(sp) >= 2):
... | [
"aaji@mathcs.emory.edu"
] | aaji@mathcs.emory.edu |
b2eeeceb59b10f12e3b463c73a0aa1e29380f918 | c27b07ae8d14e6c248bde5cc804b6145d2d8cf4b | /polaris/polaris/management/commands/check_trustlines.py | ef6e45500df171fb3361cd2ad9a5b1488bd80b8d | [
"Apache-2.0"
] | permissive | msfeldstein/django-polaris | c7547edcef8c8860d0de49bff71eeb5a0612a2ea | 2671afed7cb2bbbff6a0b428d98d5c9189edb6bb | refs/heads/master | 2020-09-12T20:41:01.729104 | 2019-11-15T22:34:01 | 2019-11-18T17:10:05 | 222,548,494 | 0 | 0 | Apache-2.0 | 2019-11-18T21:31:01 | 2019-11-18T21:31:00 | null | UTF-8 | Python | false | false | 1,963 | py | import time
import logging
from polaris import settings
from django.core.management.base import BaseCommand, CommandError
from django.core.management import call_command
from stellar_sdk.exceptions import BaseHorizonError
from polaris.models import Transaction
logger = logging.getLogger(__name__)
class Command(Bas... | [
"jake@stellar.org"
] | jake@stellar.org |
026fa01d40203fd51b0628786ac718b0eea8982c | 21d2bc38139841269bbeb33c761e3c1396b85247 | /genentech/analysis.py | a00f1d0d62e21d8a9551bf3f18a1a554f7d275fa | [] | no_license | cdever01/ani-2x_results | 4389097b918b5b49da42eeb963400955ea46e85d | 077e01ff614daec560e69bef3984f8647a7ab50c | refs/heads/master | 2023-04-21T13:57:11.583758 | 2021-05-10T20:10:36 | 2021-05-10T20:10:36 | 269,153,132 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,659 | py | import pandas as pd
import numpy as np
import os
import re
import torch
import torchani
from torchani.units import HARTREE_TO_KCALMOL
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
def read_xyz(file):
import numpy as np
xyz = []
typ = []
Na = []
ct = []
fd = open(file, ... | [
"cdever01@ufl.edu"
] | cdever01@ufl.edu |
1ad619d89775334c5265b7dc7afb1661a44e38d8 | 6feed288eeae89d39e302cc1bfd07bd8a6e06884 | /python/thingspeak.py | 0104852e640612c90e8974fd6acc1a90a4074e31 | [] | no_license | kongdej/pudza | 6af622eed2e70ed892a38d681665b5605fe88119 | 50ee06631462dece4a144e29c49caa0e59d7c784 | refs/heads/master | 2020-02-26T16:32:12.630755 | 2017-01-09T05:59:13 | 2017-01-09T05:59:13 | 69,976,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import requests
#import urllib2
api_key = "MHTC88ZRMETT82P9"
#urlThingspeak = "https://api.thingspeak.comupdate?api_key=%s" % api_key
#print urlThingspeak
#lux = "10"
#params = urllib.urlencode({'key': keyThingspeak})
#f = urllib.urlopen(urlThingspeak+"update?field1="+msg, data=params)
#f = urllib2.urlopen(urlThings... | [
"kongdejs@gmail.com"
] | kongdejs@gmail.com |
ac6d4db8c9c186c23b51f9690ba1d838c76936cc | b9662213e143acea87e9af6f41143c50f23bec95 | /main.py | 3bcc258a67bac8bb863e85ccfce47cd210cce045 | [] | no_license | elprofedotti/python-mvc | 3442680dc20d7cb0ec9c3bf09442daecda4c8e4e | 9beee06de2e7a04ad872e037157a08dd2bb3dcc6 | refs/heads/main | 2023-08-04T08:17:03.886448 | 2021-04-20T12:57:17 | 2021-04-20T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | """Entry point."""
from app.app import Application
from app.views import MainPage
from app.models import Book
if __name__ == "__main__":
app = Application(MainPage(Book.list()))
app.run()
| [
"mbriolet.ma@gmail.com"
] | mbriolet.ma@gmail.com |
ba9a432d0ad050ac5a0d3d0553cf31f1a7d96b88 | f9b3fd94cfa424ceb9ec6e175a619f1a24a0e000 | /project09/dataset.track1.sample/track1/createUserRatingList.py | 5d5243a6f64dd00991798a3ec356ec22f411838a | [] | no_license | ojchase/csci568 | 7ec9b467096fae5e92e8c77a2e15525f52422c3f | 38174a5efcf41f1c480ab52aca7f0349850341c3 | refs/heads/master | 2020-05-17T08:21:54.161775 | 2011-12-17T08:39:30 | 2011-12-17T08:39:30 | 2,292,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | fileName = open('trainIdx1.firstLines.txt', 'rb') #substitute different file names here
fileName2 = open('userRatedList.txt', 'w') #substitute different file names here
content = fileName.readline()
content = content.strip()
i = 0
userID = str(-1) #why? just so the file.write() doesn't complain about types
while (conte... | [
"ojchase@gmail.com"
] | ojchase@gmail.com |
77ec1a307afebd5162f2ea1d4eaaece759d3fd15 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5753053697277952_0/Python/BIPUL/a.py | 3b8209e6b92d12243001a0707948776e81fe2d81 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | ############### Author: Bipul Ranjan @ranjanbipul ###############
import sys
import time
import os
import math
import operator
import random
from functools import lru_cache
from decimal import Decimal as D
from fractions import Fraction as F
#sys.setrecursionlimit(10000)
#@lru_cache(maxsize=None)
MOD = 1000... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
ebdd4d095e69b8ab947bda9f0795b22d3c7ccfee | 5c40c631514f595bf5eec4e3278bcc65bc93ab0e | /src/raspi_stub.py | 1ab7677d0fde49ea98c866b255f58a3ecec88082 | [
"MIT"
] | permissive | vickeykumar/raspi-mgr | 7c02177f3cf4f3967f6ad7c10d12b70bc2ca9813 | 9e0974bbe30de6ac659846888151e5ab8511c794 | refs/heads/master | 2020-06-26T02:27:25.790876 | 2019-11-11T14:15:41 | 2019-11-11T14:15:41 | 199,497,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # implements RPi.GPIO stubs for testing
BOARD=True
OUT=True
class GPIO:
BOARD = True
OUT = True
LOW = False
def setmode(x):
print("GPIO.setmode: ",x)
pass
def setwarnings(x):
print("GPIO.setwarning: ",x)
pass
def setup(x, y, initial=False):
print("GPIO.... | [
"kumarvickey45@gmail.com"
] | kumarvickey45@gmail.com |
86218a23aecd745bf875efe5c8bcfe080d67e1ac | 1f6f9196a936ff975506a0a91ac6de4f6cb81c5f | /virtual/bin/flask | 87ca091d63b74db9b123633bbc618aecfaa5df8d | [] | no_license | EnockOMONDI/MOVIEWATCHLIST-ishows- | 02f8581733a88098e41c8b33c0eb969215ec700d | 0663c990d598a84e2e0f1af799c7620b21a35944 | refs/heads/master | 2020-03-10T01:20:07.224783 | 2018-04-11T15:55:13 | 2018-04-11T15:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/home/sean/Desktop/PROJECTS/PYPROJECTS/NEWWATCHLIST/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"djseanizellkenya@gmail.com"
] | djseanizellkenya@gmail.com | |
d641b78fbf285d9990e4e6f1f59ccad03ba5b92c | aa663d4567f8a34a6705df71a6b829cb6ac353ed | /count_primes.py | 2ca6a4b0dcc03be24f6797751316bb6c0963bcff | [] | no_license | snigdhasambitak/python-scripts | cd5df9cde2e31a4427ff1db6d078c91988e9eca4 | f059d36a13657e33e0261d4d3a7805d90d8b382b | refs/heads/main | 2023-05-03T22:23:45.454773 | 2021-05-17T17:28:25 | 2021-05-17T17:28:25 | 360,143,354 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #### COUNT PRIMES: Write a function that returns the *number* of prime numbers that exist up to and including a given number
# count_primes(100) --> 25
# By convention, 0 and 1 are not prime.
def count_primes(num):
counter = 0
primes = []
for n in range(2,num+1):
prime=1
for i in rang... | [
"snigdhasambit.aryakumar@here.com"
] | snigdhasambit.aryakumar@here.com |
a9c5cf603568c48ce2727e50114f055bea8f7da5 | 3edc26fafdc7a3d864b5a41cfee8850c48557fd7 | /try1/attempt1/migrations/0015_auto_20200724_0029.py | 83b5f61e3d3b157410b79570cc70341e1193cbf9 | [] | no_license | Jinay01/Unicode-Task | ee3cc8535933bf5d3a73299eb0f5c6aae575c9b6 | 885dd6acb37106b9dfb50b6538e9f959beedf277 | refs/heads/master | 2022-11-30T03:53:04.564331 | 2020-08-11T19:05:25 | 2020-08-11T19:05:25 | 281,713,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 3.0.8 on 2020-07-23 18:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('attempt1', '0014_auto_20200724_0026'),
]
operations = [
migrations.AlterField(
model_name='apiinput',
name='counter'... | [
"jinayparekh2001@gmail.com"
] | jinayparekh2001@gmail.com |
3accbac65582ec80871a4a4cecfea0f3da64d7f1 | 75065010d58f7feb5b755a8a53a87fda7aed2b25 | /zun/objects/fields.py | 8b49e957acf1208d14a2abdca531e6d63196620c | [
"Apache-2.0"
] | permissive | yuywz/zun | f9cadb36c220252ae0e4bb9eff98a8f2bb1600a7 | 12e9b36f066797ac9af1e1c07ae3b76cf43903d8 | refs/heads/master | 2021-01-11T01:44:16.070332 | 2016-10-07T15:41:04 | 2016-10-07T15:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"hongbin.lu@huawei.com"
] | hongbin.lu@huawei.com |
6849c6d7fd667e1e598f90a74fce82d987a48349 | 511f4b427b14ee7bd4d93a76d03243ae4a80dcdb | /py/treenode.py | f680b94438d7e7a924acba9112d09fa84977c7d1 | [] | no_license | lusanshi/leetcode-sol | b515932a5cec0e87e53706a8459fbdbbbbc27526 | 03e03b80fb283435fae700998ac3386c5693f566 | refs/heads/master | 2020-08-07T18:56:16.996826 | 2020-04-11T18:22:45 | 2020-04-11T18:22:45 | 213,557,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | #! usr/bin/python3
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def inordtrv(self):
root = self
if not root:
return
inordtrv(root.left)
print(root.val)
inordtrv(root.right)
| [
"noreply@github.com"
] | noreply@github.com |
0a6dc4ee4b583d0cf7e827021a9f45d63b36db1d | a036e97331d0a4a04fdb1d3024e0fa248fc1f983 | /src/retrieval_core/models/head/part_based.py | 773e9c14ace9a3b7fc0c0e5222581d0e222c8317 | [
"MIT"
] | permissive | RImbriaco/OML | e935549fcd199e4c7b89c28d79b761db1e484e3d | 4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b | refs/heads/main | 2023-08-03T03:35:46.589272 | 2021-09-14T09:41:20 | 2021-09-14T09:41:20 | 404,034,220 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | import torch
import numpy as np
from torch import nn
class BNNeck(nn.Module):
def __init__(self, in_dim, inter_dim, num_classes):
"""
Batch-norm neck as defined in: "Bag of Tricks and A Strong Baseline for
Deep Person Re-identification" https://arxiv.org/abs/1903.07071
:param in_di... | [
"spars3batteryhors3"
] | spars3batteryhors3 |
22b29b9db0278b7d46b3fece2b2d881a2a7606b8 | 5ff51341de4bef8df471395a3637171231ffcde9 | /anggaxd/cid/crack-dec.py | 1ef18d3bfbbaac9d343376ec643498f144ab41c0 | [
"Apache-2.0"
] | permissive | printelseif/ReversE-EngineerinG | 7f05fdea90b98f1fdde13fabecd425deb599f939 | a3da838cd95e003ef009458e3bcdd907955e8c0e | refs/heads/master | 2022-12-30T08:16:16.957062 | 2020-10-14T08:57:01 | 2020-10-14T08:57:01 | 295,187,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,581 | py | # uncompyle6 version 3.7.3
# Python bytecode 2.7
# Decompiled from: Python 2.7.16 (default, Oct 10 2019, 22:02:15)
# [GCC 8.3.0]
# Embedded file name: dg
import os, sys, time, datetime, random, hashlib, re, threading, json, urllib, cookielib, getpass
os.system('rm -rf .txt')
for n in range(5000):
nmbr = random.ran... | [
"noreply@github.com"
] | noreply@github.com |
ad0c1bbbf2baf95ea3e20041d65695b30f7788da | 5b02bc5c60729685481c2ea724c51a59180b21e3 | /floyd-warshall.py | 3dc1a9f2ccb4756f1398319dee7f642c45fb7531 | [] | no_license | jaleonro/Classic-algorithms | a045dd3f6d7fe33e82bc18e9d343385f54947499 | 46d713e7fe40ccaa5d25969ec75d22f5acecd73b | refs/heads/master | 2021-01-16T14:12:58.457838 | 2020-02-26T02:34:23 | 2020-02-26T02:34:23 | 243,149,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | import math
INF = math.inf
def floydWarshall(graph,source,destiny):
dist = graph
V= len(graph[0])
parents = [[-1] * V for i in range(V)]
for i in range(V):
for j in range(V):
if i==j or graph[i][j] == INF:
parents[i][j]=-1
else:
... | [
"noreply@github.com"
] | noreply@github.com |
4879d32724d4a17f00e950a3d91a20a190f174e3 | 8cf34194d19dcec16b70e9dfe1f95bcd93654bee | /app.py | d7df2c22993ab9d4b4e5be861c0b175ea6b81701 | [] | no_license | saeedahamed007/SkinDiseaseDetection | b34295ea3057f82beb6186930c53080d3e409467 | dbd3a4cb6a063f927fa02e10f94f5e5852830285 | refs/heads/main | 2023-06-14T21:08:23.791039 | 2021-07-03T18:53:43 | 2021-07-03T18:53:43 | 379,689,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | from flask import render_template, jsonify, Flask, redirect, url_for, request
import random
import os
import numpy as np
from keras.applications.mobilenet import MobileNet
from keras.preprocessing import image
from keras.applications.mobilenet import preprocess_input, decode_predictions
from keras.models import... | [
"noreply@github.com"
] | noreply@github.com |
ceded759228bb0777bedea895838fa0d899859bb | abb739ee7a025fdb03c5b619b5495708924ec351 | /Easy/Sorted Squared Sum/sol.py | b7e6a4d5fa90602ac997b9a4921b6c9040d9cfa9 | [] | no_license | ravi-ror/algoexpert-1 | ca7edecbb2c7fd2c4919af24abd4c48eb677b4c6 | 5b1f6653b4e11ac781be956cdd7ca9f7ad4f7ab6 | refs/heads/main | 2023-06-24T19:23:48.725464 | 2021-07-28T17:53:21 | 2021-07-28T17:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # Time Complexity: O(nlogn)
# Space Complexity: O(n)
def sortedSquaredArray1(array):
solution = []
for a in array:
solution.append(a**2)
return sorted(solution)
# Time Complexity: O(n)
# Space Complexity: O(n)
def sortedSquaredArray(array):
array_length = len(array)
solution = []
left = 0
for i in range(... | [
"shubhamc183@gmail.com"
] | shubhamc183@gmail.com |
4c124ae97420c1086994cd22cd216aee050422c6 | 03272607560cd1807fb044bc7b4ae08354d3b7e2 | /strlam.py | 888d3c299b55d626a0dc4974dd2e262e76e934b5 | [] | no_license | aawaskita/triacmix | 0a04651c19a3f11a007ae0c99dc8e2123fc0a6cb | 6e8717fcf7f5623aba161cb8f28aa837b5babf97 | refs/heads/master | 2020-04-19T02:40:07.310691 | 2019-09-13T08:06:34 | 2019-09-13T08:06:34 | 167,910,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | import globalVar
from vau import VAU
from reyn import REYN
from xire import XIRE, XIRE1
from ethag import ETHAG
"""
BERECHNET DIE KONSTANTEN FUER DIE STROEMUNGSBERECHNUNG
Perhitungan konstan untuk aliran
"""
def STRLAM(ifxkk):
for nv in range(globalVar.verti['nverti']):
for n in range(1,globalVar.ui['nm1']):
glo... | [
"aawaskita@gmail.com"
] | aawaskita@gmail.com |
0a67f283ef42dca44daf76bbc4a66abe4d8c48dd | 951a84f6fafa763ba74dc0ad6847aaf90f76023c | /Solu86.py | e7e90402710c612a3e2d5f06db28be58e7c62afc | [] | no_license | SakuraGo/leetcodepython3 | 37258531f1994336151f8b5c8aec5139f1ba79f8 | 8cedddb997f4fb6048b53384ac014d933b6967ac | refs/heads/master | 2020-09-27T15:55:28.353433 | 2020-02-15T12:00:02 | 2020-02-15T12:00:02 | 226,550,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # # 86. 分隔链表
# 给定一个链表和一个特定值 x,对链表进行分隔,使得所有小于 x 的节点都在大于或等于 x 的节点之前。
#
# 你应当保留两个分区中每个节点的初始相对位置。
#
# 输入: head = 1->4->3->2->5->2, x = 3
# 输出: 1->2->2->4->3->5
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def partition(s... | [
"452681917@qq.com"
] | 452681917@qq.com |
5494e82d4348484b2d1a327ed8bd604bef7b1bc9 | d5c97320762c6b72f2c008708824266c63b7e984 | /mysite/settings.py | f90272946cf418b95d16cca2025859217cb36666 | [] | no_license | haris6099/polls-project | 47faf114e9637a729173635344ad1e532538a1f1 | 09ad965f847df88fd2c76eb6639e159bdaf2fc28 | refs/heads/master | 2020-03-28T18:03:15.331290 | 2018-09-14T22:48:31 | 2018-09-14T22:48:31 | 148,848,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"hwk6991@aol.com"
] | hwk6991@aol.com |
5707bc9c873bbcf4b9dffb1598bcf5ce52d4b1cb | 3f69f2baaee00456cc86e6e261b906d35d202569 | /utils/pynetcat.py | 738680f5ba3e6dbcdb0034a6c95156f5dea556db | [] | no_license | CsBigDataHub/spark-training | 24b425f32a3af008bc22672a950af4b2c2e3e6d5 | 10be52e02a143b2f909abdef8c6fe4cf10903498 | refs/heads/master | 2021-04-12T08:48:52.147138 | 2018-03-24T17:04:34 | 2018-03-24T17:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,856 | py | #!/usr/bin/python
import sys
import socket
import optparse
from datetime import datetime
import select
def parse_options():
"""
Parses all command line options and returns an approprate Options object
:return:
"""
parser = optparse.OptionParser(description='Python NetCat Server.')
parser.add... | [
"k.kupferschmidt@dimajix.de"
] | k.kupferschmidt@dimajix.de |
48238c52ba2a6aa069efd3ce03a88648f8ad6eef | 885e1ac4e2c3eb94932ea33bed82e6098a8f1864 | /A4/rnn_lstm_attention_captioning.py | cebddaa6bb0760be3a07b54fe93af65eca043c06 | [] | no_license | nsanghi/umich_deeplearning_eecs498 | 427c8928aa59b2edf083b1b97f6348d4efe68204 | c52904cc3585bc6d91e9b6d221d75d0b2dce8021 | refs/heads/master | 2023-08-24T16:49:36.646274 | 2021-10-07T13:33:31 | 2021-10-07T13:33:31 | 393,313,530 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,564 | py | """
Implements rnn lstm attention captioning in PyTorch.
WARNING: you SHOULD NOT use ".to()" or ".cuda()" in each implementation block.
"""
import torch
import math
import torch.nn as nn
from a4_helper import *
from torch.nn.parameter import Parameter
def hello():
"""
This is a sample function that we will try t... | [
"nimish.sanghi@gmail.com"
] | nimish.sanghi@gmail.com |
1dc9013797db5056f16f1cae259e3a6f85402f4a | ec23fabf63bd8c37ce2619b40ddfac3092e4e9bc | /esprov/provda_record.py | 155cb74eeb70926311e32903b74522d525d22002 | [] | no_license | ihmeuw/fungi | 1727d0fc0cbb1f3faf12a277ee3bc7480e20ff21 | e51dc7ed40775b18137833c5e6ec768940f88eca | refs/heads/master | 2021-03-16T05:10:29.806270 | 2017-01-27T03:45:58 | 2017-01-27T03:45:58 | 72,963,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | """ Definition of a provda-created provenance record w.r.t. Elasticsearch.
Provda is a package for provenance tracking of data and processes, with an
emphasis on process-oriented provenance. Created by Andrew Dolgert for the
Institute for Health Metrics and Evaluation (IHME) at the University of
Washington (UW), it is... | [
"vr24@uw.edu"
] | vr24@uw.edu |
235c672831f5d93373e32f38e38f5655cf5ab225 | fd48fba90bb227017ac2da9786d59f9b9130aaf0 | /digsby/src/contacts/BuddyListElement.py | f33b3380035eee14ea46a75e7f98d16ccdad3ccf | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | niterain/digsby | bb05b959c66b957237be68cd8576e3a7c0f7c693 | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | refs/heads/master | 2021-01-18T10:07:10.244382 | 2013-11-03T02:48:25 | 2013-11-03T02:48:25 | 5,991,568 | 1 | 0 | null | 2013-11-03T02:48:26 | 2012-09-28T02:24:50 | Python | UTF-8 | Python | false | false | 630 | py | from util.primitives.funcs import isiterable
from common.actions import ActionMeta
class BuddyListElement(object):
__metaclass__ = ActionMeta
@property
def num_online(self):
from Contact import Contact
if isiterable(self) and not isinstance(self, Contact):
return su... | [
"mdougherty@tagged.com"
] | mdougherty@tagged.com |
782ce93a0a256fec41cbd6777146f5c3cd2c5695 | b3586235dc1e1acbd49fab996f581269a808480b | /sistema/planeamento/migrations/0013_ordemproducao_num_paletes_stock_in.py | 1fcbb090362b7154911b2ca6ccc20eb7e102cd64 | [] | no_license | gonfersilva/Sistema | 37ad1cd03dfbb7889fa0b0367c6ebd9044712ae3 | 4c6d9ade22040972efbe892eae0130939d7b5c46 | refs/heads/master | 2021-10-23T23:21:51.262723 | 2021-10-13T19:45:49 | 2021-10-13T19:45:49 | 155,545,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Generated by Django 2.2.7 on 2020-08-06 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('planeamento', '0012_auto_20200805_1401'),
]
operations = [
migrations.AddField(
model_name='ordemproducao',
name='nu... | [
"goncalo.silva@elastictek.com"
] | goncalo.silva@elastictek.com |
c301394e06bbc91ff7923a7ce0f4424d0f020b8c | c35910349b24125645d203c0298abba5a0fec70f | /src/nc_lp.py | ad43e56348b3e87dcb6ebcc9f42d6ea258357272 | [
"BSD-3-Clause"
] | permissive | jurjsorinliviu/DeepConcolic | cbc7feb122b082cdbbb0ef13a72e8ce9064e11b9 | ac400d40a65ca3ed831bc60da1df6ef9560cf110 | refs/heads/master | 2020-03-25T02:20:15.330912 | 2018-07-30T16:08:30 | 2018-07-30T16:08:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,914 | py |
import cplex
import sys
import numpy as np
from utils import *
from lp_encoding import *
import copy
epsilon=1.0/(255)
def negate(dnn, act_inst, test, nc_layer, nc_pos, base_constraints):
var_names=copy.copy(base_constraints.var_names)
var_names_vect=copy.copy(base_constraints.names)
objective=copy.copy(base_... | [
"youcheng.sun@cs.ox.ac.uk"
] | youcheng.sun@cs.ox.ac.uk |
c5cd16c93424acce1568eda1bff3b63f58522eb0 | 149b139871110353d5ec5a34cd99b2d9b03233e0 | /scripts_bdata/oozie/atendimentorae/run_workflow_baixa.py | 4353d6553a304d8a8c1594fdcf19bf20d6683b51 | [] | no_license | alisonsilva/python | ca9a99700086d724605d286f05045b40713c9b07 | de7b31e2279c081750e8ad13b04816e122ff253b | refs/heads/master | 2020-03-07T19:14:17.802736 | 2018-04-26T13:47:05 | 2018-04-26T13:47:05 | 127,665,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #!/usr/bin/python
import os
if __name__ == '__main__':
os.environ['PYTHONPATH'] = '/root/scripts:' \
'/root/scripts/oracle_hdfs:' \
'/root/scripts/oracle_hdfs/atualizacao:' \
'/root/scripts/oracle_hdfs/atualizacao/tabelas... | [
"alisonsilva123@gmail.com"
] | alisonsilva123@gmail.com |
b5d365bea221a900608893f2b51a0e20be91666b | 78eb654a0f6d0154692eac24231ca0a5e52b20f3 | /Codes/Second_Paper/FirstTest/RankedBO_3_3.py | 07491aa0bb8682f54402238a8e1bc88cd45a9995 | [] | no_license | biaohe/PRaDA_BO | da4abeeb794f1ce6412cf9b95ecd40dc5f83953a | 504277de03156297b451beee9a3eb1eccc7c903f | refs/heads/master | 2021-09-25T12:59:18.029349 | 2018-10-22T01:50:22 | 2018-10-22T01:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,673 | py | from __future__ import division
from scipy.stats import norm
import warnings
from copy import deepcopy
import GPy
from scipy.stats import mvn
import GPyOpt
import numpy as np
import os.path
from termcolor import colored
from numpy import linalg as LA
import numpy as np
import sys
from matplotlib import pyplot as plt
im... | [
"majid@deakin.edu.au"
] | majid@deakin.edu.au |
c21fc02c2e05ee05fda52e28f2e6ab1c68980ba5 | b45237bbca0daddeb0ce766b04eaa82119a585c6 | /config.py | f212263da1a24c3fad1a3796b88d92223405766c | [] | no_license | rezacode01/Proxy-Server | a5e75965da7ac04279e0148fbb8cc7bbf0ef4e26 | 354a39ef711f09d46eb3e623d8ee19681f09d8e7 | refs/heads/master | 2020-04-03T21:53:01.368854 | 2018-11-01T08:30:49 | 2018-11-01T08:30:49 | 155,585,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import json
with open("config.json") as config_file:
config_data = json.load(config_file)
PORT = config_data['port']
MAX_CONNECTION = 3
MAX_BUFFER_SIZE = 8096
LOG_CONFIG = config_data['logging']
PRIVACY = config_data['privacy']
RESTRICTION = config_data['restriction']
SLOW = 'SLOW'
BLOCK = 'BLOCK'
| [
"rezacode01@gmail.com"
] | rezacode01@gmail.com |
81f0758ac1e26edbb0d98db4be63957709d38e8b | 7350ccd6e296ad20c0932fc9af32a5739b855492 | /Calculus/vectorfields.py | bc408286948715ee2340c1af4c5614c1edc4245c | [] | no_license | HarryVTripathi/MLEx | 4d84272eb5a557f965bc4ca0249a797facf4bf7e | bc84b6e05266a2875cd4327622f874b0575b6e7b | refs/heads/master | 2020-09-22T12:23:36.121730 | 2019-12-29T06:19:16 | 2019-12-29T06:19:16 | 225,192,444 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import numpy as np
from matplotlib import pyplot as plt
x, y = np.arange(-10, 11, 2), np.arange(-10, 11, 2)
U, V = np.meshgrid(x, y)
X = V**3 -9*V
Y = U**3 -9*V
fig1, ax1 = plt.subplots()
Q = ax1.quiver(U, V, X, Y, units='width')
qk = ax1.quiverkey(Q, 1, 1, 2, r'$2 \frac{m}{s}$', labelpos='E', coordinates='figure')... | [
"helmuthziggler@gmail.com"
] | helmuthziggler@gmail.com |
9fe698949e0fa7bcc12ff20c747f8136ef8836c3 | 03fe7ee6bdb387efb4ba312abf30f0aa5bc61606 | /main.py | 20613cfe4d07c4f05dcbf36c83e09db29ac2e269 | [] | no_license | nanvenomous/StrawberryBotSprings | 7f47f1f0000f18d27df2160fd637877457b46fd5 | 07aae11be0226b6f0cc4b72150cb91cf00ddfb0d | refs/heads/master | 2023-04-25T09:17:43.886347 | 2020-12-06T05:25:54 | 2021-05-01T11:02:05 | 363,520,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #!/usr/bin/env python3
import time
from src.tools import StrawberryBot
short_interval = 2
long_interval = 45
async def getHotspringReservations(strawberrybot):
try:
await strawberrybot.delay(4)
await strawberrybot.message(f'[Started StrawberryBot]\n\tfor {strawberrybot.userCreds.email}\n\t@{straw... | [
"mrgarelli@gmail.com"
] | mrgarelli@gmail.com |
211ed6c49ca3a646738d8e60c222220806b4ede5 | 64a5f3cdc75445af5fbbd8f4ebc470e1df8a2b9a | /wx_python/snippets/spacers.py | 9104760018f3a7acf955d2534315464615d91698 | [] | no_license | psionman/psionman_set | a3998cd345329198b7a951a1fbcf2fbfdbdbb8db | 3246188872327ebf08271932370aeb544a5000c8 | refs/heads/gh-pages | 2022-10-27T19:58:36.199192 | 2020-05-12T13:11:29 | 2020-05-12T13:11:29 | 249,749,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | """Demonstrate the use of wxPython spacers."""
import wx
class MainFrame(wx.Frame):
"""Create and show the frame for the application."""
def __init__(self, *args, **kwargs):
"""Initialise the MainFrame class."""
super(MainFrame, self).__init__(*args, **kwargs)
panel = MainPanel(self)
... | [
"jeffwatkins2000@gmail.com"
] | jeffwatkins2000@gmail.com |
573a193c39d9439dca5d7bd30a379c92a02b9329 | 4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8 | /demos/great-expectations/venv/lib/python3.8/site-packages/great_expectations/expectations/core/expect_column_value_lengths_to_equal.py | 082cd7affc8769938d3c0e6cee1b6a9c66d84c5e | [] | no_license | franciscojavierarceo/Python | 29aaea28642dde151255c5b4a813158e975a073d | 02715ca6f19fd3c76cefa12de92deeae4ddf9684 | refs/heads/main | 2023-08-27T14:23:04.376095 | 2023-08-27T10:30:37 | 2023-08-27T10:30:37 | 33,146,755 | 7 | 9 | null | 2023-02-16T06:40:35 | 2015-03-30T20:38:00 | Jupyter Notebook | UTF-8 | Python | false | false | 9,388 | py | from typing import Optional
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.expectations.expectation import (
ColumnMapExpectation,
InvalidExpectationConfigurationError,
)
from great_expectations.expectations.util import render_evaluation_parameter... | [
"arceofrancisco@gmail.com"
] | arceofrancisco@gmail.com |
d0ecd64d2fe16d6c50d3a51d49b2fca1bdfdb0cd | e70b6032024b290e2ba11fa5266ef912d9ac14a2 | /crits/comments/urls.py | bdb50ae5c327a6f98d12bcca1f9b041ce9ffffc0 | [
"MIT"
] | permissive | ckane/crits | 105b45c00b6ad85064b8e33ecd12e7474fc84fd6 | e2f2b71927d08e6432a0e540a0f4634da675ce53 | refs/heads/master | 2021-01-17T07:57:01.495393 | 2016-04-11T04:29:35 | 2016-04-11T04:29:35 | 20,622,493 | 2 | 0 | null | 2016-04-11T04:29:36 | 2014-06-08T17:45:07 | JavaScript | UTF-8 | Python | false | false | 558 | py | from django.conf.urls import patterns
urlpatterns = patterns('crits.comments.views',
(r'^remove/(?P<obj_id>\S+)/$', 'remove_comment'),
(r'^(?P<method>\S+)/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', 'add_update_comment'),
(r'^activity/$', 'activity'),
(r'^activity/(?P<atype>\S+)/(?P<value>\S+)/$', 'activity'... | [
"mgoffin@mitre.org"
] | mgoffin@mitre.org |
47e4920a28f934a51aa8f40d0eedcec6b4604984 | 6ce741b4b98fe03f69412b03960c910a2ff3a28a | /util/filter_gff_by_id_list.py | 74765d63c329733e46ee799152af83965045aeb7 | [
"MIT"
] | permissive | MayroseLab/Panoramic | 901aa6529d16c297cbb8f912d76e1a4779b27244 | 06bc8d32b26291f3d1a49612c631ab03e19069d5 | refs/heads/master | 2023-09-04T04:32:49.213165 | 2023-05-30T12:55:14 | 2023-05-30T12:55:14 | 280,074,129 | 5 | 2 | MIT | 2023-09-11T08:08:15 | 2020-07-16T06:35:17 | Python | UTF-8 | Python | false | false | 759 | py | """
Takes a gff3 file and a file with
list of IDs (one per line).
Output is a gff3 file containing
only features with ID or Parent
from the IDs list.
"""
from __future__ import print_function
import sys
in_gff = sys.argv[1]
in_list = sys.argv[2]
out_gff = sys.argv[3]
with open(in_list) as f:
ids_list = set([l.stri... | [
"liorglic@mail.tau.ac.il"
] | liorglic@mail.tau.ac.il |
03d3d6b6062452e771dd0f53277a1ff0b3f6c1e9 | 1df7ba55c4b61772c1a31c503e6b8881f1456dc5 | /untitled9/apps/courses/migrations/0010_auto_20170209_1147.py | dfa9d9ea221e6a9ea9b645c7a86fa3dfcace7f37 | [] | no_license | fzk466569/python-django-pro | 35918756060fcae375d3c99ea1a6934949b6d605 | 9add086b7a910f255df5b192268f1e117057e053 | refs/heads/master | 2021-01-19T13:18:14.141880 | 2017-02-19T12:16:29 | 2017-02-19T12:16:29 | 82,374,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-02-09 11:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0009_auto_20170209_1146'),
]
operations = [
migrations.AlterField... | [
"fzk466569"
] | fzk466569 |
fcc4ddec00b8fd232ecb2e83a530d7159d2dabd7 | 10dc0b7a2369b0443e920482e1b78c3029c0c5b9 | /cbac/core/constants/block_id.py | c2f871ce1c338d1565a27127dcbb38f3489e6aca | [] | no_license | bowiz2/cbac | cb0b3ad73a4cf90bee8bef8e1071ae9975550042 | 8bbb26b2c3bbaa0712b5321d85b9f3834a0016fb | refs/heads/master | 2020-05-22T01:44:33.209676 | 2016-10-22T21:39:52 | 2016-10-22T21:39:52 | 64,747,055 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | """
Holds all the block ids which are used in this program and are provided for the user for easier semantics.
"""
EMPTY_BLOCK = 0
AIR_BLOCK = EMPTY_BLOCK
GLASS_BLOCK = 20
SNOW_BLOCK = 80
REDSTONE_BLOCK = 152
EMERALD_BLOCK = 133
# A block which represents the "true" value.
TRUE_BLOCK = REDSTONE_BLOCK
# A block which re... | [
"sasha@paticon.com"
] | sasha@paticon.com |
756701c21ae76dbd27a2bb855e460547586c29fb | 46cbd0fc047eceb9378a85b4e4db7577cc1597a1 | /primepath_Output_KMP.py | d48b7d978300f87ca2211ecb4e0345e3a6f8fa3d | [] | no_license | chnherb/TestFramework | fa4f0276c22b0ca26cb1473dd6ad0ee19659837f | 08eeb7959039875f162ba4942e3ee1a37722b9ba | refs/heads/master | 2020-12-25T18:42:37.506856 | 2017-06-11T01:59:47 | 2017-06-11T01:59:47 | 93,975,303 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,884 | py | # encoding=utf-8
import copy
import os
import datetime
start = datetime.datetime.now()
#存储图的字典
graph = dict()
#存储简单路径列表的列表
simplePath = []
#存储基本路径列表的列表
primePath =[]
#初始化存储图的字典
def Init(fileName):
path = os.path.dirname(__file__)
filePath = path + "/" + fileName
print filePath
with open(filePath, 'r'... | [
"chnhuangbo@qq.com"
] | chnhuangbo@qq.com |
4787f8c1a8d397cd052ab9ed44de61aa9a2fa98f | 49cd5351b80794ff4b105fcb710e0b1e775fd4ad | /r1.py | a9954aa80dc1f1ae3be39d407077e6a8c4c8195c | [] | no_license | jerryjerry1128/chat_record | 4002d5d553a3024888ccc4ac0b4be4373faabb1e | 0fc9ec09a90148bee523ac197e03b181cb1a7284 | refs/heads/master | 2020-12-05T12:37:40.374994 | 2020-01-06T15:07:46 | 2020-01-06T15:07:46 | 232,112,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | def read_file(filename):
lines = []
with open(filename, 'r', encoding = 'utf-8-sig') as f:
for line in f:
lines.append(line.strip())
return lines
def deal(lines):
new_lines = []
person = None
for i in lines:
if i == 'Allen':
person = 'Allen'
... | [
"jerryjerry1128@gmail.com"
] | jerryjerry1128@gmail.com |
1b6e511387f944e0ce53157aa60363c6551647e9 | 2a4290c36832e7080faa4104d58083c29ed1ea09 | /prepro.py | 244c70dc13f9e7ef94ec033204e0662e264afae7 | [] | no_license | jerryli27/my_dtn | 0380e22fb7892f5d46084339a5edb24c8ed5b8c8 | 54b16f403a480c35d5ae331dbbfd0efed53880b9 | refs/heads/master | 2021-01-19T17:17:19.787195 | 2017-03-05T21:48:06 | 2017-03-05T21:48:06 | 82,433,878 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | """
The cat face data comes from https://sites.google.com/site/catdatacollection/data
"""
import numpy as np
import pickle
from PIL import Image
from tensorflow.examples.tutorials.mnist import input_data
def resize_images(image_arrays, size=[32, 32]):
# convert float type to integer
image_arrays = (image_ar... | [
"jerrylijiaming@gmail.com"
] | jerrylijiaming@gmail.com |
5729710da8412b24b58a410ba0d35abe8f3955da | 5a3f0f5a2ecb625209add36326de3c7dd6835d66 | /aula14_estrutura_dados_compostos.py | e497f3328fc2e6eb65a0495514991e5fd43d48b4 | [] | no_license | rafaelmelorms/pythonlearning | 9eb9854918a5ef604caeb0cacd90a1635c6d1719 | bcac062ff6861fc99bd90d70de606b79f209c31e | refs/heads/master | 2020-04-18T00:49:43.199887 | 2019-02-06T17:50:07 | 2019-02-06T17:50:07 | 167,093,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | #!/usr/bin/python3.6
# -*- coding: utf-8 -*-
#Estruturas De Dados Compostas
'''Podemos incluir contentores em outros contentores para criar estruturas de dados compostas. Por exemplo, este dicionário
mapeia chaves para valores que são também dicionários!'''
elements = {"hydrogen": {"number": 1,
... | [
"noreply@github.com"
] | noreply@github.com |
4a0347b6a790608d42ca0ea829c0fa883189e6ac | f679d27635dcb6174905fb83e296882b4a6a5717 | /recipe_project/recipe_project/apps/recipes/forms.py | 928396a9f90de16204cb60bb79a98ad47bb0243c | [
"MIT"
] | permissive | Mark4nov/recipe-calculator-Django | 3e121a65e55294f631fd98fa064a645a30d11bf4 | d9bb3e4c1c7624d540debd9b2c427e0cc5f4ce78 | refs/heads/main | 2023-08-24T18:10:04.439019 | 2021-10-17T03:27:23 | 2021-10-17T03:27:23 | 410,404,114 | 0 | 0 | MIT | 2021-10-09T16:54:28 | 2021-09-25T23:34:32 | Python | UTF-8 | Python | false | false | 2,203 | py | from django import forms
from django.forms import formset_factory
from .models import Category,Measure,IngPrice
class RecipeForm(forms.Form):
name = forms.CharField(
label="Recipe name",
required=True,
widget=forms.TextInput(
attrs={
'placeholder':"Enter Recipe... | [
"isaacmgonzalezf@gmail.com"
] | isaacmgonzalezf@gmail.com |
adabb28645a4995fcbabba12036c89fd5fe2c9f3 | 9acef30b25d7443c8e989270f072f6eef862242e | /app.py | a3c50a70ffd447c98d50aa05116c2e0d5c63a7b1 | [] | no_license | vamsikrishna777/backend-work | fedbe207e1131638ae16b48275f391e9ca25ff0f | ba703b6e0fc1b4bfd1582f229573658060ce8adc | refs/heads/master | 2021-01-24T04:13:11.240196 | 2018-02-26T08:30:18 | 2018-02-26T08:30:18 | 122,925,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from flask import Flask
from flask import jsonify
app = Flask("application")
print("test")
@app.route("/")
def hello():
return jsonify({"meesage": "test", "flag": True})
if __name__ == '__main__':
app.run(debug=True)
| [
"noreply@github.com"
] | noreply@github.com |
756b6e795e5840322f4ae181d0be8896f45185a5 | 13d5e11e1ab71d4916757a08f196ec7aee08ec61 | /views.py | 31410738bd66d3b1e0f9d9468fb491c0af4cd007 | [] | no_license | ThakkarVedang/Student_face_recognition_Attendance_system | b822dc609f2bcbd426b606b38931cce2a14a187d | 243df003da55f3a79c50decc8272c991dd963d04 | refs/heads/main | 2023-02-22T00:25:53.451699 | 2020-10-07T10:28:48 | 2020-10-07T10:28:48 | 301,985,646 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.shortcuts import render
from django.http import HttpResponse
def home(request):
return render(request,'index.html')
| [
"noreply@github.com"
] | noreply@github.com |
095c6844b796a1aa2773a69bc20447cb7d6c0cd5 | efe67da7ca1092e033fba7b0a251a43d9a165022 | /get_city_from_id/views.py | 5d69da18fd281507a348b06021c952f6c6f4bd2e | [] | no_license | poojapauskar/savmytime-api | 0a019077720ab9ec9bd113379e77f0f4c83ef887 | 2bb48d60fce24888c2d4e4ba3b1da8947242a1fd | refs/heads/master | 2021-01-21T13:29:41.086409 | 2016-05-09T06:38:54 | 2016-05-09T06:38:54 | 54,106,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | from services.models import Services
from category.models import Category
from sub_category.models import Sub_category
from cities.models import Cities
from get_details.serializers import Get_detailsSerializer
from rest_framework import generics
# from ticket.permissions import IsOwnerOrReadOnly
# from rest_framework i... | [
"git.poojapauskar@gmail.com"
] | git.poojapauskar@gmail.com |
61d11aa48b666a4764c451abf39a9062de4b4f97 | 2a0f06dcbdc146151a28d587a96d935c117f6499 | /mendeleev/plotting.py | adf92a1b940a62afd2c754e828de264d6ac936a8 | [
"MIT"
] | permissive | chemmatcars/XModFit | ac2ad8aa5222ba243011a3e445933f061cc3bc6b | abbb091e703cfc3580a39b68070f5b60d3abb86b | refs/heads/main | 2023-08-09T15:18:55.170768 | 2023-07-24T19:30:07 | 2023-07-24T19:30:07 | 390,606,994 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,762 | py | # -*- coding: utf-8 -*-
# The MIT License (MIT)
#
# Copyright (c) 2015 Lukasz Mentel
#
# 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 r... | [
"nayanbera@gmail.com"
] | nayanbera@gmail.com |
4d744aa46c683d2fc853253f6b15ceceb41d8cde | 526a51a55557d60161c86a12505c26aaad7128a3 | /my_txtutils.py | 8c52c7120e388439066db31266743e2c9e103ef5 | [] | no_license | SvenDH/Kickstarter-Project-Generator | 9072427d2c6fb014d4c8908c50ab2d65352c9ab7 | 32e5d70d7d0e821b18c113b7473c9a4c3bd6c697 | refs/heads/master | 2021-06-18T17:18:11.502601 | 2017-06-19T22:09:36 | 2017-06-19T22:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,658 | py | # encoding: UTF-8
# Copyright 2017 Google.com
#
# 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... | [
"denhartog.sven@gmail.com"
] | denhartog.sven@gmail.com |
123d2b1003500f05875c08d4fb2e3d3e3fd1e9d4 | e32f70efd5b79efb9872e6185da6a8982e703f46 | /app/core/migrations/0001_initial.py | 5c266bc11d8a446bd9b021e0a302788716918c5a | [
"MIT"
] | permissive | hmoodallahma/recipe-app-api | 94b52ac51c250a6b250363353e4f82909de5c7ed | 13ea22aca5cc2dd1a4e6ed4860f937e46fd2939b | refs/heads/main | 2023-02-18T18:15:18.962321 | 2021-01-21T18:44:02 | 2021-01-21T18:44:02 | 329,064,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # Generated by Django 3.1.4 on 2021-01-12 19:48
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',
... | [
"hmoodallahma@gmail.com"
] | hmoodallahma@gmail.com |
9f3a95fde642f4bc4a8e5055cbf3f3d67732cfe0 | 1267d0fd636d6ee48de14c4d815761232535992b | /Question1.py | 1cbd6c45a81fe9d13de9033097a9970280e4f936 | [] | no_license | Venu-41/CCTech-SD-Challenge | 6631376c2701579aeb30297e62913e2cbdeec82a | 09c573d3455a50113a437277196b714f4429b6e1 | refs/heads/master | 2022-10-21T21:34:00.039199 | 2020-06-13T10:47:53 | 2020-06-13T10:47:53 | 271,962,748 | 0 | 1 | null | 2020-06-19T14:35:58 | 2020-06-13T07:34:56 | Python | UTF-8 | Python | false | false | 1,499 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 12 06:19:14 2020
CCTech June 2020 Software Developer Hiring Challenge
Question 1:
@author: venu Angirekula
"""
import numpy as np
import matplotlib.pyplot as plt
import numpy.random as ran
#%%
#Inputs
Location = {0:'Outside',1:'inside'}
# Polygon ... | [
"noreply@github.com"
] | noreply@github.com |
14f178cebd12871b2e29d5b54a2c6d71d47622a4 | 3a1bae5b4a49c8f3050f37c3875a5a1dfd6f8316 | /bookzen_flask/bookzen.py | 7c91da763601eb07dd5749b3d1277ba732dc04ae | [] | no_license | meomap/bookzen | 9e86f5d3e63bfbd1e87fae41465115d27ebdd321 | e764dea45c7a5174b728d225ef2aaef3ed09bc9b | refs/heads/master | 2021-01-19T13:25:23.704102 | 2017-02-17T01:52:26 | 2017-02-17T01:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | # -*- coding: iso-8859-15 -*-
import json
from email.header import Header
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.utils import formataddr
import smtplib
from flask import Flask, render_template, redirect, url_for
from flask_mongoengine import MongoEngine
from fla... | [
"tu0703@gmail.com"
] | tu0703@gmail.com |
637c9052ec6cfa09517634c6b68099e9a6470ff8 | 7a8fcae483d18e87481443f4476d56b5180459e6 | /statemachine/registry.py | c1632ebc937664e2f22b410a9f4334a197abc83f | [
"MIT"
] | permissive | Gariagi/python-statemachine | 63c67696f57eeda75054df399999bfe7fb21c783 | 7dddc714752ef56dd9e54fe246c0050f40c0ad2d | refs/heads/develop | 2020-03-09T01:04:15.124145 | 2018-04-29T17:53:36 | 2018-04-29T17:53:36 | 128,504,334 | 0 | 0 | MIT | 2018-04-29T17:53:37 | 2018-04-07T06:56:05 | Python | UTF-8 | Python | false | false | 1,206 | py | # coding: utf-8
_REGISTRY = {}
_initialized = False
def register(cls):
_REGISTRY[cls.__name__] = cls
return cls
def get_machine_cls(name):
init_registry()
return _REGISTRY[name]
def init_registry():
global _initialized
if not _initialized:
load_modules(['statemachine', 'statemachi... | [
"fgmacedo@gmail.com"
] | fgmacedo@gmail.com |
69479e0f47759c70e9f8aa27a050e7007ad98c4b | 6f09d4931c2704d6652bda2c0e212220a3a6820f | /venv/Lib/site-packages/rfxcom/protocol/base.py | 19768a3d194f8e0b80caffd67b6a9d1d23f6c7a6 | [] | no_license | sh-shrey/Django-wwebsite | 3545dc383840241d26f67ae42f0c46f346cc1b1f | aa72569d5005912e7580e8bdfc65a94a2617c500 | refs/heads/master | 2023-08-15T23:08:48.202086 | 2021-09-26T17:52:24 | 2021-09-26T17:52:24 | 410,618,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,193 | py | """
Base Protocol
=============
The base package used to define the domain models for Packets and and Packet
Handlers.
"""
from datetime import datetime
from logging import getLogger
from rfxcom.exceptions import (InvalidPacketLength, UnknownPacketType,
UnknownPacketSubtype, RFXComExc... | [
"shreyashahi202@gmail.com"
] | shreyashahi202@gmail.com |
3737cfb70aa9f11baf71bdf917a212721adc916d | 71825fecdaa2ee2743150d2d3707ea65665dee19 | /homados/homados/contrib/viewsets.py | d9c034f02fcbcd37ae02f2c2a8830aa594fe02fb | [] | no_license | cleanmgr112/MetasploitCoop-Backend | 8adcdd6ee68017b10c97f9d42878dd556572fd84 | ecdc27ec46ed0f25f20c1bfe95632204c821f738 | refs/heads/master | 2023-07-14T20:18:17.017627 | 2021-08-17T10:25:43 | 2021-08-17T10:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | from rest_framework import viewsets, mixins
class ListDestroyViewSet(mixins.DestroyModelMixin,
mixins.ListModelMixin,
viewsets.GenericViewSet):
"""
A viewset that provides default `destroy()` and `list()` actions.
"""
pass
class NoUpdateViewSet(mixin... | [
"akkumans@qq.com"
] | akkumans@qq.com |
27a6da14c114fad8e66be0ff1132b481bbb7693c | b974df58eb68ca69dc7b47ce02cec4d532c9c481 | /tests/test_data_warehouse.py | 09b5bdd5ba486aef15a9d9b04c9c12e4b27ca3e3 | [] | no_license | rodrigombsoares/mec-data | 8202e643a145eb1cc02b8ec5cb9156660df63f5b | 3fcdcd8126b12fbf7ee99b1a17642e2d74ac890c | refs/heads/master | 2021-03-12T05:56:55.207599 | 2020-05-25T15:12:48 | 2020-05-25T15:12:48 | 246,595,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | import os
from unittest import TestCase
from unittest.mock import patch
from mec_data.manage.app import create_app
from mec_data.model.databases import data_warehouse
class TestDataWarehouse(TestCase):
@classmethod
def setUpClass(cls):
cls.test_app = create_app()
# Config Mocked DW
# T... | [
"rodrigombsoares@gmail.com"
] | rodrigombsoares@gmail.com |
3e863d3b5c20041ed3cb6a75a82754a64d3136fd | d279e83427fca9f5c9868e8a7ad1cd8d347e6a28 | /advent2019_day25.py | 31daae4abf8220d3ab9637ffc85ce2a5d328b065 | [
"MIT"
] | permissive | coandco/advent2019 | 8799f3b544bf045be04495fad24815b6f79b0010 | 4e83b6165c32864f0fffd4866ce57b45a0a7f4fc | refs/heads/master | 2020-09-22T07:00:56.504965 | 2019-12-31T19:07:48 | 2019-12-31T19:07:48 | 225,097,080 | 2 | 2 | MIT | 2019-12-28T02:23:21 | 2019-12-01T02:37:42 | Python | UTF-8 | Python | false | false | 636 | py | from utils import read_data
from advent2019_day25_intcode import run_tape_multithreaded
from multiprocessing import Process, Queue
DATA = [int(x) for x in read_data().split(",")]
# Items needed to pass my detector floor:
# - hologram
# - space heater
# - antenna
# - astronaut ice cream
if __name__ == '__main__':
... | [
"coandco@gmail.com"
] | coandco@gmail.com |
e28cb9b5a3e6cdc394d60abc7b8bcbb06008067f | 09d4fd83012e67659146564a28be6f149e5551a6 | /Nivel 1/Semana_3/Clase 2/funtionRandom.py | ea633a3ee9ab2cb84ccd1a1432c56a17a248ac91 | [] | no_license | judmontoyaso/MisionTic2022 | 1196eaf76639be0c49c358c75909f6897f9b7844 | f83bb68a0f22362cdea53813b01db9cf4e1c9dd4 | refs/heads/main | 2023-08-22T19:43:31.537381 | 2021-09-27T17:23:18 | 2021-09-27T17:23:18 | 372,958,071 | 0 | 0 | null | 2021-09-22T18:44:00 | 2021-06-01T20:49:57 | Python | UTF-8 | Python | false | false | 522 | py | import random
def randomNumberFuntion(number):
lisOfRandomNumbers = []
for randomNumber in range(0, number):
lisOfRandomNumbers.append(random.randint(0,10))
return lisOfRandomNumbers
def searchInRandomList(numberToFind, listToSearch):
found = False
for index,element in enumerate(listToSea... | [
"judmontoyaso@unal.edu.co"
] | judmontoyaso@unal.edu.co |
993b3a2064c72aeb239c33e30fa6da4262bdc552 | 8ad0073e812eb3225ba1b29940078eb8442264e0 | /supervised_learning/0x08-deep_cnns/7-densenet121.py | dea93dd7f3ee3e2f2470721a45f3e867c6e91cb6 | [] | no_license | Jimmer942/holbertonschool-machine_learning | 0a6fbee3ce6a6887b33c8125308d66690c55b61e | 87870d1cf7e027982372eca0717cf760cc0ce042 | refs/heads/main | 2023-06-12T08:31:36.582383 | 2021-07-06T02:51:30 | 2021-07-06T02:51:30 | 330,673,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | #!/usr/bin/env python3
"""
a resnet 50 maker
"""
import tensorflow.keras as K
dense_block = __import__('5-dense_block').dense_block
transition_layer = __import__('6-transition_layer').transition_layer
def densenet121(growth_rate=32, compression=1.0):
"""the DenseNet-121 architecture of Densely Connected
Con... | [
"942@holbertonschool.com"
] | 942@holbertonschool.com |
f22823fdb89925933d5914f23110b20e3320803d | 7ea2581ea8bb8a15bb76d3773580283a186abfb9 | /modules/luther/sphinx/video/video.py | 10e39f724c94138fb8b0ebce660f3bbfb6629767 | [] | no_license | PensePython/pensepython | 339c9087388e14114c4070c0d188d70a52031ca6 | 973c41fd28d4d16fa93f805b4d98a94706586344 | refs/heads/master | 2021-01-10T16:06:45.984860 | 2015-11-19T11:37:07 | 2015-11-19T11:37:07 | 46,566,423 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | # Copyright (C) 2011 Bradley N. Miller
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distribute... | [
"hitoshi@macbp.local"
] | hitoshi@macbp.local |
eabfb6342523d63902e2f630ac1700d809d363ff | 819291e5c984c9b662ceffbb23ce69f2c8f9f4a8 | /Training Gate/Kelas Pembelajaran Pemrograman/1. Pemrograman Dasar/08. Analisis Kompleksitas/c-bilangan_agak_prima.py | 425f658b3366cfa6c93abd277cc9e5326f6fa61f | [] | no_license | Alfian285/tlx-solutions | a10415b895b0cce33d9963d4945ea56d03f192b3 | abe1e66dd53e7e4aa2c26169a2fc49fa877f6d60 | refs/heads/master | 2023-04-07T06:38:05.488811 | 2018-07-28T19:26:19 | 2018-07-28T19:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import sys
from math import sqrt, ceil
while True:
n = sys.stdin.readline()
if not n:
break
n = int(n)
for t in range(n):
a = sys.stdin.readline()
a = int(a)
if a == 1:
print('YA')
continue
if a == 2:
print('YA')
c... | [
"gilangmlr@gmail.com"
] | gilangmlr@gmail.com |
42dccab42733761026b2fa6710b24c4b2bed401c | 9e56ae4ec17e43894ea82ddfaef32a5c2a04eaf9 | /inst/python/get_modules.py | f7c82bf2227a3ff991293c5ec2b4921d40ba6baa | [] | no_license | r-spatial/RPyGeo | 65c2ecdcbcd9b3b1c94b330ee4a1c2ab351514a2 | e4348bd695a305c1e57c9f525e2610dbf5808254 | refs/heads/master | 2022-04-14T00:39:27.455967 | 2020-04-05T08:20:52 | 2020-04-05T08:20:52 | 94,976,100 | 20 | 6 | null | 2019-03-07T15:00:37 | 2017-06-21T07:30:55 | R | UTF-8 | Python | false | false | 357 | py | import pkgutil
import re
module = {}
# Get functions from main module
module["main"] = dir(arcpy)
# Get functions from other modules and extensions
for importer, modname, ispkg in pkgutil.iter_modules(arcpy.__path__):
if(re.match('[A-Za-z].*', modname)):
try:
module[modname] = eval('dir(arcpy.' + modname... | [
"marcbecker@posteo.de"
] | marcbecker@posteo.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.