blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
33fe86c730a3e0c00be1c811258b61ee49952ed2
7465bb03b584bff466c0169c363af9d5231376b9
/bisection_search.py
d53c2d3efe6e2a7a2f73393a1cb8b656a6e7ec78
[]
no_license
narulapuneet/MIT.6001
ee50233f6eaaebe8a60e826b931ba8d4306f0c4c
695713d98f30f02318ff992dde2c9d10c10b530a
refs/heads/master
2021-01-21T18:38:57.080621
2014-09-29T05:10:51
2014-09-29T05:10:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
''' We can use the idea of bisection search to determine if a character is in a string, so long as the string is sorted in alphabetical order. First, test the middle character of a string against the character you're looking for (the "test character"). If they are the same, we are done - we've found the character we'r...
[ "kiemnguyen@gmail.com" ]
kiemnguyen@gmail.com
cb970200d41ae02ac8af2dcd141947007c3de70d
0a5e8bd5d1291afdb99bb5682611c9ddabacefe7
/LSCSM.py
88c70fd0922c7a58911929514aa7bef344193ab5
[]
no_license
antolikjan/topographica-contrib
f89374e95d741ca1b7fad708be575bd705be79e0
3842e33811821dca58258b00442d6928b6804f7f
refs/heads/master
2020-12-12T21:01:01.699128
2014-05-23T14:57:49
2014-05-23T14:57:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
43,494
py
from scipy.optimize import fmin_ncg, anneal, fmin_cg, fmin_bfgs, fmin_tnc, fmin_l_bfgs_b import __main__ import numpy import pylab import sys sys.path.append('/home/antolikjan/topographica/Theano/') import theano theano.config.floatX='float32' #theano.config.warn.sum_sum_bug=False from theano import tensor as T from t...
[ "antolikjan@gmail.com" ]
antolikjan@gmail.com
05c1003a76aac5b4694c9fbf82b45a11a9419682
a5044a9a60b34f0701f2848dc3e7f799366df1cd
/jianzhi/10.矩阵覆盖.py
32d735dffa27d796be13d8318ba206cbafabf8af
[]
no_license
chengsong990020186/leetcode
ec060250e5bbd44919324e25713637ccafac8832
6824e73b105287e04e7dce5514f361f8a47fa42c
refs/heads/master
2020-06-20T15:54:09.500624
2019-08-12T15:07:16
2019-08-12T15:07:16
197,168,993
2
0
null
null
null
null
UTF-8
Python
false
false
461
py
# 矩形覆盖 # Q: 我们可以用2 1的小矩形横着或者竖着去覆盖更大的矩形。请问用n个2 1的小矩形无重叠地覆盖一个2 * n的大矩形,总共有多少种方法? # A: 依然是斐波那契数列的变形。代码参考跳台阶。 class Solution: def rectCover(self,n): if n>=0 and n<=2: return n while n>2: return rectCover(n-1)+rectCover(n-2) Solution().rectCover(10)
[ "990020186@qq.com" ]
990020186@qq.com
a4a434e1abbb243fe9c141b2cd61b361631bc774
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/1-200/000012/000012.py
34382f7be371ec1d8887db2f2cda6c7f0cd89365
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
1,035
py
class Solution(object): def intToRoman(self, num): """ :type num: int :rtype: str """ res = "" nums = [1000, 500, 100, 50, 10, 5, 1] letters = ["M", "D", "C", "L", "X", "V", "I"] i = 0 flag = 0 while num > 0: if num >= num...
[ "noreply@github.com" ]
noreply@github.com
79d3e025a51a44089c34e49afee2ef2ed71f3baa
5cb57af428a6d2d70009564cdcbdb2ea9ec270cd
/sopel/modules/py.py
56b011c2d374c4184dee065270ec68aeddf4ccc6
[ "EFL-2.0" ]
permissive
HumorBaby/sopel
47ee8aace20589e3222bed998f61537071d7f647
c78d85197538ac4d74389ce1ebe48a67c9c55978
refs/heads/master
2021-08-17T08:39:07.496732
2020-05-01T08:35:45
2020-05-01T08:35:45
154,736,338
1
0
NOASSERTION
2018-10-25T20:54:32
2018-10-25T20:54:32
null
UTF-8
Python
false
false
2,074
py
# coding=utf-8 """ py.py - Sopel Python Eval Module Copyright 2008, Sean B. Palmer, inamidst.com Licensed under the Eiffel Forum License 2. https://sopel.chat """ from __future__ import unicode_literals, absolute_import, print_function, division from requests import get from sopel import module from sopel.config.typ...
[ "dgw@technobabbl.es" ]
dgw@technobabbl.es
8c9c4aa7dc6660e1d62bd83843da6e885eb997db
a2af05c5e87c05e02da3ad886867882fab012fdb
/manage.py
420f864c7a220b10b554b3aca7c34959a80c747b
[]
no_license
Azizul-arif/consula
3ebc23f6a7a35b902cc1b30ccb1582c0f9ebffd7
e632d39fe634b2aba3aba51fbc85fea0e5ed948f
refs/heads/main
2022-12-25T15:15:06.190784
2020-10-04T20:39:25
2020-10-04T20:39:25
301,222,814
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ideatree.settings') try: from django.core.management import execute_from_command_line except Imp...
[ "azizularif94@gmail.com" ]
azizularif94@gmail.com
4462ea3efeecce8d5c1d79939989e2e654243b75
484401a97fa310a048d9299d3fcb6c461d55f75c
/psico_api - Modified/paciente/migrations/0003_auto_20200324_1516.py
1b1fe9f880122f8c247b536786d2a73892c0abe4
[]
no_license
mathFaino/aplica-o
9d7e7eefda50add7444c1db8b703889487f985bf
2eb3aa6067edbb47bde37cf70013b5ee899d4764
refs/heads/master
2022-11-07T19:57:04.127873
2020-06-22T22:42:43
2020-06-22T22:42:43
274,256,605
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
# Generated by Django 3.0.3 on 2020-03-24 19:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paciente', '0002_auto_20200324_1516'), ] operations = [ migrations.AlterField( model_name='paciente', ...
[ "matheusmrqfaino@gmail.com" ]
matheusmrqfaino@gmail.com
c477c1338273b6757adf50fb02167e6cc81c5192
8015f1c62a2cb4efd21aa8938336913bf8117868
/bamap/ba3638.pngMap.py
2a662be28a2e2003287a7c148ccf7bb84271f63c
[]
no_license
GamerNoTitle/Beepers-and-OLED
675b5e3c179df0f0e27b42bf594c43860d03b9af
afe1340e5394ae96bda5f9022a8a66824368091e
refs/heads/master
2020-04-20T00:09:47.122471
2019-04-29T04:59:35
2019-04-29T04:59:35
168,515,579
4
2
null
null
null
null
UTF-8
Python
false
false
8,468
py
ba3638.pngMap = [ '11111111111111111111111111111111111111111111111110001111111111111111111111111111111111111111110100111111111111111111111111111111', '11111111111111111111111111111111111111111111111110001111111111111111111111111111111111111111110000001111111111111111111111111111', '1111111111111111111111111111111111111...
[ "bili33@87ouo.top" ]
bili33@87ouo.top
5842556f149148ca25bc7e498def77472c40e1b1
21f23ecef279a70b5cad843cc96430935c45e4ff
/env/bin/wheel
266c7aa09739d4c4f5a215fa497a165bac018029
[]
no_license
PingChihShih/WifiOrderingSystem
d388828aae49ed4ce7255a48e24de9126ce31539
0de50804607700c36cdf827f4533b248acd9084a
refs/heads/master
2020-03-19T04:55:51.707623
2018-11-13T11:16:03
2018-11-13T11:16:03
135,882,798
0
2
null
2018-06-18T00:46:04
2018-06-03T07:24:13
CSS
UTF-8
Python
false
false
255
#!/Users/Jonah/2018Spring/WifiOrderingSystem/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "b03902085@ntu.edu.tw" ]
b03902085@ntu.edu.tw
94886e22a874eb61b44527859bfc9d892f2a3a63
590ca008f00869276f29ac6d3e1da6d82778584b
/api/migrations/0002_auto_20200912_1756.py
67e55400c5f0ab5a54f1f574bc1b2662f7dd7417
[]
no_license
sali73/Donuts_App
92b1226cf97968481c7be15588204c3aee6151e3
75911b8523cbe0792c7550466f1cedeba7ae01a6
refs/heads/master
2023-01-13T07:43:25.681619
2020-11-26T01:51:39
2020-11-26T01:51:39
293,178,428
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
# Generated by Django 3.0.7 on 2020-09-12 17:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( model_name='product', name='qty', field=mod...
[ "sally.elgendy@hotmail.com" ]
sally.elgendy@hotmail.com
e05f017bf8b3f62820b45ff9151749491fee423e
10d08b2531672de54d924fec6654a978cb082055
/fos/actor/polygonlines.py
31b4955bed4b6a56f181ca6606143957e9376dcc
[ "BSD-3-Clause" ]
permissive
arokem/Fos
05afa04f05ba3b0585e38dfa79ec7ae4332ec8f9
5066bbd74954ba7e60eeb06451f3a25ef1b291e2
refs/heads/master
2021-01-18T15:59:59.905221
2011-08-15T14:16:50
2011-08-15T14:16:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,855
py
import scipy.spatial as sp import numpy as np from fos.lib.pyglet.gl import * from fos import Actor from fos.core.intersection import ray_aabb_intersection class PolygonLines(Actor): def __init__(self, vertices, connectivity, colors = None, affi...
[ "git@unidesign.ch" ]
git@unidesign.ch
f8263fce1022401c35d34194ee83daa1c1b44e88
37da78d6aacc68560a0bee5e096f6d6e19dfb95c
/Data/Program/Format tables/format_tables.py
24de40bd3abf2f75e3727b2b3ab9bf2156496587
[ "BSD-3-Clause" ]
permissive
skeie/Master-Thesis
d012aa32b977f0caa9cfb2b2517f25df77ee162f
01a9c9d91825467d3114cc54757000e708fdd607
refs/heads/master
2021-03-24T12:52:53.021067
2014-04-21T06:22:41
2014-04-21T06:22:41
12,782,159
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
import sys list = [] def splitVariable (var): if "*" in var: tempz = var.split("*") return float(tempz[0].strip()) else: return float(var) def stars(tempz): tempz = tempz.split("*") if len(tempz) == 2: return "*" elif len(tempz) == 3: return "**" else: return "" output = "" with open(sys.argv[1...
[ "trulsske@iterate.no" ]
trulsske@iterate.no
59029991ec309dee2596e61a9df8c5a7e0c966db
ad089f5039ad473b10cf44fa5170de6a9e67756d
/start.py
29fb7ccfe55938d4c25d7303dffa35792a0b317f
[]
no_license
PythonStriker/Douban
087818eac1c5bbb876609ff9731b856945f47bb6
181da2cb692c42285cb52666c30fbf0fccbe8af3
refs/heads/master
2022-07-03T08:25:20.402991
2020-05-14T14:54:31
2020-05-14T14:54:31
263,943,784
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
from scrapy import cmdline cmdline.execute("scrapy crawl douban_book".split())
[ "593601399@qq.com" ]
593601399@qq.com
7e77b6dd2286b4dc252221c40b6c29436ce6a3de
4af3afd2471ec89c3bbe14adba8f87fe400f5598
/numpy/numpy_demo.py
4aa8e8b196a3bf685026495a1ce634eeeeeca068
[]
no_license
guanguanboy/TestPytorch
a912b64d1e7c1df93a66032e4d411e2da82523c6
52fe23bae05027a5a725cb1d028954c5b5597e9a
refs/heads/master
2023-07-16T15:28:14.257183
2021-08-29T04:04:11
2021-08-29T04:04:11
295,422,137
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
import numpy as np a = np.array([1, 2, 3, 4, 5]) a[a > 3] = 0 print(a)
[ "517445163@qq.com" ]
517445163@qq.com
8852b310a9bfbd510a16df3ba0e986f59067e092
190302f0f22aefbdfdb0f935d6ba905167fa23f0
/mas_cob_planning/mas_cob_actions/mas_cob_manipulation_actions/mas_cob_tray_actions/ros/scripts/move_tray_action_client_test
24a1c2592e9cbf6ad71c52c3d368e94adb434ab6
[]
no_license
b-it-bots/mas_cob
cc4140af3ef10e53ed061e9318cd0530757a54fb
ce678d638b70b9f72cb64311a704ba3ae6715e6b
refs/heads/kinetic
2021-03-19T12:31:07.542276
2019-05-22T18:05:09
2019-05-22T18:05:09
122,046,997
0
3
null
2019-05-22T18:05:10
2018-02-19T10:26:21
C++
UTF-8
Python
false
false
1,269
#! /usr/bin/env python import sys import rospy import roslib import actionlib from mas_cob_move_tray_action.msg import MoveTrayAction, MoveTrayGoal def print_usage_info(): rospy.loginfo('usage: move_tray <direction>') rospy.loginfo(' where <direction> can be either up or down') if __name__ == '__main_...
[ "aleksandar.mitrevski@h-brs.de" ]
aleksandar.mitrevski@h-brs.de
597729db2395e0741468dceb0cc5962edacff0a4
b22525ec160a803e8c3489615ec1d24b0f00a0fe
/venv/bin/easy_install
a60d8c1ea6cc8d9a55591c9e25fb0e120a180500
[]
no_license
shahid37/Django_Framework_practices
fc967b250e13adb130ebfff3682df7dd4cdc05b8
1c928ba62ca5c7d88633a58ea8e6730402fad52e
refs/heads/master
2020-05-25T22:54:18.221108
2019-05-23T08:15:45
2019-05-23T08:15:45
188,023,263
0
0
null
null
null
null
UTF-8
Python
false
false
442
#!/home/shahid/PycharmProjects/textutils/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',...
[ "happyshahid37@gmail.com" ]
happyshahid37@gmail.com
9ba6a29c9bca6d480329a33582341c51f26bc30b
b1d9e75c07cea7498e4fe8b113a23c55f89292be
/leaflet_storage/base_models.py
3a0c88e106127c6ad9d83fd7d8442328999c274d
[ "WTFPL" ]
permissive
FranciscoDS/django-leaflet-storage
9dfdbb5e579431e0af70d0578fa55efe909093e3
b69f0bb5a1848f743d50b0ec1f76b8ac3216c497
refs/heads/master
2020-12-24T13:20:42.757136
2013-03-10T21:33:55
2013-03-10T21:33:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,693
py
# -*- coding: utf-8 -*- from django.contrib.gis.db import models from django.db.models import get_model as dj_get_model from django.conf import settings from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.utils.translation import ugettext as _ from .fields import DictF...
[ "yb@enix.org" ]
yb@enix.org
d0ca2278af93cf0521f1a71d22dd494b20804760
ea48ef0588c104e49a7ebec5bd8dc359fdeb6674
/api/snippets/serializers.py
802503d73cf66c4cf043190921ed0e2be369d0ef
[]
no_license
Jizishuo/django--text
c0d58d739ef643c7f3793fbead19302778670368
152a5c99e7a16a75fda2f1f85edcfdce9274c9c2
refs/heads/master
2020-04-01T10:39:18.131551
2018-11-18T13:31:59
2018-11-18T13:31:59
153,125,799
1
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
from rest_framework import serializers from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES class SnippetSerializer(serializers.Serializer): # 它序列化的方式很类似于Django的forms id = serializers.IntegerField(read_only=True) title = serializers.CharField(required=False, allow_blank=Tr...
[ "948369894@qq.com" ]
948369894@qq.com
bd360494b3878fc03ec61fa166235858fdda2145
8072c1cf03f82fd1891536e93b6c28f16df82ea4
/metamorphosys/META/meta/DesignDataPackage/lib/python/avm/__init__.py
547231adf5bb6d039dc95b4fd07a3cd812a38db4
[ "LicenseRef-scancode-other-permissive" ]
permissive
15831944/metamorphosys-desktop
90a26c6700c444accd58358c457d675eb2fdd59f
4adb71c18f7811289fc4ba4dcb465e99e93d8e60
refs/heads/master
2021-05-30T13:34:07.037424
2015-09-24T22:09:05
2015-09-24T22:09:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
297,086
py
# .\_avm.py # -*- coding: utf-8 -*- # PyXB bindings for NM:8c3bce54577a879cd94d42789711c9f5d444aa71 # Generated 2015-08-13 10:01:46.170000 by PyXB version 1.2.3 # Namespace avm [xmlns:avm] import pyxb import pyxb.binding import pyxb.binding.saxer import io import pyxb.utils.utility import pyxb.utils.domutil...
[ "adam.nagel+git@gmail.com" ]
adam.nagel+git@gmail.com
29412168a35029446a3f8458bcf3b90a9ca5c7bb
12a5b72982291ac7c074210afc2c9dfe2c389709
/online_judges/Codeforces/228/E/code.py
df84b84afc6501c45b644b377d5dc32fca5c6d4c
[]
no_license
krantirk/Algorithms-and-code-for-competitive-programming.
9b8c214758024daa246a1203e8f863fc76cfe847
dcf29bf976024a9d1873eadc192ed59d25db968d
refs/heads/master
2020-09-22T08:35:19.352751
2019-05-21T11:56:39
2019-05-21T11:56:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
n = int(raw_input()) ciel = 0 jiro = 0 maxValues = [] for x in xrange(n): l = map(int,raw_input().split()) if (l[0] % 2 == 0): for i in xrange(0,(l[0])/2): ciel += l[1 + i] jiro += l[l[0]/2 + i + 1] else: for i in xrange(0,((l[0])/2)): ciel += l[1 + i] jiro += l[(l[0])/2 + i + 2] maxValues.appe...
[ "mariannelinharesm@gmail.com" ]
mariannelinharesm@gmail.com
e95147eb86b47413be4c0af28598db219b730732
f5a53f0f2770e4d7b3fdace83486452ddcc996e1
/env3/lib/python3.6/site-packages/django_tables2/columns/linkcolumn.py
adf587625eda5d92ecd166bee5d301e54ef9251c
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
fireman0865/PingBox
35e8fc9966b51320d571b63967e352a134022128
0f00eaf88b88e9441fffd5173a1501e56c13db03
refs/heads/master
2023-01-20T07:55:59.433046
2020-03-15T13:36:31
2020-03-15T13:36:31
247,466,832
1
0
Apache-2.0
2022-12-26T21:30:32
2020-03-15T12:59:16
Python
UTF-8
Python
false
false
6,118
py
from .base import Column, library class BaseLinkColumn(Column): """ The base for other columns that render links. Arguments: text (str or callable): If set, this value will be used to render the text inside link instead of value. The callable gets the record being rendered...
[ "fireman0865@gmail.com" ]
fireman0865@gmail.com
0dbb1b1f5680418db002a7cb9e2066fff0bde792
79c97be71e09cc4411bde815aab38b05d4e7abff
/venv/Scripts/easy_install-3.8-script.py
e53518131075d934e6bf8ea9ca1ab57d492fd67c
[]
no_license
lirff/Cropio
1272ee8f08f50ca8c804e123a3a9f433e1ea3bcb
5c2eeff90246753643d2df2a14687125528382b9
refs/heads/master
2022-10-04T03:17:47.900454
2020-06-08T10:41:26
2020-06-08T10:41:26
270,629,078
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
#!C:\Python\PycharmProjects\Cropio\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __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?|\.ex...
[ "62636896+lirff@users.noreply.github.com" ]
62636896+lirff@users.noreply.github.com
999284239d86884a34e9ffc8425ff72b13006d84
9391662ee9fc1d45fcdecb8b09f07c4101013bba
/becca_test/grid_1D_noise.py
625a8833c563344e64cf5d68179ddd4e47e84bc7
[]
no_license
automenta/beccapy3
88179cdd5bbc011dc1a64b722ee3ffdf5766c60d
53a773de70d7599e9c959e79e134a162cda7cdb3
refs/heads/master
2020-04-18T14:49:41.087893
2016-08-19T05:01:08
2016-08-19T05:01:08
66,053,950
0
0
null
null
null
null
UTF-8
Python
false
false
4,892
py
""" One-dimensional grid task with noise In this task, the agent has the challenge of discriminating between actual informative state sensors, and a comparatively large number of sensors that are pure noise distractors. Many learning methods make the implicit assumption that all sensors are informative. This task is i...
[ "seh999@gmail.com" ]
seh999@gmail.com
1fecc0c4d13d877ece282bd2a8ebf7d6f3d6fde6
5158d2aa9839dcf80340ef369db7eada19f3ff8b
/test.py
1fe2fcc807e3f3e645ccd632e01c386ea08a6bad
[]
no_license
andrewsmedina/flh-pvcloud
31de2e5734a6f91db4c618fa20759300e2930596
1799b17039dde004461982466f58cc464e6488b8
refs/heads/master
2021-01-11T03:39:57.926994
2016-10-13T03:56:46
2016-10-13T03:56:46
71,403,725
0
0
null
2016-10-19T22:14:25
2016-10-19T22:14:24
null
UTF-8
Python
false
false
1,691
py
#!/usr/bin/env python import os import sys import django import json def test_pvs_energy_daily(): from pvs.models import Energy #pvs_serial = '0000000097894c9b' pvs_serial = '00000000f6392e07' pvs_en_daily = Energy.get_energy_daily_output(pvs_serial) result_list = [] for entry in pvs_en_...
[ "lee.shiueh@gmail.com" ]
lee.shiueh@gmail.com
b44970847be66e57049cdc280227b08fe13d0679
e686397dfb9d3b7e3f110574301d73e4c5842a43
/reverse.py
190a54bd7f26c63e0dcf17c26591b5086f157462
[]
no_license
prateeknepaliya09/Python_practice-
0e8b5339b0a22b869b3248796118b91e9a864c04
5d3df91376a871700566b7a5b5e1cb323a998ea0
refs/heads/master
2020-12-31T06:24:08.405573
2017-03-25T18:50:57
2017-03-25T18:50:57
56,138,245
2
1
null
null
null
null
UTF-8
Python
false
false
439
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 20 00:41:12 2016 @author: Prateek """ """Please write a program which accepts a string from console and print it in reverse order. Example: If the following string is given as input to the program: rise to vote sir Then, the output of the program should be: ris etov ...
[ "prateeknepalia9@gmail.com" ]
prateeknepalia9@gmail.com
e5014a33baed75b1011624424e0e8d9ab704bead
00a7724ed364d9afd8f05bd12086c8e14298a4d0
/src/pylibftdi/__init__.py
a03d50f7e018e297d4a2d6f15b7e9a92ec8ccc79
[ "MIT" ]
permissive
codedstructure/pylibftdi
647932ca4d191c4dd1e613b1baa77f559ab2f0fe
a48702817ed75f2b3bbf507a4e3dd323447d9303
refs/heads/main
2023-06-23T18:35:29.287367
2023-06-19T20:12:27
2023-06-19T20:12:27
270,433,015
17
8
NOASSERTION
2023-04-24T21:15:19
2020-06-07T21:08:03
Python
UTF-8
Python
false
false
1,698
py
""" pylibftdi - python wrapper for libftdi Copyright (c) 2010-2020 Ben Bass <benbass@codedstructure.net> See LICENSE file for details and (absence of) warranty pylibftdi: https://github.com/codedstructure/pylibftdi libftdi can be found at: http://www.intra2net.com/en/developer/libftdi/ Neither libftdi nor Intra2net...
[ "benbass@codedstructure.net" ]
benbass@codedstructure.net
80c7c64f7b2a4198553c6a348071abcd99c2300d
c97d9505fe360aad165ca5e8a08d4109209a3110
/capstone/settings.py
3e2b78fd239eafd45ee3f48ab1f64ef848f548d4
[]
no_license
bugiss656/capstone
8ca9b335b68ad6380ffab98da3d99274d05f0aa2
9c0fac17ec6e26acf32a91b465ac2dc3b2bf40ca
refs/heads/main
2023-02-26T21:59:59.362380
2021-02-05T20:17:37
2021-02-05T20:17:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,214
py
""" Django settings for capstone project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
[ "mbugiel656@gmail.com" ]
mbugiel656@gmail.com
6e33bdb52df70a1d3f34b66cbe70b041167f2189
3fbfabfaaada7b9b77e8a1df8fed4de444070d49
/session_10/Employee.py
ab419235cf5bb43b1a9bf7a2b7ac1bb3742016d0
[ "MIT" ]
permissive
dravate/spark_python_course
df36a561ab2cf8f763dd02655319cd6bf5b7876c
519389fdb21d78cd6d19e1ad2f7c782bc1449a83
refs/heads/main
2023-07-08T06:53:27.635106
2021-08-03T14:44:55
2021-08-03T14:44:55
385,127,461
0
1
null
null
null
null
UTF-8
Python
false
false
732
py
class Employee: 'Common base class for all employees' empCount = 0 def __init__(self, name, salary): self.name = name self.salary = salary Employee.empCount += 1 def displayCount(self): print ("Total Employee {}".format( Employee.empCount)) def displayEmployee(self): p...
[ "sopan.shewale@gmail.com" ]
sopan.shewale@gmail.com
67df998e15aaf63b368447b166ddfc3cd29f7411
60d0252aabe5d929af8c94cdddd502605e7bafdd
/crawler_novels/www.ck101.org.py
4946797433701f255fa0933a31a2593df36791fe
[]
no_license
SlovEnt/Web_Craler_Series
ead253b56f99bcd0bac33c2a66d226673c7f68fe
9f77858826254d6631486f4770760e9e78baea68
refs/heads/master
2020-06-09T23:30:38.984620
2019-09-13T13:55:02
2019-09-13T13:55:02
193,528,032
0
0
null
null
null
null
UTF-8
Python
false
false
5,238
py
# -*- coding: utf-8 -*- __author__ = 'SlovEnt' __date__ = '2019/6/24 22:07' import time import os from bs4 import BeautifulSoup from collections import OrderedDict from chs_tools.get_html_page import get_html_all_content, chrome_get_html_all_content from chs_tools.print_log import C_PrintLog from chs_tools.param_info ...
[ "slovent@163.com" ]
slovent@163.com
93c273213951364bf0dc218dfb1b072c7abfda6e
006361de388b84c07477ab1c69ef6cea86046393
/剑指Offer66/65.矩阵中的路径.py
fc2dfd704110b23237f6d42ff7d7895ca9016e43
[]
no_license
huigoing/algorithm
51e366398b89d92ef20176c836185ceef1218cdb
a9b561d6aa334c4a936c7ac775a35e80569c5bd4
refs/heads/master
2023-01-24T13:28:27.797997
2019-09-01T08:07:19
2019-09-01T08:07:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,522
py
# -*- coding: utf-8 -*- """ Created on Sat Jun 1 15:22:14 2019 @author: Tang """ ''' 题目描述 请设计一个函数,用来判断在一个矩阵中是否存在一条包含某字符串所有字符的路径。 路径可以从矩阵中的任意一个格子开始,每一步可以在矩阵中向左,向右,向上,向下移动一个格子。 如果一条路径经过了矩阵中的某一个格子,则之后不能再次进入这个格子。 例如 a b c e s f c s a d e e 这样的3 X 4 矩阵中包含一条字符串"bcced"的路径,但是矩阵中不包含"abcb"路径,因为字符串的第一个字符b 占据了矩阵中的第一行第二个格子之后,...
[ "201923668@qq.com" ]
201923668@qq.com
a9c8c88180249969cff26aeb304d575a5691efdc
bc441bb06b8948288f110af63feda4e798f30225
/app_store_sdk/model/resource_manage/filter_strategy_pb2.pyi
c7feb66ed7c223ea9ba231ff3e42ab314f2b82d4
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
5,421
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from app_store_sdk.model.console.cmdb_query_strategy_pb2 import ( CmdbQueryStrategy as app_store_sdk___model___console___cmdb_query_strategy_pb2___CmdbQueryStrategy, ) from app_store_sdk.model.resource_manage.filter_condition_group_pb2 import (...
[ "service@easyops.cn" ]
service@easyops.cn
4650529c02e1e986a15bfe5d891a76206bc8f872
ea83d08a8ec09968b14c0d62e09c3e0b8decf209
/AhStyle/settings.py
05860e335e88b1621f08663744fa263104747e7b
[]
no_license
jagger909/AhStyle
ade85e58e79da4902ead279a843c0e17afb641be
85581ef45172c7316633487f36df8cd7c07aa9ae
refs/heads/master
2020-03-18T04:42:55.062047
2018-05-21T19:48:37
2018-05-21T19:48:37
134,301,984
0
0
null
null
null
null
UTF-8
Python
false
false
3,935
py
""" Django settings for AhStyle project. Generated by 'django-admin startproject' using Django 2.1a1. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ import os #...
[ "jagger909@gmail.com" ]
jagger909@gmail.com
64b6585d094e9eaea8fa48d6951b2b3527536534
87bc489842317e1af7da7d8f12fc00b48f050228
/Solutions/PE024_lexicographic_permutations/test_lexicographic_permutations.py
5b326adbf165ecd38a70a9a98a6e62e122d974e3
[]
no_license
mike006322/ProjectEuler
1c9da8d60bed3e50a7cf24e8b09eb122f18da723
51382187c551f648cf77c090ace26c271b6a7b9f
refs/heads/master
2022-11-08T06:27:23.313214
2022-10-26T04:32:29
2022-10-26T04:32:29
151,336,206
0
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
import unittest import lexicographic_permutations class Test(unittest.TestCase): def test_find_largets_factorial(self): self.assertEqual(lexicographic_permutations.find_largest_factorial(120), 5) self.assertEqual(lexicographic_permutations.find_largest_factorial(121), 5) self.assertEqual(l...
[ "mike006322@gmail.com" ]
mike006322@gmail.com
32c67fb98d65d7bc2fc22ad8d8dc086a723ec0a4
7274829ce493655b990448ed530eb3cadf4e1cc3
/500ETF/alldataprcess_V2.py
2fc2caf370d9e7687932f49e558f4c3a1d897730
[]
no_license
wp92/MLearning
41389007a07fc49027aa9c49545ba479348be97c
79eb9e74c7097372067fead30a3aba142979e8ba
refs/heads/master
2020-07-24T03:54:32.001532
2019-09-26T02:56:15
2019-09-26T02:56:15
207,794,277
0
0
null
null
null
null
UTF-8
Python
false
false
7,461
py
# -*- coding: utf-8 -*- """ Created on Thu Jun 20 18:03:03 2019 使用Y_V2进行全数据生产 """ import gc import time import copy import numpy as np import pandas as pd def Math_Delay(data, delayparam=3): """ 根据输入数据计算T-k期的因子,根据iloc进行数值计算 delayparams为延迟期数k,默认3 输出值为date,独立于输入 2019.04.12 """ if not isinst...
[ "noreply@github.com" ]
noreply@github.com
ae7809f3604c6604f22ba1fa70a1e9c3ed5f2c69
57d978b0ba29c745cf409e819f2f7e42e98516dc
/ibs/_input.py
ce3078f28411719e86def04fdd019b03afda1c2e
[ "MIT" ]
permissive
lnls-fac/lnls
26564b9bdaf0602e2f50d67e294d0d8ba5cc0f82
91299d84ce7628d33c46861687d17a574428bc85
refs/heads/master
2023-02-09T00:26:47.298350
2022-11-25T19:25:50
2022-11-25T19:25:50
33,893,299
5
2
MIT
2022-11-25T19:25:51
2015-04-13T20:51:15
Python
UTF-8
Python
false
false
2,116
py
import numpy as _np import copy as _copy def read_energy_acceptance_file(fname, eRF): # reads raw data from file lines = [line.strip() for line in open(fname)] # processes raw data accp, accn = [], [] for line in lines: if not line or line[0] == '#': continue values = ...
[ "xresende@gmail.com" ]
xresende@gmail.com
2c39fc7e775773fb936563d11e5573ec6ede2ac0
b112e6e802b1904ef19e41980b65295972a64931
/telisar/languages/base.py
e2665ac7c5ef88a0605e7b1964662d3773d49c09
[ "Unlicense" ]
permissive
evilchili/telisar
137ca30bdc28c397983be15a1ee5ddb65d4db158
4152de28ed03afecb579c6065414439146b8b169
refs/heads/master
2021-08-30T11:56:45.118298
2021-08-09T02:22:42
2021-08-09T02:22:42
136,788,696
1
1
Unlicense
2021-04-20T20:42:07
2018-06-10T07:31:41
Python
UTF-8
Python
false
false
6,666
py
import random import logging from collections import namedtuple grapheme = namedtuple('Grapheme', ['char', 'weight']) class LanguageException(Exception): """ Thrown when language validators fail. """ class SyllableFactory: def __init__(self, template, weights, prefixes, vowels, consonants, suffixe...
[ "greg@automagick.us" ]
greg@automagick.us
18985a0d86acf9f4457a29259d308272548229f8
07c7bfb2cf8b07479649950bb49d11557d768a72
/admin_login.py
608154347ec20e0f541a762799668233a6e5cb9b
[]
no_license
pranavgarg1506/book_reco
e023bda73b551627a08e1093069483980b044ae5
d9160c42d043376f4ee182b0946a4ccbbed3987b
refs/heads/master
2021-10-22T13:51:19.131838
2019-03-11T09:23:42
2019-03-11T09:23:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
#!/usr/bin/python3 from flask import Flask,render_template,request,session import mysql.connector as mariadb def admin_login_page(): flag = 0 mariadb_connection = mariadb.connect(user='pranav', password='funny', database='major', host='localhost') if mariadb_connection.is_connected(): cursor = mariadb_connectio...
[ "pranavfunny1@gmail.com" ]
pranavfunny1@gmail.com
f367ae099d06118e59ac2cc5cb40d64e4b8d0999
5d2375119c263b8f9643755e61d779711291c3b7
/AJ_function_4_analysis.py
9f369c493d554484ae6411bb40695d8e65da862f
[]
no_license
witec-rep/web_pattern_generator
a15644651fa4f94cb4f9b4767475343b055531c5
04475f6b3973ccd31d2272ed2b5e502398b83878
refs/heads/master
2023-03-07T21:13:44.051649
2021-02-23T17:54:19
2021-02-23T17:54:19
327,000,079
0
0
null
null
null
null
UTF-8
Python
false
false
4,900
py
import numpy as np class size_manipulator: """ class to manipulate the array dimensions :param data: the original matrix """ def __init__(self, data): self.data = data def rescape(self, column_selected): """ create a new matrix with the selected columns :para...
[ "witeclab@gmail.com" ]
witeclab@gmail.com
c26c22a572fc6788014f0e253f267b21cc87a9dd
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/statsmodels/2016/12/test_tsaplots.py
91616d7673599e86c8dfeba8b0c28021f08f1d27
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
4,803
py
from statsmodels.compat.python import lmap, map import numpy as np import pandas as pd from numpy.testing import dec, assert_equal import statsmodels.api as sm from statsmodels.graphics.tsaplots import (plot_acf, plot_pacf, month_plot, quarter_plot, seasonal_plot) import stat...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
11afb2097557a079a32cacfe6b88c491fcde8492
6a3290caa2b4167023c66db67067f4b4b67755be
/src/exceptions/not_a_list.py
382838f6881474b989fb5c197f93d57128d96f63
[]
no_license
luizth/bottlepy_test
ba6b9dd00376bff92cf883656b49ab8ee1d7407e
c905c95790ce73f9d77eecd7e3785b2f393be392
refs/heads/master
2022-12-05T10:49:16.422786
2020-08-27T18:00:23
2020-08-27T18:00:23
287,348,206
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
class NotAListError(Exception): pass
[ "luizthomasini@gmail.com" ]
luizthomasini@gmail.com
bf10c5772f31298525eb55957cf0421f17ad7983
87cac4166f07729f1c94066259996c8b752c1202
/examples/calc/calc_distance.py
dc0d473aceccd019cbfe3f28a154c888c08db7e6
[]
no_license
danielsocials/bbox
068238a15880468d214109a23017a19e70fc13ec
292e350b1cefbbab987baf8c946d4021abd211ea
refs/heads/master
2020-03-16T06:25:47.907369
2018-05-08T04:42:45
2018-05-08T04:42:45
132,554,332
0
0
null
2018-05-08T04:36:35
2018-05-08T04:36:35
null
UTF-8
Python
false
false
589
py
import asyncio from aiobbox.cluster import get_cluster from aiobbox.client import pool from aiobbox.handler import BaseHandler class Handler(BaseHandler): def add_arguments(self, parser): parser.add_argument('--a', type=float) parser.add_argument('--b', ...
[ "superisaac.ke@gmail.com" ]
superisaac.ke@gmail.com
654dbba88e2831a8e3846f76e24c007f97c22063
c8b32c8e92d1e49e01ef73140274537fb260e91f
/tests/knn_test.py
2dd61ef1295f2e37f46e7d20d8126e5bd830a434
[ "Apache-2.0" ]
permissive
DuraQ/flexmatcher
f6f9a3dcc57c7dda922eaef963710b0bf905c155
562ba1e701fbed0fc242c57b9eaf8923b38dc2e1
refs/heads/master
2023-03-20T08:51:59.713782
2018-01-11T18:32:06
2018-01-11T18:32:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
import pandas as pd import unittest import random import flexmatcher class KNNTest(unittest.TestCase): def setUp(self): self.target_class = ['California', 'Hawaii', 'New Hampshire', 'Colorado', 'Maryland', 'Oklahoma', 'Oregon', 'Tennessee', 'Wash...
[ "behzad@recruit.ai" ]
behzad@recruit.ai
c8e9b081e858301b29e1c6383672ddd04c28df20
5b35c2c0650429444c488d57e4ff6ee5dada93c3
/server.py
244710a27152b7b60ed14f1b15dc898d6dffe9f6
[]
no_license
pratikpatelx/HttpServer
9f0631669f0608ca5048adbce6dd5329b44ba16b
c2265c34e00eed9f71fe21080928e5e5b180440f
refs/heads/main
2023-02-20T18:00:12.648530
2021-01-25T13:08:02
2021-01-25T13:08:02
332,747,730
0
0
null
null
null
null
UTF-8
Python
false
false
9,451
py
#!/usr/bin/python import os, sys, subprocess, socket class Server: #Intiailize server parameters port and hostname def __init__(self): self.theHost = socket.gethostname() self.port = 15086 self.addr = ("", self.port) #startServer(self) # Method called to create t...
[ "noreply@github.com" ]
noreply@github.com
fe9e7ae36613eddbc9b67fab34ddea53b95cc7bc
baf3b9e0f80a545ba1e087d54e4de7a9fe10f279
/滑动窗口/209_长度最小的子数组.py
6f00de24476ca4c1e8c21ef53268ba5989b0febb
[]
no_license
llin0420/Leetcode_in_python3
5e0755c9b6bb5fe92fd1e0bd7d563e8a3a20f88a
41684ff99b2f881304b08c3c753b0df48e0a6b40
refs/heads/master
2022-12-15T16:23:39.991920
2020-09-09T08:05:55
2020-09-09T08:05:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,402
py
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 13:17:24 2020 @author: leiya """ ''' 0712 这道题在滑动窗口中稍微有些特殊 我们说过,尽量将对输出的更新放到小循环外面,即尽量不要在缩小窗口的时候更新输出,以防特殊情况 但是这道题需要将更新放入小循环中,因为只有在小循环中才能找到需要更新的精确数值,一旦出了小循环,就不是如何要求的输出值了 在这道题里就是出了小循环,该滑动窗口和<s,不满足更新输出值的要求,这道题可以和904水果题类比 水果题进入小循环是不符合要求,这道题是进入小循环符合要求,要在符合要求的基础上看看有没有最优解,因为我们是...
[ "792412589@qq.com" ]
792412589@qq.com
d94e9908d780a1f89ba5a1ec767f2f5773287edf
aa45bd9383b7ed07144ab38ffea1a853c19ce2a0
/zipline/utils/calendars/exchange_calendar_ice.py
511fae0181b274c981144a945ac9b730ff4da32d
[ "Apache-2.0" ]
permissive
yingchi/zipline-astock3
3322b8d5f72375dce7e7777f2d99cf22e2cd081d
266cf46f717ad2423a8985306cb8bccac5c17970
refs/heads/master
2022-11-22T11:41:46.001016
2018-03-29T09:48:22
2018-03-29T09:48:22
127,266,703
1
2
Apache-2.0
2022-11-02T23:02:22
2018-03-29T09:10:05
Python
UTF-8
Python
false
false
2,021
py
from datetime import time from itertools import chain from pandas.tseries.holiday import ( GoodFriday, USPresidentsDay, USLaborDay, USThanksgivingDay ) from pandas.tslib import Timestamp from pytz import timezone from zipline.utils.calendars import TradingCalendar from zipline.utils.calendars.trading_...
[ "yingchi.pei@gmail.com" ]
yingchi.pei@gmail.com
d833ffb26027d40dedc45a2ec03f45677de7a485
f82ada6f47d69b458e61ecc9ff72289f2cebcf8d
/Agents/agent.py
efe9b85d9484bb692274793f48f04a0fb13d8044
[ "MIT" ]
permissive
RUSCZAK/Lunar-Lander
d1c35291fb5cd473608e12fd9afe8154cbd84e45
509bc895934bd68be35953462eb08977fafd555c
refs/heads/master
2020-04-21T23:05:55.396438
2019-04-18T03:57:51
2019-04-18T03:57:51
169,934,848
0
0
null
null
null
null
UTF-8
Python
false
false
11,134
py
import numpy as np import copy import random from Model.model import Actor, Critic from Support.replaybuffer import ReplayBuffer from Support.per_tree import proportional #from Support.per.rank_based import Experience #from keras import backend as K #from Task.SoftLanding import SoftLanding # Constants from paper: ...
[ "jrrusczak@gmail.com" ]
jrrusczak@gmail.com
20866e6e3d4dd219bb811aa443c238903384f3ee
e26c16d2243fe5c010a2398779b571c2bd3975f0
/CalenderBot.py
5367c1e3d214c2616f4e373c8dcca927306d7634
[ "MIT" ]
permissive
Unity05/CalenderBot
23825c11ca3a455386c95e723f89e302f25d1e14
7dd8983d0ef495dd4d3a28cdb1f54b0274bc3242
refs/heads/master
2020-03-18T12:28:12.694826
2018-10-06T14:21:30
2018-10-06T14:21:30
134,728,219
5
2
null
null
null
null
UTF-8
Python
false
false
33,509
py
import discord import time import datetime import json import asyncio import os client = discord.Client() currentVersion = "1.3" # var to check if the version of the files is the latest meetingDateSP = 0 helpEmbed = discord.Embed(title="Hilfe für CalenderBot", # helpEmbed for help-message ...
[ "noreply@github.com" ]
noreply@github.com
818a6404248346ef4bcc70ea941cc25a5cc2006c
1b7b13984a90b5d11331966fe1b1bb88f2b85dd7
/modeling/test.py
b583abada1374a6055aa896f3d6fcaa16e67abe6
[]
no_license
yekeren/VCR
23cf6b17ce7adcc057a531182898900dcd75727b
6a573edf3183e9a8ef2056449c53865d8e27125d
refs/heads/master
2023-04-06T05:41:09.851825
2020-04-14T18:26:42
2020-04-14T18:26:42
232,395,848
0
0
null
2023-03-24T23:35:46
2020-01-07T19:01:27
Python
UTF-8
Python
false
false
2,259
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from absl import flags from absl import logging import os import numpy as np import tensorflow as tf from google.protobuf import text_format from protos import pipeline_pb2 from modeling i...
[ "yekeren.cn@gmail.com" ]
yekeren.cn@gmail.com
96ae2ade34cfafc76e52d53e066c37ceb7eab860
e0be6d234cb78be64909d83c5d7e698f40e091f1
/day_4/task1.py
f377e9f5a6930dde204d40b3964b3d03964d8007
[]
no_license
nagybalint/advent-of-code-2020
00e9beb87f2f547ba9ffce975a3ed102dbe8bef1
bc023f9a3b69951b6a41b43140d3ef7e6a0c00fe
refs/heads/master
2023-02-03T02:30:23.801136
2020-12-20T11:22:45
2020-12-20T11:22:45
317,672,844
0
0
null
null
null
null
UTF-8
Python
false
false
1,603
py
import os from typing import Dict, List PASSPORT_FIELD = ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid", "cid"] def parse_passports(file_path: str) -> List[Dict[str, str]]: passports = [] with open(file_path) as f: passport_details = [] for line in f.readlines(): ...
[ "bnagy@cloudera.com" ]
bnagy@cloudera.com
4ee410d5c7f6b681335288dc9f6c8e5f38ddbd6a
9dc371429c3c7f04fab9f6f0862571c4ab78e2c2
/fizzbuzz.py
98d15cb37ed45987e5b6ab0c901b17be7571c8a2
[]
no_license
hemepositive/fizzbuzz
0afc500e35bb76fd163b78bd1bf4a2bda7ef9215
6593cb10611f0d79c7229c64363bf10ce46882bf
refs/heads/master
2016-09-05T14:26:42.408488
2014-06-21T09:04:42
2014-06-21T09:04:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,821
py
import sys import random """Make sure you have 4 total functions that are named appropriately. Add docstrings to each. Make sure all your tests pass. Then PUSH your code to Github. . version 13. """ # changelog # 1. using xrange # 2. more verbose variable names # 3. intimation that user is a moron if a whole number no...
[ "hemepositive@gmail.com" ]
hemepositive@gmail.com
96df20298ac9dc1fdaca45b61783c50aaaad575f
219d7694180482e0b9944deb6dee11dcf7bf0e23
/morecvutils/connectedComponents.py
58ed9279dc1b6fef5516c8a7b21f18623978e5ce
[ "MIT" ]
permissive
Aresthu/morecvutils
5e3bfcba2b5c48ec022e641f19b40e2836d2d6bd
4856d98c45dbd6bcfb86c87f7ec9987c378e244c
refs/heads/master
2021-04-09T16:03:01.956218
2018-02-18T07:14:41
2018-02-18T07:14:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
import cv2 try: #OpenCV 2.4 from cv2 import SimpleBlobDetector as SimpleBlobDetector except ImportError: #OpenCV 3 from cv2 import SimpleBlobDetector_create as SimpleBlobDetector from numpy import asarray def doblob(morphed,blobdet,img,anno=True): """ img: can be RGB (MxNx3) or gray (MxN) http://do...
[ "scivision@users.noreply.github.com" ]
scivision@users.noreply.github.com
5b6d5e796aa35788250c17aa14808559a36e5c1d
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkCannyEdgeDetectionImageFilterPython.py
5b48b0c6d95f111348c8b5f16df1963f18580000
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
44,738
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _itkCannyE...
[ "fede.anne95@hotmail.it" ]
fede.anne95@hotmail.it
71ae2a5380a5dac7a539c945d44e63ada72a53ba
bf4f4731f099dcdc964509b51ffc6ce8875f6041
/ll.py
c48d2277a0c507a6b81eae89b47f552294de014e
[ "MIT" ]
permissive
YanglanWang/squad
8c9b98d3bd4ff0fe824bc08fc2a314fb45936b38
1019e4c7bf1a90c049d16ed1b48553964468c790
refs/heads/master
2020-06-19T19:02:30.891520
2019-08-02T15:53:15
2019-08-02T15:53:15
196,834,600
0
0
null
null
null
null
UTF-8
Python
false
false
1,217
py
# import torch # import torch.nn.functional as F # import torch.nn as nn # # input is of size N x C = 3 x 5 # m = nn.LogSoftmax(dim=1) # input = torch.randn(3, 5, requires_grad=True) # print(input) # print(F.softmax(input)) # print(F.log_softmax(input)) # print(m(input)) # # each element in target has to have 0 <= val...
[ "yanglan-17@mails.tsinghua.edu.cn" ]
yanglan-17@mails.tsinghua.edu.cn
df595c77d73ecc81233488dc652b38172a935850
d86c52f4098fd9c1a102c2d3f5630556e0610fa2
/fitle/myenv/Lib/site-packages/django/urls/base.py
0caa424c33ca350337f9994d131b8e12e6d6d6ca
[]
no_license
makadama/bitbucket
24f05c4946168ed15d4f56bfdc45fd6c0774e0f2
cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79
refs/heads/master
2023-06-19T19:04:03.894599
2021-07-15T12:10:39
2021-07-15T12:10:39
385,203,791
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:b1fa9d73dc9c6873504ab270b4646eb91e5cd202f9f0a9fffff2342e2183d8ab size 5587
[ "adamamakhtarsow@gmail.com" ]
adamamakhtarsow@gmail.com
d9825bd0406daa4dcd70caa1d43d3f111bac09b7
5dcf3bfa331d4c2f61be93c80dbc672c78e5e07d
/untitled0.py
e9cda6b52dc0d0a046dc3e8bb9ed85f9e2f6b203
[]
no_license
sangaselu/Forecast-predicciones
6a7cc6a0d17c8924d93a06269560ed4953c93841
8a8236a291c3e479c0cca8705319dfb4eda81d39
refs/heads/main
2023-03-22T09:30:30.275947
2021-03-20T17:29:43
2021-03-20T17:29:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,456
py
# -*- coding: utf-8 -*- """Untitled0.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1zppAK7b_-wsBIv-Z7-zYhxlCtppDOTan """ # Commented out IPython magic to ensure Python compatibility. #importar dependencias de librerías import numpy as np import...
[ "noreply@github.com" ]
noreply@github.com
f004405fef2fdf69649331b17e36bc392d5c02ba
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/wikipedia/testcase/pwpreferencecases/PW_pre_8.py
59c846093a4300d149fa46929cd4e09dfe78d39a
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
9,018
py
#coding=utf-8 import os import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulator', 'platformVer...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
46db86e79771ab26fcdc605bdf0ce05b8ed2ab07
2735c5f1a9b1f1a3d2468f0838fc0f20725cbe31
/usr/lib/pymodules/python2.7/numpy/core/tests/test_ufunc.py
43f4f539e4e53be8feb7e24a89b82b135eb556ca
[]
no_license
sanyaade-iot/rpi-sysroot
f202b9188fd99c372d28b59ebe1b8fcabbfb7a67
6e13f05b5b2b44b29ead66c96230a17f077d5198
refs/heads/master
2020-04-08T16:14:25.745147
2014-03-21T06:27:54
2014-03-21T09:47:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
/usr/share/pyshared/numpy/core/tests/test_ufunc.py
[ "weitjong@gmail.com" ]
weitjong@gmail.com
b52273a1e19daac8b6173e5b3287d5a6ad803d06
4bfdb3ad5b44044113d3d6b586e10281d3987c9e
/infra/bots/recipe_modules/upload_dm_results/api.py
3005f3e77790c38666ee47a5e9b661f92619102c
[ "BSD-3-Clause" ]
permissive
imxiangpeng/skia
dcdca3538564f2707fde10b43bdcaa6d9b5e0103
3e7cddaf32e280fe9f32eec5bfdd8168ca4941b6
refs/heads/master
2021-01-23T02:40:18.169644
2017-03-23T20:24:50
2017-03-24T01:24:57
86,016,340
1
0
null
null
null
null
UTF-8
Python
false
false
2,932
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Recipe for uploading DM results. import calendar from recipe_engine import recipe_api DM_JSON = 'dm.json' UPLOAD_ATTEMPTS = 5 VERBOSE_LOG = 'verbose...
[ "skia-commit-bot@chromium.org" ]
skia-commit-bot@chromium.org
c8dd1a5fd5d1e0c0be705d36c08d93864591af1b
967b7022158daacc77604bf650bd79303a669994
/solutions/ThirtyMusic/stabr_history_aslm.py
d1c1d737f36cf6b5b08ae661a0a1eb42b76040ac
[]
no_license
x775/skips-recommender
2653d9b20c970b294fa0120e62e3e8b3279ef4a4
6ef3ee448895e5b05111deb9a01c455a12e299cc
refs/heads/master
2023-02-17T23:30:57.143248
2021-01-21T22:56:53
2021-01-21T22:56:53
331,425,286
5
0
null
null
null
null
UTF-8
Python
false
false
9,774
py
import tensorflow as tf import tensorflow.keras.layers as layers import tensorflow.keras.backend as K class GRUSkipCell(layers.Layer): def __init__(self, units, **kwargs): super(GRUSkipCell, self).__init__(**kwargs) self.units = units self.state_size = self.units self.output_size =...
[ "x775@users.noreply.github.com" ]
x775@users.noreply.github.com
3a5912957350ed986573050c9f331ab000478692
5d0e8ac83fc0e39adb1b031cc01187bcdeb3a452
/h2o-py/tests/testdir_javapredict/pyunit_javapredict_irisDRF.py
dde1d997ffd534e4322911996f0d558a268813e9
[ "Apache-2.0" ]
permissive
xxushans/h2o-3
f466a3faebb7342c7e41266b5d8ba0a40a2d1cff
1567366c926b932acf8051a9ef579b966133f5f8
refs/heads/master
2021-01-14T08:56:24.477570
2015-10-20T20:25:23
2015-10-20T20:25:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
def javapredict_iris_drf(): # optional parameters params = {'ntrees':100, 'max_depth':5, 'min_rows':10} print "Parameter list:" for k,v in zip(params.keys(), params.values()): print "{0}, {1}".format(k,v) train = h2o.import_file(pyunit_utils.locate("smalldata/iris/iris_train.csv")) test = ...
[ "eric.eckstrand@gmail.com" ]
eric.eckstrand@gmail.com
b4a8729faabf00c3c189209fa6f19dfa2580a827
06b45f01890b1a08e708859120926c1291c6160d
/pedido_compra/pedido_compra.py
55f18e1a58de1a2e681e25b7bf4d23b2a6d4f30e
[]
no_license
LFer/compras_estatales_uy
384874aa675fbf065e4121961534af0889f4d77a
1f003389f63dee16a76701669ff02d12095a3bce
refs/heads/master
2020-04-14T14:27:37.717871
2014-03-24T19:53:02
2014-03-24T19:53:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,220
py
# -*- coding: utf-8 -*- from osv import osv from osv import fields import openerp.addons.decimal_precision as dp LISTA_ESTADOS = [ ('nuevo', 'nuevo'), ('pendiente_de_aprobacion', 'Pendiente de aprobación'), ('aprobado', 'Aprobado'), ('rechazado', 'rechazado'), ('afectado', 'Afectado'), ('provee...
[ "root@felipe-OEM.(none)" ]
root@felipe-OEM.(none)
836335f484bebddd4802c41ac8b479769d96c4ff
9512f6eea340cd00559659d2fbba5b4fe4668a55
/JeuCartes.py
cb023e06e80b0ce67187e2316d22e8851d0d13d2
[]
no_license
Mehdi-SIO/card_game
0af98d792c88dad0d9e2f8f143bc304887f38b07
67ddcb1156d4abc8122a6204e9bb8cb874b23cd1
refs/heads/master
2021-01-23T12:11:14.327571
2016-08-20T10:20:23
2016-08-20T10:20:23
62,459,536
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
from Carte import Carte import random class JeuCartes: def __init__(self): self.__cartes = [] for val in range(2, 15): for coul in range(4): self.__cartes.append(Carte(val, coul)) def __str__(self): carte_du_jeu = "" for carte in self.__cartes: ...
[ "mouaghlani@octo.com" ]
mouaghlani@octo.com
7a302195e046d6479c47e3e8e3ce7e4766a114df
05f8abf023ad1d35ba32a11cb71d348544efd6ae
/python/literature.py
d1da8c23dcf295bb488944c096cc45779963c80f
[]
no_license
robinsonaj/robinsonaj.github.io
3233588f05c85166d6a1f1a4acb0ac89e32cd9cf
b755d0549cffa35cc41e10339f374ac3fc43986f
refs/heads/master
2020-05-31T02:00:42.615493
2019-06-06T19:49:38
2019-06-06T19:49:38
190,057,936
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
texts = {"Jane Eyre":1847, "Cane":1923, "Wide Sargasso Sea":1966, "Citizen: An American Lyric":2014} for title, date in texts.items(): print(str(title) + " was published in " + str(date))
[ "robinson.a@wustl.edu" ]
robinson.a@wustl.edu
875a44e60ea4e59601168d9d7f65ea708ca57074
51cbb3ecd3041e39f9bf1f02db1bc9d1b9fd7c46
/api/views.py
cd7d62156dcb85bef2c20c5c59619395a280709f
[]
no_license
kbonna/cog-hack-2021-backend
487d8b1bc546692dbbd10ac3366882c38167519e
0bd897be206cbc94e3827f130e694d9762882f47
refs/heads/master
2023-02-17T23:48:29.547539
2021-01-16T21:31:52
2021-01-16T21:31:52
330,255,454
0
0
null
null
null
null
UTF-8
Python
false
false
1,354
py
import matplotlib.pyplot as plt from django.shortcuts import render import os from fer import FER from rest_framework import status from rest_framework.parsers import FormParser, MultiPartParser from rest_framework.response import Response from rest_framework.views import APIView from .models import Face from .seriali...
[ "kongokou@gmail.com" ]
kongokou@gmail.com
80eeafcfe49a8c11c95469514b944e39cb3d1d72
28de04457e8ebcd1b34494db07bde8a3f25d8cf1
/easy/merge_strings_alternately_1768.py
6fe5922a1b727e8804d12c5ee7a5e010c4426ba1
[]
no_license
YangXinNewlife/LeetCode
1df4218eef6b81db81bf2f0548d0a18bc9a5d672
20d3d0aa325d79c716acfc75daef32f8d4f9f1ad
refs/heads/master
2023-08-16T23:18:29.776539
2023-08-15T15:53:30
2023-08-15T15:53:30
70,552,512
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
# -*- coding:utf-8 -*- __author__ = 'yangxin_ryan' """ Solutions: 题意是给定两个字符串,然后依次进行拼接 处理逻辑就先先找出来公共的长度,然后将非公共的部分补充在里面即可。 """ class MergeStringsAlternately(object): def mergeAlternately(self, word1: str, word2: str) -> str: result = "" min_len = min(len(word1), len(word2)) temp_index = 0 ...
[ "yangxin812716131@163.com" ]
yangxin812716131@163.com
a2572c5daff36a8bb21decc52a7cb7a2cc07b318
106c0579e1d4b43b6fa1fd993ba7c3d18348b899
/ATMGUI/__init__.py
1bc3b95f9ce8320b88cc347869d7d9788d190b09
[]
no_license
cookesd/RandomDev
479593759de8f11b4a282cf3b76ba56c0dc88840
83c56267ce122dfe80744d845d234dc5246d55f9
refs/heads/master
2022-12-30T23:54:58.422723
2020-10-25T19:53:42
2020-10-25T19:53:42
295,150,914
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
# import tkinter as tk # import pandas as pd # from.classes import *
[ "stuart.d.cooke@gmail.com" ]
stuart.d.cooke@gmail.com
3050965c64c5dfae7c9d9c36d91d10ca83bbb00f
0891265c435e189ac67b77510416c5d883af7c73
/KerasUtils/KerasUtils.py
f0943a7ac6caeaa199e9c1e1671cca95fadf6915
[ "MIT" ]
permissive
pietromosca1994/PyTools
71c36386ccdf2bf552b05af04eca02344fc6e1cc
37974246b984d4b4024ec1439990107fadc0494a
refs/heads/master
2023-01-03T21:47:54.191899
2020-10-25T13:38:25
2020-10-25T13:38:25
267,836,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
import os from DataExport import SaveData from DataExport import LoadData from tensorflow.keras.models import load_model from tensorflow.keras.models import load_weights ####################################################################################### # save model ################################################...
[ "pietromosca1994@gmail.com" ]
pietromosca1994@gmail.com
d7fee4d710b12ded07914ad58487c609451641e1
62e2e6de3256a0d84c46467b7876bb3da419209d
/stat133/info.py
dae9c2770a5c50c7eae7593bc2cdcc23b2a3ef83
[]
no_license
yuchengzhang/Final-Repository
2f8b5a7e1638a75c19af2743df4b63bd41aa2402
4032cfd6646fadbd48dc4f475755921341aba287
refs/heads/master
2021-01-15T10:47:13.727130
2014-05-11T05:42:01
2014-05-11T05:42:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
name = "Yucheng Zhang" email = "frank.zhang@berkeley.edu" github_name = "yuchengzhang"
[ "frank.zhang@berkeley.edu" ]
frank.zhang@berkeley.edu
0acfde7d97b1eac2a57d64732752fa8041dc7477
777abc58651ae149b812b3eb2f6da286f0f5dd19
/new_report.py
14d92c85dec059e195520d7fd07f9a7f8dfd2337
[]
no_license
Pythonov/Qt
e4796982320981ec2193a6115e699dd54ed48545
6c5dcfa85e68dc66932439827bb5b731a37d939a
refs/heads/master
2023-08-20T02:28:31.943085
2021-10-20T09:19:04
2021-10-20T09:19:04
402,314,459
0
0
null
null
null
null
UTF-8
Python
false
false
2,956
py
class Report: def __init__( self, include_error_data: bool = False, max_count_error_data: int = 1000, ): self.include_error_data = include_error_data self.max_count_error_data = max_count_error_data self.success_dict = 0 self.success_data = 0 ...
[ "grringo3@gmail.com" ]
grringo3@gmail.com
e8aa6f13db12e6079697b3754a63bb24bcc8c34c
279f415dd1e06c594c6c87deda57e201c73c4542
/test/espnet2/schedulers/test_noam_lr.py
1e34d4684444b4b4dde33466d11137fe8f499a5a
[ "Apache-2.0" ]
permissive
espnet/espnet
f7ba47271c1a6b1ed606dbbfb04a7f14220bb585
bcd20948db7846ee523443ef9fd78c7a1248c95e
refs/heads/master
2023-08-28T23:43:34.238336
2023-08-23T02:51:39
2023-08-23T02:51:39
114,054,873
7,242
2,244
Apache-2.0
2023-09-14T08:01:11
2017-12-13T00:45:11
Python
UTF-8
Python
false
false
313
py
import torch from espnet2.schedulers.noam_lr import NoamLR def test_NoamLR(): linear = torch.nn.Linear(2, 2) opt = torch.optim.SGD(linear.parameters(), 0.1) sch = NoamLR(opt) lr = opt.param_groups[0]["lr"] opt.step() sch.step() lr2 = opt.param_groups[0]["lr"] assert lr != lr2
[ "naoyuki.kamo829@gmail.com" ]
naoyuki.kamo829@gmail.com
48e912e81203c08aaefee933541c2bd678f7560b
955f9d3fb34af54de2f046d17bbac11c1474819e
/arc040/a/a.py
d3497651c70b1e270f5ae7749f72b8504c1d40f0
[]
no_license
shimewtr/AtCoderPracticePython
5bb4c28119fced2d111bd1810e0e290f25b6a191
f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6
refs/heads/master
2023-01-12T17:28:44.770138
2020-11-19T22:50:22
2020-11-19T22:50:22
204,830,292
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
n = int(input()) r = 0 b = 0 for i in range(n): s = input() r += s.count('R') b += s.count('B') if r > b: print('TAKAHASHI') elif b > r: print('AOKI') else: print('DRAW')
[ "shime@shimewtr.me" ]
shime@shimewtr.me
334b108ede915f2978c4c60ecab922e2db736edb
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/catapult/catapult_build/js_checks.py
78cc745ebd8c0a9d391d4f7b6b80392c3d74fce2
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
Python
false
false
3,390
py
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re import eslint from py_vulcanize import strip_js_comments from catapult_build import parse_html class JSChecker(object): def __init__(sel...
[ "arnaud@geometry.ee" ]
arnaud@geometry.ee
1e7328c18fccb044add7d31e77fb870e9b28968b
7bdf525510bd42f35c72d6d232d6534b156cf68d
/scrapers/coca_cola.py
962d3ba7e60228c717f8d5b2a7448ad7e4beb1f6
[ "Apache-2.0" ]
permissive
spendright/scrape-companies
81af39e9aef44d1e722f6820b1c6277028865fe1
1b4b63be3b39c89fc2c954e63497d37519a95dd6
refs/heads/master
2021-01-21T05:01:18.007866
2016-06-07T22:00:59
2016-06-07T22:00:59
39,039,897
0
1
null
null
null
null
UTF-8
Python
false
false
1,950
py
# -*- coding: utf-8 -*- # Copyright 2014 SpendRight, Inc. # # 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 b...
[ "dm@davidmarin.org" ]
dm@davidmarin.org
270aaddedb72e83d89edde7860500e85380b8b0d
4dd695521343d56ff943e8c1768343d7680714e3
/experiments/scripts_auto_crossdataset_ynoguti_braccent/config_SVM_1024_crossdataset.py
70cd8e2343abb6a9b2f80d3d2b006aed092d244f
[]
no_license
natharb/environment
ea659ee541f6473e92b5b30c549e52b66f47b280
86e6cee6e01d2370abeb7c55a2c8a15001735919
refs/heads/master
2021-09-28T02:39:02.222966
2018-11-13T12:03:34
2018-11-13T12:03:34
139,762,646
1
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
#!/usr/bin/env python # vim: set fileencoding=utf-8 : #Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br) import sys sys.path.insert(0, '.') import bob.bio.spear import bob.bio.gmm import numpy import scipy.spatial temp_directory = './results/crossdataset_ynoguti_braccent/SVM/1024/temp/' result_directory =...
[ "nathbapt@decom.fee.unicamp.br" ]
nathbapt@decom.fee.unicamp.br
6cdc14c3b39b2c84ee1c69365e5af44d126486f8
c54cec9ae2870352de38e3bca80155443fa844a9
/conduit/apps/core/exceptions.py
4b98944655dfd0d2937643692685a6a1082221d9
[]
no_license
graphael7/conduit-django
6bd2a1b99828d00f8dd97f305d9be9f7bab23343
eef870c940ae71f1cc89eb8bdcfcfd38ab58ae7b
refs/heads/master
2021-07-23T12:30:14.841145
2017-11-02T14:02:52
2017-11-02T14:02:52
106,417,912
2
1
null
2017-10-10T13:02:35
2017-10-10T13:02:35
null
UTF-8
Python
false
false
1,006
py
from rest_framework.views import exception_handler def core_exception_handler(exc, context): response = exception_handler(exc, context) handlers = { 'NotFound': _handle_not_found_error, 'ValidationError': _handle_generic_error } exception_class = exc.__class__.__name__ if exceptio...
[ "graphael@Norths-MacBook-Pro.local" ]
graphael@Norths-MacBook-Pro.local
667f0de301eedc9bc5b6e173a05384d6bf47718f
a887feb33f350eb59c3184db7ddcaabe5119fc3e
/better_implementations.py
679abea8fbb0a8f00e9368b6fbe463f9da1a18d7
[]
no_license
Adirlou/Project1-ML
a2bd3cb1747c6a61b6cc2ea7bb9d481abbc1193c
6ff65d2afebc0e29b0cbe645193a0f19782d486f
refs/heads/master
2020-04-04T16:49:59.879808
2018-11-04T16:18:07
2018-11-04T16:18:07
156,095,503
1
0
null
null
null
null
UTF-8
Python
false
false
2,811
py
from helpers import * import numpy as np def accelerated_least_squares_GD(y, tx, initial_w, max_iters, lambda_=0): """Gradient descent algorithm.""" #Define parameters to store w and loss ws = [initial_w] losses = [] w = initial_w #Parameters for AGD yw = w #Compute the eigenvalues to...
[ "adrien.vandenbroucque@gmail.com" ]
adrien.vandenbroucque@gmail.com
bbc09ec48ac312da5af351b94a2e18769a2ac677
c867e0d5102d2eb0bfbffb6255a16b2ce3fda339
/src/localEnv/agent.py
496a1e537671637070a639e58cef28ef4711d017
[]
no_license
dufourc1/SemesterProjectMA3
54329db72125e83c594320f7790b1b90907dcc19
9717cbd1b37b07b16ca2a081d363e7821c19efdc
refs/heads/master
2020-07-21T08:25:29.969488
2020-03-10T13:50:03
2020-03-10T13:50:03
206,796,125
2
0
null
2020-04-28T18:23:47
2019-09-06T13:08:13
Jupyter Notebook
UTF-8
Python
false
false
2,718
py
import numpy as np class AgentStatic(): def __init__(self, EnvAgent): self.initial_position = EnvAgent.initial_position self.position = EnvAgent.position self.initial_position = EnvAgent.initial_position self.direction = EnvAgent.direction self.target = EnvAgent.target ...
[ "ed.ghaleb@gmail.com" ]
ed.ghaleb@gmail.com
e95a67c2ef831b25407aa869be369412d2cfe3fd
9d7a903c2374e1c57fdb7ac3331f82e3c1e4485c
/eventex/subscriptions/tests/test_admin.py
67bb5e0358df5b9b7599d8661820d64f7f0b1afc
[]
no_license
rafagitaccount/eventex
f844fa996db271aa3f0d6ab351970fdbc8ff7452
36fc5462d09c0512985ff5ed9ffb8b116b6201c5
refs/heads/master
2023-06-03T23:49:28.909219
2021-06-23T15:05:54
2021-06-23T15:05:54
374,220,249
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
from unittest.mock import Mock from django.test import TestCase from eventex.subscriptions.admin import SubscriptionModelAdmin, Subscription, admin class SubscriptionModelAdminTest(TestCase): def setUp(self): Subscription.objects.create(name='Henrique Bastos', cpf='12345678901', ...
[ "consultoria@tekplus.com.br" ]
consultoria@tekplus.com.br
e78a09ac831a30a2e4fdb4142c9147696173cb4b
01dc1e061450c8ef64a68aba17c7a9cf3e12e10d
/sorting/quick_sort.py
f2e4c66df278b8abae3f43067ffaf8ed76599094
[]
no_license
Omarfos/Algorithms
28617766084b29d951a01c52b4685bfb351c59aa
01982eaa9a29ea8c67b6d02aa4fc7b7c6cf62e0d
refs/heads/master
2022-10-14T06:00:06.451496
2020-06-14T00:22:03
2020-06-14T00:22:03
271,339,287
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
class Solution: def quick_sort(self, nums, low, high): if low < high: q = self.partition(nums, low, high) self.quick_sort(nums, low, q-1) self.quick_sort(nums, q+1, high) return nums def partition(self, nums, low, high): key = nums[high] i = ...
[ "omaramin4@gmail.com" ]
omaramin4@gmail.com
dd4532867225260b493c78ccb86707a010c68f3e
412b0612cf13e9e28b9ea2e625975f3d9a2f52b6
/2022/16/pressure_release.py
450cad8ba653b096a272d2898024b05e9b964992
[]
no_license
AlexClowes/advent_of_code
2cf6c54a5f58db8482d1692a7753b96cd84b6279
d2158e3a4edae89071e6a88c9e874a9a71d4d0ec
refs/heads/master
2022-12-24T19:02:07.815437
2022-12-23T17:35:53
2022-12-23T17:35:53
225,618,394
0
0
null
null
null
null
UTF-8
Python
false
false
2,151
py
from collections import defaultdict import functools import heapq from itertools import combinations, pairwise, permutations import re from tqdm import tqdm def main(): pat = r"Valve (\w+) has flow rate=(\d+); tunnels? leads? to valves? ([,\s\w]+)" flow_rate = {} graph = defaultdict(dict) with open...
[ "alexclowes@gmail.com" ]
alexclowes@gmail.com
e2a69d46068149b397105390ea1ba7d512b7b66f
6c816c8f38167f52ed2ba5a675fb04ddf4c44e81
/problem1.py
8d76e46879dcd721175cf5b9ab58466587ae1105
[]
no_license
pjrenzov/project_euler
9ca26482c458c166db85fdec358468c09ccef183
7c98603badbdffe6256c131dc42d3c083aaefe38
refs/heads/master
2023-03-30T06:56:24.440800
2021-04-07T10:17:45
2021-04-07T10:17:45
290,428,893
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
import numpy as np arr = [] for i in range(1,1000): if i%3==0 or i%5==0: arr.append(i) sum = np.sum(arr) print(sum)
[ "parasjadiya@icloud.com" ]
parasjadiya@icloud.com
68c238c689b8854bee9f2f7b9feb5cd12b6e2b4d
7af69099d27f9e13dd500d38f38f16ebb5fd5dc6
/Accessibility.py
4d978e1cc117447d7514b5a18a298494f8d3b931
[ "BSD-3-Clause" ]
permissive
lrayle/accessibility
60bead93a70fd094b45bcdf87f84228f15fed110
427f90e1e2a6557f31aac67fd5cded373c0850f4
refs/heads/master
2021-01-21T17:23:20.796772
2017-03-23T05:03:55
2017-03-23T05:03:55
85,274,771
0
0
null
null
null
null
UTF-8
Python
false
false
9,988
py
#!/usr/bin/env python # coding: utf-8 # Accessibility.py # """This module calculates accessibility scores given sets of travel time data and land use data. Make sure the names of input data files are correct. Also specify the land use activities wanted. There is the option use a cumulative opportunitie...
[ "lrayle@gmail.com" ]
lrayle@gmail.com
0e5c913c9e66bd341d881efab50b0f851b780515
01a2f1838e6794b8ab238266b6217c95b6534f2b
/run_dynesty_multipole.py
18af48b0777313fbc2327e733dc7f6df5119d930
[]
no_license
SandyYuan/BOSSfits
5e8e5f5dcb3ff31dea6263908da9df8a793835e5
1323009ee34c4a9111b52a4810d8e9d0b0bc62ee
refs/heads/master
2023-08-17T13:34:46.992776
2021-09-29T22:16:39
2021-09-29T22:16:39
411,844,461
0
1
null
null
null
null
UTF-8
Python
false
false
18,782
py
#! /usr/bin/env python import os import time import sys import numpy as np import argparse import yaml import dill from scipy import stats import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as pl import matplotlib.cm as cm from matplotlib import gridspec from matplotlib.lines import Line2D import matpl...
[ "sihan.yuan@cfa.harvard.edu" ]
sihan.yuan@cfa.harvard.edu
378055851595a6f4509513667890d3915c1def51
3b504a983f1807ae7c5af51078bfab8c187fc82d
/client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py
d55efec79392f37f2e6fbd53db0997fa8ae8c1b0
[]
no_license
SEA-group/wowp_scripts
7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58
2fe54a44df34f2dcaa6860a23b835dcd8dd21402
refs/heads/master
2021-09-07T23:10:13.706605
2018-03-02T17:23:48
2018-03-02T17:23:48
117,280,141
0
0
null
null
null
null
UTF-8
Python
false
false
1,245
py
# Embedded file name: scripts/client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py from gui.HUD2.core.DataPrims import DataSource from gui.HUD2.hudFeatures import Feature class AttitudeIndicatorSource(DataSource): def __init__(self, features): self._model = features.require(Feature.GAME_M...
[ "55k@outlook.com" ]
55k@outlook.com
d0af2d4e14fdd021b73ea515fbf12eec2fb44871
8c0a13fed1cde3c148f59edaff65378ec917105c
/zhihu_crawler/zhihu_crawler/settings.py
f2137800e0f19331df4af62f293671ebc6eec032
[]
no_license
XUranus/zhihu-public-opinion-analysis
8e497582ac051e8beb5607d2f82ee2ce7c7d3efe
f7496ccd9304d44a1e7709dae7e233fc8dbebe32
refs/heads/master
2022-12-09T22:39:05.823886
2020-09-06T12:29:37
2020-09-06T12:29:37
293,271,928
1
0
null
null
null
null
UTF-8
Python
false
false
3,392
py
# -*- coding: utf-8 -*- # Scrapy settings for zhihu_crawler project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/late...
[ "2257238649wdx@gmail.com" ]
2257238649wdx@gmail.com
9755d4fc53185fffaae4ee7a77d41a8749a08667
3e9b13346084696d589b9a856db82b5fc4d1cd68
/accounts/models.py
495ba2743d9ae37eed30b7b37039a4880c7ec14a
[ "BSD-3-Clause" ]
permissive
subhailams/pycharm_django_ecommerce_app
4a23d0324dd7d31c67f09da2b9636fa4c6650eba
64e006470b4a9afb33a86498c7e6e0bfb5bde172
refs/heads/master
2023-01-19T12:16:05.244832
2020-11-23T19:07:55
2020-11-23T19:07:55
315,253,673
0
0
null
null
null
null
UTF-8
Python
false
false
7,715
py
from datetime import timedelta from django.conf import settings from django.db import models from django.urls import reverse from django.core.mail import send_mail from django.db.models.signals import pre_save, post_save from django.db.models import Q from django.template.loader import get_template from django.utils im...
[ "subhailams@gmail.com" ]
subhailams@gmail.com
01e37d72a54fb67fc279b8a9d7469470c7d54586
ec2b3b8b61cef4e94447ad70e543b690d70050e5
/order-1_voronoi/core/fortune/arc_tree/Arc.py
69579dc3f9bf92572ce60e9e24790faf3580a891
[ "MIT" ]
permissive
bzliu94/algorithms
d6e491f6d3c68c50a37bab504501a73362b9a94d
43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff
refs/heads/master
2021-01-17T02:22:26.044478
2020-08-02T01:13:59
2020-08-02T01:13:59
36,104,048
0
0
null
null
null
null
UTF-8
Python
false
false
12,170
py
# from BeachLineItem import * import math # class Arc(BeachLineItem): class Arc: # focus is a (x, y) pair # def __init__(self, focus, arc_tree): """ def __init__(self, focus, insert_l_y): self.focus = focus # self.arc_tree = arc_tree self.insert_l_y = insert_l_y ""...
[ "bzliu94@gmail.com" ]
bzliu94@gmail.com
9c299c08db951c0e5066a5ebdddf5a809aa00da1
54da2be33c1015dcb3b4bbb92c9d99a4995ffa4e
/uebung1.py
498ba4eb1476c9e47b0f8bc38126b982f1582d74
[]
no_license
OlleSocke/project1
32a8b8a8ea5f95104e29ce0d8bff9fd0d459318a
d778832bf8a8f1c5bab3c44723af658f839413e4
refs/heads/master
2022-10-05T19:23:46.091340
2020-06-05T12:46:03
2020-06-05T12:46:03
269,623,363
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
en_de = { "house" : "Haus", "cat":"Katze", "black":"schwarz" } print(en_de)
[ "julia.vonundzu@gmail.com" ]
julia.vonundzu@gmail.com
c703cfd1d7f105989082d8a7e3dd3a29d2c13653
6e2c028dcf2753234ea06e78efb98721268f05c0
/imageupload/extract_cnn.py
54263e3764fe470c12c50eacbe459d9ba3241061
[]
no_license
Muhongfan/Medical-images-retrieval-system
293ff172aee8d2c3df8506cda9333d4d69afd53c
593a4635b4f3ed1d7f5a263f15c7b36bf45179ac
refs/heads/master
2023-04-19T01:48:32.475487
2023-03-28T17:38:22
2023-03-28T17:38:22
180,872,607
2
0
null
null
null
null
UTF-8
Python
false
false
1,285
py
# -*- coding: utf-8 -*- import numpy as np from numpy import linalg as LA #from keras.applications.vgg16 import VGG16 from keras.applications.resnet50 import ResNet50 from keras.preprocessing import image from keras.applications.resnet50 import preprocess_input #from keras.applications.vgg16 import preprocess_input...
[ "amber1216@live.cn" ]
amber1216@live.cn
4693d026ff3eb51517ea1524650b2119fb6af8db
77c4ca9b33e007daecfc4318537d7babea5dde84
/tensorflow/python/keras/mixed_precision/experimental/keras_test.py
498077829da14e10358b297127d0a5d1b268ac03
[ "Apache-2.0" ]
permissive
RJ722/tensorflow
308eede8e911e2b6a6930fef3e24a493ab9a2a61
6c935289da11da738f2eaed18644082f3a6938d6
refs/heads/master
2020-12-20T16:51:12.767583
2020-01-25T06:46:50
2020-01-25T06:51:20
236,138,137
2
3
Apache-2.0
2020-01-25T07:12:41
2020-01-25T07:12:40
null
UTF-8
Python
false
false
46,076
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
71e773b39092734bd965a8cebf1ca7f7beedcadd
59fde82e6506f682087ac579473d30cf3641ddc0
/aoc2020/day12/__init__.py
34c5ee817eb8a5708c7892c6c2b805340963ce2f
[]
no_license
meznak/advent-of-code-2020
4f8d595c83b356e54db752c03881d9a4b950d4e5
381d02e22eadd8391453d577738e006f309dcb9b
refs/heads/master
2023-02-16T17:04:34.651738
2023-02-16T04:34:17
2023-02-16T04:34:17
317,687,641
1
0
null
null
null
null
UTF-8
Python
false
false
2,803
py
''' Advent of Code Day 12 Rainy Risk ''' SAMPLE_SOLUTIONS = [25, 286] class Ship(object): '''A ferry''' def __init__(self, position = (0,0)): self.x_pos = position[0] self.y_pos = position[1] self.direction = 90 def turn(self, action: chr, value: int) -> None: '''Turn the...
[ "nplamondon@gmail.com" ]
nplamondon@gmail.com
935b23e2e67d4e100687a4969ef5f57533078a41
fd9b292cc7a00b73fc9b0e6a9cd9d87ecdc9d74d
/SkillChecker/test/api_test.py
428e8c3b011a3df445e0f6f462159703945fcfb7
[]
no_license
KathLevi/SE_Website
3148443365d46c1c6b5f75c68dc4f352eca6787b
34c4da584551d6f27b586ac4943d63c493fa1b97
refs/heads/master
2021-04-26T23:45:03.381321
2018-05-18T03:41:28
2018-05-18T03:41:28
123,849,220
0
0
null
2018-05-03T22:16:38
2018-03-05T01:47:06
JavaScript
UTF-8
Python
false
false
303
py
import subprocess import json def apiListSkills(): output = subprocess.check_output(args=['ask','api','list-skills'],shell=True) return output.decode() out = apiListSkills() out = json.loads(out) for skill in out['skills']: print(skill['skillId']) print(skill['publicationStatus'])
[ "andrew.gazeley@gmail.com" ]
andrew.gazeley@gmail.com
3c2ef61a517ea23a19b6ea35102c794294a02536
c6b33f9cb6048d4fe8d1c16713ed4dba63f804aa
/recursive_fibbonacci.py
f79aa8a759ae99ea4dcdb5bda11b11ac2e8ff180
[]
no_license
Regul777/Trading_Algos
80d4eedff11024679620c2d33bc116690375e798
e44780212589bbd80241edc663e1ef791a400e74
refs/heads/main
2023-03-05T23:37:57.510277
2021-02-15T06:28:09
2021-02-15T06:28:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 11 15:39:10 2020 @author: kieranodonnell """ import numpy as np import time #Fibbo def fibonacci(n): if n <=1: return n else: return (fibonacci(n-1)+fibonacci(n-2)) #Main def main(): num = np.random.randint(1,25) ...
[ "kieran.j.odonnell@gmail.com" ]
kieran.j.odonnell@gmail.com
2be734b805eb9d572246ff46fab40157e94edfef
6de5767c575b738ba945969f0072dd2c54106e47
/journile/urls.py
820f2f4a2f17771d227c296683573623c6645e88
[]
no_license
safwanrahman/journile
254d39e2dd05df91a99e3e97ae1d8a64ba465516
efc46061a8eb3fa97d90431e683f9f605c9964a0
refs/heads/master
2022-12-17T16:00:48.229056
2017-06-24T22:28:31
2017-06-24T22:28:31
95,325,982
0
0
null
2021-06-10T19:37:45
2017-06-24T22:26:49
HTML
UTF-8
Python
false
false
765
py
"""journile URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
[ "safwan.rahman15@gmail.com" ]
safwan.rahman15@gmail.com
27097f66d339d9255ee5e4b322f8d4404dfa3274
ad0d5f0c161ba5624a42b8128a2cbe9b47a48c50
/2017/day05/solve.py
513c2644e2c327703f0a54e59bc8ee21c20bdd92
[]
no_license
jlescher/aoc
75d5aac1ff76bdb235ce70c7637bcc04fe9a9191
c0d704b90c25ac4dac9c5b6dc018943f442dbe7b
refs/heads/master
2022-04-17T03:57:18.649182
2020-04-19T21:20:11
2020-04-19T21:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
#!/usr/bin/env python3 def simple_increase(steps): ix = 0 cnt = 0 while 0 <= ix < len(steps): cnt += 1 inc = steps[ix] steps[ix] += 1 ix += inc return cnt def not_so_simple_increase(steps): ix = 0 cnt = 0 while 0 <= ix < len(steps): cnt += 1 ...
[ "jblescher@gmail.com" ]
jblescher@gmail.com
2dbeed1dcdd89e81a9c6703e2d459c3d9b55a577
ba46f774793ff06ae12cbed51a024142d2b0f63e
/topiary/cli/outputs.py
a4d26ea8ba21e21749e38ca4d7e35b53b424729f
[ "Apache-2.0" ]
permissive
Saintyven/topiary
05fe9eb9b0a9bbb851564d0d835d967bf1fce6ab
04f0077bc4bf1ad350a0e78c26fa48c55fe7813b
refs/heads/master
2021-09-07T17:21:56.267182
2018-02-26T19:56:58
2018-02-26T19:56:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,255
py
# Copyright (c) 2017. Mount Sinai School of Medicine # # 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 o...
[ "alex.rubinsteyn@gmail.com" ]
alex.rubinsteyn@gmail.com
0c85cf23abb1d04fd0e059f646b0947f308e3492
b1a6c44495c3a0cf8ac3f6df52d5a984cdb7b471
/cocotbext/pcie/core/caps/pcie.py
6bfd9e4f79d19070b5c39f930008bccafb060fa1
[ "MIT" ]
permissive
psumesh/cocotbext-pcie
a678384b2bdbb1d2d79d12b639e78b1b3dba2c0d
17d98d16da10e5839cf6826c08fc80971fd50298
refs/heads/master
2023-08-15T02:53:44.731590
2021-09-26T10:58:42
2021-09-26T10:58:42
358,151,301
0
0
MIT
2021-04-16T16:36:25
2021-04-15T06:27:52
null
UTF-8
Python
false
false
32,943
py
""" Copyright (c) 2021 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
[ "alex@alexforencich.com" ]
alex@alexforencich.com
b8448b1acc86241fe7715f5a372de9475512adc0
3559d052c69a4d70be089a491f44da9afd735835
/app/user/model.py
84d01da30fcfd536d523817ca4cce4c4574d5bfe
[ "MIT" ]
permissive
Hanaasagi/Ushio
0a039204317d548ba6adf586ad759b43269e50b6
007f8e50e68bf71a1822b09291b1236a1a37c515
refs/heads/master
2020-05-21T10:09:36.173122
2017-03-26T04:03:19
2017-03-26T04:03:19
69,733,823
5
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
# -*-coding:UTF-8-*- from ushio._model import Model class UserModel(Model): __rules__ = { 'username': { 'label': '用户名', 'required': True, 'type': unicode, 'max_length': 36, 'min_length': 1, 'pattern': ur'^[a-zA-Z0-9_\-\u4e00-\u9fa5]...
[ "949241796@qq.com" ]
949241796@qq.com
f0cfc11ac7bdbd46f6556b49a3637218927f3cb7
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/build/android/gyp/jinja_template.py
ba335a248b06620e7b8f9d1dac8dfd6b516e3ac5
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
Python
false
false
6,456
py
#!/usr/bin/env python # # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Renders one or more template files using the Jinja template engine.""" import codecs import argparse import os import sys from u...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
e9efec337c980a999a72131b97ffb0caae8b4eb5
b1e958f90059cd97b8c1cb62abb34948fa867569
/Mini-projects/7 - Spaceship/mini-project - Student 5.py
9968fe6bacc39a38cfc68711ff7b017b3ec4e1d5
[]
no_license
deltaworld/python-programming-coursera
ff756f3522a79f9b2101607f8156adc8d256db10
740ef3b02c05323e8da691ccbaa17337deb32db7
refs/heads/master
2021-01-23T03:04:25.476645
2015-07-15T13:25:22
2015-07-15T13:25:22
39,136,483
0
0
null
null
null
null
UTF-8
Python
false
false
10,476
py
# http://www.codeskulptor.org/#user16_7BY7hy435a_16.py #This game was designed to run in Chrome browser # program template for Spaceship import simplegui import math import random # globals for user interface WIDTH = 800 HEIGHT = 600 ROTATION_VEL = 0.2 FORWARD_VEL = 1 SPACE_DEBRIS_FRICTION = 0.925 score = 0 lives = 3 ...
[ "itrainit@gmail.com" ]
itrainit@gmail.com