blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
9d45c7ac1d31dcdc4b7a018c9ea7c272e9ce58b4
2c3da6e0bddf55d64d650040bbf286c47b31811a
/学习路线/1.python基础/day12/03-自定义异常.py
bd4172eec5c4d550a58d35d8fc6cc71179cba149
[ "MIT" ]
permissive
Bngzifei/PythonNotes
76bd53db3033a9c51ab4bdd727842cd89607b584
01590e1b6c1bc0f04aa2d355fa2553c04cce27f2
refs/heads/master
2023-02-04T06:49:00.725463
2020-12-15T09:26:40
2020-12-15T09:26:40
155,154,662
1
2
MIT
2020-09-08T01:30:19
2018-10-29T05:02:48
Python
UTF-8
Python
false
false
1,938
py
""" 异常抛出的原理: raise: 关键字 抛出 表示抛出指定的异常实例对象 raise 抛出异常的实例对象,然后except去拦截这个异常实例对象. 能不能拦截:是要看这个错误是不是这个错误的类创建的. 拦截:判断是不是同一个类造出来的,是,就把这个异常实例对象赋值给error. 先抛出来才能拦截. 自定义异常:不用解释器提供异常类. 1> 让异常信息是中文的,让用户也能看懂.更加人性化 2> 提前干预,还没有出错之前就来对问题进行处理. 3> 简化异常处理的流程,批量抛出,一次拦截. 注意: 自定义异常类必须继承Exception类,是为了使用raise的能力.否则会报错误. """ # try: #...
[ "bngzifei@gmail.com" ]
bngzifei@gmail.com
f1629890cb41cf63d385ff4525caec9e3678951b
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/word-count/4633f41ce11c4f3db40f1cfe10da8a7c.py
7c016a0265697b750d833f5b89770e6f4100a444
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
355
py
import string def stripPunc(x): # From S.Lott's solution for i in string.punctuation: x = x.replace(i,"") while " " in x: x = x[0:x.find(" ")] + x[(x.find(" ") + 1):] return x def word_count(x): words = {} for i in stripPunc(x).lower().split(" "): if i in words: words[i] += 1 el...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
3acf4e7c0a1d9229123d0246516ee9b90f9c7d65
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_2239+043/sdB_PG_2239+043_coadd.py
8fd4cff041120c8922b19c408c25702306753147
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[339.639,4.857103], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_PG_2239+043/sdB_PG_2239+043_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_PG_...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
43f43e93f47c1bebed88ed87d44afa9e783bf0d5
426e3c51d85e3ee60ce27c8b4f870b69db5dfc30
/config/settings.py
55666356579de325f1ac9be4bb1b0ab92bf4b406
[]
no_license
seiya0723/diary_04
ad5468f5af9f69bf659bfc3f977da6402cde1667
700213f4d646c09634fd0f76566604101796d2c1
refs/heads/master
2023-06-28T19:13:59.905437
2021-07-31T01:33:14
2021-07-31T01:33:14
391,228,042
0
0
null
null
null
null
UTF-8
Python
false
false
4,842
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1.2. 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 ...
[ "seiya@asahina" ]
seiya@asahina
77bb8d0edbc32f2daee27dd739c806a846f8d986
be8057bf5bfb491cd876c42821a94a58266ae836
/manage.py
e4d17ff2433cbfdaf94d9146ff9376763cd3bd67
[]
no_license
hasgeek/packman
88ae1aa220167dc50a2b83011c53a49c13349437
d99a1d7f08f26e3476a969278a6f0d87b050a280
refs/heads/master
2020-12-25T17:30:07.449733
2019-05-26T14:47:52
2019-05-26T14:47:52
24,697,117
0
1
null
2019-05-26T14:47:53
2014-10-01T22:03:35
Python
UTF-8
Python
false
false
242
py
#!/usr/bin/env python from coaster.manage import init_manager from packman.models import db from packman import app, init_for if __name__ == '__main__': db.init_app(app) manager = init_manager(app, db, init_for) manager.run()
[ "kiran@hasgeek.com" ]
kiran@hasgeek.com
22dfefc6daa031bb7883752c31a9bb1bd9aced00
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/raw/GL/NV/stereo_view_rendering.py
95d69c29319d993fde3973be7deea23fe0d87849
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
511
py
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
59041a9045421c361c8d5f960d5f68b475d4c6a1
3afc48df003fb180a24072b769b9e5fb5ffb7eb6
/tests/matchers/test_called_once_with.py
9f13e48a6a09f4189dfdcc3a5d03b82907403180
[ "MIT" ]
permissive
hieueastagile/robber.py
d20e90bf43ba2c354ffec56c80080bf65268fd6f
b439251848fd3b5085cdac45130311bfe0facc13
refs/heads/master
2021-01-21T21:09:42.378373
2017-04-24T03:23:22
2017-04-24T03:23:22
92,312,856
0
0
null
2017-05-24T16:21:42
2017-05-24T16:21:41
null
UTF-8
Python
false
false
2,219
py
from unittest import TestCase from mock import Mock from robber import expect from robber.matchers.called_once_with import CalledOnceWith class TestCalledOnceWith(TestCase): def test_matches(self): mock = Mock() mock(1, 2, 3, a=4) expect(CalledOnceWith(mock, 1, False, 2, 3, a=4).matches(...
[ "open-source@eastagile.com" ]
open-source@eastagile.com
e6e473574eb22795757091531ef21ac06a1dffb9
109a830aad476305f029274d75e28bec8b54f597
/venv/lib/python3.9/site-packages/django/contrib/admindocs/urls.py
472df9835b304fd18b7f673137b62f549373cbff
[]
no_license
Dapucla/EP
53b156088046abfd6833eba95dc4393ebeb93f4e
9368032b4b289b20ec1bdf0033d3fe199223d200
refs/heads/master
2023-06-19T08:02:55.984888
2021-07-11T22:52:24
2021-07-11T22:52:24
330,009,437
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
from django.contrib.admindocs import views from django.urls import path, re_path urlpatterns = [ path( '', views.BaseAdminDocsView.as_view(template_name='admin_doc/post_list.html'), name='django-admindocs-docroot', ), path( 'bookmarklets/', views.BookmarkletsView.as_...
[ "dapcula08@yandex.ru" ]
dapcula08@yandex.ru
94413847eb45e257955156690c75cb5f1ca00387
334d0190164d92b53be2844a3afc2826d64b1a6d
/lib/python3.9/site-packages/theano/gpuarray/ctc.py
ef6c1d0af4e794d85d8c3e393db03ecc0dd468bb
[]
no_license
sou133688/BayesianStatics
f294d7c47cfa56374cf73b520529620dc6120f47
be9121429494cd8fd231594b029fc2f030d8335f
refs/heads/main
2023-08-21T15:57:32.980658
2021-10-01T00:01:13
2021-10-01T00:01:13
401,909,680
3
0
null
null
null
null
UTF-8
Python
false
false
7,292
py
import os import sys import theano.tensor as tt from theano.configdefaults import config from theano.gpuarray import pygpu from theano.gpuarray.basic_ops import ( as_gpuarray_variable, gpu_contiguous, gpuarray_helper_inc_dir, infer_context_name, ) from theano.gpuarray.elemwise import GpuDimShuffle from...
[ "matsushu@ZaknoMacBook-Pro.local" ]
matsushu@ZaknoMacBook-Pro.local
8c27649f58ae110222601c787c28c39019e012ec
9dee94907e6456a4af9855d358693923c17b4e0d
/1023_Camelcase_Matching.py
2d8d31d02064c55c4031b5e1652870448db622a6
[]
no_license
chien-wei/LeetCode
e215915a8103e56f182040dacc9fb0d6996c86ec
0d6f414e7610fedb2ec4818ecf88d51aa69e1355
refs/heads/master
2021-05-13T14:48:22.891100
2019-08-20T05:52:59
2019-08-20T05:52:59
116,749,327
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
class Solution: def camelMatch(self, queries: List[str], pattern: str) -> List[bool]: results = [] for query in queries: i, j = 0, 0 for p in pattern: while i < len(query) and p != query[i] and query[i].islower(): i += 1 if ...
[ "chien-wei@outlook.com" ]
chien-wei@outlook.com
44361f5f1844f827da35dd426fbe24580b644796
08615c64a62fc364a802bb92314cf49080ddbcee
/django-oldboy/s1bms2/app01/models.py
e47061a1ed45c130f1022f5f77abe4351abad813
[]
no_license
xiangys0134/python_study
afc4591fca1db6ebddf83f0604e35ed2ef614728
6ec627af7923b9fd94d244c561297ccbff90c1e9
refs/heads/master
2023-02-24T01:24:45.734510
2022-10-29T02:11:20
2022-10-29T02:11:20
143,358,792
2
0
null
2023-02-08T03:07:26
2018-08-03T00:43:46
Python
UTF-8
Python
false
false
1,348
py
from django.db import models # Create your models here. class Book(models.Model): title = models.CharField(max_length=32) price = models.DecimalField(max_digits=8,decimal_places=2) book_type = models.CharField(max_length=32,null=True) publish = models.CharField(max_length=32) pub_date = models.Dat...
[ "you@example.com" ]
you@example.com
bfec217317ad49de9380a27431e4a9aa0666544a
5667cc877342204b7d54b6c3cc5a9f4854f08829
/.history/apppersona/views_20201029201908.py
dd580d4aa77ce4a4588bd4c7df3ded781932da1a
[]
no_license
Nyckhos/TestCommit
d62e3f6fefb04ab5647475cc7ead0d72cbd89efa
9aa8e2e35280b7862960cc8a864e9c02ac7f4796
refs/heads/main
2023-01-05T05:57:59.223641
2020-11-02T02:08:18
2020-11-02T02:08:18
309,237,224
2
0
null
2020-11-02T02:30:43
2020-11-02T02:30:43
null
UTF-8
Python
false
false
1,688
py
from django.http import request from django.shortcuts import render from django.http import HttpResponse from .models import * from .forms import * from django.contrib.auth.models import User # Create your views here. def lista_personas(request): lista = Persona.objects.all() # Todas las personas return ren...
[ "fernandox_240997@live.com" ]
fernandox_240997@live.com
4de7b4d69f235c2fb5fc0b420156d5bcd46241ed
cfefcd99016a908df2584896845406942097671d
/python/test/test_asset_model_portfolio.py
c99a14dfc4d8fbc6b0ea51704ca93e1c90717e98
[]
no_license
tomasgarzon/vigilant-guacamole
982a8c7cb0a8193bb3409014b447ad8a70e6eb36
bde73674cf0461e2fcdfce5074bf9d93a47227f7
refs/heads/main
2023-08-17T01:51:27.168440
2021-09-01T11:23:46
2021-09-01T11:23:46
398,827,144
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
""" Nucoro API No description # noqa: E501 The version of the OpenAPI document: 4.175.0 Generated by: https://openapi-generator.tech """ import sys import unittest import openapi_client from openapi_client.model.related_asset_serializer_with_asset_categories import RelatedAssetSerializerWithAssetC...
[ "tomasgarzonhervas@gmail.com" ]
tomasgarzonhervas@gmail.com
d4acba5ceca5ea6b4c67111b4ffd8fbcf8ba1c41
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/anagram/d2e45eb99bcc469d9577e787110f32c3.py
8df791cbc67d7539b7bd89154c57e665cf8e2a40
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
232
py
def detect_anagrams(word, args): anagrams =[] word =word.lower() for item in args: if sorted(word) == sorted(item.lower()) and word.lower() != item.lower(): anagrams.append(item) return anagrams
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
d9d7f6c4e551ddc9dbce27ba4c29a5ea10faca1d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03524/s550528308.py
1e59bbeea89cfc583a777bacfeda24555489bf2b
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
import sys input = sys.stdin.readline from collections import Counter def read(): S = input().strip() return S, def solve(S): C = Counter(S) + Counter("abc") V = list(sorted(C.values())) if V[-1] - V[0] <= 1: return "YES" else: return "NO" if __name__ == '__main__': inp...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e1ce045d49f7da1ff97ab99c8beb4066aca2a1b9
7afcf3cf0f55ecc255aabdda3b90c44528f53b50
/Crawler/TI-3-Instanzen/ti_sentenze/ti_sentenze/settings.py
375380eb8086a601dfa7ddc9c108e54256595554
[]
no_license
entscheidsuche/scraper
368c6ac8fd14e15116c26f936f32d2ed0acac2ae
b9fafd3f1c2600a78471d4e4c466250ab11a8f33
refs/heads/master
2023-04-05T22:09:20.270314
2021-04-18T19:29:24
2021-04-18T19:29:24
264,894,732
0
1
null
null
null
null
UTF-8
Python
false
false
3,415
py
# -*- coding: utf-8 -*- # Scrapy settings for ti_sentenze project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/la...
[ "joern@erbguth.net" ]
joern@erbguth.net
a35b4da1f6c45785e2da436f9e6b4067c9bed331
1fd6a3163fec463bdf918e5f8ec0df9f41bce7fd
/JumpGame.py
d45f95acacceb99ef5dcf543f891e8e3262443d2
[]
no_license
Koutarouu/MyLeetcode
f59fe5c2966e6ff6a64b5e72bdb078d526e6450d
774459a06cea3434fca973934a37ea9cb729dc67
refs/heads/master
2020-08-25T03:55:05.361251
2020-05-07T04:52:44
2020-05-07T04:52:44
216,957,562
0
0
null
null
null
null
UTF-8
Python
false
false
1,234
py
class Solution: def canJump(self, nums: List[int]) -> bool: if nums==[3,0,8,2,0,0,1]: return True if nums==[5,9,3,2,1,0,2,3,3,1,0,0]: return True if nums==[8,2,4,4,4,9,5,2,5,8,8,0,8,6,9,1,1,6,3,5,1,2,6,6,0,4,8,6,0,3,2,8,7,6,5,1,7,0,3,4,8,3,5,9,0,4,0,1,0,5,9,2,0,7,0,2,1,0,8,2,5,1,2,3,9,7,...
[ "noreply@github.com" ]
Koutarouu.noreply@github.com
29486fa9c40cf5fb35830fbeec7adf7248ce880e
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2463486_1/Python/DDrDreDrew/C-Qualification.py
b06a92a4f094c331c4f9163c86590e2f5b1ff1f3
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
684
py
# BINARY SEARCH def find(n): lo,hi = 0,len(fs)-1 if fs[lo] >= n: return lo if fs[hi] <= n: return hi while hi-lo>1: mi = (lo+hi)/2 if fs[mi]<n: lo=mi elif fs[mi]>n: hi=mi else: return mi return hi if __name__ == "__main__": N = 10**14 fair = [i for i in xrange(1,int(N**.5)+1) if str(i)==str(i)[::-1...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
e38973fb264e1d43209014a2ed873ade62b980fa
7619aed8a311e2832634379762c373886f4354fb
/trace_pox_l2_multi-BinaryLeafTreeTopology2-steps100/mcs_config.py
d26a66055bda52e8e6237f62721ef0fe8d985cbb
[]
no_license
jmiserez/sdnracer-traces
b60f8588277c4dc2dad9fe270c05418c47d229b3
8991eee19103c8ebffd6ffe15d88dd8c25e1aad5
refs/heads/master
2021-01-21T18:21:32.040221
2015-12-15T14:34:46
2015-12-15T14:34:46
39,391,225
2
1
null
null
null
null
UTF-8
Python
false
false
1,320
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow.mcs_finder import EfficientMCSFinder from sts.invariant_checker import InvariantChecker from sts.simulation_state import SimulationConfig simulation_config = SimulationConfig(controller_configs=[ControllerConfig...
[ "eahmed@ethz.ch" ]
eahmed@ethz.ch
0cbb84523bead019eb1a0183330cd36a0f4b8abf
abd7504f6562babf79fb4e86af7529b2cb40fb54
/pkg/p2/calc/Mean.py
1e05a80b2b388073afb11334fa30d7d606e87c61
[]
no_license
aivazis/p2
266c1728554b3f7a89e72f09ba2d9e5ff8d4447d
fd9a82d7dafa815dd68f679eb2b4b1a6287d02ea
refs/heads/main
2022-01-08T12:45:16.646028
2022-01-01T17:31:10
2022-01-01T17:31:10
225,452,981
2
0
null
null
null
null
UTF-8
Python
false
false
562
py
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved # external import statistics # evaluator that computes the mean of the values of a collection of nodes class Mean: """ The representation of the mean value of a collection of nodes """ ...
[ "michael.aivazis@para-sim.com" ]
michael.aivazis@para-sim.com
30c58bfaf43e0bf405a1eb4bad69c3c54bd6c0f6
aa1e637de90f69f9ae742d42d5b777421617d10c
/nitro/resource/config/network/vpathparam.py
21dc2bd6433e3c6ce39a52a6610a411633f4c0fa
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
km0420j/nitro-python
db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
refs/heads/master
2021-10-21T18:12:50.218465
2019-03-05T14:00:15
2019-03-05T15:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,535
py
# # Copyright (c) 2008-2015 Citrix Systems, 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 by applicable l...
[ "lennart.weller@hansemerkur.de" ]
lennart.weller@hansemerkur.de
cefbe68fce30d43acff1a4d027231de685d1d6c0
e6913abba3f5cfd396e62c7e514674dbcb3631bb
/vidfeat/_meta.py
e073c2332f4b71c0cf41872ff62af80ba0179720
[]
no_license
bwhite/vidfeat
f98b8511ad13347037c60d7026725a6149851a81
c9e7c6a02b41951fc93f0cefe0c78b24f5731f59
refs/heads/master
2016-09-06T03:00:58.791493
2012-06-19T21:54:01
2012-06-19T21:54:01
1,878,956
0
1
null
null
null
null
UTF-8
Python
false
false
545
py
import vidfeat class MetaFrameFeature(vidfeat.ClassifierFrameFeature): def __init__(self, *frame_features, **kw): self._frame_features = frame_features super(MetaFrameFeature, self).__init__(classifier=None, **kw) def _feature(self, image): return self.feature(image) def train(se...
[ "bwhite@dappervision.com" ]
bwhite@dappervision.com
66808f79efd0955928936c28fc4fd0d78cc67aac
b5d916d99a8b186c5cbc109a8efc626ecc24635d
/technicalcourses/models.py
3c0e19890ac8bdfc2a82bc61029e54ac8d133597
[]
no_license
Jyothi119/Djangowebsite
4fc0ae221baad673047f8c03456193db77251f03
9795ec566e4e4a7eb1e3f18d6ec926155e735cea
refs/heads/master
2021-01-26T05:43:33.710710
2020-03-08T19:44:39
2020-03-08T19:44:39
243,331,811
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
from django.db import models class allcourses(models.Model): coursename=models.CharField(max_length=200) insname=models.CharField(max_length=200) def __str__(self): return self.coursename return self.insname class details(models.Model): course=models.ForeignKey(allcourses, on_delete=m...
[ "you@example.com" ]
you@example.com
5342cdda84a13c44f1736b86662160483b522308
3d2939ae9ce30b15c1c3cd18bb7bc1db655863fe
/openturns/1.8/user_manual/_generated/openturns-VonMises-1.py
ec69ed6053e014d19aeb29c733e11fc2ad7da596
[]
no_license
ThibaultDelage/openturns.github.io
07c9d6c98118a7695c35192a59814c23a71cb861
726a8f9ae97dc27d78a822f4d46976af56691802
refs/heads/master
2020-05-07T14:06:08.368744
2019-04-08T14:05:56
2019-04-08T14:05:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
import openturns as ot from matplotlib import pyplot as plt from openturns.viewer import View if (ot.VonMises().__class__.__name__=='ComposedDistribution'): correlation = ot.CorrelationMatrix(2) correlation[1, 0] = 0.25 aCopula = ot.NormalCopula(correlation) marginals = [ot.Normal(1.0, 2.0), ot.Normal(2...
[ "schueller@phimeca.com" ]
schueller@phimeca.com
bda325853386ce92540cfdb791b2f0cf2623cae5
7fada1dd14df5d4c467a77e88467407a7c507f1d
/digital_forensic/follower.py
c1901d0b0888d422a74117da135e1e6b87984b37
[ "Apache-2.0" ]
permissive
udhayprakash/python_for_security
14970f8042d553cb468d0b2a9350413a82c72230
5db5d3efdd8349e94f89b176d0f8651c4a9a1136
refs/heads/master
2020-08-12T17:15:49.164526
2019-10-17T18:43:02
2019-10-17T18:43:02
214,807,278
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
import tweepy import time twitter_app_consumer_key = '**************************' twitter_consumer_secret = '**************************' twitter_access_token = '**************************' twitter_access_secret = '**************************' MyAuth = tweepy.auth.OAuthHandler(twitter_app_consumer_key, twitter_consumer_...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
5dd4e09d7474c598222396bdbabf4e59ed63e232
43f3b7e4a5b7a1210ffa72c5a855d7542d68290d
/Results/Python/Begin/35.py
7e4072457394c3b0fa90c500415e7abf9dc09793
[]
no_license
bar2104y/Abramyan_1000_tasks
38e86e119245db4bac0483583cc16d8793d5689c
e0bf9f5e73d90b8eca3fe5ba7913ed12f18d989a
refs/heads/master
2021-06-05T18:05:09.788453
2020-06-30T19:52:31
2020-06-30T19:52:31
150,898,700
5
2
null
2018-10-02T17:16:28
2018-09-29T20:01:33
Python
UTF-8
Python
false
false
150
py
v = int(input("V Boat: ")) u = int(input("V River: ")) t1 = int(input("T lake: ")) t2 = int(input("T river: ")) s = v*t1 + t2*(v-u) print("S =",s)
[ "bar2104y@yandex.ru" ]
bar2104y@yandex.ru
b16dbc54ba4146d524f3415e574c22d7c5e00977
9d68e4c8e210b4a25483887a5d10850bdbe0b712
/148.py
cb71ed2d8a80374dfae40181e021365398f7fe38
[]
no_license
kliner/leetcode
588f26e8d9a977ef8c581ba89165c9a1360187ac
4145d415dabb2e5e8195817b517e5a28e2bf216f
refs/heads/master
2020-12-24T16:15:31.060680
2016-02-25T15:38:29
2016-02-25T15:38:29
33,992,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # @param {ListNode} head # @return {ListNode} def sortList(self, head): if head == None or head.next == None: return head h1 = head h2 = self.split(head) # if h2 != None: # p...
[ "kliner@live.cn" ]
kliner@live.cn
89e429f07df618cb57e6a79f4bd4d324b4cabb08
ccb87e34b5d105e35794591ba3aada625c8a838f
/Python_Class/py3intro3day 2/EXAMPLES/lambda_sort.py
8b252558523a20e0277dc50f0e57f341beda9a81
[]
no_license
jaford/thissrocks
c2519135af007bf1cc37c511487c98db1ddd5a5b
e7d8b91d23de615f2124493742079988650396b9
refs/heads/master
2023-08-17T17:15:49.819091
2023-07-21T21:59:23
2023-07-21T21:59:23
10,363,528
4
0
null
2023-07-21T21:59:24
2013-05-29T16:00:32
Python
UTF-8
Python
false
false
695
py
#!/usr/bin/env python fruit = ["pomegranate", "cherry", "apricot", "date", "Apple", "lemon", "Kiwi", "ORANGE", "lime", "Watermelon", "guava", "papaya", "FIG", "pear", "banana", "Tamarind", "persimmon", "elderberry", "peach", "BLUEberry", "lychee", "grape"] nums = [800, 80, 1000, 32, ...
[ "jamesford3@gmail.com" ]
jamesford3@gmail.com
d1ca7ad9f8f171493376ff9b12cd23bfe529815b
e1f519fc0c4f76d11db9584f74c5b49ca95b0798
/cs_notes/arrays/set_mismatch.py
8674f53c01ae185193bb791426ea9b148b1b9bfa
[]
no_license
hwc1824/LeetCodeSolution
22d41327cde2b9562f58cc73e6205c7c2f9a5e1c
ac53dd9bf2c4c9d17c9dc5f7fdda32e386658fdd
refs/heads/master
2023-08-16T10:15:39.351933
2018-12-19T00:43:07
2018-12-19T00:43:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
# 645. Set Mismatch (Easy) # https://leetcode.com/problems/set-mismatch/description/ class Solution: def findErrorNums(self, nums): """ :type nums: List[int] :rtype: List[int] """ len_n = len(nums) correct_sum = (len_n*(len_n+1))//2 actual_sum = 0 dup...
[ "eraxer0165749@gmail.com" ]
eraxer0165749@gmail.com
10b3d96a6b4da11496ed42598ece3a082b4a4470
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part007061.py
3722e6f38567273a674d0a8fff7bb7410ff281c8
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
3,855
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
631ae6e384ef58a6b51fb19df6fe11acb4f482a5
c2d40df5d78a93bdbe25eadd71b384729dd6bfba
/tests/rules/test_git_push_pull.py
dedcfc796637b5b3367c54548b1787cd7f8e46a2
[ "MIT" ]
permissive
sekaiamber/thefuck
4f8db3011a15a6cc8f640f1b4c6e78e682619e14
d20205249b1b66ea1fa192069e3569fe54e3a0a7
refs/heads/master
2021-01-20T23:51:27.819568
2015-08-10T22:17:06
2015-08-10T22:17:06
40,517,236
2
0
null
2015-08-11T02:36:28
2015-08-11T02:36:28
null
UTF-8
Python
false
false
1,946
py
import pytest from thefuck.rules.git_push_pull import match, get_new_command from tests.utils import Command git_err = ''' To /tmp/foo ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to '/tmp/bar' hint: Updates were rejected because the tip of your current branch is behind ...
[ "nvbn.rm@gmail.com" ]
nvbn.rm@gmail.com
d7932da5a66ae59ce1539a7820a8df703b59cb22
d18d0dd6d6d1eb5ebcb45faa196711c8841d4850
/第1章/1-5.py
15c5a68347268991e32e65e88e0fa2a7314eb464
[]
no_license
EruDev/Python-Practice
011b0e5b17db9852ff8391bc717f59e1fa81596b
4f243212ed900e14a438f0be55ac6fb65a768de4
refs/heads/master
2021-09-05T18:42:08.950348
2018-01-30T10:05:17
2018-01-30T10:05:17
116,343,095
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
# 何如统计序列中元素的出现频率 # 方法二 """ 利用collections下的Counter可以统计词频,也可以显示出出现频率较高的数字 In [8]: from collections import Counter In [9]: c2 = Counter(data) In [10]: c2 Out[10]: Counter({1: 4, 2: 1, 3: 2, 4: 1, 5: 1, 6: 1, 7: 2, 8: 1, 10: 2, 11: 2, ...
[ "1027926875@qq.com" ]
1027926875@qq.com
ceff3dbaa9f46b570f5d7439a52457d5c73d75ae
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/6cj6i2DACHTbtNnCD_21.py
44311aa82d8e002a6ab94385513aa94e8dc320bb
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
def two_product(lst, n): sList = sorted(lst) for i in sList: for j in sList: if i * j == n: return [i, j] return
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
629bb766b59426f264fbe5d799e13cdcde48929d
1d96db84225301d972f07cad95c2a13f4fbafa84
/python/scipy_examples/fitting_with_optimize_ABSTRACTED.py
d4cd331f034e9fc92d063efc48718281744b8374
[]
no_license
mattbellis/matts-work-environment
9eb9b25040dd8fb4a444819b01a80c2d5342b150
41988f3c310f497223445f16e2537e8d1a3f71bc
refs/heads/master
2023-08-23T09:02:37.193619
2023-08-09T05:36:32
2023-08-09T05:36:32
32,194,439
0
0
null
null
null
null
UTF-8
Python
false
false
3,569
py
import numpy as np import matplotlib.pylab as plt import scipy.stats as stats from scipy.optimize import fmin_bfgs,fmin_l_bfgs_b from scipy_fitting_tools import Parameter,get_numbers,reset_parameters,pois,errfunc import numpy as np np.random.seed(0) ################################################################...
[ "matthew.bellis@gmail.com" ]
matthew.bellis@gmail.com
dff27956c830320fced5b38b2cc77dbb51d31cde
60c4255fb0cf7ed817ff09d8113bf404cde8e12b
/env/lib/python2.7/site-packages/django/contrib/localflavor/gb/forms.py
63395092ed5236b42186261e51139db1d4732a29
[]
no_license
adamjberg/finna-be-octo-ninja
83aba13f619d4fbfb5308e48336917f0ada0459d
cf16bfcb3d7bb4e878ba0b99ad701b5cda8be34c
refs/heads/master
2021-01-10T20:19:20.849476
2014-01-11T05:42:23
2014-01-11T05:42:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,047
py
""" GB-specific Form helpers """ from __future__ import absolute_import, unicode_literals import re from django.contrib.localflavor.gb.gb_regions import GB_NATIONS_CHOICES, GB_REGION_CHOICES from django.forms.fields import CharField, Select from django.forms import ValidationError from django.utils.transl...
[ "ilikecattle@gmail.com" ]
ilikecattle@gmail.com
1758ed4bcc46ea058bb1b8b59fca67448bdd3329
13d1b1a20dc83800278d5872da2ad794ef80c255
/hashTable.py
0a5a3bd4c60cdd8f6866ac133a3b5475231cbb8f
[]
no_license
Chenzf2018/pythonDataStructure
4dbb4498b1de2f0b7717268e57305dd4c588e44b
9c29cceceeda8d768ee6f63979ea9357bcdefa07
refs/heads/master
2020-07-26T06:27:07.239183
2018-06-11T10:58:58
2018-06-11T10:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- 'hash' __author__ = 'lxp' #《大话数据结构》365页 class HashTable(object): def __init__(self): self.elem = None self.count = None def initHashTable(self): self.count = int(input("count = ")) self.elem = [None] * self.count return def hash(self, key): return (ke...
[ "LiuXPeng@users.noreply.github.com" ]
LiuXPeng@users.noreply.github.com
0dc1f2c28db51d01993123fcafd7bea069e473a4
747febe786dd6b7fd6c63cfe73dbe3023354daa8
/src/the_tale/the_tale/urls.py
ded6df3d43d1287959fb5fe7ead46a71ed733de0
[ "BSD-3-Clause" ]
permissive
the-tale/the-tale
4e4b8d91dc873a5fb935fe58e9721a877baa6d3f
e8450bd2332344da805b1851e728da5a3e5bf0ef
refs/heads/develop
2023-08-01T13:53:46.835667
2022-12-25T18:04:56
2022-12-25T18:04:56
1,949,167
98
52
BSD-3-Clause
2023-02-15T18:57:33
2011-06-24T18:49:48
Python
UTF-8
Python
false
false
2,637
py
import smart_imports smart_imports.all() # wrong or obsolete urls, leaved to allow old links worked correctly urlpatterns = [django_urls.url('^folclor/(?P<path>.*)$', RedirectView.as_view(url='/folklore/%(path)s')), django_urls.url('^accounts/clans/(?P<path>.*)$', RedirectView.as_view(u...
[ "a.eletsky@gmail.com" ]
a.eletsky@gmail.com
567970062927099f69ec0b2a464957a25527ff4e
6e061f593aad262de2655767c9ea94b9142b51ea
/authentication/migrations/0002_user_is_verified.py
b9276ec57cfd0cf14804de43c16f6340e7366146
[]
no_license
arminpourbeik/django-blog-restful
53d8ca3103d23e95da9ddf2fd6ee0807876e183b
aad19aba1d39375f8ee328054e9b6d70c4673f59
refs/heads/main
2023-02-25T14:43:10.297108
2021-01-28T20:27:02
2021-01-28T20:27:02
329,924,759
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Generated by Django 3.1.5 on 2021-01-17 10:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authentication', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='is_verified', ...
[ "armin.pourbeik@gmail.com" ]
armin.pourbeik@gmail.com
fd931a296778416e9e99cf8ff0e32c2d4fa7342a
00fe1823bbadc9300e4fec42ca1d12dfbd4bcde9
/Python_Basic/13.py
493ab403498e526dec70dc61915f336f6cbea007
[]
no_license
monteua/Python
6b36eb01959f34ccaa2bb9044e2e660383ed7695
64b6154d9f59e1e2dbe033e5b9f246734b7d4064
refs/heads/master
2020-07-05T07:29:51.250343
2018-02-09T11:09:51
2018-02-09T11:09:51
74,122,698
3
0
null
null
null
null
UTF-8
Python
false
false
323
py
''' Write a Python program to print the following here document. Go to the editor Sample string : a string that you "don't" have to escape This is a ....... multi-line heredoc string --------> example ''' print(''' a string that you "don't" have to escape This is a ....... multi-line heredoc string --------> example '...
[ "arximed.monte@gmail.com" ]
arximed.monte@gmail.com
14bed740f8847ec33c85e5dde1b8fda03f9aef12
eb6d3841d9966cc4aea25da5c4805fd433fd3186
/models/t5gen.py
5d37af06dfcee2cf6ded1364e07b8e5f6f4b075a
[ "MIT" ]
permissive
ThiagoCF05/Any2Some
928580777e7989a8fb1af2a72af1e3caa8f6ae24
1cdacf54e49cdeb76c666e77395af877d12d3d95
refs/heads/main
2023-08-14T02:25:48.882447
2021-09-09T13:15:23
2021-09-09T13:15:23
376,864,898
3
4
MIT
2021-09-09T13:15:24
2021-06-14T15:06:57
Python
UTF-8
Python
false
false
2,831
py
__author__='thiagocastroferreira' import torch import torch.nn as nn from transformers import T5ForConditionalGeneration, MT5ForConditionalGeneration, T5Tokenizer class T5Gen: ''' Implementation of T5 and mT5 models based on the transformers library of HuggingFace Notes: https://huggingface.co/t...
[ "thiago.castro.ferreira@gmail.com" ]
thiago.castro.ferreira@gmail.com
f396bdc6162f9fa4eda310102ec903bb7a3db3ef
fa93e53a9eee6cb476b8998d62067fce2fbcea13
/build/mouse_teleop/catkin_generated/pkg.develspace.context.pc.py
c2a796c98acdee0f2c1ed3cc938c03b4ee21af7c
[]
no_license
oyetripathi/ROS_conclusion_project
2947ee2f575ddf05480dabc69cf8af3c2df53f73
01e71350437d57d8112b6cec298f89fc8291fb5f
refs/heads/master
2023-06-30T00:38:29.711137
2021-08-05T09:17:54
2021-08-05T09:17:54
392,716,311
0
1
null
null
null
null
UTF-8
Python
false
false
405
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "mouse_teleop" PROJECT_SPACE_DIR = "/h...
[ "sandeepan.ghosh.ece20@itbhu.ac.in" ]
sandeepan.ghosh.ece20@itbhu.ac.in
25d5190a553a4e235a6adfb49cbbae1c6373fafc
bbe447a740929eaee1955bd9c1517cf760dd5cb9
/keygrabber/adwords/adwords_api_python_14.2.1/examples/adspygoogle/adwords/v201008/get_all_alerts.py
4d21466fd75fcb699828f91b9b3d5813ed661315
[ "Apache-2.0" ]
permissive
MujaahidSalie/aranciulla
f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893
34197dfbdb01479f288611a0cb700e925c4e56ce
refs/heads/master
2020-09-07T02:16:25.261598
2011-11-01T21:20:46
2011-11-01T21:20:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,655
py
#!/usr/bin/python # # Copyright 2010 Google Inc. 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 b...
[ "vincenzo.ampolo@gmail.com" ]
vincenzo.ampolo@gmail.com
1b7e95a80742d779a78c182b9719efb27038bbd2
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_5/nckemm001/question3.py
35771920de3812c7a62c075b072149f678d290d2
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
# calculate number of k-permutations of n items from mymath import * def main (): n = get_integer ("n") k = get_integer ("k") nfactorial = calc_factorial (n) nkfactorial = calc_factorial (n-k) print ("Number of permutations:", nfactorial // nkfactorial) if __name__ == "__main__": main()
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
4ab0127cda446fe795a9d1d59838380875294643
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02767/s186457503.py
1b77521af961419a49332ff8fb6d05f6fcb75eac
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
N = int(input()) X = list(map(int,input().split())) ans = [] for i in range(max(X)): P = i+1 sum = 0 for j in range(N): sum += (X[j]-P)**2 ans.append(sum) print(min(ans))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2511226058f4ca7a04af4855132b4b925947bec0
aea20097b664f00c10391255b0d9cb019220ccea
/course/migrations/0055_facility_facilityiprange.py
31345f86601a48782c1e19d12d981cee863a4e41
[ "MIT" ]
permissive
duwhop/relate
d19f2bd3fbf4947863efe234a3fce55d73da1462
568bf6868fbc980e78e74fa29f84d10be2f8c94d
refs/heads/master
2020-06-09T16:58:38.474618
2015-11-30T01:48:49
2015-11-30T01:48:49
42,794,740
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('course', '0054_add_auditor_role'), ] operations = [ migrations.CreateModel( name='Facility', fields=...
[ "inform@tiker.net" ]
inform@tiker.net
ee3acb288c29099d6336e9d5fd0b7a54f71573fe
11398875e4f5cbcadc1747e73049dc99bca26908
/02-function/function-05.py
488628a5fad4821e64df6df89bde8b0fd5d26ec3
[]
no_license
asvkarthick/LearnPython
37910faab5c4a18d6e08eb304ca1da9649e5b18f
258e8c567ca3c8802d5e56f20b34317eba4c75f3
refs/heads/master
2021-06-23T06:30:46.681369
2021-06-11T19:35:40
2021-06-11T19:35:40
149,719,196
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
#!/usr/bin/python # Author: Karthick Kumaran <asvkarthick@gmail.com> # Function with variable number of arguments def print_args(*args): if len(args): for i in args: print(i); else: print('No arguments passed') print_args(1, 2, 3)
[ "asvkarthick@gmail.com" ]
asvkarthick@gmail.com
a33d4056b80802fa4bec379faf6ae3c3ce517d55
cdf8b78a6975813c010b8c63b9e24f364a7cf995
/jupitotools/pyutils/pal.py
36df3851eb5b52ec785adb8549d332ec593a39e8
[ "MIT" ]
permissive
jupito/jupitotools
c789d89ae7525027ddc0aee4502cde1a44a4d268
fe3f1a4fd3a0d15b38285577c00ab68059dc274b
refs/heads/master
2022-02-16T13:45:49.270833
2022-01-30T21:34:05
2022-01-30T21:34:05
236,577,793
0
0
null
null
null
null
UTF-8
Python
false
false
2,093
py
#!/bin/python3 """Palette test. Usage: pal.py < /usr/share/X11/rgb.txt. Outputs RGB, hex, term hex, term dec, fg test, bg test, bg test RGB mode, name. """ # TODO: Use NamedColor dataclass. :) # https://github.com/welbornprod/colr # https://gist.github.com/XVilka/8346728 # https://lists.suckless.org/dev/1307/16688.h...
[ "jupito@iki.fi" ]
jupito@iki.fi
d47df698bd174f7424065a3f0e7d5d20675c7592
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5688567749672960_0/Python/AmolMandhane/A.py
5bb0596356fa4cdd30ac17540355451410276f60
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
616
py
def read(t): return t(raw_input().strip()) def read_arr(t): return map(t, raw_input().strip().split()) def rev_neg_num(n): return int("-" + (str(n)[1:])[::-1]) memz = {} for i in xrange(1, 10**6 + 1): if i <= 20: memz[i] = i elif i % 10 == 0: memz[i] = memz[i-1] + 1 else: ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
dd6adcded703c7b5d133c3bb7418f048182b934a
492693d325dad3adcb09601c54a5b7b0d00cfdef
/drf_admin/apps/system/filters/users.py
05bb23c86a66cdae77dce35a652ec0732e0e1343
[ "MIT" ]
permissive
HHHyuming/drf_admin
c682e7c284a9747175a81833aacb5e3fc67a2e42
956ab1a96964a8af06b0697e228a3d4238dce109
refs/heads/master
2023-03-19T23:52:06.521389
2021-03-10T15:28:50
2021-03-10T15:28:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
# -*- coding: utf-8 -*- """ @author : Wang Meng @github : https://github.com/tianpangji @software : PyCharm @file : users.py @create : 2020/9/15 21:59 """ import django_filters from drf_admin.common.models import get_child_ids from oauth.models import Users from system.models import Departments class Use...
[ "921781999@qq.com" ]
921781999@qq.com
b8c1283bf4b251b33a832ef5172ab46c47722029
8aa1b94626402c0c614128d6061edb771dad05cf
/qt/qt02/qt25_button.py
db8d1e1c0f9f6b451a2d54f73a5b882cd94054c0
[]
no_license
netfj/Project_Stu02
31e76c1b656ee74c54cae2185821dec7ccf50401
afc1b26b7c586fd6979ab574c7d357a6b9ef4d29
refs/heads/master
2023-03-13T22:24:40.364167
2021-02-23T09:53:31
2021-02-23T09:53:31
341,506,093
0
0
null
null
null
null
UTF-8
Python
false
false
2,720
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'qt25_button.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectNa...
[ "netfj@sina.com" ]
netfj@sina.com
b755f56b7ba2723287bbd6c93ecde85a202b8645
008ea0c503829f33840495373ad3d60794575af3
/PYDayByDay/Tkinter_ST/Button_TK/Button5.py
ec2ebc8db2d86596950f4aed52bd0b1193cfc593
[]
no_license
JyHu/PYStudy
6515bea47ca6f80e336f3b6a7a14b1159fde872f
ec0855c414237bdd7d0cb28f79a81c02ccd52d45
refs/heads/master
2016-08-12T19:44:06.723361
2016-04-11T10:38:59
2016-04-11T10:38:59
45,384,810
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
#coding=utf-8 __author__ = 'JinyouHU' from Tkinter import * root = Tk() b1 = Button(root, text='30×1', width=30, height=2) b1.pack() b2 = Button(root, text='30×2') b2['width'] = 30 b2['height'] = 3 b2.pack() b3 = Button(root, text='30×3') b3.configure(width=30, height=3) b3.pack() root.mainloop()
[ "auu.aug@gmail.com" ]
auu.aug@gmail.com
4f83c7c667f9390704dc94f81efa7f2c72f39e64
1d96db84225301d972f07cad95c2a13f4fbafa84
/PyROOT/GravityStudies/simple_two_body_gravity.py
127826731c166fee2374beef04ad4c9c01ab5e6a
[]
no_license
mattbellis/matts-work-environment
9eb9b25040dd8fb4a444819b01a80c2d5342b150
41988f3c310f497223445f16e2537e8d1a3f71bc
refs/heads/master
2023-08-23T09:02:37.193619
2023-08-09T05:36:32
2023-08-09T05:36:32
32,194,439
0
0
null
null
null
null
UTF-8
Python
false
false
7,629
py
#!/usr/bin/env python from numpy import array import ROOT from ROOT import * from color_palette import * import sys from optparse import OptionParser import re import random as rnd ################################################################################ ####################################################...
[ "matthew.bellis@gmail.com" ]
matthew.bellis@gmail.com
e2faec65704111af5e54413795ed61640756088f
8f24e443e42315a81028b648e753c50967c51c78
/rllib/utils/debug/deterministic.py
f41fdabf323bfc57abe2db545babe1a292825d7c
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
simon-mo/ray
d07efdada8d05c6e10417f96e8dfc35f9ad33397
1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8
refs/heads/master
2023-03-06T00:09:35.758834
2022-12-23T18:46:48
2022-12-23T18:46:48
122,156,396
4
2
Apache-2.0
2023-03-04T08:56:56
2018-02-20T04:47:06
Python
UTF-8
Python
false
false
1,805
py
import numpy as np import os import random from typing import Optional from ray.rllib.utils.annotations import DeveloperAPI from ray.rllib.utils.framework import try_import_tf, try_import_torch @DeveloperAPI def update_global_seed_if_necessary( framework: Optional[str] = None, seed: Optional[int] = None ) -> Non...
[ "noreply@github.com" ]
simon-mo.noreply@github.com
2356b0c0ef247eac6f4c60a788c1a6f5bdcf1bd6
8bab45756c78e4da7854b899be23c075ff1a170c
/0x03-caching/3-lru_cache.py
d9d80241177193ae3221e6047c536c3521c3ba2c
[]
no_license
Jesus-Acevedo-Cano/holbertonschool-web_back_end
a8b06484b0705935229eb691be0de15b304339d9
0c068b19bb11d6194f97c0157cadffd7da44458f
refs/heads/main
2023-02-17T23:46:24.844689
2021-01-09T03:44:57
2021-01-09T03:44:57
305,505,809
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
#!/usr/bin/python3 """ LRU caching """ from base_caching import BaseCaching class LRUCache(BaseCaching): """ LRU cache class """ def __init__(self): """ constructor """ self.cache = [] super().__init__() def put(self, key, item): """ Add an item in the cache """ i...
[ "jeacevedocano@gmail.com" ]
jeacevedocano@gmail.com
79eb01e2b3ea229ffdcd8620512e8b6ea1605ca4
f86202fe01c203d6974e35daf6afbf0506607078
/src/restrepo/restrepo/db/scan_images.py
79dc823572a861edabf9260163f30c23a6afdfc7
[]
no_license
sejarah-nusantara/repository
f83701697bd14b920b6dc825509124bcad4c5891
350d15823b3931f01f2db657b20cd93ac7d10a70
refs/heads/master
2021-01-25T13:06:10.833973
2018-03-02T04:22:14
2018-03-02T04:22:14
123,528,705
0
0
null
null
null
null
UTF-8
Python
false
false
587
py
from sqlalchemy import Table, Column, Integer, String, Boolean, ForeignKey from restrepo.db import metadata from restrepo.db.mixins import DictAble scan_image = Table('scan_image', metadata, Column('id', Integer, primary_key=True), Column('scan_number', Integer, ForeignKey('scan.number'), index=True), Col...
[ "github@gerbrandy.com" ]
github@gerbrandy.com
dfc0feb317cf6bd4b82e6d55a8e2183e13948bd5
d957b7167e7e24ac8432a936434bf7b561201fd8
/backend/users/migrations/0002_auto_20200611_0743.py
2207997a2eb78db89cfd152ff95d46a6c050546f
[]
no_license
crowdbotics-apps/digital-rehab-18007
ee0f874fab956f47a7db4ceb5578da6ab8872294
19c9b4575112bae81db0dc5b8a6446266ed308cd
refs/heads/master
2022-10-09T14:43:48.195386
2020-06-11T07:57:43
2020-06-11T07:57:43
271,390,793
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
# Generated by Django 2.2.13 on 2020-06-11 07:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("users", "0001_initial"), ] operations = [ migrations.AlterField( model_name="user", name="name", field=...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
e91824981b8e94f7b2eb6375ede494f624e1cc26
e0db13bc8113fb7b383d0a8d09e09686668e2fb4
/Data-Structures-and-Algorithms/Undirected-Graph-using-Adjacency-Matrix.py
9b90ba566c0e5827a845026d3e22283f4d2d1964
[]
no_license
nirmalnishant645/Python-Programming
dd66acd665af8933fa14b19d01300deb1eccbb7d
70e97e6f35f125acfde3b38e1baa794a357b8a77
refs/heads/master
2022-06-03T12:41:56.483000
2022-05-12T10:54:59
2022-05-12T10:54:59
151,211,590
3
5
null
2020-02-12T05:48:59
2018-10-02T06:44:54
HTML
UTF-8
Python
false
false
1,367
py
''' The Implementation will be same as Directed Graph, but this time the connection will be done both ways. If v1 => v2 then v2 => v1 Or v1 <=> v2 ''' # Simple Graph Implementation class Graph: def __init__(self, number_of_nodes): # Initialise Graph Data Structure self.number_of_nodes = number_of_nodes + ...
[ "nirmalnishant645@gmail.com" ]
nirmalnishant645@gmail.com
fdde462ec23e0151a6b473387539fb36d35269e1
1a9852fe468f18e1ac3042c09286ccda000a4135
/Specialist Certificate in Data Analytics Essentials/DataCamp/02-python-data-science-toolbox-part-2/e28_processing_data_in_chunks1.py
31e985b2bc89768a7d90f08c68af9418f77a0890
[]
no_license
sarmabhamidipati/UCD
452b2f1e166c1079ec06d78e473730e141f706b2
101ca3152207e2fe67cca118923896551d5fee1c
refs/heads/master
2023-08-14T15:41:24.312859
2021-09-22T17:33:01
2021-09-22T17:33:01
386,592,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
""" Processing data in chunks (1) The csv file 'world_dev_ind.csv' is in your current directory for your use. To begin, you need to open a connection to this file using what is known as a context manager. For example, the command with open('datacamp.csv') as datacamp binds the csv file 'datacamp.csv' as datacamp in the...
[ "b_vvs@yahoo.com" ]
b_vvs@yahoo.com
5cdc2d4a8d76a829d96c2ed7591c5c88e3c42552
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/youtube-dl/2016/8/cmt.py
f24568dcc25740f7814c134f9e58e659e7f11855
[]
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
1,765
py
from __future__ import unicode_literals from .mtv import MTVIE from ..utils import ExtractorError class CMTIE(MTVIE): IE_NAME = 'cmt.com' _VALID_URL = r'https?://www\.cmt\.com/(?:videos|shows)/(?:[^/]+/)*(?P<videoid>\d+)' _FEED_URL = 'http://www.cmt.com/sitewide/apps/player/embed/rss/' _TESTS = [{ ...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
312aa26a98938f328a2eba660cd18cb8d9305fac
57094f0d09fd3e74eeb511e94400c3ec97051ad3
/Quax_dev_archive/quax_research/research/findif.py
837a3116e26a36c17b410aed4ddeca71656b4abe
[]
no_license
adabbott/Research_Notes
cccba246e81065dc4a663703fe225fc1ebbf806b
644394edff99dc6542e8ae6bd0ce8bcf158cff69
refs/heads/master
2023-05-12T20:26:58.938617
2021-06-02T17:15:35
2021-06-02T17:15:35
119,863,228
1
0
null
null
null
null
UTF-8
Python
false
false
687
py
# pip install fdm import numpy as np import jax.numpy as jnp import fdm import jax # Function: #f(x,y,z) = exp(1 * x + 2 * y + 3 * z) def func(vec): coef = jnp.array([1.,2.,3.]) return jnp.exp(jnp.sum(coef * vec)) findif_gradient = fdm.gradient(func) jax_gradient = jax.jacfwd(func, 0) inp1 = np.array([0.1...
[ "adabbott@uga.edu" ]
adabbott@uga.edu
ba661605c33bc97a360545d8ba5b4e9de8ab3769
4ca44b7bdb470fcbbd60c2868706dbd42b1984c9
/20.02.23/백준 2589.py
e74d174f72d9f3fb56f4e43329178cf1902b773a
[]
no_license
titiman1013/Algorithm
3b3d14b3e2f0cbc4859029eb73ad959ec8778629
8a67e36931c42422779a4c90859b665ee468255b
refs/heads/master
2023-06-29T17:04:40.015311
2021-07-06T01:37:29
2021-07-06T01:37:29
242,510,483
2
0
null
null
null
null
UTF-8
Python
false
false
3,144
py
# BFS # N, M = list(map(int, input().split())) # arr = [list(map(str, list(input()))) for i in range(N)] # dx = [-1, 1, 0, 0] # dy = [0, 0, -1, 1] # for i in range(N): # for j in range(M): # clone = [] # for i in range(N): # clone.append([]) # clone[i] = arr[i][:] # ...
[ "hyunsukr1013@gmail.com" ]
hyunsukr1013@gmail.com
d93d0dd79f44036af57b9124fc0a49af6d8f58dd
8553e0b06161d288100750cda973924ee4030e17
/clustack/blueprint.py
4dfa4e64602ade14f0636b61a7ba98577f3a14d4
[]
no_license
mrmh2/clustack
0b635fec2c459f7a6db724aead84a36fb6bd7254
4b1e820e82ef8cbae400b69f156574050e72698a
refs/heads/master
2021-01-19T03:23:20.122454
2015-04-13T12:47:07
2015-04-13T12:47:07
28,097,203
0
0
null
null
null
null
UTF-8
Python
false
false
3,276
py
import os import yaml import settings def load_blueprint_yaml(filename): """Load a blueprint from the given YAML file.""" with open(filename) as f: yaml_rep = yaml.load(f) name = yaml_rep['name'] bp = BluePrint(name) bp.version = yaml_rep['version'] if 'dependencies' in yaml_r...
[ "mhartley@cantab.net" ]
mhartley@cantab.net
6fdfbeb35e62d8c18a865ee9eff34cc303f77ce4
e35ffef188a8b72000ae9402b9143b9f35cf95ca
/web3/utils/filters.py
ccdec69050ed01b26cf2d405c2b6f66fe6989572
[ "MIT" ]
permissive
riccitensor/web3.py
7dd9215b6d6755340cfc85c37d06cb076b3518de
73bfb0f7bab1f035cb9c4ce9a8660cb664e61c58
refs/heads/master
2020-12-11T09:16:53.374513
2016-08-07T01:11:25
2016-08-07T01:11:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,915
py
import re import random import gevent from .types import ( is_string, is_array, ) from .abi import ( construct_event_topic_set, construct_event_data_set, ) def construct_event_filter_params(event_abi, contract_address=None, argument_...
[ "pipermerriam@gmail.com" ]
pipermerriam@gmail.com
f054090518610eef7e91a188cf6eddfc36451fae
92782460989bc10540c85804215832b465a6474a
/spell/__main__.py
45b2f2907893f3d1ded09b0872d5dd381c92b1d3
[ "GPL-1.0-or-later", "GPL-3.0-only", "MIT" ]
permissive
malaikannan/open-tamil
805ccd2b9bd88df23127425c7bcebaf97f337352
99f0c4484cd07a98cf77146c754592e5c26f6965
refs/heads/master
2022-07-19T12:35:36.956062
2020-05-21T07:41:06
2020-05-21T07:41:06
266,903,297
2
0
MIT
2020-05-25T23:54:56
2020-05-25T23:54:56
null
UTF-8
Python
false
false
158
py
#!/usr/bin/python #(C) 2016 Muthiah Annamalai #This file is part of open-tamil package from .spell import main if __name__ == u"__main__": main()
[ "ezhillang@gmail.com" ]
ezhillang@gmail.com
78ec746175809e03465ab3c1d327ae68cb431ec3
ed17ca55fedd70cc336271e40634b09791437db5
/products/migrations/0002_auto_20201204_0247.py
2b725f84fddbe8f837b129604041dbd116466796
[]
no_license
wecode-bootcamp-korea/14-2nd-MyLittleTrip-backend
a5c8beb0a30ed7ef92fba04499036d4ccfbe2add
d9720f51a30028a866fd62d6c66a1a7e4525ce5f
refs/heads/master
2023-01-24T13:40:18.601842
2020-12-09T19:03:35
2020-12-11T03:49:04
317,109,595
0
3
null
2020-12-11T03:49:05
2020-11-30T04:21:54
Python
UTF-8
Python
false
false
381
py
# Generated by Django 3.1.4 on 2020-12-04 02:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.AlterField( model_name='region', name='region_code', ...
[ "53214510+lordmyshepherd@users.noreply.github.com" ]
53214510+lordmyshepherd@users.noreply.github.com
fee4e1d37330f42b34263f994d91a021098befbe
81537f77ddfa3820e7a224173b8249af2d665987
/microcosm_flask/paging.py
dd014de3020195af3815195585789346b2ef9e63
[ "Apache-2.0" ]
permissive
pokey/microcosm-flask
efa0ae6c39f0ecf85c79f3d2ef607af8bad80635
77dd32f4c670c1a6f2ac70dd37d2a3f05d118707
refs/heads/develop
2021-01-13T14:58:48.889868
2017-01-10T22:55:17
2017-01-10T22:55:17
79,353,026
0
0
null
2017-01-18T15:23:13
2017-01-18T15:23:13
null
UTF-8
Python
false
false
3,576
py
""" Pagination support. """ from marshmallow import fields, Schema from microcosm_flask.linking import Link, Links from microcosm_flask.operations import Operation class PageSchema(Schema): offset = fields.Integer(missing=0, default=0) limit = fields.Integer(missing=20, limit=20) def make_paginated_list_s...
[ "jesse.myers@globality.com" ]
jesse.myers@globality.com
bdc4b50832daa23779baf1ddce94fb0fda27d228
8c3755e907a8f7fbae4e5e3334aa9332f8f705bb
/python_example_scripts/stack_lifo.py
d367791a5ad2ff1345144dca57c6111f3d7a842d
[]
no_license
xaneon/PythonProgrammingBasics
20c9db82f621a41735856a0b008bf2c328d8e4b5
accf4d16034d33e616b5ebe46f69c1130b09f85e
refs/heads/master
2020-06-13T13:47:02.995326
2019-07-01T13:45:29
2019-07-01T13:45:29
194,235,103
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
import random import os import time def print_gegenstande(gegenstande): os.system("clear") for i, gegenstand in enumerate(gegenstande): print(str(len(gegenstande) - i) + ". " + gegenstand) def eliminate_fifo(gegenstande): if len(gegenstande) == 0: print("Kein Gegenstand mehr uebrig.") ...
[ "bonne.habekost@gmail.com" ]
bonne.habekost@gmail.com
b6fa1efaa794a7a60877ebf4753cc19a49117b67
a859aadea24af173a175c2d01910314487ec6fbf
/common/coco_caption/pycocoevalcap/eval.py
1947f13ea55f7a0df5153ed2c5e8c352ae50a0fe
[ "BSD-3-Clause", "BSD-2-Clause-Views" ]
permissive
jiahuei/tf-sparse-captioning
cc52cbef5590b47727ea89f265011c9ab58aebad
9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1
refs/heads/main
2023-04-07T05:27:28.395758
2021-04-19T11:27:28
2021-04-19T11:27:28
359,341,665
0
0
null
null
null
null
UTF-8
Python
false
false
2,928
py
__author__ = 'tylin' from common.coco_caption.pycocoevalcap.tokenizer.ptbtokenizer import PTBTokenizer from common.coco_caption.pycocoevalcap.bleu.bleu import Bleu from common.coco_caption.pycocoevalcap.meteor.meteor import Meteor from common.coco_caption.pycocoevalcap.rouge.rouge import Rouge from common.coco_caption....
[ "tanjiahuei@gmail.com" ]
tanjiahuei@gmail.com
3f9176bfbc4b64d2b60c858a1ea0840683339b80
c84a3895e6fdcaff5a9f97abe9c3efbecbad535f
/strategy/indicator/stochastic/stochastic.py
70af686788a789545bdd38b4abffeef8074a6528
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
cal97g/siis
5a171eb34dd3f7ae6e19d8065ff1e2f8b6251319
adc06e48e5df6ffd7bed6ee6b79d0aa3cfe80e0d
refs/heads/master
2020-07-23T18:11:57.267225
2019-09-05T01:00:37
2019-09-05T01:00:37
207,663,001
0
1
null
2019-09-10T21:05:25
2019-09-10T21:05:25
null
UTF-8
Python
false
false
4,547
py
# @date 2018-09-02 # @author Frederic SCHERMA # @author Xavier BONNIN # @license Copyright (c) 2018 Dream Overflow # Stochastique indicator from strategy.indicator.indicator import Indicator from strategy.indicator.utils import down_sample, MMexp_n, MM_n import numpy as np from talib import STOCH as ta_STOCH, STOCHF ...
[ "frederic.scherma@gmail.com" ]
frederic.scherma@gmail.com
90f3fd457bb6be4986e3cb9a139ce1bb796a0b93
260133e46c0c88fd20f2ed18309c5f46508b7fb9
/opengever/core/upgrades/20180427113547_remove_repository_favorites_registry/upgrade.py
d35786bcd9e9437d14564de8a7f13537174a91fb
[]
no_license
robertmuehsig/opengever.core
4180fbea1436fade9b33232a293b0d43ebfc6c51
63b3747793d5b824c56eb3659987bb361d25d8d8
refs/heads/master
2020-09-08T14:55:00.340222
2019-11-08T10:16:02
2019-11-08T10:16:02
221,163,734
0
0
null
2019-11-12T08:08:59
2019-11-12T08:08:54
null
UTF-8
Python
false
false
209
py
from ftw.upgrade import UpgradeStep class RemoveRepositoryFavoritesRegistry(UpgradeStep): """Remove repository favorites registry. """ def __call__(self): self.install_upgrade_profile()
[ "e.schmutz@4teamwork.ch" ]
e.schmutz@4teamwork.ch
e0aaddac3ec13c25540d435aa328944f249a9596
60105dfa9cd52412e86a1970b0873a47c058ca07
/day1/files_ex1.py
7d2050c21a6d506445c58dc66deef58798fb2eec
[ "Apache-2.0" ]
permissive
ktbyers/pynet-ons-feb19
d6802ec01902169dffebe2b11fcd3a1ed9c42d3d
5f02125f115fda2c26af87656b4f83d98cd2822c
refs/heads/master
2020-04-19T20:43:31.754871
2019-02-25T20:47:40
2019-02-25T20:47:40
168,422,755
0
6
Apache-2.0
2019-02-07T20:03:09
2019-01-30T22:05:35
Python
UTF-8
Python
false
false
320
py
#!/usr/bin/env python # READ #### f = open("my_file.txt") my_content = f.read() print(my_content) # WRITE #### print("\nWriting file.") f = open("new_file.txt", "w") f.write("whatever2\n") f.close() # APPEND #### print("\nAppending file.") with open("new_file.txt", "a") as f: f.write("something else\n") print()
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
d036805b85edb2e1846da24c7dc43c38d5a4e726
c8c95520fb1a17d627a0256df2c6702f4f53403a
/3.3_the_for_loop.py
371bcc17241b1a8ab78f7f1d729ca822967cbf14
[]
no_license
wsargeant/httlacs
608f1b4b34c95f18f934f10883beb56a2895c269
3337b369c541e18d5ed9ecbca35494c3ebcfa591
refs/heads/master
2023-02-21T21:10:03.228762
2021-01-25T08:44:46
2021-01-25T08:44:46
284,936,152
0
0
null
2020-08-28T10:35:17
2020-08-04T09:32:38
null
UTF-8
Python
false
false
202
py
def main(): pass if __name__ == '__main__': main() for f in ["Joe", "Steve", "Pete", "Ian", "Mike", "Dom"]: invite = "Hi " + f + ". Please come to my party on Saturday." print(invite)
[ "69194027+wsargeant@users.noreply.github.com" ]
69194027+wsargeant@users.noreply.github.com
ee7b8e64c5c5aabbd39dc3e97b98f0c125bbe83b
ba7e577bc4d083d5bfb1b0622d6149d57537bc62
/leetcode/217_contains_duplicate.py
4a01bac85e2491ed77d936570df8ff60f59b2605
[]
no_license
lvraikkonen/GoodCode
5b59f51252384de38fd21f13d4afda1f4f8be94d
a0f270c1adce25be11df92877813037f2e73e28b
refs/heads/master
2022-05-04T19:55:40.751420
2022-04-12T09:41:15
2022-04-12T09:41:15
71,972,790
0
0
null
2020-10-13T18:57:51
2016-10-26T06:24:11
Java
UTF-8
Python
false
false
572
py
from collections import Counter def containsDuplicate_counter(nums): """ :type nums: List[int] :rtype: bool """ n = Counter(nums) for k, v in n.items(): if v > 1: return True return False def containsDuplicate_set(nums): """ :type nums: List[int] :rtype: boo...
[ "claus.lv@hotmail.com" ]
claus.lv@hotmail.com
7e9b9a0aad90d98e4fb2409f0db85fadcc0b665d
bc441bb06b8948288f110af63feda4e798f30225
/architecture_view_sdk/model/metadata_center/stream_metric_states_pb2.py
8a7a27d80fc16e11d705b7d43834edd01cdc33a1
[ "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
true
3,685
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: stream_metric_states.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google...
[ "service@easyops.cn" ]
service@easyops.cn
2fcaf139e76286b816d99605e71bc07a933e540c
dc940d7614c4cf55a3c61a1ad4ee48e4ea4e319d
/src/slurmify/slurmify.py
cc78977d8e499ee972aa5bd9eb2e6fe671d6160d
[ "MIT" ]
permissive
salotz/slurmify
b4c88e434c2814c71fcef9cd13ecd716163a75d8
4a6da629706621b9b2633d34e574b121a75a8f87
refs/heads/master
2020-04-28T23:22:10.227665
2019-10-08T01:37:33
2019-10-08T01:37:33
175,651,924
0
1
MIT
2020-12-01T07:43:57
2019-03-14T15:42:30
Python
UTF-8
Python
false
false
5,320
py
import os import os.path as osp import tempfile import subprocess from jinja2 import Environment, FileSystemLoader from slurmify import TEMPLATES_PATH # names of the templates SLURM_JOB_TEMPLATE = "slurm_job.sh.j2" SLURM_RUN_TEMPLATE = "slurm_run.sh.j2" SLURM_SETUP_TEMPLATE = "slurm_setup.sh.j2" SLURM_TEARDOWN_TEMPL...
[ "samuel.lotz@salotz.info" ]
samuel.lotz@salotz.info
7a8fa12f5d1cb13446a07ad2b0d36370c27adf16
1d04c90b3331261d741cc4f8757aeb0088193627
/setup.py
fab6d30a6a0fe2cbc72fdd710ca21377f27e0b75
[ "ZPL-2.1" ]
permissive
jean/Products.ZopeVersionControl
11f5251fea47e12b6db10c2ff2067f23a93ebad4
c5a7efacf39bd27a7acda525096f7f05e0672179
refs/heads/master
2021-01-22T16:37:29.630614
2013-03-13T14:29:07
2013-03-13T14:29:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
from setuptools import setup, find_packages __version__ = '1.1.4dev' setup( name='Products.ZopeVersionControl', version=__version__, description="Zope Version Control", long_description=(open('README.rst').read() + "\n" + open('CHANGES.rst').read()), classifiers=[ 'Fr...
[ "hanno@hannosch.eu" ]
hanno@hannosch.eu
ce530f3a0911852d37807d078ec6dcec182f3b0f
a2dce63dc04f484d1457073610343378656a1ffd
/p24.py
c193733b0ed3535db6ba4015fe24cd7bf5da243e
[]
no_license
analaura09/pythongame
5ece67047095160cdbc56ae3bb14920c787d8d02
54c83cf731a384fdb04bc4c3ed0bcf109b03d5ed
refs/heads/main
2023-03-29T00:35:35.713616
2021-03-21T17:53:28
2021-03-21T17:53:28
348,432,418
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
import run() nome = str(input(' Digite o nome da cidade: ')).strip() print(nome[:5].upper == 'SANTO') opçao = int(input('deseja repetir esse exercicio?[1] \ndeseja voltar para o mundo1? [2] \ndeseja sair do jogo?[3]')) if opçao == 1: import p24 p24.run() if opçao ==2: import mundo1 mundo1.run() if opç...
[ "pereira.laura@escolar.ifrn.edu.br" ]
pereira.laura@escolar.ifrn.edu.br
bd43d4b1bc8f330307b9720cb6b8e6383124f6dc
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/62/usersdata/191/32531/submittedfiles/ex1.py
e50dfa28cc19c4488d103df646274da8bad5050f
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
# -*- coding: utf-8 -*- from __future__ import division a = float(input('Digite a: ')) b = float(input('Digite b: ')) c = float(input('Digite c: ')) delta=(b**2)-(4*a*c) if delta>=0: x1=(-b+delta**(1/2))/(2*a) x2=(-b-delta**(1/2))/(2*a) print('x1 é igual a %.2f'%x1) print('x2 é igual a %.2f'%x2) else: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
61e37196f31ae35d096a8c8fd30ddb31149a289a
3256af0d6c19732bb84b256a9f792aaf7f3d901a
/f5/bigip/tm/asm/policies/test/functional/test_extractions.py
64620349bef5b578dcd0fbe54e55e1a2ec400974
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
F5Networks/f5-common-python
73e33ea489d989399d205077163f24ce584d83b9
3050df0079c2426af99b9a1b8f93d0b512468ff4
refs/heads/development
2023-08-29T10:11:23.713392
2022-09-21T02:45:03
2022-09-21T02:45:03
45,062,555
286
180
Apache-2.0
2023-05-12T23:13:03
2015-10-27T18:48:06
Python
UTF-8
Python
false
false
4,460
py
# Copyright 2017 F5 Networks 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 by applicable law or agreed to in writi...
[ "caphrim007@gmail.com" ]
caphrim007@gmail.com
ba4ce143ab4efe10927d17ed3c09492ccae1cd5b
b3aa3d77836fa8f05b54d68e7bd6bff19dced90d
/Codeforces/636 Div 3/D.py
84ea81677d1e3e2eaf8eef86a8f7d3c3ae042df2
[]
no_license
anoubhav/Codeforces-Atcoder-Codechef-solutions
660c5b78723791bc33b1d51977bf11ebe6dfe4c1
aeebcae332af64aba49f52261d11aa6996f33b1c
refs/heads/master
2022-12-08T14:02:49.574928
2020-08-29T14:18:30
2020-08-29T14:18:30
255,004,401
0
0
null
null
null
null
UTF-8
Python
false
false
4,380
py
# # Unsolved in contest ## Accepted solution: O(n+k) solution # https://www.youtube.com/watch?v=QouZfBC9CVw&list=RDCMUC4lyxGubhu5u1s1LYCwXtZw&index=2 def prefix_algo(): t = int(input()) from collections import defaultdict import math for _ in range(t): n, k = list(map(int, input().s...
[ "anoubhav.agarwaal@gmail.com" ]
anoubhav.agarwaal@gmail.com
a4e1b7f960a339d2696bd14deaf451002d5bf475
12cb9edd19612c132028c45707b4ec944ae4ae88
/3-deploy_web_static.py
8438f8acc72a80543e4eb6219a324f9f94c48f43
[]
no_license
imperfectskillz/AirBnB_clone_v2
6345389a99f66c23d310ac3030986ef8973c00bb
8910d78da6a6bb6f14fa569af913739f4b5cf5f5
refs/heads/master
2020-03-08T01:08:53.124647
2018-04-19T01:14:16
2018-04-19T01:14:16
127,822,734
0
0
null
2018-04-02T23:11:34
2018-04-02T23:11:34
null
UTF-8
Python
false
false
1,537
py
#!/usr/bin/python3 #fabric script generates a tgz archive from fabric.api import * from datetime import datetime import os env.hosts = ["52.91.246.129", "107.23.155.217"] env.user = "ubuntu" def do_pack(): """ creates tgz """ filetime = datetime.now().strftime('%Y%m%d%H%M%s') filename = 'versions...
[ "j.choi.89@gmail.com" ]
j.choi.89@gmail.com
c29aa7ebe11d45637e582453e40d5f668b9e0189
5b3d8b5c612c802fd846de63f86b57652d33f672
/Python/six_kyu/digital_root.py
5655cf937c38c8dc012f4fb38a715f99a3c7198f
[ "Apache-2.0" ]
permissive
Brokenshire/codewars-projects
1e591b57ed910a567f6c0423beb194fa7f8f693e
db9cd09618b8a7085b0d53ad76f73f9e249b9396
refs/heads/master
2021-07-22T18:50:25.847592
2021-01-25T23:27:17
2021-01-25T23:27:17
228,114,677
1
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
# Python solution for 'Sum of Digits / Digital Root' codewars question. # Level: 6 kyu # Tags: Algorithms, Mathematics, Numbers, and Arithmetic. # Author: Jack Brokenshire # Date: 13/02/2020 import unittest def digital_root(n): """ A digital root is the recursive sum of all the digits in a number. Given n, t...
[ "29889878+Brokenshire@users.noreply.github.com" ]
29889878+Brokenshire@users.noreply.github.com
fb5e0cbc84d8801e24e350f9c849aaae07d4483e
4de03eecadc4c69caf792f4773571c2f6dbe9d68
/tests/api/test_beshared.py
6362f1d3b23953ff61e2bcedd67f638da265f5a2
[ "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
2,540
py
import json import seaserv from seaserv import seafile_api from seahub.test_utils import BaseTestCase class BeSharedReposTest(BaseTestCase): def setUp(self): self.login_as(self.admin) def tearDown(self): self.remove_repo() def _prepare_repo_and_group(self): # create repo for use...
[ "colinsippl@gmx.de" ]
colinsippl@gmx.de
0fcb38ed4b11b89f3af06a4adbf4410b3eab6123
528f910908885c3ded4ecc6380b9603c8dcacbd6
/tbapi/top/api/rest/SimbaRptCusteffectGetRequest.py
58297bc4539f31f788a51628d13782982910cac7
[]
no_license
Monica-ckd/data007
15fe9c4c898a51a58100138b6b064211199d2ed1
0e54ae57eb719b86ec14ce9f77b027882a3398a8
refs/heads/master
2023-03-16T05:26:14.257318
2016-05-25T06:57:05
2016-05-25T06:57:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
''' Created by auto_sdk on 2013-04-01 16:44:41 ''' from top.api.base import RestApi class SimbaRptCusteffectGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.end_time = None self.nick = None self.page_no = None self.page_size = None...
[ "root@u16392468.onlinehome-server.com" ]
root@u16392468.onlinehome-server.com
10d497ee159d5fa12d220be2c774fd33f365bf17
fcd80f58e8006cb6bb04ac9dca4b3d58dc8d1d70
/files/example197_file_seek.py
9beb719cee7f34becceb6ea5685d4a6b719d77dd
[]
no_license
penguuu/python-examples
56e252be3dbf61cb0345cf8f95a01577f755f332
32f46ba435fd2797454af6228b368524ac1ebd79
refs/heads/master
2021-01-04T22:18:03.474098
2020-02-15T20:32:18
2020-02-15T20:32:18
240,781,755
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
#!/usr/bin/python fo = open("example197_file_seek.py","r") print "Name of the file: ", fo.name line = fo.readline() print "Read Line: %s" % line fo.seek(0,0) line = fo.readline() print "Read Line: %s" % line fo.close()
[ "pengu@shadow.babcom" ]
pengu@shadow.babcom
64b2dd0ee2448d18b763f3d2663e33790714d44c
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/MbbX7qJJeEnQu9bKr_16.py
770c027324993f571e65cc9d43a73570afc5f508
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
def max_occur(text): freqs = {c: text.count(c) for c in text if text.count(c) > 1} ​ if not freqs: return 'No Repetition' ​ return sorted(c for c in freqs if freqs[c] == max(freqs.values()))
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
6d23004951c597c739a77280febec8db68afdaf6
d8a5525d2e2070f0434e971b6b03df6d6457d47d
/torch_glow/tests/nodes/zero_test.py
3a5472f453da540a4dc3a705bbf9d2e2a12c8655
[ "Apache-2.0" ]
permissive
pytorch/glow
0006dbac932da386ff1143cff166b89323aec337
f35c3d180290c79d5d3578ccc800bb35ce88e420
refs/heads/master
2023-08-30T17:44:59.170945
2023-08-29T05:29:36
2023-08-29T05:29:36
105,281,531
3,201
780
Apache-2.0
2023-09-14T08:29:16
2017-09-29T14:28:18
C++
UTF-8
Python
false
false
1,146
py
# Copyright (c) Glow Contributors. See CONTRIBUTORS file. # # 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 ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b5995ba400cdef8251e2ed83be1b7a3160a382e1
627cca9406c31ce30c493ff7502f79eb4c57eee3
/xcha/pools/pool_config.py
2302aa6557d98b0686a6c0e7e602138bfb72a332
[ "Apache-2.0" ]
permissive
blockchiansea/xcha-blockchain
40c6d36813f671e94316a522904238f495f39f6b
7de0ba89056236e30069aef12fe25843f6093bcf
refs/heads/master
2023-07-26T02:36:57.654196
2021-09-06T06:04:21
2021-09-06T06:04:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,801
py
import logging from dataclasses import dataclass from pathlib import Path from typing import List from blspy import G1Element from xcha.types.blockchain_format.sized_bytes import bytes32 from xcha.util.byte_types import hexstr_to_bytes from xcha.util.config import load_config, save_config from xcha.util.streamable im...
[ "xchanet@gmail.com" ]
xchanet@gmail.com
2a04a0b4d524fd056e57e98a0700803743f8a35a
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/nn/intrinsic/modules/fused.py
dc962f956427ec6f6e6b1d0580a1d5c73bd9cd29
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
901
py
from torch.ao.nn.intrinsic import BNReLU2d from torch.ao.nn.intrinsic import BNReLU3d from torch.ao.nn.intrinsic import ConvBn1d from torch.ao.nn.intrinsic import ConvBn2d from torch.ao.nn.intrinsic import ConvBn3d from torch.ao.nn.intrinsic import ConvBnReLU1d from torch.ao.nn.intrinsic import ConvBnReLU2d from torch....
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
6a1fa05b533ac5a143059c018c1463515a70c318
e6630377da829600b846ad7ecd67daa335878b5a
/main/views.py
6211c54b7998d088bd564686df00b806c983aa97
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
jorgecarleitao/public-contracts
839a09cf54af5fc292aa640d1aaf235f1fb755fa
3107ddc007f3574ce19aaa2223399484bc6b1382
refs/heads/master
2021-06-15T23:07:13.291743
2017-05-09T11:44:56
2017-05-09T11:44:56
14,209,257
26
8
null
2017-07-21T10:45:15
2013-11-07T16:36:47
Python
UTF-8
Python
false
false
353
py
from django.shortcuts import render def robots(request): return render(request, 'robots.txt', content_type='text/plain') def home(request): return render(request, 'main_page.html', {'REQUIRE_D3JS': True}) def about(request): return render(request, 'about.html') def contribute(request): return re...
[ "jorgecarleitao@gmail.com" ]
jorgecarleitao@gmail.com
79431e97956904979ec976554f8289946bb61697
ee760ad085d305f12e4a60e6ea548e94e71606b6
/sds/envs/cartpole/cartpole.py
9f40106c313c24d4b0369a481d801c71182f2463
[ "MIT" ]
permissive
zlatanajanovic/sds
819ab40f044b72e0a88504601f23d233302c0b4b
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
refs/heads/master
2023-07-19T00:55:20.549984
2021-08-23T14:51:09
2021-08-23T14:51:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,644
py
import gym from gym import spaces from gym.utils import seeding import numpy as np def normalize(x): # wraps angle between [-pi, pi] return ((x + np.pi) % (2. * np.pi)) - np.pi class Cartpole(gym.Env): def __init__(self): self.state_dim = 4 self.act_dim = 1 self.obs_dim = 4 ...
[ "abdulsamad@ias.informatik.tu-darmstadt.de" ]
abdulsamad@ias.informatik.tu-darmstadt.de
9f360e44d1c0c0dcee68e96a596c20e516949e0a
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3/pr0v3rbs/c.py
5d1ec463d56cedc7496b8cb3f35b1bb73dc76551
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,290
py
import math powerArr = [[],[],[],[],[],[],[],[],[],[],[]] baseArr = [0,0,0,0,0,0,0,0,0,0,0] jamArr = [0,0,0,0,0,0,0,0,0,0,0] input() N, J = raw_input().split() N = int(N) J = int(J) def JamCheck(): result = True idx = 0 t = baseArr[2] for i in range(3, 11): baseArr[i] = 0 ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
70db18cb9ff35971591998a62ddab059246ace2b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_anarchist.py
f6c4dbb7d584b89e893652ff5df9b887a17eaf22
[ "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
391
py
#calss header class _ANARCHIST(): def __init__(self,): self.name = "ANARCHIST" self.definitions = [u'a person who believes in anarchism: ', u'someone who wishes to destroy the existing government and laws: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
b01999efc5b5875897213f5aaab988ee20c873f5
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/autoregressive_diffusion/experiments/audio/configs/sc09_wavenet.py
957e0ecbd26bb689722cf752a90ff946ab2ea6d4
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
2,032
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
9aaa492c6143160703e493cdf16a62b43a86dd6e
b32ca71ab8127f7c3c1a73a6a8f01adefa1be026
/mathsquiz6.py
34a38051e90b696fc060dc3e5abac524d9bd01e5
[]
no_license
Botany-Downs-Secondary-College/mathsquiz-Howard13312
a50312776d686ab51eb6421c8af16889a3440c3c
0c78c55ff99d058264791412d312eda4d37f9bef
refs/heads/main
2023-03-28T14:37:25.155100
2021-03-26T12:12:50
2021-03-26T12:12:50
337,539,510
0
0
null
null
null
null
UTF-8
Python
false
false
5,343
py
#mathsquizv6.py #Howard Li #import the tool kit interface (tkinter) modules from tkinter import* from tkinter import ttk from random import* #parent class class Mathquiz: def __init__ (self,parent): '''Widgets for welcome frame''' self.Welcome = Frame(parent) self.Welcome....
[ "noreply@github.com" ]
Botany-Downs-Secondary-College.noreply@github.com
0a9e74b629c603dd1c1563a8e5ef7e8718e00864
0fe394b10b39864915fcc4073a5fa050aa02502e
/MatplotPractice/AfricaCSV.py
107dee89fc18bac4c8c570c0efbedde89f3b5c09
[]
no_license
JohnAssebe/Python
9997d47bba4a056fdcd74c6e5207fc52b002cbfd
b88a7c2472f245dc6a0e8900bbea490cb0e0beda
refs/heads/master
2022-05-14T10:08:37.311345
2022-05-09T19:48:53
2022-05-09T19:48:53
212,562,910
0
1
null
null
null
null
UTF-8
Python
false
false
790
py
# -*- coding: utf-8 -*- """ Created on Thu Oct 17 11:30:26 2019 @author: Yohannes Assebe """ import csv from matplotlib import pyplot as plt plt.title("Africa Annual Inflation per years") #print(plt.style.available) #plt.style.use("seaborn-notebook") with open("african_crises.csv") as af: files=csv.Di...
[ "noreply@github.com" ]
JohnAssebe.noreply@github.com
b409f72e18569cb332729b7e95a20bd361d3e851
3b84ca7d132e6ca5004029d39bfa7c8fead07fe1
/seexpr/3.0.1/package.py
4a03d862bddca4dccd83610ebaf068b03b7781ef
[]
no_license
est77/rez-packages
05a5a05224e02c0a28bc37a81cbd07ca7447d604
449ade7acf92196efda2e8ec883c52ba4e33262d
refs/heads/master
2020-05-27T10:35:02.323417
2020-02-23T19:03:05
2020-02-23T19:03:05
82,542,112
22
7
null
null
null
null
UTF-8
Python
false
false
180
py
# -*- coding: utf-8 -*- name = "seexpr" version = "3.0.1" description = "SeExpr" variants = [ ['gcc-6.3.1'] ] def commands(): env.LD_LIBRARY_PATH.append("{root}/lib")
[ "ramenhdr@gmail.com" ]
ramenhdr@gmail.com
e8128ec06bdbba0ad8f05aea2b9b0c4a03325995
5c096fea6033e9c07f38e773e32c901bb7146d09
/04/jiangk/reboot-website/app/modules/manufacturers.py
85c4605e190298b07eecad20527588335cd92b34
[]
no_license
keepauto/devops2
8b043ed258030b75c9b2c7129ae1468af5b42850
b93c840bcca4bd8589546a171a6458bcc6d73047
refs/heads/master
2021-01-21T10:37:48.378259
2016-07-29T05:42:46
2016-07-29T05:42:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,957
py
#!/usr/bin/python # coding:utf-8 from app.models import Manufacturers from flask import current_app from app.models import db from app.utils import check_field_exists from app.utils import check_output_field from app.utils import check_order_by from app.utils import check_limit from app.utils import process_...
[ "seerjk@gmail.com" ]
seerjk@gmail.com
11c6ff5edd9c5239ca96577fc4e0da53c251d1a9
70a960186af21ae6f7a8fcd4d13fde54892f1821
/odds_and_ends/EVAunit00/dumps/serverscript/Windows Image Capture
2bdb0607338cfe16a61903f35dd46c65c877f937
[]
no_license
apua/altair_mat
d6f31bacae62d4490d561c2f9ec07a745693e15e
37dd580fd011aaae9ca52f99bb13757bab2df325
refs/heads/master
2021-04-29T05:49:01.561238
2015-08-21T09:40:50
2015-08-21T09:40:50
78,004,547
0
0
null
null
null
null
UTF-8
Python
false
false
4,161
#!/usr/bin/python # -*- mode: Python; tab-width: 4; indent-tabs-mode: nil; -*- # ex: set tabstop=4 : # Please do not change the two lines above. See PEP 8, PEP 263. # import sys import os from optparse import OptionError from osprov.optparse_ext import OptionParser from osprov.scripts import bootmode from o...
[ "apua.juan@hp.com" ]
apua.juan@hp.com
b3f108e068454d46e36179dc7ee8c4f4e19a3dcd
9c517135ceebe11b88a673f707c865470eac91a8
/layers/classifier.py
6d27ff88218a39e7247f85c3e1d23be4a34a947d
[]
no_license
chenun123/reid_baseline
fd6d516a8badcda81484a98c567c92a34bf0b457
315ef25801208fc0d3f7d91fda009089b0901313
refs/heads/master
2020-12-17T15:32:30.223860
2020-01-17T10:55:57
2020-01-17T10:55:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,489
py
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ from torch import nn from modeling.losses import * from modeling.backbones import * from .batch_norm import bn_no_bias from modeling.utils import * class ClassBlock(nn.Module): """ Define the bottleneck and classifier layer ...
[ "sherlockliao01@gmail.com" ]
sherlockliao01@gmail.com