blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ba10f0c3964f4661b5d6b9a7ceeb672eab5cd06 | f8777c76ec7c8da686c72a2975c17bbd294edc0e | /eden/integration/hg/rebase_test.py | 760939f42d2236172ff58608b16ec5ab79b6e6be | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | jmswen/eden | 3a8e96bf0fbbf6c987f4b17bbd79dcbe0964c033 | 5e0b051703fa946cc77fc43004435ae6b20599a1 | refs/heads/master | 2020-06-06T06:08:28.946268 | 2019-06-19T04:45:11 | 2019-06-19T04:45:11 | 192,659,804 | 0 | 0 | NOASSERTION | 2019-06-19T04:43:36 | 2019-06-19T04:43:36 | null | UTF-8 | Python | false | false | 11,213 | py | #!/usr/bin/env python3
#
# Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
abb7636ae3243105c006aaa560f1aceda407d2ea | a59e753462590fa66945ac91d411dcb76e00f443 | /pro/urls.py | 5589dd018f8bb33287643c39a825e0f7b0e6cbaa | [] | no_license | TinaQu/pro | c45308533bf523c39cdb9f701fc17e3b17ee4c16 | fd43d0a500835129e05f96c385f87b70d848b974 | refs/heads/master | 2020-05-17T20:01:33.280642 | 2014-07-27T23:16:44 | 2014-07-27T23:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
#urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pro.views.home', name='home'),
# url(r'^pro/', include('pro.f... | [
"tinaqu396@gmail.com"
] | tinaqu396@gmail.com |
c265bffd771b94b62aa1ce31b8d9563c8ce8a7c9 | 600247c8198e7c2d082d73fb6f9dc45464870b20 | /Source/kgqa/cilin.py | d131df0fff115589ac769bf04c767bd88a91f94a | [] | no_license | bigcat2020/nCov_KG | e7602604aa6b6feb407e784a4087ff0b54f96b3a | faac37ce160ca69c54f3fcff3ef740a2f9f5b7b3 | refs/heads/master | 2023-05-31T17:33:37.423699 | 2020-04-14T05:09:05 | 2020-04-14T05:09:05 | 238,679,537 | 2 | 6 | null | 2023-05-22T22:43:10 | 2020-02-06T12:04:32 | JavaScript | UTF-8 | Python | false | false | 7,156 | py | # -*- coding: utf-8 -*-
'''
@author: Yalei Meng
@contact: yaleimeng@sina.com
@license: (C) Copyright 2017, HUST Corporation Limited.
@DateTime: Created on 2018/5/3,at 19:13
@desc:使用基于信息内容的算法来计算词语相似度。参考文献:
【1】彭琦, 朱新华, 陈意山,等. 基于信息内容的词林词语相似度计算[J]. 计算机应用研究, 2018(2):400-404.
'''
import math
class CiLin():
""" 基于哈工大同... | [
"11340521@qq.com"
] | 11340521@qq.com |
f2cb4b9c3e53492f0cd7426dedd103c78daf945a | ddbc023a846a7444837db94f5a1535c031ced46d | /multiple_nro03.py | 98747e40de9640b37e086b1301b3fe14971e6d02 | [] | no_license | jose-brenis-lanegra/Brenis.Lanegra.T06 | 2de28c5b8d24d6bb8c448e5f7e79557b330655d4 | 154ccbbcdb707c18735f575ffbf2646331daf9de | refs/heads/master | 2020-09-10T15:09:30.926345 | 2019-11-17T04:10:05 | 2019-11-17T04:10:05 | 221,733,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | import os
lado1,lado2,lado3,lado4=0,0,0,0
#input
lado1=float(os.sys.argv[1])
lado2=float(os.sys.argv[2])
lado3=float(os.sys.argv[3])
lado4=float(os.sys.argv[4])
#processing
perimetro_cuadrilatero=lado1+lado2+lado3+lado4
#outpout
print("###########################################")
print("#hallar el perimetro de un ... | [
"noreply@github.com"
] | jose-brenis-lanegra.noreply@github.com |
faf60488d0db4e8ed1cb7f5e0d7f1242b84d35bc | a00e004656db3e4cb0d69037610ea9fead7957b5 | /LibraryManagementSystem/migrations/versions/442fdb5b0154_.py | 6e3798f42bbdbe0c70709a4d9748fdf8038a09d7 | [] | no_license | khush03/library-management-system | c957f061e25f856a09550af9313d66f282655462 | b086f601fd4951cc6722e74cf197b1447e6c2cc9 | refs/heads/master | 2023-07-31T12:04:23.799095 | 2021-09-16T11:07:36 | 2021-09-16T11:07:36 | 403,273,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | """empty message
Revision ID: 442fdb5b0154
Revises:
Create Date: 2021-09-02 14:22:52.214315
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '442fdb5b0154'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"khushbumurarka@talenticaadmins-MacBook-Pro-2.local"
] | khushbumurarka@talenticaadmins-MacBook-Pro-2.local |
961903c486392037004e1b9275a7e49df17ee108 | 29d0488c306750226f6d7bc535f92cab40b92eb8 | /tools/state_updates.py | 9f4dfa97f4942dfb5c002bd6e737ab56333e342f | [
"Unlicense"
] | permissive | lsrjpg/homeassistant-config | 7dcf4b11ad2ac219fe085dacc96fbcc634036691 | c65f9051ac657477fdec89360dd7ce29a126e71e | refs/heads/master | 2020-09-20T07:48:33.537787 | 2019-11-18T14:41:10 | 2019-11-18T14:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | #!/usr/bin/env python3
from collections import OrderedDict
import re
import sys
try:
filename = sys.argv[1]
if '.' not in sys.argv[2]:
raise ValueError
except:
print('Usage: python3 {} filename (entity_id [attribute...])...'.format(sys.argv[0]))
sys.exit(1)
attrs = {}
entity_id = None
for ar... | [
"noreply@github.com"
] | lsrjpg.noreply@github.com |
a1f63e765e06aea3fb30ea4d35b76dc36d6d3b25 | 5db83bd598a7cce86b0499e1e7fe85b4902d7bea | /tests/test_functional.py | 408efd8f3c7a5cd6fb09dbd5fed6d9880f9c99ca | [
"MIT"
] | permissive | roywkc/test_cookiecutter | 183e2bd066cbd3fd03355dfdad50d3aed7e80e37 | 2f5a816e898bf40a9f3070bffd98aeb2de947808 | refs/heads/master | 2023-01-13T08:05:25.354506 | 2021-08-22T13:12:04 | 2021-08-22T13:12:04 | 194,093,032 | 0 | 0 | MIT | 2023-01-04T01:14:06 | 2019-06-27T12:40:58 | Python | UTF-8 | Python | false | false | 4,000 | py | # -*- coding: utf-8 -*-
"""Functional tests using WebTest.
See: http://webtest.readthedocs.org/
"""
from flask import url_for
from test_app.user.models import User
from .factories import UserFactory
class TestLoggingIn:
"""Login."""
def test_can_log_in_returns_200(self, user, testapp):
"""Login su... | [
"athenatam@Athenas-MacBook-Air.local"
] | athenatam@Athenas-MacBook-Air.local |
2bf5dac40b9aa42a0820ce122e729407ecea9ef6 | 018d98f7177ae807bb4d2886d1fdbf64baa36db1 | /pyitcompress.py | 9faf234a27f1c9ebde963fe9735beceef320aa5f | [] | no_license | mRB0/pyIT | be6b2e3e2358f3013d332120ba83669eb8dd7ed5 | 1b3a1233d29024ab812d42339eab5d9baeb6a51d | refs/heads/master | 2020-12-24T14:53:24.458226 | 2012-09-07T18:56:40 | 2012-09-07T18:56:40 | 662,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,355 | py | # -*- coding: utf-8 -*-
"""
* Schism Tracker - a cross-platform Impulse Tracker clone
* copyright (c) 2003-2005 Storlek <storlek@rigelseven.com>
* copyright (c) 2005-2008 Mrs. Brisby <mrs.brisby@nimh.org>
* copyright (c) 2009 Storlek & Mrs. Brisby
* URL: http://schismtracker.org/
*
* This program is free... | [
"mrburke@gmail.com"
] | mrburke@gmail.com |
52380fef4d9c01a02112f56cfba0a645daf1aab5 | 94dfddc5049a8a789744a581d6f13ef3b5368f55 | /forms/migrations/0003_formtemplate_formhtml.py | 9cc807cc2faed36071948a774abdb73483e5113c | [] | no_license | sid230798/G6_SE_Business_Workflow | ff668e292a5025a8c888975d84144edac6ae697f | b40c007dfd36bef48b328987f5c49f91bc0b2371 | refs/heads/master | 2022-04-20T14:36:33.369351 | 2020-04-13T14:55:12 | 2020-04-13T14:55:12 | 250,846,577 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.0.4 on 2020-04-10 16:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forms', '0002_auto_20200409_1823'),
]
operations = [
migrations.AddField(
model_name='formtemplate',
name='formHtml'... | [
"2016csb1050@iitrpr.ac.in"
] | 2016csb1050@iitrpr.ac.in |
e20ca174657488431643b77b200452c4b8239ddd | b9c8be1fbfba24ae4d934d951a23dbb33a7a5190 | /May20Challenge/5-4-Number-Complement/myAns.py | aac7a78e35931756afffd7ddd54344ad9f6d8e37 | [] | no_license | Uyutaka/leetcode | f258944febf9696a904703388291c67f186bb85c | f46ded0a98cfbfe8da2526a71c0720acb69f478c | refs/heads/master | 2022-10-07T08:05:36.942052 | 2020-06-06T12:28:52 | 2020-06-06T12:28:52 | 261,217,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | class Solution:
def findComplement(self, num: int) -> int:
binStr = str(bin(num))[2:]
comBinStr = ''
for c in binStr:
if c == "0":
comBinStr += '1'
else:
comBinStr += '0'
return int(comBinStr, 2) | [
"yutaka.urakami@colorado.edu"
] | yutaka.urakami@colorado.edu |
8f91301ee92109eaebdec1ed72f4f25409581a1b | 9d69d37c930821f4ebf265f3c1f214c2cc558502 | /scripts/extra/csv_to_coco_json_result.py | 3fc14bfbe55bbd61d296159e00b5d157b88d6e32 | [
"Apache-2.0"
] | permissive | mayanks888/mAP | 255b35e25384659dfaf97e6e3eec53bafb5bb3cc | 7e6a6c4b916223e737d30c76ebb11a75ed15d984 | refs/heads/master | 2023-01-29T11:05:21.099541 | 2020-12-13T20:54:44 | 2020-12-13T20:54:44 | 278,285,070 | 0 | 0 | Apache-2.0 | 2020-07-09T06:44:56 | 2020-07-09T06:44:55 | null | UTF-8 | Python | false | false | 1,600 | py | from collections import namedtuple
import os
import pandas as pd
import json
from utils import *
coco91class = coco80_to_coco91_class()
csv_path='yolo_txt_to_csv.csv'
# csv_path='yolo1.csv'
data = pd.read_csv(csv_path)
print(data.head())
def split(df, group):
data = namedtuple('data', ['filename', 'object'])
#... | [
"mayank.sati@gwmidc.in"
] | mayank.sati@gwmidc.in |
021aea0aee09ee1209c41c81cf6d6c845c337340 | 3fa6316a8932220376543616f71faa66a32e1f41 | /soluciones/problema17.py | c2aa055951eb63c5d6859938b5b46c15278556be | [
"Unlicense"
] | permissive | hernan-erasmo/project-euler | 55cafca01388e459e0359999c60ec0984bce7f21 | d68aa90c5fe2bf733bec54af5a786a2c144783bc | refs/heads/master | 2021-01-02T22:18:08.822684 | 2015-01-02T14:35:28 | 2015-01-02T14:35:28 | 26,012,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | unidades = {1:'one', 2:'two', 3:'three', 4:'four', 5:'five', 6:'six',
7:'seven', 8:'eight', 9:'nine'}
decenas = {10:'ten', 20:'twenty', 30:'thirty', 40:'forty', 50:'fifty',
60:'sixty', 70:'seventy', 80:'eighty', 90:'ninety'}
especiales = {11:'eleven', 12:'twelve', 13:'thirteen', 14:'fourteen',
15:'fifteen', 16:'si... | [
"socialmetrix@gmail.com"
] | socialmetrix@gmail.com |
627a0b5edc237da100695a5920eea29d5c07f90f | 44dfcf83586acbd3e0341f311ed6d53980e7499f | /ubyssey/wsgi.py | c0ceba90495f8c91679b699e5066769a6c8b3c29 | [] | no_license | bf777/ubyssey.ca | 7347b76e9848030da8e6670300d3a512eaef8589 | 778c0d61088b31eeeb5bd76be19465907d3b2325 | refs/heads/develop | 2021-06-29T21:49:59.069420 | 2017-09-15T01:15:16 | 2017-09-15T01:15:16 | 103,803,734 | 0 | 1 | null | 2017-09-17T04:48:25 | 2017-09-17T04:48:25 | null | UTF-8 | Python | false | false | 168 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ubyssey.settings")
application = get_wsgi_application()
| [
"peterjsiemens@gmail.com"
] | peterjsiemens@gmail.com |
3aaa0d2fd00505b87e83b2811b90e7b89a32ac97 | 5983464d6fb3c62feddabab653ff5f8994a30d0e | /train_features_1126.py | 69a7f8faaa160f24b6a5ce432c77485a443fc6cc | [] | no_license | tiffen/transition | 39cde4ffe42935e3c254febec76dd3460c66f568 | 12b15ee0848ddf12477f7b6af3d4817f4304a5d4 | refs/heads/master | 2020-04-02T13:17:24.788401 | 2015-11-29T15:37:21 | 2015-11-29T15:37:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # author: Frank Hu, Frank-the-Obscure @ GitHub
# 读取数据
# add top row for csv format files
import re
import pandas as pd
f = open('gd_train_data2.txt', encoding='utf-8')
output = open('gd_train_data_1126.csv', 'w', encoding='utf-8')
output.write('Use_city,Line_name,Terminal_id,Card_id,Create_city,Deal_time... | [
"humour114@gmail.com"
] | humour114@gmail.com |
e86947e81e355edde5f00faccb2b3b4b7adfe1b7 | 4de28b1f6d97640834e4a795e68ca9987f9e2cd5 | /check plugins 2.0/dell_powervault_me4/checks/agent_dellpowervault | 872a4202350c171f757ac3e0fb517852ad2a04de | [] | no_license | Yogibaer75/Check_MK-Things | affa0f7e6e772074c547f7b1df5c07a37dba80b4 | 029c546dc921c4157000d8ce58a878618e7bfa97 | refs/heads/master | 2023-09-01T15:52:28.610282 | 2023-08-29T06:18:52 | 2023-08-29T06:18:52 | 20,382,895 | 47 | 16 | null | 2023-07-30T15:52:22 | 2014-06-01T18:04:07 | Python | UTF-8 | Python | false | false | 1,216 | #!/usr/bin/env python3
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# (c) Andreas Doehler <andreas.doehler@bechtle.com/andreas.doehler@gmail.com>
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation i... | [
"andreas.doehler@gmail.com"
] | andreas.doehler@gmail.com | |
d3b9ad74e8506560f2e732ca031f676006de93dd | be70f8ec42efef05ea3a41e1ba3c7496141bae61 | /accounts/models.py | 19f962f25524d8ebb2d6193d464addb7e09ffbe5 | [] | no_license | saurabh32-cell/usability | b06b3315417b959f0949152587c042169e7fa2f5 | 6658caf4642ceffaabef2309b97a64b53a577372 | refs/heads/master | 2023-08-18T18:45:24.862141 | 2021-09-27T09:18:24 | 2021-09-27T09:18:24 | 410,509,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from django.db import models
from django.contrib.auth.models import User
class Profile(models.Model):
user=models.OneToOneField(User,null=True,on_delete=models.CASCADE)
username=models.CharField(null=True,max_length=200)
firstname=models.CharField(max_length=200,null=True)
lastname=models.CharField(max... | [
"70753067+saurabh32-cell@users.noreply.github.com"
] | 70753067+saurabh32-cell@users.noreply.github.com |
c838b697ae2c337eacfd5c026a36da97cfd9815b | 358774b1fb4d0a92c47e108cd7ae2bf795bc8b94 | /API/RegionsInJson.py | 9c8ceb8e9b9a489e694afa41910f0dc19d84c827 | [] | no_license | AntoData/Hate_Crimes_Spain_2014_2017 | 5daca334e3b565a16bb722f5167998d9d684341f | 0a865717cccd8e235beceeff28ea3010b3d1bd3a | refs/heads/master | 2020-09-16T03:27:42.900069 | 2019-11-23T18:52:26 | 2019-11-23T18:52:26 | 223,636,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,812 | py | # coding: utf-8
'''
Created on 6 sept. 2019
@author: ingov
'''
#We import folium to handle the creation and edition of maps
import folium
#We import json to handle how we manage our JSON files
import json
def getCoordinatesForRegions(coor,results):
"""
This is a recursive method that searches for the differen... | [
"ingovanpe@gmail.com"
] | ingovanpe@gmail.com |
d043ffd702c78159cfd15d5cbed6b9004a4b1da7 | 77dfc4f3ab39af56eec448457058adab9450d017 | /prepare_thesis/cond_gen_plots.py | 3f3eaaac27c4bcf43e66773d249bb7b704c4a8ae | [] | no_license | Jimmy2027/MMNF_RepSeP | ce56a30b8b2cd6f52764b6f68eac15e14978160e | 99fbefdea536d21111a8fe78d8b64cc20cc8a3b8 | refs/heads/master | 2023-09-01T20:49:16.692438 | 2021-10-21T14:12:31 | 2021-10-21T14:12:31 | 353,002,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | py | from pathlib import Path
from matplotlib import pyplot as plt
from mmvae_hub.experiment_vis.utils import save_cond_gen, show_generated_figs
from mmvae_hub.utils.utils import json2dict
data_dir = Path(__file__).parent.parent / 'data/thesis'
d = json2dict(data_dir / 'experiment_uids.json')
config = json2dict(Path('conf... | [
"klugh@student.ethz.ch"
] | klugh@student.ethz.ch |
d189b69ca9f7f38e7998e37e555738bf2e4e8bb8 | 02734e323a825451fee78f45991bdca0f497d201 | /04_函数/hm_01_九九乘法表.py | c8f871d1ff60ee239ba50b818e3e21f60a879ac2 | [] | no_license | kiligsmile/python | 5feebdd1d45c66dc14b947670765f94c6e509225 | b2fa43605f2017b912ec898340b5e63d2fba7e99 | refs/heads/master | 2022-12-20T00:07:13.792003 | 2020-09-17T02:51:42 | 2020-09-17T02:51:42 | 289,589,418 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | def multiple_table():
row = 1
while row <= 9:
col = 1
while col <= row:
print("%d*%d=%d" % (col, row, col * row), end="\t")
col += 1
# print("%d"%row)
print("")
row += 1 | [
"kiligsmile@163.com"
] | kiligsmile@163.com |
0ab112e6627b1137af6a15df631806d2444abb0e | ce55e0b873bde3b421525047380754d598fc1c20 | /Semana02/Ejercicio5.py | 18ddbab7243abc5db8501a2072006858152eb456 | [] | no_license | RenzoFranco2403/ICC_GIT_LAB | 62f57452f3c7ea2c1c14f985e005651b6bf2fc85 | b1b2a1027f6d0d30475ccee4ea29369531e5a90f | refs/heads/master | 2023-06-12T12:24:04.095825 | 2021-06-24T03:40:45 | 2021-06-24T03:40:45 | 382,983,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | print("Quinto Ejercicio:")
print("67 decimal a sistema hexadecimal")
x = 67
bit1 = x % 16
cociente1 = x // 16
bit2 = cociente1 % 16
print("67 =", bit2, bit1)
print("") | [
"renzo.franco@utec.edu.pe"
] | renzo.franco@utec.edu.pe |
906e43db8bb1001f90d120dced7b2b11273ffe1e | 35f7c36a55a98cd4150abe51c24bf6b2313ee9d5 | /pytestFrame_demon1/TestCase/testmy.py | 4d60e67571f998cd5a788db480a9d3cbf2532dcf | [] | no_license | jingshiyue/zhongkeyuan_workspace | 58b12e46223d398b184c48c4c6b799e5235e4470 | aa0749f4a237ee76a61579dc5984635a7127a631 | refs/heads/master | 2021-07-15T15:18:40.186561 | 2020-08-12T05:32:45 | 2020-08-12T05:34:20 | 197,749,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import sys
import os
path0 = os.path.realpath(__file__) #'D:\\workfile\\workspace\\pytestFrame_demon1\\TestCase\\testmy.py'
path1 = os.path.dirname(path0)
GRANDFA = os.path.dirname(path1)
sys.path.append(GRANDFA ) # 将祖父路径加入sys中
print("ok")
sys.path.append(sys.path.append(sys.path[0] + r"\..\.."))
sys.path.append(sys.... | [
"173302591@qq.com"
] | 173302591@qq.com |
5cc195732fc45252c5ffd1be18aa3a7fb8f5c78a | 52be512ae19203e9fea1b23b6a44733219adbf86 | /testchild.py | fc85a4e8e6dedd69bfd439649c940fbf73277b51 | [] | no_license | parnchai/testrepo | 3922e82812301b6d507aeb8d01c1942bf7b43f67 | bd29a11e1b388971ba5bd69c8974a41fddd05775 | refs/heads/main | 2022-12-25T13:21:23.398367 | 2020-10-12T00:04:36 | 2020-10-12T00:04:36 | 303,234,422 | 0 | 0 | null | 2020-10-12T00:04:37 | 2020-10-11T23:54:28 | TeX | UTF-8 | Python | false | false | 62 | py | #Adding new file in child branch
print("inside child branch")
| [
"noreply@github.com"
] | parnchai.noreply@github.com |
cb5982aa8fd351439d0c1016b51937945b913f88 | 9fa438d42800dc5f19df3f3b44135ac04ad95706 | /blog/migrations/0001_initial.py | 397b9cee48a2998570df4edfdbfc4dac02835a25 | [] | no_license | prajwalun/Django-blog | cd09aa18c72249e3512481048bcba651867b3fac | 397e7d26e1fc1d7eaf6d145c44079512d3b2397a | refs/heads/main | 2023-08-21T11:12:37.047415 | 2021-08-10T12:04:01 | 2021-08-10T12:04:01 | 394,651,339 | 0 | 0 | null | 2021-10-19T15:44:45 | 2021-08-10T12:47:59 | Python | UTF-8 | Python | false | false | 910 | py | # Generated by Django 3.2.6 on 2021-08-06 17:37
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.AUT... | [
"prajwal.un16@gmail.com"
] | prajwal.un16@gmail.com |
e7e530df8078abbefae96100a39da3b1f8a53783 | 6478aa1d4c3c0b8627c34887881155084dfdfd1b | /neigbouhood/migrations/0009_auto_20210925_1128.py | e0239e1f7e5379e00a64556927d01ceec0b345af | [
"MIT"
] | permissive | BeritMwashe/LocatEm | 28214603222b51c264a8ed88905f974907009b25 | ae1c941241ccfb1564983ea05543530aaa03c7c9 | refs/heads/master | 2023-08-02T13:36:30.103653 | 2021-09-30T05:34:30 | 2021-09-30T05:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # Generated by Django 3.2.7 on 2021-09-25 11:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('neigbouhood', '0008_profile_profile_img'),
]
operations = [
migrations.AddField(
model_name='ne... | [
"mwasheb@gmail.com"
] | mwasheb@gmail.com |
ee6987f9c45027e220774c9c5f7bfbd087e361b1 | 612051862bd8e8b55f3a45187d9d7c194d510264 | /store/backup/models.py | 3aee6ced2178d2fa86db4d35ad20b816be7d36e8 | [] | no_license | consciousprogramer/Massive-Django-based-ecommerce-site | 04f8d3e03a2e6a60423611c754d8b91145e5d260 | 9777088c3b553f1e1b61ace5100f879f689776dd | refs/heads/main | 2023-06-01T09:53:24.751668 | 2021-06-08T15:36:21 | 2021-06-08T15:36:21 | 372,309,036 | 0 | 0 | null | 2021-06-07T17:14:27 | 2021-05-30T20:26:56 | JavaScript | UTF-8 | Python | false | false | 29,175 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
from django.contrib.postgres.fields import ArrayField,JSONField
from django.core.validators import MaxValueValidator,MinValueValidator,MinLengthValidator
from imagekit.models import ImageSpecField,ProcessedImageField
from imagekit.proce... | [
"rohitjadav1729@gmail.com"
] | rohitjadav1729@gmail.com |
1551caccb85ed2591a64d437a96c64ad5debaaba | a2cfb75f69344b985dd994c312899a5e0bc9f038 | /models.py | aea1265edfa4a17848a1f4c32ed7fe9ce7281d1e | [] | no_license | p-an-na/api-flask-postgres | b7da0bd6a1a3d3242fed1b683df28413fa59341e | 3d82081354c4aa0940bed64b92f2ac40f41aaaa4 | refs/heads/master | 2023-03-29T13:24:00.464624 | 2021-04-06T18:54:20 | 2021-04-06T18:54:20 | 342,007,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from flask_jwt import current_identity
from app import db, ma
class IpModel(db.Model):
__tablename__ = 'flask_api'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
ip_address = db.Column(db.String(20), unique=True)
country = db.Column(db.String(60))
def __init__(self, ip_address... | [
"an.pietruszka@gmail.com"
] | an.pietruszka@gmail.com |
10197b1c4c0f141e5c34171ece47edce1f5342bf | d9f1e426785c29f3a318fa9fb4a8a78f7c417e42 | /Phase3/Code/task6.py | a397634cdc6cdaf363c5966ea944783b21d7f286 | [] | no_license | yuhsuanchuang/Video-Search-and-Feature-Extraction | 463f8aeeb57b737ac3a295bfabd50f445fd30011 | 588d198deae9c7e3d3bc163562250263203a5af3 | refs/heads/master | 2021-05-08T11:41:06.105538 | 2018-06-20T20:25:13 | 2018-06-20T20:25:13 | 119,906,003 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | import numpy as np
import pandas as pd
from scipy.spatial.distance import cdist
import imageio
# SIFT desc Information
global START_COL, VIDEO_NUM_COL, FRAME_NUM_COL, CELL_NUM_COL, SIFT_DES_START, LSH_HASH_COL, LSH_BUCKET_COL, DATA_INDEX_COL, X_COL, Y_COL
START_COL = 0
VIDEO_NUM_COL = 3
FRAME_NUM_COL = 4
CELL_NUM_COL ... | [
"ychuang8@asu.edu"
] | ychuang8@asu.edu |
3766225b4d3796d1d861ef1b7ed8e1eacd695157 | dc56c46216421bfd60db181592b8396ffd1e9f21 | /csv/demo3.py | d45daeafb0c7ee1b0d0886725f06693e944c99ae | [] | no_license | yuyexingchen03/app1 | c59db5d0af3a65f07254a0f0776f4b58834d4268 | d642e55aa185867187040776f002734a0ee893ee | refs/heads/master | 2020-03-07T19:54:43.309835 | 2018-04-18T10:09:24 | 2018-04-18T10:09:24 | 127,683,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/usr/bin/env python
#coding:utf-8
'''
csv 文件处理
读取
'''
import csv
import codecs
with codecs.open('用户.csv','r','utf-8') as fp:
fp_csv = csv.reader(fp)
headers = next(fp_csv)
print(headers)
for row in fp_csv:
print(row)
| [
"1414701937@qq.com"
] | 1414701937@qq.com |
19e5921e1e6f659e1673c1e8c6be8123a452f309 | 8ac890d3cfa5c6e3f22a57b7682aee1064ce2917 | /homeworks/hw03/hw03.py | a2f930214372f5faf10b6b2a63f2f8be87c5438b | [] | no_license | ZachVec/UCB-CS61A | 86811f530ff6658452553d989bc40c7107e81f0b | 9fedc1d14e58b271fd7a6082f6444db593c7f31d | refs/heads/master | 2023-05-09T19:39:38.968077 | 2021-06-01T08:11:45 | 2021-06-01T08:11:45 | 345,987,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,356 | py | HW_SOURCE_FILE=__file__
def mobile(left, right):
"""Construct a mobile from a left arm and a right arm."""
assert is_arm(left), "left must be a arm"
assert is_arm(right), "right must be a arm"
return ['mobile', left, right]
def is_mobile(m):
"""Return whether m is a mobile."""
return type(m) ... | [
"zijiebing@qq.com"
] | zijiebing@qq.com |
2379bf391238b7bfed9553643afad0f89841836d | f6e33d41f778f75b6b8515ea43e55b6a7cc09b23 | /recoder/recoder.py | e594cc468280ada2ecc3f55fe887010e36d26440 | [] | no_license | jecalles/recoder | 08551d81fb3ef2584d4d14cc75a4d29433ea32bf | bb887e9cc58b62667cdbc4806052007223a94d15 | refs/heads/main | 2023-08-17T14:19:06.124903 | 2021-09-21T23:38:46 | 2021-09-21T23:38:46 | 407,711,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,179 | py | import itertools
from functools import partial
from typing import Callable, List, Optional, Set
import cli
import pandas as pd
from synbio.polymers import DNA
from synbio.utils import dNTPs
import scoring
from ontology import *
# FUNCTIONS
def input_seq_validator(seq):
split_seq = seq.split("|")
bools = []... | [
"callesjonathan@gmail.com"
] | callesjonathan@gmail.com |
dd4afdb6db252146efbf72714ce2914c07933fec | 20343e8a8435b3f839d5abd0c4063cf735f43341 | /Experiment/price_with_basic/JQ_Demo.py | 7f7010abf4084044ea5f6bd90bd0cf54ea8c9477 | [] | no_license | alading241/MoDeng | 948f2099e2f7e4548d6e477b6e06b833bdf4f9bb | 01819e58943d7d1a414714d64aa531c0e99dfe22 | refs/heads/master | 2021-05-23T11:39:41.326804 | 2020-04-05T06:06:01 | 2020-04-05T06:06:01 | 253,269,397 | 1 | 0 | null | 2020-04-05T15:38:33 | 2020-04-05T15:38:33 | null | UTF-8 | Python | false | false | 2,699 | py | # encoding=utf-8
# from JQData_Test.auth_info import *
import pandas as pd
from SDK.MyTimeOPT import convert_str_to_date
from matplotlib import pyplot as plt
import seaborn as sns
"""
使用JQ数据进行研究
"""
stk_code = normalize_code('000001')
# 查询300508的市值数据
q = query(valuation.pe_ratio,
valuation.pb_ratio,
... | [
"1210055099@qq.com"
] | 1210055099@qq.com |
f3e8686fcdc11a92cf10d7b6bd5f7a314cd2ce1b | b94bb6b6e2fac5fb8f02354a2d05374b8f00ff60 | /mandelbrot/numpy_vector_numexpr/numpy_vector_numexpr.py | 484ad304db72cf8701216640e58a2e7b8f1d35dc | [] | no_license | janus/EuroPython2011_HighPerformanceComputing | 17ff9e6d7d5634c424983103ad45442acfe2502e | 1a15b5e66a22bd11422a1bb9ad749c5d906e3f98 | refs/heads/master | 2021-01-16T22:41:04.249856 | 2011-06-28T22:32:50 | 2011-06-28T22:32:50 | 1,973,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,837 | py | import datetime
import sys
import numpy as np
import numexpr
# area of space to investigate
x1, x2, y1, y2 = -2.13, 0.77, -1.3, 1.3
# use numexpr library to vectorise (and maybe parallelise) the numpy expressions
def calculate_z_numpy(q, maxiter, z):
output = np.resize(np.array(0,), q.shape)
for ... | [
"ian@ianozsvald.com"
] | ian@ianozsvald.com |
f017202ab5fc97656ff9f8dbaec439db6a7682ac | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/device_compliance_policy_setting_state.py | 145cb8aa5eb1143fce4977778667ab796f437555 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 5,472 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
from typing import Any, Callable, Dict, Lis... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
f692be9989677461e8cb5d3829593c3c761017f4 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Design/implement_stack_using_queues.py | 90c0e731a480e74cfb57531edf2b51ea640c72b6 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | from queue import Queue
class MyStack:
def __init__(self):
"""
Initialize your data structure here.
"""
self.stack = Queue()
def push(self, x: int) -> None:
"""
Push element x onto stack.
"""
self.stack.put(x);
i = 1;
while i... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
f02aae48f7ffde613cfa0ec610f735c43a4027c3 | 7cf80a738fd899374df094ed014e124d4f90909d | /main.py | 6e7968882300a6d209ec13dcee5a30103401f0d2 | [] | no_license | underscoren/pyCaster | ad4a581383d64a84cc03f03fc30b6f94eede5740 | 6f66f670dd3a6436cc16d56d35e2d8213b0263d8 | refs/heads/master | 2020-06-09T08:15:26.113932 | 2020-01-08T04:49:20 | 2020-01-08T04:49:20 | 193,407,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,906 | py | from platform import system
if not system() == "Windows":
raise Exception("This will only work on windows due to the keyboard handling method")
import renderer
import keyboard
import clock
import graphics
from time import perf_counter
import math
FPS = 60
SCREEN_WIDTH = 120
SCREEN_HEIGHT = 40
c = clock.Clock(FP... | [
"marius.steffens@outlook.com"
] | marius.steffens@outlook.com |
2e6100889d7cbb03d56f94fb00838c7019c8d64b | 36eeba444af5f908e09fd63b77c997db523b595f | /src/test.py | d05806edf0cc93afcd157ef204dbbd636a39dd6d | [] | no_license | LiquorPerfect/ReID | 971f9d5ad0f96477bf1898723fa047d8111f06d8 | 1988fefee6279bfaf28ec87114b611a0bfae98c8 | refs/heads/main | 2023-03-29T21:33:17.646694 | 2021-04-05T14:02:59 | 2021-04-05T14:02:59 | 333,799,710 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,110 | py | # -*- encoding: utf-8 -*-
'''
-----------------------------------------------
* @File : test.py
* @Time : 2021/02/02 22:18:37
* @Author : zhang_jinlong
* @Version : 1.0
* @Contact : zhangjinlongwin@163.com
* @Address : https://github.com/LiquorPerfect
-----------------------------------------------
''... | [
"LiquorPerfect@users.noreply.github.com"
] | LiquorPerfect@users.noreply.github.com |
dce5b80f78811bc3bb2e548ed2762d894d36c230 | 8ce49c34d84618657c0b9a6208da045b5a36eef2 | /Codes/subgroup3/UC_10/UC_10_StorekeeperOrder/MoneyChecker.py | 429fee614ee5cbdcfafcd75a3dfee3e13491b6fc | [] | no_license | hanabzu/Warehouse-Management-System | b3b3ed72052d70b2c79487ca98cef85aea8cb2e4 | 809fc9093c00b551c4bafb0cf2c3055f3398a1e4 | refs/heads/main | 2023-05-06T21:50:03.030187 | 2021-05-31T14:52:26 | 2021-05-31T14:52:26 | 352,500,164 | 7 | 10 | null | 2021-05-31T14:52:27 | 2021-03-29T03:04:46 | Python | UTF-8 | Python | false | false | 588 | py |
class MoneyChecker:
def __init__(self, total_price):
self.total_price = total_price
def checkBalance(self):
# 파일 읽어서 잔고 가져오기.
file = open("창고주.txt", 'r', encoding='utf8')
lines = file.readlines()
file.close()
for line in lines:
temp = line.rstrip('... | [
"999kgy@naver.com"
] | 999kgy@naver.com |
4e93f733d89cf097510f26d59bcfe904c7579480 | 8f73112d23a46ff48eeb3b9e6bfcdef0cc71fc8f | /p9.py | 5c4cd00659f3891191b503601ded6ca6c4eb5c2b | [] | no_license | manojnaidu15498/mnset-2 | e372a89013b30850cb0281bc088cc7d15a30e30a | 40939ba1a2076bf1bf83ee18b1866791f648854c | refs/heads/master | 2020-03-22T07:35:00.038406 | 2018-07-04T12:09:38 | 2018-07-04T12:09:38 | 139,709,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | N = int(input())
fact = 1
for i in range(1,N+1):
fact=fact*i
print(fact)
| [
"noreply@github.com"
] | manojnaidu15498.noreply@github.com |
3aedf34155c8217af1910196e25486a5b8bb3b2b | 2fa37a7e7414b8a408794f8f04a4c0ef8138bbc6 | /polynomial_regression.py | 96935ad59a86f857affcdad999ad3a41b153260b | [] | no_license | InternityFoundation/ML_Rinku_Yadav | d909b09518688a0ce9b513e5c4b74e431a90f565 | 50642e0d902c819844ab7eeccd2212eed8441270 | refs/heads/master | 2020-04-14T22:42:21.677614 | 2019-01-18T06:32:57 | 2019-01-18T06:32:57 | 164,174,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | # Polynomial Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
# Splitting the dataset into the Training set and Test set
"""f... | [
"noreply@github.com"
] | InternityFoundation.noreply@github.com |
85ffe0bfb2c530b3f82de96f63a2c3f00a4e67e5 | 80a2d399d484033c83ceda2038f4e5a8367dfd10 | /02_Advanced/BGR_extraction.py | f89ec6961f6f70a9adb19be367feda39d1777c16 | [
"MIT"
] | permissive | Dansato1203/VisionTutorial-python | 76251f41ae862fccc1d9f96cfdd5adeb88057378 | b8e5c9e733de45a59c4d2a9eb54fbbb3eeb97597 | refs/heads/master | 2023-05-03T22:02:48.664944 | 2021-05-31T06:29:58 | 2021-05-31T06:29:58 | 331,949,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | #!/usr/bin/env python3
#! -*- coding: utf-8 -*-
import cv2
import numpy as np
def green_extraction(img):
BGR_min = np.array([0, 0, 0])
BGR_max = np.array([60, 255, 128])
img_mask = cv2.inRange(img, BGR_min, BGR_max)
green_img = cv2.bitwise_and(img, img, mask = img_mask)
return green_img
d... | [
"s19C1054BU@s.chibakoudai.jp"
] | s19C1054BU@s.chibakoudai.jp |
97908092962b8f6bf715226082ba8dcd0b5de978 | c7724428a5aa150f4ac44a523f0b0ab5ed1754e9 | /IoTHub/Classes.py | 9e8df80a3e2269a2d801ab1a14e31e5dc7ee5049 | [] | no_license | ianlimle/ProjectEVAC | a2936d0893f32535c6f682d59029483a151bcce7 | 098243f064b49c9a814107db4ef04b57ae66e3f0 | refs/heads/master | 2022-11-05T21:44:11.303397 | 2020-06-14T12:46:53 | 2020-06-14T12:46:53 | 272,129,410 | 0 | 0 | null | 2020-06-14T03:59:04 | 2020-06-14T03:59:04 | null | UTF-8 | Python | false | false | 10,905 | py | ###MODULES TO INPUT GOES HERE
import RPi.GPIO as GPIO
import time
#import sys
import math
from MCP3008 import MCP3008
import paho.mqtt.client as paho
broker = "10.12.108.241"
port = 1883
#keepalive: maximum period in seconds allowed between communications with the broker.
#If no other messages are being exchanged, t... | [
"noreply@github.com"
] | ianlimle.noreply@github.com |
2a1087e05acebcf01639fe47aff07188a44ebec8 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/services/services/carrier_constant_service/__init__.py | 80069d6c6385daed2583921ed17c9252426c9a92 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
4ede01c900ccfbb8f6ca47a02a125acfb6428bd3 | be70e130f53c7703f942057923577adf607687a6 | /src/biotite/file.pyi | a2139f3eef3966c7794d5746f092780f16322213 | [
"BSD-3-Clause"
] | permissive | Dr-Moreb/biotite | 4043eadb607e9ede13ce049ade554546ce58afe0 | c34ccb7a7a7de923bf8a238944dfb7e1e635bb28 | refs/heads/master | 2020-04-01T19:02:08.086093 | 2018-10-10T16:01:45 | 2018-10-10T16:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | pyi | # 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.
from typing import Generic, TypeVar, Union, TextIO, BinaryIO
from .copyable import Copyable
_T_io = TypeVar("_T_io", TextIO, BinaryIO)
class File(Copyable, Gener... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
ca13ea116fa4d24e90976ca7c658afd9c75a80c2 | ea987f1c4bbd6e6d3c8d1a3b453f1e977aa77c21 | /Minimal II: Boolean Redundancy/solution.py | 9e3d28d7aa37169f212ad76bc0fcd70d497d7ff6 | [] | no_license | TTVMrWang/Edabit-Python-Answers | 4e2d768a2d83fddbbd0fd7d6072848e8fe2f62b2 | f1bcf632cf9800c6b4bcbe3dda2694e94cbf82b7 | refs/heads/master | 2022-11-06T05:40:49.748369 | 2020-06-26T20:36:21 | 2020-06-26T20:36:21 | 271,667,221 | 0 | 0 | null | 2020-06-11T23:43:39 | 2020-06-11T23:39:20 | null | UTF-8 | Python | false | false | 79 | py | def parity(n):
if bool(n % 2) == False:
return "even"
else:
return "odd"
| [
"noreply@github.com"
] | TTVMrWang.noreply@github.com |
3dc30cf856c04377f5a982c61e173a41c1f1af30 | 20e9c254c4bb6c7fd7e365046f15b48753727652 | /generator.py | 5390ec6507a8bb4ef7bc67fe6b52a169703f74ce | [
"Apache-2.0"
] | permissive | bobbyrathoree/Anime-Characters-Generator | ff98ab1e8f7bc463ca1bd7495a6ab2ee4d666c6f | 9ae6a034eba3f3ff1837a3cab2bff8bdfafaa8dd | refs/heads/master | 2020-09-03T03:03:55.632602 | 2019-11-03T22:12:44 | 2019-11-03T22:12:44 | 219,370,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | from keras import Sequential
from keras.layers import Conv2D
from keras.layers import Dense
from keras.layers import ReLU
from keras.layers import Reshape
from keras.layers.convolutional import UpSampling2D
from keras.layers.core import Activation
from keras.layers.normalization import BatchNormalization
def build_ge... | [
"bobbyprathore@gmail.com"
] | bobbyprathore@gmail.com |
2f176c5cfa75ac4f9c327bd9321cdcf8d40251b6 | 510c8c107333b12523a1ec07ed8efbc48c817dc4 | /server/commentsapp/migrations/0001_initial.py | c2a6a9625ef7a55833204cbd602d3ce090376fea | [] | no_license | op-guy/club-dev-ultimate- | 59152a8e475be9245cf03becd02041c01f7b79f4 | 41ec9b17dda5100cb34db641204fdcd488bd7cdd | refs/heads/master | 2022-12-26T02:03:32.011326 | 2020-07-04T20:00:10 | 2020-07-04T20:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # Generated by Django 2.1.5 on 2019-12-28 15:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Comments',
fields=[
('songId', models.AutoF... | [
"musicclub@students.iitmandi.ac.in"
] | musicclub@students.iitmandi.ac.in |
9fb7ec8bf614b85657848553a6966bddee75bccb | 795df757ef84073c3adaf552d5f4b79fcb111bad | /r8lib/r83col_print_part.py | 457c5bdb95cdf27c187fd4287858d3c0b6468785 | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | #! /usr/bin/env python
#
def r83col_print_part ( n, a, max_print, title ):
#*****************************************************************************80
#
## R83COL_PRINT_PART prints "part" of an R83COL.
#
# Discussion:
#
# An R83COL is a (3,N) array of R8's.
#
# The user specifies MAX_PRINT, the maximum num... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
f5ce661304b24a9313b6ddfb0f21f86a5e33438a | edf6495b3755670d063d7b8b2240c3083c1d4c39 | /225.py | 4cbfe6dfc8707127f7bce9a43ad587245e9867ff | [] | no_license | awayosiyasu/KazuYogaClub | e6bfd7ccb8cc9525549a0539e74856a868d76727 | f26364af0ee7f0ef90d550751b7df50c7c4ffc46 | refs/heads/master | 2022-06-01T20:19:44.438091 | 2022-04-24T08:20:37 | 2022-04-24T08:20:37 | 92,789,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # 2016年1年分のDataFrameを用意
start_date = "2016-01-01"
end_date = "2016-12-31"
df = pd.DataFrame(index=pd.date_range(start_date, end_date))
# 日経平均のデータを読み込んでjoinする
df = df.join(pd.read_csv("n225.csv", index_col="Date", parse_dates=True, usecols=["Date", "Adj Close"]))
# 終値がない日(市場が休みの日)を取り除く
df = df.dropna()
print(df.head()... | [
"awayosiyasu@gmail.com"
] | awayosiyasu@gmail.com |
b56bd5d2f1462517696033a85d8ef1c3ce9358f1 | b3b93870a9d3215e9ec6474f204f0b9b80651c46 | /main.py | db5bf724eb603bd4c4de9fefb12a591a0cc831bd | [] | no_license | Dan1kFed/rdf2mg_parser | dcab5214fb353a14b15c9bb4190840c58e5f66fd | f1edd07c12d2cd26de3f37c9b79220d7fbcc9957 | refs/heads/master | 2023-06-16T00:02:53.414279 | 2021-07-09T08:16:14 | 2021-07-09T08:16:14 | 327,293,045 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | import os
from flask import Flask, request, render_template, abort, send_file
import json
import os
from itertools import chain
import processor
app = Flask(__name__)
APP_ROOT = os.path.dirname(os.path.abspath(__file__))
@app.route('/get-files/<path:path>', methods = ['GET', 'POST'])
def get_files(path):
try:
... | [
"fedyukin.danila@yandex.ru"
] | fedyukin.danila@yandex.ru |
5f26a6d8298d84f63a8088ac028a434c6d3db4d4 | d58541c1114f7fed714c53738e8f76728b885339 | /virtualenv/lib/python3.5/site-packages/pip/_vendor/distlib/locators.py | a703dc228f4f5d14ddd93f9ade2971a69e8e6bd5 | [] | no_license | mrmrhua/bs | 0349f0d0886ed6f417fb6f4cc044e7f313a35e21 | 9c9533d736e1dc06b47ad60bd6e33a9604e116e8 | refs/heads/master | 2021-01-01T03:43:42.493982 | 2016-06-09T09:40:55 | 2016-06-09T09:41:02 | 59,568,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,493 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2015 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
import gzip
from io import BytesIO
import json
import logging
import os
import posixpath
import re
try:
import threading
except Impo... | [
"415031897@qq.com"
] | 415031897@qq.com |
697abf357354dbbc3f8d3380e36f76deed06b27e | ed8313e4a74d63591334477de28bd75114329c1a | /backend/api/migrations/0002_auto_20180904_1056.py | 6be87604f207d400500ec64e08a58a03ed72c4d8 | [] | no_license | allenkg/test_students | 0ab2a9fad2203c409c3719fa0a4314efcb96fb5f | 1ebe034c86ca6f4395ad88ae7b995b82ea1f8ad6 | refs/heads/master | 2020-03-27T21:06:16.708216 | 2018-09-17T20:56:56 | 2018-09-17T20:56:56 | 147,115,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Generated by Django 2.1.1 on 2018-09-04 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='course',
name='student',
fiel... | [
"andyahont@gmail.com"
] | andyahont@gmail.com |
66974dfcd162a43ef7d816426e2c88c454e5f08d | 66b3d055e694a0113f2feaa8f17cac3ac48e689f | /prepare_data.py | 3bfa8366dac5d52b193c5a25b2a2325d657309e8 | [] | no_license | chyelang/hw3_language_model | 9d283d2f850168e9ef04d4b60c7ea31cb611a74f | f1a088044c697ee82a948b91854d7f4e0426bf96 | refs/heads/master | 2020-03-17T00:33:31.619761 | 2018-05-31T16:04:03 | 2018-05-31T16:04:03 | 133,121,489 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | import os
import torch
import pickle
class Corpus(object):
def __init__(self, path, batch_size, mode='train'):
self.vocabulary = []
self.word_id = {}
print('info: preparing corpus...')
self.batch_size = batch_size
if mode == 'train':
self.has_word_id = False
... | [
"zouxm12@outlook.com"
] | zouxm12@outlook.com |
e329f90cf89024a973e4360bf56a43969742fe39 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_1/Python/jfguo/main.py | 5cdb0cbc380443d34ead8f2010a9a0172066645e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 999 | py |
import os
import sys
import glob
import subprocess
import random
import fileinput
next_line = 0
lines = [line.strip() for line in fileinput.input()]
def get_line():
global next_line
i = next_line
next_line += 1
return lines[i]
def calc():
s = get_line().split(' ')
X = int(s[0])
R = int(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
a411f4d29228d8a63e38a25b7f12ec24e5f9e793 | f5212aceb9a8dd72e3e35a2987dd5b362bfc0830 | /SpellerBook_Prototype1_Updated_Version/game/python-packages/shiboken2/_config.py | 14f90875ad906e0f95ed13a8d96eb60219d3d89b | [] | no_license | liy-hu/updated_ssvep_speller_storybook | f1d04e4bfd22a0e0c7749f18ac4563d64e4d2e70 | f0dd8c1a5ba2a1c8ae0e91fcaa41843d5cedc9d9 | refs/heads/master | 2023-07-24T15:21:28.074653 | 2021-09-03T04:02:07 | 2021-09-03T04:02:07 | 391,182,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | shiboken_library_soversion = str(5.15)
version = "5.15.2"
version_info = (5, 15, 2, "", "")
__build_date__ = '2020-11-12T17:11:38+00:00'
__setup_py_package_version__ = '5.15.2'
| [
"lisa.huang1@ucalgary.ca"
] | lisa.huang1@ucalgary.ca |
7dda127c3c00949baafaf34b60be20df495fd4e2 | 2f4f6efd1963aa4e8e749f17b078720c437ae9ac | /time_process.py | b6100d34aff621e09ccb32022c48bbdd9b09ece0 | [] | no_license | FlashRepo/Flash-Storm | d248f4ed615096539048be1ec65f1fcb31f1d2ee | 2dd953350a5d690c409996512dec30196d8e9199 | refs/heads/master | 2021-07-15T02:58:36.421446 | 2017-10-23T07:03:47 | 2017-10-23T07:03:47 | 107,943,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import pickle
import numpy as np
dict = pickle.load(open('time.p'))
problems = sorted(dict.keys())
print ', '.join(['Problem', 'MOEAD', 'NSGAII', 'SPEA2'])
for problem in problems:
print problem,
algorithms = sorted(dict[problem].keys())
# print algorithms
# print algorithms
for algorithm in algor... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
50a1abad5cc7f37b4ef3519cbe6640c28f1fb88e | b2ab970816dc7d21ddcd560b90e3096d13307505 | /0-100/020.py | 0fe402dbbda928b7885b4f91e2ba97e3125acb53 | [] | no_license | rillis/ProjectEuler | bbdf79ff8878b30a6d6e69738eedc4e99a6295be | 0dc7fda9fe2f0a4fff44c616ac0369884475c00c | refs/heads/master | 2023-02-09T12:13:56.329545 | 2023-01-29T16:25:30 | 2023-01-29T16:25:30 | 298,775,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py |
# Time to achieve the answer: 0.0004136s
# Notes: Running in PyPy3
#
# ProjectEuler
# Copyright (c) ProjectEuler - rillis. All rights reserved.
#
# https://github.com/rillis/ProjectEuler
#
import math
import os
import random
import re
import sys
import itertools
import timeit
def fatorial(n):
if n<=1:
r... | [
"rillisnelson@gmail.com"
] | rillisnelson@gmail.com |
793e4320d3064724680bb351c892080960854d23 | 5e9bda2d6082f62d889df1c28973436af905faaa | /demo/Joystick.py | e5ff4b5a7e6ec783bfa22dc96ae45c3d4bd74c90 | [] | no_license | FXCMAPI/Phoenix | cab74db4e8f141f4d27b4b2e3d5bab06994b2e52 | 040763282f04a5b98f89c054b254993d1a8ca618 | refs/heads/master | 2020-03-16T15:42:10.660845 | 2018-05-09T01:41:51 | 2018-05-09T01:45:33 | 132,755,174 | 1 | 1 | null | 2018-05-09T12:41:54 | 2018-05-09T12:41:53 | null | UTF-8 | Python | false | false | 35,148 | py | #!/usr/bin/env python
#----------------------------------------------------------------------------
# Name: Joystick.py
# Purpose: Demonstrate use of wx.Joystick
#
# Author: Jeff Grimmett (grimmtoo@softhome.net), adapted from original
# .wdr-derived demo
#
# Created: 02-Jan-2004
# Copy... | [
"robin@alldunn.com"
] | robin@alldunn.com |
4da39244787ffca38c6aa72de6e0d3019f863726 | d66fc47801a2b25dc3464e4dd0cfc79f77eeb158 | /reto-semanal/copy.py | 1effb1d8c63b639c7fc828bed3debafd5050921f | [] | no_license | monroy8888/MINTIC | 4735e10a036eb5aef27a53e56db0521c0ec4781d | 70df3e8b5c1f55223761c93f75aaa86d0e77cb73 | refs/heads/main | 2023-06-09T06:07:53.229409 | 2021-06-28T19:38:12 | 2021-06-28T19:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,076 | py | class Ticnec:
def __init__(self, usuario, password):
self.usuario = usuario
self.password = password
def cambiar_contraseña():
print("cambiando contraseña".center(30,"*"))
def Ingresar_coordenadas_actuales():
print("Ingresar coordenadas actuales".center(30,"*")... | [
"1230@holbertonschool.com"
] | 1230@holbertonschool.com |
4179c076805e8816d872ed8b61a0b027cfa4ab4e | 2a90fbd6416574d3789fab509fcda16729d7f278 | /aula/aula3.py | 6a21d205e59632d4464c678bb3f9241cdb5c7ada | [] | no_license | EdsonYamamoto/Estudo-Processamento-Imagem | a5556b8610a90b01fad526903208b1abbd789738 | b5f37ac65168352c444858e7cb993574a84d76b6 | refs/heads/master | 2020-04-27T21:41:08.615747 | 2019-06-02T19:00:52 | 2019-06-02T19:00:52 | 174,707,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | import cv2
import numpy as np
font = cv2.FONT_HERSHEY_COMPLEX
class Aula3():
def escolher(self):
Aula3.TarefaCasa(object)
cv2.waitKey()
cv2.destroyAllWindows()
def TarefaCasa(self):
print("inciando")
imgInicial = Aula3.CarregarImagem(object)
img = cv2.cvtCo... | [
"edsonkazyamamoto@gmail.com"
] | edsonkazyamamoto@gmail.com |
5730d18207cfc9656c22e7749ff70b35cee72c26 | e69b2c93b32cb33a89bc7905bec3c79829f0d68e | /automated-grading-system/assignment.py | 4d47864f36b1a43e338170b239d1003fec9a04c5 | [] | no_license | huzhx/python3-object-oriented-programming | 70c0aa407b8e5e59cfef00f0c28ffd59724686dd | 16adb382d28fa5271d5f770e7a38006d7920b6ce | refs/heads/main | 2023-02-04T15:23:31.879187 | 2020-12-21T23:48:52 | 2020-12-21T23:48:52 | 322,790,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import abc
class Assignment(metaclass=abc.ABCMeta):
@abc.abstractmethod
def lesson(self, student):
pass
@abc.abstractmethod
def check(self, code):
pass
@classmethod
def __subclasshook__(cls, subclass):
if cls is Assignment:
attrs = set(dir(subclass))
... | [
"huzhx@uci.edu"
] | huzhx@uci.edu |
82660f2d91527c4a4c020cc6bd64fd6a5a183eed | be6e6d8af85adf044bf79676b7276c252407e010 | /spec/python/test_params_call_extra_parens.py | 5035e7de4b9cff4c0b219268de38ae4498a8fa5d | [
"MIT"
] | permissive | kaitai-io/kaitai_struct_tests | 516e864d29d1eccc5fe0360d1b111af7a5d3ad2b | 3d8a6c00c6bac81ac26cf1a87ca84ec54bf1078d | refs/heads/master | 2023-08-19T19:42:47.281953 | 2023-08-04T20:26:50 | 2023-08-04T20:26:50 | 52,155,797 | 12 | 41 | MIT | 2023-07-30T23:30:30 | 2016-02-20T13:55:39 | Ruby | UTF-8 | Python | false | false | 378 | py | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from params_call_extra_parens import ParamsCallExtraParens
class TestParamsCallExtraParens(unittest.TestCase):
def test_params_call_extra_parens(self):
with ParamsCallExtraParens.from_file('src/term_strz.bin') a... | [
"greycat@altlinux.org"
] | greycat@altlinux.org |
1fb0d83554ae777cc8d39443daeca2ccf6a7e5bb | b440cf9e316dc219aa1d0a79689d532cadd31226 | /nlp/hw1_sentences/parser.py | 6b0d889456f033ed4ce7c02955081bda65cae75c | [] | no_license | asakasinsky/kashpirovsky | 35c5b1e72ff468ac2d932da97e0e9e313758547b | a672baaebb4a71d94da24cd550473a54656113ef | refs/heads/master | 2021-01-22T13:41:53.475149 | 2014-06-07T08:54:14 | 2014-06-07T08:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,816 | py | # -*- coding: utf-8 -*-
"""
Деление текста на русском языке на предложения.
На вход в качестве параметра подаются два файла:
1 входной текстовый
2 файл для вывода результата в формате:
<?xml version="1.0" encoding="UTF-8" ?>
<sentences>
<sentence>Предложение1</sentence>
<sentence>Предложение2</sentence>
</sentences>
a... | [
"anton.m.alexeyev@gmail.com"
] | anton.m.alexeyev@gmail.com |
e75c26492c41fdc893ba6154653dd473fada88cd | e841e5e43dc309d5796e6f0f358ffa6403a1729f | /pathfinding_algorithms/astar.py | 805fc0627c0b9d30ebf1e5e779e3c00fe5090876 | [] | no_license | rodchenkov-sn/Pathfinding | 141ad9aa10840b2f92287f81e7d8a710c9e11dc1 | 1e6363bd9826f9a8bec570e52510ebba322f5c33 | refs/heads/master | 2020-12-31T21:42:03.536579 | 2020-02-29T20:55:49 | 2020-02-29T20:55:49 | 239,037,498 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | from time import sleep
from queue import PriorityQueue
from math import sqrt, pow
from pathfinding_algorithms.pathfinder import PassFinder
from grid.grid import Grid
from settings.settings import *
class AStar(PassFinder):
def __init__(self, grid: Grid):
super().__init__(grid)
def solve(self, canvas... | [
"serod2015@hotmail.com"
] | serod2015@hotmail.com |
59e025014b4e98bd42b32883bc6b6e4b4778dc4d | c4a0a3ccdf27c937d0f70bf5b26677a3a1e43c7e | /cinder/tests/functional/api_sample_tests/fakes.py | e2842ca7e843efd305d3616bad2c51fd78d50084 | [
"Apache-2.0"
] | permissive | LINBIT/openstack-cinder | 2538e1769ae95bc166ac7743f5ddbff14a594022 | 04a5d6b8c28271f6aefe2bbae6a1e16c1c235835 | refs/heads/linstor/master | 2023-08-30T20:58:08.103197 | 2023-08-28T10:07:56 | 2023-08-28T11:04:35 | 103,643,517 | 9 | 6 | Apache-2.0 | 2021-03-04T17:12:59 | 2017-09-15T10:07:48 | Python | UTF-8 | Python | false | false | 3,240 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"rajatdhasmana@gmail.com"
] | rajatdhasmana@gmail.com |
2b694bbdd0616d0801d33489b6aac01f4132e757 | d3740ed15f1b03562c814f16f4876912b6548a83 | /sem/offlineMemory/season2.py | d8ab6dbb1ec87bb9a6ebbd3f8353e00185743a77 | [] | no_license | adslnctu/UEF | 59602e82f409963cecf466f3146b9ab495af6ee2 | 3228396dda959beccfb3bc408584b5d0a08855df | refs/heads/master | 2021-01-19T01:23:52.482889 | 2016-08-17T05:50:51 | 2016-08-17T05:50:51 | 65,702,878 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | import sys, os
import datetime
import numpy
import math
import resource
import multiprocessing
import time
import pickle
sys.path.append('../../lib/fileDB/')
from fileDB import FileDB
sys.path.append('../../lib/featureHasher/')
from featureHasher import FeatureHasher
sys.path.append('../../lib/featureSelector/')
from s... | [
"n7556409@gmail.com"
] | n7556409@gmail.com |
1c1c86726ac1fff4adbfe007e1c0325ec714a8fe | 44c077057df16ee842f10362ad2e5401e937c95e | /Introkod_syntax/Labb/labb.2/uppgift6.py | f43d1a62477f313e595bcdc5b8d47e258da72a77 | [] | no_license | Lt3kr/Liam_Turelid_TE19C | 3e8627d1a677173f47bc63a61185d07bf060b975 | 3829ae91d796b010d4eb957d95613af9a1a0b49b | refs/heads/master | 2023-04-27T16:13:58.081257 | 2021-05-23T14:41:55 | 2021-05-23T14:41:55 | 290,479,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | Start = int(input("Ge mig ett tal som jag ska börja vid: "))
Stop = int(input("Ge mig ett tal som jag ska sluta vid: "))
Multipel_burr = int(input("Ge mig multipeln som är burr: "))
Multipel_birr = int(input("Ge mig multipeln som ska vara birr: "))
x = Start
if Start - Stop >= 0:
print("du kan inte börja på ett ... | [
"70211742+Lt3kr@users.noreply.github.com"
] | 70211742+Lt3kr@users.noreply.github.com |
b22f31b6aadd19380527790ab5aa79ebdec743c4 | 633b695a03e789f6aa644c7bec7280367a9252a8 | /samplepy/3-21_nest_example.py | 127cdbb495205706506f0903ba1a7d345e90446b | [] | no_license | tnakaicode/PlotGallery | 3d831d3245a4a51e87f48bd2053b5ef82cf66b87 | 5c01e5d6e2425dbd17593cb5ecc973982f491732 | refs/heads/master | 2023-08-16T22:54:38.416509 | 2023-08-03T04:23:21 | 2023-08-03T04:23:21 | 238,610,688 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | for a in range(1, 4):
print('a=', a)
for b in range(1, 4):
print(' b=', b)
| [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
c978ef52efb310a2e363af1febc1be0cdf3b9997 | 7cbda960655e63d9f3666c430d2bcd7a435a63af | /agents/ddpg_low_dim.py | 359ffac441d9e892dd23ff8fcaa35913eb7a074e | [
"MIT"
] | permissive | hungtuchen/pytorch-ddpg | e44e8574505347c291a02eaf0a3be4a1206f4447 | 0bbaa69b714763083515e7e64343d4be9a6ed9a1 | refs/heads/master | 2022-12-23T19:51:10.143812 | 2017-06-21T08:39:52 | 2017-06-21T08:39:52 | 94,632,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,711 | py | import numpy as np
import random
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
import torch.autograd as autograd
from utils.replay_memory import ReplayMemory, Transition
USE_CUDA = torch.cuda.is_available()
dtype = torch.cuda.FloatTensor if torch.cuda.is_available() ... | [
"transedward@gmail.com"
] | transedward@gmail.com |
3f04bfd5dc6f5a148c9f8957f359a211e6e91bd0 | 0e834094f5e4274b279939b81caedec7d8ef2c73 | /m2/d05/fork.py | 0f760582ce1b6de41ccd05f7672b9e7300500889 | [] | no_license | SpringSnowB/All-file | b74eaebe1d54e1410945eaca62c70277a01ef0bf | 03485c60e7c07352aee621df94455da3d466b872 | refs/heads/master | 2020-11-27T23:54:36.984555 | 2020-01-21T08:42:21 | 2020-01-21T08:42:21 | 229,651,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import os
print("-----------------")
a = 1
pid = os.fork()#子进程从此处开始执行
if pid < 0:
print("fail")
elif pid ==0:
print("child a=",a)#1
a = 10000
else:
print("parent a=",a) #1
print("over a=",a) #子进程10000,父进程1
| [
"tszxwsb@163.com"
] | tszxwsb@163.com |
d7d1e37d9666f35e5173bcc111772cad4a52684c | 29e512834c8fc7bda2ba98b85ca2be608a1c47f7 | /actions.py | c86bbdecff5aec6caf2d6107ce7f67dfee265748 | [] | no_license | lab156/baraja | e70f7a2c21ff76321f912d7211b666280acd1b67 | 8ed567f58fbb1eed53375522ac78db7bfaf60f9e | refs/heads/master | 2021-07-05T08:25:09.318711 | 2020-08-07T05:44:08 | 2020-08-07T05:44:08 | 137,705,928 | 1 | 1 | null | 2020-05-31T16:13:58 | 2018-06-18T03:19:09 | Python | UTF-8 | Python | false | false | 353 | py | actions = [(),
(0,),
(1,),
(2,),
(3,),
(4,),
(0, 1),
(0, 2),
(0, 3),
(0, 4),
(1, 2),
(1, 3),
(1, 4),
(2, 3),
(2, 4),
(3, 4),
(0, 1, 2),
(0, 1, 3),
(0, 1, 4),
(0, 2, 3),
(0, 2, 4),
(0, 3, 4),
(1, 2, 3),
(1, 2, 4),
(1, 3, 4),
(2, 3, 4),
(0, 1, 2, 3),
(0, 1, 2, 4),
(0, 1, 3, 4),
(0, 2, 3, 4),
... | [
"lab156@case.edu"
] | lab156@case.edu |
2ceedaac04a8d829c47b8d16c7c4fc468659b53a | d0dc31026833cb0d8a7a001becafe414580d9ab8 | /178RegexFractal.py | ac251d6ec159a9cf4b6d7a95d039370a8cd57a0b | [] | no_license | dogeplusplus/DailyProgrammer | 7b7ac42302c53a211b434362b5a8c46b50b241f3 | fe055609f4d46fca9c24cc50b00075f0a58e26cc | refs/heads/master | 2021-09-06T22:23:10.270017 | 2018-02-12T13:58:13 | 2018-02-12T13:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | from PIL import Image
import re, sys
import numpy as np
class complex_number:
""" complex number class """
def __init__(self, real, imag):
self.real = real
self.imag = imag
def __repr__(self):
return (str(self.real) + "+" + str(self.imag) + "i")
# Complex addition
def cadd... | [
"albertswchung@gmail.com"
] | albertswchung@gmail.com |
a40650691b4ec420153a227a2b434794a2b8a2ac | c9501305a736247b0979d8604a3dde6a0cb17665 | /DynamicProgrammingQ1.py | 69831464e06002618d7211f0ef8ee2078989920d | [] | no_license | yhdchoi/CodeNote | cf3af540ffca586d9421ea3f3906a41ccc1a42ca | ec59f81448bba24c8a39890390588b681fbf06c4 | refs/heads/main | 2023-08-21T16:54:58.073853 | 2021-09-16T15:19:22 | 2021-09-16T15:19:22 | 396,376,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # The storage
# The total number of storage
n = int(input())
# The value for each storage
array = list(map(int, input().split()))
# DP table
d = [0] * 100
# Assign max value
d[0] = array[0]
d[1] = max(array[0], array[1])
for i in range(2, n):
d[i] = max(d[i - 1], d[i - 2] + array[i])
print(d[n - 1])
| [
"yhdchoi@gmail.com"
] | yhdchoi@gmail.com |
9e4a72cfaa5d511cbc35bccab33d6d759a585c40 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2976/49361/276731.py | c934f824ceb2d2636866731a7c096aa5606facba | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import re
lines = []
while True:
try:
lines.append(input())
except:
break
outputStr = ""
for index in range(1, len(lines)):
afterStr = re.sub(lines[0].replace(" ", ""), "", lines[index].replace(" ", ""), flags=re.IGNORECASE)
outputStr += afterStr + "\n"
print(outputStr.strip("\n")) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
121d893f28582fff0641fac5f6b9adc78fb4fd4b | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ALCATEL-IND1-VLAN-STACKING-MIB.py | e69667e7960c0ccd5dbafcc31d4d1f6bbefc2552 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 17,347 | py | #
# PySNMP MIB module ALCATEL-IND1-VLAN-STACKING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-VLAN-STACKING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:20:26 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
7a8c3a03564b0cbcf7b81dedc128ac152e31e446 | 90a28e6beb7ccaa8f77e3c87eb01ab7aef4c01d9 | /TEST.py | c7272a122e652f9a3898f009d2fcf6b3784284e3 | [] | no_license | kkrrrly/medicineInsNER | d6341d45b3db2737e23f843740d434d5d6e1af00 | bac08be2e1199c3dc556c6967aae4c1a3a5e555e | refs/heads/master | 2022-12-26T11:40:27.833995 | 2020-10-13T06:28:25 | 2020-10-13T06:28:25 | 296,636,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | import os
import ProcessDATA
with open('E:\\Code\\medicineInsNER\\data\\train\\799.txt','r',encoding='utf-8') as f:
txtdata = f.read()
txtdata = txtdata.replace('\u3000',' ')
index = []#编号
type_named_entity = []#类型+命名体
with open('E:\\Code\\medicineInsNER\\data\\train\\799.ann','r',encoding='utf-8') as f... | [
"kkrrrly@foxmail.com"
] | kkrrrly@foxmail.com |
06fab8953b41e5b3fec8ebf47ef6daa04d72af8e | a6261d094f1a96043403e66970fc88f58aaf9fa9 | /assignment2/spring1718_assignment2_v2/cs231n/classifiers/.ipynb_checkpoints/fc_net-checkpoint.py | c2dc0178eed09c7aca3de3c017a9b2dde622c225 | [] | no_license | arnawldo/cs231n | e2d54fb98ac8ecdb03ce0961f7316d021f3f38b7 | 09dc911b08bfe3d7301be1bcabe999041d321db4 | refs/heads/master | 2020-04-02T10:23:28.526275 | 2018-10-23T13:59:00 | 2018-10-23T13:59:00 | 154,331,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,091 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dim... | [
"taremwaarnold@gmail.com"
] | taremwaarnold@gmail.com |
a2b750917d590f2cad5dfbac283319542556e13c | fd717fe6ca74f6d77210cdd57a8c365d27c5bfc6 | /pychron/experiment/utilities/mass_spec_utilities.py | e439853d44c9878143faa78ab7e9391af8a64b9f | [
"Apache-2.0"
] | permissive | stephen-e-cox/pychron | 1dea0467d904d24c8a3dd22e5b720fbccec5c0ed | 681d5bfe2c13e514859479369c2bb20bdf5c19cb | refs/heads/master | 2021-01-19T15:40:03.663863 | 2016-07-14T14:37:16 | 2016-07-14T14:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | # ===============================================================================
# Copyright 2016 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
d9edc8b9410d0b194c5c165bee79ca8245438b25 | fb9b47fac68b9ef959e4ee5cd83c9c32a9140f6c | /hr_webcam2/hr_employee.py | 21cc69a38a9606db6a296c69e38bc9fb731e8674 | [] | no_license | brennocg/webcam | 888315a13e6e2510236586435ada58264957b859 | 74dca4be8ee3476a9451adcf5f5123f164d63f70 | refs/heads/master | 2020-06-17T09:36:49.412598 | 2019-07-08T20:42:50 | 2019-07-08T20:42:50 | 195,883,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from odoo import api, fields, models, _
class hr_employee(models.Model):
_inherit = 'hr.employee'
def action_take_picture(self):
employee = False
employee_action = self.env.ref('hr_webcam2.action_take_photo')
dict_act_window = employee_action.read([])[0]
if employee:
... | [
"brenno.garcia@gmail.com"
] | brenno.garcia@gmail.com |
2acfae1d955439c2b0ec3e2a89c4aa0ade412be6 | b9012152849ba32181c39bae4fc40a26912cf240 | /venv/bin/flask | 5055b7c85379e1a6ee70fa6efb2448c66363046f | [] | no_license | juancece/Flask-Megatutorial | 337052192399e9750739027ae3007cf23584d5b3 | b1fbc0f906eebf3e2c3e6004d91acf401a84d78f | refs/heads/master | 2022-12-31T20:39:16.475992 | 2020-10-25T02:30:32 | 2020-10-25T02:30:32 | 300,319,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | #!/Users/juan/Development/Projects/Python/Python_Web_Development/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"juancece@outlook.com"
] | juancece@outlook.com | |
5eba636652b6e67a77e93191bf303012eacdac6b | a53a928399627e09acc665687f7ef8230940ae6a | /hw3/problem_2.py | 1d49f9fb875c8be1d61cba3893cf816f0775112e | [] | no_license | OdetteDu/DatabaseWebsite | 4ac2dcf86f6a83af1d05da509ba24156797ce283 | a72c5e96077d99625c3d1855da9c0f009e5e31a7 | refs/heads/master | 2021-01-10T15:55:30.842527 | 2015-10-12T21:33:24 | 2015-10-12T21:33:24 | 44,135,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | import matplotlib.pyplot as plt
buckets = [0] * 100
newBuckets = [0] * 100
def hdhash(s, n):
return sum(map(ord,s)) % n
def run():
for i in range(50000):
s = "TI"+str(i).zfill(5)
b = hdhash(s, 100)
buckets[b] = buckets[b] + 1
nb = newhash(s, 100)
newBuckets[nb] = newBuckets[nb] + 1
def showGraph(buckets... | [
"yd322@corn29.stanford.edu"
] | yd322@corn29.stanford.edu |
fc80866229f1df8f18703b1ec42bd3e6ee380018 | 18f48add3353bd936e20672f03ac26d3737d80ee | /map_data/area_designator.py | deadca942aa54b4679c78153102f54254cf9a789 | [] | no_license | sobisonator/imp19c | 63511e8101ac4bd68c6b77b75ffb8f60556a692f | 0acf67ddc1ad669757c9fc2b52850b60b76dc88c | refs/heads/master | 2023-09-01T20:38:07.092917 | 2023-08-30T23:51:21 | 2023-08-30T23:51:21 | 231,990,104 | 12 | 81 | null | 2023-07-23T22:27:07 | 2020-01-05T23:32:31 | Python | UTF-8 | Python | false | false | 1,581 | py | import pandas as pd
import unicodedata
# Input file
SETUP_CSV = "province_setup.csv"
# Output file
f_area = open("areas_output.txt", "w")
f_region = open("regions_output.txt", "w")
# Turn the province_setup CSV into a dataframe
df = pd.read_csv(
SETUP_CSV,
sep=';',
low_memory=False
)
# Ge... | [
"bomchasew@gmail.com"
] | bomchasew@gmail.com |
8b580de6ad64aac17f04996c238a6a0f89fc206e | a157423b0d511daa52f2337968fc6b41626b2103 | /application.py | 70dba34927595bf51f7261a0a29584bb6ddb8456 | [] | no_license | alebrega/f3liver | d0f048f0c4cd3edcc7607545c1861ed5093bf904 | 131e8f5c12c01e7f2b1a3367eebc3ed05479ddc6 | refs/heads/master | 2022-12-09T14:53:07.327129 | 2018-07-20T11:12:43 | 2018-07-20T11:12:43 | 141,702,825 | 0 | 0 | null | 2022-12-08T02:17:57 | 2018-07-20T11:14:22 | Python | UTF-8 | Python | false | false | 13,269 | py | from flask import Flask
from models import db, Customer, Product, ScriptTag
from flask import flash,render_template,request,redirect,session, render_template_string, url_for
from pickle import dumps
import requests, uuid, os,json, shopify,urllib
from pprint import pprint
import libraries
from tasks import make_celery
... | [
"alebrega@gmail.com"
] | alebrega@gmail.com |
c2e80739ac8531201909ac6943fcfeb813fef12e | d2122de9a87a91f3b2a33e01ac98e5494141537f | /qna/migrations/0001_initial.py | 59a27b5c465dece9ba9276e94f04843208113047 | [
"MIT"
] | permissive | sharmapacific/QNA-App | b260113d7224ac7874c0e6e8f9e280c1df8427c4 | 57dea76fa5cec1d07bfe4af4627cc35386d0f93e | refs/heads/master | 2020-03-12T18:13:16.922270 | 2018-07-13T10:38:38 | 2018-07-13T10:38:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-11-22 20:03
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"prashants@credy.in"
] | prashants@credy.in |
c9854341076699d93b01345713f4cd6c0b40bb3b | 2fb820482f70bc81fdc364e596510663cf89c753 | /apirest/prediction/urls.py | 03181c48f29646bf55aaf549426f5517602fcebf | [] | no_license | Shoyuku/PythonProject | 0ed497e9a24999452a6f88a01d5a095294fefe8d | af682c6692a058617ee227630f3e16d94a1712ba | refs/heads/master | 2020-04-22T01:27:44.561583 | 2019-02-15T21:00:54 | 2019-02-15T21:00:54 | 170,015,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.conf.urls import url
from prediction import views
urlpatterns = [
url(r'^predict/$', views.predict),
url(r'^individuals/$' , views.individual_list ),
url(r'^individual/(?P<pk>[0-9]+)/$' , views.individual_detail),
]
| [
"charlesxu1996@hotmail.fr"
] | charlesxu1996@hotmail.fr |
e7e784ac1ba9d461fd920578d572e808f80d63e4 | 08f6ab9be1e650beb8cd49331e2f4115c7461390 | /testBubble.py | e10026472ceb67c87f5b9cb0ae5a5de5410e00dc | [] | no_license | akhildasika/Simulation | 586b20ed1ddea487de9dd61d7f2bb6560c3b4bca | e87bbcabaa69fc7b77c2f3081fb0da1d30943ac7 | refs/heads/master | 2021-01-06T15:43:57.516669 | 2020-02-20T15:48:57 | 2020-02-20T15:48:57 | 241,384,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import sys
def bubbleSort(arr):
n = len(arr)
for i in range(n):
for j in range(0, n-i-1):
if arr[j] > arr[j+1] :
arr[j], arr[j+1] = arr[j+1], arr[j]
arr1 = [64, 34, 22, 11, 90]
arr2 = [64, 34, 22, 11]
arr3 = [-64, 34, 22]
arr4 = []
bubbleSort(arr1)
bubbleSort(arr2)
bu... | [
"akhildasika@codelab-28.rockhurst.int"
] | akhildasika@codelab-28.rockhurst.int |
af2e25be284b12ca82ffe428ec75bc7c336b4c07 | 271cbadd98ad60e8c3609b1d5422c1b49b9a8347 | /turtlebot2_wss/turtlebot_map_and_nav/build/turtlebot_octomap/catkin_generated/pkg.installspace.context.pc.py | 85bc730460014bcd21f8e20f9506b73b6d8bb16f | [] | no_license | yxl-loading/ROCO506Z | 9a5a16ebb839b1424bf9b9be2c8358d5211d9ca4 | cd16e8a2428db3a3b8fea1534120d0affc2c262b | refs/heads/master | 2022-04-19T02:23:30.942440 | 2020-04-22T19:03:43 | 2020-04-22T19:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_octomap"
PROJECT_SPACE_DIR ... | [
"youssefhindawi@hotmail.com"
] | youssefhindawi@hotmail.com |
5b502f092651c92ed2196d301814497d99bceb85 | b6b73db2eb5385726788f0f24042791a1df4a7c6 | /techSurfers/wsgi.py | a391b6592624da39000a49e39dce1c974e6e4ac0 | [] | no_license | lhirschfeld/HackMIT2017 | b11b882ebf6c43c25e7e5d920acde73c55f03a05 | 0618ad022ef389972efa037a8933fe21830512e8 | refs/heads/master | 2021-07-12T02:52:38.712988 | 2017-10-02T19:15:25 | 2017-10-02T19:15:25 | 105,572,861 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for techSurfers project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"lhirschfeld@andover.edu"
] | lhirschfeld@andover.edu |
7e98e5f9b3d33eb413ea20225c5e5fa74fae79fb | aa31b854be1b49d61de16c77db595124a3657120 | /tests/feature/test_regex.py | d64449988e98c79d7c5d6d9e7bf293dc1b9579d2 | [
"MIT"
] | permissive | curzona/pytest-bdd | 65217f59c45bcfacfcd5f9598575af4443da2e80 | 71a53ddaeea4c28f63832edaba07b7936b782223 | refs/heads/master | 2021-01-16T00:57:48.163974 | 2013-09-15T07:16:50 | 2013-09-15T07:16:50 | 12,841,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from pytest_bdd import scenario, given, when, then
test_steps = scenario('regex.feature', 'Executed with steps matching regex step definitons')
@given('I have a foo fixture with value "foo"')
def foo():
return 'foo'
@given('there is a list')
def results():
return []
@when('I append (?P<n>\d+) to the lis... | [
"curzona@gmail.com"
] | curzona@gmail.com |
e36502d092eb4d4f11257c8b70b8846bfef0a973 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yanchor.py | 5d929c6570d7a6ea82df360ef7b79e5066a0b291 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 507 | py | import _plotly_utils.basevalidators
class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="yanchor", parent_name="histogram.marker.colorbar", **kwargs
):
super(YanchorValidator, self).__init__(
plotly_name=plotly_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
c1bbc5f60a915d33ab8faee595818ba3f03f7f41 | f186f9602cbd893872b844791fa7ba01c4f2fddb | /Prediction.py | d3c01ccd1d301a2983cbf78b55b23518c2899781 | [] | no_license | wqke/Notes-Program | 4ebd16aaaebd7bb070b28b2ca9ec811528a573b5 | 6c8c610ea93bba85a0e244a9e4d61f30273a8438 | refs/heads/master | 2020-05-20T21:41:24.168872 | 2019-06-08T21:58:47 | 2019-06-08T21:58:47 | 185,767,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | #Use the training result in Classifier.py (read the joblib file)
#to predict the result for other sets of data
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
from root_numpy import root2array, rec2array,array2root
#from sklearn import cross_validation
from sklearn.metrics import accurac... | [
"noreply@github.com"
] | wqke.noreply@github.com |
c78043c7d5718d3f98937c42d0a19990529a8994 | b870d1ad64c0a4046c1cd10af7f4034eee2e4a62 | /Domemaster3D Installer/installer files/Domemaster3D/maya/common/scripts/domeStereoRig.py | 16183adc03ba5fbe1d601f01e94bda9e234c7a4d | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | zicher3d-org/domemaster-stereo-shader | b674e537ebe347595ba8a886277b4e3cf25e2cca | 2cb139f0de77f6fefa6035cc8bd5bee56f24097b | refs/heads/master | 2023-08-04T18:30:51.584011 | 2023-08-03T21:32:35 | 2023-08-03T21:32:35 | 18,648,836 | 138 | 42 | BSD-2-Clause | 2023-08-03T21:32:36 | 2014-04-10T19:24:49 | Mathematica | UTF-8 | Python | false | false | 29,013 | py | """
Domemaster3D Fulldome Stereo Rig V2.4
2018-08-21
by Andrew Hazelden andrew@andrewhazelden.com
-----------------------------------------------------------------------
This script makes it easy to start creating fulldome stereoscopic content in Autodesk Maya.
Version 2.1
-------------
2016-08-02
Added ... | [
"andrew@andrewhazelden.com"
] | andrew@andrewhazelden.com |
8405a89a972b373adae293243b959da0548a13c9 | 7e71a1a35e3ddd276d6ad4693a25e3fb869ac14f | /generator/processor/cleaner.py | 7b28766bc4b8c98605cb39558787782021eee022 | [] | no_license | chengdujin/socrates | f26db6194c5553bd6b38575280a3d32a5524edd3 | 108a507b13f25bc050ffa288b4e40327e9c18595 | refs/heads/master | 2016-08-05T12:51:27.447919 | 2012-04-10T13:45:34 | 2012-04-10T13:45:34 | 3,625,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
##
# this script serves to do the dirty cleaning work for
# users' tweets.
#
# @author Yuan JIN
# @contact chengdujin@gmail.com
# @since 2012.03.06
# @latest 2012.03.08
#
# reload the script encoding
import sys
reload(sys)
sys.setdefaultencoding('UTF-8')
# CONSTANTS
# Datab... | [
"chengdujin@gmail.com"
] | chengdujin@gmail.com |
f77d6d977f9d1a929683b5a8675be750eaffbf0f | 86e9c3aad0934f017ae1eb1b86d52b0d011068df | /Back_end/caisse_project/caisse_project/settings.py | 8b5f84492907ee8dda6ee43407639d04e54bd4ab | [] | no_license | AchrefBenOmrane/DataGenius_gestion_caisse | f998036381898201707fbbf39160fdb581f119b7 | edab5070f99708ca2f851af27870938be68021ae | refs/heads/master | 2023-01-29T15:48:48.298837 | 2020-12-14T18:07:21 | 2020-12-14T18:07:21 | 321,373,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,689 | py | """
Django settings for caisse_project project.
Generated by 'django-admin startproject' using Django 3.0.4.
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/
"""
impor... | [
"46647953+achrefbo98@users.noreply.github.com"
] | 46647953+achrefbo98@users.noreply.github.com |
5035085d5fa98c6c8c83762321e5b68fd61cc965 | debf34c494207a5797e90bd10ab017b04f2ec330 | /ext/apbdb2.py | 878c97d975a6c665823913fa50497f7d9deaaade | [] | no_license | SKaydev/apbdb-discord | 67e11fb68af3fb9faf10c6132a7a1545d09dc859 | a0857711f86e308da4417ad19716a332ba5ad0b9 | refs/heads/master | 2020-03-17T11:43:43.920195 | 2018-05-15T16:49:46 | 2018-05-15T16:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,874 | py | import aiohttp
import asyncio
import discord
import re
import sqlite3
import threading
from bs4 import BeautifulSoup
from datetime import datetime
from discord.ext import commands
from ext.utils import utils, checks
from settings import *
class APBDB2:
def __init__(self, bot):
self.bot = bot
sel... | [
"pfaffenrotpaul@gmail.com"
] | pfaffenrotpaul@gmail.com |
0823ba15af904cf68fac401208e14afadc87946c | aea4803ea6c3af9e10f999241ba67c46c072db71 | /src/imei_cal_match_it.py | 69e361d5523c72136cfc26fc4cd4b54ab917a641 | [] | no_license | mihaicoli/castleSocketTrans | b03905f80e3e6d97bee5e113039a3045cd04673f | c2cbe388b87b345bb0274b69eb107f9cc2a625ca | refs/heads/master | 2022-04-20T16:16:07.038457 | 2015-04-13T02:24:11 | 2015-04-13T02:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,663 | py | from os.path import walk, join, normpath, isdir, isfile, abspath
import sys
import re
import copy
allCalFile = []#with file name
allFullCalFileName = []#with full path and file name
lallCalNumInCal = []#set of cal files
lallCalNumInINI = []#set of imei in WriteIMEI.ini
allCalNumInCal = set()
allCalNumInINI = set()
mix... | [
"castleodinland@gmail.com"
] | castleodinland@gmail.com |
a5b645c90aff0261d2394b2874350f6e11a9d764 | 0670ae255609a630b7f9265a235db33696c11fc7 | /Old Robot Pythony stuff/day1.py | 7d6213f3e7e837f808906f6d882ff7890a26022f | [
"MIT"
] | permissive | NerdGlasses/Fun_Stuff | 69249b55d827dcd738b55cb5c554085fe1ab626e | e7ca8a7de9f5bd2f2da7ce44166cf66834e4a6ab | refs/heads/master | 2020-03-19T02:26:12.533861 | 2018-05-31T20:02:31 | 2018-05-31T20:02:31 | 135,628,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | number = 15
print (number)
string = "Day 1"
print (string)
float = 3.1459
print (float)
list = {18, 987, 45}
print (list)
unicorn = True
print "bob"
unicorn = "unicor"
unicorn = False
print "not bob"
| [
"Sophie.a.guerin@gmail.com"
] | Sophie.a.guerin@gmail.com |
236514cc0ec78312be28461c4e33da0ed917ada1 | b06bceb8fdc24e0c890fb2201c535cb660a94f86 | /onmt/legacy/old_models/memory_transformer.py | 0780b03908c7b58a6a7004d0cda272b70159d5a7 | [
"MIT"
] | permissive | quanpn90/NMTGMinor | 7f294b40763b3f586d34ef4985799b851052f2ed | 5e1e424d0d9c2135a456e372a2ea9ee49de5bd2c | refs/heads/master | 2023-08-22T14:53:31.420276 | 2023-08-21T08:26:49 | 2023-08-21T08:26:49 | 116,663,163 | 92 | 39 | NOASSERTION | 2023-07-31T15:07:35 | 2018-01-08T10:33:56 | HTML | UTF-8 | Python | false | false | 32,849 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from onmt.modules.relative_attention import RelPartialLearnableMultiHeadAttn
from onmt.models.transformer_layers import PositionalEncoding, PrePostProcessing
from onmt.models.transformer_layers import EncoderLayer, DecoderLayer
from onmt.models.transfor... | [
"quanpn90@gmail.com"
] | quanpn90@gmail.com |
dd1c410e30e06988feeeccfcfc0d408613c5e50a | 1af38c425a47326d60c70cecfb233a6d1499a762 | /server/wakeuplight.py | ff02e189be7ba3311119cfe164975ef6c885fb23 | [] | no_license | Frederic98/DeskController | a0b81e5d78fe4c54028d97b8d90362a1b3b9ee3b | 78a50882821eadbc92a5e34ab8d85f3c935961fc | refs/heads/master | 2020-04-10T07:23:31.614047 | 2018-12-07T22:24:21 | 2018-12-07T22:24:21 | 151,110,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | #!/usr/bin/env python3
import signal
import threading
import time
import paho.mqtt.client as mqtt
class WakeupLight:
def __init__(self, server):
self.server = server
self.client = mqtt.Client()
self.client.connect(self.server)
self.subscribe('wakeuplight/active/set', self.mqtt_wak... | [
"frederic.meeuwissen@gmail.com"
] | frederic.meeuwissen@gmail.com |
11766c16100b5e6a2d54f6fb1e66e9ab36620062 | cae220b404a65a07eb4cd64f96dae8f3755f73fd | /apps/shops/forms.py | 25b66961ba372212f3148a54270b6461ebe742a4 | [] | no_license | vernissageam/vernissage | 99ff0cd5d3a961fc8b5a06213c7f9f3d6e10cec2 | 59be907dbfe1f3463a916ce8ddd470bde1a27df1 | refs/heads/master | 2021-01-21T13:03:37.244802 | 2016-05-06T13:59:26 | 2016-05-06T13:59:26 | 55,362,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | # -*- coding: utf-8 -*-
from django import forms
from .models import Shop, ShopCategory
class ShopForm(forms.ModelForm):
name = forms.CharField(max_length=32, required=True, widget=forms.TextInput(
attrs={'class': 'formControl', 'placeholder': 'Shop name'}))
description = forms.CharField(max_l... | [
"arman.kardashian@gmail.com"
] | arman.kardashian@gmail.com |
a26db2352d6d272ecf6a6a8dd3a073ea7a6d37ad | ecc5dd3af660eb57997af29b6eb7397e9bd4253b | /ch02-ex1.py | 06be29a9ccebde54437a986c1b8f45049acdb457 | [] | no_license | opi-lab/tarea-2-descriptores-locales-pedroelectronico1995 | 4cf1c673ff5dec360e7a81a4c38d2196cbaf8cef | c07499f9ad866d602a73160c0d6ad9b1e41dd128 | refs/heads/master | 2021-04-09T15:39:20.864718 | 2018-04-07T04:00:35 | 2018-04-07T04:00:35 | 125,656,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,664 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 22 16:57:06 2018
Modify the function for matching Harris corner points to also take a maximum
pixel distance between points for them to be considered as correspondences, in
order to make matching more robust.
@author: PEDRO NEL MENDOZA
"""
# Firstly, the nece... | [
"noreply@github.com"
] | opi-lab.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.