blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9bcd33a91d4146f6fd25fb08d24604e3dcc54c6 | 49091095f5a603b5b71dda5e3d8ca326d6ca3cee | /catalog/migrations/0008_productparameter_product.py | 032a07cab77622701267597967c62c201741009a | [] | no_license | akhmad-john/viessmann | 790804dc41d0b50f03bd1d3589784243a26be1cf | 2ae23f6a472174cc5d2bfd2a0bee23157f082b11 | refs/heads/master | 2022-12-28T03:12:48.830919 | 2020-10-10T11:28:48 | 2020-10-10T11:28:48 | 302,362,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.1.2 on 2020-10-07 07:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('catalog', '0007_auto_20201007_1227'),
]
operations = [
migrations.AddField(
model_name='product... | [
"shansudinov_a@domain.artelgroup.org"
] | shansudinov_a@domain.artelgroup.org |
a3c5e1837cf34a200cf1242deeb65b071638745a | b1dd6135a84ad80301b8c85731ba277f6da4d44d | /todo/testapp/admin.py | 45e9691ba5f74e03b8f1b98bae679672012aad1e | [] | no_license | chiragkaushik/TodoList | 018c7bcfbaa255dc293d8e070a665178bd6e907e | 12e0ec1293eadb29e21201a46b3a7c3f354bcd54 | refs/heads/master | 2022-11-17T20:45:16.837171 | 2020-07-15T01:53:31 | 2020-07-15T01:53:31 | 279,262,953 | 0 | 0 | null | 2020-07-13T11:21:43 | 2020-07-13T09:51:01 | Python | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.user)
admin.site.register(models.TodoList)
admin.site.register(models.Access)
admin.site.register(models.TodoItem)
| [
"chirag@Chirags-MacBook-Pro.local"
] | chirag@Chirags-MacBook-Pro.local |
7fd0208b9639daf5011460a29c186bc7c01996ad | 64159d10f8db2f6a0719de2493d970e1c2624efc | /split.py | 0ecbaeda6f61ee8d08a8074d9953d8736e4664e0 | [] | no_license | AlexisK/ws_dsua_2017 | 50521b3bb1122325a788a1b759499fab1cd1c5eb | a91017b42097561c25389be21b7250d5650ee65f | refs/heads/master | 2021-08-19T12:49:03.547930 | 2017-11-26T11:12:30 | 2017-11-26T11:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | import sys
import codecs
import math
class WrongFileLength(Exception):
pass
def file_len(data_path):
with codecs.open(data_path, encoding='utf-8', mode='r') as fname:
for i, l in enumerate(fname):
pass
print('File %s length: %s' % (data_path, str(i + 1)))
return i + 1
def r... | [
"korobov.alex@gmail.com"
] | korobov.alex@gmail.com |
7a81a710368d8388719fd9da8283fa4d6989e5c2 | d13ee6238418d047f9fe6ddbd5525fd0487d4233 | /hc/front/tests/test_channels.py | 1007a821f8abff8784f2b2d318f195c0357cf4d7 | [
"BSD-3-Clause"
] | permissive | iphoting/healthchecks | b4ffb7cd2a254c1a8daa490608ff4d5a96c560da | 924fc7df60dbf97b82a1f82989507459802f7028 | refs/heads/heroku | 2022-03-06T08:32:11.626016 | 2019-10-07T14:37:20 | 2022-02-19T09:37:57 | 82,822,882 | 11 | 7 | BSD-3-Clause | 2021-09-28T07:59:39 | 2017-02-22T15:51:02 | Python | UTF-8 | Python | false | false | 6,130 | py | import json
from hc.api.models import Channel
from hc.test import BaseTestCase
class ChannelsTestCase(BaseTestCase):
def test_it_formats_complex_slack_value(self):
ch = Channel(kind="slack", project=self.project)
ch.value = json.dumps(
{
"ok": True,
"te... | [
"cuu508@gmail.com"
] | cuu508@gmail.com |
dd204fb7755f02a4ca68858415abff22df84df26 | 1b48a489647fc11352c5f44ab25d1cc32df17499 | /bot/migrations.py | 6b1dd3ec9c614effb2996fa32b588d1876b35166 | [] | no_license | mircearoata/TimetableDiscordBot | 120c6982a29f7745563ba273b04aa0315f4425b3 | 0416e316ffa36d8ae7bcb723c985660fd968d965 | refs/heads/master | 2023-08-22T00:15:08.170776 | 2021-10-20T07:48:40 | 2021-10-20T07:48:40 | 320,065,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | def no_notify_migration(configs):
for guild_id, config in configs.items():
courses = config.get('courses', [])
for day in courses:
for timeSlotCourses in courses[day]:
for course in timeSlotCourses:
if 'noNotify' not in course:
course['noNotify'] = False
config.save('co... | [
"mircearoatapalade@yahoo.ro"
] | mircearoatapalade@yahoo.ro |
6eacf0ad7871a5a01c4b7178181798f3abaf6a48 | 1536a6cabaa9b6429603d57df6705a14063e016a | /src/networkx/algorithms/isomorphism/vf2weighted.py | a3142485aa277bd6563c933fd41e6917b9d77885 | [] | no_license | lorenzoriano/Graph-Evolve | ac7da40f7b27afdca7d929ae3e10308874929f1c | 11b6f43beaa88254776da959da7bcd9c4cd21eba | refs/heads/master | 2020-05-02T20:10:38.282396 | 2011-12-16T11:01:45 | 2011-12-16T11:01:45 | 1,967,115 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,794 | py | """
VF2 implementations for weighted graphs.
"""
import networkx as nx
from networkx.algorithms.isomorphism.isomorphvf2 \
import GraphMatcher,DiGraphMatcher,GMState,DiGMState
__all__ = ['WeightedGraphMatcher',
'WeightedDiGraphMatcher',
'WeightedMultiGraphMatcher',
'WeightedMu... | [
"lorenzo.riano@gmail.com"
] | lorenzo.riano@gmail.com |
131da4ef6887fa5704722436717046f8e50c0a34 | 2f0bde4d37b7ea1aad91ab44b5b4526d0bec30ce | /examples/strike-slip-example/okada_driver.py | b09fae0728d457d440530d09f1f90b57ca4f9062 | [
"MIT"
] | permissive | kmaterna/Elastic_stresses_py | 5c78a628136f610ec68e7ee38d8bc76515319e4f | 549a13c6c7fa3c80aac9d63548fdbf3b1ec7b082 | refs/heads/master | 2023-08-28T21:54:42.500337 | 2023-08-18T01:45:18 | 2023-08-18T01:45:18 | 141,371,162 | 42 | 11 | MIT | 2022-08-09T14:22:15 | 2018-07-18T02:37:59 | Python | UTF-8 | Python | false | false | 1,128 | py | #!/usr/bin/env python
import Elastic_stresses_py.PyCoulomb.fault_slip_object as fso
from Elastic_stresses_py.PyCoulomb import run_dc3d, configure_calc, output_manager, io_additionals
# Definitions
lon0_sys, lat0_sys = -120.5, 36;
bbox = (-121.5, -119.5, 35.2, 36.8);
lonlatfile = "Inputs/lon_lats.txt";
source_slip_di... | [
"kathrynmaterna@gmail.com"
] | kathrynmaterna@gmail.com |
82e10eeddf1ba15903d965b66e49673fcd4caa9d | f9081a6428cf3cbbefe8de70abede996a03387d5 | /app/migrations/0009_remove_account_is_patient.py | 49faa2e009c25a9172927f63c862587602ff65d6 | [] | no_license | AThomas99/haha | c00b72d66382b935628991eeaad364f3e7d1cf2b | 4c67bc95d0dcf811fa350fbb052e55116b6bad17 | refs/heads/master | 2023-06-17T17:13:26.119063 | 2021-07-13T11:37:55 | 2021-07-13T11:37:55 | 383,420,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.2.5 on 2021-07-13 08:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0008_account_is_patient'),
]
operations = [
migrations.RemoveField(
model_name='account',
name='is_patient',
... | [
"rishaelibenson@gmail.com"
] | rishaelibenson@gmail.com |
f3e8df6eeb1ec9952a151a19f157255fcab78423 | 1ee9081e345c125eddaa88931197aed0265aafb8 | /glearn/task_scheduler/__init__.py | 0dcd17d4997e7fd770ca54277a53d1ef15fe2dca | [] | no_license | WeiShiwei/tornado_classify | 1d45bc16473842fea8d853ba5e2c57a773fed978 | 57faa997c205630c7f84a64db0c2f5ffd8fda12a | refs/heads/master | 2021-01-01T04:44:53.981312 | 2016-05-02T12:06:29 | 2016-05-02T12:06:29 | 57,887,029 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
from tasks_classify import gldjc, gldzb
IDENTITY_APP_DICT = {
'gldjc':gldjc,
'gldzb':gldzb
}
class TaskScheduler(object):
"""docstring for TaskScheduler"""
def __init__(self, arg):
super(TaskScheduler, self).__init__()
self.arg = arg
@classmethod
def apply_async(self, identity, docs... | [
"weishiwei920@163.com"
] | weishiwei920@163.com |
6ba36b1becb11ae39d0aabcd7da73e7d8f7fe1c4 | c106d822a3895e4775e229a82fa44fc5a98dc732 | /bin/todo-sort.py | 4fd694a411fdf7f3ca99234b8580242e2dc5dbc2 | [
"MIT"
] | permissive | derek-pryor/dotfiles | f356af2ff88f4929abb30d01ed99f7f758a7fabc | 1fbbb2bbf80c007fc9d6c9f1ef3a2bf5b5841d41 | refs/heads/master | 2023-06-11T19:11:54.615467 | 2023-06-01T20:27:05 | 2023-06-01T20:27:05 | 162,472,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | import sys
import re
dueDate = re.compile(r"due:(\d{4}-\d{2}-\d{2})")
if __name__ == '__main__':
lines = {}
for line in sys.stdin.readlines():
m = dueDate.search(line)
if m is None:
k = None
else:
k = m.group(1)
if k not in lines:
lines[k] ... | [
"derek.m.pryor@gmail.com"
] | derek.m.pryor@gmail.com |
a386ccedf20d5d2d49c4c93a445d9977d09b5804 | 20c6cb5af100c0208ba66b995655cebc661d6916 | /options.py | baecbda8c6727ac4d3bc16c05218570675b17f57 | [] | no_license | Anonymous-2611/AdaRec | 35cb231cf8b1baf364aa3df9198cb7109dca2b71 | 501c0082e0090e3bb5831197b9c054592b513a7a | refs/heads/master | 2023-02-20T16:08:53.824420 | 2021-01-21T08:08:04 | 2021-01-21T08:08:04 | 331,169,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,859 | py | import argparse
"""
==========================
All options' parsers.
==========================
Except for global setting (e.g. name/gpu/seed/seed/etc.), options are designed like `{scope}_{option}`.
Note: `scope` is not something related to real code, they just make
options easy to arrange and look pretty when ... | [
"cl15179779122@163.com"
] | cl15179779122@163.com |
745408aababcdbfb801e2e1fb73f38bf07d71784 | bc2834d254b555787b5802cff09cc405d0f4f2c4 | /uco/venv/lib/python3.5/stat.py | 48a9727e0595edab35b72576524d33f30626491c | [] | no_license | lindatxia/UCO-Verison-Checker | a491bc82c7eb8da37536ae3d1262ec9153e50e9e | 3e4610dc00420e9bab88f8cd730782fccb55fbb3 | refs/heads/master | 2021-03-30T16:31:52.006291 | 2018-05-05T02:44:50 | 2018-05-05T02:44:50 | 122,348,339 | 0 | 0 | null | 2018-05-05T02:44:51 | 2018-02-21T14:41:49 | Python | UTF-8 | Python | false | false | 48 | py | /Users/lindaxia/miniconda3/lib/python3.5/stat.py | [
"lindax@andrew.cmu.edu"
] | lindax@andrew.cmu.edu |
172c8c6387685566c45d7452523e04e900cd8301 | 765465c33a4dc02774a3a0d10594fe9d7defe84b | /quiz_ex.py | ac892312244be4b99f6b4d57014d72fb2bed3098 | [] | no_license | Ijinyanen/Y7_Quiz | d287d8151db5133dc42baf92eb10dc090c5699d4 | cbda42f28145c849197d9794ea3b068204e0a959 | refs/heads/main | 2023-02-26T16:52:21.412645 | 2021-01-27T11:29:06 | 2021-01-27T11:29:06 | 331,145,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # challenge 1
print("\nWelcome to Mr Higgin's ultimate Star Trek Quiz!")
print("There will be 10 questions.")
print("You shalt be scored for each.\n\n")
# challenge 2
bucket = input("Please enter your first name. -> ")
surname = input("Please enter your surname. -> ")
age = input("Please enter your age. -> ")
print(bu... | [
"ryanhchiba@hotmail.com"
] | ryanhchiba@hotmail.com |
21b1364b9ce6a60ca2445bf020c1f3135e4512ad | e3c6348e8683353994ca76c434a23c96176a0c4e | /backend/wsgi.py | ce5cf66ea0253d0a263484bcd0d09e2cdeb59e4c | [] | no_license | achudy/bd_biblioteka | ffab2f44dfb2aa8dbc9adacee7dba0bfde24ee22 | 24569ff03c4937be1712a6119e6672af258a37a3 | refs/heads/main | 2023-02-19T00:41:04.815067 | 2021-01-19T15:48:32 | 2021-01-19T15:48:32 | 321,102,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from project import create_app
application = create_app()
| [
"chudy.arkadiusz@gmail.com"
] | chudy.arkadiusz@gmail.com |
923f312b0fe97996949434d897235ae1e3af93db | 1d21f23e6b8bfbcae07f41f4566c617975e8a34f | /application/main/services/user_service.py | 34fcef2760b6cbedb1652a2f6b356bfb46a880e9 | [] | no_license | timmy224/react-slack-server | 55cd78669ae708c92122b9e8410f56e09abe45f6 | f9eeda7c77c8f236bbcda729957db1d4f75d808b | refs/heads/master | 2023-05-09T00:19:14.663603 | 2020-11-05T17:07:28 | 2020-11-05T17:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from ... import db
from ...models.User import User
def get_user(username):
return User.query.filter_by(username=username).one() | [
"kodezen@protonmail.com"
] | kodezen@protonmail.com |
ca34e03ef4a90a8d5d4c34a0ada17be32fc3c867 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_1/16_1_1_evan176_solve.py | 176dc3d014d5ea7ed28dc4e8bea96de713789acf | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 581 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math
import time
def compute(word):
result = [word[0]]
for i in range(1, len(word)):
alpha = word[i]
if alpha >= result[0]:
result.insert(0, alpha)
else:
result.append(alpha)
return ''.join(result)
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
fd2392ab49d5f7a023acdd65aee092160c44e8e4 | 4133fad3c4da7e6db4de4b36e87c994273ef4b81 | /indexModificado.py | 67640a7a68dd38d3b2dacfcf2b0b41027ca34ed4 | [] | no_license | manuelARuiz9712/sincronizadores | 5462278538460dd67362266c2fd21a7ee1f5836f | 31733523fe57a9656d442f6486d47101ca341378 | refs/heads/master | 2022-12-26T12:13:16.623296 | 2020-10-02T05:21:15 | 2020-10-02T05:21:15 | 300,509,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,301 | py | import pyodbc
import requests
import datetime
import json
server = '192.168.1.252\SQL2008, 60313'
database = 'POSManu'
username = 'DeveloperWeb2'
password = 'Web163BDis'
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password)
print("Connec... | [
"manuelanguloruiz@gmail.com"
] | manuelanguloruiz@gmail.com |
0af923ce9c5d19f830d123e01cb16ea667201bcf | ec2d21b9cb56bad8608e8bf724c86956f929c70d | /Mission_to_Mars.py | f9e719b6edadcddc93b9ba577f1b9d86e21322aa | [] | no_license | Natasha-Nelson/W10-Splinter-Mars | 319801eb9bb210eda5c4b751907c12ebfe3423fb | fd81ff4cb04ac81253bf903787707b6a99400d7b | refs/heads/main | 2023-06-03T06:20:18.663798 | 2021-06-27T21:19:31 | 2021-06-27T21:19:31 | 379,471,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | # import dependencies
from splinter import Browser
from bs4 import BeautifulSoup as soup
from webdriver_manager.chrome import ChromeDriverManager
import pandas as pd
executable_path = {'executable_path': ChromeDriverManager().install()}
browser = Browser('chrome', **executable_path, headless=False)
# Visit the mars ... | [
"natasha.leah.nelson@gmail.com"
] | natasha.leah.nelson@gmail.com |
dd667c800eb393916b21a98a3a859f389237f10f | b2e88f2791b1a118657db84bb5a60cf26d2b6327 | /knapSack_problem/script/knapSack.py | f8ec9158e5dcb6eaa24edba1b4f2ecefc6745999 | [] | no_license | carola173/Knapsack_Algorithm | 52b3519924c2b9b5968a6885a334a3aaa0ae2e89 | 4ce9076e6c2aedc8bf766bc6935661c7be5888ec | refs/heads/master | 2022-03-06T11:47:50.221143 | 2019-11-19T10:56:25 | 2019-11-19T10:56:25 | 222,665,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | '''
Using the dynamic programming for implementing the knapsack problem
Time complexity of the algorithm is : O(nW) where n is the number of items and W is the capacity of knapsack.
'''
def knapSack(capacity, volume, value, n):
K = [[0 for x in range(capacity + 1)] for x in range(n + 1)]
for i in ra... | [
"carola.amu@gmail.com"
] | carola.amu@gmail.com |
2eb7c0f1ac90448da79ffa3061e1de8a208d3d51 | 83fc27eb524842ae12bed6a5f75cfd2557cffbc2 | /antcolor/WIP/WIP Segmentations/MorphSnakesTest.py | e0f19e57263c7c04fe639bbc31ff48a4534ff2ef | [] | no_license | calacademy-research/antcolor | c6dd4891b20bf8f055d640326e7ca4ff78e313a4 | 93832e0c570faed1c629834f4adaa83d7f3998cd | refs/heads/master | 2021-11-23T11:37:48.460709 | 2021-10-30T04:53:05 | 2021-10-30T04:53:05 | 140,758,363 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from itertools import cycle
import cv2
import numpy as np
from Tests import morphsnakes
from scipy import ndimage
from scipy.ndimage import binary_dilation, binary_erosion, \
gaussian_filter, gaussian_gradient_magnitude
from scipy.misc import imread
from matplotlib import pyplot as ppl
from Tes... | [
"idecjj@hendrix.edu"
] | idecjj@hendrix.edu |
58a0b89d9a44e9b44d96235ba45354df6142d209 | b15848c78b6ed07d27cae74b90ae99a27d7acf24 | /DataParser/DataParser/settings.py | dae1081c2349a6f3414aead9e32dbee48c5bbd29 | [
"MIT"
] | permissive | CodeBoss86/DataParser | ba988462de6e1cc1ae156e3407fbdea06fa5efc8 | c9e09f0975145a4ca0a3645699ee91adee49cd2c | refs/heads/main | 2023-01-19T01:51:31.178645 | 2020-11-17T13:38:47 | 2020-11-17T13:38:47 | 316,596,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,872 | py | """
Django settings for DataParser project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
# from co... | [
"mattode@outlook.com"
] | mattode@outlook.com |
d067e6af959341425c4f4216701f299296312454 | 8fefb8371047173a69576f994cf6e4a911d05f6f | /results/acorr_xx_comparision.py | 0c20ef8c3613348633a6e42e27bfa78c2f7a3d8d | [] | no_license | mannisen/Hybrid-Monte-Carlo | 0ebf8b1b054ea5df6735c3636ed004e8816bfdac | 3b9626bd8e39b7f5a66cce81b431f6bd7fd2dd6e | refs/heads/master | 2022-04-30T02:03:13.479369 | 2018-06-20T08:17:03 | 2018-06-20T08:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,631 | py | #!/usr/bin/env python
import numpy as np
from results.data.store import load, store
from hmc.potentials import Klein_Gordon as KG
from correlations.corr import twoPoint
from correlations.acorr import acorr as myAcorr
from correlations.errors import gW, windowing, uWerr, getW, autoWindow, acorrnErr
from common.acorr i... | [
"alexander.mcfarlane@physics.org"
] | alexander.mcfarlane@physics.org |
f8b71f47242faeeccc05326262d862d05d57a7fe | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /BinarySearch/q374_guess_number_higher_or_lower.py | 000686ff073c0f98c294124c4f8a8ca531d32f01 | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | # Time: O(n)
# Space: O(1)
# 解题思路:
# 二分查找
# The guess API is already defined for you.
# @param num, your guess
# @return -1 if my number is lower, 1 if my number is higher, otherwise return 0
import bisect
pick = 0
def guess(num):
if num == pick:
return 0
elif num > pick:
return -1
els... | [
"429134862@qq.com"
] | 429134862@qq.com |
7a511eb135175ba2fd1d17a4e839bf0087c8804b | 975cead91fffdfa58cc17e9e29b1bc26442af8d8 | /monitor.py | a3b93d2ab58c6d77d7590d66db4b97612aedaea3 | [] | no_license | Hellfire01/PostreSQL-Monitor | a3167d884b32a963fc6361ccef7f89f514271c8c | a911f18c0a0ada692b99f4c3de566907086a8f9c | refs/heads/master | 2022-11-21T12:36:32.802563 | 2020-07-24T01:22:35 | 2020-07-24T01:22:35 | 282,025,466 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,941 | py | # pip install psycopg2-binary
import psycopg2
import os
import re
class Monitor:
# prepares the file
def prep_file(self):
if self.writeToFile:
try:
os.remove(self.filename)
except OSError:
pass
return open(self.filename, "w+")
... | [
"matthieu.raynaud-de-fitte@epitech.eu"
] | matthieu.raynaud-de-fitte@epitech.eu |
cffa411da03c28e702e520074cc6b27270806d47 | 163efa79c0e9e7b05de1896f04568149a0c2a3c1 | /class2/mavros培训课程 - mavros源码/mavros/devel/lib/python2.7/dist-packages/mavros_msgs/msg/_VFR_HUD.py | 133140eed9c0bde170fb0ab23c2174568d373196 | [] | no_license | ssb418r/PX4_class | 123e4a896d94481a63eecf97e07c10925894bd82 | e6ca2ccfc7e643186fea1edd65064804eff943e2 | refs/heads/master | 2020-06-02T00:44:13.158636 | 2018-05-20T05:50:28 | 2018-05-20T05:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /home/nvidia/mavros/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_VFR_HUD.py | [
"sundxfansky@sjtu.edu.cn"
] | sundxfansky@sjtu.edu.cn |
b1347c88770f1eb0a81a06dfaf9e693cbf5b465a | b4afd14e3b4e9cff0a99906a69587e348b243aeb | /mocc/beida/pythonds/stackop.py | 424989f76facb6d29739792e959118a1d1b1b7d9 | [] | no_license | zhankq/pythonlearn | d694df23826cda6ba662e852e531e96a10ab2092 | cb714fbb8257193029f958e73e0f9bd6a68d77f1 | refs/heads/master | 2021-12-16T13:51:23.381206 | 2021-12-03T01:13:36 | 2021-12-03T01:13:36 | 205,632,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | class Stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self,item):
self.items.append(item)
def pop(self):
return self.items.pop()
def peek(self):
return self.items[len(self.items)-1]
def size(self):
r... | [
"zhankq@163.com"
] | zhankq@163.com |
838c794f9381fde24a555dad49568e7e201e913b | 6bd9630ac5b8454b0e82417d515f849f7781de9d | /github_practice/github_practice/asgi.py | fba9048d342befee7fcb5752636a4ef5a7025093 | [] | no_license | sumin1007/github_practice | 8738d52aa5f8300f2ab144738b89c8f64f5bc566 | ee9deccc78b84fd1ecd304cc78210d4f1209453a | refs/heads/master | 2022-12-07T16:12:34.745446 | 2020-08-24T07:05:26 | 2020-08-24T07:05:26 | 289,850,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
ASGI config for github_practice project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.set... | [
"suminmusic99@gmail.com"
] | suminmusic99@gmail.com |
6c9c986c0aa21d179925835cfeb9197301d89797 | fcd83de98a15b86d8da5c2f1fb06c4539384b24d | /피보나치/동적계획법-기본(2).py | ec2f3f2167a964a3d1da28651809a23a724e56a7 | [] | no_license | ckdgns3167/Algorithm-study | ce81197763e283fe9ae547a90a5844531a014724 | d5c64cf5349ae68602ffc64894d2b0c1e2e68579 | refs/heads/main | 2023-03-04T15:23:58.918116 | 2021-02-14T13:15:06 | 2021-02-14T13:15:06 | 338,556,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | def fibo(n):
if n < 2:
return n
cache = [0 for _ in range(n + 1)]
cache[1] = 1
for i in range(2, n + 1):
cache[i] = cache[i - 1] + cache[i - 2]
return cache[n]
print(fibo(10))
| [
"ckdgns3167@gmail.com"
] | ckdgns3167@gmail.com |
e2c838e054da771fdf7fc3c86b52fcdc82e340ba | f4407ed3bdca1b6dfb2387c83dc965f8afefe70b | /venv/Scripts/tabulate-script.py | 67ed7da0790e6645ef01b55722a4e04d5bd2316f | [] | no_license | HanshengT/Event-Receiver | 0932619c468624406b27cb1400ef76bce5b57e35 | cdbd15373a032bbb450d6e97da1333031c2afabd | refs/heads/master | 2021-05-25T21:59:01.998846 | 2020-04-15T09:21:20 | 2020-04-15T09:21:20 | 253,937,011 | 0 | 0 | null | 2021-05-06T20:05:28 | 2020-04-07T23:37:06 | Python | UTF-8 | Python | false | false | 461 | py | #!"C:\Users\15819\Desktop\CIT\3855 Architectures\sharing_power_bank\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'tabulate==0.8.6','console_scripts','tabulate'
__requires__ = 'tabulate==0.8.6'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r... | [
"hansheng.tao@gmail.com"
] | hansheng.tao@gmail.com |
3cd329b8c34f33fda57e67ec19ffd58aa08cc7d6 | 6044266e775c87afed99397c8bb88366fbbca0e7 | /scrapy_projt/python_itertools/zip_longest_fillvalue.py | b9edce215a1bab2bb5e70645bae16021409cd99a | [] | no_license | ranafge/all-documnent-projects | e4434b821354076f486639419598fd54039fb5bd | c9d65ddea291c53b8e101357547ac63a36406ed9 | refs/heads/main | 2023-05-08T20:01:20.343856 | 2021-05-30T10:44:28 | 2021-05-30T10:44:28 | 372,186,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from itertools import zip_longest
import re
from itertools import chain
dates = ['21/11/2044', '31/12/2018', '23/9/3000', '25/12/2007']
text = ['What are dates? ', ', is an example.\n', ', is another format as well.\n',
', also exists, but is a bit ludicrous\n', ', are examples but more commonly used']
print(... | [
"ranafge@gmail.com"
] | ranafge@gmail.com |
567e938c3da300c10dac470fe7bba73fefa308e1 | 8ca34f6da28f4b2cb2ae7a242e2156581426a950 | /apps/customer/migrations/0006_remove_job_job_type_remove_job_status.py | 501fd52e93fbb98072802b9b099caa2cb8297ea6 | [] | no_license | gray-adeyi/prime | 7e2360424560beb24742f93aa3f7b3b5cd484150 | 83b728db767e6f1b2237e10400fa95861ce1c8f3 | refs/heads/main | 2022-06-17T19:00:52.432315 | 2022-05-19T10:19:56 | 2022-05-19T10:19:56 | 225,469,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # Generated by Django 4.0.3 on 2022-05-04 10:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('customer', '0005_alter_job_copies'),
]
operations = [
migrations.RemoveField(
model_name='job',
name='job_type',
),
... | [
"adeyigbenga005@gmail.com"
] | adeyigbenga005@gmail.com |
3c8b15aa00bf6c7f9730f113b9984681a6c8a727 | e5744bf041d5cb2ae5521ad4596c8d32f10332bf | /simpleBlockchain/lib/python3.6/__future__.py | 9ee18e45166aa7670a767c30efba5fe9825c771f | [] | no_license | barkbaek/blockchains | 8678bd1f47993c6f72a0c5562efe81f7bc2f06ca | a79ac433fa97db7a4e48bee6acc7dce8770ceb21 | refs/heads/master | 2020-04-11T11:48:45.400140 | 2018-12-16T10:38:30 | 2018-12-16T10:38:30 | 161,760,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | /Users/maway/.pyenv/versions/3.6.0/lib/python3.6/__future__.py | [
"barkbaek@gmail.com"
] | barkbaek@gmail.com |
62fc3c89e7939ee66309da0c228d3a0ca205b6c6 | 71eb367210e8ffd3b4964a8c99e3ac6f2920fdbb | /wedding/management/commands/make_backup.py | f92cd208fa723e3a4afbcc78c347424c2bb91e03 | [
"MIT"
] | permissive | jsayles/wedding | 392771dc894fb311414b2d34ceb4319318d8eefb | 242d28d0271d58909b2c5ff5457d909efaecd3c0 | refs/heads/master | 2020-04-18T01:26:57.433729 | 2015-09-04T15:18:03 | 2015-09-04T15:18:03 | 28,720,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | import os
import time
import urllib
import sys
import datetime
from django.core.management.base import BaseCommand, CommandError
from wedding.backup import BackupManager
class Command(BaseCommand):
help = "Creates a backup containing an SQL dump and the media files."
args = ""
requires_model_validation = False
... | [
"jsayles@gmail.com"
] | jsayles@gmail.com |
b581261136eb5820caa1c37ee4e42eee9145a808 | 32dda10669e459cf37c31f426fa709001d2c75b0 | /leetcode_cn/solved/pg_709.py | 3d384ea50d36704b8ae5931bf4436c70958659b5 | [] | no_license | fastso/learning-python | 3300f50d06871245d0bfcbe9d201224580f70852 | d21dbd1b9f31017cdb1ed9b9ffd1e53ffe326572 | refs/heads/master | 2023-02-10T14:43:53.726247 | 2023-01-26T10:14:59 | 2023-01-26T10:14:59 | 193,454,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | class Solution:
def toLowerCase(self, s: str) -> str:
l = list(s)
for i in range(len(l)):
o = ord(l[i])
if 64 < o < 91:
o += 32
l[i] = chr(o)
return ''.join(l)
| [
"fastso.biko@gmail.com"
] | fastso.biko@gmail.com |
f31d850912894f5a92afd874db04ad58b6356a80 | 0c0e152a3e2fc5670635beb0ec96024cd2863ca6 | /e2e/test_mkldnn.py | 5a928bf07df258dc4f461defe4850880cb060548 | [] | no_license | yzhliu/topi-intel | 69ec599c18b83b93691ca724ec6a9b42beb3c9ef | 67e273bd4bb10a316b50cc1879c1cebac1ea91f8 | refs/heads/master | 2021-09-15T10:36:01.825237 | 2018-05-30T19:26:17 | 2018-05-30T19:26:17 | 116,441,458 | 1 | 0 | null | 2018-03-29T14:13:14 | 2018-01-06T00:48:47 | Python | UTF-8 | Python | false | false | 3,148 | py | import mxnet as mx
import numpy as np
import time
import nnvm.testing
import tvm
from collections import namedtuple
from tvm.contrib import graph_runtime
from mxnet.gluon.model_zoo.vision import get_model
# Batch = namedtuple('Batch', ['data'])
num_pass = 1000
def end2end_benchmark(model, target, batch_size):
nu... | [
"yizhiliu@amazon.com"
] | yizhiliu@amazon.com |
b6c69394d9cb24e853932d6a9d1f96608694f81a | 79b1d3d8ffbda5297fff6fefe2528e303bf2110a | /RSGGenFragment/RSToQQ/RSGravitonToQuarkQuark_W-0p25_M_1500_TuneCUETP8M1_13TeV_pythia8_cfi.py | 6e503b562929e62717577f7d52137212a9732aca | [] | no_license | yguler/MCFragments-1 | 25745a043653d02be3a4c242c1a85af221fc34b3 | 7c4d10ee59e00f997221109bf006819fd645b92f | refs/heads/master | 2021-01-13T14:09:12.811554 | 2016-12-11T15:57:37 | 2016-12-11T15:57:37 | 76,184,433 | 0 | 0 | null | 2016-12-11T15:59:22 | 2016-12-11T15:59:22 | null | UTF-8 | Python | false | false | 1,323 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(0.00000782),... | [
"emine.gurpinar@cern.ch"
] | emine.gurpinar@cern.ch |
a1ce232ec915a2c3e2d5b990c4d6988132fc0f29 | 760376c7f94710f415eefb5445410b609d64b85a | /Actions/keypairCheck.py | cd55b0764412aabd0e5d4c5e2285a9b8e7ce59f0 | [] | no_license | paoloromagnoli/cas-blueprint | 5e1d4507b4827dbdb87276d2b7ef769f391bcfc1 | 3055197711b3d1542dd406f60f2424cd4770ebe6 | refs/heads/master | 2020-05-18T17:57:33.532885 | 2019-09-20T16:08:12 | 2019-09-20T16:08:12 | 184,571,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import boto3
import json
def handler(context, inputs):
ec2 = boto3.client('ec2')
tags = inputs["tags"]
key_name = tags["Deploy"] #Name of the tag used to create the key pair
outputs = {}
try:
response = ec2.describe_key_pairs(KeyNames=[key_name,],)
except:
outputs["keypair_... | [
"noreply@github.com"
] | noreply@github.com |
12f95b7b1627cb9a90694bcbf2fbb0476b9970c6 | b47835df229ca830d0c9723c869ba489a10d62cc | /exercise/exercise5.py | 594e79b951a28572467e11c7cedb4c66d13c391a | [
"MIT"
] | permissive | LilyHeAsamiko/Audio-signal-processing | 0e734529c86cbc1e9bb709d874da511c8fd58fa8 | 7401b851f4cad73f2d48f20cf5d8dd2c239278cc | refs/heads/master | 2020-06-02T05:12:04.910365 | 2019-09-30T09:22:47 | 2019-09-30T09:22:47 | 191,048,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py |
# coding: utf-8
import numpy
import numpy as np
import matplotlib.pyplot as plt
from scipy.constants import pi
import scipy
from scipy import signal
from scipy.io import wavfile
import librosa
# Q1: math exercise (1 pt in total)
## A. (0.5 pt)
# If the vocal tract length is 15cm, and you discretize i... | [
"noreply@github.com"
] | noreply@github.com |
6e638314f02ee8aa6919f68c5b79ab506004a312 | df9a467c0d47eafde9bf5d2181347ad00bf53c06 | /leetcode/most_liked/739_daily_temperatures.py | b1783bb29cf96d7abdb26011f592ae371ea26b9f | [] | no_license | eunjungchoi/algorithm | 63d904d92e16ab0917faa585326e9281d61d6000 | 1c9528e26752b723e1d128b020f6c5291ed5ca19 | refs/heads/master | 2023-01-06T20:54:06.567512 | 2020-11-14T11:13:05 | 2020-11-14T11:13:05 | 288,323,344 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | # Given a list of daily temperatures T, return a list such that, for each day in the input,
# tells you how many days you would have to wait until a warmer temperature.
# If there is no future day for which this is possible, put 0 instead.
#
# For example, given the list of temperatures T = [73, 74, 75, 71, 69, 72, 76,... | [
"im.your.energy@gmail.com"
] | im.your.energy@gmail.com |
f863c0011b6e40babc977ab674974c286bd9f909 | 9b84085a3f08441148d4808f400cf3fdf98be5cb | /some_termos_serie_02.py | 7a9542abe16298a28039c2c54e7a515321d31f5a | [] | no_license | gabipires/ExerciciosImpactaADS | 546da7d77af8d37f11a9fb8447f1a0985ab8aebd | c57683f90d085d2129800d0b647a683b4607a399 | refs/heads/master | 2022-07-02T03:16:57.059847 | 2020-05-06T01:05:55 | 2020-05-06T01:05:55 | 261,590,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Escreva um programa em Python 3 para somar os n primeiros termos da seguinte série:
# - 1 + 1/2 - 1/3 + 1/4 - 1/5 + ...
# A saída deve ser uma unica linha contendo apenas o resultado da somatória formatado para exibir 6 casas de precisão.
n = int(input("Quantos termos você deseja somar? "))
soma = 0
for i in range(... | [
"gabrielatrindadepires@gmail.com"
] | gabrielatrindadepires@gmail.com |
c949fe10046ed1243b9b5b457337815e7cd492b2 | 124df74bce796598d224c4380c60c8e95756f761 | /pythonPackages/matplotlib/doc/conf.py | f5e23c3021a3bf6281ee5318d4e0041ff5fd7269 | [] | no_license | Mapoet/AWIPS-Test | 19059bbd401573950995c8cc442ddd45588e6c9f | 43c5a7cc360b3cbec2ae94cb58594fe247253621 | refs/heads/master | 2020-04-17T03:35:57.762513 | 2017-02-06T17:17:58 | 2017-02-06T17:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,924 | py | # -*- coding: utf-8 -*-
#
# Matplotlib documentation build configuration file, created by
# sphinx-quickstart on Fri May 2 12:33:25 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pick... | [
"joshua.t.love@saic.com"
] | joshua.t.love@saic.com |
446ce17555820f29c98376ca99908115ac9d473d | fd465e82d9b9f4ea36842fc15c0a3afc8f1d535c | /app/__init__.py | 58b4e7874583397e2373759849bd87b4c9d81731 | [] | no_license | raghav198/arugula | 792012a92ad8ec4ec90098e332e5f82d57164f0f | 98f51b0583e6b1008a0eeda2ec48f88b132a6742 | refs/heads/master | 2023-05-08T07:56:15.763272 | 2021-06-02T17:53:54 | 2021-06-02T17:53:54 | 369,033,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import os
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
__all__ = ['app', 'db']
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='dev',
SQLALCHEMY_DATABASE_URI='sqlite:///data.db')
db = SQLAlchemy(app)
app.config.from_pyfile('config... | [
"maliragh@amazon.com"
] | maliragh@amazon.com |
0abd41508f48aed20dd2896d2d078b491b31a910 | 8e9707c2f01d8ff08117a48e35092fbfcec59f44 | /lexer.py | 1351e24183b0093a1dffed38ea1ac0d993e2d4f0 | [] | no_license | aallai/WIG-Compiler | 42319d1f2f4bb09131268484cfd1b03aab76aaf8 | 2c855d76244c919fa6d8dccc104ea96b73feb54c | refs/heads/master | 2020-04-07T18:23:12.368319 | 2012-10-20T15:53:10 | 2012-10-20T15:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | # ply lexing
import ply.lex as lex
states = (
('html', 'exclusive'),
('tags', 'exclusive'),
('holes', 'exclusive'),
)
reserved = {
'service' : 'SERVICE',
'const' : 'CONST',
'html' : 'HTML',
'schema' : 'SCHEMA',
'int' : 'INT',
'bool' : 'BOOL',
'string' : 'STRING',
'void' : 'VOID',
'tuple' : 'TUPLE',
'ses... | [
"aallai@functor.local"
] | aallai@functor.local |
5b1a7e60318fa305ae7fd21a00322a47c06c2deb | c6630662769c54de64fbce86b1bb64549922072c | /crawlGitHubForStar.py | 2090d5fba5cbace5956768b8a0c544147872e2aa | [] | no_license | wangying2016/CrawlGitHubForStar | efca9c9538b52822e705360944c3293fa9a6ee46 | 67acfda47d561682909404a21030b63c8039060e | refs/heads/master | 2021-08-06T20:12:58.911589 | 2017-11-07T01:21:11 | 2017-11-07T01:21:11 | 108,128,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | # This version just crawl stars.
# from urllib.request import urlopen
# from urllib.error import HTTPError
# from bs4 import BeautifulSoup
#
#
# print('Please input github user name:')
# userName = input()
# url = userName + '?tab=repositories'
# openFailed = False
# count = 0
#
# while True:
# # 1. Open repositori... | [
"wy867504146@outlook.com"
] | wy867504146@outlook.com |
f49f5161688bb91518b40963e42484af38165648 | d529b7cbcc818db8d419e91776ae35d7d31e42ad | /weatherapp.api.py | 5bdd4bff95508355af6011ec42a33e0e594ed31e | [] | no_license | tamsynsteed/My.Weather.App | 5be24b3581048f0b05a8c804b1ac56c143a0cfca | 6ea6f98a7711efc9002671e08721aef956ab8dcf | refs/heads/main | 2023-01-24T11:14:32.546199 | 2020-11-20T12:15:13 | 2020-11-20T12:15:13 | 314,544,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,471 | py | import PIL
import requests
from datetime import datetime
import tkinter as Tk
from tkinter import *
from tkinter import simpledialog ,messagebox
#weather app data
def weather_app():
location = str(en1.get())
#api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}
api_address= "http://a... | [
"tamsynsteed@gmail.com"
] | tamsynsteed@gmail.com |
92e1a0f58228447205c83797e9822ff91f7960bf | 80352efd5dd9f2ed186a42b30813be3fde9a417d | /trunk/modules/python/ae/encoder.py | a2173e0edd41557019afb08e2580f10e07606c52 | [
"MIT"
] | permissive | mbojrab/playbox | 4e5042f91b1f4d00cd38bb12c825e7c0c33c7aa5 | abbe116fc943e727119ffb47faeb41d29ffe56bb | refs/heads/master | 2020-04-04T05:59:58.158037 | 2017-07-09T02:58:00 | 2017-07-09T02:58:00 | 52,119,608 | 1 | 2 | null | 2017-07-09T02:47:54 | 2016-02-19T22:05:10 | Python | UTF-8 | Python | false | false | 960 | py | class AutoEncoder () :
def __init__ (self, forceSparse=True, contractionRate=0.01) :
'''This class describes an abstract AutoEncoder.
contractionRate : variance (dimensionality) reduction rate
'''
self._contractionRate = contractionRate
self._forceSparse = forceSparse
... | [
"micah.bojrab@mdaus.com"
] | micah.bojrab@mdaus.com |
50833987fe1c99942c6386dcbf5dab13fb529e2c | 920075678b5141129d1b0f9c6a17411ea1844ab8 | /08/04_拓展.py | d4ced51754a884331471c29683329dcb73c3b08b | [] | no_license | ucookie/basic-python | e8869e74c7429e938291689257c7c6d17aa75187 | b7f29743883739e3b298d49a170f367944ee0d9a | refs/heads/master | 2020-04-20T14:36:23.483379 | 2019-07-07T23:49:06 | 2019-07-07T23:49:06 | 168,904,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def add(new_item, save_list=[]):
save_list.append(new_item)
return save_list
print(add('1'))
print(add('2'))
# 初始化后,就有了函数名到函数对象这样一个映射关系,
# 可以通过函数名访问到函数对象了,并且,
# 函数的一切属性也确定下来,包括所需的参数,默认参数的值 | [
"huangsihan.cn@gmail.com"
] | huangsihan.cn@gmail.com |
af02fbc6bb99ed2342dfc37bdb51a8589e25000e | 72402cd547a1c3309ea72b8d37f8a0f57a0d73e3 | /leetcode/queue_stack/code/day_temperature.py | 098fd38af27e3ecb5771894688f7ac0a4241f0ae | [] | no_license | skyxyz-lang/CS_Note | a5a4d428e17b56e2fc37118e4a14ceea39f7435e | a75310a96d2b165b15d5ee10ec409a17cdc880ba | refs/heads/master | 2023-02-24T02:53:53.557058 | 2021-01-23T06:54:47 | 2021-01-23T16:11:03 | 302,805,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: skyxyz-lang
@file: day_temperature.py
@time: 2020/11/17 23:27
@desc: 每日温度
https://leetcode-cn.com/leetbook/read/queue-stack/genw3/
"""
class Solution(object):
"""
"""
def dailyTemperatures(self, T):
"""
:type T: List[int]
:rtype... | [
"yuanxiangsky@bupt.edu.cn"
] | yuanxiangsky@bupt.edu.cn |
88749037d67309bfe19ab2998e0794b415132d8f | 0d16ed8dffd7b951abd66bf895c254749ed8195a | /Lab4_Data_Structure__And_Iternation/Tuple/Seven_4th_item.py | a638c7a55bb24fd21cf7e867c3f38fb403b96413 | [] | no_license | sanjiv576/LabExercises | 1cfea292e5b94537722b2caca42f350ab8fc7ab8 | ef5adb4fbcff28162fe9e3e80782172b93127b33 | refs/heads/master | 2023-07-22T08:13:04.771784 | 2021-08-17T12:23:21 | 2021-08-17T12:23:21 | 372,397,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # Write a Python program to get the 4th element and 4th element from last of a tuple.
t = (0, 1, 2, 3, '4th', 5, 6)
slicing = t [-3:3:-1]
print(slicing) | [
"83968516+sanjiv576@users.noreply.github.com"
] | 83968516+sanjiv576@users.noreply.github.com |
679396908814bf47132bc58065644309db986e62 | 8135c6dbf52ceb4d2b95e77e0f7e9eff770d3267 | /stadsbudsservice/urls.py | 2feb23cf8901f4f6195cc3f0a18316d4c1fc6d63 | [] | no_license | charleslofblad/stadsbudsservice-site | 19deb2b4da01f4029fcd693d6a4e58b4d88ee046 | 2bf94c69a64a917c8067faa75799b4c11b243592 | refs/heads/master | 2016-08-11T17:36:23.290644 | 2016-04-09T13:48:39 | 2016-04-09T13:48:39 | 53,272,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """stadsbudsservice URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"charleslofblad@gmail.com"
] | charleslofblad@gmail.com |
6cc3477aa0bab5aadbc0a0e54d07b45a6c8092b1 | ce3e6ef48b9cfd7f40191a436b0fa7ecfa2de7e2 | /mysite/settings.py | 63f31cd36335bbb71639130b22711ac4f76ce051 | [] | no_license | Benknightdark/webapp | 73f7424de7ca65a615d358d7e37a76f0bd2ede78 | 812d0a83fff4bc5a94c9f402e28687731324aae3 | refs/heads/master | 2022-07-18T05:33:52.657230 | 2017-02-27T13:23:20 | 2017-02-27T13:23:20 | 83,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,170 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.5.
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
... | [
"Ben@gongyanbinde-MacBook-Pro.local"
] | Ben@gongyanbinde-MacBook-Pro.local |
25eed9a8841c9c6e18e8892558a3112696f21804 | a3687607bcd67a5e18093ab7354c58615470ebbb | /estructuras_de_datos/grafo/bfs.py | 2718a7108cfb50b38de5f327535b2a57a8a82ff5 | [
"MIT"
] | permissive | ilitteri/7541-Algo2 | cef7f0dfbbd42920502d92af8f35455b4842dfe4 | 6835e40818b9f84fd0271b6341f6fd3aaa46df5e | refs/heads/main | 2023-04-13T04:15:15.778082 | 2021-04-21T21:52:43 | 2021-04-21T21:52:43 | 350,750,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | def bfs(grafo, origen):
visitados = set()
padres = {}
orden = {}
q = Cola()
visitados.add(origen)
padres[origen] = None
orden[origen] = 0
q.encolar(origen)
while not q.esta_vacia():
v = q.desencolar()
for w in grafo.adyacentes(v):
visitados.add(w)
... | [
"ilitteri@fi.uba.ar"
] | ilitteri@fi.uba.ar |
a98d4898506c6d720e656ed8f12c44d8c8dd7c6b | ce5a16be85587556d57cc5cb15fd4aa1f43b56ad | /tasks/models.py | e8ac8b5dba47495a2a444a76aa5abc9563ab6a54 | [] | no_license | lncr/todolist | ce119260c2bdb7f737600567e519f824586c9308 | 28dc1bf970f3234aedaacbcb5600c7cb0fa0c902 | refs/heads/main | 2023-07-08T20:10:33.975846 | 2021-08-14T14:37:02 | 2021-08-14T14:37:02 | 394,661,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
class Task(models.Model):
creator = models.ForeignKey(User, on_delete=models.CASCADE, related_name='tasks', null=True)
body = models.TextField()
estimated_finish_time = models.DateTimeField()
created_... | [
"b.soltobaev@disoft.dev"
] | b.soltobaev@disoft.dev |
5d36b195a2408d0a9aba4e9f22e3db6b82313d49 | 50ceb4a100bf0193cc2ae3d9dac62985c6b82947 | /commons/fileio/handlers/base.py | 9b4dbec0fde89bf261e1f148b1cf796cca3d0aef | [] | no_license | splionar/soho | ed7341fd7acc607ce68b31d9334464353efc5307 | d98b2ba52ffda2ba857aa4bc0d4e9239efcfd806 | refs/heads/master | 2023-07-03T08:52:52.185285 | 2021-07-21T12:17:07 | 2021-07-21T12:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from abc import ABCMeta, abstractmethod
class BaseFileHandler(object):
__metaclass__ = ABCMeta # python 2 compatibility
@abstractmethod
def load_from_fileobj(self, file, **kwargs):
pass
@abstractmethod
def dump_to_fileobj(self, obj, file, **kwargs):
pass
@abstractmethod
... | [
"664587718@qq.com"
] | 664587718@qq.com |
d5b520dadfbbdd4d46f80f779e68c7bee555ae7c | 0613b082bd90462e190bc51943356ce6ce990815 | /baseinfo/forms.py | f92317a93a34016d026958d648ff845db9dae301 | [] | no_license | Hamidnet220/salary | 1068aac4bc921436c03b627899370a86ca5e99be | 4dc1f32dfa1d990e6c9f527b4a8d0e1df939262a | refs/heads/master | 2020-05-04T18:09:24.086491 | 2019-04-22T20:22:32 | 2019-04-22T20:22:32 | 179,342,004 | 0 | 1 | null | 2019-04-11T10:43:29 | 2019-04-03T17:53:36 | Python | UTF-8 | Python | false | false | 6,158 | py | from django import forms
from .models import *
from django.utils.translation import ugettext_lazy as _
class EmployerForm(forms.ModelForm):
class Meta:
model= Employer
fields='__all__'
def save_record(self):
Employer.objects.create(**self.cleaned_data)
def update_record(self,id):
... | [
"kiani.hamidreza@gmail.com"
] | kiani.hamidreza@gmail.com |
805056a25de493b432d80c6096bb9e9609fc3573 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /EjjBGn7hkmhgxqJej_11.py | ad87f45d4681248fbbf11c2febfac2a7ccef7ffa | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """
A word nest is created by taking a starting word, and generating a new string
by placing the word _inside_ itself. This process is then repeated.
Nesting 3 times with the word "incredible":
start = incredible
first = incre|incredible|dible
second = increin|incredible|credibledible
third = in... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
272868baa2c8585d06965009e810346a179ce280 | d9cb1459c7a8086517659714d43b44b049ac9d5a | /res/assets/readRes.py | 658ef0b11355b9a160207a2c4fcc7c2e02f0ddfb | [] | no_license | abelHan/xcGane | 9b528108b297efd5bf1f3f6c385bca37a8756ed0 | 6b51519b28e62b9fae7f95d0346c89a1ff8c8948 | refs/heads/master | 2020-04-14T15:23:09.096595 | 2015-08-31T10:50:11 | 2015-08-31T10:50:11 | 40,640,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py |
import re
import os
import time
import json
lua_file_name = "ResManager.lua"
lua_file_head = "local ResManager =nil \n ResManager = {"
lua_file_end = "}\n return ResManager"
lua_root = "g_load_assets .. "
#获取当前工作空间的目录
def getcwd():
return os.getcwd()
#获取指定文件夹下的所有文件及文件夹
def listall(dir_path):
if os.path.exis... | [
"talance@126.com"
] | talance@126.com |
7f90feadd2bcc8ba24ab32df96035f424b84f81b | b283ef9c499668555be643975fccf6f8fe1864a6 | /ud120-projects/decision_tree/dt_author_id_alf3.py | 193ac92f639f416043113c5e6331ecb7c49835cd | [] | no_license | alf808/dandy-machine | f874edd23bf0dba551d8246dbe04a028ea3f67a6 | 1e96d5936c80dfc99272cedcfd1911f6268a84c4 | refs/heads/master | 2021-05-01T03:43:21.709233 | 2016-07-01T15:47:34 | 2016-07-01T15:47:34 | 60,564,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | #!/usr/bin/python
"""
This is the code to accompany the Lesson 1 (Naive Bayes) mini-project.
Use a Naive Bayes Classifier to identify emails by their authors
authors and labels:
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../tools/")
from em... | [
"alf@akademe.net"
] | alf@akademe.net |
4d2f360e4a216628c60f184aecf8d775eacc2f41 | 93c59b527d34147b995fbf8f3f3ab792f00ad06e | /dj4e/wizards/admin.py | 05b681fedb427be43a050a29df58620ca022aa38 | [] | no_license | shtsai97/django_projects | b9f3c1a9d713af1d2837c063acf6bfe537a475ab | 14aae2a3d0e83886c1205f5e2767b58304d2bf7f | refs/heads/master | 2020-04-17T01:10:59.904950 | 2019-04-19T14:19:53 | 2019-04-19T14:19:53 | 165,890,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.contrib import admin
from wizards.models import Wizard, House
# Register your models here.
admin.site.register(House)
admin.site.register(Wizard) | [
"shtsai@umich.com"
] | shtsai@umich.com |
c32add492b99ec0945daa765e931a7f2b3a0fa5c | c542fc153346270ae7e30e68bc574a97341a293e | /dbhelper.py | 6f3d3762a71273db053803bbd7d1f30e3a9da19f | [] | no_license | daehub/crimemap | 005861a322299b7e3366f2f4cc2832fe3ff68f86 | e2ef4a7fc0e085dca602fb3f452545bc09da529d | refs/heads/master | 2020-03-11T06:27:23.423152 | 2018-04-23T06:52:48 | 2018-04-23T06:52:48 | 129,676,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'Daehub'
import datetime
import pymysql
import dbconfig
class DBHelper(object):
def connect(self, database = 'crimemap'):
return pymysql.connect(host = 'localhost',
user = dbconfig.db_user,
... | [
"daehub@126.com"
] | daehub@126.com |
9506d331e19fb7b3de2ea2f31d64527873b94667 | 5d2c6ee38cea33cd436d9817939e0ced248ddad0 | /modules/editorconfig/mod.py | e72f7c3006f8fe2091dc3f05eb77c8858ec9d1c1 | [] | no_license | fhofherr/dot-files | 34c37bf0e6a45be927ef2b84a37f60bbb7ac192f | a71edf212d190f47d13870a213ac716d471a256f | refs/heads/main | 2022-10-08T20:42:46.750167 | 2022-10-05T05:28:02 | 2022-10-05T05:28:02 | 1,208,202 | 3 | 0 | null | 2022-09-28T07:14:26 | 2010-12-30T11:00:51 | Python | UTF-8 | Python | false | false | 434 | py | import os
from dotfiles import fs, module
class Editorconfig(module.Definition):
@property
def editorconfig_src(self):
return os.path.join(self.mod_dir, "editorconfig")
@property
def editorconfig_dest(self):
return os.path.join(self.home_dir, ".editorconfig")
@module.update
... | [
"mail@ferdinandhofherr.de"
] | mail@ferdinandhofherr.de |
bceec50928f3d2382b8e0575b6918c9538c23f91 | 6bd223ac5bbfe95d45a5f2f052b8b26cf4a4722d | /hydrocode/scripts/dump_replayer.py | bf86ab19442023e3bed9a08314cbb4866c61ebf3 | [
"BSD-3-Clause"
] | permissive | ajaykumarr123/software | ff2ddf9589571e5ed62f6f1e2325e4553686f436 | e0b46eed87636afedc9be3a671edf70fc6cc6cb5 | refs/heads/master | 2022-04-23T11:36:55.535254 | 2020-04-27T02:16:34 | 2020-04-27T02:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | #!/usr/bin/env python3
#Script for replaying raw FPGA data dumps. Read Hydrophones Code wiki entry.
import socket, time, sys
import scipy.io
import numpy
PKT_LEN = 512 #total number of samples in an FPGA packet
NO_CH = 4 #number of channels
SAMPL_RATE = 200000
ADDR = "127.0.0.1" #local host because we are... | [
"leader@cuauv.org"
] | leader@cuauv.org |
4dcff123efe2a6ff65429e07f16b006e506d493a | 9617a10ff1d60b2423ea21466704d4a2b3fbc79c | /matplotlib/m05.py | 9016d8dc4c54078443733e0e97cc23e716418bf0 | [] | no_license | oxxostudio/python | 4e7ed29e2b5a03ad69618a0391d5268bb6adcbd5 | aefde16a72582787901c7ff201fd37dcc0208e03 | refs/heads/master | 2022-12-10T11:35:43.068072 | 2020-01-20T08:48:54 | 2020-01-20T08:48:54 | 218,332,949 | 0 | 0 | null | 2022-06-21T23:33:01 | 2019-10-29T16:28:13 | Python | UTF-8 | Python | false | false | 1,199 | py | import numpy as np
from matplotlib import pyplot as plt
ax = np.linspace(-20, 20, 100)
ay = ax*0.5
by = np.sin(ax)
cx = 10
cy = cx*0.5
plt.plot(ax, ay, color='red', linewidth=3.0, linestyle='dashed', label='x0.5', zorder=2)
plt.plot(ax, by, color='blue', linewidth=2.0, linestyle='solid', label='sin', zorder=2)
# 繪製垂直... | [
"oxxo.studio@gmail.com"
] | oxxo.studio@gmail.com |
683a28d0340f87a8191e1927fc8070ca8b4046cd | 636d6125dc2a926915507a438b54f2b4a0bc8f5c | /app/view_models/book.py | 773f3eb057a3171d803c13a411e2a31cd5186499 | [] | no_license | YihuiLu/fishbook | e58b890ec0e2248673f4ce056d1005f0a5393432 | 7147ed5780be5c27b7382092ff6eeeae70813207 | refs/heads/master | 2020-04-07T09:16:31.751186 | 2018-12-05T14:29:12 | 2018-12-05T14:29:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | # -*- coding: utf-8 -*-
# @Time : 2018/11/20 12:45
# @Author : YH
# @Site :
# @File : book.py
# @Software: PyCharm
class BookViewModel:
def __init__(self, book):
self.title = book['title']
self.publisher = book['publisher']
self.pages = book['pages'] or ''
self.price = b... | [
"yihuiwork1@163.com"
] | yihuiwork1@163.com |
da871d42db342efdd70e5b459051f4d9f36e5a77 | 329fc210c90e50eda4876a59a2a7a0ce10e48c51 | /EDMScripts/MapAppliedBField.py | 02aa72d62e295b9c56b7ccb8230005e41f5765b7 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ColdMatter/EDMSuite | b111914e0d5a8171feebbca6e9ca91d6b3607f5a | aa7c584cb35f871fa3af71118ce2b5eed1e0aebf | refs/heads/master | 2023-08-25T02:52:27.287796 | 2023-08-23T14:07:18 | 2023-08-23T14:07:18 | 6,336,704 | 9 | 14 | MIT | 2023-04-14T13:03:50 | 2012-10-22T14:44:44 | C# | UTF-8 | Python | false | false | 1,225 | py | # MapLoop - asks ScanMaster to make a series of scans with one of the pg
# parameters incremented scan to scan
from DAQ.Environment import *
def prompt(text):
sys.stdout.write(text)
return sys.stdin.readline().strip()
def mapLoop(start, end, step, numScans):
powers_input = prompt("Enter attenuator volts for rf2:... | [
"cjh211@ic.ac.uk"
] | cjh211@ic.ac.uk |
d22bb3b79c30e7e91a8ff5cecff9f0d78f81ba18 | 41ecc15e475d7f47ed4fae44cb5ffe773766db06 | /python-problems/hackerrank/python/merge-tool/run.py | c61c27492339459122ffc05ea6b53ce1a65c4d31 | [] | no_license | smoonmare/object_50071 | 98d99d89b5c2f85a6f8dbc6038b1fb24b6deb8f3 | d1cc63de48655e0a3d88e3ca14a69c4e014bfbf3 | refs/heads/main | 2023-02-18T05:07:20.967182 | 2021-01-21T22:09:31 | 2021-01-21T22:09:31 | 314,103,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | def merge_the_tools(string, k):
# your code goes here
split = len(string) / k
for i in range(0, len(string), k):
string_new = string[i:i+k]
string_sub = ''
for s in string_new:
if s not in string_sub:
string_sub += s
print(string_sub)
if __name__ ... | [
"smoonmare@gmail.com"
] | smoonmare@gmail.com |
7f99dc8567d50aa19286f5b9c64c3a5a862304e9 | 4f1bc750c3b84bb03860689ab0e37b46c566a76c | /number/floor.py | 7428daf29fe4db1701dbe3ec5971816fd8f9b547 | [] | no_license | snowcity1231/python_learning | 6ceee0b9275b7414ca195169ce309b50a371fe71 | b69b72d4442a8baf7f78454f47e5008265225e32 | refs/heads/master | 2020-05-02T06:14:26.813717 | 2019-09-25T13:40:19 | 2019-09-25T13:40:19 | 177,790,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # -*- coding: UTF-8 -*-
# floor() 返回数字的下舍整数
import math
print "math.floor(-45.12): ", math.floor(-45.12)
print "math.floor(47.68): ", math.floor(47.68) | [
"xuechen911231@aliyun.com"
] | xuechen911231@aliyun.com |
7a3625294b8e51942c023f2066d9e6c05005bf18 | 009ed5abc0fa16ea4afe0786c5ce9f15a8b08a09 | /02_Python_Data_Structures/week_3/progAssign07-01.py | eeea3c00fa44a9c19cc29527113edce1cfc2c737 | [] | no_license | LeeBaker3/Python_for_Everybody_Specialization | f0ac2b2bcd9c0149d23b6c48373865b9591c1555 | 28c885fde2cc14925c0952168dcc966992a52302 | refs/heads/master | 2020-05-18T06:27:21.374951 | 2019-05-02T11:43:37 | 2019-05-02T11:43:37 | 184,234,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # Use words.txt as the file name
fname = raw_input("Enter file name: ")
try:
fh = open(fname)
except:
print ("Invalid file name")
quit()
for line in fh:
line = line.rstrip()
line = line.upper()
print line
| [
"lee.baker1@ymail.com"
] | lee.baker1@ymail.com |
f51940f105996e1de20f3f71f7d8c8906b77e4da | dcb219809f8d4b4f94d949a87c814fd9e35ff5f8 | /old/study-old/evaluation/mturk_validation.py | d06b407a9baf596a8899fd395b1aa0f58be8f8ef | [] | no_license | shilad/cartograph-alg | 00606e255c5aa9d1adf2d0a021eb7b8672cb21a9 | 4a36e79b6bc0d600c2eed886c376013a4f686531 | refs/heads/master | 2021-07-03T14:23:31.164855 | 2020-06-19T15:44:10 | 2020-06-19T15:44:10 | 190,458,606 | 2 | 1 | null | 2020-06-19T04:55:56 | 2019-06-05T19:48:52 | HTML | UTF-8 | Python | false | false | 2,210 | py | import pandas as pd
import re
VALIDATION_ARTICLES = ['Naruto', 'Gmail', 'Urdu', 'Mathematical Statistics', 'Computer Science', 'Blush', 'Painting',
'Earbuds', 'Braces', 'Hairstyle', 'Tamarind', 'Diapers', 'Baby Powder', 'Lmao', 'Satellite',
'Quiz', 'Vanilla', 'Mistake', '... | [
"lily.irvin@gmail.com"
] | lily.irvin@gmail.com |
9ab1f8167a282c96f3abdd82c8c3ceb07cf12556 | bf7b8efa7cb20e2fe885b70dc4bac2f2c42eb0a6 | /LVQ.py | 50a2d450b655ac9a5375b0a01ce0ce2447b4beff | [] | no_license | WilliamRayJohnson/LVQ | b03f6387714acd38afdbc6a8a68393d32480a16a | ea21cc53574458b3155d7f9c1f3627ebfa08cf32 | refs/heads/master | 2021-07-09T22:09:00.148214 | 2017-10-09T20:09:58 | 2017-10-09T20:09:58 | 106,273,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | '''
William Johnson
'''
import random
import LVQNet
def main():
pValues = [[-3,2], [0,3], [3,2], [-3,-2], [0,-3], [3,-2]]
outputLayer = ['a', 'b', 'c', 'c', 'b', 'a']
learningRate = 0.1
trainingThreshold = 0.15
valuesPerNode = 50
testValues = 5
inputs = []
inputCategories = []
test... | [
"willrayjohnson@gmail.com"
] | willrayjohnson@gmail.com |
76cb59292f081ff5becc2899888ab0732f78b585 | c849fa997c2a41d27af1d7aa21e3f0c7d7b4523b | /plot_N_IPSM.py | bee85069c3cb70ed90358d5ce7c3817efb609e03 | [] | no_license | kinuskia/Heavy-Ion-Collision-Analysis | 8045ce9969872006f4f59a8d6938409658e5adb6 | 47ae07a9b219d9873975b30c89ac6da18652e526 | refs/heads/master | 2021-06-25T00:33:16.942994 | 2020-11-01T15:04:10 | 2020-11-01T15:04:10 | 154,057,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | import matplotlib.pyplot as plt
import numpy as np
# Read in IPSM fit result
percentiles = np.arange(100)
N_values = np.zeros(len(percentiles))
for k in range(0, len(percentiles)):
centrality_class = str(percentiles[k]) + '-' + str(percentiles[k]+1)
filename_fit = "../IPSM-Fit_One/output/" + centrality_class + ... | [
"kianusch@web.de"
] | kianusch@web.de |
10ae30770a42dcc775c02d1bdf25f569ef1c21f7 | 5d7b6a1ee7d2696e272a5dd08117f8a2a7163a84 | /sendmail/urls.py | 1b1e14641a6978b7a48668ec73ee94b7ef048f0c | [] | no_license | HassanNaseer14/Qari2 | ba094ee43105588d423ebcc9fab32988381c7c6e | cb981d8228aabbeea52ec288ecf1cdf21143dbe9 | refs/heads/master | 2023-01-08T11:10:08.394314 | 2020-11-02T09:42:21 | 2020-11-02T09:42:21 | 288,016,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django.urls import path
from . import views
urlpatterns = [
path('contact/', views.contact, name="contact"),
path('success/', views.success, name="success")
]
| [
"hasrayrah970@gmail.com"
] | hasrayrah970@gmail.com |
fccd134ed2431e7cce33642e9fc7705ec4904734 | 9092e62932da86fb2af69e0529e4cbb082cfea22 | /wifiName32Pwd63.py | 9c30ac8432ecedb77930c68c8c6746ec52684028 | [] | no_license | FengZiQ/flushbonding | d09915ce4285530e3d082c0aaea029790ffbdd9d | 5ce631c9d09790846a31332eb8e76460e5f3f08e | refs/heads/master | 2020-04-01T22:29:13.256997 | 2019-06-05T02:25:14 | 2019-06-05T02:25:14 | 153,711,075 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | # coding=utf-8
import time
from to_log import to_log
from QRCodeOfNetworkConfig import wifi_mode
from dmSupport import get_device_attribute
from configFile import data_for_networkTest, open_picture
from honorRouter import Configuration
rc = Configuration()
to_log('SSID长度32/密码长度63网络配置测试\n')
if rc.wc(name='123a'*8, pw... | [
"feng1025352529@qq.com"
] | feng1025352529@qq.com |
beae20a9e51d2812be3dc14ea324a5bf5983b7b4 | 75f6b7ad98674ccc60c10a548eecf9c0382adde3 | /applications/departamento/migrations/0004_auto_20200730_1640.py | 07864186282a2e9678b2246e24854766fd60afdc | [] | no_license | cdazaparra/empleadosproj | f20fa71b43d1968be64d7d69b0a90f86983e4f29 | dc3ddc0032fedf850fdce81344d81c4013a3362c | refs/heads/master | 2022-12-04T09:54:48.633978 | 2020-08-08T16:51:33 | 2020-08-08T16:51:33 | 285,849,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # Generated by Django 3.0.8 on 2020-07-30 21:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('departamento', '0003_auto_20200730_1302'),
]
operations = [
migrations.AlterUniqueTogether(
name='departamento',
unique_toge... | [
"cdazaparra@gmail.com"
] | cdazaparra@gmail.com |
d94ad0d4184ebc4fb4df9f9e567f480fa0b69e93 | 5a7375bdcd7fba344d9d8e424c42e4ff6e58e5cd | /00_algo_prob/2529_ineuality.py | f007230e9a61a1f36461d2b4bf68aa212163e80e | [] | no_license | jhee514/Algorithms | 1d9d9f8bf11b957393ad1a169fa1a61f86d77da5 | 0ebed8f99a63eae2f9122033ab4e13b2b499fb52 | refs/heads/master | 2021-07-21T01:33:22.838431 | 2020-10-28T15:21:19 | 2020-10-28T15:21:19 | 226,996,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import sys
sys.stdin = open("2529_input.txt", "r")
"""
10개의 숫자 중에서 k 개를 순열로 가져와
부등호를 사이사이 넣어봐
중간에 가지치기 해주면서 쭉 돌아야
"""
import itertools
def sol(k, data):
nums = list(range(10))
min_num, max_num = 10 ** (k + 1), 0
perms = itertools.permutations(nums, k + 1)
for p in perms:
if p == (1, 0, 2, ... | [
"514kim@gmail.com"
] | 514kim@gmail.com |
2d240f9380a6ea2106fea6e525ee26ecd7e8bb55 | 9a46c27eb89f690b0ab47f3beabb9492c894ebb0 | /test_Y3--Y5,Y2,Y4.py | 4e51a86f4949d6914f3cc7d9bad0fcbd6a1b72e7 | [] | no_license | Cavin-Lee/1SMT | 06c5f99847e695c76e53f59f9f84537f3478d1fb | 3b1ab012bab3699acec194305fb4ff9ae9d7fe20 | refs/heads/master | 2020-07-24T18:24:14.614498 | 2019-09-18T10:25:50 | 2019-09-18T10:25:50 | 208,008,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,330 | py | # -*- encoding:utf-8 -*-
'''
one source:
Y3:38
two targets:
Y5: 18 class:1-18
Y2:18 class:7-24
Y4: 18 class:7-18,25-30
'''
import numpy as np
import scipy.io
import source_domain,target_domain,RandIndex,source,target
from sklearn import metrics
from sklearn.decomposition import KernelPCA... | [
"noreply@github.com"
] | noreply@github.com |
111f867f7740d9819866da0ee4464566409dd22c | 7c457dbba7d37f912c1136e464622c5b61eed1d7 | /x_temporal/train.py | d7d3386d5ca56441eec64e38c195094810fa8aec | [
"MIT"
] | permissive | Xlsean/X-Temporal | c6ffebe68a34675dd11120ff379fd8912118f4cc | 221b98bcedae86ed4eebec888d70c19da0a721d4 | refs/heads/master | 2022-10-01T08:23:04.756525 | 2020-05-18T10:31:38 | 2020-05-18T10:31:38 | 257,547,671 | 0 | 0 | MIT | 2020-05-18T10:31:39 | 2020-04-21T09:38:44 | null | UTF-8 | Python | false | false | 1,577 | py | import argparse
import yaml
from easydict import EasyDict
import torch
import numpy as np
from x_temporal.interface.temporal_helper import TemporalHelper
from x_temporal.utils.multiprocessing import mrun
parser = argparse.ArgumentParser(description='X-Temporal')
parser.add_argument('--config', type=str, help='the p... | [
"shaohao@sensetime.com"
] | shaohao@sensetime.com |
3b8df220c66e6bc64e99ddd5f73dcca6bdeccc90 | e616c5b4ded0b3df45cdd221a38622d85c2f6b22 | /send_me_email.py | b8509cf0d3264a2a939f8c28d241d34665dd05c9 | [] | no_license | sharnett/AzizComedyCellarEmails | b385d7e33b0048d9c4ddf4396a76cbdfdefbb3a6 | 325726a376dec5f958ee3c8fda9c95a00d2319b4 | refs/heads/master | 2016-09-01T17:39:59.077337 | 2011-10-24T05:03:06 | 2011-10-24T05:03:06 | 2,558,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | def send_me_email(date):
import smtplib, string
SUBJECT = "Aziz in the house!"
TO = "srharnett@gmail.com"
FROM = "srharnett@gmail.com"
text = "He's comin to town! Be there be there be there! Clear you schedule on %s" % date
BODY = string.join((
"From: %s" % FROM,
"To: %s" % TO,
... | [
"sean@professorMurder.(none)"
] | sean@professorMurder.(none) |
f1dbcbaefd816eb6775aa3ac94503874610c340d | 8a6beae86b2b276c9685dfa2b06a5ffacd99ab4b | /app.py | bae66da8ab80c74e6911cbbade66a7fac8f382b6 | [] | no_license | stuhunter4/red_window_news | 4fd47b4f1436cb47b38b936a6fce8859fad97fa1 | cb34457c5682b3e667382a74603b69baae7dde19 | refs/heads/main | 2023-03-25T10:44:44.239758 | 2021-03-24T23:54:33 | 2021-03-24T23:54:33 | 311,017,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import scrape_news
# Create an instance of Flask
app = Flask(__name__)
# Use PyMongo to establish Mongo connection
mongo = PyMongo(app, uri="mongodb://localhost:27017/rednews_app")
# Route to render index.html template using data fr... | [
"stuhunter4@users.noreply.github.com"
] | stuhunter4@users.noreply.github.com |
16840e785de669798985dd9040d55e3037b2f01a | 66a82c2eb7f9facff4cb0aa72f21a713dbb1cf61 | /devices/SIP04_FZJ/01_Test/test_sip04_01.py | 8f9e8dfee1412bdb8d75db1ffa146684f3c7300e | [
"MIT"
] | permissive | geophysics-ubonn/reda_testing | 894eefa8f5cddf288c639c00404c6bd12339dad7 | c32f3faa685b77974b88ba1126a02afabfe5fd2d | refs/heads/master | 2023-06-04T00:16:43.503287 | 2020-12-21T13:23:48 | 2020-12-21T13:23:48 | 110,421,246 | 0 | 1 | NOASSERTION | 2019-06-25T09:50:57 | 2017-11-12T09:50:26 | Python | UTF-8 | Python | false | false | 314 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import reda
basepath = os.path.dirname(__file__) + os.sep
def test_load_mat():
sip = reda.SIP()
sip.import_sip04(basepath + 'Data/sip_dataA.mat')
def test_load_csv():
sip2 = reda.SIP()
sip2.import_sip04(basepath + 'Data/sip_dataA.csv')
| [
"mweigand@geo.uni-bonn.de"
] | mweigand@geo.uni-bonn.de |
569ff5538e3b8de9ef46a5e70148a5035c0fe606 | aa83a19c80fbf37ec446f8987adfab76aebb0007 | /lionproject/lionproject/settings.py | acdc0e2b03a052392e56602a144ed69bb751a5a7 | [] | no_license | clark1015/likelion-blog | 42101ac54d3f9c0b030c6b484ed1dca9c45240a5 | e059a39bb5b8081680b3de2789f974f64871f4a8 | refs/heads/main | 2023-04-21T07:15:52.706997 | 2021-05-14T12:53:24 | 2021-05-14T12:53:24 | 364,558,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,580 | py | """
Django settings for lionproject project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
f... | [
"seok626898@gmail.com"
] | seok626898@gmail.com |
75f1fa3b18d8add3c4ddf62520c0563fc4abb9b5 | 9d278423cb7c81cf0e7579428d580c47a1ecc4af | /claw_machine/version3.py | 79617b3cc72cc9f0660722ccb883aec1f7fd864f | [] | no_license | SanChainn/Claw_Machine | a940aa34b16725617ec6cadfd5d9f32b7b97f649 | 8a8c92b863edfce6b65d9d0646cca9682c117d80 | refs/heads/main | 2023-07-12T10:43:19.777673 | 2021-08-22T09:59:33 | 2021-08-22T09:59:33 | 398,766,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from time import sleep
import pigpio
DIR = 20 # Direction GPIO Pin
STEP = 21 # Step GPIO Pin
SWITCH = 16 # GPIO pin of switch
# Connect to pigpiod daemon
pi = pigpio.pi()
# Set up pins as an output
pi.set_mode(DIR, pigpio.OUTPUT)
pi.set_mode(STEP, pigpio.OUTPUT)
# Set up input switch
pi.set_mode(SWITCH, pig... | [
"noreply@github.com"
] | noreply@github.com |
b9f684d5b42556870a228170a9c9ad958dad7159 | 31c091b12e03297bec1e81974e3b5facc766a50a | /lib/vcrparser.py | ec7b7a95e5693b1293801c7fc7c1896ad838dcab | [
"MIT"
] | permissive | huntdog1541/aRNAPipe | f1a72c7603fdb0f84df6857ce4d8ce2a3563a16f | 87c6f9695830e8b9357f62530772f41ffcbabcce | refs/heads/master | 2020-12-30T15:21:08.754192 | 2016-12-12T19:35:33 | 2016-12-12T19:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,142 | py | # -*- coding: utf-8 -*-
import os
import config
import time
if config.mode == "LSF":
import sys_LSF as manager
elif config.mode == "LOCAL":
import sys_single as manager
else:
import sys_OTHER as manager
def change_environment(env):
if len(env) > 0:
for var, val in env.iteritems():
... | [
"arnald.alonso@gmail.com"
] | arnald.alonso@gmail.com |
13588d94d6dca1b2727031036d756a83fd7954a9 | 604ad28d730882f44d3a52e4e8f6a4438e51fd01 | /Recognize.py | f11232a343279db7091b6d95af37a87c245a2022 | [] | no_license | domjanbaric/EESTech2017 | ffffb5be2ed2078c87820013bf4fcbe62635ef94 | 62dfa1e6129638c26d7dbe76e95c267d5df0177b | refs/heads/master | 2021-06-22T09:27:27.127548 | 2017-08-10T08:55:52 | 2017-08-10T08:55:52 | 99,901,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 10 07:23:57 2017
@author: Ana
"""
import numpy as np
from PIL import Image
from keras.models import load_model
import os
import argparse as ap
model = load_model("boja3.h5")
def test(slija="18_krava.jpg"):
ime=["Adele","Babette","Cecile","Doerte","Elsa","Fabala... | [
"domjanbaric@live.com"
] | domjanbaric@live.com |
c8ae48a6f79a42bf74407f3d6801a041d64be011 | 6a63e40b1d30b6a810c89d910ac3f8f5954002ee | /src/pretalx/submission/migrations/0039_submission_created.py | c73cbfb2440b187adbb54d325d4ffb85e8724bf3 | [
"Apache-2.0"
] | permissive | orlando/pretalx | 47b7ab3e3258d667183066b84227b785199711b2 | 15f90dc2545f210eaf870ffbdfe0a27c70bfa0ec | refs/heads/master | 2020-09-10T20:26:49.867462 | 2019-11-15T01:19:07 | 2019-11-15T01:19:07 | 221,826,314 | 2 | 0 | NOASSERTION | 2019-11-15T02:21:05 | 2019-11-15T02:21:04 | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 2.2.1 on 2019-05-01 20:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('submission', '0038_auto_20190429_0750'),
]
operations = [
migrations.AddField(
model_name='submission',
name='create... | [
"r@rixx.de"
] | r@rixx.de |
98f6efc042e1bdf171342027a6aa29fcfa032a39 | 8f1e134108bdcad95c61e1e5c588fdfed9b8236a | /tests/infrastructure/test_cluster.py | bbe0d3ee1c8b5a88b74a65090e07415cf3ab74f6 | [] | no_license | azmathasan92/elk-automation-challenge | 77bc82e74d0109289c8b2e6bd96abdbb29c9fa93 | b42b034f3a1ea78148504212b52224b6700b7ce2 | refs/heads/master | 2023-05-09T03:45:20.062542 | 2021-03-26T17:42:20 | 2021-03-26T17:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | from google.oauth2 import service_account
from google.cloud.container import ClusterManagerClient
from kubernetes import client, config
import os
import unittest
import config as cfg
class TestSetup(unittest.TestCase):
def setUp(self):
self.project_id = cfg.project_id
self.zone = cfg.zone
s... | [
"imuge94@gmail.com"
] | imuge94@gmail.com |
f8d400ba97d30bfe07598361713b02eb48a9b54a | 4bd5c760337aee32f882c7dec53ac02767b63249 | /parser2.py | 17cc50e7a121a7da070e532a500499990f6fd375 | [] | no_license | denisfruza/PythonProject | a852024fac7964daf41a9d2d9a39d5359e2dd7e6 | 90b6ca9b343f7289ee25f5e8b7f32add0afdc709 | refs/heads/master | 2022-04-13T18:29:40.828964 | 2020-02-28T20:50:07 | 2020-02-28T20:50:07 | 241,696,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | # -*- coding: utf-8 -*-
import re
import os
from html.parser import HTMLParser
class Parser(HTMLParser):
"""
Parser HTML dokumenata
Upotreba:
parser = Parser()
parser.parse(FILE_PATH)
"""
def handle_starttag(self, tag, attrs):
"""
Metoda beleži sadržaj href atrib... | [
"denisfruza98@hotmail.com"
] | denisfruza98@hotmail.com |
fb7be942dde3ebb78f195e731981df98417bf374 | 01df468685c9f393b9559cb68df349ef7abcf5a6 | /panelapp/panels/urls.py | 2d9e2ae0ab52028ab81a18a96b567f8bf2b09c0b | [
"Apache-2.0"
] | permissive | victorskl/panelapp | 481af901472cd960da2d0abf17239b8d484524be | 4dfdd31f6036db5cb4e692961ef9bcbe92d39a23 | refs/heads/master | 2020-05-07T16:28:08.946472 | 2019-01-23T11:04:41 | 2019-01-23T11:04:41 | 180,684,104 | 1 | 0 | null | 2019-04-11T00:28:26 | 2019-04-11T00:28:26 | null | UTF-8 | Python | false | false | 10,310 | py | from django.conf.urls import url
from django.views.generic import RedirectView
from .views import AdminView
from .views import AdminUploadGenesView
from .views import AdminUploadPanelsView
from .views import AdminUploadReviewsView
from .views import EntitiesListView
from .views import CreatePanelView
from .views impor... | [
"oleg.gerasimenko@nhs.net"
] | oleg.gerasimenko@nhs.net |
ecff1d9109504140a699cf7d7ca9105c4e445e9b | f642417833054583556c450ff69d4d17e55011e1 | /users/models.py | f258e7326bfd35945b92ecc14cf8128f17bb3a70 | [] | no_license | dragonStar712/blog | efa1583829322853de1c0a310c2e4c8796170568 | 9f103ce8dba44365d179b59ad1938e994abe36cf | refs/heads/master | 2023-05-14T00:25:19.548419 | 2021-06-05T05:38:34 | 2021-06-05T05:38:34 | 374,030,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg',upload_to = 'profile_pics')
def __str__(self):
return f'{self.user... | [
"maulikprajapati712@gmail.com"
] | maulikprajapati712@gmail.com |
e0b559b5929289ad8e62f95b425db9fb2268066b | a1da2caf2addcddadd5ce731c752c4e783502f14 | /custom/isolation_test_1.py | fdd8d344d7d6803b8974778c97c4c51992708cd6 | [
"Apache-2.0"
] | permissive | yunmingxiao/TUS_old | bf25d4b1482d5c22eac8c0c2e1fb6aab40e204c5 | 3865491f3fbd6eb438eae793a801b6fc18313cef | refs/heads/master | 2020-05-04T20:44:10.069990 | 2019-04-11T10:20:38 | 2019-04-11T10:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | from ryu.base import app_manager
from ryu import tus_core
from ryu.controller import ofp_event
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_0
class ISOtest1(tus_core.TUSInterface):
#class ISOtest1(app_manager.RyuApp):
OFP_VERSIO... | [
"xyunming@live.com"
] | xyunming@live.com |
43178e2ed1238f75334f622fe978141d5825a140 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/certificateregistration/v20190801/app_service_certificate_order_certificate.py | bc9c20160c568bfb9fc5b6e93455dd3c70b706ac | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,243 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | noreply@github.com |
26e617807d9d999827f851c37be1d219170066df | 484c462c29e3c2f8ac280b79c11db6982c6a8ca6 | /python-driver-master/tests/unit/test_policies.py | 56fd5440fee65e8a31452c8ce87cf75ac5064999 | [
"Apache-2.0"
] | permissive | thelma1944/Python_Stuff | b5fa53bf008bb5e865204201b144fe20e7f87565 | 077131a2c9f247396dca86fdf18933d38ae8d501 | refs/heads/master | 2021-06-05T12:25:35.779070 | 2020-10-03T18:20:16 | 2020-10-03T18:20:16 | 16,077,931 | 0 | 1 | null | 2021-03-26T00:30:14 | 2014-01-20T17:36:16 | Python | UTF-8 | Python | false | false | 31,810 | py | try:
import unittest2 as unittest
except ImportError:
import unittest # noqa
from itertools import islice, cycle
from mock import Mock
from random import randint
import sys
import struct
from threading import Thread
from cassandra import ConsistencyLevel
from cassandra.cluster import Cluster
from cassandra.me... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
01f5fea49d6cc68be50473d37f2a1db47236cf90 | 4d804319cb29d4b1fcd4396a87616f8ed5a20e84 | /algorithm/lin_ucb.py | 4de99b87938578c088c17953951b06968654d502 | [] | no_license | satoshi03/bandits | 77fa477acae8023d7ac4d6a281cfec7648574431 | fa74c30b87e2dd3d8f2c76fdeff7564d8c5016aa | refs/heads/master | 2022-10-27T07:25:08.064582 | 2020-06-13T12:12:57 | 2020-06-13T12:12:57 | 270,251,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | import numpy as np
from .base import BaseAlgorithm
class LinUCBAlgorithm(BaseAlgorithm):
def __init__(self, K, d, alpha=0.2):
self.K = K
self.b = np.zeros((self.K, d))
self.A = np.array([np.identity(d) for a in range(K)])
self.th_hat = np.zeros((self.K, d))
self.alpha = a... | [
"innamisatoshi@gmail.com"
] | innamisatoshi@gmail.com |
3bdc61be7d60443b703c9034725d3e8a20781528 | a03024423d1664f937baab2d3fda01ba1f57596a | /MedAR/images/serializers/__init__.py | 576d4efd0277f8bc162575aba71cf8cc56045fa0 | [] | no_license | TheChipperDev/MedAR | d74d0451ec420443f0369027302cdd0e0787f2f2 | 17f284895cedfa0f4f17917303e96200f9e9cdef | refs/heads/main | 2023-08-30T04:15:20.087614 | 2021-09-12T03:10:50 | 2021-09-12T03:10:50 | 405,212,905 | 0 | 0 | null | 2021-09-12T03:10:51 | 2021-09-10T21:07:21 | Python | UTF-8 | Python | false | false | 64 | py | from .image import ImageSerializer
__all__ = [ImageSerializer]
| [
"TheChipperDev@gmail.com"
] | TheChipperDev@gmail.com |
450fbc924c74dc360419f8b44fe73a51637ee67a | 7cb099a861a25768ba8c82f5bc27149e887c1525 | /models/e4e/psp.py | bf9f75dbaa66997abfc1e3e0e4f19ddfec7fedac | [
"BSD-2-Clause",
"MIT",
"Apache-2.0"
] | permissive | johndpope/PTI | 8aaaf4e05511aacfabc22393c45c3e8edcf71b73 | b2594cdfbc02b73eb3bd4ecae7d7a77d5d369234 | refs/heads/main | 2023-08-18T01:08:56.602486 | 2021-09-13T04:46:11 | 2021-09-13T04:46:11 | 393,591,516 | 0 | 0 | MIT | 2021-08-20T03:38:56 | 2021-08-07T05:44:29 | null | UTF-8 | Python | false | false | 3,952 | py | import matplotlib
from configs import paths_config
matplotlib.use('Agg')
import torch
from torch import nn
from models.e4e.encoders import psp_encoders
from models.e4e.stylegan2.model import Generator
def get_keys(d, name):
if 'state_dict' in d:
d = d['state_dict']
d_filt = {k[len(name) + 1:]: v for k... | [
"danielroich@gmail.com"
] | danielroich@gmail.com |
54d94ac985c12d3fd4de8e5215f21d92676cded3 | 338284f2a26a3f43ea99142792c2f930cf033a1f | /YoutubeDjango/myporject/YoutubeFlow/views.py | 3f289b5be82bebb4112a1d781760f96466545b5f | [] | no_license | valosz66842/valosz66842 | 78c0781faef2e7ee5a7bf2292a28ebaebd630cbe | ca208f95ac281e0be5262c07459288626adf6235 | refs/heads/master | 2021-07-21T17:01:18.584448 | 2020-04-13T12:59:36 | 2020-04-13T12:59:36 | 250,428,346 | 0 | 0 | null | 2021-06-10T22:41:42 | 2020-03-27T03:11:12 | CSS | UTF-8 | Python | false | false | 2,930 | py | from django.shortcuts import render
from django import template
from django.contrib.auth import get_user_model
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
from django.http import HttpResponse
from datetime import datetime
import reques... | [
"valosz66842@gmail.com"
] | valosz66842@gmail.com |
8d8d61fd098f88052462a8ffca8726bedc8e0be5 | 25faf278aa86c2650a2b8725a2c16b82e0d8711c | /python/main.py | dbc049276a73410ea4bf67f57571a4dfff131207 | [] | no_license | E-Cell-VSSUT/coders | 9fae0a468d7756608311079ede0debe5b46fa8a9 | e220626ca8a65d35513ef129f17369634a8aed11 | refs/heads/main | 2023-09-04T09:53:31.435810 | 2021-10-31T15:17:44 | 2021-10-31T15:17:44 | 415,492,971 | 1 | 16 | null | 2021-10-31T15:17:45 | 2021-10-10T05:17:30 | C | UTF-8 | Python | false | false | 3,453 | py | Lefthand_player1 = 1
Lefthand_player2 = 1
Righthand_player1 = 1
Righthand_player2 = 1
print("Input1:Enter A for attack and S for split")
print("Input2:Enter attack combination LL or LR or RL or RR")
def error():
print("\nInvalid input,Wait for your move.")
def status():
print("Current Statu... | [
"noreply@github.com"
] | noreply@github.com |
c04f540c224f089a209045fa1a8830c5b29a8c1e | 49859591ead0d2241d83bd4102e1c803c0b804a2 | /mdann_deepshinx/deepshinx/data.py | 2d2cea60f24e0aae058bd9b99f7f889f4927d969 | [] | no_license | joshinh/Domain-Adaptation | 73f5a0dfd7c97fe1ddaefee37028032ce3f120a5 | b0a81b8c8d1df3f5161db578697144e1666a5fb9 | refs/heads/master | 2021-03-27T08:49:36.731352 | 2018-05-04T17:04:01 | 2018-05-04T17:04:01 | 112,062,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,048 | py | '''Data utilities'''
import threading
import random
import numpy as np
from python_speech_features.base import fbank, delta
import tensorflow as tf
from deepsphinx.vocab import VOCAB_TO_INT
from deepsphinx.utils import FLAGS
from deepsphinx.fst import in_fst
import soundfile as sf
import csv
def get_features(audio_fil... | [
"noreply@github.com"
] | noreply@github.com |
58c9a5f0e565ccdbaf918e996f7f4175077c440a | fea9d6b8186cf07fb66229988fadc0d066ee5d86 | /pynrm/rl_deconv.py | 80ebf95585f52741f4125fd1b98f1c5e4814fa8b | [
"MIT"
] | permissive | mikeireland/pynrm | 71859f5e3f962a57c5078935adca58832a46b075 | ae25b01ba590ee581232dacdb906de6effc7870b | refs/heads/master | 2021-01-10T06:40:01.379315 | 2018-07-01T15:07:15 | 2018-07-01T15:07:15 | 35,964,865 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,547 | py | """This makes a simple Richardson-Lucy deconvolution on a cleaned data cube, with
some reference calibrator images. Input data have to be neatly packaged in a single
data cube.
To make a "good_ims.fits" file, run "choose_psfs.py" after cleaning the data
(e.g. with process_block called in a script go.py or run_clean).... | [
"michael.ireland@anu.edu.au"
] | michael.ireland@anu.edu.au |
ffbdf922a169191795e21b24f226334344e6b2b8 | 8a08d39142c7b5c7dc9300717f0db6dad295ec92 | /antelope_core/providers/parse_math.py | 8fb0f24a50ac68f93528c7d0a658cd62da7d7e04 | [
"BSD-3-Clause"
] | permissive | msm-sardar/core | 3eac85248914ada808882b9dedefd889756be504 | bc88a1ed3e4c1defcbc83fa86356451ac34c178c | refs/heads/master | 2023-08-24T03:56:31.892812 | 2021-10-14T01:12:02 | 2021-10-14T01:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import ast
def parse_math(expression):
"""
A function I got off stackoverflow that enables python to parse user input as a mathematical expression.
probably a huge security risk. but it enables the user to enter missing characterization values during runtime.
:param expression:
:return:
"""
... | [
"brandon.kuczenski@301south.net"
] | brandon.kuczenski@301south.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.