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
e89ba4a21bdbcf548d0de67eaa71958580fdd3d4
1a623ec3cc9319bb1b3d2204b2163730c180ab2f
/PyDSS/reports.py
48f88e2f86a8b5ae8b249190e581680dd99fb696
[ "BSD-3-Clause" ]
permissive
ann-sherin/PyDSS
aa5713191b274a867f708e19a08fb024e8962df7
2cc245daa9639d3c7d91b9980b0879525f719268
refs/heads/master
2023-07-08T15:27:03.866534
2021-06-02T23:20:26
2021-06-02T23:20:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,002
py
"""Creates reports on data exported by PyDSS""" import abc import logging import os from PyDSS.exceptions import InvalidConfiguration, InvalidParameter from PyDSS.utils.dataframe_utils import write_dataframe from PyDSS.utils.utils import dump_data REPORTS_DIR = "Reports" logger = logging.getLogger(__name__) clas...
[ "daniel.thom@nrel.gov" ]
daniel.thom@nrel.gov
4c06b68ae3162adb63425cc3f9e85961b0a97746
113e4f837612592b16f658513b7e886206e6f0ba
/Chapter3/26.py
aac92416791830a0dc0bb10589a234afe56013b3
[]
no_license
Akai-Kumako/100knock
95027cee8990bb1cec79e086dd74a166097d4307
81308ee1c32c4218c55efee40995a9763f65bbd4
refs/heads/master
2021-05-15T09:10:08.313556
2018-04-18T09:04:42
2018-04-18T09:04:42
107,860,206
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
#26.強調マークアップの除去 import json import re with open("jawiki-country.json", "r") as f: for i in f: a = json.loads(i) if a.get("title") == "イギリス": b = a.get("text").replace("<br/>\n", "").split("\n") info = {} regex = re.compile(u"^\|(.*?)\s*=\s*(.*?)$") emph = re.compile("'{2,5}") for j in b: c = rege...
[ "e1433@s.akashi.ac.jp" ]
e1433@s.akashi.ac.jp
c189f11c67e177b0831501cb13638f53957f2ef2
9eddcc9a7d1743d6d032627d496fda99bf0f4852
/函数编程/三元运算.py
242872554054fcf7aa5e5ba5b8ff09e6c9b1a5e3
[]
no_license
zzylydx/source
9011423d11eb2b84b512d4e28496a4fb03db01c6
0a6f05dee3e1f6230f62b14a2f8105e991af7738
refs/heads/master
2022-03-13T11:06:48.575143
2019-10-30T07:25:25
2019-10-30T07:25:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
#!/usr/bin/env python3 # coding utf-8 ''' 三元运算 三元运算又成三目运算,是对简单的条件语句的简写。如 简单条件语句: if 条件成立: val = 1 else: val = 2 改为三元运算 val = 1 if 条件成立 else 2 ''' # # if 0 ==1: # print('ok') # else: # print('no') val = 1 if 0 else 2 print(val)
[ "kevinlandun@gmail.com" ]
kevinlandun@gmail.com
445353aa38922b97f88dd2d3de88276532a44b3b
2f4c51d4d153a7409559b86edbea8db7244fc115
/GTM.py
3a9cd8bbf16f3a8c13d0cae14f6f78c412f7cb7b
[]
no_license
algator/Python
88b0a4bec33a8eacfa25c9dcbf141851dacedf05
21fbda53d76abc6f7d2f35d2b59f52375c0243d4
refs/heads/master
2020-05-31T03:26:55.793504
2019-01-01T16:36:58
2019-01-01T16:36:58
37,400,708
0
0
null
null
null
null
UTF-8
Python
false
false
1,924
py
# "Guess the number" mini-project # http://www.codeskulptor.org/#user40_pnN71lvBlH_3.py # import libraries import math import random import simplegui # helper function to start and restart the game def new_game(): # initialize global variables used in your code here global guess global secre...
[ "noreply@github.com" ]
algator.noreply@github.com
c773ffd4894eaa9dd7f0f650b0dd3984c7006fba
d1d94aee03d5b3217c8482bffba11afa1de7f5fe
/Username Check.py
6443a30f132355ac64f5df1ea1ef652e8a525bf6
[]
no_license
Cpasgrave/Python-Challenges
990384b81b992377ac7142d19ce9f83a4a198a2f
7f0feb563fe427c4f93fd2d4b253478cec53debb
refs/heads/master
2020-03-23T02:36:56.783571
2018-09-05T09:32:04
2018-09-05T09:32:04
140,982,674
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
# -*- coding: utf-8 -*- # Answer to CHALLENGE (description after the code) # Proposed by George Victor user1 = "Goubi3#" user2 = "troubi#4" user3 = "Fou fobi@5" user4 = "Bi4*" users = [user1, user2, user3, user4] def check(user): if 4 < len(user) < 11 and any(c.isupper() for c in user) and any(c.isdigit() for c i...
[ "noreply@github.com" ]
Cpasgrave.noreply@github.com
bd38c971346bda534845f0fffebce8903ed7ea77
5bca2d5a7615d2783fae7a7569d57a9a9eb3d604
/modules/store/domain/exceptions/product_exceptions.py
d82245c0b61c5e6b72da88f9cb469dc95b185e7d
[]
no_license
eduardolujan/product_hub
9ff3fbf11b4703993c1efb2a6202ed3b1c446cda
0bfe0059ab0d59243794b03f70ceffe3a1a263be
refs/heads/main
2023-03-01T15:58:05.014636
2021-02-03T03:04:31
2021-02-03T03:04:31
330,279,522
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
# -*- coding: utf-8 -*- from .http_error import HttpError from modules.shared.infrastructure.http import status as http_status class ProductNotExist(HttpError): """ Product not exists """ def __init__(self, message: str, http_status=http_status.HTTP_404_NOT_FOUND):...
[ "eduardo.lujan.p@gmail.com" ]
eduardo.lujan.p@gmail.com
861fb2d23738f620fb3a8f6581f425a5cf4b3ea4
22c62c9422570db36c95162ffa4b04c277967e55
/data/overwatch_scrape.py
e74062f3a2b4115876e39bca090fff1077829f57
[]
no_license
solejar/SoCharM
c90610562ca66a53464749d5c295f5b678297d2b
418ad0f1f68f57994d8e5f30a8f51a3ee1044098
refs/heads/master
2021-04-29T15:21:01.100789
2018-02-23T18:16:39
2018-02-23T18:16:39
121,796,367
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
#!C:/Python27/python import urllib2 import BeautifulSoup wiki = "https://overwatch.gamepedia.com/Ana" page = urllib2.urlopen(wiki) soup = BeautifulSoup(page)
[ "solejar236@gmail.com" ]
solejar236@gmail.com
bb9db42c363b3da060934859a493a98d2fa3c1d2
505a5884fc67f98ef55f245947e4445f95f74127
/app/project/urls.py
a846c6cd3b7a24f3f936395acf687ed448dc2e36
[]
no_license
palmbeach-interactive/django-admin-kitchen-sink
ff711b3164a16807150dc6083cc279cbf4a79439
1136d4a2df1ca395a27786cfecc9108da8b20375
refs/heads/master
2022-08-30T19:00:51.980997
2017-03-02T13:05:00
2017-03-02T13:05:00
75,930,500
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from cms.sitemaps import CMSSitemap from django.conf import settings from django.conf.urls import include, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.contrib.staticfile...
[ "ohrstrom@gmail.com" ]
ohrstrom@gmail.com
a902738fdbaa00a0b3d311c6177b51cdf99ac8d8
be46fdadaccc3c06a4704dee26c2efc11a77b2d0
/api/migrations/0009_auto_20200415_0856.py
381a7359e3bbb4e462d8a9987c6d32589d96d539
[]
no_license
nforesperance/wiagate_backend
52a542a8c3ff20800fe6c363dd0d9192d2f353e9
e52155c766884db61e04906c8a27a62b463d8e90
refs/heads/master
2023-08-02T11:54:39.504829
2020-07-16T15:07:22
2020-07-16T15:07:22
280,182,472
0
0
null
2021-09-22T19:27:03
2020-07-16T14:57:19
Python
UTF-8
Python
false
false
936
py
# Generated by Django 3.0.5 on 2020-04-15 07:56 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('api', '0008_exam'), ] operations = [ migrations.AddField( model_name='quiz', name='end_...
[ "nforesperance1@gmail.com" ]
nforesperance1@gmail.com
eb31174e56fd716e1d91766d6d4f1a0062df364e
d43d06d6a39f4d841ee75867edd5f52e25b1468f
/manage.py
51229c4ae8963b21a845eafee49114e449911222
[]
no_license
monteskier/ArxiuDjango
8f09ff8c61610e76c73b4b57e3358f644027cb4b
b49dd9e3a9e619d0c3d1b4c972c91c9b80cc9fa5
refs/heads/master
2021-09-01T21:14:21.200420
2017-12-28T16:40:41
2017-12-28T16:40:41
115,601,163
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ArxiuDjango.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "jmontoliu7@gmail.com" ]
jmontoliu7@gmail.com
07e8019ac9555197e8cff4f5fabe20dbc5a62c73
b9245d71d3c124110e282145fb54f3a220f4e8d9
/main.py
9fc8dee235de320f4fcc0ecfd83232e2198cdfa0
[]
no_license
KevinYuimin/SemiStarGAN
c97f237756a732e6ec6abaf011848aa6eedbca45
1e860668473662936e3c39a53d21ecd02ef59748
refs/heads/master
2020-04-02T04:03:06.852265
2019-05-12T06:40:39
2019-05-12T06:40:39
153,997,264
2
0
null
null
null
null
UTF-8
Python
false
false
3,672
py
import argparse import os import tensorflow as tf from model import semi_stargan # argument parser parser = argparse.ArgumentParser(description='') parser.add_argument('--phase', type=str, default='train') parser.add_argument('--dataset', type=str, default='celebA') parser.add_argument('--data_dir'...
[ "space83725@gmail.com" ]
space83725@gmail.com
191b438f2c74a540c7414317704b4433f0ba0aea
4b4dec45e98431fa067fc081408cc43f7c8c1a81
/tests/unit/test_natural_query_field.py
493e4de8d67076566c9e68e5e587a7cd8ee2333b
[ "BSD-3-Clause" ]
permissive
djangosporti/django-natural-query
38cc09b1522d5cfe8a5f55c5700ecdc003e5633e
e169f088b07d2aab4998d964abf1f44f0a5e22ff
refs/heads/master
2021-01-12T15:40:59.185042
2015-03-23T13:36:30
2015-03-23T13:36:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
from django.test import SimpleTestCase from natural_query.fields import NaturalQueryField, NaturalQueryField from natural_query.query import NaturalQueryDescriptor from tests.common.support.models import TestModel # class NaturalQueryFieldTestCase(SimpleTestCase): # def test_a_query_descriptor_is_added_to_the_mo...
[ "omer.drow@gmail.com" ]
omer.drow@gmail.com
6d288d510a9baa6010315e3c0fce5153ddcc9e22
289bf24b7a995977dbc13a6dc1fa99bdccf928ab
/seaweed/__main__.py
1cee1c49bdfa86084dfc153714987e74a4ea33ed
[ "MIT" ]
permissive
3ng7n33r/seaweed-cli
0abadb457a4c26ea60217ebb816cadcdfaa7457d
d91f255b30f714f481eaf8e26512ba42422770be
refs/heads/master
2021-09-20T17:35:25.819160
2018-08-13T15:29:16
2018-08-13T15:29:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,105
py
''' This is the entry point for the CLI ''' import argparse from .surfline import search, spotSuggestion, createForecast def main(): args = parseArgs() getForecast(args.spot, args.timeframe) def parseArgs(): # Parse args passed to the cli parser = argparse.ArgumentParser(description="Get a s...
[ "cooper.samuel@outlook.com" ]
cooper.samuel@outlook.com
610819fb82fa07e59f4289726928b9b196c69dc8
6b83bb51b89bfa9eb7f3ad501292b7ddec8693ef
/ex21.py
b4f80813eb4b538cad908006d84e4192ac212165
[]
no_license
KeoneShyGuy/lpthw
0d75a792699fcd726e14c20a545fae11b9ca0620
32f297a1bcd2d974535bef8196d6803d2415ea0d
refs/heads/master
2020-04-06T07:05:03.372583
2016-09-19T04:39:14
2016-09-19T04:39:14
65,874,804
0
0
null
null
null
null
UTF-8
Python
false
false
753
py
def add(a, b): print "ADDING {} + {}".format(a, b) return a + b def subtract(a, b): print "SUBTRACTING {} - {}".format(a, b) return a - b def multiply(a, b): print "MULTIPLYING {} 8 {}".format(a, b) return a * b def divide(a, b): print "DIVIDING {} / {}".format(a, b) return a / b print "L...
[ "noreply@github.com" ]
KeoneShyGuy.noreply@github.com
f8d547c326d934f12534d8bd88fa02e475028d11
872f757843aa9a2c0d35d91ee6f6f45e5924be51
/fizzbuzz/teste.py
1681a1818dd28b170dc74801e2b0fbeb3dc5a492
[]
no_license
marcusgabrields/unicap-dojo
4ab37bfb8bd9e9ece2931d58d8c7472fd92a2f07
5bcdc0d2866395ee4b8232c8c52864be533672bc
refs/heads/master
2020-05-17T15:13:06.552318
2019-05-14T02:45:33
2019-05-14T02:45:33
183,784,132
1
1
null
2019-04-27T21:10:22
2019-04-27T14:36:12
Python
UTF-8
Python
false
false
993
py
import unittest from fizzbuzz import fizzBuzz class FizzBuzz(unittest.TestCase): def test_numero_quise(self): resultado = fizzBuzz(15) self.assertEqual('FizzBuzz', resultado) def test_numero_zero(self): resultado = fizzBuzz(0) self.assertEqual('FizzBuzz', resultado) ...
[ "marcusgabriel.ds@gmail.com" ]
marcusgabriel.ds@gmail.com
ee09381c501c031c732f3ebfe284b99212a31e43
536cc168ce47cc0310087c02c57fd9b23ea972cc
/data_structures/trees/insert_node_binary_tree.py
f4786dfb93ae028dd829fde80a25d3d91290639b
[]
no_license
asingh21/python
69a1763c04850aca7ccaf09ce7e006de9dea9734
90634abcdfb7dd0add46723ff15e5ef693cee8ce
refs/heads/master
2022-06-26T06:15:44.188147
2022-06-05T19:05:01
2022-06-05T19:05:01
128,602,621
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
import Queue class BinaryTreeNode: def __init__(self, data): self.data = data self.left = None self.right = None def insert_node_binary_tree(root, insert_data): if not root: return q = Queue.Queue() q.put(root) while not q.empty(): node = q.get() if ...
[ "asingh21@ncsu.edu" ]
asingh21@ncsu.edu
9f060f448d79ec552a47c2882fe9b7784042e56b
a9d197b21b73b25b8b87d2711fa53531ff40e155
/15 Files/binary.py
47092a61eda9e33a8eed824726fc1cb9b54e96ed
[]
no_license
CodedQuen/Python-essential-reference
460109acc901b687d9d4071331df488612e4f452
c2c222b6616d7ebe78bec3f0a90598582b8f6bf3
refs/heads/master
2022-06-15T12:19:34.475686
2020-05-04T08:29:25
2020-05-04T08:29:25
261,105,920
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
def main(): buffer_size = 50000 infile = open('olives.jpg', 'rb') # Python default is to use utf8, but this is binary, so we rb, read as binary outfile = open('new.jpeg', 'wb') buffer = infile.read(buffer_size) # Buffer is a binary object not a text object; so, buffer is a must while len(buffer...
[ "noreply@github.com" ]
CodedQuen.noreply@github.com
f24d5094a90cf5df6749cb72a050e4e21a507a45
f62ff90d7850af458d8f12386fc9ee9134dbe7c1
/Plots/Paperplots/Model_11/Current_Voltage_Curves.py
034fdb756dbe154469192f36b3769056b04eb971
[]
no_license
AlexSchmid22191/EIS_R_Sim
51b431f078cb455fc38637c192436c0523449565
851b061e60811e1e58a5b2fd4e393e529c3f86ac
refs/heads/master
2023-06-27T17:40:59.177270
2021-07-22T11:50:27
2021-07-22T11:50:27
380,768,174
0
0
null
null
null
null
UTF-8
Python
false
false
5,611
py
from matplotlib.pyplot import subplots, show from matplotlib.style import use from numpy import load, log10 from Equations import e, k, T from Semilog_Slope import semilog_slope from matplotlib.ticker import LogLocator, NullFormatter use('../Paper.mplstyle') data = load('../../../Currents_Resistances_Model_11/Curren...
[ "Alex.Schmid91@gmail.com" ]
Alex.Schmid91@gmail.com
3e429ba488e156608f0e560020ad4b887946774e
3519119dffe00df415311fc410d6307e1991f42d
/scrapnfving/openstack/common/threadgroup.py
a9eaaa7097565a2bd57e20d91d331d955913b2ac
[ "Apache-2.0" ]
permissive
sbauza/gerrit-dashboard-nfv
d029c1f1518a91e4a6b341e73293a9ed4b40479f
d375b1e797f725941217f1c691a1e343ee52f409
refs/heads/master
2016-09-06T08:42:32.089693
2015-12-22T08:16:47
2015-12-22T08:16:47
21,006,345
0
1
null
2015-12-22T08:16:47
2014-06-19T15:53:38
Python
UTF-8
Python
false
false
4,812
py
# Copyright 2012 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 required by applicable law or agre...
[ "sbauza@redhat.com" ]
sbauza@redhat.com
98b6f11759bb01e8fdbbe030d030d2dfd0da373b
54c5b8e78f822f37c5322de3a44379cd0c952db2
/lambda_functions.py
f3091d11b0e2ad874f67133958ae94218743646e
[]
no_license
kranthy09/pythonpraccodes
4976203977f2a9bbae3fc6f1de8513a4ce74ab76
bb1a83c1eda4209045d96c631b24de333420f447
refs/heads/master
2021-09-21T16:53:18.174748
2018-08-29T06:24:19
2018-08-29T06:24:19
140,928,427
1
0
null
null
null
null
UTF-8
Python
false
false
252
py
def square(x): return x * x test_list = [4, 6, 7, 8, 9] result = map(square, test_list) print(list(result)) result = map(lambda x: x*x, test_list) sum = lambda x, y: x+y print(sum) print(sum(10, 30)) non = lambda : print("hello") non()
[ "g.kranthi2507@gmail.com" ]
g.kranthi2507@gmail.com
58253c38d0d61b8b816a414e2e2a0a659b6f8f76
c87a1593a7bf9bcafa1540db648c3677c8bac966
/day03/1深度爬.py
9d915509478fbc331222d65f57a2106c43509b56
[]
no_license
songting77/pabug
cd8c19bdf5defde32cda1f3837cb328742dac244
7b93cc0a425e04b2db4758903d92fef1f69b5656
refs/heads/master
2020-03-26T16:26:09.366251
2018-08-17T09:37:22
2018-08-17T09:37:48
145,101,571
0
0
null
2018-08-17T11:03:21
2018-08-17T09:34:13
Python
UTF-8
Python
false
false
1,234
py
import requests import re headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' } #获取网页源码,返回html源码 def getHtml(url): res = requests.get(url, headers=headers) return res.content.decode('utf-8','ignore') #筛选出HTML中的 URL(...
[ "1820440070@qq.com" ]
1820440070@qq.com
1cc9cfaecdbc241c0ae8c475450f64e32fdf7f36
c3756fd940a8c6ad4356e2ebb40b162dc9b02512
/script5.py
668c97b580e503c20779a4d476d01ac3eb8c75f1
[]
no_license
pahharo/pruebaGIT
407661d10627438cb2433687ed023d9081464dc2
0cd3eb7886d99bcb8f3494f8190c7ffef7d24928
refs/heads/master
2021-01-10T05:19:57.880947
2016-01-29T18:10:35
2016-01-29T18:10:35
50,678,234
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
import sys f1=open(sys.argv[1],'r') f2=open(sys.argv[2],'w') w=f1.readline() while w: f2.write(w) w=f1.readline(); f1.close() f2.close()
[ "manusl.teleco@gmail.com" ]
manusl.teleco@gmail.com
ee7900ea86cdeace5869c8fa625f38230d748790
bc021e7b839af455945262679ffa8e84fd9bfb1d
/src/rest/ishipsafe/migrations/0006_auto_20151004_1932.py
1aaae80cdc0789930670336f8723b870c095ed95
[]
no_license
ishipsafe/issapp
bd27fd72bd086a7e1befb8647ed6a8e5ea29d41a
d64fa1ab52305fe30268a18b5b6982f16ffb6b72
refs/heads/master
2021-01-10T10:23:52.276558
2015-11-09T01:43:27
2015-11-09T01:43:27
44,488,891
0
0
null
2015-12-14T02:01:03
2015-10-18T17:41:50
JavaScript
UTF-8
Python
false
false
402
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ishipsafe', '0005_subscribe_role'), ] operations = [ migrations.AlterField( model_name='subscribe', ...
[ "gitlab@gitlab.com" ]
gitlab@gitlab.com
beb12668ab1f1daec1f292ad5d423e079e5cd00e
de47c1573f3ae4f0124fd139d50b5d3caf6f37ea
/Lecture 1 - What is Computation/lec1.py
990604807adc3fcdc8d08b93079d8d6321c7e3ee
[]
no_license
Jonatandb/MIT_6.0001_IntroComputerSciencePython
2b7186e8413d37d73259245ef99e9206f4e36390
324bf7f0c48409a7ce81cbc72a3a75657ab7264a
refs/heads/master
2022-10-01T16:38:39.475426
2020-06-12T02:04:19
2020-06-12T02:04:19
267,966,567
3
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
pi = 3.14159 radius = 2.2 # area of circle equation <- this is a comment area = pi * (radius ** 2) print(area) # change values of radius <- another comment # use comments to help others understand what you are doing in code radius = radius + 1 print(area) # area doesn't change area = pi * (radius ** 2) print(area) ...
[ "jonatandb@gmail.com" ]
jonatandb@gmail.com
9c955e40eee17d84a46917f4a2f7965f8d6e3dd1
8e5bec5094a06a81ce832a6d26dee1d77b46b367
/backend/views/events.py
fb1580951a0e3f5de94637eeebe0c5428f31b176
[]
no_license
dmitry-buraev/uuevent
8b0a1db7b83cc501749d753d03175462ecf83928
f395fb1c6cf1796fdc29f8f7411b68957745e178
refs/heads/master
2021-01-20T01:57:19.837937
2012-06-29T20:43:15
2012-06-29T20:43:15
4,735,196
1
0
null
null
null
null
UTF-8
Python
false
false
2,515
py
from google.appengine.ext import ndb from flask import json, Response, request, abort from flask.views import MethodView from backend import app from backend.models import Event, Tag from datetime import date from settings import DATE_FORMAT as DF, TIME_FORMAT as TF class EventREST(MethodView): def get(self, id=No...
[ "dmitry.buraev@gmail.com" ]
dmitry.buraev@gmail.com
0961a25523b4e8ceb6bd6a4961d73a1d16e7d023
5d8cc97885f3cb3240e19e50bf8762ce2d185433
/ADDONS/plugin.video.arabicvideos/arabicvideos/DOWNLOAD.py
d754608d6f981a5c646506bd46984229be50caeb
[]
no_license
kwuw/KODI
ea357215af9001e515fb415215fc5a326d2e4177
3a1721372023cf7982fdfa151166d207bd84022f
refs/heads/master
2023-04-01T23:13:48.717823
2021-04-16T20:43:10
2021-04-16T20:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,180
py
# -*- coding: utf-8 -*- #from __future__ import unicode_literals from LIBRARY import * script_name='DOWNLOAD' def MAIN(mode,url,context): #DIALOG_OK(url,context) #LOG_MENU_LABEL(script_name,menu_label,mode,menu_path) if context=='6_REMOVE': results = DELETE_FILE(url) elif mode==330: results = LIST_FILES() elif ...
[ "emadmahdi@yahoo.com" ]
emadmahdi@yahoo.com
370c6046f9cc332164d0d3cf3407fe10573ba20c
6775233e6819c4e90ac8acdecd912ae26c6158d8
/funny/dices.py
0c071a665afef39ff2e02b10872c2a9423235a24
[]
no_license
gonzaponte/Python
ad8a3a364429ce53afe6b8cae2f993ffd0c1835c
ac80f79469d2f990608f23bcd1b9faf678fa59e6
refs/heads/master
2021-06-09T03:09:52.877156
2021-03-31T08:42:16
2021-03-31T08:42:16
23,758,152
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
from ROOT import TRandom3,TH1I random = TRandom3() random.SetSeed(10) r = lambda: 0.5 + 6*random.Uniform() N= 1000000 h = TH1I('a','a',7,0,7) roll = lambda n: map( lambda x: int(round(r())), range(n) ) is6in4 = 0 is66in24 = 0 for i in range(N): four = roll(4) dice1 = roll(24) dice2 = roll(24) if 6 in ...
[ "gonzaponte@gmail.com" ]
gonzaponte@gmail.com
6ebdecce64d39a07496cecc992d2247df108558c
e7c576fadb4ee05e3a7dfa4594c0c7ef3e6e258e
/veryNewPrime.py
c759319af02e3dd6561d0a07585f1d0439f8c408
[]
no_license
fhcwcsy/python_practice
9c3d559279c9d6d2fcc5f875110421137eead28d
a8b2e0bdf05cc372aa992058bc43949dbd99755d
refs/heads/master
2020-09-10T01:43:54.066192
2019-12-11T00:35:17
2019-12-11T00:35:17
221,618,373
0
1
null
null
null
null
UTF-8
Python
false
false
2,049
py
def generating_prime( a, b ): # 134 15183 # 21344 66666 # 5 1245122 # 3 310831 # 1 1 # prime_list = [] # not_prime_list = [] # if a % 2 : # a += 1 # for num in range( a, b+1, 2 ) : # if num in not_prime_list : # continue # not_prime = True ...
[ "fhcwcsy@gmail.com" ]
fhcwcsy@gmail.com
fed7ba13a2cb534f67b93b5ade3810dc77297eb8
ec3b6cbbacc20e021b5819e6ae3fe405a75d2513
/Pong/squares.py
5c0800bc8584473321e19109e2df28401bf54c87
[]
no_license
imschwartz89/pygame-learning
11505d4a78bc5bd79fbe4c1a5072a2647b30530c
33236e9ec0c465125258277c8998b26c32f2aa0b
refs/heads/main
2023-01-03T01:51:28.279959
2020-10-28T16:00:25
2020-10-28T16:00:25
308,057,336
0
0
null
null
null
null
UTF-8
Python
false
false
8,587
py
import pygame #width = 500 #height = 500 class Window(): def __init__(self, height, width, color): self.height = height self.width = width self.color = color self.win = pygame.display.set_mode((width, height)) self.win.fill(color) self.clock = pygame.time.Clock() ...
[ "noreply@github.com" ]
imschwartz89.noreply@github.com
3be59a2d25d31bad91c4f8c6b14ef1bd72bcf038
b38fb62950582664158327a2abf29c84cc59178b
/0x08-python-more_classes/7-rectangle.py
cc2f3ff9130c143fa88c6aa6ed73583c9fb7233a
[]
no_license
MiguelCF06/holbertonschool-higher_level_programming
a39129cf355abe15e2caeb41cdef385ace53cfda
0bc44343cb20c97221d3886bafda6db7235bc13a
refs/heads/master
2022-12-18T00:12:52.498624
2020-09-24T17:00:24
2020-09-24T17:00:24
259,323,305
1
2
null
null
null
null
UTF-8
Python
false
false
2,009
py
#!/usr/bin/python3 """ Create a rectangle class """ class Rectangle: """ The rectangle class """ number_of_instances = 0 print_symbol = "#" def __init__(self, width=0, height=0): self.width = width self.height = height Rectangle.number_of_instances += 1 @property def...
[ "miguel.cipamocha@gmail.com" ]
miguel.cipamocha@gmail.com
e2795adaec03b424a011e257759570bdf7c6c93a
4494bf81f01d4cdc664d9b55a106db2adce43b5f
/no3a.py
d1bca79b8902c54add3a9cce9ea044c82f1a99e4
[]
no_license
L200180022/Praktikum-ASD
ce706e2edf3c94a77a5103e6c9d19c1b5c6c2843
479cb9fa2a4f1be836fcba07e5f2df93bfe4210e
refs/heads/master
2021-02-10T22:10:31.406411
2020-04-05T19:35:33
2020-04-05T19:35:33
244,424,186
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
class tugasLink(object): def __init__(self, nama, next = None): self.data = nama self.next = next def cari(x, y): if y == 1: print (x.data) elif y == 2: print (x.next.data) elif y == 3: print (x.next.next.data) elif y == 4: print (x.next....
[ "noreply@github.com" ]
L200180022.noreply@github.com
6e7e04a0bda7b74b42412ce110b99447221900cf
ba5216488e8c08085633ebe7022c9609571f35c5
/test_ws/build/drone_control/catkin_generated/pkg.develspace.context.pc.py
0756ab54c94ea52c836c609058289167839f1d7a
[]
no_license
MasonDMitchell/drone_simulation
82fb9737ba869e05fac6740e86024fa50135080a
99951aa4447c5bb2429a6d3bbcf7c76c402c9e94
refs/heads/master
2020-09-08T06:50:56.761789
2020-01-17T19:39:26
2020-01-17T19:39:26
221,051,124
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "drone_control" PROJECT_SPACE_DIR = "/...
[ "mason.mitchellzone@gmail.com" ]
mason.mitchellzone@gmail.com
a0254f535f2c1e312b00d3b0e539c566bcd54f3f
0c6b273899296883db1bc1e5938bc4ebd2a1760b
/backend/setup_code_tracker.py
2c9c2f0aae7035943516e098b2e89f93a9c0819b
[]
no_license
kanishk1/comp9321-ass2
bace22396c6cbf8e60338f6b105a91ef05234671
0d280097e821e6164611670df9b8a6c165106518
refs/heads/master
2020-09-05T02:06:08.924724
2019-11-25T07:19:05
2019-11-25T07:19:05
219,952,527
0
4
null
2019-11-25T07:19:06
2019-11-06T08:53:35
JavaScript
UTF-8
Python
false
false
300
py
# this code is to only be ran if you delete all database and migrations # create tracker if doesn't exist from run import db from database.models import Status_tracker if not Status_tracker.query.all(): status_tracker = Status_tracker() db.session.add(status_tracker) db.session.commit()
[ "peeter._@hotmail.com" ]
peeter._@hotmail.com
ecf8867b525dca0b2313c2c1338ccb471691fd86
5a744ad8e42abd26abc819ab05ce6ca5cb4146c7
/interviews/weather_uk_dimitrii/app/weather/routes.py
cf29419c13fe43de5ebda26137f1bfc96fb0a448
[]
no_license
peternortonuk/quiz-questions
c2db6e62747c6e809aad4d0674d4e9980008d656
d33cb23bf9c85ff8e41cb6721ca761beecf5c796
refs/heads/main
2023-04-16T18:30:13.956245
2021-05-06T12:27:51
2021-05-06T12:27:51
325,616,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
from datetime import datetime from app.weather import bp from app.weather.db_work import get_weather_from_db from app.weather.services import get_weather_string_from_api from utils.error_handlers import InvalidUsage, APIUnavailableError from flask import request, jsonify, make_response @bp.route('/<string:city>', m...
[ "peter.norton@gazprom-mt.com" ]
peter.norton@gazprom-mt.com
6fd25c4f3840b07636abaf3db966d2c4e759195c
a823d9786b12c2e48b96216b9b58b531ab1ec354
/learn_python/basedemo/test12.py
3b337d8c585e4870580c0152bc463ee075544771
[]
no_license
altraman00/mdl_python
3ded721ea714e74b4930d03355e4e159c638f04a
33fea9e097803f331e043b7e690fea4506a432bb
refs/heads/main
2023-07-03T23:58:05.479628
2021-08-12T05:44:49
2021-08-12T05:44:49
384,030,966
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
import time; tick = time.time() print(tick) starttime = time.clock() print('----',starttime) localtime = time.localtime(time.time()) print(localtime) print(time.localtime()) time2 = time.asctime(localtime) print(time2) time3 = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) print(time.localtime()) print(...
[ "xiekun@sunlands.com" ]
xiekun@sunlands.com
d69cec81dceb7ff29ec3b6e59d4abfe5207083f7
a8dbab6f5d707d6b8e281eb2a7086bd1e648223e
/solidforml/03 Open Closed Principle/openclosed.py
e91871223641484d70e2e841d3c2c5703e734413
[ "MIT" ]
permissive
kyirong6/solidforml
da1cec783a54c5d73361038d5bb6031ba77de2b3
96445274cfbf4ce77bcf3bbfb83b26ec19f5b392
refs/heads/main
2023-08-21T03:58:17.936024
2021-10-18T09:22:42
2021-10-18T09:22:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,131
py
from abc import abstractmethod, ABC ################# OCP violation ############################# # class Extractor: # # def extract_spectrogram(self, data): # print("Extracted spectrogram") # # def extract_mfcc(self, data): # print("Extracted MFCCs") # # def extract_mel_spectrogram(self, ...
[ "velardovalerio@gmail.com" ]
velardovalerio@gmail.com
1a02d3c8f5643b42815c0a2184d1a488b1308724
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/intune/v20150114preview/android_mam_policy_by_name.py
a566fda17eaacffb12d4cc883b85ba9978375ea3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
10,816
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
11436b5d9f827decfd2c482545cf163c056ba445
451d827326096f27dd912cd8323847c5483b3a8c
/backend/aleyna_27209/urls.py
47f42708ea6700ef21b36aa866d79c9d898ce35a
[]
no_license
crowdbotics-apps/aleyna-27209
d839812b39bba3b3a53fe9ad39d0c8119274ee57
7972f0d6cbd531bbba48efd387ad70a936b182bb
refs/heads/master
2023-04-20T12:33:16.667809
2021-05-21T16:04:47
2021-05-21T16:04:47
369,582,630
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
"""aleyna_27209 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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-...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
599d905038d248fb037ca50bc0780d275a941665
e68a40e90c782edae9d8f89b827038cdc69933c4
/res_bw/scripts/common/lib/lib2to3/fixes/fix_imports.py
93f3852497f4c5852f59a9a8367223073e4ff11c
[]
no_license
webiumsk/WOT-0.9.16
2486f8b632206b992232b59d1a50c770c137ad7d
71813222818d33e73e414e66daa743bd7701492e
refs/heads/master
2021-01-10T23:12:33.539240
2016-10-11T21:00:57
2016-10-11T21:00:57
70,634,922
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
4,333
py
# 2016.10.11 22:20:59 Střední Evropa (letní čas) # Embedded file name: scripts/common/Lib/lib2to3/fixes/fix_imports.py """Fix incompatible imports and module references.""" from .. import fixer_base from ..fixer_util import Name, attr_chain MAPPING = {'StringIO': 'io', 'cStringIO': 'io', 'cPickle': 'pickle', '__buil...
[ "info@webium.sk" ]
info@webium.sk
2bf817a6155e3a01d75d49527e93cdf1126b8f45
cd895ae074ecb67ef886af8b26256a62f3c023dc
/src/NATS/Client/sample/DEMO_Procedure_Display/PlotHelpers.py
d5bcf51770c866847a2ca77b656702f4914961c4
[]
no_license
mh-swri/NASA_ULI_InfoFusion
1361c25f8f19d31dc81cea05bdc704896690cbf1
52aa60454941fd65180ac348594dfee0c19398ab
refs/heads/master
2020-03-25T00:16:30.087618
2019-11-19T18:55:09
2019-11-19T18:55:09
143,177,424
5
1
null
2019-12-09T22:50:12
2018-08-01T15:53:01
C
UTF-8
Python
false
false
71,944
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ NATIONAL AIRSPACE TRAJECTORY-PREDICTION SYSTEM (NATS) Copyright 2018 by Optimal Synthesis Inc. All rights reserved Author: Jun Yang Date: 2018-01-19 #Revision Logs 03/21/2018, Added AirportLayout,Node,Link classes to handle airport layout display and taxi r...
[ "michael.hartnett@swri.org" ]
michael.hartnett@swri.org
35a925193f2f4cbdb975c339ea9e87d49e80c1b6
a27652a03a0f14308410477f3dd90b4337ef2087
/getpass.py
f4fb304bef7bf36bf35ed5bf64a2dafee61fbea4
[]
no_license
TestardR/Python-Tips_Tricks
6b4a9aff5564d9b0b915599b604b7c09facc9da7
d03e592bc2d54eea8ab98701dedfd358c0902c7b
refs/heads/master
2020-05-16T10:03:59.154618
2019-04-23T09:09:25
2019-04-23T09:09:25
182,969,629
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
from getpass import getpass # wrong way # username = input('Username: ') # password = input('Password: ') # print('Logging In...') # with getpass username = input('Username: ') password = getpass('Password: ') print('Logging In...')
[ "rmtestard@gmail.com" ]
rmtestard@gmail.com
7283456ec10dfea2986245ae7e1ccb62cd9ac117
ec5e4dacb30800828ae4d68f9d87db523293ab65
/fb_post/views/reply_to_comment/request_response_mocks.py
39c44980905ef80eb754ba03186049e0c37ccc84
[]
no_license
raviteja1766/fb_post_learning
54022066ba727220433cb72c43458f9cb6164b24
889718fc8f138888aea1b66455fa68c000a02091
refs/heads/master
2022-11-08T17:39:40.275922
2020-06-25T11:19:28
2020-06-25T11:19:28
274,897,124
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
REQUEST_BODY_JSON = """ { "content": "string" } """ RESPONSE_200_JSON = """ { "reply_id": 1 } """
[ "ravitejak125@gmail.com" ]
ravitejak125@gmail.com
ec6637a5f575387ece2715daa824042431890032
d9dbe8938c39f95a7887f9ca55e02ed7a0b75628
/config.py
97995f3c0e392ba75dea1f42d826fa0440a24663
[]
no_license
crazydev71/cryptokitties-utils-python
daa03acf2ade95605cf4b48417bb214a4fec787c
e811014e894ad252ed3c051bba0bcd19b370425f
refs/heads/master
2020-03-28T02:06:46.977733
2018-09-05T16:25:31
2018-09-05T16:25:31
147,547,907
0
0
null
null
null
null
UTF-8
Python
false
false
12,163
py
# Set RPC provider RPC_PROVIDER = 'http://localhost:8545' contract_address = "0x06012c8cf97BEaD5deAe237070F9587f8E7A266d" # Cryto Kitties contract ABI contract_abi = """[{"constant":true,"inputs":[{"name":"_interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false...
[ "crazy.dev@aol.com" ]
crazy.dev@aol.com
a8f66f05dac2c6c58bf0c13a445cbcf72065b610
39e4435ad9b4789a8095c745a9bab8f0fb7be333
/core/migrations/0008_auto_20160523_1427.py
d9c4a8ec94c86f3d8ba8e3bd4979e7a36eda35f6
[]
no_license
KrishJoshi/TutrWebsite
216cf4f1087170edc2d5e1850c29518a5b634f47
d40b84d29967c9c19baf47ecf78a14108d583189
refs/heads/master
2021-01-24T17:34:54.663958
2016-08-09T22:40:34
2016-08-09T22:40:34
65,242,269
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-23 14:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20160523_1112'), ] operations = [ migrations.AddField( ...
[ "me@krishj.com" ]
me@krishj.com
c186767b80617b71aec5141e4d429a6041b9c319
3e4e8a8001539f53a745b73003d945cc48d80117
/catalog/views.py
b5c8829f5e36fbae16f6b99f6676a511dc807bd7
[]
no_license
amithah/WeddingWire
d61a8727d0cbaf7bec8deb984d26ca847e064be2
c1f07dadc0c6c0b6d210398f7ec2b1e4cd87b1af
refs/heads/main
2022-12-30T19:02:51.273509
2020-10-19T12:48:59
2020-10-19T12:48:59
304,603,328
0
1
null
null
null
null
UTF-8
Python
false
false
2,006
py
from django.shortcuts import render, redirect, reverse from .forms import CreateWebsiteForm from accounts.models import CustomUser from django.contrib.auth import login from page.models import Page,Image import random import string def get_random_string(length): letters = string.ascii_lowercase result_str = '...
[ "amithah.nithin@gmail.com" ]
amithah.nithin@gmail.com
0b8b0d5be2a7cb8d345900bd945f838a7921e3c1
8feeb65c41214fe05d88ab6263a56cf6464ef2c1
/Documents/cs124/pa2_triage_starter/NaiveBayes.py
510ecf3cf34c175ef58d86969c089434439683a1
[]
no_license
cmguyman11/triage
6d84ac20ad37e4e8a49b64e66bfb969d0e33ec57
52d9b2bddde8fe80dc0ebc48551e71f18d974f71
refs/heads/master
2020-04-18T01:19:58.629287
2019-01-25T07:57:30
2019-01-25T07:57:30
167,115,022
0
0
null
null
null
null
UTF-8
Python
false
false
9,720
py
import sys import getopt import os import math import operator from timeit import default_timer as timer class NaiveBayes: class TrainSplit: """Represents a set of training/testing data. self.train is a list of Examples, as is self.dev and self.test. """ def __init__(self): sel...
[ "cmguyman11@gmail.com" ]
cmguyman11@gmail.com
d0dd949d535fb7bec5ffcc505d115d5861155aea
987f85cf4ba5444de2956f35ebca364eba5811b1
/06-django/djangotest5/booktest/search_indexes.py
2c1ba615b745c4a30c9dfa9d2828266818df0c91
[]
no_license
Acowboyz/road-to-python
cfb5623a15a4cae404990389169905cfd42e5a46
8009ff1836401898b6c5fc6e38238a8e37f1cb53
refs/heads/master
2022-12-10T21:33:35.115284
2019-07-22T09:01:59
2019-07-22T09:01:59
125,883,636
0
0
null
2022-05-25T00:40:59
2018-03-19T15:55:59
Python
UTF-8
Python
false
false
321
py
from haystack import indexes from .models import TinyInfo class TinyInfoIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return TinyInfo def index_queryset(self, using=None): return self.get_model().objects.all(...
[ "g4332572@gmail.com" ]
g4332572@gmail.com
388a0f8efd8689e7a5d065d1c190db6766eeb17e
8a9a0800d0b55cb17956a37ae0d60b807a007916
/main.py
02aeba6ac9d960f81dccd09b3dc6335d0a47baad
[]
no_license
SimonrLofgren/superAI
039f23384a5c8ece5ae1881249c889c633e52727
16cd83d261ea3d1676dfe8e00d7732bdffb42b91
refs/heads/master
2023-03-31T22:02:22.260561
2021-04-13T10:53:00
2021-04-13T10:53:00
357,493,266
0
0
null
2021-04-13T10:53:01
2021-04-13T09:17:13
Python
UTF-8
Python
false
false
4,638
py
import retro import random import pickle from toolbox import printsaved, randomActionFeeder, printButtons def runStraight(): env = retro.make(game='SuperMarioWorld-Snes') obs = env.reset() saved_actions = [] running = True while running: action = random.choice([[0, 1, 0, 0, 0, 0, 0, 1], [0, ...
[ "simonrlofgren@hotmail.com" ]
simonrlofgren@hotmail.com
a10cd58f8abbe8d6c04c7e5da74147437b61afb7
69fb386daaedbd741ca381b90867e0960035e491
/eleicoes/wsgi.py
dd917a89cd848c7fc8ece0759e28b407f6f7b13f
[]
no_license
Maethorin/eleicoes
981ad80c3d3f4835cac0f7fe229c4c779e49b465
bcc167a72847701a128c81df04dfc5fdf90af2ea
refs/heads/master
2016-09-06T15:09:09.084024
2014-10-23T08:20:09
2014-10-23T08:20:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
""" WSGI config for eleicoes 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/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eleicoes.settings") from django.core...
[ "maethorin@gmail.com" ]
maethorin@gmail.com
39c1115e6af8e673b376de250e94787fb20087a3
4d4e7f42c5d749f74d52b1d66e581364604fce50
/bd-srv-v10.py
7d9b24b44054a284c1675c1f3f5e3a642a777bc1
[]
no_license
Hack-Things/Py-IvzDoggz
799cead3d86bf56168855a7c5599cca32cebae33
c519b11a1837085746ad291c90cd132aed63ad51
refs/heads/master
2021-06-03T00:21:25.389420
2016-09-26T09:07:47
2016-09-26T09:07:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
import socket import sys import argparse parser=argparse.ArgumentParser() parser.add_argument('-p','--port',required=True,help='Port to listen on',dest='port') print "Welcome to your bot controller! \nUse the command 'qu1t' to end your session and 'k1ll' to kill the backdoor\n" mysocket=socket.socket() mys...
[ "noreply@github.com" ]
Hack-Things.noreply@github.com
4f9ad6e13ac23bce940fe991444a311e21bcbf9d
3356a44c2a8a76ed88d8a55730177382bcd94b6e
/website/docroot/files/test.data.py
919188ced61d8162243d9450d24de6b8f588e9bc
[]
no_license
spe-sa/purly
ad5d19ffec8af3471dd5f0b7fbd2f5142faf43f5
2df29d6d1bac215e9997418bdba8ffd29308f8b0
refs/heads/master
2021-01-19T06:27:46.340562
2017-08-03T15:47:32
2017-08-03T15:47:32
87,463,350
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
# from mainsite.models import Web_Region context = {'title': 'my static title', 'description': 'my static description', 'data': 'my static data', } def get_context(request): # region_list = Web_Region.objects.values_list('region_name', flat=True) context.update({'d...
[ "bfountain@spe.org" ]
bfountain@spe.org
36eb117d722a41a6556f88b6a05cc7b24ff2a421
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayMarketingToolXuanyitestCreateModel.py
6d3088b2f5601c4d6005d68b68843af5d4549abe
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,507
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.TransferResultInfo import TransferResultInfo class AlipayMarketingToolXuanyitestCreateModel(object): def __init__(self): self._test_12 = None @property def t...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
62d9ae7118dc620e594d52da3a75907162e5e269
6e4e0d430303255b1792961af1da5e20db2236f1
/tests/ext/test_profile_providers.py
945634c7bb8ca4a9ae37a8153ca904acccc3f1cd
[ "BSD-2-Clause" ]
permissive
suminb/finance
b051690c859633444080fdaec3f69bb09b452ddf
ab298b647b1b47fec2780415c8d2d1104d1244e4
refs/heads/develop
2023-08-19T19:05:48.795066
2023-07-23T09:41:40
2023-07-23T09:41:40
27,952,702
148
13
BSD-4-Clause
2023-07-23T09:41:41
2014-12-13T07:05:31
Python
UTF-8
Python
false
false
1,259
py
from math import isnan import os import pytest from finance.ext.profile import fetch_profile from finance.ext.profile.base import BaseProfile from finance.ext.profile.naver_finance import NaverProfile BASE_PATH = os.path.abspath(os.path.dirname(__file__)) def test_invalid_provider(): with pytest.raises(ValueEr...
[ "suminb@gmail.com" ]
suminb@gmail.com
2f4f454e71165a375de76916c65d7782ccd66f01
1068e00d3d54ce780ec1b691fb6e3fc9591eebaf
/Tests.py
220453200f4254ba36e2e1fbe8b8a1d112b68161
[]
no_license
freQuensy23-coder/wikiDownloader
c384460cb77028f00fab2b4cc22d2cf5a1cd4288
c31686ca886d7ac1e059b3b4db896020cae748b6
refs/heads/main
2023-04-04T06:36:26.669143
2021-04-14T07:16:08
2021-04-14T07:16:08
358,676,507
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
from unittest import TestCase from ThreadingManager import tasks_divider class Tester(TestCase): def setUp(self) -> None: pass def test_tasks_divider_normal_list(self): tasks1 = [1, 2, 3, 4, 5, 6] self.assertEqual(tasks_divider(tasks1, 3), [[1, 2, 3], [4, 5, 6]]) def test_tasks_d...
[ "you@example.com" ]
you@example.com
4cc71ba466fee307d4536c4be3dab26e2c7b0941
9e97c2902601e794d093e874e1e9688e6ab0aa7c
/users/migrations/0002_profile.py
e50fa34f7bcc6b71485ce7b5f462d848882ea816
[]
no_license
FaisalWant/jobPortal
b1a66f502f41543d1234665bce858fc2be308f5a
97fb14fd7543e00b594be80fb3fe0db110d02b61
refs/heads/master
2023-04-17T12:44:43.292346
2021-04-27T17:36:16
2021-04-27T17:36:16
351,038,161
0
0
null
null
null
null
UTF-8
Python
false
false
1,025
py
# Generated by Django 3.0 on 2021-03-30 18:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "heliconrngr@gmail.com" ]
heliconrngr@gmail.com
183263a4e827ad7235a4830e749647fcc891ee88
08b5df2a27033516b4f0529f739604e69596cb2c
/apps/sports/models/metric.py
47df05a268cc7fd277216b2c6759ff0e05fb9a67
[]
no_license
otimtony/b1gplay
24c5d51641033b0444edb6ecabee753648041b28
c1131666c9191bd93880f7ac9f800567013cf5eb
refs/heads/master
2020-05-04T18:03:05.117692
2019-03-29T08:47:46
2019-03-29T08:47:46
179,337,221
0
0
null
2019-04-03T17:22:52
2019-04-03T17:22:52
null
UTF-8
Python
false
false
656
py
from django.db import models from django_extensions.db.models import TimeStampedModel import uuid from apps.sports.models import Sport class Metric(TimeStampedModel): """ Represents a way of measuring a players attributes on a given sport """ id = models.UUIDField(primary_key=True, default=uuid.uuid4...
[ "nbaleeta@gmail.com" ]
nbaleeta@gmail.com
a00ce178b3bb25786b6273b5e3ea07db818002ca
0879d849ab998fde1866e98c2fa9dcdc7a1e0fc2
/leads/serializers.py
8a869b319a20c53ab5e4a2acc509501bfbfd0a95
[]
no_license
conor87/django_react_tutorial
f9362c2361b823f19256dbc74fd052e5bd0b03fc
a8f381fc7d0d0e4e7f6e0e4e861ab6ff5ecdacff
refs/heads/master
2022-05-30T19:56:11.059764
2020-05-03T16:46:29
2020-05-03T16:46:29
259,084,666
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
from rest_framework import serializers from leads.models import Lead # Lead serializer class LeadSerializer(serializers.ModelSerializer): class Meta: model = Lead fields = '__all__'
[ "karoldabko@gmail.com" ]
karoldabko@gmail.com
aaa69538a454bb572eba9f6cc4bde5b507d5fd11
3f82db7dbcd11d56f15a547ce19946cab3632e17
/blog/venv/bin/pip3.8
48fa967e0380d03a271661ffd40fb366f591ec1e
[]
no_license
daparducci/first_pytest
8894faaa7bb4634672999f50550a741223c11a63
d3db53f2cb14967dc51e3544b5776c6e3db67925
refs/heads/master
2020-12-26T11:47:33.979756
2020-01-31T19:09:11
2020-01-31T19:09:11
237,498,206
0
0
null
null
null
null
UTF-8
Python
false
false
413
8
#!/Users/dominic/code/testingPythonApps/blog/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]...
[ "dominic@dominicWell.local" ]
dominic@dominicWell.local
b45e9fe9e31d59042ec3b2d73c44e05dea4f80b1
1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41
/medium/python/c0108_223_rectangle-area/00_leetcode_0108.py
cab8907baa5a2f6249fc7693afbb753f480aa572
[]
no_license
drunkwater/leetcode
38b8e477eade68250d0bc8b2317542aa62431e03
8cc4a07763e71efbaedb523015f0c1eff2927f60
refs/heads/master
2020-04-06T07:09:43.798498
2018-06-20T02:06:40
2018-06-20T02:06:40
127,843,545
0
2
null
null
null
null
UTF-8
Python
false
false
865
py
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #223. Rectangle Area #Find the total area covered by two rectilinear rectangles in a 2D plane. #Each rectangle is defined by its bottom left corner and to...
[ "Church.Zhong@audiocodes.com" ]
Church.Zhong@audiocodes.com
e538d5ed698c57999aea523512035efc0f95c9ae
8a212396ac639720c3a9bacb03d400ed81db0d67
/faceseg/__init__.py
c0bd75cfe30c6deff048dde0fc64c8ba8692dc27
[ "MIT" ]
permissive
yushuinanrong/enhanced-UGATIT
74963c380cbdcec08aed96be9715ed2361283ded
5294a6ffd2d6f41f4b83ae901c6edb98f02cadc6
refs/heads/main
2023-07-13T06:10:06.418732
2021-08-23T10:03:12
2021-08-23T10:03:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
# ref: https://github.com/zllrunning/face-parsing.PyTorch
[ "zheng.yuwei@foxmail.com" ]
zheng.yuwei@foxmail.com
350f5a424ba769f69e84d2993fa720750894d9c6
6e93c79d9df2a3b17ff797803f3cc4b09072fd42
/day_4/3_whatsyourname.py
f43798ddeafe5dd167b6e45a4822c773d989adf7
[]
no_license
Koorimikiran369/Innomatics_Internship
d01192a6aed87a2bbf1f4f530225a60365bfac99
45d4a3c04bded5dc29e0b156742e6fdb77c1f544
refs/heads/main
2023-04-11T08:13:49.917768
2021-04-21T06:32:46
2021-04-21T06:32:46
367,670,015
1
0
null
2021-05-15T15:43:39
2021-05-15T15:43:39
null
UTF-8
Python
false
false
221
py
def print_full_name(a, b): print("Hello {} {}! You just delved into python.".format(a,b)) if __name__ == '__main__': first_name = input() last_name = input() print_full_name(first_name, last_name)
[ "noreply@github.com" ]
Koorimikiran369.noreply@github.com
5dffb89b2d119c6930deaf7e3ecb6ff1ccd16682
a796865c5ff4dcb7c6a0c848364bd6f7cb3d7a29
/chazutsu/datasets/imdb.py
f5b42733d4f49347b084c84ef9c8704ca7ffb391
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "CC-BY-SA-4.0" ]
permissive
yk/chazutsu
d625f6f7f682d713910ce59953841e507ad27262
ecc42c9ff0f8d47632ba4b4c7385a5fdf4386c10
refs/heads/master
2020-03-18T19:43:40.016170
2018-05-28T14:52:00
2018-05-28T14:52:00
135,173,517
0
0
Apache-2.0
2018-05-28T14:41:16
2018-05-28T14:41:16
null
UTF-8
Python
false
false
3,375
py
import os from chazutsu.datasets.framework.dataset import Dataset from chazutsu.datasets.framework.resource import Resource class IMDB(Dataset): def __init__(self): super().__init__( name="Large Movie Review Dataset(IMDB)", site_url="http://ai.stanford.edu/~amaas/data/sentiment/",...
[ "icoxfog417@yahoo.co.jp" ]
icoxfog417@yahoo.co.jp
d8bb5a8e7e912929f97f2725224f9fe07f6645ea
08021cfc795dc9663f5f8c595d810ef42f416269
/gui using wxPython/FrameInstant.py
e40a9f094b738e744fda8ab836e226cfebdcc429
[]
no_license
ykim879/python
4891e4ed4a2f9073d93f5989e45ada6b752ae2ab
58283b807b675d9a580dbed74026bc09788ea3e4
refs/heads/master
2022-07-05T14:29:28.991726
2020-05-12T22:37:21
2020-05-12T22:37:21
263,126,539
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
import wx class MyFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, parent = None, title = 'check the user whether frame wanna be closed') self.Bind(wx.EVT_CLOSE, self.OnClose) def OnClose(self, event): if wx.MessageBox("Wanna close the window?", "please select the button", wx.YES_NO) != ...
[ "59812671+ykim879@users.noreply.github.com" ]
59812671+ykim879@users.noreply.github.com
d2ce96320d527c518bebd6228f86f7c1f5543780
e41b33f08527164a2d4ed0c4146942a5018f8d4c
/lpthw-exercises/ex01.py
ed29b6e4dc1ed56988cf67df117cc7ce63cdff7a
[]
no_license
clair3st/python-prework
42300d0801bc37a2dfa82f296c9c9d0b3931e0dd
f535bca5b7744b867cbb4454d832b31578c52aba
refs/heads/master
2020-09-20T07:29:44.102851
2016-12-11T07:15:18
2016-12-11T07:15:18
67,270,154
0
0
null
2016-12-11T07:11:53
2016-09-03T03:57:54
Python
UTF-8
Python
false
false
259
py
#exercise 1: a good first program #source: Learn Python the Hard Way ed3 print "Hello World!" print "Hello Again" print "I like typing this." print "This is fun." print 'Yay! Printing. ' print "I'd much rather you 'not'." print 'I "said" do not touch this.'
[ "clairejgatenby@gmail.com" ]
clairejgatenby@gmail.com
01605737b22095e5d725dc4845f7a7f4c3cb4956
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/7/rq7.py
30baec3bde8d82ec49d254be76caa965c2074d15
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
e1df67e10d3f856d1df676736e3ba774a668c2e9
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part004784.py
de1ef04b6fa59401f563bc1e1ad58ea88a73f13e
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,306
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
1c25094fd14ac35a1a078dcd42fd767e0060d645
934d61923a73d6aaee0ffeb61ad9410abe17a1d0
/plugins/video/onet.TV/resources/lib/biznes.py
87e35fc78a9fc307d45eda2c63719fbde458634d
[]
no_license
quickbreach/xbmc-addons
151cdec2a946e63f7fc2d715156bedf9c308492c
7b7d3518506fbf4f590ad69ee1027a485169c03d
refs/heads/master
2021-05-29T20:31:38.134618
2012-05-25T23:40:08
2012-05-25T23:40:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
import os import sys import xbmc import xbmcgui import xbmcplugin import urllib HOME_DIR = os.getcwd() names = xbmc.Language( HOME_DIR ).getLocalizedString rai = (names (30015)) alL = (names (33333)) class Main: def __init__( self ) : self.getNames() def getNames(self): gl=[ ("TVN",'http://www.one...
[ "pajret@753fbab9-553a-0410-a42e-33068982fbc4" ]
pajret@753fbab9-553a-0410-a42e-33068982fbc4
3a6b7b2df9594b26c15c025bd2c462daf298ac5c
22419cd2b08235318400d4514077100dd95fabd2
/blog_app/blog_app/settings.py
1977d76a2a4baea2ae82eb67386e7d543ee016d3
[]
no_license
shindesud/Blog_Application
2bc2023a44a8b981c5aeef78b67fdd54f963f98c
060c31a724b94561424a772a8647e67812798b54
refs/heads/master
2023-01-18T19:55:24.948769
2020-11-25T19:13:21
2020-11-25T19:13:21
316,034,587
0
0
null
null
null
null
UTF-8
Python
false
false
3,337
py
""" Django settings for blog_app project. Generated by 'django-admin startproject' using Django 3.1.3. 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/ """ from pathli...
[ "shindesudarshan1997@gmail.com" ]
shindesudarshan1997@gmail.com
16641e79a0456f31fd2389f72f184f4534eda8a1
1439d2fc587c964e3e040f46cf6c81bed22cbae1
/Bing_STT_API/Source/main.py
2ec1402ac2ca0770925563c62b9f9e1e9ab43da2
[]
no_license
gilberto233/Show-me-the-code-project-used
eac5eea0cdee71d3d003cfe836e2bd2fe459b07c
45df803dff6240d4ba22510fae3fd3e647a76d53
refs/heads/master
2021-01-01T19:14:39.987350
2017-10-28T03:14:55
2017-10-28T03:14:55
98,550,523
0
0
null
2017-07-28T18:20:02
2017-07-27T15:10:27
Python
UTF-8
Python
false
false
332
py
""" The main entry of STT project. """ #!/usr/bin/env python import Record, STT_API class function_entry(): def __init__(self): self.__start__() def __start__(self): instance = Record.Record() STT_API.STT_API( instance.get_file_name() ) if __name__ == '__main__': instance = funct...
[ "noreply@github.com" ]
gilberto233.noreply@github.com
04d67e916e482526c220890afd7b718aaabe554e
606b62a51ad48c12d8734029c917c0e7bbb172a3
/day7.py
ca92b745f1c7158291cdffd6f43848428fbdd37d
[]
no_license
darrenvong/AdventOfCode
11df5e2e0829d031e5b0d3e0dab615b2a0056284
4be9a5426a07c9ec5cc221e88f1af82fbcab1fde
refs/heads/master
2021-09-02T06:42:15.895328
2017-12-31T04:17:42
2017-12-31T04:28:13
113,380,506
0
0
null
null
null
null
UTF-8
Python
false
false
3,131
py
""" Solution for Day 7 of Advent of Code 2017. Problem: Recursive Circus Part 1: What's the name of the bottom program? Part 2: Given that there's only one program with the wrong weight and causes the program stack to be imbalanced, what should the correct weight of that faulty program be? """ from collections impor...
[ "d.vongy@gmail.com" ]
d.vongy@gmail.com
3b9c562603bd95678e9dbcc110f8d7626d356c8b
6a774d9347a0a224b396afd5b4828ad7a751035c
/chat/app.py
364d22c22c2af840127525cba3a10808f27ecd84
[]
no_license
oscarlaf03/stock_chat
09272f06d26d0725b8b3cc770e9d582c40d3077e
8d1b5027bd834725b51c7eb336749c21c7dd730c
refs/heads/master
2022-12-05T00:09:48.271535
2020-08-19T13:18:03
2020-08-19T13:18:03
288,295,150
0
0
null
null
null
null
UTF-8
Python
false
false
5,666
py
from flask import Flask, redirect, render_template, request, url_for from datetime import datetime from flask_login import (LoginManager, current_user, login_required, login_user, logout_user) from flask_socketio import SocketIO, join_room, leave_room from pymongo.errors import DuplicateKeyErr...
[ "ortizg.oscar@gmail.com" ]
ortizg.oscar@gmail.com
5727ee0a340bc59409cbca3dab04c40c96cf0f16
69d71011cb93ca0e2fbdb41fd65728a1f9592811
/GCJ2008PP/D_ShoppingPlan_DP.py
1846a8b643098cc5b3fdf321f1bc2e546e1a466d
[]
no_license
supachawal/JavaProgramming
571c614ad6897549e4f3f3f6f3aa7a24c42ab835
535a954b2b27a594e2ef7aaf5bea80ae360e8d02
refs/heads/master
2020-03-08T23:31:38.221494
2019-04-12T07:28:56
2019-04-12T07:28:56
128,466,557
0
0
null
null
null
null
UTF-8
Python
false
false
9,073
py
""" Created on Fri May 22 01:07 2015 @author: supachawal Problem D. Shopping Plan You have a list of items you need to buy today, and you know the locations (represented as points on a cartesian grid) of a few stores in the area. You also know which of these stores are selling each item on your list, and at what pr...
[ "supachawal@gmail.com" ]
supachawal@gmail.com
24b569fd3622422f261b5f68111b8abd6e551daf
ec14635ef4e0dffb100df7317910888756e50339
/website/website/urls.py
6f78c4d1a0bc1f288c2c31bfec6c4fba745ad0fa
[]
no_license
gymikechen/Exchange
8e351dd5c9377ae830a41d9bb4d8fde684e18ca6
67ef96d534d0a1a87a0bb69510bd45b947655ae0
refs/heads/master
2021-01-18T03:34:44.697360
2015-04-25T16:31:18
2015-04-25T16:31:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^mainpage/', include('mainpage.urls', namespace='mainpage')) )
[ "wasiseal@gmail.com" ]
wasiseal@gmail.com
5e6c55022ca74ff0691569b67e09db50a2549950
3ae7afb05534962ea12f22fe9d9e347a7a45c8f5
/old/experiment/naive.py
561c319ff1cb9cb60bce847ee42f50935b2d86f3
[]
no_license
driquet/dsbench
ec2681ddb907d09400c3b744edf480ee558c94e9
31d29004223cc02250b5c7c8d40da97350665a8c
refs/heads/master
2021-01-01T05:30:35.558205
2012-02-02T09:34:53
2012-02-02T09:34:53
3,217,806
0
2
null
null
null
null
UTF-8
Python
false
false
5,147
py
#!/usr/bin/python ''' File: naive.py Author: Damien Riquet Description: Naive Algorithm While an attacker is not detected, he scans targets When an attacker is detected, the algorithm takes the next to do the same ''' import algorithm import core.common as common import core.constant as constant impo...
[ "d.riquet@gmail.com" ]
d.riquet@gmail.com
27f44c21550f126bc6a2e8d6b8aa62130c306ec6
c602d28de32d559316e3d60d48f1b107fd57905d
/solution/_141_linked_list_cycle.py
9ed12d48fed91244259fe6f172771b0630236b4b
[]
no_license
zhangda7/leetcode
73b90ccf987b5cd1e7a6bda1cc7546e5d9a8533a
7fea71d92a12659e186b999ae06c06be39a19290
refs/heads/master
2021-01-17T22:29:12.480403
2015-08-24T09:36:35
2015-08-24T09:36:35
38,037,990
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
# -*- coding:utf-8 -*- ''' Created on 2015/8/5 @author: dazhang Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? ''' # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class So...
[ "dazhang@lenovo.com" ]
dazhang@lenovo.com
ef5f90848736e935b74c19e84546e440ed9df1cf
7afbbad7e7813faa10fb0883a5eec39ea26cfa36
/churn_modeling/main.py
08b44e72c3cd6017ebc11e21b03ceea3d7b3f56d
[ "MIT" ]
permissive
maybemanolo/deeps
7a7934548e6e332706b2404cd2d8313bd00ccd1c
5e073da05305f275b1f5930ea2a2746141cb9d1e
refs/heads/master
2021-08-26T07:08:38.180459
2017-11-22T04:17:03
2017-11-22T04:17:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,717
py
import pandas as pd import numpy as np from train import train_model from save_model import save_model from load_model import load_model from preprocessing import preprocessing from one_sample import one_sample from pathlib import Path from sklearn.metrics import classification_report dataset = pd.read_csv("Churn_M...
[ "manoloesparta@gmail.com" ]
manoloesparta@gmail.com
226cdcb6545bff51e3fdf9ecf0b928241ece44d1
6b3742f77bc89bc3b1436462150e9bef6db01264
/学习阶段历程/作业.py
e7a37ea3aa65781bca4b244f710dd3d580aa889d
[]
no_license
shenjinrong0901/python_work
84498aa4a34d825b4ae5a74b0163929af458afdb
3b829d0df91a36e2d4ff33341af6b7e1b136a312
refs/heads/master
2022-11-19T20:52:41.481755
2020-07-25T02:42:16
2020-07-25T02:42:16
282,359,281
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
fname = input("请输入要打开的文件名称:") fo = open(fname, "r") txt = fo.read() # 对全文txt进行处理 fo.close()
[ "724509720@qq.com" ]
724509720@qq.com
5d4066d70c16752a570b7172fea82e0b62071e20
c7c62b30959e33e80404530d246ec936425a325c
/Principiante/1014.py
e66ea891fddb2181c350234e7f9dfd4e8436ab24
[]
no_license
DerekMazino/Uri-Online-Judge
d67d7deabf09cf82222293ff0df6a55159cc5817
596ce6c331eefe9663da225ccfd410e123715240
refs/heads/master
2022-11-11T17:04:23.334751
2020-07-03T23:18:23
2020-07-03T23:18:23
260,353,090
2
0
null
null
null
null
UTF-8
Python
false
false
74
py
x=int(input()) y=float(input()) cons=x/y print('{:.3f} km/l'.format(cons))
[ "juancmaringcu@gmail.com" ]
juancmaringcu@gmail.com
b2070fbc98a967804cbc495777fc42562a7e1daa
bd3b4a3403ad0476d287eb555bbe4211134b093e
/nuitka/tree/ReformulationBooleanExpressions.py
57f04d993025bbb4e07262bc902c89bd8b58c472
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
suryansh2020/Nuitka
7ecff5bd0199a6510e446be13569c829ba165be5
3dd382e91884a77c28aeee6b0bd44a0fc58beee8
refs/heads/master
2021-01-19T14:28:47.154859
2014-12-21T07:34:12
2014-12-21T07:34:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,113
py
# Copyright 2014, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
8385ed94440875fdf2a2dcfdfda8b28ef0af0604
028c630b2111a085d46cfa0afce52b8ef19ebf62
/map_index_to_x.py
508be392b7125db9464d1239e737f6d46e3d1b69
[]
no_license
crocagiles/bike_wipe
cd39c2f58b2afc6a289e31e58f16d97c24cbaa74
b7758af6415edc3c45e8c70c97dffaf36958a5c1
refs/heads/master
2020-08-30T20:27:01.025160
2019-10-31T05:15:21
2019-10-31T05:15:21
218,479,883
0
0
null
null
null
null
UTF-8
Python
false
false
1,637
py
# Dirty little script to generate map to go from linear array to "bike space". Paste output from this into the main .ino file. # x indexes for position on frame top_tube = list(range(0, 15)) top_tube_r = top_tube[::-1] down_tube = list(range(0, 16)) down_tube_r = down_tube[::-1] # seat_tube = 10 * [15] seat_tube = [...
[ "noreply@github.com" ]
crocagiles.noreply@github.com
2439106f8ae59153774a85d5dfb970e64b5f96d2
902bb426c7bd57091bbf7aa514cb9e4a4d2271fe
/test.py
78e6a0adea09f3884507e0cc3c07e7d103bd638b
[]
no_license
asheed/nltk_prj
2e9c2329f4c34d36bbced1ec98a6e0fc09743ad9
dd832ecaef4139eaf3f71bb702cc0f825669e73a
refs/heads/master
2020-06-04T23:56:55.908219
2015-06-17T18:43:36
2015-06-17T18:43:36
37,614,172
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
__author__ = 'woojin' # -*- coding: utf-8 -*- para = "Hello World. It's good to see you. Thanks for buying this book." para_kor = """안녕하세요. 만나서 반갑습니다. 이 책을 구입해 주셔서 감사합니다. 그런데, 이런 문장도 구분할 수 있나요? 음...그렇군요. 테스트입니다.""" from nltk.tokenize import sent_tokenize print (sent_tokenize(para_kor,'english'))
[ "woojin7.ahn@samsung.com" ]
woojin7.ahn@samsung.com
d665c557995591484bad40e38c586b4bb700a29b
d4b7d21bc16d81094cf568e4fb77701d4afeeb65
/lesson7_step6.py
d835610a07521c78a0d9287cf096622fd0255018
[]
no_license
brizolya/stepik_auto_test_kurs
4e541fd6d322e3affb595e76aba5dbcc23ed82ea
9199b71f77211069a7441fa143a304925cbffdba
refs/heads/main
2023-01-10T04:28:34.968492
2020-11-10T17:08:33
2020-11-10T17:08:33
309,724,290
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
from selenium import webdriver import time import math try: link = "http://suninjuly.github.io/redirect_accept.html" browser = webdriver.Chrome() browser.get(link) def calc(x): return str( math.log( abs( 12*math.sin(int(x)) ) ) ) button = browser.find_element_by_css_selector("button.tro...
[ "73897007+brizolya@users.noreply.github.com" ]
73897007+brizolya@users.noreply.github.com
32916f0608b05e2b015b6fd5258a5ef9ce590a7a
f040e683d9c54c9e676f179541aad5891ce23114
/03 Control Flow/01 Practice Conditional Statements/prize.py
213eb2ae51845974e14e69a0a36c25747bfe5199
[]
no_license
Elpuma/Udacity-Introduction-to-Python-Programming
6aea1e58507fea253c9c52cc74a2b01945637d83
2add41df7d6dafddf55919bcb7a7f7e4ac2cdef0
refs/heads/main
2023-03-23T11:09:34.295554
2021-03-15T01:56:56
2021-03-15T01:56:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
points = 174 # use this input to make your submission # write your if statement here if points <= 50: result = "Congratulations! You won a wooden rabbit!" elif points <= 150: result = "Oh dear, no prize this time." elif points <= 180: result = "Congratulations! You won a wafer-thin mint!" else: result...
[ "noreply@github.com" ]
Elpuma.noreply@github.com
d6d6df2e0ad50395b7901a28aa7f55087680ae51
5eff9222e5e97abbc17aa564701135e996b833f0
/examples/basic.py
c073b9b0fcac4bc6ce9fe4f05273c3d9aa19f2d4
[ "Apache-2.0" ]
permissive
standoff-nlp/standoffconverter
70bd5a4d8887f5bfafab6cabe4a4f6d03227bc8f
70b6e3699772d1a4466e3bfacf9566753f33a619
refs/heads/master
2022-05-11T01:19:01.610235
2022-04-28T16:18:00
2022-04-28T16:18:00
194,285,160
19
0
null
2021-03-10T19:26:23
2019-06-28T14:15:01
Python
UTF-8
Python
false
false
583
py
from lxml import etree from standoffconverter import Standoff input_xml = '''<TEI><teiHeader></teiHeader><text><body><p>1 2 3 4 5 6 7 9 10</p><p> 11 12 13 14</p></body></text></TEI>''' if __name__ == "__main__": print("INPUT XML:") print(input_xml) tree = etree.fromstring(input_xml) so = Standoff(tree) ...
[ "davidlassner@gmail.com" ]
davidlassner@gmail.com
aeb7ae3dd549fed2106d4c5b03f296d41f1ab9db
4d2cc76dbceff9eded071ba542ab2a1dd8c19f7b
/bhp056/apps/mpepu_summary/classes/medication_summary.py
26500fa436f7d1446aff50d56c57b0adcbf10892
[]
no_license
botswana-harvard/mpepu
5d436638b760150ed76ec223121f5ac7aeee1020
6aa29c91f4fab50782b27e5f55aa33b30aee1dd0
refs/heads/master
2021-01-16T23:15:44.335940
2016-08-12T14:30:17
2016-08-12T14:30:17
65,557,693
0
1
null
null
null
null
UTF-8
Python
false
false
4,310
py
from edc.subject.registration.models import RegisteredSubject from apps.mpepu_infant.models import InfantBirthFeed, InfantStudyDrugInit, InfantBirthArv, InfantStudyDrugItems, InfantFuMed, InfantFuNewMed, InfantArvProphMod class MedicationSummary(object): def __init__(self, **kwargs): self.context = {} ...
[ "fchilisa@bhp.org.bw" ]
fchilisa@bhp.org.bw
83eb54e9b676b8216417795e302ce1fbf7ddc511
dbbb7334b1f04b9be5a46ed30ed67a3d38539ef8
/koto - backend/backend/migrations/0001_initial.py
dc007ae96428759cebe981506835a870e23d5afb
[ "MIT" ]
permissive
SirJAKfromSpace/Koto-FinanceManager
464fed8f4a7d05220ab4381f5795dc0813ff8aa8
bfec6f36d97b5986294e348bdf2c0b229449bb19
refs/heads/master
2022-11-15T10:33:08.469276
2020-07-14T12:46:48
2020-07-14T12:46:48
279,584,661
0
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
# Generated by Django 2.0.7 on 2018-07-29 17:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='googleCredentials', fields=[ ('id', models....
[ "jawad.aziz.khan.jak@gmail.com" ]
jawad.aziz.khan.jak@gmail.com
4d37e886781e168f4fa656b21eb8ce963ed5de67
74dca9366302ba2fbf8cf11d8673ccf15b332d7e
/savitzky_golay.py
c48a6621cc33b579eb3987edd00131cb72086aa3
[ "MIT" ]
permissive
aithc/phenology
f67b26823ca0f4bf0cfc1e9fd176faad99256172
b7dd182c992755d59ce294062e3a7d51c56d8b1e
refs/heads/main
2023-07-29T01:33:28.662971
2021-09-24T03:11:39
2021-09-24T03:11:39
409,524,807
0
1
null
null
null
null
UTF-8
Python
false
false
3,640
py
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt def savitzky_golay(y, window_size, order, deriv=0): r"""Smooth (and optionally differentiate) data with a Savitzky-Golay filter. The Savitzky-Golay filter removes high frequency noise from data. It has the advantage of preserving the ...
[ "noreply@github.com" ]
aithc.noreply@github.com
0e50ff1eadd9ee963b05df54a202d58a99597fc8
a868f5f506df840bdb7119a9106331c19def4978
/cheesepi/storage/__init__.py
b7530eb20c45d95326d608e63bd727487d1682d2
[ "Apache-2.0" ]
permissive
k9ert/cheesepi
850ab48ea7d7093da31dc00840a82120c5299ed6
c6a57552a72c3e6b8875fbc909ecc92f9e53b8de
refs/heads/master
2022-04-05T10:53:30.356100
2016-05-26T07:09:41
2016-05-26T07:09:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
import dao try: import dao_mongo except ImportError as e: print "Missing Mongo python module (and GridFS and bson), use 'pip install pymongo'" print str(e) try: import dao_influx08 except ImportError as e: print "Missing InfluxDB python module, use 'pip install influxdb'" print str(e) try: import dao_influx09...
[ "liamjjmcnamara@gmail.com" ]
liamjjmcnamara@gmail.com
bcfcf45fdf5cb262dd7c05b05cf43a3156cf4f98
3d0edb598db227d0a17c6fdb364e04d71e651fd9
/main.py
2ce42cf43ae8fdf2cfd99e0479a3f4fa58522041
[]
no_license
alexandrocw/Geranda
e27b172750c7f45703b1cca22d353f11f09a0b66
cfa3bfeb98a7704cce04a0645573f29b76ccebc5
refs/heads/master
2023-01-05T05:49:18.592768
2020-11-02T17:15:07
2020-11-02T17:15:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
961
py
from kivy.app import App from kivy.core.window import Window from kivy.uix.boxlayout import BoxLayout import re Window.size = (360, 640) class MainWindow(BoxLayout): def login(self): email = self.ids.login_email.text password = self.ids.login_password.text self.check_email(ema...
[ "noreply@github.com" ]
alexandrocw.noreply@github.com
77ddc556f9f9f4193bdd41ba47683bbbc3b1dbd0
f426fa0f79eb40ffccd87ab4e36d190b5a614e4a
/HttpTrigger/__init__.py
0ca7e8855f54027dce9ca7fb091c36285414358e
[]
no_license
OD1995/VideoIndexerFileSplitter
8386cba2cea4645db109608836f1e65df11bf54c
e0b38aed1f2606ae7e36d7575e938ca4eae70a1e
refs/heads/master
2023-03-15T17:32:00.538745
2021-03-08T12:35:03
2021-03-08T12:35:03
328,656,410
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
import logging from MyFunctions import initial_function import azure.functions as func def main(req: func.HttpRequest) -> func.HttpResponse: logging.info('Python HTTP trigger function processed a request.') name = req.params.get('name') ## Do work result = initial_function( fileURL=, ...
[ "oliverdernie1@googlemail.com" ]
oliverdernie1@googlemail.com
7556655b4ed2df96fee3297369a1ee8ce7d18893
632e8ed762f9f694e8f72d4d65303b5246a11217
/Secondhand/models.py
1bd32ef1b12b7c85761bae9e532dca9ea2e9d1bb
[]
no_license
yiyusheng/django
36537bedf7efd2db3e41809c898cdabe2af6c381
a8a79ef0323cd9234cec83735618940f63dfc2a4
refs/heads/master
2022-11-19T11:36:30.868697
2022-11-06T04:01:50
2022-11-06T04:01:50
97,066,542
0
0
null
null
null
null
UTF-8
Python
false
false
2,874
py
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey has `on_delete` set to the desired behavior. # * Remove `managed = False` lines if ...
[ "yiyusheng.hust@gmail.com" ]
yiyusheng.hust@gmail.com
916544b2804324ec10166fa74ee03b353482ab1a
76c027b2ef7e0e044d51f59fa707f7fcfccf4b6d
/src/code/lib/util/df_ops.py
de955c52ceb35aa766df857ea1833bb696695a45
[]
no_license
dengl11/CS224N-Project-Machine-Reading
74bd211d9aaa196ea7d678c8c23e9c8036f40433
66756a0019b294ec4e2e048473f10115bda45bde
refs/heads/master
2021-09-10T08:00:26.015911
2018-03-22T14:07:25
2018-03-22T14:07:25
117,194,512
2
3
null
null
null
null
UTF-8
Python
false
false
415
py
########################################################### ############### Dataframe Ops ################# ########################################################### from pandas import DataFrame def mat2df(mat, index=None, columns=None): """return a dataframe from a np matrix Args: mat:...
[ "dengl11@stanford.edu" ]
dengl11@stanford.edu
41d4af172a2c1307c87d581829dd428d1cb0d413
16f173135e81215d05ee8f475c13a16e3796e1fa
/Introduction_to_TensorFlow/3.Neural_Networks/Initialization in TensorFlow.py
20fcc200c66e0b25e60ab43478413b929beaa860
[]
no_license
jerry-mkpong/DataCamp
1b53821f1a32b48efdc8465251401721ba75bb56
10445bad35ef11567910ffab6ac70a980555a1b7
refs/heads/master
2022-11-11T03:57:21.923366
2020-06-28T17:36:10
2020-06-28T17:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
''' A good initialization can reduce the amount of time needed to find the global minimum. In this exercise, we will initialize weights and biases for a neural network that will be used to predict credit card default decisions. To build intuition, we will use the low-level, linear algebraic approach, rather than making...
[ "egorfollia@gmail.com" ]
egorfollia@gmail.com
40c5e1b87e8a6311f8675e5c085bf69e41c79246
391f170a8c61e49fe6fcaea1e5942a02341398de
/appointments_scheduler/app/views.py
d252c80c9eb25ce8893693e3404ff4a9cc4a5044
[]
no_license
bhargavaganti/appointments_scheduler
5755639ba4d23fd8c3b4a162e1726214bd19d992
b57ec02827041b504ca2eb38680f953f5350297d
refs/heads/master
2020-04-10T06:56:22.657184
2018-03-05T20:52:32
2018-03-05T20:52:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
from django.shortcuts import render from .models import Appointment, Patient, Procedure from .serializers import AppointmentSerializer, PatientSerializer, ProcedureSerializer from rest_framework import viewsets from rest_framework.response import Response class AppointmentViewSet(viewsets.ModelViewSet): """ API ...
[ "viniciuschan@hotmail.com" ]
viniciuschan@hotmail.com
2737ca89ceb64641f04634f6bd44fc8a8614e924
3d7745367787514fed13de826dc484ed822fe047
/qa/L0_config_search/config_generator.py
3a198ca04f1261d4ad9102ee04c3d9f00dc33de1
[ "Apache-2.0" ]
permissive
ahiroto/model_analyzer
ce21011c732ed98831b2795bdce5e270fa57bfc9
4dbd47c0e71d66d90526d5523570e2c6f717d5bc
refs/heads/main
2023-06-12T13:10:58.066767
2021-06-25T17:52:49
2021-06-25T17:52:49
381,279,764
0
0
Apache-2.0
2021-06-29T07:39:07
2021-06-29T07:39:06
null
UTF-8
Python
false
false
5,306
py
# Copyright (c) 2021, NVIDIA CORPORATION. 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 applic...
[ "noreply@github.com" ]
ahiroto.noreply@github.com
47d8946854e404b39050e195de9d3b4589543e31
cce27413adaf346dba823ae5f02e275f28e149b2
/src/project_name/settings/test.py
f14bd1723faf88b971667e966f009e7fb9938c4a
[]
no_license
viktortat/django-project-template
a98bdf7f6803c466af395f2238ee009012f84d69
d44194d7d62a96b57d58b032255b769ae2c5710d
refs/heads/master
2021-06-14T14:52:03.588615
2017-03-08T16:39:39
2017-03-08T16:39:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
# coding: utf-8 import dj_database_url from {{ project_name }}.settings.base import * DEBUG = True SECRET_KEY = 'test_key' DATABASES = { 'default': dj_database_url.parse(e.get('DJANGO_DB')), } CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', } } EMAIL_BACKEND ...
[ "n10101010@gmail.com" ]
n10101010@gmail.com
22caa0b55a0e30eb1f51ce2482e0386226a9a691
0bed02f5b5f4747827e37ee795a3da065b640136
/argo/workflows/client/models/v1alpha1_template_ref.py
3f97a48eac30bfac7baebd5fb77404424581595d
[ "Apache-2.0", "MIT" ]
permissive
hadim/argo-client-python
eb5c91807ccf0caf14c15fe809b256f15a6cfcd3
4264e063e31865c55418e0b242dd21ba6d19ed64
refs/heads/master
2022-07-31T09:43:41.814450
2020-02-21T09:11:30
2020-02-21T09:11:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,216
py
# coding: utf-8 """ Argo Python client for Argo Workflows # noqa: E501 OpenAPI spec version: 2.5.0-rc10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class V1alpha1TemplateRef(object): """NOTE: This class is auto g...
[ "macermak@redhat.com" ]
macermak@redhat.com
08d69aed5a55722c5d920579dbf378c7c403aab3
5419873e177757f9e6c0e2c474f95e4294701d77
/numpy_w2v.py
bd78f6a718ad1cfa2c3c6894456e85d927c4af92
[]
no_license
Alucardmini/aug_code
db196afad42e92c423b68a08a6d206f61a32e18c
6c2ca87083c047e4aa1f5889cc64900f1e9c38a1
refs/heads/master
2023-07-10T12:21:00.321690
2021-08-22T07:06:27
2021-08-22T07:06:27
305,087,850
0
0
null
null
null
null
UTF-8
Python
false
false
4,704
py
# -*- coding:utf-8 -*- # @version: 1.0 # @author: wuxikun # @date: '2020/8/16 4:04 PM' from collections import defaultdict import numpy as np text = "natural language processing and machine laarning is fun and exciting" corpus = [[word.lower() for word in text.split()]] settings = { 'window_size': 2, 'n': 10,...
[ "xikun.wu@ushow.media" ]
xikun.wu@ushow.media
b23c8e71124c91224c393e431c3503c0fbc2d7a1
e07ba3b985cf6d3c63bbd6c3b01468d597fd2d80
/python-project-euler-100/p024.py
3d9d0b437dec3d5cfda98dc7ceaa41ab9921b637
[ "Apache-2.0" ]
permissive
TalaatHarb/project-euler-100
093e62ff35671b5523e25d6eeea29dd3dd337bed
e474e08ec1a0a4aabf1c4c6cacf55b4e021fa847
refs/heads/develop
2023-07-19T21:56:19.846435
2022-08-04T23:08:28
2022-08-04T23:08:28
233,001,543
2
0
Apache-2.0
2022-08-03T16:20:20
2020-01-10T08:30:21
Java
UTF-8
Python
false
false
821
py
from math import trunc from Solution import Solution class P024(Solution): # Factoradic method def string_permutation(self, n, str): s = [] result = "" str = list(str) n = n - 1 for i in range(1, len(str) + 1): s.append(n % i) n = int(n ...
[ "mohamed.harb@cegedim.com" ]
mohamed.harb@cegedim.com
ad1091aea23925c648dd23ae33ce6111e0c0e8e5
b51434d9ceca0a18a9ea5ab638bfb3204985cf7e
/selflib/azrmath.py
84cf0759f11faeb54ae8a990fce643dc7eda06bd
[]
no_license
anqiaoqiao/AZR_Pushing_Toolbox
fcdc12c0be3e6217a18f6e37004d3174de93e6b8
04bd1ba72a4f5eece71c1ea35b3e68fddfdf1920
refs/heads/main
2023-03-18T07:03:53.608711
2021-03-13T02:50:29
2021-03-13T02:50:29
347,255,533
0
0
null
null
null
null
UTF-8
Python
false
false
8,658
py
def ship_xp(level, isnormal): # desribe: input ship level, output ship total xp. # ship XP function for azur lane JP/EN version # convert level to XP <1-120> # unnormal ship: DR and UR exp = 0 if isnormal: if 1 <= level <= 40: an = 100 * (level - 1) exp = int(0.5 ...
[ "ryuuseiku.home@gmail.com" ]
ryuuseiku.home@gmail.com