blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
602fe338c6cc034c881f9b5fa1609f2eacef7cf0 | b9e630778ebc270bc19761310789525fc05b0e62 | /CovidReportHCSC.py | f5c1071fd2548b09266703c5d775ba3c95e7df9f | [] | no_license | ludwigrubio/covid19-HCSC | abca15939f76747672890cc35270f7cdce0c6d02 | 7954630936a540351a6bc2fa98d42e3e24560472 | refs/heads/main | 2023-05-31T20:34:30.249894 | 2021-07-11T04:23:47 | 2021-07-11T04:23:47 | 384,239,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,038 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 8 16:37:51 CST 2021
@author: ludwig rubio
"""
import logging
import pandas as pd
logger = logging.getLogger()
class CovidReportHCSC():
"""
Class to create an isntance of new report in Daily/Monthly basis
Attributes:
-----------
covidCou... | [
"gerardo.lgrj@gmail.com"
] | gerardo.lgrj@gmail.com |
08977ed344c5bd849838d147b062717e2952e216 | bee4888fc01385a4531f83f07e0039bbebb2df16 | /regression.py | fa0ed41996aae236fe75a259aebed43ba17da685 | [] | no_license | jhualberta/pyex | 0764ef0fed6499925362ee27da19fdb271b817b5 | 1ef3fea79d07e9cb9804817c014dfdabf819f56c | refs/heads/master | 2021-01-09T01:56:43.787548 | 2020-02-21T18:53:57 | 2020-02-21T18:53:57 | 242,209,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,643 | py | import pandas as pd
import numpy as np
import string
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression
from sklearn import metrics
from sklearn.metrics import roc_curve
import click
colNames = ["GOS", "brain", "Synek", "N20", "III", "V", "III-V/I-III", "FOUR", "GCS", "lesion"]
#neurod... | [
"jhu9@ualberta.ca"
] | jhu9@ualberta.ca |
fb5026de89f588c4cae40d8fcd5d0d5492286c95 | ba59964d15b7652e02b74a85d8f8853ef67eefb1 | /app/commander/interfaces/cli.py | 3b6d0e8b21080949b2678be1a0c476bd5e4b26ac | [] | no_license | netixx/NetProbes | 190a1d54beb5890683ce0bf5d3260f2559ba53a0 | ca59600c973fb63ec974fa4a3b03784784f30a31 | refs/heads/master | 2020-04-21T01:27:42.299904 | 2015-11-09T22:55:23 | 2015-11-09T22:55:23 | 10,406,940 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | """Command line interface for the commander
@author: francois
"""
from common.intfs.exceptions import ProbeConnectionFailed
from interface import Interface
class Cli(Interface):
"""Command line interface
Displays a prompt that reads commands from user's keyboard input
"""
COL_WIDTHS = (10, 20, 20)
... | [
"dev.espinetfrancois@gmail.com"
] | dev.espinetfrancois@gmail.com |
d88163aaaa5177271b169358ae63e56a82ca0345 | edb97b259ffc9b0c0f1f1e1964f0b1c1cee33937 | /WeatherCrawler/WeatherData.py | fa4cff95a74c31725b374dceea2ca71e13b9fb29 | [
"MIT"
] | permissive | rebsi/WeatherCrawler | b81e739941e868c77bfeee3cfad5898a778b7b37 | b2e22df988b3d49a62f286f6e224ceaa1534a409 | refs/heads/master | 2020-08-06T01:53:39.602947 | 2019-11-12T08:12:17 | 2019-11-12T08:12:17 | 212,790,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,511 | py | #!usr/bin/env python
# -*-coding:utf-8 -*-
import datetime
from MsSqlWeatherDataMixin import MsSqlWeatherDataMixin
class WeatherData(MsSqlWeatherDataMixin):
"""description of class"""
def __init__(self, stationId, dataTime, temperature, humidity, windDirection, windSpeed, gust, rainLastHour, sun, pres... | [
"robert.ebetsberger@stiwa.com"
] | robert.ebetsberger@stiwa.com |
9d6d8796d79e57adabb9abb63c3db43e487b7b06 | c72e87b8312dd9688dfd9a4a4c942240a8af9242 | /server/tests-py/test_actions.py | 87c12be52b71c403a2d3b8e7a41f3388f609bc5e | [
"Apache-2.0",
"MIT"
] | permissive | jensenity/graphql-engine | e41a23ad0fe5b97e6e94c2c4b31abe5de2dcc306 | a8affc2cda8ca3b7a6c6e96ad4eecd37662ddb0e | refs/heads/master | 2022-04-21T04:40:35.012026 | 2020-04-24T06:09:00 | 2020-04-24T06:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,369 | py | #!/usr/bin/env python3
import pytest
import time
from validate import check_query_f, check_query
"""
TODO:- Test Actions metadata
"""
use_action_fixtures = pytest.mark.usefixtures(
"actions_fixture",
'per_class_db_schema_for_mutation_tests',
'per_method_db_data_for_mutation_tests'
)
@pytest.mark.parame... | [
"noreply@github.com"
] | jensenity.noreply@github.com |
9602070d1a908a5c1f35c000e1bc4291fd8c6ad3 | f04b05e990a47a70f8e72c2518b738c9bcce1842 | /codes/simulation.py | 8e46b601c260e82e6575eb13244b1db3c6deb9f8 | [] | no_license | lkqllx/High-Frequency-Signal-Filtering | 825b7ce26d3b3e43ed5ee3dca26f612796241507 | 7dd68f45caa07e61db2a096da8b59099f13b5687 | refs/heads/master | 2022-07-11T11:28:56.090623 | 2019-12-17T03:08:57 | 2019-12-17T03:08:57 | 207,538,952 | 0 | 0 | null | 2022-06-21T23:41:24 | 2019-09-10T11:18:04 | HTML | UTF-8 | Python | false | false | 3,256 | py | """
simulation.py is to manually create an environment for testing the performance of filtering
"""
import numpy as np
from visualization import VisualTool
import random
np.random.seed(1)
def noise_signal(signals, high=1, low=-1):
"""
Add Noise to signals
:param signals: clean signals
:param high: upp... | [
"lkqllx@gmail.com"
] | lkqllx@gmail.com |
5411ce1e8a0ef802cd08f02bf93efd957c3dda38 | 8a27770fc4414f9335f9bb06c89276c45d5de86b | /snowstorm.py | c9788dba3c53f2852a242eb060ac0f04069c401a | [] | no_license | anushapanta/tkinter-programs | 4edc47a949574c7ed03b801caa18b58260241636 | 18a118a1a403caff5f006b1f4fa2707b751b8cea | refs/heads/master | 2022-12-17T03:02:31.505701 | 2020-09-22T11:01:35 | 2020-09-22T11:01:35 | 297,620,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from turtle import *
import random
shape("classic")
speed(2)
pensize(3)
colours=["blue","purple","cyan","red","yellow","green","orange"]
Screen().bgcolor("dark orchid")
def vshape(size):
right(25)
forward(size)
backward(size)
left(50)
forward(size)
backward(size)
right(25)
def snowflake... | [
"anusha474232@gmail.com"
] | anusha474232@gmail.com |
c2cfda99592ea8ed25c13139448162753c8e3e09 | 6ff7b3cd99aea670792aad35f49b4d762bd3952a | /migrations/versions/f8f3d3338933_initial.py | e1fddda3a2e45b3ac97c7d14513b75afa99b9458 | [] | no_license | melardev/FlaskApiCrud | 3af8c1f375f6aefe258334368fdc7bcab900a2a0 | 40e0ffe6f690a1698a3c3f6dd1a03398260cd073 | refs/heads/master | 2020-04-27T23:06:51.527985 | 2019-03-10T00:52:26 | 2019-03-10T00:52:26 | 174,762,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | """'initial'
Revision ID: f8f3d3338933
Revises:
Create Date: 2019-03-08 21:02:46.699000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f8f3d3338933'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generate... | [
"melardev@users.noreply.github.com"
] | melardev@users.noreply.github.com |
c8ef96a6d31d3cc3aea5eaff102bec24a40ef438 | 56c6b4fc7be95d667403585e50600afd388d9188 | /transactions/getTransactionsData.py | 579e67e3ddb3a7fa28bc4deaa2bcfdf27aadc04c | [] | no_license | pLabarta/dcrjournal-auto | f32939b6aad9589dd4e535d53f47cb8cfb74be70 | 584ea480898f56aa57cf3bfa2e4239f6d531cd68 | refs/heads/master | 2021-05-17T08:24:37.443001 | 2020-03-28T04:00:55 | 2020-03-28T04:00:55 | 250,707,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,041 | py | from decred.dcr.dcrdata import DcrdataClient
from datetime import datetime
import json, time, sys, requests
import pandas as pd
import numpy as np
client = DcrdataClient('https://explorer.dcrdata.org')
# You can enter any block before the month you want to analyze
# The date crop will take care of it (:
# Enter st... | [
"noreply@github.com"
] | pLabarta.noreply@github.com |
dfbba26851a42e9ca1b1a62230992475e7e16da9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/12/usersdata/76/5514/submittedfiles/impedimento.py | e64198eb3222c4320efd7c71f70c7c45cd091526 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#COMECE SEU CÓDIGO AQUI
L = input('Digite o valor de L:')
R = input('Digite o valor de R:')
D = input('Digite o valor de D:')
if R>50 and L<R and R>D:
print('S')
if R>50 and L<R and R<D:
print('N') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
aad8c4965b91dbc1a68802b5dc45aa593d98d20a | d65cb684d344ab072d0f9801afbd074768a059a2 | /Suanfa/天际线问题Suanfa1_3.py | e826e906c21a8c27b4b7e96acc49c55fb8d6548d | [] | no_license | QiuHongHao123/Algorithm-Practise | a918debd002182010b78e284df038c01d9921619 | e7a7b7537edbbb8fa35c2dddf2b122cf863e479d | refs/heads/master | 2023-03-14T09:16:28.407137 | 2021-03-01T11:57:54 | 2021-03-01T11:57:54 | 272,642,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | def getSkyline(buildings):
if not buildings: return []
if len(buildings) == 1:
return [[buildings[0][0], buildings[0][2]], [buildings[0][1], 0]]
mid = len(buildings) // 2
left = getSkyline(buildings[:mid])
right = getSkyline(buildings[mid:])
return merge(left, right)
def merge(left, rig... | [
"3158874848@qq.com"
] | 3158874848@qq.com |
64227c2c6a90c9fcfb1b545880778f17fb57500f | f31bf36539e43ca9bd998eb58d3311975a8b0c69 | /Assignment 3 - Backprop and Self-Attention/code/test_decoder.py | 58c9a5613be61aaa036764bbdb8bf7229b481f0c | [] | no_license | keya-desai/Natural-Language-Processing | 26dc465327ddebc3ac0bcbfe501e9661cd86ccd9 | 5c9a7149f2454f84afd3b18ba007b29b0a99fa01 | refs/heads/master | 2022-12-02T09:22:21.475022 | 2020-08-20T22:22:56 | 2020-08-20T22:22:56 | 289,068,783 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,964 | py | import encoder
import decoder
import torch
import torch.nn as nn
import unittest
class TestDecoder(unittest.TestCase):
def setUp(self):
self.vocab_size = 200
self.dim = 30
self.wemb = nn.Embedding(self.vocab_size, self.dim, padding_idx=0)
self.num_layers = 2
self.dropout =... | [
"keyadesai97@gmail.com"
] | keyadesai97@gmail.com |
967f66256d5f7939295346fde9199007e5c073b0 | ff75e9f1989c57e8e8d511ad01a10de4f1d1f60b | /mh.py | 068038afee52692a61c204c781143fb1d944ab10 | [] | no_license | GregoryZeng/pmr-cw2 | 11ef75d01358a663bcc84c05a7cc4246fc0b2fab | d9f06ec4abbee1f08624c6ea24cd783bc61187fb | refs/heads/master | 2020-05-02T05:26:40.826376 | 2019-03-27T16:25:59 | 2019-03-27T16:25:59 | 177,771,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | import numpy as np
def mh(p_star, param_init, num_samples=5000, stepsize=1.0, W=0):
param_init = np.array(param_init)
if num_samples == 0:
return []
x_curr = param_init
# burn-in stage
for i in range(W):
x_cand = np.random.normal(x_curr,stepsize,x_curr.shape)
a = p_star(x_can... | [
"gregzeng@qq.com"
] | gregzeng@qq.com |
f7a8ba1746262090a73c07c6bad57f67d52d6ea2 | 4228d415179b798ddfc7c4fb3f6af242aa8bc75f | /SnakeGame/view.py | a07be9896b823a22e1acc5b6aa686fffadca6ad0 | [] | no_license | Adel-Wehbi/SnakeAI | 2f98455006489be37c71ecdbbe6f08a3dd22a94c | 33161a6c2303171bada61ac88293720b673560f7 | refs/heads/master | 2020-08-30T15:49:20.392223 | 2020-01-18T18:58:59 | 2020-01-18T18:58:59 | 218,425,561 | 1 | 0 | null | 2020-01-18T18:59:00 | 2019-10-30T02:22:09 | Python | UTF-8 | Python | false | false | 2,372 | py | import pygame
from model import CellContent
import enum
class GameView(object):
BG_COLOR = green = 0, 135, 0
SNAKE_COLOUR = 135, 0, 0
FOOD_COLOUR = 255, 51, 0
SNAKEHEAD_COLOR = 0, 0, 0
SNAKEHEAD_OFFSET = 0.1
SNAKEBODY_OFFSET = 0.05
FOOD_OFFSET = 0.25
def __init__(self, gridDimensi... | [
"adelwehbi@gmail.com"
] | adelwehbi@gmail.com |
ac9d0ab45bb1f3c40e908be5cb872fe5fda5b093 | 26a3d877a4e1da3227834ed65a5c9056b740f4b8 | /sendgrid/utils/filterutils.py | 7910051b33a9dd6d759d23311aa8c616af2c179d | [] | no_license | shaunc44/django-sendgrid-3 | c7ddb87637c19afe434b3715e87876b5a7794238 | 0070802d7a4fbbef171add9463b35bdc282cc378 | refs/heads/master | 2021-03-13T11:01:54.854730 | 2020-03-11T21:34:35 | 2020-03-11T21:34:35 | 246,673,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | from django.conf import settings
PASS = lambda i: True
FAIL = lambda i: False
IS_ZERO_OR_ONE = lambda i: i in (0, 1, "0", "1")
INTERFACES = {
"gravatar": ["enable"],
"clicktrack": ["enable"],
"subscriptiontrack": ["enable", "text/html", "text/plain", "replace", "url", "landing"],
"opentrack": ["enable"],
}
FILT... | [
"coxs@osgbilling.com"
] | coxs@osgbilling.com |
cd54aeef70fce7aa969d28bee00bcaad640ac91d | bb1cf45bcd4af02cbb4e1c53ff95b6f4bb71d8d0 | /valoraquiz/quiz/populate.py | fca1bc110b22a01f8cbd33af20da2968a1307e3e | [
"MIT"
] | permissive | Matheus-mVilela/desafio-backend | 4d8bac3dbd203a609ceff29dafd3ca7216403098 | 64f192a036a366eee40a19a2a51a730035bdd393 | refs/heads/main | 2023-07-16T23:14:27.937077 | 2021-09-05T18:31:53 | 2021-09-05T18:31:53 | 401,106,904 | 0 | 0 | MIT | 2021-09-05T15:15:41 | 2021-08-29T17:53:22 | Python | UTF-8 | Python | false | false | 1,502 | py | import users.models
import users.choices
from . import models, services
def create_user(email, username, password, type):
return users.models.User.objects.create(
email=email, username=username, password=password, type=type
)
def create_category(title):
return models.Category.objects.create(tit... | [
"noreply@github.com"
] | Matheus-mVilela.noreply@github.com |
035ac7b690230c459aa6193cb7c95e3ede77e7d5 | 805d3df2c2e1f14f5537c4bd5bc0dc29f052f602 | /myenv/Lib/site-packages/werkzeug/utils.py | d0841d8429efa97fa252f5cc4f7f3827d0904e3c | [] | no_license | 047-Mahima/form | a70dfca4ba28248fc86a1822a7653668c59c0437 | f493375593ad8fe7a5d6ec6d42e192abebdda2a1 | refs/heads/main | 2023-05-11T10:34:10.701598 | 2023-04-29T10:50:54 | 2023-04-29T10:50:54 | 348,625,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,744 | py | from __future__ import annotations
import io
import mimetypes
import os
import pkgutil
import re
import sys
import typing as t
import unicodedata
from datetime import datetime
from time import time
from urllib.parse import quote
from zlib import adler32
from markupsafe import escape
from ._internal import _DictAcces... | [
"akashpawar080808@gmail.com"
] | akashpawar080808@gmail.com |
cc1d8f55048f4c48a653b9d1a554a6c93af9ce5b | 74581cdce74e60d59c4c43efaf3850f77f53084d | /otsu.py | b5e101b1748c727e67aae4400ae7a3368b92f90a | [] | no_license | Sjasilva/pi_2019 | b625a9c8e79e8d6a368efda620de29dd559f537d | 068c18a5ba1a57e4f26eb38544d53d48eeced70b | refs/heads/master | 2020-06-01T11:13:18.463136 | 2019-06-07T13:58:55 | 2019-06-07T13:58:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,725 | py | from __future__ import division
import math
import numpy as np
USE_PIL = True
USE_CV2 = False
USE_SCIPY = False
try:
import PIL
from PIL import Image
raise ImportError
except ImportError:
USE_PIL = False
if not USE_PIL:
USE_CV2 = True
try:
import cv2
except ImportError:
USE_C... | [
"geraldo.cruz@pe.senai.br"
] | geraldo.cruz@pe.senai.br |
35cbfb5d9ab46e0121aa703131cfebfacd12ca6e | 01493653ff4e922542d8f01898da8a60f1fcfa41 | /trees/bst_check.py | 6cd5ceac3ef6e6aa759955d5103b64b80a88c362 | [] | no_license | umeshror/data-structures-python | bcc0ac4a6be56d274e281a503933db0721b19d16 | 71ffc8be2dbd0c66e832db7c3d5c3f1bfe7566a8 | refs/heads/master | 2022-04-02T11:43:02.799121 | 2020-02-09T10:48:06 | 2020-02-09T10:48:06 | 208,948,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | class Node(object):
def __init__(self, k, val):
self.key = k
self.value = val
self.left = None
self.right = None
def tree_max(node):
"""
Return maximum between left/right and root
:param node: node/root
:return: value
"""
if not node:
return float("-... | [
"sarukumesh@gmail.com"
] | sarukumesh@gmail.com |
12e21107c31a8100c0351528f420eaca7e0e98b8 | e92cc5477a1976a4427a6dccd55ec477cdeed29a | /src/game.py | aafd472eaad0ab8a40c020c0c1f8739bb8b1bb48 | [] | no_license | seanwieser/Platformer | 32fecb234b20928036d8e8d74030b6964fc8739c | 52c45e43485e6a2f4be72051c8cc1514babd12de | refs/heads/main | 2021-06-21T12:37:05.858159 | 2021-01-16T09:33:42 | 2021-01-16T09:33:42 | 176,231,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | from classes import *
from constants import *
import PIL.Image
import os
# Useful functions
def redrawGameWindow():
global win
win.fill((255,255,255))
py.draw.rect(win, (0, 0, 0), (0, GROUND+PLAY_H, WIN_WIDTH, GROUND_H))
player.draw(win)
bulletManager.draw(win)
py.display.update()
... | [
"seanwieser@gmail.com"
] | seanwieser@gmail.com |
bfe582a5f8e7e55c85cb36383022be35ca6b9780 | c08225b2cc9924f12af667230c540ecd6b6a801f | /BUILD/sql_test.py | cf57af6140f59d4cb6e21ec2ad5922dc9d787752 | [] | no_license | eleanorstrib/hackbright | 68ef671a0281971a09029ba1a450c462b922becc | 84f692c13126b8c433153247fe0ca1d4f5a5b648 | refs/heads/master | 2021-01-21T02:45:27.857978 | 2014-12-04T23:43:02 | 2014-12-04T23:43:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py |
import csv, sqlite3
con = sqlite3.connect(":memory:")
cur = con.cursor()
cur.execute("CREATE TABLE t (col1, col2);")
with open('BUILD_SiteTimes.csv','rb') as fin: # `with` statement available in 2.5+
# csv.DictReader uses first line in file for column headings by default
dr = csv.DictReader(fin) # comma is ... | [
"melissa.fabros@gmail.com"
] | melissa.fabros@gmail.com |
869d7f8aec582f9c09dfa15e9791d99d7c9c617d | 170a4c0b1accb9468567f6a88254ff738f2a8166 | /EQ5D.py | 3fab62e39350976be780783eaeae004522dfd006 | [] | no_license | yazhisun/Labs_PreferenceScores | 2ecd9acdb21403f912200db1fa41f0f6e325ef18 | 3eb0ec0e55f1772b15a3108dd0a85dbcf75e1743 | refs/heads/master | 2021-05-09T22:56:44.996009 | 2018-01-18T16:03:31 | 2018-01-18T16:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py |
# EQ-5D regression coefficients
Constant = 0.081
N3 = 0.269
dictCoefficients = {'Mobility': [0, 0.069, 0.314],
'Self-Care': [0, 0.104, 0.214],
'Usual Activity': [0, 0.036, 0.094],
'Pain/Discomfort': [0, 0.123, 0.386],
... | [
"reza.yaesoubi@yale.edu"
] | reza.yaesoubi@yale.edu |
49681f30a6612dac501c48d0b1e070e630b6bf72 | fd9257a4cc04b89c2b8c92008770a82ccdfe85bd | /build/spdlog/catkin_generated/generate_cached_setup.py | 3db5318c1429f193fb60f8495755cfd61895d77f | [] | no_license | Zauberr/KAL | 40b135f02e9ae9c7bf55b064094aaff88c43628e | 225e538058b632c8c14cc638e12fcb124bd81e29 | refs/heads/master | 2020-08-16T18:26:19.863213 | 2019-10-16T13:38:46 | 2019-10-16T13:38:46 | 215,537,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/mrtros/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.... | [
"bobocao93@gmail.com"
] | bobocao93@gmail.com |
37b973fff2fbbb70adca43095f7713a15f44886e | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /000989letpy/letpy_059_is_20200503.py | 6e16cfdee1ebd5c0dcfe90e1764e2c9e70037371 | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | a = "Hello, world!"
b = "Hello, world!"
print(a is b) | [
"ms33@inbox.ru"
] | ms33@inbox.ru |
8059a516e77743f1739728cf8a264e52c6bdcc2f | b9bc4a0bfbd61499583debd27e00aa0e2cb50c94 | /tests/image_displayer/image_displayer_11.py | bcee717dffef9560487595b741bded6501eef715 | [
"MIT"
] | permissive | Vicken-Ghoubiguian/Imtreat | 55a8fdbecd27ca053d9c0d492c9ce1e5d001993b | 1f8e8406dc48af3b1e8e0c138a09aa1faee0b8a0 | refs/heads/master | 2023-08-23T12:39:48.107620 | 2021-10-12T08:26:24 | 2021-10-12T08:26:24 | 314,793,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import imtreat
img = imtreat.imageManagerClass.openImageFunction("../images/soleil.png", 1)
img = imtreat.definedModesClass.oceanModeFunction(img)
imtreat.imageManagerClass.displayImageFunction("experience de MMMMMOOOOIIIIII", img)
imtreat.imageManagerClass.finishItFunction()
| [
"Eric Ghoubiguian"
] | Eric Ghoubiguian |
c3dbca3d76b2ae13be8d6823f27a212653d54c75 | 72fd2f0d2c7dcca2806a10e1e27d0a7b9d7f7080 | /top_ten.py | 87a9848ab280f39b35099251084f9bfc47f88de2 | [] | no_license | ravs/TwitterUtilities | 5d03c2a974644751ee2f65890a49240268095e12 | 7b233a8b53469a8a096b97cdd1066013da575c2f | refs/heads/master | 2016-09-05T15:00:07.565269 | 2013-11-11T09:51:26 | 2013-11-11T09:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | #!/usr/bin/env python
#python script to get top ten hash tags in a tweet file
import sys
import json
#hash tag dict variable
hashDict = {}
def countHashTags(fp):
for line in fp:
parseTweet = json.loads(line)
#better to check for text key before proceeding
if 'text' in parseTweet:
tweetWords = parseTweet["t... | [
"ravs@ravs.me"
] | ravs@ravs.me |
ae4389ec76c50a34e34d8aa7eb9b393fdda2694d | 90d17d09c705947365eb72024464abeeecac4e1e | /test7.py | ad2de079f352f21cffac2dfd219d6e66910a7971 | [] | no_license | Mindy-cm19/Pythonlearning | a23ee705ddc6286066bddd0f08a11dab2f4db518 | cb06246b8126a220f5e8ca09144683fc0409caf5 | refs/heads/master | 2020-03-25T17:56:51.023134 | 2018-08-16T13:52:09 | 2018-08-16T13:52:09 | 144,004,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # 请把下面的Student对象的gender字段对外隐藏起来,用get_gender()和set_gender()代替,并检查参数有效性:
class Student(object):
def __init__(self, name, gender):
self.name = name
self.__gender = gender
def get_gender(self):
return self.__gender
def set_gender(self,gender):
if gender not in ('male','female'):... | [
"504135715@qq.com"
] | 504135715@qq.com |
5f177af7f622e3d01bef1985b99f4ad3dfd7f96d | 3054bca3c8c59ae026b6cb3505596c4d5ed9c356 | /documentprocessor.py | 806087a6538aabd569521931895e918acedf9e9d | [] | no_license | fernflower/pdf-sectioning | 2195029a74c388839513508f75d666be82751a6f | 172b14c84833de0dfe745ae39c43c7ef16967aa9 | refs/heads/master | 2016-09-06T18:41:04.446044 | 2014-08-29T10:32:06 | 2014-08-29T10:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,626 | py | # -*- coding: utf-8 -*-
import os
from PyQt4 import QtCore
from popplerqt4 import Poppler
from lxml import etree
from lxml.builder import ElementMaker
from zonetypes import DEFAULT_ZONE_TYPES
from cmsquerymodule import NSMAP
XHTML_NAMESPACE = "http://internet-school.ru/abc"
E = ElementMaker(namespace=XHTML_NAMESPACE,... | [
"i-vasilevskaja@igrade.ru"
] | i-vasilevskaja@igrade.ru |
4a40f72f4b9ea6739c0c443c81269490ece59a25 | 6637bc6e80e7502705856e192fc53d2c2d7e0312 | /tobe.py | a4bff03fe0ebc8fa52991dbafa16e58c9524aebf | [
"MIT"
] | permissive | pavelkryukov/studious-octo-spoon | 6d15c2ea54c05faf03ed8bc7a7e08de7d1c87a6a | 6b9f10824e7a440b15789c0b19951dcab3cd6e02 | refs/heads/master | 2021-01-22T22:34:44.190449 | 2017-05-29T23:23:36 | 2017-05-29T23:23:36 | 92,781,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import random
src = "tobe"
letters = "abcdefghijklmnopqrstuvwxyz"
output = "tobs"
while not output == src:
output = random.sample(letters,len(src))
print (output) | [
"kryukov@frtk.ru"
] | kryukov@frtk.ru |
ac7d3826b9939d6d2fb9b9de03a7d8131dd6d6b4 | 0945c811bf6e9c980a193b0820edea98aebb7d4a | /create_vm.py | a9f0cbebcad168614ef8aa3a4b1f856b3c7723cd | [] | no_license | jitendra-singh01/azure-python-scripts | 64ed791a1ef5fb4134de823576791653af7a4e5f | 98f5beea3dae30029b2a02b2e1cac1155476d745 | refs/heads/master | 2021-07-14T21:41:10.836720 | 2020-11-29T15:53:48 | 2020-11-29T15:53:48 | 221,238,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | from azure.common.client_factory import get_client_from_auth_file
from azure.mgmt.compute import ComputeManagementClient
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.network import NetworkManagementClient
import os
import traceback
USERNAME = "ubuntu"
# Resource Group
GROUP_NAME = 'azure-sam... | [
"jayantjainco@penguin"
] | jayantjainco@penguin |
3768a008bf0d01110697053d81caba8a96e32d01 | 54f09892bb73cea57e21bce961c32d7cb58629c6 | /Content/WallBackGround.py | 7714fc35ce600baf55c5f24bbf05225d55c7ab95 | [] | no_license | tung362/MtRainierHeroSquad | 6c95609f3a685befea465b2339f5845f4f26b0b9 | a684925325f48e6b3ccfe36b045ac20d401ea198 | refs/heads/master | 2021-01-19T06:58:42.652909 | 2017-04-07T05:16:02 | 2017-04-07T05:16:02 | 87,512,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,853 | py | import Zero
import Events
import Property
import VectorMath
Vector3 = VectorMath.Vec3
class WallBackGround:
def DefineProperties(self):
self.MaxHealth = Property.Float(300)
self.CurrentHealth = Property.Float(300)
self.Start = Property.Bool(True)
self.TextureNumber = Property.Int(0... | [
"7319tnguyen040@gmail.com"
] | 7319tnguyen040@gmail.com |
f101697b52e3d9220832a5188b3e621b8780f43b | c160dcfa9d8ebf186b596cbddd509cd3fde35ffd | /simple_tests/writeTest.py | 7ef47d639d6d034b097baa05f3419f1d7dd581f5 | [] | no_license | hbreauxv/shared_projects | ace56cf9a62c6c755d82ff25b1a3d31738f62cd8 | bf05f4c65ac8af459d9be04c291c5d42c8a56a9d | refs/heads/master | 2021-08-07T05:07:37.777521 | 2018-09-21T19:12:20 | 2018-09-21T19:12:20 | 134,627,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | file = open('testfile.txt', 'w')
file.write('Hello World')
file.close()
| [
"hbreauxv@gmail.com"
] | hbreauxv@gmail.com |
4c69aba309858501551b000e6236b893e0d8f7f7 | 30b2eb381ec8f3225671274e77a55b63206dfb60 | /leetcode/p0461/solve.py | d9975e98a22b92ab40c7733e7fe0660fbb2ee3ca | [] | no_license | b1ueskydragon/PythonGround | 52888f32336e5e20be8490454beb67e676be7057 | 5a401250e88926235f581e6c004d1a4acb44230d | refs/heads/master | 2021-07-10T03:00:38.340959 | 2021-04-02T03:34:29 | 2021-04-02T03:34:29 | 98,208,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | class Solution:
def hammingDistance(self, x: int, y: int) -> int:
xor = x ^ y
ones = 0
while xor:
if (xor | 1) == xor:
ones += 1
xor >>= 1
return ones
if __name__ == '__main__':
s = Solution()
"""
011
101
---
110
... | [
"dragoalie@gmail.com"
] | dragoalie@gmail.com |
01d6c0f40e4d86f1d6eaea281414fae24e0e6749 | 966a0c41d2e4c09e4742db4627e8a40d5ec0378c | /tests/common/test_permissions.py | d50e1824db9e32eca716a7d105f13bc5dacbb51f | [
"MIT"
] | permissive | seedwithroot/myth-caster-api | 4436a80f535d455b4708af21427fd99edc24502a | 76a43f48b70c6a4b509c90757d7906689799cc25 | refs/heads/master | 2022-12-19T08:03:53.425495 | 2020-09-27T03:36:33 | 2020-09-27T03:36:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,529 | py | """ Unit tests for the common.permissions module """
from django.contrib.auth import get_user_model
from ddf import G
from rest_framework.test import APITestCase, APIClient
from character.models import Character
from skills.models import Skill
IS_ADMIN_OR_READONLY_PATH = '/api/users/'
SKILLS_PATH = '/api/skills/'
... | [
"tristangadams@gmail.com"
] | tristangadams@gmail.com |
61d86514b4f788b34ca4fa7e4b2e2c9fe7d8d723 | c07de6f278e7ffc11b4e1c7b37fdeae0d8aeb4a1 | /Section A/group10/task_1/part_1.py | 81576b2078ad1bfc40b4448aba58bd1cf2c06845 | [] | no_license | Medhashah/Big-DataProject | 729c1d14efc5096bae3dd150e9c218fa583a7861 | 571473626e82881b07073edf1de52f2b3563b294 | refs/heads/master | 2020-10-01T07:30:25.637471 | 2019-12-12T21:16:08 | 2019-12-12T21:16:08 | 227,487,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,176 | py | import json
import subprocess
import os
from dateutil import parser
from pyspark.sql import SparkSession
from pyspark.sql.functions import *
import pyspark.sql.functions as F
import time
import sys
def main(start_index, end_index):
spark = SparkSession \
.builder \
.appName("big_data_prof") \
... | [
"mys286@nyu.edu"
] | mys286@nyu.edu |
b9fbeb110968935494faf7bf0cf13c35573c9be4 | 8bb610173584f7027b49ddfde3caa8806c509a1d | /automatedtesting/selenium/selenium-test.py | b70e208ee6d9bc32e2bc71eb57a3fd30f4d6d5d6 | [] | no_license | ooeid/ensuring-quality-releases-with-azure | bb72c206ad97129694e3f874987e27371bd3b2bf | 49ada0f70c7fe49006d1c8d78e4e3537f7038424 | refs/heads/main | 2023-07-21T23:09:34.843145 | 2021-09-05T00:26:09 | 2021-09-05T00:26:09 | 397,095,548 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # #!/usr/bin/env python
from selenium import webdriver
from selenium.webdriver.chrome.options import Options as ChromeOptions
import datetime
def timestamp():
return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
# Start the browser and login with standard_user
def login (driver, user="standard_user", pas... | [
"ooeid"
] | ooeid |
1d6d8f589fd670ded80fcfaa97a34c53e40fac81 | 960f3c1b1a64ee58c939857b91191df18a535fe6 | /notion_api/hotspot_updater.py | 9a4b3358532917b4324771d38de02a86e131f9fb | [] | no_license | arshadansari27/growth_board | f15ac23d4a87cf0a202bec6bd5a2027ba9cde660 | 7f13a99c1ad965456399ca180e0cb1686011e26a | refs/heads/master | 2022-12-09T06:27:10.280818 | 2020-06-25T08:03:29 | 2020-06-25T08:03:29 | 243,248,710 | 0 | 0 | null | 2022-12-08T03:56:26 | 2020-02-26T11:41:18 | Python | UTF-8 | Python | false | false | 1,815 | py | from datetime import datetime, timedelta
import pytz
import requests
from requests.auth import HTTPBasicAuth
from config import CONFIG, TOGGL_URL, NOTION_TRACKING_DAILY_URL, TOGGL_KEY
from notion_api import NotionDB
daily_tracking_url = CONFIG[NOTION_TRACKING_DAILY_URL]
toggl_url = CONFIG[TOGGL_URL]
api_key = CONFIG... | [
"arshadansari27@gmail.com"
] | arshadansari27@gmail.com |
3be69ff7ff3d5004acb3b797e69f0622319996a5 | 6809845abdfa971271a42de292c6af46241d60aa | /photo/migrations/0006_auto_20151203_2048.py | fabbafe0c642497aa138fa2f306fcee1fd01f65c | [] | no_license | VosOditDeus/Ms | 180ddf2aa819da5b41d819f832deeaf0722c4e8e | da3d83052525e72f49dd10d6a6f633f021fb1e75 | refs/heads/master | 2021-05-01T09:15:45.793397 | 2016-02-02T19:30:48 | 2016-02-02T19:30:48 | 47,513,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photo', '0005_auto_20151203_2038'),
]
operations = [
migrations.RemoveField(
model_name='image',
name=... | [
"vosoditdeus@gmail.com"
] | vosoditdeus@gmail.com |
6604fb15b9ff9268bd74549c1ed6720f0e95bce2 | b729e399ee736b364630d4648bf51285892789d7 | /automatic/utils/server.py | ec8ecfaa91f7f0cfc11c35a5630aa1f1d244e1cf | [] | no_license | antmoveh/auto | 25ec59517257706be3e20a9eb87a81bc0c7c8a11 | ad55f0b6e0021e309f1ea69d35d1125231477965 | refs/heads/master | 2021-07-14T02:33:46.984381 | 2017-07-12T09:46:02 | 2017-07-12T09:46:02 | 96,770,244 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,950 | py | from .exceptions import DeployError
from .log import LOG
from automatic.models import *
class SERVER():
def __init__(self, s_id=None, s_name=None):
self.id = None
self.server_name = None
self.server_host = {}
self.server_db = {}
self.server_path = {}
self.server_act... | [
"shen.ren.love@163.com"
] | shen.ren.love@163.com |
51c7bb8a93222572915e9c948d7a2094ae2afc0b | 9c04dfec0c7e6a5e82fc5bf0ddf2e06c2308cdef | /packages/auto-nlp-deployment/src/trainings/runtimes/kubernetes/kubernetes_training_actor.py | 4573f5e9ba944ad7316f05ef13a0a4da4a77c2b8 | [
"MIT"
] | permissive | fhswf/tagflip-autonlp | 8d678c780476d20d4d870a23320e5908a4e8972f | f94abb35ed06198567e5d9cbb7abb7e112149d6c | refs/heads/main | 2023-04-07T10:19:01.108884 | 2022-04-10T19:56:48 | 2022-04-10T19:56:48 | 410,777,896 | 5 | 2 | MIT | 2022-04-10T12:19:35 | 2021-09-27T07:07:28 | TypeScript | UTF-8 | Python | false | false | 4,422 | py | import json
import os
import kubernetes
import mlflow
import mlflow.projects
import yaml
from mlflow.entities import RunStatus as MLFlowRunStatus
from mlflow.projects.kubernetes import KubernetesSubmittedRun
from mlflow.tracking import MlflowClient
from docker_repositories import DockerRepositoryService
from training... | [
"timo@n.euhaus.net"
] | timo@n.euhaus.net |
20ad013549fca69ede21708590b3ebd07ae70136 | f1818c9ce5d26c89b2b3eda46a5288577122b937 | /Tic_tac_toe_python/game.py | cb33f21c4e5581a56fa3413a7efb9796cc14a8b9 | [] | no_license | Theodore1512/Theodore1512 | 04bc22f070a049b32d3b5f4ec00ec3ccc30e26bf | 532a628b8d9b80beb298c1fae1bca0080e9fb606 | refs/heads/main | 2023-07-11T05:29:50.733078 | 2021-08-31T14:42:31 | 2021-08-31T14:42:31 | 392,699,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | #
# inspired by Kylie Ying
# Developed by Theodore Vasilikos
# 8-27-21
#
import math
import time
from player import HumanPlayer, RandomComputerPlayer, SmartComputerPlayer
class TicTacToe():
def __init__(self):
self.board = self.make_board()
self.current_winner = None
@staticmethod
def ma... | [
"noreply@github.com"
] | Theodore1512.noreply@github.com |
f30b334dfdfba093a92bf40f797a2dcb7f09a8c8 | eb358e65208e909b7ffae71388ac15a8db419863 | /writers/__init__.py | c2e9e7607c76babee15ec1c173a336b288e2d80f | [] | no_license | YaserJaradeh/SyntheticDSGenerator | b329e85c1d85c20325154aa84f0ab4ab8d451bf2 | 4fb8ffba7008f4ad82122e66038ff8b08789a82e | refs/heads/master | 2020-08-28T00:24:01.179022 | 2019-11-04T13:41:42 | 2019-11-04T13:41:42 | 217,533,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from . import BaseWriter, RDFWriter
__all__ = [BaseWriter, RDFWriter] | [
"noreply@github.com"
] | YaserJaradeh.noreply@github.com |
5493b2f3a565402852a6d878c4d63e0d4b1c5509 | 3263139017e2e3cc253e93a9fb92604b00176466 | /pias/pias_logging.py | 761213610fb3cf88f47af4c7ab242ecf47990d20 | [] | no_license | saalfeldlab/pias | 245fb589b30e197fc03c152231ecc138d6ac7ae3 | acc7c19dc0ca81b846816ec0d0edf7ff87d46665 | refs/heads/master | 2020-04-22T06:38:58.126298 | 2019-03-10T19:01:53 | 2019-03-10T19:01:56 | 170,197,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import logging
print(logging)
trace = logging.DEBUG- 5
logging.TRACE = trace
logging.addLevelName(trace, 'TRACE')
class PiasLogger(logging.getLoggerClass()):
def trace(self, msg, *args, **kwargs):
self.log(trace, msg, *args, **kwargs)
logging.setLoggerClass(PiasLogger)
levels = ('NOTSET', 'DEBUG', 'INFO'... | [
"hanslovskyp@janelia.hhmi.org"
] | hanslovskyp@janelia.hhmi.org |
daaa06653b0e498b7a16be9783d039231ad6c81e | 27c01e47c29ee4e0f7755809b2e8eb104c9c1e32 | /toy/shared_to_shared.py | 29d06d1bab0267480efbd6e1252cbac1729c5d26 | [
"MIT"
] | permissive | 0xbunyip/dqnet | 29c525486c013656df66859319298859746f0eee | d7d6fe9de4256d8ec1313cc4a625282025778202 | refs/heads/master | 2021-06-01T05:11:19.220892 | 2016-07-15T09:08:02 | 2016-07-15T09:08:02 | 56,122,560 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import numpy as np
import theano
import theano.tensor as T
np.random.seed(333)
s = theano.shared(np.arange(12).astype(np.float32))
d = T.cast(theano.shared(np.arange(5).astype(np.float32)), 'int32')
r = s[d]
f = theano.function([], r)
print f()
| [
"chiemduybao@gmail.com"
] | chiemduybao@gmail.com |
8989de43385136114c810498d5e6ec4ff969e026 | fcdd39835340e377d2271e6da2b6a2be5ccdac0c | /src/init.py | a150ead4568f8f6c2889adbb2a28518474bd43a6 | [] | no_license | whitepooh/RTD_test | 3648a036d53ce1855128dc95a2e8c488ab5e7350 | dc5d7aa71982cce9058054994fbb1ee9004c3a87 | refs/heads/master | 2021-01-10T02:16:28.257922 | 2016-03-16T05:58:47 | 2016-03-16T05:58:47 | 53,993,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py |
__version__ = '1.0'
import sys
# print the calculation result
def print_result(op1,op2,result,operator):
print("{0} {2} {1} = {3}".format(op1,op2,operator,result))
# display the guildine
def print_guide():
print("1: addition")
print("2: subtraction")
print("3: multiplication")
print("4: divisio... | [
"like_otl@naver.com"
] | like_otl@naver.com |
798bdae28615d1a0be43a72522800823c79108fd | 7393309331fde02a139d1b9341da6cf8f3d66ce1 | /todo_app/settings/production.py | 8ae22645785c66083e7019b5afc2b043cf88ebca | [
"MIT"
] | permissive | golmansax/todo-app-in-django | 556707b766a6dca5bfbdbf0ff40cd88be0c909dc | 54c67de8fe0592bcbcdb269e9da06e97d4069889 | refs/heads/master | 2016-09-05T19:53:53.945914 | 2015-07-02T01:50:08 | 2015-07-02T01:50:08 | 35,309,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # pylint: disable=wildcard-import,unused-wildcard-import
from .base import * # noqa
DEBUG = False
| [
"holman@golmansax.com"
] | holman@golmansax.com |
be40ef08108936d145f86fe1c8b27f02fab25bee | b1ee261d3305e76192feba32fcc2fa7820bbbd61 | /src/imagemsg_to_png.py | ed1d2de2ef1dd56f1f73c2e08b9308ca0a689640 | [] | no_license | duckietown-project-unicorn/bag_tools | 7c251b123eb5e551dd9e06e96085cf704191f8f4 | 3b1c2179e8e77cc37e0fd85e7e1d83e8a2ae3a4a | refs/heads/master | 2020-04-07T02:33:11.258974 | 2018-11-17T14:14:52 | 2018-11-17T14:14:52 | 157,980,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | #!/usr/bin/env python
###############################################################################
# Duckietown - Project Unicorn ETH
# Author: Simon Schaefer
# Subscribe and store compressed image.
###############################################################################
import cv2
from cv_bridge import CvBr... | [
"sischaef@student.ethz.ch"
] | sischaef@student.ethz.ch |
ba81708752f0fb17ace59645543fa3e7548bc1cb | 6bfcb3b91c2489cab0d9788079f69f37cf7e1387 | /test/test-bbox.py | fdd971e119df9736e87277292955aa7e59241bc5 | [
"BSD-3-Clause"
] | permissive | glamod/cdm-lens | 02f77f4270594acfadcf5b628bcdd8ea9a574b46 | d257906a3cd9fd01c118777803ef6b880b15ba81 | refs/heads/master | 2023-01-28T17:44:25.861444 | 2023-01-13T08:55:13 | 2023-01-13T08:55:13 | 212,615,087 | 1 | 0 | NOASSERTION | 2022-12-08T06:50:15 | 2019-10-03T15:34:44 | Python | UTF-8 | Python | false | false | 2,423 | py | import requests
import pandas as pd
import io
import math
TMPL = 'http://glamod2.ceda.ac.uk/select/?domain=land&frequency=monthly&variable=accumulated_precipitation,air_temperature&intended_use=non-commercial&data_quality=quality_controlled&column_selection=detailed_metadata&year=1974&month=03&bbox={w}.0,{s}.0,{e}.0,... | [
"ag.stephens@stfc.ac.uk"
] | ag.stephens@stfc.ac.uk |
5b32b72979653aa9f50816ccfd662688417c13c4 | a8de4bf4f78c0c74b822292f100452a7a6a62d90 | /SDM/rules/SynSrcRule.py | ff00edfe5375c02901193f1ddb960723a5f5fa97 | [
"Apache-2.0"
] | permissive | jalilm/SDN-Monitoring | d7f78ccfdcf3b6552d58ab5a5dc108570686629e | 4ba8dd0f0ed5e44c0e803713d6c82ee2c815c7e4 | refs/heads/master | 2021-05-03T11:44:24.295957 | 2016-10-06T07:58:26 | 2016-10-06T07:58:26 | 31,901,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | from SDM.rules.FlagsSrcRule import FlagsSrcRule
from SDM.rules.Rule import Rule
from SDM.rules.TCPIPSrcRule import TCPIPSrcRule
class SynSrcRule(Rule):
"""
A class that represents a rule in the switch table.
"""
def __init__(self, datapath, ipv4_string, subnet_string, table_id=0, priority=0, father_r... | [
"jalilm@cs.technion.ac.il"
] | jalilm@cs.technion.ac.il |
ff6760ecb82a5853707ebe69781165f141b9ed77 | 61ba9ec78e004cbf7ad38dbc047b7d9b99a013cb | /src/GymNow_site/pages/migrations/0007_member.py | 51dd481fde4654dc51dbdf43d5feaffe5143d77b | [] | no_license | lackeya2/GymNow-Final-Year-Project | eb286d5b75238057cc1443e05f0c569fc6b10846 | 89cabd3cb44b78dd5e103c7c34f940a222a4d9aa | refs/heads/master | 2023-06-05T09:31:09.094600 | 2021-05-24T15:16:37 | 2021-05-24T15:16:37 | 378,228,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # Generated by Django 2.2.17 on 2021-03-25 16:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0006_customer_bookings_transaction_id'),
]
operations = [
migrations.CreateModel(
name='Member',
fields=[
... | [
"adrian.lackey2@mail.dcu.ie"
] | adrian.lackey2@mail.dcu.ie |
a36ea7f7089a08780838322db177294d028b5dae | ed6f45ae1a8ed7d37f9662394f4df29366e7806e | /web19/app.py | 72cc8962acf6bb45c2dd79136be7c7373f917e0c | [] | no_license | FTDRefrain/python_read | e2b9e0cb9b48293c2eb08b1928bd7e9bd1c3efb8 | 1ec78ecb40b8bd47dd8743c7f93b41af3ca6e57a | refs/heads/master | 2020-03-27T17:57:21.443992 | 2018-08-31T12:20:37 | 2018-08-31T12:20:37 | 146,887,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | from flask import Flask
import config
# web framework
# web application
# __main__
app = Flask(__name__)
# 设置 secret_key 来使用 flask 自带的 session
# 这个字符串随便你设置什么内容都可以
app.secret_key = config.secret_key
"""
在 flask 中,模块化路由的功能由 蓝图(Blueprints)提供
蓝图可以拥有自己的静态资源路径、模板路径(现在还没涉及)
用法如下
"""
# 注册蓝图
# 有一个 url_prefix 可以用来给蓝图中的每个路由加... | [
"yuanzhenyi@sjtu.edu.cn"
] | yuanzhenyi@sjtu.edu.cn |
1e4c3dc8648edeb0f51d861b4003419811ebc27a | 28b6e6a35b6591f36140b6cb907ac60c71dbcab1 | /app/migrations/0001_initial.py | b9dba1404818a767036d64bf7989c45046f5bdcf | [] | no_license | mahmud-sajib/Social-Profile-Rest-Api | 97c89af42439d08e730b3901fc76ac21cc3a7280 | 5c84ad847ce3303d63284a4363a2b1b4aaf76319 | refs/heads/master | 2023-03-22T09:24:00.439550 | 2021-03-15T08:18:44 | 2021-03-15T08:18:44 | 347,887,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # Generated by Django 3.1 on 2021-02-28 06:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"shout.mahmud@gmail.com"
] | shout.mahmud@gmail.com |
1f2b719692cb0e7eeaf979a85432258556dc5cf3 | 1380088318ee63e2ee1ffb4e0f1c709487d4cf56 | /Iterables/Iteration_Protocols.py | bbfaef869778bf0075d514737fe5bf4695207906 | [] | no_license | minamh/Python-Fundamentals | d331a50d1e4dbad786abf8d8a8709e83987a6e5b | 5e298bf243e4ac4f77f106425ad946e272293ea1 | refs/heads/master | 2020-06-13T18:17:23.076796 | 2019-10-03T22:44:45 | 2019-10-03T22:44:45 | 194,744,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | iterable = ['Srping','Summer','Autumn','Winter']
iterator = iter(iterable)
while (True):
try:
print(next(iterator))
except StopIteration:
print("Reach the end of the list")
break | [
"minahabashy@hotmail.com"
] | minahabashy@hotmail.com |
bd93ffb133655aa9cc9fecc76bd105afad5b5f4e | b68bad3690a2bd6bd1140bb8299f59a47dc79b6a | /lib/python3.7/io.py | 2fed886fd2c394a761c4b30572acefb656749aa6 | [] | no_license | ghaffaru/gender-prediction | 12397d68d2e750305770bd53a6487077e53e4723 | 4b0436c7352f271f3f3b6c729d966017c3420c8f | refs/heads/master | 2022-01-16T16:53:37.773223 | 2019-07-29T08:47:01 | 2019-07-29T08:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /home/ghaff/anaconda3/lib/python3.7/io.py | [
"mudashiruagm@gmail.com"
] | mudashiruagm@gmail.com |
f269d82402c98d7bf21f0b90e965b2aeff0c96d7 | 6850b97bd7e5402464024f24ae608f960801bfea | /workflow.py | 757457797f856f138beaacd9485a8e393c0237e9 | [] | no_license | rafaelfsilva/pid-simulator | e3f035494a4968b416691b4119c71a1f7bdaddf8 | 1b9d548133422aebe038ce07651bf522ad38799a | refs/heads/master | 2020-12-31T05:09:58.622076 | 2016-05-23T20:08:56 | 2016-05-23T20:08:56 | 59,513,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | #!/usr/bin/env python
#
# Copyright 2016 Rafael Ferreira da Silva
# http://www.rafaelsilva.com/tools
#
# 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/LICE... | [
"rafsilva@isi.edu"
] | rafsilva@isi.edu |
bf4bb70eebecdb403967b7f33dc90ddc5bc48a6b | 98bd8d84d572052f50dd9552eabee48fe29c5c4f | /For_s/Test.py | 0e562f90ef40b0412ca0c82fa2ef3587764f6b73 | [] | no_license | MNandaNH/MNandaNH | cab0ba8bc63e84a7d589a2b8ca5166e1bc4b4f10 | 1503da79e62e43da9dcf9f69be885275f2dbcc6f | refs/heads/main | 2023-07-14T02:37:56.903868 | 2021-08-27T05:41:06 | 2021-08-27T05:41:06 | 398,369,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 19 22:52:49 2021
@author: fer
"""
print("Comienzo")
for i in range(0,30,1):
print("Hola ", end=" ")
print()
print("Final")
for a in "AMIGO":
print("Dame una", {a})
print("¡AMIGO!")
veces = int(input("¿Cuántas veces quiere que le salude? "))
... | [
"noreply@github.com"
] | MNandaNH.noreply@github.com |
0a6291eaae1de1fc9b8321ad436642d3776c3ae5 | d48dfa622e07d346a91be3aa8e8657e409faf552 | /RozbudowaKodu/lab_files/lab_file_2.py | 6b25fe1a7a19217f18835bf54768e39c3fa1b477 | [] | no_license | sineczek/PythonSrednioZaawansowany | 71c8c94f7cdc193482a50b94315b86e1f0ab0039 | 75823b36de99ef9ac487672cf131a0b84ce23d2b | refs/heads/main | 2023-03-14T04:33:26.853500 | 2021-03-06T18:13:02 | 2021-03-06T18:13:02 | 332,524,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import math
argument_list = []
results_list = []
for i in range (1000000):
argument_list.append(i/10)
for x in argument_list:
results_list.append(abs(x**3 - x**0.5))
print('min = {} max = {}'.format(min(results_list), max(results_list))) | [
"michalzaitz@gmail.com"
] | michalzaitz@gmail.com |
a8016c963c144a2e6496e7df991b399b0b11d99d | d452860a530e0ad056f8504b8515ee93bb384218 | /polling_app1/settings.py | 44c3d80bc71b6918ee3c48b4287b6e0338776f7d | [] | no_license | ridhoasfian/django_polling_app | bb64ff7abc8ba26602cdc01dd200843483b6321b | 04fdb8ce97a3cd2dc956609a3f14b0b675562a2d | refs/heads/master | 2020-03-27T21:37:15.464860 | 2018-09-03T12:38:26 | 2018-09-03T12:38:26 | 147,161,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | """
Django settings for polling_app1 project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os... | [
"ridhoasfian86@gmail.com"
] | ridhoasfian86@gmail.com |
0d0d7db1d305e82b504804746fdd50151a35e1b5 | 5c7ac1213bdeed103d88e6b5f6dc78587e05464c | /myBlogProj/settings.py | ca8032c6214ebd652b69c27d2a5b6b8f15769d94 | [] | no_license | madao33/myBlogProj | fc8566d9f977d6d21686b46e37e86ce0adb7864d | c8e8a60ec635016b3eba09b7ae9f9cd545dc48fe | refs/heads/master | 2022-11-27T15:47:29.573099 | 2020-07-31T09:35:50 | 2020-07-31T09:35:50 | 280,379,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | """
Django settings for myBlogProj project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"3282389858@qq.com"
] | 3282389858@qq.com |
8290d4f3cb61dd5d6eeabcf67b1b96e05bd08d6b | 2d160387e076e41c5a9cdea1e14c366bfa346842 | /copy.py | 29fff43924943deeaa00feaa8bcfa8f1064c8454 | [] | no_license | OrthantBing/Pythonlearnings | 0c959169ed951e22e5f7ca39b6818fdae0de665f | e23bdfc9a81457b423e79a6ad8a752fb8df01a8b | refs/heads/master | 2021-10-09T05:45:57.810661 | 2018-12-22T03:25:21 | 2018-12-22T03:25:21 | 112,430,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Python program to print all permutations with
# duplicates allowed
def toString(List):
return ''.join(List)
# Function to print permutations of string
# This function takes three parameters:
# 1. String
# 2. Starting index of the string
# 3. Ending index of the string.
def permute(a, l, r):
if l==r:
... | [
"antonbright@athenahealth.com"
] | antonbright@athenahealth.com |
7ce7379e76ae153dda18415fc9bbdb7332c10fc9 | b61c532fd11dbe29039505e995778ce812674f7e | /terminalformat.py | ffd3916dc4a98fd03f908ec21f7f8c6aeb8dd5a8 | [] | no_license | willvdb/scripts | 996be0bda758e6d19d52527d9a72a498bd16d3ea | 2ba902e8ae0e3c86bdfed67dd3aa58cb54aef54d | refs/heads/master | 2022-12-05T19:08:34.827631 | 2022-11-21T04:59:52 | 2022-11-21T04:59:52 | 130,092,870 | 0 | 0 | null | 2022-06-14T21:33:53 | 2018-04-18T16:38:11 | Perl | UTF-8 | Python | false | false | 1,236 | py | class TerminalFormat:
"""A terminal output helper class"""
def __init__(self):
self.isBold = False
self.isUnderline = False
_info = '\033[94m' # blue
_success = '\033[92m' # green
_warning = '\033[93m' # orange
_error = '\033[91m' # red
_emphasis = '\033[95m' # purple
_bold = '\033[1m'
_underline ... | [
"will@ipartnr.com"
] | will@ipartnr.com |
c668614ba1c31b9ddada5697bd9bd9833931bd3e | d28a65d23c204a9736b597ae510d9dd54d2ffd0f | /bin/newdb | cbffe8f0ede31ac97c8ea7393d309dee7b9fa505 | [
"BSD-3-Clause"
] | permissive | cts2/rf2db | 99ba327611e620fc5533245064afcc1daff7c164 | 985cd7ad84c8907306a0d7d309d4a1c0fb422ba4 | refs/heads/master | 2020-05-17T22:37:25.476553 | 2015-08-24T22:18:19 | 2015-08-24T22:18:19 | 15,264,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,053 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2013, Mayo Clinic
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyr... | [
"solbrig.harold@mayo.edu"
] | solbrig.harold@mayo.edu | |
47dd2201eee56ee0b205dcc830ba6f6ee494913c | 602d62c74c70854ce8ea043410ebd81d1fec5462 | /hong/visualize.py | a790dd94f4441350c089a2fe383125071ce7d4cb | [] | no_license | AllenZHX/CPE646Project | a63ca81f81a461487c205ecc1a3bdd717a038631 | 196db1d6fcb16b033cae0eaedc7ab77c5f9a0152 | refs/heads/master | 2020-06-10T08:32:58.742341 | 2016-12-11T01:32:03 | 2016-12-11T01:32:03 | 75,979,795 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import numpy as np
import pandas as pd
df = pd.read_csv('/home/hong/PRProject/data/voice.csv')
df.head()
print("Total number of samples:{}".format(df.shape[0]))
print("Number of male: {}".format(df[df.label == 'male'].shape[0]))
print("Number of female: {}".format(df[df.label == 'female'].shape[0]))
import seaborn
... | [
"AllenZHX@github.com"
] | AllenZHX@github.com |
31982ead5acacd09b5d42b51ba3c5bbe5ba5c3fa | 2e217709b2442f95933ebdd5ef3979d5f443e0ca | /double_list.py | de16ad538bedeb27ec8eb8dd6bd894a58b27a5df | [] | no_license | kudoyoshihiro10xx/11_bulit_in_function | 30e20b91d780ddf573d3c6ae26013c76b16e4686 | 126b48fdb866fb9a12d982a9d5c83e0216d0de99 | refs/heads/master | 2020-04-27T23:03:09.678714 | 2019-03-10T14:17:55 | 2019-03-10T14:17:55 | 174,759,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | numbers1 = [1, 2, 3]
def double(number):
return 2 *
for
| [
"kudo@example.com"
] | kudo@example.com |
9e2a1eb8dc0e28203677ec2235e4047d4077c6ce | aed88d107685092d6cdc43129f94138b206e3dda | /dadi/2Pins/GBS_bottle.py | 68910b94d3e0d400d2b3a2c2945ae303538bb4c7 | [] | no_license | claire-p/Pinniped_NeNc | 91e255bddd4239ccacf96c66b094037acf4ada1c | fd02262b59ec9e4386ba0f5cdb619c10f4c2a19a | refs/heads/master | 2021-05-20T22:03:31.393624 | 2020-03-03T13:45:19 | 2020-03-03T13:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | # Numpy is the numerical library dadi is built upon
import numpy
from numpy import array
import matplotlib
matplotlib.use("AGG")
import sys
sys.path.append('/proj/b2012209/private/tools/dadi/RyanGutenkunst-dadi-e741dc81ff1e')
import dadi
# In demographic_models.py, we've defined a custom model for this problem
impo... | [
"noreply@github.com"
] | claire-p.noreply@github.com |
37460d45828f9a6bb867d37149fd0b03abad6412 | 2ab3155d9ca69d61d5ef48870640cbb3c8b400bd | /search.py | e0a08a05fd651799ff33f08aa12eced56146be9c | [] | no_license | JoshuaKrause/AIND_PacMan | d58a3f36da18a436989fc2b848e6f986cb4a02ab | 4b5b46ecf6c119b9c7e998bfdd449590b90f9a9b | refs/heads/master | 2021-05-15T05:05:53.811562 | 2018-01-17T22:59:41 | 2018-01-17T22:59:41 | 117,585,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,879 | py | # search.py
# ---------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein@cs.be... | [
"jkrause@joshuakrause.net"
] | jkrause@joshuakrause.net |
2b180c0981ccf907afbff320dc6bdc395da1bad8 | 62d3e022dd2d998bc0b50e93bfa0af7f53ff7f39 | /205cafe.py | eab3ac5108273e576b2c01e9aed54b264e9f5aa6 | [] | no_license | wtchung23/205CDE-HTML-code | 3a158153f7ee43e419e93bc7bef7628645f7fb05 | 5d6c402b95ff00f732665be12c5adc4b6eaf802c | refs/heads/master | 2021-04-12T04:36:40.332112 | 2018-03-19T13:51:28 | 2018-03-19T13:51:28 | 125,856,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,901 | py | from flask import Flask, render_template, request, redirect, url_for, session
import pymysql
from datetime import date
#create an instance of FLask class
app = Flask(__name__)
app.static_folder = 'static'
app.secret_key = 'any random string'
@app.route("/home")
def home():
if 'username' in session:
return render_tem... | [
"noreply@github.com"
] | wtchung23.noreply@github.com |
852065b653ca396ea321c7ff5ad1faeaba1cebe6 | 88b4b883c1a262b5f9ca2c97bf1835d6d73d9f0b | /src/api/python/hce/ftests/ftest_exit_code_simple.py | b2c4a8d9a82b0002258fc983f2ffd5611aca4435 | [] | no_license | hce-project/hce-bundle | 2f93dc219d717b9983c4bb534884e4a4b95e9b7b | 856a6df2acccd67d7af640ed09f05b2c99895f2e | refs/heads/master | 2021-09-07T22:55:20.964266 | 2018-03-02T12:00:42 | 2018-03-02T12:00:42 | 104,993,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/python
"""
HCE project, Python bindings, Distributed Tasks Manager application.
RTCFinalizer Class content main functional for finalize realtime crawling.
@package: dc
@file rtc-finalizer.py
@author Oleksii <developers.hce@gmail.com>, bgv, Alexander Vybornyh <alexander.hce.cluster@gmail.com>
@link: http:/... | [
"bgv@bgv-d9"
] | bgv@bgv-d9 |
fa31ca5402666d8af0008504ae3fb93efc735023 | e9418f4574976f6b875e94705a180fa3e49a1d60 | /nemo/utils/exp_manager.py | f17491ed38e16a99ffd17ee897df873e0dda3e94 | [
"Apache-2.0"
] | permissive | rajatisdead/NeMo | 02053bc596807e614b5f2d5b481ff87a27996114 | 45f60f03e5d15a4b6e7db145b5d731d73f3a891d | refs/heads/main | 2023-02-16T05:40:08.470940 | 2021-01-15T01:08:06 | 2021-01-15T01:08:06 | 329,863,109 | 1 | 0 | Apache-2.0 | 2021-01-15T09:13:42 | 2021-01-15T09:13:41 | null | UTF-8 | Python | false | false | 27,812 | py | # Copyright (c) 2020, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | rajatisdead.noreply@github.com |
faabee197c6f74f38866e4b6c5c7cf9967640b63 | d9d592ab6352723a70bd38d130235822ce0cef7e | /testing/connections.py | fdc1c85b073ac141c5bcbf9f79355de4fc901a0a | [] | no_license | xvalier/basicLib | 790da231206f0478a4dc2e175b5ebca9c16aeea0 | 52ce19accd9787a6ec13faf205bc993e6a30ae49 | refs/heads/master | 2022-12-07T20:14:21.955249 | 2020-08-17T13:11:21 | 2020-08-17T13:11:21 | 149,390,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,763 | py | from configparser import ConfigParser
from backend.utilities import toolsCouch as couch
from backend.utilities import toolsElastic as elastic
from backend.utilities import toolsSQL as sql
#Connect to Couchbase and ElasticSearch for Search microservice
def connectSearch(connectionString):
user, pw = e... | [
"nikilsunilkumar@gmail.com"
] | nikilsunilkumar@gmail.com |
2a6b94ca3becd2641a328a2c9bdd5d938549625b | 82403156aa68783d9c123454dc8170182f1ca689 | /Scraper:Naieve Bayes Classifier/tripadvisor-scraper/tripadvisor-scraper/tripadvisorbot/pipelines.py | 1c2cfa66cc78bdbd7a56be1f4f8ef875dde8b152 | [] | no_license | smurthy1996/Projects_ | 892fc2ac32ad4b6b1d8b6ac9850f51f6ed5632a9 | 8ff7f53de829807375cbe3c3cc9ef4748d1cd358 | refs/heads/master | 2022-03-29T11:24:45.962404 | 2020-01-13T22:12:24 | 2020-01-13T22:12:24 | 111,475,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from scrapy.exceptions import DropItem
class FilterWordsPipeline(object):
"""A pipeline for filtering out items which contain certain words in their
description"""
def process_item(self, item, spider):
return item; | [
"noreply@github.com"
] | smurthy1996.noreply@github.com |
ab65d81d276a3c2645df6ac28e20acfc2e015c04 | f8d2f88c08bfa4bee5692032b9404e31e9df304d | /src/set_orientation.py | 9ad4c8455f3b2dc0dca7b9f12c5e5071f20d3f7e | [] | no_license | pmessan/dummy-gas-detector | d10df29467f2a355bd52a50c457ec4a4b6f89917 | eb0e6f11121954ca730a958cd2484cc09e748129 | refs/heads/master | 2023-05-28T17:38:47.227984 | 2021-06-18T18:28:15 | 2021-06-18T18:28:15 | 368,345,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | #!/usr/bin/env python3
import sys
import rospy
import time
import math
from turtlesim.msg import Pose
from geometry_msgs.msg import Twist
# Global variables
x = None
y = None
yaw = None
def poseCallback(pose_message):
global x, y, yaw
# update the pose for the other functions
x = pose_message.x
y = po... | [
"p.newman.messan@gmail.com"
] | p.newman.messan@gmail.com |
46ba76f341afc4728445b1052ae4b777957eab5c | 546d9e4777cf62840c002a0d1a32648a44c0a5aa | /raspberry_pi/ai/modules/module.py | 3c76bd8474edfb520aacb24500bd1dba47782583 | [] | no_license | Atmelfan/ash | d947c59cb05e513c348dcd4d0215caad5be29a6b | e8d5fb2baff9a6388ae4f46ddffd76cf4b359e00 | refs/heads/master | 2021-01-19T18:41:01.703877 | 2017-04-19T20:33:53 | 2017-04-19T20:33:53 | 68,116,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import os, time
import threading, Queue
import logging
from logging.handlers import RotatingFileHandler
class Event(object):
"""docstring for Event"""
def __init__(self, name):
super(Event, self).__init__()
self.name = name
# Returns true if this event is still valid (for example, face is still being tracked)
... | [
"gustavp@gpa-robotics.com"
] | gustavp@gpa-robotics.com |
65e1d34a1f7f96955c2ec68156d6da06d5ed4e7f | 9c38f3a354844f5080632005630d249d6487ebb3 | /haspy/test/simple/classdef_4.py | e8b6676653624320671c3245c2ff360d34222689 | [
"MIT"
] | permissive | keithroe/keithscode | ee7247ad6bdd844279f29a56718992cb886f9215 | 470c6b833b9b8bc2c78d1b43aac896b0ce9c9a7c | refs/heads/master | 2021-01-10T08:48:12.729594 | 2018-10-16T17:48:31 | 2018-10-16T17:48:31 | 51,531,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | @b(c)
@d
class a:
pass
| [
"keithroe@cba41313-dcc7-113d-0d3d-2a2d30939b49"
] | keithroe@cba41313-dcc7-113d-0d3d-2a2d30939b49 |
48d75f44368651e68119d4eaa78b6c2ad0811677 | 05d45d5bf64f95b1ecad1041096a1c78c4ce59da | /auctions/migrations/0016_auto_20200728_1433.py | 0e391ecccb48cc1585b1b3cf5fb34ebc5ebc0160 | [] | no_license | mustufajan/ecommerce-live | ed4bfddacd370a7750a02e7b4001774a9ccbcd76 | 02250725dbe94ffa99e623248b72990659d04fa4 | refs/heads/master | 2022-12-09T03:10:09.770734 | 2020-09-13T17:46:23 | 2020-09-13T17:46:23 | 294,824,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # Generated by Django 3.0.8 on 2020-07-28 18:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auctions', '0015_auto_20200728_1424'),
]
operations = [
migrations.AlterField(
model_name='listing',
name='category'... | [
"jan.mustufa92@gmail.com"
] | jan.mustufa92@gmail.com |
de6a127836cd2b1603b39276bc954cc6b6fdc3b6 | c9673b8aa003c2f62deed64511602be487b6de18 | /venv/Scripts/miniterm.py | 143faa31e1000cb198a27e8acb55f4d313706bb7 | [] | no_license | dvago88/ArduinoSerialGetterPython | 5f36e1088e4e912e147d31dd8c7b07fc63117278 | adc19feaca1b6a16cf1da2c6aaff2e9c8a918a5b | refs/heads/master | 2020-03-11T18:31:13.692159 | 2018-04-22T11:18:54 | 2018-04-22T11:18:54 | 130,179,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,158 | py | #!C:\Users\Daniel\PycharmProjects\ArduinoSerialGetter\venv\Scripts\python.exe
#
# Very simple serial terminal
#
# This file is part of pySerial. https://github.com/pyserial/pyserial
# (C)2002-2015 Chris Liechti <cliechti@gmx.net>
#
# SPDX-License-Identifier: BSD-3-Clause
import codecs
import os
import sys
import t... | [
"dvago1988@gmail.com"
] | dvago1988@gmail.com |
e35f4f1d78a895399109533769407b639962a97b | 605577022fc77422af1d21b439576df3fb687e86 | /src/demo/RaspberryPi/AlphaBot/python/SR04.py | 7bbeaeee8856a931a471b3ee8342c6b81c6db0de | [] | no_license | we4690/WinAlphaBot | be63b7b7aafd5186f711b48df0d35f7540d34c41 | d322a6377188d7e557c5f5436c14516b0b74721f | refs/heads/master | 2021-06-10T09:36:39.540819 | 2016-12-31T08:37:17 | 2016-12-31T08:37:17 | 75,812,980 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | import RPi.GPIO as GPIO
import time
TRIG = 17
ECHO = 5
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(TRIG,GPIO.OUT,initial=GPIO.LOW)
GPIO.setup(ECHO,GPIO.IN)
def dist():
GPIO.output(TRIG,GPIO.HIGH)
time.sleep(0.000015)
GPIO.output(TRIG,GPIO.LOW)
while not GPIO.input(ECHO):
pass
t1 = time.time()
w... | [
"ghjackie@qq.com"
] | ghjackie@qq.com |
98b29494a0d8d58aa22516fd5f7ffbbfe96b37c1 | c6cca19653c7113d9720371a5197ccadb3624e99 | /setup.py | da5a1ded931e21adce4c25ad99b7c007c5892897 | [] | no_license | DooMMasteR/nfc-laser-lock | 4c48538f6f98a9b3cbebe0b64b0104e3f357e889 | d68bf3752caba256fa4f7e58781d20de7d39b0db | refs/heads/master | 2021-02-25T00:38:05.189672 | 2020-09-14T05:37:26 | 2020-09-14T05:37:26 | 245,444,957 | 0 | 1 | null | 2020-09-14T05:37:27 | 2020-03-06T14:48:22 | Python | UTF-8 | Python | false | false | 387 | py | import setuptools
setuptools.setup(
name="nfclock",
version="0.1",
author="Steffen Arntz, Matthias Uschok",
author_email="dev@uschok.de",
description="Simple tool to identify and authenticate cheap nfc-tags against a DB of known authorized keys.",
url="https://github.com/hellfyre/nfclock",
... | [
"noreply@github.com"
] | DooMMasteR.noreply@github.com |
8025ba35b9d424317c8728eb00872d51f226b847 | 5fe083b1082dd960dda5789b1cac7287be1d882b | /bin/parse_oneway.py | ade40fc8bd3d76417799a19345007a36ee098b97 | [
"MIT"
] | permissive | single-cell-rna-sequencing/scanorama | d412a98386354483a7ae768cb314731084c36431 | 60d21e5f71722baedc1cc0c2f0bff0338116b16a | refs/heads/master | 2020-05-18T19:03:02.178470 | 2018-12-11T23:14:55 | 2018-12-11T23:14:55 | 184,600,314 | 0 | 1 | null | 2019-05-02T14:55:33 | 2019-05-02T14:55:33 | null | UTF-8 | Python | false | false | 1,088 | py | import numpy as np
from scanorama import plt
plt.rcParams.update({'font.size': 25})
import sys
scano, uncor = {}, {}
in_scano = True
for line in open(sys.argv[1]):
fields = line.rstrip().split()
if len(fields) > 3:
continue
try:
F = float(fields[1])
except ValueError:
continue
... | [
"brianhie@mit.edu"
] | brianhie@mit.edu |
21419208e4717153cda0a84e771de0808fb251a4 | 47db8d092bdb43bd7813b72e9e9612e2e2998a83 | /build/lib/Backlogged Code/eval_model.py | 8bc3694bf7627bef4229779c2dea5384ddc28fee | [
"MIT"
] | permissive | EricCacciavillani/eFlow | 3af621abb439beb7964d73c174e1a4a810119fd1 | 19a4f7c08037ae1925eb098c43f802df46d52b05 | refs/heads/master | 2022-12-09T21:49:30.412931 | 2020-12-13T22:29:50 | 2020-12-13T22:29:50 | 182,604,546 | 1 | 0 | MIT | 2022-12-08T03:28:25 | 2019-04-22T01:50:39 | Jupyter Notebook | UTF-8 | Python | false | false | 6,844 | py | def evaluate_model(self,
model_name,
model,
df,
df_features,
output_folder=None,
le_map=None,
show_extra=True,
find_nearest_on_cols=False,
zscore_low... | [
"EricCacciavillani@github.com"
] | EricCacciavillani@github.com |
90510f719a773aefb667ba3c6bca845013844106 | 7fd1295bed35f75bc42bebb4d31b8ec711fca5ba | /zakupne_rada/apps/gallery/urls.py | 7382e78062b62aae99c34214c0cb7513e3f283c6 | [] | no_license | maximlukasevich/zk_rada | 19ac0cd7c4e7339b98ebbb2977cb91ff75b76e95 | 542417ce2d6a0eb56833b0dddd57946434e5d0bc | refs/heads/main | 2023-03-07T15:05:30.092804 | 2021-02-23T10:26:31 | 2021-02-23T10:26:31 | 341,514,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.urls import path, include
from . import views
app_name = 'gallery'
urlpatterns = [
path('', views.index, name = 'index'),
] | [
"maxluks@MacBook-Pro-Maksim.local"
] | maxluks@MacBook-Pro-Maksim.local |
fdb60420ee1dc2a5af17f0de6520153d4d5e6f91 | 7fd96af77a2ae30b963df29236d7d386296dac50 | /rational_base.py | c255a399c19e2545ea8a918290c475cd79027cfb | [] | no_license | davidfoerster/codegolf | a37003462d11b92bb730a6f5a78723ea9d4077de | 85ed29d84ce1cfb3c73cf1e926fa0df2d7c273a9 | refs/heads/master | 2020-04-07T21:13:34.816000 | 2018-11-22T15:28:05 | 2018-11-22T15:28:05 | 158,718,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,091 | py | #!/usr/bin/python3 -O
"""
Represent numbers using rational bases
Source: https://codegolf.stackexchange.com/q/157224
"""
import string
from numbers import Rational
from collections.abc import Sequence, ByteString
class strtuple(tuple):
def __str__(self):
return ''.join(self)
digits = {
'alphanum-' + k: strtup... | [
"david.foerster@informatik.hu-berlin.de"
] | david.foerster@informatik.hu-berlin.de |
e3e11adc4b08ae52dd308e6dff8192c25b704387 | 87088ae6b84b419025ed0ed86127b184ba9af408 | /beholder/server_side/beholder_plugin.py | 7ab9936c84a1ea290d00a804540db08c1a500b43 | [] | no_license | tony32769/beholder | 1946332a9cceba40dbca5b56b4e1231fcee67233 | ceefdba88595e3f91756d1db76c9eed25e6ca577 | refs/heads/master | 2021-01-19T16:33:30.380469 | 2017-08-21T20:54:14 | 2017-08-21T20:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import io
import time
from google.protobuf import message
import numpy as np
from PIL import Image
import tensorflow as tf
from werkzeug import wrappers
from tensorboard.backend import http_util
from tensorbo... | [
"chris.anderson@byu.net"
] | chris.anderson@byu.net |
49962c1a43967920625f790089e2a1a1ad17b725 | 007a42268e501af19a5dfa974f223f00e3cf87ba | /WuEnDa/week4/week4.py | 1337999b36d50280fd3afdf006841fef4f3c20e9 | [] | no_license | YangYaoCD/MyPython | 7bbbaa0e7fe71659304c5a34ebbd9e3c30326ea9 | f5de1bccccd317054d46f397db5f9ba31bf94db5 | refs/heads/master | 2020-08-26T13:08:50.861099 | 2020-07-31T13:03:01 | 2020-07-31T13:03:01 | 217,020,349 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,382 | py | import numpy as np
import h5py
import matplotlib.pyplot as plt
from WuEnDa.week4.testCases_v2 import *
from WuEnDa.week4.dnn_utils_v2 import sigmoid, sigmoid_backward, relu, relu_backward
plt.rcParams['figure.figsize'] = (5.0, 4.0) # set default size of plots
plt.rcParams['image.interpolation'] = 'nearest'
plt.rcParam... | [
"1344262070@qq.com"
] | 1344262070@qq.com |
a450f9929c1b5e931a70d4b23b7cb47fcffc06b3 | d12ee64534b57b5debd16dac2cdcba15534fc7f2 | /oldBot/Wasatch_Conversions.py | 5a312313dd96d43e1305fc6779d6adef53e4f030 | [] | no_license | Eblanken/DeLaZerda_Wasatch | e83782ff51925a8e2470e86b3afa66e68e5693fc | 3c296a7fbc50db7c62eb78bd4ac8fce488f03f55 | refs/heads/master | 2020-03-15T18:35:17.469049 | 2018-07-10T21:26:36 | 2018-07-10T21:26:36 | 132,287,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,063 | py | # TODO: Conversions: Bleachpercentage overhaul, use default values for conversions
# COMBAK Conversions: Standardize documentation. Add more conversions.
#
# File: WasatchInterface_MicroscopeSettings
# ------------------------------
# Author: Erick Blankenberg, based off of work from Edwin
# Date: 5/12/2018
#
# Descrip... | [
"edy.yuan@gmail.com"
] | edy.yuan@gmail.com |
bdf73d0d32d84b83c6318d15fd177e70db625d5a | 79366da50fc4c6518485362ac839ef29e5d469e8 | /music.py | fc7fe4aaf42156617bc0db91072e66e2e25a4b6b | [] | no_license | SuperNate/RadioPi | a0baa1ddd77a1542cca43661135002f213f06def | 86a34fcf13cab4cc50a56af5985e3705c0e8f45a | refs/heads/master | 2020-12-25T21:34:51.382957 | 2013-07-21T19:49:55 | 2013-07-21T19:49:55 | 18,526,579 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,624 | py | #!/usr/bin/python3
import RPi.GPIO as io
import string, cgi, time, os
import mpd
import json
io.setmode(io.BCM)
io.setwarnings(False)
# Define GPIO to LCD mapping
LCD_RS = 7
LCD_E = 8
LCD_D4 = 25
LCD_D5 = 24
LCD_D6 = 23
LCD_D7 = 18
switch1 = 17
switch2 = 22
# ok, lets write the pid of this script
pidfile = open("/tm... | [
"neil@lathwood.co.uk"
] | neil@lathwood.co.uk |
48a5627ddd349fde1a4bd854221b3b7f9dc5a5a6 | cbe2033173534fb8759d3ebcd6ef2d6ec5d64a16 | /CurveTools/curve_tools_properties.py | 326404bfb34afcb104d995c882113ba84d38d27d | [] | no_license | Hichigo/NexusTools | 3008621badfedd77498dbecb6cbb5734d2079146 | 7573dd915299944137bc42c6d3e25599514f36e8 | refs/heads/master | 2020-06-13T03:18:07.508108 | 2019-07-01T18:40:00 | 2019-07-01T18:40:00 | 194,515,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | import bpy
from bpy.types import PropertyGroup
from bpy.props import BoolProperty, IntProperty, EnumProperty, PointerProperty
from .curve_tools_utils import filter_on_curve_type
class CurveTools_SCENE_Properties(PropertyGroup):
num_copy: IntProperty(
name="Copy number",
description="Number copy active object",
... | [
"hichigo91@gmail.com"
] | hichigo91@gmail.com |
dc024d3deede1a1a78d947c9912e6b8916ec0a92 | 1edaf48fb81223513b386e81927d51c70f09b8f9 | /problems_00s/problem_3.py | e58a788eb278e4bdefd4756567485d7c4211d5ae | [] | no_license | famalhaut/ProjectEuler | 4392cc50ac88a168e9a2d7889e4a8da201afaf72 | 9c6be56f0fed472472d08bd35f488d8b94f684ff | refs/heads/master | 2020-05-26T11:50:52.711715 | 2017-04-21T16:01:58 | 2017-04-21T16:01:58 | 84,996,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | """
Largest prime factor
Problem 3
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
"""
def check(x, list_primes):
for prime in list_primes:
if x % prime == 0:
return False
else:
if prime * prime > x:
... | [
"famalhaut.ru@gmail.com"
] | famalhaut.ru@gmail.com |
32f4c462ec8097a34c1519e066a80a65f1a14c8f | 4f3a4c194451eae32f1ff7cf3b0db947e3892365 | /contest24/matrix.py | 6a654f89bbe393517b379bdacf7311c9a7f2387e | [] | no_license | szhongren/leetcode | 84dd848edbfd728b344927f4f3c376b89b6a81f4 | 8cda0518440488992d7e2c70cb8555ec7b34083f | refs/heads/master | 2021-12-01T01:34:54.639508 | 2021-11-30T05:54:45 | 2021-11-30T05:54:45 | 83,624,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | """
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.
The distance between two adjacent cells is 1.
Example 1:
Input:
0 0 0
0 1 0
0 0 0
Output:
0 0 0
0 1 0
0 0 0
Example 2:
Input:
0 0 0
0 1 0
1 1 1
Output:
0 0 0
0 1 0
1 2 1
Note:
The numb... | [
"shao.zhongren@gmail.com"
] | shao.zhongren@gmail.com |
682c034c5183adb2c1cb84911ac68fc063307eb6 | ffbee50402fce2c88740413e8d5633e7104107d3 | /timertest.py | 1ac5e1f3cbce2c239c64f576da25da63a8002d30 | [] | no_license | balassaloci/Robotics-lab | 22773182791a2d48d51f1496422138c3d13776cd | d281970799f70b0b3a20c7c8deafda7b8a472c91 | refs/heads/master | 2021-03-16T10:50:28.638233 | 2017-02-15T11:24:53 | 2017-02-15T11:24:53 | 70,690,423 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import time
def timer():
now = time.localtime(time.time())
return now[5]
run = raw_input("Start? > ")
while run == "start":
| [
"bc1714@point05.doc.ic.ac.uk"
] | bc1714@point05.doc.ic.ac.uk |
86c74660e97fcfad69873b6025a9430d87b3496f | 492d3e666b87eff971628a74fe13facde01e2949 | /htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_django_db_migrations_graph_py.html.py | 05c7ac90efdcb13c551ee039f2457e7c75ee6996 | [] | no_license | OmarFateh/Student-Portal | 42050da15327aa01944dc79b5e00ca34deb51531 | 167ffd3a4183529c0cbc5db4ab232026711ea915 | refs/heads/master | 2023-06-13T01:03:16.475588 | 2021-07-08T11:09:09 | 2021-07-08T11:09:09 | 382,895,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,031 | py | XXXXXXXXX XXXXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXX XXXXXXX... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
dbee469da3d768ac8bd9b40a106f32df70d98ae3 | 069dafce9f495f09bf8c2f76dbf5c045b7551721 | /run_size_V1_inhibition_overlapping.py | 2445079f234bb3bce526b0f73ebe9143a77a5600 | [] | no_license | dguarino/T2 | 26b1bc640812aa5438b09f9fab2bc73096cd7eef | 66b786928508089492f5f696c7c1576e098c6615 | refs/heads/master | 2020-04-03T22:39:06.059845 | 2020-03-13T15:43:02 | 2020-03-13T15:43:02 | 41,812,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | # -*- coding: utf-8 -*-
"""
This is
"""
from pyNN import nest
import sys
import mozaik
import mozaik.controller
from mozaik.controller import run_workflow, setup_logging
from mozaik.storage.datastore import Hdf5DataStore, PickledDataStore
from parameters import ParameterSet
from model_V1_full import ThalamoCorticalMo... | [
"domenico.guarino@gmail.com"
] | domenico.guarino@gmail.com |
72624296abb72df145e8940e711e87d4f531eab1 | 09ae3f372d1000f118ad80874870ae420a4be66f | /scikit-learn-master/sklearn/datasets/tests/test_base.py | 08a6ba29413cf8bbe4e7c2cdcbf499993f650548 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | lqkweb/learnMLflow | 998f80c3828879b8d542125bc95c6345b8e9b29a | 13c5decaebba95b1b90f92021be35e343b4764af | refs/heads/master | 2022-10-18T06:17:23.584172 | 2019-01-18T09:51:38 | 2019-01-18T09:51:38 | 166,145,472 | 2 | 0 | Apache-2.0 | 2022-09-30T18:26:17 | 2019-01-17T02:22:29 | Python | UTF-8 | Python | false | false | 8,270 | py | import os
import shutil
import tempfile
import warnings
import numpy
from pickle import loads
from pickle import dumps
from functools import partial
import pytest
from sklearn.datasets import get_data_home
from sklearn.datasets import clear_data_home
from sklearn.datasets import load_files
from sklearn.datasets impor... | [
"leiqk@dxy.cn"
] | leiqk@dxy.cn |
6c9d699dfc2b5e2f9f0092c6aa6c4bc913bcc40f | 806e3fc4fe0ccb668ed27f952157e863261cf64a | /data_analysis/school_analysis.py | 5e7b4ac2ad2c1a16c99dff4992dd0c5baf29fbf8 | [] | no_license | projectRepository-zhangzheng/deep_learning | d39b0ecb4effdb8557cfcabc9092e9d63cd83c59 | 44216e76395481c4a6ecaa5b4690a29676fc7df8 | refs/heads/master | 2022-09-20T06:47:24.833403 | 2020-06-06T03:13:51 | 2020-06-06T03:13:51 | 268,528,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import pandas as pd
io = './data.xls'
data = pd.read_excel(io) | [
"zhangzhengemail@sina.cn"
] | zhangzhengemail@sina.cn |
6811c8420bc66be2064304f956fff2ae1aa9dbe5 | 296cd2b0c81d8e8057615695d3479b9002260aa4 | /rl/hw3/seminar_alternative/qlearning.py | b01c6e4410dc6fa7e1ab45b1ef6a3e80eb0aa435 | [] | no_license | Ayagoz/dl-rl | 8e92cf9f21b939fcf04ef580288ab5b78ef38fef | 1c4bf214566e856ed1ab51820624702332df7f4c | refs/heads/master | 2021-09-03T10:07:28.439172 | 2018-01-08T08:41:57 | 2018-01-08T08:41:57 | 110,861,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,787 | py | # qlearningAgents.py
# ------------------
## based on http://inst.eecs.berkeley.edu/~cs188/sp09/pacman.html
import random,math
import numpy as np
from collections import defaultdict
class QLearningAgent():
"""
Q-Learning Agent
Instance variables you have access to
- self.epsilon (exploration prob)
... | [
"ayagoz.musabaeva@mail.ru"
] | ayagoz.musabaeva@mail.ru |
77974af81d3fd6e9036c3296442203bd58796d64 | 12774294b256c3be879a630a0eec6656abef8f6e | /fluent_pages/pagetypes/textfile/migrations/0001_initial.py | d4ca4d400fd02a51c21d9d65c75bb839beedce48 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | websiteburo/django-fluent-pages | 515739bf21dcfe19c265a70ac167d0339730d243 | c2db8ee28a6fd129906b4bea0df167f43c9b1bc4 | refs/heads/master | 2020-12-25T16:35:47.757240 | 2015-02-23T11:32:08 | 2015-02-23T11:32:08 | 31,910,008 | 0 | 0 | null | 2015-03-09T16:35:40 | 2015-03-09T16:35:40 | null | UTF-8 | Python | false | false | 975 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('fluent_pages', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TextFile',
fields=[
... | [
"cdshryock@gannett.com"
] | cdshryock@gannett.com |
e077eac3f69602fea3cb6ae34ae33516556fbf7a | 9a53f836628b2c9e37e3c4011206698a3e0a06be | /node_modules/lwip/build/config.gypi | 23bb42b2c223df1969c6f6ae9f71fc23b86fe396 | [
"MIT"
] | permissive | supermars01/webpack-demo | 5013af343cc74c1cd76f2075e01e6ca29e62dcef | d92e02d5634d6e7d861fc37dca35514814c3e039 | refs/heads/master | 2021-01-11T03:06:01.165960 | 2016-10-20T06:21:46 | 2016-10-20T06:21:46 | 71,118,059 | 0 | 1 | null | 2016-10-20T06:21:47 | 2016-10-17T08:48:20 | JavaScript | UTF-8 | Python | false | false | 4,248 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"debug_devtools": "node",
"force_dynamic_crt": 0,
"host_arch... | [
"kings_821113@163.com"
] | kings_821113@163.com |
57650a22e4642009fb45c0984f172ae7d9317ccc | e6d0ef2d814477d8070ce1068c62e5d113a862d3 | /proto/cheby/wbgen/expand_reg.py | 6bedddb1e558fddea5dbf9cf55517d5e63b75640 | [] | no_license | u230925/cheby | f4df33831130c2f8d82c13cbb632f45547b36f88 | 330cc70bd1cfcad143e72a92148c9fd2cbcbea9f | refs/heads/master | 2021-05-22T23:50:44.676687 | 2018-08-24T19:06:18 | 2018-08-24T19:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,114 | py | """Expand registers: create registers for FIFOs"""
import cheby.wbgen.tree as tree
import cheby.wbgen.layout as layout
irq_regs = [
('disable', 'idr', 'WO_RO', 'WRITE_ONLY',
'Writing 1 disables handling of the interrupt associated with'
' corresponding bit. Writin 0 has no effect.',
"write 1: disab... | [
"tristan.gingold@cern.ch"
] | tristan.gingold@cern.ch |
13c0dd9d8152a62bf12e5f33056c9bf75a1fefb4 | 5b27b30c831a1d1bb6362b257e465b25aa428998 | /labs/02_basic_datatypes/02_05_convert.py | 33b1422f37b6167492cbbb90c579279015537f8a | [] | no_license | daniel10012/python-fundamentals | 80c6eb0390897860e9d9db41f10a636246b33f18 | 01846b517d9deaa905b4aef69ee93f54732eaa76 | refs/heads/master | 2020-04-23T05:38:35.461010 | 2019-02-27T15:11:40 | 2019-02-27T15:11:40 | 170,946,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py |
1) float(x)
2) int(x)
3) x = 8.848
y = 2
z = int(x//y)
print(z)
4) x = float(input("imput x"))
y = float(input("imput y"))
z = x*y
print(z)
'''
Demonstrate how to:
1) Convert an int to a float
2) Convert a float to an int
3) Perform floor division using a float and an int.
4) Use two user inpu... | [
"danielwegmann@Daniels-MacBook-Pro.local"
] | danielwegmann@Daniels-MacBook-Pro.local |
c63b480efc8952dea8a35e4a7804a0640f25e548 | 85561ce5072c6a97a997eeeb4ed2eb833ce92556 | /Trainer/VisionForPriorBox.py | 83f8d3018141814080b6e6dd4da7ac54b10dbad1 | [] | no_license | monchhichizzq/Mobilenet-SSD-Kitti-Object-Detection | a52e776a6646051e0ad1572994ccc7209dca264d | fe48c959961f8f91d06edc2cee85266cfe936bf1 | refs/heads/master | 2023-05-31T13:04:03.748605 | 2020-10-11T20:32:22 | 2020-10-11T20:32:22 | 298,193,840 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,805 | py | import numpy as np
import pickle
import matplotlib.pyplot as plt
# from SSD_body.anchors import PriorBox, get_mobilenet_anchors, get_vgg16_anchors
def decode_boxes(input_shape, mbox_loc, mbox_priorbox, variances):
# modification
# mbox_priorbox = mbox_priorbox / 300
#
# 获得先验框的宽与高
# left, top, rigth... | [
"zhaoqifeng13816221366@gmail.com"
] | zhaoqifeng13816221366@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.