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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5c89f98c92406fb350ff22b561bd83d81edece1 | 0ff17ee041b29edd12dbf57b26fb9a63aa710f27 | /helpers/analytics.py | a2a7b96a23160d8decc745b81b6b264bf6665c0f | [] | no_license | jorgec/project_linecare | b7537557970cdbeb315d93efae6aadbecc5e9e10 | 65150e69c447605dc3958505c02dad1a59bbb6db | refs/heads/master | 2020-03-28T20:43:23.225165 | 2019-03-07T06:14:33 | 2019-03-07T06:14:33 | 149,096,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | from helpers.colors import MColors
from locations.models import Country
from profiles.models import Gender
from visits.models import VisitDay
def split_by_genders(visit_days: VisitDay) -> list:
"""
Split VisitDays queryset by gender
"""
if not visit_days:
return []
genders = Gender.objec... | [
"jorge.cosgayon@gmail.com"
] | jorge.cosgayon@gmail.com |
9f83a714b374ee275db19b67cb608640a88d4d9b | f548508a97bc41a0e7262700eae5c17b34219787 | /ex23.py | 48dbde423778ffb36e1e1744d576c13897e67d2a | [
"MIT"
] | permissive | YadanarWin/python-exercise | 8079b343e7f4e0e9bd5154d8b63cb464e2c75bcf | 6074890fa946b66cc88cf537f07e088cd16be416 | refs/heads/master | 2020-03-19T23:58:38.149402 | 2018-06-26T08:51:03 | 2018-06-26T08:51:03 | 136,440,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import sys
script, input_encoding, error = sys.argv
def main(language_file, encoding, errors):
line = language_file.readline()
if line:
print_line(line, encoding,errors)
return main(language_file, encoding, errors)
def print_line(line, encoding, errors):
next_lang = line.strip()
raw_b... | [
"yadanarw65@gmail.com"
] | yadanarw65@gmail.com |
2eff352a1abccec68053b7c8623141ac0ac7ae17 | 6083df5235f76ee5624f272c512b100855e2294c | /appwrite/services/locale.py | fe3ad5e988b84b490c1ce091f58c7a0ef70db93a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | AdamMusa/sdk-for-python | ff1c81bfe963a7079855ba3907264e2b326c7982 | 41934736d874e39a7ca69a1cf8732803eecc4102 | refs/heads/master | 2023-03-11T16:08:46.138018 | 2021-02-25T22:54:14 | 2021-02-25T22:54:14 | 350,777,704 | 1 | 0 | BSD-3-Clause | 2021-03-23T16:14:24 | 2021-03-23T16:14:23 | null | UTF-8 | Python | false | false | 1,766 | py | from ..service import Service
class Locale(Service):
def __init__(self, client):
super(Locale, self).__init__(client)
def get(self):
"""Get User Locale"""
params = {}
path = '/locale'
return self.client.call('get', path, {
'content-type': 'application/js... | [
"eldad.fux@gmail.com"
] | eldad.fux@gmail.com |
4112207165b9dc04877fa7205d733fd533192fb5 | f2737e4b118789d895412b4047b510a10513e057 | /hotelapp/miapp/urls.py | cae27d9639dcfbf353add6e6d6953053fc3a1106 | [] | no_license | h-yuna282/pagina2 | 72c9471f12a1bc09242e009ea3b58b315d5d4d7c | 194119bfd1295ccea06003ce46f74d1db125bfa1 | refs/heads/master | 2021-06-17T11:10:13.428503 | 2019-09-18T22:49:54 | 2019-09-18T22:49:54 | 209,416,741 | 0 | 0 | null | 2021-06-10T22:08:40 | 2019-09-18T22:47:14 | HTML | UTF-8 | Python | false | false | 689 | py | from django.urls import path
from .views import *
urlpatterns = [
path("",index, name = "index"),
path("habitacion/", habitacionList.as_view(), name = "Listarhabitacion"),
path('habitacion/nuevo/', habitacionCreate.as_view(), name = 'nuevohabitacion'),
path('habitacion/editar/<int:pk>', habitacionUpda... | [
"noreply@github.com"
] | h-yuna282.noreply@github.com |
7f77b75bf5cd3a4d414dd17089d6242a62f4690a | 8100f7efb10aa7234d2a41fb7b6389382d2c6ab6 | /stddev.py | defd5766a5a19628684bae0177d3ada09a4100d8 | [] | no_license | Vihan226/Project105 | a66f9400e18e50d4c119b61e2c44802487e93e7b | 0959a49085ca9c1f878fec3d7befca674c503fec | refs/heads/main | 2023-07-30T17:31:16.910618 | 2021-09-24T00:02:44 | 2021-09-24T00:02:44 | 409,777,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | import math
#list of elements to calculate mean
import csv
with open("data.csv",newline='') as f:
reader=csv.reader(f)
file_data=list(reader)
data=file_data[0]
#mean find
def mean(data):
n=len(data)
total=0
for x in data:
total += int(x)
mean=total/n
return me... | [
"noreply@github.com"
] | Vihan226.noreply@github.com |
b5bb250a6f9f72b825f71ab4fcf46a36c62ae1a8 | 663d6ae74e030b8283c079ac27a1511b0e513c32 | /G3-1/Project/tracking.py | 76fe203da7d5fe50e9ff2d154298ccc58425cbf7 | [] | no_license | Max-Hsu/Homework-NSYSU | c08de1f1e69c4e1524d3c5312b6e5722b145676f | 2a1c72c8121c52f46246d4644725d62b28c4443b | refs/heads/main | 2023-01-29T16:27:31.207165 | 2020-12-16T13:24:56 | 2020-12-16T13:24:56 | 314,138,422 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | import cv2
import sys
major_ver, minor_ver, subminor_ver = ['4', '3', '0']
if __name__ == '__main__' :
# Set up tracker.
# Instead of MIL, you can also use
tracker_types = ['BOOSTING', 'MIL','KCF', 'TLD', 'MEDIANFLOW', 'GOTURN', 'MOSSE', 'CSRT']
tracker_type = tracker_types[2]
if int(minor_ver) ... | [
"hsuevaair3317@gmail.com"
] | hsuevaair3317@gmail.com |
a401885e9d3ece9d87b0ca7cb9245ca832437610 | 737d41cac129ed54e8bfe9e7c1a1f4cb9b89f428 | /recipes/migrations/0014_note_shared.py | b89ab9664763e82e7da6ce70aa30ea609732483b | [] | no_license | kar288/carmelaacevedo | c7e3b86fbc51bc099e8e1660d23089e99be6b4e7 | c318dd5ad2d873dc4e7a350f69fcf4453b3ed579 | refs/heads/master | 2021-08-28T17:51:22.471988 | 2018-11-12T08:46:46 | 2018-11-12T08:46:46 | 25,726,966 | 0 | 0 | null | 2021-08-10T19:07:18 | 2014-10-25T09:52:38 | HTML | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0013_month'),
]
operations = [
migrations.AddField(
model_name='note',
name='shared',
... | [
"kar288@gmail.com"
] | kar288@gmail.com |
f6563f97117cf137cb095e2ad4d9ee508356240f | 16606ea76668aa141813cb96e4360d0113812781 | /model.py | 14df777e709796b0563e33284d2ed07914ed317d | [] | no_license | Lap1n/inf8225 | e9a051ec7717ac8921b655a00e184e888b71cd3d | 55f0a6c038242861fb341e6eecadf246513025d8 | refs/heads/master | 2020-03-10T23:58:19.568995 | 2018-08-29T02:31:58 | 2018-08-29T02:31:58 | 129,652,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,289 | py | # Le projet est inspiré de l'implémentation pytorch de A2c de ikostrikov : https://github.com/ikostrikov/pytorch-a2c-ppo-acktr
import torch
from torch import nn
import numpy as np
from distributions import get_distribution
from utils import orthogonal
class Policy(nn.Module):
def __init__(self):
supe... | [
"philippewlelievre@gmail.com"
] | philippewlelievre@gmail.com |
a2db47963339e2f7560c5299646a057c2c1c8293 | 8b82875f184038d542413ebeabb46b4bfb17a40a | /dataset/TestSet.py | 8029da21a19be72db0b535cb5ffd36ca085e54d3 | [] | no_license | bobo0810/JittorDogsClass | 5d1ec046adb7f66cc8fb26e7d8f12331aab3bc4b | 93ae414e19eab18338ee4397042152e0a83ade1e | refs/heads/main | 2023-04-13T23:55:11.321066 | 2021-04-26T08:11:11 | 2021-04-26T08:11:11 | 361,667,172 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | import cv2
import socket
import yaml
import os
from jittor import transform
from jittor.dataset import Dataset
import numpy as np
import jittor as jt
from PIL import Image
cur_path = os.path.abspath(os.path.dirname(__file__))
def default_loader(path):
try:
img = cv2.imread(path)
except:
with ope... | [
"1055271769@qq.com"
] | 1055271769@qq.com |
56625f6773cb4d925e37522c5d9875d8e0ba16c6 | 9e65e409106aad6339424a1afac3e75e15b4f488 | /0x11-python-network_1/1-hbtn_header.py | fef81c75af7dc5ea99a55847d66c9c42dc7d9e71 | [] | no_license | jfbm74/holbertonschool-higher_level_programming | 63fe8e35c94454896324791585fe7b8e01e1c67d | 609f18ef7a479fb5dcf1825333df542fc99cec7b | refs/heads/master | 2023-03-05T20:44:05.700354 | 2021-02-10T00:21:54 | 2021-02-10T00:21:54 | 259,452,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/python3
"""
A python script that sends a request to the URL and displays the
value of the X-Request-Id variable found in the header of the response
"""
import urllib.request
import sys
if __name__ == '__main__':
url = sys.argv[1]
with urllib.request.urlopen(url) as response:
html = response... | [
"jfbm74@gmail.com"
] | jfbm74@gmail.com |
6af6f72a651f6e9d27302b33a6214a86ca6bea5d | 0bdffcf8f11f895dd2861e6508805be7143c180c | /IrisData/ExampleIris.py | 3b969b6c89b978c7e30085232a52ce7d70585601 | [] | no_license | furkanaygur/Python-Machine-Learning | 872684a8b0bc4fbdd52d352c2b2b55ad10839c0d | e77f13cdb324c6cd5c6d6026960abf4ae2571781 | refs/heads/main | 2023-01-14T13:24:33.517176 | 2020-11-17T23:06:28 | 2020-11-17T23:06:28 | 306,900,959 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | # -*- coding: utf-8 -*-
"""
@author: furkan
"""
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import confusion_matrix
from sklearn.neighbors import KNeighborsClassifier
... | [
"32839776+furkanaygur@users.noreply.github.com"
] | 32839776+furkanaygur@users.noreply.github.com |
c0cc554acfda74cb9fa2bfbc48b79686bddee449 | 8ef6dbdd3791dd7fbe1320483a22e0540c54359b | /Core Python/Dictionary/20NestedForLoop.py | 32336e6f39860fa4e9b0b186bf2bcb36c81b0f78 | [] | no_license | kundan4U/Python | 8095eecba088910d2068a6375c907d47f2bb9c95 | 6b3fdbe66edb52e9f612352abb9c6563547b6297 | refs/heads/main | 2023-06-24T06:29:43.770282 | 2021-07-21T18:40:11 | 2021-07-21T18:40:11 | 388,213,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py |
a = {'course':'python','fees':15000,1:{'course':'javaScript','fees':100000}}
for i in a:
if type(a[i]) is dict:
for k in a[i]:
print(k,"=",a[i][k])
else:
print(i,"=",a[i]) | [
"kc946605@gmail.com"
] | kc946605@gmail.com |
45827ff01bb45130dc4d44ea80c943af675d7a46 | 98e4dc41e3d994dfb55a2553c79d1b61590ecca6 | /LeetCode/Medium/Coin Change/revise/sol.py | c9a68902719fc47186e209a0965ca97a58528da1 | [] | no_license | krohak/Project_Euler | b753c4f3bbf26a5eff3203e27482599d1e089fc6 | 1d8a2326543d69457f1971af9435b3e93ab32f52 | refs/heads/master | 2022-09-02T10:48:59.472111 | 2022-08-18T11:11:16 | 2022-08-18T11:11:16 | 111,204,162 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | def coins_dp(coins, amount):
if not amount:
return 0
amounts_list = [ float("inf") for i in range(amount+1) ]
for coin in coins:
if coin <= amount:
amounts_list[coin] = 1
print(amounts_list)
for (target, _) in enumerate(amounts_list):
min_coins = floa... | [
"rohaksinghal14@gmail.com"
] | rohaksinghal14@gmail.com |
08a1faec57667b59fb6c06141e0e3afdb950d9e9 | bbc2a5793c153beda223f86265622a5b21e528df | /models/ssd_resnet_50.py | c98951129cd8a2140e7d90fefa36e240b1f902aa | [] | no_license | Jadecity/tf_ssd | eb12b0acd35487b2981357e93c4135e11b1b2e08 | 15407257e03bfcf05b5f06149b1be7d1c6208126 | refs/heads/master | 2020-03-20T01:05:49.540273 | 2018-07-03T18:48:11 | 2018-07-03T18:48:11 | 137,066,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,835 | py | """
Define ssd net using resnet_50 as backbone network.
"""
import tensorflow as tf
from tensorflow.contrib import slim
from nets import resnet_v2
from utils import anchorsUtil
from utils import confUtil, lossUtil
import numpy as np
def multibox_predict(input_layer, class_num, layer_name, weight_decay):
"""
Compu... | [
"lvhaoexp@163.com"
] | lvhaoexp@163.com |
d511bc9ee5811c36bb5e897425c3ed1747e38ab8 | 87d026185cf19ad573a08a683b9afa4612314cc0 | /Kmeans2.py | 9a0e30aef6a27994e59245901a1f23f6806a2b58 | [] | no_license | rinchinov/epam_h | 11488d8cd391d7c5ee20cff7b60e42308181a2da | 834c59beea61902aaf41bd79dfb3e4a65f83eb4b | refs/heads/master | 2021-08-23T04:29:37.079361 | 2017-12-03T08:23:23 | 2017-12-03T08:23:23 | 112,906,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | from sklearn.cluster import KMeans
import numpy as np
import pickle
import folium
import pandas as pd
from branca.colormap import linear
heat_map_image = pickle.load(open("dump/heat_map_image{}".format("[(59900,30120)-(59830,30220)]"), "rb"))
model = np.ones((10000, 1))
model = np.reshape(heat_map_image["crime"], (... | [
"roman1001001@gmail.com"
] | roman1001001@gmail.com |
a8e134fe12a5789674d0793f3cc0edb3c186883d | 558ed1e8e4519ac1d4aa0e37619cf35c7f860a9d | /TF/tfDemo4.py | a81f60774fab4505b8a25614286088cbc89d2de3 | [] | no_license | xiechuanj/AIDemo | d92ccde83f35221b7a29df28a8f2cbcbecf5f883 | ac946b0cdd81da07a75a5f65fffb21098a49ec98 | refs/heads/master | 2020-04-28T04:03:40.998833 | 2019-03-11T09:10:23 | 2019-03-11T09:10:23 | 174,963,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
input1 = tf.placeholder(tf.float32)
input2 = tf.placeholder(tf.float32)
output = tf.multiply(input1, input2)
with tf.Session() as sess:
print(sess.run(output, feed_dict={input1:[7.], input2:[2.]})) | [
"12121212@qq.com"
] | 12121212@qq.com |
a27cd5d349b420d584557c9f7302902910b78b9f | 9187d377034825b61d4178076142bddf81478fc2 | /marlo/envs/MobchaseTrain1/main.py | 531a363e64fc60ac590e1e22d847f93565c066aa | [
"MIT"
] | permissive | AndKram/marLo | 63da777a4d747499d39cd02a6f13966a6a843df9 | 7873bde58f7fb0848ef90e62133a34254b763b72 | refs/heads/master | 2021-07-23T20:43:28.834131 | 2018-11-05T16:01:20 | 2018-11-05T16:01:20 | 143,423,165 | 2 | 0 | MIT | 2018-08-03T12:12:22 | 2018-08-03T12:12:21 | null | UTF-8 | Python | false | false | 2,696 | py | import marlo
from marlo import MarloEnvBuilderBase
from marlo import MalmoPython
import os
from pathlib import Path
class MarloEnvBuilder(MarloEnvBuilderBase):
"""
# Mob Chase
## Overview of the game
Collaborative. Two or more Minecraft agents and a mob are wandering a small meadow. The agents have two choices:... | [
"v-andkra@microsoft.com"
] | v-andkra@microsoft.com |
d2998ed1e82df3495b5046b8fc9d5372a205c38e | 7009b25f80c75532889053d82702df876a6f862c | /pi_calculation.py | 0d5fe6f7c03a9d64f7d2cedb54a994a1463608e9 | [] | no_license | docent09/comp_calc_intro | b22ba795fe63e86e7475aa9fe474e3a9aba5e7a6 | 47b3bc9168f4609289788e1487f829539a14d883 | refs/heads/main | 2023-08-28T04:55:06.455004 | 2021-10-25T14:14:02 | 2021-10-25T14:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,387 | py | # Сравнение различных способов вычисления числа ПИ
def leibniz(n):
"""
Вычисление числа ПИ с помощью ряда Лейбница
:param n: число слагаемых ряда
:return: найденное число ПИ
"""
p = 0 # приближение числа пи
for i in range(n):
p += (-1)**i / (2*i + 1)
return 4*p
def... | [
"noreply@github.com"
] | docent09.noreply@github.com |
aa70d83fee4059ce3133d2e612537f106b980bd1 | b73dd400937d30b29a9c48bdbd3e81c7a035d076 | /Django/Skole side/Skole_side/skoleside/articles/migrations/0004_auto_20151125_1723.py | bb26bfae499d539377ccc7d9bdc47f4c12e50b53 | [] | no_license | Exodus111/Projects | 772ffbc94f4396b8afded1b6b5095f4b084fdd7a | 732853897ae0048909efba7b57ea456e6aaf9e10 | refs/heads/master | 2020-05-21T19:26:03.972178 | 2017-03-26T10:04:35 | 2017-03-26T10:04:35 | 61,034,978 | 1 | 0 | null | 2017-03-26T10:04:36 | 2016-06-13T12:36:00 | Rust | UTF-8 | Python | false | false | 717 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0003_auto_20151124_1732'),
]
operations = [
migrations.AlterField(
model_name='article',
... | [
"aurelioxxx@hotmail.com"
] | aurelioxxx@hotmail.com |
f725dae2d7b8a27817dcb5158d9a35615d312572 | 2469e5c76c0f70ac64b0f333ad20ccc84a760522 | /scripts/cluster_scripts/run_ppo_cluster.py | fa9da6abf7277e43d203ee36542e44b284e738ee | [
"MIT"
] | permissive | facebookresearch/nocturne | 8454c10643ea4ff063e10d5f83a5a0d2d90ad1c2 | ae0a4e361457caf6b7e397675cc86f46161405ed | refs/heads/main | 2023-05-24T02:25:48.963308 | 2022-10-15T19:19:29 | 2022-10-15T19:19:29 | 503,843,020 | 216 | 21 | MIT | 2023-04-22T16:46:06 | 2022-06-15T16:28:46 | Python | UTF-8 | Python | false | false | 3,396 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Run on-policy PPO experiments on a SLURM cluster."""
import argparse
import os
import pathlib
import shutil
from dateti... | [
"vinitsky.eugene@gmail.com"
] | vinitsky.eugene@gmail.com |
94744bc7cc6b3ef10599997cd0a35a5ffca0b434 | 8575ccf9e7e6b2257ec7aee1539c91afa90d65a5 | /base/_06_cv2/_11_face_detector/face_mix.py | 45c722c2f026863e7cef65767af55857db193c2c | [] | no_license | oaifaye/pyfirst | 86b8765751175f0be0fe3f95850ff018eacf51d3 | e8661b5adf53afd47fa5cb6f01cd76535d8fc8b9 | refs/heads/master | 2021-12-12T00:33:39.523597 | 2021-08-13T08:32:10 | 2021-08-13T08:32:10 | 160,138,715 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | # coding=utf-8
#================================================================
#
# File name : face_mix.py
# Author : Faye
# Created date: 2021/2/2 17:33
# Description : 把一张脸挪到另外一张脸,只是平移,没有任何变换
#
#================================================================
import dlib
import cv2
import numpy as ... | [
"18622819565"
] | 18622819565 |
d620a4cbac5da8341002a54b62cf0bc1168fa51b | c09ee8b57cd46a7fa5bc62fc09af74dbfde515b6 | /src/generator/scripts/creator.py | 3cb2776786e775899373550f1b37ed8c53cad3d5 | [] | no_license | zemiret/willpowercode | 00816808e221ef3bc56add657e10b18bbe8247ae | f04cf54b78c9d63c92660b87777d0820a8c62583 | refs/heads/master | 2020-03-27T05:14:04.086630 | 2019-07-02T08:46:10 | 2019-07-02T08:46:10 | 146,003,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from utils.common import tmp_file_path
def create_script(path, *args, **kwargs):
"""
Uses path as a blueprint to interpolate the script using python3 string 'format' method.
Returns the path to the newly created script.
:param path: string path to original script
:return: str: string path to gene... | [
"antos.mleczko@gmail.com"
] | antos.mleczko@gmail.com |
96e97d2b437e68f70ef4b8b15b58df4d30711200 | d168927a848a55db51897ccfafe6386330673f1e | /instance/tika/conf.py | 4a801ba1f8dbdacf8532e4915da54344135b1962 | [] | no_license | fish2000/tessar | 5b63245ff529d2ae7adca5ce322af571c202334e | f750658e0b1539285fae26bdbab8bc654d3dcbe9 | refs/heads/master | 2021-01-10T11:29:14.154593 | 2016-01-19T17:39:14 | 2016-01-19T17:39:14 | 49,967,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py |
from django.conf import settings
from appconf import AppConf
from os import listdir
from os.path import join
HTML_THEMES = filter(lambda f: f.endswith('css'), listdir(join(
settings.PROJECT_ROOT,
'var', 'web', 'static', 'css', 'prism-themes')))
class TikaAppConf(AppConf):
# What the Tika app s... | [
"fish2000@gmail.com"
] | fish2000@gmail.com |
058a6c728d72285bb1e6ad85a56ed83d29c3e00f | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/psclient/config.py | 29b79c68d24b87d79139cf2a73efdcbe7dd9159c | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,238 | py | import sys
import os
import os.path
from ConfigParser import ConfigParser, NoOptionError
import logging
_logger = logging.getLogger(__name__)
# Maps parameters to environment variable names
env_var_map = {
'manager_endpoint': 'PS_MANAGER_ENDPOINT',
'query_endpoint': 'PS_QUERY_ENDPOINT',
'admin_key': 'PS_... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
b10e6de4e4f2b96f2c04acb970661cf77249db04 | 34bc0a3cdcdc2e2da6da43451a1e739c52521250 | /Dataset/pdf2.py | bb84fb3bf403d875c7e328922dd6c126d9e3505f | [] | no_license | sreenathmadyastha/ExploringKafka | a63cd5672f08dc69950954186186c44f799eeb8c | 32c750b5d357d4d5d58001ec99d336ac808c0a2c | refs/heads/master | 2021-09-03T13:41:52.289577 | 2018-01-09T13:34:23 | 2018-01-09T13:34:23 | 116,818,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from PyPDF2 import PdfFileReader
def getTextPDF (pdfFileName, password=''):
pdf_file = open(pdfFileName, 'rb')
read_pdf = PdfFileReader(pdf_file)
if password != '':
read_pdf.decrypt(password)
text = []
for i in range(-1,read_pdf.getNumPages()-1):
text.append(read_pdf.getPage(i).extractText())
return '... | [
"smadyastha@localhost.localdomain"
] | smadyastha@localhost.localdomain |
d69af28215dff44d575bf284d78c0726e9552ddb | 96915863d429d59b24a954c927df337c9d6b86aa | /coins.py | 31790e8b0b8015dac54cfb1ee3e8325269fb53b9 | [] | no_license | knackojacko/coding-interview-problems | c8680f26d602cca9464fc00b16915743e7022bb2 | 88e31002a118754699ca30e239b9e43c6d55f69d | refs/heads/master | 2021-06-02T11:27:16.358075 | 2016-06-14T07:21:50 | 2016-06-14T07:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #Given an in nite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), write code to calculate the number of ways of representing n cents.
coins = (1,5,10,25)
def getChange(amount, output=""):
suitable = [c for c in coins if c <= amount]
n = len(suitable)
if n ==0:
pr... | [
"k.kliavin@gmail.com"
] | k.kliavin@gmail.com |
5bbe770a02764292c5309ea8a9de0ed3abc8a37d | 4e06cb82884cac7498e804ed3749e4f2391fcdfe | /examples/classes.py | 1d7dc4b6b672e91d30aecc14ea2c13772f7c3855 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brazil-data-cube/lccs.py | 6acd6baa8792ea12f5ce3030e777f06a35591c68 | 2f9b2bccf90ecadb76d56e11293108fdd19ee21b | refs/heads/master | 2022-10-16T02:44:32.179529 | 2022-02-07T12:28:40 | 2022-02-07T12:28:40 | 223,473,870 | 6 | 5 | MIT | 2022-09-29T19:37:16 | 2019-11-22T19:37:25 | Python | UTF-8 | Python | false | false | 740 | py | #
# This file is part of Python Client Library for the LCCS-WS.
# Copyright (C) 2020 INPE.
#
# Python Client Library for the LCCS-WS is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""LCCS Python Client examples."""
from lccs import ... | [
"fabiana_zioti@hotmail.com"
] | fabiana_zioti@hotmail.com |
b8a7257f2ebe4a4ceb16eab2a567b6c2a0d4a17d | c790223df1e9adb18584af39fa0898188cddad9b | /places/urls.py | aee3ad667841d3513500c43bcb5540a1cd7e6394 | [] | no_license | Jash271/Django-Project-travel- | b3760195a01472f199736d000c07e3926b8bb23c | 10b66807bf05f4b73c9f82f30972cb1f13ce4778 | refs/heads/master | 2022-01-25T23:09:22.853369 | 2019-07-19T16:46:13 | 2019-07-19T16:46:13 | 197,806,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.urls import include, path
from . import views
urlpatterns = [
path("place",views.place,name='place'),
path("destination",views.det,name='det'),
path("user",views.register,name='register'),
path("book",views.book,name='book'),
]
| [
"shahjash271@gmail.com"
] | shahjash271@gmail.com |
18f8fb86dfab857e7db5e57f28bcb07612ee5316 | 0747c4a49150f82196ddcb873eac930b5ab4c96b | /unit5_assignment_01.py | 4e1cac345b1c52f83f9065c457443c9de8c57aab | [] | no_license | umesh-thatikonda/MissionRnD_python-course | 8a64af855f44230f5152b98802c77bb970df37fa | 1f7c46119ccd3aa7f43456b5b43576182f0bab0f | refs/heads/master | 2022-01-08T12:08:12.613980 | 2022-01-06T19:21:18 | 2022-01-06T19:21:18 | 148,032,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | __author__ = 'Kalyan'
notes = '''
Though it might appear as if the given tests should be able to catch all logical bugs
in de_dup_and_sort, that is not the
case as the code below shows.
So be clear that some blackbox tests alone are no substitute for
reasoning/taking care of the correctness yourself.
Now... | [
"noreply@github.com"
] | umesh-thatikonda.noreply@github.com |
4869969a8b48a540a0b3c6e72c024e050010abf1 | 9facf141ab7c5877b84511438a540880fba78dde | /2-logistic-liblinear.py | 96708c330f4d626dc09aba1c4b30a64e17f5db50 | [
"MIT"
] | permissive | Sothy2018/sothy_2019 | ab6403cfb211d795ebe12ed060f15635b44fe7f4 | 49905703fa2c31702a99e0da2dcd71f7da151e62 | refs/heads/master | 2020-11-27T07:46:06.183662 | 2019-12-21T01:58:23 | 2019-12-21T01:58:23 | 229,359,336 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import numpy as np
import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn import metrics
d_train = pd.read_csv("train-0.1m.csv")
d_test = pd.read_csv("test.csv")
d_train_test = d_train.append(d_test)
vars_categ = ["Month","DayofMonth","DayOfWeek","UniqueCarrier", "Origin", "Dest"]
vars_n... | [
"noreply@github.com"
] | Sothy2018.noreply@github.com |
ef88cca81e858ff25396a88215c409057d00958d | a1de861f5522052b23a293d0657698f951bbb1c2 | /models/album.py | a709700a6a17041c95261b937cc3c7b022cb6004 | [] | no_license | JnnyRdng/music_collection | 85932240405d6144f7bb99149071824678cc04d1 | 356ebeac2c927a1f86205eef4b95a90dcc7588cd | refs/heads/master | 2022-12-03T01:11:55.160194 | 2020-08-04T14:34:43 | 2020-08-04T14:34:43 | 285,006,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | class Album:
def __init__(self, title, genre, artist=None, id=None):
self.title = title
self.genre = genre
self.artist = artist
self.id = id
| [
"jonnyreading@gmail.com"
] | jonnyreading@gmail.com |
57f37f19ad326a3af0fe1151ccb68e4d5d2a0f1f | cfe6a89a4ed1cb6ed0a9eeb640c3ef0fd36cfd2e | /Examples/number_occur_substr_in_str.py | 25ec0157eb6319db99a978d8daab707a733f2d6f | [] | no_license | ylana-mogylova/Python | 557083715f77ca722ece8be9a9dd339f6d8a4064 | a1e2106c0c230528342121ca06a7822b0ff4f008 | refs/heads/master | 2021-01-19T09:34:57.223445 | 2018-04-20T14:51:06 | 2018-04-20T14:51:06 | 87,765,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | """
Write a function to count how many times the substring appears in the larger String.
"""
large_string = "abcpotqwrpot"
substring = "pot"
def count_substr_occur(input_string, input_substring):
counter = 0
start_index = 0
flag = True
while flag:
find_index = input_string.fi... | [
"Uliana_Mogylova@epam.com"
] | Uliana_Mogylova@epam.com |
bbbc8e227676d9a52ed5800704f825c97dbe2369 | 397793669bc76f8ee1722e5ce00d9b2c3c216582 | /PyHFS/src/constants.py | b2999032a68b8377951dd07a4836b681695e7715 | [] | no_license | ecurtin2/HF-Stability | c301f19fc6d9ed0bbb2909f38fb6b70cd6e23e12 | 84f01c95a8f0acbe01becbf379d891bea2178b84 | refs/heads/master | 2022-04-18T13:42:39.172025 | 2020-03-02T22:35:28 | 2020-03-02T22:35:28 | 62,247,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | """ Constants - Common parameters and physical constants
"""
SMALL_NUMBER = 1e-10 | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
aeb945d3edfed9d35c6e40743958b2cff05b6438 | 349f8e1d93a2b749f0dbab0e6a2912337d5dc8b4 | /luffy/apps/course/page.py | 89cd612307654671b29362325d1b74bfb3eaa8e4 | [] | no_license | zoyof/zyf | 85e14cdda54a70598496f61a1879009db6196851 | 56047dddefe0eb1da7bf031e3970bde188812288 | refs/heads/main | 2023-08-20T12:01:08.776820 | 2021-10-15T11:59:17 | 2021-10-15T11:59:17 | 417,122,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from rest_framework.pagination import PageNumberPagination
class CommonPageNumberPagination(PageNumberPagination):
page_size = 3
page_query_param = 'page'
page_size_query_param = 'size'
max_page_size = 5
| [
"9781610+zoyoo@user.noreply.gitee.com"
] | 9781610+zoyoo@user.noreply.gitee.com |
5fc1462ab79feb2e662b2ffe819ce1f064dd374c | 95d9663521bbfbabc2583f89b1526016105c9ce1 | /myweb/myweb1/migrations/0015_auto_20201027_1921.py | 6bcab2312d516243417ae2e322ef3a6933ab90fa | [] | no_license | msm123456/myweb1 | 675680d3466ff5ae34021376bd3a0a69dfa7ee7e | 5f7baf067e3b95efd0edb74412913350e3ccc392 | refs/heads/main | 2023-01-04T03:56:12.813601 | 2020-10-29T21:49:01 | 2020-10-29T21:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # Generated by Django 3.1.1 on 2020-10-27 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myweb1', '0014_auto_20201027_1900'),
]
operations = [
migrations.AddField(
model_name='resume',
name='cv',
... | [
"mohammad1sadra1m@gmail.com"
] | mohammad1sadra1m@gmail.com |
6a6c07a1bba5afd922c7765f794cf13de5e72473 | 529987c6798f3d60f74d37f13e4857f9571e8170 | /planning/withNationAndInternational.py | 12ccdce2f3066a474938e7cf27bd8619673a67d7 | [] | no_license | weAreAllGod/AirPort1 | be3e32372274103d2811ac332112c26f82cda1bd | a675face0918f5e30d2171051b1ad14f50090b79 | refs/heads/master | 2022-12-14T17:31:23.427369 | 2019-12-15T09:22:03 | 2019-12-15T09:22:03 | 226,262,534 | 0 | 0 | null | 2022-12-10T11:54:28 | 2019-12-06T06:35:10 | Python | UTF-8 | Python | false | false | 11,031 | py | import numpy as np
from pandas.plotting import register_matplotlib_converters
import matplotlib.pyplot as plt
register_matplotlib_converters()
from tools import funcForColumn
from tools.cplexFunc import cplexSoverMain,cplexForSecondPro
from tools.dataBase import myDataBase
import pandas as pd
import datetime
from tool... | [
"2422657868@qq.com"
] | 2422657868@qq.com |
a20d6127d4b4f1875eaca1cfbecd5e9a7d5933d4 | 1c36e0143fa0409ee1fdd2e2b7cbccdfbe64d9f9 | /run_sa.py | 1db590656a6648299e5a0d59b27806ff2e2b9492 | [] | no_license | shailzajolly/FSDT | e14dc6d7d3c4fcfead5e031bf954873d86bc492c | 8cbd16f5c16a773d84976a3a3e8e142c72aa0b97 | refs/heads/main | 2023-07-18T17:11:25.009848 | 2021-05-18T09:25:08 | 2021-05-18T09:25:08 | 318,878,160 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import json
import math
from scoring_algos import SimulatedAnnealing, HillClimbing
from editor import RobertaEditor
from generator import T5FineTuner
from args import get_model_args, get_train_args, get_sa_args
if __name__=="__main__":
model_args = get_model_args()
trainer_args = get_train_args(model_args)
... | [
"shailzajolly@gmail.com"
] | shailzajolly@gmail.com |
6eedb1a9dbf4e238c159cf4ad5c092dcb9ac731e | a026a507d5a74130542bf550e89e75cd9c3872c0 | /clienttest.py | 72a7f992eeb5aecce2c156f5d9b749d4e42a6594 | [] | no_license | ikale1234/SpanishProject | a8ca5d60409d637a9c4c3cafca0a8438334fc75c | 525a15332c2793f804ce66f0aa1f91a4c58bcf8d | refs/heads/master | 2022-11-14T07:50:14.417561 | 2020-07-12T00:57:49 | 2020-07-12T00:57:49 | 256,859,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import socket
import pickle
wordlist = []
HOST = '127.0.0.1' # The server's hostname or IP address
PORT = 2004 # The port used by the server
for i in range(7):
servsend = pickle.loads(data)
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))
s.send(servsend)
data = s... | [
"55333848+ikale1234@users.noreply.github.com"
] | 55333848+ikale1234@users.noreply.github.com |
8f66f829efd621c46b43529fe71d766f4a7c3eb1 | 28247646f0d2db413426575b080653312c9ee1e0 | /lib/repo/fixed_plate_repository.py | 0f5714fe414a7e757b0ee0ff56b351430c60713f | [
"MIT"
] | permissive | daotranminh/SCM | 227fbd2688af9fd0f3d342d127ad89865fd05f42 | 6681a49999cbd089032e25a441572e9a1f166897 | refs/heads/master | 2021-07-05T02:33:02.780222 | 2020-09-23T15:38:51 | 2020-09-23T15:38:51 | 177,731,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | import logging
from flask_sqlalchemy import sqlalchemy
from init import FixedPlate, config
from utilities.scm_enums import ErrorCodes
from utilities.scm_exceptions import ScmException
from utilities.scm_logger import ScmLogger
class FixedPlateRepository:
logger = ScmLogger(__name__)
def __init__(self, db):
... | [
"daotranminh@gmail.com"
] | daotranminh@gmail.com |
aafe8538fb56fe40e8876788062acfd3e17ed347 | f6f9d99498fa4aa011df48e6a52d040c012bd952 | /talker.py | c901bafead8037d7b69dd18e288a31380df8aa91 | [] | no_license | prakash77000/18BEE206-tds-ros | bea2c43614b9a21d5b8f7e5483b300e237367636 | b40482fad11e86a40ad53ce2a234c3744baddafd | refs/heads/main | 2023-03-17T12:16:25.696703 | 2021-03-16T18:25:03 | 2021-03-16T18:25:03 | 348,449,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import rospy
from std_msgs.msg import String
def talker():
pub = rospy.Publisher('chatter', String, queue_size=10)
rospy.init_node('talker', anonymous=True)
rate = rospy.Rate(10) # 10hz
while not rospy.is_shutdown():
hello_str = "Prakash Ganesan %s" % rospy.get_time()
rospy.loginfo(hell... | [
"noreply@github.com"
] | prakash77000.noreply@github.com |
a22e8c9a0cb521beabb90256d9701721345eb483 | fa6bf80d7bde73a8c0c752da4428f00c6d61e6b1 | /שיעור 11/play_center/z_doron.py | 96dccefcae24902e88150b0f405893dc2b69cc42 | [] | no_license | avichai321/hackeru-lessons-part1-python | 846afbe171beea577d49e9027c147ba749e3e2af | 2bbeb4ea700194c5de51e65abd1f7242d8d75393 | refs/heads/master | 2023-06-01T02:08:58.711310 | 2021-07-01T14:25:46 | 2021-07-01T14:25:46 | 382,058,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,792 | py | import random
point = 0
roll_result = []
bid = 5
plus = ""
def points(x, c):
global roll_result, point, plus
point += c
if x > 0:
if point - x >= 0:
point -= x
doron(x)
else:
roll_result = "You don't have points for that bid, pls enter another bid, your ... | [
"77723644+avichai321@users.noreply.github.com"
] | 77723644+avichai321@users.noreply.github.com |
5bbdc37b8f11be6ec2c17816c516722565a8d862 | 49a046cf5e6893ab6b1024390886e81e840f189b | /深度遍历和广度遍历/队列广度遍历.py | 6f853f2c35d4db714cb3069d9d292e109c78dc2e | [] | no_license | mayHYT/class | 741d143b4c9fea23c5bd548b240559a7ec4feb90 | f4366ef3d0cf6d7427d8da456f6e8e32e9a95a55 | refs/heads/master | 2020-06-12T16:36:37.762582 | 2019-09-02T08:50:50 | 2019-09-02T08:50:50 | 194,360,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py |
import os
from collections import deque
path=r"C:\Users\ehuamay\Desktop\pm_report_tags"
queue=deque([])
queue.append(path)
while len(queue) != 0:
path=queue.popleft()#取出拉出的值
filelist=os.listdir(path)#遍历路径
for filename in filelist:
filepath=os.path.join(path, filename)
if os.path.isdir(f... | [
"13263440344@163.com"
] | 13263440344@163.com |
70cfa5fe2344bb7ef8b7729d7548d2d417c8d526 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /K4aKGbfmzgyNNYEcM_10.py | 87ec075891e2b03282cefb4e726b9b2e58de5b42 | [] | 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 | 178 | py |
def is_shape_possible(n, angles):
if n<2:
return False
for i in angles:
if i>180:
return False
if(sum(angles)<360 and n!=3):
return False
return True
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8772388edd423c89541c448fad985b03e6ef0a17 | 531a5c09ed774dca6f85f3c96827ff4d9f8fc3be | /AutotestWebD/apps/ui_main/services/UITestcaseService.py | 9b083ba126b0adce4f4f8ce39d39543150ba9654 | [
"MIT"
] | permissive | xiaochaom/sosotest | a98db41088d9411aa7d2723894f5bdc60bfbbd52 | a3a5ce67c3dc302cf4bca906496ec6ee26b42c33 | refs/heads/master | 2020-07-06T09:31:39.598616 | 2020-06-23T07:51:00 | 2020-06-23T07:51:00 | 202,971,957 | 0 | 0 | MIT | 2019-08-18T07:12:52 | 2019-08-18T07:12:51 | null | UTF-8 | Python | false | false | 692 | py | import apps.common.func.InitDjango
from all_models_for_ui.models import Tb3UIGlobalText
from django.db import connection
from django.forms.models import model_to_dict
from apps.common.func.CommonFunc import *
from all_models.models.A0011_version_manage import TbVersionGlobalText
class UITestcaseService(object):
@... | [
"wangjilianglong@163.com"
] | wangjilianglong@163.com |
2c5e33a6addbcf37d6c9155289587b1df7e90102 | 877a829ad94799e20514792d2f797369a853ff85 | /main.py | e0cb1ccc1e4d9607312f334dab36698274c8e9c9 | [] | no_license | egorb2008/redirect | 8f7e30c071a9fdf7e0bdfa506f53c960690c8e78 | 8934ce34ecfe17c415f6d1fb8bfe95718e97ebfd | refs/heads/master | 2023-08-24T00:15:33.593159 | 2021-11-02T15:54:09 | 2021-11-02T15:54:09 | 421,732,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,520 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QVBoxLayout, QHBoxLayout, QPushButton, QLineEdit
class Calculator(QWidget):
def __init__(self):
super(Calculator, self).__init__()
self.setWindowTitle("Calculator")
self.hbox_line = QHBoxLayout()
self.hbox1 = ... | [
"efom2006@icloud.com"
] | efom2006@icloud.com |
d36437973e9599bfca75bed759a61a37395f00e9 | 2048bd273b2df72cc15afe982767d5196e2ae91f | /backend/triplannet/travel/models.py | 273d0225993541c2c261533f43d0b822644ce366 | [] | no_license | dreamsh19/swpp2019-team6 | 66b4d1dae7fb2c9c02e27093434c0752841f7f82 | 7dbc5ef48edefff38d04a8f1d9edfbf56a83c5a4 | refs/heads/master | 2022-11-28T23:48:52.114066 | 2019-12-17T14:42:04 | 2019-12-17T14:42:04 | 292,757,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,463 | py | from django.db import models
from django.contrib.auth import get_user_model
from django.conf import settings
from django_mysql.models import ListCharField, ListTextField
import os
User = get_user_model()
def travelCommit_directory_path(instance, filename):
return 'travelCommit/{}/{}'.format(instance.id, filenam... | [
"noreply@github.com"
] | dreamsh19.noreply@github.com |
608670999a50bc59acccb8183f2f5722cae41e98 | ad8d49c2b6685457c617207f0f453a19e1cf2798 | /tier_three/migrations/0002_auto_20170720_0957.py | 792bbdca5ce41d2448d44898ecbe6ee1c70de5e6 | [] | no_license | nikolai0045/buffalo-bank-backend | 529b241c02e51309a6ed142e933d0c1b1ac465ee | 4db895dfb1052ae38c1bb9f69f49212e2a67292e | refs/heads/master | 2021-01-18T19:33:15.712062 | 2020-01-29T03:35:39 | 2020-01-29T03:35:39 | 100,532,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-20 13:57
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tier_three', '0001_initial'),
]
operations = [
migrations.RenameModel(
... | [
"tanner.ball@campusoutreach.org"
] | tanner.ball@campusoutreach.org |
64fed0e75ffe53aaf8503b96e1a0af8fafec3c03 | 0990ff8e3442cc78b4c43184b55f82c6b7f4af36 | /seasonal_events/migrations/0014_season_disable_reservations.py | ff47444ec5d3b8adc96d23584047776552e20439 | [
"MIT"
] | permissive | hackerspace-ntnu/website | 5db57c59ad04c38a8571b8804589fddae7daae7f | d2156e691cea5737b1c80506b58424cbcb2557e6 | refs/heads/master | 2023-07-22T10:48:58.897407 | 2023-05-06T14:06:56 | 2023-05-06T14:06:56 | 52,109,003 | 29 | 8 | MIT | 2023-08-29T18:27:44 | 2016-02-19T18:49:51 | Python | UTF-8 | Python | false | false | 579 | py | # Generated by Django 2.2.1 on 2019-05-19 16:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('seasonal_events', '0013_auto_20190430_2023'),
]
operations = [
migrations.AddField(
model_name='season',
name='disab... | [
"god@e-grotto.faith"
] | god@e-grotto.faith |
8d8820c077ad49b00a7e905be252bb7c928472af | a8a38abba1a648aaab880bc3aafdc54de692c922 | /P1_pt1.py | 7fe11c498535af7ba50f3da896a81562e08d0181 | [] | no_license | pedrotramos/Projeto1-RobComp2019.1 | 56bc0edf7326307a6977a97c33d49d067af5c1f7 | 712a88b45883dd5f1c61c873b0c4930daa7d3cdd | refs/heads/master | 2020-04-29T18:43:02.809946 | 2019-04-18T00:00:09 | 2019-04-18T00:00:09 | 176,331,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
import rospy
from geometry_msgs.msg import Twist, Vector3
from std_msgs.msg import UInt8
from math import pi
bump = None
bump_happened = False
def bumper(data):
global bump
global bump_happened
bump = data.data
bump_happened = True
def forward(velocidade_saida):
... | [
"matheuspellizzon@hotmail.com"
] | matheuspellizzon@hotmail.com |
15d9d23b5e8a3431dd91d434167be4061f4141ec | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/vse-naloge-brez-testov/DN5-M-161.py | fbaee3ce3a1514aa8568ac02ddc80a4483ad326d | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,642 | py | #DN5
#Obvezna naloga(1): unikati
def unikati(s):
seznam = []
for unikat in s:
if unikat not in seznam:
seznam.append(unikat)
return seznam
#Obvezna naloga(2): avtor
def avtor(tvit):
a = tvit.split (":")
return (a[0])
#Obvezna naloga(3): vsi avtorji
def vsi_avtorji(tviti):
... | [
"lenart.motnikar@gmail.com"
] | lenart.motnikar@gmail.com |
c2207a7635fe7040b4696f51b902412c32afc49b | 22e664ebbff04588fa35e821d6c218992e49e22d | /parseq/tests/test_columnStrings.py | c613314b59be6c39e9815b864098bb4abc507e9c | [
"MIT"
] | permissive | kklmn/ParSeq | 2225a10948fe238688a8913e0194566b067cacea | 141483a42828592ad2abdcb54dccbfa74a2ab236 | refs/heads/master | 2023-08-18T19:31:24.355626 | 2023-08-10T15:32:59 | 2023-08-10T15:32:59 | 158,081,301 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # -*- coding: utf-8 -*-
__author__ = "Konstantin Klementiev"
__date__ = "27 Jan 2018"
"""
Test expression evaluation where the expression operates arrays defined as
d["NNN"], where d is a local dictionary with the appropriate keys; the keys can
also be integers.
"""
# !!! SEE CODERULES.TXT !!!
import numpy as np
impor... | [
"konstantin.klementiev@gmail.com"
] | konstantin.klementiev@gmail.com |
ff72e7430c41fb37fe50a1e5591858b6d3cac252 | 046db5d85389f4de1a226653b01d6b3dfd3433ff | /home/migrations/0051_auto_20200226_0033.py | f6ba3cce436cc5922c2159c1cb0d8634657f42b4 | [] | no_license | newamericafoundation/newamerica-cms | ef3b7900d893bc527add5ec1c85de036f6da42dd | 7d2e9c71958d214afbd32925de4288d8276fcd33 | refs/heads/main | 2023-09-04T11:23:01.091701 | 2023-09-01T14:34:15 | 2023-09-01T14:34:15 | 48,380,991 | 6 | 8 | null | 2023-09-08T19:16:26 | 2015-12-21T16:04:46 | Python | UTF-8 | Python | false | false | 473 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-02-26 05:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0050_auto_20200225_1721'),
]
operations = [
migrations.AlterField(... | [
"1051450+nmorduch@users.noreply.github.com"
] | 1051450+nmorduch@users.noreply.github.com |
48cb57a01920308af535b6f11cd832b736836c95 | ff5b4fb423beae96012d64c7ce538deb804ba1a4 | /portproject/manage.py | 858fc21fc282efe7f780ef423204cdbc1a136330 | [] | no_license | prashantthumar75/social_auth | 37bef81b3c1db8b6841f83c612fd0227ea0f3f5c | a869927c2c275370fc1ff139de9dee20385d95c1 | refs/heads/master | 2023-01-12T20:04:58.515949 | 2020-11-18T13:21:45 | 2020-11-18T13:21:45 | 304,028,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'portproject.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"48546055+prashantthumar75@users.noreply.github.com"
] | 48546055+prashantthumar75@users.noreply.github.com |
9b5bdb0fc9e2533c7f9edcac5f8036013b45f24b | c4c0f5d742b88106053b63a0c0e710efeb867e79 | /sequencers/apps.py | 2350c84da68d4e880839edbfc491d8e9b44a0cc2 | [
"MIT"
] | permissive | bihealth/digestiflow-server | 0ed49c371cd59da5c331259a65cdd75ca71fab76 | 83f94d068d8592d83254a0b4271be9523334339d | refs/heads/main | 2023-02-18T05:56:13.261282 | 2022-04-21T09:43:58 | 2022-04-21T09:52:52 | 165,990,428 | 16 | 3 | null | 2023-02-16T05:17:33 | 2019-01-16T06:56:04 | Python | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class SequencersConfig(AppConfig):
name = "sequencers"
| [
"manuel.holtgrewe@bihealth.de"
] | manuel.holtgrewe@bihealth.de |
1c42308c648a55a47a6d0a9c7959f0d55d0986d7 | 16f82859b150eb25dec19218df197689c4b9dd2e | /manage.py | 93c16465be100a76d2005a5c024431c693bbed49 | [] | no_license | ernertoporras/django-refugio-7-aprendiendo | ac067435b2f21b9c0063a11f361b3f29acbcffaa | e52f59936eab35504bb5ee538805de6488d58269 | refs/heads/master | 2020-04-10T13:32:34.185335 | 2018-12-09T15:53:41 | 2018-12-09T15:53:41 | 161,053,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proyecto_refugio7.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dj... | [
"ernestoporras2006@gmail.com"
] | ernestoporras2006@gmail.com |
866fda79b744e59f2b811a1d416ef1f8a1affe12 | c3a3cf534fb77a1963c172836aeff70ef1875e4b | /workspaces/voyage/server/src/util/scheduler.py | 7632dd987e979eb5361b05822855b7277124d4c8 | [
"CC0-1.0"
] | permissive | raychorn/svn_hp-projects | dd281eb06b299e770a31bcce3d1da1769a36883d | d5547906354e2759a93b8030632128e8c4bf3880 | refs/heads/main | 2023-01-08T07:31:30.042263 | 2020-10-14T21:56:57 | 2020-10-14T21:56:57 | 304,144,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,748 | py | '''
Created on Oct 16, 2013
@author: ray.c.horn@hp.com
'''
import os, sys
import time
import datetime
from datetime import timedelta
from M2Crypto import EVP
import psycopg2
from psycopg2.extras import RealDictCursor
from util.stringcrypt import str_decrypt
from logging import getLogger
log = getLo... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
a7b328d76b2eaedc4f255f6aadc5b2deaf0590d0 | f9d2397644f6f746eeaddc683da0251ff40518e7 | /scripts/india_lgd/local_government_directory_districts/preprocess_test.py | d619c6cf32b6f4297d5dcb68d5dae513360af2c8 | [
"Apache-2.0"
] | permissive | katherinelamb/data | f5a0c0e6dc1487b9c6fe356c3ad675123cc6e04c | cb0cdcd73bc06f13e94b4b02fbd0203cc972560e | refs/heads/master | 2023-07-08T20:03:26.760133 | 2021-08-11T16:37:09 | 2021-08-11T16:37:09 | 383,898,879 | 0 | 0 | Apache-2.0 | 2021-08-13T12:56:36 | 2021-07-07T19:00:30 | Jupyter Notebook | UTF-8 | Python | false | false | 3,083 | py | # Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | katherinelamb.noreply@github.com |
eb443efba7bb5c8623744352bf7b874747b46b9f | 753cdd1b764a24f2a520a0d313ca032bf7d833f8 | /app.py | 8ab415043249c9fae39dae2bc2056703c4dfcb10 | [] | no_license | TiffanySantos/flask_schools | eabece88a1465dce5730bfa7c49b6cd242da8c32 | c928e95540e4df90edb0bea6a635581e2751fb3f | refs/heads/master | 2022-12-02T06:41:58.114813 | 2020-08-10T11:10:14 | 2020-08-10T11:10:14 | 286,456,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | from flask import Flask, render_template, request
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
# URI is uniform resource identifier whereas URL is uniform resource locator (it is an unstance of a URI)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///schools.sqlite3'
db = SQLAlchemy(app)
# tell SQLAl... | [
"tiffanysantos@Tiffanys-MacBook-Air.local"
] | tiffanysantos@Tiffanys-MacBook-Air.local |
952969f39238e6427f8f75aa439387a4bdee1f09 | 9ace2224990e9d5df81e2dcc3c91f9cedd5d49d8 | /Hackerrank/Practice/Dynamic Programming/Nikita and the Game/main.py | 0704768a5c45ebb6a837bd2ad095042d37142f3f | [] | no_license | iamakshatjain/Codings | fe18c1dabc4e2b769eb1888f560f88f19fbbfc99 | 004b0a52e7598e2e0e922f9888b4ae499c01edfe | refs/heads/master | 2021-07-17T11:10:32.842520 | 2020-05-24T18:34:30 | 2020-05-24T18:37:24 | 258,223,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | #https://www.hackerrank.com/challenges/array-splitting/problem?h_r=internal-search
#!/bin/python3
import os
import sys
#
# Complete the arraySplitting function below.
#
sys.setrecursionlimit(10**9)
def arraySplitting(arr, sumarr, l, r):
if((r-l+1) == 1):
return 0
if((r-l+1) == 2):
if(arr[l... | [
"jain99akshat@gmail.com"
] | jain99akshat@gmail.com |
7bf683142d7cffb7125eb2c80cf20a46978c1035 | 8997f25ba095269ff68bc596809e141247e2c532 | /StockBot.py | 7f3af96687b13e23a7fc3494a4d8a3cbe8268923 | [] | no_license | DeaDHatchi/StockBot | cf76529e2faddf6fbed7f092aed68ec3e60e1a08 | 2f945cee8025847df8dc3018094fc46f9a89055b | refs/heads/master | 2016-08-13T01:00:57.568675 | 2015-08-27T01:02:56 | 2015-08-27T01:02:56 | 36,043,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,759 | py | __author__ = 'Hatchi'
from bs4 import BeautifulSoup
from datetime import datetime
import requests
class Symbol:
def __init__(self):
# Hard Coded Values
self.stock_margin = 0.15
self.transaction_cost = 7
self.trade_shares = 100
self.max_shares = 100
self.investment... | [
"Gerken.Travis@Gmail.com"
] | Gerken.Travis@Gmail.com |
2762df5579eacdb99ddb7ffeabc418bac7baea62 | 02f79bc383266c71c4bfa0eb940cb663149a7630 | /leetcode and gfg/leetCode/isCompact integer uber.py | 52ecddff679f64ba6e2227a6552e2fe531acb6a3 | [] | no_license | neilsxD/justCodes | a10febad0ac47d115310e6e06768b7a7dc63d05c | 950ae26fce82f54341deee790e5df530f65c88d4 | refs/heads/main | 2023-07-17T04:38:32.703085 | 2021-08-24T10:22:23 | 2021-08-24T10:22:23 | 399,422,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # from heapq import heappush
class Solution:
@classmethod
def main(self, x,y,n) :
ans= 0
def isComp(val) :
while(val) :
t = val % 10
if t != x and t != y :
return False
val= val//10
re... | [
"noreply@github.com"
] | neilsxD.noreply@github.com |
1b6b233c8fe0c892db0154e6b7263cc4625748a3 | 4993517af7c2019a00035778d76aff9214feb787 | /rofi_menu/rofi_mode/rofi_mode_15.py | 8fe03bf349125fd1a662dfa69f611306089d2f3c | [] | no_license | miphreal/python-rofi-menu | 4dabc63fa6e527ae6335e99910be262dd8d1075b | d7dd764d92da922005bf547414dd3de3f256cd0a | refs/heads/master | 2022-07-04T14:08:02.391939 | 2021-04-23T12:34:31 | 2021-04-23T12:34:31 | 251,117,720 | 42 | 4 | null | 2021-09-23T03:15:52 | 2020-03-29T19:37:57 | Python | UTF-8 | Python | false | false | 1,524 | py | """
Rofi script mode for version <=1.5
"""
import base64
import json
from typing import Optional
MENU_ITEM_META_DELIM = "\r!"
def render_menu(prompt: str, *items) -> str:
items = [menu_prompt(prompt), menu_enable_markup(), *items]
return "\n".join(items)
def menu_prompt(text: str) -> str:
return f"\x00... | [
"miphreal@gmail.com"
] | miphreal@gmail.com |
23c314577deec241bb34225d086c46b09a551c68 | 3da732019a135d3b1a165ef5c1bd6dd22329b91e | /wechat_spider.py | 975512be971d99eb8f750b66e7708415cc93446d | [] | no_license | HouserChiu/spider_wechat | 7721c9aae0cd98dd6362b9f470eeb65964d737a6 | 3c85be0a8ca6d75b2b5542be4ffd84505579aa9f | refs/heads/master | 2020-12-06T23:52:47.950123 | 2020-01-09T14:22:09 | 2020-01-09T14:22:09 | 232,585,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | import time
from selenium.webdriver.common.by import By
from appium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
class Wechat_Moment():
def __init__(self):
self.d... | [
"18391726137@163.com"
] | 18391726137@163.com |
2fe90cc06e15728b2ebd62ee61cc9383c1b054d6 | 9bb34a5a6dfb9277ff2896f053489aa0b20e5ede | /recipe_groups/forms.py | 8de51e82d3a9065829ab6fe095187555feaec173 | [] | no_license | john-clark/openeats2 | 31ee86dca54041ebee5b0f5b131afd96cdd3c6ce | 19d9e4408621bda877fa82a3e2726d618264cfac | refs/heads/master | 2021-01-14T14:15:35.307357 | 2016-04-22T13:49:33 | 2016-04-22T13:49:33 | 56,856,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from django.forms import ModelForm
from models import Course, Cuisine
class CoursePopForm(ModelForm):
"""form object for the popup from the recipe_form to add a new course"""
class Meta:
model = Course
exclude = ('slug')
class CuisinePopForm(ModelForm):
"""form object for the popup from ... | [
"qgriffith@gmail.com"
] | qgriffith@gmail.com |
2c5c1f27e63c439b6c81318d3e1448d3fed261cc | a7c75dbe004c929266888605c60a867a074f6b9c | /estimate_disparity.py | d022944c0ec6dccff0d6702ab4922b7ef6337960 | [] | no_license | doegan32/Light-Field-Style-Transfer | 7e7c938db3ae979f762dae4ff0cae542afa6537c | e1628802042eab936634573366ee39ad354c5227 | refs/heads/main | 2023-08-21T15:50:31.431651 | 2021-10-20T14:36:20 | 2021-10-20T14:36:20 | 337,192,820 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,741 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 29 13:25:54 2020
@author: donal
Run this script to estimate disparity between the neighbouring light field viewpoints
and to also calculate the weights c_{s't'}^{s,t} defined in section 2.2.2 of the paper.
DeepFlow (http://lear.inrialpes.fr/src/deepflow/) is used... | [
"noreply@github.com"
] | doegan32.noreply@github.com |
9a7f9e869ff256b94b5bff872c966ffa9a1deae3 | 0550edab7b82ea398404267e9cd9aa8fbc05a808 | /67.py | bb0f7e943b9ce01b8ad139ba09b1fbd93b090523 | [] | no_license | Dritte/ProjectEuler | 534135a9c696e6ea9611adae4fe1735b6404b2e0 | 43b78ccc67b43d10e8f2e15c2b3201765311f4bd | refs/heads/master | 2016-09-10T10:08:51.481278 | 2014-10-25T16:20:31 | 2014-10-25T16:20:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,274 | py | tri=[[59],
[73,41],
[52,40,9],
[26,53,6,34],
[10,51,87,86,81],
[61,95,66,57,25,68],
[90,81,80,38,92,67,73],
[30,28,51,76,81,18,75,44],
[84,14,95,87,62,81,17,78,58],
[21,46,71,58,2,79,62,39,31,9],
[56,34,35,53,78,31,81,18,90,93,15],
[78,53,4,21,84,93,32,13,97,11,37,51],
[45,3,81,79,5,18,78,86,13,30,63,99,95],
[39,87,96,... | [
"erf@mit.edu"
] | erf@mit.edu |
2b23e8b1de5200d30eec18dbc1e4983438441aed | d8ac8295abaa6066d03cdcfbc964fbb02a01bc48 | /Untitled.py | b8af19ee270c3313a42a8b76f686afadb023d110 | [] | no_license | Anna-Ilinichna/lesson1 | 9942a5cf3fe399ebdb93082d0ae10f4635e394af | e863eab753d09e1bc35c02e62ea7124a4da23e98 | refs/heads/master | 2020-09-16T01:00:35.373449 | 2019-11-23T14:39:33 | 2019-11-23T14:39:33 | 223,603,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | x = 0
while x < 10:
print(x)
x += 1
| [
"ASavinov@its.jnj.com"
] | ASavinov@its.jnj.com |
2ba81ad791d971b0cab7445ff15f1d3d922e19c1 | 8fa87ceafa6ee0c521f80c205772512d7ecc482b | /frames/industry/variety_data_ui.py | 201439e3ed60d81fbd33588174167a9404ae8c06 | [] | no_license | zizle/FuturesAssistantClient | fe7a7f457dffc9a5771abc0d4a67ce584999b052 | 3519657f5f352f137b7a7c7a51d7ca43fbdea4f9 | refs/heads/main | 2023-06-03T00:24:45.540553 | 2020-12-31T07:48:57 | 2020-12-31T07:48:57 | 304,493,799 | 0 | 0 | null | 2021-05-25T06:40:03 | 2020-10-16T02:01:57 | Python | UTF-8 | Python | false | false | 3,351 | py | # _*_ coding:utf-8 _*_
# @File : variety_data_ui.py
# @Time : 2020-09-03 8:29
# @Author: zizle
from PyQt5.QtWidgets import (QWidget, QSplitter, QHBoxLayout, QTabWidget, QTableWidget, QFrame, QPushButton, QAbstractItemView,
QHeaderView)
from PyQt5.QtWebEngineWidgets import QWebEngineView
f... | [
"462894999@qq.com"
] | 462894999@qq.com |
65530f5fdde5c9b8f31a5c0499da3baa520894e5 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc081/abc081_b/7051715.py | 31ad7df4c069615864b37344e4109efbf6356623 | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | N = int(input())
A = list(map(int, input().split()))
flag = True
ans = 0
while(1):
for i in range(N):
if A[i] % 2 != 0:
flag = False
break
if flag:
A = list(map(lambda x:x/2, A))
ans += 1
else:
break
print(ans)
| [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
5059b702d963a2accace356f9a82e511a68e85a1 | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/dominate/document.py | 8ca9ceba218b23afe46162725b052e9e6bffc55f | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,339 | py | __license__ = """
This file is part of Dominate.
Dominate is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Dominate is distributed in... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
09bc1405d9d1d362e1fc04224eed43244244b8af | 8eae1f18b292e2a13508d2b61267b4161246245d | /Week1/forExe2.py | b2aa9c18e37363d17b316360d7ff46505e45cb12 | [] | no_license | iamieht/MITx-6.00.1x | 1649b27edf456ec4573e0d1fb8e2c5f4efbcb20b | 67590d12c9074a6a704aee744d23897843a4521b | refs/heads/master | 2020-09-01T19:16:50.180993 | 2019-11-01T17:55:55 | 2019-11-01T17:55:55 | 219,035,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | #Exercise: for exercise 2
print("Hello!")
for num in range(10,0,-2):
print(num) | [
"iamieht@gmail.com"
] | iamieht@gmail.com |
670d64b2a61f2774107244120ead6a736d6b1710 | f54716bfb0847ae03387dd30753eae054edd0fa9 | /employee/migrations/0003_auto_20210309_0608.py | b2f9b0fefa6c550fcf450b6c67e5642d2ccd1c98 | [] | no_license | ankitayan96/ankitayan96-PythonDjangoJWT | 0cbf912f7b78fad22fe03f50c136e469115e7934 | 14ba6d81e1fb2e889f6beefffd0900010aad448a | refs/heads/master | 2023-03-17T16:44:09.445903 | 2021-03-09T09:45:50 | 2021-03-09T09:45:50 | 345,951,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Generated by Django 3.1.7 on 2021-03-09 06:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('employee', '0002_remove_employee_password'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='mo... | [
"ak28246@gmail.com"
] | ak28246@gmail.com |
601643cde921bc7510b83d3bd65b87b7a35f3194 | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /shipyard2/rules/images/examples/build.py | d65f2815a5eb9d4aae8cf494dddd5844ef4efca8 | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import foreman
from g1 import scripts
import shipyard2.rules.images
shipyard2.rules.images.define_image(
name='empty',
rules=[
'//bases:build',
],
)
shipyard2.rules.images.define_xar_image(
name='reqrep-client',
rules=[
'//python/g1/messaging:reqrep-client/build',
'reqrep... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
4fc0994c7a55b303cbc9687647431b87fea6ebdd | 39356ce7ee611d660206d5992492ae76fee459e9 | /flaskblog/errors/handlers.py | 27149a68bf217663714fd6593a3d8da0613cfb9d | [] | no_license | dip333/Blog-Post | af88fbfbfc40f52445d8d4e9efbe133d2c0d4609 | 71460d99cb23d3e815b66838f3fffa7cb7177ed6 | refs/heads/master | 2022-09-01T21:09:39.715024 | 2020-05-24T05:19:36 | 2020-05-24T05:19:36 | 266,471,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | rom flask import Blueprint, render_template
errors = Blueprint('errors', __name__)
@errors.app_errorhandler(404)
def error_404(error):
return render_template('errors/404.html'), 404
@errors.app_errorhandler(403)
def error_403(error):
return render_template('errors/403.html'), 403
@errors.app_errorhandler... | [
"sidip333@gmail.com"
] | sidip333@gmail.com |
dc29c130dc681a79099259bd24bb92a195e7e5ba | 182e9a717c6f27e34b363b5cb470c47c15ed5173 | /venv/Scripts/pip3-script.py | c567c829fb07c760d90f3aebcc6f66a1095de47c | [] | no_license | rannrann/flask-tutorial | 7975a4b323db975e8b9e15db745e7c9b126a62d7 | 0f35363354d52a21c932f7bced042dc0f964e1da | refs/heads/master | 2022-12-08T09:15:41.404790 | 2020-01-07T06:39:05 | 2020-01-07T06:39:05 | 232,253,212 | 0 | 0 | null | 2022-12-08T03:24:04 | 2020-01-07T05:55:40 | Python | UTF-8 | Python | false | false | 413 | py | #!E:\pycharm_professional_projects\Flask\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
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[... | [
"239124260@qq.com"
] | 239124260@qq.com |
c932d134c670f8bfb24d23db32f2cd1545dc2b22 | 48f005a65563d23c8159355c1c09da6b5412e5ff | /comm.py | f3daae8e3c9ed583f02b14bf107956d1d18ea726 | [] | no_license | ShreyasJamadagni/Feral | 06aad2634c00a5e91169ee18dbcd3e8b4bbec185 | 8fa620eaabdb3cf06111ee0156e1d714b256d23a | refs/heads/master | 2021-09-18T11:40:25.889903 | 2018-07-13T14:10:04 | 2018-07-13T14:10:04 | 104,558,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | class Commands:
local = locals()
def default(options):
print(options, ", Default")
return True
# calling it 'prin' as 'print' messes with python
def output(options):
# It shouldn't request for a string if the option is invalid.
print(options, ", Output")
retu... | [
"shreygj@gmail.com"
] | shreygj@gmail.com |
e8c34e41273571df05ebfa8d3757ea3b860d9567 | 2e83e004d8a69a773d1e305152edd16e4ea35ed8 | /students/tao_ye/lesson07/test_html_render.py | 88125104f0002662179e25f7dc2330b92e4a9c5a | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_PY210 | 9b170efbab5efedaba8cf541e8fc42c5c8c0934d | 76224d0fb871d0bf0b838f3fccf01022edd70f82 | refs/heads/master | 2021-06-16T20:14:29.754453 | 2021-02-25T23:03:19 | 2021-02-25T23:03:19 | 161,077,720 | 19 | 182 | null | 2021-02-25T23:03:19 | 2018-12-09T20:18:25 | Python | UTF-8 | Python | false | false | 10,803 | py | """
test code for html_render.py
This is just a start -- you will need more tests!
"""
import io
import pytest
# import * is often bad form, but makes it easier to test everything in a module.
from html_render import *
# utility function for testing render methods
# needs to be used in multiple tests, so we write ... | [
"taoyeh@gmail.com"
] | taoyeh@gmail.com |
35036c906a16e6682fa6e71ce1ca7234a8214ccb | 1ce21f7e2ba82b2e90fd0fdf808283aa1d4e1799 | /Assignment-2-DecisionTree/helpers.py | dc8fadde08926388262b6a606ac5479cadccd945 | [] | no_license | T-Nawaz/Hiperdyne-Assignments | 865627b3c2245ad507ccaeabd66fc5dcd47b91d9 | ca6712947376ee4d363b05083968c089c7a0842a | refs/heads/master | 2020-04-11T14:59:08.115473 | 2019-02-13T03:20:02 | 2019-02-13T03:20:02 | 161,874,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | def peek(data):
x=0
for line in data:
if x<5:
print(line)
x+=1
| [
"tntanzim@gmail.com"
] | tntanzim@gmail.com |
330f0b2387476e84045dbea84d03e7cb917bba86 | 82fc697f757b7255cacd85bc7864e6c592889da7 | /nipyapi/nifi/models/versioned_flow_entity.py | 4846eac031ebc99a0dc08dc97f647aa67b2f0848 | [
"Apache-2.0"
] | permissive | pvillard31/nipyapi | 1b456797fed6fff12c2ea9a417b512f200ce542d | 9003dee5366c569fa90b6b31dc6f658063da7e88 | refs/heads/master | 2020-03-09T11:40:05.798820 | 2018-03-06T23:41:41 | 2018-03-06T23:41:41 | 128,766,892 | 1 | 0 | null | 2018-04-09T12:17:17 | 2018-04-09T12:17:16 | null | UTF-8 | Python | false | false | 3,663 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"noreply@github.com"
] | pvillard31.noreply@github.com |
3cc6d1ecd5da628ce95c4eba54e7ac9bbc12c139 | 474cac4c6803c00b4c75c39121867a510d8ab23d | /part1/buttuns.py | c56d9ee23e627c8d06654deff914f142c3555d22 | [] | no_license | nadavru/RL_ROS | 00d57fe059ff2aeb2783df93a4fbdf2cb9ee878c | 69560a48e14f62d824a307e0e83169faaa1c72c6 | refs/heads/master | 2023-06-06T08:35:18.487539 | 2021-07-02T17:45:29 | 2021-07-02T17:45:29 | 375,120,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import Button
# Generating x and y-values
x = np.arange(0, 1, 0.02)
y = x
fig, ax = plt.subplots()
plt.subplots_adjust(left=0.1, bottom=0.3)
p, = plt.plot(x, y, color='red')
ax.title.set_text('Graph for y = x')
# Home button
axButn1 = plt.axe... | [
"olaniado@campus.technion.ac.il"
] | olaniado@campus.technion.ac.il |
07383ecdccf2473d2cd81b121f7cb783684a5740 | 843fe12039e5c837e1edb1b0df4f3826aeec99c4 | /03_Pandas/F_iloc_loc.py | ea03821755d1865ba54994bcfdf24cf0c40674d4 | [] | no_license | 2019-a-gr1-python/py-Aguirre-Maldonado-Carlos-Arturo | 6e3cf89a0173ead760c985b26b7af2f730f5aaa5 | 80a58b374a13f25238941ca5ec5b60b1a1cadeea | refs/heads/master | 2020-05-04T16:56:21.199940 | 2019-07-31T14:00:42 | 2019-07-31T14:00:42 | 179,292,823 | 0 | 0 | null | 2019-07-30T04:58:05 | 2019-04-03T13:11:02 | Jupyter Notebook | UTF-8 | Python | false | false | 1,395 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 29 07:35:28 2019
@author: carlosaguirre
"""
import pandas as pd
path_guardado = '/Users/carlosaguirre/Documents/GitHub/py-Aguirre-Maldonado-Carlos-Arturo/03_Pandas/data/csv/artwork_data.pickle'
df = pd.read_pickle(path_guardado)
primero = df.lo... | [
"caguirremal11@gmail.com"
] | caguirremal11@gmail.com |
1241fa302866c8143de7fc38c0231383a342313e | 97c52297eefe999a6c47089af11c3f35c9c2caa3 | /secondpass.py | 7c6d3062a4dd717f8668afb99fb143d72ca46103 | [] | no_license | rmopia/sic-xe-simulator | fce55e8c0b3845c9633e10b1a2e073a831b12c41 | 34e8a256e0847ca17561adeb9c06f6791437a91e | refs/heads/master | 2020-09-05T00:18:51.821063 | 2019-11-13T04:22:44 | 2019-11-13T04:22:44 | 219,931,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,584 | py |
import numpy as np
format1_list = ["FIX", "FLOAT", "HIO", "NORM", "SIO", "TIO"]
format2_list = ["ADDR", "COMPR", "DIVR", "MULR", "RMO", "SHIFTL", "SHIFTR", "SUBR", "SVC", "TIXR"]
assignments = ["RESW", "WORD", "RESB", "BYTE"]
OPTAB = {"ADD": "18", "LDA": "00", "LDS": "6C", "LDX": "04", "STA": "0C", "COMPR": "A0", "JL... | [
"robert.mopia@gmail.com"
] | robert.mopia@gmail.com |
a211e0ec4f9643b7909a6cd7763ecd93c3a1f7bf | 0a35a0a7acdfc01f1c53fd21394676c7e523197b | /Door_Lock_2019_12_02.py | 811259f5fb809f82b8433adc77fc9897e9b72862 | [] | no_license | budtaylor/Door_lock.sql | bf8b0467564b2fa8b999a1ef9fa0e1c90e5e10de | aa586c3c411c5052415f2eb87e26b2dbfb299fcf | refs/heads/master | 2020-09-07T16:33:46.649489 | 2019-12-02T14:07:11 | 2019-12-02T14:07:11 | 220,845,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | def main():
import RPi.GPIO as GPIO
import time
import mysql.connector
from datetime import datetime
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
id, text = reader.read()
#print(id)
finally:
GPIO.cleanup()
mydb = mysql.connector.conn... | [
"noreply@github.com"
] | budtaylor.noreply@github.com |
146d57450fd4b1ac0ad71288b146483a0841dac5 | 2d94b0be7dbd5f1e0a2bfb349742033d7bd66c87 | /functional_tests/base.py | 0afc115c1446d3d77c70b55db25f0fe6ac478f87 | [] | no_license | r-perez/tdd-project | 759228200ef3a938c22f4fed035970b63c933549 | dc21f30d768b4725ad2bbb64335df76fa07a22b7 | refs/heads/master | 2023-01-05T15:18:46.154487 | 2020-10-25T16:14:06 | 2020-10-25T16:14:06 | 247,837,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import WebDriverException
import time
MAX_WAIT = 10 # 5
class FunctionalTest(StaticLiveServerTestCase):
def setUp(self):
s... | [
"rafael.perez@dcc.ufmg.br"
] | rafael.perez@dcc.ufmg.br |
83a46ccee1cfc19ab7d2eb33b3b487d05ad5fd3d | 79898a231d0f8c341ec2e51f3bb714e134c31b0a | /Chapter 2 custom visualization ez.py | 463ae91a6a2f4c77d644d876e961db7901be1cc0 | [] | no_license | tomjingang/data-science | 4a5fdbfd3f63d973e2074856d817cf2d394d4c1f | 67efb6225017754b9c000b0a23c30c6d06c4841c | refs/heads/master | 2022-04-15T09:23:08.169587 | 2020-03-25T01:37:33 | 2020-03-25T01:37:33 | 249,858,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | # A challenge that users face is that, for a given y-axis value (e.g. 42,000),
# it is difficult to know which x-axis values are most likely to be representative,
# because the confidence levels overlap and their distributions are different
# (the lengths of the confidence interval bars are unequal). One of the s... | [
"noreply@github.com"
] | tomjingang.noreply@github.com |
389818fbaf4dc414c4b1c2d3833e16c7377caf99 | cb729559a42732aba8119de998cd4a5e1bdb88b1 | /processors/base.py | 5715518cac2810e8fa71eae6d932b64b840c14c0 | [] | no_license | omersaraf/PyTL | be2f012cdc8538694f3e409218332db254e2ef1e | fc7ce5ee63b021522e01cb3fb1fcae2bd46ca66f | refs/heads/master | 2020-11-25T12:29:37.701667 | 2019-12-17T16:54:44 | 2019-12-17T16:54:44 | 228,661,566 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from typing import List, Iterable
from pipeline.base import END_MESSAGE
from writers.base import PipelineWriterBase
from queues.base import QueueBase
class PipelineProcessor(PipelineWriterBase):
def process(self, input_queue: QueueBase, output_queue: QueueBase):
for bulk in self._get_iterator(input_queue... | [
"omer@spotlightltd.com"
] | omer@spotlightltd.com |
71263c6e29e925e96474a695aebaa87c9567625c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_roadrunner.py | e5b9a953686d9298110d2e8cd827c00a50d91c42 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py |
#calss header
class _ROADRUNNER():
def __init__(self,):
self.name = "ROADRUNNER"
self.definitions = [u'a bird from the southwestern US and Mexico with a long tail and feathers that stand up on the top of its head, that runs very fast']
self.parents = []
self.childen = []
self.properties = []
self.jsond... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3867b5452cd8755f9bb48b89a4584563de444320 | d6c66a945fab9961dfe6e2aea8cf44ffd26e5df6 | /Lab06/venv/Scripts/pip3-script.py | 5dc05d4ecc9fa4a34e3d34bb7ad91e7a7784dd1e | [] | no_license | sulleyi/CSC-120 | f23332a9dad5b00b6c1e839b9ecaff9d28c146d6 | 77b8e42839d389af61d0f278f8eb68ad2a06b98c | refs/heads/master | 2022-09-21T17:09:27.687286 | 2020-06-05T11:20:22 | 2020-06-05T11:20:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #!C:\CSC120\Sulley_Lab06\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__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])
sys.exit... | [
"57299945+sulleyi@users.noreply.github.com"
] | 57299945+sulleyi@users.noreply.github.com |
8e09286aad5474bfac3ea92ffaba9ffc572c4c6d | b41d9dbe576f925aa6550d8fc914ff5a18ca9981 | /UkBot.py | efdfa0624959f9e5a329b8387879a231f5f6c6b8 | [] | no_license | inctoolsproject/4 | 7ae9ff7196938d03cf771b7f7b9d8f8215fae333 | 0ec06e18d252e73d812e98943a7ad486581e9a79 | refs/heads/master | 2021-05-08T20:49:53.434859 | 2018-01-28T11:17:37 | 2018-01-28T11:17:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132,204 | py | # -*- coding: utf-8 -*-
import LINETCR
from LINETCR.lib.curve.ttypes import *
from datetime import datetime
import time, random, sys, ast, re, os, io, json, subprocess, threading, string, codecs, requests, tweepy, ctypes, urllib, urllib2, wikipedia, goslate
import timeit
from bs4 import BeautifulSoup
from urllib impor... | [
"noreply@github.com"
] | inctoolsproject.noreply@github.com |
e78b30fcb6695dc5625f9d11ac29bb5e123a5958 | eb278a6dc07e4a3476b530aa0159a63225e3f022 | /br2gm/parser.py | 6405d9e20f7fec0cab17bd2a04cba9d42504fe09 | [
"MIT"
] | permissive | vpavlin/br2gm | cf405adf3ab9b38c47b793363e9b44a86b144c78 | 7e9c5f293e119a263402728ad0f45149cfdcfa17 | refs/heads/master | 2020-03-26T18:34:58.660826 | 2015-04-14T08:48:28 | 2015-04-14T08:48:28 | 33,774,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | #!/usr/bin/env python
from __future__ import print_function
import os,sys
from bs4 import BeautifulSoup
import urllib2
class Parser():
soup = None
__songs_list = []
def __init__(self, url):
content = self.loadHtml(url)
self.soup = BeautifulSoup(content)
def loadHtml(self, url):
... | [
"vpavlin@redhat.com"
] | vpavlin@redhat.com |
75ad5176c48d5e8bb527d154f405e2ec09a96f3c | 1967b30267e5703c44da1283dfe91b252f48bf21 | /bin/easy_install-3.4 | 1e90abad76665012715c4126fa12b95e05cc0823 | [] | no_license | AlexanderMcNulty/evileye | 47ea9197609bfc81a6872c9317c5d05dd5cbbd80 | 11440037b8f2f7adabffe955d41482b248625d13 | refs/heads/master | 2021-05-14T09:47:23.149645 | 2018-01-09T22:06:49 | 2018-01-09T22:06:49 | 116,335,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | 4 | #!/home/ammc/evileye/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"alexander.mcnulty92@gmail.com"
] | alexander.mcnulty92@gmail.com |
2f64d7e54c25dc8d0acdd2ed35ea0961604697bd | 22fde560021d023cf77a99bc23471d6d8ad73931 | /esgf/parse2.py | ae7832e77bf52022bcc6b8d12709a518ecb8ff0a | [] | no_license | cmip6dr/requestReview | 4e886346d34b3ffbbfc7fcb092298d7b71db5589 | 4c12751c78a71ae0b5c325e6185432119f1d3018 | refs/heads/master | 2023-03-10T01:52:31.274954 | 2023-03-01T21:43:33 | 2023-03-01T21:43:33 | 136,451,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py |
ar6 = open( 'AR6_priority_variables_02.csv', 'r' ).readlines()
rr = open( 'RankedCmipVariables.csv', 'r' ).readlines()
ppp = [x.split('\t')[2].strip() for x in ar6 if len(x.split('\t')) > 2]
print( ppp[0] )
ss = set(ppp )
assert '3hr.huss' in ss
oo = open( 'p1_out.csv', 'w' )
for l in rr[1:]:
id = l.split(','... | [
"mjuckes@rslmj01.badc.rl.ac.uk"
] | mjuckes@rslmj01.badc.rl.ac.uk |
21332153db3487202c8f1fe8ae1cf61950134863 | 4d7f7f3afb954a46be8d0643b973e04f55b659d0 | /08 Other Common Tasks/import_random.py | 4eeca1af15d7eb245d04cdce1963bcd1edc454cd | [
"MIT"
] | permissive | gitter-badger/survival-python | 28d3566610bf494ecfe7912f0e538d731baa193f | c9c7f336ecd0b8196934386d334f53cd79cb7284 | refs/heads/master | 2022-12-23T07:44:08.711731 | 2020-01-08T01:56:12 | 2020-01-08T01:56:12 | 290,586,968 | 0 | 0 | MIT | 2020-08-26T19:30:48 | 2020-08-26T19:30:47 | null | UTF-8 | Python | false | false | 288 | py | import random
letters = ['a', 'b', 'c', 'd', 'e', 'f']
count = 0
while count < 10:
random_int = random.randint(0, 9)
random.shuffle(letters)
choice = random.choice(letters)
print('RandInt: {}, Shuffle: {}, Choice: {}'.format(random_int, letters, choice))
count += 1
| [
"prepxc@gmail.com"
] | prepxc@gmail.com |
26cfc889d7b6163db0344cbcb86c169815ade65c | 569fd2b3d67f67d6246a5d7544d949b1e510943e | /hw2/hw2_additional.py | 7d701724577befa70b1ec627bfb15b8a3bd71b69 | [] | no_license | melnikova12/PYTHON_2year | a97070a127a61218c3e6981745142e46d7ca021d | c53a389fb951f54aca8d512b9c397832a91df544 | refs/heads/master | 2020-03-28T05:32:42.268548 | 2019-06-13T10:16:51 | 2019-06-13T10:16:51 | 147,782,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | import json
import urllib.request
token = '13b9626cc3dc9e1b5f11fe0799be0923770da2ff'
print('Важное примечание: программа разделена отступами, поэтому для продолжения работы Enter нужно будет нажимать 2 раза')
#функция, которая получает на вход список репозиториев
def getting_users():
users = []
a = input('Вве... | [
"noreply@github.com"
] | melnikova12.noreply@github.com |
64468551b280b660478ce46441e8b4893ada4082 | 95b57cb90ea0625ede16679b0a6a324342c1ec28 | /stars/apps/ad/migrations/0001_initial.py | ad4709638085a107cff557befb20438d72f7dd3e | [] | no_license | lisongwei15931/stars | 2814f5cc9d08dd26a25048f91b27ff1607a659cb | 3d6198c2a1abc97fa9286408f52c1f5153883b7a | refs/heads/master | 2022-11-27T07:08:52.048491 | 2016-03-18T09:33:55 | 2016-03-18T09:33:55 | 54,242,594 | 0 | 0 | null | 2022-11-22T00:36:28 | 2016-03-19T02:10:35 | Python | UTF-8 | Python | false | false | 1,385 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='RollingAd',
fields=[
('id', models.AutoField(se... | [
"lisongwei1593@gmail.com"
] | lisongwei1593@gmail.com |
d793585dda84fb7a7352f30ab7d808f989a4c619 | 817b6bd0b18d5f93de46283bb961185a0b70e71f | /K2_Funding_Ticket/CTR_preprocess.py | 023e6566be40c1f93e1fcf3a78a7bbd7967e35a6 | [] | no_license | mattstirling/CTR_Recon | 5e75f07f39fdd20a02c380ba5d214695b63cc603 | fdf3633c936ecfc977814c04c7f03f0c325694bc | refs/heads/master | 2021-01-17T11:07:02.994311 | 2017-08-14T22:29:42 | 2017-08-14T22:29:42 | 52,452,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | '''
Created on Feb 23, 2016
@author: mstirling
'''
import pandas as pd, os, ConfigParser, re
from Map_Rules import apply_map_rule # @UnresolvedImport
def filename_to_RWyyyymmdd(filename):
match = re.search(r'.*_D_([0-9]{4})([0-9]{2})([0-9]{2})_.*',filename)
if match: return match.group(1) + '/' + m... | [
"mstirling@ScotiaFalcon"
] | mstirling@ScotiaFalcon |
5570b9a2b688c2bd3b579b6ef02e6f547264f598 | 4b30fa26f7c5dfb413950fc4dc9e4e89129944c4 | /euler015_v2.py | 6c79b525d39aad898e47c1e98c9b9c75c4ed8aba | [] | no_license | sadimauro/projecteuler | ca6f6cc3e8eac83bdb667c88a9b892923a3df57c | a07b71ecdf7f0cc7b53fcd021c67c5a7518d8571 | refs/heads/master | 2021-07-08T00:12:46.272408 | 2020-07-11T12:32:56 | 2020-07-11T12:32:56 | 143,607,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/python3
import time
tStart = time.time()
import math
def calcRoutes(m,n):
return int(math.factorial(m+n) / (math.factorial(m) * math.factorial(n)))
#for i in range(1,20):
# print(str(i) + " -> " + str(calcRoutes(i,i)))
print(__file__ + ": answer: " + str(calcRoutes(20,20)))
print("Run time: " + '{... | [
"steve@localhost.localdomain"
] | steve@localhost.localdomain |
73ec9580beeac6a40c205536e0df04b1b5544478 | c6a4716045e01eae2542702a9f35f5f0c66a5fb7 | /bars.py | fbace09c1291494faf647eb1bb122ccf1e33ad12 | [] | no_license | a05558/Code | a72ae14d6611ff8af91a1bc8ce98095e74d21434 | 8164967903990099ad3e0b0f69d4ea9225e1a22c | refs/heads/master | 2020-08-30T11:57:31.784698 | 2019-10-31T14:10:59 | 2019-10-31T14:10:59 | 214,753,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | #!/usr/bin/env python3
"""
Bars Module
===========
"""
def starbar(num):
"""Print * SplitLine
:arg num: lenght
"""
print('*' * num)
def hashbar(num):
"""Print # SplitLine
:arg num:Line Lenght
"""
print('#' * num)
def simplebar(num):
"""Print - Split Line
:arg num:Line Lenght... | [
"a05558@126.com"
] | a05558@126.com |
f151b257af1d0a1b944861e19b26624b83abf4f9 | 91ff804355b6101816f0980277dce07c4e845ee6 | /audio_splitter.py | 32c58bc34efdcb93bc81dbcc52809e3860dc4768 | [
"MIT"
] | permissive | productivity-in-tech/pit_transcriptor_amazon | f5e16342ccd5c2b3dc7caeb9bb1618c3f46f23ed | 0b9707765eb2912e4146df7ae16637fe95e31cca | refs/heads/master | 2023-08-03T08:35:29.534818 | 2020-04-11T19:24:31 | 2020-04-11T19:24:31 | 206,214,545 | 2 | 1 | MIT | 2023-07-22T15:16:53 | 2019-09-04T02:33:48 | HTML | UTF-8 | Python | false | false | 3,536 | py | from pathlib import Path
import boto3
import click
import json
import logging
import os
import requests
import shutil
import sys
import time
import typing
def start_transcription(
key,
*,
storage,
transcribe,
bucket,
ChannelIdentification=True,
lang='en-US',
... | [
"kjaymiller@gmail.com"
] | kjaymiller@gmail.com |
f81fdbd05eca974c4a3328021bab8e00dca44ae2 | 7e634099fe67db053ddebfb043203bf74c9bf6e7 | /coder-interview-guide/11-打印两个链表的公共部分.py | ade336965972ccfcb814d5ecbc9e300e05cbe5f0 | [] | no_license | longjiemin/Interviews-and-algorithms-python- | 40a2b0231f1a63437152ec200bf0a6b20d385c78 | 0d8ada1d8aacdfc826b30c48ee0d38935bf7b892 | refs/heads/master | 2020-03-13T20:11:40.146583 | 2018-10-15T12:47:00 | 2018-10-15T12:47:00 | 131,268,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 23 16:22:11 2018
@author: longjiemin
"""
#1
#打印两个有序列表的公共部分
#难度:一星
#说明:
#完成:
class list_node():
def __init__(self,data=None,next=None):
self.data = data
self.next = next
class LList(object):
def __init__(self,nums):
... | [
"longjiemin11@gmail.com"
] | longjiemin11@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.