blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23636bc45d2c0e4e109f69232e7135e85b900d62 | 9c6a973071ca78369d4b33cc67dfb767cce7677e | /url_lib_demo.py | 41d5f767ca50497ce7354861fb09cadfacca5aee | [] | no_license | wittybones/learn-python | 141f7ad9b01f7d55b1fc65004f621e5a9ea1aa0a | 95de8b213213ec291a2c68b9d2153b55bc794773 | refs/heads/master | 2022-07-17T06:31:16.489713 | 2020-02-26T12:00:46 | 2020-02-26T12:00:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | import urllib.request
try:
url = urllib.request.urlopen("https://www.python.org/")
content = url.read()
url.close()
except urllib.error.HTTPError:
print('url not found')
exit()
file = open('./python.html','wb')
file.write(content)
file.close()
| [
"in-maheshsn@maheshsovani-2.local"
] | in-maheshsn@maheshsovani-2.local |
701bfdc61f48a8890901fe3dbd55039c1658b9b4 | a9641bc1ea35edec8c6b3f9376121ad3d12bb40d | /python/imageconverter.py | 3f70850efe490d4d1f91bdd9db9e3f048ad90426 | [] | no_license | ihyunmin/workout_analysis | 24d3fdbd67ab24c774ee5822cad130140c4fe66f | 8003aa5d4dfcb45c7129f4fc93b77a106b9c9ae7 | refs/heads/main | 2023-08-27T18:48:54.830051 | 2021-10-19T00:10:54 | 2021-10-19T00:10:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | import cv2
import math
import mediapipe as mp
mp_drawing = mp.solutions.drawing_utils
mp_drawing_styles = mp.solutions.drawing_styles
mp_pose = mp.solutions.pose
mp_holistic = mp.solutions.holistic
DESIRED_HEIGHT = 2944
DESIRED_WIDTH = 1324
def resize_and_show(image):
h, w = image.shape[:2]
if h < w:
img = cv... | [
"gusals005@gmail.com"
] | gusals005@gmail.com |
4b36c4de3fa5f494a566c36b798d6cdeb615a695 | 8111a9c84545f39d937da6a186c024d1a339d936 | /custom_entities/article.py | e4b9e08dce56399c62f3c1e1effe1297e24a12ed | [] | no_license | paulohecosta/papers_abstract_analysis | 8c7039e724bd57d7d3356f18beb2cf0c342fe76f | 90ee56cd67023f4e3a6eb8a098eea8bfd72892eb | refs/heads/master | 2021-01-24T02:58:36.865617 | 2018-03-29T01:23:50 | 2018-03-29T01:23:50 | 122,869,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | from custom_entities.author import AuthorData
from custom_entities.journal import JournalData
from custom_helpers.nltk_helper import get_important_words
class ArticleData(object):
def __init__(self, root):
self.article_title = root.find(".//ArticleTitle").text
self.pub_date = root.find(".//PubDate... | [
"paulohecosta@hotmail.com"
] | paulohecosta@hotmail.com |
511019fa80316e4af585205c61008e1151ab602f | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/1317.py | dad7229f37b93dd49443920694f7bf8a41155432 | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 203 | py | class Solution:
def getNoZeroIntegers(self, n: int) -> List[int]:
for A in range(n):
B = n - A
if '0' not in str(A) and '0' not in str(B):
return A, B
| [
"walkccray@gmail.com"
] | walkccray@gmail.com |
cf5fdae9151676f3423f1860f38fd0b0cfb4b23c | 42ad749273ded88ac99314f8340296dd7e523229 | /Tens digit.py | 1ead12766233230063bc88efd9c8c37c445c07d1 | [] | no_license | tahmidhasantanoy/Test | b2fd7ca077822438775586ae9b096e8e34211ecd | bdfe839e95328d69c0fbf113c323f165a986a435 | refs/heads/master | 2023-02-04T15:28:09.086477 | 2020-12-25T03:36:05 | 2020-12-25T03:36:05 | 324,277,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | n = int(input("Enter a numbers: "))
p = n // 10 % 10 #First time last digit will out, % its find the second digit.
print(p) | [
"tahmid.hasan.tanoy@gmail.com"
] | tahmid.hasan.tanoy@gmail.com |
dc13ded07cef731f34988cfe60e0118e2602f1ca | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/services/keyword_plan_campaign_service/transports/grpc.py | d4ce2c28895a684aaea5fddd74a5f6ff28d9b7c4 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,739 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
a98f246ce117a1a0fcc3691b88d33c14687f75da | cd3b427d64740091fbf04f3c01fde65854f1f477 | /dungeon/hack-and-dash.py | 46fe2144ca8cc14bef703a1e5385bfba60e9c627 | [] | no_license | qboy1214/CodeCombat | e4f9a2c6f1e713eea76bb4eaa7977284b4e120cf | 1c55071e645025c2623a0ce7dde5ad56cb3d85ca | refs/heads/master | 2021-01-10T04:44:18.657934 | 2015-12-21T12:13:21 | 2015-12-21T12:13:21 | 48,008,205 | 2 | 1 | null | null | null | null | GB18030 | Python | false | false | 228 | py | # 你可以在循环前写代码
# 使用循环逃离迷宫
self.moveRight()
self.moveUp()
self.attack("Chest")
self.attack("Chest")
self.moveDown()
loop:
# 移动3次
self.moveRight(3)
self.moveDown(3) | [
"qboy1214@msn.com"
] | qboy1214@msn.com |
5b9ba271aefbb1a231d9688039fc8eb2d14ef7b8 | 7f8b68609f41b0d392b3f6bd6751b2ba8f6ca51f | /face_recognition.py | c9cd14fdec97fc30dec8b86aefd8224564775e8e | [] | no_license | ayajnik/Face-recognition-app | 9e29df256b913dcac10b483a2ac7e9ea95c6f979 | 79c66f2243c961785cce42d91e8cd542e91a0ac7 | refs/heads/master | 2020-12-17T21:20:52.984331 | 2020-01-21T09:04:41 | 2020-01-21T09:04:41 | 235,296,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | try:
import os
import numpy as np
import cv2
print('\n')
print('Necessary libraries imported.')
print('\n')
except:
print('Some files not installed.')
#Given an image below function returns rectangle for face detected alongwith gray scale image
def faceDetection(test_img):
g... | [
"noreply@github.com"
] | noreply@github.com |
c60866dfbc108f2d2ae42d6dbc05b03f9de98fa9 | be360ba4982a4e3bf3ca547f5f1f8b68d8479c07 | /optlis/dynamic/problem_data.py | 90693ad9669e2f1082de41335d7f9bb6dfbab8aa | [
"MIT"
] | permissive | gacheiro/optlis | dd4da0913ae0ebe0d6bca51392210b3f2e57919b | 17c467a5dd35331cc7eaaeb7829c6da8ccc08608 | refs/heads/main | 2023-09-01T08:03:54.878739 | 2023-06-27T06:18:14 | 2023-06-27T06:18:14 | 336,266,523 | 2 | 0 | MIT | 2023-06-08T12:52:53 | 2021-02-05T12:33:38 | Python | UTF-8 | Python | false | false | 9,453 | py | from typing import Any, Dict, Union, Generator, Tuple, TextIO, Optional
from pathlib import Path
from functools import cached_property
import networkx as nx
import numpy as np
import numpy.typing as npt
from optlis.shared import set_product
from optlis.static.problem_data import Instance as StaticInstance
class Ins... | [
"thiagojobson@gmail.com"
] | thiagojobson@gmail.com |
6356db0fd8ce3a87223a2fdc17cb4dadb42f2cbb | 1aff812df83de9535a6a7cb2423cf26136120fcb | /util/web.py | 1fe04a6d8a2eb1993fa5bac79c122f650daf8566 | [] | no_license | qqXiong/sprider_baidusubdomain | e0cb92ebfeca9a22b3ffb56f8e87351019b9ca6d | 5835c00f9231b4e91b56ac7642e0c9b9bc2ca8f3 | refs/heads/master | 2020-09-06T07:12:45.668210 | 2019-11-08T01:22:04 | 2019-11-08T01:22:04 | 220,360,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : Lqq
# @Software: PyCharm
from urllib.parse import urlencode
'''
设置请求头,模拟浏览器访问
'''
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
}
'''
获取路径
... | [
"1365236193@qq,com"
] | 1365236193@qq,com |
feec025c77e3c149732126d7d3e0fae6dc431d14 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/dataprotection/backup_vault.py | 1b03c83ff88293d32331e1934fc85d6333165c73 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,752 | 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
from... | [
"noreply@github.com"
] | noreply@github.com |
e610d3d2979458725172dc84670d1c616f4bb89a | 660c51f793f9e9e49ecb2e83cc0c84f962a978cb | /manage.py | 9b2af418af6a0aa4659357fdbc8ee349dba34549 | [] | no_license | JosephQuayson/fortuneteller-app | 0166b280bb3356ce7d2104ad8a74aaba35755ce7 | 589fbffd21e9cafb0572dee425130cb3e8d99299 | refs/heads/main | 2023-08-10T09:50:17.333516 | 2021-09-13T12:41:08 | 2021-09-13T12:41:08 | 405,989,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Fortuneteller.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"joseph.quayson@amalitech.org"
] | joseph.quayson@amalitech.org |
25def2f8b0326e351a884cb6ffdd0ec8b3cd9305 | 19558e2aaaf823a4bd7f1e6c979cf63315a1ca62 | /pages/pay_shipping_page.py | c65dac37ac0818c05920e236acadcaeba6bd766b | [] | no_license | KomlevVladimir/Project-palto-deti.ru-Python | d26fda2c13089b3d019ce2cfb71e08b9d4de71b8 | a34477978a4b5fa3099884ec0f5b8ae6363419e3 | refs/heads/master | 2021-05-31T07:39:19.586324 | 2016-05-17T18:18:18 | 2016-05-17T18:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
from pages.page import Page
from selenium.webdriver.common.by import By
from selenium.webdriver.support.expected_conditions import presence_of_element_located
class PayShippingPage(Page):
@property
def is_this_page(self):
self.wait.until(presence_of_element_located((By.CLASS_NA... | [
"roastr@gmail.com"
] | roastr@gmail.com |
0fc7117687a0a35d78978c2faf2425533754d995 | 402cfc7a7992ab7ddfc8cc95cda6b72e96116194 | /test/multivariate/conftest.py | 2454476a32cd5a058d29f8e861b836ad27ab27b9 | [] | no_license | SymposiumOrganization/EQLearner | fa5b9d47a5f9a432155ad750a27ff1a708a5301b | bfdd29b96040225a3bb6c88f5bdca64b03c545f7 | refs/heads/main | 2023-02-06T12:33:54.030753 | 2020-12-21T06:15:59 | 2020-12-21T06:15:59 | 311,565,332 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # pathlib is great
from pathlib import Path
from _pytest.main import Session
import pytest
#from sympy import sin, Symbol, log, exp, zoo, Id, sqrt
# Let's define our failures.txt as a constant as we will need it later
FAILURES_FILE = Path() / "failures.txt"
@pytest.hookimpl()
def pytest_sessionstart(session: Session)... | [
"tommaso.bendinelli@gmail.com"
] | tommaso.bendinelli@gmail.com |
cd0447d0d5b8896c2c63e2db3bdd0930d1ea9eb1 | aaf89b226d715bccfa81354402b7dc7f8f7da8e4 | /kyoji/ABC153/SilverFoxVSMonster.py | 9e134d82bf26f5a7728a57bb8b9c4c4b25be8129 | [] | no_license | kyojinatsubori/RoadToRedCoder | 56eec77eaccd1d0cba36dfc7edc8e65d4d311f77 | 72f5330ba8d8fe15a1c3f62a0e1640c3217e6a93 | refs/heads/master | 2021-04-23T21:01:32.425419 | 2020-06-06T08:05:32 | 2020-06-06T08:05:32 | 250,003,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | n, d, a = map(int, input().split())
array = [0]*n
count = 0
for i in range(n):
array[i] = list(map(int, input().split()))
array.sort()
while array:
if array[0][1] <= 0:
array.pop(0)
else:
for i in range(len(array)):
if array[i][0] <= array[0][0] + 2 * d:
array[i][... | [
"natsubori777@gmail.com"
] | natsubori777@gmail.com |
9f36e0bc6f11b4972c0240cafbb498fe8f7a0255 | 5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63 | /swexpert/6109(추억의 2048게임2).py | 3d806eabb5a23e1f5ea7af2a3d83c9a286f46fe2 | [] | no_license | juyi212/Algorithm_study | f5d263c5329c994a457bbe897e5e1405d2b1d67a | f225cc593a50b74686111f654f7133707a1d1310 | refs/heads/master | 2023-03-21T20:02:36.138688 | 2021-03-16T14:16:40 | 2021-03-16T14:16:40 | 325,008,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | from collections import deque
def dir():
# 시계방향으로 90도
tmp = [[0] * N for _ in range(N)]
for i in range(N):
for j in range(N):
tmp[i][j] = matrix[N-1-j][i]
return tmp
def push():
# 행 left 기준
for i in range(N):
q = deque()
for j in range(N):
if m... | [
"dea8307@naver.com"
] | dea8307@naver.com |
3c482ab4d124c9bdb9090b978987ff36e4f63e6a | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/bigquery/migration/v2alpha/bigquery-migration-v2alpha-py/google/cloud/bigquery/migration_v2alpha/services/migration_service/pagers.py | 5d3a2e4628aa71e2c409d3bcc893fdc35af0ad99 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,766 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
df3fe705979d3f7b8cda44fe3d812b0da3e38b26 | 5665618513b5a13b6d9eb5f90f66db759268342b | /app.py | 9f09682b14755fc722169f433751cbedee829aeb | [] | no_license | EddieGustafsson/TornadoSessionValidation | f7cadc24cb559efa6b04d06e211e05b6dfcccba5 | ac5b4d333292ff87640f785537e10260a0d374c7 | refs/heads/master | 2022-06-10T13:27:36.615796 | 2020-05-06T12:22:06 | 2020-05-06T12:22:06 | 261,742,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.options
import os.path
from tornado.options import define, options
from handlers.AuthHandler import LoginHandler, LogoutHandler
from handlers.MainHandler import MainHandler
define("port", de... | [
"eddie.gustafsson@elev.ga.ntig.se"
] | eddie.gustafsson@elev.ga.ntig.se |
ebc003f5248cb180946a2771b35b1966aeb022d9 | 2233ead75a4e1960757c8af9f458e5156ea1e4b3 | /code/crawling-code/givemeallthelyrics.py | 2bff35e0ce10253c035dd4a8611b958dd9e73bc8 | [] | no_license | honghyeong/nlp-lyrics-creators | 0361548973a9b8f81d5ed6f5dc0adf043b174ef3 | 615380fb13c0260ff6e4b638901fd49625cd7fe0 | refs/heads/main | 2023-08-02T23:14:19.254416 | 2021-10-06T06:45:14 | 2021-10-06T06:45:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,012 | py | from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver import ChromeOptions
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.s... | [
"noreply@github.com"
] | noreply@github.com |
5a4e1e68d14e7731097d156af820f65fe39459af | 5c4ca19944ad9bc3bf55038635bea8f711ce5967 | /brunel/deprecated/test_excitability_configs2.py | 6a3d71d9d6ffe81d2e4d8967a383fa779ac0a9fd | [] | no_license | mer0mingian/gif2_model_nest | 41a3d685251499e2f481c3e6fd760a976506a06e | e8c912be4c74c605ba6c621b16806edc84c76874 | refs/heads/master | 2021-05-02T18:48:38.335411 | 2018-04-05T20:55:21 | 2018-04-05T20:55:21 | 69,229,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | # coding=utf-8
"""
For all files in the excitability folder this script picks out the ten best
configurations per file and tests them on the Burnel network in gif2_brunel_f.
"""
import numpy as np
import time
import sys
import os
import copy
# import matplotlib as mpl
# mpl.use('Agg')
# import matplotlib.pyplot as plt
... | [
"d.mingers@fz-juelich.de"
] | d.mingers@fz-juelich.de |
e00c0ce80f37cc522e8ecc7b32190129879e8135 | c17eaa7c5abf4bfcb90d09184ac98b1163cf839e | /usb_print2.py | 8d96dbf56872d008aa71b9e2337bb346b19b8c56 | [] | no_license | meotimdihia/pythontest | 3afd1b035110dca1d2c63e37ee2fcd01cb347369 | 955ec5587c0e927d6aefbfa8dd241d975fe50c68 | refs/heads/master | 2020-04-15T01:50:17.340000 | 2014-11-22T11:32:19 | 2014-11-22T11:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | import usb.core
import usb.util
import usb.backend
import sys
VENDOR_ID = 0x10c4 # nhiet do
PRODUCT_ID = 0xea60
# find our device
dev = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
# was it found?
if dev is None:
raise ValueError('Device not found')
# set the active configuration. With no arguments,... | [
"meotimdihia@gmail.com"
] | meotimdihia@gmail.com |
5b539d58c43c31537bfe6367c53704ae5e7f9ca0 | 727339491e343aca95367e64b38c32922a0a43da | /log-classify/save_dataset.py | a6363011ba3736bd203534da52f1157f6ece5209 | [] | no_license | Tairy/python-lab | 98421a3c70bf4158d5684880e85bed0c7dd160cc | 06567c88490d113e75ac05a1345ef3d4215eb417 | refs/heads/master | 2021-01-17T12:56:49.559450 | 2019-07-17T11:16:21 | 2019-07-17T11:16:21 | 57,027,431 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | # encoding:utf-8
from es import es
def get_tagged_logs():
query_json = {
"bool": {
"must": [
{
"exists": {"field": "tags"}
}
]
}
}
sort_json = [
{
"dt": {
"order": "desc"
... | [
"tairyguo@gmail.com"
] | tairyguo@gmail.com |
f9fa64cb7f95abdf746a0d9d17e316d5a5705bd2 | 5cd64987b3b204930c848a035dbe76fdf7085e20 | /utils/uni_html_parser.py | 142894bbd0eccc9c726ea3cfafaf238227fcb104 | [
"Unlicense"
] | permissive | ITOO-UrFU/open-programs | 08a2cf13e045198417778f9164acf374810aac84 | 0ccc2740670d38cbd73fb3c611debd38bea994ef | refs/heads/dev | 2020-06-14T05:53:53.598267 | 2017-10-03T04:49:44 | 2017-10-03T04:49:44 | 75,224,934 | 0 | 1 | null | 2017-06-19T14:56:08 | 2016-11-30T20:35:14 | Python | UTF-8 | Python | false | false | 436 | py | """
Parse table with modules, disciplines from uni generated html
example file addr: C:\\Users\\User\\Downloads\\1.html
"""
# from bs4 import BeautifulSoup
#
#
# html_file = input("Html file address: ")
# html_file = open(html_file, encoding="utf-8")
#
# html_doc = html_file.read()
#
# soup = BeautifulSoup(html_doc, '... | [
"mastergowen@gmail.com"
] | mastergowen@gmail.com |
0e1e5845ba068efe8a4934624d75feab1573a380 | 1744ff9de02953646846be4d64e396c0c37c9355 | /assignment3 MG.py | 192ef057497dfb71b5e4f89619c99b9b9094a2f1 | [] | no_license | MatthewGerat/Past-Projects | af3953255a3205c693baea4bae576bf6f7591149 | 72e8b8e34263d634fdb4e6a1ab982a171df20a56 | refs/heads/master | 2020-06-27T12:58:23.673091 | 2019-08-01T02:53:28 | 2019-08-01T02:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 19 15:40:24 2017
@author: xfang13
"""
#Problem 1: (6 points)
#Create a list with 1001 randomly generated
#integers, each of which is generated in between -1000 and 1000.
#And using Python statements to find out the
#mean, median, minimum, and maximum value i... | [
"noreply@github.com"
] | noreply@github.com |
676d3f096342d4cc8492353f9850df99daa236f1 | f56526a4bb9d0599be0d7ca89cba02900109d580 | /manage.py | 08fe28de5f270fd149c3ac065f8c8fbbb0913743 | [] | no_license | wongself/ScienceHammer-Spert | 2ae84ad5d25cbda070f5e121bdf70123393acfa3 | 5fadd8fa64b46ba205bb2eab5e5851c6e9895b42 | refs/heads/master | 2022-12-14T07:13:50.380635 | 2020-09-02T12:42:08 | 2020-09-02T12:42:08 | 289,702,598 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'scihammer.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"wongself@gmail.com"
] | wongself@gmail.com |
6cfb33715482388d145d3cb0ce8ebd3b23caca19 | 0ade9adceff8ce87773f8f4394335732483ea499 | /migrations/versions/b6eb51f7207c_.py | afe42fec9ec9feb0a95d5a47e4c2169e200af649 | [] | no_license | abira125/fyyur | 3f03bda82b6846b3f78d4e8a8ef22bb0526d9699 | c805175bb6bf2196516c85aa60b268a8f02b1e6a | refs/heads/master | 2023-02-03T00:36:21.008957 | 2020-12-03T03:53:44 | 2020-12-03T03:53:44 | 296,510,094 | 0 | 0 | null | 2020-12-03T03:53:45 | 2020-09-18T04:06:51 | Python | UTF-8 | Python | false | false | 828 | py | """empty message
Revision ID: b6eb51f7207c
Revises: 40c455786653
Create Date: 2020-09-20 12:01:16.460765
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'b6eb51f7207c'
down_revision = '40c455786653'
branch_labels = None... | [
"abhinavravi125@gmail.com"
] | abhinavravi125@gmail.com |
6ac3ff9eeee8324164bd4e27ceab17129415edfc | e262cc25de2f5ad2bda611cc84f922575dd641db | /finance/admin.py | a416fe4d3314dd8bfaf1faf19f738688c288c969 | [] | no_license | tashaem/financeku | 0c55f6c52d5e111448c08e1af1de8120c4f5bc03 | ae3880adf0f54be25f52ee288f002a66a94d3b63 | refs/heads/master | 2022-12-08T20:04:25.517345 | 2020-08-15T20:04:15 | 2020-08-15T20:04:15 | 287,706,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(User)
admin.site.register(Finance)
admin.site.register(Percentages) | [
"tasha_em@outlook.com"
] | tasha_em@outlook.com |
466859a2c01129ecbfc8ed814b1cdea9d75df04e | 0760d2eca52b92532707506138f5132d8757d039 | /gameparser.py | a7685633fca51a2956930e447ab9f7c5ab4064c2 | [] | no_license | kittyae99/CM1101 | 72b791ca6df44f5cbae02e970f39c9beb718d347 | 7ff0b9c46c0f59b2983a5da5fe203aaaf362ac73 | refs/heads/master | 2021-05-08T08:07:19.371878 | 2017-10-20T10:15:21 | 2017-10-20T10:15:21 | 106,994,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | import string
# List of "unimportant" words (feel free to add more)
skip_words = ['a', 'about', 'all', 'an', 'another', 'any', 'around', 'at',
'bad', 'beautiful', 'been', 'better', 'big', 'can', 'every', 'for',
'from', 'good', 'have', 'her', 'here', 'hers', 'his', 'how',
'i', ... | [
"noreply@github.com"
] | noreply@github.com |
bfc3c8031c4d5e146222ba440d88baa5538b926a | 7a20dac7b15879b9453150b1a1026e8760bcd817 | /Curso/Challenges/URI/1097SequenceIJ3.py | 635109df951618ad1f484a58895383e866c6df7c | [
"MIT"
] | permissive | DavidBitner/Aprendizado-Python | 7afbe94c48c210ddf1ab6ae21109a8475e11bdbc | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | refs/heads/master | 2023-01-02T13:24:38.987257 | 2020-10-26T19:31:22 | 2020-10-26T19:31:22 | 283,448,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | inicio = 7
fim = 5
for i in range(1, 10, 2):
for j in range(inicio, fim - 1, -1):
print(f"I={i} J={j}")
inicio += 2
fim = inicio - 2
| [
"david-bitner@hotmail.com"
] | david-bitner@hotmail.com |
a9cd6e8fb3d36f94246374a5f4ecb0f4ddd225a4 | 8a1b2c908e85ec7d2406fa39092dc87acaaa5f39 | /main.py | b51827a276b86620ef4268965e7035b95ecb8f11 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bluetyson/bluecap | 7639f25768fdca1d5d637f6105d1e2cda4b4268f | c52c2873f5c8a84431d4c45a01d175f136fa438e | refs/heads/master | 2022-11-09T05:13:49.196177 | 2020-06-17T07:51:45 | 2020-06-17T07:51:45 | 272,910,581 | 0 | 0 | NOASSERTION | 2020-06-17T07:44:45 | 2020-06-17T07:44:44 | null | UTF-8 | Python | false | false | 1,552 | py | #!/usr/bin/env python
"""
Copyright (C) 2019, Monash University, Geoscience Australia
Copyright (C) 2018, Stuart Walsh
Bluecap is released under the Apache License, Version 2.0 (the "License");
you may not use this software except in compliance with the License.
You may obtain a copy of the License at
http://www... | [
"stuart.walsh@gmail.com"
] | stuart.walsh@gmail.com |
5ca46d6c34881844d2873314ea864076437b6c61 | 2793bb8f04a423c0af2bb3d6d1e6382c1a0183fb | /str01_zad04.py | dbe37eeb7e1ff423263137299bcda73eccb0796a | [] | no_license | andjelao/Zbirka2-15-zadataka | 44c0b0b70483dadfa1f0e07f9e02b0d61e46c2fc | 38525b71e468f53c68711f2ccb166f87ecb72bc3 | refs/heads/main | 2023-01-04T09:21:15.190961 | 2020-11-04T18:17:56 | 2020-11-04T18:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import math
print("Unesite sljedece podatke o jednakokrakom trouglu: ")
b = int(input("krak: "))
a = int(input("osnovica: "))
def rotacija_jednakokrakog_trougla_oko_osnovice(s, a):
"""
rotacijom nastaju dvije kupe k1 i k2
ulazni parametri : krak b -> postaje izvodnica s obje kupe
... | [
"noreply@github.com"
] | noreply@github.com |
eb835bea53927e65127039af2a88cd9d1fd583be | ccfc4c0fe6029cfa6171264ec6714ab4e8ae7197 | /mip_drift_slices.py | b49995f0d8fe88f7d6c56a0ae817c8ce21ec312b | [] | no_license | alicebarthel/roms_tools | 2e42d9afbae0203b76bf19de3d327f87a1a3c488 | 72cd0bd976d1bf15c8eb52f3f6919f99cc8ff0db | refs/heads/master | 2020-04-09T00:44:13.179152 | 2018-11-09T12:52:11 | 2018-11-09T12:52:11 | 159,879,285 | 0 | 0 | null | 2018-11-30T21:13:19 | 2018-11-30T21:13:19 | null | UTF-8 | Python | false | false | 18,865 | py | from netCDF4 import Dataset
from numpy import *
from matplotlib.pyplot import *
from matplotlib.patches import Polygon
from matplotlib.collections import PatchCollection
from calc_z import *
from interp_lon_roms import *
# Import FESOM scripts (have to modify path first)
import sys
sys.path.insert(0, '/short/y99/kaa561... | [
"k.naughten@unsw.edu.au"
] | k.naughten@unsw.edu.au |
46d5903f347c4eb445c733dc1a2a7a8768475507 | 74a7bc91d401c69b4afae49fc9380d0605b501a4 | /python/queue/2.multi_threading.py | a3b682724df41cd849a179060c602af265667980 | [] | no_license | imzhangliang/LearningToys | b5e2e8fe255f57e85600c09dba36394d7c7448c7 | c782d8b1790dbc2aac945b5b23e6daee8183ce92 | refs/heads/master | 2020-03-27T14:57:20.306868 | 2019-04-24T02:31:26 | 2019-04-24T02:31:26 | 146,689,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py |
import queue
import threading
import time
def putTask(taskQueue):
# 放任务:每隔一段时间放一个任务
for item in range(5):
taskQueue.put(item)
threadName = threading.currentThread().getName()
print('[{0}]'.format(threadName),': I put', item)
time.sleep(2)
def getTask(taskQueue):
# 取任务:... | [
"914342085@qq.com"
] | 914342085@qq.com |
97d0ff599f148e696b8c2e0b340819f543d3184f | 91d20d715bf3bcfe4b275762142e8278dc2e6c7a | /tests/managers/test_manager_dcf.py | 89c348a045c0c06d60258c39dce58195a1ce0478 | [
"MIT"
] | permissive | aggreybosire/open-vot | 7d3c472d6b6bc45ad6b04d00a8662ca669f2f091 | 818356d0484138609489c28bb4e0b2a7f59703d7 | refs/heads/master | 2020-03-22T05:38:42.517237 | 2018-06-27T07:42:54 | 2018-06-27T07:42:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from __future__ import absolute_import
import unittest
import random
from lib.managers import ManagerDCF
class TestManagerDCF(unittest.TestCase):
def setUp(self):
self.otb_dir = 'data/OTB'
self.manager = ManagerDCF()
def tearDown(self):
pass
def test_track(self):
self.... | [
"withchris@126.com"
] | withchris@126.com |
5b10bdd37e763c491295df1ab9ea5e71397ce6b6 | 9919b5ae6736156241b747fb7cc2fedb5e2d014a | /src/scripts/conversion/main.py | 15ba1e5aacdf4340fd37911f61837ffe2bc5097f | [] | no_license | MiniOK/companyone | 07336963897aa78e8d1c1475d572a2bbf536a0d2 | a6148ca6cc9c4500b2c272a47d217b3f6febec52 | refs/heads/master | 2020-07-21T05:21:35.924756 | 2019-09-06T09:28:33 | 2019-09-06T09:28:33 | 206,761,428 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,018 | py | import os
import random
from shutil import copyfile
from win32com.client import Dispatch
from conversion.UltraSoundReport import UltraSound
def run_main():
# DIR = "../../../data/20190722/"
# DIR = "M:\\PycharmProjects\\doc_conversion\\data\\20190722\\"
DIR = 'E:\\zjc\\'
# Get all files in list
... | [
"47881244+MiniOK@users.noreply.github.com"
] | 47881244+MiniOK@users.noreply.github.com |
bf6e59ff35b262d8aa742fb9d8b4002db1cd2635 | ab3d361d784ee2bf066802f9942371625f6b5b6d | /basics/venv/Scripts/easy_install-script.py | 1e0b07c8c348069b58e7033096b61d3479ce707f | [] | no_license | patricia8229/Dictionery | 9b74cdc990604007ead8952bd4ce390749ba679b | 8e5ec7a1510f6b53bd2ab0273d8f84a3e0d8a180 | refs/heads/master | 2020-08-17T04:22:03.811513 | 2019-10-25T18:00:57 | 2019-10-25T18:00:57 | 215,606,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!C:\Users\HP\PycharmProjects\basics\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"patricia.kibunja@gmail.com"
] | patricia.kibunja@gmail.com |
99b76f70c93b4700993ef5a508844059278154ed | 01c3ff1d74e754e0d4ce0fb7f8a8b329ec3766e1 | /python_exercises/17exercises/prime1.py | db3154923a82096c6c0e30619f1f9d4a39239028 | [] | no_license | vineel2014/Pythonfiles | 5ad0a2b824b5fd18289d21aa8306099aea22c202 | 0d653cb9659fe750cf676a70035ab67176179905 | refs/heads/master | 2020-04-28T03:56:22.713558 | 2019-03-11T08:38:54 | 2019-03-11T08:38:54 | 123,681,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def is_prime(n):
for i in range(2, n):
if n%i == 0:
return False
return True
n = int(input("What number should I go up to? "))
for p in range(2, n+1):
if is_prime(p):
print (p)
print ("Done")
| [
"vineel2006@gmail.com"
] | vineel2006@gmail.com |
a53c4ac16941e738f96f042c8b60852349ed165d | dc0d3dcf9ee1ad6119a861b23f9ef5eb4ae8f989 | /aleatory_mixtape.py | c188f61a70285494f63129526842e6c8ffa81439 | [
"Unlicense"
] | permissive | SURVANT-Cryp/Algorithm-as-Ritual | c3c463947b63f5c95c455e551376ebf5e9b3073e | b9a28f26180872fe2113714e2b3a7431ea081b5e | refs/heads/master | 2022-05-28T06:59:49.137544 | 2022-05-08T20:13:19 | 2022-05-08T20:13:19 | 153,498,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,233 | py | #! /usr/bin/pythonw
# coding: utf-8
"""
aleatory_mixtape_v.1
"""
import random, textwrap
from random import randint
import webbrowser
text = ["LOVE098", "LOVE089", "SV128", "HDBD012", "PFL197", "N-037", "JAG316CD", "MUSLIMLIM003DI", "DTD 021DI", "HOS468", "HOS425", "MRP099LP", "SF105LP", "HAFTW008", "HAFT... | [
"noreply@github.com"
] | noreply@github.com |
3c709a74c969ea58828797b91e149cd24b24c010 | 1cf26664b6b7c3737e62fdc3f5869e30c8ccfddb | /project/automation/test/dwdw.py | 176318398d3e6a96dfe7cff0fa54760f7d407662 | [] | no_license | yuku123/py_ex_all | 0c7429ed69fed37244a6dd8c3d445622e8e8e690 | 3152dbaf92e4beecad132b47bdc7a58058417bfd | refs/heads/master | 2021-06-24T06:41:06.453400 | 2021-01-15T12:26:09 | 2021-01-15T12:26:09 | 180,709,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import time
import pygame
file=r'/Users/zifang/Music/网易云音乐/t.mp3'
pygame.mixer.init()
print("播放音乐1")
track = pygame.mixer.music.load(file)
pygame.mixer.music.play()
time.sleep(10)
pygame.mixer.music.stop() | [
"chenhao.zhang@2piday.com"
] | chenhao.zhang@2piday.com |
6e9de5eadc04eb7c34af1ec1e2845bf529ed5b9c | 4ed9e987975f27017a615761da717e48eb09667c | /controller_modes/web_mode.py | 0307001f5ee00ca222042b54122294b31019fc9d | [] | no_license | deenski/desktop_peripherals | a1380879bdb681be01a10aabfbc4cf9fa06c0811 | 53ae17934e75aeca953e326a2dcb4a278b677b5d | refs/heads/main | 2023-02-22T03:58:27.496107 | 2021-01-18T19:14:55 | 2021-01-18T19:14:55 | 330,761,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | def get():
return {
"mode": "web",
't1:v0': 'https://google.com',
't1:v1': 'https://mail.google.com',
't1:v2': 'https://calendar.google.com',
't1:v3': 'https://domains.google.com',
't1:v4': 'https://twitter.com',
't1:v5': 'https://reddit.com',
't1:v6':... | [
"jakevendegna@gmail.com"
] | jakevendegna@gmail.com |
070c621faf5ceb32087b3f9ce6bbc2e3b4b100f7 | 72f1641d8965ebc5b481a9f6d02143fed80f8d27 | /labb2-5a.py | 7e7eb81b50d8b76010e627f6e8f6e665f3fdd7bc | [] | no_license | carfri/D0009E-lab | ea726c84e0ad3433313bc789f52bd4000a18cc3e | 267ea662f497a2c53a1607c635d8d891354f1a45 | refs/heads/master | 2021-09-03T06:38:14.640774 | 2018-01-06T14:11:29 | 2018-01-06T14:11:29 | 116,487,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import math
def derivative(f, x, h):
k =(1.0/(2*h))*(f(x+h)-f(x-h))
return k
##print derivative(math.sin, math.pi, 0.0001)
##print derivative(math.cos, math.pi, 0.0001)
##print derivative(math.tan, math.pi, 0.0001)
def solve(f, x0, h):
lastX = x0
new = 0.0
while (abs(lastX) - abs(new... | [
"noreply@github.com"
] | noreply@github.com |
babee140686adf70f2854c94b0200cb7bec97291 | b28c81feceac506df581d45cb139c4d5ed6d5d1d | /Problem-Set-7/ps7.py | 48227e4fca06c61651c9e278eed401066d66fd35 | [] | no_license | knnaraghi/MIT-6.00x | b2789f8b3160dbc1c7932e640a34221f2e474974 | 4e0126a128eb102211743b5349f6e28ab03110ef | refs/heads/master | 2021-01-10T08:28:55.556679 | 2016-01-02T20:19:59 | 2016-01-02T20:19:59 | 48,899,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,942 | py | # 6.00.1x Problem Set 7
# RSS Feed Filter
import feedparser
import string
import time
from project_util import translate_html
from Tkinter import *
#-----------------------------------------------------------------------
#
# Problem Set 7
#======================
# Code for retrieving and parsing RSS feeds
# Do not ... | [
"knnaraghi@gmail.com"
] | knnaraghi@gmail.com |
0abef404fcc2fa915e6f66f2781b84dcca1baef2 | 834d61ad7839112b32061fa46ee0b30830cc4039 | /bsp/apm32/apm32f072vb-miniboard/board/SConscript | 5dabcec176d2c17c04036c3a64461e7a474f3035 | [
"Zlib",
"LicenseRef-scancode-proprietary-license",
"MIT",
"BSD-3-Clause",
"X11",
"BSD-4-Clause-UC",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | GitHubIDforRoger/rt-thread | d2001554e088f5e0b3fc8dfc8334e8b131697419 | ae78aedface2dc577803a078a6bfacb3c7cebfc2 | refs/heads/master | 2023-02-06T03:12:35.103940 | 2023-01-31T10:33:13 | 2023-02-01T02:32:55 | 166,341,266 | 1 | 0 | Apache-2.0 | 2019-01-18T04:00:27 | 2019-01-18T04:00:26 | null | UTF-8 | Python | false | false | 993 | import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
src = Split('''
board.c
''')
path = [cwd]
startup_path_prefix = SDK_LIB
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/APM32F0xx_Library/Device/Geehy/APM32F0xx/Source... | [
"noreply@github.com"
] | noreply@github.com | |
92a7bf4da11be62b91aefa74217e407b45696494 | 0ee6fdfdd8d36cbabbb072896735364c286f5790 | /phoobe/__init__.py | b2f9d416029e684bb4de6b57b43b3e518f09a0b9 | [
"Apache-2.0"
] | permissive | berendt/phoobe | ce3992803093986d66b5d122d30d1241aefafc41 | dc49b4ce2cdf247c92e76f775970decd28c7eead | refs/heads/master | 2021-01-17T08:02:52.747683 | 2015-06-02T07:33:00 | 2015-06-15T21:37:27 | 36,715,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"berendt@b1-systems.de"
] | berendt@b1-systems.de |
bd5e30edab766b075a6fb46fc70cce8b37cba047 | c224ca07e54dbff06704a2a841871ac4bd404c63 | /stock/migrations/0002_stock_created_at.py | 825b31b40d46dbe4a76ad450caa56fb4e355624f | [] | no_license | kausaur/trading | 9fbac201363cdd133566f2bc8c32c3c68129a273 | 75e556dd129c9453b25bddeecdd1c03d19d9a6ca | refs/heads/main | 2023-05-05T14:18:04.752320 | 2021-05-28T19:11:57 | 2021-05-28T19:11:57 | 370,021,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.1.7 on 2021-05-08 09:12
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stock', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='stock',
name='created_at'... | [
"kaushiksaurabh17@yahoo.com"
] | kaushiksaurabh17@yahoo.com |
7b3e58cda801fe3cc15d924b5baadfbc9834aa4d | d90d8422379e5de81e00cab939289c30721aec16 | /Linked List Cycle.py | 07ebd01c5b8663f81a292248a1c89ee68d8ad41b | [] | no_license | csvenja/LeetCode | 6a8f41cc205b494d6a50cdaa7c54db807a8fd553 | 034a6b52b847de7b12b81fbe32db64936f1f97b8 | refs/heads/master | 2016-09-10T21:46:22.478216 | 2014-08-01T04:04:40 | 2014-08-01T04:04:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param head, a ListNode
# @return a boolean
def hasCycle(self, head):
fast = head
slow = head
while fast is not None and fast.next is not ... | [
"c.svenjax@gmail.com"
] | c.svenjax@gmail.com |
e0fafbf80e7c49525a2685fb55ae4c722452fa45 | c5986b13cccb77e9e82eea61f68cf1b9613a94a6 | /calculator.py | d17b3a5cc83a5f945c85115c3b7b98988f952de8 | [] | no_license | abhilashasokan/learnpython | 91d095aed73730837b5587c2c98d7eb44a4ad2f2 | 1ba94d77e2610b0b2d8ca2a0b007af3012846894 | refs/heads/master | 2020-03-28T03:38:43.083619 | 2018-09-07T12:59:51 | 2018-09-07T12:59:51 | 147,660,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | num1 = float(input("Enter the first number: "))
op = input("Enter the operation [+, -, /, *]: ")
num2 = float(input("Enter the second number: "))
if op == "+":
print(num1 + num2)
elif op == "-":
print(num1 - num2)
elif op == "/":
print(num1 / num2)
elif op == "*":
print(num1 * num2)
else:
print("In... | [
"abhilash@heidelsoft-technologies.de"
] | abhilash@heidelsoft-technologies.de |
a77dc857467c4d4b3e09b57d319a26b8677f6534 | 8e95e79840005f6c34dfb978e8fe6e0ec4f7f643 | /2_statistical-thinking-in-python-part-1_/6_Computing_means_calcular la mediaMediana.py | 89ea0312977c4b543c7b127c7672e4baf5f878fa | [] | no_license | Naysla/Machine_Learning | a0593cac41ef1561f14bec55780570b82fc37720 | e75d5cd2894ccb005228ab3da87dde9025385a08 | refs/heads/master | 2023-02-01T17:19:32.413609 | 2020-12-22T20:36:45 | 2020-12-22T20:36:45 | 323,708,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #Computing means
#The mean of all measurements gives an indication of the typical magnitude of a measurement. It is computed using np.mean().
# Compute the mean: mean_length_vers
# calcular la media
import numpy as np
mean_length_vers= np.mean(versicolor_petal_length)
# Print the result with some nice formatting
pri... | [
"60472499+Naysla@users.noreply.github.com"
] | 60472499+Naysla@users.noreply.github.com |
b045067e544e5dd53cc34403d0d68f38ae87d202 | 0b77a118d788d23301e03904ce59aca42c007782 | /bfs_AI.py | 03df6bb1e88b07a33a86099cd6ace70221733658 | [
"MIT"
] | permissive | Ishaan75/Hacktoberfest2020-1 | d3b3082c2e518f412f45d53dd8fed2cd2871a9d0 | d8c6d5a912b010fb079619dd3e5fc084ec67ad82 | refs/heads/master | 2022-12-19T16:04:23.832448 | 2020-10-15T12:32:57 | 2020-10-15T12:32:57 | 300,163,099 | 0 | 0 | null | 2020-10-01T05:56:22 | 2020-10-01T05:56:21 | null | UTF-8 | Python | false | false | 5,148 | py | initial_state = [[2,0,3],[1,8,4],[7,6,5]]
final_state = [[1,2,3],[8,0,4],[7,6,5]]
val = 0
#checking whether the inital abd final state are Same or not
def areSame(A,B):
for i in range(3):
for j in range(3):
if (A[i][j] != B[i][j]):
return False
return True
# counting the... | [
"noreply@github.com"
] | noreply@github.com |
ca3f76530fce192d3db0909f8dd7a2827667a60c | e22e20b81a0b5a60ec93bb542c3b9f866df313af | /intake/admin.py | c0e6af07ae4bcdffc2efdffa020c4a0a8e610b90 | [] | no_license | notdougwhite/office | bf46814b96bf5bf7131ec2b082753b09a8dbd847 | b5e503511f4bd766632267aff8bd9f073ebd01c4 | refs/heads/master | 2020-03-26T00:00:22.092724 | 2018-08-14T18:46:42 | 2018-08-14T18:46:42 | 144,178,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | from django.contrib import admin
from . import models
# Register your models here.
class ClientInline(admin.StackedInline):
model = models.Client
extra = 0
class KidInline(admin.StackedInline):
model = models.Child
extra = 0
class DocInline(admin.StackedInline):
model = models.Document
ex... | [
"wookie.monster.6@gmail.com"
] | wookie.monster.6@gmail.com |
c4807d0f9ca9a0df704f28182153dadcf1b614fa | ea2543cac8aa706eff73d9b91abec2c1ec3ec33e | /agentDDPG.py | 0bd909c0cdd8a5ce6a60d9442ca99fb95b8d887e | [] | no_license | xuxie1031/DDPG | 3847d9d35ab2797f53ef2ddfa6017d6c761471e9 | 42dd0035f9741352bc25101f59c5b76904221d42 | refs/heads/master | 2020-03-25T12:30:05.295599 | 2018-08-08T17:50:36 | 2018-08-08T17:50:36 | 143,779,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | import numpy as np
class DDPGAgent:
def __init__(self, config):
super(DDPGAgent, self).__init__()
self.config = config
self.task = config.task_fn('RoboschoolHopper-v1')
self.network = config.network_fn(self.task.state_dim, self.task.action_dim)
self.target_network = config.n... | [
"404839856@qq.com"
] | 404839856@qq.com |
f0ebbd1a304ba250b53fa8d92edff61672bf97d4 | c220f7c7007a67b76892d483b02dd11b97a6c9d9 | /testImport/sub/__init__.py | d29be5309a3298a1f4dc7835c9a10638dcca6d20 | [] | no_license | Y-Grace/ChineseNgoKnowledgeGraph | 934ee5e7ec76aa0b51c61cbac252502bf67ee3f2 | 27bbf06fa771a24609d6ec9220c2ca9d0efe2dc3 | refs/heads/master | 2020-05-26T19:34:07.479741 | 2018-01-06T08:56:56 | 2018-01-06T08:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | __all__ = ['suba','subb'] | [
"liyi193328@gmail.com"
] | liyi193328@gmail.com |
5d72961519c84c8a410cab5639db9ff14b0e98c3 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/contrib/ndlstm/python/misc_test.py | 57674164141d3203dc4ba57fcd3e80a9b48ff764 | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
8578a3f95c94985a4cc0aa0321543c756179d831 | 7b3c78c042d1906ce22ffd00c6e9a9bd7da63471 | /facerecognition/haar/threaded_haar.py | 334819cddad22fe260d83dd48dd77e65b3f2a40e | [] | no_license | jchiefelk/AlgoLab | 3412840ed202728160fbe83a8d00d05a8a8bec5d | 7726f3d613a9f26b56c8acafa0145a9b5924a627 | refs/heads/master | 2020-05-20T17:55:48.598845 | 2017-01-22T16:43:31 | 2017-01-22T16:43:31 | 56,414,318 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # Python script to recognize face
import numpy as np
import cv2
import sys
from threading import Thread
#
# Functions
#
'''
def runCamera(self):
# Capture frame-by-frame
video_capture = cv2.VideoCapture(0)
frame = video_capture.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.namedWindow('video', cv... | [
"3levelproductions@gmail.com"
] | 3levelproductions@gmail.com |
10ed61cfd37812ce65002d9d8d95891844128a31 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_button04.py | e8f33e3ff6d0969eac4cf278ec79b4baf1104d9b | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 846 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
68ef6e343455f73bc4af601651462ffaa6c6131f | 689dfca7468b4196e84b5fafde7d8134d2ce5d9a | /Lesson_5/exam_6.py | dae12855133751adff3c9761a9a9bdd76a02d8ca | [
"Apache-2.0"
] | permissive | MisterHat-89/geekBrainsPython | 79d5913aa7c174aa205b0cde0391f76e9a342537 | ce0f54e35a746872318d2478c0e48f3bda99ad66 | refs/heads/main | 2023-03-24T22:52:36.713523 | 2021-03-13T12:39:48 | 2021-03-13T12:39:48 | 318,729,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | # 6. Необходимо создать (не программно) текстовый файл, где каждая строка описывает учебный
# предмет и наличие лекционных, практических и лабораторных занятий по этому предмету и их количество.
# Важно, чтобы для каждого предмета не обязательно были все типы занятий. Сформировать словарь, содержащий
# название предмет... | [
"taretuttareom@gmail.com"
] | taretuttareom@gmail.com |
2afc8c5146bd2a6dc844e2c9d18012c712ea238d | 67ad5fd08f5251b48ec402c78840b1f0f2c473f7 | /htseq/scripts/parse_utils.py | a7efa92ea5746244611ebdc72c7b06e4a08f0729 | [] | no_license | canzarlab/heterochr_silencing | b865d35af4fc6cd6436455273afb18869812c9bd | 9cbc70c0db62508717c03c3edad4ae84887603f0 | refs/heads/main | 2023-07-05T05:54:08.254188 | 2021-08-10T14:05:59 | 2021-08-10T14:05:59 | 393,033,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | #!/usr/bin/env python
import os
import pandas as pd
# reading .odf (libre office spread-sheets)
import ezodf
import odf
## ----------------
## Path Environment
## ----------------
def get_data_dir(path_file, path_dir):
rel_path = os.path.relpath(path_file, path_dir)
data_dir = rel_path.split(os.sep)[0... | [
"pablommesas@gmail.com"
] | pablommesas@gmail.com |
e3fe7a0c7aef0e61e259e0b599655412153a9b3e | d3426a5d1bbecde0fe480e7af64a54bfdb8295eb | /homeworks/models.py | 118ad76a24b11a1eb196bc1d8b3569f5eb862b5c | [
"MIT"
] | permissive | pu6ki/elsyser | 5a3b83f25f236b4a4903180985f60ced98b3fb53 | 52261c93b58422b0e39cae656ae9409ea03a488d | refs/heads/master | 2021-01-12T18:06:18.375185 | 2017-12-10T18:18:34 | 2017-12-10T18:18:34 | 71,325,732 | 5 | 4 | MIT | 2017-12-10T18:18:35 | 2016-10-19T06:26:47 | Python | UTF-8 | Python | false | false | 1,287 | py | from django.db import models
from students.models import Class, Subject, Teacher, Student
from news.models import BaseAbstractPost
class Homework(models.Model):
topic = models.CharField(default='Homework', max_length=50)
subject = models.ForeignKey(Subject, on_delete=models.CASCADE)
clazz = models.Forei... | [
"wencakisa@gmail.com"
] | wencakisa@gmail.com |
8a74a3f960e4fed4eb54e09f117ee66960597f49 | 7cea740de4d4afece91938b4c34feb628d9f5ec2 | /datasets/load_cifar10.py | 4cc106acaadc0ce1fc5b273e159aac7763989237 | [] | no_license | ofrimasad/cs3598-hw3 | a0a3de9d4bb0cf1d94d00afafcff48bfccf5e502 | 40e8db1c935e44049be240c97cb42dd2c9112444 | refs/heads/master | 2022-10-27T02:42:40.963777 | 2020-06-15T19:12:06 | 2020-06-15T19:12:06 | 270,960,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,258 | py | import pickle
import numpy as np
import os
import sys
import urllib
import tarfile
import zipfile
def _print_download_progress(count, block_size, total_size):
"""
Function used for printing the download progress.
Used as a call-back function in maybe_download_and_extract().
"""
# Percentage comp... | [
"ofri@camera51.com"
] | ofri@camera51.com |
080cd8ea241aa7156fd2b66b2b5ff5f1e2f2ab09 | 437b9b422da726fb2b22f59ea284e319a2cba4cd | /tensorflow_graphics/rendering/opengl/tests/rasterization_backend_test.py | 49600dca718988cbf2b7e036822a5d2469f7a78b | [
"Apache-2.0"
] | permissive | rodrygojose/graphics | 27b86d04ca2276648f0963da77ca7ed11593212e | 089d58ffb170dc4021afecced6159a0345cd8830 | refs/heads/master | 2023-03-04T04:54:44.675059 | 2021-02-11T04:19:55 | 2021-02-11T04:20:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,297 | py | # Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c2d09cf2d8b478dbefe1c63678ccd335d0052187 | 24ccb821154dd2cc0bfe405f4870019df2c47170 | /etl.py | 2aeca04e30a62edf491c543ab155870dc9949a51 | [] | no_license | pandilwar605/Data-Warehouse-on-AWS-Redshift | 48e611cc37cd979824b5af2f2d86195a33dddb1e | 7099b2c828f1255a2cb8bfbeacedae53e60f0fde | refs/heads/master | 2022-11-15T13:53:17.090204 | 2020-07-15T23:35:58 | 2020-07-15T23:35:58 | 280,004,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import configparser
import psycopg2
from sql_queries import copy_table_queries, insert_table_queries
def load_staging_tables(cur, conn):
'''
load data from s3 to staging tables in redshift
'''
for query in copy_table_queries:
cur.execute(query)
conn.commit()
def insert_tables(cur, co... | [
"spandilw@iu.edu"
] | spandilw@iu.edu |
24d7a172fddbe33d234581d7f9cb43fe59a30eff | 83eeeb2a42f5c6ad527776038374e4fa351766c0 | /graphing/graphing.py | 098c627476c7b532011a56544ada7aaeb0070109 | [] | no_license | MarcusGrass/cookie_clicker_automation | f2c58767515cdaca48ca719f720a49d5d4f10313 | befbf5353c5e708a5c35450e39a39e140ff768eb | refs/heads/master | 2022-02-18T04:52:08.628431 | 2019-08-18T15:06:26 | 2019-08-18T15:06:26 | 173,552,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,378 | py | import matplotlib.pyplot as plt
from datetime import datetime
import math
class Grapher(object):
def __init__(self, heavenly_chips, balance, compensator, lc):
self.heavenly_chips = [heavenly_chips]
self.log_heavenly_chips = [math.log2(heavenly_chips)]
self.derivative_chips = [heavenly_chi... | [
"marcus.grass@gmail.com"
] | marcus.grass@gmail.com |
dee6a1b5287f10cf7249284570e705722ce16ebc | 1da08a05d5682f34f4870ddef35decf0d5365e86 | /jax/dueling_dqn/dueling_DQN_PER.py | ff53fcecef57d7c8128c5a6cad7ad98401d5c97b | [] | no_license | sharavsambuu/learning-drl | 69a17e875949bd62d95ce40baa259145127cc74a | fccf7c9b2fd2f0ff1bc2dcca6eec91c0f6903d37 | refs/heads/master | 2023-01-14T03:06:12.177136 | 2020-11-19T11:22:39 | 2020-11-19T11:22:39 | 273,596,977 | 5 | 0 | null | 2020-10-22T10:05:37 | 2020-06-19T22:24:09 | Python | UTF-8 | Python | false | false | 9,209 | py | import os
import random
import math
import gym
from collections import deque
import flax
import jax
from jax import numpy as jnp
import numpy as np
debug_render = True
debug = False
num_episodes = 500
batch_size = 64
learning_rate = 0.001
sync_steps = 100
memory_length = 4000
epsilon = 1.0
eps... | [
"sharavsambuu@gmail.com"
] | sharavsambuu@gmail.com |
46c5ae5e26356785747347ea48c51bbee4873b11 | e8e918dcd948bd2c459456526dcb5199e796f338 | /pypeflow/tasks.py | 63500a9a0929d6ba806ccf430e02e3f2e07d774a | [
"BSD-3-Clause-Clear"
] | permissive | pb-cdunn/pypeFLOW | 201b8e01fa8904ec8dd99933ad6a0e730ce8898a | f66cc1e79c0ab2913f1691bf9d59a53e99ee3545 | refs/heads/master | 2021-01-18T17:34:08.557811 | 2018-07-18T19:09:21 | 2018-07-18T19:09:21 | 35,623,009 | 0 | 1 | null | 2015-05-14T16:38:31 | 2015-05-14T16:38:31 | null | UTF-8 | Python | false | false | 2,233 | py | from __future__ import absolute_import
import collections
import logging
import os
import pprint
from .simple_pwatcher_bridge import (PypeTask, Dist)
from . import io
LOG = logging.getLogger(__name__)
def task_generic_bash_script(self):
"""Generic script task.
The script template should be in
self.bas... | [
"cdunn@pacificbiosciences.com"
] | cdunn@pacificbiosciences.com |
25f0bf7c4128a06556e7b48b67c86602dc3f3c62 | 5e5de626395dec86f4bf127513c47a6acbaaff29 | /trainer_loader.py | 79f49219eacd2926c735fad43064f52f059f1282 | [] | no_license | wintercoming233/STConvLSTM | 9877416f2775aaab1d83143bc0bdd8de73023951 | 88575b75ac2d156224b39d58a4288e1a4877d99b | refs/heads/master | 2023-07-07T07:29:47.526322 | 2021-08-08T14:24:09 | 2021-08-08T14:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,081 | py | import os.path
import datetime
import cv2
import torch
import numpy as np
from skimage.measure import compare_ssim
from skimage.metrics import structural_similarity
from utils import preprocess, metrics
from utils.hss import meteva_hss
def train(model, ims, real_input_flag, configs, itr=None):
cost = ... | [
"noreply@github.com"
] | noreply@github.com |
c71f8c6edf0ba58bc9d75fdb8e9ba3492c5ef660 | 1f8669bcef836c9ab425d5546669e4152072e026 | /polls/migrations/0002_auto_20180324_1400.py | c48496c101bdada224d346edeb45d3e53d029952 | [] | no_license | IsraelGboluwaga/simpleVotingApp | b28853ba6e92bed26b3704953cb5f1b0e8f6e89a | 273f6c5d9b4d330dfcc9938d30c281179479aa0c | refs/heads/master | 2021-04-15T13:07:13.203458 | 2018-04-02T14:16:08 | 2018-04-02T14:16:08 | 126,217,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-24 13:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.RenameField(
mode... | [
"israel.arunah@konga.com"
] | israel.arunah@konga.com |
70602041cbab8d4992431d76a1604543db8d9a90 | 27fc8b3dff7145b7356b855d194cb7581d4bc401 | /tools/abbr_military_json.py | f47c7d6e62030b707ce4d82a27cd420a5222b536 | [
"MIT"
] | permissive | dragstor/timezones | 0defc1f7c2a326caa507b2aa0eb880870673f845 | 03b100ec31e187760abbb03544211eff9357f3bc | refs/heads/master | 2023-03-20T08:17:39.521992 | 2021-03-16T12:33:03 | 2021-03-16T12:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import json
import sys
def abbreviations():
data = {}
abbrs = {}
military_timezones_json = sys.argv[1]
with open(military_timezones_json) as f:
data = json.load(f)
for d in data:
short = d["short"]["standard"]
long = d["long"]["standard"]
offset = d["standard_offset... | [
"kuchiki.taku@gmail.com"
] | kuchiki.taku@gmail.com |
4b4597f60cfa9cd2707f7483474d21f69906a591 | 090a4e026addc9e78ed6118f09fd0d7d4d517857 | /validators/_surface.py | 31fb8ef2e83c14aa5d42ecd7683068c569c1b16b | [
"MIT"
] | permissive | wwwidonja/new_plotly | 0777365e53ea7d4b661880f1aa7859de19ed9b9a | 1bda35a438539a97c84a3ab3952e95e8848467bd | refs/heads/master | 2023-06-04T19:09:18.993538 | 2021-06-10T18:33:28 | 2021-06-10T18:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,887 | py | import _plotly_utils.basevalidators
class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="surface", parent_name="", **kwargs):
super(SurfaceValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
dat... | [
"wwwidonja@gmail.com"
] | wwwidonja@gmail.com |
f236ed6ef77bd2d25a490f8d3c104a5ccdbda779 | 937abf33679194b0d7f2dcd87701ea1cd8170e3a | /config/debug/wsgi.py | d9335a170b3bab110449aedf3afba55ca6ce19ed | [
"Apache-2.0"
] | permissive | saengate/django | 7630944e372eec358e3fc525d867c792bc5993fc | 699a42f661e7cf0d1461553775caee65f6823f09 | refs/heads/master | 2023-01-01T20:36:32.175154 | 2020-08-01T18:01:59 | 2020-08-01T18:01:59 | 280,951,392 | 0 | 0 | Apache-2.0 | 2020-08-01T18:01:14 | 2020-07-19T21:12:04 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for mysite django.
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('DJANGO_SETTIN... | [
"saengate@gmail.com"
] | saengate@gmail.com |
3ebdf22d2266da47cd2b18e8b8b07f155f61fd60 | 578c3b3edd7e40b4e6ac317cd4864a90a21d8498 | /homework04/network.py | 0da0b0b62d9ae1caee59af937c4ea88411ba2b0c | [] | no_license | h3ic/cs102 | 44527ecd27bdda1f96940d52ce05e2596827b020 | e60cf2f7eb01fca3b7fb09a8c4d56c43eefebbdd | refs/heads/master | 2020-08-02T11:13:37.718242 | 2020-02-15T17:57:43 | 2020-02-15T17:57:43 | 210,152,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | from api import get_friends
import time
import igraph
from igraph import Graph, plot
import numpy as np
def get_network(user_id, as_edgelist=True, backoff_factor=0.3):
response = get_friends(user_id, 'id')['response']['items']
uid_list = []
network = []
sec_uid_list = []
for l in range(len(respon... | [
"krelesser@yandex.ru"
] | krelesser@yandex.ru |
dc80b8601ea6ff685a1f646069add3de3a332136 | e6a56bd42659de335208770ac875190e91d9a9c6 | /old/ca.py | a5ddd32f54cdb17e3cc0510c473796d8eb16bd2b | [] | no_license | daanjo3/ICS2017 | d3a812bc133106a2dff367cb438f79ea1045f8b2 | 73c73ac651345b45b662237198fe3199a22e2b2c | refs/heads/master | 2020-05-27T21:20:05.360683 | 2017-03-06T20:00:40 | 2017-03-06T20:00:40 | 83,663,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,753 | py | # Daan Meijers, 10727167
# Steven Raaijmakers, 10804242
from __future__ import division
import numpy as np
import random
from classes import Humans, Mosquito
from pyics import Model
class CASim(Model):
def __init__(self):
Model.__init__(self)
self.t = 0
self.config = None
self.mos... | [
"sjraaijmakers@gmail.com"
] | sjraaijmakers@gmail.com |
b9a793d5f3cef9345946fb2a9d59e139da3e6d5c | 722e1701b36163fed54f9bd8a6e52187eb139371 | /TxGstPlayer.py | 5088c4504607672e02f7810d42dc00a7b7a44974 | [] | no_license | ystoto/AerialAcousticCommunication | efc555004b408a867519025150f75a0559a81ef3 | 8ca1312320f7b916e850af993b57fe4ae696108c | refs/heads/master | 2021-01-25T11:03:57.549367 | 2017-09-18T15:24:38 | 2017-09-18T15:24:38 | 93,912,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,611 | py | # import gi
# gi.require_version('Gst', '1.0')
# from gi.repository import Gst
# import time
# import asyncio
#
# VIDEO_PATH = "C:\\Users\\Public\\Videos\\Sample Videos\\SleepAway_stft.mp4"
#
#
# if __name__ == "__main__":
# Gst.init(None)
# pipeline = Gst.parse_launch("playbin uri=C:\\Users\\Public\\Videos\\Sa... | [
"ystoto@gmail.com"
] | ystoto@gmail.com |
3df0e25033381a10f7bb65a87f0dc47f3745faf6 | 7e6e460e19f142dc9d8f62133c6a63b656a3d90c | /poli_match/poli_match_app/migrations/0014_auto_20181010_0003.py | 9f417367cb037420f70f63825a141e308d72cc3d | [] | no_license | Nathaniel-Dominguez/poli-match | 6ee1adcf87c32efe2f8860e37b93de357cb83a72 | 1411a1638c5f725dee897c796831e6371b83fcd4 | refs/heads/master | 2020-03-30T21:46:34.184293 | 2018-10-12T00:53:48 | 2018-10-12T00:53:48 | 151,641,633 | 0 | 1 | null | 2018-10-12T00:53:49 | 2018-10-04T22:05:36 | Python | UTF-8 | Python | false | false | 430 | py | # Generated by Django 2.1.1 on 2018-10-10 00:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('poli_match_app', '0013_remove_politician_next_election'),
]
operations = [
migrations.AlterField(
model_name='politician',
... | [
"nathaniel.a.dominguez@gmail.com"
] | nathaniel.a.dominguez@gmail.com |
1cf1b5c4e6a919fa0d61de0e410aa474107ed674 | cebfc35cb3219914de75e22aa76b79f2720aa5ab | /src/python/loadDF.py | 793d989f9ce612031b57a750aa6af44a9c8ce4fa | [] | no_license | darshandpatel/eBird | b79d538ba2f729a71980d4ab9174b039bc4e9cce | df4e279fac59dd43ee56467d25e73151b8b7d895 | refs/heads/master | 2021-05-01T04:40:29.598258 | 2016-12-13T02:37:52 | 2016-12-13T02:37:52 | 74,793,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import pyspark
from pyspark import SparkConf, SparkContext
from pyspark.sql import column
def customfunction(x):
if x == "?":
x = "0"
return x
from pyspark.sql import SQLContext
conf = (SparkConf()
.setMaster("local")
.setAppName("eBird")
.set("spark.executor.memory", "1g"))
s... | [
"sankaraguru.s@husky.neu.edu"
] | sankaraguru.s@husky.neu.edu |
6e1624695640887e0510e700b7cf9f286415c365 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /tests/charts/test_ingress_web.py | 93b51e44dc8f19e7db93f68dbd881d874a924830 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 6,374 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
3c19c14dce6c202b4ccc0ce9e3ac127de98213eb | 15f3f423d890630ddfc051b0dcbb2feb25375197 | /jupyter_notebook/.ipynb_checkpoints/N_DIGIT-checkpoint.py | c98e195bcba4864890276047119955d1d2822ed4 | [] | no_license | GuangyiT/test_creative_information_program | c7062d46135ee63b26915a020e784979a4a55014 | 9f5e07eb370ed3381f4e9724edf013865b00f3b5 | refs/heads/master | 2022-03-29T19:42:59.615636 | 2020-01-26T03:37:34 | 2020-01-26T03:37:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# 左づめでの10進数xをdigits桁のN進数vectorに... | [
"liyuanzhongutokyos1@gmail.com"
] | liyuanzhongutokyos1@gmail.com |
ff50e0f31e922964e44be61c5c1611281712ce66 | ae149a7faad6daf432a35d2422e685e849563c44 | /imforensics/util/numpy2matlab.py | bfdc741c67362f962e0b37d5b9d3500f13058abe | [] | no_license | ucb-image-forensics/imforensics | 78e1d090531bc5c5c92fa741353c3d9942164877 | fa7535cb3c0c00004c3d03c958c0886e7dd87951 | refs/heads/master | 2020-04-28T23:31:03.300830 | 2015-04-15T10:21:47 | 2015-04-15T10:21:47 | 33,640,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from __future__ import absolute_import
import numpy as np
import matlab
numpy2matlab_type = {
np.int64 : matlab.int64,
np.bool_ : matlab.int8,
np.int8 : matlab.int8,
np.int16 : matlab.int16,
np.int32 : matlab.int32,
np.int64 : matlab.int64,
... | [
"zhaoyan1117@gmail.com"
] | zhaoyan1117@gmail.com |
0621cbacb224ab970a3753ac1d351ec2940412cb | 94f858fab9c6330b09d52f45ddcfd0e780edc933 | /app/recipe/tests/test_recipe_api.py | e7492b638608a36c955173f42200c0285ea75e38 | [
"MIT"
] | permissive | seiyoung-lee/recipe-app-api | 2c0378a1d86bea6235f85de767fbe058b73b41ee | b8f1b67fb974c89082ed57467fa16c98d95e22d1 | refs/heads/master | 2023-01-01T11:25:09.958388 | 2020-10-26T20:25:55 | 2020-10-26T20:25:55 | 300,089,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,946 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
import tempfile
import os
from PIL import Image
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Recipe, Tag, Ingredient
from recipe.serializers import R... | [
"ubcmush99@gmail.com"
] | ubcmush99@gmail.com |
338ec76574593aed13651ef6310c61f6adf6b402 | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/event-streams-topic/python/pulumi_pulumi_kubernetes_crds_operators_event_streams_topic/ibmcloud/v1alpha1/__init__.py | 9458a57666f52f92f605cc86a3b2b97da3b2dd93 | [
"Apache-2.0"
] | permissive | isabella232/pulumi-kubernetes-crds | 777e78137aaf6525a44b61a02dccf91bf0d87a14 | 372c4c0182f6b899af82d6edaad521aa14f22150 | refs/heads/master | 2023-03-15T04:29:16.039753 | 2020-12-30T19:35:54 | 2020-12-30T19:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from .Topic import *
from ._inputs import *
from . import outputs
| [
"albertzhong0@gmail.com"
] | albertzhong0@gmail.com |
98d6a489ca61a7f75033d94a82b0d5cca36f5b80 | cf35959df7e022a6c064bf7016de54adf9a458ca | /teamtechkenya/settings.py | f515c219063e248e18c479995494aeaba1cfc204 | [] | no_license | benstarke/teamtechkenya | 51ea73572b5da22907aafe8b7385106fe46227da | 4377801f31da3216a76ed787744131e758fc4839 | refs/heads/master | 2023-02-08T23:17:37.513410 | 2020-12-29T01:42:00 | 2020-12-29T01:42:00 | 325,156,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,498 | py | """
Django settings for teamtechkenya project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"omubenkk@gmail.com"
] | omubenkk@gmail.com |
4f32a9ced516a932e313f38327fc7409b462ff12 | 38888910e312792a5a253237bc679e3158cdd35f | /download_from_s3.py | e603501cd5da5304371125e3c546fb9d9d4909f8 | [] | no_license | rahulagarwalji/Spark | 7fa2e17c4edfcbd17e2d48a92eb7ef9cc256f64b | af807677c12a02346b73978a9adc1f1349be8573 | refs/heads/master | 2020-04-14T00:35:13.177420 | 2018-12-29T20:34:30 | 2018-12-29T20:34:30 | 163,536,863 | 0 | 0 | null | 2018-12-29T20:34:31 | 2018-12-29T19:47:50 | Python | UTF-8 | Python | false | false | 263 | py | bucketName = "Your S3 BucketName"
Key = "Original Name and type of the file you want to upload into s3"
outPutname = "Output file name(The name you want to give to the file after we upload to s3)"
s3 = boto3.client('s3')
s3.upload_file(Key,bucketName,outPutname) | [
"rahulagarwalji@gmail.com"
] | rahulagarwalji@gmail.com |
6883c286e48fb50a63222ad311c9084efdbad27f | a0fd9f3f055961e34dd60647c32d32a50f005906 | /tests/test_trending.py | 9448b8cc256e06dd1287d011c6fe94f0d05d1f88 | [] | no_license | EvgeniyGerasimov/MsAppTest | 4efd83b3aa5e296864002743bc9ed2a31b430f6b | bba71bd55157a1d66783d75feb9d0050365d0146 | refs/heads/master | 2020-05-09T23:20:58.748499 | 2019-05-07T12:57:44 | 2019-05-07T12:57:44 | 181,498,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from data.methods import Methods
from data import request_body
from jsonschema import validate
from data.json_shemas import trending_latest_shema
class TestTrending:
def test_trending_latest(self):
response = Methods.post('/trending/latest/', request_body.TRENDING_LATEST, Methods.headers)
assert ... | [
"evgeniy.gerasimov@motorsport.com"
] | evgeniy.gerasimov@motorsport.com |
c690aa52abea32c62dea45370e45a970be5db3d3 | 172f7535541c0920f48017d170f841b258f4c5e4 | /simulating_annealing.py | cbb61105b26093d024e60cfcea444fcd8e954a0c | [
"MIT"
] | permissive | chinaver2002/2D-Irregular-Packing-Algorithm | ca742050c90e9807f4c510a36a1b4f4bacce1d35 | cc10edff2bc2631fcbcb47acf7bb3215e5c5023c | refs/heads/master | 2023-07-09T05:27:48.482900 | 2021-03-10T14:04:29 | 2021-03-10T14:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,475 | py | import numpy as np, random, operator, pandas as pd, matplotlib.pyplot as plt
from tools.geofunc import GeoFunc
from tools.show import PltFunc
from tools.nfp import NFP
from tools.data import getData
from tools.packing import PackingUtil,NFPAssistant,PolyListProcessor,Poly
from heuristic import TOPOS,BottomLeftFill
impo... | [
"32950943+seanys@users.noreply.github.com"
] | 32950943+seanys@users.noreply.github.com |
7733f55151a6fc96b193508c48486be8f74d5660 | c6d0baf262602dabfafeaf7f2706e75e76c5b0c0 | /DASHBOARD/dashboard/urls.py | 3e0e519e285efdb6831448d22a583cf11f92a91b | [] | no_license | wdchild/insight_DE_project | 0a53420592b60a808bb34aba3edd50db04afb32a | 6f0af4afa85c658435b30d0dc89315bfb592c5c7 | refs/heads/master | 2021-07-18T16:16:13.881057 | 2017-10-23T15:52:32 | 2017-10-23T15:52:32 | 105,242,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | """dashboard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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-... | [
"wdchild@gmail.com"
] | wdchild@gmail.com |
a278c7098aa1dde205e8c07713baae7a43f08b19 | 3279e683eb404611da578d62ad7086dcde7d6bed | /src/the_tale/the_tale/linguistics/lexicon/relations.py | ff25b7998c8627c61b303cd66b1d92dda2c322b3 | [
"BSD-2-Clause-Views"
] | permissive | he1mdallr/the-tale | 257ac5745679ead6d95281dca2fddd2381187950 | b8a189703a7d0776b95621f2e00071b41459ae6f | refs/heads/master | 2021-01-19T00:18:55.775838 | 2017-03-25T11:15:38 | 2017-03-25T11:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,057 | py | # coding: utf-8
from rels import Column
from rels.django import DjangoEnum
from utg import words as utg_words
from utg import constructors as utg_constructors
from utg.relations import WORD_TYPE
from the_tale.linguistics import relations
def preprocess_s(row):
return [var if isinstance(var, tuple) else (var, '... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
1551ab1e2a47ce675db8e20c4ba4a4daf9d2963b | 721df1d44078b81ec752f57c2b3d6ff45aa657f7 | /usr/share/pyshared/passlib/ext/django/utils.py | f44f95d9e6d027df28937b20c5d45366e1eac8ca | [] | no_license | Mashpy/ajenti_track | f1fe9c7f77cfa48063e546665ea16a7a2b3f3566 | 4bb45c15d4b4c14928234ba82b61a9243c5914a3 | refs/heads/master | 2022-12-24T03:50:42.232380 | 2016-09-10T07:55:48 | 2016-09-10T07:55:48 | 67,797,197 | 0 | 2 | null | 2022-12-13T05:13:18 | 2016-09-09T12:30:55 | C | UTF-8 | Python | false | false | 8,292 | py | """passlib.ext.django.utils - helper functions for patching Django hashing
.. warning::
This code is experimental and subject to change,
and not officially documented in Passlib just yet
(though it should work).
"""
#===================================================================
#imports
#===========... | [
"root@ip-172-31-23-55.us-west-2.compute.internal"
] | root@ip-172-31-23-55.us-west-2.compute.internal |
736eeaec4f81f0588d349ab5d03f0d73f1186438 | 1f290bd29534a719ed94d30eea6a9bff241908af | /H-Index II.py | 59f699c095678803f098759831f2469c48fdc3fa | [] | no_license | nan0445/Leetcode-Python | 3a838a9178cd86220ace85da2d6a8b084975552d | bccd0f6ebb00e9569093f8ec18ebf0e94035dce6 | refs/heads/master | 2020-03-18T18:19:19.010566 | 2018-08-11T02:17:36 | 2018-08-11T02:17:36 | 135,084,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | class Solution:
def hIndex(self, citations):
"""
:type citations: List[int]
:rtype: int
"""
if not citations: return 0
n = len(citations)
l, r = 0, n - 1
res = 0
while l<r:
mid = (l + r) // 2
if citations[mid] > n - mid ... | [
"noreply@github.com"
] | noreply@github.com |
5d8b3e9db0e0388c172e5f0d7329cb8741afabb9 | e56f6de4a6ef3970e146870ec1743bf6aa7c0687 | /randomWalk3D.py | ac9702b59f2c094081533e94e1d3800d4ca79aa6 | [] | no_license | CodeProgress/DataAnalysis | 0bbcb0155351a9c9893079436739afa67653e641 | ce98b3c10fb719a047ffeedc34b16858687b7e1f | refs/heads/master | 2021-12-31T19:33:38.386511 | 2021-12-30T18:04:38 | 2021-12-30T18:04:38 | 12,932,358 | 0 | 0 | null | 2014-01-31T17:14:52 | 2013-09-18T19:21:11 | Python | UTF-8 | Python | false | false | 2,118 | py | import pylab
import random
import numpy
from mpl_toolkits.mplot3d import Axes3D
# adapted from stackoverflow.com/questions/34920680/plotting-3d-random-walk-in-py
# Random next step functions:
def random_single_step_in_one_direction(current_coordinate):
next_random_coordinate = current_coordinate[:]
axis... | [
"codeprogress1@gmail.com"
] | codeprogress1@gmail.com |
1886fb79eeea3bfc1b1152d1c203a4202a8e77b2 | e3fcacbd159a4df2ca398251ee4f3310860a8ec2 | /simple_dhcp_parser/add_data.py | 2c719429a9abe60e3aff2a68b6088ebf342a7539 | [] | no_license | DmitriyPanteleev/my-network-automation | 51f1270ff82008e7f1d484150a13db7551c1ff62 | 21c6b92942c8224b10214f7d4e3f2705db866c1c | refs/heads/master | 2023-02-10T10:22:25.153808 | 2021-01-08T10:25:18 | 2021-01-08T10:25:18 | 299,320,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | #!/usr/bin/env python
import sqlite3
import glob
import os
import re
def add_dhcpdb(db_filename, dhcp_snoop_files):
db_exists = os.path.exists(db_filename)
if db_exists:
# Prepare DHCP date to insert
data_filename = 'dhcp_snooping.txt'
regex1 = re.compile('(\S+) +(\S+) +\d+ +\S+ +(\d+) +(\S+)')... | [
"pant-dm@yandex.ru"
] | pant-dm@yandex.ru |
2b761147307f51614108674d9e661f853cff2829 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_083/ch36_2020_04_06_19_28_04_107585.py | 23d50e7f2390a698610ad478d5694904adc497aa | [] | 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 | 95 | py | def fatorial(x):
y=1
f=1
for i in range y :
y=y*f
f+=1
return y | [
"you@example.com"
] | you@example.com |
eeeb19816a0b7b18317d30186d28f317cad6e170 | 37d7f7fdf6a1d2e1e0c4fc2730ad696a06c00350 | /tethysapp/gfs/ajax.py | 16ec9030e8e4a46b3d6b948f4f9052b5dea234c6 | [
"BSD-3-Clause"
] | permissive | rileyhales/gfs | d2f32f254ef306c8a8ffb79945efd32043f9007f | 01fbe596bc1423b5a54485d17f5ca1b664cca5df | refs/heads/master | 2021-07-10T03:30:56.575041 | 2020-08-13T20:25:24 | 2020-08-13T20:25:24 | 188,119,025 | 1 | 3 | BSD-3-Clause | 2019-10-14T21:22:23 | 2019-05-22T21:55:41 | Python | UTF-8 | Python | false | false | 3,409 | py | import ast
import subprocess
import os
import zipfile
import shutil
import json
from django.http import JsonResponse
from .charts import newchart
from .options import variable_levels
from .app import Gfs as App
def getchart(request):
"""
Used to make a timeseries of a variable at a user drawn point
Depe... | [
"rileyhales1@gmail.com"
] | rileyhales1@gmail.com |
47a24c6afe341ca93d841b75a60d8150f7fb83c9 | 6064f76c2afa9157bde80c4755247bc2461e3413 | /backend/predict.py | 8a6014cdb0d3de7624a316d5211adf9c7fb37231 | [
"Apache-2.0"
] | permissive | chenyicai-0611/YOLOX-Flask-deployment | cbde3e7091339b958dbcd8f00e480982d74cfd1b | 14b0679eadbd1ffac60a4355c9e7db948d595946 | refs/heads/master | 2023-07-18T22:12:46.723193 | 2021-09-20T09:25:03 | 2021-09-20T09:25:03 | 408,381,058 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,908 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Copyright (c) Megvii, Inc. and its affiliates.
#import argparse
import os
import time
from loguru import logger
import cv2
import torch
import json
from pathlib import Path
from yolox.data.data_augment import ValTransform
from yolox.data.datasets import COCO_CLASSES
fr... | [
"cyc18731318@163.com"
] | cyc18731318@163.com |
96a28ef7635dd6dceeee5476301269b160731364 | 4da91b25e97a96cb64df9c7a79749e233d6f872b | /exe1/configs.py | a800691bbd58ff547605b0cae25e942811829811 | [] | no_license | Forsworns/DataScienceExe | b38950b0a9216c7689c3e438f3f9df8b4123526a | e740208baf892a503aa8521c5a75ec6ff9b4f319 | refs/heads/master | 2020-04-28T05:46:00.411964 | 2019-06-14T15:41:13 | 2019-06-14T15:41:13 | 175,032,336 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | import numpy as np
# file type
MODEL = "models"
RESULT = "results"
# models
BASELINE = "SVC_baseline"
COMPARE = "SVC_compare"
GA = "genetic_algorithm"
B_VT = "backward_variance_threshold"
F_UF = "forward_univariable_feature"
B_SFM = "backward_select_from_model"
AUC = "AUC_ROC"
# test train split
TEST_SIZE = 0.4
# st... | [
"378974295@qq.com"
] | 378974295@qq.com |
34683804eaaf07ba99bc95b0ff05393eefa39a69 | 9cb1fbbe0648bf95791097be473f0f8d79bcff8b | /python/02-optimize/solutionNumber.py | 1455f6fac21d0431e19b696645dc58dd67f1f3e6 | [] | no_license | yushichenchen/ai | ae4b06e616ccb9e648debeb2df07331ca3bfe9ad | a16d11739add623635623f498e73fdb8e946ee68 | refs/heads/master | 2020-08-01T10:23:04.694490 | 2019-09-24T01:27:59 | 2019-09-24T01:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from py6.ai import hillClimbing # 引入解答類別
from py6.ai.solution import Solution
import random
class SolutionNumber(Solution):
def neighbor(self): # 單變數解答的鄰居函數。
x = self.v
dx= self.step # x:解答 , dx : 移動步伐大小
xnew = x+dx if random.random() > 0.5 else x-dx # 用亂數決定向左或向右移動
return SolutionNumber(xnew... | [
"ccckmit@gmail.com"
] | ccckmit@gmail.com |
fb8ee56077b4d787242d44096608f92e32ed4620 | 999b71bff0f28584fbaefb7f7e5c4c7b45fda8fc | /guess_the_number.py | 37166c031b1bf75f86a742dc9ca58cb64563112e | [] | no_license | fg2srt4/simple_projects | 28526285368ed688864e9c55a6633fed48a072c3 | b87abc1287d78b0139ec2264932d93f8433b8d52 | refs/heads/master | 2020-06-03T21:48:45.752899 | 2019-06-13T10:50:13 | 2019-06-13T10:50:13 | 191,744,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | import random
# step 1, generate the random number
def answer():
answer = random.randint(0, 100)
return answer
# step 2, get user's name
def intro():
print("Hello, welcome to the number guessing game.")
print("What is your name? ")
name = str(input('Name: '))
return name
# f... | [
"noreply@github.com"
] | noreply@github.com |
351ec4d03245adece117f9bd9e1afb304357a4bb | 9947f5315175584c049d3690da3bd3b695c959a2 | /ch-08-recursion-and-dynamic-programming/12-eight-queens.py | 5c3b43beebfce00f462bb972267c7554a6c5dc0d | [] | no_license | GeorgeUofT/ctci-questions | 3c32a2af59f980ee952386e3784fa6cb1e88ea56 | 99f65e56592b2e709984c85401a2faf8d01e620e | refs/heads/master | 2021-05-04T05:51:02.011012 | 2018-02-05T19:41:29 | 2018-02-05T19:41:29 | 120,345,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # Find all arrangements of eight queens on a chess board that cannot attack
# each other.
| [
"greg@whatcode.net"
] | greg@whatcode.net |
11c39843ae18bd1afb9095e44a9148f9b8f92fe9 | 034213d82aaea5e0f050619f7de9fc2ec07bf733 | /mtfl_train_validation.py | d55cdc55ee29814350da7198a9d3399c5fcb5a26 | [] | no_license | pinareceaktan/multi-task-feature-learning | 79ca7e3ea6577e6f49a0544900def14814d08a70 | aa58db086fcd451f09b43d591633f07a0bdf0a12 | refs/heads/master | 2020-03-27T11:00:12.241060 | 2018-08-28T15:21:43 | 2018-08-28T15:21:43 | 146,458,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from datetime import datetime
import time
import os
import tensorflow as tf
import mtfl
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_string('train_dir', os.path.join(os.getcwd(), 'mtfl_train_log'),
... | [
"pinareceaktan@gmail.com"
] | pinareceaktan@gmail.com |
fdb1e050229baa7099131fd35dee8b48df550969 | 2fa4f67427385b0c23726492f18f481eb7843c3b | /doc/conf.py | e4b5edd231ffab0233aacda9703034b4f3bc6cef | [] | no_license | Kristoffernegendahl/python-geometry | 81fbe698506053b38320d327e66bfd07e5f49b14 | c52a6631bb139e401929484e0a55c4e26ff0950f | refs/heads/master | 2021-01-18T04:57:54.530085 | 2012-05-30T06:57:11 | 2012-05-30T06:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,957 | py | # -*- coding: utf-8 -*-
#
# .. documentation build configuration file, created by
# sphinx-quickstart on Wed May 30 07:42:49 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All conf... | [
"benjamin.j.golder@gmail.com"
] | benjamin.j.golder@gmail.com |
f65fc68cd94ac9f7c2a13ae383648493d8c9d035 | f8972963bc77887221f900209b417915c7920747 | /venv/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg/pip/_internal/utils/outdated.py | cb7414bff76277d16b6f2c8d8a9dead9decbc684 | [] | no_license | patilmanojk/UpGradProHackathonTeamTechPals | 3b35a9eaa9fb84ccd3579bd938c240169412da34 | 6bedd9e997089c5ca47709e072f6651b89faafa3 | refs/heads/master | 2020-07-28T05:51:40.672852 | 2019-09-26T19:24:45 | 2019-09-26T19:24:45 | 209,329,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,949 | py | from __future__ import absolute_import
import datetime
import json
import logging
import os.path
import sys
from pip._internal.compat import WINDOWS
from pip._internal.index import PackageFinder
from pip._internal.locations import USER_CACHE_DIR, running_under_virtualenv
from pip._internal.utils.filesystem... | [
"patilmanojk@gmail.com"
] | patilmanojk@gmail.com |
401386e312f7415fd6e410ea079cd4611ff15519 | f88ce8ed603fba2428706332bb2263bf3832a6f7 | /models/base_model.py | 01bbeca20ab96f55f2fd8461da23ce1b9c5b024e | [] | no_license | MahdiehNejati/MetaLearning-TF2.0 | 3b01c8dca60101ca4ef652a798aa8c504e73c854 | 87c4d5a09ab971c6520655aea99f8688c2964994 | refs/heads/master | 2023-03-04T13:54:51.318994 | 2021-02-18T17:25:59 | 2021-02-18T17:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,834 | py | import os
import sys
from abc import abstractmethod
import json
import tensorflow as tf
import numpy as np
from tqdm import tqdm
import settings
from utils import combine_first_two_axes, keep_keys_with_greater_than_equal_k_items
class SetupCaller(type):
def __call__(cls, *args, **kwargs):
obj = type.__c... | [
"siavash.khodadadeh@gmail.com"
] | siavash.khodadadeh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.