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
22212b89866c682e600156e061acfef822671fd1
a5d05e3cecfa6571016e41d19c982f1082714582
/PROXYC.py
e125e22e4e8ce246a22c2fe83135f1a2f165446a
[]
no_license
Sanket-Mathur/CodeChef-Practice
8ebc80eb9a32c90a5b3785348fca2048190dbeb0
cba5bc2eaaf5489cbd8e85acaca6f82d223cff4f
refs/heads/master
2023-08-08T05:59:42.755206
2021-09-26T12:44:15
2021-09-26T12:44:15
268,267,425
1
0
null
null
null
null
UTF-8
Python
false
false
411
py
import math for _ in range(int(input())): N = int(input()) S = list(input()) Cp = S.count('P') Ca = S.count('A') req = math.ceil(N * 0.75) if req <= Cp: print(0) else: c = 0 for i in range(2,N-2): if (S[i]=='A') and (S[i-1]=='P' or S[i-2]=='P') and (S[i+1...
[ "rajeev.sanket@gmail.com" ]
rajeev.sanket@gmail.com
785f17b8be057a2d4b4d69e3b7ba1879ff2d3dca
b1eac5e638273ddce5f7a9111676ecf1a7a0305a
/day1/selenium8.py
5bfc2c56f17e9600606c08d8fb1b6aeb17298ec0
[]
no_license
zhangbailong945/pachong
081d4b79448ab01292d91011e6db4811784baa63
8af730989488ecfc09d40e96a4790ce1a6ce1714
refs/heads/master
2020-03-28T01:15:27.909917
2019-06-06T09:46:07
2019-06-06T09:46:07
147,490,458
1
0
null
null
null
null
UTF-8
Python
false
false
489
py
#执行js import sys,time from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait chro...
[ "1207549344@qq.com" ]
1207549344@qq.com
c6292bb43fa0041b229f80af33521753cd403b09
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03030/s045798606.py
802f6b64e445e923406fd390ac302f6e446d0078
[]
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
247
py
N = int(input()) l = [] for i in range(N): s, p = input().split() l.append([s, int(p), i+1]) # 地名に関して辞書順に / 点数に関して降順に並べる l = sorted(l, key=lambda x:(x[0], -x[1])) for i in range(N): print(l[i][2])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9f80173b3cf8f824c5a2554175f22621476761a1
7d9030094153bf363ba5690607bf496b0bb76009
/script/Thread_pool.py
44b8fbb80234a42e0b2260bf9ee1fedc71cfb46c
[]
no_license
stan12138/archive
2773c309e59458000fb1eac44c6d3fc073bfc511
54478dc286712948913e3c9ca126015a8bb24bc8
refs/heads/master
2020-12-02T18:15:39.609495
2020-02-24T13:19:29
2020-02-24T13:19:29
96,503,611
2
0
null
null
null
null
UTF-8
Python
false
false
3,537
py
import threading import queue __all__ = ["Work","ThreadPool"] class WorkDone(Exception) : pass class WorkThread(threading.Thread) : def __init__(self,work_queue,result_queue,timeout) : threading.Thread.__init__(self) #self.setDaemon(True) 已经被废弃了 self.daemon = True self.work_queue = work_queue self.res...
[ "ihnyi@qq.com" ]
ihnyi@qq.com
263a0ba65383bbc06082fdef23c848663ec54781
45f6a4dfc837998565d4e4e4cde258a27fdbd424
/learn_tu_you/wx_superboss/trunk/hall37-newfish/src/newfish/player/poseidon_player.py
bb1fbcf1975f01557c0d822235d2c2cc2b615f06
[]
no_license
isoundy000/learn_python
c220966c42187335c5342269cafc6811ac04bab3
fa1591863985a418fd361eb6dac36d1301bc1231
refs/heads/master
2022-12-29T10:27:37.857107
2020-10-16T03:52:44
2020-10-16T03:52:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Auther: houguangdong # @Time: 2020/7/17 import time from freetime.entity.msg import MsgPack from freetime.util import log as ftlog from poker.entity.dao import gamedata from poker.entity.configure import gdata from newfish.entity.msg import GameMsg from newfish.entity im...
[ "1737785826@qq.com" ]
1737785826@qq.com
b71b29353e59f08f5782750c9968d379ea377173
ce522e5edb852562d688be96d0c15294a0d9e66b
/ecommerce/checkout/migrations/0002_auto_20170320_0235.py
0a52143404eb6550a78302aa47ac334a1bba2924
[]
no_license
juniorcarvalho/django-ecommerce
62c67f57d615afa47fc77ca3f738e966616b36d3
c6511aed95719a65f349bd7caec052515ddbbe39
refs/heads/master
2021-01-19T12:55:13.824402
2017-03-21T02:57:41
2017-03-21T02:57:41
82,350,321
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-20 05:35 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('catalog', '0001_initial'), ('checkout', '0001_initial'), ] operations = [ m...
[ "joseadolfojr@gmail.com" ]
joseadolfojr@gmail.com
f91277476203cfe568c65fc4eb763e51affe8f00
7482abade21b37b188cd4d7636fdcc9b59927847
/projekt/primer.py
56468f6fffdd38197a69a1c1f88ee9397d4d684d
[ "MIT" ]
permissive
evadezelak/OPB
f25a4924c680b2ee85d8e81e55cab1cfa4bdc717
425533f41660353a52abed439c85efc5dd801273
refs/heads/master
2020-05-17T07:48:22.224513
2019-04-18T11:57:33
2019-04-18T11:57:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,938
py
#!/usr/bin/python # -*- encoding: utf-8 -*- # uvozimo bottle.py from bottle import * # uvozimo ustrezne podatke za povezavo import auth_public as auth # uvozimo psycopg2 import psycopg2, psycopg2.extensions, psycopg2.extras psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) # se znebimo problemov s šumni...
[ "janos.vidali@fmf.uni-lj.si" ]
janos.vidali@fmf.uni-lj.si
4e002e755d0c221b8396df31adcb81a4bffa5b2a
ba916d93dfb8074241b0ea1f39997cb028509240
/python/sliding_window.py
2279df01725d7098a84cbdb30106369deb9195a2
[]
no_license
satojkovic/algorithms
ecc1589898c61d2eef562093d3d2a9a2d127faa8
f666b215bc9bbdab2d2257c83ff1ee2c31c6ff8e
refs/heads/master
2023-09-06T08:17:08.712555
2023-08-31T14:19:01
2023-08-31T14:19:01
169,414,662
2
3
null
null
null
null
UTF-8
Python
false
false
2,302
py
def find_average_subarrays(k, arr): result = [] for i in range(len(arr) - k + 1): avr = sum(arr[i:i+k]) / k result.append(avr) return result def find_average_subarrays_window(k, arr): result = [] window_sum, left = 0.0, 0 for right in range(len(arr)): window_sum += arr[...
[ "satojkovic@gmail.com" ]
satojkovic@gmail.com
dc0732bc17c1d9bd0f61168d8585bf9ebcd8dcc7
19ae613228d539deb768ece8b65e1f50a610bab6
/pddl/pddl.py
296e3e4b75acebd41edb2508ab767a5ada2e43be
[]
no_license
hyzcn/Bat-leth
cf7166c8c465bfabd3abf78ea712af95eff42ab3
1fc9c033d89f4d8a758f57e539622c4a36f1811b
refs/heads/master
2021-06-07T20:54:21.554291
2016-10-16T01:04:21
2016-10-16T01:04:21
255,225,651
0
1
null
2020-04-13T03:50:15
2020-04-13T03:50:15
null
UTF-8
Python
false
false
5,333
py
# # This file is part of pyperplan. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU 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...
[ "drwiner131@gmail.com" ]
drwiner131@gmail.com
b2a52cd3a7ad6f3b0a3ac55ff2c6147a0ded178e
b1303152c3977a22ff9a0192c0c32310e65a6d77
/python/530.minimum-absolute-difference-in-bst.py
a3a1a96c14fc0afec10ff9a53dfcfe8ba839397c
[ "Apache-2.0" ]
permissive
stavanmehta/leetcode
1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27
1224e43ce29430c840e65daae3b343182e24709c
refs/heads/master
2021-07-15T16:02:16.107962
2021-06-24T05:39:14
2021-06-24T05:39:14
201,658,706
0
0
Apache-2.0
2021-06-24T05:39:15
2019-08-10T16:59:32
Java
UTF-8
Python
false
false
247
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def getMinimumDifference(self, root: TreeNode) -> int:
[ "noreply@github.com" ]
stavanmehta.noreply@github.com
eb96e3855d329c0fad9ec94c2f1a5316a047fe52
134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2
/desktop/core/ext-py/django_nose/django_nose/nose_runner.py
3cb8d1e63c08da8d09673c4aa7912ef1358027e8
[ "Apache-2.0" ]
permissive
civascu/hue
22637f13a4cfc557716557661523131b6ac16da4
82f2de44789ff5a981ed725175bae7944832d1e9
refs/heads/master
2020-03-31T01:50:39.449966
2010-07-21T01:05:50
2010-07-21T01:07:15
788,284
0
0
Apache-2.0
2019-02-04T07:03:12
2010-07-21T07:34:27
Python
UTF-8
Python
false
false
2,660
py
""" Django test runner that invokes nose. Usage: ./manage.py test DJANGO_ARGS -- NOSE_ARGS The 'test' argument, and any other args before '--', will not be passed to nose, allowing django args and nose args to coexist. You can use NOSE_ARGS = ['list', 'of', 'args'] in settings.py for arguments that you alw...
[ "bcwalrus@cloudera.com" ]
bcwalrus@cloudera.com
8dffd4a74543cb7509f054827c210076c6e09a40
7bd0954e956993df19d833810f9d71b60e2ebb9a
/test/matrix/test_LIGO_noise.py
07feafe27f250c7076da65d882d3fdc1023562bf
[ "Apache-2.0" ]
permissive
aa158/phasor
5ee0cec4f816b88b0a8ac298c330ed48458ec3f2
fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d
refs/heads/master
2021-10-22T09:48:18.556091
2019-03-09T18:56:05
2019-03-09T18:56:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,911
py
# -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from os import path import numpy as np import declarative import numpy.testing as np_test import pytest from declarative.bunch import ( DeepBunch ) from phasor.utilities.np import logspaced from phasor import system from lig...
[ "Lee.McCuller@gmail.com" ]
Lee.McCuller@gmail.com
db803a0586142b52f75809ffd21a1d35b32ff2a4
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2976/60705/263776.py
3a732b098934518bb61117ea96d97db82cacde9c
[]
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
638
py
short = input() length = len(short) k = 1 while k < 20: try: a = input() except EOFError: k += 1 continue len_of_a = len(a) # 删除短字符串 i = 0 while i + length <= len_of_a: if short == a[i:i+length]: a = a[0:i] + a[i+length:len(a)] len_of_a -=...
[ "1069583789@qq.com" ]
1069583789@qq.com
4adc28cf02ad73151e0d6daf883933c57205b21f
7950c4faf15ec1dc217391d839ddc21efd174ede
/leetcode-cn/sword2offer/000剑指0_Offer_29._顺时针打印矩阵.py
583332df292ce5dd4b00535341ccffb0c19c9cf1
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
''' 执行用时:24 ms, 在所有 Python 提交中击败了87.79%的用户 内存消耗:13.5 MB, 在所有 Python 提交中击败了94.97%的用户 ''' class Solution(object): def spiralOrder(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ M, N = len(matrix), len(matrix[0]) if matrix else 0 top, left, bot...
[ "838255715@qq.com" ]
838255715@qq.com
413d10d141e21938b4e969cb4513dd7b41f93f96
d54e1b89dbd0ec5baa6a018464a419e718c1beac
/Python from others/飞机大战/wk_11_事件退出事件.py
60da8d84e1ea8c3b53ded2f4b9a0bad6839fe54c
[]
no_license
cjx1996/vscode_Pythoncode
eda438279b7318e6cb73211e26107c7e1587fdfb
f269ebf7ed80091b22334c48839af2a205a15549
refs/heads/master
2021-01-03T19:16:18.103858
2020-05-07T13:51:31
2020-05-07T13:51:31
240,205,057
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
import pygame # 游戏的初始化 pygame.init() # 创建游戏的窗口 screen = pygame.display.set_mode((480, 700)) # 绘制背景图像 bg = pygame.image.load("./images/background.png") screen.blit(bg, (0, 0)) # 绘制英雄的飞机 hero = pygame.image.load("./images/me1.png") # screen.blit(hero, (200, 500)) # 可以在所有绘制工作完成之后, 统一调用 update 方法 # pygame.display.upda...
[ "1121287904@qq.com" ]
1121287904@qq.com
a4ee19fffd100a3fc05a6e021b724a07d4482aad
459929ce79538ec69a6f8c32e608f4e484594d68
/venv/Lib/site-packages/kubernetes/client/models/extensions_v1beta1_deployment_list.py
10b69c3d65178e80e977c84bfa9479ff4e264369
[]
no_license
yychai97/Kubernetes
ec2ef2a98a4588b7588a56b9d661d63222278d29
2955227ce81bc21f329729737b5c528b02492780
refs/heads/master
2023-07-02T18:36:41.382362
2021-08-13T04:20:27
2021-08-13T04:20:27
307,412,544
0
0
null
null
null
null
UTF-8
Python
false
false
6,727
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Exten...
[ "49704239+yychai97@users.noreply.github.com" ]
49704239+yychai97@users.noreply.github.com
fb1a0fe8be3323847c1589104e7ad955265f9f5a
94487ea9d7d2bbdf46797fc5bf82fee45cf23db5
/tests/python/unittest/test_tir_schedule_set_axis_separator.py
102b3d1cd71062ee45a0b251ca94cf6c3217bb9c
[ "Apache-2.0", "BSD-3-Clause", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
were/tvm
9cc379dac1bcd9ae83b133a313db75f5a63640f6
afb67e64a1891e1d1aab03c4614fca11473e7b27
refs/heads/master
2022-11-22T15:47:02.888421
2022-05-28T00:10:40
2022-05-28T00:10:40
146,328,333
3
0
Apache-2.0
2018-08-27T17:03:20
2018-08-27T17:03:19
null
UTF-8
Python
false
false
6,121
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" ]
were.noreply@github.com
b8f8c7887b4161a0796f663e1360ff23717fcf82
3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72
/month01/code/day08/shopping.py
afbad4e6ba4720b418384e8528526145ab6bd682
[]
no_license
leinian85/year2019
30d66b1b209915301273f3c367bea224b1f449a4
2f573fa1c410e9db692bce65d445d0543fe39503
refs/heads/master
2020-06-21T20:06:34.220046
2019-11-04T06:37:02
2019-11-04T06:37:02
197,541,549
0
0
null
null
null
null
UTF-8
Python
false
false
2,483
py
commodity_info = { 101: {"name": "屠龙刀", "price": 10000}, 102: {"name": "倚天剑", "price": 10000}, 103: {"name": "九阴白骨爪", "price": 8000}, 104: {"name": "九阳神功", "price": 9000}, 105: {"name": "降龙十八掌", "price": 8000}, 106: {"name": "乾坤大挪移", "price": 10000} } order = {} def commodity_list()...
[ "42737521@qq.com" ]
42737521@qq.com
e606fb13a685824d01e0a0355fcc0f0aa2b9a8da
6c42b234cba1f077dc306242ad1973d56f812343
/beginner_tasks/strings.py
82cd9c20d1567b20f2865c2fe8e03db530f63596
[]
no_license
wencakisa/Python-Dev
330a9ba3a8320f8e1fa5bfb86c85b24253361a6a
511d307b6f64174002112cadcdbd0e23c1d69b70
refs/heads/master
2021-01-17T13:23:22.939323
2016-08-02T14:57:36
2016-08-02T14:57:36
59,685,527
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
import re def slice_str(string, max_length): if max_length < len(string): return string[: max_length] + "..." return string def show_after(string, after): return string[re.search(r'\s{}\s'.format(after), string).span()[1]:] def main(): string = "This is soo difficult, I prefer playing WoW...
[ "wencakisa@gmail.com" ]
wencakisa@gmail.com
4e7130c92ca3727848a0d762125ea88d8243c716
da052c0bbf811dc4c29a83d1b1bffffd41becaab
/core/stock_by_location/__openerp__.py
9d07484e4fbf097c623c67fd130a188a963c3698
[]
no_license
Muhammad-SF/Test
ef76a45ad28ac8054a4844f5b3826040a222fb6e
46e15330b5d642053da61754247f3fbf9d02717e
refs/heads/main
2023-03-13T10:03:50.146152
2021-03-07T20:28:36
2021-03-07T20:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 BrowseInfo(<http://www.browseinfo.in>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
[ "jbalu2801@gmail.com" ]
jbalu2801@gmail.com
ddf9db09959a2290f75dfe464a502b92e03bf010
ce285e8e855137888552e55083e19838fab3afda
/settings/common.py
226e17ddba151670455e45a4f50c668643b365b0
[]
no_license
bmarchenko/traveler
4215b5596f2ea70796ea1ff4d21342aa3cf6ccff
5af5a302677dd3037e7e1b52d7e5ef49dd41cf86
refs/heads/master
2016-08-11T20:33:16.410335
2012-11-10T22:48:19
2012-11-10T22:48:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,609
py
# Django settings for your project. import conf.environment import os LOCAL = False SITE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # Python dotted path to the WSGI application used by Django's runserver. WSGI_APPLICATION = 'wsgi.application' ROOT_URLCONF = 'urls' # Additional location...
[ "dstegelman@gmail.com" ]
dstegelman@gmail.com
cdfd9f0abdd1724bd2da56b313d4938752e38da7
a691e764b10453c69e040abfa6841d25b622beba
/orquesta/composers/native.py
f025177d6f03821eb4e085cdc882ebde1fc3d98c
[ "Apache-2.0" ]
permissive
alertlogic/orquesta
ee0952c5e79663e4c928e6028e0cf514c55359d4
68fddf0ab312cca35616fcb3815966ab2fe83edb
refs/heads/master
2023-08-15T23:01:10.836310
2021-10-14T16:20:49
2021-10-14T16:20:49
405,152,762
0
0
Apache-2.0
2021-09-10T18:24:28
2021-09-10T16:56:38
null
UTF-8
Python
false
false
4,312
py
# Copyright 2019 Extreme 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 i...
[ "m4d.coder@gmail.com" ]
m4d.coder@gmail.com
c44a31bc672dd09d76b28c6336bbe521e2267744
409ce560793c070ef4211b99c5a4a5316a258c4f
/pylith/meshio/DataWriterVTK.py
09ebe3ec0aea184c8dbba3a476889a1d9c618937
[ "MIT" ]
permissive
calum-chamberlain/pylith
bb718bfb4305f03b45d42348e5d4fa5ed5f4a918
8712c39ade53c1cc5ac0e671e4296cee278c1dcf
refs/heads/master
2020-12-06T17:15:08.638337
2016-05-15T20:30:28
2016-05-15T20:30:28
46,401,744
0
0
null
2016-05-15T20:30:29
2015-11-18T07:09:12
C++
UTF-8
Python
false
false
3,366
py
#!/usr/bin/env python # # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://ge...
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
f324e10f5052054d2e3506b49f197c47921214b8
8ec05f1d5800e0b98afa92367f74bed9f95e0ee9
/venv/Scripts/autopep8-script.py
4a622cfc0daaa5f5bad725211ff99e47d1376171
[]
no_license
ayanchyaziz123/ecom-final-year-project
28362922a88c71aba29d22f29c7f34e1cad6189f
d21fdd885b3b768935dc29171c5a6761c4b88e9c
refs/heads/master
2023-08-12T17:10:23.826744
2021-10-06T12:36:17
2021-10-06T12:36:17
405,435,522
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
#!f:\proshop_django-master\venv\scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.4','console_scripts','autopep8' __requires__ = 'autopep8==1.5.4' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]...
[ "aaziz9642@gmail.com" ]
aaziz9642@gmail.com
f004bf5cdc9d3ec9a3989848533cffae640eb624
ced2dc1f67830f70bc8449b864a5ddf9858a6f76
/CMSSW_9_4_12/src/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysispri_M4500_R_0-5.py
73cdd810f68a21cb46fd834007aa58975b8517cb
[]
no_license
xdlyu/16_MINIAODV3
6e1c455a17e8453974b200c05da18a81386936fe
5f506cb0e3411fe85bc0b86d6f9477ca7d46eea3
refs/heads/master
2020-12-13T03:46:54.895084
2020-01-17T14:47:22
2020-01-17T14:47:22
234,304,490
0
1
null
null
null
null
UTF-8
Python
false
false
2,315
py
from WMCore.Configuration import Configuration name = 'WWW' steam_dir = 'xulyu' config = Configuration() config.section_("General") config.General.requestName = 'M4500_R0-5_off_pri' config.General.transferLogs = True config.section_("JobType") config.JobType.pluginName = 'Analysis' config.JobType.inputFiles = ['Su...
[ "XXX@cern.ch" ]
XXX@cern.ch
db151470bbf8c4aa74cb965d7db73f15f4d712e4
d8b259ea6401e435643a7b90365489f0ccef61b6
/chapter5/poplib/poplib_gmail.py
073067347352f2e51b8438815d313baaad07c4a1
[ "MIT" ]
permissive
elgsaid/Learning-Python-Networking-Second-Edition
08598637c2e8cdbebaf5ebf2c2c76cac96b0c76c
39b68fbb936cf8fa2765c5819dcf0ce0a38a3b79
refs/heads/master
2020-04-29T11:10:02.791614
2019-03-15T09:17:24
2019-03-15T09:17:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
#!/usr/bin/env python3 import poplib import getpass mailbox = poplib.POP3_SSL ('pop.gmail.com', 995) mailbox.user('user@gmail.com') password = getpass.getpass(prompt='Enter your password:') mailbox.pass_(password) EmailInformation = mailbox.stat() print("Number of new emails: %s ", EmailInformation) numberOfMails = ...
[ "jose-manuel.ortega-candel@capgemini.com" ]
jose-manuel.ortega-candel@capgemini.com
c2e9579ce129c1425c3e34152fa1d73e81a4ab49
3b09dc4623dac559c85c0333526d55b0615d79d7
/problems/160.py
2954f908cc61c9c88f77a0e50b347db0751403d2
[]
no_license
Asperas13/leetcode
5d45bd65c490ada9b3cb2c33331a728eab2ef9b4
7f2f1d4f221925945328a355d653d9622107fae7
refs/heads/master
2021-09-28T15:54:54.761873
2020-05-05T15:29:48
2020-05-05T15:30:59
145,767,776
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode: memo = {} while headA or headB: if headA: ...
[ "ivan.pashnev@developex.com" ]
ivan.pashnev@developex.com
09df7e7f68fd8ba2a32ed3f08fa5d77a2593c809
e9ccc5228e8a4e404aa6e58efbba248a1aa21d5f
/server/sources.py
be7113c98923f89dc9a57907d16e916c00ac67a0
[]
no_license
thisismyrobot/kindleclock
c65f0a50dc4d799593955584d44572ca28c729bd
188dd4362691acb563d9f911bd896328c650a63f
refs/heads/master
2016-08-05T04:48:38.051853
2013-01-28T23:55:07
2013-01-28T23:55:07
6,515,177
9
1
null
null
null
null
UTF-8
Python
false
false
3,965
py
import base64 import cgi import datetime import re import time import tools import urllib import urllib2 import xml.dom.minidom def unreadgmail(): try: auth = open("gmailauth.txt").read() URL = 'https://gmail.google.com/gmail/feed/atom' req = urllib2.Request(URL) re...
[ "rwallhead@gmail.com" ]
rwallhead@gmail.com
6d06e28c7bd02f094783d6e10e8a240deb8a4028
d0d3697b723e11c33837b8de2d572a44b84a26db
/cruise_track_data_plotting.py
8e0334b753d7f83150f732e2e9db4165f9c38eef
[ "MIT" ]
permissive
Swiss-Polar-Institute/science-data-utils
dc77e86a1cca0d7642daf97fa3e9045919efd867
6a85570ee586fa1ba1644ba2b1c9dea3a5257eae
refs/heads/master
2022-08-09T10:02:13.678635
2021-11-29T20:03:47
2021-12-02T07:39:29
145,117,181
0
0
MIT
2022-06-21T21:37:22
2018-08-17T12:20:58
Python
UTF-8
Python
false
false
3,863
py
import matplotlib.pyplot as plt import matplotlib.cm as cm import pandas import datetime #import seaborn as sns def get_data_file(filepath, columns): """Get a subset of the data from one file and write into a dataframe""" #filepath = input("Enter the full path and name of the file") dataframe = pandas.rea...
[ "jenny_t152@yahoo.co.uk" ]
jenny_t152@yahoo.co.uk
705621984ef4661f63de4f2a9be8693afc845f01
3fd7adb56bf78d2a5c71a216d0ac8bc53485b034
/tensorflow_data/sawyer/noup_28_dna5/conf.py
04cd6eb5133f3a850c3be2f9893050d50ffa4d9b
[]
no_license
anair13/lsdc
6d1675e493f183f467cab0bfe9b79a4f70231e4e
7760636bea24ca0231b4f99e3b5e8290c89b9ff5
refs/heads/master
2021-01-19T08:02:15.613362
2017-05-12T17:13:54
2017-05-12T17:13:54
87,596,344
0
0
null
2017-04-08T00:18:55
2017-04-08T00:18:55
null
UTF-8
Python
false
false
1,935
py
import os current_dir = os.path.dirname(os.path.realpath(__file__)) # tf record data location: DATA_DIR = '/'.join(str.split(current_dir, '/')[:-3]) + '/pushing_data/sawyer_noup_29/train' # local output directory OUT_DIR = current_dir + '/modeldata' from video_prediction.prediction_model_downsized_lesslayer import c...
[ "frederik.ebert@mytum.de" ]
frederik.ebert@mytum.de
1df51ff8f1c07cfd37c44135ee621e5a6a511252
fe7133ea8e879631e63ef3c5312670464ae0970b
/email_test.py
f0d2e88d51707ef12a621e035d9e4ae58ea8429e
[]
no_license
jonathaw/general_scripts
4f13c55d3544b829488c1d479c2feff1a6c26829
0cf47ab3ade55b9396cb5aea00e09dafd2694067
refs/heads/master
2021-01-17T02:50:54.936936
2017-03-19T17:18:44
2017-03-19T17:18:44
41,436,758
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
import smtplib sender = 'jonathan.weinstein2012@gmail.com' receivers = ['jonathan.weinstein2012@gmail.com'] message = """From: LSFManager <LSF@manager.com> To: Me <jonathan.weinstein2012@gmail.com> Subject: LSFManager Report This is a test e-mail message. """ try: smtpObj = smtplib.SMTP('localhost') smtpObj.s...
[ "jonathan.weinstein@weizmann.ac.il" ]
jonathan.weinstein@weizmann.ac.il
663ddf06b0dcc361f9b79ebadbd3809ffe539966
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/request/AlipayOpenAppSilanApigrayelevenQueryRequest.py
6ae4d53b1a2df987c4f0ae79daab60b26f7e67a5
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
3,196
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAppSilanApigrayelevenQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version =...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
c509131d6d695838fd5f8caf0e0236271d308935
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/CJ_16_2/16_2_1_Taizo_R1B_A.py
f57872090549f06b308b5880482ee39c7abee60d
[]
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,168
py
# -*- coding: utf8 -*- import sys # inputFile = "A-small-attempt0.in" # inputFile = "A-large-practice.in" inputFile = "A-large.in" f = open(inputFile) sys.stdout = open(inputFile.replace(".in", ".txt"), 'w') tc_num = int(f.readline().rstrip()) k1 = {"Z": ["ZERO", 0], "W": ["TWO", 2], "U": ["FOUR", 4], "X": ["SIX", ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
06b86c6227955f55df9ca40267865fd155d7cdd9
75e7093ba88fc8fb7c2787fc9b1f289f058f1807
/reprounzip/setup.py
80acb4c5d726fbd814e5e31c3c0d3e42347ffd71
[ "BSD-3-Clause" ]
permissive
Aloma/reprozip
f8a6e7117d29d7b3a4477acf34f3e09993c7f235
449bebbcba0674467515383ecfbd6e9cee1f5dc1
refs/heads/master
2020-12-03T09:18:17.523917
2014-10-06T20:44:25
2014-10-06T20:44:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
import os from setuptools import setup import sys # pip workaround os.chdir(os.path.abspath(os.path.dirname(__file__))) with open('README.rst') as fp: description = fp.read() req = [ 'PyYAML', 'rpaths>=0.8'] if sys.version_info < (2, 7): req.append('argparse') setup(name='reprounzip', version=...
[ "remirampin@gmail.com" ]
remirampin@gmail.com
d00d7f695d0fa7ea3119cd533450e09474399e48
a66460a46611483dfbdc94c7996893f427e60d97
/ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/avi/avi_ipaddrgroup.py
fd2cd3c38ff7a56e237e08e0d1bb627f9756c9f5
[ "MIT" ]
permissive
otus-devops-2019-02/yyashkin_infra
06b57807dde26f94f501828c07503d6bf1d70816
0cd0c003884155ac922e3e301305ac202de7028c
refs/heads/master
2020-04-29T02:42:22.056724
2019-05-15T16:24:35
2019-05-15T16:24:35
175,780,718
0
0
MIT
2019-05-15T16:24:36
2019-03-15T08:37:35
HCL
UTF-8
Python
false
false
4,970
py
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses...
[ "theyashkins@gmail.com" ]
theyashkins@gmail.com
c3227b65442886d4c177b72911ad5fcb24542c5d
c66c214f062bc4de08354bb15d4d7e343b6b7e4a
/custom_dists/gaussian_circle.py
b07fdde7579a75be61689138444384e4801054dd
[]
no_license
pinakm9/JKO
1a297f58fd1630d33a2314c82e702208943098e8
88265e9f38040e3a6ec73edeec59c85b770bf0ed
refs/heads/master
2023-05-10T11:03:00.482300
2021-06-12T19:42:48
2021-06-12T19:42:48
352,030,290
0
0
null
null
null
null
UTF-8
Python
false
false
2,395
py
import numpy as np import scipy.stats as ss import tensorflow as tf import tensorflow_probability as tfp class GaussianCircle: """ Description: creates a multimodal distribution aranged on a circle uniformly using iid Gaussians Args: mean: mean for each Gaussian distribution cov: c...
[ "pinakm9@gmail.com" ]
pinakm9@gmail.com
94f6e3cf69a00aa6b1808778722130a275ee4713
e4eabccc6d971289cf13653d1b6f290e39b870ab
/1407-group-the-people-given-the-group-size-they-belong-to/group-the-people-given-the-group-size-they-belong-to.py
b33c28a8c7eb9dab579c4c5b78fa1624574c7390
[]
no_license
HEroKuma/leetcode
128b38a9f559dc9e3f21c86a47ede67ad72f7675
b3045aaedbe98eddc7e4e518a03a9337a63be716
refs/heads/master
2023-01-03T12:12:31.018717
2020-11-01T16:56:47
2020-11-01T16:56:47
260,488,865
0
0
null
null
null
null
UTF-8
Python
false
false
1,650
py
# There are n people that are split into some unknown number of groups. Each person is labeled with a unique ID from 0 to n - 1. # # You are given an integer array groupSizes, where groupSizes[i] is the size of the group that person i is in. For example, if groupSizes[1] = 3, then person 1 must be in a group of size 3....
[ "zx8733520+github@gapp.nthu.edu.tw" ]
zx8733520+github@gapp.nthu.edu.tw
aa09d6bdb5805a8c7fee8a75dfc9873d3a8b7afc
cefd6c17774b5c94240d57adccef57d9bba4a2e9
/WebKit/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py
fcc76ca14127db2dbe9b959c1bd40143f03524e3
[ "BSL-1.0" ]
permissive
adzhou/oragle
9c054c25b24ff0a65cb9639bafd02aac2bcdce8b
5442d418b87d0da161429ffa5cb83777e9b38e4d
refs/heads/master
2022-11-01T05:04:59.368831
2014-03-12T15:50:08
2014-03-12T15:50:08
17,238,063
0
1
BSL-1.0
2022-10-18T04:23:53
2014-02-27T05:39:44
C++
UTF-8
Python
false
false
2,323
py
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the...
[ "adzhou@hp.com" ]
adzhou@hp.com
6bf26fdbf45870a7cf98a9ee1cce2f828ceb9159
2f74c4d2e5c6dd51eb3eaf0ee4b97122b26e7066
/unit_03/07_Regular_Expressions/1-Regular_Expressions/2_basics.py
e25bd6bf9d5e8b8fb10b05377993149e0888175b
[ "MIT" ]
permissive
duliodenis/python_master_degree
c6a4ccf5d98c48cfc1efd29dfc116bf55b6b4f01
3ab76838ce2fc1606f28e988a3273dd27122a621
refs/heads/master
2020-04-14T09:03:51.863305
2019-07-22T23:05:19
2019-07-22T23:05:19
163,751,089
21
5
null
null
null
null
UTF-8
Python
false
false
1,286
py
# # Regular Expressions in Python: Reading Files # Python Techdegree # # Created by Dulio Denis on 12/27/18. # Copyright (c) 2018 ddApps. All rights reserved. # ------------------------------------------------ # Challenge 1: Basics # ------------------------------------------------ # Challenge Task 1 of 5 # Use ...
[ "dulio.denis@yahoo.com" ]
dulio.denis@yahoo.com
ad5ababfd67e9e7708f5e970d4fbad8be6e9e2db
715a11d7b8f15694a5cc4b47ac0e3a3cfc4ffedc
/bi46/5669.py
b92cbc7001d2c8b620449542ddad67fce5979e74
[]
no_license
mohanrajanr/CodePrep
5cd538d16598f6a0d2486357d3cc6e0fa1626e4e
2e23a5f996139b887bf723f58b23368cf8121cd4
refs/heads/main
2023-04-23T04:10:06.111120
2021-05-11T06:47:51
2021-05-11T06:47:51
366,283,064
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
from typing import List def canChoose(groups: List[List[int]], nums: List[int]) -> bool: index = len(nums) - 1 hasMatched = False while groups and nums: tu = tuple(groups.pop()) # print("Checking :{}".format(tu)) hasMatched = False while index - len(tu) + 1 >= 0: ...
[ "mohanrajan1996@gmail.com" ]
mohanrajan1996@gmail.com
80acb66240a546aa1aad9df8bf32d4cf1bce398f
d5c1d1b162de12942989cb15f5a1e9e9ecf52c82
/soladm/tests/test_autocomplete.py
4a7ef3258a43c5de90b443fb60c34f7bd0f76935
[]
no_license
rr-/soladm
39730352265e41e558134fe4928ce7c9fe2c50b7
67f3e388144d258b861728d81664c78cd6ba2e97
refs/heads/master
2021-01-20T07:35:12.826423
2017-06-29T11:43:39
2017-06-29T11:43:39
90,016,113
4
0
null
null
null
null
UTF-8
Python
false
false
844
py
from typing import Tuple, Iterable import pytest from soladm.ui import autocomplete @pytest.mark.parametrize('edit_text,edit_pos,affixes', [ ('', 0, [('', '', '')]), ('abc', 0, [('', '', 'abc')]), ('abc def', 0, [('', '', 'abc def')]), ('abc', 2, [('', 'ab', 'c')]), ('ab ', 2, [('', 'ab', ' ')]), ...
[ "rr-@sakuya.pl" ]
rr-@sakuya.pl
af1ccc3bb73c89919f00a287764d22296201e510
83e0a7bae272748dadea3330514039b8658ca426
/test/util/test_timecoord.py
05d24029bb6500cb460cb40cacd926c57a973180
[ "MIT" ]
permissive
achtsnits/xcube
78d081613d71b7e13cc317fb07c297d98e6267ad
6bc7bda849a1f2cc8cb2bba1152e0a98d4a97aa5
refs/heads/master
2020-08-27T20:46:43.230537
2019-10-16T14:24:26
2019-10-16T14:24:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,263
py
import unittest import numpy as np from test.sampledata import create_highroc_dataset from xcube.util.timecoord import add_time_coords, to_time_in_days_since_1970, timestamp_to_iso_string, \ from_time_in_days_since_1970 class AddTimeCoordsTest(unittest.TestCase): def test_add_time_coords_point(self): ...
[ "norman.fomferra@gmail.com" ]
norman.fomferra@gmail.com
e55764e47834c1865fe67bbb512f3243934e79f4
256f817910dd698970fab89871c6ce66a3c416e7
/1. solvedProblems/30. Substring with Concatenation of All Words/30.py
ce5a51cd4adedf962473dba896bff6a6a7f0783b
[]
no_license
tgaochn/leetcode
5926c71c1555d2659f7db4eff9e8cb9054ea9b60
29f1bd681ae823ec6fe755c8f91bfe1ca80b6367
refs/heads/master
2023-02-25T16:12:42.724889
2021-02-04T21:05:34
2021-02-04T21:05:34
319,225,860
1
0
null
null
null
null
UTF-8
Python
false
false
7,228
py
# !/usr/bin/env python # coding: utf-8 """ Author: Tian Gao (tgaochn@gmail.com) CreationDate: Sat, 11/28/2020, 19:54 # !! Description: """ import sys from typing import List sys.path.append('..') from utils import binaryTree, nTree, singleLinkedList from utils.utils import ( printMatrix, printDict, ...
[ "tgaochn@gmail.com" ]
tgaochn@gmail.com
1f8bce0c11115e32a2762fd95571725acd8d8627
a3d058c6a80d4068fa4d3185ddd2dec91abc82d7
/190103_카펫.py
bf7c0ea85c0440df0a025dc48826d72f324705fd
[]
no_license
guard1000/Everyday-coding
d6f496654b635738a4284270f6c5d285116a760e
7755f99cdb512d623392af82282bf17b47cb77f2
refs/heads/master
2021-08-18T22:26:04.322162
2021-07-21T14:53:28
2021-07-21T14:53:28
161,440,626
1
0
null
null
null
null
UTF-8
Python
false
false
530
py
def solution(brown, red): answer = [] xlist = [] i = 0 for x in range(1, red + 1): if red % x == 0 and x not in xlist: xlist.append(red / x) for x2 in xlist: n = 1 while 2 * x2 + 2 * (red / x2) - 4 + 8 * n <= brown: if 2 * x2 + 2 * (red / x2) - 4 + 8 ...
[ "cjsdnr885@naver.com" ]
cjsdnr885@naver.com
76b3b454adef458d8f84bb8c711f378e962c4afd
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_perfectest.py
617a0575b5947bdc969f79d6b1bbe1909e2fe462
[ "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
249
py
from xai.brain.wordbase.nouns._perfect import _PERFECT #calss header class _PERFECTEST(_PERFECT, ): def __init__(self,): _PERFECT.__init__(self) self.name = "PERFECTEST" self.specie = 'nouns' self.basic = "perfect" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d60b27a09af020085f55092b28cf65da6aae07f6
5345cc368ac108776188118d417a8aff8604ec0c
/tests/fields/test_registering.py
83183bb4691b6316d9e0d783674e0c8fd433bddd
[ "MIT" ]
permissive
hochshi/wagtailstreamforms
7229097390c34dd100d812a35d7d74b0092479f7
8be02c5606d87d0e7f4f648866c36290207163a8
refs/heads/3-dev
2020-04-14T17:49:10.846230
2019-06-11T08:25:27
2019-06-11T08:25:27
163,995,051
1
0
MIT
2019-06-11T08:25:28
2019-01-03T16:10:34
Python
UTF-8
Python
false
false
463
py
from django import forms from wagtailstreamforms import fields from ..test_case import AppTestCase class MyField(fields.BaseField): field_class = forms.CharField class TestFieldRegistering(AppTestCase): @classmethod def setUpClass(cls): fields.register('myfield', MyField) @classmethod ...
[ "stuart@accentdesign.co.uk" ]
stuart@accentdesign.co.uk
d0791d0c24b78ce2b664deac0f6b69070ad79928
7e8f67b9b3c7d17b49c2f9677afea78245e8b29f
/accounts/tests/views/test_captive.py
fd0150e96c1ed234d9c86241eefdb1c154683fe1
[]
no_license
deone/billing-v1
23672addfbe8479a45ccf976cafdf6cbe1220834
ebb933ec2453810fb1c0f565efa8142c82743b85
refs/heads/master
2021-08-18T04:17:25.435711
2019-06-17T12:52:50
2019-06-17T12:52:50
90,369,896
0
0
null
2021-06-10T18:38:10
2017-05-05T11:40:45
Python
UTF-8
Python
false
false
2,802
py
from django.core.urlresolvers import reverse from ...forms import LoginForm from . import ViewsTests class CaptiveTests(ViewsTests): def test_captive(self): get_params = "?login_url=https%3A%2F%2Fn110.network-auth.com%2Fsplash%2Flogin%3Fmauth%3DMMzZUJGqtrsmvkKw6ktCkcNsuBgluav4m2vgE4p-nFliz6lOzP99ntPz...
[ "alwaysdeone@gmail.com" ]
alwaysdeone@gmail.com
bd640c0792b3901848aa7820f8ec89682ceb850c
77c32baf29e5718a07fec9dfaee89cdff3c0f23d
/instance/migrations/0001_initial.py
62952b23e6eef1835c52c02b26b0ce56df746423
[]
no_license
syed-saif/hackathon_backend
f438c49268e182ae6a51b9f1650c02e423ea32cd
37a092cfb27c6e1be3652e17eea3b712ce9b3fd1
refs/heads/main
2023-02-09T16:16:51.242683
2021-01-12T12:33:03
2021-01-12T12:33:03
328,973,595
0
0
null
2021-01-12T12:02:59
2021-01-12T12:02:58
null
UTF-8
Python
false
false
763
py
# Generated by Django 3.1.3 on 2020-11-25 16:04 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='DetecHandWritten', fields=[ ('id', models.A...
[ "=" ]
=
9aa3c92f85d67695e2c53c6a11ecb3381ce8adb5
d02261797ab1f6d9ba85370fbb5d73e84390154e
/hunt/special_puzzles/ktane/manual/grandom.py
fb776263fe43cec87e02e1362b35575be15f8e0b
[ "MIT" ]
permissive
YewLabs/2021-hunt
2c965da93b92d0a53bfa25938b376ebefecc241d
c6ea6bdf17571642ee4e7463a2a363292ff9f972
refs/heads/master
2023-03-04T04:16:12.412893
2021-02-07T15:48:01
2021-02-07T16:50:45
336,824,373
0
3
null
null
null
null
UTF-8
Python
false
false
5,180
py
from random import Random class GRandom(Random): def shuffled(self, x): x = list(x) self.shuffle(x) return x def distrib(self, total, count, *, min_=0, max_=None, skew=1): if min_ * count > total: raise ValueError( f"The total must be at least {min_...
[ "dvorak42@mit.edu" ]
dvorak42@mit.edu
568fbfe4e7d7d0dddaf488b5339808d9e0641214
f3eae8877d8065abced3ad5eadc1a084c9569e80
/functional_preprocessing/topup-version/struct_preproc/structural.py
560febe8d64410fbd04fde4e56564066aa1356a7
[]
no_license
fBeyer89/RSV_rsanalysis
586afc52a5a93fb681166fd7ee0795d0197a3a63
1128ace44f52143e94d9c98865c084d30aeca36c
refs/heads/master
2020-04-09T05:46:54.200643
2019-04-18T14:22:42
2019-04-18T14:22:42
92,715,661
0
0
null
null
null
null
UTF-8
Python
false
false
3,213
py
# -*- coding: utf-8 -*- """ Created on Mon Feb 9 14:33:51 2015 @author: fbeyer """ ''' Main workflow for preprocessing of mprage data =============================================== Uses file structure set up by conversion ''' from nipype.pipeline.engine import Node, Workflow import nipype.interfaces.io as nio from ...
[ "fbeyer@cbs.mpg.de" ]
fbeyer@cbs.mpg.de
0cb1eef4e1b828ab9c069f0b9fbd70fb3d42629f
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/165/165.compare-version-numbers.163040956.Runtime-Error.leetcode.py
f2dc2de336fe3c1104efe74edcd9f208144c57ac
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
363
py
class Solution(object): def compareVersion(self, version1, version2): arr1 = version1.split(".") arr2 = version2.split(".") i = 0 while(i < len(arr1)): if int(arr2[i]) > int(arr1[i]): return -1 if int(arr1[i]) > int(arr2[i]): re...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
68bcfd2922d3dba3e542fed5e919fa83143d9bfa
ba602dc67ad7bb50133aeb312f3c6c54627b3dec
/data/3922/AC_py/508134.py
7f1f09ae0a4fe4b50f052a90e596911ef725a583
[]
no_license
Dearyyyyy/TCG
0d21d89275906157372d775f33309ce337e6bc95
7b80de16de2d3f5d95a7c4ed95d45a9e38882e67
refs/heads/master
2020-12-27T23:19:44.845918
2020-02-04T01:59:23
2020-02-04T01:59:23
238,101,032
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
# coding=utf-8 import sys while True: a,b=map(float,input().split()) if b!=0: print(int((a/b+0.5)//1)) else: print("error")
[ "543271544@qq.com" ]
543271544@qq.com
d1ebe71d5c08688b5518526b99952e558aa18674
a439ca43178d38cfe6daaee50ea134ca6c52b502
/thaniya_server_archive/src/thaniya_server_archive/volumes/__init__.py
be1415d1034a205e635c0328cb07d874915aaa23
[ "Apache-2.0" ]
permissive
jkpubsrc/Thaniya
37ca727abdc6f9f605257813889fe3a033995bba
4ebdf2854e3d7888af7396adffa22628b4ab2267
refs/heads/master
2023-03-05T20:58:59.528746
2021-02-15T19:31:06
2021-02-15T19:31:06
331,318,787
1
0
null
null
null
null
UTF-8
Python
false
false
355
py
 __version__ = "0.2021.1.20.1" from .BackupVolumeID import BackupVolumeID from ._RawDeviceIterator import _RawDeviceIterator from .Device import Device from .DeviceIterator import DeviceIterator from .BackupVolumeInfo import BackupVolumeInfo from .BackupVolumeCfgFile import BackupVolumeCfgFile from .BackupVolumeM...
[ "pubsrc@binary-overflow.de" ]
pubsrc@binary-overflow.de
260778a99413ef35e79f6adf633bb47c165b2e41
2dc8ac19e5f6f5fb8638bbdd1917a15094f3431b
/correlation discovery/combine_Lynkwifi_and_col_bus_sub_manhattan_each_injured_each_killed/map.py
1723b4d92d67bad3c40c014d5a2c07ff87df6afb
[]
no_license
rgc292/Capstone_Project
8182f2d8143e50db2654da343bd82ae66e74b1c3
35b16193f2363277fdf691dced704f56da1f8331
refs/heads/master
2020-07-01T04:57:03.365113
2016-12-20T01:51:42
2016-12-20T01:51:42
74,094,985
0
0
null
null
null
null
UTF-8
Python
false
false
3,401
py
#!/usr/bin/python import sys import numpy as np import csv import StringIO col_bus_sub_year = [] col_bus_sub_month = [] col_bus_sub_day = [] col_bus_sub_lat = [] col_bus_sub_lon = [] wifi_year = [] wifi_month = [] wifi_day = [] wifi_lat = [] wifi_lon = [] col_bus_sub = [] counter = -1 def dist(coord1,coord2,_type): ...
[ "Rafa@192.168.1.139" ]
Rafa@192.168.1.139
9cfa025c1c6cdcd1e98a7044b1aaa4b444395e64
8a7c56ea3eb73518cdf8d898f6a6f5883b105ec7
/src/trace_msg_bfms/trace_msg_bfm.py
548bfed2f68f6a15d64ab0b742786b1635c0a1a2
[ "Apache-2.0" ]
permissive
pybfms/pybfms-trace-msg
cb8b5017af20ce52697d960f8d48574370459416
86eb7f7530a04c50ed79c88cb5ae452983dc31ed
refs/heads/main
2023-06-08T08:37:53.333590
2021-06-28T01:47:18
2021-06-28T01:47:18
368,890,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
import pybfms @pybfms.bfm(hdl={ pybfms.BfmType.Verilog : pybfms.bfm_hdl_path(__file__, "hdl/trace_msg_bfm.v"), pybfms.BfmType.SystemVerilog : pybfms.bfm_hdl_path(__file__, "hdl/trace_msg_bfm.v"), }, has_init=True) class TraceMsgBfm(): def __init__(self): self.busy = pybfms.lock() self...
[ "matt.ballance@gmail.com" ]
matt.ballance@gmail.com
f9ef15b9bfd358fbcf78dc3c8a2c94f18e736c13
b61573aeb976040f0b1ba67900ec28b14a2652dc
/torchaudio/functional/__init__.py
bf27168cbbd127df9a24eecd273c32234c1e630d
[ "BSD-2-Clause" ]
permissive
TrendingTechnology/audio
a84c7408f78a20cf6cf5456e2f12b284491a28ce
2aad928903f2f0f9a05af9a68ac2ed203faf1093
refs/heads/main
2023-07-08T03:48:08.350672
2021-08-05T17:52:02
2021-08-05T17:52:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,820
py
from .functional import ( amplitude_to_DB, angle, complex_norm, compute_deltas, compute_kaldi_pitch, create_dct, create_fb_matrix, melscale_fbanks, linear_fbanks, DB_to_amplitude, detect_pitch_frequency, griffinlim, magphase, mask_along_axis, mask_along_axis_i...
[ "noreply@github.com" ]
TrendingTechnology.noreply@github.com
6753a026018172376dbb6693b26fef5fc2ed39e7
9142c3ebb20bdeab4d2b7e8e70ab562ce65cfe59
/thermosteam/utils/decorators/units_of_measure.py
f631bb7d39c4e3b85727446e02a6a19a0ae8d2bf
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "NCSA" ]
permissive
BioSTEAMDevelopmentGroup/thermosteam
ce97fe2e5e2a5d21a9715435f653e3ee7e706e00
934e99441acfdb89d72dc99fee7b9c6def5aef6f
refs/heads/master
2023-08-08T00:17:47.366975
2023-07-28T05:28:31
2023-07-28T05:28:31
219,133,879
46
14
NOASSERTION
2023-02-16T19:44:16
2019-11-02T09:50:30
Python
UTF-8
Python
false
false
2,204
py
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020-2023, Yoel Cortes-Pena <yoelcortes@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for license details...
[ "yoelcortes@gmail.com" ]
yoelcortes@gmail.com
bef2bbff53a217bbd10fec6672006ab131eda1d4
26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f
/exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/web_infrastructure/sophos_utm/utm_network_interface_address_info.py
dc68ac3521998969963c0e69734771dd04f673e6
[ "GPL-3.0-only", "MIT", "GPL-3.0-or-later", "CC0-1.0", "GPL-1.0-or-later" ]
permissive
tr3ck3r/linklight
37814ed19173d893cdff161355d70a1cf538239b
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
refs/heads/master
2021-04-11T04:33:02.727318
2020-03-25T17:38:41
2020-03-25T17:38:41
248,992,437
0
0
MIT
2020-03-21T14:26:25
2020-03-21T14:26:25
null
UTF-8
Python
false
false
2,624
py
#!/usr/bin/python # Copyright: (c) 2018, Juergen Wiebe <wiebe@e-spirit.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.1', 'statu...
[ "joshuamadison+gh@gmail.com" ]
joshuamadison+gh@gmail.com
a3e6f84aabc48b8319995511b742d221aa8a1507
4b02aa96b41c7852678e7c9b3361830b2d1a1a09
/LeetCode-solution/problems/palindrome_linked_list/solution.py
93957b43d3eafe756306421566a762c41d6dcb74
[]
no_license
arifkhan1990/LeetCode-solution
4a4124d6b41dc516b673d1b1adc693054a00509f
85e1a3a285ee059dce091621b79312ba96024eed
refs/heads/master
2023-01-13T17:26:13.720649
2023-01-12T17:35:39
2023-01-12T17:35:39
243,922,740
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def isPalindrome(self, head: ListNode) -> bool: if not head or not head.next: return True slow = fast = curr = h...
[ "arifkhanshubro@gmail.com" ]
arifkhanshubro@gmail.com
511ca973f7ddab124a8fa1f2c8be06fb5db51303
2abd291027ea831fe85ffa8d929e769612f1bc9c
/09 - ginger/app/models/user.py
7f7a4258475c332502476fd5fd84159c8605f73a
[]
no_license
hippieZhou/Python-Web-Every-Day
13767ec8fbacfca29e3add0a88976b2afa74d5f5
7fc3f4b1378daccdfabc3ca6b66d4f5d4a98e360
refs/heads/master
2022-03-10T00:16:25.333925
2022-03-05T02:40:26
2022-03-05T02:40:26
175,198,664
5
1
null
2022-03-05T02:40:51
2019-03-12T11:40:10
HTML
UTF-8
Python
false
false
1,508
py
from sqlalchemy import Column, Integer, String, SmallInteger from werkzeug.security import generate_password_hash, check_password_hash from app.models.base import Base, db from app.libs.error_code import NotFound, AuthFailed import datetime class User(Base): id = Column(Integer, primary_key=True) email = Colu...
[ "hippiezhou@outlook.com" ]
hippiezhou@outlook.com
aeb3f5158fe2c3a4ffb56b2dfcb9d92b091d9a8d
d768f07ed90c0274e2d9d935eaf5ecfe734a1f56
/lya_statistics/old/compute_power_spectrum_statistics.py
c25a67cceabb721282d7af4e1a083a078453dd85
[]
no_license
bvillasen/simulation_analysis
cfd0b5de865d2fb5992d828b2824079e6798774b
645f0c397172ed30a713368942eec9ca68a9761a
refs/heads/master
2023-06-02T19:06:39.851760
2021-06-25T18:40:58
2021-06-25T18:40:58
298,894,454
0
0
null
null
null
null
UTF-8
Python
false
false
4,280
py
import os, sys import numpy as np import h5py as h5 import pickle root_dir = os.path.dirname(os.getcwd()) + '/' subDirectories = [x[0] for x in os.walk(root_dir)] sys.path.extend(subDirectories) from tools import * from stats_functions import compute_distribution, get_highest_probability_interval use_mpi = False if us...
[ "bvillasen@gmail.com" ]
bvillasen@gmail.com
e80e39f7489a25cbe588e5318e01220bb5737102
e979b765416b947fd089339dd64732d5174e7058
/FlattenNestedList.py
e403c2d47d188a3400f6cad8396bf089bbb8f891
[]
no_license
250mon/CodeWars
d86cdc8ea24bc781c9adf34c24a67195e544a4a1
9bea8df60646a052565ae5246144a9d53939b057
refs/heads/main
2023-03-15T17:00:34.500844
2021-03-25T03:59:49
2021-03-25T03:59:49
303,961,434
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
def flatten_list(n_list): result_list = [] if not n_list: return result_list stack = [list(n_list)] while stack: c_num = stack.pop() next = c_num.pop() if c_num: stack.append(c_num) if isinstance(next, list): if next: stack....
[ "lambki@naver.com" ]
lambki@naver.com
2ad80a74ff04fdbe4a888ef01bd9c5e25fddc2ce
5b95b83ba7e18cb40babab37bcb0f5b63bfef3bb
/script8.py
1ebba089a116b4bec4fb6bc5dc27f3eecb5f4d8f
[]
no_license
Moandh81/w3ressources_python
d9269959cc35c1df4a0ca9d37575c94fb96195f6
7a3c65bca50097c2e9b92591443dcb6b03a384a3
refs/heads/master
2020-03-30T22:42:23.673212
2019-11-11T19:58:16
2019-11-11T19:58:16
151,675,634
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
#!/usr/bin/python # -*- coding: utf-8 -* #Python Data Type: List - Exercises, #Write a Python program to print the numbers of a specified list after removing even numbers from it liste=range(1,11) i= 0 listepair=[] while i<len(liste): if liste[i] % 2 == 0: listepair.append(liste[i]) i = i + 1 print(listepair)
[ "anis.dhouieb@gmail.com" ]
anis.dhouieb@gmail.com
9852067a7f48d7c5a1c1a29d4b31449e2151ab87
4a0f8c5c0e8324fa614da776f2a704b5c369ccbb
/topologyTest/cp_to_Topology_folder.py
6e1eac9c65ee2c283c15f3a1a8c2d39bc8d87e15
[]
no_license
magic2du/contact_matrix
9f8ae868d71e7e5c8088bf22a9407ea3eb073be6
957e2ead76fabc0299e36c1435162edd574f4fd5
refs/heads/master
2021-01-18T21:15:07.341341
2015-09-16T02:14:53
2015-09-16T02:14:53
24,237,641
0
0
null
2015-09-10T19:58:24
2014-09-19T16:48:37
null
UTF-8
Python
false
false
535
py
import os, sys from dealFile import * ToDoList=sys.argv[1] listOfAll=readListFile(ToDoList) listOfSuccess=[] for folders in listOfAll: if os.path.exists('/home/du/Protein_Protein_Interaction_Project/3did_15OCT2010/dom_dom_ints/'+folders): sh='cp -ru /home/du/Protein_Protein_Interaction_Project/3did_15OCT2010/dom_dom...
[ "magic2du@gmail.com" ]
magic2du@gmail.com
90454f44990f308805cb1b8772805fccdc0273e4
cc6e7f63eaf4b3570771c46fb8b24b88e6e1f59e
/beginner/154/A.py
09f1a826e3d6bd6b508da9a58d092c35f84c391c
[]
no_license
kamojiro/atcoderall
82a39e9be083a01c14445417597bf357e6c854a8
973af643c06125f52d302a5bc1d65f07a9414419
refs/heads/master
2022-07-12T00:14:38.803239
2022-06-23T10:24:54
2022-06-23T10:24:54
161,755,381
1
0
null
null
null
null
UTF-8
Python
false
false
240
py
#import sys #input = sys.stdin.readline def main(): s, t = input().split() a, b = map( int, input().split()) u = input() if u == s: print(a-1, b) else: print(a, b-1) if __name__ == '__main__': main()
[ "tamagoma002@yahoo.co.jp" ]
tamagoma002@yahoo.co.jp
d67b434adfc58def665770ba75217dc4919beb9e
e9c4239c8064d882691314fd5b37208f10447173
/leetcode/101-200题/177nthHighestSalary.py
02a4420c9f64fca1244aec82b06600d9aa8dfc5f
[]
no_license
IronE-G-G/algorithm
6f030dae6865b2f4ff4f6987b9aee06874a386c1
6f6d7928207534bc8fb6107fbb0d6866fb3a6e4a
refs/heads/master
2020-09-21T03:02:20.908940
2020-03-22T15:19:41
2020-03-22T15:19:41
224,658,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
""" 177 第N高的薪水 编写一个 SQL 查询,获取 Employee 表中第 n 高的薪水(Salary)。 +----+--------+ | Id | Salary | +----+--------+ | 1 | 100 | | 2 | 200 | | 3 | 300 | +----+--------+ 例如上述 Employee 表,n = 2 时,应返回第二高的薪水 200。如果不存在第 n 高的薪水,那么查询应返回 null。 +------------------------+ | getNthHighestSalary(2) | +------------------------+ ...
[ "linjh95@163.com" ]
linjh95@163.com
d73bf4c4e161aa160e6327bec5770961ca88b0d2
63b0fed007d152fe5e96640b844081c07ca20a11
/アルゴ式/グラフアルゴリズム/Q4. ベルマンフォード法 (1).py
0ef10ba1f767d56b39f85b831aa906cd8a37d79c
[]
no_license
Nikkuniku/AtcoderProgramming
8ff54541c8e65d0c93ce42f3a98aec061adf2f05
fbaf7b40084c52e35c803b6b03346f2a06fb5367
refs/heads/master
2023-08-21T10:20:43.520468
2023-08-12T09:53:07
2023-08-12T09:53:07
254,373,698
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
N, M = map(int, input().split()) INF = 10**9 dist = [INF]*N dist[0] = 0 for _ in range(M): u, v, w = map(int, input().split()) dist[v] = min(dist[v], dist[u]+w) print(*dist, sep="\n")
[ "ymdysk911@gmail.com" ]
ymdysk911@gmail.com
4441a0a988cb752bf38feafdae50934f047ffde8
8fb3931be18a592d230d4cff3c28742a150d13cb
/intrusiondetection_server/funcs_intrusiondetection/intrusiondetectionImpl.py
35ac3953acea155ad1042c1dc30346b54f2694f2
[]
no_license
rvilalta/IoT-YANG
cfc12c8a679d51a4455838cc46919a2f9be82e1f
b1317fb306c7c03e098ccb4c675d56464025c173
refs/heads/master
2021-01-18T20:17:11.493068
2016-08-29T10:41:08
2016-08-29T10:41:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,367
py
import os.path, sys sys.path.append(os.path.join('/'.join(os.path.dirname(os.path.realpath(__file__)).split('/')[:-1]))) import backend.backend as be import cv2 import sys import imutils import threading import numpy as np import datetime from objects_intrusiondetection.room import Status def video_name(video_counte...
[ "a@a.com" ]
a@a.com
44da64af3f47165d63c8570ec96bdb194d74670e
2245f0acc3f5682129491b245acd3fd8ab2e4128
/Desafio111/utilidadesCeV/ex_111.py
bd920ee20cdf37563ff655b912dc745b5276f3b7
[]
no_license
wherculano/Curso-em-Video-Python
89bed7b7e01f25ba47efa511304d18448a47a4bb
5506645a46973a5ccd2c3d5c1ff782c51181b4bf
refs/heads/master
2022-04-12T08:26:26.616135
2020-03-26T17:53:21
2020-03-26T17:53:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
""" Crie um pacote chamado utilidadesCeV que tenha dois módulos internos chamados moeda e dado. Transfira todas as funções utilizadas nos desafios 107, 108, 109 e 110 para o primeiro pacote e mantenha tudo funcionando. Ex: >>> moeda.resumo(850, 35, 22) ---------------------------------- RESUMO DO ...
[ "wagherculano@hotmail.com" ]
wagherculano@hotmail.com
84a35beba16bd47d8a2654e62502bffbe5037477
3c114c083af073421fc0becfa4b4471ba1d77de5
/google/two_sum_bst.py
2b3e3f1c2703a1d548d36af103cb120dc7ea5901
[]
no_license
alonsovidales/interview_questions
99f757c7e35c5ede450be25d3bebd54a18b1312b
5e63e238950c2f6bdfd3ff48311d6c69a676d382
refs/heads/master
2021-01-17T12:06:48.419891
2018-03-25T08:44:14
2018-03-25T08:44:14
30,909,319
6
1
null
null
null
null
UTF-8
Python
false
false
2,019
py
""" Given a BST and a number x, check whether exists two nodes in the BST whose sum equals to x. You can not use one extra array to serialize the BST and do a 2sum solver on it. """ class Bst(object): class BstNode(object): def __init__(self, v, l=None, r=None): self.v = v self.l = ...
[ "alonso.vidales@tras2.es" ]
alonso.vidales@tras2.es
ad11a8c211c0d94f0c80515ff0321a91d0538ace
9f0532cd700a9cdaefeb6274608aa971c23a3be8
/raspi_io/graph.py
28c8fc0622e05512c33b588db3817e9af5d232a6
[ "MIT" ]
permissive
Kassadinsw/raspi-io
ac494ede3a6404228eac19261d5b9b2eaba69f8f
159e45120ca0ffc86549ad83ef31c140a8dd6e21
refs/heads/master
2020-05-20T11:23:19.134443
2018-07-20T08:41:39
2018-07-20T08:41:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,620
py
# -*- coding: utf-8 -*- import os from PIL import Image from .client import RaspiWsClient from .core import RaspiBaseMsg, RaspiAckMsg, get_binary_data_header __all__ = ['MmalGraph', 'GraphInit', 'GraphClose', 'GraphProperty'] class GraphInit(RaspiBaseMsg): _handle = 'init' _properties = {'display_num'} d...
[ "amaork@gmail.com" ]
amaork@gmail.com
22cce2269ea2ed4befefe7ca4abc2ac9e571ba4b
de861acdf4d51a766512be0834055ad403916677
/xii/meshing/tikz.py
1bb1f2099ba7f87d45925685e176cfef56a97c9b
[ "MIT" ]
permissive
ChaogeCanFly/fenics_ii
847c3faf4e1bf591addbe5a279980497f87d9c90
49a18855d077ab6e63e4f0b4d6a2f061de7f36ba
refs/heads/master
2022-12-05T04:25:53.241712
2020-04-17T07:40:32
2020-04-17T07:40:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,979
py
from dolfin import * template=r''' \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{shapes, snakes, patterns, arrows} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{amsmath, amssymb} \begin{document} \begin{tikzpicture} %(body)s \end{tikzpicture} \end{document} ''' def...
[ "miroslav.kuchta@gmail.com" ]
miroslav.kuchta@gmail.com
0d30bcc4d29dbf9b8f231055058bc5135d84c218
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/420/usersdata/329/88117/submittedfiles/exe11.py
36546467df9037e9e9fe2183694c2c0da1de4c3f
[]
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
439
py
# -*- coding: utf-8 -*- n = int(input("digite um numero com 8 algarismos: ")) resto = n % 10 n = (n - resto)/10 soma = soma + resto while soma < 72 : print ('%d' % soma) while soma > 1: resto = n % 10 n = (n - resto)/10 soma = soma + resto print ('%d' % soma) while soma ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
b9ae865af4885206e8591c08daf99dfb5e4e0c87
048eaa32bcd05ee278e6f391f9091f1848022987
/dbdk/ai_based_adaptive_security_system/test_model_ig_init_train.py
b0db71af2f9704dba04a033ca5d993f8cdd48e5d
[]
no_license
kendricklee91/portfolio
613e14fd6f13027c6d68d56b1b3d96b186de56b1
ef92604a1e14a3b81ae5e91883c07501def6b3da
refs/heads/master
2022-11-15T01:00:55.724686
2022-10-27T06:47:44
2022-10-27T06:47:44
170,043,628
0
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
from ksv_model.model_payload import known_model, known_model_retrain, known_model_hopt, known_model_inference, data_load_save from ksv_model.model_ig import ModelIG, ig_data_load_save import ksv_model.config.const as cst from sklearn.model_selection import train_test_split, GridSearchCV, RandomizedSearchCV from sklear...
[ "noreply@github.com" ]
kendricklee91.noreply@github.com
2cba5f29bc01c1976a25da33aa9cd8b4d8ef6a2c
49bf36ba213b28d4aaeb63feba632fb05710d565
/Python/BOJ/2941.py
24dae225acced1392db2bc7a11b07906bb71c616
[]
no_license
ohmozi/Algorithm
fc3fc861d4125b642d64b6e344eca806d137d0f2
436a376b009e8c073ceebc6b1e29b32b63c15a07
refs/heads/master
2023-07-23T16:01:49.774331
2021-08-16T02:08:56
2021-08-16T02:08:56
284,995,940
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
# 크로아티아 알파벳 croatian = ['c=','c-','d-','lj','nj','s=','z='] # "dz="는 예외 text = input() i = 0 count= 0 # 3,2,1순으로 확인하기 while i < len(text): temp = text[i:i+3] if temp == "dz=": # print("cro", temp) i += 3 else: temp = text[i:i+2] if temp in croatian: temp = text...
[ "gown10195@gmail.com" ]
gown10195@gmail.com
75c467a86726f93b6c2fe1be168a9a16d4ee2d79
6a3af6fe669b2e17db1fa7d0751cbc4e04948079
/fn_sdk_test/fn_sdk_test/components/funct_utilities_pdfid.py
a99c6c6446ee1d02426ea7c1c986e1446f201611
[ "MIT" ]
permissive
jjfallete/resilient-community-apps
5f0a728fe0be958acc44d982bf0289959f84aa20
2e3c4b6102555517bad22bf87fa4a06341714166
refs/heads/master
2022-04-17T13:20:36.961976
2020-04-13T07:03:54
2020-04-13T07:03:54
169,295,943
1
0
MIT
2020-04-13T07:03:56
2019-02-05T19:06:57
Python
UTF-8
Python
false
false
2,539
py
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use """Function implementation""" import logging from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError PACKAGE_NAME = "fn_sdk_test" class FunctionComponent(ResilientComponent): ...
[ "ihor.husar@ibm.com" ]
ihor.husar@ibm.com
4fd4c2d22d7b4d50e4eb887b4ecc430a0c2dace9
f340b9f47aaf11d95911074efd16e2878b4608c5
/200111/Find_Leaves_of_Binary_Tree.py
18926424e163a47aee3fc9c85898b4f174fd9609
[]
no_license
Jsonghh/leetcode
150020d1250a7e13e7387a545b4eb7df0de8f90b
3a83c0b0bcc43f458f7fc54764f60e1104fcc12e
refs/heads/master
2020-11-25T03:12:48.842151
2020-02-11T02:56:58
2020-02-11T02:56:58
228,475,001
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def findLeaves(self, root: TreeNode) -> List[List[int]]: ans = [] if not root: return ans wh...
[ "jiesonghe@outlook.com" ]
jiesonghe@outlook.com
793b94513930d4a6f4168891222bebd9d24bc2cf
75e641d2b33d0865e19193877e48748b3de5007c
/Parameter-Config/parameters_examples.py
1b708cdceb37bafbe36ad059ac0e24e380d2c198
[ "MIT" ]
permissive
bergolho/fractal-tree
dc3f7918ab6f1a6f714aaec56ee15e092e180733
c55a375585aac5168063fe34d078b54d3f43364c
refs/heads/master
2020-06-14T02:42:36.908723
2020-02-06T17:57:04
2020-02-06T17:57:04
194,871,693
0
0
null
2019-07-02T13:45:39
2019-07-02T13:45:39
null
UTF-8
Python
false
false
5,275
py
# -*- coding: utf-8 -*- """ This module contains the Parameters class that is used to specify the input parameters of the tree. """ import numpy as np class Parameters(): """Class to specify the parameters of the fractal tree. Attributes: meshfile (str): path and filename to obj file name...
[ "berg@ice.ufjf.br" ]
berg@ice.ufjf.br
8cc06657b6869b3435b2d98c650dc7996905f496
8644a2174c3cb7ccfe211a5e49edffbcc3a74a46
/Learning/Algorithms/DevideAndConquer/longest_com_prefix.py
eafc03411d5fb9a2d33de218b11db52537c54464
[]
no_license
bhavya2403/Learning-Python
9e7cc9dee21172321fb217cae27c8072357f71ce
3898211b357fbab320010a82a4811b68611d0422
refs/heads/main
2023-03-24T03:19:49.989965
2021-03-22T20:11:04
2021-03-22T20:11:04
315,962,811
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
def combineTwo(strA, strB): i = 0 m, n = len(strA), len(strB) while i < min(m, n): if strB[i] != strA[i]: if not i: return '' return strB[:i] i += 1 return strB[:i] def longestCommonPrefix(arr, l, r): if l==r: return arr[...
[ "noreply@github.com" ]
bhavya2403.noreply@github.com
0ce215260f26c84f7bd0381d434be95578624498
e621a2e763709336894bb33623cf6d20d7858c6f
/Stepwise.py
373650f95dae4d0688a030c7efa06ead06e3cbae
[]
no_license
myliu/document-classification
49d688fe0b5fdd79a6d2fca36b78277d273762cd
7b9078912a4fd770ea614660ec770ccbc23bfdd1
refs/heads/master
2021-01-01T05:38:25.318323
2013-09-16T01:22:53
2013-09-16T01:22:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,586
py
## author: Mingyu Liu ## author: Shi He import numpy as np import string from Dataset import * def main(): d = Dataset("rec.sport.hockey.txt", "rec.sport.baseball.txt", cutoff=200) (Xtrain, Ytrain, Xtest, Ytest) = d.getTrainAndTestSets(0.8, seed=100) lam = 100 cols = [] currentErro...
[ "mliu@quantcast.com" ]
mliu@quantcast.com
92e82e328ade7f03df9e0af8ba121385d3be56e6
98dde5ccdb145de9aab3e7233c3ec6c9c13a0649
/controller/qt_classes/LineEditDelegate.py
eaedc896fc950ae5c89c31e9713ccb06d136e5a0
[]
no_license
teamlm2/lm2
f586aaf7af44cbb64964f2c2bfeffa3e902d4752
416cc189b6fc16bf61583891783eef7e4a9e1278
refs/heads/master
2018-12-22T18:38:19.360889
2018-10-04T02:12:11
2018-10-04T02:12:11
109,807,271
1
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
__author__ = 'anna' from PyQt4.QtCore import * from PyQt4.QtGui import * class LineEditDelegate(QStyledItemDelegate): def __init__(self, column, completer_value_list, parent): super(LineEditDelegate, self).__init__(parent) self.line_edit_column = column self.completer_model = QStringList...
[ "aagii_csms@yahoo.com" ]
aagii_csms@yahoo.com
6dbec1025dda199acee235c6639074adb8892917
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/rna-transcription/ea888a3beaac408f9f93b24fd31d9d7a.py
afffcc7b61868c9975cd535c55505f2650b87b53
[]
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
490
py
class DNA: dna_sequence = '' def __init__(self, value): self.dna_sequence = value def to_rna(self): new_sequence = '' for letter in self.dna_sequence: if letter == 'G': new_sequence += 'C' elif letter == 'C': new_sequence += ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
cd676e15a7d03535de5ff911140dc2d8ab4aa212
ed1a4b2dba31905ccac09136a693c2d5c7697de8
/helpers/create_user_csv.py
e397736e82540a5b553663cbada881455e949a72
[]
no_license
twkampala/dhis2-config-exercise
5580666cebcdf5c65cbb81174670d87266e98c8a
76f835ea36ec6df64c04d6a207ef09176161843b
refs/heads/master
2021-01-01T16:06:12.658622
2015-07-08T03:49:09
2015-07-08T03:49:09
38,424,051
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
from faker import Faker def decide_role(n, roles): if((n+1) % 2 == 0): return roles[1] else: return roles[0] def create_csv_file(path, number_of_users): f = Faker() roles = ['ordinary user', 'admin user'] default_password = "secretPassword" with open(path, "w") as file_handle: ...
[ "jmured@gmail.com" ]
jmured@gmail.com
6aa7b9e0e5cd9dc45f0c134f9da1ce1c4e431b5d
bcdf30ab17d406643fb8ec01bafcd6cbf625bb44
/product_brand_pricelist/__openerp__.py
14df672457ad1d4cab78b820f20afd4fcb8344fe
[]
no_license
more2makeTim/odoo-extra-addons
a37915da3407b38cf3fcfbdbecb67435cb7e8f76
ac81232e4d360d8cd645b2d3471da8779d77a4a5
refs/heads/8.0
2020-04-21T17:56:16.337747
2018-07-06T10:42:48
2018-07-06T10:42:48
94,529,482
0
0
null
2017-06-16T09:39:22
2017-06-16T09:39:22
null
UTF-8
Python
false
false
1,303
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # Copyright (c) 2015 ERP|OPEN (www.erpopen.nl). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Aff...
[ "a.schenkels@ictstudio.eu" ]
a.schenkels@ictstudio.eu
afdcc0c01670b6fc5fa0699e55af74a39a6142d1
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_148/ch129_2020_04_01_17_10_28_115191.py
34a06276257b7733d2482ed96600077a526ce61a
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
def verifica_quadrado_perfeito(x): i = 1 n = x-i while n!=i: n == x-i i+=2 if x-i == 0: return True elif x-i < 0: return False
[ "you@example.com" ]
you@example.com
a7c78601b7a6b035ad14b7ba9cb3399e16ee8108
6e1d6d058907e689207ca51525adb0fc11fb5f54
/Chapter05/Exercise5.03/bookr/reviews/tests.py
312a8d690b716c2aff67cfdb22e04c6bdf7f9d28
[ "MIT" ]
permissive
lmoshood/The-Django-Workshop
a083b9f171e7f8388abd51ea82927377721d01a9
52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62
refs/heads/master
2022-04-20T20:13:59.917020
2020-04-19T23:23:19
2020-04-19T23:23:19
259,112,469
0
1
null
2020-04-26T19:11:57
2020-04-26T19:11:56
null
UTF-8
Python
false
false
2,334
py
import os from urllib.request import urlopen from django.conf import settings from django.contrib.staticfiles.testing import StaticLiveServerTestCase def read_content(path): with open(path) as f: return f.read() class Exercise3Test(StaticLiveServerTestCase): """ These tests use `StaticLiveServe...
[ "ben@beneboy.co.nz" ]
ben@beneboy.co.nz
134669add83e4232b2570c51e0fed52d4fb43c12
3416464630bc3322dd677001811de1a6884c7dd0
/dynamic_program/q1143_longestCommonSubsequence/__init__.py
adf40b3d5d875edbfd4202d998f732b09bf6200a
[]
no_license
ttomchy/LeetCodeInAction
f10403189faa9fb21e6a952972d291dc04a01ff8
14a56b5eca8d292c823a028b196fe0c780a57e10
refs/heads/master
2023-03-29T22:10:04.324056
2021-03-25T13:37:01
2021-03-25T13:37:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ FileName: __init__.py.py Description: Author: Barry Chow Date: 2020/10/15 10:19 AM Version: 0.1 """ from .DP_Solution import Solution __all__ =[ 'Solution' ]
[ "zhouenguo@163.com" ]
zhouenguo@163.com
f35bb1db7e398b0c815fab2296103f35be66b629
f6078890ba792d5734d289d7a0b1d429d945a03a
/hw2/submission/zhubenjamin/zhubenjamin_37891_1274820_Problem 1.py
579a43701a6466f3d97ec4fe8b7c6cc99cbc2f7b
[]
no_license
huazhige/EART119_Lab
1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0
47931d6f6a2c7bc053cd15cef662eb2f2027712c
refs/heads/master
2020-05-04T23:40:53.709217
2019-06-11T18:30:45
2019-06-11T18:30:45
179,552,067
0
0
null
null
null
null
UTF-8
Python
false
false
2,301
py
# -*- coding: utf-8 -*- """ Created on Apr 21, 2019 Class = Astro/Eart 119 Homework 2 - Plots and Animations Student = Benjamin Zhu (1696575) """ #============================================ # (a) imports #============================================ import numpy as np injWell = np.loadtxt('in...
[ "hge2@ucsc.edu" ]
hge2@ucsc.edu
9df1353b0a03a8a08e934b246193d8cde5896f35
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/storagemover/azure-mgmt-storagemover/generated_samples/job_definitions_list.py
953d0df43bb9313da6edaeaf6657c5ef22dadf96
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
1,666
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
3788541c03d8e3cdd90d225eba3d8e953c24f588
f07a42f652f46106dee4749277d41c302e2b7406
/Test Set/Open Source Projects/tensorlayer/88d239631b9eb49527c21053d79d55e012f11a3c-2-bug.py
a5c542dc0897f55fcb1489019b0b411308f3883d
[]
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
5,490
py
#!/usr/bin/env python __doc__ = """ This demo implements FastText[1] for sentence classification. FastText is a simple model for text classification with performance often close to state-of-the-art, and is useful as a solid baseline. There are some important differences between this implementation and what is descri...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
b4d9093c07bfb5ebb268fc66790a9f456208aeda
e3b89fc928ed736b1cdf7067d71c0f5f7d9e3586
/encodeData.py
9093b97281d18e236b8cd5e868d896c1ee0384cc
[]
no_license
tgadf/pymva
0b801277b27eb626ee61424e6ef24716087ba582
960127c880e61732db77c1049a5fe5ab9918e534
refs/heads/master
2020-04-02T19:27:38.956710
2018-10-30T00:10:29
2018-10-30T00:10:29
154,734,548
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Jan 7 23:17:31 2018 @author: tgadfort """ #conda install -c conda-forge category_encoders #https://github.com/scikit-learn-contrib/categorical-encoding import category_encoders as ce encoder = ce.BackwardDifferenceEncoder(cols=[...]) encoder = ce.Bi...
[ "tgadfort@gmail.com" ]
tgadfort@gmail.com
39f4aec86bf95b756d12cd722cb068c5c35e5824
60d737103373825b858e67292865bda8c6f2094f
/active/theses-harvard.py
52bc1449f4ad0047fdfea0a63b2cea46a68924ce
[]
no_license
fschwenn/ejlmod
fbf4692b857f9f056f9105a7f616a256725f03b6
ef17512c2e44baa0164fdc6abc997c70ed3d2a74
refs/heads/master
2023-01-24T18:56:35.581517
2023-01-20T11:18:16
2023-01-20T11:18:16
91,459,496
1
1
null
2021-10-04T11:58:15
2017-05-16T13:06:57
Python
UTF-8
Python
false
false
4,100
py
# -*- coding: utf-8 -*- #harvest theses from Harvard #FS: 2020-01-14 import getopt import sys import os import urllib2 import urlparse from bs4 import BeautifulSoup import re import ejlmod2 import codecs import datetime import time import json from selenium import webdriver from selenium.webdriver.support.ui import W...
[ "florian.schwennsen@desy.de" ]
florian.schwennsen@desy.de
466d4d1bb55b8dafeb39b97860256ff284104ef0
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_jugulars.py
7cd2dde2bba0293c62b58fbfd9c1b89af3e71010
[ "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
255
py
from xai.brain.wordbase.adjectives._jugular import _JUGULAR #calss header class _JUGULARS(_JUGULAR, ): def __init__(self,): _JUGULAR.__init__(self) self.name = "JUGULARS" self.specie = 'adjectives' self.basic = "jugular" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
eb724ce8161a951868219e4b96af89a03703ee0a
1e4c3ea6fadfd2bcffe900a784009e59c9e33202
/AxiomPro/DisplayingMixerComponent.py
f015a44ce89102f7e1b660ca435c361723864fcf
[]
no_license
mjimserra/AbletonLive9_RemoteScripts
e762e0c761f0af88fc1b9a8b42ef4dec2df02f72
d08eb29fbf1ac4d12f73841023375059de5ba29a
refs/heads/master
2021-05-27T21:34:04.962364
2014-08-03T22:49:15
2014-08-03T22:49:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,479
py
#Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_static/midi-remote-scripts/AxiomPro/DisplayingMixerComponent.py from _Framework.ButtonElement import ButtonElement from _Framework.MixerComponent import MixerComponent from _Framework.PhysicalDisplayElement import PhysicalDisplayElement class Disp...
[ "julien@julienbayle.net" ]
julien@julienbayle.net
4f706e123529a9d70768fd0c674f57ebc67ba8c0
ed6625148299e759f39359db9f932dd391b8e86f
/personal_env/lib/python3.8/site-packages/django/template/backends/utils.py
a15e96d77a0902ad37e71d6e5aee17539bde31a4
[ "MIT" ]
permissive
jestinmwilson/personal-website
128c4717b21fa6fff9df8295b1137f32bbe44b55
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
refs/heads/main
2023-08-28T11:31:07.916714
2021-10-14T09:41:13
2021-10-14T09:41:13
414,847,553
1
0
null
null
null
null
UTF-8
Python
false
false
432
py
from django.middleware.csrf import get_token from django.utils.functional import lazy from django.utils.html import format_html from django.utils.safestring import SafeString def csrf_input(request): return format_html( '<input type="hidden" name="csrfmiddlewaretoken" value="{}">', get_to...
[ "noreply@github.com" ]
jestinmwilson.noreply@github.com
ad589e0a99c3938a5c763d820fe4999d6891dd38
9f59670ff100632e5a5e24d10a698e50c115dc35
/devise/utils/tasks.py
9bbec95328e00ed6d2a57630e9136befaacdfad4
[]
no_license
mehdidc/reproduction
7927990c94f6ffee92c16fd550ecf44060b5544d
63add75dbdda0575bbc59b895092146cb92848e0
refs/heads/master
2020-04-28T02:25:33.388228
2017-04-06T21:11:39
2017-04-06T21:11:39
174,897,922
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
from invoke import task import pickle @task def word_embedding_to_binary(filename, out_filename): words = dict() with open(filename) as fd: for line in fd.readlines(): components = line.split(" ") word = components[0] embedding = map(float, components[1:]) ...
[ "mehdi@cherti.name" ]
mehdi@cherti.name
ef72922eb4c2256568f87f0af32022faf169f981
020489f1519deb3dd6df459d2b4a853bf64c6278
/triclelite/scramble/tools/common_tools.py
bfa2db731bbbcd0256f0039d1f06ad2318181bc8
[]
no_license
reritom/Tricle-Lite
8d59e58299b19ee355a2153def4d72fb890cb6ab
c01065da770e7723bccb55d7f314f8b4164861d6
refs/heads/master
2021-06-03T16:18:41.307052
2020-11-13T12:02:17
2020-11-13T12:02:17
116,177,162
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
def show_request(request): ''' This method prints the request data and images. Only to be used in local ''' print("data: " + str(request.POST)) print(request.FILES)
[ "reikudjinn@gmail.com" ]
reikudjinn@gmail.com
d029694c6ea99255d45c0c33dda89431de55aa7f
fe26b42d185c531b38a306fec6d35a6b00f03f88
/multiprocess-queue.py
8a8ddaa5d3dc4841792bc41e5e009d025cd59d55
[]
no_license
szhmery/test-python
067e15d94c2a214868432cbfc934f0d6c07ec711
65627c8dd9b13e6ae803e617ba3df5b7d88f9d27
refs/heads/master
2020-03-14T07:24:28.070812
2018-07-27T14:36:41
2018-07-27T14:36:41
131,504,293
0
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
import time from multiprocessing import Process, JoinableQueue, Queue from random import random tasks_queue = JoinableQueue() results_queue = Queue() def double(n): return n * 2 def producer(in_queue): while 1: wt = random() time.sleep(wt) in_queue.put((double, wt)) if wt >...
[ "szhmery@gmail.com" ]
szhmery@gmail.com
7be6f2344f4f155b1d863065c960619f6ca0a958
03cb73ffb69f2caa0f91b62d99d8694d24c6c932
/arc/__init__.py
0e94ed53d9bb541061d79220b060b96dd4f1f249
[ "MIT" ]
permissive
Den4200/arc
84f1b69beeb2d1aa6be78a740277772d586127a9
55d9c43c0db9f3342ef5b5e8fed429e423ad1f3a
refs/heads/master
2023-05-10T16:04:21.050895
2020-05-03T08:22:38
2020-05-03T08:22:38
260,573,175
1
0
MIT
2021-06-02T01:43:46
2020-05-01T22:49:11
Python
UTF-8
Python
false
false
686
py
from typing import List, Tuple, Union class _Keycodes: """ Returns multiple keycodes from a dictionary in one request. """ def __init__(self) -> None: self.keys = { 'enter': 13, 'del': 127, 'backspace': 8, 'esc': 27, ...
[ "dpham.42@hotmail.com" ]
dpham.42@hotmail.com
d5f1ccfa5c7346676dcd4a84e16d05fec5e5019b
f4547c0e47f9f4d4d6ba4fe3f2908094dc0ac511
/first.py
fbab4d252666861d003ffc3dc71ae819e03456d5
[]
no_license
gautamamber/python_mongodb-
c63e00be2eb19029d593462c65268c31a2733a18
fa595d667c9820263256cabf9a6deae07ec70df8
refs/heads/master
2021-05-07T15:24:53.143954
2017-11-08T17:06:51
2017-11-08T17:06:51
110,005,185
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
from pymongo import MongoClient MONGODB_URI = "mongodb://amber:amber@ds155325.mlab.com:55325/amberamity" client = MongoClient(MONGODB_URI, connectTimeoutMS=30000) db = client.get_database("amberamity") user_records = db.user_records def getRECORD(user_id): records = user_records.find_one({"user_id":user_id}) r...
[ "ambergautam1@gmail.com" ]
ambergautam1@gmail.com