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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9b84c5f04a77fb02aca1b8f94154adf1e5dbf12 | 5e710f6379fe656cf366a5bfd069adc46e54801c | /Novice/05-02/todolist/olshop/migrations/0005_auto_20200916_0230.py | 519fe4b0f95ad3aab3d7f08008f226b60c9758ca | [] | no_license | atko45/Praxis-Academy | c45e067a3a54648106f969e1433e3c4f60e22a10 | 05c2069b698d0a7d5e0e0e5c6d3e97ed74d2eef7 | refs/heads/master | 2023-01-03T14:11:18.076966 | 2020-11-04T04:03:52 | 2020-11-04T04:03:52 | 292,163,250 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.1 on 2020-09-16 02:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('olshop', '0004_auto_20200916_0229'),
]
operations = [
migrations.AlterModelOptions(
name='barangm... | [
"okta.brahvila45@gmail.com"
] | okta.brahvila45@gmail.com |
20fe5b0263f72b03e4ae1cdf890921f70b6e373a | 50a12a72e68d90fbd358e42b667242ad7c9373b1 | /shenfun/legendre/matrices.py | d2c18434839b61b1d0b412a8c8a9cfe43e93be08 | [
"BSD-2-Clause"
] | permissive | AMSSYu/shenfun | 1a3be63ec9ef8c5c97fff354838c2e88e65f71d3 | c4c657e217ab7bcfb7d6e213569d16e108c7f0b2 | refs/heads/master | 2023-05-19T11:13:36.979962 | 2021-06-08T14:20:46 | 2021-06-08T14:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,109 | py | r"""
This module contains specific inner product matrices for the different bases in
the Legendre family.
A naming convention is used for the first three capital letters for all matrices.
The first letter refers to type of matrix.
- Mass matrices start with `B`
- One derivative start with `C`
- Stiffness ... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
403b083debf391b023dd3b39fe8e6d96b2ac38d5 | 41bab1de20a739bd792ce7adb947d1d9f66414e2 | /autoapp.py | 930f92fdb043f211fa35710b96e438d101488a6e | [] | permissive | MichaelDao/Twitter-Heatmap | 8edc0092dc345054daca5167abc00ac9b2d9e85c | 8472d01331df2c3fbf405e310dfef4f97b89705f | refs/heads/master | 2020-04-17T22:41:54.033318 | 2019-02-05T12:46:52 | 2019-02-05T12:46:52 | 167,004,884 | 0 | 3 | BSD-3-Clause | 2019-02-05T10:40:19 | 2019-01-22T14:08:07 | Python | UTF-8 | Python | false | false | 117 | py | # -*- coding: utf-8 -*-
"""Create an application instance."""
from vicSafe.app import create_app
app = create_app()
| [
"daoduymichael@gmail.com"
] | daoduymichael@gmail.com |
71ecb5ffebf32c2050d96770aaf445a3b49e6f0b | f871b25767e3b8ffcc5e0db3d3023ee822a56e1d | /entertainment_center.py | ade547399582822235a3d42169dd53848e270491 | [] | no_license | ajais/Udacity-Project-1 | c1864ce011140733c0d5b503ee49a24e8a6289d5 | 3c313c65f9fd037f2141262ad0af95a23bd2a6ad | refs/heads/master | 2020-12-25T18:32:57.565814 | 2017-06-13T06:43:14 | 2017-06-13T06:43:14 | 93,967,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | '''
Movie trailer website server backend that generates a page to show
a selection of movies, with their posters and trailers.
Generated during the course of the "Programming Fundamentals and the Web" lecture
on Udacity
'''
import media
import fresh_tomatoes
# Generate the movie objects by calling the constructor me... | [
"ajais@fb.com"
] | ajais@fb.com |
cd210d93bbb0f7c42194643ec5d009c7cf6f5d00 | d5ff272ecf1ff7376fdf775c76f206c21dbcf300 | /launcher.py | 1296d2259fb896920e267c7df6c44c1e76f71526 | [
"BSD-3-Clause"
] | permissive | BEMZ01/MusicBot_v3 | a08e77b82ee00c71079fa20be72796be79f847a1 | 7a5d1ad4f9d80cb63493fc1fce6cb31635146892 | refs/heads/master | 2023-07-29T22:38:21.471158 | 2021-09-17T18:24:05 | 2021-09-17T18:24:05 | 406,115,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from bot import MusicBot
def main():
bot = MusicBot()
bot.run()
if __name__ == "__main__":
main()
| [
"48926280+BEMZ01@users.noreply.github.com"
] | 48926280+BEMZ01@users.noreply.github.com |
03f7cc231f628885a709b627c4267c20f5079808 | f1800c4fcc97e125067d818fe985ac0e8f5cd718 | /tests/mock_apivoidhttpserver.py | b1889010545fd21e6a3a9194dbb4e7414389a967 | [
"Apache-2.0"
] | permissive | ndcolter-mcafee/opendxl-apivoid-python-service | a3a57e049c480a5d28d308253d8581e26d105662 | a112506970252831d76151fe3c825ad0dff0143d | refs/heads/master | 2020-05-07T15:17:18.297039 | 2019-04-30T21:12:07 | 2019-04-30T21:12:07 | 180,630,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,279 | py | import socket
try: #Python 3
from http.server import HTTPServer, SimpleHTTPRequestHandler
import urllib.parse as urlparse
except ImportError: #Python 2.7
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
import urlparse
from threading import Thread
import... | [
"ncolter@beaqa.lab"
] | ncolter@beaqa.lab |
12563ef0cc5059de6ba809130310ad94cbea93ac | 50617bb05b2bfcb121414a23b32a6053153b4416 | /1of5_programming_for_everybody/problem02.3.py | 9389c3d7f9a5a32b51dc29f44f2b1a35a30149c4 | [] | no_license | wise-ksf/coursera-py4e-spec | c527b8297d6cb79501f1b482510a9e7951349e78 | 33e29e48998724dccd7ddb4878856a7e2859c8cf | refs/heads/master | 2022-12-18T22:20:28.662078 | 2020-09-09T13:20:29 | 2020-09-09T13:20:29 | 292,668,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # 2.3 Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Use 35 hours and a rate of 2.75 per hour to test the program (the pay should be 96.25). You should use input to read a string and float() to convert the string to a number. Do not worry about error checking or bad use... | [
"kevin.sean.ford@gmail.com"
] | kevin.sean.ford@gmail.com |
254efe3a5353e086fe6ac5768a1c3ee28a328876 | 0b8585c010de440ab3a8defbca29dedf54b756fa | /ngspipedbcli/common.py | 2ecc5f80e3c11e301fe50d4221d051d19deeb3e7 | [] | no_license | wangjie07070910/NGSPipeDb | 854c6abe06eb570579dfd1fc3291e65654443f13 | 93c5b8e7122d8e9f10b48a0442742eae70dd3025 | refs/heads/main | 2023-07-22T12:03:06.491272 | 2021-09-08T04:31:39 | 2021-09-08T04:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,132 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
define all constant variables
'''
import os
import sys
import subprocess
import time
import click
from rich import print
# colorama
from rich.console import Console
from rich.progress import track
from rich.table import Column,Table
from rich.columns import Columns
f... | [
"296373256@qq.com"
] | 296373256@qq.com |
e6073c3bc20f72fb6f0b626cf67d77b100566b36 | b158ada75d038479c2447c350f6df442efa2dc6a | /admin.py | f3580cb8d103022e92d8bf595719fa86db39bfd9 | [] | no_license | tanyalamonova/py | 9cedfef0389c8b3c3135edbe5d07391aece4fdb9 | 220fd6273ba3203134606b89629da5a0f7490662 | refs/heads/master | 2020-12-24T06:14:07.505665 | 2016-11-08T08:04:55 | 2016-11-08T08:04:55 | 73,163,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import re
from collections import Counter
f = open('access.log', 'r')
file = f.read()
f.close()
rule = re.compile("[0-9]{1,3}[\.][0-9]{1,3}[\.][0-9]{1,3}[\.][0-9]{1,3}")
IPs = list(re.findall(rule, file))
IPs.sort()
c = Counter(IPs)
print(c)
IPs[0].partition('*.*.*.')
| [
"t.s.lamonova@gmail.com"
] | t.s.lamonova@gmail.com |
92f600daed1616a37c8d9cab686ed5fe8c402588 | 2c0fc84a446e01ae37aa8b33d08805e81d079441 | /config.py | bc37b9de5186de47c0502de7b62f6a2c358662e8 | [] | no_license | neko1990/icmst2015-visit | afa7083ea1e46cc939173bf3c9cbd1cb6e2227f4 | c7aec355f5616b0c1cd67639b94e72f257d28e04 | refs/heads/master | 2021-01-10T07:01:36.403278 | 2015-04-14T15:07:44 | 2015-04-14T15:07:44 | 44,548,707 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | import web
import os
from web.contrib.template import render_jinja
DB_NAME = 'db.sqlite3'
db = web.database(dbn='sqlite',db=DB_NAME)
db.printing = False
upload_dir = "./receive/"
web.config.debug = True
# used to save password
PASSWORD_SALT = "jlk38blksdivnsfFoNsAlT754-"
# session parameters
web.co... | [
"neko1990@gmail.com"
] | neko1990@gmail.com |
1b5a3937824f0bf85469638fbbc220ae892f7cfd | 1d3759581dc789e1a9de382444f009af45701ca4 | /hw_lection10_exercise1.py | 7f9ea65ad23abf29457456968e71468c6ac1de68 | [] | no_license | EY-cmyk/hw_lection10 | 59de3e8afb4a0121c2d5ffd4991fbad3759f43e5 | 7d102d25c821905583b49d8aeff4ae67939699be | refs/heads/master | 2021-04-17T05:53:59.326298 | 2020-03-23T11:54:50 | 2020-03-23T11:54:50 | 249,417,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import math
import colorama
from colorama import init
init()
from colorama import Fore, Back, Style
class Person():
def __init__(self, name, surname, age):
self.name = name
self.surname = surname
self.age = age
def talk(self):
print("Здравствуйте, меня зовут" + '' ... | [
"noreply@github.com"
] | EY-cmyk.noreply@github.com |
bf4dfb85175642bde5e44e837f015463e1b8fed7 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1201-1300/1237/1237_Python_1.py | 7e07569009a051950622f77e1c5934eb19a13fe8 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from typing import List
class CustomFunction:
def f(self, x, y):
return x + y
class Solution:
def findSolution(self, customfunction: 'CustomFunction', z: int) -> List[List[int]]:
idx1 = 1
idx2 = 1000
ans = []
while idx1 <= 1000 and idx2 >= 1:
if customfunc... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
ce9edd14a814d3562123eca36e632f1be4c7ce5d | 6f00e9d35121380e4887e2ace88fe52411efdaa5 | /chapter01/02/code.py | bb45d11e6f79e37b11e4fbc27486693b59a0641e | [
"MIT"
] | permissive | riseshia/nlp-100-knock | a31793a65f44ba2d5fe5b474a207532440cf0e5b | 7c2247d87036ecd101b839152f21ae55058bbb48 | refs/heads/master | 2021-01-23T05:10:26.042318 | 2018-01-09T12:14:25 | 2018-01-09T12:14:25 | 86,283,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def merge_str(str1, str2):
l = ''
for t in zip(str1, str2):
l += ''.join(t)
return l
| [
"rise.shia@gmail.com"
] | rise.shia@gmail.com |
237881d1efcacc8a677adc585e4d749afd015af4 | ebda2abceb39e2a85210f0f0b193d3221811d582 | /5ed sozdanie.py | 4960fa60c8c4903e3fae811136d6f612453db8a8 | [] | no_license | PashaKim/Python-dnd-backstory | 783e7604a185e594810a65430d1151db8388f8bb | d13876f3530b6dfca18a9638260a77d49990a401 | refs/heads/master | 2020-03-18T15:04:02.296576 | 2018-05-26T03:15:27 | 2018-05-26T03:15:27 | 134,885,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,372 | py | # coding=utf-8
import numpy
import random
import sys
def dice(dicemin,dicemax,droll):
return numpy.random.randint(dicemin, dicemax+1, droll)
def story():
return dice(1, 20, 1)
# def Characteristics():
# Char = [dice(1, 6, 4) for x in range(0, 6)]
# Char = [sum(L[1:4], 0) for L in Char]
# Char.sort... | [
"kimrotwarrior@gmail.com"
] | kimrotwarrior@gmail.com |
9ee0f991ac3f69ab7de1a4dbee327af00d2c45bc | eb9636f3760e57dc7eacc67b7b9b75e6de8b8e30 | /Hardware Code/Raspberry Pi Code/Parse.py | 292341e5daa45bc39e9a38401c46e6a105dcc2ad | [] | no_license | darianray/ParkSmart | a7ba960c4fc19e2a79e9f9c3c27e114a6462f30f | faaff843f885f7af2c3ef644cd7ea4a7b180f3d4 | refs/heads/main | 2023-05-05T17:01:45.262563 | 2021-05-10T15:18:25 | 2021-05-10T15:18:25 | 366,083,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | import json
import os
import datetime
def getJSON(filePathAndName):
with open(filePathAndName, 'r') as fp:
return json.load(fp)
Vtype=""
myInfo=""
lp=""
lpC=""
state=""
make=""
model=""
color=""
status=""
time=""
empty=os.stat("/home/pi/Desktop/LPdata.json").st_size == 0
if not (empty):
myInfo=getJ... | [
"noreply@github.com"
] | darianray.noreply@github.com |
951498df54b030029c912ddedb2eea44778f2f0c | 3ab489cf7210b4f0ac7ae4c25ff8c618d2423289 | /src/unfolding.py | 8de368297f4fe470f026c4b508a1b174f3ee8536 | [] | no_license | songsr/vasp_unfold | 151f5d5ab0e5af33593bcbfb0f9c80398f50680d | 89de826de39390f89056d12855c8bb81d53b460d | refs/heads/master | 2021-01-23T23:45:17.587535 | 2015-01-28T16:14:29 | 2015-01-28T16:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,373 | py | import numpy as np
from utils import post_error, lcmm
def build_operators(spos, trans, eps=1e-6):
'''Given a list of fractional positions, and a list of
fractional translations, produce a set of matrices,
describing how fractional translations permute atomic
positions within the unit cell. Two fracti... | [
"tomkeus@gmail.com"
] | tomkeus@gmail.com |
f01110811fd447bb408812e1a74b9fafc2819d63 | 2ad1490df8c39e68f310704cb29a7bdcf0c6ef3d | /django_projects/locallibrary/catalog/tests/test_views.py | f3dd487a3ac2e10e23f3fd14d764a25243044fcf | [] | no_license | mrsimonsen/django | 8256d1f1b695644ec8f748c75a6e29be23e08475 | 834155ff59bfdb4c3e02aac55a01efcb92a823ee | refs/heads/master | 2021-07-06T23:37:47.586005 | 2020-08-11T23:30:05 | 2020-08-11T23:30:05 | 166,108,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,889 | py | import datetime
from django.test import TestCase
from django.urls import reverse
from django.utils import timezone
from django.contrib.auth.models import User # Required to assign User as a borrower
from catalog.models import Author, BookInstance, Book, Genre, Language
class AuthorListViewTest(TestCase):
@classm... | [
"johnsimonsen@weber.edu"
] | johnsimonsen@weber.edu |
885ff9d65fe138d336fa10f117ee5fd3074b0dee | 1cb22ec63bc3cbe6afde753e886966b9cfa0090b | /illusion_testing/measurement/set_current.py | 6234421ef7d83ba520ad7ad76ee4c30e134dfd16 | [
"BSD-3-Clause"
] | permissive | robust-systems-group/illusion_system | afb63e35a11b698f6ea3277e4932ddf79bcf31bb | f142cc1dacb02312ad78b0ec613061fe84e6648c | refs/heads/main | 2023-02-10T03:31:42.306157 | 2021-01-11T03:35:54 | 2021-01-11T03:35:54 | 322,711,622 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | #!/usr/bin/env python
#
# Copyright (C) 2020 by The Board of Trustees of Stanford University
# This program is free software: you can redistribute it and/or modify it under
# the terms of the Modified BSD-3 License as published by the Open Source
# Initiative.
# If you use this program in your research, we request that... | [
"zainabk@stanford.edu"
] | zainabk@stanford.edu |
5e6cba220dc0ccd2ab02b88d3cc865726293c02b | 8777201401d66b79b78c67ac50d47dc59ce2f15a | /lbs/structures/ecod.py | 5b7f7dfebeb00b1234b9983173241c88f466434b | [] | no_license | labstructbioinf/lbs-tools | 32a9a6399f01c10e6bd2da6da770d097e2d34208 | 9219aee5571e15c6123e5e191d84a1cb821cd5b3 | refs/heads/master | 2023-08-28T12:52:53.750505 | 2023-01-02T13:12:09 | 2023-01-02T13:12:09 | 133,721,229 | 9 | 2 | null | 2023-08-10T09:37:59 | 2018-05-16T20:46:29 | Jupyter Notebook | UTF-8 | Python | false | false | 646 | py | def parse_pdb_ranges(pdb_ranges):
"""
parses ecod domain pdb_ranges such as
A:4,A:6-188
A:474-512,A:603-675
etc.
"""
for pdb_range in pdb_ranges.split(','):
tmp = pdb_range.split(":")[1]
if tmp[0] == '-':
minus_start = True
tmp = tmp[1:]
else:
minus_start = False
if tmp.find('--')>0:
... | [
"s.dunin-horkawicz@cent.uw.edu.pl"
] | s.dunin-horkawicz@cent.uw.edu.pl |
61e73c7a47ab075615d5930b56a87acbcd80e817 | 3060d587024cce2a1328e571b5b2a57bae89a3d5 | /tests/start_page_e2e.py | a19ad041984f8b7ab65379b5913fd3a20a44529f | [] | no_license | freqq/bazy-danych-2 | 4a3c8cbcdd24acc755dacc301bb1afba239cbc15 | 45adbb6dc0ca5eca18cee09bcc7299815343ad25 | refs/heads/master | 2023-01-12T14:45:56.217694 | 2020-08-24T14:48:36 | 2020-08-24T14:48:36 | 230,644,451 | 0 | 0 | null | 2023-01-05T04:56:54 | 2019-12-28T17:59:59 | JavaScript | UTF-8 | Python | false | false | 1,074 | py | import unittest
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
class StartPage(unittest.TestCase):
def setUp(self):
... | [
"dobrzeprzemyslane@gmail.com"
] | dobrzeprzemyslane@gmail.com |
6708d9374b21bde934430af0bbe763cfa33aae8f | 7f0b24a307d581b1290cb7f6b563d201c0f8cd04 | /venv/lib/python3.6/sre_compile.py | 97e92d418ef240502752ecd7a9a6b211bc983b1c | [] | no_license | takyamamoto/hp_management | 674b9833de2abf7a949fd9e13291ced7454b646c | d1aa97b3ae4fb12a88053a323974412f01938185 | refs/heads/master | 2021-02-06T11:06:44.896446 | 2019-04-21T12:04:35 | 2019-04-21T12:04:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | /Users/yutori06/anaconda3/lib/python3.6/sre_compile.py | [
"magicsunset0805@gmail.com"
] | magicsunset0805@gmail.com |
501f74a0807b79882ffefe833d5d2afa2a9ccab0 | b1f1dc12ee3aec4235b4263424f8d4eba4f996a6 | /courses/courses/courses/settings.py | b487361dd3fee8795f6c3e82b6547138dce3142e | [] | no_license | daveydog24/courses_django | c25f6c21912392acd9459656a12373f32b1babdf | 9f900771bd1e14fc8baca23f036f4649f85ac7d4 | refs/heads/master | 2020-03-17T13:06:46.041356 | 2018-05-16T06:44:21 | 2018-05-16T06:44:21 | 133,617,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for courses project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"noreply@github.com"
] | daveydog24.noreply@github.com |
66affeff71a550827bbcf8b7905969f8d84648a2 | 4926a492a2ef961fd01953f75a9a70fa0cd94f6d | /blog/urls.py | b0b6359b875d518bf38bfb06726f936c563b61d0 | [] | no_license | miseriae/yasb_django | 96d126c400dfb66dbd5abd1fe579fb5478a63acc | 4755f40e96c20bcc4a8e7f5008e0eb75b2b4ccc4 | refs/heads/master | 2022-12-23T03:47:30.710134 | 2020-09-25T14:15:51 | 2020-09-25T14:15:51 | 296,611,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from django.contrib import admin
from django.urls import path
from .views import HomeView, ArticleDetailView, AddPostView, UpdatePostView, DeletePostView, AddCommentView
urlpatterns = [
path('', HomeView.as_view(), name='home'),
path('article/<int:pk>', ArticleDetailView.as_view(), name='article-detail'),
... | [
"zuyev.frm@gmail.com"
] | zuyev.frm@gmail.com |
14fb6d53004b22663463f0d74039ca56e3a85c52 | 8bd6b0784de9a1e6a39d0f5f23f2d8fb50c73d49 | /MethodRefine-Rand/logistics/MethodRefine/logistics_benchmark-low/testing/testing_39.py | 11af675b7493eb76367a40c8454e27bc462ca562 | [] | no_license | sysulic/MethodRefine | a483d74e65337dff4bc2539ce3caa3bf83748b48 | adbb22d4663041d853d3132f75032b7561bf605c | refs/heads/master | 2020-09-14T10:45:55.948174 | 2020-05-01T09:13:59 | 2020-05-01T09:13:59 | 223,104,986 | 3 | 2 | null | 2020-04-27T11:01:36 | 2019-11-21T06:33:16 | Python | UTF-8 | Python | false | false | 1,654 | py | #!/usr/bin/env python
# coding=utf-8
import sys
sys.path.insert(0, './')
from logistic import *
import new_tihtn_planner
state0 = new_tihtn_planner.State('state0')
allow = False
state0.loc = {'truck1':('city1','loc1'),'truck2':('city2','loc1'),'truck3':('city3','loc1'),'truck4':('city4','loc1'),'truck5':('city5','l... | [
"526552330@qq.com"
] | 526552330@qq.com |
8059df45728dd522b8eaf9bfac6c0b962d0f7839 | 0667af1539008f9c6c0dcde2d3f50e8bbccf97f3 | /source/rttov_test/profile-datasets-py/standard54lev_nogas/006.py | 29fa4a49fa333f38babeedbd3040338a5c6cfdcf | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bucricket/projectMAScorrection | bc6b90f07c34bf3e922225b2c7bd680955f901ed | 89489026c8e247ec7c364e537798e766331fe569 | refs/heads/master | 2021-01-22T03:54:21.557485 | 2019-03-10T01:47:32 | 2019-03-10T01:47:32 | 81,468,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,904 | py | """
Profile ../profile-datasets-py/standard54lev_nogas/006.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/standard54lev_nogas/006.py"
self["Q"] = numpy.array([ 1.42610400e+00, 2.25740200e+00, 3.03034000e+00,
3.69967200e+00, 4.31610400e+00, 4.7... | [
"bucricket@gmail.com"
] | bucricket@gmail.com |
e72c98c5a54cc288211b129dfa01220fda615b8c | 2e935ca936976d2d2bd4e785e2f3f29c63771542 | /ExPy11205.py | fba7158c4dd56aa10949bc9293c983dc7ae0a0a6 | [] | no_license | zoro6908/PY_acamedy | 4a370e866fef19f6d2e7697eb809352b6ac703f5 | 460d26639f7bd8cf2486950dc70feae6a2959ca0 | refs/heads/master | 2023-04-26T18:10:44.691326 | 2021-05-25T00:11:02 | 2021-05-25T00:11:02 | 298,425,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # 파이썬 기초부터 활용까지 (2020.09)
# [12과] 엑셀 작업
# 정렬방식 / 폰트지정 / 선긋기 : styles 객체의 Alignment, Font, Border, Side 클래스 이용
import openpyxl
# from openpyxl.styles import Alignment, Font, Border, Side
from openpyxl.styles import *
wb = openpyxl.Workbook()
ws = wb.active
ws['B3'] = 'Hello'
ws['B3'].font = Font(name = 'HY헤드라인M',
... | [
"zoro6908@naver.com"
] | zoro6908@naver.com |
b2ef60b35d1995d02dabc7ffe9b68b74659fe72a | d5cdcd70cc59d9ac86d5ebc57a33d31f7cc23d1e | /BE+AI/trainedModels/models.py | d74024c224f8ae5adf9657adb8e261b1e7f7b381 | [] | no_license | Abhijeet18t/eazyAI | 0a8828389299abadd3a8935fa20a4157f2a57b79 | ae469a3ac625172675e6a0534ef89caf7e5f139b | refs/heads/master | 2023-04-07T11:20:01.651293 | 2021-04-20T08:00:19 | 2021-04-20T08:00:19 | 359,730,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.db import models
# Create your models here.
class TrainedModels(models.Model):
modelName = models.CharField(max_length=100)
path = models.CharField(max_length=100)
# def __str__(self):
# return self.modelName
| [
"58684531+Abhijeet18t@users.noreply.github.com"
] | 58684531+Abhijeet18t@users.noreply.github.com |
38c5289a71efe9fd1940869f9d26a7ab4cbae089 | 4a5e913b5ee1998014dcc5532fb8a51eaee9e652 | /alembic/versions/19a48e8d11d3_add_data_with_bash.py | 08166f469df708335dcd61f503cb18379b49040c | [] | no_license | Anagraph/Alembic_article | 9f509fe3c6ae34cfb4e7fa1c5633c25770bdf252 | 6752f34861ae8d889a8e71fac0cc0f5fc3b40cff | refs/heads/main | 2023-06-05T08:51:26.143166 | 2021-06-28T22:08:50 | 2021-06-28T22:08:50 | 368,675,836 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | """add data with bash
Revision ID: 19a48e8d11d3
Revises: 56bbd8fd337d
Create Date: 2021-06-28 09:34:13.410514
"""
import os
from alembic import op
# revision identifiers, used by Alembic.
revision = '19a48e8d11d3'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
op.execute(
... | [
"tarek.mca@hotmail.com"
] | tarek.mca@hotmail.com |
98d541ccd1f1856ccc36685a76a0ad0d7688b02f | 05dccf9764e6ff73cadbe36ae0963957ac81a543 | /api/migrations/0007_list_sort.py | d63528092cbba0d39662cd38c0b7d81ed181afb5 | [] | no_license | madewulf/tasks | 0d58e36f3400d8fcf1e00a1bf4a2bf1463be14a4 | 015c00225482447152c6f0fa6cab7850a4291fdb | refs/heads/master | 2020-04-03T09:52:16.155912 | 2019-03-18T10:26:10 | 2019-03-18T10:26:10 | 155,178,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # Generated by Django 2.1.2 on 2019-01-12 17:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0006_remove_list_creator'),
]
operations = [
migrations.AddField(
model_name='list',
name='sort',
... | [
"madewulf@multitasked.net"
] | madewulf@multitasked.net |
7df332f7135345582140ca2047a94313ccf8d973 | f4a5422a68cdaeaf564f7d4370c7ba084df95ffc | /ReadRPDR_MedFile.py | 28e394173449bb066f14a49cc9dc481a3a0fcb04 | [] | no_license | TedChauncey/RPDRScripts | 8333aa27eb5347c48e51313d1cd62dd977849abe | f79f21ad5c6dcb811ed5a073b89fc5b89b133673 | refs/heads/master | 2020-03-16T09:57:06.312506 | 2018-05-08T15:10:10 | 2018-05-08T15:10:10 | 132,626,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,715 | py | ## This script reads RPDR excel file, and outputs curated medication info with PIDs and Dates
## Author Tafadzwa Chaunzwa 3.26.18
import numpy as np
import pandas as pd
import os
#import SimpleITK as sitk
import csv
import sys
import time, glob
#Define Data File
File = 'KA71__103117112956902332_BWH_Med.csv'
Director... | [
"noreply@github.com"
] | TedChauncey.noreply@github.com |
b35153d84b3d5de30ced8c149b72bb65a1168607 | 1ba5c90292dbed982a23167fd083dd2cf29f6d8d | /bin/boliau-filter | 5a2dda5ecd69ac3fffc88b2999546c11e061382c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | hychen/boliau | 8d99a331056ef18001cae5503084624c1e43618c | 618e4557c7b4a3d97c9926b1d7e691291472ff7c | refs/heads/master | 2021-01-01T17:37:25.012545 | 2013-08-16T09:58:58 | 2013-08-16T09:58:58 | 7,454,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | #!/usr/bin/env python
# -*- coding: utf-8 -*
#
# File: boliau-filter
#
# Copyright (C) 2012 Hsin-Yi Chen (hychen)
# Author(s): Hsin-Yi Chen (hychen) <ossug.hychen@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Soft... | [
"ossug.hychen@gmail.com"
] | ossug.hychen@gmail.com | |
338ab5824090a54458b92bcebc0868ff7bbea5b4 | 61eec9771de17885af1f817ddf7df8eaa1fdd168 | /build/robmovil_msgs/catkin_generated/generate_cached_setup.py | 116ed7667ac27a834209aaf5ce7318f3a3bf28e8 | [] | no_license | jrr1984/TP_FINAL_ROBOTICA | c1ce681b5ea4ca4fea7bfcde00fb289dc81842df | 46988eccec3d8e11f56a6e6e43315d446ded12e7 | refs/heads/master | 2020-03-28T21:26:39.339951 | 2018-09-17T16:42:14 | 2018-09-17T16:42:14 | 149,156,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"juanreto@gmail.com"
] | juanreto@gmail.com |
fc075357702383e855d1b916cb2ef66b92f99214 | 7fdac5209f86de756b9a8123a0911b70738eceeb | /pySDC/tests/test_tutorials/test_step_1.py | 50d02c63344d3cb3b66cf680ff3d9c731d6e2d36 | [
"BSD-2-Clause"
] | permissive | Parallel-in-Time/pySDC | edc66e399f6066effc5aaa376883e88e06b5332b | 1a51834bedffd4472e344bed28f4d766614b1537 | refs/heads/master | 2023-08-30T23:17:56.017934 | 2023-08-30T05:42:00 | 2023-08-30T05:42:00 | 26,165,004 | 30 | 31 | BSD-2-Clause | 2023-09-14T06:40:13 | 2014-11-04T10:56:53 | Jupyter Notebook | UTF-8 | Python | false | false | 524 | py | import pytest
@pytest.mark.base
def test_A():
from pySDC.tutorial.step_1.A_spatial_problem_setup import main as main_A
main_A()
@pytest.mark.base
def test_B():
from pySDC.tutorial.step_1.B_spatial_accuracy_check import main as main_B
main_B()
@pytest.mark.base
def test_C():
from pySDC.tutori... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
8aee6e362eadc5121f43ad0a93b299c283e8d742 | c1eef433188c509225bdeee2330f08a997d0ad95 | /setup.py | 220e273e9e70f7d693c2cee12d0ee9b73ec59624 | [] | no_license | DLutrix/info-gempa-cli | 46e815e0d28c7475ae6b6577f19f2c7a7aaec7fb | 3d9bf50495f586ab582c43a4bedca9aef768cfcd | refs/heads/master | 2022-12-10T10:02:55.744924 | 2020-08-28T11:11:13 | 2020-08-28T11:11:13 | 290,704,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from setuptools import setup, find_packages
setup(
name='info_gempa_cli',
version='0.1',
author='Faishal Risfandi',
description='Informasi gempa',
author_email='risfandi@dlutrix.com',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Click',
'reque... | [
"meld.mee@gmail.com"
] | meld.mee@gmail.com |
a196daf132349155bf416fdc4b57e570c83a009f | 7f5ca987c51ffd49b3cba3ffa3e719fc2b8606aa | /classtest1.py | 1160fea16133893b6bfb38a6943c5b03ddd0e5dc | [] | no_license | Yao-Phoenix/TrainCode | 1134b995fddb3d3556fdce05c3219a875b08f6d3 | 2227a70ad5389207af7a84114a5413be3ec2ada2 | refs/heads/master | 2020-09-13T03:56:02.235742 | 2019-12-17T03:48:00 | 2019-12-17T03:48:00 | 222,648,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | class UserData:
def __init__(self,id,name):
self.id = id
self._name = name
class NewUser(UserData):
@property
def name(self):
return self._name
@name.setter
def name(self, value):
if len(value) <= 3:
print("ERROR")
return
self._name ... | [
"493867456@qq.com"
] | 493867456@qq.com |
a0d1b78b0961df2752d3881f8001547148c95747 | 5aeb002be29ed632df4a1e184a419132983174d8 | /programmeerimise_alused_II/nadal_4/test_n41.py | de58e2e37a202d3ece58228618634b62b167385d | [] | no_license | harles/learning-python | 093aef77f6a7ae89bd4f34263b989c92b494d51e | b2fa79b78d55c8085db3df06064200743151c0dc | refs/heads/master | 2020-05-22T20:56:42.670125 | 2017-06-03T07:22:13 | 2017-06-03T07:22:13 | 84,723,303 | 2 | 0 | null | 2017-06-03T07:22:14 | 2017-03-12T12:21:23 | Python | UTF-8 | Python | false | false | 530 | py | # Moodultestid üleasndele n41
import unittest
from nadal_4.n41 import yhisosa
class YhisosaTest(unittest.TestCase):
def test_tulemus_naide1(self):
self.assertEqual(yhisosa([1, 2], [2, 3]), [2])
def test_tulemus_naide2(self):
self.assertEqual(yhisosa(['ich', 'du', 'er', 'sie', 'es'], ['wir', '... | [
"harles.paesuld@bigbank.ee"
] | harles.paesuld@bigbank.ee |
a99ef1158ab3d5d8d802514430c099425e74bb8c | d989a404d6c78f851a1af116ec0535a47a282da1 | /scrapper/Steam.py | c422bca9eb68a9b8bd676cd0b248a77223652cbd | [] | no_license | marcosorive/torky-api | 5f4b77d24df77649ba07180edc24a6a26cff7ab7 | a1f0845473d16368ba6c48e573c7048751150d83 | refs/heads/master | 2022-12-11T19:19:27.754317 | 2021-05-11T18:08:16 | 2021-05-11T18:08:16 | 166,597,668 | 0 | 0 | null | 2022-12-08T07:44:40 | 2019-01-19T21:56:44 | Python | UTF-8 | Python | false | false | 1,378 | py | from bs4 import BeautifulSoup
from GamePriceScrapper import GamePriceScrapper
class Steam(GamePriceScrapper):
def __init__(self,query):
super().__init__()
self.head="https://store.steampowered.com/search/?term="
self.separator="+"
self.query=query
def get_url(self):
query=self.query.replace(" ",self.sepa... | [
"marcos@orive.me"
] | marcos@orive.me |
ae1323baff40c20bdb2a80b87ee00ccbf3566ecd | d00f1d8e64f7ca24d4468193a4f8230e277efc3a | /api.py | 5384443a41fd0207261b37a9666ad581be9f00e7 | [] | no_license | Mustafallica/Fuel-Predicting-App | 0f916da4f954834083aad43b4480f694f325b6e4 | 3b2735631ebf4dc3708f8d3ae43026756778c1e2 | refs/heads/master | 2022-01-17T20:55:06.864732 | 2019-07-19T22:34:37 | 2019-07-19T22:34:37 | 197,850,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,626 | py | import sqlite3
from flask import Flask, jsonify, request, render_template, redirect, url_for, flash, session
from func import checkInClient, getaddress, addFuel, sign_login
from priceModule import getprice, getTotal
app = Flask(__name__)
app.static_folder = 'static'
app.secret_key = "bhenchod"
@app.route('/')
def ... | [
"mmq7000@gmail.com"
] | mmq7000@gmail.com |
cd1306fd97b08137a92b6d757207ae019af76975 | 90364afd6bce9ea6c349ac3b16f07800646f5717 | /recom_blend.py | 64504677fd3e2c6c10b6e4778a9410c86f00c20f | [] | no_license | XuanX111/Hotel_recommendation | 38bf42cbe0527bd311b39f39048d52f771fa3de4 | fb21f7e1ee2f64201bef3bb3b681348a27546411 | refs/heads/master | 2020-03-19T12:46:01.061601 | 2018-06-27T23:32:17 | 2018-06-27T23:32:17 | 136,538,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | import pandas as pd
import numpy as np
from sklearn.preprocessing import normalize
import h5py
import os
import data_io
# read in RF results
predshf = data_io.load_model('rf')
preds = 0.31*normalize(predshf.value, norm='l1', axis=1)
#read in xgb results
predshf = data_io.load_model('xgb')
preds += 0.39*normalize(pred... | [
"noreply@github.com"
] | XuanX111.noreply@github.com |
43019e739fd97a9d55793a78ce5e2ae210eff614 | 8876406eaef11bff8566b54746ca2a7fae3525db | /setup.py | 4c3c25f64e6ea9d2e13bd8210b73d610353940d2 | [
"BSD-3-Clause"
] | permissive | remibergsma/cs | 19e0ba4b9ea5c97329e743577d1c8cb10aa593d2 | de004f6aa08ee8fc0dc342b334a2731b8c5be964 | refs/heads/master | 2020-12-28T20:30:43.209507 | 2015-06-03T08:40:13 | 2015-06-03T08:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | # coding: utf-8
from setuptools import setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='cs',
version='0.6.8',
url='https://github.com/exoscale/cs',
license='BSD',
author=u'Bruno Renié',
description=('A simple yet powerful CloudStack API client for '
... | [
"brutasse@gmail.com"
] | brutasse@gmail.com |
a6ab5b99bebb18f6e5c81396c3645c2cac627ee3 | 25f8c4ace660b6ae63cac235dad97543ddb7f583 | /backend/urls.py | 4f3d256538d5487f5064a8e71c8155ced3abf93d | [] | no_license | Meen-Anusak/Django_test_deploy | 87c704cc20e5bc235342bebc8090939d1f09c3a2 | b019bee3d52a92fba0c577da93500e935c64df5a | refs/heads/master | 2023-03-25T17:26:02.487220 | 2021-03-23T06:53:57 | 2021-03-23T06:53:57 | 350,609,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py |
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('api/', include('api.urls')),
path('admin/', admin.site.urls),
]
| [
"meenanusak@gmail.com"
] | meenanusak@gmail.com |
cfe2b636fcb88772b97e8c84b97d910528fa961f | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/keras/engine/training_v1.py | ed875cfba01676d954377d3288f63abbfad0c678 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:1eee4b42243c8bc161538de91452850d0486f84aae8e4c4cc9987a3c09eb1557
size 137398
| [
"business030301@gmail.com"
] | business030301@gmail.com |
93f2e75ec22848399b401e7ecf23350d83094a2e | 18a98c63cdbb0e67d82fc3345287cbe8f65e2e26 | /title_exception_tool.py | 611e2765fd90469049a55b86f0b6d74a332aef5a | [] | no_license | JimmyBowden/Python-Scripts | d7df18c6e4fe5f6cfa5bde943358bffba6263cb6 | bc408ac04de0107decd39e638dfaf80b38a11024 | refs/heads/master | 2020-03-18T07:17:45.131509 | 2018-05-22T16:44:19 | 2018-05-22T16:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | import pyperclip
import re
def title_except(s, exceptions):
s2 = s.lower()
word_list = re.split(' ', s2)
final = [word_list[0].capitalize()]
for word in word_list[1:]:
final.append(word if word in exceptions else word.capitalize())
return " ".join(final)
articles = ['a', 'an', 'of', 'the'... | [
"32491606+JimmyBowden@users.noreply.github.com"
] | 32491606+JimmyBowden@users.noreply.github.com |
b6af0763fee281758f511dd90680b3facc9d2f24 | 832580aa5bb9009c6611a4c1b8c082b87da4427a | /PacketType.py | 00ae044902e2660b75d495795217c08bc5cce108 | [] | no_license | Reve/EVEmu_stackless | 78026e722d4b5a6b1185ce3d68a221bef7ebcd81 | 4b349385a17775d8d9a34e2c835a686178ef9330 | refs/heads/master | 2020-05-30T04:19:47.688230 | 2018-11-08T21:40:19 | 2018-11-08T21:40:19 | 17,389,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | PACKET_HEADER = 0x7E
TYPE_NONE = 0x01 #1: None
TYPE_GLOBAL = 0x02 # 2: usually a type, function or class object, but just the name,
# so it has to exist for this to decode properly.
TYPE_INT64 = 0x03 # 3: 8 byte signed int
TYPE_INT32 = 0x04 # 4: 4 byte signed int
TYPE... | [
"gheorghitacristian@mac.com"
] | gheorghitacristian@mac.com |
20c43dec51349cad27af9ad70f8392cab114b6ed | b31a82b133df77b89c9c8f5f285abaf8e4cc357a | /mysql/q3q4.py | 318f6a5f02bad9e75057293564748dab387e0997 | [] | no_license | zizhan/15619-teamwork | a6c266d6233af6a3bdd6efe1a7b4d2c5bb59a243 | 47ee6499a17d60ec184001a198de2e7935e96c09 | refs/heads/master | 2020-12-31T06:09:11.019721 | 2015-01-20T23:29:34 | 2015-01-20T23:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | import ujson
import sys
import re
import hashlib
from datetime import datetime
reload(sys)
sys.setdefaultencoding('utf8')
q3 = open(sys.argv[2], 'w')
q4 = open(sys.argv[3], 'w')
mod = 2 ** 63
with open(sys.argv[1]) as f:
for line in f:
if not line == '\n':
obj = ujson.loads(line)
... | [
"hquan@andrew.cmu.edu"
] | hquan@andrew.cmu.edu |
0648cda378cfc22d6d416533c40ab023e03c3fc3 | 330ae0d29e904d42d11dc75ec1b85a92d8dc56fc | /Bioinformatics/assignment_3_4/problem1/problem1_c/main.py | 5ff9df584b59cf47d38c19b403de5a0b612d83d6 | [] | no_license | d-chechelashvili/MACS | 97b3906409615df5b518ea69f9786203960b36b6 | 4d4f8c505f9215eaf022816d30cf9a9666be5c55 | refs/heads/master | 2022-11-01T07:48:21.597028 | 2022-10-16T15:26:13 | 2022-10-16T15:26:13 | 237,058,276 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import pandas as pd
import seqlogo
def main():
for i in range(1, 5):
pwm = pd.read_table(f"PWM{i}.txt", delim_whitespace=True, header=None, comment='#')
ppm = seqlogo.Ppm(pwm)
seqlogo.seqlogo(ppm, ic_scale=False, format='svg', size='medium', filename=f'PWM{i}.svg')
if __name__ == '__main_... | [
"dchec18@freeuni.edu.ge"
] | dchec18@freeuni.edu.ge |
a0715c31807b8569f667f68b08068fe6feb86ca8 | a1d748a28f2d1438ae0db4c9a001585b3d782fec | /auswertung_fetchreach.py | 4a32d8442d30dc5b21219da9857f593db55e6f18 | [
"BSD-2-Clause"
] | permissive | philippente/inpuls | e24776890b544d8fed8f943aeecf303f345e2447 | 0fcf99aae4347edac0bb6fa9b1b3124443f73b45 | refs/heads/master | 2020-04-23T20:37:47.533930 | 2019-02-24T15:15:59 | 2019-02-24T15:15:59 | 171,447,049 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | from libeval import plot_dist, read_iteration_data, reset_plot_color
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
def visualize_fetchreach(file_name, sample_type, show=True, export_pgf=False):
reset_plot_color()
if export_pgf:
plt.rcParams["font.f... | [
"philipp.ennen@gmail.com"
] | philipp.ennen@gmail.com |
5daad3a635524ab3e8418fe0cea97a372f8dabc9 | 0af04fba8bc7b61e9f8e49d6cafcc2c8dbdce010 | /one-time-pad.py | 9cbe121b40ec8346e80496e1ce1a0edf6f145e89 | [] | no_license | K1sna/Classical-Public-Key-Encryption-practice | b39adfce719ea6440822a64b700a30714d0a73fd | 5be7d5e681e883ab3f71f3fe576edef0da55ad12 | refs/heads/main | 2023-05-02T18:03:27.041897 | 2021-05-22T11:32:13 | 2021-05-22T11:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | # -*-coding:utf-8-*-
import string
import random
import sys
abc = string.ascii_lowercase
one_time_pad = list(abc)
# random.shuffle(one_time_pad)
def encrypt(msg, key):
ciphertext = ''
for idx, char in enumerate(msg):
charIdx = abc.index(char)
keyIdx = one_time_pad.index(key[id... | [
"noreply@github.com"
] | K1sna.noreply@github.com |
67f3dc9b0610a75280a1d0333c50e0c9d0068017 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_24308.py | 40aee1514e2f6af905f3da41368b0b9dc8eddebd | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # How to solve permission denied error in cron?
chmod u+x shellScript.sh
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
16d42264f14e0df27c1fd16e5ca5faa78c9249da | f504fc2714ed09c3bc1e84dfe67c04af585b8700 | /Player.py | 69028cc93fd718f9f797d04ae68fa470de7516b0 | [] | no_license | MasumTech/OOP-Concept-in-Python | 04c88a28c2c8bf7ed0231c0da223f216177a07f9 | 7a0a9e214003c759a84e2e28bf8b4702b2e3ced8 | refs/heads/master | 2020-12-15T16:06:36.909927 | 2020-01-20T19:04:19 | 2020-01-20T19:04:19 | 235,169,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | class Player:
minAge = 18
maxAge = 50
def __init__(self,name,age):
self.name = name
self.age = age
| [
"masumrezadiu@gmail.com"
] | masumrezadiu@gmail.com |
2843f36d76e9db7e8d1b470ff5ad55b1747f0bee | 6ad60b4670293565f982518dad997fdaa609cb90 | /scripts3/slave/scripts/appium4droid/webdriver/command.py | 44caab1115e1ad33ad587e6feb9ecdc9a1f4427c | [] | no_license | cash2one/com.hipipal.qpyplus | 209c8dc219c3df2fdc3b7fdf877bbd93fc6e0b97 | 0a9f41c6d957f32ee96dc29e38e288edce3792ce | refs/heads/master | 2020-12-31T06:46:30.215999 | 2016-09-29T03:29:15 | 2016-09-29T03:29:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,857 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"554795378@qq.com"
] | 554795378@qq.com |
48a9047e0d1aabf60095420fd3a14dd3c84a6d55 | efdd433fb2e358bb9ec4cb293db2211f5516a9e4 | /Documents/BACKEND/week6/6.1-django/activities/kittyadopt/manage.py | 0dd361a397935e4b5f3e57c33be49970bee34522 | [] | no_license | errinmarie/FeedBack | 3e5c2e581ee207f486567bd838ac864f2c959f18 | c7cf1aefea226b10b4387ded4a0693d786558d14 | refs/heads/master | 2021-10-01T20:08:53.846515 | 2018-11-28T02:49:41 | 2018-11-28T02:49:41 | 159,429,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kittyadopt.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"errinmixon@gmail.com"
] | errinmixon@gmail.com |
faf85093b79775e745c7246975277e8edab9fc7e | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/types/income_range_view_service.py | d0425e8f88ca57d8de6d14f5c2900c3cc4c07201 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
ca01bbe3f30fd8987a1610e6c2ef4d79adc4d198 | 128e3e6931f84d877c10e236d820c5715c9c71bf | /python/paddle/fluid/tests/unittests/test_one_hot_v2_op.py | dc948c42bc6d6a568f99e8c709514e4196c5a81c | [
"Apache-2.0"
] | permissive | chengduoZH/Paddle | f6bdd1e3288844ebbac9c9f31b3a67643e230c9d | a9bc92c31422674eab2ce4b7ddc2282f9a727499 | refs/heads/develop | 2021-01-15T17:46:57.440626 | 2019-10-30T04:02:19 | 2019-10-30T04:02:19 | 99,756,501 | 1 | 2 | Apache-2.0 | 2018-07-27T02:32:09 | 2017-08-09T02:26:38 | C++ | UTF-8 | Python | false | false | 6,907 | py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | chengduoZH.noreply@github.com |
99e784dac63d079e8e12c50e1bc610096881d6ef | abee789a10ae7999bb848e5b701d6a5cbeafb29b | /main.py | 15e1dca5e8e6231cf93c1e7c36ec7d1b5b6a971e | [] | no_license | irwanafandi24/Disease-Identification | c1ccefcd00223f8f50747671e76cafd1dad1eca4 | 63116f480b29320db0b87f32ccd1145b7ef333ab | refs/heads/master | 2023-08-18T16:13:26.298967 | 2021-10-05T13:18:06 | 2021-10-05T13:18:06 | 410,625,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,035 | py | from flask import Flask, request, jsonify, render_template
# from flask_restful import Api, Resource
from keras.models import load_model
from keras.preprocessing import image
import pandas as pd
import numpy as np
import tensorflow as tf
import tensorflow_hub as hub
# from tensorflow import tf
app = Flask(__name__, t... | [
"mohamadirwanafandi@gmail.com"
] | mohamadirwanafandi@gmail.com |
2523fb189b949d3b82eaec95c265a2e1f0967c70 | 48faee5b845e43e6c102cb027f43c8b886ecaa5e | /accounts/admin.py | 70ffd71bf72808920c9ff285ffcdb97d3c0f9675 | [] | no_license | hornLK/LonedayAdmin | 66c0a8b978967a0144a216f621c872a6d2197229 | 36ba3fe763788423801ad5ab14462624114da804 | refs/heads/master | 2022-12-26T06:57:47.675915 | 2018-05-15T13:08:34 | 2018-05-15T13:08:34 | 131,375,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | from django.contrib import admin
from django import forms
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from accounts.models import UserInfo,Permission,Role
class UserCreationForm(forms.Mode... | [
"bjlkq546449541@gmail.com"
] | bjlkq546449541@gmail.com |
4e1bc0127ad1c3483d7cd9ad8cfd162d959b93c1 | 48f73129ffcfc2a257a5841b84036f861fbe6a91 | /1.Fundamentals/1.Programming Model/18.py | ddd74f07c20da01787b977b0af0d00c6700914e3 | [] | no_license | Zer0xPoint/Algorithms4_python | 2febceafc1f1da2755e81200a0e0d1cea1e15822 | f256b95e9545964f49f853e724b5df0fdd72c1ac | refs/heads/master | 2020-07-06T10:44:07.345677 | 2019-08-25T05:32:41 | 2019-08-25T05:32:41 | 202,990,803 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | def mystery(a, b):
if b == 0:
return 0
if b % 2 == 0:
return mystery(a + a, b // 2)
return mystery(a + a, b // 2) + a
print(mystery(3, 11))
print(mystery(2, 25))
| [
"liyizhou@me.com"
] | liyizhou@me.com |
70617f3d7d699cb8fa1781509963bc430072ca0c | b3217e2bb6e72fbcb15df99b5c6c10ea4731a5b7 | /anheng/2020NewYear/pwn/unctf_EasyShellcode/pwn1.py | 331c88293dc6c22ceb2553d7c395ca0eef05c56f | [] | no_license | CrackerCat/ctf-6 | 5704de09eda187e111c7719c71e0a81c5d5c39e3 | aa7846548451572fe54a380dc8d367a0132ad2ec | refs/heads/master | 2023-01-28T06:18:01.764650 | 2020-12-07T12:05:20 | 2020-12-07T12:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | #!/usr/bin/python
#coding=utf-8
#__author__:TaQini
from pwn import *
local_file = './pwn1'
local_libc = '/lib/x86_64-linux-gnu/libc.so.6'
remote_libc = local_libc # '../libc.so.6'
is_local = False
is_remote = False
if len(sys.argv) == 1:
is_local = True
p = process(local_file)
libc = ELF(local_libc)
e... | [
"742954809@qq.com"
] | 742954809@qq.com |
909dd0a08c3e7a6407f42194ea432522400824e9 | db130f62aa6c1ebbde97a228c0dc9676670cce99 | /PythonScripts/ImageData.py | 9549869c7da40441ddde417f8f492f777c9ca9c3 | [
"MIT"
] | permissive | dbk138/ImageRegionRecognition-FrontEnd | 3d958b241a08502f5cb149de416135cb28d89fde | 82eea2bc8fb3388a4aa65dd4b8a9bb0f085d64d9 | refs/heads/master | 2016-09-05T18:31:50.773388 | 2014-04-23T18:23:21 | 2014-04-23T18:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | __author__ = 'jhala'
import Helpers
import json
import os
''' creates a location lookup, and an associated image lookup '''
''' main '''
if __name__ == "__main__":
fil = r"c:\capstone\featureInfo.csv"
outLoc = r"c:\capstone\locationLookup.json"
imageSourceDir="C:\\Users\\jhala\\angular-seed\\app\\images\... | [
"dbk138@gmail.com"
] | dbk138@gmail.com |
5c38ea20e9d5d8f3e31e5d4bd17e1440db4f3d73 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/keras/api/keras/metrics/__init__.py | 6e02c1674ee83334cbe7062ab4c5e87eda1d47c4 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0a12f3b7372d5432f0d79f402b4769a59e1d06dc405da5210bbf689cb36fa0e2
size 2230
| [
"github@cuba12345"
] | github@cuba12345 |
23881eda8b318acae55fa0da4e409eca46d0ecd9 | f3ca7845c8230c32ff7f609a538133007a417be3 | /lab-11-true.py | 49b824f15b0c44309927cf6cc1ee80e306e30285 | [] | no_license | pama-arniel/CMSC-11 | baa98ecffdf797104019a4cd815b525dc0085d62 | bc3f8c2c179c67067344afa775b3e538a856b6b9 | refs/heads/master | 2021-07-15T09:57:26.848925 | 2017-10-18T17:49:48 | 2017-10-18T17:49:48 | 66,955,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,897 | py | ##def shortest_name(names_list):
## """ (list of strings) -> str
## Returns the shortest name within a given list
## """
## return ""
##
##def shortest_name(names_list):
## """ (list of strings) -> str
## Returns the shortest name within a given list
## """
## for name in names_list:
... | [
"noreply@github.com"
] | pama-arniel.noreply@github.com |
269483c49b277e23d7d2f619c4384566cc1b6113 | 83b3e742c63ae1341e87c960e216a7fe2d26721d | /doubanpjt/doubanpjt/middlewares.py | afbc1cc974459b5d7e069f4d1ef7d4a175a1785e | [] | no_license | xiyouhujing/SpiderPro | 299bce0a6eee976778fdbea04231e48c4fe2b944 | 8ed90f2c24ce47e169ba118445d0c929176cd3f5 | refs/heads/master | 2021-09-03T00:24:57.025932 | 2018-01-04T09:02:40 | 2018-01-04T09:02:40 | 113,152,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class DoubanpjtSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy... | [
"992827613@qq.com"
] | 992827613@qq.com |
0f556c71436d02a086113f99e88fd3d8bc0d7e43 | 0e4416e515f4b9050f53e2df8625b5baf1cf21bc | /dictionary.py | c4f5a0f18468709ee3aef909a4921f193fea3de2 | [] | no_license | omkrit/PYTHON_BASICS | 1b7507e2c5839f6514feabfe76ace5f9e8bfd1b2 | 91692783afe8c2a0505af310649893b705faea00 | refs/heads/master | 2023-01-21T05:16:31.174672 | 2020-09-23T04:12:46 | 2020-09-23T04:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | #!/usr/bin/env python
# coding: utf-8
# In[30]:
print("hello")
#dictionary
dict1={"animal":"lion","sweet":"rasgulla","number":1}
print(dict1)
#dictonary key
dict2={"govind":"choclate","dipSardar":"rasgulla","vedansh":"golgappe"}
print(dict2["govind"])
#nested dictionary
dict3={"govind":"choclate","dipSardar":"... | [
"noreply@github.com"
] | omkrit.noreply@github.com |
4ff5925a6c285ca128feadb2bd3dbe5d7f7b18da | 03314eac9688d9889f813cca50552d8822e6c745 | /Modulo3/TP3/notebooks/tweetCount.py | 8e1af8628eabeec90484ff4be29105e972e37288 | [] | no_license | frapima/ICP | 7c1035a5def06547c005440df52bc80c74283c53 | 3845b3782a49024760d1fec8ae17155d8b1a9449 | refs/heads/master | 2020-09-13T09:49:23.461698 | 2020-03-28T17:49:55 | 2020-03-28T17:49:55 | 222,731,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #!/usr/bin/env python
# coding: utf-8
# # TP3 - Apartado 2 - Infraestructuras Computacionales para el Procesamiento de Datos Masivos
# ## Ejercicio 1
# ### [Enunciado]
# In[ ]:
from pyspark import SparkContext
from pyspark.streaming import StreamingContext
from pyspark.streaming.kafka import KafkaUtils
# In[ ]:
... | [
"javipiquerasm@gmail.com"
] | javipiquerasm@gmail.com |
d380ed7003a3a64ae30efcb0766b6aff9caea899 | 5b2ba04205842fce3efaea10a5a99bb35805814c | /pos/cashier/migrations/0009_auto_20161113_0339.py | a2863f5fed9dc5c5ed58fd46ed8be8a6db3c9bf1 | [] | no_license | langorn/catcolate | 4af21ca1b2eadddcff8a266b252e4969f76bebd5 | f8c5fad2c84080750b6de7229510ca3aa4bc991d | refs/heads/master | 2021-01-12T14:19:05.981728 | 2018-10-01T16:39:02 | 2018-10-01T16:39:02 | 69,420,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-11-13 03:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cashier', '0008_auto_20161113_0336'),
]
operations = [
migrations.AlterField... | [
"raynor.tags@gmail.com"
] | raynor.tags@gmail.com |
84ac403c96d1ea5767e9d76e3d071a26e44ac999 | 9918251bfab080d2bcec9e78279df95d4c90403f | /configuration.py | 2dba1fa522f1c3122b4c7d78294ab61ef03ea382 | [] | no_license | dpraja/IVR | cb67fd841cae4054a508eb5c0246cd68b5d7b473 | ab2a3579a4533f8632e73a99e734fa91ca66ef2c | refs/heads/master | 2021-05-25T10:39:23.069295 | 2019-04-15T09:04:41 | 2019-04-15T09:04:41 | 127,132,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | from sqlwrapper import dbget,dbput,gensql
import json
def config(request):
res = request.json
roomtype = request.json['room_name']
res['room_name'] = roomtype.title()
rooms = json.loads(dbget("select count(*) from configration where room_name='"+res['room_name']+"'"))
if rooms[0]['c... | [
"noreply@github.com"
] | dpraja.noreply@github.com |
917b5cda4dbc868d30021eead8f0a5af14680103 | 87ad1fac1e9cd594c1dcc6e43d8ddf444bf964d1 | /results_window.py | 16982a3f807e84488e840f41d18f0390dfff2846 | [] | no_license | GoKarolis/RealEstateFinder | 8bdfe1cc9db6dc3edf820555436d732e3fa9e9ea | 60040c1fdab3d73f74a90c4dcfb65b8c72f249c9 | refs/heads/master | 2022-12-09T15:25:13.822065 | 2020-02-21T19:15:47 | 2020-02-21T19:15:47 | 238,457,403 | 1 | 0 | null | 2022-12-08T03:39:47 | 2020-02-05T13:31:53 | Python | UTF-8 | Python | false | false | 983 | py | from tkinter import Tk
from tkinter import messagebox
import tkinter
def show_domo_results(dict):
root = Tk()
t = tkinter.Text(root)
results_list = []
for key, value in dict.items():
temp = [(" \n " * 3) + key + value]
results_list.append(temp)
print(results_list)
... | [
"noreply@github.com"
] | GoKarolis.noreply@github.com |
2b2e5e13e3b34b969c5434b47bbc3937488e257e | 9fe6b3986682d0ab45110d9d534e868fed3e9b49 | /webapp/migrations/0009_auto_20160104_1304.py | 6c6fc76a4aab858273e8780dff1f41c4c2e5299f | [] | no_license | arcynum/steam | 8ed9c574524353163e6fad18c8e45d04cf10b410 | 5d013f6e3c8d90d271a2e4c959a0c1f5642c5769 | refs/heads/master | 2021-01-10T13:56:46.741176 | 2016-01-04T03:05:11 | 2016-01-04T03:05:11 | 36,708,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-04 03:04
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('webapp', '0008_auto_20150602_1443'),
... | [
"arcynum@gmail.com"
] | arcynum@gmail.com |
dd095298a9afc68335157cb824950644c08ba41d | aee144770c8f4ec5987777aebe5b064e558fc474 | /doc/integrations/pytorch/parlai/tasks/squad2/build.py | 094ee646331483740208e88da52a11b78a65a498 | [
"CC-BY-SA-3.0",
"MIT",
"Apache-2.0",
"AGPL-3.0-only"
] | permissive | adgang/cortx | 1d8e6314643baae0e6ee93d4136013840ead9f3b | a73e1476833fa3b281124d2cb9231ee0ca89278d | refs/heads/main | 2023-04-22T04:54:43.836690 | 2021-05-11T00:39:34 | 2021-05-11T00:39:34 | 361,394,462 | 1 | 0 | Apache-2.0 | 2021-04-25T10:12:59 | 2021-04-25T10:12:59 | null | UTF-8 | Python | false | false | 1,480 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
import parlai.core.build_data as build_data
import os
from ... | [
"noreply@github.com"
] | adgang.noreply@github.com |
fb38b1cae93a0a69317183d25ba998f29bd16881 | dde7b8afce4d8c62d0b72be9d113f34a46e2fd71 | /face_detection.py | 730050f4d6d34a0a7608a2e15fedd5e5278aee78 | [] | no_license | bipinjaiswal1996/deepfake | 2991faeea1553dc3a6a59065426dbef99415ec96 | 7987a602952d466829a50bf419d7b174fb368d67 | refs/heads/main | 2023-05-16T17:58:53.483293 | 2021-06-06T17:22:31 | 2021-06-06T17:22:31 | 374,407,044 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import cv2
import math
import os
import pandas as pd
import matplotlib.pyplot as plt
from PIL import Image
from facenet_pytorch import MTCNN
pad = 45
s='/media/bipin/3A8AD7E58AD79C27/datasetfacenew2/validation/realframes/'
k=os.listdir(s)
d='/media/bipin/3A8AD7E58AD79C27/datasetfacenew2/validation/realface/'
mtcnn = M... | [
"noreply@github.com"
] | bipinjaiswal1996.noreply@github.com |
cf4147a43f5b8f3bc90bb01c2f7b5e1a4be11c9a | f405c9a9ac4efc40135ae48257cbb6a9b93829fb | /src/model/equipment.py | 7272754e63ddf6395b7c146260a8a715314efd66 | [] | no_license | anadienst/sao-paulo-aberta | a5fe314a078e5a7c54d7e9722139212d54bc1d1c | fc904abc723038a53016ede4ae7702391f297513 | refs/heads/master | 2021-01-20T21:12:21.223026 | 2016-07-14T11:06:12 | 2016-07-14T11:06:12 | 61,843,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | name = ""
address = ""
responsable = ""
telephone = ""
| [
"felipe.dias@devtecnologia.com.br"
] | felipe.dias@devtecnologia.com.br |
5752d5dee5493fd74ac87073cbf888b94a25421d | 0e49edc9a51f408911bb116a6813a4b47e60af44 | /auditMeth.py | aedd3e5e765e3f9291d8606e100d57a7349d8868 | [
"MIT"
] | permissive | robertcolvin/AudiThor | fc21059f01974e138a1c8304eb6d6adfe670135d | 34ff8a44fe2dc79377b3695888f58618353fcfb2 | refs/heads/master | 2020-04-06T07:19:44.602669 | 2019-12-18T21:17:52 | 2019-12-18T21:17:52 | 157,268,077 | 0 | 0 | MIT | 2018-11-12T19:53:27 | 2018-11-12T19:53:27 | null | UTF-8 | Python | false | false | 10,118 | py | #!/usr/bin/env python27
import csv
import colorama
import os.path
from colorama import Fore, Back, Style
import re, string
import json
from decimal import *
import datetime
import boto3
from botocore.client import ClientError
from botocore.vendored import requests
from zlib import compress
import yaml
#used for c... | [
"rcolvin@kaplan.edu"
] | rcolvin@kaplan.edu |
67ccb1475ec05c04027a13cfadd67b4b28e9004e | cb8d1db4af4401b019775132fe92f3eae4cb92df | /_unittests/ut_cli/test_cli_file_helper.py | b24c031f8bd1ec2a412e0fabd6edd470918e6747 | [
"MIT"
] | permissive | Pandinosaurus/pyquickhelper | 041d6c6d2832845bd89027ffaab333239efc3959 | 860ec5b9a53bae4fc616076c0b52dbe2a1153d30 | refs/heads/master | 2023-07-24T12:27:25.700277 | 2023-07-17T07:02:34 | 2023-07-17T07:02:34 | 169,426,142 | 0 | 0 | MIT | 2023-07-17T07:53:04 | 2019-02-06T15:17:53 | Jupyter Notebook | UTF-8 | Python | false | false | 1,549 | py | """
@brief test tree node (time=7s)
"""
import sys
import os
import unittest
from io import StringIO
from pyquickhelper.loghelper import fLOG, BufferedPrint
from pyquickhelper.pycode import get_temp_folder
from pyquickhelper.__main__ import main
class TestCliFileHelper(unittest.TestCase):
def test_cli_fi... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
d948e029f291855cde4a496326be8441a49a4820 | 57d82edd2171302ae9b0e3417a45bcfff6b045ff | /Applying Decision Trees-92.py | d0fd77c2c824375589730562fa2b5577aae51008 | [] | no_license | hsrasheed/learning | b94f6c6fa39eb6f1b943dce91f2e8809a9eebbf1 | 607b513eb78a3032bbbe817eedfcde4f65c71a64 | refs/heads/master | 2021-07-16T22:28:23.103427 | 2020-05-08T23:34:47 | 2020-05-08T23:34:47 | 148,682,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,610 | py | ## 2. Using Decision Trees With scikit-learn ##
from sklearn.tree import DecisionTreeClassifier
# A list of columns to train with
# We've already converted all columns to numeric
columns = ["age", "workclass", "education_num", "marital_status", "occupation", "relationship", "race", "sex", "hours_per_week", "native_co... | [
"rasheedhs@gmail.com"
] | rasheedhs@gmail.com |
a8ebf30e80e2aa058a8c7fd09f261869774a8295 | e7b04aff217d4ad66e633fb186abc8c90722dabb | /listcomprehensions.py | d596926d981428041f3891d6ae5e58559bff80c8 | [] | no_license | EbonieM2/pythonPractice | 4d625c4704dfdf3a7c28ae585e14baba14c8c98d | 66908c4c69d31a4a3c29f63d8d9547d0ed1c2a9f | refs/heads/master | 2023-03-18T22:08:07.367395 | 2021-03-09T04:24:20 | 2021-03-09T04:24:20 | 341,748,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | #Exercise 7 - List Comprehensions
'''
Write one line of Python that takes the list below and makes a new list that has
only the even elements of this list in it.
'''
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
even = [num for num in a if num % 2 ==0]
print(even)
| [
"ebonie.mcsweaney@outlook.com"
] | ebonie.mcsweaney@outlook.com |
629d0dacc290cb32d3a9e97d9c3d1528808392b8 | 4b04174c4b6bd49adf61920df9fa1ffa06bab48c | /blog/urls.py | 5e21d8aea082e41dcdd1f5279a42a6a3064564a2 | [] | no_license | PopovaMaria/Web | 4d2a8cb7460711a20535080bc4701667489008cd | 6f35f3f1f810d8235eb444a35fc0ae54b8217985 | refs/heads/master | 2021-05-19T07:35:56.639275 | 2020-06-17T14:04:48 | 2020-06-17T14:04:48 | 251,588,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | from django.contrib.auth.decorators import login_required
from django.urls import path
from . import views
from django.conf.urls import url
from . import views
from .models import LikeDislike
from blog.models import Post, Comment
urlpatterns = [
path('', views.post_list, name='post_list'),
path('post/<int:pk... | [
"Geer78@ya.ru"
] | Geer78@ya.ru |
ee041634eed26084b93fccebd4d1e57585aad160 | cde98fac4595d132f9c2b54aa001eb7aa69140a4 | /django_product_review_app/products/models.py | e6ca77ae69f774d995d1a37fc7c17cad5aa2f696 | [] | no_license | WMRamadan/django-product-review-app | 2700ec4a1b4491b0d31b5b904652772515664152 | 4ad98b15f35f37174e8708b2e44e8537e75547ff | refs/heads/master | 2022-12-21T13:10:56.458641 | 2022-12-19T22:46:17 | 2022-12-19T22:46:17 | 239,888,560 | 6 | 0 | null | 2022-09-17T13:34:19 | 2020-02-11T23:47:43 | JavaScript | UTF-8 | Python | false | false | 2,194 | py | from django.conf import settings
from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator, FileExtensionValidator
from django.shortcuts import reverse
from autoslug import AutoSlugField
from django_product_review_app import utils
class Category(models.Model):
name = models... | [
"thebigguyis@gmail.com"
] | thebigguyis@gmail.com |
4b503ce687d8c88f414736ef4819187219a288d8 | 2c4ed180a32a6deff4b7ffdd4e911bbbf8a029de | /src/utils/config.py | 6adbfae6ad315818eb4ce35b419e470458eb7bd7 | [
"Apache-2.0"
] | permissive | ignavierng/golem | 8b1e1c3ba9eb6f5dc22a9944bcfba715ca55afc6 | 9e99e615c43a288532c319a29ac4bc2a0830226a | refs/heads/main | 2023-06-01T19:48:03.110261 | 2021-06-23T13:54:51 | 2021-06-23T13:54:51 | 317,416,493 | 18 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | import argparse
import sys
import yaml
def load_yaml_config(path):
"""Load the config file in yaml format.
Args:
path (str): Path to load the config file.
Returns:
dict: config.
"""
with open(path, 'r') as infile:
return yaml.safe_load(infile)
def save_yaml_config(conf... | [
"ignavierng@gmail.com"
] | ignavierng@gmail.com |
264c4e5f706a807bc166aa0e98cc209f9a9b0b6a | 3b7fc793ff810716899ea4068dd8cc56fca74c3a | /venv/bin/easy_install | fbf9446947be50e4be766ee12a32dee6e48958ef | [] | no_license | sararufael/flask12 | d2d1304837547195d931368cb675fcff91496f7b | a6075fdf4b1f8176e5813766285e32c4719c3441 | refs/heads/master | 2020-03-07T20:07:26.474473 | 2018-04-02T02:29:48 | 2018-04-02T02:29:48 | 127,689,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | #!/Users/sararufael/PycharmProjects/flask12/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"sara.rufael@gmail.com"
] | sara.rufael@gmail.com | |
4f2c7a720e34dcac9f1b09e31564e6f05de0cc45 | 21bc45457f7c6841a93d2be498da87f99a466beb | /blog/models.py | 64a00f7711a1eaaf18ebf94cbdb592ac852b2c08 | [] | no_license | DarlsyLida/CRUD-with-Django | 9a99cd89c670832e47d1fad5896cc7d0a2e09b21 | 5bbbd4e204e415582346475acf80f56fedce4ac9 | refs/heads/main | 2023-04-10T22:57:27.707040 | 2021-04-27T07:52:50 | 2021-04-27T07:52:50 | 362,024,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
# Create your models here.
class Post(models.Model):
title=models.CharField(max_length=200)
author=models.ForeignKey('auth.User', on_delete=models.CASCADE,)
body = models.TextField()
def __str__(se... | [
"lidadarlsy@gmail.com"
] | lidadarlsy@gmail.com |
51142e7b8d3e124bfee304c104a86f3a4b396682 | f8ffa8ff257266df3de9d20d95b291e393f88434 | /Python from scratch/Warsztaty/Warsztaty01/zad01.py | 33e1c3878f88c9c49cec628e9e7d3339b1b0c28c | [] | no_license | janiszewskibartlomiej/Python_Code_Me_Gda | c0583c068ef08b6130398ddf93c3a3d1a843b487 | 7568de2a9acf80bab1429bb55bafd89daad9b729 | refs/heads/master | 2020-03-30T05:06:26.757033 | 2020-03-02T08:53:28 | 2020-03-02T08:53:28 | 150,781,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | ekwipunek = {'pieniądze':158.40,
'sprzęt':['kompas', 'latarka', 'śpiwór'],
'prowiant':['jabłko', 'woda', 'batonik', 'batonik']}
print('Lista ekwipunku to: ', ekwipunek)
print('Harcesz kupił karimatę za 29.99 zł')
ekwipunek['pieniądze'] = ekwipunek['pieniądze'] - 29.99
ekwipunek['sprzęt'].a... | [
"janiszewski.bartlomiej@gmail.com"
] | janiszewski.bartlomiej@gmail.com |
0b2db6c3bc74ec0954cba73032b468bfc18af596 | ba98ec33ebf0adcac0e54942d299c0c53db2a620 | /moviediary/migrations/0002_auto_20160510_2008.py | d23633629bb924be66110130d3eee0c938d842f8 | [] | no_license | n-donnelly/DjangoMovieDiary | 066bfaad27326f2bbb8cd6555791db5fd9cf835f | 728028b9f31b3c7bb67c520ac3b0f3cb6d219fac | refs/heads/master | 2021-07-04T14:04:11.641017 | 2019-09-25T20:54:39 | 2019-09-25T20:54:39 | 53,976,413 | 0 | 0 | null | 2021-06-10T18:52:09 | 2016-03-15T20:30:55 | Python | UTF-8 | Python | false | false | 634 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-10 19:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('moviediary', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"n.donnellyv3.0@gmail.com"
] | n.donnellyv3.0@gmail.com |
d3b94521e94ddf123bab028bd0ceea39a118c2d5 | 43e6b4fd10ce71d1f1cd2ba9c5bd0268a7626f15 | /lagou/spiders/lagouSpider.py | 82ed06d0cf2453bed626ac2d9115f0e3e13ae396 | [] | no_license | DuZehou/DataBaseSpider | 0b91772d6fa591e3ac2629aed0339f3ac70ce0a4 | b034138ea98031c037b482df15ad2bd0174b4179 | refs/heads/master | 2020-09-15T17:46:26.222834 | 2019-11-23T02:36:30 | 2019-11-23T02:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from scrapy.loader import ItemLoader
import json
from lagou.items import LagouItem
class LagouspiderSpider(CrawlSpider):
name = 'lagouSpider'
name = 'lagou'
redis_key = 'lago... | [
"471129477@qq.com"
] | 471129477@qq.com |
c8e6c27e44dce97d32098f3b61a4030bb35407af | 2228158ac80e8d70d13a54c17706c8ca0337496a | /shopp_list/shopp_list/wsgi.py | f4cc78995772750ae3ffe11f79399c6f31acfc60 | [] | no_license | gherciuand/Test_Python | 902c539c9d9e0200d5460442ced1b7fe5ecdf48f | f3190e73baddd0a50298dc67dff8d4e40294a4cc | refs/heads/master | 2022-12-21T14:55:17.404582 | 2020-09-23T15:21:26 | 2020-09-23T15:21:26 | 280,411,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for shopp_list 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_SE... | [
"68415760+gherciuand@users.noreply.github.com"
] | 68415760+gherciuand@users.noreply.github.com |
0650d331d64b21a05bbdb37c4c7e7ef58960cebc | 444a21c4556e4e7ebb9d8e0f2b75fae76b45ed70 | /Rendering/ABC/wrapper.py | 832d512133db213547e3ac87ae87153815cb018b | [] | no_license | sainatarajan/3DShapeGen | ecafcbe9bc072d7aa00f82182daa915c3e6093ab | db269ccdbccaeda48dd8ffea5b4141ce0010ed81 | refs/heads/master | 2023-05-16T22:13:48.671300 | 2021-06-16T05:31:45 | 2021-06-16T05:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | import os
import time
import argparse
import json
import numpy as np
import shutil
from collections import Counter
# paths and arguments
blend_files_path = '../blend_files'
param_json_path = 'data_generation_parameters.json'
with open(param_json_path, 'r') as load_file:
data_gen_params = json.load(load_file) ... | [
"sstojanov@gatech.edu"
] | sstojanov@gatech.edu |
2b25ec3ed370f5c17b3b550934ae5e91f6d8907f | 63ee4a3151041f3282e4679838c86e6a74e74ff1 | /ask_george/settings.py | 52c6ae77e2b315fea456ab77e9b61df9392c1662 | [] | no_license | runnerpeople/ask_me | 3811dd3a0fabd2742b18be36cbb42abed9a7e9a6 | f23e27159faa76b243601cc5611bbaed29dffe62 | refs/heads/master | 2021-01-14T09:53:35.685718 | 2017-04-15T04:14:22 | 2017-04-15T04:14:22 | 55,893,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | """
Django settings for ask_george project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | [
"gosha8352@gmail.com"
] | gosha8352@gmail.com |
af2ad26699a04bbb82d6f84c88926605e042bccc | 1c0a6c622e557242c8ffed553f7c4574c0501c5c | /website/content/migrations/0010_pagehistory.py | f72b2cd80a3a5eff85a1427fedb2fe544a1eac3a | [] | no_license | darktrojan/newwebsite | 87e427271cc37ccf32a865cf61c3b14137f85c2d | 3f3cc82ed1cd85351b4c22c727d61de1f40dc170 | refs/heads/master | 2021-09-08T04:10:43.843792 | 2020-02-29T08:49:06 | 2020-02-29T08:49:06 | 65,810,291 | 0 | 0 | null | 2021-09-07T23:51:21 | 2016-08-16T10:13:31 | Python | UTF-8 | Python | false | false | 923 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-12-13 09:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('content', '0009_auto_20161028_1355'),
]
operations =... | [
"geoff@darktrojan.net"
] | geoff@darktrojan.net |
688d8331f0dcd23bca7d711c380b7017f2f86df7 | 1dd25586e772d0fb1848254506e2d0ecb75cce58 | /exec.py | 4805e1308f721bd2fe7b8292f6a22802f35aec76 | [] | no_license | johannschwabe/ReinforcementLearningAuctions | bee5d85822789143ff74153b9f641e650d470bf0 | 01ed4379b53ce046ff36300383820b2176b75e6f | refs/heads/master | 2023-05-10T02:22:19.333515 | 2021-05-27T23:22:41 | 2021-05-27T23:22:41 | 365,588,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | import ray
from ray.rllib.agents.dqn import DQNTrainer
from ray import tune
from English import EnlishAuction
def get_rllib_config(seeds, debug=False, stop_iters=200):
stop_config = {
"training_iteration": 2 if debug else stop_iters,
}
env_config = {
"agents": [0, 1]
}
mock = Enli... | [
"johann.schwabe@uzh.ch"
] | johann.schwabe@uzh.ch |
901952d5514c6487f0aa494b7447464a828ba7c8 | 6c08bbd5e3c1d3f7ed32871dda8c3d7c985fc060 | /part4/nn_bank.py | 027e1d4ea0bad7bfffebc6abc43eececb48f7952 | [] | no_license | matrharr/machine-learning-p3 | cddafd69235013583f14ee95de58b031df10e9ab | 9ddf292b2a50eee5c15e95fc8891d6d63855a986 | refs/heads/master | 2023-03-29T07:59:26.365098 | 2021-04-04T23:55:11 | 2021-04-04T23:55:11 | 353,540,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,385 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from data.load_data import load_bankrupt_data
from visualize.plot_graphs import plot_learning_curve
from metrics import get_metrics
from sklearn.neural_network import MLPClassifier
from sklearn.model_selection import StratifiedShuffleSplit, train_t... | [
"mattharris@Matts-MBP.attlocal.net"
] | mattharris@Matts-MBP.attlocal.net |
db604c59ed67ae9680c1fe9108853daaf57af74b | 3d5958a79c02fe885324956bfead037999c73c7a | /trimesh/io/stl.py | 32912d8f687bcee9809cc8e06c6380fe138bfba6 | [
"MIT"
] | permissive | Mambix/trimesh | def56d14994076cfcc24e3c3d67d5e27bea5bb49 | 99d01909a1f4cf56d777a8339a6c2443cf37d6b8 | refs/heads/master | 2020-05-27T21:20:11.800221 | 2017-03-02T00:57:53 | 2017-03-02T00:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | import numpy as np
# the exception raised if an STL file object doesn't match its header
class HeaderError(Exception):
pass
# define a numpy datatype for the data section of a binary STL file
_stl_dtype = np.dtype([('normals', np.float32, (3)),
('vertices', np.float32, (3, 3)),
... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
61e48abe334105460efcb2031129f67e2050a297 | 2a718238004855786b86143acb429ec0af8cd3df | /zugdaten/summaries/visualize_summaries.py | ae1c5fb423ef7ffd1e8604550f505fefc0ffaf65 | [
"Apache-2.0"
] | permissive | socialdistancingdashboard/virushack | 6b6c917474e035581e199a0744ba09765eca6121 | 6ef69d26c5719d0bf257f4594ed2488dd73cdc40 | refs/heads/master | 2022-12-11T22:34:26.961692 | 2021-04-18T12:36:42 | 2021-04-18T12:36:42 | 248,879,637 | 29 | 13 | Apache-2.0 | 2022-12-08T03:51:14 | 2020-03-21T00:39:25 | HTML | UTF-8 | Python | false | false | 941 | py | from matplotlib import pyplot as plt
import os
import pandas as pd
from datetime import datetime
os.chdir(os.path.dirname(__file__))
dir, folders, files = next(os.walk("data"))
master = pd.DataFrame()
for f in folders:
print(f)
path = os.path.join(dir, f, f + ".json")
df = pd.read_json(path)
df = df.reset_ind... | [
"parzival@trio.li"
] | parzival@trio.li |
96e8c5c0de2d305c63d6d23a0b1aaeb507e67ff8 | ddd7d37f3a98b508e16f27978bf788fc61358225 | /wsgi.py | 06b4bc7a115d792c6e0690fac47c8d93e9c07d3e | [] | no_license | nbh847/bbs_practice | b124e59b86b8fb65b2e5ee34b8e7065a05bcee41 | 21946cbf27a34028a53144a2c202d763fda6ee21 | refs/heads/master | 2020-03-28T19:20:31.590484 | 2018-10-24T14:15:40 | 2018-10-24T14:15:40 | 148,966,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python3
import sys
from os.path import abspath
from os.path import dirname
# 设置当前目录为工作目录
sys.path.insert(0, abspath(dirname(__file__)))
# 引入 app.py
import app
# 必须有一个叫做 application 的变量
# gunicorn 就要这个变量
# 这个变量的值必须是 Flask 实例
# 这是规定的套路(协议)
application = app.app
# 这是把代码部署到 apache gunicorn nginx 后面的套路
"... | [
"binhui.ni@yourdream.cc"
] | binhui.ni@yourdream.cc |
480d9a66e2a6c4e56d92084f3b27f5626c89d12a | f9b5c37a098ed940d943415aadda130c13271754 | /dailyfresh/f_goods/migrations/0003_auto_20180619_2120.py | 47da203ab64800d2950a865ce0879526e9bf7ef2 | [] | no_license | duanHongPy/django | cd00fe819576741a7c1860ea420275129d759d67 | 3fee019b3d8d50218410366d62eac29700f9e69a | refs/heads/master | 2020-03-19T23:28:01.420061 | 2018-06-21T02:53:19 | 2018-06-21T02:53:19 | 137,007,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-19 13:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('f_goods', '0002_auto_20180619_1910'),
]
operations = [
migrations.RemoveFi... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
a2f936bfeb591ecfa923f0eca1b3550b486fba01 | 5553454020f1a9f277d05424d53ce4b4020e8b5c | /WSOL_CUB/utils_adl/util_bbox.py | dc1bdbee6cfce73c2ed7d1451592d6a85d5e70b8 | [] | no_license | anon-conference/Attributional-Robustness | 7a84832bb0b5dc3a8d822e691a4b069c2cfcb1fa | 003f4f3fb01baa715e33ca03240eb2b4ea6bf2f8 | refs/heads/master | 2020-09-15T03:32:43.844447 | 2019-11-23T05:11:39 | 2019-11-23T05:11:39 | 223,338,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,477 | py | import os
import numpy as np
import torch
import torchvision.transforms as transforms
from utils_adl.dataset_cub import CUBCamDataset, get_image_name
import cv2
def load_image_size(dataset_path='datalist'):
image_sizes = {}
with open(os.path.join(dataset_path, 'sizes.txt')) as f:
for each_line in f:
... | [
"Fruits@org"
] | Fruits@org |
1c6026e1dbb38669cf355d1ec7f80ae280b72c1f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_wagering.py | 3ad88745da9973ac13e723d2d10defa24d8be66f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
from xai.brain.wordbase.nouns._wager import _WAGER
#calss header
class _WAGERING(_WAGER, ):
def __init__(self,):
_WAGER.__init__(self)
self.name = "WAGERING"
self.specie = 'nouns'
self.basic = "wager"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d3d1454a1e0b0444fc496dc034dc9ede20336aa2 | 98f92376ac0ad80c2970fa3e012649f3a12bf064 | /www/apis.py | b80488a0d5dfc337239d912efa0d2769cfe2af61 | [] | no_license | yuist/awesome-python3-webapp | 6adac8617390cf99f2d6a6e49b54a1559546ee45 | d29d69883a7606005927706ca5ef0f843b79985a | refs/heads/master | 2021-04-15T04:39:42.228713 | 2016-06-27T15:05:13 | 2016-06-27T15:05:13 | 61,437,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | '''
JSON API definition.
'''
import json, logging, inspect, functools
class APIError(Exception):
'''
the base APIError which contains error(required), data(optional) and message(optional).
'''
def __init__(self, error, data='', message=''):
super(APIError, self).__init__(message)
self.error = error
self.da... | [
"heygz@outlook.com"
] | heygz@outlook.com |
8476d62e077536784330e0340da0fcce7fc8fbfa | 6dfc3af11a91d6e3c101f2cb655d222726170e71 | /pilotbid/migrations/0001_initial.py | a82a900cee90458a123818797d75b6b6153f3f53 | [] | no_license | seanburnz/swgpilotbid | 01fc83b8cf5a0d0020ce60f08e95d8cb826d7d26 | 1a5c60470ba8145b7b4be0326badf1dd90239ac8 | refs/heads/master | 2020-12-31T04:28:29.616313 | 2016-04-12T19:33:57 | 2016-04-12T19:33:57 | 56,021,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,826 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-12 15:40
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import pilotbid.models
class Migration(migrations.Migration):
initial = True
dependencies =... | [
"seanburns@hotmail.com"
] | seanburns@hotmail.com |
10826105a478e6312b9da273daa7f2c97b1a5c11 | a49c14369d9fd263f77a93830cd47d40ce08461a | /venv/Scripts/django-admin.py | 616bd45f104f1da23a9899ed33d1e8364912260a | [] | no_license | VladyslavKharchenko/coursework-2 | 6a89593b90ccc23f6f553d9fe725b54740a50b35 | 224491872d0b548fd1c2ea4689fde6ceccbe13e6 | refs/heads/master | 2022-02-28T23:09:44.634671 | 2019-11-19T00:30:47 | 2019-11-19T00:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | #!E:\Million\projects\PycharmProjects\coursework\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"h1n1.exe@gmail.com"
] | h1n1.exe@gmail.com |
dcf5faa2519dcf69ad7466317ad70a8daf665e55 | 4b28807c62ae456e26503493423c775fca315a66 | /backend/api/views/image_views.py | 9633e23470e5aa878e09ce2c94c8d3ad0480315f | [] | no_license | doohong91/ocr-project | fedbdf1158d972f32a747788661b0968735bfcbb | 22188f100df8414610c91b9eac98e15b6e746207 | refs/heads/master | 2023-02-20T18:57:19.654477 | 2020-08-23T08:57:22 | 2020-08-23T08:57:22 | 288,961,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from rest_framework.viewsets import ModelViewSet
from api.models import Image
from api.serializers import ImageSerializer
class ImageViewSet(ModelViewSet):
queryset = Image.objects.all()
serializer_class = ImageSerializer
| [
"doohong91@gmail.com"
] | doohong91@gmail.com |
47d6438fc39b3dc54f0f67e58b6c3bf2e0d5d439 | e7b6d3fc8665af1c7030316765d24da5e3986e29 | /utils/wdb.py | 877b061964204a1ec323b2cb86a9fc77c1c831e9 | [
"MIT"
] | permissive | convexy/pyutils | 9f3406a611835a49f0e05d6b4181476a74aad0a3 | a3d972f358f7f7ea5dfa0f49274e703ad2a66cb8 | refs/heads/master | 2022-12-19T17:03:48.139964 | 2020-10-17T05:13:16 | 2020-10-17T05:13:16 | 297,640,773 | 0 | 1 | MIT | 2020-10-17T05:13:18 | 2020-09-22T12:24:56 | Python | UTF-8 | Python | false | false | 2,051 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Module : utils.wdb
Function : DB接続クラス(MySQL)
How to use : from utils.wdb import WDB
with WDB() as wdb:
wdb.addQuery(...)
wdb.addParam(...)
wdb.execute()
Author : K.Shibuya
Version : 2020/... | [
"shibuya.keigo@gmail.com"
] | shibuya.keigo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.