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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cde0caf06127a2d54753d2be9a1c321b2d3d73cc | f3abfa06395375bf88245ca172bb0af64b19adf3 | /dcivil/migrations/0003_auto_20200202_1316.py | 9392179bb018eac6d08ab42b599ba6462915fb42 | [] | no_license | loyolabechara/intelicity_be | 5394e356132f2532ad5dbf295a49fc207d1d8f86 | 81dc055ba1e686b2838d7294c641561886473b2c | refs/heads/master | 2020-12-05T19:10:18.721371 | 2020-02-29T03:28:31 | 2020-02-29T03:28:31 | 232,219,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # Generated by Django 3.0 on 2020-02-02 16:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dcivil', '0002_auto_20200202_1257'),
]
operations = [
migrations.AddField(
model_name='dirigente',
name='celular',
... | [
"loyola@jlb.net.br"
] | loyola@jlb.net.br |
dc9a696d53a940224de5525365420e23e1c82e96 | 5077fc5d82caa3b3ed5ce0e062bfe75cd4037ebc | /forever_thinking/bilibili获取封面.py | 260f9926d90e3490e4b217ca8bb4cc9d9081eb75 | [] | no_license | asswecanfat/git_place | ee10e1057d8307d3c72f57291b5bcb6d0579017e | 244ff0de11ffbe1aa9f20308e43af39486507f6f | refs/heads/master | 2021-07-18T23:06:14.324164 | 2020-09-02T12:15:27 | 2020-09-02T12:15:27 | 210,833,462 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import requests
from bs4 import BeautifulSoup
from attr import attrib, attrs
import json
import re
import random
import os
@attrs
class BiliBili(object):
file_path = attrib(default=r'C:\Users\10248\Desktop\1.txt')
pic_path = attrib(default=r'C:\Users\10248\Desktop')
source_wab_url = attrib(default='https:... | [
"1024847824@qq.com"
] | 1024847824@qq.com |
dafdf6e9e4f6f88b4153c18807b15bc3e4ee67ce | e71ef588cd26c6342d7cd75a28f71cc3e74eae2f | /portal/dashboard/admin.py | 3330f09c9532d72d756bd5749c60872beff5cce8 | [] | no_license | muska-choudhary/newProject | dfb4724348be983d2834f650c3fd1cbdb7176d0f | 4dd6e2d43c6d8037ba9feb4b7cd9d73d216aa1cf | refs/heads/main | 2023-07-17T07:41:32.631742 | 2021-08-23T16:15:04 | 2021-08-23T16:15:04 | 398,965,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.contrib import admin
from . models import *
# Register your models here.
admin.site.register(Notes) | [
"noreply@github.com"
] | muska-choudhary.noreply@github.com |
1be95d863dfee38a01b91acfc9abf1c957153b61 | 5e4bacde637e872ae9057dc1eeea6fa452e315c4 | /first_project/populate_test_app.py | 4dbe44ab661119f6f592964006d370453dc852fe | [] | no_license | get2nav/django_test_deploy | 9c738161c36df00b5693924b49534e65f6bbca95 | 8baab4644209b424bcda9cec2d3ee2ab83e2906b | refs/heads/master | 2021-07-13T00:21:55.530280 | 2017-10-18T05:14:20 | 2017-10-18T05:14:20 | 107,361,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','first_project.settings')
import django
django.setup()
#fake pop script
import random
from test_app.models import AccessRecord, Topic, Webpage
from faker import Faker
fakegen = Faker()
topics = ['Search', 'Social', 'Marketplace', 'News', 'Games']
def... | [
"get2nav@gmail.com"
] | get2nav@gmail.com |
ba6306487c83faeec431bad2bb06879a4608adfe | 84cd1e3493cf0020d39a38c90c5eb7e7b103cf54 | /card.py | 51012e2d75aa1f6030fccf472e6a64e272e98c51 | [] | no_license | jbrunsting/poker-player | cf7c8b12a56ce1d52d330bb1ceeb42814476ad90 | 0e81c9f6bacfbd17bda16b573e3b0641c14e72cc | refs/heads/master | 2022-04-21T13:16:48.133194 | 2020-04-20T16:52:11 | 2020-04-20T16:52:11 | 254,972,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | SUIT_INDICES = "shdc"
MIN_CARD = 2
MAX_CARD = 14
NUM_SUITS = 4
class Card:
def __init__(self, suit, val):
self.suit = suit
self.val = val
def __str__(self):
unicode_card = ord('🂠')
if self.val <= 10:
unicode_card += self.val
elif self.val == 11:
... | [
"jbrunsting@uwaterloo.ca"
] | jbrunsting@uwaterloo.ca |
68939c3d483e5097c1f1e33bf06e1a96c678806c | 3ff045a27d4cd828f1568ef4551077dd3732b97f | /GoodleLanceJanice.py | c0857272da38ec9c7da90a1a5e4ffb3dbedc0221 | [] | no_license | nightowl97/goodle | 4ae6792e8eb43fb453a43716968419b27f73550b | 6718c3151cae837bbe96ee3cdce42b545a5b27f4 | refs/heads/master | 2021-01-19T21:13:14.145428 | 2017-01-10T23:43:30 | 2017-01-10T23:43:30 | 88,626,557 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py |
test = "Yvzs! I xzm'g yvorvev Lzmxv olhg srh qly zg gsv xlolmb!!"
def answer(s):
res = ''
for i in range(len(s)):
if ord(s[i]) <= 96: # If number is not a lowercase alphabet
res += s[i] # Then just keep it
else:
# Get the resulting char by using its distance from 'a'... | [
"feverier@hotmail.fr"
] | feverier@hotmail.fr |
657691f0e148e8ba93dc360f4d8b4aad40fc643d | b249363c964248fbf8e567e14ecd7c1fc7fde5b2 | /server/newscraper.py | 376c3bd9cd2c28bb5f7a900018ff55e13babbd86 | [] | no_license | Justintlai/watersports | fec7e8d9c75ab5b6085f83273207bf851bab5afb | 0b443299884e4f558c6a7d802365b3c843a4f7de | refs/heads/master | 2021-07-11T21:28:39.253446 | 2017-10-09T00:12:23 | 2017-10-09T00:12:23 | 106,175,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,080 | py | import random
import time
from datetime import datetime
import requests
from bs4 import BeautifulSoup
from pws import Bing
from pws.google import strip_tags
word_file = "words.txt"
WORDS = open(word_file).read().splitlines()
def main():
# c = gnp_fixed.get_google_news_query("earth")
# print(c)
# return
... | [
"alexanderfanthome@googlemail.com"
] | alexanderfanthome@googlemail.com |
d5c6bf8fc78a0d43c339a77d1a7de8e8d671ddf9 | 3448030a8da01a4c66ecbf52372bb71e929cd873 | /seed2xprv.py | 1dbe7932ab0ce4e2fdfb6c9e0ad1a2ef2a9a86cb | [
"MIT"
] | permissive | brunokrauss/crypto-key-derivation | 193662816a4a3f1e27a0144157fe1a056ec59c23 | 78285fca158aaf31a276406286d265318ee359ee | refs/heads/master | 2023-06-24T21:30:54.786702 | 2021-07-06T12:34:23 | 2021-07-06T12:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!./venv/bin/python
from lib import mbp32, utils
xprv = mbp32.XKey.from_seed(bytes.fromhex(utils.one_line_from_stdin()))
print(xprv.to_xkey().decode('ascii'))
| [
"errge@nilcons.com"
] | errge@nilcons.com |
42ced21b32a7c64522b3bdfd8516de69b7762605 | 0688175e67a23facf6ca86b51fd776bcdd6a78d9 | /getIssue.py | d0b5f2e48e192b7fe39e37b69a1b762a56ebd037 | [] | no_license | MG1333051/IssueSummary | e10d1ecc15bb64e0f004e9a71009229243160c30 | d068763dd240399045011d4cfa744977c59dc9c6 | refs/heads/master | 2021-01-12T21:45:15.184634 | 2015-11-17T01:55:55 | 2015-11-17T01:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,792 | py | '''
@author: Lenovo
'''
import github
import csv
import urllib
import re
gh = github.GitHub()
#print(gh.users('michaelliao').get())
headers = ['number', 'id', 'reporter', 'created_at', 'updated_at', 'closed_at', 'state',
'locked', 'assignee', 'milestone', 'comments', 'label_name', 'title', 'pull_request',... | [
"xiaobena@live.cn"
] | xiaobena@live.cn |
ab6eedac97421d8a06a3c9e76013d65e82b63991 | 405ed3b49248e033789bd17bd8dfd30e5a9ef7bc | /lesson_3_task_4.py | 4f6c2419c91de2ae3490938613fc9646c830f15a | [] | no_license | GorobetsYury/python_geekbrains | c50d0909645c479bbc90d104ee1e0ffa789da563 | 1639f596b1666c5f36742409597f8e9c7bde394e | refs/heads/main | 2023-01-20T13:34:30.795615 | 2020-12-02T17:29:31 | 2020-12-02T17:29:31 | 309,039,606 | 0 | 0 | null | 2020-12-02T17:29:32 | 2020-11-01T06:47:51 | Python | UTF-8 | Python | false | false | 785 | py | # Определить, какое число в массиве встречается чаще всего.
import random
SIZE = 10
MIN_ITEM = 0
MAX_ITEM = 100
array = [random.randint(MIN_ITEM, MAX_ITEM) for _ in range(SIZE)]
# При равенстве повторов показывает то число, у которого индекс меньше
count = 0
max_count = 0
number = None
for i in array:
for j in ... | [
"u_gorobec@rambler.ru"
] | u_gorobec@rambler.ru |
5d241edba0322488b4b7f84cee1a16c8cd0b1bd6 | cdd0fa35e6867932d9821b54f3e9897306139d1a | /myPracticeProblems/ordered_dict.py | ac21f387d95bb5f5a10a305313ea69109d20cc7d | [] | no_license | jisshub/python-development | cfd4246981999d5bc8cfe4cc15a57ebfada2691e | 392e7362bf8e83930d410984e985d73a0a2f40d1 | refs/heads/master | 2021-01-05T02:25:12.896814 | 2020-03-23T16:05:25 | 2020-03-23T16:05:25 | 240,844,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from collections import OrderedDict
ordered_dict = OrderedDict()
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
print(ordered_dict)
new_dict = dict()
new_dict["a"] = 44
new_dict["a"] = 44
new_dict["b"] = 44
print(new_di... | [
"jissmon476@gmail.com"
] | jissmon476@gmail.com |
b1a1e15b3a0558a5a77872235e3522ea33bab5cc | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /rcc/models/jaxb_element.py | 49e4e3b8f1e30a23cafa6a6b5a8c3fbc12ef4791 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,874 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from rcc.configuration import Configuration
class JAXBElement(object):
"""NOT... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
fb2b8d39435d1abedcb800a15882e0bbdc634344 | 7fc6f40f442579fdc774061aa0c678264ff7873e | /venv/Scripts/easy_install-script.py | 219e5aadb997aca0465a804a5336bdd0bfc7ea88 | [] | no_license | devgunk/ShoppingWebsite | c142bee205b87fb00ff7cb50d437045f75fdd4a4 | a06e339b8409a0ba164109e7c59e4a09cc1920e4 | refs/heads/master | 2022-12-06T09:54:45.039961 | 2020-08-23T12:26:23 | 2020-08-23T12:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!C:\ShoppingWebsite\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"karandevgunsharma@gmail.com"
] | karandevgunsharma@gmail.com |
a772928bcbefc46afefe57c8cef08919a0e31326 | 8942d1537271a4f6707db6e81a786ca13451e469 | /_examples/example_pipelines/skullstrip_afni_ants_example/porcupine_generated_pipeline.py | 6ead358190e3d19af7f227b9bb95aa7b885fddfc | [
"MIT"
] | permissive | GiraffeTools/Documentation | ee78b565ba489e20172e23b88e1cbf6424e2f467 | 40fe4a141a444aa5f016a5d5073ddffba77187d0 | refs/heads/master | 2022-11-07T16:18:36.793918 | 2020-08-16T20:44:37 | 2020-08-16T20:44:37 | 174,414,952 | 1 | 1 | MIT | 2022-10-19T22:26:58 | 2019-03-07T20:26:15 | Python | UTF-8 | Python | false | false | 3,347 | py | #This is a Nipype generator. Warning, here be dragons.
import sys
import nipype
import nipype.pipeline as pe
import nipype.interfaces.io as io
import nipype.interfaces.ants as ants
import nipype.interfaces.afni as afni
import nipype.interfaces.fsl as fsl
WorkingDirectory = "~/Porcupipelines/ThisStudy"
#Generic datagr... | [
"timvanmourik@gmail.com"
] | timvanmourik@gmail.com |
962d3aac4478494866be2adb37058437ec68edc0 | 7922540e2993b3f0ee27649becc6881991f26f8c | /cryptosite/urls.py | eabd33a490445bd108023a6544aaa120d5743498 | [] | no_license | anirban-21/Cryptosite | 044cbf5f0a0a23362b1fe561bfd9cd312120fb6b | 86ec45bdd0e9a2c20f03196c3efe01badedd9238 | refs/heads/master | 2022-12-25T05:32:29.508577 | 2020-10-08T09:29:36 | 2020-10-08T09:29:36 | 302,286,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """cryptosite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-ba... | [
"anirbanraha08@gmail.com"
] | anirbanraha08@gmail.com |
7b96378092ff574b8986da643f93a35f77f65f61 | ab43c27eeac4866aef9b9282d912f24b8238803e | /app/views/__init__.py | 8db42f13b7048140839fd65a2b555069cc2f1a09 | [] | no_license | RubenVanEldik/solar | 31c3018322841f271fa70883eb78759141345dd9 | 71d48fea12791a72558ddc0d512a1f6b7e8f4574 | refs/heads/master | 2021-10-18T22:33:05.663817 | 2019-02-14T19:59:07 | 2019-02-14T19:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from .charts import *
from .index import *
from .json import *
from .settings import *
from .user_management import *
| [
"74729@protonmail.com"
] | 74729@protonmail.com |
8dbddfb4997cc91e26fe303a38174baf39a53b42 | 53eaf9bb812f6f9317a143a08f60bb5515e7de8c | /setup.py | c401f0283d85762481b013d5265207f65a2113b7 | [] | no_license | JeffMv/jmm-util-libs | 103d77972ee7d3f196593396b4a78a6ce7db6617 | 137696ec9126ea35512dcb29500d3d7c6ffdde56 | refs/heads/master | 2023-07-11T20:04:18.782120 | 2023-07-01T17:44:45 | 2023-07-01T17:44:45 | 209,101,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev
import io
import os
# import sys
# from shutil import rmtree
from setuptools import find_packages, setup, Command
# from jmm import version
# Package meta-data.
NAME = 'j... | [
"jeffrey.mvutu@gmail.com"
] | jeffrey.mvutu@gmail.com |
ce72e0f8bc1244eb6aab5eb1508279184c6fec5c | 1e5bf133026ff7afa9659652cc3ec1023f98dc1c | /326 - Power of Three/PythonSolution2.py | 14af1e155eee448238449ceaea5fa410eb42ddab | [] | no_license | DishantK1807/Leetcode-Practice | 51ca7d38889e1e2351968b8802185117ab629e78 | 094b33b38f81ce2b5572cdfecc1f5fb5bbd55816 | refs/heads/master | 2022-04-08T14:01:24.534693 | 2020-03-11T22:13:54 | 2020-03-11T22:13:54 | 232,390,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | class Solution:
def isPowerOfThree(self, n: int) -> bool:
return n > 0 and 1853020188851841 % n == 0
| [
"dishant.khanna1807@gmail.com"
] | dishant.khanna1807@gmail.com |
b2cfeb0e568ca923f191916dc1ad85a9a2cad65e | 499b280cdaf8714aae193fd9b1aac95926def3b4 | /2017038076_조준희 2주차과제.py | 906467128e359f1fea673d747c8a1161ab7eb171 | [] | no_license | Joonehee-JO/python | 2972b52bb2472decffb12a4d13b556ac86adc75b | 857d15153f10a583bc4ad6a17ecf4f09fdcb68c5 | refs/heads/master | 2022-11-05T05:41:57.374225 | 2020-06-23T12:58:40 | 2020-06-23T12:58:40 | 264,381,305 | 1 | 0 | null | 2020-05-16T07:16:20 | 2020-05-16T07:16:19 | null | UTF-8 | Python | false | false | 218 | py | mem = int(input("참석자의 수를 입력하세요 : "))
chicken = mem * 1
beer = mem * 2
cake = mem * 4
print("치킨의 수 : %d\n" %chicken)
print("맥주의 수 : %d\n" %beer)
print("케잌의 수 : %d\n" %cake)
| [
"noreply@github.com"
] | Joonehee-JO.noreply@github.com |
b0b42a8618f56c00d5b0d03cce3873bd96adb26e | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatter3d/line/_showscale.py | 534d53f00aee0a02ffb55e951c76e575cebf5dfe | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 425 | py | import _plotly_utils.basevalidators
class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name='showscale', parent_name='scatter3d.line', **kwargs
):
super(ShowscaleValidator, self).__init__(
plotly_name=plotly_name,
parent... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
b68437cefbc5ec307c1eb1133f394abe68e27b9f | b2dbc5643ed240f462090aaa796e528a39175de6 | /FCN_8s_modified_code/read_MITSceneParsingData.py | cf47c498dd8f91c5d5393b68ca9dcdb392aeb543 | [] | no_license | wonikjang/Projects_Python | 20c889c315d625d855ab55358958ceff590ebea8 | d5bd73f03f224ac00f845bf16dac86e56be5b3be | refs/heads/master | 2021-09-20T17:22:55.483973 | 2018-08-13T09:03:51 | 2018-08-13T09:03:51 | 89,209,677 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,335 | py | __author__ = 'charlie'
import numpy as np
import os
import random
from six.moves import cPickle as pickle
from tensorflow.python.platform import gfile
import glob
import TensorflowUtils as utils
# DATA_URL = 'http://sceneparsing.csail.mit.edu/data/ADEChallengeData2016.zip'
DATA_URL = 'http://data.csail.mit.edu/places... | [
"noreply@github.com"
] | wonikjang.noreply@github.com |
39b00d8dc0c6e5dbaab58ed8f4cb471672f8834e | 8d9af8b801aecdba9c1387ccae4b69b52ed8ccad | /read_reddit.py | 1887b3c89da5301a2348aa3b4a4ec372f83a47de | [] | no_license | beaugaines/mongo_for_devs | f4ab616f2b908c100fc130f9290bab6363a5f773 | 08c154700098538e6084a55c17fcee9e2b67abd5 | refs/heads/master | 2018-12-27T22:45:13.577163 | 2013-05-12T20:39:48 | 2013-05-12T20:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import json
import urllib2
import pymongo
from pymongo import MongoClient
# connect to db
connection = MongoClient('localhost', 27017)
# connect to reddit db - which does not exist, so - POOF! - it will be created
db = connection.reddit
stories = db.stories
# get the phlegm clot of information that is the Reddit h... | [
"beaugaines@gmail.com"
] | beaugaines@gmail.com |
46a6be98cd37c203fd6efd53b180795a67a6b079 | ecff7ab1d962ff895b3e9a0b4239329dd03ce966 | /webpage_text/__init__.py | b20daaa188f87b44418af0b010d45a46826360d1 | [
"MIT"
] | permissive | MSLNZ/pr-webpage-text | ea91e138b3e476688a07210e2b0625cb23538ff8 | 7790e8bbeb5cfbb9c0d7ac508903acd7414ff9d5 | refs/heads/main | 2022-09-15T12:26:29.947169 | 2022-08-05T21:21:26 | 2022-08-05T21:21:26 | 227,973,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,399 | py | import os
import re
import sys
import argparse
import configparser
from gevent import monkey
monkey.patch_all()
import gevent
from gevent import pywsgi
import requests
from flask import (
Flask,
Markup,
render_template,
request,
send_from_directory,
)
gevent.get_hub().NOT_ERROR += (KeyboardInterr... | [
"joe.borbely@gmail.com"
] | joe.borbely@gmail.com |
1ab8aa09439b7feb4e64e7287cafca2b7cd40a94 | cc2fd2bd9947d97cbd351553dad75044f6978cf9 | /driver2.py | e63c6f4cb68c2d2442c635a3df87c770a4d7fbfe | [] | no_license | jsitaraman/MDOF | 7dc1178254e14dabb86c4670f8f619546fe75b5f | 96162e408c887ccf8954e117b5bff016bd359110 | refs/heads/main | 2022-12-24T13:44:51.690443 | 2020-10-08T00:36:51 | 2020-10-08T00:36:51 | 301,932,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | #
# driver code for sizing a simple
# rotor.
#
# Design Variables are
# [ Cl -> mean Lift Coefficient,
# R -> Radius of the rotor,
# Omega -> Rotor frequency
# sigma -> Rotor solidity]
#
# Objective:
# Maximize pay-load with a constraint of maximum power available
#
import numpy as np
from AeroSolver import ... | [
"jaina@onyx.erdc.hpc.mil"
] | jaina@onyx.erdc.hpc.mil |
53da9f21a7f87160ef47e40054bd952e2946138f | cf33f981a53f899d8e43b0580a22a8a5b708e304 | /src/case.py | bb90bdfa7b019a96673dbb52b3aca6d161161038 | [] | no_license | YKherzaneColbert59/Sudoku | 9e359fc2ea88af49ec77ae27710fcaa988e41848 | 290691943fc6aede2c790944f4e45974c11f3cb1 | refs/heads/main | 2023-08-30T14:54:52.235387 | 2021-11-20T08:47:24 | 2021-11-20T08:47:24 | 428,565,654 | 0 | 2 | null | 2021-11-16T10:14:14 | 2021-11-16T07:55:09 | null | UTF-8 | Python | false | false | 1,334 | py | class Case:
def __init__(self, pos, value = None):
"""
Constructeur par défaut
Arguments :
- pos : position de la case (0--80)
- value : valeur de la case (1--9)
Tests :
>>> Case(0).position, Case(80).position, Case(25).p... | [
"kherzaneyani@gmail.com"
] | kherzaneyani@gmail.com |
227b6a056fb6d25eccae7d16b9b3363a3999867e | 929f43b02defa8b0f37ee734ad97fad8a68712e5 | /mundo1/ex029.py | 8b579974216c18a04aca1204d1bebace02cd6632 | [
"MIT"
] | permissive | Igor3550/Exercicios-de-python | c9395c3d75a20daf83d67716ffda94c624ebf3de | e0f6e043df4f0770ac15968485fbb19698b4ac6b | refs/heads/master | 2022-11-10T07:52:51.334570 | 2020-06-25T21:41:44 | 2020-06-25T21:41:44 | 275,020,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | #escreva um programa que leia a velocidade de um carro
# Se ele ultrapassar 80km/h, mostre uma mensagem dizendo que ele foi multado
# A multa vai custar R$7,00 por cada km acima da velocidade
veloc = int(input('Digite a velocidade em km/h: '))
if veloc <= 80:
print('Você esta no limite de velocidade\nO limite é de ... | [
"igormeloigormelo@gmail.com"
] | igormeloigormelo@gmail.com |
20f48de587f36ac22f7b751403edee7311221783 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/ops/linalg/linalg.py | 22c87ea697b7d702dec0fb5fe037ea1157fdaf58 | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | # Copyright 2017 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... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
2a07c90c6668c494a7b8505df7af945936e34846 | eb137779fddf4a6be05bdf4b569ac359f6ce39d0 | /src/utils/forecast_type.py | e17da491ee322a8bc8edfd169a18931e60bffde2 | [
"MIT"
] | permissive | cmu-delphi/flu-contest | 4ad767f151776eccb7f5dfe6b47261b6c8cf6e50 | 23e1b41313f8863a7732b5861df7c70edd1ee3ad | refs/heads/main | 2022-12-06T23:05:59.795151 | 2020-09-05T19:20:13 | 2020-09-05T19:20:13 | 75,351,258 | 0 | 3 | MIT | 2020-09-05T19:20:15 | 2016-12-02T02:09:19 | Python | UTF-8 | Python | false | false | 47 | py |
class ForecastType:
WILI = 1
HOSP = 2
| [
"jiaxians@andrew.cmu.edu"
] | jiaxians@andrew.cmu.edu |
88844da5196efc28ee33108e41edf931aadaebd1 | cf54ddb10342bfac8f868eddbfcba11f9729200f | /regex.py | 6c2685af92327db7e3c69460aa3e061f6e3419ab | [] | no_license | winters23/projects-python | 589a88a7d2828685807685646c1b58e1ce32dfac | d920cc62cd1ccc79d43a6869916713045509fd9e | refs/heads/master | 2020-04-23T06:38:55.883746 | 2019-03-22T08:06:29 | 2019-03-22T08:06:29 | 170,980,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import re
txt="The rain is in Spain"
x=re.search("^The.*Spain$",txt)
print(x) | [
"jain.diksha2398@gmail.com"
] | jain.diksha2398@gmail.com |
1a53e8becfa201f64650948dfd44782938e5f479 | a4a28e2289fe2b41e3c89f57a3c160bb79520f90 | /TLSW_pred/pythonhttp.py | b633584baf90f87c0b264fdcf061cc4002ed9ca1 | [
"Apache-2.0"
] | permissive | allinpaybusiness/ACS | 69d1e3aca5b1e81f5fa41209c44746cb06a1819a | b9c8fa2a8e316ade366f261b0b7dc54a61fa11ba | refs/heads/master | 2021-01-19T21:28:58.539487 | 2017-06-07T02:51:10 | 2017-06-07T02:51:10 | 82,506,792 | 0 | 14 | null | 2017-06-07T07:39:35 | 2017-02-20T02:10:16 | Python | UTF-8 | Python | false | false | 850 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 26 14:34:07 2017
@author: s
"""
import socket
import re
HOST, PORT = '', 8888
listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
listen_socket.bind((HOST, PORT))
listen_socket.listen... | [
"fengyz@allinpay.com"
] | fengyz@allinpay.com |
ce7a32bc88de6857019ede124e9f27c3f04d7544 | 490f7e5712b2f297adce60ff6c448243076b092b | /third_party/onnx/onnx/backend/test/case/node/pow.py | 8eb61089119a1f48348fb6d45846d85f7cd77273 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"MIT"
] | permissive | olibd/pytorchDocker | 8725993df15fa28b528ef42f98f2014e4206de0d | 5ae4c37d4f081128dc1e6d24b158adebd23a3c10 | refs/heads/v0.4.0DockerBuild | 2022-12-25T06:11:37.436842 | 2019-12-09T19:13:48 | 2019-12-09T19:23:43 | 226,938,896 | 0 | 1 | NOASSERTION | 2022-12-13T23:17:18 | 2019-12-09T18:23:06 | C++ | UTF-8 | Python | false | false | 1,794 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
class Pow(Base):
@staticmethod
def export():
node = onnx.h... | [
"olibd@hotmail.com"
] | olibd@hotmail.com |
68c6872a92d545946338db2bc054259b20769654 | d584b46ae0b5d6ac340ac3730e87d0ec1050ba00 | /tools/adafruit_mlx90640.py | c1cd5a4bf197d9b0df57abe4234bf38764244584 | [] | no_license | aaron-c-zhao/PeopleCounter | 74d0dfb301273fb8c97fd0df5a8e4de60ccc58d0 | b4c15fc5dc082c9198d01005e49a56691c2c0440 | refs/heads/master | 2022-11-26T17:32:59.183497 | 2020-08-09T08:36:23 | 2020-08-09T08:36:23 | 279,967,633 | 3 | 0 | null | 2020-07-22T18:41:29 | 2020-07-15T20:11:34 | C | UTF-8 | Python | false | false | 26,928 | py | # The MIT License (MIT)
#
# Copyright (c) 2019 ladyada for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
#... | [
"aaron.zhaocr@gmail.com"
] | aaron.zhaocr@gmail.com |
79a2bc716579e8f0dc9a8c32e78c97fd20ea8542 | a81c14aa16d358c3508abe71aa72506b10bb0d06 | /models/stock_loader.py | 7cc370f4cbaf90933b280820a506ce3416a73474 | [] | no_license | willwallis/StockNotify | d046d5b0a108f008f89982afc5f93b83128522a1 | 38cfffbeec52079e06d54d1b35db63be0378bf03 | refs/heads/master | 2020-05-18T13:35:36.373138 | 2015-07-28T22:03:40 | 2015-07-28T22:03:40 | 39,859,842 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | #!/usr/bin/env python
# Importing some of Google's AppEngine modules:
from google.appengine.ext import webapp
import os
import csv
# Import modules used by this controller
from models import *
# CLASS TO LOAD LIST OF US STOCKS
class LoadStocks(webapp.RequestHandler):
def get(self):
inputid = self.request.get('a... | [
"will@knewto.com"
] | will@knewto.com |
f8c4c166b16e951159465c40816bd0caddb19816 | 95e6314483e6f238628299150317cf2255437924 | /bin/process3_calcFCPV.py | d5ffdc95537af0fde0969398936db27841058420 | [
"MIT"
] | permissive | AWHKU/CombiPIPE | 53d526cd13690ec56cd8417b129ab3e1cd0ef488 | 87c8aa0bf0747ee159b66db3211fb2acf81787b1 | refs/heads/master | 2023-08-15T16:27:32.360598 | 2021-10-21T13:38:51 | 2021-10-21T13:38:51 | 258,078,043 | 0 | 1 | MIT | 2021-10-21T13:38:52 | 2020-04-23T02:53:19 | Python | UTF-8 | Python | false | false | 2,235 | py | import sys, os, math
from scipy import stats
import numpy as np
dir,sampleInfo,nwise=sys.argv[1],sys.argv[2],int(sys.argv[3])
def grabInfo(sampleInfo):
file=open(sampleInfo,"r")
refd={}
for ln in file:
ln=ln.strip("\r\n").split(",")
if ln[-1] != "":
if ln[-1] not in refd:
refd[ln[-1]]=[ln[-2]]
else:
... | [
"noreply@github.com"
] | AWHKU.noreply@github.com |
cd5ab0ff640c9c8555b6af3aad71c70091b91ec4 | 2760effda15d884af413ca2a35809d03fabea377 | /lc-1222.py | fb44d86b4ecfc652aaac148671173ef0b40bbe00 | [] | no_license | UtsavRaychaudhuri/leetcode | 31943b98ad89d96d72ee4b6b1d1c8d70429d1e1f | 77a13580fd6231830558b1cf8c84f8b3b62b99d0 | refs/heads/master | 2020-11-27T18:02:23.712639 | 2020-09-29T19:39:49 | 2020-09-29T19:39:49 | 229,552,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | class Solution(object):
def __init__(self):
self.outarray=[]
def queensAttacktheKing(self, queens, king):
"""
:type queens: List[List[int]]
:type king: List[int]
:rtype: List[List[int]]
"""
self.checkleft(king,queens)
self.checkup(king,queens)
... | [
"utsav@pdx.edu"
] | utsav@pdx.edu |
2686e9a70975ed195e375cd6f2821ad404bd6b2b | c6db96a3ee9035862e7951bb944f7448335bc313 | /smc/elements/profiles.py | 741537250e60591eb88cb41b2a7fb0b3f3b451c4 | [
"Apache-2.0"
] | permissive | azgaviperr/fp-NGFW-SMC-python | 6e8c1b4e7013eadbfacff490eff6dda78db5f014 | f8eb3cf725730c7bc7be89c05034ac1eb74163ac | refs/heads/master | 2023-08-18T13:51:20.350868 | 2021-10-14T17:41:09 | 2021-10-14T17:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,206 | py | """
Profiles are templates used in other parts of the system to provide default
functionality for specific feature sets. For example, to enable DNS Relay on
an engine you must specify a DNSRelayProfile to use which defines the common
settings (or sub-settings) for that feature.
A DNS Relay Profile allows multiple DNS ... | [
"lmartinson@forcepoint.com"
] | lmartinson@forcepoint.com |
a161394d8fa001e2248fd31803456fde533a463f | 3ca80a9a55652e21a7c69008842e86ac72f744d3 | /real_python_courses/Class_str_repr.py | cd0b1a98ca16820e38536896cb95a5832737b7bc | [] | no_license | pshapard/New_projects | 29ef9f7793e137124d33ca461e3dd686023789c5 | 8cf0e244cde07dd0f750de6a064deba970c0cf7a | refs/heads/master | 2022-02-11T06:13:35.278903 | 2022-01-25T19:21:14 | 2022-01-25T19:21:14 | 253,964,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | class Car:
def __init__(self, color, mileage):
self.color = color
self.mileage = mileage
def __repr__(self):
my_car = Car('red', 37281)
print(my_car)
#__str__ ==> easy to read, for human consuption
#__repr__ ==> unambiguous, more for developers to read
import datetime
today = datetime... | [
"pshapard@outlook.com"
] | pshapard@outlook.com |
81e244eb03a8e7a0240cc64534523a67fb6e8b2b | ca3d8da633cb2b71ff876338c3f2f170298282fd | /compositionality_over_time/coha_preprocessing/feature_extracter_dense_embeddings.py | 7830cb5f0ab2b3dc1f205aa8c5f81d12a877eda6 | [
"Apache-2.0"
] | permissive | prajitdhar/Compounding | 92e4c34d95a7ff8a3ed2daea044f868d64731f22 | 7b54d2cc84d0d68cc4b847f714dce3e1a7a42dd2 | refs/heads/master | 2023-08-07T17:32:01.048741 | 2023-07-30T22:08:30 | 2023-07-30T22:08:30 | 139,637,197 | 2 | 3 | Apache-2.0 | 2023-09-06T09:45:26 | 2018-07-03T21:08:28 | Jupyter Notebook | UTF-8 | Python | false | false | 15,323 | py | import pandas as pd
import numpy as np
from sklearn.decomposition import PCA,TruncatedSVD
from sklearn.preprocessing import Normalizer
import argparse
import time
import pickle
import re
from functools import reduce
import pickle as pkl
def year_binner(year,val=10):
if val==0:
return 0
else:
re... | [
"janis.pagel@ims.uni-stuttgart.de"
] | janis.pagel@ims.uni-stuttgart.de |
5a22824ddb5f687f87dce78032033bddc8a463e1 | 79c0b1ed8aff76df7ea783e0f290576e48f52a29 | /itertools/repeat.py | 26886dd51523e340ca16da10cad58ebce09b24b3 | [] | no_license | meghnavarma0/DSA-Python | 8e57f145c4bba1e786457b0a1f68009a4750d42f | 6b584ffc3c6d8cf4a66e373d723506647b81cc9b | refs/heads/master | 2021-05-22T14:51:51.102164 | 2020-08-21T03:27:09 | 2020-08-21T03:27:09 | 252,970,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | from itertools import repeat
a = list(repeat(15, 7))
print(a) | [
"meghnavarma0@gmail.com"
] | meghnavarma0@gmail.com |
521c07cd2ff7dc5d7204594a7e6315b8882b463b | 4bd969bb18178e15b750fcaa8b791cc100260e62 | /mongoCRUD.py | 90c486765a76e7922f411e76bb922f4f2a2bc641 | [
"MIT"
] | permissive | codefusser/UserManagerDocker | 587f73ee29f23aa34b3df8306d6b432134c0392d | 8ba4e3aaaff0419ccdf3ab885fe1fcc0332c32be | refs/heads/master | 2021-08-30T04:22:54.084203 | 2017-12-16T10:23:39 | 2017-12-16T10:23:39 | 114,374,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | #Using Python to interact with the mongodb server with pymongo
from pymongo import MongoClient
#pprint module will help to improve readability
from pprint import pprint
DB_connectionString = "mongodb://127.0.0.1:27017"
client = MongoClient(DB_connectionString)
#use userManager
dbase = client.userManager
#creating ... | [
"softorque@outlook.com"
] | softorque@outlook.com |
54f1cbd6a9ca5855b001c659cc3cfe4b7a0aae71 | 8452e5d4864ffd69cf528ac1a6504b59c44dfb96 | /deam.py | 64a9dcfea7f3871a7f7d67462f145f5a0eb505c9 | [] | no_license | zhang-python/ssh_lianxi | 707c7d112eae3c3e42237e24d9fe5c556ad79f53 | ee6822020b8d1513c3bc6a386faa1e89a9db1eb0 | refs/heads/master | 2020-09-08T02:07:00.622670 | 2019-11-11T12:24:34 | 2019-11-11T12:24:34 | 220,980,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | print('one')
print('two')
print('three')
print('four')
print('five')
print('six')
print('seven')
print('eight')
print('nine')
| [
"784913775@qq.com"
] | 784913775@qq.com |
7e198ce9b23e20291e65927d4cb4929ce449664b | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_reassignment_task_response.py | 9d3d17bcac4d36154a7f4e3ba477519e68ca9043 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,225 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateReassignmentTaskResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
69ed92de644fca515a276845a1ab3c88f930d96c | ecf6fe6aa87b2c3f041acc30fab11b0cafe3dd46 | /architecture_py/archi_v3_4.py | c44736bffc6e0190265c5c5a8ec71479998ec8b7 | [] | no_license | antgratia/Memoire_code | 73c7806c4576c2e73e00d9a84b1063a2c8f6b559 | 2cdc1339ea24896a6628238f6467edff80f98166 | refs/heads/main | 2023-06-20T16:19:07.041464 | 2021-07-13T11:53:48 | 2021-07-13T11:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,719 | py |
import numpy as np
import os
from keras import backend as K
from tensorflow import keras
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.models import Sequential, Model,load_model
from tensorflow.keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, C... | [
"antoine.gratia@student.unamur.be"
] | antoine.gratia@student.unamur.be |
09267857397c18219dcb468ef2b121a2fea8f574 | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/locales/managers.py | b80a4b8368ef07497f74fee837058582ac4e31a0 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from django.contrib.auth import get_user_model
from django.db import models
class UserLocaleProfileManager(models.Manager):
def get_by_natural_key(self, user_natural_key):
User = get_user_model()
try:
user = User.objects.get_by_natural_key(user_natural_key)
except User... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
abdba80e2f5adc1b736189b208ad548770d4a1a7 | e4d51669c68bd36448f97b044aa835576db7c708 | /instagram/converters.py | ec72631919e3a6997041bfdb49299e4a9acfd4ed | [] | no_license | BigbrotherShin/django_practice-instadjango | 92f156db5e2db4b963288628b46ab4acec9c8bd8 | c3b6f5f5db88156f9092ac12cdf9159f484eb865 | refs/heads/master | 2022-11-13T21:44:29.691936 | 2020-07-06T09:00:04 | 2020-07-06T09:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | class YearConverter:
regex = r"20\d{2}"
def to_python(self, value):
return int(value)
def to_url(self, value):
return str(value)
class MonthConverter(YearConverter):
regex = r"\d{1,2}"
class DayConverter(YearConverter):
regex = r"[0123]\d"
| [
"shinjhhp5@gmail.com"
] | shinjhhp5@gmail.com |
498488d0e02adf53cce7096cd9c7afa81a6a5814 | 64267b1f7ca193b0fab949089b86bc7a60e5b859 | /slehome/account/migrations/0046_auto_20150130_0600.py | 4d7e8d0246f4262cdd73c9abdd7338982e3d2674 | [] | no_license | hongdangodori/slehome | 6a9f2b4526c2783932627b982df0540762570bff | 3e558c78c3943dadf0ec485738a0cc98dea64353 | refs/heads/master | 2021-01-17T12:00:34.221088 | 2015-02-06T13:44:00 | 2015-02-06T13:44:00 | 28,847,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0045_auto_20150130_0558'),
]
operations = [
migrations.AlterField(
model_name='basicmemberinformation... | [
"chungdangogo@gmail.com"
] | chungdangogo@gmail.com |
1cea74f4cade6ca228fd43ae326070c0be4b24c4 | f85df4b1eedbabeef82f9ec8d54e10a7a9544e6e | /gameplay/field.py | 09f0f7a813526b3aa0d116da972af16c5c10ee5e | [
"MIT"
] | permissive | hristy93/FallingRocks | ce387930ea7eb8173a7244999141556b6736cf4b | 42e3dd282e43717cec001578a17ffd3e00a8b410 | refs/heads/master | 2020-04-04T17:47:36.220197 | 2016-02-17T16:45:28 | 2016-02-17T16:45:28 | 35,620,170 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | from player import Player
from rock import Rock
from powerup import Powerup, PowerupType
from bullet import Bullet
class Field:
def __init__(self, width, height):
self.width, self.height = width, height
self.rocks = []
self.powerups = []
self.bullets = []
self.__player = Pl... | [
"hristi@gbg.bg"
] | hristi@gbg.bg |
de90c6a29c7f48707d371e882267c257f4f629e0 | 90e6a3fc2d98be7cc33edac04985c31cce1bac92 | /app/config.py | f10dfba9264a887006d6aea96e50a4362f516dc3 | [] | no_license | skarj/devops-examples | f2db47aef175048b437cf5bf98bb8a6410a2c65f | 94d88defee4d2372930210c5598bc7a873b6be96 | refs/heads/master | 2023-05-24T23:23:09.136297 | 2022-05-07T15:18:47 | 2022-05-07T15:18:47 | 157,450,150 | 2 | 0 | null | 2023-05-01T21:13:57 | 2018-11-13T21:35:03 | Python | UTF-8 | Python | false | false | 669 | py | import os
class Config(object):
DEBUG = False
PORT = 5000
HOST = '0.0.0.0'
AWS_ACCESS_KEY = os.environ.get('AWS_ACCESS_KEY')
AWS_SECRET_KEY = os.environ.get('AWS_SECRET_KEY')
AWS_REGION = os.environ.get('AWS_REGION')
S3_BUCKET = os.environ.get('S3_BUCKET')
S3_ENDPOINT = 'http://{}.s3.am... | [
"skaarj.sergey@gmail.com"
] | skaarj.sergey@gmail.com |
279eca7baaea7d7e78b5f31eab14828579fa7ef7 | af79d5ad4c47c1d9db2cf6cdcc7c7c52658723c9 | /pressTv/apps.py | a059e7ce5a0aa1da21d9203cdc591d921c15aff3 | [
"MIT"
] | permissive | jafarzadeh-1998/Coronavirus-News-Crawler | 8104b4a730bf08e59903ea0c9c8f035ec4e09fb0 | aae34075b0f39b4490b6b562a18a195addc8b554 | refs/heads/main | 2023-01-07T21:41:02.673658 | 2020-11-03T14:24:50 | 2020-11-03T14:24:50 | 308,889,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class PresstvConfig(AppConfig):
name = 'pressTv'
| [
"a.jafarzadeh1998@gmail.com"
] | a.jafarzadeh1998@gmail.com |
5682f517f5c1795e283d9fbc3d17cb77b2c67060 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/IN_Sob_k15_EroM/Sob_k15_s001_EroM/pyr_Tcrop255_p60_j15/pyr_5s/L3/step10_a.py | 0112794823a31b19968d9437b4bb2fa90a4fd65b | [] | 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 | 35,850 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
14d5c5fbf7781549cf6e357efcc0716b5f1896ae | 72e8e6829ab51ef041f9388f09e303a0cb07ff58 | /CNN/ProgressBar.py | cdee2977e2c7ffbc081afd704f699487ac023d66 | [] | no_license | jgslunde/Projects | 4c3eefdcf4984e52ed7725a5606ff08f10ff528e | ca927120e8524f24ea194edcf5ab476290ae8e72 | refs/heads/master | 2021-09-23T23:39:00.053312 | 2018-09-29T09:47:35 | 2018-09-29T09:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import time
import sys
import subprocess
class ProgressBar:
def __init__(self, total, update_freq):
self.total = total
self.update_freq = update_freq
rows, colomns = subprocess.check_output(['stty', 'size']).split() # terminal size.
self.rows = int(rows.decode("utf-8"))
sel... | [
"jonas.s.lunde@outlook.com"
] | jonas.s.lunde@outlook.com |
d318bf8277ce10614e8bd8d84441f8df63363604 | 22448c6ca28029b0782409a2e4503317efd1f4df | /Programmes tests/Accès soap/clientTest.py | 9666b128301f1819fffac942f826af7024e35a83 | [] | no_license | Assia-Megueni/bankNTR | 396aef84dc542a943a6cbce97f984f3103dee2b5 | c46b3c291573b14eea1d7d8a91c97b494fde9890 | refs/heads/main | 2023-04-19T02:04:06.598433 | 2021-04-30T12:10:29 | 2021-04-30T12:10:29 | 362,913,305 | 0 | 0 | null | 2021-04-29T18:37:35 | 2021-04-29T18:37:34 | null | UTF-8 | Python | false | false | 3,412 | py | from suds.client import Client
nomprojet = "servicesoap"
port = "8090"
urlCommandes = "http://localhost:"+port+"/"+nomprojet+"/services/Commandes?wsdl"
urlArticles = "http://localhost:"+port+"/"+nomprojet+"/services/Articles?wsdl"
urlFinances = "http://localhost:"+port+"/"+nomprojet+"/services/Finances?wsdl"
urlComptes... | [
"55113456+bverhul@users.noreply.github.com"
] | 55113456+bverhul@users.noreply.github.com |
00da0d7ae1145d2e6bc178fca1111e2d7c21d7ad | 01ee722200235e47d5d08d83a44ab72bec421aaf | /LocalServer/Inventory/views/home.py | 255a74b77c13a8ba0caba119a252c51584804a5d | [] | no_license | CG3002-Design-Project/CG3002 | 47d1466dbb0e2e3d53147468406d41ac73fb6247 | 70b92161689d9ae6515bd0a992682183f5aafde6 | refs/heads/master | 2018-12-28T17:35:15.774807 | 2013-12-08T11:51:45 | 2013-12-08T11:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.template import Context, loader, RequestContext
from Inventory.models import Inventory, RequestDetails
from Inventory.models import Product
from Inventory.models import Transaction
from datetime import date
from decimal import *
from d... | [
"poo.dav@gmail.com"
] | poo.dav@gmail.com |
100b195881073cab936847756bee9bbca6c61300 | c9f26cefc6325503e94e14d7bcc06c26f59ae701 | /Shell/Kechocat.py | 88eaf85b3538cce5a5c4b93dae5354382bfe70e5 | [] | no_license | nivbhaskhar/Tools | 92743788fee80f2f339efd1fc0b5e01996f0e774 | d6ec4ed338578830b3da3fa8af692319127aebf0 | refs/heads/master | 2022-12-06T11:34:30.590121 | 2020-09-04T04:52:00 | 2020-09-04T04:52:00 | 268,422,303 | 0 | 0 | null | 2020-06-02T14:08:49 | 2020-06-01T04:08:33 | Jupyter Notebook | UTF-8 | Python | false | false | 103 | py | import sys
print(' '.join(sys.argv[1:]))
try:
while True:
print(input())
except EOFError:
pass
| [
"nivbhaskhar@gmail.com"
] | nivbhaskhar@gmail.com |
c271cd860b5edf80188b50c7092ffd39060d9bd0 | 43dd3690516cb86641899d86599c0a1f79a8c97e | /src/lex_learn.py | 5138c9fd245cf46f1ae6021ca5edebdd637283d0 | [] | no_license | AlexTaran/automorphology | 506e1a8b7791aec2b9f172be071bf568513daf4e | 744943f41acdd8c1e869f3e8df1a43d712d13afe | refs/heads/master | 2021-01-01T19:50:29.369560 | 2015-04-25T22:33:37 | 2015-04-25T22:33:37 | 34,588,669 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,230 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# Learn on Russian and apply to Croatian VS. Learn on Croatian and apply to Croatian
# Also build automorphology
import argparse
import codecs
import random
import cPickle
import datetime
import build_features
from collections import defaultdict
import spanish
impor... | [
"alex.y.taran@gmail.com"
] | alex.y.taran@gmail.com |
fcc7c1431834b67b33c402bba7abe6602a5fdf0b | 972e97bbf213ccd29592618638caac1985fc8ffc | /models/VGG.py | dccb86e182d38b33b92ecca64e609a6a1971f467 | [] | no_license | LouisChenki/CNNs-Pytorch | 72222297a91b02af73e2ee9edcba0f3094a7ff97 | 8dfe86c339a1e6ce0d4d4678caa555df7bffbd82 | refs/heads/master | 2020-08-06T13:24:41.359640 | 2019-10-08T02:07:22 | 2019-10-08T02:07:22 | 212,990,894 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | import torch.nn as nn
def Conv3x3(in_f, out_f):
return nn.Conv2d(in_channels=in_f, out_channels=out_f, kernel_size=3, stride=1, padding=1)
def Conv1x1(in_f, out_f):
return nn.Conv2d(in_channels=in_f, out_channels=out_f, kernel_size=1, stride=1)
def MaxPool():
return nn.MaxPool2d(kernel_s... | [
"noreply@github.com"
] | LouisChenki.noreply@github.com |
4a0714091ddd90df0ea8c7a0b01751aad0843151 | 398089ec2210e1b6a12aecf8ed91cdeced6b36fc | /employer/views.py | 37965cec7645b608559570279fbd8da925ea939d | [
"Apache-2.0"
] | permissive | WilliamQLiu/job-waffle | 7ca8cb6357884e99a9c054bbd25d10222816dde7 | 59e4bc550dc1c2131fa427f188fbc2bb287aa938 | refs/heads/master | 2022-05-04T12:18:53.018609 | 2015-04-10T03:18:34 | 2015-04-10T03:18:34 | 27,843,538 | 1 | 1 | Apache-2.0 | 2021-06-10T17:29:08 | 2014-12-10T22:48:48 | JavaScript | UTF-8 | Python | false | false | 7,702 | py | """
A view takes a web request and returns a web response
The response can be a web page, a redirect, a 404 error, etc
GET is used for requests that do not affect the state of the system
POST is used for making changes in the database
Under the hood, Django just converts HTTP POST and GET objects ... | [
"William.Q.Liu@gmail.com"
] | William.Q.Liu@gmail.com |
b3e740a0b9efebccd943477359ab43b75987d7c2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/sw5.py | 6ff3c55a6f3707c4e80f76687713728c3404fcd7 | [] | 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 |
1a182f8146133ca9bc2464aae199c57b3fe6bab9 | fc6e807c122e77a02bf9fa34fc57e90ebf939b12 | /src/read_mat.py | cd8a54936b4e58a27459d9a549dcd6180844193e | [] | no_license | kittenish/Frame-Transformer-Network | e924a522fc833df54446a82414df827f83e93348 | 2dda0209ad7dca8f014b9f94d6175f297a825646 | refs/heads/master | 2021-01-20T03:34:50.296022 | 2017-06-17T02:48:13 | 2017-06-17T02:48:13 | 89,558,047 | 17 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import scipy.io as sio
import h5py
def read_mat(url):
data = sio.loadmat(url)
return data
def read_mat_v(url,name):
with h5py.File(url, 'r') as f:
data = f[name][()]
return data
| [
"jrgao0614@gmail.com"
] | jrgao0614@gmail.com |
932ed77b62071e2341a521257a94cd2988c67347 | 1680de86a673db3370327cdedc891b6c4f6a698c | /examples/flask/app/models.py | f5f2962cf79f66bdebdd2087e8067ebaa52c9d12 | [
"Apache-2.0"
] | permissive | broadsheet/facebook-sdk | cf477f84de339d6ca9a362fb1a0a283b801f9d79 | 5d4d4723904ca41a944d2c537a4073a43d0066cf | refs/heads/master | 2020-05-29T20:39:02.938799 | 2019-07-18T01:56:27 | 2019-07-18T01:56:27 | 189,357,850 | 0 | 0 | Apache-2.0 | 2019-05-30T06:24:39 | 2019-05-30T06:24:38 | null | UTF-8 | Python | false | false | 532 | py | from datetime import datetime
from app import db
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.String, nullable=False, primary_key=True)
created = db.Column(db.DateTime, default=datetime.utcnow, nullable=False)
updated = db.Column(db.DateTime, default=datetime.utcnow, nullable=Fals... | [
"personal.mitchellstewart@gmail.com"
] | personal.mitchellstewart@gmail.com |
c315f03c95140d141e56d7df055e3cacaea8396e | b89ce8c23c4b8a62e98e5ee26fe00563dccd9a57 | /ex23.py | 5f4b193c45fc74d4368e166349c96dab01bffecf | [] | no_license | LemonGuai/python_study | 5cf1fd526059902f82f367dab2ec27ce1b08c584 | 00b37575610d5a53f6391c6736ffde6ae59691d6 | refs/heads/master | 2021-06-14T03:37:14.412638 | 2021-05-21T14:07:19 | 2021-05-21T14:07:19 | 181,149,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import sys
script, encoding, error = sys.argv
def main(language_file, encoding, errors):
line = language_file.readline()
if line:
print_line(line, encoding, errors)
return main(language_file, encoding, errors)
def print_line(line, encoding, errors):
next_lang = line.strip()
raw_bytes... | [
"csf2412297817@163.com"
] | csf2412297817@163.com |
717318d0c198f61b25d44184c633b78a922e0488 | ef390f231b4d8e11e87f3cbe6066ebe2337ce099 | /MyRMS/urls.py | 99f166469233f42d271bb3a76adb21f720466711 | [] | no_license | ShantanuBadmore/MyRMS | b46943047705e1fd132cae4bb29acb2ba59fc2b4 | f47011fc2c04f6534c9a61e36608697ecb4acde9 | refs/heads/main | 2023-02-02T05:41:35.670591 | 2020-12-16T13:11:09 | 2020-12-16T13:11:09 | 317,527,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """MyRMS URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 v... | [
"shantanubad21@gmail.com"
] | shantanubad21@gmail.com |
73b652f3a24c54f91a9bbff23c0ecf91a474ae00 | 76e59b924b91cea92f86bb2563a16d77ed9d4121 | /blog/migrations/0001_initial.py | 4c7bb15def04552395c315e3566f4a31405d8c3a | [] | no_license | rwalt04/my-first-blog | 8325964605ee6fefe5cdc2de9939e9c88e576f62 | ee406c259c417c58859278e8e0cb4f31ac636cdd | refs/heads/master | 2020-06-16T23:28:16.477740 | 2017-01-10T21:20:50 | 2017-01-10T21:20:50 | 75,058,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-09 04:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"rwalt04@gmail.com"
] | rwalt04@gmail.com |
6432cf6c0bb2012d7369a431a646f38b43800201 | 29a4e8ffa77a09c418712bb243e1b4d24336e0c1 | /nbgrader/formgrader/base.py | 326ee4c2852b3763977915e7b9e277acf09f721b | [
"BSD-3-Clause"
] | permissive | silky/nbgrader | f52634438d79df80de077569e94562f08f123f0b | 30f461ee06a03a1e2ed1789016bb49e9f59e61eb | refs/heads/master | 2021-01-18T00:23:18.300627 | 2016-01-08T22:06:45 | 2016-01-08T22:06:45 | 50,624,512 | 1 | 0 | null | 2016-01-29T00:21:36 | 2016-01-29T00:21:36 | null | UTF-8 | Python | false | false | 2,554 | py | import json
import functools
from tornado import web
def authenticated(f):
@functools.wraps(f)
def wrapper(self, *args, **kwargs):
result = self.auth.authenticate(self.request)
if result is True:
return f(self, *args, **kwargs) # Success
elif result is False:
ra... | [
"jhamrick@berkeley.edu"
] | jhamrick@berkeley.edu |
adc1969c730cf5e6bf2379a42761dc2318e0ada4 | da738cb496c189c880e09c812874db9a48574df1 | /back/app/bets/admin.py | ef2428743df97730bd3831acbc33ccb7759237d0 | [] | no_license | SNVC1/mipt-fullstack2019 | 2972ed20e146394005fa41a29a25fc85674b2271 | 5dd6d5e61a8312917d68d863f6dca5876fad352a | refs/heads/master | 2023-01-08T10:40:58.535068 | 2020-11-10T17:59:19 | 2020-11-10T17:59:19 | 208,422,125 | 0 | 0 | null | 2022-12-12T18:12:35 | 2019-09-14T10:06:21 | TypeScript | UTF-8 | Python | false | false | 84 | py | from django.contrib import admin
from . models import Bet
admin.site.register(Bet)
| [
"iggy99@mail.ru"
] | iggy99@mail.ru |
722d79cb29211d56a0e6316bfa66ae6081ac3f71 | f928722af30cf9b029ec3713d0f430d725281a1f | /Dataset/JigsawImageLoader.py | d34689c542d41f77eaf6bce8cf0f82681e0a78a5 | [] | no_license | pneha2612/JigsawPuzzlePytorch | 3cbf0efd24698654396b3c574256af8f5cd6ba7c | 44ff69656101abd5fe5671fb03d70df4e018f8b8 | refs/heads/master | 2021-05-04T04:37:43.229224 | 2018-02-01T15:29:59 | 2018-02-01T15:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,773 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 18 11:58:07 2017
@author: Biagio Brattoli
"""
import os, numpy as np
from time import time
import torch.utils.data as data
import torchvision.transforms as transforms
import torch
from PIL import Image
class DataLoader(data.Dataset):
def __init__(self,data_path,txt_... | [
"biagio.brattoli@iwr.uni-heidelberg.de"
] | biagio.brattoli@iwr.uni-heidelberg.de |
a2766e32c26c9292bc462dff5135525659e4db57 | 4b126dcb6009fd1e26c1290fa35c931ba5727aea | /blog/views.py | fe837e5f0de0c59e80a16e671f86abf5b172d2ce | [] | no_license | LetitiaWood/django3-personal-portfolio | 4438855759a8203d0d841d66e2b090d456d94565 | a8ebf2427c8e307702961a3ea8df698a71fcb80d | refs/heads/main | 2023-04-11T06:40:43.490232 | 2021-04-24T02:50:38 | 2021-04-24T02:50:38 | 361,054,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.shortcuts import render, get_object_or_404
from .models import Blog
# Create your views here.
def all_blogs(request):
blog_count = Blog.objects.count()
blogs = Blog.objects.order_by('-date')[:3] #the most current three blogs will pop up;
return render(request, 'blog/all_blogs.html', {'blogs':b... | [
"Letitia_wood@icloud.com"
] | Letitia_wood@icloud.com |
35b45b2be379d6f6d530bbdbd64ba03d01e366ed | 3967da624f40f5d865dfdd0a788cbadd3e4a5361 | /python/searching/__init__.py | 96fff532442fb73a147ab67521c186297489aff8 | [] | no_license | hero24/Algorithms | 42f459a5c8b98074afb9e453e0e5774bf25964d1 | 8bdaed13581825bdafa0db835fa5faf00ecc3e10 | refs/heads/master | 2023-04-16T23:50:02.839615 | 2023-03-27T16:54:32 | 2023-03-27T16:54:32 | 76,741,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from .sequential_search import sequential_search
"""
Tell me and I forget. Teach me and I remember. Involve me and I learn.
-Benjamin Franklin
"""
__all__ = [
"sequential_search"
] | [
"hero24@interia.pl"
] | hero24@interia.pl |
e27635633e6f0adc9349ef2572eaf2bf445bbf9f | 035853d5a569123412058061e4edea9bafe67021 | /R-Python-scripts/Jumpcount.py | 4d46b2be7e455193f75f50fa66cfcf2b2a2f6d2c | [] | no_license | XuetingQiu/FluDiffusionUS | 0d7c48814815ac704b16eff93edb57e8e5ba5566 | 2cce52707152bdb91feeb32ff245ae2ca172cd92 | refs/heads/master | 2020-04-19T20:08:56.136810 | 2019-11-01T18:26:28 | 2019-11-01T18:26:28 | 168,407,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | #JumpExtractor.py: Extracts Markov jump counts from a full jump history log file.
#for other use, this script needs to update the source of discrete trait state, the input of the log file, and the count of steps in the log file. Here it is 6880.
def main():
source = ['AF','EAP','ECA','LAC','MENA','NA','SAS','USA']... | [
"noreply@github.com"
] | XuetingQiu.noreply@github.com |
dfb43f4fff46cd2c3b565232d90d955ef89a1bb6 | bf6cf5e55349e414ccca0fc674f721f589e06e8f | /src/main/migrations/0016_auto_20170625_1315.py | 272f2a8814502db51d4b651ce79756fab5b0ccb4 | [
"MIT"
] | permissive | shashankmohabia/gymkhana-master | cc7e3db4847edc2f91fc752da2fc35ad055f237d | a0d399d781797a2f63fb81a1ae287714213d068b | refs/heads/master | 2021-05-03T10:29:29.596959 | 2018-02-06T23:27:16 | 2018-02-06T23:27:16 | 120,535,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-25 07:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('photologue', '0011_auto_20170625_1315'),
('main', '... | [
"shashankmohabia27@gmail.com"
] | shashankmohabia27@gmail.com |
16a022ce2a690a35a8a10124359ea68c2b3f76b7 | 327e84ccc0d6cb4974186bf18cd513dfcb8b06da | /veiculos/migrations/0002_veiculo_valor.py | 884522474b77fdcc2095e9f60a267eebd3eea2ab | [] | no_license | JoaoLucasMB/programacao_comercial | cc8b57a286dd03018c124ce2ab2e6a4baf206dd4 | d7f2f50365ac085a4029b29fb1ddf5c39064bb12 | refs/heads/main | 2023-01-31T21:51:22.466716 | 2020-12-14T23:33:54 | 2020-12-14T23:33:54 | 313,310,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.1.2 on 2020-11-23 23:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('veiculos', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='veiculo',
name='valor',
fi... | [
"jaum998@gmail.com"
] | jaum998@gmail.com |
1a90a7a11a31b6d2bd8d513513d6dff28f93aca6 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping23/StrippingRD/StrippingD23MuLines.py | f22c2b8963448ca27883ac74c5c22c1eb3680061 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,651 | py | """
Module for construction of D+ -> mu l+ l- lines
Performance
Full.dst:
#########
StrippingReport INFO Event 500000, Good event 500000
| *Decision name*|*Rate,%*|*Accepted*| *Mult*|*ms/evt*|
|!StrippingD23MuD23MuLine ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
e62a14fe12df472397d2a04fcbe08d76194ed0ed | c117487299300174881a1fcc33d8214b40a70a05 | /_LaunchpadDJ/launchpadchannelstripcomponent.py | 7d409c7c8aed4f1dc07dd997188821366fa82923 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | alandrees/RemoteScripts | 2e3f2bf72e57249f7bc6b3c47931bde9d02dfeea | 468a98c6652e38dc7887bd7e99338ee4f0cfc8b3 | refs/heads/master | 2020-12-24T16:15:04.714352 | 2013-06-11T16:27:29 | 2013-06-11T16:27:29 | 10,479,183 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,706 | py | import Live
from _Framework.ControlSurfaceComponent import ControlSurfaceComponent
from _Framework.ChannelStripComponent import ChannelStripComponent
from _Framework.ButtonElement import *
class LaunchpadChannelStripComponent(ChannelStripComponent):
def __init__(self):
ChannelStripComponent.... | [
"alandrees@theselves.com"
] | alandrees@theselves.com |
d81ccc034bd7fcfa57f92932c57ec419606bb49a | 0f3138e1c353b1bdc9a6252b6f06c8266767681f | /sparvbot/utils.py | ba19a7bfef0ce71a4250a71acd7a228829d6c87c | [] | no_license | Sparvnastet/sparvbot | 46ade580082a49c185278ecfd644a2d9d6a24cdb | 9b17ed7ab110d44f5ecf874017d5da063dc94aa8 | refs/heads/master | 2021-01-01T16:25:31.908508 | 2014-02-27T21:19:37 | 2014-02-27T21:19:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | import sys
if 'gevent' in sys.modules:
import zmq.green as zmq
else:
import zmq
zmq_ctx = zmq.Context()
| [
"adis@blad.is"
] | adis@blad.is |
f61b69e59a5f3df86af281eb1cb0ccc016d7d18e | 63d28241de5d5f8f6ea998865124106761eba317 | /beaker/__init__.py | 2d669b3124144289cba77e9e8b1cf96bb56f896c | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | isabella232/beaker-1 | e2aba9947d176c4683921b862a6168af68d7e7f6 | 3d5b74a61eaadd28d6917ab039fb9292cbc533ef | refs/heads/master | 2022-01-05T20:44:55.956425 | 2019-06-17T17:07:58 | 2019-06-17T17:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | __version__ = '1.9.0+dd.26'
| [
"noreply@github.com"
] | isabella232.noreply@github.com |
21d259e2bd0230f61d9018f3536a28303133178b | e8d4fe2361d71aef6519f666152f14137156159c | /impacket-0.9.11/build/lib.linux-i686-2.6/impacket/dcerpc/dcerpc_v4.py | 5099c5aaaf72e06ee8a13bc334ed7399833f905f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Apache-1.1",
"BSD-2-Clause"
] | permissive | kenzshi/DDoSProject | 11d7e676a150964a9f78f1b7e1df4468dd9d973f | 9587a2be7f4773d19a96a35d1128f5041f0472da | refs/heads/master | 2021-01-10T19:48:21.355849 | 2015-03-16T09:52:22 | 2015-03-16T09:52:22 | 30,205,639 | 42 | 32 | null | null | null | null | UTF-8 | Python | false | false | 8,951 | py | # Copyright (c) 2003-2012 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# $Id: dcerpc_v4.py 529 2012-04-29 21:39:46Z bethus@gmail.com $
#
# Description:
# Handle basic DCE/R... | [
"la236am@users.isi.deterlab.net"
] | la236am@users.isi.deterlab.net |
11ef771bc27ddb7e52d28fc879db132d23f2b521 | 7ba87be3b62ebd3647762984d7190d4c0abc4aa1 | /patternnum5.py | b350698aede947d327dc28bd0f2394ee37f3fe91 | [] | no_license | pradeepdevloper1/Learn_Python_CN | 7ca0d70e2cb5050bff2e090ec08cf97e4c38da2e | cf2978f52c68511cb93c03922aecae570ae9b009 | refs/heads/main | 2023-02-03T23:39:17.738748 | 2020-12-22T18:29:58 | 2020-12-22T18:29:58 | 323,703,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | ## Read input as specified in the question
## Print the required output in given format
n=int(input())
if 0<=n<=50:
i=1
while i<=n:
j=1
while j<=i:
print(j,end='')
j+=1
print()
i+=1 | [
"pradeep.kumar@worldfashionexchange.com"
] | pradeep.kumar@worldfashionexchange.com |
13bd0e18fa8d78f69cd492c552c543a620fc6260 | 72a77764946ed570d96ae673103f39c35ebf0e00 | /test_unittest_1.py | 5fb24715d824b6ce1ba8b39cd7fe386de52eab37 | [] | no_license | WasAlexHere/AutomationTest | 029094b41c467540fe92a70400300bdacd57f99a | b8d3f37e1d53815dbb2f1005907559c9bbb86376 | refs/heads/master | 2023-05-13T17:28:52.550554 | 2020-08-02T14:41:17 | 2020-08-02T14:41:17 | 280,935,249 | 0 | 0 | null | 2021-06-02T02:43:47 | 2020-07-19T19:25:20 | Python | UTF-8 | Python | false | false | 2,814 | py | import unittest
from selenium import webdriver
class TestLogin(unittest.TestCase):
browser = webdriver.Chrome()
def test_login1(self):
link = "http://suninjuly.github.io/registration1.html"
self.browser.get(link)
# Ваш код, который заполняет обязательные поля
input1 = self.br... | [
"sethtorston@mail.ru"
] | sethtorston@mail.ru |
61da67eb396105306a86db070d5dde3620b80f21 | 71f8ecf0ff44ae70d506d6dc68e933a7f5b2f984 | /main/gameModule/events.py | 2bdb5c5fe7dadcf33fdb298c918d10dbc36c9024 | [] | no_license | CitationNerded/PythonGameFromJad | 801b700b0273e25414b36b87ae2c8c157c5cb4ec | 937bc754a708ca46ddbd7f652557a0e85fb2221e | refs/heads/master | 2022-12-21T12:30:33.793025 | 2017-08-16T21:51:10 | 2017-08-16T21:51:10 | 85,260,221 | 0 | 3 | null | 2022-12-20T02:55:17 | 2017-03-17T02:03:04 | Python | UTF-8 | Python | false | false | 7,543 | py | """events - contains events and game classes."""
DIRECTION_UP = 0
DIRECTION_DOWN = 1
DIRECTION_LEFT = 2
DIRECTION_RIGHT = 3
class Event:
"""Event - superclass defines events that any objects that maybe called by the event manager."""
def __init__(self):
"""Initialise Event Class."""
self.nam... | [
"jad.pamment@assurity.co.nz"
] | jad.pamment@assurity.co.nz |
6685eda1a70bab345ddc6f996c018feac6a6c741 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03371/s173081591.py | e631cebeb539f9cb5923fd6e498f3a402e717958 | [] | 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 | 386 | py | import sys
read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7
def main():
A, B, C, X, Y = map(int, readline().split())
ans = A*X+B*Y
if X>=Y:
ans = min(ans, C*Y*2+A*(X-Y), C*X*2)
else:
ans = min(ans, C*X*2+B*(Y... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1b48913b917116ee78220345bf0711faabb87c05 | 4d595d16ff3479b2acea959f43ce7e5be46d74ce | /kNN.py | 7bcc3f7eea3daa643073fb7024b134970d37fc9e | [] | no_license | WnFg/Machine-Learning | 0f120fae457bed3c33f092d97bf40051a0005ba3 | 17090779998988c98c5d36e2c59fe28038b72630 | refs/heads/master | 2020-05-17T21:58:20.860201 | 2015-08-13T01:53:12 | 2015-08-13T01:53:12 | 40,249,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from numpy import *
import operator
def createDataSet():
group = array([[1.0,1.1],[1.0,1.0],[0,0],[0,0.1]])
labels = ['A','A','B','B']
return group, labels
def classify0(inX, dataSet, labels, k):
dataSetSize = dataSet.shape[0]
diffMat = tile(inX, (dataSetSize,1)) - dataSet
sqDiffMat = diffMat**2
sqDistances = ... | [
"496100630@qq.com"
] | 496100630@qq.com |
2641f8cc229f66d4bca9f369bd59614106063569 | e8d5eb846842c5145316409ec64a4f393eeeb07d | /dp_baekjoon_9184.py | 6110d41fe4277caee520519b777baaa659f268ce | [] | no_license | SheepEatLion/Algorithms | 157ac6eb5338d5c6176b66878970ffceaa1f940e | 992168b05c524369a4dbd037a04e4c94a8d2c140 | refs/heads/main | 2023-06-30T11:43:21.917953 | 2021-08-05T01:37:44 | 2021-08-05T01:37:44 | 365,987,864 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | import sys
memo = dict()
while True:
A, B, C = map(int, sys.stdin.readline().split())
if A == -1 and B == -1 and C == -1:
break
print('w({}, {}, {}) = '.format(A, B, C), end='')
def w(a, b, c):
if (a, b, c) in memo:
return memo[(a, b, c)]
if a<=0 or b<=0 or c<=0:
... | [
"gowjr207@gmail.com"
] | gowjr207@gmail.com |
0dba7b476911bf14bd295c3c9931ec58a7c48b12 | 31779cb000b2f33a1af94fc5919bca40a6a80485 | /Snake_pygame.py | ae0413a59f580984c923c9378979b3eac72d2314 | [
"MIT"
] | permissive | lfanning8281/Per3_Charlie_pygame | bf10b94f61e97bbbcb5b72c2db292d805ee9c071 | 8d479c3a31c788cee913280a03b7b019b2523a52 | refs/heads/master | 2020-03-13T23:00:16.720767 | 2018-06-07T20:35:38 | 2018-06-07T20:35:38 | 131,327,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | import pygame, random, sys
from pygame.locals import *
import snake_game
def collide(x1, x2, y1, y2, w1, w2, h1, h2):
if x1+w1>x2 and x1<x2+w2 and y1+h1>y2 and y1<y2+h2:return True
else:return False
def die(screen, score):
f=pygame.font.SysFont('Arial', 30);
t=f.render('Your score was: '+str(score), True, (0, 0, 0)... | [
"LFanning8281@student.pps.net"
] | LFanning8281@student.pps.net |
8f26465aaa04312133e55a3be07fa3ebfdaba5af | 3196460db64eded2daa77457643c8dd1ed1ba99e | /codechef/steve/COINS-wrong2.py | b8ec3851c8d755ef25b8402d188b8199eba086e0 | [] | no_license | prototypemagic/proto-mastery | 94c649958792f00ea2a057b63ed0f7717b5ab05d | 45f7ef2e998fa7dbc071f5c42217a83fd9340f51 | refs/heads/master | 2020-05-28T08:55:45.769199 | 2012-09-10T22:12:00 | 2012-09-10T22:12:00 | 3,097,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
# Steve Phillips / elimisteve
# 2012.01.04
# The following is wrong, to say the least, because input == 13 should
# produce output == 13, not 14. As the problem states, you cannot
# exchange Bytelandian coins for other Bytelandian coins.
def naive_max(num):
# Given in problem description
... | [
"elimisteve@gmail.com"
] | elimisteve@gmail.com |
0567fe4ebe88254f30e3acdf850eb08984dcd1e3 | 8a1f1d72d2672bedc81bc452090110ac3b442852 | /dashboard/venv/lib/python3.6/_collections_abc.py | e54681d9f004aad0fe6cfcae94799ca27f04d4cb | [] | no_license | lilyli333/HH-Intervention-Dashboard | 2386b97d6ebb705da0d6f6b7c4b4538db27339d7 | e55f3751e0780c700fc6b486100d87f0141e891f | refs/heads/master | 2020-03-21T04:29:43.159523 | 2018-06-21T02:47:21 | 2018-06-21T02:47:21 | 138,111,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /Users/lilili/miniconda3/lib/python3.6/_collections_abc.py | [
"lily.jiayu@gmail.com"
] | lily.jiayu@gmail.com |
4e73ef6743cfa15be491eaee70edc8f3aa23a9d4 | 1f6e3f64cdb087b2c294b3e4c0406c3674b43e7a | /notification_request_queue.py | dd75d7a503f7c9a78f291bbf8534c0c15e5062d1 | [] | no_license | rajithakalapatapu/chatclient-offlinemessage-storagedelivery | cfd6c1102144b3d1fcd8675593f1c6006a6c8c34 | ab06c8b0e06d39c4f8c5a6eb7824125fc7f213d6 | refs/heads/master | 2021-05-17T15:42:35.798607 | 2019-04-25T03:01:51 | 2019-04-25T03:01:51 | 250,850,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | """
Name: Venkata Adilakshmi Rajitha Kalapatapu
Student ID: 1001682465
Login ID: vxk2465
"""
import queue
class NotificationRequestQueue:
def __init__(self):
# Start a queue
self.request_queue = queue.Queue()
def add_request(self, student, course, approval_decision):
try:
... | [
"rajithakalapatapu9@gmail.com"
] | rajithakalapatapu9@gmail.com |
4713ab6f5aae7a77619093867729676a2e15c423 | 5aefcc44dd516815cd98ccef27a2de4acefba4d9 | /otp.py | c80885e00825b8367b8d36f31d0498dffd7b5cc8 | [] | no_license | hanshanglin/polyu-comp3334-project | f9bc962316b7179a82ff65d99f77ce71e6a09868 | a70103079ba05b16b8a0afdc0bb238f855cac645 | refs/heads/master | 2022-07-03T18:56:32.632449 | 2020-05-19T04:00:17 | 2020-05-19T04:00:17 | 261,059,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,534 | py | import time
import random
import math
import os
import modapk_win
__PLATFORM__="WINDOWS"
class OTP:
TickIntervalSeconds=30
PasscodeLength=6
_rng=random.SystemRandom()
def __init__(self, tick_interval, passcode_len):
self.TickIntervalSeconds=int(abs(tick_interval))
self.... | [
"noreply@github.com"
] | hanshanglin.noreply@github.com |
e239b9fc54ed81cbc21409cf99891fe420dbbda3 | 939fbd0184a77bef1e406227320e6bacedc8acfc | /linkerd/datadog_checks/linkerd/__about__.py | 3a3af84f9a651aa4f9d19deb558c73f71935b8a2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | netsil/integrations-core | d08b8df76c4ff7fea293c66404ac7f63153d2e51 | ca1502937ed4febc6e426950b209ffd6263197fb | refs/heads/epoch/5.23.0 | 2023-06-08T01:22:29.394361 | 2022-10-12T11:32:29 | 2022-10-12T11:32:29 | 112,673,395 | 4 | 6 | BSD-3-Clause | 2022-10-12T11:32:30 | 2017-11-30T23:48:59 | Python | UTF-8 | Python | false | false | 129 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
__version__ = "1.0.0"
| [
"noreply@github.com"
] | netsil.noreply@github.com |
449b4ad21c79a9864610111fbf3661076f001bc8 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/services/services/customer_asset_service/client.py | eb20ce17a4036bc57b106277613558af2955bb19 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 21,026 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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"
] | GerhardusM.noreply@github.com |
a8bc57c698c594a2bbcddc5d8812f0eacc6865c7 | efbee30a83911a7dda989fb4536dd7132278aca1 | /whileLoop.py | b00e004c2c74fa1542762f526fe1ba58b51cc155 | [] | no_license | sarvani-chitturi/binary-search | 71c9cbb3bf057cddadbdeadd3a5292c687b46d49 | 6d4b4a41e7a91a2aad5369f47c8060af42fb4f75 | refs/heads/master | 2023-01-02T12:27:34.542572 | 2020-10-09T14:25:56 | 2020-10-09T14:25:56 | 302,661,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 25 10:21:36 2020
@author: Amarnadh
"""
i=1
while i<=5:
print(i)
i+=1
print("List using while")
x=[10,20,30,40,50]
i=0
while i < len(x):
print(x[i],end=' ')
i+=1
| [
"121910301041@gitam.in"
] | 121910301041@gitam.in |
cbaecb462463a2a78f6aa6396f7b0b1f959eabfb | 57cbbe35b1b5a7aa40b732aa6a9be3f7bfd5291f | /RunAlgorithm.py | 70756cbd03ea95b39dccef0b3aad1e7377797017 | [] | no_license | JoeyChaps/regularization | 18d1fb1233231ebd08496ff9a4b8db57d84e2055 | 235f6c58b28025ef9086e76aa5f7565c98753e97 | refs/heads/master | 2020-04-15T15:17:33.461376 | 2014-12-31T05:31:44 | 2014-12-31T05:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | #!/usr/bin/python
#######
# File: RunAlgorithm.py
# Project: Regularization
# Author: Joe Chapman
# Date: 9-8-14
# Url: https://github.com/JoeyChaps/regularization
#######
import Regularizer
import DataRandomizer
from time import gmtime, strftime
import os
import math
import shutil
import sys
import getopt
def isnumb... | [
"jchapmantx@hotmail.com"
] | jchapmantx@hotmail.com |
066e81a0fbe03a8fbc53b78c094138284f850ede | 6c80119e02bb29761fc7854c5a2f2a144451ca5a | /tests/fakeIDP.py | 971281cd5d87940746d418b565f9b43de490a12b | [
"BSD-2-Clause"
] | permissive | josjevv/pysaml2 | c412a21db7a52334bf67feeabc38f877a121f973 | f806786f6dad8fc2b03daa0e1d55682daead3ec8 | refs/heads/master | 2020-12-25T12:17:41.628279 | 2013-04-22T11:45:25 | 2013-04-22T11:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,520 | py | from urlparse import parse_qs
from saml2.saml import AUTHN_PASSWORD
from saml2.samlp import attribute_query_from_string, logout_request_from_string
from saml2 import BINDING_HTTP_REDIRECT, pack
from saml2 import BINDING_HTTP_POST
from saml2 import BINDING_SOAP
from saml2.server import Server
from saml2.soap import pars... | [
"roland.hedberg@adm.umu.se"
] | roland.hedberg@adm.umu.se |
a3bfb2d0297ea76d5536aa7f89ed478033f0da6a | 25d65018ce75445949711fb7d9d761cdefeed640 | /Q-Learning-for-Trading/envs.py | 7de54089df16b44c1513b67a49149d5d3d62ef2d | [] | no_license | kimcaprio/Trading_Stock_Market | a69998198431e8754603b5e018be7120ca4ea8a1 | 864e54681abdc26500b9cc9dacee4ac732076272 | refs/heads/master | 2023-01-24T18:17:56.033233 | 2020-11-25T01:47:54 | 2020-11-25T01:47:54 | 275,816,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | import gym
from gym import spaces
from gym.utils import seeding
import numpy as np
import itertools
class TradingEnv(gym.Env):
"""
A 3-stock (MSFT, IBM, QCOM) trading environment.
State: [# of stock owned, current stock prices, cash in hand]
- array of length n_stock * 2 + 1
- price is discretized (to ... | [
"kimcaprio1@naver.com"
] | kimcaprio1@naver.com |
1e905c442fe41f352798eab774b333e0624ba426 | 4292e22ea0014183186ffbb692eb252552359f86 | /infrastructure/tools/get_inventory.py | fb010b4bcea083d4ca4e7f434266765b80d6b5b7 | [
"MIT"
] | permissive | nhsx/covid-chest-imaging-database | 28127c41b0aa0e2e424594d17cd2f1d3fdebb5e3 | 9946684521130761e6f39b01d1651e61fc79080f | refs/heads/master | 2023-08-24T12:00:13.589048 | 2023-08-14T14:59:29 | 2023-08-14T14:59:29 | 252,395,273 | 63 | 13 | MIT | 2023-09-11T05:01:02 | 2020-04-02T08:15:51 | Python | UTF-8 | Python | false | false | 1,839 | py | #!/usr/bin/env python
import argparse
import logging
from pathlib import Path
import boto3
logging.basicConfig(level=logging.INFO)
def download_inventory(main_bucket, output_folder):
"""Downloading the relevant inventory files
Parameters
----------
main_bucket : str
The main warehouse buck... | [
"gergely.imreh@faculty.ai"
] | gergely.imreh@faculty.ai |
143fe68d7f6815fea8d18f1fb028024f23bd7c51 | bd02997a44218468b155eda45dd9dd592bb3d124 | /leetcode_course-schedule2.py | ca4b99612fab4cd4749f3814a1054bbfb691055d | [] | no_license | rheehot/ProblemSolving_Python | 88b1eb303ab97624ae6c97e05393352695038d14 | 4d6dc6aea628f0e6e96530646c66216bf489427f | refs/heads/master | 2023-02-13T03:30:07.039231 | 2021-01-04T06:04:11 | 2021-01-04T06:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | '''
Problem Solving leetcode course-schedule2
Author: Injun Son
Date: October 25, 2020
'''
import sys
import collections
import heapq
import functools
import itertools
import re
import math
import bisect
from typing import *
def canFinish(numCourses: int, prerequisites: List[List[int]]) -> bool:
graph = collectio... | [
"ison@sfu.ca"
] | ison@sfu.ca |
f706442a26c3078a4ba76a8bf393f15c6c2a95f4 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /product/models/stock.py | bfd6d68450fd500838468f3728f011573c8ed506 | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 17,058 | py | from decimal import Decimal
from django.db import models
from django.db.models import OuterRef, Subquery, Sum
from django.db.models.functions import Coalesce
from django.shortcuts import reverse
from dea.models import Journal
from utils.friendlyid import encode
from ..managers import StockLotManager, StockManager
... | [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
d125fd84b86e729ddc089d31810ce1cd547079c7 | 8a4405ff28d61133d451f187a443f7db9758655c | /pstipspider/pipelines.py | 75808af3eba1b95df171e6ee75dd2700f991d38f | [] | no_license | co89757/pstipspider | 2dc5ca50528b039972b06023531841abe6bb2618 | 1b7bf719e8be8589dffa9cbdc49606a3b7d1bdce | refs/heads/master | 2021-01-25T00:57:21.251609 | 2017-06-18T19:47:15 | 2017-06-18T19:47:15 | 94,708,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # -*- coding: utf-8 -*-
import pstipspider.settings as proj_settings
from scrapy.exceptions import DropItem
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class PstipspiderPipeline(object):
def... | [
"colin.brat@gmail.com"
] | colin.brat@gmail.com |
319a3a97837ddfcfbffea4e1f6c5bc6acd3ee2c8 | a9ee2f04b70542b2f399dc7ebb803164348aef0e | /mutations.py | c614d08dc3472aa20173fe38ab13d2cd6618ece8 | [] | no_license | murilosisnando2003/Hacker_Rank | 6617e55f362bf82e8ad73189a3e9075199d31ef9 | 5ab80e7da2846880bddfb15815afaf3351269a42 | refs/heads/master | 2021-01-04T15:50:47.381339 | 2020-03-06T22:50:26 | 2020-03-06T22:50:26 | 240,621,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def mutate_string(string, position, character):
string = string[:position] + character + string[(position+1):]
return string
if __name__ == '__main__':
s = input()
i, c = input().split()
s_new = mutate_string(s, int(i), c)
print(s_new) | [
"Murilo Rodrigues@DESKTOP-ONT7ENB.EDGE-BR.LOCAL"
] | Murilo Rodrigues@DESKTOP-ONT7ENB.EDGE-BR.LOCAL |
4e8b509ecc099975f3e38d997799d301173a5bf0 | 59db4cd30b6677ba4f45d9b488d05c20a9f311b2 | /temperature_v_time.py | d8b720c559c25e03a3020f1e9c2c4208881c210d | [] | no_license | krmnino/XrayDiffraction-DataReduction | 1f11b5759d9efd9edcdb2a1185ab18c641972fee | eeec84220a70eb99a3bac1a624ff79fc797dbe7f | refs/heads/master | 2020-11-24T11:17:44.694356 | 2019-12-15T03:27:44 | 2019-12-15T03:27:44 | 228,122,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,857 | py | ####################################
# temperature_v_time.py
# Python 3.x
# Kurt Manrique-Nino
####################################
import os
import numpy as np
import matplotlib.pyplot as plt
import sys
from datetime import datetime
def get_delta_time(time1, time2):
delta_t = time2 - time1
return ... | [
"kurt.manrique.n@gmail.com"
] | kurt.manrique.n@gmail.com |
2ccb58c676f371f045e4777a7fdb56173c709531 | 86f5f27668717a2a5bb6a9ee31eece98859e672e | /HANDSHAKEEE/server.py | c49fe9d14778513dd1d1d84550696ce03326905f | [] | no_license | GustavoGB/Physical-Layer | 7e18f4de33b90507f89f21406024a26bbfc21658 | 645e91fc341301c58d55eb4c9746edacb2ab4eea | refs/heads/master | 2021-01-24T09:04:09.037995 | 2018-06-17T23:53:08 | 2018-06-17T23:53:08 | 123,000,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#####################################################
# Camada Física da Computação
#Carareto
#17/02/2018
# Aplicação
####################################################
from enlace import *
import time
# Serial Com Port
# para saber a sua porta, execute no terminal... | [
"gustavo.gobetti98@gmail.com"
] | gustavo.gobetti98@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.