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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ae4fc95910cd188fb054270ab173da3971e5b01 | 3d36b8608ad38c0c913d8fcff55b8715fbe83cbd | /rsd_lib/resources/v2_3/storage_service/storage_pool.py | 4412ac37b740c9fc63284296eff8624e985f1403 | [
"Apache-2.0"
] | permissive | linericyang/rsd-lib | b6d728a68ff203b261e8da98a46b4c21c0059abd | 898d2be08a1efcbdf72b0ba267f283f1386779bf | refs/heads/master | 2020-04-09T15:57:37.596369 | 2018-12-04T09:11:33 | 2018-12-04T09:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,913 | py | # Copyright 2018 Intel, Inc.
# 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 a... | [
"lin.a.yang@intel.com"
] | lin.a.yang@intel.com |
9d32ed2f9dd6961c4e4fca230d3d5833e4ae41b2 | b50bb3f3094adc3e08cfa6193d11668f921d9057 | /cinema/models/__init__.py | 5a5e004aa7ec9f16fa6345b3edd66ba467eaf23b | [
"BSD-3-Clause"
] | permissive | juliotrigo/restfulwebapi | d5b35956dea067b54185f836ff3e0208117d9387 | 1d97c1f23320e158f264dc265f8fb554debbc9c4 | refs/heads/master | 2016-09-06T08:07:38.552442 | 2014-02-16T15:39:43 | 2014-02-16T15:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # -*- coding: utf-8 -*-
"""cinema models."""
from __future__ import unicode_literals
from cinema.models.film import Film
from cinema.models.film import OrderedFilm
from cinema.models.director import Director
from cinema.models.director import FilmDirector
__all__ = ['Film', 'OrderedFilm', 'Director', 'FilmDirector'... | [
"juliotrigocom@gmail.com"
] | juliotrigocom@gmail.com |
321d2502cf3b66216f826901a60edb84c2149516 | b1a1f2fac4160c108f3311638bf5bec1455c9411 | /barco.py | 73fca0953d181f9d4384351cc5a1b5c4a1dceab9 | [] | no_license | grajales100/ejercicio-medios-de-transporte | f4540374db072529d67f8bded73c081698f03043 | 7dce09e8e619f7e7323242ca3347945d6e988671 | refs/heads/main | 2023-07-10T14:07:25.733524 | 2021-08-19T15:22:39 | 2021-08-19T15:22:39 | 397,044,933 | 0 | 0 | null | 2021-08-19T15:22:41 | 2021-08-17T01:29:57 | Python | UTF-8 | Python | false | false | 468 | py | from medioTransporteAcuatico import MediosTransporteAcuatico
class Barco(MediosTransporteAcuatico):
def __init__(self, nombre, capacidad, medioDesplazamiento, marca):
super().__init__(nombre, capacidad, medioDesplazamiento, marca)
def anclar(self):
print('estamos anclando el barco')
def l... | [
"osorio7980@gmail.com"
] | osorio7980@gmail.com |
9f545374f3e824e1a09b563f38393ee37958d084 | 3311b2bfb870b0e1f697be885db76aa6535baeb8 | /note/basic/02_字串與變數/test_str_08.py | 521763cd4d1f7961a5e1bd1aff8488195f807715 | [] | no_license | rogers228/Learn_python | 8f06ceceb553f47f59a2c6fe1f4dd5edc10a8079 | 494ef61545bc946e2ba105483b662beba204c263 | refs/heads/master | 2023-08-31T01:56:32.607799 | 2023-08-30T01:23:49 | 2023-08-30T01:23:49 | 245,773,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | a = 5 * 6
print(str(a))
| [
"61651257+rogers228@users.noreply.github.com"
] | 61651257+rogers228@users.noreply.github.com |
187d5e4a2c3a6f4bda7055934dce787d7d1d0339 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_352/ch6_2020_03_04_10_31_08_746058.py | c84cfa947f1fae70b02bc0450ea33744f1c14660 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | def celsius_para_fahrenheit(fahrenheit,celsius):
fahrenheit=(celsius*9)/5+32
return fahrenheit
| [
"you@example.com"
] | you@example.com |
3e85724e61a95926d3f6ed12b671f971c38975c6 | e3c85bc726710672a073b43ae855422fc0f8f5e4 | /intro-regresstion-data.py | 317c88c5c5e1392d3e1da8e62825b7266f70d2c4 | [] | no_license | MyLearing/ML | 45cbf8ff8a58f12d53348e72e302d6c943498a5c | 65b8b265a9e9156734c16c193e5b6dcdd0385c3a | refs/heads/master | 2020-03-27T11:04:37.212308 | 2018-10-20T06:29:42 | 2018-10-20T06:29:42 | 146,463,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | import pandas as pd
import quandl, math
import numpy as np
from sklearn import preprocessing, cross_validation, svm
from sklearn.linear_model import LinearRegression
df = quandl.get('WIKI/GOOGL')
# print(df.head())
df = df[['Adj. Open', 'Adj. High', 'Adj. Low', 'Adj. Close', 'Adj. Volume']]
print('-'*100)
print(df.hea... | [
"teerapat12345678@gmail.com"
] | teerapat12345678@gmail.com |
4c3ae1e23e39da011a0e61b665f565854ae2ca1c | 21bd2c7eabec557e6f1581cdaed4b05e1a753a91 | /monkeymemorytest/testmonkey/learning/subpackage2/__init__.py | 937df6fba34220fbe421c89a132c42808bde67df | [] | no_license | flyingfishercn/tools | f7e80770a375347b3a1f57fdbc49eab1e6c6fd08 | 0c4edd815dcc324fd1058432bb3f030b4d29fb46 | refs/heads/master | 2021-01-15T18:03:47.128479 | 2014-11-05T03:21:56 | 2014-11-05T03:21:56 | 11,115,854 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#created by zhiquan.huang on 13-12-28 at 下午10:11
#Pls contact flyingfishercn@gmail.com or huangzq@oppo.com
#Software Engineer
#Product Software Department
#Guangdong OPPO Mobile Telecommunications Corp.,Ltd
#Gaoxin park South District 1st Road shenzhen, China
print("p... | [
"flyingfishercn@gmail.com"
] | flyingfishercn@gmail.com |
b2f36b58e3dcdcbf5a7174f13e87d5c8152975a6 | 6700ac0bc34860af8f7bb762466f0eb8fa1c4e53 | /GenericAPIView_mixins/2/project/settings.py | ba6ec070a6937d8706f3d41ad8f7a5a7082a3c78 | [] | no_license | Durgavasu58/DjangoRestFramework | 8d825459e8f99ec1ba48e97618bf10aaa26dc537 | 89195e89e1b40c8c14cb1bc2572fc036ea1b1452 | refs/heads/master | 2023-08-14T01:44:27.368313 | 2021-10-11T13:27:04 | 2021-10-11T13:27:04 | 413,710,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.2.4.
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/
"""
... | [
"durgavasu58@gmail.com"
] | durgavasu58@gmail.com |
2cc09c81e60862cf246d6b8773beb89d120f3c54 | 532e337751c44b89e68f0022966d6295116928a9 | /client/tests/filesystem_test.py | 9c7e531de3f22e663c3dd4952f1d1023c288e5c0 | [
"MIT"
] | permissive | laashub-soa/pyre-check | 8f1a2717888a22c15a7f6608e0d732e62fa060f9 | cc1a1b5c1007bf3e0e52e7f8b04c8e8fc365db44 | refs/heads/master | 2022-04-13T12:12:46.317095 | 2020-04-11T03:39:21 | 2020-04-11T03:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,467 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
import errno
import fcntl
import os
import pathlib # noqa
import subprocess
import tempfile
import unittest
from contextlib import c... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b35629b13b4288e9f2d3b4ff7f9c2a7af9103d2b | 2d055595705582784624c6bde5abf1b3854b34a9 | /tweets/mixins.py | e35d46e2850f0171dca2e7dc62983077149c37d8 | [] | no_license | Anubhav722/twitter_clone | fc36568cb6b32ce1942923ffcf55ebcce714e53f | f76190b8f5f3ac8dfad87d35b2650c5285e5082b | refs/heads/master | 2021-05-01T08:25:42.857828 | 2017-02-07T14:32:09 | 2017-02-07T14:32:09 | 79,710,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from django import forms
from django.forms.utils import ErrorList
class FormUserNeededMixin(object):
def form_valid(self, form):
if self.request.user.is_authenticated():
form.instance.user = self.request.user
return super(FormUserNeededMixin, self).form_valid(form)
else:
... | [
"anubhavs286@gmail.com"
] | anubhavs286@gmail.com |
368885046e81cec366f4572840a719040d759a31 | a81c36d350be0aeb6769fe25cf6084525841874e | /pony/orm/examples/demo.py | 721fb5f3b5b1f97901b6f8f31f2ecc31c04184fd | [
"Apache-2.0"
] | permissive | ponyorm/pony | 6e9bb581fb87c121ab21a911b2a185e7044fd945 | 27593ffc74184bc334dd301a86fc5f40fdd3ad87 | refs/heads/main | 2023-08-29T09:50:10.246229 | 2022-12-15T14:28:13 | 2022-12-15T14:28:13 | 8,087,816 | 3,117 | 290 | Apache-2.0 | 2023-09-05T02:20:16 | 2013-02-08T04:56:00 | Python | UTF-8 | Python | false | false | 2,361 | py | from __future__ import absolute_import, print_function
from decimal import Decimal
from pony.orm import *
db = Database("sqlite", "demo.sqlite", create_db=True)
class Customer(db.Entity):
id = PrimaryKey(int, auto=True)
name = Required(str)
email = Required(str, unique=True)
orders = Set("Order")
cl... | [
"alexander.kozlovsky@gmail.com"
] | alexander.kozlovsky@gmail.com |
bc871b75ba4a48cd1baa270703581d5d3cbdfaaf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02646/s014246720.py | f54f26a26b36440b0006e25566aa3480de114870 | [] | 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 | 410 | py | import sys
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())
#これO(1)で解けそう。
# スピードが同じ or 逃げる方のスピードが速いと無理
if V <= W:
print("NO")
sys.exit()
# 鬼の方がスピードが速い場合で場合訳
distance_AB = abs(A-B)
speed_AB = abs(V-W)
if speed_AB * T >= distance_AB:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e6ad1f74978b89d8985e666da0a4899d971f9abe | 8d0993fd4ef455f044f05d341bd5b21b640de85b | /apps/iocBoot/iocdclv/generator/gen.py | 89787ccf23220ea48931018ce4854dcdd03cc2fe | [] | no_license | andrea-celentano/clas12-epics | b6e3fb92b571417ac52a931b69217e89b65449af | b0641fae346fc8c166f61045ec84b53fc156c120 | refs/heads/master | 2021-05-07T08:04:59.961543 | 2017-02-08T14:34:59 | 2017-02-08T14:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | #!/usr/bin/env python
import os
templateFile='./st-template.cmd'
mappingFile='./mapping.txt'
template=open(templateFile,'r').readlines()
mapping={}
for line in open(mappingFile,'r').readlines():
[sr,host]=line.strip().split()
mapping[sr]=host
for ss in range(1,7):
for rr in range(1,4):
sr='S%dR%d'%(ss,rr)... | [
"baltzell@gmx.com"
] | baltzell@gmx.com |
10821ff07ed84bb3bcceba9260ce598a9dec6ece | dd2bff9202911f9d6b049fbdffe7ebdc702be3db | /ELTask/elcode/jointcnnrecordimplementation.py | 3aa394115a1f987d5988f903aef4e4326f318d28 | [] | no_license | IanGross/BioXrefEntityLinker | 12246c194fd3d82f151828cb240080571b6cc0b7 | 2b273c59c157d2e8d240415d72e2e8f5a60a39fc | refs/heads/master | 2020-03-11T15:42:28.189167 | 2018-08-27T14:25:19 | 2018-08-27T14:25:19 | 130,093,491 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,983 | py | from random import shuffle
import numpy as np
import tensorflow as tf
import data_constants
import pickle
EMBEDFILE_NAME = "../dumps/word_embeddings.pkl"
EMBEDDING_SIZE = 250
#Need to load the ont feat dict now
# embedding_fname is numpy matrix of embeddings (V x d) where V is vocab size and d is embedding dim
def ... | [
"charis@rpi.edu"
] | charis@rpi.edu |
db3779c711392ab68d99c733bcb2d858c18aee3a | f24c35bb0919f9ad75f45e7906691c3189536b33 | /xcb_ws/file/quarotor-master/cv_vision/devel/lib/python2.7/dist-packages/april_pro/msg/__init__.py | 242397c93cfa4f9a9cc60d5c7d837d15d027577f | [] | no_license | mfkiwl/supreme-xcb | 9b941f49bab5a811d23a0cd75790d1e5722aa9f0 | d1287657607bf86d4b1393acf285951760670925 | refs/heads/main | 2023-03-07T12:10:28.288282 | 2021-03-02T11:46:00 | 2021-03-02T11:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from ._camera_pos import *
| [
"xiechengbinin@gmail.com"
] | xiechengbinin@gmail.com |
0c33e1adf91e821cc7a08e50d950cf95850b1690 | 0bfa5e1771cc0d52689571bf523ca410813d138b | /News/venv/Scripts/pip3.7-script.py | c1d053c902a9ceead2d980164bf6e23c23a0e639 | [] | no_license | dndgus482/Sorticle | a00179255ab9f89ac868c47fb39daec3b6f32faa | 8041cd8b67ce53b02a7cfc1f862a43090e69382c | refs/heads/master | 2022-11-06T22:37:15.796927 | 2020-06-18T08:10:33 | 2020-06-18T08:10:33 | 254,592,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #!C:\Users\hablo\PycharmProjects\News\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.argv[0... | [
"chengeying1025@gmail.com"
] | chengeying1025@gmail.com |
2819c32c29eda8a92e1713eee6bd9346600a6d7c | 12d86bfab3bd6ec239e9126231a469684f06649a | /ipynotebooks/Python2.7/CUSTOM FILES/2015-12-07 Matplotlib GridSpec Tight_layout fiddling.py | a0cf0d8098b04ccb76c73b2aa96a0fc54f6022c4 | [] | no_license | dchug2/pynotebook | 2ea76b6dc4039be0a9d207d65bbf7cac0e3c49d6 | 36e324705b743b5648e7f9d9533b42ae7c85192d | refs/heads/master | 2021-05-27T02:30:02.887975 | 2019-02-13T10:46:12 | 2019-02-13T10:46:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py |
# coding: utf-8
# In[3]:
import matplotlib.pyplot as plt
import warnings
get_ipython().magic(u'matplotlib inline')
import random
fontsizes = [8, 16, 24, 32]
def example_plot(ax):
ax.plot([1, 2])
ax.set_xlabel('x-label', fontsize=random.choice(fontsizes))
ax.set_ylabel('y-label', fontsize=random.choice... | [
"mattijn@gmail.com"
] | mattijn@gmail.com |
1f0e54f6b21b16e128b63ac74d0a580e0d573725 | f1967abc06b3a163b335c2c4ac6965019117ae62 | /Source/Shiroten/Engine Prototype/pubyc_renderer_temp/simulation.py | e5b670664e6410833420826b2f00c7e4f0563fbb | [] | no_license | Shiroten/Planetary-Python-Project | e2255fa3f464d4ad4a267c39076025f874a9202f | 5b2c4b4ae0317b4d1b855701879e53d8f4862184 | refs/heads/master | 2021-09-07T14:29:42.012041 | 2017-12-21T15:54:15 | 2017-12-21T15:54:15 | 106,595,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,052 | py |
import sys
from loop import Loop
from simulation_constants import END_MESSAGE
import numpy as np
import math
import time
def startup(sim_pipe):
#Sonnesystem
python_position = [
#"Sun"
[0, 0, 0],
#"Mercury"
[57_909_175_000, 0, 0],
#"Venus"
[108_208_930_000,... | [
"shiroten.xisatu@gmail.com"
] | shiroten.xisatu@gmail.com |
0994bc73ae3dfc6dddd9e06649e1fdd52925adf8 | 03e67ed4e375659906a8df76ae5a3c8a6ca7d875 | /app/auth/views.py | 7d4db133a91a7d17ee7d4a373b29ae30bf886fab | [] | no_license | zhuangdaAlx/flask-blog | 45d55ed146ae6af4f458892201b834e5e3df2a85 | b6b29806d995907fe4992e9745232dfc9d6e1913 | refs/heads/master | 2023-04-08T23:22:21.252255 | 2018-05-16T04:36:47 | 2018-05-16T04:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | from flask import render_template, redirect, request, url_for, flash
from flask_login import login_user, login_required, logout_user, current_user
from . import auth
from ..models import User
from .forms import LoginForm, RegistrationForm
from app import db
from ..email import send_email
# 每次请求前运行,更新已登录用户的访问时间
@auth.... | [
"605079324@qq.com"
] | 605079324@qq.com |
e69c46f3cee7f01ec37608f025ae05edccdfa011 | 4cf7b2c6f63a8eae3b1150af0ea57c991d55d45d | /mod3/listDays.py | 61be58d7bc23fb0a157af44c8c414c8b0bb7a073 | [] | no_license | bpthoms/CGU-IST303-Examples | 7b77cba8094a5b84d1185e113dc0a07e8062d580 | f759b1245de2b70ada9c48b90ce0501d77e7bb5f | refs/heads/master | 2020-12-29T23:23:11.902880 | 2020-02-06T20:23:58 | 2020-02-06T20:23:58 | 238,774,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | #Let's assign our list
days=['Monday','Tuesday','Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
print("The first day of the week is " + days[1] + "? That can't be right.")
#Let's reassign our list values
days[1]='Sunday'
print("The first day of the week is " + days[1] + ". Now that's more like it.")
| [
"bpthoms@gmail.com"
] | bpthoms@gmail.com |
26f8eda5f0600071a244910d55c4b31448265a78 | 91693e434f5971b6f07d04f0aa289cebd396518b | /scripts/end_detection.py | 9c6e2388699ded9b52816632de7e15e1463c066a | [] | no_license | alexoshri/ardrone_project_work | aef2b8979ac098351fb53ae8b213831d0bd4da56 | ddf4d1f3b368337cad77196f14abfbff983d6498 | refs/heads/master | 2021-01-12T12:45:37.068997 | 2016-12-29T14:14:35 | 2016-12-29T14:14:35 | 69,293,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | #!/usr/bin/env python
import roslib
roslib.load_manifest('ardrone_project')
import sys
import rospy
import cv2
from std_msgs.msg import String, Bool
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
# ASSUMES BOTTOM CAMERA IS TOGGLED!
class end_detection:
def __in... | [
"alexoshri@gmail.com"
] | alexoshri@gmail.com |
3122a3d22cc75b8072b1a84cd51d2b3b92d108c8 | 7837c578a83c34a6c2c1dc9d9e4d163f64660914 | /src/backend/expungeservice/models/charge_types/subsection_6.py | 8f2010b71cc29b5385149d674ecdd4acb4d7e1a3 | [] | no_license | aemrich/recordexpungPDX | 03eade611806b264b2d5674f14c961587fb678d2 | 054dfab763a6f5b033c7e74d9043bd82326bbc58 | refs/heads/master | 2020-07-03T06:00:50.965896 | 2020-03-01T23:09:39 | 2020-03-01T23:09:39 | 201,811,565 | 0 | 0 | null | 2019-08-11T20:25:36 | 2019-08-11T20:25:36 | null | UTF-8 | Python | false | false | 1,794 | py | from dataclasses import dataclass
from expungeservice.models.charge import Charge
from expungeservice.models.expungement_result import TypeEligibility, EligibilityStatus
@dataclass(eq=False)
class Subsection6(Charge):
type_name: str = "Subsection 6"
expungement_rules: str = (
"""Subsection (6) names... | [
"noreply@github.com"
] | noreply@github.com |
b910048a22fd1306dd1bc8186944343933382755 | 25cad8d5a238e421c649695e089a2d77cb511562 | /copy_files_from_cosmos.py | dd657817a0a60bb1d531ac2dbf058fe491a6da64 | [] | no_license | strack-cineuse-sunding/strack-api-tutorial | 902d0efabd2f0bfc62b8312f1cd6b329ea68b03c | c3b14d02fd315aa1376ce52a3ebb277e8c8a42a3 | refs/heads/master | 2022-04-29T03:32:05.747365 | 2017-05-15T06:00:09 | 2017-05-15T06:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # coding: utf-8
# author: NJB
# email: mincau@163.com
# Copyright (c) 2017 Strack
import os
root_dir = r"D:\BaiduNetdiskDownload\Cosmos Laundromat\Disc2\scenes"
dst_dir = r"D:\work\resource\cosmos"
for root, dirs, files in os.walk(root_dir):
rel_path = root[len(root_dir)+1:]
if not rel_path:
rel_path =... | [
"mincau@sina.com"
] | mincau@sina.com |
e91ab6f89a44ae34d606e7f048dcab345ebe5b91 | f49a4da9605020b09b38d342c305732002cbcdcd | /core/clean.py | 0343c05b756f07e75fcb06770d84c9d648089354 | [
"MIT"
] | permissive | hbhammaddyar0/TG-Watermark-bot | 334fd245910eb1e329d61b2bdffcb7686f83b373 | c98a249f6789131777cfb76d0123f1744dc354ad | refs/heads/main | 2023-06-07T15:38:37.907890 | 2021-06-17T06:29:46 | 2021-06-17T06:29:46 | 377,711,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # (c) @hbhammaddyar
import os
import shutil
from configs import Config
async def delete_trash(file):
try:
os.remove(file)
except Exception as e:
print(e)
async def delete_all():
try:
root = Config.DOWN_PATH + "/WatermarkAdder/"
shutil.rmtree(root)
except Exception as e... | [
"noreply@github.com"
] | noreply@github.com |
ddc010c02efb31bb0c7a69d79709aae033540d48 | d70b1c1282390bcac743cd2a1e66bd4d83fe9b67 | /pychess/ic/managers/ICCAutoLogOutManager.py | 98beb0d4d24dec5acab2374dde57e2baa9f4e279 | [
"MIT"
] | permissive | jacobchrismarsh/chess_senior_project | d3e9a8c6c5bd5f8db67bf3dce0751303130549f2 | 7797b1f96fda5d4d268224a21e54a744d17e7b81 | refs/heads/master | 2022-12-12T18:38:07.913996 | 2019-06-13T20:14:04 | 2019-06-13T20:14:04 | 165,728,158 | 0 | 0 | MIT | 2022-12-10T17:19:06 | 2019-01-14T20:14:25 | Python | UTF-8 | Python | false | false | 264 | py | from gi.repository import GObject
from pychess.ic.managers.AutoLogOutManager import AutoLogOutManager
class ICCAutoLogOutManager(AutoLogOutManager):
def __init__(self, connection):
GObject.GObject.__init__(self)
self.connection = connection
| [
"gaston.aganza@gmail.com"
] | gaston.aganza@gmail.com |
0198b50f604c108e997aac5fca5c852086cf7472 | 8c55db1d12b14c9a7e66722a103d4d3da621a634 | /exampleCSV/TrialSensorFiles/TestWrite.py | b2e9e2a011e014cd696079c95f8cddd1fb9dec40 | [] | no_license | MCLusardi/BIPSpHProject | 3fd3fd5461abfe31457315de896fadbe781f22e4 | be901e2e55f09f5f378ec2b505faf735b004d2b1 | refs/heads/main | 2023-07-14T20:20:53.753949 | 2021-08-14T15:34:01 | 2021-08-14T15:34:01 | 335,359,818 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | file = open("TestWrite.txt", "a") #opening file for writing, will create if it doesn't exsit
if(file == None):
print("File could not be opened\n")
else:
file.write("pH, DateTime")
file.close()
print("All Done!"); | [
"mclntg@mail.missouri.edu"
] | mclntg@mail.missouri.edu |
e6122300ca48004cff845eb4a3a431535292fd2b | 94b373756ab6047165248cc5d4fc59e72a1342da | /exercise04/solution/montecarlo/bench_py2.py | 9284b330625d3f3706e12300b199d43e0291030e | [] | no_license | raju1107/uibk_ps_parsys | 75b87d000cc06b430c66e92c77817b54d722b061 | 314c0f168e0ec3aff26f3f69c68d9e10d4545c94 | refs/heads/master | 2022-01-14T13:37:54.681728 | 2019-01-23T11:51:13 | 2019-01-23T11:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,534 | py | import time
import os
import subprocess
import numpy
import sys
PROBLEM_SIZE = 0
NUMBER_OF_ITERATIONS = 10
COMMAND = "./montecarlo %s"
cycles_list = []
instructions_list = []
cache_misses_list = []
seconds_list = []
time_list = []
def parse_filename(filename):
filename = filename[: filename.find(b".")]
name ... | [
"curvasudfan@gmail.com"
] | curvasudfan@gmail.com |
0e37dca86994a1da13600b508212b627be03ffc0 | 704efad091d0c1fd9c846d32e4904a8c5c69f03e | /mock_server.py | e371b0b7ebe18499a239fe3215bf44f01eb84af7 | [] | no_license | wangyayx/api_mock | 4a54756b248eab84745d309855df50e30e4d6f3e | eeeb7ff075b6122f50b89919c26febfebe93eb2b | refs/heads/master | 2020-04-10T00:32:35.908022 | 2018-12-06T14:16:53 | 2018-12-06T14:16:53 | 160,688,433 | 0 | 0 | null | 2018-12-06T14:45:00 | 2018-12-06T14:45:00 | null | UTF-8 | Python | false | false | 5,881 | py | # -*- coding: utf-8 -*-
from flask import jsonify, Flask,make_response,request
import sys,ConfigParser,requests,json
from flask_sqlalchemy import SQLAlchemy
reload(sys)
sys.setdefaultencoding('utf-8')
#如果在mock_server中没有数据是否进行转发 0为是,非0为否
relay = 0
#转发服务器地址
host1 = 'http://127.0.0.1:5202'
def getconfig():
cf = Co... | [
"1107694999@qq.com"
] | 1107694999@qq.com |
1992606aa6af81e11b1db38e833188764ac03b4e | e3d71990fc810c06c01b3a388b6beb507232ccfb | /augmentations/horizontal_flip.py | f0ab903cdde02425329bcdc6133017aeece3df50 | [] | no_license | Kevinkald/asset_tracking | f9902a6f5abd3c517ab7d4b816c921460e9b5716 | e2199544f2f32f73cbe68bc9fe1d125228ac2c88 | refs/heads/master | 2023-03-28T05:19:32.201295 | 2021-03-31T09:37:55 | 2021-03-31T09:37:55 | 299,911,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import numpy as np
import imgaug as ia
import imgaug.augmenters as iaa
import cv2
import os
import xml.etree.ElementTree as ET
folder="../images/train_copy/"
seq = iaa.Sequential([
iaa.Fliplr(0.5)
])
for filename in os.listdir(folder):
img = cv2.imread(os.path.join(folder,filename))
# Accessing each jpg ... | [
"kevin.k.kaldvansvik@gmail.com"
] | kevin.k.kaldvansvik@gmail.com |
aa31e701a8d8fe716135273f55b29f14ffd69e2f | ad73697ede53f200a79479d3c4e561c057b74391 | /cfg/fusion_ssd_comap.py | 6d2ed081787a1f1209ef5d3272d6b13d15440a3a | [] | no_license | CV-IP/FPV_RCNN | e8e84f37651f07b4590cb00d68fd50d769e14fde | fbdee427b30ecde45c027d841fb94ada858af808 | refs/heads/main | 2023-08-04T16:33:29.886975 | 2021-08-26T13:45:53 | 2021-08-26T13:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,928 | py | import numpy as np
from vlib.visulization import draw_points_boxes_bev_3d as visualization
from cfg import LABEL_COLORS
def update(dcfg_obj):
dcfg_obj.n_classes = len(dcfg_obj.classes)
dcfg_obj.grid_size = np.round((dcfg_obj.pc_range[3:6] - dcfg_obj.pc_range[:3]) /
np.array(dcfg_obj.v... | [
"yunshuang.yuan@ikg.uni-hannover.de"
] | yunshuang.yuan@ikg.uni-hannover.de |
5a15158e5dcab14ba761c04310d97d07c955a3a3 | 534de189d87fca35352799d3fb0cefad6fdd3c72 | /crc.py | f3080f6b14f30b408b89528cedbc3969c11ce7f7 | [] | no_license | h4m3d92/AFE_IOT_Server | 903f0e018d7f09e40f415e7a487e555b9ab8e7da | b6dd23899252974a46ee5d538d2fbc5bfb2c4159 | refs/heads/master | 2023-03-15T02:00:44.509206 | 2021-03-17T10:45:20 | 2021-03-17T10:45:20 | 344,603,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | def calCrc(inStr):
dnpCrcTable = [
0x0000, 0x3D65, 0x7ACA, 0x47AF, 0xF594, 0xC8F1, 0x8F5E, 0xB23B, 0xD64D, 0xEB28, 0xAC87, 0x91E2, 0x23D9,
0x1EBC, 0x5913, 0x6476, 0x91FF, 0xAC9A, 0xEB35, 0xD650, 0x646B, 0x590E, 0x1EA1, 0x23C4, 0x47B2, 0x7AD7,
0x3D78, 0x001D, 0xB226, 0x8F43, 0xC8EC, 0xF589, 0... | [
"62805548+h4m3d92@users.noreply.github.com"
] | 62805548+h4m3d92@users.noreply.github.com |
5ff1fb385203591c762b667a0517c7c061db70aa | 8c94b3b5998ac171c8942940805fbf55d10df215 | /train_dqn.py | af615415a0fa7f19a8d198f88f5fe601c49e77dc | [] | no_license | wenxingliu/p1_navigation | 049869d2fe321f83ae54f77a664436a5555e99ed | eec82f78729937ea93fadaba7f68095f088f5c36 | refs/heads/master | 2020-03-30T08:21:24.908801 | 2018-09-30T21:37:26 | 2018-09-30T21:37:26 | 151,006,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | from collections import deque
import numpy as np
import torch
def train_dqn(epochs, agent, env, gamma, tau, eps_decay, eps_min, train=True):
brain_name = env.brain_names[0]
brain = env.brains[brain_name]
# reset the environment
env_info = env.reset(train_mode=train)[brain_name]
# number of act... | [
"wenxing.liu.09@gmail.com"
] | wenxing.liu.09@gmail.com |
15f4732d2029dec5ca58338f4f003779f1c6ac44 | 5c26364dc74899f06746da2df43c5438b62dcc5c | /gTest1.py | 9fb758d49945050b089d3a4229db5fce666752bd | [] | no_license | Exochos/ITC110 | 8014bcd7a9149529fce39112c75397755db6efc2 | bfc1cec21f5b2257f0a4fa9dac07952cec01087b | refs/heads/master | 2020-12-07T14:54:14.435866 | 2020-03-26T01:20:11 | 2020-03-26T01:20:11 | 232,740,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py |
from graphics import *
def main():
p = Point(59,60)
print(p.getX())
win = GraphWin()
p.draw(win)
main() | [
"exochos@gmail.com"
] | exochos@gmail.com |
e38518833b226dc97b94e5f89340ddc6917cca57 | c0216b5e8a21f668dfc0980f5a5913eb8084759a | /SearchApp/migrations/0006_profile_name.py | f2c062d2744652dd83ac0a8fec643945783eb391 | [] | no_license | tushdhingra/SearchPage | cc18265317907caf413043bca2f9f54f335dd56c | 86bce55db9475e82ea8f5de64f939beb2cb076bd | refs/heads/main | 2023-01-31T16:21:02.220230 | 2020-12-17T16:41:40 | 2020-12-17T16:41:40 | 302,873,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 3.0.6 on 2020-12-17 10:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('SearchApp', '0005_remove_profile_name'),
]
operations = [
migrations.AddField(
model_name='profile',
n... | [
"noreply@github.com"
] | noreply@github.com |
369b6deda986697894141aaed5d4ee114c8ff2fc | c98ec703bce8129d5589736f41b415988af3399f | /xt18.py | 64e399362c2c097c5376007106a6af5f17c33dd6 | [] | no_license | WuZhiT/xtpython | 5e5bbcccedf573546ccc3cf03bc5aa10ef257a21 | 5c3a09d56391b01971ab9de73a0da118b99dc6c7 | refs/heads/master | 2022-11-21T13:18:41.336101 | 2020-07-19T10:13:08 | 2020-07-19T10:13:08 | 265,479,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #this oneis like oyur script with argv
def print_two(*args):
arg1,arg2 = args
print(f"arg1: {arg1}, arg2: {arg2}.")
#ok,that *args is actually pointless, we can just do it
def print_two_again(arg1,arg2):
print(f"arg1: {arg1}, arg2: {arg2}.")
#this just takes one argument
def print_one(arg1):
print(f"a... | [
"t618718@outlook.com"
] | t618718@outlook.com |
582f0dd888efa3c0892391fb055df2e821e1ccb1 | ac9ed4e3366e265368cac64322ada9df55e9439f | /examples/lis2mdl_simpletest.py | 7fa303c8196bbf3f18bb1e61e14a2be847fe16c7 | [
"MIT"
] | permissive | FoamyGuy/Adafruit_CircuitPython_LIS2MDL | 666c81355dafdbde77ad84b2303faca840764a4f | d23fc6ecefee4479d844e13203c13f48ff7c56ad | refs/heads/master | 2021-01-01T07:45:00.957372 | 2020-04-19T14:48:18 | 2020-04-19T14:48:18 | 239,178,496 | 0 | 0 | MIT | 2020-02-08T18:01:09 | 2020-02-08T18:01:08 | null | UTF-8 | Python | false | false | 363 | py | """ Display magnetometer data once per second """
import time
import board
import busio
import adafruit_lis2mdl
i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_lis2mdl.LIS2MDL(i2c)
while True:
mag_x, mag_y, mag_z = sensor.magnetic
print('X:{0:10.2f}, Y:{1:10.2f}, Z:{2:10.2f} uT'.format(mag_x, mag_y,... | [
"nospam187+github@gmail.com"
] | nospam187+github@gmail.com |
9cc93006fd395e9f46274e4068d914f4239c7798 | 6d6715ec3c5044da1ec80403da5f2f8592670be1 | /programs/program.py | 1493ad8eb9b762aeec65dedd2d1fa3157d7644c6 | [] | no_license | TheWorldofProgramms/Pygame_progect | 08d357b1a8412d30e7e565a05f2bf3529620545d | 1b1872afc4cd80888ecb10655d677e6c89c7e369 | refs/heads/master | 2021-02-06T13:00:28.006451 | 2020-02-29T08:27:25 | 2020-02-29T08:27:25 | 243,916,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | import pygame, PyQt5, sys
from main_snake import GameSnake
from main_window import Ui_MainWindow
from arrow_game import ArrowGame
from help import Ui_HelpWindow
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
pygame.init()
class MainWindow(QMainWindow, Ui_MainWindow):
def __init__(self): ... | [
"theprogrammworld@gmail.com"
] | theprogrammworld@gmail.com |
21c932c0ef6ee45ed6cad45b7e274656112a77ab | 0dbc1eb9a6279644c7288a171219afeb8101306e | /weekend_9am_batch/p1.py | abaf990078f3414535a59e11fc4fe5e93432dbc1 | [] | no_license | amitsaxena9225/XPATH | 505aa34cf8ca5352dd171e434348016166ce5f4b | 35110f5054aa5b64243bea4fc55518c63fc324e9 | refs/heads/master | 2020-07-11T05:53:15.478851 | 2019-07-24T09:21:40 | 2019-07-24T09:21:40 | 204,460,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py |
'''def prime(*args):
for a in args:
print(type(a))
for i in a:
print(type(i))
if i > 2:
for j in range(2, i):
if i % j == 0:
print(i, "number is not prime")
break
else:
... | [
"amitsaxena9225@gmail.com"
] | amitsaxena9225@gmail.com |
a3e29ce1c00840ff011f687bbfc23e5a7f91fb49 | c2bdab9bed8f2a13eafe62083d55ecbd1a546b12 | /examples/apitest.py | 2f40ec821bcb71f09db36547a51918eac1b0a143 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | iaroslav-ai/rllab | 3938a2d479b7aadae34a2257b85435415628a44d | 786da7acbd657089d3b3466d7db3b2a265effe9b | refs/heads/master | 2021-01-09T20:27:58.019770 | 2016-09-26T22:57:29 | 2016-09-26T22:57:29 | 69,281,153 | 0 | 1 | null | 2016-09-26T18:41:54 | 2016-09-26T18:41:54 | null | UTF-8 | Python | false | false | 487 | py | from rllab.envs.gym_env import GymEnv
import os
import apimock as spx
import shutil
dat_folda = "test"
if os.path.exists(dat_folda):
shutil.rmtree(dat_folda)
env = GymEnv("LunarLander-v2", log_dir=dat_folda)
spx.init(env.observation_space.low.shape[0], env.action_space.n)
for i in range(100000):
o = env.re... | [
"iaroslogos@gmail.com"
] | iaroslogos@gmail.com |
b8132a25e5f3f4a91477a8ecfc2fc7fd18560cab | 0cf1e928715c8683926961c6c2e543fe28a9be3f | /train_dialog.py | aa11539e550067372f4db9b67851f32049b68742 | [] | no_license | HossamEmam95/rasa_trial | 912ff24b697cd183029d69d3d55bdc7e7db6d3ab | faea95582ef9647a4ca83a88247fe98af476249f | refs/heads/master | 2022-09-13T15:03:05.984036 | 2018-10-18T13:33:26 | 2018-10-18T13:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # Imports
#-----------
# rasa core
import logging
from rasa_core import training
from rasa_core.actions import Action
from rasa_core.agent import Agent
from rasa_core.domain import Domain
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.policies.memoization import MemoizationPolicy
from rasa_core.... | [
"hossamsalahemam@gmail.com"
] | hossamsalahemam@gmail.com |
93a79d4b7a6e850940f4273dd7acf56f1f9eeb0b | d859dea94d9cc3f72331bc3fe76274743330b10e | /Mod02Tutorial.py | 517f80a0358c37a4bbbc2b22d6dbe76358a3de44 | [] | no_license | mattalhamilton-zz/Python-and-Bash-Scripts | 9c992f33b2f8a2c942c038babcf86b238ae3e1e3 | db55db2429f58aa914999dbc1f8a85719e9aba58 | refs/heads/main | 2023-03-20T19:20:31.032613 | 2021-03-25T21:28:51 | 2021-03-25T21:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,572 | py | ##Matthew Hamilton
##Mod 02 Tutorial
import random
def rando_insert(thing_being_inserted):
position = random.randint(0,9)
my_list.insert(position, thing_being_inserted)
counter = 0
my_list = []
while counter < 10:
list_item = input('Please enter a word or a number: ')
my_list.app... | [
"noreply@github.com"
] | noreply@github.com |
66561e109d0b7596590f1695b5ea4a41fd34299e | 93b29c9f804f6c4ec1e32d0a2b0fb2f6cebd393f | /auto_complete.py | e4fc0d3b2e019f10692f96e9117f45e6515ef415 | [] | no_license | shira-d111/Auto-complete | f04399dda8f9fe0fbfd6ce2e8b9d7757058141c7 | 248c3bc4c9e6d1ef2fa7f64afcb6a170206dec51 | refs/heads/master | 2022-12-23T19:00:08.531723 | 2020-09-14T08:32:17 | 2020-09-14T08:32:17 | 295,352,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #import re
import linecache
import json
from auto_complete_data import AutoCompleteDataClass
from json.decoder import JSONDecodeError
def change_to_auto_complete_data(c):
with open("files.json", "r") as f:
try:
files = json.load(f)
except JSONDecodeError:
pass
... | [
"noreply@github.com"
] | noreply@github.com |
5dc5d4d353faa2567e9e99b1c5fed9cedda94495 | e0dbbbb09bbc53fa9cd78e3642d5c3a7c7475084 | /1-Django/kolt_django_tutorial/blog/views.py | aa21033a972eddac2729c7e8876da7a12ab1d5a0 | [
"MIT"
] | permissive | koltpython/python-workshops | 6c8fe30655b3de56f849c4f6cb0db70aa533aecf | 8b7f5ce1bad0380d90a65a0e033d0acefd7ddcde | refs/heads/master | 2020-09-19T20:14:03.732655 | 2020-04-20T19:26:03 | 2020-04-20T19:26:03 | 224,287,601 | 3 | 0 | MIT | 2020-06-06T00:48:03 | 2019-11-26T21:16:32 | Jupyter Notebook | UTF-8 | Python | false | false | 585 | py | from django.shortcuts import render
from django.http import HttpResponse
from blog.models import Post
# Create your views here.
# index view
def index(request):
all_posts = Post.objects.all()
posts_data = {
# we'll access all post with 'posts' name.
'posts': all_posts
}
return rende... | [
"ftamur16@ku.edu.tr"
] | ftamur16@ku.edu.tr |
24503b611dd166a71acc9c0b32a5c5692a0498f8 | 983e11432b479655c77c7acb6974c7b58562b34b | /Lab/Lab2/Lab2.py | bec4ddf8d6ff509aafc9031a4b4c3b76ae62530f | [] | no_license | baum1982/tensorflow | bba76ab2ddb64ea96f8a6c21e45783669a28e8d8 | ce14411c8b70ab6c0c49115f853511d15171e1e0 | refs/heads/master | 2021-08-23T14:50:01.477738 | 2017-12-05T09:02:26 | 2017-12-05T09:02:26 | 113,057,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | '''
Created on 2017. 12. 5.
@author: baum-work
'''
import tensorflow as tf
x_train = [1,2,3]
y_train = [1,2,3]
W = tf.Variable(tf.random_normal([1]), name="weight")
b = tf.Variable(tf.random_normal([1]), name="bias")
hypothesis = x_train * W + b
# reduce_mean --> 평균 계산
# square --> 제곱
cost = tf.reduce_mean(tf... | [
"jaehwan.kim@tongyang.co.kr"
] | jaehwan.kim@tongyang.co.kr |
15eaba73b9c93281886b7e8ea28132e31d49bb80 | a546508d9bad6c65af9d8f8d502ff7d7c9726724 | /train/word.py | 9f88dfd9a0ab2d98228421731b0563bfb5175969 | [] | no_license | leezqcst/360 | e53f50705f258e9dd4ab1ae65b422edae8d17bf0 | 5319759336fd6557046b12a04ae40bf87b59dbe1 | refs/heads/master | 2021-05-09T21:18:02.714784 | 2018-01-23T11:52:48 | 2018-01-23T11:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Session(config=config)
import sys
sys.path.append("..")
from utils.preprocess import *
import keras
import keras.backend as K
from utils.data import *
from keras.lay... | [
"fuliucansheng@gmail.com"
] | fuliucansheng@gmail.com |
710b22b41fb3f58cf8b3eeb6f608e97d65099cbe | 07c05aace39963a0a93ff517f993e4371b3ef96f | /test.py | 80bae811acfe0148bc49a15a78d85eceef022aee | [] | no_license | JUKE89/PythonLearning | d7131a36f1b76c53bb6d450b23a0ad2ee689d2b2 | 6507dbc98323e9fc17623acd95a3d0b2a8b431e3 | refs/heads/master | 2021-01-25T09:38:15.074731 | 2017-06-09T14:32:32 | 2017-06-09T14:32:32 | 93,865,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | print ("you can print texperiment ")
if 43 > 42:
print ("print this stmt")
#they are lists , not arrays
movies = ["list 1", "asdf", "asdf" ]
print (movies[1]) | [
"U6018537@ten.thomsonreuters.com"
] | U6018537@ten.thomsonreuters.com |
443d92d28e04c623852969ca387762c99d411436 | a869ad00fc6811b63bab6c0bb8c227b5e2f82091 | /conftest.py | c71b9bba45ae88fcb52f5bfa52564afa1b130001 | [] | no_license | samkeen/python-lambda-import | 1dd9aba35e868d509051d6242b3361365d847265 | 69d1636b88f56fe55e66fda8aea44f8ffc9fc652 | refs/heads/master | 2020-09-30T01:50:52.921648 | 2019-12-10T18:49:56 | 2019-12-10T18:49:56 | 227,171,066 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import os, sys
from os.path import join
lambda_dir = join(os.path.dirname(os.path.abspath(__file__)), 'hello_world')
sys.path.append(lambda_dir) | [
"samkeen@amazon.com"
] | samkeen@amazon.com |
13654caad9e66cad471769e6f2a66591fd621c25 | 272f9dcc61b8bf721313eb6c1cf7d34acd6293f3 | /exercises/PyExercises/NameSurnameEx13.py | 3c608cc1a27a9280e35bc06c519947d1da0cfa0c | [
"MIT"
] | permissive | Mathisxy123/PythonCrashCourse | cc7e52a8dac7f7a20425d9f44bebcc075ae96e51 | bb1afaeecfa195d3771ff96fea0b9f907125264e | refs/heads/main | 2023-02-12T09:57:06.944401 | 2021-01-05T09:06:57 | 2021-01-05T09:06:57 | 327,745,771 | 1 | 0 | MIT | 2021-01-07T23:10:40 | 2021-01-07T23:10:40 | null | UTF-8 | Python | false | false | 122 | py | # constantly ask the user for new names and phone numbers
# to add to the phone book, then save them
phone_book = {}
| [
"noreply@github.com"
] | noreply@github.com |
f29241cd5d7f9127aa55a2411375645fc606e2a5 | 46f358b954d2d0067a2093ee9006e222f831a8f8 | /great_expectations/expectations/core/expect_column_max_to_be_between.py | 386953ecb814ea47f4440e4be4ed4e92580474d9 | [
"Apache-2.0"
] | permissive | dhruvvyas90/great_expectations | b963aa99c683a0da3a9e2b5a1046d2a32f622c7b | fddf5336065c644558c528301e601b9f02be87e2 | refs/heads/main | 2023-01-28T15:26:55.331282 | 2020-12-03T18:52:14 | 2020-12-03T18:52:14 | 319,719,900 | 1 | 0 | Apache-2.0 | 2020-12-08T18:02:33 | 2020-12-08T18:02:32 | null | UTF-8 | Python | false | false | 8,969 | py | from typing import Dict, List, Optional, Union
import numpy as np
import pandas as pd
from great_expectations.core.batch import Batch
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import (
ExecutionEngine,
PandasExecutionEngine,... | [
"noreply@github.com"
] | noreply@github.com |
85eda1a4341c7f50fcb5c659e3fdcadd75cbd85f | 01e17d9f8c78c39b2012fbd969bab9728c5105c6 | /30_practice/30_practice_urllib.py | 8f96048eb6157061382e7e002b97b35fca2f4067 | [] | no_license | m09902004/Python-Learning | 36fbbf21a4054e0f0269bed9249bb649274f05e4 | 2a8052238b897b336f7873afa0476aae644d45cf | refs/heads/master | 2020-07-11T09:11:19.726444 | 2019-09-20T02:48:11 | 2019-09-20T02:48:11 | 202,258,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 3 13:35:05 2019
@author: ASUS
"""
import urllib.request as ur
url = "https://data.gov.tw"
res = ur.urlopen(url)
print('1.網址:',res.geturl(),type(res.geturl()))
print()
print('2.讀取狀態:',res.status,type(res.status))
print()
print('3.表頭資訊:',res.getheaders()... | [
"noreply@github.com"
] | noreply@github.com |
9f16b156d823de007a292cb20a7c907682d2a4ba | 415d76a24690dabd223b047c86a52076565512a1 | /kodistubs/docs/conf.py | 7c9b491367a3f587d95c0a4d5a3088f0028685a3 | [
"Apache-2.0"
] | permissive | thatalex/comforttv | e2698a4212502f374f3c9ee661e55b38b98678ea | 41bcb8c1688d8ebe35e6d8282cb1f8ea9cf35248 | refs/heads/master | 2020-03-31T05:03:43.062193 | 2019-02-12T21:43:45 | 2019-02-12T21:43:45 | 151,931,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,831 | py | # -*- coding: utf-8 -*-
#
# Kodistubs documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 08 14:30:41 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
#... | [
"vialikanau.aliaksei@gmail.com"
] | vialikanau.aliaksei@gmail.com |
0678a3938b8fbf93a95cbe043c10b2e3afda8349 | fd286c7af76c14b0b2797065d7cba176c4ae44d0 | /tests/test_app.py | d88f01951525a2da7f45083f312f045f951ade43 | [] | no_license | ATTX-project/uv-provenance-service | 71da74c3f47c5cdf98c7d4f935c032a69dce9dd2 | 943067ce1b7858fbd478f79d7159b25c6ab0c4fa | refs/heads/master | 2021-08-28T04:50:57.405020 | 2017-12-11T08:07:29 | 2017-12-11T08:07:29 | 103,507,769 | 0 | 0 | null | 2017-12-01T13:26:05 | 2017-09-14T08:35:16 | Python | UTF-8 | Python | false | false | 1,439 | py | # import falcon
import unittest
import httpretty
# import requests
from falcon import testing
from uvprov_api.app import init_api
# from wf_api.app import api_version
# from datetime import datetime
# from wf_api.utils.db import connect_DB
class appTest(testing.TestCase):
"""Testing GM map function and initialize... | [
"stefan@blankdots.com"
] | stefan@blankdots.com |
a553cff8e4f00a8e58b43880196a4c4acfecab9c | aabcbe9640f3e6ebcf062592dcb6ca2569ebc4ec | /tests/integration/fit/test_fit_mlp.py | 469e8c1f16050e3f96de255ad5f912b3fd1eaa29 | [
"Apache-2.0"
] | permissive | AliSheheryar/finetuner | 89ea21674faa1dba383146ad1c46811ce30cada6 | b92df7de90cf07c345971dc1af354e70bdee9708 | refs/heads/main | 2023-09-02T19:14:48.866437 | 2021-10-21T07:21:17 | 2021-10-21T07:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | import json
import paddle
import tensorflow as tf
import torch
import finetuner
from finetuner.toydata import generate_fashion_match
all_test_losses = [
'CosineSiameseLoss',
'CosineTripletLoss',
'EuclideanSiameseLoss',
'EuclideanTripletLoss',
]
def test_fit_all(tmpdir):
embed_models = {
... | [
"noreply@github.com"
] | noreply@github.com |
dfe9f6f53344041305df796dd55d0db632243b1d | 959276633ae1e7d00b7c061b6fe1e7b8a86771bc | /src/Maestro Box/Lecteur Python/afficheur.py | 4b5367f84876b15ee08bd001e35d5c36de7f63f8 | [] | no_license | dhokas/eMaestro | b06d32dbd64eacd52c8552bacf2ef9fd292204eb | 8ee76cc53c1e3659532a5e48ff350b30a9737177 | refs/heads/master | 2021-01-20T02:00:05.925465 | 2017-04-25T13:19:16 | 2017-04-25T13:19:16 | 89,353,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,343 | py | import Image
import ImageDraw
import sched
import time
import gc
from rgbmatrix import Adafruit_RGBmatrix
chemin_images = "drawable/"
temps_affichage_logo = 2
pos_temps = (8,0)
pos_intensite = (16, 8)
pos_passage = (0, 24)
pos_armature_symb = (56, 16)
pos_armature_chiffre = (48, 16)
pos_centaine = (40, 0)
pos_dizain... | [
"doux.boris@laposte.net"
] | doux.boris@laposte.net |
9549e6df04fc49f3e5f8cea90329b3ee092c8a45 | ff786c44aca8be20946e730b218b5956277ccdcf | /E_Coli_model.py | 64eff99d386d2a5208ecf144667bd17505263a5a | [] | no_license | Alistair-Hickman/Project | 54f7abeb2dcba4dceac27ac71e71834f3b50e5dd | e3a5a9096811d7a8814e3e8d6a3f2a28348c95c4 | refs/heads/main | 2023-08-10T23:36:45.464287 | 2021-09-16T10:37:43 | 2021-09-16T10:37:43 | 383,538,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,129 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 22 13:32:35 2020o
@author: Alist
"""
import numpy as np
from numpy.random import seed
import random
import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
import math
from numpy import savetxt
#from Matmul_fnc import tumble
def MSD(pos_arr):
M... | [
"alistair.hickman63@gmail.com"
] | alistair.hickman63@gmail.com |
80ef7835253fcaef8f8fae0b12584c0a61a61921 | 5cd0946e3675c66d80273fa3e1a406c8d4343c12 | /map-filter-reduce/multiproc_test.py | e119f21dd72fef86856999c93578407664e02e83 | [] | no_license | Mansouroopi/python-advance-concept | fa06ac0b3273662e73fd6de37775fec25f51894d | 016341b988b5a64307b1e96d06fb4491ff053e77 | refs/heads/master | 2023-03-07T23:11:32.033633 | 2021-02-23T16:50:12 | 2021-02-23T16:50:12 | 336,753,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # multiproc_test.py
import random
import multiprocessing
def list_append(count, id, out_list):
"""
Creates an empty list and then appends a
random number to the list 'count' number
of times. A CPU-heavy operation!
"""
for i in range(count):
out_list.append(random.random())
if __name_... | [
"mansourabdalla22@gmailcom"
] | mansourabdalla22@gmailcom |
a6d6ea3b3be28c17d178c6810e34cf2b263d01b2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /PTh7tBusAZRgjAWEZ_11.py | 60ec4e9a9fb3660fa0aac2d124fbbae29d276436 | [] | 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 | 69 | py |
def calc_diff(obj, limit):
return abs(sum(obj.values()) - limit)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5fe273e4a86567dc6bbb239374d1aeab29760fdc | 9eb9a7c5c18e4847f52ae098882c51c46f6398e7 | /src/GUICtl.py | 67ec858aa92f5e090cc910faa528a158fca10f51 | [] | no_license | AryamanReddi99/Hack-The-Midlands | 2017fb3df455208a4f99f030ebe8561fa20df7c2 | 72a73cfa77749fbace8f1f99e87edd905458c2e9 | refs/heads/master | 2020-08-28T12:52:00.171422 | 2019-11-06T10:18:10 | 2019-11-06T10:18:10 | 217,705,212 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | import pyautogui as pg
import platform
from time import sleep
def lock_screen():
if platform.system() == "Linux":
pg.hotkey('winleft', 'l')
else:
print("Not implemented for this platform")
def workspace_up():
if platform.system() == "Linux":
pg.press('winleft')
sleep(0.3)
... | [
"david.misc1@aspect135.co.uk"
] | david.misc1@aspect135.co.uk |
03dd33c5872c44c363516af41041b942fc4b82c7 | a6ed990fa4326c625a2a02f0c02eedf758ad8c7b | /meraki/sdk/python/removeNetworkSwitchSwitchStack.py | ea22d146e97d6bbedda21ccbaa78bfaab2c71d73 | [] | no_license | StevenKitavi/Meraki-Dashboard-API-v1-Documentation | cf2352976c6b6c00c17a5f6442cedf0aeed46c22 | 5ed02a7def29a2ce455a3f2cfa185f76f44789f5 | refs/heads/main | 2023-03-02T08:49:34.846055 | 2021-02-05T10:31:25 | 2021-02-05T10:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import meraki
# Defining your API key as a variable in source code is not recommended
API_KEY = '6bec40cf957de430a6f1f2baa056b99a4fac9ea0'
# Instead, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/
dashboard = meraki.DashboardAPI(API_KEY)
network_id = ... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
cfec69c429cf20a1391c0b96aa76a0d3dcc92545 | fd7332717369499f73e8172cd9fca5b41bc32013 | /appJar/lib/png.py | e040792ced2a2944a9637d389207bd7caeded491 | [
"Apache-2.0",
"MIT"
] | permissive | colewebb/green-pixel-analysis | a45e8038e19cde93ba6feeb518b78be09cc91e76 | b3be49dc4f1318056c57c550294f16d99ca5a394 | refs/heads/master | 2023-04-07T11:18:18.557466 | 2021-04-16T14:38:07 | 2021-04-16T14:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103,095 | py | #!/usr/bin/env python
from __future__ import print_function
# png.py - PNG encoder/decoder in pure Python
#
# Copyright (C) 2006 Johann C. Rocholl <johann@browsershots.org>
# Portions Copyright (C) 2009 David Jones <drj@pobox.com>
# And probably portions Copyright (C) 2006 Nicko van Someren <nicko@nicko.org>
... | [
"jjohnson@Jakobs-MacBook-Pro.local"
] | jjohnson@Jakobs-MacBook-Pro.local |
a33b45b686b42f02891fe745b169f339692f91d2 | acdd393c25b32779a637a05b5a5574aaecdda9d6 | /pelican-plugins/more_categories/test_more_categories.py | 41dc4a2241313d4debe74eb3c9a78d38b9c38ad9 | [
"AGPL-3.0-only",
"MIT"
] | permissive | JN-Blog/jn-blog.com | 51f1b8f9011138b3ebf62b93c2ecaba9e2d514bf | 669bf9a9c6813f2b7980792fb137f6718077aea1 | refs/heads/master | 2020-04-02T10:07:31.569949 | 2018-12-30T14:30:49 | 2018-12-30T14:30:49 | 154,325,262 | 0 | 0 | MIT | 2018-12-30T14:30:50 | 2018-10-23T12:36:12 | Python | UTF-8 | Python | false | false | 1,587 | py | """Unit tests for the more_categories plugin"""
import os
import unittest
from . import more_categories
from pelican.generators import ArticlesGenerator
from pelican.tests.support import get_context, get_settings
class TestArticlesGenerator(unittest.TestCase):
@classmethod
def setUpClass(cls):
more... | [
"julien.nuellas@gmail.com"
] | julien.nuellas@gmail.com |
7ae5367511c10e52af51116eab428b8303a2a31f | d385c85c8f462e6908f41fb51e5fb6386a9398a8 | /Desktop/Program/Recursion/1.example.py | ba425c3c2985382113feb9d754c8ae03fdd7a628 | [] | no_license | spiderr7/cls-python | 697b7802c5efa8eeba2d77fa5fd62a3a1e7c7045 | f2a325f858a2f073cb40e5d8e04ce91dba32d28d | refs/heads/master | 2020-09-13T10:39:42.841354 | 2019-11-19T17:00:14 | 2019-11-19T17:00:14 | 222,745,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | def sample(n):
if(n==0):
return
print("Mental Defination")
sample(n-1)
sample(5)
| [
"utkarshrana1@gmail.com"
] | utkarshrana1@gmail.com |
1bcff4b00a2f65e33e1c4164e8d3847607c95b0b | 86464e81ad89833dca7c8d91d2998e4916491516 | /models/train_classifier.py | 95530266ef5fec698c96554d586d0105312d0a42 | [] | no_license | candywendao/Disaster_Response_Pipeline_term2 | 40024151c787a2bbfebfb08e006f83214b94bb33 | 6bc14b311fff9d91a1ddac6fb19e6f99cb750628 | refs/heads/master | 2020-06-08T17:55:17.526018 | 2019-06-22T20:53:22 | 2019-06-22T20:53:22 | 193,277,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | # model training script
import sys
import pandas as pd
import re
import sqlite3
import pickle
import nltk
nltk.download(['punkt', 'wordnet', 'stopwords'])
from nltk.tokenize import word_tokenize, sent_tokenize
from nltk.corpus import stopwords
from nltk.stem.wordnet import WordNetLemmatizer
from sklearn.pipeline imp... | [
"candywendao@gmail.com"
] | candywendao@gmail.com |
3ce5a4ffc463e262f76b00b5dba46dffbf1fdddf | dac55c6d98f7be1ad9d78e23989726d8fbd2c206 | /11_4_XBee_remote/XBee_host.py | d82a2a7d9830ae19b0331060fc944bcff2d5f307 | [] | no_license | AlvinChuang/mbed11 | 4ab35b52e235ec2dfa3424e3d570442027ac354a | 8da9f17ad970bda34bad3dc1a4f81231dea07b96 | refs/heads/master | 2022-08-19T16:03:13.691533 | 2020-05-27T09:05:01 | 2020-05-27T09:05:01 | 267,127,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import serial
# XBee setting
serdev = '/dev/ttyUSB0'
s = serial.Serial(serdev, 9600)
s.write("+++".encode())
char = s.read(2)
print("Enter AT mode.")
print(char.decode())
#s.write("ATRE\r\n".encode())
#char = s.read(3)
#print(char.decode())
s.write("ATMY 0x127\r\n".encode())
char = s.read(3)
print("Set MY 0x127.")
... | [
"alvin870203@gapp.nthu.edu.tw"
] | alvin870203@gapp.nthu.edu.tw |
cc0aeef9b492a0227dcc394fa37b9cff2270fdd8 | ccbe81651c43bb028482429ff855e5690b11c62f | /prob sheet 1/find the sum of n natural numbers..py | a50a22218a56e92267d8ad926613ee8417b70448 | [] | no_license | balakrish2001/Basics | c5613d7e9be5b1836eb68b7fb12db56ee6158395 | dad834f96c2e7a507a86dd4f60ddecb42b08a432 | refs/heads/main | 2023-03-20T17:56:04.920045 | 2021-01-25T17:04:46 | 2021-01-25T17:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | n=int((input("Enter a number:")))
sum=0
i=1
while(i<=n):
sum+=i
i+=1
print(sum)
| [
"balakrish181@gmail.com"
] | balakrish181@gmail.com |
7fc4a1542ea4566dd895b7ca4353106ccf4edc09 | e42d987e9d818c2aeec9a5846b08c2cbb3754d2e | /account/forms.py | b6a90245caf7e6af2ab7d0e11138888b158820c9 | [] | no_license | rachanakafle/Insurance-Agency-Management-System | e5e51dcd6a82d9de312dda29a787ea1156f19f7d | 7d10564c9f7fe31e7a91753799ce3f84a58ea97a | refs/heads/master | 2020-04-21T08:43:03.860258 | 2019-02-06T15:17:34 | 2019-02-06T15:17:34 | 169,427,554 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from account.models import MyUser
class SigninForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget=forms.PasswordInput())
class Meta:
fields = ['username','password']
class SignupForm(User... | [
"rachanakafle32@gmail.com"
] | rachanakafle32@gmail.com |
049c60daccd09762f51324105b89c224b034d34f | 73272de476706ee388eccbfde5fee4ef6f751882 | /board/models.py | 9752c0a8c3845592fc6984b6b0095badb65c720f | [] | no_license | hyunsooDii/travle_web_project | fddb79d65cb20c99094d4e82e94e7ea1d78bb51f | 1b421c09e08a45945bae1562ae4207ea9002c079 | refs/heads/master | 2022-12-15T06:58:05.275705 | 2020-09-04T09:03:19 | 2020-09-04T09:03:19 | 290,417,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | from django.db import models
from django.urls import reverse
from taggit.managers import TaggableManager
from django.contrib.auth.models import User
from country.models import Country
from django.core.validators import MinValueValidator, MaxValueValidator
from tinymce.models import HTMLField
class Board(models.Model... | [
"hyunsoodii@gmail.com"
] | hyunsoodii@gmail.com |
b64c5c7ef5d4612430e94eed3207217217c4c70a | 45899bc085361274946af8645b2b2c8cbd0bbd74 | /df_order/df_goods/models.py | 0f2a386f17083ef482cd4c7253391382caf2a85e | [] | no_license | seasailz/dailyfresh | 11788bcebea119c9b63aea5fa0647c4e3cb72b42 | 3fbd7c1a10fd15144aa8e61c19e57683a195f39d | refs/heads/master | 2020-09-16T20:21:32.563865 | 2017-08-24T16:00:47 | 2017-08-24T16:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | from django.db import models
from tinymce.models import HTMLField
# Create your models here.
class TypeInfo(models.Model):
ttitle=models.CharField(max_length=20)
isDelete=models.BooleanField(default=False)
def __str__(self):
return self.ttitle.encode('utf-8')
class GoodsInfo(models.Model):
gtit... | [
"cjbd1g@hotmail.com"
] | cjbd1g@hotmail.com |
2b893ab99679701df2665531c4264510e106ab7e | 97b0af66e8bbb86aa0665eab05c1930b64fa707b | /evil with decimal number.py | c67b93a5a60c297fd515a74180564b88a3d8946d | [] | no_license | Smrity01/python_codes | ed835061470d1d025856620ed7617fca79c90c03 | 77a8299ac8d8b01b5562def32eeb67626824bfce | refs/heads/master | 2021-09-13T05:34:40.277221 | 2018-04-25T14:06:51 | 2018-04-25T14:06:51 | 103,026,976 | 7 | 3 | null | 2018-03-08T08:01:33 | 2017-09-10T12:18:09 | Python | UTF-8 | Python | false | false | 1,192 | py | def check_evil(number):
'''
Objective: To check whether the input is evil or not
Input parameter:
number: The input number as list
Return value: 'evil' or 'not evil' string
'''
#approach: if frequency of '1' is even then return 'evil'
# else return 'not evil '... | [
"noreply@github.com"
] | noreply@github.com |
0521ef5a14db2218fe8f5cabb17ba95c0b1cb872 | d5e0d9bd803aa88f48df1357f2fc44a7621b152b | /monta_arq240/trata_campos_arq.py | 659c2b59f04d73f113e0f8d544d2627bf0f53947 | [] | no_license | monzanii/Cole | 4b3bd74dc5971e2e8f622890863666b0883d17fc | 2ad7d1c744ecc97368f31324c51250f4f98f64c5 | refs/heads/master | 2020-12-04T17:52:35.594415 | 2020-01-07T00:57:21 | 2020-01-07T00:57:21 | 231,858,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py |
class Trata_campos_arq:
def __init__(self, dic_conteudo_fixo_campo, dic_tam_real_campo, dic_nome_campo):
self.__dic_conteudo_fixo_campo = dic_conteudo_fixo_campo
self.__dic_tam_real_campo = dic_tam_real_campo
self.__dic_nome_campo = dic_nome_campo
def preenche_conteudo_campos(self, ... | [
"monzanii@gmail.com"
] | monzanii@gmail.com |
588590c87831c8b47f4db86aac5f3be992a9b1eb | 4d95050b3321b99196fa6daa3770d2cfac6938eb | /TestCase/suite.py | 218e8a644607f129efc3c5d2977a62bb762ed6fb | [] | no_license | Stone0408/Test1 | 73219a02d7d3798a38bd603de1486aea7c29527d | dca502db8db1bb7c8ce8099cc96af189ea4687bc | refs/heads/master | 2023-03-03T16:57:03.925208 | 2021-02-18T06:53:14 | 2021-02-18T06:53:14 | 339,963,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | #coding=utf-8
import unittest
import HTMLTestRunner
import time
from Common.function import project_path
if __name__ == '__main__':
test_dir =project_path() + 'TestCases'
tests = unittest.defaultTestLoader.discover(test_dir,pattern = 'test*.py',top_level_dir = None)
now = time.strftime('%Y-%m-%d-%H_%m_%S',... | [
"shaojiahua01@163.com"
] | shaojiahua01@163.com |
029ceebf91aa14f84668d02b80b57d0b245d7ffa | 840c35b4ddd9ebedb64a3d1bfd2bb5d79eca246a | /personal_blog/personal_blog/urls.py | aaf032c441ba499ceb3e5ff1635b6c13d5dffb7f | [] | no_license | AAM77/personal_blog_django_only | b632f31e4451ef762c2906b3cc3d4e56ccc68ae3 | 424f8b49ef2d75dd9855b8987a75ebd30501205a | refs/heads/main | 2023-06-23T08:58:34.168563 | 2021-07-24T04:02:43 | 2021-07-24T04:02:43 | 388,972,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """personal_blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"adeel.a.mhd@gmail.com"
] | adeel.a.mhd@gmail.com |
18eb37c2ffe3434f8bcd511d3c748630d8feec5c | d6458a979207e00da6dc653c278b9bfb818ce18d | /Additional Stuff/Medium Stuff/PythonCrypto/crypto9.py | c0eb73e93ad223663400383fdecbc56cad757bcf | [] | no_license | Hackman9912/05-Python-Programming | 61ce7bb48188b4cd3cd8e585480325fdd02e579b | d03a319c952794b2f298a3ef4ddd09c253e24d36 | refs/heads/master | 2020-08-29T14:28:48.403323 | 2019-12-18T21:30:55 | 2019-12-18T21:30:55 | 218,061,276 | 0 | 0 | null | 2019-10-28T14:07:31 | 2019-10-28T14:07:31 | null | UTF-8 | Python | false | false | 454 | py | alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
string_input = input("Enter a string: ")
input_length = len(string_input)
string_output = ""
for i in range(input_length):
character = string_input[i]
location_of_character = alphabets.find(character)
new_location = location_of_character + 3;
string_output = ... | [
"charleshackett89@gmail.com"
] | charleshackett89@gmail.com |
977bc165e5b5c3d63feed928b4459302dc933bbd | 9bee8acec14f2cffaf28dde4ff11fdba41d032df | /Modul8Python_Kel30/main.py | 0e39c554a1413261f5af31a891fc352c3b458685 | [] | no_license | RifkyHernanda/PRAK_DKP_RIFKYHERNANDA_KELOMPOK30 | 74331e8600852da56c02551cf4e9f8bfdae8c096 | c90815184d2ad89337c0933643a566a418c2893b | refs/heads/main | 2023-05-09T02:00:30.792846 | 2021-05-25T14:39:06 | 2021-05-25T14:39:06 | 354,746,004 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,827 | py | from tkinter import *
from tkinter import ttk
from tkinter import messagebox
from ipconf import CheckIP
Ipconfig = CheckIP("",0,0,0,0,"","","","","")
def submit():
clear()
InputIP = stringnama.get()
InputCIDR = stringCIDR.get()
Ipconfig.setIP(str(InputIP))
Ipconfig.ngecekIP()
indeks... | [
"noreply@github.com"
] | noreply@github.com |
059ea9617b1374463ba40351351352a6757e41e7 | 2907402a9b675f4b7f3cababaddfba9604c84141 | /topic_recognition.py | b59ce77c41e0824e554552b261c20d2eded0ddf1 | [
"MIT"
] | permissive | dushesms/Writing-Aid | c9a6476d8860c7e892f1e14c8d6a95931a2da4fa | 45abc68760546d5f1db7f08b47d2f6795a381607 | refs/heads/main | 2023-08-05T10:58:28.624084 | 2021-09-28T09:14:19 | 2021-09-28T09:14:19 | 386,705,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | """
Tfidf model for topics recognition.
There are 15 topics chosen on EAQUALs standards for CEFR levels.
Dataset was created manually.
"""
import pickle
import re
from sklearn.feature_extraction.text import TfidfVectorizer
from nltk.corpus import stopwords
from sklearn.multiclass import OneVsRestClassifier
topic_clas... | [
"59807457+dushesms@users.noreply.github.com"
] | 59807457+dushesms@users.noreply.github.com |
b5631a6b34a3cc98324f7486850ba9eb57bafb8b | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_24037.py | 9b3850dd7618c3e9e86acac4668b6393892f6468 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # Multi-pattern regex in python
<a\s+(?=[^>]*?href="((?:(?!css).)*?)")[^>]*?>(?=[^<]*?(?:support|help))
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
bf9137475e7f0175177e48d16cb80cf89f4c4f5e | 990da93e54784b367f3b435a489a18cc3e8a0af0 | /trees/binary_search_tree_insertion.py | 617670480b739986701ff09eabf5b1d7ad8d8b5e | [] | no_license | tjcdev/leetcode | dcb15614b17afb015c5c9c9e2728f3ace2fdc022 | 441ccff35f0dbd2b7b84cfdf00f3ffd8ef0cb18c | refs/heads/master | 2023-04-21T14:12:55.015507 | 2021-04-20T19:30:14 | 2021-04-20T19:30:14 | 332,500,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | class Node:
def __init__(self, value):
self.left = None
self.right = None
self.data = value
def insert(root, node):
if(root is None):
root = node
return
if(root.data < node.data):
if(root.right is None):
root.right = node
else:
... | [
"tjcartwright91@gmail.com"
] | tjcartwright91@gmail.com |
d22dce48ca2cb6a0918d2c520ce8921c1c480199 | 0c8c798e10696496a276632bf506e5a28a5a7a65 | /Pizza.py | 15378c6f6f8c1f28899fa867f22d7ed973ad5de5 | [] | no_license | Sale3054/CSCI_4448-Browserator | 540db669ec9563bafdd430a1bc3341b140b892ae | 0e74539beb2c58ca3e73ccf28cfe383f9c8075e2 | refs/heads/master | 2020-03-29T10:06:13.846685 | 2018-11-29T17:58:28 | 2018-11-29T17:58:28 | 149,789,426 | 0 | 0 | null | 2018-11-29T10:55:16 | 2018-09-21T16:26:18 | Python | UTF-8 | Python | false | false | 3,199 | py | #
# Base Pizza construction
#
import abc
class Pizza:
"""
Overarching class structure for each Pizza object. Contains the abstract method for prepare-
to be filled out by a factory.
"""
# metaclass for @abstractmethod
__metaclass__ = abc.ABCMeta
def __init__(self, name = None, dough = None, sauce... | [
"noreply@github.com"
] | noreply@github.com |
55ab9e48e4d12c30704c44e0ffd29d87969367d3 | 2812040977f41c4e33a5b17ffde4ff1973be8fab | /classifier.py | 75cc478155385ad0e0ee12070f5ad146e0b0d6c3 | [] | no_license | tuka04/mc906 | 2f72103c8c0dbacb0e89988b8ca564d8f5aefdc3 | 9f0fd0524ebbb59443c6c283b3cfa7505232d074 | refs/heads/master | 2020-05-15T14:18:58.491912 | 2013-07-01T20:46:14 | 2013-07-01T20:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | #!/usr/bin/env python
# encoding: utf-8
# classificacao das mensagens utilizando svm (support vector machines)
from sklearn import svm,metrics #suport vector machine
from sklearn.feature_extraction.text import HashingVectorizer
from numpy import *
class Classifier:
def __init__(self,d,tr,te):
self.training ... | [
"tuka04@gmail.com"
] | tuka04@gmail.com |
c0ec840cf9f280f37d96032bbc82705abbc4bed9 | f35a28ecb2e212ae5861d4bff68012c014debd2e | /vendor/cache/ruby/1.9.1/gems/nokogiri-1.6.0/ext/nokogiri/tmp/i686-linux-gnu/ports/libxml2/2.8.0/libxml2-2.8.0/python/setup.py | 9ce0d8254baef399d10e386c52d07fffa3880e1d | [
"MIT",
"LicenseRef-scancode-x11-xconsortium-veillard"
] | permissive | klaus33/web_app | 11d882e753bf7cef85c6f95310a39ec6493abd33 | 2a219e6c53881ecc429aaa156ff53eb89c4d120b | refs/heads/master | 2021-01-01T18:29:47.229985 | 2013-07-22T15:31:21 | 2013-07-22T15:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,798 | py | #!/usr/bin/python -u
#
# Setup script for libxml2 and libxslt if found
#
import sys, os
from distutils.core import setup, Extension
# Below ROOT, we expect to find include, include/libxml2, lib and bin.
# On *nix, it is not needed (but should not harm),
# on Windows, it is set by configure.js.
ROOT = r'/home/jesus/Do... | [
"baiko33@hotmail.com"
] | baiko33@hotmail.com |
1a76c6c4e51d903d2d0e7a39446a88c9235f1f34 | fa31562bf68db2ad03ab56e58cb3fdf987b08759 | /Ciancoders_prueba/Ciancoders/api/models.py | 3a3f2bb328ceb1353749a0e65a57bb00b0d88e0c | [] | no_license | 17004963/cian_coders_prueba | 6dc29b442b4ea5221137f5ee0d3607f73c6c9f61 | 94b7b6a64145f808da8c44dbac90e83845608753 | refs/heads/main | 2023-02-28T05:44:13.109190 | 2021-02-06T20:21:59 | 2021-02-06T20:21:59 | 335,724,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | from django.db import models
import string
import random
def generate_unique_code():
length = 6
while True:
code = ''.join(random.choices(string.ascii_uppercase, k=length))
if Room.objects.filter(code=code).count() == 0:
break
return code
# Create your models here.
class R... | [
"17004963@gaileo.edu"
] | 17004963@gaileo.edu |
0cf3e8b1f4dccdb26bc504fc2a1e1bb08588490d | 494623968b1ea115ae61fca4e37fee763a5b64ac | /Python_Flask_Web_App/utils.py | 9072c5483ccb2f2acc08ee27b30ae600aeb51f42 | [] | no_license | ClayMav/Contemporary-Programming-Languages | 05f90c191aac2a3711df67414b895a3efdbe0ef2 | df36a032e3d113be99c0bda0ad16eef7b3e930ae | refs/heads/master | 2021-05-06T20:05:24.279247 | 2018-02-19T18:31:35 | 2018-02-19T18:31:35 | 112,271,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | """Utility functions for searchinator."""
import datetime
import functools
import json
from flask import flash, redirect, render_template, session, url_for
from condition import Condition
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S"
"""Expected string format for :class:`datetime.datetime`."""
def load_time(x):
"""Load a ... | [
"mcginnis@claymav.com"
] | mcginnis@claymav.com |
a9700496be274223e96b75a2761f3fa8678de50c | 1767072029090e31f1adb88435d7da9a219d7b5c | /PyNTC/pyntc2.py | cf1c88363d43ce0e24f79c5538c4afa9406d16fb | [] | no_license | jafo2128/network-automation-book | a2d44e638ed1aeb2fddcb801450bcfe444c067a9 | bd0738f8c6e46a9d2120dee73fa98e09449ec9d4 | refs/heads/master | 2022-03-03T19:16:22.421438 | 2018-04-11T04:15:41 | 2018-04-11T04:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from pyntc import ntc_device
import json
ios = ntc_device(host="192.168.99.1",
username="user",
password="user123",
device_type="cisco_ios_ssh")
ios.open()
ios_int = ios.show("show run int e0/0")
print ios_int
| [
"noreply@github.com"
] | noreply@github.com |
4957c2dfdea4282fdac9acb9014529e1c0fcf72c | d48404bd7ec460f3cfaf4a72876733f2071f35cf | /CodeChef/EVENPSUM.py | b528ca9ebe9e926917770038beacac090cbc7bc2 | [] | no_license | barvaliyavishal/DataStructure | 1c015ff6df1aeb08955dd8dd3a989ced8e08d634 | 33f2bb9cb50c15cbb3a018a0b3d20ec9d99c680e | refs/heads/main | 2023-04-02T11:33:54.272237 | 2021-04-07T03:57:54 | 2021-04-07T03:57:54 | 313,028,546 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | def pairs(a,b):
if a==1 or b==1:
return a*b
if a%2 == 0:
a1=a/2
a2=a/2
else:
a1 = int(a//2)+1
a2 = a//2
if b%2 == 0:
b1=int(b/2)
b2=int(b/2)
else:
b1 = int((b//2)+1)
b2 = int(b//2)
return int((a1*b1)+(a2*b2))
t = int(input... | [
"vishalbarvaliya112@gmail.com"
] | vishalbarvaliya112@gmail.com |
6d81457f59277f24752cda040437e62c73dc9ceb | 0a186a6a772a7ba62c28e2cc87c9bfb91075c851 | /노래정리_파일이름바꾸기_linux.py | adc5f6572b847f9d3fdad0f295e9938aab7507d3 | [] | no_license | dustjrdk/- | 80fb75990e43d4db3dfa6e234fe5435e32c1a0c9 | 934a39341f6a0b340cc3ac52bba95b8032bfeeb4 | refs/heads/master | 2021-01-22T04:18:07.483951 | 2017-02-10T05:31:59 | 2017-02-10T05:31:59 | 81,530,015 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 348 | py |
import os
ddir = "\\192.168.0.2\\yeon\\HardDisk\\노래\\마이클잭슨"
old_name = "_"
new_name = ' '
os.chdir(ddir)
list_screen = os.listdir(ddir)
print(list_screen)
for file in list_screen:
new_file=file.replace(old_name,new_name)
print(new_file)
os.renames(file,new_file)
#print(... | [
"noreply@github.com"
] | noreply@github.com |
03722a6aee3545b21f5bc9399bbd2f59dbe8837f | 8e5d01b7aadd865acf81d6f0a197a9c5fe7a36a6 | /main.py | 2cf75402fc30637367d97bae2d32669e66bc2d09 | [] | no_license | Renatkg20/GDP_of_KR | 16448ecc3b469a0dfb04ea02d93fac172b556efa | 0a3f0be4864fd782c10722dfe9d0ff1105dffd94 | refs/heads/master | 2023-04-15T09:42:25.784827 | 2021-04-26T09:05:38 | 2021-04-26T09:05:38 | 361,685,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py |
import requests
import lxml
from bs4 import BeautifulSoup
import pandas as pd
import matplotlib.pyplot as plt
l1 = []
l2 = []
url = 'http://www.stat.kg/ru/opendata/category/2315/xml'
res = requests.get(url)
soup = BeautifulSoup(res.text,'lxml-xml')
titles = soup.find('data').find_all('value')
titles1 = soup.find('da... | [
""
] | |
a5b1c8c29ebdcc6e81b78b01ef9623b07134fa7a | 17aa3e0f6bf81271b1e36f53e10070ba834edb3c | /AIZU_ONLINE_JUDGE/python/code/alds1_10_a_2.py | 392d460620328b7bffdf1194b30946fa1e36000c | [] | no_license | 9ryuuuuu/hobby | dd44590cf30dff341e62d293a48567e404fc5c5f | 7aad7eb1546a7f6d71e6ba9229fd412fb53d3e4e | refs/heads/master | 2020-04-27T23:36:51.168087 | 2019-04-02T08:27:29 | 2019-04-02T08:27:29 | 174,782,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | n = int(input())
MAX = 45
table = [0] * MAX
for i in range(MAX):
# print(n)
if i == 0 or i == 1:
table[i] = 1
else:
table[i] = table[i - 1] + table[i - 2]
print(table[n]) | [
"ruiakirab@gmail.com"
] | ruiakirab@gmail.com |
29441f3f228659d5914fc9740e748282cce34a6f | fc257bc24ec0a524fd10f4967adc31ec21f2effa | /Building/InitialTest.py | 22712f427637eca753731c97c4971b55439aeb48 | [] | no_license | connor-makowski/AnagramSolver | 0c014193b91e1850d63928f7371eaf43a54685b5 | 8081287d74da6aaadbfcf5d17c348bb247ca1ee0 | refs/heads/master | 2020-03-29T00:34:47.026615 | 2018-09-18T20:32:40 | 2018-09-18T20:32:40 | 149,346,184 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | dictionary={'a':["apple","atom"], 'b':["banana", "bat"], 'e':[], 'l':[], 'm':[], 'o':[], 'p':[], 't':[]}
def find(letters):
consider=[]
found=[]
for i in list(set(letters)):
for j in dictionary[i]:
consider.append(j)
letters.append("")
for i in consider:
ileft=i
... | [
"connorman528@gmail.com"
] | connorman528@gmail.com |
ce63955b9b3d6f780694b413010a500e6dac2b1f | ed3435b41e9274dfed3505623e1e6cbc31b3f257 | /chatProgram.py | 696d0e5f4516f1a2ec41786fdb6cb64268117b8c | [
"BSD-3-Clause"
] | permissive | MohamedSeliem/Peer-to-Peer-Chatting-Program | c9d2b58e9df5ea571aa1cb9027c77cf92c7a374d | e3549905832963e0df5a144dc41a980e6f17197a | refs/heads/master | 2021-07-06T01:20:05.248103 | 2017-09-30T16:09:05 | 2017-09-30T16:09:05 | 105,381,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,598 | py | """
/*
* Copyright (c) 2017, University of Louisiana at Lafayete
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copy... | [
"noreply@github.com"
] | noreply@github.com |
2360573e0a5cb29fffd13fe988c7d6f093440ffe | b07a7ef99254fd5cb63287eb9552755e33dc4ff0 | /Project_V4/hypothesisEngine/algorithm/parameters.py | e0085ee952771c214dcf6e4154ac9a4a28f4637d | [
"Apache-2.0"
] | permissive | pavandonthireddy/Website-v1 | dc7912f59fbe50912ac63a3ec93aee9efd17c58e | ec143dcf565da23783803c56c323f0105e74d759 | refs/heads/master | 2021-02-04T02:04:49.703095 | 2020-02-27T19:39:08 | 2020-02-27T19:39:08 | 243,600,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,184 | py | from multiprocessing import cpu_count
from os import path
from socket import gethostname
import os
hostname = gethostname().split('.')
machine_name = hostname[0]
#hypothesis_params = {
# 'START DATE':'2004-01-01',
# 'END DATE': '2018-01-15',
# 'PORTFOLIO': 'US_TOP_500_LIQUID',
# 'NEUTRALI... | [
"35779303+pavandonthireddy@users.noreply.github.com"
] | 35779303+pavandonthireddy@users.noreply.github.com |
3f3a8cd40a0948b7d0077907e73fa4d7a1254100 | e3d9e2444f873a3e08f00b428dd291c4a995057b | /pysrc/server.py | e2b6b985314811ac92337ad15e1178440e582f6d | [] | no_license | SachinMeier/Contacts | f02905f576cbee14c96ba58f31f597b6b901e1b6 | f466cfe0906f557ac83e7dcf6a63472586d8ffcc | refs/heads/master | 2022-07-16T05:25:11.498036 | 2020-05-10T16:56:31 | 2020-05-10T16:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #!/usr/bin/env python3
import socket
HOST = '127.0.0.1' # Standard loopback interface address (localhost)
PORT = 65432 # non-privileged ports > 1023
def write_file(f, data):
f = open("pytest.in", 'a')
f.write(data)
def run_server():
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
... | [
"Pillagr6@gmail.com"
] | Pillagr6@gmail.com |
53c98c8632974b7b1a5f574fe5fb035dda1104df | c4702d1a06640555829b367852138cc93ba4a161 | /dym_res_partner/models/dym_res_partner.py | 31e22a8a0cc57df5c41d49344807163c1b9cd62d | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 31,555 | py | import time
from datetime import datetime
import string
from openerp.osv import fields, osv
from openerp.tools.translate import _
from openerp import api
from openerp.osv.expression import get_unaccent_wrapper
import re
import phonenumbers
from phonenumbers import carrier
from phonenumbers.phonenumberutil import numb... | [
"rizal@portcities.net"
] | rizal@portcities.net |
15f466d20b51d0e199a6bca4759d7a97d12b9d39 | e1aeede7cecf2bdb3317954e042f41810745b980 | /winston/commands/__init__.py | 879f94514a8039ff04a915527499ca075f99746c | [] | no_license | G10DRAS/winston | b0f50822af077d374e864f2eefa559275c673fef | c72c7f77a89f77d1de31cd0f401b3dc836338b36 | refs/heads/master | 2021-01-15T16:04:40.719122 | 2014-02-27T22:31:56 | 2014-02-27T22:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | import re
class Command(object):
"""
Stores a command that is executed by external events such as a voice command,
a change of state or a notification.
"""
# The name with which all commands begin. Can be a word or a regex.
# Example: jenkins, alfred, robot. "Jenkins! Turn on the lights!"
... | [
"contact@nicolasbouliane.com"
] | contact@nicolasbouliane.com |
4e46fc1146171e707de259a46aba0b3f3436bf38 | af0246f2f85121746ea851919cb4ae29bfbf3cf7 | /web_flask/5-number_template.py | b5d1289ccff63834cf0f84a5beff7716c1b9fcc5 | [] | no_license | andreshugueth/AirBnB_clone_v2 | a2a3728e5e351da89896a1abf27432a6c4a552e9 | 2284221834134479d30ebd0a29a5902b1ee2eef3 | refs/heads/master | 2022-12-09T16:11:57.215900 | 2020-09-03T03:32:28 | 2020-09-03T03:32:28 | 286,791,785 | 0 | 1 | null | 2020-08-14T01:49:39 | 2020-08-11T16:17:50 | Python | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/python3
"""
script that starts a Flask web application
Your web application must be listening on 0.0.0.0, port 5000
"""
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def index():
"""display Hello HBNB!"""
return "Hello HBNB!"
@app.route('/hb... | [
"andreshugueth@gmail.com"
] | andreshugueth@gmail.com |
8acc9bc358a8f92477e4d4014cb1f0dd864c69da | 375c87462c4ed200cecce0aeab09c6161ac10dcd | /pwg_ls2/RV/dict_2_changes.py | dd80bde0aefbda7ab8b5fe3967bd41d33ad19f5b | [] | no_license | sanskrit-lexicon/PWG | 2e7ab371ec7e4da43d81d50663b06fa2e2b44806 | d32d701366cff1156b7f7bb0aea8ea27cd7fb7dd | refs/heads/master | 2023-02-07T02:49:53.179915 | 2023-02-03T19:53:25 | 2023-02-03T19:53:25 | 15,903,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | #-*- coding:utf-8 -*-
""" dict_2_changes.py
"""
import sys,re,codecs
## https:##stackoverflow.com/questions/27092833/unicodeencodeerror-charmap-codec-cant-encode-characters
## This required by git bash to avoid error
## UnicodeEncodeError: 'charmap' codec cannot encode characters
## when run in a git bash script.
sys... | [
"funderburkjim@gmail.com"
] | funderburkjim@gmail.com |
db11fda232937227e154ba2606447e655b44cbe6 | ae9b02e1fa88d9c8e28ace5953c695e2e59a8f70 | /phathom/phenotype/celltype.py | 00a7839f83578923c096cae47d86a96bd70beddc | [
"MIT"
] | permissive | chunglabmit/phathom | 32482c3ff776b86dec5c71cbf6c5a41ac40bb110 | 10a4e34e2ebbad5ca4615099cc08c2539c3c2d6b | refs/heads/master | 2022-08-18T20:29:22.950532 | 2022-07-29T19:39:24 | 2022-07-29T19:39:24 | 124,928,433 | 2 | 1 | MIT | 2018-04-16T14:56:08 | 2018-03-12T17:48:05 | Python | UTF-8 | Python | false | false | 13,065 | py | import multiprocessing
from functools import partial
import warnings
import numpy as np
import tqdm
from sklearn.neighbors import NearestNeighbors, kneighbors_graph
from sklearn.cluster import AgglomerativeClustering, MiniBatchKMeans
from scipy.cluster.hierarchy import dendrogram, linkage
from scipy.spatial import Voro... | [
"jswaney@mit.edu"
] | jswaney@mit.edu |
35d4289b0d5b7197676570e63cb452d1d2bfd5cb | be5b91588f198a665160a574e2eba2dd0be84783 | /database/write_nlu.py | 5a4e3c8356059d789dcec0516b42e509f4a727a7 | [] | no_license | swqsd218219/rasa_uncertain_slot | f60f9162cc629552f2deef0fb6cd6ea8cb93ae42 | ec7a0912b9058e3b19acce6ae05b8e871d720141 | refs/heads/main | 2023-03-08T18:13:26.853865 | 2021-03-01T01:23:20 | 2021-03-01T01:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py |
'''
定义模板:
query attribute:
1. what is the cpu?
- what kind of entity do you want to ask?
- server
- please tell me about the ip of the entity
- 1.2.3.4
- 4 cores
2. what is the cpu of the 1.1.1.1?
- please tell me about the entity of the ip
- server
- 4 cores
3. what is the cpu of the server 1.... | [
"zhangmw_play@163.com"
] | zhangmw_play@163.com |
7376a63bba0d810d9b3569b2ade1ee4fa29cff6b | ce92f733e9a79a0aa5359afae370c69fe013b3bb | /univer_db/models/models.py | fe7e54dadf16503a44112bfde687423e0a29d2c7 | [] | no_license | yessenovuniversity/python_univer | afb15fac1328f6e3b9a0d2f7dd1fce69a5be4fd2 | f4000f541bd971c2c1d0c5fab2c0ef22fdd2298b | refs/heads/master | 2023-08-21T23:26:58.545578 | 2021-09-29T13:41:37 | 2021-09-29T13:41:37 | 294,068,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,986 | py | from sqlalchemy import Column, Integer, String, Float, Boolean, ForeignKey, Date, DateTime
from sqlalchemy.orm import relationship
from univer_db.orm import get_base
Base = get_base()
class Speciality(Base):
"""
Модель "Специальность"
"""
__tablename__ = 'univer_speciality'
id = Column('speci... | [
"nauryzbek.aitbayev@yu.edu.kz"
] | nauryzbek.aitbayev@yu.edu.kz |
6dbf65dea55f3575b84c21c3e7a60a933815fa0e | 87b4c1e282782ddfa22df95d8f494322bf2f2fb9 | /Flower Classification with Image Histogram/dataset.py | 1b47f756b06a5dd1afd718f35f291a0afe4c1872 | [] | no_license | janFrancoo/Python-Projects | 34e9515ae167bdca2f8e601c3ccc4bd4a6cb48cb | 875ed126e4adb7cd4c2884660f24d6515086995c | refs/heads/master | 2021-06-26T17:40:47.740967 | 2021-01-31T15:27:25 | 2021-01-31T15:27:25 | 199,189,125 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import os
import cv2
labels = ["Daffodil", "Snowdrop", "Lilly Valley", "Bluebell", "Crocus", "Iris", "Tigerlily", "Tulip", "Fritillary",
"Sunflower", "Daisy", "Colts' Foot", "Dandelion", "Cowslip", "Buttercup", "Windflower", "Pansy"]
def get_flowers(flowers_path, masks_path):
count = -1
masks = []
... | [
"noreply@github.com"
] | noreply@github.com |
7f95dc0c757ee5c602eda0c84f0a8b39f5e022ba | bc181d3e95743e498a1ec0cfbdac369a01d95218 | /apps/accounts/migrations/0001_initial.py | 7daca24efb48c0d09b39887195357f9e09d5df77 | [] | no_license | roman-oxenuk/welltory_test | 09bbbd8502735adb3662318affa3df10ef47f5af | 853dff24bbf38d5c2d6dce75dd5713ab6347a00d | refs/heads/master | 2021-01-21T23:23:55.809175 | 2017-06-23T18:50:54 | 2017-06-23T18:50:54 | 95,241,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
]
operations = [
migrations.CreateModel(
name='User',
fiel... | [
"roman.oxenuk@gmail.com"
] | roman.oxenuk@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.