blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44d6d5ca913a59c3d9994a8daa7e405e4705e698 | 00c9495013a8f010ffcc9f47268869dabf03f28c | /config/settings/production.py | b12cd4ded508034ac72b0eb8f2fcfc0a041b8849 | [] | no_license | fishvi/xiaoyuanwen | 3d5cbbeeea64fffb751f52b92a7f186c614a0bd9 | 32b96e139b4ddbc089a5a9113864d7b815a538f2 | refs/heads/main | 2023-05-10T07:24:15.817206 | 2021-06-12T04:48:46 | 2021-06-12T04:48:46 | 374,678,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,166 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env("DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED... | [
"fishvi@foxmail.com"
] | fishvi@foxmail.com |
f7d60b29b9a189ec5ac1378575f96b53edd6566e | 84ec7888f0df87582a8394b7cc1354d50177a765 | /StatusHQ/applications/models.py | 7718c2eded1e66503dc048506b9b38ccd5305c09 | [] | no_license | StatusHQ/StatusHQ | 5a5998d0c5b3628a1e88e13cb13fff4ed0f84cc2 | 6d0b1be1ed3e8d7dffc6628681c1aa16392e093e | refs/heads/master | 2020-04-12T00:27:40.291328 | 2018-12-19T02:59:27 | 2018-12-19T02:59:27 | 162,200,717 | 0 | 0 | null | 2019-01-04T17:58:51 | 2018-12-17T23:03:17 | Python | UTF-8 | Python | false | false | 1,245 | py | from django.db import models
from django.urls import reverse # Used to generate URLs by reversing the URL patterns
from django.contrib.auth.models import User
#class CurrentApplications(models.Model):
'''Model represting all current applications.'''
# Create your models here.
class Application(models.Model):
''' Mod... | [
"nrdell3@gmail.com"
] | nrdell3@gmail.com |
32bb579c27b7605eff988140489dd7395c378388 | 69900305fad4cb9d3a4192c74e51349b411c08fc | /其他/15_二进制中的1的个数.py | ffec0763710e022d90e66c613836dc8b62223cb0 | [] | no_license | MingjunGuo/python__offer | d0b9b766ef02e72e4aced37f47127c52ecf24092 | c6e50be39292f8eefd7d3312ac5d0141bbe06f5b | refs/heads/master | 2020-04-16T06:43:58.574485 | 2019-01-12T07:13:03 | 2019-01-12T07:13:03 | 165,358,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # -*- coding:utf-8 -*-
class Solution:
def NumberOf1(self, n):
'''
题目描述
输入一个整数,输出该数二进制表示中1的个数。其中负数用补码表示。
:param n:
:return:
'''
if n < 0:
n = n & 0xffffffff
ret = 0
while n:
ret += 1
n = (n-1) & n
ret... | [
"mingjun1000@gmail.com"
] | mingjun1000@gmail.com |
28d300d1315fa0c773c0509994b4837170cba797 | a9d23a63c099b8eab64ec9b264ac40935ce44c7b | /textutils/textutils/asgi.py | 7be58b29927d86c520604b4a3364635047c88f42 | [] | no_license | Hibasajid96/DjangoTextUtils | e178bbb44a2cb32238398dd4a0445999a4d245a1 | d2c1b3fc6bd0c4c4ec64fa2dc202f7b4dd2e90d2 | refs/heads/master | 2022-10-04T21:36:33.543383 | 2020-06-05T11:51:59 | 2020-06-05T11:51:59 | 269,154,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | """
ASGI config for dentalclinic project.
Asynchronous server Gateway Interface
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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_appli... | [
"hibasajid96@gmail.com"
] | hibasajid96@gmail.com |
5756338cb6fc8c1265dcba6437dce7333023f4e4 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py | 9924fd6d966d8eeaba9fa14927670259ceddad2d | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | class RichTextBoxSelectionTypes(Enum,IComparable,IFormattable,IConvertible):
"""
Specifies the type of selection in a System.Windows.Forms.RichTextBox control.
enum (flags) RichTextBoxSelectionTypes,values: Empty (0),MultiChar (4),MultiObject (8),Object (2),Text (1)
"""
def __eq__(self,*args):
""" x.__eq__(y... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
71e02c2e6d1bce0c15ac9ed0cf1d4f5cd0eaff41 | 20318c1ce3d4a9b1233c877338e74f862e80c4e9 | /Python/main.py | 65409bdbd9de9f2b75b74b64b268132df91b64a2 | [] | no_license | jfvilleforceix/BenchmarkRugby | 91ed1b5da2ae1de2af7b5d1a0d7430e75cf9e3e3 | f33d8bb5be6bb12155aff761e915ed10abac19ba | refs/heads/master | 2020-04-16T23:45:06.969115 | 2019-02-18T22:00:31 | 2019-02-18T22:00:31 | 166,024,296 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,862 | py | ##! /usr/bin/python
# -*- coding: utf-8 -*-
import urllib.request
from bs4 import BeautifulSoup
sexton = "http://www.itsrugby.fr/joueur-4545.html"
vulivuli = "http://www.itsrugby.fr/joueur-17678.html"
ford = "http://www.itsrugby.fr/joueur-18596.html"
<<<<<<< HEAD
bobo = "http://www.itsrugby.fr/joueur_1859.html"
repon... | [
"jf.villeforceix2207@hotmail.fr"
] | jf.villeforceix2207@hotmail.fr |
d4b4b0b2f8c115e61a51e233ebc4e6909e86ff12 | 823e69d6685f75c88d400d4539c02ae576bd730f | /GENDA - Padroes/Singleton/Singleton.py | ebe18c75ca7f880ece05cc58d32101a36d513768 | [] | no_license | PSFREITASUEA/padroes-de-projeto | 8c1be86d903a04fa37a5657aad305750ecb0ca10 | 5398214ec44ffe35e7b67b73adde498f73f6de4b | refs/heads/main | 2023-06-12T21:59:24.678112 | 2021-07-06T23:10:48 | 2021-07-06T23:10:48 | 381,531,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | import random
import hashlib
class Singleton(object):
instances = {}
def __new__(cls, *args, **kwargs):
if cls not in cls.instances:
cls.instances[cls] = super(Singleton, cls).__new__(cls, *args, **kwargs)
cls.hash = ""
cls.int = 1
return cls.instances[cls]... | [
"psdsfj.snf20@uea.edu.br"
] | psdsfj.snf20@uea.edu.br |
9091f98df3dff4ab938bd0ab9d306ef2b2ca9621 | f6f15809ac70089ef4cfb1ade40e2dc58d239f81 | /test/functional/data/invalid_txs.py | 1f19ffe59a0e3a5e593440e7030364022a6315d2 | [
"MIT"
] | permissive | lamyaim/bitgesell | fcc96f6765d3907ce923f411a1b2c6c4de9d55d6 | 64c24348f1ba8788fbffaf663b3df38d9b49a5d1 | refs/heads/master | 2023-04-30T08:16:40.735496 | 2020-12-10T05:23:08 | 2020-12-10T05:23:08 | 369,859,996 | 1 | 0 | MIT | 2021-05-22T16:50:56 | 2021-05-22T16:48:32 | null | UTF-8 | Python | false | false | 7,089 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Templates for constructing various sorts of invalid transactions.
These templates (or an iterator ove... | [
"wuemma@protonmail.com"
] | wuemma@protonmail.com |
f146849d951a5b88e50b16b8ea8fe901f7de6f8f | a934ecf1f08d0254e5e272db5ab0e87122ad9b8c | /home/views.py | 0ece1d3c9c4ec21c6f4aea39b0db24d3dea19013 | [
"MIT"
] | permissive | wsoliveira/borsocontrolo | 7957415099c5288d6e2d45fc7c9735237644b063 | 61a4e2aac738a766b6919e30c08fc967fe96fb40 | refs/heads/master | 2023-08-16T22:25:57.622831 | 2020-07-06T18:25:52 | 2020-07-06T18:25:52 | 255,434,213 | 0 | 0 | MIT | 2021-09-22T18:51:55 | 2020-04-13T20:26:02 | JavaScript | UTF-8 | Python | false | false | 226 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
# Create your views here.
@login_required
def home(request):
return render(request, 'home.html')
| [
"ws.oliveira@gmail.com"
] | ws.oliveira@gmail.com |
da441fe0d6c94bb2e2df9eb6f5089b6d7cb64770 | b65e09f870e3a6f99bd68f3fd7ea92523eff6b0f | /meituan/main.py | 5d3ccf6f5f410e2aededf1b36bc6de6898e3b23f | [] | no_license | f1025395916/untitled | bf079c810bce161693c127f81fbd8efe98508d1f | 8c1005b783a1029d80332fc4cf52074514ea7502 | refs/heads/master | 2020-05-03T02:36:00.963934 | 2019-08-28T08:43:16 | 2019-08-28T08:43:16 | 178,374,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | import requests
import json
import jsonpath
import fontTools
headers = {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
'Accept': 'application/json',
'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-H... | [
"1025395916@qq.com"
] | 1025395916@qq.com |
6288d87565ff30fcae21bfa03159a2e8abac484d | d0e5128ad27ebd6c3be846e83c9678b077b071f0 | /directors.py | 4d8f09bf45cfeb497119d090f443ad275d85d0e5 | [] | no_license | iliakakurin/dir | c280b7bcef2026fa4f04a5b5172fb18765e4ee05 | bb5c995a32115e357771085786b0ea828b3db649 | refs/heads/main | 2022-12-28T12:15:52.544625 | 2020-10-10T12:24:07 | 2020-10-10T12:24:07 | 302,895,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | winners = {1931: ['Norman Taurog'], 1932: ['Frank Borzage'], 1933: ['Frank Lloyd'], 1934: ['Frank Capra'], 1935: ['John Ford'], 1936: ['Frank Capra'], 1937: ['Leo McCarey'], 1938: ['Frank Capra'], 1939: ['Victor Fleming'], 1940: ['John Ford'], 1941: ['John Ford'], 1942: ['William Wyler'], 1943: ['Michael Curtiz'], 1944... | [
"noreply@github.com"
] | iliakakurin.noreply@github.com |
93176c49b6e7643b4b231a3331904fc3cddc78ba | 4c1434ee17c203c007e8dcd0f525386028fed86b | /driver.py | 76a5b6c5813b1e81b3088d64389dcc1dabc19617 | [] | no_license | Heislandmine/CrossdresserFromXtube | ad321cc7b468e9e46755b2a72c04bba93f60e8f6 | 7357eb64843be851ff11740d8a127a24d23ccfe5 | refs/heads/master | 2022-11-12T20:46:31.662725 | 2020-07-11T11:34:02 | 2020-07-11T11:34:02 | 272,945,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from selenium import webdriver
class Driver:
def __init__(self):
options = webdriver.ChromeOptions()
options.add_argument("--headless")
# Selenium Server に接続する
driver = webdriver.Remote(
command_executor="http://localhost:4444/wd/hub",
desired_capabilities=... | [
"heislandmine@protonmail.com"
] | heislandmine@protonmail.com |
0fee4123dd316b974c3fdd92e1ace45e6046c0e7 | 1f40a08ee85ef6f78384e6f6f53bcf3f86b8c44b | /shorten/app/views.py | fec1ecdf840fbfdd7d0588f916a668b2701fdb4d | [] | no_license | infsolution/EncurtUrl | bff4543fb17f3c2a6853c64abc24d307abcd04bf | 0f6d8aa23a2498a8bf5575797db9a5a8eb855403 | refs/heads/master | 2020-05-14T09:31:39.265337 | 2019-09-28T17:44:25 | 2019-09-28T17:44:25 | 181,741,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,523 | py | from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, InvalidPage
from django.shortcuts import render, redirect
from django.http import JsonResponse
from rest_framework import generics
from .models import *
from... | [
"clsinfsolution@gmail.com"
] | clsinfsolution@gmail.com |
0432710ac0c48dbb2dae12113b61c0ce92474132 | 33ea1916b6e4574caea36ab65bffc214a613a57c | /test_platform/exta_apps/xadmin/plugins/refresh.py | 66e4a318fa0d41ad3ee94a7cdb5007a72a87c108 | [] | no_license | alvinsss/apitest_platform | fd1303d141c8c7fe6bc667684c52ea16e8e86229 | 86b171926041743e2cd3ed955032360270f7483c | refs/heads/master | 2020-04-21T20:59:40.770741 | 2019-10-31T10:37:54 | 2019-10-31T10:37:54 | 169,864,327 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | # coding=utf-8
from django.template import loader
from xadmin.plugins.utils import get_context_dict
from xadmin.sites import site
from xadmin.views import BaseAdminPlugin, ListAdminView
REFRESH_VAR = '_refresh'
class RefreshPlugin(BaseAdminPlugin):
refresh_times = []
# Media
def get_media(self, media):
if sel... | [
"6449694@qq.com"
] | 6449694@qq.com |
22afe83259f60017e1dc9fe21c5ac9a3a81184ba | 77ed8744975cdf7d26396a705590a3b58c440fe1 | /dovecollector/main_app/admin.py | 432981b0788f2ed4c5c6707e802cff3c4de0eac8 | [] | no_license | raihanmorshed/dovecollector | 801de49484e174c80073116ed3950f3755f2046f | eb726d1e8bf8becef3a569dcef22a2c124fefe02 | refs/heads/master | 2022-11-21T21:48:36.241493 | 2020-07-10T01:40:49 | 2020-07-10T01:40:49 | 277,176,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.contrib import admin
from .models import Dove, Feeding
# Register your models here.
admin.site.register(Dove)
admin.site.register(Feeding) | [
"raihanmorshed@Raihans-MacBook-Air.local"
] | raihanmorshed@Raihans-MacBook-Air.local |
73f40efcf57f9a5c4b0601d37814d3ce3733297a | 3587e4c248005c6df500caea7ee18675d8676022 | /DBS3/Server/Python/src/dbs/dao/Oracle/BranchHashe/Insert.py | 5d6e65f82d2c96c81b384b5cb91896b541d29153 | [] | no_license | bbockelm/DBS | 1a480e146010e3d6b234ba5ee471f7c87a4877e6 | 4e47d578610485e0503fc1270c7d828064643120 | refs/heads/master | 2021-01-16T18:18:29.989833 | 2012-08-21T15:01:05 | 2012-08-21T15:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | !/usr/bin/env python
""" DAO Object for BranchHashes table """
__revision__ = "$Revision: 1.7 $"
__version__ = "$Id: Insert.py,v 1.7 2010/03/05 15:41:53 yuyi Exp $ "
from WMCore.Database.DBFormatter import DBFormatter
class Insert(DBFormatter):
def __init__(self, logger, dbi):
DBFormatter.__init__... | [
""
] | |
a9e5e96d698f3e585ec37494c11d6d2ee96ce8df | e3743b27fc794762308958f6e9c6b594db39153f | /paper_examples/visualization_of_activationfunction.py | d1ab66c06340e3a1918cb19fa3a1935f02987d0c | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | raphaeldeimel/python-phasestatemachine | 41cc73d5659155f1b8088fa9893b8c2ec02f4064 | cead459a9b4776e403dec199fbc0dd5d8dd25494 | refs/heads/master | 2022-08-01T19:58:48.368729 | 2020-05-18T12:15:05 | 2020-05-18T12:15:05 | 264,927,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Raphael Deimel
@copyright 2018
@licence: 2-clause BSD licence
Visualizes the vector field in one 2D-plane of the phase-statemachine state space
"""
from numpy import *
from matplotlib.pylab import *
from mpl_toolkits.mplot3d import Axes3D
from matplotlib ... | [
"raphael.deimel@tu-berlin.de"
] | raphael.deimel@tu-berlin.de |
ae3df4ef092d4514dccb7aab617de96786eb2497 | 8a640ca583db73c8af025c135d8f6c53afd2e9ba | /tr_sys/tr_ara_ncats/urls.py | 66bd73a7857e77ffbcd1da67a83cd0a2252a6feb | [
"MIT"
] | permissive | edeutsch/Relay | b6434096da3ab5b85d55eab1c14da1bf3bfe0a21 | fc4581e4a512ebd3a0459bbd06652eb4291133e9 | refs/heads/master | 2022-11-30T17:35:23.048297 | 2020-08-04T18:46:09 | 2020-08-04T18:46:09 | 282,288,237 | 0 | 0 | MIT | 2020-07-24T18:17:23 | 2020-07-24T18:17:23 | null | UTF-8 | Python | false | false | 246 | py | from django.urls import path, include
from . import api
apipatterns = [
path(r'', api.index, name='ara-ncats-api'),
path(r'runquery', api.runquery, name='ara-ncats-runquery')
]
urlpatterns = [
path(r'api/', include(apipatterns)),
]
| [
"markwilliams2755@gmail.com"
] | markwilliams2755@gmail.com |
48232ef8dae4207da9df14791e46fa8988f9cf3e | 9b74ef81e5c1c1dbecf847ada0e704c8e808db22 | /data/triviaqa/config.py | 16b933196b1639ff75fa8bd3e17f6de1e78d0420 | [
"MIT"
] | permissive | neufang/jack | 4464ddc1d7c97bd729e1f661734016bb0d0b1397 | 96a4e59be70ec7df382d26d5bf6d6eee2c94f5e7 | refs/heads/master | 2020-06-23T14:05:11.116345 | 2019-07-24T13:52:15 | 2019-07-24T13:52:15 | 198,644,166 | 0 | 0 | MIT | 2019-07-24T13:46:26 | 2019-07-24T13:46:25 | null | UTF-8 | Python | false | false | 275 | py | import os
from os.path import join
"""
Global config options
"""
TRIVIA_QA = os.environ.get('TRIVIAQA_HOME', None)
TRIVIA_QA_UNFILTERED = os.environ.get('TRIVIAQA_UNFILTERED_HOME', None)
CORPUS_DIR = join(os.environ.get('TRIVIAQA_HOME', ''), "preprocessed")
VEC_DIR = ''
| [
"dirk.weissenborn@gmail.com"
] | dirk.weissenborn@gmail.com |
7609d8654867171cc043ee30d5b4edc4ba5d48f2 | ed8db15dad4236ada32c0355e032dc996266a271 | /Advance_Python/8. Inheritance/4. ConstructorOverriding.py | 207ba7b1ce97664ee242397920676842b2750dc9 | [] | no_license | mukund1985/Python-Tutotrial | a01e0c3ea77690c23c6f30ba1a157c450e5a53ed | bfcf0c81029ce2bee4aa855d90661df25cc94ef9 | refs/heads/master | 2021-05-21T15:41:18.018660 | 2020-11-04T02:20:30 | 2020-11-04T02:20:30 | 309,857,690 | 1 | 0 | null | 2020-11-04T02:14:37 | 2020-11-04T02:11:38 | Python | UTF-8 | Python | false | false | 468 | py | # Constructor Overriding
class Father: # Parent Class
def __init__(self):
self.money = 1000
print("Father Class Constructor")
def show(self):
print("Father Class Instance Method")
class Son(Father): # Child Class
def __init__(self):
self.money = 5000
self.car = 'BMW'
print("... | [
"mukund.pandey@gmail.com"
] | mukund.pandey@gmail.com |
bacf596e1202013a98cc40f7d2940d69b8a2e216 | afa0d5a97925273f7fb0befef697d36020df5787 | /packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1_generated_alloy_db_admin_get_cluster_sync.py | eb296f332c1d78fa23a91559a1674b1100657a4a | [
"Apache-2.0"
] | permissive | scooter4j/google-cloud-python | dc7ae1ba6a33a62a40b617b806ec8ed723046b8b | 36b1cf08092d5c07c5971bb46edda7a9928166b1 | refs/heads/master | 2023-04-14T18:36:48.643436 | 2023-04-06T13:19:26 | 2023-04-06T13:19:26 | 188,338,673 | 0 | 0 | null | 2019-05-24T02:27:15 | 2019-05-24T02:27:14 | null | UTF-8 | Python | false | false | 1,805 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | scooter4j.noreply@github.com |
acb591fee17c1c080e2096b2524f5c892e639042 | 6a865d085519fc3f667317cd92de8332a2edf2cf | /sample-apps/segmentation_spleen_scribbles/lib/scribbles.py | 23382e99349bb8ac367e841b6e0b8920c96d43dd | [
"Apache-2.0"
] | permissive | LaplaceKorea/MONAILabel | bcd82b56a11d52d25faeb77dda1e3dcd4eb25898 | 5520bda8eedd726bba3172122e1cce416634b63d | refs/heads/main | 2023-07-18T15:21:38.383660 | 2021-08-27T11:25:26 | 2021-08-27T11:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,154 | py | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | [
"noreply@github.com"
] | LaplaceKorea.noreply@github.com |
283cc666d0bb18ceb259e7ce977b964c5a16d1a3 | 544d0cef14d6e003b91763b0d351494fbe191f5c | /es_site_config.py.example | 9c1e8301af0d400ae91ddec3581855bd6cdbf821 | [] | no_license | TTimo/es_build | e22e0e1dd7743e22847d16360b41e992a8c1259b | b1e596bb36392a6524c63b1dbed0ce75f2f306a0 | refs/heads/master | 2016-09-06T15:24:24.722752 | 2013-10-10T12:44:07 | 2013-10-10T12:44:07 | 12,408,799 | 3 | 0 | null | 2013-10-05T19:54:27 | 2013-08-27T14:49:14 | Python | UTF-8 | Python | false | false | 116 | example | #!/usr/bin/env python
# override the default configuration settings with a site configuration
FLAVOR = "ubuntu_10"
| [
"ttimo@ttimo.net"
] | ttimo@ttimo.net |
14e34fc8a7237c6e0e7bbb1d39f8c59edbe12d95 | 1b89bab135d08da8a4f9458c3be7cb4443a24307 | /learn.py | a416bdf9d96efdc55e276e520acd339c4670a053 | [] | no_license | hbirler/datalovr | 2ddfa9356a4611c01377ea4d20fffe3de9ca694d | f530c92a1b453b7ba8ecb2421b0d53acf372c405 | refs/heads/master | 2020-09-16T21:08:19.121875 | 2016-11-13T11:18:54 | 2016-11-13T11:18:54 | 73,515,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | import numpy, random
from numpy import array, random, exp, seterr, dot, copy, log, vectorize, tanh
from numpy.linalg import norm
from itertools import combinations,combinations_with_replacement, chain
from operator import mul
from sklearn.neural_network import MLPRegressor
from sklearn import svm
def log_reg(X, y)... | [
"Hasan Altan Birler"
] | Hasan Altan Birler |
ce8203a37a0d73246f63399116e942a387aa6b19 | 38eb57300418e6f10433630437388f779ce50e09 | /rbac_permission/rbac/servers/permission.py | 4fc6af516966b9eb74fc2a0ed9e12b36cfe54973 | [] | no_license | SelfShadows/Django-Flask | f37839f763133f0d62bffad3128171c426a1c038 | 13e32d1c8aac1532b43323e1891c423fe78f2813 | refs/heads/master | 2021-01-04T12:31:18.018508 | 2020-02-14T16:29:27 | 2020-02-14T16:29:27 | 240,550,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py |
def init_session(request, user):
# 在session中注册用户 ID
request.session["user_id"] = user.pk
# 方法1
# # 查询当前用户登陆的所有权限 distinct(去重)
# permission = user.roles.all().values("permissions__url").distinct()
# permission_list = []
# for item in permission:
# permission_list.append(item["perm... | [
"870670791@qq.com"
] | 870670791@qq.com |
d40223e572f7fdd907e876aca26d04b979294f0c | 1de21eb8a0f60c3b6c80ff5c38d635dfcc3659ea | /person.py | e7f3edb718ec05eed63af909efb48dacfba55e8d | [] | no_license | ravisankar712/SIR-Simulation | 406c51139b95794253de59a454ff383c66ba8948 | 18a2405b1e76cca38d52288d92526220c669efdb | refs/heads/master | 2022-07-25T07:12:31.195672 | 2020-05-22T09:13:52 | 2020-05-22T09:13:52 | 261,978,066 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,792 | py | import numpy as np
import pygame as pg
pg.init()
width = 600
height = 600
canvas = pg.display.set_mode((width, height))
class Person:
def __init__(self, x, y, compartments = 1):
self.pos = np.array([x, y])
self.vel = np.random.random(2) * 2 - 1
self.acc = np.zeros(2)
self.maxSpeed = 5.0
sel... | [
"noreply@github.com"
] | ravisankar712.noreply@github.com |
c01e2bd21370ace182254cb8629b9b197c1c00b2 | f1c8091b30ebbb49bca7f60fe1aa078613331a65 | /Set08/clustercheck.py | bfaa21dadb11ef9f7e1f8b113d20ff3369bee84b | [] | no_license | nikhil-kathuria/information_retrieval_cs6200 | 4c92d16e6ba963996d2e7948753cfe19851875b8 | 6e683675fe3974df1c1a04bf10eddc5ad2bff53b | refs/heads/master | 2021-06-12T08:19:25.013279 | 2016-12-27T06:52:11 | 2016-12-27T06:52:11 | 69,931,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | from collections import defaultdict
class ClusterCheck:
def __init__(self):
self._path ="../Set01/qrels.adhoc.51-100.AP89.txt"
self._dqmap = defaultdict(set)
self._pairlist = list()
self._reldoc = set()
self._qset = set()
self.querygen()
self.popdata()
... | [
"nikhil.kathuria@gmail.com"
] | nikhil.kathuria@gmail.com |
d58a8bc255946527fe87ccd38e24f8190773a730 | 86432b51b07eae85712668a8576d4b172220105a | /packages/chrome-ice/tmp/usr/lib/chrome-ice/pyproto/device_management_pb/device_management_backend_pb2.py | cac1ce374ca7567377e9044a072648ee2b4dbb32 | [] | no_license | hfuerst/Reelvdr-vdr2.2-Ubuntu16.04 | e6ddcd50c9f5cf8fe39e63406b08f1e3d6bdd181 | a87c2bf4f4f201d29d06202651a0d0b12f77ae26 | refs/heads/master | 2020-04-07T00:29:04.782748 | 2017-07-11T17:40:06 | 2017-07-11T17:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 29,095 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
DESCRIPTOR = descriptor.FileDescriptor(
name='device_managemen... | [
"frank.musbach@web.de"
] | frank.musbach@web.de |
9aaa5c64aad7c4b8086e9c0f5c5b5cf18c161a9d | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2016_schizConnect/supervised_analysis/NMorphCH/VBM/30yo_scripts/03_svm_NMorphCH.py | ddf0b8d658716ee3e6a5800a6a9e9825811f7e0e | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,690 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 22 09:44:24 2017
@author: ad247405
"""
import os
import json
import numpy as np
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import precision_recall_fscore_support
from scipy.stats import binom_test
from collections im... | [
"ad247405@is222241.intra.cea.fr"
] | ad247405@is222241.intra.cea.fr |
9a2b83dbf7175667edfd1bdbdcc39fdc38de182f | 0dfcc5e04592062c0a3e80120d3bfc32dd166b76 | /gen_bac_tfrecord.py | 042c81f937144193708b15a9c1c9c96cd7661959 | [] | no_license | nightinwhite/attention_night | b12266a2da81033dbfddbf1328063e7fc9dadaa5 | 245237282e2859b03049ae649ca4cf9aebc426ce | refs/heads/master | 2021-01-19T13:39:12.854013 | 2017-08-23T02:16:20 | 2017-08-23T02:16:20 | 100,852,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | #coding:utf-8
import os
import tensorflow as tf
from PIL import Image
import numpy as np
import cv2
import sys
reload(sys)
sys.setdefaultencoding('utf8')
def tst_img(img):
cv2.imshow("tst",img)
cv2.waitKey(0)
cv2.destroyAllWindows()
char_to_label_bac = {
u'君':0,u'不':1,u'见':2,u'黄':3,u'河':4,u'之':5,u'水':6,u'天... | [
"noreply@github.com"
] | nightinwhite.noreply@github.com |
9afdfa1a9b972bbdca3bfd354b2ca459f4a04cbf | 9b6bc3f768ec86caf2074141be90262c9662762a | /tests/catalyst/metrics/functional/test_cmc_metric.py | 9c63fa38b2ce05c4c58d594b1c1a73fc454b599b | [
"Apache-2.0"
] | permissive | Podidiving/catalyst | 298dca23e5cf51dda6bbc0a744874ae2c8787bc5 | ac8567dc389fb7a265e3104e8a743497aa903165 | refs/heads/master | 2021-12-03T21:48:48.232619 | 2021-11-03T05:29:19 | 2021-11-03T05:29:19 | 225,822,776 | 2 | 0 | Apache-2.0 | 2019-12-04T08:59:03 | 2019-12-04T08:59:03 | null | UTF-8 | Python | false | false | 8,443 | py | # flake8: noqa
from typing import List, Tuple
from itertools import chain
import numpy as np
import pytest
import torch
from catalyst.metrics.functional._cmc_score import cmc_score, cmc_score_count, masked_cmc_score
EPS = 1e-4
TEST_DATA_SIMPLE = (
# (distance_matrix, conformity_matrix, topk, expected_value)
... | [
"noreply@github.com"
] | Podidiving.noreply@github.com |
ba83ffc60ad253aed46ec0172ef01d949a01742e | 57ddab24ba7860f8878c689f9fa22b0779d60157 | /categorias/iniciante/uri1051.py | cb688fa9eb809d54eefeb058ecb54ada5c421f65 | [] | no_license | matheusfelipeog/uri-judge | ba1d32e50ad7239b331ad0e1181a1bffc6e61b41 | 0232be52da78fd67261c6d6a74eff3267d423afd | refs/heads/master | 2021-07-03T02:32:13.395829 | 2021-01-29T18:32:35 | 2021-01-29T18:32:35 | 215,845,427 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
salario = float(input())
if 0.0 <= salario <= 2000.00:
print('Isento')
elif 2000.01 <= salario <= 3000.00:
imposto = ((salario - 2000) * 0.08)
print('R$ {:.2f}'.format(imposto))
elif 3000.01 <= salario <= 4500.00:
imposto = (1000 * 0.08) + ((salario - 3000) * 0.18)
pri... | [
"50463866+matheusfelipeog@users.noreply.github.com"
] | 50463866+matheusfelipeog@users.noreply.github.com |
9586b10b08a6dad3fcc896702a405df1651e8e2b | 54a2dbd057fe471bae3763499eed9df66cd86af0 | /insight_testsuite/temp/src/graph.py | 77f060754c7b4743de49c02f108e454f41e25d37 | [] | no_license | ying4uang/digital-wallet | 42e03e0d71d1c06bccb2ce3fe75f287dff5dfb5e | 49c82d01df5987acb468f1e79c5ea4eb82a0b96e | refs/heads/master | 2020-12-24T11:17:28.899386 | 2016-11-11T05:06:57 | 2016-11-11T05:06:57 | 73,040,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,451 | py | #!/usr/bin/env python
from collections import deque
class Vertex:
"""
Stores vertices in a Graph. Vertex encapsulates first_connections and node_id.
"""
def __init__(self,node_id):
"""
Construct a new 'Vertex' object.
:param node_id: The id of the vertex, in our case userid.
... | [
"ying@xandys-MacBook-Pro.local"
] | ying@xandys-MacBook-Pro.local |
7cc48ee85f34495441b6766c72da1e16011dc1c8 | a30fd3fbb3cc20eec07cd4878214b29ebe89af33 | /Chapter7/task7-5.py | 1a8443e20745c4d682ad20eb67f2625ce675112b | [] | no_license | cmdtvt/R421-python-course | 310cbffe727ea39dc184b4e34d1c73c2a1fde01a | bdf23396bbce31ce97e6d1e74c4e2e48b1ba42b4 | refs/heads/master | 2023-08-16T13:22:02.170134 | 2021-10-10T09:21:06 | 2021-10-10T09:21:06 | 404,047,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | '''
The last exercise in this chapter continues with the exercise from the last chapter, the calculator. In this exercise, expand the existing code by implementing the following new features: (A) Calculator does not automatically quit when the result is given, allowing user to do new calculations. The user has to selec... | [
"tvtuusa@gmail.com"
] | tvtuusa@gmail.com |
6372b8149189745fdc654366cf80c4ac81e6f43a | a59ba03b6194dceb81d7e4fa1290c003bc249142 | /20-SEPT-19/Semaphore.py | 6377a1eebb136bc461bf7274b94dc22206ef205f | [] | no_license | reachvedprakash/OS_LAB | 072845043677604d8a292695ff74a5c81845219e | 124bb74706c82a7db0329e7603edde8b5a645c38 | refs/heads/master | 2020-07-05T17:34:10.412069 | 2019-11-15T08:11:29 | 2019-11-15T08:11:29 | 202,714,660 | 0 | 0 | null | 2019-10-25T07:00:59 | 2019-08-16T11:18:43 | C++ | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
# coding: utf-8
# In[7]:
import threading
x = 0
# In[8]:
def increment():
global x
x += 5
# In[9]:
def thread_task(lock,sem):
for _ in range(100):
sem.acquire()
lock.acquire()
increment()
lock.release()
sem.release()
# In[10]:... | [
"reachvedpraksh@gmail.com"
] | reachvedpraksh@gmail.com |
1c5bdf7b6fb22522e79be46afc518f7472a7a7a6 | ffd0ff0492c4190097283dcfa1d51de70c84c1d1 | /Misc/python/test.py | 470db1309946306e8e6ea2490ca59ab1f2bd1a94 | [] | no_license | keithbrown/Miscellaneous | c8b6b6db97fb0b077e77d46017f75dfedd14514b | 6d2d44f67fe33fb24674cc8b016df0814cdda753 | refs/heads/master | 2021-01-11T01:30:31.928471 | 2014-06-05T15:37:40 | 2014-06-05T15:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | y = 'hello world'
print y
| [
"levi@roxsoftware.com"
] | levi@roxsoftware.com |
7a4edb37df14a576b2126dca28052dce00cc7b7d | b26c1999e8642d710439ba0ce503ed94ed228ac8 | /Python/slicer/release/midasdata.py | f459b7fe8efc6a769fd95538a9737cd52179061f | [] | no_license | JD-TamayoQuintero/3D-Dental | c31070f4897cee93999e0f162bd8884326223a8e | 9e766d6fd7ae5e9b553adbe7c3c1d50d743d25ef | refs/heads/master | 2022-03-15T21:31:14.138745 | 2019-12-04T10:36:01 | 2019-12-04T10:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,435 | py | #!/usr/bin/env python
""" Midas NA-MIC data tree release versioning script.
This script can be used to duplicate all the Nightly data on Midas to a new folder named by the release version.
The script does not accept any input arguments. All arguments are to be provided using the option flags. For a list of t... | [
"noreply@github.com"
] | JD-TamayoQuintero.noreply@github.com |
1faf17cd1781a8b68701e4f734214ded75ebb7f0 | aef8d3773931ea9931f9db2cc8a24bb3fc05855f | /problem16.py | 820f592ac1a07cb58e561ebb5f8ce55a3b1908ed | [] | no_license | t3chboy/python_workshop | 77389d8eb2dc2ad687e405fdabd666e5bd40e38a | 75334bbb846de6f224d03aa447d7b9294f438dc7 | refs/heads/master | 2020-06-23T03:09:36.337736 | 2019-08-18T10:12:06 | 2019-08-18T10:12:06 | 198,489,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | import os
import time
import sys
import aiohttp
import asyncio
POP20_CC = ('CN IN US ID BR PK NG BD RU JP '
'MX PH VN ET EG DE IR TR CD FR').split()
BASE_URL = 'http://52.14.205.215/flags/'
DEST_DIR = 'downloads/'
def save_flag(img, filename):
path = os.path.join(DEST_DIR, filename)
with open(... | [
"kaushilrambhia@gofynd.com"
] | kaushilrambhia@gofynd.com |
1a2b36b339ecff0883a453b19da7a5f284bfcb33 | 9de1565e41bc7f7b649d39c78730ac1fafe47738 | /bounder/region/metaheuristics/abstracts.py | 17abf17bbe0b90de5ae72bfd9902679576101d86 | [
"MIT"
] | permissive | terratenney/bounder | 3392a3ed93b67974084fbcfacf390285ccc19f92 | 0c3b69a71145ce3aff6ead0af4c02916972b0465 | refs/heads/master | 2020-06-04T16:11:15.650293 | 2017-07-26T18:21:37 | 2017-07-26T18:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | class MetaHeuristic(object):
def __init__(self):
pass | [
"levi.john.wolf@gmail.com"
] | levi.john.wolf@gmail.com |
89c15d22026b3b212352abb9c8bcef7689cf72ea | aa494e8bc6bddbe43ad8a04004b69f8f7cf2854c | /get_audio_index.py | e71fc3dd0fa8e6d31f8864aa928e529eaf9a43c9 | [] | no_license | junyamorita1030/speechtotextstream | 16a6d80089ef4e3cade4357967217fbf2567a9c6 | e43518cb84bc5142c34b28c149e72cc44b6c250c | refs/heads/master | 2020-03-31T04:46:02.344065 | 2018-10-07T09:45:49 | 2018-10-07T09:45:49 | 151,918,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # -*- coding: utf-8 -*
import pyaudio
import wave
def main():
audio = pyaudio.PyAudio()
# 音声デバイス毎のインデックス番号を一覧表示
for x in range(0, audio.get_device_count()):
print(audio.get_device_info_by_index(x))
if __name__ == '__main__':
main()
| [
"junyam1030@gmail.com"
] | junyam1030@gmail.com |
beeba182233a55afed473db2a9ac951a1fb5db8c | 94a8b97049df146e3777aa7244b7bf2037716e8c | /mysite/util_script_import_ibge_Ufs_municipios_populacao_projetada.py | 5f9ecf7c2c5934d8356b01efbba2538180ee7627 | [] | no_license | Mardik/covid19-devopspbs | 8b9987816e58993fd7c8eab4030ab88722020377 | 282ffa2efc5e674014d9062e14e8ed165236d5be | refs/heads/master | 2021-04-11T11:35:26.046693 | 2020-04-14T23:07:51 | 2020-04-14T23:07:51 | 249,016,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import locale
import csv
from covid19.models import UF,Municipio
from datetime import datetime
from django.db.models import Q
#exec(open('util_script_import_ibge_Ufs_municipios_populacao_projetada.py').read())
BASE_PATH = 'dados-externos/Populacao_projetada_2019.csv'
def import_ibge_uf_municipios_dado_populacao_proj... | [
"thiagolsa@gmail.com"
] | thiagolsa@gmail.com |
c6b2f7f233ae749bd30af6352d77ddab044b9439 | 70477889f721da253a4ab49a47d5a504458d5818 | /source/Lidar_curb_scan/Single_lidar_curb_scan/vscan_removal_tracking/utils/hot_key.py | 919c945aa30d830126d0eab8ef95bf7d0830cf38 | [] | no_license | iljoobaek/Lidar_curb_detection | af2d359627b2228e7678563a7d05137ef0c52a04 | a410b77eecadfc1fe7584de64c7b7a010999ed75 | refs/heads/master | 2022-08-06T01:34:19.848581 | 2020-05-26T16:29:21 | 2020-05-26T16:29:21 | 191,998,099 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import cv2
import numpy as np
key_map = {
'interrupt_key': ord('i'),
'continue_key': ord('c'),
'next_step_key':ord('n'),
'save_key':ord('s')
}
class VidHotKey():
def __init__(self, saver = None, img = None):
self.state = 'idle'
self.saver = saver
self.img = img
def vid_h... | [
"manojbhat09@gmail.com"
] | manojbhat09@gmail.com |
2111e682f882f3aafc271380c846680da7829ba8 | b444692bd50243b75ca6a777dc696950df71e242 | /Anchors/RemoveAllAnchors.py | 521fce0536a33a8a5ac5dc2bf8977eb3bead550f | [
"MIT"
] | permissive | davelab6/robofont-scripts | 7a358a577b891b5e2685806f1eebfc1fb24c47d8 | 2a6d6b2d365d00cb1f2dc7b2afe50ff6a5f6047d | refs/heads/master | 2021-01-18T15:14:53.558768 | 2013-11-23T19:52:02 | 2013-11-23T19:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | __copyright__ = __license__ = """
Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
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 limi... | [
"msousa@adobe.com"
] | msousa@adobe.com |
dcd3654361b5e5399abbe0ea2e240e961a2e7f97 | 628c5ce89ae7d212cd118171cb6ee0787cb01857 | /color_maps.py | 54d2c1693614de9d6ed6033798d9f1aea8badcab | [] | no_license | sbs87/qpcr | c961881fd07c79fff441d2eecbabb67ecc79c9ce | 7c8da4fd5e54d012eddb5c18a043787058be4426 | refs/heads/master | 2016-09-07T18:38:23.147402 | 2013-06-25T20:58:20 | 2013-06-25T20:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,313 | py | """Python colormaps demo
includes:
examples for registering own color maps
utility for showing all or selected named colormaps including self-defined ones"""
import matplotlib
import matplotlib.colors as col
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import numpy as np
def register_own_cmaps():
... | [
"steve@stevenbsmith.net"
] | steve@stevenbsmith.net |
a5135677f76d08f555511a523ec4ca974fa4de18 | 6c75302f2ab1165fb1bd9707612b9d337512c969 | /Algoritma/wsgi.py | 17a961a11a4b3ab49577f9919a99e8782d476768 | [] | no_license | enghamzasalem/innosoft-django | 59d42d0a9a904d52e096cff59ddd5f17cc4a19b1 | 08b8e81023fcc7450e054807696ae2702aef3611 | refs/heads/master | 2022-09-17T06:39:23.108742 | 2019-08-19T21:22:25 | 2019-08-19T21:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Algoritma 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"softilnyr16@gmail.com"
] | softilnyr16@gmail.com |
ae2a4491e45e20f804e4e6339f271af09b072786 | 931a3304ea280d0a160acb87e770d353368d7d7d | /vendor/swagger_client/models/get_characters_character_id_attributes_ok.py | b7705fa3e23be56e5043bffcb69cf65b385f96b8 | [] | no_license | LukeS5310/Broadsword | c44786054e1911a96b02bf46fe4bdd0f5ad02f19 | 3ba53d446b382c79253dd3f92c397cca17623155 | refs/heads/master | 2021-09-08T00:05:26.296092 | 2017-10-24T07:01:48 | 2017-10-24T07:01:48 | 105,143,152 | 0 | 1 | null | 2017-11-03T14:29:38 | 2017-09-28T12:03:19 | Python | UTF-8 | Python | false | false | 9,633 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.6.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class GetCharactersCharacterIdAttributesOk(object):
"""
... | [
"cyberlibertyx@gmail.com"
] | cyberlibertyx@gmail.com |
181e7b74badb94f84f21f9c5dc0567adfd905621 | 46bef14fee21048a621e55d5b407aeb67f29c2bf | /bot/plugins/location/constant.py | 92673eb6934d39e93d91b16ad7e301bb72cd6c4f | [] | no_license | TheKevJames/jarvis | 2e9357988cb2a2d4994a4b089ea21a07dbb0b2e1 | 145b0185a5b326ea4404fbde44d4b34c6d5604c2 | refs/heads/master | 2020-03-26T15:03:39.690128 | 2018-05-08T06:16:54 | 2018-05-08T06:16:54 | 43,014,879 | 7 | 8 | null | 2018-05-08T06:18:16 | 2015-09-23T17:02:53 | Python | UTF-8 | Python | false | false | 787 | py | import random
def ACQUIESE():
return random.choice(('Check.', 'Very good, sir.', 'Yes, sir.'))
def ERROR_NOT_ENABLED():
return random.choice((
'Sir, this instance is not weather-ready.',
'Sorry sir, this instance is not configured for weather.'))
ERROR_RETRIEVING_WEATHER = 'I was unable to... | [
"noreply@github.com"
] | TheKevJames.noreply@github.com |
a96cbe274cfcf2f325cbf2fdaecbdbd0a2d78752 | 0dbb5d8cbba0e7b8876721b28f2ac9adbc2d4ae3 | /TechEdison/wsgi.py | 9e8cc6f988ef6c585d5db0a879571b33a243a58d | [] | no_license | vaibhavmathur91/TechEdison | 6c75d7a79911dcec2a546891c3f0e3ee58a15a02 | f1e415dd42c8ca864acba25720ccebd1e5d26a7f | refs/heads/master | 2021-06-12T11:44:50.843187 | 2017-03-06T23:40:43 | 2017-03-06T23:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for TechEdison project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"vaibhav01921991@gmail.com"
] | vaibhav01921991@gmail.com |
0802931f1b6be864b751e6bba2dcc363d8933f5c | 3aefa0e4106d36a3dfc4a56e686c7a3acc1aabcd | /src/ui.py | d3db21c21b8558e73ae9e5b97c2d1e40b8feb86f | [] | no_license | miguelfAndrade/mancala_game_iart | be1f45acf74773a4819f9fb1f036d45e378966c5 | e203e0b0a1535af225e2ed631ddf2eea9cc73962 | refs/heads/master | 2020-05-22T15:18:34.674135 | 2020-01-22T22:36:40 | 2020-01-22T22:36:40 | 186,405,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import sys
import time
import math
import tkinter
import mancala
import ai
def main_gui():
root = tkinter.Tk()
root.title("Mancala")
size = w_width, w_height = 800, 600
speed = [2, 2]
white = '#FFFFFF'
board = mancala.init_board(mancala.BOARD_SIZE)
canvas = tkinter.Canvas(root, heigh... | [
"miguelandrade.96.18@gmail.com"
] | miguelandrade.96.18@gmail.com |
62e1dee7330ac50ccf9663dd18a2701306b66fa2 | 31b5bd2fc8306ff670a34ecebeb1689db13fa11f | /0x0F-python-object_relational_mapping/5-filter_cities.py | da9c1e56f747ad5e795b5dc6fac0ba11687c51c0 | [] | no_license | fortune-07/alx-higher_level_programming | 88bbf7d9948afd04f740292c44da16919954bd31 | 0be342723c6f702ea6cc4a7140091484f132b378 | refs/heads/main | 2023-08-31T12:35:44.289545 | 2021-10-20T09:28:15 | 2021-10-20T09:28:15 | 361,701,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | #!/usr/bin/python3
# Displays all cities of a given state from the
# states table of the database hbtn_0e_4_usa.
# Safe from SQL injections.
"""# Usage: ./5-filter_cities.py <mysql username> \
# <mysql password> \
# <database name> \
# ... | [
"fortuneniguel@gmail.com"
] | fortuneniguel@gmail.com |
0e8add5503c0f19cc83c852cd3de5c7470b2e2ec | 3bfee37d0780ab3663e1424c6fb9833d25901ca1 | /django/week3/portfolio/resume/migrations/0005_auto_20180210_0226.py | 4f285127b7b12d1a36a58e57471c4db2f739bbf9 | [] | no_license | ArjunPadaliya/COMP-805 | 39a304d08c75f8c5746e7ad0b950192d8df29778 | af66da9ce5b3df549d11c6ec5268bb9fc347cbb0 | refs/heads/master | 2021-05-08T22:58:42.507726 | 2018-03-20T14:41:01 | 2018-03-20T14:41:01 | 119,552,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Generated by Django 2.0.1 on 2018-02-10 02:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resume', '0004_auto_20180210_0202'),
]
operations = [
migrations.CreateModel(
name='Education',
fields=[
... | [
"ap1170@wildcats.unh.edu"
] | ap1170@wildcats.unh.edu |
b4f5ffe00fcc9421686197928264fbda0ae6cf14 | d64db60c2cffd9732d2f923d22cf16ee62fb33f7 | /Analetics_py_sql/lexiconMaker/nipostalcodemaker.py | f129184596d5cdd3081e792b0f712bcde3a9892f | [] | no_license | TristanHermant4pm/analyticsPY | 5f47146570e1ebc910fce4bddb5c6f2116a7b58a | 2cd67c2c8e55d870816c411af18508120982ea20 | refs/heads/master | 2020-03-26T05:24:25.762428 | 2018-08-13T09:07:32 | 2018-08-13T09:07:32 | 144,555,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import os
import sys
import pyodbc
import string
import re
from collections import OrderedDict
ctListIn = []
ctListOut = []
'''
import codecs
types_of_encoding = ["utf8", "cp1252"]
for encoding_type in types_of_encoding:
with codecs.open(".\\lexicons\\censusTownList.txt", encoding = encoding_type, errors ='repla... | [
"tristan.hermant@u-psud.fr"
] | tristan.hermant@u-psud.fr |
a45fb008d1fd51283765ef6b0e553d81306c6097 | 790edb2db1bc2fdf676a6de080684c2c4f18f013 | /myapp/views/views_spazio_aziende.py | af1e42ff5af1e839445f92a6772707167340169e | [] | no_license | TajinderSingh-1/richiestaTesi | 99c3aa25bfdb7ead59013bdd280dfbcc9c15b9f9 | d58071037edd4b9defedaa3e4a57b93a34b9e338 | refs/heads/master | 2021-08-08T05:06:57.127591 | 2017-11-09T15:43:31 | 2017-11-09T15:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | from django.shortcuts import redirect, render
from myapp.forms import OffertaForm
from myapp.models import *
def spazioAziende(request):
offerte = Offerta
if request.method == 'POST':
form = OffertaForm(request.POST)
if form.is_valid():
offerta = Offerta()
offerta.desc... | [
"tajisingh07@gmail.com"
] | tajisingh07@gmail.com |
53d7a1c756ba1e532f3b3fc6092768370b3a8b40 | 8eac548c15cdabeb662c9af2ca67994f92c255ee | /词性标注&词性提取/Word_Marking_test.py | 75c73dfd2590d58fbea3ac14a141dd71b9fe05c0 | [] | no_license | yaolinxia/Chinese-word-segmentation | f7de7317509dc7ed53bb40e5a1367206bd36abc1 | 42d619ec838fe2f8c98822b15c69c640972b984e | refs/heads/master | 2021-07-06T19:52:58.916128 | 2019-04-15T14:08:54 | 2019-04-15T14:08:54 | 117,522,537 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
#1.先分好词,存在一个字符数组里面
#2.遍历字符数组,进行词性标注
import sys
import glob
import os
import xml.dom.minidom
import jieba
import jieba.posseg as pseg
#遍历某个文件夹下所有xml文件,path为存放xml的文件夹路径
#词性标注
def WorkMark(path):
#textCut=jieba.cut(text,cut_all=False)
#词性标注
with open(path, encodin... | [
"18860976931@163.com"
] | 18860976931@163.com |
c9d19954f5d9de2c97e3ed2d8f73a4a166ae8792 | dd02c3961cd2fb801345c9f3bf212bc07beb2d81 | /tic_tac_toe.py | 0c58c5e80d544b23f10254fb6d20a3f270679408 | [] | no_license | benryan03/Tic-Tac-Toe | b6e7fb511a2ff2fe192118ad3818167f19564229 | f2cf783f3d1bb3f3dae9437f60530653b29725f9 | refs/heads/master | 2022-01-09T21:39:31.578527 | 2019-05-21T15:03:43 | 2019-05-21T15:03:43 | 187,274,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,245 | py | #Imports tkinter module (Used for drawing GUI).
import tkinter
#Sets Root variable (base window) to tkinter.Tk class.
root = tkinter.Tk()
#Sets title of window
root.title("Tic-Tac-Toe")
#Variables for image imports - must be inside Root.
x = tkinter.PhotoImage(file="x.png")
o = tkinter.PhotoIma... | [
"noreply@github.com"
] | benryan03.noreply@github.com |
a4687c23319ff1656225fc5c0d8aa5d029be9256 | f9ad08b66c0e87920b55f95eacd465c510272efe | /part_reid/lib/python_layer/reid_layer/data_layer_dfcd_neg20.py | 493bcfbf9f21778512425c968c0b38e8206fae2c | [] | no_license | xianghan228/Clothes_Retrieval | fa09435162eb855ca0fc0d3d74b52ee1dea445b5 | 7c24eed189917625e375f64d8a9bfacc22dd67ba | refs/heads/master | 2020-03-17T17:28:05.266931 | 2018-03-09T12:07:14 | 2018-03-09T12:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,346 | py | # imports
import sys
sys.path.insert(0,'/data1/qtang/samsung/part_reid/caffe/python')
import caffe
import numpy as np
import os
from PIL import Image
import random
import time
import pdb
import pickle
#pdb.set_trace()
class DataLayer(caffe.Layer):
"""g
This is a simple syncronous datalayer for training a Dete... | [
"qtang@localhost.localdomain"
] | qtang@localhost.localdomain |
f919c9e9ce31b4f2ba4ee925104693ef602a991d | f2b860cd107681925cf58c004001c71a8ec5b2bd | /antspynet/architectures/create_convolutional_autoencoder_model.py | 2bd714ea3d3389ae2bd5ba767fca6522f6261b7c | [] | no_license | zwmJohn/ANTsPyNet | dfb7f5a841bb8506d6c5f809af38937bbc2725f5 | 3bd658a8d8fc6467612a3419f38dfc65895fc679 | refs/heads/master | 2022-04-28T04:37:24.995937 | 2020-05-01T00:27:41 | 2020-05-01T00:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,274 | py |
from keras.models import Model
from keras.layers import Input, Conv2D, Conv2DTranspose, Dense, Flatten, Reshape
import numpy as np
import math
def create_convolutional_autoencoder_model_2d(input_image_size,
number_of_filters_per_layer=(32, 64, 128, 10),
... | [
"ntustison@gmail.com"
] | ntustison@gmail.com |
d96f1eff4adca51a25a2bd3e0372c97298959132 | 3cd6c578fcc0444646aa0f6589c82c27afc3955c | /gamifi/migrations/0003_auto_20210404_2230.py | 3be10b5c3353dddf864dc07800cb2e9b2cd38847 | [] | no_license | ArashMAzizi/FitnessFriendsApp | 0715fe41993ee6053b22395f4b1683088b114104 | e6cd51cc407c667830fc7cc40414c36d6118ca6d | refs/heads/main | 2023-05-01T21:04:07.292670 | 2021-05-06T18:44:26 | 2021-05-06T18:44:26 | 368,673,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Generated by Django 3.1.7 on 2021-04-05 02:30
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),
('gamifi', '0002_goal'),
... | [
"bvndinh@gmail.com"
] | bvndinh@gmail.com |
9d22a0a64c1e33a0c6e89db8524cf7e1ad8c864c | afe00cfd4f01be872b8fecbecc74b59edbd95bd5 | /craigslist/__init__.py | 4da61ec92f3e2777962006a3960690de11a9fdf6 | [] | no_license | SamVarney/craigslist-scraper | c6e760f9267c498059aff40fef32677fa66c09cd | a721639d4db6ed46bda905ed1d0f2b3c4a586a15 | refs/heads/master | 2021-07-08T00:43:58.714903 | 2017-10-05T20:14:54 | 2017-10-05T20:14:54 | 103,089,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,480 | py | import logging
try:
from Queue import Queue # PY2
except ImportError:
from queue import Queue # PY3
from threading import Thread
try:
from urlparse import urljoin # PY2
except ImportError:
from urllib.parse import urljoin # PY3
from bs4 import BeautifulSoup
import requests
from requests.exception... | [
"31087664+SamVarney@users.noreply.github.com"
] | 31087664+SamVarney@users.noreply.github.com |
568adf917a33a914cba15a49c8c76eec78d9e70c | 8fa8ded3772dd7a124c1bbb91fc109ed2b63574b | /mycelium/apps/data_import/ajax_backends.py | 1db6a810c321f46ba03880b7a3f42cb1ee69194c | [] | no_license | skoczen/mycelium | 3642b0f5e5ea03d609a3e499c7ad68092101dce0 | da0f169163f4dc93e2dc2b0d934abf4f18c18af0 | refs/heads/master | 2020-04-10T09:21:46.893254 | 2014-05-20T02:27:06 | 2014-05-20T02:27:06 | 2,114,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | from ajaxuploader.backends.s3 import S3UploadBackend
from django.core.files.storage import default_storage
from spreadsheets.spreadsheet import SpreadsheetAbstraction
import time
class DataImportUploadBackend(S3UploadBackend):
def update_filename(self, request, filename):
return "import/%s/%s.%s" % (reques... | [
"steven@quantumimagery.com"
] | steven@quantumimagery.com |
dba98931ab1055fbc8aa7f09f7f007a014124723 | 687928e5bc8d5cf68d543005bb24c862460edcfc | /nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.py | 465c32d9a481652819921910b414eaf9319e4bd3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | mbs91/nitro | c6c81665d6abd04de8b9f09554e5e8e541f4a2b8 | be74e1e177f5c205c16126bc9b023f2348788409 | refs/heads/master | 2021-05-29T19:24:04.520762 | 2015-06-26T02:03:09 | 2015-06-26T02:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,123 | py | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# 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 l... | [
"bensassimaha@gmail.com"
] | bensassimaha@gmail.com |
c6382167adf6ceb481f50967853db6be6262c66f | 444dc060ba378de939d10e6deacd1eb1a85c57f8 | /004conditionals and booleans.py | 853cfd6c4c83edc8064a242c2d1b12226eb4a954 | [] | no_license | Jaspreetkumar1999/python-series | e238f0679e809548c5c289896ac20f6d28c6346b | fab75c224826aeb25a5001709cb9d3bd3803f82f | refs/heads/master | 2021-05-21T08:28:36.874605 | 2020-04-09T16:49:52 | 2020-04-09T16:49:52 | 252,619,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | # language ='java'
# # language='python'
# if language == 'python':
# print('language is python')
# elif language=='java':
# print('language is java')
# elif language == 'javascript':
# print('language is javascript')
# else :
# print('not match')
# python does not have case statements el... | [
"noreply@github.com"
] | Jaspreetkumar1999.noreply@github.com |
deed215af87156414cd9715b12228487362c1a23 | 43d2a73d979ca74bc1dcbcc8b38a86d5e4ebff66 | /static_word_vec.py | 80cb99d0d90ceb9e7b8fb86a2eeea172e24b1e25 | [] | no_license | 786440445/text_match | b0f1db5468f7068605e9ad109e090576b2d5baad | f3408d84b0e3c20e19ed7cf0944ff4ccb1d3a794 | refs/heads/master | 2023-03-27T08:56:16.501874 | 2021-03-25T08:28:28 | 2021-03-25T08:28:28 | 344,845,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''=================================================
@Project -> File :nlp_tools -> static_word_vec
@IDE :PyCharm
@Author :chengli
@Date :2020/11/18 8:36 PM
@Desc :
=================================================='''
import os, sys
import numpy as np
from tqdm im... | [
"matrix@ubuntu.com"
] | matrix@ubuntu.com |
15f6bc9256fda61d77493197a7a52077e0e5d151 | 778f2369c6c2fe2093994e0eedbf77df9a2b20d1 | /test/categoryFeature.py | 3261714123ecb019601ff4ee53aac71d281ae387 | [] | no_license | madhumitha27/ResidentMaintenanceTracker | d65e4f3a67764b9f42a6e04021e64c52344e029e | 5bf43819ec60479426dbccdfb3c4d771d832017b | refs/heads/master | 2021-07-12T19:26:31.080227 | 2020-11-16T21:54:33 | 2020-11-16T21:54:33 | 248,668,371 | 0 | 0 | null | 2021-06-10T22:40:25 | 2020-03-20T04:32:24 | JavaScript | UTF-8 | Python | false | false | 1,610 | py | import unittest
import time
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
class categoryFeature(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
def test_blog(self):
user = "instructor"
... | [
"aparabm@gmail.com"
] | aparabm@gmail.com |
044c874a51c20972e607717d9b6c841e7fcf315f | 8ffabc789e8083c3d2a793378b03e9473a12d0ab | /lotogame.py | 2289ecd87def6ecb16a08b2438bdfb54ea9f79b3 | [
"MIT"
] | permissive | vv31415926/lesson_11_Lite | 8c2065712bf00a9ce91c153e52b92a61b4bf8fa5 | d58a0d6325dec3fdcc7052bc407f8a6743a7a3ec | refs/heads/main | 2023-08-15T16:01:55.283401 | 2021-10-08T16:41:36 | 2021-10-08T16:41:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | '''
0. В проекте ""Игра Лото"" перейти на новую ветку для добавления нового функционала;
1. Написать тесты для проекта с помощью pytest или unittest
2. Определить процент покрытия тестами с помощью pytest-cov:
Пример использования можно найти тут (Coverage.py: Определение объема тестируемого кода): https://sohabr.net/h... | [
"valery31415926@mail.ru"
] | valery31415926@mail.ru |
42bdc6a491fc5b9e2281a2f167e8e94f08cee782 | 3da168ce3709b2b9c003c1070f2182b922d63d92 | /sqlitePython.py | 8c3063da34cf8fe5618961059a044d9b3be1c88d | [] | no_license | amjulius1008/general_code | b0af22bdeaf4230eeb4a22a0a48250a6807781e6 | 149dd99928ea0e4f1ac4d6b648153e167a6ba763 | refs/heads/master | 2020-06-23T16:17:47.154708 | 2019-09-20T19:21:44 | 2019-09-20T19:21:44 | 198,676,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 31 10:41:17 2019
@author: amjuli
"""
def df2sqlite(dataframe, db_name = "import.sqlite", tbl_name = "import"):
import sqlite3
conn=sqlite3.connect(db_name)
cur = conn.cursor()
wildcards = ','.join(['?'] * len(data... | [
"noreply@github.com"
] | amjulius1008.noreply@github.com |
da172ccf28fb4b4755f2503a7d12b244ec2007b7 | cbc0ac1c8035a5061cadf5ca68220f53d49f7d8b | /BirdSongToolbox/chunk_analysis_tools.py | baa28b553afc8f0f5781d42520f1487f1e37c6b2 | [
"Apache-2.0"
] | permissive | Darilbii/BirdSongToolbox | b5a9efeaf845e6558a6cc8ea8c517a11f9daac2c | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | refs/heads/master | 2023-06-29T13:57:47.621072 | 2021-08-02T22:15:31 | 2021-08-02T22:15:31 | 80,884,333 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,336 | py | """ Functions for Running Classification and Prediction analysis labeled Chunks of Free Behavior"""
import numpy as np
import scipy
import random
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import StratifiedShuffleSplit
def make_templates(event_data):
"""
Parameters
--------... | [
"darilbii@gmail.com"
] | darilbii@gmail.com |
5163fdf45578423513a81f0f7f1f50a3f0e5c675 | dfac1f9def9030c3a87ea800688f52b0e73a7778 | /lab4/bot/tg-bot-main.py | e419be7a93185ddfc06c54e1eb28d13dff498b4c | [] | no_license | 4kix/ml-labs-2nd-term | 8729b3c71afc5bbcb63ec7a06c5c017db1e1a4f4 | f0e71242a1f75934997a0ff071bebfb108eb3184 | refs/heads/master | 2022-04-28T18:00:45.191714 | 2020-04-23T08:50:53 | 2020-04-23T08:50:53 | 253,876,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import telebot
import constant
import number_recognizer
import keras.backend.tensorflow_backend as tb
tb._SYMBOLIC_SCOPE.value = True
bot = telebot.TeleBot(constant.token)
def process_photo_message(message):
print('message.photo =', message.photo)
fileID = message.photo[-1].file_id
print('fileID =', fi... | [
"falko.ilya@gmail.com"
] | falko.ilya@gmail.com |
aa8b7d91aabaaf25a60c166a664d74ba941f4436 | 24a3a8c46b7c78d6c57aec7badf9b394e3727112 | /guiEinheitAnlegen.py | d57d0e5474bc6ebf7b9988c728f188d0c8624ad2 | [] | no_license | marcelfeige/TrainingPython | 0020f2c106fed01fb77537d3e0c2dd903315d1b5 | d8c1f74dea610776ba765bb9379e2dc48ead2fc8 | refs/heads/master | 2023-06-07T09:16:34.906765 | 2021-07-06T12:10:53 | 2021-07-06T12:10:53 | 383,455,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,278 | py | from tkinter import *
from tkinter import ttk
from datenbankTrainingseinheiten import *
from datenbankUebung import *
from tkcalendar import *
class guiEinheitAnlegen:
def __init__(self, master, tNameDatenbank=None):
self.master = master
self.master.wm_title("Trainingseinheit anlegen")
... | [
"marcel_feige@hotmail.de"
] | marcel_feige@hotmail.de |
697aa1456f23bec2ddb47539e96eb929f3db9d54 | bbf475f0648bd8e49c56e8efc9b2f44e1d5a436a | /models/hyperseg_v1_0_unify.py | 6cf82a5ba7d34c94b738f05f081310a23728ef6e | [
"CC0-1.0"
] | permissive | leo-hao/hyperseg | cf212ef7b38723264d92edadfab14f0a7cf636ad | ad2c0582363347c56726a751d2a467e2d895fc7d | refs/heads/main | 2023-08-11T19:46:09.344232 | 2021-09-29T01:53:57 | 2021-09-29T01:53:57 | 410,199,646 | 0 | 0 | CC0-1.0 | 2021-09-25T06:53:31 | 2021-09-25T06:53:30 | null | UTF-8 | Python | false | false | 31,622 | py | import numbers
import numpy as np
from itertools import groupby
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.utils import _pair
from hyperseg.models.layers.meta_conv import MetaConv2d
from hyperseg.models.layers.meta_sequential import MetaSequential
class HyperGen(nn.Module... | [
"ynirkin@gmail.com"
] | ynirkin@gmail.com |
f8e68d69e6ac998232cd090e49d23e78371a7605 | 591609ce57682f83dce867686068bc3cd0f7ed88 | /OJ_Python/OJ_Python_2.7/password_strength.py | 4342bc59fee036c1074b26c91eed9fa2ca973fd6 | [] | no_license | MozhiJiawei/Huawei_OJ | cc5c0f0dc6572762834db9101aec0e4c4c27e9cb | b7c4557778b8b4e804e797d4e6891e0bb4c85e8a | refs/heads/master | 2021-01-12T03:22:03.369992 | 2017-03-17T09:01:13 | 2017-03-17T09:01:13 | 78,201,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | def get_password_strength(password):
element = {'len': len(password), 'letter_lower': 0, 'letter_upper': 0, 'num': 0, 'symbol': 0}
for c in password:
if str.isdigit(c):
element['num'] += 1
elif str.islower(c):
element['letter_lower'] += 1
elif str.isupper(c):
... | [
"372745456@qq.com"
] | 372745456@qq.com |
3df51616641206faf5ab0d3a8dbc5faafddb1c1b | 2a6fde51d8459ea3b82c6ddcd199b94ee586d416 | /src/writer.py | 3a7be97d1315779446de69a36d4b43d08eed8959 | [
"MIT"
] | permissive | AdamZink/excitation-source-subtraction | c9e91b16f9d2e27bf1dd668ab9ef044abca79730 | efe60f4e479b074732835d6777a257184b8ec5e1 | refs/heads/master | 2021-09-15T00:37:44.973209 | 2018-05-05T15:21:42 | 2018-05-05T15:21:42 | 112,039,299 | 1 | 0 | MIT | 2018-04-10T02:48:16 | 2017-11-25T22:40:23 | Python | UTF-8 | Python | false | false | 1,385 | py | import pandas as pd
import os
import io
import csv
class RowWriter:
def __init__(self):
# self.csv_data = io.StringIO()
# self.csv_writer = csv.writer(self.csv_data, delimiter=',')
self.data_string = ''
self.excel_out_path = None
self.sheet_name = None
self.dataframe = None
def save_row(self, row_stri... | [
"adamzink55@gmail.com"
] | adamzink55@gmail.com |
e306fd798e8a21cad730210f203b60e62fb2c784 | 37e1bedac2fdcc9e6f84d0ed459b7a4154fd385b | /Python 3.8+/Problem 357/main.py | 149457735e7b40a1a47542141a12826b03283dc2 | [] | no_license | RBaner/Project_Euler | e266239371aa0ff7c46c4be8cba2a145cfb87598 | fb2fe0fec3cfd324f9867abf3f1d72fbff4de011 | refs/heads/master | 2022-09-03T17:20:29.535940 | 2022-09-03T00:34:28 | 2022-09-03T00:34:28 | 180,717,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | #This code is written by Rohit Banerjee (2020)
#In reference to Project Euler problem 357
import sympy
import time
def pgen(n,show=False):
divisor_list = sympy.divisors(n)
for i in divisor_list[:int(len(divisor_list)/2)+1]:
if show:
print("%d+%d=%d"%(i,int(n/i),i+int(n/i)))
... | [
"rohitbanerje@gmail.com"
] | rohitbanerje@gmail.com |
7e0f6034cc8f7b8e07658fe390c52352d05802f8 | a8c7653633d9792def25c79e5f76ee411dbe5df4 | /codedigger-env/bin/pyrsa-keygen | fa4cb57f0a50e10213958f5036ee45fa0ad2c49c | [] | no_license | aaradhyaberi07/codedigger | 396a98a9602ee2107e61caf95d114ce6f2449600 | 7637e469e91f4d214cb11959b70000c116e80e26 | refs/heads/master | 2023-02-01T23:03:23.846400 | 2020-12-18T09:48:55 | 2020-12-18T09:48:55 | 322,553,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/aaradhya/Desktop/codedigger/Auth/codedigger-env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"aaradhyaberi@gmail.com"
] | aaradhyaberi@gmail.com | |
5f31052d82e192faebf57ef775fa436e2b703bba | 43d10f09e999bbcb065d0328a5dd15964f534bb1 | /setup.py | 105d620b86a3f3416c34878da71277947cc191cc | [] | no_license | SERVIR/aqx-india | 6148a43c63e3d92d2c9d14286baa8abfd93e6b0d | 6347e5c426d2a618a0522cf8dee8565be22f494d | refs/heads/master | 2023-01-07T18:50:41.142404 | 2020-11-03T20:32:11 | 2020-11-03T20:32:11 | 296,125,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import os
import sys
from setuptools import setup, find_namespace_packages
from tethys_apps.app_installation import find_resource_files
# -- Apps Definition -- #
app_package = 'aqx_india'
release_package = 'tethysapp-' + app_package
# -- Get Resource File -- #
resource_files = find_resource_files('tethysapp/' + app_p... | [
"38189387+jsrikishen@users.noreply.github.com"
] | 38189387+jsrikishen@users.noreply.github.com |
08495aac6e8e2c709665b0603e0eb999adca7450 | fabe9948b3821e1edf378e167c13c6a6fc351180 | /reminderbot.py | e5cc8adafb5424e24f426c94ae85dd3b3135b534 | [] | no_license | pixelistik/twitter-reminderbot | 90bdac4570c54fcc6564a434d499740999aa55ac | b5bbc79c86005d3d5811c9ce7ab064645fbaace0 | refs/heads/master | 2016-09-06T06:44:39.912399 | 2015-09-20T21:25:23 | 2015-09-20T21:25:23 | 42,602,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | import random
import tweepy
import click
def _get_random_quote():
return random.choice(_quotes)
@click.command()
@click.argument("consumer_key")
@click.argument("consumer_secret")
def authenticate(consumer_key, consumer_secret):
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
try:
url =... | [
"code@pixelistik.de"
] | code@pixelistik.de |
5cbb8adb279ab49cd622f32461c26fcb84275639 | 6d9cfcce19d17da118bc2a882f64b75373a1021f | /projekat/sacuvati/predmet.py | 133f0af909a265a52bd0a437457da5b76def93bc | [] | no_license | ctecdev/OISiURS-2014 | 3e1fc4528b63cd08345d99ad2af6cddc7ae8ef88 | 04c1603d287e216c74cbff60580d5fc2e8b3dd20 | refs/heads/master | 2021-01-17T14:33:08.462342 | 2017-12-28T18:54:47 | 2017-12-28T18:54:47 | 84,091,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | '''
Created on 26.06.2014.
@author: Srky
'''
def sacuvatiPredmet(kompanije):
file=open("predmeti.txt", "w")
for kompanija in kompanije:
for objekat in kompanija.children:
for prostorija in objekat.children:
for predmet in prostorija.children:
file.... | [
"ctecdev@gmail.com"
] | ctecdev@gmail.com |
f8927cbdf465ddbc6764f1d6a2eaf85c885e1f4a | fc9f1521b412e8347674a680ef2fcae22faa8c7c | /tests/supply_E3631A.py | 444322f10b91e018e4a69d114b6a451fdf842aa0 | [
"MIT"
] | permissive | BlancaCC/granaSat_batteries | 625a0b9987c994996c46a338ce45e4d2c1352e48 | 9302feddddc62c1d26ca4faa7684edd0eeb95aa1 | refs/heads/master | 2020-03-22T07:12:41.826162 | 2018-07-24T08:43:26 | 2018-07-24T08:43:26 | 139,685,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | class SupplyE3631A:
def __init__(self, instr):
if 'HEWLETT-PACKARD,E3631A' not in instr.query("*IDN?"):
raise NameError('Device is not HEWLETT-PACKARD E3631A')
else:
self.instr = instr
def output_on(self):
self.instr.write('OUTP ON')
def output_of... | [
"javier.luzonh@gmail.com"
] | javier.luzonh@gmail.com |
aaf1fe559120d1df56eeea0850d7137de429aede | 130243453c861ff506fdcb5db9067c5a8e170107 | /products/migrations/0011_productmodel_quantity.py | 730a9c9e44b15dcb86d7e803d32c8ac4180ed43b | [] | no_license | DaclynsDesign/Ecommerce_finale | 1c024394f79c2a9f2262e2e2010b61ff05570053 | 6b4707bacc109d62a75f82fd73f0a0ac52b95f91 | refs/heads/main | 2023-01-30T08:00:44.985710 | 2020-12-16T18:11:03 | 2020-12-16T18:11:03 | 319,884,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-11-25 14:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0010_auto_20201026_1731'),
]
operations = [
migrations.AddFiel... | [
"daclynsdesigns@gmail.com"
] | daclynsdesigns@gmail.com |
ec4b8692af164801341e212f0d592fea4649da3d | ecc3806d0a417bfcc6d37f9bb5107bf9fa72275f | /osmanager/bin/pyweb/luoyuninfo.py | 8adf30c3e275d224fdaf0f08a10bfa6ad0335ba6 | [] | no_license | luoyun/LuoYunCloud | ef6fa76e8b3a0880392b71d7569b304009041bf1 | ee8fedd988cc39375dda69588c2f7bba1223fbe1 | refs/heads/master | 2021-12-03T05:26:47.656130 | 2021-11-30T13:16:34 | 2021-11-30T13:16:34 | 3,886,020 | 6 | 10 | null | 2013-06-25T14:04:23 | 2012-03-31T14:33:55 | JavaScript | UTF-8 | Python | false | false | 1,407 | py | import sys
import os
import datetime
def get_sysinfo(hostname = None):
"""Get system info, including
$hostname $application $version1 $version2 $curtime"""
if hostname == None or hostname == "":
f = os.popen("/sbin/ifconfig eth0")
s = f.read()
if f.close() == None:
f... | [
"zengdongwu@hotmail.com"
] | zengdongwu@hotmail.com |
9c12bac03eea6ed28261ea89f8c3810743a52f26 | 2ca88d41f1bb5042338faec50b2af11931db0bdd | /src/gluonts/nursery/tsbench/src/cli/analysis/__init__.py | b939423a365224aa385b570ac9ecec6deacdf291 | [
"Apache-2.0"
] | permissive | canerturkmen/gluon-ts | 2f2d46f9b01f5ee07a51a11e822b1c72c2475caa | 57ae07f571ff123eac04af077870c1f216f99d5c | refs/heads/master | 2022-09-10T23:30:26.162245 | 2022-04-20T12:44:01 | 2022-04-20T12:44:01 | 192,873,578 | 1 | 2 | Apache-2.0 | 2020-08-04T16:58:48 | 2019-06-20T07:43:07 | Python | UTF-8 | Python | false | false | 848 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | canerturkmen.noreply@github.com |
29608a73b01cd1662418e4d8be0d8b19444f9bf8 | 45cc3045763d94a2760f3eea713d1760b6c47976 | /models/mlp_classification_layer.py | 159746fd18094fefa60e6cead623980c2be2a492 | [
"MIT"
] | permissive | kiminh/prerequisite-prediction | 464f2d419df71a7b477103cd5e2a535157b30e87 | d45c2f13d5fec62e9177e63296da55aa70b1eb54 | refs/heads/master | 2022-10-02T22:05:56.089267 | 2020-06-04T07:13:05 | 2020-06-04T07:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class MLPClassification(nn.Module):
def __init__(self, in_features, out_features):
super().__init__()
self.in_features = in_features
mid_features = in_features // 2
self.out_features = out_features... | [
"luogan_62625686@126.com"
] | luogan_62625686@126.com |
f569953a3484171990dbe8280d7ddac1f7740dff | 8ca5d6daf0df67ec038be55680d93fc3ba03d5e0 | /Functions/squaring.py | 09f9661afcfa2eb1d279f69c75121c71752dd6b3 | [
"MIT"
] | permissive | Parikshit-njit/Calculator-IS601 | 83071ca63d4f9e0c81c6d6f8e6e5603f4655c839 | 929317871afec437fa9a903d9fe46dcb66da5d60 | refs/heads/main | 2023-06-16T23:16:01.495099 | 2021-07-12T12:53:06 | 2021-07-12T12:53:06 | 383,937,499 | 1 | 0 | MIT | 2021-07-10T18:40:23 | 2021-07-07T22:21:26 | Python | UTF-8 | Python | false | false | 89 | py | class Squaring:
@staticmethod
def squaring(a):
c = a * a
return c | [
"pn24@njit.edu"
] | pn24@njit.edu |
62afc4696e1e1a0e69a3757d17af7e7131d8fcfb | 4cf97704bf1a3365039e1d87812527eb8080f3b1 | /util.py | de83454a602734bc6b6e3b9271ad1a32590ff017 | [
"MIT"
] | permissive | arun-94/PITM | d92bf4834570fcd089139215433fc07e7ec44500 | 47ac9fcfab89e888a5d021880b5ea81b59ed1d24 | refs/heads/master | 2022-05-14T21:43:31.006798 | 2018-11-13T05:26:07 | 2018-11-13T05:26:07 | 156,999,984 | 1 | 0 | MIT | 2022-03-22T20:44:34 | 2018-11-10T16:35:54 | JavaScript | UTF-8 | Python | false | false | 1,993 | py | from urllib.parse import urlparse
from forms import WordListForm
import re
url_regex = re.compile(
r'^(?:http|ftp)s?://' # http:// or https://
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain...
r'localhost|' # localhost...
r'\d{1,3}\.\d{1... | [
"arunswaminathan94@gmail.com"
] | arunswaminathan94@gmail.com |
8574fec6568f400b3cb635f5d8caf629219c87ca | 11c211dc48b6b33c2ad2cf0e6e7116ace526594b | /Applications/Voice Controlled Car/import_test.py | 845f3d7de7640abaa763bbc4b5002d4665ff42b4 | [] | no_license | thecloudist/awareness | 1f481187a1e563069338aa68631f3829b0e4ce8f | 5d55adb5921b72a54c30ca8fc235d6f6c09156a7 | refs/heads/master | 2020-09-27T03:03:16.651252 | 2016-10-18T04:38:00 | 2016-10-18T04:38:00 | 67,518,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from gopigo import *
from GpgMovement import *
import sys
from subprocess import call
from time import sleep
# from tts import *
from positioning import Dist_Enc_Tics as d2tics
from transcribe_streaming_thread import *
| [
"salvideoguy@gmail.com"
] | salvideoguy@gmail.com |
2c54bc1449c5a2fe6700cc5e6ddd823548ad38f2 | 9d1fbc09b99c979deb9177997e60db7c4ff62c14 | /tools.py | 87759961dfbcf4919793a01ae7521defd18321b1 | [] | no_license | V-Sirivatanapa/Sequence-Classification-with-Conv1D | 2ae4ab8c5d13b1ddf8909de1284156421ef0bd35 | b42c7df03baf87a554900ceb046b6f6356f79396 | refs/heads/master | 2022-11-20T19:05:07.056213 | 2020-07-26T09:28:34 | 2020-07-26T09:28:34 | 282,617,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,371 | py | import numpy as np
import pandas as pd
import copy
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn.utils import class_weight
from sklearn.metrics import accuracy_score, confusion_matrix
from scipy.interpolate import CubicSpline
import tensorflow... | [
"noreply@github.com"
] | V-Sirivatanapa.noreply@github.com |
92d349d1183ad8d98d35f92dfe3999a7489d12fb | 8b1c25efcf88db14f8d545b770e9f745932fef03 | /2D_heat_transfer_FDM/python_validation/src/fdm_heat_validation_utility/__init__.py | 74fdfeab26154f799982e6f2567254726081dccb | [] | no_license | class4kayaker/GPGPU_self_study | d8b11695d89169c11ef8f2c03e4ad9b870a12bb4 | 23b6db522a4f98e6f01a172bb2f8709d6dadc573 | refs/heads/master | 2023-03-20T20:53:54.406684 | 2021-03-23T03:24:38 | 2021-03-23T03:24:38 | 251,442,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | """Utilities to validate a FDM implementation based on providing
and checking the error using HDF5 files generated"""
__version__ = "0.0.1"
from .initial_conditions import init_by_name
from .model_utils import FDM_State
from .calculate_diff import FDM_Diff
__all__ = ["init_by_name", "FDM_State", "FDM_Diff"]
| [
"class4kayaker@gmail.com"
] | class4kayaker@gmail.com |
6a6d2a6c735e1f1055037d69168ec88e8636d9e5 | c077f907cf703209bc3437f62ac7a64179e98863 | /bxfel/model/prior.py | eeae3b1b2367c74b9322062ef7aed5ae9b789382 | [
"MIT"
] | permissive | mmechelke/bayesian_xfel | 02d370f6a4a706491fa0edd6d594e68c4e74f766 | 9726b08494ef04daa52d95a246cac7e879f26f49 | refs/heads/master | 2021-01-11T16:30:29.923620 | 2017-04-25T09:31:32 | 2017-04-25T09:31:32 | 80,094,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | import numpy as np
from abc import ABCMeta, abstractmethod
class Prior(object):
__metaclass__ = ABCMeta
@abstractmethod
def energy(self, x):
raise NotImplementedError("Not implemented in Base class")
@abstractmethod
def gradient(self, x):
raise NotImplementedError("Not implement... | [
"martin.mechelke@gmail.com"
] | martin.mechelke@gmail.com |
41c74a36d37594b12e4e223ddad17e093507dc9b | 45eb71388fd28ea37fdaab7b29043e81464c222a | /python/hamming/hamming.py | 1f48021f2fa7fbec2879d1a06ae47928b0e9c39d | [] | no_license | jpleyvat/excercism | b08460134975e40e60bd16de66c25c54d4e0d542 | d3dc93013007af68a096792686b538c1962641c1 | refs/heads/main | 2023-05-04T22:15:06.796636 | 2021-05-25T16:37:54 | 2021-05-25T16:37:54 | 370,416,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def distance(strand_a, strand_b):
if len(strand_a) != len(strand_b):
raise ValueError("Strangs must have the same length")
diffs = [strand_a[i] == strand_b[i] for i in range(len(strand_a))]
return diffs.count(False)
| [
"jpleyvat@gmail.com"
] | jpleyvat@gmail.com |
f560c25459fe8731edd4ca170e93db28fb5e8adf | 096c38cc967a164a31d5f18a2c12b391b382754e | /Analysis/Analysis_Act_vs_t0.py | 5b1a83b46d36b3a4b24546a269f9b4b55d9ef8b6 | [] | no_license | SmoothCB/pyUrns | ff0b3398101ea60e9303e3ed21d9aeeab9bab7d7 | 171ffaa76b0b9f2ab81456a601921691cc97182e | refs/heads/master | 2023-03-18T14:26:48.683658 | 2019-11-02T10:11:02 | 2019-11-02T10:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | import os, sys,gzip
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np
IDir = sys.argv[1]
ODir = sys.argv[2]
if True: #gzipped files...
Apri = gzip.open
else:
Apri = open
Files = sorted(os.listdir(IDir))
nFiles = len(Files)
Dat = {}
eve_time = np.zeros(nFiles)
NEve... | [
"enricoubaldi@gmail.com"
] | enricoubaldi@gmail.com |
d254869df57ee22c857fd1b15c9a63b281581ddb | 5d1121478254bbc6d6778c07281af7920d00c6f8 | /microdrop_utility/dict_as_attr_proxy.py | 7cafc839448e8908a4205977429c39a53f7e6563 | [] | no_license | wheeler-microfluidics/microdrop_utility | cc48bf1e659c52565a09be9891d1ce6b9523c69b | fdc7777404964d660a659dd8819df2480d42a9aa | refs/heads/master | 2021-05-16T02:41:59.863105 | 2017-07-20T14:33:21 | 2017-07-20T14:33:21 | 16,616,067 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | class DictAsAttrProxy(object):
'''
>>> d = dict(A=1, B=2)
>>> dp = DictAsAttrProxy(d)
>>> dp.A
1
>>> dp.B
2
>>> dp.C
Traceback (most recent call last):
...
KeyError: 'C'
>>> dp.A = 10
>>> dp.B = 20
>>> dp.C = 100
>>> d
{'A': 10, 'C': 100, 'B': 20}
... | [
"ryan@fobel.net"
] | ryan@fobel.net |
d0dcdb18c7dac7250976b62a5d3e226b82d457e3 | 973a5e6995ef4cc6b5457b3aac97756ed3314925 | /single_file_projects/8_PresentParticipleForm.py | cd89775844165abb41b43e9534d45f366d0b80aa | [] | no_license | paulinaJaworska/mini-python-projects | 5d006839ef509b1d5106b118be12cf131810322c | 01745a56e4f6f0e4d4eea4f72a97169d379836f1 | refs/heads/master | 2020-09-07T15:16:44.063093 | 2019-11-10T20:29:43 | 2019-11-10T20:29:43 | 220,824,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | import sys
def present_participle():
# creates present participle form from the verb
if len(sys.argv) > 1:
for item in sys.argv[1:]:
try:
word = str(item)
consonants = ['B', 'b', 'C', 'c', 'D', 'd', 'F', 'f', 'G', 'g', 'H', 'h', 'J', "j", 'K', 'k', 'L', 'l', ... | [
"paulinajaworska9@gmail.com"
] | paulinajaworska9@gmail.com |
e69bdbc314fdffa129309e8dfa440b4d6dfdaef4 | 7942f22ff5b5b3ff1882492cc4d558f0d3640c5d | /main.py | 08f064901d7ac92ae2840c0e78c337179c95703f | [] | no_license | naka345/car_number | f886691155c17440051c2200003232accdd8c940 | c82af3fa878558e2420904a20d057778836b586f | refs/heads/master | 2022-10-26T14:45:58.590219 | 2019-09-23T13:11:03 | 2019-09-23T13:11:03 | 271,181,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | import numpy as np
import pandas as pd
import re
import glob
import os
import sys
path = os.path.join(os.path.dirname(os.path.abspath("__file__")), 'keras_yolo3/')
sys.path.append(path)
from PIL import Image
from my_yolo import MyYOLO
from utils import PlateUtils
myYolo= MyYOLO()
pu = PlateUtils()
columns = ["lu_x","... | [
"naka345@naka345noMacBook-Air.local"
] | naka345@naka345noMacBook-Air.local |
1bb73f9bd1418f1ac34f1152812d381812cc1c38 | 8db20e784e8a35cf24eec1a615627b693ed4ae21 | /DZ_WebBooking/DZ_WebBooking/settings.py | 1c8ee02039aa376bdf5eb6f46d92db5e43694b6f | [] | no_license | alvexs/iu5-web-5sem | 01cbb9d8f0807f6e0aadf17da2cf7097f1f143e3 | 44e9dac05e6391d3c3e1e6de15fb8caac6da029c | refs/heads/master | 2020-09-20T02:10:05.529046 | 2016-12-26T16:58:35 | 2016-12-26T16:58:40 | 67,216,723 | 0 | 0 | null | 2016-09-02T11:31:11 | 2016-09-02T11:21:22 | null | UTF-8 | Python | false | false | 3,317 | py | """
Django settings for Lab6 project.
Generated by 'django-admin startproject' using Django 1.10.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"a.v.ivannikov@ya.ru"
] | a.v.ivannikov@ya.ru |
afa31021cdfa59468182052566b74556a996eae1 | fa0ad49b2f2b1dbd61b056f1d48e5feab0117889 | /accounts/migrations/0029_remove_asset_name.py | 312d03bc5c2a57e9999a50e37f32bf1d2e9b8567 | [] | no_license | jimmyzhoujcc/salmon | dd88ab19af3282aa228fd9293f7d9c251f5ae591 | 4201d20342a29dc056593f04459f349f85db3d16 | refs/heads/master | 2022-12-16T10:02:02.068677 | 2018-04-21T07:00:23 | 2018-04-21T07:00:23 | 130,444,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-03-05 04:18
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0028_auto_20180305_1215'),
]
operations = [
migrations.RemoveField(
... | [
"jimmyzhoujcc@gmail.com"
] | jimmyzhoujcc@gmail.com |
491429f9b6b4c991742a818ea2264a44a4ce7e04 | 5506eeee48ed37c23693621c34815f7c1116760d | /node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | 10f73ae526e8063fee0ca98b38f72410f444e94e | [
"Apache-2.0"
] | permissive | BereniceFang/thrush | 24f74b115c9be66ac4eab5054bf604d67fc0b4df | 26ec38a113fb6907f19f9aa737aefa2816a10efc | refs/heads/master | 2021-01-21T01:02:40.854111 | 2015-06-06T06:27:34 | 2015-06-06T06:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,779 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"wangdong5@xiaomi.com"
] | wangdong5@xiaomi.com |
177888ef3e7a8b71ade2f3f2e6cb44e9e5367037 | 6977cb5feedcdd818852d5fd4c674dc822420230 | /fxapom/pages/fxa_test_user.py | 447c5858f2dff2814e1d011cf0eb3ea7927d1fdf | [] | no_license | AndreiH/fxapom | b5e2594ab86a0837922dca3ce1888f9e1162db43 | 60ff612d5ed9cfd6104a9101b6e9f46aa79456b7 | refs/heads/master | 2016-09-05T17:48:39.423399 | 2014-11-20T17:21:44 | 2014-11-20T17:21:44 | 26,481,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import subprocess
from user import MockUser
class FxaTestUser:
"""A base test cl... | [
"andrei.hutusoru@softvision.ro"
] | andrei.hutusoru@softvision.ro |
7b1bae4103e32687a123aeebfa23414fa32490d3 | 749de43379dced8ad1c542fecf95bb09ae37da5a | /item/migrations/0002_auto_20160214_1428.py | 095be8e0aedc37eedf9a85a63e7c13cea8c57d4a | [] | no_license | GregoryBuligin/example_django_rest | c03ac3ac8b254f3f2357cf523eba6c9a84d000fa | 1de26df733531bd61c84bffed2abf1f3a7eb2935 | refs/heads/master | 2021-01-10T17:41:33.542394 | 2016-03-06T16:00:24 | 2016-03-06T16:00:24 | 53,249,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-14 14:28
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('item', '0001_initial'),
]
operations = [
mi... | [
"gri9996@yandex.ru"
] | gri9996@yandex.ru |
d1778b0fca2c668342e5496525f847e39c73da8a | 65b25c8b9613893721735b392f566c02c6b4a526 | /old docs/oehfu.py | fdcf37e5650133a3182e88fe13d4a90bb1aecc0f | [] | no_license | micahsmith1/ETL-Project | a712f2478dead07e3b8f3654044cd7ede3101c9c | 94b1e10fd1cc36ec2d9ad2e071bfcedb7fcd3fb9 | refs/heads/main | 2023-02-04T19:28:18.521358 | 2020-12-10T03:01:55 | 2020-12-10T03:01:55 | 317,714,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from flask import Flask, render_template, redirect, jsonify
from flask_pymongo import PyMongo
import scrape
from sqlalchemy import create_engine
import sqlalchemy
| [
"miyshmiysh@Miyshaels-MBP.attlocal.net"
] | miyshmiysh@Miyshaels-MBP.attlocal.net |
94ef7ad99668a3d0c890a8be2fd256bf28ab9194 | 1b8530ef1c108e098edfa3755e96824b31d4a2ad | /scripts/fixup_recommender_v1beta1_keywords.py | c0fe44525fc4175047ea2372ca698f42c4445c7e | [
"Apache-2.0"
] | permissive | renovate-bot/python-recommender | 4b3d0b9e0332eab0f71bd044a6832b67fe6827fa | d0ff05f566d2a7bfe6c9f403252a833fe4bb776b | refs/heads/master | 2023-06-08T00:27:33.316110 | 2021-08-18T13:40:32 | 2021-08-18T13:40:32 | 239,139,952 | 0 | 0 | Apache-2.0 | 2020-02-08T13:52:09 | 2020-02-08T13:52:08 | null | UTF-8 | Python | false | false | 6,468 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"noreply@github.com"
] | renovate-bot.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.