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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38255333d8f523a93519bf60d8f29119afa43269 | a04df1b524a7dc53da195febfc6f5df8c08e0dc5 | /pokemon/migrations/0001_initial.py | 8fd84499ed488a3eb0e404b477db85caa1da6477 | [] | no_license | gorvernment/pnu_class_20190723 | cf1d827d2e5c407928bcc1a610fff9709c25468b | 15692ee237f0fb06d7b1af49c7952f184cb53000 | refs/heads/master | 2022-01-16T15:34:45.811042 | 2019-07-24T08:25:18 | 2019-07-24T08:25:18 | 198,352,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # Generated by Django 2.2.3 on 2019-07-23 06:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"48075099+gorvernment@users.noreply.github.com"
] | 48075099+gorvernment@users.noreply.github.com |
6b1f4ed165609e436d377590f34a8a963e68547f | 5ceea4106e0df754ae581c1f5e2d16082d7b6386 | /hackerRank/data-structures/arrays/arrays-ds.py | 06ca1a9cd3c7a7ac82b9c0bd94010dbf94d9361b | [] | no_license | vikramlance/Python-Programming | b0d4bd70145bfaa7a66434656c5970fbc57e8bd3 | 4094961e3c613e33f2d8a6d30281c60ed09d8c80 | refs/heads/master | 2022-06-17T00:58:50.646615 | 2022-06-03T03:39:35 | 2022-06-03T03:39:35 | 53,989,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | '''
https://www.hackerrank.com/challenges/arrays-ds
'''
#!/bin/python
import sys
n = int(raw_input().strip())
arr = map(int,raw_input().strip().split(' '))
print ' '.join(map(str, arr[::-1]))
| [
"noreply@github.com"
] | noreply@github.com |
eeb5aec1c6d040a0b5825c85021e05fa469deea7 | 59dd62e16e8761490bbdcd0096a9ea3714fb5bad | /chapter_1/question_5.py | f920354b323386c6f7961e9e38b3a214056854f1 | [] | no_license | ndcampbell/practice_questions | a2321ed9d572f1e02e7948da6c8d4d62a3d04295 | aacb09ea3f80861d65a2fb556839843acd60a00e | refs/heads/master | 2021-01-11T09:12:59.194213 | 2017-01-14T20:37:44 | 2017-01-14T20:37:44 | 77,259,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | #One Away: There are three edits that can be done on a string. Insert, remove, or replace a character. Given two strings, write a function
#to check if there are one or zero edits apart
#Thoughts: If strings are same length, all but one character will be the same
#If strings strings are >1 character different, fail
d... | [
"dcampbell@gogoair.com"
] | dcampbell@gogoair.com |
fe7a4edce117c23fb54632a7523492a7efe36909 | 9777ae10e1ec0a5e55e66ae71e2430eaa16ff891 | /tests/q01b.py | 9cdef7d217fd3e733970e1d5bc04197378d40979 | [] | no_license | jkuruzovich/final-starter-2019 | 175f5c65a295112c27c9240c3b14660a2669a875 | 8eed585ce4d4739548c5b3d0dfc82dd63ac3a2ec | refs/heads/master | 2022-03-14T18:43:47.639034 | 2019-12-09T20:15:52 | 2019-12-09T20:15:52 | 184,331,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | test = {
'name': '1b',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> "{0:.4f}".format(round( cost_ny,4))
'15.1882'
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': '',
'teard... | [
"jkuruzovich@gmail.com"
] | jkuruzovich@gmail.com |
54b7e75e1be216ab7e937bea61869259c221f8ce | 86d7d3353455aa45153db31a32a1e042b4d243b6 | /plugins/tangscan/tangscan/thirdparty/requests/compat.py | 75848a5f670649577461d5a1231cfa20422a03e6 | [
"MIT"
] | permissive | sigma-random/PocHunter | 0eccdfcecda735081388da9a3192c69121f75335 | ff2d7e745eabd81ffb77920fe00813b17fc432cf | refs/heads/master | 2020-12-24T10:57:07.461537 | 2016-05-20T01:53:35 | 2016-05-20T01:53:35 | 76,331,575 | 1 | 0 | null | 2016-12-13T06:53:29 | 2016-12-13T06:53:28 | null | UTF-8 | Python | false | false | 1,845 | py | # -*- coding: utf-8 -*-
"""
pythoncompat
"""
import sys
# -------
# Pythons
# -------
# Syntax sugar.
_ver = sys.version_info
#: Python 2.x?
is_py2 = (_ver[0] == 2)
#: Python 3.x?
is_py3 = (_ver[0] == 3)
#: Python 3.0.x
is_py30 = (is_py3 and _ver[1] == 0)
#: Python 3.1.x
is_py31 = (is_py3 and _ver[1] == 1)
#: ... | [
"dave.fang@outlook.com"
] | dave.fang@outlook.com |
009137a3b61958b2ef9248924a5c5b51fbd40a96 | 0822d36728e9ed1d4e91d8ee8b5ea39010ac9371 | /robo/pages/goias/oanapolis.py | b5cc50ea54d8600f47c59fd1327281db8bd8b173 | [] | no_license | diegothuran/blog | 11161e6f425d08bf7689190eac0ca5bd7cb65dd7 | 233135a1db24541de98a7aeffd840cf51e5e462e | refs/heads/master | 2022-12-08T14:03:02.876353 | 2019-06-05T17:57:55 | 2019-06-05T17:57:55 | 176,329,704 | 0 | 0 | null | 2022-12-08T04:53:02 | 2019-03-18T16:46:43 | Python | UTF-8 | Python | false | false | 637 | py | # coding: utf-8
import sys
sys.path.insert(0, '../../../blog')
from bs4 import BeautifulSoup
import requests
GLOBAL_RANK = 2969356
RANK_BRAZIL = 62956
NAME = 'oanapolis.com.br'
def get_urls():
try:
urls = []
link = 'http://oanapolis.com.br/'
req = requests.get(link)
noticias = Be... | [
"diego.thuran@gmail.com"
] | diego.thuran@gmail.com |
67696c8938b4e3ca6b924e26ab1d314d4c4af338 | 33c2c436d5f254ac6fe5e438b52131f78245bb70 | /Final Project Part 2/FinalProject.py | 93d16fcce33ba387b0f6fadea6b4e5afead7782d | [] | no_license | EstebanCam/CIS2348-Final-Project-2 | e4809858cb9a8de30f4c2d89c4bb5789b1b791c7 | b271a920a7457738e2cbcde7429a600d42aabcfa | refs/heads/main | 2023-04-21T22:49:51.025045 | 2021-05-11T19:23:40 | 2021-05-11T19:23:40 | 366,489,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | '''
Esteban Camarillo
ID#:1636095
'''
import pandas as pd
pd.set_option('display.max_columns',500)
pd.set_option('display.width',1000)
#Asking for user to input file name
manufac_list=input("Manufacturer list CSV file name")
manufac_heading=['id', 'man', 'type', 'stat']
manufac_df=pd.read_csv(manufac_... | [
"noreply@github.com"
] | noreply@github.com |
83317fec61698d51c6ba06fc00e058d4afcebadc | 384816d27a6ed3f3c545025aa8b713e2e6f5e16e | /Production Scheduling/main.py | 2eaf5f30a5758dcc9e7bc4ea238830073de3ca9a | [] | no_license | weichen219/Course-code | c326d0044ba3193abbba95c278bf560b9cb18663 | d5e84f226eaec36a17fa756e05d05903d025bfea | refs/heads/master | 2020-03-24T21:15:39.910387 | 2018-07-31T14:30:39 | 2018-07-31T14:30:39 | 143,022,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | from anneal import SimAnneal
import matplotlib.pyplot as plt
import numpy as np
from numpy import random
import random
n=100
upper=150
job_number = np.arange(1,n+1) #建立n個工作
#ptime設為整數
ptime = np.random.choice(upper, n, replace=False) #隨機產生工作的加工時間
test=np.count_nonzero(ptime == 0)
while test==1:
ptime = np.random... | [
"noreply@github.com"
] | noreply@github.com |
394ca5aa490425423f8b5baa05b50dee4488b340 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_052/ch80_2020_06_20_18_56_40_883079.py | 2b0e0c4b3e47da4c259cad01dc2cf476c5c8eca5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def interseccao_chaves (dicionario, dic):
lista = []
a = dicionario.keys()
b = dic.keys()
if a in dic:
lista.append(a)
if b in dicionario:
lista.append(b)
return lista
| [
"you@example.com"
] | you@example.com |
65d37cc5551f5675608a86d19ac24bcd0e82e322 | 9db6bca2c380e59f604d47190e9752b256adfd7d | /rotated_array.py | 80e38d51b0b8ace9e2c6b7fb7298e24bf0aaefed | [] | no_license | Yosolita1978/Practice_Interviews_Challenges | 1c1df1b46667f07936ffcc557adf8c8a58123a4c | f8a991830a4d81849891ed15b2a1cb404dab9efe | refs/heads/master | 2021-01-23T03:44:25.848144 | 2018-08-02T04:22:20 | 2018-08-02T04:22:20 | 86,120,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | """ From cracking the coding interviw pag 150 problem 10.3"""
def find(lst, target):
return findHelper(lst, 0, len(lst)-1, target)
def findHelper(lst, left, right, target):
mid = (left + right)//2
if target == lst[mid]:
return mid
if right < left:
return -1
if lst[left] < lst[mi... | [
"yosola@gmail.com"
] | yosola@gmail.com |
184aee567c00932f2da6e63b046ebeb7d84ed320 | 0ab84738456dd5b5cae9413567642c1c1514b029 | /misc/scripts/split_cmp.py | 7da012e7609a4947c23c7671f82298cd0d7bb548 | [
"Apache-2.0"
] | permissive | npuichigo/voicenet | 3517125b7c37018e2a11aa6417fabb87a32423b9 | 10001321fe474d2f50319e87965e0cde6a436066 | refs/heads/master | 2021-01-25T11:33:38.807114 | 2019-05-16T09:43:06 | 2019-05-16T09:43:06 | 93,933,311 | 67 | 11 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # Copyright 2016 ASLP@NPU. 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 required by applicable law or ag... | [
"418121364@qq.com"
] | 418121364@qq.com |
ef35d9ef72d6e958b5e1ac957ef5842538ae661a | 5f3dec360c0af1aa469645af956a1262b8555efb | /Digital/wsgi.py | 85a72a5cc9fd404e80d49011fb53623e70c116cf | [] | no_license | GerasiMandMumu/DigitalCompany | 709a11de8a888075c4dd9cbdc61e064223bb94c6 | 9e3db4be56914c8450ff1c9f205c4d262ed25821 | refs/heads/master | 2023-04-01T16:53:08.667230 | 2021-04-03T11:35:09 | 2021-04-03T11:35:09 | 347,986,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Digital 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"konst.02@yandex.ru"
] | konst.02@yandex.ru |
6d71567b0dd0716ef746f4c3f9cc3ffe59e3d516 | 837785a6b5a3eba027f5c3e8da6f7456c696cd15 | /nevergrad/functions/pbt.py | d85ff42a27045c71ddd586e70069d8ea6a56607e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | afozk95/nevergrad | 04f0d5a814c7f37fce3ac8b6b079ba1ff61f66e7 | b45441851304d655f309507be60fcd69d77e0989 | refs/heads/master | 2023-05-22T19:19:00.716308 | 2021-06-01T18:47:40 | 2021-06-01T18:47:40 | 372,875,211 | 0 | 0 | MIT | 2021-06-01T15:20:04 | 2021-06-01T15:20:04 | null | UTF-8 | Python | false | false | 5,636 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import typing as tp
import numpy as np
from nevergrad.parametrization import parameter as p
from .base import ExperimentF... | [
"noreply@github.com"
] | noreply@github.com |
9772a0e3675f402d54ce680f87aaf70c21ed6d41 | 239dc36bc1042b5b99bdd1a72aaedeef22327083 | /EionetLDAP/__init__.py | 3f357b41cf398c1bcf42b3cacaaa10d4f88d9d96 | [] | no_license | eaudeweb/EionetProducts | d67c8627317548d17e9662da8d00d4b71a894774 | da85b0001b994cdc6d94d481fd020de69fc10f63 | refs/heads/master | 2021-01-10T20:04:12.867465 | 2011-05-09T13:45:17 | 2011-05-23T13:24:11 | 2,135,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, W... | [
"alexandru.plugaru@gmail.com"
] | alexandru.plugaru@gmail.com |
965d13b5bde559df85dfe534bba36bf9cc0e4168 | bd1ce2e2f4cde1c7fe95e94a866b23202966cb32 | /pyQChem2/create_data_set.py | 5242d05dbcc37361e212556bc9be9977cb2e729a | [] | no_license | danlukic/Butadien_Pattern_Recognition | 86512db6622899405e860ca1631ab58291536c46 | 504814461eb4b4aa48f81bc233c2856e7fec4664 | refs/heads/master | 2021-09-16T10:06:08.360849 | 2018-06-19T10:10:09 | 2018-06-19T10:10:09 | 110,694,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,480 | py | # Script for playing around with FF-based interpolation of ab initio BO-Surfaces
#
# AH 3/9/2014
# Load pyQChem for filehandling
import sys
#sys.path.append('/home/daniel/Dropbox/UNI - Kopie/Bach/butadien/pyQChem2')
import pyQChem2.start as qc
import numpy as np
import copy
#sys.path.append('c:/user/lukic/Dropbox/UNI ... | [
"daniel.lukic@student.tugraz.at"
] | daniel.lukic@student.tugraz.at |
78a17e15609a32e6568f12d333de253c1520c379 | 198e3de2401e548a9bb986dbfd23650ba1abd9d9 | /ConfigInfo.py | 5820db227b55b98a5f473e195e7c81e1b930d464 | [] | no_license | VeraSchild/Little_Birdie_bot | 7c3dbd50e3027f6fd34e0a1bc03a9a11a1ce3bea | 7050eb9d3868eb8984565e334010bd8f11f86a4f | refs/heads/main | 2023-07-12T17:31:27.686764 | 2021-08-31T12:01:35 | 2021-08-31T12:01:35 | 401,296,912 | 0 | 1 | null | 2021-08-31T12:01:36 | 2021-08-30T10:03:45 | Python | UTF-8 | Python | false | false | 1,807 | py | # Simple class for storing and loading configuration info
# about guild id's and post channel id's
class ConfigInfo:
def __init__(self, post_channel=None, guild_id=0):
self.post_channel = post_channel
self.guild_id = guild_id
self.__to_dict()
###################################### SE... | [
"noreply@github.com"
] | noreply@github.com |
fcd5f977b7f29c724c95f2e3d36fb8f42a6e50fe | dbe86e6f76199ccc69afefee8560629b2dd13135 | /kybd_robot.py | f6c0c24c7f8f13b42e9031b7c80fec87f17569dd | [] | no_license | sccabob/PiRobot | 06e5a4a650792090bf331507195f704e8e48f021 | 8127afd9eaccbdf043215e56abc100bb41c56269 | refs/heads/master | 2021-08-10T21:00:09.173642 | 2017-11-12T22:02:02 | 2017-11-12T22:02:02 | 110,456,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | #My robot program
'''A module for controllong my Zumo robot.'''
import RPi.GPIO as robot
import time
import curses
def main():
#use constants rather than pin numbers
#to id pins in calls to GPIO
#rf = right track forward
#rr = right track reverse
#etc, etc.
rf = 7
rr = 11
lf = 15
lr = 13... | [
"bobholahan@gmail.com"
] | bobholahan@gmail.com |
dc0b8ec10e4da91f3f18ddbe881067e3f5d21dc2 | de511a3ebe4fc83c7f9a4e389a5da80f43d00d18 | /test_tsh_dx_module.py | faed1af6511a01aa0ada31a959cf2826b3eec5c6 | [] | no_license | jcoop1219/bme547tsh | 4f6f73a4f8a05f2aca032ea3ccbced057fdfdffc | 8d3ee52c15ffd0c34f71e71c396bf0766bae2722 | refs/heads/master | 2020-04-21T18:55:00.675577 | 2019-02-14T22:00:21 | 2019-02-14T22:00:21 | 169,787,975 | 0 | 0 | null | 2019-02-14T21:52:20 | 2019-02-08T19:31:32 | Python | UTF-8 | Python | false | false | 1,206 | py | import pytest
import tsh_dx_module as tsh
# Populating dictionary with data for testing
inFile = "test_data.txt"
jsonDir = "JSONfiles"
dataFile = tsh.readFile(inFile)
personDictList = tsh.fileToDict(dataFile)
personDictList = tsh.calculateDx(personDictList)
# Setting up test cases for parametrize decorator
case1 = "n... | [
"jason.cooper.12@gmail.com"
] | jason.cooper.12@gmail.com |
46592bd7353b194e91fdbd40140bbbd8ff92a6ab | cc7474d52cfcd124f2ddd4ad4a2cad1d2868bd80 | /unispider/spiders/ppai_scrapy.py | 93b603d685865a4fd45b5ee6a87122cd850af6aa | [] | no_license | yidun55/unispider | 212e81ed49a5bb9ed219cdab8215256bf16694f1 | aa8d826707baedf56028e6307f590458ed683e8d | refs/heads/master | 2020-05-18T16:31:58.346600 | 2015-10-28T13:37:09 | 2015-10-28T13:37:09 | 39,058,048 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,986 | py | #coding:utf-8
"""
从拍拍贷上爬取网贷黑名单
author: 邓友辉
email:heshang1203@sina.com
date:2015/06/10
"""
from scrapy.utils.request import request_fingerprint
from scrapy.spider import Spider
from scrapy.http import Request
from scrapy import log
from scrapy import signals
import time
from unispider.items import *
import sy... | [
"heshang1203@sina.com"
] | heshang1203@sina.com |
f5caa74c84b338447a22f8aa8d6ab32c65490956 | 36174a99b83c3a614328403dbd1208815098a754 | /back/ArticleParser.py | f0ea55a3ad9f12a747f0146bbec2f2da66ef19b8 | [] | no_license | warewaanai/serbanology | 713eef244e5f32c225807ebecf4dc80c9591a496 | 81c4805a891c36a25ae15250460891439cc4bdd3 | refs/heads/main | 2023-06-22T17:56:08.861336 | 2021-07-27T18:42:30 | 2021-07-27T18:42:30 | 301,464,286 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | def tex_tag_parser(txt):
[outside, inside] = [0, 1]
res = ""
state = outside
idx = -1
while True:
idx+= 1
if idx >= len(txt):
break
# Latex Tag Catching
try:
if txt[slice(idx, idx + 3)] == '<$>':
idx += 2
res +... | [
"anai@Serbans-MacBook-Pro.local"
] | anai@Serbans-MacBook-Pro.local |
e9e49bc49111cb0b73f03973bb5551e41c2fe9cb | 09a053c67ff838c5c0c79dac46b8ccf67c5dafed | /DataAnalysisModule/Database.py | 79837d31f5b3b5574018956131b71ab3f370c22a | [] | no_license | kangbeonghyun/Githubactiontest | fa3e1b3f326acd6947e81b9fe71b24eaa14350fb | 41c2d0c143a0ec352e586ef6e31a60f52c71dd0a | refs/heads/master | 2022-11-20T03:12:59.962083 | 2020-07-13T12:52:07 | 2020-07-13T12:52:07 | 279,272,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import pymysql
class Database:
connection = None
def __init__(self, database):
self.connection = pymysql.connect(
host='localhost',
user='root',
password='',
db=database,
charset='utf8'
)
pass
def insert(self):
p... | [
"zxcvb8802@naver.com"
] | zxcvb8802@naver.com |
08ef9ad947328d798492d7b365c3d03eccd5247e | 83f876ded422f9a48574d675360d967c69204a3b | /swami/settings.py | c00ad894f04a9487be20ecdf8d34deee574269fb | [
"MIT"
] | permissive | ManishS6/AES-Encryptor-Decryptor | 975432164e31109da6c5e0ef9d38a542a0175e0d | 9f965b1bd51669c6e7005cb9a28b03d3f5b3dc6f | refs/heads/main | 2023-06-06T20:15:03.740221 | 2021-07-04T11:57:56 | 2021-07-04T11:57:56 | 382,839,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | """
Django settings for swami project.
Generated by 'django-admin startproject' using Django 3.2.3.
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/
"""
from pathlib i... | [
"63586933+ManishS6@users.noreply.github.com"
] | 63586933+ManishS6@users.noreply.github.com |
2e45ed946ff60dd2b0f5abeae6e510dd73e3d67f | 16734d189c2bafa9c66fdc989126b7d9aa95c478 | /Python/small-projects/make_dictionary.py | 6c17de909dd3b4d6068513f34ef23f19786613ed | [] | no_license | Ericksmith/CD-projects | 3dddd3a3819341be7202f11603cf793a2067c140 | 3b06b6e289d241c2f1115178c693d304280c2502 | refs/heads/master | 2021-08-15T17:41:32.329647 | 2017-11-18T01:18:04 | 2017-11-18T01:18:04 | 104,279,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | name = ["Anna", "Eli", "Pariece", "Brendan", "Amy", "Shane", "Oscar"]
favorite_animal = ["horse", "cat", "spider", "giraffe", "ticks", "dolphins", "llamas", 'corgi']
def make_dict(arr1, arr2):
new_dict = {}
if len(arr1) < len(arr2):
big = arr2
small = arr1
else:
big = arr1
s... | [
"smith.s.erick@gmail.com"
] | smith.s.erick@gmail.com |
0d3a244539dc4c9dd3cfb00b9d290f292fa5fa3a | 7cd60660e52ff5008d05d4d8ee87e08133eaca7f | /tests/test_delete.py | d840767d818fb7f2664b8b0a333bcb978dbfc3c2 | [
"LicenseRef-scancode-cecill-b-en",
"CECILL-B"
] | permissive | pchanial/pyoperators | e066a796c24ea590ccedee9d90fc7eb1bede7859 | fb876aeb8177d0ea7ce6e59e0822e31084bb2dd7 | refs/heads/master | 2023-08-16T10:53:04.702375 | 2023-06-14T13:14:57 | 2023-06-14T14:01:46 | 2,327,939 | 8 | 5 | NOASSERTION | 2023-02-22T14:36:22 | 2011-09-05T12:06:50 | Python | UTF-8 | Python | false | false | 865 | py | import numpy as np
from pyoperators import DiagonalOperator, HomothetyOperator, Operator, memory
def test_str():
op = Operator()
op.delete()
assert str(op) == 'deleted'
assert repr(op) == 'DeletedOperator()'
def test_collection_reset():
counter = memory._gc_nbytes_counter
op = HomothetyOper... | [
"pierre.chanial@gmail.com"
] | pierre.chanial@gmail.com |
d3fc2e6d6dcc6480b7ba4edb9c11a2067f88fcbe | ecad43f66fe51366ba3ec2bc863dda647192b868 | /Formation73/pose.py | 441df6ec5f14be0ca21ba8ee3ccb6c487dd67419 | [] | no_license | aarg-kcis/deformable_payload_tranportation | c37136b3f22f657f0127bd0aeaf9bc769f06bfde | f778295e5f83682bfd736684e882bbf207254202 | refs/heads/main | 2023-08-21T09:06:40.828460 | 2021-10-25T11:39:22 | 2021-10-25T11:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | from __future__ import division
from numpy import cos, sin
class Pose:
def __init__(self, x, y, theta):
self.x = x
self.y = y
self.theta = theta
def __str__(self):
return str(self.__dict__)
def tolist(self):
return [self.x, self.y, self.theta]
def update(self,... | [
"subhasis.chand@research.iiit.ac.in"
] | subhasis.chand@research.iiit.ac.in |
357c258cfb065a15ef92828141277f3658ef8cd4 | 3ac3e69ad592c0bc8f100683a59ebbada66410b7 | /07-Social-Analytics/3/Activities/04-Ins_Intro_to_Timers/Unsolved/config.py | 872890cd2346797b04fdb67595f3ef27387913c1 | [] | no_license | Lalitaeranki/UCI-Work | 873d861974aa3c5c071255b21bae54511a2cfde9 | d4db31351764dd284c0c29dc72ec821ac2a5ec73 | refs/heads/master | 2020-04-17T05:26:45.780020 | 2019-01-17T23:15:15 | 2019-01-17T23:15:15 | 166,279,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | # These keys are not valid. Use your own API keys
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
| [
"lalitaeranki@gmail.com"
] | lalitaeranki@gmail.com |
2db581bc6024d29e097e7a06b2bebc300b2818a2 | 2e00b9a9f6630503cfd00cf7ac8508fc6a37745e | /services/db_service.py | c78abbe6aa0ffcf336fe8ee7726d8b348866be86 | [] | no_license | kanchan-dhamane/books_app_backend | bad873341228c337fcb1f20812296538588f0d08 | 902f77a6c4f8ccf8918bbbeb7601ee8b4120f44d | refs/heads/main | 2023-01-13T12:21:10.251971 | 2020-11-23T02:27:11 | 2020-11-23T02:27:11 | 315,101,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | import logging
import sqlalchemy
from threading import Lock
import traceback
#from configs import (MYSQL_USERNAME,
# MYSQL_PASSWORD,
# MYSQL_DB_NAME,
# MYSQL_SMS_DATA_INSTANCE_IP)
class DbService:
__instance = None
connection_object = None
lock = L... | [
"kanchan@getwalnut.com"
] | kanchan@getwalnut.com |
f075c6d17ef148ef9886029e57400495ad8456f2 | 2be4974f587242dabff1309845de59c1c4cb783a | /easytrader/assistant/bot_seller.py | 486544161bdcb50b18c037edcb3cf2354c2eb34b | [
"MIT"
] | permissive | Leonardo-YXH/easytrader | 18005fdb1a89047df4d20444104252540e99b3cf | 2216f2c45ad333afc13ab90ed4bfbc39708c31f5 | refs/heads/master | 2021-06-21T04:21:29.474870 | 2020-12-23T09:31:33 | 2020-12-23T09:31:33 | 145,968,892 | 0 | 0 | MIT | 2018-08-24T09:04:07 | 2018-08-24T09:04:06 | null | UTF-8 | Python | false | false | 12,449 | py | # -*- coding:utf-8 -*-
"""
@author: leonardo
@created time: 2018-10-20
@last modified time:2018-10-20
"""
import tushare as ts
import pandas as pd
from apscheduler.schedulers.blocking import BlockingScheduler
from datetime import date, timedelta, datetime, time
from enum import Enum
import matplotlib.pyplot as plt
from... | [
"1577168398@qq.com"
] | 1577168398@qq.com |
591e28ebb1e16b49fefd2264a09ef9a7568cb6f4 | b7f4271760f0f8f41f9f3f47d1e8431ce30f31c4 | /with_python/assignment_0/sleeptest.py | a6b1afdc2f4bff2d5ca1a7cfe408b93407bca7d9 | [] | no_license | tanviredu/BOHUBRIHI_AL_AND_DS | a2845e3dca5f4629a4ef313a1e89c58ca1536498 | aeccb2762728dca6038e2e7a18975744b8aa2a62 | refs/heads/main | 2023-05-31T02:14:09.450442 | 2021-06-22T18:33:29 | 2021-06-22T18:33:29 | 302,324,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | import time
start_time = time.time()
time.sleep(30)
end_time = time.time()
print(end_time-start_time) | [
"ornobtanvir.git@gmail.com"
] | ornobtanvir.git@gmail.com |
c07de1cf82eae82f060d8053f0405a434c7428c9 | 7d66226a9f5d4585aa068d031f467a620ec42464 | /solutions/python/string-permutations.py | d613fc915ab1e7e38eada7fa34b850233957ecd3 | [
"MIT"
] | permissive | blakeembrey/code-problems | 1b96bd0c8be6e072e532d2d291a5cd3e9dffc9bc | c473ac5125b9510f859d2619de08cf4277828e46 | refs/heads/master | 2023-09-03T00:05:30.763034 | 2022-03-17T00:12:28 | 2022-03-17T00:12:28 | 10,227,799 | 1,577 | 648 | MIT | 2023-01-03T12:26:17 | 2013-05-22T19:19:29 | JavaScript | UTF-8 | Python | false | false | 3,998 | py | #!/usr/bin/env python
"""
This module presents two different solutions for the problem of generating the permutations of a sequence.
"""
from math import factorial
import unittest
def perm_recursive(S):
"""
Return a list with all permutations of the iterable passed as argument.
Uses the simple recursiv... | [
"hello@blakeembrey.com"
] | hello@blakeembrey.com |
d9c11f3d910a7eb7113f213ef03c3c225f5b793a | 82a9a34f8e23650214027bd7a372c0327d10cd6e | /977-A/977-A-46854508.py | cacd7db03f0514002b57960b15178aec958d8f02 | [] | no_license | gautambp/codeforces | 2f63cc2989ed28de761485ca2ce20ffc849f5907 | dcfd63ceece06c8a8c6d5a7d4dfd5f6409ee379c | refs/heads/master | 2022-05-01T00:57:37.854476 | 2019-03-10T15:23:50 | 2019-03-10T15:23:50 | 173,505,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | (ns, ks) = input().split(' ')
n = int(ns)
k = int(ks)
while k > 0:
if n % 10 == 0:
n = int(n/10)
else:
n -= 1
k -= 1
print(n) | [
"gautambp@hotmail.com"
] | gautambp@hotmail.com |
3ddfa87a6c4521cb4a8d453548e73e75948b23b7 | 0ca24e3833a8351ee25e9a6540cafacc7c26e269 | /for_loop.py | 2da251a5fc8133defa09ea9afd76a0367e0d785c | [] | no_license | RaphaelAdewale/myPython-Journey | 7dd21291bde10f5e6ae1472b76758639d5cc1a69 | 889196c060cf8ee279b4c7cf950c2224ffab4f11 | refs/heads/master | 2022-11-28T19:19:24.774601 | 2020-08-06T14:43:38 | 2020-08-06T14:43:38 | 285,595,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | the_count = [1, 2, 3, 4, 5]
fruits =['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
# this first kind of for-loop goes through a list
for number in the_count:
print(f"This is count {number}")
# same as above
for fruit in fruits:
print(f"A fruit of type: ... | [
"noreply@github.com"
] | noreply@github.com |
0c54b57b50dfed89f1e724b54874c36986201d3d | 9e2af0b89aaf0224e88ae31f7609143b60d4a10c | /image_offset.py | 67775ec54612fc77f37cf60c9950518eff176c0a | [] | no_license | com6056/0xf.at | 5043d3f89a96acf1296be6ec6c66b8e8fba554e1 | efb2150511402fe6091b80c80d163b9b8ca11bf8 | refs/heads/master | 2021-01-19T03:12:11.575693 | 2015-05-14T20:05:11 | 2015-05-14T20:05:11 | 35,237,810 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from PIL import Image
answer = ''
image = Image.open('image_offset.png')
picture = image.load()
(width, height) = image.size
for y in range(height):
for x in range(width):
if picture[x, y] != 0:
answer += chr(x + 65)
print 'Answer: {}'.format(answer)
| [
"com6056@gmail.com"
] | com6056@gmail.com |
5dc00e8bf125c32f5ce8a34eea869cdd95a2d6a6 | 0d392fa6e594279ef193597a36fde65c341cf7c5 | /test.py | f80d7b9718267ea298ad2ec5ce51717e1af7a19e | [] | no_license | chimtrangbu/DoorToDoor | a0d542f99f04ec3e5774e8cd49b478e731f4568f | 88891be30ef6aac8714b0fa41d575db47ed7de7d | refs/heads/master | 2020-04-15T04:11:22.943176 | 2019-01-07T03:52:42 | 2019-01-07T03:52:42 | 164,374,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,854 | py | from math import sqrt
from sys import argv
class Node():
'''
each Node object holding each city's coordinates
cal_distance: calculating distance between this Node and another Node
'''
def __init__(self, name, x, y):
self.name = name
self.x = x
self.y = y
def cal_dista... | [
"you@example.com"
] | you@example.com |
b31d3b46b4e4c15e3b46ce5dc7f4d4935e3a1210 | c76d41ef893d3dc1fa6e016852bd338e0af9a0fc | /robot/__init__.py | f658c151a3bbc3edcf6b83ed58cdca9aad5ebf8a | [] | no_license | apiaget/robot | 101a3356a45ef763a7d3654542fb0f7a7ea66527 | 4be2c3c096961c4d2cb6e507298f56ada771238d | refs/heads/master | 2021-09-01T15:05:25.257921 | 2017-12-27T16:02:10 | 2017-12-27T16:02:10 | 106,113,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from .factory import app
#module = factory:create_app()
| [
"axel.piaget@hotmail.com"
] | axel.piaget@hotmail.com |
530041b1c1841b7aa05be738fd338d25da7b3623 | 49759c53d81aa7a351f3d0fb8c4dea7ed92faa07 | /Assignments/test 82.py | 91496740fb1707e9947b60355bff1690a7dcea70 | [] | no_license | lladow/class-work | de47fc56fb90f24f63beeeae7ad3e0c14fd6f798 | 373b251d5b308722bcd7bc18faf66c9d66bf0175 | refs/heads/master | 2021-04-25T16:21:51.871498 | 2018-02-14T00:33:33 | 2018-02-14T00:33:33 | 121,453,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | fhand = open('mbox-short.txt')
count = 0
for line in fhand:
words = line.split()
if len(words) == 0 : continue
if words[0] != 'From' : continue
print(words[2])
| [
"lladow@uw.edu"
] | lladow@uw.edu |
11b5901e21d1f697a4989713681b54e5e5a7150b | e3020f26af0939396229f285501844abfd602506 | /GMVAE/GMVAE.py | fe01378a2b906c03e8e60a8b3b393ef6f3fd554c | [] | no_license | AuroraCoboAguilera/NoRClassifier | 354a547be33d9f5be423126c0c526c7abcb32cb2 | 11175dcd74d3db391e2ec47cbb6e0661ee91a1cd | refs/heads/main | 2023-01-08T15:30:05.789411 | 2020-11-10T08:10:21 | 2020-11-10T08:10:21 | 311,315,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,874 | py | '''
Gaussian Mixture Variational Autoencoder
'''
import os
import sys
import numpy as np
from tensorboardX import SummaryWriter
from torch.autograd import Variable
from LossFunctions import *
from InferenceNet import *
from GenerativeNet import *
class GMVAE:
def __init__(self, args, seq2seq=False):
... | [
"noreply@github.com"
] | noreply@github.com |
7cc2814bf507805fea117e7886926e9f1ad4df7a | 277937ec2b9ae6c6b07aabf5f8ddab321d5c8c80 | /Stochastic Nash-Wardrop equilibrium/oracles.py | 5abec61e286694b1be19a1d6bddb0e8418f125e0 | [] | no_license | tamamolis/TransportNet | d98f8a6002464ad9fca5501cf5917d71f7ae41d6 | 7329aa6d0f6b943e97b0d32c132c3413b78a7c5f | refs/heads/master | 2022-12-24T16:03:24.016648 | 2021-03-05T20:07:23 | 2021-03-05T20:07:23 | 219,997,479 | 1 | 1 | null | 2022-01-09T11:00:46 | 2019-11-06T12:59:06 | Jupyter Notebook | UTF-8 | Python | false | false | 11,754 | py | # from scipy.special import expit
#import multiprocessing as mp
from collections import defaultdict
#from scipy.misc import logsumexp
from scipy.special import expit
import numpy as np
import time
from transport_graph import JitTransportGraph
from numba import jit, jitclass, int32, int64, float64
@jit(["float64(float6... | [
"noreply@github.com"
] | noreply@github.com |
ff087660fb27e3bb64209d9d253d4f1b08e87df3 | adaa76905a26825bc38c18f105489a34058c2abe | /tests/test_token_setup.py | 85516e50688ff309e1ba5bb06772a77e806085be | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | peng-mi/vsan-integration-for-prometheus | 5ebfa4e84c1938059128d3f907226dcfc8a4afed | e1282d4fa752848dda0246eaa10fdce34f8b6d8e | refs/heads/master | 2023-06-22T06:51:11.687327 | 2021-07-21T22:10:22 | 2021-07-21T22:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | #!/usr/bin/env python3
#
# Copyright 2020-2021 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause
#
import unittest
from unittest.mock import patch
from pyVmomi import vim
from testUtil import MockVsanConfigSystem, MockVsanObject
import vsanSetupToken
class TestVsanPrometheusSetup(unittest.TestCase):
@classmetho... | [
"pengm@vmware.com"
] | pengm@vmware.com |
18bf65b91ede81fc160c195e1d93f35b3c373aeb | 2a8707d969bd5966a3249b5bfccc433ad9a229bb | /myblog/migrations/0005_goods_category.py | b3210bd1bb0b72fe26acf6c8017cafee77c6f3e8 | [] | no_license | alexsef/django_second | 9520d889b9cb83cd0f73aa5d38a338b0f7dac021 | 32972892d6d6c6b349ec84418d781de695619586 | refs/heads/master | 2021-01-01T03:45:53.394005 | 2016-05-14T09:12:26 | 2016-05-14T09:12:26 | 58,160,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myblog', '0004_auto_20160505_2207'),
]
operations = [
migrations.AddField(
model_name='goods',
name=... | [
"parisfloor@gmail.com"
] | parisfloor@gmail.com |
574e18ae6052448effac70b56b0ed51203de8f31 | f706fadde57e3319b96c746835b6951e5df66803 | /pylint-report.py | da04dbf4bfef7361fd6d81c50db5f620efa6af9e | [
"Unlicense"
] | permissive | amnong/pylint-report | 3f0e704d59fb42cd8a902fae44be123a40152e62 | a07fa29b0ccb16967e698f372158df4c6012ceef | refs/heads/master | 2022-12-24T20:09:06.038683 | 2020-09-07T13:04:00 | 2020-09-07T13:04:52 | 293,529,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | #!/usr/bin/env python3
import sys
import subprocess
import re
import time
from argparse import ArgumentParser
from collections import defaultdict
from pathlib import Path
IGNORED_DIRS = (
'__pycache__',
)
def main():
parser = ArgumentParser()
parser.add_argument('target')
parser.add_argument('-e', ... | [
"amnon@weka.io"
] | amnon@weka.io |
b86d534c05dd837437bf763d5288b889a307487c | 0676c1ed217329f7649e8dd74d00da97157c356c | /分类/朴素贝叶斯/NaiveBayesian.py | 3fa058efeb0bf027053b0af7935b258408740b98 | [] | no_license | Cobb141/machine-learning | a58f06a942d44b44c888fb7ef4aea93ff3e71a85 | 79a9d79bb5e731dbf67613593dc8908670462849 | refs/heads/master | 2021-01-03T22:15:54.569738 | 2020-03-10T14:19:12 | 2020-03-10T14:19:12 | 238,207,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 13 20:52:33 2020
@author: ENVY13
"""
import numpy as np
def loadDataSet():
postingList = [['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'],
['maybe', 'not', 'take', 'him', 'to', 'dog', 'park', 'stupid'],
['my... | [
"noreply@github.com"
] | noreply@github.com |
fe82fa888b8efccb5c1a04b2b992ab12d90313e0 | c75dba9aa77c025b8e445b517f8b09c35c38a86c | /pkg/__init__.py | 06d82c96f73e9e9fc1efcbaf51038ffa2bfb303e | [] | no_license | GPF199541/binlog2sql | 17c763c9aa470f22517798f4445f0ba6a6b4df10 | c09621760947617ee17507fe7b6430125da464aa | refs/heads/master | 2022-06-02T08:59:39.930881 | 2020-04-18T05:19:21 | 2020-04-18T05:19:21 | 256,674,139 | 0 | 0 | null | 2020-04-18T05:07:50 | 2020-04-18T05:07:49 | null | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/4/15 11:09 下午
# @Author : Fly
# @Site :
# @File : __init__.py
# @Software: PyCharm | [
"1073122915@qq.com"
] | 1073122915@qq.com |
21c9de74ac860589ab16c406be4e604f07abcdd3 | 12bd6a1d7b4e4776601baf5448c9730084b81c5c | /venv/lib/python3.7/genericpath.py | f029a3d48c7c9af2c64f9be943c324f1e94bc678 | [] | no_license | danijelkecman/weather-flask | e711f99a2cad705cd2671291ef17064dcdf04bba | 1510668704dddca971e54094bac5c84deddfda24 | refs/heads/master | 2023-05-13T11:39:56.610433 | 2023-05-02T23:19:14 | 2023-05-02T23:19:14 | 156,313,066 | 1 | 0 | null | 2023-05-02T23:19:15 | 2018-11-06T02:18:15 | Python | UTF-8 | Python | false | false | 65 | py | /Users/danijel/.pyenv/versions/3.7.0/lib/python3.7/genericpath.py | [
"danijel.kecman@gmail.com"
] | danijel.kecman@gmail.com |
a7537d3225de66a7ebd03d1e935a471743a9bd5a | eb78720d4b8ab266e2a07818a2a4e1368a23ba21 | /ssh.py | 10c0d8ce0d226fbd084f77b5a1ade1675254a505 | [] | no_license | skyfireitdiy/autobuild | b9aa76eaaad0b70669b3a328174f3a66e96f5ea6 | 14450742dfff6f5b230da4d95fcd2a5902592256 | refs/heads/master | 2020-05-19T11:39:14.305086 | 2019-09-04T12:39:55 | 2019-09-04T12:39:55 | 184,997,609 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | import paramiko
from itertools import zip_longest
from scp import SCPClient
from jinja2 import Template
import os
from logger import logger
class SSHClient:
def __init__(self, ssh_config):
self.ssh_client = paramiko.SSHClient()
self.ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy)
... | [
"skyfireitdiy@hotmail.com"
] | skyfireitdiy@hotmail.com |
99429c3cfef0a2fcd25800001290a61c38cf7b80 | 629a588675a781756793ec98e3e90afd6d184bd6 | /practice_mini_scripts/electric_bill.py | e856ff49e16a72e23e49a9b18a07155b4b47319d | [] | no_license | cassjs/practice_python | 991da9935b9612052dbd29d3cc8c3b57446a79c1 | 8359ceb07d9423a23e2cb4c9524640b6296cdc00 | refs/heads/master | 2023-02-26T17:54:15.630122 | 2021-02-02T07:08:14 | 2021-02-02T07:08:14 | 322,805,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # Program: Electric Bill
# Description: Input the amount of electricity use in kilowatt-hours and the cost per a kilowatt-hour,
# then calculate the total monthly electric bill after including an 8% sales tax.
# Input:
# Enter the amount of electricity used in kilowatt-hours (kWh) used in one month:
# What is the ... | [
"cassjes.m@gmail.com"
] | cassjes.m@gmail.com |
e25a6759957ae1539cb7b8b7a14e01fb8a89ffc5 | 016a7d2dca5dd90987733b1303c61f8e7c4a943d | /launchpad_node1.py | 7786f419b9f4ad57af6df1c8baca28cb77c1099d | [] | no_license | huyrua291996/ros_serial_stm32 | eb4272e69e8d7777c728772da33d7d5e50d3e670 | 31e5e8ca96a9f6dd3d7fb5823dfca04ac22090e4 | refs/heads/master | 2020-04-19T15:18:57.473736 | 2019-05-01T16:53:21 | 2019-05-01T16:53:21 | 168,270,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,572 | py | #!/usr/bin/env python
'''
launchpad_node.py - Receive sensor values from Launchpad board and publish as topics
Created September 2014
Copyright(c) 2014 Lentin Joseph
Some portion borrowed from Rainer Hessmer blog
http://www.hessmer.org/blog/
'''
# Python client library for ROS
import rospy
import sys
import time
... | [
"huyrua291996@gmail.com"
] | huyrua291996@gmail.com |
11607fcc0a5e114881fa435009ca3febe204f661 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uzv.py | 6468252550a7167a4125e9595ad33c5dccc3d2aa | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
ae2e1039ec5d63e87258338ed7b25d82ab0a6aad | 30fe7671b60825a909428a30e3793bdf16eaaf29 | /.metadata/.plugins/org.eclipse.core.resources/.history/33/b0033d0a4ffa00161174a93fd5908e78 | e27685ffa45504a46e820c64ac565614f01f195a | [] | no_license | abigdream84/PythonStudy | 0fc7a3b6b4a03a293b850d0ed12d5472483c4fb1 | 059274d3ba6f34b62ff111cda3fb263bd6ca8bcb | refs/heads/master | 2021-01-13T04:42:04.306730 | 2017-03-03T14:54:16 | 2017-03-03T14:54:16 | 79,123,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | #!/usr/bin/env python
#coding:UTF-8
from audit_demo.utility.MySqlHelper import MySqlHelper
class s_table(object):
def __init__(self):
self.__helper = MySqlHelper()
def add_ser(self,sername):
sql = 'insert into s_table(s_name,s_ip) values(%s)'
params = (username,)
try:
... | [
"abigdream@hotmail.com"
] | abigdream@hotmail.com | |
717d112a2b418a4f6c234f761f9bbf96d26b3535 | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/official/r1/mnist/mnist_test.py | 87e0571234ac91fa0192c8ca65353a890ce0a363 | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 4,740 | py | # Copyright 2017 The TensorFlow Authors. 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 required by applica... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
f8653a4732b84e5e401655ad1ec9bc50eee9b21a | dc1bb0c8359361344665b02a28d72236324cb7f2 | /bin/gen_fake.py | c91431238e67478015c9fae152883e94eb482656 | [] | no_license | shayanzare007/ZippySLS | c7afaf0ed1474327bef6dd3173c9c92cb3297a93 | 505aebf27e65dc0b3755fa52b18ef546d06628bd | refs/heads/master | 2021-05-31T06:23:16.278471 | 2015-09-09T16:29:27 | 2015-09-09T16:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | import random
for l in open('score.txt').readlines():
sum = 0
for i in range(0,9):
sum = sum + float(l.split()[0][i])
# sum = 1- sum/10
# sum = sum/100 + 0.9;
print l.split()[0] + ' ' + str(sum)
#print l.split()[0] + ' ' + str(random.randint(0,9))
#print '1' + l.strip('\n')
#for l in open('score.txt').readlin... | [
"Youssef@Youssefs-MacBook-Pro.local"
] | Youssef@Youssefs-MacBook-Pro.local |
dc4a83fcf617cf0e46d2d03846c23c224b9fb4b9 | 01d98b95044dd4a2c900d603e1809f20437e996c | /P1-6.py | 37bb1c7ea9520d443b5c2068d1f09a419dd069de | [] | no_license | Muhfa12/PROTEK-5 | 4bdf906cb5e2ccc681c1b3946ac1824a8998fe94 | 38f120e3cb95009c880152a6b7364ec6cff5bfb1 | refs/heads/main | 2023-01-06T23:09:17.469865 | 2020-11-02T05:19:00 | 2020-11-02T05:19:00 | 309,265,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | a = 8
b = 3
if (a > 0) and (b > 0):
print("Keduanya positif")
else:
print("Keduanya tidak positif")
#DAN
a = 8
b = 3
if (a > 0):
if (b > 0):
print("Keduanya positif")
else:
print("Keduanya tidak positif")
else:
print("Keduanya tidak positif")
| [
"noreply@github.com"
] | noreply@github.com |
8920f9bea0a12cc6d1d38a9f94aab9488afa66c8 | 0d5be86072e92da0b5c086ec42bbfeeb6c1cf367 | /tiny_tokenizer/word_tokenizers/mecab_tokenizer.py | c71164572d6df24cc3025c58ac1e64e53f7a0a04 | [
"MIT"
] | permissive | chie8842/tiny_tokenizer | d04eab4115daba443f83647a332177dcce5c9b19 | 6599873c050f4e064c88381688d8476346b57099 | refs/heads/master | 2020-07-25T18:57:15.545717 | 2019-09-12T15:39:42 | 2019-09-12T15:39:42 | 208,393,571 | 0 | 0 | MIT | 2019-09-14T05:26:24 | 2019-09-14T05:26:23 | null | UTF-8 | Python | false | false | 1,655 | py | from typing import Optional
from tiny_tokenizer.tiny_tokenizer_token import Token
from tiny_tokenizer.word_tokenizers.tokenizer import BaseTokenizer
class MeCabTokenizer(BaseTokenizer):
"""Wrapper class forexternal text analyzers"""
def __init__(
self, dictionary_path: Optional[str] = None, with_pos... | [
"himkt@klis.tsukuba.ac.jp"
] | himkt@klis.tsukuba.ac.jp |
2f6c8f8db0b2cc5c0501d232fc4d18943220a683 | 597eb6ad4c463bc603b86d2b26e60f7988edb4cf | /weibo_analysis/intermediate.py | 5a02ae07dd601cf4d8282faefd2b40f9202d1ede | [] | no_license | fagan2888/weibo_sentiment_analysis | db2d385f873f72bd4dd7fd9794cb9c2dbb289b2a | f3da43a79edb3fef8883ad024f1fd07e779dc6c2 | refs/heads/master | 2021-05-30T07:00:39.768541 | 2015-06-26T09:12:43 | 2015-06-26T09:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | py | # -*- coding:utf-8 -*-
import sys
import weibo_senti_analysis
import weiboplot
import weibo_word_contrast
from pylab import *
import matplotlib.pyplot as plt
import numpy as np
import my_text_processing as tp
import pickle
reload(sys)
sys.setdefaultencoding('utf-8')
##################################################... | [
"1375557533@qq.com"
] | 1375557533@qq.com |
524e6a494b1cfdb79d5eeaf319c6ec07b261c953 | cf1deffd8b8b6ac1d147aa2150d52f233931f03c | /vehicle_parts.py | a8635c732186dc31e5bfd3e809d4b27a87185e6a | [] | no_license | Pickledtezcat/vinland_game | 91eed0d2069ee4101425efb7525ba8ddce3ee14a | 96999e282c1e10ffb41130ab6944aeedc0c95863 | refs/heads/master | 2021-01-12T06:56:40.504043 | 2017-01-19T16:09:29 | 2017-01-19T16:09:29 | 76,874,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,471 | py | import bge
def get_vehicle_parts():
items = {1: ["primitive bolted armor", "armor", "CHASSIS", 0, 2, 2, 1, 1, 1, 1, "SOFT", 0, 0,
"Early attempts at vehicle armor used ordinary unhardened steel, bolted together. Poor protection but cheap."],
2: ["riveted plate armor", "armor", "CHASS... | [
"johnmtopple@hotmail.co.uk"
] | johnmtopple@hotmail.co.uk |
125b5871de83328f3a1969bbcb9d2fa3b6d87ccf | 76e980d5d15feb4ef236c2d671a2c47c5d9e1622 | /app/program.py | 6cf1b71eed6f16b6d33ca7db988ba1e8337b2ffa | [] | no_license | arcanrun/tdd_practicing | 3f3a8fe821cf4a3b1bd0262bf6bbb68cb3ccf7fd | db5e6a31a3d8403e8510553af18dd261517c8865 | refs/heads/master | 2020-03-28T21:21:49.993176 | 2018-09-18T20:44:58 | 2018-09-18T20:44:58 | 149,149,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from app.reporter import Reporter
from app.report_sender import ReportSender
from app.reportBuilder import ReportBuilder
if __name__ == '__main__':
sender = ReportSender()
builder = ReportBuilder([1])
reporter = Reporter(builder, sender)
print(reporter.sendReports()) | [
"arcan.run@gmail.com"
] | arcan.run@gmail.com |
0d591e3d250f5c8491dadeedc5a9c343ffd4224f | 23acc991e4b6e96aa9ac0898ef59831009442a7e | /pygazebo/msg/plugin_pb2.py | 7d2abf0447c68650685d40f2e751334f023e302f | [
"Apache-2.0"
] | permissive | kunaltyagi/pygazebo | f07ee8c3a790095b66e074b0afa698c15a823d6a | 4cd163f4efec5a6f672445de939385bf8a9156e1 | refs/heads/master | 2021-01-16T20:28:55.059663 | 2014-06-04T10:06:56 | 2014-06-04T10:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,176 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
DESCRIPTOR = descriptor.FileDescriptor(
name='plugin.proto',
... | [
"jjp@pobox.com"
] | jjp@pobox.com |
327809a84718295084f6dd6659765fe2618759b4 | 2c4648efe8c7e408b8c3a649b2eed8bb846446ec | /codewars/Python/8 kyu/RegexCountLowercaseLetters/lowercase_count_test.py | 9963e8b814750d42a58eaf4ce0dbc591bce0db78 | [] | no_license | Adasumizox/ProgrammingChallenges | 9d79bd1b0ce4794b576124f9874aabb86d5c0713 | 3630fcde088d7991e344eb1b84805e9e756aa1a2 | refs/heads/master | 2021-07-16T08:16:57.538577 | 2020-07-19T19:58:28 | 2020-07-19T19:58:28 | 190,159,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | from lowercase_count import lowercase_count
import unittest
class TestRegexCountLowercaseLetters(unittest.TestCase):
def test(self):
self.assertEqual(lowercase_count("abc"), 3)
self.assertEqual(lowercase_count("abcABC123"), 3)
self.assertEqual(lowercase_count("abcABC123!@#$%^&*()_-+=}{[... | [
"darkdan099@gmail.com"
] | darkdan099@gmail.com |
5b7258bca0fe5638af4081a60d47911f67d42a7e | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/tests/regressiontests/forms/localflavor/pl.py | 96703fa07504708d232ea59784853cb85214537f | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/forms/localflavor/pl.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
723addda30f29f8f7f246fcf493c78b96472cb12 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/eventhub/v20140901/outputs.py | 0ebdc673b5e80e5109e83bebd9559fc888bd6218 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 1,725 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
5a9a226de42291f1f90430012f72aa1d128fea00 | aaa4eb09ebb66b51f471ebceb39c2a8e7a22e50a | /Lista 08/exercício 05.py | d60d2357f70d2d5edfb22beaaf828ffda4ce7614 | [
"MIT"
] | permissive | Brenda-Werneck/Listas-CCF110 | c0a079df9c26ec8bfe194072847b86b294a19d4a | 271b0930e6cce1aaa279f81378205c5b2d3fa0b6 | refs/heads/main | 2023-09-03T09:59:05.351611 | 2021-10-17T00:49:03 | 2021-10-17T00:49:03 | 411,115,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #Crie um algoritmo que leia os elementos de uma matriz inteira 10 x 10 e escreva somente os elementos acima da diagonal principal.
matriz = [[0 for i in range(10)] for j in range(10)]
for i in range(10):
for j in range(10):
matriz[i][j] = int(input(f"Digite o valor para o índice ({i},{j}): "))
for i in ra... | [
"89711195+Brenda-Werneck@users.noreply.github.com"
] | 89711195+Brenda-Werneck@users.noreply.github.com |
37c1014dc5c50ae71f64d41027a663cb77c4d721 | 7be8fcccbc566df92f49253964d2889ce1d4768c | /clients/face_detect_client.py | a8f4464997d5e174b9f6ea875e5e21a7a5989377 | [
"MIT"
] | permissive | miwaliu/face-services | 69ff97e8fc03668346f46847277de602fe409b5c | 1db24e0da2ce984a7c7f4bb6aa8917b31265198a | refs/heads/master | 2020-04-25T15:26:17.069879 | 2019-02-26T03:37:04 | 2019-02-26T03:37:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,754 | py | import grpc
import sys
import argparse
from getpass import getpass
import services.grpc.face_detect_pb2
import services.grpc.face_detect_pb2_grpc
from services.grpc.face_common_pb2 import ImageRGB
from snet_sdk import Snet
def make_request(filenamem, request_cls=None):
if request_cls is None:
request_cls... | [
"joel@joelpitt.com"
] | joel@joelpitt.com |
45c3bce67dd986b7e7beed0b4602100695206b87 | 6a230ffeee880140d48f956fc97c384cba11f3b0 | /core/brand_tracking.py | a351bba32096f3c9a713aee9a9b00bda21cb21dd | [] | no_license | paulovb/branding-level-python-twitter | 00b04f8911cd90be21e793213eab9dcfb39626de | 5ce34bc43a632568b2eb8e8e25042d200cbfd0d4 | refs/heads/master | 2021-01-18T00:37:55.163162 | 2015-11-16T17:17:33 | 2015-11-16T17:17:33 | 45,861,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,438 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from TwitterAPI import TwitterAPI
from TwitterAPI.TwitterError import TwitterRequestError, TwitterConnectionError
from api.brand import Brand
from api.mention import Mention
from core.feeling_calculate import FeelingCalculate
from settings import TWITTER_CONSUMER_KEY, TWITTER_... | [
"paulo.bischof@gmail.com"
] | paulo.bischof@gmail.com |
f85a05335cbae03eecb345fa58a4e227ed7aeed9 | aa3e4c5a6e6dbc7af8a22af24906a1832a1651c7 | /train.py | fde4083e839b90dc785ed0bf4a26abbef73b34bf | [] | no_license | Chaudhary-Furqan/starGANv1-Pytorch | 3f02668f014e6413f4bdeda0c2780fa10b9bb95e | 7d0fd4074fd6fa92395bd4068b0166856b858a4d | refs/heads/main | 2023-01-09T16:34:41.853973 | 2020-11-09T10:33:00 | 2020-11-09T10:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,527 | py | import torch
import torchvision
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
from torch.utils.data import Dataset
import torch.nn as nn
import tqdm
import os
import time
from torch.nn import init
from arch import generator
from arch import discriminator
import utils
import data... | [
"noreply@github.com"
] | noreply@github.com |
9b33bacf23bc9243645a20794a3b70dfc77e88df | dcf7fd47e77ade38062900e8e6a6b81de3c24461 | /Part-1.py | f3f5fa7ed75970540ffb307fa9480e002fb1c9d4 | [] | no_license | Sahanave/Millionsongdataset_UCI | 1239dbf659708534411e0f2daced51d16b2146af | 74ef67ffdc0fa622c39d94b04c2dbae8c2c277c4 | refs/heads/master | 2021-01-12T09:56:41.259065 | 2020-11-02T03:15:51 | 2020-11-02T03:15:51 | 76,312,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,074 | py |
# coding: utf-8
# In[109]:
#import the libraries
import pandas
import matplotlib.pyplot as plt
from sklearn import cross_validation
from statistics import mode
from sklearn.linear_model import SGDRegressor
from sklearn.linear_model import Ridge
from sklearn.linear_model import Lasso
from sklearn.linear_model import ... | [
"noreply@github.com"
] | noreply@github.com |
9df870310f7741f1840bdb5a4722de6f5e914631 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/leveleditor/worldData/tortuga_area_cave_b_1.py | cd44a96180dfdd7bb87decb582ce21f2652bccc6 | [] | 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 | 142,242 | py | from pandac.PandaModules import Point3, VBase3, Vec4
objectStruct = {
'Interact Links': [
[
'1165198380.77Shochet',
'1165198398.22Shochet',
'Bi-directional'],
[
'1165198750.63Shochet',
'1174696064.0dxschafe',
'Bi-directional'],
... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
9d3447e84c78cea9c449fb14d97c2facf5888c2e | 876e8d9888c8a467a35b462ddda8e497cc356b31 | /lucida/asyncthrift/fake/fakecmd_py/FakeCMDClient.py | 0ca8217d78a360006abacec30d3573de6b835e71 | [
"BSD-3-Clause"
] | permissive | JeremyARussell/Lucida | 1e7e543ff7fde4aa732f6e18904b4d72154ddfd0 | 7807fc78e6c65e97ab868e297ed70b807ac142b1 | refs/heads/master | 2020-12-02T16:36:20.004083 | 2019-07-24T15:10:22 | 2019-07-24T15:10:22 | 48,756,173 | 4 | 0 | NOASSERTION | 2018-11-03T14:18:27 | 2015-12-29T16:23:06 | Java | UTF-8 | Python | false | false | 1,115 | py | import sys, glob
sys.path.insert(0, glob.glob('/home/yba/Documents/clarity/fbthrift/thrift/lib/py/build/lib*')[0]) # This needs to be more generic.
from lucidatypes.ttypes import *
from lucidaservice import LucidaService
from twisted.internet.defer import inlineCallbacks
from twisted.internet import reactor
fro... | [
"yba@umich.edu"
] | yba@umich.edu |
94e168e55cf85e9be1aff36fcfb3fe95f35d975d | 2a96bf15d278d8aad51b85b4f1a4a32722d9818f | /src/account/__init__.py | c6c98fc0d3a80029cad86a01ccb81e66f94ec1d8 | [] | no_license | zosiakropka/time-lease | 88c9e4b9e8d97adbffd9cc2ffe42ce6c206a6d3e | 4c7e33f6e5e574b2044741992b6b11ac3ef3ae04 | refs/heads/master | 2021-01-19T00:25:48.033966 | 2013-12-10T03:31:38 | 2013-12-10T03:31:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | """@package account
@author Zosia Sobocinska
@date Dec 7, 2013
"""
| [
"sobocinska.zosia@gmail.com"
] | sobocinska.zosia@gmail.com |
8db472ecc5c1fae13cc2d2a197dc4661466d922c | 773e64445bc9c9f34179184f814b99457a6355a7 | /main.py | dabcef86882717ab75362bfb03634ecd90b66849 | [] | no_license | mysunk/dacon-PV-forecasting | f231f04ac2139ace952c4e4b3386c7869e8955cf | 4d74e7e2e5e6c0b28407871a45d14516beb92c16 | refs/heads/main | 2023-03-30T00:03:46.158778 | 2021-03-25T06:26:38 | 2021-03-25T06:26:38 | 321,712,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,643 | py | import pandas as pd
import numpy as np
import pickle
import tensorflow as tf
import os
# GPU setting
physical_devices = tf.config.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(physical_devices[0], enable=True)
# Seed value (can actually be different for each attribution step)
seed_value= 0
# ... | [
"rlaaudtjs@gist.ac.kr"
] | rlaaudtjs@gist.ac.kr |
0f9d9972b51fd6baa6d6cf5dd8abd74f5a3770e0 | 4122f36c6cc1c64c4e6401682fac77069f9ebaff | /board/views/__init__.py | b0b0f32354196c53d9d192ffb52a4bdd72dd5c4d | [
"BSD-3-Clause"
] | permissive | entuerto/TaskBoard | 3849a78da92b6aeb7e172ce007c2b9a47c865802 | 8e6b85cb68c8a3845aec4f845db6358be07be859 | refs/heads/master | 2018-12-28T06:46:46.539572 | 2013-03-20T04:50:12 | 2013-03-20T04:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: utf-8 -*-
"""
board.views
==================================
This package contains all of the application's blueprints.
:copyright: (c) 2012 by Tomas Palazuelos.
:license: BSD, see LICENSE for more details.
"""
from flask import Flask
import main
def register_views(app):
"""... | [
"tomas.plzls@gmail.com"
] | tomas.plzls@gmail.com |
28f97ce5395cfba08ac1efa1858fd84709e57c68 | fe226faa1854e33bf06cd43fcfe409c5cb7c46e0 | /Notes/Basic Return.py | 35fcd30a207460b9a61e7c3ed1543b1b91432e09 | [] | no_license | Tom-Szendrey/Highschool-basic-notes | 385a73f6b0567e6c8a35df814314d02560971459 | fd3a5efda24486e8c6ce68941bf8c52ec266769e | refs/heads/master | 2021-01-20T01:27:57.200778 | 2017-04-24T20:01:34 | 2017-04-24T20:01:34 | 89,281,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | def square(n):
"""Returns the square of a number."""
squared = n**2
print "%s squared is %s." % (n, squared)
return squared
# Call the square function on line 9! Make sure to
# include the number 10 between the parentheses.
square(10)
| [
"noreply@github.com"
] | noreply@github.com |
3b054790bdd248be0ce98c709a283af3f4078789 | 679ce4b323f79b2425976201324c6c1f88b95199 | /Python/Resource/game_state_machine.py | dfc0cbe9f3c5720937da66d1172aa9f2ccb26615 | [] | no_license | abriggs914/Coding_Practice | ff690fb5f145a11f4da144f3882b37f473b10450 | 3afd7c59e0d90f0ef5f6203853e69f853312019b | refs/heads/master | 2023-08-31T04:04:58.048554 | 2023-08-29T13:23:29 | 2023-08-29T13:23:29 | 161,865,421 | 0 | 1 | null | 2022-10-27T08:35:29 | 2018-12-15T03:20:14 | Python | UTF-8 | Python | false | false | 11,619 | py |
# Class outlining a Game-State-Machine (GSM).
# Version............1.4
# Date........2022-08-03
# Author....Avery Briggs
class GSM:
def __init__(self, options, name=None, idx=None, max_cycles=None, allow_recycle=True):
"""Game State Machine. Simulates app_state switches for an object.
Required:... | [
"abriggs1@unb.ca"
] | abriggs1@unb.ca |
6455265f54dfc20c35c609d1705366a39ba692d1 | e9dc1761a3436aad98d33c89e603e5fb58a78bec | /data_processing/get_aishell1_time_test.py | 4fa915a1eaf70092a6fd4c352bb35b7f171396e1 | [] | no_license | ntumirlab/Speaker-Verification | 8ac58495ec451ccecf4fd05de519b3b09af513c9 | 93c7fc687868f29cfc7660baecf33beb89323dbc | refs/heads/master | 2022-11-28T23:06:54.862157 | 2020-08-12T09:47:02 | 2020-08-12T09:47:02 | 284,001,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,652 | py | import pickle as pkl
from glob import iglob
from tqdm import tqdm
import random
import numpy as np
import os
test_types = ["test", "valid"]
feature_type = "vad_mfcc"
# meta_path = "/mnt/E/arthur.wang/aishell/aishell1/speaker.info"
# meta_path = "/mnt/E/arthur.wang/SRE10/wav/sre10_meta.tsv"
meta_path = "/mnt/E/arthur.... | [
"arhtur007@gmail.com"
] | arhtur007@gmail.com |
21e5a7ba5a59f116ae5fc2da521f7ce22368868e | 92a46ab7daf2717138ee82f173b62866fa88875e | /test/train_aic_rlms.py | 1cbebd74cc3d591b2f6760b457f9210582291d5a | [
"BSD-2-Clause"
] | permissive | VLAM3D/alabortcvpr2015 | 537215e8f9213c4d706a657b48eb902824feaaa6 | 5f1efd00590971c2ddb70987370e2d6bab39a96d | refs/heads/master | 2020-12-28T21:51:47.480656 | 2016-05-24T02:16:23 | 2016-05-24T02:16:23 | 58,737,581 | 0 | 0 | null | 2016-05-13T12:19:47 | 2016-05-13T12:19:47 | null | UTF-8 | Python | false | false | 5,626 | py | import sys
from pathlib import Path
import menpo.io as mio
from menpo.landmark import labeller, face_ibug_68_to_face_ibug_66_trimesh
from menpo.feature import no_op, dsift
from menpo.transform import Similarity, AlignmentSimilarity
from menpofit.unified import UnifiedAAMCLM, UnifiedAAMCLMFitter, AICRLMS
from menpofit.a... | [
"mathieu@vlam3d.com"
] | mathieu@vlam3d.com |
5f2f23462b6afd7196c6acdafcd0d84f0fddcde9 | 78113982a16e56537cd11c64cd3034abc9d595d5 | /polindromeornot.py | 3b5f3fbfc5ed64fa3ceee625d18ff970800a18a5 | [] | no_license | rarnjithkumar/pro2 | ff623039c606abec47b37c6b8ef4691888b8d6f3 | 59f1e4b344218ac1e061fcd8d32cede1e4e76bf2 | refs/heads/master | 2022-02-06T07:23:28.957031 | 2019-08-01T09:38:22 | 2019-08-01T09:38:22 | 197,951,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | n=int(input())
sum=n
f=0
while(n>0):
iyps=n%10
f=f*10+iyps
n=n//10
if(sum==f):
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | noreply@github.com |
74d581b1542990d6c95912aba7444715cb02de7c | a350e6471598e8518f639fcff50511c35a94bceb | /docker/FlaskFileSystem/file_system.py | 7b25c3b28c8fc371e8106f681690523fa29af01a | [
"MIT"
] | permissive | WooodHead/bearing_project | 2e26602c326f703869e13bf84cecba95edff59fa | ca64b04dad7010620414e37b2c7923fd904a0f11 | refs/heads/master | 2022-04-20T16:03:35.179584 | 2020-04-15T18:23:24 | 2020-04-15T18:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,332 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: file_system.py
@time: 2020-04-14 15:03
"""
# source .venv/bin/activate
# export FLASK_APP=file_system.py
# flask run -h 0.0.0.0
# * Running on http://127.0.0.1:5000/
from __future__ import unicode_literals
import os
from flask ... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
0706d765576d572b9e51ca80a194e7ef9a3a0ae5 | 3270a22bdb2b3789639e2e67e8e784ffe08987c2 | /MiniProject1.py | 0cde198840b984b526cef982e033355055887760 | [] | no_license | ericli21/ec601-tweet-pulls | 06cda558ce8b117ac1c62260cfcc83cea94d9ac2 | b398087db67f5708b912ea7af8fbda8a0ef64ad4 | refs/heads/master | 2020-04-09T01:48:29.289507 | 2018-12-01T06:56:26 | 2018-12-01T06:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | #Eric Li
#EC601: Mini-Project 1
#main script
import os
import twitterpull
import convertvid
import analyzeim
#Insert consumer and access information
#Twitter API credentials
consumer_key = "Insert consumer key"
consumer_secret = "Insert consumer secret"
access_key = "Insert access key"
access_secret = "Insert access ... | [
"ericli21@bu.edu"
] | ericli21@bu.edu |
1231e3326e9ae451875527d5f1399ca99de0e73d | fbd91d40e5b50e170179e7ea71cd14a0106b88e4 | /set/sets/migrations/0002_auto_20210210_1330.py | 185658c2fece41ae6217b20407f7d86aeab31dc9 | [] | no_license | crispinpigla/set | 3c97d43288c04ce4e6b5ebdc50f1b5f6e656e4d7 | 9c6d661e7d76dc823a7bb8ace6563e9361fc7196 | refs/heads/master | 2023-03-23T12:33:45.494694 | 2021-03-16T15:02:43 | 2021-03-16T15:02:43 | 336,679,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 3.1.6 on 2021-02-10 13:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sets', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='sets',
name='image_couverture',
... | [
"crispinpigla@yahoo.fr"
] | crispinpigla@yahoo.fr |
a9e0478108e5abb89730a9ef9663fb774c017015 | 6a43a12f82d51dd87c15ed097c99bbdcc5da44b8 | /custom_reg_form/old_forms.py | c6813094377e506e77ad1eafa4ea812fd123598f | [] | no_license | eol-virtuallabx/eol_custom_reg_form | 7c5d834460183fc08f6eb8aca2e4598eadea903e | bcc9233281392e916c789a6e244c933b928bf42b | refs/heads/main | 2023-08-01T14:21:24.654672 | 2021-08-31T20:07:24 | 2021-08-31T20:07:24 | 393,120,555 | 0 | 0 | null | 2021-08-10T16:38:37 | 2021-08-05T17:14:52 | Python | UTF-8 | Python | false | false | 3,271 | py | # -*- coding:utf-8 -*-
from .models import ExtraInfo
from django.forms import ModelForm
class ExtraInfoForm(ModelForm):
"""
The fields on this form are derived from the ExtraInfo model in models.py.
"""
def __init__(self, *args, **kwargs):
super(ExtraInfoForm, self).__init__(*args, **kwa... | [
"cons.altamirano@gmail.com"
] | cons.altamirano@gmail.com |
e0f1f46486a763f2317cc8df1e1ac56c86b3143a | bd0d392c431e90c19a53c13b37d1889740030790 | /meiduo_mall/utils/fastdfs/storage.py | e202d316d0b4ae72673c8c7ee720133dbdb0bf68 | [
"MIT"
] | permissive | xiewenquan/meiduo | 9e177b6c873831d49e3da74edf0dc5c961dc5658 | d6d85b18aeb894133000005c2692480f7e604a76 | refs/heads/master | 2020-04-15T10:27:00.960149 | 2019-01-23T17:19:27 | 2019-01-23T17:19:27 | 164,596,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | from django.core.files.storage import Storage
from meiduo_mall import settings
from django.utils.deconstruct import deconstructible
from fdfs_client.client import Fdfs_client
#1. 您的自定义存储系统必须是以下子类 django.core.files.storage.Storage:
#4. 您的存储类必须是可解构的, 以便在迁移中的字段上使用时可以对其进行序列化。
# 只要您的字段具有可自行序列化的参数,
# 就可以使用 django.utils.de... | [
"15046789540@163.com"
] | 15046789540@163.com |
fcee90732903a5d69df706143389337770cdb896 | c498cefc16ba5d75b54d65297b88357d669c8f48 | /static/datapack/data/scripts/quests/357_WarehouseKeepersAmbition/__init__.py | aaf1920475142e8f04ed667ebd0cdf21258eec6d | [] | no_license | ManWithShotgun/l2i-JesusXD-3 | e17f7307d9c5762b60a2039655d51ab36ec76fad | 8e13b4dda28905792621088714ebb6a31f223c90 | refs/heads/master | 2021-01-17T16:10:42.561720 | 2016-07-22T18:41:22 | 2016-07-22T18:41:22 | 63,967,514 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | # Made by disKret
# Rate fix by Gnat
import sys
from ru.catssoftware import Config
from ru.catssoftware.gameserver.model.quest import State
from ru.catssoftware.gameserver.model.quest import QuestState
from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest
qn = "357_WarehouseKeepersAmbition"
... | [
"u3n3ter7@mail.ru"
] | u3n3ter7@mail.ru |
cc69c17eb918fd897c9f5b7af3a2c749094d41a7 | 0dbfea9dcbbdf7a329c9d0f61831973b3168e560 | /camera.py | a9b8a4f8902973ba7b1242f9bbea89e50609084c | [] | no_license | SmartPracticeschool/SPS-4035-Intelligent-Best-Safety-Max-Safety-Rating-Generator-for-Restaurant | 6e6be915bf0208c5a9ca1368f99d754051fd9fee | 47ba68197c24623fee757788e03cbb41e5fca921 | refs/heads/master | 2022-12-11T09:28:01.007804 | 2020-09-11T10:20:54 | 2020-09-11T10:20:54 | 292,284,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | import cv2
import boto3
import datetime
import requests
face_cascade=cv2.CascadeClassifier("haarcascade_frontalface_alt2.xml")
ds_factor=0.6
count=0
class VideoCamera(object):
def __init__(self):
self.video = cv2.VideoCapture(0)
def __del__(self):
self.video.release()
def get... | [
"noreply@github.com"
] | noreply@github.com |
a89107a69b3911035e56ae4019bc8224669fdfad | e42ece58677734f37310cedcb2500042f0d2c937 | /catalog/forms.py | 38dced639db60b476bd4666d60968c9f4133a79e | [] | no_license | ioanac977/candy-shop-template | 60b25e7e0dde3ce99563f21bf566c9d033b5f2eb | 125f39a6ac59c61045fdd4ff43f6916b314346ed | refs/heads/master | 2022-11-25T05:31:47.114843 | 2020-07-29T12:10:53 | 2020-07-29T12:10:53 | 276,695,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
import datetime # for checking renewal date range.
from django import forms
class RenewBookForm(forms.Form):
"""Form for a librarian to renew books."""
renewal_date = forms.DateField(
help_... | [
"ioanac977@gmail.com"
] | ioanac977@gmail.com |
d380e48cd20fef731bfbcfc68fc9623e284fd376 | 14cd469f059cac6b82f5e6135d086c39e66b0290 | /parenthesis_valid.py | 766c64d91e3fba6737bf44b5deb39cea25e18896 | [] | no_license | kondapavan83/python-practice | 2cbc2ec393af20e94a2a1af83f6c685487c1e609 | 145f3dbcc2b9a1018d1e5bc1daf91ff2f04396bb | refs/heads/master | 2022-07-29T20:22:51.076372 | 2020-05-23T07:42:47 | 2020-05-23T07:42:47 | 255,688,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | def prnth_valid(s):
open=0
close=0
for character in s:
if character =='(':
open+=1
elif character ==')':
close+=1
else:
print("not a vlid string")
diff=open-close
if diff<0:
diff_negative=True
diff=diff*(-1)
return(diff)... | [
"kondapavan@Nagas-MacBook-Pro.local"
] | kondapavan@Nagas-MacBook-Pro.local |
fa26e61098686a4c42aded2420c936db123a2682 | 2f4bfb038e99f4bf0d8394c27ace357f82e1c82f | /focal_loss_ae/trainer.py | 63160c14d8967dfe13086521a67d395ef4e8063f | [] | no_license | NoListen/DeepWhat | b7b67c54669b8cdb10fafb9131cb0eb6d5f70a3d | 11697841dd1cf7b26ad4da24cdeb97b5a849213e | refs/heads/master | 2023-03-12T19:12:19.093738 | 2021-03-03T14:46:48 | 2021-03-03T14:46:48 | 102,484,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | import torch
from torch import nn
from collections import namedtuple
from enum import IntEnum
from utils import focal_loss
opt_params = namedtuple("opt_params", ["lr"])
class TrainerPhase(IntEnum):
train = 0
test = 1
class VAELoss(nn.Module):
def __init__(self, kl_loss_threshold=0, use_focal_loss=False... | [
"listenonepiece@gmail.com"
] | listenonepiece@gmail.com |
e0d78fa37ce6d5e30c4f900d0b3f441cc7154c52 | 0647dc7794126ef03e0a78b31c1ed64cc74e7c50 | /script2.py | d4cc094833fe27a8dce25a39d0338ac67fb62968 | [] | no_license | panserbjorn/ControllerV-REP | 71a8fc9f7abd807852f869fc9d2e030fa3db09c3 | d3c1f8adfcbb3fa06279f9e8642126a95b58f7ff | refs/heads/master | 2021-09-11T19:58:02.216214 | 2018-04-11T20:03:50 | 2018-04-11T20:03:50 | 109,732,983 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,565 | py | #Python code for de controller of my thesis
#Author Joaquín Silveira
import vrep
import time
import math
import numpy as np
import matplotlib.pyplot as plt
import secuenceGenerator as sg
#Funciones auxiliares:
def recoverRobotParts(clientID):
#Recover the handles for the motors
LUMRetCode, LUM = vrep.simxGetObject... | [
"joaco.silveira@gmail.com"
] | joaco.silveira@gmail.com |
8e015d885f7e6b11e49f27cd3115f30af273ecd5 | 6ee71447613b3cd35275dfcf04d5d021ec1a431b | /app/lian_jia/city.py | b65ac8db2fafd166c0477a82342e4d64380fba5b | [] | no_license | CCTV-lulu/lianJiaApi | 008358bb4120f7968528dc07f3f33b00d31714fa | cbabfbd99fa68aebfe89c9871f94719ee36428de | refs/heads/master | 2020-03-07T13:03:01.812033 | 2018-03-31T02:23:33 | 2018-03-31T02:23:33 | 127,491,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,434 | py | from datetime import datetime
from sqlalchemy import Column,types
from sqlalchemy.schema import ForeignKey
from util.orm import AlchemyMixin, Base
# 对于数据库的定义
class City(AlchemyMixin, Base):
__tablename__ = 'cities' #对于城市的数据库
id = Column(types.Integer, primary_key=True)
name = Column(types.String(32), nu... | [
"1253139642@qq.com"
] | 1253139642@qq.com |
5e5c781c0bf2d08ec67579c9efb2408d1d8e7819 | de62baa1470bcfac5ad493f333c43b0f60fd3222 | /BaiduMapAPI/base.py | 4b64da00d996f390e40b7cced49f0ac80a587f6c | [
"MIT"
] | permissive | lyamanda/BaiduMapAPI | dd115d653f3554759b3251f05867b54d899d281e | 4211f88065ed45a1345b14102b0340277c45246f | refs/heads/master | 2020-08-24T02:36:07.137964 | 2019-07-18T17:05:55 | 2019-07-18T17:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | # -*- coding: utf-8 -*-
import pandas as pd
import json
from collections import defaultdict
vehicle_info = {
1: "火车", 2: "飞机", 3: "公交",
4: "驾车", 5: "步行", 6: "大巴"
}
pulic_vechicle_info = {
0: "普通日行公交车",
1: "城市轨道交通",
2: "机场巴士",
3: "有轨电车",
4: "机场巴士",
5: "旅游线路车",
6: "普通公交车(夜班车)",
... | [
"shikanon@foxmail.com"
] | shikanon@foxmail.com |
fd1d49530e82b36c4b67e12a209716136f195493 | f56a8189b655dd91c08189be3ca402ba3b2a2529 | /login.py | b18facb2067482e672169bb47cc493a5239d6c22 | [] | no_license | Mirzokhidd/logn | 714ce63f39045d66a556c71833b5c94741ea3e27 | 713fc312ab8041af4aac6ea2274c007f2e171e56 | refs/heads/main | 2023-03-03T21:05:18.219188 | 2021-02-15T15:35:06 | 2021-02-15T15:35:06 | 339,120,140 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | #Porject: Login and sign up
#By: Mirzokhid Ganiev
#Age: 16
#Grade: 10 G
#Date upon finishing: Monday, 15th February 2021
#Location: Osh, Kyrgyzstan
#Imports
import filecmp
import re
#basic idea: If you sing up, it creates a file with your username ( and the password has some rules to follow). When lo... | [
"noreply@github.com"
] | noreply@github.com |
f643b4c60e951c3de12adc4a83e20a0bce5f6b6d | f8bdc46409c9f5eaf3d85ef157260589462d941a | /demos/grasp_prediction_arc2017/examples/grasp_prediction_arc2017/evaluate.py | 76640fe7b8d0dbfa68915e774228d2525710e14b | [
"MIT",
"BSD-3-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 3,406 | py | #!/usr/bin/env python
import argparse
import os
import os.path as osp
import chainer
from chainer import cuda
import fcn
import numpy as np
import skimage.io
import tqdm
import grasp_fusion_lib
from grasp_prediction_arc2017_lib.contrib.grasp_prediction_arc2017 import (
datasets,
models,
)
def main():
p... | [
"pazeshun3684@gmail.com"
] | pazeshun3684@gmail.com |
aa0f46a7562108f2618e94a48fd65c03e0153c46 | 6ea1c11d8546bb5ac531a56120d0e29e9da25e3a | /examinator/scratch/test_joblib.py | d70f360cfff4a1365d84464e5ce5197d6ed74f14 | [
"MIT"
] | permissive | brl0/examinator | 2bd6ad62187a0283eaa7e4213c3a0c1ec4226148 | 52706108eea65b854f056fd53e17fef5c8dccbe8 | refs/heads/master | 2023-01-13T03:43:55.292714 | 2019-09-29T17:03:36 | 2019-09-29T17:03:36 | 211,695,739 | 0 | 0 | MIT | 2022-12-26T20:48:00 | 2019-09-29T16:56:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,352 | py | import sys
import os
import time
from pathlib import Path
from examinator import *
from multiprocessing import Queue
from joblib import Parallel, delayed
import asyncio
WORKERS = 8
LOGURU_ENQ = True
LOG_ON = True
LOG_LEVEL = "DEBUG"
basepaths = ['..']
basepaths = map(Path, basepaths)
file_q = Queue()
def joblib_pro... | [
"B_R_L@hotmail.com"
] | B_R_L@hotmail.com |
78345d7f47403a964273439346fc6f8a74a0103e | 8e42bbd69a3ce337b09bb9691e8f10889c2568a4 | /fimpute2geno.py | 97c6bb4615affc75c646efee8ee086f3ffb24f75 | [] | no_license | haraldgrove/snptranslate | c348ebdee9744767574ad486d5dc43d9f91bd984 | 79323a846ce0007ebd8a71f654a96caa97169b07 | refs/heads/master | 2020-04-06T06:56:26.603323 | 2016-09-05T00:39:24 | 2016-09-05T00:39:24 | 20,091,416 | 1 | 1 | null | 2016-07-14T00:55:49 | 2014-05-23T07:56:02 | Python | UTF-8 | Python | false | false | 3,509 | py | #!/usr/bin/env python
# Version 1.0
# from __future__ import division, print_function
import sys
import argparse
def readMarkers(markerfile):
"""
Columns options:
name,position,allele1,allele2 [,chromosome] (BEAGLE)
chromosome,name,gendist,position (PLINK)
name
"""
def trans(s):
... | [
"harald.grove@nmbu.no"
] | harald.grove@nmbu.no |
d6f22f480566e94dadadeba81e2d06eaf3c14708 | 5d97136e559b6f2f68726d1a77dc5a8408850a65 | /trydjango/settings.py | 62daf7b10e2ef5c5f83854af8b9ea44381119b38 | [] | no_license | msarar/django | cda9271a368621d9024cf20925590b5c67ee29c5 | 547cd00ee49ddbcb210c3dfb1460dd4d4dd1ab52 | refs/heads/master | 2023-05-23T05:20:57.263561 | 2020-05-06T01:55:46 | 2020-05-06T01:55:46 | 259,022,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | """
Django settings for trydjango project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"galaxyraad@gmail.com"
] | galaxyraad@gmail.com |
3fad6aa7f184a82dc65fef4f441d918983287519 | 75bbd71518ba604924a0df9e60b284ee48698cb0 | /src/entities/QuestionType.py | 34a849bf5859cb04668c5eccbe1ca6debf3c0be9 | [] | no_license | marsrcm/RechtsQuiz | df9280b7d61649f30bfcd884b40e4e478bad4042 | 2b3a0e9dde90384f06c20506e770277f6ff02e5f | refs/heads/master | 2022-07-16T22:53:11.092379 | 2020-01-08T13:02:04 | 2020-01-08T13:02:04 | 232,442,876 | 0 | 0 | null | 2022-06-22T00:05:03 | 2020-01-08T00:22:07 | Python | UTF-8 | Python | false | false | 160 | py | from enum import Enum
class Type(Enum):
MultipleChoice = 'Multiple Choice'
OpenEnded = 'Open Ended'
def __str__(self):
return self.value
| [
"lukas.loidolt@chello.at"
] | lukas.loidolt@chello.at |
0860d276052bc12fd05143c2aadb63ae15dca322 | c83e0cb3cccd664e2596ce608534c848f5e1aa6c | /TestGeo.py | af6cffdb8006526ff787136e0a282027de1d9fb2 | [] | no_license | MirsadHTX/Temp | 6509fbbf9931d6230d02c044b0acf04b093a4abb | 9190916c7689365f791eaaa5c999d03d44c006d8 | refs/heads/master | 2020-04-11T14:24:57.504751 | 2019-01-13T15:38:47 | 2019-01-13T15:38:47 | 161,854,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import geopandas
df = geopandas.read_file(geopandas.datasets.get_path('nybb'))
ax = df.plot(figsize=(10, 10), alpha=0.5, edgecolor='k') | [
"mka@aarhustech.dk"
] | mka@aarhustech.dk |
4e14ffb04dd95b2484b288fa796cb42399d93cbb | 82654c3c169361f692d8f32c93ca2454c9d2c32f | /deeplearning/classifiers/rnn.py | 99b7266d018222e3ecbbf2f40fde421efe328029 | [] | no_license | frontier96/cs182_hw2_student | fdd5f97c3b4ab4e2e571f4df948a7c490b9ff814 | 248eed2ce8b61b1fbe4bd0de62856baaa8ca7988 | refs/heads/master | 2023-03-11T11:18:01.536792 | 2021-02-26T10:51:48 | 2021-02-26T10:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,475 | py | from builtins import range
from builtins import object
import numpy as np
from deeplearning.layers import *
from deeplearning.rnn_layers import *
class CaptioningRNN(object):
"""
A CaptioningRNN produces captions from image features using a recurrent
neural network.
The RNN receives input vectors of... | [
"young.gengxy@gmail.com"
] | young.gengxy@gmail.com |
dd9e1a964765428a5202a1ba8da704daab76d517 | 6fc5050ee0f983edeed08e7ec6a3949c5425194a | /problem_003/problem_003.py | 72cd273036f43e45318bcebf030bf8db70ff378c | [] | no_license | HKervadec/Project-Euler | 474d8d840475b19e7955a8324fbe90138143a02a | a2a537904596599459e2cbc265834045b9182067 | refs/heads/master | 2020-12-25T18:31:59.100141 | 2017-08-25T11:35:36 | 2017-08-25T11:35:36 | 9,522,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | #!/usr/bin/env python3
# https://projecteuler.net/
# The prime factors of 13195 are 5, 7, 13 and 29.
# What is the largest prime factor of the number 600851475143 ?
from time import time
from tools.utils import measure_func
from tools.prime import prime
def solve_2():
number = 600851475143
i = 3
maxPr... | [
"hoel.kervadec@insa-rennes.fr"
] | hoel.kervadec@insa-rennes.fr |
dbb97f0cbc36f2bfd81ed8cc7c03df74b429d7e7 | dfe2a52a1c36a28a8bf85af7efd42380d980b773 | /virtual/lib/python3.6/site-packages/social/tests/backends/test_skyrock.py | 6c9bc03d42c8bfa986caebbc4d6173b6d3d79df5 | [
"MIT"
] | permissive | virginiah894/Instagram-clone | 2c2a15d89fcdb25b22bd60428cf84a01f3bd553c | 4d8abe7bafefae06a0e462e6a47631c2f8a1d361 | refs/heads/master | 2022-12-10T06:56:21.105357 | 2020-01-07T14:14:50 | 2020-01-07T14:14:50 | 229,394,540 | 3 | 0 | MIT | 2022-12-08T03:23:40 | 2019-12-21T07:41:19 | Python | UTF-8 | Python | false | false | 1,343 | py | import json
from social.p3 import urlencode
from social.tests.backends.oauth import OAuth1Test
class SkyrockOAuth1Test(OAuth1Test):
backend_path = 'social.backends.skyrock.SkyrockOAuth'
user_data_url = 'https://api.skyrock.com/v2/user/get.json'
expected_username = 'foobar'
access_token_body = json.du... | [
"virgyperry@gmail.com"
] | virgyperry@gmail.com |
91201306752bc20bb7b45c0efd9d597c69cd071d | 2c8c41953db9b515cea9378a2c2117e47758c80f | /env/bin/wheel | bed604f5c711ce0ac26c53882804f15b154e1759 | [] | no_license | gaozhuolu/Python-Flask-AngularJS-Demo | 4625936409111033db4b259e83f7dc60bbb196a1 | 1738e7c3494d13cfddeddea204815ce9484ef751 | refs/heads/master | 2021-01-15T22:34:45.610871 | 2017-08-14T18:27:41 | 2017-08-14T18:27:41 | 99,902,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | #!/opt/Python-Flask-AngularJS-Demo/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lugaozhuo110@gmail.com"
] | lugaozhuo110@gmail.com | |
0231a213452a73d2fdd8c4b936d9e3e39bf3e38a | b31939b7a0f0ecd5beedf9923a7801d320d59006 | /flathon/fbs_base.py | 858948e5cb92f98b91e3603a80bac1004fc85e6e | [
"MIT"
] | permissive | fish-ken/flathon | a0816e3dbd0ef72b3b9fac53aa563ce5b00e9a4a | ba4b580f9777fca977746c530988c3053392ce21 | refs/heads/main | 2023-07-31T16:13:54.503553 | 2021-09-30T09:38:08 | 2021-09-30T09:38:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | import abc
class FbsBase(metaclass=abc.ABCMeta):
@abc.abstractmethod
def make(self):
pass
| [
"sangyun3631@gmail.com"
] | sangyun3631@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.