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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e7f0b264959e12721da8946df1b7451fb442b0a | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/histogram/marker/_showscale.py | 9ae878dd8c435f88b4a47da9bbee1a5d4207006c | [
"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 | 451 | py | import _plotly_utils.basevalidators
class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self,
plotly_name='showscale',
parent_name='histogram.marker',
**kwargs
):
super(ShowscaleValidator, self).__init__(
plotly_name=plotl... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
38d7a85500b2bafd860e807a46b3baa9a9b67ed5 | 6250be4dcf519d0f0b152b10a641b2d12a35c53f | /모두의 파이썬/09B-walk2.py | d4d4e3deb14c67dd29c705c8b12e322122bfcb15 | [] | no_license | heechul90/study-python-basic-2 | babd01f6a7c2b1fbed4aa31030bb40128960a989 | 94780478e59dfc998baa6e3069ab2473c5df74db | refs/heads/master | 2022-10-27T14:44:00.688509 | 2022-10-24T10:55:33 | 2022-10-24T10:55:33 | 196,142,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # 마음대로 걷는 거북이2
import turtle as t
import random
t.shape("turtle") # ‘거북이’모양의 거북이 그래픽을 사용합니다.
t.speed(0)
for x in range(500): # 거북이를 500번 움직입니다.
a = random.randint(1, 360) # 1~360 사이의 아무 수나 골라 a에 저장합니다.
t.setheading(a) # a 각도로 거북이의 방향을 돌립니다.
b = random.... | [
"heechul4296@gmail.com"
] | heechul4296@gmail.com |
897865636e0146212d66ac2daf1a4de0fd3a642f | c80dff81cfec241e6baac8d7211ac16a969d28a4 | /Fitting/gaussian.py | 138544e57dcef5f40cb42915f41608b1afe6e8d2 | [] | no_license | Silentsoul04/PythonCode | 0043354002b3117f7c2b69a52ca14e664f978576 | c7301fb7983edbe3492e7d78d531ba2f427d2f3e | refs/heads/master | 2023-01-27T14:26:07.609433 | 2020-12-11T20:23:48 | 2020-12-11T20:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 7 17:30:06 2014
@author: rhf
- Gaussian distribution
- histogram
- fit of the histogram
- smooth of the plot
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from scipy.interpolate import spline
# Define some test data whic... | [
"ricleal@gmail.com"
] | ricleal@gmail.com |
bef4645a495593d7e79910acfbbbf98082fabfe9 | ec53949dafa4b6ad675d679b05ed7c83fef2c69a | /DataStructuresAndAlgo/InterviewQuestions/ValidateBST.py | 3108de4956d06bb38f0473cbf994c5b1572e2a3d | [] | no_license | tpotjj/Python | 9a5a20a53cd7a6ec14386c1db8ce155e0fc9ab8a | ca73c116ada4d05c0c565508163557744c86fc76 | refs/heads/master | 2023-07-11T16:37:10.039522 | 2021-08-14T11:17:55 | 2021-08-14T11:17:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | class TreeNode:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def helper(node, minValue = float('-inf'), maxValue = float('inf')):
if not node:
return True
val = node.value
if val <= minValue or val >= maxValue:
return False
... | [
"joris97jansen@gmail.com"
] | joris97jansen@gmail.com |
68d13a2a50ef4b39ae111b75a765b6bc473dd10c | 2c4efe2ce49a900c68348f50e71802994c84900a | /braindecode/braindecode/venv1/Lib/site-packages/numba/cuda/tests/cudapy/test_forall.py | f6d600d8bb11534ddaaad7b10be0bc1287032cde | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sisi2/Masterthesis | b508632526e82b23c2efb34729141bfdae078fa0 | 7ce17644af47db4ad62764ed062840a10afe714d | refs/heads/master | 2022-11-19T15:21:28.272824 | 2018-08-13T15:02:20 | 2018-08-13T15:02:20 | 131,345,102 | 2 | 1 | null | 2022-11-15T14:08:07 | 2018-04-27T21:09:21 | Python | UTF-8 | Python | false | false | 1,123 | py | from __future__ import print_function, absolute_import
import numpy as np
from numba import cuda
import numba.unittest_support as unittest
from numba.cuda.testing import skip_on_cudasim, SerialMixin
@skip_on_cudasim('forall API unsupported in the simulator')
class TestForAll(SerialMixin, unittest.TestCase):... | [
"dansyefila@gmail.com"
] | dansyefila@gmail.com |
52ae38711097f2236ddfae0e9e374633a596c0bd | a64b8fc6c9e81d433878009249fe9c9a109a602c | /core/confdb/syntax/meta/interfaces.py | a55f214f6c750f612e2563ff8dd20d85ccb8d42d | [
"BSD-3-Clause"
] | permissive | ewwwcha/noc | d1de6fe1d556e0f14a0dd31c600844cf43c96728 | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | refs/heads/master | 2020-07-29T10:10:30.862660 | 2019-09-20T07:54:52 | 2019-09-20T07:54:52 | 209,755,887 | 1 | 0 | NOASSERTION | 2019-09-20T09:36:22 | 2019-09-20T09:36:22 | null | UTF-8 | Python | false | false | 5,016 | py | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# ConfDB interfaces X meta syntax
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
1dc9756617bc7606a3e5f69b72ea4f6279f1e493 | 43b36890c037da0f8a1ee4c6f03349c5e70b6333 | /modules/ieee/doc/next.py | c6c4b76a779cc42c762ff8aae6a23a7b615c2e7c | [
"BSL-1.0"
] | permissive | msuchard/nt2 | 3a07decd8d184e3067452bc7f075e392c7bacc03 | 082d79abd069f4c356bfe10fd113de024f90a5f8 | refs/heads/master | 2021-01-18T12:29:32.075028 | 2011-11-15T23:18:23 | 2011-11-15T23:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | [ ## this file was manually modified by jt
{
'functor' : {
'arity' : '1',
'call_types' : [],
'ret_arity' : '0',
'rturn' : {
'default' : 'T',
},
'simd_types' : ['real_'],
'type_defs' : [],
'types' : ['real_', 'unsigned_int_'... | [
"jtlapreste@gmail.com"
] | jtlapreste@gmail.com |
d8b7625ba76b77d1482fe1ee3866c6c8f7ec0a41 | 3d6a348d703bcef1ff0b11f340a9b63f4ffec534 | /app/__init__.py | 200cd3e2f574bb9f57b349ec8c5a9a9a836cde1a | [] | no_license | Boomatang/Clue | 717fed577c15203e8a86de2da96650d46170cc03 | 1b397b815d20c87bf1a0935f6c3f0502ceaddf6e | refs/heads/master | 2021-05-09T10:48:04.036476 | 2019-09-02T17:41:37 | 2019-09-02T17:41:37 | 118,974,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from app.utils import logger
from config import config
from flask_login import LoginManager
from flask_mail import Mail
bootstrap = Bootstrap()
db = SQLAlchemy()
mail = Mail()
login_manager = LoginManager()
login_man... | [
"jimfity@gmail.com"
] | jimfity@gmail.com |
629a0a7c039064ace700531452345db4a512f867 | f654f5f07dd8109c0ee31ba89dd4804e6b288343 | /src/test/config/sections/brain/test_oob.py | bde9b4d6a7293565166e49830fe171d49a3fb640 | [
"MIT"
] | permissive | sprinteroz/program-y | 3d1f5f28e4f3be770705d4bef15410b8b78f19da | 454c6bde225dce7c3fb01c549d46249248caf7b5 | refs/heads/master | 2021-01-19T16:05:25.636700 | 2017-08-22T03:56:33 | 2017-08-22T03:56:33 | 100,986,551 | 1 | 0 | null | 2017-08-21T19:43:43 | 2017-08-21T19:43:43 | null | UTF-8 | Python | false | false | 1,628 | py | import unittest
from programy.config.file.yaml_file import YamlConfigurationFile
from programy.config.sections.brain.oob import BrainOOBConfiguration
from programy.config.sections.client.console import ConsoleConfiguration
class BrainOOBConfigurationTests(unittest.TestCase):
def test_oob_with_data(self):
... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
15364f7c33c0d232d41563d89fefbb13af61eba3 | bd9f8187b7821b2e6ffd949386b791f264a7ccab | /adam.py | 8ac53ebe61738f4f6d795a3b2d41cf4a933fbc85 | [] | no_license | LeonKennedy/qkids | 353786666536a745d6ecdc75b70be0ff988580a3 | d7c8bdea4d6ccd257750e05fb113d2f39622ff0e | refs/heads/master | 2020-03-17T13:41:32.466438 | 2018-11-25T12:25:21 | 2018-11-25T12:25:21 | 133,641,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# @Filename: adma.py
# @Author: olenji - lionhe0119@hotmail.com
# @Description: COO 所需数据
# @Create: 2018-11-25 19:00:56
# @Last Modified: 2018-11-25 19:00:56
#
from LocalDatabase import get_schedule_connection, get_product_connection
import pandas as pd
import pdb
class M1:... | [
"lionhe0119@hotmail.com"
] | lionhe0119@hotmail.com |
fd801218ea84ab029a1a97a8ee592cf3140712b6 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/16/31/0.py | b3e9c53ea22fc72878d34f6b44630978001fd602 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | from sys import stdin
def getint():
return int(stdin.readline())
def getints():
return tuple(int(z) for z in stdin.readline().split())
for cn in xrange(1,1 + getint()):
n = getint()
ps = getints()
m1 = max((ps[i],i) for i in xrange(n))[1]
m2 = max((ps[i],i) for i in xrange(n) if i... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
98201188154bbccad11c7feb8172dedeb36eaaed | e6cb78ce3575334a8dbc871371c04572ba47f20f | /0x01-python-if_else_loops_functions/101-remove_char_at.py | faf681782e69b2a646f204769c4488356fad4753 | [] | no_license | SoniaChevli/holbertonschool-higher_level_programming | c781903157136a550b151cac7975ac54015f4e45 | 0c210f6d18781bfe10fb8c87da7cc7177e58f46e | refs/heads/master | 2020-03-09T13:07:48.416175 | 2018-09-07T18:09:16 | 2018-09-07T18:09:16 | 128,802,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/usr/bin/python3
def remove_char_at(str, n):
copy = ''
for x in range(len(str)):
if (x != n):
copy += str[x]
return copy
| [
"you@example.com"
] | you@example.com |
60096a85f40d711369a08c7b1b86636e2e7a41d9 | 13a66c5a9ff2490ee747a22dc6d264d7d5899278 | /scripts/app_client.py | 8a9b78ee34fb69a119e5d89e237e33ea6132f9da | [] | no_license | sandhyazdodiya/pure_django_api_vs_drf | 4b39e7974eb23baad3609c148b7983ed9b91e39d | 4d59f5072bad988a20b6185e8e0672dbf7179109 | refs/heads/main | 2023-02-05T10:49:22.088156 | 2020-12-31T12:42:01 | 2020-12-31T12:42:01 | 322,474,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import requests
import json
import MySQLdb
BASE_URL = "http://127.0.0.1:8000/"
ENDPOINT = "api/updates/"
def get_list():
r = requests.get(BASE_URL+ENDPOINT) # Get list
print(r.status_code)
data = r.json()
for obj in data:
if obj['id'] ==1:
r2 = requests.get(BASE_URL+ENDPOINT+str... | [
"you@example.com"
] | you@example.com |
8d653e447ccd1bbc5219799f747b89e50269d731 | b988ae0baa8c6a8098fadbe96a8a4ba7a0016f36 | /social/backends/live.py | 2884438fbc0955e10b4cfc8bc8c723ec050ee504 | [
"Python-2.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | stephenmcd/python-social-auth | 6cedefa282975ce6043632f8272c527cc738abdd | f70500ad966887a793ea17ed7b794e5526f828f1 | refs/heads/master | 2021-01-21T08:51:52.779136 | 2013-12-03T10:28:38 | 2013-12-03T10:28:38 | 14,885,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | """
Live OAuth2 backend, docs at:
http://psa.matiasaguirre.net/docs/backends/live.html
"""
from social.backends.oauth import BaseOAuth2
class LiveOAuth2(BaseOAuth2):
name = 'live'
AUTHORIZATION_URL = 'https://login.live.com/oauth20_authorize.srf'
ACCESS_TOKEN_URL = 'https://login.live.com/oauth20_toke... | [
"matiasaguirre@gmail.com"
] | matiasaguirre@gmail.com |
2631a8e662e432ab59e792b069be027fbf8dd507 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/bar/_constraintext.py | 930b959ee4bb09faf0e0d0634c33bccb98c98747 | [
"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 | 487 | py | import _plotly_utils.basevalidators
class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name='constraintext', parent_name='bar', **kwargs
):
super(ConstraintextValidator, self).__init__(
plotly_name=plotly_name,
pa... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
b9ceed3c8c034db5703e61e8a45a35719069f193 | 60d5ea4f007d49768d250ef394003f554003e4d0 | /python/Backtracking/051.N-Queens.py | ee7c4ab3c9a52e343f670af51f54f6fa41acebf8 | [] | no_license | EvanJamesMG/Leetcode | dd7771beb119ea1250dbb3b147a09053298cd63b | fa638c7fda3802e9f4e0751a2c4c084edf09a441 | refs/heads/master | 2021-01-10T17:11:10.896393 | 2017-12-01T16:04:44 | 2017-12-01T16:04:44 | 46,968,756 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,899 | py | /*
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solutions to the n-queens puzzle.
Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.' both indicate a queen ... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
9c24ec6281f68a5650163c101e90e9fc247a1dcf | 33edba95f6313b2f5003d5973a37ac1e5988442f | /src/users/SConstruct | 9b1f195bae06f126f6515df699eb7be726cced63 | [] | no_license | faustus123/bdxReco | 25a8883eb23f8bb6ee7f76050141fcc5ca8add79 | c173906d248146df3279347d7ff8f60211b8b601 | refs/heads/master | 2020-12-24T12:40:05.523304 | 2016-02-03T16:07:52 | 2016-02-03T16:07:52 | 51,010,837 | 0 | 0 | null | 2016-02-03T16:07:53 | 2016-02-03T15:56:13 | C++ | UTF-8 | Python | false | false | 565 | from utils import *
Import('env')
users_names = getSubdirs('./')
for user in users_names :
plugins = getSubdirs(str(user))
for plugin in plugins:
print bcolors.OKGREEN,"Found plugin ",plugin," for user ",user,bcolors.ENDC
#We do not want to increment "at libitum" CPPPATH
tmp_cpppath=env['CPPPATH'];
dir = s... | [
"andrea.celentano@ge.infn.it"
] | andrea.celentano@ge.infn.it | |
80c552dd0deb638466da67214246f640e2852f73 | 1d7eec692553afc411ec1e7325634f71a2aed291 | /backend/core/apps.py | 348e92f897b24984f69c0822f7848e13ccd76b1e | [] | no_license | Andy-Nkumane/Tilde | a41a2a65b3901b92263ae94d527de403f59a5caf | 80de97edaf99f4831ca8cb989b93e3be5e09fdd6 | refs/heads/develop | 2023-05-09T10:02:41.240517 | 2021-05-28T09:20:51 | 2021-05-28T09:20:51 | 299,501,586 | 0 | 0 | null | 2020-10-25T22:37:30 | 2020-09-29T04:10:48 | Python | UTF-8 | Python | false | false | 164 | py | from django.apps import AppConfig
class CoreConfig(AppConfig):
name = "core"
def ready(self):
# register the signals
import core.signals
| [
"sheena.oconnell@gmail.com"
] | sheena.oconnell@gmail.com |
5c0cb0db96cc9683da39a17d57d2fd157c236521 | 050be63ad4e88890954756fd1a06f93a7993f732 | /backend/lizz_jun18_mob4_dev_6256/wsgi.py | f43e047ac58a377ae0ced3d71b1e6d9d63b0bcea | [] | no_license | crowdbotics-apps/lizz-jun18-mob4-dev-6256 | 46cb7ed037b5e223b151e799db3aa2891257f407 | 4a889dc560f2d463e437978d665d0b00a7b4c87f | refs/heads/master | 2022-11-04T23:40:05.810141 | 2020-06-19T00:15:09 | 2020-06-19T00:15:09 | 273,366,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | """
WSGI config for lizz_jun18_mob4_dev_6256 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.setdefa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
faf352b930625907a784008bebc86e45147b6b82 | 0ca21d1d60bb9dbe70fb55b7ebace0510695d489 | /examples/youtube_banner.py | 5c280f0137305a832cf9912b4b0e9c0d10e8f3f5 | [
"Apache-2.0"
] | permissive | colinmford/coldtype | fa5cc65ac318ee22138857ea60d964ca4ecb8267 | 8462dbd5f65f3ef8f3cbc8662a866b7e20ec5985 | refs/heads/main | 2023-07-02T12:34:18.700566 | 2021-08-06T03:40:21 | 2021-08-06T03:40:21 | 393,237,997 | 0 | 0 | Apache-2.0 | 2021-08-06T03:35:41 | 2021-08-06T03:35:40 | null | UTF-8 | Python | false | false | 534 | py | from coldtype import *
from coldtype.fx.skia import phototype
obv = Font.Cacheable("assets/ColdtypeObviously-VF.ttf")
logos = raw_ufo("assets/logos.ufo")
@renderable((2048, 1152))
def banner(r):
return (DATPens([
DATPen().rect(r).f(hsl(0.65)),
(StyledString("COLDTYPE",
Style(obv, 300, ... | [
"rob.stenson@gmail.com"
] | rob.stenson@gmail.com |
b0b33db89eb9adc6024895b5acb3afee09f7ccec | 3bbdcdfa6ee6631bea52dd651914cb898062b870 | /base_standard_profiler/cprofile_basemark4.py | d2538ef458d9e697088f2c64b1f273964a85926a | [] | no_license | xiaoyeren/python_high_performance | 55ea5ee9f628e1c1155a6946274c862bda57ae2c | 496a5e55e7f40033c80e9ee3b9190c184d4701d9 | refs/heads/master | 2020-05-24T15:20:00.576786 | 2019-05-13T06:01:35 | 2019-05-13T06:01:35 | 187,329,222 | 1 | 0 | null | 2019-05-18T07:43:11 | 2019-05-18T07:43:11 | null | UTF-8 | Python | false | false | 1,653 | py | # -*- coding: utf-8 -*-
'''
Created on 2019年4月8日 下午9:21:00
Zhukun Luo
Jiangxi University of Finance and Economics
'''
#memory profiler
from app import ParticleSimulator,particle
from random import uniform
from memory_profiler import profile
import sys
def test_evolve():
particles=[particle(0.3,0.5,1),particle(0.0,-... | [
"luozhukun@163.com"
] | luozhukun@163.com |
afb1396453b05ec538e23fc9b5de341ed7ce174a | 6bd4eff3c0ca5b2dd575dbee2b0a02a898f642d6 | /爬虫代码/selenium_study/5.py | c2a473f4c6da7b44b74892a34249d1757934f0aa | [] | no_license | marvinlizhaorui/youshu | 620a9820c6bb4b4729b9a1cbccf4d426afde110e | bf62387ffe564668681b8a514b98d539b7290b4c | refs/heads/master | 2020-04-09T07:39:27.525808 | 2018-09-27T13:05:40 | 2018-09-27T13:05:40 | 160,164,943 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Created on 2018/7/6 17:32
# Project:
# @Author: ZQJ
# @Email : zihe@yscredit.com
#延时等待
#在selenium中,get()方法会在网页框架加载结束后结束执行,此时如果获取page-source,可能并不是浏览器完全加载完成的页面
#如果某些页面有额外的Ajax请求,我们在网页源代码中也不一定能获取的到,所以这里需要延时等待一段时间,确保节点已经加载出来了
from selenium import webdriver
#隐... | [
"30498473+zhaoqiji@users.noreply.github.com"
] | 30498473+zhaoqiji@users.noreply.github.com |
2404ebd5a62590faa092657e82cf1301d404f999 | 8db1b9528ace3ce142ea52da1017eb6359f46967 | /py1811/company/employees.py | 558c8b144ea76cb40a9f65e4fb51a1eb1e7a5345 | [] | no_license | ul8ksgdmy/myPythonlearning | 01fbd49d227e2b3095250e7ee40768fa3179f26e | 2ad0d3525cd505edba3fd37e21f601a32872259b | refs/heads/master | 2020-03-31T14:33:13.448891 | 2019-01-09T18:13:26 | 2019-01-09T18:13:26 | 152,299,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | class Staff:
def __init__(self, empid, name, deptname, gender, tech, age):
self.__empid = empid
self.__name = name
self.__deptname = deptname
self.__gender = gender
self.__tech = tech
self.__age = age
@property
def empid(self):
return self.__empid
... | [
"clickmy7@gmail.com"
] | clickmy7@gmail.com |
27952a77379562f88c4995946dc5c424979e9996 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/customerinsights/v20170101/hub.py | e8e2e5c389f8388281f251dbf8d15ef4de29ea61 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,944 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
3b67bff3e9866cdc68fd19f374d328849aa0c7eb | accb0a012d257731a98376cbc5a10a279c91cfbd | /euler/solutions/euler43.py | 998756e0b04353988b0b697948538ef291856916 | [] | no_license | Danang691/Euler.Py | d52ac436d399a46553be0d9bd24736477a3d2cb0 | f8a198f5b06fd55388e8833108fbeed11e9b8d8b | refs/heads/master | 2022-01-08T00:32:06.724008 | 2019-01-27T22:33:40 | 2019-01-27T22:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | # -*- coding: utf-8 -*-
from euler.baseeuler import BaseEuler
from itertools import permutations as perms
"""
1. there are only 3,628,800 (10!) 0 to 9 pandigital numbers, so there's no need
to examine all 10 billion 10-digit numbers.
2. consider only numbers whose last 3 digits divide by 17
3. now only check the ... | [
"jgorauskas@gmail.com"
] | jgorauskas@gmail.com |
a88d08e13d37cfdd2c1dc346f7a68574139545b7 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_202550.42+133040.7/sdB_SDSSJ_202550.42+133040.7_lc.py | 3380ae095c4ebc5b68cf82334e179ac3fe41df68 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[306.460083,13.511306], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_202550.42+133040.7 /sdB_SDSSJ_202550.42+133040.7_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
2b6d28c56de1c130b329b37f364f6eea788b0a12 | c1f09426670b5efe35956acd19c67a2de72af284 | /python/8.web/2.Django/mysql_demo/mysql_demo/settings.py | 2d96898508b90792184d03bf68d39719647d02c2 | [
"Apache-2.0"
] | permissive | keasyops/BaseCode | 388218d89d60b958c1fcc50eb15f29eafabaea1f | 0255f498e1fe67ed2b3f66c84c96e44ef1f7d320 | refs/heads/master | 2023-05-08T05:08:39.754170 | 2021-05-26T10:48:01 | 2021-05-26T10:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,191 | py | """
Django settings for mysql_demo project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/zh-hans/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/zh-hans/2.2/ref/settings
"""
im... | [
"39723758+lotapp@users.noreply.github.com"
] | 39723758+lotapp@users.noreply.github.com |
a1f62bcfd6d251a8de4cba3fe7fae4c1151067fd | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /base/lib/python2.7/site-packages/mrcfile/gzipmrcfile.py | 8fd97b41138e1bcef75c9b61cb7c4068055225b7 | [
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 2,723 | py | # Copyright (c) 2016, Science and Technology Facilities Council
# This software is distributed under a BSD licence. See LICENSE.txt.
"""
gzipmrcfile
-----------
Module which exports the :class:`GzipMrcFile` class.
Classes:
:class:`GzipMrcFile`: An object which represents a gzipped MRC file.
"""
# Import Python ... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
8b96e0486d3ae2eff2814c19873fad1b007d1395 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_2/sproctor/rank_and_file.py | b7de93089153574c7d0d13e2b4e4ebb4fcfe08eb | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 863 | py | #!/usr/bin/python
import sys
maxHeight = 2500
def solve(heights):
missingList = []
for i in range(maxHeight + 1):
if heights[i] % 2 == 1:
missingList.append(str(i))
return missingList
def main():
filename = sys.argv[1]
filehandle = open(filename, 'r')
lines = filehandle.r... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
14bf94956faba485bce2be72addcd37cd6573471 | 739e41d4f24f79c772d266cded0de9b759c6e953 | /venv/lib/python3.6/site-packages/nlp/datasets/docred/24f714c390b57d5e0642c513b1e98b62e281a8f9d2f875ac1d3e103b07de3cee/docred.py | 3fbcbd2045e9177caa4d92aed978cc11bf9ed9ae | [
"MIT"
] | permissive | MachineLearningBCAM/Minimax-risk-classifiers-NeurIPS-2020 | 24b7bbdecf459292f8b58be286feab3b9aa341ba | 82586c632268c103de269bcbffa5f7849b174a29 | refs/heads/main | 2023-05-18T15:41:13.495286 | 2021-06-11T18:21:35 | 2021-06-11T18:21:35 | 304,268,819 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,257 | py | """DocRED: A Large-Scale Document-Level Relation Extraction Dataset"""
from __future__ import absolute_import, division, print_function
import json
import os
import nlp
_CITATION = """\
@inproceedings{yao2019DocRED,
title={{DocRED}: A Large-Scale Document-Level Relation Extraction Dataset},
author={Yao, Yuan a... | [
"adiaz@bcamath.org"
] | adiaz@bcamath.org |
10805b6505117c9dbc083c4c4ea2311f0f7b4543 | 5235a27898cdaeab012c447c50076e7e4641dbf7 | /code/diagnosis/grtest.py | 5b0fabaa9066f506ce45528174962a0401846b6a | [
"MIT"
] | permissive | mjvakili/gambly | 0a9ab638a5be987efb683acdc8282a8c09880532 | 611765bc42d8c42d76558b486c4025532155036a | refs/heads/master | 2020-04-10T05:32:55.171621 | 2020-03-22T18:51:10 | 2020-03-22T18:51:10 | 50,690,345 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | '''
implementation of Gelman-Rubin convergence test
'''
import numpy as np
def single_parameter_gr_test(chains):
"""
inputs:
chains : MCMC samples for one parameter.
shape = (nwalkers , niters)
returns:
potential scale reduction factor
and the variance of the distribution
... | [
"mjvakili@nyu.edu"
] | mjvakili@nyu.edu |
1a35b54134a858ba2ad3e718170f76012f9d65b9 | 0958db6bf636722685f33501408b3e28a45b2b14 | /basic/key_event/key_event2.py | 39ce162819423ee6e70a5b0378eace2fcacbefd3 | [
"MIT"
] | permissive | KeitaIto123/pygame | eee68fe59f7bf3eb408ff98737150a7d5fe258fc | cf5ba2331dc6b4a930f9c3dacbaa7954f51498db | refs/heads/master | 2020-03-26T10:57:52.613169 | 2017-03-12T14:06:35 | 2017-03-12T14:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
from pygame.locals import *
import sys
SCREEN_SIZE = (640, 480)
pygame.init()
screen = pygame.display.set_mode(SCREEN_SIZE)
pygame.display.set_caption(u"キーイベント2")
img = pygame.image.load("python.png").convert_alpha()
img_rect = img.get_rect()
img_rect.cente... | [
"f2forest@gmail.com"
] | f2forest@gmail.com |
1fbe9ed32949b7b2644e5a348f35cba67707f693 | cd40fd66338bab16c3cac360ec68d0410daf85dc | /asyncio_study/factorial.py | 1646369d3db811c34c538e76b12a6d84dc7cc229 | [] | no_license | suhjohn/Asyncio-Study | c74a95c37d6ce1d0983b5626a4f68d2b80d7ec79 | d9c5a092924a32f18849787fd30cb322a0ff8b15 | refs/heads/master | 2021-05-12T12:28:15.749447 | 2018-01-14T17:25:22 | 2018-01-14T17:25:22 | 117,414,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | import asyncio
async def factorial(number):
result = 1
for i in range(2, number+1):
print(f"Task for {number}: Compute factorial: {i}")
await asyncio.sleep(1)
result *= i
print(f'Task for {number} finished. Factorial({number}) = {result}')
loop = asyncio.get_event_loop()
'''
Met... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
be668b7d094dabdba76537bfc6f3d63deed2fd52 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /YGhrwfg6k6zHnmeDh_6.py | 325649a3d1cc40c3f3f3aee4f24b5ae109e7c2e6 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py |
def get_discounts(nums, d):
discount = int(d.strip("%")) / 100
new_price = []
for x in nums:
new_price.append(x * discount)
return new_price
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
916f0b24c134a8b15a9019a7392d2f69d9481bed | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00005/s108100200.py | 51c7c84132f7cb691304ec7ee31bbe534e088dfc | [] | 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 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def gcd( a, b ):
while b > 0:
a, b = b, a%b
return a
def lcm( a, b ):
return a*b/gcd( a, b )
for s in sys.stdin:
d = map(int, s.split())
a,b = d[0],d[1]
print gcd(a,b),lcm(a,b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f626a5fe63505768adc81155c86801ddb59cb619 | 2b8fe23680fb8c6596c8b4fd53a2547e32e84617 | /8-DS-Design/EventCounter.py | e1d0c32e969f979b8ced3409173abec7d7174853 | [] | no_license | jigarshah2811/Python-Programming | b441c4815f80bef4d17611cdea851254c59739a9 | a60a11ad29e9dde9e9960006f887d9b66d29e427 | refs/heads/master | 2022-11-20T18:09:11.955564 | 2022-11-04T05:58:19 | 2022-11-04T05:58:19 | 67,324,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | N = 3
import collections
class Solution(object):
def __init__(self):
self.q = collections.deque()
# Queue((Second, Frequency), )
def eventOccured():
timeMS = getEpochInMill()
second = qtimeMS // 1000
(s, c) = q[-1]
if s == second:
q[-1][1] += 1 #... | [
"jshah@pinterest.com"
] | jshah@pinterest.com |
b49d40170a4c2d9ecd8aa6b7b668cfdd08d2c580 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/spoon.py | e4d6d5e20ebc0f06012645de11ba00ebf94a7cac | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('spoon', __name__, url_prefix='/spoon')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('republic.... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
cee71c5efb06a3baf0f28594bbcb11c9bdac0c86 | 79c6594e76cbbb5de8fe9dc73a23946c90fac2b1 | /torchbiggraph/util.py | c5954e623f8d6dc9b7058a967b9ea2cfd10fa7c5 | [
"BSD-3-Clause"
] | permissive | middle-plat-ai/PyTorch-BigGraph | e47e03104b6d640b47ac103170b09e411f0c8391 | 701ec1736ef17280981311f7214f35c96c190434 | refs/heads/master | 2021-11-03T19:47:13.676050 | 2019-04-26T16:49:13 | 2019-04-26T16:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,232 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import os.path
from collections import defaultdict
from datetime import datetim... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e58223496a4579245283ccdb1478dd5d10774f3b | 81d635211686b1bc87af5892bd9e0fb95cc2ddb8 | /adwords api/googleads-python-lib-master/examples/dfp/v201511/report_service/run_sales_report.py | b3ab57226822fd2a475aea1e43470dcd44e9a4d3 | [
"Apache-2.0"
] | permissive | analyticsbot/Python-Code---Part-2 | de2f0581258b6c8b8808b4ef2884fe7e323876f0 | 12bdcfdef4472bcedc77ae61707c25a4a09cba8a | refs/heads/master | 2021-06-04T05:10:33.185766 | 2016-08-31T13:45:45 | 2016-08-31T13:45:45 | 66,679,512 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | #!/usr/bin/python
#
# Copyright 2015 Google Inc. 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 b... | [
"ravi.shankar1788@gmail.com"
] | ravi.shankar1788@gmail.com |
260bf1b93bcd27bc0cb7694536a4ba9c217b4072 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/104/usersdata/228/50746/submittedfiles/av1_2.py | bae0b9ed8cdec01e64f282f927ac05793347dc28 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite a dimensão da barra de chocolate seu cuzão:'))
x1=int(input('digite a coordenada x da figura 1:'))
y1=int(input('digite a coordenada y da figura 1:'))
x2=int(input('digite a coordenada x da figura 2:'))
y2=int(input('digite a coordenada y da figura 2:'))
if x1<=(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
26a9cb5f30a3cf4c4bf5cd521eeab51868367484 | eddb9243d65ff6b0c51502c877e91c034ca5b349 | /desktop_new.py | 422713fc6c35f00901b3136bbb7e29a4dbabe62e | [] | no_license | cristianmusic7/Donkey-car-image-recognition | 1a90b1261f78d986171fab5d13b6f75ceba11c63 | e08afc1c250cc563a8a776785c56cb15ef9c3e58 | refs/heads/master | 2020-09-03T00:38:46.930267 | 2019-11-04T03:47:28 | 2019-11-04T03:47:28 | 219,342,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,299 | py | # desktop.py
import asyncio
import aiohttp
import cv2
import json
import numpy as np
import argparse
from imutils.video import FPS
import imutils
from rtcbot import RTCConnection, Gamepad, CVDisplay
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--prototx... | [
"you@example.com"
] | you@example.com |
bac6cf0ef69a3305e112f61db28295b9b5055f98 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/15/02/18.py | 7fff1f128ae1ac791095e13e767772b235e64379 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import sys
import math
t = int(sys.stdin.readline().strip())
for i in range(t):
d = int(sys.stdin.readline().strip())
p = [int(k) for k in sys.stdin.readline().strip().split()]
minm = max(p)
j = 1
while j < minm:
m = 0
for k in range(d):
m += (p[k] + j - 1) / j - 1
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
b01ad9c8a93447aaab97d72aebb1b10d25c1222b | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/images_20210218100216.py | 7b30a0f4a984693ddd55e1ad78ab2b6c5d15a53b | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 2,677 | py |
#
# %%
import glob
import cv2
import os.path
import numpy as np
import matplotlib.pyplot as plt
# %%
cores_per_image = 6
uvFiles = glob.glob('./Photos/*.jpg')
fname = uvFiles[0][9:25]
print(fname)
# Picture path
img = cv2.imread(uvFiles[0])
a = []
b = []
# %%
def oneventlbuttondown(event, x, y, flags, param)... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
cc2dc649da57f9b2130bd313729257af71306cba | e777b4cd72b6f8eb0eb451943edc2b2cac3a367a | /setup.py | 67443f8896345b4dd232e8701ae5f396baad255e | [] | no_license | bannsec/xss_catcher | 3620f523d0a44d54116148d2f70fe7faaef366dd | a2b363c0ff98dfd164903a6b42150ce679488b48 | refs/heads/master | 2021-06-18T19:35:55.816391 | 2017-06-19T00:11:40 | 2017-06-19T00:11:40 | 63,832,134 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
long_description = "See website for more info."
setup(
name='xss_catcher',
version='0.0.2',
descript... | [
"whootandahalf@gmail.com"
] | whootandahalf@gmail.com |
c0ee3d3acb28c074c182de16fb58bda400405331 | 0f96f24c8682ece3b501904baaa0eef411969bb1 | /0x0F-python-object_relational_mapping/6-model_state.py | 3b6b8d1e31f9d3168bf63050b77ae4dcab6af4a6 | [] | no_license | dkokonkwo/holbertonschool-higher_level_programming | 95c5103001e807bd46767f66d97568e23d893e68 | 5fa97f754afaf7326550113416e80fd942226254 | refs/heads/master | 2023-03-18T03:38:33.386497 | 2020-09-28T02:56:13 | 2020-09-28T02:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/python3
"""Start link class to table in database
"""
import sys
from model_state import Base, State
from sqlalchemy import (create_engine)
if __name__ == "__main__":
engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}'.format(
sys.argv[1], sys.argv[2], sys.argv[3]), pool_pre_ping... | [
"eislek02@gmail.com"
] | eislek02@gmail.com |
bd3f1ffa0841425a78c119759282d4003145b05f | 2ee1fa9a5983c057f050a93c46bc894974856179 | /botorch/utils/multi_objective/scalarization.py | 67a16f8103e1d54fb9a1704949c6f9b1097d21bd | [
"MIT"
] | permissive | jelena-markovic/botorch | 8bd9641f165264ed1fea68af0a95f0e37b5e187c | dc868cc569e266abb4e7e112d019bd1bd6af27c4 | refs/heads/master | 2023-08-17T05:04:03.033178 | 2020-11-04T23:57:09 | 2020-11-04T23:58:39 | 310,691,257 | 0 | 0 | MIT | 2020-11-06T19:45:42 | 2020-11-06T19:45:41 | null | UTF-8 | Python | false | false | 2,455 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
r"""
Helper utilities for constructing scalarizations.
References
.. [Knowles2005]
J. Knowles, "ParEGO: a hybrid ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
71357d96f44f5b2a00c333e37802a5dd988ffbdd | 04c06575a49a3f4e30e4f3f2bf2365585664d2e8 | /python_leetcode_2020/Python_Leetcode_2020/1465_max_area_of_pieceofcake_after_cuts.py | 84149a9672842b58f898ef87d46a45ad4451afe6 | [] | no_license | xiangcao/Leetcode | 18da3d5b271ff586fdf44c53f1a677423ca3dfed | d953abe2c9680f636563e76287d2f907e90ced63 | refs/heads/master | 2022-06-22T04:45:15.446329 | 2022-06-17T13:03:01 | 2022-06-17T13:03:01 | 26,052,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | """
Given a rectangular cake with height h and width w, and two arrays of integers horizontalCuts and verticalCuts where horizontalCuts[i] is the distance from the top of the rectangular cake to the ith horizontal cut and similarly, verticalCuts[j] is the distance from the left of the rectangular cake to the jth vertic... | [
"xiangcao_liu@apple.com"
] | xiangcao_liu@apple.com |
063947a01bf8d4c0106d3e960c33eb7208b143f8 | d80ef8c716bcc5ea54e87540dbf0463f15bf44ce | /Proxy/test/mitmproxy/test_version.py | f87b08517cd20bf6f7ab33dd2aa65b4da988f2a7 | [
"MIT"
] | permissive | YagiGo/YPTN | 5043d22eb131c7164d3fa575f0c4e3d8a963dbf4 | d7692a68ee1bf578536b4c09c566272210fc8b69 | refs/heads/master | 2018-10-16T03:44:18.024169 | 2018-07-24T08:53:57 | 2018-07-24T08:53:57 | 107,633,669 | 4 | 1 | MIT | 2018-06-08T09:04:29 | 2017-10-20T04:55:22 | JavaScript | UTF-8 | Python | false | false | 248 | py | import runpy
from mitmproxy import version
def test_version(capsys):
runpy.run_module('mitmproxy.version', run_name='__main__')
stdout, stderr = capsys.readouterr()
assert len(stdout) > 0
assert stdout.strip() == version.VERSION
| [
"jeremywu1995@gmail.com"
] | jeremywu1995@gmail.com |
fc6d2a4cbbd5a898cc67e115186e1724231f9eaf | 7e7e2c5d327a518a03b2307f7f3ece37517fa361 | /ThirdWeek/Task9.py | 196edbf3279906c37f30e69bd31f1ff91ba3f5d3 | [] | no_license | Midnight1Knight/HSE-course | 0fdd995f2e8bf98ecd5fc4ecbcd503e6ef2150ab | 9b79c359fc65d260e3d454de5464abd5c89be770 | refs/heads/master | 2022-09-24T14:36:29.472005 | 2020-06-04T17:11:37 | 2020-06-04T17:11:37 | 269,414,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | p = float(0)
n = int(input())
x = float(input())
sumX = float
counter = 0
while n > 0:
k = float(input())
sumX = x
counter = n
while counter > 1:
sumX *= x
counter -= 1
p += float(k * sumX)
n -= 1
k = float(input())
p += float(k)
print(float(p))
| [
"andrkar008@gmail.com"
] | andrkar008@gmail.com |
13109ecbe3376732d745c55c29a10df925581684 | c87b2388fe94dbc081ad01e59f8b66d90f2ded46 | /tests/test_project/app_rename_table/migrations/0001_initial.py | ea12d2850c4271965b9e03aa7b2c261527668328 | [
"Apache-2.0"
] | permissive | rajuniit/django-migration-linter | f6ac60064cd1feb6a1b6a552ff1656619213a419 | 8db24f919dd2411d0c7d000ab51a92398771cb24 | refs/heads/main | 2023-07-26T17:57:03.535454 | 2021-09-07T05:31:08 | 2021-09-07T05:31:08 | 403,851,905 | 0 | 0 | Apache-2.0 | 2021-09-07T05:29:01 | 2021-09-07T05:29:01 | null | UTF-8 | Python | false | false | 709 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-04-14 15:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="A",
... | [
"david.wobrock@gmail.com"
] | david.wobrock@gmail.com |
8867e7d73b6bbba89607d65330e7999f1bbe7e27 | 2a3a1f103a324bd36e1f557643bf785a782ac5bf | /1097.py | 972c97114436ab2cb4c479a435b64015bbca0b26 | [] | no_license | dbgkswn7581/python_basic_questions | 4c381847c6ab90647cc4dddaca3831210dbbe721 | 5042ea2a2e84a71e81ab8eccf940abde1e82a68f | refs/heads/master | 2023-02-08T04:59:51.654197 | 2021-01-04T06:54:18 | 2021-01-04T06:54:18 | 326,170,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | arr = []
b = []
for i in range(19):
a = input()
for j in a:
if j == '0':
b.append(0)
elif j == '1':
b.append(1)
arr.append(b)
b = []
def rever(x,y):
for i in range(19):
if arr[x-1][i] == 1:
arr[x-1][i] = 0
else:
arr[x-... | [
"72482222+dbgkswn7581@users.noreply.github.com"
] | 72482222+dbgkswn7581@users.noreply.github.com |
0ca434186efe591b665ab5be8163b5b376502a87 | b373c3b1e9b60f604c5213b8678cc374e4d60621 | /tasks.py | 429eda6543b1c0d1c4e9ccd8fa56b119ee23974b | [
"MIT"
] | permissive | dgilland/sqlservice | db512bc3328477472298ca5186de3e9d4b0541d4 | 0be2bb62b2655916f5958e7eccaed63e83f1fe7b | refs/heads/master | 2023-05-31T02:35:33.651188 | 2022-10-12T00:37:13 | 2022-10-12T00:37:13 | 59,388,509 | 173 | 13 | null | 2018-08-03T21:23:52 | 2016-05-22T00:56:21 | Python | UTF-8 | Python | false | false | 3,950 | py | """
This module provides the CLI interface for invoke tasks.
All tasks can be executed from this file's directory using:
$ inv <task>
Where <task> is a function defined below with the @task decorator.
"""
from functools import partial
import os
from invoke import Exit, UnexpectedExit, run as _run, task
PACKA... | [
"dgilland@gmail.com"
] | dgilland@gmail.com |
a9b1d887ebcfe4a2b8adbc771fbe2a309ca4ab71 | 37572d62583271b872ec0e8f051701111d8d9230 | /migrations/versions/1b2b0d93a8ba_16.py | cd05612485ac7c331d9aa19c6caa6a5372232951 | [] | no_license | linwenjunid/flasky | 6b4b920b56194b04d2a33b2c843b858c519dffb5 | ea1e74bbc1185ade002cdfbee96b99675ee3c22d | refs/heads/master | 2020-03-18T23:40:47.958836 | 2019-03-29T01:27:40 | 2019-03-29T01:27:40 | 135,418,770 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | """16
Revision ID: 1b2b0d93a8ba
Revises: 5ae2353a173c
Create Date: 2018-08-21 16:10:28.530756
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1b2b0d93a8ba'
down_revision = '5ae2353a173c'
branch_labels = None
depends_on = None
def upgrade():
# ### command... | [
"linwenjunid@163.com"
] | linwenjunid@163.com |
7b31e92e4ea4f7d437d2d38e4498703c7211dc33 | 0fd9cb5e8bfb26fa62b90e65f7fbaa2fd233d3d3 | /napalm/python/netmiko/fortinet/fortinet_ssh.py | f20231334f1f3a4dffb086717c2d3a33a95eebde | [] | no_license | levensailor/pip4lambda | 0cff15b2dba3ba586652c6cc914252daf01a874b | 22a83a43141f9bf72fdd0cd5faee3b88cc7e49fa | refs/heads/master | 2022-03-02T05:31:48.894906 | 2022-02-11T16:38:00 | 2022-02-11T16:38:00 | 174,207,440 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | from __future__ import unicode_literals
import paramiko
import time
import re
from netmiko.cisco_base_connection import CiscoSSHConnection
class FortinetSSH(CiscoSSHConnection):
def _modify_connection_params(self):
"""Modify connection parameters prior to SSH connection."""
paramiko.Transport._pr... | [
"jlevensailor@presidio.com"
] | jlevensailor@presidio.com |
75f4afcd3f28a07b31a0169bdacd3a042829807a | fb754d8c5abf560bb0f0c123dde2f6790d71452c | /dataset/dota_coco/dota_generate_test_result.py | 44c8f1804bcff723e1dbb5df2e172340c4b1e41e | [
"Apache-2.0"
] | permissive | ellinyang/PaddleDetection | 024c256c620949828fd3d2a7592aaebc6e3fef92 | 993119bbc3de330310083e9487fef5147d82c087 | refs/heads/master | 2021-11-04T17:56:50.729293 | 2021-10-28T02:30:12 | 2021-10-28T02:30:12 | 222,353,395 | 3 | 0 | Apache-2.0 | 2019-11-18T03:11:33 | 2019-11-18T03:11:32 | null | UTF-8 | Python | false | false | 7,901 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | ellinyang.noreply@github.com |
0e4d12400d385371006b7ad61680b902e236e83c | dc42a65f63ca8327ee74675c7606a9b6e3b39d40 | /tpdatasrc/co8fixes/scr/py00081spugnoir.py | 9d67ab60fadca2c1158c5ab7df6dfd15a16fc507 | [
"MIT"
] | permissive | anatoliy-savchak/TemplePlus | 03cda558de2fd30d34305b7e5b548d202ba97f76 | 50922bb14cc2d7dcf8fceeccf45c3b905c1b512f | refs/heads/master_old | 2023-04-28T12:01:06.205497 | 2021-09-25T13:03:51 | 2021-09-25T13:03:51 | 172,583,383 | 2 | 0 | MIT | 2019-02-25T20:56:01 | 2019-02-25T20:56:00 | null | UTF-8 | Python | false | false | 3,263 | py | from toee import *
from utilities import *
from combat_standard_routines import *
def san_dialog( attachee, triggerer ):
if (game.global_flags[819] == 1):
attachee.attack(triggerer)
return SKIP_DEFAULT
if (attachee.leader_get() != OBJ_HANDLE_NULL):
triggerer.begin_dialog( attachee, 100 ) ## spugnoir in part... | [
"doug1234@unknown"
] | doug1234@unknown |
3264f45ff99ac37d6e6a01b5f9e165a75bcb3531 | 39d3af3e67a00b93d4325ecd6942b021bf4acbba | /deployTest1/wsgi.py | 0e2c9f328e4ad3751809c8a8c259b2991f57ade7 | [] | no_license | dmhburke/DeployTest1GIT | 51fcc1405eaf8420aed60ab42c2e21a4a1a36f59 | 002d06e9dca5bc9d032fd7953fcb1ea16fb8994e | refs/heads/master | 2020-05-04T03:03:59.969438 | 2019-04-02T17:07:58 | 2019-04-02T17:07:58 | 178,936,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for deployTest1 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"dmhburke@gmail.com"
] | dmhburke@gmail.com |
260b0f3bafcd890c3109cd70051c8239142693c3 | 27d670c976ce0771087008c74e8960e25c4b2b01 | /src/main/resources/script_templates/Hadim_Scripts/Preprocessing/Preprocess_TIRF_Images.py | bd2a01cd42ed7c27cae7045060318000cfffdb88 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | hadim/Hadim_Scripts | 2f068ead5df4a299e2ff871ebff4ddc6fdb4a39f | dc44a12e294402ac3c76062197f391dad1ebcaaf | refs/heads/master | 2022-12-31T08:47:49.386465 | 2020-10-07T15:51:29 | 2020-10-07T15:51:29 | 29,701,480 | 2 | 3 | BSD-3-Clause | 2019-05-17T03:06:59 | 2015-01-22T21:35:15 | Python | UTF-8 | Python | false | false | 1,592 | py | # @Float(label="Sigma 1", value=6) sigma1
# @Float(label="Sigma 2", value=2) sigma2
# @Float(label="Gaussian Filter Size", value=50) gaussian_filter_size
# @Boolean(label="Iterate XY plane (reduce memory usage)", value=False) iterate_plane
# @Boolean(label="Save Preprocessed Image", value=False) save_image
# @Dataset d... | [
"hadrien.mary@gmail.com"
] | hadrien.mary@gmail.com |
53603194cbdad317cab36c3658300ab37fce1e8f | 658e2e3cb8a4d5343a125f7deed19c9ebf06fa68 | /course_DE/data-engineering-nanodegree-master/4-data-pipelines-with-airflow/L2_exercises/exercise3.py | f0b82c490da3c700ec1b44526eff4e1861fa0d42 | [] | no_license | yennanliu/analysis | 3f0018809cdc2403f4fbfe4b245df1ad73fa08a5 | 643ad3fed41961cddd006fadceb0e927f1db1f23 | refs/heads/master | 2021-01-23T21:48:58.572269 | 2020-10-13T22:47:12 | 2020-10-13T22:47:12 | 57,648,676 | 11 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | #Instructions
#1 - Modify the bikeshare DAG to load data month by month, instead of loading it all at once, every time.
#2 - Use time partitioning to parallelize the execution of the DAG.
import datetime
import logging
from airflow import DAG
from airflow.contrib.hooks.aws_hook import AwsHook
from airflow.hooks.post... | [
"f339339@gmail.com"
] | f339339@gmail.com |
76a9353851b054c98e8378600f4307a284e242c9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02662/s484498630.py | e29ce3a687f8624090192e32bfac0f5f683a21d9 | [] | 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 | 417 | py | import numpy as np
n,s = map(int,input().split())
a = list(map(int,input().split()))
dp = np.zeros(s+1, dtype=np.int64)
"""
dp[i][j] := i番目までを選んで、和がちょうどjのときの場合の数
遷移 → 1増えると全体集合に選ぶ, Aには選ばない, Aに選ぶの3種類.
"""
mod = 998244353
dp[0] = 1
for i in range(n):
p = (dp * 2) % mod
p[a[i]:] += dp[:-a[i]]
dp = p % mod
print(dp[s]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
37533e7e38a05044b0bdae8d1f37b6698f44c722 | b53816386ea9ec52e7fce862a06fd065928c0083 | /EpExtractor.py | aa1b30688f6534562cb53a1d826dfc6f5830a2be | [] | no_license | grburgess/mnEpFit | 3e3bcbfca1e244029f04144e67e3d86a65853219 | c7008f3a71ebd9dade7e4746507024868ede7d3a | refs/heads/master | 2021-05-30T01:21:23.896379 | 2015-05-20T07:50:46 | 2015-05-20T07:50:46 | 35,933,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import json
import matplotlib.pyplot as plt
class EpExtractor(object):
def __init__(self,file,ext_name=""):
self.ext_name = ext_name
self._ReadFile(file)
self._PrepareData()
print self._tbins[0]
plt.loglog(self._tbins,self._Ep)
self._WriteJSON()
def ... | [
"jmichaelburgess@gmail.com"
] | jmichaelburgess@gmail.com |
58ddad151756db23c9a9cf8a848d1e2796b0cd70 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_elderly.py | e148c0716dce29ed715268660229fed3e87d894e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py |
#calss header
class _ELDERLY():
def __init__(self,):
self.name = "ELDERLY"
self.definitions = [u'old people considered as a group: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f9a2749282d1c35368f740f61adfa1e06a07cfa0 | 131caeecc070839555b95382fe9c6ea77a618dce | /.history/Classiles/light_switch_20210614212521.py | c23dce879e163a83c076bdb9319ed48fee6b9b64 | [
"Unlicense"
] | permissive | minefarmer/Coding101-OOP | f128e34c95f5362b3d9a53bbac3d862c3f256263 | d5655977559e3bd1acf6a4f185a6121cc3b05ce4 | refs/heads/main | 2023-05-22T18:42:37.769345 | 2021-06-18T00:28:06 | 2021-06-18T00:28:06 | 376,620,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | """[Practice: Light Switch]
Variable name class name
("instance")
ice = Ice)
"""
class Light:
def toggle(self):
print
self.on = not self.on
def __init__(self):
self.on = False
def is_on(sel):
return self.on
| [
"pgoldfarm@yahoo.com"
] | pgoldfarm@yahoo.com |
c6486839fa928e444c6ac41aad0403ed310a77f4 | 67d9310435d8f99fc1c76f1374da97e4af1137a6 | /myProject/settings.py | 3587bb0cc665c5955134e27fe93c8dfe4c86bb87 | [] | no_license | coralisland-git/Account-app | a99c400b9ceb469626843e5b6441700f72e2c5ef | dbac5f677860fdbc03ebf4878c030542746b214f | refs/heads/master | 2021-06-18T13:09:07.360079 | 2017-06-23T15:18:35 | 2017-06-23T15:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,946 | py | """
Django settings for myProject project.
Generated by 'django-admin startproject' using Django 1.8.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pa... | [
"coseasonruby@gmail.com"
] | coseasonruby@gmail.com |
ba4c496e73c24377a0a74528dc5b31c715cbf133 | 10717fe6f68c4ee9bcf27ee62e89581f4a030b8e | /extractor/douyutv.py | 1560c79cb11ad6615149dcf68205d73daa098fda | [] | no_license | HagerHosny199/Testing_Project | ff7f9a54b7a213c9d9ade0c5192845c2a29adc8b | 9bc170263e239cc24ccfb2aa33b9913ff799ffe9 | refs/heads/master | 2020-05-17T20:57:01.750640 | 2019-05-08T22:13:06 | 2019-05-08T22:13:06 | 183,954,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,876 | py | # coding: utf-8
from __future__ import unicode_literals
import time
import hashlib
import re
from .common import InfoExtractor
from utils import (
ExtractorError,
unescapeHTML,
unified_strdate,
urljoin,
)
class DouyuTVIE(InfoExtractor):
IE_DESC = '斗鱼'
_VALID_URL = r'https?://(?:www\.)?douyu(... | [
"hagarhosny19@gmail.com"
] | hagarhosny19@gmail.com |
a52be94d2d29ec70efb3833b2e39a16938664fb2 | 1beb0d3a73a97c5367cc54d37b34a7536b975d68 | /object/LocateDealOrderObject.py | 3ce43eb2ac775bea904fa2525cfb92d284d3714e | [] | no_license | Hardworking-tester/HuaYing | a24aa271afe81c95241818586b1d1d5abd6b4282 | 4dd065806f20bfdec885fa2b40f2c22e5a8d4f15 | refs/heads/master | 2021-06-03T10:06:33.604494 | 2017-06-22T09:32:13 | 2017-06-22T09:32:13 | 42,507,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | #encoding:utf-8
from Data import get_number_by_data,ReadExcel
from selenium import webdriver
from object import OperateDealOrderObject
from selenium.webdriver.common.by import By
from PublicMethod.LocateElementCommonClass import CommonClass
class LocateDealOrderObject():
def getElementList(self,br,testcaseId):
... | [
"373391120@qq.com"
] | 373391120@qq.com |
1e8d43e99c4a6c18af0fa23b95b9988a735d38cb | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/beresnev28/beresnev_lr/zadanie_2-16.py | c09833e26b9950e9eca8f7d7c177ee605c551572 | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | a=[[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]
b=[[],[],[],]
print(a[0])
print(a[1])
print(a[2])
print(a[3])
i=(int(input('введитe номер строки = '))-1)
k=(int(input('введите номер столбца = '))-1)
for f in range(4):
a[f][k]=0
for t in range(4):
a[i][t]=0
print(a[0])
print(a[1])
print(a[2])
print(a[3])
| [
"you@example.com"
] | you@example.com |
99520ba9383618cd1f2b8302fea12bb4177eff2a | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-FileProviderUI/PyObjCTest/test_fpuiactionextensioncontext.py | 5cce4d7ed43ae4829e41889ea9bd508810e4738a | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import FileProviderUI
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestFPUIActionExtensionContext(TestCase):
def test_constants(self):
self.assertEqual(FileProviderUI.FPUIExtensionErrorCodeUserCancelled, 0)
self.assertEqual(FileProviderUI.FPUIExtensionErrorCodeFailed, 1)
@... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
4feae1113ac543f26e086b2e4dd8be4307a102f4 | 08bb74d61a8bd8da07784f1146b6a2461f56b02a | /demo_python/p_1/tm.py | 406a15bead40a566d612b61596980efdcf5e7757 | [] | no_license | hphp/demo | 6ee25df2e6b4f33e5c2c4b276ec394ea1a0f817c | f83cd0ce569d92410ca1320e229cde0e88561ec8 | refs/heads/master | 2021-05-16T02:04:47.979776 | 2016-09-19T13:16:10 | 2016-09-19T13:16:10 | 9,994,208 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | #!/usr/local/bin/python
import os
import time
import _mysql
def hp_query(query):
con = None
version = -1
try :
con = _mysql.connect('localhost','root','','ip_distribution')
con.query(query)
result = con.use_result()
v = []
while True:
rows = result.fetc... | [
"hphpcarrot@gmail.com"
] | hphpcarrot@gmail.com |
e7c4de9a6b3d90e5b4be81f8597dbcefe813443e | b980c0bae0cff8533253c135449beb6e09759dca | /Grader_Exercise/08_Dict/08_Dict_23.py | 82d1da939f42f32157d3dff8a5303588ffde5419 | [] | no_license | manhanton/COM-PROG | 1f76985b3f3fea54057a0da1d3911dc91998c5be | 7a4f2c62ecd6677ec1f818a5d115aa0fb182b3a2 | refs/heads/main | 2023-06-18T10:25:26.448133 | 2021-07-16T07:46:45 | 2021-07-16T07:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | def reverse(d):
nd = {}
for key,value in d.items() : nd[value] = key
return nd
d = {}
for i in range(int(input())) :
x = input().split()
d[x[0]+' '+x[1]] = x[2]
rd = reverse(d)
for i in range(int(input())) :
y = input()
if y in d.keys() : print('%s --> %s' % (y,d[y]))
elif y in rd.keys(... | [
"meen2545@gmail.com"
] | meen2545@gmail.com |
0429e2284d15b50a7b4df5b5e76249314c694204 | 2d01e5d2da7bf0836bd0ebb9185469e041e0f577 | /script/script_scrape_symbol_ard_marketwatch.py | 2fe5444add389a69002f5f70bd7ee5400c2687ef | [] | no_license | kozzion/rivernode_finance | 434c0f668a3131ad0bf94b9d57c1886c32ac6d5e | 17e88f990c9f5e65dc3fe892a28c163a4e6769f2 | refs/heads/master | 2022-11-15T03:44:14.936657 | 2020-06-22T15:44:22 | 2020-06-22T15:44:22 | 254,896,067 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | import sys
import os
import json
import hashlib
sys.path.append(os.path.abspath('../../rivernode_core'))
from rivernode_core.system_config import SystemConfig
from rivernode_core.persistency.table_object_loader_disk import TableObjectLoaderDisk
sys.path.append(os.path.abspath('../../rivernode_finance'))
from riverno... | [
"jaap.oosterbroek@gmail.com"
] | jaap.oosterbroek@gmail.com |
a74dca56a62b18a2bb84892722b4cfe1650e9df0 | 2709e527c217a8264b48e2f549b3284e5ccb9551 | /0x0F-python-object_relational_mapping/relationship_state.py | d28e8a488307b18586655ba4e87563fc4629fed4 | [] | no_license | kwhit2/holbertonschool-higher_level_programming | 489d6b88ed14b9f2efd4637d8a71ae569b5027f6 | 2660516b12fee0f03c4025ba1d8d2762a8880a06 | refs/heads/main | 2023-05-22T17:57:02.035803 | 2021-06-12T18:43:54 | 2021-06-12T18:43:54 | 319,346,696 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #!/usr/bin/python3
""" Improved the file model_state.py with relationship class attribute """
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
Base = declarative_base()
class State(Base):
""" class State t... | [
"kfw2@outlook.com"
] | kfw2@outlook.com |
64c3eb71437a4c5058884aa72b33396beb0067b1 | 18a1a72b5f2f1c4a668a96a6365daabe35729750 | /user/social_views.py | e457377a82d90aadc07ff6d46f278b3873719d25 | [] | no_license | AktanKasymaliev/django-ashar-app-backend | 200d0af0fd60d90834895f2c8924d0f5fe3a03c5 | 0b8d59203399487a1ee4dcae24ed6c716960380c | refs/heads/main | 2023-07-02T06:55:26.903742 | 2021-08-04T14:54:03 | 2021-08-04T14:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from allauth.socialaccount.providers.google.views import GoogleOAuth2Adapter
from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
from user.views import SocialLoginView
class GoogleLogin(SocialLoginView):
adapter_class = GoogleOAuth2Adapter
class FacebookLogin(SocialLoginView):
a... | [
"aktan.kasymaliev@icloud.com"
] | aktan.kasymaliev@icloud.com |
2f970ad0404436ed1c8ea829b0d349c8cf94ea3e | 09bb17f07b127ac7d7d44969d55c92fa979111e2 | /.PyCharmCE2019.2/system/python_stubs/-1448197883/PIL/_imagingcms.py | 627fb7996c066f82fdbeb37c708d6041179e88c7 | [] | no_license | Tusharec82/ROCKY | ea19201275f853603870a68275bdf7d1e64a6084 | d9812b0fefde8c3d9ffe7947cf331af12dd25ab5 | refs/heads/master | 2020-08-09T00:34:50.707405 | 2019-10-09T18:13:26 | 2019-10-09T18:13:26 | 213,957,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,810 | py | # encoding: utf-8
# module PIL._imagingcms
# from /usr/lib/python3/dist-packages/PIL/_imagingcms.cpython-36m-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# no imports
# Variables with simple values
littlecms_version = '20.90'
# functions
def buildProofTransform(*args, **kwargs): # real signature unknown
pa... | [
"TPatel@.dal.ca"
] | TPatel@.dal.ca |
73d8ba35ec791beffc2e3f13c980754b8a857f23 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003405.py | 5a684c947584fd60604a2244ef648e9a15ca31ab | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
82c1c52804b41ca95993b01dc43ebd395f50a466 | 7ae44f6975561ff5542cd369dcd04d53093db887 | /Data Structures and Algorithms in Python/11_Linked_List_2/test.py | 23bb821782d5d54fb6567da6bc799dcb4f68d659 | [] | no_license | ashisharora24/learning_tutorials_practice | 89208a77ad162265c6573ca4559ebf6f4a6f8f18 | 57f461908d0c4d58d831ec375c428179fa69cb3f | refs/heads/master | 2020-05-21T05:32:26.397725 | 2019-07-23T10:36:06 | 2019-07-23T10:36:06 | 185,923,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from time import *
t2 = perf_counter()
t1 = perf_counter()
counter = 0
for i in range(10000):
counter += 1
print(i, end=" ")
# r = req...
if counter == 61:
t2 = perf_counter()
print("\n sleeping \n",10 - t2 + t1)
sleep(10 - t2 + t1)
counter = 1
t1 = perf_coun... | [
"ashisharora24@gmail.com"
] | ashisharora24@gmail.com |
996eb7912cb82e037205e02ff650c6061318278d | 266947fd84eed629ed0c21f6d91134239512afd9 | /BeginnerContest_B/147.py | 1181ff0ecd9ce31a917fcf62e9df63d19fa0c9c8 | [] | no_license | SkiMsyk/AtCoder | c86adeec4fa470ec14c1be7400c9fc8b3fb301cd | 8102b99cf0fb6d7fa304edb942d21cf7016cba7d | refs/heads/master | 2022-09-03T01:23:10.748038 | 2022-08-15T01:19:55 | 2022-08-15T01:19:55 | 239,656,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # Palindrome-philia
# input
S = input()
# solve
if len(S) % 2 != 0:
S = S[:len(S)//2] + S[len(S)//2 + 1:]
res = sum([i != j for i, j in zip(S[:len(S)//2], S[len(S)//2:][-1::-1])])
# output
print(res) | [
"sakaimasayuki@sakaimasayukinoMacBook-puro.local"
] | sakaimasayuki@sakaimasayukinoMacBook-puro.local |
8a2ff5c31ecbccf07f06b151a8aae5d8e32aa02a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/21/usersdata/69/7600/submittedfiles/exercicio24.py | 7231844c7a7561c81bde56eb4f4805952f045a09 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a=int(input('Digite o valor de a:'))
b=int(input('Digite o valor de b:'))
i=1
c=0
if a>=b:
while i<=b:
if a%i==0 and b%i==0:
i=c
i=i+1
print c
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
aee318c6b0606346facce9b35398fcde1d8aefe0 | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/conv3dtanh_20.py | 5ceab17b3a130f554d3b8d621403d7c98fcfe4f2 | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 1,600 | py | # -*- coding: utf-8 -*-
"""
conv3dtanh_20.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class Conv3dTanh_20(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Conv3d(in_channels=1, out_channels=13, kernel_s... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
86298f50d044ed13be501c49ad6bcf4ba3d5ffaf | b99f518e5289da9d068154cefd7b9f13c8d6564f | /VSCode_work/chapter16/chapter16_16_5.py | 98addd58a6f830d481ce26f5bae44635ea5d202a | [
"MIT"
] | permissive | yangyahu-1994/Python-Crash-Course | e6a81feba4bdbef297387577ea36b7027bf61c8f | 6f8ef7fe8466d88931a0d3cc423ba5d966663b9d | refs/heads/master | 2023-07-29T22:29:06.151253 | 2021-10-05T14:04:32 | 2021-10-05T14:04:32 | 313,314,086 | 18 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | # 导入必要的模块
import json
import pygal_maps_world.maps
from chapter16_16_5_country_codes import get_country_code
from pygal.style import RotateStyle
# 将数据加载到列表中
filename = '/home/yyh/Documents/VSCode_work/chapter16/population_data.json'
with open(filename) as f:
pop_data = json.load(f)
# 创建一个包含人口数量的字典
cc_populations ... | [
"yyh_19940317@163.com"
] | yyh_19940317@163.com |
c7e7f24927496acf6bd5567a6c1947d2a8713bd1 | 100fdb7bc25acda0953f238c6d1104fda786ee7a | /probreg/callbacks.py | 17c2290b8cc732327fb23d0422177f6903656178 | [
"MIT"
] | permissive | Yellowshuohahaha/probreg | 1f219821fe4706b58aaf70f040aea3bc660bc103 | 31cade406af7f20a20a85e2e3764c55e5b9e986f | refs/heads/master | 2022-11-16T08:54:45.610504 | 2020-07-18T02:30:28 | 2020-07-18T02:30:58 | 283,975,360 | 1 | 0 | MIT | 2020-07-31T07:46:06 | 2020-07-31T07:46:06 | null | UTF-8 | Python | false | false | 3,385 | py | import copy
import open3d as o3
import matplotlib.pyplot as plt
class Plot2DCallback(object):
"""Display the 2D registration result of each iteration.
Args:
source (numpy.ndarray): Source point cloud data.
target (numpy.ndarray): Target point cloud data.
save (bool, optional): If this... | [
"nekanat.stock@gmail.com"
] | nekanat.stock@gmail.com |
02c7a58b6b502e705b6ff5ff30e1577c75b11799 | b4cc597f7efa74d3bdea48aaeca7c675235351d6 | /param_files/0.0eV/reps_files/file_format_Hz.py | 39e4383d427caaa7151dd4a352dab909becdb16d | [] | no_license | franciscovillaescusa/Euclid_neutrino_comparison | 52de9fc72b1240319bd63341b94abb82471c721a | 9483de6512693d7303c51b371e8746425ea9c3aa | refs/heads/master | 2023-04-19T21:45:42.932627 | 2021-04-29T17:54:32 | 2021-04-29T17:54:32 | 303,197,191 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | import numpy as np
import sys
########################## create Hz file ###################################
f_in = '0.0eV_hubble.txt' #file provided by Matteo
f_out = 'Hz.txt' #file to be used by Gadget
bins = 1000 #number of bins in the new file
z_max = 127.0 #maxim... | [
"villaescusa.francisco@gmail.com"
] | villaescusa.francisco@gmail.com |
a245e763e652cab4a89be27f2d41294d4526d33a | a9dc42e9f54b549fcdd695817e347abfd8f2869f | /old/old_bin/cru_ts323_prism_update_launcher.py | 9f4c80bba7d44a96d914f80d42d3712c30f99745 | [
"MIT"
] | permissive | yusheng-wang/downscale | 2e77d070115ead3034c154d29f1c533976228f13 | 3fe8ea1774cf82149d19561ce5f19b25e6cba6fb | refs/heads/master | 2023-04-10T03:25:08.806859 | 2019-09-21T17:34:35 | 2019-09-21T17:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,713 | py |
# SCRIPT TO RUN THE CRU TS3.1 BUILT SCRIPT OVER THE CRU TS3.2.3 UPDATE (SEPT.2015)
# WHICH EXTENDS THE SERIES TO 12/2014.
# THIS IS CURRENTLY WORKING FOR CLD, TMP, VAP, AND MORE TO COME!
# # # # #
# Author: Michael Lindgren (malindgren@alaska.edu)
# # # # #
# CURRENTLY SETUP TO RUN ON EOS.
# # CLD
# import os
# os.c... | [
"lindgren.mike@gmail.com"
] | lindgren.mike@gmail.com |
3bb4882df0c8b66b1d985109247e95926e438367 | 28dbe47aba287ed94ef7bba734203736bcc06249 | /.history/dmac_20200713134926.py | e0c5592f917f60de87f93354003a2b45895781c6 | [] | no_license | ntung88/Trading_Algorithms | 242fd816b19df95e02e9fcd8c5c91c862d2ede40 | d96488b1754e3751f739d9c3f094a8f8dc54a0a9 | refs/heads/master | 2022-11-19T16:04:07.800344 | 2020-07-17T21:14:10 | 2020-07-17T21:14:10 | 276,239,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,330 | py | import yfinance as yf
import numpy as np
import pandas as pd
from pandasgui import show
from scipy.optimize import minimize
import matplotlib.pyplot as plt
'''
A library for running Dual Moving Average Crossover trading strategy, with backtesting,
period optimization, and vizualization tools.
'''
#Period of time (in ... | [
"nathantung@Nathans-MacBook-Pro.local"
] | nathantung@Nathans-MacBook-Pro.local |
c6a8b0b84a6a412e24430e7c5dcbbac95110038a | e4e1d12269cea35451bbe552af3262a9a428faa1 | /trainer/trainer_lm.py | 2da3166825d2ea23258bb8cdeaf7dff9f50eedd5 | [
"Apache-2.0"
] | permissive | 12341123/pylon | 286e033623b13846ca9dd5d9b84c7788f6c70a1c | e26202b2c1cfbb8b5c444f840763f0ce839f048a | refs/heads/master | 2023-05-07T20:25:22.134413 | 2021-06-08T03:51:29 | 2021-06-08T03:51:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import torch.nn.functional as F
from .trainer_base import *
from .callbacks.start import *
class LMTrainer(BaseTrainer):
"""language modeling trainer
"""
def on_ep_begin(self, **kwargs):
self.hidden = None
def forward_pass(self, data):
x, y = data
pred, hidden = self.net(x, se... | [
"the.akita.ta@gmail.com"
] | the.akita.ta@gmail.com |
8f5086512825812a077bc0c8c1f29b3a00095003 | a14af281ab0c6189d5b6c48a25732fb286f34c8d | /rbac/__init__.py | c51b6a735b7d3bac790f423527d6132e53670915 | [
"MIT"
] | permissive | jackeyGao/simple-rbac | 62112301fbad8d8bdc6639b4a3038bc0de3a7638 | 967dee94be4ad6c93999ce52655eada2477c9046 | refs/heads/master | 2020-04-14T15:31:43.655283 | 2019-01-03T06:20:22 | 2019-01-03T06:20:22 | 163,929,777 | 2 | 0 | MIT | 2019-01-03T06:01:11 | 2019-01-03T06:01:10 | null | UTF-8 | Python | false | false | 161 | py | from __future__ import absolute_import
"""Simple RBAC
This is a simple role based access control utility in Python.
"""
__all__ = ["acl", "context", "proxy"]
| [
"tonyseek@gmail.com"
] | tonyseek@gmail.com |
4c633e20b0ec5f68658ba51e9e74fa3d3f7c6cd4 | e6a8793b1b12d47e57f00485350d122946618245 | /services/models.py | 8dad81c83ffca9da8fcc511e7630e1ee93c018e7 | [] | no_license | Fabricourt/school | 70b2eba2c0b8ff9b9290eb0f68d730698a6d3a63 | dad80c36be34b432dfadef195eb9e867f82cafff | refs/heads/main | 2023-01-01T15:48:43.760288 | 2020-10-26T11:15:32 | 2020-10-26T11:15:32 | 305,829,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
from ckeditor.fields import RichTextField
from django.utils.html import mark_safe
from PIL import Image
class Service(models.Model):
title1 = models.CharField(max_length=200,... | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
c799710f27d097dea81aebba892ed99561c9b17d | 9aa7d3c6d563a434595141f5b4dd8c54252a4d40 | /tweets/migrations/0013_post_image.py | 93841f7f324a2610760c5b2d94d0924b9898e049 | [] | no_license | akhad97/Test-Web-App | 9e200fc6d394cf6d52e72cb5f360d013e777fa9c | eb9b3480732c86f836748967bcfd6201dac6a6ee | refs/heads/master | 2023-07-19T12:24:26.400998 | 2021-09-06T11:55:20 | 2021-09-06T11:55:20 | 402,657,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 2.2.13 on 2021-07-31 05:30
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('tweets', '0012_auto_20210730_2226'),
]
operations = [
migrations.AddField(
model_name='post',
... | [
"ahadjon.abdullaev1997@gmail.com"
] | ahadjon.abdullaev1997@gmail.com |
811e71674e45e86b8f44ddac7576883ae69df87c | b33ad1c8560fc22a7e4ae9dec7f3c778b70941fa | /abc180/c.py | 95d7109f8ff66c38bc7f9687872ddbacdf95636a | [] | no_license | Tommy-somen/atcoder_record | 36f226ffe6465dd5f8ae4986195510d00da46ffb | 0e549a72cec3b87accefc52d5cd56420251361b9 | refs/heads/master | 2023-08-16T10:23:39.609512 | 2021-09-27T11:38:57 | 2021-09-27T11:38:57 | 410,585,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | n = int(input())
front,back = [],[]
i = 1
while i*i <= n:
if n%i == 0:
front.append(i)
if i != n//i:
back.append(n//i)
i += 1
front.extend(back[::-1])
for k in front:
print(k)
| [
"tomohiro1015w@gmail.com"
] | tomohiro1015w@gmail.com |
f8c09a385fefe6b5064760cdcaa4f6f4794a0e07 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/new_20200709211421.py | be8abece3db7727532968727ef71c47945c6b598 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # [3,4] [1,2,7,7,0]
# --> new set {1,2,7,7}
# 4-3 = 1
# [5,9] [1,2,6,7]
# smaller = 5
#
# ---> 3
# left = {1:4,2:5,7:10,0:3}
# ---> 4
# right = {1:5,2:6,7:11,0:4}
#
# newArr = sorted(min[[1,0],[2,1]])
# newArr =[2,6]
# if newArr[0] == 0:
#
# 2,6
# "not possible"
# 13,4 - [1,2,3,6,14]
'''
smaller = 4
ans... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
4c4af7c1fc3dd62c467f8350dc9f109165a94352 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GL/SGIX/shadow_ambient.py | 883eef870fb602d8947fba66023b3d22c72e48fc | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.constant import Constant as _C
# Code generation uses this
# End users want this...
from OpenGL.raw.GL import _errors
_EXTENSION_NAME = 'GL_SGIX_shadow_ambient'
def _f(function):
return _p.createFunction(functi... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
3f6e4ee13b6391fbdcae1d4ce6f0e96b1d7d1ae6 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/googlecloudsdk/command_lib/meta/regen.py | 19ec509f43fa92f3587e9fbdab809d6f1a30549a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 1,013 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google Inc. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
644f6c6ccb4805245ea968549b49decd927c466f | fc1b227f04158c0929b1e66106e0acd842844a88 | /pipeline/processor/Mosher.py | 7222950af17cc29b9752bfe9e9e1be70b3c550af | [] | no_license | csboling/pi-rt-video | 72603a8c5bac6e2edf7e3e0b55d0b87bbd95bd30 | 274b0fb3837b04958f229e6a96934561f5da9f05 | refs/heads/master | 2021-05-09T00:09:39.798926 | 2018-04-18T04:37:16 | 2018-04-18T04:37:16 | 119,735,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from abc import abstractmethod
from itertools import islice
import numpy as np
from pipeline.processor.pure import PureFunction
class Mosher(PureFunction):
def __call__(self, frame):
raw = frame.tobytes()
count = len(raw)
moshed = b''.join(self.mosh(raw))[:count]
return np.fromb... | [
"charles.samuel.boling@gmail.com"
] | charles.samuel.boling@gmail.com |
97dd05a028b4a33a6d447d46642a0deaecd17029 | 60acb606318869410d7437bf6c1a16fd6762b6b4 | /app/api/img/image_info.py | 65775a862d3bc5708bec535f36d2bce928fd5b49 | [
"Apache-2.0"
] | permissive | heraclitusj/mgek_imgbed | 8fb0c69599fab3fce06684f659dfd5c0b4c5f866 | d8a77ba1401f42237adda1b3ea8611f6464a704e | refs/heads/master | 2022-07-28T01:48:51.314094 | 2020-05-20T05:35:52 | 2020-05-20T05:35:52 | 265,461,338 | 0 | 0 | null | 2020-05-20T05:31:37 | 2020-05-20T05:31:37 | null | UTF-8 | Python | false | false | 755 | py | # -*- coding: utf-8 -*-
# @Author: Landers
# @Github: Landers1037
# @File: image_info.py
# @Date: 2020-05-14
from app.api.img import img
from app.utils import format_response
from flask import request
from app.database import database
from app import global_config
@img.route('/api/image_info')
def image_... | [
"32225052+Landers1037@users.noreply.github.com"
] | 32225052+Landers1037@users.noreply.github.com |
a6f5e5981efd1440e11604556dda3322676ef081 | 4364fb1fec2ebda2cd240ddc19ef89243812c122 | /tensorflow_datasets/core/utils/version_test.py | 29f7c9e85799c708ef7350ffb36ccf426741908b | [
"Apache-2.0"
] | permissive | undeadinu/datasets | 67ebbe6c20462ed6f58713ccd8dc1d67db89f4d9 | a6f1bce86404d534b7343fb90f0ebfd6d098c346 | refs/heads/master | 2020-04-16T03:31:37.564934 | 2019-01-11T10:12:42 | 2019-01-11T10:13:12 | 165,234,637 | 0 | 0 | Apache-2.0 | 2019-01-11T11:44:44 | 2019-01-11T11:41:26 | Python | UTF-8 | Python | false | false | 2,090 | py | # coding=utf-8
# Copyright 2018 The TensorFlow Datasets 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
11446499dcc2fcc6f3086f797eac1521364b3182 | 0a530e71f248f0f731c6a3f28f090d1bb26b55e3 | /apps/testdatas/migrations/0045_iframebodyinputtext.py | 64f33a379d95c61ef45c53a1b937676f5cd9d202 | [] | no_license | wawj901124/fuwuqi | cca9935f7b110dfdf38c93d59602a596ecac0d58 | e388fd10cf4fdb889d6566b7a30702b7c7351750 | refs/heads/master | 2022-12-13T13:12:10.854319 | 2020-01-18T00:42:52 | 2020-01-18T00:42:52 | 209,901,486 | 0 | 0 | null | 2022-11-22T02:40:33 | 2019-09-21T00:23:51 | Python | UTF-8 | Python | false | false | 3,286 | py | # Generated by Django 2.0.5 on 2019-11-12 15:40
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('testdatas', '0044_newaddandcheck_depend_new_add_and_check_case'),
]
operations = [
migratio... | [
"wawj900805"
] | wawj900805 |
9a14bed785bfa237ff5c6773094106b0f1003dfd | 0c0168a4676bce7453836a7509e7133044aa8975 | /byceps/services/board/dbmodels/last_topic_view.py | bf001ad5b4d7e1f3890dc09d3263e58d53b1050d | [
"BSD-3-Clause"
] | permissive | byceps/byceps | 0aad3c4d974f76c6f8c3674d5539a80c9107b97a | eaee2b7fdc08c76c16ddf7f436110e0b5f1812e5 | refs/heads/main | 2023-09-01T04:03:13.365687 | 2023-09-01T03:28:18 | 2023-09-01T03:28:18 | 40,150,239 | 44 | 23 | BSD-3-Clause | 2023-05-16T18:41:32 | 2015-08-03T22:05:23 | Python | UTF-8 | Python | false | false | 1,280 | py | """
byceps.services.board.dbmodels.last_topic_view
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2014-2023 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from datetime import datetime
from byceps.database import db
from byceps.services.board.models import TopicID
from by... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
d6a6a6f115d922ccb5f1b7753846a7efdb2e2a9f | 86bfb43636b24eef7ea580544797a5f84bf555b5 | /DjangoBlog/tests.py | 47fda838a1c4eca60f51314e7e57e8f125b6da98 | [
"MIT"
] | permissive | kongnyc/DjangoBlog | 3e83af3b5e96706055964c3554cdff1b0b80f06e | 38173bf3b47bafa82fadc9e7a95fad0c959c3dd5 | refs/heads/master | 2023-08-22T10:01:36.074884 | 2021-10-18T08:29:29 | 2021-10-18T08:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: ??
@author: liangliangyy
@license: MIT Licence
@contact: liangliangyy@gmail.com
@site: https://www.lylinux.net/
@software: PyCharm
@file: tests.py
@time: 2017/10/25 下午10:16
"""
from django.test import TestCase
from DjangoBlog.utils import *
class DjangoBlogTes... | [
"liangliangyy@gmail.com"
] | liangliangyy@gmail.com |
cae778a22518efc67a593ae11d6e3eae36f3c314 | 9693f521acf87faa6406f071db432a248fbaa731 | /API_CRUD/asgi.py | e8ba240642e4df756cdd613ee48fb1a816350b0c | [] | no_license | musfiqraihan/Django_API_CRUD | a8678c4ed04ada73139cbc20740e5e1471f11ef0 | 1405fc867a797580ae0d3753fc6f09914d008d3d | refs/heads/master | 2023-02-11T16:56:24.290716 | 2020-12-30T11:13:40 | 2020-12-30T11:13:40 | 325,232,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for API_CRUD project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"musfiqak@gmail.com"
] | musfiqak@gmail.com |
b7f5069628cdc9ce0511d09d0286eda67f188636 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/coghq/DistributedMintBattle.py | 01664f0a9ce6d947852b03f28be3e5495ec65230 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle
from direct.directnotify import DirectNotifyGlobal
from toontown.toon import TTEmote
from otp.avatar import Emote
from toontown.battle import SuitBatt... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.