blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
01ed2276aaa8ccf051e68654900f77f99150ae15
4de03eecadc4c69caf792f4773571c2f6dbe9d68
/tests/seahub/share/views/test_send_shared_link.py
c265c943065929d26d603cb4f387bfa7dd71b7aa
[ "Apache-2.0" ]
permissive
Tr-1234/seahub
c1663dfd12f7584f24c160bcf2a83afdbe63a9e2
ed255e0566de054b5570218cb39cc320e99ffa44
refs/heads/master
2022-12-23T16:20:13.138757
2020-10-01T04:13:42
2020-10-01T04:13:42
300,138,290
0
0
Apache-2.0
2020-10-01T04:11:41
2020-10-01T04:11:40
null
UTF-8
Python
false
false
3,204
py
from mock import patch from django.core import mail from django.core.urlresolvers import reverse from django.test import override_settings from seahub.profile.models import Profile from seahub.profile.utils import refresh_cache from seahub.test_utils import BaseTestCase class SendSharedLinkTest(BaseTestCase): de...
[ "colinsippl@gmx.de" ]
colinsippl@gmx.de
775b26f16fa53c27ec712bf92cfb31553c92f19d
e24511af0fdf299130fdf1e27b7eda1e35064e7c
/app/coupon/apps.py
bab96066b77b4592b0cf454c6ef51fa085d53a67
[]
no_license
amitbhalla/lms
623dc6764dba5ee67a7f30d3882b7917b6441c2e
0810a875008b371a7bd3996742ad3b04ce037b14
refs/heads/main
2023-07-19T12:12:40.570958
2021-09-17T16:55:29
2021-09-17T16:55:29
405,055,595
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
from django.apps import AppConfig class CouponConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "coupon"
[ "amit9815@gmail.com" ]
amit9815@gmail.com
84340a119e8fdb72320174077f9aa1c0605ca64f
9d566e153a254390ed758f4e945781899b6dcd07
/03_django/02_django_crud/articles/views.py
e9c78e872870c579df912051bc9513f1f01afb88
[]
no_license
baambox5/TIL
6f1b0fdc342ed29b85a68404b916fc6f4cace7bf
0419779ccbf506a1e89d581b98658dd07b78388c
refs/heads/master
2023-01-13T01:14:08.125234
2020-01-17T14:36:34
2020-01-17T14:36:34
195,918,108
0
0
null
2023-01-07T11:27:08
2019-07-09T02:31:02
Jupyter Notebook
UTF-8
Python
false
false
2,964
py
from IPython import embed from django.core.exceptions import ValidationError from django.shortcuts import render, redirect from .models import Article, Comment # Create your views here. def index(request): # articles = Article.objects.all() articles = Article.objects.order_by('-pk') # DB가 변경(가능한 권장) # ...
[ "baamboxo@gmail.com" ]
baamboxo@gmail.com
a3cf7cefbf7e8537e0c1fe7a704c4158e33f881b
39e03684081b27311385a0ab31afcc2e09883e5c
/configs/reppoints/bbox_r50_grid_center_fpn_1x.py
f971b5b7b8c78a6abca727e7015b96d085b5f33b
[ "MIT", "Python-2.0" ]
permissive
witnessai/MMSceneGraph
8d0b2011a946ddcced95fbe15445b7f4da818509
bc5e0f3385205404c712ae9f702a61a3191da0a1
refs/heads/master
2023-08-12T06:54:00.551237
2021-10-12T03:04:21
2021-10-12T03:04:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,462
py
# model settings norm_cfg = dict(type='GN', num_groups=32, requires_grad=True) model = dict( type='RepPointsDetector', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, ...
[ "23736866+Kenneth-Wong@users.noreply.github.com" ]
23736866+Kenneth-Wong@users.noreply.github.com
848b91f09b40a31a3b9e5798f08cb9dc68841a53
bd8b3d43a465b26f0d86a3007b41d6a3c22345a6
/svsutils/iterators/__init__.py
6bde41920adb8b8446e1ce7254e5cba9a485b1fe
[]
no_license
nathanin/svsutils
aed5d361ff4716390e093d6bab6bf3cc6dd69a9b
5789c3e589ce9244b21a24d6cdc3909bc4e04517
refs/heads/master
2020-06-25T06:06:37.019860
2019-12-17T05:08:35
2019-12-17T05:08:35
199,225,548
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
from .iterator_factory import PythonIterator, TensorflowIterator __all__ = [ 'PythonIterator', 'TensorflowIterator' ]
[ "ing.nathany@gmail.com" ]
ing.nathany@gmail.com
0187aa1b8fa9854b1f253d952bda031992f4b423
20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7
/old/pddbm/bug3.py
7d0a81d444b74c37e2e621dc7a08f50608b54c18
[]
no_license
sarahboufelja54/galatea
f5664f0b3117629b2c5bbe078a1bd52bb5e359e6
002a9f2905868be25b71770190fb2d5eda11c861
refs/heads/master
2020-12-04T13:45:07.697189
2018-12-12T16:27:09
2018-12-12T16:27:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,268
py
import numpy as np from sklearn.svm import SVC import time rng = np.random.RandomState([1,2,3]) m = 1000 n = 1000 X = rng.randn(m,n) w = rng.randn(n) b = rng.randn(1) y = (np.dot(X,w) + b ) > 0 t1 = time.time() svm = SVC(kernel = 'linear', C = 1.0).fit(X,y) t2 = time.time() print 'train time ',t2 - t1 t1 = time.t...
[ "goodfellow.ian@gmail.com" ]
goodfellow.ian@gmail.com
244651275300889c2f7a9b4928af9c1940ad6614
4be9a5bdb8e051001b78c8f127ccc1a7f85c14e7
/bugzilla/migrations/0002_auto_20170205_1515.py
6b518a7b30a1bea8b1cda0d937046f6fe0febbe5
[]
no_license
quentin-david/heimdall
f72a85606e7ab53683df2023ef5eaba762198211
84a429ee52e1891bc2ee4eb07a084dff209c789c
refs/heads/master
2021-01-21T10:26:28.895663
2017-07-21T19:19:46
2017-07-21T19:19:46
83,432,596
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-02-05 15:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bugzilla', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
[ "david@hemdgsa01.local.lan" ]
david@hemdgsa01.local.lan
2eeceb42de2ea27fde10e7e6d5c08914488ee6c5
b4da2201d2df789e28472aeded28720d5269ade5
/Komodo-Edit-7/lib/mozilla/components/koLintService.py
4e543d65bce81928a8d67a2192aeee69c031327d
[]
no_license
AeonSaber/first_app
5ad89d4fb05d7662e2a39ce68176f43f1e618bf0
522fdfa6d33419fd49e431766fff85b40d21e78e
refs/heads/master
2020-06-12T17:22:09.786142
2013-09-09T23:57:51
2013-09-09T23:57:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
30,788
py
#!python # ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License # Version 1.1 (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.mozilla.org/MPL/ ...
[ "jpsutton@madisoncollege.edu" ]
jpsutton@madisoncollege.edu
7b0c4083d029a92441704bd296c1aef0ebbf84f2
2d4ab8e3ea9fd613ec0ae0c1956b68874c9b5f06
/tests/pipelines/cnv_calling/test_xhmm_pca.py
e9dc13feb4ca41c6220481e9e7105e1e72bce443
[]
no_license
biocodices/paip
4abd39cbbd372a68592da87177c70c403d5a661d
040a62c11e5bae306e2de4cc3e0a78772ee580b3
refs/heads/master
2021-01-17T20:48:28.642255
2019-07-26T14:30:58
2019-07-26T14:30:58
62,604,413
1
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
from unittest.mock import MagicMock import pytest from paip.pipelines.cnv_calling.xhmm_pca import XhmmPCA, EmptyInputMatrix @pytest.fixture def task(cohort_task_factory): return cohort_task_factory(XhmmPCA) def test_check_matrix(task): # NOTE: Run this test before the next one, because the tested method ...
[ "juanmaberros@gmail.com" ]
juanmaberros@gmail.com
7df75a268c13f4de545db13ec51df02cd9cdbda5
ddcc89dc88961f37d50c0f9d893f265bf34afdb3
/test/test_simple_module_pass.py
f6be33ae365cbfb62819b6d08a8740fcd1ff5120
[ "Unlicense", "LicenseRef-scancode-unknown-license-reference", "NCSA", "LicenseRef-scancode-public-domain" ]
permissive
mulle-nat/property-syntax-modernizer
f351319314a0216e5e241fa03f9d95a3764a6590
93445534221840d0df6cfb2d2f4ceb73f37ac962
refs/heads/master
2020-08-07T08:57:02.149734
2019-10-07T12:46:11
2019-10-07T12:46:11
213,381,270
0
0
Unlicense
2019-10-07T13:11:51
2019-10-07T12:47:05
C++
UTF-8
Python
false
false
442
py
import sys, unittest from tools import SamplesTestCase OUTPUT_FOR_GLOBALS = '''\ Found global named "gfloat": type = float* Found global named "gppfloat": type = float*** Found global named "gint": type = i32* ''' PROG = 'simple_module_pass' class TestSimpleModulePass(SamplesTestCase): def test_on_globals(self)...
[ "eliben@gmail.com" ]
eliben@gmail.com
015c735e062ac63dde157d1b06e700b8009e14ce
8a1241ac8ad91672aec81c878f2165a7678a1ad6
/Web/Applications/Visualizer/server/pv_web_visualizer.py
84ef98ae22d8c269ffca4d47cdd4e0a31d3dd2f0
[ "MIT", "LicenseRef-scancode-paraview-1.2", "Apache-2.0", "LicenseRef-scancode-protobuf", "BSD-3-Clause" ]
permissive
lmynsberge/ParaView
d9fbd0f4da197bc96172be8697ced76fe73852bf
2a68ee496949becf499742dfdbecb41b1eda81a7
refs/heads/master
2021-01-22T16:18:25.241194
2013-11-11T15:01:02
2013-11-11T15:01:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,203
py
r""" This module is a ParaViewWeb server application. The following command line illustrate how to use it:: $ pvpython .../pv_web_visualizer.py --data-dir /.../path-to-your-data-directory --data-dir is used to list that directory on the server and let the client choose a file to load. ...
[ "sebastien.jourdain@kitware.com" ]
sebastien.jourdain@kitware.com
aa80166792010844c80020d87de369afec96d42a
5eff9df4d276e83c68ce843d58868499858f701a
/Leetcode - FB/p0350.py
3780986eb5c2d856d4e29deeeacac48b9f10fdf7
[]
no_license
arunraman/Code-Katas
b6723deb00caed58f0c9a1cafdbe807e39e96961
7fe3582fa6acf59a2620fe73e1e14bd8635bbee8
refs/heads/master
2023-03-04T17:27:44.037145
2023-03-02T21:09:53
2023-03-02T21:09:53
25,232,784
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
class p0349(object): def intersectiontwoArrays(self, nums1, nums2): dict1 = dict() for i in nums1: if i not in dict1: dict1[i] = 1 else: dict1[i] += 1 ret = [] for i in nums2: if i in dict1 and dict1[i] > 0: ...
[ "arunraman.19@gmail.com" ]
arunraman.19@gmail.com
205e2c6f3f8e1f3fd358d21e4ccbb1da32701a93
021a3dff055d4b3e40aafc63f0029dc280466233
/db_scripts/curw_fcst/rfield/gen_rfield_kelani_basin_parallelized_optimized.py
e2bed1eb35b657a3592bea9d212fe72a3c8b6482
[]
no_license
shadhini/curw_helpers
45efe90d887c702b3a3f5877163647e220d230e4
101d896f8b589b478ef146b5b4dd99ec24f2dc84
refs/heads/master
2021-07-03T02:53:13.398052
2020-10-28T03:39:58
2020-10-28T03:39:58
185,217,580
0
0
null
null
null
null
UTF-8
Python
false
false
6,854
py
#!/home/uwcc-admin/curw_rfield_extractor/venv/bin/python3 import traceback import pymysql import json import getopt import sys import os import re import multiprocessing as mp from datetime import datetime, timedelta # connection params HOST = "" USER = "" PASSWORD = "" DB ="" PORT = "" VALID_MODELS = ["WRF_A", "WRF_...
[ "jshadhiniaseka@gmail.com" ]
jshadhiniaseka@gmail.com
d1f9c5d8fe6a52dd2e130204f45e94850dfa5e0f
33f86c1678d2f5e15da77885e0bf770f405201a4
/tcamp/local_settings.example.py
b5b48f86971536c25ec25d5c61d13c2805a1304e
[ "BSD-3-Clause" ]
permissive
imclab/tcamp
5410c9549ed7731575e7312acfed7b8e4cd0c58d
111cabab90b2c8cf651ee480520bc43a33f30844
refs/heads/master
2021-01-18T12:15:58.484183
2014-03-05T21:36:00
2014-03-05T21:36:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,832
py
DEBUG = True ADMINS = ( ('', ''), ) MANAGERS = ADMINS INTERNAL_IPS = ('127.0.0.1', ) SECRET_KEY = '' DATABASES = { 'local': { 'ENGINE': '', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': '', # Or path to database file if using sqlite3. 'USER': ...
[ "dan.drinkard@gmail.com" ]
dan.drinkard@gmail.com
af0ff074d35191259400a9937db81997e7772ffd
d52cb4c2e880875944b14da0b8a9542235942ac8
/geeksforgeeks/heap/6_Find_median_in_stream.py
521a8f79468f59a0c175f5766c7681ae8d0a619c
[]
no_license
saparia-data/data_structure
fbd61535b68f92143b2cb2679377c0f56f424670
2e8700cfdaeefe0093e5b4fb2704b1abcd300d02
refs/heads/master
2023-05-08T18:54:52.250941
2021-06-04T05:44:29
2021-06-04T05:44:29
296,071,146
1
0
null
null
null
null
UTF-8
Python
false
false
3,382
py
''' Given an input stream of N integers. The task is to insert these numbers into a new stream and find the median of the stream formed by each insertion of X to the new stream. Example 1: Input: N = 4 X[] = 5,15,1,3 Output: 5 10 5 4 Explanation:Flow in stream : 5, 15, 1, 3 5 goes to stream --> median 5 (5) 15 goe...
[ "saparia.ashvin@tavant.com" ]
saparia.ashvin@tavant.com
a15aa9381f0639460207512eace0c0e66ea54b4b
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4327/codes/1602_2049.py
1ce019700e7801903c6df341e812f94f4b2cb946
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
302
py
# Teste seu codigo aos poucos. # Nao teste tudo no final, pois fica mais dificil de identificar erros. # Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo. x=int(input("informe o dividendo: " )) y=int(input("informe o divisor: " )) print (x) print (y) print (x//y) print (x%y)
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
eaa1694453e2fb1d8f4e20c3a6a0852dc8c2f92c
bec66ec0c920939547466b2b8f9d65813d560d1d
/noxious/__init__.py
f007d1198e0435f72d773eb479f29a48d9534092
[]
no_license
mbr/noxious
cbb3be2ca725a0282db390520306da7ebba75339
6c48fe84867d80614defa6bdce4d4640ce657ae5
refs/heads/master
2023-06-06T20:42:08.079423
2015-08-30T10:54:52
2015-08-30T10:54:52
41,625,389
0
1
null
null
null
null
UTF-8
Python
false
false
1,557
py
import xml.etree.ElementTree as ET def from_file(fn): tree = ET.parse(fn) return Noxious(tree.getroot()) class Noxious(object): def __init__(self, elem, parent=None): self._parent = parent self._elem = elem def _all(self): return [self.__class__(sibling) for ...
[ "git@marcbrinkmann.de" ]
git@marcbrinkmann.de
4b2654ba6bffd9e20cf44a960e8ed5166476ba81
749aca95edfaad9e7d8b84dc2c6f62038595efc3
/mandala.py
dac1d0eae959c6a652cc1f391088ca60e9419b56
[]
no_license
xmduhan/mandala
efe72b116ec829457cd2286b88b4544d5538861c
eafea6c9ebd0ca913c070f0bf2cbf72a6566b0a7
refs/heads/master
2021-06-30T16:30:49.410637
2017-09-20T09:44:53
2017-09-20T09:44:53
104,153,412
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
#!/usr/bin/env python # encoding: utf-8 import dataset from pyfiglet import Figlet from termcolor import cprint from prompt_toolkit import prompt as _prompt from prompt_toolkit.history import InMemoryHistory from itertools import count from treelib import Tree from pandas import DataFrame history = InMemoryHistory() d...
[ "xmduhan@gmail.com" ]
xmduhan@gmail.com
35da38996a54cfbccf733b5859960068514b4714
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2332/60592/271480.py
f602a8c01f31dbba291aa53971306002fff48fef
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
630
py
base = int(input()) tar = int(input()) res = 0 fun = [] te = 0 tem = tar while tem != 0: i = 0 if tem == 1: te += 1 break mark = 0 while mark <= tem: mark = pow(base,i) i+=1 te+=i-3 mark/=base tem-=mark if tem!= 0: te+=1 fun.append(te) te = 0 tem =...
[ "1069583789@qq.com" ]
1069583789@qq.com
516a6530d09f3f2717a8b0cf0e85c849bb9f4ad0
f63907d2115becd64704ef1881f3bfcb7ba9047d
/sandbox/test/testTemplate.py
91ba4b483092ee7a004dca1be860007bfd13cdaa
[]
no_license
AseiSugiyama/NZMATH-Python3
d456610f72071a654531583228e439ffa8a4db0c
f65b176be2e58fafa0eea91f399c9ab17f3f478b
refs/heads/master
2020-05-21T07:26:51.434191
2019-04-27T09:52:18
2019-04-27T09:52:18
185,959,644
2
0
null
null
null
null
UTF-8
Python
false
false
989
py
import unittest import sandbox.hoge as hoge class HogeTest (unittest.TestCase): """ Test classes must inherite unittest.TestCase. They have name suffixed with 'Test'. """ def setUp(self): """ setUp is run before each test method run. """ pass def tearDown(self): """ ...
[ "devnull@localhost" ]
devnull@localhost
2b900473f8ebad3774236008a4ce12609bd077c4
c4af67db4c523d20f2d55aef90ba77db1fb53c38
/validation/tests/test_validation.py
c1128b9d609b6db323abf0d49d809d2207be7177
[]
no_license
dtgit/dtedu
e59b16612d7d9ea064026bf80a44657082ef45a3
d787885fe7ed0de6f9e40e9b05d852a0e9d60677
refs/heads/master
2020-04-06T05:22:50.025074
2009-04-08T20:13:20
2009-04-08T20:13:20
171,351
1
0
null
null
null
null
UTF-8
Python
false
false
3,060
py
from Testing import ZopeTestCase from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase from Testing.ZopeTestCase import doctest from Products.validation import validation class TestValidation(ATSiteTestCase): def test_inNumericRange(self): v = validation.validatorFor('inNumericRange') ...
[ "ron@domU-12-31-39-02-65-03.compute-1.internal" ]
ron@domU-12-31-39-02-65-03.compute-1.internal
edd7334352747e1e9b08be0af986b1239e3ee6fe
5a25edcf994a760688dc7c933e8071bf4ff24df3
/exercises/ja/solution_01_08_01.py
01762ddd77ee431a33af88413c4449ddfc5b02bc
[ "CC-BY-NC-4.0", "MIT" ]
permissive
heyMP/spacy-course
8762990ed6179011680730d9c24d5d34c0a8d954
3740c717f0d1090b01c1b0fe23f8e30af3bf0101
refs/heads/master
2022-11-07T21:52:15.479840
2020-06-25T18:13:44
2020-06-25T18:13:44
275,202,487
1
0
MIT
2020-06-26T16:39:32
2020-06-26T16:39:31
null
UTF-8
Python
false
false
476
py
import spacy nlp = spacy.load("en_core_web_sm") text = "It’s official: Apple is the first U.S. public company to reach a $1 trillion market value" # テキストを処理 doc = nlp(text) for token in doc: # トークンの文字列、品詞タグ、依存関係ラベルを取得 token_text = token.text token_pos = token.pos_ token_dep = token.dep_ # フォーマット...
[ "tamuhey@gmail.com" ]
tamuhey@gmail.com
2f7b555b8a023acfc59b3616b78949d6bc53ab5f
3349a0d44da04fd9fae7728ce1315ccf0c82285e
/556A - case of zeroes and ones.py
c96ebf9ebc0e1aad3e01b362c37be5bd17da4cdb
[]
no_license
umairnsr87/Data_Structures_Python
959848e546fd4f98959bc14470c26ce91bfb5c9c
05b5803521ed2ec7f64d95f08e2f014471dfdfd4
refs/heads/master
2023-07-18T12:11:55.245699
2023-07-16T17:01:09
2023-07-16T17:01:09
294,360,086
0
0
null
2023-07-16T17:01:10
2020-09-10T09:11:11
Python
UTF-8
Python
false
false
567
py
from collections import Counter test = int(input()) strings = input() # time complexity:O(n) # while '01' or '10' in strings: # if '01' in strings: # strings = strings.replace('01', '') # elif '10' in strings: # strings = strings.replace('10', '') # else: # break # # print(len(str...
[ "umairnsr87@gmail.com" ]
umairnsr87@gmail.com
d8068915b32c07cb896a8397d6b917f876d3b5fe
4549c02dac55f2b8ed113ddacf95264630d91698
/Predict/__init__.py
022ca012e6428d9d89aadfa04b3b27bb059bca6b
[]
no_license
kiminh/GPA
43077bb59797a096e3660b226642c5fe091a9663
29c5ffd8d7aa1bc3ebe6d83d1e55a997a04e4b60
refs/heads/master
2021-02-10T20:45:35.581410
2020-01-14T08:59:00
2020-01-14T08:59:00
244,417,955
1
0
null
2020-03-02T16:23:00
2020-03-02T16:23:00
null
UTF-8
Python
false
false
98
py
# -*- coding: utf-8 -*- # @Time : 2019/11/19 10:58 # @Author : zxl # @FileName: __init__.py.py
[ "791057615@qq.com" ]
791057615@qq.com
e607164ee72ed5d0071b455388700dbe366a225e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_windlasses.py
6ee113296ad40900fcef0fed2db7fb643eaa9caf
[ "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
232
py
#calss header class _WINDLASSES(): def __init__(self,): self.name = "WINDLASSES" self.definitions = windlass self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['windlass']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
8c8e0126b4969636ebe2d414567e598beb70bf2c
e9a9955da9bee9be6580f1b1a75f97a1f99d0289
/login/migrations/0016_auto_20190803_1452.py
eb4f2ea18f1fff82b8ba290db60a29457a52f715
[]
no_license
Manjunatha1997/project_IT
bdb36142256b9d4eb1b75a76994d801dd3c33013
fe58a30d033d4f4ed818c0282a802fafcf3aaff5
refs/heads/master
2021-02-28T04:17:13.872903
2020-03-07T15:48:49
2020-03-07T15:48:49
245,661,299
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
# Generated by Django 2.1.7 on 2019-08-03 14:52 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0015_auto_20190803_0435'), ] operations = [ migrations.AlterField( model_name='profile', na...
[ "lovelymanju198@gmail.com" ]
lovelymanju198@gmail.com
f17669184ef2e9e58cc9613ffd6e8add89126ea3
09e8c92187ff8d7a726727041e2dd80850dcce3d
/leetcode/028_implement_strStr_TRICKY.py
7154dcc9281455ccd29a545cb11042da6c8c43ad
[]
no_license
kakru/puzzles
6dd72bd0585f526e75d026f3ba2446b0c14f60e0
b91bdf0e68605f7e517446f8a00b1e0f1897c24d
refs/heads/master
2020-04-09T09:47:31.341475
2019-05-03T21:24:41
2019-05-03T21:24:41
160,246,660
0
0
null
null
null
null
UTF-8
Python
false
false
1,846
py
#/usr/bin/env python3 import unittest class Solution: def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ h_len = len(haystack) n_len = len(needle) i = 0 while i <= h_len - n_len: if haysta...
[ "karol@kruzelecki.com" ]
karol@kruzelecki.com
ea641622136b336a1f7196b18e51f101df6df097
d45bb44b0dfabfeff37c21a6ac0be1362782e39a
/utils/import_bookmarks.py
ea763b006243bdea76577f71ce07e8fba1168997
[]
no_license
SyJarvis/BookmarkManager
c25f9df8cb0d0719de805f8080a7ae78c5ac529c
dc3baf06fd47c4514b148134ee3d3fa03f7f1571
refs/heads/master
2023-03-26T17:14:17.776441
2021-03-21T14:58:58
2021-03-21T14:58:58
322,634,112
1
0
null
null
null
null
UTF-8
Python
false
false
647
py
from pyquery import PyQuery as pq class BookmarksTodb(): def __init__(self, filename='utils/bookmarks_2020_5_5_win.html'): with open(filename, 'r+', encoding='utf-8') as file: self.html = file.read() self.doc = pq(self.html) def get_cage_list(self): cage_li = [] items = self.doc('H3') for...
[ "1755115828@qq.com" ]
1755115828@qq.com
44f7d5e6d9055b7acb7c3147d5e6aa735fc3ce3e
a09e70355b756bd5cba55246e17eb0480af6257b
/examples/ble_demo_central.py
eb56a9cb9b54270e50eb0709aed3104e43dfecc4
[ "MIT" ]
permissive
devoh747/Adafruit_CircuitPython_BLE
9735381dc3481661af54ac32d89ec40e006edc5b
7566483e2dbdb1bf6c71d5629a2ed37b113c7cff
refs/heads/master
2020-08-09T04:14:59.774817
2019-10-10T21:11:07
2019-10-10T21:11:07
213,995,226
0
0
MIT
2019-10-09T18:33:32
2019-10-09T18:33:32
null
UTF-8
Python
false
false
1,319
py
""" Demonstration of a Bluefruit BLE Central. Connects to the first BLE UART peripheral it finds. Sends Bluefruit ColorPackets, read from three potentiometers, to the peripheral. """ import time import board from analogio import AnalogIn #from adafruit_bluefruit_connect.packet import Packet # Only the packet classes...
[ "halbert@halwitz.org" ]
halbert@halwitz.org
3652ed9c9aa0576a74edaf5107cd392b4e4156b3
85c873074683ce54ab6056c42ca745f672867d72
/quora/lstm_lvm/model.py
415184aa3fd978ae5dcc8e9172689184ed6ff217
[]
no_license
jihunchoi/cross-sentence-lvm-public
46dbbec5c5cba3db38d42437f7f30dd4e4659fab
c48f890dc994fb538b47bea864c5bc3d182b622e
refs/heads/master
2022-11-25T08:19:14.639728
2020-07-28T05:25:51
2020-07-28T05:25:51
283,109,097
1
0
null
null
null
null
UTF-8
Python
false
false
13,256
py
from typing import Any, Dict, Optional, Union, List import torch from torch import nn from torch.distributions import Categorical from torch.nn import functional from allennlp.common.params import Params from allennlp.data.vocabulary import Vocabulary from allennlp.models.model import Model from allennlp.modules.feed...
[ "jhchoi@europa.snu.ac.kr" ]
jhchoi@europa.snu.ac.kr
26abf2b58ee4ed7a69f2c069c5026e46fd6d5427
419873dd3b7412f704b1a7907b64a60b44cedf39
/python/树/103. 二叉树的锯齿形层次遍历.py
b3b9739640c5bbaeecf8e7c3f913e970275761a9
[]
no_license
Weless/leetcode
0585c5bfa260713f44dabc51fa58ebf8a10e7814
0566622daa5849f7deb0cfdc6de2282fb3127f4c
refs/heads/master
2021-11-13T07:59:20.299920
2021-10-25T02:09:53
2021-10-25T02:09:53
203,720,668
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None from typing import List class Solution: def zigzagLevelOrder(self, root: TreeNode) -> List[List[int]]: if not root: return [] from collections import deque queue = d...
[ "twzcxx1@163.com" ]
twzcxx1@163.com
0a912a7112a0beabf813cc00fba1cdb7c2e3daad
d35167f7ab29813d926bd702fa652090556befdf
/generated/test_facebookresearch_TimeSformer.py
7cf65f94103dda891ae436570da86b4a73b849eb
[]
no_license
jansel/pytorch-jit-paritybench
65e5311d43daf5065beac52a68488ce188199fa8
7e55a422588c1d1e00f35a3d3a3ff896cce59e18
refs/heads/master
2023-08-12T04:43:16.669114
2023-06-08T17:36:32
2023-06-08T17:36:32
270,464,378
35
15
null
2023-06-08T17:36:34
2020-06-07T23:42:50
Python
UTF-8
Python
false
false
111,676
py
import sys _module = sys.modules[__name__] del sys setup = _module timesformer = _module config = _module defaults = _module datasets = _module build = _module cv2_transform = _module decoder = _module kinetics = _module loader = _module multigrid_helper = _module ssv2 = _module transform = _module utils = _module vide...
[ "ybliang8@gmail.com" ]
ybliang8@gmail.com
9fde6b1cc14c9a979633c4f2df97f24dca4d78bb
84290c584128de3e872e66dc99b5b407a7a4612f
/Supervised Learning with scikit-learn/Preprocessing and pipelines/Centering and scaling.py
c21eb26fe58bf9a8d53c990a24d3b0ab871dee0b
[]
no_license
BautizarCodigo/DataAnalyticEssentials
91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789
7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57
refs/heads/main
2023-04-11T04:42:17.977491
2021-03-21T19:05:17
2021-03-21T19:05:17
349,784,608
0
1
null
null
null
null
UTF-8
Python
false
false
504
py
# Import scale from sklearn.preprocessing import scale # Scale the features: X_scaled X_scaled = scale(X) # Print the mean and standard deviation of the unscaled features print("Mean of Unscaled Features: {}".format(np.mean(X))) print("Standard Deviation of Unscaled Features: {}".format(np.std(X))) # Print the mean ...
[ "78171986+BautizarCodigo@users.noreply.github.com" ]
78171986+BautizarCodigo@users.noreply.github.com
a8ba14a006fb88ac5415201cfab9678983738d9d
b47f2e3f3298388b1bcab3213bef42682985135e
/experiments/fdtd-2d/tmp_files/2238.py
6dfcdd1cd9629a3c959c2e3b61310de6617d05bf
[ "BSD-2-Clause" ]
permissive
LoopTilingBenchmark/benchmark
29cc9f845d323431e3d40e878cbfc6d1aad1f260
52a3d2e70216552a498fd91de02a2fa9cb62122c
refs/heads/master
2020-09-25T09:45:31.299046
2019-12-04T23:25:06
2019-12-04T23:25:06
225,975,074
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/2238.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
[ "nashenruoyang@163.com" ]
nashenruoyang@163.com
bd6651931aed58d7bfd2c1949c7dea3b99edfd6c
b685036280331fa50fcd87f269521342ec1b437b
/src/data_mining_demo/py_shuJuWaJue_ruMen_yu_ShiJian/chapter3/demo2.py
7e2ee679470b22f9af507b2f12f77a6431309659
[]
no_license
chenqing666/myML_DM_Test
f875cb5b2a92e81bc3de2a0070c0185b7eacac89
5ac38f7872d94ca7cedd4f5057bb93732b5edbad
refs/heads/master
2022-02-26T01:52:06.293025
2019-09-20T06:35:25
2019-09-20T06:35:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
import pickle import numpy as np import pandas as pd datafile = "./cleanedData.dai" with open(datafile, 'rb') as file: dataset = pickle.load(file) print(dataset.head())
[ "daijitao@ctsi.com.cn" ]
daijitao@ctsi.com.cn
71b2e819f9b87e7fec810e93dc2fb3d1006ac89d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_combos.py
cac18802b80f0f4ecc83aabd2e7d23ba1ed8481a
[ "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
231
py
from xai.brain.wordbase.nouns._combo import _COMBO #calss header class _COMBOS(_COMBO, ): def __init__(self,): _COMBO.__init__(self) self.name = "COMBOS" self.specie = 'nouns' self.basic = "combo" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
82812f0cb1ad89fee4e2c4ad453429f5b4e8cc8f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/619.py
85060cf54efea0ef148ad0160403ca71cbb9b978
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
# -*- coding: utf-8 -*- import sys def is_palindrome(num): s1 = str(num) s2 = s1[::-1] return s1 == s2 fair_numbers = [] for i in range(pow(10, 7)+1): if is_palindrome(i): num = i*i if is_palindrome(num): fair_numbers.append(num) N = int(sys.stdin.readline()) for T in ran...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c0056aa85383d670add5f74e627672b310c662ce
a867b1c9da10a93136550c767c45e0d8c98f5675
/G_LC_1055_ShortestWaytoFormString.py
057fd0b488c0696e709603ccc3d5993c1b5d2c98
[]
no_license
Omkar02/FAANG
f747aacc938bf747129b8ff35b6648fb265d95b6
ee9b245aa83ea58aa67954ab96442561dbe68d06
refs/heads/master
2023-03-25T19:45:08.153403
2021-03-28T07:13:08
2021-03-28T07:13:08
280,783,785
1
0
null
null
null
null
UTF-8
Python
false
false
835
py
# import __main__ as main # from Helper.TimerLogger import CodeTimeLogging # fileName = main.__file__ # fileName = fileName.split('\\')[-1] # CodeTimeLogging(Flag='F', filename=fileName, Tag='String', Difficult='Medium') def shotestWaytoFormString(scr, target): numMinString = 0 remaning = target while le...
[ "omkarjoshi4031@live.com" ]
omkarjoshi4031@live.com
3ef7e25a59a3ca2672554115318f33e31822fd25
e5dc27e634aba70bcd1b3acea74fed84ddccf837
/plugins/modules/template_project.py
432a757ecb62ba97acf49d326d6c97cb68fe269b
[]
no_license
jejrichardson/dnacenter-ansible
264d1b52227d4bf78ad175494763cff9e7881f34
f10078ef8323bda4b542e71bcecf4f80a7fe0609
refs/heads/master
2023-01-28T09:54:57.449459
2020-12-09T23:15:49
2020-12-09T23:15:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,792
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2020, Rafael Campos <rcampos@altus.cr> # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = { "metadata_version": "0.0.1", "status": ["preview"], "supported_by": "community", } DOCUMENTAT...
[ "rcampos@altus.cr" ]
rcampos@altus.cr
ce4cb92d76d50fbd63accaff41bd8af8bbd952e1
0f9b6a33a5e2ce627db75d1bcc34bc3f3674335b
/sctf/2018/catchthebug/exploit.py
10ff19c7084f606481adcd2e34de7136bf30a20a
[]
no_license
hnoson/writeups
359a33b03286bab19359ad9b089e6f3bfe4fb708
05550e3c462108f6c5ba0b69f65694e2eb1dc9b3
refs/heads/master
2021-10-07T18:21:26.041101
2021-10-03T10:22:31
2021-10-03T10:22:31
119,823,623
7
0
null
null
null
null
UTF-8
Python
false
false
1,927
py
#!/usr/bin/env python from pwn import * def catch(name): while True: s.sendlineafter('>> ', '1') s.recvline() if s.recvline(False) == 'There is no bug =(': continue s.sendafter('>> ', name) break def inspect(num): s.sendlineafter('>> ', '2') ret = [] ...
[ "hiroki015@gmail.com" ]
hiroki015@gmail.com
85614f4b027e1a236f12c98d6e2f0dbb9b39b778
2425ad0e81a695eb126b31f2ccf82dfd478851c3
/tests/test_ets.py
d8636cb441a212b3bfaa502b4e83c50a972f032f
[ "MIT" ]
permissive
jhavl/ropy
62ab28297ae7e4ee6076009777d28aff98fdb2a2
38b12369530253a16c22ef1f5be0bcb75053ffd8
refs/heads/master
2021-01-07T20:39:00.899851
2020-11-29T10:35:24
2020-11-29T10:35:24
241,814,788
17
3
MIT
2020-04-29T05:36:43
2020-02-20T06:55:34
Python
UTF-8
Python
false
false
22,573
py
#!/usr/bin/env python3 """ Created on Fri May 1 14:04:04 2020 @author: Jesse Haviland """ import numpy.testing as nt import numpy as np import ropy as rp import unittest import spatialmath as sm class TestETS(unittest.TestCase): def test_panda(self): panda = rp.Panda() qz = np.array([0, 0, 0, 0,...
[ "jhavl@users.noreply.github.com" ]
jhavl@users.noreply.github.com
88bd31ecc6bd237466ec96a185b1d943f4ead144
2d060eb9c7126b8963adcad857daa6e39c6ac75f
/Resist.py
12e4f998383248c49443c1a4b9fc74c578754390
[]
no_license
easy-rpg/Filler
43ce36980156f4ffd9597d822e9fa6c19105d892
55cddbbb21ac508f64b98ceedbc30c680d4c4951
refs/heads/master
2020-03-15T01:38:51.069870
2016-09-03T07:12:55
2016-09-03T07:12:55
131,898,370
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
import abc class Resist_Boa(object): """docstring for """ __metaclass__ = abc.ABCMeta valores = [2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12] @abc.abstractmethod def __str__(self): raise NotImplementedError('users must define __str__ to use this base class') class Resist_Ruim(object): """...
[ "rodrigondec@gmail.com" ]
rodrigondec@gmail.com
1c29302c75eba77721ac08ae1689249996414741
5864e86954a221d52d4fa83a607c71bacf201c5a
/eve/client/script/ui/station/fitting/stanceSlot.py
4f84e19f8e8023622408b00954931ab6ab6a422f
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\station\fitting\stanceSlot.py from carbonui.primitives.container import Container from eve.client.script.ui.inflight import shipstance import carbonui.const as uiconst class StanceSlots(Container): def __init_...
[ "le02005@163.com" ]
le02005@163.com
09da3887cf75a54b9d1965126cebae0ddf5f6475
6929f9696a8f90b3778d449a199cee8891f3f739
/python_core/deligating_to_parent_class_and_slots.py
c23b6fab9843575d3946b69e50da5f32471b0dc8
[]
no_license
chemplife/Python
881d492a4271fb2b423f2dd611eaac53a0efdc34
7fdfbf442a915e4f41506503baad4345a52d1e86
refs/heads/master
2022-12-31T20:00:22.475985
2020-10-19T20:14:43
2020-10-19T20:14:43
305,503,403
0
0
null
null
null
null
UTF-8
Python
false
false
6,720
py
''' super().method()/attribute -> To deligate things back to the parent class. -> Use this only when you have the same named function in the child as well.. Because Python anyways will look uo the heirarchy if it does not find the method in Child-class. Eg: class A: def b(): class B(A): def c(): ...
[ "ratul.aggarwal@outlook.com" ]
ratul.aggarwal@outlook.com
d022d56454d570a5b887704c79d4d2843271f345
576cc83449e10fd3f98281970c46016ea7a5aea2
/OpenCV拟合与特征点识别/模板匹配角度.py
78abfbc17a54a507b14bd408976b16d378badf18
[]
no_license
HotView/PycharmProjects
215ab9edd341e3293daebcf86d97537f8cd28d75
61393fe5ba781a8c1216a5cbe7e0d06149a10190
refs/heads/master
2020-06-02T07:41:53.608742
2019-11-13T08:31:57
2019-11-13T08:31:57
191,085,178
3
2
null
null
null
null
UTF-8
Python
false
false
171
py
import math a = math.atan(2/3) c = math.atan(1) print(c*180/math.pi) print(a*180/math.pi) #theta1 =math.tanh((a)) #print(theta1) b = math.atan(6/2) print(b*180/math.pi)
[ "864773190@qq.com" ]
864773190@qq.com
cce1e5cc0fba01f33051132e3981e03cec379801
a070182e6443995031340802e74d1e65a85bdca3
/bluelog/utils.py
4975d944d9c5eebe4486d47ab3fea78ee7fa681c
[]
no_license
huazhicai/bluelog
f86a042a5f3ada46515920c45a0b1452a40d4ad9
c2a46ac25cbba4ecf7d4e0985ef9010ddae34c01
refs/heads/master
2020-04-04T16:33:27.910658
2019-01-03T09:59:52
2019-01-03T09:59:52
156,082,797
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
try: from urlparse import urlparse, urljoin except ImportError: from urllib.parse import urlparse, urljoin from flask import request, redirect, url_for def is_safe_url(target): ref_url = urlparse(request.host_url) test_url = urlparse(urljoin(request.host_url, target)) return test_url.s...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
d69a39808d6f68572bc01c15f5e876462397f0eb
4dac40a30e7bbb86ab829fed0cb6f12ff7fa0216
/djwiki/wiki/models.py
0e7d732c83f68d3e3e9fb72063d8346168ff24ae
[]
no_license
gzpgg3x/pythonDiary
cc039b716c810f99d5a12b0f4167a711cd6ea18f
0c3af53dc635d5ff40adad89dce146d6684e162e
refs/heads/master
2021-01-10T19:55:41.130511
2013-04-21T04:37:10
2013-04-21T04:37:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
from django.db import models class Page(models.Model): name = models.CharField(max_length=40, unique=True) content = models.TextField() def __unicode__(self): return self.name
[ "gzpgg3x@yahoo.com" ]
gzpgg3x@yahoo.com
26952bdc611861509bd368811c1b243e394f7d45
a32049cdf8cb3403e8e54ddd661f8bb506cca99b
/first_project/first_app/urls.py
f627fd5ffdf7c929f3138c22f3c628b8dc0cf27b
[]
no_license
akhileshvvn/django-deployment-example
5a3beb8205f2905c99808e983baaf0f8a7a23772
45317bb6166527054541e52c8a986f44342ea958
refs/heads/master
2022-04-15T08:17:02.615307
2020-04-11T07:54:19
2020-04-11T07:54:19
254,815,719
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from django.urls import path,re_path from django.conf.urls import url from . import views #TEMPLATE TAGGING app_name = 'first_app' urlpatterns = [ re_path(r'^index/', views.index, name=''), re_path(r'formindex/',views.form_name_view,name='form_name'), re_path(r'^relative/$',views.relative,name = 'relative...
[ "john@sample.com" ]
john@sample.com
7e5fc8246ba12f67b9efe8fe1433a80bbd6460fe
d4fe66ef7b5bc1745aeb4054b30575fb25a053f4
/setup.py
d838e226a7de7b9cd782061fb6f64b3134bc06cc
[ "Apache-2.0" ]
permissive
jay-johnson/antinex-client
796c753bc9df8498f25dca994920b26d8828a940
76a3cfbe8a8d174d87aba37de3d8acaf8c4864ba
refs/heads/master
2021-04-15T15:55:39.670061
2020-09-04T19:49:15
2020-09-04T19:49:15
126,577,469
6
0
null
null
null
null
UTF-8
Python
false
false
3,053
py
import os import sys import warnings import unittest try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")] def in...
[ "jay.p.h.johnson@gmail.com" ]
jay.p.h.johnson@gmail.com
63f124f199d2e152e2fc67618693c424f3febbb7
d458b72b4d0e5c51446bb8b9f8a6276015dfb594
/math/0x02-calculus/10-matisse.py
88cf330d9c797d23e8f981fda83e54f60879e7f5
[]
no_license
mecomontes/Machine-Learning-projects
d6588cfaa7d020d3fae0fb74f6550c9e84500578
50e1828b58bb58eecfd3a142501b37fe701f4e49
refs/heads/main
2023-07-14T12:30:19.792332
2021-08-29T15:33:16
2021-08-29T15:33:16
376,129,791
1
0
null
null
null
null
UTF-8
Python
false
false
808
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 8 9:34:16 2020 @author: Robinson Montes """ def poly_derivative(poly): """ Function that find the derivate of a polynomial Arguments: - poly(list of integers): polynomial to calculate the derivate Return: List of coeffi...
[ "1574@holbertonschool.com" ]
1574@holbertonschool.com
b49d41c660d323470c0b91f8b0625757281eccd0
1be96ee96f3b33469ca073c4f32884cb7230106b
/python3_cron_scripts/libs3/ZoneManager.py
0531dbedb4a08f885bbf76e4b6fa355e672c65fc
[ "Apache-2.0" ]
permissive
vishnurajkv/Marinus
3305478038fba8b0ea15dafa2219df9f4df21e9b
331ba1dc2e99ae99df6c9d93063a852eec41d578
refs/heads/master
2020-06-29T10:58:50.196807
2019-07-26T20:48:47
2019-07-26T20:48:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,583
py
#!/usr/bin/python3 # Copyright 2018 Adobe. All rights reserved. # This file is licensed to you 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 requir...
[ "puhley@adobe.com" ]
puhley@adobe.com
33302759c219b9a3b1fe2347ecb502a4dace1d4d
fc0150b1fd6ba0efd6746a34ffa8cba01640d10e
/Programming Basics with Python - април 2018/04. Complex-Conditions/02. Small Shop.py
f98d0d795257e24d58dfce9db983b1cd9ca6dbeb
[]
no_license
vgrozev/SofUni_Python_hmwrks
7554d90f93b83d58e386c92dac355573c8cda848
b10a941a0195ea069e698b319f293f5b4a660547
refs/heads/master
2021-06-08T19:40:27.009205
2019-11-24T17:19:31
2019-11-24T17:19:31
95,629,443
3
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
product = input().lower() town = input().lower() quantity = float(input()) total = 0.0 if town == 'sofia': if product == 'coffee': total = quantity * 0.50 elif product == 'peanuts': total = quantity * 1.60 elif product == 'beer': total = quantity * 1.20 elif product == 'water': ...
[ "vgrozev@gmail.com" ]
vgrozev@gmail.com
2d6e5705b0d6fc9452a7eef4f715005355db0acf
0067290f8a2c5c367eee2e76f7ec743719d5b59c
/one/two/migrations/0002_auto_20170802_1924.py
02ba77ac66799d0a3867254c03ad5115c12deb5d
[]
no_license
8880/Django
d81da8f410845676606eb148a609f56792a14b1b
469fe07475c2f7c6e2d1ba1e2119b59550f154e6
refs/heads/master
2021-01-16T17:54:58.393384
2017-08-19T02:55:11
2017-08-19T02:55:11
100,019,134
1
0
null
null
null
null
UTF-8
Python
false
false
2,264
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-02 11:24 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('two', '0001_initial'), ...
[ "klous530.outlook.com" ]
klous530.outlook.com
a4e3c2a78a101ae2c35ecf31315de44d777b253f
89cd8b77ad5171c336cc60b2133fe6468a6cb53f
/Module01_CZ/day7_data_struct_str/04-代码/day7/125_字符串高级操作(判断型).py
8f356536eabd5e44cafbc8624e413494095895a0
[ "MIT" ]
permissive
fenglihanxiao/Python
75178f6b6b0c53345e1ed54226ea645216572d6c
872baf3a3a5ee42740161152605ca2b1ddf4cd30
refs/heads/master
2021-05-23T18:49:20.656433
2020-04-29T01:06:21
2020-04-29T01:06:21
253,199,073
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
""" 演示字符串判断型操作 """ # str1 = "\n" # print(str1.islower()) # print(str1.isupper()) name = "张三丰" print(name.startswith("张三")) filename="1.jpge" if filename.endswith(".jpg") or filename.endswith(".png") : print("该文件是一个图片")
[ "fenglihanxiao@qq.com" ]
fenglihanxiao@qq.com
a268ef38a2861b114ef4f65c5e31730ade40cc92
7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4
/django/django-intro/home/workspace/PROJECT8/movies/forms.py
96b211b33850d9d51473be7e05a26ff57cb8c511
[]
no_license
seunghoon2334/TIL
c84f9f9e68c8ccc7a1625222fe61f40739774730
51cfbad2d9b80a37b359716fca561c2a5c5b48b3
refs/heads/master
2022-12-18T18:20:19.210587
2019-11-26T03:14:23
2019-11-26T03:14:23
162,101,369
0
0
null
2022-11-22T03:59:16
2018-12-17T08:51:53
C
UTF-8
Python
false
false
491
py
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from .models import Movie # modelform class MovieForm(forms.ModelForm): class Meta: model = Movie fields = '__all__' def __init__(self, *args, **kwargs): super()._...
[ "gogo12394@naver.com" ]
gogo12394@naver.com
5837d24747eb111593c4fdc4fdb16c2048efb91e
d3e6d6555b0314936902727af36de2f1b7432bf8
/linked-list-cycle/linked-list-cycle.py
af4d1032682c25c061b7019097dc1288fceab653
[]
no_license
fly2rain/LeetCode
624b1e06e1aa3174dfb5c81834b58cc8fd7ad073
4ddb5a051c6e2051f016a675fd2f5d566c800c2a
refs/heads/master
2021-01-18T03:12:22.402044
2015-12-28T04:31:19
2015-12-28T04:31:19
85,842,050
0
1
null
2017-03-22T15:05:20
2017-03-22T15:05:19
null
UTF-8
Python
false
false
771
py
from utils import ListNode class Solution(object): def hasCycle(self, head): """ :type head: ListNode :rtype: bool """ if not head: return False prev, current = head, head.next head.next = None while current: if current == hea...
[ "xuzheng1111@gmail.com" ]
xuzheng1111@gmail.com
d313ac27c05892907d934359fa7a177b2f5f2fff
633944f913050debf0764c2a29cf3e88f912670e
/v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/site-packages/pip/_internal/vcs/__init__.py
4b25ec2e4255710878140a71bd637c31b9cea887
[ "BSD-3-Clause", "bzip2-1.0.6", "SunPro", "Apache-2.0" ]
permissive
bopopescu/V8-lgtm
0474c2ff39baf754f556ef57619ceae93e7320fd
da307e2f7abfca5fa0e860a809de6cd07fd1b72b
refs/heads/master
2022-02-16T19:10:54.008520
2019-09-25T07:51:13
2019-09-25T07:51:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
../../../../../../../.cipd/pkgs/2/_current/lib/python3.8/site-packages/pip/_internal/vcs/__init__.py
[ "jundong.xjd@antfin.com" ]
jundong.xjd@antfin.com
31a9922a9cadf18a73fa0c106cd377bfb6696751
08a68e32dc80f99a37a30ddbbf943337546cc3d5
/.history/count/urls_20200419191412.py
5d8ed271bfc7e1cb0268e075f7a2e8934d978eed
[]
no_license
Space20001/word-count-project
dff1b4b44d2f7230070eef0d95dd968b655d92f7
795b5e8ad5c59109e96bf7a8e9192efaefa7770e
refs/heads/master
2022-04-20T17:54:05.511449
2020-04-20T15:25:46
2020-04-20T15:25:46
257,327,368
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
from django.urls import path from . import views urlpatterns = [ path('', views.home), path('', views.about), ]
[ "steve.h@blueyonder.com" ]
steve.h@blueyonder.com
d3ef5ccaa99988559bd5fde97a0082c970a270a1
1548ce77537dcd50ab04b0eaee050b5d30553e23
/autotabular/algorithms/ctr/xdfm.py
003e7cba0a5433e271cb0403bed753da731ebcad
[ "Apache-2.0" ]
permissive
Shamoo100/AutoTabular
4a20e349104246bf825ebceae33dca0a79928f2e
7d71bf01d2b7d84fcf5f65c9f45c5cea1255d8a2
refs/heads/main
2023-08-13T21:34:34.329888
2021-10-02T07:06:00
2021-10-02T07:06:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
import torch from autotabular.algorithms.ctr.layer import CompressedInteractionNetwork, FeaturesEmbedding, FeaturesLinear, MultiLayerPerceptron class ExtremeDeepFactorizationMachineModel(torch.nn.Module): """A pytorch implementation of xDeepFM. Reference: J Lian, et al. xDeepFM: Combining Explicit an...
[ "jianzhnie@126.com" ]
jianzhnie@126.com
ba4a59497f41ffefe8c698f0a65012b2d35d88e6
b5aeb0f8b8efc77d77842237a80cce90e529ac5f
/config/settings.py
04b0faaaab467f76b64edc86c9631e42ab3f4de5
[]
no_license
Pillin/POC-Django-Cooker
b078502d403a90cc57c4691265235ce855c8d75e
e6ad88564d3045af4a418234a927970f928e3c58
refs/heads/master
2022-12-12T15:02:41.410674
2019-09-30T03:41:28
2019-09-30T03:41:28
210,078,139
1
0
null
2022-12-08T05:22:06
2019-09-22T02:13:33
Python
UTF-8
Python
false
false
4,361
py
""" Django settings for nora project. Generated by 'django-admin startproject' using Django 2.2.1. 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/ """ import os impor...
[ "ignacia.pp@gmail.com" ]
ignacia.pp@gmail.com
e569fc7fc6e893e1d228b1d7e4971dcb65008fb8
45cc3880f3444276cebb0a7f91d3b146cd27b9d0
/beeprint/printer.py
63fe4de1510c7695ba066e8687e34780d93a7b3e
[]
no_license
aijikl/beeprint
056aa84ff73da93c50143c83bed0fdf54bd37ee5
0380a942c0ad56ab219a51c728b4244a9b49f405
refs/heads/master
2021-01-20T04:25:26.858124
2017-04-04T06:50:36
2017-04-04T06:50:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,603
py
# -*- coding:utf-8 -*- from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals from __future__ import division import sys import traceback import types import inspect from io import StringIO from .utils import pyv if pyv == 2: # avoid throw [UnicodeEnc...
[ "568397440@qq.com" ]
568397440@qq.com
fcaf8123dd2fd421f5fc4ee011401898730fd1c1
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r10p1/Gen/DecFiles/options/11114095.py
04981cbb389888968150d038dc6a792df1581176
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,637
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/11114095.py generated: Wed, 25 Jan 2017 15:25:18 # # Event Type: 11114095 # # ASCII decay Descriptor: [B0 -> K+ pi- (Higgs0 -> mu+ mu-)]cc # from Configurables import Generation Generation().EventType = 11114095 Generation().SampleGenerationTool = "Sig...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
56fcd9d7569cd87ba0cc217a1be8e88301bac6f5
361ac3fcf36d80c792b60b7e2284cb1dc8d77944
/osa03-16_sanojen_ensimmaiset_kirjaimet/test/test_sanojen_ensimmaiset_kirjaimet.py
bd5cdde1c62e7f1ca35d82db216518e44c552e43
[]
no_license
darkismus/mooc-ohjelmointi-21
48cc20391db4240104549d4f3834a67c77976f6d
5f72dd9cff78704a2a0f5bc1cc18c7740ce50c51
refs/heads/main
2023-08-01T03:35:13.244978
2021-09-14T10:49:37
2021-09-14T10:49:37
368,469,947
0
0
null
null
null
null
UTF-8
Python
false
false
3,507
py
import unittest from unittest.mock import patch from tmc import points from tmc.utils import load_module, reload_module, get_stdout from functools import reduce exercise = 'src.sanojen_ensimmaiset_kirjaimet' def outputs_equal(str1 : str, str2 : str) -> bool: return str1.lower() == str2.lower() def get_correct(s...
[ "tuomas.puikkonen@iki.fi" ]
tuomas.puikkonen@iki.fi
0519b9a6c3d736fd51361e9def7cf66c291409c5
915ac708aeac53125f29bef90c2c047eaed4940e
/Anaconda/Scripts/rst2xetex.py
2d9179a588e56dbef11208ccd0ed3621286f9cc3
[]
no_license
bopopescu/newGitTest
c8c480ddd585ef416a5ccb63cbc43e3019f92534
5a19f7d01d417a34170a8f760a76e6a8bb7c9274
refs/heads/master
2021-05-31T17:00:26.656450
2016-06-08T06:43:52
2016-06-08T06:43:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
#!C:\aroot\stage\python.exe # $Id: rst2xetex.py 7038 2011-05-19 09:12:02Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing XeLaTeX source code. """ try: import locale locale.setlocale(locale.LC_ALL, '')...
[ "arvindchari88@gmail.com" ]
arvindchari88@gmail.com
48f6fab3b18bb1659f37d45e12c7ea01398ed32a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_bunts.py
41d450a12d291732d8830616446e29d1957fe2d2
[ "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
214
py
#calss header class _BUNTS(): def __init__(self,): self.name = "BUNTS" self.definitions = bunt self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['bunt']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e662722fad68cff102487d6ba08454d41807ad11
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/dev/cv/detection/YOLOX_Dynamic_ID4069_for_PyTorch/yolox/layers/fast_coco_eval_api.py
55bfa28a1c06813d48ff90862908a7655239001e
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
6,464
py
# Copyright 2020 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 t...
[ "hanjun20@huawei.com" ]
hanjun20@huawei.com
fe484f2dbfa7363e12c93e00a34759692e113a73
f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41
/test/test_term_session_item.py
7867f29a7aa4a6fd2bb993565b40f161db7abf86
[]
no_license
CalPolyResDev/StarRezAPI
012fb8351159f96a81352d6c7bfa36cd2d7df13c
b184e1863c37ff4fcf7a05509ad8ea8ba825b367
refs/heads/master
2021-01-25T10:29:37.966602
2018-03-15T01:01:35
2018-03-15T01:01:35
123,355,501
2
1
null
null
null
null
UTF-8
Python
false
false
1,044
py
# coding: utf-8 """ StarRez API This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501 OpenAPI spec version: 1.0.0 Contact: resdev@calpoly.edu Generated by: https...
[ "fedorareis@gmail.com" ]
fedorareis@gmail.com
2f9bdc29452a2db1226f3a1ca5aab9fbdac5e5d6
6d0364f7aca2ea76444299d84d467a55b8dfabde
/tests/toranj/test-100-mcu-power-state.py
4cba5896a9f0a28e51ca54be48ff0350a5037d02
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause" ]
permissive
particle-iot/openthread
b862853867a75a591bcb3dae8f70c2ac9c35eaba
668256290d1c48319b0b96d41559efb48dcc0821
refs/heads/master
2020-03-13T13:02:45.358306
2019-07-09T11:38:23
2019-07-09T11:38:23
131,131,221
1
0
BSD-3-Clause
2019-05-19T03:42:57
2018-04-26T09:19:12
C++
UTF-8
Python
false
false
9,901
py
#!/usr/bin/env python # # Copyright (c) 2018, The OpenThread Authors. # 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 # ...
[ "jonhui@nestlabs.com" ]
jonhui@nestlabs.com
415935edef31996e2b359804e324f5f7b3d48614
ab9b75fcdd2b7352968886e5ed41ee7788216226
/src/gamesbyexample/stickyhands.py
a1af5601756ea83263f3a20e8dd2bb26220102ac
[ "MIT" ]
permissive
mgocken/PythonStdioGames
d7b48cafbc33a027548cab08ad08aea6c0c81abd
036d2f142581fb74a38400721aecce15a695e1bc
refs/heads/master
2020-09-29T18:35:34.589307
2019-12-06T00:15:46
2019-12-06T00:15:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,528
py
# Sticky Hands, by Al Sweigart al@inventwithpython.com # A jewel-stealing, movement puzzle game. __version__ = 1 # Inspired by Herding Cats https://w.itch.io/herding-cats # TODO - Enter R to reset the entire level. import copy, os, sys # Setup the constants: WALL = chr(9608) FACE = chr(9786) DIAMOND = chr(9830) CHA...
[ "asweigart@gmail.com" ]
asweigart@gmail.com
02e1b1ac9d7ca0fcf0fa59318c57df5d46403f9d
16809bf25066488f2f32f154dadef3e30c68ae68
/sine_wave.py
0ed35aeb1f8d136868fdb4c3053a10605cc1bcdf
[]
no_license
aidiary/signal_processing
0db6d1a9662ccd0fe232ccc461e9b27174c8ef88
4c1cb8ceee3a1527f38b8dbf9ffa1a737d06b577
refs/heads/master
2021-01-13T03:44:32.721301
2016-12-23T13:40:10
2016-12-23T13:40:10
77,221,395
1
2
null
null
null
null
UTF-8
Python
false
false
1,762
py
#coding: utf-8 import wave import struct import numpy as np from pylab import * def createSineWave (A, f0, fs, length): """振幅A、基本周波数f0、サンプリング周波数 fs、 長さlength秒の正弦波を作成して返す""" data = [] # [-1.0, 1.0]の小数値が入った波を作成 for n in arange(length * fs): # nはサンプルインデックス s = A * np.sin(2 * np.pi * f0 * n / ...
[ "f2forest@gmail.com" ]
f2forest@gmail.com
deb27eae24f4cd46475211751438e904854e037a
fcdfe976c9ed60b18def889692a17dc18a8dd6d7
/ros/py_ros/kdl_test2.py
120f3dc29d4eeaee751accf468dd08397df344f3
[]
no_license
akihikoy/ay_test
4907470889c9bda11cdc84e8231ef3156fda8bd7
a24dfb720960bfedb94be3b4d147e37616e7f39a
refs/heads/master
2023-09-02T19:24:47.832392
2023-08-27T06:45:20
2023-08-27T06:45:20
181,903,332
6
3
null
null
null
null
UTF-8
Python
false
false
1,517
py
#!/usr/bin/python #\file kdl_test2.py #\brief certain python script #\author Akihiko Yamaguchi, info@akihikoy.net #\version 0.1 import numpy as np from kdl_kin import TKinematics if __name__=='__main__': np.set_printoptions(precision=3) print 'Testing TKinematics (robot_description == Yaskawa Motoman is as...
[ "info@akihikoy.net" ]
info@akihikoy.net
862323cdd250fded22470d58b5b961390e8c4680
88748ec85d537e4b50ba45a255a0dcc3c154116f
/tests/unit/test_poll.py
2810d41f352a9741f36504ab9e9b2f71976b5c96
[ "MIT" ]
permissive
byrgazov/vanilla
17c53843b1b2f6b5484e4ff8e2fab54123245cc0
2896ae049d9e58ef3b4008a869ebf481951d0780
refs/heads/master
2020-07-30T12:30:04.497223
2020-07-24T10:08:03
2020-07-24T10:08:03
210,235,284
0
0
MIT
2019-09-23T00:49:06
2019-09-23T00:49:06
null
UTF-8
Python
false
false
1,731
py
import os import vanilla.poll class TestPoll(object): def test_poll(self): poll = vanilla.poll.Poll() r, w = os.pipe() poll.register(r, vanilla.poll.POLLIN) assert poll.poll(timeout=0) == [] os.write(w, '1') assert poll.poll() == [(r, vanilla.poll.POLLIN)] ...
[ "andy@thecablelounge.com" ]
andy@thecablelounge.com
c008d92d5264518d006a4ff9b43acef4f19e4c38
30b004cad2c14b47b5f66c3a4a0015e05ca4a27e
/contrib/data_safety_training/image_classification/submitter.py
920b60ad8fed2d7ff0b13d17001d8227f3b0abb8
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleFL
66c26f774eeadc25c12e74056ac389e0c1f61b84
dcc00c5dff62c3dd0092801f4e9b89d8c0957d3d
refs/heads/master
2023-08-07T22:05:24.806573
2023-03-21T01:15:10
2023-03-21T01:15:10
210,873,203
486
136
Apache-2.0
2023-07-26T22:30:57
2019-09-25T15:01:39
Python
UTF-8
Python
false
false
1,090
py
# Copyright (c) 2020 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...
[ "jingqinghe@baidu.com" ]
jingqinghe@baidu.com
a31688d8579cfce253b6dac4f680333340f6b0e4
0bde5f7f09aa537ed1f4828d4e5ebee66475918f
/h2o-py/tests/testdir_sklearn/pyunit_sklearn_params.py
2a70a91baafd68393e95b43969166ffea1f8a2ea
[ "Apache-2.0" ]
permissive
Winfredemalx54/h2o-3
d69f1c07e1f5d2540cb0ce5e6073415fa0780d32
dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7
refs/heads/master
2022-12-14T08:59:04.109986
2020-09-23T08:36:59
2020-09-23T08:36:59
297,947,978
2
0
Apache-2.0
2020-09-23T11:28:54
2020-09-23T11:28:54
null
UTF-8
Python
false
false
7,702
py
from __future__ import print_function import os, sys from sklearn.pipeline import Pipeline from h2o.sklearn import H2OAutoMLEstimator, H2OGradientBoostingEstimator, H2OScaler, H2OPCA sys.path.insert(1, os.path.join("..","..")) from tests import pyunit_utils seed = 2019 def test_all_params_are_visible_in_get_para...
[ "noreply@github.com" ]
Winfredemalx54.noreply@github.com
e9d1caab6dde00c07ce3832efe253d9348ac4a88
940dcf18bb1db19610e29902c78ec703690c4297
/pygame/py002.py
17a13a71d3e9bdeacc203460516516e052a3e799
[]
no_license
Sahil4UI/PythonRegular11-12Dec2020
dc20e8d13d191801301d18d5b92f5775fe9c0674
0b22b1d8c703ac21a1f02c2b10f327bcb2e96460
refs/heads/main
2023-02-27T13:00:22.415199
2021-01-31T06:57:58
2021-01-31T06:57:58
318,424,644
0
0
null
null
null
null
UTF-8
Python
false
false
3,076
py
import random import pygame import time from pygame.locals import * pygame.init() H= 600 W=800 gameScreen= pygame.display.set_mode((W,H)) color= (255,255,255) red = (255 , 0 , 0 ) blue = (0,0,255) w=30 h=30 pygame.time.set_timer(USEREVENT,1000) frog=pygame.image.load("frog.png")#raw string-path frog...
[ "noreply@github.com" ]
Sahil4UI.noreply@github.com
b540a1018ada187e4e6e105e8d050f936df3061b
f416ab3adfb5c641dc84022f918df43985c19a09
/problems/advent-of-code/2022/05/sol2.py
78cf7599b31d96f7b01fd8ad778ed956290eda79
[]
no_license
NicoKNL/coding-problems
a4656e8423e8c7f54be1b9015a9502864f0b13a5
4c8c8d5da3cdf74aefcfad4e82066c4a4beb8c06
refs/heads/master
2023-07-26T02:00:35.834440
2023-07-11T22:47:13
2023-07-11T22:47:13
160,269,601
1
0
null
null
null
null
UTF-8
Python
false
false
1,530
py
import sys def splitInput(lines): stack_data = [] moves = [] parsing_stack = True for line in lines: if not line: parsing_stack = False continue if parsing_stack: stack_data.append(line) else: moves.append(line) stack_coun...
[ "klaassen.nico@gmail.com" ]
klaassen.nico@gmail.com
37be2dd7a036a0d6c20d49738fb4226536c20ac2
ff21f04b692891b13fa2ed49293e5d99fea742db
/hunt/scripts/job_spider.py
41015307bdb3af0ba459f972c27a7bd7b13714fd
[]
no_license
yangby-cryptape/job-hunter
3caf49c9290a077661c8e245565132e2a8671c05
1b58b2f23ac7d1aba08feaff29692adb8fe58161
refs/heads/master
2021-05-27T17:35:09.370516
2012-06-25T07:38:06
2012-06-25T07:38:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,263
py
#!/usr/bin/env python #coding=utf-8 import hashlib, urllib2, time, re from datetime import datetime from pyquery import PyQuery as pq from models import db, Occupational, Job, Company def get_headers(gzip=False): headers = { "User-Agent":"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.13) Gecko...
[ "thewawar@gmail.com" ]
thewawar@gmail.com
521ea38335f0c6bebf7ef64a8d68203c32de69dc
f97cabce5c91238678e159387f03636d4deb90fb
/dajare/crawler_kaishaseikatsu_jp.py
c0bb1bb7c7b5cf459ec22cf9603ddf779b6d4b93
[]
no_license
vaaaaanquish/dajare-python
1daa8b4d31a9e3d5e1336d3b31693c1d491ed814
150132cef0333a94c9e286c4241af92c630cd7bd
refs/heads/master
2022-12-10T08:46:42.827279
2020-12-11T03:28:54
2020-12-11T03:28:54
242,304,312
16
3
null
2022-12-08T03:43:06
2020-02-22T08:09:23
Jupyter Notebook
UTF-8
Python
false
false
1,010
py
from tqdm import tqdm from dajare.crawler import Crawler class CrawlerKaishaseikatsuJp(Crawler): def run(self): output_list = self._run() self.output(output_list, 'dajare_kaishaseikatsu_jp.json') def _run(self): output_list = [] for i in tqdm(range(0, 2200, 100)): ...
[ "6syun9@gmail.com" ]
6syun9@gmail.com
89a33a2d2fb2a28b98436986b935fd4cbc7f20a7
37fef592f365194c28579f95abd222cc4e1243ae
/streamlit/venv/venv/lib/python3.7/site-packages/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py
a3a8adde9676f505e52d3465cbd3ee72ce684873
[]
no_license
edimaudo/Python-projects
be61e0d3fff63fb7bd00513dbf1401e2c1822cfb
85d54badf82a0b653587a02e99daf389df62e012
refs/heads/master
2023-04-07T03:26:23.259959
2023-03-24T12:03:03
2023-03-24T12:03:03
72,611,253
4
3
null
2022-10-31T18:10:41
2016-11-02T06:37:17
null
UTF-8
Python
false
false
9,564
py
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "splom.marker.colorbar" _path_str = "splom.marker.colorbar.tickformatstop" _valid_pro...
[ "edimaudo@gmail.com" ]
edimaudo@gmail.com
879086db133bd1ab22783e38d697afc115869d4f
71c4a775c81179e920b72bdee87d9af3edfd4d99
/01_Sintaxe_Basica/10_dicionario.py
9ea3b3c107c7a83db1b023da9899d434b0a3d0f8
[]
no_license
frclasso/acate18122018
16f4169dbfb0eb8c25e253965642122e6095a211
98e4697d4e34c740a537a553b5ae6841159c58f7
refs/heads/master
2020-04-08T00:54:59.822648
2019-01-24T16:55:42
2019-01-24T16:55:42
158,873,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,267
py
#!/usr/bin/env python3 aluno = {'ID': 1223, 'Nome':'Patricia', 'Idade': 27, 'Curso': 'Sistemas de Informação', 'Turno':'Noturno' } print(f"ID: {aluno['ID']}") print(f"Nome: {aluno['Nome']}") print(f"Idade:{aluno['Idade']}") print() '''Atualizando valores existentes''' alu...
[ "frcalsso@yahoo.com.br" ]
frcalsso@yahoo.com.br
01e192a4c835a3d6ec4c29d6fb66176e51359dcb
7c27898a5f85dedf0dbbb12451b6c635861dc197
/tornado_overview/chapter03/aiomysql_test.py
8c3375ad203593d54c3a67dc4692f73aa301b121
[]
no_license
Asunqingwen/Tornado_test_application
9323d3289fadf69e7b1e7685da8f631d0e88968f
4f3a9cda9fc081a8b83f06934bc480cd597d4ad8
refs/heads/master
2023-02-18T08:43:58.012236
2021-01-21T09:59:57
2021-01-21T09:59:57
330,935,556
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
import asyncio import aiomysql from tornado import gen, ioloop async def go(): pool = await aiomysql.create_pool(host='192.168.10.69', port=3306, user='root', password='root', db='message', charset="utf8") async with pool.acquire() as...
[ "sqw123az@sina.com" ]
sqw123az@sina.com
b5346db185ed928a79136d01fd3e7a44a8ff0b6e
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/PackDist/share/python/PackDistCommon.py
0833847cfd1065059cea672b676003e232021674
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
1,754
py
"""File: PackDistCommon.py Common classes and utility functions of the PackDist package. """ __author__ = 'Grigori Rybkine <Grigori.Rybkine@cern.ch>' __version__ = '0.2.1' __date__ = 'Wed Oct 03 2012' __all__ = ['Error', 'InputError', 'CommandError', 'exitstatus'] import sys import os class Error(Exception): ...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
b0593bc623f07101fd1c4aac9dd0a4ebc0980eb2
955b968d46b4c436be55daf8aa1b8fc8fe402610
/ch04/set_window_size.py
110459bc02e4e910978194acc115ddfccc6554d7
[]
no_license
han-huang/python_selenium
1c8159fd1421b1f0e87cb0df20ae4fe82450f879
56f9f5e5687cf533c678a1c12e1ecaa4c50a7795
refs/heads/master
2020-03-09T02:24:48.882279
2018-04-07T15:06:18
2018-04-07T15:06:18
128,535,917
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from selenium import webdriver driver = webdriver.Firefox() driver.get("https://mail.google.com") # 參數字為像素點 print("設定瀏覽器寬480 高800顯示") driver.set_window_size(480, 800) # driver.quit()
[ "vagrant@LaravelDemoSite" ]
vagrant@LaravelDemoSite
87fa353d224bca02fb3655134746bec120ffc10b
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/compute/v20191201/gallery_application_version.py
09d6082a067f10eae575fb0b3681e034d10ed7c2
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
7,987
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 from ... import _utilities, _tables from...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
8e4baaae320644a77b9d51ae74ea221201759574
1825283527f5a479204708feeaf55f4ab6d1290b
/leetcode/segmented-tree/leon.py
9b86c455efa6252c088d2e4fb3ac6b44b59e8988
[]
no_license
frankieliu/problems
b82c61d3328ffcc1da2cbc95712563355f5d44b5
911c6622448a4be041834bcab25051dd0f9209b2
refs/heads/master
2023-01-06T14:41:58.044871
2019-11-24T03:47:22
2019-11-24T03:47:22
115,065,956
1
0
null
2023-01-04T07:25:52
2017-12-22T02:06:57
HTML
UTF-8
Python
false
false
6,843
py
# https://github.com/yuexihan/leonLPST/blob/master/leonLPST.py from __future__ import division from six.moves import xrange class LPSTree: """ LPSTree(n[, value=None[, reducef=None[, modulo=None]]]) -> new LPSTree Build a new LPSTree with n elements. If value is provided, all elements are set to value, otherwise 0...
[ "frankie.y.liu@gmail.com" ]
frankie.y.liu@gmail.com
43a228606e02826830759f5f40418f92e634af34
19892b65355f7661cf5e42d2f749904788c1a7d0
/dailyfresh/daily_fresh/utils/mixin.py
6174e5aba8081e3b2cf0368084ea7f0853225db5
[]
no_license
BinXiaoEr/daily_fresh
35902cb6753851a14517265db3738a008610c7d8
d8bdc10e80b6b8e2be5f85f6a8293fb1f4695e1d
refs/heads/master
2021-07-09T16:06:34.809134
2020-08-04T01:51:34
2020-08-04T01:51:34
181,276,905
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
from django.contrib.auth.decorators import login_required class LoginRequiredMixin(object): @classmethod def as_view(cls, **initkwargs): # 调用父类的as_view view = super(LoginRequiredMixin, cls).as_view(**initkwargs) return login_required(view)
[ "you@example.com" ]
you@example.com
b05acce5674d36ac8d553f00d5fe010f2061fbdf
612325535126eaddebc230d8c27af095c8e5cc2f
/depot_tools/external_bin/gsutil/gsutil_4.15/gsutil/third_party/boto/tests/unit/dynamodb/test_types.py
e3b913d7eb4a7e8789aa9a1becd8cefa58b17d6a
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
TrellixVulnTeam/proto-quic_1V94
1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673
feee14d96ee95313f236e0f0e3ff7719246c84f7
refs/heads/master
2023-04-01T14:36:53.888576
2019-10-17T02:23:04
2019-10-17T02:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,427
py
#!/usr/bin/env python # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 # wi...
[ "2100639007@qq.com" ]
2100639007@qq.com
7321ac8c981ab9abb728e9c05fe1a2576ef0d878
3c327aa333bbeafacb8d5bd253814776ffcd0012
/df_user/urls.py
bf6fcb54488289e42e7484712a3e096f56b612be
[]
no_license
1635848644/shopping
c5d0a1dd2eb5716ece76045d6c2c261ca0f4db18
d820e828eeed3911ea7741e4f11f4c6d83e993c6
refs/heads/master
2023-04-07T20:12:30.382805
2018-10-05T15:08:40
2018-10-05T15:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
#coding=utf-8 from django.conf.urls import url from df_user import views urlpatterns=[ url('register/',views.register), url('login/',views.login), url('logout/',views.logout), url('addHarvsetAddress/',views.addHarvsetAddress), url('user_center_info/',views.user_center_info), url('user_center_ord...
[ "1194681498@qq.com" ]
1194681498@qq.com
8fd82a02b96ef6922c7ccd498e793df6876f3f49
46c2418ecfcf3c7034a267364185208a665be583
/edb/tools/docs/cli.py
2c9295564c14536c42a30b9de2055cc410bdcb02
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jankeromnes/edgedb
3434549fb0731632ed7adb7fcb329480dee50d91
40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94
refs/heads/master
2022-02-24T04:56:19.238048
2019-05-10T12:24:40
2019-06-17T10:29:09
185,984,093
0
0
Apache-2.0
2022-01-28T09:00:32
2019-05-10T12:24:55
Python
UTF-8
Python
false
false
1,466
py
# # This source file is part of the EdgeDB open source project. # # Copyright 2018-present MagicStack Inc. and the EdgeDB 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...
[ "elvis@magic.io" ]
elvis@magic.io
81b968c9d9e14ff5772ae28bead91e71f66173d8
50e2012ecea8307e278d1132ca0094adb940aff2
/lib/review/my_process/my_multiprocessing.py
a299b8a3185df0bb568f1c9bc93484f95d15cfcb
[]
no_license
Lewescaiyong/my_library
6689cae2db4aaa980b4bd5ed9f21691eefbff2fe
35d0d29097823ccef74fa29ca8756a7f59ceeb78
refs/heads/master
2020-11-25T09:20:56.484275
2019-12-17T10:58:20
2019-12-17T10:58:20
228,593,219
1
0
null
null
null
null
UTF-8
Python
false
false
182
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import multiprocessing from multiprocessing.dummy import Pool pool1 = multiprocessing.Pool() pool2 = Pool() pool1.map() pool2.map()
[ "1351153527@qq.com" ]
1351153527@qq.com
1308c8f92d220ac7b01c451288da34696bcbe3f8
c52ea8af6a4d3c32a0557c39d683a4d01b2188db
/ch10_dash_cytoscape_basic/layout/dash_cyto_grid_option_curve_style.py
00701dcffe65b44108634f361e1dafb4d3efea61
[ "MIT" ]
permissive
plotly-dash-book/plotly-dash-book
dcde031766d17adf6fc670c8aec9c8d4e267eeb7
cc54f7ac6066a741f733facbd002222a87746e02
refs/heads/master
2022-06-27T02:46:25.502190
2022-06-08T03:21:23
2022-06-08T03:21:23
197,512,189
30
18
MIT
2021-05-31T04:47:36
2019-07-18T04:36:50
Jupyter Notebook
UTF-8
Python
false
false
1,531
py
import dash import dash_cytoscape as cyto import dash_html_components as html app = dash.Dash(__name__) # ノードを17個定義 nodes = [{"data": {"id": x, "label": f"{x}"}} for x in range(17)] # エッジを定義 edges = [ {"data": {"source": 0, "target": 1}}, {"data": {"source": 0, "target": 2}}, {"data": {"source": 0, "targ...
[ "komo.mdrms@gmail.com" ]
komo.mdrms@gmail.com
805e778f090eb8a26dac37e6725197e259091f56
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/KLke67efuam6ajLrt_2.py
1dc365bb23d969b5f0f0d4e85f8e8ff90a1cf504
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
""" An **out-shuffle** , also known as an _out faro shuffle_ or a _perfect shuffle_ , is a controlled method for shuffling playing cards. It is performed by splitting the deck into two equal halves and interleaving them together perfectly, with the condition that the top card of the deck remains in place. Using an ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
50845d3ddab1ec682e0f345e3c75c1ba47438990
ed872a0efb1db283f48176474e22f4c4ad31db79
/src/accounts/migrations/0019_fix_socail_auth.py
ceffd3defcff51b96d673f95e0fffd2933671048
[]
no_license
barontxu/djbookru
34c2bf90e5d3542e4cbd2f3e600e1c0a12795d35
388bff0491e961f8efdf3cabd6c47d9fa2988547
refs/heads/master
2021-01-16T20:39:33.949315
2014-06-20T12:22:56
2014-06-20T12:22:56
23,031,683
1
0
null
null
null
null
UTF-8
Python
false
false
9,111
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): depends_on = ( ('social_auth', '0002_auto__add_unique_nonce_timestamp_salt_server_url__add_unique_associati'), ) def forwards(self, orm):...
[ "alerion.um@gmail.com" ]
alerion.um@gmail.com
be18a828d415817294724c04ce3bef696dac9a91
d9af3a98a0864de7ebb0cfd1675a052779e46bf2
/transformer_split/vae_model.py
e94ea7dccaf8599afbe98b4b7e286dfb52f4a1af
[ "MIT" ]
permissive
fredericgo/rl_morph_pytorch
eafc36128e60296743a42b25d417efe17128ac93
743cd82d82c16c8d52e5265b6cc5cdf490cb8945
refs/heads/main
2023-07-11T05:51:43.914695
2021-08-09T02:54:06
2021-08-09T02:54:06
344,523,334
0
0
null
null
null
null
UTF-8
Python
false
false
9,741
py
import os import torch import torch.nn as nn from torch.nn import functional as F import torch.optim as optim import numpy as np from transformer_split.encoders import PoseEncoder from transformer_split.decoder import Decoder from transformer_split.discriminator import Discriminator def kl_divergence(mu, logvar): ...
[ "fredericstgo@gmail.com" ]
fredericstgo@gmail.com
a6be9d570514b770b12cd026d69be6ad9174e1eb
7c246e0046136c7ab200ebf5a7e8fe772bd0738b
/02_django/css01/css/urls.py
de2d2f568f2315ed7bcf65c575c4dcfdb29a1fdd
[]
no_license
name-chichi/KDT-BigData
d6d87557945b6dc5c3dd7126a718f6de147f6d7b
6bac43fdaf0b0be94996f2fab65f59916d500395
refs/heads/main
2023-06-30T07:04:54.296238
2021-07-30T03:09:54
2021-07-30T03:09:54
374,502,002
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
"""config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "namechichi123@gmail.com" ]
namechichi123@gmail.com
93adf05fb8e78616581a275936e16a2c12ad1582
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/Clutter/ZoomActionPrivate.py
30f46ad6d498ed3b8d07dbaaa947fec7334f3b73
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,403
py
# encoding: utf-8 # module gi.repository.Clutter # from /usr/lib64/girepository-1.0/Clutter-1.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes of ...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
49b7c6233cb3d031e79f2710167aae956de76e29
55a281d728541773e6eda896599c0cc48dfe5156
/Advanced/venv/Scripts/easy_install-script.py
8e473e4d78117e10d75b080582317f8367fd492a
[]
no_license
dhariskov/python-advanced
c0bebd937f3849dd62ae2834cbdf9f8100b2bb56
4725070c960d3c234ed2f20ff2156e2f89514a02
refs/heads/master
2022-12-04T22:40:18.485552
2020-08-28T08:29:25
2020-08-28T08:29:25
288,775,775
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
#!C:\Users\Acer\PycharmProjects\Advanced\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\....
[ "dhariskov@gmail.com" ]
dhariskov@gmail.com
f636068a81116528616e1f63c07c412447c94e49
c5be6a92f216957d340474b58507606a38c10f5f
/course-files/tutorials/tutorial04/answers/drawings/d5.py
e0e46a2f538962b9b15a80780794e0fa647bfa31
[]
no_license
eecs110/winter2019
0b314c35e886b8099368ed7dfd51b707ab73c0c2
f4107207ca1c9c10b78bdbb74fd82410b00ee363
refs/heads/master
2020-04-11T10:09:28.100445
2019-03-21T18:00:25
2019-03-21T18:00:25
161,705,160
3
0
null
null
null
null
UTF-8
Python
false
false
860
py
from tkinter import Canvas, Tk import random import shapes import math gui = Tk() gui.title('Circle') canvas = Canvas(gui, width=500, height=500, background='#FFFFFF') canvas.pack() ########################## YOUR CODE BELOW THIS LINE ############################## center_x = 250 center_y = 250 distance_from_center =...
[ "vanwars@gmail.com" ]
vanwars@gmail.com
83f402a7ec1b6a4bf2e2ac6f13ff695c108fcf0c
44ff565bb1838a445e0d5a89ea3ca3e4b29b3686
/Python算法详解/第12章/Reversi.py
0a81667472893c1c0099a99a2e84e5b90021e743
[]
no_license
huoweikong/python_pch_kiton
df3162aae397e82df9ef575f5f9d26039e5e036e
057cef1f34c76701840e7b8b46a5955b9f38b86b
refs/heads/master
2023-01-10T22:40:45.610986
2020-11-19T18:37:56
2020-11-19T18:37:56
313,897,428
0
0
null
null
null
null
UTF-8
Python
false
false
9,262
py
# Reversegam: a clone of Othello/Reversi import random import sys WIDTH = 8 # Board is 8 spaces wide HEIGHT = 8 # Board is 8 spaces tall def drawBoard(board): # This function prints the board that it was passed. Returns None. print(' 12345678') print(' +--------+') for y in range(HEIGHT): ...
[ "1154282938@qq.com" ]
1154282938@qq.com
0bc96e095f2069bc9811ef311b2dee119285ae92
9c88b828b783e23b50186a2cbba2c08610d8d10d
/espressodb/documentation/__init__.py
c16020e168c1d82085be018508a3cd3600a84a63
[ "BSD-3-Clause" ]
permissive
remram44/espressodb
9a51219c0e7ec6e4c400578d02b97ef95024ba1e
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
refs/heads/master
2020-12-08T06:07:43.736419
2020-01-12T20:31:20
2020-01-12T20:31:20
232,909,755
0
0
BSD-3-Clause
2020-01-09T21:29:09
2020-01-09T21:29:08
null
UTF-8
Python
false
false
170
py
"""The documentations module provides a web page which summarizes the implemented models which derive from the EspressoDB :class:`espressodb.base.models.Base` class. """
[ "christopher@ckoerber.com" ]
christopher@ckoerber.com