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
9aa1072619ff28910eb25de8025ed58305f10edd
887f86963badac6d18c7aff8a3c421a104c27553
/tests/parallel_compile_test.py
31442343a507cc7badd89e4dd73288d44d9843f9
[]
no_license
monperrus/ProgramFix
3c63e69325f7f62e188bc39364732b8d01eb0635
64f7c943775664147333d1a3e73a3cb10d7d4aa4
refs/heads/master
2022-04-19T16:30:11.213078
2020-04-01T07:27:43
2020-04-01T07:27:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
import time import torch import torch.multiprocessing as mp from common.util import compile_c_code_by_gcc, add_pid_to_file_path code = r''' #include<stdio.h> int main(){ int a=0, b=0; printf("a %d, b %d", a, b); return 0; } ''' def single_compile(t, t2, t3): file_path = '/dev/shm/main.c' targe...
[ "lfsoftware13@gmail.com" ]
lfsoftware13@gmail.com
2d04fbbdf66c4e5920da4c8623add2101420dde2
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res_bw/scripts/client/postprocessing/effects/registrationtest.py
5c3fb643caa01e1e30ebf134795f6a69928f4cc7
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,561
py
# 2015.11.10 21:32:33 Střední Evropa (běžný čas) # Embedded file name: scripts/client/PostProcessing/Effects/RegistrationTest.py from PostProcessing.RenderTargets import * from PostProcessing.Phases import * from PostProcessing import Effect def registrationTest(): """This method creates and returns an effect that...
[ "info@webium.sk" ]
info@webium.sk
e79f14f557dacbb908035fe7ca6e7a047a415e2d
52b5773617a1b972a905de4d692540d26ff74926
/.history/fractions_20200802113728.py
a05bcf450aad3a1bc0890373f1e60c53efc7bcf9
[]
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
1,119
py
def fractions(numerator,denominator): if denominator == 0 : return str(numerator) number = numerator / denominator if numerator % denominator == 0: return str(numerator // denominator) newStr = str(number) print(newStr) largeStr = newStr.split(".") if len(largeStr[1]) > 1: ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
159796deaeb05034f4d4c49053556add18cc25fd
46018865ffe257281aa1c43885e827f173ff9226
/detectron/modeling/balanced_positive_negative_sampler.py
bb72a4c97af8d8bcad50ffc73656deac319eac09
[]
no_license
CzzzzH/detectron.jittor
c7218b1d5762509d3829f1d5598c3283919a91cc
4833beadace973943d44506f8d6ac6c78fc4ecdc
refs/heads/master
2023-03-16T22:07:33.263609
2021-03-23T11:04:43
2021-03-23T11:04:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,701
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import jittor as jt class BalancedPositiveNegativeSampler(object): """ This class samples batches, ensuring that they contain a fixed proportion of positives """ def __init__(self, batch_size_per_image, positive_fraction):...
[ "1905692338@qq.com" ]
1905692338@qq.com
9d9ba66ff8584c9faaef63f1a477dfda15bc3d11
9d8df81dbf36f8d0055f9fedddc9de96ef7176a5
/onmt/train_single.py
f1ad1839568c2e86b1d7f29ded85b7d91f6851e6
[ "MIT" ]
permissive
UKPLab/dlg19-dualgraph2text
a729959e011f41a3a7518d170a8b76ff16627315
bcee8a54e0b2d5c426769e5f0790751f1d64d430
refs/heads/master
2020-06-06T07:58:09.823963
2020-05-12T11:57:52
2020-05-12T11:57:52
192,684,276
0
0
null
null
null
null
UTF-8
Python
false
false
4,288
py
#!/usr/bin/env python """Training on a single process.""" import os import torch from onmt.inputters.inputter import build_dataset_iter, \ load_old_vocab, old_style_vocab from onmt.model_builder import build_model from onmt.utils.optimizers import Optimizer from onmt.utils.misc import set_random_seed from onmt.tr...
[ "ribeiro@aiphes.tu-darmstadt.de" ]
ribeiro@aiphes.tu-darmstadt.de
57331d7809d058a94f2c0824be6d9e3d9ea9aa1c
3d63fa8d216a497eccc925d3c867f35c29558e62
/teerace/blog/feeds.py
112ee61e085bb57472e5e36d9f7ce338e65ff704
[ "BSD-3-Clause" ]
permissive
SushiTee/teerace
4cfc8b099ce16a92bf6e4ab182825ac8468bb501
882fa50ab32ab0a17f79de94be449a9e1df1ee0c
refs/heads/master
2020-04-05T22:44:58.602778
2016-10-30T23:05:54
2016-10-30T23:05:54
1,143,437
4
1
null
null
null
null
UTF-8
Python
false
false
964
py
from django.contrib.syndication.views import Feed from django.utils.feedgenerator import Atom1Feed from blog.models import Entry class LatestEntriesFeed(Feed): feed_type = Atom1Feed title = "Teerace blog" link = "/blog/" subtitle = "Updates on changes and additions to Teerace." def items(self): return Entry.o...
[ "ksocha@ksocha.com" ]
ksocha@ksocha.com
40b264a2a7a42fa7994ebb73587882fbef85d153
99550e545d3f97fe3857ef9174dc96b162734305
/setup.py
ba3affe634a7eb7af30255195bc5c104d5817b47
[]
no_license
acorbat/earm
737f8f3c49a142cb17d565f82052718a745a1c1e
957d910aef856f62486898b29254339151c125aa
refs/heads/master
2021-05-17T05:14:52.950139
2020-10-28T01:07:17
2020-10-28T01:07:17
250,642,750
0
0
null
2020-03-27T20:42:21
2020-03-27T20:42:20
null
UTF-8
Python
false
false
778
py
#!/usr/bin/env python from distutils.core import setup def main(): setup(name='earm', version='1.0', description='Extrinsic Apoptosis Reaction Model', author='?', author_email='?', packages=['earm'], requires=['pysb'], keywords=['systems', 'bio...
[ "jmuhlich@bitflood.org" ]
jmuhlich@bitflood.org
97de15e456c355ec9f40b466da3dee64e2565326
994e5b7156a8c1429238facc1463ad1846f1a89a
/models/official/nlp/nhnet/trainer_test.py
93f38b1310743e914d541f3b2c92c837735a5a29
[ "Apache-2.0" ]
permissive
TrellixVulnTeam/Felect_M46O
f0c2a9a6c48695705e0b68c92c3a414bacfaa599
6d8b80e216c40233d2c1b9e51fe6f605a3b5ef4b
refs/heads/main
2023-04-22T11:33:59.448117
2021-05-06T13:01:12
2021-05-06T13:01:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
# Lint as: python3 # Copyright 2020 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 # ...
[ "noreply@github.com" ]
TrellixVulnTeam.noreply@github.com
df7160f60ce1dc8e7428d20bd95fcd302786a423
1da91735d1a4d19e62b2d19826d9a1e85d88d690
/dxpy/dxpy/utils.py
595b60955a6d9daac1886ebee086056f6762d58f
[]
no_license
Hong-Xiang/dxl
94229e4c20f0c97dfe21f8563889c991330df9c3
29aed778d1c699cc57d09666a20b4ca60196392f
refs/heads/master
2021-01-02T22:49:20.298893
2018-05-22T13:42:20
2018-05-22T13:42:20
99,401,725
1
1
null
2018-05-22T13:42:21
2017-08-05T05:34:35
Python
UTF-8
Python
false
false
1,382
py
import yaml import rx import logging from enum import Enum logger = logging.getLogger(name=__name__) class Tags: undifined = '<undifined>' def with_default(x, default=None): return x if x is not None else default def add_yaml_support_enum(cls, tag): fmt = 'YAML support added for {cls} with tag: {tag...
[ "hx.hongxiang@gmail.com" ]
hx.hongxiang@gmail.com
62399c895c41e76bdaddc4d7a707adedec85841e
94a511b7b31858d383be63ee5a3c1d3272bb6bf3
/global_vars.py
49969eaf4d16a8a3857e1ec156e462d0ce1d3199
[]
no_license
kolevatov/python_lessons
90bb3c2139e23cfc0f25f993c4ee636737e7daa8
ff9290d87a5bdc20ddfb7109015ddb48429a4dd8
refs/heads/master
2021-01-13T01:18:15.997795
2018-03-06T15:03:03
2018-03-06T15:03:03
81,450,169
1
0
null
null
null
null
UTF-8
Python
false
false
278
py
# How to read global variable, change and hide variable def read_global(): print (gl_var) def change_global(): global gl_var gl_var += 1 print(gl_var) def hide_global(): gl_var = 0 print(gl_var) gl_var = 100 read_global() change_global() hide_global()
[ "kolevatov@bpcbt.com" ]
kolevatov@bpcbt.com
70e75e62ddea6caf6230a2530294b2bb7f604572
802c002ecd90be6b489e0250ec4454a11c17ed1d
/src/assignments/assignment11/invoice.py
5780721e0e39370b05c9750f464757c8d72f0e77
[ "MIT" ]
permissive
acc-cosc-1336/cosc-1336-spring-2018-EricScotty
3a088285ae853a9ff5d747f2301f755c5e3749b3
80c0249a583dc178cfc7bb95b851d7f3240dc3e9
refs/heads/master
2021-09-14T05:54:02.132705
2018-05-08T23:27:04
2018-05-08T23:27:04
118,071,042
0
0
MIT
2018-04-23T02:51:05
2018-01-19T03:22:13
Python
UTF-8
Python
false
false
2,432
py
from customer import Customer class Invoice: def __init__(self, customer, date): #change bill_to parameter name to customer and modify code below to use customer class that self.customer = customer self.date = date self.invoice_items = [] self.invoice_total = 0...
[ "noreply@github.com" ]
acc-cosc-1336.noreply@github.com
bf2c09eb74705cbcef294571164f75eaaaa7e1d4
3663eb777d1007eeee4ad674df203a6afbfa9953
/_peuler/001-100/049.py
25f46ca6d8873d11a661109d06acb3773b00becb
[]
no_license
lhr0909/SimonsAlgo
5eeffa4048728e8bd9f1cae095b2fc6748d9f14c
fdfa18e33f5ff8e26e1832ea29216490d3c5973c
refs/heads/master
2016-09-06T20:18:38.627126
2015-04-18T03:30:22
2015-04-18T03:30:22
19,721,896
1
0
null
null
null
null
UTF-8
Python
false
false
599
py
def sieve(n): li = [True] * n li[0] = False li[1] = False for i in range(2, n): if li[i]: for j in range(i*i, n, i): li[j] = False return li primes = sieve(10000) for i in range(1000,10000): if primes[i]: for j in range(1, 10000): if i+j<1...
[ "no.lhr0909@gmail.com" ]
no.lhr0909@gmail.com
1276c568ee25e18f0439fb1b28c8d82559c15000
10abe784a87ce1f9b37383471af15c69db7087ed
/snippets/my_matplot.py
fabbee31624737bba7f20ff4848b99d90fad512b
[]
no_license
The-Cooper-Union-CS102/Lesson-7-Introduction-To-Python
e5f27dadbea27dda83bde7893771d39c0d4cb064
e663bb2e5373b19fd79553757c0ab52e9600518a
refs/heads/main
2023-01-24T13:03:21.161831
2020-11-24T22:51:54
2020-11-24T22:51:54
303,213,874
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
import numpy as np import matplotlib.pyplot as plt # Time from 0s to 5s in 0.2s intervals t = np.arange(0.0, 5.0, 0.2) plt.plot(t, t, 'r--', t, t**2, 'b--', t, t**3, 'g--')
[ "cory.nezin@gmail.com" ]
cory.nezin@gmail.com
724af356c6f624f63181da850e9d8be95e0fc152
74853c22225a6364adf218bc1509f66e47e10b5b
/config/renderman_subtasks_for_freq.py
12b35873f4317dffa008c96ab4ebf731b366914f
[]
no_license
yamins81/v1framework
6fe571a76419760503e27bb1ea9df6e07f4ce0e2
723737ad2b96a29f616370be7cbadf2acaabb5c3
refs/heads/master
2020-06-03T23:36:24.704693
2011-11-03T15:06:10
2011-11-03T15:06:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,598
py
from bson import SON import model_categories as mc def combine_ors(ors): import copy import itertools def combine_dicts(d): y = copy.deepcopy(d[0]) for dd in d[1:]: y.update(dd) return y return map(combine_dicts,itertools.product(*ors)) config = { 't...
[ "dyamins@gmail.com" ]
dyamins@gmail.com
3419a56a871f43d83226eec723da20f32dd1285e
7e27f55e562599e9c60dc879dbd31eb6f572c56f
/src/odin/odin/client/events.py
ddc612a0ab835b3b55fa2ce1b37c1c9c477224e6
[ "Apache-2.0" ]
permissive
cruelfate/odin
78cdf7fbf9235c02da51c275ad8f7c680482a9c3
3100d9529ffd383eba701e6cefb98b20e18123cc
refs/heads/master
2023-01-30T02:16:48.030192
2020-12-15T16:23:19
2020-12-15T16:23:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,860
py
"""Websocket client to get the k8s events that act on some resource.""" import json import asyncio import argparse import requests import websockets from odin import LOGGER, APIField, APIStatus from odin.k8s import Event from odin.client import ODIN_URL, ODIN_PORT from odin.utils.formatting import print_table async ...
[ "dpressel@gmail.com" ]
dpressel@gmail.com
62cda59afee099d2e9fbcb2f49da62a83972a3cd
2faf152deabb0476ac43d4754f3b529fd678a36d
/ch_15.py
2249e4bfe2616dfd5d547ae2ad2e5bf112c8c4c7
[]
no_license
Sakartu/matasano
46cba1325a01c41f6272f80b9fa698c6338c2e50
b42e5a2ce5daa2fcc6691873e995a4b0d05e03d2
refs/heads/master
2021-01-23T09:51:50.305296
2015-08-10T15:37:59
2015-08-10T15:37:59
32,535,769
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
#!/usr/bin/env python3 # -*- coding: utf8 -*- """ Usage: test_pkcs7_depad.py """ import util __author__ = 'peter' def main(): cases = [ (b"ICE ICE BABY\x04\x04\x04\x04", True), (b"ICE ICE BABY\x05\x05\x05\x05", False), (b"ICE ICE BABY\x01\x02\x03\x04", False), (b"ICE ICE BABY", F...
[ "sakartu@gmail.com" ]
sakartu@gmail.com
2e3a3b4b3eac47c42d6158ea9a62827f18da3a3b
93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3
/python/paddle/fluid/tests/unittests/test_inverse_op.py
fd540dcd741eef4c007eae19a982bc186c09d7d7
[ "Apache-2.0" ]
permissive
hutuxian/Paddle
f8b7693bccc6d56887164c1de0b6f6e91cffaae8
a1b640bc66a5cc9583de503e7406aeba67565e8d
refs/heads/develop
2023-08-29T19:36:45.382455
2020-09-09T09:19:07
2020-09-09T09:19:07
164,977,763
8
27
Apache-2.0
2023-06-16T09:47:39
2019-01-10T02:50:31
Python
UTF-8
Python
false
false
5,948
py
# Copyright (c) 2020 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
hutuxian.noreply@github.com
1b0ffe2dd55c9b0374bf8b13e2b64478b49dc350
5e76a420178dcb9008d6e4c12543ad0e3a50c289
/python/414.py
c1581b3f878959a987096683ca0c3d84f460a233
[]
no_license
LichAmnesia/LeetCode
da6b3e883d542fbb3cae698a61750bd2c99658fe
e890bd480de93418ce10867085b52137be2caa7a
refs/heads/master
2020-12-25T14:22:58.125158
2017-07-18T06:44:53
2017-07-18T06:44:53
67,002,242
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
# -*- coding: utf-8 -*- # @Author: Lich Amnesia # @Email: alwaysxiaop@gmail.com # @Date: 2016-10-19 20:03:27 # @Last Modified by: Lich Amnesia # @Last Modified time: 2016-10-19 20:03:29 class Solution(object): def thirdMax(self, nums): """ :type nums: List[int] :rtype: int """...
[ "lich@D-10-157-202-8.dhcp4.washington.edu" ]
lich@D-10-157-202-8.dhcp4.washington.edu
1e54ed6caa92737d6ee65aa5d86503d3a9446bff
5a7a3447d434a458a7bb63f2aa11b64c284d5492
/GUI/Pyqt5/watch-test_QTime.py
f07c68dbdb703a3f82498b7d3c7c8d9a4922beba
[]
no_license
woshimayi/mypython
35792e12036a7a05f12d3ef7006637b2b03f0e2e
7f1eb38e8585bf6d2f21d3ad0f64dace61425875
refs/heads/master
2023-09-01T08:59:12.301836
2023-08-30T05:30:54
2023-08-30T05:30:54
130,017,052
4
0
null
2018-12-02T16:18:14
2018-04-18T06:50:36
HTML
UTF-8
Python
false
false
2,107
py
import sys from PyQt5.QtWidgets import QWidget, QPushButton, QApplication, QListWidget, QGridLayout, QLabel from PyQt5.QtCore import QTimer, QDateTime class WinForm(QWidget): def __init__(self, parent=None): super(WinForm, self).__init__(parent) # 设置标题 self.setWindowTitle('QTimer ...
[ "woshidamayi@Gmail.com" ]
woshidamayi@Gmail.com
f192d223a1b44ec375e8f27b9d67b1fa237867a5
67a0edf1f41c33c8167e7f45e30b675cc48efdbd
/adm_uni/models/res_partner.py
62658e6c197177fc65a576b84329f287baadb915
[]
no_license
sgcalle/hhrr
bfe8ff3b4cfa23a4f26191a1c594bf91c1f9427d
3f1e5f5357f530cb78b422f4ba4f74eb8ac5d05e
refs/heads/master
2021-07-16T18:53:06.580329
2021-03-17T08:28:35
2021-03-17T08:32:24
240,117,974
0
0
null
2021-03-17T08:32:24
2020-02-12T21:21:57
Python
UTF-8
Python
false
false
380
py
''' Created on Feb 1, 2020 @author: LuisMora ''' from odoo import models, fields class ResPartnerExtended(models.Model): _inherit = ["res.partner"] uni_application_id = fields.Many2one("adm_uni.application", string="Application") uni_inquiry_id = fields.Many2one("adm_uni.inquiry", string="Inquiry") ...
[ "LuisAngelMalaveMora@gmail.com" ]
LuisAngelMalaveMora@gmail.com
4c94d341c7ed9394e6f892660ce26e800e02880c
3f2b2c885e81a15ed22b4a781bc2e8f5f264b336
/common/utilities/tests/test_secrets.py
21b6603fe9128e9f67ac8e11586a641529f85dee
[ "Apache-2.0" ]
permissive
nhsconnect/prm-deductions-integration-adaptors
9c947dbca3c5bf22874efb35364cd22b52acd795
17c78a2b2df3755736500d8b10f3e09c99263ef2
refs/heads/deductions
2021-07-20T11:13:59.339647
2020-12-22T09:48:09
2020-12-22T09:48:09
246,785,891
0
2
Apache-2.0
2021-04-30T21:57:17
2020-03-12T08:50:37
Python
UTF-8
Python
false
false
2,701
py
import io import logging import unittest from unittest.mock import patch import utilities.config as config from utilities import integration_adaptors_logger, secrets @patch.dict(secrets.secret_config) @patch("os.environ", new_callable=dict) class TestSecrets(unittest.TestCase): def test_setup_secret_config_popu...
[ "noreply@github.com" ]
nhsconnect.noreply@github.com
706ea25ecefebafa8f062e4adc7a616da5f682dc
1511782b2cc3dcf1f7e058e5046ec67a5561ba51
/AVC/NAIST/0501/b.py
006e7fd87291ef69b247c5f3c43408584879399c
[]
no_license
keiouok/atcoder
7d8a053b0cf5b42e71e265450121d1ad686fee6d
9af301c6d63b0c2db60ac8af5bbe1431e14bb289
refs/heads/master
2021-09-07T11:48:55.953252
2021-07-31T15:29:50
2021-07-31T15:29:50
186,214,079
4
0
null
null
null
null
UTF-8
Python
false
false
780
py
import sys, re, os from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import permutations, combinations, product, accumulate from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii...
[ "ko.yuka.kp2@is.naist.jp" ]
ko.yuka.kp2@is.naist.jp
95faf1ba3d1483bae707e17a168e975984e741eb
d4160cd906a4e3fa4173c09e1067b8d6e66dd207
/final_project/data_exploration.py
ea3e29f9d645a2aa3998936284437af6295404e9
[]
no_license
LevinJ/ud120-projects
8d0492207f249b83c5868a0ca3d43807984a435f
71669549ee0520a4142a24c66744ec86a6c5baea
refs/heads/master
2021-01-21T09:34:42.287718
2016-02-05T05:33:53
2016-02-05T05:33:53
49,031,047
0
0
null
2016-01-05T00:08:24
2016-01-05T00:08:24
null
UTF-8
Python
false
false
3,797
py
#!/usr/bin/python import sys import pickle sys.path.append("../tools/") import matplotlib.pyplot as plt from feature_format import featureFormat, targetFeatureSplit from tester import dump_classifier_and_data import tester import numpy as np import pandas as pd class Data_Exploration_Proxy: def __init__(self,da...
[ "jianzhirong@gmail.com" ]
jianzhirong@gmail.com
1e6758963cb17a36277cd799c1d4d2beea8ec192
3e07bd338a0103d9cd2b1ee578d1598119a2e9d7
/kattis/owlandfox.py
020849bc7411a25e58b20e7b0c078ac765ebf695
[]
no_license
CianLR/judge-solutions
1b6f05ee099237b26df6cce0880e5acea24b525e
96a2a3e9080bc532d87b194074cc0ddf9a51d8e9
refs/heads/master
2023-07-20T00:08:21.021733
2023-07-18T13:58:52
2023-07-18T13:58:52
84,674,947
8
3
null
null
null
null
UTF-8
Python
false
false
226
py
N = int(raw_input()) for _ in range(N): num = list(raw_input()) for i in range(len(num) - 1, -1, -1): if num[i] != '0': num[i] = str(int(num[i]) - 1) break print int(''.join(num))
[ "cian.ruane1@gmail.com" ]
cian.ruane1@gmail.com
363d2aaa16bc180f6037b22453a3f7b2605ca3fc
29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68
/lightly/openapi_generated/swagger_client/models/selection_input_predictions_name.py
b7864f0b30ad689c3f21528a65285f124798fed9
[ "MIT" ]
permissive
lightly-ai/lightly
5b655fe283b7cc2ddf1d7f5bd098603fc1cce627
5650ee8d4057139acf8aa10c884d5d5cdc2ccb17
refs/heads/master
2023-08-17T11:08:00.135920
2023-08-16T12:43:02
2023-08-16T12:43:02
303,705,119
2,473
229
MIT
2023-09-14T14:47:16
2020-10-13T13:02:56
Python
UTF-8
Python
false
false
1,037
py
# coding: utf-8 """ Lightly API Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: ...
[ "noreply@github.com" ]
lightly-ai.noreply@github.com
67f8544e8ebeca35cf45d8b94c5ac24a33614c5f
74951991a9e1dbe92d4999da9060409a9492bdc3
/fibonacci-number/fibonacci-number.py
6a9d97dfae5a7a87580fa33b234cda1313bb5ad2
[]
no_license
drpuig/Leetcode-1
fd800ee2f13c7ce03fa57c8a1d10b3aa6976d7c0
4ee104f3069c380e1756dd65f6ff6004554e6c0e
refs/heads/main
2023-07-15T08:57:32.971194
2021-08-21T08:29:24
2021-08-21T08:29:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
class Solution: def fib(self, n: int) -> int: if n <= 1: return n prev, cur = 0, 1 for _ in range(2, n + 1): prev, cur = cur, prev + cur return cur
[ "32110646+trungnguyencs@users.noreply.github.com" ]
32110646+trungnguyencs@users.noreply.github.com
6be194121dc332e7d39c6e8afb9d1a84c45efaed
3903b6df1b2ddaaf298a038d369cbbfe9559dcc9
/tensorpack/utils/timer.py
95d7678a5cf784eafcc55b84f78d362d90a0d6db
[ "Apache-2.0" ]
permissive
YongyiTang92/tensorpack
36fa87eb2d30a447445d01553aaa9d6cd397b84c
fed46d9186450d9d3764231e5bdf0bbc4a173c15
refs/heads/master
2020-04-17T06:47:12.563406
2019-01-18T03:48:57
2019-01-18T03:48:57
165,588,185
0
0
Apache-2.0
2019-01-14T03:18:29
2019-01-14T03:18:29
null
UTF-8
Python
false
false
2,695
py
# -*- coding: utf-8 -*- # File: timer.py import atexit from collections import defaultdict from contextlib import contextmanager from time import time as timer import six from . import logger from .stats import StatCounter if six.PY3: from time import perf_counter as timer # noqa __all__ = ['total_timer', 't...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
c4936708a22957e707c7cdbeb6e6a523bc2c89f7
8db5940186f1c8d9823de481644203e0041061d5
/Serial/模型搭建/(UnParallel)TSS-T6-Random/3.result_handling_valiation(Pluto32)_6_dsyr2k.py
31ceb491eb163c9a99333d05324c427f9bfb3b02
[]
no_license
CharlieCurry/TSS2.0
a2233d8066dd9326fdb45433fdfbd7f95d93db44
d3466de435b98bad459bdfa9556a8e18af40a643
refs/heads/master
2023-05-12T05:44:49.243273
2021-06-02T06:14:27
2021-06-02T06:14:27
372,784,146
1
0
null
null
null
null
UTF-8
Python
false
false
4,640
py
import numpy as np import pandas as pd #在加载csv文件之前,先手动把表头给去掉 # src = '_data_32' # # val_pre_data = np.loadtxt('prediction/valiation_prediction'+src+'.csv', delimiter=",") src = 'dsyr2k' val_pre_data = np.loadtxt('prediction/valiation_prediction_32'+src+'.csv', delimiter=",") #tmp现在是128*8的矩阵 print(val_pre_data.shape) ...
[ "2209832406@qq.com" ]
2209832406@qq.com
419eb37c29dbe3e80720e6f8f30de73aca9cd699
20eb522fca572d7d41d10690a2cef0c163532bd9
/generators/learning/learning_algorithms/PlacePolicyMSEFeedForward.py
a3cee3f15dd3772cc47fe001707c763f78029333
[]
no_license
beomjoonkim/guiding_gtamp_light
b5e0357a6996895b0d557f68686671e188c23446
a060f6c76574ed8c399913851d3a0edc13c98fab
refs/heads/master
2020-08-15T16:11:08.765550
2020-04-17T19:36:48
2020-04-17T19:36:48
215,368,489
0
2
null
null
null
null
UTF-8
Python
false
false
2,083
py
from keras.layers import * from keras.layers.merge import Concatenate from keras.models import Model from PlacePolicyMSE import PlacePolicyMSE import tensorflow as tf class PlacePolicyMSEFeedForward(PlacePolicyMSE): def __init__(self, dim_action, dim_collision, dim_pose, save_folder, config): PlacePolic...
[ "beomjoon@mit.edu" ]
beomjoon@mit.edu
9800244d0e15eda98d45acbc2a1281ae4922154a
4c331f04770529db05a212c3e374e276e58b1292
/myproject/myproject/settings.py
94aca1dde956ae1a73894e5b922ee05898a41c62
[]
no_license
KinyaElGrande/django_journey
e29f6a7c2cbea38550c9d218be685cc40b72f768
be8047a1f7d7bf8f95ba30b26e7b65c909379f0e
refs/heads/master
2020-03-23T14:22:20.708603
2018-07-20T06:24:41
2018-07-20T06:24:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,155
py
""" Django settings for myproject project. Generated by 'django-admin startproject' using Django 1.11.4. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import ...
[ "you@example.com" ]
you@example.com
4f167df729994f16f807b64d90eecd2aac161ea9
7426522061b222e8d3336b18ff941bb98ff9626c
/qtoggleserver/core/events/base.py
a6706fb74611aec54c1fc695d79548d29ac18f9c
[ "Apache-2.0" ]
permissive
DigitEgal/qtoggleserver
82833aaeb6f0bdad5f28243f132a639f4b406001
54b6ac53742af9529fd349d4fc207b0dc8a38d3b
refs/heads/dev
2023-05-07T14:49:11.273023
2021-04-30T20:40:08
2021-04-30T20:40:08
360,039,836
0
0
Apache-2.0
2021-04-21T05:18:08
2021-04-21T05:13:07
null
UTF-8
Python
false
false
2,305
py
from __future__ import annotations from typing import Optional import abc import logging import time from qtoggleserver import system from qtoggleserver.core import api as core_api from qtoggleserver.core.typing import GenericJSONDict from qtoggleserver.utils import logging as logging_utils logger = logging.getLo...
[ "ccrisan@gmail.com" ]
ccrisan@gmail.com
ce3cec0de68dae11308692b07fb76da1831af262
97062249c6eb04069c6fb01e71d06bc334c828e1
/apps/sqoop/src/sqoop/api/link.py
60d617562d77116559cc5bf417e01d64299c65d8
[ "Apache-2.0" ]
permissive
Albertsss/hue
1c8b31c64cc420a029f5b5b80712fb3d0c6cbd6e
454d320dd09b6f7946f3cc05bc97c3e2ca6cd485
refs/heads/master
2021-07-08T17:21:13.237871
2018-05-30T06:03:21
2018-05-30T06:03:21
135,386,450
0
1
Apache-2.0
2020-07-25T13:36:58
2018-05-30T04:06:18
Python
UTF-8
Python
false
false
5,440
py
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
[ "540227148@qq.com" ]
540227148@qq.com
f68e1ade572f958f306020e65b69207cfd3d76dc
4546398a18590e4e182629fb55d185547dd6df0a
/2019/problems/minesweeper/data/random_generator.py
6294fe5a290e2ab1b02767ab38464f7a670b51ca
[]
no_license
ForritunarkeppniFramhaldsskolanna/Keppnir
352341fa97c6349af65b513c03171f3e706f7db2
65c8eb5358d8a49f956edf76c2d47b9372accc3c
refs/heads/master
2023-04-28T15:33:36.396225
2023-04-23T15:00:15
2023-04-23T15:00:15
78,303,702
1
2
null
null
null
null
UTF-8
Python
false
false
611
py
import sys import random # Type of testcase: # 1: specific # 2: specific # 3: Given values st = int(sys.argv[1]) n = 0 m = 0 k = 0 if st == 1: n = random.randint(2,15) m = random.randint(2,15) k = random.randint(2,n*m) elif st == 2: n = random.randint(2,250) m = random.randint(2,250) k =...
[ "bjarki.agust@gmail.com" ]
bjarki.agust@gmail.com
672489e1ffbf17b0f7b4dc9533f29886af81be3a
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_22/models/protection_group_snapshot_patch.py
561c963a901609246bd040735cf9dedce19ead97
[ "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
6,691
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.22 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
3aeb0b415d39e6de176d2ceeec38a7458ca772e2
9afbb6993450d1e0c3bae68e86844bd06d4419ee
/class_progs/c31_1.py
7d0566894e6451c2a633e7fdcf997a9df42f60b5
[]
no_license
Jigar710/Python_Programs
6f331caac30878655d4cca4ad97d4214c0262088
714a6306487eb6712f32ccb51b6a2407a81873fa
refs/heads/main
2023-02-25T12:24:44.874199
2021-01-28T15:43:24
2021-01-28T15:43:24
332,869,164
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
class Test: def set(self): self.a = 10 t1 = Test() t2 = Test() t1.set() t2.set() print(t1.a) print(t2.a) t1.a = 99 print(t1.a) print(t2.a) t2.a = 999 print(t1.a) print(t2.a)
[ "jigar.shekhat.777@gmail.com" ]
jigar.shekhat.777@gmail.com
5dab2a3ceb3a6f68845a3517f76b730426c79e02
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2251/60787/244962.py
053fc0436c288cac261bf6877c0473ba04fd91be
[]
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
431
py
n=int(input()) points=[] for i in range(0,n): points.append([int(k) for k in input().split(",")]) max=0 for i in range(0,n-2): for j in range(i+1,n-1): for k in range(j+1,n): temp=points[i][0]*points[j][1]-points[i][0]*points[k][1]+points[j][0]*points[k][1]-points[j][0]*points[i][1]+points[k...
[ "1069583789@qq.com" ]
1069583789@qq.com
8bd6b2d83eec8e784eae017c49f4390002124b8d
aec9a1f3d1d36f19724e745ca4d09a20f67208dc
/api/work/inputs.py
c943596ba41c17ce74c29c6dab0a8129bc437194
[]
no_license
endlessor/open-united-backend
b1b1c3411d0d48bc79b35895c70f24d773ac7344
86f6905cce14b834b6bf059fd33157249978bd14
refs/heads/main
2023-04-29T13:35:28.529360
2021-05-17T14:16:39
2021-05-17T14:16:39
368,211,786
1
0
null
null
null
null
UTF-8
Python
false
false
819
py
import graphene class StackListInput(graphene.InputObjectType): stacks = graphene.List(graphene.String, required=False) class TaskListInput(graphene.InputObjectType): sorted_by = graphene.String(required=False) statuses = graphene.List(graphene.Int, required=False) tags = graphene.List(graphene.Stri...
[ "robcoder@hotmail.com" ]
robcoder@hotmail.com
5b4e9ce0f406faab229650c97a698c4b6b9abf81
ae7ba9c83692cfcb39e95483d84610715930fe9e
/yubinbai/pcuva-problems/UVa 10810 - Ultra Quicksort/main.py
83c6a91b9f5f98b1a70a14ed5bf4242f4eedd5cd
[]
no_license
xenron/sandbox-github-clone
364721769ea0784fb82827b07196eaa32190126b
5eccdd8631f8bad78eb88bb89144972dbabc109c
refs/heads/master
2022-05-01T21:18:43.101664
2016-09-12T12:38:32
2016-09-12T12:38:32
65,951,766
5
7
null
null
null
null
UTF-8
Python
false
false
2,513
py
''' Created on Jun 18, 2013 @author: Yubin Bai All rights reserved. ''' import time import bisect from multiprocessing.pool import Pool parallelSolve = False INF = 1 << 31 def solve(par): def invIndex(left, right): if left >= right: return 0 mid = (left + right) // 2 c1 = i...
[ "xenron@outlook.com" ]
xenron@outlook.com
189d5437b385b0447b378f7431351eb3aad277ed
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/pfnet_chainer/chainer-master/tests/chainer_tests/function_hooks_tests/test_debug_print.py
b5736a42a4f718215400630872452bbbd0233386
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
2,022
py
import unittest import chainer from chainer import cuda from chainer import function_hooks from chainer import functions from chainer import gradient_check from chainer import links from chainer import testing from chainer.testing import attr import numpy class TestPrintHookToLink(unittest.TestCase): def setUp(...
[ "659338505@qq.com" ]
659338505@qq.com
eae0da8249cafa76a62967f136587d6ea30c6de8
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/unsignedLong/Schema+Instance/NISTXML-SV-IV-atomic-unsignedLong-minInclusive-1-1.py
d6929619929bdf0f20fb36345429cb74d05f044c
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
300
py
from output.models.nist_data.atomic.unsigned_long.schema_instance.nistschema_sv_iv_atomic_unsigned_long_min_inclusive_1_xsd.nistschema_sv_iv_atomic_unsigned_long_min_inclusive_1 import NistschemaSvIvAtomicUnsignedLongMinInclusive1 obj = NistschemaSvIvAtomicUnsignedLongMinInclusive1( value=0 )
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
e2c0bffad42cca895dc047464441f0a0f2a9e293
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_frothing.py
307e6a0124c42aed819d8337748447c942105261
[ "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
235
py
from xai.brain.wordbase.nouns._froth import _FROTH #calss header class _FROTHING(_FROTH, ): def __init__(self,): _FROTH.__init__(self) self.name = "FROTHING" self.specie = 'nouns' self.basic = "froth" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
1aa94b425e7849cb3163cf0460267cfbe65a47f5
dc1bc9336cc8e1ff300472e7a4194a514195f0a4
/ex114.py
0fb84fc6a54a793a8da03e33eb114456f7874911
[]
no_license
Kanefav/Modules
b7f0f36f2aaf2c8ff22e1289467d34a5084fe1a6
d5b2e1ad810bad0812ced41b23b177cce19f5be3
refs/heads/master
2023-05-08T04:39:57.949839
2021-06-04T13:00:15
2021-06-04T13:00:15
367,135,224
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
import urllib import urllib.request try: site = urllib.request.urlopen('http://www.pudim.com.br') except urllib.error.URLE: print('O site não está acessível no momento', end='') else: print('O site está acessível no momento', end='') finally: print('.')
[ "gabrielfav12@gmail.com" ]
gabrielfav12@gmail.com
afe9d24f3d0471307c561d02d940ac608746d72a
8f64d50494507fd51c0a51010b84d34c667bd438
/BeautyForMe/myvenv/Scripts/rst2odt.py
f0b73d725993e02f245f8e07e2b6132f77de9df7
[ "MIT" ]
permissive
YooInKeun/CAU_CSE_Capstone_3
5a4a61a916dc13c8635d25a04d59c21279678477
51405c4bed2b55661aa0708c8acea17fe72aa701
refs/heads/master
2022-12-11T15:39:09.721019
2021-07-27T08:26:04
2021-07-27T08:26:04
207,294,862
6
1
MIT
2022-11-22T04:52:11
2019-09-09T11:37:13
Python
UTF-8
Python
false
false
833
py
#!c:\users\keun0\appdata\local\cau_cse_capstone_3\beautyforme\myvenv\scripts\python.exe # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice docum...
[ "keun0390@naver.com" ]
keun0390@naver.com
932267fcbc456589fc7debfd6cbe64b90eb569ff
c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb
/SelectDemo/server_select.py
9c6542e0a3118f471159e0b781c8f806ece41bcd
[]
no_license
GIS90/python_base_use
e55d55f9df505dac45ddd332fb65dcd08e8e531f
7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1
refs/heads/master
2020-04-02T08:33:49.461307
2018-10-23T03:33:41
2018-10-23T03:33:41
154,249,857
1
1
null
null
null
null
UTF-8
Python
false
false
230
py
# -*- coding: utf-8 -*- import select import socket import Queue SERVER_IP = ("127.0.0.1", 40001) input_list = [] output_list = [] message_queue = {} print "select server start" print "select server end"
[ "mingliang.gao@qunar.com" ]
mingliang.gao@qunar.com
8d2417c202aa785d0cc41681e11c153996919397
ed6e98d1eca1af6f173331bc3181e1ceb132fded
/infra_macros/macro_lib/convert/d.py
e53baf022443905d25a4611200b82e9f922428bd
[ "BSD-3-Clause" ]
permissive
elaa0505/buckit
38fce4f2b9e8aba1cfb86eda50e57bc4f8bef3bf
08406fc4255796bf038e7b4747596ccbb48317c6
refs/heads/master
2020-04-02T13:21:48.311606
2018-10-23T23:54:11
2018-10-23T23:57:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,927
py
#!/usr/bin/env python2 # Copyright 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
427d0fe246841fb899e1c6a215393baecd71edd3
1bc88efc5e2e547fa4ce1c1dde52194009a2ca4f
/forecasting/__init__.py
244394259c36a8968ee68837daf9767a8d7d5312
[ "MIT" ]
permissive
YetingWen/energy_management_system
8e8f8c0d0252d56556fc1989b89f67449dd3d534
b2af6a3cfa71173f33d798e943f605d802aed19f
refs/heads/master
2021-09-05T07:33:50.606107
2018-01-25T08:03:25
2018-01-25T08:03:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# Forecasting package for local energy management system # There are three stages of forecasting, i.e., short, middle and long term operation. # The load profile is forecasted by using the database in United States. # There is a weather station in Nanyang Technological University, where the database is used. # The for...
[ "matrixeigs@gmail.com" ]
matrixeigs@gmail.com
9629125cadaa77800354e9b1d760caf864b71a05
277f976227c7590f6de5e7991d8fbed23b6646fe
/euler/solution/p101.py
6b16be08ff55cfb7b560a0555d801136a5ee5e80
[]
no_license
domspad/euler
ca19aae72165eb4d08104ef7a2757115cfdb9a18
a4901403e442b376c2edd987a1571ab962dadab2
refs/heads/master
2021-01-17T14:04:39.198658
2016-07-25T23:40:10
2016-07-25T23:40:10
54,561,463
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
# 25 mins (wiht sympy) # In [43]: %time %run p101.py # 37076114526 # CPU times: user 120 ms, sys: 5.69 ms, total: 125 ms # Wall time: 132 ms from sympy.abc import x from sympy import interpolate def f(n): return sum( (-n)**i for i in xrange(11)) def optimal_poly(values): """ given [1,8,27] assume F(1) == 1, ...
[ "domspad@umich.edu" ]
domspad@umich.edu
8a29cc8ee20a8ff539d3352a798fb75ca09556bb
609085edf06f3091ecd639007480fb7cba15126f
/napari/_tests/test_interactive_transforms.py
23f5ab2b31ef2a0533ba82c5b29ce1acfba9d526
[ "BSD-3-Clause" ]
permissive
jojoelfe/napari
c7432daa6672045e95a58946c90ed0a5c779ef2d
c871c319247b79d4c5cc9270c0fec04740aed9d0
refs/heads/master
2023-05-12T17:08:48.145360
2022-12-21T16:25:43
2022-12-21T16:25:43
241,278,044
0
0
BSD-3-Clause
2023-05-01T02:58:28
2020-02-18T05:11:42
Python
UTF-8
Python
false
false
4,384
py
import numpy as np import pytest from vispy import keys from napari.components.overlays._interaction_box_constants import Box from napari.utils.transforms import Affine def check_corners_of_axis_aligned_interaction_box( box, *, top_left_corner=[0, 0], bottom_right_corner=None ): if not np.allclose(box[Box.TO...
[ "noreply@github.com" ]
jojoelfe.noreply@github.com
53b329963d1cf1221ea00c14da6e5ea1b13df5e9
010d94b2f9716f70b465df5dbb6118f9aa16dd31
/adv/jurota.py
595e525b4f616793552ea4bafc958502be87c6ca
[ "Apache-2.0" ]
permissive
CarelessParsley/dl
aa24c8f6216eba2de8e055e9768d4a0133b37159
6a72178be3abe7a2bce7ad480c81303cdc463e63
refs/heads/master
2020-05-19T08:09:22.971090
2019-05-05T02:14:30
2019-05-05T02:14:30
184,914,167
0
0
null
2019-05-04T15:45:17
2019-05-04T15:45:17
null
UTF-8
Python
false
false
409
py
import adv_test import adv from slot.a import * def module(): return Jurota class Jurota(adv.Adv): a1 = ('bk',0.2) comment = 'reach 100 resist with Saintly Delivery' conf = {} conf['slots.a'] = Saintly_Delivery()+RR() if __name__ == '__main__': conf = {} conf['acl'] = """ `s1 ...
[ "bblues@live.cn" ]
bblues@live.cn
7410c51686ff38947b7ccab67477456ddec554da
14449108de18a8e956830cd7d5107bb38de41c5d
/workshopvenues/venues/migrations/0002_auto__del_venues__add_facility__add_venue.py
e2963ae962cf7271b3be91d971baaae1276025b2
[ "BSD-3-Clause" ]
permissive
andreagrandi/workshopvenues
736e53ccb6ff0b15503e92a5246b945f615d2ff8
21978de36f443296788727d709f7f42676b24484
refs/heads/master
2021-05-16T03:00:23.879925
2014-03-18T15:10:00
2014-03-18T15:10:00
8,843,235
1
3
null
2015-10-26T11:11:20
2013-03-17T23:19:33
Python
UTF-8
Python
false
false
3,771
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting model 'Venues' db.delete_table(u'venues_venues') # Adding model 'Facility' db.cr...
[ "a.grandi@gmail.com" ]
a.grandi@gmail.com
d42b6370100dd8acd77cac0be7234f8eef3f2736
e770f16ec1d5e32bd220866e363f9793e0e1eab6
/promotores/urls.py
87993aed64aa890e64b34c3e3790413ae557383a
[ "MIT" ]
permissive
charlieweb/simasinnovacion
1f17cbb3570482e1a3c821b263a6a1b6ba58bc76
a662b67283f8aa38c7005418005d685d8ccbeef9
refs/heads/master
2020-12-25T09:09:00.807478
2013-10-04T21:42:18
2013-10-04T21:42:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
from django.conf.urls import patterns, url from django.views.generic import TemplateView urlpatterns = patterns('promotores.views', url(r'^$', TemplateView.as_view(template_name="index.html")), url(r'^inicio/$', 'inicio', name="inicio"), url(r'^promotores/$', 'promotor_index', name="lista_promotor"), u...
[ "crocha09.09@gmail.com" ]
crocha09.09@gmail.com
a22fe712a63450672e25df83f29b7c63f2d0f861
365e8e1f6bc5dfaddd8691f023c9ff022fbc77fe
/pyqs/worker.py
98b4f726b1ebb9df6112ad730868463394407502
[]
no_license
andrewgross/PyQS
40b4862a07e38e92092a61a57d9b1a3f762ffccc
9a49e8157c6582f45b4239f1be25a5136dfe4321
refs/heads/master
2020-12-28T21:17:17.522593
2013-04-30T02:41:32
2013-04-30T02:41:32
37,163,195
0
0
null
2015-06-09T23:00:08
2015-06-09T23:00:07
null
UTF-8
Python
false
false
5,348
py
#!/usr/bin/env python import fnmatch import importlib import logging from multiprocessing import Event, Process, Queue from optparse import OptionParser import os from Queue import Empty, Full import signal import sys import traceback import boto from pyqs.utils import decode_message PREFETCH_MULTIPLIER = 2 logger ...
[ "spulec@gmail.com" ]
spulec@gmail.com
7f56537afe6b9249c2e699da40f5fca896a21016
de6dc75873bd8615d22dd25c51f2fe3bc82cd7f8
/090.字符串相加.py
1cbad002b24eacbb60ef963c9b55d4b24a8ea186
[]
no_license
cuimin07/LeetCode-test
b9e87b4e353b09dfa84f62c24c2950d57656fff2
8f02b78dcbdefa154bb52c14a271998361e92a86
refs/heads/master
2020-08-14T13:37:27.799071
2020-01-13T03:11:40
2020-01-13T03:11:40
215,178,295
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
''' 给定两个字符串形式的非负整数 num1 和num2 ,计算它们的和。 注意: num1 和num2 的长度都小于 5100. num1 和num2 都只包含数字 0-9. num1 和num2 都不包含任何前导零。 你不能使用任何內建 BigInteger 库, 也不能直接将输入的字符串转换为整数形式。 ''' #答: class Solution: def addStrings(self, num1: str, num2: str) -> str: res = "" i, j, carry = len(num1) - 1, len(num2) - 1, 0 whi...
[ "noreply@github.com" ]
cuimin07.noreply@github.com
034ab8dc5efc4205cb70c474a64810190d043eb0
5b63850c1b6772f06db31f692e0e109ba7a1a3e5
/setup.py
c06caecc84c2771bed61cbf42c872a3bdabf6b0d
[ "MIT" ]
permissive
wukong4430/TensorPy
65530f7e9cae432a2c6b2888d051910767a63071
ab8c48a7685899ef095b0ba4feeab864ac3fedc3
refs/heads/master
2021-01-20T07:18:36.562237
2017-04-07T06:17:09
2017-04-07T06:17:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
""" The setup package to install TensorPy dependencies. *> This does NOT include TensorFlow installation. *> To install TensorFlow, use "./install.sh" """ from setuptools import setup, find_packages # noqa setup( name='tensorpy', version='1.0.13', url='http://tensorpy.com', author='Michael Mintz', ...
[ "mdmintz@gmail.com" ]
mdmintz@gmail.com
0489af32270b115b76f01c38d2aaba44e9cc4300
73208473ead4c2483e3685765fc000bd9972b506
/python/helpers/typeshed/stdlib/3/resource.pyi
f93f2b747b6757e839ce4612e28453b6c8ae5963
[ "MIT", "Apache-2.0" ]
permissive
code-general/intellij-community
a72bda439b374a08a2fb753e32ddeb4d494b0b98
a00c61d009b376bdf62a2859dd757c0766894a28
refs/heads/master
2023-02-12T04:29:56.503752
2020-12-30T04:29:00
2020-12-30T04:29:00
320,182,339
1
0
Apache-2.0
2020-12-30T06:58:32
2020-12-10T06:36:43
null
UTF-8
Python
false
false
1,253
pyi
import sys from typing import NamedTuple, Optional, Tuple, overload RLIMIT_AS: int RLIMIT_CORE: int RLIMIT_CPU: int RLIMIT_DATA: int RLIMIT_FSIZE: int RLIMIT_MEMLOCK: int RLIMIT_NOFILE: int RLIMIT_NPROC: int RLIMIT_RSS: int RLIMIT_STACK: int RLIM_INFINITY: int RUSAGE_CHILDREN: int RUSAGE_SELF: int if sys.platform == "...
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
1c4b760c132293f3dadaf732ef8bd0e19ba9efc3
1dfd0cfa78f8feb7f22537e3043650b17374866d
/client_side/data_share/Nodes.py
85cabfac007aff16caa7dd82c0b077ff7b522b0a
[ "MIT" ]
permissive
dawidsielski/medical-data-share
dcfa718ca9f2b57dec46937dced1383cd80f6897
e462ffcfe0650b4fed2bb113c331a2a7438a8509
refs/heads/master
2020-04-18T02:30:03.007252
2019-05-26T11:51:03
2019-05-26T11:51:03
167,165,192
0
0
MIT
2019-02-21T11:51:18
2019-01-23T10:36:31
Python
UTF-8
Python
false
false
1,372
py
import os import json import requests import urllib NODES_PATH = os.path.join('..', 'nodes') class Node(object): def __init__(self, ip_address=None, name=None, public_key=None): self.ip_address = ip_address self.name = name self.public_key = public_key def __str__(self): re...
[ "dawid.sielski@outlook.com" ]
dawid.sielski@outlook.com
81cdfce15fbc853215de5d8e7ed0081fbaa2b0ed
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayCommerceTransportAdPlanCertifyModel.py
5137b890f81de98352d1d28a0b4b6125f74a5f6e
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,393
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceTransportAdPlanCertifyModel(object): def __init__(self): self._ad_user_id = None self._plan_id = None @property def ad_user_id(self): return self._a...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
2020bb908b5edfbed6276d05582f865fb21c70a2
a92d2add8aea04da46f94c6ab1f0d1af0ee843aa
/qytPytorch/dataset/cv/image_classification/fashion_mnist.py
99f461f488a3b4ae85905b06db1c86aace54c731
[ "Apache-2.0" ]
permissive
q759729997/qytPytorch
34280445fb527b76b99b7b03c9f74eac34182d96
b9b4b6aeff67596c493871c0842dc72c5b66c548
refs/heads/master
2021-03-22T19:05:46.089603
2020-04-19T15:39:37
2020-04-19T15:39:37
247,394,065
0
0
null
null
null
null
UTF-8
Python
false
false
3,380
py
""" module(fashion_mnist) - FashionMNIST数据集常用. Main members: # get_dataset - 获取数据集. # get_data_iter - 获取数据集迭代器. # get_labels_by_ids - 根据标签id获取标签具体描述. # show_fashion_mnist - 展示图像与标签. """ import sys import torch import torchvision from matplotlib import pyplot as p...
[ "qiaoyongtian@qq.com" ]
qiaoyongtian@qq.com
daae63e431ab91c4e341c2efc1f9829fec71fde7
701bdfbdfb686e95d28ad9ddcf14030229948a15
/src/python/samplegen/imggen/RandomImgGen.py
4271446e5cc52ac55fee3922865343b7ab993563
[]
no_license
phildue/datagen
14f5ee5a1b279c8f3f2ce7225d28edddb6dd3d10
5e25dd1977ca5c200c5d4f304326289de6b96c64
refs/heads/master
2020-03-28T10:40:47.280523
2018-11-22T08:09:30
2018-11-22T08:09:30
148,133,586
4
0
null
null
null
null
UTF-8
Python
false
false
3,937
py
import glob import random from scipy import signal import numpy as np from samplegen.imggen.ImgGen import ImgGen from utils.imageprocessing.Backend import imread, replace_background, blur, noisy, convert_color, COLOR_BGR2YUV, resize from utils.imageprocessing.Image import Image from utils.imageprocessing.transform.Im...
[ "phild@protonmail.com" ]
phild@protonmail.com
2707779324a7597860f1fb3a414e4781b2e34981
2b5d81665eb7908663b5d684e3711b90d48ffe79
/0x00-lockboxes/0-lockboxes.py
0ef8177e6996bb20afa64701e986b584dc6b0b88
[]
no_license
jdarangop/holbertonschool-interview
5bdd3ae782911bf41a6e6d58c3f9a5b48798cf89
2398cc92a3b11d65fde3993799f28a104183dcdb
refs/heads/master
2023-02-14T15:18:49.998459
2021-01-02T18:58:19
2021-01-02T18:58:19
256,920,064
0
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
#!/usr/bin/python3 """ lockboxes 0 """ def inspectboxes(box, boxes, keys): """ Inspect every box recursively box: list keys: set """ # if type(box) != list: # return for i in box: if i not in keys and i < len(boxes): keys.add(i) print(keys) ...
[ "juandiegoap33@gmail.com" ]
juandiegoap33@gmail.com
0e8c46f510046244f76d979f1f5182c9b44bfd87
4dbbd3f9d9ef6321b8cffde7168bc36b5798f17b
/precisely/feature_matchers.py
a815fae67859acda7e7e246f7ab1863ff5fd372c
[ "BSD-2-Clause" ]
permissive
Python-Repository-Hub/python-precisely
51b713e18218de0effb25e05c304925c3e5a5845
7fad8a7e38fb626dfd42f9f788a0d92dc38ccdee
refs/heads/master
2023-03-16T09:39:41.654441
2021-03-06T16:28:11
2021-03-06T16:28:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
from .base import Matcher from .results import matched, unmatched from .coercion import to_matcher def has_feature(name, extract, matcher): return HasFeatureMatcher(name, extract, to_matcher(matcher)) class HasFeatureMatcher(Matcher): def __init__(self, name, extract, matcher): self._name = name ...
[ "mike@zwobble.org" ]
mike@zwobble.org
16b01b46ede7ac832987030822c21425ba517303
8ee5dcbdbd407eb5f294d430813b16eca22f571c
/data/HW5/hw5_429.py
ffc9b590f14c9da4632b58b352d39f5c956b366f
[]
no_license
MAPLE-Robot-Subgoaling/IPT
5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9
f512ea3324bfdceff8df63b4c7134b5fcbb0514e
refs/heads/master
2021-01-11T12:31:00.939051
2018-08-13T23:24:19
2018-08-13T23:24:19
79,373,489
1
1
null
null
null
null
UTF-8
Python
false
false
481
py
def main(): width = int(input("Enter width: ")) height = int(input("Enter height: ")) outline = input("Enter symbol for outline: ") fill = input("Enter symbol for fill: ") box = [None]*height n = 0 for i in box: box[n] = outline * width n = n + 1 for i in range(1, height-...
[ "mneary1@umbc.edu" ]
mneary1@umbc.edu
5d4f20807e8aa67f96b7f3b59d1f700d90282a99
affebfdede11ce995dbbe7bcba177985ff80bee4
/BParkingNano/python/particlelevelBPark_cff.py
fe27b8cab934c848cb7eab02e1ecc6ae68e28d92
[ "Apache-2.0" ]
permissive
sarafiorendi/BParkingNANO
5b24702b1c65cbbd6b90646714decc7f1c3c2931
e6d72440b9db887f5ba426a299fa07eb8c7b2ba5
refs/heads/master
2020-06-29T22:24:09.488125
2019-09-12T09:18:56
2019-09-12T09:18:56
200,642,115
0
0
Apache-2.0
2019-08-05T11:25:14
2019-08-05T11:25:14
null
UTF-8
Python
false
false
254
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.NanoAOD.particlelevel_cff import * particleLevelBParkSequence = cms.Sequence(mergedGenParticles + genParticles2HepMC + particleLevel) particleLevelBParkTables = cms.Sequence(rivetLeptonTable)
[ "arabella.martelli@cern.ch" ]
arabella.martelli@cern.ch
ca131774e526652ac833c574177b04d6056d53b7
aa160afbc98824d4b41ac9812026027a90997a96
/lib/pymedphys/_streamlit/apps/wlutz/main.py
cd75260434134e808fefecd6778fb6e3c6c5b083
[ "Apache-2.0" ]
permissive
dzwiedzn7/pymedphys
eb0d4ef37cc072db9aa4babb5b167143a0be78ef
df8c3f683012ad5d1d6f11fac1dec9762e09c8a7
refs/heads/main
2023-01-11T17:38:59.978936
2020-11-15T11:44:29
2020-11-15T11:44:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,768
py
# Copyright (C) 2020 Cancer Care Associates # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to ...
[ "me@simonbiggs.net" ]
me@simonbiggs.net
92f28c556463558c6c1a6f356fb40825efafd18e
302442c32bacca6cde69184d3f2d7529361e4f3c
/cidtrsend-all/stage3-model/pytz/zoneinfo/Indian/Mauritius.py
b18b9edafe1be8a08642998d53db24c88d917e2c
[]
no_license
fucknoob/WebSemantic
580b85563072b1c9cc1fc8755f4b09dda5a14b03
f2b4584a994e00e76caccce167eb04ea61afa3e0
refs/heads/master
2021-01-19T09:41:59.135927
2015-02-07T02:11:23
2015-02-07T02:11:23
30,441,659
1
0
null
null
null
null
UTF-8
Python
false
false
524
py
'''tzinfo timezone information for Indian/Mauritius.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Mauritius(DstTzInfo): '''Indian/Mauritius timezone definition. See datetime.tzinfo for details''' zone = 'Indian...
[ "learnfuzzy@gmail.com" ]
learnfuzzy@gmail.com
b5a43216a846621555f6f31246f16bc79570df50
bb225e111e620a8a43152ff356db62dc11c3d5e4
/allyears_plot_graphs_accuracies.py
6ec0ddcf11e40bbc5b2f01bfc088e221d3a90638
[]
no_license
Bharathkumar-nb/Spam-classification
70e060215e23dbaf91aba753a23ed3e55355b85f
f64166c2d5d4bfb94513f0c375ce03920ad6856c
refs/heads/master
2021-05-15T20:51:38.404751
2018-06-29T15:29:29
2018-06-29T15:29:29
107,911,049
0
0
null
null
null
null
UTF-8
Python
false
false
2,818
py
# imports import sys import os import matplotlib matplotlib.use('Agg') import pandas as pd import matplotlib.pyplot as plt from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics import confusion_matrix, accuracy_score, zero_one_loss, classification_report, roc_curve, auc, roc_auc_score...
[ "bharathkmr.nb@gmail.com" ]
bharathkmr.nb@gmail.com
0f0b84e439d9e0b1a10af2b03364afcb43e5e29a
e4cf70d4584c2e070f9f4813d19d3c570fcae5a7
/SKIN_LESION/GRAD_CAM/load_model.py
31af5a407e38d4f2945e2c31353a4e7b7a029725
[]
no_license
Jimut123/drrmsan_tests
ef16294655886f44eac81884196eb298f29f5bf5
5629a50641e039200b75fc53019e27602dc81302
refs/heads/main
2023-04-05T21:14:44.170485
2021-05-10T10:14:44
2021-05-10T10:14:44
343,124,526
0
0
null
null
null
null
UTF-8
Python
false
false
3,506
py
import glob import os import cv2 import glob import numpy as np import pandas as pd from tqdm import tqdm import matplotlib.pyplot as plt from keras.layers import Input, Conv2D, MaxPooling2D, Conv2DTranspose, concatenate, BatchNormalization, Activation, add from keras.models import Model, model_from_json from keras.opt...
[ "jimutbahanpal@yahoo.com" ]
jimutbahanpal@yahoo.com
15a3049df3b3050a99b6d93aee87bd042eae3df6
2f590fc0566816c26c9893000c3079bc974cc298
/basis/data/dict_1.py
bc73ff7751cd7f824e8b676e899868cbb3f808ac
[]
no_license
renyi1314/Source-code
760ead67d948781d6859412d9f66a8c87f4dc094
2acc68486fb8be6d42bb043633d3e2297744d4c7
refs/heads/master
2021-04-12T09:55:37.983379
2019-11-09T03:18:08
2019-11-09T03:18:08
126,342,536
1
0
null
null
null
null
UTF-8
Python
false
false
864
py
# employees = [ # {"id": "0001", "name": "zs", "sex": "man", "age": "34"}, # {"id": "0002", "name": "ls", "sex": "women", "age": "20"}, # {"id": "0003", "name": "xs", "sex": "man", "age": "19"}, # ] # print("id\tname\tsex\tage\t") # for employee in employees: # print("%s\t%s\t%s\t%s" % (employee["id"], ...
[ "541421397@qq.com" ]
541421397@qq.com
f50ff40d44e8bf8ef885df2a1821b2d6b81a0042
37db56765276c0835a2c7e3955c412ce204836c1
/496.py
c377b06ce34dce1bbe2a69fdce41fe97365c6378
[]
no_license
supperllx/LeetCode
9d0a3a7258d1cff6afa6e77f61a2e697834914ca
df3a589ea858218f689fe315d134adc957c3debd
refs/heads/master
2023-05-01T06:57:17.403568
2021-05-19T18:29:25
2021-05-19T18:34:03
288,351,041
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
class Solution: def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]: # d = dict(zip(nums2, range(len(nums2)))) # i2 = 0 # for i1 in range(len(nums1)): # n1 = nums1[i1] # nums1[i1] = -1 # for i2 in range( d[n1],len(nums2) ):...
[ "supperllx@outlook.com" ]
supperllx@outlook.com
914a830bb2360823d2676ad7c64db38c188eb53a
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/tests/test_add_component.py
77ee995d33cb86e81a62a2449fddb3b4bc26cd25
[ "Apache-2.0" ]
permissive
RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
2023-09-14T02:40:13
2017-05-26T14:23:11
Python
UTF-8
Python
false
false
341
py
from insights import combiner from insights.tests import archive_provider, InputData @combiner() def one(): return 1 @combiner() def two(): return 2 @combiner(one, two) def three(x, y): return x + y @archive_provider(three) def integration_tests(): data = InputData() data.add_component(two, ...
[ "noreply@github.com" ]
RedHatInsights.noreply@github.com
9834822eff9e5bba16cc219595322861c8b86fda
2510867dee64eac4bb0a516c526fe8eec26f439d
/L1Trigger/L1THGCal/test/testHGCalL1TBestChoice_cfg.py
8f79f81a7ca6d330fd4d91e65454c0622fae93f5
[]
no_license
Alex2671/cmssw
ad7a59b6b108cfe3544ed77466fc3a32fbf3f140
84aecc72f7d2daafdc7ddff8960e5eac4619f172
refs/heads/CMSSW_8_1_X
2021-01-21T18:43:45.759124
2016-07-28T09:58:54
2016-07-28T09:58:54
64,415,926
1
0
null
2016-07-28T17:42:17
2016-07-28T17:42:17
null
UTF-8
Python
false
false
5,543
py
import FWCore.ParameterSet.Config as cms process = cms.Process('SIMDIGI') # import of standard configurations process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventCo...
[ "lindsey.gray@gmail.com" ]
lindsey.gray@gmail.com
0dfba420d8dba0fee27e3b15c2895125a62e3fbb
c6f4432843df7a1b11bccc669c50999b1ce50d04
/code/abc118_c.py
283f212b09e3f51f2d7b371f88ea0ee871609122
[]
no_license
RyujiTamaki/atcoder
201c1f4ccaf312ae2a9ef055a1373b37ed0b1c4d
eccd89bb1b4860ffb1ef39ad7230c17e7d6690a8
refs/heads/master
2022-11-19T13:34:37.587892
2020-07-26T11:05:36
2020-07-26T11:05:36
259,202,261
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
import math from functools import reduce def gcd_list(numbers): return reduce(math.gcd, numbers) N = int(input()) A = list(map(int, input().split())) print(gcd_list(A))
[ "e44119rt@gmail.com" ]
e44119rt@gmail.com
17c1c1a330e679635893e8507b0744f738fc14bf
72f5ae3c71085c7c364a3c5cfe2587fe9542828d
/src/briefcase/commands/dev.py
e930200eb0803130c2e1fb8c622b1be2fecfc6c6
[ "BSD-3-Clause" ]
permissive
paulproteus/briefcase
f8d712b51a0105002af9f47695276b5f6bb3bd40
9d00dc9300cb00ef5dcd766e3a625a94b0462e51
refs/heads/master
2021-02-05T22:11:54.182550
2020-02-22T02:29:46
2020-02-22T02:29:46
243,840,856
0
0
BSD-3-Clause
2020-02-28T19:38:35
2020-02-28T19:38:34
null
UTF-8
Python
false
false
4,796
py
import os import subprocess import sys from typing import Optional from briefcase.config import BaseConfig from briefcase.exceptions import BriefcaseCommandError from .base import BaseCommand from .create import DependencyInstallError, write_dist_info class DevCommand(BaseCommand): cmd_line = 'briefcase dev' ...
[ "russell@keith-magee.com" ]
russell@keith-magee.com
daa34cdfe4f6913dca6626e0b05766a01ea7a935
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/3149.py
6a114f5fdd5a72552b8c8e6695156092dbbc1fc2
[]
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
800
py
T = int(raw_input()) for i in xrange(0, T): #read line by line only #skip lines based on displacement guess = int(raw_input()) for g in xrange(0, guess): row1 = raw_input().split() row1 = set(row1) #get second guess for g in xrange(0, 4-guess): raw_input() ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
cdde17e7eb916bc2e0a0771dadee101784dc5eac
3591ab22e1cc0fc1362f909017a8aa5c2b53bd92
/FundNavSpiders/20180530_sxh_JiaMoZiBenInvest.py
38e44e32c41d3523ae7a681995661e760dc8f5b3
[]
no_license
Wnltc/ggscrapy
ef7e9559ce6140e7147f539778e25fc7f6cbee4c
bf929112e14b875a583803fe92980fe67129bdac
refs/heads/master
2023-03-15T22:00:45.377540
2018-06-06T02:19:14
2018-06-06T02:19:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
# -*- coding: utf-8 -*- # Department:保障部 # Author:宋孝虎 # Create_Date:2018-05-30 from datetime import datetime from FundNavSpiders import GGFundNavItem from FundNavSpiders import GGFundNavSpider class JiaMoZiBenInvestSpider(GGFundNavSpider): name = 'FundNav_JiaMoZiBenInvest' sitename = '嘉谟资本' channel = '投顾...
[ "songxh@go-goal.com" ]
songxh@go-goal.com
195088819905003da0665f9a9045e97873b12b85
390a50c30a23e869c87a4a7a3fef2828bc4baf9c
/news/email.py
121101e4d53d7788121ed826ad7314f57a94c976
[]
no_license
GeGe-K/Tribune
d519c007eba0e2418c17c317e658fb2b9cae9c23
4fdeec619bfe2e9b4cb4c7eee14a3218f735fae9
refs/heads/master
2020-04-09T23:32:09.033505
2018-12-10T12:46:33
2018-12-10T12:46:33
160,659,571
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string def send_welcome_email(name,receiver): # Creating message subject and sender subject = 'Welcome to the MoringaTribune NewsLetter' sender = 'james@moringaschool.com' # passing in the context vai...
[ "gloriagivondo@gmail.com" ]
gloriagivondo@gmail.com
4b3979e8dedb73533f1845db0b419e2926fd1b27
fcdbf22231739b61bbd4da531fcacf0c6f08c4bf
/services/random_forest_classifier/src/ml_models/models/random_forest_classifier.py
290ed030a534af7ecc1a36196e53b412cd0e4c01
[]
no_license
revotechUET/wi-uservice
2a3f169a4a9735bb3167d8bef75baceab11b2a04
33f2ad2f0a329fc1f54153b0ebb775f2bd74d631
refs/heads/master
2023-04-15T14:58:36.183521
2023-04-07T09:39:48
2023-04-07T09:39:48
179,446,650
0
1
null
2022-12-08T01:51:59
2019-04-04T07:39:07
Python
UTF-8
Python
false
false
1,299
py
from src.ml_models import result from src.ml_models import validator from typing import List, Dict #from sklearn.base import BaseEstimator from .random_forest_classifier_estimator import WiEstimator as RandomForestClassifierEstimator RandomForestClassifierParameters = [ { "name": "num_trees", "typ...
[ "thinhlevan2015@gmail.com" ]
thinhlevan2015@gmail.com
d2f7cf8dbeb59f78ce5e81901064b151cb4b46a4
edb10a06f56d9bd19b0b60581728900a03d9732a
/Python/leetcode/BestTimeToBuyAndSellStockIii.py
6767f09611f7e55a62317b76a61f774e95c0337a
[ "MIT" ]
permissive
darrencheng0817/AlgorithmLearning
3ba19e6044bc14b0244d477903959730e9f9aaa8
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
refs/heads/master
2021-01-21T04:26:14.814810
2019-11-22T06:02:01
2019-11-22T06:02:01
47,100,767
2
0
null
null
null
null
UTF-8
Python
false
false
372
py
''' Created on 1.12.2016 @author: Darren '''''' Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You may not engage in multiple transactions at the same time (ie, you...
[ "darrencheng0817@gmail.com" ]
darrencheng0817@gmail.com
4cb32482470a9518e33709e13e68a1b2d9050b47
2b3e9b32a38f4992c529de56b4baa51e1a674c4e
/ccui/core/management/commands/create_company.py
e497fc91508f566d58491379e3f3f9b1136f0a34
[]
no_license
camd/caseconductor-ui
2c4f63fd6c20ee421012d8770b3b873c1b4f4232
deb6b22ed417740bf947e86938710bd5fa2ee2e7
refs/heads/master
2021-01-18T05:36:22.647236
2011-10-10T14:48:29
2011-10-10T14:48:29
2,447,257
0
0
null
null
null
null
UTF-8
Python
false
false
3,258
py
from django.core.management.base import BaseCommand, CommandError from ...auth import admin from ...models import Company, CompanyList from ....users.models import Role, RoleList, PermissionList DEFAULT_NEW_USER_ROLE_PERMISSIONS = set([ "PERMISSION_COMPANY_INFO_VIEW", "PERMISSION_PRODUCT_VIEW", ...
[ "carl@oddbird.net" ]
carl@oddbird.net
d06e52bbc7cec5ef8b2d9808c6ba04c8c53fe4b9
f18d14f21c9a06162804751a3fcc01c86e8e3fc8
/examples/caffe2/export.py
3d4f5b4d8d39fbd84b366adab23361af74024a95
[ "MIT" ]
permissive
Hakuyume/onnx-chainer
8d6cc61a06ada52aba73b3bf526cd16c4e277a15
3c46bd692ef38a7c0f45a2a09795d2023364e12b
refs/heads/master
2020-03-22T05:19:12.619953
2018-04-26T04:59:56
2018-04-26T05:12:13
139,557,461
0
0
MIT
2018-07-03T09:08:18
2018-07-03T09:08:17
null
UTF-8
Python
false
false
1,205
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import chainer import chainer.links as L import numpy as np from onnx_caffe2.backend import Caffe2Backend from onnx_caffe2.backend import run_model from onnx_caffe2.helper import save_caffe2_net import onnx_chainer # Instantiate a Chainer model (Chain object) model = L.V...
[ "shunta.saito@gmail.com" ]
shunta.saito@gmail.com
bb70586cce826a46bba16a89c9bfae19787e8dcd
eb7047d5a8c00d4370a55c2806a2f051287b452d
/tests/pytests/apps/TestEqInfoApp.py
6a8b4a6e575b4142ff9b02418b41b74ca8f6996c
[ "MIT" ]
permissive
mousumiroy-unm/pylith
8361a1c0fbcde99657fd3c4e88678a8b5fc8398b
9a7b6b4ee8e1b89bc441bcedc5ed28a3318e2468
refs/heads/main
2023-05-27T18:40:57.145323
2021-06-09T19:32:19
2021-06-09T19:32:19
373,931,160
0
0
MIT
2021-06-04T18:40:09
2021-06-04T18:40:09
null
UTF-8
Python
false
false
1,064
py
#!/usr/bin/env nemesis # # ====================================================================== # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://g...
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
7347075ae797bd68b0366d78ff118f361983299d
396f93d8e73c419ef82a94174815a2cecbb8334b
/.history/tester2_20200321194526.py
6002ea86827eaf7212db65c6affeca178424df3a
[]
no_license
mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch
8c73d9448b916009c9431526864a4441fdeb682a
90b2dca920c85cddd7c1b3335344ac7b10a9b061
refs/heads/master
2021-03-26T21:16:42.561068
2020-04-17T21:44:26
2020-04-17T21:44:26
247,750,502
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
import os import subprocess import re from datetime import datetime import time final_solution = [] print("Test for 5 0 10") for i in range(0, 10): process = subprocess.Popen(['./algo_tabou.exe', '20', '0', '10', 'distances_entre_villes_10.txt'],stdout=subprocess.PIPE,stderr=subprocess.PIPE) stdout, stderr ...
[ "farzam.mirmoeini@gmail.com" ]
farzam.mirmoeini@gmail.com
9dee1d280590009e3bf6223420277ebb9ac2d138
74b6523512f17f4c18096b956e4c3c074b53cf4c
/system/classPredict/newsPredict.py
f638051a05abd6dd65baeb97177a175774ae1093
[]
no_license
howie6879/getNews
f7fdbd310c0e48a8a2c74504aa27893d25354ba1
ab5ad56c8520e60d5f568deed0081dfc127b7cd9
refs/heads/master
2020-05-21T23:49:40.805281
2017-04-02T03:51:33
2017-04-02T03:51:33
59,347,631
49
23
null
null
null
null
UTF-8
Python
false
false
2,023
py
import os import jieba import jieba.analyse from config.n_conf import dirPath class NewPredict(object): def __init__(self,data_list): self.data_list = data_list self.ft = open(dirPath + "/system/classPredict/NavieBayesInfo/predict_new_word.txt", 'w') #存放 单词:对应唯一id 的字典 ...
[ "xiaozizayang@gmail.com" ]
xiaozizayang@gmail.com
89683ab9c35f01aab56e2f95fe2fac0368f2522e
f4d5a8935ffcb78e4dc82814e030686f887e6675
/BinaryTreeImplementation.py
d2dda1d3d5238428d18b3b91fb392b9bc0f21745
[]
no_license
INNOMIGHT/data-structures-using-python
dc2e72fb2f8ad0f6f14520c38210c723b9f85c6a
91a05b35abc505b8287d15628e3736c0059f6bd8
refs/heads/master
2023-02-11T23:30:09.640597
2021-01-09T08:03:11
2021-01-09T08:03:11
287,344,580
1
0
null
null
null
null
UTF-8
Python
false
false
702
py
def BinaryTree(r): return [r, [], []] def insertLeft(root, newBranch): t = root.pop(1) if len(t) > 1: root.insert(1, [newBranch, t, []]) else: root.insert(1, [newBranch, [], []]) return root def insertRight(root, newBranch): t = root.pop(1) if len(t) > 1: root...
[ "iammagnificient@gmail.com" ]
iammagnificient@gmail.com
c41d1525b8d11b8b6b95c948b9ac572ecc545868
b5d6219ac738ed05485439540f38d63d21694c51
/DAT/ED6_DT01/T1401.柏斯.py
5ec0141be47fa681c78460016a54333f7d9ddfbe
[]
no_license
otoboku/ED6-FC-Steam-CN
f87ffb2ff19f9272b986fa32a91bec360c21dffa
c40d9bc5aaea9446dda27e7b94470d91cb5558c5
refs/heads/master
2021-01-21T02:37:30.443986
2015-11-27T07:41:41
2015-11-27T07:41:41
46,975,651
1
0
null
2015-11-27T10:58:43
2015-11-27T10:58:42
null
UTF-8
Python
false
false
5,721
py
from ED6ScenarioHelper import * def main(): # 柏斯 CreateScenaFile( FileName = 'T1401 ._SN', MapName = 'Bose', Location = 'T1401.x', MapIndex = 1, MapDefaultBGM = "ed60084", Flags = 0, ...
[ "Hiromi.Kaede@gmail.com" ]
Hiromi.Kaede@gmail.com
067465392bfa4f5fa02dc95957d86dffd2faf4c5
875bb84440094ce058a2ec25a661a7da6bb2e129
/algo_py/boj/bj1541.py
9feb0a3d9d9c33ee588f08d7db7c0e50f82af440
[]
no_license
shg9411/algo
150e4291a7ba15990f17ca043ae8ab59db2bf97b
8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d
refs/heads/master
2023-06-22T00:24:08.970372
2021-07-20T06:07:29
2021-07-20T06:07:29
221,694,017
2
0
null
null
null
null
UTF-8
Python
false
false
381
py
s = input()+' ' v = 0 minus = False t = 0 for idx in range(len(s)): if s[idx] == '+' or s[idx] == ' ': if not minus: v += t else: v -= t t = 0 elif s[idx] == '-': if not minus: v += t else: v -= t minus = True ...
[ "shg9411@naver.com" ]
shg9411@naver.com
5d45ae9e62a75215a688453f4baddd4431a2640a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/1122.py
8f7b7ab5d4b9099dbab9dc89e71c6ef8a55177aa
[]
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
635
py
def istidy(n): n = str(n) for i in range(len(n)-1): if n[i] > n[i+1]: return False else: return True for case in range(1, int(input()) + 1): n = input() tidy_n = int(n) while not istidy(tidy_n): N = [int(c) for c in str(tidy_n)] for i in range(len(N...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
3e50cd77fb1a0c426b48d2fb3b05e6aa7848f401
3738cfe016e577588cd1b04315a01ed4b5755363
/deps/sphinxbase/src/libsphinxbase/fe/make_log_sub_table.py
5a1009df6a062eb5014b86744d7748ecf27be2f5
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
synesthesiam/pocketsphinx-python
fb3b07a0d0b0b6a2b5f4249d9886123176aa0634
4bc446c11c8aa7e968d1ed27ee86f822b5aba830
refs/heads/master
2020-04-09T01:21:02.254770
2018-12-01T02:19:39
2018-12-01T02:19:39
159,900,799
2
3
null
null
null
null
UTF-8
Python
false
false
937
py
#!/usr/bin/env python import math radix = 8 scale = 1<<radix out_radix = 10 out_scale = 1<<out_radix byx = 0. logtab = [] while True: if byx < 1: lobyx = (math.log(-math.expm1(-(byx + 1.)/scale)) - math.log((byx + 1.)/scale)) / 2.0 else: lobyx = (math.log(-math.expm1(-byx/sca...
[ "hansen.mike@gmail.com" ]
hansen.mike@gmail.com
97a8ca35a390a961f1ee910e82cd0f07dc0459ca
97e557d328b89adbd1459f8988a12ec3a9f4adc7
/flume/setup.py
88eee05fee6deaa01a5d6e3f081b40a7bdcb7968
[]
permissive
DataDog/integrations-extras
1b9c9928af4e5a146b9611aed29db206f420710c
1d20f8d945ef802fa6e01b41b6ba99148ac508a4
refs/heads/master
2023-08-31T04:01:33.555722
2023-08-30T18:51:09
2023-08-30T18:51:09
51,574,196
221
667
BSD-3-Clause
2023-09-14T16:07:56
2016-02-12T07:55:28
Python
UTF-8
Python
false
false
2,300
py
from codecs import open # To use a consistent encoding from os import path from setuptools import setup HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, 'datadog_checks', 'flume', '__about__.py')) as f: exec(f.read(), ABOUT) # Get the long description from the...
[ "noreply@github.com" ]
DataDog.noreply@github.com
8f78e6f59d70830d473578321232c7add142d678
f43d06f21185c86dca64be6ae84c20660c2ba722
/terrain/management/commands/update_terrains.py
e1227e66f00e2a5c97a3831cd9af6b6c8d73baa0
[]
no_license
bartromgens/petanque-map-server
2f91eb75d50565cfca6065696ee3fd79f37b43cf
0b9078f4f129e52322c7e7d5782ca57c3e2ee434
refs/heads/master
2022-05-05T21:11:42.785104
2020-05-16T09:35:01
2020-05-16T09:35:01
133,956,427
0
0
null
2022-04-22T20:52:50
2018-05-18T13:14:44
Python
UTF-8
Python
false
false
409
py
from django.core.management.base import BaseCommand from terrain import factory from terrain import overpass class Command(BaseCommand): help = 'Get all petanque terrains in the world' def handle(self, *args, **options): responses = overpass.get_terrains_world(responseformat='json') for resp...
[ "bart.romgens@gmail.com" ]
bart.romgens@gmail.com
0239c5fa2fe8dc621bbf71f6cd56aecd44e59bdc
33d95a2e5222f1ab9993480a8bdc354aa6dc672f
/world/migrations/0003_auto_20200526_1429.py
2f5c168ddff4f460bb3f0f753d010036888312e4
[]
no_license
JackSnowdon/die-master
ab3eb7b1dbbe8b16031515c09b843aaba879aef5
d0af9fb8d6851904d466165d190dc9ec3700f2fd
refs/heads/master
2023-07-29T13:20:18.171612
2020-06-19T18:27:56
2020-06-19T18:27:56
265,283,325
0
0
null
2021-09-22T19:14:04
2020-05-19T15:16:26
Python
UTF-8
Python
false
false
845
py
# Generated by Django 3.0.6 on 2020-05-26 13:29 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('game', '0004_auto_20200522_1754'), ('world', '0002_auto_20200526_1428'), ] operations = [ migration...
[ "jacksnowdondrums@gmail.com" ]
jacksnowdondrums@gmail.com
bd96e52e284a42ccd47db68bae4f6f2bc3776e5b
45667cce995a6052869f12121c6368dc2afd38e3
/docs/examples/alias_generator_config.py
c4f207c643f1eccb12b567d392e013679d0e938e
[ "MIT" ]
permissive
rdpli/pydantic
b67da3de25f7de216806468b6256278c3ffefbe9
806eba3810d4bc0ed02e0060521a779f12d16416
refs/heads/master
2020-08-15T12:21:08.689819
2019-10-15T10:24:46
2019-10-15T10:24:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
from pydantic import BaseModel def to_camel(string: str) -> str: return ''.join(word.capitalize() for word in string.split('_')) class Voice(BaseModel): name: str gender: str language_code: str class Config: alias_generator = to_camel voice = Voice(Name='Filiz', Gender='Female', Language...
[ "s@muelcolvin.com" ]
s@muelcolvin.com
8a313cb6922eb9d5735021b07931bcf4ce5072ff
4c3e992678341ccaa1d4d14e97dac2e0682026d1
/addons/website_quote/models/sale_quote.py
a32f99f4aa2fb34122cb12a02c81c8c46460d1b8
[]
no_license
gahan-corporation/wyatt
3a6add8f8f815bd26643e1e7c81aea024945130d
77e56da362bec56f13bf0abc9f8cf13e98461111
refs/heads/master
2021-09-03T18:56:15.726392
2018-01-08T02:54:47
2018-01-08T02:54:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,583
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from gerp import api, fields, models from gerp.tools.translate import html_translate from gerp.addons import decimal_precision as dp class SaleQuoteTemplate(models.Model): _name = "sale.quote.template" _descrip...
[ "duchess@gahan-corporation.com" ]
duchess@gahan-corporation.com
74fbe595067b8788bfcfed01d9cf40d6cf1a44b6
0c9b8e5fbb9dcb240adb3c2536b452a9c68807d5
/sites/us/apps/checkout/forms.py
6b1f681d2d9bebc382727ab62d7e6fdfb21d0aa9
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
drama-ostrich/django-oscar
5d9390fdb4a7126282f8abf226295c907ccf3467
a15165b8adac887c33c94ff48f0ac367b5e8f46c
refs/heads/master
2021-05-27T10:24:49.270333
2014-05-21T10:44:55
2014-05-21T10:44:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
from django.utils.translation import ugettext_lazy as _ from localflavor.us import forms as us_forms from oscar.apps.checkout import forms as checkout_forms class ShippingAddressForm(checkout_forms.ShippingAddressForm): state = us_forms.USStateField(label="State", widget=us_forms.USStateSelect) def __init__...
[ "david.winterbottom@gmail.com" ]
david.winterbottom@gmail.com
85c146d9eafd0e80585d107c16d0d7ab970cbcc6
ef66e297a49d04098d98a711ca3fda7b8a9a657c
/OOD/BlackJack/card.py
b23e9bdf8d38070d08c0d45ea759f9a26b8d0dd8
[]
no_license
breezy1812/MyCodes
34940357954dad35ddcf39aa6c9bc9e5cd1748eb
9e3d117d17025b3b587c5a80638cb8b3de754195
refs/heads/master
2020-07-19T13:36:05.270908
2018-12-15T08:54:30
2018-12-15T08:54:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
from suit import Suit class Card: _value = 0 _suit = None _available = True def __init__(self, value, suit): '''Initialize card instance. params ------ value: int 1 for ace, 11, 12, 13 for Jack, Queen, King, 15, 16 for Jokers. suit: Suit ''...
[ "youchen.du@gmail.com" ]
youchen.du@gmail.com
a2601efe0958daa9755c008c2276daa68ae75045
285a49c05fb331b6cf0157ff6d9f0e5084c32b79
/python/ApplyLeptonSFs_cfi.py
e6d28e41aa3a6da4796f59c58a588f4f51beef68
[]
no_license
dmajumder/VLQAna
5c17d1284a1e248c13777599ae7c5ea631c2b321
bff7c8898786e1c1cf5a78699cccb0c0a3e13378
refs/heads/CMSSW_8_0_X_NewB2GAnaFW
2020-04-01T22:23:49.441334
2018-03-15T22:22:25
2018-03-15T22:22:25
37,709,562
2
6
null
2021-07-28T20:52:46
2015-06-19T08:00:10
C++
UTF-8
Python
false
false
139
py
import FWCore.ParameterSet.Config as cms defaultWP = cms.PSet( lepidtype = cms.string("TIGHT"), zdecayMode = cms.string("zelel"), )
[ "skhalil@fnal.gov" ]
skhalil@fnal.gov
b4167866cbc17e41e675926686d9050dff1c23a8
9ac0866eee361bfee730ae87d2f413b5ad82e23a
/lfd/registration/settings.py
4a458a149bfabd63af51b0523cec6265198af7fb
[ "BSD-2-Clause" ]
permissive
jeffmahler/lfd
e6cb2c309eec6276d51372eca0170ccb72c4a2b0
ecc6b934db098c0b1af9946454917b6dc911cb74
refs/heads/master
2020-12-26T00:35:37.302745
2015-01-15T17:27:10
2015-01-15T17:27:10
27,498,626
1
0
null
null
null
null
UTF-8
Python
false
false
663
py
import numpy as np # registration #: number of outer iterations for RPM algorithms N_ITER = 20 #: number of inner iterations for RPM algorithms EM_ITER = 1 #: initial and final smoothing regularizer coefficient for RPM algorithms REG = (.1, .0001) #: initial and final temperature for RPM algorit...
[ "alexleegk@gmail.com" ]
alexleegk@gmail.com
5be4483949a5e6ebd3a62270e206aa839df6fc59
2d227925231be797cc78b644358ecd3adf00fba7
/pcc3/ch04/e4_tuple.py
85bcbf207f4624ff82ee3460038d011f49ecec85
[]
no_license
egalli64/pythonesque
6bb107189d4556d832175d41366ea0b18ed6ea1d
154042c5ae5cf43a0ae2c03d509fc48d1dc19eb8
refs/heads/master
2023-07-07T05:50:14.711023
2023-07-01T10:52:24
2023-07-01T10:52:24
53,720,525
21
7
null
null
null
null
UTF-8
Python
false
false
492
py
""" Python Crash Course, Third Edition https://ehmatthes.github.io/pcc_3e/ My notes: https://github.com/egalli64/pythonesque/pcc3 Chapter 4 - Working With Lists - Tuples A tuple is an immutable list """ dimensions = (200, 50) print(dimensions[0], dimensions[1], dimensions) try: dimensions[0] = 42 except TypeErro...
[ "egalli64@gmail.com" ]
egalli64@gmail.com
9f3e694581dac2948e42867879e737abdcaf486a
3cda2dc11e1b7b96641f61a77b3afde4b93ac43f
/test/ut/sdk/mutable/test_frozen.py
da8e380409ff8827b05a42bc832bd96a58ce286f
[ "MIT" ]
permissive
Eurus-Holmes/nni
6da51c352e721f0241c7fd26fa70a8d7c99ef537
b84d25bec15ece54bf1703b1acb15d9f8919f656
refs/heads/master
2023-08-23T10:45:54.879054
2023-08-07T02:39:54
2023-08-07T02:39:54
163,079,164
3
2
MIT
2023-08-07T12:35:54
2018-12-25T12:04:16
Python
UTF-8
Python
false
false
2,858
py
import pytest from nni.mutable import * def _frozen_context_middle(): assert frozen_context.current() == {'a': 1, 'b': 2} with frozen_context.bypass(): assert frozen_context.current() is None def test_frozen_context(): with frozen_context({'a': 1, 'b': 2}): _frozen_context_middle() ...
[ "noreply@github.com" ]
Eurus-Holmes.noreply@github.com
a038f716fe5873d8938c78c4e0b335a3da85f842
dec494542217437afa7f38e8703328b25b183cb8
/234.py
96790deb04307bc93c67bf75789a5fdd3994fd49
[]
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
673
py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def isPalindrome(self, head: ListNode) -> bool: # 使用 O(n)的时间复杂度和 O(n)的空间复杂度,判断列表内的元素是否回文 lyst = [] cur = head while cur: lyst.ap...
[ "1305113016@qq.com" ]
1305113016@qq.com