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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
382ea429b816b3ca6a1ce86c23964238e697ed53 | 5796cdc0bf59ed09e1493804bd86e982daf73f7f | /python/interp.py | d5bb30cfd8ef1975b51b3ba3c6504a05101289a1 | [] | no_license | pgDora56/BrainfxckInterpreter | ec67113b4480a8b328fde126932ac1061f2999d0 | c3544922e4422633d869266b5a9035d87806c92c | refs/heads/master | 2020-09-20T06:36:23.508956 | 2019-12-09T08:13:05 | 2019-12-09T08:13:05 | 224,401,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import sys
ptr = 0
memory = [0]
readcnt = 0
whilemark = []
if len(sys.argv) == 2:
fname = sys.argv[1]
with open(fname) as f:
program = f.read()
while readcnt < len(program):
c = program[readcnt]
if c == ">":
if ptr < 1000000:
ptr += 1
... | [
"doradora.prog@gmail.com"
] | doradora.prog@gmail.com |
0d1fe116c31359d47c2549fa9f7dab8970d295bc | 71260f747476644ca84bc65ee658c449e4b76cb3 | /sdk_download.py | 19c328428c0ebd7e9337236685356956d7aebd5e | [] | no_license | tyfrth/meridian_scripts | 548f12645f62002ef6fc3d26114295d05aa3bd5e | 4c752472862dbd14eec3bdd696a63ac8b71ffd57 | refs/heads/master | 2022-03-29T11:24:00.397035 | 2020-01-24T19:16:08 | 2020-01-24T19:16:08 | 235,885,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # coding: utf-8
import zipfile, requests, io, re
print('beginning sdk file download...')
# rsdkDownloads = requests.get('https://docs.meridianapps.com/article/481-sdk-downloads')
url1 = 'https://files.meridianapps.com/{}/meridian-ios-sdk-{}.zip'
riOS = requests.get(url1.format('meridian-ios-sdk', '5.10.0'))
url2 = ... | [
"tyfrith@gmail.com"
] | tyfrith@gmail.com |
e4af1482954ae6977c7f88e3d7899eff98397ed8 | 6014f41c67c2aa3a1cdb1de1af3679d6b86be381 | /TwoSum.py | e56237b1e8657f1d13584e04af2967c16511aa05 | [] | no_license | arpitkansal/Span | 46dd3225f1e4403b9bd8ab3ced8f527da712c94e | 069dc85efab9753cfea5739f9eb960f032056cc4 | refs/heads/master | 2020-09-04T18:00:37.342308 | 2019-11-05T20:14:55 | 2019-11-05T20:14:55 | 219,842,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | class Solution:
def twoSum(self, nums , target):
length = len(nums)
# num_wd_index = {}
# for i in range(length):
# num_wd_index[nums[i]]=i
for i in range(length):
k = target - nums[i]
try:
j = nums.index(k,i+1,length)
... | [
"16.arpitkansal@gmail.com"
] | 16.arpitkansal@gmail.com |
24984a771e24e75dd6c31efa2a62467cf6859d89 | a8967b7ea9b29996f9df2ac397092b7bea8068de | /src/Ladybug_kWh2Wh.py | 9635856d7d890f7cf9fe03f796b0fa70b149af24 | [] | no_license | arkdanielnielsen/Ladybug_adn | 4fd16c1062737302b3f400fb332336c7ab1179a8 | 391e810276cd33123a8b5590a05df7cba68cd3c7 | refs/heads/master | 2016-09-10T14:55:08.605683 | 2015-03-01T19:09:24 | 2015-03-01T19:09:24 | 31,507,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | # By Daniel Nielsen
# ark.daniel.nielsen@gmail.com
# Ladybug started by Mostapha Sadeghipour Roudsari is licensed
# under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
#kWh to Wh
"""
Use this component to convert energy values in kWh to Wh or kWh/m2 to Wh/m2.
-
Provided by Ladybug 0.0.59
Arg... | [
"ark.daniel.nielsen@gmail.com"
] | ark.daniel.nielsen@gmail.com |
fe2cca6308a2e55ea809f480b682f82343eb8f5f | 10797d956d0460e72aaea517acadacfbdb19b721 | /Parser/fileGen.py | c80161d2c400fbe4622a9e7a1f90ed1bae71eb89 | [] | no_license | K20shores/PivtoalSoftware | 1a75b467116aa4be1774ad4680de1a735b8e4b46 | 2cb22d6d79d2e5a280d163828b39673e7a7ed484 | refs/heads/master | 2020-04-11T05:41:46.921131 | 2018-12-11T22:09:00 | 2018-12-11T22:09:00 | 161,557,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from random import randint
def getRandomOne():
return randint(0, 99)
def getRandomTwo():
return randint(1, 20)
file = open("testData.txt","w")
for i in range(0,100000):
s = "["
for j in range(0,7):
r = getRandomOne()
if r < 2:
s = s + ","
else:
s = s + ... | [
"noreply@tamu.edu"
] | noreply@tamu.edu |
5588f43a11e7a7d88c3d863c18c1a473060d3eb5 | 63eef331e704c979ae2a77d5f9b9cd795399634c | /setup.py | 2e17ef2fd4bb59d1fc8943f2d9f7bd8b4e38224d | [
"MIT"
] | permissive | alex-t-l/Nutrition-Chatbot | fa0f7c8e6aaada48b3ec4530873a1a53cf92a54c | 5c15234633ecdab5fd040b695292c9f15f9c586d | refs/heads/main | 2023-06-01T14:08:53.286608 | 2021-06-23T19:13:51 | 2021-06-23T19:13:51 | 374,225,153 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/env python
from distutils.core import setup
setup(name="eliza.py",
version="1.0",
py_modules=["eliza"],
description="Cheesy Eliza knock-off ",
author="Joe Strout, Jeff Epler and Jez Higgins",
author_email="jez@jezuk.co.uk",
url="http://www.jezuk.co.uk/eliza",
lice... | [
"noreply@github.com"
] | noreply@github.com |
abdd4cbcaad45502670fb09f94011b14143c5249 | 526457cfae2ca18db455b1951c924652e8cc6907 | /tests/parser_files/meta.py | 4377162ed5553f5d670f7ec0513bfef4461856ec | [
"CC0-1.0"
] | permissive | outbreak-info/outbreak_parser_tools | 3904917572fe418a82b021d71e21d01f75940ea6 | 76983cd21fed07c251eaa3d7a2006ba7d7c48178 | refs/heads/main | 2023-04-10T08:04:18.488773 | 2022-12-15T02:50:03 | 2022-12-15T02:50:03 | 426,329,703 | 0 | 1 | CC0-1.0 | 2022-01-26T19:49:47 | 2021-11-09T17:48:19 | Python | UTF-8 | Python | false | false | 834 | py | metadata = {
"src_meta": {
"author": {
"name": "Julia Mullen",
"url": "https://github.com/juliamullen"
},
"code": {
"branch": "master",
"repo": "https://github.com/outbreak-info/dataverses"
},
"url": "https://dataverse.... | [
"julia.l.mullen@gmail.com"
] | julia.l.mullen@gmail.com |
648e90c31479e5b6942b240d26dc954461f8ccd2 | cd0f95c36bdd6cbec91397d380e13614cc80ea51 | /Register.py | 8d94f647b7ec3f4ed98995ac74d108ec142ad22b | [] | no_license | Riebart/scorecard | 4bff18fff409aea19e86584330afde5a24ecbc5b | decdaddd4c4aba8207c45426ecda1fc14c236b28 | refs/heads/master | 2021-07-09T08:04:33.338982 | 2021-05-05T02:23:55 | 2021-05-05T02:23:55 | 80,372,306 | 6 | 1 | null | 2019-10-21T02:49:10 | 2017-01-29T21:00:24 | Python | UTF-8 | Python | false | false | 12,638 | py | #!/usr/bin/env python3
import base64
import hashlib
import hmac
import json
import os
import re
import time
import uuid
from random import randint
import boto3
ddb = boto3.client("dynamodb")
ses = boto3.client("ses", region_name=os.environ["SES_REGION"])
HMAC_SECRET = os.environ["HMAC_SECRET"].encode("utf-8")
API_U... | [
"mike@forethought.solutions"
] | mike@forethought.solutions |
b978247f1f1db9c08e6a148d37077f90264b28ef | 25321e9a6016b50984d3891013c7681381eac382 | /python/DataAnalyze/boxplot delay by rain.py | be3e0b8475a0dd61b8ee8e1b86e939de52a5cb05 | [] | no_license | KelloTomas/PhD_thesis | a326edddfcc732627ff41c351ccfa8f35273addc | 1e9ba19cbecd6eb81cf6115f4758860dfc33efd2 | refs/heads/master | 2023-03-06T00:12:25.380705 | 2021-02-11T13:20:35 | 2021-02-11T13:20:35 | 159,509,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | from string import ascii_letters
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import pyodbc
import itertools
sns.set(style="white")
dbName = 'Kello'
dbTableNames = ['[SKCA]']
conn = pyodbc.connect('DRIVER={SQL Server};SERVER=dokelu.kst.fri.uniza.sk;DATABAS... | [
"noreply@github.com"
] | noreply@github.com |
9cfff380903dbe394a1109165b0a96791457c62e | 4f33621d770ea8dab8597c96f9d7abe18bf9462c | /assign.py | babbe47ffab8933ea9fc94c5d15ae0b1eae46e0a | [] | no_license | aditibhatt32/Learning-Python | 82fc2998e60528342887ed5a6f8fc63b743e308e | 4e024a890d21377d8a8b9093359555f5ea0987f1 | refs/heads/main | 2023-06-25T16:41:41.593944 | 2021-07-30T15:10:56 | 2021-07-30T15:10:56 | 388,515,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | a=10
print(a)
a=8
print(a)
a=6
print(a)
a=11
print(a) | [
"noreply@github.com"
] | noreply@github.com |
e1a47f3ad4d266642dfe57057076abdd4a77cbb1 | 2c70ee9a652e23dc48ab080f6f3bb68ca5c74708 | /Summer 2019 Exercises/7. List comprehensions/7. List Comprehensions.py | c4811c5987a3d12c476a3bbd24efc2e24ccb6a87 | [] | no_license | BahaaShammary/Python | e882a2172a9abceb036201552d8960d85e5c308f | 7a1c2ad302958af41c677ce4756eea6bbe9784bf | refs/heads/master | 2020-04-27T14:45:48.442621 | 2019-11-16T10:34:03 | 2019-11-16T10:34:03 | 174,419,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | #!/usr/bin/env python
# coding: utf-8
# **Exercise 7
#
#
# Let’s say I give you a list saved in a variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write one line of Python that takes this list a and makes a new list that has only the even elements of this list in it.
#
#
# The idea of a list comprehension is ... | [
"32821070+BahaaShammary@users.noreply.github.com"
] | 32821070+BahaaShammary@users.noreply.github.com |
1bac599f51dadd360e6f8f67f6fc9eabac2358ec | 35ff755630ef36a9df3352a6729e83b053f896b7 | /experiments/5_grst/subspace_tracking_static_incomplete/plot_tracking_static_incomplete.py | 7230bb6c4838619a33024eeb463378d03cec0e9a | [
"MIT"
] | permissive | clemenshage/grslra | 3179aae0e49eaacdd74b4ab3175aa9e25afd70f9 | 00f61b4ef08208d12e8e803d10f8ebbe16d8614a | refs/heads/master | 2020-12-24T06:17:47.908523 | 2016-11-22T17:45:20 | 2016-11-22T17:45:20 | 73,478,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | from matplotlib import pyplot as plt
import matplotlib
import numpy as np
matplotlib.rcParams.update({'font.size': 24})
matplotlib.rcParams.update({'text.usetex': True})
pvalues = [0.1, 0.4, 0.7, 1.0]
plt.figure(1, figsize=(15,5))
plt.hold(True)
plt.figure(2, figsize=(15,5))
plt.hold(True)
colors=['k', 'b', 'g', 'r',... | [
"clemenshage@gmx.de"
] | clemenshage@gmx.de |
087ca298f0a1ce9ddf0fc3d933d925855171d553 | 8adeb60229120edaa11d74900975f43edab3bc3a | /Homework/Homework 6/Q1_student.py | 8edc39e2e823f485fb029252389ba54b5e23705a | [] | no_license | AlexMan2000/ICS | d3496e6bb2bec941b54318860222441b280adc03 | e735d9e0a6ef74a30642b22f577399b1583dfcae | refs/heads/master | 2023-01-15T10:04:41.507060 | 2020-11-25T00:23:09 | 2020-11-25T00:23:09 | 312,196,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import random
class MinMaxQueue:
def __init__(self, l):
l.sort()
self.sorted_q = l
def pop_min(self):
#perform on the min
#------your code here -----#
return self.sorted_q.pop(0) if self.sorted_q else -1
#------end of your code----#
def pop_max(self):
... | [
"57748641+AlexMan2000@users.noreply.github.com"
] | 57748641+AlexMan2000@users.noreply.github.com |
699ff99fdcca12765962e862f59dd227a46dd7b7 | edf7fc01b731c1d17324a1acd095bac93c3537ef | /test/test_sampling.py | ea93e3e3d7755398f50c401a7758c01032c10eae | [
"BSD-3-Clause"
] | permissive | bernardotorres/profiling | f6d3d8a764c75ce6bb3478deb562c8160d9bad04 | 8763a5d11c4ebd06b5a90bdced0a01aaadf02687 | refs/heads/master | 2020-04-01T16:45:40.985548 | 2018-10-18T06:53:41 | 2018-10-18T06:53:41 | 153,396,990 | 0 | 0 | BSD-3-Clause | 2018-10-17T04:49:31 | 2018-10-17T04:49:31 | null | UTF-8 | Python | false | false | 2,752 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import signal
import sys
import pytest
from _utils import find_stats, spin
from profiling.sampling import SamplingProfiler
from profiling.sampling.samplers import ItimerSampler, TracingSampler
def spin_100ms():
spin(0.1)
def spin_500ms():
... | [
"sub@subl.ee"
] | sub@subl.ee |
4ed2eed9c461b75850d7f16c40da1b598b4a966d | 90c5c9df3d0639e1f8420b592a77df752ab79746 | /tests/tests/test_something.py | e1d68881b7c1e659901dcfd474998e993ff90a0d | [
"BSD-3-Clause"
] | permissive | intellineers/django-bridger | 4a16e5e63c697671740d965c3fcab02a89b8b27f | ed097984a99df7da40a4d01bd00c56e3c6083056 | refs/heads/master | 2023-08-14T05:41:38.003086 | 2021-09-06T16:51:56 | 2021-09-06T16:51:56 | 221,709,929 | 2 | 1 | BSD-3-Clause | 2023-07-22T21:39:45 | 2019-11-14T13:57:09 | Python | UTF-8 | Python | false | false | 43 | py | from bridger.tests.tests import TestProject | [
"decosterkevin@users.noreply.github.com"
] | decosterkevin@users.noreply.github.com |
19503ffe953dd85601d1e424088e6457d1246cb2 | e9c5a5b0c2ff5361705615c971062f11a2076507 | /app/user/serializers.py | 4bbdad7859eb6472433a351dafd537ef5a0afc7b | [
"MIT"
] | permissive | joefearnley/to-cook-or-not-to-cook | 5023c81d454eed128762ec3ce0376a0f8533c06f | 0f83559e7f11e87d3b64cfaba6bc39092c418ad9 | refs/heads/master | 2022-12-18T23:52:38.680758 | 2020-09-23T16:07:07 | 2020-09-23T16:07:07 | 291,587,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = get_user_model()
fields = ('email', 'password', 'name')
extra_k... | [
"joef@thestowcompany.com"
] | joef@thestowcompany.com |
3c5f9057c62e540c4d8f198a2b60dddd0381be90 | 7495c5cbf379ddc2d3ce18a9d603e6d18ecf4cbb | /bin/ladder.py | a1a745625e76c784473b668f9e0fb6cc2ceabd96 | [] | no_license | aki21j/snake-and-ladder | a1fc7f78ce11595d1473a38853e618f487134874 | d98e6a70a1cc6007a19d2e7405e2297ba9d00f8d | refs/heads/master | 2023-06-10T22:12:42.194014 | 2021-07-02T16:38:53 | 2021-07-02T16:38:53 | 382,359,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | class Ladder:
def __init__(self, start, end) -> None:
self.start = start
self.end = end
self.message = "LADDER -> climb to: {}".format(self.start)
def get_start(self):
return self.start
def get_end(self):
return self.end
def set_start(self, start):
self.start = start
def... | [
"ankitgupta21j@gmail.com"
] | ankitgupta21j@gmail.com |
1cfa83adc5caa3d527d2e3e5e178d7c674b8a051 | f356f3fd6965e5e2126a862ed63a01b3b40e2df7 | /3. Market Structure/4. MDS/MDS_raw.py | e1c82bd65c717a62b878b48399423876367bdb7d | [] | no_license | SIAFramework/hcs | aa557a26ea52cc42fbae12cb07b6f453c8f97827 | 8230178901b5a7949e0a1d2b5ca860910ac44244 | refs/heads/main | 2023-03-12T20:59:53.289579 | 2021-03-02T13:21:02 | 2021-03-02T13:21:02 | 343,779,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,135 | py | # -*- coding: utf-8 -*-
from __future__ import division
import sys
import numpy as np
import pandas as pd
import time
import scipy.spatial.distance as sp
#import scipy.stats as stats
import json
import warnings
def cmdscale(D):
""" ... | [
"yashwanth.ramachandra@harman.com"
] | yashwanth.ramachandra@harman.com |
1323e303e208cdc5f118b925bcfb9af45653fb34 | 27aee91c381ed08e7fe08d407c523665a68bf927 | /experiments/extensions/read_ext1.py | 80326157da8162413fb4bde6bd5458ce37575688 | [
"Apache-2.0"
] | permissive | jonohart/voltha | f6561d55e6884cb3bc837657fe84039963ded305 | 87314cd53cb4c61e7e62b0ed3fc6da94603cc507 | refs/heads/master | 2021-01-24T16:19:05.018989 | 2018-02-13T01:15:35 | 2018-02-27T19:38:18 | 123,180,156 | 0 | 0 | Apache-2.0 | 2018-02-27T19:51:40 | 2018-02-27T19:51:40 | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/env python
"""
Read adapter data while decoding ext1 custom fields.
"""
import sys
from json import dumps
from common.utils.json_format import MessageToDict
from voltha.protos import adapter_pb2
adapter = adapter_pb2.Adapter()
binary = sys.stdin.read()
adapter.ParseFromString(binary)
print dumps(MessageTo... | [
"zharaszt@ciena.com"
] | zharaszt@ciena.com |
94a491393853c4e7890846273a17e6a7fd0545c2 | 422ce4dad362cd9a1112965e6c5df17d13fe2287 | /econom_game/teams/migrations/0012_auto_20180830_1921.py | fa4b37689379a6dbbb2ad4f08fb70b61f95351cc | [] | no_license | zzaakiirr/econom_game | 22bfc7f8b009ab4e6366a912df731f5a234da506 | 56f0ca2e29e17b18cc7ec5248e66066bb061bc19 | refs/heads/master | 2020-03-16T15:05:21.872872 | 2018-09-06T11:10:08 | 2018-09-06T11:10:08 | 132,727,278 | 3 | 2 | null | 2018-08-30T22:32:43 | 2018-05-09T08:38:26 | Python | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-08-30 19:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teams', '0011_auto_20180829_1251'),
]
operations = [
migrations.AlterField(... | [
"zzaakiirr@gmail.com"
] | zzaakiirr@gmail.com |
1990bd00d953aaa8804299e0e16eee18e6dba052 | d53a9e7d539cfb18d10945b57cb6b5ddc3df9141 | /nn_models.py | f18570e1b9c2d6c4a9b684c52de0c2a726437ec7 | [] | no_license | GAIMJKP/dimensionality-reduction | 99b83dfd480925ff8bead035caf5f3f4519c7039 | 60aa5919ecef715b6c7a0a96ba6cf1f1c435921d | refs/heads/master | 2022-01-11T15:16:45.920972 | 2018-08-05T15:43:21 | 2018-08-05T15:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,185 | py | # from:
# https://stackoverflow.com/questions/40845304/runtimewarning-numpy-dtype-size-changed-may-indicate-binary-incompatibility
import warnings
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
import numpy as np
import keras... | [
"anax@hotmail.co.uk"
] | anax@hotmail.co.uk |
ba85bc656bfd7d2651c6f2027dc152ab5f6721ab | 185d6fb1828fd9ecf77a9a7773a03bed28a53bab | /jarvis/ext.py | 809d2b262002bec6559983ef2f022907728e6697 | [
"MIT"
] | permissive | aburgd/sheila | a40b532ba5ec6e8001a19c44db2cdbeef17df49e | 556cf3e4a6992b8ba609ba281f5a3657cd91e709 | refs/heads/master | 2020-12-26T03:43:12.640022 | 2016-09-04T17:14:12 | 2016-09-04T17:14:12 | 67,252,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,613 | py | #!/usr/bin/env python3
"""Extended wrappers for pyscp core classes."""
###############################################################################
# Module Imports
###############################################################################
import collections
#################################################... | [
"anqxyr@gmail.com"
] | anqxyr@gmail.com |
0c9f7a1e78eddbc79970797b86969632acb771e8 | 79f382ca88838a6fcc60a78a7b4ecaf46dd776da | /player.py | 372389030b7c5421c643f6599b441d005285975e | [] | no_license | leowebbhk/objectOrientedTicTacToe | 6256efecc4b7221ba6d564b0801b66fb6319a3eb | e14961d549a4f86738c1ce3800612bd7514626a2 | refs/heads/master | 2020-06-12T08:06:13.764839 | 2019-06-28T08:50:05 | 2019-06-28T08:50:05 | 194,240,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | import board
class Player: #each player will have one turn per game
def __init__(self, name, symbol, ID, isTurn):
self.id = ID #player id
self.name = name #name for victory screen
self.symbol = symbol #symbol to be displayed
self.winner = False #flag will be set to true when wins ti... | [
"leowebbhk@gmail.com"
] | leowebbhk@gmail.com |
3b8884816e668857aec4fb327498b9da65c5737e | c7cce7752ccfa3c5687cd427160af3da7950b2bc | /Mundo - 3/Ex 78 - Valores numericos.py | d8f994781b351572c1cdee0762e5e08b78830ead | [] | no_license | lucas-silvs/Curso-Guanabara | cea05768374bb6a9d0295deb6d17d1da4c13646b | 42f62d518eecce7f2bbc6794ad424d7f7218c81e | refs/heads/main | 2023-01-24T07:07:35.757243 | 2020-12-05T01:08:51 | 2020-12-05T01:08:51 | 315,467,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | n=[]
for i in range(5):
n.append(int(input('Digite um número:\n')))
print(f'''
O maior valor da lista é: {max(n)} que está na posição {n.index(max(n))}
O menor valor da lista: {min(n)} que está na posição {n.index(min(n))}''') | [
"lucas.parkl@outlook.com"
] | lucas.parkl@outlook.com |
ee007e9b1f1533b18dbe4000a7edd95f4d3a013b | 12c98631299d8ba58bc2352e7c516e195e93f956 | /03-function/guessTheNumber.py | 836e3cf4302742c8332f912b0eeb3208ae3a0abb | [] | no_license | halfThread/MyAutomatePython | ba258f237c619fe73b7a43170df992c48ea91199 | 87d35de67928831bfa1a7e3131e395fd6b9600fe | refs/heads/master | 2021-01-01T19:31:28.252690 | 2017-08-29T09:13:09 | 2017-08-29T09:13:09 | 98,600,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
"""
@version:
@author: lh
@license: Apache Licence
@contact: liuhuan0672@gmail.com
@site:
@software: PyCharm
@file: guessTheNumber.py
@time: 2017/7/11 15:25
"""
import random
# 猜数字
def func():
secret_number = random.randint(1, 20)
print('I am thinking of a numbe... | [
"liuhuan0672@126.com"
] | liuhuan0672@126.com |
8d8561ad0e297ce4cddddd840c63654b681f5bcc | de3bca2bc94bbd66278cff6dc742b4fd5e097b3a | /tests/func/test_dvcfile.py | 0ae5bb2946efc3573f742d856e9404e6a20924ff | [
"Apache-2.0"
] | permissive | efiop/dvc | 26fe565a3dffa3f9c6750b9048c20abb3f486a73 | 25ef812ecf028ef08e7a1818a9ca3234093b30e5 | refs/heads/master | 2023-09-01T08:50:05.363709 | 2021-12-14T06:37:23 | 2021-12-15T06:55:32 | 89,998,069 | 1 | 0 | Apache-2.0 | 2023-03-10T08:57:48 | 2017-05-02T06:15:43 | Python | UTF-8 | Python | false | false | 10,871 | py | # pylint: disable=no-member
import textwrap
import pytest
from dvc.dvcfile import (
PIPELINE_FILE,
PIPELINE_LOCK,
Dvcfile,
ParametrizedDumpError,
SingleStageFile,
)
from dvc.stage.exceptions import StageFileDoesNotExistError
from dvc.stage.loader import StageNotFound
from dvc.utils.strictyaml impo... | [
"noreply@github.com"
] | noreply@github.com |
19914617fd9a32ac6fec21f584970c43495866e5 | f67046c217309c81af54c10a56b007190e58b140 | /cashbook.py | 07c0e528dcca34c59d28eb3098039b1a728bda60 | [] | no_license | furico/simple_cashbook | 5dac35d41a451554aa538cc6cee00c72a45bb3f1 | f3c024032d3a6874934540d48c5a26738f515f99 | refs/heads/master | 2023-02-12T13:58:45.394178 | 2020-12-30T04:31:25 | 2020-12-30T04:31:25 | 325,450,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,441 | py | """
シンプルなおこづかい帳アプリ
"""
from pathlib import Path
from datetime import datetime, timedelta
DATA_FILE = Path("data.tsv")
def read_data_file(year, month):
"""データファイルから年月で指定したデータ読み込む"""
rows = []
if not DATA_FILE.exists():
return rows
with DATA_FILE.open() as f:
for row in f:
... | [
"furihatah@gmail.com"
] | furihatah@gmail.com |
3440cf9cb414cdb4fe17f064dee2245822df0547 | ea6b859d88e29abbfb5ad5f19d80dea0cc49fe7d | /app.py | 481dcc2138e411d59eb08fe73ec2c80be7b241e2 | [] | no_license | p-ebot/mydevops-ml-api-projects | 1ab1a98a04e2663a330fba8f81e13a8ff15dfc34 | 649f369a8020d6d99d2178484e83a0bbe058683d | refs/heads/master | 2023-03-26T00:53:24.452621 | 2021-03-11T19:31:58 | 2021-03-11T19:31:58 | 340,085,617 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | from flask import Flask, request, jsonify
from flask.logging import create_logger
import logging
import pandas as pd
import joblib
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
LOG = create_logger(app)
LOG.setLevel(logging.INFO)
def scale(payload):
"""Scales Payload"""
LOG.info(... | [
"peterebot@yahoo.com"
] | peterebot@yahoo.com |
f94f3789185b61d958643300f7e8cde8600bad3e | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_23037.py | 3bd2a710d8fe38850715610ce1eaa8fd6bce9240 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # create dictionary based on filter in sqlalchemy
by_name = {g.name: g.users for g in Group.query.options(db.joinedload(Group.users))}
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
1ae492172aa438a72336aba09bcd68fe23e03941 | b90190cd97f1aa2a3168d3f25ce6832a1c22d1b2 | /Code/models/arena/arena.py | 0cb906374edd997cd4c0ec9067f3c7282035faab | [] | no_license | stjordanis/Decentralized-and-multi-agent-control-of-Franka-Emika-Panda-robot-in-continuous-task-execution | 7c002cd4dea95b1a1256172c6d8d38c6226199f9 | c2b27e7f8059e3c29c876b60656f6a20d55e5da2 | refs/heads/main | 2023-07-31T20:47:24.476564 | 2021-10-01T08:44:19 | 2021-10-01T08:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import numpy as np
from models.base import MujocoXML
from utils.mjcf_utils import array_to_string, string_to_array
class Arena(MujocoXML):
"""Base arena class."""
def set_origin(self, offset):
"""Applies a constant offset to all objects."""
offset = np.array(offset)
for node in self.w... | [
"noreply@github.com"
] | noreply@github.com |
b96f634934237ec1b9ada98b655ef519a6f1e136 | 9e6d3382b993782e3fac0f2c3567a496cab15e8e | /transport/consumers/models/line.py | f072a67a40970470aa628cc081782315d48716c5 | [] | no_license | nymeowmeow/Streaming | f1b436fa450241bd36c3fa4ab2a4c08cb1c9dbb5 | db02cb2c7c10a8c4569219758266b65afd394922 | refs/heads/master | 2021-01-03T17:19:38.461781 | 2020-02-15T19:00:09 | 2020-02-15T19:00:09 | 240,166,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | """Contains functionality related to Lines"""
import json
import logging
from models import Station
logger = logging.getLogger(__name__)
class Line:
"""Defines the Line Model"""
def __init__(self, color):
"""Creates a line"""
self.color = color
self.color_code = "0xFFFFFF"
... | [
"pookc@hotmail.com"
] | pookc@hotmail.com |
658baaf3e894c98deb60ec089ad7d2c063bd3ff8 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/humanfriendly/humanfriendly/tables.pyi | 0b324b1f32331119ff29d6ec1a91025a38402f4f | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 304 | pyi | from typing import Any
def format_smart_table(data, column_names): ...
def format_pretty_table(data, column_names: Any | None = ..., horizontal_bar: str = ..., vertical_bar: str = ...): ...
def format_robust_table(data, column_names): ...
def format_rst_table(data, column_names: Any | None = ...): ...
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
f01e45f25559a77b132eead538803f01c0e5f6aa | 2fdc234af14e6656a297ccb1a22a0685637b5e60 | /example/model_identification/model_identification.py | 66fa1f9a1a0ba4d13dce48e6cf89439e36372481 | [
"Apache-2.0"
] | permissive | kevinksyTRD/pycosim_old | b72d074e6a9df8e9db9e9763d4a3c58d5ac8808a | a604144bd8867eecba00d88b743cd7ae1dea486e | refs/heads/master | 2022-12-23T17:57:58.947390 | 2020-09-24T11:19:59 | 2020-09-24T11:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,176 | py | """This example demonstrate how to identify model parameters.
The system model consists of two control volumes connected each other and each
has heat input from the environment and heat loss to the environment. The
system model is given with prescribed output for a given step temperature change.
The task is to find th... | [
"kevinkoosup.yum@sintef.no"
] | kevinkoosup.yum@sintef.no |
068979971645c1203a8ee605549bd08a140f44c8 | 2d8a3a9b15e76bacd24e1627a124f0f60a83b253 | /sfepy/terms/terms_new.py | a3b8b1b2718a856c97abc55b196a36c84c25a6e7 | [
"BSD-3-Clause"
] | permissive | cheon7886/sfepy | 2722ae15bb52cdf20bac264771c32b1b051bb2ae | 2e9eb78341f9072ad07424221a64306c95c5ebd1 | refs/heads/master | 2021-01-19T19:33:11.938856 | 2015-03-29T08:56:35 | 2015-03-29T08:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,892 | py | """
todo:
- get row variable, col variable (if diff_var)
- determine out shape
- set current group to all variable arguments
- loop over row/col dofs:
- call term
? how to deal with components of (vector) variables?
(*) for given group, Variable has to be able to:
- evaluate value in quadr... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
0257c14cfbe602b9a4797ec88b93430d6fa1c7ab | f1ac1657f572eae6437090bc73b36aa308f594cb | /hello.py | 7e4d30b9c4d6ffef26533a5e6d2780763666d624 | [] | no_license | shzh05/First-repository | 3538700ba5382f0176e9a895b84338aac1f9c12b | 12daeb022a4527c85d0cf3433348e7a1b6cce289 | refs/heads/main | 2023-03-25T17:39:57.874527 | 2021-03-25T05:44:13 | 2021-03-25T05:44:13 | 351,319,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | print("Hello World!")
print("Echo Back!")
| [
"noreply@github.com"
] | noreply@github.com |
972c752fabe2ca987ed43440ced6173e9dfc4662 | f29f90fe84271bcab1d713c9dc9b4404c7b27953 | /Program to Swap Two Variables Without Using Temporary Variable.py | da094af7171a21f00297ab2f06ffe79efdaf7d37 | [] | no_license | itsmohitnamdeo/Python-Programs | 431aa3af1fe9b76e77c4fcf25135f3d93baf5ad3 | 18678b6602eb5da4991b439b1aa98237f7cadeed | refs/heads/main | 2023-09-05T06:28:08.999410 | 2021-11-13T14:45:23 | 2021-11-13T14:45:23 | 427,691,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | print ('>> Mohit Namdeo')
print ('>> Program to Swap Two Variables Without Using Temporary Variable')
x = 5
y = 10
x, y = y, x
print("x =", x)
print("y =", y) | [
"85800451+itsmohitnamdeo@users.noreply.github.com"
] | 85800451+itsmohitnamdeo@users.noreply.github.com |
de13a9ae414154f6bec5b36554ab9c6650cf7929 | d93159d0784fc489a5066d3ee592e6c9563b228b | /Validation/RecoParticleFlow/Benchmarks/Tools/submit.py | 87e493ec5ff2edf11475e492be5dbb1190793c81 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# to submit a benchmark webpage to the validation website
# author: Colin
import shutil, sys, os, valtools
from optparse import OptionParser
parser = OptionParser()
parser.usage = "usage: %prog"
parser.add_option("-e", "--extension", dest="extension",
help="adds an ext... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
62c7d02f6bffeb3f0d7ecb1f833e10f36a50f5ce | a6435add34c1e9a29946e4faa96276738baa2865 | /mysite/urls.py | 9cafc8b407e7dacdb03d460e9ca6f9c9c8644bbe | [] | no_license | andyhome123/Django-xsser | 8d8cd10c259f5e20d880475d9dda4bd9409daac3 | e592be31ed2c2fb2a92577f02166022657ad639d | refs/heads/master | 2021-01-10T13:50:05.934054 | 2015-05-24T15:38:55 | 2015-05-24T15:38:55 | 36,178,275 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-base... | [
"andyhome123@gmail.com"
] | andyhome123@gmail.com |
ed645c2153959a09bd8cc1dd047b03155545ab6b | 9c7a2a8cffca65f8aa43ee61718fe03d8766ca8c | /tests/test_rbm.py | 466325baac3e87bf81147c6884e68ce83345f2fe | [] | no_license | zeis/deepbelief | 9b7a10f132709192440bec0102676aeb142c284b | 59d7c25ea051d99280535ab7ce2ae03a5da7cca3 | refs/heads/master | 2023-07-22T09:55:38.770470 | 2019-06-19T14:14:47 | 2019-06-19T14:14:47 | 192,900,845 | 4 | 1 | null | 2023-07-06T21:26:48 | 2019-06-20T10:34:51 | Python | UTF-8 | Python | false | false | 3,074 | py | import unittest
import tensorflow as tf
import numpy as np
from deepbelief.layers.rbm import RBM
import deepbelief.config as c
class TestRBM(unittest.TestCase):
def setUp(self):
self.NUM_V = 6
self.NUM_H = 5
self.BATCH_SIZE = 20
self.V_BATCH_SHAPE = (self.BATCH_SIZE, 6)
sel... | [
"aledimax@gmail.com"
] | aledimax@gmail.com |
46628e1c41b914803b5a483f21a839fe203a26ae | 55320b06473d26f9bdfa31b14cbef6e6015f5648 | /winefulness/settings.py | 8066294790914774e151211e6be0f32d8251c283 | [] | no_license | Nicola2309/Winefulness | 7dc1923e80eca73bdc8bb30e6073456c913a1294 | 5c3f4e289940c1c0ce9feeea1dd75989ffac7353 | refs/heads/master | 2023-06-20T08:59:03.740049 | 2021-07-19T08:24:55 | 2021-07-19T08:24:55 | 355,481,103 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,660 | py | """
Django settings for winefulness 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
... | [
"nicola.spigaglia@outlook.it"
] | nicola.spigaglia@outlook.it |
078cbcf54d7cccbd489f38903bbb2696c2225c57 | 7a6e8f40f04e518e93a85e035a6fc1ebddff47ff | /Problem Set 6/buildCoder.py | 2a88e28d7f7fd4e644e13ab2549692c0f3efa5ea | [] | no_license | TheRevanchist/6.00.1x | 6cc90f07a84ef76e8d3d6d9400f6aa9c05d90b79 | d62eb6bd3535a64734f86e76393fe08540b3bf83 | refs/heads/master | 2020-04-06T06:51:54.260712 | 2015-03-11T13:39:22 | 2015-03-11T13:39:22 | 29,671,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | def buildCoder(shift):
"""
Returns a dict that can apply a Caesar cipher to a letter.
The cipher is defined by the shift value. Ignores non-letter characters
like punctuation, numbers, and spaces.
shift: 0 <= int < 26
returns: dict
"""
### TODO
lower = string.ascii_lowercase
up... | [
"ismail.elezi@gmail.com"
] | ismail.elezi@gmail.com |
bcdf7ac5512201e99bff2b19928e6b01d5f2f64e | 83baaf7d75dea5cfde50d60893439d1f2b85a885 | /billsManage/models.py | bf9f57780bd9026f4bad459d6b8071b038d4c913 | [
"MIT"
] | permissive | 520MianXiangDuiXiang520/FamilyPropertyManageSystem | d31d7a47b196d9b282fdfda1ace1fd4db8cf00bf | 2248308b28b1c0f978f0a577a2d4a0a2e44012f0 | refs/heads/master | 2023-04-27T19:27:18.164175 | 2022-11-13T14:03:35 | 2022-11-13T14:03:35 | 222,252,762 | 9 | 1 | MIT | 2023-04-21T20:41:15 | 2019-11-17T13:32:26 | Python | UTF-8 | Python | false | false | 1,456 | py | from django.db import models
# Create your models here.
import userManage
from userManage.models import User
from familyManage.models import Family
class UserBills(models.Model):
# 用户账单
# 为了方便“银行储蓄管理”和借还钱管理
# 小于10代表收入的钱(借来的钱也算收入),大于10表示支出的钱(借出去的和存入银行的钱也算支出)
# “生成资产报告”时可以按type分组查询
BILL_TYPE = [(0,... | [
"15364968962@163.com"
] | 15364968962@163.com |
03c83a59017b89259eefe545f24d5e0bce961cf1 | 9e85747a446175575533485593054834971cd372 | /colegio/educa/migrations/0003_auto_20200620_1553.py | d394ddec856dac48584594ac20e8286dd0d25f87 | [] | no_license | JTorero/Colegios | 63337038c1b67cc8dcf419a5d35d89b9342ec6b0 | e0403d0cd3ea8ebfbe8f0d7804270eb398c8e560 | refs/heads/master | 2022-11-09T02:12:03.604676 | 2020-06-22T03:58:55 | 2020-06-22T03:58:55 | 273,765,254 | 0 | 2 | null | 2020-06-22T03:58:56 | 2020-06-20T18:43:14 | Python | UTF-8 | Python | false | false | 1,190 | py | # Generated by Django 2.2.7 on 2020-06-20 20:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('educa', '0002_alumno'),
]
operations = [
migrations.CreateModel(
name='Periodo',
fi... | [
"mail@mail.com"
] | mail@mail.com |
57ccb912bac25b5a55fbee98d12590fd695d852f | 1a89fe26d8771ed3d7829530b09bde5e9f0ee1f6 | /day3/main.py | d8f620e06eb0eb0f6360bae8e0dd6aa18bab7047 | [] | no_license | mariadl/advent-of-code-2020 | fdb38b8df3c1a80a03505ceab1965e80573cd2f5 | e41bf7b4bfa9d3c939b3f75a2e149ee4ec3c6629 | refs/heads/main | 2023-01-24T10:40:24.858827 | 2020-12-08T00:21:29 | 2020-12-08T00:21:29 | 317,698,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | def desafio():
arrDesafio = []
with open("input.txt", "r") as file:
for line in file:
stripped_line = (line.strip())
arrDesafio += [stripped_line]
print ('Nr. of Trees:', tree_search_part1(arrDesafio))
print ('Result Part Two:', tree_search_part2(arrDesafio, 1, 1) * tree... | [
"mdl21996@gmail.com"
] | mdl21996@gmail.com |
36de71b1aff674b28828bcf2c7d45d6c6ae44bd8 | d499269aeb065d4e0f2de925814fe864ce65f977 | /model.py | 770198c68c97f4c5f4960cf94cfe82ae53601233 | [] | no_license | thanhan110700/recognition_Plate | 7680aa67de4a16a14e87712bc2c1d8558ec6395b | 85725b7f2e900c2a5284cccff0b187d4d00df4cc | refs/heads/main | 2023-06-07T09:39:33.507634 | 2021-07-08T04:09:42 | 2021-07-08T04:09:42 | 383,984,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | import keras
import numpy as np
import config
from keras import optimizers
ALPHA_DICT = {0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H', 8: 'K', 9: 'L', 10: 'M', 11: 'N', 12: 'P',
13: 'R', 14: 'S', 15: 'T', 16: 'U', 17: 'V', 18: 'X', 19: 'Y', 20: 'Z', 21: '0', 22: '1', 23: '2', 24: '3'... | [
"lvuthanhan1107@gmail.com"
] | lvuthanhan1107@gmail.com |
df26c0a8dde2c01059140e975b5255d1501b75ee | 67bae7c8b0433c5fd8c7de0165309976ae2be2c3 | /new_algo_w_britney.py | 3a22563cd514f65e9b4643f97524b9aebea90d12 | [] | no_license | KasperGroesLudvigsen/reinforcement_learning | 24c710a7a25447609618d7a5f1ade22269374ea9 | 557742cd956c157a01865c300b7b082bee0cff7a | refs/heads/main | 2023-04-02T17:30:06.510535 | 2021-04-11T15:56:14 | 2021-04-11T15:56:14 | 340,039,886 | 1 | 1 | null | 2021-04-10T16:48:03 | 2021-02-18T12:15:07 | Python | UTF-8 | Python | false | false | 2,146 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 10 11:13:13 2021
@author: groes
"""
import task1.britneyworld as bw
import random
import numpy as np
import task2.qlearning as ql
import task2.policies as pol
import task2.task2_utils as utils
import matplotlib.pyplot as plt
import seaborn as sns
import time
import rand... | [
"groes.ludvigsen@gmail.com"
] | groes.ludvigsen@gmail.com |
4411ee564e643b769447e1a1b4110cac2eb5de41 | 6bfc4e67c71b8dbdca37a4ee516e3a3ce51d1e6f | /preserved_structure/python/object_vectors.py | 6b319c45ca40e4a38430605a2bba65800148b43c | [] | no_license | BergelsonLab/preserved_structure | be4dd10802110c781c1238a2a37ce4f6e54fd632 | 3dd9eb0b802264362959ced80a915a988ad44e13 | refs/heads/master | 2021-05-09T02:27:20.098209 | 2018-05-14T20:31:33 | 2018-05-14T20:31:33 | 119,209,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | import os
# this is where we'll dump the centrality scores
output_dir = "output"
# this is where the class specific vector dictionaries are stored
vectors_dir = "seedlings_vectors"
# this is where the TensorFlow checkpoints are
models_dir = "models_local"
# the seedlings image directories
seedlings_stimuli = "seedling... | [
"andrei.amatuni@gmail.com"
] | andrei.amatuni@gmail.com |
6ba1c6858b83940c3599f01f612860955bfeecd0 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/311.py | ad8d0ddb3393ecd74fb6c04b5ba6a331d199648b | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 270 | py | from collections import Counter
def word_count(words):
wordCount = Counter()
for word in words.split():
word = ''.join(ch for ch in word if ch.isalnum()).lower()
if not word:
continue
wordCount[word] += 1
return wordCount
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7e9a2bc7e2cf2909d38a59d53bf48b55fa79bb62 | 0c686557b1482e616dfa26b8b799e3980ffeaafd | /ABC063D.py | 9f9c55479f3fc84ecd386f5c7fae23ca44e847a4 | [] | no_license | sgt-nagisa/AtCoder | fe0fd4805ac29c88ba845a82b831dab4d6d8fde9 | ba50392a969375ce373e9e8e6c4822f3f8a1d5c9 | refs/heads/master | 2021-07-01T09:01:57.641689 | 2019-05-07T23:30:09 | 2019-05-07T23:30:09 | 131,149,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # ABC 063 D
# bisect
from math import ceil
N, A, B = map(int,input().split())
h = []
for k in range(N):
h.append(int(input()))
def check(t):
s = t
for k in range(N):
if h[k] > B*t:
s -= ceil((h[k]-B*t)/(A-B))
if s < 0:
return False
return True
lo = 0
hi = max(h)... | [
"38747158+sgt-nagisa@users.noreply.github.com"
] | 38747158+sgt-nagisa@users.noreply.github.com |
367414398a374e2ad96f456f195a778d28ec7824 | 40c4b0c31a5870a9201d3d42a63c5547092e5912 | /frappe/website/doctype/personal_data_download_request/test_personal_data_download_request.py | 71e269f0700206e2de4862dc22964e0a0d24b531 | [
"MIT"
] | permissive | ektai/frappe3 | fab138cdbe15bab8214cf623d9eb461e9b9fb1cd | 44aa948b4d5a0d729eacfb3dabdc9c8894ae1799 | refs/heads/master | 2022-12-25T15:48:36.926197 | 2020-10-07T09:19:20 | 2020-10-07T09:19:20 | 301,951,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
import json
from frappe.website.doctype.personal_data_download_request.personal_data_download_request import get_user_data
from frappe.contacts.doct... | [
"63931935+ektai@users.noreply.github.com"
] | 63931935+ektai@users.noreply.github.com |
4b0ad8b0dbc902231fb8f660ff4c04d461fd7e54 | bb6e80f7deff48a720d04850d9b4fd2bb379e14d | /ExpEYES17/UserManual/fr/rst/exp/prettyLaTeX.py | ae038f27591a7cd40285480463f4fb97f8fcf025 | [] | no_license | EduCodeBe/expeyes-programs | 6a04881c4c2c4a198999baf57802508985ad8a06 | 2464866382155ed4c951962be4313fdcfe73dcec | refs/heads/master | 2020-03-22T15:21:29.519546 | 2018-07-08T17:21:32 | 2018-07-08T17:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | #!/usr/bin/python3
import os, sys, re
def filterSVG(t,verbose=False):
"""
remove .svg in image names, replace by .pdf
"""
if verbose:
sys.stderr.write("replacing .svg extensions by .pdf for included graphics\n")
return re.sub(r"\.svg", ".pdf", t)
def filterPNG(t,verbose=False):
"""
... | [
"georgesk@debian.org"
] | georgesk@debian.org |
6bf950b5543e6aa415842c0dcc5d252241851b6a | 016ad44fdc47417de1dbb86e97bd330944020b94 | /tests/test_urls.py | 9f8e02827e3f968bf924971b60e43ba594ed8cc9 | [
"MIT"
] | permissive | sbraz/sphinx-notfound-page | f205be67cb626ed612047880bcf7c208966eda1e | 37a217992922ce07f116bf25df51a7cf5c927279 | refs/heads/master | 2022-12-11T12:44:34.261971 | 2020-09-10T10:54:19 | 2020-09-10T10:54:19 | 295,368,656 | 0 | 0 | null | 2020-09-14T09:32:25 | 2020-09-14T09:32:24 | null | UTF-8 | Python | false | false | 20,366 | py | # -*- coding: utf-8 -*-
import os
import pytest
import sphinx
import shutil
import warnings
srcdir = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'examples',
'default',
)
rstsrcdir = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'examples',
'404rst',
)
@pytest.fixtur... | [
"humitos@gmail.com"
] | humitos@gmail.com |
ad80cf05df3f06a549b54b8959deb8b0dc818d7a | e7e365d1102816635d9ec46e7b948852f4ded783 | /Alerts/tests/test_signals.py | 4efa8bd1b2cfb70514f06f06dac09d86f4d83292 | [] | no_license | crowdbotics-apps/vytrac2-27920 | 30539e1d5f2247f196a749ad252708d3b2cce0fd | f239f9674ed16cf58938b8e48c878309f0acd1cc | refs/heads/master | 2023-06-11T19:20:18.531306 | 2021-07-04T07:34:25 | 2021-07-04T07:34:25 | 376,051,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,679 | py | from django.contrib.auth.models import Group
from icecream import ic
from Functions.MyAppsConfig import create_all_data_str
from Functions.make_fields_permissions import make_fields_permissions
from rest_framework import status
from Alerts.models import Alert, AlertRule
from Functions.TestClass import TestClass
from... | [
"ali.alkaraawi@crowdbotics.com"
] | ali.alkaraawi@crowdbotics.com |
7b6150088feaa4fcddb9ae92e14a30aea4cc81c5 | 81f4d770a57b60651b60b973d51ce6d7f530af30 | /torsblog/settings.py | f0e4d7d6547b9b7450c255754517deecac64b831 | [] | no_license | terrifictor100/my-first-blog | 862d637ea4651fb384077f0f35e2f01971c63711 | c9a459d413d00cb64abaeb453afc67a0219c3388 | refs/heads/master | 2021-05-09T18:57:58.988416 | 2018-02-03T16:25:20 | 2018-02-03T16:25:20 | 119,178,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | """
Django settings for torsblog project.
Generated by 'django-admin startproject' using Django 1.11.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"v.steenson@ymail.com"
] | v.steenson@ymail.com |
782dd62cd376df1e6bf9d6ff77e0e51569272899 | 8a622c2c5432dcff2307362cc903ce6bcbe6e45d | /cs_nature_color.py | 902ff9a5ddad1a011fb1b94a55c5eb3f9b205c3f | [] | no_license | HengJiang95/pnp-recovery | 6b1a9f4d365f00cdcf1be7d944e2c58e35381ecf | 972c77c3437132d3962397a79cb8359800f7c159 | refs/heads/master | 2023-08-28T00:06:13.374023 | 2021-10-25T23:58:56 | 2021-10-25T23:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import json
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
import numpy as np
from tqdm import tqdm
import scipy.io as sio
from datetime import datetime
from skimage.measure import compare... | [
"jeremyliu@jeremys-mbp.dhcp.wustl.edu"
] | jeremyliu@jeremys-mbp.dhcp.wustl.edu |
da3114def69813e92a9e2de734492f4c78dbde53 | 51aeb075950b3bfc9e3ecab2476219a188747887 | /ebayClent.py | f3edcb5bda7f35b594c93fb9a24ddcfeb1404ef0 | [] | no_license | aicoregit/ebayPOC | 1d6e0f83ed13d5e882b3bd88c617d386bb68b32e | 13cf6dd201a6dd8e3722f16c2909aa3e7ce0dd01 | refs/heads/master | 2020-03-17T17:38:47.644445 | 2018-05-17T10:24:56 | 2018-05-17T10:24:56 | 133,796,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | import json
import string
import os
from os.path import join, dirname
from os import environ
from flask import Flask, render_template,request
from flask import flash,redirect,jsonify,url_for
import imageStats as ist
app = Flask(__name__)
@app.route('/')
def index():
print ("I am in root")
return re... | [
"aicoregurgaon@gmail.com"
] | aicoregurgaon@gmail.com |
fa89c2b5471eefbf222f8142835081003be7ccbb | 610942849a2fac0b229af569c0c3db001d87eb94 | /utest/libdoc/test_libdoc_api.py | de2ea0957c9f96a0f21a95212f20f403dd24236e | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | jnhyperion/robotframework | a6befd1c2d50d08b7c625a73228b43c04769ca3d | 559eb744c26f6acf11eb2d3a11be8343532c9a90 | refs/heads/master | 2023-01-27T12:50:41.962755 | 2022-08-24T08:33:03 | 2022-08-24T08:33:03 | 273,444,398 | 1 | 0 | Apache-2.0 | 2023-01-13T08:09:17 | 2020-06-19T08:30:13 | Python | UTF-8 | Python | false | false | 1,388 | py | from io import StringIO
import sys
import tempfile
import unittest
from robot import libdoc
from robot.utils.asserts import assert_equal
class TestLibdoc(unittest.TestCase):
def setUp(self):
sys.stdout = StringIO()
def tearDown(self):
sys.stdout = sys.__stdout__
def test_html(self):
... | [
"peke@iki.fi"
] | peke@iki.fi |
65671d098435909935799ce253b7923906501a6e | ffa8a728f43b6de2b9a4dbfda18f3eb8518fbbbd | /snmp-mibs/DIFFSERV-MIB.py | a6c5c50bfcc5d7792053db572f5febdaddf3aee1 | [] | no_license | oriordan/pysnmp_mibs | 60e0d80e3f50490d9e6ab29d21627fec59ab0cfc | 92d39abf358a952e55a426e2a4658f4b0824182f | refs/heads/master | 2021-01-09T23:37:59.137750 | 2014-11-26T20:07:28 | 2014-11-26T20:07:28 | 20,253,987 | 11 | 15 | null | 2020-07-26T02:49:32 | 2014-05-28T10:43:18 | Python | UTF-8 | Python | false | false | 99,645 | py | # PySNMP SMI module. Autogenerated from smidump -f python DIFFSERV-MIB
# by libsmi2pysnmp-0.1.3 at Thu May 22 11:57:34 2014,
# Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)
# Imports
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", ... | [
"oriordan@devel.hu"
] | oriordan@devel.hu |
d132c8bea7da8ecebaed612ee9a1b49bfa5bea2c | 8abd1acac7b4b27d4ee2bd41fe7e1548e844c996 | /app/droids/migrations/0001_initial.py | 072a5369b833d19453a18f4082c9edd94bdca785 | [] | no_license | Eduardo-Lucas/finxi-challenge | 047c3b047e054d56af00fb1dd27d330a6ad4fa67 | 4c4ddc61e21759f648a1bfd9e85059ed62bd2132 | refs/heads/main | 2023-01-23T22:43:02.651644 | 2020-12-11T01:10:02 | 2020-12-11T01:10:02 | 319,778,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,867 | py | # Generated by Django 3.0.5 on 2020-12-08 22:20
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"eduardolucas40gmail.com"
] | eduardolucas40gmail.com |
8dd5c50b0655740204fdad26e5451ea16c624a82 | 506f5da3ab7675b8beb406e735f837927623d705 | /docs/conf.py | ce82727ae6c3b4977951b6b9797a5b52185ddcff | [
"MIT"
] | permissive | pombredanne/weavery | 367801fc9bdc5bede53bbbbd6d35e2144f6323ef | b5cfe5387f6d14aa3fa09487bd60748bec79fc63 | refs/heads/master | 2021-05-09T18:19:24.533464 | 2017-10-07T05:07:27 | 2017-10-07T05:07:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,366 | py | # -*- coding: utf-8 -*-
#
# weavery documentation build configuration file, created by
# sphinx-quickstart on Fri Oct 6 18:15:49 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | [
"mbodenhamer@mbodenhamer.com"
] | mbodenhamer@mbodenhamer.com |
d729f333f519ccc5863d9a1939f99ee263f3564a | c14b741830ace618eb40efb28715d155f35a8be1 | /venvs/edxapp/bin/dog | dd0dd4499fb31b69920bdc580347a6cf09f0630e | [] | no_license | myoortcloud/kmu-edx | 6ad57e44e923e153ad2a6ad5c36f2a4b1f98ecde | 02afdda4f0ce040cd7e542d5d80c3256cd9da4b4 | refs/heads/master | 2021-06-02T17:40:57.408858 | 2014-08-06T08:58:55 | 2014-08-06T08:58:55 | 22,097,363 | 0 | 1 | null | 2020-07-25T21:13:42 | 2014-07-22T08:57:55 | Python | UTF-8 | Python | false | false | 314 | #!/edx/app/edxapp/venvs/edxapp/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'dogapi==1.2.1','console_scripts','dog'
__requires__ = 'dogapi==1.2.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('dogapi==1.2.1', 'console_scripts', 'dog')()
)
| [
"dotmagi@me.com"
] | dotmagi@me.com | |
c5a1c49864b92fb6c4dcd7ee138f89563b247dae | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/license/consumedtask.py | 755a8455d7a73d4dbda910708d94f6333059703c | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,767 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
62361eb87710b279729da8b952f3620d1ec987ad | bd0f6f590324a74d643d7684aae361d47e558652 | /dug/dist/dug_2.3.py | ee35fb69e0e38e97152d16b30c232a8360e813f6 | [] | no_license | pasckosky/tools | d7173337dd914a0887cff2f46d903c1baa663a98 | 5cafd51bfdece75fa2aebc660221a8b89832b38c | refs/heads/master | 2021-01-10T05:24:11.118616 | 2020-06-29T13:25:02 | 2020-06-29T13:25:02 | 45,534,573 | 3 | 2 | null | 2020-06-29T13:32:54 | 2015-11-04T11:27:15 | Python | UTF-8 | Python | false | false | 13,206 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os, re, glob, math
import subprocess
from subprocess import *
import codecs
__version__ = "2.3"
# ANSI COLOR SECTION
def rgb(r,g,b, bgnd=False):
assert( 0 <= r <=5)
assert( 0 <= g <=5)
assert( 0 <= b <=5)
code = 48 if bgnd else 38
return ... | [
"l.pascali@4sigma.it"
] | l.pascali@4sigma.it |
5f1a9693ae8b87d22ffb444dacd8ef3562f6ac77 | f43d3731a21ee5df09298f5541b52484f408e010 | /NewsModel/migrations/0008_auto_20170815_1747.py | 479138d6adfe7c26b885c29401ac5f0adb3f2221 | [] | no_license | cash2one/wechat_admin | 2ba8c35deffff37c263b7091229ba2d86f2aaeaf | af0712fdad867d76dcee2092abcf32cada49d075 | refs/heads/master | 2021-05-04T22:22:53.514787 | 2017-09-25T10:03:07 | 2017-09-25T10:03:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-15 09:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('NewsModel', '0007_auto_20170815_1741'),
]
operations = [
migrations.AlterFi... | [
"“545314690@qq.com”"
] | “545314690@qq.com” |
35dc60c999f3dab63247465efc143532180259e4 | 5fb9a72d026babec1cc2f82a0e898f7343ce6301 | /lavisco/lavisco/asgi.py | bd099d4dfa2169aff0824a6456b767608b6f0c32 | [] | no_license | lavisco/Lavisco-Backend | 7d43296e3b5525fa9592f6460cb54470531817d1 | ece1d62a714a46e26ce67340b2cb97a806484e55 | refs/heads/master | 2023-06-08T16:00:00.288288 | 2021-06-25T05:10:35 | 2021-06-25T05:10:35 | 371,361,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for lavisco 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"iamnasir345@gmail.com"
] | iamnasir345@gmail.com |
725ca0aa34409eb47d481e48a76117afa84aa1e1 | 4bee27eb8cd6d20a69cd9fbafa987a413cb1b094 | /implementation/python/pantoto-mango/pantoto/forms.py | 203dc26ea24b646be706cd7d1d58d142d597de9e | [
"Apache-2.0"
] | permissive | janastu/pantoto-prototype | 14f214d105b6729a9d883464e9141d515cfc166f | b4882912c1c308e043281349377d40261ce89056 | refs/heads/master | 2021-01-20T06:23:31.753815 | 2012-05-14T08:12:25 | 2012-05-14T08:12:25 | 4,167,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | from django import forms
from pantoto.models import User
def clean_password(self):
if self.data['password'] != self.data['confirm_password']:
raise forms.ValidationError('Passwords do not match')
return self.data['password']
class BaseForm(object):
"""
extra_fields = {}
clean_methods = ()
... | [
"nadin.kokciyan@boun.edu.tr"
] | nadin.kokciyan@boun.edu.tr |
5f404342d917c2743e97ba3a1bb6c1c9e84983ca | ee1f31e9f6b740dde6ac21d9514344c1175c415d | /Software de Ingenieria/Tarea 1/Solucion/descomposicion.py | 55c905d29d7ed2bc001d344fbe795eff79edf9fb | [] | no_license | DotPin/INFO290 | f8561c1fef579d17b068765df68f7a9ffcd543e0 | 48eefaa89a46ecac1644a41ec00ba7d9a81e01b1 | refs/heads/master | 2023-04-03T00:49:22.418917 | 2021-03-31T21:56:56 | 2021-03-31T21:56:56 | 353,183,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# validación de tipo de elemento isinstance(valor, tipo) = true/false
#Script que recibe un archivo con "n" polinomios para generar matriz A y vector B del sistema lineal Ax = B
#Este script realiza la descomposicion solo si la variable simbólica nodal del script "valores" es ... | [
"hackerter@gmail.com"
] | hackerter@gmail.com |
2df61bc85a26107845872a5644853c1039d49c00 | 675ee549c4ed5f4f19e574d02d09706dceb8942a | /算法分析和归类/动态规划/三步问题.py | 6b7de2fe2cf4f9770c4754a498225138b221302f | [] | no_license | Carmenliukang/leetcode | ac0ed56d52c39a8d9d4755fc90dc791ec5b5d388 | af13162360a28a0bcd71918fd8bff77c41ddcc2a | refs/heads/master | 2022-07-04T08:44:50.738564 | 2022-07-03T06:50:09 | 2022-07-03T06:50:09 | 230,922,601 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
三步问题。有个小孩正在上楼梯,楼梯有n阶台阶,小孩一次可以上1阶、2阶或3阶。实现一种方法,计算小孩有多少种上楼梯的方式。结果可能很大,你需要对结果模1000000007。
示例1:
输入:n = 3
输出:4
说明: 有四种走法
示例2:
输入:n = 5
输出:13
提示:
n范围在[1, 1000000]之间
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/three-steps-problem-lcci
著作权归领扣网络所有。商业转载请联系官方授权,... | [
"17621173188@163.com"
] | 17621173188@163.com |
b419828ae3ce92ddec47d5eb90005d575fb2bf97 | d65128e38be0243f279e0d72ef85e7d3c5e116ca | /base/site-packages/gdata/calendar/__init__.py | cea1a03f5836de81918a9ea01e2fcc841928e682 | [
"Apache-2.0"
] | permissive | ZxwZero/fastor | 19bfc568f9a68f1447c2e049428330ade02d451d | dd9e299e250362802032d1984801bed249e36d8d | refs/heads/master | 2021-06-26T06:40:38.555211 | 2021-06-09T02:05:38 | 2021-06-09T02:05:38 | 229,753,500 | 1 | 1 | Apache-2.0 | 2019-12-23T12:59:25 | 2019-12-23T12:59:24 | null | UTF-8 | Python | false | false | 34,390 | py | #!/usr/bin/python
#
# Copyright (C) 2006 Google 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 law ... | [
"edisonlz@163.com"
] | edisonlz@163.com |
f5ba558406123f1f7bce37bccb8384465fed393d | f2ce68dd5228dec2146d2dc3ae587d040fede182 | /casiapp.py | d53e461fc864ee581371ce4def05ebd0cd0b96c9 | [] | no_license | OrbisGeoscripting/App_Anla | 0e9f7daebe43f16ff3e77f2b29c72c0722a4e721 | 759286153e4c1ae5043f6f0787695c539a5be8c7 | refs/heads/master | 2023-03-20T22:23:47.280314 | 2021-03-13T01:33:24 | 2021-03-13T01:33:24 | 347,203,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,213 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 16 09:12:48 2020
@author: ASUS
"""
from ttkwidgets.autocomplete import AutocompleteCombobox
import pandas as pd
import sqlite3
import tkinter as tk
from tkinter import *
from tkinter import ttk
from tkinter.ttk import *
from tkinter import font
from tkinter import filedi... | [
"andressalmercado@gmail.com"
] | andressalmercado@gmail.com |
334c51b73d7022c6c19cd123e27e85f1e81b6820 | 2c6e32da9f834229778538894f9e1290d9cb019a | /categories/migrations/0003_categorypromotedvirtualtype.py | b5d5ba8a1af6e263114367473bbac4489b3fc2f5 | [] | no_license | torchbox/yg-category-poc | 1a44eed35284e5af2e23426569cd2bfce2212e28 | b7b90f28a49313e90e0dc1ef1355d4cb01fa1c21 | refs/heads/main | 2023-06-09T18:36:59.999421 | 2021-06-17T15:14:25 | 2021-06-17T15:14:25 | 377,487,159 | 0 | 1 | null | 2021-06-17T15:14:25 | 2021-06-16T12:22:38 | Python | UTF-8 | Python | false | false | 1,002 | py | # Generated by Django 3.2.4 on 2021-06-17 14:33
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('categories', '0002_categoryassignedvirtualtype'),
]
operations = [
migrations.Cr... | [
"noreply@github.com"
] | noreply@github.com |
78551777dfbdcc9e7a1a58def88a6283e11c76ff | 4fb431f6d52a693781fec2e3530d02974222f7d2 | /relax.py | 1941dcb68632f57f7630b3cd8be68320bdb9481b | [] | no_license | masonparkes/VoltageRelaxation | 6b902e25e6b375fabbe392a5c53042d1a7dd01be | 3ba19ea8a5cede32236734d378c477c35d39bd24 | refs/heads/master | 2020-04-04T00:05:36.351429 | 2018-11-01T00:29:39 | 2018-11-01T00:29:39 | 155,639,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
size=7
boundary=[[0]*size for i in range(size)]
for i in range(len(boundary)):
print(boundary[i])
print()
boundary[0]=[1]*size
boundary[size-1]=[1]*size
for i in range(size):
boundary[i][0]=1
boundary[i][6]=1
for i in range(... | [
"masonlparkes@gmail.com"
] | masonlparkes@gmail.com |
9e79a92a4515b71e0e276845765b589715364663 | e769cd6e2482dc050f0c1f781e00c48b949185f5 | /flashcard_Project/flashcard_App/serializers.py | 5bcd8210cb50933993120482479980db18fcb2ec | [] | no_license | gloera92/Flashcard_App | 4851248c8de772f64bfe9eed682a8cf23ced452a | 745b42379b49d077e49f0d21c7ce6a0080c3bee6 | refs/heads/main | 2023-04-30T07:12:26.286579 | 2021-05-04T19:00:09 | 2021-05-04T19:00:09 | 363,980,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from rest_framework import serializers
from .models import Flashcard
from .models import Collections
class FlashcardSerializer(serializers.ModelSerializer):
class Meta:
model = Flashcard
fields = ["id", "word", "definition"]
class CollectionSerializer(serializers.ModelSerializer):
class Meta... | [
"gloera8325@gmail.com"
] | gloera8325@gmail.com |
4146b01cdc42e52190557a0b43c11f6356c69f02 | 2a346233b429df46967c73daea23dfaec6d270d1 | /quick-cocos2d-x-3.6.3_community/tools/tolua/genbindings.py | bbc8453189cb92fe2a5b6952e259d80717b6d717 | [] | no_license | tsing7x/Tool.engine | 892c8b84cc59f650ea91a0e14af29c6ef60dec7f | c5390671be1a59a0f99a7d2dea4c15209902a4af | refs/heads/master | 2021-05-05T04:25:41.209530 | 2018-01-25T04:20:15 | 2018-01-25T04:20:15 | 118,639,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,580 | py | #!/usr/bin/python
# This script is used to generate luabinding glue codes.
# Android ndk version must be ndk-r9b.
import sys
import os, os.path
import shutil
import ConfigParser
import subprocess
import re
from contextlib import contextmanager
def _check_ndk_root_env():
''' Checking the environment NDK_ROOT, w... | [
"com.flt.tsing7x@gmail.com"
] | com.flt.tsing7x@gmail.com |
21e1b2c737d475de3f5de7e640db966e68e91b91 | 686dfacc02293c8e089c11b79bb80372e6196a6d | /tools.py | 138d376b81c2b3040d0ef0ed0d71c70bcc1b2f67 | [] | no_license | davidyan0429/SocialListening_DLTrain | 31a367bf75c6c0504cf983dd1d5668253432e730 | ba44f07c4c888cc90845669b894364731ec2e3c2 | refs/heads/master | 2020-03-23T09:25:07.287794 | 2018-07-18T05:48:02 | 2018-07-18T05:48:02 | 141,386,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,652 | py | # -*- coding:utf-8 -*-
import numpy as np
import codecs
import operator
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential, Model
from keras.layers import Embedding, Dense, Dropout, LSTM, Bidirectional, Input, TimeDistributed, Convolution1D, GlobalMaxPooling1D
from keras.c... | [
"davidyan@yanweideMacBook-Pro.local"
] | davidyan@yanweideMacBook-Pro.local |
58dd5fde063d10dd5101d306584cd736be36c437 | a6fa1de46eb869c84d22662d7602a92ac1893a4b | /registro/models.py | 5f631d4f7990756b1f1a88d23e6f9d3cfc0788a7 | [] | no_license | tufikaued/mecanicaRapida | b0816b46b7e82678c08e50499ac0374087300400 | 2b9b3dfb7c6f84654dbb2b0f09064a23c014fab5 | refs/heads/master | 2020-05-09T19:10:19.025339 | 2019-04-27T02:07:27 | 2019-04-27T02:07:27 | 181,369,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,546 | py | from django.db import models
from django.utils.timezone import now
from django.urls import reverse
from django.contrib.auth.models import User
from django.template.defaultfilters import slugify
# Create your models here.
COLORS = (
('red', 'Rojo'),
('blue', 'Azul'),
('white','Blanco'),
('Green','Verde'... | [
"tauedb@gmail.com"
] | tauedb@gmail.com |
586ad0103c3a894f7a97fab1082d6b4ed5220fd3 | f09e98bf5de6f6c49df2dbeea93bd09f4b3b902f | /google-cloud-sdk/lib/surface/auth/__init__.py | f02fed108e951643a585b30690c3e329b4aeaf4e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Peterfeng100/notepal | 75bfaa806e24d85189bd2d09d3cb091944dc97e6 | d5ba3fb4a06516fec4a4ae3bd64a9db55f36cfcd | refs/heads/master | 2021-07-08T22:57:17.407571 | 2019-01-22T19:06:01 | 2019-01-22T19:06:01 | 166,490,067 | 4 | 1 | null | 2020-07-25T04:37:35 | 2019-01-19T00:37:04 | Python | UTF-8 | Python | false | false | 2,031 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"kevinhk.zhang@mail.utoronto.ca"
] | kevinhk.zhang@mail.utoronto.ca |
6cbf1c5097f9834fbd8c037f8a4d276249807e39 | 0bf87b53ef314a9559035667654a20c01375d560 | /plot.py | 013a81d7b6ce1f23c882a0fa6316383fe5f61a77 | [] | no_license | gkumar19/190801_neural_network_for_nonLinear_optimisation | ffd5f1f0a9aba91a467fd3a3eaec63ae5984c24b | cdb695c97e4977b01b24e6f4a0f48f27803e387c | refs/heads/master | 2022-12-12T20:31:17.669648 | 2020-08-28T05:41:42 | 2020-08-28T05:41:42 | 271,487,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,912 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 28 19:25:41 2019
@author: KGU2BAN
"""
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
from ml import ml_r2_list
from nn import nn_merge_predict
from utils import timestamp
def plot_main(fig_title, num_graphs, num... | [
"noreply@github.com"
] | noreply@github.com |
512ca79537629ae4500660dc50107986084126b0 | 64b5e975af8681da330190dc7aa6f1d20eb810d9 | /pro-7/code.py | 8574711dadb84eee5715579faff39bc0d7c10360 | [
"MIT"
] | permissive | madhav1803/greyatom-python-for-data-science | fa9d51c06e711a275e3db1d836c160f8c2b014e6 | ea0bf98a8a38804dbd4450d88c7db2b89eb3e4de | refs/heads/master | 2022-11-11T12:01:04.605146 | 2020-07-01T05:05:05 | 2020-07-01T05:05:05 | 268,328,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | # --------------
# Importing header files
import numpy as np
#New record
new_record=[[50, 9, 4, 1, 0, 0, 40, 0]]
#Loading data file and saving it into a new numpy array
data = np.genfromtxt(path, delimiter=",", skip_header=1)
print(data.shape)
#Concatenating the new record to the existing numpy array
cen... | [
"madhav1803@users.noreply.github.com"
] | madhav1803@users.noreply.github.com |
c1e3dce31ab3f2259b84c16695ec02b683b497d8 | 1752e7d1cd7bca76b3e8eaf1b2bb7eee175e1d46 | /gitwrapperlib/_version.py | 96d0effe0e9f44c11ba9837acb4c44ace0a752bf | [
"MIT"
] | permissive | costastf/gitwrapperlib | f231947aeecea86ca00c556785318032559a6b3c | 521948528c175e5d1cd5c9b794a5927c50fbb78f | refs/heads/main | 2023-08-16T23:43:05.317150 | 2023-06-13T11:30:44 | 2023-06-13T11:30:44 | 116,044,039 | 0 | 5 | MIT | 2023-09-06T18:29:46 | 2018-01-02T18:19:00 | Python | UTF-8 | Python | false | false | 2,194 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: _version.py
#
# Copyright 2018 Costas Tyfoxylos
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including withou... | [
"costas.tyf@gmail.com"
] | costas.tyf@gmail.com |
23febfba04214345d885e8d55df290e19e8e63c5 | 4edaf22a5223aabdaec1e0c53600c29e03300cfa | /PhotoBooth.py | 0597ec27683f90fc3082ea11940dda1939759bf4 | [] | no_license | marccals/PhotoBooth | a3bc2d47f9812e810ef05691e434461ddcaaf65d | 1732b275fb1f6f43474e2351ce98209a4ee8fdca | refs/heads/master | 2021-01-23T14:18:27.838037 | 2017-08-26T08:43:17 | 2017-08-26T08:43:17 | 93,251,385 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | from BlinkingLed import BlinkingLed
from InputButton import InputButton
from Camera import Camera
from PhotoPathUtils import PhotoPathUtils
import subprocess
import os
import signal
compose_and_print_process = None
def cancel_print(bin_var):
global compose_and_print_process
#Detected some electronical device... | [
"marcfocus@hotmail.com"
] | marcfocus@hotmail.com |
542911d62b7152a70b59fdfaa00de26763535d4e | 2c0c3113e0dcd2defacaf6dbad88cfb126d59573 | /Movie_project/media.py | f0bf6e0c6f30e0adaddb460a186eecbce364c352 | [] | no_license | gtxll8/Udacity_Homework | c7b925db91a8b2d3c3c3cbdf16d0e219a890a762 | 1a583df2dd524fe3e34459808d96ab3772f89ae4 | refs/heads/master | 2021-01-10T21:25:05.107156 | 2015-11-05T10:22:19 | 2015-11-05T10:22:19 | 30,597,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | __author__ = 'gcalinescu'
import webbrowser
class Movie():
""" This is the documentation for media class
class Movies contains information about a movie
and can be extended to as many attributes as you want.
"""
VALID_RATINGS = ["G", "PG", "PG-13", "R"]
def __init__ (self, movie_title, movie_... | [
"george@chessborg.com"
] | george@chessborg.com |
8d72a1f6de5f7cd5b4ddf699eba0de9e05b8231c | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/add_program_response.py | 8fba53ef1e1dfa09c08d0090bc1597b16b2eeefb | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AddProgramResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a2228492b547a8d14777ac355c89540c69584f66 | 1fc3879aca40babe57ed4c4e3e696d9e4d116ce8 | /ja/ja.py | 282a6361a90bfaac44d7fe0f409280d6ca488765 | [] | no_license | SXVBAKA/gittest | a7b9857ff03f289c97619259271669aa609f6b0c | 54af6a4bf11637257110a3043ad56c8905d535d6 | refs/heads/master | 2020-03-28T10:03:16.705939 | 2018-09-19T07:48:34 | 2018-09-19T07:48:34 | 148,079,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print('hello ja') | [
"jorjolandes@gmail.com"
] | jorjolandes@gmail.com |
9ea58e81f9278bd420e79295e83a82243615180c | 1c07f2090687a7789528ee5e674c39c019ecb57d | /src/server/venv/bin/pip | 5ed4d16b44aeaf8f622f6490fb9c51078387fe16 | [] | no_license | GitYR/EEG-Communication | c37a5e8f6f27f1d2cc9907b0580db0639a2498fd | 7064d8efcdba18f235b1b46c0137559f760abac0 | refs/heads/master | 2022-09-24T21:35:29.892217 | 2020-05-27T09:54:48 | 2020-05-27T09:54:48 | 266,724,514 | 0 | 0 | null | 2020-05-25T08:24:45 | 2020-05-25T08:24:45 | null | UTF-8 | Python | false | false | 265 | #!/home/hayoung/PycharmProjects/EEG_SERVER/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"l4538@naver.com"
] | l4538@naver.com | |
1321644af5cf1df231b20e919770b1024215fc6b | fa8ff6bfb469c25b8cf597cb94660d7bb0b52d05 | /NL wind speed forecasting/WeatherGCNet/dataset_wind_nl.py | 1487a33544921f7b7407d33a6d1e5f4c77889169 | [] | no_license | t-stanczyk/WeatherGCNet | 77177f0f918e21b66922ce667e873f44bbe75333 | bf2f4756e85075f08f2b2092779d88d4a7c6870d | refs/heads/main | 2023-08-05T21:11:56.172284 | 2021-10-07T11:07:31 | 2021-10-07T11:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | import torch
from torch.utils.data import Dataset
import pickle
import numpy as np
class dataset_wind_nl(Dataset):
def __init__(self, dataset_path, inputTimesteps, predictTimestep, train):
with open(dataset_path, "rb") as f:
data = pickle.load(f)
self.inputTimesteps = inputTimesteps
... | [
"stanior666@gmail.com"
] | stanior666@gmail.com |
898929afacfeff526be8fde618a413578fe7dc07 | 0ddb0171c05ee29493a91ca48a3d9fa70123514f | /xtech/Parameter tuning of factors/tuning.py | c96f1cda4ab1ac4d2585ed16bc3eaf4640855815 | [] | no_license | chenhy05/python | f4bdc72181d8134ee3e28c3b16591610af0fe605 | 0e053541cd82cf20dc38797fe20a850a79f3307f | refs/heads/master | 2020-03-23T23:20:51.881980 | 2018-07-25T02:49:36 | 2018-07-25T02:49:36 | 142,229,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,844 | py | from definition import *
import copy
import pandas as pd
import numpy as np
import os
import shutil
import multiprocessing
from random import random, randint, choice
from copy import deepcopy
def calculate_revenue(tree,maxgen,data):
#给初值
#global data
paramnode_list = get_paramnode(tree)
for leaf in para... | [
"noreply@github.com"
] | noreply@github.com |
0029d4157cbea838a20d22667b5b926569c0ba4a | 73d87e72ab973bd91267b9baed734aa041c51274 | /model/SG/models/CaptionModel.py | 3d89ec7fa68c76b5a8a7aa9bac9103c64323fe94 | [] | no_license | why-ang/image-captioning | 17d1f17105f67bc9c3af34e6247ec67e7e26fa3c | 8e9433f18c2167317c546c56bd2b234c2f59c63b | refs/heads/master | 2020-07-26T22:36:13.897695 | 2019-10-05T17:25:30 | 2019-10-05T17:25:30 | 208,785,674 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,400 | py | # This file contains ShowAttendTell and AllImg model
# ShowAttendTell is from Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
# https://arxiv.org/abs/1502.03044
# AllImg is a model where
# img feature is concatenated with word embedding at every time step as the input of lstm
from __futur... | [
"noreply@github.com"
] | noreply@github.com |
08f549847bb31b877dee9d802e14fd7e1efa3d07 | 45446bb4ebf0cc4ed06b9aef4695423e398a759a | /src/play.py | 99032a465666f6778e028787ea74cfdf491fa312 | [] | no_license | GreenieQwQ/WuZiQi | a9e82468f7734cfd1c1e858a1e6d2ef624130e20 | 21cea7b2fc69b7ca730c5df2e27ec72716e0d412 | refs/heads/master | 2023-02-27T17:42:02.332887 | 2021-02-04T12:17:26 | 2021-02-04T12:17:26 | 335,943,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from __future__ import print_function
from base_game import *
from minmax import *
class Human(BasePlayer):
def __init__(self):
self.player = None
def get_action(self, board):
try:
location = input("Your move: ")
if isinstance(location, str):
location = ... | [
"1356672774@qq.com"
] | 1356672774@qq.com |
b068afe971de798d1bf21746fdf4dc575240845a | c5522990d6f91e1f05576f6854ae50cab68e46ff | /python/util/cpu_count.py | fdb46b53d4c297cb69a285546cbd427fdda861fe | [] | no_license | xjqd/codes | 747ee469eacb5bbf21f8de95e6261d133cfa5265 | a965de3e340d95cff04632ea702e8871a8c1cd54 | refs/heads/master | 2021-01-09T21:51:56.161000 | 2015-11-22T11:31:23 | 2015-11-22T11:31:23 | 43,555,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | #!/bin/python
import multiprocessing
print multiprocessing.cpu_count()
| [
"jianxueqd1@alcatel-lucent.com"
] | jianxueqd1@alcatel-lucent.com |
57d48a88d508f460748993910310d0018c27bb51 | 61cdbd78656b3d515958357b43128521895345a0 | /DCGAN_demo.py | ed27065749e8b3346fbe7130467839f16b5aba7c | [] | no_license | vinklibrary/Pytorch_GAN | 03563c7b7efa728fb4b0b41104e8057f422d992e | 772715809276dfa7723cffb930972aacd84013e4 | refs/heads/master | 2020-05-30T05:35:36.058131 | 2019-05-31T09:14:04 | 2019-05-31T09:14:04 | 189,564,171 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,443 | py | from __future__ import print_function
import argparse
import os
import random
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.utils.data
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torchvision.utils as v... | [
"shenxvdong1@gmail.com"
] | shenxvdong1@gmail.com |
c1e0a3c70cfd90f4753bc9b46c101c2e7ad1227d | 7b8e6955b9237f29090ceb3b4fa830584acfc31c | /P5T2_FeetToInches_KaylaWard.py | a7da66dc33fb1473787a3d492c431cf96585daef | [] | no_license | wardk6907/CTI110 | e4f47abd866177625c7d7deacb2f8b026943903e | 2a69fb6811bcd7e429a14df94f4c69adf65fe572 | refs/heads/master | 2020-03-28T11:17:19.260047 | 2018-10-15T17:51:41 | 2018-10-15T17:51:41 | 148,197,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Feet to Inches
# 1 Oct 2018
# CTI-110 P5T2_FeetToInches
# Kayla Ward
#
# Constant for the number of inches per foot.
inches_per_foot = 12
# Main Function
def main():
# Get a number of feet from the user.
feet = int(input("Enter a number of feet: "))
# Convert that to inches.
print(f... | [
"noreply@github.com"
] | noreply@github.com |
04137ee3423d4b3bc6ec6e5fc4178faa31599f9f | 578025f6ae1f24a313fa9262f371546b79ca24f5 | /ICS_NSP/ics_nsp/ics_nsp/backend/urls.py | e86f01177a7129207172ba53bc1a96efe42070be | [] | no_license | jackerli/ics-network-topology | 0fa0042d08576cd9982d543c1eafa6209e936e82 | d5269ee043f209e1f278b9927c80057d49f9b132 | refs/heads/master | 2022-12-21T09:04:35.609566 | 2019-06-05T08:14:38 | 2019-06-05T08:14:38 | 176,910,959 | 0 | 0 | null | 2022-12-09T21:36:37 | 2019-03-21T09:19:58 | JavaScript | UTF-8 | Python | false | false | 106 | py | from django.urls import path
from topology import views
urlpatterns = [
path('', views.saveTopology)
] | [
"1481145273@qq.com"
] | 1481145273@qq.com |
b394134511007add981589edcf517152a1f0c034 | 7238751fde1ce0888d0a859021fbd7bdfb3dab13 | /Vsgowner.py | e09211aca49195ab1bb602c22f9960d737649657 | [] | no_license | aleykashanbrand/vsgowner | 0d595917a061bd8542aad5d1e40fae2da969568a | 3580063f8237dcbf09809868051df1e1aad7a854 | refs/heads/main | 2023-05-31T07:26:35.852994 | 2021-07-05T20:47:34 | 2021-07-05T20:47:34 | 383,259,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,542 | py | #!/usr/bin/python2
# coding=utf-8
import os
import sys
import time
import datetime
import re
import threading
import json
import random
import requests
import hashlib
import cookielib
import uuid
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
__author__ = 'Mr-Robot'
__copyr... | [
"noreply@github.com"
] | noreply@github.com |
e8513f443e3176cc8a29a7a555d3f92000524930 | 239763047a6854cc6a770f459dd01444f424c8c6 | /scripts/test.py | dd97da18323a0cc884db93ab32401bd398a736c3 | [
"MIT"
] | permissive | TheKindlerofWildfires/Neurohacking | 7346024086161d70f48d63092aab047ab8815479 | 4407566ddb1b4a19a27f585a0050ab04b2bc5efe | refs/heads/master | 2020-03-28T13:37:32.383007 | 2018-03-02T20:57:17 | 2018-03-02T20:57:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import sys; sys.path.append('..') # help python find open_bci_v3.py relative to scripts folder
import open_bci_v3 as bci
import logging
import time
def printData(sample):
#os.system('clear')
print("----------------")
print("%f" %(sample.id))
print(sample.channel_data)
print(sample.aux_data)
print("--------------... | [
"xwffirilat@gmail.com"
] | xwffirilat@gmail.com |
7cd5ddd71db272ebcc9c2d055ed70b21917b0272 | e5269c7a70980373ea8a5c78649216f360c06d36 | /DataReader.py | dce0f3ec9947e50f605055a7f549165232f97d04 | [] | no_license | DanyangSu/data_io | 64b901e1ee5940d90f8c097b36e8540e58ba9692 | b41df9481f0fa55715c71a66954bb829a54f8bb8 | refs/heads/master | 2020-03-16T15:52:18.178892 | 2019-03-17T04:52:50 | 2019-03-17T04:52:50 | 132,762,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | import pandas as pd
import os
import re
class DataReader(object):
def __init__(self):
pass
@staticmethod
def _filename_pattern(pattern = None, work_dir = os.getcwd()):
"""
Select all files that follow the same pattern, called by read_batch_data
"""
f_ = os.l... | [
"noreply@github.com"
] | noreply@github.com |
3eb3eff800db7bb1b4d19f83e6ade10540f09a7e | 90f2012a72b16893092ea93dfb481a3fba777cb2 | /rule-keeper/tag_recommender.py | 5e445e85eeb1228cf212130f46747ce1f8a4d10a | [] | no_license | solita/solita.github.com | 35f62cf9e2a8e65f45c9acaa7515704dbc74f252 | a348de7dce95a13c024a08f2f0b4fb72137b8e87 | refs/heads/master | 2023-08-24T12:02:58.012858 | 2023-08-18T09:28:22 | 2023-08-18T09:28:22 | 5,763,055 | 21 | 118 | null | 2023-08-18T09:28:33 | 2012-09-11T09:59:48 | Python | UTF-8 | Python | false | false | 2,847 | py | from post import PostData, PostDataExtractor
from rule_keeper import RuleCheckResults
import jellyfish
from functools import reduce
from operator import iconcat
def find_existing_tags(
data_extractor: PostDataExtractor,
post_filepaths_to_extract_tags_from: list[str],
) -> list[str]:
existing_tags ... | [
"arhimenrius@gmail.com"
] | arhimenrius@gmail.com |
c908e3859988f35653deebb62457f73eeba5a12b | c09e2e3b3743b86a24eadd0d62717d4925a661b3 | /setup.py | 5638fab5ecbd18ab65729f9752fc0abd8a87cee2 | [
"MIT"
] | permissive | knowsuchagency/foobar | c0a4a2b067663a8d1b2a26c5ddc2994dc6f05ab9 | b02bea7e6a9af232175443e6b1512fc531b61f40 | refs/heads/master | 2020-12-02T06:36:31.700633 | 2017-07-11T07:21:14 | 2017-07-11T07:21:14 | 96,863,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from configparser import ConfigParser
from setuptools import setup
def get_requirements(section: str) -> list:
"""Read requirements from Pipfile."""
pip_config = ConfigParser()
pip_config.read('Pipfile')
def gen():
for it... | [
"knowsuchagency@gmail.com"
] | knowsuchagency@gmail.com |
db9b04a272126f991bb34f351bc484e806e522d2 | ea5cb47780499016ad4a09c300358df96ce6b22f | /examples/py_example.py | a5c08b76bf2962d8f1a569a4869ea37b811c7abc | [
"MIT"
] | permissive | liuguoyou/PyPatchMatch | 84e02d26534fcc62bc2f8368db38dfd9883a074f | 79e5a19296ec044c619484ff7a9e8cded43acd49 | refs/heads/master | 2020-12-08T12:21:43.706407 | 2020-01-10T03:37:10 | 2020-01-10T03:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : test.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 01/09/2020
#
# Distributed under terms of the MIT license.
from PIL import Image
import sys
sys.path.insert(0, '../')
import patch_match
if __name__ == '__main__':
source = Image.... | [
"maojiayuan@gmail.com"
] | maojiayuan@gmail.com |
10df4809b99f84b33fedc96954c9fc4f8b23665d | 6c56a7a814f1a9af1ddef9292c0b51a99e34ec6f | /test7.py | 2667c32c1b32cb989ac155c87ca9042538d1141c | [] | no_license | imsoumya18/indiana_court_scrape | 969236fc68b4ca2fe76e2fb362aaebb4f8a4efb5 | a42108e9f5038d523b4da9acd2c154303816f1ae | refs/heads/main | 2023-06-12T11:13:13.357764 | 2021-07-07T19:23:24 | 2021-07-07T19:23:24 | 380,535,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import time
from pycase import case_02C01
from selenium import webdriver
driver = webdriver.Chrome('chromedriver.exe')
driver.maximize_window()
driver.get('https://chrome.google.com/webstore/detail/hotspot-shield-free-vpn-p/nlbejmccbhkncgokjcmghpfloaajcffj?hl=en-US')
input('Done?')
total = len(case_02C01) - 1
for i in... | [
"soumyadeep184@gmail.com"
] | soumyadeep184@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.