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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e75dc2bd133eb3914b35baff20c6ab17465a5927 | d9a31819cfb80504d623c1c23b299929ccb7cde3 | /part08/todo_dao.py | 6c13d8ea50607670ce289a9a75e062bf74622fb2 | [
"MIT"
] | permissive | truemanD/basic_dao_layer | 491bf33f0f367137d4c636bbcb1f17af4df56cc3 | 612df59697a59a290e30130849d691154343e0d5 | refs/heads/main | 2023-02-22T00:23:36.901570 | 2021-01-21T00:44:14 | 2021-01-21T00:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,465 | py | """ In this version. Handle exeptions trow if an error occurs in the SQL execution. """
import sqlite3
DB_NAME = '../sandbox.db'
class SQLiteDAO():
"""
This class extends of AbstractDAO and must implements the inherited and abstract methods, to be usefull for some client.
This clas implements t... | [
"rmontesleo@gmail.com"
] | rmontesleo@gmail.com |
8b13ee29d8345e8d12e39002c7088f0b2ed139e8 | 407779c238c825fa8cc28a8c160666b25af269bf | /custom_components/smartweather/binary_sensor.py | bd53c5a16edecf3a58abcc8236984bf717d804f4 | [
"MIT"
] | permissive | rccoleman/smartweather | 231c06a2667f3946841051335e4eee49cbb4d4a2 | 0047123b2df4a878d26790866a58c59c0d497f10 | refs/heads/master | 2020-11-30T22:54:18.902707 | 2019-12-27T19:14:51 | 2019-12-27T19:14:51 | 230,502,605 | 0 | 0 | MIT | 2019-12-27T19:11:50 | 2019-12-27T19:11:49 | null | UTF-8 | Python | false | false | 3,495 | py | """
Support for the SmartWeather Weatherstation from WeatherFlow
This component will read the local or public weatherstation data
and create a few binary sensors.
For a full description, go here: https://github.com/briis/hass-SmartWeather
Author: Bjarne Riis
"""
import logging
from datetime import... | [
"“bjarne@briis.com”"
] | “bjarne@briis.com” |
c729454bc3d1ecc132b3a58dfb00d6c97f951428 | 7720ade5ef4df9f2f99a5df1a1bc0f8a529e2d57 | /manage.py | 1d25934cf93f543d191ad541ee2ac2014f9a5868 | [
"Apache-2.0"
] | permissive | ganeshappikatla/django-aavahi | 6bb0e5e9a8f83aec55faed62da740563689bd77c | f4324f3af4b95047bb6b5e960cefd410b838ea2e | refs/heads/master | 2023-03-08T11:24:33.544207 | 2021-02-25T07:07:43 | 2021-02-25T07:07:43 | 342,152,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'avahi.settings')
try:
from django.core.management import execute_from_command_line
except Import... | [
"ganeshjustgrow@gmail.com"
] | ganeshjustgrow@gmail.com |
eb632cca86f17c4d0b5b18720a73b5c255f3b615 | 8d95c30ae2688ee4f1e9842eb65582d444871937 | /vMware/models.py | d0025a9ef43e22f8c8b0c0f35700f74f3c0a90ec | [] | no_license | xayangjing/vMware-VM-Automated-opening | 78b67f4e00fe0fea7564013c46258cfaaa61545c | ff5058b1cb5b76fd93fccdc3b9246da25c14b547 | refs/heads/master | 2021-01-22T19:59:28.190846 | 2017-03-08T08:45:45 | 2017-03-08T08:45:45 | 85,268,064 | 1 | 1 | null | 2017-03-17T03:42:35 | 2017-03-17T03:42:35 | null | UTF-8 | Python | false | false | 9,012 | py | #-*- coding:utf-8 -*-
'''
@Created on 2016年5月24日
@author: MianBao
@author_web: Mianbao.cn.com
@User
'''
from django.db import models
from User.models import user
from django.template.defaultfilters import title
'''
@about VC connection info
'''
class vcenter(models.Model):
host = models.GenericIPAddressF... | [
"hanlingfei5@163.com"
] | hanlingfei5@163.com |
efbce9c46c5c14d023e8afee6f5fd7be1921c7d8 | 4c252eb68446d5fd050e28a6b5ba1a7879b70b0a | /pyuavcan/transport/can/media/socketcan/__init__.py | c6ee7989569c0ca65d99e412f740125f7b1a788f | [
"MIT"
] | permissive | jxltom/pyuavcan | ce2cdf3a95ba4c6f3a0fd8aae24b341e46481fae | 42063b65ee2af431ab485f228d1ed5465a576449 | refs/heads/master | 2021-01-16T15:09:48.547764 | 2020-05-26T09:31:25 | 2020-05-26T09:31:25 | 243,163,363 | 0 | 0 | MIT | 2020-02-26T03:53:47 | 2020-02-26T03:53:46 | null | UTF-8 | Python | false | false | 901 | py | #
# Copyright (c) 2019 UAVCAN Development Team
# This software is distributed under the terms of the MIT License.
# Author: Pavel Kirienko <pavel.kirienko@zubax.com>
#
"""
The module is always importable but is functional only on GNU/Linux.
For testing or experimentation on a local machine it is often convenient to u... | [
"pavel.kirienko@gmail.com"
] | pavel.kirienko@gmail.com |
d37f0f88ab34d84710a32760b0cb7dcf6a86a572 | 4b338a2960f18d652593694cea09e59bd1f6d376 | /tamhooks/apps.py | f5dccde871607784d6d9eaf2cd86d2323ce7a113 | [] | no_license | AdhlanFauzan/tam | 04540fba4ca7f26daaf0bfe5970c0053d1489e3c | a60ac5c04eca3fd97bb6dc81188eaba779d61a97 | refs/heads/master | 2021-01-17T08:50:24.539314 | 2017-02-20T19:59:47 | 2017-02-20T19:59:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class TamhooksConfig(AppConfig):
name = 'tamhooks'
| [
"dariosky@gmail.com"
] | dariosky@gmail.com |
4a68c3a90f707e9a3ecb5b39fc13e7d83355da8c | 76f1331d083d360fb3822312537e72d4ff9d50b5 | /utils/logutils/configure.py | 90e359e31ad1873687b04dfdc694e392830eb9a0 | [] | no_license | ZouJoshua/ml_project | 2fe0efee49aa1454b04cd83c61455232601720a6 | b1d8eb050182cd782bc6f3bb3ac1429fe22ab7b7 | refs/heads/master | 2021-07-22T10:37:56.452484 | 2020-05-09T09:54:39 | 2020-05-09T09:54:39 | 158,562,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | # by lauchingjun@baidu
import re
def _parse_from_generator(gen):
g = {}
groupstack = [('',g)]
cur = g
re_groups = re.compile('^\[[ \\t]*(\.*)((?:[a-zA-Z0-9_]+\.)*)(@?)([a-zA-Z0-9_]+)[ \\t]*\][ \\t]*(?:#.*)?$')
re_items = re.compile('^[ \r\t]*(@?)([a-zA-Z0-9_]+)[ \t]*:[ \t]*(.*)$')
for line in ... | [
"zoushuai@git.apuscn.com"
] | zoushuai@git.apuscn.com |
bc03bc686b8bc0ec7f802cac4d268e7ae64b51e1 | 94cca0c7b045e11a295e5a130ed8b6fac65056f0 | /codecode/settings.py | 8e4e4e38d9a35ee142c203f1f6f2c9732554f5b9 | [] | no_license | sam-esm/codecode | 0ac1e0fc8c3c0be8cc10da02ce60c8dd6c5c3ab0 | ba3cd770b2fb7bfb9e8165cd036dcdafcdd52ff7 | refs/heads/master | 2021-01-22T09:31:59.356339 | 2017-02-14T16:28:49 | 2017-02-14T16:28:49 | 81,806,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | """
Django settings for samansite project.
Generated by 'django-admin startproject' using Django 1.10.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import ... | [
"saman.esmailpur@gmail.com"
] | saman.esmailpur@gmail.com |
67754bedba74af84796d423496b8f192424a3993 | 161d5d464973aac55442efe436e8fab16763b202 | /rat-race/rat-race.py | 4f5118b5c8c9cbe6d1d9eb7680cb5f8651312598 | [] | no_license | jordanpaulchan/coding-challenges | e9671867aafb40787df17342c496f3e3df95f3b7 | a0ee21d7dc5b472c22972d916cd9ad1386c66b78 | refs/heads/master | 2020-03-17T20:26:45.398799 | 2019-11-18T01:16:20 | 2019-11-18T01:16:20 | 133,910,060 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | '''
Libs included:
underscore lodash chai sinon sinon-chai mocha async request q bluebird jsdom
3 mice: "Mouse marathon" 26 miles
mouse 1: runs 1 mph
mouse 2: runs 2 mph
mouse 3: runs 3 mph
3 random starting points along the marathon race path
0 ... 26
Find the probability of which... | [
"jordanpaulchan@gmail.com"
] | jordanpaulchan@gmail.com |
cfce97ee96b74e3432002b53510cf3ad5f0de6df | 642cc265ff568afcabccd3820a0a5819794c187d | /tasks/Selenium246.py | 9369068270d2ff36495046b771a8c7cc218abd21 | [] | no_license | INA-tech/-Stepik-Autotest-Selenium | a12c94df702ef95cb9a14bdb63ee2d38472fb25c | 7a92749ea8b9f908c5518a60fb3ac92110a35805 | refs/heads/main | 2023-01-09T04:58:54.133150 | 2020-10-27T08:10:33 | 2020-10-27T08:10:33 | 307,355,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from selenium import webdriver
import time
link = "http://suninjuly.github.io/cats.html"
try:
browser = webdriver.Chrome()
browser.get(link)
browser.find_element_by_id("button")
finally:
# успеваем скопировать код за 30 секунд
time.sleep(30)
# закрываем браузер после всех манипуляций
bro... | [
"ivashenkonikitaa@gmail.com"
] | ivashenkonikitaa@gmail.com |
4758ccc352f808866eaaf9a1de362f03b38fd521 | f2429c703d2555c9fdfef69d337ce8761f9180bb | /QuizzBizz/venv/bin/easy_install | 696ec1f350010ad73b3fbd2af4dd0828e7866319 | [
"MIT"
] | permissive | CaBezOf/desafio-backend | 80a5659f3b9a4528f8fdd84e69a5f8dda4a039cd | a012071c69c87422b9d87adc76a2c17aaf552a53 | refs/heads/main | 2023-02-25T17:13:47.218074 | 2021-01-28T21:48:07 | 2021-01-28T21:48:07 | 331,959,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/caio/QuizzBizz/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"57061719+CaBezOf@users.noreply.github.com"
] | 57061719+CaBezOf@users.noreply.github.com | |
eda46b1f7dbdfb46fdddbcfd72fa6c68024a47f5 | 1449c3a3375e3519992a3f0bf3450a7e608b385d | /Baekjoon/2106/2193.py | 72d0b061dccd3606b9c67c069ff0ed0ab938364a | [] | no_license | jjungyeun/AlgorithmStudy2021 | 2f8d095f04092c6536ac77cda46843bedb6a9f1f | f64c664538b54016d30d5b3df7503478ee73b3da | refs/heads/master | 2023-06-12T15:01:28.636315 | 2021-07-02T08:51:06 | 2021-07-02T08:51:06 | 378,885,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | N = int(input())
pre, current = 0, 1
for _ in range(N-1):
pre, current = current, pre + current
print(current) | [
"jungyeun_won@tmax.co.kr"
] | jungyeun_won@tmax.co.kr |
1058bf0e58b27114ec41ce159f6a6412a3122981 | 2e3430eefb94fe6bc6ea8256ceadaf25bbf34e76 | /puma/helpers/testing/mixin/__init__.py | e5d5031dc92b6e294d4d8a37e566046b3bcab595 | [
"Apache-2.0"
] | permissive | gift-surg/puma | 33e08b464fe4241da512fefcab5e8909e6f1d768 | 58beae3459a0c8d96adfe9af323e26868428df4d | refs/heads/master | 2022-11-27T11:26:25.557773 | 2020-06-04T11:21:38 | 2020-06-04T11:21:38 | 198,999,143 | 1 | 0 | Apache-2.0 | 2020-07-29T16:36:50 | 2019-07-26T10:38:46 | Python | UTF-8 | Python | false | false | 173 | py | from puma.helpers.testing.mixin.not_a_test_case import NotATestCase # noqa: F401
from puma.helpers.testing.mixin.not_a_test_case_enum import NotATestCaseEnum # noqa: F401
| [
"richard.miles@fast-chat.co.uk"
] | richard.miles@fast-chat.co.uk |
9a0550f2cdac6a2e0d0f2070fccd45e0531db9ea | 7add1f8fc31b09bb79efd2b25cc15e23666c1d1d | /tfx/orchestration/kubeflow/v2/test_utils.py | 4431711f7007e93516012675c192b8ae8b27b24d | [
"Apache-2.0"
] | permissive | twitter-forks/tfx | b867e9fee9533029ca799c4a4c5d1c5430ba05fe | cb3561224c54a5dad4d5679165d5b3bafc8b451b | refs/heads/master | 2021-11-19T18:45:09.157744 | 2021-10-19T00:02:34 | 2021-10-19T00:02:34 | 205,426,993 | 2 | 1 | Apache-2.0 | 2021-10-18T21:03:50 | 2019-08-30T17:21:03 | Python | UTF-8 | Python | false | false | 21,046 | py | # Copyright 2020 Google LLC. 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 a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
8c3e3d4409d7a6565cde7f20c8fbcd0b8dc0782a | b30babde2ed224d63a6c01785159873117f7ea0e | /02_SIM_FWD/MODULES/01_create_fwd_config.py | f170b96583a1aa3c0b8c535b5afb9fd70bb8c07a | [] | no_license | trismono/CLOUD-RETRIEVAL | f890ab4790d1bdcd1962ef29db0185386294b897 | 4c0ff9a97e361f69186c665efaa4aa03510cbca2 | refs/heads/master | 2023-01-06T08:17:17.004845 | 2020-10-28T19:39:05 | 2020-10-28T19:39:05 | 262,130,602 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Program for
Created on %(date)
@author : trismonock
@mail : T.C.Krisna@sron.nl
"""
# import standard modules
import os
# limit openblas thread nuumber
os.environ["OPENBLAS_NUM_THREADS"] = "3"
import numpy as np
from configparser import ConfigParser
# get and de... | [
"trismonocandrakrisna@gmail.com"
] | trismonocandrakrisna@gmail.com |
380e0c3bfae0ce301c2caadd60fd9850f91f847a | 4986dda03764808168188addb75d1a34c6b94857 | /scatter_bubble.py | 5664d3e50aea31ecc6082ec0db7dd07d0712f9ab | [] | no_license | Riaana/Plotting-code | 604b344e01b161f54fdbf6f9ca9b9c7b7203f106 | 84010989101fe12c83d8c0d1b69aa8d43ba88038 | refs/heads/master | 2016-09-05T17:17:23.735974 | 2015-08-06T06:23:26 | 2015-08-06T06:23:46 | 39,216,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,763 | py | import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
import numpy as np
import pandas as pd
"""
n = 50
x, y, z, s, ew = np.random.rand(5, n)
c, ec = np.random.rand(2, n, 4)
area_scale, width_scale = 500, 5
fig, ax = plt.subplots()
#sc = ax.scatter(x, y, s=np.square(s)*area_... | [
"kim.a.mullins@gmail.com"
] | kim.a.mullins@gmail.com |
7e17aef7c234a83dd5f625f3f79766cdd0c89a88 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02689/s473246876.py | 934535d4b4972167937a8498aa36c123addb4e8b | [] | 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 | 374 | py | n, m = map(int, input().split())
h = list(map(int, input().split()))
ab = [list(map(int, input().split())) for _ in range(m)]
ans = [1]*n
for i in range(m):
if h[ab[i][0]-1] == h[ab[i][1]-1]:
ans[ab[i][0]-1] = 0
ans[ab[i][1]-1] = 0
elif h[ab[i][0]-1] > h[ab[i][1]-1]:
ans[ab[i][1]-1] = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7b33538339fad6713ad622528395ec80bb315457 | 1ed683e31cbac08f9b3aa69addd3ef161138d648 | /hs_student.py | c5d0ceb71fd668e677b3712b13419e1acd968027 | [] | no_license | nicolecpeoples/pystudentmanager | bfb3fe549158cf77a7c69fb274aa0a367a797488 | 61fab982d056b7d0c8ed8cd627a43230984224b1 | refs/heads/master | 2021-01-21T11:56:36.931423 | 2017-05-25T05:08:45 | 2017-05-25T05:08:45 | 91,764,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | class HighSchoolStudent(Student):
school_name = "Lincoln High"
def get_school_name(self):
return "This is a high school student"
def get_name_capitalized(self):
original_value = super().get_name_capitalized()
return original_value + "-HS" | [
"nicole.peoples@zonarsystems.com"
] | nicole.peoples@zonarsystems.com |
c6574a4927408f432f540dea185144414e8491b7 | 99477960a0c4061e5f18d3ed06732ef257a890a3 | /gstr_efiling_report/wizard/gst_tax_data.py | 1b29861257ba062a9cf068e7cba26c86c017f61c | [] | no_license | hafzalabbas/gst_modules | 12a0a33439e71c9d20f71e455133ed7c16fdfc66 | aeeb3f31c75df57308f05344b9a81d81863112d2 | refs/heads/master | 2022-09-26T01:07:32.851684 | 2020-05-01T07:19:58 | 2020-05-01T07:19:58 | 259,570,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | #################################################################################
# Author : Webkul Software Pvt. Ltd. (<https://webkul.com/>)
# Copyright(c): 2015-Present Webkul Software Pvt. Ltd.
# All Rights Reserved.
#
#
#
# This program is copyright property of the author mentioned above.
# You can`t redistri... | [
"noreply@github.com"
] | noreply@github.com |
aeba0cf66cd6b63cc2cd690e704544f6c0591260 | 8541f4118c6093c84e78d768285e7007ee5f6a6c | /apps/inventory/migrations/0009_auto_20151220_1554.py | e2b8366a29c48b68bbe2d712b6d251b066c4ba96 | [] | no_license | iraycd/awecounting | c81a8ca6b7a4a942e63cf6b7d723f9883e57a107 | 388df4de63146e0a9a211afa522ec50e0f3df443 | refs/heads/master | 2021-01-15T23:30:27.439759 | 2016-03-16T10:34:40 | 2016-03-16T10:34:40 | 57,046,467 | 1 | 0 | null | 2016-04-25T14:03:40 | 2016-04-25T14:03:40 | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import njango.fields
class Migration(migrations.Migration):
dependencies = [
('inventory', '0008_auto_20151219_1547'),
]
operations = [
migrations.AlterField(
model_name=... | [
"roshanshrestha01@gmail.com"
] | roshanshrestha01@gmail.com |
f9d41ee64e74219c6295b1fadfcb09ba3c826f4b | 77444e848be014d0eb4ede931c520cf256458795 | /index.py | 60f41c33e3910c5e4c5d6a1529c27e26c1d26755 | [] | no_license | pavluntiy/simple_boolean_search | f066f5c16f7afc5e4271dec3ce8e5289fb2320ac | 94f7ff389c5b6a34c28809eb8d17c8a48679a37b | refs/heads/master | 2021-01-11T10:18:08.946156 | 2016-04-11T17:13:53 | 2016-04-11T17:13:53 | 72,509,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,678 | py | import struct
from docreader import DocumentStreamReader
import sys
import os
from collections import Counter, defaultdict
import re
from varbyteencoder import VarByteEncoder
from simple9encoder import Simple9Encoder
class Indexer:
def __init__(self, encoder_class):
self.encoder = encoder_class()
... | [
"itasarom@gmail.com"
] | itasarom@gmail.com |
e775b54c71ec0cdd966af1fb9e2f85aeab8aefe3 | d82464d9e777236eeeaaf60d9f36ee3aae16d8e4 | /custom_components/genius_lyrics/sensor.py | 08ac8fa041f9ac13faab689c3811d2701a3f4038 | [] | no_license | baj24/genius-lyrics | 43618f5bce67e801a76472e488e8195f9fea3d96 | e9e8b244f5539228a61828a70bbcc85c6b1671f8 | refs/heads/master | 2022-03-14T01:47:28.106713 | 2019-12-05T16:30:15 | 2019-12-05T16:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,005 | py | """Sensor platform for the Genius Lyrics integration."""
import logging
import voluptuous as vol
from homeassistant.helpers.config_validation import entities_domain, split_entity_id
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.event import async_track_state_change
from homeassistant.cons... | [
"ralfaro@nacaplaca.com"
] | ralfaro@nacaplaca.com |
56c3cc6390afbcee6635145082c4d4a3a1fa01da | d264e3a872af056a760185c496e44686a8aeef8c | /managerbook/apps.py | 81d37ffa6626409d2c789f59582ba1f52383a379 | [] | no_license | Dong-Master/Django-BMS | 7f040dfbd76695b69c98dca218303b9720e8003c | 61e4ba36cb6450ff3c6ca273137f1fda107b770e | refs/heads/master | 2020-03-30T00:59:10.118353 | 2018-10-12T02:45:08 | 2018-10-12T02:45:08 | 150,553,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class ManagerbookConfig(AppConfig):
name = 'managerbook'
| [
"879995812@qq.com"
] | 879995812@qq.com |
9c94c7a5830ab9c2d4e2950ec2ffc1b9f9499991 | 73cd83eb7c53e7322089094b521261a43830ce5c | /resources/user.py | 0902ee5e85f799fe6870f009794909dece00de20 | [] | no_license | jalajrastogi4/testing_flask | 8e34f69275db85c55b86de6880f4e8490583d7f0 | b9a49b9e2a307ce8a7537649d94a306681eff014 | refs/heads/master | 2020-06-07T07:55:23.540564 | 2019-06-20T19:51:48 | 2019-06-20T19:51:48 | 192,966,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import sqlite3
from flask_restful import Resource, reqparse
from flask import request
from models.user import UserModel
class UserRegister(Resource):
parser = reqparse.RequestParser()
parser.add_argument('username',
type = str,
required = True,
help = "This field cannot be blank"
)... | [
"jalajrastogi4@gmail.com"
] | jalajrastogi4@gmail.com |
49071c7913cc900966d556580a56bc70dac1271f | a94a564c017e74e177a427261db0c944c29a8b9a | /utils.py | f342dd20b24245e0a12ac303c4f2ee20d0966339 | [] | no_license | Hbodor/KernelMethodsChallenge | 9632cfccc4244d2864d4d21ca7b7de41b7ea3c38 | 275c50fd18a887e83413e13dd64e75f488a658db | refs/heads/main | 2023-03-31T22:04:07.986339 | 2021-03-27T00:41:44 | 2021-03-27T00:41:44 | 341,131,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,210 | py | # -*- coding: utf-8 -*-
from numba import njit, typeof, typed, types, jit
import numba
import numpy as np
import pandas as pd
alph_dict = {'G':1, 'A':2, 'T':3, 'C':4}
alph_dict_n = typed.Dict.empty(types.int8,types.int8)
for key in alph_dict:
alph_dict_n[ord(key)] = alph_dict[key]
@njit()
def get_neighbours(kme... | [
"hamza.bodor@eleves.enpc.fr"
] | hamza.bodor@eleves.enpc.fr |
c1bd4eda3484a6296f03f86868795569d4870a9b | 9fbcea0a198d5acfe3a0ed01b08c2a2ca0bab827 | /book/book/settings.py | 4dd978ec7cb45d80556ac3b0662cfa8d2d8f71cc | [] | no_license | ovibinzia1885/Rawdjango | 195a0a47a2dd3132343621680841ebe203396e38 | 9e9f06c466e223ff802d63a861d6fa59359eb25a | refs/heads/master | 2023-01-10T16:11:50.595533 | 2020-11-15T04:45:28 | 2020-11-15T04:45:28 | 312,959,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,576 | py | """
Django settings for book project.
Generated by 'django-admin startproject' using Django 2.2.10.
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
# B... | [
"nazmul35-1885@diu.edu.bd"
] | nazmul35-1885@diu.edu.bd |
b00c71f954909ce4a0bcdad20add93793170a3ea | 430f73d6eb803741c73dfa05b2460dbdc5a2841d | /hmm/wsgi.py | 8d4a1b638ea4cf00f5c4603626edb4a711e8faae | [] | no_license | Mogmi95/hmm_le_site | e6f53610974107de505fe0feeae070c3294c9e6b | b323ee420977121ff709e5b7071e856efeba529e | refs/heads/master | 2022-11-26T05:10:41.190690 | 2020-06-28T12:00:24 | 2020-06-28T12:00:24 | 3,950,056 | 4 | 1 | null | 2022-11-22T00:34:45 | 2012-04-06T13:58:04 | Python | UTF-8 | Python | false | false | 1,136 | py | """
WSGI config for hmm_le_site project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATIO... | [
"mogmi95@gmail.com"
] | mogmi95@gmail.com |
4717637c4e59644e46dcbc13df78bdcdb5aa35ec | c7a85d397ea0579ae950212a61f655ee23a3be25 | /Client.py | a7529e6644e2155d8091577d9180fb18ca2ce3ed | [] | no_license | neeraj-satyaki/DHCP | a88af4f7ad7c8fafc372a974e444bd5bf962e178 | 90d76daad5a768402ed6fe34e30030f55e81acc0 | refs/heads/main | 2023-06-30T03:52:43.929620 | 2021-08-02T01:07:36 | 2021-08-02T01:07:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,022 | py | import math
import random
import socket
import time
from threading import Thread
import dhcppython
MAC_ADDRESS = '8C:8C:8C:8C:8C:8C'
ACK_TIMEOUT = 3
BACKOFF_CUTOFF = 120
INITIAL_INTERVAL = 10
LEASE_TIME = INITIAL_INTERVAL
def dhcp_discover():
# message = b"your very important message"
options = dhcppython.o... | [
"amzarrinnezhad@gmail.com"
] | amzarrinnezhad@gmail.com |
9a61101f2c5c0657e4aedfe361c44807a7465aa6 | e522eda0f3670bc5b63570b294eaafc1cc6cf2aa | /cal2.py | daaace2778cbfb68e468f5abf281808ca38a9b9d | [] | no_license | Harfho/Script_coded_while_learning | 8f4b6a43787c344a3760a0047aaf7db5777510f0 | 07c1980cfe7cb251a85ace193cd3a809718d8d0b | refs/heads/master | 2020-05-03T10:51:45.476494 | 2019-03-30T17:23:49 | 2019-03-30T17:23:49 | 178,589,081 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,211 | py | #!python 3
#author-Harfho
#calculator
from tkinter import *
import Pmw
class SLabel(Frame):
""" SLabel defines a 2-sided label within a Frame. The
left hand label has blue letters; the right has white letters. """
def __init__(self, master, leftl, rightl):
Frame.__init__(self, master... | [
"noreply@github.com"
] | noreply@github.com |
021133055a4a3778b9d9a1412114cb2bf5e6181f | 4d982910f97c87af444352d6cc48d108dce0327b | /assignment1/cs231n/classifiers/linear_classifier.py | 78103612d8a1780da520a6af5c2842e92fa0252d | [
"MIT"
] | permissive | ayush29feb/cs231n | a2748fb671fced780a72deba898667d7c9d7323d | 155f411ee353eff3d46ecfff5fa9c6c37aa2afb0 | refs/heads/master | 2021-01-12T09:03:11.908371 | 2017-01-07T03:10:51 | 2017-01-07T03:10:51 | 76,744,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,584 | py | import numpy as np
from cs231n.classifiers.linear_svm import *
from cs231n.classifiers.softmax import *
class LinearClassifier(object):
def __init__(self):
self.W = None
def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100,
batch_size=200, verbose=False):
"""
Train this linea... | [
"ayush29f@uw.edu"
] | ayush29f@uw.edu |
9980789508310896ed4e211680a129c0c3341f00 | c3c0dae9048914fac0b3ed99f7e1fa6e9dfb1e88 | /Scraping_Files/historical_weather.py | 3570da173c8fe96500a9f0eaf8f52a037cf7840c | [
"MIT"
] | permissive | aoifeosullivan19/comp30670project | 329b5bfa3fef689579e03234abdf544e9d0ac960 | cabaa0939a7fe0629100413f1ac2500a2e2b389e | refs/heads/master | 2022-12-13T23:03:50.506601 | 2018-04-20T10:14:31 | 2018-04-20T10:14:31 | 124,516,847 | 0 | 0 | MIT | 2022-12-08T00:57:29 | 2018-03-09T09:13:00 | Jupyter Notebook | UTF-8 | Python | false | false | 3,764 | py | import requests
import mysql.connector
from mysql.connector import errorcode
import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import sessionmaker
from sqlalchemy import *
import csv
Session ... | [
"aoifeosullivan19@gmail.com"
] | aoifeosullivan19@gmail.com |
c0890fb08e18d30c72226789f2fee29bfea5072c | 3357620d0f645665ee407b92ee80a183464a30b7 | /mysite/settings.py | cc5b5f94a21a9822931127edaa05fa934cde90f0 | [] | no_license | bc2h-bis/django-api | 56d4b2d60735f187b4a13d8595fe1ebc278ca995 | 5f7f8e18a2923bd5eb5939eb43527ca43cf7efef | refs/heads/master | 2022-11-05T11:47:28.973202 | 2020-06-21T20:58:10 | 2020-06-21T20:58:10 | 273,981,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
CO... | [
"bchheangsun@gmail.com"
] | bchheangsun@gmail.com |
5b5451db8c50ff61a68abf0e926e2717d703c310 | 5e381364c2ab31ff3618369085afffba6caa8edb | /recipes/ghc-filesystem/all/conanfile.py | a6f41d56f7d61a30937802fdd0e2b28998c42def | [
"MIT"
] | permissive | CAMOBAP/conan-center-index | 16aea68a6d22da22831ba985773125e8eda08f00 | 67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1 | refs/heads/master | 2023-07-30T08:58:57.285571 | 2021-10-02T14:57:54 | 2021-10-02T14:57:54 | 323,262,699 | 1 | 0 | MIT | 2021-05-29T13:37:04 | 2020-12-21T07:30:02 | Python | UTF-8 | Python | false | false | 1,846 | py | import os
from conans import ConanFile, CMake, tools
class GhcFilesystemRecipe(ConanFile):
name = "ghc-filesystem"
description = "A header-only single-file std::filesystem compatible helper library"
topics = ("conan", "ghc-filesystem", "header-only", "filesystem")
homepage = "https://github.com/gulra... | [
"noreply@github.com"
] | noreply@github.com |
b576a164b806e1a163aa18c36c54909b2260d1be | 01ef6c69d0edf648124c165876369a11991a4586 | /Scheduler.py | 8d264c29ef80c472df8a1050243cc518eca12fac | [] | no_license | hrmoradi/cloud_job_scheduler__time_sensitive | e329ce1fb04f893e31b4d79a2e368e8af52ab915 | 4b0dc769912ddcc0bdd8af678c8bcfd3f9683bcd | refs/heads/master | 2023-04-07T13:40:17.417895 | 2023-03-30T05:18:42 | 2023-03-30T05:18:42 | 113,491,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,573 | py | import SchedulerEmulator.Settings as Set
import time
import copy
class ClassSchduler:
once2=0
def MainScheduler(self,jobList,resources ):
self.jobList=copy.deepcopy(jobList)
self.resources=copy.deepcopy(resources)
print("\nMainScheduler")
#print(len(Set.jobList))
""... | [
"hrmoradi@gmail.com"
] | hrmoradi@gmail.com |
9f6438b625d7cfc90592ccfd3800f1582dda0b7d | a8fceacec441df09b41fcadadeff69227565a203 | /mysite/django-polls/polls/migrations/0001_initial.py | 50440f3c26b0f6b30245c129f2dd45a2a69e9ba2 | [
"BSD-3-Clause"
] | permissive | MorganReilly/Django_Polls_App | a37a714bae66a5923b1c09538a7d59a78b4ba91d | b92804e5781c196a6cadc8ffab67e5c1cb611ad2 | refs/heads/master | 2020-06-10T16:04:58.639280 | 2019-06-27T11:58:43 | 2019-06-27T11:58:43 | 193,669,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # Generated by Django 2.2.2 on 2019-06-20 13:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"G00303598@gmit.ie"
] | G00303598@gmit.ie |
d4b764f7e831ff359baef34628a23243eba2602a | 9e837aa38f10e564ea580c29cb9c84e7dd144402 | /test.py | 05c800512f5688204c600a5e344f0dfdaea637ef | [] | no_license | sagorkumarghosh/Begining_of_Python | baaabba33121db5dc18b54d94ab4a8798676c792 | a2f86e3926fa8f67c088abcab7883501c0388651 | refs/heads/master | 2020-12-03T22:16:38.534326 | 2020-01-04T19:36:15 | 2020-01-04T19:36:15 | 231,503,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | Message = "Hello World"
print(Message.upper()) | [
"sagor.ghosh40@gmail.com"
] | sagor.ghosh40@gmail.com |
efa60559837314e3d42c6f282b9075d609ec93c6 | 3444158794a799261fa919eb3a93c7800a5a98ca | /classification/classifi.py | fb7162320b19e54a75171d8fcf07b1df98c9247d | [] | no_license | Israa-Magdy/test | d5ebab4c0046404ecde1add18da474748197b651 | 07fe8165bf84ad7f8a8d5eb9678f319d8bb6626c | refs/heads/master | 2020-08-13T02:00:14.112009 | 2019-10-13T22:05:24 | 2019-10-13T22:05:24 | 214,886,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | import xlrd
import operator
import math
class Node:
item=str()
frequence=int()
prop=float()
def __init__(self,item):
self.item = item
self.frequence = 1
self.prop = 0.0
def Get_prop(self):
return self.prop
def Get_frequence(self):
return self.frequence
... | [
"israa18.magdy@gmail.com"
] | israa18.magdy@gmail.com |
171634c5083e03b67d1ba52d9da286c9e8967ed0 | ebdf8ff635f0a1e5045f17e8d5d44bafbf033860 | /model.py | 6ac5d20965fa69a05a404dbac36b8ac2f9d61e93 | [] | no_license | lifengleaf/Identify-Fraud-from-Enron-Email | f082c279375e1691bc8ab735b7dcca5ae0fb18a6 | beda966d6365a4aeaa254ed4f99a4a172f96dc32 | refs/heads/master | 2021-01-09T20:39:54.618157 | 2016-06-30T08:01:26 | 2016-06-30T08:01:26 | 62,282,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 27 18:44:30 2016
@author: Leaf
"""
import sys
sys.path.append("../tools/")
from sklearn.naive_bayes import GaussianNB
from sklearn.linear_model import LogisticRegression
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors imp... | [
"lifengleaf@gmail.com"
] | lifengleaf@gmail.com |
97faf4aed38139c78d6f2c95aabf7cb7d9d27600 | a671ee6b79c61f420d1300d4b58d6e38c05cf656 | /venv/Scripts/pip3.7-script.py | 3e649914c547cb1265dbaf7726b5d63b9c2ff068 | [] | no_license | nikmorror37/videostore | 14cf08788f3a9fc85f0c9bfae76372958ad8e5ef | 0615839b7af9ed7c20da41e840a9709e7a42096e | refs/heads/master | 2022-11-08T01:30:09.369815 | 2020-06-03T16:38:08 | 2020-06-03T16:38:08 | 269,140,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!C:\Users\Nick\Documents\my_first_project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"nikitamironchuk37@gmail.com"
] | nikitamironchuk37@gmail.com |
949a8c8c724cfc1935bad3f076cde9b9a462fbd0 | 808c94d87e1d1266f3adc57c755134b191cd5f8f | /parsePfamResults.py | 3afeddc6d03ffbdaedb7468612574a4de1be3def | [] | no_license | riteshkrishna/RK_Utility | 4ab0e79f52d48b69e7e62fab1cfb4a1eb81801f5 | 73608e1b9ee010e1bf9ae4d7e4b52cd56f0fc14f | refs/heads/master | 2020-05-31T16:06:42.184221 | 2015-08-06T17:26:14 | 2015-08-06T17:26:14 | 40,238,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | __author__ = 'riteshk'
def parsePfam(pfam_file, processed_output):
fin = open(pfam_file)
fout = open(processed_output,'w')
part_lengths = set()
contig_names = {}
for line in fin:
if line.startswith('#'):
continue
if line in ['\n', '\r\n']:
continue
... | [
"ritesh.krishna@gmail.com"
] | ritesh.krishna@gmail.com |
629fd21c586ab42cccdaef4701c00cc13d63ddc6 | 9042bdd3a4dfbb9de08a1f1729e3bbc8203a795c | /nueralNet.py | f56b990dc809cfea00979d5a9bb5186df4c86d11 | [] | no_license | reachkritz/MLBeginner | 156ccc6647667ee56f9d89fbb8d92eaa9d670c8b | 4ff0d0fdaa5be95f1b4c205d2333506c92d8db32 | refs/heads/master | 2020-09-27T01:29:40.491229 | 2019-12-06T18:57:27 | 2019-12-06T18:57:27 | 226,390,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | from sklearn.neural_network import MLPClassifier
import pandas as pd
import numpy as np
from sklearn import preprocessing,cross_validation
from sklearn.utils import shuffle
#Reading training data set
df = pd.read_csv('fordTrain.csv',sep=",",header=0,usecols=['IsAlert','E8','E9','V11'],nrows=350000)
#Dividing it into ... | [
"dwivedi.kriti2@gmail.com"
] | dwivedi.kriti2@gmail.com |
96b9e5e8b1b17460d4c3846c6aed262b27507927 | 09d557d00002ad39bce2436454f15acd75186a92 | /pbh5tools/cbook.py | 3884303b502960a96c40ff79c2b08eb004dd74b7 | [] | no_license | Global-localhost/pbh5tools | b6856d0c83269fd7bf17f62d6ad9db953a600dc1 | 9fa8fc4a6ad9a956e09c42d4cb351bca3f72e1a1 | refs/heads/master | 2022-12-02T16:17:10.987581 | 2018-12-12T20:00:50 | 2018-12-12T20:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | #################################################################################
# Copyright (c) 2011-2013, Pacific Biosciences of California, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | [
"a@b"
] | a@b |
8f2f6ecc32daa61b5f5e9632ca2a876e1cb72fc9 | 1478ac71bc2a75cdc11e725d8282569dd775d52b | /models/user.py | 8819c5404c48a848fa74a1dae4de82c8dd213334 | [] | no_license | FrannyMendesLevitin/we-govern | 0335fe757dd04f8137d47c78c737a6a16bbabf1d | 3dcf9d474b1cfddaf7436b223b2514219b27db47 | refs/heads/master | 2021-01-18T18:18:41.068021 | 2016-06-25T00:55:51 | 2016-06-25T00:55:51 | 61,582,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py |
"""
Represents the User database entity
"""
from argon2 import PasswordHasher
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadSignature, SignatureExpired
from config import SECRET_KEY
from models.database_model import DatabaseModel, CharField
class User(DatabaseModel):
username = CharF... | [
"fmendeslevitin@gmail.com"
] | fmendeslevitin@gmail.com |
612ca991bde89d530e1b261c0448a788eb8c71dd | 022b7dbdb7c5563bee1e1c656249c250baa79544 | /linked_list/exceptions.py | a892d8a7a26c4eb94b13a326b3e2275ed1efc137 | [] | no_license | marquesds/data_structures | 6f6dc952cdced5ad16f1b17a118ea3d88457998f | 1cfedd4189ba38e50b25ee731016cc5d69c492a6 | refs/heads/master | 2021-08-30T07:22:11.846231 | 2017-12-16T18:06:08 | 2017-12-16T18:06:08 | 114,476,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | class EmptyLinkedListException(Exception):
pass
class NotFoundException(Exception):
pass
| [
"lucasmarquesds@gmail.com"
] | lucasmarquesds@gmail.com |
a216582a7342562df7678c96332cdb112eccaa68 | 78bb5aa205921286b86204840ef022427143b5e1 | /Python/APIProject/Basic/two.py | 87f11048b25e5e2f37597f24ec31d3479f4d96ae | [] | no_license | liuzhengxing/Test | 341d360d104232e5270b99bf084bdefad7282780 | 750e1121fc1a2e5fe9cd54885ee673d3fed404c8 | refs/heads/master | 2020-03-23T07:02:02.396728 | 2018-08-07T09:14:53 | 2018-08-07T09:14:53 | 141,244,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # encoding: utf-8
import Basic.one as o
# two = o.ClassOne()
# two.func()
from Basic import one
from Basic.one import ClassOne
from Basic import *
from Basic.one import *
from Basic.one import test
| [
"michaellzx.com"
] | michaellzx.com |
857ef95fb96f13129204183246f69caa4252267d | 4d07af33bd42510d72097e7518de8c8eccc54093 | /blog/migrations/0001_initial.py | 4c5d89457f996b3be6be0e47ddc6c7970c92a73f | [] | no_license | Simonm17/django_blog | aa8efe8bc64cc3c4565dbe8bee7401bceebde01b | f73216bd795a45cfc45fe5764c594abe280d54af | refs/heads/master | 2021-07-22T18:38:25.905221 | 2021-01-15T22:15:26 | 2021-01-15T22:15:26 | 236,884,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # Generated by Django 3.1 on 2020-08-06 10:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"ryanchuung@gmail.com"
] | ryanchuung@gmail.com |
183611ac29eb22fef0ace8fc886bf34f6a42b118 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Non_Linear_Finite_Element_Analysis_of_Solids_and_Structures_Borst/pyfem-1.0/pyfem/solvers/Solver.py | 2f5f42f519614cbfcae51e0f61b1ad62fe84b778 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,684 | py | ############################################################################
# This Python file is part of PyFEM-1.0, released on Aug. 29, 2012. #
# The PyFEM code accompanies the book: #
# #
# 'No... | [
"me@yomama.com"
] | me@yomama.com |
1b9501b16eff9bc9c2b5f748eb107b9801130cf3 | c6ca456c67669ddacb5cd27e5ad25c1802bb579d | /pckg/mod1.py | 39a0ad5cc94df12748455b7f1c2dc6fe9094088c | [] | no_license | Kamyab-Majid/class_python | e69be7a87474732c1816e33fae08c163a56d1167 | ea6f79208400362016fe8b6a69c274c62d994506 | refs/heads/master | 2023-06-16T09:27:35.115913 | 2021-07-05T16:03:58 | 2021-07-05T16:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py |
def add(a, b):
return a + b
class Foo:
pass | [
"kamyab@ualberta.ca"
] | kamyab@ualberta.ca |
de8e537c967a6c40257936c2133a9f0364ff06c1 | 0a52cbd3b6a4d83468e20937c47e5c1bc2ac7b6e | /scripts/dev/jaccard_combs.py | 9f48aaf12ccbe5185ee42f738b01a42be5fb84e2 | [
"MIT"
] | permissive | ptrebert/project-diploid-assembly | 40b68128b6389aaf99a5b9ee71cd5d9034b41a36 | a00e6bf89a5fe88a7a3e3005097dfab33f845478 | refs/heads/master | 2023-06-25T16:13:55.792788 | 2021-03-05T10:57:31 | 2021-03-05T10:57:31 | 180,403,483 | 14 | 3 | MIT | 2021-03-15T17:19:55 | 2019-04-09T16:01:38 | Jupyter Notebook | UTF-8 | Python | false | false | 3,702 | py | #!/usr/bin/env python3
import os
import csv
import argparse as argp
import itertools as itt
import subprocess as sp
import functools
import multiprocessing as mp
JACCARD_CMD = 'bedtools jaccard -a {file_a} -b {file_b}'
def parse_command_line():
parser = argp.ArgumentParser()
parser.add_argument(
'... | [
"36245614+ptrebert@users.noreply.github.com"
] | 36245614+ptrebert@users.noreply.github.com |
abf2c437b230f60e8e8544b196e5bc7af7abf09d | 996a45b73d950e1d4a094b8c17ffd29262cf82a7 | /00_College Courses/UCLA/Computational Theory/HW3/homework_three.py | 3f0afd5d12a4123ced638d50916e2809d0f3c064 | [] | no_license | huntingcarlisle/CS-Coursework | 3e4e848ff628b019d8de58cf1e5df3241145b27c | 592d8d75dc6d79d7dd3e53e29e499e43640e37cb | refs/heads/master | 2021-07-01T16:57:14.530850 | 2019-05-03T08:42:39 | 2019-05-03T08:42:39 | 132,169,792 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | from operators import *
def problem_zero(number):
""" SC x2 binary """
memory_zero = 0
input = int_to_list(number)
input.append(0)
output = []
for digit in input:
output.append(memory_zero)
memory_zero = digit
return list_to_int(output)
# print(problem_zero(1010) == 1010... | [
"huntingcarlisle@gmail.com"
] | huntingcarlisle@gmail.com |
5f802a92d817bb6536a911bef002532abe703dd2 | 182d148e3229902105af8eaf3fbafc4abebc20bf | /Kalmykov_Practical_5/quest10.py | 76c002a60c0ecfae3b103d5c430b3701261303bb | [] | no_license | Vampir007one/Python | 4fecec7ca0eff078aa40f7a232be712de7ee04fb | bc1790f7d4382c6aca4acfc8ef6f6525698a56d1 | refs/heads/master | 2023-04-12T21:34:17.465161 | 2021-04-22T19:47:11 | 2021-04-22T19:47:11 | 343,942,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | chet = -1
number = -1
while number != 0:
number = int(input("Введите число: "))
if number % 2 == 0:
chet += 1
print("Количество чётных элементов:",chet) | [
"kavani4@yandex.ru"
] | kavani4@yandex.ru |
484dd2614bc1998f472dbd8a6f1d1f0e21435d77 | 893c2a3edcbbb207982118b9b09bab3c5b5a912a | /ditto_complete/Snippext_public/snippext/train_util.py | 3d17649d99daf32f7cedd109fcdda2d20ed1172d | [
"Apache-2.0"
] | permissive | Erica3969/Entity-Matching | c2be16fe77f1738557ebab092559e6c1f499e0d6 | c94dac32e65abaf7bf34bcc7cacce8ea2d218a52 | refs/heads/main | 2023-04-19T08:56:57.218329 | 2021-05-10T07:29:39 | 2021-05-10T07:29:39 | 356,261,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,749 | py | import torch
import os
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import sklearn.metrics as metrics
import uuid
from .conlleval import evaluate_conll_file
from transformers.data import glue_processors, glue_compute_metrics
def eval_tagging(model, iterator, idx2tag):
"""Evaluate a tag... | [
"myhong.le@relaxdays.de"
] | myhong.le@relaxdays.de |
3a0ff5f8659fafcd9c7481214d9262b69269c211 | 553ec321ee9929f2ad0a4132d0ff6395c0d64772 | /Insta_app/migrations/0001_initial.py | 43123563a4f2a800c08959fd179750dedad9c8db | [] | no_license | TwinkleGumber/Instagram_clone | 35dd1310a638c52504f135e38fc17939cb8e1fd7 | f2c303a2d5f8e3908b54f2542cc3bf6e2ff58d42 | refs/heads/master | 2021-06-22T11:10:56.273064 | 2017-08-18T16:22:33 | 2017-08-18T16:22:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-24 13:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserPr... | [
"isha97kansal@gmail.com"
] | isha97kansal@gmail.com |
1d8b58f45fd8ae0ffa029e023cb52d36224f2127 | 6e7534aba4203445302c82bdc3a1355191782365 | /all_checks.py | 3ccd34ef784adaf8a714b127af58eb7fc519a417 | [] | no_license | nafisshy/health-checks | f7491a1bb952f26a6238815937487fda69374660 | 3894a5283b55a21519359c9ae3cb825cb5bfcb61 | refs/heads/main | 2023-05-30T07:02:50.796812 | 2021-06-21T07:14:45 | 2021-06-21T07:14:45 | 378,631,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | #!/usr/bin/env python3
import os
import sys
def check_reboot():
"""Returns True if a computer has a pending reboot."""
return os.path.exists("/run/reboot-required")
def main():
if check_reboot():
print("Pending Reboot")
sys.exit(1)
print("Everything ok.")
sys.exit(0)
main()
| [
"nafiritzy.59@gmail.com"
] | nafiritzy.59@gmail.com |
8de0ad73da91f576cde855e9dd726d82989f65bd | 32d6370fe51c42cd99af52b03f81a82d687e5bb3 | /aula011.py | 5f28ccb2565b448fbc249cf4f8230a43606851f4 | [] | no_license | AndreLovo/Python | a5f4b10c72641048dfd65b6c58bce3b233abeb07 | ea98a2ca572dfebf9be32502f041016ec14ac0d5 | refs/heads/master | 2022-05-03T13:08:37.178401 | 2022-04-10T16:41:54 | 2022-04-10T16:41:54 | 157,377,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | print('\033[1;31;43m Olá Mundo!\033[n')
print('\033[7;30m Olá Mundo!\033[n')
| [
"noreply@github.com"
] | noreply@github.com |
2ed9c19851b9bc62ae4c409439f33728ff16f76a | 8692807f1dfa8c18c61df07cfafbbd27d4e66fba | /previous_problems/BEGINNER/CHN09.sol.py | a30740f15472fbe4e2738dd1ba776740691bc28d | [] | no_license | sharmakajal0/codechef_problems | 00381e9bf1996b859e46f087c2ffafd9d7a10ef1 | 0b979029e0a821f47fbdd6f9c624daee785a02e7 | refs/heads/master | 2020-05-29T15:04:40.459979 | 2020-03-29T08:44:53 | 2020-03-29T08:44:53 | 189,212,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/env python
for _ in range(int(input())):
s = str(input())
amber = 0
brass = 0
for i in s:
if i == 'a':
amber += 1
elif i == 'b':
brass += 1
if amber > brass:
print(brass)
elif brass > amber:
print(amber)
else:
print(... | [
"sharma.kajal.sitm@gmail.com"
] | sharma.kajal.sitm@gmail.com |
ea60fbccdb66bee9277463dd376bba7125850002 | 8236f6b5c27222fb88783c3cda16a8f07015a0cd | /src/plotter/points_to_info.py | 430278ac2b202209040251982bc6a596ecfb7c6c | [
"BSD-2-Clause"
] | permissive | biomimetics/exploration | 150ab63ad443ec54eea689c17d4d1cda9802bf0a | d77286a2875451de041c1b431df1bc8f59790d2a | refs/heads/master | 2021-01-15T17:15:49.479706 | 2017-08-08T23:15:43 | 2017-08-08T23:15:43 | 99,744,121 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | #!/usr/bin/python
import sys
import numpy
from digifab import *
def polymesh_volume(polymesh):
stl_data = {'points':polymesh.points, 'faces':polymesh.indices}
data = numpy.zeros(len(stl_data['faces']), dtype=stl.mesh.Mesh.dtype)
data['vectors'] = [
stl_data['points'][idxs,0:3] for idxs in stl_data['faces']
... | [
"austin.d.buchan@gmail.com"
] | austin.d.buchan@gmail.com |
646d4b249fae7d33c288ffbadc7669cfe7b0b787 | aa265e03e73f718d4008cfe30ada7ee32c852eec | /ABC_B/ABC158_B.py | 72d7ebebec13e3477adb87e193dac338d8e588da | [
"MIT"
] | permissive | ryosuke0825/atcoder_python | 4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5 | 52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5 | refs/heads/master | 2023-03-11T22:47:56.963089 | 2023-03-05T01:21:06 | 2023-03-05T01:21:06 | 181,768,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | n, a, b = map(int, input().split())
ans = n//(a+b)*a
amari = n-(a+b)*(n//(a+b))
ans += min(amari, a)
print(ans)
| [
"ayakobon@gmail.com"
] | ayakobon@gmail.com |
be6f82cb106e2c9c2c3408a68ca6dc1739e636be | fff19d5b3d08518333bca0daeece8bd422de2505 | /K means.py | 3b864e96ea4b1c33c1e91d9a7c4359a9d8541866 | [] | no_license | prateek781995/Neural | 34d95fcb61cbe482d74c8b4ab7d07eac4777d2bb | 0e7cd561bb213d952118d5e09dc716b8c99e6168 | refs/heads/master | 2020-03-19T18:52:06.404156 | 2018-06-25T08:21:18 | 2018-06-25T08:21:18 | 136,828,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
dataset = pd.read_csv('Mall_Customers.csv')
x = dataset.iloc[:,[3,4]].values
from sklearn.cluster import KMeans
wcss = []
for i in range (1, 11):
kmeans = KMeans(n_clusters = i, init = 'k-means++',max_iter = 300, n_init = 10, random_stat... | [
"noreply@github.com"
] | noreply@github.com |
c423aa3aae2fbf9cab46298e451c9a089326366a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /vcFgGJHxhTwRiLK5d_14.py | 4a507ff87ec2b6c51b89dc31487dd6f18bceb1b8 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py |
from fractions import gcd
def smallest(n):
lcm = 1
for i in range(1, n+1):
lcm = (lcm * i)//(gcd(int(lcm), i))
return int(lcm)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
11a635d63cb3cc6ec4f23bc2d39a60be2dea79e2 | e37f5df6d380e9395e2433558be05090c2e2cd72 | /tspec_mapping/make_index_from_field.py | 8384803f596600e08a0ab8f71024bd3eefc7a835 | [] | no_license | keflavich/tspec_mapping | c8bcff914095cb3bc2bfc9dccdcbe7897e5399c7 | b61e561235a5c3c104cb3a59e016fc252dbd5845 | refs/heads/master | 2021-01-18T14:15:14.241892 | 2015-02-13T06:22:29 | 2015-02-13T06:22:29 | 7,315,394 | 0 | 0 | null | 2013-09-28T15:54:17 | 2012-12-25T07:32:22 | Python | UTF-8 | Python | false | false | 5,970 | py | import astroquery.irsa
import astrometry
import astropy.io.fits
import numpy as np
import atpy
import os
def make_index_from_table(table,fieldname,fov=None,clobber=False,**kwargs):
"""
Given a table with RA and Dec columns (case-sensitive!), build an astrometry.net
quad index
Parameters
----------... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
35db90b35233029d18d2e2ba5cb702018a99f6fa | 08838cd8efbfbfc0a515bd1383db654cef65ef18 | /Python/Exercise13.py | dc56cf794e81a9b092307aacc01c086a045840a9 | [] | no_license | AkshayMehta78/CS6112017 | 8ecb4e7a2e6fa4126ae414f057c81a0283ca092c | c5d13bbf670ea7ef1296da373b4c7feb01921219 | refs/heads/master | 2021-08-31T14:41:25.235419 | 2017-12-21T18:46:57 | 2017-12-21T18:46:57 | 103,982,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import re
file = open("email.txt", "r")
f1 = file.read()
k = re.findall(r'(\w(?:[-.+]?\w+)+\@(?:[a-zA-Z0-9](?:[-+]?\w+)*\.)+[a-zA-Z]{2,})', f1)
for j in k:
print(j) | [
"akshaymeht9211@gmail.com"
] | akshaymeht9211@gmail.com |
3df683e8903138ebdc951f06fbbd6c3e9bf2ff7b | d664f6cdcd280d7575dd1f6082a2ad8bdabed14c | /test/functional/interface_rest.py | 6fd897edac33a30478a179e7b4ae8e5bfb1c91d5 | [
"MIT"
] | permissive | minblock/motherofweeddaycoin | 22c287cac9c925f03a5aa1f36243ce51f89ebd80 | eeb0625c0f2f35412b3a69da50bc55f6acd6806d | refs/heads/master | 2022-04-26T05:10:07.935378 | 2020-04-28T23:11:46 | 2020-04-28T23:11:46 | 259,339,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,715 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the REST API."""
import binascii
from decimal import Decimal
from enum import Enum
from io import... | [
"POSTMASTER@provgn.com"
] | POSTMASTER@provgn.com |
b86ef1f95385a2b591a657cd8910eb6799774440 | ede3dbce69ed540e739993827de7acde0950f5f6 | /scripts/gpio_part_3.py | a86702cf4f546bdfba27d608b1c3722da0ef5439 | [] | no_license | benoitmangili/eveningmeeting_fun | 2df3edcdc5f52250bbba1fc7d0e171219a3dceb0 | e7902e62708f127a8d5e4bf1f7179d2b689d6873 | refs/heads/master | 2021-01-10T14:08:24.821396 | 2016-02-29T20:53:57 | 2016-02-29T20:53:57 | 51,866,832 | 2 | 0 | null | 2016-02-29T20:53:57 | 2016-02-16T20:23:08 | JavaScript | UTF-8 | Python | false | false | 1,203 | py | from flask import Flask, jsonify, render_template
# You can only use DS18B20 on the raspberry pi, so for testing
# on your dev machine use the dummy sensor.
from sensor.sensor import DS18B20 as sensor
# from sensor.DummySensor import DummySensor as sensor
try:
import RPi.GPIO as GPIO
except:
# MockGPIO can be ... | [
"anniekvanderdrift@hotmail.com"
] | anniekvanderdrift@hotmail.com |
9c147e53efc48ac53ba7d577f935f044f5beeca5 | 099f17c970cd42005d7dc98e6b98829790eed8e8 | /modules/logger.py | a950e1d32c1e2296fff9e5fe5b22321a1ebb229a | [] | no_license | sirpercival/eiko | b5bcfbcf7b9201f97044f60c11f50e7e25ecb9bc | 1ae00ae1a3d7a69bf5ff441edc5da32751683edf | refs/heads/master | 2016-09-05T12:24:50.530069 | 2015-02-20T12:53:56 | 2015-02-20T12:53:56 | 16,088,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | #!/usr/bin/env python
"""
logger.py - Esteban Feldman
based on logger.py - Phenny Room Logging Module
Author: Peter Higgins (dante@dojotoolkit.org)
About: http://higginsforpresident.net
License: AFL | New BSD
"""
from datetime import datetime
import logging
import logging.handlers
import os
logger = None
def get_log... | [
"graymation@yahoo.com"
] | graymation@yahoo.com |
d3d83ff26dd4c06c4b2945ecf1b2bb3288ff2cf3 | 06269aa18193f3155032300734a10ed4b6e11006 | /lib/utils/data_utils.py | 2f578b9ddaac7960a011ac3baaeab1b0506aa4c1 | [] | no_license | webclinic017/qu-ant | 58337b3d270c5153ccf61c8bb2dfd0620aec72e7 | 882104fdfb69cb64d9b56f659f89af54efa6eda0 | refs/heads/master | 2022-10-20T23:24:56.274831 | 2020-05-14T19:33:02 | 2020-05-14T19:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | from functools import reduce
from os import makedirs
from os.path import join, dirname, exists
import pandas as pd
import pandas_datareader.data as web
from datetime import datetime, timedelta, date
def get_data_dir():
"""
Get price data dir
:return: data dir string
"""
return join(f'{dirname(_... | [
"s_park@wargaming.net"
] | s_park@wargaming.net |
53336bf6ad31052dae4b45c6789847b6ee85d022 | 211108d505c661f6b67dc20901600dc5d0f01aa8 | /server/portal/apps/webhooks/models.py | 1abfa531a6343149d0407532a5d8c81b5d458a61 | [] | no_license | Avila0000/Core-Portal | 643051e3f6e092848c898d0828d2b83f7dcafebd | 83f452436d5586b99ef2a9f327aab833ee794d1e | refs/heads/main | 2023-07-19T13:05:12.536271 | 2021-09-01T17:39:34 | 2021-09-01T17:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | from __future__ import unicode_literals
from django.db import models
from django.conf import settings
from datetime import datetime
from portal.apps.webhooks.fields import JSONField
# Create your models here.
class ExternalCall(models.Model):
"""ExternalCall
Used for tracking outbound calls
"""
# ... | [
"noreply@github.com"
] | noreply@github.com |
d9b120c6b3b4f2a5ecffddf3d0f51f0bbf07cc85 | 401f783a202949adbf144b5780bcd87a6daf2299 | /code/python/Day-89/SumNested.py | 790c9104c096a14e9c9ead74bef4561443cec9d7 | [] | no_license | TalatWaheed/100-days-code | 1934c8113e6e7be86ca86ea66c518d2f2cedf82a | b8fd92d4ddb6adc4089d38ac7ccd2184f9c47919 | refs/heads/master | 2021-07-04T14:28:45.363798 | 2019-03-05T13:49:55 | 2019-03-05T13:49:55 | 140,101,486 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | def sum1(lst):
total = 0
for element in lst:
if (type(element) == type([])):
total = total + sum1(element)
else:
total = total + element
return total
print( "Sum is:",sum1([[1,2],[3,4]]))
| [
"noreply@github.com"
] | noreply@github.com |
5880aa7d66f44bc26ed84056fc7d1eae60416121 | cd11c8f3d5759ca0df2f0bfae07d06076e88e6c6 | /scripts/__init__.py | dccaf76a76e6331904e87939492b987f64914922 | [
"MIT"
] | permissive | ryanai3/TooMuchData | 19a548dc3d5de206191fc6815fd02138025ba031 | 67028d8b2ba92954f27a53cfad6e433d611eb373 | refs/heads/master | 2021-01-19T02:06:40.047964 | 2017-05-17T18:14:20 | 2017-05-17T18:14:20 | 87,261,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | #!/usr/bin/python3
import sys
from os import path
sys.path.append(path.join(path.dirname(__file__), "../"))
| [
"ryanai3@hotmail.com"
] | ryanai3@hotmail.com |
625c5c86163441355f9435cb90d5a30ef8ea1d64 | 3759001298b6b9a656ed4c6b3493764eb253a526 | /poll_website/asgi.py | c1a03d05c449d5ea3dbbecbdaa989e225c09849b | [
"MIT"
] | permissive | haku-kiro/poll-app-django-tut | a0607897cb334887e575cf3bda706212f3419ced | 2ee4b6253cd04712743f7eed27953b64beeeaf5f | refs/heads/main | 2023-01-20T01:10:35.600948 | 2020-11-26T20:06:34 | 2020-11-26T20:06:34 | 315,582,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for poll_website project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"botPrime@yahoo.com"
] | botPrime@yahoo.com |
65218b633078aab353f34b5388ef7be786a78804 | 67479080bcfa3a9b988619072c9cd90e1f44ec36 | /fanpage_tracking/urls.py | bb62ad1e2b67bac881dd790125891ab8773c394c | [] | no_license | jbwinters/django-facebook-scraping | 1f6d3ffed7007e736d4358156c104e81a21e9ff3 | 928a77f572a53090c40992905ccc8b6dff970faa | refs/heads/master | 2020-05-16T21:50:25.806043 | 2013-03-07T12:24:11 | 2013-03-07T12:24:11 | 8,618,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.conf.urls import patterns, url
from fanpage_tracking import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index')
)
| [
"jbwint@umich.edu"
] | jbwint@umich.edu |
e65dd8e631f639e6842a7669548ca869e28a4c65 | c998a4ef92551cdbbd5320502e3be2fddc95f1e6 | /pymodule/drift.py | 5e062167c62bf8bc68619f4616efe2b2df6653e7 | [] | no_license | jdbowman/sim | 09adb1b19881683e58846678339f458c0a8d5d73 | 3d51d4a2545da4e31c59ca3d12f541bc0d5d0e5b | refs/heads/master | 2016-09-06T18:24:40.652576 | 2013-10-10T17:53:03 | 2013-10-10T17:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,410 | py | """
This module provides and (probably) complete and automate object to work on
drift scan simulations of the MWA using MAPS. It requires a python wrapper for MAPS (maps.py).
"""
import os
import astro
import settings as s
import numpy as np
import maps
import multiprocessing
from datetime import datetime
class _Inp... | [
"piyanat.kittiwisit@asu.edu"
] | piyanat.kittiwisit@asu.edu |
463cf524dbd01e72dbb67f1b1b24dff9c7398279 | 8bbb508b2efd88beff28e072b6ba3ad5ad86f9c7 | /Config_ipython_import/ipython/import_here.py | f079107a00955301b1fb74660f6674d951bf3ce6 | [] | no_license | wubinbai/2019 | 1f31a96d49c3383e696f208358347341783f6141 | 5f1e191a037b793abb97120f4e13185782c64a2c | refs/heads/master | 2021-06-30T11:48:16.230757 | 2020-09-25T09:09:01 | 2020-09-25T09:09:01 | 162,510,722 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import numpy as np
import sys
#np.set_printoptions(threshold=sys.maxsize)
np.set_printoptions(threshold=100)
import pandas as pd
import matplotlib.pyplot as plt
plt.ion()
import seaborn as sns
from tqdm import tqdm
def plot_whole(df):
with pd.option_context('display.max_rows', None, 'display.max_columns', None): ... | [
"wubinbai@yahoo.com"
] | wubinbai@yahoo.com |
acd70c689aadba0004d4bd006f6733ce1b15a7c9 | 018e94228ad947b9f7daeea462e6f37ac877c461 | /script/dataprocess.py | d3297c32066e91e992c377587d55e909c37bccfb | [
"MIT"
] | permissive | xing969541/SLKG | a2c743b33cd8752ce35cf039b9abeb9fcdaae4cf | 76044b363f1f6a19d9b05b2ff37b9f95681829b3 | refs/heads/main | 2023-05-13T22:18:56.556730 | 2021-06-08T12:38:22 | 2021-06-08T12:38:22 | 374,991,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # -*- coding: utf-8 -*-
import os
import torch
import numpy as np
import pickle
import matplotlib.pyplot as plt
def cal(pos, neg, threshold):
TP = (torch.sigmoid(pos)>threshold).sum().item()+1e-10
FN = (torch.sigmoid(pos)<threshold).sum().item()+1e-10
TN = (torch.sigmoid(neg)<threshold).sum().i... | [
"noreply@github.com"
] | noreply@github.com |
72cb90443622f17cb20d8938e8dbfe67946b4cb3 | 5551bf5a41bc97f300eb3fb25d1cf8063708380d | /SocketScripting/clienthash.py | f27f4b535638ea3a98f214f4c7464c43dade227b | [] | no_license | joaoalencastro/pythonSocket | 35a499582ebe8c7c59ff9ad14f6c65bfbe5ac15d | dbd1857262ffd091849d97c42a7f78e3f8d4e1be | refs/heads/main | 2023-09-01T05:35:42.492545 | 2021-10-20T21:00:27 | 2021-10-20T21:00:27 | 381,063,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | #!/usr/bin/env python3
import socket
import hashlib
from datetime import datetime
### This script will send TCP requests to the HOST:PORT provided in chunks of BYTES
HOST = 'localhost'
PORT = 8088
BYTES = 128 # if working with hex this number should be doubled
FILE = 'Texts/rfc761.txt'
# make the hash string
# resu... | [
"joao.alencastro@gmail.com"
] | joao.alencastro@gmail.com |
7258c482e8ee9b88d64784f4b8132d59778a383d | 6c721f3cfce6dc88396cd3b5f6a59d65a2ea5033 | /some_learn/Data_Set_handle/Caltech-Dateset/test/caltech_generate_xml/generate_xml.py | 5252a995b10a61e6a84100101e23d4a81ac98bc2 | [
"MIT"
] | permissive | unicoe/PycharmProjects | 20a3dabe88c7874da54451c7bb16999afc0eee35 | 23ff314eb5ac9bfa01a8278089d722b5d0061751 | refs/heads/master | 2020-03-23T09:16:25.907188 | 2019-12-21T03:10:49 | 2019-12-21T03:10:49 | 141,377,686 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,550 | py | #!/usr/bin/env python
# coding:utf-8
#from xml.etree.ElementTree import Element, SubElement, tostring
from lxml.etree import Element, SubElement, tostring
import pprint
from xml.dom.minidom import parseString
import os
def mkdir(path):
import os
path = path.strip()
path = path.rstrip("\\")
isExists ... | [
"unicoe@163.com"
] | unicoe@163.com |
f93bb6502470527de85f096ad5738e84d4acca70 | 9869ddc4064537eb9799656469ae7bd4e4c43d0e | /postScrape/postScrape/mergeJSONFiles.py | c519486bd74daceaaea47d31a865f02ea6b839ad | [] | no_license | srivathsanvenkateswaran/TechNewsAPI | 92f72cf0fc2623caae3f514854146c65afa133b0 | b6ca058018af431de565831c81ea5f1c22fb5cf2 | refs/heads/main | 2023-04-13T17:53:09.253682 | 2021-04-22T07:56:48 | 2021-04-22T07:56:48 | 353,101,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | if __name__ == "__main__":
import json
with open("results/Beebom.json", "r") as b:
BeebomJsonArray = json.loads(b.read())
with open("results/AndroidAuthority.json", "r") as b:
AndroidAuthorityJsonArray = json.loads(b.read())
with open("results/TechCrunch.json", "r") as b:
... | [
"srivathsanvenkateswaran@gmail.com"
] | srivathsanvenkateswaran@gmail.com |
b80a88051f1dc03724408229030e45ca92dbfe39 | c13aa17d0eb0c9ac958a66556854afc5d5e9da69 | /test.py | 76b7ae04d30e33bc6d70cbacaa8d2510ee49c16b | [] | no_license | shadowuyl/Kaggle-TGS | 77ded1560bf03c076784e9807b005d255f57f00d | 2fe071415ad81442b8943100e8f909bc22624457 | refs/heads/master | 2020-05-25T12:21:42.234059 | 2018-11-28T11:55:40 | 2018-11-28T11:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,369 | py | import sys, os
import cv2
import torch
import argparse
import timeit
import random
import pandas as pd
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from tqdm import tqdm
from torch.backends import cudnn
from torch.utils import data
from ptsemseg.models import get_model
from ptsemseg.loade... | [
"adam9500370@yahoo.com.tw"
] | adam9500370@yahoo.com.tw |
dbde1c3632b63562b28f337abb336eb6cbd3c802 | cba0fef2ff63aea907067f327b3d9338ad71b51c | /venv/rest/bin/easy_install | 77b2f26d7b72fe6b21a08a70baf0f49cde5c066e | [] | no_license | KarolinaGrabinska/instaphoto | a5f0a7f6c9314307ad372b1bc70e11a32a3e9399 | 734beacc3fc7a5e91c3d90135c2ce4915ade9c48 | refs/heads/master | 2020-04-28T22:52:39.299148 | 2019-03-27T19:21:38 | 2019-03-27T19:21:38 | 175,633,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | #!/home/karolina/PycharmProjects/instaphoto/venv/rest/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"karoline.grabinska@gmail.com"
] | karoline.grabinska@gmail.com | |
2f9701d3eb3a5d5bf0b18b81eb4876c8ed5f1b79 | bf8d8ea1c69ac130ca7f348e2691e135675470a1 | /bin/gonha | 514479f996a45bd8e9c8221e8a925e3df5958264 | [
"MIT"
] | permissive | DellLord/gonha | f36149824d347315825b61a99722f8ad55fba9f0 | e8e6009fd3249084c9720a2f567449c7393c7282 | refs/heads/master | 2022-12-03T23:11:06.807101 | 2020-08-02T19:47:59 | 2020-08-02T19:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | #!/usr/bin/python3 -Es
import sys
from gonha.mainwindow import MainWindow
from gonha.util import Config
import coloredlogs
import logging
import os
if __name__ == '__main__':
os.environ['QT_LOGGING_RULES'] = "qt5ct.debug=false"
logger = logging.getLogger(__name__)
coloredlogs.install()
config = Config(... | [
"fredcox@gmail.com"
] | fredcox@gmail.com | |
a8c3e67c479b11711e752d618a64e6d5f14d3cec | c523eff326b8bc6c0c903bf7fe16ec3b98605bff | /AejiJeon/CodeUp/기초100제/cu_1025.py | 0ff9f49b5ba24a4bc72640377e4b39f2876d828a | [] | no_license | IgoAlgo/Problem-Solving | c76fc157c4dd2afeeb72a7e4a1833b730a0b441d | 5cc57d532b2887cf4eec8591dafc5ef611c3c409 | refs/heads/master | 2023-06-26T05:12:02.449706 | 2021-07-14T06:57:00 | 2021-07-14T06:57:00 | 328,959,557 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | # integer -> sizes of digits
integer = input()
i=4
for a in integer:
print("[%d]" %(int(a)*pow(10,i)))
i -= 1
| [
"jeonaeji@gist.ac.kr"
] | jeonaeji@gist.ac.kr |
09757e17c77afedd911af60a96e41bb9f1d358ad | 1650e31f3271174469c8c57df9d3114d92200305 | /blog/blogsite/models.py | a403c5c2a8242da06cc417af7a6b6b76108b43b6 | [] | no_license | yolkoo95/django | cb61931b021b877b2692613256e78eb63045f9aa | b1770121a2b1a2d45e10e565f79a6a24de211bbf | refs/heads/master | 2021-05-19T06:46:50.685647 | 2020-04-05T10:37:02 | 2020-04-05T10:37:02 | 251,571,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=200)
slug = models.CharField(max_length=200)
body = models.TextField()
pub_date = models.DateTimeField(default=timezone.now)
class Meta:
... | [
"nicolaspotato6174@gmail.com"
] | nicolaspotato6174@gmail.com |
c91effaaaa7685813f70b6e5719bd5298048a24f | f714db4463dd37fc33382364dc4b1963a9053e49 | /src/sentry/integrations/msteams/utils.py | 3dd201dde1ca3bb9f4e5d09390e9154ffa859fb7 | [
"BUSL-1.1",
"Apache-2.0"
] | permissive | macher91/sentry | 92171c2ad23564bf52627fcd711855685b138cbd | dd94d574403c95eaea6d4ccf93526577f3d9261b | refs/heads/master | 2021-07-07T08:23:53.339912 | 2020-07-21T08:03:55 | 2020-07-21T08:03:55 | 140,079,930 | 0 | 0 | BSD-3-Clause | 2020-05-13T11:28:35 | 2018-07-07T11:50:48 | Python | UTF-8 | Python | false | false | 1,755 | py | from __future__ import absolute_import
from sentry.models import Integration
from sentry.utils.compat import filter
from .client import MsTeamsClient
MSTEAMS_MAX_ITERS = 100
def channel_filter(channel, name):
# the general channel has no name in the list
# retrieved from the REST API call
if channel.get... | [
"noreply@github.com"
] | noreply@github.com |
c831205fd77e3632c512f4c844a2a0477f85470a | 25be27365977838a5f716ab736e01acc93b2823e | /python/parallel_computation/ms2_parallel_mlp.py | cff9d7bff60ca0f6d8139e8d63b2726cbf46fb8d | [] | no_license | MWesselkamp/DomAdapt | ab45e2e97f46244b876dadcd14a203f03867d31a | fef2c1f57c31b9aa89c77854892eac4090545560 | refs/heads/master | 2023-03-27T02:32:02.975281 | 2021-03-29T14:49:56 | 2021-03-29T14:49:56 | 269,294,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 16 13:36:42 2020
@author: marie
"""
#%% Set working directory
import os.path
import preprocessing
import pandas as pd
import time
from dev_mlp import mlp_selection_parallel
import multiprocessing as mp
import itertools
#%% Load Data
datadir = r"OneDrive\Dokumente\Sc_Ma... | [
"marieke.wesselkamp@gmail.com"
] | marieke.wesselkamp@gmail.com |
3548555fe01d146e2f03abab2eaebe86099355ba | 71e49ae86e6398f3278a031edaeebee2218c8b9b | /todo_django/todo_django/settings.py | 6abb1e168465164fa89608d6d98a73a2d985b19f | [] | no_license | swestphal/todo | 38558688063089b30e0ac1ca4906ef1f2d816ad8 | 97ef67696abd4e46fcc5a61270d6ad60596de321 | refs/heads/main | 2023-05-13T11:25:26.614616 | 2021-05-28T15:26:19 | 2021-05-28T15:26:19 | 371,403,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | """
Django settings for todo_django project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [
"hello@swestphal.io"
] | hello@swestphal.io |
166c1e9e308358a2b436aed7c45b2fe91887d2da | 5b9c20a516513d39e9a100186eba77a5b50bc71d | /format/format_example1.py | f1a0115e81a0a5bd9e8674fbe252af00748c0082 | [] | no_license | WALL-EEEEEEE/lpthw | 3ea52acf1a5f1694a1d36687dff9e444d13dfc1d | 9d7c7413009feca662576a65b6ccf06e48789230 | refs/heads/master | 2023-04-26T19:47:55.053156 | 2018-09-07T12:55:19 | 2018-09-07T12:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import datetime
print('{:+f}; {:+f}'.format(3.14,3.14))
print('{: f}; {: f}'.format(3.14,-3.14))
print('{:-f}; {:-f}'.format(3.14,-3.14))
print('int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}'.format(42))
print('int: {0:d}; hex: {0:#x}; oct: {0:#o}; bin: {0:#b}'.format(42))
print('{:,}'.format(1234567890))
points = 19
... | [
"johans@johanss-MBP.lan"
] | johans@johanss-MBP.lan |
3813862d0863eb7e5783402d586761470ec5a9aa | 37826f6d3ac8606a4f9cbfe25ed207ae857b9f2c | /src/services/__init__.py | 4fea0134b15f66679c8c247cb84b52075bfdcd2f | [] | no_license | Stark-X/github-2-slack | aa809dfd063744acca6d1469f4d75bea19787e64 | a1c0a9c22a7574415f362cc7189beebe0a262679 | refs/heads/main | 2023-02-24T23:14:46.796752 | 2021-01-30T15:09:05 | 2021-01-30T15:09:05 | 334,442,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from .actions.deployment import DeploymentAction
from .actions.push import PushAction
strategies = {"push": PushAction, "deployment": DeploymentAction}
| [
"xiaojiezhi2@gmail.com"
] | xiaojiezhi2@gmail.com |
e8390a029091c57acd905f3fdf6187cfcc893d49 | 269acebe5c46dbf8745ac3e00cf6fc838c05d280 | /tools/c7n_kube/setup.py | 8d36b6cb561f028134560d4bf3bceecf80054cae | [
"Apache-2.0"
] | permissive | aluong/cloud-custodian | dbe7a6b3366609536767795b06d8de21ca952072 | e2d44a888882fbc1a63c886a91bfa8225957a283 | refs/heads/master | 2021-07-14T18:10:49.651620 | 2020-10-30T18:14:25 | 2020-10-30T18:14:25 | 126,348,771 | 0 | 0 | Apache-2.0 | 2018-03-22T14:36:06 | 2018-03-22T14:36:06 | null | UTF-8 | Python | false | false | 1,468 | py | # Automatically generated from poetry/pyproject.toml
# flake8: noqa
# -*- coding: utf-8 -*-
from setuptools import setup
packages = \
['c7n_kube',
'c7n_kube.actions',
'c7n_kube.resources',
'c7n_kube.resources.apps',
'c7n_kube.resources.core']
package_data = \
{'': ['*']}
install_requires = \
['argcomplete (>=1.1... | [
"noreply@github.com"
] | noreply@github.com |
f98f2e83b1096b53c66e15f0fbf035ddc93c1d8e | 197420c1f28ccb98059888dff214c9fd7226e743 | /happy_pythoning_cource_2_prodv/3.1 Bool/3.1. bool.py | be2e6728722c29ced0d3c7440e63523df6444bf2 | [] | no_license | Vovanuch/python-basics-1 | fc10b6f745defff31364b66c65a704a9cf05d076 | a29affec12e8b80a1d3beda3a50cde4867b1dee2 | refs/heads/master | 2023-07-06T17:10:46.341121 | 2021-08-06T05:38:19 | 2021-08-06T05:38:19 | 267,504,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | '''
Что будет выведено на экран в результате выполнения следующей программы?
'''
numbers = [-6, -8, 0, 1, 3, 8, -7, 12, 17, 24, 25, 3, 5, 1]
res = 0
for num in numbers:
res += (num % 2 == 1) and (num > 1)
print(res) | [
"vetohin.vladimir@gmail.com"
] | vetohin.vladimir@gmail.com |
cb8912386d34072d5f24cf5232775df9c7dc269f | fee803ecca4ff083488d5549b4264921c6af3538 | /pyshop/settings.py | 5000c2f7ae08139942b9178c0b944097f6ba96cc | [] | no_license | skahuria/django_tutorial | 76091b57dc98924bd21a0234757a25def0a985dc | af827f0511f2e311878f1997a167ecaa76aa4488 | refs/heads/master | 2023-04-14T11:57:32.963026 | 2021-04-09T12:25:53 | 2021-04-09T12:25:53 | 356,265,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | """
Django settings for pyshop project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from p... | [
"stephenkahuria@ymail.com"
] | stephenkahuria@ymail.com |
4d4d16b4c0f08b20c039e19a68cbe44848bc592a | e9a210d6e58bd0450197dfb4bbbc03f66788a297 | /eventplus/talks/migrations/0005_auto_20171031_0209.py | 3d87473b034b28fb35cd41f7b8916e329532208b | [] | no_license | werberth/EventPlus | 3895587c8f4b2b6cc03507d10badd3c3cd2c28c9 | d80c2ab5ec30fa83950380567195514df1cc9892 | refs/heads/master | 2021-08-28T17:00:21.363698 | 2017-12-12T21:10:16 | 2017-12-12T21:10:16 | 108,935,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-10-31 05:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('talks', '0004_auto_20171029_2142'),
]
operations = [
migrations.AlterField(
... | [
"werberthvinicius@gmail.com"
] | werberthvinicius@gmail.com |
15b4273440bb14b4e5c6be697d42d8398d30d59e | 6034b74d0d31997aa46f669d3d77bb46e199a430 | /tests/test_dataset_processor.py | 6cae4a56b6cba92bb31d6fa50efab979b3b32076 | [
"Apache-2.0"
] | permissive | bupt-nlp/sequence-labeling-models | 5ea641eec4fad1f470bdb7f3dd64ef0b892ba557 | 75bb8c24098ad9f307605fad61d811bcd299cfcc | refs/heads/master | 2023-06-01T00:59:56.753952 | 2021-06-19T11:28:13 | 2021-06-19T11:28:13 | 287,694,702 | 2 | 2 | Apache-2.0 | 2020-08-15T07:07:06 | 2020-08-15T06:54:35 | null | UTF-8 | Python | false | false | 5,152 | py | from __future__ import annotations
import os
from typing import List, Tuple
from allennlp.data import Vocabulary, Instance
from allennlp.data.data_loaders import SimpleDataLoader, DataLoader
from allennlp.data.token_indexers.pretrained_transformer_indexer import PretrainedTransformerIndexer
from allennlp.data.dataset... | [
"1435130236@qq.com"
] | 1435130236@qq.com |
bc638535aa88eb0734da8bea69ec47da930a0515 | 472f531c32b63a39ed76c2d95517bae3342a9c09 | /lib/config/config.py | a45ecff4c1583df9226bd3d4fb918a0c772693e0 | [
"Apache-2.0"
] | permissive | TrendingTechnology/PyAnomaly | 90cc3a2d05ea6ecfd0ab5c3768c67ccd4c45b77d | 8e9bf7564ab0a39e251f439dfaa3d55ba053f3a9 | refs/heads/master | 2022-11-06T09:29:06.034245 | 2020-06-12T04:34:22 | 2020-06-12T04:34:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,904 | py | from yacs.config import CfgNode as CN
__all__ = ['update_config']
config = CN()
# configure the system related matters, such as gpus, cudnn and so on
config.SYSTEM = CN()
config.SYSTEM.multigpus = False # to determine whether use multi gpus to train or test(data parallel)
config.SYSTEM.num_gpus = 1 # d... | [
"446358161@qq.com"
] | 446358161@qq.com |
e493ec74baf27b357c4eab05c6e45130d60ba96b | 24d3cdb938af3b9171be4671f1ff9e61a8f4742f | /PyBioMed/PyMolecule/AtomTypes.py | 54b2e45b2dbbe5cfc4b75dbf5ebf032034daf613 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | zeromtmu/PyBioMed | a0daedd3d3951b267ff75228d3800a34d9369003 | ee31b1ee674f7cbb18651762b18fe363b8b60b32 | refs/heads/master | 2021-01-23T03:28:28.069502 | 2017-02-24T07:31:46 | 2017-02-24T07:31:46 | 86,085,218 | 0 | 1 | null | 2017-03-24T15:50:47 | 2017-03-24T15:50:47 | null | UTF-8 | Python | false | false | 4,385 | py | # -*- coding: utf-8 -*-
"""
You can freely use and distribute it. If you hava
any problem, you could contact with us timely!
Authors: Zhijiang Yao and Dongsheng Cao.
Date: 2016.06.04
Email: gadsby@163.com
contains SMARTS definitions and calculators for EState atom types
defined in: Hall and Kier JCICS _35_ 1039... | [
"gadsbyfly@Gmail.com"
] | gadsbyfly@Gmail.com |
fbd5babc9f24e78ed630e2a45e4cfa1351092908 | 9b3c992628a296953fe50ff9c62bdf7b8d0cd179 | /semanticscholar/Paper.py | 7f63dd7655a13560e0917ced455e40ad9848ec98 | [
"MIT"
] | permissive | danielnsilva/semanticscholar | 3886f6520caa414224f428cc206b68d25a721bbe | 84225660550a6477c0d92ed84d4f124047fa223b | refs/heads/master | 2023-09-01T20:51:14.327238 | 2023-08-20T15:09:27 | 2023-08-20T15:09:27 | 200,141,114 | 169 | 28 | MIT | 2023-09-04T18:01:54 | 2019-08-02T01:17:06 | Python | UTF-8 | Python | false | false | 10,453 | py | from datetime import datetime
import semanticscholar.Author
import semanticscholar.Journal
import semanticscholar.Tldr
import semanticscholar.PublicationVenue
from semanticscholar.SemanticScholarObject import SemanticScholarObject
class Paper(SemanticScholarObject):
'''
This class abstracts a pape... | [
"danielnsilva@gmail.com"
] | danielnsilva@gmail.com |
c261635d05c036c51cbe8f6abd84f4d99e908123 | 115584e5da35ae0c043fcd1337f66943a90aa1cd | /models.py | fbb548513da942eb004a12081fd436a39e7f462f | [] | no_license | Leomedina/RESTful_Cupcakes | 03684c5ad1d0b2b246f1e9ad76dc800b66a1006d | d925b6ed6ccaafca15274f75cf44410ac1e0728c | refs/heads/master | 2022-10-13T14:08:33.023058 | 2020-06-09T20:14:10 | 2020-06-09T20:14:10 | 270,711,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | """Models for Cupcake app."""
from flask_sqlalchemy import SQLAlchemy
from app import *
db = SQLAlchemy()
def connect_db(app):
db.app = app
db.init_app(app)
class Cupcake(db.Model):
"""Cupcake Model"""
__tablename__ = "cupcakes"
id = db.Column(db.Integer,
primary_key = True,... | [
"medinayleo@gmail.com"
] | medinayleo@gmail.com |
cfcc64c2dd2a5398b2f9b30038ba8ada47ef3178 | 31023b59e743b5bef1c2c935dc1f2b26e8e10e9b | /线程进程/进程间通信/数据共享.py | ef96b8051c960f8e1af50dca4856fa31d9922af5 | [] | no_license | hsyy673150343/PythonLearning | 417650d8ab5dbafbede08ef40223b29e82738443 | 817c6bd4c2ecba2549fa0be9f0c41337fe5acfdf | refs/heads/master | 2020-05-18T06:36:25.648709 | 2019-05-23T13:40:59 | 2019-05-23T13:40:59 | 184,239,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
# @TIME :2019/3/20 19:33
# @Author : 洪松
# @File : 数据共享.py
from multiprocessing import Process, Manager
def f(d, l,n):
d[n] = n
d["name"] ="alvin"
l.append(n)
if __name__ == '__main__':
with Manager() as manager:
d = manager.dict()
... | [
"13096337080@163.com"
] | 13096337080@163.com |
10e0dfc2a6bea9d537ac9ca62778ef3ab103293c | 233f35b77ae97b9f559fe861cfbe656d4a82f2cd | /function/hanNumber.py | d5a17bf382d28c59fbc66835227bee8cfbc6f299 | [] | no_license | oowgnoj/python-datastructure | 181e94274aedacdfeffe2d8774ab36a4043bf2a7 | 618f9062541b46dfacb3b89be18bc4dcbdb1ee6d | refs/heads/master | 2020-11-24T23:50:42.371787 | 2020-01-03T00:12:00 | 2020-01-03T00:12:00 | 228,394,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py |
def isArithmeticSeq(num):
strNum = str(num)
if len(strNum) <= 2:
return True
else:
commonDif = int(strNum[0]) - int(strNum[1])
for i in range(len(strNum) - 1):
if int(strNum[i]) - int(strNum[i+1]) == commonDif:
continue
else:
return False
retu... | [
"mangtaob@gmail.com"
] | mangtaob@gmail.com |
a4e6ae1c77868e5691d0b885e32512b21d0a7ab3 | 37b191e46f28094d76e814ac7b024b9dd4800f3d | /ex14.py | 9f0f7bbcbbcb066de951fd24815a4b75d8528bfb | [] | no_license | CindyWei/Python | 192ae4ac1a87e7739d95cedea247987e5ff37fd6 | 9f460f4c219368d0b196f983f51dc243814d5bbf | refs/heads/master | 2020-04-16T12:50:39.844111 | 2014-02-12T01:12:22 | 2014-02-12T01:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | #coding=utf-8
'''
2014-2-9
习题14:提示和传递
'''
from sys import argv
script, user_name = argv
prompt = '>'
print "Hi %s, I'm the %s script." % (user_name, script)
print "I'd like to ask you a few questions."
print "Do you like me %s?" % user_name
likes = raw_input(prompt)
print "Where do you live %s?" % user_name
lives =... | [
"weiyaxin312@163.com"
] | weiyaxin312@163.com |
2c9341e3cc9b500f416eb515d0b09874ac6271fe | 7b64efdadebd622eb48e997509afa6505b3f615a | /bouncing_dvd_logo.py | 23b89552586564092a28766146075a7accf1432c | [] | no_license | kertmannik/dvd_bouncing_logo | 7b950724e53578b90c569440ce52323e39d45a7d | add80920d2da0fdb0586fd8c3a0152b49b53617a | refs/heads/master | 2020-04-22T00:10:37.220127 | 2019-02-10T17:07:02 | 2019-02-10T17:07:02 | 169,970,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | import pygame
from random import randint
pygame.init()
pygame.mixer.init()
clock = pygame.time.Clock()
fps = 30
screen = pygame.display.set_mode([800, 600], pygame.FULLSCREEN)
white = [255, 255, 255]
screen_color = white
screen.fill(screen_color)
screen_width = screen.get_width()
screen_height = screen.get_height()
... | [
"kert.mannik@gmail.com"
] | kert.mannik@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.