blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
5186c4e58eccbed404c75f6b956b98ccacd456eb
dec494542217437afa7f38e8703328b25b183cb8
/0-1-knapsack.py
fd4ce77bcb6a2a7f14c79508c5f44f258dae310d
[]
no_license
Transi-ent/LeetcodeSolver
ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd
a89e19753666657a6f15c1be589b9b2dbd4b6c84
refs/heads/master
2021-04-16T20:37:34.710175
2021-02-24T03:51:43
2021-02-24T03:51:43
249,383,432
1
0
null
null
null
null
UTF-8
Python
false
false
2,847
py
def knapSack01(w: list, v: list, capacity: int) ->int: if len(w) == 0: return 0 assert len(w)==len(v), 'weight数组和value数组具有相同的长度' # 将求解过程中的子问题结果存储在数组中 # memo[i][j] 表示要考虑第 i 号物品在背包剩余容量为 j 的情况下, # ...背包可存放的最大容量 memo = [ [0]*(capacity+1) for _ in range(len(w)) ] # 初始化 memo for j in ...
[ "1305113016@qq.com" ]
1305113016@qq.com
3acfaea76f7c794b34f05b7eeeca96aac5eda6ca
d83fde3c891f44014f5339572dc72ebf62c38663
/_bin/google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/managed/update.py
ba2347df5e08d4d1b09e3a5349bd74431a253f5d
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
gyaresu/dotfiles
047cc3ca70f4b405ba272856c69ee491a79d2ebe
e5e533b3a081b42e9492b228f308f6833b670cfe
refs/heads/master
2022-11-24T01:12:49.435037
2022-11-01T16:58:13
2022-11-01T16:58:13
17,139,657
1
1
null
2020-07-25T14:11:43
2014-02-24T14:59:59
Python
UTF-8
Python
false
false
6,324
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "me@gareth.codes" ]
me@gareth.codes
ed79455a41d2cc1b5584514ab1f09ef9c1038376
f416cb25049c077319a93ad2d3eab031d78708f3
/mftutor/tutor/views.py
eb03dc1b0e94d700d6a21e9fd141c7cece1d2ac6
[]
no_license
housa/web
b5595000750eda7aa1d0b679a7d7b758d7470961
44891dd1103e66bbdba5f0f0d953fa926bce340a
refs/heads/master
2021-01-12T21:00:09.227171
2016-05-07T13:37:46
2016-05-07T13:37:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,765
py
# encoding: utf-8 from __future__ import unicode_literals import io import subprocess from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404, render_to_response from django.core.urlresolvers import reverse from django.core.exceptions import ValidationError from djan...
[ "rav@cs.au.dk" ]
rav@cs.au.dk
be26c85c9ffd359771e6d1b9e46fb4ce65763524
e6dddf6be89554750f6dba04c7672cd8f1f221a8
/easing_01.py
61bfced2b81246b3dd7333705e3204a2d95aa601
[]
no_license
nndrch/progvis
20936d0fe9fdfbb1462f18213c0b15a5f1f0dbcf
2336817695382a20e7a4c352b93e35e96bd87715
refs/heads/master
2021-01-23T07:20:50.669387
2013-01-10T17:21:54
2013-01-10T17:21:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,864
py
# [h] simple animation with sin from math import sin, radians colormode(HSB) def _draw_background(frame): s = sin(radians(frame)) hue = abs(s) * .5 _color = color(hue, .5, .2) background(_color) def _draw_cross(frame): x = WIDTH/2 y = HEIGHT/2 s = sin(radians(frame)) hue = abs(s) * ....
[ "gustavo@hipertipo.com" ]
gustavo@hipertipo.com
4de6b1fe99bb317f68556a11a7207a9903a137fb
7b15c40c00ba2008024979d0e520a922bc2f8229
/mianshi_prep/AMZ_VO_prep/0347_Top_Frequent_Elements.py
f9f3c0de9e8b980b11492c5bdb0f06d889e064e2
[]
no_license
axd8911/Leetcode
aa9875a5b55c7d5e961d9a3ea55823d06eb08a88
1c6cab14f4dac4f3f29f1b5ce13bb5289724fdb4
refs/heads/master
2022-07-07T12:59:38.251218
2021-06-22T06:27:05
2021-06-22T06:27:05
173,857,144
0
1
null
2022-06-22T01:22:30
2019-03-05T02:23:42
Python
UTF-8
Python
false
false
776
py
class Solution: def topKFrequent(self, nums: List[int], k: int) -> List[int]: cnt = collections.Counter(nums) myHeap = [(-cnt[key],key) for key in cnt] heapq.heapify(myHeap) res = heapq.nsmallest(k,myHeap) return [item[1] for item in res] # bucket search class Solution: ...
[ "axd8911@hotmail.com" ]
axd8911@hotmail.com
734c895c93ea4f564144598aec8e533e9b52dde2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02934/s122298746.py
e67f3cc49be824866f778bde86d7c07533b15af3
[]
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
94
py
n = int(input()) a = list(map(int, input().split())) s = sum([1 / x for x in a]) print(1 / s)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
988a244484bd651f95ffede177bdc75a0e45977f
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/databoxedge/v20210601/kubernetes_role.py
1cbd8cc51dd3937adca6ea9456cbc260cb37ffd4
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,892
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
5d5fd5400197ecd719fc253a1672aba8d9781a0e
2086ab51cdd48cdb9a2e8e0943cdf95eafd37b06
/Assignment2 - A Neural Network for Eye Detection/model.py
83d4fc4986723266978df226f71ee737992fc40a
[]
no_license
bryonkucharski/intelligent_visual_computing
49bf4f7db293625861b7aa361326d43c01338c0d
0c9b4afd30c9e728dc0b7edf76c9bed4a285e2bf
refs/heads/master
2020-04-18T14:10:08.007453
2019-02-23T17:07:20
2019-02-23T17:07:20
167,582,084
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
from collections import defaultdict class Model(object): def __init__(self, num_hidden_nodes_per_layer = [16, 8, 4], iterations = 1000, learning_rate = 0.5, momentum = 0.9, weight_decay = 0.00,\ activation = "sigmoid", verbose = True,update_method = 'GD'): self.num_hidden_nodes_per_layer = ...
[ "bryonkucharski@gmail.com" ]
bryonkucharski@gmail.com
a00128a6712f75445c50622b7adb19517a0a0887
f891828ffe9c8501d276560c8c52d319f284056f
/162_find_one_peak_m/main.py
8b7a1aa24d473e492afb6c72b085fd077fb8e5f3
[]
no_license
chao-shi/lclc
1b852ab61fef4072039c61f68e951ab2072708bf
2722c0deafcd094ce64140a9a837b4027d29ed6f
refs/heads/master
2021-06-14T22:07:54.120375
2019-09-02T23:13:59
2019-09-02T23:13:59
110,387,039
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
class Solution(object): def findPeakElement(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return None li, hi = 0, len(nums) - 1 while li < hi: mid = (li + hi) / 2 if nums[mid] < nums[mid + 1]: ...
[ "chris19891128@gmail.com" ]
chris19891128@gmail.com
743a3741c89d8db9bb855f4fdd95e69196b35a04
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/iot_write_1/job_cancel.py
efbd5298de7449ee66380c01df6468358dcf9076
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iot/cancel-job.html if __name__ == '__main__': ...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
8f09473cf78b99e5e45aaf0d2425cf493f587094
925b899cff2fa37e8af46a365f561e083a8818d6
/helpdesk/views/feeds.py
c476ca9ceecb5ef43ec8137a8161ad91f6594890
[]
no_license
zaiyankhan/djangonew
f2d6ef9ef73ca0fcd0cda14082a20973c93368ce
31e4bd9d3432a260273fac7c3ae08137983ea106
refs/heads/master
2022-12-08T11:57:25.662206
2020-04-05T19:34:59
2020-04-05T19:34:59
253,313,050
0
0
null
2022-11-22T01:59:55
2020-04-05T19:15:58
Python
UTF-8
Python
false
false
5,427
py
""" django-helpdesk - A Django powered ticket tracker for small enterprise. (c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details. views/feeds.py - A handful of staff-only RSS feeds to provide ticket details to feed readers or similar software. """ from django.contrib.auth import ge...
[ "zaiyanwebadda@gmail.com" ]
zaiyanwebadda@gmail.com
35e41c01d742e3d8e121e00d3db4a81e53271403
164ffe077dde59373ad9fadcfd727f279a1cfe93
/jni_build/jni/include/tensorflow/python/training/supervisor_test.py
d1a5c01415b62011abbaa5fce36269f1d26faf28
[]
no_license
Basofe/Community_Based_Repository_Traffic_Signs
524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd
a20da440a21ed5160baae4d283c5880b8ba8e83c
refs/heads/master
2021-01-22T21:17:37.392145
2017-09-28T21:35:58
2017-09-28T21:35:58
85,407,197
0
2
null
null
null
null
UTF-8
Python
false
false
28,419
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "helder_m_p_novais@hotmail.com" ]
helder_m_p_novais@hotmail.com
ae595c809b95984919dee724692f31b7bbc9376c
1ab7a4345d3542389ee6fc002c0107a8d64d7199
/wtfhack/__init__.py
17d34fd56e331cf5b84e6079990cb93f10c7fcc4
[ "BSD-3-Clause" ]
permissive
vaginessa/wtfhack
9ed414e65957fe40c801b3eecf83834322abcefa
c4655b09336972605dbebdb3b9a507d2b1ed8a99
refs/heads/master
2022-10-25T07:34:25.558121
2013-02-04T18:51:33
2013-02-04T18:51:33
62,017,934
0
0
BSD-3-Clause
2022-10-17T01:25:21
2016-06-27T01:54:09
CSS
UTF-8
Python
false
false
16
py
""" wtfhack """
[ "sloria1@gmail.com" ]
sloria1@gmail.com
171f8d4555d356c9ccd04b0b59f0595f7a2202e3
4c7b662280b86d994f72529de9caf02d9bd31b36
/Inliner.glyphsFilter/Contents/Resources/plugin.py
d12d02fe4251fc33489cf78776378b7e68d5b9b7
[ "Apache-2.0" ]
permissive
mekkablue/Inliner
742bc157691f499de69ebd58f7b317225722234d
cc70f7ec765b06eea5680a1bcfff780fa37b2db1
refs/heads/master
2021-09-10T03:29:55.560945
2021-09-05T13:46:10
2021-09-05T13:46:10
216,339,288
4
0
null
null
null
null
UTF-8
Python
false
false
5,739
py
# encoding: utf-8 from __future__ import division, print_function, unicode_literals ########################################################################################################### # # # Filter with dialog Plugin # # Read the docs: # https://github.com/schriftgestalt/GlyphsSDK/tree/master/Python%20Templates...
[ "res@glyphsapp.com" ]
res@glyphsapp.com
daa2d0fcc837cfac591c79bc62249fc1bb554844
ae9bb7babce2a0349ae932985cf418a03057c670
/test_mock/map_local.py
f4954b018897e11d8b836b5276e5ca888b04e403
[]
no_license
Veraun/HogwartsSDET17-1
d2592fcb4c9c63724c19bcf9edde349ebcd2c8af
6648dbfb640b065ff2c76cb6889a8f9e4f124b91
refs/heads/main
2023-07-02T05:20:32.161248
2021-08-06T03:55:13
2021-08-06T03:55:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
''' #!/usr/bin/python3 # -*- coding: utf-8 -*- @author: wangwei @project: HogwartsSDET17 @file: map_local.py @time: 2021/3/22 15:38 @Email: Warron.Wang ''' """ Basic skeleton of a mitmproxy addon. Run as follows: mitmproxy -s anatomy.py 使用mitmproxy 实现map_local功能:不需要跟服务端进行交互,解析提前生成好的json文件 """ import json from mitmpro...
[ "wei1.wang@ximalaya.com" ]
wei1.wang@ximalaya.com
a6591f6632843978eccc3f11d02aea459a57183e
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/woman/nano_information_tarantino.py
a6d49019aa1e99e5b560f5b00225e1799947db15
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
14,007
py
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading.Tasks; using System.Xml.Linq; namespace Imagine.Uwp.Cognitive { /// <summary> /// The <strong>TranslatorServiceClass</strong> class provides methods to translate text in various supported langu...
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
6f5aa058d4517d24df73d1f3b291c6fd1e218348
52b5773617a1b972a905de4d692540d26ff74926
/.history/smallestWindow_20200707154357.py
676d41f20ddce48a5ee48a9597f430cf1dcedc58
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
def min(s,t): no_of_chars = 256 # first check if the length of the string is less than the string of the given pattern if len(t)> len(s): return "" else: # store the occurrences of the characters of the given pat in a hash pat hash_pat = [0] * no_of_chars hash_str = [0] *...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
6e0b85a0f8ae3d2a3b7a7ef560fb640e2b54d48c
96ddfa44a1394b3bfd1059040620a5f21982c6b9
/climber.py
42d84669ab82ad4bc3db7522faf014fcc2c165fe
[]
no_license
justinnhli/routesmith
67f34981d1d3ee2cdd3c216cf5a6f9cc6af73a32
ef280a25e5c5b451e66d820475aea668dd5d409b
refs/heads/master
2016-09-10T16:25:36.040712
2014-11-13T02:32:52
2014-11-13T02:32:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,059
py
#!/usr/bin/env python3 import math from abc import ABCMeta, abstractmethod from argparse import ArgumentParser from collections import Counter, OrderedDict from copy import copy from itertools import product from numbers import Real from os.path import dirname, expanduser, join as join_path, realpath from tkinter imp...
[ "justinnhli@gmail.com" ]
justinnhli@gmail.com
82279cd54424377456ff4c67a16a57e2530d34f5
2e9fa98321bbb8996533dfd17d7438c4498b4b10
/code/Deep Learning/QuestionUserAttention/inference.py
d9cc11b4167fd66a31b518fbe2281ddf195fac42
[]
no_license
TEAM-IKYO/Deep-Knowledge-Tracing
d093b7b8af19e1aa65b519111dea4d6d8532b025
555e85de63a7debf2a6e57550fdf9b93952ac304
refs/heads/main
2023-05-30T04:40:30.141741
2021-06-26T17:01:35
2021-06-26T17:01:35
370,618,981
1
0
null
null
null
null
UTF-8
Python
false
false
518
py
import os from args import parse_args from dkt.dataloader import Preprocess from dkt import trainer import torch def main(args): device = "cuda" if torch.cuda.is_available() else "cpu" args.device = device preprocess = Preprocess(args) preprocess.load_test_data(args.test_file_name) test_data =...
[ "gl_gd@naver.com" ]
gl_gd@naver.com
7b96d7a5eff6881bf4411aee4cc418d8817f8218
d2ff7ade7f373406a8e3aa0b562f07c2319f3c9c
/src/ml/recommendation/fp_growth.py
06e2d04c0b9ac92a8c3beb3733803a40233b17e6
[]
no_license
littlemesie/spark-learning
ff49d5c412a5538292775f240259ed76c82efb63
80c3be15a153adbcddd9ad0dbd1bf25f18138657
refs/heads/master
2020-09-01T13:41:35.049581
2019-12-25T11:52:08
2019-12-25T11:52:08
218,970,414
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
""" FPGrowth 算法 Run with: bin/spark-submit --py-files='/Users/t/python/spark-learning/src/utils.zip' \ /Users/t/python/spark-learning/src/ml/recommendation/fp_growth.py """ from pyspark.ml.fpm import FPGrowth from pyspark.sql import SparkSession if __name__ == "__main__": spark = SparkSession\ .builder...
[ "littlemesie@163.com" ]
littlemesie@163.com
7a7a77d23ff75ddf5ae81f841a813c39be0499c8
f92385943346eccca8cc4d7caca66d2d5455caa2
/2020.7/IntegerBreak.py
f05d18bbcc800e11089226a664d7461c8300a577
[]
no_license
IamWilliamWang/Leetcode-practice
83861c5f8672a716141dc6ec9f61f21dc5041535
c13c0380a3ae9fef201ae53d7004b9f4224f1620
refs/heads/master
2023-04-01T12:15:19.335312
2020-10-15T14:49:36
2020-10-15T14:49:36
281,846,435
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
from functools import lru_cache class Solution: def integerBreak(self, n: int) -> int: @lru_cache(maxsize=None) def dp(rest: int, mustDivide=False) -> int: if rest == 1: return 1 result = [] if mustDivide else [rest] # 不切分 for i in range(1, rest...
[ "iamjerichoholic@hotmail.com" ]
iamjerichoholic@hotmail.com
dfcfa5df540cd7662111f2fdff86ee84f5866976
5ef0c2fa4ee0d210d35a5c3e4e7921d249efe5e3
/setup.py
fbe64450ef268e679e90365ade46f36788c3050e
[ "BSD-3-Clause" ]
permissive
qcscine/puffin
c0271beaf918a03cb82ff791c7589b51b6102c81
2b4872f1e19c28dfec1737b2dd38c6f8e9dd6e07
refs/heads/master
2023-05-25T12:03:18.287843
2023-05-12T07:00:06
2023-05-12T07:00:06
505,703,091
5
0
null
null
null
null
UTF-8
Python
false
false
2,984
py
# -*- coding: utf-8 -*- __copyright__ = """ This code is licensed under the 3-clause BSD license. Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group. See LICENSE.txt for details. """ from os import path from setuptools import setup, find_packages import sys min_version = (3, 6) if sys.version_info <...
[ "scine@phys.chem.ethz.ch" ]
scine@phys.chem.ethz.ch
f777ec0874e6e0b5488712a42e439544ba9c66f3
5c8f8e34579f8b2609648b106daed5b313d54ff8
/2019/Code_World/C++/Before Comp/4-1_FixBugs/Test Functions/Python_Libraries/PreprocessedMap.py
4049bb58784112b02bbc183005ecf11d94ac8ce7
[]
no_license
CaithyJo/Compete-with-CoSpace
357f35dac71599238855d6b3e1bd2a0fdb311244
cdf3c969a71fe2cf46ec001f0a77d16b968ef4db
refs/heads/master
2023-03-16T06:06:50.758364
2021-01-03T17:13:25
2021-01-03T17:13:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
292,328
py
data = [[6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ "zunmun@gmail.com" ]
zunmun@gmail.com
9436627e2ddec21cf1b0c8ad1718f1615dabf19e
8d2abf7ad4c3f35801f6bfdb38a4d6cddf1e0fbd
/0404/demo14.py
47e65ec8e8817b269461aa609aed78fcaef357bb
[]
no_license
erroren/Python_A
e9dfba73fc09160e4d3b8ea994183e2735f9d36e
47901316902705e513ea7d6e016f98f1cd2d3e85
refs/heads/master
2020-05-04T14:27:29.118843
2019-06-13T08:50:03
2019-06-13T08:50:03
179,197,541
1
0
null
null
null
null
UTF-8
Python
false
false
2,209
py
import re s1 = "hello\nworld" print(s1) # 在字符串开头 res = re.match("He", s1, flags=re.I) print(res.group()) # 扫描整个字符串,返回第一个匹配 res = re.search("o", s1) print(res.span(), type(res)) # 是否完全匹配 res = re.fullmatch("hello", s1) print(res, type(res)) # 返回列表 res = re.findall("l", s1) print(res) # 分割返回列表 res = re.split("o", s1) pri...
[ "hcy@qq.com" ]
hcy@qq.com
c692a046f05aeb15bfb0231bb79f2c38eb80f8d7
1a166165ab8287d01cbb377a13efdb5eff5dfef0
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_09_01/aio/operations/_virtual_network_gateway_connections_operations.py
01db17ee83696bd57da577984038b28dc274686b
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
manoj0806/azure-sdk-for-python
7a14b202ff80f528abd068bf50334e91001a9686
aab999792db1132232b2f297c76800590a901142
refs/heads/master
2023-04-19T16:11:31.984930
2021-04-29T23:19:49
2021-04-29T23:19:49
363,025,016
1
0
MIT
2021-04-30T04:23:35
2021-04-30T04:23:35
null
UTF-8
Python
false
false
39,079
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" ]
manoj0806.noreply@github.com
11fc64434e0b430783fbe4ba3235bc178e3729c6
bc035331453d2f10e6179700ba74702158f28abf
/week1_1/week1_1/urls.py
c466a5605542c8501564ef58df9152a10ebb28d7
[]
no_license
NikolaPavlov/Hack_Bulgaria_Django
ade6813ae19d7fb7f00f74b6ec800d5927313f12
74ee14ddae885e0ea457ef89cee361b9dc34206c
refs/heads/master
2021-01-17T14:05:40.444361
2017-05-19T19:12:32
2017-05-19T19:12:32
83,479,831
2
0
null
null
null
null
UTF-8
Python
false
false
826
py
"""week1_1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
[ "nikola.pavlov1955@gmail.com" ]
nikola.pavlov1955@gmail.com
944ae9fe64a0566be162152070cd988cafd5324b
172ce38cdad4d64d984b808b3f60738e63aed7f9
/appengine/swarming/swarming_bot/api/platforms/android.py
4fdad12a21442b45bf3d5bb80029cc0b58144735
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Slayo2008/New2
7dfa0eeacbcc42435b8eb80522cfbdc71b8f2514
3fa4c520dddd82ed190152709e0a54b35faa3bae
refs/heads/master
2021-01-13T05:53:20.555486
2017-06-21T01:30:03
2017-06-21T01:30:03
94,951,662
1
0
null
null
null
null
UTF-8
Python
false
false
3,797
py
# Copyright 2015 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Android specific utility functions. This file serves as an API to bot_config.py. bot_config.py can be replaced on the server to allow addition...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
c51ab29472894e4012d39949962bd9b68ae52dcf
10ee894d69a89b3735d40b1549886de058bcef56
/abc011/D.py
e6fda6dbd0c3280229677031bee94de4886ec528
[]
no_license
kusano/atcoder
bc518250425b478e9363ef17b840213a4961d278
22e41e47d9b72c110e3e9a7e0d3edf679ec4f0bd
refs/heads/master
2021-06-26T17:18:37.092261
2020-12-05T07:37:41
2020-12-05T07:37:41
171,328,069
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
N, D = map(int, raw_input().split()) X, Y = map(int, raw_input().split()) P = [1]*(N+1) for i in range(1, N+1): P[i] = i*P[i-1] if X%D!=0 or Y%D!=0: print 0 exit(0) dx = X/D dy = Y/D ans = 0 for U in range(0, N+1): D = U-dy if 0<=D: if (dx+N-U-D)%2==0: R = (dx+N-U-D)/2 L = N-U-D-R if ...
[ "kusano@users.noreply.github.com" ]
kusano@users.noreply.github.com
59f6d95909fe2f6fd6e1774db9c65e11c3e7a8e2
1287ad54942fd2020a217ab12004a541abb62558
/pythonexercicios/Ex076.py
b271f5ff01023037f5ca20ae157ea60ec894d0a1
[]
no_license
LuPessoa/exerciciospy-
637f24581722e547a62380973ca645b55ff65d90
b5faad818f978bb13a65922edceb17888b73a407
refs/heads/master
2023-05-12T04:16:39.847184
2021-06-04T03:02:24
2021-06-04T03:02:24
374,410,212
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
listagen = ('Lápis', 1.75, 'Boracha', 2, 'Caderno', 15.90, 'Estojo', 25, 'Tranferidor', 4.20, 'Copasso', 9.99, 'Mochila', 120.32, 'Canetas', 22.30, 'Livro', 34.90) print('-' * 40) print(f'{"LISTAGEM DE PREÇO":^40}') print('-' *40) for pos in range(0, len(listagen)): if pos % 2 == 0: ...
[ "lulenemacedo29@gmail.com" ]
lulenemacedo29@gmail.com
6a4481a57564deba9625260c7da0177b424bfd4d
347e68e072d2d779f86ca81d641edde256b19459
/app/data_product_framework-master/python/bnr/utils/generic_verification.py
130f2057a3dbf426eec30853fd1e12a60af9bc11
[]
no_license
prem1982/data-product-framework
8b40e3c81921e6a9d9fa09025cbf620b4143c2b4
9dd10c3656f188f383a11cf373020f904cc37239
refs/heads/master
2020-03-25T17:53:12.810941
2018-08-08T11:01:42
2018-08-08T11:01:42
144,001,254
0
0
null
null
null
null
UTF-8
Python
false
false
3,274
py
"""Contains GenericVerification, a class to aid in error checking""" import numpy as np class GenericVerification(object): """Contains various methods to check the format and value of various objects""" def __init__(self): """Default format and value exceptions""" self.format_exception = None...
[ "prem1pre@gmail.com" ]
prem1pre@gmail.com
48c8abbd7689fe090e0120b5943afc43559c6807
00d7e9321d418a2d9a607fb9376b862119f2bd4e
/recipes/recipes_dbus_client.py
43263d9b83a0e07cc6cb30515ff044423d3ad159
[ "MIT" ]
permissive
baluneboy/pims
92b9b1f64ed658867186e44b92526867696e1923
5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13
refs/heads/master
2021-11-16T01:55:39.223910
2021-08-13T15:19:48
2021-08-13T15:19:48
33,029,780
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
#!/usr/bin/env python usage = """Usage: python recipes_dbus_service.py & python recipes_dbus_client.py""" import sys import traceback import dbus def main(): bus = dbus.SessionBus() try: remote_object = bus.get_object("gov.pims.SamsService","/SamsStatus") except dbus.DBusException: t...
[ "silversnoopy2002@gmail.com" ]
silversnoopy2002@gmail.com
f12ece62ea022a368f43009a5774c4fda875f864
28a462a28f443c285ca5efec181ebe36b147c167
/tests/compile/basic/es2020/ExportDeclaration[6,0].ExportEntries.spec
c6a98d070f68476276fb7ef8081c8b226d05b50b
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kaist-plrg/jstar
63e71f9156860dc21cccc33a9f6c638dfee448ea
1282919127ea18a7e40c7a55e63a1ddaaf7d9db4
refs/heads/main
2022-07-22T08:12:34.947712
2022-02-27T04:19:33
2022-02-27T11:06:14
384,045,526
6
4
NOASSERTION
2022-02-27T11:05:26
2021-07-08T07:53:21
Python
UTF-8
Python
false
false
217
spec
1. Let _entry_ be the ExportEntry Record { [[ModuleRequest]]: *null*, [[ImportName]]: *null*, [[LocalName]]: *"\*default\*"*, [[ExportName]]: *"default"* }. 1. Return a new List containing _entry_.
[ "h2oche22@gmail.com" ]
h2oche22@gmail.com
fb0c9774d7bbcbda0eddf6a0519f3a9c10b9883b
a61a22f12e12b6d608d67cfb68f1c8abb4d30b63
/structural_dynamics/pdb_processor/__init__.py
85cefba58800d402a63c794bf05caffa8294787a
[]
no_license
sunainabanerjee/structural_dynamics
8fe8c679356a0c5dbb0ee41601e5b0293dcb300d
753aee50ad6ea44e4151b9a3eb6bcd93a20d1bfb
refs/heads/master
2021-08-02T20:32:31.402525
2021-07-24T11:01:00
2021-07-24T11:01:00
204,093,128
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
from .amino_acids import * from .pdb_structure import * from .trajectory_reader import * from .amino_builder import * from .pdb_compressed import *
[ "sumant199@gmail.com" ]
sumant199@gmail.com
6bb5c20655eb5807e5ca5504071f83c919c0a56e
c97b9ae1bf06757ba61f90905e4d9b9dd6498700
/venv/Lib/site-packages/jsonschema/cli.py
5aba5b94a7a2d23d5e892cdfd313bcee6cb2d617
[]
no_license
Rahulk1p/image-processor
f7ceee2e3f66d10b2889b937cdfd66a118df8b5d
385f172f7444bdbf361901108552a54979318a2d
refs/heads/main
2023-03-27T10:09:46.080935
2021-03-16T13:04:02
2021-03-16T13:04:02
348,115,443
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:dd573ca6d736183ef30f12b617e91a9aa9ab13d7f7e5ad8a543191d69d5a7145 size 2310
[ "rksc.k1p@gmail.com" ]
rksc.k1p@gmail.com
88b0d26ce52aa832cc49769f0bfb9be09d1f0110
162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d
/mrex/discriminant_analysis.py
63337b1a0858f779af9107222ac25360a92e20e8
[]
no_license
testsleeekGithub/trex
2af21fa95f9372f153dbe91941a93937480f4e2f
9d27a9b44d814ede3996a37365d63814214260ae
refs/heads/master
2020-08-01T11:47:43.926750
2019-11-06T06:47:19
2019-11-06T06:47:19
210,987,245
1
0
null
null
null
null
UTF-8
Python
false
false
27,909
py
""" Linear Discriminant Analysis and Quadratic Discriminant Analysis """ # Authors: Clemens Brunner # Martin Billinger # Matthieu Perrot # Mathieu Blondel # License: BSD 3-Clause import warnings import numpy as np from .exceptions import ChangedBehaviorWarning from scipy import linalg from...
[ "shkolanovaya@gmail.com" ]
shkolanovaya@gmail.com
f0fa0de34175cca12b502aaac3d72c8cbd216100
920b9cb23d3883dcc93b1682adfee83099fee826
/itsm/postman/migrations/0009_auto_20210423_2037.py
7082e91af3662c30c8af11f117f32aaa74c5e11e
[ "MIT", "LGPL-2.1-or-later", "LGPL-3.0-only" ]
permissive
TencentBlueKing/bk-itsm
f817fb166248d3059857b57d03e8b5ec1b78ff5b
2d708bd0d869d391456e0fb8d644af3b9f031acf
refs/heads/master
2023-08-31T23:42:32.275836
2023-08-22T08:17:54
2023-08-22T08:17:54
391,839,825
100
86
MIT
2023-09-14T08:24:54
2021-08-02T06:35:16
Python
UTF-8
Python
false
false
1,836
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-ITSM 蓝鲸流程服务 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-ITSM 蓝鲸流程服务 is licensed under the MIT License. License for BK-ITSM 蓝鲸流程服务: ------------------------------------------...
[ "1758504262@qq.com" ]
1758504262@qq.com
7403af500b9611f0bcb4175b9bb9d30bcf1d9b47
2c872fedcdc12c89742d10c2f1c821eed0470726
/pbase/day09/jiangyi/day09/code/star_tuple_args.py
4550b18b630c2e07767613e469c246b304aaf89c
[]
no_license
zuigehulu/AID1811
581c3c7a37df9fa928bc632e4891fc9bafe69201
10cab0869875290646a9e5d815ff159d0116990e
refs/heads/master
2020-04-19T16:33:04.174841
2019-01-30T07:58:24
2019-01-30T07:58:24
168,307,918
1
0
null
null
null
null
UTF-8
Python
false
false
260
py
# star_tuple_args.py # 此示例示意星号元组形参的定义及使用 def func(*args): print("实参个数是:", len(args)) print("args=", args) func() func(1, 2, 3, 4) func(1, 2, 3, 4, 'AAA', 'BBB') func(*"ABCDEFG") # func('A', 'B', ....'G')
[ "442315617@qq.com" ]
442315617@qq.com
6a4c93792fd731bc03ed82f7304c5c032aa2b511
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/Lib/test/test_sys_setprofile.py
d5e3206a5ca3623066a7ca3957f6698bc117b0b5
[ "CC-BY-4.0", "MIT", "Python-2.0" ]
permissive
RustPython/RustPython
5ddce4a9848b9de8c041ffd2634f83c0105d3f39
b864e5da1f18897fc884180b7093df5aa170024f
refs/heads/main
2023-09-04T12:38:29.458699
2023-09-03T12:33:42
2023-09-03T12:33:42
135,201,145
15,815
1,302
MIT
2023-09-14T08:11:45
2018-05-28T19:27:01
Rust
UTF-8
Python
false
false
13,771
py
import gc import pprint import sys import unittest class TestGetProfile(unittest.TestCase): def setUp(self): sys.setprofile(None) def tearDown(self): sys.setprofile(None) def test_empty(self): self.assertIsNone(sys.getprofile()) def test_setget(self): def fn(*args): ...
[ "fanninpm@miamioh.edu" ]
fanninpm@miamioh.edu
6583307ce190d45adb72be69c75a862a44808cae
0b7b36144d95a8bd157ae6a41988f8ed37825212
/app/main/views.py
73ba2f22d21819dc095d66bf66bde95dd7882737
[ "MIT" ]
permissive
derriqo/Housemngr
562eccab8358c789efb4d32702ff1db67b66d138
a58a3cb26c1149235eba1e641e7974b9091bc86b
refs/heads/master
2022-10-02T02:07:53.741076
2019-10-01T17:32:17
2019-10-01T17:32:17
211,842,921
0
0
MIT
2022-09-16T18:10:24
2019-09-30T11:19:28
Python
UTF-8
Python
false
false
188
py
from flask import render_template, request, redirect, url_for,abort from . import main from .. import db @main.route('/') def index(): return '<h1> Welcome to Football Fantasy </h1>'
[ "aomware@gmail.com" ]
aomware@gmail.com
addd4ea5b5e6245ef28fe2a539833276daf035f7
33ff484c12f1af1eacbc52f9d29fc1ccbf839501
/highlighter/tests/models.py
eed8863f4e4f7c51a1e165bb50af4f8f5bf04e4a
[]
no_license
kaleidos/django-highlighter
7f3cdc5f2cc34109fc7f76a3d75d8e9349f8ef58
9ebbdf44134f80afa5d21dba8b17656bb1dcd18b
refs/heads/master
2021-01-01T05:31:17.115121
2012-04-03T08:12:34
2012-04-03T08:12:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
from django.db import models from ..models import HighlighterMixin class TestModel(HighlighterMixin, models.Model): name = models.CharField(max_length=10)
[ "jesus.espino@kaleidos.net" ]
jesus.espino@kaleidos.net
557edc9c7035222cbf7cee6e07099f793e688d79
abd9537f8b90a990e195ded5f9fafdcc108d2a48
/swea/mock_exam/4012/4012_cook.py
fd0ad4bcf44be47082a9cd039cc6f504a2a8f540
[]
no_license
ohdnf/algorithms
127171744631406c1d08cc2583aa569a094fa2cd
6f286753dab827facc436af4f2130f11dad2d44f
refs/heads/master
2023-08-09T11:19:56.445351
2021-08-31T13:11:46
2021-08-31T13:11:46
236,180,615
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
import sys sys.stdin = open('input.txt') def dfs(length, half, number, last): if length == half: ingr_a = [num for num in range(n) if check[num]] ingr_b = [num for num in range(n) if not check[num]] s_a = s_b = 0 for i in ingr_a: for j in ingr_a: s_a += s...
[ "jupyohong7@gmail.com" ]
jupyohong7@gmail.com
3707c7f1567fafbefb0b8258a7550cb8c220853d
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v2/model/application_key_create_attributes.py
3949ee2db31f954f975c293c1be4248ca71e08de
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
1,209
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import List, Union from datadog_api_cli...
[ "noreply@github.com" ]
DataDog.noreply@github.com
3c897fd25419ad4d43183f577c18504c7c5e3df2
22e2ef95386b10187756bc07267b57a93c480de5
/lifelines/fitters/generalized_gamma_fitter.py
a06b6f6ffe6f0e0c0a4b2eb412b9a9d990bb9c06
[ "MIT" ]
permissive
datali01/lifelines
aee0933e8119f75d2b6f61fd7c13f5441f460947
a73d441f6347332ca870bf2ec32eeeca410dc6de
refs/heads/master
2020-09-17T21:31:40.197277
2019-11-21T16:10:13
2019-11-21T16:10:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,703
py
# -*- coding: utf-8 -*- import autograd.numpy as np from autograd.numpy import exp, log from scipy.special import gammainccinv, gammaincinv from autograd_gamma import gammaincc, gammainc, gammaln, gammainccln, gammaincln from lifelines.fitters import KnownModelParametricUnivariateFitter from lifelines.utils import Cens...
[ "cam.davidson.pilon@gmail.com" ]
cam.davidson.pilon@gmail.com
f6498e8a9415ce9dee9317eb6e677f9dec3b5ac5
b96ed10d6247e22d4fa1d28bc3314bc319d3109c
/LessonSample/chapter20/other/asyncio05.py
91f35b945f53ad0ba3ea7be7089fc5f955920092
[]
no_license
13555785106/PythonPPT-01
ac1b22b9b1851f2b3ea6e4ab0a100e5f6896ee8c
40e5883f248cb342f3a7fc7ad12ba02ebde4c619
refs/heads/master
2020-04-26T16:49:59.675964
2019-03-04T07:16:21
2019-03-04T07:16:21
157,095,747
4
0
null
null
null
null
UTF-8
Python
false
false
387
py
import asyncio import time now = lambda: time.time() async def do_some_work(x): print('Waiting: ', x) await asyncio.sleep(x) return 'Done after {}s'.format(x) start = now() coroutine = do_some_work(5) loop = asyncio.get_event_loop() task = asyncio.ensure_future(coroutine) loop.run_until_complete(task)...
[ "312655424@qq.com" ]
312655424@qq.com
9bf82b3bc4c1d49d1a69bdb22c2abb305dc32057
afbc73121b15120a584f6ad36c8d8a3cca292ce7
/ostap/core/meta_info.py
04c0e39ac9125c2b3e05fc0bf3efbe23b9750acb
[ "BSD-3-Clause" ]
permissive
bopopescu/ostap
eb8ad9728685f8eb7f05b6f58dc50311e9bae53c
cd3309106ba4ae965217021fdfa775256c231874
refs/heads/master
2022-11-26T08:14:26.247014
2020-07-23T19:50:56
2020-07-23T19:50:56
282,063,115
0
0
null
2020-07-23T21:52:23
2020-07-23T21:52:23
null
UTF-8
Python
false
false
2,921
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= ## @file ostap/core/meta_info.py # Meta-info for ostap # @author Vanya BELYAEV Ivan.Belyaev@itep.ru # @date 2020-05-30 # ============================================================...
[ "ivan.belyaev@cern.ch" ]
ivan.belyaev@cern.ch
519e6d87700711e3f23e1bf1f9fd36bff5dcba4a
c67f2d0677f8870bc1d970891bbe31345ea55ce2
/zippy/lib-python/3/test/test_xmlrpc.py
38141912a12b13ff9853de20ae8673ffc410b362
[ "BSD-3-Clause" ]
permissive
securesystemslab/zippy
a5a1ecf5c688504d8d16128ce901406ffd6f32c2
ff0e84ac99442c2c55fe1d285332cfd4e185e089
refs/heads/master
2022-07-05T23:45:36.330407
2018-07-10T22:17:32
2018-07-10T22:17:32
67,824,983
324
27
null
null
null
null
UTF-8
Python
false
false
38,058
py
import base64 import datetime import sys import time import unittest import xmlrpc.client as xmlrpclib import xmlrpc.server import http.client import socket import os import re import io import contextlib from test import support try: import threading except ImportError: threading = None alist = [{'astring': ...
[ "thezhangwei@gmail.com" ]
thezhangwei@gmail.com
8fb90cc5e3227ef1bf12a65f880c8f9bbe7d52b0
f5ffd566166948c4202eb1e66bef44cf55a70033
/test/test_phot_flux_flexible.py
d58ca5c845c2950cef6472b9646d5c52e1d72a2f
[]
no_license
skyportal/skyportal_client
ed025ac6d23589238a9c133d712d4f113bbcb1c9
15514e4dfb16313e442d06f69f8477b4f0757eaa
refs/heads/master
2023-02-10T02:54:20.757570
2021-01-05T02:18:03
2021-01-05T02:18:03
326,860,562
0
1
null
null
null
null
UTF-8
Python
false
false
2,318
py
""" Fritz: SkyPortal API SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ...
[ "profjsb@gmail.com" ]
profjsb@gmail.com
d5189122d685ae031814682a14c3d3c8786830b1
cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0
/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/apply_certificate_to_host_request.py
e8163a7bb9e19d6feaa786b32d269ab6934d4c1d
[ "Apache-2.0" ]
permissive
Logan118/huaweicloud-sdk-python-v3
eca15e9b08bdccef7122e40735d444ddc958efa8
bb230c03bd00225b9f5780a56adce596e9456420
refs/heads/master
2023-07-17T14:57:50.799564
2021-08-25T10:40:43
2021-08-25T10:40:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,825
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ApplyCertificateToHostRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dic...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
335704691486d638127dd71216f4cede59e03f7d
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/datamigration/azure-mgmt-datamigration/tests/test_mgmt_datamigration.py
67c3bc341badfb608529939ecc45cd79500b70d6
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
8,855
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. #----------------------------------------------------------------------...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
1188811823b2097d9ba419acccad50b63a568c6c
b1571f4ee376d789b8094777fd81c4fb47a89cf1
/AtCoder/本番/ABC/ABC158/E.py
bd8a762c9fe3d9ded6aaf43ca778cd4976d42313
[]
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
795
py
n,p=map(int,input().split()) s=input() genL=[set() for i in range(n+1)] ans=0 def ser(l,gL): global kari for gR in genL[l+len(str(gL))]: new=str(gL)+str(gR) if new not in genL[l]: kari.add(new) ser(l,new) if p==2: for i in range(n): if int(s[i])%2==0:...
[ "onoehiroya@gmail.com" ]
onoehiroya@gmail.com
a8f730d4e441187caf281bf81f4c992510bcefa4
07bd6d166bfe69f62559d51476ac724c380f932b
/build/voxel_grid/catkin_generated/pkg.develspace.context.pc.py
3e42a10d7ebed26b56d7936684137361e4771c41
[]
no_license
Dangko/webots_differential_car
0efa45e1d729a14839e6e318da64c7f8398edd17
188fe93c2fb8d2e681b617df78b93dcdf52e09a9
refs/heads/master
2023-06-02T16:40:58.472884
2021-06-14T09:19:58
2021-06-14T09:19:58
376,771,194
1
0
null
null
null
null
UTF-8
Python
false
false
574
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/dango/dango_file/software/webots/web_con_ws/src/voxel_grid/include".split(';') if "/home/dango/dango_file/software/webots/web_con_ws/src/voxel_grid/include" != "" else [] PROJECT_CATKIN_DEPENDS =...
[ "1477055603@qq.com" ]
1477055603@qq.com
73cdad8a0fd3fff2498c0780e617c8f89bc3ef9f
c00a2490947ad10582b5d675f070ccb62b70901d
/chromium/chrome/chrome_browser.gypi
ee50df9eb301b512a6c34552c1171a4c46a786a1
[ "BSD-3-Clause" ]
permissive
teotikalki/vivaldi-source
543d0ab336fb5784eaae1904457598f95f426186
22a46f2c969f6a0b7ca239a05575d1ea2738768c
refs/heads/master
2021-01-23T01:17:34.305328
2016-04-29T20:28:18
2016-04-29T20:28:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
224,732
gypi
# Copyright 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { # All .cc, .h, .m, and .mm files under browser except for: # * tests and mocks. # * code below browser/chromeos # * code b...
[ "jason@theograys.com" ]
jason@theograys.com
646bdcab82d15a01b6f683a17f83f45d55239284
dad9579a08ff0eff8f70f87b29ae5343c969e486
/01.Knowledge-11Tensorflow与深度学习/02.代码实现-03自编码器-03双隐层自编码器.py
e38000e0641e7973d2e8acc80aa0778e79b59efd
[]
no_license
myboyliu/MachineLearning
cd3caac06d0eba49f4f67dc4d1c00277d5a78260
fa246e4e0e3841ec5e4544d585adbcbf9d60a1f8
refs/heads/master
2021-07-09T19:11:26.222674
2017-08-25T07:38:06
2017-08-25T07:38:06
104,562,647
3
0
null
2017-09-23T11:28:28
2017-09-23T11:28:27
null
UTF-8
Python
false
false
4,022
py
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import os from tensorflow.examples.tutorials.mnist import input_data os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' learning_rate = 0.01 training_epochs = 20 batch_size = 256 display_step = 1 examples_to_show = 10 # 784 -> 256 -> 128 -> 256 -> 784 n...
[ "jeffcobile@gmail.com" ]
jeffcobile@gmail.com
e732ab2d677c26b61422e604d505f98179d114f4
c1ef1f1fa94b5dbecff2ec09e94ae29a9094d82a
/greedy20210529-2.py
840eb735a1c02c147dd627e27189e254d23ad91a
[]
no_license
MONKEYZ9/algorithm
cd6039a2232615e9bd40f63e2509fddf7edcede7
4ffde1ac47294af87152ed740962db600e0b9755
refs/heads/main
2023-08-14T17:01:54.792376
2021-10-01T06:14:55
2021-10-01T06:14:55
380,917,885
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
N = int(input()) road = list(map(int, input().split())) price = list(map(int, input().split())) # 처음 도시에서는 길이 만큼 곱해서 가야해 answer = 0 answer += road[0] * price[0] # 이거는 무조건 해야해 그래야 갈 수 있어 다음도시로 # 두번째 도시에서 3번째 도시로 갈건데 이때 첫번째 도시의 기름이 더 싸면 첫번째 도시에서 넣고 아니라면 2번째 도시에서 넣어야 해 for i in range(0,N-2): if price[i] >= price[i...
[ "sangmin3285@gmail.com" ]
sangmin3285@gmail.com
61f581a5167ca23fb9265edbb4ea0f43df2bde7b
a39070a46b9223dff0246a66054da1c9fb1103d7
/edit.py
02d615d8a6ae6c0c23c4e7e652f258c7dc6aeb0a
[]
no_license
esheldon/rmweb
3230df753a3ffd566207b11cdd1ce2a066c89b0b
c7b3a3118d0d3e8bfa95186e150eb24e8a384e2b
refs/heads/master
2021-01-20T02:47:27.782744
2012-12-31T13:20:57
2012-12-31T13:20:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
#!/usr/bin/env python2.7 import rm_util import cgi print "Content-type: text/html\n\n" print fs = cgi.FieldStorage() if 'id' not in fs: print "You must send an id" else: cluster=rm_util.get_cluster(fs['id'].value) comments=cluster.data['comments'] print "<form action='update.py'>" print " Co...
[ "erin.sheldon@gmail.com" ]
erin.sheldon@gmail.com
90ff023249376fd0ec9b123e271a9a447d557f0b
d65dc6b580c1c4aea40f7709b9d7c029e26da95f
/code/default/x_tunnel/local/proxy_session.py
d5cbae5b5e0e134699941c49265faba8ee0cd89a
[ "BSD-2-Clause" ]
permissive
BigSnake1989/XX-Net
2ceb33d094e7b3477d74d042064bccc31a717a9b
23ae88c044e18ae78714a6d1e4cb35c93e713501
refs/heads/master
2021-05-07T05:51:11.582092
2017-11-22T09:07:11
2017-11-22T09:07:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,286
py
import time import json import threading import struct from xlog import getLogger xlog = getLogger("x_tunnel") import utils import base_container import encrypt import global_var as g from heroku_front.front import front as heroku_front def encrypt_data(data): if g.config.encrypt_data: return encrypt.En...
[ "xxnet.dev@gmail.com" ]
xxnet.dev@gmail.com
f12911bc745fcf648152bf6ad629fed1425de55c
d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189
/pyplusplus_dev/unittests/balanced_files_tester.py
7736ea65c0170e610cd952e7419936de5fb80240
[ "BSL-1.0" ]
permissive
gatoatigrado/pyplusplusclone
30af9065fb6ac3dcce527c79ed5151aade6a742f
a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede
refs/heads/master
2016-09-05T23:32:08.595261
2010-05-16T10:53:45
2010-05-16T10:53:45
700,369
4
2
null
null
null
null
UTF-8
Python
false
false
3,093
py
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import os import sys import unittest import autoconfig from pyplusplus import utils import fundamental_tester_base f...
[ "roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76" ]
roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76
d1a7a5adc211cd805ed7191a0ecdcf8e9bff8105
898c5364cab1d8bf6366de22753509bd021b45f3
/0x0B-python-input_output/1-number_of_lines.py
b7ada85b55aae230a07d03ce156630209b9122d4
[]
no_license
jozsa/holbertonschool-higher_level_programming
98cc071321934f221ad592a066349e0be293c865
7920933ecf983c1856930d4d3b707e230b589231
refs/heads/master
2020-04-09T10:02:42.163683
2019-05-17T02:08:41
2019-05-17T02:08:41
160,255,877
0
1
null
null
null
null
UTF-8
Python
false
false
346
py
#!/usr/bin/python3 """number_of_lines(filename="") Only one function that counts the number of lines in a file. """ def number_of_lines(filename=""): """ Counts the number of lines in a file """ count = 0 with open(filename, encoding='utf-8') as a_file: for line in a_file: co...
[ "allisonjoyweiner@gmail.com" ]
allisonjoyweiner@gmail.com
e06444cf8e5298b05056328f6ee5eb29d66bf7d7
768058e7f347231e06a28879922690c0b6870ed4
/venv/lib/python3.7/site-packages/_pytest/_code/source.py
0d27dbe3d4ef80e18875d90d44d29cb2d7f0cf0c
[]
no_license
jciech/HeisenbergSpinChains
58b4238281d8c158b11c6c22dd0da82025fd7284
e43942bbd09f6675e7e2ff277f8930dc0518d08e
refs/heads/master
2022-12-18T08:04:08.052966
2020-09-29T12:55:00
2020-09-29T12:55:00
258,476,448
0
0
null
null
null
null
UTF-8
Python
false
false
10,431
py
import ast import inspect import linecache import sys import textwrap import tokenize import warnings from ast import PyCF_ONLY_AST as _AST_FLAG from bisect import bisect_right from typing import List import py class Source: """an immutable object holding a source code fragment, possibly deindenting it. ...
[ "jan@multiply.ai" ]
jan@multiply.ai
fbf38664b6aeb77902c22fb9fd5e49a8b5bf6917
f40086079bdcb465da32bfc4c244d0a699a735e3
/informatics/series 8 advanced/chutes_and_ladders.py
2eb2423692b0ec88d07600c1bca772fdc180b0b7
[]
no_license
isk02206/python
e6dfc1e219ae3a51bde80fed75412bed98b3defe
b2fc6d1aa1155c0758883677eb2e37d9f92a4382
refs/heads/master
2022-12-06T15:14:55.264792
2020-09-02T01:02:11
2020-09-02T01:02:11
292,142,661
0
0
null
null
null
null
UTF-8
Python
false
false
3,282
py
''' Created on 2018. 11. 09 @Subject : chutes_and_ladders @Author : Son Jee Hun @Student Number : 01406444 ''' def merge(chutes, ladders): ''' >>> chutes = {98: 78, 95: 75, 93: 73, 87: 24, 64: 60, 62: 19, 56: 53, 49: 11, 47: 26, 16: 6} >>> ladders = {1: 38, 4: 14, 9: 31, 21: 42, 28: 84, 36: 44, 51: 67, 71: ...
[ "67949037+isk02206@users.noreply.github.com" ]
67949037+isk02206@users.noreply.github.com
551ac8776887783fa1cdff54f97adcdcbb9bafd9
60e4baae4d6b323b3d3b656df3a7b0ea3ca40ef2
/project/mhealth/settings/base/env.py
cd4b1ec20e8f94db1f515dccc0d5c98120d33b31
[]
no_license
Burzhun/Big-django-project
a03a61a15ee75f49324ad7ea51372b6b013d1650
1a71f974b7b5399a45862711b5f858c0d4af50d2
refs/heads/master
2020-04-11T00:16:06.211039
2018-12-11T19:13:38
2018-12-11T19:13:38
161,381,283
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
# Best place to change this env variables is mhealth/settings/local_env.py file. It loads after this one specially to # allow you manage env without touching project code. import os PRODUCTION = False DEBUG = True if not 'PRODUCTION_ENV' in os.environ else False
[ "burjunov@yandex.ru" ]
burjunov@yandex.ru
4a1b7da95a43748be5f678fbf0697b663273ff66
9311a77e41c34859742d61822c0fe29ebc9c4832
/CNNperpatient.py
51cc717ff754548b68e1ee090cb18942b17dcc53
[]
no_license
zafarali/MindReader
03d2cece21ae6eb68b3b6c6c9b5ca15dc961eb55
5953c53ccaf39af18d771bb1746e0db4b1c1385f
refs/heads/master
2016-08-08T18:42:35.119272
2015-12-12T03:01:01
2015-12-12T03:01:01
46,383,819
1
0
null
null
null
null
UTF-8
Python
false
false
3,040
py
# coding: utf-8 # In[1]: import numpy as np import matplotlib.pylab as plt from collections import Counter import IOutils import random # from neuralnetworks.templates import BasicCNN from sklearn.metrics import confusion_matrix, classification_report import theano import lasagne from lasagne import layers from lasa...
[ "zafarali.ahmed@gmail.com" ]
zafarali.ahmed@gmail.com
7860f2b73d4b109298cbbeb7a7f0656fa2092d0e
bfc25f1ad7bfe061b57cfab82aba9d0af1453491
/data/external/repositories_2to3/141822/AXA_Telematics-master/Features/modules_janto/preprocessing.py
b1c7f2a3ef65481bd9b95690d874e5924fe87eac
[ "MIT" ]
permissive
Keesiu/meta-kaggle
77d134620ebce530d183467202cf45639d9c6ff2
87de739aba2399fd31072ee81b391f9b7a63f540
refs/heads/master
2020-03-28T00:23:10.584151
2018-12-20T19:09:50
2018-12-20T19:09:50
147,406,338
0
1
null
null
null
null
UTF-8
Python
false
false
2,915
py
# -*- coding: utf-8 -*- """ (c) 2015 @author: Janto Oellrich email: joellrich@uos.de CONTENT: Contains PREPROCESSING funtions (smoothing and geometric transformations, such as flipping, rotating or normalizing north) for the AXA telematics competition. FUNCTION LIST: ...
[ "keesiu.wong@gmail.com" ]
keesiu.wong@gmail.com
9b26b607e63a2e38c64267e93358e9707ee6af33
414b21e4645117e92582fb3ad76026a10c6d00d5
/Python150Challenges/ForLoops/35-44 Challenges/Challenge37.py
800f978b639b28575f4736d3b28ef065017b9ebf
[]
no_license
srinivasskc/Python-Programming-Learning
1a8caf1a4fc602ef5b819d6168377fcfe6ba7351
4d4523473521b94f76709b204251bd4ef6ab5f1e
refs/heads/master
2022-11-14T20:10:02.453767
2020-07-07T03:58:03
2020-07-07T03:58:03
272,511,628
2
0
null
null
null
null
UTF-8
Python
false
false
160
py
# 037 Ask the user to enter their name and display each letter in their name on a separate line. name = input("Enter the name: ") for i in name: print(i)
[ "srinivas.skc30@gmail.com" ]
srinivas.skc30@gmail.com
eff9db2e8aec8065980f1bfabf32481a1f2c1323
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/EventFilter/CTPPSRawToDigi/python/totemTriggerRawToDigi_cfi.py
893588f74e999fea15317fb3bb472e5258b856d2
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
283
py
import FWCore.ParameterSet.Config as cms totemTriggerRawToDigi = cms.EDProducer("TotemTriggerRawToDigi", rawDataTag = cms.InputTag(""), # IMPORTANT: leave 0 to load the default configuration from # DataFormats/FEDRawData/interface/FEDNumbering.h fedId = cms.uint32(0) )
[ "jan.kaspar@cern.ch" ]
jan.kaspar@cern.ch
4cb512c1e2a72d3b9596c24754301fd8e1dc7aa1
4e96f383d4703ad8ee58869ed91a0c8432c8a051
/Cura/Cura/cura/Machines/ContainerTree.py
c2bfabea2c63166e448f9f586d402e2dca22939c
[ "LGPL-3.0-only", "GPL-3.0-only" ]
permissive
flight7788/3d-printing-with-moveo-1
b2dba26010c4fa31815bc1d2d0966161a8600081
7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0
refs/heads/Feature_Marlin_with_AlanBoy
2022-08-30T18:36:44.785058
2020-05-30T07:52:58
2020-05-30T07:52:58
212,583,912
0
0
MIT
2020-05-16T07:39:47
2019-10-03T13:13:01
C
UTF-8
Python
false
false
8,751
py
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from UM.Job import Job # For our background task of loading MachineNodes lazily. from UM.JobQueue import JobQueue # For our background task of loading MachineNodes lazily. from UM.Logger import Logger from UM.Settings.Con...
[ "t106360212@ntut.org.tw" ]
t106360212@ntut.org.tw
d2fd90b4ff1298aaa3f71b2a5d5add0cad963221
55647a80c8b412af9df0ba3f50595cc2f29c25e6
/res/scripts/client/tutorial/gui/Scaleform/quests/proxy.py
f41212c048c86d95640b43d82a8c6f40e7f03109
[]
no_license
cnsuhao/WOT-0.9.17-CT
0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb
d1f932d8cabaf8aa21708622e87f83c8d24d6451
refs/heads/master
2021-06-08T18:11:07.039293
2016-11-19T19:12:37
2016-11-19T19:12:37
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,417
py
# 2016.11.19 19:54:51 Střední Evropa (běžný čas) # Embedded file name: scripts/client/tutorial/gui/Scaleform/quests/proxy.py from tutorial.gui import GUI_EFFECT_NAME from tutorial.gui.Scaleform import effects_player from tutorial.gui.Scaleform.lobby.proxy import SfLobbyProxy from tutorial.gui.Scaleform.quests import se...
[ "info@webium.sk" ]
info@webium.sk
1625ec9e5cad78d1af0021988f5f3c27360cfe81
43559abbd57c4ff99b958b0bb9db85006461f16d
/366. Find Leaves of Binary Tree/366. Find Leaves of Binary Tree(AC).py
3b8c7e14a4a659f63e506e5bd0c543a440da83f6
[]
no_license
BohaoLiGithub/Leetcode
6f97e701822d2a913bca300c875ca5c8a16d509a
d87acd5481a2dbfad7288b73750e6e086650a17d
refs/heads/master
2020-04-22T18:42:49.350725
2019-04-18T00:52:19
2019-04-18T00:52:19
170,585,590
0
0
null
null
null
null
UTF-8
Python
false
false
735
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def findLeaves(self, root): """ :type root: TreeNode :rtype: List[List[int]] """ ...
[ "bli107@syr.edu" ]
bli107@syr.edu
bb8fc8af16ada048f34e6549a6d663aca7f055bc
eac88ae13e006b6771c89e92057a31b509f0bc0d
/eagle_bot/reinforcement_learning/replay/replay_handler.py
fb010a358b284442ef6c410a22529461051f58e7
[ "MIT" ]
permissive
twobackfromtheend/challenger
7c75fd8c80ee9efa7e374aac16547eec51d89154
01d131487209029df342e68075e8aae133c4e632
refs/heads/master
2020-05-04T23:32:02.312927
2019-08-12T11:01:37
2019-08-12T11:01:37
179,546,617
0
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
import random from collections import deque from typing import Deque, List import numpy as np from eagle_bot.reinforcement_learning.replay.experience import Experience, InsufficientExperiencesError class ExperienceReplayHandler: """ TODO: Look at deque: https://github.com/keras-rl/keras-rl/issues/165 ""...
[ "harry1996@gmail.com" ]
harry1996@gmail.com
8bdfb8f771f40ac6abc26ac346c80d02cc7e25dd
d1376938086c65e8b7d5d0d9618278fd8dfb1cfd
/Python/Scripts/file7.py
18860fa2a0edc53977f68c84427b5a89769bec98
[]
no_license
DataEdgeSystems/Project
a6d235b1c0800a9ffb19e6163e69f07918ebce29
09ec31b385c7be62275079a7fb1826377d861365
refs/heads/master
2022-11-20T18:39:22.850454
2020-07-17T06:46:16
2020-07-17T06:46:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
fh=open('emp.txt','r') print 'file ptr position :', fh.tell() print ' 1st 15 char :', fh.read(15) print 'file ptr position :', fh.tell() fh.seek(-9,2) #fh.seek(30,0) --> move fp 30 bytes from bof #fh.seek(- + 22,1) --> move fp 22 bytes from current pos #fh.seek(-10,2) --> move fp 30 bytes from bof print ' last ...
[ "ripattna@gmail.com" ]
ripattna@gmail.com
29e4024a76f5472a62c2d6cb55110a9547c6be88
7d5f8abc0cafdcc81cd3ade7fc288a25bc2782fd
/zimit/utils.py
b7828249b469bf5a005c9ebb89bfeae5c5c6e89e
[]
no_license
almet/zimit
53ac71e46d00b35e3c21515a232782018c1ed0d9
6f1a49d494bbd836a1e29c20a271bd692fb04be5
refs/heads/master
2021-01-17T14:26:03.167549
2016-06-21T14:14:38
2016-06-21T14:14:38
49,345,954
10
1
null
2016-01-10T11:16:43
2016-01-09T23:34:55
Python
UTF-8
Python
false
false
970
py
import os import shlex import subprocess def spawn(cmd, logfile=None): """Quick shortcut to spawn a command on the filesystem""" if logfile is not None: with open(logfile, "a+") as f: prepared_cmd = shlex.split("stdbuf -o0 %s" % cmd) process = subprocess.Popen(prepared_cmd, std...
[ "alexis@notmyidea.org" ]
alexis@notmyidea.org
0365e01b33d9e35923d5489b026e3766279d043b
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/47/usersdata/83/17073/submittedfiles/lecker.py
6e07abf9a47376d9bb689386426b68f2c120ce3f
[]
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
515
py
# -*- coding: utf-8 -*- from __future__ import division def lecker(lista) : cont=o for i in range (0,len(lista),1): n=0 if lista[i]>lista[i+n] and lista[i]>lista[i-n] : n=n+1 cont=cont+1 if cont==1 : return S else : return N la = [] lb = [] a = ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d86beed850c15a4125d857cb6e0db98590540b0a
1c7fa268ee031395806f38d52b6a7282ba5a4633
/hr_python/regex_parse/medium/ValidatePostalCode.py
2e7140f6d2f4404811572077811be950c7561ed8
[]
no_license
murugesan-narayan/hr_python
d2f562ecd2aa6c4eef4aab8363d5d040447ed727
86542342fc77cf7c95ebd08e5142186410f6385d
refs/heads/master
2022-04-12T14:59:16.293611
2020-03-24T14:25:30
2020-03-24T14:25:30
249,729,320
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
import re regex_integer_in_range = r"^[1-9][\d]{5}$" # Do not delete 'r'. regex_alternating_repetitive_digit_pair = r"(\d)(?=\d\1)" # Do not delete 'r'. if __name__ == '__main__': P = input() print((bool(re.match(regex_integer_in_range, P)) and len(re.findall(regex_alternating_repetitive_digit_p...
[ "murugesan.narayan@gmail.com" ]
murugesan.narayan@gmail.com
8b2518793c4e8ac0ba037f830c236dfbbe14a200
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/65/usersdata/188/38865/submittedfiles/investimento.py
144ae4073b1909b67cb1d357315cb6165f44d60d
[]
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
493
py
# -*- coding: utf-8 -*- from __future__ import division #COMECE SEU CODIGO AQUI v=float(input('Digite o valor do investimento:')) t=float(input('Digite o valor da taxa de crescimento anual:')) v1=v+(t*v) v2=v1+(t*v1) v3=v2+(t*v2) v4=v3+(t*v3) v5=v4+(t*v4) v6=v5+(t*v5) v7=v6+(t*v6) v8=v7+(t*v7) v9=v8+(t*v8) v10=v9+(t*v...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
5ec1ee7bdb19d74f99bf937bc26b51227ed5e769
9c718b8964d476db4728fc0cf18e24292dd8cf60
/MxOnline/apps/courses/migrations/0007_video_url.py
eb778b67fab3773e760b7adfb23e88345a338691
[]
no_license
1400720231/Django-Projects
960f9226e0f5c01628afd65b9a78e810fdeb1b83
72f96788163f7ffe76e7599966ddbfa1d2199926
refs/heads/master
2021-06-25T17:41:14.147011
2019-04-03T02:24:38
2019-04-03T02:24:38
114,955,012
1
0
null
null
null
null
UTF-8
Python
false
false
487
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-02-20 18:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0006_auto_20180220_1535'), ] operations = [ migrations.AddField(...
[ "937886362@qq.com" ]
937886362@qq.com
87f111c9190d4f0e1168bed1af78f8024c31c36c
fd717fe6ca74f6d77210cdd57a8c365d27c5bfc6
/pychron/database/records/power_map_record.py
130d5dbfa486a1f9890af0689a7ca5fca6defcc4
[ "Apache-2.0" ]
permissive
stephen-e-cox/pychron
1dea0467d904d24c8a3dd22e5b720fbccec5c0ed
681d5bfe2c13e514859479369c2bb20bdf5c19cb
refs/heads/master
2021-01-19T15:40:03.663863
2016-07-14T14:37:16
2016-07-14T14:37:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,306
py
# =============================================================================== # Copyright 2012 Jake Ross # # 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/licens...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
ec707a98e97489c8d21cc1494e91807c9ccc0da2
e8b0dcef3fda2cde71ff3a193af2524456783a24
/examples/pytorch/recommendation/rec/datasets/movielens.py
0caf1fece950170f7e74b2dfc79f859a0fcb7063
[ "Apache-2.0" ]
permissive
Menooker/dgl
79daba49407e2f113d61ba8fab0902c51993b060
170c2ed46fde29271246fe6600948b2864534ca3
refs/heads/master
2021-01-15T06:00:46.706097
2020-04-01T02:10:25
2020-04-01T02:10:25
242,896,301
3
0
Apache-2.0
2020-02-25T03:01:25
2020-02-25T03:01:24
null
UTF-8
Python
false
false
8,159
py
import pandas as pd import dgl import os import torch import numpy as np import scipy.sparse as sp import time from functools import partial from .. import randomwalk import stanfordnlp import re import tqdm import string class MovieLens(object): def __init__(self, directory): ''' directory: path t...
[ "noreply@github.com" ]
Menooker.noreply@github.com
74e2344e3bf94ca0eacd4283bbbeb33100bdf144
6caab8d886e8bd302d1994ff663cf5ccb5e11522
/MyNotes_01/Step02/4-Concurrent/day03_09/demo12_dead_lock.py
7cfadfec8a87614f6d0a798a678a98c857765851
[]
no_license
ZimingGuo/MyNotes01
7698941223c79ee754b17296b9984b731858b238
55e6681da1a9faf9c0ec618ed60f5da9ecc6beb6
refs/heads/master
2022-07-30T21:30:32.100042
2020-05-19T16:59:09
2020-05-19T16:59:09
265,254,345
0
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
# author: Ziming Guo # time: 2020/3/31 ''' demo_dead_lock: ''' from time import sleep from threading import Thread, Lock # 交易类 class Account(): def __init__(self, _id, balance, lock): # 第三个参数的意思就是要初始化一个锁对象,方便之后上锁 # 创建了一个对象,就实例化了一个用户 self.id = _id # 用户 self.balance = balance # 存款 ...
[ "guoziming99999@icloud.com" ]
guoziming99999@icloud.com
fac612177f53a4d7c75a80e5625418495ff1526b
1f813c3cd6a9d293acfbc81f198c64f816a9a95d
/build/gazebo_msgs/catkin_generated/generate_cached_setup.py
fb96ff1529bff413e751a55b32cc355d9b1ca061
[]
no_license
koteshrv/Vargi_Bots_1418
5ada79746785a9f9cc0e1d686a1dd2702c9e0f0f
6bcf843c7150c93caee2b596e0864749c51b6155
refs/heads/main
2023-01-06T03:42:53.555701
2020-11-08T17:36:59
2020-11-08T17:36:59
302,916,294
0
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
# -*- coding: utf-8 -*- from __future__ import print_function import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, ...
[ "kkotesh100@gmail.com" ]
kkotesh100@gmail.com
0da03225afbcf284ba55cf1f6e0ac7ec5f9eef7e
7933d55de7e2d3a9e78a372fa76f064f5ed5eb6f
/maths/solutions_printing.py
c9eb70fbad5598e1f5f8b71bc4e0ae58c60e772c
[]
no_license
o2edu/MathsExams
4921f6683e1d6d96aa834d5b01f30bd66522887d
8e2c0aeba6bbad52103c420747ead1dad6380408
refs/heads/master
2021-05-29T17:42:32.442055
2014-05-31T10:18:12
2014-05-31T10:18:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
import sympy def substitute(expr, var, value): latex = sympy.latex(expr) print(latex) latex = latex.replace(sympy.latex(var), sympy.latex(value)) return latex def integral_working(expr, var, l, h): left = substitute(expr, var, h) # upper bound goes on the left right = substitute(expr, var...
[ "ben.lucato@gmail.com" ]
ben.lucato@gmail.com
de58538e32e4fab5da02e44f5307d9f8381e1187
2fa05752244c2ab39c108c11ab2dc22f4f9e9ad0
/Events/models.py
21a3d293241fbf3a2f10e964028a4f94d626d2d1
[ "Apache-2.0" ]
permissive
CiganOliviu/cigan_enterprize
b88aebcb27ec97dd229e67cbb5bea3199cc8b5ce
8a4f4c06197655622ca08f92ec793add7d0be0cd
refs/heads/main
2023-03-04T05:28:11.376109
2021-02-14T20:38:29
2021-02-14T20:38:29
333,212,689
0
0
Apache-2.0
2021-02-14T20:38:29
2021-01-26T20:45:44
null
UTF-8
Python
false
false
2,284
py
from django.db import models class PastEvent(models.Model): event_name = models.CharField(max_length=200) location = models.CharField(max_length=200) space = models.CharField(max_length=200) part_of_event = models.CharField(max_length=200, blank=True) introduction = models.CharField(max_length=30...
[ "ciganoliviudavid@gmail.com" ]
ciganoliviudavid@gmail.com
7681fbbf18fcd73148a18090ee3dc623e67524c3
999f3f3da1cb70cb5872f99a09d65d7c4df71cf7
/src/data/422.py
c9f4348a402a94ccc58fe6c9159dfcb7a2658c86
[ "MIT" ]
permissive
NULLCT/LOMC
0f0d1f01cce1d5633e239d411565ac7f0c687955
79a16474a8f21310e0fb47e536d527dd5dc6d655
refs/heads/main
2023-07-27T17:03:46.703022
2021-09-04T08:58:45
2021-09-04T08:58:45
396,290,713
0
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
import sys def input(): return sys.stdin.readline().rstrip() from collections import deque n, q = map(int, input().split()) # 頂点数と辺数 # グラフ入力受け取り (ここでは無向グラフを想定) graph = [[] for _ in range(n)] for i in range(n - 1): a, b = map(int, input().split()) a -= 1 b -= 1 graph[a].append(b) graph[b]....
[ "cockatiel.u10@gmail.com" ]
cockatiel.u10@gmail.com
b7cd2b10ebf6dfaa8b82fd393ae5c7eb222e452b
e76017111250067edf5fb563cf2e483badc68ece
/chap2/transforms.py
ca28ed1d6cdeb350b8ffd3b54badf1f87a155ea3
[]
no_license
jaringson/Flight_Dynamics
f64108ec816e9606bcdddb0b5814992182e8b3ed
abaf667e154e9005c5160c68cdcb48a882e0c48e
refs/heads/master
2021-05-11T16:03:45.597431
2018-04-13T20:53:28
2018-04-13T20:53:28
117,749,609
0
0
null
null
null
null
UTF-8
Python
false
false
3,802
py
from numpy import pi, sin import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # import matplotlib.animation as animation from matplotlib.widgets import Slider def draw_plane_nwu(plane_in): R = np.array([[1,0,0], [0,-1,0], [0,0,-1]]) p...
[ "jaringson@gmail.com" ]
jaringson@gmail.com
840c7e4b607bbbfba8780d7200c113b9d8d33362
95e8ff5910648df82a1d6dd538b535142be96162
/SnakeGame/Map.py
3583ecf10a0df739986225f8835032f30dc5e52d
[]
no_license
visittor/RL
862d60821a8a52a532ce8ec742e67ef79c772545
d110e070f9dd0b78cd61281774c567513aa984e2
refs/heads/master
2021-07-02T19:24:14.521192
2020-10-31T14:42:02
2020-10-31T14:42:02
221,648,260
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
class Map( object ): def __init__( self, width: int, height: int ): self.__width = width self.__height = height @property def width( self ): return self.__width @property def height( self ): return self.__height
[ "chattarin.rodpon@gmail.com" ]
chattarin.rodpon@gmail.com
7d298047fa3855b4c60842492f353cf8185c2917
94872a7ee1f7cd64a59e59c2092b18f48954d9eb
/IlijaCollector/cleanup.py
cdfbbc2987a069c52d943697dadd948707fcac53
[]
no_license
ivukotic/FAXtools
106957227a7033c6eaaeca29e30f859307c7ebbb
0b9068f0b82f03c5422f7f66615e9d4083d77388
refs/heads/master
2020-04-06T03:33:51.797364
2016-11-16T16:45:05
2016-11-16T16:45:05
6,708,845
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
#!/usr/bin/python from datetime import datetime import xml.etree.ElementTree as ET @outputSchema("CLEANED:tuple(SRC:chararray,SITE:chararray,TOS:long,TOD:long,TOE:long,IN:long,OUT:long)") def XMLtoNTUP(xmlInput): ntup = [] root = ET.fromstring(xmlInput) SRC=root.attrib['src'] # server name SITE=root....
[ "ivukotic@cern.ch" ]
ivukotic@cern.ch
bf1e5321014ae815ae54a903c7dbd9492dc21a4b
628ec414b7807fc50de67345361e41cc68ba3720
/mayan/apps/mailer/links.py
ff70be2f8437a595c00305f37b45fb2a84c475bf
[ "Apache-2.0" ]
permissive
TestingCodeReview/Mayan-EDMS
aafe144424ffa8128a4ff7cee24d91bf1e1f2750
d493ec34b2f93244e32e1a2a4e6cda4501d3cf4e
refs/heads/master
2020-05-27T23:34:44.118503
2019-04-05T02:04:18
2019-04-05T02:04:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,503
py
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from navigation import Link from .icons import ( icon_system_mailer_error_log, icon_user_mailer_create, icon_user_mailer_list, icon_user_mailer_setup ) from .permissions import ( permission_mailing_link, permi...
[ "roberto.rosario.gonzalez@gmail.com" ]
roberto.rosario.gonzalez@gmail.com
89a57b2761ac7eb2700a21a0db54eb81630a8f82
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/688.py
93210bdda7e5caabc402c9844a34c004ac9fb43c
[]
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
531
py
def solve(a, A, b, B): s = set(A[a-1]).intersection(set(B[b-1])) if len(s) == 1: return str(list(s)[0]) if len(s) == 0: return "Volunteer cheated!" if len(s) > 1: return "Bad magician!" def main(): T = int(raw_input()) for t in xrange(1, T+1): a = int(raw_input()) A = [map(int, raw_input()...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8b349f526cd1c606c03ddd508c7189b821aade82
9e5353ba6e50f77a40a765bd494d8bfb990c8922
/scratch/socket_test.py
df65b498efcb3ac969bc64dd918a76b336d66797
[]
no_license
admiralbolt/stream-stuff
d9e24f1d78ac142416525b9b42cc53ef0bc4712a
29cfa96f9e8d40c531362aced47ebacadccbe759
refs/heads/master
2023-08-05T00:02:17.812991
2021-09-23T05:47:16
2021-09-23T05:47:16
261,022,447
7
0
null
null
null
null
UTF-8
Python
false
false
795
py
import asyncio import sys import os import time import websockets sys.path.append(os.path.realpath(os.path.join( os.getcwd(), "..", "stream_backend/api/utils" ))) sys.path.append(os.path.realpath(os.path.join( os.getcwd(), "..", "stream_backend" ))) from websocket_client import WebSocke...
[ "aviknecht@gmail.com" ]
aviknecht@gmail.com
482f60993cd2d2f898df61e446cc53e2b0480855
17162e5806fc0b581cd93cd5ac3c1aedae4f565b
/ax/models/torch_base.py
070c99086889eb75136e5b5b430d6db9c7934f8a
[ "MIT" ]
permissive
rbafna6507/Ax
2798df8c7cacded3e42782d15335044253f70ad5
9953f562b22039d76d1e4c45b3375560e13d228e
refs/heads/master
2023-06-15T00:12:41.466401
2021-07-01T21:58:02
2021-07-01T21:59:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,944
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Callable, Dict, List, Optional, Tuple import torch from ax.core.search_space import SearchSpaceDige...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
cf76244aa8119be2bf274ae71065718abe22c646
f5e7e89254b2632e96ca7f50c96e3e0a89bceb0f
/manage.py
330cb85853dc1fbea7c398ee1aeb9277c214b8cf
[]
no_license
djs2082/SiemensProject
afb4fe67750586fc10a14b48ee0fc116af6e23c0
1df41799bef6a4900cb89358fb0f908936899e59
refs/heads/master
2022-12-24T11:14:01.863433
2020-10-05T02:18:15
2020-10-05T02:18:15
301,264,390
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'siemens.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Import...
[ "dilipjoshis98@gmail.com" ]
dilipjoshis98@gmail.com
40bf64c084dd22ce89891bfea90ef07df3538dbf
e3c8f786d09e311d6ea1cab50edde040bf1ea988
/Incident-Response/Tools/dfirtrack/dfirtrack_main/tests/system_importer/test_system_importer_file_csv_forms.py
b37856c7b92f51a0a17dc34c1510029c05cfcafc
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
foss2cyber/Incident-Playbook
d1add8aec6e28a19e515754c6ce2e524d67f368e
a379a134c0c5af14df4ed2afa066c1626506b754
refs/heads/main
2023-06-07T09:16:27.876561
2021-07-07T03:48:54
2021-07-07T03:48:54
384,988,036
1
0
MIT
2021-07-11T15:45:31
2021-07-11T15:45:31
null
UTF-8
Python
false
false
1,512
py
from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from dfirtrack_main.importer.file.csv_importer_forms import SystemImporterFileCsvForm class SystemImporterFileCsvFormTestCase(TestCase): """ system importer file CSV form tests """ def test_system_importer_file_csv...
[ "a.songer@protonmail.com" ]
a.songer@protonmail.com
63a46a45858243d9ebeee22d91f29779a70a5139
dfcb65de02953afaac24cc926ee32fcdede1ac21
/src/pyrin/utilities/string/normalizer/interface.py
2ce7bc744c3717bbd93b06339e34ad637f686f5b
[ "BSD-3-Clause" ]
permissive
mononobi/pyrin
031d0c38da945b76b07ea100554ffc7f8081b05e
9d4776498225de4f3d16a4600b5b19212abe8562
refs/heads/master
2023-08-31T03:56:44.700142
2023-08-20T22:20:06
2023-08-20T22:20:06
185,481,041
20
8
null
null
null
null
UTF-8
Python
false
false
1,585
py
# -*- coding: utf-8 -*- """ string normalizer interface module. """ from abc import abstractmethod from threading import Lock from pyrin.core.structs import CoreObject, MultiSingletonMeta from pyrin.core.exceptions import CoreNotImplementedError class StringNormalizerSingletonMeta(MultiSingletonMeta): """ s...
[ "mohamadnobakht@gmail.com" ]
mohamadnobakht@gmail.com
d5b2de6fa50598faa7966662ac5ed602f5303daa
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py
162c40fb7e0725dfc7072eec2fbc63a3639f0451
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,716
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" ]
Azure.noreply@github.com
4e983363b19bdb916fd76195d601d24d9e9ee54c
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1483485_0/Python/laurentr/translate.py
a0ba9e164e94e4f8cb12d6e20191bbc65c9ef4c7
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
647
py
#!/usr/bin/python from string import maketrans googlerese = "qzejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv" english = "zqour language is impossible to understand there are twenty six factorial possibilities so it is okay if you wan...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
601d1d090416b33f87346019500e4e1cadd9f83c
ae5208474f3fc2a5f506e8bf0e8cdc62591f6f19
/tests/test_softclip_clusterfinder.py
1a655b8da68ef5dfc56fc7052ab010a253d4e273
[ "MIT" ]
permissive
andurill/readtagger
e32ca519f955d4d80c0d4561e6ecb1e591be7458
127ec08c00c47d03dfb8e95b628c381d3e29a6c8
refs/heads/master
2020-04-27T19:58:15.549676
2019-03-29T16:18:23
2019-03-29T16:40:41
174,641,225
0
0
null
2019-03-09T03:00:12
2019-03-09T03:00:11
null
UTF-8
Python
false
false
788
py
from readtagger.find_softclip_clusters import ( SoftClipClusterFinder, ) WRONG_TSD = 'wrong_tsd.bam' MULTI_H6 = 'multisample_h6.bam' def test_softclip_clusterfinder(datadir_copy, tmpdir): # noqa: D103, F811 input_path = str(datadir_copy[WRONG_TSD]) gff_out = tmpdir.join('out.gff').strpath clusterfin...
[ "m.vandenbeek@gmail.com" ]
m.vandenbeek@gmail.com
2d965d93ee20271285cb99c1135e2c911f7b5092
8b42c2c1fc8481f52e0c75d69cdd832029533a01
/src/stump_data_pipeline/util/string.py
b8bd768816efe4a6f54917e1d762e51e27c4349b
[ "MIT" ]
permissive
stump-vote/stump-data-pipeline
33e59e0e22ede06626421a2da7d52650b23294b0
7a8a27577f20cc4f4bdcbf20fe9664b69efa6953
refs/heads/master
2022-12-24T05:45:49.923308
2020-04-18T21:57:47
2020-04-18T21:57:47
253,142,064
0
1
MIT
2022-12-08T09:33:08
2020-04-05T02:44:15
Python
UTF-8
Python
false
false
196
py
def camel_to_snake(s): return s[0] + "".join( [ "_" + s[i].lower() if s[i - 1].islower() and s[i].isupper() else s[i] for i in range(1, len(s)) ] )
[ "galbwe92@gmail.com" ]
galbwe92@gmail.com
90686270cec5374b3b24720cb1ca17eea5d31799
9acd4d3abca1058dade7771403e1eb9b7436f842
/Plugins/Modules/importlib_resources/readers.py
19450f461c8d58aec6de6bb92e55cd833af11c1d
[]
no_license
candy-kk/FrameScan
900595c00e329200c792a7edd418e2e1cef1e539
e4cfa0e6d0c457d14f7177c78b653b923184061a
refs/heads/master
2023-05-10T15:45:46.565422
2023-04-12T04:56:15
2023-04-12T04:56:15
263,955,799
0
0
null
2020-05-14T15:40:27
2020-05-14T15:40:26
null
UTF-8
Python
false
false
3,669
py
import collections import pathlib import operator from . import abc from ._itertools import unique_everseen from ._compat import ZipPath def remove_duplicates(items): return iter(collections.OrderedDict.fromkeys(items)) class FileReader(abc.TraversableResources): def __init__(self, loader): self.p...
[ "qianxiao996@126.com" ]
qianxiao996@126.com
9f40d1c70876a29a78325e983cb7fc89dcffd860
c9094a4ed256260bc026514a00f93f0b09a5d60c
/tests/components/abode/test_cover.py
bb1b8fceffb4d6028a08e4dce81c2148a8035c1a
[ "Apache-2.0" ]
permissive
turbokongen/home-assistant
824bc4704906ec0057f3ebd6d92788e096431f56
4ab0151fb1cbefb31def23ba850e197da0a5027f
refs/heads/dev
2023-03-12T05:49:44.508713
2021-02-17T14:06:16
2021-02-17T14:06:16
50,231,140
4
1
Apache-2.0
2023-02-22T06:14:30
2016-01-23T08:55:09
Python
UTF-8
Python
false
false
2,112
py
"""Tests for the Abode cover device.""" from unittest.mock import patch from homeassistant.components.abode import ATTR_DEVICE_ID from homeassistant.components.cover import DOMAIN as COVER_DOMAIN from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_FRIENDLY_NAME, SERVICE_CLOSE_COVER, SERVICE_OPEN_COV...
[ "noreply@github.com" ]
turbokongen.noreply@github.com
ac148293cc34566d29a0aabb1f1be353fc280f07
2aba62d66c2c622bdc148cef451da76cae5fd76c
/exercise/learn_python_dm2039/ch27/ch27_8.py
47b5afb38beeb7cebb5ce67f0307e4f8d7ff2485
[]
no_license
NTUT-109AB8011/crawler
6a76de2ab1848ebc8365e071e76c08ca7348be62
a703ec741b48d3af615a757fed7607b1f8eb66a6
refs/heads/master
2023-03-26T22:39:59.527175
2021-03-30T03:29:22
2021-03-30T03:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
# ch27_8.py import PyPDF2 pdfObj = open('travel.pdf','rb') pdfRd = PyPDF2.PdfFileReader(pdfObj) pdfWr = PyPDF2.PdfFileWriter() # 新的PDF物件 for pageNum in range(pdfRd.numPages): pdfWr.addPage(pdfRd.getPage(pageNum)) # 一次將一頁放入新的PDF物件 pdfWr.encrypt('deepstone') # 執行加密 encryp...
[ "terranandes@gmail.com" ]
terranandes@gmail.com
61f0993386e6185701397450a63a17faaa724432
04cd80564d67e3e946ec66fd80e95b858693eae8
/backend/home/models.py
0b984ee292c699d3ac7c48b92354b8e56caff465
[]
no_license
crowdbotics-apps/new-rn-app-dev-1106
3307dd21fc0605bd9f471367faca97d6da6d77d4
8948a5b8b52198b55ce24b6e60a1c9e24293056a
refs/heads/master
2023-01-25T01:36:41.979381
2019-12-02T21:11:21
2019-12-02T21:11:21
221,566,041
0
0
null
2023-01-24T00:51:39
2019-11-13T22:47:04
JavaScript
UTF-8
Python
false
false
558
py
from django.db import models # Create your models here. from django.db import models class CustomText(models.Model): title = models.CharField(max_length=150,) def __str__(self): return self.title @property def api(self): return f"/api/v1/customtext/{self.id}/" @property de...
[ "team@crowdbotics.com" ]
team@crowdbotics.com