blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f710f824a9ba3fc05f946ea786168e280edb9f3 | 05040f0dce123be0d88e760808fdf6b1bbf1ac43 | /backend/manage.py | 38f19f1341ecef8ebd95be44a20975de9823d12e | [] | no_license | crowdbotics-apps/mobile-8-dec-dev-16453 | 8026421c163ab200a0106faaf3567faf469b348f | 3cc2feeba0d1a753a98db7167491e5a28d7ae6fe | refs/heads/master | 2023-01-23T10:02:48.817260 | 2020-12-08T15:42:47 | 2020-12-08T15:42:47 | 319,665,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mobile_8_dec_dev_16453.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
27818e0cbd1150b9c136e42d2890085eb3918eeb | e5a1e766d32fa2475b23e8bda93462ea98938a8f | /new_chat/wsgi.py | 2f4a3672370594a951791355a78a5ed6f3af4d72 | [] | no_license | ShoaibMoeen/Django_Chat_App | 7993efeb603d6df7315108822dff1a2513df8dba | 27c8c99d5f7308c710741b0454f81ec85ff3707a | refs/heads/master | 2023-03-05T20:29:35.349574 | 2021-02-17T09:27:02 | 2021-02-17T09:27:02 | 338,788,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for new_chat 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"shoaibmoeen4343@gmail.com"
] | shoaibmoeen4343@gmail.com |
c961d180e49b2f37329b439a63ed3caf39182499 | 61febabc6aa34b7c47208aa7be5dfca88287ddaf | /Ch. 5 If Statements/Alien_Colors_2.py | f3d2b2cede94db66aee11d3245b9b9571a6284d5 | [] | no_license | chrisstophere/Python-Crash-Course | 4be7262acc2ff8ad26d99aceb028c25e4c7f9b0b | 702c44734e93df68ec55831626fb7a7a22ce2b8d | refs/heads/master | 2021-05-24T10:31:54.679224 | 2020-05-07T21:10:09 | 2020-05-07T21:10:09 | 253,520,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | alien_color = 'red'
if alien_color == 'green':
print(f"You shot the {alien_color} alien. You earned 5 points.")
elif alien_color != 'green':
print(f"You shot the {alien_color} alien. You earned 10 points.") | [
"chris@ewentech.com"
] | chris@ewentech.com |
f4ef0d969896be33f79af58aaa8261cb2e9aec27 | f112dfe38732f131156556ab724e2b9a01d317ae | /week6/12-olimp-results.py | 84111b344ca01350a77d270fb1eafcce9b46a3ef | [] | no_license | pharick/python-coursera | 2a92bf467e0ddd35a573ea4e29fff9a37e45bd24 | 3e24ac9385eada126e7c4753f71cd38181987fbf | refs/heads/master | 2020-04-04T03:44:45.067099 | 2019-03-20T07:10:22 | 2019-03-20T07:10:22 | 155,724,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n = int(input())
students = []
for i in range(n):
student = input().split()
students.append((student[0], int(student[1])))
students.sort(key=lambda student: -student[1])
for student in students:
print(student[0])
| [
"artemforkunov@gmail.com"
] | artemforkunov@gmail.com |
70dd6b6891e4793418f9b327dcf8ddb1de563ef7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/clouds_20200703183549.py | deecd69a4f52fe13e3dd7c9a278d545d91b636a2 | [] | 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 | 439 | py | def jumpingClouds(c):
i = 0
jumps = 0
while i < len(c)-2:
if c[i] == 0 and c[i+2] == 0:
print('here')
print('c---->',c[i],'i-->',i)
jumps +=1
i +=2
elif c[i] == 0 and c[i+1] == 0:
print('here2')
print('c---->',c[i],'i-... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2dda85a9ba04d01eb6f79efbf26e1aa3f5fe73a8 | b23f9b54f622032e71a80a497ca2d7dbd48469ad | /setup.py | d7560750ca56a0500f4ae92ea7dba81932711c29 | [] | no_license | h4ck3rm1k3/pycparserext | 15cf0a02429f3fd6bad977cd612e74ca7b20b891 | 489fd9c4804e7b3f17760b0800cf81a930a2ec7e | refs/heads/master | 2021-01-21T08:32:39.114178 | 2016-04-03T05:22:38 | 2016-04-03T05:22:38 | 55,293,358 | 0 | 0 | null | 2016-04-02T12:29:40 | 2016-04-02T12:29:40 | null | UTF-8 | Python | false | false | 893 | py | #!/usr/bin/env python
# -*- coding: latin1 -*-
from setuptools import setup
setup(name="pycparserext",
version="2016.1",
description="Extensions for pycparser",
long_description=open("README.rst", "r").read(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audien... | [
"inform@tiker.net"
] | inform@tiker.net |
82f795bf9a7875dc84a5097c204ab284d9770801 | d232b3aa9449ad13a5b33f141d432c5a9f46aa7e | /Day3-1.py | bd0c791662db9a061f1774f4ef8d4bda64cf922f | [] | no_license | stephanie19950405/Python200805 | e75ba082faa65367a977652e65b2088e3d4669c5 | ad8a71874b0919aad49e6f9fe5cf214121a050a7 | refs/heads/master | 2022-11-26T02:59:39.331128 | 2020-08-05T08:41:29 | 2020-08-05T08:41:29 | 285,170,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 5 09:26:48 2020
@author: AE401
"""
for i in range(1,10):
for j in range(1,10):
print(i,"x",j,"=",i*j) | [
"noreply@github.com"
] | stephanie19950405.noreply@github.com |
f974ed4dfce8a8ce9c6813f917c8078319276785 | d6de09317cf3aeba4af26ae9ebacb3669f85899b | /oAuth/venv/bin/pip3 | 9c8aec44a34ad396320fcc678c1c0230d62a0182 | [] | no_license | Vaibhav-Kotadiya/Flask-oAuth | 66a0fd57ab3242cc81ecdef250d69b166248ff59 | 817ef470328cd5341fdb7ffa0354b3574d3dd936 | refs/heads/master | 2022-12-09T07:02:49.437622 | 2020-09-15T16:03:54 | 2020-09-15T16:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | #!/Users/mac/PycharmProjects/Flask-oAuth/oAuth/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"mac@MACs-MacBook-Pro.local"
] | mac@MACs-MacBook-Pro.local | |
701090d667fe4a9f5daf26aa08d32a2d7dde0dcb | cda5f9506ff9a05ca6cc5c6fd29a56bb645f03e3 | /Grasshopper-Terminal-game-combat-function.py | 1265b0149a59ea7ccf489495107d14273b4188b1 | [] | no_license | zecollokaris/toy-problems | bc28799f41cdbddfa5a4a56c613031b3f52430bc | 66f6462ace04afbe025d90956573ef295d66f41f | refs/heads/master | 2020-03-25T00:20:17.099894 | 2018-08-04T20:12:16 | 2018-08-04T20:12:16 | 143,180,896 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | #############################################################################################################
######Question######
# Create a combat function that takes the player's current health and the amount of damage recieved,
# and returns the player's new health.
# Health can't be less than 0.
###########... | [
"collo.kariss@gmail.com"
] | collo.kariss@gmail.com |
cc578e23762a3824d2011e2c493327ac6fa7534f | 40361071089b4f243962c5dd2e0bd6144f76acbd | /cell_count_utils.py | 769ebe2450f13b3cdaf08e2d1dc651be248d2d58 | [] | no_license | liaorongfan/cell-counting | d555d06e8113ffc2dcf4c19e1e4003a9c61f8fac | 0f0640225fa3f6884efdd315158bf14dc47bedc1 | refs/heads/main | 2023-05-05T20:17:46.539954 | 2021-05-23T14:39:40 | 2021-05-23T14:39:40 | 370,076,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,942 | py | import cv2
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
def plt_show(img, figsize=(24, 6), gray=True):
"""默认画灰度图"""
plt.figure(figsize=figsize)
plt.grid(False)
if gray:
plt.imshow(img, 'gray')
else:
plt.imshow(img)
plt.show()
pass
def plt_show_... | [
"15670381505@163.com"
] | 15670381505@163.com |
f0ec7fdedb65b26187793048fe26edf04bd719b9 | b06b79983d2dbe596e9ad2171694f9124cdc7fc1 | /Python/memoryExample.py | 432ad951664f2b50a485e499b2e98253b74d72f5 | [] | no_license | ljthink/TDC-2 | 87e89124eb08c3b181f0aca2bed4a5beca43dd88 | b09ed8783a2401e8eaa35eb99a3bff79aaa382c3 | refs/heads/master | 2022-11-19T06:44:14.588905 | 2020-07-23T00:24:32 | 2020-07-23T00:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from QuartusMemory import QuartusMemory
q = QuartusMemory()
# Find index of instance named RAM1
inst = q.find_instance('RAM1')
# Read memory from device
arr = q.read_mem(inst,True)
# Print contents of address 0x04
print('Arr1:')
for k in arr[4]:
print(str(k) + ' ',end='')
print()
# Copy the array and change on... | [
"me@lramsey.com"
] | me@lramsey.com |
3ef2026eb83017aa5c24665674b8d15767fb2008 | 51d8f003828d6ee6e6611f0e133b1e35cf400601 | /ipaxi/ixbr_api/core/tests/use_cases_tests/test_service_use_case.py | 830992ce3f08fe190f0264ea26fd19099f6e8a39 | [
"Apache-2.0"
] | permissive | tatubola/xpto | 23b5f7a42c13c7d39eb321e52b9b4b2d1ef76c4c | 6ed8cec23b06bccb1edf57e6b67af017f9a162d3 | refs/heads/master | 2020-04-02T11:05:24.560009 | 2018-10-23T17:41:10 | 2018-10-23T17:41:10 | 154,370,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | from unittest.mock import patch
from django.core.exceptions import ValidationError
from django.test import TestCase
from model_mommy import mommy
from ...models import ContactsMap, MLPAv4, Tag
from ...use_cases.service_use_case import delete_service_use_case
from ..login import DefaultLogin
class ServiceUseCaseTest... | [
"dmoniz@nic.br"
] | dmoniz@nic.br |
5656efc34e8254aae61d10bea0f54846789da243 | 338062cc2bb422f1364fd18ad5e721f6f713907a | /30. Библиотеки Python. Встроенные модули/Классная работа/Дни рождения друзей.py | 901cba0c8631ab75c84e2788ce36d59850346786 | [] | no_license | rady1337/FirstYandexLyceumCourse | f3421d5eac7e7fbea4f5e266ebeb6479b89941cf | 0d27e452eda046ddd487d6471eeb7d9eb475bd39 | refs/heads/master | 2022-06-17T03:07:51.017888 | 2020-05-12T22:17:34 | 2020-05-12T22:17:34 | 263,459,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import datetime as dtdin = dt.datetime.now()dn = dt.timedelta(days=int(input()))print((din + dn).day, (din + dn).month) | [
"noreply@github.com"
] | rady1337.noreply@github.com |
03608d220d4d293c64e7d19d2c5178953574c174 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7/W_w_M_to_C_pyr/pyr_6s/L7/step10_a.py | 6c005ce2d39cf14a6d40bc0a6f470140b0365a40 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942,122 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
8b7bcd726beabde390de9d1928fa4f6a36307508 | 2e0a18c571b5f8000e9900e9a332eca5aff54f0f | /guppe/Seção 7/Deque.py | f759ccf0d293c473ffd25d117524a60bebc7daff | [] | no_license | LucasFerreiraB/Teste | bbf57e92db2bcc4795316c513959d2674252264b | d2b542aff96a27a727706df887506336062fbbda | refs/heads/master | 2022-09-27T11:38:07.755660 | 2020-06-05T18:38:22 | 2020-06-05T18:38:22 | 269,750,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """
Modulo Collections - Deque
Podemos dizer que o Deque é uma lista de alto performance.
"""
# Import
from collections import deque
# Criando deques
deq = deque('lucas')
print(deq)
# Adicionando elementos no deque
deq.append('y') # adiciona no final
print(deq)
deq.appendleft('k') # adiciona no comeco
print(de... | [
"lucasferreira9b@gmail.com"
] | lucasferreira9b@gmail.com |
2cf7a4b05dd7a1a4b8cd95fbc9af7fcfbc6af2ce | b42af24fae93c62573256c47bc10df396a098c01 | /snakegameyash.py | 3547106350dc9cc09401cc31f74ed7a3425382c4 | [] | no_license | YashVardhan-444/snakegame | ac597e284e4b4eb74038dd06200538dc930de494 | ac5807808dd45cfcb90898ab0112e45db1b9ff98 | refs/heads/main | 2023-07-13T11:18:31.361490 | 2021-08-13T16:11:17 | 2021-08-13T16:11:17 | 308,942,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | import pygame
from pygame import mixer
import time
import random
pygame.init()
white = (255, 255, 255) # constants defined to be used in the code ahead
# These parameters are color code for red,green and blue respectively
yellow = (255, 255, 102)
black = (0, 0, 0)
red = (213, 50, 80)
green = (0, 255, 0)
... | [
"noreply@github.com"
] | YashVardhan-444.noreply@github.com |
2508cb82f30d9ebd8cad74771e679948dda148d0 | 0a5618aba3e801cbd986a3c8a02c8bfbaafddb4d | /data_utils/utils.py | 36cd93312e8cabda8dbeb6b8b3a25c5a7a9bcf00 | [] | no_license | hmcck27/ps-helper-nlp | 2f899c2ae22524e5531c78b2a257ac0a0b043c7b | 6a99aa6a91477ac35f94b1548c9e8e9b441b9b8b | refs/heads/master | 2023-08-27T22:59:05.846434 | 2021-10-28T07:14:05 | 2021-10-28T07:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | import json
import torch
from pathlib import Path
class Config:
def __init__(self, json_path):
with open(json_path, mode='r') as io:
params = json.loads(io.read())
self.__dict__.update(params)
def save(self, json_path):
with open(json_path, mode='w') as io:
jso... | [
"backend@JK.local"
] | backend@JK.local |
89fe832ad18539d9ffcc91dc818c1d4a5827b99c | 0f2391cb82f218ed7505266c5f708725ed064427 | /roman-numerals-take-two/roman.py | d47eb096b46c40035d14e9d809a97c71d456881a | [] | no_license | tomviner/tdd-dojo | e34c6ecb1fd27113b0a0b33a5609c23d6695d226 | 3e35847b2e1d7b73132ee3a07a546abe26322e74 | refs/heads/master | 2021-01-22T02:34:06.146674 | 2014-11-25T14:07:51 | 2014-11-25T14:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | """
Roman Numerals
Write a function to convert from normal numbers to Roman Numerals: e.g.
1 => I
4 => IV
7 => VII
10 => X
99 => XCIX
"""
LOOKUP_NUMERALS = (
(1000, 'M'),
(900, 'CM'),
(500, 'D'),
(400, 'CD'),
(100, 'C'),
(90, 'XC'),
(50, 'L'),
(40, 'XL'),
(10, 'X'),
(9,... | [
"tom.viner@hogarthww.com"
] | tom.viner@hogarthww.com |
dca84f844680918ece78d15a17c804d7d4f4dc67 | b7683c108e68ee2d28573edf55923eb34cc2f5ee | /3_Image_Processing/9_Contours/1_Intro/1_Contours_on_binary.py | 9be454d9d82d0531c5524d093ed11ff8b9fa6b0f | [] | no_license | aCuissot/openVC_win_py_tutorial | cc42ab1a1fb6eaefe5a91c7e1bb1926a776b0e01 | 7186b629747cb16f2bf42a03d2339d3dc3ea77bd | refs/heads/master | 2020-05-18T12:17:04.619047 | 2019-07-10T13:45:00 | 2019-07-10T13:45:00 | 184,403,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import numpy as np
import cv2 as cv
im = cv.imread('../../../Data/in/a.jpg')
imgray = cv.cvtColor(im, cv.COLOR_BGR2GRAY)
_, thresh = cv.threshold(imgray, 127, 255, 0)
contours, hierarchy = cv.findContours(thresh, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
cv.drawContours(im, contours, -1, (0, 255, 0), 3)
"""
pour ne dessine... | [
"harrypotter9752@gmail.com"
] | harrypotter9752@gmail.com |
87edc282a225d250961e93168a4da4a287edcf14 | 97f0f649b007f0ac9f7e2c7f4efdec1f06d6b154 | /decision_implementation.py | 9314086d4dd4f91519211d6d8a107c731d0b37a2 | [] | no_license | ajaymalik2592/projects | de877ea8aebde28900158a6c9a1f576caf64ccd5 | 0cabd9f85f6b056d82c28243157a06c64f45afc8 | refs/heads/master | 2020-05-14T08:24:03.121768 | 2019-04-16T16:03:59 | 2019-04-16T16:03:59 | 181,722,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | import numpy as np
import math
import csv
import random
data = []
with open('shuffled_data.csv', "rt") as filereader:
fil = csv.reader(filereader, delimiter= ' ' )
for rows in fil:
data.append(rows)
formated_data = []
i = 0
for da in data:
if(i == 207):
break
i+=1
da = da[0]
d... | [
"noreply@github.com"
] | ajaymalik2592.noreply@github.com |
eea41913ddcd22156013f964a4b6b70d017450aa | 8ea896e975fdb967f013e2b69d453df8881eb8f9 | /spark-2.x/src/main/python/ml/logistic_regression_summary_example.py | 26882a8dc7de5dbc1caf79a70959595925d295f6 | [
"Apache-2.0"
] | permissive | lhfei/spark-in-action | 1d0df5a22230e458be2583066537c09d20a1b98b | 0bf915588f4aa36b17b89a2a8f4a055b342e2295 | refs/heads/master | 2022-07-15T05:43:02.805743 | 2020-08-25T07:33:59 | 2020-08-25T07:33:59 | 33,342,589 | 6 | 3 | Apache-2.0 | 2022-06-27T16:13:02 | 2015-04-03T02:36:44 | Scala | UTF-8 | Python | false | false | 2,508 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may n... | [
"lhfeilaile@gmail.com"
] | lhfeilaile@gmail.com |
a6262547823f4b422a3298d7263130a495f95dc7 | 14825e285a5637d0c7e981e3c32c3b961e89f981 | /Identification/Rider.py | e6a641da3302e9d3b322b635a0a257877b712f91 | [] | no_license | simohn/Ride_on_Time | ef43627f6b65732309c41bf51692066e7920f8fc | 7e9ca19ba1c4c82f8423819b61345c686affb454 | refs/heads/master | 2020-04-21T16:31:26.765286 | 2019-08-27T18:10:28 | 2019-08-27T18:10:28 | 169,704,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # Code written by Simon Schauppenlehner
# Last change: 22.06.2019
import numpy as np
class Rider:
# Private class variable
_unique_id = 1000
# Public methods
def __init__(self, id=-1):
if id == -1:
self.id = self._get_unique_id()
else:
self.id = id
... | [
"schauppinger@gmail.com"
] | schauppinger@gmail.com |
14b6e041b02bb82c853acc82a39ce2540e479dbf | 71d1c48161fadaaed2e9c4437e1194ce13b18622 | /working_with_api/english_vocabulary.py | b3b6503565d79ed20257c0d739fc6b1499e9b953 | [] | no_license | ikventure/some_projects | 2f43eef7ebe91e7d2ffaf4f96f2b55a4a8b7c141 | c87a1cab28662de8524ac3d77ba1884bd1fc53b9 | refs/heads/main | 2023-08-16T17:26:53.033466 | 2021-09-14T07:24:42 | 2021-09-14T07:24:42 | 401,194,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 11 16:15:44 2020
@author: ikventure
"""
filename = 'SUM_of_cet4+6+toefl+gre.txt'
txt = open(filename, "r").read()
txt = txt.lower()
all_words = txt.split()
words1, words2 = [], []
for word in all_words:
if len(word) == 6 and word[0] == word[-1] and word[1] != word[4]... | [
"ikventurelove@gmail.com"
] | ikventurelove@gmail.com |
841c1efe6325c2b67960e896a83526bf52ba892d | eb7541314c5368b8fc7d9264b25ae1f6813829bc | /Longest_Palindromic_Subsequence.py | e0801b6f9927041d8e62d26fc6a1196e8fabf181 | [] | no_license | BibekKoirala/DynamicProgramming | 7f7fbf18a5f2b8113dc232dbd3ba047d898727f1 | 81ca3e83ac4bc320c0cd12e2b638b5a044f7ed09 | refs/heads/master | 2022-12-03T18:08:42.392955 | 2020-08-19T07:30:58 | 2020-08-19T07:30:58 | 283,597,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | def LPS(s):
Lookup = [[0 if i != j else 1 for i in range(len(s))] for j in range(len(s))]
k = 1
while k < len(s):
i = 0
j = k
while j < len(s):
if s[i] == s[j]:
Lookup[i][j] = Lookup[i + 1][j - 1] + 2
else:
Lookup[i][j] = max(L... | [
"bibek.high@gmail.com"
] | bibek.high@gmail.com |
7ee9aa6ee96971123bb69bee59b0a2cc28d60822 | c4ed52e5e9d0b059915bbf84c05b3af15ada4c59 | /test1.py | 0bf4d04c902597be641ec2d3c411cc4d8fe1c954 | [] | no_license | KI0KA/eop-by-Python | a70ae68d8399218d8ceed40032850fb15bdfc113 | 2ce8f1e4055dd6f3953f00c0f06f3b4adc1c8a7d | refs/heads/master | 2022-04-24T13:25:59.266896 | 2020-04-16T23:01:52 | 2020-04-16T23:01:52 | 258,407,300 | 0 | 0 | null | 2020-04-24T04:40:31 | 2020-04-24T04:40:30 | null | UTF-8 | Python | false | false | 103 | py | # test program
def main():
print("my first album".split())
if __name__ == "__main__":
main()
| [
"p9u78sxh@s.okayama-u.ac.jp"
] | p9u78sxh@s.okayama-u.ac.jp |
5cd7b233417a40dd0a9ef71afaa6969d9ba3b514 | 0fc891df6703ce3f91fe6005a6c582e573ed6c13 | /CWMT/user_login/migrations/0015_auto_20170811_1319.py | a97c1ba8d678eadfeaa3a8c5c6947edbde7ec3a2 | [] | no_license | Zeco-01/CWMT2017-REG | ce155343575d3b8b49eda584b40bdd1716368e38 | 5e71ddc38f3020d1582d0b38f2f8d0eace615b88 | refs/heads/master | 2021-01-02T22:19:25.372629 | 2017-09-18T06:46:11 | 2017-09-18T06:46:11 | 99,318,036 | 1 | 1 | null | 2017-08-11T15:17:24 | 2017-08-04T07:47:43 | Python | UTF-8 | Python | false | false | 521 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-11 13:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_login', '0014_auto_20170811_1310'),
]
operations = [
migrations.AlterF... | [
"leezehua@outlook.com"
] | leezehua@outlook.com |
24afdc57d33138a22371de464d7a9b191044f405 | 70be3c06f85f79e5660a1943e08651c6a5dc1032 | /stats_test.py | 0c7911d12bc2571e969d8cd8d612a8f513152511 | [] | no_license | archisman-panigrahi/ppa-stats-1 | fa2353caedd88f3284e3cb8e723c676cefd9ad97 | bb69387c122fa9d532aa5917938a3df3caa77ad9 | refs/heads/master | 2023-08-22T12:51:32.148712 | 2021-06-17T04:44:49 | 2021-06-17T04:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | import collections
from launchpadlib.launchpad import Launchpad
from pprint import pprint
import os
_lp_cachedir = os.path.expanduser("~/.launchpadlib/cache/")
launchpad = Launchpad.login_anonymously('anon', 'production', _lp_cachedir)
def get_binaries(ppa_owner, ppa_name, package):
owner = launchpad.people[ppa... | [
"hsheth2@gmail.com"
] | hsheth2@gmail.com |
34055673d955ae3740bf5aea6ba66a3cb020511c | 8c770324ddd14971f977f49ed29be2360d4ace6c | /assignment2.2.py | 267c9fdede76f5ec4fce384ecd620e91be5f89b8 | [] | no_license | Tathagatac001/Python_assignment | 9db4b0d9325696d4391fbf2723531b9dd765764b | 6b55546174a2a70a89e062e8680ab3b3d330fb47 | refs/heads/master | 2018-09-10T03:34:28.844667 | 2018-06-05T09:40:02 | 2018-06-05T09:40:02 | 115,848,048 | 0 | 0 | null | 2018-02-10T06:35:10 | 2017-12-31T06:52:47 | Python | UTF-8 | Python | false | false | 158 | py | my_input='*'
for i in range(0,2):
for j in range(1,6):
if i == 0:
print my_input * (j-i)
if i != 0 and (6-j-i) != 0:
print my_input * (6-j-i) | [
"noreply@github.com"
] | Tathagatac001.noreply@github.com |
a2c28551321a031321b269385b8a40dee9d39c56 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/tables/azure-data-tables/azure/data/tables/_generated/aio/operations/_service_operations.py | 4ef1391d9b929f9750111cbb76a4882ccc33b059 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 13,225 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
325a3b9477e74cb62718555392992eecbe79e947 | e37665534d517821f1bdb907902a818773d28e58 | /autotrading/scheduler/trader.py | f9a8da82d4570e2ec8494617f00fdbc34d7505f2 | [] | no_license | hyeon95y/tutorial_trading_2 | 2103cc27c4ced490cb98e24d6c8e707ac4d51d2c | 1a5526deeffd50784fdeaf408416be060dadccb9 | refs/heads/main | 2023-02-28T05:26:29.245523 | 2021-02-06T07:37:51 | 2021-02-06T07:37:51 | 335,929,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,832 | py | import configparser
import datetime
from celery import Celery
from autotrading.db.mongodb import MongoDbHandler
from autotrading.machine.korbit_machine import KorbitMachine
from autotrading.pusher.slack import PushSlack
app = Celery(
"get_coin_info",
backend="redis://localhost:6379/0",
broker="redis://lo... | [
"hyeon95y@gmail.com"
] | hyeon95y@gmail.com |
20a86eda7d13a8fc89be63deebdf830ce2d59c53 | 3a8050cea13e94853954d52ff55552b0c3d8a2b1 | /extendedmodels/Race.py | 1dfc5f0b67395a14503170a067815fbb432fb8a9 | [] | no_license | marcelomrocha/frecog | eb5fb606fbeeff78982cf4322584cac1f1f84202 | 181a86df6e11203081372538fae274fbd37cfc89 | refs/heads/master | 2023-04-16T22:59:34.622823 | 2021-04-12T01:36:03 | 2021-04-12T01:36:03 | 355,626,321 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | from basemodels import VGGFace
import os
from pathlib import Path
import gdown
import numpy as np
from keras.models import Model, Sequential
from keras.layers import Convolution2D, Flatten, Activation
import zipfile
def loadModel():
model = VGGFace.baseModel()
#--------------------------
clas... | [
"noreply@github.com"
] | marcelomrocha.noreply@github.com |
56c2dc305f24ba5731f349d4284d1ede0e056579 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_1/ebs-default-kms-key-id_modify.py | 9590bdb3b63ab3aa9cd39ae2bf409a3fec3eef4f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/modify-ebs-default-kms-key-id.html
if __name... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
9f04a9500f8175d8ed755a33ec11a015c460d1ad | dd32fef3e19dfde746c2a0e67a460470397c98fd | /scripts/converter.py | 2a430feebda1cf9b031ea53b1aaf8243c439c9ad | [
"MIT",
"Apache-2.0"
] | permissive | sujiongming-git/captcha_trainer | bfffeb9845d178d6c0fade75ac927cb2a00c7877 | fa14ebd42aad91cd97724c7bc275d79b1008facc | refs/heads/master | 2023-06-18T11:42:20.226556 | 2021-07-17T14:11:30 | 2021-07-17T14:11:30 | 295,317,327 | 0 | 0 | Apache-2.0 | 2020-09-14T05:53:18 | 2020-09-14T05:53:17 | null | UTF-8 | Python | false | false | 816 | py | import re
import os
import hashlib
# 训练集路径
root = "/Users/jm.su/Documents/code/captcha_trainer/scripts/taiwan-post/"
all_files = os.listdir(root)
for file in all_files:
old_path = os.path.join(root, file)
print(old_path)
if "-" in file:
file = file.split("-", 1)[-1]
print(file)
# continu... | [
"jm.su@aftership.com"
] | jm.su@aftership.com |
e30eac1ded6ffcfd4458f5a272fdbbeb01c07f3a | f3a7eae3031bb9afe75116a9b86278490ac4a7e6 | /text/symbols.py | c329f2df647246d4d8e564a02e78e26b68ac2691 | [
"BSD-3-Clause",
"MIT"
] | permissive | LOCS-AI/Multilanguage_Tacotron_2 | ea34c4fb41e8112537529945b5a31cf2e78d0610 | 82c788fb26d93c6735c54c2fe4ae7bcbd0eec69f | refs/heads/master | 2022-12-31T01:39:57.432804 | 2020-10-08T00:04:58 | 2020-10-08T00:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """ from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. '''
fr... | [
"thien@locslab.com"
] | thien@locslab.com |
e2305deb0d46015fcf8ec048392eb7496180110b | 73ed323e7fc049dd1dff3b6556987a5ed11db48e | /roman_to_integer.py | 1502741d73e71598134f514d19e6416dc6b0af1e | [] | no_license | andyOrigin123/LeetCode_easy_problems_with_python3 | 3c81fe5fac1cb0201ae1c37b5dbaea7531a3a4b5 | ede0c8ec7d325fc18741ca903b45e8d2ef963039 | refs/heads/master | 2020-04-30T20:54:39.944731 | 2019-03-26T15:11:01 | 2019-03-26T15:11:01 | 177,081,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | """
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just two one's added together. Twelve i... | [
"noreply@github.com"
] | andyOrigin123.noreply@github.com |
b3de1c46413851b6c79b57c8ef17df6ce6239f08 | 7af268d7aa98473612afcb21fdeaf9ae4bfd6a5c | /electra_spacing/dataset/dataset.py | 4d540cb9b136e5ae3c9025ed54b60e7f1586c678 | [
"Apache-2.0"
] | permissive | seujung/electra_spacing | 3db19460a64cb9acde3d55e5ff72ba2a905ea3a1 | 7f7711567fff68284546e081f4236647dba6b5ac | refs/heads/master | 2022-11-28T14:04:08.971835 | 2020-08-14T13:48:41 | 2020-08-14T13:48:41 | 287,406,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | import torch
import dill
import pandas as pd
from random import random
from operator import itemgetter
from electra_spacing.tokenizer import get_tokenizer
special_tokens = ['[PAD]', '[UNK]', '[CLS]', '[SEP]', '[MASK]']
class SpacingDataset(torch.utils.data.Dataset):
def __init__(
self,
file_path... | [
"digit82@gmail.com"
] | digit82@gmail.com |
6bf1fcb69afde705f23184d4247094c7518ea8a8 | 21a29ab436a0f48c9968da788ba6ee2c293a8ad1 | /scripts/pdts/pdts_dropA_t0.py | 9c54822e5a81b3a036abddd99ded99f9eceb23eb | [
"MIT"
] | permissive | bazhiyong/chempropBayes | 3520a8cc17d4fe556869229a0de3855538fa5440 | 88d660398a772705804568b671b3614c636505aa | refs/heads/master | 2023-03-19T19:15:13.219611 | 2020-12-30T14:50:59 | 2020-12-30T14:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | import os
import torch
# checks
print('working directory is:')
print(os.getcwd())
print('is CUDA available?')
print(torch.cuda.is_available())
# imports
from chemprop.args import TrainArgs
from chemprop.train.pdts import pdts
# instantiate args class and load from dict
args = TrainArgs()
args.from_dict({
'datase... | [
"willlamb@beaker.cs.ucl.ac.uk"
] | willlamb@beaker.cs.ucl.ac.uk |
f0ee93a4074c8da518c1450c274a30b1cdd2ac23 | fde3f15c0640d542d13d448947933defa7e3b1df | /src/_test/test_login_fail.py | 81965bdc1fc2ce631552b0ae289693e00617031e | [
"MIT"
] | permissive | zxdxjtu/cloudComputingProject | 8c67d559eed520d39a9ad0afbe626613b55ba334 | f5b1f9254e3795f1ee64eec7234643d4a98e5996 | refs/heads/master | 2021-05-04T05:55:25.829756 | 2016-10-16T17:04:13 | 2016-10-16T17:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from app import app
from blueprint_test_case import BaseTestCase
class FlaskTestCase(BaseTestCase):
# Ensure login behaves correctly with incorrect credentials
def test_incorrect_login(self):
response = self.cl... | [
"rxie25@gmail.com"
] | rxie25@gmail.com |
37d110627122f58399dd78c0806effabc6ac07e5 | c2014b0a4ee80f39d4f3c4578341312ea963e615 | /Assignment2/RFassignment2Predict.py | 26468bea0c38693611a0420f1d0f91ae7a05dc0c | [
"MIT"
] | permissive | MaximilianMihoc/MachineLearning | a65fb5d783076a76db3127d1cd661e01cb4fc79b | bee03a4beea58bc500c890229536536cf78c8f43 | refs/heads/master | 2020-04-01T18:28:49.371455 | 2018-10-21T14:36:32 | 2018-10-21T14:36:32 | 153,495,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | from pandas import DataFrame
from sklearn import preprocessing
from sklearn.feature_extraction import DictVectorizer
import numpy as np
import pandas as pd
import csv
from sklearn import tree
from sklearn import cross_validation
from sklearn.cross_validation import train_test_split
from sklearn.metrics import confusion... | [
"max.mihoc@gmail.com"
] | max.mihoc@gmail.com |
1bbb87d1b2466539e6790d2e6a61b405410e979e | 80c87909c81f7d8253399c9e9e54969b68665c3f | /chp/charts.py | 3b632b7c0bb6c1a6fd28325cb8c6bf353cc3c746 | [] | no_license | it1525/CEMK_HP | cba429cedbb7603055d88b9947d439050ff840ff | 985039d617d6ec5cbff9a90bd877c9731ece62b3 | refs/heads/master | 2020-05-25T03:28:30.062835 | 2019-05-20T08:53:25 | 2019-05-20T08:53:25 | 187,603,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import pygal
from chp.models import Complain
from users.models import Profile
from django.db.models import Count
class DeptComplainBarChart():
def __init__(self, **kwargs):
self.chart = pygal.Bar(**kwargs)
self.chart.title = 'Department wise Complain Chart'
def get_data(self):
'''
... | [
"it1525@cemk.ac.in"
] | it1525@cemk.ac.in |
4568f2467a081a10c3b7057b1d105a5e0f16e682 | 2bd5e4c50dc9f0d19f9f20ffdaf0b88578fd7644 | /Matmatic.py | 42b7f86d1b6fe851238c47cc7550adf3098386e0 | [] | no_license | Mistik535/Zadachi | e248e9d0c6fc094545bab798af60870782868ce1 | d37b2b9fbd1c52c1d9a7345c8aa5a197e4527902 | refs/heads/main | 2023-07-03T10:25:50.728833 | 2021-07-22T17:23:55 | 2021-07-22T17:23:55 | 348,099,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # a = 2
# b = 2
# c = 3
# # #y = list(map(int, input().split()))
# x = (a + 2 * b - 3 * c) / (5 * a + 4)
# print(x)
#
# # dont work!
import math
#
# a = 2
# b = 2
# # x = (a ** 2) + (b ** 3)
# # w =
# x = math.sqrt(math.pow(a, 2) + math.pow(b, 3))
# print("x:", x)
#
# y = 1
# x = 2.136 + (2 / 3) * y
# print(x)
#
# a =... | [
"mr.chadway@gmail.com"
] | mr.chadway@gmail.com |
988e35a1c0043ed6844775a7278008acc5bd01fd | d6f7273500f28fcc0a378620cc4e417a08542992 | /turnedOn/turnedOn/wsgi.py | c1d388723b28d037f6d884e93b8b7bb43cc723a9 | [] | no_license | katelyndunaski/Turned-On | 109e1ecd168f97255c178b95cc289739da443fbb | 80b0e01d9ffd2c7b142a6ecbeb96e48a0f22f8fb | refs/heads/master | 2016-09-10T08:38:40.314407 | 2015-02-08T17:24:11 | 2015-02-08T17:24:11 | 30,468,506 | 0 | 0 | null | 2015-02-08T02:04:38 | 2015-02-07T20:07:49 | JavaScript | UTF-8 | Python | false | false | 391 | py | """
WSGI config for turnedOn 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/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "turnedOn.settings")
from django.core... | [
"ubuntu@ip-172-31-39-124.us-west-2.compute.internal"
] | ubuntu@ip-172-31-39-124.us-west-2.compute.internal |
707c7cb4f5f704f84ee4f3b07f62df36cb7bb8a2 | e1152ed447cf32f12acc1d71fddce1f6a1830023 | /zhaquirks/xiaomi/aqara_vibration_sensor.py | d1d8defe395ddaab7cea4adfeecbf5bcbd0962a7 | [
"Apache-2.0"
] | permissive | Gamester17/zha-device-handlers | f85d2ca864f7e6f977e46c3562b06ce9a3225790 | e7260ebb31025fbbbe5c5a9c2c8e7077aa85b66f | refs/heads/master | 2020-04-25T04:51:05.210691 | 2019-02-22T13:55:10 | 2019-02-22T13:55:10 | 172,523,970 | 0 | 0 | Apache-2.0 | 2019-02-25T14:44:06 | 2019-02-25T14:44:05 | null | UTF-8 | Python | false | false | 7,119 | py | import asyncio
import logging
import homeassistant.components.zha.const as zha_const
from zigpy.quirks import CustomCluster
from zigpy.profiles import PROFILES, zha
import zigpy.types as types
from zigpy.zcl.clusters.general import Basic, Groups, PowerConfiguration,\
Identify, Ota, Scenes, MultistateInput
from zigp... | [
"david.mulcahey@icloud.com"
] | david.mulcahey@icloud.com |
f1335c1e683e0f3a387c4f90ecc635733f2dbce5 | 05a175090ffebdd0713802aba1469f2673fda3d3 | /IntroNN/hw2_delvalle_network.py | 1ad44467d98f1d231d562f3ccbe7f7afbf9dfee4 | [] | no_license | gdelvalle99/CS691-Deep-Learning-Projects | c41d8a835eeb4247d88d8121dcacba96b431ac1c | d6f6e1b9a2caf24e283d15acf78da1c4bf521897 | refs/heads/master | 2022-10-04T22:26:52.728823 | 2020-05-23T21:56:18 | 2020-05-23T21:56:18 | 266,417,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,952 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from sklearn import svm
N = 250
size = int(N/2)
Uh = 20
Ul = -1
x_min2 = [Ul, Ul]
x_max2 = [-Uh, Uh]
x_min4 = [Ul, -Ul]
x_max4 = [Uh, -Uh]
o_min1 = [Ul, ... | [
"gdelvalle@nevada.unr.edu"
] | gdelvalle@nevada.unr.edu |
f025afbae8373d9c8e6056447c01f0f352ed3c2d | 12cf92d68790693e06a7088c98a856ced4536554 | /tools/pruneMentions.py | 5c04c03c14f9dac73b4c6d5f576ebdb6301d17d3 | [] | permissive | DaylightingSociety/SocMap | b334ff49c986c55c57dedc450e0bde035077daa3 | c8e9f40efdcee2c765cd02b6398d948fecf6bd83 | refs/heads/master | 2021-05-05T06:37:15.683469 | 2020-09-14T16:14:02 | 2020-09-14T16:14:02 | 118,809,485 | 18 | 4 | BSD-3-Clause | 2019-06-18T22:00:29 | 2018-01-24T19:07:59 | Python | UTF-8 | Python | false | false | 707 | py | #!/usr/bin/env python3
import sys, os
import igraph as ig
# This script deletes all edges with < threshold number of mentions
# It does *not* delete inaccessible nodes afterwards (see pruneInaccessible.py)
if __name__ == "__main__":
if( len(sys.argv) != 4 ):
print("USAGE: %s <mention threshold> <original.gml> <pr... | [
"milo.trujillo@daylightingsociety.org"
] | milo.trujillo@daylightingsociety.org |
df8348437cb3f52a36143204a8098092a7baae05 | cdd2003610c4c451dc38781d5ece2cf4e8138c27 | /src/convert_rviz.py | cd66d10b1a8cd9aecf17d38b1ef969533384d9a9 | [] | no_license | DLu/rwt_config_generator | 7efb29d773dddae0868be14606ba91893fae806c | 873b1aa0d4c94cdba3b15ef85d46f70c26f6dc86 | refs/heads/master | 2020-12-24T16:24:02.304617 | 2016-03-03T19:04:52 | 2016-03-03T19:04:52 | 39,230,985 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | #!/usr/bin/python
from __future__ import print_function
import sys
import yaml
from rwt_config_generator import *
import argparse
import rospy
def warning(*objs):
print("WARNING: ", *objs, file=sys.stderr)
parser = argparse.ArgumentParser()
parser.add_argument('rviz_config')
parser.add_argument('output_html_f... | [
"davidvlu@gmail.com"
] | davidvlu@gmail.com |
e43360af1818f7088e1ee3d0ef5d5ef217670f8a | 057caac442baac22cc9040519e3366156f79400e | /lista1/zadanie2.py | 4ef382a4e7f3f6901d3b3e6c524ca180d608cd8e | [] | no_license | KleczkoPawel/Python | 370239245e5a9e416b0f598bccd426034f2039c8 | ad565c1227ff4c621f2e996578a1d9a19d06f0e3 | refs/heads/main | 2023-03-27T10:04:06.788344 | 2021-01-21T07:30:52 | 2021-01-21T07:30:52 | 304,240,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import math
a=3
b=4
alfa=47
Pole=a*b*math.sin(alfa*math.pi/180)/2
print(Pole) | [
"noreply@github.com"
] | KleczkoPawel.noreply@github.com |
9b8b028c0c0efe89315744409a6b69fe90a07bea | 7930635dae78d050ebe158303aa5343a8440a884 | /lesson05/lesson05-3.py | c57400cea3fe4ec5bba9412246963cfa06edd93d | [] | no_license | lexpol/python_homework | 1211bda3db32b869e34c4cca2264372f5c99b240 | 667fe61f7e23ed834f13c68c40a99ef21c39d5a7 | refs/heads/master | 2023-05-30T22:04:09.144029 | 2021-06-09T01:04:40 | 2021-06-09T01:04:40 | 365,838,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # 3. Создать текстовый файл (не программно), построчно записать фамилии сотрудников и
# величину их окладов (не менее 10 строк). Определить, кто из сотрудников имеет оклад менее 20 тыс.,
# вывести фамилии этих сотрудников. Выполнить подсчет средней величины дохода сотрудников.
#
# Пример файла:
#
# Иванов 23543.12
# Пе... | [
"lex@poltor.ru"
] | lex@poltor.ru |
b2b18b0466f68363ec428575924ddb25850628e3 | 0ce934553a854e5a3d28971f73be19d0912449bf | /homePage/migrations/0002_auto_20190311_1333.py | e5ee1021a560d11d27a4092636182d934d75cbd7 | [] | no_license | keennhlc/GKWeb | d0c1c2617e2334ee9aba6e3b741d049cf75c9a62 | db34c14a4be13fab1cf16de66fc406b7142d7fcb | refs/heads/master | 2020-05-01T09:19:13.871041 | 2019-03-24T10:20:40 | 2019-03-24T10:20:40 | 177,397,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Generated by Django 2.2b1 on 2019-03-11 05:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('homePage', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='newscontent',
name='news',
),
... | [
"keennweb@gmail.com"
] | keennweb@gmail.com |
1ac1bf0d486a318d12379426563fee9a8f6f22d6 | fe85138c949c6198184c591780831fd2e183a24a | /Address Book.py | 251c32fc6f328cd1f9352bc08e897b68bbe90efc | [] | no_license | valeri1383/Personal-Python-Projects | e98f6b7171298def019db4e28f6d176a709615cc | b7db81cb44668f549a7fd15de84c0cb23654ac3d | refs/heads/main | 2023-05-26T09:02:24.260700 | 2023-05-22T14:40:28 | 2023-05-22T14:40:28 | 337,518,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | from tkinter import *
root = Tk()
root.geometry('400x400')
root.configure(bg='cyan')
root.resizable(1, 1)
root.title('Address Book')
contact_list = [
['John Smith', '07567374343'],
['Terry Adams', '07569984343'],
['Allen Gibson', '07564474743'],
['Grant Foster', '07567396843'],
['Hall... | [
"noreply@github.com"
] | valeri1383.noreply@github.com |
3c36c0d10742f9c25af173e2077d9c835a3e3ff8 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2015/12/graph.py | d441a54ca1edf2545aaaa16e0d18be8ec8d7318d | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 6,432 | py | # -*- coding: utf-8 -*-
"""
The :program:`celery graph` command.
.. program:: celery graph
"""
from __future__ import absolute_import, unicode_literals
from operator import itemgetter
from celery.datastructures import DependencyGraph, GraphFormatter
from celery.five import items
from .base import Command
__all__... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
706b1412b4d839f20812fa99a5bf77bacc68ade1 | 7aa82a17d3545ad418ce6defd84ec9e460937299 | /work/views.py | 8352fb4b2c73b7e59d3ae78eb6c4f4a00b58243f | [] | no_license | parin-2002/CRUD-IN-DJANGO | ad28052b69814a9f35c0427c82418440a82cb47a | 34557e9f9fc6a8e3e5d0d7edc7d070237b0387e5 | refs/heads/master | 2022-11-19T18:23:11.677185 | 2020-07-23T03:39:26 | 2020-07-23T03:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.shortcuts import render,redirect
from .forms import rgstudent
from .models import student
# Create your views here.
def reg(request):
if(request.method=='POST'):
form=rgstudent(request.POST)
if form.is_valid():
form.save()
form=rgstudent()
else:
form=rgstudent()
data=student.objects.all()
... | [
"1akashsuvagiya1999@gmail.com"
] | 1akashsuvagiya1999@gmail.com |
391b5234dde1dd8a811356eeeaa2d4e5f9d7a7ac | 1ae56f2ebb35f75c9e4ccb108b5eff2b158fa355 | /process_data.py | ab43b0172e6485bb40f1c534cb6c33c1d0795694 | [] | no_license | crrcgeorgia/air_quality | 5670d3b7390c2484d09238b9a985deb54688b27c | c16d8cd9b816cabccf425c4acb70d12dc32c9be1 | refs/heads/master | 2021-05-18T11:41:15.670321 | 2020-03-30T08:12:02 | 2020-03-30T08:12:02 | 251,230,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | from pull_data import pull_airq_range, pull_weather
from datetime import date, datetime
import pandas as pd
from fbprophet import Prophet
import progressbar
def air_processed(start_date, end_date, cut_points, cut_labs, *args, **kwargs):
air = (
pull_airq_range(start_date, end_date)
.quer... | [
"noreply@github.com"
] | crrcgeorgia.noreply@github.com |
9a9b63a8daca2426c5e7f92f421d90edd8b68eb5 | ca0556d3dc6fb6b92e194c4ff0a979619e7be0e4 | /I2c7SegmentLed.py | 8baadc4d53fbc559a2402174d86b34a339e609fe | [] | no_license | dcityorg/i2c-7-segment-led-library-raspberrypi | 2216c46eb945faf1dab2c15f1a123208d0e0a889 | 62910936e6a43d6585925f493cf72b2d609e9ffe | refs/heads/master | 2021-06-13T20:01:15.431573 | 2021-03-10T19:47:50 | 2021-03-10T19:47:50 | 146,506,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,329 | py | # -*- coding: utf-8 -*-
'''
I2c7SegmentLed.py - class library for using 7 Segment LEDs
Written by: Gary Muhonen gary@dcity.org
Versions
1.0.0 - 7/31/2016
Original Release.
1.0.1 - 9/1/2018
Transfer to GM, and some minor changes
Short Description:
The... | [
"“gary@dcity.org”"
] | “gary@dcity.org” |
4eb09dfed6ad25c8eddd6132f2dc73dff3fcc6a3 | 1933ef2c5b3ec58feeb50dd092d670f58a3ec2bb | /kospeech/models/modules.py | 352b6a0bd0bf59f8861fa3d7e573569560a2ad30 | [
"Apache-2.0"
] | permissive | hephaex/KoSpeech | 68275af311ae5c53548f7c7bc27fe9dd5b1e441b | bf3fa0dc6d50089164fd0b47e02620062718d407 | refs/heads/master | 2022-12-02T02:00:01.164265 | 2020-08-05T08:47:55 | 2020-08-05T08:47:55 | 285,344,731 | 0 | 0 | Apache-2.0 | 2020-08-12T14:53:11 | 2020-08-05T16:22:59 | null | UTF-8 | Python | false | false | 1,579 | py | import torch
import torch.nn as nn
import torch.nn.init as init
from torch import Tensor
class Linear(nn.Module):
"""
Wrapper class of torch.nn.Linear
Weight initialize by xavier initialization and bias initialize to zeros.
"""
def __init__(self, in_features: int, out_features: int, bias: bool = T... | [
"sh951011@gmail.com"
] | sh951011@gmail.com |
106c53998b513b93b70be5cc2982f708c3ecf2b3 | 5a4124eea866334a9e3ddd94c57dbf1df7e3378a | /virtual/bin/pip | 6d53621274d2a5698a9d66f0e36ee6c3cd195680 | [
"MIT"
] | permissive | Elrophi/Housing | 6eb465c06918e67faadbc0cdad4bfe6d139a178f | dc3ccc545eb9d609a62495cbea76f4f849d4658a | refs/heads/master | 2023-05-12T23:45:58.201434 | 2021-06-08T13:09:29 | 2021-06-08T13:09:29 | 373,784,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/home/el/Desktop/moringa-core/python-django/Housing/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"elrophilskwaila@gmail.com"
] | elrophilskwaila@gmail.com | |
07dc4711d757ebe944fcd4427827ad60b56c0574 | 6aaea15dbf99219f03b08f14582c4bbe085b41fc | /0304/bj7576_토마토.py | 16dd692c61cbd5d68aae8be8e2e55edb6aa70529 | [] | no_license | kkkin02/Algorithm | f6ade2d7bebc3bd878b0e1fb1b22206f146fcea7 | 797223528b344faea497fe8390d78cd683cd063f | refs/heads/master | 2023-03-17T02:40:38.407345 | 2021-03-05T14:01:54 | 2021-03-05T14:01:54 | 337,080,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | def tomato(t, box):
l = len(t)
if l == 0:
return -1
elif l == n * m:
return 0
dr = [-1, 1, 0, 0]
dc = [0, 0, -1, 1]
visited = [[0] * m for _ in range(n)]
q = []
for i in t:
q.append(i)
visited[i[0]][i[1]] = 1
while q:
p = q.pop(0)
r... | [
"rkddlsdud0720@gmail.com"
] | rkddlsdud0720@gmail.com |
51705550782e5a0f8c41b524d7d0cf60b7edc565 | fcbf3ddca275606830d455a69df73e20ced6546a | /doc/conf.py | 9ca4ca664b3f765a31dd264254f24c060e447023 | [
"Apache-2.0"
] | permissive | KarchinLab/probabilistic2020 | 5f56e30e0c8484ac524081dd022c0159f24508ce | 8e0b1b9578bd8189b1690dd2f17476c3305b98dc | refs/heads/master | 2023-07-26T12:06:28.647117 | 2019-07-28T12:37:50 | 2019-07-28T12:37:50 | 57,408,263 | 8 | 7 | Apache-2.0 | 2023-07-06T21:02:44 | 2016-04-29T19:32:49 | Python | UTF-8 | Python | false | false | 8,727 | py | # -*- coding: utf-8 -*-
#
# 20/20 Permutation Test documentation build configuration file, created by
# sphinx-quickstart on Mon Jul 28 13:53:42 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerate... | [
"collintokheim@gmail.com"
] | collintokheim@gmail.com |
a8e3cce479c0b620026b4944db203dae7b0979bd | b29d80506512e9cec2aa820c043c616751b13dcf | /serializers.py | 671d4c81e4ccca93029d7c7bbb733c0ca80d62a2 | [] | no_license | luvjoey1996/storageManager | f25e8d359294f28799e592f49febeea0ca1acb06 | 2d66820f05a80245e2c5ef2bcf56b00d3c747b8a | refs/heads/main | 2023-08-03T17:41:18.327926 | 2021-09-17T10:23:49 | 2021-09-17T10:23:49 | 407,498,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from marshmallow import Schema, fields, validate
from config import Configuration
from models import ServiceType
class CreateServiceSchema(Schema):
type = fields.Str()
class ServiceCreateSchema(Schema):
type = fields.Int(validate=validate.OneOf(choices=ServiceType.as_choices()))
memory = fields.Int(val... | [
"luvjoey1996@gmail.com"
] | luvjoey1996@gmail.com |
9a1838d05d52c92ed2187545c5cfa8e07d8125ed | d7871f3ff716919da9e7a7c9d7ba3a0732114d63 | /3DMean.py | 015010600c692df66f624d29270865533cf62baf | [] | no_license | eric-risbakk/kework | 337040d2b8df6915c9d9ed8ccd5303bf51b82f62 | 705556213a6f5fb9da28f4010d2ca4999b1f0915 | refs/heads/master | 2021-07-10T10:36:12.665117 | 2017-10-12T13:05:24 | 2017-10-12T13:05:24 | 103,539,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py |
import scipy.stats as spstat
import numpy as np
import numpy.random as npr
import scipy.stats as spstat
import numpy as np
import numpy.random as npr
__author__ = 'Eric Risbakk'
__date__ = "2017-09-14"
__maintainer__ = "Eric Risbakk"
__email__ = "e.risbakk@student.maastrichtuniversity.nl"
DEBUG = False
TEST = True
... | [
"I6146197@unimaas.nl"
] | I6146197@unimaas.nl |
16ffe2ce0b7d1d05344cc7814fd04b63e4a84196 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/hrbmax002/piglatin.py | 32eb09647dd7f6c75cec56edc0b28a10e8811327 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | def toPigLatin(s):
if s[len(s)-1] != " ":
s = s + " "
answer = ""
while len(s)>0:
temp = s[0:s.index(" ")]
s = s[s.index(" ")+1:]
if temp[0].upper() in ["A","E","I","O","U"]:
temp = temp + "way "
else:
temp = temp + "a"
w... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
eb085418aab782c970d7166273fd9b9262c46f5b | c858d9511cdb6a6ca723cd2dd05827d281fa764d | /MFTU/lesson 7/Test work/test_F.py | b6885f38ec053864866d442146f62a2ba115c3a5 | [] | no_license | DontTouchMyMind/education | 0c904aa929cb5349d7af7e06d9b1bbaab972ef95 | 32a53eb4086b730cc116e633f68cf01f3d4ec1d1 | refs/heads/master | 2021-03-12T11:15:02.479779 | 2020-09-17T08:19:50 | 2020-09-17T08:19:50 | 246,616,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Необходимо найти НОД двух чисел, используя алгоритм Евклида.
#
# Формат входных данных
# На вход подаются два натуральных числа, по числу в новой строке.
#
# Формат выходных данных
# Одно число - НОД входных чисел.
def gcd(a, b):
if a == b:
return a
elif a > b:
return gcd(a - b, b)
e... | [
"tobigface@gmail.com"
] | tobigface@gmail.com |
525051e2943540875900fe0b6db434ee527c30ba | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.py | 60afb66b6f88d5918aba22ca4b3b72c0ab5be76d | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 599 | py | """
Get hourly usage for Network Flows returns "OK" response
"""
from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi
configuration = Configuration()
with ApiClie... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
21ffffe2f10c8650b232760086dfbefe96216764 | c09f02ebc1c4418bf9324afd803532234293d6f5 | /CS61A/Project 2/trends_old3.py | d4d524fd8cdc2005ba0b1e2a888c2e360f710ecb | [] | no_license | jesseyli/OldProjects | a2fddabfbb6207616572c807fde71455f5197a6e | edc28b02bfdb2ea1f4041d879a20858b797e674f | refs/heads/master | 2021-01-10T09:05:07.294910 | 2016-02-05T07:34:04 | 2016-02-05T07:34:04 | 50,936,330 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,330 | py | """Visualizing Twitter Sentiment Across America"""
from data import word_sentiments, load_tweets
from datetime import datetime
from doctest import run_docstring_examples
from geo import us_states, geo_distance, make_position, longitude, latitude
from maps import draw_state, draw_name, draw_dot, wait, message, draw_top... | [
"jesseyli@berkeley.edu"
] | jesseyli@berkeley.edu |
33e3abf7249f08d1377e5d1805da84937ab779eb | 379934f86f2e7fce60c88222ed61bc106390271e | /glasslab/dataanalysis/misc/gr_project_2012/v1/boxplots_from_p65_gr_peaks.py | e7313cb2c1ebf8f13f60ddced648317001bc413a | [] | no_license | karmel/glasslab | a022fb3e1147382ba5f64c67d6db9b87b9bca2de | 754774390f03852d1385c5fffeb32fcdab5cd7e4 | refs/heads/master | 2021-09-04T18:00:49.650817 | 2014-10-06T19:37:25 | 2014-10-06T19:37:25 | 5,957,226 | 1 | 1 | null | 2019-09-22T16:55:29 | 2012-09-25T21:56:42 | Python | UTF-8 | Python | false | false | 1,966 | py | '''
Created on Oct 1, 2012
@author: karmel
'''
from __future__ import division
from glasslab.dataanalysis.graphing.seq_grapher import SeqGrapher
if __name__ == '__main__':
yzer = SeqGrapher()
dirpath = 'karmel/Desktop/Projects/Classes/Rotations/Finland_2012/GR_Project/'
dirpath = yzer.get_path(dirpath)
... | [
"karmel@arcaio.com"
] | karmel@arcaio.com |
9a704f28f280264c0f0f116eb2b5f892f3e8a617 | 2b3e562da5d9b473f3a7dcb3ba833552e649b675 | /session3.py | 6c0c799a912ea879733bcd1f02e38c53ad9dadf3 | [] | no_license | Aakashdeveloper/python-web | 51f89c34e30beb0be1d8fdd2e01b3e2617a334b0 | fe163c193b20d23794eb327d2d580124e32fe152 | refs/heads/master | 2020-07-25T12:38:13.416166 | 2019-09-27T15:07:32 | 2019-09-27T15:07:32 | 208,291,750 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
x = 10
# In[3]:
y = 20
# In[4]:
x+y
# In[5]:
x*y
# In[6]:
x/y
# In[7]:
x-y
# In[8]:
10<<2
# In[9]:
10>>2
# In[12]:
x == 10 & y ==20
'''
docker run --rm -u root -p 8080:8080 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/... | [
"ahanda205@gmail.com"
] | ahanda205@gmail.com |
6408b1b91926c28f6a0816eef12e75332aba15ac | 4113e7c9f1beb13a0ef963a6760e43b5cab676ce | /__init__.py | 4781cbd159824f702baafe799f5dee329fb4d432 | [] | no_license | charlieb/flowers | b413595b8ce1839123305ad96bdae6213a8b7faf | dca18ef10b849ee01518818279426699749a655e | refs/heads/master | 2020-04-19T08:36:48.699934 | 2017-01-09T04:12:00 | 2017-01-09T04:12:00 | 66,811,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | from .petals import petal, flower, draw
| [
"charlie.burrows@gmail.com"
] | charlie.burrows@gmail.com |
6450073c33cb50db18dc4b145b95d18e75ee47b0 | e2d22f12f8e540a80d31de9debe775d35c3c5c22 | /blousebrothers/confs/migrations/0037_auto_20170117_1535.py | 6841343b2a40c2fbb431ff15ae9ddfd4cd5a80ee | [
"MIT"
] | permissive | sladinji/blousebrothers | 360c3b78ec43379977dbf470e5721e6a695b2354 | 461de3ba011c0aaed3f0014136c4497b6890d086 | refs/heads/master | 2022-12-20T10:24:07.631454 | 2019-06-13T13:17:35 | 2019-06-13T13:17:35 | 66,867,705 | 1 | 0 | NOASSERTION | 2022-12-19T18:15:44 | 2016-08-29T18:04:33 | Python | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-01-17 15:35
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('confs', '0036_auto_20170110_1100'),
]
operations = [
... | [
"julien.almarcha@gmail.com"
] | julien.almarcha@gmail.com |
1465bbad98fe6c51d22d31a82efaa6fba3362f45 | e8a285cb1dcdae6f1b6d8506b8d25a1d031d6cd7 | /cpptools/tests/test_write_pythia_hepmc3.py | d4e73a3185bc0137d2756b3b3f25a6b491647b97 | [] | no_license | matplo/heppy | f30558e4ff3c1720c63b4d82f739b3f8acadc53e | 88c931e3e7dcf57a3a476ef0a92f0204491cafb9 | refs/heads/master | 2023-07-07T18:17:04.486149 | 2023-06-29T20:45:32 | 2023-06-29T20:45:32 | 201,352,733 | 5 | 8 | null | 2023-07-04T21:57:31 | 2019-08-08T23:33:39 | C | UTF-8 | Python | false | false | 782 | py | #!/usr/bin/env python
import pythia8
import pythiahepmc3
def create_and_init_pythia(config_strings=[]):
pythia = pythia8.Pythia()
for s in config_strings:
pythia.readString(s)
for extra_s in ["Next:numberShowEvent = 0", "Next:numberShowInfo = 0", "Next:numberShowProcess = 0", "Next:numberCount = 0"]:
pythia.re... | [
"ploskon@gmail.com"
] | ploskon@gmail.com |
e3015d6511a097f72860e5b54e64757741b0778b | 7401dac35fa6ea9bdbddb9dad15f5879ba2c0507 | /acadbehaviour.py | b63e506090b12ae2641e0ab31f24d2ad1c551201 | [] | no_license | airrakeshkumarsharma/student-classification | 995b096dd612806faf49b60a9c1e22678db53e1d | 9b46cbe0d6d8747ce78762e327473861ee44b7a2 | refs/heads/master | 2020-03-28T01:27:46.794113 | 2018-09-06T13:00:46 | 2018-09-06T13:00:46 | 147,506,789 | 2 | 1 | null | 2018-09-06T05:13:55 | 2018-09-05T11:22:52 | null | UTF-8 | Python | false | false | 3,725 | py | import pandas as pd
import random
#Serial Number
sno = []
#Academic Behaviour
active = []
sem = []
#Higher Studies
name = []
mba = []
ms = []
mtech = []
#Job
govtjob = []
it = []
entrepreneur = []
#Co-circular activities
sports=[]
music=[]
dance=[]
others=[]
#General Behaviour
result=[... | [
"noreply@github.com"
] | airrakeshkumarsharma.noreply@github.com |
0450edaf3b101ccb33050e851f1cf7ff76c42e14 | 8fd279f728b7a83e6f14fd6ab77da67459bd21df | /test.py | eed4c5c5c238b7175223f43ce87c4e216551fbf3 | [] | no_license | yiebo/stt-transformer | ec4de39fb3f54c8ab264aaa69f1b9b41c83d303f | 78a06451085064de0fd2417764183a1f4ea4b4d0 | refs/heads/master | 2022-09-09T11:32:19.265157 | 2020-06-05T16:06:16 | 2020-06-05T16:06:16 | 266,639,088 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,302 | py | from tqdm import tqdm
import glob
import os
import numpy as np
from prefetch_generator import BackgroundGenerator
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torch.utils import tensorboard
from torchvision import utils
import torchaudio
from torchaudi... | [
"yiebo-c@hotmail.com"
] | yiebo-c@hotmail.com |
66f6e4500621285bbbbaf51d4c572120cb3598e7 | 3b1229c458aa232bfcf11cd6da5f1275e9bb3a8f | /python/Python基础/截图和代码/if、while、for/PaxHeader/01-if比较运算符.py | 147895a71cc09ac233a82e6fae85d44e6ae21569 | [] | no_license | sunjianbo/learning | 4fee3ddc5e3d4040a49f2ef3e6f239fd6a67b393 | 384cb4e73cc67e390ee2f4be0da9fe0319d93644 | refs/heads/master | 2021-02-17T16:32:22.557614 | 2020-03-09T05:29:51 | 2020-03-09T05:29:51 | 245,111,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | 78 path=Python基础/截图和代码/if、while、for/01-if比较运算符.py
27 mtime=1491131771.711676
| [
"sunjianbo"
] | sunjianbo |
c8e2155ef68a3eba87ea0e8c4cab9b582c3f5355 | 8bc3e7bd0fa1714b3d0466e940ed801cf9a4c5d4 | /pyvisual/node/io/system_var.py | 2e6dfeaf5a70761d5951b4abff26e7ec2a04eaae | [] | no_license | m0r13/pyvisual | d99b3512fefaf4a2164362a0b7aabd1df9ecee03 | f6b3e2217e647b80f1379716c00e8adb53975bca | refs/heads/master | 2022-02-21T22:24:22.467475 | 2019-06-17T20:38:48 | 2019-06-17T20:38:48 | 140,211,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | import json
import os
import time
from collections import defaultdict, OrderedDict
import imgui
from pyvisual.node import dtype, value
from pyvisual.node.base import Node
from pyvisual.editor import widget
SERIALIZATION_WRITE_INTERVAL = 5.0
SERIALIZATION_FILE = "system_vars.json"
# if you add another variable with a... | [
"moritz.hilscher@gmail.com"
] | moritz.hilscher@gmail.com |
d820ae424b8b015df2aa8aee36762d571e6921f2 | 7b4d83e0e476110ed8ebf444da4f3125774ddcba | /projeto_extensao/PIL/ImageWin.py | 37cf8f26b7eecf295e7211894b42dde741dcf8a1 | [] | no_license | gefferson/projeto_extensao | 5fa70f99ac75b9dc2a09dbd5f458f6f74dcb7cf4 | 9ae9b232f6aabbe590b2791fda04ca4430f3655a | refs/heads/master | 2021-01-10T20:55:52.424534 | 2014-09-02T06:27:32 | 2014-09-02T06:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,375 | py | #
# The Python Imaging Library.
# $Id$
#
# a Windows DIB display interface
#
# History:
# 1996-05-20 fl Created
# 1996-09-20 fl Fixed subregion exposure
# 1997-09-21 fl Added draw primitive (for tzPrint)
# 2003-05-21 fl Added experimental Window/ImageWindow classes
# 2003-09-05 fl Added fromstring/tostring me... | [
"geffersonvivan@187-68-19-51.3g.claro.net.br"
] | geffersonvivan@187-68-19-51.3g.claro.net.br |
c55fcbc5290050fda7ddeebb2c0e6adec8d9980c | 703e6baed8e2b1efbd1aaee7eba3b6af1fb3fd84 | /nndist.py | 22521fb8082fa049edcfbd3e6d691c0c444eea03 | [] | no_license | deyh2020/EIT-computations | 12969400c2bec3810112a69da9a8d9a594ab2934 | 9159bff4bfda8b308a486b3404c90c0376e576eb | refs/heads/master | 2022-03-07T18:21:36.656263 | 2018-06-19T21:04:27 | 2018-06-19T21:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import pylab
import matplotlib as mpl
import numpy as np
import matplotlib.pyplot as plt
import scipy
from qutip import *
from scipy import linalg
from math import *
def nndist(x, n):
return np.exp(-4*pi*x*x*x*n/3.)*4.*pi*x*x*n
def nndistV(C, V, n):
x = (C/V)**(1./6.)
return np.exp(-4*pi*x*x*x*n/3.)*4.*pi... | [
"hudpsa@gmail.com"
] | hudpsa@gmail.com |
b1dc9e505c919a677e4ad516ba5eb32f5820c244 | 610dedfb6e21d297e8cdbcba599a4e564bd785cb | /EstruturaDeRepeticao/estruturaderepeticao-09.py | 8b4c1153a41989cbf2047c8067840d6a96441880 | [] | no_license | zumbipy/PythonExercicios | f7b2ddf2376b9ecb2aedc77531e3571dc746a12b | 7a17b78cf927a2889b93238542e90e00810c43e6 | refs/heads/master | 2021-01-23T10:43:47.997462 | 2018-07-22T14:58:44 | 2018-07-22T14:58:44 | 93,086,120 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Telegram: @ZumbiPy __ _ ___
# /_ / __ ____ _ / / (_) _ \__ __
# / /_/ // / ' \/ _ \/ / ___/ // /
# /___/\_,_/_/_/_/_.__/_/_/ \_, /
# E-mail: zumbipy@gmail.com /___/
"""
09 - Faça um programa que imprima na tela apenas os números
ímpares entre 1 e 50.
"""
# ===============================================... | [
"zumbipy@gmail.com"
] | zumbipy@gmail.com |
dc6940ccab54fe26f6cdd8418152ac93e3a870f6 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/tpu/feature_column_v2.py | 1a5bddb173a599ee196c98ef4cd8bf3483151377 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,102 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
ad0cdab693cf632e6b1795e623fb5a5965e77727 | 18a0f4ddefae1e9a0ddae86de7315bacd1a96491 | /apps/users/views.py | 6681229876742a55d927c790d13ae2c52aa24ef3 | [] | no_license | ZVR999/belt_reviewer | f1a2d41bcced69f906d73178f06acc4f6b215431 | ffe0099813bfb1389c0a52f400ba00fc2d9acf86 | refs/heads/master | 2020-03-29T04:05:46.229105 | 2020-02-11T17:40:10 | 2020-02-11T17:40:10 | 149,515,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from .models import User
from ..reviews.models import Review
from ..books.models import Book
import bcrypt
from django.contrib import messages
# Create your views here.
# Create a User
def create(request):
... | [
"zachkery999@gmail.com"
] | zachkery999@gmail.com |
097f6aa61829185596618db0242a9f7088507c1b | 98005f697f615e55d1a34bbb8f71fb45dd11f2be | /agmapi/__init__.py | 275199dc36eeee47ba48903ed7abfd9d83c8931a | [] | no_license | sreecodeslayer/khub-task | 0a2bf12cc4d65c6feea0e3fde4cf0484ce5d779b | 97edf6670bcaa0675aed2f589644e31747d54862 | refs/heads/master | 2020-03-10T06:42:04.900308 | 2018-04-17T05:10:19 | 2018-04-17T05:10:19 | 129,244,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | from flask import Flask, render_template
from flask_restful import Api
from .db import init_db
from .utils import init_logger, get_logger
app = Flask('agmapi')
app.config['DEBUG'] = True
app.config['MONGODB_SETTINGS'] = {
'db': 'AGMAPI',
'host': 'mongodb://localhost:27017/AGMAPI'
}
init_db(app)
init_logger... | [
"kesav.tc8@gmail.com"
] | kesav.tc8@gmail.com |
3227cb4f2668033863586798ab35d19867aa42b8 | 443690c3b6e0ab294cd24fee3db164b756a45f02 | /cs308app/migrations/0008_auto_20201116_2352.py | e1618e0313c80ad4fc2fba800e3361402dd86fee | [] | no_license | oziyildirim/DjangoSoftEng | 19175770fdce3c66506d0f48ce9309912cd42912 | 97bf4d8821867f94d70802d65bde92b1f3aeb1d9 | refs/heads/main | 2023-04-01T06:55:03.421094 | 2021-04-07T16:55:06 | 2021-04-07T16:55:06 | 336,238,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | # Generated by Django 3.1.3 on 2020-11-16 20:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cs308app', '0007_auto_20201110_2233'),
]
operations = [
migrations.AddField(
model_name='basketitem',
name='quantity... | [
"oyildirim@sabanciuniv.edu"
] | oyildirim@sabanciuniv.edu |
971a9e6462e076e0cd93f1bffaa93f96f40d2ccd | d8648e2c56452c6ee09aced281b0810a702467ec | /blog/migrations/0003_auto_20181217_1108.py | 69e6236703fe51a9a139a9de960baa01582cb1e5 | [] | no_license | nikhil0162/django_Project | c51018eacf4965b7edf62d1067c636476454e2e1 | 25c4f4c1c5065bcb127590a2339e4d7725078be8 | refs/heads/master | 2022-12-14T04:20:36.839251 | 2020-10-29T17:39:27 | 2020-10-29T17:39:27 | 159,532,188 | 0 | 0 | null | 2022-12-08T02:28:32 | 2018-11-28T16:30:36 | HTML | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.1.4 on 2018-12-17 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20181215_0712'),
]
operations = [
migrations.AlterField(
model_name='carpost',
name='launched_date... | [
"nikhil0162@gmail.com"
] | nikhil0162@gmail.com |
6a5596e9f5936e591842035cd79dd7c31355ad3f | d169aaea184d13b92a79db7ddcdf6cafc8696fb7 | /ArrayMathematics.py | 40acb0b5e066a3de3f3559ea5c8b44e7419747c9 | [] | no_license | sahilshah1610/HackerRank | 71dcc6c5d5f8411240e12c2e74c31fc5c62d5ed0 | 1fd63624b05927bf5ac38ee206d4f7e79b000b68 | refs/heads/master | 2023-01-28T23:21:42.383578 | 2020-12-14T05:21:36 | 2020-12-14T05:21:36 | 314,386,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import numpy as np
if __name__ == "__main__":
n,m = map(int, input().split())
arrA = np.zeros((n,m),int)
arrB = np.zeros((n,m),int)
for i in range(n):
arrA[i] = np.array(input().split(), int)
for i in range(n):
arrB[i] = np.array(input().split(), int)
print(arrA + arrB)
print... | [
"sahil.shah56@gmail.com"
] | sahil.shah56@gmail.com |
e372c12cb3b68da6d60f0b9badb77c5351675ea6 | dfd0036b13141f0a61ce29325044d9fc3accfa67 | /prob20.py | 165d4cd80e0efaa2f74d5cae6b4c7d1396f817cc | [] | no_license | V-Neck/Euler | a909a9265ce8b0b09204189adcf7655ffe9bec5d | 4710f1456cc9c23eb0564122878b4245bd6c33d8 | refs/heads/master | 2021-05-06T17:58:49.316448 | 2018-04-09T02:48:03 | 2018-04-09T02:48:03 | 111,858,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from prob15 import fact
print sum([int(i) for i in str(fact(100))])
| [
"evilepicproductions@gmail.com"
] | evilepicproductions@gmail.com |
e3bb0a08160c3b5afbb1561fc67f5e5b2b320380 | 43a676d507c9f3e007d46b9335c82f77e35350f6 | /config/wsgi.py | df17ccb416ed061cc0afd7cf24b277bc198a94b4 | [] | no_license | Zoxon470/nekidaem-blog | 79136fd9f4747afd01beb02bfd9d0c524493a6f6 | c2539963d149841397e9eb2d4153a73abea15da2 | refs/heads/master | 2022-05-02T20:14:05.805564 | 2019-06-27T21:50:57 | 2019-06-27T21:50:57 | 194,165,211 | 0 | 2 | null | 2022-04-22T21:53:15 | 2019-06-27T21:25:07 | JavaScript | UTF-8 | Python | false | false | 340 | py | import os
import sys
from django.core.wsgi import get_wsgi_application
app_path = os.path.abspath(os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.pardir))
sys.path.append(os.path.join(app_path, 'nekidaem-blog'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'config.settings.dev')
application = get... | [
"zoxon470@gmail.com"
] | zoxon470@gmail.com |
15834731332573ccf1a384394228b16286a05343 | f2e7442f38465fdd237c763c80f436e3f103221c | /experimental/HandKeyPointsCustom.py | caf05d577f753b76b5d6fd0187ac6e81faa72eb9 | [] | no_license | SuhelNaryal/Sign-Hawk | fda0f35efd9b0a7c17e0562efd7faac76367ab57 | 52e3e150b1ea30c7c4c15ee54f0dba09d0408dc7 | refs/heads/main | 2023-01-24T13:24:57.984937 | 2020-11-23T11:30:16 | 2020-11-23T11:30:16 | 303,287,298 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | import keras
import tensorflow as tf
def HandKeyPointsLoss(y_true, y_pred):
y_pred = keras.backend.cast(y_pred, dtype=tf.float32)
left_hand_true = y_true[:, :, 0]
right_hand_true = y_true[:, :, 1]
left_keypoints_true = y_true[:, :, 2:65]
right_keypoints_true = y_true[:, :, 65:]
lef... | [
"noreply@github.com"
] | SuhelNaryal.noreply@github.com |
51d514b03c5d8f55cd4062f7f5d8f84380a4ae58 | 8288c6f44ed26292b0795d2290763e19043a058d | /lab9gradient.py | 81a01b213cfa165f7db1d35c6a268be0b35c433e | [] | no_license | szymonln/Mownit2 | d763a1a40b44c45a6a95f26b355cf7442ff58943 | d27d1e194133e6930109eb4d2261bb10dd0590fa | refs/heads/master | 2020-04-03T15:33:26.161354 | 2019-02-08T14:31:46 | 2019-02-08T14:31:46 | 155,366,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | cur_x = 3
rate = 0.01 # Learning rate
precision = 0.00001
previous_step_size = 1
max_iters = 10000
iters = 0
df = lambda x: 2*x - 2.71 #Gradient
while previous_step_size > precision and iters < max_iters:
prev_x = cur_x # Store current x value in prev_x
cur_x = cur_x - rate * df(prev_x) # Grad descent
pr... | [
"szymonln@gmail.com"
] | szymonln@gmail.com |
9207dc3cabf5a523ba87298730ea3d3b9f8d7750 | 7a01d168819027ed74021395edf55c79419b1e74 | /miSitio/urls.py | 06f844768f45cce9e92f4a22619de57896d7bf07 | [] | no_license | TeresaHRivas/my-first-blog | 4f2347f53faf222f7279de1d89f282815cf94422 | a6794fca9249ec2d41730f4e420c537e09d045d4 | refs/heads/master | 2020-07-20T15:21:27.431700 | 2020-02-28T22:36:38 | 2020-02-28T22:36:38 | 206,666,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """miSitio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"teresahrivas4@gmail.com"
] | teresahrivas4@gmail.com |
b2cd196a4e77d83e542be25199838e0b8ec80ff9 | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/assessment/automate/formatters.py | dac02f8f9749219cec476cf1e0392f3c9036f96a | [
"MIT"
] | permissive | uktrade/market-access-api | 6b4680e6455eb5c25480ccd3e3d9445654269f36 | 4da26d1be53843d22411577409d9489010bdda09 | refs/heads/master | 2023-08-30T14:47:10.373148 | 2023-08-29T13:58:08 | 2023-08-29T13:58:08 | 131,856,014 | 2 | 3 | MIT | 2023-09-14T08:04:42 | 2018-05-02T13:38:37 | Python | UTF-8 | Python | false | false | 2,065 | py | def rca(import_value, export_value):
if import_value is None or export_value is None:
return "NA"
elif import_value > 0 and export_value > 0:
return "Specialised"
elif import_value < 0 and export_value < 0:
return "Unspecialised"
return "Inconclusive"
def rca_diff(import_value,... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
c5b435586383bec7e14c2017d6182ce5f217272e | 449147399b91db8ca3192e9960834a73967cd01d | /pandas-ml-utils/pandas_ml_utils/ml/data/reconstruction/__init__.py | 52b22fdb3e0d667496a779c3c98ac6e25c9b2549 | [
"MIT"
] | permissive | brunoreisportela/pandas-ml-quant | 04b81568b900d226bb7028ccbe81ea97d0c00587 | a80b06aab28f38c3c6cb298e96f497e4fcdb95a5 | refs/heads/master | 2022-12-18T23:51:38.297857 | 2020-09-08T06:14:16 | 2020-09-08T06:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from .prediction import assemble_prediction_frame | [
"ch9.ki7@gmail.com"
] | ch9.ki7@gmail.com |
bb78b536e10ed1c070713095bc6926c0d668fe9b | 680ef089e77f3d510f0fbe7d632c01fb497e2a57 | /manage.py | 6b33c09231ad589a05eba9ffb021c19d258c0cd0 | [] | no_license | kupuk090/idaproject_test | 3fa4ef68ba9ca921edb4ad603ba39e5c9a3f9b7f | e92cbf615bc360fc44f45c746be3f4431b48ee41 | refs/heads/master | 2023-04-09T10:29:22.869203 | 2021-03-21T22:59:41 | 2021-03-21T22:59:41 | 350,136,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'image_resizer.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"kupuk090@gmail.com"
] | kupuk090@gmail.com |
cbf179d79502288c0887998e124e14e76e67a723 | c271c196bf2730c20de42f75568336cd8ccd07d1 | /password_generator/settings.py | b735e335e8541b7ca0067bb54d2db2e9ee2e225f | [] | no_license | entry-dev/django3-password_generator | e68f97565944355c8001ad35a73118a8741a1106 | 74f2684e9cdd597bccf9a4aaedbc208625e42de2 | refs/heads/master | 2023-01-04T03:23:48.416370 | 2020-11-04T23:52:36 | 2020-11-04T23:52:36 | 310,145,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | """
Django settings for password_generator project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
f... | [
"ivan.krstic@yahoo.com"
] | ivan.krstic@yahoo.com |
e706179c11effcfa8f133d63d2655724fca4d1e9 | 0005e05b9d8b8ad0d3c3c0539b2ded9db6e9f1dd | /codechef_client/models/tag.py | 4cdd6e64295823ef02e369ae6ce1a056970ea646 | [] | no_license | termicoder/codechef-client-lib | a3e3de2b300355c5daa5ed3fad03a9859af13d86 | 74d6b21787c75a987e3451751f5554e4cc6cf469 | refs/heads/master | 2020-03-27T17:58:45.298121 | 2018-09-30T18:03:14 | 2018-09-30T18:03:14 | 146,889,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | # coding: utf-8
"""
CodeChef API
CodeChef API to support different applications. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Tag(object):
"""NOTE: This class is auto... | [
"diveshuttamchandani@gmail.com"
] | diveshuttamchandani@gmail.com |
ca649f8cd329ae6e3c66facc2dfe5d27aa53dc6b | a70538105d0cb172c2f5628f083d53529904941b | /Watermelon.py | 04c38d409a4fa100bf7fb7a115aef465f1a1019a | [] | no_license | Raihan-009/Codeforces | 792be79991d1ade5aa87e779506173b5d4fac442 | 3bb53f2561a29793964ebaf76848de5be8ba975e | refs/heads/master | 2022-09-12T09:40:45.988289 | 2020-06-01T14:24:48 | 2020-06-01T14:24:48 | 268,368,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | '''
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.
Pete and... | [
"64744693+Raihan-009@users.noreply.github.com"
] | 64744693+Raihan-009@users.noreply.github.com |
b0f8b3dc5a6fbec391eb180abdea385a1eda72cf | 3dab50196ae7c93ec7f0bb7ddc84c2409a989e15 | /13305.py | acc6652e9e7bfc9a919643103706dd5812e3ceb7 | [] | no_license | seounjin/baekjoon_algorithm | 7d8b6a8f51356ad862cdb3229ff628a9e1ca49d8 | a7a3f212992fd9248db9680c901536d68e5680bd | refs/heads/master | 2022-12-21T03:15:17.968041 | 2020-09-16T15:25:23 | 2020-09-16T15:25:23 | 185,127,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # 주유소
import sys
input = sys.stdin.readline
N = int(input())
# 도로의 길이
road = list(map(int, input().split()))
# 도시당 가격
city = list(map(int, input().split()))
road_len = sum(road)
road += [0]
answer = [0] * 100000
answer[0] = city[0] * road[0]
temp = city[0]
for i in range(1, N):
temp = min(temp, city[i])
... | [
"invanda7@gmail.com"
] | invanda7@gmail.com |
62d9fb786e671921898f8a2ecbece758e2046377 | a5f5f19615d1af450338b8d1071b940bcc68ab91 | /core/mixins.py | 9beda68da1934370bd1b925f13dde7f55033d5b7 | [] | no_license | duydo131/hotel | 987943dc184d3f98fe96ddbd16c6a4453605c9e3 | b010d84a657ddb54c1f6c6add656fe21e5f74a31 | refs/heads/main | 2023-06-15T09:14:37.109199 | 2021-07-16T03:26:02 | 2021-07-16T03:26:02 | 369,415,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from rest_framework_extensions.mixins import DetailSerializerMixin
class GetSerializerClassMixin:
serializer_action_classes = {}
serializer_detail_class = None
queryset_detail = None
def get_serializer_class(self):
try:
return self.serializer_action_classes[self.action]
ex... | [
"dotheduybk131@gmail.com"
] | dotheduybk131@gmail.com |
494f4579cf7fca7b1eb90c375efb34a67f6d3cd4 | e319b3f9b80f0e8a843cec7edd65f19baa0c9f3b | /Interface/Dialogs/SpendOrRestoreSpellPointsDialog.py | 3aa7c90fe3e39e7fa58af55d966d06d1c6e5583f | [
"MIT"
] | permissive | Snackhole/PyFifth | 0e852ece4ef37d0cfa952d0b47d1d9c42ea6b1fd | 2a5419dea0309119d3ffbb5ba33ec14395d6dd59 | refs/heads/main | 2023-08-19T02:00:20.433299 | 2023-08-01T00:21:56 | 2023-08-01T00:21:56 | 125,868,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | from PyQt5 import QtCore
from PyQt5.QtWidgets import QComboBox, QLabel, QPushButton, QDialog, QGridLayout, QSizePolicy, QSpinBox
class SpendOrRestoreSpellPointsDialog(QDialog):
def __init__(self, CharacterWindow, RestoreMode=False):
super().__init__(parent=CharacterWindow)
# Store Parameters
... | [
"snackhole.dev@gmail.com"
] | snackhole.dev@gmail.com |
8001d2f7a9d565237552aea7cbf4fd1650d437b9 | 912196d86c93c29b3b031792e3cf886420a0fbde | /core/rnn/rnn_minibatch_test.py | c8e233c8e50eb5ebf1c20a8a41d63c0c12daa8c2 | [
"Apache-2.0"
] | permissive | brian-lau/guac | fce363745c9a778733f1df765fd9c3b832fdeef4 | c3db6cdbe56a1cb04486650ea5473287ba159ad4 | refs/heads/master | 2020-05-29T11:55:34.494957 | 2015-10-28T02:17:34 | 2015-10-28T02:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,065 | py | # adapted from https://github.com/lisa-lab/DeepLearningTutorials
from collections import OrderedDict
import copy
import os
import re
import random
import timeit
from hyperopt import STATUS_OK
import numpy as np
import pandas as pd
from scipy import stats
import theano
from theano import tensor as T
import common
... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
50956f529320e551f07a71600677d930f51f66ab | 4b7883843049d01fa718368f09ee0aa41167f595 | /1HelloWorld.py | e27b7c5f2a359339b94f53dc65f6d1b6e00538f6 | [] | no_license | rickyjreyes/Python_Tutorial | fac324fa94e28e45f8c1293b6c4f0fe8db714052 | 00c1e90e732a6066f1324df52ee6832a85b5d6bb | refs/heads/master | 2021-06-12T03:33:53.140440 | 2017-03-19T08:25:15 | 2017-03-19T08:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # HelloWorld.py
#
# First Program!
# This prints hello world
print("Hello World!")
# More Practice: Make 5 of your own prints
print("My name is Ricky!!!!")
print("My favorite color is blue!!!!")
print("Video games are cool!!!!")
print("I love to code!!!!")
print("This is Python :)")
# This is a... | [
"noreply@github.com"
] | rickyjreyes.noreply@github.com |
840981ee699fd005cdcb4fa9ecbb2214b62fced0 | a6986f430351dcc871d035f8361ca377ddc90edf | /HouseAnalysis/house/migrations/0001_initial.py | afdaea7fc6b90257183f31bc00fc8691e54c02e0 | [] | no_license | qijianchuan/HouseAnalysisWeb | d9f65a91cb1dba2bfea482214c6b532a59e21a8c | 8a619c77bdfb3516c37df912d6fe7bf14d27e706 | refs/heads/master | 2023-03-15T23:23:02.677191 | 2020-04-30T14:59:19 | 2020-04-30T14:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,836 | py | # Generated by Django 2.1.5 on 2020-03-12 07:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Api',
fields=[
('id', models.AutoField(auto... | [
"zj20162325@163.com"
] | zj20162325@163.com |
99e00483b2fcb94681bab327da53cc9bd655b160 | 9644e6b9b8bf64dac7b95cd527b5364653bf7ea7 | /stuff_map/migrations/0002_car.py | 7969ea652672628e197f29e5bbe827b897c46cb4 | [] | no_license | mittonface/stuff_map | d6e651cb0fc96c3985e4ca4cfa0f75000c4f78e0 | 5b758ee713c4c11c3a5c4ffceac04ea80b5583bb | refs/heads/master | 2020-06-14T03:59:39.848546 | 2016-12-04T17:21:16 | 2016-12-04T17:21:16 | 75,493,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-03 17:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stuff_map', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"bmitton@gatech.edu"
] | bmitton@gatech.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.