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
7f6e079c0a48ee76d3298878b56e133898d647cb
e77eda0d87beb6a38b55f1d6d3a28f5090cb4fe3
/lose/utils/ui/keys.py
34a75d2d046b7031c40225ecc36857833eadbcaf
[ "Apache-2.0" ]
permissive
brianbruggeman/lose-7drl
5dde91fd214e4355bffa5a8d1f3e9b07c5b9ecdf
8921b464e82c8c7e6bf7cfebd4e8a3a5e290ac38
refs/heads/master
2021-03-24T12:20:44.802970
2017-03-12T04:21:55
2017-03-12T04:21:55
83,945,692
0
0
null
null
null
null
UTF-8
Python
false
false
6,890
py
# -*- coding: utf-8 -*- import sys import operator from random import choice, random, randint import tcod from ..logger import get_logger logger = get_logger(__name__) key_mapping = { getattr(tcod, d): d.lower().replace('key_', '') for d in dir(tcod) if d.startswith('KEY_') } def get_input_info(inpu...
[ "Brian.M.Bruggeman@gmail.com" ]
Brian.M.Bruggeman@gmail.com
0ff01722968ac8fe843ee54eaf63d28016723414
ba2a05f20454bda428f140634bc602699f164fc4
/00.SSAFY/1.first-semester/algorithm/APS_Basic/20190314/3750_digit_sum.py
60bcca7f7a6d32798917a92f187b00ea604e7c9a
[]
no_license
snowink1137/TIL
734da402e99afa52f1af4ef996a6b274b1bcce0b
9e9c78eb0c892affc88e2d46e143cef98af743fb
refs/heads/master
2023-01-08T18:26:34.311579
2021-11-14T11:04:22
2021-11-14T11:04:22
162,255,934
0
0
null
2023-01-07T11:09:09
2018-12-18T08:32:44
Jupyter Notebook
UTF-8
Python
false
false
496
py
import sys sys.stdin = open('3750.txt', 'r') T = int(input()) result_list = [] for test_case in range(1, T+1): n = int(input()) while not 1 <= n <= 9: result = 0 remain = n while True: if remain == 0 and n == 0: break remain = n % 10 ...
[ "snowink1137@gmail.com" ]
snowink1137@gmail.com
0be8fc99f29dfc8368be3b1a5f8c74fa377e33e5
9506059c37515ba00c2b9e804188f5bed896f7bd
/olfactorybulb/neuronunit/tests/__init__.py
e430ba4f9d83993ad61edf2184cd0f9f962605d5
[ "MIT" ]
permissive
russelljjarvis/OlfactoryBulb
241b41fcd642b7e91f8a5a087afd23df2103698a
af27b14f5c19c2b60845065b7f2d7da2c16f811d
refs/heads/master
2022-07-21T22:42:03.058163
2020-05-15T00:01:22
2020-05-15T00:01:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,764
py
# MOCKS for autodoc import quantities as pq if pq.mV.__class__.__module__ == 'sphinx.ext.autodoc.importer': pq.mV = pq.ms = pq.Hz = pq.nA = 1.0 # END MOCKS from abc import abstractmethod from neuronunit import capabilities as ncap from neuronunit.tests.base import VmTest from olfactorybulb.neuronunit.te...
[ "jbirgio@gmail.com" ]
jbirgio@gmail.com
31ee4365ba660e46efea90ad50e7e7dd715b39c8
f2cece9e5f2af8482c12fc7ad8b3a7e63e6de052
/tbot/api/admin/__init__.py
87d22b20d424ea6d10aa8c1f5924ddd379bedce8
[]
no_license
nikifkon-old/questionnaire_bot
beadc716ca0a7cbfa6a4c47039c00123e8892eb4
3cbf889c7edf4ba438ce7e46c5f9b67efe5d7e72
refs/heads/master
2023-04-24T07:12:28.227259
2020-08-03T09:14:35
2020-08-03T09:14:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
import flask_login as login from tbot.models import Account from tbot.utils import session_scope # Initialize flask-login def init_login(app): with session_scope() as session: login_manager = login.LoginManager() login_manager.init_app(app) # Create user loader function @login_ma...
[ "kostya.nik.3854@gmail.com" ]
kostya.nik.3854@gmail.com
c1507c1d668bf1ddc7979e99591b0ffae9c5d485
db1b327c4913c453b2fdd9dda661938c4abc5c0e
/abc/94/D.py
e575890eacecafabd215188b428f103f2588b08a
[]
no_license
oamam/atcoder
0c129aab72e3c7090c9799fdf52f6e8119ef5238
658054b69b7586eed896484535dcfa1fef498e43
refs/heads/master
2021-06-26T09:01:12.389266
2020-10-30T02:01:11
2020-10-30T02:01:11
165,225,322
2
0
null
null
null
null
UTF-8
Python
false
false
295
py
def main(): n = int(input()) a = list(map(int, input().split())) if n == 2: print(max(a), min(a)) else: ma = max(a) sa = sorted([(i, abs(ma // 2 - a[i])) for i in range(n)], key=lambda x: x[1]) print(ma, a[sa[0][0]]) main()
[ "chapa0106@gmail.com" ]
chapa0106@gmail.com
36f6573767ca8a136f8eaa40ce2f6a7af7735a99
fbf73800e27f66960f677a284c2771e66708973b
/talk_lib/talk.py
2282b1a9ff25df18016a1301fa7ef17cad68f73e
[ "MIT" ]
permissive
allankellynet/mimas
94140a341693d4729b3cdf5ea94ef2f7e550aad6
10025d43bba9e84f502a266760786842e7158a05
refs/heads/master
2022-05-30T21:35:06.083902
2020-02-27T14:04:27
2020-02-27T14:04:27
235,146,506
0
0
MIT
2022-05-25T04:56:13
2020-01-20T16:30:39
Python
UTF-8
Python
false
false
1,904
py
#----------------------------------------------------- # Mimas: conference submission and review system # (c) Allan Kelly 2016-2020 http://www.allankelly.net # Licensed under MIT License, see LICENSE file # ----------------------------------------------------- # system imports # framework imports from google.appengin...
[ "allan@allankelly.net" ]
allan@allankelly.net
f920eae915049d1f03531e51cf0c975bd03f7079
20f3b4ee874e8b3e565f9ce60d4de8cab48d7d20
/tests/basic-structs/test_memories.py
9f0c3f45935af0fddd49af2d15ff8cdb1436a680
[ "MIT" ]
permissive
pshchelo/kopf
ec968e6f11432f3728efb385bf18762676f7a5be
ab53ace82e62a6fa709bf5a580007eac1273ac34
refs/heads/main
2022-04-26T11:39:01.565811
2022-04-02T14:05:26
2022-04-02T14:05:26
221,041,880
0
0
MIT
2019-11-11T18:14:59
2019-11-11T18:14:58
null
UTF-8
Python
false
false
1,599
py
from unittest.mock import Mock from kopf._cogs.structs.bodies import Body from kopf._cogs.structs.ephemera import Memo from kopf._core.reactor.inventory import ResourceMemories, ResourceMemory BODY: Body = { 'metadata': { 'uid': 'uid1', } } def test_creation_with_defaults(): ResourceMemory() a...
[ "nolar@nolar.info" ]
nolar@nolar.info
db9d1c13b7d436ab858207a924264786e3498ed2
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_infiltrates.py
6ebdab4177a42ddd28fbae76e331e02785165b79
[ "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
238
py
#calss header class _INFILTRATES(): def __init__(self,): self.name = "INFILTRATES" self.definitions = infiltrate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['infiltrate']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
a4544faf8314eea6d6429d0c18c980fb8b91b2f5
0fcc6353edee4eed7a1ea4b1c89a00bfcf03e851
/TryExcept/Finally.py
fc91ea5fe2e2768f5d5e8f587dd996b7f49dc433
[]
no_license
GANESH0080/Python-Practice-Again
81d8048c23d338a99bb17fa86a9f87b3057bfe52
6565911d14a22d0f33a41b417026c31a0a066be5
refs/heads/master
2020-09-20T03:40:45.462869
2019-11-27T07:19:24
2019-11-27T07:19:24
224,368,129
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
#The try block will raise an error when trying to write to a read-only file: try: f = open("demofile.txt") f.write("Lorum Ipsum") except: print("Something went wrong when writing to the file") finally: f.close() #The program can continue, without leaving the file object open
[ "ganusalunkhe@gmail.com" ]
ganusalunkhe@gmail.com
73d4574f53efb7fc7035fb83bd09771334884d54
7e86f933cd477b08258dde4f52ecb2f45949d665
/libdeepfry/emoji.py
b07ab177ca7fc98932ddfcf93773956e11d61f82
[ "MIT" ]
permissive
MineRobber9000/deepfry
25b41035c3f20d99ab1b40ffccde0ab24b8e5d9e
383b7da439932dfc03fcae3fc52aa6538af20871
refs/heads/master
2020-04-13T13:45:30.294013
2018-12-27T09:46:38
2018-12-27T09:46:38
163,241,337
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
import json, os.path BASEDIR = os.path.dirname(os.path.abspath(__file__)) EMOJIS = os.path.join(BASEDIR,"emojis") with open(BASEDIR+"/emoji.json") as f: d = json.load(f) def listEmoji(): return list(d.keys()) def getImage(name): return os.path.join(EMOJIS,d[name])
[ "khuxkm@ttm.sh" ]
khuxkm@ttm.sh
d70e924db0d9df85ee854247487a4ad1b3f3a949
919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2
/conans/test/integration/generators/markdown_test.py
12d065d26ee68671ab6c0d48c0837bc62058442d
[ "MIT" ]
permissive
thorsten-klein/conan
1801b021a66a89fc7d83e32100a6a44e98d4e567
7cf8f384b00ba5842886e39b2039963fc939b00e
refs/heads/develop
2023-09-01T12:04:28.975538
2023-07-26T10:55:02
2023-07-26T10:55:02
150,574,910
0
0
MIT
2023-08-22T14:45:06
2018-09-27T11:16:48
Python
UTF-8
Python
false
false
7,453
py
import textwrap import unittest from conans.test.utils.tools import TestClient class MarkDownGeneratorTest(unittest.TestCase): def test_cmake_find_filename(self): conanfile = textwrap.dedent(""" from conans import ConanFile class HelloConan(ConanFile): ...
[ "noreply@github.com" ]
thorsten-klein.noreply@github.com
5e1e458ba6c95125f1af4dffd2a3244e8f04e4fe
f647c6fb984b6e93977bb56a9a4533b8d47e6644
/lib/dbsqlite.py
d78d5b670510243b004e03e42afa47e3c0487173
[]
no_license
vdsmirnov52/wt000
7a88fcf29e5f786b8f2b0956b4a10ae68c0e32a6
0dd8ead0a73ed0f3f7f2f8c5302dff0071392570
refs/heads/master
2021-04-26T05:50:59.554131
2020-08-06T10:14:02
2020-08-06T10:14:02
79,928,565
0
0
null
null
null
null
UTF-8
Python
false
false
5,670
py
#!/usr/bin/python -u # -*- coding: utf-8 -*- import sys import sqlite3 class dbsqlite: r""" Работа с SQLite Warning('You can only execute one statement at a time.',) ... только одно заявление за раз Функции: execute (query, [vals]) - Исполняет SQL запрос. Возвращает: {True|False} get_row (query, [vals]) - Читае...
[ "vdsmitnov52@gmail.com" ]
vdsmitnov52@gmail.com
83e25dcf1a96fdde2966714124d86f0a571a3d92
a37bf3343be428c453e480c7a411a91b125ab1d1
/deb/openmediavault/usr/share/openmediavault/firstaid/modules.d/40restore_config_backup.py
a8e215ee7b7b78ea5a740be8e451314d7aa2d4c1
[]
no_license
zys1310992814/openmediavault
8e73ccd66fefaddd03385834137887614726812c
337f37729783d9bf3a08866c0dbc8b25c53b9ca3
refs/heads/master
2020-04-20T14:18:57.505953
2019-02-02T15:18:07
2019-02-02T15:18:07
168,894,447
1
0
null
2019-02-03T00:41:55
2019-02-03T00:41:55
null
UTF-8
Python
false
false
4,021
py
#!/usr/bin/env python3 # # This file is part of OpenMediaVault. # # @license http://www.gnu.org/licenses/gpl.html GPL Version 3 # @author Volker Theile <volker.theile@openmediavault.org> # @copyright Copyright (c) 2009-2018 Volker Theile # # OpenMediaVault is free software: you can redistribute it and/or modify # ...
[ "votdev@gmx.de" ]
votdev@gmx.de
57fa47b2bde6a7e5a76d63e2b71fb76e98dbc5ea
9c54d20ea935e3e96af2c81349e2e8e93f9e3abd
/main.py
21a6aa4d5294a59744103c164ecb227296938ad1
[]
no_license
folkol/python-tag-cloud
e0bfb0e9bd7b61ba4532407cd6380020bc75f8cc
fce689f7960983dc6f7e3ffe0de6020ad875f969
refs/heads/master
2023-02-23T14:37:27.327243
2022-02-11T07:20:58
2022-02-11T07:20:58
177,873,883
0
0
null
2023-02-16T23:39:47
2019-03-26T21:49:58
Python
UTF-8
Python
false
false
1,339
py
"""Generates a tag cloud from words found in the given projects python files.""" import builtins import keyword import os import sys import tokenize from collections import Counter import matplotlib.pyplot as plt from wordcloud import WordCloud DIR_BLACKLIST = ['.git', 'venv', 'tests'] TOKEN_BLACKLIST = ['self', *key...
[ "mattias4@kth.se" ]
mattias4@kth.se
338c9058e62cd3557cce13438c3687d06f08be89
365c85a280596d88082c1f150436453f96e18c15
/Python/Sort/插入排序.py
904ec4fc487bcb85b850ba614f3a7fe9dc05223f
[]
no_license
Crisescode/leetcode
0177c1ebd47b0a63476706562bcf898f35f1c4f2
c3a60010e016995f06ad4145e174ae19668e15af
refs/heads/master
2023-06-01T06:29:41.992368
2023-05-16T12:32:10
2023-05-16T12:32:10
243,040,322
1
1
null
null
null
null
UTF-8
Python
false
false
1,036
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ 插入排序: 它的工作原理是每一次从待排序的数据元素中选出最小(或最大)的一个元素, 存放在序列的起始位置,所以称为:选择排序。 时间复杂度: O(n^2) 空间复杂度: O(1) """ from Utils.timer_decorater import timer from typing import List class Solution: @timer def insertion_sort(self, l: List) -> List: if len(l) <= 1: ...
[ "zhaopanp2018@outlook.com" ]
zhaopanp2018@outlook.com
1ca1c50f395e5d78d3d7df0362c1b89a800546a8
320280bfce76713436b76ffc3125ccf37e65a324
/AnalyzeMiniPlusSubstructure/test/ttbar/ttbar_306.py
aebec186733d709d873615f93abaaaf8346d123d
[]
no_license
skhalil/MiniValidation
75ea5c0d7cde17bf99c7d31501f8384560ee7b99
1a7fb8377e29172483ea6d3c7b3e427ff87e7e37
refs/heads/master
2016-09-05T10:31:38.562365
2015-01-29T05:30:32
2015-01-29T05:30:32
29,898,162
0
0
null
null
null
null
UTF-8
Python
false
false
4,861
py
import FWCore.ParameterSet.Config as cms ############################################### useMiniAOD = True # AOD pfcandidates = 'particleFlow' chsstring = 'pfNoPileUpJME' genjetparticles = 'genParticles' importantgenparticles = 'genParticles' tracks = 'generalTracks' vertices...
[ "skhalil@fnal.gov" ]
skhalil@fnal.gov
76f0aba3cd468d0ec66404e8b7947d7b7333aafa
3a642fa1fc158d3289358b53770cdb39e5893711
/src/xlsxwriter/test/comparison/test_format01.py
4c50643ba2bfbb06d966fe651528ff22ebe50e1b
[]
no_license
andbar-ru/traceyourself.appspot.com
d461277a3e6f8c27a651a1435f3206d7b9307d9f
5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c
refs/heads/master
2020-07-23T14:58:21.511328
2016-12-26T22:03:01
2016-12-26T22:03:01
73,806,841
1
1
null
null
null
null
UTF-8
Python
false
false
2,078
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013, John McNamara, jmcnamara@cpan.org # import unittest import os from ...workbook import Workbook from ..helperfunctions import _compare_xlsx_files class TestCompareXLSXFiles(unittest.TestC...
[ "andrey@voktd-andbar.int.kronshtadt.ru" ]
andrey@voktd-andbar.int.kronshtadt.ru
26c7774f14779d1cd3315d78272da86bbefcef4d
d9aa4291a4978b932bef84b8d26aa4b911ca2add
/day04正则re模块/03 re模块正则表达式.py
a5c42f5fb0a7f43dad3f6996b9c6b9feadeed74b
[]
no_license
SelfShadows/my_git
9a32d3713efb1b055d04c813b319eb2196fdcf53
b10a4c838e1146b3f6ce297480840de9a8e89206
refs/heads/master
2020-12-15T22:33:49.273814
2020-02-14T16:33:46
2020-02-14T16:33:46
235,274,933
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
import re #ret=re.split('ab','abcd') #print(ret) # ret=re.search('[\d|\w](?P<name>\w.*?s)','sdfdf 3dd3fds2 13f') # print(ret) # print(ret.group('name')) #命名 # ret=re.search('<(?P<flag_name>\w+)>\w+</(?P=flag_name)>','<tl>hello</tl>') # print(ret.group()) #匹配整数 ret=re.findall('\d+\.\d+|(\d+)','8+4-2*5.21-5+10-(50...
[ "870670791@qq.com" ]
870670791@qq.com
62df615bb39689d2921aede204a4472f282f1fa7
ae85cd400fa71296867c9e55297affa2d3679b5d
/algorithms/pattern_matching/rabin-karp.py2.py
6cce3fe2ac69b7fa1deb148357b646ccaffca4c0
[]
no_license
Psycadelik/sifu
a1e751aa4e97cd56431cdf8704304b82943db37c
72965f694f7a44aa8711d11934b216d5ccf9d280
refs/heads/master
2023-04-12T17:07:00.677702
2021-05-07T07:30:14
2021-05-07T07:30:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,365
py
''' 28. Implement strStr() Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we return when needle is an empty string? This is a great question to ask during an interview. For the purpose of this problem, we will return 0 when needle is ...
[ "erickmwazonga@gmail.com" ]
erickmwazonga@gmail.com
2d6e2ed0883d161c1401bb9fb640a3ab787fb618
664c3ced94ab0e9a5bac547028db59a3ca1f2074
/16. Python games with Pygame/EG16-05 background sprite/EG16-05 background sprite.py
22797007a32d97adb2843f167fe7fe7d0a565b7e
[ "MIT" ]
permissive
nikcbg/Begin-to-Code-with-Python
2b1283a7818e26d3471677b51d1832cde52c4ddc
a72fdf18ca15f564be895c6394a91afc75fc3e2c
refs/heads/master
2021-06-23T23:09:36.009442
2021-06-23T11:17:24
2021-06-23T11:17:24
209,285,197
0
0
MIT
2021-03-17T07:48:09
2019-09-18T10:50:51
Python
UTF-8
Python
false
false
2,148
py
# EG16-05 background sprite import pygame class Sprite: ''' A sprite in the game. Can be sub-classed to create sprites with particular behaviours ''' def __init__(self, image, game): ''' Initialize a sprite image is the image to use to draw the sprite default positi...
[ "nkcbg@yahoo.com" ]
nkcbg@yahoo.com
48dda0032940d6cc8a1faecdbe87f99ff551ae62
bba2bd15307d94707825057fe2790a72c707a363
/allennlpx/modules/token_embedders/embedding.py
dcab25dbe87317171a6a1e8769f6d4cc8fd80498
[]
no_license
Xalp/dne
c78e8ef2f730b129623ed3eaa27f93d2cf85d6f6
afa519eea9ccd29332c477d89b4691fc2520813b
refs/heads/master
2023-02-16T14:27:48.089160
2021-01-15T12:30:44
2021-01-15T12:30:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,568
py
import logging import warnings import numpy import torch from allennlp.nn import util from overrides import overrides from allennlp.common import Tqdm from allennlp.common.checks import ConfigurationError from allennlp.data import Vocabulary with warnings.catch_warnings(): warnings.filterwarnings("ignore", categ...
[ "dugu9sword@163.com" ]
dugu9sword@163.com
3241bf7425397cb464d443fdc964822f93d76157
e9f4f2f48f96f8eef84851fb1191c5f5ae7ca882
/odps/config.py
1b9afca23b4335d61c3c7ace6f55d59a65aa5d7c
[ "Apache-2.0" ]
permissive
bleachyin/aliyun-odps-python-sdk
18d156b794de530090bc04e1cba918e08b0f77bc
6a99db643076b3957f0e6c774c482e81881dbe25
refs/heads/master
2021-01-16T22:44:11.875016
2016-02-05T02:17:25
2016-02-05T02:17:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,873
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License...
[ "xuye.qin@alibaba-inc.com" ]
xuye.qin@alibaba-inc.com
36f275751e1301d42602f769a222608e3f3ea75d
448fd7b58f53b6b8394a2a4a8f6325c3b731afa8
/EXE_RP/modules custom setups/pyforms/setup.py
461f21c3b99588eeb172ee6e1cd8b30916b711b1
[ "MIT" ]
permissive
webclinic017/TraderSoftwareRP
7c4a5833226f54c84d941830adc26263e984f957
3996bb4b1add72901530079d0a2b7aa6a7b33680
refs/heads/master
2022-04-17T13:29:03.724522
2020-04-12T07:48:00
2020-04-12T07:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,505
py
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Ricardo Ribeiro" __credits__ = ["Ricardo Ribeiro"] __license__ = "MIT" __version__ = "0.1" __maintainer__ = "Ricardo Ribeiro" __email__ = "ricardojvr@gmail.com" __status__ = "Production" from setuptools import setup setup( name ...
[ "reprior123@gmail.com" ]
reprior123@gmail.com
669b7d9bcd7b3ebfd57a1310141c672bc89c7dec
e32bb97b6b18dfd48760ed28553a564055878d48
/source_py2/test_python_toolbox/test_nifty_collections/test_lazy_tuple/test_frozen_dict.py
6a5067df2c9b2f5f39bfd4f4bdc6892857a6111c
[ "MIT" ]
permissive
rfdiazpr/python_toolbox
26cb37dd42342c478931699b00d9061aedcd924a
430dd842ed48bccdb3a3166e91f76bd2aae75a88
refs/heads/master
2020-12-31T04:15:53.977935
2014-04-30T23:54:58
2014-04-30T23:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,416
py
# Copyright 2009-2014 Ram Rachum. # This program is distributed under the MIT license. '''Testing module for `python_toolbox.nifty_collections.LazyTuple`.''' import uuid import itertools import collections from python_toolbox import cute_iter_tools from python_toolbox import sequence_tools from python_toolbox import...
[ "ram@rachum.com" ]
ram@rachum.com
f11e82d29c20ff0e44d26b7febaefe0bfff58a0a
30f15cac2567373380d288e4be7a8e7aed73519c
/examples/gabcpmc_sumnorm_useaux.py
1d05365786c5bd244fcc8f535b8a9e255f6a65c7
[]
no_license
HajimeKawahara/abcfast
c208570111c23145ae95421e7471cc5f69335127
951d7998578a245da2dabb6f97c70a2392ea5d43
refs/heads/master
2020-04-21T21:04:15.619478
2020-03-20T03:56:07
2020-03-20T03:56:07
169,866,980
0
0
null
null
null
null
UTF-8
Python
false
false
2,678
py
from abcfast.gabcpmc import * from abcfast.utils import statutils if __name__ == "__main__": import numpy as np import matplotlib.pyplot as plt from numpy import random from scipy.stats import gamma as gammafunc from scipy.stats import norm as normfunc import time import sys ...
[ "divrot@gmail.com" ]
divrot@gmail.com
d8b647cce8583803aa21188fc6af6a53879bbcc8
5c661f53aa00dbaf595d0e8a565a749c4c55c5cf
/commando/django/core/management/sqlflush.py
ffc719348003842cbde0b2f1f1479c431d769673
[ "MIT" ]
permissive
skibblenybbles/django-commando
894f34c80d16fe60555c3f34439e45af124dba32
dd1dd6969fc0dd8231fc115fee3eeb690809585b
refs/heads/master
2021-01-22T06:54:28.874271
2014-01-16T15:38:07
2014-01-16T15:38:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,250
py
from commando import management BaseSQLFlushCommand = management.get_command_class( "sqlflush", exclude_packages=("commando",)) if BaseSQLFlushCommand is not None: base = BaseSQLFlushCommand() class SQLFlushCommandOptions(management.CommandOptions): """ SQLFlush command options....
[ "mkibbel@gmail.com" ]
mkibbel@gmail.com
6a88be3e9bcc912b2a54083082b83a3e47393144
d91b7761d556d320e897eddceb378a53a99fb1a6
/library/CAMB_library.py
c860083a5735c3e64a9648f1ae34b49e7ae5b841
[]
no_license
franciscovillaescusa/Pylians3_old
d945760e4ccce91d943276db1a456c76861e5f22
aa9ca5904b818c3f4ca431642332986fc8932772
refs/heads/master
2020-06-19T14:37:01.421069
2019-09-08T16:29:47
2019-09-08T16:29:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,413
py
import numpy as np import camb import sys,os # This routine computes the linear power spectra using CAMB given the input # cosmological parameters. To do the rescaling with s8 we always need to generate # the z=0 linear matter Pk, i.e. in redshifts there always should be 0 # PkL.z -------> redshifts [0, 0.5, 1, 2 ...]...
[ "villaescusa.francisco@gmail.com" ]
villaescusa.francisco@gmail.com
892c7ac75a0e494f8780281d4139c8602ba5f045
171781c9b8ac1cb1bd0562db53788d2c570d4aa4
/myapp/apps.py
ec02046654421fb4a91100b3f227104a665ba0e9
[]
no_license
johnbangla/showcasesecond
4949c492ffc38306320325ea5bacb40b72ba7e21
84877579a7204d289a64e1db57ada4ff0e792b95
refs/heads/master
2023-01-12T07:12:56.754055
2020-10-29T07:20:22
2020-10-29T07:20:22
275,085,380
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
from django.apps import AppConfig class MyappConfig(AppConfig): name = 'myapp' def ready(self): import myapp.signals
[ "johnbangla@gmail.com" ]
johnbangla@gmail.com
1233414a1856f946a67a85615938cf7566b3e2d4
f6d2d1c3e5525dc955a47da39d78481cda105699
/django/pitches/api/serializers.py
2da08e797f0fb7c1929b6bc208d809a9811e9ec4
[]
no_license
KyleLawson16/pitch-yak
340458833debe4ccf5e3774fb714491624035297
c98505c5c4a8de369fd749d56a91028373109e50
refs/heads/master
2021-01-23T18:31:36.105954
2017-09-11T22:21:49
2017-09-11T22:21:49
102,796,610
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
from rest_framework.serializers import ( ModelSerializer, HyperlinkedIdentityField, SerializerMethodField ) from pitches.models import Pitch pitches_detail_url = HyperlinkedIdentityField( view_name='api:detail', lookup_field='unique_id' ) class PitchListSerializer(ModelSerializer): url = pitc...
[ "Kyle.Lawson7@yahoo.com" ]
Kyle.Lawson7@yahoo.com
d06d05cbff3f00b938366a8b1ec2a636bbbfca52
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/3070/453003070.py
91a536502088f709e87f6454abc6630e2e0603aa
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
837
py
from bots.botsconfig import * from records003070 import recorddefs syntax = { 'version' : '00403', #version of ISA to send 'functionalgroup' : 'ST', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'SSC', MIN: 1, MAX: 1}, {ID: 'DTP', MIN: 1, MAX: 2}, ...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
49d16d047bd4ea4ff578997b297de8bd7f86c743
8feecb692bacdb10340af1b40878da4f24f5f2dd
/ammarit/it/migrations/0002_auto_20160718_1343.py
5b5c18bf81fab9a5096915a2faa964e1bf36cb8f
[ "Apache-2.0" ]
permissive
aammar/IT-Storage-Ticket-System
2bbf4cf240eef59557bc0faf728379dadf522cce
6b8fb7a915cdd10e7a003301a35477a718129643
refs/heads/master
2021-01-11T18:18:45.272913
2016-08-25T19:23:33
2016-08-25T19:23:33
71,046,768
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('it', '0001_initial'), ] operations = [ migrations.RenameField( model_name='item', old_name='Category...
[ "hasan.aljawaheri@gmail.com" ]
hasan.aljawaheri@gmail.com
bc06edcede98909e1064f09cc79a7c965352f912
d0151e3cc292a1d3e2472515741c24ac99ef89c5
/lcamatrix/product_flow.py
ffde7890434ec03686092acd85b1da8f9bfa665e
[]
no_license
bkuczenski/lca-matrix
73123fbc0bf238697aed316577287b148318b2aa
78962e3f9ce94c351754667df07b6ed0e61d1fa7
refs/heads/master
2021-01-19T19:59:06.480947
2017-06-16T19:45:25
2017-06-16T19:45:25
78,722,803
0
0
null
null
null
null
UTF-8
Python
false
false
4,288
py
class ProductFlow(object): """ Class for storing foreground-relevant information about a single matched row-and-column in the interior matrix. """ def __init__(self, index, flow, process): """ Initialize a row+column in the technology matrix. Each row corresponds to a reference exchang...
[ "brandon.kuczenski@301south.net" ]
brandon.kuczenski@301south.net
ee667b910b500ba5afa77f5fb347aa8a5094ab98
40f4908483b98fc4f370ff4f2d520e1284d045b3
/immortals_repo/shared/tools/brass_api/translator/preprocess.py
66bdc5df406a7b802fee3c8356a7ed5a65c0d91c
[]
no_license
TF-185/bbn-immortals
7f70610bdbbcbf649f3d9021f087baaa76f0d8ca
e298540f7b5f201779213850291337a8bded66c7
refs/heads/master
2023-05-31T00:16:42.522840
2019-10-24T21:45:07
2019-10-24T21:45:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,063
py
import shutil import os from brass_api.common.exception_class import BrassException def create_preprocessor(xml_file): ''' Returns a MDLPreprocessor or a VICTORYPreprocessor. :param xml_file: :return: ''' if os.path.exists(xml_file): infile = open(xml_file, 'r') first_line = ...
[ "austin.wellman@raytheon.com" ]
austin.wellman@raytheon.com
92c8823b00b04d9fc44af80494f25691189c9ac9
e874aed81b6ae75467262423cf5fc4c6e4a31c64
/dsn_brand/models/product.py
5c89834b32d725eec4daaf28e432bcf1c7359c5c
[]
no_license
disna-sistemas/odoomrp-wip
9dc14704e4aad00f95313d5465802fca13809b1a
96958f442ae0e5274c8d7ebb8f2d1b636a16d48a
refs/heads/master
2020-12-06T23:27:22.321202
2015-11-20T09:57:24
2015-11-20T09:57:24
26,594,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
# -*- coding: utf-8 -*- ############################################################################## # # Author: Nicolas Bessi, Guewen Baconnier # Copyright 2012-2014 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Publi...
[ "sistemas@disna.com" ]
sistemas@disna.com
fc1b9caaa29a6d3d45e8e7ae156ad413c812ad6b
4fe0ed5e592641b272aa2167ae591155a9cad416
/modelisation/bode.py
b35acf103938b896adcc4aefd7e07feb4b7045cf
[]
no_license
AlexandreMarcotte/test_code
cf715caee730cfdafa7cf97bd011ac15443872f3
07e115055befd55d4598dd8a4b33bbdd00ba6f5a
refs/heads/master
2021-06-07T05:06:12.085390
2019-05-06T23:45:38
2019-05-06T23:45:38
137,810,297
0
0
null
2021-06-01T23:44:40
2018-06-18T21:50:39
Python
UTF-8
Python
false
false
248
py
from scipy import signal import matplotlib.pyplot as plt # K / (s + 1) s1 = signal.lti([1], [1, 1]) w, mag, phase = signal.bode(s1) plt.semilogx(w, mag) # Bode magnitude plot plt.figure() plt.semilogx(w, phase) # Bode phase plot plt.show()
[ "alexandre.marcotte.1094@gmail.com" ]
alexandre.marcotte.1094@gmail.com
320fa0b8e1cd361fb2c02a73d04ab4d0162b7774
3b76f9f2317e1eb2cd9553cab0b4dd01ce216ad5
/Alphabet rangoli3.py
090099b26486b72357847a57c59364e9d98edbc9
[]
no_license
KaziMotiour/Hackerrank-problem-solve-with-python
f12ea978c5274a90745545d3d2c9fb6a4f9b5230
798ce2a6c2b63ea24dc28a923bfee4b528fb2b5e
refs/heads/master
2022-05-26T19:45:44.808451
2020-05-05T09:44:40
2020-05-05T09:44:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
import string size=int(input()) width=4*size-3 idth = 4 * size - 3 alpha = string.ascii_lowercase for i in list(range(size))[::-1] + list(range(1, size)): print('-'.join(alpha[size-1:i:-1] + alpha[i:size]).center(width, '-'))
[ "kmatiour30@gmail.com" ]
kmatiour30@gmail.com
8a1329049224ec9c3a0acf0f983281006c36463b
5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63
/baekjoon/g_10026(적록색약).py
5a69233805d812eb26ed8b940a6dc7e424887b84
[]
no_license
juyi212/Algorithm_study
f5d263c5329c994a457bbe897e5e1405d2b1d67a
f225cc593a50b74686111f654f7133707a1d1310
refs/heads/master
2023-03-21T20:02:36.138688
2021-03-16T14:16:40
2021-03-16T14:16:40
325,008,034
0
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
import sys from collections import deque def bfs(ch, r, c, what): q = deque() q.append((r, c)) while q: r, c = q.popleft() if r - 1 > -1 and (what == ch[r-1][c]): q.append((r-1, c)) ch[r-1][c] = 0 if r + 1 < n and (what == ch[r+1][c]): q.append((...
[ "dea8307@naver.com" ]
dea8307@naver.com
8a7a5b1f37c6e4c6f4a183e669093eed73020be6
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/codingbat/codingbat-python-master/Warmup-1/missing_char.py
1657233e06d51e88f8838d6d6cbeac4873329ee1
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
460
py
# Given a non-empty string and an int n, # return a new string where the char at index n has been removed. # The value of n will be a valid index of a char in the original string # (i.e. n will be in the range 0..len(str)-1 inclusive). # missing_char('kitten', 1) → 'ktten' # missing_char('kitten', 0) → 'itten' # m...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
1b2301b1d3e5f15ec3c78755f8a9237d2fba6ac2
1aefa304f794c1ed9e06ce71248206098c756cf3
/python_revision/HackerRank/AppleandOrangeCount.py
c67bcaa3f07d4515796cc4838677a511de3ea16f
[]
no_license
dilipksahu/django_class
333233bbced5491d886687b5990c8836dac2f145
a044c4a079c61a6a6de05674103e8a9ba2b4d28c
refs/heads/master
2023-01-10T07:40:44.713361
2020-11-10T15:26:33
2020-11-10T15:26:33
282,398,509
0
0
null
null
null
null
UTF-8
Python
false
false
2,547
py
''' Sam's house has an apple tree and an orange tree that yield an abundance of fruit. In the diagram below, the red region denotes his house, where is the start point, and is the endpoint. The apple tree is to the left of his house, and the orange tree is to its right. You can assume the trees are located on a singl...
[ "sahud048@gmail.com" ]
sahud048@gmail.com
fadaa39924de9fd8053b3139295c5e44f5f79a3f
6b1cac18b81a4704c310fb30a30e2906c6137511
/onepanman_api/serializers/friend.py
c9c6f60d7876d8dad9d8710e52d799e3753be593
[ "MIT" ]
permissive
Capstone-onepanman/api-server
973c73a4472637e5863d65ae90ec53db83aeedf7
1a5174fbc441d2718f3963863590f634ba2014e1
refs/heads/master
2022-12-09T22:43:23.720837
2020-03-20T00:43:21
2020-03-20T00:43:21
234,227,137
0
0
MIT
2022-12-08T02:37:19
2020-01-16T03:29:36
Python
UTF-8
Python
false
false
218
py
from rest_framework import serializers from .. import models class FriendSerializer(serializers.ModelSerializer): class Meta: model = models.Friend fields = ['user1', 'user2', 'isAccept', 'date']
[ "dngusdnd@gmail.com" ]
dngusdnd@gmail.com
82894fe462610408932dd9dfd2b97669b981169d
e6344882c2341dd1552401bce04e77567b8f1388
/src/utils/__init__.py
12e5ba3010f7aaadf48767012bd5a93486280166
[ "MIT" ]
permissive
ebreton/pybootstrap
4ab172aac86d7774f1fce238449b4d261e02191a
5c4d42e75b1139d296bf39e0cc00ba7c6e3caebf
refs/heads/master
2022-12-13T00:37:04.444648
2018-11-11T19:57:27
2018-11-11T19:57:27
119,203,576
2
0
MIT
2022-12-08T02:51:08
2018-01-27T21:21:45
Python
UTF-8
Python
false
false
738
py
from .env import get_mandatory_env, get_optional_env from .logging import set_logging_config from .runner import import_class_from_string, run_command from .maintenance import deprecated from .csv import csv_filepath_to_dict, csv_string_to_dict from .yaml import yaml_file_to_dict from .dates import parse_date, build_ti...
[ "email" ]
email
986fd2b31c4051fabb4c0648000ea4a0e0e497ea
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/qosp/classrule.py
62b400c40933b0aa8497e2012469251d2c43509b
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
7,834
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
05adfc2be582d0461468602b4e3a53ec33eb5006
e1e031e7f1e786216964db742098cb17068c18eb
/2. Add Two Numbers.py
2608020f5b9ebdd5145881602f57debe017904be
[]
no_license
FightingForJobs/Wei
1091a10e7c626aa093e42f6f262f95c2b740fe3b
b075a5047e89929a4ee5e735ed1841caf9138fc8
refs/heads/master
2020-09-23T21:27:47.479637
2016-11-15T04:52:43
2016-11-15T04:52:43
73,511,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ last ...
[ "wfu@ncsu.edu" ]
wfu@ncsu.edu
68ee203fb66a4204c28602727dd350464d5870a1
ae10b60cb92a69146bfb05ef5dde735a0aa45d4b
/examples/Extended Application/matplotlib/examples/images_contours_and_fields/trigradient_demo.py
d2fa3b6a012f5752e1f1b40d2be9394e421255b3
[ "MIT" ]
permissive
kantel/nodebox-pyobjc
471cea4c5d7f1c239c490323186458a74edcc214
068ba64c87d607522a240ab60c3ba14f869f6222
refs/heads/master
2021-08-14T18:32:57.995445
2017-11-16T13:42:23
2017-11-16T13:42:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,008
py
""" ================ Trigradient Demo ================ Demonstrates computation of gradient with matplotlib.tri.CubicTriInterpolator. """ from matplotlib.tri import ( Triangulation, UniformTriRefiner, CubicTriInterpolator) import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np # nodebox sec...
[ "karstenwo@web.de" ]
karstenwo@web.de
2e94867e67ec1d03d2b01b8c06b06023abc8af16
83771ee063c7dba66c934455a9be3b64448c2852
/h2co_modeling/turbulent_pdfs.py
f7774def6b59197bac212a87187e3e279f026433
[]
no_license
keflavich/h2co_modeling
802eea43313be07d712a836a3b2aecba039e48c6
b20bd60b4dfb53a924bf2822bd0942f4288d3bf9
refs/heads/master
2021-01-15T15:47:49.812310
2019-07-30T20:12:17
2019-07-30T20:12:17
16,702,988
0
1
null
null
null
null
UTF-8
Python
false
false
3,348
py
from scipy.special import iv import numpy as np # Bessel function 1st-order iv1 = lambda x: iv(1,x) # for rescaling log_e -> log_10 ln10 = np.log(10) def hightail_distr(dens, meandens,sigma,alpha=1,offset=1, rescale=True): pind = np.argmin(abs(dens-(meandens+offset/ln10))) distr = np.exp(-((dens-meandens)*ln...
[ "keflavich@gmail.com" ]
keflavich@gmail.com
a6e82d0a78bfbb1ed45805828e7fc24a30f3ae20
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2368/60677/251068.py
9396e9b97de97b03a66defddce37ba369f5403bb
[]
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
730
py
times=int(input()) def upgrade(num,grade,numlenth): if grade==numlenth: return num else: answer=list(num) addone=answer[numlenth-1] for i in range(numlenth,grade): answer.append(addone) return "".join(answer) for i in range(times): n=int(input()) nums...
[ "1069583789@qq.com" ]
1069583789@qq.com
e00e5df4509aed4a09477bb1bc2ad7c0e5f5fff5
2eff2b24d5b6f5dffc42c9cbde6102ec9317502f
/src/T9Spelling.py
04997355d835a2b5a70d0d166c4eac25c5102a5c
[]
no_license
JakobKallestad/Python-Kattis
599a14e71a8d5c52aae779b8db3d35f0e4d01e88
51656964e79cc861e53f574785aacb213ef10b46
refs/heads/master
2022-10-24T23:12:45.599813
2021-12-08T12:31:54
2021-12-08T12:31:54
156,881,692
2
1
null
2022-10-02T12:36:57
2018-11-09T15:34:09
Python
UTF-8
Python
false
false
672
py
n = int(input()) char_to_press = {'a': 2, 'b': 22, 'c': 222, 'd': 3, 'e': 33, 'f': 333, 'g': 4, 'h': 44, 'i': 444, 'j': 5, 'k': 55, 'l': 555, 'm': 6, 'n': 66, 'o': 666, 'p': 7, 'q': 77, 'r': 777, 's': 7777, 't': 8, 'u': 88, 'v': 888, 'w': 9, 'x': 99, 'y': 999, 'z': 9999, ' ': 0} for ...
[ "Jakob.Kallestad@student.uib.no" ]
Jakob.Kallestad@student.uib.no
e3a65c62c48f14dde0121fa8f6f27e317cbc37ab
325b5bec55a4128d9f41a5b41a835e792089ed18
/server/data_models/stock_exchange.py
d764531482f21d49a061b697e6b4f25b72f71da3
[]
no_license
webclinic017/stock-portfolio
ffe02e63146bec89fce2d32959a89fb6de7395aa
96f75839a265b9c5d74bbc060791dc7a3f8b0608
refs/heads/master
2022-12-12T07:08:53.687145
2020-08-25T19:21:28
2020-08-25T19:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import String from server.database import Base class StockExchange(Base): """The exchange table tracks the various stock exchanges supported by our web application """ __tablename__ = "stock_exchange" __table_args__ = {"...
[ "gauravkeswani92@gmail.com" ]
gauravkeswani92@gmail.com
07f68ec9ebd11d67b6a6784f71c6831ffa42760a
e0ff1a73d0285abd0d877e1ce818b944f69f1c9b
/lassonet/utils.py
e3647dcf816e9b708bf6514177d6d18ecaf1898b
[ "MIT" ]
permissive
madwsa/lassonet
a8213a0967ad5887cd21adc80f734223d1982334
cf7d5ef97acfc0d6fc05c50a257702203b0f5938
refs/heads/master
2023-05-06T19:38:54.355922
2021-05-25T15:40:40
2021-05-25T15:40:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
import matplotlib.pyplot as plt def plot_path(model, path, X_test, y_test): """ Plot the evolution of the model on the path, namely: - lambda - number of selected variables - score Parameters ========== model : LassoNetClassifier or LassoNetRegressor path output of model....
[ "louis.abraham@yahoo.fr" ]
louis.abraham@yahoo.fr
7ed45c2a5ffe2470674a5325595dae4022564101
1bbc16d711c11a8136517e6479ea880c33ac3275
/kubernetes/client/models/v1beta1_priority_level_configuration_status.py
34dadf019c30bc0de5967459946d08d555cab40d
[ "Apache-2.0" ]
permissive
brendandburns/python
79b20dd47f8670012dce45946760f7135ac76ff8
c9ad88301ed53733589adc6ade90ffc6e977e668
refs/heads/master
2022-12-25T14:47:42.970145
2022-06-16T22:09:26
2022-06-17T15:11:26
140,949,818
2
2
Apache-2.0
2022-12-14T03:09:05
2018-07-14T13:51:16
Python
UTF-8
Python
false
false
3,901
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.24 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
[ "yliao@google.com" ]
yliao@google.com
52e9e84e4a9014b1e748f667e3d6955b5759b620
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/Cascade_RCNN/detectron2/structures/instances.py
68c2831891d55d8f49d78d6ebaa7627184f7d453
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
6,625
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Copyright 2020 Huawei Technologies Co., Ltd # # 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....
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
149bba10ef877643b5125d628bc9f27647a3945c
94ca446c0f17d640f45941fa7c83530ef2fbc099
/wrs-remote-clients-2.0.2/python-wrs-system-client-1.0/cgtsclient/v1/iservice.py
3a44aa0d534a269c6d9706b8ece049717533c36c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
rmoorewrs/tic-windows-remote-clients
c1c2b8924e90ffd2951571bc098ec9873ffd3988
ae16ee78a720852304d79f8b86dfe44e920cc72d
refs/heads/master
2023-05-25T13:55:55.603100
2019-05-31T20:59:28
2019-05-31T20:59:28
189,649,925
0
0
NOASSERTION
2023-05-22T20:43:59
2019-05-31T19:46:28
Python
UTF-8
Python
false
false
2,010
py
# -*- encoding: utf-8 -*- # # Copyright © 2013 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ "rmoorewrs@gmail.com" ]
rmoorewrs@gmail.com
024c0b4bf0e431f5612f530f7e1a88864284d832
f2171e2f2c78d616a381b3308d13a600d687587f
/x.Machine Learning Foundation/NumPy and Pandas Part 1/pandas_index.py
c495a31d9915de424a1067945f3520e48cc19834
[]
no_license
vinkrish/ml-jupyter-notebook
bda01343118869bd2bfb44f3c3122853834d314a
ef5d05512b8387d7a3e494f024416f6ca7336827
refs/heads/master
2021-06-09T00:53:51.638551
2021-05-08T15:13:51
2021-05-08T15:13:51
168,104,038
0
0
null
null
null
null
UTF-8
Python
false
false
1,334
py
import pandas as pd countries = [ 'Afghanistan', 'Albania', 'Algeria', 'Angola', 'Argentina', 'Armenia', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', ] employment_values...
[ "vinaykrishna1989@gmail.com" ]
vinaykrishna1989@gmail.com
00cea05c1d14496ebe6e97a56322cde77265e561
e286d9d5c11ee7615b634f06a9e76803863b84ac
/078.py
802e0fa0daacd550ab6f826375bb5a80078bde94
[]
no_license
DanMayhem/project_euler
93defbdf789e61fbb87b52b27a0ae9d0bd06588b
a75f107815b1152cc1a8864281a3fe91831c02f1
refs/heads/master
2021-01-25T12:19:29.252904
2015-05-20T17:16:44
2015-05-20T17:16:44
33,380,286
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
#!python """ Let p(n) represent the number of different ways in which n coins can be separated into piles. For example, five coins can be separated into piles in exactly seven different ways, so p(5)=7. OOOOO OOOO O OOO OO OOO O O OO OO O OO O O O O O O O O Find the least value of n for which...
[ "danmay@gmail.com" ]
danmay@gmail.com
976159c307c27ab50a8b0ffa5fdf554a6564cb29
95777f5257f00aa982d94812f46658ace2e92bd2
/gluon/cityscapes_seg_dataset.py
5896e66c56e5da1738fcf7e60f11cc5e300f7533
[ "MIT" ]
permissive
yangkang779/imgclsmob
ea2c1f9223a3419375e8339c7e941daba69a56a7
9d189eae8195d045dfb4b25bec2501b2c42a154a
refs/heads/master
2020-05-07T08:16:23.658714
2019-04-08T16:20:33
2019-04-08T16:20:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,155
py
import os import numpy as np import mxnet as mx from PIL import Image from .seg_dataset import SegDataset class CityscapesSegDataset(SegDataset): """ Cityscapes semantic segmentation dataset. Parameters ---------- root : string Path to a folder with `leftImg8bit` and `gtFine` subfolders. ...
[ "osemery@gmail.com" ]
osemery@gmail.com
e344b960e2333887f922a30b9d47ef27e852e512
cadb790b863a58c5a238fa6c6fa4970dccce3806
/NewsReco/data.py
232be8e5ef24063052342fa77057be6010a2e6b2
[]
no_license
YUFEIFUT/RecoSys
faae62d3a049055857c7c5eb6e2f59b4cf08f039
fd547489deacca6e9feb52197ddc25404f1e09cb
refs/heads/main
2023-04-04T01:51:37.936992
2021-04-02T10:59:08
2021-04-02T10:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,380
py
import argparse import os import random from random import sample import pandas as pd from tqdm import tqdm from utils import Logger random.seed(2020) # 命令行参数 parser = argparse.ArgumentParser(description='数据处理') parser.add_argument('--mode', default='valid') parser.add_argument('--logfile', default='test.log') arg...
[ "yearing1017@126.com" ]
yearing1017@126.com
a6b930da8b5c0ca6044ef06321c2affa169a44d7
ca4644e188f0115fcf68050b7665013fa56d6e4b
/caw/widgets/memory.py
63512f9c84eedafb05f4ac181244c58e576b780c
[]
no_license
tomkooij/caw
6ab2673ef5644b720eb42174e98d41ef05bc074c
795e6d7208f25d8be9aa76fb679c04c1f4e72b0c
refs/heads/master
2021-01-20T15:30:47.097225
2015-04-22T20:02:42
2015-04-22T20:02:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
import caw.widget import time import re class Memory(caw.widget.Widget): """ Display memory usage using /proc/meminfo""" def __init__(self, fg=None, **kwargs): super(Memory, self).__init__(**kwargs) self.fg = fg def init(self, parent): super(Memory, self).init(parent) self....
[ "arovit.kv@gmail.com" ]
arovit.kv@gmail.com
e4ea607857e3d3c1a5b4248a00b50a7b7b12706d
02dc35be5f88c3cf8043a894010d975b803484cf
/birthdays/tests/test_extend.py
1864ed61eb5e67966f9a8501699f93f3fa6f5635
[]
no_license
fako/birthdays
c5a4644760b7fc607c47d1911d79482d13ce60a9
7483500846a559e27781282f1e08a4ea0f6871af
refs/heads/master
2021-01-10T18:34:11.752957
2016-01-24T14:08:46
2016-01-24T14:08:46
37,944,053
0
2
null
null
null
null
UTF-8
Python
false
false
1,108
py
from __future__ import unicode_literals, absolute_import, print_function, division from django.test import TestCase from django.db.models import Count from birthdays.management.commands.extend_source import Command as ExtendCommand from birthdays.models import Person, PersonSourceMockOne, PersonSourceMockTwo class ...
[ "email@fakoberkers.nl" ]
email@fakoberkers.nl
0e7865b0c9f1808ed678ee5a3bf249981acd6802
77d834eb125fdc56c96af31cf74db5b741c8e94e
/api/urls.py
cae969065eed895e664e8a23c4ef1c7f1ffdd113
[]
no_license
zhouf00/learn_rest_framework
7c17124fcb08ce48f54f94201f2da29e41e9d867
a292e38ee9ff475e43ce4612fbb6c074b4073f84
refs/heads/master
2022-10-12T12:05:07.618651
2020-06-11T02:40:45
2020-06-11T02:40:45
268,827,695
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^books/$', views.Book.as_view()), url(r'^books/(?P<pk>.*)/$', views.Book.as_view()), url(r'^test/', views.Test.as_view()), url(r'^test2/', views.Test2.as_view()), ]
[ "49618748+zhouf00@users.noreply.github.com" ]
49618748+zhouf00@users.noreply.github.com
2fc01026a955c327745cbfb6ddfc0b738eefe62a
89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7
/Python OOP 2020/OOP_2020_exam_prep/Exam_16.08.2020/re[enie/project/software/light_software.py
f2c765caf7d15b19e3c4052d5c7ec0ecdc509662
[]
no_license
KoliosterNikolayIliev/Softuni_education
68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd
18f1572d81ad9eb7edd04300deb8c81bde05d76b
refs/heads/master
2023-07-18T09:29:36.139360
2021-08-27T15:04:38
2021-08-27T15:04:38
291,744,823
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
from project.software.software import Software class LightSoftware(Software): def __init__(self, name: str, capacity_consumption: int, memory_consumption: int): super().__init__(name, 'Light', capacity_consumption, memory_consumption) self.capacity_consumption = int(1.5 * self.capacity_consumptio...
[ "65191727+KoliosterNikolayIliev@users.noreply.github.com" ]
65191727+KoliosterNikolayIliev@users.noreply.github.com
88604d9ea2e04d2cbbda3eeb010b376700e444ff
a3e86193eb50d90b01135a8a1f51330e10624d7d
/Quadrupole/computeHausdorff.py
eda5b6dab99e327de6f6bb4053d4121ee3a71399
[]
no_license
yangyutu/Diffusion-mapping
b1f461b5c3d37e4b07a733eb28674b7dde140fa4
2e6b151dc7ced1c66589b4e56383a08764e52319
refs/heads/master
2021-01-11T03:05:47.610753
2019-08-23T12:23:13
2019-08-23T12:23:13
71,095,710
1
0
null
null
null
null
UTF-8
Python
false
false
887
py
# -*- coding: utf-8 -*- """ Created on Fri Oct 23 13:09:18 2015 @author: yuugangyang """ import numpy as np def compute_dist(A, B): dim= A.shape[1] dist = [] for k in range(A.shape[0]): C = np.dot(np.ones((B.shape[0], 1)), A[k,:].reshape(1,A.shape[1])) D = (C-B) * (C-B) D = np....
[ "yangyutu123@gmail.com" ]
yangyutu123@gmail.com
25960eafa19a79c0bf57da6562c5779f6f27e566
d74913eda69ee1799c887a645c574fa5a4da8fba
/code/daymet/daymet_download.py
fdb08ec202d56e76ce15de51cf4e66b91bdb7643
[ "Apache-2.0" ]
permissive
Fweek/pyMETRIC
efd6fe8c6ea74f5c87d19ecbb6653549fb3ba943
0e7eec57fedd33b81e6e7efe58290f50ebbebfab
refs/heads/master
2021-05-03T10:23:15.066106
2018-02-06T19:32:36
2018-02-06T19:32:36
120,534,046
1
0
null
2018-02-06T23:00:49
2018-02-06T23:00:48
null
UTF-8
Python
false
false
6,295
py
#-------------------------------- # Name: daymet_download.py # Purpose: Download DAYMET data # Python: 2.7, 3.5, 3.6 #-------------------------------- import argparse import datetime as dt import logging import os import sys from python_common import date_range, valid_date, url_download def main(...
[ "dgketchum@gmail.com" ]
dgketchum@gmail.com
806abcf8960a76c7d2f3f8225378822b2c9cef55
edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81
/Review/Chapter09/Exercise/9-11.py
39c21f92bd2548e0601a8b682936e4b6b46c8f1c
[]
no_license
narinn-star/Python
575cba200de35b9edf3832c4e41ccce657075751
14eba211cd3a9e9708a30073ba5b31d21d39eeef
refs/heads/master
2023-05-25T22:57:26.079294
2021-06-07T15:29:39
2021-06-07T15:29:39
331,647,462
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from tkinter import* from time import* from tkinter.messagebox import showinfo top = Tk() def click1(): time = strftime('Day: %d %b %Y\nTime: %H:%M:%S %p\n', localtime()) showinfo(message=time, title='Local time') def click2(): time = strftime('Day: %d %b %Y\nTime: %H:%M:%S %p\n', gmtime()) showinfo(...
[ "skfls2618@naver.com" ]
skfls2618@naver.com
b8b2b3ab91eca94d428151711819f43ea0321bb1
6b33a54d14424bb155a4dd307b19cfb2aacbde43
/bioinformatics/analysis/rnaseq/circRNA/circ_repeat_analysis.py
58810b979f0684734ac01601eef30c8fe257c6ff
[ "MIT" ]
permissive
bioShaun/omsCabinet
4905ab022dea1ec13df5982877dafbed415ee3d2
741179a06cbd5200662cd03bc2e0115f4ad06917
refs/heads/master
2021-01-25T11:56:38.524299
2020-02-09T09:12:30
2020-02-09T09:12:30
123,445,089
0
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
import os import click import pandas as pd REPEAT_HEADER = [ 'chrom', 'start', 'end', 'circRNAID', 'score', 'strand', 'region', 'repeat_chrom', 'repeat_start', 'repeat_end', 'repeat_id', 'repeat_score', 'repeat_strand', 'repeat_type', 'repeat_class', 'ov...
[ "ricekent@163.com" ]
ricekent@163.com
f6f602813e8d149331f616953fcebe2f7c6aa15e
6cfc842b7dc1c2628d9e7ef69cdd52b7279a409d
/business/member/member_notice.py
4bbeabd761e742387154dd80e2953e90aa965e53
[]
no_license
vothin/requsets_test
6fbf4ec2206b54d150d253700ba62bfa51c32e7f
235200a67c1fb125f75f9771808f6655a7b14202
refs/heads/master
2021-07-07T06:48:50.528885
2020-12-25T04:19:12
2020-12-25T04:19:12
218,724,714
0
0
null
2020-06-23T08:04:36
2019-10-31T09:02:12
Python
UTF-8
Python
false
false
2,683
py
# -*- coding:utf-8 -*- ''' @author: Vothin @software: 自动化测试 @file: member_notice.py @time: 2019/11/19 15:21 @desc: ''' # ******************************************************** from common.requests_test import Requests_Test from common.change_param import Change_Param from common.recordlog impor...
[ "zy757161350@qq.com" ]
zy757161350@qq.com
859b6517dab3dc3b24d760ab570d441a360b391c
cd3df53a432d35e2fe7b4e4f9bbe62222235a85b
/tests/port_tests/point_node_tests/test_equals.py
74729bb6e9f0675b7ea2ee6c8009062e680cbf6a
[ "MIT" ]
permissive
vincentsarago/wagyu
00ccbe6c9d101724483bde00e10ef512d2c95f9a
f6dce8d119fafa190d07f042ff6c4d5729a4c1e6
refs/heads/master
2023-01-20T06:26:27.475502
2020-11-21T04:57:01
2020-11-21T04:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
from hypothesis import given from tests.utils import (equivalence, implication) from wagyu.point_node import PointNode from . import strategies @given(strategies.points_nodes) def test_reflexivity(point_node: PointNode) -> None: assert point_node == point_node @given(strategies.points_...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
a3f03b04f4becf6a714e2d02f43d566d360beac1
32a1802dccb8a143532f8ef419a95fd7f1973bc4
/movies_order/test_api/movies_tickets/urls.py
d2e23ac0a4e0c8be41adff958ff2f262b3e085ab
[]
no_license
zhmaoli/Django
b8171ba1f1612dc7ae61b58b718965a64db81c69
45586e782a741ba3bf64c9023e805f6f4e6496f8
refs/heads/master
2021-02-27T08:57:41.193488
2019-08-01T09:17:07
2019-08-01T09:17:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
#coding=utf8 from django.urls import path from movies_tickets.views import MovieBaseAPI, MovieDetailAPI, CinemasApi, CinemaDetailAPI, MovieSessionsAPI, ALLCinemasApi, MovieSessionByDateAPI, CinemaSessionByMovieAPI, OrderApi urlpatterns = [ path('movies', MovieBaseAPI.as_view()), path('movies/<int:movie...
[ "1278077260@qq.com" ]
1278077260@qq.com
0fdd0f8836f3da67eac1ebb538065344528441e7
55afd3bbe5187dba96be169a7c068c7cf7543447
/article17/habitatsummary/attrs_conclusion/td_coverage_conclusion.py
af658f6bc3618ee5d27b1851f38e0c04ed2d6749
[]
no_license
eaudeweb/art17-2006
6d9413439e10f4db0b72fc49c80b7c50ee1ef59e
4bc61cd2972f94769dae97b95ccb55f2a0952cf1
refs/heads/master
2016-09-05T13:33:19.280952
2014-01-30T09:54:27
2014-01-30T09:54:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
# Script (Python) # /article17/habitatsummary/attrs_conclusion/td_coverage_conclusion # params: 'habitat, region, record, conclusions' ## Script (Python) "td_coverage_conclusion" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=habitat...
[ "cornel.nitu@eaudeweb.ro" ]
cornel.nitu@eaudeweb.ro
ee7dfa406cafdde059c7ddd7449459805f72d265
2d191eb46ed804c9029801832ff4016aeaf8d31c
/configs/ssl/ssl_deeplabv3plus_r101-d8_512x1024_40k_b16_cityscapes_baseline_only_label.py
b4650b59ec2408b9e04a69cbca6f0c5e150fbcdf
[ "Apache-2.0" ]
permissive
openseg-group/mmsegmentation
df99ac2c3510b7f2dff92405aae25026d1023d98
23939f09d2b0bd30fc26eb7f8af974f1f5441210
refs/heads/master
2023-03-02T07:49:23.652558
2021-02-15T04:16:28
2021-02-15T04:16:28
278,537,243
2
2
null
2020-07-10T04:24:16
2020-07-10T04:24:15
null
UTF-8
Python
false
false
2,192
py
_base_ = [ '../_base_/models/deeplabv3plus_r50-d8.py', '../_base_/datasets/cityscapes.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained='open-mmlab://resnet101_v1c', ...
[ "yhyuan@pku.edu.cn" ]
yhyuan@pku.edu.cn
0e53dcd8e4f627c22c5c0f8ce783e14019cf28ba
3adce822439943250c1a1578cb9edd285bfaf0ce
/django/generate_fixtures.py
5861886990481ab9436326744166931eae82fd3a
[ "MIT", "Apache-2.0" ]
permissive
resilientred/skaffold
feceb71acfa9183db2866f0c00904f4c6e00b38b
0d705d3907bc05e781141f62002a981683813658
refs/heads/master
2021-05-02T01:42:43.529831
2015-07-14T05:34:36
2015-07-14T05:34:36
120,873,685
1
0
null
2018-02-09T07:40:31
2018-02-09T07:40:31
null
UTF-8
Python
false
false
473
py
from django.core.management.base import BaseCommand, CommandError from {{{ project }}}.{{{ app_name }}} import model_factories MAX_RECORDS = 10 class Command(BaseCommand): help = 'Adds all fixture data.' def handle(self, *args, **options): for _ in xrange(MAX_RECORDS): {%% for model_name in ...
[ "dxdstudio@gmail.com" ]
dxdstudio@gmail.com
e30b2915f9c4592a949d08e8cd4cd02350fe10d1
e1103b8818d071e313a4d8e4bc60e3649d0890b6
/becausethenight/settings.py
cb6405b79ee7b4294ba6f15da343028303e9b7f8
[]
no_license
programiranje3/2018
ddab506f2a26039b365483ab33177951d5e15fbb
2baf17741d77630199b377da59b5339fd9bfb2ca
refs/heads/master
2020-03-28T22:01:16.724380
2018-12-12T16:23:51
2018-12-12T16:23:51
149,199,466
1
1
null
null
null
null
UTF-8
Python
false
false
265
py
"""Project configuration settings (PROJECT_DIR etc.) """ import os # print(__file__) # print(os.path.abspath(__file__)) # print(os.path.dirname(__file__)) PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) # print(PROJECT_DIR) # print(type(PROJECT_DIR))
[ "devedzic@gmail.com" ]
devedzic@gmail.com
63622122aa5f11b9e93809e26314da2b4c47f028
beba26fc9dca330a5d4b92ef22803c4d861209e7
/app.py
2c75511d8d5dea50b343deb5890ee03f39f6d2b6
[]
no_license
Jrius4/ovc_problem_solver
35df08bf357be3309cddd1b403acfdcb41a0697d
c4384c48d68ef8b18418230f9647d8af77cef537
refs/heads/main
2023-08-30T04:56:26.134183
2021-10-24T21:43:54
2021-10-24T21:43:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,214
py
from openpyxl import load_workbook wb = load_workbook("input/input.xlsx") ws = wb.active data = [] def getcolumns(a:str,b:str): a = str(a).lower() b = str(b).lower() if a == "": return ((26*(0))+int(ord(b)-97)) else: return ((26*(int(ord(a)-97)+1))+int(ord(b)-97)) for row in ws...
[ "kazibwejuliusjunior@gmail.com" ]
kazibwejuliusjunior@gmail.com
e9f1dbf7ffe89c3abe4b0a7736744c5fe30fbc5c
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/xia2/Schema/XSample.py
fcc4a0ae567f8ccbd030bab4850f9d9af13a6299
[ "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
3,748
py
#!/usr/bin/env python # XSample.py # Copyright (C) 2015 Diamond Light Source, Richard Gildea # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. from __future__ import absolute_import, division, print_function class XSample(object): """An o...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
6ae91e2b8f53229d6c371a8f235392667d79ab8a
12258001571bd504223fbf4587870960fa93a46d
/mud/django-haystack-2.3.2/haystack/admin.py
6b0b0988dfc87447577e3757ac8592a3289d131f
[ "BSD-3-Clause", "MIT" ]
permissive
Nik0las1984/mud-obj
0bd71e71855a9b0f0d3244dec2c877bd212cdbd2
5d74280724ff6c6ac1b2d3a7c86b382e512ecf4d
refs/heads/master
2023-01-07T04:12:33.472377
2019-10-11T09:10:14
2019-10-11T09:10:14
69,223,190
2
0
null
2022-12-26T20:15:20
2016-09-26T07:11:49
Python
UTF-8
Python
false
false
6,639
py
from __future__ import unicode_literals from django import template from django.contrib.admin.options import csrf_protect_m, ModelAdmin from django.contrib.admin.views.main import ChangeList, SEARCH_VAR from django.core.exceptions import PermissionDenied from django.core.paginator import InvalidPage, Paginator from dj...
[ "kolya.khokhlov@gmail.com" ]
kolya.khokhlov@gmail.com
8bc29b5636fd7970d731f56428ec9f29064104af
7caa438706a423dd9779a81f8345fcf1ec11e921
/timeit/28_02/genetation_test_fix.py
bc470b672816ae1dc444d5d948b1b4ee741c916a
[]
no_license
tamarinvs19/python-learning
5dd2582f5dc504e19a53e9176677adc5170778b0
1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9
refs/heads/master
2021-07-15T13:23:24.238594
2021-07-08T07:07:21
2021-07-08T07:07:21
120,604,826
3
0
null
null
null
null
UTF-8
Python
false
false
315
py
from random import randint, seed m = 10000 def one_rf(): length = randint(0, m) #print(1, length) xs = [] for _ in range(length): r = randint(0, m) xs.append(r) def two_rf(): length = randint(0, m) #print(2, length) xs = [randint(0, m) for _ in range(length)]
[ "slavabarsuk@ya.ru" ]
slavabarsuk@ya.ru
bb7f5783d40bb042630bb35a9e3b2378d09b7311
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/E9Wkppxyo763XywBe_24.py
c54745b649c7618965decf030eb38c9d949ece2e
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
2,866
py
""" A binary clock displays the time of day in binary format. Modern binary clocks have six columns of lights; two for each of the hours, minutes and seconds. The photo below shows a binary clock displaying the time "12:15:45": ![](https://edabit-challenges.s3.amazonaws.com/220px-Digital-BCD-clock.jpg) The binary ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
795bc5ac4bfbb332f76a5e289c2b64859aecc897
52aca246e91ad6ff611a1db31893089db1782344
/fluent_contents/tests/utils.py
9eab0a404cb280c88311b7a29fea19af132145cd
[ "Apache-2.0" ]
permissive
si14/django-fluent-contents
a2b53ca09997ae2ba20c42e2bb706c177c38c3cc
12d98390b8799d8568d90ca9359b30f49ed2eade
refs/heads/master
2021-01-20T03:11:39.067625
2017-04-26T16:52:22
2017-04-26T16:52:22
89,505,219
0
0
null
2017-04-26T16:49:28
2017-04-26T16:49:28
null
UTF-8
Python
false
false
3,997
py
""" Utils for internal tests, and utils for testing third party plugins. """ from __future__ import print_function import django from future.builtins import str from django.conf import settings from django.core.management import call_command from django.contrib.sites.models import Site from django.test import TestCase ...
[ "vdboor@edoburu.nl" ]
vdboor@edoburu.nl
b40fa846aa398e8e39aadf0971b887251b2a9952
8f6ebd257d7e0d3a71c3e173dbee65e32973a526
/binaryS.py
c6b94c8de340bdf3cb481ccd9326851a5528b86c
[]
no_license
jennyChing/mit-handout_practice
e27839e72a6f36a3dde1e72021c493d2ed97898a
ca1f217fe97a76c2ebe55268ea812715a6b79503
refs/heads/master
2021-01-10T09:06:35.245013
2016-03-24T08:07:05
2016-03-24T08:07:05
54,456,604
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
def biSearch (a, n): left = 0 right = len(a) while right > left: middle = int((right+left)/2) print(left,right,middle,a[middle],n) if n == a[middle]: return middle print(middle) elif n > a[middle]: left = middle+1 else: ...
[ "jklife3@gmail.com" ]
jklife3@gmail.com
2d2faa48a176471eb9914d9d4d9a4c0fe96dfdb5
7a4a934ab01fe76243cfc1075af837d8a4659b96
/makingQueries/wsgi.py
67804b38c693a877cf8796983061b044b06cb3d2
[]
no_license
ephremworkeye/makingQueries
2cc464be56c1626425862aec3f191aedc054fa84
95f897690f05b918f54bc49c4667fc2952e7fd34
refs/heads/master
2023-07-03T13:40:53.538436
2021-08-01T08:01:55
2021-08-01T08:01:55
391,565,969
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for makingQueries project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "ephremworkeye@gmail.com" ]
ephremworkeye@gmail.com
3b28b0eb18f4e471ce30f37864a27ccf145b8896
21a92e72448715510d509ab0ec07af37f388013a
/camouflage.py
1c778ab4060a0a0105fd08ae3b58b681a0fd37b6
[]
no_license
chlee1252/dailyLeetCode
9758ad5a74997672129c91fb78ecc00092e1cf2a
71b9e3d82d4fbb58e8c86f60f3741db6691bf2f3
refs/heads/master
2023-01-22T02:40:55.779267
2020-12-03T15:01:07
2020-12-03T15:01:07
265,159,944
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
from collections import defaultdict, Counter from functools import reduce def solution(clothes): # Approach 1: use defaultdict answer = 1 # Set init answer value as 1 hash = defaultdict(int) for cloth in clothes: hash[cloth[1]] += 1 for key, value in hash.items(): answer *= value + 1...
[ "chlee1252@gmail.com" ]
chlee1252@gmail.com
0073eba180930fa02f31ad4bad81cc9fdd6be234
8830831a87f35ff2628f379d8230928ec6b5641a
/BNPParibas/code/xgb_naive_bayes.py
550126dd6fde9b812eb51b8bd8c481cbbb2f4145
[]
no_license
nickmcadden/Kaggle
e5882c9d68a81700d8d969328d91c059a0643868
cbc5347dec90e4bf64d4dbaf28b8ffb362efc64f
refs/heads/master
2019-07-18T08:09:40.683168
2018-01-26T14:35:38
2018-01-26T14:35:38
40,735,982
0
0
null
null
null
null
UTF-8
Python
false
false
3,490
py
import sys import pandas as pd import numpy as np import scipy as sp import xgboost as xgb import data_naive_bayes as data import argparse import pickle as pkl from scipy import stats from sklearn.utils import shuffle from sklearn.cross_validation import StratifiedShuffleSplit, KFold def log_loss(act, pred): """ V...
[ "nmcadden@globalpersonals.co.uk" ]
nmcadden@globalpersonals.co.uk
6ade2b1fbe60d8188804988229f7f4671350eb1c
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_0/ar_/test_artificial_32_Fisher_Lag1Trend_0__20.py
5207f3b5c001ec81a647c5bcb91b30deaaa7fbae
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
265
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
35a84d93d7da4a1fe22aa258dc364462324cfd8a
49fa43ae11cd06f68efb65a9f59add168b205f29
/python/132_palindrome-partitioning-II/palindromePartitioningII.py
1431ee00dc62b2bbd014b72c2d5902c94368dd4c
[]
no_license
kfrancischen/leetcode
634510672df826a2e2c3d7cf0b2d00f7fc003973
08500c39e14f3bf140db82a3dd2df4ca18705845
refs/heads/master
2021-01-23T13:09:02.410336
2019-04-17T06:01:28
2019-04-17T06:01:28
56,357,131
2
1
null
null
null
null
UTF-8
Python
false
false
431
py
class Solution(object): def minCut(self, s): """ :type s: str :rtype: int """ n = len(s) dp = [i-1 for i in range(n + 1)] for i in range(1, n+1): for j in range(i): temp = s[j:i] if temp == temp[::-1]: ...
[ "kfrancischen@gmail.com" ]
kfrancischen@gmail.com
84ec594f8624640b12420b289697b98165eb129d
f0a62605171bc62eb68dd884c77cf146657ec5cb
/library/f5bigip_ltm_monitor_soap.py
82c1972e1d3fdc6839c472d393fc326641e76ce1
[ "Apache-2.0" ]
permissive
erjac77/ansible-role-f5
dd5cc32c4cc4c79d6eba669269e0d6e978314d66
c45b5d9d5f34a8ac6d19ded836d0a6b7ee7f8056
refs/heads/master
2020-04-06T08:13:14.095083
2020-02-16T23:44:13
2020-02-16T23:44:13
240,129,047
3
1
null
null
null
null
UTF-8
Python
false
false
7,822
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2016 Eric Jacob <erjac77@gmail.com> # # 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 #...
[ "erjac77@gmail.com" ]
erjac77@gmail.com
84c3509be2e56001daedb1739428049bbe0fb6a3
441b9d601c5e6b860a11bf579f97406bf6c2a2b9
/tests/testServerManager.py
e4ace767c7e6e9a3c60aaf1ecb282ca7e9c24f3d
[ "MIT" ]
permissive
YunjeongLee/SBstoat
7885d5604dbfd10efa79ad71823a6835e19c53c4
31b184176a7f19074c905db76e6e6ac8e4fc36a8
refs/heads/master
2023-04-14T21:48:41.499046
2021-04-15T18:48:00
2021-04-15T18:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,303
py
# -*- coding: utf-8 -*- """ Created on March 23, 2021 @author: joseph-hellerstein """ import SBstoat._serverManager as sm from SBstoat.logs import Logger import multiprocessing import numpy as np import unittest IGNORE_TEST = False IS_PLOT = False SIZE = 10 PRIME_SIZES = [5, 10, 15] class PrimeFinder(sm.Abstract...
[ "jlheller@uw.edu" ]
jlheller@uw.edu
ddd615787593b009450780201e0cdfe624fdb6ad
3d4318396b8433e36a144ea583158eb22807577a
/draft_sport/errors/error.py
ebe483be371232aa6ac701926151609590875d0f
[]
no_license
draft-sport/draft-sport-py
245ee567a3ddaf41bbb99d03f043f90ad5b6a49c
177fd438bc095cebcff5374bc6b1e815846617bb
refs/heads/master
2023-03-11T16:56:29.415427
2021-03-01T09:59:46
2021-03-01T09:59:46
233,480,373
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
""" Draft Sport Error Module author: hugh@blinkybeach.com """ class DraftSportError(Exception): def __init__(self, description: str) -> None: self._description = description super().__init__(self) return
[ "hugh.jeremy@gmail.com" ]
hugh.jeremy@gmail.com
890e70bce6655c521ab1f813287934355db57ca2
65b087722e7824abbb134e56ab0dad1982369a4d
/server/start_consuming.py
c05f39eee6e5e81844cd2eb01df3e97330585756
[]
no_license
BabyCakes13/SMS
3c35abf2aea7619a579af2bb708819676068f918
db8b8cd05bd47ee99abcc8660453edf7fce1c7a1
refs/heads/master
2020-03-26T15:13:05.380050
2018-08-23T16:48:46
2018-08-23T16:48:46
145,028,793
0
0
null
null
null
null
UTF-8
Python
false
false
1,686
py
"""Module which takes the packets from the RabbitMQ and stores them in the database.""" import json import threading import pika from util import reader, strings from server import database class RabbitThread(threading.Thread): """Class which handles the packets fromm the RabbitMQ queue.""" def __init__(self...
[ "you@example.com" ]
you@example.com
8baa1d5b6b25d9c56f6939f1e56070b151d51539
8f3336bbf7cd12485a4c52daa831b5d39749cf9b
/Python/total-hamming-distance.py
c67638d43a8288635242506fcc0908db31353a52
[]
no_license
black-shadows/LeetCode-Topicwise-Solutions
9487de1f9a1da79558287b2bc2c6b28d3d27db07
b1692583f7b710943ffb19b392b8bf64845b5d7a
refs/heads/master
2022-05-30T22:16:38.536678
2022-05-18T09:18:32
2022-05-18T09:18:32
188,701,704
240
110
null
2020-05-08T13:04:36
2019-05-26T15:41:03
C++
UTF-8
Python
false
false
405
py
# Time: O(n) # Space: O(1) class Solution(object): def totalHammingDistance(self, nums): """ :type nums: List[int] :rtype: int """ result = 0 for i in xrange(32): counts = [0] * 2 for num in nums: counts[(num >> i...
[ "noreply@github.com" ]
black-shadows.noreply@github.com
9d6a5a5dcd5c8a9cf43c18f8cebde2d13d895a4d
6d91104de3e00649659774e9ea27a6e01ddc1aae
/supervised_learning/0x0F-word_embeddings/0-bag_of_words.py
1689de9bb859099c2fda01c1afea7a429c1a9197
[ "MIT" ]
permissive
linkem97/holbertonschool-machine_learning
07794bdd318323395f541d3568946ec52e7632da
58c367f3014919f95157426121093b9fe14d4035
refs/heads/master
2023-01-24T13:04:54.642014
2020-11-24T00:37:58
2020-11-24T00:37:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
#!/usr/bin/env python3 """This module has the function bag_of_words""" from sklearn.feature_extraction.text import CountVectorizer def bag_of_words(sentences, vocab=None): """ This function creates a bag of words sentences is a list of sentences to analyze vocab is a list of the vocabulary words to us...
[ "pauloan@hotmail.com" ]
pauloan@hotmail.com
4622d9ee12f9a207db4e0ef4ad15d1eba124b5a7
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5640146288377856_1/Python/xyang/A.py
7020507bdf0be002df2ee122f2d27c345aa2b207
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
756
py
import os import math import copy import sys from collections import * os.chdir('/Users/Dana/Documents/0502') f = open('A-large.in','r') fo = open('A.out','w') T = int(f.readline()) for ite in range(T): temp = str.split(f.readline()) r,c,w = int(temp[0]),int(temp[1]),int(temp[2]) #print(r,c,...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
c6cd28474478f73a3bc51fcb68b3d5beb42c4047
f4e45e2f6a6c42571eefdc64773ca83c6b9c2b98
/plugin/ffmpeg/__init__.py
26a6e7be616deec5bdf3aa9046fff3a7812e6609
[]
no_license
soju6jan2/sjva2_src_obfuscate
83659707ca16d94378b7eff4d20e5e7ccf224007
e2dd6c733bbf34b444362011f11b5aca2053aa34
refs/heads/master
2023-04-21T12:27:01.132955
2021-05-06T17:35:03
2021-05-06T17:35:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
from.plugin import blueprint,menu,plugin_load,plugin_unload,streaming_kill,get_video_info from.logic import Status,Logic from.interface_program_ffmpeg import Ffmpeg # Created by pyminifier (https://github.com/liftoff/pyminifier)
[ "cybersol@naver.com" ]
cybersol@naver.com
7334b7f22281ae1338b4f47133b91bc70411827e
a7fa51726bae15b197b7bb6829acd5139b6e3073
/feature_engineering/bl/steps/BackwardStepsDialogueFeatureEngineerImpl.py
1c7b054857e9458e86ecca93b5dd0640eaf34b8b
[]
no_license
Rmsharks4/NLPEngine-opensource
ae375dc9ea364de793d78ab1c9d950718a11d54a
7e384f6e13377723bb651130733a16ed53fe31d1
refs/heads/master
2023-02-27T17:45:38.592126
2021-02-01T20:59:16
2021-02-01T20:59:16
209,055,714
0
0
null
null
null
null
UTF-8
Python
false
false
2,059
py
from feature_engineering.utils.ActsUtils import ActsUtils from feature_engineering.bl.steps.StepsDialogueFeatureEngineerImpl import StepsDialogueFeatureEngineerImpl from feature_engineering.bl.intents import * from feature_engineering.bl.intents.AbstractDialogueIntent import AbstractDialogueIntent class BackwardSteps...
[ "Github12" ]
Github12
2bb7a17bad94a40501802812427b35990374e9f6
63bcca68dc75b77b737542925062effe37bc13c8
/fabfile/common.py
2e96fa7881425042dc6fc5ef658c350dcb0d0d33
[]
no_license
bekbossyn/dictionary
35b48b4a7b000156a52b8039917299fed0ac9284
1a9824ca9b450086a1c348c5f9fff0f967e9a282
refs/heads/master
2020-05-20T00:35:26.802693
2019-05-11T09:40:37
2019-05-11T09:40:37
185,290,434
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
from fabric.decorators import task from fabric.operations import sudo, run @task def git_pull(): """ Updates the repository """ run("cd /home/development/dictionary && git pull origin master") # @task # def celery_logs(): # """ # Updates the repository # """ # sudo("...
[ "bekbossyn.kassymkhan@gmail.com" ]
bekbossyn.kassymkhan@gmail.com
48f6953f51bce07b48d04d081601460c628880bf
856e9a8afcb81ae66dd998b0d2cc3556c9f315ea
/dexy/commands/parsers.py
2ee73bab171b219f6839db2ac0a1c9c5dc0e2b59
[ "MIT" ]
permissive
dexy/dexy
1d5c999830de4663c05a09f4cd00b1628dfc8d46
323c1806e51f75435e11d2265703e68f46c8aef3
refs/heads/develop
2023-06-10T08:02:45.076551
2021-02-28T22:40:41
2021-02-28T22:40:41
1,506,989
141
34
MIT
2020-06-15T17:44:50
2011-03-21T14:48:28
Python
UTF-8
Python
false
false
990
py
from dexy.utils import defaults from dexy.commands.utils import dummy_wrapper from dexy.parser import AbstractSyntaxTree from dexy.parser import Parser def parsers_command(): wrapper = dummy_wrapper() ast = AbstractSyntaxTree(wrapper) processed_aliases = set() for alias in sorted(Parser.plugins): ...
[ "ana@ananelson.com" ]
ana@ananelson.com
f5ee7e5132c1a686ff3d2503c9dadfdd7382a6fc
eb5857487dff2655a0228a9ca7024b54e6b1e061
/solutions/2022/kws/aoc_2022_kws/day_14.py
7dc12f45d0103d2220c1646b839de1e1b3b41af8
[ "MIT" ]
permissive
SocialFinanceDigitalLabs/AdventOfCode
8690db87dedb2898db37704c6fcf8526f7ea8d2e
4af7c27f1eb514ed805a402dc4635555e495bd1c
refs/heads/main
2023-02-19T16:23:12.195354
2022-12-28T09:54:50
2022-12-28T09:54:50
159,806,963
2
4
MIT
2023-08-30T00:02:24
2018-11-30T10:25:06
Jupyter Notebook
UTF-8
Python
false
false
5,379
py
from contextlib import contextmanager from enum import Enum from typing import Generator, List, Text import click from aoc_2022_kws.cli import main from aoc_2022_kws.config import config from rich.live import Live class CoordinateType(Enum): ROCK = "#" SAND = "o" UNREACHABLE = "-" class Coordinate: ...
[ "kaj@k-si.com" ]
kaj@k-si.com
af46777b4d6e2311448c22027c268d417315ad5e
d897c2bc4ba9a84e7e8a2fe3e998d78cd116f920
/conta_multipli/att/conta_multipli_template_sol.py
ec1a507bb856a8d52ddd89b12cfcc45080cbd11a
[]
no_license
romeorizzi/problemsCMS_for_LaboProg
8907622744bc89752391024f24025a7e9706501b
027b1b204efe602461e93d8b1c194a09eb6526cd
refs/heads/master
2020-04-03T17:33:52.384915
2020-03-25T07:10:17
2020-03-25T07:10:17
155,449,755
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
# -*- coding: utf-8 -*- # Template di soluzione per il problema conta_multipli from __future__ import print_function import sys if sys.version_info < (3, 0): input = raw_input # in python2, l'equivalente di input è raw_input # INIZIO area entro la quale ti consigliamo di operare. # Ecco la funzione che spetta a...
[ "romeo.rizzi@univr.it" ]
romeo.rizzi@univr.it
bdf57ae8440dbf93e1bc6eddc1f9701310ee943d
ac56934de4f66f5ad56193209f5fd669e1d34167
/holecard_handicapper/model/sample_sin_fitting/data_reader.py
1042c1c482cb3b23c983288c670e8e4550bc0ded
[]
no_license
ishikota/_HoleCardHandicapper
54a4310c32956baecfa21bee6c72007da091c25b
6a0674404698f22e208ca0e4c0a870ff0f34f2dd
refs/heads/master
2021-05-03T07:52:18.077756
2016-06-27T07:21:07
2016-06-27T07:21:07
60,923,502
1
0
null
null
null
null
UTF-8
Python
false
false
470
py
import numpy as np def load_data(file_path, test_ratio): num_training, num_testing, sigma, seed = 400, 100, 0.3, 0 def sin(x): return np.sin(x)*3+1 N = num_training + num_testing tau=4*np.pi np.random.seed(seed) X = np.random.random((N,1))*tau Y = sin(X)+np.random.normal(0,sigma,(N,1)) I = np.ara...
[ "ishikota086@gmail.com" ]
ishikota086@gmail.com
2f5f17015373e413acca75e653c2af857f16dd4d
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res_bw/scripts/common/lib/json/tests/test_fail.py
62e191830eb6c23db772e05ba90fd4cca92e450c
[]
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
2,304
py
# 2015.11.10 21:36:30 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/json/tests/test_fail.py from json.tests import PyTest, CTest JSONDOCS = ['"A JSON payload should be an object or array, not a string."', '["Unclosed array"', '{unquoted_key: "keys must be quoted"}', '["extra comma",]', '["doub...
[ "info@webium.sk" ]
info@webium.sk
6c2ffeac03adb70f34b7c11bb93bedc336920023
0822d36728e9ed1d4e91d8ee8b5ea39010ac9371
/robo/pages/acre/pagina20_politica.py
03057626a23722d2c1352c9539c8933c4e907622
[]
no_license
diegothuran/blog
11161e6f425d08bf7689190eac0ca5bd7cb65dd7
233135a1db24541de98a7aeffd840cf51e5e462e
refs/heads/master
2022-12-08T14:03:02.876353
2019-06-05T17:57:55
2019-06-05T17:57:55
176,329,704
0
0
null
2022-12-08T04:53:02
2019-03-18T16:46:43
Python
UTF-8
Python
false
false
911
py
# coding: utf-8 import sys sys.path.insert(0, '../../../blog') from bs4 import BeautifulSoup import requests from robo.pages.util.constantes import PAGE_LIMIT GLOBAL_RANK = 1306322 RANK_BRAZIL = None NAME = 'pagina20.net' def get_urls(): try: urls = [] for i in range(1,PAGE_LIMIT): i...
[ "diego.thuran@gmail.com" ]
diego.thuran@gmail.com
8194dad6dd0e415b6afedc496cab4a6f3c488433
924763dfaa833a898a120c411a5ed3b2d9b2f8c7
/compiled/python/zlib_with_header_78.py
8eef421ed619a14bff098297e52e60abc6bd9cd0
[ "MIT" ]
permissive
kaitai-io/ci_targets
31257dfdf77044d32a659ab7b8ec7da083f12d25
2f06d144c5789ae909225583df32e2ceb41483a3
refs/heads/master
2023-08-25T02:27:30.233334
2023-08-04T18:54:45
2023-08-04T18:54:45
87,530,818
4
6
MIT
2023-07-28T22:12:01
2017-04-07T09:44:44
C++
UTF-8
Python
false
false
744
py
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild # type: ignore import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO import zlib if getattr(kaitaistruct, 'API_VERSION', (0, 9)) < (0, 9): raise Exception("Incompatible Kaitai Struct Pyth...
[ "kaitai-bot@kaitai.io" ]
kaitai-bot@kaitai.io