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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
456ba9656c9185170fa3b8e153bf53d8ef7a7ada | 3ffcda377dc1eca08031c6568729d346f9a41224 | /modules/pstemmer.py | 8a7dc65dc918a7ae5eee351a41141b676fdfc641 | [
"MIT"
] | permissive | chenfj068/gnot | 3cbd3b6a2468cb019d1c3cf8e9a554949fdaab5e | ac698c5cce0e2ebb77dd84c5d050417b735f5fbf | refs/heads/master | 2020-03-10T03:51:59.777777 | 2015-01-10T20:55:21 | 2015-01-10T20:55:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,097 | py | class PorterStemmer:
def __init__(self):
"""The main part of the stemming algorithm starts here.
b is a buffer holding a word to be stemmed. The letters are in b[k0],
b[k0+1] ... ending at b[k]. In fact k0 = 0 in this demo program. k is
readjusted downwards as the stemming progresses... | [
"garthee@ganeshapillais-MacBook-Pro.local"
] | garthee@ganeshapillais-MacBook-Pro.local |
139027d1595ac0b0efde91369b9279e7f7756063 | 5d7bfb0826b54dec7cf0cbc3c513f04f14ae20fc | /52.py | 174a4670b4c6f2f7b3e65f96e41524788127ec58 | [] | no_license | renuka-fernando/project-euler-answers | dd38ebccf554b2a88a2284b658d8a137c14a5c74 | 90243d7c82b4968a1b275fd18ef1d8c289c58f75 | refs/heads/master | 2021-09-09T10:33:44.159695 | 2015-01-22T10:14:31 | 2015-01-22T10:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | def IsPermutation(n1, n2):
n1, n2 = str(n1), str(n2)
if len(n1) != len(n2):
return False
N1 = []
for digit in n1:
N1.append(digit)
for digit in n2:
if digit in N1:
del N1[N1.index(digit)]
if len(N1) != 0:
return False
else:
return True
... | [
"renukapiyumal@gmail.com"
] | renukapiyumal@gmail.com |
c2f2c90ff36ce779f8786696078f858e381bc822 | b1386109e6047247e5c98e01ec5380204f49e669 | /validationScripts/orderModOnCom.py | e5f9656c3b410d5ffd9aae41a9b4bbafce4e1dab | [
"MIT"
] | permissive | balabhaskar27/validation-obgo-tests | 341d8713ef5e457f691b89c21a3aeddef554882b | 12fb08d68d1c60ed7de921cb1edd1385d1fa8e10 | refs/heads/master | 2022-03-11T20:07:19.351113 | 2019-10-24T01:26:10 | 2019-10-24T01:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import jsonschema
import json
with open('../schema/orderModOnComSchema.json') as a:
schema = json.load(a)
with open('../responses/orderModOnCom.json') as b:
response = json.load(b)
try:
# And validate the response
jsonschema.validate(instance=response, schema=schema)
print("Validation test passed!")
... | [
"washington.sanchez@gmail.com"
] | washington.sanchez@gmail.com |
ed7b59ea529505c039c84632f0c762b6e7687cd5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/29/usersdata/149/9337/submittedfiles/atividade.py | a129ae25b27b8413697e0322686088d89dc72a89 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,309 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
59eac0154c735e63114bb07c28b1c96392ae0c02 | 980810dc805a6c7deb373fea2f88d6f1240ac5a1 | /Prac05/stateNames.py | 8bf3501de30547ce57bdf10b7dff7e463f8357d0 | [] | no_license | philipwoodward/Practicals | acf9c13fc7c9ab945cf056f78b5647a6e620209b | f59d78b875b748f85526b769859e3d3fb6a8a170 | refs/heads/master | 2020-05-22T01:32:26.390769 | 2016-09-18T10:57:05 | 2016-09-18T10:57:05 | 65,691,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | """
CP1404/CP5632 Practical
State names in a dictionary
File needs reformatting
"""
# TODO: Reformat this file so the dictionary code follows PEP 8 convention
STATE_NAMES = {"QLD": "Queensland", "NSW": "New South Wales", "NT": "Northern Territory", "WA": "Western Australia",
"ACT": "Australian Capital T... | [
"philip.woodward@my.jcu.edu.au"
] | philip.woodward@my.jcu.edu.au |
eb902962ee25bcc46960267591255ee36d0bd41a | 934a8c50411d78c948d640ecda814f45ad068b40 | /m22/Check Sudoku/check_sudoku.py | 2ff1df0dfef1099e8d6968d62cc0c6bb26586f62 | [] | no_license | muralimandula/cspp1-assignments | ed7af733ae5762e6ef0818d018d51d603a520601 | a676aaa1f721fea0bf47fb0ec5823766ac729dd4 | refs/heads/master | 2020-03-25T05:20:37.731010 | 2018-08-27T04:27:03 | 2018-08-27T04:27:03 | 143,441,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,387 | py | '''
Sudoku is a logic-based, combinatorial number-placement puzzle.
The objective is to fill a 9×9 grid with digits so that
each column, each row, and each of the nine 3×3 subgrids that compose the grid
contains all of the digits from 1 to 9.
Complete the check_sudoku function to check if the given... | [
"murali.mandula@msitprogram.net"
] | murali.mandula@msitprogram.net |
685279deb51b82c7913268989efa1ce91cda2791 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/effects/ShipSinkSplashes.py | 4efffec5639f34902279a1a506fbbbf5ba52d62c | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,226 | py | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import ParticleEffect
from direct.particles import Particles
from direct.particles import ForceGroup
from EffectController import EffectController
from PooledEffect import PooledEffect
import random
class ShipSinkSplas... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
f3ad29a421a0cf868288fc6682c1a2f1460652b8 | 61ce57892c172f71286a39c8c863aa8a7b29484b | /stampede_results/efficiency.py | 819f43b7bee082e404a72cda5a0ee62105cfe01a | [] | no_license | bd-j/cetus | cfbb46aa2d94fdf982a7906bc8bdcbe9375df67c | c9f7e0972184a0c2fcc7add6e766733b7a46b149 | refs/heads/master | 2021-05-01T00:06:10.518322 | 2015-02-17T16:49:46 | 2015-02-17T16:49:46 | 21,367,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | import sys, os, glob
import numpy as np
import matplotlib.pyplot as pl
import bsfh.read_results as bread
def process_run(mcmc_file, model_file):
result, pr, model = bread.read_pickles(mcmc_file, model_file=model_file)
nburn = np.sum(result['run_params']['nburn'])
nw, niter, ndim = result['chain'].shape
... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
0ec91a7438c22328f4382f2c4fb586fb7d3ad54b | e1db880dc68e16b6947cc6920643245ae37a7cdd | /Kinematics/camera_cali/common.py | 49c99b481d7e68d3cb3de8b07f653fdec2c40f72 | [] | no_license | zhezhou1993/Germian_Spp2 | 872ceddd7c8e60a452c23dd5b940e693b2dc5223 | 22c269c3368cc60a8ed0fde5a20d036231d0c337 | refs/heads/master | 2020-12-07T15:38:43.352777 | 2015-12-15T05:43:14 | 2015-12-15T05:43:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | __author__ = 'germain'
#!/usr/bin/env python
'''
This module contains some common routines used by other samples.
'''
# Python 2/3 compatibility
from __future__ import print_function
import sys
PY3 = sys.version_info[0] == 3
if PY3:
from functools import reduce
import numpy as np
import cv2
# built-in modules
import os... | [
"zhemingzhou1993@gmail.com"
] | zhemingzhou1993@gmail.com |
2a345952b4160400e17343c21bb8b279da7fd89b | 17f151691172f5864c7e1e5a578271e8dcf5209d | /examples/get_secure_system_falco_rules.py | 839da37f7705409a9872ce69be03aad355eca23c | [
"MIT"
] | permissive | draios/python-sdc-client-beta | 8dad2e6ee980c879ff0a75140f63349fe0d09e9f | f77b59c7fb4ff844ba5225fca6ba1b2dbd37a7af | refs/heads/master | 2022-07-19T02:51:26.661786 | 2017-10-12T00:32:02 | 2017-10-12T00:32:02 | 97,976,633 | 3 | 0 | MIT | 2022-07-04T12:04:37 | 2017-07-21T18:34:14 | Python | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/env python
#
# Get the sysdig secure system rules file.
#
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), '..'))
from sdcclient import SdSecureClient
#
# Parse arguments
#
if len(sys.argv) != 2:
print 'usage: %s <sysdig-token>' % sys.argv[0]
prin... | [
"mark.stemm@gmail.com"
] | mark.stemm@gmail.com |
5cdd8442cd814d0483be06189f1baa90c42bb382 | d2c92cfe95a60a12660f1a10c0b952f0df3f0e8e | /adminasto/adminasto/tongji.py | 698ac53c3172a4fe3beefb1a1fcf538a722beb21 | [] | no_license | snamper/zzpython | 71bf70ec3762289bda4bba80525c15a63156a3ae | 20415249fa930ccf66849abb5edca8ae41c81de6 | refs/heads/master | 2021-12-21T16:12:22.190085 | 2017-09-30T06:26:05 | 2017-09-30T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from sphinxapi import *
import os
import MySQLdb
import datetime
nowpath=os.path.dirname(__file__)
execfile("conn.py")
#产品数量
def getproductnum(nowday):
format="%Y-%m-%d";
nowday=strtodatetime(nowday,format)
oneday=datetime.timedelta(days=1)
sql="select count(0) from products where gmt_created>'"+str... | [
"2496256902@qq.com"
] | 2496256902@qq.com |
2a1ed3b591771dcef576f456adcb8a35894e6e42 | 7a3757a341fb1c5a06482e2e5cb066a967a6eff5 | /tests/apis/test_htmls.py | 8a62ed922151fdb0fb4d2da11af953142cdb52d2 | [
"MIT"
] | permissive | ninoseki/uzen | 4bff6080b9c0677dcf25abc0f104eca3fb92ed8a | 2a0065aa57fe3891c46e1174c1dc9aab673e52a8 | refs/heads/master | 2023-09-02T01:59:18.893712 | 2022-08-28T09:49:12 | 2022-08-28T09:49:12 | 241,092,872 | 87 | 9 | MIT | 2023-06-01T01:08:05 | 2020-02-17T11:37:59 | Python | UTF-8 | Python | false | false | 568 | py | from typing import List
from fastapi.testclient import TestClient
from app import models
def test_html(client: TestClient, snapshots: List[models.Snapshot]):
id_ = snapshots[0].id
response = client.get(f"/api/snapshots/{id_}")
snapshot = response.json()
sha256 = snapshot.get("html", {}).get("sha25... | [
"manabu.niseki@gmail.com"
] | manabu.niseki@gmail.com |
ae94545826060dc77cbb8265c14258c63d342f9e | 89a5b331a2021483271a4b189583dbdfca6ea190 | /Divisors.py | 0cf70848bb110c903885118808014cb3531e1819 | [] | no_license | Cogswatch/CS362-In-Class-Activity-2 | 75b3b55e36b9b6dc9e98f676fafb1f36127592aa | ea3574d035229a8ac8dd8f5d3501ac9907aae4de | refs/heads/main | 2023-04-02T14:38:27.957906 | 2021-04-17T01:29:10 | 2021-04-17T01:29:10 | 358,756,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | def Divisors(n):
print(n, " is divisible by: ")
for i in range(1,n):
if n % i == 0:
print(i, ",")
Divisors(16) | [
"c.greyston.brady@gmail.com"
] | c.greyston.brady@gmail.com |
04929ee13dd2a34f55207a5871cb80ac958e646b | 2b34167a753a806be68cc13112e7f0adf535a841 | /src/reservierung/urls.py | a3fb22ddcb62bc91ba98a0657082d07a89d72aab | [
"MIT"
] | permissive | holytortoise/abwreservierung | dd2e1eccdf657fc0921c8efd0705bebc3fdb24cf | 9bf8bdb64f54df85e815a0af46ad5a62544a2236 | refs/heads/master | 2018-10-29T23:32:19.552878 | 2017-11-06T13:36:23 | 2017-11-06T13:36:23 | 103,610,382 | 0 | 0 | null | 2017-11-06T13:42:44 | 2017-09-15T03:37:19 | JavaScript | UTF-8 | Python | false | false | 844 | py | from django.conf.urls import url
from django.views.generic.base import RedirectView
from django.contrib.staticfiles.storage import staticfiles_storage
from . import views
app_name = 'reservierung'
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'reservierung/form/$', views.reservierung_form, name=... | [
"holytortoise@users.noreply.github.com"
] | holytortoise@users.noreply.github.com |
d83d17593a23cc734d5f3a70eba905a6d4cec639 | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/asyncs/kernels/g1/asyncs/kernels/__init__.py | 14f907bb3747de8bcda48ebf1fa4c851b89d6562 | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | __all__ = [
'KernelTimeout',
'call_with_kernel',
'get_kernel',
'run',
'with_kernel',
]
import contextlib
import contextvars
import functools
import logging
from . import contexts
from . import kernels
# Re-export errors.
from .errors import KernelTimeout
logging.getLogger(__name__).addHandler(lo... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
14e79a710ca48f5ea079f92c74b9d59b7748339e | ec32a7feecc1bb6c9229e2f1f878a74fd01d8bee | /smart_proj/Sensors/Sensor.py | 5ff5e7782f6e023f699f1cebceccd7f21d135063 | [] | no_license | huly94/smart_museum_proj | 8340ecbc1023253002fc3ceb1399ba148e475d26 | e1df31fc4b1da0a7984740ee0db24d3dc5a781c6 | refs/heads/master | 2021-01-05T15:20:35.219344 | 2020-06-05T10:15:17 | 2020-06-05T10:15:17 | 241,059,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import statemachine
import logging
class Sensor(statemachine.StateMachine):
logging.basicConfig(format='%(levelname)s:[%(name)s]:%(message)s', level=logging.DEBUG)
def __init__(self):
super().__init__()
self.area = ""
self.user = ""
self.position = ""
# set the area of th... | [
"ico.giulianelli@hotmail.it"
] | ico.giulianelli@hotmail.it |
f6f6d11104bcd6224432deecdc60855feaa8e619 | 752d9b69fbcfdbbb95fdc0efbd467e8d4b992642 | /crawl.py | f25cbc76703ae022b29b46caee2138d5de9fd6b5 | [] | no_license | edwinoko/crawler | 66b18dec1cc458973bafd4faa30eddc9b87faaa9 | 2427adafecdf0bea1dc8b2da33fe279fd0846e09 | refs/heads/main | 2023-07-07T02:44:43.486119 | 2021-08-04T08:22:08 | 2021-08-04T08:22:08 | 392,607,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,490 | py | import requests
import os, re
from tqdm import tqdm
from bs4 import BeautifulSoup as bs
from urllib.parse import urljoin, urlparse
from fpdf import FPDF
import time
import glob
from PIL import Image
import img2pdf
def is_valid(url):
"""
Checks whether `url` is a valid URL.
"""
parsed = urlparse(url)
... | [
"noreply@github.com"
] | noreply@github.com |
f95818b00f5f0d66c4279b5d1bba2ce0634bbc30 | 87209058bd5dd05ff0b3bd3ce2e5b5ed12671410 | /jiaoyu/apps/organizations/forms.py | 7fd39c13a1a60aab869309800b2a5a8761931593 | [] | no_license | keepingoner/django-Projects | 2a8a245b702a507efc27b4b5c6fb669bcf7d1846 | 8ca94559a31f82951a05dd8749c37d7595a8e298 | refs/heads/master | 2022-01-24T09:08:27.384731 | 2019-07-23T02:48:20 | 2019-07-23T02:48:20 | 109,779,078 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django import forms
from operations.models import UserAsk
class UserAskForm(forms.ModelForm):
class Meta:
model = UserAsk
fields = ['name', 'mobile', 'coursename']
| [
"keepingoner@163.com"
] | keepingoner@163.com |
9bcea0a220db2b4e4ccd80b78c3ad37ed691af79 | 0b69d635edf990943bbf870e7b76c12ce6e75bdb | /recon/evaluation.py | 0b97c16fb14bb0ada6f2873d4d1f7241eef2ea34 | [
"BSD-3-Clause"
] | permissive | cshallue/recon-cnn | a3cb80d9cea0ab9c03bf0536c755d8b1b66dadbf | d123075d3ed825fc234c633bbcddbba95a45f26f | refs/heads/main | 2023-04-18T21:41:13.768958 | 2022-07-18T14:08:50 | 2022-07-18T14:08:50 | 515,193,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | import collections
import os
import numpy as np
import pandas as pd
from absl import logging
from recon import inference
METRICS_FILENAME = "metrics.csv"
def _metrics_filename(model_dir):
return os.path.join(model_dir, METRICS_FILENAME)
def evaluate_dataset(predict_fn, dataset, verbose=True):
output = co... | [
"chris.shallue@gmail.com"
] | chris.shallue@gmail.com |
c90363d9aca9321afb65fac2b14bdd26eeb19ed0 | aea20c0fe77e54e2c6a69d785c4b40507b1df851 | /inspect_platform.py | a3ba97a93c960cbcd0df7919306b95fc4f28144f | [
"MIT"
] | permissive | ShackleSlayer/cython-vst-loader | 6f219b8f97fe9e1db22b603ae9f7dd9b683ed658 | f24f2090a836b3cb739daf403f0ca5135f44d233 | refs/heads/master | 2023-06-04T20:18:20.479810 | 2021-03-27T14:22:53 | 2021-03-27T14:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import os
from sys import platform
print("sys.platform: " + platform)
print("os.name: " + os.name)
| [
"grechin.sergey@gmail.com"
] | grechin.sergey@gmail.com |
8ca803c4551cb1d8f3a82c8c9aefebb765a42918 | ad0a4038d45ca6ca036a4331c4b675b131e3efe5 | /app/routes.py | f67a90e5caaee0aafec339210ba9960b2632eee2 | [] | no_license | k-nox/hello-books-api | e0ef7ab205e48e01ccfc4801a152595152e0cc06 | be6b4aefae9a343a16a9460e9ef07c9c1ae60597 | refs/heads/00-scaffold | 2023-09-03T05:59:12.997597 | 2021-11-02T19:55:47 | 2021-11-02T19:55:47 | 417,306,847 | 0 | 0 | null | 2021-10-14T23:05:52 | 2021-10-14T23:05:51 | null | UTF-8 | Python | false | false | 1,845 | py | from app import db
from app.models.book import Book
from flask import Blueprint, jsonify, make_response, request, abort
books_bp = Blueprint("books", __name__, url_prefix="/books")
@books_bp.route("", methods=["GET"])
def read_books():
title_query = request.args.get("title")
if title_query:
books = B... | [
"lux.barker13@gmail.com"
] | lux.barker13@gmail.com |
f29845b4a7e41fd25e8f0aaf3a5e1216fa204a11 | 1db2e2238b4ef9c1b6ca3b99508693ee254d6904 | /develop/analyse_2D_matrix/analyse_2D_matrix.py | f46d66c680efd95275086ab37592a63a94f4224e | [] | no_license | pgreisen/pythonscripts | 8674e08095f76edf08ef2059300349218079724c | 0aadf8f96d19b306c1bc44a772e766a06fe3408b | refs/heads/master | 2021-07-06T23:54:57.774342 | 2021-06-08T19:36:36 | 2021-06-08T19:36:36 | 22,017,192 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | from numpy import mean,sqrt,var
import sys
from collections import defaultdict
from collections import OrderedDict
import os,shutil,sys,argparse
class Analyse2D:
def __init__(self):
self.scores = defaultdict(list)
self.scores_position_two = {}
self.aa = ['ALA','ARG','ASN','ASP','CYS','G... | [
"pgreisen@gmail.com"
] | pgreisen@gmail.com |
127340c6f50c34bb02f1678ec7d9f12c7ce76d64 | 04c41aca1f78ac617fe1573818b10fb0e12fbe40 | /tests/schemas/users/snapshots/snap_test_queries.py | 85793ffecaf3ec9d16884144152f71578d6c90f8 | [] | no_license | telephoneorg/orka-api | 619489ae17dfd850c74aa2c950e0d4385ba059d9 | 5693aff776b7a7649617915a0a8e0942d1228c24 | refs/heads/master | 2022-01-10T15:28:21.277746 | 2019-05-16T19:06:40 | 2019-05-16T19:06:40 | 186,914,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,718 | py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_get_me_query 1'] = {
'data': {
'me': {
'cellPhone': '+14153334444',
'contexts': {
'c... | [
"me@joeblack.nyc"
] | me@joeblack.nyc |
c85cd3c0da6ebfab8d1906ca10047979b534d0d6 | 5a81921b09ddda15f972e8582ee9d03aca79f077 | /src/qdarktheme/Qt/__init__.py | 498708b02d144cd37505ac106a0ddec03e2015fa | [] | no_license | gloger2003/BinanceBot_BabloFill_Desktop | 7086e570aeb35363de0a911743da64af021eaa92 | 161a6322c0f1417c6d2f733215bf591ca051cf2d | refs/heads/main | 2023-08-30T02:10:30.121482 | 2021-10-09T13:53:13 | 2021-10-09T13:53:13 | 415,168,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | from . import QtCore, QtGui, QtSvg, QtWidgets
| [
"studiogloger@gmail.com"
] | studiogloger@gmail.com |
c6560fd4d326ede3c566fcd162994c64fee9adf3 | 59df404c69c8a08280e792a0c3a8801c13c630f0 | /utils/util.py | ceb7c85796fb165d3c555b76eb551ce093d2ee31 | [
"MIT"
] | permissive | MLDL/Regularized-Self-Labeling | 31d2272419de400be03bc46663a312e2df08d464 | 1260fbe1f05558dfbe1de9023a9a39028a47b3f1 | refs/heads/main | 2023-09-03T11:52:40.240839 | 2021-11-07T20:04:45 | 2021-11-07T20:04:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | import json
import torch
import pandas as pd
from pathlib import Path
from itertools import repeat
from collections import OrderedDict
def deep_copy(state_dict):
new_state_dict = {}
for k, v in state_dict.items():
new_state_dict.update({k:v.clone().detach()})
return new_state_dict
def ensure_dir(d... | [
"lidongyue12138@gmail.com"
] | lidongyue12138@gmail.com |
070875b04b4dc80ae5c6096d671e2aa192e87d56 | 95529ab6b7905ff7792257af1285d0c3c73ebf9b | /rest/app/user/serializers.py | f9b897027aed96cde2a5d86a40e6c3e4550d4a71 | [] | no_license | amahmood561/django-jwt-auth | 8564f033b54e407d6449aa18f37f00e49ef2d80d | ba4bab5db15c6ee026deda493a955b6543c5d6d1 | refs/heads/master | 2023-04-24T01:29:02.598185 | 2021-05-18T00:11:50 | 2021-05-18T00:11:50 | 368,349,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 6 11:14:00 2019
@author: sambhav
"""
from django.contrib.auth import authenticate
from django.contrib.auth.models import update_last_login
from rest_framework import serializers
from rest_framework_jwt.settings import api_settings
from rest.app.pro... | [
"amahmood561@gmail.com"
] | amahmood561@gmail.com |
750b855466580ca336ef851454d85be2d5325ce7 | 5c099927aedc6fdbc515f40ff543c65b3bf4ec67 | /algorithms/find-and-replace-pattern/src/Solution2.py | 3baef0faeceac6fc78a718b61d8201ae9e97cf0a | [] | no_license | bingzhong-project/leetcode | 7a99cb6af1adfbd9bb1996a7f66a65679053c478 | ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505 | refs/heads/master | 2020-04-15T09:27:33.979519 | 2020-03-10T03:43:07 | 2020-03-10T03:43:07 | 164,550,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | class Solution:
def findAndReplacePattern(self, words: list, pattern: str) -> list:
def match(word, pattern):
word_map = {}
pattern_map = {}
for i in range(len(pattern)):
if pattern[i] not in pattern_map:
pattern_map[pattern[i]] = word[... | [
"zhongyongbin@foxmail.com"
] | zhongyongbin@foxmail.com |
844bddff19b8cd12f320185b000ce0325bc49e82 | 26270831ececc8c0d28ac4d87da76c64212f232a | /app/blueprints/superadmin/__init__.py | 0ed416a6243d391f2a7935acbc133397f6be2811 | [] | no_license | catonisland/obsidian-panel | d68148daf7a16eee286f8029d01fd8a506bf55e2 | 21bad4b9026f64ca05cd0ff76d3aaf23e0eab043 | refs/heads/master | 2021-06-16T17:47:15.352513 | 2017-05-25T18:29:42 | 2017-05-25T18:29:42 | 103,217,591 | 1 | 0 | null | 2017-09-12T03:29:54 | 2017-09-12T03:29:54 | null | UTF-8 | Python | false | false | 588 | py | __author__ = "Nigshoxiz"
# import libs
from flask import Blueprint
# logging
import logging
super_admin_page = Blueprint("super_admin_page", __name__,
template_folder="templates",
url_prefix="/super_admin")
logger = logging.getLogger("ob_panel")
def get_vers... | [
"demohn@foxmail.com"
] | demohn@foxmail.com |
3f988b6899a10c4ac6a1b69e4c84e64fdc5be700 | f146aff4875d432a0ff0bae7bb9ef31880dd2065 | /scripts/generate_exceptions.py | fed63277eecaca36214cc4f0e1c4d07c1ef71a00 | [
"Apache-2.0"
] | permissive | dokklib/dokklib-db | 4c231a8b90f893577aa303e0e64af19dd38e5894 | 3665775c6d369ca08431b5295c1c181a9dca97cd | refs/heads/master | 2022-05-01T12:59:49.888649 | 2022-03-11T15:38:31 | 2022-03-11T15:38:31 | 242,386,571 | 22 | 5 | Apache-2.0 | 2021-04-20T19:22:45 | 2020-02-22T17:57:05 | Python | UTF-8 | Python | false | false | 1,718 | py | #!/usr/bin/env python3
"""Generate DynamoDB exceptions.
Boto3 creates exceptions dynamically from a service model which is not
desirable, because it breaks static analysis. This script generates a Python
file from the dynamically loaded Boto3 exceptions and puts it in
dokklib_db/exceptions.py
"""
import boto3
IGNOR... | [
"agostbiro@gmail.com"
] | agostbiro@gmail.com |
7463124619a26c52995c43c878ab51848ec53554 | 3c49b21b943218a17cf8d8333813e32c56fe8812 | /SectionShuffle.py | 83ed2900c7c6fdb0a9c6a4fa00adc3a76a543b17 | [] | no_license | dShvetsov/uneexPython | 1c1593b09e426699876734556139981ed9458490 | dcac14c667bce4754e3eca65f43ee1b830174164 | refs/heads/master | 2021-05-15T12:52:03.586740 | 2017-12-13T21:36:38 | 2017-12-13T21:36:38 | 108,435,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | #!/usr/bin/python3
# Ввести последовательность A объектов Python через запятую, и вывести кортеж,
# состоящий из элементов последовательности, стоящих на чётных местах — в обратном порядке (включая A[0]),
# после которых идут в исходном порядке элементы последовательности, стоящие на нечётных местах.
# Input:
#
# '0',... | [
"dshvetsov@arccn.ru"
] | dshvetsov@arccn.ru |
e4d4478b3c89c8bbd26fe512225a2782b16efd47 | 5d1c528e5b6ffa2aaef8ec8647b856b75986cb62 | /python/craftassist/craftassist_agent.py | 82c035c0ee23b237c7145baadeed734c87928e9b | [
"MIT"
] | permissive | kayburns/craftassist | fb6c9d7b8eb8e0e3bf6721d7562541be4ca20776 | 07909493d320afc2c9ff428d0891bc3acd4dc68f | refs/heads/master | 2023-05-07T21:14:30.906057 | 2021-05-26T21:12:02 | 2021-05-26T21:12:02 | 258,591,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,689 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
"""
# TODO correct path for safety.txt
# TODO correct model paths
import os
import sys
import logging
import faulthandler
import signal
import random
import re
import sentry_sdk
import numpy as np
# FIXME
import time
from multiprocessing import set_start_method
im... | [
"kaylee.c.burns@gmail.com"
] | kaylee.c.burns@gmail.com |
0ef56b88ad2fe82f010064280f80d9f5aacff104 | 390dae3573981063b23afe2e99d30a1fa5b1d305 | /bee-supplychainfinance-riskcontrol/spider/creditBlack/creditBlack/pipelines.py | 70bdba82da2df6c9e33b72a352a79d9e12332e36 | [] | no_license | henry0249/supplychainfinance | d808fe1892fb2872fe276812b4ab88033c004bc4 | 29400a8f109c6551b602d5a4691df492b31a6764 | refs/heads/master | 2021-05-19T17:39:14.310085 | 2019-12-16T05:44:26 | 2019-12-16T05:44:26 | 252,050,516 | 0 | 1 | null | 2020-04-01T02:24:57 | 2020-04-01T02:24:56 | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class CreditblackPipeline(object):
def __init__(self):
self.filename = '../creditBlack.json'
def ... | [
"414608036@qq.com"
] | 414608036@qq.com |
68ab7408ce8c6d407a2d665a1ee377829b57ad7a | 5e4bacde637e872ae9057dc1eeea6fa452e315c4 | /first_project/test_app/views.py | c829771b4258eec5f511759210df41f4446b25ed | [] | no_license | get2nav/django_test_deploy | 9c738161c36df00b5693924b49534e65f6bbca95 | 8baab4644209b424bcda9cec2d3ee2ab83e2906b | refs/heads/master | 2021-07-13T00:21:55.530280 | 2017-10-18T05:14:20 | 2017-10-18T05:14:20 | 107,361,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | from django.shortcuts import render
from django.http import HttpResponse
from test_app.models import AccessRecord, Topic, Webpage
from . import forms
# Create your views here.
def index(request):
accessRecord_list = AccessRecord.objects.order_by("date")
web_dict = {"access_records": accessRecord_list}
... | [
"get2nav@gmail.com"
] | get2nav@gmail.com |
9c16879a60050ea6fcfd7fbdb38f04f0059b0a5e | 45c142c3e3dc8d3211a86c77385ecfdd10d28fb9 | /dstore/engine/procedures/im_SearchProductTreeNodes_Pu_pb2.py | e8477e582833c1a15b21f596409f099d300fbbfe | [] | no_license | dstore-io/dstore-sdk-python | 945d64995c8892af18fab26c90117245abec64a4 | 8494d12ac77c3c3cc6dd59026407ef514ad179fc | refs/heads/master | 2020-06-14T13:07:08.181547 | 2017-01-26T11:19:39 | 2017-01-26T11:19:39 | 75,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 36,707 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dstore/engine/procedures/im_SearchProductTreeNodes_Pu.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fr... | [
"b.dolkemeier@dbap.de"
] | b.dolkemeier@dbap.de |
dd3f05884aaa83ec92a198f7824464a0fb70c444 | 8fa701c35c8429ff236574e1fb22bfe336b08132 | /config.py | 72d4c700c3471714b6a7fb4a9d4d797d37909320 | [] | no_license | bauman/Binja-Plugin-Autocollect | 2618ea5f17ca64024df422635c4f59fd5110e0cf | 2902d513faf96b700865c67d3ad1f77d731548b3 | refs/heads/master | 2023-08-27T18:03:33.471519 | 2021-10-27T13:55:35 | 2021-10-27T13:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import binaryninja as bn
HOST, PORT = "0.0.0.0", 1337
DEBUG = True
HL_NO_COLOR = bn.HighlightStandardColor.NoHighlightColor
HL_BP_COLOR = bn.HighlightStandardColor.RedHighlightColor
HL_CUR_INSN_COLOR = bn.HighlightStandardColor.GreenHighlightColor
| [
"daniel.bauman.1@us.af.mil"
] | daniel.bauman.1@us.af.mil |
a333fef1874da2a84c7cff45bb8a053c52b807ca | 1b0306d876d3598777731c997f5b83e60b1f394d | /pkgs/rackspace-novaclient/setup.py | bff483a59f46e41cb81d1f751af259f84a401dc3 | [
"Apache-2.0"
] | permissive | ck1981/packages | ee9d167cc57a4ea9e5af4d39648573ed0f93b49d | d7eb59ecf023c477608054beab708639ba98d67c | refs/heads/master | 2020-05-27T21:14:00.799745 | 2014-11-21T09:07:47 | 2014-11-21T09:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import setuptools
version = '1.0'
setuptools.setup(
name='rackspace-novaclient',
version=version,
url='http://pypi.python.org/packages/source/r/rackspace-novaclient/rackspace-novaclient-%s.tar.gz' % version
)
| [
"marat@scalr.com"
] | marat@scalr.com |
2f2d51bfbb38047617db2708dafcefeee7f4e45a | 83d03f3f1361a5659d876c6dcfce8d9db38be25b | /database/migrations/0002_auto_20201104_1309.py | b0c46e95182fb51ee985fd8867382f5ffa5ac699 | [] | no_license | roy-sukrit/web_scraping | bb09c54947fb52ffb43f6ddc1dcc3fc865f43884 | 027d42e44a50525709aff3217534e6795cda3ac8 | refs/heads/master | 2023-03-11T04:48:54.847908 | 2020-11-20T14:54:34 | 2020-11-20T14:54:34 | 314,579,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # Generated by Django 3.1.2 on 2020-11-04 07:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('database', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='imagedb',
name='i',
),
... | [
"roysukrit78@gmail.com"
] | roysukrit78@gmail.com |
1d0ab44ab2d7cace7a787b4d4a6be3978f7187fd | e02ffc3482b616a91a6f6a13d61845c0604fb617 | /TextProBar/venv/bin/easy_install-3.6 | 2463228846066737e91dd9b7d86ad2c53622a5de | [] | no_license | Gsynf/PythonProject | 6d136a1176289e7d42c4ed25b9b6d4f515fe01d0 | e55718c3c998f66ba0e2c78c088ef702aeefa532 | refs/heads/master | 2020-05-07T09:04:25.514202 | 2019-07-15T02:35:15 | 2019-07-15T02:35:15 | 180,360,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | 6 | #!/home/hpf/Github/PythonProject/TextProBar/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"18813058359@163.com"
] | 18813058359@163.com |
ee21abe9473df4f697c4c35008a71d5492ec1e20 | 93a1cad9a151d81095d52b70e6e0d7915acc321d | /app.py | b7efa7ce61f897e09bdb7d56a26f7764de95fd48 | [] | permissive | urozaev/backend | a5bbd1085656d8d5acd5d23753ed88bc6ed12927 | cee64ad901dc2b5988bf00ab7522b7d18cc31ff1 | refs/heads/master | 2022-05-03T23:00:04.060291 | 2020-02-05T14:28:04 | 2020-02-05T14:28:04 | 237,781,948 | 0 | 0 | MIT | 2020-02-02T14:21:02 | 2020-02-02T14:17:49 | Shell | UTF-8 | Python | false | false | 2,691 | py | import falcon
from falcon_cors import CORS
from waitress import serve
from models import *
from playhouse.shortcuts import model_to_dict
import json
from falcon.http_status import HTTPStatus
class HandleCORS(object):
def process_request(self, req, resp):
resp.set_header('Access-Control-Allow-Origin', '*')
... | [
"maxim.urozaev@gmail.com"
] | maxim.urozaev@gmail.com |
cd16a430fbaf62b44403dc0685a102926a73680f | 705f4a795cf8bbe5418557e4bafd2359fb861a68 | /src/pyprofile/profiler.py | dfc3aed53c09c15657ba6cc1ad0075cccc946d78 | [
"MIT"
] | permissive | anudeepsamaiya/pyprofile | 71c5c8fdb77887895a6ed08098a0580aade283a5 | 497e57a44340ecee148699940b1f3530874c2a2a | refs/heads/master | 2023-02-18T19:32:57.804142 | 2022-06-15T17:46:58 | 2022-06-15T17:46:58 | 230,414,886 | 4 | 1 | MIT | 2023-02-08T00:55:23 | 2019-12-27T09:34:22 | Python | UTF-8 | Python | false | false | 4,045 | py | """Simple cProfile based python profiler.
"""
import cProfile
import functools
import inspect
import pstats
from datetime import datetime
from io import StringIO
from gprof2dot import (
TEMPERATURE_COLORMAP,
TIME_RATIO,
TOTAL_TIME_RATIO,
DotWriter,
PstatsParser,
)
__all__ = [
"profile",
"... | [
"anudeepsamaiya@gmail.com"
] | anudeepsamaiya@gmail.com |
2bf917c7dfd6dca05d98a4c20051220f8b8228cb | a2367682417bb60de5874e86e924173ec986746b | /open-ai-gym-study/breakout/sample.py | 7a50ea3be7acb285b662ef48fa16c5ef0eaf56d5 | [] | no_license | ampcpmgp/weekly-report | 05f5bee86bec0a70ab071b73ec076c7010de33e8 | dbe0f0528a356cc19898f98008f539401867e25a | refs/heads/master | 2022-10-11T20:55:39.470074 | 2021-01-24T08:46:34 | 2021-01-24T08:46:34 | 141,883,833 | 7 | 0 | null | 2022-10-05T13:56:01 | 2018-07-22T09:49:56 | JavaScript | UTF-8 | Python | false | false | 5,047 | py | # 参考ソース: https://github.com/vy007vikas/OpenAI-Gym-Solutions/blob/master/Atari/breakout.py
import gym
import numpy as np
import random
from scipy import misc
import tensorflow as tf
env = gym.make('Breakout-v0')
observation = env.reset()
EPISODES = 20000
TIMESTAMP = 2000
GAMMA = 0.99
ALPHA = 0.005
explore_eps = 0.2
N... | [
"noreply@github.com"
] | noreply@github.com |
942c5caee60c986c7ecec451238c5f1b68ef57e0 | 08c1ab343ce0a7dde54b7cc765a8d46291875bd7 | /PeriodicChecker/src/PeriodicChecker/tasks/sqlite_storage.py | 9d81f8ea983f5a2bc7838ba5a76447f32935415b | [] | no_license | cegorah/simple_periodic_checker | b930549c3f8bbed8b5301ded436d67e617229cb8 | 69b5b7eaa25e0560236a193a2450b1f6e2b308e5 | refs/heads/master | 2023-03-30T10:28:41.095908 | 2021-04-07T02:04:16 | 2021-04-07T02:04:16 | 355,383,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | import pickle
import aiosqlite
from typing import Dict
from sqlite3 import Binary
from PeriodicChecker.tasks.task_storage_interface import TaskStorageInterface, TaskInterface
class SqliteKeeper(TaskStorageInterface):
def __init__(self, storage_path: str):
self.storage_path = storage_path
async def i... | [
"a.harinskiy@firstdedic.ru"
] | a.harinskiy@firstdedic.ru |
94353924f5f858404b46c6afa7fa1325abd04230 | 745e25309d7f0ec93e1a7a94ebf3573247dc21d5 | /ribbon_bk/__init__.py | 359fc89a754512db232da67021e93e9bedc5b4b1 | [] | no_license | dionisiotorres/customs | e7c00bc9cd92e9e8662c24918a0a9731ea1b749b | 320ee8a57838d0c1e7b7d63b5664a9ae7ba306a5 | refs/heads/master | 2022-12-01T21:32:53.041422 | 2020-04-03T14:31:53 | 2020-04-03T14:31:53 | 288,824,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
# Part of eagle. See LICENSE file for full copyright and licensing details.
from . import controllers
from . import models
# from . import reports
from . import wizards
| [
"dmashraf@gmail.com"
] | dmashraf@gmail.com |
96e0a4509348fe07dfcd6aaf9e8734e2926705dd | 1d5bb00a38ab58dfdcda0103c1a3a035253d664f | /mmoproject/mmoproject/wsgi.py | 5678964468d8db1c53b7829addf0747f68ac5c30 | [] | no_license | raghavw29/341Project | 915741cc75509bc62873cb32f6864936055f1670 | 6e8730e5ff7705d906e6817d0af02cc30a18a9b8 | refs/heads/master | 2021-05-06T20:01:54.376960 | 2017-12-09T04:34:19 | 2017-12-09T04:34:19 | 112,258,225 | 0 | 0 | null | 2017-12-09T04:28:19 | 2017-11-27T22:53:03 | Python | UTF-8 | Python | false | false | 398 | py | """
WSGI config for mmoproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"kmr117@case.edu"
] | kmr117@case.edu |
d247e69e2008ceb52000bf94a9c402b65030dfbb | c84cee1abce6372a71314d28ca6a8681a6ad5cb5 | /chat/forms.py | adc3810f9a97a850edc84266b4d97bcd84337a87 | [] | no_license | SergeyLebidko/ChannelsTraining | 441477a14c6fe424ea11ba2e05aac0fef90151bc | 845a9b27f1d0bdb9424407c68e5051ec06d06cc9 | refs/heads/master | 2023-06-09T09:32:21.049921 | 2021-06-22T13:42:44 | 2021-06-22T13:42:44 | 376,584,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django import forms
from django.core.exceptions import ValidationError
from django.contrib.auth.models import User
from django.contrib.auth.password_validation import validate_password
class RegisterForm(forms.Form):
username = forms.CharField(label='Имя пользователя', required=True)
password = forms.Cha... | [
"it.sergeyler@mail.ru"
] | it.sergeyler@mail.ru |
f663670f5f82ea1f3d7c127fa64f174c7b0a1821 | 859937e2c1b2698e5a2bdd631a5df77c3204410c | /mybtc/mybtc1/mycoin/mine.py | 64ff6c9d1674d666ec96a7631e0396a9c3471fe7 | [] | no_license | takagotch/btc | dcd218f1aaebc3991e4265a94bde1580c02ea482 | a8fa6e14670fbd429e699c364a3f09adb05de837 | refs/heads/master | 2021-06-07T19:25:17.583933 | 2020-04-15T04:49:07 | 2020-04-15T04:49:07 | 115,355,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | import base58
import ecdsa
import filelock
import hashlib
import json
import re
import sys
DIFFICULTY = 4
VERBOSE = False
if len(sys.argv) != 2 and len(sys.argv) != 3:
print('usage:', sys.argv[0], 'public-key verbose')
exit()
if len(sys.argv) == 3 and sys.argv[2] =='verbose':
VERBOSE = True
public_key =... | [
"dyaccb@gmail.com"
] | dyaccb@gmail.com |
940cd6ace136a91b086db609352705ba1a0764ca | ecec7ad9fba07ed07bf94dc0a3d99de6378ba2ee | /Examples/spiral1.py | 381938345c43ef0327e1bd2fd2538f2e5dea95b7 | [] | no_license | wingkitlee/ASIAASummerSchool2014 | a89122c5b74cc31625d376908208de7f0ec3182f | 554b1ea16307ec7200deae93c7980b9e9c213aef | refs/heads/master | 2020-12-24T14:17:41.499695 | 2014-07-14T21:05:24 | 2014-07-14T21:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from numpy import *
import pylab
rl = linspace(0.1,1,20,endpoint=True)
tl = linspace(0.0,2.0*pi,100,endpoint=True)
fig = pylab.figure()
ax = fig.add_subplot(111)
for r in rl:
phase = r*pi # for systematic phase shift
# phase = 0.0 # for no phase shift
print phase
xl = r*cos(tl)
... | [
"wklee@asiaa.sinica.edu.tw"
] | wklee@asiaa.sinica.edu.tw |
fa450b8dd468d64982a36cc5058676a5b785a191 | 604b97a8333b0b0d8e60072cd52e53114fab2488 | /chapter5/exercise3.py | 5aff0131e77404642fc15e31c593f33358fb1e81 | [] | no_license | avmak/simple-python | 04426ce621fa68b52ea95316446d5d0e7b849fc0 | a9ee4e11fb537e4da671f54793544abdc0d23bcb | refs/heads/master | 2020-04-03T09:57:59.422103 | 2016-12-19T12:09:04 | 2016-12-19T12:09:04 | 69,583,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | # first file zoo.py
def hours():
print(' Open 9-5 daily')
# second file or interpretator
from zoo import hours
hours()
| [
"al3x.mak.89@gmail.com"
] | al3x.mak.89@gmail.com |
9b493bd955e67b2f2db6f2fb3de2d85cee340235 | e6d117c7fc13ed3ada47e16e4550e7d4fda14b5a | /timber.py | 858e2e0bf43293bb1a0fe12a22389fed07f7c811 | [] | no_license | mdornseif/timber | 94837545d118859fa96516f5880dd8a4772d5f97 | fec7ea77190602f169098c8e8d03bcba149f3134 | refs/heads/master | 2021-12-28T12:08:00.403201 | 2002-10-26T08:03:36 | 2002-10-26T08:03:36 | 474,245 | 0 | 0 | null | 2021-12-17T18:05:10 | 2010-01-15T21:55:37 | Python | UTF-8 | Python | false | false | 3,714 | py | #!/sw/bin/python -*- Mode: Python; tab-width: 4 -*-
'''timber - a DoS tool
see http://md.hudora.de/presentationss/digidemo/ - communicating
slowly for further enlightment. --drt@un.bewaff.net - http://c0re.jp/
'''
# number of concurrent querys this might be limited by your OS
# Win 95: 55, Linux 2.0: 245, Linux 2... | [
"drt@2d70b15c-62de-0310-b45c-a2b26695ab02"
] | drt@2d70b15c-62de-0310-b45c-a2b26695ab02 |
c64e0ee69e8c8244e34e9afa1003170dc8232f5c | 233a4850ffc5ca2a8a090d84e9cfdb95b59e4060 | /setup.py | 38df1165794605b5b4e35d2216f9ec62cdc3fe0e | [
"MIT"
] | permissive | network-box/tgldapid | 44d17a0f6137ebec7357248892f9fa69e9e99bd7 | bb16bb6e60a24cc56a53fc5222203c3031b5e07f | refs/heads/master | 2020-12-30T09:26:16.526155 | 2014-01-23T09:53:39 | 2014-01-23T09:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | from setuptools import setup, find_packages
from turbogears.finddata import find_package_data
packages=find_packages()
package_data = find_package_data(where='tgldapid', package='tgldapid')
setup(name="tgldapid",
version="1.0",
description="A TurboGeard LDAP identity provider",
author="Mathieu Brid... | [
"bochecha@fedoraproject.org"
] | bochecha@fedoraproject.org |
7997978962821fe9981f1e5e1415740d920bddbb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ENJTPoWCyEGgnXYjM_7.py | 6804f1adebe40875f04f9577628db7907b57414a | [] | 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 | 1,060 | py | """
Create a function that calculates what percentage of the box is filled in.
Give your answer as a string percentage rounded to the nearest integer.
### Examples
percent_filled([
"####",
"# #",
"#o #",
"####"
]) ➞ "25%"
# One element out of four spaces.
percent_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a099fa467b284e976807fdab9182b72decc95bd8 | 7c69ceb878d93f4597cd5efcc8b5ab928cc08271 | /Google - Carrotland.py | b8d16d19c342252167a557fef2e099342d2beb82 | [] | no_license | iiLaurens/ProgrammingProblems | 5ad98685ea69734636f003fba9503b1735f83802 | e28e68c8a7710967de797e586e3c8383b60d68aa | refs/heads/master | 2021-06-04T23:01:46.440616 | 2016-09-18T19:15:06 | 2016-09-18T19:15:06 | 52,192,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,227 | py | """
Carrotland
==========
The rabbits are free at last, free from that horrible zombie science experiment.
They need a happy, safe home, where they can recover.
You have a dream, a dream of carrots, lots of carrots, planted in neat rows and
columns! But first, you need some land. And the only person who's selling l... | [
"noreply@github.com"
] | noreply@github.com |
2fd4739cd3e18754abe97d5875a5f79dabf867d0 | 62e321fe95d68223ce17dca973b776d996ed9df9 | /jplag_catcher/migrations/0001_initial.py | 011348d313cfe1db9e9047ae53afb1536b7f85cc | [
"MIT"
] | permissive | tustunkok/copy-catcher | 338dee28efe5ef496936ff25bb44a41cab6b372a | 81d6b50f687c65ad83369af2b4675e5f88115a94 | refs/heads/master | 2023-02-27T10:28:01.733795 | 2021-02-04T22:59:33 | 2021-02-04T22:59:33 | 333,360,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # Generated by Django 3.1.5 on 2021-01-26 19:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='History',
fields=[
('id', models.AutoField(... | [
"tolgaustunkok@gmail.com"
] | tolgaustunkok@gmail.com |
13eaa8050c6e33e80136be163ebc2a91cbf19196 | c4481c910c7b83aa5ce445aba1a680fe04750c13 | /dataset/dataloader.py | 0a86405b509e3fb67a9f920fc6d27b0e13a07d8a | [] | no_license | runauto/pse-lite.pytorch | 03a8c228bcc76fb095438408478a755b780b0b8a | 8663f8c3b8b6b629f45f10d17799e7c8c02f55cb | refs/heads/master | 2022-11-14T05:54:15.298472 | 2020-06-24T13:49:58 | 2020-06-24T13:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | #-*- coding:utf-8 _*-
"""
@author:fxw
@file: dataloader.py
@time: 2020/06/17
"""
#-*- coding:utf-8 _*-
"""
@author:fxw
@file: dataload.py
@time: 2020/04/28
"""
import numpy as np
from PIL import Image
from torch.utils import data
import glob
import cv2
import random
import os
import torchvision.transforms as transforms... | [
"15671628547@163.COM"
] | 15671628547@163.COM |
55842f647eb61b495f62ad967da0556dcdb542c7 | de4828eae2b4af9c0233f1717b53e892ac57b30d | /time_tool.py | 6ccb67c863c67051cb7b19de7d0c72c7962f4efc | [] | no_license | xcc19891/fs-timing | 5f3ce422279eb885ffaa45b6bc5a44ba19cb504d | a1b79e44df63c4a242fb882a4a4c4fcb3906cf47 | refs/heads/main | 2023-03-26T01:32:59.566255 | 2021-03-25T22:16:29 | 2021-03-25T22:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,188 | py | #time_tool.py
import time
from pylab import *
import watchdog
from psp.Pv import Pv
import sys
import random # random number generator for secondary calibration
from scipy.optimize import leastsq # for secondary calibration
class time_tool():
def __init__ (self, sys='NULL'):
if sys == 'XPP': # set up xp... | [
"operations@cohlysion.net"
] | operations@cohlysion.net |
543a4f1d23404066f164eb70f02368bcc17fb280 | 3a917fdbed57d06c6972a28f6619b08e143ab574 | /py/202211/213.打家劫舍-ii.py | b904fac07afb986844ca6fafcb3e6b64b4773412 | [] | no_license | qtdwzAdam/leet_code | 8ae2552f93c8c7832a00635de8e2ee3f9fb00865 | e6a3e0f11bb9f054711109462ceb3d083825ea66 | refs/heads/master | 2022-12-14T23:44:18.985609 | 2022-12-07T07:23:58 | 2022-12-07T07:23:58 | 83,564,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | #
# @lc app=leetcode.cn id=213 lang=python
#
# [213] 打家劫舍 II
#
# @lc code=start
class Solution(object):
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
len_cnt = len(nums)
if len_cnt < 4:
return max(nums)
dp_table = [-1] * len_cnt
... | [
"woshiduwangze@163.com"
] | woshiduwangze@163.com |
37539912a89b349cec5dd992f3d870809c5ee56c | 5b62b5d02e6b108672236d3d519b88dd2a2acdbf | /webapp/settings.py | 424ed81bd88c537be3d67bfa0a508c530a3f5a04 | [] | no_license | tuannguyencorei7/Car-Recognition-webapp | 6f86b3ffa38aea082fed9e740b8c6c7429a70f39 | 6fa20b0c2e90203106253dbefe9f2f039c9771a6 | refs/heads/main | 2023-06-16T16:27:40.278670 | 2021-07-14T03:32:59 | 2021-07-14T03:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | """
Django settings for webapp project.
Generated by 'django-admin startproject' using Django 3.2.5.
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
from... | [
"tuannguyencorei7@gmail.com"
] | tuannguyencorei7@gmail.com |
62fb1ffa197f4e7747aca08dfba2c2a73f3f2ed7 | a9adecfcd29b1abb01f1aefe802532987afee0bb | /PREPdens.py | 4fbfc824889d5427ed98e9c82a2bdf3afa0e7a7a | [] | no_license | LABclimate/MT | dbbd8b3912743a824452d9652bb092877de60010 | bf8c3a399a43b1235e89f6c86675a7b3ce4b4aff | refs/heads/master | 2021-01-16T23:54:34.323521 | 2016-12-14T17:44:24 | 2016-12-14T17:44:24 | 59,574,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,295 | py | # preparation of all dens-conversions
import numpy as np
import gsw
from netCDF4 import Dataset
import xarray as xr
import pickle
import matplotlib.pyplot as plt
import time
import sys
sys.path.append('/home/buerki/Documents/MT/scripts/')
import CESM_utils_mask as utils_mask
import CESM_utils_plt as utils_plt
import... | [
"buerki@climate.unibe.ch"
] | buerki@climate.unibe.ch |
b8510d4d9edae813966c735b60d52af9a5b4ed61 | 1a527f9e3bb29fb1aa188ce851592afffdb66c9d | /enclave_manager/avalon_enclave_manager/graphene/graphene_enclave_info.py | 3b98c993c3d47c577162ae9532d515ce127965d7 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"Zlib",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | stephmackenz/avalon | 417e44785c3fbef8bbc1881590580d71b8f7c195 | 8afeab63a04b681bc44c66e807e70c27c8f1e589 | refs/heads/master | 2022-11-30T12:38:37.458733 | 2020-08-11T02:56:05 | 2020-08-11T02:58:13 | 278,161,584 | 1 | 0 | Apache-2.0 | 2020-07-08T18:11:08 | 2020-07-08T18:11:07 | null | UTF-8 | Python | false | false | 1,551 | py | # Copyright 2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"manoj.gopalakrishnan@intel.com"
] | manoj.gopalakrishnan@intel.com |
fcc6dd1a130ab6e029b93d4fc4817945531da42e | 24a2a532f288c8d7ce9a230b7aefa80121929671 | /python/2016/sorting/mergeSort.py | 49412b8968d5eceb4b2d5ddaf65531658baf01a7 | [] | no_license | sonalirahagude/CodingPractice | 5156f2741064c458b8198a6615bf48def01d3260 | 6ef1ee8f78e6d38f38919d61e8a56e1cc7578b5c | refs/heads/master | 2020-12-24T16:16:41.915686 | 2016-10-13T02:47:45 | 2016-10-13T02:47:45 | 24,384,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #! /usr/bin/python
def mergeSort(A,i,j):
if j <= i:
return
mid = (i + j)/2
mergeSort(A,i,mid)
mergeSort(A,mid+1,j)
merge(A,i,mid,j);
def merge(A, i, m, j):
L = [0]*(m-i + 1)
R = [0]*(j-(m+1) + 1)
st = 0
while (st < m -i+1):
L[st] = A[i+st]
st += 1
st = 0
while ( st < j -m):
R[st] = A[m+1+st]
s... | [
"sonalirahagude@gmail.com"
] | sonalirahagude@gmail.com |
91d8dc9cb2b95ee091580cbe4da673fa4fb4185c | 9c36503027aa6fc2fa2f841d60f70f2697ae60be | /pygraphc/similarity/LogTextSimilarity.py | 59263ee4a8088fff29f3a4c0e97edc18e48e95c9 | [
"MIT"
] | permissive | studiawan/pygraphc | bd5517478a6e1ad04220c13fa9f7aea6546225ac | 436aca13cfbb97e7543da61d38c8462da64343b5 | refs/heads/master | 2021-01-23T21:29:41.151025 | 2018-05-17T07:54:54 | 2018-05-17T07:54:54 | 58,362,965 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | from pygraphc.preprocess.PreprocessLog import PreprocessLog
from pygraphc.similarity.StringSimilarity import StringSimilarity
from itertools import combinations
import csv
import multiprocessing
class LogTextSimilarity(object):
"""A class for calculating cosine similarity between a log pair. This class is intende... | [
"studiawan@gmail.com"
] | studiawan@gmail.com |
76b17a7fb0ca16a61b1feb82eb495b0ae9188bbe | 6707bb54c81e9ec4f92181a3a2c13399c8000ce1 | /Final-Security-Project/client.py | 8f65a5d1d321fe87a0fdb7f874d375f05ea592b8 | [
"MIT"
] | permissive | MohamedMedhat96/Final-Security-Project | cb298c4dc8cbe643a8369af4bee170cc2bbb78d6 | 1a2b4f35469ca2c18e44fdf12e066b1e16d312fd | refs/heads/master | 2020-05-18T21:17:52.177431 | 2019-05-11T22:44:25 | 2019-05-11T22:44:25 | 184,656,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,789 | py | import socket, io
import time
import select
import queue
import sys,os
from Crypto.PublicKey import RSA
from Crypto.Random import get_random_bytes
from Crypto.Cipher import AES, PKCS1_OAEP
import PIL.Image as Image
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
from gui import *
import psycopg2
import... | [
"mohamed.medhat-ali@student.guc.edu.eg"
] | mohamed.medhat-ali@student.guc.edu.eg |
c9fca65f0f87018fbee51703ebacf70670b50101 | d78d9da9f0f64bedf42c2349f096286a032a6892 | /test.py | 7e278248a21bd7b54f542c04ca443b7c0c1ddc14 | [] | no_license | lhz870665934/server-test | 8680e6df9c0c4878b817a64c1460f71f94105007 | e9bae869beecadb684b397e0b74d6c8987720546 | refs/heads/master | 2021-08-30T16:23:54.532483 | 2017-12-18T16:30:33 | 2017-12-18T16:30:33 | 114,662,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | import socket, netstream, random, time, multiprocessing
connected = False
sock = None
serialID = 0 #server向客户端发回的序列ID号
isSet = False
def get_send_data():
send_data = {}
send_data['sid'] = serialID
return send_data
#向server请求公告
def request_notice():
send_data = get_send_data()
send_da... | [
"870665934@qq.com"
] | 870665934@qq.com |
142f8bb7cdf2120af359d9d9a515bd759456e590 | a63671832033562d7bb9c017707cfdb5e50c0aa6 | /retina_vgg/train_retina_vgg.py | f2de915f60c5427ba81193704fe333df541670c9 | [] | no_license | tzler/modern_prometheus | 2d5f9d9cab36d22073aa1d9fd9fa812ba1e311e3 | 86b06057c9211d77456cd94bc6c5104ff484e6d2 | refs/heads/master | 2021-08-30T20:34:41.403507 | 2017-12-19T10:20:27 | 2017-12-19T10:20:27 | 114,233,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,489 | py | """
runs retinal models ofvgg16 on imagenet.
"""
import copy
import os
import numpy as np
import tensorflow as tf
from tfutils import base, data, model, optimizer, utils
from dataprovider import ImageNetDataProvider
# specific to final project
from vgg_retina_model import retina_vgg
database_name = 'deep_retina'
co... | [
"tyler.ray.bonnen@gmail.com"
] | tyler.ray.bonnen@gmail.com |
b7b79b8c36d18d972a46f2208026d965dae2afbd | 09cead98874a64d55b9e5c84b369d3523c890442 | /py210110d_python3a/day10_210314/homework/stem1403a_hw_9_0307_KevinLiu.py | b6e041e3e82b381854c864f058043ff9a5dc02eb | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | """
Date: 2021-03-08
1. Write a GUI program of clock
Requirements:
(Function)
Show current time in the pattern of HH:mm:ss.aaa
i.e.
10:12:45.369
(UI)
Display a title, main area for clock, and footer for the date
Due date: by the end of next Friday
Hint:
import datetime
strftime
"""
"""
score:
perfect
"""
# tkinter m... | [
"lada314@gmail.com"
] | lada314@gmail.com |
ea162b2a3c5b84a90e41bc9b7fb95be334a0185f | 9a62d8436ebdf16e8f00453fc45bb9274f9119ef | /bokeh/bokehVirtual/bin/jsonschema | 2cf5b9c90371c2dc5731dc45a8301e557f61b27a | [] | no_license | Saikat2019/Python3 | 895b3398eae93709e976e040d2bca19cefc62c77 | 2125765385e38a960e4da95c29a9656e6dc0ab41 | refs/heads/master | 2020-03-23T15:24:56.739681 | 2018-09-02T05:11:44 | 2018-09-02T05:11:44 | 141,746,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/home/saikat/Documents/python3/bokeh/bokehVirtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jsonschema.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mad.sm.productions.com"
] | mad.sm.productions.com | |
f550baafd2dec5f8820093ff097b7363e1d33740 | dabb5795dbe1dfeb4071197a8c9c806df4de5462 | /sheets.py | 57a2902f6c8a428d92213abf7e541e4758ade445 | [] | no_license | woskar/automation | c84be385c1de4b2c44fde0461f687235d7c04afe | 2dfc6d9e737d39244e5b0cc5b4833b7adac35ed2 | refs/heads/master | 2021-01-19T08:33:23.975526 | 2017-11-22T22:36:51 | 2017-11-22T22:36:51 | 87,645,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | ''' script to download music sheets '''
import requests, os, bs4, threading
os.makedirs('noten', exist_ok=True)
import time, os, requests
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
url = ''
location = ''
browser = webdriver.Firefox()
browser.get(url)
zettels = browser.find_elem... | [
"oskar.weinfurtner@icloud.com"
] | oskar.weinfurtner@icloud.com |
ca592bb99a1866b3bd5f87d00cf9884fb0e2e036 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /nncf/torch/dynamic_graph/operation_address.py | f9fe1e55d976d86a8bab71816c910f10257af01d | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 1,715 | py | """
Copyright (c) 2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"noreply@github.com"
] | noreply@github.com |
31e3f5998fd133208c381a13a7c424aaa849da72 | 94273652a8b7f0a818502745704218bee44901cd | /Week4/get_random_kmer_from_dna.py | 0c825ddee92a5ad75d9ad110331339611b8a1258 | [
"MIT"
] | permissive | arvinddoraiswamy/mybioinfo | a6afceaf2fb0decc049bb0f08b7dfdccb23599e2 | e964fa20f1bdea06d2ef26f6ea8ad57847985929 | refs/heads/master | 2020-05-22T02:46:29.412490 | 2018-09-16T21:03:34 | 2018-09-16T21:03:34 | 65,585,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import sys
import os
#Adding directory to the path where Python searches for modules
module_folder = os.path.dirname('/opt/Courses/TechCourses/Bioinformatics/code/')
sys.path.insert(0, module_folder)
#Importing genemanipulating module. This has a lot of common functions.
import genemanip
if __name__ == "__main__":
... | [
"arvind.doraiswamy@gmail.com"
] | arvind.doraiswamy@gmail.com |
aa0f59f38a582475a55c56c36a78be79bab75599 | fe203d5c28e2010cdc78a4b29755e148d58045db | /p02/q07_miles_to_kilometres.py | 1e02355748970bfbdec15c9a409bb1cc807d34ef | [] | no_license | sp0002/cp2019 | d2a9aa5bfe7c82de3ed3f96f281c39be8704d3bd | 6c48528f948dad01f4d6571e3bb22dbf253c423c | refs/heads/master | 2020-04-24T23:24:21.324069 | 2019-04-13T11:13:01 | 2019-04-13T11:13:01 | 171,574,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | print("Miles Kilometers Kilometres Miles")
for i in range(10):
print(str(i+1) + (" "*(6-len(str(i+1)))) + "{:.3f}".format(round(((i+1)*1.60934), 3)) +
(" "*(11-len(str(round(((i+1)*1.60934), 3))))) + str(i*5+20) +
(" "*(11-len(str(i*5+20))) + "{:.3f}".format(round((i*5+20)/1.60934, 3)))) | [
"k"
] | k |
0ed0a470b8e20c51b15783399801293e4c38342f | 8fa1999cb8a973937d6629c553feca60dd3a73d7 | /Atividade E/fabio01_q06.py | 2f76792ccd7c7f87b12dc795ab7900fe3e71545e | [] | no_license | Isaias301/IFPI-ads2018.1 | 16cddbb278336a3e06738f9dc21d2d11053dcec4 | 026fe5c2ffbc8aed55c478b7544472c46b357e69 | refs/heads/master | 2020-03-22T20:15:13.789014 | 2018-08-09T03:14:48 | 2018-08-09T03:14:48 | 140,585,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """ Questão: Lista E 06
Descrição: Leia uma velocidade em km/h, calcule e escreva esta velocidade em m/s.
"""
def main():
# entrada
velocidade_em_km = float(input("Digite uma uma velocidade em Km/h: "))
# calculos, operacoes, processamento
velocidade_em_ms = velocidade_em_km * 3.6
# saida
print('Resultado: %... | [
"isaiassantana301@gmail.com"
] | isaiassantana301@gmail.com |
7ee32d8de3ee7f0fa4f59138e0e602a5cc31b513 | faa8b1645691ac6fa9d61f3cb73c2d86e7f507f4 | /favorite song.py | c1b55fd1c60b1eb3fcd2d7149aa51e133e087a08 | [] | no_license | Lu314/favorite-song | ffef6645a5acbc681c49d79cdd7b594cc524d9fa | 9fca5611a170548ad71d711b4315162d02f28447 | refs/heads/main | 2023-01-31T19:58:24.135260 | 2020-12-12T18:56:38 | 2020-12-12T18:56:38 | 320,902,198 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | """
Song selected for favorite song assignment - dead presidents II by Jay Z
"""
#Attributes: genre, name, artist, released, recorded, label, songwriter, producers, DurationInSeconds, sample, certification
genre = "Rap"
name = "Dead Presidents Two"
artist = "Jay Z"
released = "1996"
recorded ="1995"
labe... | [
"noreply@github.com"
] | noreply@github.com |
c633a2bd1b9aef99b5c5fb278198a62d1ce1eade | be38f7e54587aac1b618d8e0c804dc5d2e37515b | /comments/migrations/0019_auto_20210223_1432.py | 654a93303febea3efa531e1d5d2536676456123c | [] | no_license | ydmlife/HelloDjango-blog-ydm | 7bd6e1ca539f1e03e1c7c5f1583f5eebd1399e9d | a93eefebb38ad3a8ab96fe99d855c2a3a96fdfef | refs/heads/main | 2023-03-07T11:46:12.422855 | 2021-02-25T02:13:09 | 2021-02-25T02:13:09 | 333,000,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.18 on 2021-02-23 06:32
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('comments', '0018_auto_20210223_1429'),
]
operations = [
migrations.AlterField(
... | [
"249405097@qq.com"
] | 249405097@qq.com |
2a441c0c95038ab8c333ab34fc45ff78b3a8f069 | 802f8cdf50a27dc962c0e926c4002533153c66a5 | /testsite/landing/apps.py | 95b76621f13c30ffef4fabc5d0673d377432fe76 | [] | no_license | avan989/django-apprenticeship- | d165fb2657ad1796326c69158fcf14e1f2792ca1 | 084842036eb5700d9376af887054a48af50c5787 | refs/heads/master | 2022-08-14T08:08:16.780627 | 2020-05-28T19:52:53 | 2020-05-28T19:52:53 | 264,060,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class HomepageConfig(AppConfig):
name = 'landing'
| [
"avan989@yahoo.com"
] | avan989@yahoo.com |
85498f6750b49ac59b66d7e9d9dc6f8569fe6002 | 39d4100d6361c1bfeb7cfaec489a5aa6fded738e | /blitterbike.py | cd3bb4f5d0e22787b0c0caf4984de60aed1b95a7 | [] | no_license | cdelargy/BlitterBike | ab8f5aed0bd11329d94391e234ee2528ce481a61 | 7d20eeaad06c1c24343d5d424b81238b432099d9 | refs/heads/master | 2020-12-25T12:47:14.059223 | 2012-05-16T00:46:52 | 2012-05-16T00:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | #!/usr/bin/env python
import sys, time
import socket
import atexit
import spi
import Image
from signal import signal, SIGTERM
from daemon import Daemon
HOST = '' # Symbolic name meaning all available interfaces
PORT = 31337
FPS = 30
GAMMA_TABLE = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... | [
"bhall@automatastudios.com"
] | bhall@automatastudios.com |
a4c192f4832cc23ab29fe8230ebd0a627dbbb017 | 81b7529556891d7649370dad0dc14127ee8bf5f6 | /chapter03/24.py | d9b90b9307cf1e037e0dfd4a1eea2581ab04f59d | [] | no_license | nagatea/NLP100knock | 4c492871cb21c1fc19f58371b0ae7133a6b81bf2 | 1bb463e1deadae43903a6a9281bdc76b61583ce0 | refs/heads/master | 2020-05-03T02:02:22.764581 | 2019-05-23T13:03:59 | 2019-05-23T13:03:59 | 178,356,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #%% [markdown]
# ## 24. ファイル参照の抽出
# 記事から参照されているメディアファイルをすべて抜き出せ.
# ### 方針
# * `ファイル.+\.[jpg|JPG].+`
#%%
import re
import common03
data = common03.get_uk_data()['text']
regex = r'ファイル:(.+\.(jpg|JPG))'
pattern = re.compile(regex)
for match in pattern.finditer(data):
print(match.group(1))
#%%
| [
"cheesecakebot@yahoo.co.jp"
] | cheesecakebot@yahoo.co.jp |
ab5471c75c6c041b34bcf6f37ca857e2ef125352 | 95fb15393e2ee41ccd7a449f1efde2fcf3b0b358 | /main.py | 8f9a6ef059454533b0bdaa39030ea04667fecfb1 | [] | no_license | ivanblinov2k17/friends_reccomendations_cursach | e16a9e78d143a865415cb14b6d5b683545d0b066 | fc434864cb45ba0fcd7bcf186b2f73735c772bea | refs/heads/master | 2022-09-29T01:36:51.418209 | 2020-06-06T13:27:41 | 2020-06-06T13:27:41 | 269,977,271 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | import requests
import json
import time
import networkx
import collections
import re
import numpy as np
import vk
def getFFs(friends):
cnt = 0
members = []
while cnt < friends['count']:
code = '''
var friends = ''' + str(friends['items']) + ''';
var members = [];
... | [
"ivanblinov2015@mail.ru"
] | ivanblinov2015@mail.ru |
d236d7d3e9a7129d63f638cbc9783f3c492f0261 | 92ad257d1a1af0d3337d1c475be01c817b425e15 | /clients/docker/__init__.py | c8bf61da6681eae852b16ec5a8b32b090d76984e | [
"MIT"
] | permissive | orchestrapi/orchestrapi | 1aaec6767d5a2efeaf491ce5ab035edcea2626eb | 575e66a86c42b5c249fd943bb5f40c8c310139aa | refs/heads/master | 2022-12-11T19:04:15.488144 | 2021-07-05T19:34:15 | 2021-07-05T19:34:15 | 153,327,940 | 3 | 1 | MIT | 2022-12-08T05:46:00 | 2018-10-16T17:39:34 | Python | UTF-8 | Python | false | false | 524 | py | """Docker client module."""
import subprocess
import docker
from .containers import DockerContainerMixin
from .networks import DockerNetworksMixin
from .images import DockerImagesMixin
class DockerClient(DockerContainerMixin, DockerNetworksMixin, DockerImagesMixin):
"""Special client for docker commands."""
... | [
"keoh77@gmail.com"
] | keoh77@gmail.com |
3ef3d85d299dec52664d9fec93a4f18a50927c07 | f30187d4f61c2719e9904d369a11880e5f218d7b | /DatapreprocessingWithNotes.py | bfc50f32732f8395517940ddba3b042c492fc050 | [] | no_license | Ketaki2/ML | 8b9b29d84e0089f4908fd6515df443b9f30d99df | 241c183678c527224f980fc31ac7fc96fce563c0 | refs/heads/master | 2020-07-22T09:31:20.024428 | 2019-09-08T18:50:47 | 2019-09-08T18:50:47 | 207,151,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 15 14:41:10 2018
@author: Ketaki Vaidya
"""
#indexes in python start at 0
#ML models are mathematical models
import numpy as np #for mathematics
import matplotlib.pyplot as plt #charts plotting
import pandas as pd#for importing and managing datasets
dataset... | [
"noreply@github.com"
] | noreply@github.com |
1cee30fd555b8401f472c0542696c8c57b37f775 | 1318a4db4d327692dc8af6f8a83941be842a089b | /redash/app.py | 67eee53bbe75f8bcbf3bd9565469c5ca485ca7bf | [
"BSD-2-Clause"
] | permissive | taxibeat/redash | 43a96ad439189f752f473446dc767e2fc9f00468 | 36aade4f219844a82cfd3c82a98c80003e8bce1e | refs/heads/beat-redash-v10-1-0 | 2022-09-28T01:08:29.956597 | 2022-06-21T12:14:06 | 2022-06-21T12:14:06 | 206,778,926 | 2 | 0 | BSD-2-Clause | 2022-07-11T07:39:35 | 2019-09-06T11:23:58 | Python | UTF-8 | Python | false | false | 1,686 | py | from flask import Flask
from werkzeug.middleware.proxy_fix import ProxyFix
from . import settings
class Redash(Flask):
"""A custom Flask app for Redash"""
def __init__(self, *args, **kwargs):
kwargs.update(
{
"template_folder": settings.FLASK_TEMPLATE_PATH,
... | [
"noreply@github.com"
] | noreply@github.com |
a732f6dcb2b71f38e0b350ced1bf36bb1a6ec030 | 19f96fdd86f1a29f4eec3d18d9e513865f1f512f | /webWork_backup/webflask/test_py3/lib/python3.5/functools.py | 80c2ada1ff51e55ce0ec60727b7ccb3cefc4b5d3 | [] | no_license | Cattmonkey/openWork | e133376eeea3bbf5279f9199b18aa8cf44f21637 | 3e1f21f0c6bce7ec114cc8d6311746c4a2cc426b | refs/heads/master | 2020-03-14T00:58:41.610424 | 2018-05-04T09:59:03 | 2018-05-04T09:59:03 | 131,368,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | /root/anaconda3/lib/python3.5/functools.py | [
"yyxdyx01@163.com"
] | yyxdyx01@163.com |
cdad51f5c22f7a1acdf954745aa1ca7cd922befa | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/network/ptp.py | 27fa36e319f1e78d559dded8881328498c85d2f6 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | #
# Copyright (c) 2008-2019 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
f45a1f0a4bc83ca381d3bb8cbabebd1574a92eea | abf7f7e2d47d22a560359520dcc2834f4c384391 | /assignment3/cs231n/rnn_layers.py | e5ec43b8f56af682c74ea273cdce2dd06deb15db | [] | no_license | YaqianZhang/cs231n_Computer_Vision | 2b7c2b73562dacb7b782b8641301cdfb32006245 | 3d166d6151b47e2fee7eb90cd4612a4aa11f30ee | refs/heads/master | 2022-12-12T11:25:09.783957 | 2020-02-27T07:22:14 | 2020-02-27T07:22:14 | 243,454,025 | 0 | 0 | null | 2022-12-07T23:33:19 | 2020-02-27T07:06:10 | Jupyter Notebook | UTF-8 | Python | false | false | 20,029 | py | import numpy as np
"""
This file defines layer types that are commonly used for recurrent neural
networks.
"""
def rnn_step_forward(x, prev_h, Wx, Wh, b):
"""
Run the forward pass for a single timestep of a vanilla RNN that uses a tanh
activation function.
The input data has dimension D, the hidden state h... | [
"zyqian77@hotmail.com"
] | zyqian77@hotmail.com |
3ed879938793608419bcdcc581f3480b88054110 | 975e8d97133f0b0976eeecaa4f617217d6c826e9 | /smartsec2.py | 60d9440bb1f4e6918e83897f0555212f7df0c379 | [] | no_license | Harclerode95/SmartSecurity | 6cf0fc00f110b3dbee32d8561b06431411190438 | 2fc5c4333cfae22011e8dcbcf5e60a4243ac4770 | refs/heads/master | 2020-03-08T16:36:47.520904 | 2018-04-24T23:24:11 | 2018-04-24T23:24:11 | 128,244,243 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,412 | py | #####################################################################
# SmartSecurity Embedded System Software #
# Team: SmartSecurity #
# Tyler Harclerode, Brandon Lin, Zachary Davoli, Jonathan Griffin #
# CET/CSC Senior Project 2017/2018 ... | [
"noreply@github.com"
] | noreply@github.com |
05b0955fb5451b4b61e02e06f2e7ed854fbb91c2 | 16691764b8e5a464e624d2b73eddbe1e360d1ce8 | /fivepseq/tests/structures/test_fivepseq_counts.py | d34adc2db2f83bf336ebfc889dd098f7a3966163 | [
"BSD-3-Clause"
] | permissive | lilit-nersisyan/fivepseq | d21258a6e4f6a1514aa44f24961cbfdf9ed64546 | 79b171e13a5afbb4f5d6959796664b212496f973 | refs/heads/master | 2023-09-01T15:37:50.527965 | 2023-08-29T08:42:06 | 2023-08-29T08:42:06 | 151,094,382 | 6 | 2 | BSD-3-Clause | 2023-03-20T12:01:48 | 2018-10-01T13:36:09 | Python | UTF-8 | Python | false | false | 18 | py | # TODO add tests
| [
"lilit@rackham3.uppmax.uu.se"
] | lilit@rackham3.uppmax.uu.se |
71de8ab94c91d087323136dda99bddbbcd9ec73f | 73c01a3f052f8ef63890ec3c2e28403ad41e9a71 | /service/migrations/0007_ticket_photo.py | 806039291d087ae7c08ce662cfe1a5f5ce6385fb | [] | no_license | Jokey90/aho | 4c007c65c819efb726a732a8f36067c5a0226100 | 8bcd41e9ef7d40f07499429f385d4fec590636f6 | refs/heads/master | 2020-03-21T22:28:36.395996 | 2018-06-29T09:25:05 | 2018-06-29T09:25:05 | 139,128,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-16 12:57
from __future__ import unicode_literals
from django.db import migrations, models
import service.models.ticket
class Migration(migrations.Migration):
dependencies = [
('service', '0006_auto_20170804_1420'),
]
operations = [... | [
"Kishkurno_AS@dsdf.cds.ru"
] | Kishkurno_AS@dsdf.cds.ru |
71784a81ff80649fd9fe1276d4e4e3c43ba8189a | d34f1fc9dd9a519579b2356cf0f7324201b8da91 | /setup.py | 0c27497faf18ae6b1d62dbb395716be92895eb9d | [
"MIT"
] | permissive | machinelearningdeveloper/stringfox | f12709712dab6fbc6e0ea4d03ecac104b862dd59 | b48c158406fc158704da6e65ee4b55a09192fece | refs/heads/master | 2021-04-18T21:47:23.523330 | 2018-03-24T13:19:30 | 2018-03-24T13:19:30 | 126,601,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['Click>=6.0', ]
setup_requirements =... | [
"tom@machinelearningdeveloper.com"
] | tom@machinelearningdeveloper.com |
728322e9058441a9966baf21b9d0aa1cd4b1530d | 9d7e9eeccac6f9d0c2d544b6ea508f3482037887 | /drf_06/wsgi.py | a7fbfb589d79252ede910a57d0d749193ceb03f7 | [] | no_license | lupeixin/drf_06 | eb12d390e8668f0620ec13d166fd17ba465d9997 | c0c2bd52dde6e890f7656dd6e6308a9b74dc49bd | refs/heads/master | 2022-12-19T21:30:35.525900 | 2020-09-18T09:22:24 | 2020-09-18T09:22:24 | 296,476,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for drf_06 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_SETTIN... | [
"813094269@qq.com"
] | 813094269@qq.com |
5e88d07eb6043f3db7482af06f3f896f424f6639 | fe133c09a9834f35e297b30ae4cdfc8dacf0e576 | /Pd3Pt/Pd3PtH2_geometry_optimization.py | 6cdf03a43e7a1ac87cbf0184e0e6019705290289 | [] | no_license | MaxLenk/Pd_Alloys | 81af803823f7ff9f556995f7e8aacefdfac46d4d | ea04804c710cf913113e27a679e5869c2d45f001 | refs/heads/master | 2021-05-15T07:57:35.484001 | 2017-11-27T19:41:45 | 2017-11-27T19:41:45 | 108,686,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | from ase.io import read
from espresso import espresso
from ase.optimize import QuasiNewton
#f = open('WCl_adsorption/W_geometry_optimization_500_441/energy.txt', 'w')
#f.write('starting') # python will convert \n to os.linesep
Pd3Pt_slab_path = 'Pd_Alloys/Pd3Pt/Pd3PtH2.traj'
output_directory = 'Pd_Alloys/Pd3Pt/Pd3Pt... | [
"mlenk3@joe-6.pace.gatech.edu"
] | mlenk3@joe-6.pace.gatech.edu |
a22a1bbfb6928658730bb0ad2a247aac022cdb7e | 30fbb000e51bdf57034e7b1cb793d86d376bcc67 | /venv/Scripts/easy_install-script.py | cba4b1a743a9f76aed73181c9787779f62bdbf39 | [] | no_license | jerryzhang2019/DataStructuresAndAlgorithm | 098eaf3e26f59c3d2935237689ef51569814ecd8 | 1e15d476682047b3ed33dd063d405dc20033741e | refs/heads/master | 2020-09-12T10:15:19.830686 | 2019-12-05T05:11:55 | 2019-12-05T05:11:55 | 222,391,276 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 454 | py | #!C:\数据结构与算法课堂练习题\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"engineerjerry1@gmail.com"
] | engineerjerry1@gmail.com |
258c928472c76d118cb8cd138fbee4f94db6a4d4 | 19c7e48da4a7332f2afe331be976dd3fe3d46b04 | /dms/document/admin.py | 65b591c193372c5e3bde745f8e1e3141fe45852c | [] | no_license | gogobaba/Document-Management-System | 7b68db88462a416d5fd882043daa32d758578665 | 9601df4b89d1c2830b3d38e50340f20aa08f6b51 | refs/heads/master | 2020-08-02T13:03:16.403366 | 2019-09-27T16:40:22 | 2019-09-27T16:40:22 | 211,361,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.contrib import admin
from .models import AddUser,Uimage,Ufiles
# Register your models here.
admin.site.register(AddUser)
admin.site.register(Uimage)
admin.site.register(Ufiles)
| [
"noreply@github.com"
] | noreply@github.com |
e05f101b910e6ec1755efaff0ee9b8ba03d4a292 | a7da4d9b203adbc72452c64d8403971108182d41 | /udp-tcp_client-server/UDP_Client.py | ffd79bc41ca55665b553f935626ee6da591c46f6 | [] | no_license | tylercardwell/udptcp-clientserver | 5270d31d0084976666ee76336e169404b65b9a53 | d805a8d3df940b86170fb3f8c692cc9b6dd981ea | refs/heads/main | 2023-01-08T23:41:23.983417 | 2020-11-09T06:50:32 | 2020-11-09T06:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py |
import socket
HOST = 'localhost' # The remote host
PORT = 8080 # The same port as used by the server
while True:
usrInput = ""
usrInput = input("Enter in Cal server name along with loan amount, years, and rate ")
if usrInput == "":
s.close()
break
with sock... | [
"noreply@github.com"
] | noreply@github.com |
4ad331771c2d6a9e184381b0059bd839356bffe9 | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /PythonCrashCourse/chapter_04/exercise4_07.py | d80abad384bb92b361dcbd5dacbb69f125bfe00a | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 75 | py | #!/usr/bin/env python3
numbers = [i for i in range(3,31,3)]
print(numbers) | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
fb24842332a1d4553a27ced6b2f8e60c9554ad3d | c50fb310d8c52284be2c636f951de796eededae9 | /47.py | f181b2c679dcf18046f30a11c88ec47c1b317684 | [] | no_license | Deepakdk7/Playerset3 | 6f46f638f22d894b9cc93d81b27c221f9dcdaad3 | 636e1feed0f97bbc9e9495a5dbb81a512ed980c5 | refs/heads/master | 2020-06-03T07:35:23.203780 | 2019-08-06T08:56:16 | 2019-08-06T08:56:16 | 191,497,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | ax=list(map(int,input().split()))
if ax[0]+ax[1]+ax[2]==180 and ax[0]!=0 and ax[1]!=0 and ax[2]!=0:
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | noreply@github.com |
0ce9db73072c3e48761b9c4e5242c152400b57d0 | 09bdcba669ca495dbb4c4fb44d21669420912345 | /Interface/EntryDefaultFunctions.py | 6546719723deba95a83038631520c6a3b573ba63 | [] | no_license | sd-2020-30431/assignment-1-HoreaHorea | 6ca444c1bdf3b4063e768b5ac9aa0441e6565f6b | eebd9963cdc0dd214822a116fbfb0e97aeb78513 | refs/heads/master | 2021-04-12T14:31:23.120491 | 2020-04-12T03:05:24 | 2020-04-12T03:05:24 | 249,084,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import random
foods = ["Chocolate", "Apples", "Milk", "Bread", "More Chocolate", "Even More Chocolate", "Bacon", "Honey"]
values = [100, 1000, 300, 350, 800, 150, 250, 333, 500]
dates = ["2020-04-11", "2020-04-12", "2020-04-13", "2020-04-14", "2020-04-15", "2020-04-16", "2020-04-17", "2020-04-18"]
def entryStringDef... | [
"HoreaHoreaStefan@gmail.com"
] | HoreaHoreaStefan@gmail.com |
793e590180c33c327bfbd1cf21a3315afd5f7617 | 76f6c4961993a129cf8ebc989d90bfdf5d2dfc17 | /week8_Wed_workshop.py | 69815613bbd3a61479c6d7bf081e97dd1a421a0b | [] | no_license | baldetorres/Python_Math_Game | e6ff7cb78578f1e424930f3ae40f4c3b6c945fa0 | a4cc62bb45738a873978b4fa23d23c26a46c663a | refs/heads/master | 2021-05-12T15:08:25.737376 | 2018-01-10T16:11:29 | 2018-01-10T16:11:29 | 116,976,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | import random
record = {}
record["counter"] = 0
record["correct"] = 0
record["incorrect"] = 0
incorrect_problems = []
user_answers = []
true_answers = []
def create_math_program():
play_math_round()
generate_summary_report()
def play_math_round():
problem, solution = generate_random_math_problem()
... | [
"baldetorres@gmail.com"
] | baldetorres@gmail.com |
e6b0a3e92b20d1044f067e0198c9f8279749e6ea | 08ff63c3e210d277621f683b4df43f4b6e839d94 | /project-name/src/app/utils/importer.py | d65ecb65e9fca782843be9b38ae934d7c7396a27 | [] | no_license | JiaWeiXie/django-project-template | 68b9cab52df800564c1d4d46789a3c192d7ee25f | 9ddd9b6d89c6ce318d609fae442ffaed20ee451e | refs/heads/master | 2021-05-24T07:43:19.532953 | 2020-10-21T15:40:18 | 2020-10-21T15:40:18 | 253,455,633 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # https://github.com/encode/databases/blob/master/databases/importer.py
import importlib
import typing
class ImportFromStringError(Exception):
pass
def import_from_string(import_str: str) -> typing.Any:
module_str, _, attrs_str = import_str.partition(":")
if not module_str or not attrs_str:
mess... | [
"jasonxie@ntub.edu.tw"
] | jasonxie@ntub.edu.tw |
2f4696ad14136a7e9e5a2811a77bbb4ba0dbec54 | 3c1a8bcfcb1ac1248f5971bb9420263d2636ec0e | /example.py | ecd7b73c703820e684c71603de2a1fa62e6b5763 | [
"MIT"
] | permissive | j7nn7k/designernews_api | 88ca5934d48f832169b7d9460bc428adf95d55b0 | 441d3863970bba439716c2d5de9a64b6f3445410 | refs/heads/master | 2021-01-23T02:40:17.340467 | 2013-11-25T17:49:59 | 2013-11-25T17:49:59 | 14,630,783 | 0 | 0 | MIT | 2019-11-04T03:24:28 | 2013-11-22T22:13:01 | Python | UTF-8 | Python | false | false | 385 | py | #!/usr/bin/env python
from dn import DN
dn = DN()
# print top 10 stories from homepage
for story in dn.get_stories()[:10]:
print story["points"], story["title"]
print '**********************'
print ''
# print 10 latest stories
for story in dn.get_stories(story_type='new')[:10]:
print story["points"]... | [
"jannik.weyrich@particulate.me"
] | jannik.weyrich@particulate.me |
9e8c025cca33e27a3072ad32fb7757cdb531f6a6 | f66910b11822bd10b55f4633d97a91a24ca6323c | /app/user/urls.py | cba566d29727cc2c654fae274c21e8a040d252c1 | [] | no_license | JJBon/MoneyApi | 4b5dcf100eafd9196a606ae745c9af3a09d7d28d | 61a25c253f329862f1b4f57012a0f6c976ed723c | refs/heads/master | 2023-08-19T12:19:44.291908 | 2021-10-08T23:32:01 | 2021-10-08T23:32:01 | 414,680,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.urls import path
from django.urls import path
from user import views
app_name = "user"
urlpatterns = [
path("create/", views.CreateUserView.as_view(), name="create"),
]
| [
"jjbonillatroncoso@gmail.com"
] | jjbonillatroncoso@gmail.com |
17b84f99d3e57c256b1ffbac40d061af960d3799 | b5e81f496d3e0877209909d43510c33a8f30656e | /Best_movies_project/wsgi.py | 4ebcb04856197e3131fb58e3698f5bbfdc18f223 | [] | no_license | DenissLee/BestMovies | 37a8947b9b73281dd3f16eef45fccdca3aef4d6b | 4df9c62774bbcd6227ff8c4a7732e22bccadea3b | refs/heads/main | 2023-07-02T16:40:45.524036 | 2021-08-05T10:32:57 | 2021-08-05T10:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for Best_movies_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"834480718@qq.com"
] | 834480718@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.