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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f52217589ed79b1f85cd8ee714acfcff57a119f0 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /kKFuf9hfo2qnu7pBe_0.py | dd06b526390459e9a1fd16863570418e3cc2438d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py |
def is_prime(p,n,l=0,r=None):
r=len(p)-1
while r>=l:
m=l+(r-l)//2
if p[m]==n:return'yes'
elif p[m]>n:r=m-1
else:l=m+1
return'no'
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5c34960b45ed72b6cf3652d2817736cbb1c25c95 | e823be336bf8a47c32e3e41752ac885063a01c9b | /morningproject/morningproject/wsgi.py | e523da206c5766ae943afaabedde6a98314ef26d | [] | no_license | sinha-sandeep/django-project | db5c82f98b26bbe88760e7be5982541a8bedd221 | 95135bad5555436ec5c58e2fddc1875fb59c2f86 | refs/heads/master | 2022-12-07T05:02:26.233834 | 2020-09-01T08:25:53 | 2020-09-01T08:25:53 | 291,940,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for morningproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"sandeepsinha78148@gmail.com"
] | sandeepsinha78148@gmail.com |
81d006ac7c02ed9231d643533aadf3160e5a9532 | 89503a61ab7599d4cd8b8f1460cf3e09dceb34b6 | /users/migrations/0002_auto_20180827_1332.py | 8d9fb1d3202c3c848a8e1344b6389fc25ffef7cd | [] | no_license | AteamVentures/ateam-chat | 5e362ebb169d1c50daa73424e67fa8b972922608 | 06261f80cbed610b1eb1aba390734737d37780a3 | refs/heads/master | 2020-03-24T22:39:58.465030 | 2018-08-30T03:51:42 | 2018-08-30T03:51:42 | 143,096,765 | 0 | 0 | null | 2018-08-30T03:51:44 | 2018-08-01T03:02:28 | Python | UTF-8 | Python | false | false | 1,931 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-08-27 13:32
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
... | [
"libbom14@gmail.com"
] | libbom14@gmail.com |
5889afcef180b5e7624a875a630b53dff05b6f61 | a5cf4468d2b7c4bd798f60554b8ad0ee430c4799 | /src/astrogun.py | 74ff3bc385c2baff78261a5a7637f7864684765a | [] | no_license | cyberaa/astrogun | 5cc2f5e8bf69470cbd410822571b71595da3173f | f712f4a2c992d501101951b43853b6e8d14562eb | refs/heads/master | 2020-12-30T17:50:04.907547 | 2014-05-21T21:25:01 | 2014-05-21T21:25:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,999 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function, unicode_literals
""" Wavefront obj model loading. Material properties set in mtl file.
Uses the import pi3d method to load *everything*
"""
import sys
sys.path.append('../src')
import pi3d
import time
import asteroids, bullets
import n... | [
"avishorp@gmail.com"
] | avishorp@gmail.com |
2f43182db61abb35c751b6995a55904df4d54bcc | 6da9f35aba05c777fcccf3b09f798cd8250069fb | /rent house balanceamt.py | 5940e71dd2cae265e42c9de36d3ba05f3590efb1 | [] | no_license | rvsmegaraj1996/Megaraj | 02c5a7ad5ab00e4ba1142b41b2021a5838b030f5 | 6d320d20958414347be7eea21a5ce3dc2bd7aedf | refs/heads/master | 2022-12-11T16:18:54.101221 | 2020-09-14T09:58:33 | 2020-09-14T09:58:33 | 295,368,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | alpha=int(input("tell us the no of floor: "))
beta=int(input("tell us the houses: "))
sum=0
for row1 in range(1,alpha+1):
for row2 in range(1,beta+1):
rent=int(input("bring the rent: "))
if row2==2 or row2==4:
if rent>=8000:
print("thanks for the payment");sum+=8000
... | [
"rvsmegaraj1996@gmail.com"
] | rvsmegaraj1996@gmail.com |
c76af58c2e312372fa843448ac81fff6762ed6be | 7daae66222485f603abba30a2684264cf40df2a4 | /pythonproject1/runserver.py | 7adc90775d56206dfdcf4e6e3232233ec0e215d8 | [] | no_license | uribracha/schoolproject1 | 4dbd59c899293d4a64e74d0f113f1ac90ed4d5c0 | d3cea9a0de0fc2fde8b19aa4a7abef30c12dcdf0 | refs/heads/master | 2020-12-10T09:09:48.569328 | 2020-01-14T12:07:05 | 2020-01-14T12:07:05 | 233,552,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """
This script runs the pythonproject1 application using a development server.
"""
from os import environ
from pythonproject1 import app
if __name__ == '__main__':
HOST = environ.get('SERVER_HOST', 'localhost')
try:
PORT = int(environ.get('SERVER_PORT', '5555'))
except ValueError:
PORT = ... | [
"uriluli@gmail.com"
] | uriluli@gmail.com |
c7d1b3a586f3641b237a990281f07792be8b5c3e | 063a95c05876944e45e204557c76f4140f028182 | /Leetcode_Practice/DS-LinkedList.py | 75277cffe5cc217f8f76cabf7588015262f044cd | [] | no_license | Urvashi-91/Urvashi_Git_Repo | 5c23ee898d637f245b287548afa9a6b6901edbd2 | 73a7b069746631717bd5739df5ded2d6866b0c8c | refs/heads/master | 2023-06-27T19:10:36.668469 | 2021-07-26T21:02:39 | 2021-07-26T21:02:39 | 324,001,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | class Node:
def __init__(self, data: None, next: None):
self.data = data
self.next = next
class SLinkedList:
def __init__(self):
self.head = None
def insert_at_begining(self, data):
node = Node(data, self.head)
self.head = node
def insert_at_end(self, data):
... | [
"hanu@Urvashis-MacBook-Pro.local"
] | hanu@Urvashis-MacBook-Pro.local |
6e08f55c19e49a6774097a3bb41dc89c3be44e8d | 77bae4adbdea1cc5d8f22e0df0dbe3e20e445d17 | /dqe/apps.py | 03411d3aa722db372d79b294a75811cc92dbe512 | [] | no_license | Gavin188/WGT1 | d8d015c22edf4613e91db353bea9d7394c1ffaa4 | ecb28f0172ccbe5f99e71f6b8fb5b96fe256e587 | refs/heads/master | 2020-08-29T05:19:03.188790 | 2019-11-20T09:11:36 | 2019-11-20T09:11:36 | 217,935,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from django.apps import AppConfig
class DqeConfig(AppConfig):
name = 'dqe'
| [
"gavin@foxconn.com"
] | gavin@foxconn.com |
6bc2b8d39f966cac094db6b5c6c1371919362bf7 | 07acc994db69fc1f8d92d63b5979aa2f4cd687f9 | /config/wsgi.py | d121d21402b0f26a15c725faa9cf686c19d372c9 | [
"MIT"
] | permissive | pavlovicr/bcs | e05d97c87b488a148ae9a4d8fb23b99de31c44da | e38a2cf988bf4470dedfb4ca0b02d3c4ba6b80f2 | refs/heads/master | 2021-05-08T15:49:59.802370 | 2018-10-31T19:22:31 | 2018-10-31T19:22:31 | 120,127,034 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | """
WSGI config for bcs project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` sett... | [
"rados.pavlovic@euroinvest.si"
] | rados.pavlovic@euroinvest.si |
27e8be43a750682db198f4c4e531ea92710c421d | 6f9380fae128a8a097cd5a66f6a06f8f0791eea5 | /intercom_mattermost/asgi.py | 3b6f5f327b2f5646de58a29da88ba2a08935d33c | [] | no_license | LaBayVeTroi/intercom-mattermost | 1688a4b984b28ae06687901ad2965fe9cda18b37 | 3336841b04f247b874fa2b294c08722de3a494e5 | refs/heads/master | 2021-03-11T11:58:27.905597 | 2020-03-11T09:12:35 | 2020-03-11T09:12:35 | 246,526,880 | 0 | 0 | null | 2020-03-11T09:21:36 | 2020-03-11T09:21:35 | null | UTF-8 | Python | false | false | 415 | py | """
ASGI config for intercom_mattermost 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('... | [
"phmtuan313@gmail.com"
] | phmtuan313@gmail.com |
3fa3c62d774e21245e74937168de3992ac3770b8 | ecf85bcf4a8a0c234c0151c9d426755a45caf164 | /Python Library/EX_pyAesCrypt.py | e6c52f3db0a48b7cf88d4b2c9a30b879b676e1d4 | [] | no_license | dentiny/Python-applications | c6351a5842c958f0169997b57c887fbb435b1590 | 700ca488b26bdb1b6456a141486a6f68679d28e3 | refs/heads/master | 2021-06-19T17:46:43.073939 | 2021-01-21T05:15:40 | 2021-01-21T05:15:40 | 167,809,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import pyAesCrypy;
password="password";
buffer_size=64*1024;
pyAesCrypt.encryptFile("file.txt", "file.txt.aes",password,buffer_size);
pyAesCrypt.decryptFile("file.txt.aes","file.txt",password,buffer_size);
| [
"noreply@github.com"
] | dentiny.noreply@github.com |
e32c1292e66c96cf9ac99ddebf502af97c20107b | b7c59c059c2562f98859c10b87e3509dbaee9f53 | /test/unit/client/test_posts.py | 858cc8b601e880a72557871b6d35f438c0668528 | [] | no_license | culturemesh/culturemeshFFB | 37e21975bff6e7e61dd961068f96cd17186d78da | 53b4b61d541751d517d5e3a7a077358c4494d132 | refs/heads/master | 2022-03-01T23:38:27.329929 | 2019-10-28T07:29:58 | 2019-10-28T07:29:58 | 106,875,697 | 2 | 2 | null | 2019-10-28T07:15:39 | 2017-10-13T21:38:00 | Python | UTF-8 | Python | false | false | 865 | py | #
# Tests client/posts.py
#
from nose.tools import assert_true, assert_equal
import test.unit.client.client_test_prep
from culturemesh.client import Client
def test_get_post():
"""
Tests we can get a single post.
"""
c = Client(mock=True)
post = c.get_post(4)
print(post)
assert_equal(post['vid_link'], ... | [
"alanf94@stanford.edu"
] | alanf94@stanford.edu |
0c67c809421800dba3f118a0c77c9b2ce41181c6 | fad5c0cf71ce8f0e7dc4029270a48969f3311dd7 | /resgrid/nr/codebook1/para.py | ad7326863025ef61ddbf3b9c6b700c197ea74160 | [] | no_license | liuyonggang1/liuyonggang1.github.io | 1cb93560e6b8e80169b66326610bbd538798e33a | 1b99f7576195d6169aa67b2b11136c8f0e13ab0c | refs/heads/master | 2023-04-11T05:00:24.871853 | 2023-04-01T13:28:58 | 2023-04-01T13:28:58 | 191,664,945 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | from parabase import Parameter, ConfigBase, ParameterDisplay
# import sys # sys._getframe().f_code.co_name = {File}_{Class}_{digit}_{function}_{digit}
#############################################################################
# start add parameter
##############################################################... | [
"yonggang.liu@nokia-sbell.com"
] | yonggang.liu@nokia-sbell.com |
a7a86059a9d0de0019b07e665dadab10f212e05d | ddcaa8f8c330ac79daf8893eb77252910b5fa369 | /image_classification/setup.py | ee288ad8ec06d9f274fce7e89b8ba1010fa001a4 | [
"Apache-2.0"
] | permissive | waikato-datamining/tensorflow | 6d396803547232a3ee63d72bf35cd0a2c0dc9713 | 98adc81e7a70093dba18c527ce98cd9e77065d51 | refs/heads/master | 2023-04-06T20:20:40.954270 | 2022-09-30T00:27:36 | 2022-09-30T00:27:36 | 132,871,288 | 2 | 5 | null | 2023-03-26T20:18:05 | 2018-05-10T08:26:57 | Python | UTF-8 | Python | false | false | 1,769 | py | from setuptools import setup, find_namespace_packages
def _read(f) -> bytes:
"""
Reads in the content of the file.
:param f: the file to read
:type f: str
:return: the content
:rtype: str
"""
return open(f, 'rb').read()
setup(
name="wai.tfimageclass",
description="Image classi... | [
"fracpete@gmail.com"
] | fracpete@gmail.com |
a07cef6dbffcbf1eb0f07a581c979bed024b4f4a | fa8a430bd484d3a96aba27a2abb73226fa5c3920 | /Main/cnf_min.py | 80885e4dfb7ee9e38adcd29fff085243e04a2cbd | [] | no_license | Shubhankar007/ECEN-699 | f39aecda647bf61f6b151d41016e5c5f5d3bf52c | b738faf36a8fd891b9c7e98b95188d00bd6d2ef3 | refs/heads/master | 2021-01-10T15:45:06.091632 | 2016-05-06T21:41:17 | 2016-05-06T21:41:17 | 54,232,604 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | #!/usr/bin/python
from pyeda.inter import *
import sys
import ast
#function to split clause list
def split_list(seq, size):
newlist = []
splitsize = 1.0/size*len(seq)
for i in range(size):
newlist.append(seq[int(round(i*splitsize)):int(round((i+1)*splitsize))])
return newlist
#Import CNF file ... | [
"shubhankar.007@outlook.com"
] | shubhankar.007@outlook.com |
2e6737da85278d0e58fa363fc15db9e421376690 | e4b31b28ac7e6a98f82fc6ce596242d931eef950 | /utils/logger.py | 69b802fd2f868c442434f7eb620f9a7275a95c80 | [] | no_license | dgl-prc/pfa_extraction | 6df1295f1f8d1421d6d36ffbd5fdcb9e37bf04c3 | 8b32da42ce4037e8672095f2c8f24eba9f7bca34 | refs/heads/master | 2023-04-06T04:33:25.975490 | 2019-12-22T14:55:09 | 2019-12-22T14:55:09 | 183,348,663 | 0 | 0 | null | 2023-03-24T23:18:02 | 2019-04-25T03:22:40 | Python | UTF-8 | Python | false | false | 423 | py | import sys
import os
class Logger(object):
def __init__(self, filename='default.log', stream=sys.stdout):
path = os.path.dirname(filename)
if not os.path.exists(path):
os.makedirs(path)
self.terminal = stream
self.log = open(filename, 'a')
def write(self, message):
... | [
"2469039292@qq.com"
] | 2469039292@qq.com |
cf0077e02d0facb38182876a848e1d77a50cb7dc | 71460476c5f5ebdca719def124f1a0650861fdab | /mint_work/custom/website_support/models/__init__.py | acc3edeae75ffcea559ebdda524111b3e095b039 | [] | no_license | merdhah/dubai_work | fc3a70dc0b1db6df19c825a3bf1eef2a373d79c0 | e24eb12b276a4cd5b47a4bd5470d915179872a4f | refs/heads/master | 2022-01-07T11:22:07.628435 | 2018-10-17T13:37:24 | 2018-10-17T13:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # import website_support_ticket, res_partner, website_support_help
import res_partner
import project_case
| [
"asghar0517@gmail.com"
] | asghar0517@gmail.com |
2f41e15819c9b6581a8d03aa451b8f225f44308c | fdef109b896eae29c5e7719107eaf60b32384a43 | /users/migrations/0006_auto_20200115_1950.py | 5fbb172b852d2751f1b54d9438d42f30b6a82bb0 | [] | no_license | DimaSapsay/ma_book | 2cac7aa4d8db099dd628398fe0dcc99b129609d4 | 57572cec27449bf6d88c1e7de16e0e048372eaf6 | refs/heads/master | 2020-12-15T09:52:22.669639 | 2020-02-24T22:38:03 | 2020-02-24T22:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # Generated by Django 3.0.2 on 2020-01-15 17:50
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),
('users', '0005_auto_20200... | [
"logotip123@yahoo.com"
] | logotip123@yahoo.com |
162a02858d11b22fc69525f65f3e65e82933e009 | 960aa77201947f20288612744566a04a4df27095 | /performance/migrations/0009_auto_20171203_0959.py | 11ab41402defa641e03852acd254f5b166ac556a | [] | no_license | ahmadiga/personal-assistant | 3fd05b7bf2a4ae4feedebc55f940f1e54c6f7640 | 26703b32ae154a4cc72eb1d88c1d37594ffa2fa4 | refs/heads/master | 2021-01-12T09:30:54.704880 | 2018-02-08T19:41:16 | 2018-02-08T19:41:16 | 76,168,300 | 2 | 5 | null | 2018-01-25T14:01:24 | 2016-12-11T10:45:50 | HTML | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-12-03 07:59
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('performance', '0008_auto_20171203_0958... | [
"m.bazadough@sit-mena.com"
] | m.bazadough@sit-mena.com |
ce6d49c3500788c0879de6c7ef21e5b063f46026 | eb6fad2bb7e7a54cf13123ccb1889b5441ca4fb7 | /segmentation/test_coco.py | ccc92c343578e2605c28f5b549422fa002c9afbd | [
"MIT"
] | permissive | daydreamer2023/VISTA-Net | 728bd6721c96c285adf8be0b1d2fcff41e0bfc4a | 62e54c7ecf0e39d3e26a1bd930ea4b6d1f9b0370 | refs/heads/main | 2023-03-05T13:47:08.317135 | 2021-02-15T11:33:09 | 2021-02-15T11:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | ###########################################################################
# Created by: Hang Zhang
# Email: zhang.hang@rutgers.edu
# Copyright (c) 2017
###########################################################################
import os
import torch
import torchvision.transforms as transform
import scipy.io as sio... | [
"641807447@qq.com"
] | 641807447@qq.com |
19033387259ea46681b3410825fa6ebd05639b21 | bfbe07f8edd3b5b3c1ac2393b8508ced3845219d | /Contests/Google/Codejam21/Round1C/B/B.py | ed00fe939fef67b75557b49a61aafbc27db263ff | [] | no_license | srinjoyray/Competitive | 5ee384b446a20aad2cdcea8e08304101a9a92b34 | d6680510462a915756c4835374d2d6a342960f5f | refs/heads/main | 2023-06-16T16:08:10.787883 | 2021-07-14T14:19:17 | 2021-07-14T14:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | t = int(input())
for test in range(1, t + 1):
s = "Case #" + str(test) + ":"
print(s, end=" ")
y = int(input())
ys = str(y)
a = []
ans = ""
for i in ys:
ans = ans + i
tmp = ans
for j in range(int(tmp) + 1, 10**26):
tmp += str(j)
a.append(int... | [
"ankurkayal1234@gmail.com"
] | ankurkayal1234@gmail.com |
51922f396cb3bd0169ef7c29ddd80a31cd539a3e | 785ebba58aff36a4d9411b2c1e9fc76f04e18dd1 | /Artificial Intelligence/Assignments/Assignment 2/.ipynb_checkpoints/game-checkpoint.py | d260c23d17fd61b3ed33f0c4969b40e716ebe430 | [] | no_license | masterashu/Semester-4 | 60b6f2a6941edb7f2fa8b3113df85ed55b836119 | 4ed82c7d84ed848a2cce8ffaa41e027a5f1611eb | refs/heads/main | 2022-12-12T20:33:53.986287 | 2020-09-05T13:39:42 | 2020-09-05T13:39:42 | 293,082,589 | 0 | 0 | null | 2020-09-05T13:39:44 | 2020-09-05T13:35:35 | Jupyter Notebook | UTF-8 | Python | false | false | 3,381 | py | from abc import ABC, abstractmethod
from minmax import *
from typing import List
class Player:
def __init__(self, name='Player', mark=None, user: bool = False):
self.name = name
self.mark = mark
self.user = user
def __str__(self):
return f'{self.name} - {self.mark}'
class Ga... | [
"masterashu@live.in"
] | masterashu@live.in |
1a0c2038efd1f65eea978eb7cfed64dabe005087 | 0b6ed51cedd44df54e511a0bdeb28dcfb89d6c58 | /age_func.py | 91a82e5e1ecfd637e0aa1f61b3159319c1775946 | [] | no_license | nansencenter/nextsim-age | b2180971058a3f64b049bc6479cff272cdb27dc9 | 51029ce58cf3ef073d540a5564649f79de978c7a | refs/heads/master | 2020-03-31T21:40:09.354760 | 2019-06-18T12:03:03 | 2019-06-18T12:03:03 | 152,589,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,772 | py | import numpy as np
import matplotlib.pyplot as plt
import regionmask
import cartopy
import cartopy.crs as ccrs
import pyresample as pr
import scipy.ndimage as ndimage
from pyproj import Proj, transform
def plot_pcolormesh(lons,lats,var,outname,vmin=0,vmax=1,cmap='jet',label='Variable'):
# create the figure panel... | [
"geopolonica@gmail.com"
] | geopolonica@gmail.com |
d9bf433949bfe44f549106417d3231148380ab7a | f0b3d4c9e6a5f8f4454adedf91db1b80c89401a7 | /operatory.py | b74951f045fd8815a5b53e9c300d275522d85dee | [] | no_license | akotwicka/Learning_Python_Udemy | 5b31656858e8d729cc0274b3b873f9d3852e67b9 | c3d1c93d914ae1f2d4f497181ac41de39aeb0ce0 | refs/heads/master | 2020-06-24T18:28:42.294106 | 2019-08-06T10:45:34 | 2019-08-06T10:45:34 | 199,046,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | class Cake:
bakery_offer = []
def __init__(self, name, kind, taste, additives, filling):
self.name = name
self.kind = kind
self.taste = taste
self.additives = additives.copy()
self.filling = filling
self.bakery_offer.append(self)
def show_info(self):
... | [
"a_kotwicka@wp.pl"
] | a_kotwicka@wp.pl |
60d29f8f859c00b316824ed6c3fc2e5ca0436598 | f91c71f5dd3fdef91d7db2c8ebac03b0d4b1d22b | /Qt/g2.py | 240716c1c65c1cd0f1e6d83417622622b4df2e6e | [] | no_license | vijayakumar75/py-programs | dd7ee9d6160e358b27498fc5e70376e146f485a2 | a07056ddd400280cdf65b6cc57d0103d3581b54d | refs/heads/master | 2020-05-04T18:45:21.811548 | 2016-08-29T11:56:42 | 2016-08-29T11:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | import logging
import sys
import traceback
import logging.handlers
class gi:
def __init__(self,message):
self.message=message
def getMessage(self):
return self.message
def setMessage(self,message):
self.message = message
class StreamToLogger(object):
def __init__(self, logger, log_level, std, handler):
se... | [
"girishramnani95@gmail.com"
] | girishramnani95@gmail.com |
acaed954e590d163f9df84e081c988bbabd00661 | 1a93478e72c6fb4528006d76d518cf3e1e4b676b | /medium_boardgame_bot.py | 7ff3f910d8a8a4d2692901b11d2a50c40fe9e6cd | [] | no_license | iamohcy/medium_boardgame_bot | 618db0d8426e70d00bea65524f572cf6bff4b909 | b9209849c3809156a6b8d1120259e27cf1617b84 | refs/heads/master | 2022-04-10T19:28:15.182807 | 2020-04-01T10:54:08 | 2020-04-01T10:54:08 | 251,350,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,184 | py | TOKEN = "953155266:AAF-g0tEk7qMCZwDxheNHQZD3oGMXn5w3G0"
# TODO:
# 1) don't let /begin work multiple times
# 1) solve issue with empty entries, use original word instead
# 2) solve issue with multiple ins
# 3) solve issue with no past words
# 1) Fixed issue with /begin working multiple times
# 2) Fixed... | [
"iamohcy@gmail.com"
] | iamohcy@gmail.com |
21127b91e1a1270f520744db39ed1654c850fbe7 | f0117325b7a40779965b35ec6cefc8d12353d779 | /python_exercises/py_part3_ex/lecture_ex/graph.py | f52b6765dbabf902157c27570ddac5c742aa6dfe | [] | no_license | joshwestbury/Digital_Crafts | 4188e71ad631439dcb2cca9eea63d29400c37dc0 | 66c06f198d110388781a30c0ecb7902d3a8daf5a | refs/heads/master | 2021-07-24T05:37:02.370341 | 2017-11-04T14:36:39 | 2017-11-04T14:36:39 | 103,189,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from matplotlib import pyplot
def f(x):
return 2 * x + 1
def g(x):
return x + 1
for x in range(-3, 5):
print("f({x})={y} \t g({x})={z}".format(x=x, y=f(x), z=g(x)))
f_output = []
g_output =[]
x_list = list(range(-3, 5))
for x in x_list:
f_output.append(f(x))
g_output.append(g(x))
pyplot.plot(x_... | [
"joshwestbury@gmail.com"
] | joshwestbury@gmail.com |
021499735f89ec69e09a67a4705a4f336386e591 | c440f2cffdb41da5e940376c621a872f3eb93377 | /maze_generator/mazegen | 891aa461549c82b9050c333c361a5defb7b42e4f | [] | no_license | stephkno/CS_21_Python | 06cab501e811c51ba74a9f9dddcc4440a23cbb6d | 266bc6e34670966c5491d3a7559df27dd08d188c | refs/heads/master | 2023-04-30T02:39:19.868600 | 2023-04-22T01:56:21 | 2023-04-22T01:56:21 | 357,671,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | #!/usr/bin/python3
from lib import maze
import argparse
parser = argparse.ArgumentParser(description="Generate a random maze.")
parser.add_argument('size', help="size of maze on one side", type=int)
parser.add_argument('-r', help="render maze as ascii", action="store_true")
args = parser.parse_args()
maze = maze.Maz... | [
"Stephen@Janet.local"
] | Stephen@Janet.local | |
a3f8472743fefea8dc4b08dc4ae24ade165536c6 | f5fd4bd6271b5a2b8bb0329b6d987bde00764b47 | /src/cookbook/settings/base.py | 5601ea9d2fd47db67bb097b44009c623f8661fed | [
"MIT"
] | permissive | triump0870/cookbook | 540151f064df5145e6f382ecb8cf80cb61461848 | 58aedc67d0bcf32a397953ae5389076edc26e1ae | refs/heads/master | 2021-01-09T09:37:24.344609 | 2017-02-21T09:35:26 | 2017-02-21T09:35:26 | 82,543,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,541 | py | """
Django settings for recipes project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
from django.core.urlresolvers import reverse_lazy
from os.path import dirna... | [
"b4you0870@gmail.com"
] | b4you0870@gmail.com |
c5a9dce6468abc8cb2729e8cc8e6805d9b844826 | aeadf4ba76c940f47420220a998df4b14d59539c | /x64/Release/benchmark.py | 27635f51dde7a8a73843a9a5d4561aa43f1d0edd | [] | no_license | acraddoc91/PythonCorrelationsLibrary | cb0baaeba89fda05f40209cfa6548a96e9d300d3 | b284855231d1281c2c5c68bdc99be39e0aec501d | refs/heads/master | 2021-09-10T12:42:06.513308 | 2018-03-26T13:09:18 | 2018-03-26T13:09:18 | 116,185,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | from corrLib import g2ToFile
import numpy as np
import time
import scipy
mat_directory = "C:/Users/Ryd Berg/Google Drive/Rydberg Experiment/Matlab/CorrelationCalculations/"
data_directory = "C:/Users/Ryd Berg/Downloads/"
data_folder = data_directory+"g2_benchmark/"
mat_file = mat_directory+"g2_n22_test_opencl"
benchm... | [
"acraddoc@umd.edu"
] | acraddoc@umd.edu |
9f1f38050f2114767124aaa270d7ca0007966853 | d485ac12220d6febfe383bde45d55b3160cdc930 | /treasury/urls.py | ff6d1f7c70a14d46f8715fc9d6fe161a1b7223bb | [] | no_license | argon2008-aiti/lcidarkuman | 03ef2b2c200ca21b57f7b8089976c8b3a1c03612 | 3e54fffdf9605edd87e7bfce134d0c5203dc72a9 | refs/heads/master | 2021-01-13T03:09:32.388512 | 2019-05-19T14:16:48 | 2019-05-19T14:16:48 | 77,407,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from django.conf.urls import url
from django.contrib.auth import views
from django.views.generic import TemplateView
from views import *
urlpatterns = [
url(r'^offering/all/$', get_all_offerings, name="offering-all"),
url(r'^tithe/all/$', get_all_tithes, name="tithe-all"),
url(r'^tithe/add/$', add_tithe, n... | [
"yunguta@gmail.com"
] | yunguta@gmail.com |
76b81aa534882a53060e39b9e6a9a654146ec745 | a9edafa96979580729aad2eacc3f70f1eacb3152 | /src/budy/subscription.py | dc3a1ecb08ebda897f5f7af76838b95304e8d460 | [
"Apache-2.0"
] | permissive | gcandal/budy_api | c34b9fa9fb1cf2fff61e4b14e899414dc5bc1049 | eaac58105d95b6ac993b96e186a5f246e998b982 | refs/heads/master | 2021-01-18T01:11:46.190186 | 2016-08-09T14:02:29 | 2016-08-09T14:02:29 | 63,064,209 | 0 | 0 | null | 2016-07-11T12:00:32 | 2016-07-11T12:00:32 | null | UTF-8 | Python | false | false | 1,482 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Budy API
# Copyright (c) 2008-2016 Hive Solutions Lda.
#
# This file is part of Hive Budy API.
#
# Hive Budy API is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apache
# Foundation, either ... | [
"joamag@gmail.com"
] | joamag@gmail.com |
194ea95f9c7318ab3957d1f2ed41dce581ddeac3 | b7a81ca6378dab90ac0e39678401d7f8842c4fed | /quantization/WqAq/IAO/models/util_wqaq.py | a66f1e8201fb486c53843577d237e12a79464d0e | [
"MIT"
] | permissive | jth19961209/SSD-Pruning-and-quantization | 62cfdff1c8180495c6bdc4130a1562eeced2a1b4 | 64b84dfa88a1686593addaa9941cc14579e129ee | refs/heads/master | 2023-03-17T03:30:48.020816 | 2021-01-28T14:31:27 | 2021-01-28T14:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,922 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import distributed
from torch.nn import init
from torch.nn.parameter import Parameter
from torch.autograd import Function
#Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference
# ********************* ra... | [
"1067280907@qq.com"
] | 1067280907@qq.com |
b3c7ff7640bc10a3dad3d39b85ab90664ade33f3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/elus.py | 0c2e2273602092d391eb81d1516dac677e2ff7bc | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 221 | py | ii = [('MarrFDI.py', 1), ('AubePRP2.py', 1), ('ChalTPW2.py', 1), ('WilkJMC2.py', 1), ('MarrFDI2.py', 1), ('LyelCPG.py', 1), ('WestJIT2.py', 1), ('WheeJPT.py', 1), ('MereHHB3.py', 1), ('MereHHB.py', 1), ('MereHHB2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
15f52cc761a1c7297e3a8a9b8ce9720b374d5920 | ad9aa194cee160080a3a7047c5dd1585b2b2eb7e | /lieu_de_travail/admin.py | d7f55e6c15c0911af4df9df924f66887d67e7a72 | [
"Apache-2.0"
] | permissive | ghassen3699/Site_web_Projet | ba2236cd69841f6733a79d86a4f9beac27350618 | 20eca8ded72f4e798862dd5440000afe04892092 | refs/heads/main | 2023-08-04T22:33:48.427216 | 2021-09-20T16:50:31 | 2021-09-20T16:50:31 | 389,125,501 | 0 | 0 | Apache-2.0 | 2021-07-26T14:04:40 | 2021-07-24T14:58:49 | JavaScript | UTF-8 | Python | false | false | 224 | py | from django.contrib import admin
from . import models
admin.site.register(models.Province)
admin.site.register(models.Region)
admin.site.register(models.Commissariat_De_Police)
admin.site.register(models.Lieu_De_Travail)
| [
"ghassenkhammessi123@icloud.com"
] | ghassenkhammessi123@icloud.com |
595e41579da4f5deb8fcfcbc59c1d14cbd2cae6b | 4d332c45578246847ef2cdcdeb827ca29ab06090 | /modules/Bio/Align/Applications/_TCoffee.py | d56019d21977b00c9d0b6949d80e39ddf4a7e309 | [
"MIT"
] | permissive | prateekgupta3991/justforlearn | 616cc297a2a6119fa959b9337a5e91c77a11ebf7 | 3984c64063b356cf89003e17a914272983b6cf48 | refs/heads/master | 2021-03-12T22:09:12.184638 | 2014-01-28T10:37:07 | 2014-01-28T10:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | /usr/share/pyshared/Bio/Align/Applications/_TCoffee.py | [
"prateekgupta.3991@gmail.com"
] | prateekgupta.3991@gmail.com |
c53b377de5894d28d1e81d8b4451d37e07002ee0 | 589bec013b65761769a9d3916b22c5d1f4d7cda3 | /main.py | 6183dbc149e865bbaadf7b6f83bcbdbb5d8409d1 | [] | no_license | JejeDurden/TSP-Solver | c4330cf07f37e70135288930f5cf77893db17764 | 655d32d654093c35b2e22ebac89e51e4e0dd62d4 | refs/heads/master | 2021-05-14T23:51:26.693841 | 2017-09-26T11:59:26 | 2017-09-26T11:59:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | #!/usr/bin/python3
import sys
import pandas as pd
from parser import parse_args
from algos import kmeans, nearest_neighbor, two_opt, three_opt
def get_csv():
cities_graph = pd.read_csv("cities.csv", header=None)
return cities_graph
def formatting(l):
result = []
for i in range(len(l)):
resul... | [
"jdesmare@e6r1p4.vp.42.fr"
] | jdesmare@e6r1p4.vp.42.fr |
55fa06e49a994bde4419719cc785bed9c09bc0c4 | e1ec1f5bb8829080cc8cc8a0bce880cca9528176 | /ssd/train.py | 2cfad7596e06c17aac074f2a168d9a900827ba22 | [] | no_license | danielhr444/SSD_EpiSci | 26a3bfb22ed38131f02affdc2968546e7354c0de | cfef2037e8832ca958ebf009c5dcb39730234cc7 | refs/heads/master | 2020-06-24T08:42:08.303757 | 2019-07-26T00:45:44 | 2019-07-26T00:45:44 | 198,918,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,375 | py | import time
import torch.backends.cudnn as cudnn
import torch.optim
import torch.utils.data
from model import SSD300, MultiBoxLoss
from datasets import PascalVOCDataset
from utils import *
# Data parameters: change as needed
data_folder = './' # folder with data files
keep_difficult = True # use objects considered d... | [
"user@gmail.com"
] | user@gmail.com |
fd3b78ffdbb57d84e5a47701783137b83a0f5135 | ae5964d4a9ce49ef5a3f0847ff17ff7bc09a115e | /convert_mass_clubs.py | f9b3818a36c2acd88ff98dee299853b1bfe39fed | [] | no_license | JT-Green/j-t1000 | b711e696cde303b5f60cd78d418f069a3b7053b5 | aaecae907709d4be527f49e2577c48a8f9d2bc13 | refs/heads/master | 2021-07-13T11:41:57.045713 | 2017-10-18T21:06:41 | 2017-10-18T21:06:41 | 107,462,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | import pandas as pd
import numpy as np
FILEPATH = r'G:\Public\National Accounts\WeeklyBestsellerImports\Temp\MassClub.xlsx'
SAVEPATH = r'G:\Public\National Accounts\WeeklyBestsellerImports\~MassClub.xlsx'
INITIAL_COLUMNS = ['\n\nAgency', '\nMaster \nChain Code',
'\nMaster \nChain Name','\n\nChain C... | [
"31543546+JT-Green@users.noreply.github.com"
] | 31543546+JT-Green@users.noreply.github.com |
18d9688db1dbb88f9df1a33d3aae010adc4ebbf1 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/operations/_express_route_cross_connection_peerings_operations.py | 8fbdc1d2ff97d2d24bb4eadb4d0eb5d99fa451a1 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 21,108 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
9a8cc9ae26df01035725f242bf5a9bc7582b02a9 | 8c46543db2ac0645fe3a90e69b9e8e13c3e9d68d | /test/functional/rpcnamedargs.py | b3a0c04741bada2996a08022bfeeef95f1093ebe | [
"MIT"
] | permissive | LISY-Network/LISY-Network | 4552cc21e201238969633b4d3552cea4a645c189 | ba0a8ebc8ab79437aca9372a192a687398da5314 | refs/heads/master | 2023-01-14T14:12:21.328616 | 2020-10-10T04:33:15 | 2020-10-10T04:33:15 | 302,812,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Copyright (c) 2017 The LISYNetwork Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test using named arguments for RPCs."""
from test_fram... | [
"lisy_network@163.com"
] | lisy_network@163.com |
8f71d5aa302c85c4b833a7caaa7b03ebb0f3aa3d | dbf65a728e020d84e730978574ee5bd9cf1af5e5 | /products/forms.py | 86f8ef7d82c3ce256e4d284c6cc74ba44e966888 | [] | no_license | GladkihAnton/Parfum-site | b65f35c5ec1ec9516491f0571a3d5e7600ef0de5 | ecee2ff8b25bfcdd43bf76e46bf0388a5e988f4f | refs/heads/master | 2023-02-16T13:21:27.169826 | 2020-07-19T13:41:38 | 2020-07-19T13:41:38 | 326,384,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | import csv
from django.forms import Form, forms
class ImportCsv(Form):
file = forms.FileField(required=True)
| [
"Antoha_1997@mail.ru"
] | Antoha_1997@mail.ru |
ecfa02b7fd389f8564b7bcc8227ac2c2335c8780 | 2930c21d382f182cdf4c6fbea16a16a7d95bf6c4 | /src/train.py | 25fa4c62a25029dd24f76d60fb9e6179370f0eb0 | [] | no_license | mylee16/food-classifier-docker | 4e6a9b8d760ad854622e4fd06b5b6291f582cef0 | 4be4b1c2b6f0f4a6bdf2ce57cdf85cdee4070f23 | refs/heads/master | 2023-02-25T17:49:25.053625 | 2021-01-22T14:53:18 | 2021-01-22T14:53:18 | 330,350,555 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,158 | py | import os
import tensorflow as tf
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.callbacks import ReduceLROnPlateau, TensorBoard, EarlyStopping, ModelCheckpoint
from tensorflow.keras.optimizers import Adam
from polyaxon_client.tracking import get_outputs_path
class FoodClass... | [
"meng_yong_lee@aiap.sg"
] | meng_yong_lee@aiap.sg |
5a12fa462f8d806510b790eeb904d7f5934cdfed | afa2ebb439e6592caf42c507a789833b9fbf44b2 | /pipeline/0x01-apis/3-upcoming.py | ccb1825e88e1888b19b9f97a17cc6215828acf01 | [] | no_license | anaruzz/holbertonschool-machine_learning | 64c66a0f1d489434dd0946193747ed296760e6c8 | 91300120d38acb6440a6dbb8c408b1193c07de88 | refs/heads/master | 2023-07-30T20:09:30.416167 | 2021-09-23T16:22:40 | 2021-09-23T16:22:40 | 279,293,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | #!/usr/bin/env python3
"""
A script that prints:
the Name of the launch
The date (in local time)
The rocket name
The name (with the locality) of the launchpad
"""
import requests
if __name__ == "__main__":
"""
returns: the Name of the launch
The date (in local time)
The rocket name
... | [
"laabidigh@gmail.com"
] | laabidigh@gmail.com |
b62204921be03f06b20e13e3d0332571e475e7e3 | 81bad22641705683c68ff89f19362ba202891652 | /examples/inherit_viewer_style.py | c4aca965d0bbad1436bc65de90221fa3f5d813fc | [
"BSD-3-Clause"
] | permissive | sofroniewn/napari | ee2a39a1a1132910db6f2a47994671e8138edb51 | beaa98efe5cf04ba659086e7a514b2ade05277af | refs/heads/main | 2023-07-12T02:46:41.185932 | 2022-09-14T21:57:15 | 2022-09-14T21:57:15 | 154,751,137 | 2 | 3 | BSD-3-Clause | 2023-07-01T10:26:45 | 2018-10-25T23:43:01 | Python | UTF-8 | Python | false | false | 2,156 | py | """
Method to get napari style in magicgui based windows
====================================================
Example how to embed magicgui widget in dialog to inherit style
from main napari window.
"""
from typing import Callable
from qtpy.QtWidgets import QDialog, QWidget, QVBoxLayout, QPushButton, QGridLayout, QL... | [
"noreply@github.com"
] | sofroniewn.noreply@github.com |
9877facc22b668b02cd961572f0f5c76acb4b1c6 | 7dce2f4754775f4f1bcebbddd5508d062f8a6a90 | /_AceVision_testcodes/A3239_backside_검출/backsideBarcode.py | 8c794a636ca88a382e6d38c6cb9177a7cb7416bb | [
"MIT"
] | permissive | lyj911111/OpenCV_Project | 67d6bb35c90b7a8d40c20c4de3715b49d882ade7 | 9acbfbf666188b6ebb7f2ec4500bb3ab3d2994b9 | refs/heads/master | 2022-12-07T19:10:01.193459 | 2020-09-17T12:48:13 | 2020-09-17T12:48:13 | 161,764,211 | 0 | 0 | MIT | 2022-11-22T03:31:47 | 2018-12-14T09:45:43 | Python | UTF-8 | Python | false | false | 7,306 | py | '''
Resized된 화면에서 원하는 부분의 ROI 잡으면,
원본영상에서 확대되어 출력.
"i" key : 화면 정지, ROI 지정모드
마우스 좌클릭-드레그 : ROI 지정
'''
import cv2
import numpy as np
import glob
import re
import pyzbar.pyzbar as pyzbar
col, width, row, height = -1, -1, -1, -1
frame = None
frame2 = None
inputmode = False
rectangle = Fals... | [
"lyj911111@naver.com"
] | lyj911111@naver.com |
8f33981389eeed072b029272dddb155b4a643d03 | 957f52df04cb786fd1b53b4be14ab5dfb6a0684d | /af_pan_mixer_test.py | 71ebd7b3a7d5ca8edab15ba0ac9d1454e2b73160 | [
"BSD-3-Clause"
] | permissive | hvrauhal/panfiltermixer | 34b857f02e1ed3b62d040161f639c512a380176c | 47745e075f19c0afe19c633180fdafcad7c01244 | refs/heads/master | 2021-01-16T00:27:46.854864 | 2010-11-27T12:46:09 | 2010-11-27T12:46:09 | 1,034,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import unittest
from af_pan_mixer import AfPanGenerator
class AfPanTests(unittest.TestCase):
def test_split_single(self):
self.assertEquals([[1]], AfPanGenerator.group_mixer_to_Is_and_Os("1",1))
def test_split_two_inputs(self):
self.assertEquals([[1,2]], AfPanGenerator.group_mixer_to_Is_and_Os(... | [
"hvrauhal@gmail.com"
] | hvrauhal@gmail.com |
21ef510d70850e9e5388e69c15325c14cb3d9c0c | 7db77c9e3bbd079e49535c526b4e47fe538c4e73 | /python/inlPlot.py | b7cdf30d7f031629586a74f2c6896022869fdc98 | [
"BSD-3-Clause"
] | permissive | fermi-lat/calibGenCAL | d451a242c793b6ddb10cb1d523205da6a0b0279b | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | refs/heads/master | 2022-02-25T16:05:43.694826 | 2019-08-27T17:29:03 | 2019-08-27T17:29:03 | 103,186,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,663 | py | """
Create plots of Cal intNonlin curves
inlXML2TXT <input_xml_file> <output_root_file
where:
<input_xml_file> = input intNonlin GLAST Cal offline calibration file
<output_root_file> = output ROOT file with plots
"""
__facility__ = "Offline"
__abstract__ = "Create plots of Cal intNonlin curves"
__author_... | [
""
] | |
7e7b234c64a77fe9d295516ec00fe25fe309b80e | 8b3d892bc381bb6bac78955b3d3418550fe31f98 | /methods/image_dissimilarity/models/dissimilarity_model.py | 4d85008da095e43a227d22dd4f198e4a9c2debfe | [] | no_license | zhuyifan1993/road-anomaly-benchmark | 843f1285617f268bc30895dc9e3b1843f3a135d1 | 669dee269863401637db767e940c12a7f52715e0 | refs/heads/master | 2023-08-29T03:54:45.026856 | 2021-10-18T19:17:23 | 2021-10-18T19:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,419 | py | import torch.nn as nn
import torch
import torchvision.models
import sys
# sys.path.append("..")
# from image_dissimilarity.models.semantic_encoder import SemanticEncoder, ResNetSemanticEncoder
# from image_dissimilarity.models.vgg_features import VGGFeatures, VGGSPADE
# from image_dissimilarity.models.resnet_features ... | [
"chan@math.uni-wuppertal.de"
] | chan@math.uni-wuppertal.de |
bbbec17ee2645b5b53b371e2eae122c817a9ed94 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/models/_my_sql_management_client_enums.py | 94a9deb6bcd1c36157e380399c3b0727cf44c4d3 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 5,089 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
5ae8aea8f0bc145c51db544e8cfe00147bcdb6aa | 5c208a3a25133342fcfc24aeaf05475cef1a6208 | /face.py | 5ae09b96330fa7b95c418f709d6c1e3baecc0661 | [] | no_license | saeedaghabozorgi/FaceDetection | e5e26e26e85008ec8b011f3ee73bb500ba251b36 | 77cc9fcf344c1442c44a49c7528d9faa4a017158 | refs/heads/master | 2020-03-23T18:54:03.244065 | 2018-07-26T15:53:57 | 2018-07-26T15:53:57 | 141,939,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,961 | py | import os
import re
import sys
import tarfile
import cv2
import numpy as np
from six.moves import urllib
import tensorflow as tf
import face_input
FLAGS = tf.app.flags.FLAGS
# Basic model parameters.
tf.app.flags.DEFINE_integer('batch_size', 64, """Number of images to process in a batch.""")
tf.app.flags.DEFINE_boo... | [
"saeed@ca.ibm.com"
] | saeed@ca.ibm.com |
a4d4e2ccc8d69afb1d39cc45e2fb449b5ea67b2e | d301c28ca761a6e59681e86cfca8d479dd9ea106 | /pymdwizard/gui/metainfo.py | 6758f4931be450ea8b2e2447e9992716c01d82c0 | [
"CC-BY-4.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ehbaker/fort-pymdwizard | 1f184c957d25a1508e6ad128ba600757a323af4e | 77375030bdd7184279fee7976ed9f92d5c276ef5 | refs/heads/master | 2021-06-20T04:33:45.156187 | 2017-07-12T20:15:29 | 2017-07-12T20:15:29 | 94,485,610 | 0 | 0 | null | 2017-06-15T23:09:08 | 2017-06-15T23:09:07 | null | UTF-8 | Python | false | false | 6,532 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
"""
License: Creative Commons Attribution 4.0 International (CC BY 4.0)
http://creativecommons.org/licenses/by/4.0/
PURPOSE
------------------------------------------------------------------------------
Provide a pyqt widget for a Identificati... | [
"talbertc@usgs.gov"
] | talbertc@usgs.gov |
2326a0aec4923a378c606ceb9a289d21a37f7006 | 189517b63e0dc8c6e9ee2defd5e5fc98f43425c7 | /Gaps_meteorology/Scripts/gapswindspeed.py | 54246545e7cf39ad3ef45e00ca839de26960bac2 | [] | no_license | Raquel-Araujo/gap_dynamics_BCI50ha | bd15ff86b3aefd697de48f2d4782f78b3d801a85 | 15a05f60eb16d9ef215d422dbc2895c09a7910a8 | refs/heads/main | 2023-04-06T15:18:26.165602 | 2021-12-16T16:52:18 | 2021-12-16T16:52:18 | 416,399,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,809 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import datetime as dt
from matplotlib.cm import ScalarMappable
import collections
import statsmodels.api as sm
import sys
import statsmodels.formula.api as smf
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters... | [
"araujo.raquelf@gmail.com"
] | araujo.raquelf@gmail.com |
5146d05cbe70510bac2fff4baf6eedb080681893 | a5a0161cf91378479d1512ebf3000002317789dc | /src/pymeica/py_meica_subject.py | abebeb2ba33549ef13f3692565d04077405d7554 | [] | no_license | pappyhammer/bonn_assemblies | 0de0323b0fc864e3e149ac24cf52d5a22064463e | 510eef8c9b6f7ea8c86f74554c56f859d59eec28 | refs/heads/master | 2023-01-02T19:19:28.231485 | 2020-10-20T15:02:21 | 2020-10-20T15:02:21 | 150,748,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,136 | py | from cicada.analysis.cicada_analysis_format_wrapper import CicadaAnalysisFormatWrapper
import os
import hdf5storage
import numpy as np
from sortedcontainers import SortedList, SortedDict
import neo
import quantities as pq
from pymeica.utils.spike_trains import create_spike_train_neo_format, spike_trains_threshold_by_fi... | [
"julien.denis3@gmail.com"
] | julien.denis3@gmail.com |
8757ce41ff686de72bf880c4579a31a36cf628ba | 3c7aa6ecb5acf2b82edd284b956b86d1d7fbd29d | /test/test_rest_api.py | 4df1a092fadae98674a8d06dda0350de9febbff8 | [
"Apache-2.0"
] | permissive | tanhimislam/haystack | 7ca1991badb61b08cd9ab409cb3128568f353255 | 5cfdabda2c339b16a327e6ff10877ecea00c3038 | refs/heads/master | 2023-08-24T11:52:59.058072 | 2021-10-15T08:29:36 | 2021-10-15T08:29:36 | 417,428,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,263 | py | import os
from pathlib import Path
import pytest
from fastapi.testclient import TestClient
from haystack import Label
from rest_api.application import app
FEEDBACK={
"id": "123",
"query": "Who made the PDF specification?",
"document": {
"content": "A sample PDF file\n\nHistory an... | [
"noreply@github.com"
] | tanhimislam.noreply@github.com |
77ef79ca9fa00d359c60f5fc9b20d0f93f23c4b1 | 42a4a77e417e59479d8aacb55ca2bc84640b178e | /NewsChefAPI/NewsChefAPI/NewsModel/serializers.py | 6e290fd413ea7e07589717d10ff074124102a106 | [] | no_license | rahulShrestha89/Midversion-newsChef | 182e7744c7433716a7cca3f7287d1e7daa7209be | a585cfdfd549dc769c776e2796ea2ef983b1d30e | refs/heads/master | 2020-07-20T01:02:02.713270 | 2016-10-27T21:38:40 | 2016-10-27T21:38:40 | 73,749,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from rest_framework import serializers
from NewsModel.models import NewsModel
class NewsModelSerializer(serializers.ModelSerializer):
class Meta:
model = NewsModel
fields = ('id','created','firstName','lastName','email','phoneNumber')
def create(self, validated_data):
"""
... | [
"PrayushPokharel@Prayushs-MacBook-Pro.local"
] | PrayushPokharel@Prayushs-MacBook-Pro.local |
0ec93526b33317ffa6a2f38a2e79cc249998bd4a | 42474f0f92339992d9e8ded982e0458d01c028fd | /inputnumber_and_displaymenu.py | dc043deb83e5b17b4accccb6ec067d8239ddaa0d | [] | no_license | Frehoni/TestProjekt-1 | 14871f5a7d994cce87202d6b7f51bca75d276cd4 | ff37a4e96e9234c6c73f5fed0e144e3770afe47c | refs/heads/master | 2020-09-06T04:47:17.608913 | 2019-11-14T07:51:58 | 2019-11-14T07:51:58 | 220,326,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | def inputNumber(prompt):
#Inputnumber pronts user to input a number
#
#Usage: num=inputNumber(promt) Displays promt and asks user for a number.
#Repeats until user inputs a valid number.
while True:
try:
num = float(input(prompt))
break
except ValueError:... | [
"frehoni@gmail.com"
] | frehoni@gmail.com |
9c11636c982ae342d684df2b366e4ec72d64b10e | f41c999e9e367bf6d091caa58633c9a277d1d920 | /loottable.py | 1779035cfbe4b109b62620fade4b542d870f24a8 | [] | no_license | tntrobber123/megamanrpg | 9deff5831626e2797a82c7f256d8bb42099866a2 | 05605618173a15531c38a19ad25300ff10ed83fd | refs/heads/master | 2023-08-20T07:20:42.719557 | 2021-10-21T18:14:26 | 2021-10-21T18:14:26 | 403,707,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | commonloot = []
commonloot.append("Small HP ball")
commonloot.append("Small HP ball")
commonloot.append("Small HP ball")
commonloot.append("Large HP ball")
commonloot.append("Small energy ball")
commonloot.append("Small energy ball")
commonloot.append("Small energy ball")
commonloot.append("Large energy ball")
commonl... | [
"tntrobber@gmail.com"
] | tntrobber@gmail.com |
79577c7f146364cb36e810bab124664c1cc42b1a | f2242ee2b26df80c6290d94a388de7a98a7bbc35 | /measuring_polyphony/settings.py | 683665cd6311a40d1b794f9aa8e6081e01ef16ad | [] | no_license | misingnoglic/measuring_polyphony_django | 16c2f45addbaa4b643d012fcc34975c0746647e3 | dba469bd042ebe67a4f56816a8320ccfc042d07d | refs/heads/master | 2021-01-21T07:03:30.376918 | 2017-06-07T17:21:39 | 2017-06-07T17:21:39 | 91,596,436 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,298 | py | """
Django settings for measuring_polyphony project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
... | [
"aboudaie@brandeis.edu"
] | aboudaie@brandeis.edu |
7c5ba4db32c119edb7f4051a0cf2d2793e2f4cba | f29cf584ec1db1aa4341b1c0ecb7c956a2774ee1 | /feed/migrations/0001_initial.py | fa105ad558f3bf43ff53c8e77590ef7c8e99a267 | [] | no_license | Ni-c0de-mus/evverest | de5512c76ec93ff3c091f70e20d7bffc59afba5d | 8a31815fd04771f03902cb860c3dc8c8703258fe | refs/heads/master | 2020-08-01T09:23:40.063856 | 2018-05-01T20:54:23 | 2018-05-01T20:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-26 17:17
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"garrettlove@Garretts-MacBook-Pro.local"
] | garrettlove@Garretts-MacBook-Pro.local |
7cf89b64a2f8ed6adff97908bb2655d33b9b695b | 00190a66d7ab1146cd0e08351544edad695925a5 | /tests/test_attributes.py | ca97ea7bb65838752b0e2a531c147749649331e6 | [
"MIT"
] | permissive | dynata/python-demandapi-client | fc52754b57c38a7ab538e371290c7052fc76c90e | 0a831f4f0db360be1599b7f4d89e0951b27ecc0b | refs/heads/dev | 2020-12-03T17:10:56.123304 | 2020-09-23T23:48:10 | 2020-09-23T23:48:10 | 231,402,965 | 5 | 1 | MIT | 2020-09-25T18:32:08 | 2020-01-02T14:55:24 | Python | UTF-8 | Python | false | false | 1,014 | py | # encoding: utf-8
from __future__ import unicode_literals, print_function
import json
import unittest
import responses
from dynatademand.api import DemandAPIClient
BASE_HOST = "http://test-url.example"
class TestAttributeEndpoints(unittest.TestCase):
def setUp(self):
self.api = DemandAPIClient(client_i... | [
"bradley@wogsland.org"
] | bradley@wogsland.org |
ee0e105494849fc43fe24a4919a2091672543bf1 | 257cd01623a49e5967457bb89ef676f17484480e | /components/Dropdown.py | 2e97b269f33242f73e3b0fa445fc84e2b5fce10d | [] | no_license | aleksProsk/HydroOpt2.0 | 5347a4b5eb07d8d1847436f7c079db6a081bfb49 | 8d260d83c61483d4a88f3d81929cac34a75d9288 | refs/heads/master | 2020-03-22T07:33:44.178545 | 2018-08-14T13:21:45 | 2018-08-14T13:21:45 | 139,708,093 | 0 | 1 | null | 2018-07-04T11:49:57 | 2018-07-04T10:38:23 | Python | UTF-8 | Python | false | false | 810 | py | import dash_core_components as dcc
import dash_html_components as html
from components import DashComponent
CDashComponent = DashComponent.CDashComponent
class CDropdown(CDashComponent):
def __init__(self, options = [], placeholder = 'Select', value = '', multi = False, style = {},
name = None, screenName = Non... | [
"alexandriksasha@mail.ru"
] | alexandriksasha@mail.ru |
40403bb17d0bd03eb266d66d5ab2b8f23ec06e68 | c85fd3e58367abbbf1b8d4362e9b0919b7d48edd | /img_cap_server/main.py | 3ca4a34619d245ec8da353dcc7075a10efe28fd2 | [
"MIT"
] | permissive | petergerasimov/VoiceCV | fc6d54b2a8ade48a2f3ec61245d0d8a245c9df56 | b03055f953389b1248cfd37059d97c36ba846295 | refs/heads/master | 2020-04-29T04:40:00.697161 | 2019-03-17T20:05:36 | 2019-03-17T20:05:36 | 175,854,674 | 0 | 0 | null | 2019-03-15T16:22:49 | 2019-03-15T16:22:48 | null | UTF-8 | Python | false | false | 550 | py | import base64
import os
from PIL import Image
from flask import Flask, make_response, request
from img_cap.main import greedy_search_inference
app = Flask(__name__)
@app.route('/sendImage' , methods=['POST'])
def sendImage():
req = request.get_json(force=True)
img = base64.b64decode(req['imgData'])
... | [
"velev.victor@yahoo.com"
] | velev.victor@yahoo.com |
1b148a152b106f282e12431b9d2c56106043d75a | ae953b8f45cfb36fe31bfa731055ec0324619aac | /h20.py | 27621a27f97200894acd192ba2ca6a87d1befdaf | [] | no_license | Abishek0123/alphabet | 12afdec8a1b188d9ef22f08e345ccbcf8cd181dc | b5ef723afd71da768d842742d4d758212180975a | refs/heads/master | 2020-06-17T00:09:50.129191 | 2019-08-09T09:29:36 | 2019-08-09T09:29:36 | 195,739,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | n=int(input())
for a in range(1,6,1):
print(n*a,end=" ")
| [
"noreply@github.com"
] | Abishek0123.noreply@github.com |
ceb7aa406f8fafc550612fba7a5ad884b66e8fc1 | f2bbc82e51ad56c94457f9e7def958132606f02d | /Westar2/wsgi.py | 472d1f5352c0eb5faa8b334951e5e6d0bf8e711d | [] | no_license | kljopu/Westargram_v1.1 | d89447f1a8d55ba51cbc8716075e2bf8ebe461bf | 759f3363107a645eb65d4611b1873cb3ca9c0a03 | refs/heads/master | 2022-10-31T07:52:54.108108 | 2020-06-17T05:43:41 | 2020-06-17T05:43:41 | 272,887,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Westar2 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"user@Userui-MacBookPro.local"
] | user@Userui-MacBookPro.local |
c36a5c3700af519e773825abb05e0bb108090db1 | aae0f5c88e07e01a3a23a3d36813144a3d14dc89 | /polls/migrations/0006_auto_20160216_0027.py | a4456ee0b6174bdd064fa1fb5ca92dff390afbb4 | [] | no_license | jasleenkaur/myproject | b00d07d8f9a56775176e456408228d9793141390 | 4d8109b5572d2193832e6e9d7e4ab97cf9582391 | refs/heads/master | 2021-01-10T10:36:48.690386 | 2016-02-18T12:30:41 | 2016-02-18T12:30:41 | 51,250,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0005_auto_20160214_0955'),
]
operations = [
migrations.AlterField(
model_name='question',
n... | [
"jasleen.7956@gmail.com"
] | jasleen.7956@gmail.com |
2c4857574e8ea0feb3f2aa77b1b293c9a54ea578 | 6a6fb158dd1880fbe55e229ccc138cfdf9db8c9c | /FileScript.py | 0ed070814dc210c08070cbcc088282e040143e00 | [] | no_license | nicolasagudelo/Regresion-Lineal-Series-de-Tiempo | 8b9dc63ec7f2b3fd7c89d13b0a95b38b6b149f76 | 4a6ceec9cd721b4467beced3b5911939819c995b | refs/heads/master | 2021-05-01T10:19:42.613205 | 2016-10-26T08:12:00 | 2016-10-26T08:12:00 | 70,779,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | import numpy as np
f = open('data chikun.csv', 'r') #Cargamos los datos
np.set_printoptions(suppress=True)
data = []
for line in f.readlines():
line = line.strip()
line = line.split(";")
line = [float(i) for i in line]
data.append(line)
x = np.matrix(data)
x = x.reshape(22,6) #Los ... | [
"nicoalbert95@hotmail.com"
] | nicoalbert95@hotmail.com |
f6ea9b4080ad191b6f9358b2fb9f0f1fa9549f4c | e5b37046b72cbed5ed3956b4bb60d74623b22920 | /education_clinic/models/eye.py | 0560f08fe47e7c9693137358a10e936588867239 | [] | no_license | asmaaltahe/erp-system | edce254245486098d475a0b26eea0086d5e6185e | 9cab82e61ffea027b4ede7b6c89a8cfa6e4326f8 | refs/heads/master | 2023-08-23T19:00:33.648817 | 2021-10-17T08:37:44 | 2021-10-17T08:37:44 | 414,579,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | import datetime
from odoo import models, fields, api, exceptions,_
class Eyeclinic(models.Model):
_name = 'education.eye'
_description = 'Eye'
_order = "id desc"
patient_id = fields.Char(string='Student Number' )
name = fields.Char(string="full name" )
first = fields.Char(string="First Name" )... | [
"mis.drive119@gmail.com"
] | mis.drive119@gmail.com |
f8a609f051a748c1a1de50f959c0085374b8fee9 | 74d33e66ffadc73456c62b8bb8d6114f53de63df | /Py/Python/MultiProcessing.py | 192548168486ae58c5022e56c4f50cc84c601ba4 | [] | no_license | Newester/MyCode | 97fdf3ca5aa1d2ac2fba6b5173bb7fb5034e5a51 | 1a8e04191cdf7154750c066d7172b9437f720b1b | refs/heads/master | 2022-12-23T20:53:51.699570 | 2020-06-06T08:51:47 | 2020-06-06T08:51:47 | 118,646,066 | 0 | 0 | null | 2022-12-16T07:12:41 | 2018-01-23T17:40:16 | Java | UTF-8 | Python | false | false | 2,911 | py | #!/usr/bin/env python3
# Unix/Linux 操作系统的 fork() 调用
#调用 1 次,返回 2 次(拷贝一份到子进程执行)
import os
print('Process(%s) start...' % os.getpid())
#Only works on Unix/linux/Mac
'''
pid = os.fork()
if pid == 0:
print('I am child process (%s) and my parent is process (%s)' %(os.getpid(),os.getppid()))
else:
print('I am proces... | [
"2544391722@qq.com"
] | 2544391722@qq.com |
3d4b05bb5fce37b423b34df4733f641403cc6e2e | 2cb21fe32e3ef508cffb31963a5192b7328d9d67 | /vehicles.py | b170c2dd4ab3b61aaf9977448e7db673c1ed8900 | [] | no_license | scottherold/python_OOP | c540a6e6d7cf7e5ca213cc14179db6cdd21f8c35 | 2553f80b80a64e7365f951ac163d75997eef21bf | refs/heads/master | 2020-04-02T13:07:49.803669 | 2018-10-24T08:46:55 | 2018-10-24T08:46:55 | 154,468,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | # file vehicles.py
class Vehicle:
def __init__(self, wheels, capacity, make, model):
self.wheels = wheels
self.capacity = capacity
self.make = make
self.model = model
self.mileage = 0
def drive(self,miles):
self.mileage += miles
return self
... | [
"sherold@mail.usf.edu"
] | sherold@mail.usf.edu |
a82dbe53c59969b738410246af7fb6665b771e0b | 3cd2ec8afd70235f1271ee483373e0f131f4bf33 | /Utils/Compute_FDR.py | 99d0b15145345dd07672daa05860e6f466ab83aa | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | joeyee/Histogram_Layer | 74678772210bdcc27f22c154af24c8dbf3c61d83 | d396fc3e066afded3b208588ffccdeb8d1d52cf5 | refs/heads/master | 2023-03-28T17:00:37.421362 | 2021-04-05T18:01:59 | 2021-04-05T18:01:59 | 398,550,467 | 0 | 0 | MIT | 2021-08-21T12:19:12 | 2021-08-21T12:19:12 | null | UTF-8 | Python | false | false | 1,551 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 4 09:04:58 2020
Function to compute FDR score per class
@author: jpeeples
"""
import numpy as np
def Compute_Fisher_Score(features,labels):
#Get index of labels that correspond to each class
Classes = np.unique(labels)
#Get number of instances of ea... | [
"jpeeples@ufl.edu"
] | jpeeples@ufl.edu |
fc8a6de441a3ea56879dfd96679ebda7be653e4f | 0529c68d3acf7a68f1f389d6f76d810ba765f0db | /run_all_simu.py | 77d5eb4030e3db62db3cdf18443923bb6159eb14 | [
"MIT"
] | permissive | prise-3d/LSTM-noise-detection | 7b015fc16ebfc1c815bc42fcf6e37dacb47b3334 | 42c4a320a127209af3f662c2d8b6232d87ee61d5 | refs/heads/master | 2022-05-31T06:35:42.923077 | 2021-10-19T08:43:36 | 2021-10-19T08:43:36 | 246,258,906 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | import os
import argparse
command = "python display/display_thresholds_scene_file.py --params \"{0}\" --method {1} --model {2} --selected_zones {3} --scene {4} --thresholds {5} --seq_norm {6} --sequence {7} --save 1 --save_thresholds {8} --label_thresholds {9} --every {10}"
parser = argparse.ArgumentParser(descript... | [
"contact@jeromebuisine.fr"
] | contact@jeromebuisine.fr |
0d524bd3994608fa844316bed3cae69c1dbc939d | 52b30b68b5c7cd473da41e4e1fcd98a893964d6c | /favourites/serializers.py | bab8a55144775d981872623379b8faa4e4750933 | [] | no_license | ymukeshyadavmrj/pharmacyapp | 57256cc2a3afdcd6e43cb92cf0ffc97bdcb9d018 | 0c1cbd8c6234d18e8f6ce92b973b0aca9201d2e3 | refs/heads/master | 2023-06-26T06:13:52.800778 | 2021-07-15T21:26:01 | 2021-07-15T21:26:01 | 385,425,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from rest_framework import serializers
from favourites.models import Favourites
class FavouritesSerializer(serializers.ModelSerializer):
class Meta:
model = Favourites
fields = ['id', 'isFavourite','product','user']
| [
"ymukeshyadavmrj@gmail.com"
] | ymukeshyadavmrj@gmail.com |
d10896c3fa02b7175c070a2cdf0078e88c8f80a0 | d24c86f058d90fe5a3e39e0ced1285dd13869150 | /color_check/tests/test_colorcheck.py | d85aead82818d171d0e90d58e3c164887c1a0385 | [] | no_license | MarvvanPal/foundations-sample-website | 62af6729e8c2fd5d2f976ed7a28c597e6a53ea93 | 73d85a65058f0768ce5a9c25a8cdba4946c8f21d | refs/heads/main | 2023-03-30T11:23:27.187983 | 2021-04-07T17:21:17 | 2021-04-07T17:21:17 | 341,224,087 | 1 | 0 | null | 2021-02-22T14:17:14 | 2021-02-22T14:17:14 | null | UTF-8 | Python | false | false | 1,406 | py | from color_check.website import app
from color_check.controllers.get_color_code import get_color_code
# test the function we've written to check on the colors themselves
def test_get_color_code():
# this test should pass right now
assert get_color_code("blue") == "#0000ff"
# the following test will fail ... | [
"adam.j.roe@gmail.com"
] | adam.j.roe@gmail.com |
089777885452d5c25f586f7d738106fd6df0864c | f1b378fdc77f52f5ed8b330fcb1a8081da4d64a0 | /daniel_liang/chapter05/5.5.py | c519946c17b2691b19b3021e71653e63e8d0bbc6 | [] | no_license | brohum10/python_code | 91e8120930508bd5509a57fe2eb4a536eee6e129 | 0f9db42afa4687b09973bb546fb880e689dbc882 | refs/heads/main | 2023-06-18T03:20:12.890049 | 2021-07-18T14:19:48 | 2021-07-18T14:19:48 | 369,736,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | kilogram = 1
pound = 20
print("Kilorgams \t Pounds \t | \t Pounds \t Kilorgams")
while (kilogram in range(1, 200)) or (pound in range(20, 520)):
pounds = kilogram * 2.2
kilograms = pound / 2.2
print(str(format(kilogram, "<4.0f")) + str(format(pounds, "20.1f")) + " \t |"+ str(format(pound, "20.0f")) ... | [
"noreply@github.com"
] | brohum10.noreply@github.com |
79f821f20b5a2e88ba8e4aec45d1428319d5f6ea | 94eb0a5124bc079afd61daf65d8492243a096abe | /dynamic_commands/smartOBD/main.py | 5421b52bbe6785b4b0ad06ab429fadc65f494266 | [] | no_license | AvraSaslow/3308project | 33040d89dc12d7977e9321d8c1b7802f0ca6c266 | e0b35e266b96c076d0d11e84c5bb6658cfb8e371 | refs/heads/master | 2020-09-27T02:37:16.408678 | 2019-12-17T05:50:14 | 2019-12-17T05:50:14 | 226,406,466 | 0 | 0 | null | 2019-12-06T20:39:43 | 2019-12-06T20:39:42 | null | UTF-8 | Python | false | false | 1,705 | py | """
.. module:: main
:platform: Unix
:synopsis: Asynchronous connection
.. moduleauthor:: Will Walker
Initialization and interface
Simple command line interface, with choices for asynchronous data and a full data query
"""
import sys,os
sys.path.insert(
0, os.path.realpath(os.path.dirname(__file__)))
impor... | [
"trco9595@colorado.edu"
] | trco9595@colorado.edu |
8111576dd1ebb8394805deb3617806424c4f5c3e | 8ac1b02c2cdb5d175cf5534e2c532ddb213922c6 | /ex10/ex10.py | 61e3029b31da8b9b8b097338f2d0abda0e71462b | [] | no_license | gmzyyzgh/python_practice | 916db0ce52219da4799a7c51245ce4eca7dcabd3 | 483e2275a5723ca5a9fda6940c4af9e6f798b4cb | refs/heads/master | 2020-05-30T12:29:08.710513 | 2019-07-06T13:56:59 | 2019-07-06T13:56:59 | 189,734,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslash_cat = "I'm \\ a \\cat."
fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""
print(tabby_cat)
print(persian_cat)
print(backslash_cat)
print(fat_cat)
| [
"31633088@qq.com"
] | 31633088@qq.com |
be510b4e182a65497f390c28e38015bef96593a5 | f490046b2ed78cc1c68b8dfa44d2647a9e2c87b4 | /Recursion/kickstart1.py | 2f93a174c383a8a2b42f50edc22cce9571292cb0 | [] | no_license | AnkitAvi11/100-Days-of-Code | 00de02552dbe56b72013efb7df31b3f974d4646d | b18a6796f2fe71e9de920de4b8207b919289284d | refs/heads/master | 2023-04-02T01:55:11.614657 | 2021-04-14T14:59:04 | 2021-04-14T14:59:04 | 322,918,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | if __name__ == '__main__' :
t = int(input())
for _ in range(t) :
n, b = map(int, input().split())
arr = list(map(int, input().split()))
count = 0
i = 0
while b > 0 and i < n :
if b - arr[i] < 0 :
i+=1
else :
... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
3895ee0232ce3f7da016b8440e1b31a495eea231 | 4a562f75c0fd44672b806498e18b67690a5baabd | /envs/block_pushing/oracles/oriented_push_oracle.py | 69a7966ff02812845b00a75bd86d756f26befe23 | [
"MIT"
] | permissive | skandermoalla/bet-reproduction | ea8544953c0fd7b3957154f6fd5cafd5b52ebf00 | e6dbad80aa4f534d880aa564da41e9bcabb9068f | refs/heads/main | 2023-05-25T03:30:05.481404 | 2023-05-08T13:29:02 | 2023-05-15T11:47:04 | 571,006,196 | 0 | 0 | MIT | 2023-02-04T11:11:51 | 2022-11-26T21:06:45 | Python | UTF-8 | Python | false | false | 9,712 | py | # coding=utf-8
# Copyright 2022 The Reach ML Authors.
#
# 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 ... | [
"n.m.mahi@gmail.com"
] | n.m.mahi@gmail.com |
ecb61c1d870c35f53fa6d719c2b8073e822d2f84 | 11298c7dedcf696e6c15a52aecaec34442a76bf4 | /app.py | 7698c05b819377223bedd89cfee720c23016faac | [] | no_license | pashutk/pisdup | e355065bbff541e47f24295a41fadd817360b3b9 | 60c056434ee59246a242804a964c81beeda0e19c | refs/heads/master | 2022-12-13T13:54:09.600887 | 2020-09-03T22:11:02 | 2020-09-03T22:11:02 | 291,564,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | # import pyudev
from enum import Enum, auto
import time
from pyee import BaseEventEmitter
from config import Config
from display import Display
from cli import Cli
from scene import Manager as SceneManager
from io_event import IOEvent
from devices_waiting import DevicesWaiting
from scenes import SceneId
from dummy impo... | [
"me@pashutk.ru"
] | me@pashutk.ru |
16d6b0f14cd8d7d12e31e939e0dffab0b47a4f01 | 8ffefb1481048fe5450a4f73e45e5cbd77ce99e8 | /ruoyi-system/src/main/java/com/ruoyi/system/controller/AddComment.py | 69de4beaab24d939e6baf82f2a4cf3a9ba9b1be0 | [
"MIT"
] | permissive | apple0518/CS | 6915d1aed033ee8e5113bc5031fa7832cdd88ce0 | 889d8b26f1d67edee7097d141729c2b0d2b3ee90 | refs/heads/main | 2023-05-26T04:16:20.377136 | 2021-06-14T07:35:52 | 2021-06-14T07:35:52 | 365,686,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | #!python3
# coding: utf-8
import requests, random, os,sys
import time
def refreshCaptcha():
url = "http://c2020502194rsy.scd.wezhan.cn/Common/GenerateCommentCaptcha"
myheaders = {
"Cookie": "yibu_rt_language=zh-CN; ASP.NET_SessionId=zehh3mndik3o5oeynn5pe0nm; __RequestVerificationToken=WgJnwrfswdgo-I4j_F7a6LpoU9Hen... | [
"2667861645@qq.com"
] | 2667861645@qq.com |
ae81d7bfbd4cb98a77b9a988fc6541b94449cf0b | dfb605df317c8ab653eb8e7363e69876e4081e23 | /Contraseñas.py | ed1fedbb9057b226d9b43a1a97e9279338ce45e2 | [] | no_license | davalerova/Contrasenas | 72468a495b35bdcabbb4a2ea874f2639c9348b9e | 725da2969f3fbd7fcb0f0e8ef8b05b15a2c0cf14 | refs/heads/master | 2020-04-22T23:57:40.210245 | 2019-02-23T05:14:17 | 2019-02-23T05:14:17 | 170,760,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from typing import List
letras: List[str]="a b c d e f g h i j k l m n o p q r s t u v w x y z".split()
opcion=input("Ingrese 1 para cifrar y 2 para decifrar")
mensaje=input("Ingrese el mensaje")
clave=input("Ingrese la clave")
criptograma=""
auxClave=clave.__len__()
cont=0
for i in mensaje:
if opcion=="1":
... | [
"dvdovni@gmail.com"
] | dvdovni@gmail.com |
51500b0dd972b4cb3c6c9ffdf273d82847cbe4ed | 6b49fdae71d48738b483a7e25f0d9d1a46920cf3 | /src/versionwidget.py | 9910a09aa6f5069d8cb30228e68a0c6562f99280 | [] | no_license | eckamm/rut | 12d9fe4183db7afb66833555ad74a2ca7f7c11a3 | f0fe26c5760c9887f2d989e150348bf1b2fc0da9 | refs/heads/master | 2020-05-20T05:02:06.068214 | 2014-01-12T18:32:56 | 2014-01-12T18:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from common import *
from fonts import Fonts
class VersionWidget:
def __init__(self):
antialias = True
self.render = make_text(Fonts.f15, "Version %s" % (VERSION,), antialias, THECOLORS["white"], TEXT_BACKGROUND)
self.box = self.render.get_rect()
self.box.bottomright = (SCREEN_WIDT... | [
"eckamm@gmail.com"
] | eckamm@gmail.com |
392393423b9b400c275ce8f6176f681b7c7e261f | 15ecf3815e9e340fde53ef344a01b696fcd4cea0 | /docs/conf.py | fb30348c7d004bd2899261a9df6a1caebf10ac0b | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | suzuken/dynamic-dynamodb | eddc76e21e1a5dba284841c3eeb43ccd206918b6 | e1089a9330c65a5b3030220deea05c030701f8c2 | refs/heads/master | 2021-01-12T19:59:52.732542 | 2014-04-07T07:01:44 | 2014-04-07T07:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,252 | py | # -*- coding: utf-8 -*-
#
# Dynamic DynamoDB documentation build configuration file, created by
# sphinx-quickstart on Fri Nov 15 17:42:37 2013.
#
# 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 fi... | [
"sebastian.dahlgren@gmail.com"
] | sebastian.dahlgren@gmail.com |
1cc79a4b56db7f1e0cd4f30f446c7ce9b1d785e3 | 852b214ee5279262c55e47a86b3c4ad62fcaafb1 | /libs/bin/chardetect | afd85eac8e245dfdaad446a96b94b126dce1ad2e | [] | no_license | darrenoon/ASXETOScrape | f1c3a759e1d633b472c76c7fe6697b1b0f6db838 | 32e819a9149bbd45429aa6025a75351a81ab5c0a | refs/heads/master | 2020-04-09T21:39:37.069129 | 2018-12-15T01:41:33 | 2018-12-15T01:41:33 | 160,608,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/darrenoon/envs/hello_world/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"darrenoon@gmail.com"
] | darrenoon@gmail.com | |
e8c95fbedcbe1eb5059ecb60b7717de86483c562 | 09aff11fe5ccac7548d49db3a92803675117eaf3 | /BackEnd/Semana3/Dia3/7-operadores-de-identidad.py | b9371551d3323699773fcf93e42552ada8165ea9 | [] | no_license | jorgegarba/CodiGo8 | 4defe235a790ebc248f9278f18ca050fde6c195f | f22b2b405ad999e5b960ce5f52936cd4e472af35 | refs/heads/master | 2023-01-09T02:14:27.134870 | 2020-03-18T03:15:52 | 2020-03-18T03:15:52 | 211,871,983 | 4 | 1 | null | 2023-01-07T22:11:22 | 2019-09-30T13:54:52 | JavaScript | UTF-8 | Python | false | false | 221 | py | # Operadores de Identidad
# is ->es
# is not ->no es
# sirve para ver si estan apuntando a la misma direccion de
# memoria
frutas = ["manzana","pera"]
frutas3 = frutas
print(frutas3 is frutas)
print(frutas is not frutas3) | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
38ae25b8603fcc76935e07a811ba2144eb374b9d | c224e403165e0461d90a0a1ec22e8e8a050a376e | /Week3/asymmetric_friendships.py | 451f09deb1df2f7345126f8ac57d94d356090fdf | [] | no_license | nasimulhasan/Data_Science | 14eae70c1983f1a24ec9944d270dd904508fd7e9 | d2f037ce331d9936256b0eb0bc21f962de0c7f4d | refs/heads/master | 2020-03-18T08:44:02.514118 | 2017-08-27T10:14:52 | 2017-08-27T10:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | import MapReduce
import sys
"""
Word Count Example in the Simple Python MapReduce Framework
"""
mr = MapReduce.MapReduce()
# =============================
# Do not modify above this line
def mapper(record):
# key: document identifier
# value: document contents
#print record
key = record[0]
value... | [
"taufeeq525@gmail.com"
] | taufeeq525@gmail.com |
664ac5a99f3c33152a268fcf92e42e161423f1a6 | e5d5e4d0ef2db5ebeab4a6464f672568ad961961 | /scripts/external_libs/scapy-2.3.1/python2/scapy/layers/vxlan.py | 78171762a1f43034c9f8b411e0d440efde6f6ca7 | [
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only"
] | permissive | elados93/trex-core | d7eebc5efbbb6ca0e971d0d1eca79793eb389a3b | 3a6d63af1ff468f94887a091e3a408a8449cf832 | refs/heads/master | 2020-07-03T13:11:03.017040 | 2019-11-25T09:20:04 | 2019-11-25T09:20:04 | 182,962,731 | 1 | 0 | Apache-2.0 | 2019-05-06T09:05:56 | 2019-04-23T07:49:11 | C | UTF-8 | Python | false | false | 3,035 | py | #! /usr/bin/env python
# RFC 7348 - Virtual eXtensible Local Area Network (VXLAN):
# A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks
# http://tools.ietf.org/html/rfc7348
# https://www.ietf.org/id/draft-ietf-nvo3-vxlan-gpe-02.txt
#
# VXLAN Group Policy Option:
# http://tools.ietf.org/html/d... | [
"mamonney@cisco.com"
] | mamonney@cisco.com |
b62ddc114d6ea1f271bfcbb5b0486aa58b36366d | 8fd28b248511f42ad8732ca1e574aada33908376 | /configs/recognition/r2plus1d/r2plus1d_r34_8x8x1_750e_hmdb51_rgb_40percent_vidssl.py | 9f6ecdb8f30c7078c713e9ad3e2cb3ebe7440308 | [
"Apache-2.0"
] | permissive | vt-vl-lab/video-data-aug | 28bd175535cab1444055502389c8f5d7d75e4bd2 | 01667cdbd1b952f2510af3422beeeb76e0d9e15a | refs/heads/main | 2023-09-01T02:36:40.034893 | 2021-07-21T01:31:42 | 2021-07-21T01:31:42 | 352,920,339 | 29 | 6 | Apache-2.0 | 2021-07-21T01:29:36 | 2021-03-30T08:06:54 | Jupyter Notebook | UTF-8 | Python | false | false | 4,234 | py | # model settings
model = dict(
type='Recognizer3D',
backbone=dict(
type='ResNet2Plus1d',
depth=34,
pretrained=None,
pretrained2d=False,
norm_eval=False,
conv_cfg=dict(type='Conv2plus1d'),
norm_cfg=dict(type='SyncBN', requires_grad=True, eps=1e-3),
... | [
"zouyuliang123@gmail.com"
] | zouyuliang123@gmail.com |
cc571ebd67196de901eb9f0656e5b556db4137d6 | 86cbaea221b5404dfdde68c89e2471ba07609bff | /anti_code/config/defaults.py | 82aee2ce9df5304e3c728e9394f219dcc873dc3b | [] | no_license | tommyjiang/iccv-2021-anti-spoofing | d3481e086f452cac560da1d1a69e7e452d304be4 | 144748c381bdf32040f985f60b76a4fdc2965115 | refs/heads/main | 2023-06-04T12:43:52.076534 | 2021-06-24T06:41:02 | 2021-06-24T06:41:02 | 378,965,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,007 | py | from yacs.config import CfgNode as CN
# -----------------------------------------------------------------------------
# Convention about Training / Test specific parameters
# -----------------------------------------------------------------------------
# Whenever an argument can be either used for training or for test... | [
"tommy_jiang@foxmail.com"
] | tommy_jiang@foxmail.com |
4060f4f822289e06e61ca70655568a106382745c | 594680eb2d243ea0d5c10c1f8bd74cbc180f0165 | /core_models/view.py | ccff4a7b2e6424d56c1cc8447b632cdd95e02a2b | [] | no_license | shalevy1/flare | d538ce20a221c0c59c251245ccdaa6ab16d59d99 | 18c8ff329e17e24c381d840cdd584abfa528db1e | refs/heads/master | 2022-12-22T08:35:30.163090 | 2020-09-26T19:11:57 | 2020-09-26T19:11:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import peewee as pw
from flare import BaseModel, Registry
import json
class JSONField(pw.TextField):
def db_value(self, value):
return json.dumps(value)
def python_value(self, value):
if value is not None:
return json.loads(value)
class FlrView(BaseModel):
name = ... | [
"yayforme789@gmail.com"
] | yayforme789@gmail.com |
6671c788b36f34bfed85317a2c93531493733fab | 0567fcd808397a7024b5009cc290de1c414eff06 | /src/633.sum-of-square-numbers.py | 1809710572c9e6319075ad61abf8525f28204e92 | [] | no_license | tientheshy/leetcode-solutions | d3897035a7fd453b9f47647e95f0f92a03bff4f3 | 218a8a97e3926788bb6320dda889bd379083570a | refs/heads/master | 2023-08-23T17:06:52.538337 | 2021-10-03T01:47:50 | 2021-10-03T01:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #
# @lc app=leetcode id=633 lang=python3
#
# [633] Sum of Square Numbers
#
# @lc code=start
# TAGS: Math, Two Pointers, Binary Search
class Solution:
# Time: O(logN). Space: O(logN)
def judgeSquareSum(self, c: int) -> bool:
squares = set(n*n for n in range(int(c**0.5) + 1))
for square in squ... | [
"trung.nang.hoang@gmail.com"
] | trung.nang.hoang@gmail.com |
fe584bf4c09946e95cd5192c04c0686749124445 | 083ca3df7dba08779976d02d848315f85c45bf75 | /StrongPasswordChecker.py | d78b7b329b3d78aed6ae00e785028b68a397ea7a | [] | no_license | jiangshen95/UbuntuLeetCode | 6427ce4dc8d9f0f6e74475faced1bcaaa9fc9f94 | fa02b469344cf7c82510249fba9aa59ae0cb4cc0 | refs/heads/master | 2021-05-07T02:04:47.215580 | 2020-06-11T02:33:35 | 2020-06-11T02:33:35 | 110,397,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | class Solution:
def strongPasswordChecker(self, s):
"""
:type s: str
:rtype: int
"""
needLower, needUpper, needDigit = 1, 1, 1
lenCounts = []
count = 1
for i in range(len(s)):
if 'a' <= s[i] <= 'z':
needLower = 0
... | [
"jiangshen95@163.com"
] | jiangshen95@163.com |
ca2d4092b151262bd72862c203860802ce9addff | 45197bf7c0921435035b0fd4b7c83057f75e50f1 | /app/logger.py | 1e08509f2233940fabf03c81154f90433f78a099 | [] | no_license | fiefdx/CallingViewer | 4307e9376afc1ace2bcbd05e918e05109498c14d | 6c1d5ff6e098f69cbaab31f61dcdd81b1a81fc06 | refs/heads/master | 2020-07-03T10:20:55.385050 | 2018-06-23T04:19:12 | 2018-06-23T04:19:12 | 67,335,981 | 34 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,204 | py | # -*- coding: utf-8 -*-
'''
Created on 2014-05-07
@summary: A custom logging
@author: YangHaitao
'''
import os
import logging
import logging.handlers
CWD = os.path.split(os.path.realpath(__file__))[0]
LEVELS = {'NOSET': logging.NOTSET,
'DEBUG': logging.DEBUG,
'INFO': logging.INFO,
'WARN... | [
"fiefdx@163.com"
] | fiefdx@163.com |
964bd18c9fbcba2039e1c36cbe3a58d254079f78 | 2859786cee0205545cda3af367e031c54778176b | /webui.py | 3b4f567d2e261f0ecd32e6333df8b4bad176af30 | [] | no_license | indivisible/rpi_switch_control_webui | 5e784fca630d662c7f2f8045f62c5d408daa57a2 | 68e99a4447549f111918898717dec4af21fcb4e5 | refs/heads/master | 2023-07-07T13:43:28.821328 | 2021-08-06T06:13:29 | 2021-08-06T06:13:29 | 393,043,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,916 | py | #!/usr/bin/env python3
import logging
import asyncio
import threading
import json
from http.server import HTTPServer, SimpleHTTPRequestHandler
from functools import partial
from pathlib import Path
import websockets
from backend_manager import BackendManager
class SocketConnection:
def __init__(self, socket, b... | [
"islandofcalmness@gmail.com"
] | islandofcalmness@gmail.com |
f31e8bdef0f35d1da25ef414dec22eaf8212ec51 | b27aa0989f06d46da7f650d1ae0048cc394dbbef | /FFA_action_pattern_analysis/4representation.py | 6fcd9d71862c0dd15a06868edb0bf33f5391a18b | [] | no_license | sunshineDrizzle/Projects | fb97be79d46c39a0d07f07cfe717fb64148c99c4 | e5eac7aca238a887a7fd1fa556333758fff1505d | refs/heads/master | 2020-03-31T11:59:40.113282 | 2020-03-21T05:27:07 | 2020-03-21T05:27:07 | 152,199,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | import numpy as np
from scipy.spatial.distance import cdist
from scipy.stats import sem
from matplotlib import pyplot as plt
def subgroup_mean_representation(mean_maps, maps, group_labels):
labels_uniq = np.unique(group_labels)
representations = np.zeros_like(labels_uniq, np.object)
for i, label in enum... | [
"954830460@qq.com"
] | 954830460@qq.com |
134bf53ab21d5f345076fc4304195e18fea457bb | f77c23ec7f9d8d29b30b3ef00ca7f6f1f08cfbb7 | /vae/test_vae.py | 346f1bf8e446e674c686ac54524af19d1e95a258 | [] | no_license | wangtingc/aevb | 584ebcc7b70411c2bc0a9a0bc3a3a552fd470378 | ee024cdea9855c1244e3eddeb9c77965be7107f3 | refs/heads/master | 2021-01-19T14:10:35.068618 | 2015-09-19T10:20:15 | 2015-09-19T10:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,631 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from itertools import cycle
from matplotlib import cm as cm
import matplotlib.pyplot as plt
import numpy as np
import theano
from vae import GaussianVAE, BernoulliVAE
from utils import load_data
from gaussian_vae import M1_GVAE
def test_vae(
opt='adagrad',
n_it... | [
"makoto.kawano@gmail.com"
] | makoto.kawano@gmail.com |
7b4149d14710a240656326a31db2af81cf823dda | 31defa3ee9a0926b0a1bbdf849915dfe3d838dcf | /models/resnet50.py | 57be2fc16adabd4d0722c404132a825c5ea8eb18 | [] | no_license | sagecodes/cnn-pytorch-starter | 38abcec40ae851f7fd4544e8799e731d180593d1 | 689918aaa7bb450d4f3ce0648479d3cb6604a9bc | refs/heads/master | 2020-12-04T19:25:14.594504 | 2020-05-23T20:34:59 | 2020-05-23T20:34:59 | 231,880,668 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | import torchvision.models as models
import torch.nn as nn
import torch
import torch.optim as optim
import torchvision.transforms as transforms
import numpy as np
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
from PIL import Image
class Resnet50_pretrained:
def __init__(self, num_classes)... | [
"hello@sageelliott.com"
] | hello@sageelliott.com |
0f381d9bfb49b868e112f69fdc6263215ce14091 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/ProceduralBuildingGenerator/UI.py | 2f5754195f1f884cccbae7780fbab989eecf851e | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,426 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# Procedural building generator
# Copyright (C) 2019 Luka Simic
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License,... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
1868f06fc25aca409aa9c40093ccad77e51f6e74 | 82b7d5d153b815cafc3cd1b1c156803d0af0e30e | /idaes/unit_models/tests/test_heat_exchanger.py | 3b27f9235f14f30e7c7037c17fb317ed7d84ec86 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | spevenhe/idaes-pse | f045ddfa848bbf2bbdda69599222375adbd97e73 | cd509f98eb3d60ea468922f793c8b8040f99723c | refs/heads/master | 2020-06-10T20:31:45.265044 | 2019-06-13T20:39:34 | 2019-06-13T20:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,895 | py | ##############################################################################
# Institute for the Design of Advanced Energy Systems Process Systems
# Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the
# software owners: The Regents of the University of California, through
# Lawrence Berkeley N... | [
"KSBeattie@lbl.gov"
] | KSBeattie@lbl.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.