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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7765791badddd5eb5ca6d8c9a4bc2d036baee7a | 261dfac24ea95253ac630ad0695d97fc63414178 | /setup.py | b3428a79457b67b40b6d896e1bfdd17f4676df62 | [
"MIT"
] | permissive | aliabd/GEM-metrics | 2cbfdab27d9d10da988f2cdb8e7b04efad40498f | 4f5b389c447bcbecb5a407df93ec8c8ace1e9ce8 | refs/heads/main | 2023-04-10T04:26:41.920549 | 2021-03-30T16:09:06 | 2021-03-30T16:09:06 | 353,037,176 | 0 | 1 | MIT | 2021-03-30T14:48:33 | 2021-03-30T14:48:33 | null | UTF-8 | Python | false | false | 1,018 | py | #!/usr/bin/env python3
from setuptools import setup
from setuptools import find_packages
install_requires = []
dependency_links = []
for package in [l.strip() for l in open('requirements.txt').readlines()]:
if package.startswith('git+'):
pk_name = package.split('/')[-1][:-4]
install_requires.appe... | [
"odusek@ufal.mff.cuni.cz"
] | odusek@ufal.mff.cuni.cz |
e0b0c82e0cb6d63eb83dc518df6312878a49e050 | 8ac362dd20ada13d2882c31c491a586b6cc44ed2 | /inventoryanalytics/simulation/stochastic/des.py | 54df9eafd4a3a69df0c3165721dd3afefe880b64 | [
"MIT"
] | permissive | emilio-garcia-ie/inventoryanalytics | 54be13ee63399f231b7a9ccd372ddb9f0583bd0f | dd2a49386441bd51287d08ee73059cac7748c898 | refs/heads/master | 2023-03-17T02:56:46.309779 | 2020-12-27T00:27:37 | 2020-12-27T00:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from queue import PriorityQueue
from collections import defaultdict
def plot_inventory(values, label):
# data
df=pd.DataFrame({'x': np.array(values)[:,0], 'fx': np.array(values)[:,1]})
# plot
plt.xticks(range(len(values)),
... | [
"robros@gmail.com"
] | robros@gmail.com |
cc5fc62c9759d253cf7a93ef0a60d9ff82f46004 | 31722378f12d231d820bc5b68af1575266385f74 | /data_analysis/draw-policy-graph.py | 0c75017cfb43170b5be3c55b4e2122493b73067a | [
"MIT"
] | permissive | msgpo/trade-dst | c8213e820ba89d625bcdcf1d81e04a3769ea8dc8 | b32562545b9ebf7e1ac358466146a15146bcd42f | refs/heads/master | 2022-05-31T01:38:03.614691 | 2020-04-27T17:17:18 | 2020-04-27T17:17:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,987 | py | #!/usr/bin/env python3
import json
import sys
from collections import Counter
from utils.fix_label import fix_general_label_error
EXPERIMENT_DOMAINS = ["none", "hotel", "train", "restaurant", "attraction", "taxi"]
DOMAIN_INDICES = dict()
for domain in EXPERIMENT_DOMAINS:
DOMAIN_INDICES[domain] = len(DOMAIN_INDIC... | [
"gcampagn@cs.stanford.edu"
] | gcampagn@cs.stanford.edu |
4217ffcfb6d14595b20ca22faca926672b8147a9 | 8ae806da6b57a1bbd16e32a96a19cec94501be07 | /recursionDigitSum.py | 6516daba7ed0f9c4cf9b8bf2ffb93b2905e0de76 | [] | no_license | vivek28111992/python-for-algo-and-ds | 9bc6914a527c13380abe0d5193c15cc9d93a8220 | d58dbe55277316ddb07c6947bccc8496396158fe | refs/heads/master | 2021-09-05T11:25:37.981814 | 2018-01-26T22:15:00 | 2018-01-26T22:15:00 | 111,090,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # recursion digit sum
def sum_func(n):
# Base Case
if len(str(n)) == 1:
return n
else:
return n%10 + sum_func(n//10)
print(sum_func(1235)) | [
"pawarvivek29@gmail.com"
] | pawarvivek29@gmail.com |
5ffb1a37ae4eb1db69fe7d02e736def239a0d403 | 729a5764d957ae0e208773222fbdf6bc2da9dcc5 | /origin.py | 12dafc882ebf1d60efc1e4511b7fcb281707d3bb | [] | no_license | KongDeyu1532/Helmet_Face_Detection | 0f198cca6bceae18c65bf63fcfdcefa0722e6eef | b98506fb8c90df9b352ce4133867b87ab86c53e6 | refs/heads/master | 2023-04-30T01:09:44.470828 | 2023-04-17T06:52:14 | 2023-04-17T06:52:14 | 259,599,305 | 3 | 0 | null | 2022-06-22T01:51:10 | 2020-04-28T10:04:01 | Python | UTF-8 | Python | false | false | 39,153 | py | # encoding: utf-8
# author: KongDeyu
import argparse
import time
import mxnet as mx
from gluoncv import model_zoo, utils, data
import telegram
import cv2
import dlib
from PyQt5.QtCore import QTimer, QThread, pyqtSignal, QRegExp, Qt
from PyQt5.QtGui import QImage, QPixmap, QIcon, QTextCursor, QRegExpValidator
from PyQ... | [
"noreply@github.com"
] | KongDeyu1532.noreply@github.com |
3dbaaeb9d0eb0464b6906c098494799fce81d1dc | afd390063f35cda064c5d91a1e5473e3ae273812 | /FineDust to Server/multi_thread_server.py | 16c9627def965acb2dc4309880dcbf38b4fc1ac6 | [] | no_license | devk0ng/Removing_Fine_dust | 7c047080b95d3394364f0b6f75cfe470ddab5963 | dfa3d45e9a53b8adbe04be7cbea83a1ddf60d1de | refs/heads/master | 2022-01-16T21:46:57.890747 | 2019-08-07T08:13:47 | 2019-08-07T08:13:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | py | # multi_threaded server
import socketserver
import threading
HOST = ''
PORT = 9009
lock = threading.Lock() # syncronized 동기화 진행하는 스레드 생성
class UserManager: # 사용자관리 메세지 전송을 담당하는 클래스
def __init__(self):
self.users = {} # 사용자의 등록 정보를 담을 사전 {사용자 이름:(소켓,주소),...}
def addUser(self, user... | [
"gygacpu@naver.com"
] | gygacpu@naver.com |
32156869f1eead248fef32104f8ef2a838ccc3c7 | 58c0604f0ddd38a0cb7a8b8b9fa7c70abdc974b9 | /setup.py | e012c83b78a10d467aca9d7e2f127db0069537ee | [
"MIT"
] | permissive | yohann84L/plot_metric | fffd5cdb8ec11074f0440b1f9f2aa10183cd7924 | 52cae945276b808f829471bd28537d3e7718317c | refs/heads/master | 2023-07-20T02:34:02.330775 | 2022-08-22T08:55:50 | 2022-08-22T08:55:50 | 195,234,816 | 58 | 9 | MIT | 2023-09-08T10:02:26 | 2019-07-04T12:09:45 | Python | UTF-8 | Python | false | false | 940 | py | import setuptools
with open("README.rst", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='plot_metric',
version='0.0.6',
scripts=['plot_metric_package'],
install_requires=[
"scipy>=1.1.0",
"matplotlib>=3.0.2",
"colorlover>=0.3.0",
"pandas>=0.23.4",
... | [
"lereclus84L@gmail.com"
] | lereclus84L@gmail.com |
7d039a870ec27bb80f11107da20eb106f895ae64 | 49ca62eb4bdbe24aa09eaf51a42a5f5abe9c25a6 | /noway/__init__.py | 31a973a69d4347d35c52bb14253d0179f8d63d3e | [] | no_license | emergencybutter/noway | 6c2d49ba2192f338baf37ad993b50f14f0c14f3f | 1ad0a16229b3c29de451a5505a29cf8ccaf35a7d | refs/heads/master | 2020-04-05T18:03:16.311851 | 2018-11-11T22:14:26 | 2018-11-11T22:14:26 | 157,087,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | from .noway import *
| [
"arnaud.cornet@gmail.com"
] | arnaud.cornet@gmail.com |
4bb90a6ca68e445eccebebed337a3cd0bead0c5d | 8d44932bdd08424eed23e886525ca507e4267351 | /back/api/urls.py | 4cbd49cb0a38817f96b192032a63e7db79f88f77 | [] | no_license | Almanova/WebDevelopment-Project | df6ddf74d279744314f11555f71f992c48a44fab | 80e0e0acb929b922597f9447c7543d7c10fff5e2 | refs/heads/master | 2023-05-13T07:24:18.052668 | 2020-04-26T17:04:13 | 2020-04-26T17:04:13 | 253,298,794 | 0 | 2 | null | 2023-05-10T07:00:54 | 2020-04-05T18:01:49 | TypeScript | UTF-8 | Python | false | false | 833 | py | from django.urls import path
from api.views import views_cbv, views_fbv, views_auth
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
path('login/', obtain_jwt_token),
path('sections/', views_cbv.SectionsListAPIView.as_view()),
path('sections/<int:section_id>/topics/', views_fbv.topics... | [
"almanovamadina@yahoo.com"
] | almanovamadina@yahoo.com |
25ae3799ea54378963bca701e93f18238e04cdca | ee162f79b7913c4434666f4b71e275e7310f7fb4 | /efarmer/advertisements/admin.py | c2b95db5a508407ea41c7903de0429e25a223803 | [] | no_license | oskarsakol/eFarmer | a18c72723920b8497bbad29d9c1513cc3f353397 | 83943152471e35e07907a4fc5b2d469d1abbc2ba | refs/heads/master | 2020-09-30T19:44:54.250216 | 2020-02-19T10:23:39 | 2020-02-19T10:23:39 | 227,359,460 | 4 | 0 | null | 2020-01-25T16:34:49 | 2019-12-11T12:20:39 | Python | UTF-8 | Python | false | false | 104 | py | from django.contrib import admin
from .models import Advertisement
admin.site.register(Advertisement)
| [
"sakoloskar@gmail.com"
] | sakoloskar@gmail.com |
fcfa2095ffb3cfdbd3bdfa217f2ca38005c23e47 | 650c5dcf150820ac14d6fac3e10234a27a7827cf | /main/migrations/0063_alter_heroes_group.py | 0a2358ced03c0e5f21871616d605b8583a552ca9 | [] | no_license | Nurik110/django-site | f5713e7f4e9f635b7b81591b7a04ae3754693d0e | 746cd4eae523b93920505357305ccfecc51567e7 | refs/heads/main | 2023-06-15T04:34:33.719427 | 2021-06-28T11:26:21 | 2021-06-28T11:26:21 | 377,363,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Generated by Django 3.2.3 on 2021-06-25 17:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0062_auto_20210625_2312'),
]
operations = [
migrations.AlterField(
model_name='heroes',
name='group',
... | [
"Naltynbek_1998@mail.ru"
] | Naltynbek_1998@mail.ru |
afd1dacedf308d638fdc5ded844094d8eccf879c | 6df76f8a6fcdf444c3863e3788a2f4b2c539c22c | /django code/p69/manage.py | 79b1d93f10fd7ae7bfe5d80fbfe7380a839f69cc | [] | no_license | basantbhandari/DjangoProjectsAsDocs | 068e4a704fade4a97e6c40353edb0a4299bd9678 | 594dbb560391eaf94bb6db6dc07702d127010b88 | refs/heads/master | 2022-12-18T22:33:23.902228 | 2020-09-22T13:11:01 | 2020-09-22T13:11:01 | 297,651,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'p69.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErro... | [
"36443209+basantbhandari@users.noreply.github.com"
] | 36443209+basantbhandari@users.noreply.github.com |
2c1fdd4d765900888e77a4416496947d10c2917e | c61773a6ae76ae258589784ee02135c91d31b5bb | /cars/rental/migrations/0005_auto_20191127_1504.py | ea502731cf548175f627e39d144bbccf9c55ff1b | [] | no_license | burbaljaka/cars_rental | 437e53d3f72d2bf6c0201a46f83de6415ffd8e27 | c83ffd60d9a48bc96b10fc1964c5ef0402a03bd5 | refs/heads/master | 2020-09-16T13:54:21.923668 | 2019-12-04T15:00:03 | 2019-12-04T15:00:03 | 223,789,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Generated by Django 2.2.7 on 2019-11-27 15:04
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rental', '0004_auto_20191127_1459'),
]
operations = [
migrations.AlterField(
mo... | [
"kapitonov.timur@gmail.com"
] | kapitonov.timur@gmail.com |
a4136c31c7cf706db3e0de2db9535461a060f5fe | 9945f91a1a677d8e8175dc33ec2a791bcdf7bc48 | /ImbalancedClassificationMammographyMicrocalcification/mammographyLoadSplitEvaluateModel.py | 7b930a7d28aad25f55dbca31abf7419a5407341f | [] | no_license | AWhelan33/DataScience | 0db84b2ae9194fb7efdbe1252ee507e30b811b14 | 439a244c6652bcea75d290cad8ca3c9e270c8f19 | refs/heads/master | 2021-01-09T16:25:35.338245 | 2020-03-28T18:18:22 | 2020-03-28T18:18:22 | 242,371,293 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | #test harness and baseline model evaluation
from collections import Counter
from numpy import mean
from numpy import std
from pandas import read_csv
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import RepeatedStratifiedKFold
from sklearn... | [
"amiiwhelan@gmail.com"
] | amiiwhelan@gmail.com |
0cd9ff06bd48a6f67a5f13c9351fd7e7da1819c6 | 52e677932d7263d4ef6ea47f0a5f64829def290c | /customimg.py | 658013d2c91b125c74e85ef2c1824bb98cb7f88c | [] | no_license | ianmah/instasched.py | 6a2cea4cf9151e4c46eeee016378fe40b397e308 | 0aff3622e16a015356db19563dbe4bca8c0ff600 | refs/heads/master | 2020-05-01T15:01:24.343790 | 2019-03-26T06:08:14 | 2019-03-26T06:08:14 | 177,535,826 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | from PIL import Image
import math
import io
from io import BytesIO
import requests
class Img:
__image = ''
def __init__(self, img):
if img[:4] == 'http':
imgGet = requests.get(img)
self.__image = Image.open(BytesIO(imgGet.content))
else:
self.__image = Image... | [
"ianmmah@gmail.com"
] | ianmmah@gmail.com |
f866ff506707811bdf06b64d8846de512b2c0264 | d63899ba9ce7f06841ce47b181bea34e1442f595 | /learn-python/learn_python-ex10.py | a698f2bf074981cb6485934ba490563cd9e76d1b | [] | no_license | tillyoswellwheeler/module-02_python-learning | ba419a0428cc0e6e3e3d8951a79bfba9c78891ae | a27a49d050d6526df3db93992f03b7157d8de5e1 | refs/heads/master | 2022-12-25T04:32:59.468417 | 2021-09-04T14:10:30 | 2021-09-04T14:10:30 | 169,213,767 | 0 | 0 | null | 2021-09-04T14:11:10 | 2019-02-05T09:05:14 | CSS | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 29 18:56:00 2018
@author: 612383362
"""
tabby_cat = "/tI'm tabbed in."
persian_cat = "I'm split\non a line"
backslash_cat = "I'm \\ a \\ cat."
#fat_cat = """"
#I'll do a list:
#\t* Cat food
#\t* Fishies
#\t* Catnip\n\t* Grass
#""""
print(tabby_cat)
print(persian_ca... | [
"tilly.oswellwheeler@hotmail.com"
] | tilly.oswellwheeler@hotmail.com |
d77fcded26296c4d07bfe63f33e2846953955337 | 7860ed6d27512c4601400f89c70c6ccbf654ff99 | /claritick/qbuilder/management/commands/temps_rendu.py | 7ba912aab3c9b74f998eb649683160d7549ccc36 | [] | no_license | zehome/claritick | a7e4ed39e535163bc54e58e9611b84122de298c6 | 69290d639df55aba6f17526c97868c2238cd962f | refs/heads/master | 2020-06-03T05:03:22.433046 | 2014-02-07T23:20:37 | 2014-02-07T23:20:37 | 5,178,975 | 0 | 1 | null | 2022-10-26T08:16:16 | 2012-07-25T12:49:27 | JavaScript | UTF-8 | Python | false | false | 3,901 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from django.db import connection
from django.conf import settings
from optparse import make_option
import logging
import time
import datetime
import traceback
from tat.models import MemorisationTempsRendu, ModeleEvenement... | [
"gl@clarisys.fr"
] | gl@clarisys.fr |
524fcd5377baf5b11c259061610ad7632b9376d3 | 14e941b0d3b3b754c1b1476981b1f7a6a00804c8 | /3raEntrega/Prototipo 6/GenGraphic1.py | 18a60988623a9fd3ae215d9658476aad33d47e14 | [] | no_license | JoshuaMeza/CodePain_PE | ca8b4eea8ef0e4d39b1b8d2d540860267bb21189 | b30cf36286b8709c20577ead8b5fb36f7a14a1db | refs/heads/master | 2022-10-15T00:21:49.819120 | 2020-06-09T23:17:01 | 2020-06-09T23:17:01 | 256,617,299 | 0 | 1 | null | 2020-04-20T21:58:51 | 2020-04-17T21:52:22 | C | UTF-8 | Python | false | false | 1,246 | py | """
Author Joshua Meza, Jonathan Gómez, and Irving Poot
Date 20/05/2020
Version 1.0.0
Program who generates the confirmed cases vs actual deaths graphic.
"""
from matplotlib import pyplot
def genGraphic1(casesAmount,deathsAmount):
"""
Function that generates the first graphic
Args:
casesAmount (int... | [
"56287951+JoshuaMeza@users.noreply.github.com"
] | 56287951+JoshuaMeza@users.noreply.github.com |
20ca5110f2ffd78b936237416ee7819f2352fa64 | 869d300c764911d468f5b1e5a98e5d07a27535ab | /python-basics/com/learn/David.py | 77f3346b022c12ee9af0b39c59d63b8154c782ed | [] | no_license | thananauto/python-test-frameworks | df5962996cd9c4cded9355fef6cb2a099c69e3b1 | abaf9d11d8c65f2cd9f916b241898ad11e26bf43 | refs/heads/master | 2022-12-15T18:14:57.745930 | 2019-12-16T13:51:04 | 2019-12-16T13:51:04 | 228,375,228 | 0 | 0 | null | 2022-09-16T18:15:48 | 2019-12-16T11:47:11 | Python | UTF-8 | Python | false | false | 257 | py | from com.learn.Employee import Employee
from com.learn.Cars import Cars
class David(Employee, Cars):
def __init__(self, name , salary):
print('Calling the constrcutor')
def displayChildmethod(self):
print('Print calling the child methods') | [
"r.thananjayan@superp.nl"
] | r.thananjayan@superp.nl |
c5e0bd194a89e25927fb4e9f61e1b29307bb8af1 | b19dfd6a3ba5d107d110fb936de2e91d1d92bb99 | /venv/lib/python3.7/site-packages/Satchmo-0.9.3-py3.7.egg/satchmo_ext/productratings/listeners.py | a8498650d43e8f6a837bc7a63cdc45bc05f17ba3 | [] | no_license | siddhant3030/djangoecommerce | d8f5b21f29d17d2979b073fd9389badafc993b5c | b067cb1155c778fece4634d0a98631a0646dacff | refs/heads/master | 2022-12-13T15:28:39.229377 | 2019-09-28T10:30:02 | 2019-09-28T10:30:02 | 207,240,716 | 2 | 1 | null | 2022-12-11T01:34:25 | 2019-09-09T06:35:36 | Python | UTF-8 | Python | false | false | 3,257 | py | """Utility functions used by signals to attach Ratings to Comments"""
import logging
from django.contrib.sites.models import Site
from django.utils.encoding import smart_str
from django.conf import settings
try:
from django.core.urlresolvers import reverse
except ImportError:
from django.urls import reverse
tr... | [
"ssiddhant3030@gmail.com"
] | ssiddhant3030@gmail.com |
ac4b6fc41af7dbfbb6de4811b8f291b765b914d1 | 96f179d4d8d8cd7eefa2c8b2d85dbf67e1e82434 | /test/infrastructuration/print_components/formatted_text.py | b172a2f110b30808c42d21443f62d46c361f67a8 | [
"MIT"
] | permissive | Zhouhao12345/redcli | e7687f00638a52799e53fe6fede2ae50db635476 | 8a8260b0799e8524d0c339df8dfe6bcfb22f1841 | refs/heads/master | 2021-10-06T13:03:57.752655 | 2021-09-28T06:51:04 | 2021-09-28T06:51:04 | 224,829,460 | 6 | 1 | null | 2021-03-29T21:12:41 | 2019-11-29T10:14:04 | Python | UTF-8 | Python | false | false | 2,233 | py | import unittest
from pygments.token import Token
from redcli.infrastructuration.print_components.constant import PrintType
from redcli.infrastructuration.print_components.base import (
BasePrintComponents,
FormattedTextFactory,
)
class FormattedText(unittest.TestCase):
def test_1_formatted_plain_text(se... | [
"alex.zhou@gllue.com"
] | alex.zhou@gllue.com |
8dda670354d9119e5b7bb22b625403795b8035c8 | c587ac33cbe9496f53e085273d2b18cf744961a6 | /jupyterhub/files/jupyterhub_config.py | a392940f9c91ce39910a7060fc13763a42f733ca | [
"MIT"
] | permissive | nathanhilbert/ScienceAnsible | 606b9157a657c99e6f8c9b3e6453284f976afe21 | cc12ebf153b8d186e31e6c1361fb024561a35759 | refs/heads/master | 2021-01-17T18:30:50.311788 | 2016-10-20T13:58:44 | 2016-10-20T13:58:44 | 71,468,400 | 0 | 0 | null | 2016-10-20T13:58:44 | 2016-10-20T13:54:40 | Python | UTF-8 | Python | false | false | 14,815 | py | # Configuration file for jupyterhub.
#------------------------------------------------------------------------------
# Configurable configuration
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# LoggingCon... | [
"nathanhilbert@gmail.com"
] | nathanhilbert@gmail.com |
386b0f81ec45566dff962f1a32e176f4dffe47c5 | 747de538fb8ffc535a5d107cb5852c885da451b9 | /tests.py | a39763e692dfb6cc2f993799b8207ea7e8561a3c | [] | no_license | NilVidalRafols/iGNNspector | 0a608ff2aa6a003a6ae22105e286db6023841bcb | 3d8742e20a5df0606fe201440fe4c382350f68a6 | refs/heads/main | 2023-06-05T09:51:00.840402 | 2021-06-30T03:43:57 | 2021-06-30T03:43:57 | 346,396,589 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import sys
from ignnspector import Graph
# from tests import custom_studies_test
# from tests import time_test
from tests import pyg_builder_test as b
b.main()
| [
"NilVidalRafols@github.com"
] | NilVidalRafols@github.com |
edf4eb25316ca438a6a3f65240a0e6680a163702 | 9958136f29a0c80c7ab64370b987e3ecb4bc178b | /other_tasks/GümüşBar.py | 915c159143efc8a313511dd5f3abb8652e1bfd33 | [] | no_license | yasinalp/MMOPytautoGUI | 9c8f06bbb707d8c43b2469ea46f85c7dedca324c | ec0c321ba6bbbe77420b7612c5166f0cab508cd1 | refs/heads/master | 2022-10-22T07:00:05.216298 | 2020-06-09T13:01:55 | 2020-06-09T13:01:55 | 270,980,799 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import pyautogui
import time
rgb = pyautogui.pixelMatchesColor(31, 615, (0, 55, 132), tolerance=5)
while rgb == True:
pyautogui.hotkey('ctrl', 'win', '1')
time.sleep(1)
rgb = pyautogui.pixelMatchesColor(31, 615, (0, 55, 132), tolerance=5)
time.sleep(1)
pyautogui.moveTo(1250, 400) # Çanta2
time.sle... | [
"noreply@github.com"
] | yasinalp.noreply@github.com |
19b4fb325defbf324d6a956531086279389ef8f2 | 7508021d39ddb94dd74fb07106b4a649de848ec0 | /member/migrations_old/0007_auto__add_field_person_other_club__add_field_person_nfb_membership__ch.py | 2ea1fa84772e6a3cf493de2a73562e4ba8aa20a4 | [] | no_license | cschaffner/crunchsite | 36c97a22a27c85a5e9450a90c57c5099f00db5bd | 209b1f528d14e6cbf7a3bd1a60c253fb5ecfdc40 | refs/heads/master | 2021-01-01T18:06:27.873728 | 2016-06-22T20:32:32 | 2016-06-22T20:32:32 | 21,440,344 | 0 | 0 | null | 2015-04-15T19:48:42 | 2014-07-02T21:03:28 | Python | UTF-8 | Python | false | false | 8,392 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Person.other_club'
db.add_column(u'member_person', 'other... | [
"huebli@gmail.com"
] | huebli@gmail.com |
0304faa382e20e28438cce8b9ede88b3c4392faf | 0c55e0094bf127d7753765115720a180cc01f60f | /pages/process.py | ed1679f32789e9d4806f9d1206f3401ebbfdb061 | [
"MIT"
] | permissive | TimTree/vgsales-project | bbfb4f13c6acc9125e7656f68a8e3a7ea31c63e5 | 5a6452754dab419d6e9a0bfc4c8df0b9240b6e6c | refs/heads/master | 2021-06-26T20:14:48.334627 | 2019-11-01T21:34:18 | 2019-11-01T21:34:18 | 216,612,469 | 0 | 0 | MIT | 2021-03-20T02:07:07 | 2019-10-21T16:17:27 | Jupyter Notebook | UTF-8 | Python | false | false | 3,971 | py | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from app import app
column1 = dbc.Col(
[
dcc.Markdown(
"""
## Process
This web app is an assi... | [
"TimTree@users.noreply.github.com"
] | TimTree@users.noreply.github.com |
a15db1a5d70eecd1cee3696b8edbe078ca8c6be4 | 2290d076a66d6f93b8020990f188e5c72378e75d | /Test_Sorting/sorting_algorithms/select_sort.py | fe449fa4305a1ae21805d9996163ed7439236fd9 | [] | no_license | piotr-kalemba/Test_Sorting_Algorithms | e7dd8328c3b679d3f160abf3444f3b157ed4b822 | 34fa7b21e4e35c4907a5d4302547f9d88996eb95 | refs/heads/master | 2020-05-29T15:05:30.242348 | 2019-07-08T12:03:25 | 2019-07-08T12:03:25 | 189,212,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def swap(a, i, j):
a[i], a[j] = a[j], a[i]
def select_sort(a):
for i in range(len(a)):
j = i + a[i:].index(min(a[i:]))
swap(a, i, j)
def sort_method(a):
select_sort(a)
return a | [
"piotr-kalemba@wp.pl"
] | piotr-kalemba@wp.pl |
808be79d3703bc7fc250ae8e6a0c2921d71a56a9 | d1d7d54a41f62566826bb23815920408dea586fd | /LAB 2/20.py | 4d3b60bb2df3b6ac936078f89a8e56cb065f1f59 | [] | no_license | errordube/Python-Lab | 0c2833a6318dd6f25e4ab8c637b577f1b103c406 | f941483779afc4c51dd7654cfa54a6e922907b16 | refs/heads/master | 2020-04-07T23:48:59.119376 | 2018-11-23T11:59:07 | 2018-11-23T11:59:07 | 158,826,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | def computeHCF(x, y):
if x > y:
smaller = y
else:
smaller = x
for i in range(1, smaller+1):
if((x % i == 0) and (y % i == 0)):
hcf = i
return hcf
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
pr... | [
"noreply@github.com"
] | errordube.noreply@github.com |
71071f1ea11e242f5b4f263704aa139f4f55ffd3 | f53a511da00ef2cd7e8d84afabe63cefee789078 | /common/forms.py | 51c2436558c163b045ea32581116c0162070c327 | [] | no_license | ffkirill/vertigo_billing | 702f3ef99ffdd5ff8789da208ed22bc3d4b92ef5 | 68910792d489ad121eedf97f62790e35aba1373f | refs/heads/master | 2016-08-07T08:25:20.193071 | 2014-06-27T17:22:27 | 2014-06-27T17:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from bootstrap.forms import BootstrapModelForm, BootstrapMixin
class VertigoModelForm(BootstrapModelForm):
def __init__(self, *args, **kwargs):
super(VertigoModelForm, self).__init__(*args, **kwargs)
for field in self.fields.values():
field.widget.attrs['class'] = 'form-control'
clas... | [
"ff.kirill@gmail.com"
] | ff.kirill@gmail.com |
58307de2922536d58c10778f26d70f420d9753bf | fc11922744718ffeea7b3ee1985370dfc709d4b1 | /norfair/drawing/fixed_camera.py | 6c04906323015695f4341655393a3ea19d06e91e | [
"BSD-3-Clause",
"GPL-1.0-or-later"
] | permissive | tryolabs/norfair | cf33877d0d413bd37d89d9b238987a153974ac19 | 9b315b4cfa5f9cf145f068a21a2b7673703ac9e3 | refs/heads/master | 2023-08-27T02:07:39.995017 | 2023-05-15T21:21:45 | 2023-05-15T21:21:45 | 276,473,370 | 1,953 | 206 | BSD-3-Clause | 2023-09-12T11:08:58 | 2020-07-01T20:15:44 | Python | UTF-8 | Python | false | false | 5,963 | py | import numpy as np
from norfair.camera_motion import TranslationTransformation
from norfair.utils import warn_once
class FixedCamera:
"""
Class used to stabilize video based on the camera motion.
Starts with a larger frame, where the original frame is drawn on top of a black background.
As the camer... | [
"javier.berneche@gmail.com"
] | javier.berneche@gmail.com |
51e03633507defc0725e3ab236f40f65f6320bea | ad734329f8ed827443019cbff24670de931b3e40 | /healthtracker/questions/forms.py | c69b8cbfa01d2be7804dfc5c38178db44b6b7194 | [] | no_license | ihodes/healthtracker | d2739cfb5ae426b74384370d6fd489dc5046eabc | 3c8c00b3d65692200382d924cc7849c48a665cf5 | refs/heads/master | 2021-01-10T09:46:03.244970 | 2015-01-26T03:41:46 | 2015-01-26T03:41:46 | 8,586,482 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | # -*- coding: utf-8 -*-
import flask
from flask.ext.wtf import Form
from wtforms import TextField, HiddenField, IntegerField, BooleanField, validators
class GreaterThan(object):
"""
Compares the value of two fields the value of self is to be greater than the supplied field.
:param fieldname:
The ... | [
"ihodes@mac.com"
] | ihodes@mac.com |
224c9864923e0183cc772f1f8d8bba53720fc038 | 265e58bd08dfb6989d7d4fcff38e0fcf6c51ac27 | /Programas Python/Password(4).py | ab900be1daf03049668a2a01a9ab86570a193ec7 | [] | no_license | EduardoMSA/Proyectos_ISC_ITESM | 34522a823c10283d6c3ff423689ebe5e9aa76faa | 303711d741e4f1be38db0c76f2084450a7349e64 | refs/heads/master | 2020-05-25T17:03:12.950148 | 2019-05-22T01:05:00 | 2019-05-22T01:05:00 | 187,900,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py |
# coding: utf-8
# In[13]:
def Password(s):
for i in range(len(s)-1,0,-1):
if (s[i-1] != s[len(s)-1]) or (s[0]!=s[len(s)-i]):
continue
prefix = s[0:i]
suffix = s[len(s)-i:len(s)]
if prefix!=suffix:
continue
obelix = prefix in s[1:len(s)-1]
i... | [
"noreply@github.com"
] | EduardoMSA.noreply@github.com |
74f01619015cd76cf6857f2b6b627930247698b7 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/qichamao_cmpInfo_20210202185034.py | 23fa2ee5853d61c604c22d4c9f7af2ab73f9ba9b | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,309 | py | import requests
from bs4 import BeautifulSoup
import time
import csv
import pandas as pd
import numpy as np
# login = {'user':'13710149700',
# 'password':'123456'}
# 使用的网站是企查查
# requests.post('https://www.qichamao.com',data=login,headers=afterLogin_headers)
afterLogin_headers = {'Cookie':'qznewsite.uid=y4es... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
ccd8e606272604a00cf077ced256354b41d45c2b | 350ea74735002ddeb22b6c8a6fa0dc7628bc2451 | /engineer/unittests/config_tests.py | f2c87e033b667113f7c6cec2a6d953a9411bd9dc | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pridkett/engineer | 576b205c534ed0a9c81b44b3436f6610d870ccdc | 2d0227f65fbd977cb84f138c043cdbf8f6ab5351 | refs/heads/master | 2021-01-18T05:42:25.439204 | 2012-12-06T20:47:51 | 2012-12-06T20:47:51 | 7,017,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | # coding=utf-8
import logging
import os
from path import path
from testfixtures import LogCapture
from engineer.log import bootstrap
from engineer.plugins import load_plugins
from engineer.unittests import CopyDataTestCase, SettingsTestCase
__author__ = 'Tyler Butler <tyler@tylerbutler.com>'
test_data_... | [
"tyler@tylerbutler.com"
] | tyler@tylerbutler.com |
de001f929d93ab043a3ecef62cd39654249ae9ba | f8a4fe5da0db0f857f70565930b439ea372ac945 | /pbb/views/__init__.py | 3104ccf92b8307f8b15679cfa6f241ef09f9488b | [] | no_license | aagusti/opensipkd-pbb-old | 27dadf7526277662ae54179806f32d1e2b0926b5 | 333a0dc9dc58d0c0666386d7cbfe7a9a8a0e5096 | refs/heads/master | 2021-05-01T21:30:45.407063 | 2015-12-13T16:27:41 | 2015-12-13T16:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,236 | py | from datetime import datetime
from pyramid.view import view_config
from pyramid.httpexceptions import (
HTTPFound,
HTTPForbidden,
)
from pyramid.security import (
remember,
forget,
authenticated_userid,
)
import transaction
import colander
from deform import (
Form,
ValidationFailure... | [
"aa.gustiana@gmail.com"
] | aa.gustiana@gmail.com |
3c9f7c4c6c272f5e17c9724a399749a113eaf730 | c9b7782e6464d7d26e46825232daa51f41e2cd7b | /lista.py | f5cca0d01718a3f20a98e4c03f6f5e7999b5abd9 | [] | no_license | A01377832/Mision_06 | ea4a4d067350748340c5bb2432d3d6e972cb90e9 | 9021e0bf5c762250f7231e323ecf408c1e0743d7 | refs/heads/master | 2022-09-02T23:14:40.294809 | 2020-05-29T20:56:32 | 2020-05-29T20:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | #Autor: Ana Fernanda Martínez
#Ejercicio con listas
#Ejercicio 1
def recortarLista(lista):
if len(lista)<=2:
return []
nuevaLista= list(lista)
último = nuevaLista [len(nuevaLista)-1]
nuevaLista.remove(último) #Elimina el último dato
primero = ... | [
"noreply@github.com"
] | A01377832.noreply@github.com |
d5b42b93b8afa5614f86641bad57d66c9d3db2c9 | ed8e842c9813ccaf9eeef9b7446294ff2ac0716a | /cadpy/timetable/migrations/0005_auto_20200910_1915.py | 870699b069c57d19712b453273f706bea95f4319 | [] | no_license | shanesoysa/CAD | 89353e1dfa6a0b1f4074f23bc3c57cb41cfd28ec | af32baa5f4b15ce990a97bc40ee561bd7c7ff40a | refs/heads/master | 2023-04-14T05:27:49.879339 | 2020-10-12T18:29:26 | 2020-10-12T18:29:26 | 286,243,466 | 2 | 0 | null | 2023-04-10T07:44:58 | 2020-08-09T13:34:20 | HTML | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.1 on 2020-09-10 13:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timetable', '0004_auto_20200909_1511'),
]
operations = [
migrations.AlterField(
model_name='programme',
name='programm... | [
"rehani44perera@gmail.com"
] | rehani44perera@gmail.com |
8920cfdf3f6ac9451b85fb30a81bb9da93c0f5fb | 0022232ab0dc5382d596581357ffaaad16b526cc | /infra/backup.py | a2c6a52beba1706b7c0f4e36e40a923d567a1c30 | [] | no_license | dr-natetorious/aws-emr-hive | 1806231f9c2877629b361a3a38615c0c46d4878b | 7ec8483e8fb270c1f7fe034780b55e4cd37485d8 | refs/heads/master | 2023-04-19T04:09:36.162220 | 2021-04-29T22:11:02 | 2021-04-29T22:11:02 | 362,522,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | from typing import List
from infra.landing_zone import ILandingZone
from aws_cdk import (
core,
aws_backup as backup,
aws_iam as iam,
aws_kms as kms,
aws_sns as sns,
)
class BackupStrategyConstruct(core.Construct):
def __init__(self, scope:core.Construct, id:str, landing_zone:ILandingZone, **kwar... | [
"nate@bachmeier"
] | nate@bachmeier |
2f7ac23001956b4c1523aab7ac6226d2da155d0f | db1aabc54998f99b9d77aafad167265c92394593 | /hw13_train.py | a925acab2587f2d697d507b845c554d074c471de | [] | no_license | Stanwang1210/ML_HW13 | 02c252deff002f9272c3f088940c614f4b6d88be | 0f3863781f0c5449116868ea2aef191d7a7576c8 | refs/heads/master | 2022-11-06T15:08:22.125551 | 2020-06-30T06:55:14 | 2020-06-30T06:55:14 | 273,843,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146,116 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 30 14:15:50 2020
@author: 王式珩
"""
import sys
workspace_dir = sys.argv[1]#'HW13_Data'
model_path = sys.argv[2]
"""接著我們把 dataset 的檔案解壓縮
因為檔案非常大,要等一下子,可以先執行解壓縮,同時看一下 model 的部分程式
"""
#!tar -zxvf "{workspace_dir}/Omniglot.tar.gz" -C "{workspace_dir}/" #這行會印出解壓縮的所有檔案,因為很煩所以我... | [
"ch995308@gmail.com"
] | ch995308@gmail.com |
b6aae62636e47dfa3e6947450b42fa9406b95b58 | 818d3556aaf830f7a0711dea79c44f22a5d6a69e | /catalog/admin.py | 0f7b15d1b76d9b889477e8d80eda953e19129a17 | [] | no_license | kelyip99/django_local_library | f3b1580535f811494e4332e5bf6edfa1302f985e | 1f3fbcc247ba606f1fa872b2d3ceb353e4d5aa59 | refs/heads/master | 2020-05-30T11:12:11.991642 | 2019-06-01T06:27:38 | 2019-06-01T06:27:38 | 189,693,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from django.contrib import admin
# Register your models here.
from catalog.models import Author, Genre, Book, BookInstance
#admin.site.register(Book)
#admin.site.register(Author)
admin.site.register(Genre)
#admin.site.register(BookInstance)
# Define the admin class
@admin.register(Author)
class AuthorAdmin(admin.Mo... | [
"kelyip@gmail.com"
] | kelyip@gmail.com |
320d64cb2e3c2d21af72fd2be18bd590d13d625b | e0e948d55f8db8a6fcacd3ab2a7e0d1497a4e716 | /file_instance.py | c2dc80e103466be521531bfa102e04b16fa701d9 | [] | no_license | jordsti/sufs | 11f8c8f5f714761f3884675b8f63c88229cc25cb | b1838972e08777678587c2c717db11eb023f00ea | refs/heads/master | 2016-09-06T21:12:35.329764 | 2014-07-21T22:02:45 | 2014-07-21T22:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | __author__ = 'JordSti'
import network
import block
class file_block(block.block):
def __init__(self, parent_hash, block_id, data=None):
block.block.__init__(self, parent_hash, block_id)
self.data = data
self.length = len(data)
class file_instance:
(DefaultBlockSize) = 1024
def... | [
"jord52@gmail.com"
] | jord52@gmail.com |
273b210bcebf54dd3ed4b1884abd6bb9070894cb | ec7c4148725d68c7fe246619a422aeb1d7719d1e | /pyshadowsocks/protocol/shadowsocks/client.py | 50b8ce6f92e6d807769017f7d80d38867dfdaf5c | [
"MIT"
] | permissive | FTwOoO/pyShadowsocks | a1ff33796f327ebd7eba29ff910b9650143d1dd9 | 452323e30c4b97d322cbb67e9bbc7c4549e67b5f | refs/heads/master | 2021-01-18T00:00:28.969382 | 2020-12-08T12:37:47 | 2020-12-08T12:37:47 | 53,716,642 | 21 | 7 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: booopooob@gmail.com
#
# Info: asyncio - Stream<https://docs.python.org/3/library/asyncio-stream.html#asyncio-tcp-echo-server-streams>
# - Transport<https://docs.python.org/3/library/asyncio-protocol.html>
#
from protocol.COMMON.common_client_re... | [
"booopooob@gmail.com"
] | booopooob@gmail.com |
a7cbe793db0ef9035c8f238811ce432679915a9c | 001ee3277f57519d1639aa7702724232c1c4e948 | /multipage_backup/app_pages/app3.py | 1cffbceaab49f46c3814e92f1b8c79e4fb9dac48 | [] | no_license | kestefon/dev | a18c33e18a8ee8ffe41349b3d8441b28fead9b64 | 06f5045aa051e01eae1d794a3292c5e1d2292e42 | refs/heads/master | 2020-04-07T04:08:18.964640 | 2019-03-14T04:28:28 | 2019-03-14T04:28:28 | 158,041,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
layout = html.Div([
html.H3(children="App 3"),
dcc.Link('Go to App 1', href='/page-1'),
dcc.Link('Go to App 2', href='/page-2'),
dcc.Link('Go to App 3', href='/page-3')
])
| [
"kestefon@gmail.com"
] | kestefon@gmail.com |
55ac6d7265c63689a96ee072219e7ee700d94fa1 | eae704ccddad3e7774b8de47e6620aa55706be97 | /Capture.py | 56ea8be4a12733ccf1bdd3f8384d5d7b559e5203 | [] | no_license | mixify/Ptolemy | 32b5478169c43571107d4cf279d71837eb8d37ec | 682d5c6c30f58ccfddda8ad3439c136d55070e75 | refs/heads/master | 2020-04-27T17:36:40.288571 | 2019-06-18T12:31:13 | 2019-06-18T12:31:13 | 174,528,644 | 3 | 0 | null | 2019-03-09T09:18:28 | 2019-03-08T11:48:06 | null | UTF-8 | Python | false | false | 796 | py | import numpy as np
from PIL import ImageGrab
import cv2
import time
def process_img(image):
original_image = image
##convert to gray
processed_img = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
##edge detection
processed_img = cv2.Canny(processed_img, threshold1=200, threshold2=300)
return proces... | [
"ohsg0315@naver.com"
] | ohsg0315@naver.com |
52b20659db76ef82f748aba5040175eb212060a5 | 57094f0d09fd3e74eeb511e94400c3ec97051ad3 | /Quax_dev_archive/integrals_dev/tei_trials/teis_trial2/custom_boys/primitive_trial2.py | b6f5e70300c1b4aa596fff3f12bbfd0543cd8f18 | [] | no_license | adabbott/Research_Notes | cccba246e81065dc4a663703fe225fc1ebbf806b | 644394edff99dc6542e8ae6bd0ce8bcf158cff69 | refs/heads/master | 2023-05-12T20:26:58.938617 | 2021-06-02T17:15:35 | 2021-06-02T17:15:35 | 119,863,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | import jax
import jax.numpy as np
import numpy as onp
from functools import partial
from jax.config import config; config.update("jax_enable_x64", True)
_float = {onp.floating, jax.dtypes.bfloat16}
def boys(x):
return boys_p.bind(x)
boys_p = jax.core.Primitive('boys')
# evalutation rule of primitive
def boys_eval... | [
"adabbott@uga.edu"
] | adabbott@uga.edu |
c236f001913a5f71151ca7fa4dfda4d570104b86 | 42b71380ef5ea0fe904127bef483d7854facbd68 | /blog/models.py | 0eb6108265978aa2533da7c273d1edf8c25e73a8 | [] | no_license | akash2415/my-first-blog | 86247b78ca35e1d1fe9eb859a73e9becdfcac3bb | f653dbaa8018f5c0175e43138f7251e33e1ab526 | refs/heads/master | 2020-03-14T03:57:51.272942 | 2018-05-30T17:00:31 | 2018-05-30T17:00:31 | 45,772,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.now)
published_date = models.DateTimeF... | [
"akash2415@gmail.com"
] | akash2415@gmail.com |
a460fa5c367496aefb344eb50f9975890e0e03f5 | c1eb833c4164b6d411cecc2d18edb959971b1395 | /apps/operations/migrations/0001_initial.py | b93de47e36fbf0bc576c69924e7fada22253fd8c | [] | no_license | Ylrving/Django_sxonline | 90c848fdf36534509d7f75cd4bd5d4ee5587a95d | 5f360ae2db59960e21793fa4a79e2a63892c038d | refs/heads/master | 2020-05-23T22:53:08.894486 | 2019-05-16T09:00:04 | 2019-05-16T09:00:04 | 186,981,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,393 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-05-08 14:07
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"670823709@qq.com"
] | 670823709@qq.com |
06374d8b6babfcb333152e22478b38382e54f59b | ee1d3b46c1d5bfe3b262be15ee747b7ab16c722a | /random_problems/delete_str_repeats.py | 0e43924e2b66ff06b3778a6a19f75da0ce7e56ac | [] | no_license | razzlepdx/practice-algorithms | e45a21a061ebe02ff88c2c5c944c5cad3f91207e | ef8c5c5ea2340d698aafcd6f42b6153019428e24 | refs/heads/master | 2020-03-06T20:45:39.684838 | 2018-05-17T05:30:17 | 2018-05-17T05:30:17 | 127,061,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | '''
QUESTION: Given a string as your input, delete any reoccurring character,
and return the new string.
'''
# strategy 1 - iterate over string, utilize dictionary
def delete_repeat_chars(phrase):
""" Given a string, returns a new string that contains only the first
occurance of each letter. """
final_st... | [
"rwilson.or@gmail.com"
] | rwilson.or@gmail.com |
5a6d4472e96309412ab947849c3e578304dea3cd | 12d6e7075a8624047e78c719b1a0f2c81c08f842 | /Python/3sum.py | 6a2aa24c0e9aa76bd40b44e144a60195dad0def7 | [
"MIT"
] | permissive | gitPratikSingh/LeetCode-Solutions | 5b0e98223b829f968a77fa0053bcc67cd8250b0e | 0d86b9a6dccdabd0eb951095a736e729eb1080a2 | refs/heads/master | 2021-01-25T11:14:25.071566 | 2018-06-17T06:31:18 | 2018-06-17T06:31:18 | 123,382,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | class Solution:
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums.sort()
res = []
for i in range(len(nums)):
if i>0 and nums[i]==nums[i-1]:
continue
j=i+1
k... | [
"noreply@github.com"
] | gitPratikSingh.noreply@github.com |
b147fc402feea3e90f5771b924a0345cdfc6a316 | 73f5051a5413f9f82229421d50d5ae3af075a395 | /openai/mybalance.py | 9cd38cf7c1cbc1fad5af839f4c7966cf8d7c86d2 | [] | no_license | flaska/tensorflow | 9a2704334a08b97aaddaaece9b28356f79800f43 | 0606858d3e9a0bfc1c2e46da19645709ccd8a023 | refs/heads/master | 2021-09-07T22:08:38.786701 | 2018-03-01T21:24:24 | 2018-03-01T21:24:24 | 116,314,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import gym
import random
import numpy
import tflearn
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.estimator import regression
from statistics import mean, median
from collections import Counter
LR = 1e-3
env = gym.make('CartPole-v0')
env.reset();
goal_steps = 500
score_requ... | [
"jakub.flaska@nih.gov"
] | jakub.flaska@nih.gov |
4c8cb1e79b3b034781b6d1a4bfdeb60f2c91a057 | 63432112bb1f72465e04771dbdabb050a44ce025 | /eventanalyzer/management/commands/reportsexecute.py | ce93a426931724b598b16ca398b7d2523dbc3333 | [] | no_license | MichalMaM/Django-event-analyzer | 1e0b9f4a384ee6bf54070941959969dbb90d3958 | e2181b0dbbb16c6a4748c94bbc5197cc62aca2ea | refs/heads/master | 2021-01-01T19:23:54.018055 | 2011-04-20T09:13:39 | 2011-04-20T09:13:39 | 1,053,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | """
This file execute reports that are saved in db
"""
from django.core.management.base import BaseCommand, CommandError
from eventanalyzer.jobs import create_reports
class Command(BaseCommand):
args = '<>'
help = 'execute saved periodic reports'
def handle(self, *args, **options):
"""
execute save... | [
"michal.dub@centrumholdings.com"
] | michal.dub@centrumholdings.com |
ef48691497b882b63085622f491b55a4f665df1c | c6f06ee1506c064c12ba55d7a90f4f148fd5127a | /flask-api/app.py | 574718689dc4432b1e048d4e67dd954c77db1ef2 | [] | no_license | ashleylobo/Restaurant-Recommendation | 2fc6f0168c8c038a4759d0895674e3bbe2cb3cdf | 6e1251515e1fe98121070b77e650fa068a056b0e | refs/heads/master | 2022-12-10T21:48:23.125071 | 2019-04-21T17:53:55 | 2019-04-21T17:53:55 | 179,105,307 | 0 | 0 | null | 2022-12-08T04:56:41 | 2019-04-02T15:18:03 | Jupyter Notebook | UTF-8 | Python | false | false | 2,388 | py | import flask
import os
from flask import jsonify, request
from flask import flash, redirect, url_for, session
from joblib import load
from flask_cors import CORS, cross_origin
import requests, json
import pandas as pd
import requests
predictions = pd.read_csv("predictionApi.csv",index_col=0)
prof = pd.read_csv("prof... | [
"yenwiikae@gmail.com"
] | yenwiikae@gmail.com |
3a31fc2dd4edca530b34791eb9d6e5597e8e55b0 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/services/services/ad_group_feed_service/transports/__init__.py | 32e70d411d86385df4f1f48cce1526a3dd19af67 | [
"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 | 1,051 | 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 |
932ec679b52ef439e98647e518026b2e061da703 | c13e453358cc87050fd196319576fbc392fbeee3 | /Generator/genProgramming/p10.py | 125b038e6a3c2850db9e16eb8de2b75cb30d797f | [] | no_license | ChrisJaunes/generating_test_paper | 4eabcc60a28318ec24901e220a268e0dccaf69ce | e29eb725331cea807b3aeef908ab9c9e552b0ec4 | refs/heads/main | 2023-04-22T18:44:27.629498 | 2021-05-11T08:47:56 | 2021-05-11T08:47:56 | 362,047,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,320 | py | import random
import string
from sample import ProgrammingProblemDesc, ProgrammingProblemSTD
def generatorProblemDesc() -> ProgrammingProblemDesc:
return ProgrammingProblemDesc("将数字用字符代替", """
给你一个下标从 0开始的字符串 s,它的偶数下标处为小写英文字母,奇数下标处为数字。
定义一个函数shift(c, x),其中c是一个字符且x是一个数字,函数返回字母表中c后面第 x个字符。
比方说,shift('a', 5) = 'f'和s... | [
"201930343469@mail.scut.edu.cn"
] | 201930343469@mail.scut.edu.cn |
9d7abb05c706a4078cc1f7b3d0acded44fe1087d | 3943fb2652d754bbba4b1052a2a996578f92184e | /python/week 1/3day/exp/ex1.py | dde253e63eecbee2cc75ab072279adbce3840c40 | [] | no_license | esthergoldman/DI_Bootcamp | 54fe2e140858600dcf33a46a954ed9221f8524b7 | 2f02ceb349e8239bb46ffcccfd4a15b1213e3656 | refs/heads/master | 2023-04-09T14:12:36.747406 | 2021-04-17T07:50:55 | 2021-04-17T07:50:55 | 355,103,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | keys = ['Ten', 'Twenty', 'Thirty']
values = [10, 20, 30]
zip_list = zip(keys,values)
print(zip_list)
num_dict = {}
for info in zip_list:
#print(info)
num_dict[info[0]] = info[1]
print(num_dict)
| [
"esthergoldman@gmail.com"
] | esthergoldman@gmail.com |
4be43c66932644e65085748949e25ae90c6a63b2 | 8ce09769f4d9858cb02f5263a75d12ea11b68c65 | /venv/bin/distro | 65966f188d9325591927ed9aad569d7d2c416276 | [] | no_license | rabbanimd/ipFinder-webapp-Flask-RESTapi | 50c16ae321cdb3a358b6734d0cb83df3aceba880 | 247e0e38e729b8be6648a8d34d147dbf449df2ff | refs/heads/master | 2023-01-14T06:11:11.039045 | 2020-11-15T13:08:32 | 2020-11-15T13:08:32 | 312,975,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/c0rt3s/PycharmProjects/flaskProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from distro import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"c0rt3s@k4l1.k4l1"
] | c0rt3s@k4l1.k4l1 | |
2f64e51170ad09aae09260381e2fcf5f84d80675 | 3cf5fd02e548f55d756acd672dd2e5b113343d10 | /src/cormorant/models/cormorant_lep.py | 9c912782a6b8a01bbd34777a032234a3154cf0de | [] | no_license | drorlab/cormorant | e6a196320dd8ca124283aa602442d639b4a4682c | 3920a8f453c9c71c09b20c92c99fd0e9eec265ce | refs/heads/master | 2023-05-08T03:04:59.271118 | 2021-05-15T08:02:18 | 2021-05-15T08:02:18 | 265,646,271 | 2 | 4 | null | 2020-05-20T17:59:50 | 2020-05-20T17:59:49 | null | UTF-8 | Python | false | false | 10,182 | py | import torch
import torch.nn as nn
import logging
from cormorant.cg_lib import CGModule, SphericalHarmonicsRel
from cormorant.models.cormorant_cg import CormorantCG
from cormorant.nn import RadialFilters
from cormorant.nn import InputLinear, InputMPNN
from cormorant.nn import OutputLinear, OutputPMLP, OutputSoftmax... | [
"martinvoegele1989@gmail.com"
] | martinvoegele1989@gmail.com |
54ef8914727cd09544ff6c9b95288d9a954859c4 | c19ba27d1a4aa2615e831e72f84dab05d37210c9 | /single_byte_xor_cipher.py | 07c55b9fcfc1c19557fdb37eee039e915b35b3c7 | [] | no_license | starVader/cryptography | 5c1b2164b16078b4405943101c12d70a3ae0cfda | b64ab8e290c108e2256ba0909bdc87524065b43f | refs/heads/master | 2020-09-05T03:05:25.701440 | 2019-11-06T11:03:29 | 2019-11-06T11:03:29 | 219,964,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from fixed_xor import calculate_xor
def single_byte_xor_cipher(output):
alphabets = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
'u', 'v', 'w', 'x', 'y', 'z']
if __name__ == '__main__':
hex_enc_xored_str = "1b37373331363f78151b7... | [
"rakesh@coffeebeans.io"
] | rakesh@coffeebeans.io |
6ff1199e076538633df47e9a7c40ce99750acf2d | f12907ab992b85a5e7e19953fbe1dab2305c8d2d | /CosasDeCasa/UserModeLoader/generator_data_file.py | 3f4db3fabc0be714b5f7d61b030e32457fa3275c | [] | no_license | Fare9/SomeVirusesTechniques | c460364c6b612d1c64fb88363da06ba48d312736 | ca452c14de71ea11828aa7171562982a9dfff5aa | refs/heads/master | 2020-05-30T17:46:33.427451 | 2019-06-23T11:54:09 | 2019-06-23T11:54:09 | 189,882,986 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | #!python3
#-*- coding: utf-8 -*-
__author__ = "Fare9"
__credits__ = ["Fare9"]
__license__ = "GPL"
__version__ = "1.0.0"
__maintainer__ = "Fare9"
__email__ = "farenain9@gmail.com"
__status__ = "Production"
import os # standard library
import sys
import random
import string
file_name = "data.cpp"
file_to_generate... | [
"eduardo.blazquez@edu.uah.es"
] | eduardo.blazquez@edu.uah.es |
788d31e1c22321163e5c3a2f40bc386cceba1c6c | 0e6bdf6801934f7e5374c47159e8c7f5925cb95d | /src/utils/logger.py | 139853abd0d6815d7af2a67907f3b7b6d1f7411f | [] | no_license | HawChang/learn_tf2 | 5c8029cea339410f44e5f6c7b51b113e9ce326c1 | 21de6d6659281542264c20dd1a58a845214fdb3d | refs/heads/master | 2021-03-26T13:07:14.187899 | 2020-03-31T03:43:46 | 2020-03-31T03:43:46 | 247,706,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/3/16 3:49 PM
# @Author : ZhangHao
# @File : logger.py
# @Desc :
import logging
"""
Logger的级别:
1. DEBUG
2. INFO
3. WARNING
4. ERROR
5. CRITICAL
"""
class Logger(object):
_is_init = False
def __init__(self):
if not self._is_init... | [
"changhaw@126.com"
] | changhaw@126.com |
96ec42e448b7eeb8921d53eb0ed2c1f012f9e714 | f0d0ea29240c53b6ce1c4b06095b528ece02fdd7 | /apps/config/migrations/0009_mail.py | f05d496f1a8ec6c6047e85a0dbb57b16caf33448 | [] | no_license | zhifuliu/dianjing | 477529ccd6159329e1bc121aeb2ff328ee499f4a | 7b3f6d58f5bc0738651d8d72c9a24df4ade0ed36 | refs/heads/master | 2020-03-21T09:10:28.343268 | 2017-03-24T03:06:24 | 2017-03-24T03:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,492 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-21 09:17
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import re
class Migration(migrations.Migration):
dependencies = [
('config', '0008_auto_20161020_1321'),
]
oper... | [
"yueyoum@gmail.com"
] | yueyoum@gmail.com |
78eedfc25bf4d66206ca15b411bd9d49ddb21226 | 233f2321abd301b52ed5a22ae191ae82ce71e4e4 | /app/__init__.py | 5406bc31951e69021e61f49c8c276f8d08455cdf | [] | no_license | kishoresvk21/tech_support | f7ee1d23eb80eae2e5215c9c122e4f5b07394509 | 3577bc00c79ce4388809801be6cbce9ca60373d8 | refs/heads/main | 2023-08-27T03:02:22.675670 | 2021-11-02T04:40:56 | 2021-11-02T04:40:56 | 416,664,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,659 | py | from flask_sqlalchemy import SQLAlchemy
from flask import Flask
from flask_restplus import Api
from flask_cors import CORS
from flask_migrate import Migrate
app = Flask(__name__)
CORS(app)
cors = CORS(app, resources={r"": {"origins": ""}, })
app.config['SECRET_KEY'] = 'rmijlkqqqawtre@1((11'
app.config['SQLALCHEMY_DATAB... | [
"svkrishnakishore2000@gmail.com"
] | svkrishnakishore2000@gmail.com |
fd5655dff832d4c4084d5d15f8af917e6b2e04f0 | e5a25acd14fd7e080ffb255cb2bcbfa921c06806 | /users/management/commands/utils/init_drp.py | c2d679d6e9f44c22178042d24c1dd7765ac46bc3 | [
"MIT"
] | permissive | GolamMullick/HR_PROJECT | 26a6c2b251ee54a1ec35432668d8960cace71c3b | fc4c76cfc835ad014a62a3da9d32b8fc8d474397 | refs/heads/master | 2021-06-21T00:16:28.132340 | 2019-11-24T08:56:59 | 2019-11-24T08:56:59 | 223,716,477 | 0 | 0 | MIT | 2021-06-10T22:18:24 | 2019-11-24T08:52:54 | Python | UTF-8 | Python | false | false | 193 | py | from users.models import DepartmentRoleModelPermission
def init_drp(license):
DepartmentRoleModelPermission.load_on_migrate(license)
print("department role model permission worked!!") | [
"fahadmullick89@gmail.com"
] | fahadmullick89@gmail.com |
47108a87a1e8c3ab03cd93554fe0455da8e314e3 | 2bc74414e71a280cc50085ec2e5a6499d22ae5e6 | /src/python/probdist/_SquareMatrix.py | b493e0baf491a20e1e752ce83acc3082e32f4528 | [
"MIT"
] | permissive | plewis/phycas | 610c989d49dce741fc2d2ad048a9d7587eabeb74 | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | refs/heads/master | 2020-12-25T16:48:31.870762 | 2017-07-15T14:07:37 | 2017-07-15T14:07:37 | 21,300,616 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,596 | py | from _ProbDistExt import *
class SquareMatrix(SquareMatrixBase):
#---+----|----+----|----+----|----+----|----+----|----+----|----+----|
"""
Encapsulates a square matrix of floating point values (underlying C++
implementation stores these as doubles).
"""
def __init__(self, dimension, v... | [
"paul.lewis@uconn.edu"
] | paul.lewis@uconn.edu |
bd8ef05ba2857891d6e8b09adf4efd715afddbbd | e7e42ae069a5d3165fbe6acc86f4a0cd4b709194 | /djsite/settings.py | f7ba93283b05bd36a83ff1b736bef4bf2638f220 | [] | no_license | Kearenus/testblog | c1c59732f999af64c079447dc02982d0f36d361d | 75f8bd2d4faefd13ee97f319a0ef7f19e5e5843a | refs/heads/master | 2022-12-18T01:56:35.635762 | 2020-09-14T13:01:49 | 2020-09-14T13:01:49 | 295,406,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | """
Django settings for djsite project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"Kearenus@gmail.com"
] | Kearenus@gmail.com |
774e1042c1b495b81805a042253a3386768be94b | 6b5d6690678f05a71837b85016db3da52359a2f6 | /depot_tools/recipe_modules/gclient/api.py | 1b705d5b35d28efa7ce15cc73361cdfda960e24e | [
"BSD-3-Clause",
"MIT"
] | permissive | bopopescu/MQUIC | eda5477bacc68f30656488e3cef243af6f7460e6 | 703e944ec981366cfd2528943b1def2c72b7e49d | refs/heads/master | 2022-11-22T07:41:11.374401 | 2016-04-08T22:27:32 | 2016-04-08T22:27:32 | 282,352,335 | 0 | 0 | MIT | 2020-07-25T02:05:49 | 2020-07-25T02:05:49 | null | UTF-8 | Python | false | false | 12,269 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import recipe_api
class RevisionResolver(object):
"""Resolves the revision based on build properties."""
def resolve(self, properti... | [
"alyssar@google.com"
] | alyssar@google.com |
e0e86e42242d9e8b93db20b6f8b31985d4cae909 | f38e78214992de722a6ec2012e844bce7b3c59ed | /lib/clckwrkbdgr/oldrogue/__main__.py | 5d5846a28afc44aecd837e2b664887d748df9f23 | [
"MIT"
] | permissive | clckwrkbdgr/dotfiles | 20fb86f54d93ae4936c334898c3d7b1b3820fb06 | a7e880e189bfa4793f30ff928b049e4a182a38cd | refs/heads/master | 2023-08-31T13:13:47.533868 | 2023-08-30T18:32:00 | 2023-08-30T18:32:00 | 20,396,084 | 2 | 2 | MIT | 2022-10-01T16:35:31 | 2014-06-02T07:26:38 | Python | UTF-8 | Python | false | false | 27,391 | py | import os, sys
import curses, curses.ascii
import json, itertools, copy, functools
import logging
import inspect
from operator import itemgetter
from collections import namedtuple
import six
if six.PY2:
import itertools
filter = itertools.ifilter
import vintage
from clckwrkbdgr import xdg
from clckwrkbdgr.utils impor... | [
"umi0451@gmail.com"
] | umi0451@gmail.com |
7e6ae3866209330b045a79d660c0ab9423b0337b | b559fb774f770a1d7bf594e58bad582e5bc5a145 | /partlist/migrations/0001_initial.py | 6de925cdb4bfa4d404ade61195f927ee8f256027 | [] | no_license | sktometometo/Test_django_samplesite | 2da194e91e66c4482a0eaf19d337e4ef41aad273 | 6077d4c80fa8129f259b10554285a637711af3e6 | refs/heads/master | 2022-11-16T02:11:12.165776 | 2020-07-22T07:01:14 | 2020-07-22T07:01:14 | 279,798,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # Generated by Django 3.0.8 on 2020-07-15 05:17
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"sktometometo@gmail.com"
] | sktometometo@gmail.com |
615bb0ef4d02e7266ab2d4ff06b73adeb290dc2f | 445b16e1754234ed9afea078872545f2fee32b1e | /chasha.py | fde8781a6cccbc9ab1252f4f133b0f6d6d2e93dd | [] | no_license | dlwngh1113/2DGP | ee7013ea0a22b87f15098d0c1f0f20c1e846024b | 07566128bdee8af8027ae6298a96be381fdc73a3 | refs/heads/master | 2020-08-03T16:27:26.336450 | 2019-12-10T13:10:45 | 2019-12-10T13:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | from pico2d import *
import random
import game_framework
from BehaviorTree import BehaviorTree, SelectorNode, SequenceNode, LeafNode
PIXEL_PER_METER = (10.0 / 0.3) # 10 pixel 30 cm
RUN_SPEED_KMPH = 25.0 # Km / Hour
RUN_SPEED_MPM = (RUN_SPEED_KMPH * 1000.0 / 60.0)
RUN_SPEED_MPS = (RUN_SPEED_MPM / 60.0)
RUN_SPEED_PPS ... | [
"dlwngh1113@naver.com"
] | dlwngh1113@naver.com |
f3d42a10d50a212195491831b823aee6a236d05b | f18ee8805c738b2cd22634ea728a6a35c0153eee | /result_generator/result_feature_db/index.py | dfab4c112be45ea8fed8554ee4fb67d1f1cc85ed | [
"MIT"
] | permissive | shijack/feature_extract | e9a115085e1c82dd9a2782e1464e90f18f273885 | 2c45750ea42a30a1f0b5cbe305edc4c8ab0461d7 | refs/heads/master | 2020-04-04T19:15:26.941570 | 2018-11-05T10:34:49 | 2018-11-05T10:34:49 | 156,198,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,388 | py | # -*- coding: utf-8 -*-
# Author: shijack
import sys
import time
sys.path.append('../../')
import os
from nets import resnet_v2
from net_model.extract_cnn_vgg16 import VGG16_MODIFIED
import h5py
import numpy as np
import tensorflow as tf
from keras.preprocessing import image
os.environ["CUDA_DEVICE_ORDER"] = "PCI_... | [
"690141808@qq.com"
] | 690141808@qq.com |
aad47db0f8136de55098fc0c8e2f82093cadc0c3 | e72db255e41332c113f929eb63815b2169038209 | /Chapter09/transforming/group_by.py | bf0a08814a324d02b5c2857fef7b5816a5ccd792 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Reactive-Programming-with-Python | b196b971fe49a36da9f979790b8c31c98a659031 | 757d45e2023032c6074e26ad252530f3c89978bf | refs/heads/master | 2023-02-07T01:03:37.648175 | 2023-02-05T18:21:17 | 2023-02-05T18:21:38 | 128,761,473 | 75 | 19 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import reactivex as rx
import reactivex.operators as ops
from reactivex.subject import Subject
def wrap_items(i):
return i.pipe(ops.map(lambda j: 'obs {}: {}'.format(i, j)))
numbers = rx.from_([1, 2, 3, 4, 5, 6])
numbers.pipe(
ops.group_by(lambda i: i % 2 == 0),
ops.flat_map(wrap_items),
).subscribe(
... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
f13227ef1502fcff48b95b267daabd3a25bb2f9c | ea0ab657b0b6e543ac8e6b70224cf91dceb2230b | /favorite_book/wsgi.py | f67506ffbe62a89a1dad33dcf9894b53b858700e | [] | no_license | BigGeF/Favorite_Books_python | 7f91c62593c4318a6a818a16b0ad3ef642fa1d2f | 84db640027e7bc00a5c240915302f1c048dffdef | refs/heads/master | 2020-09-16T16:28:28.031180 | 2019-11-25T00:06:41 | 2019-11-25T00:06:41 | 223,829,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for favorite_book 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"52731933+BigGeF@users.noreply.github.com"
] | 52731933+BigGeF@users.noreply.github.com |
889fa342d79eff981d7d49709fa04b39322447ff | 7f1e0158e70b69bfa353661bfb2eabda9ee5c56c | /tests/models/validators/v2_2_1/jsd_ed5cbafc332a5efa97547736ba8b6044.py | 680209d36b4b94a32fcd18341ad37eacd1d6e7b9 | [
"MIT"
] | permissive | Jerbuck/dnacentersdk | 97fb11844410ec7ab49aec35a30979d6288a87fd | ef2adde6113e7a6acd28a287007eb470fa39d31f | refs/heads/master | 2023-07-31T13:43:01.108243 | 2021-09-14T17:41:19 | 2021-09-14T17:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,451 | py | # -*- coding: utf-8 -*-
"""Cisco DNA Center retrievesPreviousPathtrace data model.
Copyright (c) 2019-2021 Cisco Systems.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, incl... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
9518b3790b2967f59fe55686f22287926c8fd7fe | 599709e7687a78f92b268315590d6ad750ce97d6 | /src_py/l2func.py | 490832659c4a2d9e01839b63a45ed3f2d32af2da | [] | no_license | ReiMatsuzaki/cbasis2 | b99d096150d87f9301ed0e34f7be5f0203e4a81e | 86f21146fab6fc6f750d02fb2200ea94616ca896 | refs/heads/master | 2021-01-19T23:15:32.864686 | 2017-04-27T07:29:26 | 2017-04-27T07:29:26 | 88,953,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from l2func_bind import *
from linspace import *
from set_l2func import *
from hatom import *
from basis_set import *
from l2func_io import *
from lindep import *
from d_basis import *
| [
"matsuzaki.rei@sepia.chem.keio.ac.jp"
] | matsuzaki.rei@sepia.chem.keio.ac.jp |
57ea1c2505e1c09b048701ba91772ab40663dfce | c234f93c1812d8c5cf07b6f91574d8b0818989ae | /restoran/restconf/main.py | 1dcb9111bf692418a2c32f74294e814054beb199 | [] | no_license | Alymbekov/RESTORAN | 6a8cd6117eee40be82dee737ccbddc51f34fbf8e | fdd82aaa80ad70bf1a9645bd3e5d00675948ebe7 | refs/heads/master | 2020-05-06T12:33:31.206625 | 2019-05-20T14:17:07 | 2019-05-20T14:17:07 | 180,128,403 | 2 | 0 | null | 2019-05-20T14:17:08 | 2019-04-08T10:46:57 | Python | UTF-8 | Python | false | false | 1,371 | py | import datetime
from django.conf import settings
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
# 'rest_framework.authentication.BasicAuthentication',
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
),
'... | [
"maxim.makarov.1997@mail.ru"
] | maxim.makarov.1997@mail.ru |
41eedf17f955552608d5964a14ccb3227ffbbd8c | 99287c727e2249336d6c27025920df620d7b124c | /streams/consumers.py | 7b8d6a6ac941a9bc6fda109bc50daa6acf6a6215 | [] | no_license | dadoeyad/event-stream | 30809bdfec1958754dc10050bf4330c8e37a9a03 | 6c6aa6536fbd8e57b4dfbc6b519f8da2d418ae64 | refs/heads/master | 2021-01-12T09:54:28.396750 | 2016-12-17T15:45:00 | 2016-12-17T15:45:00 | 76,292,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | import logging
from django.conf import settings
from channels import Group
from channels.sessions import channel_session
from .tweets import tweets
from slack import slack
log = logging.getLogger(__name__)
@channel_session
def ws_connect(message):
try:
prefix, label = message['path'].decode('ascii').st... | [
"dado_eyad@Eyads-MacBook-Pro.local"
] | dado_eyad@Eyads-MacBook-Pro.local |
e3474b32d77a685b3c23b5eca37bf340c0143dd5 | 44ee7102af2f141a51fb1086b0bb9f97fa214859 | /p20.py | 38517fbd6b150cdf1a3ec74a78aecc7d603e91b7 | [] | no_license | ramyaramy/ramya | 3ced7c19e543559d33525a09ba5e8453d4a6c2f1 | 5cc45ea822c1238299ad796cad5d0918c8cc5564 | refs/heads/master | 2021-05-10T12:09:00.570336 | 2018-02-21T17:11:11 | 2018-02-21T17:11:11 | 118,432,451 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | def main():
str=input()
list=[]
for i in str:
x=ord(i)+3
y=chr(n)
list.append(y)
print(''.join(list))
if __name__ == '__main__':
main()
| [
"noreply@github.com"
] | ramyaramy.noreply@github.com |
b062a23c7a8e0e59d13d4a6a55b09da524ed6b52 | 6262c5dc440d9b2e595d0a6d567d5e78d45b5ca6 | /Coursera/compute_pay_func.py | 8063ecd9b1ba66172bb1f637ae296309746018c2 | [] | no_license | hasija-bhawna/Python | d19da940078afe44c40dbe1f1b35942e758f5681 | eb207f7147c75ec3593b4365c6c2604e5bfef860 | refs/heads/master | 2022-11-18T08:13:16.340242 | 2020-07-14T00:48:06 | 2020-07-14T00:48:06 | 279,179,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #compute pay with a function
h = input('Enter the number of hours:')
hours = float(h)
r = input('Enter the rate per hour:')
rate = float(r)
def computepay(hours, rate):
if hours <= 40:
pay = hours*rate
else:
extra_hours = (hours-40)
new_rate = (1.5*rate)
pay = (40*rate) + (new... | [
"hasija.bhawna@gmail.com"
] | hasija.bhawna@gmail.com |
d8a1362bd606a719b92a372f935715deb8496ba1 | 7e04c5851097c9f18a56b758022c16a8be3853d0 | /conTable.py | c3309d23df63f261a5b17602c32d3fccd4eb34da | [] | no_license | fareise/segment-cluster | 5faaa9e54ae96401539ff6968f82b10286c01907 | e86d3359eac888b574de028e19d74ef5f849511a | refs/heads/master | 2021-01-23T07:44:14.478443 | 2017-04-05T07:33:01 | 2017-04-05T07:33:01 | 86,437,759 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | def makeTable(files):
skip = 0
rollSstick = ['_ROLL_CAPT_SSTICK', '_ROLL_CAPT_SSTICK-1', '_ROLL_CAPT_SSTICK-2', '_ROLL_CAPT_SSTICK-3']
sstick = ['_SSTICK_CAPT', '_SSTICK_CAPT-1','_SSTICK_CAPT-2','_SSTICK_CAPT-3']
tableFactor = pd.DataFrame(columns=['FILNAME','LAST','OPERNUM','RANGENUM','VAR','GAP','NI']... | [
"noreply@github.com"
] | fareise.noreply@github.com |
09791a4e30b09ef8ec9f800ca7aca461ff8193fd | 0df42ff286efb98f3b62a0bfa6c59548114cd3bb | /train_coarse_type_lstm_glove.py | d221d47017e9dc9a1e4537975b228cf87977b12f | [] | no_license | SearchGuru/DNN4QueryType | 738882bbd402075edda355b7eb135c0dd60ed7bf | 2940131767e910b772bb9ed7350afb5d121d62f0 | refs/heads/master | 2021-01-10T15:36:06.223671 | 2016-04-02T23:06:20 | 2016-04-02T23:06:20 | 55,320,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | from __future__ import print_function
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.preprocessing import sequence
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.layers.embeddings import Embedding
from ... | [
"cguihong@hotmail.com"
] | cguihong@hotmail.com |
67744552c910cdc284977b1a4a0740afe3f8ebb5 | 853c6a09af16fd4dd8a53efa8bde631e63315b59 | /This is a coding test with python/page 367.py | 8e040c71a88756a236725473eab281f8e2cb1cef | [] | no_license | Areum0921/Abox | 92840897b53e9bbab35c0e0aae5a017ab19a0500 | f4739c0c0835054afeca82484769e71fb8de47c8 | refs/heads/master | 2021-12-13T11:16:33.583366 | 2021-10-10T08:09:50 | 2021-10-10T08:09:50 | 176,221,995 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | #bisect 이용
import bisect
answer = -1
N,x = map(int,input().split(" "))
a = list(map(int,input().split(" ")))
left_a = bisect.bisect_left(a,x) # 첫번째 a 인덱스
right_a = bisect.bisect_right(a,x) # 마지막 a 다음 인덱스
print(left_a,right_a)
if right_a - left_a>0:
answer = right_a - left_a
print(answer)
| [
"a90907@gmail.com"
] | a90907@gmail.com |
65edb385111ef5fdbfc756935b882b4509d75d7d | 5ba734d46818acd8f29eb61a5ff2502bc1f69424 | /Code/utils.py | 6e56358ebd15f429070905343588ebb05cf5a96d | [] | no_license | sprihap/Learning-generative-principles-of-a-symbol-system | b4ae2bfaa67bbf3739c2d02a11ff359f651c669d | 7fedfcf0684874d197f439ad97d61339fc6bf54a | refs/heads/master | 2023-05-28T01:14:20.219417 | 2021-06-17T19:26:21 | 2021-06-17T19:26:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,862 | py | """
This script is from:
https://github.com/sgrvinod/a-PyTorch-Tutorial-to-Image-Captioning/blob/master/utils.py
"""
import os
import numpy as np
import h5py
import json
import torch
from scipy.misc import imread, imresize
from tqdm import tqdm
from collections import Counter
from random import seed, choice, sample
... | [
"ziyxiang@electrode.sice.indiana.edu"
] | ziyxiang@electrode.sice.indiana.edu |
970ac043cb0d2a47e40e680f4553f16167d33ddf | 02d0714edfef5a2d3630d7659c553c157e291e52 | /tempest/api/volume/admin/test_volumes_actions.py | 6c32321fc70831776f88b575d81d10b782f2264c | [
"Apache-2.0"
] | permissive | atulbangar09/tempest | f07dced592481a7ec71a9c7469b7d50d30cdc171 | 9f5644ce2784cd882e86ac89236f8f8f828d7c43 | refs/heads/master | 2023-02-06T10:26:40.112917 | 2020-01-21T16:17:16 | 2020-01-21T16:17:16 | 234,520,093 | 0 | 0 | Apache-2.0 | 2020-01-17T09:52:53 | 2020-01-17T09:52:52 | null | UTF-8 | Python | false | false | 4,119 | py | # Copyright 2013 Huawei Technologies Co.,LTD
# 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
#
# Unle... | [
"jignasha.vithalani@triliodata.com"
] | jignasha.vithalani@triliodata.com |
bd6f314634efe8002e6d96e077d9e37cf04f2978 | 58d024706f26350706e52670daa135b37b84a30f | /srcb/.idea/gen_loan_acct.py | d9aaaab83fb631d2fb9b7be72e12b4db83cec084 | [] | no_license | ccf738/ccfCodes | 295238991a497f9a6f38b89bf76f8f39a3a965b1 | 3ececda49eb17bdb5f8ffa30e019bd307a73f86e | refs/heads/master | 2021-01-01T06:44:38.630535 | 2015-05-11T14:04:49 | 2015-05-11T14:04:49 | 8,829,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | # -*- coding:utf-8 -*-
__author__ = 'qctest'
import os
import shutil
import stat
import excel
import time
import win32com.client
import sqlite3
year = 2002
acct_seq = 0
num_seq = 0
id_seq = 0
def set_acct_no(file_name, branch_no, row_no):
global acct_seq
acct_seq += 1
acct_no = "68" + str(branch_no) + "709"... | [
"ccf738@sina.com"
] | ccf738@sina.com |
b2af9ea8f603ad82066c9c195b15839ee775b30e | 02c9c208d20a04b50b9a88483ca87dd0922fb106 | /vision/faceDetection.py | b57050df2c1b6926133ef263d54490bac1a03f5f | [] | no_license | shubhamagarwal92/deepLearning | ca80aa6f310d0fff0c3f3172bcbeb156336ef949 | a9a73544a5b5e5d4a10cfcaa8ff4d43fb251a27c | refs/heads/master | 2020-04-18T12:25:28.431481 | 2016-09-29T16:30:22 | 2016-09-29T16:30:22 | 67,206,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Face detection in images using haar classifier from opencv
# Download first haarcascade_frontalface_alt.xml to get the code working
import os
import cv2
from PIL import Image
cascadeClassifier = '/path-to-dir/haarcascade_frontalface_alt.xml'
rootDir = "/path-to-dir/"
classDirPath = rootDir + "binaryClasses/"
faceFile... | [
"shubhamagarwal92@gmail.com"
] | shubhamagarwal92@gmail.com |
cda2db1015b7a58998812c5701846d0dbfa533a5 | 1caa642313c4b6a8350dca501a2d6da80a14f2a1 | /Acessar_site.py | cb1dbc9410a9350dcef91009c9ce0f3400f0717e | [
"MIT"
] | permissive | LuanPetruitis/minis_programas_python | f78648269251cdc0d7ec77fd727e6e08b47ce340 | 5fbc4c3fbe832303511e612f320d31e2b91f1ef0 | refs/heads/master | 2021-05-24T13:33:55.373089 | 2021-01-29T19:44:37 | 2021-01-29T19:44:37 | 253,585,118 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import urllib
import urllib.request
try:
site = urllib.request.urlopen('http://www.pudim.com.br')
except urllib.error.URLError:
print('O site não está funcionando.')
else:
print('Consegui acessar o site.')
| [
"luanpetruitis@hotmail.com"
] | luanpetruitis@hotmail.com |
afd21c4d65fe2397b52703dbb5e7844fd2dd620e | be62bda9e4984a057109db70848d8b6e5586beed | /watch/views.py | f9e24083309c19dce31ae632d20cb0287628209e | [] | no_license | grim-GO/worldIT1 | 649c393f6fd059d893259373929042654cb9137e | a8e9c8641ed7f77695740d042c87dfd547fe0ab1 | refs/heads/master | 2021-01-09T00:57:35.202900 | 2020-02-25T16:11:59 | 2020-02-25T16:11:59 | 242,195,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.shortcuts import render
def watch(request):
return render(request, 'watch.html')
| [
"56546892+grim-GO@users.noreply.github.com"
] | 56546892+grim-GO@users.noreply.github.com |
e39ba4e517ce77e9d879a36cff7cf0d9f91ea2b7 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/194_c.py | efb956133dd25d430f186e3691a7980d59834987 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
def do():
import collections
n = int(input())
dat = list(map(int, input().split()))
d = collections.defaultdict(int)
for i in range(n):
... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
72d9f888432bd18afeb0e389537741ec6f5a4396 | e457ef64e939acc769d3b4609184f1603fdd875a | /tests/test_fingerprint.py | f8cc93db8d90891d4a8e47ec0acb33cc6ed2ba00 | [
"Apache-2.0",
"MIT"
] | permissive | fastavro/fastavro | dbad8c55fabc9f22b16273ee1a926f22c840c694 | 40dfd526076446cc7f7eef97e40da216b910d047 | refs/heads/master | 2023-09-01T04:16:13.510802 | 2023-08-25T10:19:13 | 2023-08-25T11:05:36 | 3,845,895 | 430 | 105 | MIT | 2023-09-14T20:14:34 | 2012-03-27T16:29:38 | Python | UTF-8 | Python | false | false | 33,787 | py | import pytest
from fastavro.schema import (
FINGERPRINT_ALGORITHMS,
fingerprint,
to_parsing_canonical_form,
)
@pytest.mark.parametrize(
"fingerprint", ["CRC-64-AVRO", "SHA-256", "MD5", "sha256", "md5"]
)
def test_required_fingerprints(fingerprint):
assert fingerprint in FINGERPRINT_ALGORITHMS
de... | [
"scottabelden+github.sb@gmail.com"
] | scottabelden+github.sb@gmail.com |
4e1b78b9c648e807f68585113cc426c3bdc0cfd1 | fc8fbda7dba622a2242a6783919c36e5e0fd6cc8 | /final/run.py | e031666b5f15c90a865bdcb96ea4a098df9b62b3 | [] | no_license | canibal/Course6 | c110fed13338bca9509948b82a1d4dd0e7200e00 | 005d8eb8265f8f735d991c39af19f88d441f303b | refs/heads/master | 2022-05-06T14:09:01.587671 | 2020-04-20T08:29:39 | 2020-04-20T08:29:39 | 255,115,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | #! /usr/bin/env python3
import os
import requests
data_dir = ('supplier-data/descriptions/')
file_list = os.listdir(data_dir)
def post_request(p):
response = requests.post("http://35.223.215.137/fruits/", json=p)
code = response.status_code
body = response.text
print("The request returned code {}.".f... | [
"canaan@thetomato.co"
] | canaan@thetomato.co |
70f0f5a1e3be3fd611edb474c21c64ad9da1b84b | 0b358a0d64eb03655c030b36c0ae87880b153951 | /mmcv-1.4.7/tests/test_load_model_zoo.py | 35492fa8a0a51952d458374c17770eee716d996a | [
"Apache-2.0"
] | permissive | jshilong/DDQ | db05ff309d63316c62faa59b28c66d65eef973d1 | de9331e4579aaafab4d69e3a9a3c6638efc5392c | refs/heads/main | 2023-06-03T15:02:09.949907 | 2023-05-24T03:32:12 | 2023-05-24T03:32:12 | 498,974,099 | 199 | 6 | Apache-2.0 | 2022-06-02T05:01:53 | 2022-06-02T03:10:25 | null | UTF-8 | Python | false | false | 5,478 | py | # Copyright (c) OpenMMLab. All rights reserved.
import os
import os.path as osp
from unittest.mock import patch
import pytest
import mmcv
from mmcv.runner.checkpoint import (DEFAULT_CACHE_DIR, ENV_MMCV_HOME,
ENV_XDG_CACHE_HOME, _get_mmcv_home,
_l... | [
"2392587229zsl@gmail.com"
] | 2392587229zsl@gmail.com |
7db54fa4b19419ad6f5a61d90b947002b137d91a | 42ab657221e7a7f7e3e185f7ea0f04821477e3d9 | /240/searchMatrix.py | 1db4b305730129e847603143bd03441397c815d6 | [] | no_license | Sevendeadlys/leetcode | 2238f86e3b6c687c48e2d612658730826d4be983 | e030f32b26daffbb57ca9bc13c2e8d3ea1c1c1eb | refs/heads/master | 2021-01-10T15:35:52.912711 | 2016-02-25T03:14:02 | 2016-02-25T03:14:02 | 48,724,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | class Solution1(object):
def searchMatrix(self, matrix, target):
"""
:type matrix: List[List[int]]
:type target: int
:rtype: bool
"""
if not matrix or not matrix[0]: return False
m = len(matrix)
n = len(matrix[0])
i = 0
while i < m:
... | [
"yi_nan@615-PC76.careri.com"
] | yi_nan@615-PC76.careri.com |
089a617446ed4d8811d8d82c91893eefc52314f3 | 44a071e30cf5ab17e6519e4d3edb2a6cb207ecef | /피보나치 함수/main.py | 34a67a6319b18460ed6173b7ffccdba8366933ce | [] | no_license | isp5708/Algorithm_python_bj_2cotae | f56e957677b0f2a6756172c21583a0be00c6b2cd | 56e630dc36b976177fd0c2d0d4396e1a1ba0ad33 | refs/heads/master | 2023-01-30T23:07:18.594616 | 2020-12-11T02:31:06 | 2020-12-11T02:31:06 | 320,441,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | t= int(input())
array=[]
for i in range(t):
array.append(int(input()))
n=max(array)
dp0=[0]*(n+1)
dp1=[0]*(n+1)
dp0[0],dp1[0]=1,0
dp0[1],dp1[1]=0,1
for i in range(2,n+1):
dp0[i],dp1[i]=dp0[i-2]+dp0[i-1],dp1[i-2]+dp1[i-1]
for i in range(t):
print(str(dp0[array[i]])+' '+str(dp1[array[i]]))
| [
"dlwnsdud3737@naver.com"
] | dlwnsdud3737@naver.com |
fc32e950371b1885f07097d5fa5b19c2fe75426e | 4bc24011c65cb5194eb94abfd8d394a6b0dc6a50 | /packages/OpenWeatherMap/nodes/OpenWeatherMap___BreakTemp0/OpenWeatherMap___BreakTemp0.py | be0fa2f76d4d13639e7780853aa71a56c8e552b8 | [
"MIT"
] | permissive | ManojKumarTiwari/Ryven | 6c76ebdf89599bb7c9b4ce020f195eea135d9da1 | 2b8ef0bdcf05a458a6cf8791cbc2fda6870932f8 | refs/heads/master | 2022-11-12T00:23:45.303378 | 2020-07-08T09:32:10 | 2020-07-08T09:32:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | from custom_src.NodeInstance import NodeInstance
from custom_src.Node import Node
from custom_src.retain import m
# API METHODS
# self.main_widget <- access to main widget
# self.update_shape() <- recomputes the whole shape and content positions
# Ports
# self.input(index) <- access to ... | [
"leon.thomm@gmx.de"
] | leon.thomm@gmx.de |
749f5c88ee3cfd6b790f1c722c970946167645ae | 235267656f98a7583b39f0550d147aca17880c75 | /machine_learning_basics/layers/dense.py | 67419dd58659f63f5b3cb623d8d6d625fe764cb0 | [] | no_license | calvinfeng/machine-learning-notebook | 5cd2695947cd6058916f39a51431b162bc6a4e32 | 7da789ef34d5e5bcf9033cfbe0ff5df607b2437a | refs/heads/master | 2023-08-16T10:49:28.114020 | 2023-06-16T19:23:43 | 2023-06-16T19:23:43 | 127,679,318 | 38 | 12 | null | 2023-08-14T22:59:02 | 2018-04-01T23:22:12 | Jupyter Notebook | UTF-8 | Python | false | false | 1,159 | py | import numpy as np
class Dense:
def __init__(self):
self.x = None
self.w = None
self.b = None
def __call__(self, x, w, b):
"""Perform forward propagation
Args:
x (np.ndarray): Input
w (np.ndarray): Kernel weights
b (np.ndarray): Bia... | [
"calvin.j.feng@gmail.com"
] | calvin.j.feng@gmail.com |
93d424fffa96884d8805000d5236dce8511322b6 | 0c477e8196d94216bbea8b260579c7e84aba4363 | /gui/TopBarUI.py | 2e88f9ab74500348bab56745b4c1c8bbed38afbb | [] | no_license | industry4-0/1UP | caa00eed15f6fbccbadea62596519291738232d2 | 7903fbca7a478c9618a776bdcc29ee95be5c1f94 | refs/heads/master | 2020-09-22T02:10:50.516217 | 2019-12-01T13:57:32 | 2019-12-01T13:57:32 | 225,013,860 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | import datetime
from gui.core.UINode import UINode
from enums.UIState import UIState
from utils.commons import DEFAULT_FONT, FONT_AWESOME_FONT_FILE, ICONS, right_text, make_font
class TopBarUI(UINode):
def __init__(self):
super().__init__(UIState.ActivityList)
self._battery_level = 100
sel... | [
"noreply@github.com"
] | industry4-0.noreply@github.com |
dde66bb3f35b3fa9cd30f1ad61a5d6953a0be77b | b706b62f91bcf1010d865d0eaa9adecd86dc0b67 | /login_registration_2.py | a7da7cfea642344fbbe2d50b68ef85783f15c6a0 | [] | no_license | IvanPliska/Book-store-testing | d4ed0896fb885df4456b701d5aa8d4788915df5d | 7d4a96b653b53673c1df574219ea6525e0026ec8 | refs/heads/master | 2023-08-30T00:32:34.609825 | 2021-11-16T17:28:15 | 2021-11-16T17:28:15 | 428,748,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import time
from selenium import webdriver
from selenium.webdriver.support.select import Select
driver = webdriver.Chrome()
driver.maximize_window()
driver.get("http://practice.automationtesting.in/")
time.sleep(3)
My_Account = driver.find_element_by_link_text("My Account").click()
time.sleep(3)
Email_address = driver.... | [
"plis_in@mail.ru"
] | plis_in@mail.ru |
153ab10f878388c0574877515a1f65a1e68dea68 | abb51df4a0bac65428be0bbe79aabcf7cb3676a6 | /Invaders.py | 6659e506ca66a096eab248f78ffc97e461585d2e | [] | no_license | Sinaeskandari/Invaders | 3aee4fc0b9046e755c385add186c305b2e8f6dd0 | 74de652d952a8feccc0ae6d02ea87435241c97de | refs/heads/master | 2020-08-06T19:51:19.622445 | 2019-10-06T08:20:39 | 2019-10-06T08:20:39 | 213,131,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,547 | py | # Sina Eskandari
# Student number = 97521054
# for more information read 'readme.txt'
import pygame
import sys
import random
from pygame.locals import *
# This part is for initializing the pygame
pygame.init()
# Variables for window
windowWidth = 680
windowHeight = 680
window = pygame.display.set_mode((windowWidth... | [
"sinaeskandari007@gmail.com"
] | sinaeskandari007@gmail.com |
672c0a23335d9aa8fddf37073f82d135259b0af1 | e10c08b3480eec73ceab0f4316e567a7cd0e95da | /glancesync/glance/sync/clients.py | cadc8f4acf63c25e2f1cd27c2d81506c7f9bc455 | [
"Apache-2.0"
] | permissive | luqitao/tricircle | ca612a4d4fc0287af3857091f2bfbf0c90dbe7bd | d5acf44b5f097e1fe1e94e220138e11c7fdd25fe | refs/heads/master | 2021-01-16T23:06:35.882882 | 2015-04-16T09:30:57 | 2015-04-16T09:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | # Copyright (c) 2014 OpenStack Foundation.
# 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... | [
"joehuang@huawei.com"
] | joehuang@huawei.com |
09eace698786d266b683b6e9ab3515c4ea35c1aa | f809a4c10e6f49938a47471714c5c048265f6c01 | /src/python/py27hash/key.py | 453720684b1f2a86cde296f3657b2f6953976a0f | [
"MIT"
] | permissive | Amli/py27hash | 57e0c56bcdb43d6d9490e0d5e93afae9ebc7660d | 02ebc8a97f4eb6c9838288ec875873971097a456 | refs/heads/master | 2023-01-04T03:13:08.855753 | 2020-11-03T00:46:42 | 2020-11-03T00:46:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,353 | py | """
Compatibility methods to support Python 2.7 style key iteration in Python 3.X+
This is designed for compatibility not performance.
"""
import ctypes
# pylint: disable = E0401
from .hash import Hash
class Keys(object):
"""
Compatibility class to support Python 2.7 style iteration in Python 3.X+
Logi... | [
"561939+davidmezzetti@users.noreply.github.com"
] | 561939+davidmezzetti@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.