blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3b04d3b778413a7f94a95da22d271e008cd9655 | 02a0fff2786e5c24eb3f5aa505475705bf460196 | /tests/test_openapi_schema.py | 914f84912e37c7b5fb5c2630232f6b138132a2e5 | [
"MIT"
] | permissive | ismohamedi/django-ninja | 5b63b0d45c0b22a36996e97f82fa289e91ccdffb | 774f7f2af536dbedf527376f1ed6724b2456a54f | refs/heads/master | 2023-03-12T22:30:16.991598 | 2021-02-19T14:55:30 | 2021-02-19T14:55:30 | 341,249,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | from typing import List
from unittest.mock import patch
from ninja import NinjaAPI, Schema
from django.test import Client, override_settings
from copy import copy
api = NinjaAPI()
class Payload(Schema):
i: int
f: float
class Response(Schema):
i: int
f: float
@api.post("/test", response=Response)... | [
"ppr.vitaly@gmail.com"
] | ppr.vitaly@gmail.com |
88d46720752a93211916300c547dbdb1f076b09f | 0bb474290e13814c2498c086780da5096453da05 | /diverta2019/A/main.py | 9d653fcacf100b95d6cac66ff44625485aa86670 | [] | no_license | ddtkra/atcoder | 49b6205bf1bf6a50106b4ae94d2206a324f278e0 | eb57c144b5c2dbdd4abc432ecd8b1b3386244e30 | refs/heads/master | 2022-01-25T15:38:10.415959 | 2020-03-18T09:22:08 | 2020-03-18T09:22:08 | 208,825,724 | 1 | 0 | null | 2022-01-21T20:10:20 | 2019-09-16T14:51:01 | Python | UTF-8 | Python | false | false | 560 | py | #!.//usr/bin/env python3
import sys
def solve(N: int, K: int):
print(N-(K-1))
return
# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
def iterate_tokens():
for line in... | [
"deritefully@gmail.com"
] | deritefully@gmail.com |
08787715e5c39a2256e078d7d66ba33fc723d3cb | b2b9cd537c4c6a216d9b1ee32008cc8e98552405 | /Oriented_crawler/simple_thread/needheader.py | b7e1afc46eb45b39712ffaf80679f9f2e63e5943 | [] | no_license | liyanfeng0127/python2_bdrw | ce982813645294b884d73cd2bbc4de5a33fa2cd5 | 52eba0d67d30ed5ce23e01dde69db35a8ed65787 | refs/heads/master | 2021-05-08T06:50:53.916210 | 2017-10-12T10:41:05 | 2017-10-12T10:41:05 | 106,676,637 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | #-*—coding:utf8-*-
import requests
import re
#下面三行是编码转换的功能,大家现在不用关心。
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
#hea是我们自己构造的一个字典,里面保存了user-agent
#在页面中右键“审查元素”,刷新后“Network”,随便选择左边一个,然后选“Headers”,找'User-Agent'
hea = {'User-Agent':'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko... | [
"yanfeng.li@lejent.com"
] | yanfeng.li@lejent.com |
c273bf8f309abad0d41156555a5b0f898dfb8ff1 | 6bf492920985e3741440ba53e1c7f8426b66ac1f | /snakemake_rules/rules/gatk/gatk_variant_indel_JEXL_filtration.smk | 1bcc6f56005ae9290a2133ced08430e36f8d7e21 | [
"MIT"
] | permissive | ukaraoz/snakemake-rules | 5b2ba7c9ec19d88b56067a46f66fd0c72e48c368 | 07e96afeb39307cdf35ecc8482dc1f8b62c120b9 | refs/heads/master | 2020-03-31T15:20:44.444006 | 2018-09-07T08:53:47 | 2018-09-07T08:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | smk | # -*- snakemake -*-
include: 'gatk.settings.smk'
include: 'gatk_select_indel_variants.smk'
config_default = {'gatk' :{'variant_indel_JEXL_filtration' : _gatk_config_rule_default.copy()}}
config_default['gatk']['variant_indel_JEXL_filtration'].update(
{
'expressions':
["QD < 2.0", "ReadPosRankSum < ... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
fb291cab56eb80122ba5cbe060bfae906dc43ad0 | 6baac3bec174cbb3542d844b34cec3870633e7bf | /red_blue.py | f1ecc21136b6b888b03b5d416a9b4635190f2a47 | [] | no_license | tyday/RedBlue | abcbdbe65fe13ae468cffaf7d9b1b5b1aba34a0f | 4e54d3e4ca67981cc32ba659ec8f0b5aed93b291 | refs/heads/main | 2023-01-07T19:26:40.147228 | 2020-11-07T01:32:50 | 2020-11-07T01:32:50 | 310,451,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,067 | py | # a program to play red vs blue
# It's played on a board. Each side gets to choose an open
# square per side. Selecting a square turns each adjacent square
# your color. The game ends when all squares are filled.
# the winner is the side with the most squares
# created from this idea
# https://red-blue.herokuapp.com/
... | [
"tyrday@gmail.com"
] | tyrday@gmail.com |
c8a08a597f157e4b39c207a5d7d93895a325beea | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /AtCoder/ARC-C/004probC.py | 2dc3017bd13cc5dfe8e5d05bb87bb841727be9e2 | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import sys
input = sys.stdin.readline
from fractions import gcd
X, Y = map(int, input().split("/"))
g = gcd(X, Y)
x = X//g
y = Y//g
n_min = (2*x-y)//(y**2)
n_max = (2*x+y)//(y**2) + 1
ans = []
for n in range(n_min, n_max+1):
if n <= 0: continue
N = y*n
M = N*(N+1)//2 - x*n
if 0 < M <= N:
ans.... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
16fe148351f93eee112d2d7bab5ba1c951af710b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ncLp4ZXvz4x4oEHYh_13.py | 08497f878c8c64402f937ecba818958c517619e3 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | """
Given two unique integer lists `a` and `b`, and an integer target value `v`,
create a function to determine whether there is a pair of numbers that add up
to the target value `v`, where one number comes from one list `a` and the
other comes from the second list `b`.
Return `True` if there is a pair that adds up... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
21326e3552bdb8a7d4600a442d82b4a5930e105e | 5dcdc5720f59280e6e22e78534dc565e9b299048 | /数学/Angles of a Clock.py | 6883e79b5bbaa586ecf7db879518fbfeaa58e64d | [] | no_license | Stella2019/10-24 | 4fc944ba397d8f9494f4fc7ceead3065b4572a55 | d62572831235e8e608f259aa7b3608ae6752a64a | refs/heads/main | 2023-01-01T12:46:06.021044 | 2020-10-24T20:53:12 | 2020-10-24T20:53:12 | 306,967,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def calcAngle(h, m):
hour_angle = (360 / (12 * 60.0)) * (h * 60 + m)
min_angle = 360 / 60.0 * m
angle = abs(hour_angle - min_angle)
return min(angle, 360 - angle)
print(calcAngle(3, 15))
# 7.50
print(calcAngle(3, 00))
# 90 | [
"noreply@github.com"
] | Stella2019.noreply@github.com |
b82cce8fe7e0e430c2cb38d742aab8c0b680be5f | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/bar/_yperiod0.py | 225b424a1703b373d93e4772e32dd4b730f629cb | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 392 | py | import _plotly_utils.basevalidators
class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator):
def __init__(self, plotly_name="yperiod0", parent_name="bar", **kwargs):
super(Yperiod0Validator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
ed... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
6eeba5437fbc07d0f6fd5a93ffba6c90b5d28a83 | 1751ea577fb63c0e34e469193c0de0519fa5d32b | /manage.py | 43213755618f352dfdc6090a6f0056cb9895fc95 | [] | no_license | zakuro9715/uragf | a987f0ae51c15496e48214eaffc5440a1dbc641e | 060658d2dc5a5a15bdd5f2301a60d050b38ddf3d | refs/heads/master | 2021-01-10T00:57:47.417420 | 2016-04-03T05:26:13 | 2016-04-03T05:26:13 | 36,533,479 | 0 | 2 | null | 2015-06-23T23:30:42 | 2015-05-29T23:01:38 | Python | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "uragf.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"zakuro@yuzakuro.me"
] | zakuro@yuzakuro.me |
522c6512806730f37abd8e337751cf53e361a3fb | 0566cf76b456518875edecece15e763a36a4795f | /scrapers/1channelmovie_com.py | 9fdd83bce3433ea161b1b921f96d70c7f22a427f | [] | no_license | theclonedude/Scraping_BeautifulSoup_phantomjs | 684b1f7a993e0d2555daa7a5455cf19bd29b0b1b | faf653feae46c21a72d13b2123cdebdb2f7c05d8 | refs/heads/master | 2023-03-16T19:36:14.867361 | 2018-06-14T14:21:02 | 2018-06-14T14:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py | import re
from sandcrawler.scraper import ScraperBase, SimpleScraperBase, ScraperFetchException
class OneChannelMovieCom(SimpleScraperBase):
BASE_URL = 'http://www.1channelmovie.com'
OTHERS_URLS = ['http://1channelmovie.com', 'http://www.1channelmovie.com']
# it seems we can merge this with PrimewireAg... | [
"stryokka@gmail.com"
] | stryokka@gmail.com |
fa5e3a6fc50b302b03a1dc690503f0ab53d00c0e | bb45e66a1b438cb9bb8eb2cdcd54d82287338fdf | /pyiem/nws/products/lsr.py | b4e889ea5e7190bcf1cbdd8fe991683969be9c86 | [] | no_license | aarande/pyIEM | 685c50b6af3e2cc936e434d7152e67f4ffc1e0ed | e9467710e6908ca147ebe88c2ee3559484503fe2 | refs/heads/master | 2021-01-21T00:02:22.123066 | 2015-02-27T15:27:45 | 2015-02-27T15:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,383 | py | '''
Local Storm Report
'''
# Stand Library Imports
import datetime
import re
# Third party
import pytz
from shapely.geometry import Point as ShapelyPoint
SPLITTER = re.compile(r"(^[0-9].+?\n^[0-9].+?\n)((?:.*?\n)+?)(?=^[0-9]|$)",
re.MULTILINE)
from pyiem.nws.product import TextProduct, TextPro... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
8083e994eaa7d834c3bfa85f4db0f2406e2291d2 | 709bd5f2ecc69a340da85f6aed67af4d0603177e | /saleor/account/backends/google.py | 6c8e205b957de89d66aa8f067b3271926f386c40 | [
"BSD-3-Clause"
] | permissive | Kenstogram/opensale | 41c869ee004d195bd191a1a28bf582cc6fbb3c00 | 5102f461fa90f2eeb13b9a0a94ef9cb86bd3a3ba | refs/heads/master | 2022-12-15T02:48:48.810025 | 2020-03-10T02:55:10 | 2020-03-10T02:55:10 | 163,656,395 | 8 | 0 | BSD-3-Clause | 2022-12-08T01:31:09 | 2018-12-31T09:30:41 | Python | UTF-8 | Python | false | false | 222 | py | from social_core.backends.google import GoogleOAuth2
from . import BaseBackend
from ...site import AuthenticationBackends
class CustomGoogleOAuth2(BaseBackend, GoogleOAuth2):
DB_NAME = AuthenticationBackends.GOOGLE
| [
"Kenstogram@gmail.com"
] | Kenstogram@gmail.com |
56c555025b131f114b3d96bcf46ab5d8b4e5c909 | 4252102a1946b2ba06d3fa914891ec7f73570287 | /pylearn2/scripts/jobman/tester.py | 6c7685167c84cb7e7757a0b616da9bcc0868a95a | [] | no_license | lpigou/chalearn2014 | 21d487f314c4836dd1631943e20f7ab908226771 | 73b99cdbdb609fecff3cf85e500c1f1bfd589930 | refs/heads/master | 2020-05-17T00:08:11.764642 | 2014-09-24T14:42:00 | 2014-09-24T14:42:00 | 24,418,815 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | """
This an example script inserting a pylearn2 yaml code into a jobman database.
The code below defines a yaml template string in state.yaml_template,
and the values of its hyper-parameters in state.hyper_parameters, and
run the code that is located in state.extract_results on this model
using jobman.
Actually, we a... | [
"lionelpigou@gmail.com"
] | lionelpigou@gmail.com |
77f509fce29adca2f0ee33c911a594f1f01a20a5 | f2e503885666f35f9c50c9cff411c3a47fb81093 | /andelabs1.py | fd8af25851ab59ffa321b1e06b42dd65a50dd245 | [] | no_license | SamwelOpiyo/andelabs | 87c7a6b0ae078afd0a4b620dc4f0a7ba898e006c | fa7b6fe14f3942d2ee47f81e6a78a375dd7e2210 | refs/heads/master | 2021-01-09T20:43:23.986700 | 2017-01-22T19:45:19 | 2017-01-22T19:45:19 | 65,727,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | def prime():
integer = int(raw_input("Enter an Integer:"))
prime_list = list()
if integer==2:
prime_list.append(integer)
elif integer==3:
prime_list.append(2)
prime_list.append(integer)
else:
prime_list.append(2)
prime_list.append(3)
for k in range(4,i... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
58aad0ee9098bd5db56320c38d09085fce097091 | 9023909d2776e708755f98d5485c4cffb3a56000 | /oneflow/compatible_single_client_python/nn/optimizer/adamw.py | a4f8cddbc181f472ebc8eeb4a1f3cbfcd18a3c89 | [
"Apache-2.0"
] | permissive | sailfish009/oneflow | f6cf95afe67e284d9f79f1a941e7251dfc58b0f7 | 4780aae50ab389472bd0b76c4333e7e0a1a56ef7 | refs/heads/master | 2023-06-24T02:06:40.957297 | 2021-07-26T09:35:29 | 2021-07-26T09:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,090 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | sailfish009.noreply@github.com |
b6eb79f493fa5f99d269963e332bfdb0f53613f0 | f8c3c677ba536fbf5a37ac4343c1f3f3acd4d9b6 | /ICA_SDK/test/test_subscription.py | b9856eade3bbf9f75b638633d6bce99d475b5031 | [] | no_license | jsialar/integrated_IAP_SDK | 5e6999b0a9beabe4dfc4f2b6c8b0f45b1b2f33eb | c9ff7685ef0a27dc4af512adcff914f55ead0edd | refs/heads/main | 2023-08-25T04:16:27.219027 | 2021-10-26T16:06:09 | 2021-10-26T16:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | # coding: utf-8
"""
IAP Services
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
... | [
"siajunren@gmail.com"
] | siajunren@gmail.com |
a89de6c602a550c947a03e246638a7a409ca8899 | 878a3094430bb914717d641a4f4b06574e872518 | /hm_00_python/hm_0x_编辑用.py | e3e42e7d8c6ae0ec59b41a29d979116092a16cdf | [] | no_license | 2020668/python2019 | 3f33eea85fdd3f2866d867859d5694abb71effe9 | f8a98389fa09f95e72914afa4935afc5c68eaccd | refs/heads/master | 2020-06-07T23:36:17.871376 | 2019-08-29T09:45:10 | 2019-08-29T09:45:10 | 193,116,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py |
def sum_2_num(num1,num2):
"""对两个数字求和"""
return num1 + num2
# 调用函数,并使用result变量接收计算结果
result = sum_2_num(10,20)
print("计算结果是: %d" % result)
| [
"keen2020@outlook.com"
] | keen2020@outlook.com |
a361e33242f19d9a4224e3176f42124b93cac1ef | daf7f2ba83c57819e85356906919309933af4526 | /util/validate-outputs.py | 246d094723a6c9142614278f5d233e876eb43baa | [
"MIT"
] | permissive | ihmwg/python-ihm | 158514e6148fa6f2651548077cf386d4bbdf1483 | ab685eaabd537a46184172cffe7a2f057343d390 | refs/heads/main | 2023-09-01T16:15:00.148446 | 2023-08-31T00:45:21 | 2023-08-31T00:45:21 | 123,497,102 | 17 | 8 | MIT | 2023-07-10T19:00:38 | 2018-03-01T21:57:40 | Python | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/python3
"""Check the output of each example for validity against the PDBx
and IHM dictionaries.
This should be periodically rechecked in case the PDBx and IHM dictionaries
are updated.
"""
import sys
import os
import subprocess
import ihm.dictionary
import urllib.request
with urllib.request.urlo... | [
"ben@salilab.org"
] | ben@salilab.org |
21e7a9d8d8ebbd2404e408c669c67da0b5559eb7 | b0cdab54c5e81681125c01801148c287605ee8d0 | /speciality/urls.py | 74bbfe233256fb4a38f2fe7a7aa9036aae4aa4f5 | [] | no_license | lpd76/rdavid2 | 5528746749acc51d4d0f5efd77886929798e2569 | 18aa5120fe4ba0ea44f611dd52b008db52641f17 | refs/heads/master | 2020-04-13T20:47:58.141579 | 2019-01-17T16:51:31 | 2019-01-17T16:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.urls import path
from . import views
urlpatterns = [
path('index', views.speciality_list, name='speciality_list'),
] | [
"louisphilippe.david@gmail.com"
] | louisphilippe.david@gmail.com |
dc82be647e361b442c5007d4a567670023744ff1 | b420377a638dc9a5d8c09ebc39b0448d47ddb74e | /ddd-django/polls_app/base_site/views.py | 6fe6e69eeec0dc6328f6242d5cb592395cd53429 | [] | no_license | shimakaze-git/drf-sample | d4e4e8e4d380f0b77e807d4bbf4e3f0d98ee6bcd | 4294cd5adeea0ef51d3b7eee6a154d23dd089afc | refs/heads/master | 2022-05-02T20:19:09.901257 | 2019-09-15T12:46:51 | 2019-09-15T12:46:51 | 205,698,781 | 0 | 0 | null | 2022-04-22T22:29:32 | 2019-09-01T15:52:14 | Python | UTF-8 | Python | false | false | 626 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views import View
class IndexView(View):
template_name = 'index.html'
def get(self, request):
context = {}
# return HttpResponse('test')
return render(request, self.template_name, context)
def po... | [
"shimakaze.soft+github@googlemail.com"
] | shimakaze.soft+github@googlemail.com |
c355a985943e570ffb642a4967e78a28c1b18b0d | aca7ba7e5f801f89374ac4be3544ceb49889e59f | /data/diseases/importPgkbDis.py | 81aac7a5322e0da4f0bbb60386ea2f6e8c024c63 | [] | no_license | strbean/pubMunch | 582e47eadaeb5e204960c21d84d2eaf5d10b9726 | c81d9935505779508df8e99577dd71cc104ea4ee | refs/heads/master | 2020-03-21T10:22:57.685056 | 2018-06-24T05:05:37 | 2018-06-24T05:05:37 | 138,448,203 | 0 | 0 | null | 2018-06-24T02:43:32 | 2018-06-24T02:43:32 | null | UTF-8 | Python | false | false | 258 | py | for line in open("diseases.tsv"):
if line.startswith("PharmGKB"):
continue
fields = line.split("\t")
name = fields[1]
syns = fields[2].split('","')
syns = [s.strip('",') for s in syns]
print "%s\t%s" % (name, "|".join(syns))
| [
"max@soe.ucsc.edu"
] | max@soe.ucsc.edu |
9fbbcf8154c05f7064a216d1d47c4fefd91bb5af | fa114e6fa2c642613ac67960911a21b91bfa5089 | /Home-Services/store/migrations/0001_initial.py | fa40f81506df6858bf11007e732078db786f4829 | [] | no_license | AbdurRahman111/Home-Work-Services | 122c533d440da82199a3d4b647cd0feadb582d54 | 7cb8495d90f980264f97606da120662c7cf56d47 | refs/heads/master | 2023-04-06T22:53:34.590306 | 2021-04-12T08:23:49 | 2021-04-12T08:23:49 | 357,113,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,280 | py | # Generated by Django 3.1.4 on 2021-02-28 08:30
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
... | [
"mdabdurrahmanchowdhury1122@gmail.com"
] | mdabdurrahmanchowdhury1122@gmail.com |
1bd5242816fc5adefb64d1509e8712a63499e48a | 1c0509a06cec726735048f00f63d2529f5e43ce6 | /code_gasoline_france/analysis/analysis_dispersion/graphs/graphs_macro_trends.py | 433290f30b21187244f88206ba00b34d93d9613b | [] | no_license | etiennecha/master_code | e99c62e93aa052a66d4cdd3f3e3aa25a3aec4880 | 48821f6c854a1c6aa05cf81b653b3b757212b6f8 | refs/heads/master | 2021-01-23T14:35:45.904595 | 2018-03-11T18:57:38 | 2018-03-11T18:57:38 | 16,312,906 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,465 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import add_to_path
from add_to_path import path_data
from generic_master_price import *
from generic_master_info import *
path_dir_built = os.path.join(path_data,
u'data_gasoline',
... | [
"echamayou@gmail.com"
] | echamayou@gmail.com |
43a5269c653fb02480325cb8c86fd6ac270b6181 | ce661026009d622db924080d85ab529f1cae6b60 | /codingbat.com/not_string.py | 3a13b969ff38b7af6b31a1ef6b1b887e7e4db819 | [] | no_license | predavlad/projecteuler | d54f5d85ab0133b19b54b4168990b90f09a0184c | 58e1637733bb7e01e44bfac707353ecfe84d9b19 | refs/heads/master | 2021-01-23T15:29:26.257019 | 2019-02-09T10:11:23 | 2019-02-09T10:11:23 | 12,952,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | def not_string(str):
if str[0:3] == 'not':
return str
return "not " + str
assert not_string('candy') == 'not candy'
assert not_string('x') == 'not x'
assert not_string('not bad') == 'not bad' | [
"preda.vlad@yahoo.com"
] | preda.vlad@yahoo.com |
c137abb7879efd8cba96903b886443f16417a424 | e1292fb9f2b359f71fbc54a4eb6ae4cf0c1ff51d | /machines/towermain/temperature.py | 0f2911f2ee9401ba811d95d931d6a99320f76880 | [] | no_license | JNRiedel/PyExpLabSys | 879d5c6bf552e89134629f0c6ca011af67937c3d | b69daaa9c932b9264d9f731cc3f2091f31f5d36e | refs/heads/master | 2020-04-08T08:45:17.466865 | 2014-08-22T11:06:24 | 2014-08-22T11:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | # -*- coding: utf-8 -*-
"""This script read the sample temperature from an Omega CNi3244_C24
temperature control unit and makes it available on a data socket. Furthermore,
it also log significant temperature points to the database.
"""
import time
from PyExpLabSys.drivers.omega import CNi3244_C24
from PyExpLabSys.comm... | [
"k.nielsen81@gmail.com"
] | k.nielsen81@gmail.com |
929c36a16c6510056a32e3a51fdc66da8a0b0bae | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_35/own_filter.py | 88b22438ef99e205d34e4d28385a56a6dc930970 | [] | no_license | developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from telegram.ext import MessageFilter
class HandlePython(MessageFilter):
name='Filters.python'
def filter(self, message):
return 'python' in message
python=HandlePython()
class FilterAwesome(MessageFilter):
def filter(self, message):
return 'Dilshod' in message.text
filter_awesome=Filter... | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
ef244246907dc513e7d6480d145bca83363884b1 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/sql/v20210201preview/get_sync_agent.py | c041588b469bf583ea5fe3162b8e9d913380dff9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,746 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
72536ffc2001ee0a6739dd5cbc5f200e014063a0 | 5ed2d0e107e4cdcd8129f418fdc40f1f50267514 | /Medium/WordBreak/test.py | b3be093b1de892e18dfc3f8c3a1b7047621616fd | [] | no_license | tliu57/Leetcode | 6cdc3caa460a75c804870f6615653f335fc97de1 | c480697d174d33219b513a0b670bc82b17c91ce1 | refs/heads/master | 2020-05-21T03:14:07.399407 | 2018-07-08T18:50:01 | 2018-07-08T18:50:01 | 31,505,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | class Solution(object):
def wordBreak(self, s, wordDict):
dp = [0 for i in range(len(s)+1)]
dp[0] = 1
for i in range(1, len(s)+1):
for j in range(0, i):
dp[i] = dp[j] and (s[j:i] in wordDict)
if dp[i]:
break
return dp[len(s)]
sol = Solution()
print sol.wordBreak("leetcode", ["leet", "code"])
... | [
"tliu57@asu.edu"
] | tliu57@asu.edu |
43db92d549c4350589805bb14e755300ffbd27b8 | 29345337bf86edc938f3b5652702d551bfc3f11a | /python/src/main/python/pyalink/alink/tests/examples/operator/batch/test_fpgrowth.py | 320e2b8f49396dfb6cd99a9decade08889f1534a | [
"Apache-2.0"
] | permissive | vacaly/Alink | 32b71ac4572ae3509d343e3d1ff31a4da2321b6d | edb543ee05260a1dd314b11384d918fa1622d9c1 | refs/heads/master | 2023-07-21T03:29:07.612507 | 2023-07-12T12:41:31 | 2023-07-12T12:41:31 | 283,079,072 | 0 | 0 | Apache-2.0 | 2020-07-28T02:46:14 | 2020-07-28T02:46:13 | null | UTF-8 | Python | false | false | 733 | py | import unittest
import numpy as np
import pandas as pd
from pyalink.alink import *
class TestFpGrowth(unittest.TestCase):
def test_fpgrowth(self):
data = np.array([
["A,B,C,D"],
["B,C,E"],
["A,B,C,E"],
["B,D,E"],
["A,B,C,D"],
])
... | [
"shaomeng.wang.w@gmail.com"
] | shaomeng.wang.w@gmail.com |
5bdcfff19eab4786af18070910c55548fcd426dc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02909/s681576776.py | 241c49b560159f84603785465ffd994ee3525f21 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import sys
readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)
def main():
S = input()
p = ["Sunny", "Cloudy", "Rainy"]
print(p[(p.index(S) + 1) % 3])
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c96f6aeeabc58d40d4d44ece2ada2adcf6232c01 | 66fc3d58e94e8340a0d825501776a1dea37c0198 | /share/clf/process_clf_test_frames.py | aa63846e8c287609b0713bda9dd25814f6949612 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | AcademySoftwareFoundation/OpenColorIO | dad370b54be147ae94f18ed6414d53bd76e9ef74 | 96f528fdfb7f9fb24388e33f6a968d29a3909cf8 | refs/heads/main | 2023-08-29T08:51:45.625957 | 2023-08-29T01:42:37 | 2023-08-29T01:42:37 | 775,131 | 843 | 236 | BSD-3-Clause | 2023-09-14T02:56:01 | 2010-07-14T18:22:06 | C++ | UTF-8 | Python | false | false | 3,582 | py | # SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.
# Use OpenColorIO to apply the CLF files from the CLF test kit to the CLF target image
# and produce a directory of processed OpenEXR images at the specified location.
# Run the script with "-h" for usage information.
# This ... | [
"noreply@github.com"
] | AcademySoftwareFoundation.noreply@github.com |
8a5f6c810c7991adc091d743259b6ed996eb5cd7 | e49d49b54f2d5cd25674050419f991477363c46b | /myshop/myshop/settings.py | 0a395ec79e6d309382afe3967821b0a84079f336 | [] | no_license | akashgiricse/online-shop | 0d87323e016f5c8a48020abd1d973987abd86035 | 94438876b8b2dd530ec05cb3c8df1b6a049fa514 | refs/heads/master | 2020-04-10T12:00:02.644277 | 2018-12-24T17:27:06 | 2018-12-24T17:27:06 | 161,008,658 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | """
Django settings for myshop project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
fro... | [
"akashgiricse@gmail.com"
] | akashgiricse@gmail.com |
f80bb33e5349f60b61a5f79be62824f534c30071 | 52a0e6c0be7eebfde22c886ff7b8e605a27428ce | /src/looped/__init__.py | 22239d5ad5b39afa66288653d476cd7ead07ba1e | [] | no_license | vied12/LoopED | 42d5663c36d7b0026196faa152a75576993fb30d | 4126a2b655f68c20bd1029a4d69597dd877c18cb | refs/heads/master | 2022-07-01T04:42:02.150799 | 2017-07-26T12:55:39 | 2017-07-26T12:55:39 | 84,230,616 | 1 | 1 | null | 2022-06-17T21:14:14 | 2017-03-07T18:05:26 | CSS | UTF-8 | Python | false | false | 204 | py | from .Led import create_led
from .animations import Jump, Tuner, Intro, Metronome
from .gamepads import WebGamePad
__all__ = [
'create_led',
'Jump',
'WebGamePad',
'Tuner',
'Intro',
]
| [
"edou4rd@gmail.com"
] | edou4rd@gmail.com |
dec105911efbe7e1fcfffd57f3a39b128a4b12f8 | 4bd9d17a8697c0e87ce8b35e6189913d9f7dd1db | /legtool/gait/test_leg_ik.py | 2ce98243e4217c2bdb3a010821e25e54a5c1ce3f | [
"Apache-2.0"
] | permissive | jpieper/legtool | c72fe8a77871720f217634bb07602c709ba52583 | ab3946051bd16817b61d3073ce7be8bd27af90d0 | refs/heads/master | 2020-05-21T11:34:15.762189 | 2014-12-01T02:15:46 | 2014-12-01T02:15:46 | 21,541,872 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 4,133 | py | # Copyright 2014 Josh Pieper, jjp@pobox.com.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"jjp@pobox.com"
] | jjp@pobox.com |
dd539a81c74353ac014e0b9b7bf8636a6b5d7ef4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04020/s011481880.py | cd16b5ea063aa01e01e9a52b7814e2636bd9e260 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | n = int(input())
a = [int(input()) for _ in range(n)]
lsts = []
temp = []
for aa in a:
if aa == 0:
if temp:
lsts.append(temp)
temp = []
else:
temp.append(aa)
if temp: lsts.append(temp)
ans = 0
for lst in lsts:
for i, aa in enumerate(lst):
ans += aa // 2
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78ea63e50440ee9e3830cc8df7eb1b07d9a104d5 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /want_part/know_great_company.py | 48b6a068bf3763ad3f82345d0496999bf868095a | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py |
#! /usr/bin/env python
def say_thing(str_arg):
world(str_arg)
print('week')
def world(str_arg):
print(str_arg)
if __name__ == '__main__':
say_thing('life')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
83e5c5465a611338cfc230da42437fe7ef263507 | 78628a4c5e4b37167b79f3b9072b30a7772d5c44 | /tests/base.py | 714abff7179532719b0b362d02242c4f08e11feb | [
"BSD-3-Clause"
] | permissive | mdelagrange/consulate | 35f8f02b1568a3d70bbcbab9796ffe7fcfc23a0a | 312f36245aa43da2e0624e2b53dacd52986061d3 | refs/heads/master | 2020-12-28T20:09:10.805411 | 2018-03-13T22:41:46 | 2018-03-13T22:41:46 | 38,765,620 | 0 | 0 | BSD-3-Clause | 2018-07-13T19:21:42 | 2015-07-08T16:20:59 | Python | UTF-8 | Python | false | false | 1,690 | py | import functools
import json
import os
import unittest
import uuid
import httmock
import consulate
from consulate import exceptions
with open('testing/consul.json', 'r') as handle:
CONSUL_CONFIG = json.load(handle)
def generate_key(func):
@functools.wraps(func)
def _decorator(self, *args, **kwargs):
... | [
"gavinr@aweber.com"
] | gavinr@aweber.com |
5bf2243fd6a0eb7978234834a4fafd6a6e57a05f | 9dc6f8d91dc56523b9688990d4ae413b0bcbd4e1 | /examples/x2c/02-basis_for_x.py | 4789dc7470317b423c53acb4b0634b9b695430ef | [
"Apache-2.0"
] | permissive | sunqm/pyscf | 566bc2447d8072cff442d143891c12e6414de01c | dd179a802f0a35e72d8522503172f16977c8d974 | refs/heads/master | 2023-08-15T18:09:58.195953 | 2023-03-27T21:02:03 | 2023-03-27T21:02:03 | 159,149,096 | 80 | 26 | Apache-2.0 | 2022-02-05T00:19:24 | 2018-11-26T10:10:23 | Python | UTF-8 | Python | false | false | 1,764 | py | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
X2c method use the uncontracted large component basis to construct the X
matrix. The basis for X matrix can have a big impact to the total energy.
X2c treatment is not variational. The total energy often increases when the
quality of large compo... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
3fd5ea8193c7d437c0c1beb0fe3a0b1745922583 | 4b7f32e791739a09a201708a3350836156d59287 | /moderate/trailing-string(AC).py | 697e86dcd2d80270fb7e53b31fe98c768ba7fbaa | [] | no_license | zhuli19901106/codeeval | 6170849a4acbc442b957d80c410df2bcf1b09efb | 301dcaf0098eafb776145bfa347d9eb2ee22d4e2 | refs/heads/master | 2020-06-04T20:50:25.391877 | 2015-05-18T23:13:13 | 2015-05-18T23:13:23 | 34,080,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import re
if __name__ == '__main__':
while True:
try:
s = raw_input()
except EOFError:
break
a, b = re.split(',', s)
if len(b) > len(a):
print(0)
continue
if a[len(a) - len(b): len(a)] == b:
print(1)
else:
print(0)
| [
"zhuli19901106@gmail.com"
] | zhuli19901106@gmail.com |
bf6ba6b1402f5be62ec4a9f13ac0645075bdfe65 | 4568ff25aaafc821d18e331b0253a1246cd03c8f | /benchmark/experiments/basic_moo.py | ee9e35ecb246b008940c41dbe3f014755bedf038 | [
"Apache-2.0"
] | permissive | anyoptimization/pymoo-benchmark | 42a7804967d03b70620d42fba5f756d288b1f6f4 | 37460f3bf0159c1113cd48d5698af6493f26ed62 | refs/heads/main | 2023-07-31T17:20:17.294345 | 2021-09-23T20:31:39 | 2021-09-23T20:31:39 | 387,559,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | import numpy as np
import scipy.stats
from prettytable import PrettyTable
from benchmark.benchmarks import get_benchmark
if __name__ == "__main__":
benchmark = get_benchmark("ucmo")
results = benchmark.run(writer=WRITER,
loader=LOADER,
run_if_loading_f... | [
"jules89@arcor.de"
] | jules89@arcor.de |
68b2d9074b11197d63b539d98ae83fa80cfe4639 | 27ece9ab880a0bdba4b2c053eccda94602c716d5 | /.history/tf_regression_logistic_20181129223556.py | 0f19edb1cef55ba195e28ea07b0aef3180fcad9a | [] | no_license | Symfomany/keras | 85e3ad0530837c00f63e14cee044b6a7d85c37b2 | 6cdb6e93dee86014346515a2017652c615bf9804 | refs/heads/master | 2020-04-08T20:21:35.991753 | 2018-11-30T08:23:36 | 2018-11-30T08:23:36 | 159,695,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,338 | py | import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
import os, argparse
"""
Any interaction with your filesystem to save persistent data in TF needs a Saver object and a Session object.
The Saver constructor allows you to control many things among which 1 is important:
The var_list: Default to... | [
"julien@meetserious.com"
] | julien@meetserious.com |
4fc460384c0da2849c8cd81e53c14410411469db | 1bf1a8d115d9720dacb84b5c8fefb49af015c295 | /backend/soft_sound_26327/wsgi.py | d82dfa567ac94e3653dfc6d99f1fb57752c26fe4 | [] | no_license | crowdbotics-apps/soft-sound-26327 | dba9358659d899d485a0b10cd63e41c68e865e22 | 5d35e9d5bd2cdad5ab5e5f2a95d8190ce367ff43 | refs/heads/master | 2023-04-11T15:35:04.366308 | 2021-05-07T12:50:17 | 2021-05-07T12:50:17 | 365,231,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for soft_sound_26327 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9379f75d7a6e72f76b8b8000d917229c05095694 | ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f | /gen_basis_helpers/lammps_interface/unit_tests/utests_calc_objs.py | e7ea97f5225ee65c88ea89d7726bdc7ec75871d3 | [] | no_license | RFogarty1/plato_gen_basis_helpers | 9df975d4198bff7bef80316527a8086b6819d8ab | 8469a51c1580b923ca35a56811e92c065b424d68 | refs/heads/master | 2022-06-02T11:01:37.759276 | 2022-05-11T12:57:40 | 2022-05-11T12:57:40 | 192,934,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py |
import copy
import collections
import os
import unittest
import unittest.mock as mock
import gen_basis_helpers.lammps_interface.lammps_calc_objs as tCode
class TestCalcObjStandard(unittest.TestCase):
def setUp(self):
self.baseFolder = "fake_path"
self.baseFileName = "test_file"
self.dataFileOrderedDict = co... | [
"richard.m.fogarty@gmail.com"
] | richard.m.fogarty@gmail.com |
b79d0c78af023ef7ed30861159fed93a15561056 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/networkx/utils/random_sequence.py | 8b85ab0377cfc422b3d928447eefc64534d09e7d | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c5e599427c932f0d245045fe663be170579a4a231663b09977410234d4901ef6
size 4085
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
820179af2252cd5b64438e6edfc4fb743ccbba98 | 9c5cbe763edf9b2857fc4d3a01b0ffd84f84732c | /courses/urls.py | 736f7edd62c9a9ee82e1c68ae04a7a86a4289af0 | [] | no_license | miclemabasie/Django-Elearn | 943dda71f19cebe73afc8b22858b016065848987 | b69ccd40719bef63ce4ff8d16262552db78dfdce | refs/heads/main | 2023-07-30T04:50:40.484172 | 2021-09-22T17:56:08 | 2021-09-22T17:56:08 | 408,752,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from django.urls import path
from . import views
urlpatterns = [
path('mine/',
views.ManageCourseListView.as_view(),
name='manage_course_list'
),
path('create/',
views.CourseCreateView.as_view(),
name='course_create'
),
path('<pk>/edit/',
views.CourseUp... | [
"miclemabasie3@gmail.com"
] | miclemabasie3@gmail.com |
ee9757768aa20d43a6d7e774315d16995cd75ed6 | 2f76da1ab7d6b8ea0184c5ad2c522518ab37823f | /speech_parts.py | 8dbd9e71f75a67ca948bd7b45c8c6483afb8d9a2 | [] | no_license | abezgauzdina/knesset-data-committees | 4ebdddd0d5ec868b1f2037c66be2dd752431ca10 | d80346aae116365d9959fb48ad1f58666d04f020 | refs/heads/master | 2021-09-15T07:39:53.205577 | 2017-11-29T09:54:03 | 2017-11-29T09:54:03 | 115,918,597 | 0 | 0 | null | 2018-04-23T19:45:32 | 2018-01-01T12:43:43 | CSS | UTF-8 | Python | false | false | 1,906 | py | from tabulator import Stream
import os, requests, logging, re, json
def get_speech_part_body(speech_part):
return speech_part["body"].replace("\n", "<br/>")
def get_speech_parts_stream(**kwargs):
stream = Stream(**kwargs)
stream.open()
if stream.headers == ['header', 'body']:
return stream
... | [
"ori@uumpa.com"
] | ori@uumpa.com |
0f2b5f1b67de643723f3d4cb34ec4d21663d34ba | 3775102a3f59bc8aac9b8121ba2aef87409724ee | /Easy/slang_flavor.py | 33034c354656685515600b8a5be64b39de275dec | [] | no_license | csikosdiana/CodeEval | a446ec6673e9f97439662bfccbd7454e5740d509 | 15cdd9ca454939e93c77d5ed5076595ecc7e4301 | refs/heads/master | 2016-08-11T14:49:27.565799 | 2016-03-22T17:48:20 | 2016-03-22T17:48:20 | 46,176,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | data = ["Lorem ipsum dolor sit amet. Mea et habeo doming praesent. Te inani utroque recteque has, sea ne fugit verterem!",
"Usu ei scripta phaedrum, an sed salutatus definiebas? Qui ut recteque gloriatur reformidans. Qui solum aeque sapientem cu.",
"Eu nam nusquam quaestio principes."]
slang = [", yeah!", ", this ... | [
"csikosdiana@gmail.com"
] | csikosdiana@gmail.com |
7f6bcb9e8da7fe2b36ab5738310c1dc96aa599b5 | 5774101105b47d78adb7a57eefdfa21502bbd70c | /python框架/flask/Flask-RESTful/s3_error404定制.py | 73259f73985c047a86f46f7e8b642e2a561425ae | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 1,234 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
#refer:https://blog.csdn.net/dream_flying_bj/article/details/61198475
#安装pip3 install flask-restful
##使用参考: pip3 install flask-restful
from flask import Flask, jsonify
from flask import abort
from flask import make_response
app = Flask(__name__)
tasks = [
... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
34ae6b4403ac4a915276300f832032a92bc1afc5 | 39978dba83181975b29b884d1e9cc22ed32bb097 | /prepare_data.py | f7b2f6f0058a5a59c0c89ca56f3718faa720435d | [
"MIT"
] | permissive | Blarc/lol-dodge-predictor | c3e5050c577eb003d960941f8f601545de8a6abd | 01ac9ce1f117dba7f2375958f96fd1336cc0049d | refs/heads/main | 2023-02-08T11:01:01.435267 | 2021-01-04T14:21:38 | 2021-01-04T14:21:38 | 311,631,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | import copy
import json
import cassiopeia as cass
import pandas as pd
from IPython.display import clear_output
from roleidentification import get_roles, pull_data
NUMBER_OF_LINES = 108941
champion_roles = pull_data()
champions_mapper = {champion.id: champion.name for champion in cass.get_champions("EUW")}
summoners ... | [
"jakob.malezic@gmail.com"
] | jakob.malezic@gmail.com |
5eaa86000cf6a4bf50b9794b70c14cebc088bf10 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/daapi/view/meta/channelwindowmeta.py | e1885ab5d56862c3eeb542f57abc2cdbefe16faf | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 531 | py | # 2016.02.14 12:40:13 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ChannelWindowMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class ChannelWindowMeta(AbstractWindowView):
pass
# okay decompyling c:\Users\PC\wotso... | [
"info@webium.sk"
] | info@webium.sk |
e43c2f5632fe67304382d4e6a716df7a051baa2b | 8fd2e5d53d7a91d35288ccefdb0c7ef00d927a0a | /book_06_Python黑帽子/Chapter10/my_file_monitor.py | 82f21f92c9aff7909f4483eadae1363b1c57daa3 | [] | no_license | atlasmao/Python-book-code | 03501f9ca2e81bc1f47464b3227c7f9cda0d387c | 03b6848a15a7e4c2ffebdc3528c24a8b101d9f41 | refs/heads/master | 2022-01-06T23:45:21.951307 | 2019-07-11T10:32:22 | 2019-07-11T10:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 监控临时文件的创建, 读写, 删除
import tempfile
import threading
import win32file
import win32con
import os
# 这些是典型的临时文件所在的路径
dirs_to_monitor = ["C:\\WINDOWS\\Temp", tempfile.gettempdir()]
# 文件修改行文对应的常量
FILE_CREATED = 1
FILE_DELETED = 2
FILE_MODIFIED = 3
FILE_RENAMED_FROM = 4
FILE_R... | [
"justsweetpotato@gmail.com"
] | justsweetpotato@gmail.com |
9507e5df03c571625db06330a495aa6e7a1e0ef0 | 0062ceae0071aaa3e4e8ecd9025e8cc9443bcb3b | /solved/6763.py | fb5b2473763dfa94d66d8421c73bf7091835c434 | [] | no_license | developyoun/AlgorithmSolve | 8c7479082528f67be9de33f0a337ac6cc3bfc093 | 5926924c7c44ffab2eb8fd43290dc6aa029f818d | refs/heads/master | 2023-03-28T12:02:37.260233 | 2021-03-24T05:05:48 | 2021-03-24T05:05:48 | 323,359,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | a = int(input())
b = int(input())
c = b - a
text = 'You are speeding and your fine is $'
if c <= 0:
print('Congratulations, you are within the speed limit!')
elif 1 <= c <= 20:
print(text + '100.')
elif 21 <= c <= 30:
print(text + '270.')
else:
print(text + '500.') | [
"pyoun820@naver.com"
] | pyoun820@naver.com |
e67247615c0c14d544e7c8db298cd60b3f91b096 | 0258d1982f3551ebebcd1e657d4ab1b487f61df9 | /src/m0.py | 6928a42a0981785bf342e398d16e9ae37b1abf5a | [] | no_license | royjm21/rosebotics2 | 0f5ffe379a2122c880b1701d3a05e08a037ce8ae | 382fedc8bc2475bc928e453483e322e101399122 | refs/heads/master | 2020-04-02T14:09:12.657825 | 2018-11-17T03:27:16 | 2018-11-17T03:27:16 | 154,512,503 | 0 | 0 | null | 2018-10-24T14:10:02 | 2018-10-24T14:10:02 | null | UTF-8 | Python | false | false | 3,132 | py | """
Capstone Project. Code for testing basics.
Author: David Mutchler, based on work by Dave Fisher and others.
READ and RUN this module but ** DO NOT MODIFY IT. **
Fall term, 2018-2019.
"""
import rosebotics as rb
import time
def main():
""" Runs tests. """
run_tests()
def run_tests():
""" R... | [
"mutchler@rose-hulman.edu"
] | mutchler@rose-hulman.edu |
f8cfe37328e46d44a30edc92197b0790ae37e435 | 760e84fc1ae36ccad2bf70bfac3d2ff18291b8ac | /gimbal/test/servo/sysfs_writer_dummy.py | 6ead1a4b63e134d6e6b9c6063c322b70430f4416 | [] | no_license | dpm76/Gimbal | 43b11497221657848f41a6440945d0601b379e23 | 6803867b359db76a420b2cc46192e0c475e35e6b | refs/heads/master | 2022-09-27T23:33:58.402529 | 2022-08-27T10:06:09 | 2022-08-27T10:06:09 | 79,473,892 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | '''
Created on 19 ene. 2017
@author: david
'''
class SysfsWriterDummyFactory(object):
"""
Creates SysfsWriterDummy object
"""
def create(self):
"""
Creates writer
"""
return SysfsWriterDummy()
class SysfsWriterDummy(object):
"""
System filesystem... | [
"davidpm.itengineer@gmail.com"
] | davidpm.itengineer@gmail.com |
ca7bed30ee38167e59191c271b76792174e59050 | f780e660df46040ab05fd1bcb9657f7db7db65d4 | /conf.py | a74a25f953271940de926868f4ea07741e3417b5 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | systemonachip/systemonachip | 35ffc00f4763333848cbca7e93a9e2cc1030b6de | 6440b7ad7648a1affa1e6ddbdbf8d6fe76f57df7 | refs/heads/main | 2022-12-05T11:53:32.689536 | 2020-08-11T05:30:53 | 2020-08-11T05:30:53 | 283,394,238 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"scott@tannewt.org"
] | scott@tannewt.org |
10e9c876610b7fa2d64578976e7f2e46129f7bdb | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /job/migrations/0002_auto_20200212_1056.py | 3c1cfe311d99524c0c1a26ac9408c01c9456878e | [] | no_license | SaifulAbir/django-js-api | b6f18c319f8109884e71095ad49e08e50485bb25 | fbf174b9cde2e7d25b4898f511df9c6f96d406cf | refs/heads/master | 2023-02-12T16:09:21.508702 | 2021-01-14T09:05:15 | 2021-01-14T09:05:15 | 329,713,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # Generated by Django 3.0.3 on 2020-02-12 10:56
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('job', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='job',
name='co... | [
"rashed@ishraak.com"
] | rashed@ishraak.com |
6a67e5f262b74518db7e0ef4f6c9034700ff7848 | 238cff74530e5571648da88f127d086d2d9294b4 | /0x0F-python-object_relational_mapping/0-select_states.py | 76e5988a937a8573ef3ef92f91e4dd16f923e481 | [] | no_license | Achilik/holbertonschool-higher_level_programming-6 | b92fcbd1bc6bbedcfef4b49bb3907d97b8be41ff | d0c46cc5ed2bfd1c8d75ce4a2a7604fc4f3f1c5c | refs/heads/master | 2023-03-21T08:03:31.613145 | 2018-09-08T10:10:53 | 2018-09-08T10:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python3
"""List all states using mysqldb"""
if __name__ == "__main__":
import MySQLdb
from sys import argv
db = MySQLdb.connect(host="localhost", user=argv[1],
passwd=argv[2], db=argv[3])
cur = db.cursor()
cur.execute("SELECT id, name FROM states")
for row... | [
"sidneyriffic@gmail.com"
] | sidneyriffic@gmail.com |
0082a8cb5b9a83ed11b53f2a67daa38f739be429 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02382/s713591179.py | 09cde9d080d0b47f07d303ae5fc2bac9e18b8f66 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | n = int(input())
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
for i in range(1, 4):
D = 0
for j in range(n):
D += abs(X[j] - Y[j])**(i)
print(D**(1/i))
print(max(abs(X[i] - Y[i]) for i in range(n)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
071deea967dc8da3caebd1c55e369f2362413914 | 4c20c78cf383cd40db8e3d3eee88e5f96884a1af | /39.combination_sum/39.combination-sum.py | 6b75d489a8226c53faff5049bcc53be904b43fec | [] | no_license | HanchengZhao/Leetcode-exercise | de6c17a2c965fe0c3afc0a4c39fc0a5f8bbe8d47 | 6c780a97c956856ac94a5d0bb4c9b631e7a0677a | refs/heads/master | 2021-05-04T10:09:29.308858 | 2019-10-17T05:31:20 | 2019-10-17T05:31:20 | 50,731,817 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | #
# @lc app=leetcode id=39 lang=python3
#
# [39] Combination Sum
#
class Solution:
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
def recursion(cur, cursum, candidates, target, res, index):
if cursum > target:
return
if cursum == targ... | [
"chancidy@gmail.com"
] | chancidy@gmail.com |
0a7ba83dd16fddc2a53c7fbc33ae451f3e7d5ab5 | b627f23744e305c0d90044669a6ec68cf59bc146 | /src/ls_sms_api/ls_sms_api/wsgi.py | d309f6fbb20ae8fa35be63890cccb03c64dfd2ae | [] | no_license | wisnercelucus/ls-sms-api | 751689d0c11974547d9adcabcea91f06f404656d | 9ff8bce77561641b6f7ba9b4e99378efbb8c0ef5 | refs/heads/master | 2022-04-12T21:52:37.619685 | 2020-03-26T20:04:46 | 2020-03-26T20:04:46 | 250,121,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for ls_sms_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"wisnercelicus@gmail.com"
] | wisnercelicus@gmail.com |
4a437d4905608bd5f842a14f4a686edb4aa40ee5 | 19bc8a9343aa4120453abeff3deddda7d900f774 | /ProgrammingInterviewQuestions/43_Anagrams.py | 744e4ded887e1af67a814418dd617356895feac5 | [] | no_license | ArunkumarRamanan/CLRS-1 | 98643cde2f561d9960c26378ae29dd92b4c3fc89 | f085db885bcee8d09c1e4f036517acdbd3a0918e | refs/heads/master | 2020-06-28T08:30:44.029970 | 2016-11-19T15:27:55 | 2016-11-19T15:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 30 19:21:36 2016
@author: Rahul Patni
"""
def number_needed(a, b):
array1 = [0] * 26
array2 = [0] * 26
for i in a:
array1[ord(i) - ord('a')] += 1
for i in b:
array2[ord(i) - ord('a')] += 1
total = 0
for i in range(0, 26):
t... | [
"rahul20patni@gmail.com"
] | rahul20patni@gmail.com |
3549f6ce778e95719ac1407a7e5ac63203c9c77f | 7621cc5db1f87bc4c95ec1d0b80860c74787a0d1 | /loco/urls.py | eab5993189bc2a7a303e55e7d953a6966601dd4b | [] | no_license | ingenieroariel/loco | 0b53f3c2e871db7d04a82b898c61ee63173e0f47 | 79245b63f082e5b393bacae87d44cea6df66dcff | refs/heads/master | 2021-01-10T09:47:55.575723 | 2015-10-06T19:34:32 | 2015-10-06T19:34:32 | 43,713,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | """loco URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"ingenieroariel@gmail.com"
] | ingenieroariel@gmail.com |
f187e58d408ba609b2fb5abbcc73fb9cbd3f2144 | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/algo_cases/第4章/4_2.py | 01cd88698a2920f4ad2133718f14a27994e6cd3d | [
"CC-BY-NC-SA-4.0",
"Apache-2.0"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 1,160 | py | def threeSum(self, array):
array.sort()
length=len(array)
res=[]
for i in range(length):#三层循环
for j in range (i+1,length):
for k in range(j+1,length):
if array[i]+array[k]+array[j]==0 and not [array[i],array[j],array[k]] in res:
res.append([array[i... | [
"hudalpf@163.com"
] | hudalpf@163.com |
409252b48117af3db718766805d451249d2060cc | 0725ed7ab6be91dfc0b16fef12a8871c08917465 | /graphs/key_and_rooms.py | 715456607ef58e9519dae068c8bde6f79cd99bf7 | [] | no_license | siddhism/leetcode | 8cb194156893fd6e9681ef50c84f0355d09e9026 | 877933424e6d2c590d6ac53db18bee951a3d9de4 | refs/heads/master | 2023-03-28T08:14:12.927995 | 2021-03-24T10:46:20 | 2021-03-24T10:46:20 | 212,151,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from collections import defaultdict
class Graph:
def __init__(self, V):
self.graph = defaultdict(list)
self.V = V
self.visited = [False for _ in range(self.V + 1)]
def add_edge(self, u, v):
self.graph[u].append(v)
def DFSUtil(self, u):
self.visited[u] = True
... | [
"siddhesh@hackerearth.com"
] | siddhesh@hackerearth.com |
2345216ef12a7ccfdb9d835b9d96af3569cd556a | c5d131cf7a5e5667b5f6983512d132f9817c7310 | /geosite/views.py | d7bdc0815adbffb6a4a95113c6636eef66b60b3b | [] | no_license | wfp-ose/geosite-framework-django | 0e6596d241498cfe3b5bb696abee27da511a8b1d | ffb3f805cca708e7b95abe59a1b1b8e3916783a3 | refs/heads/master | 2021-01-21T04:55:47.253100 | 2016-06-03T15:37:21 | 2016-06-03T15:37:21 | 51,529,078 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | import errno
from socket import error as socket_error
from django.conf import settings
from django.views.generic import View
from django.shortcuts import HttpResponse, render_to_response
try:
import simplejson as json
except ImportError:
import json
from geosite.cache import provision_memcached_client
clas... | [
"pjdufour.dev@gmail.com"
] | pjdufour.dev@gmail.com |
b4ecd05bf9fcf51d6c49b525e8a5af982ae4959d | c1a04c3dd2956ffd055020d5a73ceeb18b0367fe | /tests/builtins/test_bool.py | 8a7cb0994edcab1e7d566c000ded0430d8afbc03 | [
"BSD-3-Clause",
"MIT"
] | permissive | matthewphillips/batavia | 1f145d0ac2182875c6d1734fbc8510a654ee932e | b69c1f419674ecf214c474c754912f2e0cf5c65d | refs/heads/master | 2021-01-21T06:33:04.213885 | 2017-02-26T22:10:50 | 2017-02-26T22:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
import unittest
class BoolTests(TranspileTestCase):
def test_bool_omitted(self):
self.assertCodeExecution("""
print(bool())
""")
def test_bool_like(self):
self.assertCodeExecution("""
class Bo... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
d5997425aae6fc467a61b580ad532ab834fe952f | f40cc44ebfc337326577c91cd88d0c1dd845b098 | /LuminarPythonPrograms/Collection/ListDemo/Listprogram3.py | 1150ec798fe3462679fb73faf13793e2b97562f8 | [] | no_license | Aswin2289/LuminarPython | 6e07d6f9bf6c8727b59f38f97f5779a33b2fab0d | ba633a276dd79bbf214cfceac2413c894eaa1875 | refs/heads/master | 2023-01-01T07:52:41.598110 | 2020-10-13T04:34:49 | 2020-10-13T04:34:49 | 290,109,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #print power
lst=[2,4,6]
# le=len(lst)
# res=0
# for i in range(0,le):
# res=lst[i]**i
# print(res)
cnt=1
for i in lst:
print(i**cnt)
cnt+=1 | [
"aswinabraham4@gmail.com"
] | aswinabraham4@gmail.com |
916b8f251e993a18dbf69cffb2c0341c30bcdbc2 | 3e600966adc8f0fe7114d5d988b32ead395edff2 | /src/pybel_tools/definition_utils/summary_dependent.py | 58d64d00c93a2c7a81b2bf6591dcd2dc565b6dae | [
"Apache-2.0"
] | permissive | johnbachman/pybel-tools | cadf407609462b9c2faaa62e5d35464fa27c1b7f | c691d7b33d449501142eb011bc2b8f63830645cf | refs/heads/develop | 2021-09-14T20:30:07.873760 | 2018-05-10T14:07:08 | 2018-05-10T14:07:08 | 105,606,597 | 0 | 0 | null | 2017-10-03T02:23:24 | 2017-10-03T02:23:23 | null | UTF-8 | Python | false | false | 3,443 | py | # -*- coding: utf-8 -*-
import logging
import os
from pybel.constants import *
from pybel.resources.definitions import write_namespace
from pybel.struct.summary.node_summary import get_names_by_namespace
from ..summary.error_summary import get_incorrect_names_by_namespace, get_undefined_namespace_names
log = logging... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
5f537997bcb48f2972f8668304590a3e7b11e283 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_034/ch129_2020_04_01_17_00_30_862850.py | b356e9c2aff07bffe76f355aa509f1e0320549e5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | def verifica_quadrado_perfeito(n):
impar = 1
while n != 0:
n = n - impar
impar += 2
if n == 0:
return True
else
return False | [
"you@example.com"
] | you@example.com |
d43ed31749be13b25dc97002e6e7499aad5038d9 | 8ea2d923fcb193846ff925abcbef8f97c394936e | /climate_app/views.py | 2fc27ba7af83708082858e0ac79e0b6629ad1e72 | [] | no_license | amrit-kumar/climate_data_and_graph | 6a32b969e3d13953f1e74baed720e824d7dd61b0 | c793bd38474ba11ef50b76739d979f3f8c910dbf | refs/heads/master | 2021-01-16T18:55:32.359620 | 2017-08-12T18:28:52 | 2017-08-12T18:28:52 | 100,129,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,211 | py | import requests
from django.http.response import HttpResponse
from .models import ClimateData,ClimateStatistics
from urllib.request import Request,urlopen
from django.core.files import File
from django.core.files.temp import NamedTemporaryFile
import re
from django.shortcuts import render
from django.core.files.storage... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
640c741dd9bb3b08088c64b6c6b4ed938a5eee3d | 0a42fed6746cd9093fc3c3d4fbd7ac5d2cff310f | /python高级编程io/study02/code07_class_method.py | c1144121a6361a620dbc4cf0b5c7e4b4756da491 | [] | no_license | luoshanya/Vue_Study | 4767fc46f2186c75a4b2f7baeeb2fcc9044bd9a4 | d3a07364a63f0552b166a5697a7245f56e38e78d | refs/heads/master | 2020-06-19T02:15:20.253362 | 2019-07-17T08:49:48 | 2019-07-17T08:49:48 | 196,529,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | class Date:
def __init__(self, year, month, day):
self.year = year
self.month = month
self.day = day
@staticmethod
def static(str_data):
year, month, day = tuple(str_data.split('-'))
return Date(int(year), int(month), int(day))
@classmethod
def cls_method(cl... | [
"310927880@qq.com"
] | 310927880@qq.com |
d93e2c2dd0d791c1b5717f893307404535f8267a | f36cd54c6b66bcd373b8074bb9738649877f3438 | /xblock_ifmo/core/xblock_ifmo.py | 261c287cbec83f1292fdb889566877bd1b7b1643 | [] | no_license | npoed/ifmo-xblock-framework | 2f635dfb848f968927122cd36b60fcd74b44ba33 | d3eece00402eb69ffbdcb95e99c99d0b1c965106 | refs/heads/master | 2023-01-01T22:48:22.301231 | 2020-09-30T16:22:15 | 2020-09-30T16:22:15 | 299,882,622 | 0 | 0 | null | 2020-09-30T10:20:28 | 2020-09-30T10:20:27 | null | UTF-8 | Python | false | false | 7,591 | py | # -*- coding=utf-8 -*-
import logging
from courseware.models import StudentModule
from django.contrib.auth.models import User
from xblock.core import XBlock
from xmodule.util.duedate import get_extended_due_date
from webob.response import Response
from ..fragment import FragmentMakoChain
from ..utils import require,... | [
"defance@gmail.com"
] | defance@gmail.com |
ce66af89f555b5a8250af7fb0556da9101942799 | 71c49e0cf373e72c5792a7e5aa5657400f9d8cf0 | /photobooth/urls.py | c9bfe1b75b74848344e7c76f94b5728af1e1036f | [] | no_license | relekang/photobooth | 5aefaef5fff08008c0c320ee70979ff78eacc1cf | 9c82d355c6f53a6e2743aabeaf2c040300befbb5 | refs/heads/master | 2020-12-14T09:01:33.198677 | 2015-11-22T08:57:05 | 2015-11-22T08:57:41 | 46,576,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from . import views
admin.site.site_header = 'Photobooth'
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api/', include('photobooth.api.urls')),
... | [
"me@rolflekang.com"
] | me@rolflekang.com |
f2216bf62f0faca405139c23e58a303ebc325977 | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py | 6d07b965c77d63558bf25ebcab0b322d3596a6e4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 1,008 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
aafdcfbae25f4fcd453f97b9ea98141dc461a671 | ee86ad4b38f6ba13f195246f14224ba781f933cc | /알고리즘실습/AD/부분집합의합.py | 60a9d43961a2c316d1da35f2f912afff9b53d73c | [] | no_license | yejikk/Algorithm | aed7adf00c1e32d21b735b3b34dc6cb75049f164 | 531f43305b3a23c824c9e153151b7280c1dc2535 | refs/heads/master | 2020-04-17T06:17:28.961656 | 2019-11-16T08:02:49 | 2019-11-16T08:02:49 | 166,318,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | import sys
sys.stdin = open('부분집합의합.txt')
def subset(number):
# 원소의 수 -> S
# 원소의 수가 S개 일 경우 2**S는 전체 부분집합의 수를 의미(공집합 포함)
arr = [[] for _ in range(2**S)]
# 부분집합의 개수
for i in range(1<<S):
# 원소의 수만큼 비트 비교
for j in range(S):
if i & (1<<j):
arr[i].append(numb... | [
"dpwl7484@gmail.com"
] | dpwl7484@gmail.com |
46455eebd427110368c6d93e8210a4488b309052 | fb3b43ab9e7e9874f8cc53caa44f292387d57cf7 | /Mascotas/apps/mascota/forms.py | 5ae54464b79e7193d43a79751430327e7d4f962e | [] | no_license | CoriAle/zona | cdb06e4d9d1a4ed61731a285e5e71df0cdcfec31 | 8bd13ba3bc506f88ad02f26b4562b889effc3ac7 | refs/heads/master | 2021-08-06T20:21:04.050053 | 2017-11-07T02:07:47 | 2017-11-07T02:07:47 | 106,186,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | from django import forms
from apps.mascota.models import Mascota, Vacuna
class MascotaForm(forms.ModelForm):
class Meta:
model = Mascota
fields = [
'nombre',
'edad',
'fecha_rescate',
'genero',
'persona',
'vacuna',
... | [
"1995coral@hotmail.es"
] | 1995coral@hotmail.es |
6137fb40a4e270db6cd3566678423d2092bad69c | 1d9059e03874838318885990931e4f3dd741bb7e | /users/admin.py | 91278752e36593cd98f7e5f9fc69427026d707bc | [] | no_license | Chirag-Django/temp_nonstop | fc5efc42d9c484ad3431454f67a428fe5ce94000 | 2c5904d4e12e487447eda9a1d8e4a4b3c17307b9 | refs/heads/master | 2023-03-09T12:55:49.953273 | 2021-02-19T01:35:44 | 2021-02-19T01:35:44 | 340,226,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.contrib import admin
from .models import Profile
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
list_display = ['user','address','age']
admin.site.register(Profile,ProfileAdmin) | [
"chirag.django@gmail.com"
] | chirag.django@gmail.com |
90c27e41c4db505141eefc01d03a5c22cf0cab02 | 35271f6bd874799df9a93dbe5bcc50272b619dc1 | /ML/Pytorch/image_segmentation/semantic_segmentation_unet/dataset.py | 0c0f098d474994373657cf0a025b40cc55516856 | [
"MIT"
] | permissive | aladdinpersson/Machine-Learning-Collection | c724186b64ae52efa6f9d4e97f37477900901d35 | 558557c7989f0b10fee6e8d8f953d7269ae43d4f | refs/heads/master | 2023-08-31T20:52:06.493437 | 2023-03-21T11:44:08 | 2023-03-21T11:44:08 | 250,184,708 | 5,653 | 2,543 | MIT | 2023-09-02T03:51:36 | 2020-03-26T07:02:40 | Python | UTF-8 | Python | false | false | 978 | py | import os
from PIL import Image
from torch.utils.data import Dataset
import numpy as np
class CarvanaDataset(Dataset):
def __init__(self, image_dir, mask_dir, transform=None):
self.image_dir = image_dir
self.mask_dir = mask_dir
self.transform = transform
self.images = os.listdir(ima... | [
"aladdin.persson@hotmail.com"
] | aladdin.persson@hotmail.com |
c80d9a2343aca0918bbb101a3c88bd909e4f5918 | 7d2a4c5ca215a362ad6fbb70ef5b5f8c35d41dde | /Blogs/migrations/0002_alter_blog_image.py | 0f7415c8765b564f966cfe2b42c4fbfbbaa858a1 | [] | no_license | samarthdubey46/e-waste-management-api | 77dcc92fa31b01830196e5092cb8a9e181963d01 | db1e8644c907f926f81405de82befe24802ca0f1 | refs/heads/master | 2023-07-15T14:15:10.199441 | 2021-08-31T08:02:53 | 2021-08-31T08:02:53 | 400,775,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.2.6 on 2021-08-28 08:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Blogs', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='blog',
name='image',
field=... | [
"samarthdubey46@gmail.com"
] | samarthdubey46@gmail.com |
53a0ba2cffce925eb433917b92108940b30cdadd | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/splom/marker/colorbar/_yanchor.py | 7bdec6fa6e20bdf476093c16d4c3744796a72d42 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 502 | py | import _plotly_utils.basevalidators
class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self,
plotly_name='yanchor',
parent_name='splom.marker.colorbar',
**kwargs
):
super(YanchorValidator, self).__init__(
plotly_name=plo... | [
"jon.mease@gmail.com"
] | jon.mease@gmail.com |
e6970cb8d04c3a1b3b3da121bdf7651f040de209 | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /lseval+lexmturk/scripts/sr_rankers/Run_All_Horn.py | eb5c4ae4dfce46d0995eda12dedd951c2de65797 | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import os
#Parameters:
Cs = ['1', '0.1']
epsilons = ['0.0001', '0.001']
kernels = ['0', '1', '2', '3', '4']
trainset = '../../corpora/ls_dataset_benchmarking_train.txt'
testset = '../../corpora/ls_dataset_benchmarking_test.txt'
os.system('mkdir ../../sr_rankings/horn')
counter = -1
for C in Cs:
for e in epsilons:
... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
73230a94456e0062d709d371ebeac405c5879b53 | ee76919635ce69e14ddf64ee9483dca073625aaf | /pythonAlgorithm/Practice/15三数之和.py | f18feaa502c50835d85034cfb9039363f056ee87 | [] | no_license | bossjoker1/algorithm | 574e13f0dd8fe6b3e810efc03649493e90504288 | c745168a01380edb52155ca3918787d2dd356e5b | refs/heads/master | 2022-07-13T16:26:10.324544 | 2022-07-10T03:28:15 | 2022-07-10T03:28:15 | 407,361,838 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | class Solution:
def threeSum(self, nums: List[int]) -> List[List[int]]:
n=len(nums)
res=[]
# 特判
if(not nums or n<3):
return []
nums.sort()
res=[]
for i in range(n):
# 全为正整数的情况
if(nums[i]>0):
return r... | [
"1397157763@qq.com"
] | 1397157763@qq.com |
0063eea34d1491e9546c8c5e3ed0b43f7fb66034 | d57f981dc8a2cc80a273e49443c8f99aa38b5ad1 | /posts/admin.py | 3fbfa6f6c7502a23d5f1054b7a5bb564927db8be | [] | no_license | zmm064/TryDjango19 | cfa048f84e5998c9329ed167b79b6d155d8a7ae0 | da2191ecc08ec17fb94c2c7510eee6e09d6db71d | refs/heads/master | 2021-04-27T00:20:38.741458 | 2018-03-09T11:15:28 | 2018-03-09T11:15:28 | 123,797,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from django.contrib import admin
# Register your models here.
from .models import Post
class PostAdmin(admin.ModelAdmin):
list_display = ["title", "updated", "timestamp"]
list_display_links = ["updated"]
list_filter = ["updated", "timestamp"]
list_editable = ["title"]
search_fields = ["title", "co... | [
"zmm064@foxmail.com"
] | zmm064@foxmail.com |
d530d04821718e82725fa9b779b7c11b08bd24ce | 50e3ae7c6a057fb20af1a14641b3b03ce8b7516d | /Python-曾學文/final/subtitleCrawler/subtitleCrawler/subtitleCrawler/spiders/zmtiantang.py | f76bc8a05b2e2de0a69c7387e065f8f9cff54730 | [] | no_license | david30907d/HomeWork | a8787093baa95f4a39a0ad255d8a3304f156b6e6 | 6908d4bac7269a65b1e7bc6bca8096c304eeae3f | refs/heads/master | 2020-12-29T02:32:37.124986 | 2018-06-26T14:06:35 | 2018-06-26T14:06:35 | 55,396,758 | 1 | 1 | null | 2019-11-04T03:25:21 | 2016-04-04T08:45:20 | JavaScript | UTF-8 | Python | false | false | 1,045 | py | # -*- coding: utf-8 -*-
import scrapy
from bs4 import BeautifulSoup
import requests
import shutil
class ZmtiantangSpider(scrapy.Spider):
name = "zmtiantang"
allowed_domains = ["www.zmtiantang.com"]
start_urls = list(map(lambda x:'http://www.zmtiantang.com/e/action/ListInfo/?classid=1&page=' + str(x), range... | [
"davidtnfsh@gmail.com"
] | davidtnfsh@gmail.com |
e06c17fe9746be2b35d591a6f3d3b6a268adc273 | 4947b045d4a221d4e92ac363b22c1213e1c11c0b | /eelbrain/plot/_line.py | 2bfef0d4c951afafc731be98e67076905f3f535f | [
"BSD-3-Clause"
] | permissive | weilongzheng/Eelbrain | 51db9396ba5184493ff59e0d481aac3aae64442c | feb9bdec2a99aca3077e44f318aef1c85a2e4730 | refs/heads/master | 2020-03-28T18:31:24.633084 | 2018-09-12T02:38:57 | 2018-09-13T20:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,895 | py | # -*- coding: utf-8 -*-
# Author: Christian Brodbeck <christianbrodbeck@nyu.edu>
"Line plots"
from itertools import cycle, repeat
import numpy as np
from .._data_obj import ascategorial, asndvar, assub
from ._base import (
EelFigure, Layout, LegendMixin, XAxisMixin, find_axis_params_data,
frame_title)
from fu... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
42a601ec67877ad564b2a27019c601b1b6d54007 | ce6cb09c21470d1981f1b459293d353407c8392e | /lib/jnpr/healthbot/swagger/models/devicegroup_schema_logging_syslog.py | 39bcac4a8b3a6a430adb23b8b3c466be84056209 | [
"Apache-2.0"
] | permissive | minefuto/healthbot-py-client | c4be4c9c3153ef64b37e5344bf84154e93e7b521 | bb81452c974456af44299aebf32a73abeda8a943 | refs/heads/master | 2022-12-04T07:47:04.722993 | 2020-05-13T14:04:07 | 2020-05-13T14:04:07 | 290,145,286 | 0 | 0 | Apache-2.0 | 2020-08-25T07:27:54 | 2020-08-25T07:27:53 | null | UTF-8 | Python | false | false | 4,871 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DevicegroupS... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
357714394ac3d126251c1f1d6028f9c3b887f31f | 92b3ade5b69889b806f37c440ff7bbe9ad1e9ca9 | /mysite/project/apps/myauth/views.py | 1dba2ec8e0f00a539fef9d249c3270ae41be4ca3 | [] | no_license | BorisovDima/WebProject | 4b468ed07555140890165954710185612d629ec9 | e84e5e5d83028412bdfb8cb93c8ec0fde5c54980 | refs/heads/master | 2022-12-10T17:17:56.159721 | 2019-02-22T02:42:53 | 2019-02-22T02:42:53 | 160,443,451 | 0 | 0 | null | 2022-11-22T03:08:53 | 2018-12-05T01:43:46 | Python | UTF-8 | Python | false | false | 3,505 | py | from django.urls import reverse
from django.template.loader import render_to_string
from django.views.generic import CreateView, RedirectView
from django.contrib.auth import get_user_model
from django.contrib.auth.views import LogoutView, LoginView
from django.conf import settings
from django.contrib.auth.views import ... | [
"you@example.com"
] | you@example.com |
a129616b2d8205c61a851bfcdd1eb74d7f79d46e | 7db3916d8ac8a66a954d230e43bb74b37f81357c | /04day/04-私有属性.py | 6736df4df214cab944cec7f434b9bcd4fc74452e | [] | no_license | 2001128/2_1805 | 2fc96bc6f8e2afcd9d4743891ecd87b754c28cc8 | b3d4bfab2703a7c6aa1c280669376efeab28cad1 | refs/heads/master | 2020-03-22T20:53:14.903808 | 2018-07-30T06:04:49 | 2018-07-30T06:04:49 | 140,639,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | class Father():
def __init__(self):
self.__count = 3#处过对象的个数
def getCount(self):
return self.__count
def setCount(self,count):
self.__count = count
f = Father()
#f.__count = 10
#print(f.__count)
f.setCount(20)
print(f.getCount())
| [
"335775879@qq.com"
] | 335775879@qq.com |
991d23daa0afbd61d11515d50d29b0a0a1b642f9 | bcfbb49b054380db6e7aeadc2d4e62292b5307f9 | /singh/ch6_4_lu_factorization/ex6_18_lu_factorization3.py | 692e64036d5d8462dd770ddd094eadebbe9287ac | [] | no_license | hiddenwaffle/Ax-equals-b | de82d43248962ae072fd8b8a0c9eab37b52fd472 | e5f4e4ac5b928440ee557eff9cf4d4683b8f7e56 | refs/heads/main | 2023-04-15T11:24:51.010982 | 2021-04-28T18:31:00 | 2021-04-28T18:31:00 | 322,965,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from sympy import *
A = Matrix([
[1, 4, 5, 3],
[5, 22, 27, 11],
[6, 19, 27, 31],
[5, 28, 35, -8]
])
L, U, _ = A.LUdecomposition()
pprint([L, U])
pprint(L * U)
| [
"hiddenwaffle@users.noreply.github.com"
] | hiddenwaffle@users.noreply.github.com |
0358e81903c9f25adf5e47fa32c43ed72879f3a9 | ac60e6e0bede04f3897c2a9806d4b0909abfea31 | /flaskblog/recognizer.py | 34693038bff7a781dd4286b0a168f7272b2b99e4 | [] | no_license | teja0508/Web-App-with-Face-Verification-Login-System | 35c387becbc99e37a58d8ae858b48ac31595a6d1 | 6da47d7e5a15a0f32751511d2e1c99be57d0894e | refs/heads/master | 2022-11-18T09:12:54.284572 | 2020-07-03T05:48:32 | 2020-07-03T05:48:32 | 276,817,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | import face_recognition
import numpy as np
import cv2
import os
def Recognizer():
video = cv2.VideoCapture(0)
known_face_encodings = []
known_face_names = []
base_dir = os.path.dirname(os.path.abspath(__file__))
image_dir = os.path.join(base_dir, "static")
image_dir = os.path.join(image_dir, "profile_pics")
... | [
"lchandratejareddy@gmail.com"
] | lchandratejareddy@gmail.com |
6a630ade66aaaa5fc763aabec423966dac49db2d | 9908afd9f51caa50d0204f43cd658ab558694d45 | /gits-find.py | 3c2058e0f2adebbf1e156bad76ebca4dd6c47154 | [
"MIT"
] | permissive | furas/python-git | 351289b59037ec6f6ac54d3f28e50facd350e753 | 9ce447b05a59c31459e0005526ffc21ba5fafaca | refs/heads/master | 2021-03-19T16:46:22.405785 | 2017-12-01T20:40:19 | 2017-12-01T20:40:19 | 101,456,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import os
#path = os.path.expanduser('~')
path = os.path.expandvars('$HOME')
for root, folders, files in os.walk(path):
if '.git' in folders:
print(root)
| [
"furas@tlen.pl"
] | furas@tlen.pl |
fa38461ea17f79f0bbde5f9888ee3584bc8e2702 | dec691f24a5a8c204c9394778d237ee83c48ac94 | /indicoExport/caleventexport.py | 59d30b50a8ac2defb9d87d549b165a7f64fd505e | [] | no_license | sgnoohc/login | c94eafd6bfb81224f6943cd807a455f5a48085ae | cdf3e08b721e6659e8122df46b2c08638bfde3c2 | refs/heads/master | 2021-01-19T23:01:12.526630 | 2017-09-22T16:57:45 | 2017-09-22T16:57:45 | 88,910,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | #!/bin/env python
# script to download from indico the ics files you want
# ==================================================
# code starts here
# ==================================================
import hashlib
import hmac
import urllib
import time
import os
import sys
def build_indico_request(path, params, api... | [
"sgnoohc@gmail.com"
] | sgnoohc@gmail.com |
81aa2ee36e3ae549fea5d72bdca67d1626f824c9 | fbf254edbd7af1f83e074ac6b574442d32b57b9d | /leetcodeProblems/gas_station.py | 3fc728f7e31a4829b05c81044f5652344d6da79c | [] | no_license | Madhivarman/DataStructures | cc55456d2dc7d276d364c67f3c0b74f6e0ac3a6e | f42d71c7c404c72a31b69d37e459f7d7ae9bfe25 | refs/heads/master | 2022-05-08T18:18:29.910621 | 2022-03-28T07:24:55 | 2022-03-28T07:24:55 | 133,028,620 | 4 | 0 | null | 2019-11-23T14:58:16 | 2018-05-11T10:57:04 | Python | UTF-8 | Python | false | false | 1,063 | py | """
Problem Statement:
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You
begin the journey with an empty tank at one of the gas sta... | [
"noreply@github.com"
] | Madhivarman.noreply@github.com |
8a0d2a0618ff00ce1f4cd0197b13da15959da76a | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /1368_Minimum_Cost_to_Make_at_Least_One_Valid_Path_in_a_Grid/try_2.py | dd920daca99b0c539180370abf6f9d628c951810 | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 1,748 | py | class Solution:
def minCost(self, grid: List[List[int]]) -> int:
'''
每一次挑cost最小 & (目前離終點的直線距離最小 => 自己實踐heap去比較)
=> 每個點都可以,要換or不換
但可能會走到重複的點 => 用dict存起來,若cost比較小,才能放進去heap (每次取出來之前也去比較一次)
'''
def getPos(x, y, move):
if move == 1:
... | [
"f14051172@gs.ncku.edu.tw"
] | f14051172@gs.ncku.edu.tw |
282061daa67fa2c6724f19e0f19560f2cfe09b3a | 24eff244d3a5327d79ae6244f748b7689c43ad5e | /tfmodules/model/model_builder.py | 29daaddfe4778d8ba8b1a4edacea3ff7ba83bf60 | [
"Apache-2.0"
] | permissive | motlabs/dont-be-turtle | e41a3d532169abdf2cf89dca9067c50da7ba08e8 | bd754736ea6caa3ccd58866657d97112f4bcf1cf | refs/heads/develop | 2022-12-12T12:22:20.770696 | 2018-12-02T15:16:40 | 2018-12-02T15:16:40 | 129,588,368 | 33 | 5 | Apache-2.0 | 2022-11-22T02:48:39 | 2018-04-15T07:47:18 | Python | UTF-8 | Python | false | false | 6,184 | py | # Copyright 2018 Jaewook Kang (jwkang10@gmail.com)
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"jwkang10@gmail.com"
] | jwkang10@gmail.com |
53287ca13c22599139bdaa837069e8b398154f5d | 8f3ceff01367c4550b2dd71f65af70c28bf8eed1 | /GenericViewCRUD/products/forms.py | 4efdd9fa21f8e4f628acf149cff5aff3da40856b | [] | no_license | anupjungkarki/ClassBasedVIEW-and-GenericVIEW-CRUD | 53110379420fca90cceec58c221e51f6523392a0 | ed99e50fab8b531d9a2167b11eb4eee8cc439351 | refs/heads/master | 2023-02-13T16:32:33.930218 | 2021-01-07T09:22:44 | 2021-01-07T09:22:44 | 327,561,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django import forms
from .models import Product
class ProductForm(forms.ModelForm):
class Meta:
model = Product
fields = ['name', 'slug', 'description', 'image', 'price']
| [
"anupkarki2012@gmail.com"
] | anupkarki2012@gmail.com |
9785f44eadbf85ca4d7a7c30a7ebc249dffeaa30 | f7aa321f384c6a052e0a88e2adaea9bea2c5f7a6 | /geophys_utils/dataset_metadata_cache/_dataset_metadata_cache.py | ba9a6bd7f3010369dfd6fff1306bd62c7d158947 | [
"Apache-2.0"
] | permissive | alex-ip/geophys_utils | 4af3637b6d47b818106ddfb0a11b3230992dcf71 | bcbf4205b7b06d88a26adfe0c4da036d54425751 | refs/heads/master | 2023-07-05T20:22:31.889192 | 2023-05-09T07:03:22 | 2023-05-09T07:03:22 | 226,753,773 | 2 | 0 | Apache-2.0 | 2019-12-09T00:37:35 | 2019-12-09T00:37:35 | null | UTF-8 | Python | false | false | 5,203 | py | '''
Created on 19 Jul. 2018
@author: Alex Ip
'''
import abc
import logging
import os
import yaml
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO) # Initial logging level for this module
settings = yaml.safe_load(open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'dataset_metadata_cache... | [
"alex@trentham.net.au"
] | alex@trentham.net.au |
7b2a4ddc6b7320391e621149122948f371ce83e6 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/preprocess_20210419145511.py | 677f86d7c80961ac295d19e0eb7be0aa3ad43e69 | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,674 | py |
import os
import random
import numpy as np
from PIL import Image
import tensorflow as tf
import hyperparameters as hp
class Datasets():
""" Class for containing the training and test sets as well as
other useful data-related information. Contains the functions
for preprocessing.
"""
def __init__... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
2701c269f7ccc8bd889ed6aafc49b1be6127a794 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class305.py | 5f8ebb32204cb0db962ae68cdf9fa47b28ced1cb | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | # qubit number=3
# total number=57
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.