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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
040a421fd08c22b88661d55b4267176f9cdbbae8 | 161d43b73438c4423949f4d4898e44f015691a0e | /GaussianProcess/__init__.py | 41d152d0ef74cf3acec2895b134b155ca3abafde | [] | no_license | apetri/CFHTLens_analysis | a44f754114a6a6129088f0771cc558baed987462 | b19343b43b54870f7950bcd9ea76bbe829448c44 | refs/heads/master | 2020-05-21T22:06:24.551906 | 2017-12-14T16:17:08 | 2017-12-14T16:17:08 | 16,521,933 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | from .interpolation import *
__version__="0.1" | [
"apetri@phys.columbia.edu"
] | apetri@phys.columbia.edu |
25e219ef8afbaaf847e7238c1b86d7c0bd4e0452 | 83427c470b8e2ee4636a1e9aaa940cdefecc0c2b | /Baxter/Archivos_Hugo/baxter_gato/pantalla_gato.py | a4878c40de9df76719aae984989d08139aff8c0d | [] | no_license | Angelooocw/Documents | c67554f0fce582feb7ec6b3809cb0ea19c7c07a9 | 346ebf7cff48d517ee2f0b0838f66e22529a3f59 | refs/heads/master | 2020-03-31T10:56:50.905510 | 2019-04-17T02:15:21 | 2019-04-17T02:15:21 | 152,156,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | #!/usr/bin/env
import rospy
import cv2
import cv_bridge
from sensor_msgs.msg import Image
import os
import numpy as np
class pantalla_gato():
def __init__(self):
home = os.getenv('HOME') #
# Editar carpeta
home = home + '/ros_ws/gato'
# Imagenes
self.p_principal = cv2.... | [
"angelomontano42@gmail.com"
] | angelomontano42@gmail.com |
69cfac43adaf11db9463ba6660f355dd9fe7d777 | f19e38ef948796e93981fb10a5b0098f65e4e247 | /bin/django-admin | 9a165941cc3d7a5bcc070729306e3baabbfdc844 | [] | no_license | FranSollima/gwent-project | b2b1a9af1b803ae5311e79057e2acf6388c8cf27 | 89f4540e3b036ca3aec49b69ede81c23c48106b4 | refs/heads/master | 2021-01-22T09:26:49.914790 | 2015-07-02T17:10:08 | 2015-07-02T17:10:08 | 37,854,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/home/francisco/gwent-project/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"francisco@debianFS.marketimetrics.com"
] | francisco@debianFS.marketimetrics.com | |
9d96bb713aa28e97eeda888b809169677dfa9351 | 053ee1c7814a735f6ed54e066e1a2d62d9532c10 | /pjf/tag.py | 12825debc533746dc147b18e69a1924ea5671b02 | [] | no_license | walkeryg/hdotfiles | 617ef4850bf1371b9a9c5fe525efa3fdb5d26bf0 | c6fb3a06c8777b0b34d2acb729f4592f71a89091 | refs/heads/master | 2022-07-23T07:07:41.230401 | 2022-07-08T09:49:22 | 2022-07-08T09:49:22 | 88,474,863 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import os
import optparse
import platform
import re
import sys
import subprocess
class Tag(object):
"""Base Class for Gen/Update Tags"""
def __init__(self):
self.__ignore = [
'.*o',
]
def Usage(self):
print("NotImplemented")
sys.exit(1)
def update(self):
... | [
"ygcom@aliun.com"
] | ygcom@aliun.com |
8acd536cba2570095245ee769e4dd66173229afd | 0df65d4630774e5e3a6513decfb7f992e1741458 | /HeavyChHiggsToTauNu_REMOVEME/test/plotScripts-AN-11-470/plotEwkValidationEmbeddedMcNormalTauTrigger.py | 05e31411c14d1d6a0b832f245e095f7dd8ed6bf7 | [] | no_license | heitorPB/HiggsAnalysis | 1742705f9bcde4e60e358f21a81a385dceeb8906 | 5e417978406b18a52e014125b8e833d4efcbe8b9 | refs/heads/master | 2020-04-12T01:42:41.431378 | 2017-03-07T15:21:34 | 2017-03-07T15:21:34 | 52,434,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,229 | py | #!/usr/bin/env python
######################################################################
#
# This plot script is for comparing the embedded MC and normal MC
# withinsignal analysis and tau trigger. The corresponding python job
# configurations are
# * signalAnalysis_cfg.py with "doPat=1 tauEmbeddingInput=1"
# * si... | [
"matti.kortelainen@helsinki.fi"
] | matti.kortelainen@helsinki.fi |
ff8df54b7c715153b82188cee10a486b3527e8b6 | b1db6cd08631e47fcdb0d1ec6277de5176e904f8 | /codice/run_devices.py | 911cdf8d81f69bc9c3fcb8fe3e23e5ee3d9249fb | [
"MIT"
] | permissive | pietropezzi/Elaborato-PdR | 1efcf98cb6e8c7086f38c6c0cbe5044c1d2e15c5 | 040bd05ca985931d776a28e7412eee6cb3808930 | refs/heads/main | 2023-05-07T12:39:23.468116 | 2021-05-26T07:28:06 | 2021-05-26T07:28:06 | 365,720,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | import device
import time
from threading import Thread
import sys
# Intervallo di tempo tra l'attivazione di ogni device (in secondi).
timeInt = 0.5
# Numero di letture da effettuare prima di comunicarle al gateway.
readAmount = 3
# Intervallo di tempo tra ogni lettura (in secondi).
readBreak = 2
# Numero d... | [
"pietro.pezzi3@studio.unibo.it"
] | pietro.pezzi3@studio.unibo.it |
9427dd2eb8619763631b53850f3d848d5866e9e7 | eacff46eda2c6b509449979a16002b96d4645d8e | /Collections-a-installer/community-general-2.4.0/plugins/modules/monitoring/airbrake_deployment.py | 3e7938bfba10ac8e1d2080f7ed8ae71ed9589628 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | d-amien-b/simple-getwordpress | 5e6d4d15d5f87124ab591e46b63fec552998fdc3 | da90d515a0aa837b633d50db4d91d22b031c04a2 | refs/heads/master | 2023-04-08T22:13:37.347545 | 2021-04-06T09:25:51 | 2021-04-06T09:25:51 | 351,698,069 | 0 | 0 | MIT | 2021-03-31T16:16:45 | 2021-03-26T07:30:00 | HTML | UTF-8 | Python | false | false | 6,696 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2013 Bruce Pennypacker <bruce@pennypacker.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: airb... | [
"test@burdo.fr"
] | test@burdo.fr |
e23d8667131d425957a2d499281cc4a48a30ab3c | 3ea7233cca492f36130e6e2da253409e90c97526 | /netneurotools/freesurfer.py | 0b73400b3235e911137fbdea37eb01f861ed03fb | [
"BSD-3-Clause"
] | permissive | giuliabaracc/netneurotools | b26aa43ec9a34bb2ce3da43a734c955edd375327 | 8532cc136261b6b70e40a63070a968a9b2519c3a | refs/heads/master | 2020-12-20T10:14:57.141250 | 2020-01-24T16:21:54 | 2020-01-24T16:21:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,795 | py | # -*- coding: utf-8 -*-
"""
Functions for working with FreeSurfer data and parcellations
"""
import os
import os.path as op
import warnings
from nibabel.freesurfer import read_annot, read_geometry
import numpy as np
from scipy.ndimage.measurements import _stats, labeled_comprehension
from scipy.spatial.distance impor... | [
"rossmarkello@gmail.com"
] | rossmarkello@gmail.com |
6b4427adecbd6d4a38872c33dcbca2e3d68aeb29 | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/batch/models/pool_delete_options.py | d959c796b779edb07a5117788f554dc19bb6cab6 | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 3,192 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
f1c6be714acc05c933ed4a627b677064ee9c889f | d26ddd67bff0e06be424f732d6b873f05a86fab3 | /applications/migrations/0004_auto_20200520_1009.py | a98a6d048f23f635941cadfab9f35567de3f4a28 | [] | no_license | TimaAvdrakh/univer | 28ace7afaf5f1d2651d57e4f30902b0da4b3fef4 | 41e3b7028c78b838177b918550ffaa5b29308a6d | refs/heads/master | 2022-12-08T02:09:53.491399 | 2020-08-05T04:40:19 | 2020-08-05T04:40:19 | 290,717,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 2.2.4 on 2020-05-20 10:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('applications', '0003_auto_20200430_0934'),
]
operations = [
migrations.AlterUniqueTogether(
name='subapplication',
unique_to... | [
"Beattle-b@yandex.ru"
] | Beattle-b@yandex.ru |
f2aadf9fbcc0ba25fb9b0f082ab2a60c6ebf40cf | 99fc13928b8efd37f19541446a3ff25171a515ea | /flask_api_crud/code/models/user.py | 3e00185de9255d83e76f4df693d764b77ef5069a | [] | no_license | clwest/crud_api | 1257e8966afdca0fc7c00db0f0ea5ebc33b45bda | 1692f303fe2a8a70bc340485b3fe32ab0bd02006 | refs/heads/master | 2023-06-16T10:58:29.084279 | 2021-07-15T17:36:30 | 2021-07-15T17:36:30 | 338,493,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from db import db
class UserModel(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80))
password = db.Column(db.String(80))
def __init__(self, username, password):
self.username = username
self.password = password
... | [
"westremarketing@gmail.com"
] | westremarketing@gmail.com |
cca3497ee130bfce32a0cdf927de5d4546b8238a | 667840e8de9972039dda4a86241ab3c902c108e3 | /affine_ctcf_matchings.py | 54e78c5b1618ea6d7618d2f7055362672def3138 | [] | no_license | CSE282Project/mainprojectcode | e986749a533257cdbf5b24275412feaa2134b614 | 0216c7dc4657036e2ddbcbe4ca47b8973fb405f8 | refs/heads/master | 2020-05-17T05:54:16.846427 | 2015-03-11T06:26:20 | 2015-03-11T06:26:20 | 30,937,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,890 | py | from sys import argv
from itertools import product
class Matching:
'''
A matching object is a collection of vertex-disjoint edges
'''
def __init__(self, edges = None):
if edges == None:
edges = []
self.vertices = set()
self.edges = []
self.add_edges(edges)
... | [
"arjunc12@gmail.com"
] | arjunc12@gmail.com |
bdce2a77a3125a7db599035c4836c071af0a44a6 | 5cf88e202a8d6bcb1c9b68173476bd9fd8510ebc | /main.py | 4c55c7e57b6f7336bc568e5218a1436b1976fc33 | [
"MIT"
] | permissive | i2nes/app-engine-blog | b2cd45821befaef9c78d0718c223626d0bc3107b | 94cdc25674c946ad643f7f140cbedf095773de3f | refs/heads/master | 2021-07-25T13:37:06.697703 | 2017-11-03T23:37:35 | 2017-11-03T23:37:35 | 106,749,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from app import create_app
from config import config, blog_config
app = create_app(config, blog_config)
| [
"joao.antunes@sky.uk"
] | joao.antunes@sky.uk |
202131d751e30e0b6464079f63e290c45a89c07a | 6cdff1cccb229bd98c7b7fce0ad3df32e4f04557 | /tests/conftest.py | 4eb8621c176f7ad405450bd91027044cc1498eb9 | [] | no_license | MITLibraries/workflow | fb8cbdf809702318c8d7c64307da90c0acda28cc | 63a17c3021e2bc0e0b13d22246ce3f13295349ca | refs/heads/main | 2023-03-04T10:38:12.270942 | 2021-07-08T18:06:16 | 2021-07-08T18:06:16 | 211,862,997 | 2 | 1 | null | 2023-02-08T01:14:43 | 2019-09-30T13:12:20 | Python | UTF-8 | Python | false | false | 3,108 | py | from collections import namedtuple
import json
from unittest import mock
import boto3
from moto import mock_ecs, mock_ec2
from moto.ec2.utils import generate_instance_identity_document
import pytest
from manager.cluster import Cluster
@pytest.fixture(autouse=True)
def aws_credentials(monkeypatch):
monkeypatch.s... | [
"mgraves@mit.edu"
] | mgraves@mit.edu |
e16189f36956843b3dfa3909dccea36da75ad30e | 5de4aed3d9a9230404150d4c3c553ea05ac4e088 | /afm/logger.py | c872f1d55b593e4a85f55bd2fb43d16e0e878e5a | [] | no_license | UfSoft/afm | db4df3189095aa916b3a3f770d5366bb3e0a9b74 | 2e85c65389a10f7bed032956b0c603bbb2af2dac | refs/heads/master | 2021-01-19T13:25:08.121356 | 2009-10-29T15:24:49 | 2009-10-29T15:24:49 | 26,618,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | # -*- coding: utf-8 -*-
# vim: sw=4 ts=4 fenc=utf-8 et
# ==============================================================================
# Copyright © 2009 UfSoft.org - Pedro Algarvio <ufs@ufsoft.org>
#
# License: BSD - Please view the LICENSE file for additional information.
# ==========================================... | [
"ufs@ufsoft.org"
] | ufs@ufsoft.org |
3e0de5cb556e7c8e5d1c6598623bb17beae6bb7c | 369061ac4e2fcbac7ee4e4cd7e06e4712ed5884f | /travell/whole/apps.py | d90f2a1ad2a4f8a8182dbc5c5381ee525c7eb7ae | [] | no_license | saurabh32-cell/Real-world | ebe1dc46649f61ff9e442dd7370385ab478279f4 | cb121dda0aabe31a684c546ae3a45ad0b2d5d9a6 | refs/heads/master | 2023-07-22T04:34:43.320172 | 2021-08-31T10:41:07 | 2021-08-31T10:41:07 | 400,728,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class WholeConfig(AppConfig):
name = 'whole'
| [
"saurabh32-cell"
] | saurabh32-cell |
870ddd8535f2ebfe0c5101edf3aa733366abd305 | edb198afa6cde22041c4caab39c6c4bd7bc89d30 | /src/lib/server/presenterserver/common/presenter_socket_server.py | 6bc375f1e1393440e1b24e40d836bea29e2bbd1b | [
"Apache-2.0"
] | permissive | Dedederek/HiFly_Drone | 24119d382b356d0dc997c7273728bc2a8bfa87a0 | 1e523d776474f4e17b18f53e6f1ea9916f28050d | refs/heads/main | 2023-06-18T03:37:41.618258 | 2021-07-07T20:48:06 | 2021-07-07T20:48:06 | 383,921,036 | 0 | 0 | Apache-2.0 | 2021-07-07T20:47:31 | 2021-07-07T20:47:30 | null | UTF-8 | Python | false | false | 18,360 | py | # =======================================================================
#
# Copyright (C) 2018, Hisilicon Technologies Co., Ltd. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1 Redistrib... | [
"hardyshongyijin@gmail.com"
] | hardyshongyijin@gmail.com |
ee115ea926c68bbd2775e5a2cedf7635265e9c69 | 30f7dd10d4facde13b918c7c3e5c9fee50abfd69 | /audio_dev.py | 2df08a8bfb9c9e5e90a1da969c4c347d455c9439 | [] | no_license | RochSchanen/audio | 5e6cbd84b5e88e5c2176013e89b06728aa2d690f | af9aa8ed6ae76bfb3397b7b96e88d0a4eda38632 | refs/heads/main | 2023-02-11T20:01:10.918983 | 2021-01-08T17:20:09 | 2021-01-08T17:20:09 | 323,748,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,390 | py | #! /usr/bin/python3
# file: audio.py
# created: 20201220
# author: roch schanen
# comment: > chmod u+x audio_dev.py
# comment: > ./audio_dev.py
# comment: > aplay sound.wav
# __DEBUG__ = True
# from numpy import array
# from numpy import append
# from numpy import empty
# from numpy import iinfo
# from numpy import fi... | [
"schanen@lancaster.ac.uk"
] | schanen@lancaster.ac.uk |
05c686e57349070729fed3e90271c155029b76cb | 25ad906181ae94f3423a5330b06112faaf1d0059 | /python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/curl转python/test.py | 1063f2c551f1e27ed86e7b64a5c2a17899e79e4f | [] | no_license | liuhe3647/python | 5ee0aff3f2bbff864fdb86db0371d0a07745dc26 | 4368cab542f4d2b1ecc845ff996e8898a9aaaca6 | refs/heads/master | 2022-04-18T15:56:45.263684 | 2020-04-18T03:43:18 | 2020-04-18T03:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,293 | py | # coding:utf-8
'''
@author = super_fazai
@File : test.py
@connect : superonesfazai@gmail.com
'''
from __future__ import unicode_literals
from ftfy import fix_text
from random import randint
from urllib.parse import (
urlparse,
parse_qsl,
urlencode,)
from fzutils.ip_pools import (
fz_ip_pool,
i... | [
"superonesfazai@gmail.com"
] | superonesfazai@gmail.com |
bb6c3b64422418aee867dca1dbec924a6ffc67c5 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4455603.3.spec | 4b1c58937e8cd790c55d073e3e63567e8ee9b14f | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,310 | spec | {
"id": "mgm4455603.3",
"metadata": {
"mgm4455603.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
7bf9961f9abe963c51fc315c0be7e3c57d39a529 | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2023/longest_nice_substring.py | a832858e6eafd4d321f1afb296fd2304b2ca0cb5 | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 449 | py | """
https://leetcode.com/problems/longest-nice-substring/
"""
class Solution:
def longestNiceSubstring(self, s: str) -> str:
if not s:
return ''
ss = set(s)
for i, c in enumerate(s):
if c.swapcase() not in ss:
left = self.longestNiceSubstring(s[:i])... | [
"mengyu.jiang@gmail.com"
] | mengyu.jiang@gmail.com |
eff964f095873cb135849614ed7d198f9273a967 | 49124113dd02d123f1d8e42a72f78b8b3ecfada8 | /crawler/bin/cc.py | 495bfb5e324d0876dd9ac4a149709ba2687fca87 | [] | no_license | CheungZeeCn/dmClassProj_weiboCircle | 073d7e41289ff3e1c2d233a997e5a2a9c6ceef84 | 507996dcfb50f47f2cf7c36d2b203a4e06a914a1 | refs/heads/master | 2021-01-19T00:12:54.055594 | 2014-01-16T07:17:34 | 2014-01-16T07:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,412 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# by zhangzhi @2013-11-30 16:52:56
# Copyright 2013 NONE rights reserved.
import weibo_login
import conf
import util
import dataUtil
import urllib2
import surf
import logging
import os
import pickle
import signal
import time
g_userResF = 'userRes.pickle'
g_out = set()... | [
"cheungzeecn@gmail.com"
] | cheungzeecn@gmail.com |
3cbea014ca4c3557f1dc31bf8b7e06b3fc86b32f | 37b27a03d2730550b4f0bcb33db596ab2a59ec55 | /cm_demo.py | 3892443d8c32b0c9fccc0be9fa2df58fee162c36 | [] | no_license | nrclark/kymeta-sample | 615feb3e75c5a59930a10e30e81d5df339335c5e | ff573e84ddb0f9ddffcfa4d20c29777b7f2176ce | refs/heads/master | 2020-12-03T18:27:55.076580 | 2020-01-02T22:11:05 | 2020-01-02T22:11:05 | 231,430,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/env python3
""" Example code that exercises customer_management.py """
import customer_management as cm
def main():
""" Sample routine to read an external file and print a ledger. """
ledger = cm.Ledger()
json_data = open('cm_demo.json').read()
ledger.import_json(json_data)
print(l... | [
"nicholas.clark@gmail.com"
] | nicholas.clark@gmail.com |
7fc33fe13ad8e58b553e9fcac5d4ba7cdf292b8f | f9ab83d8a2f1e0e96be29e2942d200915a1e3dee | /4.23/bilibili/.ipynb_checkpoints/gc-checkpoint.py | 583e0ab5fdc72a55f91774ff05c7b76e326f941a | [] | no_license | heathcliff233/ai_programming | 5c145bba6ced1738eb02cc4aaeb69f75708848a5 | d7a6d899b81335ac74c97337dcbc72c89a71f26b | refs/heads/master | 2020-05-17T19:15:30.611276 | 2019-07-11T13:26:20 | 2019-07-11T13:26:20 | 183,906,331 | 1 | 0 | null | 2020-02-22T05:53:51 | 2019-04-28T12:37:34 | Jupyter Notebook | UTF-8 | Python | false | false | 2,501 | py | # -*- coding: utf-8 -*-
"""
Basic idea of the program:
1. Grab a few webpages from sina and extract the roll news subjects
2. Segment words using Python the package jieba
2.1 Filter out the stop words
2.2 Only keep nouns
3. Load all the words(with some appearing multiple times) into the... | [
"brighthong233@gmail.com"
] | brighthong233@gmail.com |
4a10a13c8f0a37ceb9c6fe88a0f94457cc76f7bf | 58a373fda9c8b2ec3cb40c84ccbc36332f7d0561 | /tests.py | a5fe75a9799fb8848fe9eb0b8c55f0a0af129d22 | [
"MIT"
] | permissive | aniruddhachoudhury/mbtr | 672d9a4a792c6071f7067a5f2157d3be26d5a947 | ce413c60fa91ed8e5c22453dfee2217edfb8e56c | refs/heads/master | 2022-12-31T03:16:13.076155 | 2020-10-22T16:28:30 | 2020-10-22T16:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import runpy
import os
import mbtr
mbtr.splash()
print('Commencing tests...')
k = os.path.dirname(os.path.realpath(__file__))
os.chdir(k)
print('standalone tests...')
runpy.run_path('tests/standalone_tests.py', run_name='__main__')
| [
"vasco.medici@gmail.com"
] | vasco.medici@gmail.com |
abbb45d65c617f8debfb4c0c3238b51eb2986029 | 2fd3d7a7c676a89a961cea12167020e5c742761a | /FibonaChicken.6.py | 665ed364a38b0d99a445364fac82b5f70c211a09 | [
"CC0-1.0"
] | permissive | Python-Repository-Hub/fibona-chicken-number | 773cbde7f269280498c3602dfacd470373c9e718 | 1158ea27c06487edcf15e28515b04c15118f4e60 | refs/heads/main | 2023-04-17T01:01:42.287165 | 2021-05-06T21:18:23 | 2021-05-06T21:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | '''
Applying Zeckendorf's Decomposition for a Number Which is NOT a Fibonacci Number.
'''
from math import sqrt, log, floor
phi = (1 + sqrt(5)) / 2
phi_ = 1 - phi
def Binet(i):
return round((phi ** i - phi_ ** i) / sqrt(5))
def inverse_fibonacci(N):
return round(log(sqrt(5) * N) / log(phi))
def is_perfect(... | [
"joonion@gmail.com"
] | joonion@gmail.com |
d6f86c9d6779bc60ff65165127c286c7a59b7925 | 94014307ef501c4494a7b3eed5a3c6146d4ade63 | /20200907/ExpreCodeDemo.py | 8c380e44222d20c0222abddda4e63be8a116ade4 | [] | no_license | lly1997/pythonTest | 3413734445ecce02676ecc3d16d4d40d41cdebc0 | a8b20cdabe2b9f55b393cfa557f51787b413206b | refs/heads/master | 2022-12-07T21:49:01.578863 | 2020-09-07T08:52:25 | 2020-09-07T08:52:25 | 292,137,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # l1=[i for i in range(20) if i%3==0 and i!=0]
# print(l1)
# print(sum((i for i in range(2000000000) if i%3==0 and i!=0)))
print("9++++++++++++++++++++++++++++++++++++++++++")
fileobj=open("../../lianxi.txt","r+")
strcode='add add aaaioio'
# fileobj.write(strcode)
# fileobj.flush()
strcode=fileobj.read()
strdict={... | [
"lianliyong@lianliyong.com"
] | lianliyong@lianliyong.com |
961c1d870a4bc91d98be1c1c362104544c60d352 | 0e7847ecd12cb86749841535cd3bcfd7ccfd1705 | /pyTCExamHtmlWindowQuestionGui.py | 103b01bd03080c35c65b7991ce0dd134c3edaac2 | [] | no_license | insomnia-soft/pyTCExam | 17f57ddccc7dee56a4789ffd342dce6fd49674c1 | 6c9eb8654c3d283a14462a218293cb258e987819 | refs/heads/master | 2021-01-22T11:20:43.056325 | 2015-08-30T23:00:54 | 2015-08-30T23:00:54 | 35,804,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,977 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import wx
import wx.html as html
import wx.lib.wxpTag
import pyTCExam
import pyTCExamCommon
#----------------------------------------------------------------------
#----------------------------------------------------------------------
#-----------------------------------... | [
"insomnia.soft.git@gmail.com"
] | insomnia.soft.git@gmail.com |
7d8d774734f7c7972ad8b0af987928e389fc3728 | df4228e2734bea9d5ff1908705683672f6561044 | /viceversion/asgi.py | ad9e43060a627bfe4d83b276a9270390af209eec | [] | no_license | Stazzz544/viceversa-project | 67431f8830a4ada04e2814acb2116e168581dbc2 | 5b49cfbb0873c1bb18f1b6416fb0e9895aa713c0 | refs/heads/master | 2022-12-28T10:22:20.195692 | 2020-09-28T16:43:58 | 2020-09-28T16:43:58 | 299,278,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for viceversion project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"stazzzdzr@gmail.com"
] | stazzzdzr@gmail.com |
dec8c19c8e2aefadf43e0d18ca81cf5d267b3c00 | 5c915d43fc4fc883a47eb6bf584dfa4a91ac93c5 | /tests/physics/helicityformalism/test_canonical.py | 68b747424dd641ce7a0b0008ab4a55555b8aa0cd | [] | no_license | spflueger/tensorwaves | e2fab0f8d493f00f90149ef7ff3062ac6e4e156e | 323576944cdc189b6c560301395afa6c08628265 | refs/heads/master | 2021-08-17T23:51:04.105559 | 2020-08-07T14:10:50 | 2020-08-07T14:16:19 | 244,342,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,026 | py | import math
import pytest # type: ignore
from tensorwaves.physics.helicity_formalism.amplitude import (
_clebsch_gordan_coefficient,
_determine_canonical_prefactor,
_get_orbital_angular_momentum,
)
@pytest.mark.parametrize(
"test_recipe, expected_value",
[
({"J": 1.0, "M": 1.0, "j1": 0.... | [
"noreply@github.com"
] | spflueger.noreply@github.com |
ef79a4d63a49d14bf5e3079c3c27e76024d83212 | ae6177cf2ebe87c3749f03e0ffaade2dac8b8688 | /AulasPython/Parte2/Semana2/maiusculas.py | 79905531de3a2f72b960d9e9e95d48bc6330da18 | [] | no_license | jmarq76/Learning_Programming | 8a7c598a733c1ba9983103e4aa284bed80ffabbe | bf15d351e239529645fb74a355e296d085683921 | refs/heads/master | 2022-11-17T23:03:32.236684 | 2020-07-07T12:05:56 | 2020-07-07T12:05:56 | 277,804,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | def maiusculas(frase):
''' Recebe uma frase e devolve string com as letras maiúsculas que existem
nesta frase, na ordem que elas aparecem'''
maiusculas = ""
for i in frase:
if ord(i) > 64 and ord(i) < 91:
maiusculas = maiusculas + i
return maiusculas
| [
"58978254+jmarq76@users.noreply.github.com"
] | 58978254+jmarq76@users.noreply.github.com |
6fbdb7bdc4a9bfbef4af7b925d463d3295fb2859 | 1f05f590241ef931fde1db93680007732bf4b48f | /resizer.py | 319a3a3f02642c38083f17ceb22d97726ee6a159 | [] | no_license | kevinlela/EasyImageCustomizer | 7e6da2d4d9092f56d1c7ed546377d956033b3f32 | ecbbaf9159a61de15abda36b594e6a64d8b49201 | refs/heads/master | 2020-03-22T01:24:49.737352 | 2018-07-01T05:55:29 | 2018-07-01T05:55:29 | 139,303,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import sys
sys.path.append("/Users/xiaqingpan/Library/Python/2.7/bin")
from skimage import data
from skimage.transform import resize
from skimage import io
def resizer(img, width, height):
resize(img, (width, height))
return img;
image = data.camera()
io.imsave("origin.png", image)
image = resizer(image,... | [
"xiaqingp@gmail.com"
] | xiaqingp@gmail.com |
287ab5a78ec8d237777d9426dded532406192c74 | 53bd50bd01232eda47434ab5f99072dee7409829 | /Python/python_stack/myEnvironments/django_app/apps/surveys/urls.py | 93af08423e2d1c06741d1f9f73f856a926881095 | [] | no_license | WarrenHellman/University | 1f3e4dd0065b040a0f9b38317be96d739fa2ff68 | 3978b68910de06836f5cfd5c7ede687b444b70c9 | refs/heads/master | 2020-03-27T11:26:43.556660 | 2019-01-11T00:50:19 | 2019-01-11T00:50:19 | 146,487,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^surveys$', views.index),
url(r'^surveys/new$', views.new)
] | [
"w.e.hellman@gmail.com"
] | w.e.hellman@gmail.com |
d09e307bed163dcd5d241a3e519b081042bc41e2 | 09a2e7152ddbe99f98133b5906f80652bb2cbfe5 | /server/src/test_client.py | 93d9dde3d45c7637fb31727e6ac0dc8739eb2914 | [] | no_license | yaliu0703/PythonCode | 1fada1b1c170e33339d60dcaa267659c821b3857 | eb7bff39b2a84b9268e37a3a8d6fc57114ae34f5 | refs/heads/master | 2020-08-30T07:47:36.697910 | 2019-11-01T05:26:31 | 2019-11-01T05:26:31 | 218,309,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | # -*- coding: UTF-8 -*-
'''
Created on 2016年6月30日
@author: lfy
'''
from socket import *
from string import *
from sys import *
from threading import *
from select import *
from time import *
import socket, string, select, sys, threading, time, os, struct
#main function
if __name__ == "__main__":
#host, port = so... | [
"lujza.qq"
] | lujza.qq |
cce44d4896db289d833b4ab7a0d74363793fcbff | 0694071162d7f3c60292a3bf42995b7dc7fa74f0 | /cmdb/agent/models.py | d630a0c7ac60990d89ba71cb516c04fd36203850 | [
"MIT"
] | permissive | InformationX/easyCMDB | 4b0215c3f64b4fddc4a5a858427377cbede4e946 | 919050481fe4eab485ecaffcd4d6329020b9b41e | refs/heads/master | 2020-09-21T10:43:26.355124 | 2018-03-28T06:28:42 | 2018-03-28T06:28:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | from django.db import models
from django.core.exceptions import ObjectDoesNotExist
from django.utils import timezone
import datetime
# Create your models here.
class ASDictMixin:
def as_dict(self):
dict = {}
for key, value in self.__dict__.items():
if isinstance(value, (int, float, str... | [
"1046710938@qq.com"
] | 1046710938@qq.com |
1ebcd378f007964e3b29cc790ed88d7a8bd87369 | d3f5eb057e9efbbd71dceb8d2af380b9d9d7ab6a | /csopen/core/tests/test_api_supplier.py | 4dd90be2a3f1d61d4880e7147b4698065bd67e45 | [] | no_license | henemer/csopen | 6734a403dd65a0842bf74cdddb6b9fc2097b10d0 | dea56bc320bc0284006518dbf0e3bb44ab399dfd | refs/heads/master | 2021-01-10T10:39:46.341798 | 2016-04-29T17:50:22 | 2016-04-29T17:50:22 | 51,755,274 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | from csopen.core.models import Supplier
from django.test import TestCase
from django_extensions.db.fields import json
from rest_framework.test import APIClient
class SupplierModelTest(TestCase):
def setUp(self):
self.client = APIClient()
self.obj = Supplier(
code=1,
company... | [
"emerson@henning.com.br"
] | emerson@henning.com.br |
1607a3e3331e20d9281ee04b374c3d4ea110cb01 | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch21/ex21-15.pybench2.py | a110d546ad7c35d5e88ae11bbd6ee12cc27e3857 | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | # pybench2.py
...
def runner(stmts, pythons=None, tracemd=False):
for (number, repeat, setup, stmt) in stmts:
if not pythons:
...
best = min(timeit.repeat(
setup=setup, stmt=stmt, number=number, repeat=repeat))
else:
setup = setup.replace('\t', ' ... | [
"freebz@hananet.net"
] | freebz@hananet.net |
8709aa8d2425d2e8c07103a8eba6bda48f9330fb | 431445d1674fbd4f04b68e930343862e1a075260 | /AdslProxy/adslproxy/db.py | 71aa312853677fdcd642590c39c4a78782d99a14 | [] | no_license | bowtcn/spider_collection | 409e49ac4e86695827d874038d7a21823c6a0c17 | 192ce5e3ea423c504393f6fef483f08336f184fa | refs/heads/master | 2020-07-07T12:38:08.594701 | 2018-07-19T03:32:25 | 2018-07-19T03:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | import redis
import random
# Redis数据库IP
REDIS_HOST = '8.8.8.8'
# Redis数据库密码, 如无则填None
REDIS_PASSWORD = '123456'
# Redis数据库端口
REDIS_PORT = 6379
# 代理池键名
PROXY_KEY = 'adsl'
class RedisClient(object):
def __init__(self, host=REDIS_HOST, port=REDIS_PORT, password=REDIS_PASSWORD, proxy_key=PROXY_KEY):
"""
... | [
"153329152@qq.com"
] | 153329152@qq.com |
9b4aeca7aaf8054a65b69e335967fec315c3caba | 4591a91b39bf975b0779482ce4a908a9dc2cc17d | /trainServer/src/ActivateFunc.py | dde99a301d061a067da4ecdff31cddcb455ea887 | [] | no_license | hongquanzhou/bear_fault_diagnose | bcaf2f386c86dab28fc5fcdbca2d60fec6ae1a04 | 5f65c5f33bc253a03ebd3a2ef99cb127208831b7 | refs/heads/master | 2023-04-14T04:40:02.223660 | 2021-04-26T07:16:46 | 2021-04-26T07:16:46 | 286,705,838 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from enum import Enum
class ActivateFunc(Enum):
elu = 'elu'
exponential = 'exponential'
hard_sigmoid = 'hard_sigmoid'
liner = 'liner'
relu = 'relu'
selu = 'selu'
sigmoid = 'sigmoid'
softmax = 'softmax'
softplus = 'softplus'
softsign = 'softsign'
tanh = 'tanh'
| [
"18121350@bjtu.edu.cn"
] | 18121350@bjtu.edu.cn |
1eda0b8f2f98f764ee5779f297abf8a6c8d28ac8 | 2da754bca0a676402e8030dd9c195e062b3ace7e | /forensics/mac_to_location/mac_to_location.py | 480c9740e69260ce683b6b9a56e95793a3b14db5 | [] | no_license | supraz/hoax | b9735ced783db049ab0aae61596c0c97b95fb8a3 | 7f4353e44ef585cd85aeb6533b78efa75dbee6c4 | refs/heads/master | 2021-01-18T19:19:21.393663 | 2013-12-22T21:49:45 | 2013-12-22T21:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | import mechanize
import urllib
import urlparse
import re
# didn't forget to remove these :-)
USERNAME = 'devsupraz0'
PASSWORD = 'devsupraz123'
SAMPLE_MAC = '0A:2C:EF:3D:25:1B'
def wigle_print(username, password, netid):
browser = mechanize.Browser()
browser.open('http://wigle.net')
request_data = urllib.... | [
"supraz69@gmail.com"
] | supraz69@gmail.com |
552fabaac23280042b2ab4a761df1d8b4eca7d0f | 0fad0cf1a7b8e6d41fb86d8dc8f0e747fff808af | /models/cifar/resnet.py | b81c51598afd97b0a9034aed50c07728184a5886 | [
"MIT"
] | permissive | suyanzhou626/DHM | bcb33f8409da98c1f99a095425e77226f9148cd5 | c67639df309397e01e20f071e7f50f9de5c1c839 | refs/heads/master | 2022-11-18T06:55:17.749736 | 2020-07-16T02:54:08 | 2020-07-16T02:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,104 | py | from __future__ import absolute_import
'''Resnet for cifar dataset.
Ported form
https://github.com/facebook/fb.resnet.torch
and
https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py
(c) YANG, Wei
'''
import torch
import torch.nn as nn
import math
__all__ = ['ResNet', 'resnet32', 'resnet110', 're... | [
"liduo95@gmail.com"
] | liduo95@gmail.com |
573ee99b7b9e199d81be42bbe4e61d9478eca3da | a6676ff9a9c656c163692d0958a2e3beda2912d2 | /python dersleri/stringsQuiz.py | 63fba2f937867974f3aec5c9cfce897ddf15ef46 | [
"Apache-2.0"
] | permissive | HaNuNa42/pythonDersleri | ba937fddb026c8a70255e41af376fae88e57fafa | f21d4cdc5a99398d4ebdefda9224cb6e86cf755b | refs/heads/master | 2022-12-05T06:55:52.754261 | 2020-07-28T05:41:07 | 2020-07-28T05:41:07 | 263,439,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | website = "http://www.google.com"
course = "Python Kursu"
# 1- 'course' karakter dizisinde kaç karakter bulunmaktadır ?
result = len(course)
length = len(website)
# 2- 'website' içinden www karakterlerini alın.
result = website[7:10]
# 3- 'website' içinden com karakterlerini alın.
result = website[22:25]
result = w... | [
"noreply@github.com"
] | HaNuNa42.noreply@github.com |
b1846eb652d0d9d08bcf70f40a2fa64db21b295c | 6c26277b61ec3c41a9e8c238d3e058abce4a36e8 | /scrapy/FirstScrapy.py | bbc593270ef5384622cbd1d655c702b5c9fbdf5f | [
"Apache-2.0"
] | permissive | liusong-cn/python | 1eda7b15f01e6958ceaa8eb7e9435a9da01ec6c4 | 4143660f1a28e8a19a620e66cfc552f8d29c2946 | refs/heads/master | 2023-04-14T10:24:09.679958 | 2023-04-05T15:49:13 | 2023-04-05T15:49:13 | 221,226,548 | 1 | 2 | Apache-2.0 | 2021-09-25T04:09:42 | 2019-11-12T13:38:32 | Python | UTF-8 | Python | false | false | 204 | py | import requests as r
#首次利用python爬取网页数据,get方式爬取
url = 'http://news.sina.com.cn/s/2019-06-05/doc-ihvhiews6901394.shtml'
html = r.get(url)
html.encoding='utf-8'
print(html.text) | [
"liusong@glaway.com"
] | liusong@glaway.com |
000fe5fe6d7a41642db55280e7a0463e118c759e | 80301f1cffc5afce13256e2ecab6323c5df00194 | /en.fc/py/E0001.py | fe101d453fb481e13f8ba0eeffa341ab4c59e54f | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 28,509 | py | from ED6ScenarioHelper import *
def main():
SetCodePage("ms932")
CreateScenaFile(
FileName = 'E0001 ._SN',
MapName = 'event',
Location = 'E0001.x',
MapIndex = 1,
MapDefaultBGM = "ed60010",
Flags ... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
e3a20c33463c6737ce0a9c7ef85e374de481845f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /wsCshmu5zkN5BfeAC_11.py | 16ee4c11004690dd94154fad7dd29ce965bcbb66 | [] | 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 | 739 | py | """
Create a function that takes a number `n` and checks if each digit is
divisible by the digit on its left. Return a boolean array depending on the
condition checks.
### Examples
divisible_by_left(73312) ➞ [False, False, True, False, True]
# no element left to 7 = False
# 3/7 = False
# 3/3 = True... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7586f2806ece479ea1e2d474b53558d8c88144b2 | fdc3d2daf484e8b500368987930d85b833d43fd6 | /sandbox/python/spectrogram3.py | 07bb5de54e8d25c13ce1d5af9224dc0a0bb27ecc | [] | no_license | luiarthur/signal_processing | 9d61b368603b965ab526b9226a1114022e08463b | f6f00ce57b94bfa020ac494fcb4e83549d05c902 | refs/heads/master | 2021-01-01T19:47:45.076460 | 2017-08-12T15:50:18 | 2017-08-12T15:50:18 | 98,684,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import os
import numpy as np
from scipy.io import wavfile
from scipy import signal
import matplotlib.pyplot as plt
from notes import pitch, piano_freq, freq_dict, bin_spec
HOME = os.path.expanduser('~')
### Read a wavfile
(fs, x) = wavfile.read(HOME+"/wav/embraceableYou.wav")
if x.ndim > 1: x = x[:,1]
w_size = 409... | [
"luiarthur@gmail.com"
] | luiarthur@gmail.com |
5410fb3ad8321f769a3d458d24d4a3f211d4f57a | e3bfccdcb93891232e414747dd9f23d9a3137755 | /docs/conf.py | 725965d0deb5bd2caa6c94ca7e8192c7e8ffaa29 | [
"MIT"
] | permissive | jclachance/BOFdat | 59d09930d3abdb61a48ec9901b8c8708abf2c279 | cf2de074c2d789ad47b890083cbbffadab40f177 | refs/heads/master | 2023-07-22T22:28:19.880579 | 2019-07-23T14:25:16 | 2019-07-23T14:25:16 | 91,520,195 | 25 | 6 | NOASSERTION | 2023-07-06T21:16:15 | 2017-05-17T01:26:21 | Jupyter Notebook | UTF-8 | Python | false | false | 6,307 | py | # -*- coding: utf-8 -*-
#
# biomass documentation build configuration file, created by
# sphinx-quickstart on Thu Oct 19 19:59:51 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | [
"jelachance@eng.ucsd.edu"
] | jelachance@eng.ucsd.edu |
4b9c499c4cf735c4bbb7e381d11f44e4a1d22ac8 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/byte/Schema+Instance/NISTXML-SV-IV-atomic-byte-maxExclusive-5-3.py | f378841d6d0ec8179638494024c1501e673c1b5e | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 259 | py | from output.models.nist_data.atomic.byte.schema_instance.nistschema_sv_iv_atomic_byte_max_exclusive_5_xsd.nistschema_sv_iv_atomic_byte_max_exclusive_5 import NistschemaSvIvAtomicByteMaxExclusive5
obj = NistschemaSvIvAtomicByteMaxExclusive5(
value=-73
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
7603c91ae6ea657f35d7fc00dd178dec90f24380 | ab13c7352dd5174032ff9a5806d1e4fa3c38b8b2 | /test_circuit.py | 6216cd1114ed5db5a7fa04b1a1c721abdff82ea5 | [] | no_license | will8s/pj-theorie-graphe | ab8f9f3ec00d1b49e3f8cce53aba653a756d5a80 | 7be8de13678bc42eb968c2818ed224776820b8da | refs/heads/master | 2022-04-25T18:00:10.900120 | 2020-04-25T20:49:27 | 2020-04-25T20:49:27 | 255,648,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | def test_circuit(self):
#on utilise la matrice de d'adjacence pour savoir si il y a un circuit
#definition circuit :
#un circuit n'a pas de point d'entré : pas de noeuds qui sont seulement des etats initiaux
#un circuit n'a pas de point d'sorti : pas de noeuds qui sont seulement des états finaux
http://www.momiran... | [
"williamlemoal@gmail.com"
] | williamlemoal@gmail.com |
77a69cba5f3bc6967941cc5a0afc8c514aed3461 | e7000ae9b0704a4edeaed1f24ce87442e616059a | /django/manage.py | 7a9b7b9764f87f4c2677f4e85a6f2fbc6cf4b6dd | [] | no_license | adamlj/bcg | 811c4c1c706440ae1ded35a6415874bc8e90d84d | 3b0811d08d9aaf077d1df39f7adfb82f29bab9d1 | refs/heads/master | 2022-12-12T17:49:08.167722 | 2020-05-11T13:39:02 | 2020-05-11T13:39:02 | 253,270,016 | 0 | 0 | null | 2022-12-08T04:00:23 | 2020-04-05T15:41:40 | JavaScript | UTF-8 | Python | false | false | 599 | py | #!/usr/bin/env python
import os
import sys
def main():
env = os.getenv('ENV', 'local')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', f"core.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't... | [
"adam.lj@gmail.com"
] | adam.lj@gmail.com |
f2c1fa65055ab7e99ef7cf1412927d159b6f24df | 2e42938e48b54fc2fbdc72c0c251f63d43710f68 | /autodecrypt/pongo.py | b9c2327f161b9e5874243094ae4cb26f20c53c2d | [
"MIT"
] | permissive | matteyeux/autodecrypt | b8b3e16d99d2c59b61c8ee6f5b9cbdae09cfb6e9 | 15cb32927c1be8a8ce583e2c0a742561b43f274b | refs/heads/main | 2023-06-07T12:48:14.479707 | 2023-03-01T20:34:14 | 2023-03-01T20:34:14 | 171,001,021 | 161 | 39 | MIT | 2023-05-31T16:56:32 | 2019-02-16T12:23:37 | Python | UTF-8 | Python | false | false | 633 | py | import usb.core
def pongo_send_command(command: str):
"""Send command to Pongo device."""
dev = usb.core.find(idVendor=0x05AC, idProduct=0x4141)
if dev is None:
return None
dev.set_configuration()
dev.ctrl_transfer(0x21, 4, 0, 0, 0)
dev.ctrl_transfer(0x21, 3, 0, 0, command + "\n")
d... | [
"mathieu.hautebas@gmail.com"
] | mathieu.hautebas@gmail.com |
212803a1285712ef30c6bf9d40459200d7aecd3a | e520cf1a063fe98f5c8815f4bcc8f7bdce7343d2 | /continue.py | 72e295eef08beb24afb394f3d1af87b5cc35f620 | [] | no_license | meinagong/python | 4282ad57cd07070e6f42233af898a879fcce18b3 | 6a7a01cd9d5da6f5762c0878d39972354547fec1 | refs/heads/main | 2022-08-20T00:30:46.001070 | 2022-07-29T11:18:40 | 2022-07-29T11:18:40 | 397,453,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | numer = 0
denom = 0
while denom != -1:
print("Enter a numerator: ")
numer = float(input())
print("Enter a denominator: ")
denom = float(input())
if denom == 0:
continue
print(numer / denom)
| [
"meinagong@gmail.com"
] | meinagong@gmail.com |
ac7dbcc29cd94b930311b689f769330072f16e55 | ef87282b947d99bae7e15e91990c21f4078781c9 | /miles_to_km.py | 988f29cfa1b05ebcdd36ea07737596958bb23026 | [] | no_license | Srinivasaraghavansj/Python-Programs | d61cf559e72f5f3c84fefd71905223f532ac5878 | c97ca67d5e555aa86f92bdb4453dddafd8de84fb | refs/heads/main | 2023-05-29T13:26:19.472261 | 2021-06-20T10:16:06 | 2021-06-20T10:16:06 | 378,598,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | def convert_distance(miles):
km = round(miles * 1.6,1)
result = f"{miles} miles equals {km} km"
return result
print(convert_distance(12)) # Should be: 12 miles equals 19.2 km
print(convert_distance(5.5)) # Should be: 5.5 miles equals 8.8 km
print(convert_distance(11)) # Should be: 11 miles equals 17.6 km | [
"noreply@github.com"
] | Srinivasaraghavansj.noreply@github.com |
6d74c1aed3f04b1afa8580c60a0f4ef52f33cf6a | d6c890cafcabb30215317fda876c969d541ddd5e | /classify.py | 0be93abeadaccfb7827ec829867ad7be088714b3 | [] | no_license | kfcpaladin/makers-games-boral | 838f97d6c278fe59035f00c4935889edca404925 | 6c34329595ec15f5705b576b266d982a93961a37 | refs/heads/master | 2022-12-08T07:55:36.313523 | 2019-07-10T11:12:40 | 2019-07-10T11:12:40 | 196,190,414 | 0 | 0 | null | 2022-11-21T22:04:35 | 2019-07-10T11:11:50 | Python | UTF-8 | Python | false | false | 1,712 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tensorflow as tf
import sys
import os
import base64
# Disable tensorflow compilation warnings
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf
def getModelResponse(imagePath):
print ("getting model response")
# Read the image_data
image... | [
"doommaster3214@gmail.com"
] | doommaster3214@gmail.com |
499219ab593d7651569b9fc86e1d2809c14ab393 | f95cd23d01ebc53c872052a299ffdbe26736c449 | /4. String Algorithms/Programming-Assignment-1/trie_matching/trie_matching.py | fd32086f09af9c49a0e5a32c32e6d85c42bc3caf | [
"MIT"
] | permissive | manparvesh/coursera-ds-algorithms | 4126492a1ea46694c6a5cfab843addac68c21749 | 99e08921c0c0271e66a9aea42e7d38b7df494007 | refs/heads/master | 2021-06-18T15:22:35.467761 | 2020-10-05T02:54:33 | 2020-10-05T02:54:33 | 101,484,382 | 63 | 50 | MIT | 2023-06-16T20:11:58 | 2017-08-26T12:28:34 | C++ | UTF-8 | Python | false | false | 1,212 | py | # python3
import sys
def build_trie(patterns):
tree = { 0: { } }
# write your code here
tree_index = 0
for pattern in patterns:
current_node = tree[0]
for letter in pattern:
if letter in current_node:
current_node = tree[current_node[letter]]
else:
tree_index +=... | [
"manparveshsinghrandhawa@gmail.com"
] | manparveshsinghrandhawa@gmail.com |
47a112ee16196e739b06cf29dc87bb9fe6694f87 | 18508cea9458b2879017b44e6f18520cd8cf4f6c | /UCMDBPython/src/eview_resources.py | ec0e87b018aafd0657874aaf533d7204eb5a8157 | [] | no_license | kvt11/dd-git | 7d4935962e06d835ad0023c4abb185876a5a9e77 | 49aafa7081b861c5f6d0e1753b425e78948116d0 | refs/heads/master | 2022-11-23T19:03:19.763423 | 2016-04-04T14:54:18 | 2016-04-04T14:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,215 | py | #
# Host Resource Discovery by Eview
#
# Created on Sep 20, 2010
#
# @author: kchhina
#
# CP8 - Intial version
# CP9 - Added Dasd storage discovery for CP9 March 31,2011 podom
# CP9 - Added FORMAT=SHORT and MAX=* to commands for defects to force the output of the commands podom
# CP10 - Changed script to support L... | [
"bluesteelkc@gmail.com"
] | bluesteelkc@gmail.com |
90a26d93ea05d64db95e9ed53c7fe2fcd4b30d8a | 56591823019e0ac1d857f97a1b8c85e9d85a8385 | /Scopuli/Interfaces/WEB/Jinja/Filters.py | d2702eaf522afa636d5c239edcaee4604161951d | [
"Apache-2.0"
] | permissive | MaxOnNet/scopuli-core-web | 3c19e312ec5688034295ac86a7a56fe2b2cf7915 | 66a2c31b36d7fc05be36ba5d5b141644459b4aba | refs/heads/master | 2020-03-23T19:49:56.383093 | 2018-08-30T13:44:31 | 2018-08-30T13:44:31 | 142,004,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright [2018] Tatarnikov Viktor [viktor@tatarnikov.org]
#
# 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/licen... | [
"viktor@tatarnikov.org"
] | viktor@tatarnikov.org |
d0ae1b63e5f6d3f36e516465a1b9561c19929bee | 4bd364186e70e31e62fb039bda4c3ffd8ec1c46b | /NLP/TF/main.py | 8a6d4654f22bcad6f4ccf0376864965bfac30fe0 | [] | no_license | fanqi0312/MachineLearning | 50e1baa1a9e6e4b2d2eebe51413243ff1c2c9834 | 214b1bf2e3084b48db2a1f627d2e117aa0101a57 | refs/heads/master | 2021-01-20T04:53:59.185799 | 2018-03-06T15:07:01 | 2018-03-06T15:07:01 | 101,392,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,369 | py | # -*- coding:utf-8 -*-
import collections
import math
import os
import pickle as pkl
# from pymongo import MongoClient
import jieba
import numpy as np
import tensorflow as tf
class word2vec():
def __init__(self,
vocab_list=None,
embedding_size=200,
win_len=3, #... | [
"fanqi0312@sina.com"
] | fanqi0312@sina.com |
0e501abc2dbd7d6492e3b00b62b69df06e629252 | 73aea19ba4c4f8923e366c1d65443950834a39e2 | /app/recipe/tests/test_recipe_api.py | db6143d1222db8be2e1a84a263cf2d1ca5ed60c9 | [
"MIT"
] | permissive | t-monaco/recipe-app-api | 72997a960f30445e9614e607a47df4490820eadf | 09899f3ab56b05637612232e85febd4069efdfd0 | refs/heads/main | 2023-01-03T22:37:38.156774 | 2020-11-02T13:09:39 | 2020-11-02T13:09:39 | 306,006,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,811 | py | import tempfile
import os
from PIL import Image
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Recipe, Tag, Ingredient
from recipe.serializers import ... | [
"tomas.monaco@wundermanthompson.com"
] | tomas.monaco@wundermanthompson.com |
4a7e085434aaacffba28d622b9a8734b6ac3dbee | f03020b8c6f8629af3d9a8cb842e507218e3fc1f | /config_check.py | e4154979f54f358bad505230a1715b38794c8821 | [] | no_license | garandria/project-diverse-linux-sampling | 066f29d2ec0aba86aa1a06155ca6c2bba51d6363 | 5057a0a58d757fb92287987a751a50b956915c63 | refs/heads/master | 2021-09-06T20:43:07.383330 | 2021-02-21T00:39:41 | 2021-02-21T00:39:41 | 214,476,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,765 | py | """CHECK CONFIGURATION"""
from pysat.formula import CNF
from pysat.solvers import *
import utils
import argparse
def config_check(config, dimacs, alloptions_file, verbose=False):
"""Checks configuration's integrity
:param config: .config file
:type config: str
:param dimacs: DIMACS file
:type di... | [
"georges-aaron.randrianaina@irisa.fr"
] | georges-aaron.randrianaina@irisa.fr |
8903d69cc21adc5ab2090880649a80026486b7cd | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba0977.pngMap.py | 1cd8f233a130576370bea74bec2c2353600f8e4f | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba0977.pngMap = [
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100',
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100',
'1111111111111111111111111111111111111... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
704ca9353bebed65f05b644757f66dc04ed23b41 | be2a67ca92a5f9b71c93495f57100615bed3a5aa | /utilities/read_task.py | ad0beb90d74109bad963184b43803fdac2fa002a | [
"MIT"
] | permissive | devBezel/among_us_tasker | 42f73119dbcdddb879ec83740817ce13bfb19fbd | dd13c13a7d2d776143522ccfa27696d69524707b | refs/heads/master | 2023-01-21T00:01:39.534805 | 2020-11-25T22:50:05 | 2020-11-25T22:50:05 | 312,372,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | import pyautogui
from tasks.cables import Cables
from tasks.swipe_card import SwipeCard
from tasks.unlock_reactor import UnlockReactor
from tasks.download_data import DownloadData
from utilities.config import get_config
class ReadTask:
def __init__(self):
self.resolution = pyautogui.size()
self.t... | [
"dawids14@onet.pl"
] | dawids14@onet.pl |
4cb5f42ba92aed7a5cd3e5366421894ad0406739 | 0615318ec0d205d0e1ea06aaf2d9a1d8d54af254 | /help_timer_functions.py | 9d5a298bc6fe5967973b21c7302fc96e9df060d2 | [] | no_license | AnjaTRPES/Covid7dI_Berlin_app | b22049bfdf84a7911f0b83fa671ed2bfc74a9a69 | 088ea3b881a9bba596c5c1e36e111dabca555c9d | refs/heads/main | 2023-08-13T23:05:26.180796 | 2021-09-30T08:47:37 | 2021-09-30T08:47:37 | 405,866,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 12 17:59:04 2021
@author: Anja
"""
import time
import unittest
from datetime import timedelta
import pandas as pd
def unixTimeMillis(dt):
''' Convert datetime to unix timestamp '''
return int(time.mktime(dt.timetuple()))
def unixToDatetime(unix):
''' Conve... | [
"roeder.anja.sci@gmail.com"
] | roeder.anja.sci@gmail.com |
abc60c06903b32cbddd7c108cebddc46d8e4f123 | 0dbbefd93135c30ee4c8b0e69c1e13f2eaea48c7 | /_site/affarsideer/md.py | a1357ec2afba8ed343e8567c89ed34b9c2679393 | [
"MIT"
] | permissive | jensbackbom/jensbackbomse.github.io | 51a0d604d62363d34a4b4d182f026b58ea01ad44 | ed4417bbced3a14326b9ea97c3535a1a1eca7996 | refs/heads/master | 2023-02-05T01:11:41.737440 | 2023-01-30T22:13:19 | 2023-01-30T22:13:19 | 124,751,595 | 0 | 0 | NOASSERTION | 2022-09-17T07:09:36 | 2018-03-11T11:55:22 | HTML | UTF-8 | Python | false | false | 15,574 | py | # -*- coding: utf-8 -*-
import re
import random
import unicodedata
def transliterate(string):
"""
Replace non-ASCII characters with an ASCII approximation. If no
approximation exists, the non-ASCII character is ignored. The string must
be ``unicode``.
Examples::
>>> transliterate('älämöl... | [
"jens.backbom@gmail.com"
] | jens.backbom@gmail.com |
dbdec97274ee20719addb5d041d37d0fb81f63ce | 8ac8bc849bce42a1d1a37ed8b153acf130cfc5a7 | /insta_dj/post/models.py | 7131ac83c1ddb92c6ed0fc5acbcfa34afb2a03bf | [] | no_license | CitooZz/instaDJ | 19e48a5db54c2ec89e8ee217d4a665d4f16837a8 | 4c4a143c1fa4f6d2e13c9133d7bfcacef1371c65 | refs/heads/master | 2021-01-17T16:02:42.742678 | 2017-06-01T07:23:10 | 2017-06-01T07:23:10 | 83,179,244 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from .utils import image_upload_handler
class Post(models.Model):
creator = models.ForeignKey(User, related_name='posts')
caption = models.CharField(max_length=5... | [
"havizvaisal@gmail.com"
] | havizvaisal@gmail.com |
ee1291fd0e95c7b23cc8c9d9423999e621f6112c | e1eaed6dde62fc54eb317d28dbd18e0740e3e8f3 | /official/vision/beta/evaluation/segmentation_metrics.py | ae1131dd227009686ac52ccbdfb66c8051ba2da9 | [
"Apache-2.0"
] | permissive | nlpming/models | cf5008d2e66d2b66b6d61423e214f2f9f9fbe472 | 3cbf0748529d787dd09fa3ed031e557f0ddfa268 | refs/heads/master | 2021-12-03T03:29:16.042489 | 2021-11-23T14:09:10 | 2021-11-23T14:09:10 | 206,007,973 | 0 | 0 | Apache-2.0 | 2019-09-03T06:47:46 | 2019-09-03T06:47:46 | null | UTF-8 | Python | false | false | 9,914 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a3d679949562466f4ce55d64546316cf11b470e1 | 1b5404b8099de74d4e39e0a41b1d04c61defa8d4 | /Лабиринт/dump/labyrinth_find_solution.py | 6284287ae0344286006f098090bcd1a1b2c5c773 | [] | no_license | ipeterov/random-stuff | 5d07bdcfdcb145d06ed89095f2ad34b70ff0f0bd | dbb38d42331f636919fd149b23783e02ee2c9afb | refs/heads/master | 2023-05-14T00:41:51.122251 | 2023-05-04T12:10:26 | 2023-05-04T12:10:26 | 206,028,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | import pickle
def refactored_labyrinth(labyrinth):
# 0 - верх, 1 право, 2 - лево, 3 - низ
refactored_labyrinth = []
for y in range(len(labyrinth)):
refactored_labyrinth.append([])
for x in range(len(labyrinth[0])):
refactored_labyrinth[y].append([0,0,0,0])
for y in range(len... | [
"ipeterov1@gmail.com"
] | ipeterov1@gmail.com |
cecde9f7d974f33696ac3cd600678c76957d3c9f | f4e70a716d323a6510c77deb5f38e273bdf7a2c4 | /zgit/zgit | 80d363742cc96dcd5670784c382bc18a3a7d8e47 | [] | no_license | zenelk/ScriptUtils | 6238cfd57447849c4abb68274c4bc440e001de3d | 07e0786d33da15c03a08f2ea96dec816a3984b26 | refs/heads/master | 2020-03-15T07:59:14.999531 | 2018-05-03T19:38:39 | 2018-05-03T19:38:39 | 132,041,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | #!/usr/bin/python
import sys
import zgit_lib as zgit
def main(argv):
arguments_parser = zgit.commands.ArgumentsParser()
if __name__ == "__main__":
exit(main(sys.argv)) | [
"hunter.lang@workday.com"
] | hunter.lang@workday.com | |
c62c1f9ce22afc1304a0eb6f7d5b43391f53f60a | 117e5d603bd4e3649624a962b20219ac68bcd172 | /payroll_module/tables.py | 3c95e950a216f0af0571ea8c34fc10ec03ee17ae | [] | no_license | aqlanhadi/cisco-nexus | c8bc0dd6f794e4141829a7975cb8bab5501c9186 | 1411fd3f5ca2eedc21490dd08786374a124a3302 | refs/heads/master | 2022-05-02T09:17:13.687235 | 2020-06-29T06:40:00 | 2020-06-29T06:40:00 | 209,244,232 | 0 | 1 | null | 2022-04-22T22:22:57 | 2019-09-18T07:20:33 | HTML | UTF-8 | Python | false | false | 232 | py | from django.contrib.auth.models import User
from table import Table
from table.columns import Column
class SalaryList(Table):
id = Column(field='id')
username = Column(field='username')
class Meta:
model = User | [
"aqlanhadi@gmail.com"
] | aqlanhadi@gmail.com |
e037ca045c3b88861ebd25a11acf649ebfc2733a | ada71fc4e068f7d800f8ed5af3882b1792129d40 | /algorithm_pracs/programmers_python/q06_info_query.py | 98e665ea2fedc15035d39047d8a9a2827977080a | [] | no_license | heo-mk/algorithm_pracs_js_python | fe2a304a9eac8b47b6409a20dbe99e9ef7e8e810 | 2a293f801834f89e056b301348037ef051f73477 | refs/heads/main | 2023-05-31T11:38:40.239811 | 2021-07-04T08:22:09 | 2021-07-04T08:22:09 | 374,882,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | from itertools import combinations
def make_all_cases(temp):
case = []
for i in range(5):
for combination in combinations([0, 1, 2, 3], i):
case = ""
for idx in range(4):
if idx in combination:
case += temp[idx]
else:
case += "-"
cases.append(case)
retu... | [
"79818840+heo-mk@users.noreply.github.com"
] | 79818840+heo-mk@users.noreply.github.com |
dcdf70e2c8d6c5252286ad9a31c1bfea728f69af | bbfd187e7cc5f858db5cf349ddfd5969d21f4df2 | /constants.py | 33b2036eb4507a89a60fe45afcf03086c0779cb6 | [
"MIT"
] | permissive | ketrint/ElectromagneticShowersReconstruction | e7718f9c345ddb6b30d57bf31fe9baacd51fa074 | b3b67acc43401f49c55109dfe864aa62965817d3 | refs/heads/master | 2023-01-22T17:10:03.522817 | 2020-12-09T19:20:25 | 2020-12-09T19:20:25 | 160,969,419 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import numpy as np
Z = np.array([
0., 1293., 2586., 3879., 5172., 6465., 7758.,
9051., 10344., 11637., 12930., 14223., 15516., 16809.,
18102., 19395., 20688., 21981., 23274., 24567., 25860.,
27153., 28446., 29739., 31032., 32325., 33618., 34911.,
36204., 37497., 38790., 40083., 41376., 42669., 439... | [
"belavin@phystech.edu"
] | belavin@phystech.edu |
236ad3f39efbc804fa9714d96c5dab64c9961ea7 | a3ae9a875c03d63465aa8136084a4a08175ff984 | /osbuild/command.py | a19231c0fa0904f210cfb02f9bd267f40f4c2350 | [
"Apache-2.0"
] | permissive | dnarvaez/osbuild | e8700d42602dc191dc6f83d825d580a9447e6f01 | 08031487481ba23597f19cb3e106628e5c9d440d | refs/heads/master | 2021-07-11T12:40:19.638300 | 2014-05-05T23:08:47 | 2014-05-05T23:08:47 | 10,110,945 | 0 | 2 | Apache-2.0 | 2021-03-29T16:39:13 | 2013-05-16T21:29:19 | Python | UTF-8 | Python | false | false | 1,345 | py | # Copyright 2013 Daniel Narvaez
#
# 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 agreed to in writi... | [
"dwnarvaez@gmail.com"
] | dwnarvaez@gmail.com |
73db1141a062dab86543dba3571ab8faea784fdc | 4a5562bf8a7967c9c5d76265d89c366165bff9f8 | /template_python/setup.py | a4bf90beaf8b2625aaf3603393c5c536b60eec9a | [] | no_license | lokendert/me132_students | 640f935bd6e5c5d65329a161731afad4068a72e0 | 8e1075c4b61bef5c8f4d322cb168e2f942e1fad6 | refs/heads/master | 2020-03-31T03:40:46.680398 | 2011-02-04T20:13:29 | 2011-02-04T20:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from setuptools import setup, find_packages
setup(
name='me132_template',
author="The ME132 TAs",
author_email="me132-tas@caltech.edu",
url='www.its.caltech.edu/~me132',
description="A minimal Player client",
version="0.1",
package_dir={'':'src'},
packages=find_packages(),
... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
98d409f33d7fb8f90dc1c6996bbb0d7dc681e014 | b359cfb124e4249c2783640d1f5b25ecad7a1687 | /api/resources_portal/migrations/0008_auto_20201210_1930.py | 82b6c945d5ddc892595838713c86b2ef470467f6 | [
"BSD-3-Clause"
] | permissive | AlexsLemonade/resources-portal | 5e1abc67b6be0abeabcb06cc75dc4bdb9839800c | a35feea4eeb70b4b659e108835f203ff428676f4 | refs/heads/dev | 2023-08-16T21:57:44.485303 | 2023-07-07T20:46:35 | 2023-07-07T20:46:35 | 221,481,704 | 0 | 1 | BSD-3-Clause | 2023-08-24T20:23:39 | 2019-11-13T14:45:54 | Python | UTF-8 | Python | false | false | 554 | py | # Generated by Django 2.2.13 on 2020-12-10 19:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("resources_portal", "0007_auto_20201203_2010"),
]
operations = [
migrations.AlterField(
model_name="user",
name="fir... | [
"davidsmejia@gmail.com"
] | davidsmejia@gmail.com |
527a6d466c641647a0d5b4f0d252b604be53e76a | b5fdba0c75156e3933ff45f4973c88609573d363 | /reader.py | 8a177825768e0a929f50db85ed31db99a875fbf2 | [] | no_license | jotoy/sr | 6c403bf6e15212f2e5bc04beea705dab9699bc50 | 5cb596dd2c2bda7a072281c2d0651c9b1d17ed5e | refs/heads/master | 2020-03-17T10:25:00.517687 | 2018-05-15T12:18:35 | 2018-05-15T12:18:35 | 133,510,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | import tensorflow as tf
import utils
class Reader():
def __init__(self, tfrecords_file, image_size=100,
min_queue_examples=1000, batch_size=1, num_threads=8, name=''):
"""
Args:
tfrecords_file: string, tfrecords file path
min_queue_examples: integer, minimum number of samples to retain in the... | [
"noreply@github.com"
] | jotoy.noreply@github.com |
2d81ec8412a37d6156e16a3c3376145e05b1831a | de0341aef4a487d1be271fc2bc3b3b60258ef6b0 | /programmers/Level 3/하노이의 탑/solve.py | c759336840a972a1e8bca98c26b09905c4ac4800 | [] | no_license | aver1001/github-practice | 485d8695cd4b9aa374c6b069832b3c0999fc4b6c | 62ab6de80e8246b627b880a7aff5d668b0fea889 | refs/heads/main | 2023-08-24T09:49:35.498578 | 2021-10-13T23:57:18 | 2021-10-13T23:57:18 | 379,813,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | result = []
def hanoi(n,start,end,mid):
global result
if n == 1:
result.append([start,end])
else:
hanoi(n-1, start, mid, end)
result.append([start,end])
print([start,end])
hanoi(n-1, mid, end, start)
return result
def solution(n):
global result
ha... | [
"69618305+aver1001@users.noreply.github.com"
] | 69618305+aver1001@users.noreply.github.com |
a858c760c091ec14a6001637fc484297a82730af | 1fd5963ac7bcdcedfd6ddaa10bf36a37927d704f | /back-end/app/models.py | 9db6ffd5831e4b90e54c61de29f33b0c84c652e3 | [
"MIT"
] | permissive | whmnoe4j/flask-vuejs-madblog | 75ef248336b71ae648c8d84e6e9957225feebcec | 585d95648a5cc48d26bf94ed0e21f7326a212fa8 | refs/heads/master | 2020-04-05T08:14:44.692921 | 2018-11-06T07:58:48 | 2018-11-06T07:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,932 | py | from datetime import datetime, timedelta
from hashlib import md5
import jwt
from werkzeug.security import generate_password_hash, check_password_hash
from flask import url_for, current_app
from app import db
class PaginatedAPIMixin(object):
@staticmethod
def to_collection_dict(query, page, per_page, endpoint,... | [
"wangy8961@163.com"
] | wangy8961@163.com |
bf3f86be25ab7a8ffe01b3fea5ec5bc1ae6b5c2b | a4a63eedacd544872fbfa33fc58d7cf1558829b7 | /backend/event/api/v1/urls.py | 046246934dbd8d54f00c2d7d0a6bb4781e87498b | [] | no_license | crowdbotics-apps/revil-18107 | 3d9bd52855e33debaa60f4f5c801629fb1aa60da | 2671f3410b43cd8ed2ccc51780a80366fb594684 | refs/heads/master | 2022-10-17T09:34:39.097853 | 2020-06-15T00:05:02 | 2020-06-15T00:05:02 | 272,301,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
VendorViewSet,
LocationViewSet,
FavoritesViewSet,
VendorDetailViewSet,
CategoryViewSet,
FaqViewSet,
PresenterViewSet,
ScheduleViewSet,
MyScheduleViewSet,
SponsorViewSet,... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2c897e1776cf7ff4cedc748abaf296faad2846c5 | 10a703dc7ca459b3c440bc0fcf1eccc222801cc1 | /3. teema/test_Auto.py | cdb011603f1b2240c54f4f51555761c229827852 | [] | no_license | alvarkoiv/oop_alused | bc435f08067bd32f02ccc848796d2c21e6894f28 | 6c215b4888cfe9c178db812799d570cc4189d7cf | refs/heads/master | 2023-03-03T02:46:42.249438 | 2021-02-16T09:24:57 | 2021-02-16T09:24:57 | 337,351,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from Auto import Auto
alvari_uus_auto = Auto("Audi", "A6", 2017)
minu_uus_auto = Auto("Tesla", "Mudel 3", 2020)
print(alvari_uus_auto.kirjeldus())
alvari_uus_auto.odomeeter()
alvari_uus_auto.odomeeteri_nait = 3
alvari_uus_auto.uuenda_odomeeter(-2)
alvari_uus_auto.suurenda_odomeeter(30)
alvari_uus_auto.odomeeter()
pr... | [
"alvar.koiv@khk.ee"
] | alvar.koiv@khk.ee |
540399eeb786c98974f1aef8c8edd58b283fbeac | 4c329e94e1e47cc8c5abae946b8eb8e58fb8041e | /problem_1.py | b9be39a1715f25d3e9544a1f33bc183a68239b80 | [] | no_license | AkiraKane/Udacity-Data-Structure-Algorithms-Project2 | 2cb979b57cd75062806aa0426924713bcec236c2 | 27c591c5bd10b10f49e75a7e13e11f4799e4e743 | refs/heads/master | 2022-06-08T05:31:16.395528 | 2020-05-03T07:54:03 | 2020-05-03T07:54:03 | 260,853,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | from collections import OrderedDict
class LRU_Cache(object):
def __init__(self, capacity):
# Initialize class variables
self.capacity = capacity
self.cache = OrderedDict()
def get(self, key):
# Retrieve item from provided key. Return -1 if nonexistent.
if key not in ... | [
"AkiraKaneshiro@Lis-MacBook-Air.local"
] | AkiraKaneshiro@Lis-MacBook-Air.local |
db31e57b47ab17b38c5bf4a29af523b5560ac3f4 | 07700c2737581fdce38de2e0176819b78524d505 | /pysenec/cli.py | 73ba4d5573c4216168a550cb8a5c0e2157bc0465 | [
"Apache-2.0"
] | permissive | SilverXanga/pysenec | 298abdb60ec8af3c372fd287e2452d99679b6000 | 4522e3465baa3c7f41e98145da879747c7d6d5f6 | refs/heads/master | 2022-07-01T19:31:09.135041 | 2020-05-10T20:04:35 | 2020-05-10T20:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import argparse
import asyncio
from pprint import pprint
import aiohttp
import pysenec
async def run(host, verbose=False):
async with aiohttp.ClientSession() as session:
senec = pysenec.Senec(host, session)
await senec.update()
print(f"System state: {senec.system_state}")
print(f"... | [
"m.chwalisz@gmail.com"
] | m.chwalisz@gmail.com |
5896418942efd005a46d1c7d2e74df68364411c9 | 9ede3bec6dc9cd58f91ba3ee2b3f4b7eb3b6c889 | /lintreview/repo.py | aa745a9b199595da98ab54ef33439fa29c5edb40 | [
"MIT"
] | permissive | LyleH/lint_review_1 | d0816e68ee74c507357471b1183348b2c8d59af2 | a36945446745a9e8d8c1f1955e084add6563647b | refs/heads/master | 2021-01-19T11:43:42.780988 | 2016-09-22T05:28:23 | 2016-09-22T05:28:23 | 68,887,536 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | import lintreview.github as github
import lintreview.git as git
import logging
log = logging.getLogger(__name__)
class GithubRepository(object):
"""Abstracting wrapper for the
various interactions we have with github.
This will make swapping in other hosting systems
a tiny bit easier in the future.
... | [
"lyle.henkeman01@gmail.com"
] | lyle.henkeman01@gmail.com |
c7aba38ca201ad0b7f4f372f442c65fca270ea6f | 64ba65f065e0d09fa840fdf7a1e6f6d072e73103 | /aws lambda deployment package/fuzzywuzzy/process.py | a0236920e3f24e10647916462c5a323f1244f0d9 | [] | no_license | josephdouce/alexa-find-any-film | b3cf4db8333cc6c5425fc9e0f69ae861ab08c649 | e060d974969139ad585de27473e63ec3d82bf833 | refs/heads/master | 2021-01-13T10:04:18.174514 | 2016-11-13T09:42:29 | 2016-11-13T09:42:29 | 72,143,333 | 2 | 2 | null | 2016-11-10T18:37:33 | 2016-10-27T19:57:15 | Python | UTF-8 | Python | false | false | 11,161 | py | #!/usr/bin/env python
# encoding: utf-8
"""
process.py
Copyright (c) 2011 Adam Cohen
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights t... | [
"josephdouce@gmail.com"
] | josephdouce@gmail.com |
66439779c4dabc84c959cddc7b42f38bce45fd4d | cd187d99cd5e83ca5b8409085d765e74da643496 | /system/migrations/0011_auto_20200225_1256.py | 78ab716c80fd9f9125ec195240a165692843e38d | [] | no_license | 1701210370/pys | 541c5a910d2b06de2b54ad158e8fcf5309298d01 | b75dc6f00fed4b9c5aa6f8d966347f52a15e5cd6 | refs/heads/master | 2022-04-28T23:44:59.953714 | 2020-04-27T00:38:35 | 2020-04-27T00:38:35 | 258,520,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Generated by Django 2.1.4 on 2020-02-25 04:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('system', '0010_auto_20200224_2105'),
]
operations = [
migrations.AlterField(
model_name='post',
name='... | [
"2428211025@qq.com"
] | 2428211025@qq.com |
5dfb76ca2541d9d9e26795b1062fe2c8377f0531 | 270c1473ae711d206933808c2a6413f51044ec0d | /justitie/just/items.py | 78ea0d4f793abdd30481a928581dbd4aeae8103f | [] | no_license | dira/czl-scrape | 664a6869670f4fd06da614d39a1a459f1333528e | cb898844497402cc0995159b5f4f5a1f010cefd6 | refs/heads/master | 2020-05-22T03:03:22.373033 | 2017-03-11T11:18:37 | 2017-03-11T11:18:37 | 84,665,560 | 0 | 0 | null | 2017-03-11T16:54:36 | 2017-03-11T16:54:36 | null | UTF-8 | Python | false | false | 283 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class JustItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"s.alexandra.stefanescu@gmail.com"
] | s.alexandra.stefanescu@gmail.com |
2ad8fb86568b9db89c98af5b07780a905127da55 | 0675dad295526480242c9da48310a1c958423e72 | /dmrg_j2j2/build_lattice.py | 0d410148abf8f05a76145d0c57c8cbc956ac5397 | [] | no_license | GiggleLiu/numeric_master | 627e054ab7404b1bbf8b8eec65f05346b35640a3 | 47b9eaf1eeaceacf5ff43f2226620e5c37064095 | refs/heads/master | 2021-08-24T11:31:37.107583 | 2017-11-21T06:26:38 | 2017-11-21T06:26:38 | 111,409,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | #!/usr/bin/env python
test_str = '''
<LATTICES>
<GRAPH name = "heisenberg" dimension="1" vertices="6" edges="5">
<VERTEX id="1" type="0"><COORDINATE>0</COORDINATE></VERTEX>
<VERTEX id="2" type="1"><COORDINATE>2</COORDINATE></VERTEX>
<VERTEX id="3" type="1"><COORDINATE>3</COORDINATE></VERTEX>
<VERTEX id="4" typ... | [
"cacate0129@gmail.com"
] | cacate0129@gmail.com |
2818d25958d54d76630a75fd90a98d9c9c089d7c | 02c30e713ceb5274b9aaac3c3907450a9995a423 | /impressao/service.py | 6aaaae074c1a08d8739655f380c083352b50d306 | [] | no_license | kanatius/Impressoes_DSC | 89d78ad1edebb5af615ec5ffc32b96f68f769fa7 | 76c5061c68e30c689d152fb5efe33741bcf595c5 | refs/heads/master | 2023-04-07T06:44:11.565424 | 2021-04-13T16:32:42 | 2021-04-13T16:32:42 | 331,646,139 | 1 | 0 | null | 2021-01-30T17:43:53 | 2021-01-21T14:03:44 | HTML | UTF-8 | Python | false | false | 11,373 | py | import os
from impressao.repository import ImpressaoRepository, TipoImpressaoRepository, TurmaRepository
from usuario.repository import UsuarioRepository
from impressao.forms import ImpressaoForm
from ProjetoDSC.settings import MEDIA_ROOT
from datetime import datetime
from django.core.files.storage import default_... | [
"natanalmeidadelima@gmail.com"
] | natanalmeidadelima@gmail.com |
4dba83fc8918b25d6c255e3cf16e95d4f5230aee | 5d2837138a1191853f99cecb0c47057aa4eb37ea | /backup-version 1/bin/substrates.py | 7386cc2966313a30672e63eafad5e58c08f05082 | [
"BSD-3-Clause"
] | permissive | yafeiwang89/liver_medium | 23ac58cc5409ad03405439193a0948d79aa4e028 | 06fe994a828e6149819bd4e2e0aa7dc161c6a0ad | refs/heads/master | 2021-07-16T11:19:12.670966 | 2020-06-29T23:07:51 | 2020-06-29T23:07:51 | 181,332,552 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,679 | py | # substrates Tab
import os, math
from ipywidgets import Layout, Label, Text, Checkbox, Button, BoundedIntText, HBox, VBox, Box, \
FloatText, Dropdown, interactive
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import matplotlib.colors as mplc
import scipy.io
import xml.etree.ElementTree... | [
"yafei.wang89@gmail.com"
] | yafei.wang89@gmail.com |
33b9c91f645426469203bd3758dc36576c685fd0 | e3858c9736935a582304ff7460f211b45f6f8287 | /skins_kravenzero/usr/lib/enigma2/python/Components/Converter/KravenZeroHDServiceEndTime.py | c6d215646152a3142d23b6594bdc2bc09360fc75 | [] | no_license | wrepin/Skins | e0046578a362ed1b9af81c9c4f47904bbf69d318 | e82cc4cc2816d0bb2b6ab9b404ccee475cab84d4 | refs/heads/master | 2020-12-30T18:37:39.167935 | 2015-02-23T18:36:51 | 2015-02-23T18:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | #taken from "ServicePosition" Converter
#edited by mogli123 @ et-view-support.com
from Components.Converter.Converter import Converter
from Poll import Poll
from enigma import iPlayableService, iPlayableServicePtr, iServiceInformation, eTimer, eLabel
from Components.Element import cached, ElementError
from time import... | [
"neipe78@googlemail.com"
] | neipe78@googlemail.com |
0a594efa5004b79150ace703b60d768090d1e120 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/odps/tunnel/checksum.py | 8e8fc3c8d359101a5792eac47318794d0db3a82b | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,918 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2017 Alibaba Group Holding Ltd.
#
# 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/LICENS... | [
"noreply@github.com"
] | wangyum.noreply@github.com |
f3c1cd5e293453a360833be5f67645fb1cdbba71 | 16eb11581f14e9252f540d8570aa4a0cb3d0304f | /Ex17_NumTable.py | 40c8d20312ba7383420037896270a3607e93b385 | [] | no_license | Akshay-Chandelkar/PythonTraining2019 | 81b699471041cbb85e2bf447b0269b1836301109 | 11f9d1ec8d1e4d111cb7b364aec7bce336cf432c | refs/heads/master | 2020-04-16T13:35:15.895370 | 2019-04-10T10:33:19 | 2019-04-10T10:33:19 | 165,633,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py |
def NumTable(N1):
if N1 > 0:
print("The table for the given number ::")
for x in range(1,11):
N2 = N1 * x
print(N2)
else:
print("The entered number is 0 or negative.")
if __name__ == '__main__':
N1 = int(input("Enter a number to get its table ... | [
"noreply@github.com"
] | Akshay-Chandelkar.noreply@github.com |
5a187adf4e613bd3ed6215071f10539c5c306b85 | 2f8dd346f2d5aa7948e7f73172a1b38153a4d49e | /Windows/Gammacat.py | 79c983efb9593e58798b277de12c2002f0617513 | [] | no_license | Amirsil/Gammacat | 8b21a9e22ecd30dabe896dd183b4dd09ee829b3d | 5bb06bd096c65c78315754c64dc0e44ad5d9323b | refs/heads/master | 2020-09-14T14:03:03.027909 | 2020-07-02T17:40:03 | 2020-07-02T17:40:03 | 223,149,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,106 | py | from sys import argv, executable as python
import webbrowser
import subprocess
import os
import daemon
try:
import requests
except ModuleNotFoundError:
subprocess.check_call([python, "-m", "pip", "install", "requests"])
try:
import flask_cors
except ModuleNotFoundError:
subprocess.check_call([python, ... | [
"amirsil2002@gmail.com"
] | amirsil2002@gmail.com |
32d4b6c7bcd8882e5b9e7ec8f0d4ca47f4d7aeaa | 19855dbff1488f41d5ebb71dae03ecca11ade897 | /folder_mathHW/f-of-x-0/Cartesian coordinate system -- ln.py | 6250ec3f9aa30292e2978c2c727b30e9a12f05fe | [] | no_license | PEN2014/Self-practice | 011aa7580f88d35d0b030abd216f5c4a23702e89 | 73978f69457f5f436058ce5b36378333f1cffc22 | refs/heads/master | 2021-01-19T02:29:58.968071 | 2016-06-05T06:58:31 | 2016-06-05T06:58:31 | 60,446,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import matplotlib.pyplot as plt
import numpy as np
N = 30
n = np.arange(0.001, N/2, 1.0/N)
s = (n-2)*(n-2)-np.log(n)
plt.plot(n, s)
plt.axis([0, 8, -10, 10])
plt.show() | [
"emosome1@gmail.com"
] | emosome1@gmail.com |
32f85e0acbe9f62581b5d9b916122810e397e5a3 | e4043e69ba065186a153ef0995a8c952a665f3b4 | /system/migrations/0034_auto_20160608_0920.py | 1197124fb925f69030df52a62f5558967ae106f3 | [] | no_license | RayZimnat/hos_cash_pycharm | 98e9dc4ad6ba66dcee9223c61a5289d551a2d7cf | 84c8d860282617b4ee8cac7b5cb97f90d343f760 | refs/heads/master | 2020-03-18T19:41:04.999628 | 2018-06-07T08:34:15 | 2018-06-07T08:34:15 | 135,170,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-08 07:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('system', '0033_agent_agent_email'),
]
operations = ... | [
"jowar@zimnat.co.zw"
] | jowar@zimnat.co.zw |
faf3c8dfa5ff66ccb5061a5361f46ea8660794fb | 6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f | /alien_invasion/settings.py | 88e78bcdae2ac7d01be37c4e59510f618f2782a2 | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_leanring_code | fe22b0370cadebf7456477269aff4a35cef0eb41 | 0af44ff39b9ded2c1d2cc96c6d356d21170ac04d | refs/heads/main | 2023-02-28T07:56:46.457552 | 2021-02-10T15:08:33 | 2021-02-10T15:08:33 | 323,584,115 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | """存储雷霆战机的所有类"""
class Settings():
def __init__(self):
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (0, 0, 0)
self.speed_factor = 1.5
self.bullet_speed_factor = 5
self.bullet_width = 5
self.bullet_height = 15
self.bullet_color = ... | [
"417355570@qq.com"
] | 417355570@qq.com |
71d9ef0d70866a4e18c09969ee810ff780a8146c | b434d3432decfd039b0a5b57a567478deefa4d32 | /backend/app/payments/__init__.py | 3aa807b7976475b0ab98c405cfaf156801e9924c | [] | no_license | elcolono/marryday | b895bca21337e0f3092f8eda4cac59b23c41b4b7 | 89e3caf5c2b0260d15259c6d72bc85d1f3dac81c | refs/heads/main | 2023-08-27T03:09:25.797531 | 2021-09-18T12:40:44 | 2021-09-18T12:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | default_app_config = "payments.apps.PaymentsConfig" | [
"andreas.siedler@gmail.com"
] | andreas.siedler@gmail.com |
1e3cd8bb025e9418fdb64b8da0b9313baf5079b7 | f554142b0973adae190274b6005fb08477e50143 | /cmd/auth/forms.py | 2946c4e544f7a69ad91dc8e43100576ae96847a6 | [] | no_license | cmdpdx/cdouglas.xyz | e08808e4845bd65133ff3dba70eb9f8f05801bd9 | dd84ac75117300f5833e6511948e596c1a863196 | refs/heads/master | 2020-03-18T08:40:20.721514 | 2019-05-10T17:22:17 | 2019-05-10T17:22:17 | 134,522,185 | 0 | 0 | null | 2019-05-07T18:54:22 | 2018-05-23T06:14:00 | Python | UTF-8 | Python | false | false | 421 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
from cmd.models import User
class LoginForm(FlaskForm):
username = StringField('User', validators=[DataRequired()])
password = PasswordField('Password', valid... | [
"colin.m.douglas@gmail.com"
] | colin.m.douglas@gmail.com |
bcd4268e4894fcefee6f7c7f50a401ca6e1e2a87 | f3ca45656ed05c6f287265a273043063cc37478d | /sentiment_test1.py | a958f94c65cea3b5d2f85876170798c09a3fbbd2 | [] | no_license | CasewardBen/CasewardNLP | 3c8f9e23f82205ee94aedb01029f6b0bbe0920aa | e4bbf96b787515e8a75542cb5f1eda3fd1d6696a | refs/heads/master | 2020-06-16T05:03:27.408609 | 2019-07-06T02:01:21 | 2019-07-06T02:01:21 | 195,486,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from snownlp import SnowNLP
#返回情感分析结果
def get_sentiment(text):
score = SnowNLP(text)
return score | [
"48239811+CasewardBen@users.noreply.github.com"
] | 48239811+CasewardBen@users.noreply.github.com |
83c106f802d458035e4bf0e7d6e1a576cb89d1f3 | ebe43006105b910873bf39458a5041af2f5ddf0d | /code_generator/generator.py | 5f2aaefcaaa9f30cc965b026658eb82d8bcc5888 | [] | no_license | elis351/promprog | 7ea5e3919f91247a81a0a2ad13af2330559155e7 | a1f26100b0f5b5b84ae5b102f7b38b16d1900b9f | refs/heads/main | 2023-07-22T16:43:23.834727 | 2021-09-09T19:07:44 | 2021-09-09T19:07:44 | 404,721,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import cv2
import sys
with open(sys.argv[2], 'w+') as header:
header.write('''#pragma once
#include<vector>
#include<string>
std::vector<std::vector<std::vector<unsigned char>>> array = {
''')
mask = cv2.imread(sys.argv[1])
height, width, depth = mask.shape
for i in range(height):
header.wr... | [
"44136701+elis351@users.noreply.github.com"
] | 44136701+elis351@users.noreply.github.com |
5cdb7b87f7a99ecd94da0f8dc4de117098d1ea45 | 487c845443e2a945b56b2ea3d65e9137017a3c69 | /gamedisplay.py | a70bed51bbdcd92b0ffea36f191ab3f6c4c9e37e | [] | no_license | ruiqimao/nox-macros | d188d4bab45014d79dd30165203c77f009b2a107 | 3cf2ff59f57df8e3218cadf77e11c1e8f6fd027f | refs/heads/master | 2020-12-02T03:09:30.652041 | 2019-12-30T07:15:58 | 2019-12-30T07:15:58 | 230,867,491 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | from threading import Thread
from PIL import Image, ImageDraw
import cv2
import numpy as np
import time
import util
class GameDisplay(Thread):
def __init__(self, scap, parser):
super().__init__()
self._running = True
self._scap = scap
self._parser = parser
self._mouse_po... | [
"ruiqim@gmail.com"
] | ruiqim@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.