blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b5706ba5278a195707b47a5d60c00805fc6e7e5 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616204038.py | 910525208285c836bf6cb5ec61a6cd7e8d587d35 | [] | 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 | 405 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
def valid(str):
address = str.split(".")
numbers = range(0,256)
for a in address:
if int(a) in numbers:
if len(a) == 2 and a[0] == "0":
return False
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
08087af6a1ab27fa92e29b9cc8a336473af168f4 | 8ccc03e848cd180186fec52179740a6007875c32 | /Control/main.py | 239ad03da3601da79bf3dd294a73c23e148fc0f1 | [] | no_license | ManiacalLabs/Laz-A-Sketch | 013166f06ccd63a7237608eec83dbc0a789ebe0f | 2901aecc09b1e4f34e982b59016269ed69950e1d | refs/heads/master | 2020-07-05T09:15:23.999032 | 2019-09-21T18:31:14 | 2019-09-21T18:31:14 | 202,604,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | from com import Encoder
from grbl import grbl
from time import sleep
# constrain to specific range
def clamp(n, minn, maxn):
return max(min(maxn, n), minn)
# round to a specific increment, such as 0.25
def inc_round(v, inc):
return round(v/inc)*inc
class Control(object):
def __init__(sel... | [
"adammhaile@gmail.com"
] | adammhaile@gmail.com |
7455209477479b379ca339fc7009bf72424ba4ab | 52c8f780d1b2d6086b0c9e70e4ddfbcba8a8d97a | /sam-app/tests/unit/test_acc_FanManager_with_driver.py | e8aa91dad46f301dcac03dc84b2b99e9da9cc77b | [] | no_license | stevezieglerva/lutils | 75089dec093e3b0377fe6e333844daa6a923acbd | d28fb8269e9dbc10a01b48761b4c706145d45cd1 | refs/heads/master | 2023-07-27T18:17:08.026448 | 2021-09-17T15:33:50 | 2021-09-17T15:33:50 | 276,093,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,593 | py | import inspect
import json
import os
import sys
import boto3
from moto import mock_dynamodb2
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
parentdir = os.path.dirname(parentdir) + "/common_layer_hex/python"
sys.path.insert(0, parentdir)... | [
"stephen.v.ziegler@gmail.com"
] | stephen.v.ziegler@gmail.com |
79d4842cf8368b7277beb304cd01456d2b9ee061 | f6c6e0ebc18b7b1a28c23367f62c960e86194c88 | /fileIO/hdf5/nexus_tools.py | 421d6569c4932aaca6baeea4dd1b1d2bf5521445 | [] | no_license | TheGrim1/python_work | 9316d6fbb71a4be9bd901f104e939949dfd91174 | 5b34277aed4c06b62276644160e0aa97a4260233 | refs/heads/master | 2021-01-11T13:54:54.366575 | 2019-03-12T12:38:39 | 2019-03-12T12:38:39 | 94,876,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,053 | py | import sys, os
import h5py
import numpy as np
from nexusformat.nexus import *
import datetime
# local import for testing:
sys.path.append(os.path.abspath("/data/id13/inhouse2/AJ/skript"))
from fileIO.hdf5.open_h5 import open_h5
import time
def createlink(f,dest,linkdir,linkname,soft=True):
"""
Args:
... | [
"opid13@nanofocus.esrf.fr"
] | opid13@nanofocus.esrf.fr |
1f01193d2bfd5c64c2531378677587ae85d761bf | 8aa1b94626402c0c614128d6061edb771dad05cf | /qt/qt03/qt04_main.py | d39ff9264bb6cdfeb174a973c92f7e9ebe2cd09e | [] | no_license | netfj/Project_Stu02 | 31e76c1b656ee74c54cae2185821dec7ccf50401 | afc1b26b7c586fd6979ab574c7d357a6b9ef4d29 | refs/heads/master | 2023-03-13T22:24:40.364167 | 2021-02-23T09:53:31 | 2021-02-23T09:53:31 | 341,506,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | #coding:utf-8
"""
@info:
@author:NetFj @software:PyCharm @file:qt04_main.py @time:2018/11/19.19:10
"""
import sys
from PyQt5 import QtWidgets,QtCore,QtGui
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from qt04_lineEdit import Ui_Form
class myForm(QWidget,Ui_Form):
def __init... | [
"netfj@sina.com"
] | netfj@sina.com |
e0254a9e2cd5d791b1204e4fbb4bb1b67eaa4c7d | f88f900c0384f6da82eeb749371ad44115527700 | /course-book/09-matching/0908-brisk.py | cd57fd239de27d3da4c9d0d75da5fa6d0aa2061a | [] | no_license | aaron-kr/learning-opencv | eff382e8f0c822400f765451d57b192a63cd1b74 | 158239f0140569aec519fc1fbf255c54ef2567d2 | refs/heads/main | 2023-08-21T11:02:49.775425 | 2021-10-27T00:04:01 | 2021-10-27T00:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | # 0908.py
# BRISK = Binary Robust Invariant Scalable Keypoints
import cv2
import numpy as np
#1
def distance(f1,f2):
x1,y1 = f1.pt
x2,y2 = f2.pt
return np.sqrt((x2-x1) ** 2 + (y2-y1) ** 2)
def filteringByDistance(kp, distE = 0.5):
size = len(kp)
mask = np.arange(1, size + 1).astype(np.bool8) # all... | [
"jekkilekki@gmail.com"
] | jekkilekki@gmail.com |
d9dd5624a3b479ff9480ceb782b0bcd58623699f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5753053697277952_1/Python/Ifni/A.py | aec0465a73baa41598ab32da433f7e0c9aada43c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | import math
import numpy as numpy
inp=open('A-large.in', 'r')
out=open("A-large.out", 'w')
T=int(inp.readline())
for index in range(T):
N=int(inp.readline())
temp = [int(x) for x in (inp.readline()).split()]
senate=[];
total=0;
for j in range(N):
total=total+temp[j]
senate.append((temp[j],j))
senate.sort(... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
92eacd0c0e3aef83e67904d47744a212b7061059 | d6277540df5076aad71a0d955bca11bdc8950f7e | /evaluation/__init__.py | 85d8569eb1f59a6f63f98a0c11eac841f54dd006 | [
"Apache-2.0"
] | permissive | MILVLG/bottom-up-attention.pytorch | c9cfc43c594d7447190f70e80b5a6a06a1613895 | 4dbce869ad17117ca9f1df55bc5604cdbcd47f59 | refs/heads/master | 2022-05-02T14:34:23.723685 | 2022-04-07T13:37:56 | 2022-04-07T13:37:56 | 253,174,827 | 286 | 75 | Apache-2.0 | 2022-04-07T13:37:56 | 2020-04-05T06:59:16 | Jupyter Notebook | UTF-8 | Python | false | false | 38 | py | from .vg_evaluation import VGEvaluator | [
"542243844@qq.com"
] | 542243844@qq.com |
2d91a0f67927ad7abc1250f72dccb9e6c541f62d | d2e80a7f2d93e9a38f37e70e12ff564986e76ede | /Python-cookbook-2nd/cb2_18/cb2_18_13_exm_1.py | 9820f9bf01fa89bddb018133edef453aab07ff29 | [] | no_license | mahavivo/Python | ceff3d173948df241b4a1de5249fd1c82637a765 | 42d2ade2d47917ece0759ad83153baba1119cfa1 | refs/heads/master | 2020-05-21T10:01:31.076383 | 2018-02-04T13:35:07 | 2018-02-04T13:35:07 | 54,322,949 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | probability = 0.333
n, d = farey(probability, 100)
print "Odds are %d : %d" % (n, d-n)
# emits: Odds are 1 : 2
| [
"mahavivo@126.com"
] | mahavivo@126.com |
bb6314173e62dd8b39229874f63a97bf93583b80 | 8a780cb47eac9da046bdb5d6917f97a086887603 | /problems/sum_of_square_numbers/solution.py | 6f6f83cfeba7a9d7f3b7efee88d11a9bfb0df65a | [] | no_license | dengl11/Leetcode | d16315bc98842922569a5526d71b7fd0609ee9fb | 43a5e436b6ec8950c6952554329ae0314430afea | refs/heads/master | 2022-12-20T03:15:30.993739 | 2020-09-05T01:04:08 | 2020-09-05T01:04:08 | 279,178,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from math import sqrt
class Solution(object):
def judgeSquareSum(self, c):
"""
:type c: int
:rtype: bool
"""
if c < 0: return False
i = 0
j = int(sqrt(c))
while i <= j:
curr = i*i + j *j
if curr == c: return True
if ... | [
"ldeng1314@gmail.com"
] | ldeng1314@gmail.com |
bc74bc20b8ccdcdc3a3d27ba681bafa08fb5d157 | 51aeee42378b72c570ed61264e25075c20884b44 | /platzigram_api/users/permissions/users.py | 9dac3c49607e04a6306b2c3d568565be22e1acfc | [
"MIT"
] | permissive | ChekeGT/Platzigram-Api | ee3ac0d04194e70d84b27d39585a2c2341550025 | 0ab05f1bb325b02563aead2e885194e274013150 | refs/heads/master | 2022-06-03T03:28:16.312898 | 2019-07-16T21:07:36 | 2019-07-16T21:07:36 | 182,161,789 | 0 | 0 | MIT | 2022-05-25T01:41:31 | 2019-04-18T21:48:00 | Python | UTF-8 | Python | false | false | 522 | py | """User model related permissions."""
# Django REST Framework
from rest_framework.permissions import BasePermission
class IsAccountOwner(BasePermission):
"""Permission that allows
a user to access a view only if the requesting
user matches with the user object
"""
message = 'You are not the ac... | [
"chekelosos@gmail.com"
] | chekelosos@gmail.com |
a2ee91183a6675595d74021c02f4c73e1b8d99fc | 131caeecc070839555b95382fe9c6ea77a618dce | /.history/Classiles/ice_cream_truck_20210615181707.py | 7fea1cea58b970f58a182a32eba15b64e1fabacd | [
"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 | 74 | py | class Icecream:
def __init__(self):
self.scoops = 0
| [
"pgoldfarm@yahoo.com"
] | pgoldfarm@yahoo.com |
4b25dd4310919c082d27c8ddf76559522a033981 | d400c32010a414a2f536c5c0a3490c8b8e2e9d5a | /modules/m16e/i18n/pt_pt/widgets/zip_validator.py | 99374e1459daa4da8474d3b5dc41aa96697bb3c9 | [
"LicenseRef-scancode-public-domain"
] | permissive | CarlosCorreiaM16e/chirico_cms | 3e521eae8f38b732497a2b808950c6a534e69d4f | 73897cbddb230630e13f22333b9094d0a047acb3 | refs/heads/master | 2020-12-30T07:59:04.100330 | 2020-05-02T12:26:58 | 2020-05-02T12:26:58 | 238,917,321 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | # -*- coding: utf-8 -*-
import sys
import traceback
from gluon import current
import m16e.term as term
class is_valid_zip( object ):
def __init__( self,
allowBlank=False,
error_message=None ):
self.allowBlank = allowBlank
self.error_message = error_message
... | [
"carlos@memoriapersistente.pt"
] | carlos@memoriapersistente.pt |
c0a02b8a9cfd9ac990ca398a1120393672a231dc | f60b0c051d8ba5088dc4246679b870f577646bb0 | /59 Wed, 21 Mar 2012 23:58:41.py | 3636882413236459b26b8f671227018953648249 | [] | no_license | joopeed/lp1 | bbd11fe7749356828a16fc45703e010db5d35464 | 117bf769a048ec1dff53f779b26c9e7adec052ba | refs/heads/master | 2021-01-02T22:50:08.600553 | 2014-04-03T21:15:40 | 2014-04-03T21:15:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Date: Wed, 21 Mar 2012 23:58:41 +0000
# Question 59
# JOAO PEDRO FERREIRA 21211940
meses = ["jan","fev","mar","abr",=
"mai","jun","jul","ago","set&q=
uot;,"out","nov","dez"]
n = map(float,raw_input().split())
m = map(float,raw_input().split())
for i in range(12):
if n[i]-m[i]<0:
print meses[i], n[i]-m[i... | [
"joopeeds@gmail.com"
] | joopeeds@gmail.com |
32fe7a8ea69ff3766fddde1db073e44f542f5944 | 9e5f89954fae8ac705d3e721d82b7b72d9fbcbaa | /4. ARREGLO/Diez numeros ordenados de forma ascendente.py | abd54618f407fda3a01e54660c8bb74a5a277bfa | [] | no_license | Diego-18/python-algorithmic-exercises | dda950d0fcabd25244ce3ecfc1296d06a7701f5f | 583907b82c3549a4bff7718d23aa3e0d7be2e4a3 | refs/heads/main | 2023-08-12T02:28:49.425894 | 2021-09-26T05:14:07 | 2021-09-26T05:14:07 | 410,439,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | #!/usr/bin/env python
#-*- coding: UTF8 -*-
################################
# Elaborado por: DIEGO CHAVEZ #
################################
#Realice un algoritmo que cargue 10 numeros a una lista, y ordenelos de menor a mayor
def fILeerI(psTexto):
lfVar=int(raw_input(psTexto))
return lfVar
def fsLeerS(psTexto... | [
"ingdiegochavez18@gmail.com"
] | ingdiegochavez18@gmail.com |
10be9709f131c693640209830d55dfdd6e70b369 | 225469cfb5507fba6770b91e2195b65e3f5ec066 | /bin/django-admin | 180e615386c07b80c6f55dc0a44b19eeaa940414 | [] | no_license | Michkail/portrapit-store | 9bc12a063f5c2810bdc85fb5daf189f14300a849 | c55e5d9879369fe195a1d22a3956ac17d9a71904 | refs/heads/main | 2023-02-15T06:17:56.208851 | 2021-01-15T15:57:11 | 2021-01-15T15:57:11 | 324,973,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | #!/home/michkail/Documents/portrapit-store/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"travis@travis-ci.org"
] | travis@travis-ci.org | |
e707ea93d81b8d0c6720ffcee498fad5390d9260 | f2c7b1befad2e01129a899426d3006d0298aedd6 | /apps/transactions/api/serializer.py | 2db12993f21f85da3c2e7aa29738f439799ed847 | [
"MIT"
] | permissive | AlcindoSchleder/flask_validator | 9821a71660699976ebf161f7e16a809fc08b58c4 | 5d4b73b755ee434daab400a4d69d05237965334e | refs/heads/main | 2023-02-26T23:27:16.246461 | 2021-02-05T02:32:28 | 2021-02-05T02:32:28 | 335,714,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from datetime import datetime
from rules.configure_app import ma
from apps.transactions.model import Transactions
from flask_marshmallow.fields import fields
class TransactionsSerializer(ma.SQLAlchemyAutoSchema):
id = fields.Str()
customer_id = fields.Str(required=True)
doc_id = fields.Str(required=True)
... | [
"alcindoschleder@gmail.com"
] | alcindoschleder@gmail.com |
0eae0a5d1591d3e6e319cab06ad2ebc6522a4935 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_073/ch150_2020_04_13_19_23_30_928222.py | b24da99c02a5d581834b8ca6ccbea288d5519394 | [] | 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 | 113 | py | def calcula_pi(n):
i=0
s=0
while i-1<n:
s+=6/(i**2)
i+=1
π=s**0.5
return π
| [
"you@example.com"
] | you@example.com |
5b80e84195b05148e414152bb5e7ec6b8abe981a | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4163/codes/1593_1803.py | 0fe4f037b835ec2220a49b366c342d4819a6b0fb | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | x = int(input("numero do cartao: "))
a = x//1000
b = x//100%10
c = x//10%10
d = x%10
m = a * 5
n = b*4
o = c*3
p = d*2
s= m+n+o+p
v = (s%11)
print(v)
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e951784c19687be2b1f6400544c6e6ac4ff2bc83 | 41a4eeaf62a36d7c57ad55393996787bb55ba6b7 | /venv/lib/python3.7/site-packages/kubernetes/client/models/v1beta1_volume_attachment_status.py | 4bf4e872c98d42a22c1bb7ae6be5edad0a426636 | [] | no_license | jicowan/group-operator | c7a20ff03584da9ace19489bc3d27b9fb22a066c | bac6e51aef0d9836679621e3ce7e55f4c1ead402 | refs/heads/master | 2021-07-14T11:45:30.062219 | 2019-09-26T15:26:52 | 2019-09-26T15:26:52 | 209,454,861 | 10 | 4 | null | 2021-07-01T17:23:07 | 2019-09-19T03:29:54 | Python | UTF-8 | Python | false | false | 7,370 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"jicowan@f0189801a302.ant.amazon.com"
] | jicowan@f0189801a302.ant.amazon.com |
e5261b326ef90f1f8c418f8f8769e45cd8c258f4 | 9de0d6b626727e024e00832dd6b3fb8e98e4efc6 | /tests/runners.py | 75a05509085256e70961c1aad5e04f7a0a69242d | [
"BSD-2-Clause"
] | permissive | vovanz/invoke | 2e2403472397b84c80690219e7470d7b8c39a7e3 | ba1f2742837d51f04e229a8d1f8c0d4d132833fc | refs/heads/master | 2020-03-18T09:22:08.557683 | 2018-05-23T11:29:51 | 2018-05-23T11:29:51 | 134,559,507 | 0 | 0 | BSD-2-Clause | 2018-05-23T11:29:53 | 2018-05-23T11:27:23 | Python | UTF-8 | Python | false | false | 53,304 | py | import os
import struct
import sys
import types
from io import BytesIO
from itertools import chain, repeat
from invoke.vendor.six import StringIO, b, PY2, iteritems
from pytest import raises, skip
from pytest_relaxed import trap
from mock import patch, Mock, call
from invoke import (
Runner, Local, Context, Conf... | [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
abc7a937b19b83288cf794e0c35454d0c0fac86d | 45b4ff764fafaa08140bced64fc1f0fb0ae36087 | /icecreamratings_projcet/icecreamratings_projcet/users/urls.py | 3db76cdfb4c65666078e3346486be9f1d24bda6e | [
"MIT"
] | permissive | wlgud0402/studying-django-with-twoscoops | c35297cc2c169170bff43c62a6325139a269a7d2 | 78a69ad311aefc59e271c86824196c130b92bb0a | refs/heads/master | 2023-01-08T23:43:33.177538 | 2020-10-27T11:16:05 | 2020-10-27T11:16:05 | 307,382,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from django.urls import path
from icecreamratings_projcet.users.views import (
user_detail_view,
user_redirect_view,
user_update_view,
)
app_name = "users"
urlpatterns = [
path("~redirect/", view=user_redirect_view, name="redirect"),
path("~update/", view=user_update_view, name="update"),
path... | [
"wlgudrlgus@naver.com"
] | wlgudrlgus@naver.com |
46061121dc8d4f34e77a91f018bcfd036c3bfeb4 | 2f963d7989749037a3ec27aaa39b31416b33cbb2 | /ib_users/views/get_user_details_from_usernames/tests/__init__.py | 9ac1df71a9a7863cc83f6fffe550618bd1f21516 | [] | no_license | migsantos121/phd3-backend | 3cd014908856c995de3c4473d82059bc9c1b5794 | 9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e | refs/heads/master | 2022-12-12T17:25:59.334509 | 2020-03-09T09:24:08 | 2020-03-09T09:24:08 | 245,991,086 | 0 | 0 | null | 2022-06-28T14:45:50 | 2020-03-09T09:17:18 | Python | UTF-8 | Python | false | false | 304 | py | # Endpoint Configuration
APP_NAME = "ib_users"
OPERATION_NAME = "get_user_details_from_usernames"
REQUEST_METHOD = "post"
URL_SUFFIX = "users/usernames/"
from .test_case_01 import TestCase01GetUserDetailsFromUsernamesAPITestCase
__all__ = [
"TestCase01GetUserDetailsFromUsernamesAPITestCase"
]
| [
"migsantos121@outlook.com"
] | migsantos121@outlook.com |
192579fc38cc68f8e715b2436b91946626f05247 | 747f759311d404af31c0f80029e88098193f6269 | /addons/training_room/training_room.py | cc3e095607ac84d12dfecb24873a6a8013f954a7 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | /home/openerp/production/extra-addons/training_room/training_room.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
8f3a268d0ec0eaaf90cc0c89f0fe0766ee974c5a | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/utility/test_xl_col_to_name.py | 2825d4b5c9fe0888c7aa52ba32d837d01dc4e18d | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 1,515 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
import unittest
import warnings
from ...utility import xl_col_to_name
class TestUtility(unittest.TestCase):
"""
Test xl_col_to_name() uti... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
acfe1e5fdabe708e131174f39c9bc40f741babb0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_maltreating.py | 6f0f0ae372087c9a1569c183fc0592e2807f290b | [
"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 | 256 | py |
from xai.brain.wordbase.verbs._maltreat import _MALTREAT
#calss header
class _MALTREATING(_MALTREAT, ):
def __init__(self,):
_MALTREAT.__init__(self)
self.name = "MALTREATING"
self.specie = 'verbs'
self.basic = "maltreat"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
26b7a7b1e9f6bb8b0d7ab6d73e12dc2bffdcb7e7 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /run/bulk_order/insert_canceled_SjSzNHG-2.py | c25c05a95105d64ba05e733196db6e86eccf3877 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
import random
import time
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/mysql")
from QueryStkpriceDBNHG import QueryStkSz
from QueryStkpriceDBNHG import QueryStkSh
# ... | [
"418033945@qq.com"
] | 418033945@qq.com |
154921eb4442071015372678277580623417e7dc | 7aefdc2a315f682ff03103b9364103fe88eae76a | /harmony/settings/aws.py | 6143b4c0647139e87abe907a5c45814a4906580e | [] | no_license | johnfelipe/HarmonyLab | 032913d60a22909db745ea0b3bc09ab49ce81368 | 8a679ac611a18f08ecae6af58cf23dc32cdac7a1 | refs/heads/master | 2020-12-11T02:02:48.100012 | 2014-03-13T20:26:37 | 2014-03-13T20:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | # Amazon Web Services (AWS) settings
from harmony.settings.common import *
| [
"abarrett@fas.harvard.edu"
] | abarrett@fas.harvard.edu |
572247a7fae95f6c0a8df09df833154268dba90e | 5995eb33f64467273db3b63beaf70e648a053fd0 | /Bai6.py | b60a67dfbd34d8e2fb2b5de0a546a87a43de4fc7 | [] | no_license | lbbquoc/Python-Lab | c0068a1c81590850fb2893c01685ee6ea07db9c5 | 8b227ebc1e38c0080abef9284f07717d338e3015 | refs/heads/master | 2022-04-17T11:25:19.011062 | 2020-04-21T02:20:16 | 2020-04-21T02:20:16 | 257,454,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,596 | py | import math
import random
class Point2D:
def __init__(self,x,y):
self.x = x
self.y = y
def CalDistance(x1,y1,x2,y2):
diemA = Point2D(x1,y1)
diemB = Point2D(x2,y2)
return round(math.sqrt(pow(diemB.x - diemA.x,2) + pow(diemB.y - diemA.y, 2)),2)
# round dùng để làm tròn cú... | [
"="
] | = |
de14d2a3fe9fafb2f89c91e98c86b209c7ff70be | cbe264842df4eae3569b28ed4aae9489014ed23c | /RedBook/ch2/my_httpserver.py | 5b49fd27d00328f1582ef2d9d776d3770f7b1a2f | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from http.server import HTTPServer, BaseHTTPRequestHandler
class MyHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response_only(200, 'OK')
self.send_header('Content-Type', 'text/plain')
self.end_headers()
self.wfile.write(b"Hello World")
if __name__ == "__main__":
... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
d28335641d8721cac96e45ba527c31bd369024bc | c7d6fbccc4e72a2fb3ab9f5dc31bb74e6c86fc1e | /bw2regional/xtables.py | 8a814fe1a3f3211224e8ac45a81cb62d52480171 | [] | permissive | brightway-lca/brightway2-regional | 5c97f5fd1284254e53ef104c12ce2395886f439c | d11bea7555b915348aff6432de6afe9034271256 | refs/heads/main | 2023-06-09T17:27:01.732840 | 2023-04-28T13:49:29 | 2023-04-28T13:49:29 | 246,269,473 | 2 | 2 | BSD-3-Clause | 2023-05-24T14:51:24 | 2020-03-10T10:18:53 | Python | UTF-8 | Python | false | false | 1,601 | py | from .loading import Loading
from .meta import extension_tables, geocollections
from .validate import xtable_validator
class ExtensionTable(Loading):
_metadata = extension_tables
validator = xtable_validator
matrix = "xtable_matrix"
@property
def filename(self):
return super(ExtensionTabl... | [
"cmutel@gmail.com"
] | cmutel@gmail.com |
d06ab9b80ef1af8c850a34a8d5715c716e3849ee | a9f767c9abe9ef645b505ec33661b815e8021432 | /kaybee/plugins/widgets/handlers.py | 6d901d3bdb92ff21877ac86629873051028df02e | [
"Apache-2.0"
] | permissive | pauleveritt/kaybee | bcd402a1f28e3e37f42217d9550c0981a494bfe4 | a00a718aaaa23b2d12db30dfacb6b2b6ec84459c | refs/heads/master | 2022-06-18T04:58:52.286306 | 2018-08-21T13:52:10 | 2018-08-21T13:52:10 | 115,625,247 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | import inspect
import os
from typing import List
from docutils import nodes
from docutils.readers import doctree
from sphinx.application import Sphinx
from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.environment import BuildEnvironment
from sphinx.jinja2glue import SphinxFileSystemLoader
from kaybee... | [
"pauleveritt@me.com"
] | pauleveritt@me.com |
db82a4ebbfaf27c4005b0b52244b7e7b6cef93d7 | e70a17e8a37847a961f19b136f3bbe74393fa2af | /RPI/build/image_view/catkin_generated/pkg.develspace.context.pc.py | 9059bfd521c98ccd13c2659ef88db64293193e9a | [
"MIT"
] | permissive | Mondiegus/ROS-4x4-CAR-AI | 1413ead6f46a8b16005abeea3e0b215caa45f27e | 124efe39168ce96eec13d57e644f4ddb6dfe2364 | refs/heads/Master | 2023-07-14T23:56:53.519082 | 2021-03-27T17:28:45 | 2021-03-27T17:28:45 | 334,233,839 | 0 | 0 | MIT | 2021-02-02T13:00:30 | 2021-01-29T18:46:16 | Makefile | UTF-8 | Python | false | false | 512 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/pi/catkin_ws/devel/.private/image_view/include".split(';') if "/home/pi/catkin_ws/devel/.private/image_view/include" != "" else []
PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure".replace(';', ' ')... | [
"Mondiegus9@gmail.com"
] | Mondiegus9@gmail.com |
4f6ae9cc7f5fb40a62904cfab554ac8996d10568 | f802c49ab73cadfab92253e2c5c7d2dd96180576 | /mcq_v2/mcq_v2/forms.py | cd294af3dc24e988ee58ed79e830f8d0afeb25d4 | [] | no_license | anushiv25/Coding-IDE | 258ed2a0f1fa3ceba97981e543ce665bc39f280e | 81cacbe350d426680a157a9eb617641eb92d3f28 | refs/heads/master | 2021-11-05T19:43:08.175946 | 2019-02-19T14:14:50 | 2019-02-19T14:14:50 | 170,346,050 | 0 | 1 | null | 2021-10-31T18:26:18 | 2019-02-12T15:54:30 | CSS | UTF-8 | Python | false | false | 2,314 | py | from django import forms
from django.contrib.auth import get_user_model
User=get_user_model()
CHOICES= [
('CS', 'Computer Science'),
('IT', 'Information Technology'),
('Civil', 'Civil'),
('Mechanical', 'Mechanical'),
('EC', 'Electronics & Communication'),
]
class signup_form(forms.Form):
name... | [
"dwevediar@gmail.com"
] | dwevediar@gmail.com |
7953dfc4ee37a3ff7e911c16aee6627b68443f3b | ff734af8ae77fd1e0af7ebee85ec7321b50cbdea | /challenges/repeated_word/repeated_word.py | 9e56bac66e9f3d2f73da71faebc510050dcaa536 | [] | no_license | LeoKuhorev/data-structures-and-algorithms | 005c0ae4a84762437b966d284fb28d3cf5a17b17 | 59d9d9ccc35ef7e475aeea820f1800db8bf42807 | refs/heads/master | 2023-01-20T12:46:03.141941 | 2022-05-16T21:44:08 | 2022-05-16T21:44:08 | 215,949,237 | 0 | 0 | null | 2023-01-07T15:28:59 | 2019-10-18T05:42:41 | JavaScript | UTF-8 | Python | false | false | 658 | py | def repeated_word(text: str) -> str:
"""Return first repeated word in the given text. If all words are unique returns None
Args:
text (str): Given text
Raises:
TypeError: If the passed in text is not a string
Returns:
str: First repeated word
"""
if not type(text) is str... | [
"kuhorev.leonid@gmail.com"
] | kuhorev.leonid@gmail.com |
59c6e82f2a13acca52e2f000798ad80f03cfdc58 | b33d1d4b74d375a2050baf80cda5b8571aff7462 | /s14/day02/集合.py | 2fee61ee0195463eae45991ab61b369b0541380b | [] | no_license | sunwang33/code | e979e1b11209200fba07a99d926d76f09c83b514 | 377f3e919555bf0f02ef56c9395d57992c84fcfd | refs/heads/master | 2021-01-16T18:10:08.358744 | 2018-01-01T02:58:43 | 2018-01-01T02:58:43 | 100,045,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | __author__ = "sun wang"
list_1 = [1,4,5,7,3,6,7,9]
list_1 = set(list_1)
print(list_1 , type(list_1))
list_2 = set([2,6,0,66,22,4])
print(list_1 , list_2 )
print(list_1.intersection(list_2))
print(list_1.union(list_2))
print(list_1.difference(list_2))
print(list_2.difference(list_1))
print(list_1.issubset(list_2))
prin... | [
"330463670@qq.com"
] | 330463670@qq.com |
605c5ee633eb838f3f770819ac8122cce8f0f6d6 | 078918048099dfa2454cfac2d449ea3d77fbec55 | /1392-longest-happy-prefix.py | c6fd8935b35347c62acda8c328e994b31284a44b | [] | no_license | DmitryVlaznev/leetcode | 931784dcc4b465eebda7d22311f5bf5fa879f068 | b2a2afdfc725330545c9a2869fefc7d45ec594bc | refs/heads/master | 2023-06-10T05:42:34.992220 | 2023-06-05T09:54:10 | 2023-06-05T09:54:30 | 241,064,389 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | # 1392. Longest Happy Prefix
# A string is called a happy prefix if is a non-empty prefix which is
# also a suffix (excluding itself).
# Given a string s. Return the longest happy prefix of s .
# Return an empty string if no such prefix exists.
# Example 1:
# Input: s = "level"
# Output: "l"
# Explanation: s contai... | [
"dmitry.vlaznev@datadvance.net"
] | dmitry.vlaznev@datadvance.net |
36fa4966ad339ed2e49810b3390600b44cf16427 | c9fe05f893deff75232aabca4e877c144972249a | /arcpyenv/arcgispro-py3-clone/Lib/site-packages/arcgis/features/_analysis.py | 67fb3985552a133f2d50b0570a1f0c58b80be5a8 | [
"Python-2.0"
] | permissive | SherbazHashmi/HackathonServer | 4d1dc7f0122a701a0f3a17787d32efe83bc67601 | a874fe7e5c95196e4de68db2da0e2a05eb70e5d8 | refs/heads/master | 2022-12-26T06:46:33.893749 | 2019-11-03T10:49:47 | 2019-11-03T10:49:47 | 218,912,149 | 3 | 3 | null | 2022-12-11T11:52:37 | 2019-11-01T04:16:38 | Python | UTF-8 | Python | false | false | 85,268 | py | import logging as _logging
import arcgis
from datetime import datetime
from arcgis.features import FeatureSet
from arcgis.mapping import MapImageLayer
from arcgis.geoprocessing import DataFile, LinearUnit, RasterData
from arcgis.geoprocessing._support import _execute_gp_tool
_log = _logging.getLogger(__name__)... | [
"sherbaz.hashmi@gmail.com"
] | sherbaz.hashmi@gmail.com |
7cc28369b53704bdce93420c3d80c2239a0c75b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03732/s203879619.py | 5aea1f8b02c534b21ae12dcaf3b7a37028bead41 | [] | 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 | 4,955 | py | #!/usr/bin/env python3
import sys
# import time
# import math
# import numpy as np
# import scipy.sparse.csgraph as cs # csgraph_from_dense(ndarray, null_value=inf), bellman_ford(G, return_predecessors=True), dijkstra, floyd_warshall
# import random # random, uniform, randint,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d396a8f8b20811e04bbd7ca37975e7cbd6e02b53 | e1ef3cf26898340de4b1a6f64d3ec399a169e873 | /organizer/migrations/0003_startup_data.py | c6ca357021080b8d600e05246675cc5d4466fadb | [] | no_license | JMorris1575/djututorial | 1e6db5b2513a92adc5016c77998af759b99d80db | 307b4859ca5cc8992ec113144e174c9238449cbf | refs/heads/master | 2021-01-10T16:30:28.600985 | 2016-03-31T00:23:11 | 2016-03-31T00:23:11 | 50,468,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import date
from django.db import migrations
STARTUPS = [
{
"name": "Arachnobots",
"slug": "arachnobots",
"contact": "contact@arachnobots.com",
"description":
"Remote-controlled internet-enab... | [
"FrJamesMorris@gmail.com"
] | FrJamesMorris@gmail.com |
992cea9f56e775cee4b0e905475671a7ec84941a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/180/usersdata/276/112623/submittedfiles/matriz1.py | 827d37ca5f8c411adcdb865dc0e68dabe5c30d8d | [] | 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 | 1,244 | py | # -*- coding: utf-8 -*-
import numpy as np
def primeiralinha (matriz):
for i in range (0,matriz.shape[0],1):
for j in range (0,matriz.shape[1],1):
if matriz[i,j]==1:
return (i)
def ultimalinha (matriz):
for i in range (0,matriz.shape[0],1):
for j in range (0,ma... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
943d06d2f6e39a13dc30d6fb4ec46fdbb3e6bf10 | baaaa9f2d3049a5bd8ec266af84b00b43eab8bbf | /core/migrations/0045_image_size.py | dedac82a43cd86f1fa2394f393e51d6aaf13745b | [] | no_license | mary-lev/edu_test | 13efd9e566ad99db4e2be03a391c48be609be336 | 51a18e6be3098b488e98db41f1226cb40a9b13d1 | refs/heads/master | 2023-01-29T08:01:57.701848 | 2020-12-13T16:31:58 | 2020-12-13T16:31:58 | 302,146,712 | 1 | 0 | null | 2020-12-06T22:11:44 | 2020-10-07T20:00:10 | Python | UTF-8 | Python | false | false | 426 | py | # Generated by Django 3.1.2 on 2020-12-11 14:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0044_auto_20201211_1338'),
]
operations = [
migrations.AddField(
model_name='image',
name='size',
... | [
"marylevchenko@gmail.com"
] | marylevchenko@gmail.com |
39e8ceb3de54d0bf19c11557589193abe58821d0 | 81dfc5e875ac18e531b0582399901eab4e555cdd | /kalliope/neurons/neurotransmitter/__init__.py | 8fe2a755b8a0969cb852184a1b9b60e548a85f66 | [
"MIT"
] | permissive | azrael11/kalliope | 3bdcf200d5a14f08045263cba0f564bec67afbe1 | a68377d2c812fa9f9db5e9bb998b595e64363418 | refs/heads/master | 2021-01-12T01:37:39.898237 | 2016-12-28T15:25:47 | 2016-12-28T15:25:47 | 78,412,059 | 1 | 0 | null | 2017-01-09T09:06:33 | 2017-01-09T09:06:33 | null | UTF-8 | Python | false | false | 46 | py | from neurotransmitter import Neurotransmitter
| [
"nico.marcq@gmail.com"
] | nico.marcq@gmail.com |
a48349645033c2bb643c69ebbb80cd98c1b165f8 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_sp_Reorgs_qsplit_TholeExp_emp_a/Jobs/C8_BTBT/C8_BTBT_anion_neut_inner1_outer0/C8_BTBT_anion_neut_inner1_outer0.py | 4307ea1e54784e8a85b5358d45654ab5db863908 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 7,466 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
a47dfda2c685c8b5a97a0759d2410c2d53eca94d | c6e5bbafd810d23e0ee46d69026cba35339d1dbd | /search/constants.py | 09cdc69a1b0e68f0ef3770ca45ce11fb198cf38b | [] | no_license | mfonism/django-inqueerstigate | 9c8b729848bf3df9fb9ec991ec47391b69ad7b66 | af5420bf8adf6aa89533cd1462d9eeed6e8c88db | refs/heads/main | 2023-05-26T12:59:55.774989 | 2021-06-07T11:46:48 | 2021-06-07T11:46:48 | 323,681,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | NO_FACE_FOUND_ERROR_CODE = "no face found"
MULTIPLE_FACES_FOUND_ERROR_CODE = "multiple faces found"
| [
"mfonetimfon@gmail.com"
] | mfonetimfon@gmail.com |
a7c965bda295df19c2aaa63b9a6c4712b018af08 | 01ec983c0a3cc35857d1900b8f26bb7e8ad93c2f | /Image_Processing_in_OpenCV/Geometric_Transformations_of_Images/Image_Thresholding/Otsu's_Binarization.py | 2121e75d27dd1263e93dd4b74226da0d5eac8936 | [] | no_license | Joevaen/Opencv_On_CT | f88560c2eb3655e09e21ffe012d5c531c0742c94 | 3c896b4791d99c5be4fc21054aeeb25feb5d2e33 | refs/heads/main | 2023-03-18T21:10:28.772470 | 2021-03-04T07:34:02 | 2021-03-04T07:34:02 | 343,656,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
img = cv.imread('/home/qiao/PythonProjects/Opencv_On_CT/Test_Img/10.jpg',0)
# global thresholding
ret1,th1 = cv.threshold(img,200,255,cv.THRESH_BINARY)
# Otsu's thresholding
ret2,th2 = cv.threshold(img,0,255,cv.THRESH_BINARY+cv.THRESH_OTSU)
# Otsu... | [
"joevaen@126.com"
] | joevaen@126.com |
831fdc372ca74798f62c475972295be51a4f1e8b | 78c4ccb183a99ebaabcdc3a3a69f029e4aee0f5c | /AlgorithmStudy/백준/19 해시맵/1620 나는야 포켓몬 마스터 이다솜(10.26).py | f5af375ee7308b90025d55f3cf56d9a6be83d7c7 | [] | no_license | cladren123/study | ef2c45bc489fa658dbc9360fb0b0de53250500e5 | 241326e618f1f3bb1568d588bf6f53b78920587a | refs/heads/master | 2023-09-02T02:21:24.560967 | 2021-11-05T12:20:06 | 2021-11-05T12:20:06 | 368,753,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py |
import sys
input = sys.stdin.readline
# n : 포켓몬 개수, m : 문제의 개수
n, m = map(int, input().split())
# 시간복잡도를 피하기 위해 딕셔너리를 2개 사용
dogam = dict()
dogam2 = dict()
# 한개의 딕셔너리는 숫자,이름 나머지 하나는 이름,숫자 순으로 만든다.
for number in range(1,n+1) :
name = input().strip()
dogam[str(number)] = name
dogam2[name] = str(number)
... | [
"48821942+cladren123@users.noreply.github.com"
] | 48821942+cladren123@users.noreply.github.com |
2f754b68ad9d915c95dc469bc7caf5a5e105f0a6 | 1882ba2b04e2230692e7da0b963f20ccf859ce34 | /Collect/VIIRS/LST_daily.py | b464ba525a4313c4144963048046d4c6ac92bb0a | [
"Apache-2.0"
] | permissive | TimHessels/watertools | 908230ae0f45de5379e6808fec827c55245c1cc2 | 2fc3680bfc6ad34bd2a11fba4cf302c5b84e5d78 | refs/heads/master | 2023-08-16T16:18:47.003632 | 2023-08-06T15:35:49 | 2023-08-06T15:35:49 | 158,684,796 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 9 13:16:00 2022
@author: timhe
"""
import sys
from watertools.Collect.VIIRS.DataAccess import DownloadData
def main(Dir, Startdate, Enddate, latlim, lonlim, Waitbar = 1):
"""
This function downloads daily LST data from VIIRS
interval, and spatial extent.
... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
595cccc02dc74de53021e84d1eae7a581cf94a0d | e17a64f1a063fca4fc7d833f85239a39a973c119 | /tests/test_weight_allocations.py | 503a1d58c1e6ce57a2d21d9b2e518549b625373a | [
"Apache-2.0"
] | permissive | stjordanis/moonshot | ff18694a3977fd01a40cabaae32907aae56bdb9f | d79cf26e7fb5ce3fcb34060771ea4992e19dc46a | refs/heads/master | 2023-07-03T08:24:24.729332 | 2021-04-13T15:48:47 | 2021-04-13T15:48:47 | 271,562,585 | 0 | 0 | Apache-2.0 | 2020-06-11T14:07:20 | 2020-06-11T14:07:19 | null | UTF-8 | Python | false | false | 4,746 | py | # Copyright 2018 QuantRocket LLC - All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"brian@quantrocket.com"
] | brian@quantrocket.com |
80d15003ccee80d204c7d0649c3f5102c1bf4b8d | 527d3d38b57b9f12ea6e91167a9a06149a89044b | /wxFEFactory/python/tools/dolphin/rsfj99/datasets.py | 3398e379ff9c3986d2ef344ba217ef01a1894a2e | [] | no_license | czastack/wxFEFactory | 0d7ee77e542234c039b6056aeb44cb2a40341714 | bed824746266734e40103010c0132aad069d723a | refs/heads/master | 2021-06-04T11:31:05.808038 | 2019-06-03T18:51:01 | 2019-06-03T18:51:01 | 97,013,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,585 | py |
COMMON_HEAD = ("名称", "说明"), (200, 960)
LISTS = (
{
"name": "potion",
"caption": "回复",
"head": COMMON_HEAD,
"hascount": True,
"items": (
("竹制水筒", "将竹子切开做成的水筒生命力80回复 生气250取得 五成饱"),
("甜酒", "孩子也能喝的白色甜米酒生命力100回复 生气300取得 五成饱"),
("般若... | [
"2464851375@qq.com"
] | 2464851375@qq.com |
17c5d396a00398931532c3a8964393328e332685 | ff88a620c7437af9af946643cd65f06c99fe3601 | /IntermediateCodeAndTesting/JunePsychoPyTesting/dondersExperimentsWithData/DondersAuditory_lastrun.py | e061da7c07226c9b77aea637be2a0ad5f8141241 | [] | no_license | bissettp/TrainedInhibitionTask | c2f20dadbb0e440c4fcf2bd3c4d670a7416df93c | 82727bd3ffa101209a61f2ff4f057f8896522d5d | refs/heads/master | 2020-06-06T20:02:16.470092 | 2015-06-23T17:56:15 | 2015-06-23T17:56:15 | 34,129,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,472 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy2 Experiment Builder (v1.82.01), Tue Jun 2 14:44:04 2015
If you publish work using this script please cite the relevant PsychoPy publications
Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neurosci... | [
"pbissett@stanford.edu"
] | pbissett@stanford.edu |
6b0c978d955aa41ed67d4d22e3bf81f7d1c4269f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_decorating.py | 664550501ff25b0218fee67c62a52ded0ce21da4 | [
"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 | 254 | py |
from xai.brain.wordbase.verbs._decorate import _DECORATE
#calss header
class _DECORATING(_DECORATE, ):
def __init__(self,):
_DECORATE.__init__(self)
self.name = "DECORATING"
self.specie = 'verbs'
self.basic = "decorate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
400b1595acdef016b6a3e38e8563f17404ebaac7 | 7b315bbe8c85ce05e6c51112e985ae1b392d83f5 | /métodos de classe e static metod/metod_staticmetod.py | 65d27469fda2f7bcaba11e7083ced4d807d76800 | [] | no_license | Cica013/aprendendoPython | e9f993b1b144e294a338a53f2bc36673d3cd00a6 | 9c964f2322e3d52b39a811aceec64b169bab4e10 | refs/heads/main | 2023-08-10T20:12:47.640239 | 2021-10-06T21:01:19 | 2021-10-06T21:01:19 | 385,755,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from random import randint
class Pessoa:
ano_atual = 2021
def __init__(self, nome, idade):
self.nome = nome
self.idade = idade
def get_ano_nascimento(self):
print(self.ano_atual - self.idade)
# Métodos de classes não precisam receber a instância, mas sim a classe em si.
@... | [
"61808853+Cica013@users.noreply.github.com"
] | 61808853+Cica013@users.noreply.github.com |
7c045e6cdaa81eee4b7557bc8cd5d770c25980d1 | 482ffa5e0848030b9327eb58215f6b626f825e5d | /accounts/migrations/0003_transactions.py | 7afe9b9c6cb159569599a8e8daafa4c6def624ed | [] | no_license | syash5/Django-Banking-App | 6400d862a12d2fd4b555346722c756b6f4292e34 | 7dd9ed1286b61e1a508943b05b1616620fbf0118 | refs/heads/master | 2020-04-17T11:17:29.478938 | 2019-01-24T08:12:47 | 2019-01-24T08:12:47 | 166,534,958 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # Generated by Django 2.1 on 2019-01-13 18:14
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
atomic = False
dependencies = [
('accounts', '0002_auto_20190112_0635'),
]
operations = [
migra... | [
"you@example.com"
] | you@example.com |
1366562def67d68e2dab7e07c82a5d1954cd37b5 | beb9ac9ed895b375fbea240bf7d56281d6a0a481 | /20200715/test4.py | 588c3c362dc327af8a8622e5ff59c276f93f66f9 | [] | no_license | MinjeongSuh88/python_workspace | 5b0c7e2a7b3543e65df1f07066e4a52f23294ac5 | b13afdc8cf4e42496fa2b5c8df3c5effc7f7488d | refs/heads/master | 2022-11-30T11:05:52.347243 | 2020-08-14T09:04:42 | 2020-08-14T09:04:42 | 285,185,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | print('python')
# 주석 : 한줄 주석
a=10 #a변수에 10의 값을 대입한다.
b=1+1 #b변수에 1+1의 값을 대입
c=a+b #변수에 a변수의 값과 b변수의 값을 더해서 대입
print('--------------')
print('=================')
msg="문자열" #문자열은 싱글, 더블 쿼테이션으로 둘 다 묶을 수 있음
print(msg)
print('text')
print("text2")
print('''text''')
'''
#없이 문자열로 주석을 다는 경우도 있음. 어차피 출력되지 않기 때문에
코드에 설명이나 ... | [
"69196506+MinjeongSuh88@users.noreply.github.com"
] | 69196506+MinjeongSuh88@users.noreply.github.com |
eb9c59510c70175b05a427bf4b1f3f9c77a87a1c | 2a6e5fb59600444dc8c4fe3b8f7054813b55a8c4 | /pytorchvideo/models/vision_transformers.py | 54a3154a0d17cd7d95aee67e32c4386216180177 | [
"Apache-2.0"
] | permissive | strategist922/pytorchvideo | 92b328e2c6993fc8e23413d9164fe84fda4b3733 | 7614451e917c07271c138b5bd6d6746d4f41fbb2 | refs/heads/master | 2023-07-24T21:57:20.135527 | 2021-08-31T20:21:53 | 2021-08-31T20:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,678 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from functools import partial
from typing import Callable, List, Optional, Tuple
import torch
import torch.nn as nn
from pytorchvideo.layers import MultiScaleBlock, SpatioTemporalClsPositionalEncoding
from pytorchvideo.layers.utils import round_w... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7bfc60af5297c781220498970f2bba57d33b8fe6 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /120.py | 665b598078de636f20809fca40b17315cda10277 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | class Solution(object):
def minimumTotal(self, triangle):
"""
:type triangle: List[List[int]]
:rtype: int
"""
if len(triangle)==0:
return 0
if len(triangle[0])==0:
return 0
dp=len(triangle[-1])*[0]
dp[0]=triangle[0][0]
f... | [
"1533441387@qq.com"
] | 1533441387@qq.com |
4840a6a9eb97cf1d681992490fb82a335d0548ee | 5a25f4f5f9c7cba03f9b5848eafc01a760c88768 | /reduction/pipeline_scripts/member.uid___A001_X1296_X1d3.hifa_calimage.casa_pipescript.py | 225beed4b342927fd883933387885ab8b02b6a9f | [] | no_license | ALMA-IMF/reduction | b3579a548fe20193b807a7415a040f351c879beb | de606cc6bc542f088223ce84082ff333739c9007 | refs/heads/master | 2023-06-22T13:21:13.841999 | 2023-06-12T09:17:50 | 2023-06-12T09:17:50 | 115,018,799 | 9 | 29 | null | 2023-06-12T09:17:51 | 2017-12-21T15:13:55 | Python | UTF-8 | Python | false | false | 2,919 | py | from recipes.almahelpers import fixsyscaltimes # SACM/JAO - Fixes
__rethrow_casa_exceptions = True
context = h_init()
context.set_state('ProjectSummary', 'proposal_code', '2017.1.01355.L')
context.set_state('ProjectSummary', 'piname', 'unknown')
context.set_state('ProjectSummary', 'proposal_title', 'unknown')
context.s... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
710cc7fb75b1a26eb048b1c7af7d321b631c07b9 | b7a2a80843fa5141ffb9c7b4439f1d2ac713af30 | /U4_5_Stadtlauf_Bern_Tupel.py | 012d21ba32de43ce2e747f6ee615e4196af163d0 | [] | no_license | wunnox/python_grundlagen | df1bc2b9b1b561bd6733ccc25305e799a48e714e | fa84d7aae7332a7acbb3ba7ff0fe2216cc345fc0 | refs/heads/master | 2023-05-01T12:19:23.208445 | 2023-04-16T11:29:01 | 2023-04-16T11:29:01 | 222,099,539 | 2 | 3 | null | 2019-12-19T10:56:43 | 2019-11-16T12:57:54 | Python | UTF-8 | Python | false | false | 6,801 | py | #! env python3
####################################################
#
# Uebung:
# Im untenstehnden Code soll die Figur zum Zytglogge laufen
# Diese Wegstrecke im Tupel "zytglogge" hinterlegt
#
# Lesen Sie dieses Tupel ein und lassen Sie mit den Daten die Figur den Weg ablaufen.
# Hierzu benötigen Sie die Funktion x,y=g... | [
"peter.christen@cssgmbh.ch"
] | peter.christen@cssgmbh.ch |
caf4542e53284e2977880c2cb97c6a8fec09afc4 | d2f9b928972e71b94c428db0ca9cc2ffedcf29e6 | /ui/purchase_ui.py | b107f6ddced7d67f12042c337793ce0c52bba997 | [] | no_license | XHApplet/GoodsBook | e69be00ab9dfe7746f6f7f9264828ef20a20bf64 | 811bf2e0d2a0158a7a989cbe6abe4b106ecc5b81 | refs/heads/master | 2022-10-30T16:22:33.372798 | 2019-04-12T06:20:42 | 2019-04-12T06:20:42 | 273,460,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,305 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\mycode\GoodsBook\ui\purchase.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
... | [
"1323242382@qq.com"
] | 1323242382@qq.com |
dd760e6f9b4ff2ec08119811edbb68ae2a2b08b9 | f22d31484a12d001826c1775a6f2d245a720fce8 | /Introdução à Programação com Python/Do autor/Códigi fonte e listagem/listagem/capitulo 11/11.25 - Acessando um campo do tipo data.py | 0501a6557cd74191d14b35613f9ec6f3f88ff792 | [] | no_license | eduardoprograma/linguagem_Python | 9eb55f0a5a432a986e047b091eb7ed7152b7da67 | 942aba9146800fc33bbea98778467f837396cb93 | refs/heads/master | 2021-07-07T20:48:37.673101 | 2020-07-31T21:24:17 | 2020-07-31T21:24:17 | 159,852,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2017
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpressão - ... | [
"eduardo.candido@fatec.sp.gov.br"
] | eduardo.candido@fatec.sp.gov.br |
6f7fae7437a7d13832deec4352974a08fee85933 | effdd4579ce829f0965e59d3282504ccdca3278e | /apps/users/models.py | a7e464a9005dd9491e878679604a3b0ee1e071fe | [
"Apache-2.0",
"MIT"
] | permissive | Liuyanzhi/OnlineMooc | 55cad27d8f2168dd6a18f850b923d6c866024c24 | 88e49e0bd8ab3002c3150b6ad8bd2a8ef7b6deb8 | refs/heads/master | 2022-11-29T12:06:02.193585 | 2020-07-29T15:30:40 | 2020-07-29T15:30:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | from django.db import models
from datetime import datetime
from django.contrib.auth.models import AbstractUser
# Create your models here.
class UserProfile(AbstractUser):
# 自定义的性别选择规则
GENDER_CHOICES = (
("male", u"男"),
("female", u"女")
)
# 昵称
nick_name = models.CharField(max_len... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
274b7e630d7bb6048b374afa3e25f1d914cc5f4f | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_py3.py | 095e187951cbf55221db70bf9c50748087ff0832 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,569 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | xiafu-msft.noreply@github.com |
24bb14de8d57979dddcf4ba16b0a388f44b51dc0 | 27fd33abe12f48b0cfdafef7a624e4a96b311744 | /stock_invoice_chained_delivery/__openerp__.py | 520dac5979944730e9f09fa6a13a0d84e2876e7f | [] | no_license | mgielissen/julius-openobject-addons | 7b9966ed2894ce82b5fb396bca1bd9984f263737 | 3e35f7ba7246c54e5a5b31921b28aa5f1ab24999 | refs/heads/master | 2021-01-16T20:41:49.131160 | 2016-03-01T12:31:05 | 2016-03-01T12:31:05 | 52,984,093 | 1 | 0 | null | 2016-03-02T17:53:42 | 2016-03-02T17:53:42 | null | UTF-8 | Python | false | false | 1,456 | py | # -*- coding: utf-8 -*-
#################################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 Julius Network Solutions SARL <contact@julius.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under th... | [
"mathieu@julius.fr"
] | mathieu@julius.fr |
302aad1cf1976fdcf53cdcf52935b5bf7730306f | a3f4fc66a64aaf359fbc7176b3b2335db73c5dd9 | /features/environment.py | 821222beae4c53daad3f8e45a39a3bed7f4531f2 | [] | no_license | hpifu/go-cloud | cd6b13fe0f757a5d961f8be15cbc3844d6d5282f | fd4edabddca679c19c887c8a019e1a1ecce02e0b | refs/heads/master | 2021-08-02T09:21:05.245600 | 2020-01-03T13:07:28 | 2020-01-03T13:07:28 | 203,243,843 | 0 | 0 | null | 2021-07-26T23:44:47 | 2019-08-19T20:16:13 | Go | UTF-8 | Python | false | false | 3,043 | py | #!/usr/bin/env python3
import pymysql
import redis
import subprocess
import time
import requests
import datetime
import json
import socket
from behave import *
register_type(int=int)
register_type(str=lambda x: x if x != "N/A" else "")
register_type(bool=lambda x: True if x == "true" else False)
config = {
"pr... | [
"hatlonely@gmail.com"
] | hatlonely@gmail.com |
2b775a08b758b5a4abcdf87c7a14a1b6965a4cdc | 22bec7f5d2c2bc9b6fa0c23d6733bf6d81d41982 | /src/스택_큐/Level_2_주식가격.py | 7f564eab4d0a16ee36b6b487f386b67870da5a90 | [
"MIT"
] | permissive | taki0112/coding_interview | 3cb5eeb5b545cc15de84551370923e307a93293d | 06b61646c3fafb63ac74b1170a4d0a77f02231a0 | refs/heads/master | 2021-08-07T08:09:13.392815 | 2020-04-22T10:11:52 | 2020-04-22T10:11:52 | 158,521,986 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | def solution(prices):
answer = []
for i in range(len(prices) - 1) :
for j in range(i+1, len(prices)) :
if prices[i] > prices[j] :
answer.append(j - i)
break
else :
answer.append(len(prices) - 1 - i)
else :
answer.append(0)
... | [
"takis0112@gmail.com"
] | takis0112@gmail.com |
d6af03603aafba2f633ce7da7e0c01172f366049 | 59199c7e4e8a829fc7bce0774e2a3c9b62a68c39 | /casa_reduction_pipeline/casa_sma_reduction_solsyssetjy_with_quicklooksma.py | 519ec2dc7ab773d7afab1cb505b100c478e3c979 | [] | no_license | Smithsonian/sma-data-reduction | 379a9913b07e1fb067d70cb79c6ac7245d5bd781 | 9580e2464ad36ab7cd11e487bb1fdf296479f3fb | refs/heads/main | 2023-09-01T21:51:04.439609 | 2023-08-09T22:00:02 | 2023-08-09T22:00:02 | 345,712,396 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,100 | py |
# Based on Todd Hunter's CASA calibration script, modified by Charlie Qi 05/2021
# The measurement set is generated with CASA 5.7.2-4.
import os
import numpy as np
import sys
from datetime import datetime
# Quicklook SMA export functions:
from quicklook_sma.utilities import read_config
# Additional QA plotting routi... | [
"koch.eric.w@gmail.com"
] | koch.eric.w@gmail.com |
57a213ea3ecfa383451d374b3a1edfcc716243f0 | 98590747113ca3022c67c8bc6332b2bf48d7073e | /remove_element.py | 3cf2b6fba59b3b62c77e92e65fe5b24b3c65aee4 | [] | no_license | buxizhizhoum/leetcode | a54291519a23fe82e9f9620e5a2266833696f005 | cf4235170db3629b65790fd0855a8a72ac5886f7 | refs/heads/master | 2022-06-04T02:54:26.381077 | 2022-04-01T06:58:19 | 2022-04-01T06:58:19 | 116,791,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Given an array and a value, remove all instances of that value in-place and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
The order of elements can be changed. It doesn'... | [
"mapeaks@126.com"
] | mapeaks@126.com |
94cc1dad31232e4c2af4388ced4955c649c7b260 | 1287ad54942fd2020a217ab12004a541abb62558 | /pythonexercicios/Ex108/moeda.py | 0a519a376cc21a1e962759b43bc9ca7004e980db | [] | no_license | LuPessoa/exerciciospy- | 637f24581722e547a62380973ca645b55ff65d90 | b5faad818f978bb13a65922edceb17888b73a407 | refs/heads/master | 2023-05-12T04:16:39.847184 | 2021-06-04T03:02:24 | 2021-06-04T03:02:24 | 374,410,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | def aumentar(preço=0, taxa=0):
res = preço + (preço * taxa/100)
return res
def diminuir(preço=0, taxa=0):
res = preço - (preço * taxa/100)
return res
def dobro(preço=0):
res = preço * 2
return res
def metade(preço=0):
res = preço / 2
return res
def moeda(preço=0, moeda='R$'):
ret... | [
"lulenemacedo29@gmail.com"
] | lulenemacedo29@gmail.com |
de1e1e5ebf9637f899dd9c345654941f004e9640 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/chj.py | 1307c45a41d4d9cbfc10b6b63594a73019e25098 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
000e48d54904ebe297662105a424f17f9f536e69 | b5bb27d90690582783426baaae5bcb4735eaa8bf | /tests/rule_engine/normalisation_rule.py | 18ed5525b29123c7fca2111848598df8fe9eccf8 | [] | no_license | leondz/ternip | ef94bfbdc1824a3cfabc3e800f8de55bc5ec6140 | 6a24c6419a29352dff1dd1b2ede2105dec3274d2 | refs/heads/master | 2021-01-17T05:04:40.382565 | 2011-06-09T22:04:12 | 2011-06-09T22:04:12 | 1,875,699 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,539 | py | #!/usr/bin/env python
import unittest
from ternip import timex
from ternip.rule_engine import normalisation_rule
class normalisation_rule_Test(unittest.TestCase):
def testApplyValue(self):
rule = normalisation_rule(r'<(\d+)~.+><th~.+><January~.+><(\d{4})~.+>', 'date', 'testApplyValue', r'{#2... | [
"chris@pling.org.uk"
] | chris@pling.org.uk |
d677171f409b4bf6deeacc7549f13d7a184b153e | 9c462effa9f3fa5b5680b1a969198dfea8bb6702 | /code_py/waveLambda/kinwave.py | 7eb85d26422fc92a119a4ebeeb7d28799821c08e | [] | no_license | nvladimi/nliwaves | 51035e56f09c78bd61b9c356f6ba6875ce03e55c | 81969b96a60d9a5f160af489172547ceff2578cd | refs/heads/master | 2023-05-02T07:39:42.470850 | 2023-04-22T04:07:10 | 2023-04-22T04:07:10 | 219,194,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,049 | py | # this is a comment
import numpy as np
eps=1e-12
#-- define functions --
def kfun(p, q, r):
k = p + q - r
return(k)
def Qfun(k,p,q):
#print("Qfun arguments:", k, p, q)
pp = sum(p*p)
qq = sum(q*q)
kk = sum(k*k)
kp = sum(p*k)
ss = kk * pp
if ss < eps:
return(0... | [
"nvladimirova@gmail.com"
] | nvladimirova@gmail.com |
2372ed755ddb8bc26b62dd243e35889f5f63cb2a | 2a3743ced45bd79826dcdc55f304da049f627f1b | /venv/lib/python3.7/site-packages/jedi/third_party/typeshed/third_party/2and3/click/termui.pyi | 95b685076433b2403becc6ca2d84a6d9f8a366c8 | [
"MIT",
"Apache-2.0"
] | permissive | Dimasik007/Deribit_funding_rate_indicator | 12cc8cd7c0be564d6e34d9eae91940c62492ae2a | 3251602ae5249069489834f9afb57b11ff37750e | refs/heads/master | 2023-05-26T10:14:20.395939 | 2019-08-03T11:35:51 | 2019-08-03T11:35:51 | 198,705,946 | 5 | 3 | MIT | 2023-05-22T22:29:24 | 2019-07-24T20:32:19 | Python | UTF-8 | Python | false | false | 3,356 | pyi | from typing import (
Any,
Callable,
Generator,
Iterable,
IO,
List,
Optional,
Text,
overload,
Tuple,
TypeVar,
)
from click.core import _ConvertibleType
from click._termui_impl import ProgressBar as _ProgressBar
def hidden_prompt_func(prompt: str) -> str:
...
def _buil... | [
"dmitriy00vn@gmail.com"
] | dmitriy00vn@gmail.com |
d7f559bd279f22f7496147ac75813dd0b5c527ec | 21590487701d2dcbe1a1c1dd81c6e983f7523cb6 | /opentelemetry-proto/src/opentelemetry/proto/common/v1/common_pb2.pyi | 304feec5abb7924061a837d4a64891a288db52b4 | [
"Apache-2.0"
] | permissive | open-telemetry/opentelemetry-python | 837199e541c03cff311cad075401791ee2a23583 | d8490c5f557dd7005badeb800095cb51b553c98c | refs/heads/main | 2023-08-26T06:47:23.837997 | 2023-08-17T22:35:13 | 2023-08-17T22:35:13 | 185,478,926 | 1,361 | 668 | Apache-2.0 | 2023-09-14T20:48:40 | 2019-05-07T21:13:30 | Python | UTF-8 | Python | false | false | 6,760 | pyi | """
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
class AnyValue(goog... | [
"noreply@github.com"
] | open-telemetry.noreply@github.com |
97563f2780dada381587ccbf25d41f2ad572c094 | 07eaef75c6bc0066d56a8810711e82b0e8b01dda | /options/option_generation/MOMI.py | 45e9f0749ce75b147a73a712866dff4b238e63c4 | [] | no_license | jinnaiyuu/Optimal-Options-ICML-2019 | eb10da610d8ad7828f364c1bdb2e058aa35e7d65 | 4f5cd1776b47f9b16c1022d22b2cc91d6044775b | refs/heads/master | 2021-06-21T06:54:41.968578 | 2021-02-18T09:14:09 | 2021-02-18T09:14:09 | 186,303,067 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | #!/usr/bin/env python
# Libraries
import numpy as np
from options.graph.set_cover import SC_APPROX, SC_APPROX2, SC_OPT
from options.util import DeriveGraph
def MOMI(mdp, distance, l, solver):
X = DeriveGraph(distance, l - 1) + np.identity(distance.shape[0])
# Remove states which is already reachable wit... | [
"ddyuudd@gmail.com"
] | ddyuudd@gmail.com |
dc5637e6a701297a732340cf01ffba977ba1acbd | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_26468.py | fec5d7144e7bb1fae1f38711170b9a3d48a18a18 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | # Add new lines to CSV file at each iteration in Python
with open("test.csv","a") as f:
f.write("name\n")
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
46c77cb564c9a110aa518a527e32b9cf01996707 | 35d16ac49032083cafbc8304aebaf462d5346808 | /server/utils.py | 156d104b0b830c9816696397e17076e04be03ac4 | [
"MIT"
] | permissive | panuta/wealth-crawler-advanced | 48c601b29c505f1f31d48a98bbf60c8032136232 | 3b1bfb7f5efd9080514fa40ecdc1325f02f1a78f | refs/heads/master | 2021-04-06T19:31:24.255296 | 2018-03-15T14:56:36 | 2018-03-15T14:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import sys
def load_module_from_file(module_name, filepath, sys_path=None):
if sys_path:
sys.path.insert(0, sys_path)
import importlib.util
spec = importlib.util.spec_from_file_location(module_name, filepath)
cls = importlib.util.module_from_spec(spec)
spec.loader.exec_module(cls)
if... | [
"panuta@gmail.com"
] | panuta@gmail.com |
40d2aa50fc726880a476008150bc6877e48c24c7 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/automation/v20190601/connection.py | 2bd99df22a5db0bff546750ad492b5bfbeb13c0d | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 13,887 | 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
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
8ed83e1c7ee7d3368da4cd31284945c72863762f | 40b27bdd261a0d8a9e100bc4e83c9f76b9ef710e | /contests/ABC1-100/ABC100/d.py | 68f44a57690db03c79955432af5eba4426879e22 | [] | no_license | kouma1990/AtCoder-code-collection | 486d612ae1def6df49f4aa3632e06aae7ff73d2f | a3040a6025b43fb7dd3522945dce05a2626a92aa | refs/heads/master | 2020-04-16T22:42:39.023009 | 2019-08-29T07:05:43 | 2019-08-29T07:05:43 | 165,980,129 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | n, m = (int(i) for i in input().split())
xyz = [[int(i) for i in input().split()] for i in range(n)]
res = 0
for i in [-1, 1]:
for j in [-1, 1]:
for k in [-1, 1]:
l = []
for x,y,z in xyz:
l.append(x*i + y*j + z*k)
res = max(res, abs(sum(sorted(l, reverse... | [
"kouma1990@gmail.com"
] | kouma1990@gmail.com |
b5e452698c80343c60fc868829630680ebdc41e0 | d3440843f0b3ed85a41e1697ed9862d50b763056 | /8.Regression/test.py | 32267e2fb85c94b891cb888205bae41c09a44ead | [] | no_license | keepingoner/ml | 6f2d800b9e37a6324b2e2e10edd9d64b1bad6fb2 | 0b0091f08c1f77ec0fd176aa3375ada4153d8732 | refs/heads/master | 2020-04-02T16:11:10.616674 | 2018-11-05T05:47:01 | 2018-11-05T05:47:01 | 154,601,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | # -*- encoding:utf-8 -*-
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression, Lasso, Ridge
from sklearn.model_selection import GridSearchCV
data = pd.read_csv('8.Advertising.csv')
x = data[['TV', ... | [
"keepingoner@163.com"
] | keepingoner@163.com |
f4aeca722de031bfba81b683aa5645494895f05c | 01d982d22d214265eeb7a00b2b8bdd8c869d9064 | /tests/test_invest.py | 316b3bc47753e1d729297ad3a606d0768ec3a132 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | hkotaro1215/invest | ad6874ea1a9ac73813292fb88c138d13279988b5 | 1ba08bd746977bfa8a4600ad8c821fc43598c421 | refs/heads/master | 2022-11-12T06:06:22.826122 | 2018-03-26T21:08:18 | 2018-03-26T21:08:18 | 142,378,565 | 0 | 1 | NOASSERTION | 2022-10-15T06:47:29 | 2018-07-26T02:36:20 | Python | UTF-8 | Python | false | false | 2,321 | py | """General InVEST tests."""
import unittest
import os
class FileRegistryTests(unittest.TestCase):
"""Tests for the InVEST file registry builder."""
def test_build_file_registry_duplicate_paths(self):
"""InVEST test that file registry recognizes duplicate paths."""
from natcap.inve... | [
"richpsharp@gmail.com"
] | richpsharp@gmail.com |
7e80b0a0be78686787eaafec4793b508eea9b27d | b332e9e5b63db27b23250ddbbb85b470ceaf92a1 | /List/minSwaps.py | e7f6e4eead0c4705df276774356d0ebc8d20dc2a | [] | no_license | huangketsudou/leetcode_python | 66fcc695b0a4f94a35cc52e161ae4bfdb1138dc2 | e983f42d245b69f9bddd9855f51ee59648a2039e | refs/heads/master | 2021-08-07T23:25:45.532458 | 2020-08-23T06:15:22 | 2020-08-23T06:15:22 | 214,324,229 | 2 | 0 | null | 2020-04-12T14:40:47 | 2019-10-11T02:16:43 | Python | UTF-8 | Python | false | false | 973 | py | from typing import List
class Solution:
def minSwaps(self, grid: List[List[int]]) -> int:
if not grid: return 0
# 统计每一行 从右向左连续0的个数
n = len(grid)
zero_nums = []
for i in range(n):
j = n - 1
while j >= 0 and grid[i][j] == 0: j -= 1
zero_nums... | [
"1941161938@qq.com"
] | 1941161938@qq.com |
f99682103fd1863b63d36bb3fd3f33ba90d0dd06 | d4224cb20c48933909fc2a1834b75f4f062bd3c9 | /google_or_tools/who_killed_agatha.py | 4003b896e3136b99551cfd6911f118f9296d3f80 | [] | no_license | ajgappmark/hakank | dfe3255fd9d0bcdeb2e3eef7ad68d3428b0dc9f2 | 7c4265d109cfc3f1bf379c1140d434ccf537f982 | refs/heads/master | 2020-05-18T10:33:07.592353 | 2014-08-17T19:34:39 | 2014-08-17T19:34:39 | 23,218,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | # Copyright 2010 Hakan Kjellerstrand hakank@bonetmail.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"hakank@gmail.com"
] | hakank@gmail.com |
3490eb215b290ce4f27cdec5797fab3a54c5595b | 9d30115d59ed821a5c7aecf2318b5e0ed22c9676 | /src/codewars/python/6kyu/alphabet_position.py | ea394f02b1c84aeb367855d718532ac9ca2829c7 | [] | no_license | garigari-kun/til | 02c7bf05274d1077b454e1f7d4a7355849441524 | b71f36a66045ab7da7f4a97f7e18de2aaa05f493 | refs/heads/master | 2020-04-16T02:13:45.727909 | 2018-12-16T01:26:40 | 2018-12-16T01:26:40 | 56,369,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | """
Welcome.
In this kata you are required to, given a string, replace every letter with its position in the alphabet.
If anything in the text isn't a letter, ignore it and don't return it.
a being 1, b being 2, etc.
As an example:
alphabet_position("The sunset sets at twelve o' clock.")
Should return "20 8 5 19 ... | [
"keisuke.cs@gmail.com"
] | keisuke.cs@gmail.com |
7cdc9598584590dacb3d6b8a0f07716b5b178462 | 97a09265d7898765a3f561c1b4a12e5b46346db8 | /30DaysOfCode/day27_testing.py | cdd71b0cc82b218eaa507470534ddd6b8be43b44 | [] | no_license | 14E47/Hackerrank | 35e7b5520fe00ae98377624b8429d42d237cbd46 | c2af2fa7ee49c2a94304ee543900425f5a3b6551 | refs/heads/master | 2020-03-26T21:22:45.492630 | 2019-10-04T03:37:14 | 2019-10-04T03:37:14 | 145,384,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | def minimum_index(seq):
if len(seq) == 0:
raise ValueError("Cannot get the minimum value index from an empty sequence")
min_idx = 0
for i in range(1, len(seq)):
if seq[i] < seq[min_idx]:
min_idx = i
return min_idx
class TestDataEmptyArray(object):
@staticmethod
def... | [
"wasique3@gmail.com"
] | wasique3@gmail.com |
7ab151207135bb1d3da3bcd2c20b4b0233a5da8d | e821f62aead9a6a4911435224ecf3ff9ccb2be96 | /CNN/tok.py | 76f589c72efc2394d98d31273775f77d2e6868c5 | [] | no_license | dagrawa2/toxic_comments | 799bcaabf8d8bf461fd5a011e2fc124379d021ea | aaccdc3184b48ff6086093a70cda9bbd20ff0f02 | refs/heads/master | 2022-12-28T23:03:03.139883 | 2018-04-29T21:00:00 | 2018-04-29T21:00:00 | 302,200,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import pickle
import numpy as np
import pandas as pd
from keras.preprocessing.text import Tokenizer
num_words = 10000
data = pd.read_csv("../Data/train.csv")
comments = data["comment_text"].tolist()
T = Tokenizer(num_words=num_words)
T.fit_on_texts(comments)
X_train = T.texts_to_sequences(comments)
with open("Objec... | [
"agrawald@goldmail.etsu.edu"
] | agrawald@goldmail.etsu.edu |
8722b14a680985dc607c5e90cf3a7732dc440d27 | f8d2521a88e465eed01adc3981c7a173d5c2554b | /round/round0401-0425/round0408/a1.py | 74f23d763b4d58d544c619ea8758163784228ab0 | [] | no_license | clarinet758/codeforces | b2a8a349bba40e7761a8ce50dd5ff9a57477b60d | d79870c47bdb109547891a0d076dd173d6d647cf | refs/heads/main | 2021-12-15T05:46:51.000160 | 2021-12-01T12:01:33 | 2021-12-01T12:01:33 | 41,968,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env pypy3
# -*- coding: UTF-8 -*-
n,m,k=map(int,input().split())
a=[int(i) for i in input().split()]
ans=100
for x,i in enumerate(range(m,n,1)):
if a[i]>0 and a[i]<=k:
ans=x+1
break
for y,j in enumerate(range(m-2,-1,-1)):
if a[j]>0 and a[j]<=k:
ans=min(ans,y+1)
break... | [
"clarinet758@gmail.com"
] | clarinet758@gmail.com |
230a5484a1735e92d8f44f8d59512c0924044e05 | 6bf4867b690f59a77f7caddc1238c3bae6b3e1c3 | /rally/benchmark/scenarios/sahara/utils.py | c0acb424077e0f750aafd32e32798f1cb9f58cd6 | [
"Apache-2.0"
] | permissive | kambiz-aghaiepour/rally | 641c044cc24c10eb15e4d6b4ab3bc4885779e076 | be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2 | refs/heads/master | 2021-01-15T19:35:15.318291 | 2014-08-18T23:51:30 | 2014-08-18T23:51:30 | 23,090,342 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,610 | py | # Copyright 2014: Mirantis 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... | [
"nkonovalov@mirantis.com"
] | nkonovalov@mirantis.com |
f6b334de835c54ff274cbcae4e9c5b5691a10e1e | 45f93a9d47204d76b8bf25a71dfb79403e75c33c | /Threading/long-running-thread.py | 3222c862dc2c304516b29971b5c97a2bdb95d5e9 | [] | no_license | tahmid-tanzim/problem-solving | 0173bce1973ac3e95441a76c10324c0e1b0a57c3 | 6ddb51de6772130f209474e76f39ca2938f444f0 | refs/heads/master | 2023-06-25T02:18:03.690263 | 2023-06-20T06:58:46 | 2023-06-20T06:58:46 | 137,173,850 | 4 | 1 | null | 2022-03-30T08:28:41 | 2018-06-13T06:44:25 | Python | UTF-8 | Python | false | false | 756 | py | from threading import Timer
import time
def heartbeat_tick():
current_time = time.strftime("%H:%M:%S", time.localtime())
print('im ok ' + current_time)
def heartbeat_tick2():
current_time = time.strftime("%H:%M:%S", time.localtime())
print('im very good ' + current_time)
class RepeatingTimer(Timer... | [
"tahmid.tanzim@gmail.com"
] | tahmid.tanzim@gmail.com |
90c2f1b800d86a24a43491b61d150a6366b6aa65 | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/pandas/core/indexes/range.py | ec896d94a20ba0ae3f77f67639f062cda407c696 | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 29,648 | py | from datetime import timedelta
import operator
from sys import getsizeof
from typing import Any, List, Optional, Tuple
import warnings
import numpy as np
from pandas._libs import index as libindex
from pandas._libs.lib import no_default
from pandas._typing import Label
from pandas.compat.numpy import function as nv
f... | [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
d1659d658ee81928f513e875f7d9f2e78a75d540 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v7/services/services/ad_group_service/transports/base.py | ce6b4b5bb906932a8cc9e5393ecafc79ed352104 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 3,978 | 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... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
2a557af36bca6b8dc27982b2f226933bc64feca2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sQ3.py | f1249399cdc60251785d96d9fdff6bf4b63c27e5 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
62d51938566b1760ee0a7773969750876072c711 | a03b30ee77b49e19a72b647e984b98f878c2847a | /Anaconda-files/Program_1d.py | b629bba7ac959034d527e2162c17ccbb88a23184 | [
"BSD-2-Clause"
] | permissive | SSalaPla/dynamical-systems-with-applications-using-python | d47f46dfbe7195d2446cdee7f874cc3e4a5ab90a | c80582ae3559230d12e2aee15f94c465e367fdda | refs/heads/master | 2021-05-03T16:00:31.561907 | 2018-02-05T15:16:13 | 2018-02-05T15:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Program 1d: Subplots.
# See Figure 1.15.
import matplotlib.pyplot as plt
import numpy as np
def f(t):
return np.exp(-t) * np.cos(2*np.pi*t)
t1=np.arange(0.0,5.0,0.1)
t2=np.arange(0.0,5.0,0.02)
plt.figure(1)
plt.subplot(211) #subplot(num rows,num cols,fig num)
plt.plot(t1,f(t1),'bo',t2,f(t2),'k',label='dampin... | [
"samuel.dibella@gmail.com"
] | samuel.dibella@gmail.com |
1e0810823638b12185d64ebe70744a50b7bdcd48 | 717ae7ee216675ba0fb31358000dde3d2fc11c5c | /chart_of_accounts_builder/config/desktop.py | 598a493fd9079f73d008fdb162af58221aa05684 | [
"MIT"
] | permissive | sihaysistema/chart_of_accounts_builder | 7cf2bfb23eeb254d89b083dccd146fc60736eb9b | 23a94ddbdae4a36c6d318e148c47e68a36eb177b | refs/heads/master | 2020-05-31T21:16:47.958250 | 2019-06-06T15:31:48 | 2019-06-06T15:31:48 | 190,494,216 | 1 | 0 | null | 2019-06-06T01:35:37 | 2019-06-06T01:35:37 | null | UTF-8 | Python | false | false | 281 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
"Chart Of Accounts Builder": {
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("Chart Of Accounts Builder")
}
}
| [
"rmehta@gmail.com"
] | rmehta@gmail.com |
6fd9f40b3a240f53ce47870b44e87e64f7bffccf | c9273bbb39b2f9bade816ae0d4d57ba664f599c7 | /setup.py | 1858551b34353e1bcc19f247f13c75e79207cc58 | [] | no_license | alunduil/singularity | 0eaefdbee20880146cd07fae7445387c16ab861b | 600f864628743472226755ad0fe7a4c7a0d2ef28 | refs/heads/master | 2021-01-21T11:45:16.242749 | 2014-06-22T17:01:03 | 2014-06-22T17:01:03 | 5,211,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | # Copyright (C) 2012 by Alex Brandt <alunduil@alunduil.com>
#
# singularity is freely distributable under the terms of an MIT-style license.
# See COPYING or http://www.opensource.org/licenses/mit-license.php.
from distutils.core import setup
try:
from singularity import information
from singularity import he... | [
"alunduil@alunduil.com"
] | alunduil@alunduil.com |
36fe5a2469a8db223fcc5567527737d6653e366c | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/surface/container/clusters/get_iam_policy.py | 6e672f702942bf58fceb409a2804549e7be639d2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | # Copyright 2018 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 by applicable law or ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
6161a504a113f3319583c244962a422646113b54 | 5bd1381e5515061b4fdd7284f80f89d0aad3c4e6 | /www/unicooo/views.py | 06970d5519d28f80bee6c5af73a4a63d6bec5113 | [] | no_license | Windsooon/Unicooo-django | 1c1a7643151dffc15cea6ff94b9a80453d1fcfb2 | 7db3f2807bc4802b686f1a4d6bd6fd5b7436611b | refs/heads/master | 2022-12-21T11:16:22.855365 | 2017-12-09T09:24:01 | 2017-12-09T09:24:01 | 47,067,358 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.shortcuts import render
def front_page(request):
return render(request, "frontpage.html")
def public_activities(request):
return render(request, "public_activities.html")
| [
"wiwindson@outlook.com"
] | wiwindson@outlook.com |
705a4ea02f2b08df2528ae1bb2b39cb9b998c9bd | 28ca060efe83304c6174c3411cd9105537adf6bd | /fs_image/rpm/tests/test_rpm_metadata.py | dba5130b5b6b441078f54df13cb8562ac0f85bf7 | [
"MIT"
] | permissive | singhaditya28/fs_image | 6eee93a3663f36894f2e26efef9f2f961f11d76b | 3d122da48eab8b26e5add6754cc1f91296139c58 | refs/heads/master | 2022-09-25T04:52:58.206356 | 2020-06-05T18:27:39 | 2020-06-05T18:29:57 | 269,931,605 | 0 | 0 | MIT | 2020-06-06T09:24:29 | 2020-06-06T09:24:28 | null | UTF-8 | Python | false | false | 5,792 | 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.
import importlib.resources
import os
import re
import shutil
import unittest
from fs_image.fs_utils import temp_dir
fr... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0f7f483f687b8b4897064f7ac52ff924a951cd9d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_321/ch14_2020_03_02_17_36_10_914758.py | e0c3dc8afc80fcd598ed32def9202927e6ac0a30 | [] | 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 | 159 | py | import math
def calcula_distancia_do_projetil (v,o,y):
return (math.pow(v,2)/2*9.8)*(1+math.sqrt(1+(2*9.8*y)/math.pow(v,2)*math.sin(o)**2))*(math.sin(2*o)) | [
"you@example.com"
] | you@example.com |
2af32f7a4d9ae29e4db70a69549fc1bbab5cd4ac | b59f66a9c4b5492b95c767b7ca76cd026f6f572a | /aac/metrics/rouge_l.py | 33b0b9c2183a7a51bf1d84b3ce3d73b265416c3c | [] | no_license | Labbeti/dcase2021task6 | b50f51370af15c241bd9f257920e2df4bc925669 | 2e792749bd9b2a495fa4b870f6190f6fb389fc56 | refs/heads/main | 2023-06-11T07:10:50.179348 | 2021-07-05T09:28:11 | 2021-07-05T09:28:11 | 377,414,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py |
from rouge_metric import PyRouge
from torch.nn import Module
class RougeL(Module):
def __init__(self):
"""
Recall Oriented Understudy of Gisting Evaluation.
Output values are in range [0, 1]. Higher is better.
Use 'rouge-metric' package as backend.
Original paper: https://www.aclweb.org/anthology... | [
"etienne.labbe31@gmail.com"
] | etienne.labbe31@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.