blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82499eb923a32ad19aeec1efd231f9c15b47ec86 | 62e7db04e60e07a6def7bc7e32e17d381ef0fa44 | /test/test_unpack_status.py | 712bddc93c308d9e45d7cfcafdaf90bb79d08937 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kryptoslogic/unpacme-python | 0e830cb44fb137bd076f4100da736b929c8cd30b | 86529853f24ed00afa7e90b87fa64104dfc68dfe | refs/heads/master | 2023-02-26T16:17:57.047693 | 2021-02-02T14:23:47 | 2021-02-02T14:23:47 | 335,313,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | """
UnpacMe
# Introduction Welcome to the UNPACME API! All the malware unpacking and file analysis features that you are familiar with on the [unpac.me](https://www.unpac.me/) website are available through our API. You can easily integrate our unpacker into your malware analysis pipeline and begin unpacking a... | [
"jamieh@kryptoslogic.com"
] | jamieh@kryptoslogic.com |
3d613b080afe7af474f8504d12bf40d8034710ab | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryTree2_20200615152326.py | 64f23d35b04053fcbead026e6e8a6c7c2d94f816 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Create a node and assign a value to the node
class Node:
def __init__(self,data):
# designate one node as root
self.data = data
# then the two others as child nodes
self.left = None
self.right = None
# A
def printTree(self):
print(self.data)
root = Nod... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
50ac7fee9fba9158cdaa1d59c98b29131acafa31 | 234c0ce6a3c867b882f5aa6c8eb260f1a48c70ac | /mysite/blog/migrations/0003_auto_20190304_1654.py | 542615bc94cb88de9e5182da038b20998688ab20 | [] | no_license | mubarakmaddy/MySite | b32e064f3d09a1d2898f6e0cb07f316ab1436079 | 5650a8c108e2cabf990a8e0cfd2e66b69d68d839 | refs/heads/master | 2020-04-23T21:46:11.204773 | 2019-06-27T09:02:22 | 2019-06-27T09:02:22 | 171,480,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # Generated by Django 2.1.7 on 2019-03-04 11:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"mubarakalis1@gmail.com"
] | mubarakalis1@gmail.com |
4c8316dcfdb30ccba4b2ac6a9c266ca950e5db88 | 7ad63f456925594105573cdf3eebdf719b19a1e1 | /python/code_challenges/hashmap-repeated-word/hashmap_repeated_word/hashmap_repeated_word.py | c3099cd4b8bf4706efd1eea98ff4b79ab93fcd6b | [] | no_license | laithfayizhussein/data-structures-and-algorithm | 18425437b238a9fe1060daec13d3c6aa378093d4 | c0ef81bc7e0aa04627d0b2a08a2070fbb3b01b65 | refs/heads/master | 2023-08-03T15:29:52.697073 | 2021-09-14T14:47:10 | 2021-09-14T14:47:10 | 373,604,346 | 1 | 0 | null | 2021-09-14T14:47:12 | 2021-06-03T18:25:08 | JavaScript | UTF-8 | Python | false | false | 2,196 | py | import re
class Node:
def __init__(self, data):
self.data=data
self.next=None
class LinkedList:
def __init__(self):
self.head=None
def add(self, data):
node=Node(data)
if not self.head:
self.head=node
else:
current=self.head
... | [
"laithalsanory9919@gmail.com"
] | laithalsanory9919@gmail.com |
4db3e4c30c7da93ef32b7bb65f05b44b0b744e49 | 416ad9ba952c563b9600c040d72d4bea8c6ac926 | /src/lstm.py | 380ce67a2254f609e2192219a0070e0440e8661c | [] | no_license | bokutotu/Simulate | 3d990d75666abec8e5c07a90d8d4720137f95c7d | a95826127df4ffdcbbf2ccbadea8262aa84ccdd5 | refs/heads/main | 2023-06-21T01:04:19.079336 | 2021-07-20T13:30:54 | 2021-07-20T13:30:54 | 387,800,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,441 | py | import numpy as np
import torch
import leapfrog
import preprocess
class LSTMLeapFrog(leapfrog.LeapFrog):
def __init__(self, sim_len, atom_num, norm,
chainlen_c, floatlen_c, chainlen_v, floatlen_v,
coord, velocity, force,
net_n, net_ca, net_c, net_o,
feature_len, n... | [
"mushin.hudoushin@gmail.com"
] | mushin.hudoushin@gmail.com |
b8c56deb337421b8e05a8a70c59c71923d4bf996 | 9039db1d63664122ac65176b1159d61eccc1ec61 | /cables/models/__init__.py | 1b560f4780f9466098aae59bf3a22d20f298f283 | [] | no_license | yjacolin/Avifaune-Cables_aeriens | 8e28594c0a9b58084f3371e77ec49ed11d879a78 | 273b95be496d1b37163a40c4e2a92b60b733b903 | refs/heads/master | 2020-03-22T07:41:44.926554 | 2018-07-04T11:58:37 | 2018-07-04T11:58:37 | 139,718,598 | 0 | 0 | null | 2018-07-04T12:22:56 | 2018-07-04T12:22:55 | null | UTF-8 | Python | false | false | 28,487 | py | #-*- coding: utf-8 -*-
import logging
import sqlahelper
from sqlalchemy import BigInteger, Boolean, CheckConstraint, Column, Date, DateTime, Float, ForeignKey, Index, Integer, String, Table, Text, text, Unicode
from sqlalchemy.sql.sqltypes import NullType
from sqlalchemy.orm import relationship, mapper
from sqlalchemy... | [
"antoine@abt.im"
] | antoine@abt.im |
6e0ae3e9c859c2ff133011147002083abb1e1ecf | 6dfb7fe44b6c5bfb7feb5a101656e3d3402a621f | /simp_py_examples/course/S1800/t105.py | 14b64f55e86d1ce9d76af5b273b6ada48bd93378 | [
"MIT"
] | permissive | kcfkwok2003/Simp_py | 11d6813fac83ab6309eb8efc22fcd8edde5b19b8 | f75e66da01b45dc8688dda602f8b33d4258f0c31 | refs/heads/master | 2021-05-11T00:36:36.872754 | 2018-12-19T01:41:15 | 2018-12-19T01:41:15 | 118,306,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from simp_py import tft
lcd = tft.tft
lcd.clear()
import time
cnt=10
while cnt >=0:
lcd.text(10,10, 'count: %s ' % cnt)
cnt -=1
time.sleep(1)
| [
"kcfkwok@gmail.com"
] | kcfkwok@gmail.com |
d02fb0c15d67504305264787a3321d77fe9822f8 | 068ac6386ff76431e308b7d7b69d8f8c8ae4f724 | /jmj/wsgi.py | bccbd5fdc6024710a40b741290eb0bce529d8b94 | [] | no_license | Cesarcalles1/proyecto | 67cf0a618e34c728bcf51ec54015170446997ba4 | 6417126c57ace7854b25ad5a042e8080bbd52f82 | refs/heads/master | 2021-05-04T05:30:38.363080 | 2018-02-05T16:58:47 | 2018-02-05T16:58:47 | 120,339,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for jmj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"ridiazx@gmail.com"
] | ridiazx@gmail.com |
bfc47b482deb0ccf1f3e645d49665369758987ff | 3a3e823f6b94b7eae8a363b0b51b036d2b0a1669 | /metvae/dataset/biom.py | aa3196a0a38243f360389493a4983f3f36972811 | [] | no_license | mortonjt/metvae | 8a28bbbd72ee79d66992bd31bd82af65b83ea819 | f2f241fdedd2f4c045a088727df1f155b9ce9a20 | refs/heads/main | 2022-12-31T16:24:26.014394 | 2020-10-20T23:38:50 | 2020-10-20T23:38:50 | 305,812,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | import os
import re
import biom
import math
import logging
import numpy as np
import pandas as pd
import torch
from torch.utils.data import Dataset
from typing import List
logger = logging.getLogger(__name__)
class BiomDataset(Dataset):
"""Loads a `.biom` file.
Parameters
----------
filename : Path... | [
"jamietmorton@gmail.com"
] | jamietmorton@gmail.com |
a5da3fc38c2b91b2122f0fd2cb7e5d2e1f764ad9 | 9dc3ae479c1b5c6941681917151fcb0379f9173d | /CanvasFeatureFlag.py | 7a8e37d3b28a61f52fb91ba58b6f1eb53cf1381a | [] | no_license | cthacker-udel/Python-Canvas-API-Wrapper | bf2400b42b644791f45bbda7ed42e2c03a8d97b2 | 0263c591a2b02197529559346558b9be02f592c3 | refs/heads/master | 2023-08-25T12:01:48.417204 | 2021-10-09T10:49:51 | 2021-10-09T10:49:51 | 388,362,237 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from CanvasClient import CanvasClient
class CanvasFeatureFlags(CanvasClient):
def __init__(self):
self.course_id = None
self.account_id = None
self.user_id = None
self.feature_id = None
self.state = None
def generate_queries(self):
body = {}
if self... | [
"cthacker@udel.edu"
] | cthacker@udel.edu |
c946ebf65e15dab1f0d9b98fff4d00ee381324a6 | 2dfc7642e778390b89a40413dbb64f2930b50ceb | /class5-functions_and_loops/problem.py | 496ee84f08f5e1947c5bf45dcafd79373b57a2b6 | [] | no_license | tsui-david/tzu-chi-cs-class | dc740d50fcbdec91ab2be57fa41ebf4bdbc211c2 | b75b567719ad03d46a42bdc671cad26f6f28e777 | refs/heads/main | 2023-03-20T11:37:24.989996 | 2021-03-07T16:20:05 | 2021-03-07T16:20:05 | 307,110,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | """
Last week we created a program that accepts user input for number
and checks for:
(1) If number is odd, print out "odd"
(2) If number is even, print out "even"
"""
input_num = int(input('Input a number: '))
if input_num % 2 == 0:
print("even")
else:
print("odd")
"""
This week I want you to keep asking th... | [
"david.r.tsui@gmail.com"
] | david.r.tsui@gmail.com |
35a7b100287d182cc18bd381c35f0962b21d2a4c | 481f1f66071fc9b9eb8ea88e4df4e5186d99cdab | /cs540_project/settings.py | ed9c788dfa04191afa583308024095f3d3d778dc | [] | no_license | tso2381637/cs540_project | 3cc1cee12095377c16046f666a4ab077bcf08508 | 1803d0ce87465032c8921bec64f0e0dd82c82cd4 | refs/heads/master | 2021-02-11T17:44:48.363496 | 2020-03-13T04:31:10 | 2020-03-13T04:31:10 | 244,514,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | """
Django settings for cs540_project project.
Generated by 'django-admin startproject' using Django 2.2.10.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"tso2381637@gmail.com"
] | tso2381637@gmail.com |
f067595b20bc57e3ed96ec100e0903721aaeea6c | 1e2f1acfee7b707a6cc7cfe0ef48655b2a89fd11 | /smsbomber.py | eef5d18d6c83cb56dad509c85d5c02dd9d39be14 | [] | no_license | bumzy/smsbomber | 4431a07188c78bec7c296dadf37910cbe7e57ae8 | d0c52d7d72b63caf580a505fed359da85dcdc8e4 | refs/heads/master | 2021-06-11T07:11:44.841964 | 2019-06-23T05:00:34 | 2019-06-23T05:00:34 | 193,308,016 | 0 | 0 | null | 2021-06-01T23:50:51 | 2019-06-23T04:57:24 | Python | UTF-8 | Python | false | false | 17,432 | py | # encoding=utf8
import time
from selenium import webdriver
class Bomber(object):
def __init__(self, phone):
self.phone = phone
self.options = webdriver.FirefoxOptions()
self.options.add_argument('--headless') # 后台模式
# 百度
def func0(self):
browser = webdriver.Firefox(firefox_... | [
"bumzycm@gmail.com"
] | bumzycm@gmail.com |
e4d683794d458ed13eab1f94478c4c152a35abfa | c885656dc11b4a0becd6bee5ada7ebb7927d090f | /Fundamentals/phone_directory.py | 5eac7c1f4309d7c64a31b0353cf36690f4ef2652 | [] | no_license | nlpet/codewars | 804da896cd608ae842442098383a8685a809158c | b53a2006a499350d846524f45966dafef035cd71 | refs/heads/master | 2021-06-24T08:55:31.663474 | 2017-07-19T11:09:12 | 2017-07-19T11:09:12 | 83,186,729 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,565 | py | r"""
Phone directory problem on codewars.
John keeps a backup of his old personal phone book as a text file. On each line
of the file he can find the phone number (formated as +X-abc-def-ghijwhere X stands
for one or two digits), the corresponding name between < and > and the address.
Unfortunately everything is mixe... | [
"schottkey@gmail.com"
] | schottkey@gmail.com |
adc3b4f80abdaf533b97d9b62f5538e55b5a821b | 9b90373955433cdfa8806373ff343a471a1adcc1 | /src/algorithms/07-eight-puzzle-game/puzzle.py | 588dfe7e1d947e7edea11228791b0e78357e64c7 | [
"MIT"
] | permissive | SamVanhoutte/python-musings | 0a69f44dc8321792df2a6f57c5821ed52784dcf6 | 18e9b6b366af6c072a5d928f95f30ea88f01f540 | refs/heads/master | 2021-07-25T18:39:59.328235 | 2020-05-18T06:41:08 | 2020-05-18T06:41:08 | 171,827,369 | 0 | 0 | MIT | 2019-12-24T09:05:16 | 2019-02-21T08:03:45 | Jupyter Notebook | UTF-8 | Python | false | false | 5,387 | py | from random import shuffle, choice
import numpy as np
import math
class Puzzle:
board = [[]]
depth = 0
_goal = [[1, 2, 3],[4, 0, 5], [6, 7, 8]]
def __init__(self, signature:str = None):
if(signature!=None):
self.board = np.zeros((3, 3), int)
seq = 0
for row i... | [
"Sam.Vanhoutte@codit.eu"
] | Sam.Vanhoutte@codit.eu |
acbabc06e4dc6b096ab6dffc2dd92e71c90c3e59 | 3a08e9facc8df83f8e8eed4859ef59ee5200aa14 | /rough_trade_calendar/graphql.py | f3894ce294cb936586401b752f32f355cd2302b4 | [
"MIT"
] | permissive | craiga/rough-trade-calendar | c7fe9125949a7ff1ac38acf73d51765ffbed8ad4 | 175c61391a50eaa4ada3dbc062158773cf72d9c0 | refs/heads/main | 2021-11-11T07:50:02.808052 | 2021-08-11T13:07:16 | 2021-08-11T13:07:16 | 194,937,687 | 1 | 1 | MIT | 2021-11-09T08:09:42 | 2019-07-02T21:32:28 | HTML | UTF-8 | Python | false | false | 1,875 | py | """
GraphQL + Relay interface to Rough Trade Calendar data.
"""
import django_filters
import graphene
import graphene.relay
from graphene_django import DjangoObjectType
from graphene_django.filter import DjangoFilterConnectionField
from rough_trade_calendar import models
class CountConnection(graphene.Connection):
... | [
"craiga@craiga.id.au"
] | craiga@craiga.id.au |
1a2f1f8498afde855fe2f89df29272d73550da39 | 100d4ef3ac2d288b45430650730eaff1a0e5fb05 | /Backend/process.py | eaf6e61e7206b9b33d40f2d9ed2f7f4695aeb092 | [] | no_license | billbai0102/SGMT | 107782b862031deaca1ac91e4b225b9199e4eab2 | c8303effc8dfada9e5381b09e17e350c5ca8c094 | refs/heads/main | 2022-12-26T17:35:57.738188 | 2020-10-07T14:37:38 | 2020-10-07T14:37:38 | 300,917,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | import cv2
import torch
import numpy as np
def preprocess_mri(image):
image = cv2.resize(image, (256, 256))
image = torch.tensor(image.astype(np.float32))
image = image.unsqueeze(0)
image = image.permute(0, 3, 1, 2)
return image
def postprocess_mask(mask):
mask = mask.detach()
mask = mask... | [
"31229051+billbai0102@users.noreply.github.com"
] | 31229051+billbai0102@users.noreply.github.com |
15959d749cf76018d3d00dfa9cafa9d7699348b9 | 7e820bcff319b61b0905f6839743155a450d3cfb | /data/scripts/xyf.py | 57902dd0f473723f1289508d0ca1306bffb99c78 | [] | no_license | ShadowLugia650/pokemon-tcg | 6636a12f15ab5f0fe2b4da85056d844651ec6f33 | 333df6e0303acac361140501b4f98f9c45296435 | refs/heads/master | 2022-11-19T23:02:12.657279 | 2020-06-28T04:31:59 | 2020-06-28T04:31:59 | 257,483,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from data.scripts._util import check_energy_cost
def scratch(attacker, defender):
check_energy_cost(attacker, 1)
defender.take_damage(10, attacker)
def tailsmack(attacker, defender):
check_energy_cost(attacker, 2)
defender.take_damage(20, attacker)
| [
"mkwoo@wisc.edu"
] | mkwoo@wisc.edu |
a747f23ed4a39749024d5edcb173888590294a8f | fc220ec70c38972e97a9b549c14262a5ed1aa6a9 | /mac/__init__.py | 8ea3bdb9386d6db6e470175f089de02e8886e1be | [] | no_license | adrienpaysant/hashesAndMACs | adbb1ab869a4a2d14a002ab8dae340473c33f9af | 0454ed8499aa82d06ea713c66bc5d58628249264 | refs/heads/main | 2023-04-17T05:47:52.372755 | 2021-04-29T13:48:32 | 2021-04-29T13:48:32 | 358,198,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from .communication import send_message_digest, get_message_digest, get_message, get_digest, send_message, send_digest
__all__ = [ 'send_message_digest', 'get_message_digest', 'get_message', 'get_digest', 'send_message', 'send_digest'] | [
"edouard.goffinet@he-arc.ch"
] | edouard.goffinet@he-arc.ch |
1d4206c56fddce6446aff8d1c579022e0ed24186 | b3a79effcc09df60100dd28d333b60be99ed75a2 | /app/salaries/migrations/0002_salary.py | 1601ad14a7d51cdf8bfb44c9de34fd1f64744256 | [] | no_license | claytonrm/upsalary-django-project | b4d4e021b280b72bf50b4d08e77b940787622d74 | 6d9de78c189d78a5ce237062a54256b28b82bd60 | refs/heads/master | 2023-08-03T14:42:36.020401 | 2020-07-09T14:37:09 | 2020-07-09T14:37:09 | 265,437,864 | 0 | 0 | null | 2021-09-22T19:02:53 | 2020-05-20T03:19:58 | Python | UTF-8 | Python | false | false | 678 | py | # Generated by Django 3.0.6 on 2020-05-20 18:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('salaries', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Salary',
fields=[
('id', ... | [
"claytonrmendonca@gmail.com"
] | claytonrmendonca@gmail.com |
0efae463197cf4b67c08549dc4459158bc1c5d11 | a3c7c11c607800155457ea1f886e2d84eadd9610 | /examples/3_NeuralNetworks/convolutional_network.py | 17aa1d84f64834e38d5523b130d66d3e697d1ee0 | [
"MIT"
] | permissive | 353622088/CapsNet | eddba478143bd092ce27bd49dbb65c63d80824e4 | 04408978dfccd9a6545fc250648fd2f600974a95 | refs/heads/master | 2021-08-28T02:22:56.958370 | 2017-12-11T03:03:52 | 2017-12-11T03:03:52 | 112,295,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | """ Convolutional Neural Network.
Build and train a convolutional neural network with TensorFlow.
This example is using the MNIST database of handwritten digits
(http://yann.lecun.com/exdb/mnist/)
This example is using TensorFlow layers API, see 'convolutional_network_raw'
example for a raw implementation with varia... | [
"chk0125@126.com"
] | chk0125@126.com |
8f5adc4fc685a863c2fb0e954b71e6b597fbc626 | 0ff5a88f42d5e6179583a3251b892b93cf1f6d0d | /L1/1_3/1_3_stochastic_gradient_descent.py | 0eb1234bf20283ced231ac91396577bf9e55c02c | [] | no_license | kaz-nakazawa/DL_E_report | a6027f6197b061b63fd7cda022ec12dd10b87cf3 | c3f8ed72d04a2c35c5da075ba5747c8f9c1bea84 | refs/heads/master | 2020-06-12T23:49:39.019418 | 2019-07-15T08:29:14 | 2019-07-15T08:29:14 | 194,465,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | # coding: utf-8
# 確率勾配降下法
import sys, os
sys.path.append(os.pardir) # 親ディレクトリのファイルをインポートするための設定
import numpy as np
from common import functions
import matplotlib.pyplot as plt
def print_vec(text, vec):
print("*** " + text + " ***")
print(vec)
#print("shape: " + str(x.shape))
print("")
# サンプルとする関数
#... | [
"noreply@github.com"
] | noreply@github.com |
5b2cb107207f28aa4fb223e5d981c7c6eb002b41 | 8d6dc6024e8aca3ab1e11514f9c36911e5225df2 | /004_Homework/viking_loto.py | 7d5f868e4d9876867d9e0be4d12a83812dad7f71 | [] | no_license | JanaSed/Homeworks | 16bfeecd35eeb853c9e72108c3fb5e5419bb8f8f | efe0de7174385563358c48f5d67da5e05d686e66 | refs/heads/master | 2023-07-04T21:54:21.279882 | 2021-08-16T17:52:28 | 2021-08-16T17:52:28 | 379,962,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | import random
from random import randint
print(random.sample(range(48), 6))
print(random.sample(range(1, 5), 1)) | [
"j.sedasheva@gmail.com"
] | j.sedasheva@gmail.com |
1ac88f58fc4e55c54fef3bbf16f971a05570079f | 90af0a07a800fe88902e5c8c160e39456ecf9f5b | /pydir/daemon-rxcmd.py | 00f98fcc7ad708cdb8461545e3e983acadcf9667 | [
"Apache-2.0"
] | permissive | jmdahling/RxCmd | 8fb1cdc32764947b35416a46e2a0764634784cea | 000375e30f1cee622c188967b8de7874e982fd0d | refs/heads/master | 2021-01-19T19:45:46.878305 | 2017-04-16T19:43:28 | 2017-04-16T19:43:28 | 88,442,730 | 0 | 0 | null | 2017-04-16T21:10:04 | 2017-04-16T21:10:04 | null | UTF-8 | Python | false | false | 1,253 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2016 F Dou<programmingrobotsstudygroup@gmail.com>
# See LICENSE for details.
import bluetooth
import os
import logging
import time
from daemon import runner
class RxCmdDaemon():
def __init__(self):
self.stdin_path = '/dev/null'
# self.stdo... | [
"javatechs@gmail.com"
] | javatechs@gmail.com |
419b271226298b03583d193a10914df6729aeb1c | 137e4fc41341350550106ce897eba9617e34a4d5 | /example_feedback/urls.py | 4a76a819aa393aba1b5d28aa927a76b6b5be0963 | [] | no_license | javierLiarte/django-simple-feedback-1 | 888425d288965ad8ee581d91be12af28ee87d14e | 1aca0df0b9a1773624bfb3d3ba6aa8696d8d239b | refs/heads/master | 2021-01-17T06:56:47.592413 | 2014-10-10T15:42:58 | 2014-10-10T15:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django.conf.urls.defaults import patterns, include, url
from django.views.generic.simple import direct_to_template
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url('^$', direct_to_template, {'template': 'base.html'}),
... | [
"nicolas@kwyk.fr"
] | nicolas@kwyk.fr |
fb9ba2d39a850faee8978b4ef1f593af35a95224 | fd71857adc56fe72bbb3c302a1013e8de8511c50 | /bitcoin/utxo.py | b95630c872cd8cc9007f834a233bda67c0d03e98 | [] | no_license | AbhishekAshokDubey/blockchain_python | a209b5f23e16c5e8b1739a57eecfd95952ed52ae | e64c72420bfe746a87f5255f94a8f4c1cf1a8789 | refs/heads/master | 2020-03-25T14:36:47.942295 | 2018-08-07T11:29:50 | 2018-08-07T11:29:50 | 143,863,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 27 15:44:15 2018
@author: ADubey4
"""
"""Done"""
# http://gerg.ca/blog/post/2012/python-comparison/
# https://docs.python.org/3.5/library/functools.html#functools.total_ordering
from functools import total_ordering
import copy
@total_ordering
class UTXO :
@staticm... | [
"adubey4@slb.com"
] | adubey4@slb.com |
8a8680338eb791a54e04854473d5d7158ca44726 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/pytype/pytype/tools/merge_pyi/test_data/var_annot.comment.py | 8d3907c0a79e522e7a66e1587e8a8ca132b76a38 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fbf532cb3bc3376967d6a665559e5b50273ee6371ee9080fcc2f2d7e3592c2eb
size 156
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
83cef915c5831fa22780de720175e98cce80ccc3 | 3a4f14d6638bc0c12c129ed73c6c3543437203df | /src/morphforgeexamples/multicell_simulation/multicell_simulation010.py | 4e246688646bd3831457507719b3611426692cef | [
"BSD-2-Clause"
] | permissive | unidesigner/morphforge | ef04ccb3877f069a0feea72eb1b44c97930dac44 | 510cd86549b2c2fb19296da2d4408ed8091fb962 | refs/heads/master | 2021-01-15T22:34:28.795355 | 2012-04-05T08:55:12 | 2012-04-05T08:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | """[*] Two cells connected with an AMPA synapse"""
| [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
2c6659fa00d6ac07197690b564d7aac721369d86 | a2fb6bda878d79e4b31d8b3d76d9a2a40dc604ef | /backend/notes/serializers.py | 6388c086796a97dc998df942375fbc474461a86c | [] | no_license | Aruta1ru/budgeter | b3224b68601df29e952d34630d2c5891b3883291 | 672232d1be853a948171825d7b380d8d2e131f94 | refs/heads/master | 2023-03-27T04:01:09.424337 | 2021-03-12T12:27:54 | 2021-03-12T12:27:54 | 346,987,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from rest_framework import serializers
from .models import Category, Note
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields = '__all__'
class NoteSerializer(serializers.ModelSerializer):
class Meta:
model = Note
fields = '__all__'
| [
"djgraf95@gmail.com"
] | djgraf95@gmail.com |
5120c0f875dbadae51d4066d3e76b655e03280e0 | 7c222e4dd6e434ee6a489c0e518744245735cce8 | /hackerspace_site/apps/blog/forms.py | 2858af5dd2f46bae7db8f12edf12ec88d952961e | [] | no_license | HackerSpace-PESU/hackerspace.pes.edu | ad9183eb4421d9c8534d98dbfdcf80069f0b58b3 | 0a45bc9c1ed58eba83d3c5b04f054cd36c7e9fc7 | refs/heads/master | 2023-05-14T00:34:49.590888 | 2021-05-27T09:51:56 | 2021-05-27T09:51:56 | 322,908,540 | 9 | 4 | null | 2021-05-27T09:51:57 | 2020-12-19T18:07:54 | HTML | UTF-8 | Python | false | false | 373 | py | from django.forms import ModelChoiceField, ModelForm
from martor.fields import MartorFormField
from .models import Author, Blog
class NewBlogForm(ModelForm):
author = ModelChoiceField(
queryset=Author.objects.all(),
)
blog_in_markdown = MartorFormField()
class Meta:
model = Blog
... | [
"noreply@github.com"
] | noreply@github.com |
407de71cbc79d7d56529dc074e6ec44af29d49ae | d5a7202c1cd60ab487c4f5367bc9a4bfa3de3440 | /TestBed/src/brain/examples/misc/ring.py | 1aa39dac35d163116bde320f633d1b2500d7e86b | [] | no_license | thanhmaikmt/pjl | 40b202fa8bd513f2103bc82f3b770a1fcdcb4141 | f2fb00f297c63a5211198cd47edce0aacfba6c11 | refs/heads/master | 2021-01-19T09:48:51.301034 | 2014-04-04T18:28:59 | 2014-04-04T18:28:59 | 40,103,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
A ring of integrate-and-fire neurons.
"""
from brian import *
tau = 10 * ms
v0 = 11 * mV
N = 20
w = 1 * mV
ring = NeuronGroup(N, model='dv/dt=(v0-v)/tau : volt', threshold=10 * mV, reset=0 * mV)
W = Connection(ring, ring, 'v')
for i in range(N):
W[i, (i + 1) % N] = w
ring.v = rand(N) * 10 * ... | [
"pauljohnleonard@fadc175c-ebca-11de-a75d-bbceaaa5444e"
] | pauljohnleonard@fadc175c-ebca-11de-a75d-bbceaaa5444e |
4e6c7d73d626383ba1cf1342cec8ceeefd7552ac | e6cc19f280d737e4c37ad499c9c5370ec9079a1f | /project_euler_solutions/problem_9.py | e18867f8541e3b78ce778214acc2cc1a408672a8 | [] | no_license | jdgsmallwood/ProjectEuler | f705611b903d6615894b60c087ee2e74088715c2 | f310421ca82046fdf18f606e8752ed9ce6c8be36 | refs/heads/master | 2023-01-07T16:08:46.165465 | 2020-11-14T00:57:01 | 2020-11-14T00:57:01 | 111,932,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | target = 1000
#We're making an assumption without loss of generality that a < b < c
for a in range(1,1000):
for b in range(a,1000):
c = 1000 - a - b
if a**2 + b**2 == c**2:
if a + b+ c == target:
print('A: %f' % a)
print('B: %f'% b)
print(... | [
"justin.d.smallwood@gmail.com"
] | justin.d.smallwood@gmail.com |
125fd5dd7734d83661f29aaad97899bcd613ff7e | 8b5225609f76dab9afb261654d27074c1ce24d03 | /md_320_2.py | 5effc01ceb3db4260a53eb402c8f3507ef17d65f | [] | no_license | wlstjd2378/python4095 | 27a55db195380b82641cab7cba5fee3ed8aaff83 | 78f45ea30aa3dabd14d5422813092ba8c031c8e3 | refs/heads/master | 2020-05-30T17:49:50.405382 | 2019-06-03T03:18:58 | 2019-06-03T03:18:58 | 189,883,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | import requests
from bs4 import BeautifulSoup
import pandas as pd
url = 'http://apis.data.go.kr/B552061/jaywalking/getRestJaywalking'
queryParams = '?' + 'serviceKey=' + 'nBR6ds%2BFTLtKBfkc9qEKhBBGdZF09DnpkSRWSKTyxiHp%2BRVBtJbWjTQMqvvMb%2FVf0TGceYhCeGyvpHtJAhIlJA%3D%3D' \
+ '&searchYearCd=' + '2017' \
+ '&siD... | [
"noreply@github.com"
] | noreply@github.com |
85a9386cf8f783bd013959909bab9d7614a1d07a | 78aa3c2e1bf95fa1e440f40c0a27273d5f1f6284 | /com.kuta.python.basedata/Tuple.py | 8bc3b8d619a73ec7ac5df3d0d6ecdd51184875d3 | [] | no_license | kutala/HelloPython | c98b2fe1be67b5bbd08a0ada08b875f7ce2075dd | d685a27956aecd01839b05523fe1f2b8b6891296 | refs/heads/master | 2021-01-01T15:30:14.962842 | 2016-11-29T09:38:39 | 2016-11-29T09:38:39 | 40,281,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: UTF-8 -*-
tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )
tinytuple = (123, 'john')
print tuple # 输出完整元组
print tuple[0] # 输出元组的第一个元素
print tuple[1:3] # 输出第二个至第三个的元素
print tuple[2:] # 输出从第三个开始至列表末尾的所有元素
print tinytuple * 2 # 输出元组两次
print tuple + tinytuple # 打印组合的元组 | [
"80011355@qq.com"
] | 80011355@qq.com |
69b82c6e7c1b89da41ffdaf1099f828d16af52f8 | 3f3091436da6e2032949b3c474a663fee188f5d5 | /webempresa/services/migrations/0004_project.py | ce1253050d026a35927123cc36077ac8f0560332 | [] | no_license | juanantoniotora/Curso_DJango2_WebCorporativa_Ejemplo | b9993bc740ee2b47c034938870841d5ee35152e7 | 975acbc0a601206edeb6235588e710c3698a192d | refs/heads/master | 2022-12-07T07:01:50.230314 | 2019-10-10T19:26:00 | 2019-10-10T19:26:00 | 214,251,337 | 0 | 0 | null | 2022-11-22T02:24:23 | 2019-10-10T18:02:07 | Python | UTF-8 | Python | false | false | 1,192 | py | # Generated by Django 2.2.4 on 2019-10-05 18:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('services', '0003_delete_project'),
]
operations = [
migrations.CreateModel(
name='Project',
fiel... | [
"juanantonio.tora@gmail.com"
] | juanantonio.tora@gmail.com |
ed56edac7dcdd5606246aad436c9d852a3f3f40f | 786f34fc2fea4f764d083b2bb3fd75222dfbbac1 | /jobsPortal/jobsPortal/urls.py | df7cc52aa22d588c3e134c6f19a0b5e4a7a1e052 | [] | no_license | shivendra04/DjangoProjects | 6c4ddc58588c7033afa7a1f5a299e33b1afb3897 | d3a190fd47582190f2ad41d8dc4b30b7841cf679 | refs/heads/master | 2022-12-20T00:01:22.524044 | 2020-09-22T08:05:43 | 2020-09-22T08:05:43 | 297,578,265 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | """jobsPortal 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-ba... | [
"52535417+shivendra04@users.noreply.github.com"
] | 52535417+shivendra04@users.noreply.github.com |
b1a8761bb8817603f8a347b24bff02b3180b2855 | 2fc0ae670f7200a7ad936eb1e3c9d56b5ef879df | /create.py | 8931526e88b73d1ab967c5b07648b2e2abae3857 | [] | no_license | alexlesan/python_automatization | 0013c7051c94175bf17dc4ac6203db7e89f1db94 | b6a3a4f9bd1b282dee54f5f6c783f5aa0d23dfa0 | refs/heads/master | 2020-09-11T06:53:54.108793 | 2019-11-15T18:24:03 | 2019-11-15T18:24:03 | 221,979,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | import os, errno, sys, config
import argparse
import subprocess
import time
#parser arguments
parser = argparse.ArgumentParser(description='Create new local project')
parser.add_argument('--name', type=str, help='Name of the project')
parser.add_argument('--open', type=int, nargs='?', const=1, help='Open the editor wi... | [
"alex.lesan@gmail.com"
] | alex.lesan@gmail.com |
88f37dcfa3636c5a91c3546ae84c383167f931e2 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_adobe_cq_social_commons_emailreply_impl_custom_email_client_provider_properties.py | 4d9bc47c42da303a7c969c543512bee62080c310 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 4,134 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.config_node_property_array import ConfigNodePropertyArray # noqa: F401,E501
from openapi... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
b24e6f5f4ec62487169653f0ea11233511822384 | 84baad5eae2bd1adb53e71429b17dcb7198e27ab | /keystone/keystone/cli.py | 81fb2af4b2312a5fe763f8a695af31348765835c | [
"Apache-2.0"
] | permissive | bopopescu/x7_dep | 396812eb50f431ab776bc63b8fce5f10f091d221 | 9a216e6fa3abdba1f63f9d36a4947c2a27de2bb7 | refs/heads/master | 2022-11-21T20:06:02.235330 | 2012-11-14T15:25:39 | 2012-11-14T15:25:39 | 282,193,462 | 0 | 0 | null | 2020-07-24T10:42:38 | 2020-07-24T10:42:38 | null | UTF-8 | Python | false | false | 4,124 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack 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 requ... | [
"c@c-Latitude-E6410.(none)"
] | c@c-Latitude-E6410.(none) |
0d35174dbee1362ac380bf5e44b079d867cc538d | 33ccdaa6293162511c4ad74284f69b2bd6451044 | /pyscutils/scvi_utils.py | 047d3b60725774029d64a5f1cef0c6622d33e66e | [
"BSD-3-Clause"
] | permissive | saketkc/pyscutils | f3f9199f0c2e3954dc79369b99f4612acd9cf0c2 | 282a6cc707deaee80ab8ebc5596d25b9e21d6ffb | refs/heads/master | 2023-01-23T02:26:28.599751 | 2020-11-19T00:31:07 | 2020-11-19T00:31:07 | 297,775,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,655 | py | import os
import warnings
warnings.simplefilter("ignore")
import shutil
from typing import Dict, Iterable, List, Tuple
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import proplot
import scanpy as sc
import scvi
import seaborn as sns
import torch
import torch.nn as nn
from adjustText import a... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
f5901347ae2393fbd28a0397052a34725ea59268 | a1333f0e6b594eda043922363734b0e9e7e65b0e | /Pi sender/sender.py | affb768b4876f887e32a097da8ba6ad0f6c1c4ab | [] | no_license | Kartikkh/Communication-between-Rpi-and-arduino- | 65cb1b50871b73c8fc33c7f8b9bb4c287db09d22 | 0e961b2ba408bf1171dc3ff798f255ab99d444b2 | refs/heads/master | 2021-01-19T14:53:37.537722 | 2017-04-13T19:01:47 | 2017-04-13T19:01:47 | 88,194,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import RPi.GPIO as GPIO
from lib_nrf24 import NRF24
import time
import spidev
GPIO.setmode(GPIO.BCM)
pipes = [[0xE8 , 0xE8 , 0xF0 , 0xF0 , 0xE1] , [0xF0 ,0xF0, 0xF0, 0xF0, 0xE1]]
radio = NRF24(GPIO,spidev.SpiDev())
radio.begin(0,17)
radio.setPayloadSize(32)
radio.setChannel(0x76)
radio.setDataRate(NRF24.BR_1MBPS... | [
"khandelwal.kartik4gmail.comkhandelwal.kartik4gmail.com"
] | khandelwal.kartik4gmail.comkhandelwal.kartik4gmail.com |
8e4033741ac16a69170a9bfaf0ba7158c207ddc2 | d0cf8b68b68e33900544dc056566511428692b71 | /tests/spoof/gs_feature_elision.py | c2aabeb4d4d1e9b78fab46632764e38d376bfe25 | [
"MIT"
] | permissive | ryanfb/OCRmyPDF | 3f1547c164d3b74b5e6c003bb875e50c292b36a4 | f6a4d8f1f808a1c963c85e498a773ef0439db5ed | refs/heads/master | 2021-01-21T04:25:00.603736 | 2017-08-27T20:53:36 | 2017-08-27T20:53:36 | 101,911,301 | 1 | 0 | null | 2017-08-30T17:44:15 | 2017-08-30T17:44:15 | null | UTF-8 | Python | false | false | 800 | py | #!/usr/bin/env python3
# © 2016 James R. Barlow: github.com/jbarlow83
import sys
import os
from subprocess import check_call
"""Replicate one type of Ghostscript feature elision warning during
PDF/A creation."""
def real_ghostscript(argv):
gs_args = ['gs'] + argv[1:]
os.execvp("gs", gs_args)
return # N... | [
"jim@purplerock.ca"
] | jim@purplerock.ca |
c5a2686d19b0f3755d88a674ad24192b5c02286a | 19a3c90ce8873d8f9fa7498b64597ee6fe5b767b | /simplemes/uwip/apps.py | 1db1524788524f91f0e65aafa0dfc46f57aabdcf | [
"MIT"
] | permissive | saulshao/simplemes | 5eff2730b95c0de1c9a51e70d9ebf1ebab59ff2c | fb317570666f776231c1ffd48c6114b9697e47f1 | refs/heads/master | 2020-07-26T13:00:46.494089 | 2020-03-12T08:26:42 | 2020-03-12T08:26:42 | 208,651,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class UwipConfig(AppConfig):
name = 'uwip'
| [
"saulshao@yahoo.com"
] | saulshao@yahoo.com |
a49e1855d4a2718fa0f9f0145c2892c9d810d1b8 | 6a8d994c73983de88a60ba8278ecb3f87ab98679 | /BONJI_store/views.py | 736d151984c759634778278d9ef5d1c5fef4550c | [] | no_license | dberehovets/BONJI_store | 5d12dd8c062c086b3b6ae1f6d53ce4458ecb3621 | 33701e028ed9b94a5604b663ba446a440e8e813d | refs/heads/master | 2021-04-23T21:39:51.178910 | 2020-04-21T13:02:13 | 2020-04-21T13:02:13 | 250,011,659 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | from django.views.generic import TemplateView, ListView
from django.shortcuts import redirect, render
from django.http import HttpResponseRedirect
from django.core.paginator import Paginator
from accounts.forms import SubscriberForm
from accounts.models import Subscriber
from products.models import Product
from djan... | [
"58703014+dberehovets@users.noreply.github.com"
] | 58703014+dberehovets@users.noreply.github.com |
448a496d6cf183fe73cf62e90b39b8f5e925a6f8 | cc1d44cf04e5b2b15bb296a434aad4ae4bcfc4be | /python3/qr/zbarlight_test.py | 5944e63c9ba7fb774948ce49dce2fe4de1a416f1 | [] | no_license | ericosur/ericosur-snippet | dda2200546b13fb9b84632d115a0f4ca5e3d5c47 | 0309eeb614612f9a35843e2f45f4080ae03eaa81 | refs/heads/main | 2023-08-08T04:54:05.907435 | 2023-07-25T06:04:01 | 2023-07-25T06:04:01 | 23,057,196 | 2 | 1 | null | 2022-08-31T09:55:19 | 2014-08-18T03:18:52 | Perl | UTF-8 | Python | false | false | 864 | py | #!/usr/bin/env python3
# coding: utf-8
'''
apt-get install libzbar-dev
pip install zbarlight
I do not recomment use this module to decode qrcode.
'''
import sys
from PIL import Image
import common
try:
import zbarlight
except ImportError:
print('need to install zbarligt (python) and libzbar-dev')
sys.exi... | [
"ericosur@gmail.com"
] | ericosur@gmail.com |
fa634099a27ded13c1952c58524029bb04dfce23 | 41986b7a1b95784f0a6256ae24d5942c70ced4d7 | /prod/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/container/v1alpha1/container_v1alpha1_messages.py | 49c00a4745dfa8067e647185d258367759f8dcfb | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wakabayashi-seiya/terraform_gcp | ed829a5a21d5d19d6663804ee5d5f7f3d23b4ec4 | f757e56779f33c2fabd8a8eed9c51ff0b897a38f | refs/heads/master | 2021-07-07T21:51:35.993317 | 2020-03-11T05:42:57 | 2020-03-11T05:42:57 | 239,411,772 | 0 | 1 | null | 2021-04-30T21:05:04 | 2020-02-10T02:32:04 | Python | UTF-8 | Python | false | false | 175,511 | py | """Generated message classes for container version v1alpha1.
Builds and manages container-based applications, powered by the open source
Kubernetes technology.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py im... | [
"e1517234@soka-u.jp"
] | e1517234@soka-u.jp |
d8595f38931efaebad9121c07fafd55b564816a1 | 8be96a7791e50165b8849e69b1cf6a04869f2400 | /run.py | 58b06c7a845124aa433ff1a33ae2569c92e3b3e8 | [] | no_license | nosoccus/department-app | 458b38387571d7dead37ff87b8dfda91cd0717fb | f822d1e05db5d869ab583a3a93e9e58d9100022a | refs/heads/main | 2023-01-29T18:42:37.975524 | 2020-12-14T23:26:56 | 2020-12-14T23:26:56 | 317,921,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | import app
if __name__ == "__main__":
app.create_app().run(debug=True)
| [
"rostyk.holoven@gmail.com"
] | rostyk.holoven@gmail.com |
c93c5ccd6c588a6c7f2b024b62acc6badd12163b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HDGiiCmSgJeeu3388_19.py | 09b87a15f58f460743f3b6ef6eaacc88c698ba44 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | """
A fuse melts when a current in an electrical device exceeds the fuse's rating,
breaking the circuit and preventing the heat from building up too much (which
can cause a fire). The ideal fuse to choose is **higher** than the device's
current output, yet **as close as possible** to it as well.
Given a list of _fu... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
75398d6fb05ae07bc21020d5bd77276beee18c18 | 66a82eb045bd14d45163a76c61ad2bfe2f9d03ab | /EjBasicosPython/Ej9_Diccionario.py | 5146a9bd79f6a9db005a42464bdefde5a83d80a1 | [
"MIT"
] | permissive | alexiscv/DAM2_SGE | c53da5fdeb0a7bcc69bf3f1f2aa929e03a62a04c | aa7371262e869becca51e5352a0e46c16a997f58 | refs/heads/master | 2021-01-24T12:23:26.714885 | 2018-02-28T00:12:10 | 2018-02-28T00:12:10 | 123,134,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # Creamos un diccionario
d = {}
# Mostrar menú
def menu() :
print("## MENÚ ##")
print("1) Añadir término")
print("2) Buscar definición")
print("0) Salir")
print("Que desea hacer:")
opcion = int(input())
return opcion;
# Mostramos la primera vez el menú
# y recogemos la opción seleccionada... | [
"hogo.jp@gmail.com"
] | hogo.jp@gmail.com |
794d7b71c405e3df9b2868475614e966c73424c3 | d6a752aefedf14439236017f2de98e5d40823f57 | /bb2-07-05-face.py | b5cb5a5b17b2af28c03e731f69654c3e271a7e43 | [] | no_license | norihisayamada/opencv_bluebacks | 918b243f178f4170f64a181e5d7dca262d6b85b4 | df2cfadadc3f7a66eeb9784aa9427aa5cacd61b5 | refs/heads/master | 2022-11-12T02:10:09.345084 | 2020-07-10T03:02:36 | 2020-07-10T03:02:36 | 278,521,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | # -*- coding: utf-8 -*-
import picamera
import picamera.array
import cv2
cascade_path = "/usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml"
cascade = cv2.CascadeClassifier(cascade_path)
with picamera.PiCamera() as camera:
with picamera.array.PiRGBArray(camera) as stream:
camera.resolution = ... | [
"sus444norihisa@gmail.com"
] | sus444norihisa@gmail.com |
d6b7f74c1a8958d8c0d2b441c408b1a559b1d5a0 | 1d21b7bc9205c9c2acd8b8fd8ee75dec93e974d4 | /qa/rpc-tests/p2p-acceptblock.py | db03aff39949a8e3e99ec7b3f0a24f9f5da34678 | [
"MIT"
] | permissive | ZioFabry/LINC2 | 494d12be6034b7f5999960e3f3ed62f154be7ab8 | a2e0e06cf68771a82bb1d4da30e0c914c8589bbe | refs/heads/master | 2020-05-22T18:28:27.590171 | 2019-05-13T19:51:49 | 2019-05-13T19:51:49 | 186,471,965 | 0 | 0 | MIT | 2019-05-13T18:10:28 | 2019-05-13T18:10:27 | null | UTF-8 | Python | false | false | 12,328 | py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import time
from... | [
"root@vultr.guest"
] | root@vultr.guest |
7b677664e2d8c491d59f10a622c3e9d6b0b04b4f | 65e94640b9838d627c0781cab4317858baadc914 | /item/migrations/0001_initial.py | 66445d68eb8afc07d45352a4ba0ad90a0d637ee0 | [] | no_license | Acc-Zidan/airbnb4 | ccfc2a3b098f5906ef2c0187ac7ef89e98552af9 | 1e74f3b9a9b9aa7fb2ae1c055128d549067a4abc | refs/heads/main | 2023-03-01T21:01:19.318547 | 2021-02-09T18:34:42 | 2021-02-09T18:34:42 | 328,228,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,710 | py | # Generated by Django 3.1.5 on 2021-01-22 19:20
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
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"ahmedzidan858@gmail.com"
] | ahmedzidan858@gmail.com |
80fa29ace4588b9060f696b19bc728f82cbc9939 | 149b139871110353d5ec5a34cd99b2d9b03233e0 | /backend/br/jus/tredf/analysis/backend/model/models.py | 674f5f5e1615ce32588de17c4b92c3b40dda580e | [] | no_license | alisonsilva/python | ca9a99700086d724605d286f05045b40713c9b07 | de7b31e2279c081750e8ad13b04816e122ff253b | refs/heads/master | 2020-03-07T19:14:17.802736 | 2018-04-26T13:47:05 | 2018-04-26T13:47:05 | 127,665,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | from datetime import datetime
from br.jus.tredf.analysis.backend.conf import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64), index=True, unique=True)
email = db.Column(db.String(120), index=True, unique=True)
password_hash = db.Column(db.String(... | [
"alisonsilva123@gmail.com"
] | alisonsilva123@gmail.com |
7b4c48f9072d0d8d3c8bdefc2ff22386e5ca805f | c68f8159b2f396d0718f71a1e0eb3fa31058b62f | /analytics/urls.py | a434fda5659c24a2cdfc3e1b3d2fa7a23578504a | [] | no_license | hamideshoun/url_shortener | ed5c20018db385cf384cc4fcca691db7d025cdd0 | 27fb116d20662c349edfaa89dbc59a798819ff68 | refs/heads/master | 2023-06-14T12:54:07.283495 | 2021-07-08T00:50:18 | 2021-07-08T00:50:18 | 383,959,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.urls import path
from analytics.views import ReportAPIView
urlpatterns = [
path('reports/', ReportAPIView.as_view()),
]
| [
"hamid.naraghi@gmail.com"
] | hamid.naraghi@gmail.com |
ee2c1cb101ed600ef6a59804bd8a60d49f33250a | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/_storage_management_client_async.py | c4106bd382d3bd7e0ec92066dc1895978266f306 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 8,245 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
4a4d17d3ae6047f3dc96cac26f38a98d54b2c02c | ad32c2f9c37158540c6f221794a365b65bfbb02c | /lib/S02_onde_progressive.py | 947b364f2de742fec5dfa689d3d8813b5634ee61 | [] | no_license | jjfPCSI1/py4phys | 27bff9cd79e51b88dd926f552bda8c5d623585c0 | 47f9518d9b56e46a873bec9834c98c005a2c5017 | refs/heads/master | 2022-08-09T05:14:14.761789 | 2022-08-02T19:34:30 | 2022-08-02T19:34:30 | 22,642,385 | 27 | 18 | null | 2022-02-18T08:03:07 | 2014-08-05T12:21:56 | Jupyter Notebook | UTF-8 | Python | false | false | 2,016 | py | # coding: utf8
# Sauf mention explicite du contraire par la suite, ce travail a été fait par
# Jean-Julien Fleck, professeur de physique/IPT en PCSI1 au lycée Kléber.
# Vous êtes libres de le réutiliser et de le modifier selon vos besoins.
'''
Illustration du phénomène de propagation vers la droite d'une onde de ... | [
"jeanjulien.fleck@gmail.com"
] | jeanjulien.fleck@gmail.com |
7acb737859a8d78bd545e2ef6489badd805c62d3 | 0aa3890c840528e517470207e06c1e7e136ecb43 | /utils/__init__.py | 524916b4a9d54c9df3eacaa805632b2aea82db06 | [] | no_license | solinari27/stockCrawler | 7aa05cd8a7a18a6286b3bf9fd3512f4138b13951 | 4159e53cba2315b052cf37fddcbdb2dee8e9d094 | refs/heads/master | 2023-07-24T21:30:34.290533 | 2019-12-12T15:05:58 | 2019-12-12T15:05:58 | 120,918,787 | 0 | 0 | null | 2023-07-06T21:25:19 | 2018-02-09T14:58:31 | Python | UTF-8 | Python | false | false | 119 | py | #!usr/bin/env python
#-*- coding:utf-8 _*-
"""
@author: solinari
@file: __init__.py.py
@time: 2018/11/04
"""
| [
"solinari27@gmail.com"
] | solinari27@gmail.com |
c98bf9af78911012a5d580d8fab568dc0dd4d262 | 5aa0e5f32d529c3321c28d37b0a12a8cf69cfea8 | /client/gui_lib/GUIElement.py | 9e1b3576bea5c0ed0b0177d38d061da26e549710 | [] | no_license | sheepsy90/survive | 26495f1ff2d8247fbb9470882f8be9f5272e7f2c | 0eddf637be0eacd34415761b78fc2c9d50bc1528 | refs/heads/master | 2021-01-09T05:55:16.546762 | 2017-02-03T20:15:28 | 2017-02-03T20:15:28 | 80,864,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import pygame
class GUIElement(object):
TEXT = 2
BUTTON = 1
def __init__(self, name, rect):
self.name = name
self.x, self.y, self.width, self.height = rect
self.is_hover = False
self.gui_handler = None
self.focus = False
self.visible = True
self.z_... | [
"robert.kessler@klarna.com"
] | robert.kessler@klarna.com |
45667c5a8f2316218249b7697d3dca26d9f8711e | ba8583b784301b2206d9cba3f57c4cc1c969165c | /src/data/prepare_dataset.py | bbf1df11477eddfd9cf35c8325d3ab688d32214b | [] | no_license | tonylibing/tf_classification_framework | c8cd0c71badf6cd20a2e87711ebbe89f6f9eceba | e08f1b9dc7460a147a704ec099c64785663ce070 | refs/heads/master | 2022-04-12T16:16:52.809842 | 2020-03-07T13:26:02 | 2020-03-07T13:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,541 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 21 14:12:43 2018
A batch verify image tool
After downloading a large amount of image data, usually we find that some
images can not be open, which may be caused by network transmission errors.
Therefore, before using these images, use this tool to verify the im... | [
"anshengmath@163.com"
] | anshengmath@163.com |
0f30f9125763d9b2ac1d7dec0a5bd1a1859b038b | 01341e6b4e13679f3a78bd02f7156cb52d11d8d8 | /utils_fourier.py | 6f311983041114e5ad36b3ca37ad29ee24dfbbf4 | [
"MIT"
] | permissive | majedelhelou/PriorLearning | 864b1499ac993b730b90e3b700b3d59795865818 | f66d25993c3b99dd31d9d62abeb3e0a5623e034d | refs/heads/master | 2020-09-13T09:22:45.011770 | 2020-01-11T23:50:10 | 2020-01-11T23:50:10 | 222,724,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from utils_deblur import psf2otf, otf2psf
import numpy as np
def deblurring_estimate(Y, X_l, k_l, reg_weight=1):
'''
Operation: solve for Z that minimizes: ||Y-k_l*Z||**2 + reg_weight * ||Z-X_l||**2
Inputs:
2D images Y and X_l (Gray or multichannel)
k_l (blur kernel for the low-res image,... | [
"elhelou@iccluster047.iccluster.epfl.ch"
] | elhelou@iccluster047.iccluster.epfl.ch |
7416cbc73d6ba31ae6410ac8ec422a06a219270e | 4ca5ad12b083ed7dd8d5132bc9e66d4dea326dda | /WebClass/web_11_自动化测试框架V1/common/handle_excel.py | a06471baff2cf97acf86513f147a3ab66d7e499b | [] | no_license | ybsgithup/Code | 7b279f68d96908f2ae44d21e3da335110bc308e4 | bbc2018e6a7ce7293c5effb409d7a6279033ae15 | refs/heads/master | 2022-11-23T23:02:48.908126 | 2020-07-27T04:24:38 | 2020-07-27T04:24:38 | 276,266,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | import os
from openpyxl import load_workbook
class Testcase:
pass
class HandleExcel:
def __init__(self, filename, sheetname=None):
self.filename = filename
self.sheetname = sheetname
def read_data(self):
"""
读数据
:return:
"""
wb = load_workbook(sel... | [
"ybsfile@163.com"
] | ybsfile@163.com |
9ff12a83fa349c141961c33c8bda172be333ee74 | 89108805110edac6d07de41130a9bc45d62efb9d | /mailinglist_registration/backends/messages/views.py | 7e5ac56aa132db7d8dfe58368d69d8731b85b4c5 | [
"BSD-3-Clause"
] | permissive | danielpatrickdotdev/django-mailinglist-registration | 7824aaa6232ebfe5de5e3dc65a19cc707b6b4686 | 756c4ac2052063249b66eaa4c153694a5fb3eba1 | refs/heads/master | 2021-05-27T17:56:54.917761 | 2013-07-13T12:29:01 | 2013-07-13T12:29:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,919 | py | from django.conf import settings
from django.shortcuts import redirect
from django.contrib.sites.models import RequestSite, Site
from django.contrib import messages
from django.views.generic.base import TemplateView
from mailinglist_registration import signals
from mailinglist_registration.models import RegistrationPro... | [
"danielpatrick@hotmail.com"
] | danielpatrick@hotmail.com |
77842a6aee9b5ded6310e374e78ec44dfddb45bd | d2cb930ed5df0b1b5f7944e00f6f884bf014803d | /douban/twisted-demo.py | fcf677fc5cecf53c84cde258c7d3baea35271f91 | [] | no_license | sixDegree/python-scrapy-demo | 3cae4298b01edab65449cfe9af56b2fa59f4c07d | b66530e54156be8c7877f1fc4d497fd497b6fdda | refs/heads/master | 2020-06-17T03:16:23.038061 | 2019-07-08T09:25:15 | 2019-07-08T09:25:15 | 195,777,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,184 | py | from twisted.internet import reactor # 事件循环(自动终止条件:所有socket都已移除)
from twisted.internet import defer # defer.Deferred 特殊的socket对象(需手动调用执行,手动移除)
from twisted.internet import task
import treq # 用于发送异步Request,返回Deferred对象
import time
# 延迟机制:
# Deferred 延迟对象,代表的是一个无法立即获取的值
def demo_defer1():
d = defer.Deferred()
... | [
"chenjin.zero@163.com"
] | chenjin.zero@163.com |
f6a223d328e72ba600c445072360b528c214a1e7 | 35ef5e728116fc66d0b75656be2f26786348b14a | /accounts/migrations/0006_contact_create_date.py | 06dcda1b829ebc66c72d66a79ac32633ba63d638 | [] | no_license | ahmedyasin21/believer | e16d1c2c36cca12291d57d923cc39b5458ec1a5a | 4ce02c0f7f090ea02222c6a7396be2a9fd741295 | refs/heads/main | 2023-08-20T04:43:39.976198 | 2021-11-01T07:50:39 | 2021-11-01T07:50:39 | 423,379,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # Generated by Django 3.0.3 on 2020-10-01 10:35
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20201001_0148'),
]
operations = [
migrations.AddField(
model_name='contact',
... | [
"coolahmed21@example.com"
] | coolahmed21@example.com |
ad04ab061a5956176bed1dea790659a21862a6d9 | 81e40b229182662606ba521c60386790b4163d10 | /shopping-elf/data-microservice/processed_data_service.py | 78852c22d17b3dce1c926f04b902b31d5a77178a | [] | no_license | neilthaker07/Shopping-Elf | 64e1dc23b012cac4969bfded1c569b1a2e4818df | dd214503b240dc4092d1c7d2244bca1a37a1f357 | refs/heads/master | 2020-05-31T21:35:11.600984 | 2017-05-21T17:41:21 | 2017-05-21T17:41:21 | 94,049,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py |
import mysql.connector
from Models import ShoppingItems
from Models import ShoppingList
import collections
import DbConstants
def getShoppingList(userid):
db = mysql.connector.connect(user=DbConstants.USER, passwd=DbConstants.PASSWORD, host=DbConstants.HOST,
database=DbCo... | [
"rashmishrm74@gmail.com"
] | rashmishrm74@gmail.com |
e0cca89f4a4f404016bb78405ab89923c78dd493 | 9efe0d0773bddc264b9598bf1cb16f821dd0ed9c | /detect.py | f2ec8cc08dde54b5e1bd55dcab9e3f4285d4d5dc | [
"MIT"
] | permissive | chaosparrot/icuclick | 08ecacda1ca663a653ec8d9b3233ad8dc264262a | 2ca7f3446bcddbd03aa3211a544427c826809444 | refs/heads/master | 2020-07-06T04:08:16.090683 | 2019-08-25T09:10:39 | 2019-08-25T09:10:39 | 202,886,525 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | # Code to check if left or right mouse buttons were pressed
import win32api
import time
import pyautogui
import numpy
from win32gui import WindowFromPoint, GetWindowRect
pyautogui.PAUSE = 0
pyautogui.FAILSAVE = False
state_left = win32api.GetKeyState(0x01) # Left button down = 0 or 1. Button up = -127 or -128
state_... | [
"kevinteraa@gmail.com"
] | kevinteraa@gmail.com |
54a101a64b5ebe750e17ac1ffc6585ee11bd2c36 | c84aa32e9961773a830e2ed97ed598d405732ee6 | /translator.py | 10b9bb7cfdfc50ec19dc9ed1ee9dd9aea8015fe8 | [
"MIT"
] | permissive | imfulee/ChineseDetector | db6130f95552b47f9a637e6f9f69c007fc9cb26d | ee85c8a372c850206a2da7ce5eb7882ef3d5f408 | refs/heads/main | 2023-03-06T13:03:21.743274 | 2021-02-13T16:47:58 | 2021-02-13T16:47:58 | 326,115,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from opencc import OpenCC
'''pip install opencc-python-reimplemented'''
simplified_to_traditional = lambda text : OpenCC('s2t').convert(text) | [
"imfulee@gmail.com"
] | imfulee@gmail.com |
10329cd8754e9c98706dbaac2a3fdf61e41158c0 | 000144b20bfd717d223c088847de9479ca23c499 | /djangorq_project/wsgi.py | d1fa13347e41771775c75bc8cc6769d7b61d572b | [] | no_license | stuartmaxwell/django-django_rq-advanced-example | cfbb8ea83d28354def6fa4787a18718507a422db | f9c88b4fa5c4377143fb9986888c11adf95c57ef | refs/heads/master | 2022-12-03T15:00:47.284986 | 2020-08-03T09:38:50 | 2020-08-03T09:38:50 | 260,836,030 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for djangorq_project 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"stuart@tpad.amanzi.local"
] | stuart@tpad.amanzi.local |
1b9d741b46cbdeed5b3a3bac485cf1c895171822 | 1d38c549c07f43cc26b7353ef95300b934eeed33 | /setup.py | 9475e9b22ed79c0c28f6d00f6eec5f19bf0269e4 | [] | no_license | pooyagheyami/Adel3 | a6354fbc5aa56a9c38a8b724c8d22bea689380a1 | 29e257e19fd6914de0e60c303871321e457a858b | refs/heads/master | 2022-11-07T21:53:13.958369 | 2020-06-12T13:22:55 | 2020-06-12T13:22:55 | 271,803,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,530 | py |
# ======================================================== #
# File automagically generated by GUI2Exe version 0.5.3
# Copyright: (c) 2007-2012 Andrea Gavana
# ======================================================== #
# Let's start with some default (for me) imports...
from distutils.core import setup
from py2exe.b... | [
"pooyagheyami@gmail.com"
] | pooyagheyami@gmail.com |
898c24a3febc9ddd599cab942912e2123013e61b | b857011826feae5dc8b68083b30e589e8179789f | /build-from-manifest/build_from_manifest.py | f046c52558dc31dec421ec2d650a7c52d92d19e4 | [] | no_license | minddrive/build-tools | 934d862851989d80eb2eb0746e160ac571e09261 | 83a7af0bc6679c3d461d3b4f3edfad5e47ec9f74 | refs/heads/master | 2020-03-27T02:17:28.657669 | 2018-08-31T03:03:00 | 2018-08-31T03:03:00 | 145,779,487 | 0 | 0 | null | 2018-08-23T00:47:16 | 2018-08-23T00:47:16 | null | UTF-8 | Python | false | false | 22,754 | py | #!/usr/bin/env python3.6
"""
Program to generate build information along with a source tarball
for building when any additional changes have happened for a given
input build manifest
"""
import argparse
import contextlib
import gzip
import json
import os
import os.path
import pathlib
import shutil
import sys
import t... | [
"kenneth.lareau@couchbase.com"
] | kenneth.lareau@couchbase.com |
3387a7b1ab5c092a4be3f73958c4f37a2aec6a5c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02683/s728076842.py | 530d406c4a8a8bf681c980d60d4d26bc44d72770 | [] | 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 | 390 | py | import numpy as np
n,m,x=map(int,input().split())
a=2**64
b=[np.array(list(map(int,input().split())),"i8")for i in range(n)]
for i in range(2**n):
c=bin(i)[2:]
c="0"*(n-len(c))+c
l=np.zeros(m)
q=0
for j in range(n):
if c[j]=="1":
q+=b[j][0]
l+=b[j][1:]
if np.min(l... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d9e7c56938990536056e245fd9a4e8f269ca531c | a54aaaf50c84b8ffa48a810ff9a25bfe8e28ba96 | /euler017.py | 7b50a537c65bdf4546e8de4b9c5b747a69368e15 | [] | no_license | danielmmetz/euler | fd5faefdfd58de04e744316618f43c40e6cbb288 | fe64782617d6e14b8b2b65c3a039716adb789997 | refs/heads/master | 2021-01-17T08:44:26.586954 | 2016-05-12T02:35:10 | 2016-05-12T02:35:10 | 40,574,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | """
If the numbers 1 to 5 are written out in words: one, two, three, four, five,
then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the numbers from 1 to 1000 (one thousand) inclusive were written out in
words, how many letters would be used?
NOTE: Do not count spaces or hyphens. For example, 342 (t... | [
"danielmmetz@gmail.com"
] | danielmmetz@gmail.com |
21fb9340d7f32f6154426ff550bec28acbfdafb6 | 203d90b6f0a0fe38cf6a77d50c6e5aa528e4d50d | /blog/models.py | 4398a5455471cb25c799d12afc32868947063c59 | [] | no_license | leayl/mysite | dcc92bedc27b6206ec566f5b4421ee517a838ddd | b7974ce9fffe5c4f61d1c0d4facdd7c7860c0204 | refs/heads/master | 2021-06-23T23:53:39.046179 | 2019-09-23T03:51:45 | 2019-09-23T03:51:45 | 181,919,893 | 0 | 0 | null | 2021-06-10T21:23:46 | 2019-04-17T15:31:54 | Python | UTF-8 | Python | false | false | 1,109 | py | from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.db.models.fields import exceptions
from django.contrib.auth.models import User
from ckeditor_uploader.fields import RichTextUploadingField
from read_statistics.models import ReadNumExtendMethod
class BlogType(models.... | [
"lea_yl@163.com"
] | lea_yl@163.com |
8bab37daf96d71aa280e74d681d7515f1291bf03 | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/torch/distributions/geometric.py | 1e4b121cd7b4cfcccd548bf86ff634e3392b7ebe | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 2,923 | py | from numbers import Number
import torch
from torch.distributions import constraints
from torch.distributions.distribution import Distribution
from torch.distributions.utils import broadcast_all, probs_to_logits, logits_to_probs, lazy_property, _finfo
from torch.nn.functional import binary_cross_entropy_with_logits
c... | [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
380d17872d9ed8769bac3610758bd177dacef41e | 49b9c68ab746cb43770fd35771847bd9c18817e6 | /recsys/experiment/sampler.py | f5ab7aa89849497d96e70142acbc65112590a16a | [] | no_license | kobauman/signature | 06a2c579381faa780d79ab3e662c6ec6d28b8555 | d123ff1557b9d3f81ef7ce7a0a83ea81d614675b | refs/heads/master | 2021-01-21T12:11:42.419877 | 2016-03-25T19:48:08 | 2016-03-25T19:48:08 | 22,729,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | import logging
import random
import json
import os
'''
Sample TRAIN and TEST
Input: reviews, prob
Output: list of reviews in TEST
'''
def sampler(path, reviews_filename, probs = [0.4, 0.8], busThres = 0, userThres = 0):
logger = logging.getLogger('signature.sampler')
logger.info('starting sampling')
... | [
"kbauman@yandex.ru"
] | kbauman@yandex.ru |
06ebfc7c0dd8d9fa2e442b989356c0541f537915 | e4eca3e87148f9afc93233b13c54c5e065f704b1 | /pyMRA/multiprocess/example.py | 6729aaca6a0ed1bb1006d371176603e55628d452 | [
"MIT"
] | permissive | katzfuss-group/pyMRA | 51dddfcba457e5ebf76f6a9bbe69d7efa2208cb4 | 6214f2a89b5abb6dce3f3187692bea88874a4649 | refs/heads/master | 2021-04-03T04:12:37.142914 | 2018-03-09T15:40:35 | 2018-03-09T15:40:35 | 124,594,147 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,749 | py | import multiprocessing
import sys
import re
class ProcessWorker(multiprocessing.Process):
"""
This class runs as a separate process to execute worker's commands in parallel
Once launched, it remains running, monitoring the task queue, until "None" is sent
"""
def __init__(self, task_q, result_q):
... | [
"marcinjurek1988@gmail.com"
] | marcinjurek1988@gmail.com |
66232ac70c2956a0cdd7e2de1e6855bd119e53dc | 1d7147717ed51c34d09e2f68dbb9c746245b147d | /L2C1_project1.py | 41a63402d6406d1ff1fa10de3b486ec6827f66ba | [] | no_license | aaryanredkar/prog4everybody | 987e60ebabcf223629ce5a80281c984d1a7a7ec2 | 67501b9e9856c771aea5b64c034728644b25dabe | refs/heads/master | 2020-05-29T18:12:33.644086 | 2017-02-13T02:46:44 | 2017-02-13T02:46:44 | 46,829,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | x = int(input("Please enter an integer:"))
print()
for i in range(0,x + 1):
print (i)
| [
"aaryantoki@live.com"
] | aaryantoki@live.com |
ddd780af0f467b3e365ab91cc4e73b3afe4f785c | b58c3f5b69772d5383727b8257536ab41a29cd02 | /testsuites/test03_shopmanage.py | c3344499a4f13305952624af0de7a9e677e12957 | [] | no_license | pwxing/LinkeDs | b25fe937100b352f00f152306f7b15691c69f41e | 2f996a70cd611eef27a826ae7ded38104e292374 | refs/heads/master | 2021-05-07T18:36:27.877468 | 2017-11-02T12:20:34 | 2017-11-02T12:20:34 | 108,817,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,936 | py | # coding=utf-8
import time
import unittest
from framework.browser_engine import BrowserEngine
from framework.base_page import BasePage
from pageobjects.linke_loginpage import LoginPage
from pageobjects.linke_homepage import LinkeHomePage
from pageobjects.ds_shopmanage import ShopManage
import pageobjects
class ShopMa... | [
"xiongzh@hyxt.com"
] | xiongzh@hyxt.com |
7d4360c378c244e4834437c6bf0bbf020e1885ff | b85bca40004f9d1737fb4d342e8ea040eefb453b | /tests/lgdo/test_scalar.py | 3ff4c51833af64977b65fb3570d064c5a0fc7ac5 | [
"Apache-2.0"
] | permissive | wisecg/pygama | 95f744af56a8df81020f195695128a5ce0a6aca6 | 9a422d73c20e729f8d014a120a7e8714685ce4db | refs/heads/main | 2022-12-24T02:02:05.554163 | 2022-12-05T16:32:30 | 2022-12-05T16:32:30 | 257,975,470 | 0 | 1 | Apache-2.0 | 2020-04-22T17:41:46 | 2020-04-22T17:41:45 | null | UTF-8 | Python | false | false | 468 | py | import pygama.lgdo as lgdo
def test_datatype_name():
scalar = lgdo.Scalar(value=42)
assert scalar.datatype_name() == "real"
def test_form_datatype():
scalar = lgdo.Scalar(value=42)
assert scalar.form_datatype() == "real"
# TODO: check for warning if mismatched datatype
def test_init():
attrs =... | [
"luigi.pertoldi@protonmail.com"
] | luigi.pertoldi@protonmail.com |
e95bf537e32a24dacce0ab8d8e392fff4ac0c249 | cda2cbe020f70db1bfc645973a9c1e3c62e18e92 | /ex24.py | 5248ea0c9a8da0dd9d98ea9ece2a571e9aa3f114 | [] | no_license | SpaceOtterInSpace/Learn-Python | a22c27a8fc4d955a309b8248d7e34b8957eecf24 | 3f8cc6b6212449ef3f2148e66bce9d83f23191dc | refs/heads/master | 2020-04-20T16:29:46.282166 | 2015-07-07T20:04:36 | 2015-07-07T20:04:36 | 35,775,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | print "Let's practice everything."
print 'You\'d need to know \'bout escapes with \\ that do \n newlines and \t tabs.'
poem = """
\tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
nor comprehend passion from intuition
and requires an explanation
\n\t\twhere there is none.
"""
print "... | [
"jacqui@mudbugmedia.com"
] | jacqui@mudbugmedia.com |
fee23db67ca1b01428550a6fd45ebdf1149b381a | 19a86ab59d3ab02103a0b12c2cb4eebdcf028679 | /app.py | 40f11fd05d7032f13ce823d7e818a763ff66e0a8 | [] | no_license | npvandyke/surfs_up | e5acee499baa6a51b4bf19d9ee6d551de8ac1a70 | e9f5a59db7aec07a9e756a105a54f539dee6f04b | refs/heads/main | 2023-03-29T17:48:34.057067 | 2021-04-01T22:11:33 | 2021-04-01T22:11:33 | 350,831,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # Import dependency
from flask import Flask
# Create a new Flask app instance
app = Flask(__name__)
# Define the starting point (root) of the first route
@app.route('/')
def hello_world():
return 'Hello world'
| [
"npcolletti@gmail.com"
] | npcolletti@gmail.com |
6aaba7d662a21da85d2ba3e6b178f7ecf8d58cd2 | e7b07f173a8bc0d36e046c15df7bbe3d18d49a33 | /parse.py | 9d1894ef9159fb1b51738dbba15b24d5bcb61bc0 | [] | no_license | jcarbaugh/makeitwrk | 82b6e8079b118e8d668b2e6858096a54da33d5a8 | 83801b19c120b4cf728b8342c4933fefe54b54d8 | refs/heads/master | 2020-04-06T04:55:56.785930 | 2011-08-26T19:09:27 | 2011-08-26T19:09:27 | 2,275,931 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,029 | py | #!/usr/bin/env python
from struct import pack, unpack
import sys
CHUNK_TYPES = {
1: 'TRACK_CHUNK',
2: 'STREAM_CHUNK',
4: 'METER_CHUNK',
5: 'TEMPO_CHUNK',
6: 'SYSEX_CHUNK',
7: 'MEMRGN_CHUNK',
10: 'TIMEBASE_CHUNK',
# variables
3: 'VARS_CHUNK',
26: 'VARS_CHUNK_VAR',
#... | [
"jcarbaugh@gmail.com"
] | jcarbaugh@gmail.com |
59fafc2d56a1ca1d9d3712f7dfda2784a96c910b | 71c331e4b1e00fa3be03b7f711fcb05a793cf2af | /QA-System-master/SpeechToText_test/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/recaptchaenterprise/v1/recaptchaenterprise_v1_client.py | 79510bf7357cd70baba2a7b3f103d23cabd30234 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iofh/QA-System | 568228bb0c0adf9ec23b45cd144d61049e720002 | af4a8f1b5f442ddf4905740ae49ed23d69afb0f6 | refs/heads/master | 2022-11-27T23:04:16.385021 | 2020-08-12T10:11:44 | 2020-08-12T10:11:44 | 286,980,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,467 | py | """Generated client library for recaptchaenterprise version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.recaptchaenterprise.v1 import recaptchaenterprise_v1_messages as messages
class RecaptchaenterpriseV1(base_... | [
"ige-public@hotmail.com"
] | ige-public@hotmail.com |
602bf5ff185fae424574e01f0d60bafdc9fad426 | 9d032e9864ebda8351e98ee7950c34ce5168b3b6 | /301.py | 10f8978082ea2c4ee7bbac60f631a00e920d68cf | [] | no_license | snpushpi/P_solving | e0daa4809c2a3612ba14d7bff49befa7e0fe252b | 9980f32878a50c6838613d71a8ee02f492c2ce2c | refs/heads/master | 2022-11-30T15:09:47.890519 | 2020-08-16T02:32:49 | 2020-08-16T02:32:49 | 275,273,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | '''
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.
Note: The input string may contain letters other than the parentheses ( and ).
Example 1:
Input: "()())()"
Output: ["()()()", "(())()"]
Example 2:
Input: "(a)())()"
Output: ["(a)()()", "(a(... | [
"55248448+snpushpi@users.noreply.github.com"
] | 55248448+snpushpi@users.noreply.github.com |
6bf0a913bcc4d96db71c5ad8e16ab1214ef394f8 | 51bd1f17a4e9942128b2c0824d397ebb74067e4c | /py_box3/mkm/chemkin/__init__.py | 9f2981ce6f8ee408e5b347aef0ba9261ee2bc6fb | [] | no_license | jonlym/py_box | 3290db8fab2ca97fbd348d02ae4a3319207ccfb0 | ae5187a433ef654d6b96ee98ca7ab742d83d11d9 | refs/heads/master | 2021-01-19T05:42:10.056427 | 2018-12-20T18:44:01 | 2018-12-20T18:44:01 | 87,442,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,054 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 23 14:57:39 2016
@author: Jonathan Lym
"""
from py_box3.constants import T0, convert_unit
from ase.io import read
from py_box3.thermo.thermdat import Thermdat
from py_box3.thermo.thermdats import Thermdats
import numpy as np
class Chemkin(object):
def __init__(self,... | [
"jonathanalym@gmail.com"
] | jonathanalym@gmail.com |
7ed42131d1dea6425f48f5cd8d6a580ebe0e2de1 | 8d150f92db0e12dcb32791892c0747ee50194cbb | /ex_01.py | 120378ee94c80dc0412ae742805442adf5f209f5 | [] | no_license | wangbingde/class_day02 | cbe1302668aa1cfe6b6a715ede149854627dc3ea | 215cd1abb15bb31b70c62e344fe7e611a79a75b1 | refs/heads/master | 2020-04-07T07:10:59.613331 | 2018-11-19T05:33:51 | 2018-11-19T05:33:51 | 158,167,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # 单继承
class Animal:
def eat(self):
print("吃")
def drink(self):
print("喝")
def run(self):
print("跑")
def sleep(self):
print("睡--")
class Dog(Animal):
def bark(self):
print("汪汪叫")
class XiaoTian(Dog):
def fly(self):
print("会飞")
wangca... | [
"1254817017@qq.com"
] | 1254817017@qq.com |
0285e95057b21742ade89d9041421eb988eb90fb | d79c152d072edd6631e22f886c8beaafe45aab04 | /nicolock/products/rest_urls.py | d58d9a92a31372b447067ee3dd7508ef1d810182 | [] | no_license | kabroncelli/Nicolock | 764364de8aa146721b2678c14be808a452d7a363 | 4c4343a9117b7eba8cf1daf7241de549b9a1be3b | refs/heads/master | 2020-03-11T11:02:43.074373 | 2018-04-18T17:38:33 | 2018-04-18T17:38:33 | 129,959,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url
from . import rest_views as views
urlpatterns = [
url(
regex=r'^products/(?P<pk>\d+)/$',
view=views.ProductDetail.as_view(),
name='product-detail'
),
url(
rege... | [
"brennen@lightningkite.com"
] | brennen@lightningkite.com |
2864f464a2a9b812262b8d20279d25c2d4d19566 | e75d2b20e7afade2c9778ab5b68369d482cb9fd0 | /Desafio007.py | d957e19b9877e2391eabb33cd577d0d1a74e3f22 | [] | no_license | tamaragmnunes/Exerc-cios-extra---curso-python | e09bb6e507e0b1c5a3f84ecec7dbb25b8aaf27f4 | 5bfd2674101f2f41001adcf3b65414b3ef6b57ba | refs/heads/master | 2020-07-26T09:10:54.536729 | 2019-09-15T13:45:06 | 2019-09-15T13:45:06 | 208,599,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua média
n1 = float(input('Digite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
m =(n1+n2)/2
print('A sua média é {}'. format(m)) | [
"noreply@github.com"
] | noreply@github.com |
d3527c75633bd397f54893cab6262bed50e53879 | d17d65a3ee48b307a46a0b95a05f04131668edbe | /TestSuite/runner.py | 6a172fc2702d50f5b6f0558a2beab1d4f677a319 | [] | no_license | qlcfj001/ui_test | 28fa370a6f912b2ff9a551c681d35a452c57ee02 | 25020af19d84c9c2b1bad02aca89cc881e828bbb | refs/heads/master | 2023-06-15T18:10:02.177702 | 2021-07-15T06:35:10 | 2021-07-15T06:35:10 | 386,012,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from Page.Base import base
from pageobjct.SearcH import Searchpage
from selenium.webdriver.common.by import By
#from TestSuite.Variablelayer.Variable import *
import time
import unittest
leave='成都'
leave_data="2021-07-20"
arrive='北京'
arrive_data='2021-07-30'
aa=Searchpage()
aa.search7(leave='成都',leave_data="2021-07-20"... | [
"you@example.com"
] | you@example.com |
b7c9571822e30c675a4bbb00ce1a6faff3a0bc1f | 7274ce2b75d49a90c57e9220756bc9beb532c9e1 | /preprocess/main_newsgroup_preprocess.py | 36536c615b9bbfb43c48daa740c439bcd3c1effb | [] | no_license | chauncyzhu/textclassification | 4eb03f2b11abd67680daab24f373971ce33d89cd | 0b3960f748ba66278250132d8b16d189cabe4a3f | refs/heads/master | 2021-01-19T08:59:13.889878 | 2018-03-10T05:38:19 | 2018-03-10T05:38:19 | 87,704,238 | 2 | 0 | null | null | null | null | GB18030 | Python | false | false | 3,853 | py | # coding=gbk
import preprocess.data_clean.newsgroup.import_data as id
import preprocess.data_clean.newsgroup.clean_data as cd
import utils.newsgroup_path as path
import preprocess.transfer_vector.voca_dict.voca_data as vd #可以共用的部分
import preprocess.transfer_vector.generate_vector.feature as feature
import preprocess.... | [
"chauncyzhu@163.com"
] | chauncyzhu@163.com |
719be2b3109d684559aae549572f8a866a01604c | f576a300274a5f491d60a2fbd06b276dac65a5da | /volumes.py | 0a9a83f7c188b30aa4838f056887c48563f2e116 | [] | no_license | kashley007/SurgicalVolumes | 76d81327987c7bf280ffd1a33057ae00495a1797 | a5952f2cc169f45ad1fb9e3076e504f9443ed473 | refs/heads/master | 2020-07-21T19:36:50.317517 | 2016-11-16T17:25:07 | 2016-11-16T17:25:07 | 73,842,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | """
This module executes the calculation of OR volumes
and creates a pdf report for each location found in the
data set
"""
#Import Libraries----------------------------------------------------------
import calendar
import command_line_args
import import_from_excel
import PDF
import df_manip
import endo
#------------... | [
"kdashley@carilion.com"
] | kdashley@carilion.com |
0c081fd0cf2dee0806a9c57bd30da55b4a4b8187 | 6c4faabeddafecdbe11d1f8250dbff620e03fa07 | /listings/models.py | 1339df6f0d4266275c5abe1b27349a86d9834151 | [] | no_license | donnyboi/btre | 20565e7c1a6411c808b38a72645a96c0d3196b44 | 174671348e680241a9af50b379595fc817596488 | refs/heads/master | 2020-11-26T05:08:01.996657 | 2020-03-19T07:50:13 | 2020-03-19T07:50:13 | 228,972,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | from django.db import models
from datetime import datetime
from realtors.models import Realtor
# Create your models here.
class Listing(models.Model):
realtor = models.ForeignKey(Realtor, on_delete=models.DO_NOTHING)
title = models.CharField(max_length=200)
address = models.CharField(max_length=200)
c... | [
"diresher@gmail.com"
] | diresher@gmail.com |
e8e305a6f11009f9aa86ad3315641ca93bac6171 | 59b1dc370837138dfd1820516e65c3dfbeff85f4 | /src/Python/parallel_matrix.py | 29ad5dd9959be0fc35e8d2b663ef7b98ab60d79e | [
"MIT"
] | permissive | pargue/matmatmult | bc8fcbf0f11e434b8ad641968f2c0925010f26ca | 32bf1f0eddc7ad11d9403e48caf4bcb99200f703 | refs/heads/master | 2020-12-24T08:00:03.339663 | 2016-12-14T17:36:57 | 2016-12-14T17:36:57 | 73,347,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,446 | py | #!/usr/bin/env python3
"""
AUTHOR: Cody Kankel
PROG: Parallel_matrix.py
DESC: This is a Python 3 script which requires mpi4py, to implement
Strassen's Algorthm for multiplying 2 matricies in parallel. This script
will take in a matrix from the cmd line stored as a csv file, and multiply
the matrix by itself by readin... | [
"cody.kankel@gmail.com"
] | cody.kankel@gmail.com |
a037aadb28a082e3c64b0d78e14d175f29d0182b | 779515ef9cb52d13c8f6c46623ec8906ac658452 | /utils/emoji.py | 436a96bd1585e415b52958284aaacfef43cc33c8 | [
"MIT"
] | permissive | Chrrapek/DiscordMiejski | ca014b81f4d41efe7cc9ac28913da9b29afc64e0 | fd59433c1315baadd91a9ef29ca534924bcdc7f4 | refs/heads/master | 2023-04-14T20:59:44.765418 | 2021-04-12T19:18:53 | 2021-04-12T19:18:53 | 303,675,183 | 3 | 2 | MIT | 2021-04-12T19:18:54 | 2020-10-13T11:05:09 | Python | UTF-8 | Python | false | false | 65 | py | PEPE_SAD = 775061981496606740
PEPE_NAWROCKI = 775059704795758602
| [
"janek@projmen.pl"
] | janek@projmen.pl |
fcaf5d0a55c1039dcaa09d5b5481a8e32e5b4f85 | 52d77c903a5f00fd55985394cd17ee380aaf3ccf | /script/Utils.py | bdba0a8a74c2251dc082020e61e7724bc1dae669 | [] | no_license | alexanderflorean/BSc-JavSoCoClassifier | 7b60ac5df6860c2ec1d7a47fddfba3f14b105b84 | a6fe7a6fec06beca9f2940cf9c2cdd08bbdaab1a | refs/heads/main | 2023-04-26T06:09:04.250918 | 2021-06-08T13:04:33 | 2021-06-08T13:04:33 | 349,335,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,936 | py | import yaml
# minimum of available 5 test files regardless of training size.
MIN_NUM_OF_TEST_FILES = 5
def remove_label_column_from_dataframe(dataFrame, label):
return dataFrame[dataFrame["Label"].isin(label) == False].reset_index(drop=True)
def remove_concerns_under_quantity_threshold(dataFrame, min... | [
"florean.alexander@gmail.com"
] | florean.alexander@gmail.com |
7cb0f559cf1a4f0d1a677006477fa65e55752236 | b1e9991736e1fe83d3886dcb5c860dc94a31af2b | /matplotlibrc.py | dbebae19a11784998b797d88525705478349e408 | [] | no_license | bbw7561135/TurbulentDynamo | e98748171aff47cf3ec75db3b98e0b2c8dbdf280 | cba1e7a06ea9434ff3d8d3f9e8482677b0274c2f | refs/heads/master | 2022-12-25T03:37:12.973978 | 2020-08-31T01:11:24 | 2020-08-31T01:11:24 | 294,576,179 | 2 | 1 | null | 2020-09-11T02:42:17 | 2020-09-11T02:42:16 | null | UTF-8 | Python | false | false | 1,166 | py | from matplotlib import rcParams
# rcParams.keys()
rcParams['text.usetex'] = True
rcParams['text.latex.preamble'] = r'\usepackage{bm}'
rcParams['lines.linewidth'] = 1.2
rcParams['font.family'] = 'Arial'
rcParams['font.size'] = 15
rcParams['axes.linewidth'] = 0.8
rcParams['xtick.top'] = True
rcParams['xtick.directi... | [
"necokriel@gmail.com"
] | necokriel@gmail.com |
77d1a721f114372350581d34c782000e12e28616 | 3806175fcbc4a386bea986dfb97a362fb983862f | /blog/admin.py | b067606aa8033d6bc2cc3041330821fe31e22b76 | [] | no_license | Kiki-demo/MyBlog | c53cbcbae1b3280da74d1d349ff6cc717a79b332 | 51554c92ac5435a7bc2222deedf7aa397c0bd73a | refs/heads/master | 2023-03-28T06:08:10.164174 | 2019-08-02T10:25:20 | 2019-08-02T10:25:20 | 199,954,653 | 0 | 0 | null | 2021-03-29T20:10:39 | 2019-08-01T01:34:14 | CSS | GB18030 | Python | false | false | 441 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from .models import Category, Tag, Post
class PostAdmin(admin.ModelAdmin):
list_display = ['title', 'created_time', 'modified_time', 'category', 'author']
# 把新增的 PostAdmin... | [
"kiki.zhang@dewav.com"
] | kiki.zhang@dewav.com |
a4d250d72f94be4c124927e70b0c139ad9f85f9d | f8fbf0b0cc919d7d4d7c79532cc5434552d75eb8 | /docs/0.18.1/_static/notebooks/modeling.py | a5bdb272476813045d22aca2f06eddfb47942841 | [] | no_license | adonath/gammapy-docs | ae8571c6aa76d231ac54c93fb3c8968f9f79993b | 32b605d623abdcd2e82c30bcbf07ef30d259783a | refs/heads/main | 2023-02-25T05:24:53.211005 | 2022-10-13T00:09:12 | 2022-10-13T00:11:33 | 550,476,516 | 0 | 0 | null | 2022-10-12T20:45:50 | 2022-10-12T20:45:49 | null | UTF-8 | Python | false | false | 14,807 | py | #!/usr/bin/env python
# coding: utf-8
# # Modeling and fitting
#
#
# ## Prerequisites
#
# - Knowledge of spectral analysis to produce 1D On-Off datasets, [see the following tutorial](spectrum_analysis.ipynb)
# - Reading of pre-computed datasets [see the MWL tutorial](analysis_mwl.ipynb)
# - General knowledge on sta... | [
"axel.donath@mpi-hd.mpg.de"
] | axel.donath@mpi-hd.mpg.de |
4c9df0aef998f4392465ebfdb2da7513c530cef6 | 5cb820487419a5e06345590f5f563a09e1949b42 | /F0003a.py | 03fccecf0051f01d2f97c39f5355f20102edf0fe | [] | no_license | loczylevi/-f0003 | a84921d0d07dcc3e27e48b18f1e031d9f3dc73e8 | 12ed7125fd0700d8b777c0985c70144335007423 | refs/heads/master | 2023-01-11T23:01:45.050216 | 2020-11-08T10:30:43 | 2020-11-08T10:30:43 | 310,523,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | vezetéknév = input('Mi a vezetékneved?')
keresztnév = input('MI a keresztneved?')
print('A te neved ', vezetéknév, keresztnév,) | [
"loczy2003@gmail.com"
] | loczy2003@gmail.com |
025e7c2fd0563d6420b77dde0117743c67a0e7a4 | 1578ce4b2961a0b89b7fac47e9063acaced21b4c | /address/migrations/0002_address_customer.py | 279c38da990f0df58c68a7d18957b0fcedd9135e | [] | no_license | mrpyrex/epytech | 8125c50b7274ec8511d0677f33b0569ebc5472b5 | e511cdecc8b554f65ed135b9ac6d312c278fc873 | refs/heads/master | 2020-07-20T10:40:17.001431 | 2019-09-11T20:38:42 | 2019-09-11T20:38:42 | 206,624,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # Generated by Django 2.1.7 on 2019-09-04 07:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('address', '0001_initial'... | [
"ndifrkeumoren@gmail.com"
] | ndifrkeumoren@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.