blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2427fc0867a45d210f2e8771af3dc7bfb635c603 | 8d2411813994b6a7b038253f5656b83c9a62033e | /examples/least_square_regression/main_least_square_regression.py | ffabb7f266d7487e745d7d057a6ef1edc1171f7c | [
"MIT"
] | permissive | wesenu/random-fourier-features | a8ee840e9e5e30eca012a9051cc2f087fde73c2a | 4a12185e44d1f9aba594f8a7569042e73675d6cd | refs/heads/main | 2023-08-23T01:32:41.518073 | 2021-10-25T01:17:01 | 2021-10-25T01:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | #!/usr/bin/env python3
#
# This Python script provides an example usage of RFFRegression class which is a class
# for least square regression using RFF. Interface of RFFRegression is quite close to
# sklearn.linear_model.LinearRegression.
#################################### SOURCE START ###############################... | [
"tiskw111@gmail.com"
] | tiskw111@gmail.com |
109a815533df2da73af5995e637085223d4ca0d5 | c27c8d8fbf996722d78b6713dbd807610b8192d8 | /gridAPI/views.py | 4703a8c359993209e8472381a648efb0cc90efbc | [] | no_license | s1s1ty/ConwayGameOfLife | f81df5e54988ce5df60338890fe3c98904b3aeda | 89f3014755a1e56777ee236602edc71eb89751a6 | refs/heads/master | 2021-08-23T08:00:57.399149 | 2017-12-04T07:29:56 | 2017-12-04T07:29:56 | 112,950,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.views.decorators.csrf import csrf_exempt
from rest_framework.views import APIView
from rest_framework import generics
from rest_framework.response import Response
from .models import Grid
from .serializers import GridSerializer
from .convey... | [
"shaonty@Shaontys-MacBook-Pro.local"
] | shaonty@Shaontys-MacBook-Pro.local |
e252352ce3f32544da3a2eef1671d17e5ed872af | 843c5fddab984554ef66cc1ba40de2b19aa32ebb | /csiro_workspace/__init__.py | e7b15050d8aa458d2dc3f1c75d7e802c22b2e334 | [
"MIT",
"BSD-3-Clause"
] | permissive | afcarl/workspace-python | fe094b1f9a35fb0f8a5532b9a761578e60fb679b | 78126e9e8af7adbcd47206f69f9b8b999f38a300 | refs/heads/master | 2020-07-23T14:42:37.813891 | 2019-08-07T06:49:51 | 2019-08-07T06:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # ===========================================================================
#
# Revision: $Revision: 4 $
# Last changed: $Date: 2010-05-24 11:57:57 +1000 (Mon, 24 May 2010) $
#
# Copyright 2015 by:
#
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
#
# This file is licensed by CSIRO... | [
"het018@f175a1c1-1187-0410-b721-d13dda9e15ce"
] | het018@f175a1c1-1187-0410-b721-d13dda9e15ce |
6eacf0ad7871a5a01c4b7178181798f3abaf6a48 | 1536a6cabaa9b6429603d57df6705a14063e016a | /src/networkx/algorithms/isomorphism/vf2weighted.py | a3142485aa277bd6563c933fd41e6917b9d77885 | [] | no_license | lorenzoriano/Graph-Evolve | ac7da40f7b27afdca7d929ae3e10308874929f1c | 11b6f43beaa88254776da959da7bcd9c4cd21eba | refs/heads/master | 2020-05-02T20:10:38.282396 | 2011-12-16T11:01:45 | 2011-12-16T11:01:45 | 1,967,115 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,794 | py | """
VF2 implementations for weighted graphs.
"""
import networkx as nx
from networkx.algorithms.isomorphism.isomorphvf2 \
import GraphMatcher,DiGraphMatcher,GMState,DiGMState
__all__ = ['WeightedGraphMatcher',
'WeightedDiGraphMatcher',
'WeightedMultiGraphMatcher',
'WeightedMu... | [
"lorenzo.riano@gmail.com"
] | lorenzo.riano@gmail.com |
48fa7cf015ded5db313626bb690814ef8bce4466 | 3e897283fc2720dcb5d0860f4e38015d7f0c0ce0 | /db.py | b405120179e073fe4a867abe2da766cbd5b0073f | [] | no_license | theselfdrivingboat-com/heroku-selfdrivingboat | 3fa450f8cfade7e7233f4cf05212e02321b1bbd0 | 06630aa5eebff598c67872021416d9fd81fb733f | refs/heads/main | 2023-05-05T01:33:27.103829 | 2021-05-29T22:18:42 | 2021-05-29T22:18:42 | 348,523,745 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | import os
import psycopg2
try:
DATABASE_URL = os.environ['DATABASE_URL']
except KeyError:
with open('db.secret', 'r') as f:
DATABASE_URL = f.read()
#https://www.psycopg.org/docs/usage.html
"""
theselfdrivingboat::DATABASE=> \d boat_commands
Table "public.b... | [
"lessandro@fb.com"
] | lessandro@fb.com |
517ef682eaa2f91d28f6f04979cd561e42f77735 | 9522f191729ee115bac785721b4dd324ce65cf8a | /lesson_4/task_4_4.py | 8910dd0fae93b3f48e0b8726781ee2b2536af7c8 | [] | no_license | SvetlanaTsim/python_basics | 89ed9549c8a5d10138474e26229d4fb30657bb6f | 7ffd588b9c9d4c601d3d15a1ee52b2e355343a98 | refs/heads/main | 2023-08-21T07:52:55.721827 | 2021-10-18T15:04:27 | 2021-10-18T15:04:27 | 370,294,080 | 0 | 0 | null | 2021-10-18T14:33:54 | 2021-05-24T09:16:18 | Python | UTF-8 | Python | false | false | 537 | py | # Написать свой модуль utils и перенести в него функцию currency_rates()
# из предыдущего задания. Создать скрипт, в котором импортировать этот модуль
# и выполнить несколько вызовов функции currency_rates(). Убедиться, что ничего лишнего не происходит.
from utils import currency_rate
currency_rate('hkd')
currency_ra... | [
"svetline87@mail.ru"
] | svetline87@mail.ru |
2f6a85cebe53b633e4ca3f5350fa4a5fa0d56e29 | d5d3a69af574986e8c70751a84ee83cfd88fa0ef | /Distributions.py | c5ab6c149003081f7e628161b2d81d39fad8f28c | [] | no_license | people-robots/SafeNavigationHumanExperiments | 09e8d95a53e08da8338cd64612396df2b995c303 | da5dade7344a2f44d65058e350493f6456a422da | refs/heads/master | 2020-05-19T03:50:49.007702 | 2019-08-03T00:40:13 | 2019-08-03T00:40:13 | 184,810,582 | 2 | 1 | null | 2019-08-03T00:40:14 | 2019-05-03T19:34:18 | Python | UTF-8 | Python | false | false | 1,393 | py | import numpy as np
class BasicDistribution:
def __init__(self, degree_resolution = 1):
self.degree_resolution = degree_resolution
self.cached_distribution = None
def get_distribution(self, center = 0):
if self.cached_distribution is None:
self.cached_distribution = self.generate_base_distribution();
r... | [
"x1780375010@gmail.com"
] | x1780375010@gmail.com |
c105a5762406b0a1c7513ccb0e5dd7f42d807e22 | 28013f06c5f480b7b9fc37185559a3d7b4949f04 | /venv/Scripts/django-admin.py | c63ad342d9a7545f90a72a61ecc5ae386f113875 | [] | no_license | zaricnikola/tvitko | fa5aa7b2c317bafcdb36f3bc96a3b8d3b9e748b9 | 377060a8dbca027236f80cf321944fa8f4562556 | refs/heads/master | 2022-12-22T04:23:27.959308 | 2018-03-11T17:50:48 | 2018-03-11T17:50:48 | 124,666,877 | 0 | 1 | null | 2022-12-11T17:26:08 | 2018-03-10T15:09:19 | Python | UTF-8 | Python | false | false | 176 | py | #!c:\users\korisnik\pycharmprojects\projekat1\venv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"zaric.nik@gmail.com"
] | zaric.nik@gmail.com |
f3a9e1daddda62c6e0533bdb6de5fc332a856c3e | 12b77f29511b6903cba9c931a791535ed438a538 | /abcd/asgi.py | 48d84d6042364e24b176acebeea87a4895083aa6 | [] | no_license | shabin75/abcd | db079379aaf8a0c85240594a8d2e32e43e8f9b17 | 19118b2c56045379bb9e4de451f0bff35471dece | refs/heads/main | 2023-04-25T09:14:04.089485 | 2021-05-14T07:12:30 | 2021-05-14T07:12:30 | 367,269,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for abcd project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"shabin75@gmail.com"
] | shabin75@gmail.com |
575e4cc071d0b136f9b85a000e788bd355f886ba | cc23a18b4e031a9c1f3082ad79f9c9e1bd0314bc | /restaurants/migrations/0002_auto_20160807_1257.py | d1fcddb906023f9b9c71332bbae54a1bdf23b36a | [] | no_license | shahsaumya/Restaurant-Picker | 1170354d5d11944b9c3fa76dc30044fa604a4c57 | 5821b4c9b0f0d8a577509422b8e374d15366c51a | refs/heads/master | 2020-09-21T21:10:55.528210 | 2018-01-04T20:07:59 | 2018-01-04T20:07:59 | 67,931,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-07 07:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0001_initial'),
]
operations = [
migrations.RenameField(
... | [
"Saumya Shah"
] | Saumya Shah |
7fd0208b9639daf5011460a29c186bc7c01996ad | 64159d10f8db2f6a0719de2493d970e1c2624efc | /split.py | 0ecbaeda6f61ee8d08a8074d9953d8736e4664e0 | [] | no_license | AlexisK/ws_dsua_2017 | 50521b3bb1122325a788a1b759499fab1cd1c5eb | a91017b42097561c25389be21b7250d5650ee65f | refs/heads/master | 2021-08-19T12:49:03.547930 | 2017-11-26T11:12:30 | 2017-11-26T11:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | import sys
import codecs
import math
class WrongFileLength(Exception):
pass
def file_len(data_path):
with codecs.open(data_path, encoding='utf-8', mode='r') as fname:
for i, l in enumerate(fname):
pass
print('File %s length: %s' % (data_path, str(i + 1)))
return i + 1
def r... | [
"korobov.alex@gmail.com"
] | korobov.alex@gmail.com |
b32e09a4a1743cf37ac6566c2894a9813e366fcf | 1b486327dacb6057e085fb855b936ad30d63a0e2 | /python/numbers/list-prime-numbers.py | c8b83e092a6f7e02a0fd29d138b1ba87db02a8f4 | [] | no_license | ritchiefitz/interview_questions | de16a6067be15e1b43239ef224acafe701afef94 | 0496044955d6d631ef9b8229d31fdd61990ccf83 | refs/heads/master | 2021-01-02T09:32:54.871115 | 2014-10-17T18:30:41 | 2014-10-17T18:30:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import sys
import math
def list_primenumbers(num):
print "\nAll Prime Numbers Under", num
for n in range(1, num):
if all(n % i != 0 for i in range(2, int(math.sqrt(n)) + 1)):
print n
numbers = sys.argv
del numbers[0]
for i, num in enumerate(numbers):
list_primenumbers(int(num)) | [
"ritchiefitz1@gmail.com"
] | ritchiefitz1@gmail.com |
131da4ef6887fa5704722436717046f8e50c0a34 | 2f0bde4d37b7ea1aad91ab44b5b4526d0bec30ce | /examples/strike-slip-example/okada_driver.py | b09fae0728d457d440530d09f1f90b57ca4f9062 | [
"MIT"
] | permissive | kmaterna/Elastic_stresses_py | 5c78a628136f610ec68e7ee38d8bc76515319e4f | 549a13c6c7fa3c80aac9d63548fdbf3b1ec7b082 | refs/heads/master | 2023-08-28T21:54:42.500337 | 2023-08-18T01:45:18 | 2023-08-18T01:45:18 | 141,371,162 | 42 | 11 | MIT | 2022-08-09T14:22:15 | 2018-07-18T02:37:59 | Python | UTF-8 | Python | false | false | 1,128 | py | #!/usr/bin/env python
import Elastic_stresses_py.PyCoulomb.fault_slip_object as fso
from Elastic_stresses_py.PyCoulomb import run_dc3d, configure_calc, output_manager, io_additionals
# Definitions
lon0_sys, lat0_sys = -120.5, 36;
bbox = (-121.5, -119.5, 35.2, 36.8);
lonlatfile = "Inputs/lon_lats.txt";
source_slip_di... | [
"kathrynmaterna@gmail.com"
] | kathrynmaterna@gmail.com |
a386ccedf20d5d2d49c4c93a445d9977d09b5804 | 20c6cb5af100c0208ba66b995655cebc661d6916 | /options.py | baecbda8c6727ac4d3bc16c05218570675b17f57 | [] | no_license | Anonymous-2611/AdaRec | 35cb231cf8b1baf364aa3df9198cb7109dca2b71 | 501c0082e0090e3bb5831197b9c054592b513a7a | refs/heads/master | 2023-02-20T16:08:53.824420 | 2021-01-21T08:08:04 | 2021-01-21T08:08:04 | 331,169,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,859 | py | import argparse
"""
==========================
All options' parsers.
==========================
Except for global setting (e.g. name/gpu/seed/seed/etc.), options are designed like `{scope}_{option}`.
Note: `scope` is not something related to real code, they just make
options easy to arrange and look pretty when ... | [
"cl15179779122@163.com"
] | cl15179779122@163.com |
a849cbe8bf109f0432486551e1295f4c785d43ba | 3a32644df62877604b44593267d41d3c664c1867 | /5-selim_sef/create_folds.py | d29b9e239a24254db5e5f31c9062d3ac25b5146d | [
"BSD-3-Clause",
"Python-2.0",
"MIT",
"Apache-2.0"
] | permissive | avanetten/SpaceNet_SAR_Buildings_Solutions | f5872778baf7cd7f7b22f2a4b104a5f680a33a28 | 6a9c3962d987d985384d0d41a187f5fbfadac82c | refs/heads/master | 2023-01-21T01:43:04.626934 | 2020-12-04T00:15:21 | 2020-12-04T00:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import argparse
import pandas as pd
import numpy as np
from numpy.random.mtrand import RandomState
from sklearn.model_selection import KFold
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--csv',
default="/mnt/sota/datasets/spacenet/train/AOI_11_Rotte... | [
"noreply@github.com"
] | noreply@github.com |
720b17067175b8210714342c5cbfb9f099f13432 | fb990d3b9f87c4382b8f2398f5e379485f1a88df | /portfolio/views.py | d7856ad160df31bcefdf76b900ed31997d3a40ff | [] | no_license | mtaz337/Django3-Portfolio | cb8997894dacde379bfbaf33c9a4b4b6b70cdfc1 | 83787ec1150fc37814d50cdf9586123d896cdfac | refs/heads/master | 2023-08-30T12:23:25.759757 | 2021-11-01T22:25:33 | 2021-11-01T22:25:33 | 423,620,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.shortcuts import render
from .models import project
# Create your views here.
def home(request):
projects = project.objects.all()
return render(request, 'portfolio/home.html',{'projects':projects})
| [
"mahirtaz@gmail.com"
] | mahirtaz@gmail.com |
be879a7d3d071b9d7054fd314b9dae4616b984a0 | c82c0f445b6cd4fa390f7b217605cd656432a256 | /counter/urls.py | d4f66f04433ba6d285f30f22e06f1ef1e3ec8917 | [] | no_license | zione/skip | 5b2b576ec40d2c909d40feeb43e5ec6eb1b88648 | d3eb27e7ef180ed4193653ced3acbce5b0dca002 | refs/heads/master | 2020-03-17T03:41:59.296290 | 2018-05-14T07:23:48 | 2018-05-14T07:23:48 | 133,246,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.urls import path
from django.conf.urls import include
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register(r'posters',views.PosterViewSet)
urlpatterns = [
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('... | [
"huangmayi@126.com"
] | huangmayi@126.com |
762c40055a4f516994d4b1b12d541777f4ca027d | 2e0e49425ded98d0a70b44ec8e02d37ceb69392a | /wristlock/runs/lock_lock.py | 081e4342510fa89e7829a88b419d75d58914b5ea | [
"MIT"
] | permissive | laurentrivard/pykevoplus | c5819b9c6ce86b85db84f69113cd315a20a14716 | e0c8074c2cae39745eea98db46e072b1246f3583 | refs/heads/master | 2021-05-11T21:04:04.992763 | 2018-01-24T04:11:44 | 2018-01-24T04:11:44 | 117,460,853 | 1 | 0 | null | 2018-01-14T19:41:37 | 2018-01-14T19:41:36 | null | UTF-8 | Python | false | false | 470 | py | from wristlock.runs import BaseCommandRun
from wristlock.entities import LockState
class LockLock(BaseCommandRun):
def __init__(self, email: str, password: str, lock_id: str):
super(LockLock, self).__init__(email=email, password=password, lock_id=lock_id)
def run(self):
super(LockLock, self)... | [
"laurent@ticketleap.com"
] | laurent@ticketleap.com |
b2accf861b3793cad894dd1672b3102bd8f0ae3b | 188a114f7e7c336041b8b5d8db07bf929690a616 | /euler/problem78/euler_sol.py | a26d38cd45cf314b1563a1b0eb6eb256ebefa78e | [] | no_license | rhalstea/rhalstea_code_challenges | 3194eda68e9a1d138d1ff29ac6bce4e6519a3dbf | 78725a73bbaad12f9d3ec510b14901b7761dcd46 | refs/heads/master | 2021-01-10T20:13:52.578893 | 2012-02-12T21:05:34 | 2012-02-12T21:05:34 | 2,413,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | #!/usr/bin/env python
d = 1000000
p = []
for i in range(d):
p.append(0)
p[0] = 1
p[1] = 1
for i in
print d
| [
"rhalstea@gmail.com"
] | rhalstea@gmail.com |
b421125d6784e475deb129da3e9ec285ef8d30e5 | 221052194dc74a31d2f60ff386429aa0dca691a3 | /options.py | 4a9f9b354439da91b627fb6f63d209020b0a1d6d | [] | no_license | pucrs-automated-planning/prob-plan-recognition | 7eda366567ffe33007ce119daa5c3015262e3aaf | 85df94d9d7b1aa7ae21b0c26ad4c63c9fed86129 | refs/heads/master | 2023-08-04T21:23:22.150192 | 2023-07-24T14:49:19 | 2023-07-24T14:49:19 | 111,575,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,264 | py | import getopt, os, sys
def usage():
print >> sys.stderr, "Parameters:"
print >> sys.stderr, "-e --experiment <file> Plan Recognition experiment files (tar'ed)"
print >> sys.stderr, "-h --help Get Help"
print >> sys.stderr, "-t --max-time <time> Maximum allo... | [
"felipe.meneguzzi@gmail.com"
] | felipe.meneguzzi@gmail.com |
ffd30679e6f9e60e46a044798f3da994f2d94de4 | 33045abfa768b151dfbcf157960e951d7939ca4e | /script python/tableau_overlay5.py | db7a018d36eed68c0dc851b74df33ae998647e97 | [] | no_license | kedenn/portfolio | 42393d66f67b3d0e37c0e904bd3912747afe8cf3 | 07c036a6fa549396e860539ffb74dc695e50e26c | refs/heads/mainPortfolio | 2023-08-03T19:16:37.704559 | 2021-09-24T17:04:11 | 2021-09-24T17:04:11 | 410,043,841 | 0 | 0 | null | 2021-09-24T17:12:03 | 2021-09-24T17:12:02 | null | UTF-8 | Python | false | false | 5,761 | py | import tkinter
from tkinter import *
import tkinter.font
import turtle
#import mouse
#import keyboard
import time
#from pynput import keyboard
#fenetre 1
win = Tk()
win.attributes("-topmost", True )
win.overrideredirect(1)
win.attributes("-alpha",0.4)
#win.after(5000, lambda: win.focus_force())
#inf... | [
"noreply@github.com"
] | noreply@github.com |
cf54eaf31fad96e9bdadcbc785f540df4d2170c5 | 6dc072672c67edd0b6695156e853dd9580ecc081 | /preprocess.py | 09b9ca9c9d3538fec8218cf8f255cbdd1d850840 | [] | no_license | CSInfoMgmt/Topic-Lexicon | 81371f2c170b18a9e51398e047c09f1ecb42f310 | 673d2725a273e000eb2a232444bf652cf47b6266 | refs/heads/master | 2020-08-14T12:13:28.890408 | 2019-10-15T00:00:57 | 2019-10-15T00:00:57 | 215,165,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # coding=utf-8
import unidecode
import inflection
import re
from nltk.corpus import stopwords
stop = stopwords.words('english')
from nltk.tokenize import RegexpTokenizer
tokenizer = RegexpTokenizer(r'\w+')
from nltk.stem.porter import PorterStemmer
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer(... | [
"noreply@github.com"
] | noreply@github.com |
5ba698b3740f6ef0b403b70da096ee2d1dfeeed2 | 6f7a1e4a53a142250c9a5df71066c4dfaebaa6b7 | /day3/hacker_rank_problems/hackerRankRegexFindMethod.py | c97344c0b422a8236ded49c8d5a044b07b2cca54 | [] | no_license | Hamdi-Limam/PythonTraining | 25a22682400bd571c21837a00ed2e4b27c5a38c8 | dcf02d7e097cb5234c37aa086461dfcaf31f610f | refs/heads/master | 2023-09-04T07:38:42.756701 | 2021-10-31T22:06:46 | 2021-10-31T22:06:46 | 405,022,986 | 4 | 0 | null | 2021-10-06T10:34:11 | 2021-09-10T09:16:05 | Python | UTF-8 | Python | false | false | 1,033 | py | # HackerRank problem for Regex find methods. Link: https://www.hackerrank.com/challenges/re-findall-re-finditer/problem
import re
# The expression re.findall() returns all the non overlapping matches of patterns in a string as a list of strings.
print("Result of re.findall: ", re.findall(r'\w','http://www.hackerrank.c... | [
"limamhamdi13@gmail.com"
] | limamhamdi13@gmail.com |
abaf47ad2543a3d51f4b5305edccf1b4966797bf | aa0d322f877b8ecc65b638e5443e0f5912953e6a | /apisapron/api/views.py | 0cc796eb038ac0dcdd2a4b534be0e6613a4585f8 | [] | no_license | Rapaix/sapron | 8c75128b1b1a309a8891e5b17e5e2ea40815eb2d | 60dfbf03ec09c44dcc2dc28106dd7e0005eebe3e | refs/heads/main | 2023-07-10T23:54:23.004284 | 2021-08-13T19:14:53 | 2021-08-13T19:14:53 | 395,766,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | from .serializers import AgendaListSerializer, AgendaDetailSerializer
from rest_framework import generics, filters
from .models import Agenda
class AgendaListAPIView(generics.ListAPIView):
queryset = Agenda.objects.all()
serializer_class = AgendaListSerializer
filter_backends = [filters.SearchFilter, fil... | [
"rafaelpx8812@gmail.com"
] | rafaelpx8812@gmail.com |
c0a7a6f4094ac8baa62b9dcb357dbaeca1202ae3 | 56ced49e5b05a27e0c25249b5f7292ad52d0b1b1 | /random_tsv.py | cd78d6bae348c4f78f7344b8793da3b35c2d4d69 | [] | no_license | Docproc/opentargets_wip | b1e5cc5f6514d3c866f0dbd154786822c3ef662a | c1c118ffe57cbb9f34fad723289140b8c4ca97b5 | refs/heads/master | 2020-04-02T09:36:45.890761 | 2018-11-04T18:53:19 | 2018-11-04T18:53:19 | 154,301,038 | 0 | 0 | null | 2018-10-31T18:59:25 | 2018-10-23T09:32:18 | Python | UTF-8 | Python | false | false | 2,209 | py | import random
import sys
import logging
from ontoma import OnToma
import argparse
import pandas as pd
# Generate a random sample from a TSV file, optionally mapping phenotypes to EFO
parser = argparse.ArgumentParser(description='Build random data from actual values in a TSV file')
parser.add_argument('-input', help=... | [
"glenn@docproc.com"
] | glenn@docproc.com |
c91f5d4f977500ac292a5e429656b74940e20cf8 | ad1a43084c709d340b70af786dc16057ffec1fbe | /Module 1/Chapter 14/prog4.py | 0b6e8a3e75f94970602035058788d47629ce66b4 | [
"MIT"
] | permissive | PacktPublishing/Raspberry-Pi-Making-Amazing-Projects-Right-from-Scratch- | f58ad7c1f567cc7dee9bde9e5d2ac00e7a652705 | 49fd30ca8e1e30e7d85cf14e9dcb6e1d24d4a445 | refs/heads/master | 2021-06-24T22:18:39.631825 | 2021-01-14T08:52:38 | 2021-01-14T08:52:38 | 67,773,927 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import socket #for sockets
import sys #for exit
try:
#create an AF_INET, STREAM socket (TCP)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error, msg:
print 'Failed to create socket. Error code: ' + str(msg[0]) + ' , Error message : ' + msg[1]
sys.exit();
print 'Socket Creat... | [
"akashpatel@packtpub.net"
] | akashpatel@packtpub.net |
2c06f20f28a1ed6ea1691caac9bee631846f43d8 | 14b975092cef438cd8340d1c112925c85b336550 | /WXBackGround/urls.py | 47cc3b4fd51eaca7adfc4c8d1a9702a45d55a6a2 | [] | no_license | colacanfly/WXBackGround | a6bfaa2d037bc1091978b54801da8f8f6cce0fbf | 2057f12f74172199060a317e9d28fe7877e84284 | refs/heads/master | 2020-12-08T00:08:26.528831 | 2020-01-09T15:40:52 | 2020-01-09T15:40:52 | 232,832,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | """WXBackGround URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-... | [
"1445756326@qq.com"
] | 1445756326@qq.com |
9f46263a5d2231aea04564301949591db9df7a8d | b01f3776ecdd635fbe864161fa1d18ea0f442da3 | /neat/ctrnn/__init__.py | 294aa7e3e32c5d80b336004bca8851c27970c003 | [
"BSD-3-Clause"
] | permissive | dlotten68/CI_-teamJLD | 95405cddc96020de44776e3342e173b80cbdcbbf | 5648e6217f50a386473d4b0e01e99ef85b6c4bd8 | refs/heads/master | 2021-08-28T15:03:21.708032 | 2017-12-12T14:36:59 | 2017-12-12T14:36:59 | 109,374,616 | 0 | 1 | null | 2017-11-17T10:15:08 | 2017-11-03T09:03:52 | Python | UTF-8 | Python | false | false | 4,721 | py | """Handles the continuous-time recurrent neural network implementation."""
from __future__ import division
from neat.graphs import required_for_output
from neat.six_util import itervalues, iteritems
class CTRNNNodeEval(object):
def __init__(self, time_constant, activation, aggregation, bias, response, li... | [
"noreply@github.com"
] | noreply@github.com |
3b3a117221d6b53dde8de16074a991941662ffdb | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/11146113.py | 693fb033baff53bcb422a63ef8bda36e903bc01f | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/11146113.py generated: Fri, 27 Mar 2015 15:47:59
#
# Event Type: 11146113
#
# ASCII decay Descriptor: [B0 -> (J/psi(1S) -> mu+ mu-) (phi(1020) -> K+ K-) (K_S0 -> pi+ pi-)]cc
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/KKmumuI... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
abb5ec63e93933f52d609b3e35d1bf8f73ad9cdc | 7e756808567a4d61d4343489b2a158685845b397 | /shared/codes | 0d40f667138c3c4afa0ea72068908e6b7fb4bbe6 | [] | no_license | millotpg/uDj | ff4f25e0bd59a5349876a4834db37b3a156511ff | 7e9ea85057b102f95558995326fe7a1f52f55962 | refs/heads/master | 2021-01-10T23:36:54.080580 | 2016-10-09T17:56:53 | 2016-10-09T17:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | #!/usr/bin/python3
import pygame
import time
pygame.init()
pygame.mixer.init()
pygame.mixer.music.load("test.mp3")
pygame.mixer.music.play()
while True:
time.sleep(10)
continue
| [
"troutkt@mail.uc.edu"
] | troutkt@mail.uc.edu | |
b56110c8af873151bd51c274cf5ab2f8f6286c60 | 9bc7266b14fc9c780f8af0e4d30d14c4b922eba5 | /FPNN/imgaug/augmenters/arithmetic.py | c67a607cb2287e70393de6ba413693024a46fcf1 | [] | no_license | anasali90/code_samples | f59c93222039b42d866cdec6342f0fde7877945b | 3b0a6603e76f2b605a1797fe4fb7b3331413d933 | refs/heads/master | 2020-11-24T14:14:49.311576 | 2019-12-17T08:12:30 | 2019-12-17T08:12:30 | 228,187,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70,550 | py | """
Augmenters that perform simple arithmetic changes.
Do not import directly from this file, as the categorization is not final.
Use instead::
from imgaug import augmenters as iaa
and then e.g.::
`seq = iaa.Sequential([iaa.Add((-5, 5)), iaa.Multiply((0.9, 1.1))])`
List of augmenters:
* ... | [
"anasali2172112@gmail.com"
] | anasali2172112@gmail.com |
cf16ef3acd5037757589291f40cf352839ca0190 | 816ec70a15f7d4a4531bba90862ea50fda147237 | /mysite/urls.py | 58f6d206f77c6cf880eb1a8a3e0a96bc83987306 | [] | no_license | madhuprakash19/blogsite | 63d240f4301bfbe0eb25dcd20fe80e587d429434 | 757edba805dbc9bc9024f00e071f958354ecafd7 | refs/heads/main | 2023-07-07T22:24:50.657265 | 2021-08-10T13:03:45 | 2021-08-10T13:03:45 | 393,453,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | """mysite 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-based ... | [
"madhutp11@gmail.com"
] | madhutp11@gmail.com |
a15867a35dd920ebf76e728cf713b109c778aac1 | a11f098121fc5446f8dc7a9555034c51512a4e26 | /app03.py | 5e9a5b21f9738b072a606de1943a4357df144e6c | [] | no_license | anjoe/flask-study | 30b7f2adb1265790dee246dd97fee51f496b046b | 2b5639c9ef4ae77672ff8f4df1c5e1164af6b962 | refs/heads/master | 2020-08-06T21:03:42.926786 | 2019-10-06T15:28:58 | 2019-10-06T15:28:58 | 213,153,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from flask import Blueprint
app03=Blueprint('app03',__name__)
@app03.route('/t3/')
def show():
return 'app03.hello'
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
53bf208a90bb2722736c1446143d90b5f46b53ec | 9e1a416b36a7ccd2d206ec9b12db616b8c52b851 | /reviews/viewsets.py | 62a36428037e0f6e44359c57334defdd1f9b14b1 | [] | no_license | hyywon/F4-Back | bfcecbe25d06edc3ffedb7f00779270785f83cd5 | d3a41202eadfe4ab12094ca9ef9d6a6a5cf17e5a | refs/heads/main | 2023-01-01T01:48:55.860762 | 2020-10-26T13:25:14 | 2020-10-26T13:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from rest_framework import viewsets
from django_filters import rest_framework as filters
from django_filters import FilterSet
from .models import Review
from .serializers import ReviewListSerializer, ReviewCreateSerializer, ReviewUpdateSerializer
from rest_framework.generics import (
ListCreateAPIView,
UpdateAP... | [
"jinsol0330@sch.ac.kr"
] | jinsol0330@sch.ac.kr |
d1d565660577bb10f246a4aefa4b65af807b75a3 | cbd4475c32b9658fd712b368dbbdfb6083071e29 | /baymax_ui_auto_test/cases/case_data_integration/case_resourceMan/case_operate_dir.py | bdc59723be38e05fc906b8bf169482b10abd1ec3 | [] | no_license | xu-hn/UIautotest | 1b04617dd4f64dc0037606695a3e355a34368d0f | 4fa2b74b46687adaf86175960e44fcdfae35b4d1 | refs/heads/master | 2020-07-03T10:53:27.456575 | 2020-07-02T08:51:11 | 2020-07-02T08:51:11 | 201,883,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,184 | py | # -*- coding: utf-8 -*-
from common.BaseRunner import ParametrizedTestCase
import unittest, os, sys, time
from PageObject.data_integration_page.resourceMan_page.resourceMan_page import ResourceManPage
from PageObject.home.home_page import HomePage
from PageObject.login.login_page import LoginTestPage
from common.Eleme... | [
"350152004@qq.com"
] | 350152004@qq.com |
e15fbbc01d14573d8ad538799b6a7f1880f85372 | d03a31d080267010c7bbd5ac9cbaa94cffa23292 | /tests/test_utils.py | 19edf3ba3488d535380466b4472b639ffe03e69d | [] | no_license | chmouel/python-nonobot | 0d654f4e608f77bb85d0adb16b9d3639a2586f0b | 4e07ec1a4ba755a6f7070f5778fe734a3180ad70 | refs/heads/master | 2021-01-01T18:02:30.832406 | 2014-12-05T10:48:14 | 2014-12-05T10:48:14 | 17,373,952 | 0 | 4 | null | 2014-03-15T09:04:21 | 2014-03-03T17:34:52 | Python | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
# Author: Chmouel Boudjnah <chmouel@chmouel.com>
#
# 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 require... | [
"chmouel@chmouel.com"
] | chmouel@chmouel.com |
2b11e396b21053b8fe884f17e6abd9bd5374a2a3 | 48e6a442f35cace8df3a87e1660e4539a084b39e | /revision/revision_5/sweepL1L2/generated_data/0.20_0.60/A2_pod100/traffic_matrix_1/A2_1.py | 731507a11c329685e372c3f32ebcd93b27b1f1c8 | [] | no_license | LiYan1988/kthjocn | 9056c05e5095a93b47a22c9e027458f410c0d8f3 | 7e5de3b3fb2a48c6dcaf6d7788ab823c5c743845 | refs/heads/master | 2021-01-01T03:56:47.251908 | 2018-06-08T07:27:33 | 2018-06-08T07:27:33 | 77,261,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
from sdm import *
from gurobipy import *
import pandas as pd
np.random.seed(2010)
num_cores=5
num_slots=80
mtridx ... | [
"lyaa@net.chalmers.se"
] | lyaa@net.chalmers.se |
835478f976795573d8355bbee93293234d4cb55f | c87ae09a0229b4b4620c511b0c51eb685ec22b99 | /Python全栈学习/第四模块 网络编程进阶&数据库开发/practise/基于多进程的socket通信/队列的使用.py | b186e6d31bb0a9672c52aa8b644e8f974705eaaf | [] | no_license | caideyang/python2018 | 050f4c29c37b5bec963e77e0724cd05a9350deed | b7a3a728ef36b43448dc5ff594fdba500b67ad53 | refs/heads/master | 2020-03-25T06:02:54.699941 | 2018-11-01T23:04:29 | 2018-11-01T23:04:29 | 143,480,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/python3
#@Author:CaiDeyang
#@Time: 2018/9/26 10:41
from multiprocessing import Queue
import time
if __name__ == "__main__":
q = Queue(3) # 创建队列,最大深度3
q.put("hello") # 往队列存放消息
q.put([1,2,3,4])
q.put({"name": "caideyang"})
# time.sleep(1)
print(q.empty()) # 判断队列是否为空
print(q.full(... | [
"deyangcai@163.com"
] | deyangcai@163.com |
635f7add7ac5d16f01eeef321294fbf88823c467 | 43f85daf9464e1bf8bdfaeb8988107e8b29555f6 | /시즌3 - 웹 개발 쉽게 하Django/3-6/catalog/migrations/0001_initial.py | 27fabd6bb1534fde67d961ecc0c6c9067360d5b8 | [] | no_license | min98-k/chocopy | 578914ff887078bcfbb97af0ffcc9332c7a37cf7 | bcafe77329966dc2bdd9d61ed19b1b855d59ce4b | refs/heads/master | 2023-04-21T02:14:47.786528 | 2020-03-22T23:36:49 | 2020-03-22T23:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Generated by Django 2.1.5 on 2019-01-19 01:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
('id', models.AutoField(au... | [
"netscout82@naver.com"
] | netscout82@naver.com |
c8892cc719511184005cee0885fc673eb6eda1e9 | e39683d9726c304c73e770e251fc7d9890ddda8c | /dadata/__init__.py | 1fff4a8e83c8f3c1d58830e8760bdb1b69878e68 | [] | permissive | okfish/django-dadata | 2ce53f80d51427f7716d3b3c07436577ed872c46 | 79ddb72cd3f15754dcf4d3e010615c5124f60d1b | refs/heads/master | 2021-01-10T05:50:13.748345 | 2018-12-23T14:07:30 | 2018-12-23T14:07:30 | 43,523,851 | 3 | 4 | BSD-3-Clause | 2019-05-30T12:40:53 | 2015-10-01T22:08:55 | Python | UTF-8 | Python | false | false | 26 | py | __version__ = '0.0.1-dev'
| [
"okfish@yandex.ru"
] | okfish@yandex.ru |
8883460618997c1a942e479a38717a23d5ddb63b | b183448083cd328034a19887910059bfe52945bc | /evn_gmail/bin/symilar | 390e7f9706effc65a684c5067a554e696a0c22ee | [] | no_license | asif-django/projects | d43b90a0ae2cbcd77467ca0e7c1401aaed8dcb97 | bec9b5e86c591065fb3bd3f737a6f5f14a2d099e | refs/heads/master | 2022-12-18T09:47:27.295998 | 2020-09-24T15:55:07 | 2020-09-24T15:55:07 | 298,251,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/grktechnologies/classprojects/first_project/evn_gmail/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"asifkhan.python@gmail.com"
] | asifkhan.python@gmail.com | |
bc3468411b2c792670f4d7186b1db0b21a8e59be | 4f54959f2142171104713c5a288bc1fc9b6b1c38 | /lists/migrations/0001_initial.py | 7d52212cbdbc7ad91d050e10098b189d52d83423 | [
"MIT"
] | permissive | votatdat/obeythetestinggoat | 87284ebf97b794106d96275fd3b217aeb37a42d0 | 5af0278ede75914ebce7f9ed8a63dd95fb5f576d | refs/heads/main | 2023-04-22T13:49:56.084873 | 2021-05-10T10:43:04 | 2021-05-10T10:43:04 | 361,966,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-04-29 09:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item'... | [
"tatdat13@gmail.com"
] | tatdat13@gmail.com |
65bb85decf0f3c01946c6d6c872c386dcd4b68c6 | 73d2d54a0b6763d867e2e75f6d111aa686f30c3e | /data/text_dataset.py | b42032e74dbc9cbc410faadd9375199769655956 | [
"MIT"
] | permissive | chickenfingerwu/ScrabbleGAN-ETL-dataset | caf82c88f77bc1fb24d2b2a9b0b8cdf878551a91 | 759035836510485ca8bda6af37d7dce498f2e211 | refs/heads/master | 2023-02-21T06:17:26.188360 | 2021-01-26T14:56:12 | 2021-01-26T14:56:12 | 311,996,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT
import random
import torch
from torch.utils.data import Dataset
from torch.utils.data import sampler
import lmdb
import torchvision.transforms as transforms
import six
import sys
from PIL import Image
import numpy as np... | [
"swlpham@gmail.com"
] | swlpham@gmail.com |
09c4d75546bbe0a6617534eaf629bb3047355823 | 9e525820bd268caf63e14aee63a06cf810de677c | /project_summarizer/plugin_manager/bad_plugin_error.py | cc71c63da0ba7351ee928de279cecace2932fa58 | [
"MIT"
] | permissive | jackdewinter/pyscan | 99b72f6578a30c5d767cd8a51b6f93ada42753b7 | aff981ac403a0cd2ef1b5a96c8c7ddf5478615bc | refs/heads/master | 2023-08-05T04:34:20.252182 | 2022-08-26T02:06:14 | 2022-08-26T02:06:14 | 232,250,571 | 1 | 0 | MIT | 2023-03-06T10:02:47 | 2020-01-07T05:38:01 | Python | UTF-8 | Python | false | false | 2,326 | py | """
Module to allow for a critical error within a plugin to be encapsulated
and reported.
"""
from typing import Optional
class BadPluginError(Exception):
"""
Class to allow for a critical error within a plugin to be encapsulated
and reported.
"""
# pylint: disable=too-many-arguments
def __i... | [
"noreply@github.com"
] | noreply@github.com |
6a2d4f6dc8fd8104d61daf5bdc7ca47981cdf426 | b25050e2694af14ab7ee8b59f966231973b18caa | /PerceptronAlg.py | b75fe4d85decf79c3e0d13c25fa4c28c2615b213 | [] | no_license | dlee67/MLPy | c40ef9d5548061aac0323daa98b29884b38f64e9 | 6ecb54663716da3b1962409d4baff0e6cf73a204 | refs/heads/master | 2021-09-03T05:02:17.629821 | 2018-01-05T20:29:06 | 2018-01-05T20:29:06 | 114,918,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | py | #When it comes to algorithms, whoever is teaching it will not tell us the significances within the algorithm,
#that makes it work.
from matplotlib.colors import ListedColormap
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('https://archive.ics.uci.edu/ml/'
'mach... | [
"dlee67@msudenver.edu"
] | dlee67@msudenver.edu |
dd7b95e500628e6940aa3810aa36052e0ea0e6aa | c83161b000e1ae352e7bfb4cc88d234367304fb8 | /python/wx/center.py | 2f69c9c98e916b7e8a0d2769f8c214d33fc4d6d1 | [] | no_license | opsahl/programming | 0b9545f1fe762913e34a9114d26cf48e03c670a0 | 721e8a1cbd6aa109095f4d57bb51315ab671305d | refs/heads/master | 2022-08-16T03:27:38.331905 | 2012-08-19T14:03:42 | 2012-08-19T14:03:42 | 5,289,479 | 0 | 0 | null | 2022-07-21T22:33:44 | 2012-08-03T19:28:59 | C | UTF-8 | Python | false | false | 371 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
#
# center.py
import wx
class Example(wx.Frame):
def __init__(self, parent, title):
super(Example, self).__init__(parent, title=title,
size=(300, 200))
self.Centre()
self.Show()
if __name__ == "__main__":
app = wx.App()
... | [
"opsahl@torerling.com"
] | opsahl@torerling.com |
8583238485b2660402d8b57cac48f5d116c6583c | 20f29a892a7f5c77045936b7c8ff8162e5d31997 | /time_system/clocker/migrations/0010_auto__add_field_timesheet_hourly_rate.py | 3b187a7598e54270e7d14e66b3bace6b0ba65195 | [] | no_license | orlandobuzana/timeclock | f1953bdd6fbd99de0952ba870da4324ad119cd36 | 146c24c51e006b09544e3311463e8639f870e1ef | refs/heads/master | 2020-12-28T21:18:22.201190 | 2014-08-03T22:04:52 | 2014-08-03T22:04:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,123 | py | # -*- coding: utf-8 -*-
import 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 'Timesheet.hourly_rate'
db.add_column(u'clocker_timesheet', 'hourly_rate',
... | [
"bmurphy@visgence.com"
] | bmurphy@visgence.com |
35b145b54af2566ea269e246ccca0064a63940d7 | c5e0e3dd8b904d09bfa19761bdbf0f9fd4fdfc75 | /merge_data.py | 0c4c0f1d875d178569b7cbee0aed7f48c8b9d673 | [] | no_license | pauldiepold/MasterProjekt | a50a793305841cbcb2af8e65bd9deffcaf668895 | be48e3050970ae9379a06105edc92062edff686e | refs/heads/master | 2023-08-07T14:39:44.458492 | 2021-09-17T10:26:32 | 2021-09-17T10:26:32 | 370,984,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,003 | py | import pandas as pd
lookup = {
'ita': [
['5R04', '4R04', '3R04', '1Y01', '2Y01', '2R03', '5R05', '1R02', '2Y02', '2R04'],
['1R03', '3Y01', '1Y02', '3Y02', '2Y03', '4R05', '4Y01', '5Y01', '5R06', '3Y03'],
['1Y03', '3R05', '4Y02', '2Y04', '3Y04', '4Y03', '1R04', '5Y02', '5Y03', '1Y04'],
... | [
"paul.diepold@yahoo.de"
] | paul.diepold@yahoo.de |
8655e2676e99c9d122273c120717d9195ba1dbe8 | 745f6b82a6ae2108e5055210c00bced272992ccc | /lib/session.py | 679a6d455cedd3f2ae9d2347ac3091210dba9ab9 | [
"MIT"
] | permissive | kankje/blog | f594a512b7d598bc76e325c9c36b75edb2f5e4b4 | 67fa76b43a3fa2442ea90b025da3ccad9e5a41bf | refs/heads/master | 2020-05-19T03:42:45.309872 | 2014-05-08T11:02:47 | 2014-05-08T11:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | import pickle
from datetime import timedelta
from uuid import uuid4
from redis import Redis
from werkzeug.datastructures import CallbackDict
from flask.sessions import SessionInterface, SessionMixin
class RedisSession(CallbackDict, SessionMixin):
def __init__(self, initial=None, sid=None, new=False):
def ... | [
"kankje@gmail.com"
] | kankje@gmail.com |
33d791569b336bc8debbe72e4037f2fe71c44308 | b98fc8f9d303ff7288478e8b4d59ecb9f2269032 | /redditscraper/tests/test_posts.py | e434956a0aceb766bc93aa66c03f375e25d92a30 | [
"MIT"
] | permissive | nsfyn55/redditabusescraper | a359df59ac4718b124cba5f603f80fda6f342a43 | 0c5d210279e873389bbcff722e553b650abfa5b0 | refs/heads/master | 2022-12-19T11:53:49.832617 | 2018-11-07T15:47:26 | 2018-11-07T15:47:26 | 153,163,930 | 0 | 0 | MIT | 2022-12-08T02:26:02 | 2018-10-15T18:40:28 | Python | UTF-8 | Python | false | false | 3,462 | py | from redditscraper.data import posts, users
from unittest import mock
import json
import datetime
post_file = open('redditscraper/tests/data/posts.json', 'r')
post_json = json.loads(post_file.read())
single_post = post_json['data']['children'][0]
def test_clean_title():
raw_title = "Obama and Biden ride again... | [
"acarey@linode.com"
] | acarey@linode.com |
42078de29267bd24bf06287ba6b1afc98394fac3 | 9b9427a415d118640f21ae277103d80ac59d814a | /MyLang/LangPi/views.py | fdf417f79cf95af9e5b2d21ed669de96e23ed8a8 | [] | no_license | MinGH0311/2017- | f57de7fb679301fbe5303dded3f1c5403b404e0b | 8e243917e274916677bef01b0a8df155c4660c71 | refs/heads/master | 2021-01-19T16:43:23.794692 | 2017-08-22T04:23:44 | 2017-08-22T04:23:44 | 101,022,912 | 0 | 0 | null | 2017-08-22T05:00:08 | 2017-08-22T05:00:08 | null | UTF-8 | Python | false | false | 2,359 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import Login
import Ajax
import Listen
import Read
import Voca
import Util
def login(request):
return Login.login(request)
def register(request):
return Login.register(request)
def find_id(request):
return Login.find_id(request)
def change_... | [
"parksjin01@gmail.com"
] | parksjin01@gmail.com |
7aff18c1f4eb1588572df7d1e9b78d0096ea42c8 | 8dbe574f3b20308d79ef37643570d7dec15e67d9 | /cn.zero/py.ori.fmt/m1140.bin.py | d1675897ba84651c10bf4eed04b87afd190c32a7 | [] | no_license | xaeingking/ZeroAoVoiceScripts | 62526d004bd02e645970930ecd4b6053809092ab | 512c1fd544954a38c92fc097f5b0c006031ee87d | refs/heads/master | 2020-05-20T17:04:55.028776 | 2019-01-29T10:40:44 | 2019-01-29T10:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,701 | py | from ZeroScenarioHelper import *
def main():
CreateScenaFile(
"m1140.bin", # FileName
"m1140", # MapName
"m1140", # Location
0x006E, # MapIndex
"ed7304",
0x00080000, # Flags
... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
2d4343cd3084b61e1e48672feeb7de774d2d4833 | 6f3b3f29b0ed43f056526a7d96df27c623cf8a29 | /czsc/enum.py | ccd2fd8436e1ff3e6e6431b4b1183683bb279deb | [
"MIT"
] | permissive | dst1213/czsc | a163c362d162110557e64e8ea8b41350d4d90a00 | 939803a9b196c19db3d8498f63276a4fdb8a442b | refs/heads/master | 2023-04-22T04:17:22.703347 | 2021-04-30T13:53:40 | 2021-04-30T13:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,016 | py | # coding: utf-8
from enum import Enum
class Mark(Enum):
D = "底分型"
G = "顶分型"
class Direction(Enum):
Up = "向上"
Down = "向下"
class Freq(Enum):
F1 = "1分钟"
F5 = "5分钟"
F15 = "15分钟"
F30 = "30分钟"
F60 = "60分钟"
D = "日线"
W = "周线"
M = "月线"
class Signals(Enum):
Other = "Other~... | [
"zeng_bin8888@163.com"
] | zeng_bin8888@163.com |
2e1e60216857e39ac4b0889424814102c219c482 | c06f60d7c96b0cf3c1d1d09c1583cec70e7eee83 | /알고리즘입문/implementation/find_representative_value/main.py | e1f447a597cc06cbe0153ef5a3e9cb73d8c5c1d3 | [] | no_license | hongki-jung/algorithm | 8b77418f8597287d390757c4c596cf2b8a12b186 | 5b50c1bdc7c598a2be98f60cd4b2d2663b7db7a0 | refs/heads/main | 2023-08-06T17:29:13.494305 | 2021-09-21T15:50:31 | 2021-09-21T15:50:31 | 381,289,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # import sys
# sys.stdin=open("input.txt","r")
# n = int(input())
# a = list(map(int, input().split()))
# tmp = 0
# for i in range(len(a)):
# tmp+=a[i]
# average = int(tmp/len(a))
# initNumber = float('inf')
# for i in range(len(a)):
# if(abs(average-a[i]) < initNumber):
# initNumber = abs(average-a[i])
#... | [
"52274128+hongki-jung@users.noreply.github.com"
] | 52274128+hongki-jung@users.noreply.github.com |
9c3715620a5b25b37c3979ce308db7ca9c7a30c0 | c652bd024539f563ddabe17d2f88fcdc32a5fb64 | /artificial-intelligence/predicting_house_prices.py | 272485d365d1e94d420052fa97f33bbbde45832e | [] | no_license | luckeciano/hackerrank | b1c3f0471f65e0e46dcd38f7c92fb66691a6607d | e848e8dab9f94f5fa8fdb08d8657251a188f6faf | refs/heads/master | 2020-04-21T03:18:50.942721 | 2019-02-10T20:36:02 | 2019-02-10T20:36:02 | 169,281,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | import numpy as np
from sklearn.linear_model import LinearRegression
F_N = (raw_input()).split()
F = int(F_N[0])
N = int(F_N[1])
total_features =[]
Y = []
for n in range(N):
x_y = map(float, raw_input().rstrip().split())
feature_list = []
for i in range(F):
feature_list.append(x_y[i])
total_f... | [
"luckeciano@gmail.com"
] | luckeciano@gmail.com |
a7f1d277305c8d83ed636dbd93ae990fb9151277 | 34652a47355a8dbe9200db229a1bbc62619de364 | /Maths/diff_eqns/electrogravRK45adaptive.py | c27cb2519beb5537ac886dfec50963acbdc8f86c | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,226 | py | from __future__ import division
from pylab import *
import os
#Evaluates the derivative functions
def derivs(time, last_values, properties, alpha):
particle_num = size(last_values, axis = 1)
spatial_dims = size(last_values, axis = 0)/2.
grad = zeros((spatial_dims * 2, particle_num))
for j in arange(pa... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
de30a73a553193306c802bfaa033aeddd3682f2e | e5e2f917c3e116cf0cc9ca848ee9a9e2426c3576 | /30 Days Coding Challenge/day16_GCD.py | 77916ab568d26a8a5781342986e1426109780528 | [] | no_license | sikander27/Techgig-python | ca33b0d7e04a76408e5282a2f135c724b6087f2e | 61e753666227f19efc580e515b090e22999803c4 | refs/heads/master | 2023-04-02T06:13:50.677559 | 2021-04-11T07:14:37 | 2021-04-11T07:14:37 | 331,856,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | '''
For this challenge, you need to take input of two numbers ,
calculate their greatest common divisor (GCD) and print it to the stdout
'''
''' Read input from STDIN. Print your output to STDOUT '''
#Use input() to read input from STDIN and use print to write your output to STDOUT
def gcd(a, b):
# everyth... | [
"imsikandarkhan@outlook.com"
] | imsikandarkhan@outlook.com |
2767966ce0528f6e331be37edbe3ed2e1b8f78e2 | 93bd24e7508ed6b8a02c863c73c3f16adb5370ba | /src/interact.py | c81e252d0285a1394584e82f754f63fdf52d773c | [] | no_license | reloadbrain/flixify | d06d56ea4c5ffc9bdb50caa052790938a4153c8d | 390c169aa46ee70929cb50fd980336cb151b14d1 | refs/heads/master | 2020-03-28T17:21:36.658727 | 2015-12-24T19:28:04 | 2015-12-24T19:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import json
lis = []
with open("output/outFinal.json") as f:
c = json.load(f)
for pair in c:
lis.append((c[pair][0]+c[pair][1], pair))
ans = reversed(sorted(lis))
for item in ans:
print item
| [
"sanyam@iitkgp.ac.in"
] | sanyam@iitkgp.ac.in |
8276a8ebb69d15ec5527431093c0e68b429d4370 | 92cac54e6b901ae5957bcd2aa901331edf613fc2 | /venv/FaceRecognition/Lib/site-packages/matplotlib/testing/compare.py | 841c3c50422b42a6371e76c6f463e67117251de9 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | faiyazsamin/FaceRecognition | 833e7221422ea4a6ca75fa8b41f76b4f9ba8a722 | 9c0bd65f300784910a923f446cf33bacfc502b52 | refs/heads/master | 2022-11-29T21:36:33.590946 | 2018-05-24T19:52:21 | 2018-05-24T19:52:21 | 134,751,215 | 1 | 1 | MIT | 2022-11-17T20:05:03 | 2018-05-24T17:58:30 | Python | UTF-8 | Python | false | false | 18,106 | py | """
Provides a collection of utilities for comparing (image) results.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import atexit
import functools
import hashlib
import itertools
import os
import re
import shutil
import sys
from tempfile i... | [
"32957665+faiyazsamin@users.noreply.github.com"
] | 32957665+faiyazsamin@users.noreply.github.com |
def2f5d76a06abfa75bee8540d5a5982b97fa204 | 9fb1c85a6d39c08e2a3cc235335bc482ad909b71 | /prowler/providers/aws/services/route53/route53_domains_transferlock_enabled/route53_domains_transferlock_enabled.py | d49160981b34ad878af72233ab6ebf3869bfae89 | [
"Apache-2.0"
] | permissive | muharihar/prowler | 06dbdeaa0696dd65d72c33ff3c9f957b97f83d7a | 25c9bc07b219cc02004cc0b84adcfdcf18d5ad2b | refs/heads/master | 2023-02-18T01:26:54.161003 | 2023-02-10T11:38:13 | 2023-02-10T11:38:13 | 238,623,868 | 0 | 0 | null | 2020-02-06T06:36:36 | 2020-02-06T06:36:35 | null | UTF-8 | Python | false | false | 1,012 | py | from prowler.lib.check.models import Check, Check_Report_AWS
from prowler.providers.aws.services.route53.route53domains_client import (
route53domains_client,
)
class route53_domains_transferlock_enabled(Check):
def execute(self) -> Check_Report_AWS:
findings = []
for domain in route53domains... | [
"noreply@github.com"
] | noreply@github.com |
515436b4d5fe3ddd0030470fde74f0965147a76f | 96cfaaa771c2d83fc0729d8c65c4d4707235531a | /Configuration/Spring08Production/python/Spring08_PhotonJetpt30-50_GEN_cfg.py | 8cf29fde0fbca5f06b831fcb9e3f0f9fe8054a8d | [] | no_license | khotilov/cmssw | a22a160023c7ce0e4d59d15ef1f1532d7227a586 | 7636f72278ee0796d0203ac113b492b39da33528 | refs/heads/master | 2021-01-15T18:51:30.061124 | 2013-04-20T17:18:07 | 2013-04-20T17:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Gen")
process.load("FWCore.MessageService.MessageLogger_cfi")
# control point for all seeds
process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("C... | [
"sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch"
] | sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch |
c0784615677646eda804d4ea5f9351061c8c2357 | b4aaf7eaab9781c394457e9c5ce41897dc2acb29 | /app/monitor/routes_cpu.py | 448444f752e5018f257c72cd495052ab32003d19 | [
"MIT"
] | permissive | bcarroll/inmoov_mini | 17ba0505faf3317916c001c59a2cddde2b87fe10 | d0bddcfdd5ec5f434d70c97066c8d6fb62a6f933 | refs/heads/master | 2023-02-23T04:29:33.936277 | 2022-07-07T15:31:43 | 2022-07-07T15:31:43 | 129,016,192 | 0 | 0 | MIT | 2023-02-15T21:50:59 | 2018-04-11T01:29:55 | Python | UTF-8 | Python | false | false | 492 | py | import psutil
from app.monitor import bp
from flask import jsonify
from flask_login import login_required
@bp.route('/cpu/percent')
@login_required
def cpu_percent():
return( jsonify( psutil.cpu_percent(interval=1) ) )
@bp.route('/cpu/frequency')
@login_required
def cpu_frequency():
cpu_freq = {}
cpu_freq... | [
"brettwcarroll@hotmail.com"
] | brettwcarroll@hotmail.com |
e5d247bf7cc030a77b8a76348eccb8ccd9311a7f | f91f9330179236025528682df90c4ba9baaae49d | /backend/manage.py | f4749adf415cbcfc37b8618e105dd6561a310b4a | [] | no_license | crowdbotics-apps/test-4316-dev-9267 | 96e7b04626045a40333ef81f161bf7e096c68931 | 3a0ae32df3ea8175d4aa37a20dec262086e00eb4 | refs/heads/master | 2022-12-04T10:11:57.679231 | 2020-08-24T08:22:33 | 2020-08-24T08:22:33 | 289,866,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | 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', 'test_4316_dev_9267.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ee819a6e8372d9aa07f36cdf730a81eaea0c1055 | 18b977dccd70e9e5a1b553b28ab0413fb3f54f4b | /SoftUni/Python Developmen/Python-Fundamentals/04_Lists/the_office.py | 12c13b6f4c2e6e1f5e8584f7e661696c2d418881 | [] | no_license | stevalang/Coding-Lessons | 7203e3a18b20e33e8d596e3dfb58d26c50b74530 | 2d0060c2268ad966efdcae4e6e994ac15e57243a | refs/heads/master | 2023-06-05T08:28:33.290530 | 2021-06-16T19:37:29 | 2021-06-16T19:37:29 | 284,852,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | employees = input().split()
factor = int(input())
employee_happiness = list(map(lambda x: int(x) * factor, employees))
avg_happiness = sum(employee_happiness) / len(employee_happiness)
# above_avg_happy = [employee for employee in employee_happiness if employee >= avg_happiness]
above_avg_happy = list(filter(lambda em... | [
"rbeecommerce@gmail.com"
] | rbeecommerce@gmail.com |
cc8b434ce82b6e1625a617bbbd89b70bd16b8524 | f225b35d49562e7a1114968bdf9128dbc4cd91ab | /myspider/items.py | fa8e60c784f6743287563124add7390aebc383f6 | [] | no_license | 15032373556/scrapy_exercise | 1948ce42102f99e414ae214b27163eb1d9e3b338 | 7a6e8b7a395044bda3acb649ab8f5a74bc854d82 | refs/heads/master | 2022-11-25T13:29:28.726984 | 2020-07-25T03:09:41 | 2020-07-25T03:09:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ItcastItem(scrapy.Item):
# 抓取 1.讲师姓名 2.讲师职称 3.讲师个人信息
# 测试提交代码
name = scrapy.Field()
title = scrapy.Field()
info = scrapy.Field()
| [
"1798549164@qq.com"
] | 1798549164@qq.com |
57a18e4cb2aa5d0c6caec11aa70fd109c721f42d | 954de20148e5cc14a79439e532b51d790b4ef15a | /Chapter06/Tasks/rivers.py | e98a51312a5fd49ddd59dc33d3b54ae611bcaff0 | [] | no_license | d1rtyst4r/archivetempLearningPythonGPDVWA | 8803114f0bf9a3bbce55610bed477533c58b3630 | 794cab59c3f2cfabb677d7add5f3ecf3daf71e44 | refs/heads/master | 2023-04-10T01:42:51.505569 | 2023-04-02T10:38:04 | 2023-04-02T10:38:04 | 138,033,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | rivers = {
'nile': 'egypt',
'daugava': 'latvia',
'thames': 'england'
}
for river, country in rivers.items():
print("The " + river.title() + " runs through " + country.title() + ".")
| [
"d1rtyst4r@gmail.com"
] | d1rtyst4r@gmail.com |
c44508356d98bca92ede322dff36b8fe69233790 | 316a07bd7ab47d447606d341c5d221d8318f65b9 | /python-quantumclient/quantumclient/__init__.py | d7a6aab476a7fd877ee47d88223005f3700109e1 | [] | no_license | kumarcv/openstack-nf | 791d16a4844df4666fb2b82a548add98f4832628 | ad2d8c5d49f510292b1fe373c7c10e53be52ba23 | refs/heads/master | 2020-05-20T03:10:54.495411 | 2013-06-16T23:44:11 | 2013-06-16T23:44:11 | 7,497,218 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Citrix Systems
# 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.ap... | [
"b37839@freescale.com"
] | b37839@freescale.com |
1caf0bb73a348c9474abe29b5774ab1b7560fa59 | 1789431658d7f5594a6bdae23d0d74bcb7c32020 | /main.py | 60e2979f764fc36895a52f45b1593a26ac31f2f9 | [] | no_license | Abhishekparmar123/Dictionary-app-using-SQL | 14783912c20f4bf36bcd2393563f915480e8ee38 | 37af5cf58cae3ed70ee6d0b0f200c4eb7e004f8b | refs/heads/master | 2022-12-05T13:22:18.002949 | 2020-08-23T11:30:53 | 2020-08-23T11:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import sqlite3
import json
data = json.load(open("data.json"))
def create():
conn = sqlite3.connect("Dictionary.db")
cur = conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS dictionary (word VARCHAR(30), meaning VARCHAR(1000))")
conn.commit()
conn.close()
def insert(word, meaning):
conn ... | [
"abhishekparmarjnv@gmail.com"
] | abhishekparmarjnv@gmail.com |
99cbb1c2c9693fe423a01b59ef5289715abab28f | 396ee8958eb753d96a62b1199103c2c1194c08e0 | /creme/ensemble/bagging.py | a8509f03c6ffe22b2ed05d0f2a2d8f770954a48a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ZuoMatthew/creme | fe1499a9071a994587172f908a530522be6b915b | 27d40fa7a5014c94d7f95dee259368c0adc7115c | refs/heads/master | 2020-04-22T20:46:58.100005 | 2019-02-12T17:13:15 | 2019-02-12T17:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | import collections
import copy
from sklearn import utils
from .. import base
__all__ = ['BaggingClassifier']
class BaggingClassifier(base.BinaryClassifier):
"""Bagging for classification.
For each incoming observation, each model's `fit_one` method is called `k` times where `k`
is sampled from a Pois... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
25da0744ea358f58944383d0fa56dbde72f8ca7e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/rbd.py | 4548339f733e7c118189a771baa2ea2fcc9e9962 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
e0315093c2111b0b43b0c96efd9f3b6ae0dd7d10 | 1a639d185f9c883b7bebf33c577c58b22ac93c7e | /other/sound.py | d69bb732b93754a0a9bbad2d5b75c7350984b2d5 | [] | no_license | gofr1/python-learning | bd09da5b5850b1533a88b858690ed4380b55d33e | 19343c985f368770dc01ce415506506d62a23285 | refs/heads/master | 2023-09-02T15:42:27.442735 | 2021-11-12T10:17:13 | 2021-11-12T10:17:13 | 237,828,887 | 0 | 0 | null | 2021-11-12T10:17:14 | 2020-02-02T20:03:42 | Python | UTF-8 | Python | false | false | 568 | py | #!/usr/bin/env python3
# gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API
# sudo pip3 install gtts
from io import BytesIO
from pygame import mixer
from gtts import gTTS
def speak(text):
with BytesIO() as f:
gTTS(text=text, lang="en").write_... | [
"gofr.one@gmail.com"
] | gofr.one@gmail.com |
80d6314141d4f24833a5ea2410e5ce6f0c2c9472 | 074afd26d00bb742b03c12891b057ab263e640bf | /LeetCode 30 days/week1.2.py | ffcfa748b1935152b9419bb6cf112f940f619277 | [] | no_license | IsmailTitas1815/Data-Structure | 7a898800b1e53c778b1f2f11b0df259e52c20140 | fece8dd97d3e162e39fc31d5f3498a6dac49b0f0 | refs/heads/master | 2023-02-05T10:39:49.349484 | 2020-12-21T13:37:22 | 2020-12-21T13:37:22 | 296,343,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | # import re
# s = '123 456-7890'
# new_s = [int(i) for i in re.findall('\d', s)]
# unformattedPhone = "1239084590348509 456-7890"
# numbersList = [int(s) for s in unformattedPhone if s.isdigit()]
# print(numbersList)
class Solution:
def isHappy(self,num):
setofvalue = set()
while num!=1:
... | [
"titas.sarker1234@gmail.com"
] | titas.sarker1234@gmail.com |
a277810779992737e996b5a33165c4c02f6bb8b9 | 8afd826d1a1073ed07379ba83ea3d8c229bceee3 | /market_unitest.py | bae2d5e711ed27ea0c29c4b1bac500d39aab0ffb | [] | no_license | irinarozalio/market | 47249ae789a52a25b40083aed2619ac374e650d2 | 37e6ddae3acbca76eb7682aa25e36f1d98ad0776 | refs/heads/master | 2022-12-10T18:31:59.058596 | 2019-03-27T15:57:11 | 2019-03-27T15:57:11 | 174,009,244 | 0 | 0 | null | 2022-12-08T04:51:49 | 2019-03-05T19:38:59 | Python | UTF-8 | Python | false | false | 2,431 | py | import unittest
import requests
from market import f1
import psycopg2
import psycopg2.extras
import os
class Product_name_exist(unittest.TestCase):
def test_product_exists(self):
url = r"http://ec2-3-17-162-33.us-east-2.compute.amazonaws.com:5000/amount_product?product_id=1"
r = requests.get(url)
self.assertEq... | [
"irinaro@cellcom.co.il"
] | irinaro@cellcom.co.il |
15d8600fcc62bae425faaf90085a8f09360ab77e | df038c9a84ca9b11bbef86d84d2e6feb6fd733bf | /setup.py | d7698c8b3fa3d0b9da3a92af8fb21d3751e3cf58 | [
"BSD-2-Clause"
] | permissive | wybaby/PSpider | d31ff8cbde1a3f23d05c1684c455beea2b48c915 | 5087fc20589878fa123daa113213fbf17282a35b | refs/heads/master | 2021-01-22T01:55:16.258596 | 2017-06-23T03:35:04 | 2017-06-23T07:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # _*_ coding: utf-8 _*_
"""
install script: python3 setup.py install
"""
from setuptools import setup, find_packages
setup(
name="spider",
version="2.4.5",
author="xianhu",
keywords=["spider", "crawler", "multi-threads", "asyncio", "distributed"],
packages=find_packages(exclude=("otherfiles", "te... | [
"qixianhu@qq.com"
] | qixianhu@qq.com |
35068272afd8f83f2cd64208d58014d0fd301ea0 | 1a75117532cbf8c72bfa6886afdb11262c01ccf3 | /src/bert/run_squad.py | 823decc5d89adb98097d239a7b44cfc527d1806d | [
"MIT"
] | permissive | yyHaker/MachineComprehension | 627e90eacc0afc3e519df95dec4d09e886fcbfd6 | d92d39f43f72df8bac29e8947d7457b19e088b43 | refs/heads/master | 2020-05-01T15:21:23.964854 | 2019-06-03T11:43:06 | 2019-06-03T11:43:06 | 177,544,370 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 50,948 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"595983351@qq.com"
] | 595983351@qq.com |
98cf87b58d43e76ff154e27adfa6fd3769b34aff | 5f852dcf10bbf8ccf397242825a8dd9d26c09ba9 | /18_db/task_18_1/create_db.py | b98ea378ccd49a23fbe041df9599047c205c6d69 | [] | no_license | deiliet/pyneng-answers | 4541da2c5830a57562538db2aec45fe46a95d475 | f45e22081a3a15ced54be74af520ed99bdc69810 | refs/heads/master | 2020-12-23T18:49:40.704009 | 2020-02-19T20:37:24 | 2020-02-19T20:37:24 | 237,238,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | import sys
import re
import glob
import sqlite3
def db_file_checker(db_file_list, db_filename, regexp_db):
if not db_file_list and 'default.db' in db_filename:
print('DataBase File is not existed. Empty Default DataBase File is created')
elif not db_file_list:
print('DataBase File is not exist... | [
"thedeiliet@gmail.com"
] | thedeiliet@gmail.com |
32c3db21179f71d7d3b81b90f71abe18b6ebcc50 | a757953b0fab1c4d05ce6b70b68b411df42bb887 | /raredecay/run_config/config.py | bf95bbd8a144a333eb7c63e6c9faeb67b38b1b7f | [
"Apache-2.0"
] | permissive | efueger/raredecay | 4e6ae0cff4bde925e2985335793dc7a138a5c772 | 4a92742016b2aea27e5156fee168d69d2c0361d0 | refs/heads/master | 2021-01-01T20:37:16.970625 | 2017-07-31T14:48:35 | 2017-07-31T14:48:35 | 98,898,305 | 0 | 0 | null | 2017-07-31T14:31:54 | 2017-07-31T14:31:54 | null | UTF-8 | Python | false | false | 1,379 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 16 13:44:43 2016
The configuration file for external operations.
@author: Jonas Eschle "Mayou36"
"""
RUN_NAME = 'Classifier optimization'
run_message = str("This could be your advertisement" +
" ")
OUTPUT_CFG = dict(
run_name=RUN_NAME,
output... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
2a56ad3e779b445de933f69ba162ea411564f49d | 3de6b4bbaf86afe1ff87b0d829bcba014a8a9696 | /.history/bshare/settings_20200511214108.py | 60ecb0dc2ccdb72f5774bfa11a473c0e11e25761 | [] | no_license | codermythbuster/bs | f0b758ab396e50f744aa29c7ecd58354b7df06df | 3687302da8f9fe5a8f75d52ba429f14e2f09c67e | refs/heads/master | 2022-08-04T22:27:59.987215 | 2020-05-26T11:24:01 | 2020-05-26T11:24:01 | 263,302,705 | 0 | 0 | null | 2020-05-26T09:58:03 | 2020-05-12T10:16:30 | HTML | UTF-8 | Python | false | false | 3,088 | py | """
Django settings for bshare project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"namdev373@gmail.com"
] | namdev373@gmail.com |
b05404ce46ceca3242895585057d1a8c0e42e276 | 3d5fecd85726e1d44ce903de031871002f16a7f3 | /60.py | 6a11811bc200d642cc5233e4aee66c41fe2876a6 | [] | no_license | SereDim/Trash | 886d5729e67b187686afd4de03fc6bcd0c21d1d1 | 608ec4231e38ab43c08c5ec4ad5ef78d1a1975f4 | refs/heads/master | 2022-04-19T18:09:04.465814 | 2020-04-21T08:46:30 | 2020-04-21T08:46:30 | 240,449,188 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | '''
Дан одновимірний масив з 10 цілих чисел. Підрахуйте найбільше число
однакових чисел, що йдуть підряд в ньому.
Серебренніков Дмитро
'''
d=0
a=[1,2,3,4,4,4,4,4,4,4,4,4,4,5,6,7,8,8]
for b in a:
c=a.count(b)
if c>d:
d=c
print(d)
'''
Я думал, за условием нужно число найбольших чисел... | [
"noreply@github.com"
] | noreply@github.com |
7f21a3c4b4eab2603971a2c036ccf0062bc692a0 | 92d5c15b92356de9f66d2d4738f3c6f00ef2796f | /alembic/versions/11a00705ac61_added_a_bunch_of_gra.py | 125da279586118ae1e213bc3e51a31aadf58a062 | [] | no_license | colinmorris/moz-graphs | 2f88472b7ad23ee0c63977c2151ac102af475769 | f412c0564fb210327436da0468f78932bd21dca0 | refs/heads/master | 2016-09-06T04:36:39.322822 | 2013-07-27T22:00:14 | 2013-07-27T22:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | """added a bunch of graph vars for assignee
Revision ID: 11a00705ac61
Revises: 48044ce97c4f
Create Date: 2013-04-08 10:21:12.247290
"""
# revision identifiers, used by Alembic.
revision = '11a00705ac61'
down_revision = '48044ce97c4f'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands a... | [
"colin.morris2@gmail.com"
] | colin.morris2@gmail.com |
9bb977254cc1d833a7b9b9ab6e3e06da9b351b2c | 08d994afb95bd2c197bf95ee897e329f1ab6efe3 | /exceptions.py | f8a043c2763bd05eed42d36ba942409769a73576 | [] | no_license | hiki0505/Avito_task | 239ca863f87fffc1648bfe2beeaeb40b5bb34317 | 23d029544887d874dbfc6ba0c10cddb0d18da3a5 | refs/heads/master | 2023-08-08T15:52:25.032076 | 2021-09-08T09:46:35 | 2021-09-08T09:46:35 | 404,261,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from fastapi import HTTPException
class InvalidDimensionException(Exception):
pass
class EmptyArrayException(Exception):
pass
def handle_server_exceptions(func):
def wrapper():
try:
func()
except (HTTPException, ) as e:
print(e)
return wra... | [
"noreply@github.com"
] | noreply@github.com |
1c356a0590a1ea7f7ecb9aeb128b9e9854057920 | cad926eefb51e70265ad116dff7b94fecc74ca23 | /main.py | cff450724a50f641349bbcf0e93346ecba9c9858 | [] | no_license | noahfoe/Machine-Learning-Flappy-Bird-AI | 331a58a00455ef58fe4996d15488ef5bbb998fb7 | 81556dc468f4f1b63eae967668a7b819f8bdbd94 | refs/heads/master | 2023-02-06T07:20:14.525591 | 2020-12-21T15:10:46 | 2020-12-21T15:10:46 | 287,111,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,987 | py | import pygame
import neat
import time
import os
import random
pygame.font.init()
WIDTH = 600
HEIGHT = 800
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Flappy Bird")
PIPE_IMG = pygame.transform.scale2x(pygame.image.load(
os.path.join("imgs", "pipe.png")).convert_alpha()... | [
"noreply@github.com"
] | noreply@github.com |
ac0452c4ee1cba70bc0b8a8ea20a040ea0865b34 | 4e998c1e66d6be88477746b19a68491ab4677ded | /reinforcement/valueIterationAgents.py | 54157c9492e24710e8704b95d05ce454f53f0124 | [] | no_license | Sinaeskandari/CS188-Projects | 18ee4c9dd6dd930ea8d4ee4ed90bc278283d9b97 | 8620820fe011fa727f6a13391ab4bde1b2077dad | refs/heads/master | 2023-04-12T21:02:47.647192 | 2021-05-12T12:46:36 | 2021-05-12T12:46:36 | 366,712,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,905 | py | # valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to ht... | [
"sinaeskandari007@gmail.com"
] | sinaeskandari007@gmail.com |
112219d7dc6e8bfc69df3e1a6997b9da7b62b6f0 | 73ed957adadd6e1a274ddf43f8fc44a7687c5fdf | /templatetags/generator.py | bab03337b3d64b93823520c849653e978a879442 | [] | no_license | HubSpotArchive/Freemarker2Django | 8caa733b1b0a8d0561c128daf6d91b45d71f5732 | a471fefc89fb42d772a85cf64902b09a21493b62 | refs/heads/master | 2021-01-17T05:03:55.691791 | 2011-06-21T19:55:13 | 2011-06-21T19:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | """
Generator for templatetags for a given macro.
"""
TEMPLATE = """from django import template
from base import matched_inclusion_tag
register = template.Library()
@matched_inclusion_tag(register, '%(macro_name)s.html')
def %(macro_name)s(%(formatted_kwargs)s):
return {
%(formatted_map)s
}
"""
MAP_IND... | [
"edhebert@gmail.com"
] | edhebert@gmail.com |
59602afbce466d3a9113e0c7e330db6597cd02fa | cb242b1fdf3889d4df347f3102daf6584a0c40a4 | /threeandthrees/words.py | d562ed188fda92eba7607308a68f44f8b4960f5d | [
"MIT"
] | permissive | bwarren2/threeandthrees | d927711f0927a8e3493cd201ffdd8d930e5586f2 | 2a09a398ab332c27e2e7722e612fa18318b50e60 | refs/heads/master | 2023-05-25T23:28:11.706181 | 2021-04-30T15:12:45 | 2021-04-30T15:12:45 | 68,949,353 | 0 | 0 | MIT | 2021-04-30T15:12:46 | 2016-09-22T18:18:05 | Python | UTF-8 | Python | false | false | 2,546 | py | from collections import defaultdict, OrderedDict
import random
from colorama import init, Fore
import os
import re
init(autoreset=True)
safe_pattern = re.compile('^[a-z]{9}$')
def extract_words():
dir_path = os.path.dirname(os.path.realpath(__file__))
with open(dir_path + '/american-english.txt', 'r') as f:... | [
"bwarren2@gmail.com"
] | bwarren2@gmail.com |
b3d4c02a6bc7af5a7905dee573b6da6451fe1ace | f425b3f11863f2a69e5e8d0a2798bc5cf0328267 | /NLP_Q2_Q3.py | 1ca220b6efa660a963fbb05b2ba1f0389dbacf27 | [] | no_license | yangliu1994/Qishi | 66df4f89c2908cdabaaac2ee36174b7062726feb | 50f59d7a8c4ccb982bf59c0ed4637c6c83cfafa2 | refs/heads/master | 2020-04-20T10:38:22.705789 | 2020-02-12T02:29:07 | 2020-02-12T02:29:07 | 168,794,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | import numpy as np
class Dictionary:
def __init__(self, lst):
self.conn = {word: set() for word in lst}
for i, word1 in enumerate(lst):
for word2 in lst[i+1:]:
if self.check(word1, word2):
self.conn[word1].add(word2)
self.con... | [
"yl3634@columbia.edu"
] | yl3634@columbia.edu |
04b77db5da018700a7d4c2a91e8ea2f351602677 | 44e6c62fa676c74ab44d57da2530ae039edf5a47 | /GUI.py | 8a24370f29a9b123bab4040a44cdb4cf010b23e4 | [] | no_license | DylanBennette/SUVAT-Education-Tool | a2ec9b6dfbe9f1b51c37a87e03ecb72d514644fe | d1f798009d3980a7eb170f5a7a58037f97d7a099 | refs/heads/master | 2021-01-23T03:28:07.484098 | 2014-11-11T20:18:26 | 2014-11-11T20:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128,560 | py | import Base
import sys
from PyQt4.QtGui import*
from PyQt4.QtGui import*
from PyQt4 import QtGui
from A2_Physics_TestingClass import *
from A2_Physics_Test_Tester import *
from A2_Physics_Type_Controller import *
from A2_Physics_Student_Controller import *
from A2_Physics_Answers_Controller import *
from A2_Physics_Att... | [
"dylan.bennette@yahoo.com"
] | dylan.bennette@yahoo.com |
1ce4e956fe58872f2719ab4f3c67b8c279caf0a8 | 8cf5c91fa744f49b40264061d4fd510ea761cf8f | /build/lib/dragonn/visualize_util.py | f672496759111da32eecdc588fa5a4607cc0eb20 | [
"MIT"
] | permissive | AvantiShri/dragonn | 0f38371ac7734099279f3b3e204565d9a663102f | aeb9674f39b71d07ff62d2c3745bef4a2e55b95f | refs/heads/master | 2020-04-23T18:01:34.394772 | 2019-02-18T06:07:40 | 2019-02-18T06:07:40 | 171,352,688 | 0 | 0 | MIT | 2019-02-18T20:37:59 | 2019-02-18T20:37:59 | null | UTF-8 | Python | false | false | 5,953 | py | # Adapted from Keras source code
# License: https://github.com/fchollet/keras/blob/master/LICENSE
import itertools
from keras.layers.containers import Graph, Sequential
from keras.layers.core import Merge
try:
# pydot-ng is a fork of pydot that is better maintained
import pydot_ng as pydot
except ImportError:... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
84384e7ac129c854281286bde8c8fa39109edf50 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/409/usersdata/308/79040/submittedfiles/av1_programa1.py | cf9b07d9090afe0bfb3912b3b86c0d8a9fbf8726 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # -*- coding: utf-8 -*-
#Lendo valor do usuário
x = int(input('Informe o valor: '))
#testando se é par
if (x%2==0):
print('PAR')
else:
print('IMPAR')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7ce9bf77dfec1cb38f3c07dd07663289deb8f780 | eb382e151b1d6718a0c1b77a8b9c27798c3cbc64 | /couchapp/Lib/restkit/resource.py | bc171758a63e45a5257412b7ac973cf0fff4f6ba | [] | no_license | sellis/com.pittypanda.plugins.couch | 05bdb3a10723bd975a8e899a6f2f43abf5e0f595 | b9421d10f3aa20c0a5448bfcafe4ea7bd67a2d45 | refs/heads/master | 2021-01-24T05:48:20.204623 | 2010-10-26T20:28:51 | 2010-10-26T20:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,015 | py | # -*- coding: utf-8 -
#
# This file is part of restkit released under the MIT license.
# See the NOTICE for more information.
"""
restkit.resource
~~~~~~~~~~~~~~~~
This module provide a common interface for all HTTP request.
"""
from copy import copy
import urlparse
from restkit.errors import ResourceNotFound, Un... | [
"stephane@pittypanda.com"
] | stephane@pittypanda.com |
c01239ec19657a3b971198fb74b565f9bb6abe61 | 7109daa5820683340c1e393b57ba5242d624d952 | /core/dataset.py | 852114105aa754accc2c9e7286202d80713449c0 | [] | no_license | bysen32/CODE0 | 9a7f15fb6dc5e4234ca5e432f097727cacd3f538 | e32535797dbfd24389d7754bc3e57cf24c284b11 | refs/heads/master | 2022-12-24T05:40:02.360762 | 2020-09-24T14:02:37 | 2020-09-24T14:02:37 | 298,296,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | import numpy as np
import scipy.misc
import os
from PIL import Image
from torchvision import transforms
from config import INPUT_SIZE
class CUB:
def __init__(self, root, is_train=True, data_len=None):
self.root = root
self.is_train = is_train
img_name_list = []
img_txt... | [
"bysen32@gmail.com"
] | bysen32@gmail.com |
4b43e2b427a43ba07dfc176dcf8a63cf10d902c4 | 1a9e6b7105cef0aeac6d3c4ae74087c578e3103f | /Django Homeworks/mysite/blog/forms.py | 09f8d88b919888b97638cd57d7610d319d28e7f7 | [] | no_license | NarekID/Basic-IT-Center_Python | cb0c935bf61d371407ae2e7620c38ed1e25fb4a2 | b842519db43cfc19b042d1c2eeac21592a7596ff | refs/heads/master | 2020-08-03T09:15:02.455482 | 2019-12-02T11:53:23 | 2019-12-02T11:53:23 | 211,696,769 | 0 | 0 | null | 2020-04-30T13:50:14 | 2019-09-29T17:04:12 | Python | UTF-8 | Python | false | false | 354 | py | from django import forms
class EmailPostFrom(forms.Form):
name = forms.CharField(max_length=30)
email = forms.EmailField()
to = forms.EmailField()
comments = forms.CharField(required=False, widget=forms.Textarea)
class LoginForm(forms.Form):
username = forms.CharField()
password = forms.Char... | [
"narek2011n@gmail.com"
] | narek2011n@gmail.com |
0afdc85c81462cefc1a808107b7c37374cc5d2cd | a39be2eeb4d98a1171fa3da03654978d420babdd | /exportIllegalShopNameAndAddressForMyUCloud.py | f6a8a2077d26a281b13d7e501e491c21bf123046 | [] | no_license | yhqairqq/data_analyser | bbf153bccbcf57031aa90ceaa78abd4e329d6de9 | 7bd0996243c5a78cb99efc91d17e168d2184d17f | refs/heads/master | 2020-06-11T21:56:24.353103 | 2016-12-14T09:59:13 | 2016-12-14T09:59:13 | 75,620,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,962 | py | #!/usr/bin/env python
# coding:utf-8
import datetime
import pymongo
from bson.objectid import ObjectId
from utils import *
import codecs
def check_contain_chinese(check_str):
try:
for ch in check_str:
ch = unicode(ch)
if u'\u4e00' <= ch <= u'\u9fff':
return True
... | [
"304187514@qq.com"
] | 304187514@qq.com |
cd7f7d399fa00905604dce431cb7de0c129bef0f | 5904c88885e276cb8d008437cbe650351d68284e | /iplookup/__init__.py | f3ddd6092bd9bbd07e8d30730181ec553be46b24 | [
"BSD-2-Clause"
] | permissive | Ankirama/iplookup | eaf615ec72c904cb4c9e940ede7ea47e8177dad5 | e63050fb47c559f79120aea312bd9721ff4e6f94 | refs/heads/master | 2021-06-23T02:10:24.400456 | 2017-08-18T12:53:26 | 2017-08-18T12:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | __all__ = ["iplookup"]
| [
"dgibbard@cisco.com"
] | dgibbard@cisco.com |
64a254c52c248efb0cf5c010ebe8b732d1a8f71e | 7eb9b92ee295e3218a494ca7ea7572d4b5090392 | /exerc083.py | 790da16988d2439ce3f0e36ef1a4fc95e9f9fba2 | [] | no_license | andersonpereiragithub/CursoEmVideoPython | c7257b5d5cbdee6ea81b32fc993e09ad4e69cc9e | 7390a378cf80a22d85a628398c92148b01fee9cb | refs/heads/master | 2023-07-03T16:03:28.874668 | 2021-08-16T01:20:36 | 2021-08-16T01:20:36 | 383,771,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Crie um programa onde o usuário digite uma expressão qualquer
# que use parênteses. Seu aplicativo deverá analisar se a
# expressão passada está com os parênteses abertos e fechados na
# ordem correta.
pilha = []
expressao = str(input('Digite uma expressão entre parênteses: '))
for parentese in expressao:
if par... | [
"anderson.pereira@viannasempre.com.br"
] | anderson.pereira@viannasempre.com.br |
12c5e8a6058dd9ddb4067dc52b21882958b3ddac | e152859d9eb6d588131ffcefc31b6f6229177a60 | /executor-machine-learning-ms/app/listener/listener_settings.py | 0a6080371c4722640e3590dae33d3575cf7ad92e | [] | no_license | marioczpn/microservice-machine-learning-challenge-proposal | 7c856c57c28cccffe2f89b1992f5f0e2d8f8dae9 | 48c7c06462844165f33812e9a52df406f9895795 | refs/heads/main | 2023-09-05T10:58:15.235975 | 2021-11-24T14:38:58 | 2021-11-24T14:38:58 | 431,515,413 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import os
from face_detection.face_detection_executor import FaceDetectionMachineLearningExecutor
from services.mocksdk_service.MockSDKModule import MockSDK
# The purpose of this configuration file is to give more flexibility, allowing to add more modules into the application.
# Configuration keys
EXECUTOR_KEY = 'ex... | [
"mariocp@br.ibm.com"
] | mariocp@br.ibm.com |
2b5c7daf4e443721c7aaea517f907d64a4885998 | 580f06758cd81f45f19553e273d873f40430aef9 | /Use Python/MergeIntervals.py | 0a0a5eb200bfe885d38ab50d1fe3a12efcf2c18c | [] | no_license | yiqin/HH-Coding-Interview-Prep | 026faa39bf11e5a404460bc6f315883b3fc2eedc | 5f40d62d3bd7a937ea21f92bf737329797c87bcd | refs/heads/master | 2021-03-12T20:18:10.562406 | 2015-11-06T18:21:11 | 2015-11-06T18:21:11 | 42,781,871 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | class Interval(object):
"""docstring for Interval"""
def __init__(self, s=0, e=0):
self.start = s
self.end = e
class Solution(object):
"""docstring for Solution"""
def merge(self, intervals):
intervals.sort(key = lambda x:x.start)
results = []
if len(intervals) == 0:
return []
tmp = Interval(interv... | [
"yiqin.mems@gmail.com"
] | yiqin.mems@gmail.com |
52cc99ba003663596c2f4e9b4a593123b794f3da | e6378e26e05ddad794f770b83bc0471c13da6452 | /myproject/webapp/serializers.py | 132f883d812c54a3b6173ebe67b1430d88433c23 | [] | no_license | dheerajgadhamsetty/REST_API | 122954bfc3dae2de0d218b8909792d3f75480903 | d370c7cce5ed6b325755ab243c20f58335cafbba | refs/heads/master | 2023-07-18T08:12:15.463796 | 2021-08-29T06:53:28 | 2021-08-29T06:53:28 | 400,971,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.db.models import fields
from django.db.models.base import Model
from rest_framework import serializers
from .models import Employee
class EmployeeSerializer(serializers.ModelSerializer):
class Meta:
model = Employee
#fields = ('firstname', 'lastname')
fields = '__all__'
... | [
"dheerajgadhamsetty"
] | dheerajgadhamsetty |
d25ac17866c59602f3a74c473525baa8b1525ecc | 42186fa6507999ce60d334a0f04d9ae2127579cd | /shanghai/crypto/aessss/aes.py | 28f4167b8afbc6cd5a1d96fa31eac1158ba77de1 | [] | no_license | Imtinmin/CTF_Challenge | ef8b62b3a4a1741d814d989f795a243257ff6f2b | ea276596f9effdbe0cf9ef4457e2e676e652bb74 | refs/heads/master | 2022-12-21T12:40:40.625562 | 2020-04-30T03:27:56 | 2020-04-30T03:27:56 | 158,999,004 | 18 | 3 | null | 2022-12-10T04:34:27 | 2018-11-25T04:53:04 | PHP | UTF-8 | Python | false | false | 6,458 | py | # -*- coding:utf-8 -*-
import random
import sys
import string
from hashlib import sha256
import SocketServer
from Crypto.Cipher import AES
from secret import FLAG, IV, KEY
class Task(SocketServer.BaseRequestHandler):
def proof_of_work(self):
proof = ''.join(
[random.choice(string.ascii_letter... | [
"954093370@qq.com"
] | 954093370@qq.com |
4eeccaf83120bc0894347b8916c466c18737500d | 4ecbc07cdc980f899510e0db2971ba754c474670 | /timm/models/layers/mlp.py | 05d076527cfb6f15bcf5f2830fa36777abbc5a1e | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"CC-BY-NC-4.0",
"Apache-2.0"
] | permissive | shrikumaran/pytorch-image-models | 8c74ec7d705b6b2fb223d519afdd61f33c108cec | 6d8272e92c3d5f13a9fdd91dfe1eb7fae6784589 | refs/heads/master | 2023-06-16T06:41:30.088230 | 2021-07-08T18:23:55 | 2021-07-08T18:51:12 | 384,009,847 | 0 | 0 | Apache-2.0 | 2021-07-08T05:22:35 | 2021-07-08T05:22:34 | null | UTF-8 | Python | false | false | 3,774 | py | """ MLP module w/ dropout and configurable activation layer
Hacked together by / Copyright 2020 Ross Wightman
"""
from torch import nn as nn
class Mlp(nn.Module):
""" MLP as used in Vision Transformer, MLP-Mixer and related networks
"""
def __init__(self, in_features, hidden_features=None, out_features=N... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.