repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aneeshpanoli/Algorithms | 2,087,354,124,083 | 8901a9bc8923ef6bf9465f7d54f23050af0f963b | e95eca04bb2a9eb647d3e00f1b2c947d061b1ffe | /smallest_missing_pos_num.py | 3b57977458de1f49537953210464cba6c59ccb9f | [] | no_license | https://github.com/aneeshpanoli/Algorithms | dcdcfe9f4a4fb3ad8581cb6cfa4fe93b8651b750 | a6d4273c0c70afe28364259b071d819757739ed2 | refs/heads/master | 2020-11-26T18:02:54.452773 | 2020-03-07T19:42:19 | 2020-03-07T19:42:19 | 229,167,690 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = Aneesh panoli
'''
find the smallest missing interger from an unsorted array
CONSTRAINTS:
- smallest postive integer MISSING
- unsorted array
EXAMPLE
- a = [-1, 2, 0, 3, 4] - > 1
-a = [1, 2, 3, 4] -> 5
- = [1, 2, 5, 6]
a = [-1]
CLARIFYING QUESTIONS
- are there duplicate numbers?
- are a... | UTF-8 | Python | false | false | 1,114 | py | 12 | smallest_missing_pos_num.py | 12 | 0.578097 | 0.547576 | 0 | 62 | 16.967742 | 59 |
laetitia-lac/RandomMeals | 5,686,536,745,200 | ccac0ba6dc51de3b90819d285b3cc2f5dd501514 | 4ff4634de74e8282567ab5cf16cd070bc722c7d8 | /src/main.py | d139cfebbaadda6e528f0d80f425270bc97e136c | [
"MIT"
] | permissive | https://github.com/laetitia-lac/RandomMeals | f48216327da6b1b6ecc19adae4c47806b42bda4b | 2787b6e3bc69a06efa50ebb217e3aa8dc46be430 | refs/heads/master | 2023-03-03T10:05:07.047201 | 2021-02-14T20:10:00 | 2021-02-14T20:10:00 | 298,839,721 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import random
import fpdf
from utils.logger import logger
def return_content_json_file(path_file):
with open(path_file, 'rb') as json_file:
return json.load(json_file)
def write_json_file(path_file, content_json):
with open(path_file, 'w') as json_file:
json.dump(content_json, ... | UTF-8 | Python | false | false | 4,776 | py | 6 | main.py | 2 | 0.64109 | 0.637736 | 0 | 112 | 41.598214 | 123 |
SayanNL1996/decorator_practice | 17,033,840,304,692 | a1c0a4faea2513f0fa36dbc1aa1f99bdeb7e8843 | c0fd307be93a0997f458c0a4a0a99b3f73d2b263 | /decorators(ex-8).py | cf0b4a39f5b9af53121b38a18c2460074fa71c3c | [] | no_license | https://github.com/SayanNL1996/decorator_practice | 86ebab2be7f878cb0530fbad10a01d0f37939fbd | 6d0403dde3508bbad3c862faece0367f571aaa12 | refs/heads/master | 2022-09-21T03:13:16.981966 | 2020-06-07T20:12:56 | 2020-06-07T20:12:56 | 270,326,901 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Descriptor:
def __init__(self):
self.__fuel_cap = 0
def __get__(self, instance, owner):
return self.__fuel_cap
def __set__(self, instance, value):
if isinstance(value, int):
print(value)
else:
raise TypeError("Fuel Capacity can only be an integ... | UTF-8 | Python | false | false | 869 | py | 4 | decorators(ex-8).py | 4 | 0.559264 | 0.547756 | 0 | 36 | 23.138889 | 108 |
MohamedAl-Hussein/FIFA | 1,194,000,946,090 | 1f777cc27707d9da1dba193ff2573300577a7b8b | 68f19e39de7dc5b716cb21791ac3e41a2979cbc6 | /Docker/dags/archives/initdb_proxies.py | 9a623d9cae45dfe8c4ec69f554ec26bca3366885 | [] | no_license | https://github.com/MohamedAl-Hussein/FIFA | 71b1da6ca6d11ed819bafa61c31ba3bdfbaa3994 | f226bd93de0d05e6a4e6abb0c72fe4636705ea65 | refs/heads/master | 2021-06-23T12:08:07.318683 | 2020-12-29T01:43:38 | 2020-12-29T01:43:38 | 182,483,450 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # from datetime import datetime, timedelta
#
#
# default_args = {
# 'owner': 'airflow',
# 'depends_on_past': False,
# 'start_date': datetime.today(),
# 'email_on_failure': False,
# 'email_on_retry': False,
# 'retries': 1,
# 'retry_delay': timedelta(minutes=2)
# }
#
# with DAG(
# d... | UTF-8 | Python | false | false | 670 | py | 63 | initdb_proxies.py | 57 | 0.555224 | 0.550746 | 0 | 25 | 25.8 | 68 |
flavone/DesignAndTestFramework | 5,136,780,927,777 | fdd7d1e383255399ba128bdc61ba6aaa9021a1ff | d14d2f1d0be2098be214cfb5793158fb27160f90 | /app.py | 5bff0f20621275987263a95eeda4fe2aec6adf26 | [] | no_license | https://github.com/flavone/DesignAndTestFramework | 5f4e23b71a344f2aee6337d243b98862979d83d0 | 61cdae8795483ea5ed052571c407136cf52178c1 | refs/heads/master | 2020-03-26T23:26:43.117535 | 2018-09-05T09:18:26 | 2018-09-05T09:18:26 | 145,542,337 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask
from apis._api import api
from ENV import *
from apis.case_design_api import *
from pylab import *
mpl.rcParams['font.sans-serif'] = ['SimHei']
app = Flask(__name__)
app.register_blueprint(api, url_prefix='/api')
app.config['JSON_AS_ASCII'] = False
if __name__ == '__main__':
app.run(host... | UTF-8 | Python | false | false | 350 | py | 23 | app.py | 20 | 0.68 | 0.68 | 0 | 15 | 22.333333 | 46 |
DEMIDOB/Dassi | 17,583,596,123,956 | 403d4f6a0bc67ba4213ce70911a7d6516171e434 | 3057614ed30c4e892e08d5e23db1e0675c84911a | /change_baa.py | f171f40f154bf61b4f540d2d7923e5c562f67dc1 | [] | no_license | https://github.com/DEMIDOB/Dassi | 6ec997f640df85b5027ec2a320728a134d57ae43 | 004008ee109ee1e58db90b40ab8021c81884e746 | refs/heads/master | 2020-08-04T07:49:59.520853 | 2020-06-03T11:15:59 | 2020-06-03T11:15:59 | 212,062,204 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import os
to = input("New backendaddr: ")
pw = input("Your password: ")
current_site = "https://demidob.000webhostapp.com/" # current_site = http://demidob.ml/
response = requests.post(current_site + "dassi/backendaddr/change.php", data={'pw':pw, 'to':to})
if response.status_code == 200:
print(str... | UTF-8 | Python | false | false | 391 | py | 31 | change_baa.py | 29 | 0.703325 | 0.682864 | 0 | 11 | 34.636364 | 96 |
minimalgeek/SQM-Model | 12,051,678,240,808 | f4918edab091211e34ac91cc5802e82b0293b2d1 | dbe5968be87bf4600b69144468f669684993e9ce | /hu/farago/eum2/dto/Player.py | e1bfc5914cd035af2944e4ed4962ed15a30aed16 | [] | no_license | https://github.com/minimalgeek/SQM-Model | a1710f135cd72744a46912987ba662ca3d70d819 | 073d1b94edfdd5c430a4e7ed533ff233eee1ed1e | refs/heads/master | 2021-01-21T03:41:03.445575 | 2016-08-03T14:47:30 | 2016-08-03T14:47:30 | 49,877,490 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on 2016 máj. 19
@author: Balázs
'''
import collections
class Player():
'''
Player of EUM
'''
previousPosition = None
name = None
capability = None
position = None
salience = None
def __init__(self, name, capability, position, salience):
self.name = n... | UTF-8 | Python | false | false | 1,351 | py | 36 | Player.py | 26 | 0.60341 | 0.596738 | 0 | 50 | 26 | 108 |
ngocyen3006/learn-python | 2,113,123,935,467 | 489f2c657c6e30ad40f072a944b45587ded18fcb | 28129a9c44f3891eb5b3ce8c7fc530252b1c3840 | /firecode.io/Level_03/array_partition.py | 77fb0677e88290cc40b79cbe0ef6b57db339770e | [] | no_license | https://github.com/ngocyen3006/learn-python | 55eeb221f5a836ebee8c197fc3fddf6c585f02a6 | ec2f35a87f846385f7353e7ef4900e5f80cfdb0a | refs/heads/master | 2020-03-26T16:35:59.151230 | 2019-05-08T07:26:50 | 2019-05-08T07:26:50 | 145,112,258 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Array Partition
def find_partitions(input_list):
res = []
n = input_list[0]
i = 1
while i < len(input_list) and input_list[i] == input_list[i - 1] + 1:
i += 1
try:
if n == input_list[i - 1]:
res.append(n)
else:
res.append(str(n) + "-" + str(input_li... | UTF-8 | Python | false | false | 801 | py | 346 | array_partition.py | 315 | 0.450687 | 0.387016 | 0 | 33 | 23.272727 | 73 |
elvinMark/emmv | 15,015,205,676,734 | bc6aa1829fb9c9fdf4465fc2b1f4974a7c25fcf0 | 02fddf4807f45490a6eb63dbedecf4a9ace2758d | /Caja/src/tmp/caja.py | 23e50bf9a1dc82b962c25761f102a89f0761f8a8 | [] | no_license | https://github.com/elvinMark/emmv | 91c4464e67a79a86dc45b159aa9c54b123c4adc7 | 20543b50e6f4ddb8bb1c2dd711fa361b9eff3bff | refs/heads/master | 2023-08-01T03:13:41.439204 | 2021-09-17T05:48:17 | 2021-09-17T05:48:17 | 407,139,242 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './ui/caja.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Main... | UTF-8 | Python | false | false | 7,725 | py | 59 | caja.py | 38 | 0.732039 | 0.726214 | 0 | 133 | 57.082707 | 114 |
zziri/study | 12,970,801,238,770 | c4283ea829dc12378e1166f6489b0bba3f443c5e | 323eb296cbf740ad6bf678fb15e48f0315b66824 | /ps/BOJ/16194 카드 구매하기 2.py | 598bc9c6e24ecffcc56932b02784690bc042dee3 | [] | no_license | https://github.com/zziri/study | 0da83d87247dafb1083b6068e9b6354cb960af0c | b0eded396c5201283db2d7f45b66d19d3f2831b4 | refs/heads/master | 2023-03-26T23:47:13.699539 | 2021-03-25T01:19:40 | 2021-03-25T01:19:40 | 152,895,651 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
def solution(n, p):
dp = [987654321]*(n+1)
dp[0] = 0
for i in range(1, n+1):
for j in range(1, i+1):
dp[i] = min(dp[i], dp[i-j] + p[j])
return dp[n]
def main():
# input
n = int(input())
p = [0]
for item in list(map(int, input().split())):
p.app... | UTF-8 | Python | false | false | 444 | py | 225 | 16194 카드 구매하기 2.py | 218 | 0.441441 | 0.403153 | 0 | 24 | 17.458333 | 48 |
yigitozgumus/IACV_Project | 2,860,448,241,454 | 33fd50f3ebc54c948faff41a5d25565a35b310d9 | 71e15712c6583d7c1ae1b24e42dbd8ddb5872e66 | /models/cvae_denoiser.py | b60c86e765ef5c046b007af28b84e6d798396bea | [
"MIT"
] | permissive | https://github.com/yigitozgumus/IACV_Project | 4968fc1e4a95b5f05dcf164fb5b2749326095343 | 0e012139a33c76ca88505c28270f1250181ec701 | refs/heads/master | 2020-04-15T20:57:43.285117 | 2019-06-23T13:23:15 | 2019-06-23T13:23:15 | 165,015,589 | 0 | 0 | MIT | false | 2019-06-21T19:34:02 | 2019-01-10T07:53:04 | 2019-06-21T13:45:00 | 2019-06-21T19:34:02 | 2,483 | 0 | 0 | 0 | Python | false | false | from base.base_model import BaseModel
import tensorflow as tf
from utils.utils import get_getter
import numpy as np
class CVAEDenoiser(BaseModel):
def __init__(self, config):
super(CVAEDenoiser, self).__init__(config)
self.build_model()
self.init_saver()
def build_model(self):
... | UTF-8 | Python | false | false | 19,660 | py | 37 | cvae_denoiser.py | 10 | 0.514802 | 0.502238 | 0 | 432 | 44.509259 | 112 |
mrijken/poetry | 257,698,049,612 | 173d5c950ef57e77137ca80802b02a05f6b6febb | bf882815b85c7b6143f299144a6bedbfb5b9b7f3 | /poetry/utils/_compat.py | 937f9b300e6135a3b1897a6eebb37356eb614400 | [
"MIT"
] | permissive | https://github.com/mrijken/poetry | 7ae86534f350182fdbad0a5966e1dffb6a914a14 | e445ec4f718fa2933a3a20025e24d2352a61634a | refs/heads/master | 2023-01-06T12:54:54.138125 | 2020-11-08T15:50:55 | 2020-11-08T15:50:55 | 285,694,028 | 1 | 1 | MIT | true | 2020-08-06T23:46:10 | 2020-08-06T23:46:10 | 2020-08-06T23:00:31 | 2020-08-06T22:45:56 | 10,556 | 0 | 0 | 0 | null | false | false | import sys
try:
from functools32 import lru_cache
except ImportError:
from functools import lru_cache
try:
from glob2 import glob
except ImportError:
from glob import glob
try:
import zipfile as zipp
from importlib import metadata
except ImportError:
import importlib_metadata as metadat... | UTF-8 | Python | false | false | 8,804 | py | 88 | _compat.py | 73 | 0.596547 | 0.589278 | 0 | 290 | 29.358621 | 86 |
leezqcst/rs | 12,524,124,676,432 | 016c7716a053b81df6fa833519c3217668b6dad1 | 21e84366ef36fb7aca1657473ac978f962f3b4ea | /rs/CBR/test.py | 540d56329b3bc8313824b6a80819e8ddd127744b | [] | no_license | https://github.com/leezqcst/rs | c53831e51df71a43797d90bd8ddf3b448e5e5186 | 5adf8a667e00f2c3cdc412cb5c429b702046f28b | refs/heads/master | 2021-01-22T10:40:11.459008 | 2015-12-31T05:27:14 | 2015-12-31T05:27:14 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
sys.path.append('./..')
from docs import Documents
from CBR import CBR
def show_news_create_time():
global x
local_news = x.get_all_info()
for line in local_news:
print line.get_create_time()
def test_encoding():
s... | UTF-8 | Python | false | false | 2,901 | py | 23 | test.py | 21 | 0.58244 | 0.569305 | 0 | 98 | 28.5 | 107 |
kazusa4418/PythonTraining | 7,851,200,251,743 | af7b6313244d87d8b6564d16643eccf72f501a69 | f7e1e2657fa4636e2ff8769a3ee4113c2697fd3a | /set-in.py | 61a8bcf85f8b44f4ced053539bda0300d89d472d | [] | no_license | https://github.com/kazusa4418/PythonTraining | 1ae868252bd921d985c034ad2a5d6ccb6cdc190e | 0560c229073f85f0c6988dce73bcb384acd681ae | refs/heads/master | 2021-04-18T20:01:14.137835 | 2018-04-09T19:14:49 | 2018-04-09T19:14:49 | 126,890,943 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # box3 にベンチが入っているか調べる
box3 = {"ハンマー", "釘", "ベンチ"}
flag = "ベンチ" in box3
print(flag)
| UTF-8 | Python | false | false | 133 | py | 20 | set-in.py | 19 | 0.626506 | 0.590361 | 0 | 4 | 19.75 | 27 |
adamkittel/src | 3,092,376,474,675 | a3b4bce654bbfe849c30e52ab659cfe8c769b9d3 | 75e03232591b263a50523d7cfef4041db36caf01 | /VMWsolutions/at2-vclient-032/cft/stress_netbounce_sequential.py | 518e1c83ba827aa06f96eff5a194894f1e8f401f | [] | no_license | https://github.com/adamkittel/src | aaf157062d069998a8d18841895e7362cf868ff9 | 11e3927bd990b885eba595346694de2d2601d5c9 | refs/heads/master | 2021-01-11T16:13:14.592894 | 2017-01-25T18:29:09 | 2017-01-25T18:29:09 | 80,040,934 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
This action will preform a Sequential netbounce stress test
When run as a script, the following options/env variables apply:
--mvip The managementVIP of the cluster
SFMVIP env var
--user The cluster admin username
SFUSER env var
--pass The cluster admin ... | UTF-8 | Python | false | false | 15,928 | py | 489 | stress_netbounce_sequential.py | 296 | 0.57716 | 0.574272 | 0 | 363 | 42.878788 | 272 |
Diego0103/PracticaIf | 2,576,980,391,848 | 7abc1d3c891b81c0093e718f2e11acb3a35a20e8 | 124f395f3b82b6738d9b3906b6d9f7292a7a4a3c | /assignments/PruebasBasicas/src/exercise.py | d16ef71089bcc92334aac4695963dc0f08b81d67 | [] | no_license | https://github.com/Diego0103/PracticaIf | bb1c542289b6b4b78e9c1663c598b18f21313d32 | d4a1016ff98e1b7f7e8117230cbd3c0fddc9de7b | refs/heads/main | 2023-07-17T03:47:25.019751 | 2021-08-30T04:21:05 | 2021-08-30T04:21:05 | 399,971,151 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def main():
#escribe tu código abajo de esta línea
edad = int(input("Cual es tu edad?"))
if edad>=18:
print("Es mayor de edad")
else:
print("Es menor de edad")
if __name__=='__main__':
main()
| UTF-8 | Python | false | false | 233 | py | 5 | exercise.py | 5 | 0.536797 | 0.528139 | 0 | 11 | 20 | 42 |
YINGHUOQRIN/shadowsocks-munager-1 | 11,665,131,223,992 | a77d746e5577358abaaf491dd1708aa7b4471aeb | f58e62569840d1351e0d9611ded9c8f164801aff | /Munager/SpeedTestManager/__init__.py | d5002087fedb64a63344fc7a6d0a2a2e184f6a5f | [] | no_license | https://github.com/YINGHUOQRIN/shadowsocks-munager-1 | 9b6f43d08fa2431826bb7ff05bbf8c3dc302fe90 | d6e664bc041c41d5cd8dcad4a59265f3a6a8d84a | refs/heads/muapi | 2020-04-16T09:40:06.819732 | 2019-01-07T03:35:16 | 2019-01-07T03:35:16 | 165,472,800 | 1 | 2 | null | true | 2019-01-13T06:18:47 | 2019-01-13T06:18:46 | 2019-01-13T06:18:42 | 2019-01-07T09:17:10 | 13,547 | 0 | 0 | 0 | null | false | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import logging
import time
import sys
import os
from .speedtest import Speedtest
def speedtest_thread():
logging.info("Speedtest starting...You can't stop right now!")
CTid = 0
speedtest_ct = Speedtest()
speedtest_ct.get_servers()
servers_list = []
for... | UTF-8 | Python | false | false | 3,173 | py | 4 | __init__.py | 2 | 0.514025 | 0.493854 | 0 | 96 | 32.052083 | 79 |
davidbernick/djangotest | 7,679,401,553,158 | ad95583e14ab2ba1b50cc4aacef9d1f84e60b9db | f6e829f75f7b293ca4e6a5b5253d8c34685bcd11 | /setup.py | 7c13592c6d05e2cec51f7561c4a77ccfaaf9cfe6 | [] | no_license | https://github.com/davidbernick/djangotest | 15fce3f56095ab6b071670f65f44790b57247136 | 1b192afafe61cc97814e095666a3c1044bbc1e57 | refs/heads/master | 2021-01-17T04:51:03.570874 | 2014-06-23T14:25:47 | 2014-06-23T14:25:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='DjangoTest',
version='1.0',
description='DjangoTest',
author='David Bernick',
author_email='dbernick@gmail.com',
install_requires=['django',
'django-guardian',
'boto',
... | UTF-8 | Python | false | false | 563 | py | 10 | setup.py | 8 | 0.442274 | 0.436945 | 0 | 21 | 25.857143 | 44 |
lucassilva-dev/codigo_Python | 19,542,101,218,818 | ebdf14078ded6f66fa4eea11aa3422ab5fd5f6bb | 4491270a0e3754a959cd7582db51bb08583e00f3 | /ex028.py | 8ba1f67140f12aa45d62ea1ca93a3c1eb2c16f56 | [] | no_license | https://github.com/lucassilva-dev/codigo_Python | b6f1b24c08336fe121000b24204fd1cf2b728a8b | 68fc9901cc8550085e1dee893d30634ac05b9c1d | refs/heads/master | 2023-04-02T02:17:03.768906 | 2021-04-07T00:41:29 | 2021-04-07T00:41:29 | 355,367,151 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
sorte = [0, 1, 2, 3, 4, 5]
resultado = random.choice(sorte)
usuario = int(input('Eu pensei em um número entre 0 a 5.Qual é? '))
if usuario == resultado:
print('Você acertou parábens')
else:
print('Você errou o número correto é {} !'.format(resultado))
| UTF-8 | Python | false | false | 282 | py | 99 | ex028.py | 98 | 0.672727 | 0.643636 | 0 | 8 | 33.375 | 68 |
ahmadmoaaz2/Services | 2,413,771,647,591 | d34190aa107b2eccf2e2a36cbb3a97b001a333c1 | 171f2f676911283f250c7c9c71f85983cde452e5 | /StorageService/food_and_water_readings.py | 80b3423b19faa9ed4b1fc69b647a0ef9b04d805d | [] | no_license | https://github.com/ahmadmoaaz2/Services | 68824ecf763a8c6b59d475712fb2ff06f7f3e8f3 | 5b05c9ff1bcdfeda3ee118ea007b7b999e739b55 | refs/heads/main | 2023-05-02T00:21:42.380305 | 2021-05-25T19:06:32 | 2021-05-25T19:06:32 | 306,156,435 | 0 | 0 | null | false | 2020-10-21T22:07:28 | 2020-10-21T21:52:58 | 2020-10-21T22:04:54 | 2020-10-21T22:07:28 | 0 | 0 | 0 | 0 | null | false | false | from sqlalchemy import Column, Integer, String
from base import Base
from datetime import datetime
class FoodAndWaterReadings(Base):
""" Food and Water Readings Class """
__tablename__ = "food_and_water_readings"
id = Column(Integer, primary_key=True)
name = Column(String(250), nullable=False)
v... | UTF-8 | Python | false | false | 2,007 | py | 29 | food_and_water_readings.py | 17 | 0.599402 | 0.55157 | 0 | 56 | 34.839286 | 144 |
ekagarwala/codingChallenges | 8,220,567,442,002 | 49b408ca31f983a3545f40e36daee6ad0e0f8432 | 1df43e0bb58a2349f7196f455e69da7969e19e8e | /equality/equality.py | b341984396c94748427f395ff0de1191f97919b4 | [] | no_license | https://github.com/ekagarwala/codingChallenges | c4dfd4d60866fb90422d0f9a4b37db55a76eba23 | d94d069e8d6e3dbb3daa7cbe3a78c0f19977bb1f | refs/heads/master | 2021-01-12T13:23:40.398202 | 2016-09-24T02:40:35 | 2016-09-24T02:40:35 | 68,974,612 | 0 | 0 | null | false | 2016-09-24T02:40:35 | 2016-09-23T00:52:51 | 2016-09-23T01:42:32 | 2016-09-24T02:40:35 | 4 | 0 | 0 | 1 | Python | null | null | import os
import re
os.chdir("e:\\repos\\codingChallenges\\data")
message = ''
possibilities = []
with open('../data/equality.txt', 'r') as inFile:
inText = inFile.readlines()
pat = re.compile("[a-z][A-Z]{3}[a-z][A-Z]{3}[a-z, \n]")
for line in inText:
match = re.search(pat, line)
if match is not None:
... | UTF-8 | Python | false | false | 447 | py | 3 | equality.py | 3 | 0.615213 | 0.60179 | 0 | 19 | 22.526316 | 67 |
thiago-ximenes/curso-python | 13,804,024,917,302 | 2fbf23c530922b0fd0cf4838dd4cd9a75f0e3890 | 15172fb42c923513108b09a32d7f6dc242d420b3 | /pythonexercicios/ex090.py | 230dd251a2caea795c2bc4c7434722a9e9fabed3 | [] | no_license | https://github.com/thiago-ximenes/curso-python | 05fa3501972e878c4d0e8ffb07af5e86efdd6859 | f0a1b98c42c9ff7329344a15460b20b577345b80 | refs/heads/master | 2023-06-21T03:26:37.992969 | 2021-07-27T21:27:04 | 2021-07-27T21:27:04 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | aluno = {}
aluno['nome'] = str(input('Nome: ')).strip().title()
aluno['média'] = float(input(f'Média de {aluno["nome"]}: '))
if aluno['média'] >= 7:
aluno['situação'] = 'Aprovado'
elif aluno['média'] < 5:
aluno['situação'] = 'Reprovado'
else:
aluno['situação'] = 'Recuperação'
print('-=' * 20)
print()
for k,... | UTF-8 | Python | false | false | 403 | py | 138 | ex090.py | 137 | 0.565217 | 0.549872 | 0 | 15 | 25.066667 | 60 |
cyrus723/ml_python_micheal_bowles | 15,616,501,105,250 | d9b1b58543cbf52cd338fa5d9fddb8ef2fe094ac | 1151021d25349882ee81b4164fe38033d72db2f3 | /chapter2/code/listing2-5.py | 4ca067d0d0a137fea825373b1378bdc33833e79f | [] | no_license | https://github.com/cyrus723/ml_python_micheal_bowles | cd105e9c91fc0153a9b5a95138566a0142a89658 | 162df5676089788d6cd2e99a4bf865b79876df2f | refs/heads/master | 2022-03-29T23:10:44.432082 | 2018-08-10T13:27:57 | 2018-08-10T13:27:57 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.pyplot as plt
import os
import pandas as pd
from pandas import DataFrame
datafile = os.path.join(os.getcwd(),
'../../datasets/sonar.all-data')
rocks_v_mines = pd.read_csv(datafile, header=None, prefix='V')
# Print head/tail of data frame
print(rocks_v_mines.head())
print(roc... | UTF-8 | Python | false | false | 389 | py | 54 | listing2-5.py | 46 | 0.691517 | 0.691517 | 0 | 16 | 23.375 | 62 |
ksteph/cs61a-lab-reports | 3,590,592,699,790 | c0dcebb26885e4bde5e2d8b21420476209df8406 | 86e494f01e9af426fd4bda0167492f78009ec8db | /no_spark/lab_report.py | 6d54b858bd85ce2464ae6870bbb20a0e250ce4b7 | [] | no_license | https://github.com/ksteph/cs61a-lab-reports | 35ad3e719bac5e01c48868888b696565a37af322 | 7fc42823cdf344e79f7b72bcd54929054000834c | refs/heads/master | 2020-04-06T04:28:59.520568 | 2015-09-25T01:01:36 | 2015-09-25T01:01:36 | 41,571,165 | 1 | 0 | null | false | 2015-09-08T21:18:51 | 2015-08-28T22:03:25 | 2015-09-04T20:27:07 | 2015-09-08T21:18:51 | 196 | 0 | 0 | 0 | Python | null | null | import sys
import numpy as np
import datetime
import os
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import data_reader
import toolkit
def usage_information():
info = 'Lab report generator for CS61a\n'
info += 'Usage: lab_report.py <data_file_directory> <lab_name>'
return info
if... | UTF-8 | Python | false | false | 9,812 | py | 9 | lab_report.py | 4 | 0.627395 | 0.612311 | 0 | 236 | 40.576271 | 163 |
elishevasheinin/DNA-command-prompt | 8,186,207,710,052 | fe6e4b0a6e0c7484baf88190eb41a602153a0cf0 | ee8da0c94006f8cbf96716bdbb15c7d7ef07573c | /Analysis/__init__.py | 20c28462fbfe498cfc3fdefb15ddfafb21860f8e | [] | no_license | https://github.com/elishevasheinin/DNA-command-prompt | 6d2a0e7ebc139a0bb5cab444c3e53421dc6bde3a | ed336e2dc409e99f1ae825da039e2cb495a7a7ec | refs/heads/master | 2023-06-17T18:41:40.301627 | 2021-07-18T13:14:16 | 2021-07-18T13:14:16 | 387,178,072 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from .count import Count
from .find import Find
from .find_all import FindAll
from .len import Len
| UTF-8 | Python | false | false | 101 | py | 36 | __init__.py | 34 | 0.772277 | 0.772277 | 0 | 4 | 23.75 | 29 |
kkraoj/wildfire-risk-treehacks | 19,155,554,152,486 | 85d7eef52218a2d0c4b38990448d55ed6b90146f | d0419a9e083073b052faa78a17566f5e4e77f343 | /save_map_as_tif_p27.py | 62131c0b7464ea6d2a3a19e66c5fb7f00105618f | [] | no_license | https://github.com/kkraoj/wildfire-risk-treehacks | e9641ea7aedeb3294bcf59486849aff6ccde1e3e | a99916d7454535ad9243b9f78e378914fa5b68d3 | refs/heads/master | 2021-01-05T05:26:27.308794 | 2020-03-16T02:55:05 | 2020-03-16T02:55:05 | 240,896,391 | 4 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 13 07:14:21 2019
@author: kkrao
"""
import numpy as np
import pandas as pd
from osgeo import gdal
from osgeo import gdal_array
from osgeo import osr
import matplotlib.pylab as plt
from datetime import datetime
for MoY in range(7, 8):
date = '2018-%02d-01'%(MoY)
... | UTF-8 | Python | false | false | 2,994 | py | 9 | save_map_as_tif_p27.py | 8 | 0.608884 | 0.583834 | 0 | 73 | 40.013699 | 189 |
kennedyCzar/AlphabetSoup-Using-Django | 11,330,123,769,060 | 0f765c0e055a23b6951d9a09ff734b4e59361867 | a8a879c5c2df2ca20c184ca9fb0c305a1d036110 | /SCRIPT/BST_SecondlargeVal.py | c4a885feff24de17f7d3840039edbed9732d6efd | [
"MIT"
] | permissive | https://github.com/kennedyCzar/AlphabetSoup-Using-Django | f749ba065f5c3fbed734d505a4169ba72c273980 | 4503cbfe9d0c9f9d8bfa1ae03c2da76537781e52 | refs/heads/master | 2020-03-26T11:49:20.681476 | 2019-09-04T13:37:33 | 2019-09-04T13:37:33 | 144,861,469 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 20 18:44:33 2019
@author: kenneth
"""
'''
Given the root to a binary search tree,
find the second largest node in the tree.
'''
def largestNode(rootNode):
currentNode = rootNode
while currentNode:
if not currentNode.right:
... | UTF-8 | Python | false | false | 880 | py | 18 | BST_SecondlargeVal.py | 15 | 0.653409 | 0.6375 | 0 | 33 | 25.69697 | 91 |
easync/ao-api-samples | 16,801,912,088,167 | ba03ef5ccc16768534d23fa234886c4751afe55f | a15b7fa8f91badc1a25a3267e9ac112f050d321a | /python/place_an_order.py | 9969a40caf4d2221e420d4ad51e7e7e593023fad | [] | no_license | https://github.com/easync/ao-api-samples | 15c15bb79481390549918c5dbd073bacb13aaea7 | 096a5e5eb971e0af59bd6345d4146b84ba6de660 | refs/heads/master | 2021-09-13T08:39:07.351591 | 2018-04-27T07:09:00 | 2018-04-27T07:09:00 | 117,698,736 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import json
true = True
false = False
API_TOKEN = '00000000-0000-0000-0000-000000000000'; #SEE https://app.easync.io/api for details
RETAILER = 'amazon';
PRODUCT_ID = 'B01K7C0CSA'; # Amazon US
# PRODUCT_ID = 'B01BRC1ZYE'; # Amazon DE
# PRODUCT_ID = 'B00V6C5Z0Q'; # Amazon UK
# PRODUCT_ID = 'B010S9M3L... | UTF-8 | Python | false | false | 1,970 | py | 8 | place_an_order.py | 4 | 0.593401 | 0.521827 | 0 | 86 | 21.918605 | 102 |
grzesiu/hackerrank | 1,382,979,486,877 | 5e58b4bb74defd51f95ef601f48bf3577515fa7a | 757274035404da163ff110f9da964094abe38657 | /algorithms/strings/special-palindrome-again.py | 02aaee752593d1768d777a1ed60cee5ab3fe55ae | [] | no_license | https://github.com/grzesiu/hackerrank | 4ecc8c1df85372bfbd68e30caa3c56e130764e75 | a1a88a0cae50a0045e7b90c4582d02f9172509ef | refs/heads/master | 2020-04-06T17:47:08.062466 | 2019-11-07T20:10:20 | 2019-11-07T20:10:20 | 75,977,143 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def get_counts(n, s):
counts = [[s[0], 1]]
for i in range(1, n):
if counts[-1][0] == s[i]:
counts[-1][1] += 1
else:
counts.append([s[i], 1])
return counts
def count_same(counts):
sums = [0]
for i in range(1, max(list(zip(*counts))[1]) + 1):
sums.appen... | UTF-8 | Python | false | false | 828 | py | 104 | special-palindrome-again.py | 71 | 0.502415 | 0.468599 | 0 | 31 | 25.709677 | 70 |
brennv/graphql-pynamodb | 13,752,485,295,654 | 2ccaa4e4202e493ab54ef49f1c1a7e07720146f3 | 0b4d5ddb14925ed9e0d051be89410936d7e0ef73 | /graphene_pynamodb/relationships.py | cca280dcf7aced67fe49bab7c6c8d9ee643bd127 | [] | no_license | https://github.com/brennv/graphql-pynamodb | 7d356d828bf1cf68573232d8cf2ab97990885e74 | c9a2827aaa84950ee15a51a5cade3570634fa6fa | refs/heads/master | 2021-01-11T04:35:36.393720 | 2016-10-17T10:44:04 | 2016-10-17T10:44:04 | 71,157,597 | 1 | 0 | null | true | 2016-10-17T16:16:57 | 2016-10-17T16:16:56 | 2016-10-14T23:19:29 | 2016-10-17T10:44:09 | 65 | 0 | 0 | 0 | null | null | null | from pynamodb.attributes import Attribute, NumberAttribute
from pynamodb.constants import STRING, STRING_SET
from pynamodb.models import Model
from six import string_types
from wrapt import ObjectProxy
class RelationshipResult(ObjectProxy):
_key = None
_key_name = ''
_model = None
def __init__(self, ... | UTF-8 | Python | false | false | 3,848 | py | 8 | relationships.py | 5 | 0.607848 | 0.607848 | 0 | 109 | 34.302752 | 118 |
kebitmatf/LearnTF | 13,065,290,532,266 | 81c2ac7f8ce1bbc3bcefaf95fc9b3e54c290fb35 | b77dc74e17f9f8e6cdb49ad329b8b17e6c4334f9 | /art_test.py | 69a9ff61826b71c03bd74ccb10c3f3a5b95f07c7 | [] | no_license | https://github.com/kebitmatf/LearnTF | e58bdccc07e4b049268381d0215ad68875551e7d | d400da5e0bb9e215521b6722b38f64824293392a | refs/heads/master | 2021-01-01T15:27:36.887491 | 2017-07-26T13:02:31 | 2017-07-26T13:02:31 | 97,622,738 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 21 13:47:11 2017
@author: SEA
"""
import os
import tensorflow as tf
import scipy.io as io
import scipy.misc as misc
import matplotlib.pyplot as plt
import numpy as np
import time
path_vggmodel = 'imagenet-vgg-verydeep-19.mat'
path_style = 'images/guernic... | UTF-8 | Python | false | false | 8,825 | py | 8 | art_test.py | 7 | 0.526232 | 0.455864 | 0 | 262 | 31.381679 | 112 |
matbur/advent-of-code | 8,134,668,061,173 | 89ee762e13bfab81bae28ead8a3b04885237af25 | b2cb4a420350f2bf4e0ef8b8c84ba099f52213b5 | /2017/03/part1.py | 03fe6e847e930454f515c0532edb27042c451bea | [
"MIT"
] | permissive | https://github.com/matbur/advent-of-code | 67fbbf55d1fec636994fdf7b98fd9fb491a93999 | f4f1fbcd3d733c057b0097c163a0d648a45cc6cc | refs/heads/master | 2021-05-01T15:58:48.375122 | 2020-12-12T15:23:09 | 2020-12-12T15:23:09 | 121,041,774 | 0 | 0 | MIT | false | 2021-04-20T21:16:28 | 2018-02-10T18:22:35 | 2020-12-12T15:23:29 | 2021-04-20T21:16:27 | 88 | 0 | 0 | 1 | Python | false | false | #!/usr/bin/env python3
def foo(N):
d = [0, 0, 0, 0]
s = 1
for i in range(2, N + 1):
n = i // 2
d_i = (i - 2) % 4
sn = s + n
if sn == N:
d[d_i] += n
break
elif sn < N:
d[d_i] += n
s += n
else:
d[d_i]... | UTF-8 | Python | false | false | 581 | py | 27 | part1.py | 26 | 0.347676 | 0.290878 | 0 | 33 | 16.606061 | 35 |
akostyuk/flask-dbmigrate | 9,105,330,693,493 | 809cc3015f932dd75c51aa0fa8abf2a3f406a167 | 1c7a886a068f433d1fe9c0b76c6f77976098d5e1 | /tests.py | 3a62f2b9323be40396da4e1ae1e4dcf4efcd3251 | [
"Apache-2.0"
] | permissive | https://github.com/akostyuk/flask-dbmigrate | e29e651497d225cedcfb094111ed5e4631fc4213 | e7461a4e066420f78161316d49eb4099955505b0 | refs/heads/master | 2016-09-06T13:45:35.369523 | 2013-03-07T20:42:23 | 2013-03-07T20:42:23 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import re
import sys
import unittest
import logging
from shutil import rmtree
from StringIO import StringIO
from flask import Flask
from flask.ext.script import Command, Manager
from flask.ext.sqlalchemy import SQLAlchemy
from sqlalchemy.engine.reflection import Inspector
from flask_dbmigrate import DBMigr... | UTF-8 | Python | false | false | 17,413 | py | 4 | tests.py | 2 | 0.602998 | 0.599322 | 0 | 562 | 29.983986 | 76 |
borgbackup/borg | 11,235,634,486,824 | cfe1246f12a30fb2bc00c6d3604c3882ae592017 | fb05fb9f9f7fe7eb91072ad62c10200cae10acc6 | /src/borg/testsuite/archiver/patterns.py | c4863bb94fe90ffe1df72f4e319f8a8970c145b6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/borgbackup/borg | c83f2a34e8bcc19859e9696a9425cbf4e23a743c | 4ded3620c5e9cd930d2e07e912af6c894abe6d5d | refs/heads/master | 2023-09-03T20:36:44.300124 | 2023-09-03T18:49:50 | 2023-09-03T18:49:50 | 35,517,126 | 10,379 | 1,053 | NOASSERTION | false | 2023-09-14T21:52:33 | 2015-05-12T23:10:47 | 2023-09-14T19:43:53 | 2023-09-14T21:52:32 | 30,402 | 9,768 | 711 | 455 | Python | false | false | from ...archiver._common import build_filter
from ...constants import * # NOQA
from ...patterns import IECommand, PatternMatcher, parse_pattern
from ...item import Item
def test_basic():
matcher = PatternMatcher()
matcher.add([parse_pattern("included")], IECommand.Include)
filter = build_filter(matcher, ... | UTF-8 | Python | false | false | 878 | py | 330 | patterns.py | 162 | 0.708428 | 0.705011 | 0 | 27 | 31.518519 | 64 |
slimwangyue/pytorch-cifar | 11,149,735,114,975 | e959934789f2535d170a25f86b20259b30caee37 | f5c1f8c9238cb5f1b719e9a27f0240c1b77bdb7d | /MobileNet_train/train.py | aabb612a9123bb9404c37bf5932387d3414b747d | [
"MIT"
] | permissive | https://github.com/slimwangyue/pytorch-cifar | 61653653076010d47bbec7c4209a3b1a9738a949 | d6ddd10cee5b78d6994b1683f605e541513b85d1 | refs/heads/master | 2020-05-18T16:49:06.057411 | 2019-11-18T03:19:19 | 2019-11-18T03:19:19 | 184,536,522 | 5 | 0 | null | true | 2019-05-02T07:08:11 | 2019-05-02T07:08:11 | 2019-05-02T07:06:29 | 2019-04-04T11:07:53 | 57 | 0 | 0 | 0 | null | false | false | import argparse
import os
import sys
import time
import torch
import torch.nn.functional as F
import torchvision
import models
import utils
import tabulate
from tensorboardX import SummaryWriter
import torchvision.transforms as transforms
def str2bool(s):
return s.lower() in ['yes', '1', 'true', 'y']
parser = a... | UTF-8 | Python | false | false | 11,291 | py | 10 | train.py | 10 | 0.638562 | 0.620848 | 0 | 288 | 38.204861 | 154 |
skinkie/Scripts | 15,470,472,207,344 | a95298a851ab24b8d4b2eb31a0aea301730f7ef4 | c5744c2fda48ae6a79c155c641fe98021a0cb7f3 | /Exercise/mymod.py | cb8aa3b66a6f266638ec42a1306081d2f40ae155 | [] | no_license | https://github.com/skinkie/Scripts | e0fd3d3f767612ade111f28bc7af3e1b25fc2947 | 80a1ba71ddf9a0c5ff33866832cb5c42aca0c0b1 | refs/heads/master | 2021-05-31T16:57:21.100919 | 2016-05-23T09:58:59 | 2016-05-23T09:58:59 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Read a file and counts its lines and characters.
"""
def countLines(name):
name.seek(0)
lines = name.readlines()
tot = 0
for i in lines: tot += 1
return tot
"""
def countLines(name):
name.seek(0)
lines = name.readlines()
return len(lines)
"""
def countChars(name):
... | UTF-8 | Python | false | false | 894 | py | 106 | mymod.py | 100 | 0.558166 | 0.548098 | 0 | 46 | 17.434783 | 87 |
pywjh/MeiDuoByDjango1 | 9,715,216,066,216 | 52de0437c70fe140ee1f7aedf81f34e3000e82e5 | 87b4454b12c5cf7afaf596065b4c2c232381249a | /celery_tasks/sms/tasks.py | 69e8e1f5e217c29cb373628c54bfe51de0887a19 | [] | no_license | https://github.com/pywjh/MeiDuoByDjango1 | 7153ea72b9f5c9c2a6c95859a5fe6a178c0aaa69 | 9f38360a940cc7fe7157ad758ecad4c1d6e219b7 | refs/heads/main | 2023-07-23T10:41:03.020479 | 2021-08-27T06:13:37 | 2021-08-27T06:13:37 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from celery_tasks.sms.yuntongxun.sms import CCP
from celery_tasks.sms import constants
# from verifications import constants
from celery_tasks.main import celery_app
# name=自定义任务名字
@celery_app.task(name='send_sms_code')
def send_sms_code(mobile, sms_code):
# CCP().send_template_sms('接收短信手机号', ['短信验证码', '提示用户短信验证码多... | UTF-8 | Python | false | false | 498 | py | 25 | tasks.py | 24 | 0.739336 | 0.732227 | 0 | 10 | 41.3 | 83 |
Sergey582/CT-APP-Rest-Api | 7,730,941,171,901 | 83527efb6b32ab5e347e32e1cec8895417af21a7 | 762508060dade05f86f9783ac7395a5eb31911a6 | /android app/postman/data/models.py | 558476c6998b229617e987b0b8a8b381699f1b0b | [] | no_license | https://github.com/Sergey582/CT-APP-Rest-Api | 28826fe8d55f3e5df2e27d30076985871ea8a749 | fbc786799ae1bcff2c3315d755c788a3bb4dc32f | refs/heads/master | 2022-12-31T03:59:56.392364 | 2020-10-17T13:36:46 | 2020-10-17T13:36:46 | 251,337,264 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
class Test(models.Model):
year = models.IntegerField(default=0)
number = models.IntegerField()
subject = models.CharField(max_length=250)
class Task(models.Model):
part = models.CharField(max_length=250)
number = models.IntegerField()
task_text = models.TextField... | UTF-8 | Python | false | false | 611 | py | 8 | models.py | 8 | 0.715221 | 0.703764 | 0 | 20 | 29.55 | 86 |
lucasjurado/Hackathon-ImagiMaker | 6,614,249,681,255 | db3dab254f9b9c1911927dc437e0896c83707a8b | eebe81968e7957c5b52e54b0800d0a24a08fe420 | /lucas_jurado_iniciante_desafio2.py | 72f0b9a02dfad5a39b6cf1478e4cb8a6b6f7e21d | [
"MIT"
] | permissive | https://github.com/lucasjurado/Hackathon-ImagiMaker | feefe7ef7e622a73b962f1bdcdcce941c095164b | 69974450e77b5b03bfcfdee9dcbaf0eb62708032 | refs/heads/master | 2022-09-11T00:04:49.622318 | 2020-05-15T22:04:08 | 2020-05-15T22:04:08 | 260,846,495 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
print('<<<<<<<<< Jokenpô >>>>>>>>>')
#variavel recebe o nome do jogador
nome = str(input('Qual é o seu nome? '))
#contador do número de jogos
c = 0
#contador das vitórias do pc
pcWin = 0
#contador das vitórias do jogador
playerWin = 0
#contador de empates
draw = 0
while True:
#variável recebe a opç... | UTF-8 | Python | false | false | 2,133 | py | 2 | lucas_jurado_iniciante_desafio2.py | 1 | 0.528015 | 0.510446 | 0 | 63 | 32.412698 | 128 |
rgarcia5/project_euler | 15,925,738,782,022 | 9ed20af2678e07383d4fe7c4981196ef8e81248c | 2823f546b288b711b72f3bdef404ef6208cc5021 | /python/problem25.py | 7028cd794050d57083016f9105045be47e0a0bbc | [] | no_license | https://github.com/rgarcia5/project_euler | d431ff1ac87cb59d99281947b1434292fa4f3a60 | 51412a020e90071dbfb1ac26a637e7292560483c | refs/heads/master | 2020-12-31T07:55:28.551266 | 2017-06-16T07:33:24 | 2017-06-16T07:33:24 | 53,665,672 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def fibonacci_sequence():
count = 1
first_num = 1
second_num = 1
while (len(str(first_num)) != 1000):
result = first_num + second_num
first_num = second_num
second_num = result
count += 1
return count
print fibonacci_sequence()
| UTF-8 | Python | false | false | 255 | py | 49 | problem25.py | 30 | 0.635294 | 0.603922 | 0 | 12 | 20.25 | 38 |
tomography/xdesign | 16,535,624,102,496 | 0f7928a0665e8a8c4cbc1f550a27aa2e9b3a6e39 | 1efa22ec38c51644f608711064324c3e7c8c2f08 | /src/xdesign/codes.py | 060c6d7bcce80236f2d5f1824e804591d9ea12ff | [
"BSD-3-Clause"
] | permissive | https://github.com/tomography/xdesign | e282f2b3f6ee9893801c161bb61ec73130f3a3ff | 778914cf9df60d1b96b996ef463825ee455ece4f | refs/heads/master | 2022-01-17T15:29:06.725402 | 2022-01-14T21:00:45 | 2022-01-14T21:00:45 | 63,276,287 | 18 | 21 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# #########################################################################
# Copyright (c) 2019, UChicago Argonne, LLC. All rights reserved. #
# #
# Copyright 2019. UChicago Argonne, LLC. This... | UTF-8 | Python | false | false | 7,057 | py | 16 | codes.py | 13 | 0.512257 | 0.485475 | 0 | 184 | 37.353261 | 82 |
ArtDor2/agi | 13,769,665,192,190 | 5a2643180d66cddc7ba6bf41abba1220047060ba | d9bb329c3a96afa26102e0e9a6538d06477b5fac | /Master.py | e208ff0cc95a624d857e7efe78a0c823a58e56ab | [] | no_license | https://github.com/ArtDor2/agi | 06bd7fe8b4bf38e45edebfb4ad72cce18678d8fe | 78311b8aab991bc64d2dd43b1cb3d35ec9ddd4bb | refs/heads/master | 2022-12-12T14:53:33.332201 | 2018-09-12T00:12:53 | 2018-09-12T00:12:53 | 99,628,869 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Node:
links_in = {} # link to another agent, and weight
links_out = {}
functions = [] # agent functions to execute when activated?
patterns = [] # ? agent patterns from data???
# def link_add(linked_node, weight):
# Node.links[linked_node] = weight
# def link_delete(linked_n... | UTF-8 | Python | false | false | 608 | py | 6 | Master.py | 4 | 0.598684 | 0.59375 | 0 | 26 | 22.346154 | 64 |
DataONEorg/api-documentation | 17,154,099,393,124 | 191d22d6c8d387896cc3d986fab4e009ebcec158 | 382d1aa8fc07d33c96a2a512a7b340e291417f91 | /api_template/MNPackage.py | 6f6ff331abbdddf66566305eb3e293db910ff737 | [] | no_license | https://github.com/DataONEorg/api-documentation | ee0350a503b990c847f32d01ac640640e789c693 | 634e00a48e3b4b6217acd0ab6be74b7327f04d88 | refs/heads/master | 2022-12-10T02:22:06.745695 | 2020-11-24T14:18:11 | 2020-11-24T14:18:11 | 156,448,835 | 2 | 2 | null | false | 2022-12-08T07:42:36 | 2018-11-06T21:15:49 | 2020-12-17T18:55:54 | 2022-12-08T07:42:35 | 59,061 | 2 | 1 | 14 | Python | false | false | import Exceptions
import Types
def getPackage(session,packageType,id):
"""
``GET /packages/{packageType}/{pid}`` |br| Provides all of the content of a DataONE data package as defined by an OAI-ORE document in DataONE, in one of several possible package serialization formats. The serialized package will contain ... | UTF-8 | Python | false | false | 2,215 | py | 28 | MNPackage.py | 21 | 0.780135 | 0.760271 | 0 | 37 | 58.837838 | 484 |
ztane/aoc2017 | 2,791,728,760,640 | c482c6e070fe4f699a9cd221b6d4b234d1d97307 | 9d74e1efb21cc6010e7d743e7787be090718cb05 | /days/day22.py | 8dd1fd8e0c43feed00aafbbd35fad26781255c31 | [] | no_license | https://github.com/ztane/aoc2017 | 014528cd4f23e386cbf0ede6d10fb7a88cdc11c7 | 694d601c86faf6c353ac1f545272c279714f0dd9 | refs/heads/master | 2021-08-31T17:40:18.064849 | 2017-12-22T08:30:18 | 2017-12-22T08:30:18 | 112,914,772 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from helpers import *
d = get_aoc_data(day=22)
def part1():
the_map = SparseComplexMap(d.lines, default='.')
position = the_map.center
direction = -1j
infections = 0
for i in range(10000):
if the_map[position] == '#':
the_map[position] = '.'
direction *= 1j
... | UTF-8 | Python | false | false | 1,077 | py | 27 | day22.py | 25 | 0.493965 | 0.467967 | 0 | 49 | 20.979592 | 52 |
NguyenVanDiem/Edmodo-Calendar | 2,748,779,110,891 | 7a71337bede05726e33c6a0735e5885e1de00a2b | 91cd68712ac4ac636361fef03f0db2afbd75ca51 | /Calendar_Learn/Calendar/views.py | 4bbbd06d5dd2c5cb9323518e0922e84427f8c020 | [] | no_license | https://github.com/NguyenVanDiem/Edmodo-Calendar | 14890d509af56d9efaaa113e4551f3cbd209fac0 | 8ffeec0e4a1ae23400827debda1c28cf7c77f354 | refs/heads/master | 2021-01-16T20:51:38.234594 | 2012-03-13T15:22:48 | 2012-03-13T15:22:48 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
import calendar
#import datetime
from datetime import date, datetime, timedelta
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.core.context_processors import csrf
from django.forms.models import modelformset_factory
from django.http import ... | UTF-8 | Python | false | false | 4,731 | py | 23 | views.py | 11 | 0.627986 | 0.623547 | 0 | 163 | 28.02454 | 96 |
hfoley03/weather-app | 19,104,014,556,947 | 0e223cefa6f68472f2515aa8fc8c73f450d9580a | 7a13f6e506157cf333f33b16d5dda6096f2ecb69 | /test.py | c0f31754515fdb103d05922d02fe0a2d4cbafa36 | [] | no_license | https://github.com/hfoley03/weather-app | 48592d6ae2592c69461df494c4a2a75999b65610 | 736d5c0d8b192ade5ac6fa4be6a28cd4f15ade76 | refs/heads/main | 2023-07-09T22:45:19.964837 | 2021-08-19T17:25:46 | 2021-08-19T17:25:46 | 398,010,303 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from main import get_geocode
from main import get_data
class TestGeocode(unittest.TestCase):
def test_galway_geocode(self):
correct_result = "53.14399, -9.46949"
result = get_geocode("Galway, Ireland")
self.assertEqual(result, correct_result)
def tes... | UTF-8 | Python | false | false | 1,580 | py | 4 | test.py | 3 | 0.614557 | 0.575316 | 0 | 47 | 31.638298 | 134 |
CJuice/DoIT_SocrataMetadataManipulation | 16,054,587,796,457 | d0c2abdf9fbb173816b8a318581cf4305ce510b8 | 3721a207a393f952bfb6cfe00fbd8e278204012a | /metadata_manipulation.py | af076fedf2e0d00c86ab4aa74896e6dd1a64352a | [] | no_license | https://github.com/CJuice/DoIT_SocrataMetadataManipulation | e4788772dc25ffd82d12b33ab700924d4115998d | 0715d064eb4bfff51c4832f486663fab536bef4d | refs/heads/master | 2020-04-30T01:41:36.229507 | 2019-03-19T15:06:49 | 2019-03-19T15:06:49 | 176,536,102 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Ingest excel file from examination step, isolate records needing revision, and patch the revisions to Socrata.
The first step involved requesting metadata for all of our datasets, checking the description text for the values
of interest, and outputing an excel file of the results. This script ingests the excel fil... | UTF-8 | Python | false | false | 2,973 | py | 4 | metadata_manipulation.py | 2 | 0.60074 | 0.596367 | 0 | 67 | 43.358209 | 117 |
lucasmbrute2/Blue_mod1 | 8,770,323,237,549 | 4bf4f0a42439445f74431db9160f8d50bd98eb3f | 8a6fa4a3aba8c8f4e520961e97d38a83bb5f35bb | /Aula07/Exercicio07_WHILE.py | d5622280eafcc109b6abf57bd7a0ed54a8ec598b | [] | no_license | https://github.com/lucasmbrute2/Blue_mod1 | 8e8f46b9f0c364a230daec44017c15ef3537f004 | f08fe046beacddf513558acd55339317d11644d0 | refs/heads/main | 2023-06-18T12:16:07.754845 | 2021-07-16T01:33:44 | 2021-07-16T01:33:44 | 375,507,339 | 0 | 0 | null | false | 2021-06-15T17:19:57 | 2021-06-09T22:46:43 | 2021-06-15T16:29:50 | 2021-06-15T17:19:56 | 62 | 0 | 0 | 0 | Jupyter Notebook | false | false | # #03 - Crie um programa que leia o nome e o preço de vários produtos. O programa
# deverá perguntar se o usuário vai continuar ou não. No final, mostre:
# A) Qual é o total gasto na compra.
# B) Quantos produtos custam mais de R$1000.
# (C) Qual é o nome do produto mais barato.
total = 0
above1000 = 0 ... | UTF-8 | Python | false | false | 1,481 | py | 71 | Exercicio07_WHILE.py | 66 | 0.609407 | 0.578732 | 0 | 38 | 37.631579 | 93 |
superdebug/python-exam | 11,905,649,396,787 | d218a184bd91425871ea8d98bde527a448888049 | c1951f4216116837c9076562cee50f6250994c2f | /pythonweb开发实录源代码/05/15.py | cd5111593eb1ab74078160554ddc2ba139a75495 | [] | no_license | https://github.com/superdebug/python-exam | 763350249f955381f3f2d2fc3429aa56a91fadd0 | 1e6fe63f9616b84c6f4595f9f441fb40c0d4023e | refs/heads/master | 2020-04-12T01:21:06.015376 | 2016-12-05T08:14:40 | 2016-12-05T08:14:40 | 51,565,157 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | userList = ['0001' , '0004' , '0006' , '0002' , '0005' , '0003']
userList.pop()
print userList
print userList.pop(0)
print userList | UTF-8 | Python | false | false | 135 | py | 141 | 15.py | 121 | 0.637037 | 0.451852 | 0 | 5 | 25.4 | 64 |
tcooksd/inframan | 16,776,142,263,559 | 02f0ff0ec3d1a37c2d2320f6c518c27088d24394 | 3cd765eea7df9a022c4b11b2a7f813e735a136df | /ucs_db_update.py | 04a486d8bba4f71e2ad0c7d290b034b972c4b3bb | [] | no_license | https://github.com/tcooksd/inframan | 41f7714887583b45571ca2da41eadfe13c17c62a | 4d20c59917f5d54c8a6fedb15c8b8ba1dda32ac3 | refs/heads/master | 2021-01-01T05:17:17.089197 | 2016-04-17T10:52:20 | 2016-04-17T10:52:20 | 56,878,929 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
"""
Query UCS for systems data and then import into a mysql database.
Usage:
get_ucs_macs.py --host=<host> --user=<user> --pass=<pass> --print=<yes|no> --mysql_host=<mysql_host> --mysql_login=<mysql_login> --mysql_pass=<mysql_pass>
Options:
--host=<host> IP Address of the UCS ... | UTF-8 | Python | false | false | 6,965 | py | 5 | ucs_db_update.py | 4 | 0.601292 | 0.584637 | 0 | 195 | 34.712821 | 158 |
anu2021/CredoSystem | 8,950,711,850,179 | d6af996301d5f2eaf15f2c03eb1e553718235788 | 416d7ec65819715ce2ec31387a08e7e312dd4ceb | /CourseApp/urls.py | 86fd0da2de4f8bf4cddd10ff1fc0cca668a1bee5 | [] | no_license | https://github.com/anu2021/CredoSystem | a1f5a4398863481f730c7a70ba6baf25e7ad391f | e38e7330248f8880361ed620b346d407721f6abf | refs/heads/main | 2023-03-06T09:49:51.289515 | 2021-02-26T05:26:38 | 2021-02-26T05:26:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from .views import CourseView
| UTF-8 | Python | false | false | 61 | py | 3 | urls.py | 3 | 0.803279 | 0.803279 | 0 | 2 | 28.5 | 29 |
szabgab/slides | 7,198,365,224,147 | 6cc57612a910f86d3c0a78a0d811e7eb7e9e1410 | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/net/prompt_password.py | 6b839f2480efe47e1d5ce92a40eec831c7f568fd | [] | no_license | https://github.com/szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | false | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | 2023-05-10T09:26:33 | 2023-05-19T06:55:10 | 14,375 | 82 | 64 | 0 | Python | false | false | import getpass
password = getpass.getpass("Password:")
print(password)
| UTF-8 | Python | false | false | 75 | py | 5,509 | prompt_password.py | 2,869 | 0.746667 | 0.746667 | 0 | 5 | 13.6 | 39 |
soobin519/Programmers-Algorithm | 17,033,840,311,209 | 75715d2660fce181799aa4a6c818bf8237a9cecb | 193077a2e49c38cde61daf7d58ea38c6e44f8a86 | /Lv1_모의고사.py | b7285d723b0906bed3cc5ec9e24b0058a0026188 | [] | no_license | https://github.com/soobin519/Programmers-Algorithm | f60797bc0e083e9da72217afbc909631c57005f0 | 9349abfc9775b1baaa16f09048d5d7f1d68fcd3e | refs/heads/master | 2023-07-29T05:25:29.304067 | 2021-09-09T08:24:45 | 2021-09-09T08:24:45 | 379,100,279 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | Python 3.9.1 (v3.9.1:1e5d33e9b9, Dec 7 2020, 12:44:01)
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
>>> def solution(answers):
answer = []
a1=[1,2,3,4,5]
a2=[2,1,2,3,2,4,2,5]
a3=[3,3,1,1,2,2,4,4,5,5]
c1 = 0
c2 = 0
c... | UTF-8 | Python | false | false | 688 | py | 44 | Lv1_모의고사.py | 44 | 0.508721 | 0.377907 | 0 | 26 | 25.5 | 72 |
Bismoy943/STA_Assigns_Bismoy | 9,070,970,947,767 | 011b646eefd7d93f0dc89a0d015a2814449e9d17 | 2bf5408c0cedec5c8f62b044f25ded8aac0d4f36 | /W03D16/callingcandlesticks.py | 587ec7c92849c519c1cbde10bea7bfe5952cc14f | [] | no_license | https://github.com/Bismoy943/STA_Assigns_Bismoy | 72d848ba52b388c6ec237b2caefc487edadd156e | c57ec1aeb9a7bace8eeed5c7e8c19838aa73cd9c | refs/heads/main | 2023-04-03T19:45:49.031879 | 2021-03-28T13:23:45 | 2021-03-28T13:23:45 | 330,672,829 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import candlestickpatterns as cp
open=[14629.6,14473.95,14398.7,14580,14732.75]
high=[14652.5,14479.95,14619.75,14703.95,14798.3]
low=[14413.6,14281.65,14388.9,14553.7,14558.8]
close=[14493.3,14316.1,14605.3,14683.2,14632.7]
volume=[701000,834000,718000,726000,1130000]
print("Inside bar list:",cp.insidebar(open,high... | UTF-8 | Python | false | false | 701 | py | 98 | callingcandlesticks.py | 91 | 0.770328 | 0.547789 | 0 | 15 | 45.8 | 80 |
mgcrea/platform-teensy | 17,008,070,513,524 | 276450215ce77a1e7bb9a57b019df4be35d12bc8 | 788295429ecfb29f5d6bec8ed6a6efaee4ff1007 | /builder/frameworks/arduino.py | 2855874dcedc05e21677d394ada6c8dc0d12b7da | [
"Apache-2.0"
] | permissive | https://github.com/mgcrea/platform-teensy | 74e90506c3dfc02ba91c5733dafda17e18f6580b | de9b127478a19be96d2fba64f92bed29f3b91716 | refs/heads/master | 2023-06-07T12:44:38.554637 | 2018-05-02T13:03:28 | 2018-05-02T13:03:28 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Copyright 2014-present PlatformIO <contact@platformio.org>
#
# 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 applicabl... | UTF-8 | Python | false | false | 3,912 | py | 1 | arduino.py | 1 | 0.642382 | 0.633436 | 0 | 138 | 27.347826 | 79 |
nirajkale/numpy-dnn | 12,532,714,591,675 | ce5af91778f07737adc8172ef10dc05d45956569 | 8cd1ebf3a2c4ff5ece8a55d48c837357c7383859 | /Neural_Network.py | b3dea20538f32e06c17f422e5a4f087a5b562787 | [] | no_license | https://github.com/nirajkale/numpy-dnn | 7a064ecd15c6d324e9f656e0ffb05fc34be26c8a | d008ec5558a3c163d6fa350a46682f7f08cb3f79 | refs/heads/master | 2020-03-22T03:42:13.718986 | 2019-07-29T12:27:55 | 2019-07-29T12:27:55 | 139,447,350 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import FeatureEditor as fe
np.random.seed(3)
sigmoid = lambda z:1/(1+np.exp(-z))
def sigmoid_prime(z):
a = sigmoid(z)
return np.multiply(a,1-a)
Relu = lambda z: np.maximum(0,z)
Relu_prime = lambda z: np.where(z>=0,1,0)
... | UTF-8 | Python | false | false | 4,139 | py | 3 | Neural_Network.py | 2 | 0.586857 | 0.561005 | 0 | 122 | 31.92623 | 112 |
atleastzero/SuperHeroTeamDueler | 19,284,403,174,593 | 1f22c9afb0d317cc76c71cc53851f4a4a265a320 | b26bcc435c930676df21382cd405f55fa622893c | /animal.py | d973ef530ec8c3f54f20ea2dc902c8fda3fdf500 | [] | no_license | https://github.com/atleastzero/SuperHeroTeamDueler | a91b22775d4840fa7f5f103b943d058eb0bbb1df | a4a2eca95f917e1d00fe80f3883332fc92cd3772 | refs/heads/master | 2020-07-28T13:34:34.512563 | 2019-10-11T19:18:29 | 2019-10-11T19:18:29 | 209,426,270 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Animal:
def __init__(self, name, sleep_duration):
self.name = name
self.sleep_duration = sleep_duration
def sleep(self):
print(
"{} sleeps for {} hours".format(
self.name,
self.sleep_duration))
def eat(self):
print('{} i... | UTF-8 | Python | false | false | 430 | py | 4 | animal.py | 4 | 0.513953 | 0.513953 | 0 | 16 | 25.3125 | 49 |
benlaplanche/aoc-2020 | 4,071,629,045,503 | c03afc739ae461b662175cd87b1a1512a992d6ad | 5560e58b42296dca7b47ae85880d872e635c2908 | /day1/expenses.py | fa1ee3dddb2d8c48b676dd694a0625df178f6b58 | [] | no_license | https://github.com/benlaplanche/aoc-2020 | 256cd65e39094a6e1b7aef578384151743cad389 | a490b2746f1f29d451651a897125a76f59baa7bf | refs/heads/master | 2023-02-03T21:10:51.063527 | 2020-12-19T09:55:51 | 2020-12-19T09:55:51 | 322,804,688 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # expenses.py
def calculate_total(expense_list):
for index, current_val in enumerate(expense_list):
temp_list = expense_list
temp_list.pop(index)
for i, v in enumerate(temp_list):
if current_val + v == 2020:
return current_val * v
| UTF-8 | Python | false | false | 290 | py | 3 | expenses.py | 2 | 0.589655 | 0.575862 | 0 | 11 | 25.363636 | 54 |
antorsae/fish | 1,417,339,223,440 | 46465eaa3f1b58098e7274cd617626d7158316bc | 09d7cc3f7b7aca50edb41c27e3aa92f882c4bbfb | /kfish.py | a90e4d8b5e6accc40f7ae80fd5a6dd9c8f08b717 | [] | no_license | https://github.com/antorsae/fish | 7fe74913e22481441832d23b632c734e3703007f | f6b9c906ba17de1f4dcd05c7648351dec1d07749 | refs/heads/master | 2021-07-20T12:15:26.491324 | 2017-10-30T09:30:48 | 2017-10-30T09:30:48 | 105,634,092 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Keras playground for RNN seq prediction (DID NOT WORK)
from collections import OrderedDict
import itertools
import os
from fishdataset import SeqDataset, SubsetSampler,collate_seqs
from sklearn.model_selection import train_test_split
import argparse
import pandas as pd
import numpy as np
from keras.models import Mo... | UTF-8 | Python | false | false | 3,821 | py | 13 | kfish.py | 8 | 0.64067 | 0.628893 | 0 | 112 | 33.116071 | 98 |
Programming-TRIGON/Image-Processing-2019 | 4,793,183,542,353 | 2c79b12aa4fa66e457a3e35b5978bbb50cd64bc7 | 6224c36f19a6b7d5db8f33e8dc7d15c7234abdf9 | /tools/nt adder.py | 9dce7dd86ddc5782a4110f3a4751ccf0fc007c4b | [] | no_license | https://github.com/Programming-TRIGON/Image-Processing-2019 | 351b99ad427c0254265c8582de9e917a3d8d8e7a | 59baa5144623c9b79c6a771282dfa5068ef2c5be | refs/heads/master | 2020-04-16T08:19:35.572066 | 2019-03-11T15:11:59 | 2019-03-11T15:11:59 | 165,420,625 | 0 | 0 | null | false | 2019-03-11T15:07:29 | 2019-01-12T18:17:50 | 2019-03-06T05:59:58 | 2019-03-11T15:07:28 | 305 | 1 | 0 | 0 | Python | false | null | #!/usr/bin/env python3
#
# This is a NetworkTables client (eg, the DriverStation/coprocessor side).
# You need to tell it the IP address of the NetworkTables server (the
# robot or simulator).
#
# When running, this will continue incrementing the value 'dsTime', and the
# value should be visible to other networktables ... | UTF-8 | Python | false | false | 746 | py | 14 | nt adder.py | 13 | 0.753351 | 0.738606 | 0 | 29 | 24.689655 | 75 |
EmmaYazhuo/- | 4,501,125,770,719 | 552ace32dd414e4fb64532de805aeb48a7f1e79b | e7478e49c3e64ecaf0bf60bba4a2145889be3f05 | /Amazon/2 sum.py | 938b0593aa4ca4d5722d9cfacfdae41eb97b5d5b | [] | no_license | https://github.com/EmmaYazhuo/- | 9cf730ac8b4bb8a2674a34defbd7162b8283dfb4 | d70ae1a5b0726d0943664aa21e23295e0a247297 | refs/heads/master | 2020-07-19T14:20:03.345852 | 2019-09-05T03:10:34 | 2019-09-05T03:10:34 | 206,463,616 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # https://www.1point3acres.com/bbs/interview/amazon-software-engineer-453412.html
target = 20
input = ([[1,8],[3,9], [2,15]], [[1,8], [2,11], [3,12]] )
output = [[1, 3], [3, 2]]
def twosumclosest(nums, target):
dic={}
res=[]
for i, num in enumerate(nums):
if target - num in dic.keys():
... | UTF-8 | Python | false | false | 430 | py | 21 | 2 sum.py | 17 | 0.534884 | 0.467442 | 0 | 17 | 24.352941 | 81 |
Hits-95/Python | 17,136,919,534,958 | 0520bd3dc29feb243721469fd5217926746be40c | 762635741a2a1ae9f033f70db2fa4b64fcbcef46 | /NumPy/random/6_binomial_distribution.py | 84dc82ab57ea13a1ce7e9f4e8d2b9634107ac78f | [] | no_license | https://github.com/Hits-95/Python | e8eaab9ad0bb1b35aff6642d4460377b27ea142b | 35852daa84a280ab054170649ccd7b01e05ce75e | refs/heads/master | 2023-02-04T06:46:56.109425 | 2020-12-23T17:41:24 | 2020-12-23T17:41:24 | 303,903,050 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Binomial distribution...
from numpy import random
import matplotlib.pyplot as sbt
import seaborn as sbn
#Given 10 trials for coin toss generate 10 data points:
print(random.binomial(n = 10, p = 0.5, size = 10))
#Visualization of Binomial Distribution
sbn.distplot(random.binomial(n=10, p=0.5, size=100), hist=True, k... | UTF-8 | Python | false | false | 577 | py | 93 | 6_binomial_distribution.py | 90 | 0.752166 | 0.694974 | 0 | 18 | 31 | 84 |
codewithgauri/HacktoberFest | 962,072,677,707 | fdbd3fe3d525b27a2c74a020937fbec6cb68dd1a | 9fb2139bf41e2301f9ee9069d649c5afe8e7735c | /python/Algorithms/Implementation/Cut the sticks.py | 7fddf17390e9866fbef7ddd64a919bc7337ef7e3 | [] | no_license | https://github.com/codewithgauri/HacktoberFest | 9bc23289b4d93f7832271644a2ded2a83aa22c87 | 8ce8f687a4fb7c3953d1e0a5b314e21e4553366e | refs/heads/master | 2023-01-02T07:20:51.634263 | 2020-10-26T07:02:34 | 2020-10-26T07:02:34 | 307,285,210 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import Counter
def cutTheSticks(arr):
l=len(arr)
c = []
for k,v in sorted(Counter(arr).items()):
c.append(l)
l-=v
for i in c : print(i)
if __name__ == '__main__':
n = int(input())
arr = list(map(int, input().rstrip().split()))
cutTheSticks(arr)
| UTF-8 | Python | false | false | 312 | py | 617 | Cut the sticks.py | 484 | 0.538462 | 0.538462 | 0 | 18 | 16.333333 | 50 |
itheads-7/trail-repo | 3,564,822,895,999 | 4c661d1f10f2a42d4641e1103098d956bc5906bd | c1e09f6ca54466f00867f8c0b784f89bbd9dd7ec | /hari.py | ad0de62e3df4725b89656840af5eac743caf09cf | [] | no_license | https://github.com/itheads-7/trail-repo | b09829cbb07a58d14ce64cbf65eb324849ea32fd | 7604888b18f9fd0103cf9d936ae313a1efcc0be4 | refs/heads/main | 2023-09-04T13:49:10.343536 | 2021-11-22T12:11:25 | 2021-11-22T12:11:25 | 429,792,545 | 0 | 0 | null | false | 2021-11-22T12:04:24 | 2021-11-19T12:38:28 | 2021-11-19T13:02:15 | 2021-11-22T12:04:24 | 1 | 0 | 0 | 0 | Python | false | false | import pdb;
print("hello world")
| UTF-8 | Python | false | false | 33 | py | 1 | hari.py | 1 | 0.727273 | 0.727273 | 0 | 2 | 15.5 | 20 |
3leno4ka/python_basic_course | 3,229,815,445,709 | 310f242008eac048fc61257eebd8643d1517b6c4 | 15d8b541535ff8bc2ab218057a80fb562fbcd819 | /l4_iteration/l4_iteration.py | 232e9a32884c2cdc2e7fe503b80b1970dc5f3101 | [] | no_license | https://github.com/3leno4ka/python_basic_course | bb8b8217e2ba83ada77d52d620ed49c23a4c0e50 | 0ba31e8d7f8acd30297406f1832fc1f81c5065bb | refs/heads/master | 2021-04-12T10:08:00.487190 | 2018-05-09T08:24:09 | 2018-05-09T08:24:09 | 126,372,728 | 0 | 0 | null | false | 2018-05-09T14:25:24 | 2018-03-22T17:35:13 | 2018-05-09T08:24:12 | 2018-05-09T14:23:22 | 29 | 0 | 0 | 1 | Python | false | null |
low_digit_limit = 1
upper_digit_limit = 100
my_new_list = []
while True:
favorite_num = input("Enter your favorite number: ")
try:
favorite_num = int(favorite_num)
my_new_list.append(favorite_num)
if favorite_num < low_digit_limit:
print(f'Your input value is less than {low_... | UTF-8 | Python | false | false | 679 | py | 22 | l4_iteration.py | 21 | 0.631811 | 0.62592 | 0 | 20 | 32.7 | 87 |
true-datura/LightCourses | 12,601,434,092,902 | 47ce78127a6a88ed4a895be8f59df090945f3035 | bc8e7e1dc30a7a79aef5956a89cfa0308624727f | /classroom/flask_example.py | 6a6c6a50d1bb9b4a7f0b5a78b1a4e37c5775a2b3 | [] | no_license | https://github.com/true-datura/LightCourses | 19afbe4a6976036c23d68e66c0aca49ffb9adc5b | 31a00d14eb2e268048728775681d6794d9e1d4ac | refs/heads/master | 2016-09-17T12:26:53.960422 | 2016-09-01T14:23:19 | 2016-09-01T14:23:19 | 60,765,008 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def indes():
name = request.args.get('name')
return render_template('index.html', name=name)
@app.route('/<id>', methods=['GET', 'POST'])
def indes_1(id):
name = id
return render_templat... | UTF-8 | Python | false | false | 404 | py | 69 | flask_example.py | 45 | 0.633663 | 0.621287 | 0 | 19 | 20.315789 | 51 |
TechStephen/Space-Invaders | 11,244,224,392,188 | a9f3adbabaac475077960e3417633e4f7df5b324 | 99affc1e8a769ffe91633af692ca9b154a0cbde4 | /test.py | 8b1e6500fafe477da2dd9d3a3d77e24e3681356a | [] | no_license | https://github.com/TechStephen/Space-Invaders | 5fae1aea28c737acbf059025d75d2c19c2b12aa4 | b62291d7ba6827d5c55f96fdf5e3d2ed26468f26 | refs/heads/master | 2022-12-16T16:37:01.394199 | 2020-09-17T23:21:34 | 2020-09-17T23:21:34 | 296,463,138 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pygame, sys, os, time
""" Functions """
# when gun shoot make shooting sound
def pew():
pygame.mixer.Channel(1).play(pygame.mixer.Sound('shoot.wav'))
# when enemy hit make explosion sound
def hit():
pygame.mixer.Channel(2).play(pygame.mixer.Sound('hit.wav'))
# prints all xy positions of m... | UTF-8 | Python | false | false | 9,965 | py | 2 | test.py | 2 | 0.510988 | 0.456799 | 0 | 383 | 24.018277 | 240 |
hikelee/redmin | 5,093,831,246,082 | 22d9ac043507c23a988e0b8cd86df6b3ca12ac32 | 1fbad40a67a14728603e8523137422d781d0bbde | /redmin/models/domain.py | f95af66f53f60ed1b887ad767076a6190f09b6d2 | [] | no_license | https://github.com/hikelee/redmin | b3a06f077350136344182bc16f77109ac956950e | d67ddc23ac0a70b3208e177598e6a5b0bb1e3e0a | refs/heads/master | 2020-07-14T10:31:17.067783 | 2019-12-11T10:49:33 | 2019-12-11T10:49:33 | 205,300,635 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import django.apps
from django.db import models
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
from filelock import FileLock
from redmin.utils import attr
from .base import RedminModel
from .group import Group
from .user import User
lock = FileLock("redmin_domain.lock... | UTF-8 | Python | false | false | 4,394 | py | 98 | domain.py | 88 | 0.604224 | 0.600781 | 0 | 148 | 28.432432 | 147 |
Aasthaengg/IBMdataset | 884,763,301,039 | a8196966c14da622dfe555f5b63f3dc351821c9f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02554/s585641078.py | 3be12755fabd91f31e027dfba69a2001a3882d56 | [] | no_license | https://github.com/Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n=int(input())
print((10**n-9**n*2+8**n)%(10**9+7)) | UTF-8 | Python | false | false | 51 | py | 202,060 | s585641078.py | 202,055 | 0.509804 | 0.333333 | 0 | 2 | 25 | 36 |
liuyepku/take-home | 7,112,465,892,246 | 11188c44096e0e9ff932e408584b37507651e483 | a3f25784ef31c2e79f373724b8d285fb2729ac50 | /Q6.py | ed85df0f46b54923fd8c21a03042f471843e1ac1 | [] | no_license | https://github.com/liuyepku/take-home | cef4ea7fd6e3c12358ccacebe192a4103d638254 | 96511c55730a8e78240b40af04647a964658f292 | refs/heads/master | 2020-03-22T04:12:10.957578 | 2018-07-04T09:31:59 | 2018-07-04T09:31:59 | 139,480,730 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import csv
import time
import matplotlib.pyplot as plt
import numpy as np
file = open('data/twitter_marketplace_data_5.csv', 'r')
lines = csv.reader(file)
head_row = next(lines)
print head_row
# for line in lines:
# print line[7]
cnt_app = 0
cnt_app_see = 0
cnt_vid = 0
cnt_vid_see = 0
cnt_web = 0
cnt_web_see = 0
... | UTF-8 | Python | false | false | 988 | py | 6 | Q6.py | 6 | 0.589069 | 0.562753 | 0 | 37 | 25.702703 | 86 |
charner93/hello-world | 4,389,456,613,728 | 1673ef1587df59fb0cd05befa3d1c88b81b95175 | 529526727f6b08ba9008bf2ea4b48fae9336fb1e | /test.py | 139816690274ba84aef17836199a96f2589dd806 | [] | no_license | https://github.com/charner93/hello-world | 3d3304fbe666e2e3790f07a317a13488ae747be2 | 2852948f6e2d3d15465acdd867a539a8d174114e | refs/heads/master | 2017-11-12T12:05:26.135778 | 2017-03-09T16:41:19 | 2017-03-09T16:41:19 | 84,334,975 | 0 | 0 | null | false | 2017-03-09T16:41:20 | 2017-03-08T15:21:03 | 2017-03-08T23:50:35 | 2017-03-09T16:41:20 | 9 | 0 | 0 | 1 | C | null | null | def swap (var1, var2):
print(var2+","+var1+". Hello!")
return
def pig (var1, var2):
print(var1[1:] + var1[0] + "ay", end = " ")
print(var2[1:] + var2[0] + "ay", end = " ")
return
firstname = input("Please enter your first name:")
lastname = input("Please enter your last name:")
swap(firstname,lastname);
a... | UTF-8 | Python | false | false | 505 | py | 3 | test.py | 1 | 0.639604 | 0.611881 | 0 | 17 | 28.705882 | 66 |
CChBen/YoloV3 | 13,657,996,022,563 | 8a877bd182915f3a2edad86bc8cc02f6d40927d9 | 51512dbc39edbe8ac2de76acabc7fcde7100269d | /trainer.py | 96c60d03e8c99a6a0af427003b46a28f3533a37f | [] | no_license | https://github.com/CChBen/YoloV3 | fb325f271423ceb20c439c716b68811264e7d492 | 7c3d5f76e46b6906cdc85285107f2ab9c4e2dffa | refs/heads/master | 2020-08-08T12:08:57.929867 | 2020-04-27T13:38:12 | 2020-04-27T13:38:12 | 213,826,884 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch.nn as nn
import torch
from dataset import Dataset
from net import MainNet
from torch.utils.data import DataLoader
import os
# 初始化参数为正太分布
def weight_init(m):
if isinstance(m, nn.Conv2d):
nn.init.normal_(m.weight)
if m.bias is not None:
nn.init.constant_(m.bias, 0)
class T... | UTF-8 | Python | false | false | 3,681 | py | 14 | trainer.py | 12 | 0.572068 | 0.528967 | 0 | 86 | 40.546512 | 120 |
ocuss/yedekler | 13,211,319,439,599 | 01f31e035fad1aa5b9e425233866127e438eeab1 | acfed6baaee7faffe1e2732b151e326fdd08634c | /format2.py | 10566572ecff25914a8ed6274c783823b2cb6b91 | [] | no_license | https://github.com/ocuss/yedekler | 9f89bda84d9b12f6f688009aaa5c8c9b061d2d3e | 7b34a08384521c1f0c030a4bea03f289d4566b67 | refs/heads/master | 2020-06-23T22:57:30.376369 | 2019-07-25T07:10:23 | 2019-07-25T07:10:23 | 198,778,146 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | x = """
meyveler : çilek,karpuz,muz
fruits : {} {} {}
""".format("strawberry","watermelon","banana")
print(x) | UTF-8 | Python | false | false | 112 | py | 47 | format2.py | 47 | 0.603604 | 0.603604 | 0 | 5 | 21.4 | 46 |
heng98/FYP-Context-based-Recommendation | 7,902,739,851,385 | c9bfc976487c23b5be49981e67e1cdf1c695d984 | 0be7e3fd4502105c8bc4c6a24db5f71ce5a1deb0 | /Transformer/ranker.py | d8ef9dad18e507bd4d3c8af08ca9cd92c0845f3b | [] | no_license | https://github.com/heng98/FYP-Context-based-Recommendation | 52776a91f56b8d9dea01d2b488d9edaf5df825dd | 4eb01934498de35f717de00ab10843cb93d42f6e | refs/heads/master | 2023-03-29T15:11:36.676978 | 2021-04-07T07:10:40 | 2021-04-07T07:10:40 | 291,781,982 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch
from torchtext.data.utils import get_tokenizer
import numpy as np
import fasttext
class Ranker:
"""Currently for simple reranker"""
def __init__(self, reranker_model, doc_embedding_vectors, device, fasttext_path):
self.reranker_model = reranker_model
self.doc_embedding_vectors =... | UTF-8 | Python | false | false | 6,061 | py | 37 | ranker.py | 33 | 0.599901 | 0.591982 | 0 | 171 | 34.444444 | 106 |
akaytatsu/inscricao_conferencia | 10,179,072,517,404 | 6f4638f16baf9494809b32f523d3fc26560556e4 | e71e6f545790e58447dc94bc404b215388b7e65b | /apps/financeiro/migrations/0011_auto_20200305_1510.py | 01739b6631cd4c816c987d84cfc7679b570dc8b5 | [
"MIT"
] | permissive | https://github.com/akaytatsu/inscricao_conferencia | e53e04314ebabd9a71d634d3ea3d6f456edd3310 | 9ab774c6fe30cdb1a45d3732ade394df6e3b4258 | refs/heads/master | 2020-09-23T08:50:36.352756 | 2020-07-19T17:33:10 | 2020-07-19T17:33:10 | 225,456,761 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.0.3 on 2020-03-05 15:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('financeiro', '0010_auto_20200212_1655'),
]
operations = [
migrations.AlterField(
model_name='comprovantes',
name='co... | UTF-8 | Python | false | false | 435 | py | 101 | 0011_auto_20200305_1510.py | 65 | 0.611494 | 0.54023 | 0 | 18 | 23.166667 | 85 |
iamhuy/bitpump | 10,264,971,845,042 | 77bf4903ccd3de771cff8f74e2bdfb73184d8189 | 3ff0b2d9d5030e87287fa6793e6ebb087e438e23 | /activity/migrations/0003_auto_20190726_1234.py | af0965aa717f7c38902515585f3b0e4dc29252fe | [] | no_license | https://github.com/iamhuy/bitpump | ffad8d589dbc2b1080e0c3657b7563f7e74a1925 | d865f4fb4fbf51a9b34890c88e6a648cb57a4c6c | refs/heads/master | 2021-06-15T00:21:43.520730 | 2019-07-27T03:52:20 | 2019-07-27T03:52:20 | 198,956,283 | 0 | 0 | null | false | 2021-06-02T00:08:17 | 2019-07-26T06:04:10 | 2019-07-27T03:52:41 | 2021-06-02T00:08:15 | 79 | 0 | 0 | 3 | Python | false | false | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('activity', '0002_auto_20190726_1212'),
]
operations = [
migrations.AlterModelTable(
name='activity',
... | UTF-8 | Python | false | false | 360 | py | 23 | 0003_auto_20190726_1234.py | 21 | 0.586111 | 0.538889 | 0 | 18 | 19 | 48 |
BasementCat/audio-reactive-led-strip | 18,597,208,406,660 | 3e281a9ec185e9a721706a2ed60a3c2f5f81a56f | 7f760365660de815db319d20bb05e1fbd5fc8df4 | /webgui/app/views/editor.py | b051de62bf92813d9a7b7f31b1e51da7276b1e94 | [
"MIT"
] | permissive | https://github.com/BasementCat/audio-reactive-led-strip | db5ac94eb3c43dfdb6a79501d6d8711579d41c51 | a98bac8e04c0fae3022de9f5086914dc1f1192d8 | refs/heads/master | 2022-07-21T12:39:06.257207 | 2022-07-14T01:12:08 | 2022-07-14T01:12:08 | 216,214,804 | 2 | 0 | MIT | true | 2019-10-19T13:58:07 | 2019-10-19T13:58:07 | 2019-10-17T08:40:24 | 2019-10-03T12:31:05 | 34,939 | 0 | 0 | 0 | null | false | false | from flask import Blueprint, render_template, abort, redirect, url_for
from app.lib.forms import EffectForm, EffectGroupForm, EffectStackForm
from app import database as db
from app.lib.database import ObjProxy
app = Blueprint('editor', __name__)
@app.route('/')
def index():
return render_template('editor/inde... | UTF-8 | Python | false | false | 1,340 | py | 44 | editor.py | 33 | 0.583582 | 0.579104 | 0 | 55 | 23.363636 | 70 |
SHYWM1234/PythonEx | 19,559,281,067,419 | 349618633eb246de5c4d229636769c2b3dad0da0 | 858dfad006587f38ddad75150409ee164a84aa59 | /PythonBasic/print s.py | dea7d0182bb47bd4a071db664835fe283383fb9d | [] | no_license | https://github.com/SHYWM1234/PythonEx | 76cff23cdb998305c78ea4a78d52992885e5b385 | badcb2527a94fe73111f9903be2a9fc763b59643 | refs/heads/master | 2023-02-24T19:53:52.694459 | 2021-01-20T15:11:09 | 2021-01-20T15:11:09 | 328,164,974 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import turtle
import time
def gap () :
turtle.penup()
turtle.fd(5)
def drawline ( draw ) :
gap()
if draw :
turtle.pendown ()
else :
turtle.penup ()
turtle.forward(40)
gap()
turtle.right(90)
def drawnum (num) :
if num in [ '2' , '3' , '4' , '5' , '6' , '8' , '9' ] : #第... | UTF-8 | Python | false | false | 1,596 | py | 38 | print s.py | 37 | 0.446292 | 0.388747 | 0 | 62 | 24.225806 | 76 |
runtangr/qidian_spider | 13,451,837,574,890 | 28b9b423dfcb088858dc4fc6fa802d7077c5999e | bd1e01a98af2dcd1567ef4e985fdd2392a9b9176 | /qidian_spider/spiders/qidian_spider.py | 3c0a89c4814ec48ff6abac8dd9fef1f8f2259ed9 | [] | no_license | https://github.com/runtangr/qidian_spider | 23f345b9d35c8d9d6b1594357cdbacea35e43951 | a8fc36e83ba5ef2de17f78535df2575f75404db7 | refs/heads/master | 2023-01-10T17:25:38.549822 | 2018-02-24T01:15:41 | 2018-02-24T01:15:41 | 119,805,641 | 4 | 1 | null | false | 2022-12-30T17:57:26 | 2018-02-01T08:23:17 | 2021-11-02T18:26:06 | 2022-12-30T17:57:24 | 4,904 | 2 | 1 | 11 | Python | false | false | import scrapy
from qidian_spider.items import QidianSpiderItem
from scrapy.http import Request
import time
import selenium
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
f... | UTF-8 | Python | false | false | 3,962 | py | 11 | qidian_spider.py | 9 | 0.606512 | 0.59995 | 0 | 103 | 37.466019 | 123 |
kanamycine/surely-kill-algorithm | 85,899,360,576 | 9ccc822762ddf78bc21e3edc5243689b765fbd1a | 97c18798ed2bb8bf0ea8924a640a7eb018212065 | /[0824]Algorithm/보충_2050.py | 39e0855c8d394824782b720b12dc49abc657ca09 | [] | no_license | https://github.com/kanamycine/surely-kill-algorithm | 21a8899f522f44659107f2556eea3bc48b343cc9 | 7fb2345b29dc0e2ddc3df9933c806a41ed2cd409 | refs/heads/master | 2022-12-20T06:12:05.442990 | 2020-09-18T11:40:11 | 2020-09-18T11:40:11 | 285,782,987 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | input_string = input()
number = len(input_string)
result_list = []
for i in input_string:
val = ord(i) - 64
result_list.append(val)
for i in result_list:
print(i, end= " ") | UTF-8 | Python | false | false | 185 | py | 58 | 보충_2050.py | 42 | 0.627027 | 0.616216 | 0 | 9 | 19.666667 | 27 |
pulumi/infrastructure-as-code-workshop | 8,693,013,845,766 | fb9b48820fd11d3484d53f14d8ac29989e6f0599 | dad254fc208d692c32075c684c949c331edce10a | /labs/aws/in-person/python/lab-01/code/05-making-your-stack-configurable/step2.py | 3fff3c2e0856d19f82d9e0bb3a104761f1710195 | [] | no_license | https://github.com/pulumi/infrastructure-as-code-workshop | b0671d3387b2acded953f33eb8f8a7fdbb851449 | a4d142c9237d8e9a4c1868f8b15e776a244c0e2f | refs/heads/master | 2023-08-30T17:12:10.227583 | 2022-09-26T16:59:09 | 2022-09-26T16:59:09 | 213,717,361 | 89 | 45 | null | false | 2023-07-12T10:27:45 | 2019-10-08T18:13:27 | 2023-04-27T17:56:27 | 2023-07-12T10:27:45 | 1,167 | 91 | 39 | 14 | C# | false | false | import pulumi
import pulumi_aws as aws
import os
import mimetypes
config = pulumi.Config()
site_dir = config.require("siteDir")
bucket = aws.s3.Bucket("my-bucket",
website={
"index_document": "index.html"
})
filepath = os.path.join(site_dir, "index.html")
mime_type, _ = mimetypes.guess_type(filepath)
obj ... | UTF-8 | Python | false | false | 609 | py | 120 | step2.py | 52 | 0.711002 | 0.707718 | 0 | 25 | 23.36 | 90 |
AnetteAgura/MVC_Pood | 4,509,715,676,911 | 957a2bed68800fe6ebb61963939dcf2bdb161ff0 | b2b8e3d33bfc3c50c1917d9d30887ca85bc9692d | /view.py | 937d78d1cf7d4150d272c34853cdbd84e16ac105 | [] | no_license | https://github.com/AnetteAgura/MVC_Pood | d1892f3b10b0e9bcf726fea82f37cd0041bd453c | af29c0b2a0d7d7fe4eb14c08095ea08570899b95 | refs/heads/master | 2022-12-26T17:48:25.679060 | 2020-09-30T08:22:14 | 2020-09-30T08:22:14 | 295,957,514 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
class View:
# show items
def showItems(self, items):
print("============================")
print("Shop items")
print("============================")
df = pd.DataFrame(columns=['Name', 'Price', 'Amount'])
for item in items:
df = df.append({... | UTF-8 | Python | false | false | 1,387 | py | 6 | view.py | 5 | 0.447729 | 0.447729 | 0 | 39 | 34.589744 | 125 |
leodotnet/preprocess | 14,998,025,804,111 | a2643d82af4dec85d486a02dd90319124883dc51 | a73c7e033bb111f53c8f4d7cc74af1bb9faef822 | /extract_sentence.py | ce2615a4fee3368bfb1908483447ec3c5f41c230 | [] | no_license | https://github.com/leodotnet/preprocess | 2d06e1bf7faef289892520be130491bbf6a86886 | f204b16e7360843c1ba78200246f9c08ec037799 | refs/heads/master | 2022-04-07T15:31:04.360088 | 2020-02-20T13:15:12 | 2020-02-20T13:15:12 | 113,522,100 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
from optparse import OptionParser
#from preprocesstwitter import tokenize
import utils
import subprocess
usage = "extract_sentence.py --inputfile [inputfile] --outputfile1 [outputfile1] --outputfile2 [outputfile2] --ignore [ignore string] --numsent [numer of sentence]"
parser = OptionParser(usage=usage)
pa... | UTF-8 | Python | false | false | 3,684 | py | 27 | extract_sentence.py | 25 | 0.613735 | 0.604777 | 0 | 106 | 33.726415 | 164 |
eigenein/epicwar | 10,290,741,656,972 | 4d1ad6934891170964d44889fcfe1784b96f9587 | c4aad5db7a64b2adc27029da3e2c49b484226172 | /epicbot/utils.py | 09b13bae981ef70c0e713b2ea62124c1f2345abf | [] | no_license | https://github.com/eigenein/epicwar | 3c7a08694dc130c7a7a1781416fd920399017809 | 817a1ba9d3ec31ad719b88f94a58e3c0dcbc43e9 | refs/heads/master | 2020-04-12T08:54:56.109187 | 2016-10-07T13:25:24 | 2016-10-07T13:25:24 | 64,416,821 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# coding: utf-8
import logging
import typing
import click
import epicbot.enums
class Context:
user_id = None # type: str
remixsid = None # type: str
# FIXME: the following options are not needed in Bot 2.0.
start_time = None # type: float
log_handler = None # type: Co... | UTF-8 | Python | false | false | 1,686 | py | 17 | utils.py | 15 | 0.596085 | 0.586002 | 0 | 62 | 26.193548 | 82 |
TketEZ/ML-Classification-Task | 6,141,803,281,065 | 1bdb1670ab4fdf0e769ec03c40ed8d1243064755 | 34e2034ddb49fa9e6995db9bf2cbb0779a87bd50 | /fomlads/plot/mlp_plots.py | 85cf4e3430a41cc0a8e9cd184d51d26b50c6b194 | [] | no_license | https://github.com/TketEZ/ML-Classification-Task | 4b297e0ec739cc0c157f41c3e69098772df88c31 | 1d559590305b25d77b75fd8ed9983cbb8dc773f6 | refs/heads/main | 2023-04-22T12:06:36.626225 | 2021-05-09T18:03:53 | 2021-05-09T18:03:53 | 365,822,025 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # file to plot different graphs for the MLP model
import os
import numpy as np
import matplotlib.pyplot as plt
def plot_training_loss(hyperparameters, loss_curves, hyperparameter_type):
"""
Function to plot loss curves for MLP, for different activation functions
:param hyperparameters: a list of hyperpara... | UTF-8 | Python | false | false | 2,572 | py | 18 | mlp_plots.py | 15 | 0.696734 | 0.68507 | 0 | 54 | 46.62963 | 101 |
AinaVendrell/Video-Coding-Systems | 13,915,694,059,071 | 95cf22b0a078957fdc15a9ee77db9beb25174be8 | 74efbe4835ed3177bc030dc7d6aa0035d7ad6f83 | /S3-Streaming/transform.py | 7077d060402f3dad5cad0eb8a92f746ab62cca80 | [] | no_license | https://github.com/AinaVendrell/Video-Coding-Systems | 003fc71233c01301f8bff7603f19e1f4c6d760cc | 93e59fb41c5a4c7f78f03b8a5ae6e11d0f28170a | refs/heads/main | 2023-02-02T16:15:58.654252 | 2020-12-16T21:22:30 | 2020-12-16T21:22:30 | 309,814,000 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pathlib import Path
import os
def transform(size):
file_name = "BBB_" + size + ".mp4"
input_file = Path.cwd() / "Assets" / file_name
output_path = Path.cwd() / "Results" / size
output_path.mkdir(parents=True, exist_ok=True)
output_file_VP8 = str(output_path / f"BBB_{size}_VP8")
output_f... | UTF-8 | Python | false | false | 1,236 | py | 27 | transform.py | 21 | 0.645631 | 0.610841 | 0 | 36 | 33.305556 | 129 |
stelligent/database-artifact-factory | 111,669,199,506 | 51753001b01e1ebbbfb92331e646dce1f08aaa00 | 4e1a2aef700cb5a06a1bc09d230dbe629d9433a1 | /db_artifact_builder/image_builder.py | 54c025b5a176c51fb26d2609ceedf079b67d17d3 | [] | no_license | https://github.com/stelligent/database-artifact-factory | 7f459d7d0b044147721409726bf0edbab8db601d | 6aef0071ec92b8b8a28c8154db3c5700f6711a0f | refs/heads/master | 2022-11-01T14:16:20.502936 | 2020-06-08T19:03:38 | 2020-06-08T19:03:38 | 268,830,766 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from db_artifact_builder.db_artifact_builder_config import DbArtifactBuilderConfig
from db_artifact_builder.sceptre_parameter_generator import SceptreParameterGenerator
from shutil import copyfile, copytree, rmtree
import docker
import pkg_resources
import os
class ImageBuilder:
def __init__(self, config_file, ses... | UTF-8 | Python | false | false | 2,370 | py | 31 | image_builder.py | 15 | 0.574684 | 0.574684 | 0 | 76 | 30.184211 | 91 |
lucascv/Python | 10,557,029,644,874 | d9ee9b2a57225bf2077e2d8b0e928e1895daabe7 | 3ca5afb8d7b8576b90dd91ec0dbb3c80b84bb5ce | /PycharmProjects/guppe/sec7_p1_ex24.py | 6b473e31684307f71b7dcbc8539b1d20c0cc8078 | [] | no_license | https://github.com/lucascv/Python | fb9599e29c5d50002aa1deff630c2a533dbab5ed | 782b5d9c856311cf6d9de02d9e9955fd756b0422 | refs/heads/master | 2022-11-20T15:48:44.658327 | 2020-07-01T04:09:17 | 2020-07-01T04:09:17 | 274,426,006 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Varíaveis iniciais
A = {}
cont = 0
# Adicionando dados dos alunos ao dicionário
while cont < 5:
indice = int(input(f'Digite a matrícula do {cont + 1}º aluno: '))
altura = float(input(f'Digite a altura do {cont + 1}º aluno: '))
A[indice] = altura
cont = cont + 1
# Calculando as maiores e m... | UTF-8 | Python | false | false | 937 | py | 145 | sec7_p1_ex24.py | 144 | 0.640389 | 0.634989 | 0 | 33 | 26.060606 | 93 |
cinderbl0ck/Code | 19,207,093,761,512 | 1ca6d0210d059320ebb3b230f74fc95053df3051 | 4823f26fc25629c6ad75cbd89bfbda2668fb9212 | /py_sql_testing/sqltest_1.py | edcedeae9252ff225b9a5d565473ab34802da0b9 | [] | no_license | https://github.com/cinderbl0ck/Code | 141b993ddcad2b732e6a982ee0615b5c46703073 | bf317bd98720a3c73db5bcf5ecaaa0d001f8bce2 | refs/heads/master | 2022-01-25T11:21:53.245448 | 2022-01-09T20:05:01 | 2022-01-09T20:05:01 | 129,013,278 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # https://python-course.eu/sql_python.php
import sqlite3
connection = sqlite3.connect("company.db")
cursor = connection.cursor()
# delete
#cursor.execute("""DROP TABLE employee;""")
sql_command = """
CREATE TABLE employee (
staff_number INTEGER PRIMARY KEY,
fname VARCHAR(20),
lname VARCHAR(30),
gender CHAR(1),
joini... | UTF-8 | Python | false | false | 833 | py | 25 | sqltest_1.py | 21 | 0.714286 | 0.686675 | 0 | 33 | 24.272727 | 86 |
DavideMerlin/Coding_Interviews_Prep | 3,925,600,113,165 | ad5f38d13424417d1f70325cc0f4726c069593c3 | a2138d5ca8c8e8c08c43c142dc7830be3507d12e | /RemoveDuplicatesFromSortedArray.py | 2f8d0eb85258602e1afd388ee589fc8cc209374d | [] | no_license | https://github.com/DavideMerlin/Coding_Interviews_Prep | b494e5598231b6040cc444b68cc12d8149efeac8 | 95eed4e5fa533ce1bb4697ef5d4e09f09739e682 | refs/heads/main | 2023-08-29T01:23:42.410485 | 2021-10-14T17:51:47 | 2021-10-14T17:51:47 | 399,604,977 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
#set lenght to zero
lenght = 0
#if lenght of array is 0, return 0
if len(nums) == 0:
return lenght
#loop through 1 and lenght of array and get each element
fo... | UTF-8 | Python | false | false | 644 | py | 12 | RemoveDuplicatesFromSortedArray.py | 11 | 0.490683 | 0.478261 | 0 | 20 | 31.2 | 80 |
samarthsaxena/Python3-Practices | 6,133,213,334,870 | 5f8f419e9227df3487773d1828ae6db71b2665cb | 1028868e6656956b368e915c2b126b36571165bd | /GUI Programming/ScreenSaver/BouncingBall.py | a52a350af2539a5ec6c6c34027bb68719ae8532d | [] | no_license | https://github.com/samarthsaxena/Python3-Practices | 3ae40d73127167cacd037486a3ee448c624426ac | a7688d694582c6ee0b8df5eb6d21419b0556c17d | refs/heads/master | 2023-06-27T15:46:35.896562 | 2021-07-29T06:22:51 | 2021-07-29T06:22:51 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import appuifw
from graphics import *
import e32
from key_codes import *
class Keyboard(object):
def __init__(self, onevent=lambda: None):
self._keyboard_state = {}
self._downs = {}
self._onevent = onevent
def handle_event(self, event):
if event['type'] == appuifw.EEventKeyDow... | UTF-8 | Python | false | false | 3,452 | py | 231 | BouncingBall.py | 216 | 0.579954 | 0.539108 | 0 | 123 | 27.073171 | 84 |
jbroyhill/projects | 3,917,010,203,542 | 3ff5152a9e0d346b7fcf979e571aeca91e155701 | 80918108acdc9968f83b9a0368d586d1a192e7b1 | /main.py | a1872e77ff350484ed85c4f375cecffd727e6934 | [] | no_license | https://github.com/jbroyhill/projects | e7c10744cf52b23c391f77f3b2c9a3594fe32ee4 | 34d3411c9a5756ed8837a004fa63452467c07384 | refs/heads/main | 2023-06-05T16:15:38.545935 | 2021-06-24T00:03:25 | 2021-06-24T00:03:25 | 313,171,518 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# import the chatterbot package
# This is the chatbot engine we will use
from chatterbot import ChatBot
# Give our chatbot a name
chatbot = ChatBot("CHATBOT")
# Packages used to Train your chatbot
from chatterbot.trainers import ListTrainer
from chatterbot.trainers import ChatterBotCorpusTrainer
# Add a... | UTF-8 | Python | false | false | 6,093 | py | 5 | main.py | 4 | 0.642048 | 0.637781 | 0 | 150 | 38.606667 | 115 |
qubell/contrib-cli-launcher | 5,050,881,587,826 | 0aada76aae92e99399076430f3f91defe3742730 | ea7e10d83b1c60b653c985348042b1d89691ba66 | /setup.py | 34c221bb40ce273fb48810e4c97ca4df0835174c | [
"Apache-2.0"
] | permissive | https://github.com/qubell/contrib-cli-launcher | ea7e14ad1dea4f900d997331cb7e73b11bbfe028 | 5bd4348a16c0c0be064eefe1fa90bdb5c6bd8795 | refs/heads/master | 2018-01-07T16:18:56.131461 | 2014-04-16T14:33:38 | 2014-04-16T14:33:38 | 12,596,671 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from setuptools import setup
setup(
name='manifest-launcher',
version='0.0.1',
author='Vasyl Khomenko',
author_email='vkhomenko@qubell.com',
packages=['manifest_launcher'],
url='https://github.com/qubell/contrib-cli-launcher',
license='LICENSE.txt',
description='Client tool for qubell p... | UTF-8 | Python | false | false | 577 | py | 16 | setup.py | 2 | 0.64818 | 0.642981 | 0 | 20 | 27.85 | 73 |
sumannam/DEVS-Python | 8,564,164,795,544 | 90b0a6f4aa4a3d54c3790975b89ffd2573756255 | 18b4252fc653583528d3171ab04281801341836b | /src/ATOMIC_MODELS.py | 66f2f7e269055c3c5ec1f40175c9a3b6ca911fb9 | [
"Apache-2.0"
] | permissive | https://github.com/sumannam/DEVS-Python | dd45a7e6b17fd904a20691effa78711d2aa05ca4 | 919ddc77f15cf61af7b2351a681b6de703d11c08 | refs/heads/master | 2023-08-31T23:21:16.410193 | 2023-08-19T11:37:30 | 2023-08-19T11:37:30 | 216,816,867 | 1 | 1 | Apache-2.0 | false | 2023-08-19T11:37:31 | 2019-10-22T13:10:14 | 2022-01-07T13:16:51 | 2023-08-19T11:37:30 | 42,526 | 2 | 1 | 4 | Python | false | false | import math
from abc import abstractmethod
from src.MODELS import MODELS
from src.SIMULATORS import SIMULATORS
from src.CONTENT import CONTENT
class ATOMIC_MODELS(MODELS):
"""! ATOMIC_MODELS class.
모델링 시 원자 모델들에서 사용할 수 있는 함수들 정의
"""
def __init__(self):
MODELS.__init__(self)
self.proce... | UTF-8 | Python | false | false | 5,045 | py | 33 | ATOMIC_MODELS.py | 26 | 0.528815 | 0.519534 | 0 | 167 | 26.748503 | 168 |
sandeepkumarmishra2002/HatSploit | 13,786,845,061,112 | 41876a38091fe74ca7b3df4b0f0198c0ab4631aa | 285b69d0ecd81265d3a78bd1a8017f1ff6cff945 | /modules/auxiliary/multi/scanner/port_scanner.py | 4bed07618baaa556af567415c438d43c5e0fb646 | [
"MIT"
] | permissive | https://github.com/sandeepkumarmishra2002/HatSploit | f0d2462226330ffd303874040332078eee9ed234 | 235de4e9ee65a8293ae9b74af7cf854ff85b7897 | refs/heads/main | 2023-03-29T06:06:54.461378 | 2021-04-05T06:03:09 | 2021-04-05T06:03:09 | 354,847,802 | 1 | 0 | MIT | true | 2021-04-05T13:41:18 | 2021-04-05T13:41:18 | 2021-04-05T06:03:11 | 2021-04-05T06:03:09 | 9,940 | 0 | 0 | 0 | null | false | false | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | UTF-8 | Python | false | false | 2,636 | py | 31 | port_scanner.py | 21 | 0.603187 | 0.594461 | 0 | 81 | 31.54321 | 80 |
shwjais/Blog | 5,111,011,097,115 | efc619d74912c59ac11c53005fc8cd6b40aec234 | f9e94c4d349505ac2c1ef68eee5f9952ee7cca53 | /exp/exp_app/migrations/0003_auto_20180808_1124.py | 05b979280bc524d4802b85a37ea2bd329364a13b | [] | no_license | https://github.com/shwjais/Blog | 8bb16fc4a1179b304dcd08d51b03bbed6d4e30f7 | 020c3c28dc630eac54c57894837f1edb2d24dcf6 | refs/heads/master | 2020-05-19T11:34:48.128194 | 2019-05-05T07:29:42 | 2019-05-05T07:29:42 | 184,995,452 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.0.7 on 2018-08-08 05:54
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('exp_app', '0002_auto_20180808_1123'),
]
operations = [
migrations.AlterField(
... | UTF-8 | Python | false | false | 503 | py | 6 | 0003_auto_20180808_1124.py | 6 | 0.628231 | 0.532803 | 0 | 20 | 24.15 | 109 |
ZendaInnocent/booktime | 5,738,076,338,240 | b37d15745d16d784f7f52c4c1538e20845e949d2 | c2dfac3d22ae34d1da47088ef394f5a6f2d7aba8 | /main/factories.py | 4f8a0c7edf2e8fec5f86f5ebc1f777cea7d6903d | [] | no_license | https://github.com/ZendaInnocent/booktime | e9d398586c547a12f9bacbd6414c24b371dac65a | f3f36f7cf70c2e2d10465a79d86a4171d13a13e7 | refs/heads/main | 2023-04-06T22:46:30.800584 | 2021-04-14T09:52:43 | 2021-04-14T09:52:43 | 316,943,003 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.auth import get_user_model
import factory
from factory import fuzzy
from .models import Product
from accounts.models import Address
User = get_user_model()
class UserFactory(factory.django.DjangoModelFactory):
email = 'user@site.com'
class Meta:
model = User
django_get_... | UTF-8 | Python | false | false | 591 | py | 32 | factories.py | 17 | 0.708968 | 0.695431 | 0 | 30 | 18.7 | 56 |
chridey/chnlp | 15,668,040,709,399 | 5f3d15a8ae34f54a645ccec508cd60744af97918 | f0c3176c38ba22334f5cc074e0ca6081154b4fea | /bin/exploreData.py | 6b7329084f0f66599292a39f3880e4a1ced62fbf | [] | no_license | https://github.com/chridey/chnlp | a1f097998a6afb05b4cd507e905031bfae292323 | 664a4ab9e9f637a361122dfbb1c668bfe9a5d91a | refs/heads/master | 2015-08-19T15:27:35.681381 | 2015-01-21T20:10:29 | 2015-01-21T20:10:29 | 29,450,511 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import json
import collections
from chnlp.utils.utils import splitData
from chnlp.altlex.config import Config
from chnlp.altlex.featureExtractor import makeDataset
from chnlp.ml.randomizedPCA import RandomizedPCA
with open(sys.argv[1]) as f:
data = json.load(f)
config = Config()
featureSettings = conf... | UTF-8 | Python | false | false | 569 | py | 43 | exploreData.py | 43 | 0.734622 | 0.732865 | 0 | 24 | 22.708333 | 53 |
AI-Jiny/Python-Practice | 19,550,691,150,523 | 6717e646f2a8141204d547735d7f08a317fdaae3 | 002674bf6b0318cee3a55429fbee13e410f5b104 | /Problem/04_while문/01_A+B-5.py | 3e01ed7407f0cb2995f0d412b6748faadc4f9ef2 | [] | no_license | https://github.com/AI-Jiny/Python-Practice | 9585c6c88f95b1fb718e5840b62b4c24b90efe49 | 202190aec0e0b6c9eef800ecf64ef221ab38f50a | refs/heads/master | 2022-11-22T04:19:24.568947 | 2020-07-28T14:17:24 | 2020-07-28T14:17:24 | 280,590,567 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | while True:
b = sum(list(map(int, input().split())))
if b == 0:
break
print(b)
| UTF-8 | Python | false | false | 99 | py | 29 | 01_A+B-5.py | 28 | 0.484848 | 0.474747 | 0 | 5 | 18.8 | 44 |
karthikpappu/pyc_source | 7,052,336,332,250 | 04b587bb93175b152aff907463e3f383c6a46189 | 91fa095f423a3bf47eba7178a355aab3ca22cf7f | /pycfiles/bta-0.6.linux-x86_64.tar/audit_uac.py | 54b581cb570d71c8d62e0330e1995456f441d2aa | [] | no_license | https://github.com/karthikpappu/pyc_source | 0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f | 739e7e73180f2c3da5fd25bd1304a3fecfff8d6e | refs/heads/master | 2023-02-04T11:27:19.098827 | 2020-12-27T04:51:17 | 2020-12-27T04:51:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04)
# [GCC 8.4.0]
# Embedded file name: /usr/local/lib/python2.7/dist-packages/bta/miners/audit_uac.py
# Compiled at: 2015-10-20 16:27:01
from bta.miner import Miner, MinerList
@Miner.register
class U... | UTF-8 | Python | false | false | 595 | py | 114,545 | audit_uac.py | 111,506 | 0.67563 | 0.6 | 0 | 17 | 34.058824 | 84 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.