blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
7e04e05013d0ba91eda5ecf46be0d67853f47faf
9573947f0ded2ccc57358119ec4a644db8ae0239
/variance_reduction/weight_importances_tests/shielding_problem_1/forward/forward_cadis_importance_weight.py
eb118a44420a7e511f5bb9d2b7426339140602d5
[]
no_license
psbritt/FRENSIE-tests
bc945e48550b3248a381b291f57ac1548f4ad10d
321663e1b564607b4525e83fde4a5bf2dddc49e8
refs/heads/master
2021-11-20T08:21:09.233258
2021-09-04T13:17:18
2021-09-04T13:17:18
243,323,405
0
0
null
2020-02-26T17:28:01
2020-02-26T17:28:00
null
UTF-8
Python
false
false
8,477
py
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from argparse import * import PyFrensie.Geometry.DagMC as DagMC import PyFrensie.Utility.Distribution as Distribution import PyFrensie.MonteCarlo as MonteCarlo import PyFrensie.MonteCarlo.Collision as Collision import PyFrensie.MonteCar...
[ "philip.s.britt@gmail.com" ]
philip.s.britt@gmail.com
42b25b8500cee6bdeb42389321db42391aba6249
ebb51eda50d34570d896321cc2e6b184ab2aa4e9
/app/serializers/user.py
d786b5c48eecdf69d284bb50272bb20aad89b1fd
[]
no_license
NEWME0/food-calories-telegram
38703f8ab394ee8770a72289f9a6b06e0191c54e
ba0af1e8356940b9c270378048a943ceca387803
refs/heads/master
2022-12-07T07:41:58.305064
2020-09-01T10:43:14
2020-09-01T10:43:14
286,481,244
0
1
null
null
null
null
UTF-8
Python
false
false
402
py
from datetime import datetime, date from pydantic import BaseModel class UserApiKeyCreate(BaseModel): username: str class UserApiKeyDetail(BaseModel): message: str api_key: str class UserProfileDetail: id: int date_created: datetime date_modified: datetime gender: str height: int ...
[ "ordersone@gmail.com" ]
ordersone@gmail.com
88548bb1fc407a53d26b136f6cf6a59077717ca2
621ae05f9703768f7a1ea6ef497eed8fadc2c78d
/tests/test_factories.py
d80f01b2d8b87e50e7c110d7dad7973bffb55bc5
[ "MIT" ]
permissive
TheBiggerGuy/piecash
19f90284a6d361ffcdb7f99317aa1965551f3963
6a32ae323e4a9629c1c58bd097368518194b06c5
refs/heads/master
2021-04-03T20:11:36.665519
2018-03-11T20:25:43
2018-03-11T20:25:43
124,446,841
0
0
null
2018-03-08T20:52:45
2018-03-08T20:52:45
null
UTF-8
Python
false
false
6,651
py
# coding=utf-8 from __future__ import unicode_literals from datetime import datetime from decimal import Decimal import pytest import tzlocal from piecash import GnucashException, Commodity from piecash.core import factories from test_helper import db_sqlite_uri, db_sqlite, new_book, new_book_USD, book_uri, book_bas...
[ "sdementen@gmail.com" ]
sdementen@gmail.com
826855eff63732ea45b8828f4215461a69663118
e80e4878ed4343efe330c45a3e85c9028544284d
/youtool/HTTPQuery.py
e3c1459bb0fd0a8c1ac99d73002b9e6fa09d1bf4
[ "LicenseRef-scancode-warranty-disclaimer", "Unlicense" ]
permissive
ctcq/yaylist
c94239cdde51725a504da9cff5fbaf01a29e953c
bd8abfef86a6c285111e1fee87535bd329c7f3c6
refs/heads/master
2022-11-25T16:46:25.364204
2020-08-08T14:30:29
2020-08-08T14:30:29
286,055,726
0
0
null
2020-08-08T14:30:30
2020-08-08T14:12:08
Python
UTF-8
Python
false
false
1,625
py
import urllib.parse import requests class HTTPQuery: def __init__(self, query): query = query.replace(" ", "+") self.query = urllib.parse.quote(query) self.max_attempts = 20 def send_query(self): base_url = "https://www.youtube.com/results?search_query=" url = f"{base_u...
[ "c_wied05@uni-muenster.de" ]
c_wied05@uni-muenster.de
636a207ff0e49734b5801a6a8c8106cbab384c7c
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/MiCMj8HvevYzGSb8J_17.py
1019062c3bbb1b60d25995c70003f2d401b4ba35
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
def fibo_word(n): s="b, a, " a="a" b="b" c="" if n<2: return "invalid" for i in range(2,n): c=a+b b=a a=c if i==n-1: s=s+c return s else: s=s+c+", "
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
01fe8df90c60347168481f79e7c0e7b49c51b723
6ca8fc2feac0ba4fdb4ab9710cbf853a9d0f0f3b
/package/branching.py
5b6aabe13cb3cec1bd520fe451bf717b0b9e5b10
[ "MIT" ]
permissive
byavkin/python-template
bcfafff8ca5fba24258a7dec4f24d97771abecd2
a3df9db2bba6911895d231ae5d893e172c38e677
refs/heads/master
2022-04-24T20:25:05.989560
2020-04-29T13:39:10
2020-04-29T13:39:10
259,921,107
0
0
MIT
2020-04-29T12:37:36
2020-04-29T12:37:36
null
UTF-8
Python
false
false
70
py
import numpy as np #import blah from . import module a = module.Bass
[ "boris.yavkin@gmail.com" ]
boris.yavkin@gmail.com
2f9c3a276216eedf29c7990ee4b3e77e19710b6f
77669891d957d728613143d341ec5ee8aec81bea
/tests/__init__.py
11634db77cbafb78f92f4f70bc83d3bb54a92f68
[ "BSD-3-Clause" ]
permissive
ska-telescope/sdp-lmc
56a572435dbf5ff64dbf1f7eb9bd6c647c64c134
870d41cfef29ca0777c34e0d27cd5b754bb4e9a3
refs/heads/master
2023-07-09T11:36:16.727053
2021-08-11T13:09:54
2021-08-11T13:09:54
295,661,049
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
"""Tests for Tango devices."""
[ "maja1@mrao.cam.ac.uk" ]
maja1@mrao.cam.ac.uk
cba3b48fe847b5a01528621677091588b2dfa50d
edd3da6431675ce3b048b3557f1b410192491558
/mpl_starting.py
585609254bed79c62b69597db851c09da557ed6f
[]
no_license
abdlkdrgndz/data-mining
f845a5821f0800a5fd75807766593c97e5221b9f
9882f60f75acfc55e5dc9cb2248c92e093b461e6
refs/heads/master
2023-02-14T21:24:39.921072
2021-01-10T01:19:59
2021-01-10T01:19:59
328,273,023
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
# Görselleştirme Kütüphanesidir # bir csv dosyasını okuyarak başlayalım ve onu data frames e dönüştürelim # iris.csv dosyası çiçek türlerine ait bir dosya. 150 adet örnek datayı barındırıyor. Data içeriğini inceleyerek sütun ve data bilgilerini görebiliriz. import pandas import matplotlib.pyplot as plt df = pandas.r...
[ "abdulkadir.gunduz@modanisa.com" ]
abdulkadir.gunduz@modanisa.com
7604053a02411d08fa1e4abd49436ef2b7a5b072
b04e31d2beaeba952ff34d374e349079dac90ccf
/Agent.py
a941713fb95d834a880804841b9c2e88a631e695
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
helloric/pydial3
9ba9d06cfc94d1107a329cd2089afa5b4b304402
34988f4592c4e28388b2818de8768d841696efbb
refs/heads/main
2023-03-13T23:11:19.294128
2021-03-22T15:01:15
2021-03-22T15:01:34
350,398,432
0
0
null
null
null
null
UTF-8
Python
false
false
45,960
py
############################################################################### # PyDial: Multi-domain Statistical Spoken Dialogue System Software ############################################################################### # # Copyright 2015 - 2019 # Cambridge University Engineering Department Dialogue Systems Grou...
[ "vniekerk.carel@gmail.com" ]
vniekerk.carel@gmail.com
9572d51080f3e0d4a2e4fd2c2797f68aad570234
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc008/A/4477587.py
33c83b3d83148c59e95a3d44b657c2337fe85681
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
243
py
input_nums = [int(c) for c in input().split(" ")] x = input_nums[0] y = input_nums[1] ad = 0 if x > y: ad = 2 if (x < 0 and y > 0) or (x >= 0 and y <= 0): ad = 1 if x == y: ad = 0 x, y = abs(x), abs(y) print(abs(x-y)+ad)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
62e35b9ebf411796b9dd999dcb02c0e95be91ff5
cb9bd4b6a5a395cd3437bb2ed068efafa8d61cd4
/pyxb_114/bundles/saml20/x500.py
bea7ecb1ea6bd32ffb46234f4cddbb87367f0275
[ "Apache-2.0" ]
permissive
msherry/PyXB-1.1.4
bf4b137e51642f62afa898464c431c28386cbe99
08fba3ed97c3ecdfea260da0253d6e6718a2ce62
refs/heads/master
2021-03-12T20:26:08.120442
2013-09-18T01:33:06
2013-09-18T01:33:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
from pyxb_114.bundles.saml20.raw.x500 import *
[ "msherry@gmail.com" ]
msherry@gmail.com
edb19e55cbbf04a11adcf045e2cf3a1d654039db
0a349f3c8348b48d3c3fb8a73508212437867e16
/SA-ThreatIntelligence/contrib/stix/utils/nsparser.py
e46cb35698d82c631cb956da287d0730109942c3
[ "MIT", "BSD-3-Clause" ]
permissive
reza/es_eventgens
2c78a0cdb89b414e3a4f45d2b0c465696edd7695
70689c54d1a67e809bf134dd586b2ea05ff4c431
refs/heads/master
2021-06-15T00:41:31.564158
2017-02-11T04:13:44
2017-02-11T04:13:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,941
py
# Copyright (c) 2015, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import mixbox.namespaces Namespace = mixbox.namespaces.Namespace NS_CAMPAIGN_OBJECT = Namespace("http://stix.mitre.org/Campaign-1", "campaign", "http://stix.mitre.org/XMLSchema/campaign/1.2/campaign.xsd") NS_CAPEC...
[ "dratcliffe75@gmail.com" ]
dratcliffe75@gmail.com
20b54cc32aad3ffaa89957e1125c4fd5d224f5f1
9b5b1557d411e617605362a05b92c03b586dc51b
/project_name/settings.py
9fe2982480bf855a2cf7b85aa54c5785fd68ca8f
[]
no_license
barseven/django-starter
91cc106f22cd1f74e8f607c00b9d8848dd0cecc1
950a32bf65f29f9106d26e999f5cd3beff78bd02
refs/heads/main
2023-03-03T21:40:58.312676
2021-02-13T23:39:54
2021-02-13T23:39:54
337,296,404
0
0
null
null
null
null
UTF-8
Python
false
false
3,785
py
""" Django settings for {{project_name}} project. Generated by 'django-admin startproject' using Django 3.1.6. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ fro...
[ "bogdan.rogalski@gmail.com" ]
bogdan.rogalski@gmail.com
b1d86e5c5160527d3b172eada1c3209629b45175
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnsmyth.py
b3a6be273349815fc12361bead6fd914e96835b8
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
200
py
ii = [('PettTHE.py', 6), ('WilbRLW2.py', 4), ('ClarGE2.py', 3), ('LyelCPG.py', 9), ('DaltJMA.py', 7), ('WadeJEB.py', 1), ('BackGNE.py', 17), ('FitzRNS.py', 18), ('WilbRLW3.py', 10), ('BrewDTO.py', 1)]
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
9c719a90de7b6677637c5c4acef4588235ff14fc
b55279f01cddc093875c258424b2648f22b4e19e
/euler1.py
5df32ed36f88b63eb3340e2d2cf9eb6ddb218083
[]
no_license
charlotteel/go-leonhard
9291f4fef8cd110c7b73dfc635e02a64d3e20cc1
e5bb25e3b2d4111fb571af706e90e00203e2b947
refs/heads/master
2019-01-02T03:42:59.261068
2014-11-13T00:18:24
2014-11-13T00:18:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
def firsteuler(argu): total = 0 for i in range(0,len(argu)): if i % 3 == 0: total = total + i elif i % 5 == 0: total = total + i return total list1 = range(0,1000) print firsteuler(list1)
[ "shiningsilver@gmail.com" ]
shiningsilver@gmail.com
d22e4d3127780f496ed99b92a7c7ae3020d5daf6
3437e4d6914e2a52bb0d94ffb1f622cf15d809b3
/venv/Scripts/easy_install-3.7-script.py
6919baa32ad939eeb53bdb09d1de88aa6687ce95
[]
no_license
gaswita/PY_Project1
78cdcd5029a890472a06f8ad06917bf5882c2e94
e6143ccb78c569a3c380cf85af45c85d1519be07
refs/heads/master
2022-09-29T09:04:06.484426
2020-06-08T08:19:48
2020-06-08T08:19:48
270,583,542
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
#!C:\Users\TEST23\PycharmProjects\PY_Project\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\...
[ "g_aswita@connect.ite.edu.sg" ]
g_aswita@connect.ite.edu.sg
ba3fc925d09eb53f83eff481d3cd355c60072ad2
2b16db46fe37d0443ecd3cf697e57b19fe101117
/python/finite_differences/derivatives_for_example_functions_plot.py
6511f513f3cad9f10fd5bea628dd669b431225ad
[]
no_license
anneaux/wave-equations
f53b32d94109eb05a9ff863472a2886e0143d0a3
af6b57feab0f024aeab290b41291a3a2c9ff0f67
refs/heads/master
2023-03-28T04:29:35.358688
2021-03-24T12:04:08
2021-03-24T12:04:08
302,150,146
0
1
null
null
null
null
UTF-8
Python
false
false
2,216
py
import numpy as np import matplotlib.pyplot as plt import finite_differences_o2 as dvo2 import finite_differences_o4 as dvo4 import example_functions as ex ##################################################### #list of functions func = ex.func #list of 1st analyitcal function derivatives func_1st_deriv = ex.func_1st_...
[ "49444603+johanickl@users.noreply.github.com" ]
49444603+johanickl@users.noreply.github.com
f731452c06bfcefbcd45b679f57e87a08798d960
d90ceef091c722fde61b3f98d566a933d72ecf9c
/app/users/__init__.py
4673b3d50bcd442a734fb3063486ee595a10bf1c
[]
no_license
alexiuasse/Gerenciamento-de-Salao-Beleza
3ff4a5dd9f49c7658d6e9f255bb9fde9b024bd66
3c05021adc01bc8ed0fe5f9be70b0bcd222eb349
refs/heads/master
2023-06-15T06:44:46.730926
2021-07-15T23:38:35
2021-07-15T23:38:35
288,178,307
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
# Created by Alex Matos Iuasse. # Copyright (c) 2020. All rights reserved. # Last modified 04/09/2020 11:47. default_app_config = 'users.apps.UsersConfig'
[ "alexiuasse@gmail.com" ]
alexiuasse@gmail.com
c38a8272425c61418ee2fb3a36725e300dafa0b5
7944c3824451551185c8d8fc305cb51628e0d2e2
/src/models/encoder.py
bb6ebbff9ff05de6323c4012a3789691be28b165
[ "MIT" ]
permissive
convergence-lab/SPADE-PyTorch
a4ef4aeaad00f8e482746903be2f8ef480bb71dd
75c420d1b38f94a5fec7cdcb41f6cc3b45f7a19e
refs/heads/master
2020-09-11T08:17:38.852276
2019-11-17T04:15:38
2019-11-17T04:15:38
222,002,773
0
0
null
2019-11-15T21:03:29
2019-11-15T21:03:29
null
UTF-8
Python
false
false
1,058
py
import torch import torch.nn as nn def conv_inst_lrelu(in_chan, out_chan): return nn.Sequential( nn.Conv2d(in_chan, out_chan, kernel_size=(3,3), stride=2, bias=False, padding=1), nn.InstanceNorm2d(out_chan), nn.LeakyReLU(inplace=True) ) class SPADEEncoder(nn.Module): def __init__(s...
[ "kushajreal@gmail.com" ]
kushajreal@gmail.com
3251353b6b34f6003b4888b65db65ef1b661c47e
7f858765cdd6226c1870bf09a956c18c81ae1417
/work/migrations/0056_auto_20191205_1554.py
8d4a54bce8b3535b4148a09b0daf399e84ebbcc8
[]
no_license
webclinic017/saubhagya
719d7a491b1910780973a8aecebaf51558d39df9
b78b4c4313e2035322e7d0eea03e71a1144ea262
refs/heads/master
2023-06-27T06:01:16.513161
2021-07-31T08:31:38
2021-07-31T08:31:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
# Generated by Django 2.2.6 on 2019-12-05 15:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('work', '0055_auto_20191205_1551'), ] operations = [ migrations.AddField( model_name='progressqty', name='review', ...
[ "rons.ubm@gmail.com" ]
rons.ubm@gmail.com
b2174447b7dd28ccb2cc2533decb14032eddebc3
df1e2fda7568d2d17005839f2c3b789564ba0266
/strategy.py
0d594fd6c8db52cb07d24a24692695ebf21db5eb
[]
no_license
ElliotVilhelm/Binance-Trading-Bot
b679da335bf2c234825566558c86e2a40582dc3f
79940733dec12a9e9dd59c77eba47029900527a9
refs/heads/master
2020-04-04T18:54:05.421988
2019-01-27T06:49:12
2019-01-27T06:49:12
156,184,338
15
10
null
null
null
null
UTF-8
Python
false
false
6,995
py
from binance.enums import * from utils import float_to_str from math import ceil import logging logging.basicConfig(filename='output.log', level=logging.INFO) from trade import Trade class MovingAverage: def __init__(self, bot, trade_coin, backtest=False): self.bot = bot self.sell_gamma = 1.0 ...
[ "elliot@pourmand.com" ]
elliot@pourmand.com
385bd65062e64638ba3c4ea483d9cdbe5105c17e
34acedc935b3632c0119e37117c92a9bd514f8c9
/Robot/locators/extractors/cube/green_cube_extractor.py
294a9b0b1876564ac12c881f56d379b1084c95c7
[]
no_license
jsbed/Design-III-Robot
ec4f9408a0a5298bcc73d3d82bf4ff6442024a0f
10e79954a3725efd4120ad14ad6c07191f2ff9fa
refs/heads/master
2021-05-28T13:34:05.313169
2015-04-15T08:04:27
2015-04-15T08:04:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
from Robot.configuration.config import Config from Robot.locators.extractors.cube.cube_extractor import CubeExtractor from Robot.locators.segmentation.cube.cube_segmentation import CubeSegmentor class GreenCubeExtractor(CubeExtractor): def __init__(self): self._cube_segmentor = CubeSegmentor() s...
[ "bedardjs97@hotmail.com" ]
bedardjs97@hotmail.com
83eaaf89ba18f0580d739c36b0ae58707cbe0ddd
a052aeb9db57d38509134dc38c156d5fc9ec974d
/venv/Scripts/easy_install-3.6-script.py
733a761791c22d71142d7b89956db78b29289228
[]
no_license
qMotillon/projetSwann
60bea0cfd8a0baa9aee9f09a387502b07ec6b83a
0f1f9ac37c373c3f29b90e8323d122a4a058ce8b
refs/heads/master
2020-03-22T06:25:52.776515
2018-07-15T14:26:35
2018-07-15T14:26:35
139,633,340
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
#!E:\Users\Gildarytzs\Documents\GitHub\projetSwann\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-s...
[ "memepasenreve@hotmail.fr" ]
memepasenreve@hotmail.fr
b0cf348572d22f252e08c8818ed4bd80e799b148
2ba9529053985a47164e617d759e8d4ba6c16df3
/homeassistant/components/screenlogic/climate.py
d289c00228c5e19b7fd6ac73a96d0589b00e0b3c
[ "Apache-2.0" ]
permissive
UJStudio/core
44dee82f8fa0c2699c4c9c87db0299beac71099c
6023105c6a3b69ffb2338c494246802c086aaee4
refs/heads/dev
2023-03-30T15:41:16.794294
2021-03-29T11:06:44
2021-03-29T11:06:44
285,370,318
0
0
Apache-2.0
2020-10-28T20:05:10
2020-08-05T18:18:24
Python
UTF-8
Python
false
false
7,184
py
"""Support for a ScreenLogic heating device.""" import logging from screenlogicpy.const import EQUIPMENT, HEAT_MODE from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( ATTR_PRESET_MODE, CURRENT_HVAC_HEAT, CURRENT_HVAC_IDLE, CURRENT_HVAC_OFF, ...
[ "noreply@github.com" ]
UJStudio.noreply@github.com
4668ecf294a0f848de49878d360092d258fe0a7e
aa1bb860e8697d56efab402c6226fc81074dc4a4
/Entradanumeros.py
de47027e347c137bfbb0f4475f0c7de1065d63f5
[]
no_license
Jogas12/PR-CTICAS-PYTH-N
10124085cde2d164bac04e8081e0e6fe430215bb
a22f1d41d6e76c009cc1a7f8682e01eeceb5ee76
refs/heads/master
2020-04-28T13:22:33.760425
2019-03-20T00:05:07
2019-03-20T00:05:07
175,304,973
1
0
null
null
null
null
UTF-8
Python
false
false
353
py
número1= int(input("ingresar un numero: ")) #int nos sirve para válidar números enteros, ya que sino lo tomaria como texto al número número2= int(input("ingresar un numero: ")) #El int al principio nos dice que el número que vamos a ingresar va ser un núnero y no un texto resultado = número1 + número2 print (f"El res...
[ "gasparcaamal12@gmail.com" ]
gasparcaamal12@gmail.com
e205bab1677ba2e57dcff13bd8fa5eaf732db0ad
ee3cd3addb1c48622ed171feaa25b3363ad1a521
/Sablenkbot.py
1d754353577058880852ad981369c6e15ceadadd
[]
no_license
teguhstya37/GINGSULSABLENK
89e49e698a6144cd7a0e3a3c0a2d3d1349f7c327
7c9eb5424320fe9e70a80af6afb2481566c361e5
refs/heads/master
2020-04-04T19:13:17.029403
2018-11-05T10:23:14
2018-11-05T10:23:14
156,196,938
0
0
null
null
null
null
UTF-8
Python
false
false
219,528
py
#Eww -*- coding: utf-8 -*- import LINETCR import requests from LINETCR.lib.curve.ttypes import * from datetime import datetime from bs4 import BeautifulSoup #import time,random,sys,json,codecs,threading,glob,urllib,urllib2 import time,random,sys,json,codecs,threading,glob,urllib,urllib2,urllib3,re,subprocess cl = LI...
[ "noreply@github.com" ]
teguhstya37.noreply@github.com
447d207030446b3cd91cb058f6fe105dcbacf512
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02409/s416602191.py
dee7b6c05f16bb6a860e18a9b3312b8efc6cc907
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
rooms = [] rooms.append([[0 for i in range(10)] for j in range(3)]) rooms.append([[0 for i in range(10)] for j in range(3)]) rooms.append([[0 for i in range(10)] for j in range(3)]) rooms.append([[0 for i in range(10)] for j in range(3)]) num = int(raw_input()) for i in range(num): b,f,r,v = map(int, raw_input().s...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
bc55befbeb0cc497e41cb7b0ddb9dd914234680e
1abdbf49bf7c75ebf75f6d30e6c04747c84b927d
/utils/error_handlers.py
d0150925c3e8dc77dce4c4d5d018aa90ede0777c
[]
no_license
JoseMOrellana/neuro_app_api
160577a0de1efa20934c1ee150d34abb591295ee
46797375afc66392452a08f28ee6ebee716d8c14
refs/heads/master
2022-11-20T01:18:46.880451
2020-07-24T13:33:07
2020-07-24T13:33:07
262,230,151
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
def handle_validation_error(err): return { "success": False, "errors": err.messages}, 400 def handle_resource_exists_error(err): return { "success": False, "errors": err.field}, 400 def handle_invalid_cred_error(err): return { "success": False, "errors": "Contraseña invalida"}, 401 def handle_resource_no...
[ "jose.mom.1304@gmail.com" ]
jose.mom.1304@gmail.com
f1cacd7bbdf2880bc9ac63c6488ca0063f980d24
b18c06ebabc4891543a19b9a5e52ea5162835f7e
/account/migrations/0067_auto_20180526_0457.py
986e99a506a3e23773490c473f76cb942f400ff7
[]
no_license
hackerdem/Myshop
38456f3a8daac9e18d55ca1961dc3b8a3ff8b917
78ffc3c9b274896f35e65dbe0b55eb92411791d6
refs/heads/master
2021-06-06T10:56:22.962607
2018-11-27T04:01:54
2018-11-27T04:01:54
129,862,123
0
0
null
2020-06-05T18:23:54
2018-04-17T07:12:55
JavaScript
UTF-8
Python
false
false
463
py
# Generated by Django 2.0.5 on 2018-05-25 18:57 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0066_auto_20180526_0457'), ] operations = [ migrations.AlterField( model_name='useractivation', ...
[ "werdem@gmail.com" ]
werdem@gmail.com
958c30491a26eb436963c2c28b757c4584545ed9
c73a1f4c46cff357b1967044fc840646b2034863
/test/functional/zerocoin_valid_public_spend.py
0a18308b1a8b53b7f9e44208484f15a5c4dbc081
[ "MIT" ]
permissive
Palem1988/ion
2c493ac33b7d2cc067d971973db7c5e0bdd7b02a
1c522cacbf63ebff3e6e52d4a9e2b5be425b86af
refs/heads/master
2020-08-05T07:48:54.758982
2019-09-04T11:12:18
2019-09-04T11:12:18
212,452,545
0
1
MIT
2019-10-02T22:25:26
2019-10-02T22:25:19
null
UTF-8
Python
false
false
3,683
py
#!/usr/bin/env python3 # Copyright (c) 2019 The ion Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Covers the 'Wrapped Serials Attack' scenario ''' import random from time import sleep from test_framework.au...
[ "fornaxa@servitising.org" ]
fornaxa@servitising.org
03b0a19df17d2da31bf136b854c693146421f2c4
42bef12a3128fb79676a91d57595ca6abec96544
/django_orm/Dojo_Ninjas/Dojo_Ninjas/settings.py
d3ace3fea2ef9ffc360933bb47fd29e15749b917
[]
no_license
chizakirov/django
c8bea894d355a72977ecfe86192b7b827fb1f3ea
b297b21c38b06d4bc9cd1a248a2ee7626c317cee
refs/heads/master
2020-04-14T21:50:28.093270
2019-01-04T18:48:23
2019-01-04T18:48:23
164,142,083
0
0
null
null
null
null
UTF-8
Python
false
false
3,134
py
""" Django settings for Dojo_Ninjas project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import ...
[ "nguyen.chi.byu@gmail.com" ]
nguyen.chi.byu@gmail.com
29b139a3fbb741b9ce9c518d7ab92bcfbd1b268b
c67e91c805b70768011ee810f0beddd8aee65210
/src/src/prueva.py
a943ca9b05452e063700c08d00579ea929e7343b
[]
no_license
alu0100791303/Grupo1-C
167197d01f972f75c82730cadcda194a573821c8
c1ab20ac48c665ff524a9dd22b23bb7393bb3e95
refs/heads/master
2021-01-18T23:11:06.078096
2013-04-05T12:30:28
2013-04-05T12:30:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
22
py
print ("modificacion")
[ "alu0100776324@ull.edu.es" ]
alu0100776324@ull.edu.es
af0320af67bf194e80a879ac34b379701b54d5de
32983b56175f7b7f54cbd90acaaf344d62fb9828
/EDEN_PROGRAMS/drawplayer.py
b73492216c7c8ae6379f165bb7a458666f6d19dd
[]
no_license
NEIGHFAN/idk4
1f808148b49f6d3bf655c09244631f87970bae51
c00b571f94b7e88b22f0fbdd47443948e4867388
refs/heads/main
2023-01-28T15:48:39.360910
2020-12-01T09:53:51
2020-12-01T09:53:51
317,488,638
0
0
null
null
null
null
UTF-8
Python
false
false
7,688
py
def go(): import pygame,time,Eden,os,random global P,player P = Eden.PF pygame.init() ## foot1 = pygame.mixer.Sound('foot1.wav') ## foot2 = pygame.mixer.Sound('foot2.wav') ## foot3 = pygame.mixer.Sound('foot3.wav') ## foot4 = pygame.mixer.Sound('foot4.wav') ## foot5 = pygame.mixe...
[ "noreply@github.com" ]
NEIGHFAN.noreply@github.com
f13404af12d2c8daaff902941c02cd497a4d467d
34ea37d52888e33511ad243989231f653b7622e2
/citizen_code/02_datascience_report1/lassoCV.py
c632e4f0a7d7253c48c5aa1cd764d70731a5a370
[]
no_license
whcitizen/citizen_code
45364dd4a7ba64f0f29265c215470deecbd3158d
c19033000394c9e07b83e061890dc9b4e07fbd92
refs/heads/master
2021-09-11T19:05:55.799800
2018-04-11T06:15:43
2018-04-11T06:15:43
111,392,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
import numpy as np import pandas as pd from sklearn import linear_model N = 10000 nfeat = 53 train_data = pd.read_csv("train.csv", header=None) test_data = pd.read_csv("test.csv", header=None) Train_X = train_data.iloc[:N, 0:nfeat].values Test_X = train_data.iloc[N:, 0:nfeat].values Train_Y = train_data.iloc[:N, 53]...
[ "33275297+whcitizen@users.noreply.github.com" ]
33275297+whcitizen@users.noreply.github.com
ecb09c7da625691534c85f7cacc5cec490fda3e9
5f0357530eca8f2ad57f914bc471fb83c91cee5b
/examples/power-supplies/hp54501a-cem.py
94aaa57f0a78cbda92b2ba5d5cad7378fd8e250f
[]
no_license
liujin142703/anccontrol_github
279283ace975e55b8804dfa919dca313c2377e81
7274ef4228e1ed23252dce28f0958c8266c95614
refs/heads/master
2023-02-27T00:33:56.379866
2021-02-06T15:58:54
2021-02-06T15:58:54
334,120,047
0
0
null
null
null
null
UTF-8
Python
false
false
2,373
py
# r# ================ # r# CEM Simulation # r# ================ # r# This example show a CEM simulation. # Fixme: retrieve PDF reference and complete #################################################################################################### import matplotlib.pyplot as plt ###############################...
[ "liu.jin@zgmicro.com" ]
liu.jin@zgmicro.com
680307ba370397cf8fb88357befe4cbb004b55f8
d725e34490665a222654ac5bdde93a689a647844
/utils/nms.py
b8ffc118832765d10dced0754ec55f188e9c2f59
[]
no_license
Zumbalamambo/tfmtcnn
e271cf0814c4f4f93d5ca2dcf28743587fb69365
24f5b8462589ebd654ac3bce04fa9351dc3a2d5f
refs/heads/master
2020-03-23T16:45:08.744242
2018-05-03T03:56:32
2018-05-03T03:56:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,044
py
# MIT License # # Copyright (c) 2018 # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
[ "pritam.shete@gmail.com" ]
pritam.shete@gmail.com
81db00d0c17b0a8ea2f7b5e61632ee140d81b62a
28bdb23378998474e9ad2185fa310f203bdedb90
/501/lab5.py
77ba5b8a24320b70db61889295a1d5ca8cbc017e
[]
no_license
Audakel/byu_cs
cf15d813fe876df5b0527230315253bba54d2c16
3a62f586d9f8a855ac96fc2bc5dfc67fbaacfb12
refs/heads/master
2021-01-18T20:25:12.529927
2017-03-12T01:57:28
2017-03-12T01:57:28
72,134,053
0
0
null
null
null
null
UTF-8
Python
false
false
2,215
py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "audakel@gmail.com" ]
audakel@gmail.com
5af654857f3cf6065a8ec90dc0778f42d1ba1560
fc97f415df3fba0f29a52ac151b6120fdfe1eb58
/scripts/fileserver
63a9c1e28752deff67c54e88ff61c02fc16d7489
[ "MIT" ]
permissive
HiPERCAM/hcam-drivers
ab4045eea3f4a7a82474e4d2ae69dfbeff028032
c183be2ea29462e3fd76bdef8865a11e75c67402
refs/heads/master
2023-08-11T04:13:56.868218
2023-07-27T20:27:06
2023-07-27T20:27:06
73,546,291
0
0
MIT
2023-07-27T20:27:08
2016-11-12T10:33:00
Python
UTF-8
Python
false
false
4,411
#!/usr/bin/env python from __future__ import print_function, division, unicode_literals import glob import os import tornado.ioloop from tornado.web import Application, url from tornado import websocket import json from hcam_drivers.utils.web import BaseHandler, FastFITSPipe class MainHandler(BaseHandler): def...
[ "s.littlefair@shef.ac.uk" ]
s.littlefair@shef.ac.uk
9cc1666c64b9a661eff286387e88873b682126e0
d67de89260ea46ed62546b657d2087da3aa04b1d
/hr1.py
33e730db010ee47eedd50624e056948339b3ed63
[]
no_license
jefinagilbert/problemSolving
534455fd2df56e8a12744571ab24a0254d85d336
9f3d165866dd82a9b08119e65f2eeb66bae3c434
refs/heads/main
2023-06-14T15:17:58.938962
2021-07-10T18:02:30
2021-07-10T18:02:30
366,144,499
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
if __name__ == '__main__': N = int(input()) l = [] k = 0 entry = input().split() rc = entry[0] while N > k: if "append" == rc: l.append(entry[1]) elif "insert" == rc: l.insert(int(entry[1]),int(entry[2])) elif "remove" == rc: ...
[ "noreply@github.com" ]
jefinagilbert.noreply@github.com
ed5d414bf4400b0c909b6d42dcc8f93d0848c144
13514a2b5e567aaed826c1822a1835cddef6f622
/Variables.py
ee99bc9223321a648abd32f695aede78f5f4d6e8
[]
no_license
Rishav190895/Python_Basics
86bdd8a9d01f73320c2fe7802d94386e4b745032
e6188645bfc7aaa154e0068f913c2f6b32c441f9
refs/heads/master
2020-08-23T23:55:57.126689
2019-09-29T13:08:43
2019-09-29T13:08:43
216,727,905
0
0
null
2019-10-22T05:10:37
2019-10-22T05:10:36
null
UTF-8
Python
false
false
611
py
#------------------Variables------------------- var_str1 = "hello world " #string variables var_str2 ="john wick" variable_int = 45 #integer variable variable_flot = 23.988 #float_varibale print(var_str1+var_str2) #concatinating two stings print(variable_int+variable_flot) #adding int and float value #----------...
[ "noreply@github.com" ]
Rishav190895.noreply@github.com
ad283e8c2c7c8ad34472eafefef19795d0688c5e
9053bc7a81b319cff00aff73ea2d138739a3050d
/test.py
1e7bf466809154bebb57e457f21cdec191972e83
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
itoshikihiro/BioSPPy
e49af6340477c003d8e80785f7abba36d16976ba
dfb324527cdeffcdc1e2f6943c391c6109e64c85
refs/heads/master
2020-03-28T06:30:22.535961
2018-09-13T01:59:24
2018-09-13T01:59:24
147,839,625
0
0
null
2018-09-07T15:08:59
2018-09-07T15:08:59
null
UTF-8
Python
false
false
4,720
py
from biosppy import storage from biosppy.signals import ecg from biosppy.signals import bvp from biosppy.signals import eda from biosppy.signals import resp from biosppy.signals import emg from multiprocessing import Process # THIS CODE IS MY OWN WORK, IT WAS WRITTEN WITHOUT CONSULTING # A TUTOR OR CODE WRITTEN BY OTH...
[ "jlin246@emory.edu" ]
jlin246@emory.edu
36e962e903c70e96aec834a4a1a6cc7e2c3dd42f
a09a988c92c82d43e58db91fd75f56706399b36b
/src/niwi/feeds.py
ab71da3a8b4954027c1cf41b1def5d8553f50f8f
[ "BSD-2-Clause" ]
permissive
jespino/niwi-web
2fbf4d6452af96a5182af5217cb986b92b399c49
116952687669ef8511bb9d052f5a6c9a41960e97
refs/heads/master
2021-01-18T07:58:05.015043
2011-10-26T20:08:41
2011-10-26T20:08:41
2,393,976
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
# -*- coding: utf-8 -*- # Thanks to Vladimir Epifanov <voldmar@voldmar.ru> from django.contrib.syndication.views import Feed from django.utils.feedgenerator import Atom1Feed from django.contrib.markup.templatetags.markup import markdown from django.utils.translation import ugettext_lazy as _ from niwi.models import P...
[ "niwi@niwi.be" ]
niwi@niwi.be
f9c94419fc5018394e09af6a1bb8bcc6f7b84521
e36910a24fd202d1b9364380411dd0cbecde4d09
/wiki/documents/admin.py
ac10fb185ed9c007bcdc4f7bacbf56fcd70321aa
[]
no_license
neharamakanth/Passfort-Assignment
b9edb55c7dc95c4164cd7da7b12593b2ce6f18c3
817c51d35f38b96721a9474216c51aecc99c11f1
refs/heads/master
2022-12-18T22:50:17.836638
2020-09-20T15:22:04
2020-09-20T15:22:04
297,099,127
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
from django.contrib import admin from .forms import DocumentForm from .models import Document # Register your models here. class DocumentAdmin(admin.ModelAdmin): list_display=["title","content",'version',"author","modified_timestamp","created_timestamp"] list_filter=['title'] form=DocumentForm # class ...
[ "nayana.ramakanth@gmail.com" ]
nayana.ramakanth@gmail.com
a2da771246e7c91061f27992313962e02f9dcaa0
2054446dd26c7b1361e4eee6908e00c72e5b0325
/scripts/gn_lib/gn_io/clk.py
8f6379db7aa1c2a1f3716916dbe5d67a9a3730d6
[ "Apache-2.0" ]
permissive
mengruizu/ginan
65ad2cda89151cfe6e115da95d0c5ef0ea7a6621
598cfff85be52c53c4a03bca7c0540a9200b1ee3
refs/heads/main
2023-07-28T12:21:40.147648
2021-08-06T07:14:32
2021-08-06T07:14:32
409,628,081
1
1
NOASSERTION
2021-09-23T14:35:45
2021-09-23T14:35:45
null
UTF-8
Python
false
false
1,560
py
'''RINEX CLK file parsing function''' import sys as _sys from io import BytesIO as _BytesIO import numpy as _np import pandas as _pd from ..gn_datetime import _J2000_ORIGIN from .common import path2bytes PYGINANPATH = '/data/acs/pea/python/source/' if PYGINANPATH not in _sys.path: _sys.path.insert(0, PYGINANPATH...
[ "john.donovan@ga.gov.au" ]
john.donovan@ga.gov.au
772ebe0e48e44ce7f40861d41ebddad75e094c45
bf4eb36a60a17cfa8f8c289dffc6dc12702d9818
/Programming assignments/Programming Assignment 4.py
353a482d2df0ef1b82ec827ddf1da4f5ca70e78d
[]
no_license
JanhaviBorsarkar/Ineuron-Assignments
8a8fb14cfdb281ed3c7d44f91d87728207c1da21
b1fcabc45e8380d6267b1ea52287b5744dd24bba
refs/heads/main
2023-06-26T16:46:45.988616
2021-07-29T03:54:30
2021-07-29T03:54:30
390,317,122
0
0
null
null
null
null
UTF-8
Python
false
false
1,825
py
#!/usr/bin/env python # coding: utf-8 # In[2]: # Q1. Write a Python Program to Find the Factorial of a Number n = int(input("Enter a number: ")) fact = 1 if n < 0: print("Please enter a positive integer") elif n == 0: print("Factorial of 0 is 1") else: for i in range(1, n + 1): fact = fact * i ...
[ "noreply@github.com" ]
JanhaviBorsarkar.noreply@github.com
c8afc42409188b6dbaa70cff0a6b38710fadc5df
4b45adb7ff5fa0f347057796cccb5f8388d558c1
/idealog/model/collection.py
dfd3c4bef197b112a85789f366fae32ebe8a022c
[]
no_license
HyJan-go/idealog
22d2f73ea5ad31e3ce17809dee0e6e6e510ec0a6
0636155bdeff4c1569920a9424e016a7ea554a57
refs/heads/master
2022-11-27T19:29:17.195673
2020-08-12T02:02:59
2020-08-12T02:02:59
286,891,649
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
from sqlalchemy import inspect from model.user import db # 收藏文章表(顺序id,用户id,用户头像地址,收藏文章id,收藏文章标题,收藏时间) class Collection(db.Model): # '标签id', collection_id = db.Column(db.Integer, primary_key=True, autoincrement=True) # '用户id(收藏者)', user_id = db.Column(db.Integer, nullable=False) # '文章id' artic...
[ "hejian@52tt.com" ]
hejian@52tt.com
0d5204f791006b7bfb4f02036903d8c1795c3f30
bd92bf830b66dc40fc3fe00958265ee87260d4ae
/sda2_tp1_python/insertionSort.py
d11b47c6d34c8fdc86694fb809eb198ee5222b15
[]
no_license
dugiwarc/sda-2
55313643f286373f3862d65a27f665b48075f426
a6e5f6d627427144f137b34bfbaa744682e01560
refs/heads/master
2021-02-14T04:56:11.375393
2020-03-10T17:36:18
2020-03-10T17:36:18
244,771,169
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
def insertionSort(arr): for i in range(1, len(arr)): key = arr[i] j = i - 1 while j >= 0 and key < arr[j]: arr[j + 1] = arr[j] j -= 1 arr[j + 1] = key arr = [12, 11, 13, 5, 6] inse...
[ "gicubotnaru@gmail.com" ]
gicubotnaru@gmail.com
8dda90de2d863085f330782f743aa206f695db63
c15437b98d99bdbf05b3ceef2f6eaa6e827ff71c
/POO_Algoritmos_con_Python/descomposicion.py
ce42719b873aaf74a8876337b9831cab5562a2b7
[]
no_license
Dave-dev-ceo/Data_Science
92c5d88ba7ea3dbbd75e3c48ffec51619e3beb65
ae15f0eac4f1934367aab8122014e105c9160fc8
refs/heads/master
2022-11-08T05:05:17.421493
2020-06-25T14:16:32
2020-06-25T14:16:32
272,722,800
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
class Automovil: def __init__(self, modelo, marca, color): self.modelo = modelo self.marca = marca self.color = color #Cuando se inicia con underscor es una variable privada por convencion self._estado = 'en_reposo' self._motor = Motor(cilindros=4) def acele...
[ "upro.ceo@gmail.com" ]
upro.ceo@gmail.com
862fbab88286582f9d38167db835ab185312fac1
afca5997ede5f044d76a6b3bacdda360ddc953f9
/Analysis/RUAnalysis/Analysis/scripts/plotJECUnc.py
51fcfbb0a12ea2dff88d8f8a0a08cdb061f41925
[]
no_license
jgonski/usercode
ef6e62006195c52769edbbe91f90147728863d29
090ab6e74313b6ff8b050aa1854f215281b94354
refs/heads/master
2020-12-03T00:05:53.296750
2013-10-21T15:04:02
2013-10-21T15:04:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
52,926
py
# Pass 1st argument as "log" to get log scale plots from __future__ import division from tdrStyle import * from math import sqrt from ROOT import * import sys canvases = [] scanvases = [] counter = 0 asymrange = 0.5 logscale = 0 if (len(sys.argv) >= 2): logarg = sys.argv[1] if (logarg == "log"): logsc...
[ "" ]
5ccecde465c4907dc159e2a15899f49c43186f9a
462446cba06fc05bd307a99884bd924ed73d90f1
/channel_data_ytAPI.py
314b1c3d4aca2dbcbd2efdac0afbb371aa9cbe45
[]
no_license
follperson/youtube-transcript-scraper
6281505eb2676c8dd75a3f54538640cb09ff3c3a
9c0fa937c063ea377647b75b188ce1fe8aa4d6ca
refs/heads/master
2020-08-26T15:43:57.778236
2019-12-16T00:50:02
2019-12-16T00:50:02
217,059,933
1
0
null
2019-10-23T13:08:14
2019-10-23T13:08:14
null
UTF-8
Python
false
false
5,846
py
# This program is used to read your channelId list, and then access the YouTube API # to get links for the most recent videos uploaded by that channel. # an also use prespecified PlaylistID instead of channelId, in case you need to only review one playlist instead of # all content from a given channel. import credenti...
[ "follmann.andrew@gmail.com" ]
follmann.andrew@gmail.com
d5e68d3530c7eb13296b055ac0a26e38fb84e1fe
267cca3d3ff54012748fcb3dd3bbc90e1900ca51
/read_file.py
e87a055af807701d2042ff484b7603f38870a79a
[]
no_license
sishui198/python_code_snippet
32b18d1a50260122985aaf7f395ebaf75b32a6e1
effdd5358c6730c6c703ffc8f4b467f7bd02feee
refs/heads/master
2020-03-19T07:19:01.108546
2017-12-13T02:34:42
2017-12-13T02:34:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
file_object = open('re.py') try: file_context = file_object.read() print type(file_context) # file_context = open(file).read().splitlines() finally: file_object.close()
[ "xishengbo@baidu.com" ]
xishengbo@baidu.com
7d1f869180858e3a91a90f69ad6d69b93258516f
42b756d466716ba1bdc67e7a2211263774a1409a
/sql.py
ec4ad65389140a50ca1f07a41d61e6776355a8c5
[]
no_license
lurkerzhang/SqlSimulated
74f12155f916b43057ead1307fc5793d4ffc0b1a
11a19972d7863103f25104fe666cc45291c3f590
refs/heads/master
2020-04-10T00:00:12.231269
2018-12-12T08:14:11
2018-12-12T08:14:11
160,673,120
1
0
null
null
null
null
UTF-8
Python
false
false
12,476
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/11/25 08:12 # @Author : lurkerzhang # @File : sql.py # @Descript: 员工信息增删改查程序,须支持如下语法: # 1.find name,age from staff_table where age > 22 # 2.find * from staff_table where dept = "IT" # 3.find * from staff_table where enr...
[ "lurkerzhang@foxmail.com" ]
lurkerzhang@foxmail.com
310126961dc54e2b1256524faee1e3c32addc4c5
b4e41521e761c10caf6f8855da7569fb6c8217dd
/lesson7.py
3eaa6ce36e0069620f85cf9a05263a7e35ded993
[]
no_license
mrVovster/Geek_brains_python
1f5adb970384211916c5386cd22b97693e65b42e
90b80201c283d416b5d16e4de7f16b332e635f78
refs/heads/main
2023-08-18T10:37:01.804476
2021-10-20T18:14:01
2021-10-20T18:14:01
410,644,767
0
0
null
null
null
null
UTF-8
Python
false
false
9,156
py
""" Реализовать класс Matrix (матрица). Обеспечить перегрузку конструктора класса (метод __init__()), который должен принимать данные (список списков) для формирования матрицы. Подсказка: матрица — система некоторых математических величин, расположенных в виде прямоугольной схемы. Примеры матриц вы найдете в методичке....
[ "egorov941@gmail.com" ]
egorov941@gmail.com
1bd5c0967f9f9e3846fcd377bab507a9cecf4e05
f9e80e63263712bc44cdb0ae267f9d161f9c3fc9
/main_app/migrations/0007_remove_restaurant_rating.py
f7a40f9b484088a0c4009c3786b557dafed5084e
[]
no_license
crnguyen/FoodFuse
cb99fc1487d6587fb40c95091996a8e06e945c80
c5d985321d3e150a5314a88d0f40a5f266bb98a5
refs/heads/master
2023-04-13T03:51:10.130073
2021-04-13T20:04:12
2021-04-13T20:04:12
298,864,589
1
0
null
2020-10-05T15:47:44
2020-09-26T17:23:24
Python
UTF-8
Python
false
false
333
py
# Generated by Django 3.1.1 on 2020-10-01 07:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main_app', '0006_auto_20201001_0553'), ] operations = [ migrations.RemoveField( model_name='restaurant', name='rating', ...
[ "cristinanguyen@MacBook-Pro.local" ]
cristinanguyen@MacBook-Pro.local
0db8341373ab692fc767c2641a48c1d668f667da
f59b18dcb0255a20542167069968cb799f9271c1
/similarity_scoring/umbc_scoring.py
7b51c6128e2f2f3f57a88f926903b71f7c2bd07c
[]
no_license
happinesstaker/FYP
d36a17ff69ba153cbbe318d6d4ceb098f8f6bb82
a59815b7481a295bb0bb2ede80ae62fe566a1e93
refs/heads/master
2021-01-21T13:57:43.143457
2016-05-13T08:34:10
2016-05-13T08:34:10
45,525,925
0
0
null
2015-12-31T10:09:47
2015-11-04T08:40:21
Python
UTF-8
Python
false
false
6,742
py
from datetime import date, timedelta from math import log1p, exp from nltk.corpus import wordnet as wn from nltk.tokenize import MWETokenizer import nltk import DBOperation import FYPsetting from lsa_matrix import LSAMatrix from tfcos_scoring import TfSim from wordnet_boosting import WordNet_boosting from datetime imp...
[ "sirayshei@gmail.com" ]
sirayshei@gmail.com
d8f23d3040def7fb2e668a8e2bcd270cc1c7b24c
6f8d211f6b6033ff54810268b5b7a259fb9af39a
/if condition.py
dd1f5f02cd3d6533bb034f1941195a01824e79ea
[]
no_license
eneopetoku/Learning-Python
a2feb4a30b080fbcae2b35c0ab8422a5a02679d7
a398b4650d5794546f1115d787668d161908b9cb
refs/heads/master
2020-04-03T03:17:39.505798
2018-11-01T08:44:33
2018-11-01T08:44:33
154,981,509
0
0
null
null
null
null
UTF-8
Python
false
false
27
py
x=5 if x==5: print(x)
[ "petokueneo@gmail.com" ]
petokueneo@gmail.com
54d9b33170e2aba633e6ee72ab93964da50fa1ac
0d022860ae5c57bddfe30070776f68dd1bed318b
/add_type/add_rev_type.py
0f6968499488e992c656799d3e376f95986e62f5
[]
no_license
daniel-kurushin/wiki-graph
da09f50ab832d33f793c76351b72335ed18fd1ac
483013071b65da771b5916c02ffe600c1f8261d5
refs/heads/master
2023-03-27T19:39:31.656604
2021-03-24T11:24:51
2021-03-24T11:24:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,437
py
import re class RevsWithTypes: def __init__(self): pass def convert_revisions_to_list(self, revisions): converted = list(map( lambda x: { 'old_revid': x.old_revid, 'new_revid': x.new_revid, 'lines_diffs': list(map(lambda diff: {'old': diff[0...
[ "lorddelivuskraust@gmail.com" ]
lorddelivuskraust@gmail.com
90b60211284014eea983260c23dc16adf0446d99
227a34166a070ceca80448e206b54b4b078c401c
/src/tar/src/nmt/create_datasets.py
dd691643d9ac7cb7e1f2e6171a8606f81a339944
[ "MIT", "CC-BY-4.0", "GPL-3.0-only" ]
permissive
ccasimiro88/TranslateAlignRetrieve
c42d47caa0b0597005b1442920b2cccb198f2e3b
c84784219785c1fc05884b26081d9b7b4156c019
refs/heads/master
2022-12-13T12:45:28.470981
2021-02-11T11:41:29
2021-02-11T11:41:29
213,844,388
63
15
MIT
2022-12-08T06:59:47
2019-10-09T06:59:44
Python
UTF-8
Python
false
false
4,247
py
# This script clean a parallel corpora from sentence that # are not in the correct source/target language and # then splits it up into train/dev/test datasets import fasttext import argparse import os import random import time from tqdm import tqdm SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) FASTTEXT_LAN...
[ "casimiro.pio.carrino@veue01.tsc.upc.edu" ]
casimiro.pio.carrino@veue01.tsc.upc.edu
98b91872fb890ba158d6727df7d3821cf90836f9
8fd152b3ae5deb85087a1d7a503506bbbe4fd406
/tel_bot.py
2f9686bfc7e86eb216f587a6a3c60a0d0c3c4af7
[]
no_license
mal-mel/tel-bot-places
a302e41c45e9802665de9f9f433b67dc5f321fa6
9d0b6b88a17a4a37e63679d45435d1355cabd0af
refs/heads/master
2020-05-17T16:22:25.677866
2019-04-27T19:59:22
2019-04-27T19:59:22
183,816,198
1
0
null
null
null
null
UTF-8
Python
false
false
6,317
py
import telebot import re from config import token from telebot import types from collections import defaultdict from db import DB from distance_calculation import calculate database = DB('users_places.db') regular = '^[0-9]{,2}\.[0-9]*, [0-9]{,2}\.[0-9]*$' bot = telebot.TeleBot(token) START, LOCATION, DESCRIPTION, CO...
[ "olegsvetovidov@gmail.com" ]
olegsvetovidov@gmail.com
63d89e34b7165f5b0082fa3a94a62353504b9136
0b468aff5c96ba1f15258220531b4dfc3913b4a6
/data/db_con.py
6596e41556d675340d1a5d8144545adf39972e91
[]
no_license
MugdhaGodse/Trial
dcad3abeae8ddc0ca67681806e6ffdf0cc752620
7722daf8c614f4ab2a571881e8e53e100e64ef66
refs/heads/main
2023-04-17T17:59:07.856150
2021-04-28T12:24:34
2021-04-28T12:24:34
362,392,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,059
py
import mysql.connector def insert_data(uname, passwd): mysqldb = mysql.connector.connect(host="127.0.0.1", user="root", passwd="root", database="botproject") dbcursor = mysqldb.cursor() sql = 'INSERT INTO login(username, password) VALUES ("{0}","{1}");'.format(...
[ "noreply@github.com" ]
MugdhaGodse.noreply@github.com
cabcfca1cfebdd1cb0c7dbcdbd736e6a82dad446
1044df6c19c990475649a26d056c095164a5b920
/pra23.py
e66917a42f0cce3c3c8a8d2166e81980174130ee
[]
no_license
pengwangbupt/practice100_python
735d74bbf6694e937b2bc92eb02406f917a72483
447c17771dd417badc3b7ab4467507d87ce0be07
refs/heads/master
2020-12-25T15:17:44.314115
2016-09-03T09:47:41
2016-09-03T09:47:41
67,229,660
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
#!/usr/bin/python # coding:utf-8 ''' star=['*'] for i in range(7): print star*(2*i+1) ''' # 一定要注意python语言的对齐方式 from sys import stdout for i in range(4): for j in range(2 - i + 1): stdout.write(' ') for k in range(2 * i + 1): stdout.write('*') print ' ' for i in range(3): for j in ran...
[ "jwwbupt@163.com" ]
jwwbupt@163.com
f5e0a8e43ca587db0b6e8ab3f6c3e8884dc1dbb0
add72f4d6f9f7af1f437d19213c14efb218b2194
/icekit/plugins/slideshow/migrations/0005_auto_20160927_2305.py
629c1e819cd89bee8d33d0a226b2688db1d516f6
[ "MIT" ]
permissive
ic-labs/django-icekit
6abe859f97c709fcf51207b54778501b50436ff7
c507ea5b1864303732c53ad7c5800571fca5fa94
refs/heads/develop
2022-08-08T21:26:04.144852
2018-01-08T02:55:17
2018-01-08T02:55:17
65,470,395
53
12
MIT
2022-07-06T19:59:39
2016-08-11T13:11:02
Python
UTF-8
Python
false
false
664
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('icekit_plugins_slideshow', '0004_auto_20160821_2140'), ] operations = [ migrations.AlterModelOptions( name='slid...
[ "greg@interaction.net.au" ]
greg@interaction.net.au
5031f08805f198609e39be66e32a4ad8f53bc3ff
17ac3a89a2d013a9216a19d06c7da0908512c8dd
/code/scanner.py
84ec2dfc85f9b418278f5dcf017f169d85d4b8a8
[]
no_license
CillianM/Runbook
28f121cf7b1fd7fe9cf9d4cdf8c42bc9fe314c99
5eba0d2eff5ffca9bf244d8da266b5552ee9c2a6
refs/heads/master
2021-03-16T06:53:39.265410
2017-03-29T14:35:41
2017-03-29T14:35:41
80,838,892
0
0
null
null
null
null
UTF-8
Python
false
false
12,057
py
import ipaddress import platform import socket import subprocess import threading import urllib.request import uuid import networkx as nx from PyQt5.QtCore import pyqtSignal from Connectivity import pingAddress # Used to generate an image of a Local Area Network class Scanner(): def __init__(self): super(...
[ "cillianmcneill@gmail.com" ]
cillianmcneill@gmail.com
31aeaae87bfb563d8b390269f63fddd2f6687d6b
a7e3b13fb332f355292f86ef0a3f493ea364511c
/mapimage/genbbox.py
789290f1084e227e5bd4d905ba172d45295d8df1
[ "Apache-2.0" ]
permissive
crschmidt/habitationi
470850ccc4563b16bcff9dfd9e34b144c527d994
2ae88640160e6ad11d5efa45fe13bd45254a80ed
refs/heads/master
2022-02-03T17:00:36.336034
2022-01-25T14:31:19
2022-01-25T14:31:19
191,000,590
1
1
Apache-2.0
2021-02-21T16:00:32
2019-06-09T11:56:02
Python
UTF-8
Python
false
false
949
py
# Copyright 2019 Christopher Schmidt # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "crschmidt@crschmidt.net" ]
crschmidt@crschmidt.net
6712f47e67621dcd41357d0a5cfef3b820e6d841
895f850ad761fe6caab5fb124cb7aa29e10e5df5
/backup_2/dependencies.py
18f3cfff79e83e536731f1ad57b308b1e24275ee
[]
no_license
m-albert/quantification
792ae1927c01070d1bca35fee6aa2f94c475ff90
d795e920fd4c5194aab96767665318ab01b4110b
refs/heads/master
2021-05-31T00:57:34.730886
2016-03-21T15:03:31
2016-03-21T15:03:31
40,670,446
2
0
null
null
null
null
UTF-8
Python
false
false
608
py
__author__ = 'malbert' from imports import * sys.path.append('/home/malbert/software/trackpy') import ilastiking,filing,imaging import tifffile import trackpy import pandas import zeissFusion as zf from matplotlib import pyplot import czifile timestamp = time.localtime() timestamp = '%02d%02d%02d_%02d%02d%02d' %t...
[ "marvin.albert@gmail.com" ]
marvin.albert@gmail.com
3d4386193db64c1d359cd107f0990178ad19ba29
7735effa4f02d98fcedc57ef4f768b771fc46ac1
/mi_oj/62.py
04107357f300855889d73b4ee1e25b7ed79820b9
[ "Apache-2.0" ]
permissive
ShumaoHou/MyOJ
dbda39071a93b94492d76850e5a69fd815cf9875
ee92fb657475d998e6c201f222cb20bcbc2bfd64
refs/heads/master
2023-06-09T16:45:10.303736
2019-04-05T03:30:22
2019-04-05T03:30:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,143
py
''' 括号配对 我们知道,在逻辑表达式中广泛使用了括号,而括号都是层次化成对出现的。 也就是任意左括号都应该存在一个在同一逻辑层级的右括号作为对应。 现在我们有一些仅由括号组成的字符串序列, 保证每个字符为大括号”{”,”}”、中括号”[”,”]”和小括号”(”,”)”中的一种。 需要判断给定的的序列是否合法。 输入:一行仅由括号组成的字符串 输出:如果序列合法输出 1,否则输出 0 输入样例 [()] ({[])} [()]{} 输出样例 1 0 1 小提示 栈的典型应用 ''' """ @param string line 为单行测试数据 @return string 处理后的结果 """ def solution(line)...
[ "houshumao@qq.com" ]
houshumao@qq.com
4a5d8f69bef47df572d74e211e83091253252679
73ad9af21fd3584a741ee47ce646ea22b6666721
/leetcode/RecoverBinarySearchTree2.py
00411fa58ee77081ff6f11d6716d400676f9c7a1
[]
no_license
zhenggang587/code
a70b5004a4afb3e2eb6b4d8f267fd1aed83a4b74
fa13c439bcfaad543461b8a8ea397ecb95a066a5
refs/heads/master
2020-05-02T18:23:18.892197
2014-12-14T05:53:13
2014-12-14T05:53:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
# Definition for a binary tree node class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def __init__(self): self.pre = None self.first = None self.second = None # @param root, a tree node # @return a t...
[ "zhenggang@meituan.com" ]
zhenggang@meituan.com
7b6d84910a093db1582fac3bd6e59ab180f34b2b
0182e4f9fae415cb6d209d22f46af91f606ceb89
/migrations/versions/e73b0b369a6f_created_contribution_and_transfer_tables.py
f387b482a53573ab3dd6f8f7df5d658bac41135c
[]
no_license
ouimet51/fundit
89242b27827ef8875755d5153fc436e2140f17f7
90cb56b7ed60819f80bfbc53065307f660bd287c
refs/heads/master
2020-03-22T21:02:27.355058
2018-07-12T02:49:20
2018-07-12T02:49:20
140,651,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,893
py
"""Created Contribution and Transfer tables Revision ID: e73b0b369a6f Revises: 6bd9444a2665 Create Date: 2018-07-10 10:11:48.166224 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e73b0b369a6f' down_revision = '6bd9444a2665' branch_labels = None depends_on = N...
[ "ouimet51@gmail.com" ]
ouimet51@gmail.com
7b9c3e167d1ae4c52526a236428f2a93017d2d5a
69a3293cc8da5543b7c7fce9d2e074d919ec041c
/ISOMAP.py
93e21ac1a8a1f5cdfa842dc0001c65ae420b2159
[]
no_license
SAAllegri/pca-isomap_algorithm_comparison
ae2fa06a07d946d8818c8e51472988e9f12099b3
e12ee32c7c03822aad5bca6a1ca1916d36b876bc
refs/heads/main
2023-08-31T05:03:55.772702
2021-10-12T02:07:19
2021-10-12T02:07:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
#!/usr/bin/env python # coding: utf-8 import numpy as np from scipy import spatial, sparse from sklearn.utils import graph_shortest_path from sklearn.neighbors import kneighbors_graph # Initialize the class, load the data with load_data(), and obtain the z-matrix through generate_low_dimensional_representation() cl...
[ "noreply@github.com" ]
SAAllegri.noreply@github.com
132da27f9f197e2030cf410fcb4add5def5499f4
e11494ef821623d11c4987b13eef219d7b45c4a4
/bin/SumMech_Basic.py
badd2601ffef36df01ebedcc04eedb008a58943f
[]
no_license
boboppie/BreakSeq
7ee9cdb20324ffab73985014a170d84ceccc86f5
0ca8f6237a7e174fa7b4fbd7c18c856fde5b0b22
refs/heads/master
2021-01-17T13:22:33.224204
2013-12-28T06:02:10
2013-12-28T06:02:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,321
py
#!/opt/Python/2.7.3/bin/python import sys from collections import defaultdict from numpy import * import re import os import argparse from Bio import SeqIO def usage(): test="name" message=''' python SumMech_Basic.py --input HEG4.insertion.SV.gff ''' print message def fasta_id(fastafile): fastaid...
[ "jinfeng7chen@gmail.com" ]
jinfeng7chen@gmail.com
170f33819fc06dd241d4282cac0a9db64f20011d
89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7
/Python OOP 2020/OOP_2020_exam_prep/Python OOP - Exam Preparation - 2 April 2020/tests/test_magic_card.py
06cbd102595dba8bc793126df0fcbdd7196beffc
[]
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
836
py
import unittest from project.card.magic_card import MagicCard class TestMagicCard(unittest.TestCase): def setUp(self): self.magic_card = MagicCard("mali") def test_magic_card_creation(self): self.assertEqual(self.magic_card.name, "mali") self.assertEqual(self.magic_card.damage_points...
[ "65191727+KoliosterNikolayIliev@users.noreply.github.com" ]
65191727+KoliosterNikolayIliev@users.noreply.github.com
1de63eb112ee1189f20ebfb0f7282898150ec5f9
87b12ec1bea4008b0f51ed2c2be632e3121a0d04
/0x0F-python-object_relational_mapping/7-model_state_fetch_all.py
408ca717b2bf171a9845d9e0542a8858ee387b6c
[]
no_license
jbathel/holbertonschool-higher_level_programming
181d24de8df362842ee3b3a632dd49c38966a662
10afef612d8544e55a7c295ba90b1b0e2f2171b8
refs/heads/master
2020-07-22T23:51:09.947518
2020-02-14T06:42:04
2020-02-14T06:42:04
207,372,715
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
#!/usr/bin/python3 # Script that lists all states from the database hbtn_0e_0_usa from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine import sys from model_state import Base, State if __name__ == "__main__": engine = create_engine( 'mysql+mysqldb://{}:{}@localhost/{}'.format( ...
[ "811@holbertonschool.com" ]
811@holbertonschool.com
773c777deb8b4b5f7be364eed2eb8f5fe4a74960
ff61a27e80cde560cdc308f203e134698fe71cad
/PerceptronMultiCapaService.py
9c3931da72a443a3c924daacf26ab95ad264391b
[]
no_license
Piton007/TB2-IA
e7ecca352223520019360ee9416a90a645e84202
e053c3ae16ecb3369862e0e777d95aff16d32b60
refs/heads/master
2020-09-04T04:37:48.359259
2019-11-07T15:30:28
2019-11-07T15:30:28
219,659,281
0
0
null
null
null
null
UTF-8
Python
false
false
1,468
py
from PerceptronMultiCapaCore import PerceptronMulticapa class PerceptronMulticapaService(): def __init__(self): self.perceptron_multicapa="" self.resultados="" def configurar_perceptron(self,neuronas_entrada,neuronas_escondidas,neuronas_salida,coeficiente_aprendizaje,limite_error_cuadratico)...
[ "jose45321@outlook.com" ]
jose45321@outlook.com
2f9de45caa02b14ba917b1a23e8169da6645b3a4
da1ca390feea3caba17cd2c0193f6dedf880824d
/UnitTests/mock_tests.py
7f7e3605e661ba3845f7d0f41b07fc16ad36677c
[]
no_license
stoolrossa/OzriPythonSnippets
67b612e3c917119d08c534c45d38030d5fe28e49
b1e20672a0a24c5ed52b420044cdeed16a74dbef
refs/heads/master
2021-01-20T23:16:55.354083
2014-10-08T05:21:52
2014-10-08T05:21:52
24,872,455
0
1
null
null
null
null
UTF-8
Python
false
false
1,631
py
import unittest from mock import Mock import datetime import greeting as grt class MyMockedTests(unittest.TestCase): # test the greeting in the morning def test_morning(self): # mock the clock such that get_time passes back the time 9:52 clock = grt.Clock() clock.get_time = Mock(retu...
[ "jackson.todd.a@gmail.com" ]
jackson.todd.a@gmail.com
e869f2602078c7b911082e578e8d8902d3b1c006
dd116ddf8b7edb0083ff9eeaf5c0b4ecb4199378
/mainapp/migrations/0007_auto_20210805_1051.py
d278d55f8a1b2a147d0d0a0a0a8fcf090a7eaaed
[]
no_license
AllStars123/online_shop_django
bd11fabf4cd4d2e026b63e8e97bc9ffbbb8fd770
39b8e04d78db2e4a8feab1e67580088e7529e0bf
refs/heads/master
2023-07-08T22:50:53.754670
2021-08-06T21:57:14
2021-08-06T21:57:14
393,510,483
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
# Generated by Django 3.2.5 on 2021-08-05 10:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainapp', '0006_alter_cart_owner'), ] operations = [ migrations.AlterField( model_name='customers', name='address', ...
[ "purnov.nikita@yandex.ru" ]
purnov.nikita@yandex.ru
92d3a92569bcf612c5b3bec75f9c3e1e4a38f00f
847e4869d0d3a5ab76ca181e9f6037427a7a93e3
/Simulation/Train.py
81fbb1a66da9addb75ac638989753c2b48a27d2d
[]
no_license
HengJiang95/DGSMP
07ed1dc888bb7eb6ee83973cf2c58ff927c812cd
4a7ab23fb93618ed3bfb6a914e74a9f531455f8e
refs/heads/main
2023-08-21T21:45:36.831912
2021-06-24T13:30:14
2021-06-24T13:30:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,942
py
from Model import HSI_CS from Dataset import dataset import torch.utils.data as tud from torch import optim from torch.optim.lr_scheduler import MultiStepLR import time import datetime import argparse from torch.autograd import Variable from Utils import * os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUD...
[ "noreply@github.com" ]
HengJiang95.noreply@github.com
8a92b2a570c5b6ff4b9342cbca901f64b66eca91
e62bc1322ef29535da02cf8040daef0ef9b1227e
/14_urllib_handler处理器的基本使用.py
01f15c831aed9cd101f3c510715cd8fb4335ae06
[]
no_license
JLUVicent/crawler
7c291cda13b777397cb35d9a846c804a9928d24a
e218d343f6c0abb25486ee358652b3edc5756541
refs/heads/master
2023-08-28T20:53:03.466878
2021-09-17T07:16:06
2021-09-17T07:16:06
405,664,280
0
1
null
null
null
null
UTF-8
Python
false
false
754
py
# 需求:使用handler来访问百度 获取网页源码 import urllib.request url = 'http://www.baidu.com' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36' } request = urllib.request.Request(url=url, headers=headers) # handler build_opener ...
[ "17390955615@163.com" ]
17390955615@163.com
1efde10d267c0dd29625aafc7b3354f8ddb25286
c46a3177866d72d6230016c23db797d207f15ada
/scripts/py/form_id_pairs.py
8a9dc33fc5edb77f6d5333732cb747d1c8ea599e
[]
no_license
nknyazeva/course_work_5
4e560eb649a6506d35b1541527e29e0a4b9d2a7f
fb633557afc8685ff8c0a924a3f56b48a5134685
refs/heads/master
2020-07-25T11:33:27.167210
2019-11-06T16:52:25
2019-11-06T16:52:25
208,275,183
0
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
coord_macaca_file = '/home/nknyazeva/courseWork5/data/result/oma_exon_coordinates_macaca.txt' coord_human_file = '/home/nknyazeva/courseWork5/data/result/oma_exon_coordinates_human.txt' id_pairs_file = '/home/nknyazeva/courseWork5/data/result/ortho_pairs.txt' out_file = '/home/nknyazeva/courseWork5/data/result/ortho_pa...
[ "knjasewa-nastja@yandex.ru" ]
knjasewa-nastja@yandex.ru
9772eae5928f6ca9699a8383d0dccc6eca2b1713
eb65feb88a0ca04999c33cf06ce3099c688418a5
/email_usernames/management.py
c086cea982b17b52be7dfb7e69cefe5673d3bb8d
[ "BSD-3-Clause" ]
permissive
lucianolev/django-email-usernames
8333e8c2c06243f025a50c6c3eabbbe10559dab4
d2d2363f921fb9c048e8cb29cc4ad79438fb31c2
refs/heads/master
2020-12-30T09:38:18.109932
2012-11-08T03:09:56
2012-11-08T03:09:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
from django.db.models.signals import post_syncdb message = """ 'django-email-usernames' has detected that you just installed Django's authentication system (django.auth). For your convenience, django-email-usernames can alter the user table's username field to allow 75 characters instead of the ...
[ "lleveroni@eryxsoluciones.com.ar" ]
lleveroni@eryxsoluciones.com.ar
9dce82a9bca0995ebad823b26676f483f32f1a9c
3e83835028984e8f07cafe40bda25f31f4d9894b
/tkmtribe/templates/urls.py
fe803d336db6f4511987e6a9a1d2bf1b171d96bc
[]
no_license
AJITH-klepsydra/other_repositories
e029bd552cf2de3c9dcafa91d4d6905f77bea1da
e3c53315920cf093993ba10d4814a9b759f99588
refs/heads/main
2023-06-22T02:54:36.875236
2021-07-19T20:13:29
2021-07-19T20:13:29
386,726,541
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
"""todolist URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
[ "ajithpmuralidharan01@gmail.com" ]
ajithpmuralidharan01@gmail.com
7d3f89bf4180dc04215bc135c08b92f84466161e
aedc3ee164734a8c42d5c535a02ee1acdf3443fb
/Python/Gff2fasta-mito.py
1e2e3e09353064d7522b7f2ebb643b24e1778a13
[]
no_license
zglu/Scripts_Bioinfo
60fdd5fe70b4900d981cc06560595ecb4fb9690e
8589ed613868f88ae12b8a629156c0a12b420bbc
refs/heads/master
2023-01-27T11:13:18.140272
2023-01-23T13:19:09
2023-01-23T13:19:09
96,612,675
3
1
null
null
null
null
UTF-8
Python
false
false
4,050
py
#! /usr/bin/env python """ Get dna sequences based on a gff file for features like gene, transcript, cds, exon, and get pep for coding sequences. SHOULD CHECK THE FEATURE NAME IN YOUR GFF: mRNA or transcript, and change accordingly. THIS IS A SLIGHT CHANGED SCRIPT FOR PROTEIN SEQUENCES OF MITOCHONDRIAL GENES Usage: py...
[ "zl@zlzyz.com" ]
zl@zlzyz.com
1902d295e917b79374d5a728c75bdc9e5b4f41af
627b76ad17f70cdbaa090d44baf6a8116aae2e64
/data structures/doublyLinkedList.py
ff5433323f9db9b3c4ca0c9fbb1bf2a12626473b
[]
no_license
darumada/alghoritms
24125b5cb8b650bb9d7f6219fa2635671ac4ff25
48c56209d16b3256df76adc39f13a8547737470f
refs/heads/master
2022-11-14T05:12:36.262606
2020-06-26T23:07:09
2020-06-26T23:07:09
231,822,381
0
0
null
null
null
null
UTF-8
Python
false
false
1,610
py
class DoublyLinkedList: class _Node: def __init__(self, element, next=None, prev=None): self.element = element self.next = next self.prev = prev def __init__(self): self._size = 0 self.header = self._Node(None, None, None) self.trailer = self....
[ "maksaturekeshov@gmail.com" ]
maksaturekeshov@gmail.com
9da7a5def4b9c4018ae9cce832eb6b33b5a7c773
851250765122fd9b4c75236b8e6e21d6daf8df04
/py/04_01_simple_cnn_project.py
bf7fcfb891892b0a1064c0e6755b403532c1fb66
[]
no_license
younghwani/NLP
5e2507a06eb5b530d75d44f914d71fcca76d5cc7
abf6a86315743a6c17a4bf7f752396b326afe9e2
refs/heads/master
2023-03-08T08:13:58.364244
2021-02-16T04:33:01
2021-02-16T04:33:01
332,720,312
0
0
null
null
null
null
UTF-8
Python
false
false
4,819
py
# -*- coding: utf-8 -*- # EVN import numpy as np import matplotlib.pyplot as plt import tensorflow as tf # 단어 긍정(2), 중립(1), 부정(0) 분류 프로젝트 # 데이터 sentences = [ '나는 오늘 기분이 좋아', '나는 오늘 우울해' ] # 출력 정답 labels = [[1, 1, 1, 2], [1, 1, 0]] # 긍정(2), 중립(1), 부정(0) # 정답 dic id_to_label = {0: '부정', 1: '중립', 2:...
[ "younghwankim624@gmail.com" ]
younghwankim624@gmail.com
782c52d293b6d10df0abe617763dc183609221ad
7cf9e036e839562a663c53babdfb1b7ec5172b0e
/cat_bookstore/config/asgi.py
bc3ca883115d37bc0397eb54297b6ec7a322b748
[]
no_license
kKn00077/bookstore_backend_cancled
73e81765ab6eaa8afc57ccf011624609815f22b0
556e1ae7083fe2dc8131145b966b7bea1741193e
refs/heads/main
2023-06-15T14:56:41.929712
2021-07-15T03:52:43
2021-07-15T03:52:43
386,153,687
0
0
null
2021-07-15T03:51:28
2021-07-15T03:46:31
Python
UTF-8
Python
false
false
403
py
""" ASGI config for cat_bookstore project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
[ "kkn00077@gmail.com" ]
kkn00077@gmail.com
223279549adfb57b8078816158b1509154e88f3d
e48aedf65644d3810389b927d28e7043b7b4f043
/utils/GlobalVars.py
fd45fcd014da84b73cc94a30fb442914755ccd0f
[]
no_license
Petersonjoe/pyproject
a5ee349b8aa729a200211a9391f338d4b391a4da
ce7b3f4af0f87dc6e92a3cb04797909bfd5c6abe
refs/heads/master
2022-12-13T11:54:45.025505
2020-08-12T02:10:56
2020-08-12T02:10:56
210,077,146
1
1
null
2022-12-08T02:39:51
2019-09-22T02:02:42
Python
UTF-8
Python
false
false
2,959
py
# -*- coding: utf-8 -*- ############################################# # @Author: jlei1 # @Date: 2018-07-07 # @Last Modified By: jlei1 # @Last Modified Time: 2018-07-20 ############################################# from distutils.log import warn as printf import os, sys ''' Pathon的path与运行时文件位置绑定,很恶心,需要注意这一点 os 模块的...
[ "trandg@126.com" ]
trandg@126.com
c621d0a6b55bda68a4519f7026a6b961f9d5f30f
25cf6132112ef79eeaf786f71283f440f8790e55
/video.py
2e1cc365ade987432309e017e2ab5f201b579976
[]
no_license
daaguirr/Mandelbrot-Infinite-Zoom-GPU
0281eeef17b5bdea5e23aa1e1dadba9e3d8d1303
a18b1282ffa02969ae0712ce2f68b01a825301d4
refs/heads/master
2020-04-12T00:08:20.009952
2018-12-26T03:44:22
2018-12-26T03:44:22
162,190,198
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
import imageio import sys import datetime VALID_EXTENSIONS = ('png', 'jpg') def create_gif(filenames, duration): images = [] for filename in filenames: images.append(imageio.imread(filename)) output_file = 'Gif-%s.gif' % datetime.datetime.now().strftime('%Y-%M-%d-%H-%M-%S') imageio.mimsave(ou...
[ "dagum95@gmail.com" ]
dagum95@gmail.com
033cb8f01e7ebbaa293f884be0a33fa115b6f18e
f342fb3db6654617b7cc18d1647907719e5e215e
/test/test12.py
5084f4cb2bc8f764a44eaf52072707260649f60f
[]
no_license
durgeshn/validations
17d0d30283deb6cebda7fe5b5df4601a6a9dfea9
79bd47ca380a3c161fcba0eeed3b78d98692cc32
refs/heads/master
2020-12-30T16:14:42.121372
2017-05-11T10:25:57
2017-05-11T10:25:57
90,967,074
1
0
null
null
null
null
UTF-8
Python
false
false
18
py
import maya_batch
[ "durgeh.n@philmcgi.com" ]
durgeh.n@philmcgi.com
df36f6d06bf7f69a97d3c71ce44dd114f532d059
afa60e28e2d60fb3255fa12bdc327d7e377a7c63
/data/multicols/surface_residues.py
2805cea0b9a1d3de66d9d8f967ff28fe143790af
[ "Apache-2.0" ]
permissive
smoitra87/mrfs
19bbd826b409f0d5ec16056096527117507f6aaf
49c1de4f98b655cc296bf9c3a9b0e99e1e721056
refs/heads/master
2016-08-04T17:52:03.484751
2015-04-30T15:14:50
2015-04-30T15:14:50
28,839,144
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
''' http://pymolwiki.org/index.php/FindSurfaceResidues ''' from pymol import cmd def findAtomExposure(selection="all"): """ DESCRIPTION Finds those atoms on the surface of a protein that have at least 'cutoff' exposed A**2 surface area. USAGE findSurfaceAtoms [ selection, [ cutoff ]] SEE ALSO ...
[ "subhodeep.moitra@gmail.com" ]
subhodeep.moitra@gmail.com
128e0c315480ac722dea65aca21dfab20d5aa3c9
533f86815dcded10183f623b6ddd552fadd9e38c
/Lesson_01/_5_practice.py
1420a105c746f316b1fe33e498c58cbd5029339c
[]
no_license
DoctorSad/_Course
8ab81db218cd9a0bfefb118094912c53b11256d4
da5ba4d6904910be033241e3b68c846e883a24fa
refs/heads/main
2023-04-15T10:26:27.294706
2021-05-06T08:59:38
2021-05-06T08:59:38
351,796,720
0
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
""" 1. Создать переменные var_int, var_float, var_str, присвоив им 25, 4.5, 'python' 2. Значение var_int увеличьте в 1.5 раза и присвойте переменной var_big 3. Измените значение, хранимое в var_float уменьшив его на единицу 4. Выведите на экран остаток от деления var_big на var_float 5. Изме...
[ "DoctorSad@gmail.com" ]
DoctorSad@gmail.com
917f26898831eae2502f2fba6bcdb7f7de66b64a
1941d67b9ec30a338bf8e9a62082c92488f2b534
/snake_record_table/settings.py
45a593b1dd146a7395705d4ae970759dc9ea9309
[]
no_license
kaktus313/snake_records_table_rep
e13b53a364ca8c096f800e8a8827e59d52e63fcd
656a8bfe49d5bfb700f63a0b2e24a650d27e3b56
refs/heads/master
2021-05-06T14:26:04.275259
2017-12-09T08:26:02
2017-12-09T08:26:02
113,363,984
0
0
null
null
null
null
UTF-8
Python
false
false
3,273
py
""" Django settings for snake_record_table project. Generated by 'django-admin startproject' using Django 1.11.2. 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/ """...
[ "kaktus313z@gmail.com" ]
kaktus313z@gmail.com
98370c87cc80048dc11a1301074e9af579891753
65dff28b4bc200d44f36531c7dc34c87a83261e2
/tests/base_class.py
92ddc22d2afe35798eafe79a1873ea2dda4ccbf6
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
domlysz/python-overpy
a96cfb48b48b0323ff4e8742adeb6af1df15a3d6
7f4ece2a8b2edee233dee671b1e1cc28b2150df0
refs/heads/master
2021-01-21T17:57:15.971535
2016-07-29T12:38:59
2016-07-29T12:38:59
63,004,671
4
0
null
2016-07-10T15:14:18
2016-07-10T15:14:17
null
UTF-8
Python
false
false
9,337
py
from decimal import Decimal import os import pytest import overpy from tests import read_file class BaseTestNodes(object): def _test_node01(self, result): assert len(result.nodes) == 3 assert len(result.relations) == 0 assert len(result.ways) == 0 node = result.nodes[0] ...
[ "phibo@dinotools.org" ]
phibo@dinotools.org
41b75083e16654b4f12be00cf82ecd8b4765021c
f47a380e2ff84d53b890095f935b713ddc0c985f
/Programming Fundamentals/Lab 7-9/service/serviceEvent.py
6544bf2bf813852d6bfcb30c04e1194e62ff5223
[]
no_license
crisnita/University
155b1855e2cfc20ca9f25558c8a026e6a691817c
30e22ffde3ea41c55eb8a4964c8e57041c734d57
refs/heads/master
2020-05-04T18:35:51.427652
2019-05-21T16:57:41
2019-05-21T16:57:41
179,354,262
0
0
null
null
null
null
UTF-8
Python
false
false
2,163
py
""" @author: Nita Andrei-Cristian @email: cristiannita99@yahoo.com @date: 11/19/2018 14:20 """ from domain.entities import Event class ServiceEvent: def __init__(self, repo, val): self.__repo = repo self.__val = val def createEvent(self, id, date, time, descr): """ ...
[ "cristiannita99@yahoo.com" ]
cristiannita99@yahoo.com
07687717a392cda35c1f43e3f3945fb41d621f94
2d792f8949b4081e1104aecb10744645224b02e9
/hear_me_code/dict_exercise.py
3969dc20dd009ff8d40c376e210e6232599de4ed
[]
no_license
lizmeister321/abunchofstuff
15a47990fbb89ac3774b2ef11a3676cd12ab2478
64f61e5c9cded15f60e500394a24e0fee5aec5df
refs/heads/master
2021-01-19T12:51:16.956992
2021-01-15T15:20:21
2021-01-15T15:20:21
82,344,174
0
2
null
2021-01-15T15:20:22
2017-02-17T22:36:30
JavaScript
UTF-8
Python
false
false
1,214
py
schools = { "geometry": { "coordinates": [ -81.50572799999999, 39.21675500000001 ], "type": "Point" }, "properties": { "address": "300 Campus Drive, Parkersburg, WV 26104", "marker-color": "#3F3040", "marker-symbol": "circle", ...
[ "e.geiger.ellis@gmail.com" ]
e.geiger.ellis@gmail.com
9790b58c105c148d65399a28a2045c466d1761b7
f159aeec3408fe36a9376c50ebb42a9174d89959
/77.Combinations.py
a5a4333e228ee0f56a58bfb8d2b3f46049e647d2
[ "MIT" ]
permissive
mickey0524/leetcode
83b2d11ab226fad5da7198bb37eeedcd8d17635a
fc5b1744af7be93f4dd01d6ad58d2bd12f7ed33f
refs/heads/master
2023-09-04T00:01:13.138858
2023-08-27T07:43:53
2023-08-27T07:43:53
140,945,128
27
9
null
null
null
null
UTF-8
Python
false
false
775
py
# https://leetcode.com/problems/combinations/ # # algorithms # Medium (45.24%) # Total Accepted: 178,657 # Total Submissions: 394,947 # beats 79.55% of python submissions class Solution(object): def combine(self, n, k): """ :type n: int :type k: int :rtype: List[List[int]] ...
[ "buptbh@163.com" ]
buptbh@163.com
b93f21e54f0b95c73c2f7533d0bfce90b385dc0f
500b7f39baa00b81bd6cac3ae001c9ddd0162bb8
/ChatServerLocalTemplate.py
eb558fce1fb270400dfe946f5d0ed82fc5a3b63a
[]
no_license
planetblix/raspberrypi
1e6d57691c028ab526e5c980934974cc9efce50b
61975c68edb13060211a7089589e9c1066f7058b
refs/heads/master
2020-06-06T02:15:18.372271
2013-04-26T16:37:00
2013-04-26T16:37:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
import socket HOST = '192.168.0.4' #This is the I.P. Address of the machine this code is running on PORT = 8000 s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.bind((HOST,PORT)) s.listen(1) # Only accepts 1 x client connection conn,addr = s.accept() print "Connected by", addr i = True while i is True: d...
[ "binodbista@gmail.com" ]
binodbista@gmail.com
21c9444c2972001bb184608dfffd1927af31eaac
c21905c7ade0c313e8adebf08f4b1f481cf57fa5
/lstm.py
e01b05b750639e83616c45bbe788fa166565ebc5
[ "MIT" ]
permissive
zackchase/PyRNN
dfe405db1bc0d5c51efcb4fbe22b50c8618cb5c8
26687d3e0ebf082e91a5371e996108f697f6b6a7
refs/heads/master
2016-09-06T17:30:15.833369
2015-08-28T04:55:57
2015-08-28T04:55:57
41,527,570
4
6
null
2016-01-27T08:13:23
2015-08-28T04:45:22
Python
UTF-8
Python
false
false
4,304
py
import numpy as np import theano import theano.tensor as T from lib import softmax, dropout, floatX, random_weights, zeros class NNLayer: def get_params(self): return self.params def save_model(self): return def load_model(self): return def updates(self): return [] ...
[ "zachary.chase@gmail.com" ]
zachary.chase@gmail.com
072cf5ced5b0ebfafd0509d2839c7deb21763719
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/codewar/_CodeWars-Python-master/solutions/Prime_number_decompositions.py
98bab5130b9b53c7602161b8d40e494e47c07bfc
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
964
py
""" Prime number decompositions http://www.codewars.com/kata/prime-number-decompositions/train/python """ ___ getAllPrimeFactors(n __ n __ 1: r.. [1] result # list __ isvalidparameter(n factor 2 w.... n > 1: w.... n % factor __ 0: n /= factor ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
b0d41d101decf5447cd9b0cf4368c46c3a502ceb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02598/s996042239.py
d46c51b86ccfeeefa731e41af21211b4da2ac6d3
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
import sys def input(): return sys.stdin.readline().rstrip() def main(): N,K=map(int,input().split()) A=list(map(int,input().split())) ng =0 ok =10**9+1 while ok -ng >1: mid = (ok+ng)//2 ans =0 for i in range(N): ans += A[i]//mid -1 if A[i]%...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
841b1b1af1e9355862952d82dea3d905364c811f
1630390904e1915dbf340947d8eaf62a2da64a65
/ASP_experiments/scripts/generate_template_from_data.py
3c92b0a26bec69c0bcb63cd8c319ac2f5a0e0052
[]
no_license
wsgan001/KR_Graph_Mining
9515555c4886e917e48f95adfc5922851d6da0ce
40a5d742cfc50f6a09538494315ffbff0376572b
refs/heads/master
2020-03-16T23:21:42.856193
2017-02-07T18:08:12
2017-02-07T18:08:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
import re import random def extract_graph_id(graph_str): graph_id = re.search(r'graph\((?P<id>\w+)\)',graph_str).group('id') return graph_id def filter_edges_with_id(data, graph_id): edges_labels = [atom for atom in data if ("edge("+graph_id+",") in atom or ("label("+graph_id+",") in atom] return edges_labels...
[ "sergey.paramonov@phystech.edu" ]
sergey.paramonov@phystech.edu
b962e7e24161f081c2de2326378185a5767191d9
dcd83aeb799143b58956612fb0bfc0258d30f229
/src/python/StageOut/Impl/HadoopImpl.py
b56e0d60ba28ca26ef9b5c680d42dd0ebf835ee0
[]
no_license
giffels/PRODAGENT
67e3e841cfca7421caa505d03417b663a62d321b
c99608e3e349397fdd1b0b5c011bf4f33a1c3aad
refs/heads/master
2021-01-01T05:51:52.200716
2012-10-24T13:22:34
2012-10-24T13:22:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
#!/usr/bin/env python """ _HadoopImpl_ Implementation of StageOutImpl interface for Hadoop """ import os from StageOut.Registry import registerStageOutImpl from StageOut.StageOutImpl import StageOutImpl from StageOut.Execute import runCommand class HadoopImpl(StageOutImpl): """ _HadoopImpl_ Implement...
[ "" ]