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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cee7d58e7a3f76db5425f218912c825c9fd99d9b | b15a365762fb0089588ad18e479906ea91d8b42d | /untitled3.py | b5f3537fb7a872e5aaf912d8bded7775ac4206a9 | [] | no_license | martindrech/sigma | 94d4ecb2cf6b622251badabe53c6410b3820c282 | 538bc93627a52fad0b0bc4b05b48b18c402d6414 | refs/heads/master | 2020-06-04T21:55:37.672297 | 2015-08-02T16:12:54 | 2015-08-02T16:12:54 | 31,688,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 10 22:40:04 2015
@author: martin
"""
from __future__ import division
import numpy as np
import sigma as si
import pylab as plt
def z(t, w, g, c, nu):
def integr(s):
return si.G(t, s, c, nu) * np.exp(g*s/2+1j*w*s)
ret = si.complex_int(integr, 0, t)
... | [
"martindrech@gmail.com"
] | martindrech@gmail.com |
742ed5a7da53469a0161d9225e9841a8d8cd06b4 | 90ec9a009d84dd7eebbd93de4f4b9de553326a39 | /app/customer/views.py | f18aa6381cc21c8fb4bfde7ab8a60775f87a3157 | [] | no_license | alexiuasse/NipponArDjango | 18a86bb108b9d72b36c8adf7c4344398cc4ca6b2 | ddc541a8d7e4428bde63c56f44354d6f82e0f40d | refs/heads/master | 2023-08-03T12:16:56.431870 | 2021-07-15T23:43:33 | 2021-07-15T23:43:33 | 278,093,323 | 0 | 0 | null | 2021-09-22T20:04:15 | 2020-07-08T13:13:22 | CSS | UTF-8 | Python | false | false | 7,674 | py | # Created by Alex Matos Iuasse.
# Copyright (c) 2020. All rights reserved.
# Last modified 24/08/2020 17:44.
from typing import Dict, Any
from django.contrib.admin.utils import NestedObjects
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from django.shortcuts import render
from ... | [
"alexiuasse@gmail.com"
] | alexiuasse@gmail.com |
14378df2d496adc2ab62a597cefb735979db3c8d | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/muahangtructuyencomvn.py | e3ab3bbbf0f13987eaeba9a31f3ed5a9bd875132 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='product-info']/h1[@class='mainbox-title']",
'price' : "//div[@class='product-info']/div[@class='clear']/p/span/span/span... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
65d2e16d30d3437d080e944397a7bc8e7d94e0ce | 6c74173a1f83d511896a5c22b5b2d3c468107e74 | /networking/networkcommonserver.py | 4d921f8f4ebffad69b7b9c06ab609d1cd509f1e9 | [] | no_license | lmlwci0m/python-lab | 6e625de0e747aa979b1d62dbd855b9f2df665629 | 85b73e1b5ed41a0d5ce93aab16b6dc027a0e4a63 | refs/heads/master | 2021-01-10T19:41:19.412400 | 2015-04-05T10:40:25 | 2015-04-05T10:40:25 | 18,174,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,492 | py | from . import networkcommon
__author__ = 'roberto'
class AbstractProtocolServer(networkcommon.AbstractProtocol):
"""General implementation of socket wrapper for initialization.
General steps for sending a message:
Step 1: prepare message
self.data["MESSAGE"] = "messaage cont... | [
"greatswell@gmail.com"
] | greatswell@gmail.com |
a96bfe6a1411630ab62baed1ead22761cab1dc77 | 6f82a98751f27d07a947f3a22b8523b2d0b9c0db | /oneclickvitals/migrations/0016_auto_20150424_2259.py | f6260f83a8b0cc043d7c6c66c3a6f3e68f2fb06a | [] | no_license | SirishaDumpala/MedicalProject | 6078bcc3098750e4afcf4af42002cb5e424099b7 | 83fec120bdf41e673f7672576a481d334e4d4289 | refs/heads/master | 2021-01-19T06:53:14.091093 | 2015-04-28T18:41:44 | 2015-04-28T18:41:44 | 31,844,156 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('oneclickvitals', '0015_auto_20150424_2253'),
]
operations = [
migrations.AlterField(
model_name='vitalsigns',
... | [
"birlangisiri@gmail.com"
] | birlangisiri@gmail.com |
51389e06614be3de956643fd95cb5362b82624e7 | 2f88d4898acf440034bdcda5136c05169ed08f80 | /pysrc/veloplot.py | e424199418cdb2f0d95b09398f624e4d622ede47 | [] | no_license | LeeviT/pipeaggrot | 2a45a083b320bb2671d19ad7aff37e0e13777ab8 | 06d5d12fcd55322cf9e85500118678019339de59 | refs/heads/master | 2020-05-30T20:52:25.952171 | 2019-08-06T10:05:27 | 2019-08-06T10:05:27 | 189,958,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import matplotlib.pyplot as plt
import numpy as np
print(plt.style.available)
plt.style.use('bmh')
plt.rcParams['figure.dpi'] = 200
def readfile(filename):
with open(filename, 'r') as data:
t = []
visc = []
for line in data:
p = line.split()
t.append(float(p[0]))
... | [
"leevi.tuikka@helsinki.fi"
] | leevi.tuikka@helsinki.fi |
546775c9767a1f1343ea740e1b3c28f748d5e013 | 4ace190b3e41eebf98e01b0c662e3b091e758231 | /app/models.py | 85d257282b4c14d78c76e788e8dc6eb711581f61 | [] | no_license | wongemilie/twitter-api | 2280bdf855b58c9eca5d2abd26fef65b08b3aea8 | b805001b0bd91522cec0bd2114aac7aea40ab698 | refs/heads/master | 2023-01-31T22:39:14.800056 | 2020-12-17T10:03:21 | 2020-12-17T10:03:21 | 322,252,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # app/models.py
import datetime
class Tweet:
def __init__(self, text):
self.id = None
self.text = text
self.created_at = datetime.datetime.now()
print(f'Tweet \"{self.text}\" created at {self.created_at}')
| [
"wongemilie@gmail.com"
] | wongemilie@gmail.com |
ce2343c09e39f921202647e30c1bfea5cae7d3a8 | 463c053bcf3f4a7337b634890720ea9467f14c87 | /rllib/examples/deterministic_training.py | 3a0a9c725acda75ce6b9cd7557c4fb04fd59a650 | [
"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,464 | py | """
Example of a fully deterministic, repeatable RLlib train run using
the "seed" config key.
"""
import argparse
import ray
from ray import tune
from ray.rllib.examples.env.env_using_remote_actor import (
CartPoleWithRemoteParamServer,
ParameterStorage,
)
from ray.rllib.policy.sample_batch import DEFAULT_POLI... | [
"noreply@github.com"
] | noreply@github.com |
923d64fcd4896fae7d7738ceb42a31d3429f994e | 9a7c356cc061660fe3c3aa348ba5645885e54199 | /crawling/sss.py | f5577da0450d7046c7bbdd52d6c895fe504e7a72 | [] | no_license | o1rooda/CT | 6941e9bd506eedd347a3004f9e65b58967f1e3f7 | d4f4bb1e5309b8809f59a820e3645363c824969e | refs/heads/master | 2021-01-18T22:27:50.235565 | 2016-06-15T07:48:41 | 2016-06-15T07:48:41 | 31,879,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import requests
from bs4 import BeautifulSoup
def spider(max_pages):
page = 1
while page < max_pages:
url = 'http://creativeworks.tistory.com/' + str(page)
source_code = requests.get(url)
plain_text = source_code.text
soup = BeautifulSoup(plain_text, 'lxml')
for link in soup.se... | [
"o1roodaa@bitbucket.org"
] | o1roodaa@bitbucket.org |
b69d77bed712f5e5879450544915df9006afc0cc | 40b31d45c216a876843b9285be626180e7e989c9 | /novaagent/__init__.py | a46e74db9c3f0d040015cbc7e988088a38ea173b | [
"Apache-2.0"
] | permissive | inflatador/nova-agent | 7221d492f35d4862e482e3803358a514e6a012d4 | c0449d500166f4adf3cd753dddb7c67087260bb1 | refs/heads/master | 2020-03-23T13:44:16.624566 | 2018-06-28T19:58:18 | 2018-06-28T19:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py |
__version__ = '2.1.14'
| [
"david.kludt@rackspace.com"
] | david.kludt@rackspace.com |
70bc9625d5cf57db45522a7dfa88e511c2a55fd0 | e488ca2caa5d10585b484617e3b2cb9fb8222e95 | /lab6.py | 6de2c7f5cfcc22d0ab787d47cbcc51f532c8cee8 | [] | no_license | JustynaKloc/SystemyInteligentne2 | 1516a4399c17718c7d53a45d5f37cdc88c035ddd | 61069648878674823cc426e178071aa587797ec4 | refs/heads/master | 2021-02-08T14:42:19.003018 | 2020-03-01T14:27:17 | 2020-03-01T14:27:17 | 244,162,510 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | # Algorytm roju cząstek
# Wybiermay najlepszą cząsteczke z roju
# Każdą pozycje zapamiętujemy jako najlepszą pozycję tej cząsteczki
# Nadajemy im prędkości i kierunek
# Iterujemy przez wszystkie cząsteczki i modyfikujemy prędkość biorąc pod uwagę trzy czynniki
# V = a1 * v + a2 * c + a3 * r
# c - mądrość samej ... | [
"jkloc96@gmail.com"
] | jkloc96@gmail.com |
80de93ce6ac31685b8012386a62622a1db6f1fc7 | aa9297175621fcd499cad5a0373aaad15f33cde8 | /impractical_py_projects/04/null_cipher_finder.py | 217c00b8e15b8e5e7cc33e404b729d1f1166c3ca | [] | no_license | eflipe/python-exercises | a64e88affe8f9deb34e8aa29a23a68c25e7ba08a | b7a429f57a5e4c5dda7c77db5721ca66a401d0a3 | refs/heads/master | 2023-04-26T19:19:28.674350 | 2022-07-19T20:53:09 | 2022-07-19T20:53:09 | 192,589,885 | 0 | 0 | null | 2023-04-21T21:23:14 | 2019-06-18T18:06:14 | HTML | UTF-8 | Python | false | false | 1,433 | py | import sys
import string
def load_text(file):
"""Load a text file as a string"""
with open(file) as f:
file = f.read().strip()
return file
def sole_null_cipher(message, lookahead):
for i in range(1, lookahead+1):
plaintext = ''
count = 0
found_first = False
... | [
"felipecabaleiro@gmail.com"
] | felipecabaleiro@gmail.com |
f9ac252177ad6e419233ca977c739c8b9a08c30c | 4bf5a16c17f888d5e0a2b043a6b752a6111824fd | /src/biotite/structure/util.py | 34495270dbcba6c8b3f79077462e59bc1fe60708 | [
"BSD-3-Clause"
] | permissive | AAABioInfo/biotite | 1b0e8c6d6fbc870ff894fc1ae91c32fe6568aed3 | 693f347534bcf2c8894bbcabf68c225c43190ec6 | refs/heads/master | 2022-07-06T01:15:25.373371 | 2020-05-18T13:27:01 | 2020-05-18T13:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
"""
Utility functions for in internal use in `Bio.Structure` package
"""
__name__ = "biotite.structure"
__author__ = "Patrick Kunzmann"
__all__ = ["vector_dot", "n... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
6adc753cf5c0b93e22a7d940f84597658076e3fa | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /F/FindResultantArrayAfterRemovingAnagrams.py | b380d59a74a054967ffe8ad6c2e2113609d1576b | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | '''
-Easy-
You are given a 0-indexed string array words, where words[i] consists of lowercase English letters.
In one operation, select any index i such that 0 < i < words.length and words[i - 1] and words[i] are anagrams, and delete words[i] from words. Keep performing this operation as long as you can select an in... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
5bcb035cf97f731d440b2502442540cf8ad2e3f7 | 62125f6709b650a0b9c6571be75d3dcb304590bd | /weather/weather/pipelines2mysql.py | 679aeb32f98d1837267c699f2e032c2ea67f2d4f | [] | no_license | nerowpt/scrapy | d4759487eb938786e44fb59d1d046547bf99f8a2 | 728b50de3c69c1ce32ea0ec7348130ff10852507 | refs/heads/master | 2020-03-29T05:12:57.703771 | 2018-09-25T03:45:48 | 2018-09-25T03:45:48 | 149,573,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import MySQLdb
import os.path
from myLog import MyLog
class WeatherPipeline(object):
def process_item(self, item, spider... | [
"nerowpt001@163.com"
] | nerowpt001@163.com |
e3890f66eac580560eb77c7bfac1d6a1ac439452 | d47c2590b20f06b9d97322ceb1c7cce5300bc485 | /exercise/map_reduce.py | 6c4b200fb17c24dc1ddde998a471c3fcda2f0034 | [] | no_license | PayneJay/python_study | a318cf533bf8eb811c2a9ddfd48381e089f562fd | cb7a43a2117b87f15de1b81b5bcf8f339f2b2847 | refs/heads/master | 2020-03-22T21:14:22.326838 | 2019-04-15T03:21:27 | 2019-04-15T03:21:27 | 140,669,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | # 这是python高阶函数的用法的练习测试文件
from functools import reduce
import math
# Python内建了map()和reduce()函数。
def f(x):
return x * x
def sum(a, b):
return a + b
def quadrature(a, b):
return a * b
def normalize(name):
return name.capitalize()
def prod(L):
return reduce(quadrature, L)
def str2float(s):
... | [
"noreply@github.com"
] | noreply@github.com |
4d1993c1cd67c7fa1d0883f103cd55e5859d13ac | d4ef384596e13256ba0921ee2c05d66302018769 | /src/test/python/find_projection.py | 3b6b40faf354d41dad93d8db83950d5c78ca6b51 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | nightlark/xlang | 876c84d76ef35e63e249b5cbbd2a8be23fbd5d73 | a381bac0f32aaef6f0e7a0e81da3c0fc71a7c253 | refs/heads/master | 2020-04-03T14:00:09.702385 | 2018-10-30T16:18:02 | 2018-10-30T23:57:55 | 155,307,911 | 0 | 0 | MIT | 2018-10-30T23:57:56 | 2018-10-30T01:51:02 | C++ | UTF-8 | Python | false | false | 404 | py | from inspect import currentframe, getframeinfo
from pathlib import Path
import sys
filename = getframeinfo(currentframe()).filename
test_root = Path(filename).resolve().parent
vi = sys.version_info
dirname = "lib.{2}-{0}.{1}".format(vi.major, vi.minor, "win-amd64" if sys.maxsize > 2**32 else "win32")
test_module_pat... | [
"noreply@github.com"
] | noreply@github.com |
30ae8f69c0a1559a1a7de6159242c3a6196787cd | 4bf83a2e21fb42540e2c34d2768bafe4ae3ad82b | /train.py | 23387fb529962780ee3aa01770f64a8a5d003f15 | [] | no_license | jayantkashyap/DLwP-Book | 3a320628029b7dec625d4c173d4998f7f365425a | 45b6cff67d7bd54b41540821bce27e5360b6382f | refs/heads/master | 2020-03-18T02:16:15.788483 | 2018-05-26T06:03:50 | 2018-05-26T06:03:50 | 130,595,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | class Train:
def __init__(self, X_train, y_train):
pass
def train(self):
pass
| [
"jayant.kashyap1@gmail.com"
] | jayant.kashyap1@gmail.com |
9ce74a7d029db1b8c32fd00e567386b56177fda7 | 0f6378b42f43e05a358ce66580f3bfb119e85c58 | /model/dangdang.py | 8335221fc18663ecac55a8f709134b5f4cba76d8 | [] | no_license | guoyu07/spider-2 | f7816b90bdc440155f4483442815d8ea9bc1c3c6 | 74102a335953b4c427388e05bfa63349ec2471e3 | refs/heads/master | 2021-01-19T21:55:48.258633 | 2017-03-16T01:56:05 | 2017-03-16T01:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,980 | py | from conf.py_global import *
class dangdang(CommonModel):
'''
当当数据操作类
'''
def __init__(self):
super().__init__()
def get_booknum_with_source_id(self, sourceId):
'''
根据源ID获取图书数量
'''
data = {}
data['sourceId'] = sourceId
data['___key'] ... | [
"diaoyinlong@kongfz.com"
] | diaoyinlong@kongfz.com |
8fa63c2339cfd28ae7b5f28a84527ee2f81d8258 | 78d601bb38c8138ac9a447995e605bcabbd2dc61 | /python_intro.py | 023f039b427926ef5f78ac98f0c62d45a6f747a7 | [] | no_license | tiziaGH/django | 2074b08133af8c820e794d593ce32647aba79ad9 | 09df6e9c5e5ab421ac32ad6ab03c07369f2697a0 | refs/heads/master | 2021-01-20T13:06:32.862968 | 2017-05-07T12:02:04 | 2017-05-07T12:02:04 | 90,449,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | person = {'name':'Alice'}
person2 = {'name':'Susi'}
var = 1+3
text = 'name \n nachname
print('Hello ' + person['name'] + ' ' + person2['name'] + ' ' +
str(var) + text)
| [
"femisanum@gmail.com"
] | femisanum@gmail.com |
a10ff5f87297c4ca635cbec45e43792d8be7f313 | 704aba79d5257d5710312e4e091f6c1acbc73752 | /data_types/lancuchy_znakowe.py | 260c47ed0795df08e9ab651e976dded7a984f5cc | [] | no_license | wkwiatkowski/kurs-py | 9ae5a63071ec45c2b0613b94f3ebaac501a2636d | 6c90353e9df64e250cc23034a18a672ea9b34a31 | refs/heads/master | 2021-01-19T14:59:22.228494 | 2017-08-28T12:43:06 | 2017-08-28T12:43:06 | 100,935,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | """
Napisy - lancuchy znakow
typ - string
"""
napis="Moj napis"
print(napis)
napis2='Drugi napis'
print(napis2)
napis3="Trzeci \"napis\""
print(napis3)
# tabulator
napis4="Tekst z tabulatore\t i znakiem\n nowego wiersza"
print(napis4)
napis5='''wiersz o
wielu
wierszach'''
print(napis5)
print("zielone"+"jablko")
... | [
"wkwiatkowski@hindukusz.com"
] | wkwiatkowski@hindukusz.com |
9e303594d2862cc8e121df1d47d6b0e0456b7f1a | fca099e6d6d357e210424e30ad557911c393c26c | /.venv/bin/ipython | aad61563ea8d7bce12dc0849fceb4da9d4054927 | [] | no_license | ARAMULEWESLEY/Crowd_Funding | bf33df2efff392415a8fcc4a6e46d0c6440159cf | afb9827346e1ff04a97f31dc5ca4ab028ebd0ab9 | refs/heads/master | 2023-03-16T03:55:14.599959 | 2021-02-06T11:58:19 | 2021-02-06T11:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | #!/media/eladawy/BE6E56F16E56A1C7/python/ITI_Python_Track/Django/Project/Crowd-Funding/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"promostafaeladawy@gmail.com"
] | promostafaeladawy@gmail.com | |
c66a9f41a1af8c37878ba89473eb326c828497d3 | 828a2023f3f3cece0257ffa4fcc1728ebdc78dab | /ListMethodsFile.py | 24ad32687bade875bdcb9902f30ef6a4aee52e12 | [] | no_license | JacksonJ01/List-Operations | 2f3bd3311545b7a182306e2dde4943ba3ea4b13a | a7b9fb41f573228f3bf9ac571a2c181479f2caca | refs/heads/master | 2021-01-02T10:21:52.551620 | 2020-02-13T03:05:38 | 2020-02-13T03:05:38 | 239,576,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,987 | py | # Jackson J.
# 2/10/20
# List Operations with numbers
import time
numbers = []
def time_():
return time.sleep(2)
# This appends the user input to the List
def adding():
return numbers.append(int(input(">>>")))
# This sums up all the values added into the List
def sort():
numbers.sort()
return
# ... | [
"jacksonj@hartwick.edu"
] | jacksonj@hartwick.edu |
972393d831066802b729d6b5be3c85bde820f014 | 8258e8a63507041f65f6add694d0d06f57fece90 | /jobs/migrations/0002_job_title.py | 57199b0352940eaa40935c4d74244c4ad581e2b2 | [] | no_license | RolandCasset/portfolio-project | 0a44ad54f325fe08d52850126d69cafcf488910e | 01b2266f87ce6600f02bdf64107d4fd974783fdd | refs/heads/main | 2022-12-29T06:13:32.161577 | 2020-10-11T08:22:51 | 2020-10-11T08:22:51 | 301,333,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Generated by Django 3.0.3 on 2020-09-23 06:19
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('jobs', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='job',
name='t... | [
"joshua5750@gmail.com"
] | joshua5750@gmail.com |
a8dcd8d1442f03ac5e0ef3396d115ae8b1053244 | 1304be78718e6f1e937f5b475bb82bd8fab9b795 | /virtual/bin/rst2man.py | b170daef76a803c2cd607128a01341d99f783812 | [
"MIT"
] | permissive | jos3duardo/cookiecutter-django | 28a4d29614328a4da1c49bc5fbcd2219ac991ef0 | 7a5a1410e7fe3eda7de60e0b435a49b0678b7c76 | refs/heads/master | 2022-04-11T16:30:01.089277 | 2020-03-13T23:43:28 | 2020-03-13T23:43:28 | 247,178,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/home/jos3duardo/meu_projeto/virtual/bin/python3.8
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
"""
import locale... | [
"jos3duardolopes@gmail.com"
] | jos3duardolopes@gmail.com |
0cb624d9ce07427171ce1e2d1cd5c6a5899d6085 | 11c4826c0a49a1632403c6b6f3fd2da5431f6c81 | /projects/first_project/first_project/settings.py | c6a9283a2f0bdd58ec2534c515d47f4c83d99940 | [] | no_license | vortex1337/My_Django_Stuff | d005753622c3214787cf754a598975f3082a16e7 | 0b84c9488215cabf20c8b1f4f68c078212fba123 | refs/heads/master | 2020-06-23T14:23:01.938262 | 2019-07-29T14:08:33 | 2019-07-29T14:08:33 | 198,648,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | """
Django settings for first_project project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"petardobrinov95@gmail.com"
] | petardobrinov95@gmail.com |
777bebd52c1dd8e6f47068328b5661c84dd4a0bc | 7123525498e71ca7c8f537351f158ce72683ceff | /yazilar/migrations/0006_auto_20200814_0218.py | 9826c0410e199acacb4987947104025a032d4a42 | [] | no_license | memmynn/yazilar | eb84770962f900f9221815a26324e80bef39e176 | cd00f5b5af8981f4012bf5803c620f1e923048b6 | refs/heads/master | 2022-11-30T01:18:43.715073 | 2020-08-13T23:57:34 | 2020-08-13T23:57:34 | 277,371,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Generated by Django 3.0.7 on 2020-08-13 23:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yazilar', '0005_auto_20200814_0214'),
]
operations = [
migrations.AlterField(
model_name='yazi',
name='konu',
... | [
"mehmetuyarwww@hotmail.com"
] | mehmetuyarwww@hotmail.com |
00d1371f87cc420edf98aa4bdbeb20660cdd6cda | adef6e19094b526a714253032eaf9068075b70a0 | /Tools/maintenance_mode/maint_mode.py | 1b7e74b047e4ab87bf690417466cd8e9e310cda0 | [] | no_license | brianjmartin86/NetworkingTools | 16563295de7bb24a0e65944a7d3547e4e49039f6 | 402255b8f15798676c8e34be225640931c602e06 | refs/heads/master | 2020-06-14T22:09:12.726339 | 2017-10-24T20:15:24 | 2017-10-24T20:15:24 | 75,404,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,355 | py | #!/usr/bin/env python
import argparse
from cli import *
# Obtain User Arguments for either 'maintenance' or 'production'
def get_cli_args():
parser = argparse.ArgumentParser(
description='Enables or Disables Maintenance Mode for a Cisco NXOS 9k Switch'
)
parser.add_argument(
'-m', '--main... | [
"brian.martin@ctl.io"
] | brian.martin@ctl.io |
333339837c50b97c570aa2f3516ceef2e5c01b34 | 772c0c955eee54bfa8f483c52491c490c130e4bf | /function_7_returnMultiple.py | c8fd49366b085057b4fc23196729ef9ee48e83bf | [] | no_license | CGayatri/Python-Practice1 | 9bedd2beb3c2418ed7f6212ef2810b451a055fdf | 96d184628c9187db10ee4f0951805d157628ca8e | refs/heads/master | 2023-08-25T20:29:20.565673 | 2021-11-11T05:02:35 | 2021-11-11T05:02:35 | 426,872,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | ## Programm 7 - to understand how a function returns two values
# a function that returns two results
def sum_sub(a, b):
""" this function returns results of
addition and subtraction of a, b """
c = a + b
d = a - b
return c, d
# call function and get the results from sum_su... | [
"chaudharisimran1@gmail.com"
] | chaudharisimran1@gmail.com |
0021ef6500da82fd0eef3f81c991743e8796ead3 | a053677291f28fba838307e7b783d457ad8799f7 | /server/server.py | 2ae4b0426f42251e10debd0911ba57724b4bf1b3 | [] | no_license | yizZhang0421/lego_coco_project | 76f4f3ff9b8ed736fa7ba3b92298b92d5423b9dd | 0db51321dde242e84a97f12e8b0414bb0ee3f652 | refs/heads/master | 2020-08-01T15:32:26.734559 | 2019-09-27T08:29:10 | 2019-09-27T08:29:10 | 211,034,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | #import os
#os.chdir('C:/Users/Administrator/Desktop/face_recognize_demo/darkflow-master')
from darkflow.net.build import TFNet
import cv2, base64
import numpy as np
options = {"model": "cfg/tiny-yolo-voc.cfg", "load": "bin/tiny-yolo-voc.weights", "threshold": 0.1}
tfnet = TFNet(options)
detect_list=['bottle','pottedpl... | [
"h24563026@mailst.cjcu.edu.tw"
] | h24563026@mailst.cjcu.edu.tw |
b93fc72ba56d8ae127583f7676c933dc0ec0576c | 8f6f265f9ddabd13bedd025934950522c1259b14 | /chapter6/tf_tutorial/scripts/tf_broadcaster.py | 3d3453399526e734d3b58f99cef708f9e985d26d | [] | no_license | Nishida-Lab/rosbook_pkgs | 253899fffaeb6f57b2a69d4d295bf1ca000f1aca | 5cc8a4cb127b1762d8503940480d3851776ff023 | refs/heads/master | 2022-02-20T22:09:36.816937 | 2022-02-12T16:14:30 | 2022-02-12T16:14:30 | 94,105,317 | 49 | 18 | null | 2020-04-24T03:22:59 | 2017-06-12T14:26:37 | C++ | UTF-8 | Python | false | false | 523 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import tf
if __name__ == '__main__':
rospy.init_node('tf_broadcaster')
br = tf.TransformBroadcaster()
r = rospy.Rate(1.0)
while not rospy.is_shutdown():
translation = (0, 0, 1.0)
rotation = tf.transformations.quaternion_f... | [
"k104073r@mail.kyutech.jp"
] | k104073r@mail.kyutech.jp |
d300fdcf8205c9e47b07be2758828dc25be21587 | 00a14bbc3decd90b64d8a9d7be5274271465207e | /app/views.py | 95590ab6950ae7ac73abfd01210f6ac129aba56e | [] | no_license | hkkdev/flask-test | 9b1d0948d66bd94262c2a824441b63ac0bde7f89 | e21cf7937ccc905a2696939017435a2361ae7533 | refs/heads/master | 2021-01-25T04:03:20.083910 | 2014-08-31T23:01:19 | 2014-08-31T23:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # -*- coding: utf-8 -*-
# views.py
from app import app
from flask import Flask, render_template
@app.route('/')
def home():
return render_template("temp.html")
# NOThiNG HERE
| [
"hkkdev@outlook.com"
] | hkkdev@outlook.com |
fc44fcee42eec03edbd878fca71fe9b33666b55a | 1ad2d26ea43b5db97a4ebcaaa17e6b305cd91764 | /fully_connected/iris_deep_tf.py | 541d35a5a8f630b6087c0062dea0894cb0e45f74 | [] | no_license | gafalcon/machine_learning | 77f849e53f3bf2853b6b6cb5a39bd7d1d6853bcd | 0d21cf8e0802dd084bdb8201f0a4ea2ca74218c3 | refs/heads/master | 2018-10-23T10:49:32.106923 | 2018-08-21T18:13:20 | 2018-08-21T18:13:20 | 108,449,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import urllib.request
import numpy as np
import tensorflow as tf
# Data sets
IRIS_TRAINING = "iris_training.csv"
IRIS_TRAINING_URL = "http://download.tensorflow.org/data/iris_training.csv"
IRIS_TES... | [
"gafalcon@espol.edu.ec"
] | gafalcon@espol.edu.ec |
f7dd8f55dc709f693b0211d8fcd73662147731f0 | 5574620c834f96d4baf50d6aa349242dae7c17af | /41.first-missing-positive.py | 76b5ddd14a2ff4b66c5f2817265ba08c132b15ab | [] | no_license | Ming-H/leetcode | 52dceba5f9a605afbdaa65e286a37205873e21bb | 057cee4b830603ac12976ed7d5cea8d06a9b46a0 | refs/heads/main | 2023-09-02T21:30:48.796395 | 2023-09-01T01:59:48 | 2023-09-01T01:59:48 | 489,290,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #
# @lc app=leetcode id=41 lang=python3
#
# [41] First Missing Positive
#
class Solution:
def firstMissingPositive(self, nums):
"""
不能用额外空间,那就只有利用数组本身,跟Counting sort一样,
利用数组的index来作为数字本身的索引,把正数按照递增顺序依次放到数组中。
即让A[0]=1, A[1]=2, A[2]=3, ... , 这样一来,最后如果哪个数组元素
违反了A[i]=i+1即说明i+1就是我... | [
"1518246548@qq.com"
] | 1518246548@qq.com |
d28bf400e50f8c6d766ed1c1fb8dc15f1e4e723f | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/trailing_comma_tuple.py | a832ccc28973265a5df8150f54034ca8fc5a239a | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 732 | py | """Check trailing comma one element tuples."""
# pylint: disable=bad-whitespace, missing-docstring
AAA = 1, # [trailing-comma-tuple]
BBB = "aaaa", # [trailing-comma-tuple]
CCC="aaa", # [trailing-comma-tuple]
FFF=['f'], # [trailing-comma-tuple]
BBB = 1, 2
CCC = (1, 2, 3)
DDD = (
1, 2, 3,
)
EEE = (
"aaa",
)
de... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
a695363c9a988dfa703820d12e75c7caa665d98b | 0dca683651929367360fe5d0062c923196302d64 | /patchlib/api/community_patch.py | 880924850fd92313ab73dc9966dd4420eac57188 | [
"MIT"
] | permissive | brysontyrrell/PatchCLI | 5faf6ede343754f4bc00242cd2dd007c1a4bb3a7 | 629104181781d40ef230b7886960c5173bc05055 | refs/heads/master | 2020-04-02T18:16:36.059298 | 2018-10-30T18:32:42 | 2018-10-30T18:32:42 | 154,693,868 | 11 | 2 | MIT | 2019-10-18T15:33:41 | 2018-10-25T15:22:44 | Python | UTF-8 | Python | false | false | 1,308 | py | import jwt
from patchlib.api.shared import PatchApiCore
class CommunityPatch(PatchApiCore):
def __init__(self, token, beta=False):
url = 'https://www.communitypatch.com' \
if not beta \
else 'https://beta2.communitypatch.com'
decoded_token = jwt.decode(token, verify=False... | [
"bryson.tyrrell@jamf.com"
] | bryson.tyrrell@jamf.com |
8f45449321a5adb1d6a2ce67e3c95f9326b084e7 | e9c653cd5e88eca353f81c29c3fdbf003adbf486 | /DeepLearning/numpyMNIST/neuralnet.py | aa4c88ff3602ad844f81cb7fddde56a9d9f28892 | [] | no_license | arun96/tools | d5199d29613dcaf6f0acaf2082f0168293611a0c | 666f8040739bca0ad637d45ebbfa5f35d1c01cb1 | refs/heads/master | 2020-03-21T16:05:07.965374 | 2018-12-07T18:45:24 | 2018-12-07T18:45:24 | 138,749,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import os
import struct
import numpy as np
import gzip
import matplotlib.pyplot as plt
import copy
import sys
# Main function
def main(xtrain, ytrain, xtest, ytest):
# Learning Rate
L = np.float64(0.5)
# Get the files
X_train, y_train = load_mnist(xtrain, ytrain)
#print('Training - Rows: %d, columns: %d' % (X_t... | [
"noreply@github.com"
] | noreply@github.com |
74cab68df99fe208e155a09d0919e59f22d12f0e | f29d2047a815569ab3989330fda8493b4e5748e2 | /args.py | fa08ad2ebb6868c92f31c66cad28941a79dc8fb1 | [] | no_license | tranminhduc4796/visual_odometry_deep_learning | 1fa007ec8c9a27cad51c254e72ed8f50b10fd890 | c2757a914e950bb6ba0e8206f8aff9897abf2063 | refs/heads/main | 2023-03-12T07:51:16.061382 | 2021-02-23T17:10:19 | 2021-02-24T02:30:34 | 334,084,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,736 | py | import argparse
parser = argparse.ArgumentParser()
""" Model Options """
parser.add_argument('-loadFlowNet',
help='Whether or not to load pretrained weights. '
'If yes: then specify the path to the saved weights',
default=None)
parser.add_argument('-mod... | [
"tranminhduc4796@gmail.com"
] | tranminhduc4796@gmail.com |
283575d0431210f70f269274660f9a4d6ba55839 | 667c324c7e8ac6a38cc91cd8ec4921a0dc9a0492 | /backend/accounts/models.py | 1340ee3158c537192b304432dd0f40f65bb50e5d | [] | no_license | litvaOo/elmy-clone | 86fdf80fff91642c088fa3cee50bd4ad32518afd | eb30b5fd2eb8cfc177f3c6fec53d61722c7fe9cd | refs/heads/master | 2021-05-08T02:33:48.277250 | 2017-10-23T16:11:21 | 2017-10-23T16:11:21 | 108,006,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class ServiceProvider(models.Model):
rating = models.DecimalField(max_digits=2, decimal_places=1)
description = models.CharField(max_length=1000)
latitude = models.FloatField(default=0)
longitude = models.FloatField(defau... | [
"alexander.ksenzov@gmail.com"
] | alexander.ksenzov@gmail.com |
ed647567db314bca1da8d00448fdcf841b3fba9d | 75d1deb961fc07bce97173b06a70a7bd47bcb828 | /gtk/ch6_listbox.py | 2a268602dba7c77975035c62e67718e8fd7396f0 | [
"Apache-2.0"
] | permissive | ykyang/org.allnix.python | de50bdff0f7b8e90f8793ab605478638da4e5a89 | f9d74db2db026b20e925ac40dbca7d21b3ac0b0f | refs/heads/main | 2021-09-21T23:07:08.354736 | 2021-07-15T19:07:31 | 2021-07-15T19:07:31 | 95,273,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | """
https://python-gtk-3-tutorial.readthedocs.io/en/latest/layout.html#listbox
@author: Yi-Kun Yang <ykyang@gmail.com>
"""
import gi
gi.require_version('Gtk', '3.0')
import gi.repository.Gtk as Gtk
class ListBoxRowWithData(Gtk.ListBoxRow):
def __init__(self, data):
super(Gtk.ListBoxRow, self).__init__()
... | [
"ykyang@gmail.com"
] | ykyang@gmail.com |
4a4ddb2518a2a42604cca510a55f5ce5107c9e12 | dc5080476a5faab934dac730b94e7e05537ff065 | /3 - Django/django_full_stack/tv_shows/apps/tv_shows_app/migrations/0002_auto_20191111_1952.py | 9de302860ce7985d7375608df7130b653ac2cdb2 | [] | no_license | jeremydabbs/coding-assignments-python | defecd4ced1d07f53beae21110c89401304eb32b | 56a134d155f79913eb5049886d96aba25cf7762a | refs/heads/master | 2021-01-05T12:13:42.692183 | 2020-02-17T04:48:32 | 2020-02-17T04:48:32 | 241,020,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-11-12 01:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tv_shows_app', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"56282992+jeremydabbs@users.noreply.github.com"
] | 56282992+jeremydabbs@users.noreply.github.com |
eb149502a29cdb85497e664c8f99857153704d69 | b417d71653e77dc778f7a4d75f9e8b3425848ac4 | /procedure.py | 8b944bad603be4fb0284ca2e885a24894398ddde | [] | no_license | LanglandsLin/MS2L | 3e20bd673ffff075c9b0ae3f853c89594e1e2039 | 4b666beb25817089ddedc6f0a9da9fe71158a3e0 | refs/heads/master | 2023-08-23T04:42:39.497084 | 2023-08-12T15:10:13 | 2023-08-12T15:10:13 | 384,094,198 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,184 | py | from config import *
from model import *
from dataset import DataSet
from logger import Log
import torch
import torch.nn as nn
from tqdm import tqdm
from torch.utils.tensorboard import SummaryWriter
class BaseProcessor:
@ex.capture
def load_data(self, train_list, train_label, train_frame, test_list, test_... | [
"linlilang@pku.edu.cn"
] | linlilang@pku.edu.cn |
f1a054be09d07b7608abc63b584a4f57d2038b03 | 5c19531f0435f127911b34cf64b5559e9e171a64 | /config.py | 5c97f4917ddffaf67480d6b7ce299567710bc038 | [] | no_license | fengchunlong/Library | 7d8b07af45721d9b4f85302185d45da1b90ef3a9 | 4f281418f67bad84164b539fd70c6c3bb07a2c34 | refs/heads/master | 2020-04-06T13:57:14.464255 | 2018-11-16T21:19:30 | 2018-11-16T21:19:30 | 157,521,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # -*- coding=utf-8 -*-
import os
class Config:
SECRET_KEY = 'mrsoft'
SQLALCHEMY_TRACK_MODIFICATIONS = True
@staticmethod
def init_app(app):
pass
# the config for development
class DevelopmentConfig(Config):
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:root@127.0.0.1:3306/library'
DE... | [
"694798056@qq.com"
] | 694798056@qq.com |
14e11b032a901b5d41fc99ca94c043982a5672e1 | c770f2ced4f93cc4fa4d6207583e7d5fc84911fc | /split_corpus.py | 253ef95a9ef08f7092af7a47557eab6d5fd96225 | [
"MIT"
] | permissive | a-hodges/metaphor_identification | 59551f9d74ed0ed90d190463325882bde23c1d76 | 89e1852452dc94041c7b44fb8e4532320ab9a183 | refs/heads/main | 2023-04-09T05:05:24.852825 | 2021-04-26T14:49:23 | 2021-04-26T14:49:23 | 347,169,724 | 0 | 0 | MIT | 2021-04-22T15:47:10 | 2021-03-12T19:01:32 | Python | UTF-8 | Python | false | false | 1,928 | py | """
Splits the VUAMC corpus into its respective genres
Expects the full British National Corpus XML edition to be available at data/2554/download
From: https://ota.bodleian.ox.ac.uk/repository/xmlui/handle/20.500.12024/2554
"""
from pathlib import Path
from collections import defaultdict
from bs4 import BeautifulSoup... | [
"16946799+a-hodges@users.noreply.github.com"
] | 16946799+a-hodges@users.noreply.github.com |
b30622071ac8d8b8f022702c199e4e3e3d14d14c | 9ed05e94ad0779adda724a15591c459f47cd083a | /scripts/visualize_genomic_elements.py | f07cf8f8c747c5756efd2bcd74e54120f5620300 | [
"BSD-3-Clause"
] | permissive | greenelab/tad_pathways | b9dad990a21dc30bb01fe9e6e8ed294ac9af18c7 | c871d99c6d73cc68f58ef89fffbc9b6bbefe416c | refs/heads/master | 2023-08-01T00:11:16.873202 | 2017-04-21T17:37:06 | 2017-04-21T17:37:06 | 65,410,058 | 1 | 2 | null | 2017-04-21T17:37:07 | 2016-08-10T19:21:20 | Python | UTF-8 | Python | false | false | 13,030 | py | """
2016 Gregory Way
scripts/visualize_genomic_elements.py
Description:
Summarizes the location of genomic elements across TADs
Usage:
Is called by 'scripts/visualize.sh' which is run inside of
'scripts/run_pipeline.sh'. This particular script will output the location
of genomic elements in a given input TAD
p... | [
"noreply@github.com"
] | noreply@github.com |
e47feb00913d465c0d0e472141b1ce3619f4d0ed | 6772366c837db17c2a948aad91d53227d566fea0 | /src/utils/json-to-dirs.py | 0792aa0053af446592865f0c85367cd1ae4614fd | [
"MIT"
] | permissive | stangelid/qt | c0ede36e48cedda22f9f8e627ad9d3ef20eb895b | c136ac00e03adf443b90cd65ba0523a3617be01f | refs/heads/main | 2023-06-19T00:23:53.618522 | 2021-07-14T09:47:21 | 2021-07-14T09:47:21 | 318,196,432 | 37 | 8 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | #!/usr/bin/env python3
import sys
import os
import os.path
import json
from nltk.tokenize import sent_tokenize
if len(sys.argv) < 3 or sys.argv[1][:2] == '-h':
print('usage: python3 json-to-dirs.py <json_file> <root_dir>')
jsonpath = sys.argv[1]
rootdir = sys.argv[2]
fjson = open(jsonpath, 'r')
data = json.load... | [
"s.angelidis@ed.ac.uk"
] | s.angelidis@ed.ac.uk |
399cd757e9aab5cf24e8d0e95de4977836c6e19d | 5f6edf313639dbe464a1c9cbb62762b427786235 | /crm/python/com/naswork/rfq/online/dasi.py | cbdfd76fc18e5ff175751aae4e95d2f9b86fe3dd | [] | no_license | magicgis/outfile | e69b785cd14ce7cb08d93d0f83b3f4c0b435b17b | 497635e2cd947811bf616304e9563e59f0ab4f56 | refs/heads/master | 2020-05-07T19:24:08.371572 | 2019-01-23T04:57:18 | 2019-01-23T04:57:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,605 | py | '''
Created on 21 July 2018
@author: tanoy
'''
import urllib2
import cookielib
from poster.encode import multipart_encode, MultipartParam
from poster.streaminghttp import register_openers
from bs4 import BeautifulSoup
import traceback
import MySQLdb
import math
import ssl
import requests
import re
import time
from ran... | [
"942364283@qq.com"
] | 942364283@qq.com |
a7c26984aed690a4bffc47db05dcfca2eaafb289 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/MaximumNestingDepthofTwoValidParenthesesStrings.py | 67d4f477e9fa483c28fe2874e85607452ffd9d93 | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | """
A string is a valid parentheses string (denoted VPS) if and only if it consists of "(" and ")" characters only, and:
It is the empty string, or
It can be written as AB (A concatenated with B), where A and B are VPS's, or
It can be written as (A), where A is a VPS.
We can similarly define the nesting depth depth(S)... | [
"here0009@163.com"
] | here0009@163.com |
6476b9c63b031f85010c02415d0d64ed9bb9f2ff | da40ea3e609d51e82b12ca518ee4f17b9dacb116 | /MERAKI/meraki_sdk.py | 07ca99c9e503ea2db18a7f8c64dba83b61f5b719 | [] | no_license | pratapmsurwase/ciscopletform | d618f30747e6899e3e089be2cbda8c32f7f16b87 | b7511e8a37d8babb80a421ea521e8f3abc018626 | refs/heads/main | 2023-02-28T00:42:28.097123 | 2021-02-06T16:11:04 | 2021-02-06T16:11:04 | 336,577,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py |
import meraki
import pprint
api_key = '6bec40cf957de430a6f1f2baa056b99a4fac9ea0'
url = 'https://dashboard.meraki.com'
org_name = 'Meraki Live Sandbox'
dashboard = meraki.DashboardAPI(
api_key = api_key,
base_url = url + '/api/v0',
output_log = False,
print_console = False
)
org_list = dashb... | [
"pratap7684@gmail.com"
] | pratap7684@gmail.com |
a5b70c3fa5b031cb64ff55f2488cba4c74b25dc5 | b4227febbaa0df97df9fbb4025e8fea3d1331b7f | /sq | d3597a88d4bef5e508e8b02e6b9a51c5b0411fc2 | [] | no_license | demonzhangzhe/python | ea0cb428ce21e9a0efb4367ffcb0e184addff207 | cfb40f9bff682227716b40bb99a6a4c1d9710ff3 | refs/heads/master | 2022-05-29T21:04:13.350015 | 2020-04-28T14:26:36 | 2020-04-28T14:26:36 | 259,619,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | #!/bin/python
import sys
import csv
import os
import subprocess
if not os.access('xxxxx',os.F_ok):
print("file has no exist!")
sys.exit(1)
dblist=csv.reader(os.popen("grep -v ^# xxxx"),delimiter=':',quotechar='"')
if len(sys.argv)==1:
for i in dblist:
print(i[0])
sys.exit(0)
for i in dblist:
ip=i[1]
d... | [
"349663408@qq.com"
] | 349663408@qq.com | |
a753f580eb7a0ad2bd3297d0cfca265d66ecb402 | e30161422832163cc3e278d3f7f21facf11199eb | /product/migrations/0001_initial.py | b4267e0bb5de090925fa36abe6c7a36c0680fa4f | [] | no_license | wecode-bootcamp-korea/9-WE_T_S-backend | 649578b8a1e87c24761a05e0a76b1a659da527e3 | 291c78d24b7bbb1ca21b7771a4985f056d15cd82 | refs/heads/master | 2022-12-02T14:33:12.748258 | 2020-07-05T03:55:05 | 2020-07-05T03:55:05 | 274,052,980 | 0 | 2 | null | 2020-07-05T03:55:07 | 2020-06-22T06:03:12 | Python | UTF-8 | Python | false | false | 3,239 | py | # Generated by Django 3.0.7 on 2020-06-26 06:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('menu', '0002_auto_20200625_1324'),
]
operations = [
migrations.CreateModel(
... | [
"nogwang-o@nogwang-oui-MacBookPro.local"
] | nogwang-o@nogwang-oui-MacBookPro.local |
c2650b437fa33fa35f8eb85795c80d842c9b0db9 | c0fc97f0e2ac7d0b42da98ecad244e9cc753fdb5 | /regression.py | 4c7aeb8cbadc8dc920ac9cff0e6120d8d271dcb2 | [] | no_license | Antberro/COVID19_Modeling | b12143ab1e1046052deced8448e088eeb273f415 | 3c6890b9722cd1eeb36a7e71e88819f7eef17636 | refs/heads/master | 2022-04-17T04:55:20.531414 | 2020-04-14T20:44:43 | 2020-04-14T20:44:43 | 252,631,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | import pandas as pd
import matplotlib.pyplot as plt
import os
from math import log, e, exp
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import cross_validate
def import_daily_data(country=None):
"""
Imports data and returns data for country arg grouped by day.
... | [
"antoniob@mit.edu"
] | antoniob@mit.edu |
62ad4080dd0976c5b20d683576ebb1390647e60c | a5eb8287ee63a63950837e1bac44e49e16fec76e | /Ruido_de_Leitura/Codigo/RNvariacaoTemporal.py | 77b217404ab6cec2788a1e716f75b77a30f12f38 | [
"MIT"
] | permissive | DBernardes/ProjetoECC | 96219bf147b3b9d5db08c804217da026107d0e99 | 36c6800f54cb527b81ce25456b6978548eb782bc | refs/heads/master | 2023-04-25T16:52:34.934050 | 2020-10-20T19:11:32 | 2020-10-20T19:11:32 | 74,565,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,098 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
Criado em 17 de Agosto 2016.
Descricao: este modulo possui como input uma serie de dados obtidos pelo CCDs, retornando o valor da mediana dos pixels
de cada imagem em funcao do tempo, assim como o desvio padrao absoluto. Alem disso, e calculada a transform... | [
"denis.bernardes099@gmail.com"
] | denis.bernardes099@gmail.com |
973985b9f213204d6193613b33715c89be7142b6 | 555b9f764d9bca5232360979460bc35c2f5ad424 | /google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2.py | 1ee3878ce83414b2d29fbf7d33f34fba67bb97ed | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | juanmacugat/google-ads-python | b50256163782bc0223bcd8b29f789d74f4cfad05 | 0fc8a7dbf31d9e8e2a4364df93bec5f6b7edd50a | refs/heads/master | 2021-02-18T17:00:22.067673 | 2020-03-05T16:13:57 | 2020-03-05T16:13:57 | 245,215,877 | 1 | 0 | Apache-2.0 | 2020-03-05T16:39:34 | 2020-03-05T16:39:33 | null | UTF-8 | Python | false | true | 5,671 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v1/proto/services/operating_system_version_constant_service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor... | [
"noreply@github.com"
] | noreply@github.com |
cf2901edbd6511a02d111b4d1c700a63f479a31e | d27a97334691bd4dcce72f772b382aacda5ab26f | /tests/rdf_album.py | fe438dcfc34744a41d358fd2a69623c7dfcc289e | [] | no_license | qood/vgmdb | e238c19d437eeb609466504d2a5d92416f936987 | 978f2245be746ea37faed2707e56c6002b8a0426 | refs/heads/master | 2021-01-24T01:11:25.427263 | 2015-08-05T05:41:50 | 2015-08-05T05:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,611 | py | # -*- coding: UTF-8 -*-
import os
import datetime
import unittest
import decimal
from ._rdf import TestRDF
from vgmdb.parsers import album
from vgmdb.config import BASE_URL
from urlparse import urljoin
class TestAlbumsRDF(TestRDF):
data_parser = lambda self,x: album.parse_page(x)
outputter_type = 'album'
def setUp... | [
"hufman@gmail.com"
] | hufman@gmail.com |
9639d4b3f07822b79773c929893b5e383421d4d1 | 959a58003f8d17c57922a9297208b19d3f3677f0 | /catkin_ws/build/hardware_tools/cmake/hardware_tools-genmsg-context.py | 6ddc5b8168f47fb5f4bfb20032ab165453a49def | [] | no_license | KevinArturoVP/ManipulacionKuka | c98af98d0cece5ec2c6c8887bcdab110589d43c4 | d81ee77f53d1f9326337c12a8515c99fc69e35be | refs/heads/master | 2023-01-11T08:56:53.358563 | 2020-11-06T19:47:45 | 2020-11-06T19:47:45 | 310,689,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = ""
services_str = ""
pkg_name = "hardware_tools"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "std_msgs;/opt/ros/melodic/share/std_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python2"
packag... | [
"kevinarturo1996@hotmail.com"
] | kevinarturo1996@hotmail.com |
06b9ec654b620f2589070ff765f05c74dffef459 | 8f2a6a19a393e353e09d44719b5cf358d162ddad | /Download Tweets - Python/twitter_stream.py | b8c08bb56e4231dac3ca62a5c44a5b09f9b4940e | [] | no_license | bhaaratchetty/Effective-Disaster-Management | b684c2d97735f1c21d7cdaa4a14dafb7345592d4 | 51dbbe46152de2594833fb18d417e0e608f0249a | refs/heads/master | 2021-06-30T00:08:06.956169 | 2017-09-15T04:33:33 | 2017-09-15T04:33:33 | 103,613,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | #Import the necessary methods from tweepy library
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
#Variables that contains the user credentials to access Twitter API
consumer_key = 'doPnpOSCxZemudH6B0KdhUMR5'
consumer_secret = 'iocE6O66lLi822wRdylohD7LJMc12vjhR8jJ... | [
"noreply@github.com"
] | noreply@github.com |
f7ca913ac743efba9c262ad9980479371cd2c9ed | 222bb181531321360b83ad92a50c4fe7c083fb2f | /examples/basicMlWnaVerifyBp/runExperiment.py | c83f24bd5f651e1540899de352ecd01fe2fc7bc7 | [] | no_license | afkungl/lagrangeRL | f2af0b107943c78f7a60589e68f0a23fff8981fc | 22f73607e64537e16ebd9914a669b837b88cd12a | refs/heads/master | 2023-01-14T03:57:27.353604 | 2020-11-24T16:51:37 | 2020-11-24T16:51:37 | 139,447,833 | 0 | 0 | null | 2020-11-24T16:51:39 | 2018-07-02T13:31:31 | Python | UTF-8 | Python | false | false | 267 | py | #!/usr/bin/env python
from mlModel.experiments import basicExperiment
# Meta parameters
jsonFile = 'paramFile.json'
# Run the experiment
myExperiment = basicExperiment.expMlWnaVerifyBp(jsonFile)
myExperiment.initializeExperiment()
myExperiment.runFullExperiment()
| [
"fkungl@kip.uni-heidelberg.de"
] | fkungl@kip.uni-heidelberg.de |
4901ff8de91fcddbb966ee5cf9739b0da0846484 | b99f5fd111a3f25237db052d16da001dabedd43c | /Words and Swords/game.py | a41d51db6115121db9591e20c90615eb7ea2b069 | [] | no_license | Yonath2/EnglishGamePEPE | 7fb905ddd3083f3ee464d5c8375bbc0e93525937 | e9daad41bdfd8db125d70a279b867989cb8c820a | refs/heads/master | 2021-01-07T00:20:16.634333 | 2020-04-28T21:07:33 | 2020-04-28T21:07:33 | 241,524,291 | 0 | 0 | null | 2020-03-15T19:13:43 | 2020-02-19T03:31:56 | HTML | UTF-8 | Python | false | false | 4,740 | py | import pygame
from player import Player
from bestiary import Bestiary
from background import Background
from words_and_synonyms import Words
pygame.init()
scr = [960, 720]
BACKGROUND_COLOR = (51, 57, 65)
LINES_COLOR = (146, 220, 190)
font_size = 50
constant = {"scr": scr[0] / scr[1],
"f... | [
"noreply@github.com"
] | noreply@github.com |
c392744eaf81d69a262e04c2d4f626a5679c1dcb | 880833b880f459840c1f2d2d2fc09fc15da9529e | /env/bin/pyhtmlizer | b8a62cac0c8f21abd56c462d192a1efda1ad6fd7 | [] | no_license | TrellixVulnTeam/minimassengaer_SHP4 | bf5a266d78bdd390f7a6fb613a9f4d61f3e27536 | 58ec1a159b2f5d5a83b98e7c0763050cd93562b1 | refs/heads/master | 2023-03-16T02:04:39.562971 | 2020-08-16T18:52:39 | 2020-08-16T18:52:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | #!/Users/misha/Documents/GitHub/Messenger/env/bin/python3.7
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.10.0','console_scripts','pyhtmlizer'
__requires__ = 'Twisted==19.10.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"adbaranoff@mail.ru"
] | adbaranoff@mail.ru | |
ac79715c40f20292d15e22c6700b3f6c430f1ac0 | dfe0314b565f4b97ba186e34abb76dd2b581437e | /GUI/gui_1.1_makegui.py | 81113cf9afe36a346580786fb1740b8b4ff85e69 | [] | no_license | mlenguyen/Fullstack-Cyber-Security-Capstone-Project-2021 | 858696d4ede36cba34277ca3541295c93e197626 | 4d26b2f3c510126b34d3a713dc8cc69d2c47375b | refs/heads/main | 2023-09-03T21:07:41.610966 | 2021-10-14T01:27:46 | 2021-10-14T01:27:46 | 412,845,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,347 | py | #!/usr/bin/env python3
import random
from tkinter import *
# global constants, these will eventually work with the entry fields and sliders
LENGTH = 10
LOWERS = 1
UPPERS = 1
NUMBERS = 1
PUNCTUATIONS = 1
KPS = 1000000000 # keys per second used in cracking the password, 1 billion default
# this function w... | [
"noreply@github.com"
] | noreply@github.com |
f74f17d7a2f497b816682488c5fdb4945bbd640d | 37c90847a5ba0f4a40d29189ca4336569c52e506 | /faqs_page_content/apps.py | 43fd0c52e2f2aa96100e1b2821b677c187997f8a | [] | no_license | LorenaLorene/Concept-photography-website | 4619b77f3cc5a90da23f936f62d067221b3f6d79 | 6ee47f63c2835d7c03e350ef99bec426ead4119c | refs/heads/master | 2020-03-22T20:20:44.621374 | 2018-09-03T12:18:10 | 2018-09-03T12:18:10 | 140,591,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class FaqsPageContentConfig(AppConfig):
name = 'faqs_page_content'
| [
"Lorenija@gmail.com"
] | Lorenija@gmail.com |
69e1dec6b346397c1857340caf4299600c26a600 | 2fe8194db578820629740e7022326355ef76632a | /instaladores/migrations/0004_merge_20201128_1647.py | 52b65ade950c986c1f9bf531762ba99d0d9e0cfe | [] | no_license | Aleleonel/newloma | 01213a14036aa7437b5951b8bb7ef202de6b86c2 | 7910c5b3170b953134240536b6e5376c96382266 | refs/heads/master | 2023-01-18T19:15:08.890658 | 2020-11-28T20:22:48 | 2020-11-28T20:22:48 | 312,459,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # Generated by Django 3.1.3 on 2020-11-28 19:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('instaladores', '0003_instaladores_email'),
('instaladores', '0002_auto_20201122_1232'),
]
operations = [
]
| [
"you@example.com"
] | you@example.com |
f8285811a136a905e6d514b9c5d8a89ccf2b2672 | 934f9e4f8985299d55648c149f726f2bc6916458 | /testPolControl.py | ae86f8fee9ebb8deb67d36af46cbff532d9fa3bd | [] | no_license | roarkhabegger/PolarimeterRegistration | 75319bc902f29f0b5be75f907f0a2f3fcf4e08f4 | 97fe0640fbba4f89b581bc885f9145916c252a42 | refs/heads/master | 2021-01-26T06:28:20.969439 | 2020-08-13T23:39:06 | 2020-08-13T23:39:06 | 243,347,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | #script.py
import win32com.client as com
#import time
#import comtypes
#import comtypes.server.localserver
#import threading as th
#import subprocess as sp
#import serial as s
#from serial.tools import list_ports as list
#import serial.tools.list_ports.ListPortInfo as Info
import time
#import PolControlForm ... | [
"noreply@github.com"
] | noreply@github.com |
6977fc3d73cddf61336a78f092616bb941043159 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /tracsentinelplugin/0.11/tracsentinel/__init__.py | 5ecd53b2bf4ffe13d85f85d1681b96af172bd0aa | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from tracsentinel import *
| [
"tgish@7322e99d-02ea-0310-aa39-e9a107903beb"
] | tgish@7322e99d-02ea-0310-aa39-e9a107903beb |
a0911499920e9e2a31863622b46aa42d0b70407e | 2d6481f60585fed286aeddf704b9052a33c63fb3 | /DP/CoinChange.py | ef34e38b919f1304f3494ac2b22907d34044fe2b | [] | no_license | BALAJISB97/DS | f8cc229f05a7c9d763f2aa888a955da6c7b3936e | e38b2957893016077bf80a3b89d0ce6b3b094fe8 | refs/heads/master | 2022-12-31T09:13:05.540389 | 2020-10-16T07:13:04 | 2020-10-16T07:13:04 | 292,648,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | def MininmumNumberofCoins(denom,sum):
print(sum)
if sum==0:
return 0
if sum==-1:
return -1
c=0
sorted(denom)
if sum >=denom[len(denom)-1]:
v=MininmumNumberofCoins(denom,sum-denom[len(denom)-1])
c=c+1+v
elif sum >= denom[1]:
v=MininmumNumberofCoins(deno... | [
"balajisb147@gmail.com"
] | balajisb147@gmail.com |
8bac119f9df15d577d94fded7585b260efde9cc7 | a563a95e0d5b46158ca10d6edb3ca5d127cdc11f | /tccli/services/captcha/captcha_client.py | 8382673aac4f34d3d54b5528b41376e67b95efa9 | [
"Apache-2.0"
] | permissive | SAIKARTHIGEYAN1512/tencentcloud-cli | e93221e0a7c70f392f79cda743a86d4ebbc9a222 | d129f1b3a943504af93d3d31bd0ac62f9d56e056 | refs/heads/master | 2020-08-29T09:20:23.790112 | 2019-10-25T09:30:39 | 2019-10-25T09:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,063 | py | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from ... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
9dc0c53bd78fc8209edb257492b2f580db5b6ee1 | 40e7382dd6c8030a22dca30109c9dd216b7af60b | /algorithm/202_happy_number.py | 2c6b250124ef9b46270dbb29bda0159cb19e79fc | [] | no_license | dashanhust/leetcode | f3a08441fc6cde83072dfd6412cadfadc7522b3c | 532a84616792bb898c0fa254f96a75c97d4167d0 | refs/heads/master | 2022-12-13T10:22:13.602838 | 2020-08-23T13:58:03 | 2020-08-23T13:58:03 | 272,014,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | """
题目:https://leetcode-cn.com/problems/happy-number/
编写一个算法来判断一个数 n 是不是快乐数。
「快乐数」定义为:对于一个正整数,每一次将该数替换为它每个位置上的数字的平方和,然后重复这个过程直到这个数变为 1,也可能是 无限循环 但始终变不到 1。如果 可以变为 1,那么这个数就是快乐数。
如果 n 是快乐数就返回 True ;不是,则返回 False 。
示例:
输入:19
输出:true
解释:
1^2 + 9^2 = 82
8^2 + 2^2 = 68
6^2 + 8^2 = 100
1^2 + 0^2 + 0^2 = 1
"""
import time
fr... | [
"jshanliu@tencent.com"
] | jshanliu@tencent.com |
afee643cb9a3cc7c6866efd62d68c8ed5aa29f24 | 6818f70feaddca15eb5600e0aaf18dc61a509f20 | /FedEval/role/Server.py | e6b4a371bc16c561131c6dc2e7ded525ca828298 | [] | no_license | Kundjanasith/FedEval | a4ff442bcf2eb8126997aaeed6ba86cc345268d2 | e089d40ad02cfaa925e5ab0cba7d18166520f2b6 | refs/heads/master | 2023-01-20T12:11:30.076053 | 2020-11-20T01:57:55 | 2020-11-20T01:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,868 | py | import os
import re
import datetime
import json
import logging
import random
import threading
import time
import numpy as np
import psutil
from flask import request, Flask, render_template, send_file
from flask_socketio import SocketIO, emit
from ..strategy import *
from ..utils import pickle_string_to_obj, obj_to_pi... | [
"dchai@connect.ust.hk"
] | dchai@connect.ust.hk |
4e5bb29e3028ec1417185727f67c3c32f568ba99 | b49b37eb54a0321e7d1bf470755cafa16f90eae1 | /coreradius.py | 6e732f5dca20a26be805597da7ca6b582c9c8291 | [] | no_license | arpan-das-astrophysics/data-analysis-AMUSE | 7cd84b541b6e985d679e94cb79b7bc4b239dac8f | ee8255c18693baec373852bc11b8c805a5ac1508 | refs/heads/main | 2023-04-23T16:10:22.230446 | 2021-05-06T13:46:50 | 2021-05-06T13:46:50 | 364,915,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,722 | py | from scipy.interpolate import interp1d
import math
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import scipy
from scipy.stats import norm
import pandas
import matplotlib.ticker as mticker
from scipy import interpolate
df=pandas.read_pickle('output.csv')
time=np.array(df['t[Myr]'])
Nencl=np.arra... | [
"noreply@github.com"
] | noreply@github.com |
696ee4a9319f1911966ed9b0011bf41c0520e338 | b6272ccf55a7c4a34b7207c2f7b33d38c7111dfd | /store/migrations/0001_initial.py | 79bf70177c97378c4faf9c11c6577c4a0551fdff | [] | no_license | Peterumimo/ozonemart-django | 4fc6d17ce5ab6e95813d1b6794b1154fca0d38f9 | 137d10a833c30907430ad80b3c81b036a9dac333 | refs/heads/main | 2023-07-16T12:51:03.049101 | 2021-09-05T19:41:54 | 2021-09-05T19:41:54 | 397,386,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # Generated by Django 3.1 on 2021-08-16 15:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('category', '0002_auto_20210816_1433'),
]
operations = [
migrations.CreateModel(
... | [
"peterumimo2@gmail.com"
] | peterumimo2@gmail.com |
b935f98d25ebdbfee05f809aead606ee9f558479 | 3bbbdaeebd7574aaee19226437eea49ca9c090f0 | /mtcnn_facenet/src/facenet/facenet.py | 7f9d4e34d0241beb1d2514e3df38ca188f2fc1f9 | [] | no_license | zeiland/mtcnn_facenet | 854231d5e1f325421cfc9d2b8a54c532f377a6a9 | f9fa645245c57bc2363d7453d056c5298cb89469 | refs/heads/master | 2020-05-23T16:57:29.939133 | 2019-08-31T11:25:43 | 2019-08-31T11:25:43 | 186,858,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,454 | py | """Functions for building the face recognition network.
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# 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, includ... | [
"963531180@qq.com"
] | 963531180@qq.com |
85d86a4f98edb5e00f54a8dadafebb34f0999ee8 | 60284a471e48e49e9b184305b08da38cbaf85c38 | /src/tests/ftest/datamover/posix_symlinks.py | fd9e6762fe298a9f0f9f8a40b9bffbe555cdb234 | [
"BSD-2-Clause-Patent",
"BSD-2-Clause"
] | permissive | minmingzhu/daos | 734aa37c3cce1c4c9e777b151f44178eb2c4da1f | 9f095c63562db03e66028f78df0c37f1c05e2db5 | refs/heads/master | 2022-05-10T17:23:32.791914 | 2022-02-28T18:44:50 | 2022-02-28T18:44:50 | 228,773,662 | 1 | 0 | Apache-2.0 | 2019-12-18T06:30:39 | 2019-12-18T06:30:38 | null | UTF-8 | Python | false | false | 9,058 | py | #!/usr/bin/python
'''
(C) Copyright 2020-2021 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
'''
from data_mover_test_base import DataMoverTestBase
from os.path import join
class DmvrPosixSymlinks(DataMoverTestBase):
# pylint: disable=too-many-ancestors
"""Test class for POSIX DataMover ... | [
"noreply@github.com"
] | noreply@github.com |
24508b21365449da591374e7eadbd2be8a236597 | 189a07297be248fe374068a79d0d9b6a94587a07 | /apps/courses/migrations/0004_course_category.py | b1d9d5ec574d525f5063c5c70794bc94558c4a5f | [] | no_license | seventeen1717/Python_Django_mxonline | 7644509559bb4daf6bf003fb5bb3e2466526ba24 | 3a99a582d25bbd84607d853e54209bd3dc7fb2a9 | refs/heads/master | 2021-06-21T13:12:01.017235 | 2017-08-17T14:46:35 | 2017-08-17T14:46:35 | 100,612,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-21 15:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0003_course_course_org'),
]
operations = [
migrations.AddField(
... | [
"13965140933@163.com"
] | 13965140933@163.com |
d90fb9bc6062203554935aaa9d2091c9aa8edcdb | 72579db4299be6d512a766ce38ae50e3c7753368 | /.history/Pythonlearning/day9_20200802091221.py | c5ab6ce577d7bd4429235686a4956391bbf742ca | [] | no_license | moteily/Python_Learning | f0d1abf360ad417112051ba52f32a141452adb2d | c294aa1e373254739fb372918507cd7dbe12c999 | refs/heads/master | 2022-11-26T11:09:48.145308 | 2020-08-04T08:47:15 | 2020-08-04T08:47:15 | 284,379,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #接上一天的第九章
# 静态方法和类方法:
# 定义和表示:静态方法和类方法
class Myclass:
def smeth():
print('This is a static method')\
smeth = staticmethod(smeth)
def cmeth(cls) | [
"994283977@qq.com"
] | 994283977@qq.com |
5fba23b3bfb05e91ac578ebeb773c34c16a2d760 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoEgamma/EgammaIsolationAlgos/python/eleTrackExtractorBlocks_cff.py | a0465cbb16938dc958035bcbba12f0a0b49dbf37 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 643 | py | import FWCore.ParameterSet.Config as cms
EleIsoTrackExtractorBlock = cms.PSet(
ComponentName = cms.string('EgammaTrackExtractor'),
inputTrackCollection = cms.InputTag("generalTracks"),
DepositLabel = cms.untracked.string(''),
Diff_r = cms.double(9999.0),
Diff_z = cms.double(0.2),
DR_Max = cms.d... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
494bab442196369a3b72deafcc5b8340fae911c0 | a5d77cdc97711ad60ee03aa480fa68c527062a82 | /hello.py | 5431d24a5b1d3cc7f15be94be0b3f8688ccf116b | [] | no_license | dixita5/Face-Recognition | 393cc116d8a70394d539d4a41a40afd2540c4a3e | 498ef074d85a341453ff38597b68b38bebe66d3e | refs/heads/main | 2023-05-05T11:33:27.510635 | 2021-05-23T08:17:33 | 2021-05-23T08:17:33 | 369,994,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py | # USAGE
# python recognize_faces_image.py --encodings encodings.pickle --image examples/example_01.png
# import the necessary packages
import face_recognition
import pickle
import cv2
from flask import Flask,request, render_template
#from werkzeug import secure_filename
from werkzeug.utils import secure_filename
from... | [
"noreply@github.com"
] | noreply@github.com |
9dbc5aad569ad45d58831448aa34a51bc8258984 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02996/s612893539.py | 7bab9fefb9759e4aca7500b4bfc54fe21ec5e098 | [] | 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 | 663 | py | import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
272983c5c808858660da855fa9e4d20a9544bba1 | 846c503a04a0e093a531186d6f8df34a8c88918d | /maze.py | a973e9867685d73180064745612607dbf6a2280a | [] | no_license | PuffedRiceCrackers/Maze | e8840fa302ebc04e8624d2cdc196636e0fbd62de | 3fa6099ae7f2d1c590f564713c8f487adae76296 | refs/heads/master | 2020-09-20T20:38:28.558810 | 2019-11-28T07:26:15 | 2019-11-28T07:26:15 | 224,585,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,263 | py | # -*- coding: utf-8 -*-
import copy #deep copy를 위해 씀
import csv #인쇄할 때 씀
class block():
waiting = []
expanded = []
idxInExpanded = -1
def __init__(self, location):
self.location = location
self.row = location[0]
self.col = location[1]
self.heuristic = 10000000000... | [
"lemonde92@hanyang.ac.kr"
] | lemonde92@hanyang.ac.kr |
d04bbe24f1653cbe5d22ba927ccf95f70d655f37 | d091a41719e5ce8644924a5e53a1548c284e13b5 | /tests/test_xmltodict.py | 1a30ecddcdc95451b26885d19149c7d42a7e9fe3 | [
"MIT"
] | permissive | komasing/xmltodict | d9df09aede9ef9199ad94d1f25dcab5e1ff9fd53 | be842ee121072beb75b643881d8bed5f683cf2c5 | refs/heads/master | 2020-12-24T15:23:32.253417 | 2012-08-28T04:33:59 | 2012-08-28T04:33:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | import xmltodict
try:
import unittest2 as unittest
except ImportError:
import unittest
try:
from io import BytesIO as StringIO
except ImportError:
StringIO = xmltodict.StringIO
def _encode(s):
try:
return bytes(s, 'ascii')
except (NameError, TypeError):
return s
class XMLToDic... | [
"martinblech@gmail.com"
] | martinblech@gmail.com |
0f679e9becb942faabe154fdacf30c7f881b2d4f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/671.py | 42a2e415e2dafaa7888c38febad69fbcb7a3fdab | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py |
FILE_NAME = 'C-large';
INPUT_FILE = FILE_NAME+'.in';
OUTPUT_FILE = FILE_NAME+'.out';
def algorithm(N, K):
segments = [N]
while K > 0:
segments.sort(reverse=True)
biggest_segment = segments[0]
del segments[0]
if(biggest_segment % 2 == 0):
left = biggest_segment / 2 - 1
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
26eb44a0dbb222f6b54decd3edf5f89c65126d50 | 63950d050c98e419116a745500cf12772e208991 | /src/luminol/__init__.py | 3f7b86e2e204eaa79fbd7291a7d4add65d7bc9c2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | bcui6611/luminol | af0f2bf5c9dcf9f53018f04391b998a126d303e9 | f581c16ea50e16c89561892936622176be12aa1e | refs/heads/master | 2021-01-23T08:34:36.788061 | 2017-12-03T22:37:43 | 2017-12-03T22:37:43 | 102,538,301 | 0 | 0 | null | 2017-09-05T23:09:16 | 2017-09-05T23:09:16 | null | UTF-8 | Python | false | false | 1,734 | py | # coding=utf-8
"""
© 2015 LinkedIn Corp. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | [
"rmaheshw@linkedin.com"
] | rmaheshw@linkedin.com |
ee1620b5cccb60aa52d2725d3e10e369eb226f0f | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/suntimes/testcase/firstcases/testcase1_004.py | af83c435e940513a3fe6bb22542eaddd2ba85ec4 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
a61d45693937fe998587caf34c4c4c7b53770eae | a19ad9cb7a083c24ae6ffa3f4e87d86373ed89df | /A2Q3.py | f41a182397119e6a70f02c5fb51f0682bad63ae7 | [] | no_license | Halimkhan99/Pythonlab_MCA | c2d39dd28cf66e8eaa1004c40d7b80499043f7f9 | 5ffbac60f63312f92ed13bb06627961cf4cdc1ca | refs/heads/main | 2023-03-20T12:32:26.820879 | 2021-03-06T18:25:49 | 2021-03-06T18:25:49 | 331,683,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | a=float(input("enter first number: "))
b=float(input("enter second number: "))
op=input("enter an valid operator(+,-,/,%,**,//): ")
if op=="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*":
print(a*b)
elif op=="/":
print(a/b)
elif op=="%":
print(a%b)
elif op=="**":
print(a**b)
... | [
"noreply@github.com"
] | noreply@github.com |
23ee2ea3fb54a9d1d459ca0edb986191ba823dca | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week9/Efficiency/Sequencing.py | 5cd59f4ad5c2b4f90a8180536091d1c58517304a | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # what is the total cost here?
L = [ 52, 83, 78, 9, 12, 4 ] # assume L is an arbitrary list of length N
L.sort() # This is O(NlogN)
L.sort(reverse=True) # This is O(NlogN)
L[0] -= 5 # This is O(1)
print(L.count(L[0]) + sum(L)) # This is O(N) + O(N)
| [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
068f204036e3285a7d5ed085fcd8fc170a021239 | 076a657b60ef7d2a1c06338d54f4e184648efe52 | /product/settings.py | 54f9488285d4ad72692710dbb06740102df94a9f | [] | no_license | Dheerajkarmankar/product | 494a6cc25666b15c6617cd4de75386113053310a | bec59e6e1a08f970ea52aa6c09dddc6b1313726d | refs/heads/master | 2020-11-27T04:03:33.978443 | 2019-12-20T16:13:59 | 2019-12-20T16:13:59 | 229,297,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | """
Django settings for product project.
Generated by 'django-admin startproject' using Django 2.2.8.
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
#... | [
"dkarmankar7@gmail.com"
] | dkarmankar7@gmail.com |
cdce3a21ddfa32c46813000d999b2aa3911a9877 | 19e7217603a7cfe187ecbab97ff183728e795bf1 | /Greedy Algorithms, Minimum Spanning Trees, and Dynamic Programming/week3/max_independent_weight_set.py | a9fd83b3f995cc43571148fd19fd516d782765f6 | [] | no_license | ghay3/Coursera-Algorithms-Specialization | 557c869c35e1d10fd09ff913875aee7468871ef7 | d7e35fdf0800c13cd94f280e7b83d1d7a0c35c27 | refs/heads/master | 2021-01-25T13:28:20.414051 | 2017-12-25T14:17:00 | 2017-12-25T14:17:00 | 123,572,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | def max_independent_weight_set(weights):
weights = [0] + weights
wis = [0] * len(weights)
wis[1] = weights[1]
for i in range(2, len(weights)):
if wis[i - 2] + weights[i] >= wis[i-1]:
wis[i] = wis[i - 2] + weights[i]
else:
wis[i] = wis[i - 1]
# reconstruct
... | [
"cthesky@yeah.net"
] | cthesky@yeah.net |
28fa6194ad638ad9676fc82c7d4a43ff81102d99 | 66882bdfa4211facd6028067102802aabb13de04 | /mi/dataset/parser/test/test_velpt_ab_dcl.py | 5094755f3eb19195c3e34f8f5e0b07d58878b054 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | mlutz000/mi-dataset | 0dd4bbc13c5691ffbfb3ee37f0dbe3f1f4b9d375 | 3e58f15fa1e6de03c95281c87f8130f904fd9b81 | refs/heads/master | 2020-04-02T01:12:11.608812 | 2014-11-11T21:59:07 | 2014-11-11T21:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,969 | py | #!/usr/bin/env python
"""
@package mi.dataset.parser.test.test_velpt_ab
@file mi-dataset/mi/dataset/parser/test/test_velpt_ab_dcl.py
@author Chris Goodrich
@brief Test code for the velpt_ab parser
"""
__author__ = 'Chris Goodrich'
from mi.logging import log
import os
from nose.plugins.attrib import attr
from mi.core... | [
"mark_c_worden@raytheon.com"
] | mark_c_worden@raytheon.com |
4beda01acee422a0e7a4e2b30f4b2ce9ace98b5f | e5ed7d8a15e0e95047bf4bc4a95d1862b4023ba6 | /share/scripts/task_tool/task_sample190606.py | 9f326b80c42a4c5f13ce483797e446b86c660ce6 | [
"MIT",
"BSD-3-Clause"
] | permissive | ryhanai/teachingplugin | 77f4bcf5bd2672867cc949f144ea9350dd353f8c | a495885899eaa36ea00ba8ab89057cd4d3f36350 | refs/heads/master | 2020-07-06T19:19:29.865425 | 2019-08-21T07:53:47 | 2019-08-21T07:53:47 | 203,114,760 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,666 | py | #!/usr/bin/python3
# encoding: utf-8
import numpy as np
from task_tool.task_design import *
from task_tool.basic_commands import *
from task_tool.sample_master_data import *
# We do not know what kind of motion patterns are needed for general assembly tasks,
# how to organize the motion patterns, how to parameterize ... | [
"ryo.hanai@aist.go.jp"
] | ryo.hanai@aist.go.jp |
ad3b703785a4e63fadd304fe931f34553ff93077 | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /tests/test_phl_cpu.py | 31e28bd39d8728b69f948db45d80ae5f98ade8d0 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 9,018 | py | # Copyright 2020 MONAI Consortium
# 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, s... | [
"noreply@github.com"
] | noreply@github.com |
86798a238e95c2098ca963b87893b77891e5f6e2 | bb820eeb63a140807230c229c06f6fc20376ca18 | /to_do/tasks/views.py | 4c2559cc050993d5f72a9ecbd88c33a5916bec90 | [] | no_license | The-Ifeanyi/To_do | 62443174edcecd8e4ba46bc33443883400fa6bc5 | a994dd3cc200f61c05a7ce5204df6aa01a03a01c | refs/heads/master | 2022-12-22T00:55:58.684176 | 2020-09-26T21:38:41 | 2020-09-26T21:38:41 | 298,285,602 | 0 | 1 | null | 2020-09-26T21:38:42 | 2020-09-24T13:21:23 | Python | UTF-8 | Python | false | false | 828 | py | from django.shortcuts import render
from django import forms
from django.http import HttpResponseRedirect
from django.urls import reverse
tasks=["food","play","read"]
def index(request):
return render(request,"tasks/index.html",{
"tasks":tasks
})
class NewTaskForm(forms.Form):
task=forms.CharFiel... | [
"ifeanyinwadugbo@outlook.com"
] | ifeanyinwadugbo@outlook.com |
723faaf18a590d38c7b2d7ddbf82a2f78035fdb4 | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/driver_unittest.py | f65b682fea8a8d1e1f1c13f0fda30331da23efb3 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 10,886 | py | # Copyright (C) 2010 Google 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 must retain the above copyright
# notice, this list of conditions and the f... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
cb699d090af253409af2c156a3a2ffe8095d1f40 | 43a6c4e30dec8ac0816a35c2b4ee5da6c11be0d0 | /bal/balances.py | 618004fb31f7c5987d168dc36f2ff7dc3a1c4c24 | [] | no_license | juantellez/taurosbot | afccc42e7d927aea8d6907a69fb45da70bff8d44 | 28c834a00e4dd9c6880743cd9577967f51af8028 | refs/heads/master | 2022-04-16T18:00:26.507362 | 2020-01-13T23:15:01 | 2020-01-13T23:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,347 | py | #!/usr/bin/env python3
import json, time, requests, threading, os, socketio, grpc, sys
from concurrent import futures
import balance_pb2, balance_pb2_grpc
balances = {}
print('reading credentials json file:',sys.argv[1])
with open(sys.argv[1], mode='r') as json_file:
data = json.load(json_file)
TAU_TOKEN = da... | [
"david@fantasticocomic.com"
] | david@fantasticocomic.com |
be370b1c9635cd0f42269dd7fcec37bb899a703c | f0ef364ed2d20390ff76bc7c5b9506cb41ba2e71 | /widgets4py/websocket/examples/w2ui_toolbar_example.py | 9f430804dd5066d43512e58a6ed47619c6c1eb7f | [] | no_license | singajeet/widgets4py | 07c983e06d6101b6421bf96224fa1bcc3793f47a | e3ca6a459dee896af755278257a914efe04b1d11 | refs/heads/master | 2020-06-09T19:08:20.295781 | 2020-02-14T15:55:23 | 2020-02-14T15:55:23 | 193,489,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | import os
import webview
from flask import Flask # , url_for
from flask_socketio import SocketIO
from widgets4py.base import Page
from widgets4py.websocket.w2ui.ui import Toolbar, ToolbarButton, ToolbarCheck
from widgets4py.websocket.w2ui.ui import ToolbarHTML, ToolbarMenu, ToolbarMenuCheck
from widgets4py.websocket.w... | [
"singajeet@gmail.com"
] | singajeet@gmail.com |
9b8e50005c5cf8353b34b72f8016338387804740 | f566bf1987d4f2261ea9a023aa1b042514254621 | /dive/load.py | c7e899842c84cf3cdf96cc3a03ed7c0319e72457 | [] | no_license | ferretj/dive | 105af260c1838b68c104d67d74bdbaed933a0b2e | 6a29b77a82e5150a29f8c63865c8a27fcfdf6351 | refs/heads/master | 2020-03-22T15:35:37.070299 | 2018-07-10T10:29:42 | 2018-07-10T10:29:42 | 140,263,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | import pandas as pd
def load_csv(filename):
return pd.read_csv(filename)
| [
"johan.ferret1@gmail.com"
] | johan.ferret1@gmail.com |
2835a4b3aaa463c8415888d15f974c195d05885d | 65fe46e2ff0e73f12f67d3a64a4a7ca4e5b7e57c | /client2.py | 37d2b816a23ff9c4f4f4e05ac6b8be62bce3788f | [] | no_license | correetor/tcp | b71b88971ae2041048aeb70b5b8a9968095df473 | 1b9f1e8e56d47b600c2bb7edbf22666b7ef6dba4 | refs/heads/master | 2021-09-05T02:51:05.910839 | 2018-01-23T19:18:13 | 2018-01-23T19:18:13 | 118,657,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #!/usr/bin/env python
import socket
image = '7f.png'
TCP_IP = '127.0.0.1'
TCP_PORT = 5006
BUFFER_SIZE = 409600000
MESSAGE = "Srnt image to server"
#Open img file
myImage = open(image, 'rb')
bytesOf = myImage.read()
myImage.close()
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP... | [
"31177986+sutthiporn@users.noreply.github.com"
] | 31177986+sutthiporn@users.noreply.github.com |
7345acf60d0554b76cdf8559206d97988c876a12 | f0f460f7d53ec91835f9cf109aa9c6b1a4b26283 | /functional_tests/home_and_list_pages.py | 1e642877507b05d1011881963b9af82ed2b4e8c3 | [] | no_license | rjbernsen/superlists | 9f8ce2e929ebd3ad4f120c64a48a5ae7678de695 | 4ec83c3afeb9082f473befab783b5634c41fcf12 | refs/heads/master | 2021-01-10T05:12:07.392267 | 2015-11-17T17:46:41 | 2015-11-17T17:46:41 | 45,053,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | ITEM_INPUT_ID = 'id_text'
class HomePage(object):
def __init__(self, test):
self.test = test
def go_to_home_page(self):
self.test.browser.get(self.test.server_url)
self.test.wait_for(self.get_item_input)
return self
def get_item_input(self):
... | [
"rjbdevel@gmail.com"
] | rjbdevel@gmail.com |
2a34388451156f25f3cd3613f2533338ff4333c4 | f265671df179499ba15068f4696e595da68ffab1 | /PyQt Designner/Book_Exercises/chapter2/List Widget (Multiple Selection)/_functions.py | 0213c522347af9eb312ca5cb5730c879116a8032 | [] | no_license | alifele/GUI-with-Python | ca965ba1b60b5577786cff15f53279378b180772 | 68ae3e47ed66feb0426fa6bf1c95778ddb9dc6c4 | refs/heads/master | 2020-08-15T11:48:55.191757 | 2020-06-13T14:26:14 | 2020-06-13T14:26:14 | 215,336,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | def update_list(self):
self.ui.selected.clear()
items = self.ui.List.selectedItems()
for i in items:
self.ui.selected.addItem(i.text())
| [
"ali.fele@gmail.com"
] | ali.fele@gmail.com |
60de944ffe3715da94961884dba29a2e0af82137 | 2937d60b7f5259b4899ba5af08146bd874529a67 | /Assignment 5 q4.py | d9776a0e669e961e49153c7ebd3133b4fe52a833 | [] | no_license | gourav47/Let-us-learn-python | 9a2302265cb6c47e74863359c79eef5a3078358a | b324f2487de65b2f073b54c8379c1b9e9aa36298 | refs/heads/master | 2021-06-27T03:33:27.483992 | 2021-01-07T12:26:16 | 2021-01-07T12:26:16 | 204,323,390 | 1 | 1 | null | 2020-07-19T14:25:12 | 2019-08-25T16:53:56 | Python | UTF-8 | Python | false | false | 212 | py | '''python script to print square of numbers from a to b'''
a=int(input("Enter the first number: "))
b=int(input("Enter second number: "))
if a>b:
a,b=b,a
for i in range(a,b+1):
print(i**2,end=' ')
| [
"noreply@github.com"
] | noreply@github.com |
86f075fc96dae8468e2baa1196a55ab58a3b4b35 | abb8979b84254b2d1062209239c8242e67b86c3f | /venv/Scripts/easy_install-3.4-script.py | 342e506a4a5095ad3a0e079f7a27b49046e4437c | [] | no_license | Ifraibrahim770/Buy-it | deaa3a58fe75ab5a49b4a5139ba7af01cb08b046 | 3b01bf5ba378dacb491fee31137e66cb4c10b12a | refs/heads/master | 2023-02-05T17:50:53.584179 | 2020-12-18T09:02:31 | 2020-12-18T09:02:31 | 287,910,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\Cephas\PycharmProjects\E-COMMERCE\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.4'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"ibrahim.diba@turnkeyafrica.com"
] | ibrahim.diba@turnkeyafrica.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.