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
378ea714e209d6c5672a433a408cfb3c7ae34d93
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02536/s373980977.py
6ff28363fe4056683fdd331524dbb4a7e04042e3
[]
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
1,120
py
def main(): def find(target): if parent[target] < 0: return target else: parent[target] = find(parent[target]) return parent[target] def is_same(x, y): return find(x) == find(y) def union(x, y): root_x = find(x) root_y = find(y) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0bff5d925eabd40deb4c7de2c92931e939a44306
89acc97d24548e0393201151975bf7e262949fcb
/examples/embed.py
32d7d2052e0058bbedbf9feaf377e1606293d8b3
[]
no_license
FrankWork/tf-tutorials
40b15cc35379ecc03a9f2de1015585c43e5ecc3e
bb698f37fc9a3baa5f8e3cddc523d11872794e0f
refs/heads/master
2022-10-09T21:30:53.851685
2018-09-13T06:34:16
2018-09-13T06:34:16
82,744,146
1
1
null
2022-10-01T07:13:11
2017-02-22T01:00:40
Python
UTF-8
Python
false
false
619
py
import tensorflow as tf import numpy as np vocab_size = 5 embed_size = 3 with tf.Graph().as_default(), tf.Session() as sess: # unk = tf.get_variable("unk", shape=[1, embed_size], # dtype=tf.float32, initializer=tf.ones_initializer()) # embed = [unk] # embed.append(tf.convert_to_tensor(np.zeros((vocab_siz...
[ "lzh00776@163.com" ]
lzh00776@163.com
2cd05f45755b2cbdc09fb9ab6925cbcc9782dfc8
6c7355ae404490d0ff26c4ec925384242b7e9067
/django introduction/demo/migrations/0004_auto_20200820_1622.py
711cb98804700c2496efc2395cdbf97aa81b3e14
[]
no_license
mahidulmoon/udemy-fullstack-practice
7de8946a97224e554b97c490d18e71b0dc969e08
e0f9ddd2b4dd3fa5ad486d92b7c9bdac8c77f05f
refs/heads/master
2022-12-12T01:12:56.188124
2020-08-30T17:04:51
2020-08-30T17:04:51
288,985,619
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
# Generated by Django 3.0.6 on 2020-08-20 19:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('demo', '0003_auto_20200820_1147'), ] operations = [ migrations.CreateModel( name='BookNumber', ...
[ "mahidulmoon@gmail.com" ]
mahidulmoon@gmail.com
7bb0b5eb5e3c901c314723c3cb2459ec0ae664d1
66b3d81d66491bf6c488f19896661eb7d99a0535
/src/sample.py
86ab8a34897a0d19f96b760eba326834ca5fe11e
[ "LicenseRef-scancode-other-permissive", "MIT-Modern-Variant", "LicenseRef-scancode-unknown-license-reference" ]
permissive
quminzi/harfbuzz
fa5597ce6619d1ca86c0c86b9099e558872e8b98
2cd5323531dcd800549b2cb1cb51d708e72ab2d8
refs/heads/master
2020-04-06T03:44:34.844047
2015-01-07T03:16:38
2015-01-07T03:16:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function import sys from gi.repository import HarfBuzz as hb from gi.repository import GLib # Python 2/3 compatibility try: unicode except NameError: unicode = str def tounicode(s, encoding='utf-8'): if not isinstance(s, unicode): return s.d...
[ "behdad@behdad.org" ]
behdad@behdad.org
f7e85d419b45b467ec0f9ecb8344fa2b19b9e103
62922a76e40003f3d3a7d02282853f9a2b76c6fc
/NLP/nltk1.py
75d047d7cba31598635ee4accf293af060a56548
[]
no_license
cchangcs/ai_learning_record
a7d0d9c7fcdc1e97d8869aa7e63b535f8cf62df2
235a90ff5fe0205334376a927d462b8ae64e4e70
refs/heads/master
2020-04-01T16:59:31.203223
2018-11-21T11:12:34
2018-11-21T11:12:34
153,408,023
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
import nltk import jieba raw = open('liangjian.TXT', 'rb').read() # jieba.lcut()与jieba.cut()的区别在于: # jieba.cut()返回一个可迭代的generator,可以使用for循环获得粉刺后得到的每一个词语 # jieba.lcut()直接返回list text = nltk.text.Text(jieba.lcut(raw)) # 显示出现的上下文 print(text.concordance(u'驻岛')) # 对同义词的使用习惯,显示words出现的相同模式 print(text.common_contexts(['小日本'...
[ "752340690@qq.com" ]
752340690@qq.com
d16c1374c115f76767b9316071a5126edd9b63bb
bad85cd8d547a071baf4b6590f7e81d13ef1ec0d
/assistant/weblink_channel/migrations/0019_auto_20200819_0907.py
c43e45d76cfb514f560bbdcbba6e6be45084f979
[ "MIT" ]
permissive
kapiak/ware_prod
92e11671059642e14219d5aa8334e0564403db77
ae61256890834c434d2e38cc2ccacf00b638665a
refs/heads/master
2023-01-06T04:36:43.173093
2020-09-21T04:06:51
2020-09-21T04:06:51
310,320,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
# Generated by Django 3.1 on 2020-08-19 09:07 from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('orders', '0003_auto_20200813_0326'), ('products', '0004_auto_20200813_0203'), ('web...
[ "hamadeh.basel@gmail.com" ]
hamadeh.basel@gmail.com
a7802d009966a5c9860b3f8685852ec97a59fc37
3efa9b57670d318b006d5eec837595683a7cb751
/run_tests.py
3601df35ca4471c85f461ad30e540d264eb03275
[]
no_license
Erotemic/supersetup
c76d56eeb1e0a7322604510f8bb27c8faff6d593
ab2b75be470b6db524acd74fc6e8235f1ab6f522
refs/heads/main
2023-08-28T00:27:25.517794
2021-11-05T20:24:16
2021-11-05T20:24:16
376,892,092
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': import pytest import sys package_name = 'supersetup' pytest_args = [ '--cov-config', '.coveragerc', '--cov-report', 'html', '--cov-report', 'term', '--xdoctest', '--cov=' + package_name, ...
[ "erotemic@gmail.com" ]
erotemic@gmail.com
1950318d50fddf94d54003132392554f9c5b0dac
75e24fc71cf0833bb6040fa5037a0523c67d4581
/nlplingo/tasks/sequence/bpjson.py
24262871b860357be3a865693a02f463871edd05
[ "Apache-2.0" ]
permissive
BBN-E/nlplingo
53d5ff2aa17d03a1c6db8afc8ed2b0cf683b1c55
32ff17b1320937faa3d3ebe727032f4b3e7a353d
refs/heads/main
2022-12-19T19:28:11.666850
2020-10-09T01:16:32
2020-10-09T01:16:32
302,090,268
3
1
null
null
null
null
UTF-8
Python
false
false
3,582
py
def document_prediction_to_bp_json(documents, corpus_id): """ :type document: list[DocumentPrediction] """ bp = dict() bp['corpus-id'] = corpus_id bp['format-type'] = 'bp-corpus' bp['format-version'] = 'v8f' bp['entries'] = dict() for document in documents: for sentence in ...
[ "hqiu@bbn.com" ]
hqiu@bbn.com
69c168177c43574cbd853f4f8cc6a2858db2c7c0
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/wordy/2cb74d70ed0f4ca582f53ed59ded5843.py
780680aef39b375639045d1d0ccfbfb865385441
[]
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
1,867
py
def calculate(s): # Assume we have the 'What is..' opening s = s.strip('What is ') # Rather than tokenizing the 'by' following multiplied # or divided, let's just remove it. The phrase won't # lose any cdetail for computation. for each in [' by',' to the',' power','th','nd','st','rd'...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
b017ebc4063d176c60cd9d5d47c2fd34455ecfe4
2e996d6870424205bc6af7dabe8685be9b7f1e56
/code/processing/20181219_r3_O1O3_IND_titration_flow/processing.py
4c382b4d6b125f48bd4b3786e5fec98e64c5c186
[ "CC-BY-4.0", "MIT" ]
permissive
minghao2016/mwc_mutants
fd705d44e57e3b2370d15467f31af0ee3945dcc2
0f89b3920c6f7a8956f48874615fd1977891e33c
refs/heads/master
2023-03-25T03:56:33.199379
2020-06-26T20:09:00
2020-06-26T20:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,121
py
import numpy as np import pandas as pd import glob import imp import sys sys.path.insert(0, '../../../') import mut.flow # Define the experiment parameters DATE = 20181219 RUN_NO = 3 USERNAME = 'gchure' CLASS = 'IND' gating_fraction = 0.4 # Load all files. files = glob.glob('../../../data/flow/csv/{0}*_r{1}*.csv'.for...
[ "gchure@caltech.edu" ]
gchure@caltech.edu
2f719719bb503926708f3f1e7b6dc163f7417df6
8ea2acd4b2b15f5edd4608dfc20cb6fed49995cd
/docs/sphinx/rest_substitutions/snippets/python/converted/wx.DataObjectComposite.1.py
288e6c8a0d5e5757a5ff188f805efc25fcd8ecea
[]
no_license
timechild/Phoenix
cbace6e93f69eaa5f998ff7861dc8b763fe7eef7
2c2d44f3750d01692a99f96f65d8d70f39174528
refs/heads/master
2021-06-27T04:26:52.037016
2017-09-15T04:48:42
2017-09-15T04:48:42
103,706,741
1
0
null
2017-09-15T22:31:21
2017-09-15T22:31:21
null
UTF-8
Python
false
false
1,068
py
def MyDropTarget(self): dataobj = wx.DataObjectComposite() dataobj.Add(wx.BitmapDataObject(), True) dataobj.Add(wx.FileDataObject()) self.SetDataObject(dataobj) def OnData(self, x, y, defaultDragResult): dragResult = wx.DropTarget.OnData(x...
[ "robin@alldunn.com" ]
robin@alldunn.com
63a26d8b55aaeaa632f4571a62a47a7c52bc529d
61b87099017a2456c5c7b733a1c6559b988e4ebe
/user_portrait/cron/flow5/check_process.py
d17e151fb5e3e86b84d0aff6ae9cc34a1b0b0a2e
[]
no_license
zhuty16/user_portrait
4fc4cc08e550864ebcfa3eef200127a94f07043b
a5e8ea3d28316e0d8822f92951462aad5c3d2355
refs/heads/master
2021-05-29T07:05:58.520759
2015-08-08T13:07:50
2015-08-08T13:07:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
# -*- coding:utf-8 -*- import subprocess import sys import os import time def check(p_name): cmd = 'ps -ef|grep %s|grep -v "grep"' % p_name p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) if p.wait() == 0: val = p.stdout.read() print val if p_name in val: ...
[ "1257819385@qq.com" ]
1257819385@qq.com
fe3840957fde644b7fc61ad6d81141e5c485844f
0c9e35012baf61ee678bc719588b8cb2ccbe449e
/product/migrations/0078_locationstudio.py
c35d80b4b58d4926bd6221b180331d428b08a63c
[]
no_license
rickyakilimali/approeco
6f0f62d57b6e5361b5c5dd473038f2999bac1413
fd96ca6d70dabf20668d2a582c67e5d409a4a097
refs/heads/master
2018-09-21T12:44:27.414394
2018-06-06T16:35:40
2018-06-06T16:35:40
113,836,591
0
0
null
null
null
null
UTF-8
Python
false
false
2,185
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-31 12:51 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
[ "ricky.akilimali@approeco.net" ]
ricky.akilimali@approeco.net
0c952a070f362f63b5390ebbb68b549f1f653ea8
29e08aa28f26e73358c6b8f2f309c216dcf4400b
/4/openstack-dashboard/openstack_dashboard/dashboards/admin/metering/tabs.py
40bca2fb36973361822388acf18fa774bb0720fd
[]
no_license
TsinghuaCloud/TsinghuaCloud2.0-gui
fefe76318fc21ebf56f90f7fac81f4c273f1f6b6
4c91ccc048b846037ab281f8f62221f45e8edf43
refs/heads/master
2021-01-17T07:01:25.125829
2016-04-18T15:41:58
2016-04-18T15:41:58
39,073,412
2
1
null
null
null
null
UTF-8
Python
false
false
4,154
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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...
[ "root@controller.(none)" ]
root@controller.(none)
075416780ca0fd70d872b7a9401baae8344ab08a
156d6c4638773e5af6027b10336f60cca9a23252
/src/ros_main.py
57eabd65f11ea48dbd012d4adbe9913f69c1d2f8
[ "MIT" ]
permissive
lijh1024/ros-RandLA-Net
6f5d9a5095b97466acccc1bffc1dfdb9371ce4b8
5f15a6687bdced16615f7215fc1aa9ffacbc0ad2
refs/heads/master
2023-03-17T07:41:08.353403
2020-08-24T02:47:56
2020-08-24T02:47:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
#!/usr/bin/env python from __future__ import print_function import roslib roslib.load_manifest('ros_randla_net') import sys import rospy from ros_node import InferenceNode def main(args): rospy.init_node('~', anonymous=True) node = InferenceNode() try: rospy.spin() except KeyboardInterrupt...
[ "xxdsox@gmail.com" ]
xxdsox@gmail.com
feba3d89953b0b88ad4f1147481b481a8e68b566
dc9865587582f65e5be010a8a831972845c8dbb4
/django_mri/utils/compression.py
50991175ab3b0cce9db71e8c9035155fcb07b45f
[ "Apache-2.0" ]
permissive
TheLabbingProject/django_mri
d31bd15613c82a55e2a42eba1fa3617e952e8b72
5b5ca1b119144d01e526825d2b2a2b87541b4d4a
refs/heads/master
2023-04-07T03:22:09.366540
2023-03-29T08:18:01
2023-03-29T08:18:01
205,411,473
7
2
Apache-2.0
2023-02-17T08:22:53
2019-08-30T15:42:45
Python
UTF-8
Python
false
false
2,131
py
""" Definition of the :func:`~django_mri.utils.compression.compress` and :func:`~django_mri.utils.compression.uncompress` utility functions. """ import gzip import shutil from pathlib import Path def uncompress( source: Path, destination: Path = None, keep_source: bool = True ) -> Path: """ Uncompresses ...
[ "z.baratz@gmail.com" ]
z.baratz@gmail.com
c6b6ef9cc4eb38a80c21d9622919755f9d0305b4
5e382a50c521e4cd874ed4e94799e5ef062994a1
/services/web/server/src/simcore_service_webserver/rest.py
a9b29a0b75d27657ed565de0e4f3a730bc284f99
[ "MIT" ]
permissive
KZzizzle/osparc-simcore
71103bcfb81d6ea90e0ac9529e8f08568685166c
981bc8d193f3f5d507e3225f857e0308c339e163
refs/heads/master
2021-05-25T08:46:52.704734
2020-10-07T14:07:34
2020-10-07T14:07:34
253,747,491
0
0
MIT
2020-04-07T09:29:23
2020-04-07T09:29:22
null
UTF-8
Python
false
false
3,270
py
""" Restful API - Loads and validates openapi specifications (oas) - Adds check and diagnostic routes - Activates middlewares """ import logging from pathlib import Path from typing import Optional import openapi_core import yaml from aiohttp import web from aiohttp_swagger import setup_swagger from open...
[ "noreply@github.com" ]
KZzizzle.noreply@github.com
c45b64bfb7dc8d638eb42afda514c9af33168a82
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/4549962f8535c6892637c74c8c7dd3f8953a1678-<compare_rules>-bug.py
064c8abad58ff66bf4f274985b7d40b35b3c1717
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,130
py
def compare_rules(self): '\n\n :return:\n ' rules_to_modify = [] rules_to_delete = [] rules_to_add = deepcopy(self.rules) for current_rule in self.current_rules: current_rule_passed_to_module = False for new_rule in self.rules[:]: if (current_rule['Priority'...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
968b4a3eb22447b3acbffbd207b2a8cff46648d8
c7b4baa2779a0fc02e363f07c88b4d1d8cc33ffe
/gahtc/website/migrations/0034_merge.py
a748bb606b00e44de2215f0d021cbbdb0548dd72
[]
no_license
NiJeLorg/GAHTC
6d5c8b2d4b9244c8874ad60c16cd7d55a3535075
8ba3360f6e2a8ad0b937a60c3c022eaac4a7cd46
refs/heads/master
2022-12-08T19:26:05.800635
2018-06-07T02:31:43
2018-06-07T02:31:43
41,111,268
2
0
null
2022-11-22T01:43:36
2015-08-20T18:07:02
HTML
UTF-8
Python
false
false
295
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('website', '0032_auto_20161108_0210'), ('website', '0033_profile_verified'), ] operations = [ ]
[ "jd@nijel.org" ]
jd@nijel.org
5a4893383d5c402e74ad89801720feac3f460235
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=60/params.py
cb30c863dd706689a5cbcad57cb8e6da369c00fe
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
{'cpus': 4, 'duration': 30, 'final_util': '3.636000', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '1', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'RUN', 'trial': 60, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
f53273e4fb7d5bfa568073ebd17ceb3d4f151c7b
9b4e80a2dc6a660a33e3599515100a172038f922
/python/HI/dijet_analysis/pp/Pythia6_Dijet250_pp_TuneZ2_5020GeV_cff.py
e1c952c1ed897b630e420d7910bef5bc8c0f8c8f
[]
no_license
Jelov/genproductions
9013901ebcc58e6cfd13c69a52692dfc1994e280
c65eab700fd6026ebec068d4b90366cc1387e51b
refs/heads/master
2021-01-21T09:29:16.399045
2015-12-07T16:19:22
2015-12-07T16:19:22
48,558,617
0
0
null
2015-12-24T22:45:32
2015-12-24T22:45:32
null
UTF-8
Python
false
false
1,701
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pyquen2015Settings_cff import * generator = cms.EDFilter("PyquenGeneratorFilter", collisionParameters5020GeV, qgpParameters, pyquenParameters, doQuench = cms.bool(Fa...
[ "yetkin.yilmaz@cern.ch" ]
yetkin.yilmaz@cern.ch
39f57f94034ec65afb9a31d785b493155269c325
70fa6468c768d4ec9b4b14fc94fa785da557f1b5
/lib/googlecloudsdk/core/resource/yaml_printer.py
541fac881b57f5f76872b5fb01b72c1a324f928a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kylewuolle/google-cloud-sdk
d43286ef646aec053ecd7eb58566ab2075e04e76
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
refs/heads/master
2020-04-20T22:10:41.774132
2019-01-26T09:29:26
2019-01-26T09:29:26
169,131,028
0
0
NOASSERTION
2019-02-04T19:04:40
2019-02-04T18:58:36
Python
UTF-8
Python
false
false
5,210
py
# -*- coding: utf-8 -*- # # Copyright 2014 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 requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
e8d1869e7a5f6cef61fa69fbf0439981ffd4f27f
402ed5374ab189c8599b56864c5ce066f34b26c6
/zfit/minimize.py
9fff38606b3bd8f93797462dbabbb11864a9a636
[ "BSD-3-Clause" ]
permissive
kailiu77/zfit
db354e9c3eb4a41274af5363834fe231823c6d66
8bddb0ed3a0d76fde0aa2cdbf74434b0ee0ae8bb
refs/heads/master
2020-10-01T23:49:55.751825
2019-12-06T15:48:47
2019-12-06T15:48:47
227,650,723
1
0
BSD-3-Clause
2019-12-12T16:33:54
2019-12-12T16:33:53
null
UTF-8
Python
false
false
533
py
# Copyright (c) 2019 zfit # from .minimizers.optimizers_tf import RMSPropMinimizer, GradientDescentMinimizer, AdagradMinimizer, AdadeltaMinimizer, from .minimizers.optimizers_tf import Adam, WrapOptimizer from .minimizers.minimizer_minuit import Minuit from .minimizers.minimizers_scipy import Scipy AdamMinimizer = A...
[ "mayou36@jonas.eschle.com" ]
mayou36@jonas.eschle.com
eca89db388397ccdddb20b4aa4430caec6456bc8
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_reran.py
0bd435238cf900398ead11d36e4a0cb93b838549
[ "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
229
py
from xai.brain.wordbase.nouns._rerun import _RERUN #calss header class _RERAN(_RERUN, ): def __init__(self,): _RERUN.__init__(self) self.name = "RERAN" self.specie = 'nouns' self.basic = "rerun" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
6ebd1a7c1b5cc55a594b078e34b3f6bc74f6b175
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03283/s356634724.py
66f46b19caea622c6741e3c3d780abc573ed2012
[]
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
735
py
import sys sys.setrecursionlimit(10010010) def abc106_d(): n, m, q = map(int, input().split()) table = [[0]*(n+1) for _ in range(n+1)] for _ in range(m): l, r = map(int, input().split()) table[l][r] += 1 query = [tuple(map(int, input().split())) for _ in range(q)] dp = [[-1]*(n+1) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
cc317c0a962ac26af9736f63157cf024a9de03ae
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj_091615.49+132833.1/sdB_sdssj_091615.49+132833.1_lc.py
9d48a955080db7419fd8f8baacbfa6e2382d130a
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[139.064542,13.475861], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_091615.49+132833.1/sdB_sdssj_091615.49+132833.1_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
c167ec7756b4bc4ef5d1f3840ebfad46f6b0f822
356b5455a4fb86c49c800a6181323b7fabef2b08
/ppci/lang/ocaml/io.py
5170f0ba3e9070d2451879fd2abe2a52d781cc15
[ "BSD-2-Clause" ]
permissive
obround/ppci
be7d1ce7832513629ee1301e7b67c0ceda38d668
ba0840bc5f4ffd889f882a814fb26f88cd854379
refs/heads/master
2023-02-11T13:47:35.439871
2021-01-05T22:33:08
2021-01-05T22:33:08
327,131,704
0
0
BSD-2-Clause
2021-01-05T22:08:23
2021-01-05T22:08:23
null
UTF-8
Python
false
false
598
py
""" OCaml i/o helpers. """ from ...format.io import BaseIoReader class FileReader(BaseIoReader): """ OCaml file reader helper with low level primitive read functions. """ def read_byte(self): return self.read_bytes(1)[0] def read_u8(self): return self.read_fmt("B") def read_s8(sel...
[ "windel@windel.nl" ]
windel@windel.nl
c01ac9f16fe7691cc7f818e01188598024e8e91e
1c5f4a13a5d67201b3a21c6e61392be2d9071f86
/.VirtualEnv/Lib/site-packages/influxdb_client/domain/log_event.py
0de871390b38b09d09f1940547d519a8f48899d8
[]
no_license
ArmenFirman/FastAPI-InfluxDB
19e3867c2ec5657a9428a05ca98818ca7fde5fd0
b815509c89b5420f72abf514562e7f46dcd65436
refs/heads/main
2023-06-24T20:55:08.361089
2021-07-29T00:11:18
2021-07-29T00:11:18
390,462,832
2
0
null
null
null
null
UTF-8
Python
false
false
4,328
py
# coding: utf-8 """ Influx OSS API Service. No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class LogEvent(object...
[ "42990136+ArmenFirman@users.noreply.github.com" ]
42990136+ArmenFirman@users.noreply.github.com
8170718f2b68613f34342a77d012941363b0f6fb
840c19fdeb97216ad66b3e7fe236cfc17a061606
/python/python08_집합형1_문자열.py
4c76c35c9c641f15d0c2509a96c5dd9896bec337
[]
no_license
choicoding1026/data
07b431abdf36bcf7aefdf249fd1251acfd1e0334
684ca791108bc6ba0c315a70e3fa712c0ab2cca6
refs/heads/master
2022-12-24T17:55:25.092085
2020-10-08T04:54:39
2020-10-08T04:54:39
302,201,739
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
''' 집합형 1) 문자열 a. 문자열 생성 방법 b. 문자열 제공 함수 c. 인덱싱 및 슬라이싱 d. 문자열 특징 ''' # 1. 문자열 생성 방법 4가지 m = "hello" m2 = 'hello' m3 = '''hello''' m4 = """hello""" print(m, type(m)) print(m2, type(m2)) print(m3, type(m3)) print(m4, type(m4)) # triple 문자 사용 용도 ==> 문자열이 매우 길때 및 특정한 포맷(들여쓰기, 탭)으로 출력할 때 ...
[ "justin6130@gmail.com" ]
justin6130@gmail.com
2bef8052418e92e9d29c3d72a0a6fa8684c78926
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02607/s387198280.py
23e0aeefbb0e2b34051edcabc0f6fe62bf503efd
[]
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
153
py
N = int(input()) A = [int(i) for i in input().split()] ans = 0 for i,a in enumerate(A): idx = i+1 if a%2 == 1 and idx%2 == 1: ans += 1 print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7af3612998917d3a3fe539480b61fad8f29ac57e
b852bcf96bd21f8aad61df473e29249315043af5
/tests/parsers/plist_plugins/ipod.py
aa0d497cb41ed32f0578e24465c098532344aa88
[ "Apache-2.0" ]
permissive
tjemg/plaso
cad131da318bd6b23835b0f351f464e7edcdbc4a
58dd7d03463624c628187edea97eb2665069c29f
refs/heads/master
2020-04-08T21:53:54.863677
2016-09-12T14:17:59
2016-09-12T14:17:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,945
py
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the iPod plist plugin.""" import unittest from plaso.formatters import ipod as _ # pylint: disable=unused-import from plaso.lib import eventdata from plaso.lib import timelib from plaso.parsers.plist_plugins import ipod from tests.parsers.plist_plugins import t...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
1bdf3cc297d6507dd8194bb94ae2200a0fed1fbe
8f5c1ad76f3f9aa67d6720154b4884c9fab2ecbc
/toontown/election/DistributedToonfestCogAI.py
fb45a06666860c1eaf845c616553eefdc9c5a469
[]
no_license
RegDogg/ttr-2014-dev
eb0d9da3e91b9504b83804c27e1a00d87a0b7220
8a392ea4697cf15bd83accd01dcf26d0f87557eb
refs/heads/master
2023-07-13T02:40:56.171517
2021-07-12T00:31:28
2021-07-12T00:31:28
372,103,145
2
0
null
null
null
null
UTF-8
Python
false
false
2,233
py
# Embedded file name: toontown.election.DistributedToonfestCogAI from direct.interval.IntervalGlobal import * from direct.fsm.FSM import FSM from otp.ai.MagicWordGlobal import * from toontown.election.DistributedHotAirBalloonAI import DistributedHotAirBalloonAI from DistributedElectionCameraManagerAI import Distributed...
[ "regdogg.acr@gmail.com" ]
regdogg.acr@gmail.com
a5d31969ad26e8a685b7b7d70d52b06ac9f25a93
fa0bd730981a4a7333e7858c03e2a16c75e9cf5c
/Chapter 1/mnist_V7.py
d9038c4c2272d53acc72f1b12840acee6575d0cc
[ "MIT" ]
permissive
PacktPublishing/Deep-Learning-with-TensorFlow-2-and-Keras
4cb5f7249dcd1efe6ea5a5263fb862240ce303bb
e23d2b4a4292386b70977473805acb2f93ef16ca
refs/heads/master
2023-02-13T04:04:57.531730
2023-02-07T19:23:47
2023-02-07T19:23:47
228,759,428
311
214
MIT
2021-06-01T14:06:06
2019-12-18T04:42:07
Jupyter Notebook
UTF-8
Python
false
false
1,946
py
import tensorflow as tf import numpy as np from tensorflow import keras # network and training EPOCHS = 20 BATCH_SIZE = 256 VERBOSE = 1 NB_CLASSES = 10 # number of outputs = number of digits N_HIDDEN = 128 VALIDATION_SPLIT=0.2 # how much TRAIN is reserved for VALIDATION DROPOUT = 0.3 # loading MNIST dataset # verif...
[ "noreply@github.com" ]
PacktPublishing.noreply@github.com
117898cb3c43f04c6bf25322181fd0aa10d335c2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02757/s809101133.py
792d3c9136512c8391a1450d9437aaf983b40525
[]
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
421
py
n, p = map(int, input().split()) s = input()[::-1] if p == 2: ans = 0 for num, i in enumerate(s): if int(i)%2 == 0: ans += n-num elif p == 5: ans = 0 for num, i in enumerate(s): if int(i)%5 == 0: ans += n-num else: C = [0]*p now = 0 for num, i in enumerate(s): a = int(i) now = ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
df4c5f3748bd5945cdcc4ac29d61933da4417e69
eb38517d24bb32cd8a33206d4588c3e80f51132d
/proyecto_nn.py
112dc9751e2184c3eda81cf9370647918e561ce6
[]
no_license
Fernando23296/l_proy
2c6e209892112ceafa00c3584883880c856b6983
b7fdf99b9bd833ca1c957d106b2429cbd378abd3
refs/heads/master
2020-04-01T18:01:41.333302
2018-12-04T23:45:53
2018-12-04T23:45:53
153,466,681
2
0
null
null
null
null
UTF-8
Python
false
false
4,892
py
from matplotlib import pyplot as plt import numpy as np ''' ____ 1 283,70 1 308,63 1 253,60 1 281,61 1 303,54 1 279,54 1 343,55 1 335,49 1 290,34 1 327,34 1 299,32 1 287,22 1 169,15 1 0,0 1 287,5 ____ 2 0,0 2 263,66 2 325,58 2 266,57 2 290,45 2 0,0 2 275,34 2 0,0 2 0,0 2 338,19 2 292,14 2 335,10 2 276,9 2 357,9 2 333...
[ "fernando23296@gmail.com" ]
fernando23296@gmail.com
c6efa3651b14b09fdfb53dbc5d496a53f514a83b
5dc77586e3e0f9de1f032fd2ca68494d8e58928f
/tests/expectations/core/test_expect_column_value_z_scores_to_be_less_than.py
286de2251857f9da62734fd75119a0cf4b4e6d2d
[ "Apache-2.0" ]
permissive
great-expectations/great_expectations
dd7c22e6277d6b08bee3ff38a015e6e8cd434df6
b0290e2fd2aa05aec6d7d8871b91cb4478e9501d
refs/heads/develop
2023-09-04T09:30:26.395518
2023-09-02T00:00:13
2023-09-02T00:00:13
103,071,520
8,931
1,535
Apache-2.0
2023-09-14T19:57:16
2017-09-11T00:18:46
Python
UTF-8
Python
false
false
3,442
py
from typing import Optional, cast import pandas as pd import pytest from great_expectations import DataContext from great_expectations.core.expectation_validation_result import ( ExpectationValidationResult, ) from great_expectations.self_check.util import get_test_validator_with_data from great_expectations.util...
[ "noreply@github.com" ]
great-expectations.noreply@github.com
ec00e7616ff2b1478df290425ccd36f44d326853
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_24/models/policy_member_response.py
004d52f22194a5598a5e1b219c11dcc074aa1f85
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
3,933
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.24 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
[ "noreply@github.com" ]
PureStorage-OpenConnect.noreply@github.com
77d3496406cf164d4e8e89fe0a5dca548d70ffbf
bae04a67b13b5848ba2bd160792aa563738e9ec9
/botauth.py
613e76dbdbd951694cfce1b4de02f761eb2ef361
[]
no_license
igrekus/stan_bot
0fb28bf4efed219b117b2d640590565691c24b45
43eda93c0799e6f5b2b3676e8cb1a7db32eeae4f
refs/heads/master
2023-03-18T12:53:45.736623
2021-03-09T12:55:25
2021-03-09T12:55:25
254,895,923
0
0
null
null
null
null
UTF-8
Python
false
false
2,778
py
import dataset class BotAuth: def __init__(self, path='quotes.db'): # TODO store active permits in memory self.db = dataset.connect(f'sqlite:///{path}') self.authorized: dataset.table.Table = self.db['tg_user'] self.permits: dataset.table.Table = self.db['tg_permits'] self....
[ "upload234@mail.ru" ]
upload234@mail.ru
4b5037c080276fe1ebc9d520708a9920f70310e5
2061caff7999645ff8c590acf77ad5bf2b6da305
/source/toolkit.py
3ef5171ebbb3ef34f7536f0930c917808250278e
[ "CC0-1.0" ]
permissive
wezu/pyweek21
63e36639fe52f3c6fad2616dbd5c27eb7e4f4bbd
aff8f2b6f6250e45763e77c12595c3dca177e864
refs/heads/master
2021-01-09T21:58:33.818859
2016-03-19T18:25:08
2016-03-19T18:25:08
52,712,685
0
0
null
null
null
null
UTF-8
Python
false
false
2,683
py
from panda3d.core import * from panda3d.bullet import * def loadObject(model, H, pos, world, worldNP, root=render, collision_solid=None): new_model=loader.loadModel(model) new_model.clearModelNodes() new_model.reparentTo(root) new_model.setPos(render, pos) new_model.setH(render, H) new_m...
[ "grzechotnik1984@gmail.com" ]
grzechotnik1984@gmail.com
5e18cf19781ab567ab705e5609abb37f764adcdd
bf473d57dff028f3167811a1cb76d7ce8e95b42d
/ocrmypdf/qpdf.py
dcccc2ecf04069eb579e416cb1498c56452b9c55
[ "MIT" ]
permissive
thecocce/OCRmyPDF
ef6cb0e5e0c55433e2b7db244d5ecc6b0e6b183c
514efa36fcc2f79ae173f429cb208a63ae968f5b
refs/heads/master
2020-07-12T01:14:08.685260
2016-07-24T18:21:46
2016-07-24T18:21:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,819
py
#!/usr/bin/env python3 # © 2015 James R. Barlow: github.com/jbarlow83 from subprocess import CalledProcessError, check_output, STDOUT, check_call import sys import os from . import ExitCode, get_program def check(input_file, log): args_qpdf = [ get_program('qpdf'), '--check', input_file ...
[ "jim@purplerock.ca" ]
jim@purplerock.ca
e0cf215b999026a8636472b15a796e1222e3847e
30cffb7452220c2ac2961dd2e0f42e3b359a59c0
/simscale_sdk/models/zero_gradient_nbc.py
f75838ccaefa9dba193d8b59a8daffd25ce686e9
[ "MIT" ]
permissive
vpurcarea/simscale-python-sdk
0bf892d8824f8d4599caa0f345d5ba28e038f5eb
6f2d12b2d21142bd854042c0fb402c2c797629e4
refs/heads/master
2023-03-14T04:31:06.226337
2021-03-03T16:20:01
2021-03-03T16:20:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,321
py
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class ZeroGradientNBC(object): """NOTE: This class is auto generated ...
[ "simscale" ]
simscale
bafdc62773bc9fd08ba308ca2db163705297ec18
c7a4e634ea260da4c6c94ca716f2910509579e91
/functional_tests/pages/projects.py
5a76026fc313007cba773855df88559c19282fb7
[ "MIT" ]
permissive
XeryusTC/projman
858a72496ea6eaa23e8e0b511f8c17e037fa37b6
3db118d51a9fc362153593f5a862187bdaf0a73c
refs/heads/master
2016-08-12T09:36:48.371178
2016-05-07T21:12:02
2016-05-07T21:12:02
45,639,983
0
0
null
null
null
null
UTF-8
Python
false
false
4,986
py
# -*- coding: utf-8 -*- from page_objects import PageObject, PageElement, MultiPageElement from selenium.webdriver.support.ui import Select class BaseProjectPage(PageObject): body = PageElement(tag_name='body') content = PageElement(id_='content') logout = PageElement(name='logout') overlay = PageE...
[ "armadillo@onenetbeyond.org" ]
armadillo@onenetbeyond.org
2a6bfb83510ec56d87a9d444cc346d56a3fdbd9f
0abae2b0586605f6b99cb498ac8161297a7d72c0
/synthtorch/models/nconvnet.py
dc51157d7875fd02f732b81b30df5053159876dd
[ "Apache-2.0" ]
permissive
jcreinhold/synthtorch
fc227d5597bb77e2018cb6a6cfee9bc086ff5001
bb6eb20641b2cae3cbb96421b12e03865b5c5095
refs/heads/master
2021-09-25T15:31:39.398836
2021-09-24T19:51:46
2021-09-24T19:51:46
155,944,524
23
5
null
null
null
null
UTF-8
Python
false
false
2,273
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ synthtorch.models.nconvnet define the class for a N layer CNN with no max pool, increase in channels, or any of that fancy stuff. This is generally used for testing purposes Author: Jacob Reinhold (jacob.reinhold@jhu.edu) Created on: Nov 2, 2018 """ __all__ = ['Simp...
[ "jacob.reinhold@jhu.edu" ]
jacob.reinhold@jhu.edu
ffedf66584fb5b7a988b85720f9c11517f525e05
a5e71a333a86476b9cb1bdf6989bb5f47dd5e409
/ScrapePlugins/M/FoolSlide/FoolSlideDownloadBase.py
395abb1796f52b7fd3c704e900c0f38787d304a6
[]
no_license
GDXN/MangaCMS
0e797299f12c48986fda5f2e7de448c2934a62bd
56be0e2e9a439151ae5302b3e6ceddc7868d8942
refs/heads/master
2021-01-18T11:40:51.993195
2017-07-22T12:55:32
2017-07-22T12:55:32
21,105,690
6
1
null
2017-07-22T12:55:33
2014-06-22T21:13:19
Python
UTF-8
Python
false
false
5,584
py
import os import os.path import nameTools as nt import urllib.parse import zipfile import runStatus import traceback import bs4 import re import json import ScrapePlugins.RetreivalBase import processDownload import abc class FoolContentLoader(ScrapePlugins.RetreivalBase.RetreivalBase): @abc.abstractmethod def...
[ "something@fake-url.com" ]
something@fake-url.com
b55b8315eaf1069c0f704f305fdcdc0cfafaf87d
57ea6657b4deb620c4e29b606a5ec259d22fadcd
/Chatbot_Web/impl/weixin/WXBizMsgCrypt.py
77d319c0cda95ff7b3c39c660dfa35098682ca0d
[ "Apache-2.0" ]
permissive
orchestor/Chatbot_CN
021d05849257d66e8e2a65d4ead5a777e09d7d3d
43922d7f73946d00faad3f27d86188ec18022965
refs/heads/master
2020-05-09T12:48:48.124981
2019-04-09T13:54:24
2019-04-09T13:54:24
181,124,145
1
0
Apache-2.0
2019-04-13T05:11:09
2019-04-13T05:11:06
null
UTF-8
Python
false
false
9,372
py
#!/usr/bin/env python #-*- encoding:utf-8 -*- """ 对公众平台发送给公众账号的消息加解密示例代码. @copyright: Copyright (c) 1998-2014 Tencent Inc. """ # ------------------------------------------------------------------------ import base64 import string import random import hashlib import time import struct from crypto.Cipher import AES im...
[ "charlesxu86@163.com" ]
charlesxu86@163.com
d09e00e653b574f9a8970cd1e584175a9a92737e
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2811/60651/233596.py
adf251acd00fc9d70e91606146ff79bfffcadcaa
[]
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
190
py
inlist=input().split() modlist=[] for i in inlist[2,1+list[1]]: moi=i%list[0] if moi is not in modlist: list.append(i%moi) else: print(i) break
[ "1069583789@qq.com" ]
1069583789@qq.com
724c22209cc7ae9cdd3b6fab93b7e2622f3ee760
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/aggregation/percent_true.py
32ce39a1834e8fab60536294b99d282ccf61eb9d
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
2,090
py
from woodwork.column_schema import ColumnSchema from woodwork.logical_types import Boolean, BooleanNullable, Double from featuretools.primitives.base.aggregation_primitive_base import AggregationPrimitive from featuretools.utils.gen_utils import Library, import_or_none dd = import_or_none("dask.dataframe") class Pe...
[ "noreply@github.com" ]
alteryx.noreply@github.com
2e1f37842c48c239ce71d64acfa606a8846c5601
7be67ecaee241769a69f3f5dae1bb6f99feb5e84
/venv/bin/xhtml2pdf
9de81088105b51d156f564e3a715ca49edad96a4
[]
no_license
asadlive84/Billing-Cable-TV-Providers-
6e5e6412a84045749869253b49a2a53564b52c96
7f1927030e9cb57573e1cfe5a5110614ef251d02
refs/heads/dev
2022-03-17T21:42:41.443783
2019-11-22T14:48:50
2019-11-22T14:48:50
213,041,047
1
0
null
2019-12-05T00:29:16
2019-10-05T17:23:09
Python
UTF-8
Python
false
false
435
#!/home/asad/a/Billing-Cable-TV-Providers-/venv/bin/python3.7 # EASY-INSTALL-ENTRY-SCRIPT: 'xhtml2pdf==0.2.3','console_scripts','xhtml2pdf' __requires__ = 'xhtml2pdf==0.2.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '...
[ "asadlive.sohel@gmail.com" ]
asadlive.sohel@gmail.com
e034515fd347be397beff6bc24ce3093eecb2309
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03733/s782233089.py
46581aa9c8c3b8e38789b9a77690606af0e916cd
[]
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
242
py
N, T = map(int, input().split()) t = list(map(int, input().split())) cnt = T time = T for i in range(1, N): if(t[i] <= time): cnt += (t[i]-time)+T time = t[i]+T else: time = t[i]+T cnt += T print(cnt)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8fee26e0cffef8bdca1787ef08b772d94ae98f5d
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_simple08.py
6162995e3717146a1053b12a45aae23f8f91ccc5
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
800
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
732fd0b2c4f87cd1ee44405eca6fe74734235e07
718a104a65581faa87980583bb321e093db341d3
/data.py
334b5bbc65297410a64db75e3971f1c7e9e5c1a7
[ "Apache-2.0" ]
permissive
JHWen/Load-Forecast
14e3909ec48b5f1a578ee4c727dd234c498f3eb3
f65c623f33b4e19eb1035860c1df33926c747599
refs/heads/master
2020-04-12T08:36:43.176495
2018-12-20T07:22:03
2018-12-20T07:22:03
162,390,053
0
0
null
null
null
null
UTF-8
Python
false
false
4,020
py
import pandas as pd import numpy as np import logging import random def load_data(path): data = pd.read_csv(path, delimiter=',') """ Year,Month,Day,Hour,Value,Value1,Value2,Value3,dayOfWeek,isWorkday,isHoliday,Season, Tem,RH,Precipitation,File,value_oneweek_before,value_oneday_before,value_onedayavg_b...
[ "test@example.com" ]
test@example.com
12a20fa1740ade148a3cbe7e0244b55abdca0b40
ebd6f68d47e192da7f81c528312358cfe8052c8d
/swig/Examples/test-suite/python/arrays_global_runme.py
fa3b9f2ec2c153899bedb2354e0ab4637717a0b9
[ "LicenseRef-scancode-swig", "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "Apache-2.0" ]
permissive
inishchith/DeepSpeech
965ad34d69eb4d150ddf996d30d02a1b29c97d25
dcb7c716bc794d7690d96ed40179ed1996968a41
refs/heads/master
2021-01-16T16:16:05.282278
2020-05-19T08:00:33
2020-05-19T08:00:33
243,180,319
1
0
Apache-2.0
2020-02-26T05:54:51
2020-02-26T05:54:50
null
UTF-8
Python
false
false
419
py
import arrays_global arrays_global.cvar.array_i = arrays_global.cvar.array_const_i from arrays_global import * BeginString_FIX44a cvar.BeginString_FIX44b BeginString_FIX44c cvar.BeginString_FIX44d cvar.BeginString_FIX44d cvar.BeginString_FIX44b = "12"'\0'"45" cvar.BeginString_FIX44b cvar.BeginString_FIX44d cvar.Begi...
[ "inishchith@gmail.com" ]
inishchith@gmail.com
02b0318d190b9e1fde135410ecc2cb5fcac416c1
46fda2ea47f311ee7fefc6f6210811c7f4bd74ad
/science/py-geometer/files/patch-setup.py
264db73014f73c40718fa55442e380c6cf4faf73
[ "BSD-2-Clause" ]
permissive
truenas/ports
ad560a8adde884dc0cfc4b292bbbcad91903b287
da4ed13ad08a6af5c54361f45964fa1177367c68
refs/heads/truenas/13.0-stable
2023-09-02T03:00:28.652837
2023-08-16T16:05:00
2023-08-16T16:05:00
8,656,293
18
9
NOASSERTION
2023-09-12T15:15:34
2013-03-08T17:35:37
null
UTF-8
Python
false
false
292
py
--- setup.py.orig 2020-07-08 15:51:34 UTC +++ setup.py @@ -19,7 +19,7 @@ VERSION = None # What packages are required for this module to be executed? REQUIRED = [ - 'numpy>=1.15,<1.20', 'sympy>=1.3,<=1.7' + 'numpy>=1.15,<1.21', 'sympy>=1.3,<=1.7' ] # What packages are optional?
[ "sunpoet@FreeBSD.org" ]
sunpoet@FreeBSD.org
eb257264160ee57ec88f4c264424ccfdd9d82b1f
6245db4e53782ab380de287f945bc026e3c6b281
/python_workbook/str_formatting.py
4a6974a3408e59c5880a9538906397759ee6403f
[]
no_license
rashmierande/python_exercise
e510174820efb793cfe435ad53c6baa34c829d86
9703b67a1f5614594244b4d8d2c42ebfb6a2aaec
refs/heads/master
2021-01-23T00:53:17.235391
2018-03-15T05:46:53
2018-03-15T05:46:53
85,846,226
0
1
null
2018-01-21T18:11:11
2017-03-22T15:42:09
Python
UTF-8
Python
false
false
722
py
''' Question: The code is supposed to ask the user to enter their name and surname and then it prints out those user submitted values. Instead, the code throws a TypeError. Please fix it so that the expected output is printed out. Expected output: Your first name is John and your second name is Smith ''' firstname ...
[ "eranderashmi25@gmail.com" ]
eranderashmi25@gmail.com
e99d95e4437b2da14fa498b7f5928e952b46ebb1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02265/s085080213.py
540cdcdb6eb525c25d43e70a920abb364407eaae
[]
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
240
py
import collections d=collections.deque() for _ in range(int(input())): e=input() if'i'==e[0]:d.appendleft(e.split()[1]) else: if' '==e[6]: m=e.split()[1] if m in d:d.remove(m) elif len(e)%2:d.popleft() else:d.pop() print(*d)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
89e378268e626c1a3c788218339b4d1c759b6ea6
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/29/usersdata/109/9631/submittedfiles/atividade.py
bc96354444dfb5afcff956647e27a7783ced551a
[]
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
193
py
# -*- coding: utf-8 -*- from __future__ import division import math cont=0 n=int(input('Digite o valor de n:')) while True: s=(n//10) cont=cont+1 n=s if s<1: break print cont
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3ff68cf51fa51f689c89f1ac91c1fa528c276bb3
a947525caa6940262099b24ebafa61900691ef22
/trainer/agents.py
28f7f1ea781b5e3a95ba15393f59060638c78c98
[]
no_license
metal-tile/dqn-tensorflow
527e9b8fa89eea4a4e6375d4244b9f2b10847473
9552307dfb4dacde69bdb268350d8ca0b4a02693
refs/heads/master
2020-05-19T05:48:47.323835
2019-05-04T06:15:31
2019-05-04T06:15:31
184,858,118
0
0
null
2019-05-04T05:59:24
2019-05-04T05:59:24
null
UTF-8
Python
false
false
7,666
py
import numpy as np import tensorflow as tf from . import repmem class DQN: def __init__( self, input_shape, n_actions, q_fn, learning_rate, discount_factor=0.99 ): """ Parameters ---------- input_shape: t...
[ "shuhei.fujiwara@gmail.com" ]
shuhei.fujiwara@gmail.com
7bb62eea1b4ae6548c56888022465b75c9c17c5a
1ecb394b10e9622a5a5d8845b44e4585f464d42e
/nncp-api/biz/dlt.py
6b61757ea3ab90e5869038b48a07359ec2fefec2
[]
no_license
dragonflylxp/lottory
7ec28d196f58692d9d417aa5d6963c182afe260a
b04f115df325a58148dc19d7cdfc21b28892a6a1
refs/heads/master
2020-04-28T08:53:09.007092
2020-04-17T10:50:41
2020-04-17T10:50:41
175,145,951
1
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
# coding: utf-8 import traceback import ews import define from decimal import Decimal from hook import Hook from util.configer import * from cbrpc import get_rpc_conn, RpcException from commonEntity.Dlt import DltBean from commonEntity.User import UserBean import session from util.tools import Log logger = Log().getL...
[ "noreply@github.com" ]
dragonflylxp.noreply@github.com
8afaab8c0cea56e8f41ab9c4f1c2441543615eef
fdd41bb26f1e7a17f5a424fe082a46bcc355abed
/setup.py
a14bf381aa58d1657f67532225f0ea61bddeb340
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SamuelMarks/ml-params-jax
4978d5d4c422825be748138f87422cb0d4604ec1
fd9ac6efe5f2c7ec6d4d41ccc9e032219992a219
refs/heads/master
2022-11-15T20:03:32.678882
2020-07-05T10:40:22
2020-07-05T10:40:22
276,909,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
# -*- coding: utf-8 -*- from ast import parse from distutils.sysconfig import get_python_lib from functools import partial from os import path, listdir from platform import python_version_tuple from setuptools import setup, find_packages if python_version_tuple()[0] == '3': imap = map ifilter = filter else: ...
[ "807580+SamuelMarks@users.noreply.github.com" ]
807580+SamuelMarks@users.noreply.github.com
6c742dc924f39f16f10aa3ddcde7be364acf3c92
20fc010bcc1b23b8df29c969eee725f3083ac117
/mayan/apps/folders/tests/test_models.py
a5beb8df62ea4fc10f50dca53b49bab5128b6c5f
[ "Apache-2.0" ]
permissive
fire-studio/mayan-edms
c5c943e16ea0c780a4c6c61d3bc702d00590eb61
6dc45a1c7f5f19219fc748e1578f200301a18f5b
refs/heads/master
2021-01-01T17:09:08.733373
2017-07-22T06:42:50
2017-07-22T06:45:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,780
py
from __future__ import unicode_literals from django.test import override_settings from common.tests import BaseTestCase from documents.models import DocumentType from documents.tests import TEST_DOCUMENT_PATH, TEST_DOCUMENT_TYPE from ..models import Folder from .literals import TEST_FOLDER_LABEL @override_setting...
[ "roberto.rosario.gonzalez@gmail.com" ]
roberto.rosario.gonzalez@gmail.com
6d15dc1ae9a416953dddc829e437664a04cf34cc
24f664aa2344d4f5d5e7b048ac4e85231715c4c8
/deeplearning/deeptune/opencl/heterogeneous_mapping/models/base.py
7e8490aaae299610f8b1c95cea719f8d82a1ac1c
[]
no_license
speycode/clfuzz
79320655e879d1e0a06a481e8ec2e293c7c10db7
f2a96cf84a7971f70cb982c07b84207db407b3eb
refs/heads/master
2020-12-05T13:44:55.486419
2020-01-03T14:14:03
2020-01-03T14:15:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
# Copyright (c) 2017, 2018, 2019 Chris Cummins. # # DeepTune 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. # # DeepTune is distribute...
[ "chrisc.101@gmail.com" ]
chrisc.101@gmail.com
aaef15c38545b71f401e174ffe09c7f011928a7f
e38e87ed5e500290ba0c2f774227920625ee5c54
/examples/computing_embeddings.py
7e84b597291985f1773e4aeaa58989017cf20739
[ "Python-2.0", "Apache-2.0" ]
permissive
ishine/text2vec
39d363b94ddbc9e664939041ae63ad4e352b894b
71842f67f7be9f0d4fee5b6e0e2562a1c553818e
refs/heads/master
2023-08-25T19:49:54.215412
2021-11-05T06:37:18
2021-11-05T06:37:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: This basic example loads a pre-trained model from the web and uses it to generate sentence embeddings for a given list of sentences. """ import sys sys.path.append('..') from text2vec import SBert from text2vec import Word2Vec def compute_em...
[ "shibing624@126.com" ]
shibing624@126.com
adf0f62316b8fa8d727bcb11f2ea9d19dc9f0b06
7c8c7fe5a7aea0a023624b31433f281a642bd488
/tslearn/tests/test_variablelength.py
ba22bb86e4e2cd321192159d489d56ebcc001bcb
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
wzpy/tslearn
918b969a69fd1a003037c94224ff31959f8b271f
2d7f3ea710b8d7f21ab24d212e930046b9c142ad
refs/heads/master
2020-07-15T04:38:48.217622
2019-08-30T22:04:05
2019-08-30T22:04:05
205,481,146
1
0
BSD-2-Clause
2019-08-31T01:53:11
2019-08-31T01:53:11
null
UTF-8
Python
false
false
3,258
py
import numpy as np from numpy.testing import assert_allclose, assert_array_less from sklearn.model_selection import cross_val_score, KFold from tslearn.neighbors import KNeighborsTimeSeriesClassifier from tslearn.svm import TimeSeriesSVC, TimeSeriesSVR from tslearn.clustering import GlobalAlignmentKernelKMeans, TimeSe...
[ "romain.tavenard@univ-rennes2.fr" ]
romain.tavenard@univ-rennes2.fr
069516998750956b7549ff532bbaf794a91c42e7
e638e9fda0e672fa9a414515d0c05a24ab55ad38
/SparseMatrixMultiplication.py
73e01038302f2d5dfc6d050502ff25dfad32a2a7
[]
no_license
zjuzpz/Algorithms
8d1c7d50429aa5540eb817dc5495a20fc3f11125
2df1a58aa9474f2ecec2ee7c45ebf12466181391
refs/heads/master
2021-01-21T05:55:48.768728
2020-08-04T22:44:08
2020-08-04T22:44:08
44,586,024
2
0
null
null
null
null
UTF-8
Python
false
false
1,068
py
""" 311. Sparse Matrix Multiplication Given two sparse matrices A and B, return the result of AB. You may assume that A's column number is equal to B's row number. Example: A = [ [ 1, 0, 0], [-1, 0, 3] ] B = [ [ 7, 0, 0 ], [ 0, 0, 0 ], [ 0, 0, 1 ] ] | 1 0 0 | | 7 0 0 | | 7 0 0 | AB = | -1 0 3...
[ "zjuzpz@gmail.com" ]
zjuzpz@gmail.com
e4ae6e2272d209c56491720c42c47c6bb8eb751e
675989e2669b8b281b39de85dab2fe781cdaca6a
/macro/beam_profile/plots_beam.py
acd3481bec53ea81dba6acf6c9242a38deb0afa8
[]
no_license
adamjaro/lmon
c439615c2aae861102e32440f823b05b7b054715
fd80ae93620ff12f8043f04d19538355fbdff81a
refs/heads/master
2023-06-01T06:29:09.749097
2023-05-08T17:55:55
2023-05-08T17:55:55
223,854,949
2
1
null
null
null
null
UTF-8
Python
false
false
6,691
py
#!/usr/bin/python3 from pandas import read_csv, DataFrame import matplotlib.pyplot as plt from matplotlib.lines import Line2D from scipy.stats import norm from scipy.optimize import curve_fit import numpy as np #_____________________________________________________________________________ def main(): iplot = 2 ...
[ "jaroslav.adam@cern.ch" ]
jaroslav.adam@cern.ch
95841f3405e5128f4dfbcdc76b3bc8bc7578f644
eafd99d910af8cdcf1ec1b96d03c342e5306af49
/tf-idf.py
803e8ec98d0ee3310165b47a2f88d53407dc526f
[]
no_license
paulohq/cosine
0323db87138a1f7b34f680b20f93b0a41a2c72b4
f22c3c7b6af9eb149046d70654dd82a7bf69c738
refs/heads/master
2020-05-09T19:36:50.164238
2020-04-13T23:41:31
2020-04-13T23:41:31
181,383,427
0
0
null
null
null
null
UTF-8
Python
false
false
3,179
py
# teste de geração de tfidf do corpus import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from nltk.corpus import stopwords import math def computeTF(wordDict, bagOfWords): tfDict = {} bagOfWordsCount = len(bagOfWords) for word, count in wordDict.items(): tfDict[word] ...
[ "=" ]
=
3c69f7778504bf4fa0dba20be9624a0e8fa8483a
0ffdf8ab6c5a875bfd8c3e06456131a0f3abad62
/contrib/devtools/update-translations.py
9266596bcb8562a640361a6811c64b7a51f9e5df
[ "MIT" ]
permissive
FYNCOIN-Foundation/FYNCOIN
d06be9163090155a540b369512b9f6ec7f2410f3
835ce3be2fb20632fb9443293d86caad620a1f7e
refs/heads/master
2020-03-26T11:55:35.065862
2018-09-02T10:26:22
2018-09-02T10:26:22
144,866,105
0
4
null
null
null
null
UTF-8
Python
false
false
8,148
py
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the follo...
[ "hemant.singh.leu@gmail.com" ]
hemant.singh.leu@gmail.com
cbd89cb2e8587a7d490be95bfed1e308b413fcbe
aa8fe9e165df16bd17aa5720b8043c533adde9bb
/init/00_lockfile.py
4843f9c2f344b55760f6b74481b55a42eabab1c1
[]
no_license
teamdiamond/qtlab
31d2ccaee2ada84a027f2160553f54757e6f6cdf
67d5bbd58c5f4d4ac3914774b56071d51f121010
refs/heads/master
2022-12-14T12:07:35.223055
2019-06-25T06:53:57
2019-06-25T06:53:57
15,255,712
0
4
null
2022-12-07T23:37:45
2013-12-17T13:54:53
Python
UTF-8
Python
false
false
322
py
from lib import config, lockfile import os _lockname = os.path.join(config.get_execdir(), 'qtlab.lock') lockfile.set_filename(_lockname) del _lockname msg = "QTlab already running, start with '-f' to force start.\n" msg += "Press s<enter> to start anyway or just <enter> to quit." lockfile.check_lockfile(msg)...
[ "wolfgangpfff@gmail.com" ]
wolfgangpfff@gmail.com
4d5b0222e92f9df4bd437156b9910a3f4474331e
13cf11440998376d3b52a49f1e4fb8936c360ac4
/tests/saliency_tests/visualizer_tests/test_visualizer_utils.py
db7ce7e9b4dd0f1fb233f8a3f1d4c2e5d8a52f95
[ "MIT" ]
permissive
k-ishiguro/chainer-chemistry
87e3db724de0e99042d9585cd4bd5fff38169339
aec33496def16e76bdfbefa508ba01ab9f79a592
refs/heads/master
2021-07-06T22:58:20.127907
2019-02-04T02:51:34
2019-02-04T02:51:34
169,345,375
1
1
MIT
2020-07-30T06:04:13
2019-02-06T02:27:39
Python
UTF-8
Python
false
false
1,802
py
import numpy import pytest from chainer_chemistry.saliency.visualizer.visualizer_utils import abs_max_scaler # NOQA from chainer_chemistry.saliency.visualizer.visualizer_utils import min_max_scaler # NOQA from chainer_chemistry.saliency.visualizer.visualizer_utils import normalize_scaler # NOQA from chainer_chemist...
[ "acc1ssnn9terias@gmail.com" ]
acc1ssnn9terias@gmail.com
a3a4b899eeb29945f03056946232a708ce516fbb
36cfda71d39c79ba671b8f86d473bc8b802ae348
/C++问答Code/delete.py
0fcdd4b60511ec7c85134158caccace5d5275a59
[]
no_license
lichangke/QuestionAndAnswer
b05e9b0f2ea12c61a7a27f59c81bcf7ebd903c83
dd89c2d786050c6b69c4ee93a9eef8d4a22fbfa6
refs/heads/master
2023-05-02T21:44:53.225373
2021-04-27T08:40:37
2021-04-27T08:40:37
357,549,085
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
import os import shutil import os.path import stat DeleteDirList = [".idea","cmake-build-debug"] def funcDeleteDir(path): for parent, dirnames, filenames in os.walk(path): # 遍历文件夹下面的所有文件夹 for dirname in dirnames: strfilepath = parent + os.sep + dirname if os.path.isdir(strfilepath...
[ "986740304@qq.com" ]
986740304@qq.com
d7eb16377f4e485d6f9ced4d428c49500c312ff0
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.0_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=81/params.py
9c610d772bb2c0361c637b278eaa66262e55aa96
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
{'cpus': 4, 'duration': 30, 'final_util': '3.107095', 'max_util': '3.0', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '1', 'res_nmb': '4', 'res_weight': '0.06', 'scheduler': 'GSN-EDF', 'trial': 81, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
07e4a5831a138c258c31661783f57549e8e2aa79
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/win_rm_configuration_py3.py
7ee36d3a256e666ff72aa6de041509fd0721681d
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
1,036
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
2f6a82d63491db26eebcd1c31b0fac8b1e2040a2
d5e787f85b37f966ccdf0cd5f7a7061eae1c70a8
/src/core/celery.py
0def2c6a5fba8808a1f787d4065df7b5ec14710d
[ "MIT" ]
permissive
iBuilder-Tech/phase
5ee6cd1fb410de0d067e7b5b8adfea3c4411b62c
cc8f9b9f3e2c31b139d5cce433667c8d5ba2c6f2
refs/heads/main
2023-07-10T18:24:20.291136
2021-08-31T13:22:17
2021-08-31T13:22:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
import os from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings.production') from django.conf import settings # noqa app = Celery('phase') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS) @app.task(bind=...
[ "thibault@miximum.fr" ]
thibault@miximum.fr
b8dfd6bf8be08eccce64129d19717fa8d4ac4eed
997c82f5d9684945fb2f5d5481dc4d251a93755f
/famapy/metamodels/bdd_metamodel_withObjects/models/bdd_model.py
af0274543db70bddfc413d11b3eaabfab872f8f1
[]
no_license
jmhorcas/famapy-aafms
a6e45b5fff2c820037daf95151df5bc6895b1611
bcc80f7061bed4d6bfd536f9d53cf195bffa01e6
refs/heads/main
2023-08-24T05:51:47.337325
2021-10-15T10:18:20
2021-10-15T10:18:20
389,559,981
1
0
null
null
null
null
UTF-8
Python
false
false
3,424
py
from collections import defaultdict from dd.autoref import BDD, Function from famapy.metamodels.cnf_metamodel.models.cnf_model import CNFNotation, CNFLogicConnective class BDDModel: """A Binary Decision Diagram (BDD) representation of the feature model given as a CNF formula. It relies on the dd module: htt...
[ "jhorcas@us.es" ]
jhorcas@us.es
380d2de8a0216873416cca9c2d5e636526a7dd16
e73003ad3417daf4eb4b4e9909b42225833aedea
/0x07-python-test_driven_development/0-add_integer.py
0a8fd23207973a5fd688889a15bd00d764bc346b
[]
no_license
Alphamj/holbertonschool-higher_level_programming
34f10da3407969928a333af8a6ef52d2817d838a
379ed7fc70f8ba7e4c41e07b4ae804c21d540725
refs/heads/master
2023-03-15T13:11:04.545118
2020-09-25T01:38:33
2020-09-25T01:38:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
#!/usr/bin/python3 """ My add module add_integer: function that add two numbers Return: the add of two intigers """ def add_integer(a, b=98): """ Return the add of intigers a and b are intigers """ if not isinstance(a, (int, float)) or isinstance(a, bool): raise TypeError("a mu...
[ "1482@holbertonschool.com" ]
1482@holbertonschool.com
da35d8a5edab37d07c1c2a4664be8b6030f98f66
35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d
/Python_Study/Selenium自动化/Day02/Email/send_email.py
f4b9ce3225290a4c822ebb3ee2db697acd756345
[]
no_license
KongChan1988/51CTO-Treasure
08b4ca412ad8a09d67c1ea79c7149f8573309ca4
edb2e4bd11d39ac24cd240f3e815a88361867621
refs/heads/master
2021-07-04T15:57:56.164446
2019-07-24T15:28:36
2019-07-24T15:28:36
97,453,749
5
8
null
2019-10-30T22:05:12
2017-07-17T08:34:59
Python
UTF-8
Python
false
false
2,369
py
# -*- coding:utf-8 -*- # Author:D.Gray import unittest import smtplib import time import os from email.mime.text import MIMEText from email.header import Header from HTMLTestRunner import HTMLTestRunner print("开始发送邮件".center(50,"-")) def sendReport(file_new): with open(file_new,'rb') as f: email_body = f.r...
[ "wangwei_198811@163.com" ]
wangwei_198811@163.com
c47994dc7e144c848612afbf957dd5ef9965dc65
079c07c5d97eb60d36269e27309e84b25ea0aaeb
/guidehero-backend/tests/api/ask/test_set_askers.py
fa36cc6582edab111b92747b6fc3a4ca8ef0038f
[]
no_license
itdream-dev/python
3aa44329673f05e2a86e1cba56cb88101c777233
eda81b802b99f45933bdf0d22b508837cfa538f0
refs/heads/master
2023-03-05T12:27:42.776870
2020-05-11T15:54:45
2020-05-11T15:54:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
import unittest import json from ..base import ApiBaseTestCase from lib.models.card import Card from lib.models.user import User from lib.models.user_role_card import UserRoleCard from lib.models.card_role import CardRole @unittest.skip('set_askers endpoint is obsolete') class SetAskersTestCase(ApiBaseTestCase): ...
[ "skyclean906@gmail.com" ]
skyclean906@gmail.com
916623c6560a309b4929336812aad08d5b56189e
d253cb1e5b52a67a2e20030e6f0f9ddcdbcbd3aa
/config/testing.py
f3ddff8c058d926e91e16aadf7a6bd2603e50f2f
[]
no_license
TheFifthMan/flask-basic-template
84e3c8b0acdbd2ede121f267e92ca0ee298e1bce
313ce8c6827b1d33cfb0039c57d6d1aa4be8555b
refs/heads/master
2020-04-07T19:03:19.565438
2019-01-29T05:44:03
2019-01-29T05:44:03
158,634,487
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
from .general import Config import os class TestingConfig(Config): Testing = True SQLALCHEMY_DATABASE_URI = os.getenv("TEST_SQLALCHEMY_DATABASE_URI") or "mysql+pymysql://root:qwe123@127.0.0.1/flasky"
[ "John.Wen@ehealth.com" ]
John.Wen@ehealth.com
3aab521adda4453f55ff28cfe6d24b1ec4c84c96
757c2daa5e2ea70005783d1e5ac78aec47712e9c
/python/elb/61-create-elb.py
bf88664c92a82190829253256ebdc602123d79a9
[]
no_license
obulpathi/aws
ab9e6f6a62e8d76f196b063da87c8d8c0d09d25e
35c2181377c4c536b7e1d6fb9386705a90f85763
refs/heads/master
2021-01-17T04:43:10.358333
2017-04-10T21:02:23
2017-04-10T21:02:23
21,324,885
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
import boto.ec2.elb from boto.ec2.elb import HealthCheck elb_conn = boto.ec2.elb.connect_to_region('us-east-1') # ELB requires a few pieces to be setup hc = HealthCheck( interval=20, healthy_threshold=3, unhealthy_threshold=5, target='TCP:22' # target='HTTP:8080/health' ) zo...
[ "obulpathi@gmail.com" ]
obulpathi@gmail.com
988ece74cdaa2dcd3a36b809507d1bc66cfb90f4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03072/s343667969.py
87c47d33b4536d07dce370dc61baa549b2bf3c3d
[]
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
172
py
n = int(input()) h = list(map(int, input().split())) res = 1 h_max = h[0] for i in range(1, len(h)): if h[i] >= h_max: res += 1 h_max = h[i] print(res)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c2e31a747260c7ac46d579c9c49836e9b9311df8
63ce52a8dcbbb4f64b1f3265f54904a928128af6
/ben_projects/RoboQuasar1.0/camera/analyzers.py
d6eea271bf5e1ef59b86465592640a1e97d35357
[]
no_license
Woz4tetra/Self-Driving-Buggy
0ab629242e07ad8aa706573bbab0809f895d5533
ceba78445e1b0dcc6922cd67e8be23d78eb1667a
refs/heads/master
2021-01-10T18:51:35.253412
2016-01-15T02:56:50
2016-01-15T02:56:50
40,282,642
0
1
null
null
null
null
UTF-8
Python
false
false
7,281
py
# applies houghlines or cascade classfier filters on an input camera frame import numpy as np import cv2 class LineFollower: def __init__(self, expected, y_bottom, width, height): self.centerRho, self.centerTheta = expected self.width, self.height = width, height self.yBottom = y_bottom ...
[ "woz4tetra@gmail.com" ]
woz4tetra@gmail.com
841b4a196027f6232cc3d170f481da13576dc249
2e74cff6c9639f3903ccde662e79359d0724285e
/2019_late/20190826/aa.py
f51aeefafcffc501a66e2b90d4c18c5bb3a5c82a
[]
no_license
dodonmountain/algorithm
e29988071f651e51ba65e3926302f94a3d4074a5
ce33e0d74220839aed4b17a47fa0069458a4324e
refs/heads/master
2022-11-05T05:14:01.527015
2022-11-01T04:29:37
2022-11-01T04:29:37
200,008,533
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
import sys sys.stdin = open('input4881.txt', 'r') def backtracking(k, n, sum_temp): global min_sum if k == n: # print('sum_temp_final: {}'.format(sum_temp)) if min_sum > sum_temp: min_sum = sum_temp return if sum_temp > min_sum: # 시간 초과 나서 가지치기 해줌! return for...
[ "lkh151515@gmail.com" ]
lkh151515@gmail.com
31178d0de5aff1e94f4abb2ac1bf30250a058b35
f2889a13368b59d8b82f7def1a31a6277b6518b7
/203.py
4cc915c1697a80508539b0d9a6f8f2a77f90cc65
[]
no_license
htl1126/leetcode
dacde03de5c9c967e527c4c3b29a4547154e11b3
c33559dc5e0bf6879bb3462ab65a9446a66d19f6
refs/heads/master
2023-09-01T14:57:57.302544
2023-08-25T15:50:56
2023-08-25T15:50:56
29,514,867
7
1
null
null
null
null
UTF-8
Python
false
false
1,066
py
# ref: https://leetcode.com/discuss/33150/python-solution # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def removeElements(self, head, val): """ :type head: ListNode :type val:...
[ "b93902098@ntu.edu.tw" ]
b93902098@ntu.edu.tw
0b0c72893b0cb54445a840ddd464ccffc5ea4a81
b73e14ea63e0d728a23b780bd5b0eb4d8fac4362
/hassio-google-drive-backup/backup/drive/folderfinder.py
86319775f85ffbcf72329dd692eaedf91c8715ae
[ "MIT" ]
permissive
agusalex/hassio-google-drive-backup
7c722c26e2c45382aeabef706842674ba6c176d3
c97fd6e7e4f95d48b85d3cfe67a01bdc2103da9c
refs/heads/master
2023-04-03T06:42:49.797408
2021-04-05T23:30:33
2021-04-05T23:30:33
354,999,639
0
1
MIT
2021-04-05T23:30:33
2021-04-05T23:26:33
null
UTF-8
Python
false
false
7,601
py
import os import os.path from datetime import timedelta from typing import Any, Dict from aiohttp.client_exceptions import ClientResponseError from injector import inject, singleton from ..config import Config, Setting from ..exceptions import (BackupFolderInaccessible, BackupFolderMissingError, ...
[ "stephen@beechens.com" ]
stephen@beechens.com
8a52414ded940232afbcfaec121283acd02cb77d
bc233c24523f05708dd1e091dca817f9095e6bb5
/bitmovin_api_sdk/models/limit_transform_unit_depth_recursion_mode.py
0ba484b9233f3c3819003b1483ecb20fa575e34a
[ "MIT" ]
permissive
bitmovin/bitmovin-api-sdk-python
e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd
b0860c0b1be7747cf22ad060985504da625255eb
refs/heads/main
2023-09-01T15:41:03.628720
2023-08-30T10:52:13
2023-08-30T10:52:13
175,209,828
13
14
MIT
2021-04-29T12:30:31
2019-03-12T12:47:18
Python
UTF-8
Python
false
false
313
py
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class LimitTransformUnitDepthRecursionMode(Enum): DISABLED = "DISABLED" LEVEL_1 = "LEVEL_1" LEVEL_2 = "LEVEL_2" LEVEL_3 = "LEVEL_3" LEVEL_4 = "LEVEL_4"
[ "openapi@bitmovin.com" ]
openapi@bitmovin.com
b11eff7cd71907dd1ef5d3d85b2f65a8f197cec1
27750e8d10776babf3ef459365e31f020071384b
/tensor2tensor/data_generators/desc2code_test.py
24b7568d0b862caca630bdcb5fbadcc04dc2b4d7
[ "Apache-2.0" ]
permissive
rmbrad/tensor2tensor
364da5e065075b363fc539cea67ce12008cbd23a
45a787e46b32bdb18b70f835cba0b3270267e19b
refs/heads/master
2021-05-16T17:10:10.342682
2017-08-11T23:21:37
2017-08-11T23:21:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,750
py
# coding=utf-8 # Copyright 2017 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ "rsepassi@google.com" ]
rsepassi@google.com
557b2ddc68afe5bdfefe61daf150e73970c74871
900b98964288a9cb0aaf2e45706ae2b32f92657f
/examples/adspygoogle/dfp/v201208/update_orders.py
bda89f799cad962bb451e7cf7fe364f5bbc28388
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
krux/adspygoogle
df2405c2042aa9c9a83d97b8442afe68572e3e2e
6505a71122f45fe3e675f27f2c29f67a1768069b
refs/heads/master
2022-02-22T08:55:19.777002
2022-02-11T22:42:19
2022-02-11T22:42:19
7,103,378
0
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "charlie@schluting.com" ]
charlie@schluting.com
263d4468d717c24d9dbb54540b3466b94e3b6850
6c46cde091086cc302fa417ad00283702221b487
/인프런/섹션 6/6. 중복순열 구하기/AA3.py
adcf3c6bc22fe5386e6d6fed6fd8f95e690d09fe
[]
no_license
Hugo-Oh/study_DataStructure
4da1e358ad1458f52075065d7bd54540cc8b8ad4
da492bbe0267d73cefb71c7ada129cfc41b7dcee
refs/heads/master
2023-06-19T14:40:14.590970
2021-07-21T15:07:11
2021-07-21T15:07:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
import sys #sys.stdin = open("input.txt", "rt") N, M = map(int, input().split()) arr = [0] * M cnt = 0 def DFS(n): global cnt if n == M: for i in arr: print(i, end = " ") print() cnt += 1 return else: for i in range(1, N + 1): arr[n] = i ...
[ "hyok28@yonsei.ac.kr" ]
hyok28@yonsei.ac.kr
3f2523ace4187d1f2fba4fa4a681546956844653
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_19/models/admin_api_token_response.py
03c5ebe3b8f1b0eba86d1b226fd09b8c7ece9747
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
3,841
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.19 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
[ "noreply@github.com" ]
PureStorage-OpenConnect.noreply@github.com
acfdefacf1fe49a47bbfeab9d602460b1834d794
097952b49b373e2a391cd7b7f32ac1732379beaa
/src/z3c/tabular/testing.py
a470ec0c1108886d51cc2dc0e97e3d75f2ce107b
[ "ZPL-2.1" ]
permissive
zopefoundation/z3c.tabular
d9942205aa1af3d62768ae702c403365ec9e7e54
e222b9cc245e044e4a38d1b64fe1aec79465ff1f
refs/heads/master
2023-06-21T20:17:56.129955
2020-12-16T16:12:51
2020-12-16T16:12:51
8,727,901
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
############################################################################## # # Copyright (c) 2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "marius@gedmin.as" ]
marius@gedmin.as
3d76d571204087973ff5d24b2ece337edc64f28d
be0a3aa7b83b87c5d2c257b538545bdded39c051
/Chatbot_KG/model/KE/HolE.py
7e95c8a6ef8798bcb9b6f12ab9a937dec413c0a4
[ "Apache-2.0" ]
permissive
water123li/Chatbot_CN
480e3bc6d6c0d8b6b0823452556acef14df1c2c3
e63808030c6cc516020075cdcd0c332120a998fc
refs/heads/master
2022-01-25T10:34:34.726243
2019-06-13T10:44:44
2019-06-13T10:44:44
192,504,292
1
0
Apache-2.0
2019-06-18T09:01:55
2019-06-18T09:01:55
null
UTF-8
Python
false
false
3,681
py
#coding:utf-8 import numpy as np import tensorflow as tf from .Model import Model class HolE(Model): def _cconv(self, a, b): return tf.ifft(tf.fft(a) * tf.fft(b)).real def _ccorr(self, a, b): a = tf.cast(a, tf.complex64) b = tf.cast(b, tf.complex64) return tf.real(tf.ifft(tf.conj(tf.fft(a)) * tf.fft(b))) ...
[ "charlesxu86@163.com" ]
charlesxu86@163.com
6253aae47154a92d62c55de0c48e638cda492064
6969dbf9ff8fabf811efa04cc76207e955c0d481
/simics/monitorCore/idaFuns.py
6430e8accb60cd4855aa86f78717c87114b37f66
[]
no_license
heruix/RESim
c6f5a1919afa6872d3175b5b4012ea2b45438797
bf514e9c08fced46ee752dd14d498971a059bc16
refs/heads/master
2020-06-16T13:40:32.389194
2019-07-06T00:14:48
2019-07-06T00:14:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,689
py
import os import json class IDAFuns(): def __init__(self, path, lgr): self.funs = {} self.lgr = lgr self.did_paths = [] #self.lgr.debug('IDAFuns for path %s' % path) if os.path.isfile(path): with open(path) as fh: jfuns = json.load(fh) ...
[ "mfthomps@nps.edu" ]
mfthomps@nps.edu
ffe101fce315842b655c25a42ead6035be8f11af
9b422078f4ae22fe16610f2ebc54b8c7d905ccad
/xlsxwriter/test/comparison/test_table26.py
b49983db23e74cea0ced01081727ac1e0965388c
[ "BSD-2-Clause-Views" ]
permissive
projectsmahendra/XlsxWriter
73d8c73ea648a911deea63cb46b9069fb4116b60
9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45
refs/heads/master
2023-07-21T19:40:41.103336
2023-07-08T16:54:37
2023-07-08T16:54:37
353,636,960
0
0
NOASSERTION
2021-04-01T08:57:21
2021-04-01T08:57:20
null
UTF-8
Python
false
false
1,139
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
7e15463225ac1ec4cf055441229ae9fc9583bf7c
19a32440205b2caeec67c73c10d917b5fb30a86a
/isi_sdk/models/groups_group_members.py
7588806de998c9e5618d140042d2af2c4dbe5e33
[ "MIT", "Apache-2.0" ]
permissive
marrotte/isilon_sdk_python
480e84312f5924a506aeb09c9c7cae79a2b9b7f4
91039da803ae37ed4abf8d2a3f59c333f3ef1866
refs/heads/master
2020-03-23T07:31:40.376316
2016-06-07T23:44:31
2016-06-07T23:44:31
141,277,076
1
0
MIT
2018-07-17T11:02:08
2018-07-17T11:02:08
null
UTF-8
Python
false
false
3,949
py
# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
[ "dmoxon@isilon.com" ]
dmoxon@isilon.com
81400f6a60d5ce716e6bfe14b26e3e9e580e1531
2293c76c3d18e2fcd44ded90bd40113d26285663
/pyeccodes/defs/grib2/tables/4/4_2_0_1_table.py
df23e0fdf6df61f8139bc1cf8b1185d7b5dd5ad9
[ "Apache-2.0" ]
permissive
ecmwf/pyeccodes
b1f121dbddf68d176a03805ed5144ba0b37ac211
dce2c72d3adcc0cb801731366be53327ce13a00b
refs/heads/master
2022-04-23T10:37:40.524078
2020-04-18T06:30:29
2020-04-18T06:30:29
255,554,540
9
3
null
null
null
null
UTF-8
Python
false
false
6,520
py
def load(h): return ({'abbr': 0, 'code': 0, 'title': 'Specific humidity', 'units': 'kg kg-1'}, {'abbr': 1, 'code': 1, 'title': 'Relative humidity', 'units': '%'}, {'abbr': 2, 'code': 2, 'title': 'Humidity mixing ratio', 'units': 'kg kg-1'}, {'abbr': 3, 'code': 3, 'title': 'Precip...
[ "baudouin.raoult@ecmwf.int" ]
baudouin.raoult@ecmwf.int
08e6f1e1db4df41d78df96ea52bdc0967f4d8f87
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/session_persistence.py
60f23e36214ae6ab55ee3ba9361efc5946182bfb
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,074
py
# coding: utf-8 import re import six class SessionPersistence: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
1143ef9ee7a22fa72650167e37cbfb456f031bf6
f7c5e3f5834206a7b0d1dadd773d1de032f731e7
/dmerce2/DMS/DGP/cipher.py
e22f959d5edf51dd21a61bfffe4001a9e3efd429
[]
no_license
rbe/dmerce
93d601462c50dfbbf62b577803ae697d3abde333
3cfcae894c165189cc3ff61e27ca284f09e87871
refs/heads/master
2021-01-01T17:06:27.872197
2012-05-04T07:22:26
2012-05-04T07:22:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,710
py
import mainlib class Cipher: "the base class for all blockcipher algorithms" def __init__(self, blocklen, wordlen, rounds, times): self.__blocklen = blocklen self.__wordlen = wordlen self.__rounds = rounds self.__wpb = self.__blocklen / self.__wordlen self.__times = time...
[ "ralf@art-of-coding.eu" ]
ralf@art-of-coding.eu
e1323e36e8c66e4c7d890636ed43c37dfb9b447c
9059d9cbad4188ed2980f551151b9678ffb68b44
/mycode/13_exception/user_exception.py
c1e32cf9426a407991ac8f3a3d2e38c4390e01b1
[]
no_license
mhee4321/python_basic
ad0e64fa21ecfab231a6627ba6abeea82d725690
86031975a9121efe5785e83f663255a7b4e4ba77
refs/heads/master
2023-02-11T20:31:54.353219
2021-01-07T05:44:31
2021-01-07T05:44:31
326,850,491
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# 사용자 정의 예외 클래스 선언 class NegativePriceException(Exception): # constructor 선언 def __int__(self): print("Price can't be Negative") raise AttributeError def calc_price(value): price = value * 100 if price < 0: # NegativePriceException를 강제로 발생시킨다. raise NegativePriceExceptio...
[ "nannanru@gmail.com" ]
nannanru@gmail.com
9e050f1bf998c8bf9bdb136685e56d99f8240ab7
8d910dcc2d15f1b21de02b9b46aee23c3f1df4cc
/004-median-of-two-sorted-arrays.py
ee0f710d58279c8e8e36102961dcef78cf9425df
[]
no_license
MonikaBhasin7/leetcode-1
a7fa6115a7d3b604f8a1abb311d4cdc43182edef
77ff978aa259bd7e5da0d70037503c83e8cc78cc
refs/heads/master
2020-08-08T06:39:48.724618
2019-10-08T21:48:02
2019-10-08T21:48:02
213,760,531
0
0
null
2019-10-08T21:41:21
2019-10-08T21:41:20
null
UTF-8
Python
false
false
1,816
py
""" Problem Link: https://leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assume nums1 and nums2 cannot be both empty. Example 1: nums1...
[ "anant.kaushik2@gmail.com" ]
anant.kaushik2@gmail.com
a85b8eda787f00e981f98efa8c36f34310fba38b
8370083dbbbd32740ad1862637809396dc7984e2
/paresh75/a1.py
ecd7b956c3d295ccc274e1b1a60f1a7febd2eb21
[]
no_license
parshuramsail/PYTHON_LEARN
a919b14aab823e0f5e769d8936ddbfb357133db2
8c76720bf73f13cf96930e6d4d5128e6ba9aa535
refs/heads/main
2023-07-14T16:25:26.240555
2021-08-29T17:10:19
2021-08-29T17:10:19
401,095,644
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
# READ #f=open("ram.txt","rt") #content=f.read(3) # read only 3 characters #print(content) #content=f.read(344) #print(content) #f.close() #f=open("ram.txt","rt") #content=f.read() ## print(line,end="") #f.close() #RADLINE() #f=open("ram.txt","rt") #print(f.readline()) # to print one line #print(f.readline())#to p...
[ "64275709+parshuramsail@users.noreply.github.com" ]
64275709+parshuramsail@users.noreply.github.com