blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
d091376ea903c1328ac580659f780419ba14131f
5f834f8aa0603f4f7adc56fdcd5e227538931f81
/diab_logisReg.py
2ce02d3f7c7d13896c4c7c0870cb4b25f1af7a59
[]
no_license
Kamal-prog-code/HealthCare
d9a613bcb315a04b14feead97bb4367034f91606
2d2fe464a5d25c1373634663dc1eaf07a9064a30
refs/heads/main
2023-01-20T22:17:55.157525
2020-12-05T20:50:03
2020-12-05T20:50:03
318,627,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
from pyspark.ml.feature import VectorAssembler from pyspark.sql import SparkSession from pyspark.ml.feature import StandardScaler from pyspark.ml.classification import LogisticRegression from pyspark.mllib.evaluation import BinaryClassificationMetrics from pyspark.ml.classification import RandomForestClassifier import ...
[ "karrerajisyam123@gmail.com" ]
karrerajisyam123@gmail.com
b25f51bd9909f386f89f3058a2323e1d1b8c133f
6c2608bc87b522da77c792e20330989de17b3005
/Chap-7/ex179.py
43c10f227985eb4652d2196644fcc6bc8c504dfe
[]
no_license
AleByron/AleByron-The-Python-Workbook-second-edition
8a0b408c1bbd90c82e6b837fc898ee10341ca8fa
491b2fd394aa04e29a4b2dbe9a615c547e239028
refs/heads/main
2023-01-13T21:01:17.757669
2020-11-11T01:29:28
2020-11-11T01:29:28
306,487,964
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
def square(n,g): if 0<n-g**2<10**-12: return g else: g = square(n,(g+(n/g))/2) return g def main(): n = 32 g = 1 print(square(n,g)) main()
[ "noreply@github.com" ]
AleByron.noreply@github.com
bfb90c8755e3b83e9062e88376453a3cfeeee7ec
9c2edc273db48dcb6d31a937510476b7c0b0cc61
/pyopengl_sample/tutorial1.py
0fd92b98d815dd26d6457ba6f9ac33791867e7e0
[]
no_license
miyamotok0105/python_sample
4d397ac8a3a723c0789c4c3e568f3319dd754501
77101c981bf4f725acd20c9f4c4891b29fbaea61
refs/heads/master
2022-12-19T22:53:44.949782
2020-05-05T05:09:22
2020-05-05T05:09:22
81,720,469
1
0
null
2022-11-22T02:22:55
2017-02-12T11:15:08
Jupyter Notebook
UTF-8
Python
false
false
391
py
#!/usr/bin/python from OpenGL.GL import * from OpenGL.GLUT import * def draw(): glClearColor(1.0, 0.0, 0.0, 0.0) glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) glFlush() glutSwapBuffers() glutInit(sys.argv) glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH) glutInitWindowSize(320, 240) g...
[ "miyamotok0105@gmail.com" ]
miyamotok0105@gmail.com
0d918889f8d20d3a4695849eb65eab1ae2ad9c9d
edfd1db2b48d4d225bc58be32fbe372a43415112
/team-task/airflow2.0/dags/efirmant/lesson3.challenge2.py
ea755ca01b0b78617310f0d87c4b0b0748206373
[]
no_license
rwidjojo/airflow-training
ed83cb9e97ca85ef06de1426f2f41014881a1f22
ac82040d8ddc3859df5576eee08d397e824016f1
refs/heads/main
2023-08-12T21:01:17.672059
2021-01-04T09:17:48
2021-01-04T09:17:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
import logging from datetime import timedelta from airflow import DAG from airflow.utils.dates import days_ago from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator from airflow.hooks.postgres_hook import PostgresHook owner = 'efirmant' # Replace with you...
[ "nurcahyopujo@gmail.com" ]
nurcahyopujo@gmail.com
3b97278167640c790740fbd6e9a435d1e87ce6e0
baaa8c9486e02f4232f4926cf4e1a2eeee1199b4
/accounts/admin.py
2395fb1f93dfca90cba93acc7edf2da53b6c172c
[]
no_license
bondarenkoav/helpdesk
b2be867605d484c34aaea4d8bea876c633947f14
866ea2dc6ee5182d6310d800b301270b38490fd2
refs/heads/master
2023-01-08T09:44:15.852016
2022-12-28T10:53:39
2022-12-28T10:53:39
93,615,791
0
0
null
null
null
null
UTF-8
Python
false
false
2,047
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from accounts.models import Profile class ProfileInline(admin.StackedInline): model = Profile can_delete = False verbose_name = u'Профиль' verbose_name_plural = u'Профиль' ...
[ "printex.orsk@gmail.com" ]
printex.orsk@gmail.com
8e291920bc9258758fe57e54877cada173a13eef
63bf6161532eefa72aa3be8b01cde601b08507dc
/python-mapping-example/fhir_model_generator/tests/model/slot_tests.py
ad3cec096349f05c2c4414e7b0a4ae6fc7aac7a8
[ "Apache-2.0" ]
permissive
Healthedata1/mFHIR
4ef370b87e03e973918e5683977d32fe262655bc
1b4ea441cfa08b661416a3badedf7e90f2809163
refs/heads/master
2022-12-10T21:07:03.948406
2021-06-18T01:58:23
2021-06-18T01:58:23
129,964,251
9
5
null
2022-12-09T05:23:54
2018-04-17T20:57:15
HTML
UTF-8
Python
false
false
6,767
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 on 2020-02-10. # 2020, SMART Health IT. import os import io import unittest import json from model import slot from model.fhirdate import FHIRDate class SlotTests(unittest.TestCase): def instantiate_from(self, filename): ...
[ "ehaas@healthedatainc.com" ]
ehaas@healthedatainc.com
63cf4e7fc790f00047e1d1b4a59e089134a6a4ce
1113e8eec4ccbbcd00c6a9b5466c5239b6f0eb03
/cpos/foundation/_callable/core.py
d5bcbc5bd5bde2ddfb68fa7a980ecfe3e94c65cb
[]
no_license
yizhong120110/CPOS
a05858c84e04ce4aa48b3bfb43ee49264ffc5270
68ddf3df6d2cd731e6634b09d27aff4c22debd8e
refs/heads/master
2021-09-01T17:59:53.802095
2017-12-28T05:43:06
2017-12-28T05:43:06
106,247,188
0
0
null
null
null
null
UTF-8
Python
false
false
6,495
py
# -*- coding: utf-8 -*- import textwrap import sys import os from ..substrate.utils.logger import logger from ..substrate.interfaces import Clarified class Callable(object): def __init__(self, py_code, fragment_name=''): self.d = {'py_code':py_code,'fragment_name':fragment_name} def run(s...
[ "yizhong120110@gmail.com" ]
yizhong120110@gmail.com
37a08b96698b20dd1fea9d7b61d6b4b83fbb7d5e
2672a2b664ed12f190b68deb51476b451a524561
/portal/config.py
e45d5065a743935fa64b17b3a1a2a8ea6266d98c
[]
no_license
LCBRU/genvasc_portal_web
9a2a27b4a2ba0fb2db402efc96eea8b2ed0a86e6
11eb562a5e92fd05fd5a902b7e062a2813e7b3f7
refs/heads/master
2023-01-09T09:59:07.301366
2023-01-07T14:44:07
2023-01-07T14:44:07
132,786,398
0
0
null
2022-01-11T13:17:30
2018-05-09T16:45:40
Python
UTF-8
Python
false
false
2,527
py
import os from dotenv import load_dotenv # Load environment variables from '.env' file. load_dotenv() class BaseConfig(object): REMEMBER_COOKIE_NAME = 'GENVASC Remember Me' REMEMBER_COOKIE_DURATION = 1 MAIL_SERVER = os.environ['MAIL_SERVER'] MAIL_DEBUG = os.environ['MAIL_DEBUG'] SECURITY_EMAIL_...
[ "rabramley@gmail.com" ]
rabramley@gmail.com
3dd764efee547895b61b17074bef1e80ee82a562
9bb6795a12d6e042b962704dab9ec59d92d54e8f
/1_numpy/2_reshape.py
b5d60e8241460327f2b7b83d534050593e76005f
[]
no_license
kimsoosoo0928/Perfect_Guide
c5177037512cb06814f0bbfcb70a22d14c9ec1fb
9b615d320957babb1a918fb38282062998a1e5c4
refs/heads/main
2023-07-18T12:29:03.353274
2021-08-29T00:31:28
2021-08-29T00:31:28
396,668,104
1
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
import numpy as np array1 = np.arange(10) print('array1 : \n', array1) array2 = array1.reshape(2,5) print('array2 : \n', array2) array3 = array1.reshape(5,2) print('array3 : \n', array3) ''' array1 : [0 1 2 3 4 5 6 7 8 9] array2 : [[0 1 2 3 4] [5 6 7 8 9]] array3 : [[0 1] [2 3] [4 5] [6 7] [8 9]] ''' arra...
[ "kimsoosoo0928@gmail.com" ]
kimsoosoo0928@gmail.com
7fa50c182bf54b2fbf51441eefa0f324279633e7
1431b07074b96c7baa6a43a99717da2a658424af
/test/utils/Test_Zip_Folder.py
d6ecc3e784eaacfbffe1988284d8bf95e88f557b
[ "Apache-2.0" ]
permissive
almeidam/pbx-gs-python-utils
054a7334070627bc27f682ed78c2986230d1cfab
3f8987dd2d1fc27d1d262385280d7303009f5453
refs/heads/master
2020-04-30T10:44:46.179729
2019-03-20T13:59:01
2019-03-20T13:59:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
import json from unittest import TestCase from utils.Dev import Dev from utils.Files import Files from utils.Misc import Misc from utils.Zip_Folder import Zip_Folder class Test_Zip_Folder(TestCase): def test__using_with__no_params(self): with Zip_Folder() as (zip_file): assert zip_file is No...
[ "dinis.cruz@owasp.org" ]
dinis.cruz@owasp.org
69acf6cb42853141e98f121c77a9d61f1f1a30cf
2c926b4847a44c7f831d47ed0160751d3248e8f4
/venv/lib/python3.8/site-packages/hubspot/automation/actions/models/single_field_dependency.py
f18ca6bf64e6504458c415ed11f6e4ab7e527d5a
[]
no_license
Women-in-Tech-Society/WITS_Site
c42cd2c9abe1b5515b80be82dc876a6c3842e42a
5dbf22f5ee5a36358f6f279af4c13d86d31653c5
refs/heads/main
2023-05-11T02:34:05.531902
2021-06-01T01:05:12
2021-06-01T01:05:12
278,658,100
0
5
null
2022-11-22T18:41:35
2020-07-10T14:43:28
Python
UTF-8
Python
false
false
6,688
py
# coding: utf-8 """ Custom Workflow Actions Create custom workflow actions # noqa: E501 The version of the OpenAPI document: v4 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hubspot.automation.actions.configuration import Configuration c...
[ "mhuda@uwo.ca" ]
mhuda@uwo.ca
d75ab97fb9184a24f45a05f01fc83903b2dc748e
6f8aec72f983715b1dcc1e067e980a440440423a
/bruteguard/patterns/singleton.py
a9f7c0f51adf9d2ce958d11132938a6d7c1b1ffb
[ "MIT" ]
permissive
dcopm999/django-brute-guard
41cef7c1f98b275c0ef2176424c8ef1e75002fdb
e4c629d81f1cc732ddae2a43042e92ea423884b8
refs/heads/master
2023-08-02T06:16:54.219332
2021-09-30T05:45:10
2021-09-30T05:45:10
409,435,237
0
0
MIT
2021-09-30T05:45:10
2021-09-23T03:32:47
Python
UTF-8
Python
false
false
1,076
py
from typing import Dict class SingletonMeta(type): """ В Python класс Одиночка можно реализовать по-разному. Возможные способы включают себя базовый класс, декоратор, метакласс. Мы воспользуемся метаклассом, поскольку он лучше всего подходит для этой цели. """ _instances: Dict[type, type] = {...
[ "dcopm999@gmail.com" ]
dcopm999@gmail.com
9bf099e4570aab4e3c827aba4cfa379cb7ad7196
a86cb1d0cc2c01ccc5b7d03d25a1b98d4f8b66ca
/day_18/crawling_03.py
08ce38608a68158041385e8770f169492843e3ce
[]
no_license
yongseongCho/python_201911
020efd812df909f6d1150c6a15a9a4fa6ee946b6
f4696fac81a101d13a95ca0ca602e6478b4d2f58
refs/heads/master
2020-09-12T12:44:46.364259
2019-12-19T13:17:08
2019-12-19T13:17:08
222,429,853
0
0
null
null
null
null
UTF-8
Python
false
false
1,321
py
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup as bs html = ''' <td class="title"> <div class="tit3"> <a href="/movie/bi/mi/basic.nhn?code=181710" title="포드 V 페라리">포드 V 페라리</a> </div> </td> ''' soup = bs(html, 'html.parser') # BeautifulSoup 객체의 find 메소드 # 태그의 이름과 속성의 ...
[ "noreply@github.com" ]
yongseongCho.noreply@github.com
90adc3801f23ed865f8ce3373066f9a2a5ee43e3
e2bd8debf59f71e2c7fabea03cc108618944b2b0
/el_pagination/paginators.py
6da5231fca53a0b0e1e586150ed4c8803e1d1b0e
[]
no_license
successar/Quizz
874c7c8656c33973d5d4f9563073b0434573a333
2244ff13568db92e3ff88156982ec44c83418199
refs/heads/master
2021-01-21T13:11:45.960397
2016-05-11T10:34:48
2016-05-11T10:34:48
53,747,315
1
1
null
2016-05-07T15:00:41
2016-03-12T18:36:34
Python
UTF-8
Python
false
false
4,359
py
"""Customized Django paginators.""" from __future__ import unicode_literals from math import ceil from django.core.paginator import ( EmptyPage, Page, PageNotAnInteger, Paginator, ) class CustomPage(Page): """Handle different number of items on the first page.""" def start_index(self): ...
[ "successar@gmail.com" ]
successar@gmail.com
2a739b751d27912b4ec246d9d6c54a4b4576bb53
441ee516fa509a66eb6a6132ed0fbafeae1a06ae
/uploadf/models.py
ecd3c53d7d6062ba60639a19f3c1636e76875306
[]
no_license
Shirhussain/FileUpload
3237627020ec322d4097e757b64f9f0c64feb4e7
19d2e848d7d05fd46838f9140c0a5658bbca281a
refs/heads/master
2022-08-26T13:26:23.859084
2020-05-27T22:02:36
2020-05-27T22:02:36
264,777,859
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
from django.db import models class Book(models.Model): title = models.CharField(max_length=100) author = models.CharField(max_length=50) pdf = models.FileField(upload_to="mag/") cover = models.ImageField(upload_to="mag/cover/", null=True, blank=True) def __str__(self): return self.title def delete(sel...
[ "sh.danishyar@gmail.com" ]
sh.danishyar@gmail.com
fbf9ee05f41aa879f6e8efe0d638a2ad5f92c86f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/53/usersdata/94/21421/submittedfiles/matriz2.py
0d65cb52f0ea2e9536be7e87278cf3364bd3fd2d
[]
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
1,374
py
# -*- coding: utf-8 -*- from __future__ import division import numpy as np def soma_diagonal_principal(a): soma=0 for i in range(0,a.shape[0],1): soma=soma+a[i,i] return soma def soma_diagonal_secundaria(a): soma=0 for i in range(0,a.shape[0],1): soma=soma+a[i,a.shape[0]-i-1]: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
5cbebc094716ebcd2abe250c57520dee3117a1d0
d7d25574246fd8585396a02ebd2ca8450e49b082
/leetcode-py/leetcode1041.py
44b0f6df2298740f5cbbebe712ae04d38cac1548
[]
no_license
cicihou/LearningProject
b6b1de2300e574835f253935d0c0ae693b194020
3a5649357e0f21cbbc5e238351300cd706d533b3
refs/heads/master
2022-12-04T06:18:14.856766
2022-11-29T08:54:16
2022-11-29T08:54:16
141,606,471
0
0
null
null
null
null
UTF-8
Python
false
false
1,835
py
class Solution: def isRobotBounded(self, instructions: str) -> bool: ''' lc 657 的变种 这个问题比较 tricky,其实更接近数学问题 实际上只要判断机器人最后是否面朝北,就可以知道是不是回到了原点 关于为什么 instructions *= 4 是最小限度的解释: https://leetcode.com/problems/robot-bounded-in-circle/discuss/850437/Python-O(n)-solution-ex...
[ "houxi_zuel@163.com" ]
houxi_zuel@163.com
c8fe58376e632a3abf6fabe21b845ea9bfca8392
493d5df9420ef94d9c5e82acb2d163e2a8c639b7
/memo_app/forms.py
f9a73ac5260ef3004567845ec9abe38b54032eea
[]
no_license
reina0207/django
0e3d6422c137be52978526128112ebf319e0f462
c42744935043efdcc4b9f3f14641105d082d691a
refs/heads/master
2023-08-13T14:10:59.979651
2021-10-17T01:48:48
2021-10-17T01:48:48
417,983,393
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from django import forms from .models import Memo class PostForm(forms.ModelForm): class Meta: model = Memo fields = ['content'] widgets = { 'content':forms.Textarea }
[ "you@example.com" ]
you@example.com
cfbbe9fd87346ac41ce6d9352492c08480e4ec86
3cdbe5f5810a035ae168f8ff01c39f58c571e428
/golf/migrations/0047_auto_20171013_0759.py
3a2a55b2b3c56503895e31b0b55d1c431628e5d5
[ "MIT" ]
permissive
kenrumer/scorekeeper
ebd6467e2ecde3da96bb08ef77a56f967cbde00e
c7f22676e84dfdf6ca3361c6ff56719f68fce31f
refs/heads/master
2021-01-22T05:01:11.370869
2018-01-12T07:13:20
2018-01-12T07:13:20
102,276,714
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-13 07:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('golf', '0046_auto_20171013_0021'), ] operations = ...
[ "kenrumer@gmail.com" ]
kenrumer@gmail.com
d5c5779cb06cd034955a358e57ccad53113de7b0
bfc25f1ad7bfe061b57cfab82aba9d0af1453491
/data/external/repositories/141822/AXA_Telematics-master/Features/modules_janto/featureFun.py
6077221b9a1eba16c0182067048fda6cda0a3b49
[ "MIT" ]
permissive
Keesiu/meta-kaggle
77d134620ebce530d183467202cf45639d9c6ff2
87de739aba2399fd31072ee81b391f9b7a63f540
refs/heads/master
2020-03-28T00:23:10.584151
2018-12-20T19:09:50
2018-12-20T19:09:50
147,406,338
0
1
null
null
null
null
UTF-8
Python
false
false
5,821
py
# -*- coding: utf-8 -*- """ (c) 2015 @author: Janto Oellrich email: joellrich@uos.de CONTENT: Contains FEATURE EXTRACTION funtions for the AXA telematics competition. FUNCTION LIST: features: creates feature vector for one trip driverFrame: creates feature ma...
[ "keesiu.wong@gmail.com" ]
keesiu.wong@gmail.com
7b1d36e6759d21e129f1ccb505e5824290d24a31
02d8a8b44dc9f8f3c63c2f62f24ceaee7d94fd12
/apps/profile/views.py
ef24c418f7057f9700edd7b07e9c9801961c3ee3
[]
no_license
bladas/transfer
0970a4290e2e92e56853a64211ab3e79c479c0aa
54c61b7bf340af4f48c7c7162805697b0417f4d7
refs/heads/master
2023-01-04T12:45:36.784275
2019-12-08T17:34:36
2019-12-08T17:34:36
224,606,015
0
0
null
2022-11-22T04:52:01
2019-11-28T08:31:59
Python
UTF-8
Python
false
false
2,751
py
from django.shortcuts import render, redirect from django.views.generic import ListView, FormView from apps.orders.models import * from django.core import mail from django.template.loader import render_to_string conection = mail.get_connection() conection.open() class ProfileView(ListView): template_name = 'prof...
[ "dashkevich_v@ukr.net" ]
dashkevich_v@ukr.net
ae3dc2f7bf203c611851ed1cdfa6151cfb952a15
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/c748512c4c45e257bc625ccf036e18c86d69f1c8-<main>-fix.py
759edf1deb6fc8e4fa82cf7d84981a26157ee87e
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
def main(): 'Main program body.' api_key = get_api_key() parser = argparse.ArgumentParser(description='Start a new Shippable run.') parser.add_argument('project', metavar='account/project', help='Shippable account/project') target = parser.add_mutually_exclusive_group() target.add_argument('--...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
4598001c5648f08752ef2002d4ba2a58a4b810b4
94e06376dc265c7bf1a2e51acb9714d02b21503a
/python打卡/day9_数字.py
0303d4bab06f6795e5925726a39bafdecf382745
[]
no_license
zhangquanliang/python
4b2db32bed4e4746c8c49c309563f456dc41c6be
f45ef96e385b1cd6c5dfb53bf81042d953a9ec46
refs/heads/master
2021-04-26T23:30:12.217397
2019-03-20T06:18:14
2019-03-20T06:18:14
124,005,916
11
2
null
null
null
null
UTF-8
Python
false
false
640
py
# -*- coding: utf-8 -*- # 1. 内嵌整数列表中的指相加 def nested_sum(t): a = 0 for x in t: for y in x: a += y print(a) # 2. 接受数字列表,返回累计和 def cumsum(t): list = [] a = 0 for x in t: a += x list.append(a) print(list) # 3. 接受一个列表,返回新列表,包含除第一个和最后一个元素外的所有值 def middle(t...
[ "1007228376@qq.com" ]
1007228376@qq.com
68107dada2e7dd7dc4eabd477e86ea95d7540946
e719bcfde03c0be2c84a7f1e13d12b80fa00ea84
/session2/draw_2.py
0780ebd4934bca50609387bc0e008130c608d56c
[]
no_license
minhduc9699/phamMinhDuc-D4E17
53b80e53ff175f0357fb01c9876aa12b343ca060
363b61745a206f33c5cfa3532a5abd920fcf4ad1
refs/heads/master
2023-01-22T08:25:14.210959
2020-12-05T04:53:38
2020-12-05T04:53:38
308,668,542
0
1
null
null
null
null
UTF-8
Python
false
false
154
py
from turtle import * speed(-1) for edge in range(3, 11): print(edge) for i in range(edge): forward(100) left(360/edge) mainloop()
[ "minhduc.096.99@gmail.com" ]
minhduc.096.99@gmail.com
b53a79653da1f30b4346d7cee4b0c1ab43348665
74167e4c1061b454d1ab1c2140a1fc2f4540ee2e
/accounts/models.py
fc5a140def7581969baf9c6413966fd5a150517c
[]
no_license
Pagante/ProjectCart
f72a1a611445f66c1320c0c21e1832d3ecf67a2a
4f065a02a8235c6744768328af5c1e103321ed44
refs/heads/main
2023-06-05T23:53:10.316222
2021-06-27T21:47:28
2021-06-27T21:47:28
380,840,906
0
0
null
null
null
null
UTF-8
Python
false
false
2,861
py
from django.db import models from django.contrib.auth.models import BaseUserManager,AbstractBaseUser # Create your models here. class MyAccountManager(BaseUserManager): def create_user(self, first_name, last_name, username, email, password=None): if not 'email': raise ValueError('User must have...
[ "55301195+Pagante@users.noreply.github.com" ]
55301195+Pagante@users.noreply.github.com
cd46193f2107a70f24bf853229b251e11f09edd3
5989e503a733e8b29f4c502008446a75c2b43ff8
/src/aids/migrations/0080_auto_20191104_1028.py
e61367fa67ca3885c3616e240f880421e5dac253
[]
no_license
samuelpath/aides-territoires
399a6a7b0607ef5a8d2b327247446b239f5b1a42
5793bd49d7157a34e08c29e56a46e1e3ead0651f
refs/heads/master
2022-12-20T14:35:18.671563
2020-08-21T08:00:33
2020-08-21T08:00:33
288,424,578
0
0
null
2020-08-18T10:27:17
2020-08-18T10:27:16
null
UTF-8
Python
false
false
389
py
# Generated by Django 2.2.5 on 2019-11-04 09:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('aids', '0079_remove_aid_subvention_rate'), ] operations = [ migrations.RenameField( model_name='aid', old_name='subvention_r...
[ "thibault@miximum.fr" ]
thibault@miximum.fr
1e838cff1c3206fca261549ede085035a1794d7c
b301f5d799fb973f12ff457c94a3fb54f5c6fd6b
/pages/views.py
56e3848a96f39428eb0488fb6874d562f048fe72
[]
no_license
MahmudulHassan5809/DjangoHousingSellingProject
ca3a8b9e3d83dd87532b33295e56e50ba7e9576d
82d02e04fe2a0cd510f160ad4159f40f4e5779d3
refs/heads/master
2020-04-09T08:01:41.092034
2018-12-03T11:24:13
2018-12-03T11:24:13
160,179,800
1
0
null
null
null
null
UTF-8
Python
false
false
852
py
from django.shortcuts import render,redirect from django.http import HttpResponse from listings.choices import price_choices , bedroom_choices , state_choices from listings.models import Listing from realtors.models import Realtor # Create your views here. def index(request): #return HttpResponse('Hello'); listings...
[ "mahmudul.hassan240@gmail.com" ]
mahmudul.hassan240@gmail.com
fb58a27373295fd23e4e441d7160e90f57d8c58a
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/local_rulestacks_create_or_update_minimum_set_gen.py
eb4b8b0451f4477d85ec725f4dfa1603454d7a23
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
1,765
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
a94e1bb1dc306e6a03ea0107933cb542bdaea003
50671b3e4e8ed7e9702c9941bb71fdbf92dffbe6
/src/cogs/events.py
0b28700d34057dbeef8be93aeb3c40ea8a08314b
[]
no_license
pikoUsername/Emulator
3dd67d0d3934c2ec9283b9b52edebec31c654326
96e6563c7cbcea051e4e41a377d917a2a9f5528a
refs/heads/main
2023-02-27T22:42:43.154987
2021-02-09T14:51:56
2021-02-09T14:51:56
321,045,486
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
import os import sys from discord.ext import commands from discord.ext.commands import errors import discord from loguru import logger from ..models import Guild from ..utils.notify import notify_all_owners class DiscordEvents(commands.Cog, name="Events"): __slots__ = "bot", def __init__(self, bot): ...
[ "galymzhan.amantaj@gmail.com" ]
galymzhan.amantaj@gmail.com
6fc2e9842a862e151818555c40bd68c1fe986ae7
aa5d98396184ab9dc479075b37a3664c385de027
/tests/selenium/breadcrumb_test.py
8ae1041e04352b0b8d70180fdda1d4cfface3872
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
uk-gov-mirror/ONSdigital.sbr-ui
c6a66cd6982e9e98a991eadbb8cef0f1fb6ba2bf
48bbfdc59e393dd4d2d008b8414ac96d2e2be44f
refs/heads/master
2021-10-12T00:02:34.160448
2018-10-17T14:59:04
2018-10-17T14:59:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,910
py
import unittest from selenium import webdriver from tests.helper_methods import create_selenium_config from tests.constants import BASE_URL, SEARCH_URL from tests.constants import ENTERPRISE, LOCAL_UNIT, REPORTING_UNIT, LEGAL_UNIT, COMPANY_HOUSE, VALUE_ADDED_TAX, PAY_AS_YOU_EARN from tests.constants import BREADCRUMB...
[ "noreply@github.com" ]
uk-gov-mirror.noreply@github.com
40fec2d844ff14fbb903f58d6e96f8e46ad3fe8c
f83934dd60d4961848c0a86f6d7fbe07b79a1d63
/glumpy/graphics/collections/__init__.py
c497f742a32eb93341c0ab317f56e2fc37a848d5
[]
no_license
brianholland/glumpy
2a31e2f5fd039d1debb30dd010ad36c458f329cf
a691082385e02db9b1d461847b9e36d8534630fa
refs/heads/master
2020-12-25T21:43:58.743259
2015-11-30T11:04:46
2015-11-30T11:04:46
46,670,630
0
0
null
2015-11-30T11:04:46
2015-11-22T17:10:24
Python
UTF-8
Python
false
false
951
py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014, Nicolas P. Rougier. All rights reserved. # Distributed under the terms of the new BSD License. # ----------------------------------------------------------------------------- from . collection i...
[ "Nicolas.Rougier@inria.fr" ]
Nicolas.Rougier@inria.fr
c71de68d5d8e1ed94307b087f795dddfc08ddc00
7b8b03b7818a1fea58f174ff8c18b43578a6233f
/tests/core/test_models.py
b6c868d65b928963cc11299b613fc8c6b8eeec36
[]
no_license
defance/coins_ph
400e4316a2d9a63752b21190ca7f1b0543b85343
2f0d3038f5dcca4c0f8711a1b095c6078799eb0b
refs/heads/master
2020-04-30T19:15:58.398453
2019-03-21T22:30:16
2019-03-21T22:30:16
177,033,466
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
from django.test import TestCase from tests.factories import AccountFactory class TestTransactionAccount(TestCase): def test_update_balance(self): account = AccountFactory(balance=10) account.update_balance(42) account.refresh_from_db() self.assertEquals(account.balance, 52)
[ "defance@gmail.com" ]
defance@gmail.com
f800d6b3ca316df0db0ffe4717caaddae33260f8
3ea684487ef727fb2f8d16a030769f32a4f4003a
/datahq/apps/receiver/bootstrap.py
90c3fa6dc99fc38cd04840c76b173a531f02f9b5
[]
no_license
adewinter/data-hq
5781e6669e0625ea9ae7cf94ec77c528485c2951
ca03656c835f8caa5156326500c05bb83ab931ca
refs/heads/master
2021-01-18T12:48:26.584454
2010-08-19T13:15:03
2010-08-19T13:15:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
import os from django.conf import settings # make our directories if they're not there for dir in [settings.RECEIVER_SUBMISSION_PATH, settings.RECEIVER_ATTACHMENT_PATH, settings.RECEIVER_EXPORT_PATH]: if not os.path.isdir(dir): os.mkdir(dir)
[ "czue@dimagi.com" ]
czue@dimagi.com
19cc849f50ba984019a615ec3532eb04f622db66
3efee0cf2bd9e0c34bfdd94ab24a15cb88c04509
/PWEM_examples/kxky_bandstructure_benchmark_plotting_with_fdfd.py
20872b8c10843e1edc1184e3d3cbe5d7ee1b70bd
[ "MIT" ]
permissive
luwl85/Rigorous-Coupled-Wave-Analysis
bf5016ec70525f5e7bf59dfa93a03902afdfac12
a28fdf90b5b5fc0fedacc8bb44a0a0c2f2a02143
refs/heads/master
2023-04-25T20:46:45.397976
2021-05-20T22:17:54
2021-05-20T22:17:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
import sys import os import scipy.io import matplotlib.pyplot as plt import numpy as np import plotly import plotly.graph_objs as go from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot from mpl_toolkits.mplot3d import Axes3D matlab_data =os.path.join('kxky_photonic_circle_bandstructure.mat')...
[ "nzz2102@stanford.edu" ]
nzz2102@stanford.edu
6821205dff8d4bf5af67bd99c4b092e8d390a3c3
5c533e2cf1f2fa87e55253cdbfc6cc63fb2d1982
/python/pymonad/monad_parse.py
a37f2195d1412f89bfddadf9d4bb469858d0db09
[]
no_license
philzook58/python
940c24088968f0d5c655e2344dfa084deaefe7c6
6d43db5165c9bcb17e8348a650710c5f603e6a96
refs/heads/master
2020-05-25T15:42:55.428149
2018-05-14T03:33:29
2018-05-14T03:33:29
69,040,196
0
1
null
null
null
null
UTF-8
Python
false
false
312
py
# parser is of form string -> [(symbol, therestofstring), (other possiblity), (other possiblity), ...] #parserbind needsto return def parsebind(parser , parserproducer): def combinerparser(string): possibleparses = parser(string) for (symb, restofstring) in possibleparses: return combinedparser
[ "philip@FartMachine7.local" ]
philip@FartMachine7.local
94a1445b5d73052a0e9fbc2caed1e94ae674a0da
4f2b9848ee1cf41017b424c7367a240f93625e86
/doc/tutorial/config.py
cdb60e8b8cc1f8f18664a9d5edb55b488c038574
[ "Apache-2.0" ]
permissive
martin-dostal-eli/python-icat
f5cc0e497376d7264db1af2bb9ad588e29a9bd7b
8c882a3095f2dd7276a7c0edba44dc9b3ef4eedd
refs/heads/master
2023-08-18T02:12:30.267009
2021-07-20T11:24:25
2021-07-20T11:24:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
#! /usr/bin/python from __future__ import print_function import icat import icat.config config = icat.config.Config(needlogin=False, ids=False) client, conf = config.getconfig() print("Connect to %s\nICAT version %s" % (conf.url, client.apiversion))
[ "rolf.krahl@helmholtz-berlin.de" ]
rolf.krahl@helmholtz-berlin.de
e797642929d74abf07f38be4d559a60c4edc39c4
a7b07e14f58008e4c9567a9ae67429cedf00e1dc
/lib/jnpr/healthbot/swagger/models/rule_schema_variable.py
630dceaecb69d32efa58bd7ea4450d2121bdd4cb
[ "Apache-2.0" ]
permissive
dmontagner/healthbot-py-client
3750d8375bc4fa7bedcdbc6f85f17fb812c19ea9
0952e0a9e7ed63c9fe84879f40407c3327735252
refs/heads/master
2020-08-03T12:16:38.428848
2019-09-30T01:57:24
2019-09-30T01:57:24
211,750,200
0
0
Apache-2.0
2019-09-30T01:17:48
2019-09-30T01:17:47
null
UTF-8
Python
false
false
6,447
py
# coding: utf-8 """ Healthbot APIs API interface for Healthbot application # noqa: E501 OpenAPI spec version: 1.0.0 Contact: healthbot-hackers@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class RuleSchemaVa...
[ "nitinkr@juniper.net" ]
nitinkr@juniper.net
913a809b21dce8f948f0e742c823d688bef2cbc7
6032f996f989d521dbdee23ce6c1fbd778d8e964
/qanta/wikipedia/categories.py
b5dedd32b88990ad251a82da1ae4cf7fe424ea37
[ "MIT" ]
permissive
npow/qb
9af1c07afd10f6aad9dbcbdd9209c6fde0e4347f
044e623d2cbda96209fa1fdedffefa2208c98755
refs/heads/master
2020-05-26T15:41:13.864334
2019-05-26T16:47:07
2019-05-26T16:47:07
188,290,907
0
0
null
2019-05-23T19:02:23
2019-05-23T19:02:23
null
UTF-8
Python
false
false
1,525
py
""" Process Wikipedia category links """ import json import re import csv import click import tqdm @click.group() def categorylinks_cli(): pass @categorylinks_cli.command() @click.argument('categories_csv') @click.argument('out_jsonl') def clean(categories_csv, out_jsonl): with open(categories_csv) as in_f,...
[ "ski.rodriguez@gmail.com" ]
ski.rodriguez@gmail.com
7a2fcbba659bb83f947490fc946a7ff3ba4665d2
eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429
/data/input/ARMmbed/htrun/mbed_host_tests/host_tests_plugins/host_test_plugins.py
1c965fab88a3dc757f8bce97bec9d4293718641b
[]
no_license
bopopescu/pythonanalyzer
db839453bde13bf9157b76e54735f11c2262593a
8390a0139137574ab237b3ff5fe8ea61e8a0b76b
refs/heads/master
2022-11-22T02:13:52.949119
2019-05-07T18:42:52
2019-05-07T18:42:52
282,079,884
0
0
null
2020-07-23T23:46:09
2020-07-23T23:46:08
null
UTF-8
Python
false
false
7,762
py
""" mbed SDK Copyright (c) 2011-2015 ARM Limited 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 wr...
[ "rares.begu@gmail.com" ]
rares.begu@gmail.com
5957be3eebf4bcc847582b8b20f6771924155403
4c9580b2e09e2b000e27a1c9021b12cf2747f56a
/chapter05/chapter05_example01/chapter05_example01/settings.py
6bdae198873c43cd8667c6b9aac8266fb69c6642
[]
no_license
jzplyy/xiaoyue_mall
69072c0657a6878a4cf799b8c8218cc7d88c8d12
4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc
refs/heads/master
2023-06-26T02:48:03.103635
2021-07-22T15:51:07
2021-07-22T15:51:07
388,514,311
1
0
null
null
null
null
UTF-8
Python
false
false
3,368
py
""" Django settings for chapter05_example01 project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings...
[ "jzplyy@126.com" ]
jzplyy@126.com
53f85d5e77b251fd803da0cc317dc6dac3e3fd02
b74e9be747c1a99fc5d67ca096157f512baf02ca
/tools/harness-automation/cases/reed_5_2_4.py
151fa67c0fb6cee9b74e8e983fa7bb67a1aea761
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
amccool/openthread
468838cebc083d234192926aacb0e3efc0a83463
1e9d3c1dbfd66aa48c4cbb1dda0b41c9f05fefc7
refs/heads/master
2021-01-16T23:03:46.503666
2016-09-06T03:21:05
2016-09-06T03:21:05
67,469,844
0
0
BSD-3-Clause
2019-11-01T20:11:16
2016-09-06T03:23:32
C++
UTF-8
Python
false
false
1,846
py
#!/usr/bin/env python # # Copyright (c) 2016, Nest Labs, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notice, this ...
[ "jonhui@nestlabs.com" ]
jonhui@nestlabs.com
ef8495ed987b371d3c9c09347e179d7fee0cfd92
6320fef2ea7376c2b35f97f1a5af004e90f09098
/1-2주차 실습(복습)/venv/Lib/site-packages/pygame/tests/test_utils/__init__.py
fd3ec69cb674929081e3d41837df1458fa33d018
[]
no_license
Dplo1514/ploaistudy
7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9
e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c
refs/heads/master
2023-09-03T00:45:55.601651
2021-10-24T12:19:38
2021-10-24T12:19:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,442
py
#################################### IMPORTS ################################### is_pygame_pkg = __name__.startswith("pygame.tests.") import tempfile, sys, pygame, time, os ################################################################################ # Python 3.x compatibility try: xrange_ = xrange ...
[ "dladlsgur3334@gmail.com" ]
dladlsgur3334@gmail.com
665dcc52eba524df257caff6e50e0b2f063ee789
ae65873c3584cef7139066b224daad04410af6d2
/Top10Words.py
b6f4ffe80cc71c2040700a1f7c86913682066030
[]
no_license
rajatkashyap/Python
2240c7472d07803c460c7a55d570e20694b694f9
f74c85c65b0e209a5f7ab25b653d42835222faaf
refs/heads/master
2022-06-25T19:20:52.847498
2022-06-08T14:40:45
2022-06-08T14:40:45
145,714,257
0
0
null
2022-04-25T00:18:37
2018-08-22T13:39:14
Python
UTF-8
Python
false
false
558
py
f=open('UHC.txt') dict={} words=f.read().split() for word in words: w=word.lower() dict[w]=dict.get(w,0)+1 #print dict str_tups=[] for k,v in dict.items(): str_tups.append((v,k)) #print str_tups str_tups.sort(reverse=True) print str_tups[:10] keys=dict.keys() values=dict.values() #pr...
[ "rajatkashyap@Rajats-MBP.T-mobile.com" ]
rajatkashyap@Rajats-MBP.T-mobile.com
718c1a3aa265318be8f270943122a2fef285e6e9
59d48214613a195573b5a0a1f10b32c889172155
/alexa/reciPullLambda/ask_sdk_model/canfulfill/can_fulfill_intent_request.py
61ffc9fb00f47a05ab691639b45bca434c75fe2e
[ "MIT" ]
permissive
ReciPull/recipull.github.io
60861ebb7a6d77d39907c6332e346194ce4ad107
e6b800af02658bb7948297c4ddc1b7af6d978839
refs/heads/master
2023-01-08T19:03:11.864298
2019-06-13T05:07:39
2019-06-13T05:07:39
180,684,629
1
0
MIT
2022-12-09T22:33:18
2019-04-11T00:33:03
Python
UTF-8
Python
false
false
6,414
py
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
[ "alexiscole@umail.ucsb.edu" ]
alexiscole@umail.ucsb.edu
4a5a3b8daa86ac399ae0a0cc3604254a77635bbf
00cb405170a6a9572bef0ec8f373813eada08c03
/Agario/Window.py
bb5038b0e49d302d2ded8589eaacfcc9884a849c
[]
no_license
MarcPartensky/Python-Games
c0ad2857be5832d6029642bb0a96bc8e403a12e3
ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed
refs/heads/master
2022-09-03T00:04:16.402288
2022-08-12T17:10:22
2022-08-12T17:10:22
166,606,022
2
1
null
2021-03-07T16:20:15
2019-01-19T23:56:04
Python
UTF-8
Python
false
false
1,621
py
import pygame from pygame.locals import * class Window: made=0 def __init__(self,game=None,size=None,font="monospace",set=True): Window.made+=1 self.number=Window.made self.title=game.name self.font=font self.open=True pygame.init() self.setSize(size) ...
[ "marc.partensky@gmail.com" ]
marc.partensky@gmail.com
037c0297e6528cdbf68ecb8b3295c9ce74f0598e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/143/usersdata/126/62651/submittedfiles/av2_p3_m2.py
7d22e7aa5f8b510c2f6ca3d97182ffc3fc5c67bd
[]
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
653
py
# -*- coding: utf-8 -*- def listadegraus(a): b=[] for i in range(0,len(a)-1,1): if a[i]>a[i+1]: cont=0 for i in range(a[i],a[i+1],-1): cont=cont+1 b.insert(0,cont) elif a[i]<a[i+1]: cont=0 for i in range(a[i],a[i+1],1): ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
df82e709433df0b153edd7d9aea14060851ad2cf
c31c8095ce4d4e9686e3e7ad6b004342e49671fa
/forum/classes/archives/CLASS_Lieu.py
c5b8db114583e2f045264fd8b45f2735706e116e
[]
no_license
Lionalisk/arrakambre
7bcc96dea2ca2a471572bfb1646256f1382ce25b
2caece9be5eebf21ddfa87a6c821c32b5d5019a2
refs/heads/master
2020-12-07T19:31:24.471090
2020-01-09T10:14:29
2020-01-09T10:14:29
232,782,172
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
from django.db import models from forum.models import Maison from forum.classes.CLASS_Perso import * print('BBBB') class Lieu(models.Model): nom = models.CharField(max_length=100, unique=True) description = models.TextField(default='') image = models.CharField(max_length=40, default = 'lieu_none.jpg') maison = mod...
[ "lionel.varaire@free.fr" ]
lionel.varaire@free.fr
da6fa81c852b746e1fded343f4e04a7e146e335e
39b8aa964883b2bde4349e0c9c38e3233c310548
/src/Power of Four.py
96d2db9a48b59d6376e2dbcb8be1027d9d34085f
[]
no_license
orifake/leetcode-python
053b82491e0b8d6197dd12d92eec5883211285db
8e375ebebe0a0285efefc33ed61afb22f41d0c75
refs/heads/master
2023-03-09T14:32:17.833456
2021-02-26T16:09:31
2021-02-26T16:09:31
264,466,829
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
import math class Solution(object): def isPowerOfFour(self, num): """ :type num: int :rtype: bool """ return num > 0 and (num & (num - 1)) == 0 and \ ((num & 0b01010101010101010101010101010101) == num) class Solution2: def isPowerOfFour(self, num: int) ->...
[ "349758699@qq.com" ]
349758699@qq.com
17eb256179da0f291fdd0e5d21d32169501672e1
e21ed71610f9d1004dfa21206300c0e9f3887e89
/modulo_2/Codewars/dev-junior/find_even_array.py
beb4a2bad5d9a8b39ec87d16249da6a0ba36113a
[]
no_license
hpfn/wttd-2017-exerc
c0c79ee0cb3b5b331932787d280deee679357bc1
b1bf1394d2e2adc29257b7c4273af21b8509335f
refs/heads/master
2020-12-30T11:29:13.218980
2017-10-03T19:04:03
2017-10-03T19:04:03
91,572,803
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
# coding=utf-8 def find_even_index(arr): tam_arr = len(arr) for x in range(tam_arr): if sum(arr[:x]) == sum(arr[x+1:]): return x return -1
[ "hpfn@debian.org" ]
hpfn@debian.org
be24fff7640880924ac1b8352d63c9ce128039bd
49beeee0d9aff3b776545cb553ef1bf15dd9f190
/example/example/views.py
6c06b12a01b8dad493049a74201b5a5b9af1ada9
[ "MIT" ]
permissive
bluedisk/django-korean-fields
238364cf4f766db824adec832aaa2d83619cded1
b655e23d9a73e61cb217e34719ee6a2509f8f475
refs/heads/master
2020-03-19T09:55:10.974426
2018-11-10T15:02:02
2018-11-10T15:02:02
136,327,803
5
0
null
null
null
null
UTF-8
Python
false
false
595
py
# -*- coding: utf-8 -*- from django.forms import forms, CharField from django.http import HttpResponse from django.shortcuts import render from korean.fields import JuminFormField class TestForm(forms.Form): jumin1 = JuminFormField() jumin2 = JuminFormField() def demo(request): if request.method == 'POS...
[ "bluedisk@gmail.com" ]
bluedisk@gmail.com
d47c3724879680967f10765f503c820e7982fb3f
714d4d2796e9b5771a1850a62c9ef818239f5e77
/components/metrics/DEPS
2f4d413d44817a460d2dc1304dd4027f1f530765
[ "BSD-3-Clause" ]
permissive
CapOM/ChromiumGStreamerBackend
6c772341f815d62d4b3c4802df3920ffa815d52a
1dde005bd5d807839b5d45271e9f2699df5c54c9
refs/heads/master
2020-12-28T19:34:06.165451
2015-10-21T15:42:34
2015-10-23T11:00:45
45,056,006
2
0
null
2015-10-27T16:58:16
2015-10-27T16:58:16
null
UTF-8
Python
false
false
243
# This component is shared with the Chrome OS build, so it's important to limit # dependencies to a minimal set. include_rules = [ "-components", "+components/compression", "+components/metrics", "+components/variations", "-net", ]
[ "j.isorce@samsung.com" ]
j.isorce@samsung.com
d3b6e9f0e660a6ab3559ab5e2029a46b8e10bf27
255efb54075eb8cc2412bf1d5c936a97a003337e
/xt/environment/__init__.py
69338935f833cbdd1def7455667f8075e68b8eed
[ "MIT" ]
permissive
jinqiuzhao/xingtian
914a4d48c62fd8b3d4ddd0479e9bab54bbe5cba7
95953dc6109c96e68dcdeb9755b3679ff51742d4
refs/heads/master
2023-06-06T06:20:28.815549
2021-07-02T10:00:42
2021-07-02T10:00:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Build environment module. Do encapsulation for different simulations. Unify the single and multi-agents. """ from __future__ import division, print_function from xt.framework import Registers def env_builder(env_name, env_info, **kwargs): """ Build the inte...
[ "hustqj@126.com" ]
hustqj@126.com
d98e426c5ffa96200e49a63c91cbb1ac43216323
220e3fe31f00df908dc8d00c507400425f924cc3
/examples/multi_system/act6/unload.py
bf0fcc574b45c2f7fcf2d21c030c21e4aa89ff1f
[ "MIT" ]
permissive
danielmitterdorfer/Thespian
3ed700d9fc6da35becfe801d3ab3bb68c86bddbc
f59439df8a6147b90ec31b44924d6a1b620f09d9
refs/heads/master
2021-01-19T05:06:33.005708
2017-07-31T04:44:03
2017-07-31T04:44:03
65,544,862
0
0
null
2016-08-12T10:22:29
2016-08-12T10:22:29
null
UTF-8
Python
false
false
238
py
from thespian.actors import ActorSystem, Actor, ValidateSource, ValidatedSource import sys portnum = int(sys.argv[1]) srchash = sys.argv[2] asys = ActorSystem('multiprocTCPBase', {'Admin Port': portnum}) asys.unloadActorSource(srchash)
[ "kquick@godaddy.com" ]
kquick@godaddy.com
46e48392571cf7b50609181560a7a5b5cfd54d72
1d665f40197ba89f756e862c0e62a889c42cddfb
/commission/migrations/0007_auto_20150407_2034.py
2b1be1c3a9965aa2314ab05057b9179433f0c7eb
[ "MIT" ]
permissive
Ourinternet/website
8d9f9ddfe7d17fb0bb11b978cf3a7cd34af456ed
648203c0d0620da2d11b3b0e398ee218b5bef5df
refs/heads/master
2021-01-21T21:49:06.834576
2016-03-16T20:43:58
2016-03-16T20:43:58
15,683,988
1
0
null
null
null
null
UTF-8
Python
false
false
429
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('commission', '0006_auto_20150407_1825'), ] operations = [ migrations.AlterField( model_name='feature', ...
[ "csimpson@cigionline.org" ]
csimpson@cigionline.org
044985b9b265586f2b071cc1296c5845a039b17d
56b7e5ed6941fc4b83148e00bd51421dc3ac993a
/Indeed/Expire Map.py
2b1778212c66da456e0bb6bd3e0defd2bbc1db77
[]
no_license
samir-0711/Leetcode-Python
f960e15015a3f2fd88f723d7f9237945a7133553
d75876ae96bcd85c67bbfbf91bbc0f0bc773e97c
refs/heads/master
2022-12-18T05:27:48.224001
2020-09-30T21:03:42
2020-09-30T21:03:42
300,061,318
0
0
null
2020-09-30T20:59:42
2020-09-30T20:59:42
null
UTF-8
Python
false
false
722
py
import time class Data: def __init__(self, value, duration): self.value = value self.duration = duration self.startTime = int(round(time.time())) class ExpireMap: def __init__(self): self.map = {} def get(self, key): data = self.map[key] if data == None: ...
[ "weng8916@gmail.com" ]
weng8916@gmail.com
6d9a899cc5415e40329693b80d3cc1bbf9759db2
a257bf65a2a1ba2c6841dd25c89d98c5672e4e57
/BackEnd/Semana22/DjangoRestFramework/DjangoRestFramework/wsgi.py
424593130b609b9f268eda5e5d98d2c974645dad
[]
no_license
jorgegarba/CodiGo9
190cb67e3c7f9cbad271baf62657bda7ca03ec42
3b85c36a3ed8d2d5ee1d0fb6e8ca18599621fe47
refs/heads/master
2023-01-22T22:31:00.244982
2020-03-31T17:59:37
2020-03-31T17:59:37
211,982,487
6
5
null
2023-01-05T05:23:27
2019-10-01T00:21:25
JavaScript
UTF-8
Python
false
false
415
py
""" WSGI config for DjangoRestFramework project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('...
[ "ederiveroman@gmail.com" ]
ederiveroman@gmail.com
0bebf2b16ff727c6ad6f1d7aca0f42970ec1dc48
bed559d18b0a9604e6d18879e1f3837d228d1440
/rx/backpressure/pausable.py
631ce64e952fd6f555f3e9866c6f605c96299a8e
[ "Apache-2.0" ]
permissive
jesonjn/RxPY
a80b7a8f0a3a8a6ddcb7f3ed678d2f8411cad84e
9dfb62979f2c54b93bbb8c0ee5fa18cfae4d73d0
refs/heads/master
2020-12-29T00:25:17.866220
2014-11-15T10:24:05
2014-11-15T10:24:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,932
py
from six import add_metaclass from rx import Observable from rx.internal import ExtensionMethod from rx.disposables import CompositeDisposable, Disposable from rx.subjects import Subject class PausableObservable(Observable): def __init__(self, source, subject=None): self.source = source self.subje...
[ "dag@brattli.net" ]
dag@brattli.net
b891a21e50fd7f9a52706f2b802ad343cca4ea72
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/compute_management_client_enums.py
94796a92c7936618c37a51b7bf0ec2a9b37639ee
[ "MIT" ]
permissive
lmazuel/azure-sdk-for-python
972708ad5902778004680b142874582a284a8a7c
b40e0e36cc00a82b7f8ca2fa599b1928240c98b5
refs/heads/master
2022-08-16T02:32:14.070707
2018-03-29T17:16:15
2018-03-29T17:16:15
21,287,134
1
3
MIT
2019-10-25T15:56:00
2014-06-27T19:40:56
Python
UTF-8
Python
false
false
1,085
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
lmazuel.noreply@github.com
cddab9580d9af9da3a18d635c9717ed2acc1f201
4bc2d855558ccb962991f997e9779919031687dd
/capstone/causalmodel/migrations/0001_initial.py
d9fe267a7a9b8e4c5697913127b312847c7b2554
[]
no_license
jmblontoc/Likha-Capstone
80081e44b7ad6457eb776432e623c6db8b7a17e2
e1c32911b58cd1419c8e1a554ac32210456d201d
refs/heads/master
2022-12-10T03:26:32.946638
2018-12-09T04:33:10
2018-12-09T04:33:10
134,726,142
0
1
null
2022-11-25T23:52:42
2018-05-24T14:21:36
Python
UTF-8
Python
false
false
1,187
py
# Generated by Django 2.0.5 on 2018-06-27 15:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='DataMap', fields=[ ...
[ "37819032+jmblontoc@users.noreply.github.com" ]
37819032+jmblontoc@users.noreply.github.com
770781cf8434a6484eb3418aafba1bd504f0315d
1a819b4d69a7c455199b638b1609d3284ecbf255
/alttprbot_srl/racebot.py
c760ffc28d30de0301fd73fb1bf3fb04a1d6a28b
[]
no_license
Maxor14/sahasrahbot
5167355a23a4e9d91171b583fe8065acd0ab99a6
9183933869f87743d94867cf52c463179d0b687a
refs/heads/master
2021-05-22T21:30:54.015013
2020-04-01T01:01:47
2020-04-01T01:01:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,951
py
import asyncio import math import re import ircmessage from alttprbot.database import spoiler_races, srl_races from alttprbot.tournament import league from alttprbot.util.srl import srl_race_id from alttprbot_srl import alt_hunter, discord_integration from config import Config as c starting = re.compile( "\\x034...
[ "tcprescott@gmail.com" ]
tcprescott@gmail.com
07c821b253d8b2176af47cd42bb65e0f706db38a
3109e3a7f2f2dccc5a806695f0adbe0fed879112
/ecommerce/Loma/migrations/0022_auto_20190204_1200.py
4724c3c1c3f80c03fa75c1a13fc32a1f6bb13401
[]
no_license
Maheshwari2604/ecommercee
9ebbf18b4fbf933a0d9641009f7f17ce836de587
4411e7e10eccda907711200d2c0d873db3d7f803
refs/heads/master
2020-04-20T18:03:49.575124
2019-02-12T16:02:05
2019-02-12T16:02:05
169,007,411
1
1
null
null
null
null
UTF-8
Python
false
false
466
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-04 06:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Loma', '0021_auto_20190203_1829'), ] operations = [ migrations.AlterField(...
[ "maheshwarishivam2604@gmail.com" ]
maheshwarishivam2604@gmail.com
8c1b2c443b10f64ad81dbb48b78341c22ec527dc
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/discount_info_v3.py
3eeec1c5d49a77c443407f9193187e6c6e93816a
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,663
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class DiscountInfoV3: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9c68ae44c857794289d718b86b9cf28781944546
d49f38323dc30a3cb4a581b451f7db7eec220324
/app.py
c50f59488d7cad0a63272dce103f97c62cf594dd
[]
no_license
bbiyongel/NaverAPI-telegram
0e67259ed2faa86860014f0a5ff1ee0528175b67
bfcffdb03c6c2cb2387aee461490c520542227bf
refs/heads/master
2022-01-15T19:50:28.409431
2019-07-12T09:00:15
2019-07-12T09:00:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,740
py
from pprint import pprint from flask import Flask, request import requests from decouple import config import random app = Flask(__name__) token = config('TELEGRAM_TOKEN') base_url = f"https://api.telegram.org/bot{token}" naver_client_id = config('NAVER_CLIENT_ID') naver_client_secret = config('NAVER_CLIENT_SECRET')...
[ "jjgk91@naver.com" ]
jjgk91@naver.com
9ca3d949f4eba7c4f5c4434c364d62be9b136a99
aa4024b6a846d2f6032a9b79a89d2e29b67d0e49
/UMLRT2Kiltera_MM/graph_MT_post__Model.py
3f264f3c35aea6264d6efa85f991b713f54237a9
[ "MIT" ]
permissive
levilucio/SyVOLT
41311743d23fdb0b569300df464709c4954b8300
0f88827a653f2e9d3bb7b839a5253e74d48379dc
refs/heads/master
2023-08-11T22:14:01.998341
2023-07-21T13:33:36
2023-07-21T13:33:36
36,246,850
3
2
MIT
2023-07-21T13:33:39
2015-05-25T18:15:26
Python
UTF-8
Python
false
false
2,610
py
""" __graph_MT_post__Model.py___________________________________________________________ Automatically generated graphical appearance ---> MODIFY DIRECTLY WITH CAUTION ___________________________________________________________________________ """ import tkFont from graphEntity import * from GraphicalForm impor...
[ "levi" ]
levi
e6a2a28a5d17ffa3424d45048710a8687df2c863
9256eeff108787245a1d9a8e27f80c04377ba10f
/src/datasets/mnist.py
49071693a70659a10514560cc67cff58309b79cf
[ "MIT" ]
permissive
martinhavlicek/meta-inference-public
99a22daef937921deb9f677f68aa1c954e456e55
3cad0b84acd407f3d790f3d75d3045f62bdbf250
refs/heads/master
2022-04-12T14:15:42.514426
2020-03-31T21:39:50
2020-03-31T21:39:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,748
py
import math import numpy as np from PIL import Image from torchvision import datasets from torchvision import transforms # ----- ROTATED MNIST ----- ROTATIONS = np.arange(-180, 180, 20) DEFAULT_ROTATIONS = ROTATIONS[0::2] UNSEEN_ROTATIONS = ROTATIONS[1::2] DEFAULT_ROTATIONS_SPARSE = np.array([-160, -80, 0, 80, 160]...
[ "me@mikewuis.me" ]
me@mikewuis.me
ac81e7a4a5a4e1eec99fc4dd938031a42d326728
1064db5dfd154c4bc600e0e03841b0f73f0eefbc
/home/migrations/0008_auto_20200529_0800.py
55f78b9f74855b21f14e8caf061dee753c0981a6
[]
no_license
crowdbotics-apps/web-29-dev-5196
3303921a0e5c8794e8e67f55c9841f3ec7610c16
7beda8f7d57ce9b9858a46f7e3940d6eed4b5725
refs/heads/master
2023-05-26T23:00:23.271209
2020-05-29T12:47:07
2020-05-29T12:47:07
267,768,914
0
0
null
2021-06-13T04:08:30
2020-05-29T04:59:18
Python
UTF-8
Python
false
false
342
py
# Generated by Django 2.2.12 on 2020-05-29 08:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("home", "0007_customtext_kjhkh"), ] operations = [ migrations.RenameField( model_name="customtext", old_name="kjhkh", new_name="ghfnhgfg...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
b5c1fff82ac0901d1ae985cd1826ca4b47c6f5af
5b93930ce8280b3cbc7d6b955df0bfc5504ee99c
/nodes/Bisong19Building/I_PartVIII/C_Chapter47/index.py
cce9e2225cec24eabc5302e3a2817b1a5b9cd72f
[]
no_license
nimra/module_gen
8749c8d29beb700cac57132232861eba4eb82331
2e0a4452548af4fefd4cb30ab9d08d7662122cf4
refs/heads/master
2022-03-04T09:35:12.443651
2019-10-26T04:40:49
2019-10-26T04:40:49
213,980,247
0
1
null
null
null
null
UTF-8
Python
false
false
4,830
py
# Lawrence McAfee # ~~~~~~~~ import ~~~~~~~~ from modules.node.HierNode import HierNode from modules.node.LeafNode import LeafNode from modules.node.Stage import Stage from modules.node.block.CodeBlock import CodeBlock as cbk from modules.node.block.ImageBlock import ImageBlock as ibk from modules.node.block.MarkdownB...
[ "lawrence.mcafee@gmail.com" ]
lawrence.mcafee@gmail.com
de3acc9720419a15a1a42835f76a34d6293154c3
16c77266859989d156fe3f4d0ce3a37a1898ad38
/dacc/xls/write.py
1fad19e6f9792761fed509ba748792ebd263a457
[ "MIT" ]
permissive
SRHerzog/ut
92620e66be2ea9707d9cd3cf390179326ed2eefe
894bd5607eb76676aaea7a37ed8a91b5fb5e805e
refs/heads/master
2021-06-30T19:15:46.131299
2017-09-15T20:47:35
2017-09-15T20:47:35
103,696,926
0
0
null
2017-09-15T20:08:10
2017-09-15T20:08:10
null
UTF-8
Python
false
false
3,367
py
__author__ = 'thor' import os import pandas as pd from pandas import ExcelWriter from openpyxl import load_workbook from openpyxl.reader.excel import InvalidFileException try: from xlwings import Workbook, Sheet except ImportError as e: print(e) def multiple_dfs_to_multiple_sheets(df_list, xls_filepath, shee...
[ "thorwhalen1@gmail.com" ]
thorwhalen1@gmail.com
1109161a39f73fe01e4a6f4099ad4dad4a0939bc
abdb582b9ab76eaf6df1fdb5843c24fa6fa1ede0
/flendz_test/urls.py
80bc3d35b33735c54f511c2ea63a1065e235799b
[]
no_license
jabykuniyil/flendz
1375341ee97986842d962702e0f1ac7f6d48cae7
ef952f9e14320b9c512b4047c6726ab9ff776120
refs/heads/main
2023-05-27T20:12:36.774259
2021-06-05T04:38:47
2021-06-05T04:38:47
372,798,247
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('test_app.url')), ]
[ "mohdjabiran112@gmail.com" ]
mohdjabiran112@gmail.com
ca2951f89c8fcf239e756f26b15ef01148feb032
3b50605ffe45c412ee33de1ad0cadce2c5a25ca2
/python/paddle/fluid/tests/custom_op/test_multi_out_jit.py
7e252e048b64c9b158fabe21b818fbccaf71a26c
[ "Apache-2.0" ]
permissive
Superjomn/Paddle
f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1
7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188
refs/heads/develop
2023-02-04T20:27:54.244843
2023-01-26T15:31:14
2023-01-26T15:31:14
66,896,049
4
1
Apache-2.0
2023-04-14T02:29:52
2016-08-30T01:45:54
C++
UTF-8
Python
false
false
3,680
py
# Copyright (c) 2021 PaddlePaddle 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 required by appli...
[ "noreply@github.com" ]
Superjomn.noreply@github.com
665a296262fe97164ada5fc3e0db919390d90e00
e45d2faad9389886a82ff5176853b1ff6e37caae
/simplecv/017_face_detect.py
e93e398dd543658092ca32de34f80eb4096d57e8
[]
no_license
allenmo/python_study
6320aa4cd80fe46ccf73076015c67bdcb6338d30
7aff5d810ca6e791d62235d57c072a8dc14457ca
refs/heads/master
2021-03-24T12:00:33.079530
2016-11-22T23:35:58
2016-11-22T23:35:58
55,770,379
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
from SimpleCV import * cam = Camera() disp = Display() size = cam.getImage().size() segment = HaarCascade("face.xml") while disp.isNotDone(): img = cam.getImage() autoface = img.findHaarFeatures(segment) lenFace = len(autoface) if ( lenFace > 0 ): for i in range(0,lenFace): face =...
[ "allen02403@gmail.com" ]
allen02403@gmail.com
f90334a1939d9b22c35a1f046ae87e4ce66693cb
ac305c6739541e84857e297f8eb1b19417978548
/module_128.py
b9ba541614d3ccd041e0fe0728a597cc18a34050
[]
no_license
imhardikj/git_test
d6608d6c02e0bc454f9dd31ffbbc5704a7046a61
43f0de2e9ac09ecd4fdfee27879fd8ae354a0685
refs/heads/master
2020-03-27T21:56:46.394739
2018-09-03T11:27:58
2018-09-03T11:27:58
147,189,474
0
0
null
null
null
null
UTF-8
Python
false
false
1,214
py
"""A set of classes used to represent electric cars.""" from module_121 import Car class Battery(): """A simple attempt to model a battery for an electric car.""" def __init__(self, battery_size=70): """Initialize the batteery's attributes.""" self.battery_size = battery_size ...
[ "noreply@github.com" ]
imhardikj.noreply@github.com
3c840954bad45d6884f9cadc51628038511b55ba
d6475dda9db9ea6e447db2b4d75d2ebdf454e9d8
/polls/models.py
fefdac850f120944eee69c1278d883e9925f2e2d
[]
no_license
yoophi/django_polls
3d92b01f239ed6933b7593408b788f7adf2e6c31
f94c0ff6307cbdd2d3c65a6b5131a515b6fe67af
refs/heads/master
2021-01-10T00:57:18.706884
2016-03-24T14:50:38
2016-03-24T14:50:38
54,241,666
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
from __future__ import unicode_literals import datetime from django.db import models from django.utils import timezone from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.D...
[ "yoophi@gmail.com" ]
yoophi@gmail.com
c9585d56b0fe94af3866093cae1b512d95ca70cb
fe3265b72e691c6df8ecd936c25b6d48ac33b59a
/tests/components/fritz/test_button.py
36af1c27f5e0bcf2f1852749964ed9cdf872c95c
[ "Apache-2.0" ]
permissive
bdraco/home-assistant
dcaf76c0967783a08eec30ce704e5e9603a2f0ca
bfa315be51371a1b63e04342a0b275a57ae148bd
refs/heads/dev
2023-08-16T10:39:15.479821
2023-02-21T22:38:50
2023-02-21T22:38:50
218,684,806
13
7
Apache-2.0
2023-02-21T23:40:57
2019-10-31T04:33:09
Python
UTF-8
Python
false
false
2,402
py
"""Tests for Fritz!Tools button platform.""" from unittest.mock import patch import pytest from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS from homeassistant.components.fritz.const import DOMAIN from homeassistant.config_entries import ConfigEntryState from homeassistant.const impor...
[ "noreply@github.com" ]
bdraco.noreply@github.com
827c7b9b76801ff6a9ebbc2f8342fe133931ca45
f17de2f1a2804033a7b7fc74a0d09f964fe1d876
/hungerExpress/food/migrations/0003_auto_20180331_1736.py
a285d1dd32068594eea223b405926bad96304f74
[]
no_license
udwivedi394/djangoProjects
60d6eb275ce75dab3884f1a9c68e01226625c4e2
22075b7f850d796afe5a0c06411eb5ff762357b7
refs/heads/master
2021-09-10T21:54:44.363710
2018-04-03T01:58:27
2018-04-03T01:58:27
126,106,563
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
# Generated by Django 2.0.3 on 2018-03-31 12:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('food', '0002_auto_20180331_1725'), ] operations = [ migrations.AlterField( model_name='restaurant', name='contact_no...
[ "utkarshdwivedi394@gmail.com" ]
utkarshdwivedi394@gmail.com
ff01db056009a80fa1000e2954fbb76c769b6e7e
a3d2620bbf25002c7b182600c2e40f8f06555e91
/exc/exc/wsgi.py
8d7d6db299d15b0077bd2774bf300955b5612354
[]
no_license
alejo8591/backend-lab
782736a82933f705f825a1194369bfe13e86c0ec
4a02a9552083a7c877e91b0f8b81e37a8650cf54
refs/heads/master
2016-09-03T03:53:43.878240
2015-11-26T06:35:38
2015-11-26T06:35:38
3,911,349
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
""" WSGI config for exc project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "exc.settings") from django.core.wsgi impo...
[ "alejo8591@gmail.com" ]
alejo8591@gmail.com
968290c1917596dac408fca7d1a91f4c18315524
3024cafafbfc75193105af7f225d3b12eb2aea46
/DjangoProjects/project24/iplapp/models.py
b6932bc062b857864ce7ec33dc7f0cac6088b6d7
[]
no_license
jaishankarg24/Django-Rest-Framework
33266f6825d51abb8a512426baedf59f2ee957c8
809ee9208ffbef4202a8f4058a84f5322793af52
refs/heads/master
2023-03-02T20:56:38.051060
2021-02-12T05:37:48
2021-02-12T05:37:48
338,233,009
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
from django.db import models # Create your models here. class IplTable(models.Model): name = models.CharField( max_length=50) age = models.IntegerField() country = models.CharField( max_length=50)
[ "jaishankarg24@gmail.com" ]
jaishankarg24@gmail.com
5c5ff093f8e4848fe2435494f5abccda014f4507
84a1f9d626828b6ecaee4ef037081f4d8750a990
/编程/9月/9.12/习题答案.py
df9a5234a978fced165131300f75ac2e75628528
[]
no_license
dujiaojingyu/Personal-programming-exercises
5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04
72a432c22b52cae3749e2c18cc4244bd5e831f64
refs/heads/master
2020-03-25T17:36:40.734446
2018-10-01T01:47:36
2018-10-01T01:47:36
143,986,099
1
0
null
null
null
null
UTF-8
Python
false
false
6,921
py
#coding=utf-8 import linecache import time now = time.time() #代码开始时间 # 前期准备,整理数据 data_keys = ('bid', 'uid', 'username', 'v_class', 'content', 'img', 'created_at', 'source', 'rt_num', 'cm_num', 'rt_uid', 'rt_username', 'rt_v_class', 'rt_content', 'rt_img', 'src_rt_num', 'src_cm_num', 'gender', 'rt_bid', 'location', '...
[ "34296128+dujiaojingyu@users.noreply.github.com" ]
34296128+dujiaojingyu@users.noreply.github.com
95aa037242063b122b3bd33f7bb1314f54c46850
11ad104b0309a2bffd7537d05e2ab3eaf4aed0ca
/tests/helpers/test_storage_remove.py
9a447771ea630816f159fba84f8ff655f447eb56
[ "Apache-2.0" ]
permissive
koying/home-assistant
15e5d01a45fd4373b3d286e1b2ca5aba1311786d
9fc92ab04e0d1933cc23e89b4095714aee725f8b
refs/heads/dev
2023-06-24T01:15:12.150720
2020-11-01T12:27:33
2020-11-01T12:27:33
189,232,923
2
1
Apache-2.0
2023-01-13T06:04:15
2019-05-29T13:39:02
Python
UTF-8
Python
false
false
1,252
py
"""Tests for the storage helper with minimal mocking.""" import asyncio from datetime import timedelta import os from homeassistant.helpers import storage from homeassistant.util import dt from tests.async_mock import patch from tests.common import async_fire_time_changed, async_test_home_assistant async def test_r...
[ "noreply@github.com" ]
koying.noreply@github.com
34906a49299704ce8c70279a90752f8f06fab619
7c8bd2e26fdabf1555e0150272ecf035f6c21bbd
/ps프로젝트/BS/숫자카드2.py
8734a278232da1fa846614d424d7f3945e467c48
[]
no_license
hyeokjinson/algorithm
44090c2895763a0c53d48ff4084a96bdfc77f953
46c04e0f583d4c6ec4f51a24f19a373b173b3d5c
refs/heads/master
2021-07-21T10:18:43.918149
2021-03-27T12:27:56
2021-03-27T12:27:56
245,392,582
1
0
null
null
null
null
UTF-8
Python
false
false
619
py
from collections import Counter def check(v): lt=0 rt=n-1 cnt=0 while lt<=rt: mid=(lt+rt)//2 if arr[mid]==v: return 1 elif arr[mid]>v: rt=mid-1 else: lt=mid+1 return 0 if __name__ == '__main__': n=int(input()) arr=list(m...
[ "hjson817@gmail.com" ]
hjson817@gmail.com
9d7d2d581d50ca04cf1b4329b5b87bf803707862
c2e6b6119a1d03bc293572d568d21a6b76762a1f
/ex.py
30c1077d8fe6fac7ee1c285147c7a62bef2ee59a
[]
no_license
kafura-kafiri/Fesss
24a92e5185881066b0d2f61d1649ab0e43a0f479
7b660723237dfbdbd3ba9772a9d2a9c771807bb7
refs/heads/master
2021-05-03T17:17:54.799918
2018-02-06T16:06:40
2018-02-06T16:06:40
120,443,736
0
0
null
null
null
null
UTF-8
Python
false
false
2,280
py
# LSTM for international airline passengers problem with regression framing import numpy from pandas import read_csv import datetime import math from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mea...
[ "kafura.kafiri@gmail.com" ]
kafura.kafiri@gmail.com
8ef2d2abe68d0b5499e760395b40896a467518c4
2e9193625039cbd93a76a1ac1115e84599c6afcd
/HashTable/hashtableImp.py
1f19d4d3fcdd4ca486866e38beb7dbb1a273fa65
[]
no_license
hieudx149/DatastructAndAlgorithms
d54b79c3375dfb17989160a1d2dc74505061eae5
a5f147b2f644f2a273c50756c9d297fa8b6bcd08
refs/heads/master
2023-06-16T13:38:32.039274
2021-07-13T10:35:54
2021-07-13T10:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,581
py
class hash_table: def __init__(self, size): self.size = size self.data = [None]*self.size def __str__(self): # As in the array implementation, this method is used to print the attributes of the class object in a dictionary format return str(self.__dict__) def _hash(self, key): ...
[ "you@example.com" ]
you@example.com
5cbcaaa43ef258823c6c27044d41b401cda0c79d
6b301b0b0d5fea69e6ab6d3fcfd0a9741143a9b7
/config/jupyter/.ipython/profile_default/startup/00-setup-spark.py
0219daccbe9e74cbcbd99ab8d59a1f0b6a772a72
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause" ]
permissive
frankiegu/pipeline
c7a166e80ccc6a351c32fb1918a41268f2380140
3526f58cc9b4d824a23300cd60c647a753902774
refs/heads/master
2021-01-11T06:09:36.914324
2016-10-03T05:33:41
2016-10-03T05:33:41
69,836,618
1
0
null
2016-10-03T02:56:09
2016-10-03T02:56:09
null
UTF-8
Python
false
false
489
py
import glob import os import sys # Setup SPARK_HOME spark_home = os.getenv('SPARK_HOME', None) if not spark_home: raise ValueError('SPARK_HOME environment variable is not set') # System sys.path sys.path.insert(0, os.path.join(spark_home, 'python')) for lib in glob.glob(os.path.join(spark_home, 'python/lib/py4j-*...
[ "chris@fregly.com" ]
chris@fregly.com
bc4d8fdf44a8f6da59b0a8ead9eefac7907e6a29
b3455474da0bc27c913ff88908be0d0bddba352d
/5.AI/1.Machine Learning/196_mushroom_train2.py
0919272787d2e7922608902f2ded949c86259dab
[]
no_license
rntva/JumpToPython
7286bc94e40b553fa7b9fbca7934f2e35f63b54e
090f0ed5bf28ae7832e5edde11936b71b4fb324b
refs/heads/master
2021-05-01T02:33:44.528975
2018-07-18T08:24:07
2018-07-18T08:24:07
121,182,629
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn import metrics from sklearn.model_selection import train_test_split #데이터 읽기 mr = pd.read_csv("mushroom.csv", header=None) #데이터 내부의 분류 변수 전개 label = [] data = [] attr_list = [] for row_index, row in mr.iterrows() : label.append(row....
[ "ltrodl@gmail.com" ]
ltrodl@gmail.com
fedb6ed76a5d7115dd820e753d6a9561b86a1f9e
36e27ca74b734994fb2e5cd4e328e7b82202d8cd
/nodarb/migrations/0007_nodarb_tips_rada.py
23417ec23dc96ae31da304e4df5cc8abde817eeb
[]
no_license
svabis/vf
5e9513f3a767a9561e2fb8bd3e37bb3c03d113dd
d83a4afd177e4f7007a9ce824ae5ed36f18654fc
refs/heads/master
2020-05-21T21:19:59.952463
2018-06-04T11:11:50
2018-06-04T11:11:50
84,647,341
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nodarb', '0006_auto_20170311_1644'), ] operations = [ migrations.AddField( model_name='nodarb_tips', ...
[ "fizmats@inbox.lv" ]
fizmats@inbox.lv
a891b7dbf6d6642a5556df699356d8e6d45ea81e
9eef031728a6cdcd681cad9ba6b0709269383905
/examples/test/test_analyzer.py
bd467f4878203aa3e45a31a9040cd5ead57b0c12
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
kbeckmann/liteeth
906b6f30b5d3be28f2bfac91704c7d5ddf26e85e
54acf9fd76c226d7760294ffde86418e52e0951b
refs/heads/master
2022-12-24T17:02:42.834415
2020-08-24T20:14:35
2020-08-24T20:14:35
300,029,015
0
0
NOASSERTION
2020-09-30T19:03:51
2020-09-30T19:03:50
null
UTF-8
Python
false
false
570
py
#!/usr/bin/env python3 # # This file is part of LiteEth. # # Copyright (c) 2015-2018 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from litex import RemoteClient wb = RemoteClient() wb.open() # # # from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver analyze...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
ffb723bce5647ba3b185cf4e227e25b2ff78a4d7
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_2/frdyon001/question2.py
26dadb99dfec05c266eb818b46161070e84fcf6d
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
2,854
py
# Student Number: FRDYON001 # Name: Yonela Ford # 30 Second Rule Expert # Date: 08 March 2014 def rule(): print("Welcome to the 30 Second Rule Expert") print("------------------------------------") print("Answer the following questions by selecting from among the options.") ans=input("Did anyo...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
371ee8cb4b4f7e37636a6fbfe01b1f1ba8180744
f8b5aafac15f408a48fabf853a918015c927e6fe
/bk_tomo/venv/venv27/bin/openstack
ef4239b2369d1cd6ac9e4daa1bf696a84ace7ec5
[]
no_license
to30/tmp
bda1ac0ca3fc61e96c2a1c491367b698d7e97937
ec809683970af6787728c2c41f161f416155982a
refs/heads/master
2021-01-01T04:25:52.040770
2016-05-13T16:34:59
2016-05-13T16:34:59
58,756,087
0
1
null
null
null
null
UTF-8
Python
false
false
243
#!/home/tomo/venv/venv27/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from openstackclient.shell import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "tomonaga@mx2.mesh.ne.jp" ]
tomonaga@mx2.mesh.ne.jp
f59f062c20bb92420bb4ec172e9e3f763356ef80
a140fe192fd643ce556fa34bf2f84ddbdb97f091
/.history/quiz04_20200628163202.py
43cf11c468754194ccbd6ea39f998db2cd2226d8
[]
no_license
sangha0719/py-practice
826f13cb422ef43992a69f822b9f04c2cb6d4815
6d71ce64bf91cc3bccee81378577d84ba9d9c121
refs/heads/master
2023-03-13T04:40:55.883279
2021-02-25T12:02:04
2021-02-25T12:02:04
342,230,484
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
# 당신의 학교에서는 파이썬 코딩 대회를 주최합니다. # 참석률을 높이기 위해 댓글 이벤트를 진행하기로 하였습니다. # 댓글 작성자들 중에 추첨을 통해 1명은 치킨, 3명은 커피 쿠폰을 받게 됩니다. # 추첨 프로그램을 작성하시오. # 조건 1: 편의상 댓글은 20명이 작성하였고 아이디는 1~20 이라고 가정 # 조건 2: 댓글 내용과 상관 없이 무작위로 추첨하되 중복 불가 # 조건 3: random 모듈의 shuffle과 sample을 활용 # (출력 예제) # -- 당첨자 발표 - - # 치킨 당첨자: 1 # 커피 당첨자: [2, 3, 4] # -- 축하합니다...
[ "sangha0719@gmail.com" ]
sangha0719@gmail.com
4453fb58e33a80b6a1510a8e4e5c633e06b4cdc2
e36985669a2b068dfb3e43b7f5870dc114bb158b
/python_code/dataExtraction.py
7722d25b7d06ff6e71446c9ef08cf4b970e527d8
[]
no_license
assassint2017/Data-extraction-UI
b3f0f43dc48e12c0da158bdb4a7c2c9dd5d92ab5
d7e1b97100ad97b334f03b0fbf09c2a506339b1c
refs/heads/master
2020-04-11T06:18:50.417214
2018-12-21T12:38:47
2018-12-21T12:38:47
161,577,841
2
0
null
null
null
null
UTF-8
Python
false
false
2,732
py
""" 数据提取代码 """ import datetime import pandas as pd from numpy import nan #-------------------------需要设置的部分------------------------------- # 设定csv文件路径 路径中不要出现中文 # csvDir = 'C:\\Users\\14595\\Desktop\\2018HB example .csv.gz' # 设定提取csv文件路径 路径中不要出现中文 # extDir = 'C:\\Users\\14595\\Desktop\\ext.csv' # 各哨点数量汇总文件路径 路径中不要出...
[ "noreply@github.com" ]
assassint2017.noreply@github.com
99bb440e3d91a657af83b6b5699a5675b2c46f7c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03136/s297842517.py
a2a6230496234027046d6691748a5f445af9dd64
[]
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
163
py
n = int(input()) a = list(map(int, input().split())) b = [0]*n b = sorted(a) c = 0 for i in range(n-1): c += b[i] if c>b[n-1]: print("Yes") else: print("No")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d5c4cac739d6c9ad1a641938dda9973c912c84c5
e944d288093c9234c3a6a2a76ffe4e3c9b236cf1
/annotation_utils/coco/structs/__init__.py
66e257d06be64002c0bce0580e1d58fd6c768ce7
[ "MIT" ]
permissive
darwinharianto/annotation_utils
598b043345790580e99f34f159b9612b9b1bcd52
1cbdadaa28ff945e705dd7b806dda395e32ab23c
refs/heads/master
2022-04-27T01:20:10.738778
2020-04-27T09:23:57
2020-04-27T09:23:57
255,525,300
0
0
MIT
2020-04-27T09:23:59
2020-04-14T06:10:57
Python
UTF-8
Python
false
false
245
py
from .objects import COCO_Info, COCO_License, COCO_Image, \ COCO_Annotation, COCO_Category from .handlers import COCO_License_Handler, COCO_Image_Handler, \ COCO_Annotation_Handler, COCO_Category_Handler from .dataset import COCO_Dataset
[ "mork.clayton3@gmail.com" ]
mork.clayton3@gmail.com
a1f02577c0adfa04d1396283c0f946dca6808285
77ee1f677ab2ececb821a11be128b76bcf0e8d6f
/electrum_mona/gui/qt/lightning_dialog.py
1d709aed9935b2c01bce4e473c6c8bdd4f25e9d9
[ "MIT" ]
permissive
zcore-dev/electrum-mona
c74e6142a0f34721be70dba68d524ae9ce03179c
2beb0c9c7794e8b03d1725bae41ee8b792c57275
refs/heads/master
2020-08-22T15:32:55.604727
2019-10-21T22:56:29
2019-10-21T22:56:29
216,427,159
0
0
MIT
2019-10-20T21:03:48
2019-10-20T21:03:48
null
UTF-8
Python
false
false
3,658
py
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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, # includi...
[ "root@DESKTOP-97LL1PI.localdomain" ]
root@DESKTOP-97LL1PI.localdomain
fc9b0c269aecdb44c4736fe6b9da03555f7de8e3
31622dd16963b459ac6eec71fcf54e4d243ac773
/edu_sharing_client/models/license.py
073b8ab7d8a99b38a95e9902e2a8e4a23e2cd02e
[]
no_license
torsten-simon/oeh-search-etl
95e6e92698a97c98ef9d5b02076edcf993736d6f
eacdadcd8af169cb54629db0d2d46a5616f854a6
refs/heads/master
2023-04-16T05:08:41.194239
2020-11-16T09:51:59
2020-11-16T09:51:59
318,169,232
0
0
null
2023-04-03T23:04:46
2020-12-03T11:20:44
null
UTF-8
Python
false
false
3,484
py
# coding: utf-8 """ edu-sharing Repository REST API The public restful API of the edu-sharing repository. # noqa: E501 OpenAPI spec version: 1.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class License(object): "...
[ "simon@edu-sharing.net" ]
simon@edu-sharing.net
d2edaeec8fdcd119849df0305b0cb817b3235ebe
8d9318a33afc2c3b5ca8ac99fce0d8544478c94a
/Books/Casandra DB/opscenter-5.1.0/lib/py/orbited/proxy.py
4c0e80c1f97cce4bb513bffb9be5583f06edd599
[]
no_license
tushar239/git-large-repo
e30aa7b1894454bf00546312a3fb595f6dad0ed6
9ee51112596e5fc3a7ab2ea97a86ec6adc677162
refs/heads/master
2021-01-12T13:48:43.280111
2016-11-01T22:14:51
2016-11-01T22:14:51
69,609,373
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:ba1b92cda51cc0fbe137994a7b857befa45aa64d45009e4fb34ed1df78d0f3fc size 5501
[ "tushar239@gmail.com" ]
tushar239@gmail.com
8f55ee77bb2e6f0f501c6aae41fe353d5946e7ed
48f092fd8191b0218df8605dc7125e526764e59e
/NestedLoops/venv/Scripts/pip-script.py
1f860a6a2d99a98a14ef6f35a31d2812b31131f3
[]
no_license
LalityaSawant/Python-Projects
2edb430c094fe3d6b4e706cc61f885aa07e24dff
b142708256e26867f09b3063f5f3fffa305ec496
refs/heads/master
2020-05-01T03:00:26.012301
2019-03-23T22:09:33
2019-03-23T22:09:33
177,235,109
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
#!C:\Users\lsawant\Documents\Learning\Python\PycharmProjects\NestedLoops\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script...
[ "lalitya.sawant@gmail.com" ]
lalitya.sawant@gmail.com
10cefb112ffc8a72f2ddcd285ff5b6f871ecf497
41523dd4871e8ed1043d2b3ddf73417fcbdde209
/day16/map函数.py
7a19700236dcf557aafb01afb59951babcaa5d8d
[]
no_license
WayneChen1994/Python1805
2aa1c611f8902b8373b8c9a4e06354c25f8826d6
a168cd3b7749afc326ec4326db413378fd3677d5
refs/heads/master
2020-03-30T23:19:00.773288
2018-11-02T10:47:40
2018-11-02T10:47:40
151,697,105
0
0
null
null
null
null
UTF-8
Python
false
false
943
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # author:Wayne ''' map函数的功能: 将传入的函数依次作用于序列中的每一个对象, 然后将其作用的结果作为一个迭代器返回 ''' ''' 需求:将列表中的["1", "2", "3", "4", "5"] 转为[1, 2, 3, 4, 5],写成一个函数。 ''' def func(alist): return [int(x) for x in alist] list1 = ["1", "2", "3", "4", "5"] print(list1) print(func(list1)) res =...
[ "waynechen1994@163.com" ]
waynechen1994@163.com
38acb8c211006d953999bf2dfc3090c9f9313ea5
ee27325f6a3e6a2d1f5e004aa60f5974ad864ae9
/contrib/python/plotly/py3/plotly/validators/contourcarpet/__init__.py
09c50961c6d1e808ad2e54b12da590314f6b6cc2
[ "Apache-2.0", "MIT" ]
permissive
alvinahmadov/catboost
f32d2b16be9db7439e429c88feb5676de842fc89
a6e0caa4779b31199f535cf43b09879d7c653abe
refs/heads/master
2023-06-12T19:29:52.028508
2023-05-11T18:33:03
2023-05-11T18:33:03
202,584,937
0
0
Apache-2.0
2019-08-15T17:35:23
2019-08-15T17:35:23
null
UTF-8
Python
false
false
4,621
py
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zmin import ZminValidator from ._zmid import ZmidValidator from ._zmax import ZmaxValidator from ._zauto import ZautoValidator from ._z import ZValidator from ....
[ "akhropov@yandex-team.com" ]
akhropov@yandex-team.com
c484b176ad74bbf3c3d2c6945058b3f6fa039104
1978a9455159b7c2f3286e0ad602652bc5277ffa
/exercises/05_basic_scripts/task_5_2b.py
942e752a8c38f07e0e2a188e036ef30e8781ecff
[]
no_license
fortredux/py_net_eng
338fd7a80debbeda55b5915dbfba4f5577279ef0
61cf0b2a355d519c58bc9f2b59d7e5d224922890
refs/heads/master
2020-12-03T17:32:53.598813
2020-04-08T20:55:45
2020-04-08T20:55:45
231,409,656
0
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
# -*- coding: utf-8 -*- ''' Задание 5.2b Преобразовать скрипт из задания 5.2a таким образом, чтобы сеть/маска не запрашивались у пользователя, а передавались как аргумент скрипту. Ограничение: Все задания надо выполнять используя только пройденные темы. ''' from sys import argv ip = str(argv[1]) mask = int(argv[2])...
[ "fortunaredux@protonmail.com" ]
fortunaredux@protonmail.com
fe91480c51ec9d9e11d8cbf4c07c3dbad667f8a4
f2f21c643d1f5459253989e7cdba85c064cca8ce
/adding_bootstarp/adding_bootstarp/wsgi.py
b02fcd063eb36aa3dc1d03dc3104e13e690ebccf
[]
no_license
NiteshTyagi/django_tutorial
342decea7532f1efb200b9f45e4123c581aad43f
3353f0d2907a00f43e1faee2b97abd9af66ca08f
refs/heads/master
2022-03-05T19:46:50.642154
2022-03-01T04:53:14
2022-03-01T04:53:14
205,629,609
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for adding_bootstarp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
[ "nitesh.tyagi.cs.2015@miet.ac.in" ]
nitesh.tyagi.cs.2015@miet.ac.in