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
8da5ce3936b1da52b252d10efbff997d6d849dbd
141545126466a00f32247dfa40e067ec049b0fa4
/Programming OOP Python/OOP Exercise/Inheritance/mix_it/project/technology/smart_phone.py
b7230e65fb2ec7f6944b3f0c3e211ea53cb085e1
[]
no_license
RadkaValkova/SoftUni-Web-Developer
83314367172a18f001e182b4e57f7ca0502ad1fc
61d3414373498bb6009ae70e8d17f26cd2d88ea5
refs/heads/main
2023-06-01T02:11:06.606370
2021-06-29T19:39:19
2021-06-29T19:39:19
325,611,606
1
0
null
null
null
null
UTF-8
Python
false
false
813
py
from Inheritance.mix_it.project.technology.technology import Technology class SmartPhone(Technology): def __init__(self, memory, memory_taken): Technology.__init__(self, memory, memory_taken) def install_apps(self, app, app_memory): try: memory_left = self.get_capacity(self.memory...
[ "76747070+RadkaValkova@users.noreply.github.com" ]
76747070+RadkaValkova@users.noreply.github.com
36df42514050300322261b602adbfe6fa29e0bc7
a12a4be7e8c792b4c1f2765d3e7a43056e9196b0
/954-array-of-doubled-pairs/954-array-of-doubled-pairs.py
a8fded849712c623826c0a5ca9dd1551054073ce
[]
no_license
fdas3213/Leetcode
d4b7cfab70446b3f6a961252a55b36185bc87712
1335d5759c41f26eb45c8373f33ee97878c4a638
refs/heads/master
2022-05-28T16:24:15.856679
2022-05-19T21:56:35
2022-05-19T21:56:35
94,024,751
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
class Solution: def canReorderDoubled(self, arr: List[int]) -> bool: #essentially this problem is asking for numbers in the array, can we find their double-valued number. The tricky part is some numbers are negative, so after sorting, -4 occurs before -2. Therefore if the current number is negative, we eith...
[ "szx9404@gmail.com" ]
szx9404@gmail.com
bde58e23222bd99c920e1284e7207867ac5e06e9
6cf46f85debb1b0505c0edcbc7296f50a44a615d
/dexy/tests/plugins/test_calibre_filters.py
bb179756c0d39fdcb753c000c2dbc0ced84862d2
[ "MIT" ]
permissive
aioupload/dexy
27b7f5051417093d8336e39d71e824b3ef5c9f56
350b7ed23d2f3aab50097aabf3481229d75d1cf7
refs/heads/master
2021-01-16T22:59:11.707350
2013-08-05T06:08:00
2013-08-05T06:08:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
from dexy.tests.utils import wrap from dexy.doc import Doc HTML = """ <h1>Header</h1> <p>This is some body.</p> """ def run_calibre(ext): with wrap() as wrapper: node = Doc("book.html|calibre", wrapper, [], calibre = { 'ext' : ext }, contents...
[ "ana@ananelson.com" ]
ana@ananelson.com
76d7a7d86c0471f1d76d26edd9001a7eeac6b623
170525ccbacdc6068633f6226dde4ba9cbd1dc1c
/scripts/demo_script/teardown_xxx.py
937f48c83eac4da786f82b99b6e60830a89a9e82
[ "MIT" ]
permissive
Python3pkg/Ftest
a942a48696e96001db5c71411c4555bbeb5a8e7e
0f06af325b6ffd60458ab0fbd4c0288d3e2fb0a9
refs/heads/master
2021-01-21T17:31:47.729669
2017-05-21T14:01:45
2017-05-21T14:01:45
91,961,482
0
0
null
2017-05-21T14:01:41
2017-05-21T14:01:41
null
UTF-8
Python
false
false
135
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from optparse import OptionParser import os,sys if __name__ == '__main__': print((0))
[ "raliclo@gmail.com" ]
raliclo@gmail.com
a31f44226efff3a124c92a48abc8d635d571dcb4
8064af9cb8120b5ebdfcdcbb10547695e3c646d2
/girder_worker/_test_plugins/tasks.py
7fe0cf91ecf9cc2966139b408d6debcabf3fc49d
[ "Apache-2.0" ]
permissive
girder/girder_worker
5f7391c2ea41d953e9b7e380fdb74a0a38c21e2f
19b4fc3360a0c9d92fbd0ecd1bfab693f8c75ae7
refs/heads/master
2022-11-20T10:41:26.072154
2022-11-17T13:27:31
2022-11-17T13:27:31
50,359,589
39
30
Apache-2.0
2022-11-17T13:27:33
2016-01-25T15:24:13
Python
UTF-8
Python
false
false
295
py
from girder_worker.app import app from girder_worker_utils import types from girder_worker_utils.decorators import argument def not_a_task(): pass @argument('n', types.Integer) def function_task(n): return n @app.task @argument('n', types.Integer) def celery_task(n): return n
[ "jonathan.beezley@kitware.com" ]
jonathan.beezley@kitware.com
597a7e2b6239f0d6103602a0725fef9d45390bac
2cd82d99b1abae8c16d35905b4fde97fdddd2b5a
/flapi_schema/protect.py
d265033810ed85ae41378c35528e28a4cf42e38c
[ "MIT" ]
permissive
manoadamro/flapi-schema
3bd2bcf39b308dee0ff96f6bc99cc0a1e81cb7a4
840cfe4bd0ff1e057c3ace9931bd35d8fdaf7808
refs/heads/master
2020-04-16T07:54:31.963040
2019-02-28T18:10:50
2019-02-28T18:10:50
165,403,488
0
0
MIT
2019-02-28T18:10:51
2019-01-12T15:31:19
Python
UTF-8
Python
false
false
2,081
py
import functools from typing import Any, Callable, Type, Union import flask from . import errors, types class Body(dict): def __init__(self, body): body = body or {} super(Body, self).__init__(**body) def __getattr__(self, item): try: return self[item] except Key...
[ "manoadamro.imp@gmail.com" ]
manoadamro.imp@gmail.com
eca934b02d2e1a02396bf9c6653c834b14aafba9
2befb6f2a5f1fbbd5340093db43a198abdd5f53b
/pythonProject/customAuth/customAuth/asgi.py
487989b2f070569554101e46ab3848fb480d0aaa
[]
no_license
JanardanPandey/RestAPI
1956d3529782d18ef2118961f6286e3213665aad
654933a4d9687076a00c6f4c57fc3dfee1a2c567
refs/heads/master
2023-06-14T07:02:31.702000
2021-07-02T07:50:59
2021-07-02T07:50:59
382,357,537
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" ASGI config for customAuth project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
[ "janardanpandey0510@gmail.com" ]
janardanpandey0510@gmail.com
0aa739d65a529174e0569ea6665d5f7b6f2a581d
cf32b755ad8fcbcc4cf56de7454b1a5a29bc3045
/packaging/scripts/build_vcpkg_port.py
6738eb360cfdfb056540500a3c6381e72fe3ebe1
[ "Apache-2.0" ]
permissive
robotraconteur/robotraconteur
e6a6e5ad8f17a7c8d93f70d40ff6716ab6c93e78
56cd9c90aa764eb3218e611e080353d3263c90d1
refs/heads/master
2023-07-24T18:24:50.301823
2023-07-10T17:36:41
2023-07-10T17:36:41
148,683,017
58
5
Apache-2.0
2023-09-12T05:34:30
2018-09-13T18:49:34
C++
UTF-8
Python
false
false
1,789
py
from pathlib import Path import hashlib import urllib.request import sys import re import os import shutil ref = os.environ["GITHUB_SHA"] ver = ref ref1 = os.environ.get("GITHUB_REF", None) if ref1 is not None: ref_match = re.match(r"refs/tags/v(\d+\.\d+\.\d+.*)", ref1) if ref_match is not None: ref ...
[ "wason@wasontech.com" ]
wason@wasontech.com
ec73443d8f34bbe1f2038b561189ef1275326267
7b51587e6caa998f32dc26d3693d6f5f70cb505a
/course_project/course_app/models.py
ac006fcb35f0128c9ca0856492bb9643b8fd1cf7
[]
no_license
connorskorburg/django_full_stack
18faba73737e3af42cd1c069cca261f4b113a2af
02bc8060c478137049796ff4891347cd00992717
refs/heads/master
2022-05-03T11:09:05.229233
2020-04-27T21:06:55
2020-04-27T21:06:55
255,200,773
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
from django.db import models # Create your models here. class CourseManager(models.Manager): def course_validator(self, post_data): errors = {} if len(post_data['course_name']) < 7: errors['course_name'] = "Course Name should be at least 6 characters!" if len(post_data['desc']...
[ "connorskorburg@gmail.com" ]
connorskorburg@gmail.com
2e693b0a65617447e7f2b143b692f45364ed1bd4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/103/usersdata/233/50069/submittedfiles/av1_3.py
7bba14b55a1296269cb0f918b3b2e730ba56c8df
[]
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
465
py
# -*- coding: utf-8 -*- import math a=int(input('Digite um número: ')) b=int(input('Digite um número: ')) ndedivisoes=0 if b>a: mdc=a maior=b menor=a elif a>b: mdc=b maior=a menor=b cont=0 while resto>0: resto=maior%menor maior=menor menor=maior%resto cont=cont+1 mdc=resto pr...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
f04dd6254e85e120585faf21ddd5105a4d0ff75d
321804c57505c583b34c10cbcc5089b03c4d3bd7
/schoolapp/migrations/0016_auto_20190701_1810.py
ecb2b6bbd0bae3a626b4adeebfa3dac064a1f320
[]
no_license
Dilipsa/janakalyan
8db50b541f1f8a380c865a116c6db81a6abfa40a
2fb27d7deae24546115490ac024835c008289673
refs/heads/master
2023-05-03T16:45:20.643681
2019-07-03T10:46:56
2019-07-03T10:46:56
194,267,347
0
0
null
null
null
null
UTF-8
Python
false
false
922
py
# Generated by Django 2.2.2 on 2019-07-01 12:40 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('schoolapp', '0015_auto_20190701_1751'), ] operations = [ migrations.RenameField( model_name='exam',...
[ "dilipsapkota.d@gmail.com" ]
dilipsapkota.d@gmail.com
a9f81ef8ff403f985800a69ebcad60e28086ec72
a3f1ef21441277188b2b0bdd4afffc19681bd744
/Algorithm_2021/May_2021/210523/2482 - Color/2482_210521_KimMinJae.py.py
a0b5d9482c2e5c6761871967b527b9923a21de27
[]
no_license
Python-study-f/Algorithm-study_1H
8e13da661de763daae221a4e11b0b266418d1052
7fbb01b89b1ac3535c30025b37b6edb9ea885aa3
refs/heads/master
2023-07-12T10:32:43.258663
2021-08-19T09:35:31
2021-08-19T09:35:31
325,935,464
0
0
null
null
null
null
UTF-8
Python
false
false
3,034
py
n= int(input()) k= int(input()) M=int(1e9)+3 dp= [[0]*(k+1) for _ in range(n)] for i in range(1,n): dp[i][1]=1 for i in range(1,n): for a in range(1,k+1): if i-2>=0: dp[i][a]+=dp[i-2][a-1] dp[i][a]%=M for a in range(1,k+1): dp[i][a]+=dp[i-1][a] dp[i][a]%=M ...
[ "baradamoh@gmail.com" ]
baradamoh@gmail.com
aaec6c95523c5d5043019580baaaa09d0aad3f6d
ae39da924cf7cd695fcdca91aeb533c086828649
/qiita.the.judge.py
1a8ea02bf4003f5632032be2dccd3b57d73ffee2
[]
no_license
GINK03/poetty
34e9f7d28ac674e422235cd338c195a808213014
9e4a15db12236e4b42a4eb9ac2f012d1b636faee
refs/heads/master
2021-01-23T03:53:30.970822
2017-03-25T04:24:13
2017-03-25T04:24:13
86,132,113
2
0
null
null
null
null
UTF-8
Python
false
false
6,276
py
import sys import json import os import requests from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities import selenium from bs4 import BeautifulSoup import time import http import concurrent.futures import urllib SLEEP = 10.0 def tag_scrape(): cap = DesiredCapa...
[ "you@example.com" ]
you@example.com
5e7ca6f3a51bbace7703021a844c4ded0735ea1f
3cc62bb1988ad83b4ec4bbfdfb9fa58acd11906e
/ESP32/L9110/testeClasseMotorDC.py
3ab3b91c39cb09bb3234df69944c10505af8b517
[]
no_license
Natalnet/lib_ura_esp
e4a44c73ae6e89b34407bb7dd9979206b9dffa79
8314cb83725ba3462dd8ad35f78395ce99b23521
refs/heads/master
2022-11-26T05:07:50.921949
2022-11-22T00:59:18
2022-11-22T00:59:18
181,964,776
6
1
null
null
null
null
UTF-8
Python
false
false
598
py
from MotorDC import MotorDC ## Direito m1 = MotorDC(13,12) ## Esquerdo m2 = MotorDC(5,23) import time # Motor 1 girando no sentido anti-horário - Direito m1.velocidade(0) m1.sentido(1) time.sleep(1) # Motor 1 girando no sentido horário m1.velocidade(1000) m1.sentido(0) time.sleep(1) # Motor 1 parado m1.veloc...
[ "orivaldo@gmail.com" ]
orivaldo@gmail.com
75edb50d48c3b72adf89abc5966bed56206a0637
a25aa09af984d08084a395f9b6df427d3756f11a
/function/closure.py
592279a7f269b4a8984c448e99c24a4a32b4acc7
[]
no_license
luyihsien/leetcodepy
31971e851a4ae77942a5d9e3ff07faea6e504c66
a54bd09f4b28f106196a6cd8a0f9c056bcd237e6
refs/heads/master
2020-05-19T13:21:57.854086
2019-10-16T14:23:00
2019-10-16T14:23:00
185,037,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,583
py
#https://www.youtube.com/watch?v=gwetZc-7Gg4&list=PLNTlJhYDV6sN8cH0bgaaVwsoF7EVHD_R6&index=16 #參考program diary->pretest2hr->part1 counting.py def test(number): def test_in(number_in): print('in test_in 函數,number_in is %d',number_in) return number+number_in return test_in ret=test(20)#不印東西,傳了20 p...
[ "luyihsien@gmail.com" ]
luyihsien@gmail.com
4d56a84b9ab7810e70bcb59a53272772483dcc5b
fd26306a308e954b8a4be0c2295c252c47d6935f
/test_scripts/test_iris_load_rips.py
4e0fede66015b7e61261085cc3d93b40f65544b8
[ "BSD-2-Clause" ]
permissive
ukcp-data/ukcp18-data-factory
39a4a122828cc8eb12ea1285e49f13e55185fd66
939ca5449ebb33415a3aece976ab86065066ce0b
refs/heads/master
2021-01-21T14:25:17.306342
2019-01-23T11:29:42
2019-01-23T11:29:42
95,437,369
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
import os import time import iris import pytest def _get_file_list(threshold=40): files = [] for dirpath, _2, filenames in os.walk('fakedata/ukcp18/data/land-gcm/uk/60km/rcp85'): for f in filenames: if not f.startswith('tas'): continue fpath = os.path.join(dirpath, f) ...
[ "ag.stephens@stfc.ac.uk" ]
ag.stephens@stfc.ac.uk
c450d953b4104127a02d5c7743e9a6b29095ef32
7d8022661a756f77f715ee4d099fb17cb9da671a
/quantlab/feature/zoo/G_NetAssetsPerShare.py
e002b015cddd8123cac1c9ec977a1ac6aa50e3a9
[]
no_license
lxj0276/Quant-Util
a7d70d88fc47eb16a08149faefa7b128c01c670e
2706ecba72a293ee01105ad22508a8d6b20e1394
refs/heads/master
2020-04-25T13:40:36.700892
2018-10-15T04:35:54
2018-10-15T04:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
from quantlab.feature import * from quantlab.feature.error import * class G_NetAssetsPerShare(PersistentFeature): description = '每股净资产增长率' def _create_feature(self, instrument_id, time_range): raise OriginalFeatureError('Can not create original features')
[ "zhangzc@pku.edu.cn" ]
zhangzc@pku.edu.cn
7f2f689b6883c422ff89b0e0b6d7caa9ddee9614
946c04aa741b557daf56eac46385a613ac5e0cf2
/PP4E/Gui/Intro/gui5.py
b2b8b70f650807ef1549ca6f4323d7c8a9f57dd9
[]
no_license
Ozavr/lutz
513ba0ca91d7188b2d28f649efe454603121106f
0ee96b5859c81ab04e8d2a3523a17fff089f12f2
refs/heads/master
2021-01-02T23:18:16.680021
2018-09-04T22:27:35
2018-09-04T22:27:35
99,497,282
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from tkinter import * class HelloButton(Button): def __init__(self, parent=None, **config): Button.__init__(self, parent, **config) self.pack() self.config(command=self.callback) def callback(self): print('Goodbye world...') self.quit() if __name__ == '__main__': ...
[ "ozavr@me.com" ]
ozavr@me.com
a3747146d7f8678915c0c173eb6d0695793974e3
f8e64dd069b2d65f1b9af53e03c42d97301e9a1d
/tests/django_test/tests.py
fce02241b82e1399b7cb2ee76df55ba7e3653277
[]
no_license
grengojbo/django-currency
8daef53e442d7409f02c68dec48ff535b1712377
26e26cfb09ae8e62851a81bc8d821e1530eef20c
refs/heads/master
2021-04-12T04:32:53.928776
2010-04-28T17:00:39
2010-04-28T17:00:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,206
py
# -*- mode: python; coding: utf-8; -*- from unittest import TestCase from currency_test.models import Entity, Entity_0_USD, Entity_USD from currency.fields import NotSupportedLookup from currency.money import Money from l10n.models import Currencies import logging log = logging.getLogger('currency_test') cla...
[ "oleg.dolya@gmail.com" ]
oleg.dolya@gmail.com
d56f4ea037bc27467c7b6ff93127249dcdcd3a15
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/o11_j194443+544943/sdB_O11_J194443+544943_coadd.py
7f0b5187489f4f32a43f3fd1021269bc0d5900b6
[]
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
458
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[296.179167,54.828611], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_O11_J194443+544943/sdB_O11_J194443+544943_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHT...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
de4b512f6f8e51b658c8c53c140d3df0a4b14b44
4c33dee03cf55b112b9a0b950690ccd45511e580
/code/lvmeng_project-master/erp/migrations/0119_position_department.py
f6d4218c3fe48d071d30dc128b0e6fdb146348c2
[]
no_license
yfjelley/lvmeng
4a40cf5b8c89581162d4ab4bcf303b97d40c4ccd
bb109b39381177782838fb6301204dd7d9a2d206
refs/heads/master
2020-08-02T21:00:40.579192
2016-11-12T14:00:44
2016-11-12T14:00:44
73,555,732
1
2
null
null
null
null
UTF-8
Python
false
false
478
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('erp', '0118_auto_20160527_1658'), ] operations = [ migrations.AddField( model_name='position', name=...
[ "549636719@qq.com" ]
549636719@qq.com
1514742dde6ae2b304dd7dfb50872bd586a69720
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/medium/19_6.py
ddaa591fada7eb3c14f6e998a2633e0b3f978525
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
4,327
py
Python | Tokenize text using TextBlob **TextBlob** module is a Python library and offers a simple API to access its methods and perform basic NLP tasks. It is built on the top of NLTK module. Install TextBlob using the following commands in terminal: pip install -U textblob python...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
7ba39ecac5902e8e07f7ce7b1706f98dc18359cc
fccf6c2a7eb9de7e5dc5daa361e29c4726b9b09c
/mush/plugins/_plugins/csv_datastore.py
82378c81fa70d93252d7ac834906cfe5fdb31e1d
[]
no_license
corystone/mush
b2331babf60e2ce4fece88337372ddef68e0d9ea
cebad9029e157f8421a760f5da807192088629fd
refs/heads/master
2020-12-25T23:08:50.905246
2015-06-22T21:31:01
2015-06-22T21:31:01
38,126,010
0
0
null
2015-06-26T18:03:40
2015-06-26T18:03:40
null
UTF-8
Python
false
false
1,315
py
# This contains the default implementations for all of mush's interfaces. import csv import os import prettytable import sys from collections import OrderedDict from mush.plugins import interfaces class data_store(interfaces.data_store): __keyname__="csv" def __init__(self, data_file=None): self.data...
[ "jose.idar@rackspace.com" ]
jose.idar@rackspace.com
dd21f4453e8f599ce6d096bae06ac7b552f4f64e
75f07b93b77e3e7eca1e31075b23dcf8c10f2546
/portfolio/position.py
fd755eae5a40282fabff9a36ffc8886980d98e4f
[]
no_license
ivanliu1989/EventDrivenForexTrading
138743b56ce6651cfae0067a955b97a355d3be84
0eba6931a8cbc2f46177681e336688a70f9ae71a
refs/heads/master
2020-07-31T19:21:42.660053
2017-01-08T21:10:36
2017-01-08T21:10:36
73,593,224
1
1
null
null
null
null
UTF-8
Python
false
false
4,297
py
from decimal import Decimal, getcontext, ROUND_HALF_DOWN class Position(object): def __init__( self, home_currency, position_type, currency_pair, units, ticker ): self.home_currency = home_currency # Account denomination (e.g. GBP) self.position_type = position_type # Long o...
[ "ivan.liuyanfeng@gmail.com" ]
ivan.liuyanfeng@gmail.com
03084d6addd2e7071d35fa9a713ea06a9d1d83fb
fc4d142b5fec695e740af79058db919ad235ad53
/sandyspringbank/pipelines.py
150fcf000e4668c5e1b5aac427a11b101be6c269
[]
no_license
daniel-kanchev/sandyspringbank
4cc36b965621ea6265a53778dfa883a8314980f2
f3f7db678dba045b8f9986ddf3d48fa0313fe6f3
refs/heads/main
2023-04-03T08:42:09.199209
2021-04-08T10:23:20
2021-04-08T10:23:20
355,860,065
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
from itemadapter import ItemAdapter import sqlite3 class DatabasePipeline: # Database setup conn = sqlite3.connect('sandyspringbank.db') c = conn.cursor() def open_spider(self, spider): self.c.execute(""" DROP TABLE IF EXISTS articles """) self.c.execute(""" CREATE TABLE articles ( ...
[ "daniel.kanchev@adata.pro" ]
daniel.kanchev@adata.pro
b82834ddecd77b9f12ca4bb842a94bc75c4021d1
139715a923c8c82b172803d5bdc1b1bca46fbdf3
/leetcode/longest_palindromic.py
1558c28aff116b13ee0bc8669113cf36a37c87fd
[]
no_license
haoccheng/pegasus
ab32dcc4265ed901e73790d8952aa3d72bdf72e7
76cbac7ffbea738c917e96655e206f8ecb705167
refs/heads/master
2021-01-10T11:33:23.038288
2016-03-18T04:17:28
2016-03-18T04:17:28
46,103,391
0
0
null
null
null
null
UTF-8
Python
false
false
1,608
py
# longest palindromic substring. def lps(input): if len(input) == 0: return '' elif len(input) == 1: return input scores = [] for i in range(len(input)): row = [-1] * len(input) scores.append(row) for i in range(len(input)): scores[i][i] = 1 for j in range(1, len(input)): for i in r...
[ "haoc.cheng@gmail.com" ]
haoc.cheng@gmail.com
6b8b9fe30ece7039707dd229ddd3c1020adedd9c
a247e3a40bca426f604ee057319ae3f7fce5c22f
/django1/djangonautic/urls.py
0d4dc74f4d6396317ca197b82807154782049cc4
[ "MIT" ]
permissive
stephenndele/django-1
fcb5cd2a8598b5d68855814fb588a231e06efc09
11be0289bc3b6b3234b1e34979f282bd06cbce2e
refs/heads/main
2023-03-26T14:55:11.769279
2021-03-25T12:12:55
2021-03-25T12:12:55
349,335,362
0
2
null
2021-03-25T12:12:56
2021-03-19T07:22:05
Python
UTF-8
Python
false
false
1,281
py
"""djangonautic URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "stephenndele09346@gmail.com" ]
stephenndele09346@gmail.com
27a6433c20f1f68049011382aae5e56e0b5f9452
e3abe5129d705b8d92ebd87f9a3e863ab88848a9
/sdks/python/http_client/v1/polyaxon_sdk/models/v1_list_bookmarks_response.py
a407aef848ef2bd0e694649a14fd7c4d410c557a
[ "Apache-2.0" ]
permissive
adamjankaczmarek/polyaxon
082a832ac67433eadb84174c41f866d0699186b1
fe3d182b8d0a910002ccc13c309c69f226807003
refs/heads/master
2023-04-22T13:52:09.043020
2021-05-09T22:06:09
2021-05-10T11:11:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,999
py
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
[ "contact@polyaxon.com" ]
contact@polyaxon.com
2c3e7fe3e05b4fc792b33fc317a459849dbbf604
141b42d9d72636c869ff2ce7a2a9f7b9b24f508b
/myvenv/Lib/site-packages/suds/umx/core.py
a8192451d1eaf24661e928594ae563a4e530d6de
[ "BSD-3-Clause" ]
permissive
Fa67/saleor-shop
105e1147e60396ddab6f006337436dcbf18e8fe1
76110349162c54c8bfcae61983bb59ba8fb0f778
refs/heads/master
2021-06-08T23:51:12.251457
2018-07-24T08:14:33
2018-07-24T08:14:33
168,561,915
1
0
BSD-3-Clause
2021-04-18T07:59:12
2019-01-31T17:00:39
Python
UTF-8
Python
false
false
7,554
py
# This program is free software; you can redistribute it and/or modify # it under the terms of the (LGPL) GNU Lesser General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will b...
[ "gruzdevasch@gmail.com" ]
gruzdevasch@gmail.com
f940a9c283dd7d30f54ed928bab5ccd889d43de5
b685036280331fa50fcd87f269521342ec1b437b
/src/myTensorflow/demo_05.py
1f2b57671c2b987ed681ce7c3c160a6d3972d3f4
[]
no_license
chenqing666/myML_DM_Test
f875cb5b2a92e81bc3de2a0070c0185b7eacac89
5ac38f7872d94ca7cedd4f5057bb93732b5edbad
refs/heads/master
2022-02-26T01:52:06.293025
2019-09-20T06:35:25
2019-09-20T06:35:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
import tensorflow as tf hello = tf.constant('hhh') a = tf.constant([[12, 12], [1, 5]]) b = tf.constant([[1], [2]]) c = tf.matmul(a, b) with tf.device("/cpu:0"): sess = tf.Session() print(sess.run(hello)) print(sess.run(c)) sess.close() with tf.device("/cpu:1"): sess = tf.Session() print(sess....
[ "daijitao@ctsi.com.cn" ]
daijitao@ctsi.com.cn
318e60bb5353bf9eaba8063aa04e015f49e9a0e1
a7f442bc306d1a8366a3e30db50af0c2c90e9091
/blockchain-env/Lib/site-packages/Cryptodome/Random/random.py
febf4166bce2618664f4f98ec0f4504e8918819c
[]
no_license
Patreva/Python-flask-react-blockchain
cbdce3e0f55d4ba68be6ecfba35620585894bbbc
474a9795820d8a4b5a370d400d55b52580055a2e
refs/heads/main
2023-03-29T01:18:53.985398
2021-04-06T08:01:24
2021-04-06T08:01:24
318,560,922
1
0
null
null
null
null
UTF-8
Python
false
false
5,384
py
# -*- coding: utf-8 -*- # # Random/random.py : Strong alternative for the standard 'random' module # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the ex...
[ "patrickwahome74@gmail.com" ]
patrickwahome74@gmail.com
8eda803cef0cd42e4531597c58443b4afb2dbac6
222c8bc3a44805e09f27701a28a7ede29713ebb5
/prjadmin/serializers.py
2ce1f655a619fb2c455d8a1415141f0bc1229832
[]
no_license
GDThumar2409/CodePlatform
8ad9db0c87dd7dce0dec013df6123750093efa18
9e0f447409310e56ccddc0db3ed8da0080fa955d
refs/heads/master
2021-05-26T01:08:58.773411
2020-04-12T20:38:23
2020-04-12T20:38:23
253,993,557
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
from rest_framework import serializers from django.contrib.auth.models import User class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ['username', 'password', 'email', 'first_name', 'last_name','is_staff']
[ "you@example.com" ]
you@example.com
605206c877a8dda26d26468f830f37f4dfbb3db3
eb676eb94cd3d21d684108d25249f1d1437ccf50
/mmrotate/core/bbox/assigners/__init__.py
ace9cc76460684a297699a775c9bee0edb086f5e
[ "Apache-2.0" ]
permissive
Ixiaohuihuihui/AO2-DETR
c11d5f2115180712907976b6a76d1526ba02f134
bb9ae812c804260900b101f417e58d247eaa8ad7
refs/heads/master
2023-05-23T21:36:04.978670
2023-03-16T03:25:03
2023-03-16T03:25:03
496,444,703
62
9
null
null
null
null
UTF-8
Python
false
false
453
py
# Copyright (c) OpenMMLab. All rights reserved. from .atss_kld_assigner import ATSSKldAssigner from .convex_assigner import ConvexAssigner from .max_convex_iou_assigner import MaxConvexIoUAssigner from .sas_assigner import SASAssigner #from .hungarian_assigne from .rotated_hungarian_assigner import Rotated_HungarianAss...
[ "1577884743@qq.com" ]
1577884743@qq.com
cfeeea8038ce5977273fa5d81dc00c26c86c4b6e
b1659f79351d99c648f25ca9a9e84970d7c2ef64
/shiyan7_file_processing/copy_file.py
57c0d3a03e5babdd727e2fbc4771413e94121b10
[]
no_license
MingGeng/shiyanlou_python_louPlus
5d64abbbe33940098e7c4130fea6a022db10d160
96d570bcee8f500f54f8ac38b29395fcda54d844
refs/heads/master
2021-04-06T19:46:29.381630
2018-07-17T14:54:40
2018-07-17T14:54:40
125,378,080
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
#!/usr/bin/env python3 import sys def copy_file(src, dst): with open(src, 'r') as src_file: with open(dst, 'w') as dst_file: dst_file.write(src_file.read()) if __name__ == '__main__': if len(sys.argv) == 3: copy_file(sys.argv[1], sys.argv[2]) else: print('Parameter Erro...
[ "gengming8859@icloud.com" ]
gengming8859@icloud.com
034cf1b1308370192a9ab2340253d102ef5bbc6c
362224f8a23387e8b369b02a6ff8690c200a2bce
/django/django_intro/project_time_display/time_display/views.py
b238849ea6063ca9c51919b8556a6ebde2a1f8d7
[]
no_license
Helenyixuanwang/python_stack
ac94c7c532655bf47592a8453738daac10f220ad
97fbc77e3971b5df1fe3e79652b294facf8d6cee
refs/heads/main
2023-06-11T02:17:27.277551
2021-06-21T17:01:09
2021-06-21T17:01:09
364,336,066
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
from django.shortcuts import render from time import gmtime, strftime def index(request): context = { "time": strftime("%Y-%m-%d %H:%M %p", gmtime()) } return render(request,'index.html', context)
[ "wangyixuan@msn.com" ]
wangyixuan@msn.com
f70acbf56e56f24e26c3c2808fc6aa5d0a7635ec
de40d3fa8d8af0030556d27d6833f6a1a0e7700c
/baekjoon/17626pypy/a.py
43ec93671373bad428745d81436d93d8559bf4c1
[]
no_license
NeoMindStd/CodingLife
cd6a627209c0353f4855f09fd5dfef8da4bbfef6
bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3
refs/heads/master
2022-12-24T10:42:45.390085
2022-12-11T16:27:16
2022-12-11T16:27:16
191,797,634
2
0
null
null
null
null
UTF-8
Python
false
false
481
py
n=int(input()) d={i+1:set([])for i in range(n)} for i in range(1,int(n**.5)+1): for j in range(i+1): if i*i+j*j>n:continue for k in range(j+1): if i*i+j*j+k*k>n:continue for l in range(k+1): if i*i+j*j+k*k+l*l>n:continue if i*i+j*j+k*k+l*l==n: ...
[ "dwj1996@naver.com" ]
dwj1996@naver.com
bfa07f61497ac1d49059b4af509b1844addd9485
ad71c89863122dfb4093db0d9f9c40d962d567ff
/Week 10/4-Filter.py
3ce6e74e198c41ed602ce39f4fd16c4986268cce
[]
no_license
jacktnp/PSIT60
8958e7cca278c81d2c5d3af6956728c35425628d
b63c63d8d9c1e97ce66bbb0b884b1f19fecf7b6b
refs/heads/master
2021-08-16T07:53:33.900161
2017-11-19T10:07:02
2017-11-19T10:07:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
""" PSIT Week 10 Wiput Pootong (60070090) Filter """ import json def main(): """ Filter print content """ # Get input score = json.loads(input()) minimum = float(input()) result = {} # Filter dict and add to result for key in score: if score[key] > minimum: result[ke...
[ "wiput.pootong@gmail.com" ]
wiput.pootong@gmail.com
8c48777341e44f792ab6dcb9e9da7e70eb67f220
9923e30eb99716bfc179ba2bb789dcddc28f45e6
/openapi-generator/python-aiohttp/openapi_server/models/data_input_history_response.py
6672b2175e984ab8db1350d1ca8bfc4654f85bce
[]
no_license
silverspace/samsara-sdks
cefcd61458ed3c3753ac5e6bf767229dd8df9485
c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa
refs/heads/master
2020-04-25T13:16:59.137551
2019-03-01T05:49:05
2019-03-01T05:49:05
172,804,041
2
0
null
null
null
null
UTF-8
Python
false
false
3,200
py
# coding: utf-8 from datetime import date, datetime from typing import List, Dict, Type from openapi_server.models.base_model_ import Model from openapi_server.models.data_input_history_response_points import DataInputHistoryResponsePoints from openapi_server import util class DataInputHistoryResponse(Model): ...
[ "greg@samsara.com" ]
greg@samsara.com
cdd508ea83e581bcbd0e2f671f104c1414b5b9f7
8a136d27c97471f77d097a787db156de06adfb16
/recombinator/statistics.py
ed5b1b58a4e8c5729dc942121a0868aaf87d9aa9
[ "MIT" ]
permissive
InvestmentSystems/recombinator
1dba03c522b21e007c255602904f31d7a26b08a6
d424af17468f47837b9382fe1ec26a318f5bfa5d
refs/heads/master
2022-04-30T01:27:24.532236
2022-03-14T17:09:21
2022-03-14T17:09:21
193,591,908
48
7
NOASSERTION
2021-10-15T17:50:09
2019-06-24T22:54:39
Jupyter Notebook
UTF-8
Python
false
false
2,597
py
import numpy as np import typing as tp def estimate_bias_from_bootstrap( bootstrap_estimates: np.ndarray, original_estimate: float) \ -> float: """ This function estimates the bias of an estimator given an estimate of a statistic from the original data as well as variety of estimat...
[ "nowotnym@gmail.com" ]
nowotnym@gmail.com
d16cb68beadf89a16185b08bd09bd75bae2cda13
4178f2916d2da72cbb45454fbed941dcfe8f6460
/POM_test/TestCase/Carings/TC_004.py
f2ead3ccafac57472446f9c1bdd2739738d9281f
[]
no_license
maxcrup007/Selenium_Webdriver_Python
15196cb04ba5cafdc5b776c26d167f0b48fb0e14
6be7f0b9f53df1ba592957029e8a4d22e409d1c4
refs/heads/main
2023-03-24T21:04:31.976451
2021-03-22T09:16:04
2021-03-22T09:16:04
349,379,454
0
0
null
null
null
null
UTF-8
Python
false
false
1,666
py
# ทดสอบการเข้าใช้งานของ "ดูแล" (ไม่กรอกค่าใช้จ่าย) import time import unittest import sys from selenium import webdriver from POM_test.login import * from POM_test.carePage import * import os sys.path.append(os.path.join(os.path.dirname(__file__), "...", "...")) class TestCarring_4(unittest.TestCase): @...
[ "36732487+maxcrup007@users.noreply.github.com" ]
36732487+maxcrup007@users.noreply.github.com
95659be5d2b9fb41e555cdbb25327e0291bc2851
d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496
/com.CheckProofing/2020/Test_w_46_HolidayDeals_T2/Page/UrlSegmentPage.py
61a6dd2c24f998b80fd6e222ede997e7ec931584
[]
no_license
ahmed-test001/python
21a27248c4571a13c0ed4dccab256aede1beea3a
eab59b9a54fae1a51fbc18c391599eb3b0e28b3d
refs/heads/master
2023-03-10T21:00:54.634028
2021-02-27T05:31:58
2021-02-27T05:31:58
342,778,794
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
import glob import json from urllib.parse import urlparse, parse_qs import sys import os import logging from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait import time sys.path...
[ "ahmedu.ferdous@gmail.com" ]
ahmedu.ferdous@gmail.com
d304225bc84eb2bec9567d3480889e172d89a555
c13ff329df99c3589012420284113b066af29b1f
/core/gpx_course.py
ac443f892a7811253662678a3d84ed6a24d2e648
[]
no_license
esitarski/RaceDB
8bbdaecbf357777e13a4edcf6505ecdd7103f6ca
2d2add6390ca530c84bf1a023a94d5e1be493e60
refs/heads/master
2023-08-03T06:24:14.509166
2023-07-29T14:54:01
2023-07-29T14:54:01
26,198,293
11
9
null
2023-04-06T23:47:35
2014-11-05T02:03:24
Python
UTF-8
Python
false
false
3,544
py
import io import operator from django.utils.translation import gettext_lazy as _ from django.utils.safestring import mark_safe from .views_common import * from .gpx_util import simplify_gpx_file gpx_fields = ('name', 'description', 'is_loop') #----------------------------------------------------------------------- ...
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
3d5a55d347cc1bc11ea731b190a643f856803c70
2bd8fbe6e2ee2511d00479440aa589249234c2d8
/00-before/day02/day02-02.py
821f53381fefd0c304af25fb2cce00ccaf3a42a0
[]
no_license
LeenonGo/sklearn-learn
71d21f9b26cfb5cc6d65a22883127db873a31091
460d6e75e82943c802f7c025a03c821d02b5d232
refs/heads/master
2023-07-13T18:42:17.510938
2021-08-18T11:34:06
2021-08-18T11:34:06
371,628,997
0
0
null
null
null
null
UTF-8
Python
false
false
2,606
py
""" 使用核 https://www.scikitlearn.com.cn/0.21.3/54/#_8 在特征空间中 类并不总是线性可分的。当不是线性可分时,解决办法就是构建一个不是线性的但能是多项式的函数做代替。 核技巧(kernel trick) """ import numpy as np import matplotlib.pyplot as plt from sklearn import svm # 显示3种不同类型的核函数 多项式和径向基函数在数据点不可线性分离时特别有用。 # Our dataset and targets X = np.c_[ (.4, -.7), (-1.5, -1), (-1....
[ "yaa.lee@hotmail.com" ]
yaa.lee@hotmail.com
977209a94b46fb2730ead78aa93ff34d4464ce3e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03151/s789097501.py
becc8d411e69359a20b256c72dc2e6e2eb1aa843
[]
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
505
py
from collections import deque N = int(input()) A_list = list(map(int, input().split())) B_list = list(map(int, input().split())) AB_list = sorted([A-B for A,B in zip(A_list, B_list)]) AB_q = deque(AB_list) if sum(AB_list) < 0: print(-1) exit() if AB_list[0] >= 0: print(0) exit() cnt = 0 stock = 0 whi...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6f53bcccde0a98f07f693b4281475f98032e7f8f
bccb2cb00fecc24031e727a0ecbc246338d488eb
/softdesk/projects/models.py
c3234eb7a9d15f6e84c9059f8c8b24290aafa058
[]
no_license
Arnaud290/OC_P10
03c8e85e8f89d7a32afea086b56adea34047ab53
fb22c9e8906d2b61e6fa575ea2e271933e19b2ca
refs/heads/master
2023-04-27T04:59:40.320393
2021-05-19T11:45:59
2021-05-19T11:45:59
361,775,491
0
0
null
null
null
null
UTF-8
Python
false
false
2,384
py
"""Models module of the projects application""" from django.db import models from django.contrib.auth.models import User from projects import models_settings class Project(models.Model): """Class model of projects""" title = models.CharField(max_length=150) description = models.TextField() project_typ...
[ "arnaud.manach@gmail.com" ]
arnaud.manach@gmail.com
8d8110debe4699408211ea4bb0962b0a9bf66819
a7ab35ff204d7c4679ce8b1bf7da8fa363a7a708
/algo_problems/q21-40/q23.py
cb55f511f5fdab09a549928e1f8ab28fe315dc05
[]
no_license
lin13k/practice
c68e7270be2694cb9737c35af8beb19db7e30d65
c3efe1a5839c3ff1c320c0fcfc7b65a9462f7b52
refs/heads/master
2021-01-19T11:05:43.521468
2018-11-12T09:42:29
2018-11-12T09:42:29
87,928,424
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None from heapq import heappop, heappush class Solution(object): def mergeKLists(self, lists): """ :type lists: List[ListNode] :rtype: ListNode """ ...
[ "lin.13k@gmail.com" ]
lin.13k@gmail.com
da571d73461045494b60e526070e97af8271e170
b79547dd150df2fd77a7b9a323623cd6a42b8e25
/djpsilobus/bin/file_search.py
a55336fb36183da576e8551691a55923c95fa133
[ "MIT" ]
permissive
carthage-college/django-djpsilobus
030d704d7345cdcb993f378c644fdfacb1fa5fff
386bc17a845247be3049f98f4d38ff49cb54d60c
refs/heads/master
2023-08-06T17:37:25.021935
2023-07-26T17:53:28
2023-07-26T17:53:28
62,468,994
2
0
MIT
2023-02-24T18:19:35
2016-07-02T20:41:30
Python
UTF-8
Python
false
false
1,635
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import logging import os import sys from django.conf import settings from djpsilobus.core.dspace import Search os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djpsilobus.settings.shell') logger = logging.getLogger('debug_logfile') # set up command-l...
[ "plungerman@gmail.com" ]
plungerman@gmail.com
fe1bea797d76883e3f659fcca6b2c325b12774e0
161b18b516fd5b2752ea295efc05676b3b34892d
/tensorflow_datasets/text/eraser_multi_rc.py
28207e014e73a1cc5b3d7ca9910c8016ab63092c
[ "Apache-2.0" ]
permissive
bryanko1/datasets
8b35bc6e2e085036bfd30223aa2b0008afa002f3
e49ca713c49090ce4f492972f9aa262f5ba9bc9a
refs/heads/master
2020-12-22T14:02:54.667732
2020-01-28T09:17:35
2020-01-28T09:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,318
py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
dfa95e2462bd86d26a9f7d3757b27bdef972362f
48181c1bd373edaaadbec309cab5da25c52e47c3
/hutch_python/sim.py
e1dfb4542370862fe71846ba5454c1cd38a2c38c
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
pcdshub/hutch-python
af9ff58107e070fe969b7a8c8d1da18ed81a5873
fef6f96d3c44bf0da1ed25c6c17df9672821e82e
refs/heads/master
2023-08-07T18:19:26.405423
2023-07-26T18:46:37
2023-07-26T18:46:37
113,611,605
0
12
NOASSERTION
2023-09-14T21:12:43
2017-12-08T19:49:46
Python
UTF-8
Python
false
false
531
py
from pcdsdevices.sim import FastMotor, SlowMotor from .utils import HelpfulNamespace def get_hw(): """ Create and return a standard namespace of simulated hardware. """ ns = HelpfulNamespace( fast_motor1=FastMotor(name='fast_motor1'), fast_motor2=FastMotor(name='fast_motor2'), ...
[ "zlentz@slac.stanford.edu" ]
zlentz@slac.stanford.edu
2377b02069bf9b22cbb3f89194613ce2d7525707
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_auto_enlarge_policy_response.py
75f08f4d44424ce81bdffa24b129356802af2175
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
5,527
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowAutoEnlargePolicyResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name a...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
18d081a1a26e6b3c47c8e55d81a6d91aa2b7b735
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2218/60668/258458.py
f38e4c040c42a7174b78c93f3637f955f0585387
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
280
py
def nums_2_MaxRe(list = []): co = 0 maxN = 0 list = sorted(list) maxN = max(list[0]*list[1]*list[-1],list[-1]*list[-2]*list[-3],list[0]*list[1]*list[2]) print(maxN) if __name__=='__main__': list = [int(i) for i in input().split(',')] nums_2_MaxRe(list)
[ "1069583789@qq.com" ]
1069583789@qq.com
4dedbba84e4889f05bcad7b75275e677afc3f312
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/13104141.py
f0d4bf6a4d694ece0647c69bf0b806b0c67d2a4d
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,805
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/13104141.py generated: Fri, 27 Mar 2015 16:10:15 # # Event Type: 13104141 # # ASCII decay Descriptor: {[B_s0 -> K+ pi- (KS0 -> pi+ pi-)]cc, [B_s0 -> K- pi+ (KS0 -> pi+ pi-)]cc} # from Configurables import Generation Generation().EventType = 13104141 Gener...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
84fb8e291315d9a393354a8e67361dd64e6fd0e4
c5a8f6dd4e5ebc43f02923704325620f0787b2f4
/ssr/basicscene.py
bc159ec8a3c24dce6476f9b14ae58672f281a783
[]
no_license
alex-berman/tforms
50098501d19de75632426423d02025162bbc94e6
046476001609dfa8192c2e373a040d4129975ab6
refs/heads/master
2021-01-01T20:00:00.381901
2014-03-16T13:44:09
2014-03-16T13:44:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,243
py
import time class Source: def __init__( self, scene, id, x=0, y=0): self.scene = scene self.id = id self.x = float(x) self.y = float(y) self.type = "point" self.orientation = float(0) self.mute = False self.name = "Unnamed" self.volume = 0.0 # in dB self.level = 0.0 self.allocated = False self...
[ "alex@nimations.com" ]
alex@nimations.com
6e7a32865eb8dbea26532005cc58571592484527
df264c442075e04bb09d82f9be1d915c070d7e09
/BJ/test.py
68b9f10e7570303b108ced7ca8241e23a7fa15b4
[]
no_license
Koozzi/Algorithms
ff7a73726f18e87cab9406e7b71cd5d1856df183
38048ac0774fcab3537bdd64f48cae7d9eb71e6f
refs/heads/master
2021-07-06T04:59:38.564772
2021-05-03T08:49:56
2021-05-03T08:49:56
231,848,463
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
import sys sys.setrecursionlimit(10**9) N = int(sys.stdin.readline()) graph = [[] for _ in range(N+1)] for _ in range(N-1): A, B, V = map(int, sys.stdin.readline().split()) graph[A].append([B, V]) graph[B].append([A, V]) first_node = [] second_node = [] def dfs(start, dist, visit, flag): is_next =...
[ "koozzi666@gmail.com" ]
koozzi666@gmail.com
8008cb74c0796e8dc38df9909485efc9043688a2
aa1e01857c2e02b711e1b748d79016377bcbf3f6
/3. Chapter 3 Strings/Practice problems/44_string.py
02a6bdb72dd4e24d12f502bf244f4318ddfd62aa
[]
no_license
jaishivnani/Python-Practice-Problems
3d6b64aca93d28bc479f21845e878b0cc2b037fb
46d82b276cb46d61cd0acac507cc92b4707e5456
refs/heads/main
2023-01-22T23:06:48.309872
2020-12-05T14:13:26
2020-12-05T14:13:26
303,448,649
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
'''Exercise Question 3: Given 2 strings, s1, and s2 return a new string made of the first, middle and last char each input string s1 = "America" s2 = "Japan" Sample Output AJrpan ''' def mix_string(s1,s2): first_char = s1[:1]+s2[:1] middleindexstr1 = int(len(s1)/2) middleindexstr2 = int(len(s2)/2) last...
[ "jaishivnani30@gmail.com" ]
jaishivnani30@gmail.com
1497165184eefde56d8e6e78e009701022cfcccc
d8eb27616043df6d04413f542b41a44cae36bf7e
/app_control_pagos/migrations/0009_contrato_tipo_venta.py
275df190692dd8a41ebee01d5f63d9e73649eea3
[]
no_license
josuetec2003/prados_uni
b6fc18869a7e687d00207904c705a3151ef1cee8
c28931da6bbdcbd571c39adacddb9633530ef295
refs/heads/master
2023-02-17T22:38:35.247733
2021-01-17T06:18:22
2021-01-17T06:18:22
174,756,059
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
# Generated by Django 2.1.5 on 2019-02-24 22:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_control_pagos', '0008_auto_20190224_1607'), ] operations = [ migrations.AddField( model_name='contrato', name='t...
[ "josuetec2003@gmail.com" ]
josuetec2003@gmail.com
5c25e6f49d864fdbe34d9f52d36b9342c77cc673
203fd0a2a91ee063736d11b069e11026c4184ec5
/tools/test_files/all_10_or_less/benstein_vazirani_4b_secret_64.py
e67acc15699e4fb9e5a5bc39dd0d2df78e53f8a2
[ "Apache-2.0" ]
permissive
Astlaan/OpenQL
19b35200775367e6f11d1756e9495c1883a1c531
1b60d5784d439e6c19e662b570114aa1b3045d38
refs/heads/develop
2020-09-01T02:56:37.906564
2019-11-15T15:43:55
2019-11-15T15:43:55
181,012,110
0
0
NOASSERTION
2019-04-12T13:18:51
2019-04-12T13:18:51
null
UTF-8
Python
false
false
3,314
py
from openql import openql as ql import os import argparse def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W...
[ "diogovalada.7@tecnico.ulisboa.pt" ]
diogovalada.7@tecnico.ulisboa.pt
a78d626ed6b9fdba7310ee814419c4e8fc87672a
268a6b7a1138dce434c6b7a54eb36cb4ae799ddd
/traffic/gen_global3.py
a40e5bd17336117dd59518e7333434717245641a
[ "BSD-2-Clause" ]
permissive
rubiruchi/fdeval
2b0592853a684a8c5b87aeb363e4ccff61f47c0c
f6463c1c7549b8ac7fc39854e87c88d3cac858a0
refs/heads/master
2022-11-08T17:56:34.188225
2020-06-23T16:46:13
2020-06-23T16:46:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
import logging import random import math import scipy.stats import numpy as np import matplotlib.pyplot as plt from core.flow import Flow from core.events import * from plotter import flow_timeline logger = logging.getLogger(__name__) class gen_global3(object): def __init__(self, ctx, generator, **kwargs): ...
[ "robert.bauer@kit.edu" ]
robert.bauer@kit.edu
efe9da7fa86810dfd385f6396b294dd1970df151
0190fe5a5b650abca6a65b200ea3a7af644759ce
/conftest.py
1a300a6133b2db1a0ec79f601a41b316b98a853f
[]
no_license
hjwp/process-hobbler-experiment
8d09e5a2a7359d88dc6b4b87d4da9fef36b0d97c
6ab90a5bd9726c8a943b9e1d45bdab38704b8330
refs/heads/master
2021-01-10T10:01:50.914178
2017-10-20T14:20:28
2017-10-20T14:20:33
47,463,923
0
0
null
null
null
null
UTF-8
Python
false
false
1,913
py
from unittest.mock import MagicMock import os import pytest import shutil import subprocess import tempfile import hobbler @pytest.fixture def fake_tarpit_dir(): tempdir = tempfile.mkdtemp() open(os.path.join(tempdir, 'tasks'), 'w').close() yield tempdir shutil.rmtree(tempdir) @pytest.fixture def f...
[ "hjwp2@cantab.net" ]
hjwp2@cantab.net
9cd848ffaea44c0ee981b09a95f92b841cef53c2
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/go_person_with_last_way/know_first_eye/own_man.py
7042c034a3aa2a060078b517f42b1a363467afd2
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
#! /usr/bin/env python def work_or_new_work(str_arg): problem_and_few_group(str_arg) print('point') def problem_and_few_group(str_arg): print(str_arg) if __name__ == '__main__': work_or_new_work('first_eye')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
ea4b91de5188c08322eb93e14a91ec61413a8aee
55173732ce1f2537a4fd8a6137b2a813f594b250
/azure-mgmt-web/azure/mgmt/web/models/csm_slot_entity.py
a4fa331c44923274bf1c0cb45fde420170618a93
[ "Apache-2.0" ]
permissive
dipple/azure-sdk-for-python
ea6e93b84bfa8f2c3e642aecdeab9329658bd27d
9d746cb673c39bee8bd3010738c37f26ba6603a4
refs/heads/master
2020-02-26T15:32:39.178116
2016-03-01T19:25:05
2016-03-01T19:25:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,587
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
48497ac7c8cec0739f72691a46b25e8a520925d2
abf2df30f13ab035280a24a0cb46da9138516174
/DailyCodingProblem/Problem_0072_directed_graph.py
53a5ea56337339e65eaf155df3fcdfd503c02099
[ "MIT" ]
permissive
stephanosterburg/coding_challenges
19ade39b87e6712b87ec8e370d0440baae29c8d7
601cf1360a7fdf068487106ba995955407365983
refs/heads/master
2022-04-03T05:04:53.282117
2020-02-09T23:39:19
2020-02-09T23:39:19
214,471,142
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# In a directed graph, each node is assigned an uppercase letter. We define a path's value as the number of # most frequently-occurring letter along that path. For example, if a path in the graph goes through "ABACA", # the value of the path is 3, since there are 3 occurrences of 'A' on the path. # # Given a graph with...
[ "stephanosterburg@me.com" ]
stephanosterburg@me.com
17a497a2df07cc53fa24a005cf3a807d626a9b40
e1acd737f0d6d3ffce53ca0eab74c7b3d8bc12fe
/musics/models.py
ba04f666e4c80bfddeef6e17f73de5b8acf1080d
[]
no_license
yooseungju/django_restframework
bad082fbc8efd66e40031f2c294ab3408388090e
73afc6158f7e7db5e6c4943aa7f3df114b29cf90
refs/heads/master
2020-05-16T09:36:08.080062
2019-04-23T07:04:28
2019-04-23T07:04:28
182,954,319
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
from django.db import models # Create your models here. class Artist(models.Model): name = models.TextField() def __str__(self): return self.name class Music(models.Model): artist = models.ForeignKey(Artist, on_delete=models.CASCADE) title = models.TextField() def __str_...
[ "seung338989@gmail.com" ]
seung338989@gmail.com
55269f45a3f0812a1368a6bcd776754e10dc9a5e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03186/s921086785.py
b7706541bdddcea1c3f9a0c90d98af9bba4f214f
[]
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
132
py
from sys import stdin a,b,c = [int(x) for x in stdin.readline().rstrip().split()] if c > a+b+1: print(a+2*b+1) else: print(b+c)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5cea0651ce728891e9e420e6a703db7d4cee7d3b
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/scatterpolar/selected/_textfont.py
30aeb59e814c41aa71bc69f95b74d658733bed99
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
547
py
import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='textfont', parent_name='scatterpolar.selected', **kwargs ): super(TextfontValidator, self).__init__( plotly_name=pl...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
8565158cb2c90eaf4a4618f308ae44b191bf8f43
93039551fbdef0a112a9c39181d30b0c170eb3a6
/day32/taobaoDemo.py
6ff4682c0b348d8f69564e0766e5d71c7700738c
[]
no_license
wenzhe980406/PythonLearning
8714de8a472c71e6d02b6de64efba970a77f6f4a
af0e85f0b11bf9d2f8e690bac480b92b971c01bb
refs/heads/master
2020-07-14T20:46:45.146134
2020-05-28T12:16:21
2020-05-28T12:16:21
205,398,758
0
0
null
null
null
null
UTF-8
Python
false
false
2,527
py
# _*_ coding : UTF-8 _*_ # 开发人员 : ChangYw # 开发时间 : 2019/8/27 11:03 # 文件名称 : taobaoDemo.PY # 开发工具 : PyCharm import re import pymongo from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import exp...
[ "noreply@github.com" ]
wenzhe980406.noreply@github.com
7ef6abb868a7e5b3019233e4889aa1558055b4bb
cffc460605febc80e8bb7c417266bde1bd1988eb
/since2020/ZeroJudge/ZeroJudge a121.py
b2ac7ad7616056cec23201fe50cfdeec0cc63899
[]
no_license
m80126colin/Judge
f79b2077f2bf67a3b176d073fcdf68a8583d5a2c
56258ea977733e992b11f9e0cb74d630799ba274
refs/heads/master
2021-06-11T04:25:27.786735
2020-05-21T08:55:03
2020-05-21T08:55:03
19,424,030
7
4
null
null
null
null
UTF-8
Python
false
false
1,060
py
''' @judge ZeroJudge @id a121 @name 質數又來囉 @tag Prime, Range Query ''' from math import ceil from itertools import chain from collections import defaultdict from sys import stdin def LinearSieve(n): size = n + 1 prime = [] sieve = [ True ] * size sieve[0] = sieve[1] = False for x in range(2, size): if sie...
[ "m80126colin@gmail.com" ]
m80126colin@gmail.com
030fe07bf277febb8cb78cb0b5cef575adcfc29f
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2956/60721/293098.py
5619ad5cc2557214b159ddcfeb74a6e58de9c11e
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
275
py
n=int(input()) s=input() if(n==2): print(675) elif(n==5): print(11607365) elif(n==1): print(26) elif(n==3): if(s=="sss"): print(17525) else: if(s=="sas"): print(17474) else:print(17473) elif(n==17525): print(17474)
[ "1069583789@qq.com" ]
1069583789@qq.com
f59a2c6445dd7696398ae140e74fa5bec2b94747
aaa204ad7f134b526593c785eaa739bff9fc4d2a
/tests/task/task_runner/test_task_runner.py
afeafd03b216d7fa789b653e07c1ba27727d1f26
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
cfei18/incubator-airflow
913b40efa3d9f1fdfc5e299ce2693492c9a92dd4
ffb2078eb5546420864229cdc6ee361f89cab7bd
refs/heads/master
2022-09-28T14:44:04.250367
2022-09-19T16:50:23
2022-09-19T16:50:23
88,665,367
0
1
Apache-2.0
2021-02-05T16:29:42
2017-04-18T20:00:03
Python
UTF-8
Python
false
false
2,497
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
cfei18.noreply@github.com
d65d517ee886cbdba4f6330df3dc89828242ceef
05c0df5c49089c243603093769af6c0f6ea8db62
/auto_deployment/asgi.py
9fe080853a614a1f0b913b62bb725c82672eab89
[]
no_license
mishraranjeet/auto_deployment
3a6e89d3dbb43f0605cec4d31dc2f85aab154627
c1e0a8b901237a59b3e9115edd7414c6faa0a4ff
refs/heads/master
2022-11-14T20:16:31.859416
2020-07-05T09:23:45
2020-07-05T09:23:45
277,261,463
1
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" ASGI config for auto_deployment project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJAN...
[ "mac@Macs-MacBook-Pro.local" ]
mac@Macs-MacBook-Pro.local
079676899690099e0c1c59758494294fe2caf37d
b3a5a479eb5aedbc39776fe5f580b127e6a86d2b
/androGuard_main/build/scripts-2.7/androsign.py
243c932959d9facff160a7f2cbb03b590db717e2
[ "Apache-2.0", "MIT" ]
permissive
jat023/G10442Project
5403bf245f294748b64e42ff87699659b6c7c796
6ed4ad943c3f897fdafd4db4e52e4e44473f9f1f
refs/heads/master
2021-05-01T07:08:13.805343
2016-12-04T07:21:00
2016-12-04T07:21:00
74,098,825
1
0
null
null
null
null
UTF-8
Python
false
false
4,430
py
#!/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python # This file is part of Androguard. # # Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr> # All rights reserved. # # Androguard is free software: you can redistribute it and/or modify # it under the terms of the GNU Less...
[ "james@Jamess-MacBook-Pro.local" ]
james@Jamess-MacBook-Pro.local
0ed51f0938faaffca49d5d6260d033cb2860ea14
a4deea660ea0616f3b5ee0b8bded03373c5bbfa2
/executale_binaries/register-variants/nop.gen.vex.py
adc0b8ab44a953037082c5e4cf29abd7c5d6580d
[]
no_license
Vsevolod-Livinskij/x86-64-instruction-summary
4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd
c276edab1b19e3929efb3ebe7514489f66087764
refs/heads/master
2022-02-02T18:11:07.818345
2019-01-25T17:19:21
2019-01-25T17:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
import angr proj = angr.Project('nop.exe') print proj.arch print proj.entry print proj.filename irsb = proj.factory.block(proj.entry).vex irsb.pp()
[ "sdasgup3@illinois.edu" ]
sdasgup3@illinois.edu
8222a8c44c2c15ac35c62c6e0793e999f60e571c
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_34/433.py
6b399c8cae78461bbd77cc6746ab4efd4f99f295
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,252
py
#!/usr/bin/python ''' Usage %s ''' import logging import re CurrentDebugLevel=logging.DEBUG wordBank = [] dictionary = [] def ProcessCase(inFile, caseNum): logging.debug('Case %d', caseNum) wordContent = inFile.readline().strip() wordContent = wordContent.replace("(", "[") wordContent ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f28fd80173ca96a9fbaf894a8e128f33b98cde69
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/fcb1a2b6cc146d9bb9dd8a45a439ed8c84fe6b1b-<ensure_present>-fix.py
6c3c05621622653123252641e662e0fe938c0f54
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
def ensure_present(ec2, module, domain, address, private_ip_address, device_id, reuse_existing_ip_allowed, check_mode, isinstance=True): changed = False if (not address): if check_mode: return { 'changed': True, } address = allocate_address(ec2, domain, ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
74c898b95d5dfc2e765064db3077a42b595fa177
26d8dfdf67ed97b9dbfed32bb53153ef295b3132
/study_project/text_mining/01_re_module/sample_re_007.py
3f373c551fd172dcf16c51a32fa55435b6f15ef6
[]
no_license
JuniorMSG/python_study
32961de49ebefe67f3806b632e976329f386ddab
3407810c502b25391d4cf1207d450081202e473c
refs/heads/master
2023-09-06T03:50:53.939882
2021-11-18T11:11:51
2021-11-18T11:11:51
380,512,364
0
0
null
null
null
null
UTF-8
Python
false
false
2,955
py
# 주어진 텍스트내에서 영문자가 3개 또는 5개로 구성된거 다 찾기? import re # [1] text1 = "(Question) kor 단어는 검색되지만 korea 또는 korean 에는 매칭이 안되는 패턴? a ab abc abcd abcde abcdef" pattern1 = re.compile( r'\b[a-zA-Z]{3}\b|\b[a-zA-Z]{5}\b' ) rst_matchLst1 = re.findall( pattern1, text1 ) print( "[1] : ", rst_matchLst1 ) ...
[ "=" ]
=
e85cd56e5368b28da135182c0292f190d20e364c
8cdad42543eb9d6a3c3a9ddf5a3d768a09aef78d
/lesson4/RNN/MNIST/6_1_multiplayers.py
b9eab7b44f18abeb2f2c123f57b2ab3bf2a2b1cd
[]
no_license
SoulDuck/Edu_DL
b81b4ac871864440210b109c7fc76c7cc2c54391
3ab10fa147bb6282517a413a5c2c465f0277cebe
refs/heads/master
2022-11-27T08:18:39.676980
2019-03-17T14:44:27
2019-03-17T14:44:27
155,827,188
0
1
null
2022-11-01T20:28:40
2018-11-02T07:04:08
Jupyter Notebook
UTF-8
Python
false
false
3,063
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import time import numpy as np # download MNIST Data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) """ Multilayer 을 구축합니다. 구현 조건 1. RNN 층을 Multilayer 층을 4개 만들고 2. 첫번째 층에는 dropout state 층에 keep prob 을 0.3 줍니다. (n_untis...
[ "plznw4me@naver.com" ]
plznw4me@naver.com
aeae064481125527d5e95ee27fb7b904674f4f5f
aa923eadae72811514bcbad7e2e2cbcde7a0462f
/local_celery/celery_dir/update_account.py
9c681711729dbe02ee6368dd681de7a41f2119bb
[]
no_license
niuyb/cloudcc_api
b7a099c533b111df57c86ab55972b882c9de2a51
c2f34ad6c613ab91e67af196dd9a9ea1af82cd8b
refs/heads/master
2023-03-27T20:57:01.914378
2021-03-25T07:41:02
2021-03-25T07:41:02
322,498,310
0
1
null
null
null
null
UTF-8
Python
false
false
4,127
py
#!/usr/bin/env python # encoding: utf-8 # 作者:Ksar4 # 日期:2021/1/20 18:01 # 工具:PyCharm # Python版本:3.7.0 from datetime import datetime import pandas as pd from local_celery.celery_dir import celery_app from local_celery.celery_dir.celery_utils import inster_sql from public.utils import engine, date_ms, list_to_sql_string,...
[ "niuyubin@yqzbw.com" ]
niuyubin@yqzbw.com
e057b6136ed9b4687a848af38704e59de519f6f6
7e11a563876a05771152448c8c80cf262f3bbc40
/python1基础/day04/Code/day04lianxi4.py
fb2c171eded34210e90ea2ab8e01341e8e1a20fa
[]
no_license
qiujiandeng/-
ee8eb1c828177c9796b3a1bda547aa036c19914d
bb376535ff9f2fe23828bee32efb1d9010aa38e6
refs/heads/master
2020-05-25T11:56:39.471770
2019-05-21T07:52:22
2019-05-21T07:52:22
187,779,234
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
# 4.写一个程序,输入一个开始的整数存于begin变量中 #   输入一个结束的整数,存于end变量中 #   打印从 begin 到 end(不包含end)的每个打印整数, #   打印在一行内, #   如: #  请输入:8 #  请输入:20 # 打印: # 8 9 10 11 12 ...... 19 # 附加思考: # 如何实现每5个打印在一行内,打印多行? # 提示:多家一个变量来记录打印的个数?? begin = int(input("请输入一个开始整数:")) ...
[ "961167272@qq.com" ]
961167272@qq.com
ed4ac4518d340e112fd35e61ae8194e9e776f862
1254f553b70353c6d4ee85c2497db23ebb7903f2
/swagger_client/models/controller_service_referencing_components_entity.py
153fcb422548bd83960788aa2a0b501b4a15b098
[ "Apache-2.0" ]
permissive
tspannhw/nifi-python-swagger-client
05137bd2ad36706f323621ab2510abb124ce9bf9
0cc73d31a1143c3fa73237fd3d4702a7c3c5b3b1
refs/heads/master
2021-01-20T02:24:36.484855
2017-08-24T12:52:46
2017-08-24T12:52:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,412
py
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
[ "dchaffey@hortonworks.com" ]
dchaffey@hortonworks.com
20ea77f788de5bbe93c8de01c326f72c4f087a0e
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/14103033.py
6ed006b374215b2db311570ac420669f3d427337
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/14103033.py generated: Fri, 27 Mar 2015 16:10:02 # # Event Type: 14103033 # # ASCII decay Descriptor: [B_c+ -> K+ K- K+]cc # from Configurables import Generation Generation().EventType = 14103033 Generation().SampleGenerationTool = "Special" from Configur...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
f0773c3d85b5a68ed5568aeae406a4e410ea48db
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02679/s800126290.py
c905aef7741a59ad331416877b29e332a536e6b9
[]
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
971
py
from collections import defaultdict from itertools import groupby, accumulate, product, permutations, combinations from math import gcd def reduction(x,y): g = gcd(x,y) return abs(x)//g,abs(y)//g def solve(): mod = 10**9+7 dplus = defaultdict(lambda: 0) dminus = defaultdict(lambda: 0) N = int(...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8c27719420176713c08a64f849712e87957bfab1
aa553e801b4bb57d1814b5c16adfdf5218140f23
/o.py
a3ae0764d56ac3e0ac8543eb79018cefc6abade3
[ "MIT" ]
permissive
Ashokkommi0001/Python-Patterns-Alphabets-Lower_case
9e8c5ea5dc41a676f30df83e9641ce572390257c
f394fb9982cc379e8cb7046d6768e6b5387c52ca
refs/heads/main
2023-03-07T08:33:09.451650
2021-02-26T18:22:14
2021-02-26T18:22:14
342,663,342
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
def o(): for row in range(7): for col in range(5): if ((col==0 or col==4) and (row!=0 and row!=6)) or (col>0 and col<4) and (row==0 or row==6): print("*",end=" ") else: print(end=" ") print()
[ "noreply@github.com" ]
Ashokkommi0001.noreply@github.com
742924069ec330596c8aaf7d1a0ce43e819a5789
ec07f53ae1f38ef1b68a3588b73c451aa7576ec7
/testing/kfctl/kf_is_ready_test.py
c72b6d91c14328353df471fdd053b5842ca33125
[ "Apache-2.0" ]
permissive
yangtaokm/kubeflow
dda5e2cc927394fc4404e61f5752ee6dad2f236d
065bb6b025db5c87d11db7d1c74247596589dc91
refs/heads/master
2020-06-06T03:56:15.041962
2019-06-19T01:53:18
2019-06-19T01:53:18
192,631,327
0
0
Apache-2.0
2019-06-19T00:41:45
2019-06-19T00:41:44
null
UTF-8
Python
false
false
2,683
py
import datetime import logging import os import subprocess import tempfile import uuid from retrying import retry import pytest from kubeflow.testing import util from testing import deploy_utils def test_kf_is_ready(namespace, use_basic_auth, use_istio): """Test that Kubeflow was successfully deployed. Args: ...
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
8354f076aae30212dfec4e79547f4b09f4c31496
ce68e6f989ebf72becce3638dc920fc60edec45c
/SWEA/D1/2029.py
e0019f33535fe789c5fbf59ddbcec2fc6f3be5c6
[]
no_license
hyeinkim1305/Algorithm
103513e502241a619a60e6663ed8346e5c574ebc
93541b01fab0a6ceb6f9dd06a7c049c8b57d94f9
refs/heads/master
2023-05-09T19:07:58.280912
2021-06-10T01:51:29
2021-06-10T01:51:29
330,079,859
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
n = int(input()) for i in range(n): m = list(map(int,input().split())) s = m[0] // m[1] ss = m[0] % m[1] print('#{} {} {}'.format(i+1,s,ss))
[ "haileyyy1305@gmail.com" ]
haileyyy1305@gmail.com
e1ba2403cf68faa11bb4c2fc5410853726d89095
d0b7942c4566d2b113eb4922fc97407a9ee72026
/backend/chat/migrations/0001_initial.py
190879587f8d8ef12ccd9c78ba15f72be4503bca
[]
no_license
crowdbotics-apps/test-app-23834
04767ba8d6891aa51a5a85973a8538e6b963ea4b
4caec0016097cd41b4e27a8380d1a8dc63603a6c
refs/heads/master
2023-02-12T22:51:22.743405
2021-01-14T03:07:08
2021-01-14T03:07:08
329,491,873
0
0
null
null
null
null
UTF-8
Python
false
false
4,805
py
# Generated by Django 2.2.17 on 2021-01-14 03:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('chat_user_profile', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
9560adee9b3a55756e747eaa1780ae195f491252
750473b9909dd29cc61f87f505860c690b918b6e
/src/zope/authentication/tests/utils.py
c5e404447a82fe78177ac137641f5be632a9f6de
[ "ZPL-2.1" ]
permissive
jean/zope.authentication
c07991890dcf3fb0cb3e9d07af072512a8ce910f
db7f23f02c65146aa1b4dc12b56fabf2ed170f7f
refs/heads/master
2021-01-18T13:26:08.701822
2015-04-02T16:39:30
2015-04-02T16:39:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,941
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "tseaver@palladion.com" ]
tseaver@palladion.com
6eb7851c45ab360af6b04e2f5b9d6e456c2c38b9
a4949df03443cdecf602b0a238e370be3a540248
/experiments/experiment_1/database/citations/esfahani2011a.py
efde3be7a1baba4d1fe83b32a7d78a956b21dd1d
[ "MIT" ]
permissive
gems-uff/hybrid-strategies
b13d4c60dd68c430eb344e056bdc751a4c5980ff
1d37ed72270e901db36f6b5ae6ebb03ba734f2e1
refs/heads/master
2021-03-27T16:14:59.715371
2019-06-19T19:29:16
2019-06-19T19:29:16
109,733,311
2
2
null
null
null
null
UTF-8
Python
false
false
3,278
py
# coding: utf-8 from snowballing.models import * from snowballing import dbindex dbindex.last_citation_file = dbindex.this_file(__file__) from ..work.y1996 import kaplan1996a from ..work.y1996 import kaplan1996c from ..work.y1996 import brinkkemper1996a from ..work.y1997 import yu1997a from ..work.y1999 import martins...
[ "ericamourao@gmail.com" ]
ericamourao@gmail.com
01e74c620099334d2311d8df9fbaa7db89be7b7b
ce6c8e0e3a986af3fe3c347a4af16f1ca337f82c
/2.add-two-numbers.py
968c2ad4b90afe76212279e6ccfef191ac465aa6
[]
no_license
chenjienan/python-leetcode
dc098373ae7f73dd502d7747888a37a3bd0820cb
90c000c3be70727cde4f7494fbbb1c425bfd3da4
refs/heads/master
2020-04-28T20:46:50.395260
2020-02-12T18:48:01
2020-02-12T18:48:01
175,556,339
16
3
null
null
null
null
UTF-8
Python
false
false
1,042
py
# collected # @lc app=leetcode id=2 lang=python # # [2] Add Two Numbers # # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode ...
[ "chenjienan2009@gmail.com" ]
chenjienan2009@gmail.com
11d29b9282cde6fd847934479f7477fc1c9122b5
4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422
/_1825_Finding_MK_Average.py
9f9749e48f56a8a32f8dc3d34c8f61bc34404cec
[]
no_license
mingweihe/leetcode
a2cfee0e004627b817a3c0321bb9c74128f8c1a7
edff905f63ab95cdd40447b27a9c449c9cefec37
refs/heads/master
2021-06-19T07:46:46.897952
2021-05-02T05:13:17
2021-05-02T05:13:17
205,740,338
3
0
null
null
null
null
UTF-8
Python
false
false
1,537
py
#!/usr/bin/python3 from sortedcontainers import SortedList from collections import deque class MKAverage: def __init__(self, m: int, k: int): self.m, self.k = m, k self.sl = SortedList() self.dq = deque() self.total = 0 self.ksmall = 0 self.klarge = 0 de...
[ "hemingwei2017@gmail.com" ]
hemingwei2017@gmail.com
6dffa89d189a7cff3b5c1dddbf3172349ee361ce
90fb55320c81259cb199b9a8900e11b2ba63da4f
/204/pomodoro.py
f2838f6ffa98d3df17dd3a8dbc8d0fb2a6618581
[]
no_license
pogross/bitesofpy
f9bd8ada790d56952026a938b1a34c20562fdd38
801f878f997544382e0d8650fa6b6b1b09fa5b81
refs/heads/master
2020-05-19T07:31:44.556896
2020-01-26T12:48:28
2020-01-26T12:48:28
184,899,394
1
1
null
null
null
null
UTF-8
Python
false
false
2,979
py
import asyncio import time from typing import Union # ONE_MIN = 60 # FIVE_MIN = ONE_MIN * 5 # TWENTY_FIVE_MIN = ONE_MIN * 25 # THIRTY_MIN = ONE_MIN * 30 # HOUR = ONE_MIN * 60 # CURRENT_SESSION = 1 ONE_MIN = 0.006 FIVE_MIN = ONE_MIN * 0.0005 TWENTY_FIVE_MIN = ONE_MIN * 0.0025 THIRTY_MIN = ONE_MIN * 0.003 HOUR = ONE_MI...
[ "p.gross@tu-bs.de" ]
p.gross@tu-bs.de
2c011e7b6518c9693a3b9fff8f864a89e1c5ba3c
cbee7b36c10c9716c20de66363ae8cc07061e5e8
/job_1/1849769.out/article.py
650fa13e20a77248539f87546593c1c65617d7f3
[ "MIT" ]
permissive
alexfmsu/lomonosov_task_tracker
bcdea94c7c805e1e32e773f88200ca1bc0021fb7
690f1f04f6f78d3be3a79973a4921d11c150e12a
refs/heads/master
2020-03-16T09:55:29.910877
2020-03-15T19:09:10
2020-03-15T19:09:10
132,625,683
0
1
null
null
null
null
UTF-8
Python
false
false
3,863
py
# --------------------------------------------------------------------------------------------------------------------- # TC_Lindblad # import matplotlib # import matplotlib.pyplot as plt import matplotlib.pyplot as plt import matplotlib from PyQuantum.Common.STR import * import numpy as np from PyQuantum.PlotBuilder.P...
[ "alexfmsu@mail.ru" ]
alexfmsu@mail.ru
5a6e2cc8c0c5665a0ac8c18ecec13dbf21b611e5
1c78f644375ab532fad399c406ca02157f25a4cb
/parsers-generators/nx2t3d.py
935917016fa8b52f032c3c4e5032d5f6eaa1f884
[]
no_license
jiahao-shen/SDN-TE-SR-tools
015d16539ed35be578172320acb65202be231713
a02af01fed2f116861dc03650e5de578a6ef5581
refs/heads/master
2020-04-07T16:27:52.591741
2018-12-17T09:23:09
2018-12-17T09:23:09
158,524,766
0
0
null
null
null
null
UTF-8
Python
false
false
7,525
py
####################################################################################################### # nx2t3d.py # # Copyright (C) 2015 Pier Luigi Ventre - (Consortium GARR and University of Rome "Tor Vergata") # Copyright (C) 2015 Stefano Salsano - (CNIT and University of Rome "Tor Vergata") # www.garr.it - www.uni...
[ "you@example.com" ]
you@example.com
482f47e922d98cd69d63577ce64b04bda294bc0b
b1571f4ee376d789b8094777fd81c4fb47a89cf1
/AtCoder/本番/ABC/ABC181/D.py
e6da8a83b803465438a610e825c5c319b39997c0
[]
no_license
hiroyaonoe/Competitive-programming
e49e43f8853602ba73e658cab423bd91ebbe9286
2949e10eec3a38498bedb57ea41a2491916bab1c
refs/heads/master
2021-06-23T21:56:33.232931
2021-05-30T15:27:31
2021-05-30T15:27:31
225,863,783
2
0
null
2020-06-14T17:54:28
2019-12-04T12:37:24
Python
UTF-8
Python
false
false
416
py
from collections import Counter as cnt sss=input() ss=cnt(list(sss)) i=0 l=min(len(sss),3) while i<10**l: if sss==i: print("Yes") exit() s=ss.copy() ok=True si=str(i).zfill(l) for j in range(l): lit=si[j] if s[lit]>0: s[lit]-=1 else: ...
[ "onoehiroya@gmail.com" ]
onoehiroya@gmail.com
604ecd8e558508196c5a4e4320c8cb367c9d758c
82716ba41cf74d2edd4ef44a4c153ac7db6ba82a
/day7.py
ec304c5e5447fb35a522b200d330d3ccc51be813
[]
no_license
bomcon123456/30Days_Leetcode
124c5115363bd78aebd1241b1dccca381ff6eaf0
a89bae9fe2bdb016813f84493c15d5a11efc57ce
refs/heads/master
2021-05-23T08:13:37.151970
2020-04-30T15:08:08
2020-04-30T15:08:08
253,192,250
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
import collections class Solution: def countElements(self, arr: List[int]) -> int: s = set(arr) res = 0 for num in arr: if num+1 in s: res += 1 return res
[ "bomcon123456@gmail.com" ]
bomcon123456@gmail.com
456c970bbf3617a39e988c8c34f508a39a4cfe26
f9632d4a822f6525a007598a1f67757ac9891749
/rakuten/playground/map_reduce.py
e3ff7c8e88105487c347d11760ba5360ce4aed4c
[]
no_license
rpryzant/marketing
ab055a5ae02ed287cb5a763d3e937efa72d057df
9f463da0a2e7c9c48951e793d95534963cd19721
refs/heads/master
2021-09-07T01:20:31.720381
2018-02-14T22:13:40
2018-02-14T22:13:40
116,716,301
1
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
""" my janky version of map reduce """ import glob from tqdm import tqdm import multiprocessing import os from joblib import Parallel, delayed def mapreduce( map_fn, # takes a path, returns something reduce_fn, # takes a list of mapper outputs, returns a reduced string input_filename='', # input file...
[ "rapigan@gmail.com" ]
rapigan@gmail.com
7bd82b50721a0d02ad3d4b48b4660d7d5e790e92
96e8165c97db032bd5a548421fc73d9c939a2c7b
/texttestlib/default/gtkgui/version_control/bzr.py
9013274161a5ab654cf15d2170d0599f20617f42
[]
no_license
jprk/texttest
678469c8043256edff026ffacc9f07da28e2d449
c2eca1828df53f33e8b85535e3d6bbefe26a36cd
refs/heads/master
2020-09-25T01:36:23.921986
2019-08-29T10:22:55
2019-08-29T10:22:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,653
py
import vcs_independent, datetime, time, os class BzrInterface(vcs_independent.VersionControlInterface): def __init__(self, controlDir): warningStates = [ "Modified", "Removed", "Added", "Renamed" ] errorStates = [ "Unknown", "Conflicts", "Kind changed" ] vcs_independent.VersionControlInte...
[ "geoff.bache@jeppesen.com" ]
geoff.bache@jeppesen.com
35abf60cb64b905529c05fa7d3976ff06e9e696a
f92fd5ba7ec30729dada169f7684e2edf565c139
/test/case/mapsetting/TestMapSetting_adjustmap.py
eee602975c50e69586fda20ab90fec51fa68cd94
[]
no_license
rico-o/autoTest
6ea0c83ab3ef60bf8ee13d00f61995d3357f4c37
6ca03420faf1b0523a567eed11a8212796ee3d35
refs/heads/master
2022-03-30T14:34:55.787787
2020-02-08T11:46:23
2020-02-08T11:46:23
218,439,831
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
import unittest from test.pages.MapSettingPage import * class Test_adjustmap(unittest.TestCase): """校准——点取""" @classmethod # 类方法 def setUpClass(cls): cls.setting = MapSettingPage() def test_adjustmap(self): self.setting.login() self.setting.iframe1() self.setting.base...
[ "53588251+rico-o@users.noreply.github.com" ]
53588251+rico-o@users.noreply.github.com
e1394f9d7ec15287ca35efde8d98eb461cc26cc8
344b654cbb8b13d683bcd2cacf522c983287a5fe
/Tkinter_module/Frame.py
b40e98edddcb22afff549c2f0929a2173a753156
[]
no_license
tchaitanya2288/pyproject01
d869522584ab498008e67e81c209472ab20685c2
565660b73039db6f0e9ed986504c2f96ba674f9c
refs/heads/master
2020-03-15T13:18:21.480443
2018-06-19T18:44:47
2018-06-19T18:44:47
132,163,324
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
# !/usr/bin/python3 from tkinter import * root = Tk() root.geometry("500x500") frame = Frame(root) frame.pack() bottomframe = Frame(root) bottomframe.pack( side = BOTTOM ) redbutton = Button(frame, text="Red", fg="red") redbutton.pack( side = LEFT) greenbutton = Button(frame, text="Green", fg="green") greenbutton.p...
[ "tchaitanya.2288@gmail.com" ]
tchaitanya.2288@gmail.com
67b1ca0997f13807405ccc9e2c3d82facb2e4635
33f1c49920201e21adaf794c826148d0330db4a1
/python/stack_queue_hash_heap/128_hash_function.py
a8563647bc5669c1addadbdc6a1584ff1fcc5170
[]
no_license
zsmountain/lintcode
18767289566ccef84f9b32fbf50f16b2a4bf3b21
09e53dbcf3b3dc2b51dfb343bf77799632efd219
refs/heads/master
2020-04-04T21:35:07.740575
2019-03-16T20:43:31
2019-03-16T20:43:31
156,291,884
0
0
null
null
null
null
UTF-8
Python
false
false
1,625
py
''' In data structure Hash, hash function is used to convert a string(or any other type) into an integer smaller than hash size and bigger or equal to zero. The objective of designing a hash function is to "hash" the key as unreasonable as possible. A good hash function can avoid collision as less as possible. A widely...
[ "zsmountain27@gmail.com" ]
zsmountain27@gmail.com
d5bf564b6bb62b4110996a59525a1720f5fcbc20
c8a9d66efb29a9a5d5a42b74c252eeb91f20e2f8
/survae/transforms/bijections/functional/mixtures/params.py
446142104e6cd2140655a6668d8d380fac8ce6d2
[ "MIT" ]
permissive
alisiahkoohi/survae_flows
60ebfa86506f4139ce1fd9508e9c1e0dbdd1bdff
e1747b05524c7ab540a211ed360ab3e67bc3e96d
refs/heads/master
2022-12-19T15:18:42.587276
2020-09-17T12:34:51
2020-09-17T12:34:51
290,247,391
1
0
MIT
2020-08-25T15:08:02
2020-08-25T15:08:01
null
UTF-8
Python
false
false
378
py
import torch def get_mixture_params(params, num_mixtures): '''Get parameters for mixture transforms.''' assert params.shape[-1] == 3 * num_mixtures unnormalized_weights = params[..., :num_mixtures] means = params[..., num_mixtures:2*num_mixtures] log_scales = params[..., 2*num_mixtures:3*num_mixt...
[ "didrik.nielsen@gmail.com" ]
didrik.nielsen@gmail.com