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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
6083b266f2a8b47adca2da5524d7109d84630dcb
14308c0c13bd736acba2abb23c7c63fe411b00cb
/synergyWayUsers/app/serializers.py
aac3f37738423289196e79b3e2c1ef9016cc1d0b
[]
no_license
vladaoleynik/SynergyWayUsers
5e2b1ccbe3f5e3919d8c6e6a8a8c445a494de0fc
e3d92403f7ec44d69514ceee9b453cf114368578
refs/heads/dev
2023-01-07T00:24:07.422328
2016-03-15T19:30:57
2016-03-15T19:30:57
53,443,652
0
0
null
2022-12-26T20:22:33
2016-03-08T20:40:54
HTML
UTF-8
Python
false
false
1,150
py
class UserSerializer(object): def __init__(self, data): self.data = data def serialize_object(self): """ Method to populate data for convenience on FE. Formats single object. :return: JSON. Formatted data. """ user = self.data[0] result = {} ...
[ "voleynik3221@gmail.com" ]
voleynik3221@gmail.com
ae33e5d72485a8c2af5218c8c928af920fd4a784
b07428c4bc62779b6a067b7f2c7803e230a0ebea
/myapp/mypages/models.py
887c64382cd995718864d37dfe7ee519f764194b
[]
no_license
deceptikon/djangoproject
ee9150302f5b160754778ddf22363e892fa7f278
0f9a7dc50a60a63a60929f8006ad17def66be9a3
refs/heads/master
2020-09-11T15:40:18.390292
2019-11-30T15:18:50
2019-11-30T15:18:50
222,114,492
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
from django.db import models # Create your models here. # https://docs.djangoproject.com/en/2.2/ref/models/fields/ class Product(models.Model): name = models.CharField(max_length=150) price = models.IntegerField() discount = models.BooleanField() description = models.TextField(default=None) def ...
[ "lexx.kg@gmail.com" ]
lexx.kg@gmail.com
a060092d67625dbb41dface109bd6ddf81522409
974671bcbf93e78030e559e0914c8a9f8f419051
/projects/urls.py
7555b0f1356292497c4341bf4544b0c9c1d287f9
[ "MIT" ]
permissive
TheDim0n/ProjectManager
f84d2b8488a6d6535d6b91f6b210c6d50a3c91b3
50d36e7e3fc71655aa5a82bb19eacc07172ba5e4
refs/heads/master
2022-12-06T13:43:19.801667
2020-09-01T13:18:41
2020-09-01T13:18:41
279,873,056
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
from django.urls import path from . import views app_name = 'projects' urlpatterns = [ path('', views.ProjectListView.as_view(), name='index'), path('<int:pk>', views.ProjectDetailView.as_view(), name="project_details"), path('create_project', views.ProjectCreateView.as_view(success_url='/projects/'), na...
[ "dim0n2023@yandex.ru" ]
dim0n2023@yandex.ru
484b36d95ccf1122a18ef55f269dda7d400b80d3
1e19cab9c19562477cf561a88949faeee3731015
/quanbenxiaoshuo/novels/apps.py
19579c3e8a0d90b30a3869db99775e9dc90b0c58
[]
no_license
sugyli/a_dou
62f5c3090f4001b68613a0b7c30526a58f512aa7
4c3121495416361d7f4bfe97e3ed15c61c28f1e3
refs/heads/master
2021-06-24T12:30:44.018193
2019-12-02T05:27:41
2019-12-02T05:27:41
205,197,259
0
0
null
2021-02-08T20:36:17
2019-08-29T15:45:23
JavaScript
UTF-8
Python
false
false
120
py
from django.apps import AppConfig class NovelsConfig(AppConfig): name = 'novels' verbose_name=u'小说管理'
[ "“3101967255@qq.com”" ]
“3101967255@qq.com”
64b3e520641e62179bf0226098f2410138702d70
760258f9eb5915d4bdf1c34d732770372f58c893
/lib/sms.py
0191b8eb9ade5533533e14cf6afa4a0fc8f03816
[]
no_license
atlpatchin/django3template
0da0c73df1e5b9b5f9924701f84a5c69e56ce461
7e931eab7bf6740009e3462a8c56cf9184b1fb5e
refs/heads/master
2021-09-27T20:57:02.599606
2020-04-02T12:05:56
2020-04-02T12:05:56
252,442,378
1
0
null
2021-09-22T18:49:46
2020-04-02T11:58:24
Python
UTF-8
Python
false
false
142
py
# coding: utf-8 """短信验证码""" import requests class SMS(object): """短信类""" pass if __name__ == '__main__': pass
[ "atlpat@163.com" ]
atlpat@163.com
fc52ed52791feaa1eb11f8171d6f65b4744c1571
706a59a5bf96d6951e92b9b77dccc7e05c8cde1a
/account/migrations/0006_alter_customuser_password.py
30e7148c1feed89153a325a898afa08b14fd0ae1
[]
no_license
kimyou1102/DREAM
f86428da4ed247f6bba75d6cd2dcd78bc7300b8e
e057918f18695fe0eb21434170451015bd6c31c9
refs/heads/master
2023-06-14T07:53:32.786447
2021-07-03T11:37:09
2021-07-03T11:37:09
459,999,824
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# Generated by Django 3.2.5 on 2021-07-01 12:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0005_custombaseuser'), ] operations = [ migrations.AlterField( model_name='customuser', nam...
[ "tkrhk2836@naver.com" ]
tkrhk2836@naver.com
286e74bfecad4b0a3ad17401140825ee5bbc630d
2c2678375480992f6a7b678f2568d2ea713c86d3
/EcalTools/python/__init__.py
32b37b5b8f0328b3f4800169acfbcb28d99ff177
[]
no_license
emanueledimarco/EcalReconstruction
f1dc7977d649477efba993ba95b5b4412d4871b0
fd7908be8ffeced00ef92c3bedb9e46d81665e4b
refs/heads/master
2022-09-05T02:12:08.284331
2020-05-10T23:33:13
2020-05-10T23:33:13
43,128,921
0
2
null
2022-07-12T21:35:59
2015-09-25T09:44:29
C++
UTF-8
Python
false
false
208
py
#Automatically created by SCRAM import os __path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/EcalReconstruction/EcalTools/',1)[0])+'/cfipython/slc6_amd64_gcc491/EcalReconstruction/EcalTools')
[ "emanuele.dimarco@gmail.com" ]
emanuele.dimarco@gmail.com
b7d0763f0b232f7949bb124cfb7259ed467eff4b
52d5f7dead5c8572a67f63a006d843fdf6bff2ed
/venv/Scripts/pip3-script.py
6b285cad085f50948276613a6821d349300f1a4c
[]
no_license
doprinhas/HackHash
684281b8746445b8acabb7cceea4f51e3679c80d
0ceb35732188c175db8039686c9d946a11fec797
refs/heads/master
2020-12-05T12:44:11.989626
2020-01-08T19:57:17
2020-01-08T19:57:17
232,113,834
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!C:\Users\Dor\PycharmProjects\HackHash\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "dorpinhas94@gmail.com" ]
dorpinhas94@gmail.com
f452c2dd8a6951453600e481311f716a0a0636bb
b7fcb8153dc565b50c2d1bfe6fc8dc62c77b343f
/src/upgeo/demo/ssa/plot/demo_magdist_region.py
68abaceffaac2a4f3ec0bf98d5e438dc16129342
[]
no_license
grenouille82/pygp
25f6ed2ff6f456231a233a26d063949a8716d44d
1e629a68309398fc7ff89fc0f0b2b9cea7850041
refs/heads/master
2021-01-23T03:16:17.767216
2017-03-24T14:49:34
2017-03-24T14:49:34
86,063,095
1
0
null
null
null
null
UTF-8
Python
false
false
12,686
py
''' Created on Mar 28, 2013 @author: marcel ''' import numpy as np import upgeo.util.metric as metric from upgeo.base.kernel import GroupNoiseKernel, HiddenKernel,\ MaskedFeatureKernel, ARDSEKernel, NoiseKernel, DiracConvolvedKernel,\ FixedParameterKernel, SEKernel, SqConstantKernel, LinearKernel,\ ARDSE...
[ "Marcel.Hermkes@webtrekk.com" ]
Marcel.Hermkes@webtrekk.com
bd63b8e1ecf45c334724bc34debf628114b3047e
f734a39a0c37186e90caea597f13000823c9e67a
/leetcode/Hash Table/1213. Intersection of Three Sorted Arrays.py
658d6de9e6d97a5ad69bbe7071633e6fde37a8e0
[ "MIT" ]
permissive
yanshengjia/algorithm
681746e0371a82860e64a279bfe4c83545469641
46caaf74aeab8af74861fb5b249eb4169baf8493
refs/heads/master
2022-08-02T20:15:57.927418
2022-07-17T14:43:51
2022-07-17T14:43:51
192,160,418
69
32
null
null
null
null
UTF-8
Python
false
false
1,006
py
""" Given three integer arrays arr1, arr2 and arr3 sorted in strictly increasing order, return a sorted array of only the integers that appeared in all three arrays. Example 1: Input: arr1 = [1,2,3,4,5], arr2 = [1,2,5,7,9], arr3 = [1,3,4,5,8] Output: [1,5] Explanation: Only 1 and 5 appeared in the three arrays. Sol...
[ "i@yanshengjia.com" ]
i@yanshengjia.com
d7ccabafc3937cc5321c684ced89702c10f836ce
b087978eb569d3c68aec6ee3bc4f10dd8c1ceb5a
/music_library/music-player/bin/mid3iconv
b6795144ecafb90490638bd59f2ed08f809e5b65
[]
no_license
mariopetrov9/Programming-with-python-101
93b3e4a0e52ddcfcdaf1d16deeee1dca87abe41c
18b0d3b040131d9eab39f935fb100064ece34829
refs/heads/master
2023-02-22T19:09:36.964343
2016-06-06T21:15:53
2016-06-06T21:15:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,301
#!/home/krasi_b2/HackBulgaria/week07/music-player/bin/python3 # ID3iconv is a Java based ID3 encoding convertor, here's the Python version. # Copyright 2006 Emfox Zhou <EmfoxZhou@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Publ...
[ "mariopetrov9@gmail.com" ]
mariopetrov9@gmail.com
7b6313a1b37a49a859f18c49c5e3defd72bf4e92
474470e5edd4ea1c44c7b9ca63ae03c776096891
/codewars/ValidateCreditCard/solution.py
f97f4e16f7d2b6948b59ebdbe3d5c79a0744e35e
[]
no_license
jaabberwocky/leetcode
5de0541b7cd3892cedea9c9bcd44c8e4d876cccd
a65131f28f8a160f899606114411133933f2893f
refs/heads/master
2021-06-06T03:32:31.609968
2021-05-16T13:49:32
2021-05-16T13:49:32
143,909,579
1
0
null
null
null
null
UTF-8
Python
false
false
514
py
def validate(n): digits = [int(d) for d in str(n)[::-1]] ctr = 1 for ind, digit in enumerate(digits): if ind == 0: continue if ind == ctr: digit *= 2 if digit > 9: digit -= 9 digits[ind] = digit ctr += 2 ...
[ "tobiasleongzhunmun@gmail.com" ]
tobiasleongzhunmun@gmail.com
315318c95f31de93fcfacce751b179734c20fbf7
b2daa16d26445d7ed5269d0a0dd513594dddd896
/config/settings/base.py
5ed19a76350b55d642410bbbf6fb9d24563e7631
[]
no_license
Santiago-Otero-Figueredo/finanzas_personales
d952169e8be70ea7d7c6e1e219605c9d3480f2e9
2ecb7ea6b60fa4dc68fa124ab53d09ea4016836e
refs/heads/master
2023-01-22T14:07:42.094851
2020-12-04T01:46:54
2020-12-04T01:46:54
283,634,533
0
0
null
null
null
null
UTF-8
Python
false
false
4,690
py
""" Django settings for finanzas_personales project. Generated by 'django-admin startproject' using Django 3.0.5. 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/ """ ...
[ "santiago.otero.figueredo@gmail.com" ]
santiago.otero.figueredo@gmail.com
7c2d99114b3aafbeb624eb534da25400a8ae4e87
06c1d6bcd099bf1c25abb52ba07351b068d1ab16
/Unidad_3/leccion_3.py
7c26b82dce0e0e918ab604fafd4e3dc5a427c8aa
[]
no_license
dafnemus/python-curso-udemy
1105e5f51980d6f5ec32dac338ebc340250c6384
493717fb321b24bd5abcadb8e27d25d68b4f12f8
refs/heads/main
2023-03-09T12:27:41.934087
2021-02-24T18:34:56
2021-02-24T18:34:56
337,728,568
0
0
null
null
null
null
UTF-8
Python
false
false
2,638
py
# pylint: disable=missing-docstring # 1. Aplica un incremento de sueldo del 8% al salario de un trabajador. # Para ello, recuerda que primero debes solicitar el monto base del salario. def incrementar_sueldo(sueldo): incremento = 0.08 valor_incrementado = sueldo * incremento sueldo_incrementado = sueldo + ...
[ "dafnemus@gmail.com" ]
dafnemus@gmail.com
5bfe02e3fdc1ef7f383a3e3cbdb80a77861e7187
1f34608b9c050735ab49df9c37af77445e5c506d
/inventory/migrations/0003_auto__add_monthlyweatherbycity.py
1a558dff1917e25152f06d83d120c6ef8d6d954b
[]
no_license
MiguelGervassi/django-inventory
e7830b3c2a5128764d93fe29290d64f4afff21ad
835ab2aaf337f5aa43d7da724accbe0ac867b587
refs/heads/master
2021-05-26T14:35:30.535408
2013-11-18T11:37:20
2013-11-18T11:37:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,428
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 model 'MonthlyWeatherByCity' db.create_table(u'inventory_monthlyweatherbycity', ( (u'id...
[ "Miguel.Gervasi@gmail.com" ]
Miguel.Gervasi@gmail.com
9765c834cc9e5d16a0e3967295cb69af240d6325
556347a38988f5df368de98296ba55be23a5db85
/utils/fourier_transform.py
ddc454269ac6794e13f1dbb3a6674908053287e5
[]
no_license
tchewik/pfur_aommt
c8d88b331be10011320212c6931b0864849ac0f5
dc285a247cb35d529a52c09eef4a263d62066395
refs/heads/master
2020-04-29T18:46:00.258295
2019-05-18T22:09:10
2019-05-18T22:09:10
176,332,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
import numpy as np from functools import partial from multiprocessing import Pool def _idft_calc(u, data): return sum([data[x] * (np.cos(2 * np.pi * u * x / len(data)) + np.sin(2 * np.pi * u * x / len(data)) * 1j) for x in range(len(data))]) def _hanna_func(n, data): return .5 * (1 - np.cos(2. * np.pi * dat...
[ "elenachistov@gmail.com" ]
elenachistov@gmail.com
19c1083ddebaae8a8cafbbfcbc4f663167f858b0
79fa6f3a9c0c07b2768b5c67d48cd2d3ada921c7
/kikimr/public/api/grpc/ydb_export_v1_pb2.py
8b1ed589a3769c3321e6a8c3913604b83594a9b6
[ "Apache-2.0" ]
permissive
clumpytuna/ydb-python-sdk
8dd951a532045587fcba1d541b3fb8798c358318
f09d8db19f62032738ed77dabb3672c3e0f86cc3
refs/heads/master
2023-06-09T22:38:29.747969
2021-06-30T08:09:14
2021-06-30T08:09:14
319,103,389
0
0
NOASSERTION
2020-12-06T18:32:35
2020-12-06T18:32:34
null
UTF-8
Python
false
true
2,581
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: kikimr/public/api/grpc/ydb_export_v1.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobu...
[ "arcadia-devtools@yandex-team.ru" ]
arcadia-devtools@yandex-team.ru
dd362f074593582e8d1cff300c32f36d8363e0e1
3120d8b22cc0b6755da6341434165baf0a855e9d
/Day2_Assignments/qn8.py
7f7412c69962024cfaaa570c9f8403267924cb54
[]
no_license
karthika-onebill/python_basics_assignments
6033c8f442d452b463e81ba8bc70a6d1ed87b14f
793bd0205d2f3eab47bf939aa0c0e002728805dd
refs/heads/master
2023-05-24T14:18:46.603229
2021-06-20T02:17:02
2021-06-20T02:17:02
376,065,135
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
''' 8) the user enters a string and a substring. You have to print the number of times that the substring occurs in the given string ''' # way 1 : using count() function s = input("Enter the string : ") substring = input("Enter the substring : ") print(s.count(substring)) # way 2 : without using count() cnt = 0 for ...
[ "karthikavel2000@gmail.com" ]
karthikavel2000@gmail.com
be1e735af83e692b35403ebe733bb449ff5aef36
b9a54e1aeb517285c0d84506e615e709fdab8c1f
/movies/migrations/0003_auto_20200424_0022.py
fe6581f4dcee518ec61652d4a675ed46ffc1bbe2
[]
no_license
ziad-elnaggar/Movies-Games
a827b8ff00e02b444e68f17e3d97cc376c3bb026
b2fd788e18ac1c6d359e7be028961666e62df8f3
refs/heads/master
2023-01-12T14:33:45.092098
2020-11-16T06:04:48
2020-11-16T06:04:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
# Generated by Django 3.0.5 on 2020-04-23 22:22 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('movies', '0002_auto_2020...
[ "ziad.a.elnaggar@gmail.com" ]
ziad.a.elnaggar@gmail.com
2ef2d309811ea4d2f3a0e53f43ae916c66ce51f3
ae9f11f7078515b8ef87da6c4c56346bab5dd36d
/mailer/tasks.py
1eca9c5d17cd43a78383deb51dbfe2f747864ca2
[]
no_license
feedcase/CeleryProject
26cc1caeeeca1a8d1f6ef38e15c88447acf4d606
86dfe4103d532a8540b0d56e1077b424f5a500b3
refs/heads/master
2023-02-24T06:48:10.996342
2021-02-01T17:09:11
2021-02-01T17:09:11
335,017,171
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
from django.core.mail import send_mail from mailer.celery import app from .services import send from .models import Contacts @app.task def send_spam_email(user_email): send(user_email)
[ "seva1502@gmail.com" ]
seva1502@gmail.com
e1cc86ce3d6ec88a63cf4bfe101118fa87b5c487
bf1c74cae00d409b60889e0577716f0f0f17724a
/bomb.py
039169381cfa28f09e387234af82af0fdc5137e9
[]
no_license
wangpeilin/pygame-
e349399a4f0a2a03a1c76cc3a00439aa2a4e17ef
3cad2a1920e0330968db7295960c1192615cf61b
refs/heads/master
2020-08-02T09:50:54.834108
2019-09-27T12:22:48
2019-09-27T12:22:48
211,308,406
3
0
null
null
null
null
UTF-8
Python
false
false
981
py
# 爆炸特效 import pygame class Bomb(pygame.sprite.Sprite): def __init__(self, screen): super(Bomb, self).__init__() self.screen = screen self.image = [pygame.image.load("images/bomb-" + str(i) + ".png") for i in range(1, 8)] self.index = 0 self.interval = 20 self.interv...
[ "1163942544@qq.com" ]
1163942544@qq.com
5b4f5181977f8ac6e3c3156745081e3cce07a39e
059f80a4a3d27a949d4e86578e09f07b47c7084b
/trajectory_manager_CORONA.py
949a885f9c145efed37adb30165b545b0bd05d1b
[]
no_license
sozenoid/XYLENE_probing
ccd593201ca84273e5f0c736567b61b7d29c47df
b08ddded75c8b44a003ffc84646f37d3a5e3ffd3
refs/heads/master
2021-06-28T18:48:00.471783
2020-10-05T14:33:25
2020-10-05T14:33:25
166,769,523
1
0
null
null
null
null
UTF-8
Python
false
false
2,251
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jul 31 09:08:16 2019 @author: macenrola """ import multiprocessing import subprocess import sys import glob import os def launch_trajectory(traj_name): cmd = "cp2k.sopt -i {0} -o {0}.out" return subprocess.call(cmd.format(traj_name).split(), shell=Fa...
[ "stuhlamb@corona.cm.cluster" ]
stuhlamb@corona.cm.cluster
f18aa97b5ffc96f15248cad15ddee3ba1135c971
4a36b5979b0753b32cff3956fd97fb8ed8b11e84
/0.22/_downloads/aaf6e18611e50c34953a2674b6489a9c/plot_30_info.py
6f27946faf6e543cadc3b69272928b6c607cd2ee
[]
permissive
mne-tools/mne-tools.github.io
8aac7ae10bf2faeeb875b9a351a5530dc0e53154
495e878adc1ef3374e3db88604504d7542b01194
refs/heads/main
2023-09-03T07:06:00.660557
2023-09-03T04:10:18
2023-09-03T04:10:18
35,639,371
12
16
BSD-3-Clause
2023-05-05T19:04:32
2015-05-14T22:04:23
HTML
UTF-8
Python
false
false
8,689
py
# -*- coding: utf-8 -*- """ .. _tut-info-class: The Info data structure ======================= This tutorial describes the :class:`mne.Info` data structure, which keeps track of various recording details, and is attached to :class:`~mne.io.Raw`, :class:`~mne.Epochs`, and :class:`~mne.Evoked` objects. .. contents:: ...
[ "larson.eric.d@gmail.com" ]
larson.eric.d@gmail.com
b460c3a97a846a6135ef38b86c0ca6c1c5edc1d9
9d278285f2bc899ac93ec887b1c31880ed39bf56
/ondoc/doctor/migrations/0231_doctor_rating_data.py
a7aa55dce7e42ba73a952ade46e91fef58e6585e
[]
no_license
ronit29/docprime
945c21f8787387b99e4916cb3ba1618bc2a85034
60d4caf6c52a8b70174a1f654bc792d825ba1054
refs/heads/master
2023-04-01T14:54:10.811765
2020-04-07T18:57:34
2020-04-07T18:57:34
353,953,576
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
# Generated by Django 2.0.5 on 2019-03-27 07:09 import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('doctor', '0230_merge_20190320_1712'), ] operations = [ migrations.AddField( model_name='doct...
[ "root@PBMAC518.local" ]
root@PBMAC518.local
1692e595b877b44d05dbf5b3b8052e97d5d06780
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/matplotlib/2019/8/figure.py
4e0cc02f9b055f7b8ac7ab105f45c733614451a0
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
101,029
py
""" The figure module provides the top-level :class:`~matplotlib.artist.Artist`, the :class:`Figure`, which contains all the plot elements. The following classes are defined :class:`SubplotParams` control the default spacing of the subplots :class:`Figure` Top level container for all plot elements. """ imp...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
c4cfcfe5af13c6bba69de8261120099d274a6277
4fbdf94ee280515df7f285b80ab0590c8c753dd0
/image_gradients.py
08a726e515a5d1d7bb433b6bc2444b046a9ddfdb
[]
no_license
hxh-dhruv-hxh/Some-OpenCV-Codes
97d48e9aaf9f0029a4cfd6f4a94100dd4770a938
b77902ea5da233809bbf3260c744c53fdb9c0184
refs/heads/main
2023-04-11T11:57:11.988679
2021-04-24T13:49:10
2021-04-24T13:49:10
361,171,806
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('opencv-master/samples/data/sudoku.png', cv2.IMREAD_GRAYSCALE) lap = cv2.Laplacian(img, cv2.CV_64F, ksize=3) lap = np.uint8(np.absolute(lap)) # Finding vertical edges sobelX = cv2.Sobel(img, cv2.CV_64F, 1, 0) # Finding horizontal edge...
[ "55949575+dhrv04@users.noreply.github.com" ]
55949575+dhrv04@users.noreply.github.com
768abaf1511810961280fb83757f380b00ffe82d
e099b5691a78eca8022fdeaa8d0efb75ecb8c0f6
/day-19-turtle-sketch/main.py
427af5fa3d7b53721b2cabda19262404a5a257e9
[]
no_license
kpgabriel/PyCharmProjectsUdemy
b1cfd16ce017aff1b5ad94ba45a4d205fa97b4ef
4440fac3d2a12603b37bdb67047a429f77f1985c
refs/heads/master
2023-06-04T09:08:52.853580
2021-06-22T00:29:58
2021-06-22T00:29:58
373,293,126
0
0
null
null
null
null
UTF-8
Python
false
false
1,002
py
import random from turtle import Turtle, Screen screen = Screen() screen.setup(height=400, width=500) is_race_on = False colors = ["red", "orange", "yellow", "green", "blue", "purple"] all_turtles = [] i = 0 y = -100 for color in colors: new_turtle = Turtle(shape="turtle") new_turtle.penup() new_turtle...
[ "kpgabriel17@gmail.com" ]
kpgabriel17@gmail.com
6733aab9ea53e9cbe7a36f8c18521ad328708815
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/pytorch/source/PIL/ImageQt.py
b747781c50bd2eede24eb9145a6224a4a90712ff
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
6,558
py
# # The Python Imaging Library. # $Id$ # # a simple Qt image interface. # # history: # 2006-06-03 fl: created # 2006-06-04 fl: inherit from QImage instead of wrapping it # 2006-06-05 fl: removed toimage helper; move string support to ImageQt # 2013-11-13 fl: add support for Qt5 (aurelien.ballier@cyclonit.com) # # Copyr...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
b7174ad5e70aad83997120f3f26a0af8c31902f4
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/network/v20210501/get_dscp_configuration.py
1dde2dd4b7042811e658cde1bbc7524c32f1811b
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,569
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
04236783dd857f37f9aed820802a70a89a16edfa
e7951f82f195e94b6791247b80b0e6f20030579c
/examinations/settings.py
b15fb7724b1d445f8e6b443179e2d00453c87014
[]
no_license
pkula/examination
84becf8f973c2b2ce8a7799f078da2903532fc94
767dcf51fbdbd72e0722640d24802c3d28b023fe
refs/heads/master
2020-04-26T04:00:46.584545
2019-03-22T00:11:21
2019-03-22T00:11:21
173,286,701
0
0
null
null
null
null
UTF-8
Python
false
false
3,367
py
""" Django settings for examinations project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import ...
[ "pxkula@gmail.com" ]
pxkula@gmail.com
6a926b6a082e80870569878b3faf26af11142290
d48b735d608d00393a80893060d287d113cded28
/scrapy_redis/scheduler.py
eb5f508bc31bc59049ec5e5222f93bd4c7459b3b
[ "Apache-2.0" ]
permissive
gavinliu4011/housespider
8053259eaeb0a3fb75c36b3d7294f759dff96400
3e0f3ae319e7ba3006b0a0bf25de7e12f91c03cc
refs/heads/master
2020-03-22T12:32:40.784965
2018-07-07T05:53:16
2018-07-07T05:53:16
140,046,370
7
2
null
null
null
null
UTF-8
Python
false
false
6,460
py
import importlib import six from scrapy.utils.misc import load_object from . import connection, defaults from .defaults import BLOOMFILTER_BIT, BLOOMFILTER_HASH_NUMBER # TODO: add SCRAPY_JOB support. class Scheduler(object): """Redis-based scheduler Settings -------- SCHEDULER_PERSIST : bool (defau...
[ "gavinliu4011@163.com" ]
gavinliu4011@163.com
d6c933feb40555e72159079ffea381c447710cfc
e49ee66bc574f76b05248d9484e3cb8628aed60a
/tests/scripts/verifiers.py
72cc68d00fa53e2cb9093d904c31e6621220696b
[]
no_license
mgoszcz/articles
8399ba78069c36eecdd787747aa2875c8aceb9ba
b68577daf552bdd1e61636ef974b3713092dff67
refs/heads/master
2022-11-07T00:04:24.703911
2020-07-02T21:06:46
2020-07-02T21:06:46
257,048,473
0
0
null
null
null
null
UTF-8
Python
false
false
2,695
py
import unittest from lib.article import Article from lib.article_dict import ArticleDict from tests.test_data.article_test_data import ArticleDictTestData, ArticleTestData class Verifiers(unittest.TestCase): def verify_articles_in_dictionary(self, dictionary: ArticleDict, test_data: ArticleDictTestData): ...
[ "marcin.goszczynski88@gmail.com" ]
marcin.goszczynski88@gmail.com
f2b7a5d3182b111a6c16fa52895980a61ec2dc88
46d4afa2ebf0b04541766291ec238271a6b01f4b
/dicerollv2.py
5316f764eb7046464ea604d222de6a84d6be10ec
[]
no_license
Kurolox/python-learning
77f1732e03bf8d4a58de86d5fc860931720ab816
b3621453069ca5a3f07718d0f05e332372f52801
refs/heads/master
2021-01-17T16:19:57.479866
2016-08-11T15:38:22
2016-08-11T15:38:22
65,402,872
0
0
null
null
null
null
UTF-8
Python
false
false
1,564
py
import random import re def get_input(): print("Insert the number of dices you want to roll (format xdY+Z.)") while True: diceinput = input() # Finding pattern xdY(+Z) in the input pattern = re.compile(r"(\d+)(d|D)(\d+)((\+|-)(\d+))?") mo = pattern.search(diceinput) # I...
[ "kurolox@gmail.com" ]
kurolox@gmail.com
4de5d342f5f6db3ec70d35c5b46c60132fe5dbc6
fae0af723a5d2b41fa57e5cc0bec700974440069
/tencentcloud/faceid/v20180301/models.py
a078bf16f7239b59287d4ff2c20a108960d6620c
[ "Apache-2.0" ]
permissive
simiaoxiaoseng/tencentcloud-sdk-python
dc319b492967044bf08756a7591e06d70f6d1e4b
e93b2291526946fd2381fc9e40f7f4c7f34c7c42
refs/heads/master
2020-04-12T19:11:46.876644
2018-12-20T13:39:13
2018-12-20T13:39:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,143
py
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
dd00b17559362e528e8945974b31d50d495d3ca3
473deae70ce35c63a9e01481a18268ac0fef56e4
/DJANGO-DEPLOYMENT-MINDFIRE/BLOGGING/BLOGGING/asgi.py
e4f7b0b81d17c959dc01cb0ffdc0593b632047ac
[]
no_license
subhamMishra14/DJANGO-DEPLOYMENT-MINDFIRE
8fbbd7b6837f17bc4fa506bb46c764aa0acd0322
35b8fe79ea9281c1c51de808507c5982ec9502c7
refs/heads/master
2020-08-31T22:12:03.376067
2019-12-18T14:00:28
2019-12-18T14:00:28
218,798,422
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" ASGI config for BLOGGING 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.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "subham.mishra.14@gmail.com" ]
subham.mishra.14@gmail.com
c8469ead17f2bf6575e6cf1a25391b4db6c88303
2cc9b2d7d99af939beca70e1c4f4994aec0e95e1
/services/scores/project/config.py
0b9579b70f9e187783c39036490f4d6670c80eae
[]
no_license
kelleyrw/testdriven-app
5ad1da46216fc3b2a8f38e0041191772fe116a55
8f661c7a7efd6811319206996959c359cedefda5
refs/heads/master
2023-01-07T01:00:54.876432
2019-07-20T19:27:09
2019-07-20T19:27:09
161,355,306
0
0
null
2023-01-04T16:35:18
2018-12-11T15:34:54
Python
UTF-8
Python
false
false
921
py
# project/config.py import os class BaseConfig: """Base configuration""" DEBUG = False TESTING = False DEBUG_TB_ENABLED = False DEBUG_TB_INTERCEPT_REDIRECTS = False SECRET_KEY = os.environ.get("SECRET_KEY") SQLALCHEMY_TRACK_MODIFICATIONS = False USERS_SERVICE_URL = os.environ.get("U...
[ "kelleyrw@users.noreply.github.com" ]
kelleyrw@users.noreply.github.com
d41da186fe71beeba5d6a5db47eb2df882f9a820
44221bc0507955c1e62d256182291ac95514c4f6
/automatron_notify/__init__.py
e4ef215bc2aaa375436f09977691bf480f1315f1
[ "MIT" ]
permissive
automatron/automatron-notify
8c14ee5d8025ebefc7e9b7788e5414230c269676
4dcacfb3a56a51a7d1a7521f2ab9f7a895493f1a
refs/heads/master
2021-01-17T14:31:31.323071
2014-03-25T08:18:46
2014-03-25T08:18:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
from automatron.core.event import IAutomatronEventHandler class IAutomatronNotifyHandler(IAutomatronEventHandler): def on_notify(server, username, title, body, body_as_html=None): """ Called when a notification is triggered. """
[ "iksteen@gmail.com" ]
iksteen@gmail.com
321adce537d7842bc56ed5889f848d7433663330
4b8d6d0c057049beabdc7a516bd0653af94894a6
/DRF_nextjs/asgi.py
c3274d19c1591f6d6331af69cbe01c1a6e03c5b4
[]
no_license
felipefoc/DRF-Next.Js
71a4d35cd2f69ffe84fb76b37a7094cc2950a71f
f8a904ec17d21e88590719ba98202d9fbcccf11e
refs/heads/main
2023-03-14T18:51:55.521287
2021-03-22T04:15:32
2021-03-22T04:15:32
350,203,864
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" ASGI config for DRF_nextjs 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_SE...
[ "felipemfmayer@gmail.com" ]
felipemfmayer@gmail.com
141c85f367df5664a2789b37bc7d83c97dc4a197
b5a29700c3516cf12f837e2284e3844546205d09
/plugins/vipread_generic_plugin.py
2771bd40386bf812df6f131de4bd2ab09fe0bf1a
[]
no_license
p1g3/Collect-Info-Research
f609823486f36460186cfde27f4be7c9c5a058ae
e8e7366677a8642c3bcf4b103e43378762e6673c
refs/heads/master
2020-12-24T03:59:01.190032
2020-01-31T06:47:35
2020-01-31T06:47:35
237,374,792
37
12
null
null
null
null
UTF-8
Python
false
false
1,913
py
import asyncio import feedparser import ssl import pymongo from loguru import logger import datetime from dateutil import parser class vipread_generic_plugin: def __init__(self,loop,collection,lock): ssl._create_default_https_context = ssl._create_unverified_context self.headers = {'User-Agent':'Mozilla/5.0 (Wi...
[ "p1g3cyx@gmail.com" ]
p1g3cyx@gmail.com
1fb219910dbc733d206df189140aba037582bb5d
462e68b21feb4aab5bf89519a36088b2aa5efdb7
/Decision Tree ID3/Introduction to Decision Trees-137.py
f8ef9b91511c3f98a2431f58eca3f6ee4615f9aa
[]
no_license
JKChang2015/Data-Analysis-Python
19458bc0aa7ea9dbd2a34866a798548a9a18d93f
9c5da4c0d17a3768f3f853bc09c7700fbb2840b9
refs/heads/master
2020-03-09T06:44:26.515614
2016-07-17T01:39:07
2016-07-17T01:39:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,501
py
## 3. Converting categorical variables ## # Convert a single column from text categories into numbers. for name in ["workclass","education","marital_status","occupation","relationship","race","sex","native_country","high_income"]: col = pandas.Categorical.from_array(income[name]) income[name] = col.codes ## 5...
[ "noreply@github.com" ]
JKChang2015.noreply@github.com
80939f748aac5f3242ea0bc5610644cacf4f8ba9
d31d744f62c09cb298022f42bcaf9de03ad9791c
/lingvo/lingvo/tasks/car/input_preprocessors.py
5848311b990c04f1afc36ede62048283bad93104
[ "Apache-2.0" ]
permissive
yuhuofei/TensorFlow-1
b2085cb5c061aefe97e2e8f324b01d7d8e3f04a0
36eb6994d36674604973a06159e73187087f51c6
refs/heads/master
2023-02-22T13:57:28.886086
2021-01-26T14:18:18
2021-01-26T14:18:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
136,426
py
# Lint as: python3 # Copyright 2019 The TensorFlow Authors. 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 ...
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
68c3277a9fe9cd3efe646288a0c0b687daeb5f40
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_continua.py
1d4f1175f6f6eee08a5947b834b37af45e65325d
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
#calss header class _CONTINUA(): def __init__(self,): self.name = "CONTINUA" self.definitions = continuum self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['continuum']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
144e5a7d1b97218faf780fe0706e3cee01e48160
37fdc797f0060a67c1e9318032bc7102d4fd9ecd
/spider/beautifulsoup_test/lib/python3.7/site-packages/twisted/names/test/test_server.py
1378cd4196e91a2ddb3a28c59f527bcdbe43cc1f
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
Change0224/PycharmProjects
8fa3d23b399c5fb55661a79ca059f3da79847feb
818ba4fd5dd8bcdaacae490ed106ffda868b6ca4
refs/heads/master
2021-02-06T15:37:16.653849
2020-03-03T14:30:44
2020-03-03T14:30:44
243,927,023
0
0
null
null
null
null
UTF-8
Python
false
false
41,264
py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for L{twisted.names.server}. """ from __future__ import division, absolute_import from zope.interface.verify import verifyClass from twisted.internet import defer from twisted.internet.interfaces import IProtocolFactory from twist...
[ "lijj0224@163.com" ]
lijj0224@163.com
a446f3bcb4ed5b343d63a75ac1a60b160a3d9408
2dd433fa5a90a61c3a9d2762849e27f78542677a
/comicnamer/utils.py
d942331d8f98ee7c2488a6b8e437681957fcb99a
[]
no_license
fredsherbet/comicnamer
6d1e52cb9e3e3a10e5705fbb08378d0b60f227b6
6bb0f985afca2f544e709d85330c42447aa8bb67
refs/heads/master
2021-01-16T19:41:26.904067
2010-09-02T13:32:36
2010-09-02T13:32:36
3,166,677
0
0
null
null
null
null
UTF-8
Python
false
false
21,589
py
#!/usr/bin/env python #encoding:utf-8 #author:Samus #project:comicnamer #repository:http://github.com/dbr/comicnamer #license:Creative Commons GNU GPL v2 # http://creativecommons.org/licenses/GPL/2.0/ """Utilities for comicnamer, including filename parsing Modified from http://github.com/dbr/tvnamer """ import dateti...
[ "iam@attractive.com" ]
iam@attractive.com
8498fc35377d666c8beda3737b4569c2b0bef667
de2a0871ab99080664f532da8cccb909ebfcddef
/merge_evalres.py
014320eae68f6475abdb0231df42d2387dc45396
[ "MIT" ]
permissive
jchazalon/smartdoc15-ch1-eval
0d8abc31276532e8e163f24ec5e8387e61e0f97d
c2a5ef7fb04e7aa5ecc02d365be08345d435031f
refs/heads/master
2021-01-18T20:05:58.939875
2018-01-19T18:51:07
2018-01-19T18:51:07
69,476,202
3
0
null
null
null
null
UTF-8
Python
false
false
15,411
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # Imports import logging import argparse import os import os.path import sys import fileinput import itertools # chain from collections import namedtuple from dexml import ParseError # =====...
[ "joseph.chazalon@univ-lr.fr" ]
joseph.chazalon@univ-lr.fr
5c1ba44c812cddbba0d7d69d8007ae070698c369
123216cb332c60431a15580f9f730bd0c23a2d42
/rango/migrations/0002_auto_20210730_0302.py
2682e896ab00980610c27865844e809abcd59565
[]
no_license
zzh2471437/tango_with_django_project
d052d430a1442ef5337b88f59a0a05eb00b55168
10505fd81a948f9027b539c7abc89957ba7b9e4a
refs/heads/master
2023-06-25T09:47:39.579944
2021-07-30T15:04:04
2021-07-30T15:04:04
389,978,123
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
# Generated by Django 2.1.5 on 2021-07-30 03:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rango', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='category', options={'verbose_name_plur...
[ "“2471437Z@student.gla.ac.uk”" ]
“2471437Z@student.gla.ac.uk”
d604b39ae0f8e7002cb175fae59528062f11a466
5da988c176252fca1b558190eff74ef3b89afc9f
/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/__init__.py
d225e6bd069b0db9f870fc1da037a9f0be6aaf31
[ "Apache-2.0" ]
permissive
kinvolk/opentelemetry-python
3801376ee6bdb46d85d8876a97713e698e1241ce
47483865854c7adae7455f8441dab7f814f4ce2a
refs/heads/master
2023-05-25T19:36:05.130267
2020-11-02T17:29:59
2020-11-02T17:29:59
201,488,070
1
2
Apache-2.0
2023-05-16T18:48:46
2019-08-09T14:56:28
Python
UTF-8
Python
false
false
8,741
py
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "noreply@github.com" ]
kinvolk.noreply@github.com
c7c7e5c1f3818d56efd5758696f9e9cdb33b4d45
b4828cf9403fedde5dd346b3338a5f4bf0f1eb96
/hackerrank_sols/Python/input.py
891fc4c290f538166cca4e06196f203faf1156d1
[]
no_license
Masters-Akt/CS_codes
9ab3d87ca384ebd364c7b87c8da94b753082a7e3
1aaa107439f2e208bb67b0bcca676f90b6bc6a11
refs/heads/master
2023-01-24T00:11:05.151592
2023-01-21T18:45:57
2023-01-21T18:45:57
292,529,160
6
7
null
null
null
null
UTF-8
Python
false
false
80
py
#Kumar Ankit x,k=(input().split(" ")) x=int(x) k=int(k) print(eval(input())==k)
[ "64123046+Masters-Akt@users.noreply.github.com" ]
64123046+Masters-Akt@users.noreply.github.com
a1a59786acc50a3bcfc44d678b26a02c420f6cd1
d7df6e3a7aafd8316f71b46ab6e1b2d4741318f6
/non_optimal_solutions/productExceptSelf.py
62eb747d2826160ef5da98e492bc02a10c24d678
[]
no_license
echrisinger/Blind-75
72b01be6ad71103eb378e91295089a9e56747ff7
b17d53619c7b2cc5851cd2a02fa3e81f676914de
refs/heads/master
2022-10-13T01:32:42.698432
2020-05-26T03:22:06
2020-05-26T03:22:06
260,078,456
7
8
null
null
null
null
UTF-8
Python
false
false
473
py
class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: before, after = [1]*len(nums), [1]*len(nums) for i in range(len(nums)-1): before[i+1] = before[i]*nums[i] rev_i = len(nums) - 1 - i after[rev_i-1] = after[rev_i] * nums[rev_i] ...
[ "echrisinger@gmail.com" ]
echrisinger@gmail.com
18fcdcdba81100a0f2df2ed2fb80b682d2c8d32d
98c42b6722dbdd1774bb89ea76fc8dd585fa2a92
/SoftUni/SimpleConditions/Company.py
6bcd73327705a8029c6b0ca31b015b83ed2ba690
[]
no_license
Putzmeister/PythonProjects
19ee45ca576596243b062f12d4161cff80b573e2
97a7f682b808c0ea536042c5890c113b07fdde67
refs/heads/master
2021-08-22T07:20:31.002695
2017-11-29T15:53:58
2017-11-29T15:53:58
112,492,620
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
import math neededhours = int(input()) days = int(input()) overtimeWorkers = int(input()) if 0 <= neededhours <= 200000 and 0 <= days <= 20000 and 0 <= overtimeWorkers <= 200: workingDays = 0.9 * days workingHours = workingDays * 8 overtime = overtimeWorkers * 2 * days totalhours = math.floor(workingH...
[ "putzmeister@users.noreply.github.com" ]
putzmeister@users.noreply.github.com
26fc8b49fcc85ffb16820963727e86ecec723ae3
abccdbf9b0849b47960c3c352870793405debfed
/0x02-python-import_modules/3-infinite_add.py
319d74896baaa8ff2b1e4ae09a0a2729223fdf4b
[]
no_license
hunterxx0/holbertonschool-higher_level_programming
88b1b0f31b536c6940f2e64a6924a06ba9cbf193
44064cf0722cd20d93f58b64ab185d2898770d73
refs/heads/master
2022-12-20T12:14:15.877147
2020-09-24T21:25:54
2020-09-24T21:25:54
259,276,369
0
1
null
null
null
null
UTF-8
Python
false
false
290
py
#!/usr/bin/python3 if __name__ == "__main__": from sys import argv x = len(argv) if x == 2: print("{}".format(argv[1])) elif x == 1: print("0") else: s = 0 for i in range(1, x): s += int(argv[i]) print("{}".format(s))
[ "azouzimhamed@gmail.com" ]
azouzimhamed@gmail.com
5ad0df8d9e33195deba111bc3a3458f03e70e9d1
37635cea6ee5fdfffcdd113d3e5deb24e3258365
/blog/views.py
3651f9ef0c91b87d1f3124db83a2ecbe6f01e823
[]
no_license
shubhambhatia92/portfolio
680b185b3e7596bab2a17f176b621a5a278fb75f
d793d2ba2fed97b80a7b7c11bb1539f058b9db59
refs/heads/master
2020-04-02T03:58:31.035311
2018-10-23T07:13:16
2018-10-23T07:13:16
153,993,385
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
from django.shortcuts import render,get_object_or_404 from .models import blog # Create your views here. def allblogs(request): blogs=blog.objects return render(request,'blog/allblogs.html',{'blogs' :blogs}) def detail(request, blog_id): detailblog=get_object_or_404(blog,pk=blog_id) return render(reque...
[ "shubhambhatia92@gmail.com" ]
shubhambhatia92@gmail.com
3a53d7bc4cc348fe37afcba294869c5a3c482088
875b93935c054c1650ec43b86f54ffe257d5c56a
/src/DataAcquisition/RetrieveTweets.py
fd68e9c1e46e74580a8021da08ecf127e435c6c7
[]
no_license
FelixDSantos/SarcasmDetection
600ae72b9a04eb37bf1c39276fc546c8031d4a07
38e3bb27c404b53b5cc7ddf355089c3810dc7a34
refs/heads/master
2021-06-22T10:35:56.622283
2017-07-14T17:07:13
2017-07-14T17:07:13
80,047,964
0
1
null
null
null
null
UTF-8
Python
false
false
3,301
py
from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import StreamListener import time import tweepy import os import itertools #consumer key, consumer secret, access token, access secret. ckey = 'zc7f3iKjDkeJYCdbEhfKQJ7bU' csecret = 'pQKhuzZkRJ0sJ1bHevnkR42qh4UGW4dxLw3FGzgoVSSPXUzmGQ' atoke...
[ "f.delossantosiii1@nuigalway.ie" ]
f.delossantosiii1@nuigalway.ie
ead86ff3ce709ffe0865987335eb19c8dcab3987
8a3c1c66828008941dffad983ad79936830045d7
/abc172/b.py
084cbc4ece4e6e4b1bae05f8ff60e9956d5934a1
[ "MIT" ]
permissive
nishio/atcoder
71130c7923f557b5269ffd8063dab1f7e2732a30
8db36537b5d8580745d5f98312162506ad7d7ab4
refs/heads/master
2023-04-15T07:41:00.322297
2021-04-25T09:00:26
2021-04-25T09:00:26
273,831,891
1
0
null
null
null
null
UTF-8
Python
false
false
72
py
S = input() T = input() print(sum(S[i] != T[i] for i in range(len(S))))
[ "nishio.hirokazu@gmail.com" ]
nishio.hirokazu@gmail.com
293ff48845ca5dffe641254523ab8dda7d9ca0dc
28d368fda86c41c62fedad60274f012b545408fe
/Q_16.py
366a715ca14e76c38487bbbbe39b3425b1cdf304
[]
no_license
adi1201239/b
e46b7149142a9131008ad40ca7a3330cf6d583da
d5f0132dc067ee3b14dee6f971bb5acd3cbef248
refs/heads/master
2020-04-17T05:03:56.253819
2019-01-22T18:14:04
2019-01-22T18:14:04
166,260,348
0
0
null
2019-01-17T16:48:51
2019-01-17T16:41:31
Java
UTF-8
Python
false
false
264
py
i = 1 x = int(input("Enter the number:")) for k in range (1, (x+1), 1): c = 0; for j in range(1, (i + 1), 1): a = i % j if (a == 0): c = c + 1 if (c == 2): print(i) else: k = k - 1 i = i+1
[ "noreply@github.com" ]
adi1201239.noreply@github.com
3cad8bd54419850ca2db1e342c3d3452f6f847f5
3b4b188514c33a1f4568baa59a2a385a2d7b6205
/config/urls.py
b7d78a9010e1d399cb8c68101fcb8d15635d4acf
[]
no_license
amyth/django-starter
5d74a7a5654611f966748523982d9d4591f1e43d
8a629cd717c038677488fd1860cc6001baf8c542
refs/heads/master
2020-05-17T17:32:46.993614
2014-09-24T07:15:17
2014-09-24T07:15:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
""" Main project url confuguration module. Other url modules to be included in this module. """ from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Custom apps' urls url(r'^', include('candidates.urls')), url(r'^', in...
[ "aroras.official@gmail.com" ]
aroras.official@gmail.com
087bc3914f01d56c5b118f5446be99dce12b524f
bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75
/Backtracking/restore_ip_addresses.py
9f2f7ded2404852ca3a967a2eb84096a1fa29da3
[]
no_license
harvi7/Leetcode-Problems-Python
d3a5e8898aceb11abc4cae12e1da50061c1d352c
73adc00f6853e821592c68f5dddf0a823cce5d87
refs/heads/master
2023-05-11T09:03:03.181590
2023-04-29T22:03:41
2023-04-29T22:03:41
222,657,838
1
0
null
null
null
null
UTF-8
Python
false
false
555
py
class Solution: def restoreIpAddresses(self, s: str) -> List[str]: def dfs(idx, path): if len(path) == 4 or idx == len(s): if len(path) == 4 and idx == len(s): output.append(".".join(path)) return for i in range(idx, min(idx + 3, le...
[ "iamharshvirani7@gmail.com" ]
iamharshvirani7@gmail.com
46643a2e72ac2cd8d0b60bac0865c11aea33f5a6
51bcde2fff5b47b18d2a3ecf6352bde0e4847a32
/accounts/views.py
ed129c2fe36ee7ea1d5484d3094f22de9736264f
[]
no_license
hello-im-yj/dstagram
2c16a0c3f18cdb783918cc4653a7cb702c9b7159
93fd9934f9e1b6d81305a702934eee91d30a48cf
refs/heads/master
2023-01-19T19:53:17.503184
2020-11-23T10:25:50
2020-11-23T10:25:50
312,838,339
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from django.shortcuts import render from django.contrib.auth.models import User from django.views.generic.base import TemplateView from django.views.generic import CreateView from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy #User creation class UserCreateView(CreateView) : ...
[ "sandwich17yj@likelion.org" ]
sandwich17yj@likelion.org
04e4fd79673db814b97dd67d4af811840db67123
3eee6855254e8efc6a90eac380bbd9f854f1355b
/classroom/migrations/0003_rename_syllabus_curriculum.py
abaa6507ebe9610727b54edc4ebf645cd3fd6b8f
[]
no_license
bhaskerath/major_project
4cd745311c7378fa211134b0f90230f9f8e55b1e
971fee2f067d5877d6d3c339285d033b3111ab35
refs/heads/main
2023-08-10T22:31:49.024250
2021-09-12T11:52:05
2021-09-12T11:52:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
# Generated by Django 3.2.6 on 2021-08-28 09:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('classroom', '0002_syllabus_is_complete'), ] operations = [ migrations.RenameModel( old_name='Syllabus', new_name='Curriculum...
[ "71547800+ashyshyadav@users.noreply.github.com" ]
71547800+ashyshyadav@users.noreply.github.com
60607d0470e14ff9502fce42008287242814b7d8
2bd395c1bc738951d7b113d2feeecd4a253b1bcd
/xm_smach/smach_lib/xm_smach/pick_turn.py
b944635ece6301612642d5991991d7ec167ad145
[]
no_license
xm-project/xm_2019
9752e8baacd67a56d7c56b828981dbbc863c7bdb
2ead11b1415612d2d9be0898ba0c971bcde46943
refs/heads/master
2020-08-03T07:14:53.716356
2019-09-29T13:12:41
2019-09-29T13:12:41
211,664,411
0
1
null
null
null
null
UTF-8
Python
false
false
5,800
py
#! /usr/bin/env python # encoding:utf8 import rospy from smach import * from smach_ros import * from tf.transformations import euler_from_quaternion, quaternion_from_euler from geometry_msgs.msg import * from math import pi,atan import tf # FGM: This State is expected to solve the problem that xm backs up outwards th...
[ "2595858788@qq.com" ]
2595858788@qq.com
e0f6234d333f704a58a6ab9f101c42dd0a2db339
a6884b99ff43422597a2c8eb57acb1e0a474178b
/converter.py
1e942b5f7404b145bc630c096d1536a0aaeacd6f
[]
no_license
alroman/prime-graph-loop
7b788523cefd6ab84dcaf5d2ed532931f3a4b2f0
82150529f350d15327435da629db6ac095aea917
refs/heads/master
2021-01-02T09:15:14.539948
2012-09-19T02:06:03
2012-09-19T02:06:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
''' Read a file with list of primes, output primes per line ''' def foo(fil): f = open(fil, 'r') w = open('prime_list.txt', 'w') # advance the pointer for i in range(4): f.readline() for line in f: # split by ' ' s = line.split(' ') # only save clean info for l in s: if(len(l.strip())): w.wri...
[ "alromanb@gmail.com" ]
alromanb@gmail.com
64fb2ef450cee3527d782c33dc9e0c7c0cdb864e
acdf43c3b2f415c759937493180f1e24b3262063
/G_twoLayersNN.py
afeb0a2abf0ec1c2e8ca531d3292515dce9c38c7
[]
no_license
gorbi/cse691_homework4
6e2d70b67c292e9c0f554d3f7121361db1876177
693171b1252665a68239fd0dbf4b225dec662f7c
refs/heads/master
2021-07-25T21:10:33.581807
2017-11-01T02:29:53
2017-11-01T02:29:53
108,135,838
0
0
null
null
null
null
UTF-8
Python
false
false
9,263
py
import numpy as np class TwoLayersNN (object): """" TwoLayersNN classifier """ def __init__ (self, inputDim, hiddenDim, outputDim, update=0): self.params = dict() self.update = update self.params['w1'] = 0.0001 * np.random.randn(inputDim, hiddenDim) self.params['b1'] = np.zero...
[ "nagaprasad@outlook.in" ]
nagaprasad@outlook.in
ef4a126562505db34aa836430078148dcbfd71a4
a462a24ff937e151e8151f3a1bdc9c3714b12c0e
/2021EJOR/scripts/mebb/mebb_11_51.py
17f1585137674da26b982b1f87cdbfac36fdc275
[]
no_license
noeliarico/kemeny
b4cbcac57203237769252de2c50ce959aa4ca50e
50819f8bf0d19fb29a0b5c6d2ee031e8a811497d
refs/heads/main
2023-03-29T14:36:37.931286
2023-03-16T09:04:12
2023-03-16T09:04:12
330,797,494
0
0
null
null
null
null
UTF-8
Python
false
false
188,718
py
import numpy as np import pandas as pd import time from kemeny import algorithms as alg rep = 3 results = np.zeros(0).reshape(0,7+rep) ############################################################## om = np.array([ [0,32,14,21,25,27,30,23,22,16,21], [19,0,15,18,16,21,21,18,18,17,17], [37,36,0,32,28,30,31,22,19,25,23]...
[ "noeliarico@uniovi.es" ]
noeliarico@uniovi.es
78b74da7f2aebedbe38658a2a3381a3fe4a7698a
81e12e3d86ccf7491b5dad29161bfc3ce5d9080c
/withoutrestm2/urls.py
6500c7f62f3af208cab517270725271af28e7534
[]
no_license
hack000025/CRUD_WITHOUT_REST_USING_PYTHON
b4ad5388a702510373b93810ef80e820aa24808c
ba817e1cf315477ccf676fca101f5c4d93ddba6c
refs/heads/main
2023-08-13T21:03:22.187086
2021-10-02T11:35:43
2021-10-02T11:35:43
412,777,809
0
0
null
null
null
null
UTF-8
Python
false
false
803
py
"""withoutrestm2 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...
[ "pradipnishad67@gmail.com" ]
pradipnishad67@gmail.com
223706274a7f1956fe2337f2225c386d7e53bd30
743481909ae50170f76b5a8ff9526ae97942d1ac
/tests/ut/python/attacks/black/test_pso_attack.py
1763580d64ed803866130a357c5bec31b5dfb730
[ "Apache-2.0" ]
permissive
zengchen1024/mindarmour
1a888f51aefd25ad3ddb53673033482df221a5ad
eed59453cf048da92fe15f57dbe3ca7de8b7adcb
refs/heads/master
2021-05-20T20:53:36.777515
2020-04-02T09:49:34
2020-04-02T09:49:34
252,413,321
0
0
Apache-2.0
2020-04-02T09:38:24
2020-04-02T09:38:24
null
UTF-8
Python
false
false
4,515
py
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "zhenghuanhuan5@huawei.com" ]
zhenghuanhuan5@huawei.com
811e78d3cba821de4ff51a45377afe327baeb169
9fbafc49eeadc0df5882c9d3b244df447d70ad44
/Homework/Week_2/eda.py
77b15cb0f22e8b59e4c291ef6268aa996ba627e4
[]
no_license
TulaKaptein/DataProcessing
84f8be4b2a5c0a21210298f5f75968326ead510a
c4ad2dec18ee5ab8be7d8c17ceb8deb2e9118a4f
refs/heads/master
2020-04-04T19:12:11.781653
2018-12-17T14:14:27
2018-12-17T14:14:27
156,196,173
1
0
null
null
null
null
UTF-8
Python
false
false
2,469
py
#!/usr/bin/env python # Name: Tula Kaptein # Student number: 11013478 """ This script improves data from an input file and writes it to a JSON file. """ import pandas as pd import matplotlib.pyplot as plt import numpy as np from pandas.api.types import is_numeric_dtype # a function to remove outliers from # https:/...
[ "tula.kaptein@gmail.com" ]
tula.kaptein@gmail.com
c4c8dcbdff9aa6c4b969d59f1be6baaeb9cae7e9
5ef4f200b9f3a9727a17157c0631d9a69268bee6
/src/config/settings/main/local.py
64b984a713649799d952611f1704d26d7544d3fa
[]
no_license
Lost-tail/EducationPortal
11002a663c86c62c84d6987c95aaee1713df7971
a80e7267cefd501f1867d740c6e2bed0d5d810be
refs/heads/master
2023-07-16T16:10:32.726335
2021-08-11T19:56:29
2021-08-11T19:56:29
395,100,417
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
from .base import * DEBUG = True ALLOWED_HOSTS = ['*']
[ "dead43rus@gmail.com" ]
dead43rus@gmail.com
6ae2af63c360ac6ce8e469d4ef399d5bd20040d2
6e4e6b64c035881f1cff39db616b0a80e1568c51
/JOI7Qual/q1.py
360741c86f3ad98b0fc70d4bc433923644dfa0f2
[]
no_license
Lischero/Atcoder
f7471a85ee553e3ae791e3e5670468aea1fa53cc
f674d6a20a56eebdafa6d50d5d2d0f4030e5eace
refs/heads/master
2020-05-21T16:23:36.095929
2018-10-18T04:27:55
2018-10-18T04:27:55
60,671,810
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
# -*- coding:utf-8 -*- N = int(input()) change = 1000 - N factors = [500, 100, 50, 10, 5, 1] ans = 0 for factor in factors: while change >= factor: change -= factor ans += 1 print(ans)
[ "vermouth.lischero@gmail.com" ]
vermouth.lischero@gmail.com
3964fcceaa73f6a56c27b58493d62552be76a1fb
89ade40b52968d3ca1ac2a3725d53425f18fa203
/Intermediate Python/Add column (1).py
1d2971b461fd7c3c766ee8975ef0ebb7daf26b48
[]
no_license
Diganta-droid/Data-Camp-Exercise
bdc796abc476d1d7ab201f6911ce56580c335b2b
4bfd2e3bb02b382f5876e4010ed04e5e1aa147c7
refs/heads/master
2022-09-17T14:31:26.619462
2020-06-03T07:45:16
2020-06-03T07:45:16
266,725,467
4
0
null
null
null
null
UTF-8
Python
false
false
823
py
Add column (1) In the video, Hugo showed you how to add the length of the country names of the brics DataFrame in a new column: for lab, row in brics.iterrows() : brics.loc[lab, "name_length"] = len(row["country"]) You can do similar things on the cars DataFrame. Instructions 100 XP Use a for loop to add a new co...
[ "noreply@github.com" ]
Diganta-droid.noreply@github.com
0ea3d016199d5fb419605b44d6498d4c67bd7528
1a2636bb831c727e26a9995fc2b6f535465905f9
/summerfield/chapter1/bigdigits.py
b28f83c8651e7d0ef012d9012683ae097d8ee372
[]
no_license
gsaronni/showcase
a7965135f855c9ad6b8963cec091e81b2c88aa9c
e931e4591fb1351ff775965ec7bf7cb1ca6ac10c
refs/heads/master
2023-03-03T03:47:45.446720
2021-02-13T09:23:00
2021-02-13T09:23:00
293,840,074
0
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
''' Copyright 2010 Pearson Education, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed...
[ "garloni@protonmail.com" ]
garloni@protonmail.com
3c88dfea19732bd183b7564c1bd2e335aa20e557
a8311e351ae9ba0e929daa757187b3dd5dc6bc83
/UDM/Nudm_UEAU/__init__.py
d6fde40e4e4860149d95ccc7233f3d482ff4dbbd
[]
no_license
carloshtobar/A5GCoreNetworkPrototype
5172cebdc80a27bd9ca4f4568215aa0f4a83dfdb
fb182049b735526419c3635825dd15eb68c65c74
refs/heads/master
2020-05-18T07:24:34.306171
2019-05-13T14:31:10
2019-05-13T14:31:10
184,263,914
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
# -*- coding: utf-8 -*- from flask import Flask from flask import Blueprint import flask_restful as restful from v1.api.AuthDataGeneration import AuthDataGeneration routes = [ dict(resource=AuthDataGeneration, urls=['/AuthDataGeneration'], endpoint='AuthDataGeneration') ] def create_app(): app = Flask(__name...
[ "noreply@github.com" ]
carloshtobar.noreply@github.com
6226c2da30b3f1bfc231a556d691699f08397741
835b99cf3284926bc4fe36f5b67404a3626617be
/pypeline/entities.py
05b4f88091438ed055d24f95d421e3b784ab75c8
[]
no_license
carloszanella/pypeline
1a016ca1291b84653d766608a2e7f3bbdf346deb
1409993df853551a839eaae0bbf162166c2b896a
refs/heads/master
2022-07-03T14:17:53.223101
2020-05-17T07:27:41
2020-05-17T07:27:41
264,604,786
0
0
null
null
null
null
UTF-8
Python
false
false
3,210
py
from dataclasses import dataclass from logging import getLogger, DEBUG from pathlib import Path from typing import List import dask.dataframe as dd import h5py import dask.array as da import pandas as pd import numpy as np from pypeline.structure import structure from pypeline.training.models import Model log = getL...
[ "cfszanella@gmail.com" ]
cfszanella@gmail.com
e2e6ae133a3c7d5e2a67478e807b2afbce460c4e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02921/s327676216.py
8d79966a0d9b41817f7a2c90ca060bbf016f3e46
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
# -*- coding: utf-8 -*- ## Library import sys from fractions import gcd import math from math import ceil,floor import collections from collections import Counter import itertools import copy ## input # N=int(input()) # A,B,C,D=map(int, input().split()) # S = input() # yoko = list(map(int, input().split())) # ta...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e2c4da8a50b9ac32f6024c7d70fd94d3bb2a17d8
8e012df5165be2559d2950e69b39d41e7c6945f1
/blog_project/blog/admin.py
27004ca877029e90c1568f36410b60a8e290fc30
[]
no_license
Satya-mac/blogproject
1a1ce6e0c123fe68c08568f3ca7bef806befe42a
e91df9dfb6657a3f2516cfeac918841dc527ec68
refs/heads/master
2023-06-17T07:21:47.090183
2021-07-13T14:51:20
2021-07-13T14:51:20
385,636,822
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
from django.contrib import admin from blog.models import Post,Comment # Register your models here. class PostAdmin(admin.ModelAdmin): list_display = ['title','slug','author','body','publish','created','updated','status'] list_filter = ('author','status','publish') search_fields = ('title','body') raw_i...
[ "psatyajit185@gmail.com" ]
psatyajit185@gmail.com
21fdd49fc1fb76a3cc03f725d4b487201b4c2880
b9a4efbcf48e52a1333f6a548338e2f62aed30e3
/forms/migrations/0002_alter_medical_receipt_line_inheritance.py
5ea2a585642bb2db4cff443c9dea7f988e09f6fa
[]
no_license
Rabin5/formcollection
0747639d9a2ff291457aacce874eb5a6428dea73
38c0bf763ae0a15c301c020d76ff0596c561da14
refs/heads/main
2023-08-10T18:48:26.736876
2021-09-26T06:19:09
2021-09-26T06:19:09
410,467,808
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# Generated by Django 3.1.4 on 2021-01-28 08:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('forms', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='medicalreceiptline', name='create_user', ...
[ "jenish.acharya@infodevelopers.com.np" ]
jenish.acharya@infodevelopers.com.np
1edcf8a3dd8960ba01f77009fe807a84eda11bc0
6cf2467285a128987b438a12081ce5a50c3a3104
/.ipynb_checkpoints/cleaning-checkpoint.py
9d9af0b76b0e88cc9cf53279164cc46b25152d86
[]
no_license
Carterbouley/mod_5_project
5a8cef973ca140ada4d98bc6c01c1d4e5cb21b42
1de498a8ef8589a64a5f92eeb9e69940d91ab860
refs/heads/master
2020-09-29T19:30:05.537296
2020-07-21T14:28:04
2020-07-21T14:28:04
227,105,569
0
0
null
2019-12-13T13:04:54
2019-12-10T11:40:44
Jupyter Notebook
UTF-8
Python
false
false
2,644
py
def FixEducation(df): to_drop = (df.loc[(df.Education > 4 )|(df.Education == 0) ]).index to_drop_again = (df.loc[df.MaritalStatus == 0]).index df = df.drop(to_drop) df = df.drop(to_drop_again) return df def AddAverages(df): df['average_bill'] = (df['BillApr'] + df['BillMay'] +...
[ "zarialevi@gmail.com" ]
zarialevi@gmail.com
01a126faa7b657053d60373cfecb5713580793a1
2cf28bd139a041935b1c6d65b4fbfd8b5e3b0998
/Code/DataCreate.py
f2b4e33be8efce85d405ae9beb4ce0b4715aadfb
[]
no_license
TrickyJustice/Movement-Command-Recognition-Classifier
a978f59a454735c86e2397df6599d04e2fd91a0b
acd324e7802e0efb61f7d2419a86751ca37bd00b
refs/heads/main
2023-07-29T18:06:31.873554
2021-09-07T20:34:00
2021-09-07T20:34:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,487
py
import pyaudio import time from playsound import playsound from datetime import datetime import wave now = datetime.now() current_time = now.strftime("%H:%M:%S") print('Hi, please enter initials- ') print("Current Time =", current_time) ini=input() options=['Left','Right','Forward','Backward','Left','Right','Up','Do...
[ "noreply@github.com" ]
TrickyJustice.noreply@github.com
40a70af1e5e64883ea8462a87e6a8fade31fcd78
9b492088dee2c276346558dc6c9e637ea018e061
/mutability_and_immutability.py
54acd8aa7fd13957e6acdf7135f4c86b01cdff22
[]
no_license
KaustubhDhokte/python-code-snippets
8ba8bf2feab93e1acdf402481b5f327285664cf4
a86895ccb8413ad329c9da780521629edb3cbf07
refs/heads/master
2020-12-06T08:53:17.748974
2018-05-22T11:58:44
2018-05-22T11:58:44
66,947,065
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
a=b=4 b=5 print a # 4 print b # 5 a = [1,2]; b = a; b[0] = 4; print a # [4, 2] print b # [4, 2] # Shallow copy a = [1,2,3]; b = a[:]; b[0] = 8; print a print b c = [4,5,6]; d = list(c); d[0] = 8; print c print d p = [1,2,[3,4]]; q = p[:]; q[2][1] = 99 print p print q
[ "kaustubh.dhokte@gmail.com" ]
kaustubh.dhokte@gmail.com
be464077a5b6a83c4e5e8f5e3d3dca5c80b13cb5
b5b060b715d560c0534c111b1315043605a9df41
/tools/rolldown_matrix.py
b6030a7a135ad3babde21e0a233e6da3313e4283
[]
no_license
DominicHong/FXIncome
d354a812b6dc494da75245558a1814b5dab43131
dfa3d091534e964c431226b673c211971a4cf73a
refs/heads/master
2023-08-17T05:58:25.144684
2023-08-15T07:57:24
2023-08-15T07:57:24
370,220,289
4
4
null
2022-12-03T08:25:37
2021-05-24T03:50:53
Python
UTF-8
Python
false
false
9,858
py
from fxincome.asset import Bond from fxincome.utils import get_curve import datetime from matplotlib import pyplot as plt import pandas as pd import numpy as np from pandas.api.types import CategoricalDtype from tqdm import tqdm from dateutil.relativedelta import relativedelta pd.set_option('display.max_columns', None...
[ "panda@vip.qq.com" ]
panda@vip.qq.com
8a1420991c7365f09dd23479368f9c23d3c181f4
485cf3c70fcaa68689a2b690b6465f1d6bcf21bd
/Python_Coding_Tips/Code_py/Code(实例源码及使用说明)/01/11/2.列表拼接的4种方法/demo04.py
9c2228030fefdd2ff56cc3049a75ad004b1c1f83
[]
no_license
lxz0503/study_20190608
5ffe08c4704bb00ad8d1980baf16b8f5e7135ff4
47c37798140883b8d6dc21ec5da5bc7a20988ce9
refs/heads/master
2022-12-23T17:23:45.039015
2021-06-23T14:50:19
2021-06-23T14:50:19
190,884,812
1
3
null
2022-12-15T23:17:33
2019-06-08T12:22:56
Python
UTF-8
Python
false
false
1,015
py
# *_* coding : UTF-8 *_* # 开发团队 :明日科技 # 开发人员 :Administrator # 开发时间 :2019/7/1 15:32 # 文件名称 :demo04.py # 开发工具 :PyCharm gem = [["大众",643518],["奔驰",319163],["宝马",265051],["福特",252323],["雪铁龙",227967],["奥迪",255300]] fra = [["雪铁龙", 698985],["雷诺",547704],["大众",259268],["福特",82633],["宝马",84931],["奔驰",73254]] eng = [[...
[ "lxz_20081025@163.com" ]
lxz_20081025@163.com
a79f7bf22650c258ef1a7b4b3c06fc6b29264df0
4a8085c1a18bc25941af4f45be12640efba28ce1
/Python Scripts/data_processing.py
4b2a8f358383bfa9b88e026e001c41fad66bf530
[]
no_license
Wernerpede/Coursera-Capstone
2cea18f8c479ca6335fb3463296ad601f40943b1
e6c214d0ee76a6ff6406ebb8da93cd9166022c47
refs/heads/master
2022-12-26T08:23:08.473818
2020-09-13T21:23:24
2020-09-13T21:23:24
290,603,488
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
import pandas as pd import numpy as np print('Hello Capstone Project Course!') df = pd.read_csv('Data-Collisions.csv') columns = df.columns unknown = df['ROADCOND'].isnull().sum() correlation = df.corr()
[ "gui.werner.007@gmail.com" ]
gui.werner.007@gmail.com
34a357874eb041b8a0e731878be4b0c4285e7f06
4ddb0aeb6e568abb5ea11dafb2ac36c67f02dc63
/src/ui/web/register_images.py
aa863da8e8722f639984e30f105990b60741c678
[ "BSD-2-Clause" ]
permissive
longamu/vise
409175074f85d3daddfd6bb095242400ef2033e8
1a8bf5e97cbcdad302cd8d8532fe818b8272382c
refs/heads/master
2022-12-15T12:07:27.666756
2020-09-02T09:37:21
2020-09-02T09:37:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,727
py
# # ==== Author: # # Relja Arandjelovic (relja@robots.ox.ac.uk) # Visual Geometry Group, # Department of Engineering Science # University of Oxford # # ==== Copyright: # # The library belongs to Relja Arandjelovic and the University of Oxford. # No usage or redistribution is allowed without explicit permission. # imp...
[ "thelinuxmaniac@gmail.com" ]
thelinuxmaniac@gmail.com
c7c5b0151c352832384a07e85f6e49c5f966ec94
a0947c2778742aec26b1c0600ceca17df42326cd
/Python/PythonInADay2/CSV-Files-Drill/37of79-87.py
c6d72c705eb76b99aaf1d8f9ab163131ca821099
[]
no_license
JohnCDunn/Course-Work-TTA
5758319d4607114914ba9723328658bed8fb2024
8c4f60d51007dac2ac4cceb84b0f9666e143c0d7
refs/heads/master
2021-01-10T16:37:02.609879
2016-02-01T18:05:38
2016-02-01T18:05:38
49,983,248
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
import wx class Frame(wx.Frame): def __init__(self, title): wx.Frame.__init__(self, None,\ title=title, size=(300,250)) panel = wx.Panel(self) wx.SpinCtrl(panel, value='0', pos=(130, 50), size=(70, 25)) app = wx.App() frame = Frame("wxPython Widgets!") frame.Show() app....
[ "JohnClydeDunn@Gmail.com" ]
JohnClydeDunn@Gmail.com
3cacda28f5023df250d156ab5a4eff4b61274f2e
dc77896138400114f6770310591fbfb02e36d3cd
/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/common/utils.py
cf5bc6fc70109d2f501aa0fa00154039301d810c
[ "MIT" ]
permissive
drgarcia1986/cookiecutter-muffin
97163a66a57d83dc802223ccbd5307bd1896429d
7aa861787b4280477a726da99cf9de4047b01d91
refs/heads/master
2021-01-01T16:34:08.043952
2015-08-27T22:19:35
2015-08-27T22:31:22
40,458,394
3
0
null
null
null
null
UTF-8
Python
false
false
216
py
import muffin from .. import app @app.ps.jinja2.context_processor def current_user_context(): local = muffin.local(app.loop) current_user = getattr(local, 'current_user') return {'user': current_user}
[ "drgarcia1986@gmail.com" ]
drgarcia1986@gmail.com
e2b090d8dd6aa936d6da61a45b0266a9f18fbee8
a53453e2290e7a0f3ed5e885dd212c9601a9220d
/bidimensional.py
093d424fb51f471093147006de2ad0cd622450ea
[]
no_license
matteog23/Mean-fieldPMP-NeurODE-training
acf8a290a9201b1936c7a41d009234b2c5d40404
cac5cc0131155488214f04e3a71e925166a8e872
refs/heads/main
2023-06-21T11:42:03.585022
2021-07-20T08:58:07
2021-07-20T08:58:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,994
py
import argparse import numpy as np import matplotlib.pyplot as plt from mpl_toolkits import mplot3d #%matplotlib inline import time from IPython import display from scipy import stats from scipy import interpolate from sklearn.neighbors import KernelDensity from modules.training_nobias_2D import MFOC as MFOC_nobias fro...
[ "81622069+CristinaCipriani@users.noreply.github.com" ]
81622069+CristinaCipriani@users.noreply.github.com
d9619bb15f9b45b02de8603b80c741cced2ef501
f1a461a36df64117a16c3afe7c9b2beb1c1b96cd
/hw2/code/A4_b.py
dd9b055eb19a3b136966d6bd222ee1dc97016163
[ "MIT" ]
permissive
bobbydyr/CSE546-Machine-Learning
c368f3124d598fcc2e6b248a922e60ef78190c4a
c3f7e487b60506acfa7886d7cc64dfa61550ee4b
refs/heads/master
2022-12-10T13:53:33.440188
2020-09-10T18:05:06
2020-09-10T18:05:06
269,527,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
from A4_A5_starter import * if __name__ == '__main__': n = 500 d = 1000 k = 100 X_train = generate_x(n, d) y_train, W_init = generate_y(n, d, k, X_train) lam = compute_initial_lamb(X_train, y_train)[0] # lam_list = [] number_of_nonezero_feature = [] FDR_list = [] TPR_list = [] ...
[ "bobbydyr@gmail.com" ]
bobbydyr@gmail.com
1cf474edeb8af5d436ca5e0746c5e49a06c27da6
77484e7e53da51690d611b4c208b680e3ffb8bd7
/5338.py
60680995be6c06e858e6e8321b678fc4ee792007
[]
no_license
n-agi/acm-icpc-study
82355bdfa2d3ab1169065a34c736d46533f72ae8
6702b745733b9f0520e719bea0a7bd8456c73e15
refs/heads/master
2021-01-17T11:16:15.714638
2016-04-17T18:13:31
2016-04-17T18:13:31
34,612,200
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
print """ _.-;;-._ '-..-'| || | '-..-'|_.-;;-._| '-..-'| || | '-..-'|_.-''-._|"""
[ "akanagi95@gmail.com" ]
akanagi95@gmail.com
c843fa0f28a644a7ffdac1bbce2db916708168ce
7324209db425ceb226e7d5d429c473d9687b6e79
/library/api/pgoapi/utilities.py
ae3e9d32802e6183f201aca9421f7a4bb35f81c2
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
infinitewarp/poketrainer
937be072892e61ecbe90e0264bec9bce4b4ba2f4
1b93fea488553ea7ce16103913a0940c22d3f24a
refs/heads/master
2021-01-14T11:29:54.934138
2016-08-17T00:01:11
2016-08-17T00:01:11
64,431,149
1
0
NOASSERTION
2021-10-10T17:14:44
2016-07-28T22:05:26
Python
UTF-8
Python
false
false
6,012
py
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> 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, including without limitation the rights to use...
[ "m.hofer117@gmail.com" ]
m.hofer117@gmail.com
bbc418a42973b051de3e9c10d573895219af86b0
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/web/v20200901/get_web_app_slot.py
dae31f66a42b428754b1c8f79c1670fe27468c36
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,519
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
312531a60ba1aa5b50498679bb38f3a2ac0b3c92
a2542199b6895ac931897445fb5f3e20a1f3e161
/cogs/background_tasks.py
49c43c99ad3352ca3e3d30f06b45294d0061aad4
[ "MIT" ]
permissive
rasceta/minigames-bot
e069b1fcf4247681aa06a0c4ec2896ba3a783e34
18c1b82af8707d92b2efdcb2f7f7b7de31769607
refs/heads/master
2023-02-05T06:22:26.112210
2020-12-19T04:27:02
2020-12-19T04:27:02
273,402,649
2
0
null
null
null
null
UTF-8
Python
false
false
4,092
py
import discord import asyncio import random import datetime import util from discord.ext import commands, tasks class BackgroundTasks(commands.Cog): def __init__(self, bot): self.bot = bot @tasks.loop(minutes=10) async def free_coins(self): conn = self.bot.conn cursor = conn.curso...
[ "rio.sufilin@gmail.com" ]
rio.sufilin@gmail.com
d41156456c1a71e84a5cdbde4dfaaa83d4cdfa56
64b9c531b7a55ebe13706d150dc2ad0152285f08
/pylotVenv/bin/pip2
c3403704d8a47139fa2c1aed2620b6eed6544903
[]
no_license
AdamAly831/course
b69428e057aed2b226280e0f4f93e58246ff5a64
e0e19e9717370314762885a36a669ed234873124
refs/heads/master
2020-05-29T09:16:55.668541
2016-09-23T17:45:23
2016-09-23T17:45:23
69,044,662
0
0
null
null
null
null
UTF-8
Python
false
false
257
#!/Users/Adam/Documents/CodingDdojoPylot/Pylot/pylotVenv/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "Adam@Adams-MacBook-Pro-5.local" ]
Adam@Adams-MacBook-Pro-5.local
41032164b3bc13db8bd6caa6f95d09bf89111680
05c894ee753e3b0610bec82890ac178dc4810dd9
/week6/tiaozhan24/apple_analysis.py
d7154213968c4f9da2bf3607b85f2ad6bbbc9ede
[]
no_license
monster-shang/shiyanlou
b3d2c1a566508f1ae93bdbbd6383ee8689edad83
84a323ae91693b24f67271a82df43a369a0de13f
refs/heads/master
2021-04-06T16:53:20.822186
2018-05-08T14:18:33
2018-05-08T14:18:33
125,403,445
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
import pandas as pd def quarter_volume(): data = pd.read_csv('apple.csv',header=0) data.index = pd.to_datetime(data['Date']) date = data.drop('Date',axis=1) date = date.resample('Q').sum() date = date.sort_values(by = 'Volume',ascending=False) second_volume = date.iloc[1].Volume return secon...
[ "jshang@live.cn" ]
jshang@live.cn
cdc2803ddd5193d2deda25b5ec5ccc5bc7cff350
c13734d2bbe9803293a43edae5b62bc12c05af8e
/Computer Science Workshop/exp15.py
948a7d07ce0f9c307df718220522740a3bcb9cc5
[]
no_license
abinjosephjosegiri/KtuCseLab
d2ee9ac870c581ef406ca4b8b7f62d604ce52084
3dc7828f46deff6b316dee61a784d328d3899f58
refs/heads/master
2021-07-20T14:35:41.905282
2019-10-17T16:18:26
2019-10-17T16:18:26
218,273,487
0
1
null
2020-09-29T13:14:15
2019-10-29T11:42:00
null
UTF-8
Python
false
false
254
py
15.Diplay a pyramid #a=10 for i in range(1,11): for j in range(11,-i): print " ", for j in range(1,i): print "*", for i in range(i,0,-1): print "&", """for s in range(a,1,-1): print " ", print "*", print "\n" a=a-1""" print "\n"
[ "jaseemckclt@gmail.com" ]
jaseemckclt@gmail.com
7b7fd334b67b1727da4bdc482d2cdcaadfa4dab1
0403dcc7cdf0e8174300569969914e885ebc4a9b
/tests/test_scriptdata_longstring.py
e12af73e657048fee3f976929a27d7d4d20b3bfb
[ "BSD-2-Clause" ]
permissive
chrippa/python-flashmedia
03ea9029ef51871872c87d26384bf8433d8b165c
f5df4987d6d6661a240756435bb8729f82d8d31f
refs/heads/master
2021-01-19T19:36:09.256165
2013-04-29T10:30:07
2013-04-29T10:30:07
5,651,549
15
3
null
null
null
null
UTF-8
Python
false
false
1,799
py
# vim: set fileencoding=utf8 : from __future__ import unicode_literals from . import with_fd from flashmedia.types import ScriptDataLongString ASCII = b"\x00\x00\x00\x03ABC" ASCII_SIZE = len(ASCII) UTF8 = b"\x00\x00\x00\t\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e" UTF8_SIZE = len(UTF8) BROKEN_UTF8 = b"\x00\x00\x00\x08\...
[ "chrippa@tanuki.se" ]
chrippa@tanuki.se
09ce422a599985115f743d7053d33f256b48c224
5eb98f99c54db6977522b270267ba2bceba3ab00
/ImageNet.py
925f5ea74a28c4ed4c7bb6ac84fd2898998deb58
[]
no_license
hmaciej/robustness_score
f88d5efd6dc89bf36d25e9782b69b844f8dd1747
14e3179b2e419f299810fdf1546e46e1089bfa46
refs/heads/main
2023-06-23T03:52:46.726595
2021-07-21T17:31:19
2021-07-21T17:31:19
381,945,061
0
0
null
null
null
null
UTF-8
Python
false
false
8,313
py
CLASS_TO_CALCULATE = 1000 # reduce it for quick test PATH_LABEL_TO_WORDNET = '/home/projects/RobutnessScore/imagenet_label_to_wordnet_synset.txt' PATH_LABEL_TO_WORDNET = '/home/projects/RobutnessScore/imagenet_label_to_wordnet_synset.txt' PATH_IMAGENET_CLASS = '/home/datasets/imagenet_2012/val/{}/' PATH_IMAGENET_BBOX...
[ "kamil@szyc.org" ]
kamil@szyc.org
d8008a32e7bb7e5c99b26969c80a158e3039a4bb
408ffc3d540db66a44565c27b7b99985874fe2e6
/www/markdown2.py
cd07e4bdf3980e4cf6ba5f8a416f6e0520559ce3
[ "Apache-2.0" ]
permissive
cocomilk2012/awesome-python3-webapp-github
665b1c4c5b9fe163c1f3dbba059a8520f8a0234c
2c1dd28f3dbcf1d72045e710703aba18a9310309
refs/heads/master
2020-03-26T07:38:38.670697
2018-08-22T06:00:27
2018-08-22T06:00:27
144,663,467
0
0
null
null
null
null
UTF-8
Python
false
false
97,649
py
#!/usr/bin/env python # Copyright (c) 2012 Trent Mick. # Copyright (c) 2007-2008 ActiveState Corp. # License: MIT (http://www.opensource.org/licenses/mit-license.php) from __future__ import generators r"""A fast and complete Python implementation of Markdown. [from http://daringfireball.net/projects/markdown/] > Mar...
[ "314734119@qq.com" ]
314734119@qq.com
f331fd7e97ee7b3e66b6deaf8dff3920689dcf7c
c55b9c173bd5717057f32796a7db278c0271ea19
/MultiInfection/utils.py
c3547c7261ed96fc290d9ab03bef81f3d4b1fc66
[]
no_license
quadcure/covid_ct_segmentation
9ad9f517793a077f396ecd525082af15f6d69bbd
cbc4e23c270fe0aa0ad4a63108a08b8591d866fd
refs/heads/main
2023-07-24T07:03:07.584910
2021-08-08T09:42:19
2021-08-08T09:42:19
379,636,415
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
import torchvision as tv from PIL import Image import requests import numpy as np from configuration import Config config = Config() transform = tv.transforms.Compose([ tv.transforms.Resize((config.test_size, config.test_size)), tv.transforms.ToTensor(), tv.transforms.Normalize([0.485, 0.456, 0.406], ...
[ "sahiluppal2k@gmail.com" ]
sahiluppal2k@gmail.com
268b3297ca1dcd36e1d494fb49282a1fc9d57fbe
bb3c9712978832e0fda964b3dc4491628e935246
/decision_tree/Coding A Decision Tree/classifyDT.py
97c37046d490a13f4b4b2af416cb40731b437817
[]
no_license
skosko/udacity-machine-learning
5747c08fadae2ce0bc50c1d4986e6b92a97b1349
33abdc134e1fa2e274f6fa0483601e9539d11061
refs/heads/master
2021-01-11T17:06:11.479127
2017-02-04T18:09:27
2017-02-04T18:09:27
79,718,914
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
def classify(features_train, labels_train): from sklearn.tree import DecisionTreeClassifier clf = DecisionTreeClassifier(random_state=0) clf.fit(features_train, labels_train) return clf
[ "skoerbitz@gmail.com" ]
skoerbitz@gmail.com
676dd03f80716276969d1d992ae87e6a3525f8db
515cbb646c3646e74a49aa607023a4325ee8b3a2
/app.py
bc43068a76b52deb29af549e3d8d980b0701a560
[]
no_license
YouMellouki/Flask
b88999724d63cecbcf5235e4170f3d4dc6c9b8cb
6422150061ffe0d73cbb2f190573177bb3aaab5c
refs/heads/master
2022-12-17T00:34:56.734554
2020-09-19T12:32:42
2020-09-19T12:32:42
296,863,350
1
0
null
null
null
null
UTF-8
Python
false
false
2,074
py
from flask import Flask,render_template,url_for,request import numpy as np # ML Packages from sklearn.feature_extraction.text import CountVectorizer from sklearn.externals import joblib app = Flask(__name__) # Prediction def predict_gender(x): vect = gender_cv.transform(data).toarray() result = gend...
[ "noreply@github.com" ]
YouMellouki.noreply@github.com
3468f78680d2c6fa3b3616f9121f4dae00214184
ce55c319f5a78b69fefc63595d433864a2e531b5
/爬虫知识/爬虫/04day/04-爬取音乐.py
66b60b9b5ade7ecbd06ebc3bde5dd9fae6443f39
[]
no_license
Suijng/1809_data
a072c875e8746190e3b715e53f1afe3323f4666b
45f8a57089f5c30ccc1a3cddb03b76dc95355417
refs/heads/master
2022-12-21T12:38:30.458291
2019-09-27T01:14:41
2019-09-27T01:14:41
211,207,071
0
0
null
2022-11-22T03:16:18
2019-09-27T00:55:21
HTML
UTF-8
Python
false
false
360
py
import urllib.request proxy={ 'http':'61.176.223.7:58822', 'https':'119.102.132.60:31325' } handler = urllib.request.ProxyHandler( proxies=proxy ) opener = urllib.request.build_opener(handler) request = urllib.request.Request(url='http://www.xicidaili.com/') response = opener.open(request) content =...
[ "1627765913@qq.com" ]
1627765913@qq.com