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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
419eb9bae959c6198796833cc3263d0e5f9bbba7 | efe1546fa1f057cbbbe974bd8478309b6176d641 | /waf/build_system_kit/extpy/runme.py | 13d511681ff787c2310ae35bb9572b1f65b75163 | [
"Apache-2.0"
] | permissive | yankee14/reflow-oven-atmega328p | 2df323aba16ac4f3eac446abc633a5d79a1a55cb | e6792143576f13f0a3a49edfd54dbb2ef851d95a | refs/heads/master | 2022-12-02T21:32:39.513878 | 2019-05-30T06:25:12 | 2019-05-30T06:25:12 | 188,760,664 | 0 | 1 | Apache-2.0 | 2022-11-15T18:22:50 | 2019-05-27T02:52:18 | Python | UTF-8 | Python | false | false | 716 | py | #! /usr/bin/env python
# encoding: utf-8
"""
Create a waf file able to read wscript files ending in ".py"
execute a small test to show that it works
The waf file includes "extpy.py" which performs the required modifications
"""
import os, subprocess
up = os.path.dirname
join = os.path.join
cwd = os.getcwd()
extpy ... | [
"yankee14.ed@gmail.com"
] | yankee14.ed@gmail.com |
0808681e06b79d03a13f5c3cc9d25a5416e84eb7 | 36725b6d5af16e1bb6431f401dee76e1d6a68f80 | /homework_06/fill_tables.py | 137df0dbff717f05e6497f05f676c48467cc7d0e | [] | no_license | ivan985/learning | 09c15de7a06e2503694cc6ab740e3da40e51818a | aa92da68906d000bca136ce3cc9022e479aeb2b7 | refs/heads/master | 2021-03-29T10:22:55.060195 | 2020-10-28T14:22:24 | 2020-10-28T14:22:24 | 247,945,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | from homework_06.models import Session, Author, Post
from homework_06.models.texts import text_dict
# заполнение базы данных
def create_users_posts():
session = Session()
author_1 = Author(author='А.И. Тургенев')
session.add(author_1)
author_2 = Author(author='Л.Н. Андреев')
session.ad... | [
"noreply@github.com"
] | ivan985.noreply@github.com |
20dc1cd814e3f45b22a8b8dd0502c5eeef9b00cd | 232fb4da8a69088ce7df987992ed7d9db175c97f | /SW_academy/Intermediate/01.List1_summary.py | 64c0b7ee23167c2f21f6a4f0995c2b1e43cb30cb | [] | no_license | miniii222/Algorithm_Study | 2d23b955340fb851d8030a91c0205101d71ff366 | 71e46ecd3b607b30734d99b0f56016c6c9c66acc | refs/heads/master | 2020-04-10T08:34:57.984730 | 2019-10-28T12:41:36 | 2019-10-28T12:41:36 | 160,909,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | # -*- coding: utf-8 -*-
# Exhaustive Search - 모든 경우를 탐색. 속도는 느리지만 틀리지 않음
## 1,2,3을 포함하는 모든 순열을 생성하는 코드
for i1 in range(1,4) :
for i2 in range(1,4) :
if i2 != i1 :
for i3 in range(1,4) :
if i3 != i1 and i3 != i2 :
print(i1, i2, i3)
# Greedy Alg... | [
"noreply@github.com"
] | miniii222.noreply@github.com |
e1b94d3981a5d64c9f55976f5877cadf98be2286 | f230cb90c20400eb3ba99282da265f8ec9dcf913 | /main.py | b0ef89a877bd48b67c607b2e4c6b95249287a219 | [] | no_license | OrionApplePie/tec_analysis | a36058fa1a197c0199ddaca32556149a68c11c0d | 1fb7eb33338fe61a244a02bbf8975f553246b68a | refs/heads/master | 2023-05-06T04:07:31.218461 | 2021-05-20T03:10:50 | 2021-05-20T03:26:41 | 352,912,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | import argparse
import errno
import os
from pathlib import Path
import pandas as pd
# Параметры которые нужны
NEEDED_PARAMETERS = (
"hmax",
"FiltWindow",
"Time Range",
"Minimum duration of series",
"time step"
)
def get_params(filename=""):
"""Функция для сбора параметров из файла .dat
и... | [
"alexander.s.ten@yandex.ru"
] | alexander.s.ten@yandex.ru |
689c76e4cb927a279338046a277abb8d87d3326c | 9d74705bb064cb75d3e02c2222a6e0ad62c1909a | /python/1_two_sum/sum.py | 04e175291a23d9ef9149ad29067bcb3c41fe673b | [] | no_license | caoxin1988/leetcode | 7efcd5fb156c644c2ea84038aba8c672c73d6d23 | 22be1c1904e247bb3a248c87284c650e68ddb328 | refs/heads/master | 2020-04-01T19:40:12.119223 | 2019-02-21T14:33:06 | 2019-02-21T14:33:06 | 153,565,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | class Solution:
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
d = {}
for i in range(len(nums)):
d[nums[i]] = i
for i in range(len(nums)):
data1 = nums[i]
... | [
"caoxin1988s@gmail.com"
] | caoxin1988s@gmail.com |
72564fd3a93db7e844c4f2063124a0ab78d8810b | 0de720edab2c0dc52e5940ef77c3956d186c9cdf | /pyzipcode/pyzipcode.py | 1b71ec461f62e53e30f9656bb2d820f8162495b6 | [
"MIT",
"Python-2.0"
] | permissive | ankur09/pyzipcode-cli | 5febbf325d31ee17442b2746a85186009a955b4b | bd3cd1008fe9ef44fd632e1aab20b7b7d9b12198 | refs/heads/master | 2021-01-19T07:15:17.728056 | 2016-04-08T20:15:27 | 2016-04-08T20:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import json
__version__ = '0.1.3'
__author__ = "Tasdik Rahman"
class Pyzipcode(object):
BASE_URL_ZIPTASTIC_API = 'http://zip.getziptastic.com/v2/{code}/{pin}'
BASE_URL_GOOGLE_API = 'http://maps.googleapis.com/maps/api/geocode/json?address={pin}... | [
"tasdik95@gmail.com"
] | tasdik95@gmail.com |
c1de6af02db7e340e15418e1cabcb0d12c2f6d29 | b584b389adf9b74b612d99e841a1b3bcb0c44171 | /spring2017/hw3/submission/dqn.py | 7554bb329bd88df945d50f740845bc5b58792b5a | [] | no_license | prasannakumar2012/deep_reinforcement_learning | add06e01cf88698f7b4959f8f2fec24faf05f022 | 37e299017d2481de6471fa366426b2e9152ea531 | refs/heads/master | 2021-05-14T04:44:03.482266 | 2019-01-08T04:33:19 | 2019-01-08T04:33:19 | 116,651,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,290 | py | import sys
import gym.spaces
import itertools
import numpy as np
import random
import tensorflow as tf
import tensorflow.contrib.layers as layers
from collections import namedtuple
from dqn_utils import *
import pickle
OptimizerSpec = namedtuple("OptimizerSpec", ["constructor", "kwargs", "lr_schedule"])... | [
"prasannakumar2012@gmail.com"
] | prasannakumar2012@gmail.com |
f8b6e8b882f5111b756f94c4418c914092c1c939 | ef2d31ec0634c469310774d112669789c10cd859 | /day04/test5.py | c7c853d9ee3e83f659bdc9fba3214b2c0a181a91 | [] | no_license | susan025/myproj01 | c8cb38c7c6d26944ec0ad7ff59f9816a6c73af93 | e2d43f9b9204f386343b06337787ae26075474ab | refs/heads/master | 2020-04-29T06:44:57.537851 | 2019-03-16T05:17:41 | 2019-03-16T05:17:41 | 175,928,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | # 对一字符串进行翻转操作
def myStr():
str = "nameisgod"
mlist = []
for i in str:
mlist.append(i)
print(mlist)
mlist.reverse()
print(mlist)
mstr = ""
for j in mlist:
mstr += j
print(mstr)
# 创建一个列表,存储公司10个名单,对这些名单进行排序,要求按姓名的字符多少来排
def compName():
clist = ["john","susan","... | [
"542711570@qq.com"
] | 542711570@qq.com |
2733e95a1dfb9747f95994652fd61c54f3b53b49 | 43eb4b71987a11905dfacfd684c20247f171b689 | /solution/141/answer.py | 4171aeceb61b530d7ab9cdc36752b6cc1f2e135c | [] | no_license | youjiajia/learn-leetcode | a44cd994df1f103cd284e561ac82580739dcdeaa | f87b018f7abcdc6e7ae7532810688f9a9d8cbb41 | refs/heads/master | 2021-09-14T23:39:26.459338 | 2018-05-22T12:11:13 | 2018-05-22T12:11:13 | 104,706,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
def printval(self):
print self.val
class Solution(object):
def hasCycle(self, head):
fastindex = head
slowindex = head
while fastindex and slowindex:
fastindex = fastind... | [
"jasonyou.info@gmail.com"
] | jasonyou.info@gmail.com |
a40bc1b5b7298acf3dc92a84ffab6f60e8a25e03 | d4d9338389252eaa2ce58c4f3ae953b4239b1e8f | /week5_7.py | 60044e7fdfbbe24f81d54171c5564484da8d0413 | [] | no_license | Sokiryanskaya/learn_python | 7081149ceeb0570a6f4e83bf1ffbf21a682ec6ad | f6308e5f1afc15c74fea48a05ddda97f93d9d61c | refs/heads/master | 2021-05-14T08:33:05.233204 | 2018-01-05T18:36:25 | 2018-01-05T18:36:25 | 116,301,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | for i in range(10, 100):
if i == 2 * (i // 10) * (i % 10):
print(i)
| [
"sokiryanskaya@gmail.com"
] | sokiryanskaya@gmail.com |
7fb5fe40e39e71f3445a4c13335e48e4814501df | e3f7ef69e0869a089dde133d2655d213429dcaa6 | /master/app_url.py | e0b432c1b9ebc9193a631cdefef62587cfeaabb2 | [] | no_license | Chunshan-Theta/worker-sample | cdb66e5f9e9e455cba9d092690f53c4a10f82470 | df92e99cf26d69526f946f4ae24b81e261cabeab | refs/heads/master | 2023-08-11T09:30:23.077020 | 2021-10-04T09:03:28 | 2021-10-04T09:03:28 | 413,346,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import os
import tornado.web
from tornado_swagger.setup import setup_swagger
from handler.api.query.testHandler import testHandler
# jaeger
# from jaeger_client import Config
# import tornado_opentracing
# def init_jaeger_tracer(service_name):
# config = Config(
# config={ # usually read from some yaml ... | [
"gavin19950511@gmail.com"
] | gavin19950511@gmail.com |
e9fab81e0de067d36417344ae4412685aa624ed5 | 7edcf3ccddc42c82ec71409cbf4df6e2aa3512c1 | /backend/medicar/medicos/serializers.py | cb1306af30b0a7228c9f38d4e690480b9953a737 | [] | no_license | FabriciaDiniz/desafio-drf | 5b3d097c42aec26783aff540e04270b6a077b47d | ce1ad4bcfb1a549114b1e073f67cccdcbf27c6e0 | refs/heads/master | 2023-08-11T00:49:52.209838 | 2021-07-10T14:46:14 | 2021-07-10T14:46:14 | 246,699,845 | 1 | 0 | null | 2021-09-22T18:47:49 | 2020-03-11T23:22:42 | Python | UTF-8 | Python | false | false | 351 | py | from rest_framework import serializers
from medicar.medicos.models import Medico
from medicar.especialidades.serializers import EspecialidadeSerializer
class MedicoSerializer(serializers.ModelSerializer):
especialidade = EspecialidadeSerializer()
class Meta:
model = Medico
fields = ['id', '... | [
"afabriciadiniz@gmail.com"
] | afabriciadiniz@gmail.com |
9b60afbff6906ef3ee3df2f31b5bc23cea3cf2c5 | 04e080a00f37a3501c5060380d65c5a6cd669d90 | /thonnycontrib/m5stack/esp32_api_stubs/flashbdev.py | 58a2c79a1bb97df766a35f8c9f2d127bf84ae80a | [
"MIT"
] | permissive | thonny/thonny-m5stack | 473a2876e72b88d283d8b9d64189028ef7fea111 | a502579ad5e264342ae0bc2c554c78527053693b | refs/heads/master | 2020-04-20T14:57:15.605699 | 2019-11-18T22:28:36 | 2019-11-18T22:28:36 | 168,914,658 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py |
class FlashBdev:
''
SEC_SIZE = 4096
START_SEC = 512
def ioctl():
pass
def readblocks():
pass
def writeblocks():
pass
bdev = None
esp = None
size = 4194304
| [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
b578e28f68973854aaec311d53c36343622ad11e | 7a3e0fa361b97c87229bf12ecaaf6c187cf2115f | /run_all_case.py | a1fd9bb90aaed07ec0fc71e058cf5da315f2a3fc | [] | no_license | wing1king/test_app_api | fac36ff9e72b74d3ad182f35cacea9920c77e79b | 7c11763edbac545c30dec3e46c1f1777f7318cdd | refs/heads/master | 2020-04-25T22:25:01.423592 | 2019-03-19T06:33:30 | 2019-03-19T06:33:30 | 173,079,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import sys
import time
import unittest
from imp import reload
from HTMLTestRunner import HTMLTestRunner
reload(sys)
# 定义测试用例的目录为当前目录
test_dir = 'E:\\test_api\\test_case'
discover = unittest.defaultTestLoader.discover(test_dir, pattern="test*.py")
if __name__ == "__main__":
# 按照一定的格式获取当前的时间
now = time.strftim... | [
"zhang4475153@126.com"
] | zhang4475153@126.com |
08c3401e154025c6a50d54dee15177148e7f3139 | d66993b0383ee7a97c9d5fe761269a3cb8e67e22 | /Ejercicios/Tupla.py | 8757b1345bab5aa430ee8da723ecea3804a04e16 | [] | no_license | rramosaveros/CursoPythonCisco | 09828e3d8190490c0dc30861ae241f5222e108d6 | 1508e67873adfcf31b8c78d3f5cb2a0572dfeb1c | refs/heads/master | 2023-06-27T12:07:52.652780 | 2021-08-01T14:19:19 | 2021-08-01T14:19:19 | 391,647,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | miTupla = (1, 10, 100, 1000)
print(miTupla[0])
print(miTupla[-1])
print(miTupla[1:])
print(miTupla[:-2])
for elem in miTupla:
print(elem) | [
"ramoslenin32@gmail.com"
] | ramoslenin32@gmail.com |
6bedb5a9d61f5d22a8e0acab5e5d79d7a4cc82ee | b76211ae410ba39c641f55d4ae756473ea93aa27 | /posts/migrations/0007_post_category.py | 4befa64eb9ae739b4391b1cc5a6d8bc866fb2fe4 | [] | no_license | mabutotalent/tah_cms | ebfabbbbe6ee490a7f2e84408b5889a67f13b71e | 886b16b84f147cbc09f83bbeb4ad464394a08b62 | refs/heads/master | 2022-12-28T18:58:08.224622 | 2020-10-10T19:08:43 | 2020-10-10T19:08:43 | 302,965,633 | 0 | 0 | null | 2020-10-10T19:08:44 | 2020-10-10T18:28:46 | JavaScript | UTF-8 | Python | false | false | 544 | py | # Generated by Django 3.1 on 2020-09-07 23:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('categories', '0001_initial'),
('posts', '0006_auto_20200907_1041'),
]
operations = [
mi... | [
"noreply@github.com"
] | mabutotalent.noreply@github.com |
fe40a6666372cb5bcf915e200311decfb99c1142 | 31f2493364589800ef2b821ee6b121f3b22d1b34 | /Assignment4/view.py | 71b32ed4204eb2120399c3689c02c3af15938be9 | [] | no_license | Kskulski/Software-Engineering | 89ab78eb7ba6c0f386009ae085fc6c57bceb05e4 | 7e71da9b3bd326daca97085d8654c433d2a68c49 | refs/heads/master | 2020-09-09T05:52:42.756023 | 2019-12-08T22:47:10 | 2019-12-08T22:47:10 | 221,366,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | import tkinter as Tk
class View():
'''View in the MVC pattern assumes role of rendering user
interface to the user, and maintaining an up to date view as
it handles user interaction it receives from Controller.
'''
def _add_numbers_keypad(self, frame):
# calculator display
self.dis... | [
"kevinpskulski@lewisu.edu"
] | kevinpskulski@lewisu.edu |
7d3509680519445f4111b9208c32d64a387c8b62 | 811576ca7dfadafee7f187854b8c3c62df533ca0 | /scripts/PrefixScanSVG/steps-to-svg.py | ec036d241249d92860d485ed29ffd8344df331b6 | [
"Apache-2.0"
] | permissive | s-ueno/Insights | 84a33253c9c44c299ffaac68d77d5b7e074e8f8e | 3d72a80ee26b08da7114c3526a97fc3c27efa14e | refs/heads/main | 2023-08-13T15:36:15.828432 | 2021-09-27T21:44:59 | 2021-09-27T21:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,344 | py | import json
from graphviz import Digraph
def remove_prefix(prefix, value):
if len(prefix) == 0 or len(prefix) == len(value):
return value
if not value.startswith(prefix):
raise "{value} does not start with {prefix}".format(value, prefix)
suffix = value[len(prefix):]
if len(suffix)... | [
"joel.verhagen@gmail.com"
] | joel.verhagen@gmail.com |
a7cd83c394ab81e6d72c0af8cf0570e883c36b37 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/ZhimaMerchantContractOnofferQueryResponse.py | 2a52ac0db39df098f3235a07b7272a0fd3afd509 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 9,906 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class ZhimaMerchantContractOnofferQueryResponse(AlipayResponse):
def __init__(self):
super(ZhimaMerchantContractOnofferQueryResponse, self).__init__()
self._cancel_operator... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
40dbde0013cb65e7a43ae769c10ad23ad832acc2 | 9897526c0a108f1d0d423ca7290286de3ed85727 | /parser_django/breuninger_shop/models.py | 742d1d8ba624d092e122c2bf747548eed1556d94 | [] | no_license | NedelkoA/shop_parser | faf7064ede5612748664beea6fb8bd75b1f3682a | 0d0c7cb7e924d6cb5c999cdc82a392f6171010a8 | refs/heads/master | 2020-03-25T08:34:12.928353 | 2018-08-10T15:43:22 | 2018-08-10T15:43:22 | 143,620,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from django.db import models
class ItemModel(models.Model):
name = models.CharField(max_length=60)
brand = models.CharField(max_length=60)
price = models.FloatField()
description = models.TextField()
size = models.TextField(null=True)
currency = models.CharField(max_length=4, null=True)
im... | [
"nedartem@mail.ru"
] | nedartem@mail.ru |
f3536713520f35a420c9733cf76fdefc9270f359 | d9d44028fe7fdc5c5d8a9cf8af423b1bb46ebff0 | /data_api/api/tests.py | cb85397057f2a4945b2bdda92c1b8b01d10556f7 | [] | no_license | xkmato/data_api | b19f7d19706bd354740d960be66038d36106676d | 732c1c147a8346e22b744699d3ce449e3c5a70f2 | refs/heads/master | 2023-01-03T03:51:18.764841 | 2016-09-22T09:54:25 | 2016-09-22T09:54:25 | 40,356,292 | 0 | 1 | null | 2022-12-26T19:50:57 | 2015-08-07T11:01:15 | Python | UTF-8 | Python | false | false | 6,237 | py | from datetime import datetime
from django.utils import unittest
from data_api.api.models import Org, Urn, Group, Contact, Broadcast, Campaign, Flow, Event, Label, Message, Run, \
Boundary, Result
__author__ = 'kenneth'
class FakeTemba(object):
__dict__ = {}
def __init__(self, **kwargs):
for k, v... | [
"kbonky@gmail.com"
] | kbonky@gmail.com |
29f41c2d015defff1c1e2476495e93db48b05ffd | 53d030c44cff0a7da956f406c434fe1b2a00589a | /token_preds_evaluate.py | d3880daa0b39fd139eaaf195521d5a13ed39ef9f | [] | no_license | bujol12/bert-seq-interpretability | ef68716f69482cac334679867849618f1eb53bc2 | eed39dceff3560ea3311bc2540671783414e3cce | refs/heads/master | 2023-05-11T07:15:23.339979 | 2021-06-06T12:42:07 | 2021-06-06T12:42:34 | 294,078,771 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,668 | py | import sys
import os
from utils.tsv_dataset import (
TSVClassificationDataset,
Split,
get_labels,
compute_seq_classification_metrics,
)
from utils.arguments import datasets, DataTrainingArguments, ModelArguments
from sklearn.metrics import average_precision_score
import logging
from math import sqrt
... | [
"kamil.bujel19@imperial.ac.uk"
] | kamil.bujel19@imperial.ac.uk |
320808f49265a4c45a70b217ea9fb74e72f5643f | 3465b5932ef610742ea75e4b7935ef8b2bd0c84a | /Programmers_Spicier.py | 041e713c299f068de4f84d8c15de7b793c57e3a3 | [] | no_license | taehopark0/algorithm_study | 25f4c4b9b5b3622ef38314d883b19e0c930f0855 | 8485234db6b0f93e99abe29124a4f9c5bcbfd36f | refs/heads/main | 2023-07-08T18:23:01.759851 | 2021-08-03T14:46:40 | 2021-08-03T14:46:40 | 363,688,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | #매운 것을 좋아하는 Leo는 모든 음식의 스코빌 지수를 K 이상으로 만들고 싶습니다.
#모든 음식의 스코빌 지수를 K 이상으로 만들기 위해 Leo는 스코빌 지수가 가장 낮은 두 개의 음식을 아래와 같이 특별한 방법으로 섞어 새로운 음식을 만듭니다.
#섞은 음식의 스코빌 지수 = 가장 맵지 않은 음식의 스코빌 지수 + (두 번째로 맵지 않은 음식의 스코빌 지수 * 2)
#Leo는 모든 음식의 스코빌 지수가 K 이상이 될 때까지 반복하여 섞습니다.
#Leo가 가진 음식의 스코빌 지수를 담은 배열 scoville과 원하는 스코빌 지수 K가 주어질 때,
#모든 음식의 스코... | [
"taehojj@gmail.com"
] | taehojj@gmail.com |
395f94d1dc84e406686d748d046cf456b3ed5e25 | 70d5cfec4410f4d90d87988aa5c935387c7df32a | /depth4.py | a3793fbd1a753f46fbe5ee086907b595a2038292 | [] | no_license | csd-robocon-nitk/Robocon-2020 | 6c190961a8502d4d7f626b7e2657b9145cae8512 | 09a10f655137cfbf2d89883098561d96441c16ec | refs/heads/master | 2022-04-09T08:08:46.674327 | 2020-02-18T18:51:02 | 2020-02-18T18:51:02 | 219,488,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | import pygame
import numpy as np
import sys
import cv2 as cv
from freenect import sync_get_depth as get_depth
def make_gamma():
"""
Create a gamma table
"""
num_pix = 2048 # there's 2048 different possible depth values
npf = float(num_pix)
_gamma = np.empty((num_pix, 3), dtype=np.uint16)
f... | [
"noreply@github.com"
] | csd-robocon-nitk.noreply@github.com |
60cea08e118b99d3f6c68406ec0b5024aed7ff9f | a8dcbfc5986747eb56c26b4157481849a55359b3 | /component/io/mspa_io.py | d1211d6efb9465ac30813611b5328e094bf4a26e | [
"MIT"
] | permissive | dfguerrerom/gwb | 39c2c0163aeceea14d55421b2c9958c210fa839e | 162f7e1a885945814c584a188e78d571a32a9d80 | refs/heads/master | 2023-04-19T21:06:54.497659 | 2021-05-19T19:30:24 | 2021-05-19T19:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | import json
from .gwb_io import GWBIo
from component import parameter as cp
class MspaIo(GWBIo):
def __init__(self):
# the init file
self.file = None
# all the bytes values
self.background = []
self.foreground = []
# the process
... | [
"pierrick.rambaud49@gmail.com"
] | pierrick.rambaud49@gmail.com |
769d8d41af18f2039f539e85f24c3803bc0ea6d4 | 1e74c6b35a4cf9d9b56a7172433c532abd3e5955 | /LFs/__init__.py | d506dde046d84ed649de970d5fef5de11507bdb2 | [] | no_license | dsteam2021/snorkel_app | fbc9ddce7562953fdcc090cda4e76ef5f351b717 | 2dec23a9bb3064720216752edc35f222fcb50ffb | refs/heads/master | 2023-07-15T10:55:42.821224 | 2021-08-27T04:34:08 | 2021-08-27T04:34:08 | 393,338,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | import os
import regex as re
import numpy as np
import pandas as pd
from unidecode import unidecode
from snorkel.labeling.apply.dask import PandasParallelLFApplier
from snorkel.labeling import labeling_function, PandasLFApplier, LFAnalysis
from snorkel.analysis import get_label_buckets
lfs = []
# n0_bat_dong_san.py... | [
"tranhuuhuy297@gmail.com"
] | tranhuuhuy297@gmail.com |
a3f5430553d660e901a3ca13a353ab5b2be852d6 | 422dd5d3c48a608b093cbfa92085e95a105a5752 | /students/stefanjp1/lesson06/calculator/divider.py | 98c8637ce4e5f4c2efa63587991b974a17b30611 | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018 | a2052fdecd187d7dd6dbe6f1387b4f7341623e93 | b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1 | refs/heads/master | 2021-06-07T09:06:21.100330 | 2019-11-08T23:42:42 | 2019-11-08T23:42:42 | 130,731,872 | 4 | 70 | null | 2021-06-01T22:29:19 | 2018-04-23T17:24:22 | Python | UTF-8 | Python | false | false | 229 | py | '''
Module to provide division functionality
'''
class Divider(object):
''' Division Operator Class '''
@staticmethod
def calc(operand_1, operand_2):
''' return a / b '''
return operand_1/operand_2
| [
"stefanjp@gmail.com"
] | stefanjp@gmail.com |
20c499deff02d5afe014d4e8b4070e7cd1c9e86f | cac359ca1bc562ea58cfcc9550b9c5317567b028 | /src/posts/forms.py | 4bfa8f7ebb5aa4c8b729c7e68abbaff64f00794b | [] | no_license | Ekluv/Social-Media-WebApp-Django | 1b8f17ade1c55b191cf249470451326904fb9124 | 1194a8fd013d1e832ef02be7a24a6074fbbde210 | refs/heads/master | 2021-01-10T17:07:40.569535 | 2015-12-12T07:53:54 | 2015-12-12T07:54:09 | 47,636,962 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from django import forms
from django.contrib.auth.models import User
from .models import Post,Like
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['title']
def clean_title(self):
title = self.cleaned_data.get('title')
return title
class LikeForm(forms.ModelForm):
class Meta:
model ... | [
"ekluv@live.com"
] | ekluv@live.com |
e7b7e896cef558deb4016b44df60bcae04522288 | f66faf8003b73157b45e96cceffa9036bfb9bfc3 | /chapter1/transposingVector.py | 8f07fb43d041f30efccc128bc8e0b4fb1e33e4bc | [] | no_license | anupkumarsahu/Machine_Learning_with_python_cookbook | eb5db923c005bf991143cfb8071077ebc676be90 | 1c67325280aa324b599941fefdaf82203caf8538 | refs/heads/master | 2020-03-22T10:07:14.635555 | 2018-08-02T17:16:21 | 2018-08-02T17:16:21 | 139,879,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # Load library
import numpy as np
# Create matrix
matrix = np.array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
# Transpose matrix
print(matrix.T)
# Transpose vector
print(np.array([1, 2, 3, 4, 5, 6]).T) | [
"anup-kumar.sahu@hpe.com"
] | anup-kumar.sahu@hpe.com |
0c3524ccd8f2582c4b9f9d5dac08f4c41406858a | cfee610219adff6e997893a760252b7a9b1a3b00 | /fac_staff.py | 6f33763e8674badd86424544ab815210d5f5d982 | [] | no_license | elylib/patron_uploads | 8c2a98e23633920dc534208b23b4a7a2e9292a07 | 2f0c4bcd5213731b1bcc2f8739abee4274709148 | refs/heads/master | 2020-03-28T14:48:21.605055 | 2018-09-14T18:17:12 | 2018-09-14T18:17:12 | 148,524,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | """
We get Faculty/Staff data from payroll to load into Worldshare Management Services.
Currently this file comes from Melissa Cody.
This code reads that file and transforms the data into the format WMS expects.
It also constructs university IDs and let's the user know if any conflicts exist,
i.e. John Smith and Jane... | [
"hill.charles2@gmail.com"
] | hill.charles2@gmail.com |
9bffa2243c34caecd45580e6277415e8e49a06d4 | a57a7604bf34f1d6bda29f797c275a441d2192f9 | /request.py | 0aa60f48cf20f557db5814b3fd52d477757a5538 | [] | no_license | ibaguio/magpy | 289ad063278124b3ccef3ed5af238fa59d28e258 | f34f6ead7f1415e001ea3a902d7e969f06f9ecbb | refs/heads/master | 2020-03-11T07:48:59.924728 | 2018-04-17T07:52:19 | 2018-04-17T07:52:19 | 129,867,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | import os
import json
import logging
import requests
SANDBOX_URL = 'https://sandbox.api.magpie.im/v1'
PRODUCTION_URL = 'https://api.magpie.im/v1'
class MagpieRequest(object):
def __init__(self, is_sandbox=False, **kwargs):
self.is_sandbox = is_sandbox
self.pk = os.environ.get('MAGPIE_PUBLIC_KEY'... | [
"baguio.ivan@gmail.com"
] | baguio.ivan@gmail.com |
d358b439bce6a1153439fe7b5d3a260db780a5ed | e7ff78f98fb4fc8a61df797a1904ba800d8b812b | /day7/gameProcessor.py | 6f18a1545f7fe89bf4117a4f099430700b306163 | [] | no_license | EvanFCMoses/adventofcode2020 | 13e6f0d6a552f12d9c177713db23bc327eff2e0b | 25f9dcd0011d49320b2d3f06b1ab9a8506ce0ab4 | refs/heads/master | 2023-01-22T12:00:18.505814 | 2020-12-10T01:30:29 | 2020-12-10T01:30:29 | 318,029,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py |
class GameProcessor:
def __init__(self):
self.instructions = self.readInstructions('input.txt')
self.accumulator = 0
def readInstructions(self, fileName):
file = open(fileName, 'r')
array = []
for row in file:
array.append(Instruction(row))
return array
def executeInstruction(self, position):
... | [
"evanfcmoses@gmail.com"
] | evanfcmoses@gmail.com |
0e6bcee8fa2cbf16435bd7c5031d1e777fb2bd60 | b8849355e1b4adabc6054477ec087745fd979c6d | /tools/DokuWatch/setup.py | 764eedc80caf78e4e8e0f7a1913b777858c21dc5 | [] | no_license | LittleBuster/DokuMail | 85a4a558f1a4b4fa2b6eedba48d6e466f709b8df | 574d4ebf3b2ea77b9b874c640bf463ab20533974 | refs/heads/master | 2021-01-24T06:07:23.082725 | 2015-05-08T13:52:12 | 2015-05-08T13:52:12 | 21,331,417 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'linux':
base = 'Console'
setup(name = 'DokuMail',
version = '0.0.1',
executables = [Executable('main.py', base=base)],
options = {'build_exe': {'includes': ['sip']}})
| [
"denisov172@gmail.com"
] | denisov172@gmail.com |
f6be638237f9d4aeddf2bd844e81bbe67ff1f719 | 5f89f95fabb7a9d41d023ac1e7451fbf74c57c15 | /Fonctionnels/Générateurs et Itérateurs/generateur_close() (5).py | 54c2a50edabfe3c2aca3e939f6f211f465ca4e9c | [] | no_license | MINCARELLI13/Fonctionnels | 4ed5f439dae3032d5941eb0a61706ca472dd6a3c | d074c56bac0beebd118c525777e53be7035fd09a | refs/heads/master | 2023-03-08T21:43:02.290575 | 2021-02-28T21:49:38 | 2021-02-28T21:49:38 | 343,183,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | #!/usr/bin/env python
print()
def generateur(debut, fin):
count = debut
while count < fin:
yield count
count += 1
intervalle = generateur(5, 20) # on crée le générateur "intervalle"
for element in intervalle:
print(element, end=" ")
if element >= 17:
interva... | [
"sancho.poncho@laposte.net"
] | sancho.poncho@laposte.net |
f2cb6896b36c104fa99aebec1b5b6f318daaeca3 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/network/azure-mgmt-dns/generated_samples/delete_ptr_recordset.py | 8e4ce27f33bed7dfe65428aac9d804dfa85506a6 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,566 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
994d32bf85b9f805c0e419fe5ccaa4d5e1bfce35 | 439d2d30b61514bd6a9072c175b124c63f124834 | /data_statistics/base/index.py | e42fe210e0b49d548bb2b143113f01362df60b73 | [] | no_license | meteor-gogogo/python | 6f92e3a680c653f92a8d9b04a2d09be6d6ea126a | 7d03e2f57d4dfb7c7aeb15bf836a6e0d4af9b89d | refs/heads/master | 2022-12-10T07:45:31.085951 | 2019-09-04T06:01:50 | 2019-09-04T06:01:50 | 197,333,904 | 0 | 1 | null | 2022-12-08T05:19:07 | 2019-07-17T07:01:55 | Python | UTF-8 | Python | false | false | 190 | py | #!/usr/bin/env python
# coding=utf-8
from .baselist import BaseList
class IndexList(BaseList):
@classmethod
def is_registrar_for(cls, listtype):
return listtype == 'index'
| [
"liuhang@aplum.com.cn"
] | liuhang@aplum.com.cn |
af55d24daf0a5c4aebe8237d7030069a16e8052d | 01548099ec20976d31cca7a720102c11c56fc9be | /scripts/handle_request.py | d1e6caf1c8ee8b338b8fd6985490f517befa6a56 | [] | no_license | OMEN001/Lemon_Api_Test | 6a27a9a9ccf28623006b465a107d53b17ad30404 | 373c9f1a1f1f3160bbe8edcc4b5740f9779947ae | refs/heads/master | 2023-02-25T22:31:39.824908 | 2021-01-24T14:22:52 | 2021-01-24T14:22:52 | 329,324,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | # -*- coding: utf-8 -*-
# @Time : BaLiang
# @Author : 86187
import requests
import json
class HandleRequest:
"""
如果是session会话认证requests请求不能模仿浏览器维护cookie,创建session会话对象可以解决这一问题
"""
def __init__(self):
# 创建回话对象,通过回话对象向服务器发起请求
self.one_session = requests.Session()
# 添加请求头
def add_... | [
"1668317403@qq.com"
] | 1668317403@qq.com |
a6c44e285c3f0befd0a72c4a0e406c390f91eb8b | 27e4de1b3c2693c9dc6de4dca2db5d9f8f569ec2 | /Interfaces/AI/Inventory.py | ee072e20a3508a6f4a70f27ac98541befdde4edb | [] | no_license | Ipukema/PokeStats | 2d2becf48af285cbae1ed5e054c2ff5bc3ad08a5 | 727ca7b72dcadc6c15f2afd51459312181a6fd2a | refs/heads/master | 2021-01-22T15:01:12.892842 | 2016-08-05T10:35:51 | 2016-08-05T10:35:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,183 | py | # -*- coding: utf-8 -*-
import logging
from enum import Enum
log = logging.getLogger(__name__)
class InventoryItem(Enum):
ITEM_UNKNOWN = 0
ITEM_POKE_BALL = 1
ITEM_GREAT_BALL = 2
ITEM_ULTRA_BALL = 3
ITEM_MASTER_BALL = 4
ITEM_POTION = 101
ITEM_SUPER_POTION = 102
ITEM_HYPER_POTION = 103
... | [
"viktor@tatarnikov.org"
] | viktor@tatarnikov.org |
38737226b6765f186c820e52fbc945e19418cc57 | 06f14e666306a99daa7fa0b3fb5ea1487521c2ad | /Project UAS/PyGame/CodeMentah.py | 362c423043cd3f92ff6564b5e240edcd3bbec819 | [] | no_license | iluljr/CatatanPBO | 58d193d13da89b9aa46eb6b8a0e0dbba261628da | d9933a49369ff56ac3067631a6ef027e7036ce23 | refs/heads/master | 2020-04-02T04:54:00.881756 | 2018-12-22T13:35:17 | 2018-12-22T13:35:17 | 154,041,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,579 | py | import pygame
# Global constants
# Colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
# Screen dimensions
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
class Player(pygame.sprite.Sprite):
""" This class represents the bar at the bottom that ... | [
"noreply@github.com"
] | iluljr.noreply@github.com |
ea2054eb337966fb0493a467059ba157e75ea7e1 | cc2ddb1220f185658b58e7ac705b794576e1ecc1 | /avantTrainee/src/test3/scripts/listener.py | ff613dde8a2e0d5bfd22ca431a723963f05cd4a5 | [] | no_license | BielLopes/myROSTeaching | cfc23c2986bf4fe162720ac5899a48b8aef37e6b | bd89f573461397d3d8ebd6f76aaa3e419a7cfd54 | refs/heads/master | 2023-02-28T20:07:23.435810 | 2021-02-07T17:40:56 | 2021-02-07T17:40:56 | 336,846,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code... | [
"gabriel.galoma@gmail.com"
] | gabriel.galoma@gmail.com |
c6089ccaa1b6c92062efbfe48de53c909a29e87f | b9f97b3457100ffa978e5b9c659ff5b4a0189a7c | /django_summernote/migrations/0001_initial.py | bb4366437ddb498ed0c11524070afbc9688d6316 | [
"MIT"
] | permissive | yuong1979/django-summernote | e1cf974daa2b4cdffd251e9f82bd50049a864ab9 | cf9b2d838310211738162c2acbc7b9145d3970b2 | refs/heads/master | 2020-03-19T09:02:22.831819 | 2018-06-06T02:15:09 | 2018-06-06T02:15:09 | 136,255,223 | 0 | 0 | MIT | 2018-06-06T02:15:10 | 2018-06-06T01:34:28 | JavaScript | UTF-8 | Python | false | false | 821 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django_summernote.settings
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Attachment',
fields=[
... | [
"ez@smartstudy.co.kr"
] | ez@smartstudy.co.kr |
730329994488dcd29e2316dd9aa2c78c5f1252ac | 386b7c61cd8a8c981fd32e73b64352b0fba7d53e | /Problem-2-search-in-a-rotated-sorted-array.py | 003770bd11cc341b039ed1787db705e4edcdf3e9 | [] | no_license | negacy/problems-vs-aglorithms | 9c13ba51a514617ce21b3493f625f78a93df2340 | b7af3b499e4261db67dcf6adfd34920cd6ff6503 | refs/heads/master | 2020-07-10T15:30:36.875058 | 2019-09-13T22:17:45 | 2019-09-13T22:17:45 | 204,299,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | import sys
idx = -1
def rotated_array_search(input_list, number):
"""
Find the index by searching in a rotated sorted array
Args:
input_list(array), number(int): Input array to search and the target
Returns:
int: Index or -1
"""
start_index = 0
end_index = len(input_list) - 1
... | [
"negacy.hailu@gmail.com"
] | negacy.hailu@gmail.com |
c4881b4e1b29b1b0197288c5308680c3ff54e274 | 83170ff441a6722db40a6556587593f64c62dd48 | /src/main/python/json2pandasjs.py | c7cc28585ff0f3ec6ba05e0f0d8b6c11ffddc391 | [] | no_license | hcy7910/json2pandas | 6bc7b1a8fdb6de006a88c38aa186f63f748947b8 | 53c586c4dfd1f0393cb06fd31a3b686613829d9b | refs/heads/master | 2021-09-04T08:13:26.606016 | 2018-01-17T07:45:10 | 2018-01-17T07:45:10 | 114,956,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding:utf-8 -*-
import pandas as pd
import json
import re
def json2pandasjs(file):
df = pd.DataFrame()
with open(file) as f:
line = f.readline()
while line:
strinfo = re.compile('null')
datare = strinfo.sub('None', line)
data = eval(datare)
... | [
"1289630384@qq.com"
] | 1289630384@qq.com |
29fd856261e0af5f9622f6056ef4e5c961b85144 | 22bba1a2e94794c8d84f6291daa5f70b1bde400a | /record_wav.py | 301668b1a9208cea4dcf664189717f0b34400468 | [] | no_license | CHANShu0508/Record-wav-and-FFT | 75bfbc798684963c1fce1ee633223f62d77d9fef | c5201390d58cbe98e69faf6dd8b043b6bbf2219b | refs/heads/master | 2023-08-13T23:51:20.939373 | 2021-10-12T10:21:12 | 2021-10-12T10:21:12 | 416,157,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # -*- coding: utf-8 -*-
'''
Record the audio file as .wav format
'''
import pyaudio
import wave
class Record:
chunk = 1024 # Record in chunks of 1024 samples
sample_format = pyaudio.paInt16 # 16 bits per second
channel = 2
sample_rate = 44100 # Record 44100 samples per second
duration = 3
fi... | [
"chanshuwork@gmail.com"
] | chanshuwork@gmail.com |
b176b9733e8a18e756e59c6e0349ac7bb3faf6f8 | d39bbe4982c51a82d9f50650aba14f86042d3d30 | /src/alg/qca.py | 48b5d96a42d395bad7d3b73aa806f845722fa9e7 | [] | no_license | zyymax/online_community_detection | 55dd75266bd53a62aaa6a744c456a1e215980a7a | 77ea79255c217c1df99e690660969a83b9fbb346 | refs/heads/master | 2021-07-14T05:12:27.542175 | 2017-10-19T09:25:47 | 2017-10-19T09:25:47 | 107,429,321 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,998 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
"""
Coder: max.zhang
Date: 2015-01-23
Desc: implementation of QCA in INFOCOM'11
Adaptive Algorithms for Detecting Community Structure in Dynamic Social Networks
by Nam P. Nguyen et.al.
"""
from pprint import pprint
from collections import defaultdict
import... | [
"zhangly@dtdream.com"
] | zhangly@dtdream.com |
2270363e1629e3404120fa029bd191181db861e2 | c934598867a2c91676c1f0876ff38c3231e176e4 | /HomeWork_1.py | 4aba2ea08322d436053b4d0d89390ddd701b8515 | [] | no_license | MustafaSarimesinli/GlobalAIHubPythonHomework | 54cdcb434927ddfef37be74a362650eb82fd53b2 | 23cea4d510fd6b08c5cbf62cf7418c97c883783d | refs/heads/master | 2023-02-08T18:37:00.591984 | 2020-12-27T13:17:51 | 2020-12-27T13:17:51 | 323,607,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import time
print("""
------------------------------------------- SCHOOL DATABASE SYSTEM ---------------------------------------------
""")
values_1 = input("Please enter your name: ")
values_2 = input("Please enter your surname: ")
values_3 = int(input("Please enter your age: "))
values_4 = input("Please enter your s... | [
"sarimesinlimustafa@gmail.com"
] | sarimesinlimustafa@gmail.com |
6cc64bd28248b5600fa843a0d944681d6b73bcfa | f105e42548d67229d24b67cc25c3caeb2db66183 | /tclone/accounts/views.py | de38491851f130848c6af1ef9de5bd057f55d35c | [] | no_license | taiki-dev/tclone | f2aa5c2dc867b5570f853f558ab3db8cfff7f1a7 | a192e1bf68cd2209169d45e66590c70cff601355 | refs/heads/master | 2022-12-17T06:33:50.123445 | 2020-09-17T12:54:11 | 2020-09-17T12:54:11 | 296,268,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.contrib.auth import login
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import render, redirect
def signup(request):
if request.method == 'POST':
form = UserCreationForm(request.POST)
if form.is_valid():
user = form.save()
... | [
"taiki.murakoshi.0908@gmail.com"
] | taiki.murakoshi.0908@gmail.com |
5347fcfd7d3f56e0891c24f6b8d5dc8b119894fd | a04bd4dc9057b6e4527c30a506e7c0c453fcf5db | /hl/pas/samlplugin/saml2/mongo_store.py | 6fd38943a4772e380ddc41d1ee81c425256cc889 | [
"BSD-2-Clause"
] | permissive | saromba/hl.pas.samlplugin | 3d67bab8c5cc3d8c8d0ba8960150ebc51dc44b3d | 0a120cc590e208ac19616f35ab567e94294ca0ce | refs/heads/master | 2020-12-28T23:16:53.540274 | 2015-04-14T08:20:56 | 2015-04-14T08:20:56 | 33,917,939 | 0 | 0 | null | 2015-04-14T07:42:47 | 2015-04-14T07:42:47 | null | UTF-8 | Python | false | false | 11,641 | py | from hashlib import sha1
import logging
from pymongo import MongoClient
from saml2.eptid import Eptid
from saml2.mdstore import MetaData
from saml2.s_utils import PolicyError
from saml2.ident import code, IdentDB, Unknown
from saml2.mdie import to_dict, from_dict
from saml2 import md
from saml2 import saml
from saml... | [
"t_schorr@gmx.de"
] | t_schorr@gmx.de |
2fbfe1db3f59027dc789b1096273144c9025a4c9 | cd78d84441e69c1fc40b6a6e9e235e7cf6882454 | /python/114.flatten_binary_tree_to_linked_list.py | 6f58b41e670f5b1e9ffe984459a6c9d571d73195 | [] | no_license | buy/leetcode | 53a12d4e0298284a5a2034c88353d0dc195aa66c | da0e834e3f2e3016396fffc96ef943ab9ec58ea4 | refs/heads/master | 2021-01-13T01:48:01.176632 | 2015-06-14T06:17:17 | 2015-06-14T06:17:17 | 31,863,627 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | # Given a binary tree, flatten it to a linked list in-place.
# For example,
# Given
# 1
# / \
# 2 5
# / \ \
# 3 4 6
# The flattened tree should look like:
# 1
# \
# 2
# \
# 3
# \
# 4
# \
# 5
# \
# ... | [
"cliu@groupon.com"
] | cliu@groupon.com |
b681003f50349bf1c861817a9f45d4dbaf85ebb0 | 48395cb86d4a618ac300fbcfa22ced193552cb3e | /core/shell.py | 0b081f33fd45c75a57b21a1f3893e845875a19dc | [
"MIT"
] | permissive | Lola224/howboutdat | 7358f815f388559e8a0a8ca9b441a91b6af72a5e | b746f4d218f9e8f10c09cc3f91b876dc186358ea | refs/heads/master | 2023-07-29T05:16:09.840232 | 2021-09-09T00:45:36 | 2021-09-09T00:45:36 | 404,538,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | # Copyright (C) 2015 Noa-Emil Nissinen (4shadoww)
# Import python modules
import sys
# Import core modules
from core.module_manager import ModuleManager
from core import colors
from core import command_handler
shellface = "["+colors.bold+"hakku"+colors.end+"]:"
mm = ModuleManager()
def run():
global she... | [
"89975275+Lola224@users.noreply.github.com"
] | 89975275+Lola224@users.noreply.github.com |
83b2792ba8d5d121b4fc7c7eaca1bfaf512c6aac | 677a5c8834a3a3933f81eba075d4c9774e5f4682 | /apple-card.py | 82f25ca8fd9ece0ccc93ec67de437c5169ca7be6 | [] | no_license | mspych/tiller-scripts | b3fb78b295e38ef1a79cddd752a78d1659890e07 | b078f7fede5c80491491cf2dd6a513741f075f94 | refs/heads/master | 2022-04-05T10:38:43.932102 | 2020-02-02T20:01:56 | 2020-02-02T20:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | import fire
import pandas as pd
import datetime as dt
from functools import partial
class AppleStatement:
def __init__(self, *args):
parse_apple_statement = partial(pd.read_csv,
usecols=["Transaction Date", "Merchant", "Category", "Description",
... | [
"bobetto@Robertos-MacBook-Pro-2.local"
] | bobetto@Robertos-MacBook-Pro-2.local |
8da5b0f5002683c5b861c6f1187916a45af04490 | c50a9defdf08338a76c916e40acf5e6e3d6b3040 | /features/steps/cart.py | c2dbf2f417c5abf15cd0ecc1ee4f776d584ebcb0 | [] | no_license | gusakovm/python-selenium-automation | 03e985047b782df929aacd85d5bf6885735310d1 | 07d64cc403caef35432cbc6f62e17e68cc96e290 | refs/heads/master | 2020-07-29T14:44:02.242961 | 2019-10-16T12:50:48 | 2019-10-16T12:50:48 | 209,847,858 | 0 | 0 | null | 2019-09-20T17:40:33 | 2019-09-20T17:40:33 | null | UTF-8 | Python | false | false | 1,077 | py | from selenium.webdriver.common.by import By
from behave import when, then
from time import sleep
CART_CONTENT_H1 = (By.CSS_SELECTOR, '#sc-active-cart .sc-empty-cart-header')
NAV_CART = (By.CSS_SELECTOR, '#nav-cart')
NAV_CART_COUNTER = (By.CSS_SELECTOR, '#nav-cart #nav-cart-count')
CART_ITEMS = (By.CSS_SELECTOR, '.a-r... | [
"max@gusakov.com"
] | max@gusakov.com |
99d2a42513b1e14b5d28a051deaf75c9300be265 | 003af3e825dacc2b5d05475ecf7ae4ac061550e1 | /blinkt/illumination.py | 33524b18ca6f3dd53c3a3c0fd91d672447e85a9e | [
"Apache-2.0"
] | permissive | JKarthaus/RadioRaspi | 70922029f1925e914f2c9811a181ad347bbef455 | e095caa8aa0c7ae76d1697c181cbcc2f58940228 | refs/heads/master | 2020-03-29T17:18:36.893996 | 2018-12-17T20:13:22 | 2018-12-17T20:13:22 | 150,155,059 | 0 | 0 | Apache-2.0 | 2018-12-17T20:13:24 | 2018-09-24T19:10:52 | Python | UTF-8 | Python | false | false | 1,166 | py | #!/usr/bin/env python
import colorsys
import math
import time
from sys import exit
import signal
class GracefulKiller:
kill_now = False
def __init__(self):
signal.signal(signal.SIGINT, self.exit_gracefully)
signal.signal(signal.SIGTERM, self.exit_gracefully)
def exit_gracefully(self,signum, frame):
... | [
"joern.karthaus@gmail.com"
] | joern.karthaus@gmail.com |
bcc6a25837963c10c9f36f407f827516687c57ed | df449a2eca3caa28164d0a38ffb4fcafcbaba187 | /web_scraper_2015.py | 1028253b278e21df2b13b306e17dceb73e60da5b | [] | no_license | cklcit03/ml-march-madness | c866ae13915e66016adb0722413516fce9f8df28 | 8749b00fb05daea7c9a7b3c9e775274df49a519a | refs/heads/master | 2020-03-10T20:04:56.862198 | 2019-03-02T05:21:11 | 2019-03-02T05:21:11 | 129,562,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,200 | py | # Copyright (C) 2019 Caleb Lo
#
# 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 dist... | [
"flashbuzzer@gmail.com"
] | flashbuzzer@gmail.com |
fdfc57cd6512126f1c8c13068d33cb184ab73f82 | ed789322d285f5d0a5c9b0ba97cf5dafdf3e671c | /apps/users/migrations/0001_initial.py | fc5334d9f22ab7bc3678281762347cfd3bdcd6bb | [] | no_license | mkrj/OnlineShop | 7be98c96debf62199fd31b46016841697af4ad6c | fb55c04f455302c89769ba7cac93c89294f501f1 | refs/heads/master | 2022-12-22T15:33:15.197694 | 2020-07-15T08:09:28 | 2020-07-15T08:09:28 | 268,022,909 | 2 | 1 | null | 2022-12-08T11:01:48 | 2020-05-30T06:30:08 | Python | UTF-8 | Python | false | false | 3,935 | py | # Generated by Django 2.0 on 2020-06-04 18:20
import datetime
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_use... | [
"2294240112@qq.com"
] | 2294240112@qq.com |
e129c89a972b58a0d412098db56fd6e35cfb543b | 92d39af86fc0de20ca85326275a7eafb2e3117c8 | /app.py | d2f164bf078e0375779137495ba6145e5817be5c | [] | no_license | victoray/BookManager | bc2daca5b7e8c9ebabf0cb8ef63ea8b8a2b82753 | b1c8c03b54d763381a6f0a4a84b6cd708a300978 | refs/heads/master | 2020-07-22T18:09:11.996483 | 2019-09-11T10:43:56 | 2019-09-11T10:43:56 | 207,285,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,045 | py | from flask import Flask, render_template, request, redirect, url_for
from sqlalchemy.orm import sessionmaker
from waitress import serve
from db_setup import Base, Books, Comments
from sqlalchemy import create_engine
engine = create_engine('postgresql://postgres:postgres@localhost:5432/bookmanager')
# engine = create_... | [
"viktoray007@gmail.com"
] | viktoray007@gmail.com |
535f3f1814383b30666c5b311255169b1dbcb59f | 520f9caeb5c380c42efb26f6778340e8fa7deba8 | /Novice/04-02/sparepart/part/urls.py | 2d2ad953d7085b3f452574fdd85c6f4e920d31cd | [] | no_license | Tama96/praxis-academy | 1fda57d4ddae1d87deb5bede2e9475e01ab75214 | b4de60ea0246dac6ee5f898454e5942e0ca91ac8 | refs/heads/master | 2022-12-26T13:49:09.925185 | 2020-10-12T01:39:07 | 2020-10-12T01:39:07 | 287,658,864 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from django.contrib import admin
from django.urls import path
from part import views
urlpatterns = [
# from Sparepart
path('admin/', admin.site.urls),
path('emp', views.emp),
path('show', views.show),
path('edit/<int:id>', views.edit),
path('update/<int:id>', views.update),
path('delete... | [
"aldypratama96@gmail.com"
] | aldypratama96@gmail.com |
298303abeac1510e8db937cfdf75a92dfcec4501 | 68a432b460fba87b38ef117364c5c6e18b589090 | /custom_components/ble_monitor/test/test_brifit_parser.py | ec5f1cf810d7d7b72449c31d9f598e456929fa46 | [] | no_license | radio-m/homeassistant | 551bfafb3f5677b526ec41ffeb663c48a191a20b | 0dda84ecc182bfdd2e7f634dc693eebb9a0ff006 | refs/heads/master | 2022-08-17T02:28:01.227886 | 2022-07-31T06:56:55 | 2022-07-31T06:56:55 | 315,934,165 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | """The tests for the Brifit ble_parser."""
from ble_monitor.ble_parser import BleParser
class TestBrifit:
"""Tests for the Brifit parser"""
def test_brifit(self):
"""Test brifit parser."""
data_string = "043E2B0201000085B07438C1A41F05095432303102010614FF55AA0101A4C13874B08501070A1D10F064000100... | [
"doc.zerg@gmail.com"
] | doc.zerg@gmail.com |
d5b536815238e7e5882d6315ad7044d8325dd4ad | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2406/60870/287457.py | a7d7347477f9630efe3683f26279554b8f27c16b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | nums = int(input())
array = []
for i in range(nums):
array.append(int(input()))
res = []
for i in range(nums):
res.append(array[nums - i - 1])
res.sort()
count = -1
for j in range(len(array)):
for i in range(len(array)):
goal = res[i]
if array.index(goal) != i:
index = array.inde... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6a9e0a76ce17886a399c10e1d8cd795c9fcab029 | c974264a6f6971cb5c800ceac93bd10e67f0686a | /hello.py | 750db0a6e81a4bbed67ff1e709a9fc1acae34f21 | [] | no_license | mukeshdevmurari/pythonrepo | 9fd6ee29e895e7cc14bcb3a70ae633596890c0c1 | 11547d178f615f5809c11bb2e3e62f31e0f976ef | refs/heads/master | 2020-04-02T04:24:22.695291 | 2020-03-02T03:46:49 | 2020-03-02T03:46:49 | 154,015,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | print("hello")
print("Second Line") | [
"mukesh@jogiinfotech.com"
] | mukesh@jogiinfotech.com |
27e0c8b6ce319284acc5d72b442e1acbbf9c5e55 | fd2a23b8fd924ddc385ad480b5e7dd1174961f25 | /pyltp_eg1.py | abd9442196131ec57601565ad5ea7f51ea2683b4 | [] | no_license | shamrock222/nlp-learning | 596862ea1c1208d0bff7e8ffae11f9cec42ddf43 | 93c752811a35b505471c8bea8325db14389444eb | refs/heads/master | 2020-04-14T04:51:11.886331 | 2019-01-30T15:31:10 | 2019-01-30T15:31:10 | 163,647,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,055 | py | # -*- coding: utf-8 -*-
"""
@refer: https://pyltp.readthedocs.io/zh_CN/latest/api.html#id21
@usage: pyltp 是 LTP 的 Python 封装,提供了分词,词性标注,命名实体识别,依存句法分析,语义角色标注的功能
"""
import os
from pyltp import SentenceSplitter, Segmentor, CustomizedSegmentor, Postagger, NamedEntityRecognizer,Parser, SementicRoleLabeller
class ltp_analyz... | [
"32649526@qq.com"
] | 32649526@qq.com |
0dfc8ddda7bfa6bebf915b9611cdf33ac8ec311a | 7315525e0c1eda981db0b57d5e756282982e69a7 | /demo_1A6N.py | f50f5d1845ff14d0ad5c58c39bd4547c1f0e20ca | [] | no_license | hkthirano/Read_Amin_XYZ | ca1c38d87a7155f4cb5d74ed8be7e6c212f6b4b8 | bd12842d4530df22d08428770876ebd5f83f5bae | refs/heads/master | 2021-07-03T11:02:58.503756 | 2020-08-19T07:35:39 | 2020-08-19T07:35:39 | 145,704,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from Read_XYZ.main import Read_xyz as r_xyz
config = ['A', 'NA', 'NA']
# config = ['A', '10', '100']
demo = r_xyz('./Data/1A6N.pdb', config)
# demo = r_xyz('./Data/1APS.pdb', config)
demo.matching_lines()
demo.save_matching_lines('./1A6N_line.txt')
demo.extract_xyz()
demo.save_extract_xyz('./1A6N_xyz.txt')
# VDWr:... | [
"p238058h@gmail.com"
] | p238058h@gmail.com |
5829478376a030f8c92bf294427d412fcbee059d | b2fc7db783569a3d695f6017889dd6a09fe56b1d | /Database_creator.py | 0025de95ecb9d8500ef3296c6576449bcee85b5a | [] | no_license | Abhishek19895/Search_Indexing | 7ec4ef89671bbc8dd700410aad91e2f3399c3e51 | d4ec21d7e4c33c4399099a4343ddca87f048b5e1 | refs/heads/master | 2021-01-01T04:56:18.305788 | 2016-05-22T23:58:15 | 2016-05-22T23:58:15 | 58,711,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,739 | py |
"""
Author : Abhishek Singh
To create our search database from APIs, Amazon Public data, Stanford Database & Kaggle datasets
"""
##loading all the concerned libraries for this database packing
import os, sys, pandas as pd
import numpy as np
import json
from collections import defaultdict
import glob
#function fo... | [
"aasingh4@dons.usfca.edu"
] | aasingh4@dons.usfca.edu |
8ace0d505c55ded5686556aed557fdd36e7f2f76 | 7887a9337cef4b44bf1ccb80657558aa5e104d35 | /src/canopen_301_402_old/canopen_301/obj_dict.py | b4e6641a782dcc3f276292e638c684d50a469e97 | [
"MIT"
] | permissive | wuhuaroubj/canopen_301_402 | 5c7ec60a1e8ac1257cd5c5879fde3a8b92adba84 | 16b189ffe631bb5812311131002d7f722de5fc66 | refs/heads/master | 2021-04-28T18:04:36.819618 | 2016-09-19T10:48:43 | 2016-09-19T10:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from collections import defaultdict
from canopen_301_402.constants import *
from canopen_301_402.canopen_301.obj import CanOpenObject
class CanOpenObjectDictionary(object):
"""docstring for CanOpenObjectDictionary"""
def __init__(self, node):
super(CanOp... | [
"xaedes@gmail.com"
] | xaedes@gmail.com |
0e96beb15ac5db5c0269be7d3634b98f33bb64d6 | a3662e2b0aa375614c858c70a02690d21fcb090f | /config/settings.py | 3f429044f9f960550dc1f4e5877684d7a6f27245 | [] | no_license | chiwon3/AIMProject | 80bd8eba0f12bd10d322a084b9468d7f4beeafe7 | ab0fd8174b7ef6588903806b442efbf2b885b174 | refs/heads/master | 2023-01-10T05:20:39.203654 | 2020-11-08T08:11:42 | 2020-11-08T08:11:42 | 289,417,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,129 | py | """
Django settings for AIM project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bui... | [
"chiwon3@gmail.com"
] | chiwon3@gmail.com |
6157b6267a9a2e0daf831ccea8a45e8b4d8efa43 | 27cdfc9d3e17a87668a436a490e1648344ceb2bf | /user_manager/migrations/0003_auto_20191101_2341.py | a3fc24bcade0cb4389ee492532bd780aede6cdd0 | [] | no_license | RadikSeyfullin/onw | b2c0a6d85ea1ca9ee0c70b2b1384fcc66ea78892 | 348734cccb82c6b3a72e7f9d61ea040f23123ed4 | refs/heads/master | 2020-09-01T03:56:32.743052 | 2020-04-10T06:38:07 | 2020-04-10T06:38:07 | 218,873,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 2.2.6 on 2019-11-01 20:41
from django.db import migrations, models
import user_manager.models
class Migration(migrations.Migration):
dependencies = [
('user_manager', '0002_auto_20191031_1756'),
]
operations = [
migrations.AlterField(
model_name='custom... | [
"radikseyfullin@gmail.com"
] | radikseyfullin@gmail.com |
cfc185495dbf3f6d2211262d61fe63991cdf196b | 3aaef97b44c2ec1a76125d49d9e91d1fa839da9a | /Algorithms/grading_students.py | fed3b7cf8c397dc8ab774b9e03502db22778ed97 | [] | no_license | basakrajarshi/HackerRankChallenges-Python | 23018bbc8ba6d3470fb432b57bb608fee5479858 | 8757b4def7f32065c8158af636f4277149f19bf3 | refs/heads/master | 2020-04-15T01:39:08.266769 | 2019-01-23T00:41:52 | 2019-01-23T00:41:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import os
import sys
#
# Complete the gradingStudents function below.
#
def gradingStudents(grades):
finalgrades = []
for grade in grades:
if (grade < 38):
#print("First if ",grade)
finalgrades.append(grade)
else:
#print("First else ", grade)
if (... | [
"noreply@github.com"
] | basakrajarshi.noreply@github.com |
4065cbf5c44ed65e39aa9d9a05e918d0ccc17505 | aa35a2c82d356c064a0115b486b1266d0fe75185 | /problem8.py | f8ebcb3b376faad67fef059e5b79370d955ea17d | [] | no_license | JellyWX/project-euler | f39da9c75cf4ccabecce8fa4e6f90f85bc68fe6c | cfa577a8cd87aef5a52a207fe58c55ab111cfef2 | refs/heads/master | 2021-01-13T08:00:12.557792 | 2020-10-02T17:55:45 | 2020-10-02T17:55:45 | 95,019,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | number = list('73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
d8848ccdf65a02f944b270afbc81cd3c00ca92c5 | a17c820cbbcb82a93b1675a3d1cf37d03440f7f3 | /StyleTransfer.py | 2510d272202c9daf8760833e59fabd32fa7731db | [] | no_license | Ahaeflig/semantic_map | 20a8250cde3fc045a36ad9f9d12e3259a0e7f97f | 140d61a3ae677308955454c7be0492a1392b141a | refs/heads/master | 2021-09-14T17:15:59.509477 | 2018-05-16T13:26:06 | 2018-05-16T13:26:06 | 104,345,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,849 | py | import tensorflow as tf
import numpy as np
import skimage
import skimage.transform
from helpers import *
from helpers import getLaplacian
from VOChelpers import *
# IO
import matplotlib.pyplot as plt
from smooth_local_affine import smooth_local_affine
# Datastructure
from collections import OrderedDict
# Custom
im... | [
"adan.haefliger@gmail.com"
] | adan.haefliger@gmail.com |
a23dc84e74dd291b4b5d666d5f5ad24c9cf3b9dd | 00d98ce8989df24850e22d4a8c0ec5ce8caab5cc | /hyperv/tests/unit/neutron/test_mech_hyperv.py | e0996c1aa8250ce42b1f18121b267fc1b8a199f1 | [
"Apache-2.0"
] | permissive | costingalan/networking-hyperv-debian | 18a9d616550baf8f9b39134198505e480d7fa06c | b393d61059c8d6101610e855b90694a4b2c15fa0 | refs/heads/master | 2021-01-15T09:27:45.332769 | 2016-04-07T14:32:30 | 2016-04-08T11:54:16 | 55,423,283 | 0 | 1 | null | 2016-04-04T15:37:13 | 2016-04-04T15:37:13 | null | UTF-8 | Python | false | false | 1,753 | py | # Copyright 2015 Cloudbase Solutions SRL
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"cgalan@cloudbasesolutions.com"
] | cgalan@cloudbasesolutions.com |
4738b14e85db765748a944082898280fecba8da3 | a551f93d7362695584c7ff71b069839bd6185383 | /hist_data_daily.py | e7ae48c343c8e77bf715254b790c7cf444dfd78e | [
"Apache-2.0"
] | permissive | fcimclub/zipline_localization | 243cbf34b0950b9417b602781ad73ff94f1c09e9 | a1912fba3fa63a30686707561429b2c90bba2f0c | refs/heads/master | 2020-03-26T21:35:58.877986 | 2018-08-20T09:36:57 | 2018-08-20T09:36:57 | 145,397,266 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | """
Created on Thu May 17 14:00:02 2018
@author: l_cry
"""
# 导入模块
import tushare as ts
from datetime import datetime, timedelta
import time
import numpy as np
from sqlalchemy import create_engine
import pymysql
pymysql.install_as_MySQLdb()
engine = create_engine('mysql://root:120402@127.0.0.1:3306/data_stock?charset=... | [
"l_crystalmei@163.com"
] | l_crystalmei@163.com |
f976ad877067cfc9f59726ccf2c189335c1fca12 | 9d8d72ed8966fe9b1d170d08eba2f513eaff5e41 | /mysite/settings.py | 4a1acc10ceff59ebd853595154a07b1d44a45b05 | [] | no_license | StruggleWugc/mysite | a99c8ec2be2e3bea23b34069078a19fb69053839 | 28d00a5bc5388654e455dd1977294fce3ed2d520 | refs/heads/master | 2020-08-02T05:30:25.672050 | 2019-09-27T06:18:48 | 2019-09-27T06:18:48 | 211,249,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"260043657@qq.com"
] | 260043657@qq.com |
3e0624c33598f87f639b58f024008cb9d83b3943 | 212b50b723606a04f813abf7b74678ef0c32b6cc | /namesandtitlesfromurl.py | fafb61ec8a5f10affbe90e2f42c59ae4c06f9bad | [] | no_license | Metallicode/namesandtitlesfromurl | 27f0d74c7001754bd19588ffa83793817a5c240b | 7aef7d4496cc59c6048f4feeb739a4d9745c5904 | refs/heads/main | 2023-08-30T21:44:54.396318 | 2021-10-22T11:44:06 | 2021-10-22T11:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | import requests
from bs4 import BeautifulSoup
import pandas as pd
#get live data
def _GetDataFromWeb(url, liveData = True):
if liveData:
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q... | [
"gigahertzvectorizer@gmail.com"
] | gigahertzvectorizer@gmail.com |
f052b98290cc3160b827a9ea75f74adb6f505f38 | 17aabb4c2b24831fd7b1f42d9466692ab0fee6dd | /http | 40079d109c8903aecfda53e9f5087bf698322bcd | [] | no_license | kybr/AudioWorklet | e5927d303f7555f89850184d6a2facb42e036e01 | a9497a737fc383bf925c5565e0e532bf00d69b25 | refs/heads/master | 2020-05-19T09:42:35.906735 | 2019-05-06T14:29:47 | 2019-05-06T14:29:47 | 184,955,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | #!/usr/bin/env python3
from http.server import HTTPServer,SimpleHTTPRequestHandler
#from socketserver import BaseServer
#import ssl
host = ('0.0.0.0', 8000)
httpd = HTTPServer(host, SimpleHTTPRequestHandler)
#httpd.socket = ssl.wrap_socket (httpd.socket, certfile='certificate.pem', server_side=True)
print(f"http://... | [
"karl.yerkes@gmail.com"
] | karl.yerkes@gmail.com | |
ce6b37ae1c97a5184cf411a67ad0265dbefb8ffc | 891970bb71242ce2d09f125437d9e7d3f0a883df | /testUnit/dataSetTest.py | 8eb721bef3574d5dbbf5ea4c95a1c0c0d40ab540 | [] | no_license | donesky/ExpressionRecognition | fa71fab5b2ae7446a8402f2f26293de3c2eeb91f | a58792af8b8ad2a8e823a617502677d5ce5f7f37 | refs/heads/master | 2021-01-22T10:55:38.714711 | 2017-04-05T11:27:46 | 2017-04-05T11:27:46 | 82,048,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import pytest
import testUnit
import preProcess.adjust as ad
import math
from numpy import *
# content of test_assert1.py
def test_function():
assert ad.Distance((1,1), (1,1)) == 0
assert ad.Distance((-1, 1), (0, 0)) == math.sqrt(2)
group = array([[1.0, 0.9], [1.0, 1.0], [0.1, 0.2], [0.0, 0.1]])
lab... | [
"dongqiuyealex@gmail.com"
] | dongqiuyealex@gmail.com |
d3482d3e49faeac27443f951c71c93ee3571612c | 9a15e52c77d6c57eb5325ef78febf9c8590b410b | /social/serializers.py | f19f968dc7e6cba19433cd9284032e997852ef08 | [] | no_license | echopulse/DjangoSocialNetwork | 6ae33657124470d18a27d4ad9517d6b23dc49e69 | 99f890e4e931275bc2a269cfc358cd28ef51afe2 | refs/heads/master | 2021-01-16T02:28:49.377144 | 2015-07-08T20:23:01 | 2015-07-08T20:23:01 | 32,706,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | from rest_framework import serializers
from social.models import Message, Member
class MemberSerializer(serializers.HyperlinkedModelSerializer):
receiver_member = serializers.HyperlinkedRelatedField(
many=True,
read_only=True,
view_name='message-detail'
)
sender_member = serializer... | [
"fil12@outlook.com"
] | fil12@outlook.com |
d9d8996dbd9f69be2cfc540fe18287acc5a429fb | 94c8e3ec06a6294fc43f35bc7aa69e4ea5744d24 | /blog/migrations/0014_auto_20210204_0250.py | c9030c079d97ca1269b91337f30c76a4692bcaaf | [] | no_license | jonoise/portfolio_app | 40383a813544ebd69d5376bcb7b0ab9df92e53ed | 8aabc9c339f96124d5e2e2b1de00ccb6fc05cd4c | refs/heads/main | 2023-08-20T05:26:47.773045 | 2021-09-28T21:35:40 | 2021-09-28T21:35:40 | 333,677,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Generated by Django 3.1.5 on 2021-02-04 02:50
import ckeditor.fields
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0013_auto_20210202_0236'),
]
operations = [
migrations.AlterField(
model_name='po... | [
"yellowballpython@gmail.com"
] | yellowballpython@gmail.com |
0bba6a5e8196d1bdbe08b4775e5de437a9fd2292 | f8278cd8ce31833dccb178fd1ecc1c2511fd5f06 | /venv/Scripts/pip3.7-script.py | 1428fb49f8bf18ebcfb3cd63119d5c6244c85c7c | [] | no_license | meshall2019/Python | c5cf97ff16be674f73f8bee10cdf82765c6f924f | 793dea9023b5c9eba88a27db1e527314c666350f | refs/heads/master | 2022-04-05T04:49:12.483371 | 2020-02-26T11:08:32 | 2020-02-26T11:08:32 | null | 0 | 0 | null | null | null | null | ISO-8859-5 | Python | false | false | 420 | py | #!C:\Users\удкс\PycharmProjects\Test\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"mmas3l222@gamil.com"
] | mmas3l222@gamil.com |
23cb16f776bea63efaabfe15df06e08e59b44c8d | bddad6fbb4d991eceecff417f2de4f763413001d | /sage/query_engine/update/delete.py | 2b7668c20cf80df087c6efc5b2f21e98e87afe61 | [
"MIT"
] | permissive | GDD-Nantes/sage-engine | 39ff837bde5eb1a7eadd61548881a0889bed63fe | ea06b77b15b13f5297e937718c1c742e8afcc017 | refs/heads/master | 2021-01-02T02:41:56.890666 | 2020-02-04T10:17:01 | 2020-02-04T10:17:01 | 239,457,429 | 1 | 0 | MIT | 2020-02-10T08:00:30 | 2020-02-10T08:00:29 | null | UTF-8 | Python | false | false | 2,446 | py | # insert.py
# Author: Thomas MINIER - MIT License 2017-2020
from typing import Dict, List, Optional, Tuple
from sage.database.core.dataset import Dataset
from sage.query_engine.iterators.preemptable_iterator import PreemptableIterator
from sage.query_engine.protobuf.iterators_pb2 import SavedDeleteData
from sage.query... | [
"tminier01@gmail.com"
] | tminier01@gmail.com |
520eacd3cd22300038f00e68a68c9d2e1efc4382 | 47760e6a1f05d3a0a75fc9da035abc12011da4f4 | /deep_sort/tracker.py | ad22af44e226231a4b6e0bf478409d6f046f165d | [
"MIT"
] | permissive | pythonlessons/TensorFlow-2.x-YOLOv3 | bad66c771295b7053c6df53f2caaba209c9a0fbc | 9f29d73ee24cd5db4ead280f95ff06f66d538fc2 | refs/heads/master | 2023-08-07T07:46:43.414113 | 2022-10-04T06:56:21 | 2022-10-04T06:56:21 | 257,681,773 | 632 | 385 | MIT | 2022-10-04T06:55:59 | 2020-04-21T18:29:55 | Jupyter Notebook | UTF-8 | Python | false | false | 5,485 | py | # vim: expandtab:ts=4:sw=4
from __future__ import absolute_import
import numpy as np
from . import kalman_filter
from . import linear_assignment
from . import iou_matching
from .track import Track
class Tracker:
"""
This is the multi-target tracker.
Parameters
----------
metric : n... | [
"noreply@github.com"
] | pythonlessons.noreply@github.com |
0be81d9de12861781b620abdc89bd97d6089d604 | fb9a703a58b87079dddfc6f7661a11811ebc863f | /docker4circ/src/circhunter/circ_classifier.py | c0b1dffd4c4f52ecddf3ef90075273fefc4b6c2b | [] | no_license | cursecatcher/biodocker | 9059d2d70ca5b085e414a9b0b2e5696108e8e850 | 0521856d915c7e25f00dd387727f47f1f23b805b | refs/heads/master | 2021-07-20T06:39:09.350603 | 2020-06-23T09:08:10 | 2020-06-23T09:08:10 | 185,957,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,672 | py | #!/usr/bin/env python
import os,sys
"""
LAST UPDATED VERSION
-> WRITING UNIVOCAL CLASSIFICATION
This is a script that allows to calculate the presumed linear sequences
that form between the exons near to the circRNA and a circRNA.
It takes as input:
- export of all the exons
- intersect of circRNAs with bedtools wi... | [
"nicola.licheri@gmail.com"
] | nicola.licheri@gmail.com |
41d4fa69d69c9f2e3d7c678ea517d29cb765ffd2 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2308.py | 70c40cd0d6328c50f7c76f34f4d3e2738f0eb7e9 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=39
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
e5934fb0f7a75782df30b02e4014b814ba7da9b5 | a64f122dd4df3e20bc3e25aca31bb11ec9d55977 | /Assignment 3/madelon tricks.py | 4ec6ab3ce62d92cde3f7c56c28d599185143b045 | [] | no_license | mbrine555/gatech_ML | f9de5e1e1c29e40693030fcf3dce4797339f3ada | 2a3dea874ac7710104fb891a5199afa9f3c046af | refs/heads/master | 2020-04-16T10:39:44.328425 | 2019-04-10T11:54:37 | 2019-04-10T11:54:37 | 165,512,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,999 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 18 13:08:50 2017
@author: JTay
"""
import pandas as pd
import numpy as np
from sklearn.preprocessing import StandardScaler
from helpers import nn_arch,nn_reg,ImportanceSelect
from matplotlib import cm
from sklearn.neural_network import MLPClassifier
from sklearn.model_... | [
"briner.15@osu.edu"
] | briner.15@osu.edu |
47cef2617e45b179ad7170b343230053c4e3f72b | e4688b4752f93d6f4db24f99c551b6fd3ca89571 | /spectrum_all/code/shiyan_work_for_specturm.py | c2352c7be38b5eb83718456a5ed3b746bba0f541 | [] | no_license | hanabimarch/my_work | 925fce839965e3ba144c20aa8f6e752272c694b3 | 69ecddd214c76275cd228624f3344396bb2f9e32 | refs/heads/master | 2022-04-27T14:02:33.723596 | 2020-04-27T02:43:21 | 2020-04-27T02:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | from zjh_make_phaI import *
import zzh_py3_file as zhf
import os
from zjh_xspec_fit_kernel import xspec_fit_kernel
import matplotlib.pyplot as plt
data_topdir = '/home/laojin/trigdata/2017/'
result_topdir = '/home/laojin/results/results_GBM/2017/'
namelist = zhf.readcol('/home/laojin/results/results_GBM/Y_all_sample... | [
"653538607@qq.com"
] | 653538607@qq.com |
5ac2d00d5ea2df70b34fed18d5398d39704751c1 | f77fd2fd6aa5aa80212e4a7fc036d0987a8c2e3e | /Fourteenth_Chapter/ply_flo.py | be0c5b0acfb5b3a99a52748ff0f08c69f405025f | [] | no_license | apsz/python-learning | a61a30b18fc3df932eb52aca5cfe9773687de038 | 52c29b8ecf02c6a7603b1aabc560a2899183b099 | refs/heads/master | 2021-01-19T21:20:31.418044 | 2017-05-02T15:51:40 | 2017-05-02T15:51:40 | 88,644,917 | 0 | 0 | null | 2017-05-02T12:40:54 | 2017-04-18T16:06:22 | Python | UTF-8 | Python | false | false | 6,106 | py | #!/usr/bin/python3
import sys
import ply.lex
import ply.yacc
def get_file_handle(filename):
try:
return open(filename)
except (EnvironmentError, IOError) as file_err:
print('Error opening {}: {}'.format(filename, file_err))
sys.exit()
def ply_parse(text):
"""
>>> formula = ... | [
"a.zych@student.uw.edu.pl"
] | a.zych@student.uw.edu.pl |
8295021fdcaacf6a698cf4e7e504dcd3e9c05cd3 | c4aa09e204ed447f570aa79b634fb8012fe287c5 | /LeVanThe_43609_CH01/Project/Page_33_Project_02.py | c4468540d5d057e4444d72caee9e7e1c4ab259f0 | [] | no_license | LeVanthe2502/LeVanThe | c1201a3bbf764cfc307a8dc879b6f5c4409b68b5 | 1b45fde16e199c8817980062aefee9448c75c3a8 | refs/heads/main | 2023-08-29T19:43:17.104264 | 2021-11-02T12:40:53 | 2021-11-02T12:40:53 | 423,838,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | """
Author: Le Van The
Date: 26/08/2021
Problem: Write a Python program that prints (displays) your name, address, and telephone number
Solution:
....
"""
name=("Le Van The")
address=("Quang Ngai")
telephone_number=("0359940793")
print(name)
print(address)
print(telephone_number) | [
"noreply@github.com"
] | LeVanthe2502.noreply@github.com |
135a7ce285e4e108901b884562de70958bca05d3 | ffeacff13af906bf5e7a02018a2543902f5dc8ef | /01-Python核心编程/代码/05-函数/01-函数一/hm_10_函数嵌套调用应用之函数计算.py | 0a326afbd87d40ebf4dd6827cde68b23c243fed8 | [
"MIT"
] | permissive | alikslee/Python-itheima-2019 | 457080ee83d0f5f7eaba426da0ea86405d2d5248 | 691035d5ff0e362139c7dbe82f730ec0e060fd2e | refs/heads/main | 2023-01-01T16:27:20.062463 | 2020-10-22T16:20:29 | 2020-10-22T16:20:29 | 305,959,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # 1. 任意三个数之和
def sum_num(a, b, c):
return a + b + c
result = sum_num(1, 2, 3)
# print(result)
# 2. 任意三个数求平均值
def average_num(a, b, c):
# 先求和 再除以3
sumResult = sum_num(a, b, c)
return sumResult / 3
averageResult = average_num(1, 2, 3)
print(averageResult)
| [
"lee079074256@gmail.com"
] | lee079074256@gmail.com |
6266e6a4adbc5000d80c5fa18e6ac21098c08422 | b6ccea6c641493b648ba5d9dff0174bfc31fe612 | /nh_patient_flow/nh_clinical_extension.py | d1f7ab6741ee58e2490f61d4d58b5e5d29490e1c | [] | no_license | NeovaHealth/patientflow | d9e52f8ee8aff5cf329805785a2a0be4e79341cc | 230cc87d71069abf4f221d02166f907dd1d38aef | refs/heads/master | 2021-01-18T16:55:09.926934 | 2016-01-08T12:43:32 | 2016-01-08T12:43:32 | 46,868,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | from openerp.osv import orm, fields, osv
from openerp.tools import SUPERUSER_ID
from datetime import datetime as dt, timedelta as td
class nh_clinical_patient_flow_patient(orm.Model):
_name = 'nh.clinical.patient'
_inherit = 'nh.clinical.patient'
_columns = {
'unverified_nhs': fields.char('NHS Nu... | [
"joelortiz@neovahealth.co.uk"
] | joelortiz@neovahealth.co.uk |
fa2603385a5568d70c8b57d241059f41cc12cbf9 | bce5ab1161b8b51b0f9370545181949c4b9ba713 | /server.1.py | e78c59d905d2a9bd9020345edf6541e2e609295b | [] | no_license | Excelvrn/BitChess | 6dde46f077346346dd1dda2b5ea6417f348d7cd5 | a6894bd739d756e020fac306318eea2b68a5fe19 | refs/heads/master | 2023-05-12T07:36:12.799873 | 2021-06-01T06:42:34 | 2021-06-01T06:42:34 | 46,856,377 | 0 | 0 | null | 2021-02-06T15:09:38 | 2015-11-25T11:03:48 | Python | UTF-8 | Python | false | false | 2,926 | py | #set debug=4
import sys, socket
print(sys.path)
from _thread import *
#print("Start")
#sys.path+=['/home/excelvrn/Pyth/django-main']
#sys.path+=['/home/excelvrn/Pyth/asgiref-main']
#print(sys.path)
debug = 4
sockettime = 30
#adr = ('80.82.63.117', 8990)
#adr = ("192.168.1.1", 8000)
adr = ("", 8000)
... | [
"noreply@github.com"
] | Excelvrn.noreply@github.com |
aa9c5a2a06c2f777eb8d1ff5ba6fc8345a772f26 | 946441f1e45b093de0311e3b0ce70b16bdee9bdb | /backend/app/users/migrations/0001_initial.py | 6a4785e674ddf8ae3d5fa99fc1cdd72c43f601ca | [] | no_license | HousewifeHacker/VolunteerPR | 91c3f53c930e13d007a20e576732ec36cbd7bb36 | 08bb7d20dd524feb53984fbc694dd6471ee3a992 | refs/heads/master | 2023-01-19T08:27:02.363742 | 2020-05-25T02:39:59 | 2020-05-25T02:39:59 | 234,778,530 | 0 | 0 | null | 2023-01-05T05:17:43 | 2020-01-18T18:28:59 | Python | UTF-8 | Python | false | false | 1,973 | py | # Generated by Django 2.2.12 on 2020-04-11 00:21
import app.users.models
from django.db import migrations, models
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
... | [
"housewifehacker@gmail.com"
] | housewifehacker@gmail.com |
1f4f53aa0f0f5d3718751d27bb4b54733dd28fa3 | ec7b1bda2461cb1d28b75b3f6b13ae64da7bf09f | /code/lib/plotting.py | 070691fc3d125d7db2e205fd3b740c98d2a95af9 | [
"MIT",
"CC-BY-4.0"
] | permissive | andim/paper-tcellimprint | c38361714e308030bc91fd14cb03bf0d28b22692 | e89605e51014fa3f347f96bab3d3d84c2b013a2f | refs/heads/master | 2022-03-06T06:03:06.303029 | 2022-03-03T00:56:17 | 2022-03-03T00:56:17 | 280,264,815 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,127 | py | import string, re, math, itertools, glob
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import pandas as pd
import palettable
import seaborn as sns
import scipy.stats
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
import statsmodels.api as sm
from .config import *
# save an... | [
"andisspam@gmail.com"
] | andisspam@gmail.com |
56fd5f10b4ba01a5822101e26787d8d9884a505c | a438f738bb52210d050b8b040b33277c9dfb8dc4 | /conv_table.py | 3199141dd0b7468a600e2f6ed51d3f76c5b4c1ac | [] | no_license | ngazagna/plotOpt | ebf3f52d56e923e4e3415e6f56249c7fb9d392d7 | c51695d6d863a7c0f61937dcc58743505eede3c9 | refs/heads/main | 2023-08-02T19:44:29.805710 | 2021-09-15T15:44:49 | 2021-09-15T15:44:49 | 301,785,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import os
import pandas as pd
class ConvTable:
def __init__(self, df):
self.df = df
if __name__ == "__main__":
folder = os.path.join(os.getcwd(), "conv_tables")
full_path = os.path.join(folder, "conv_2D.csv")
df = pd.read_csv(full_path)
| [
"nidham.gazagnadou@telecom-paristech.fr"
] | nidham.gazagnadou@telecom-paristech.fr |
95048064b8b8a912db1bfaa939f2c4732d285a50 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2174/60606/306868.py | fa74a5f58cbe6b898ce25b0c57f2628f5a06a9ad | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,681 | py | s = input()
if s == "6 10":
print(-1)
print(5)
print(5)
elif s == "9 10":
print(-1)
print(-1)
elif s == "2 1":
print(-1)
elif s == "4 1":
print(-1)
elif s == "6 6":
print(4)
print(4)
elif s == "5 10":
print(-1)
print(-1)
print(6)
elif s == "8 10":
print(-1)
print(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3addddec1763f1736b3d8cdb01573245f50fe0bd | c2105bde9173e467e21ad75a2cb95511944468e9 | /OOP Python/Parallel Operations/RunSquareOfInput.py | 92715e37620697261f879de409bae62a09ab22b9 | [] | no_license | BryanHoffmaster/learning-python | 8528864e7840bffff38af5a76c6636cdc3b81c04 | 18f2de765bbf9784254be5902bca6c751e12227b | refs/heads/master | 2020-05-21T09:15:06.524454 | 2017-10-04T04:29:45 | 2017-10-04T04:29:45 | 84,609,301 | 0 | 0 | null | 2017-10-04T04:29:46 | 2017-03-10T23:29:50 | Python | UTF-8 | Python | false | false | 341 | py | def interact():
print('Please Enter in a number to be squared\n')
while True:
try:
reply = input('#Number: ')
num = int(reply)
print('%d Squared is %d\n' % (num, num ** 2))
except EOFError:
print('Goodbye')
break
if __name__ == '__mai... | [
"nikolitilden@gmail.com"
] | nikolitilden@gmail.com |
3a301c4d54e8b1e8312b592333217600e6f910da | 256cb662dcdaeba459064fb54c75638e14456c14 | /app.py | 8891d6fab105b71a9d0435d9c1f6f0771cdde5e9 | [] | no_license | enakann/docker_demo | b8137fc0dc70373a71396a8ddd5e2f8107e67e18 | 2350e31dd05ecf451604b7335363ef2590c06615 | refs/heads/master | 2020-04-22T10:21:44.185791 | 2019-02-12T10:58:00 | 2019-02-12T10:58:00 | 170,302,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import time
import redis
from flask import Flask
app = Flask(__name__)
cache = redis.Redis(host='redis', port=6379)
def get_hit_count():
retries = 5
while True:
try:
return cache.incr('hits')
except redis.exceptions.ConnectionError as exc:
if retries == 0:
... | [
"navaneetha.k.kannan@oracle.com"
] | navaneetha.k.kannan@oracle.com |
db98927911a628679a131f0e9ff34bd1a1af005c | ad4f1982406298fb2bbf1b652f75ac0b947c8e8d | /translator/urls.py | 86b560cdbc20c310790ced8aa42c3fa2eb367562 | [] | no_license | CodyBuilder-dev/dbeaver-translator | a02fb9b852e4dd13720029de485942a216a2a393 | 45d844ab007185807614c8d36f9aa1ce92618e66 | refs/heads/main | 2023-03-22T05:18:35.935223 | 2021-03-18T17:39:31 | 2021-03-18T17:39:31 | 347,365,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
# 이름공간(namespace)설정
app_name = "translator"
urlpatterns = [
path('', views.index, name='index'),
path('<int:property_id>',views.detail, name='detail'),
path('<int:property_id>/en',v... | [
"imspecial1@u.sogang.ac.kr"
] | imspecial1@u.sogang.ac.kr |
4d51cd50c785bb6adf59befacd89766c3820a7c4 | 7b64cc8d1f0f0be7d4506c7ed66c7b33dc3473a8 | /configuration.py | f1a472ca3b9516162c58b1f16d6ac58f01323944 | [
"MIT"
] | permissive | VeeamExternalQAGitHubNutanixMine/python-covid19 | c266b1db10ddefda0da99a353a0ff2b988749419 | 25f8a07e946ee034067386004ae2303c2cf6e101 | refs/heads/master | 2022-04-11T21:22:47.160173 | 2020-03-26T11:54:05 | 2020-03-26T11:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | botToken = "TOKEN"
apiUrl = "https://covid-193.p.rapidapi.com/statistics"
apiHost = "covid-193.p.rapidapi.com"
apiKey = "APIKEY"
apiHeaders = {
'x-rapidapi-host': apiHost,
'x-rapidapi-key': apiKey
} | [
"vip.lichenko@gmail.com"
] | vip.lichenko@gmail.com |
830d91182f21ac504c422ab3aa5017122b885a7a | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/aiplatform/v1/aiplatform-v1-py/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/base.py | 53fb48a2a141f1fcfe6f968ead38b0499ebae0a6 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,813 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
112e1194e2ad853ea655118ba1b6287588431db2 | eebafeddcdbb520ab2afcac4e9d7dd75c58318af | /SAM/models/get_cluster_top_10.py | 4bba2c98a9d1fa1fc2fd30255e094448e0952e04 | [
"MIT",
"CC-BY-4.0"
] | permissive | choderalab/SETD8-materials | 0e91f1c7c0348d4aa100df6bc33b16ab3ab96555 | 60a03632c8667ca91514f41a48cb27a255a47821 | refs/heads/master | 2021-09-21T04:12:22.596465 | 2018-08-20T00:36:45 | 2018-08-20T00:36:45 | 145,294,223 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import numpy as np
import mdtraj as md
cluster_top_10 = np.load('cluster_top_10.npy')
for i in range(100):
top_10 = cluster_top_10[i]
if len(top_10) == 0:
continue
frame_count = 0
for frame in top_10:
if frame_count == 0:
traj = md.load('/cbio/jclab/home/rafal.wiewiora/repo... | [
"rafwiewiora@gmail.com"
] | rafwiewiora@gmail.com |
a7a855f2bc2733a41b4ce62c4173792e21894fe8 | d1cd0904fc66881907c83220a16d827e8dfcfaaf | /chapter5/chapter5.py | c15b5649471b2a290eaa78463366769d9da8a72b | [] | no_license | wenshijie/Foundations_Of_Algorithms | ebaa946d0d90cb5159684a103f32f5eb9c3e8bb4 | beb0671ae55b165b24be0e6935c4a0b7143b6f8e | refs/heads/master | 2020-05-03T14:13:49.552350 | 2019-03-31T10:20:16 | 2019-03-31T10:21:03 | 178,671,582 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,055 | py | # -*- coding: utf-8 -*-
"""
Created on =2019-01-10
@author: wenshijie
"""
# chapter5
import numpy as np
import random
# 算法 5.1 n皇后问题
def queens(n):
result = [0]*n
def _promising(ii):
k = 0
switch = True
while (k < ii) & switch:
if (result[k] == result[ii]) | (abs(result[k... | [
"276656491@qq.com"
] | 276656491@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.