hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
854c44ca4ed3e6cbb53690f31ac48a7258c545d7
283
py
Python
Lista PythonBrasil/exer16.py
GlauberGoncalves/Python
cdea025a3b8a0304455e1f8561c1d13e00040d8e
[ "MIT" ]
3
2017-01-29T00:39:31.000Z
2017-06-16T18:53:36.000Z
Lista PythonBrasil/exer16.py
GlauberGoncalves/Python
cdea025a3b8a0304455e1f8561c1d13e00040d8e
[ "MIT" ]
null
null
null
Lista PythonBrasil/exer16.py
GlauberGoncalves/Python
cdea025a3b8a0304455e1f8561c1d13e00040d8e
[ "MIT" ]
null
null
null
t = float(input('informe o tamanho em m² ')) l = float(t / 3) if l % 18 == 0: print('voce precisara de %f latas ' %(l/18)) print('Preço: R$ %0.2f' %((l/18)*80)) else: print('voce precisara de %f latas ' %((l//18+1))) print('Preço: R$ %0.2f' %((l//18 + 1) * 80))
28.3
53
0.515901
0
0
0
0
0
0
0
0
121
0.423077
854cf8601e7b178c75e75d9ca11f1ae6300bc673
1,254
py
Python
setup.py
wildthingz/pyAMD
13f5691de9a7fc488859113bc934090857ac0f06
[ "MIT" ]
null
null
null
setup.py
wildthingz/pyAMD
13f5691de9a7fc488859113bc934090857ac0f06
[ "MIT" ]
null
null
null
setup.py
wildthingz/pyAMD
13f5691de9a7fc488859113bc934090857ac0f06
[ "MIT" ]
null
null
null
from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md')) as f: long_description = f.read() setup(name = 'pyAMD', version = '0.1.0', description = 'A tool to find the optimal mesh density for visualising macrosegregation -- ...
35.828571
121
0.674641
0
0
0
0
0
0
0
0
792
0.631579
854d5eaf6ade4462203d501132678e102772680e
2,407
py
Python
nablapps/blog/models.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/blog/models.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/blog/models.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
""" Models for blog app """ from datetime import date from django.db import models from django.urls import reverse from django.utils.text import slugify from nablapps.core.models import TimeStamped class Blog(models.Model): """ Represents a blog which can have multiple blog entries/posts. """ name = ...
23.598039
87
0.605318
2,202
0.914832
0
0
0
0
0
0
539
0.22393
854e2f2fb882ebf0df9421c2942719fbe330679b
1,654
py
Python
Bhaskara.py
RafaelaBF/Bhaskara
027b5b91cbc632fd82a0c6f7904d3cef026bdc85
[ "MIT" ]
null
null
null
Bhaskara.py
RafaelaBF/Bhaskara
027b5b91cbc632fd82a0c6f7904d3cef026bdc85
[ "MIT" ]
null
null
null
Bhaskara.py
RafaelaBF/Bhaskara
027b5b91cbc632fd82a0c6f7904d3cef026bdc85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Rafaela BF Faça um programa que resolva Bhaskara por meio de uma equação completa do segundo grau. """ eq = input("Entre com a equação: ") aux =[""]*3 i = eq.find("²", 0) aux[0] = eq[0:(i+1)] j = eq.find("x", i) aux[1] = eq[(i+1):(j+1)] aux[2] = eq[(j+1):len(eq)] i = 0 j = 0 #...
17.784946
87
0.479444
0
0
0
0
0
0
0
0
651
0.388889
854e8ce73be0938ffa4976e6cdc514a985349435
2,107
py
Python
01_demo/weight_decay_test.py
wwww666/Tensorflow2.0
4df3a3784482bb8db7943ffb402b5822d5111ab9
[ "Apache-2.0" ]
2
2020-04-24T10:20:18.000Z
2021-02-25T03:53:07.000Z
01_demo/weight_decay_test.py
wwww666/Tensorflow2.0
4df3a3784482bb8db7943ffb402b5822d5111ab9
[ "Apache-2.0" ]
null
null
null
01_demo/weight_decay_test.py
wwww666/Tensorflow2.0
4df3a3784482bb8db7943ffb402b5822d5111ab9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/4/20 11:46 # @Author : wwwzk # @FileName: weight_decay_test.py ''' L2范数正则化权重衰减 ''' import tensorflow as tf from tensorflow.keras import layers,optimizers,models,initializers import numpy as np import matplotlib.pyplot as plt import tensorflow.keras as ks from liner...
32.921875
117
0.656858
0
0
0
0
0
0
0
0
338
0.152734
85501fa8ae7e1ca392e64944e94898fb3cd864f2
548
py
Python
python_teste/python_aulas/aula_86.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
1
2020-07-27T14:18:08.000Z
2020-07-27T14:18:08.000Z
python_teste/python_aulas/aula_86.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
python_teste/python_aulas/aula_86.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
lista = [[], [], []] for c1 in range(0, 3): num = int(input(f'Digite um valor para [0, {c1}]: ')) lista[0].append(num) for c2 in range(0, 3): num = int(input(f'Digite um valor para [1, {c2}]: ')) lista[1].append(num) for c3 in range(0, 3): num = int(input(f'Digite um valor para [2, {c3}]: ')) li...
39.142857
64
0.520073
0
0
0
0
0
0
0
0
280
0.510949
8550e0f799111032598a25724ac9a6b93b3a7b17
16,987
py
Python
pysnmp/S5-ETH-MULTISEG-TOPOLOGY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/S5-ETH-MULTISEG-TOPOLOGY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/S5-ETH-MULTISEG-TOPOLOGY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module S5-ETH-MULTISEG-TOPOLOGY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/S5-ETH-MULTISEG-TOPOLOGY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:51:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
131.682171
2,404
0.761288
0
0
0
0
0
0
0
0
3,058
0.18002
8550fe05eaac9342db606a4bddf7afe6170d5e33
3,835
py
Python
bittensor/dataloaders/dataloader.py
parall4x/bittensor
abacb0b0f1b078d3103f516aff1328f049f9dc34
[ "MIT" ]
null
null
null
bittensor/dataloaders/dataloader.py
parall4x/bittensor
abacb0b0f1b078d3103f516aff1328f049f9dc34
[ "MIT" ]
null
null
null
bittensor/dataloaders/dataloader.py
parall4x/bittensor
abacb0b0f1b078d3103f516aff1328f049f9dc34
[ "MIT" ]
null
null
null
import argparse import bittensor import requests import random from munch import Munch from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry class BittensorDataLoader(): def __init__(self): # IPFS hash of the genesis dataset # TODO (shibshib): Find a pr...
35.183486
144
0.629726
3,647
0.950978
0
0
2,059
0.536897
0
0
1,722
0.449022
855325438c3097f24f5a6080d6bf038cfb57e3d6
619
py
Python
application/api/api.py
raphaelbh/timezone-api
bd273614685065a74df0c577673b43b42bae813c
[ "MIT" ]
2
2022-02-14T19:52:34.000Z
2022-02-14T19:52:39.000Z
application/api/api.py
raphaelbh/timezone-api
bd273614685065a74df0c577673b43b42bae813c
[ "MIT" ]
null
null
null
application/api/api.py
raphaelbh/timezone-api
bd273614685065a74df0c577673b43b42bae813c
[ "MIT" ]
null
null
null
from flask import Blueprint from flask import request from datetime import datetime from commons import api_utils from services import timezone_service blueprint = Blueprint("api", __name__) @blueprint.route('/timezones') def timezones(): return api_utils.response(200, timezone_service.timezones()) @blueprint....
28.136364
67
0.733441
0
0
0
0
422
0.681745
0
0
60
0.096931
855349721cbc4fbd167679c0aa6f6003d9b7e55a
290
py
Python
dmriprep/workflows/dwi/conversions/nii_to_mif/configurations.py
GalBenZvi/dmriprep
7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b
[ "Apache-2.0" ]
null
null
null
dmriprep/workflows/dwi/conversions/nii_to_mif/configurations.py
GalBenZvi/dmriprep
7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b
[ "Apache-2.0" ]
1
2022-03-22T13:22:18.000Z
2022-03-22T13:22:18.000Z
dmriprep/workflows/dwi/conversions/nii_to_mif/configurations.py
GalBenZvi/dmriprep
7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b
[ "Apache-2.0" ]
null
null
null
""" Configuration file for nii_to_mif.py """ #: i/o INPUT_NODE_FIELDS = ["dwi_file", "fmap_file"] OUTPUT_NODE_FIELDS = ["dwi_file", "fmap_file"] #: Keyword arguments LOCATE_ASSOCIATED_KWARGS = dict( input_names=["in_file"], output_names=["json_file", "bvec_file", "bval_file"], )
20.714286
57
0.703448
0
0
0
0
0
0
0
0
154
0.531034
85535f7564894f7aff285a016fb2d947fb9c1a70
3,300
py
Python
pyinspect/__init__.py
dhruvmanila/pyinspect
ce90df243e5e5ee100f13de4329c111454b8c891
[ "MIT" ]
87
2020-09-30T10:18:26.000Z
2022-03-10T08:56:04.000Z
pyinspect/__init__.py
dhruvmanila/pyinspect
ce90df243e5e5ee100f13de4329c111454b8c891
[ "MIT" ]
16
2020-09-30T10:57:17.000Z
2022-01-16T02:10:45.000Z
pyinspect/__init__.py
dhruvmanila/pyinspect
ce90df243e5e5ee100f13de4329c111454b8c891
[ "MIT" ]
5
2020-11-20T07:39:26.000Z
2022-01-13T04:54:51.000Z
# nopycln: file from pyinspect.exceptions import install_traceback from pyinspect.show import showme, what from pyinspect.find import search from pyinspect.answers import get_answers, ask from pyinspect.panels import ok, warn, error, message, Report, NestedPanel from pyinspect._rich import console from pyinspect.classe...
28.695652
177
0.655758
0
0
0
0
0
0
0
0
1,544
0.467879
8554e93428cf180870f92bec8ca8595e5c36545c
965
py
Python
servertools/variables/logos.py
sWallyx/server-tools
880f28bb1502cc51064e8e0f3f9c85ea2f1fe2af
[ "MIT" ]
null
null
null
servertools/variables/logos.py
sWallyx/server-tools
880f28bb1502cc51064e8e0f3f9c85ea2f1fe2af
[ "MIT" ]
7
2020-03-25T17:15:54.000Z
2021-06-25T15:37:43.000Z
servertools/variables/logos.py
sWallyx/server-tools
880f28bb1502cc51064e8e0f3f9c85ea2f1fe2af
[ "MIT" ]
1
2020-02-02T13:45:54.000Z
2020-02-02T13:45:54.000Z
""" Variables that contain the logo ASCII text """ SERVER_TOOLS_LOGO = r""" ____ _____ _ / ___| ___ _ ____ _____ _ __ |_ _|__ ___ | |___ \___ \ / _ \ '__\ \ / / _ \ '__| | |/ _ \ / _ \| / __| ___) | __/ | \ V / __/ | | | (_) | (_) | \__ \ |____/ \___|_| \_/...
28.382353
56
0.359585
0
0
0
0
0
0
0
0
889
0.921244
8555997972d2b27f982f14b4c869a0e8df897de6
2,714
py
Python
mycnn/data/voc_segment.py
jacky10001/tf2-mycnn
6a631ee71b2a91fc4e6e7a43f8f9179260a1d7fa
[ "MIT" ]
null
null
null
mycnn/data/voc_segment.py
jacky10001/tf2-mycnn
6a631ee71b2a91fc4e6e7a43f8f9179260a1d7fa
[ "MIT" ]
20
2022-01-24T15:28:48.000Z
2022-02-13T14:56:25.000Z
mycnn/data/voc_segment.py
jacky10001/tf2-mycnn
6a631ee71b2a91fc4e6e7a43f8f9179260a1d7fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import numpy as np from skimage import io import matplotlib.pyplot as plt from PIL import Image def make_voc_segment_dataset(voc_directory: str, save_directory: str): flag = False ## Set some directory JPEGImages_dir = os.path.join(voc_directory, "JPEGImages") Segmen...
39.333333
109
0.657701
0
0
0
0
0
0
0
0
421
0.155122
8555a2d39b9c39ad7b5a966dfacc717dfd150cdc
1,551
py
Python
PythonSim/sim.py
iandouglas96/swarm-thesis
dbafa2343a75c4de26b0ae19d08a033b34570287
[ "MIT" ]
null
null
null
PythonSim/sim.py
iandouglas96/swarm-thesis
dbafa2343a75c4de26b0ae19d08a033b34570287
[ "MIT" ]
null
null
null
PythonSim/sim.py
iandouglas96/swarm-thesis
dbafa2343a75c4de26b0ae19d08a033b34570287
[ "MIT" ]
null
null
null
import pygame, sys from pygame.locals import * from robot import Robot from wall import Wall from leader import Leader import random def main(num_robots, width, height): print "Initializing..." #Create graphics window pygame.init() screen = pygame.display.set_mode((width, height),0,32) pygame.displ...
23.861538
92
0.59381
0
0
0
0
0
0
0
0
417
0.268859
8555cf1601ce1b5f617910a811d3f01d2076709f
1,246
py
Python
src/RailReservation/urls.py
KeshavSeth/RailwayReservationSystem
bc8bfb8b95cb43f8811212f0ebcc013ab395c2a8
[ "MIT" ]
null
null
null
src/RailReservation/urls.py
KeshavSeth/RailwayReservationSystem
bc8bfb8b95cb43f8811212f0ebcc013ab395c2a8
[ "MIT" ]
null
null
null
src/RailReservation/urls.py
KeshavSeth/RailwayReservationSystem
bc8bfb8b95cb43f8811212f0ebcc013ab395c2a8
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static import profiles.urls import accounts.urls import trains.urls import ticket.urls from route.views import * from station.views import * from trains.views import ...
35.6
76
0.680578
0
0
0
0
0
0
0
0
288
0.23114
8557adf6167f5ff10820921a3f828f15927174c0
1,798
py
Python
games/gridworld/gridworld_examples.py
johink/willsmith
a6bdfff2e3b12770100811002867bf3ed64ad6d3
[ "MIT" ]
null
null
null
games/gridworld/gridworld_examples.py
johink/willsmith
a6bdfff2e3b12770100811002867bf3ed64ad6d3
[ "MIT" ]
null
null
null
games/gridworld/gridworld_examples.py
johink/willsmith
a6bdfff2e3b12770100811002867bf3ed64ad6d3
[ "MIT" ]
null
null
null
from games.gridworld.grid import Grid from games.gridworld.gridworld import Gridworld from games.gridworld.gridworld_direction import GridworldDirection ##################################### # Example transition functions ##################################### def deterministic_transition(action): return [actio...
32.107143
78
0.640156
0
0
0
0
0
0
0
0
202
0.112347
855a494222a6d4c9bcc189b1e321bf2fc70b2a71
4,369
py
Python
mqtt/Seeed3thPartMqttServer.py
lanselambor/scripts
deb7aa4c7c7341581364f23251f085c1a4fec86f
[ "Apache-2.0" ]
null
null
null
mqtt/Seeed3thPartMqttServer.py
lanselambor/scripts
deb7aa4c7c7341581364f23251f085c1a4fec86f
[ "Apache-2.0" ]
null
null
null
mqtt/Seeed3thPartMqttServer.py
lanselambor/scripts
deb7aa4c7c7341581364f23251f085c1a4fec86f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import MQTTV3112 as MQTTV3 import traceback, datetime, os, sys, select, binascii import time, traceback import math import socketserver import json import logging from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler # create logger with 'spam_application' logger = logging.get...
38.663717
118
0.592584
2,813
0.643854
0
0
0
0
0
0
1,167
0.267109
855b4e01e5b934e421e4c9ebea7a438fae9617b9
1,187
py
Python
python/eks-simple-fargate/eks_simple_fargate/eks_simple_fargate_stack.py
kloia/aws-cdk-samples
69cb2bb45aab23e08d19d5ace24915893fe92360
[ "MIT" ]
null
null
null
python/eks-simple-fargate/eks_simple_fargate/eks_simple_fargate_stack.py
kloia/aws-cdk-samples
69cb2bb45aab23e08d19d5ace24915893fe92360
[ "MIT" ]
null
null
null
python/eks-simple-fargate/eks_simple_fargate/eks_simple_fargate_stack.py
kloia/aws-cdk-samples
69cb2bb45aab23e08d19d5ace24915893fe92360
[ "MIT" ]
null
null
null
from aws_cdk import core, aws_eks from .eks_base import EKSBase from .alb_ingress import ALBIngressController class EksSimpleFargateStack(core.Stack): def __init__(self, scope: core.Construct, construct_id: str, eks_version=aws_eks.KubernetesVersion.V1_19, cluster_name=None, capacity_details='small', ...
39.566667
94
0.705139
1,074
0.904802
0
0
0
0
0
0
149
0.125527
855ca1ff8948c123a855f128a9073dceff93dd69
8,196
py
Python
g2client/g2disp.py
naojsoft/g2client
e49d0f3cacccdb569897f17d37c8c2e8f01c66cb
[ "BSD-3-Clause" ]
null
null
null
g2client/g2disp.py
naojsoft/g2client
e49d0f3cacccdb569897f17d37c8c2e8f01c66cb
[ "BSD-3-Clause" ]
null
null
null
g2client/g2disp.py
naojsoft/g2client
e49d0f3cacccdb569897f17d37c8c2e8f01c66cb
[ "BSD-3-Clause" ]
null
null
null
# # Gen2 observation workstation client -- command line version # """ Gen2 observation workstation client -- command line version """ import sys, time, os import threading import binascii from g2base import ssdlog, myproc from g2base.remoteObjects import remoteObjects as ro from g2base.remoteObjects import Monitor fr...
34.15
86
0.556857
5,667
0.691435
0
0
0
0
0
0
1,892
0.230844
855d1e26962f49014c24b4afe8ac214bdf01d675
3,251
py
Python
tests/test_technique.py
jansel/opentuner
070c5cef6d933eb760a2f9cd5cd08c95f27aee75
[ "MIT" ]
278
2015-01-11T16:07:19.000Z
2022-03-29T13:08:41.000Z
tests/test_technique.py
jansel/opentuner
070c5cef6d933eb760a2f9cd5cd08c95f27aee75
[ "MIT" ]
101
2015-01-07T20:47:02.000Z
2022-02-15T05:28:04.000Z
tests/test_technique.py
jansel/opentuner
070c5cef6d933eb760a2f9cd5cd08c95f27aee75
[ "MIT" ]
82
2015-02-18T01:14:48.000Z
2022-01-17T18:19:25.000Z
import unittest from builtins import next from unittest import mock from opentuner.search import manipulator from opentuner.search.composableevolutionarytechniques import ComposableEvolutionaryTechnique def faked_random(nums): f = fake_random(nums) def inner(*args, **kwargs): return next(f) ret...
38.702381
114
0.621347
2,754
0.847124
102
0.031375
377
0.115964
0
0
493
0.151646
855e126f49dc147682a8ddcf7d8b3444b2c3acd5
8,575
py
Python
src/pyte_prism/__init__.py
fkshom/pyte-prism
00e464b5f23f205d2913bc776f97cc248006c559
[ "MIT" ]
null
null
null
src/pyte_prism/__init__.py
fkshom/pyte-prism
00e464b5f23f205d2913bc776f97cc248006c559
[ "MIT" ]
1
2020-12-07T16:18:16.000Z
2020-12-07T16:18:16.000Z
src/pyte_prism/__init__.py
fkshom/pyte-prism
00e464b5f23f205d2913bc776f97cc248006c559
[ "MIT" ]
1
2021-06-21T05:00:15.000Z
2021-06-21T05:00:15.000Z
import time import re from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException, NoSuchElementException from uritemplate impor...
32.116105
107
0.694927
7,984
0.916542
0
0
1,710
0.196304
0
0
1,058
0.121456
855ea6f04c921ad42df72e3376925fdd9e5314d7
2,432
py
Python
scripts/update_camera_info.py
mikelgarciafonseca/lidar_camera_calibration
529dc69abd0faed293b9ca2238b7c6b25c66cb9e
[ "BSD-3-Clause" ]
291
2019-04-08T15:02:09.000Z
2022-03-29T07:43:53.000Z
scripts/update_camera_info.py
CXT-666/lidar_camera_calibration
688397c500967a42b2aca82d6c11393dd73aaa9c
[ "BSD-3-Clause" ]
45
2019-08-22T10:15:10.000Z
2022-03-23T05:11:36.000Z
scripts/update_camera_info.py
CXT-666/lidar_camera_calibration
688397c500967a42b2aca82d6c11393dd73aaa9c
[ "BSD-3-Clause" ]
77
2019-04-17T05:25:11.000Z
2022-03-20T04:39:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Author : Heethesh Vhavle Email : heethesh@cmu.edu Version : 1.0.1 Date : Jan 18, 2019 Description: Script to update the camera calibration data into the ROSBAG file Ensure that this file has executable permissions Example Usage: $ rosrun lidar_camera_calibratio...
26.725275
83
0.675576
0
0
0
0
0
0
0
0
993
0.408306
855efe602850a47790a27ec939c0a1e729cd7710
733
py
Python
lim/random/glmm.py
glimix/glimix
22c9b94732918bce31f64cb33ce368ea85ead478
[ "MIT" ]
2
2016-12-16T14:14:59.000Z
2017-01-31T16:50:08.000Z
lim/random/glmm.py
glimix/glimix
22c9b94732918bce31f64cb33ce368ea85ead478
[ "MIT" ]
null
null
null
lim/random/glmm.py
glimix/glimix
22c9b94732918bce31f64cb33ce368ea85ead478
[ "MIT" ]
2
2017-02-13T14:34:37.000Z
2017-02-15T14:27:32.000Z
from __future__ import division from numpy.random import RandomState from numpy_sugar.linalg import sum2diag from numpy_sugar import epsilon from numpy_sugar.random import multivariate_normal class GLMMSampler(object): def __init__(self, lik, mean, cov): self._lik = lik self._mean = mean ...
27.148148
51
0.667121
537
0.732606
0
0
0
0
0
0
16
0.021828
855fc87a5ce5bd24bab6ab108fbb29dc4e299ceb
607
py
Python
dags/simple_dag_backfill.py
rodrigoarenas456/airflow-course
8ffda59b8ac4cfa18b4cd614bc0f75ee18324b28
[ "MIT" ]
null
null
null
dags/simple_dag_backfill.py
rodrigoarenas456/airflow-course
8ffda59b8ac4cfa18b4cd614bc0f75ee18324b28
[ "MIT" ]
8
2021-09-08T21:24:25.000Z
2022-03-29T22:28:47.000Z
dags/simple_dag_backfill.py
rodrigoarenas456/airflow-course
8ffda59b8ac4cfa18b4cd614bc0f75ee18324b28
[ "MIT" ]
1
2021-09-06T12:18:39.000Z
2021-09-06T12:18:39.000Z
import datetime as dt from airflow import DAG from airflow.operators.bash_operator import BashOperator """ if catchup=False, then it will not run for past dates that didn't got executed """ default_args = { 'owner': 'airflow', 'start_date': dt.datetime(2020, 7, 1), 'concurrency': 1, 'retries': 0 } w...
26.391304
78
0.691928
0
0
0
0
0
0
0
0
205
0.337727
856089efc2c334ffeab6724cf280b643ff6f434c
1,706
py
Python
google/home/graph/v1/home-graph-v1-py/google/home/graph_v1/types/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/home/graph/v1/home-graph-v1-py/google/home/graph_v1/types/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/home/graph/v1/home-graph-v1-py/google/home/graph_v1/types/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
27.079365
74
0.732708
0
0
0
0
0
0
0
0
1,005
0.589097
8560b0e4b09c5f913481d0494af7a7cde6e95874
2,348
py
Python
states/sense_profile_state.py
rbenamotz/LEMPA
eab84e2494aac0d1461582c7f83405cb4ab7c16e
[ "MIT" ]
83
2020-08-11T21:03:21.000Z
2022-02-27T17:52:31.000Z
states/sense_profile_state.py
rbenamotz/LEMPA
eab84e2494aac0d1461582c7f83405cb4ab7c16e
[ "MIT" ]
7
2020-09-06T17:10:04.000Z
2021-05-25T11:53:18.000Z
states/sense_profile_state.py
rbenamotz/LEMPA
eab84e2494aac0d1461582c7f83405cb4ab7c16e
[ "MIT" ]
6
2020-09-05T23:42:01.000Z
2021-06-21T04:09:03.000Z
import sys import time import RPi.GPIO as GPIO from application import Application, COMMAND_LINE_PARAM_PROFILE_ID from profiles import profile_by_id, profile_by_jumper from . import State from hardware import PINS_PROFILES class SensingProfileState(State): def __load_profile__(self, profile_id, first=True): ...
34.529412
81
0.579216
2,120
0.902896
0
0
0
0
0
0
208
0.088586
8561517142c3b7bdb23c921efcc982af0f356670
2,741
py
Python
handlers/registration.py
StGrail/AlleyCat-bot
3681627138e088bef2eea6867eb0b9a11d183e38
[ "MIT" ]
null
null
null
handlers/registration.py
StGrail/AlleyCat-bot
3681627138e088bef2eea6867eb0b9a11d183e38
[ "MIT" ]
1
2021-03-16T17:39:14.000Z
2021-03-17T07:31:26.000Z
handlers/registration.py
StGrail/AlleyCat-bot
3681627138e088bef2eea6867eb0b9a11d183e38
[ "MIT" ]
null
null
null
from aiogram.dispatcher import FSMContext from aiogram.types import CallbackQuery from FSM.Registation_states import Registration_form from constants.text_messages import RULES, START_INFO from keyboards.inline_kb import bicycle_type, gender, apply_registration, check_reg_answer from utils.loader import dp, db # наж...
37.040541
94
0.747537
0
0
0
0
2,364
0.763319
2,067
0.66742
925
0.298676
8561b65f73f039098088547f5dc3f1ca3cf952f5
145
py
Python
cloudberry-py/cloudberry/api/json_util.py
olliekrk/cloud-berry
8b39fb0b4f8772348fb50c0c1d0200c96df03cbe
[ "MIT" ]
null
null
null
cloudberry-py/cloudberry/api/json_util.py
olliekrk/cloud-berry
8b39fb0b4f8772348fb50c0c1d0200c96df03cbe
[ "MIT" ]
null
null
null
cloudberry-py/cloudberry/api/json_util.py
olliekrk/cloud-berry
8b39fb0b4f8772348fb50c0c1d0200c96df03cbe
[ "MIT" ]
null
null
null
import json class JSONUtil: @staticmethod def multipart_payload(payload): return None, json.dumps(payload), 'application/json'
18.125
60
0.710345
130
0.896552
0
0
110
0.758621
0
0
18
0.124138
856482c3cbf03c7b7af2b44e3422a0b6758b9099
3,446
py
Python
python/grouped_iterator.py
kadepettie/mike_tools
467698a835c04383d97c18055cb200ea6cdbc9b0
[ "Unlicense" ]
2
2016-01-14T02:04:37.000Z
2018-03-16T09:38:10.000Z
python/grouped_iterator.py
kadepettie/mike_tools
467698a835c04383d97c18055cb200ea6cdbc9b0
[ "Unlicense" ]
null
null
null
python/grouped_iterator.py
kadepettie/mike_tools
467698a835c04383d97c18055cb200ea6cdbc9b0
[ "Unlicense" ]
1
2018-07-20T20:31:39.000Z
2018-07-20T20:31:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Iterate through a pre-sorted text file and return lines as a group. ============================================================================ AUTHOR: Michael D Dacre, mike.dacre@gmail.com ORGANIZATION: Stanford University LICENSE: MIT License, prop...
34.46
79
0.53047
0
0
2,302
0.668021
0
0
0
0
1,619
0.46982
8565f946b86cb9e0c19ac6a1ce1fc8a3f4778e60
3,772
py
Python
announcer/email_decorators/ticket.py
dokipen/trac-announcer-plugin
7ef4123a7508c5395c8008fa2a8478b1888b4f63
[ "BSD-3-Clause" ]
null
null
null
announcer/email_decorators/ticket.py
dokipen/trac-announcer-plugin
7ef4123a7508c5395c8008fa2a8478b1888b4f63
[ "BSD-3-Clause" ]
1
2018-06-11T14:48:06.000Z
2018-06-11T14:48:06.000Z
announcer/email_decorators/ticket.py
dokipen/trac-announcer-plugin
7ef4123a7508c5395c8008fa2a8478b1888b4f63
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2009, Robert Corsaro # # 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 copyright # ...
44.376471
79
0.661188
1,818
0.481972
0
0
0
0
0
0
2,099
0.556469
8566ce5f7a94d07cf4e8e35937a2d2bccb26654d
5,155
py
Python
ccwt_client/strategy/multi_symbols.py
nigelliyang/ccwt_client
4efb8f2c790145b5f547e350d24413bb8b1bd9ed
[ "Apache-2.0" ]
null
null
null
ccwt_client/strategy/multi_symbols.py
nigelliyang/ccwt_client
4efb8f2c790145b5f547e350d24413bb8b1bd9ed
[ "Apache-2.0" ]
null
null
null
ccwt_client/strategy/multi_symbols.py
nigelliyang/ccwt_client
4efb8f2c790145b5f547e350d24413bb8b1bd9ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from pyalgotrade import strategy from pyalgotrade import plotter from pyalgotrade.broker.backtesting import Broker from pyalgotrade.broker.backtesting import TradePercentage from pyalgotrade.broker.slippage import VolumeShareSlippage from pyalgotrade.bar import Frequency ...
40.273438
135
0.644811
3,416
0.603214
0
0
0
0
0
0
2,497
0.440932
85675537e715f74331909f1bfc3cbced5496b2e4
158
py
Python
src/debugbar/messages/Message.py
MasoniteFramework/debugbar
62c8ba202f4b7530248c88ca2ce7aaaddcf598d9
[ "MIT" ]
5
2021-01-17T17:25:04.000Z
2022-01-24T16:52:19.000Z
src/debugbar/messages/Message.py
MasoniteFramework/debugbar
62c8ba202f4b7530248c88ca2ce7aaaddcf598d9
[ "MIT" ]
32
2021-01-17T15:16:52.000Z
2022-03-07T01:30:19.000Z
src/debugbar/messages/Message.py
MasoniteFramework/debugbar
62c8ba202f4b7530248c88ca2ce7aaaddcf598d9
[ "MIT" ]
1
2022-01-05T14:08:53.000Z
2022-01-05T14:08:53.000Z
class Message: def __init__(self, subject, value, options=None): self.subject = subject self.value = value self.options = options
26.333333
53
0.632911
158
1
0
0
0
0
0
0
0
0
8569aa3b086b166d6250ee9399cc1fd457cec787
470
py
Python
sme_material_apps/utils/html_to_pdf_response.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
sme_material_apps/utils/html_to_pdf_response.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
sme_material_apps/utils/html_to_pdf_response.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
1
2020-02-01T12:10:42.000Z
2020-02-01T12:10:42.000Z
from django.http import HttpResponse from django_weasyprint.utils import django_url_fetcher from weasyprint import HTML def html_to_pdf_response(html_string, pdf_filename): pdf_file = HTML( string=html_string, url_fetcher=django_url_fetcher, base_url='file://abobrinha').write_pdf() res...
33.571429
69
0.755319
0
0
0
0
0
0
0
0
84
0.178723
856b3c80d8f9a268cead6014523c425a5d9ae352
738
py
Python
examples/ex_em_matrix_countour_plot.py
herzig/cary_reader
2fd70a9aaf4313914ea823517556069eadebc74b
[ "MIT" ]
1
2020-10-15T13:00:26.000Z
2020-10-15T13:00:26.000Z
examples/ex_em_matrix_countour_plot.py
herzig/cary_reader
2fd70a9aaf4313914ea823517556069eadebc74b
[ "MIT" ]
null
null
null
examples/ex_em_matrix_countour_plot.py
herzig/cary_reader
2fd70a9aaf4313914ea823517556069eadebc74b
[ "MIT" ]
null
null
null
# allows import of package from parent directory import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import numpy as np import matplotlib.pyplot as plt from cary_reader import CaryData data = CaryData.from_csv('test_data/berio_matrix_300_450.csv') # converts the d...
30.75
82
0.754743
0
0
0
0
0
0
0
0
301
0.407859
856b70394ea2a27e4b33e3b939eda069451e5cfe
2,149
py
Python
elektronn3/data/transforms/random.py
riegerfr/elektronn3
a1fab65914d8975e6d869a5711a84d4553935bd5
[ "MIT" ]
124
2017-12-11T03:38:43.000Z
2022-03-25T03:10:32.000Z
elektronn3/data/transforms/random.py
riegerfr/elektronn3
a1fab65914d8975e6d869a5711a84d4553935bd5
[ "MIT" ]
34
2018-03-27T17:11:28.000Z
2020-07-19T20:52:14.000Z
elektronn3/data/transforms/random.py
riegerfr/elektronn3
a1fab65914d8975e6d869a5711a84d4553935bd5
[ "MIT" ]
28
2018-04-16T04:11:54.000Z
2022-03-25T03:23:30.000Z
"""Random number generators for random augmentation parametrization""" from typing import Optional, Tuple import numpy as np import scipy.stats class RandomSampler: """Samples random variables from a ``scipy.stats`` distribution.""" def __init__( self, rv: scipy.stats.rv_continuous, ...
29.438356
79
0.580735
1,991
0.926477
0
0
0
0
0
0
561
0.261052
856bb44faaf32f953b8cf04e2328ff923146711d
879
py
Python
training_v1_backup/training/pytorchLearning/lrNumpy.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/pytorchLearning/lrNumpy.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/pytorchLearning/lrNumpy.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
import torch as th import numpy as np ''' prediction: gradient computation: loss computation: parameter updates: ''' '''All Manual with numpy''' # f = w*x # f = 2.x X = np.array([1,2,3,4],dtype=np.float32) Y = np.array([2,4,6,8],dtype=np.float32) w = 0.0 def forward(x): return w*x def loss(y,yp): return np...
16.903846
61
0.590444
0
0
0
0
0
0
0
0
373
0.424346
856bb87d250ac4989a8e122dc68f32ff68809bd1
497
py
Python
exotic_ld/ld_laws.py
hrwakeford/ExoTiC-LD
5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a
[ "MIT" ]
null
null
null
exotic_ld/ld_laws.py
hrwakeford/ExoTiC-LD
5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a
[ "MIT" ]
null
null
null
exotic_ld/ld_laws.py
hrwakeford/ExoTiC-LD
5fdd86bcaded787e2e0d9d9c1ca54fa1ceda421a
[ "MIT" ]
null
null
null
from astropy.modeling.models import custom_model @custom_model def quadratic_limb_darkening(mu, a_ld=0., b_ld=0.): """ Define quadratic limb darkening model with two params. """ return 1. - a_ld * (1. - mu) - b_ld * (1. - mu)**2 @custom_model def nonlinear_limb_darkening(mu, c0=0., c1=0., c2=0., c3=0.): ...
33.133333
68
0.591549
0
0
0
0
442
0.889336
0
0
126
0.253521
856d5f7ffc3bcce6913018e4ef646a6e008b5e19
831
py
Python
client_server_socket/server_socket.py
KiwiShow/PythonWeb
a489bc2ab16f06f7cc4524bab6b45b2653bfb1bd
[ "MIT" ]
7
2018-02-24T13:41:21.000Z
2022-02-06T04:59:13.000Z
client_server_socket/server_socket.py
KiwiShow/PythonWeb
a489bc2ab16f06f7cc4524bab6b45b2653bfb1bd
[ "MIT" ]
6
2018-02-25T11:50:42.000Z
2021-12-13T19:55:13.000Z
client_server_socket/server_socket.py
KiwiShow/PythonWeb
a489bc2ab16f06f7cc4524bab6b45b2653bfb1bd
[ "MIT" ]
1
2018-03-01T02:43:15.000Z
2018-03-01T02:43:15.000Z
import socket # 1. create socket # 2. bind # 3. listen # 4. accept # 5. recv # 6. send # 7. close -> 3 # 运行这个程序后, 浏览器打开 localhost:2000 就能访问了 # 一般浏览器默认2个连接GET / HTTP/1.1 和 GET /favicon.ico HTTP/1.1 s = socket.socket() host = '' port = 2000 s.bind((host, port)) while True: s.listen(5) print('before accept') ...
21.307692
89
0.610108
0
0
0
0
0
0
0
0
496
0.519372
856dd362c9beb3c3c6cbb93ff094ed39d0df4ed7
8,515
py
Python
metalsmith/_nics.py
openstack/metalsmith
880d9e47d3fe3f8d6cb83311b0fde3173f92beb4
[ "Apache-2.0" ]
8
2018-06-27T11:19:31.000Z
2020-06-17T08:05:11.000Z
metalsmith/_nics.py
openstack/metalsmith
880d9e47d3fe3f8d6cb83311b0fde3173f92beb4
[ "Apache-2.0" ]
null
null
null
metalsmith/_nics.py
openstack/metalsmith
880d9e47d3fe3f8d6cb83311b0fde3173f92beb4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
39.239631
79
0.570053
6,328
0.743159
0
0
0
0
0
0
3,156
0.37064
8570469a4159ec85e5ca9d14672a27c122fa4b13
355
py
Python
pystratis/api/global_requestmodels/sendtransactionrequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
8
2021-06-30T20:44:22.000Z
2021-12-07T14:42:22.000Z
pystratis/api/global_requestmodels/sendtransactionrequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
2
2021-07-01T11:50:18.000Z
2022-01-25T18:39:49.000Z
pystratis/api/global_requestmodels/sendtransactionrequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
4
2021-07-01T04:36:42.000Z
2021-09-17T10:54:19.000Z
from pydantic import Field from pystratis.api import Model from pystratis.core.types import hexstr # noinspection PyUnresolvedReferences class SendTransactionRequest(Model): """A request model for multiple api endpoints. Args: transaction_hex (hexstr): The hexified transaction. """ transactio...
25.357143
59
0.752113
215
0.605634
0
0
0
0
0
0
167
0.470423
8570b07b4e9af91f0c08ffa94177023db3ec5f6a
81
py
Python
nbgrader/exchange/abc/fetch_feedback.py
omelnikov/nbgrader
66984e5732c98bd15733c027601a62fca6a46222
[ "BSD-3-Clause" ]
1,116
2015-01-20T19:22:24.000Z
2022-03-31T22:05:10.000Z
nbgrader/exchange/abc/fetch_feedback.py
jld23/nbgrader
07a38cd8ed12ab33870bdd42f0bf35aa1252b0db
[ "BSD-3-Clause" ]
1,166
2015-01-08T21:50:31.000Z
2022-03-31T05:15:01.000Z
nbgrader/exchange/abc/fetch_feedback.py
jld23/nbgrader
07a38cd8ed12ab33870bdd42f0bf35aa1252b0db
[ "BSD-3-Clause" ]
337
2015-02-06T01:28:00.000Z
2022-03-29T06:52:38.000Z
from .exchange import Exchange class ExchangeFetchFeedback(Exchange): pass
13.5
38
0.790123
47
0.580247
0
0
0
0
0
0
0
0
8572d905f6530b7f5ae05752a4502d7789e2350b
362
py
Python
PWN/2019StarCTF/babyshell/exp.py
Cossack9989/SEC_LEARNING
34126ac7427d48f774f03b43d40fd128c5468bc9
[ "MIT" ]
13
2018-11-28T07:40:04.000Z
2022-02-05T15:14:27.000Z
PWN/2019StarCTF/babyshell/exp.py
Cossack9989/SEC_LEARNING
34126ac7427d48f774f03b43d40fd128c5468bc9
[ "MIT" ]
null
null
null
PWN/2019StarCTF/babyshell/exp.py
Cossack9989/SEC_LEARNING
34126ac7427d48f774f03b43d40fd128c5468bc9
[ "MIT" ]
3
2019-12-18T16:43:10.000Z
2021-09-10T05:45:07.000Z
from pwn import * context.arch = 'amd64' #io = process("./shellcode") io = remote('34.92.37.22', 10002) #gdb.attach(io,'handle SIGALRM nostop noprint\nb *0x4008cb\nc') io.recvuntil(":\n") io.sendline('\x00\x6a\x3b\xeb\x10\x48\x31\xc0\x5f\x48\x31\xf6\x48\x31\xd2\x48\x83\xc0\x3b\x0f\x05'+'\xe8\xeb\xff\xff\xff\x2f\x62\x...
32.909091
154
0.701657
0
0
0
0
0
0
0
0
256
0.707182
85740ce3a03beaf2eb89116783a5b5dcaacc3a51
2,753
py
Python
customforms/blocks.py
SquarehostLtd/django-wagtail-customforms
a317fc421faae6fb1f9155bf03eb2930523c46d2
[ "BSD-3-Clause" ]
1
2018-02-28T09:06:39.000Z
2018-02-28T09:06:39.000Z
customforms/blocks.py
SquarehostLtd/django-wagtail-customforms
a317fc421faae6fb1f9155bf03eb2930523c46d2
[ "BSD-3-Clause" ]
1
2020-11-03T10:50:51.000Z
2020-11-03T10:50:51.000Z
customforms/blocks.py
SquarehostLtd/django-wagtail-customforms
a317fc421faae6fb1f9155bf03eb2930523c46d2
[ "BSD-3-Clause" ]
1
2020-01-22T23:05:50.000Z
2020-01-22T23:05:50.000Z
from django.contrib import messages from django.http import HttpResponseRedirect from django.utils.functional import cached_property from django.utils.html import format_html from django.utils.safestring import mark_safe from django.template.loader import render_to_string from wagtail.core.blocks import ChooserBlock ...
37.202703
115
0.674174
2,320
0.842717
0
0
134
0.048674
0
0
557
0.202325
857497f20d02b6868933869ee19b698c45cb4943
1,382
py
Python
onetimepass/backends.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
2
2016-12-05T03:31:47.000Z
2017-02-13T20:10:39.000Z
onetimepass/backends.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
1
2016-12-14T10:53:15.000Z
2016-12-17T18:52:25.000Z
onetimepass/backends.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
1
2017-01-14T10:56:28.000Z
2017-01-14T10:56:28.000Z
from django.contrib.auth import get_user_model from django.contrib.auth.backends import BaseBackend from django.contrib.auth.hashers import check_password from .models import OneTimePass User = get_user_model() # https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#authentication-backends class OneTimePa...
32.904762
88
0.641823
1,076
0.778582
0
0
0
0
0
0
88
0.063676
857606e28a85102079da6fd107aaf732413bd215
2,286
py
Python
views/index/students.py
woyanh/bysj-master
d2ba7fbba7145b04e05ad3e7e14fa70018a6ce4c
[ "MIT" ]
null
null
null
views/index/students.py
woyanh/bysj-master
d2ba7fbba7145b04e05ad3e7e14fa70018a6ce4c
[ "MIT" ]
null
null
null
views/index/students.py
woyanh/bysj-master
d2ba7fbba7145b04e05ad3e7e14fa70018a6ce4c
[ "MIT" ]
null
null
null
from flask import Blueprint,render_template,flash,redirect,url_for,send_from_directory,current_app from flask_login import current_user from models import Student,Course from forms.students import UploadAvatarForm,CropAvatarForm from extensions import avatars,db from utils import flash_errors index_stu_bp...
33.617647
99
0.682415
0
0
0
0
1,902
0.832021
0
0
344
0.150481
8577638bf4ccf5772ce85b6e85457d1e027d3afe
1,507
py
Python
parallel_esn/example/power_consumption_oneshot.py
zblanks/parallel_esn
25a979d0863ce54a4a588f4216dc473d4e9c5e8a
[ "BSD-2-Clause" ]
7
2019-05-06T00:32:24.000Z
2021-06-03T14:49:23.000Z
parallel_esn/example/power_consumption_oneshot.py
zblanks/parallel_esn
25a979d0863ce54a4a588f4216dc473d4e9c5e8a
[ "BSD-2-Clause" ]
8
2019-04-20T04:51:38.000Z
2020-02-25T22:25:34.000Z
parallel_esn/example/power_consumption_oneshot.py
zblanks/parallel_esn
25a979d0863ce54a4a588f4216dc473d4e9c5e8a
[ "BSD-2-Clause" ]
2
2019-04-19T11:05:51.000Z
2020-10-15T20:40:26.000Z
from pkg_resources import resource_filename import numpy as np import matplotlib.pyplot as plt from ..esn import ESN from ..utils import chunk_data, standardize_traindata, scale_data # Example using real data, one shot prediction # Load data fname = resource_filename('parallel_esn', 'data/PJM_Load_hourly.csv') data =...
32.06383
69
0.741208
0
0
0
0
0
0
0
0
478
0.317186
8577a2ae24790cf5340a14689ec14a5be4fe05c0
7,522
py
Python
tests/st/explainer/test_runner.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
tests/st/explainer/test_runner.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
tests/st/explainer/test_runner.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.422886
109
0.626695
5,685
0.755783
228
0.030311
4,435
0.589604
0
0
1,305
0.173491
8578189186a9c269dc0edf7eade08b1bd089bcd5
28,956
py
Python
GUI src/app.py
xngst/press-graphs
0fdb1b402fc948cf66c1d0c66c726e7ecf6f15e5
[ "MIT" ]
null
null
null
GUI src/app.py
xngst/press-graphs
0fdb1b402fc948cf66c1d0c66c726e7ecf6f15e5
[ "MIT" ]
null
null
null
GUI src/app.py
xngst/press-graphs
0fdb1b402fc948cf66c1d0c66c726e7ecf6f15e5
[ "MIT" ]
null
null
null
""" PRESSGRAPHS DASH CLIENT WEB GUI interface for PressGraphs WebAPI """ ################################### # IMPORTS ################################### #builtins from datetime import datetime from datetime import timedelta #3rd party import dash import dash_core_components as dcc import dash_html_components as html...
29.486762
140
0.521239
0
0
0
0
12,068
0.414979
0
0
9,443
0.324714
85781ef5f5f726cf3352c3b5c4d46b1a07a81a89
802
py
Python
pickle2sql.py
Shemka/SteamTags
a35463b7f30e112d8c18a73cd4abe54b102c0b4b
[ "MIT" ]
null
null
null
pickle2sql.py
Shemka/SteamTags
a35463b7f30e112d8c18a73cd4abe54b102c0b4b
[ "MIT" ]
null
null
null
pickle2sql.py
Shemka/SteamTags
a35463b7f30e112d8c18a73cd4abe54b102c0b4b
[ "MIT" ]
null
null
null
import pickle as pk import pymysql as mysql from tqdm import tqdm host, login, password, db, file_name = input('Enter host, login, password, database name and file name:\n').split() with open(file_name, 'rb') as f: data = pk.load(f) connection = mysql.connect(host, login, password, db) with connection.cursor() a...
42.210526
140
0.693267
0
0
0
0
0
0
0
0
367
0.457606
857b09fd9aab40fed40cd686483e3386e8a76e25
1,467
py
Python
algorithms/bubblesort.py
KellyHwong/Algorithms
50cfc37c9b3694bb5ae9f13bb1e923e4f2142bca
[ "MIT" ]
3
2019-06-20T07:09:57.000Z
2019-07-01T07:04:46.000Z
algorithms/bubblesort.py
KellyHwong/Algorithms
50cfc37c9b3694bb5ae9f13bb1e923e4f2142bca
[ "MIT" ]
null
null
null
algorithms/bubblesort.py
KellyHwong/Algorithms
50cfc37c9b3694bb5ae9f13bb1e923e4f2142bca
[ "MIT" ]
1
2019-11-22T07:36:28.000Z
2019-11-22T07:36:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : Jul-13-19 18:02 # @Author : Your Name (you@example.org) # @Link : http://example.org import os import random import pysnooper import time import csv from quicksort import quicksort def bubblesort(l: list): for i in range(len(l)): for j in r...
23.66129
60
0.524881
0
0
0
0
0
0
0
0
389
0.260201
857c933c8a1faa44d29c848ca1b539e394d2ba3b
1,667
py
Python
hovor/session/session_base.py
IBM/contingent-plan-executor
177c5ec84070a4d0d83beb6622d99ec0fd772c12
[ "Apache-2.0" ]
3
2020-07-01T03:09:27.000Z
2021-03-20T03:27:24.000Z
hovor/session/session_base.py
IBM/contingent-plan-executor
177c5ec84070a4d0d83beb6622d99ec0fd772c12
[ "Apache-2.0" ]
1
2020-07-09T00:56:14.000Z
2020-07-09T00:56:14.000Z
hovor/session/session_base.py
IBM/contingent-plan-executor
177c5ec84070a4d0d83beb6622d99ec0fd772c12
[ "Apache-2.0" ]
1
2020-12-19T22:06:00.000Z
2020-12-19T22:06:00.000Z
class SessionBase(object): """ Base class for accessing plan, state, and context data. Is responsible for defining initial state, context, and action in __init__. ALL METHODS MUST BE OVERRIDDEN. """ @property def plan(self): """The active plan for the session""" raise NotImp...
29.245614
86
0.629274
1,666
0.9994
0
0
891
0.534493
0
0
1,040
0.623875
857e81aeb8f91a043f2183d0e0e74e4b51951da7
890
py
Python
codes/Others/Longest-Palindromic-Substring/script.py
kotori-y/LeetCode-Code
cf42265401d5fdedd8ba95974e93f5c005694e86
[ "MIT" ]
3
2021-04-23T02:02:23.000Z
2021-05-15T01:01:24.000Z
codes/Others/Longest-Palindromic-Substring/script.py
kotori-y/LeetCode-Code
cf42265401d5fdedd8ba95974e93f5c005694e86
[ "MIT" ]
null
null
null
codes/Others/Longest-Palindromic-Substring/script.py
kotori-y/LeetCode-Code
cf42265401d5fdedd8ba95974e93f5c005694e86
[ "MIT" ]
null
null
null
''' Description: Author: Kotori Y Date: 2021-04-22 09:14:19 LastEditors: Kotori Y LastEditTime: 2021-04-22 09:14:20 FilePath: \LeetCode-Code\codes\Others\Longest-Palindromic-Substring\script.py AuthorMail: kotori@cbdd.me ''' class Solution: def boo(self, s, left, right): if (left < 0) or (right >= len(s))...
29.666667
77
0.569663
663
0.744944
0
0
0
0
0
0
225
0.252809
857f09ca17fba68d6b0bb219612bebe1eef519e9
8,044
py
Python
venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_fabric_spine_switch_assoc.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_fabric_spine_switch_assoc.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_fabric_spine_switch_assoc.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
27.737931
141
0.612631
0
0
0
0
0
0
0
0
5,831
0.724888
857fedd5b847029945954b747d4033f643eaed7a
1,185
py
Python
snippets/3DEM/Z_oldscratch/scratch_20160215.py
michielkleinnijenhuis/EM
f46a9b11298919b359e80d9f23a7e824df1356cb
[ "Apache-2.0" ]
null
null
null
snippets/3DEM/Z_oldscratch/scratch_20160215.py
michielkleinnijenhuis/EM
f46a9b11298919b359e80d9f23a7e824df1356cb
[ "Apache-2.0" ]
null
null
null
snippets/3DEM/Z_oldscratch/scratch_20160215.py
michielkleinnijenhuis/EM
f46a9b11298919b359e80d9f23a7e824df1356cb
[ "Apache-2.0" ]
null
null
null
scriptdir="$HOME/workspace/EM" DATA="$HOME/oxdata" datadir="$DATA/P01/EM/M3/M3_S1_GNU" && cd $datadir dataset='m000' paraview --state=$datadir/m000_01000-01500_01000-01500_00200-00300/stack+mesh_compact.pvsm qsubfile=$datadir/EM_con2.sh echo '#!/bin/bash' > $qsubfile echo "#SBATCH --nodes=1" >> $qsubfile echo "#SBATC...
32.027027
133
0.67173
0
0
0
0
0
0
0
0
499
0.421097
8580ed32aedebf1af35027d068875f6c4fc89997
6,319
py
Python
8-2.machine_learning_ra_pbmc_bulk.py
yxaxaxa/sle_and_hd_single_cell_analysis
139a3f6bd9ee34bec77b7ab3e1ec81a8c716d992
[ "MIT" ]
null
null
null
8-2.machine_learning_ra_pbmc_bulk.py
yxaxaxa/sle_and_hd_single_cell_analysis
139a3f6bd9ee34bec77b7ab3e1ec81a8c716d992
[ "MIT" ]
null
null
null
8-2.machine_learning_ra_pbmc_bulk.py
yxaxaxa/sle_and_hd_single_cell_analysis
139a3f6bd9ee34bec77b7ab3e1ec81a8c716d992
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[5]: import pandas as pd import numpy as np import glob,os from glob import iglob #import scanpy as sc from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import RocCurveDisplay from sklearn.datasets import load_wine from skle...
24.303846
106
0.743789
0
0
0
0
0
0
0
0
1,944
0.307644
8582f63940499d89e8d668d18b7810768499bc46
782
py
Python
python/tests/test_statement.py
vlachvojta/Theatrical-Players-Refactoring-Kata
a26968f52e680ad041cfdd67572256a93e80f14a
[ "MIT" ]
69
2019-08-07T07:48:29.000Z
2022-03-25T13:51:27.000Z
python/tests/test_statement.py
vlachvojta/Theatrical-Players-Refactoring-Kata
a26968f52e680ad041cfdd67572256a93e80f14a
[ "MIT" ]
16
2019-08-08T10:12:59.000Z
2022-03-22T12:42:48.000Z
python/tests/test_statement.py
vlachvojta/Theatrical-Players-Refactoring-Kata
a26968f52e680ad041cfdd67572256a93e80f14a
[ "MIT" ]
69
2019-08-07T13:21:38.000Z
2022-03-31T17:38:21.000Z
import json import pytest from approvaltests import verify from approvaltests.utils import get_adjacent_file from statement import statement def test_example_statement(): with open(get_adjacent_file("invoice.json")) as f: invoice = json.loads(f.read()) with open(get_adjacent_file("plays.json")) as f...
30.076923
64
0.719949
0
0
0
0
0
0
0
0
80
0.102302
85845948a6f4b5cef79da8f628ea2e873570afc0
1,537
py
Python
recipes/Python/454322_Typechecking_decorator/recipe-454322.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/454322_Typechecking_decorator/recipe-454322.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/454322_Typechecking_decorator/recipe-454322.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
def require(arg_name, *allowed_types): def make_wrapper(f): if hasattr(f, "wrapped_args"): wrapped_args = getattr(f, "wrapped_args") else: code = f.func_code wrapped_args = list(code.co_varnames[:code.co_argcount]) try: arg_index = wrapped_arg...
35.744186
109
0.560833
0
0
0
0
76
0.049447
0
0
202
0.131425
85851779a1b382f22dd9a4248dacef833de10d4f
2,914
py
Python
gcp_runner/ai_platform_constants.py
vlasenkoalexey/gcp_runner
6570483f3a803b1d440b2e5aa56cd1d2151ef3ba
[ "Apache-2.0" ]
1
2020-04-26T21:01:24.000Z
2020-04-26T21:01:24.000Z
gcp_runner/ai_platform_constants.py
vlasenkoalexey/gcp_runner
6570483f3a803b1d440b2e5aa56cd1d2151ef3ba
[ "Apache-2.0" ]
1
2022-02-26T06:56:49.000Z
2022-02-26T06:56:49.000Z
gcp_runner/ai_platform_constants.py
vlasenkoalexey/gcp_runner
6570483f3a803b1d440b2e5aa56cd1d2151ef3ba
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: ai_platform_constants.ipynb (unless otherwise specified). __all__ = ['AcceleratorType', 'ScaleTier', 'MachineType', 'DistributionStrategyType'] # Cell from enum import Enum # https://cloud.google.com/sdk/gcloud/reference/ai-platform/jobs/submit/training#--master-accelerato...
37.358974
102
0.688401
2,402
0.824296
0
0
0
0
0
0
1,719
0.589911
858551bc894c37253f0341f789dc0c08a3fb1059
2,702
py
Python
Chapter06/stan_example.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
40
2019-08-23T13:33:12.000Z
2022-02-24T12:48:41.000Z
Chapter06/stan_example.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
null
null
null
Chapter06/stan_example.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
33
2019-10-21T09:47:51.000Z
2022-01-14T17:21:54.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns # Install using pip install pystan # It requires a C/C++ compiler import pystan # Set random seed for reproducibility np.random.seed(1000) # Number of observations nb_samples = 10 if __name__ == "__main__": # Create the observations ...
27.571429
65
0.57883
0
0
0
0
0
0
0
0
1,181
0.437084
858760cd43df7a53576a57dc1a9f62fa326e32a2
7,377
py
Python
api/imgur/imgur_api.py
CharlieCorner/pymage_downloader
d145d2fe8666d4dbbc104bb563fc43415bd8802c
[ "Apache-2.0" ]
null
null
null
api/imgur/imgur_api.py
CharlieCorner/pymage_downloader
d145d2fe8666d4dbbc104bb563fc43415bd8802c
[ "Apache-2.0" ]
9
2018-11-04T23:20:22.000Z
2020-04-30T05:19:07.000Z
api/imgur/imgur_api.py
CharlieCorner/pymage_downloader
d145d2fe8666d4dbbc104bb563fc43415bd8802c
[ "Apache-2.0" ]
null
null
null
import json import logging from datetime import datetime import requests from api.imgur import * from exceptions.pymage_exceptions import NotAbleToDownloadException, ImgurAPICommunicationException from utils.utils import extract_imgur_id_from_url LOGGER = logging.getLogger(__name__) class ImgurAPI: @staticmet...
41.212291
121
0.638471
6,021
0.816185
0
0
5,958
0.807645
0
0
2,548
0.345398
85899347be22ba0685e74fcc5e8475db930f138a
2,305
py
Python
debexpo/tests/test_utils.py
jadonk/debexpo
a022160492e40cd02bafc413a3cb009551fd6f8d
[ "MIT" ]
null
null
null
debexpo/tests/test_utils.py
jadonk/debexpo
a022160492e40cd02bafc413a3cb009551fd6f8d
[ "MIT" ]
null
null
null
debexpo/tests/test_utils.py
jadonk/debexpo
a022160492e40cd02bafc413a3cb009551fd6f8d
[ "MIT" ]
2
2017-01-20T23:08:40.000Z
2019-08-13T20:30:00.000Z
# -*- coding: utf-8 -*- # # test_utils.py — Test cases for debexpo.lib.utils # # This file is part of debexpo - https://alioth.debian.org/projects/debexpo/ # # Copyright © 2008 Jonny Lamb <jonny@debian.org> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and...
33.897059
124
0.695879
751
0.325249
0
0
0
0
0
0
1,740
0.753573
858ac88a4f9f2ee0d5dd8e950c9db71bd4cde1de
354
py
Python
hospital/urls.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
hospital/urls.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
hospital/urls.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^page/(\d+)/$', views.page, name='index'), url(r'^(\d+)/$', views.detail, name='index'), url(r'^(\d+)/bloods/$', views.blood_detail, name='index'), url(r'^(\d+)/donors/$', views...
32.181818
63
0.570621
0
0
0
0
0
0
0
0
103
0.29096
85904c89bcdbf8674999ebe65648eb5f658466c4
466
py
Python
setup.py
codeskyblue/pyignore
373a0a85a0af54af13068ba7cf1f6202ee145cbf
[ "MIT" ]
2
2017-09-21T08:11:38.000Z
2020-09-22T01:25:50.000Z
setup.py
codeskyblue/pyignore
373a0a85a0af54af13068ba7cf1f6202ee145cbf
[ "MIT" ]
null
null
null
setup.py
codeskyblue/pyignore
373a0a85a0af54af13068ba7cf1f6202ee145cbf
[ "MIT" ]
null
null
null
from __future__ import print_function import pyignore try: from distutils.core import setup except ImportError: from setuptools import setup setup( name='pyignore', version=pyignore.__version__, license="MIT", description='parse .gitignore file', author='codeskyblue', author_emai...
22.190476
51
0.686695
0
0
0
0
0
0
0
0
124
0.266094
8591a7090c96616149a2e2720da637473a0729d4
177
py
Python
ProcessScreen.py
collvey/AutoHotKey
378af50954e0d93af00d73b62b49a053b1e80e83
[ "MIT" ]
null
null
null
ProcessScreen.py
collvey/AutoHotKey
378af50954e0d93af00d73b62b49a053b1e80e83
[ "MIT" ]
null
null
null
ProcessScreen.py
collvey/AutoHotKey
378af50954e0d93af00d73b62b49a053b1e80e83
[ "MIT" ]
1
2022-02-21T05:35:43.000Z
2022-02-21T05:35:43.000Z
import os if __name__ == "__main__": screen_dir = r"C:\Users\collv\Pictures\Screenshots" for f in os.listdir(screen_dir): os.remove(os.path.join(screen_dir, f))
29.5
55
0.683616
0
0
0
0
0
0
0
0
48
0.271186
8595e9d998cbd9c7f01883a7d7536070b59a1bb6
36,756
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripItem.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripItem.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripItem.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class ToolStripItem(Component,IComponent,IDisposable,IDropTarget,ISupportOleDropSource,IArrangedElement): """ Represents the abstract base class that manages events and layout for all the elements that a System.Windows.Forms.ToolStrip or System.Windows.Forms.ToolStripDropDown can contain. """ def CreateAccessibilit...
23.501279
219
0.710279
36,752
0.999891
0
0
261
0.007101
0
0
27,252
0.74143
8598c85583efc616f40502b57ea891b81ce4abba
1,092
py
Python
apps/hospitals/admin/hospital.py
joao-frohlich/covid-sc
8f176abe7d0696bcf118da82dce91c1da6332b44
[ "MIT" ]
null
null
null
apps/hospitals/admin/hospital.py
joao-frohlich/covid-sc
8f176abe7d0696bcf118da82dce91c1da6332b44
[ "MIT" ]
null
null
null
apps/hospitals/admin/hospital.py
joao-frohlich/covid-sc
8f176abe7d0696bcf118da82dce91c1da6332b44
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.hospitals.models import Hospital, HospitalBed class HospitalBedInline(admin.TabularInline): model = HospitalBed def get_extra(self, request, obj=None, **kwargs): extra = 3 extra_on_edit = 0 return extra_on_edit if obj else extra class Hospi...
29.513514
92
0.65293
953
0.872711
0
0
0
0
0
0
195
0.178571
85998c2ca2be37ec4bb630ebbb2d3b94c9c6145d
5,732
py
Python
T3 2D - Tau Calculator.py
sohdesune/SUTD-projects
1061bd7e2756dcf4ea6f7e1ed0411f9b761e9bc1
[ "MIT" ]
null
null
null
T3 2D - Tau Calculator.py
sohdesune/SUTD-projects
1061bd7e2756dcf4ea6f7e1ed0411f9b761e9bc1
[ "MIT" ]
null
null
null
T3 2D - Tau Calculator.py
sohdesune/SUTD-projects
1061bd7e2756dcf4ea6f7e1ed0411f9b761e9bc1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 12 00:58:08 2018 @author: sohdesune """ ''' ln|T_w - T| - ln|T_w - T_amb| = -(1/tau) * t 1. Extract raw data for first 20s from csv 2. Plot complicated ln function vs t 3. Compute tau 4. [Remove outliers] 5. Write tau vs T_w to txt ...
37.464052
93
0.539253
0
0
0
0
0
0
0
0
2,542
0.443475
859ae9fb69a4a815ff51f428cb5a6fb889df4a0b
1,987
py
Python
build/lib/pyggi/line/engine.py
s-marta/pyggi-bloa
aefe15eda32e713dc8402c9b8d4bcb7cb05b31c8
[ "MIT" ]
null
null
null
build/lib/pyggi/line/engine.py
s-marta/pyggi-bloa
aefe15eda32e713dc8402c9b8d4bcb7cb05b31c8
[ "MIT" ]
null
null
null
build/lib/pyggi/line/engine.py
s-marta/pyggi-bloa
aefe15eda32e713dc8402c9b8d4bcb7cb05b31c8
[ "MIT" ]
1
2021-03-12T14:37:06.000Z
2021-03-12T14:37:06.000Z
from . import AbstractLineEngine class LineEngine(AbstractLineEngine): @classmethod def get_contents(cls, file_path): with open(file_path, 'r') as target_file: return list(map(str.rstrip, target_file.readlines())) @classmethod def get_modification_points(cls, contents_of_file): ...
35.482143
89
0.613488
1,952
0.982386
0
0
1,874
0.94313
0
0
84
0.042275
859c6ae60388a87f3a8c1e4b27fc07a9168d7730
1,656
py
Python
boidfunc/endpoint_func.py
travelingnight/boidload
55df24c3f22104fdf67219d2f7286f71df80c2e7
[ "MIT" ]
null
null
null
boidfunc/endpoint_func.py
travelingnight/boidload
55df24c3f22104fdf67219d2f7286f71df80c2e7
[ "MIT" ]
null
null
null
boidfunc/endpoint_func.py
travelingnight/boidload
55df24c3f22104fdf67219d2f7286f71df80c2e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Allan Millar Various functions related to sockets, ip's, port's etc. """ import sys, random, socket from contextlib import closing def find_port(): # This will only ever be run when the machine has already been # captured, and from the machine itself. HOST = "localhost" ...
36.8
95
0.63285
0
0
0
0
0
0
0
0
948
0.572464
859f202a2f2f1138c22ae3526261447b406a220f
3,339
py
Python
yt_playlist_downloader.py
lautisilber/youtube_playlist_downloader
95f24f3a059a6efb02a81f352b08186651fd6aae
[ "MIT" ]
null
null
null
yt_playlist_downloader.py
lautisilber/youtube_playlist_downloader
95f24f3a059a6efb02a81f352b08186651fd6aae
[ "MIT" ]
null
null
null
yt_playlist_downloader.py
lautisilber/youtube_playlist_downloader
95f24f3a059a6efb02a81f352b08186651fd6aae
[ "MIT" ]
null
null
null
''' created by Lautaro Silbergleit on 2021 ''' import re from pytube import Playlist, YouTube from tqdm import tqdm from os import makedirs, listdir, remove from os.path import join, exists, isfile import json from time import sleep SENSITIVE_CHARACTERS = ['%', ':'] def main(): PLAYLIST_URL_PATH = 'playlist_urls.j...
31.8
126
0.698712
0
0
0
0
0
0
0
0
938
0.280922
85a07ddbba59bb16c26817858612ab97a63c481d
1,344
py
Python
2019/day13.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
2019/day13.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
2019/day13.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
import intcode def breakout_demo(p): cpu = intcode.computer(p) screen = dict() while True: try: x, y, tile = next(cpu), next(cpu), next(cpu) screen[x, y] = tile except StopIteration: return bricks_remaining(screen) def breakout(p): p[0] = 2 cpu =...
30.545455
79
0.530506
0
0
0
0
0
0
0
0
233
0.173363
85a0e2d9282c759866463e075085469b476b17b8
1,650
py
Python
syncany/calculaters/__init__.py
snower/syncany
32d32907a155618678d5b2335cd8a70192ed1e6f
[ "MIT" ]
5
2018-08-15T13:45:30.000Z
2021-03-18T01:51:47.000Z
syncany/calculaters/__init__.py
snower/syncany
32d32907a155618678d5b2335cd8a70192ed1e6f
[ "MIT" ]
null
null
null
syncany/calculaters/__init__.py
snower/syncany
32d32907a155618678d5b2335cd8a70192ed1e6f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 18/8/15 # create by: snower from .calculater import Calculater from .builtin import * from .conversion_calculater import ConvCalculater from ..errors import CalculaterUnknownException CALCULATERS = { "": Calculater, "type": TypeCalculater, 'range': RangeCalculater, "add": Add...
27.04918
75
0.667273
0
0
0
0
0
0
0
0
312
0.189091
85a25605545d4e4f832fe9a3447b0a972658df24
1,094
py
Python
sweet/features/gabor.py
charlienewey/penumbra-python
a848adf5628a37339354f5ed5a747b03cc4df9bd
[ "BSD-3-Clause" ]
1
2017-10-16T03:47:51.000Z
2017-10-16T03:47:51.000Z
sweet/features/gabor.py
charlienewey/penumbra-python
a848adf5628a37339354f5ed5a747b03cc4df9bd
[ "BSD-3-Clause" ]
null
null
null
sweet/features/gabor.py
charlienewey/penumbra-python
a848adf5628a37339354f5ed5a747b03cc4df9bd
[ "BSD-3-Clause" ]
null
null
null
import math import skimage.filters def variance_difference(image_1, image_2): def _var_dif(img_1, img_2): return math.sqrt((img_1.var() - img_2.var()) ** 2) if isinstance(image_1, list): var_dif = 0 for i in range(0, len(image_1)): var_dif += _var_dif(image_1[i], image_2[...
27.35
87
0.610603
0
0
0
0
0
0
0
0
0
0
85a26fa5e4287545bb2aafe69a4a95320c01eec9
3,530
py
Python
log.py
mpagliaro98/multi-drive-backup-tool
f4f00f59c6fc3f2fb3786b76f807e160794f43c6
[ "MIT" ]
null
null
null
log.py
mpagliaro98/multi-drive-backup-tool
f4f00f59c6fc3f2fb3786b76f807e160794f43c6
[ "MIT" ]
null
null
null
log.py
mpagliaro98/multi-drive-backup-tool
f4f00f59c6fc3f2fb3786b76f807e160794f43c6
[ "MIT" ]
null
null
null
""" log.py Author: Michael Pagliaro Utility functions specific to writing log files. """ from datetime import datetime import sys import traceback import os import util # The log file to be written to whenever log() is called LOG_FILE = None LOGS_DIRECTORY = "logs" def logger(func): """ Creates a decorato...
36.020408
108
0.687535
0
0
0
0
0
0
0
0
2,056
0.582436
85a33483e90e1c90f85785e7d45cc06e684432cd
589
py
Python
CH04/comma_code.py
kaifee-haque/Automate-the-Boring-Stuff-Solutions
5acbf9a397dc4aa000ebd9e8f6d79d0ee5287fef
[ "MIT" ]
null
null
null
CH04/comma_code.py
kaifee-haque/Automate-the-Boring-Stuff-Solutions
5acbf9a397dc4aa000ebd9e8f6d79d0ee5287fef
[ "MIT" ]
null
null
null
CH04/comma_code.py
kaifee-haque/Automate-the-Boring-Stuff-Solutions
5acbf9a397dc4aa000ebd9e8f6d79d0ee5287fef
[ "MIT" ]
null
null
null
#! python3 def comma_string(_list): """Takes a list of items and formats it into a string, separated by commas like plain English. Args: _list: The list of items. Returns: result: The string of list items separated by commas.""" result = "" for i, character in enumerate(...
22.653846
71
0.561969
0
0
0
0
0
0
0
0
285
0.483871
85a43bc49cba801875c15cb0bfcc94c9515e0a35
455
py
Python
self_driving_car/motor/car_motor.py
MichaelBosello/Self-Driving-Car
7b6b3fa8c47cff84bf681db22abff0d418bd14be
[ "Apache-2.0" ]
8
2020-08-27T06:13:35.000Z
2021-09-17T04:53:27.000Z
self_driving_car/motor/car_motor.py
MichaelBosello/Self-Driving-Car
7b6b3fa8c47cff84bf681db22abff0d418bd14be
[ "Apache-2.0" ]
null
null
null
self_driving_car/motor/car_motor.py
MichaelBosello/Self-Driving-Car
7b6b3fa8c47cff84bf681db22abff0d418bd14be
[ "Apache-2.0" ]
null
null
null
def CarMotor(car_type): if car_type == 'hjduino': from motor.car_specific_motor.hjduino.car_motor_hjduino_jetson import CarMotorHJduino return CarMotorHJduino() if car_type == 'xiaor': from motor.car_specific_motor.xiaor.car_motor_xiaor_jetson import CarMotorXiaoR return CarMotorXiaoR() ...
45.5
91
0.753846
0
0
0
0
0
0
0
0
23
0.050549
85a75d4ad7786057bb8752bdfb76d74144bb1724
243
wsgi
Python
index.wsgi
liuzheng712/cbox
b27fdf01fbb76b10115600f465b99f8fd7f1ba3e
[ "MIT" ]
1
2016-01-17T14:53:48.000Z
2016-01-17T14:53:48.000Z
index.wsgi
liuzheng712/cbox
b27fdf01fbb76b10115600f465b99f8fd7f1ba3e
[ "MIT" ]
null
null
null
index.wsgi
liuzheng712/cbox
b27fdf01fbb76b10115600f465b99f8fd7f1ba3e
[ "MIT" ]
null
null
null
import sae def app(environ, start_response): status = '200 OK' response_headers = [('Content-type', 'text/plain')] start_response(status, response_headers) return [str(start_response)] application = sae.create_wsgi_app(app)
22.090909
55
0.716049
0
0
0
0
0
0
0
0
34
0.139918
85a7f592ed553404754f7344c9234b29657d2ed5
331
py
Python
Coding-Challenges/largestSubsequence/largest_subsequence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
33
2019-12-02T23:29:47.000Z
2022-03-24T02:40:36.000Z
Coding-Challenges/largestSubsequence/largest_subsequence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
39
2020-01-15T19:28:12.000Z
2021-11-26T05:13:29.000Z
Coding-Challenges/largestSubsequence/largest_subsequence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
49
2019-12-02T23:29:53.000Z
2022-03-03T01:11:37.000Z
#!/usr/bin/env python3 def largest_subsequence(s1, s2): pass print(largest_subsequence("ABAZDC", "BACBAD")) # "ABAD" print(largest_subsequence("AGGTAB", "GXTXAYB")) # "GTAB" print(largest_subsequence("aaaa", "aa")) # "aa" print(largest_subsequence("", "...")) # "" print(largest_subsequence("ABBA", "ABCABA"))...
27.583333
57
0.667674
0
0
0
0
0
0
0
0
120
0.362538
85a94176737ca05a735e46dd93ad4ec3d2b40450
362
py
Python
study_management/management/commands/generatefernetkey.py
jdkizer9/ls2_app
8b4c37b44a673d1919a0e52b72f529b7e1abd2e3
[ "Apache-2.0" ]
null
null
null
study_management/management/commands/generatefernetkey.py
jdkizer9/ls2_app
8b4c37b44a673d1919a0e52b72f529b7e1abd2e3
[ "Apache-2.0" ]
7
2020-02-05T04:57:01.000Z
2022-02-10T06:51:23.000Z
study_management/management/commands/generatefernetkey.py
jdkizer9/ls2_app
8b4c37b44a673d1919a0e52b72f529b7e1abd2e3
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from study_management.models import Datapoint from cryptography.fernet import Fernet import base64 class Command(BaseCommand): help = 'Generates a new Fernet key' def handle(self, *args, **options): key = Fernet.generate_key() ...
30.166667
65
0.751381
196
0.541436
0
0
0
0
0
0
28
0.077348
85ab2274d0b6aea42c9783fa2132ded90c110706
3,680
py
Python
src/odin-api/muninn/client/user.py
Interactions-AI/odin
94c593a98a0dc68c12f3062edbff34e7da5c4d8a
[ "Apache-2.0" ]
4
2020-12-15T15:57:14.000Z
2020-12-16T21:52:23.000Z
src/odin-api/muninn/client/user.py
Interactions-AI/odin
94c593a98a0dc68c12f3062edbff34e7da5c4d8a
[ "Apache-2.0" ]
2
2021-03-15T02:49:56.000Z
2021-03-27T12:42:38.000Z
src/odin-api/muninn/client/user.py
Interactions-AI/odin
94c593a98a0dc68c12f3062edbff34e7da5c4d8a
[ "Apache-2.0" ]
5
2020-12-15T19:09:00.000Z
2021-04-21T20:40:38.000Z
"""Client to create or update odin user""" import argparse import os import json import signal import requests from prompt_toolkit import prompt from muninn import ODIN_URL, ODIN_PORT, ODIN_SCHEME, ODIN_API_LOGGER from muninn.auth import get_jwt_token def create_user_http(url: str, jwt_token: str, username: str, pass...
40
124
0.667391
0
0
0
0
0
0
0
0
1,228
0.333696
85ab4c1f01496489252f35724adcec43beaaa302
67
py
Python
python/testData/quickFixes/PyAddImportQuickFixTest/globalDefinitionDoesNotShadowCommonPackageAliasVariant/main.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/quickFixes/PyAddImportQuickFixTest/globalDefinitionDoesNotShadowCommonPackageAliasVariant/main.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/quickFixes/PyAddImportQuickFixTest/globalDefinitionDoesNotShadowCommonPackageAliasVariant/main.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
<error descr="Unresolved reference 'np'">n<caret>p</error>.ndarray
33.5
66
0.746269
0
0
0
0
0
0
0
0
27
0.402985
85abdadf7f6975446f101ad9487de12633ee5082
564
py
Python
settings.py
Zeebra38/Schedule_bot
903f7cde755940f226cf8077c2c35550d0291d51
[ "MIT" ]
null
null
null
settings.py
Zeebra38/Schedule_bot
903f7cde755940f226cf8077c2c35550d0291d51
[ "MIT" ]
null
null
null
settings.py
Zeebra38/Schedule_bot
903f7cde755940f226cf8077c2c35550d0291d51
[ "MIT" ]
null
null
null
from DataBase import Schedule weekdays_en = {'Monday': 'Понедельник', 'Tuesday': 'Вторник', 'Wednesday': 'Среда', 'Thursday': 'Четверг', 'Friday': 'Пятница', 'Saturday': 'Суббота', 'Sunday': 'Воскресенье'} weekdays_ru = {'Понеде...
31.333333
39
0.457447
0
0
0
0
0
0
0
0
376
0.557864
85ad9c028dfaf818420fafd7aefd545015dfdd94
70
py
Python
src/hello_world.py
jlanga/snakehooks
7ae3ece602a1470fba53e63a3695e35c5f62247d
[ "MIT" ]
1
2020-02-10T23:14:36.000Z
2020-02-10T23:14:36.000Z
src/hello_world.py
jlanga/snakehooks
7ae3ece602a1470fba53e63a3695e35c5f62247d
[ "MIT" ]
null
null
null
src/hello_world.py
jlanga/snakehooks
7ae3ece602a1470fba53e63a3695e35c5f62247d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Hello, world! """ print("Hello, World!")
8.75
22
0.585714
0
0
0
0
0
0
0
0
58
0.828571
85ae16702dcd86876f33eb76a9f4c0aef32a9b70
451
py
Python
app/migrations/0004_auto_20171221_0621.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
null
null
null
app/migrations/0004_auto_20171221_0621.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
6
2017-12-25T07:27:27.000Z
2018-01-17T18:59:04.000Z
app/migrations/0004_auto_20171221_0621.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
2
2017-12-21T04:36:56.000Z
2018-01-15T23:32:35.000Z
# Generated by Django 2.0 on 2017-12-21 06:21 import app.models from django.db import migrations import enumfields.fields class Migration(migrations.Migration): dependencies = [ ('app', '0003_player_token'), ] operations = [ migrations.AlterField( model_name='player', ...
21.47619
94
0.629712
325
0.720621
0
0
0
0
0
0
83
0.184035
85b14c976895976f7613389ae5b2fd3070acf95a
789
py
Python
reporting-plugins/add-to-xml-note/edit-note.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
2
2018-04-20T15:48:02.000Z
2021-11-30T17:39:28.000Z
reporting-plugins/add-to-xml-note/edit-note.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
41
2017-07-19T11:17:26.000Z
2021-09-28T12:10:49.000Z
reporting-plugins/add-to-xml-note/edit-note.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
2
2017-04-27T10:32:33.000Z
2018-02-20T09:26:12.000Z
def wrap(element, input): return "<"+element+">"+input+"</"+element+">\n" def process(tr, parameters, tableBuilder): id = parameters.get("id") idtype = len(id.split("/")) #sample if(idtype == 3): entity = tr.getSampleForUpdate(id) #experiment else: entity = tr.getExperimentForUpdate(id) user = ...
25.451613
73
0.6109
0
0
0
0
0
0
0
0
162
0.205323
85b1d6a22c0d0090a75d779c87cff9038cdd496d
994
py
Python
core/main.py
rafael-junio/JustAChip8PythonEmulator
ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7
[ "MIT" ]
null
null
null
core/main.py
rafael-junio/JustAChip8PythonEmulator
ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7
[ "MIT" ]
null
null
null
core/main.py
rafael-junio/JustAChip8PythonEmulator
ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7
[ "MIT" ]
null
null
null
from core.cpu.instructions import Cpu from core.cpu.config.memory_starter import MemoryStarter from core.cpu.config.memory_config import Config from core.reader.file_reader import FileReader class Main: def __init__(self): self.chip8_cpu = Cpu() self.memory_management = MemoryStarter(self.chip8_c...
38.230769
95
0.71328
800
0.804829
0
0
0
0
0
0
0
0
85b65c485dd500cc66bdbb6dadc0a74ee700639d
2,179
py
Python
Bot/src/unclassified/motivation.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
181
2021-05-26T17:37:40.000Z
2022-02-26T08:36:07.000Z
Bot/src/unclassified/motivation.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
24
2021-05-14T19:47:34.000Z
2021-09-06T17:16:17.000Z
Bot/src/unclassified/motivation.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
16
2021-07-02T09:40:56.000Z
2022-01-21T10:07:08.000Z
# !/usr/bin/python """ Copyright ©️: 2020 Seniatical / _-*™#7519 License: Apache 2.0 A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under ...
35.721311
114
0.658559
1,280
0.586081
0
0
828
0.379121
565
0.2587
749
0.342949
85b702a0495ec20a4916f8eef85a4c0805c48829
1,882
py
Python
curami/analysis/pair_matching_word_base.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
null
null
null
curami/analysis/pair_matching_word_base.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
2
2020-07-02T13:56:03.000Z
2021-06-01T23:51:49.000Z
curami/analysis/pair_matching_word_base.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
null
null
null
import pandas as pd from nltk.stem import LancasterStemmer, WordNetLemmatizer from nltk.tokenize import sent_tokenize, word_tokenize from curami.commons import file_utils ''' Match pair of attributes for their base form similarity Generates matched attribute file by measuring the syntactic similarity between the base...
37.64
115
0.655154
0
0
0
0
0
0
0
0
439
0.233262
85b977a716a0ab42b9f5ac5d7528fcff4dd7ef93
7,154
py
Python
knee/zmethod.py
mariolpantunes/knee
fa4678a55f1f2d161f982b8214541cf8f392444d
[ "MIT" ]
2
2021-09-03T02:59:10.000Z
2021-12-28T16:32:28.000Z
knee/zmethod.py
mariolpantunes/knee
fa4678a55f1f2d161f982b8214541cf8f392444d
[ "MIT" ]
9
2021-06-05T08:10:30.000Z
2022-01-05T20:50:32.000Z
knee/zmethod.py
mariolpantunes/knee
fa4678a55f1f2d161f982b8214541cf8f392444d
[ "MIT" ]
4
2020-12-04T07:04:34.000Z
2021-09-03T02:59:19.000Z
# coding: utf-8 __author__ = 'Tyler Estro' __version__ = '0.1' __email__ = 'testro@cs.stonybrook.edu' __status__ = 'Development' import numpy as np import logging import uts.gradient as grad from uts.zscore import zscore_array logger = logging.getLogger(__name__) def map_index(a:np.ndarray, b:np.ndarray) -> np.n...
41.836257
146
0.588063
0
0
0
0
0
0
0
0
2,705
0.37811
85b9a2ded21bb7e26efb4522b699d759a2fe4d28
1,496
py
Python
services/logo_finder_service.py
fedsp/site2data
5e049c3b96875283bf854ece6796abfd44690954
[ "MIT" ]
null
null
null
services/logo_finder_service.py
fedsp/site2data
5e049c3b96875283bf854ece6796abfd44690954
[ "MIT" ]
null
null
null
services/logo_finder_service.py
fedsp/site2data
5e049c3b96875283bf854ece6796abfd44690954
[ "MIT" ]
null
null
null
from config import settings import re class LogoFinderService(): def __init__(self,soup_obj,website_url): self.soup_obj = soup_obj self.website_url = website_url self.scrapping_settings = settings['ScrappingSettings'] def find_logo(self) -> str: '''returns a list of scrapped lo...
42.742857
106
0.600936
1,457
0.97393
0
0
0
0
0
0
309
0.206551
85b9df7e5df2c3700d38f73b5d3eb34cddac9dcb
31
py
Python
schoolInfo/school/schedule/__init__.py
sunrabbit123/school-info_python
e2fbe928d6f024c6ec2f86b109833595dbdbb294
[ "MIT" ]
null
null
null
schoolInfo/school/schedule/__init__.py
sunrabbit123/school-info_python
e2fbe928d6f024c6ec2f86b109833595dbdbb294
[ "MIT" ]
1
2021-05-09T12:51:37.000Z
2021-05-17T14:36:23.000Z
schoolInfo/school/schedule/__init__.py
sunrabbit123/school-info_python
e2fbe928d6f024c6ec2f86b109833595dbdbb294
[ "MIT" ]
null
null
null
from .schedule import schedule
15.5
30
0.83871
0
0
0
0
0
0
0
0
0
0
85bbef976d587c77a873695fe486aefcf8beff7e
796
py
Python
spinbot/gh/util.py
rantav/spinnaker
98fb0c77db8fc723fd705ae6b663a8cbbd348fdb
[ "Apache-2.0" ]
null
null
null
spinbot/gh/util.py
rantav/spinnaker
98fb0c77db8fc723fd705ae6b663a8cbbd348fdb
[ "Apache-2.0" ]
null
null
null
spinbot/gh/util.py
rantav/spinnaker
98fb0c77db8fc723fd705ae6b663a8cbbd348fdb
[ "Apache-2.0" ]
1
2018-05-27T01:49:01.000Z
2018-05-27T01:49:01.000Z
import github def IssueRepo(issue): return '/'.join(issue.url.split('/')[-4:-2]) def HasLabel(issue, name): label = next((l for l in issue.get_labels() if l.name == name), None) return label is not None def AddLabel(gh, issue, name, create=True): if HasLabel(issue, name): return label = ...
26.533333
79
0.614322
0
0
0
0
0
0
0
0
102
0.128141
85bfa63cf750d27b3238fc7c2ff6bcedc1afabdf
915
py
Python
addBinary.py
cookie223/startingtocode
04371e60091074faea7965831797c08590d28b7b
[ "MIT" ]
null
null
null
addBinary.py
cookie223/startingtocode
04371e60091074faea7965831797c08590d28b7b
[ "MIT" ]
null
null
null
addBinary.py
cookie223/startingtocode
04371e60091074faea7965831797c08590d28b7b
[ "MIT" ]
null
null
null
import sys def addBinary(a, b): 'return bin(int(a,2)+int(b,2))[2:]' sumtemp = str(a + b) sumlist = [] for char in sumtemp: sumlist.append(int(char)) for i in range(1, len(sumtemp) + 1): if sumlist[-i] == 0 or sumlist[-i] == 1: pass else: if i + 1...
27.727273
56
0.401093
0
0
0
0
0
0
0
0
47
0.051366
85bfbd13cd57659c834b764ccdc661565f83c01a
3,820
py
Python
qp/composite.py
meshch/qp
4f19841769c644ffff3eff297cacf6aeb2ac2cbc
[ "MIT" ]
4
2016-12-06T17:51:45.000Z
2019-11-15T12:27:24.000Z
qp/composite.py
meshch/qp
4f19841769c644ffff3eff297cacf6aeb2ac2cbc
[ "MIT" ]
74
2016-11-15T22:11:56.000Z
2022-03-30T15:38:03.000Z
qp/composite.py
meshch/qp
4f19841769c644ffff3eff297cacf6aeb2ac2cbc
[ "MIT" ]
7
2017-04-04T19:46:21.000Z
2021-05-19T06:02:07.000Z
import numpy as np import scipy as sp from scipy import stats as sps import scipy.optimize as op import qp class composite(object): def __init__(self, components, vb=True): """ A probability distribution that is a linear combination of scipy.stats.rv_continuous objects Parameters ...
29.612403
127
0.548953
3,710
0.971204
0
0
0
0
0
0
1,866
0.488482
85bfeb01c7c84ab97b4d582a2ab7af8b0450f27b
1,628
py
Python
test/PR_test/unit_test/layers/tensorflow/test_reflection_padding_2d.py
DwijayDS/fastestimator
9b288cb2bd870f971ec4cee09d0b3205e1316a94
[ "Apache-2.0" ]
57
2019-05-21T21:29:26.000Z
2022-02-23T05:55:21.000Z
test/PR_test/unit_test/layers/tensorflow/test_reflection_padding_2d.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
93
2019-05-23T18:36:07.000Z
2022-03-23T17:15:55.000Z
test/PR_test/unit_test/layers/tensorflow/test_reflection_padding_2d.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
47
2019-05-09T15:41:37.000Z
2022-03-26T17:00:08.000Z
# Copyright 2020 The FastEstimator 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 appl...
41.74359
109
0.59828
817
0.501843
0
0
0
0
0
0
678
0.416462
85c403c65750bffb34aefa6e46026cbba51be791
533
py
Python
Aulas python downloads/ex064.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
Aulas python downloads/ex064.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
Aulas python downloads/ex064.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
'''Crie um programa que leia vários números inteiros pelo teclado. O programa só vai parar quando o usuário digitar o valor 999, que é a condição de parada. No final, mostre quantos números foram digitados e qual foi a soma entre eles (desconsiderando o flag). ''' print("Descubra a senha!") n = cont = soma = 0 n = in...
29.611111
85
0.677298
0
0
0
0
0
0
0
0
392
0.723247
85c7629ca49636fd14fc87cd2974bfba376afb41
1,112
py
Python
setup.py
kritarthh/str2port
f211cfeb198ea0600854dbd3c7a8322990630834
[ "MIT" ]
null
null
null
setup.py
kritarthh/str2port
f211cfeb198ea0600854dbd3c7a8322990630834
[ "MIT" ]
null
null
null
setup.py
kritarthh/str2port
f211cfeb198ea0600854dbd3c7a8322990630834
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # DO NOT EDIT THIS FILE! # This file has been autogenerated by dephell <3 # https://github.com/dephell/dephell try: from setuptools import setup except ImportError: from distutils.core import setup import os.path readme = '' here = os.path.abspath(os.path.dirname(__file__)) readme_...
27.8
116
0.672662
0
0
0
0
0
0
0
0
506
0.455036
85c915507f3f5e1f99596a07fded244aa05bc0b3
516
py
Python
mysite/user/urls.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
mysite/user/urls.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
mysite/user/urls.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^login/$', views.login, name='login'), url(r'^logout/$', views.logout, name='logout'), url(r'^update/$', views.update, name='update'), url(r'^update-password/$', views.update_password,...
34.4
78
0.633721
0
0
0
0
0
0
0
0
175
0.339147
85c96475a78d9a740c71a10454b02129b261a89c
3,564
py
Python
tests/test_model.py
yukinagae/pymc4
39b0fecdaf12753c4ae8cae69d4b282c70cc0a54
[ "Apache-2.0" ]
7
2018-12-17T08:38:46.000Z
2020-02-07T21:28:21.000Z
tests/test_model.py
yukinagae/pymc4
39b0fecdaf12753c4ae8cae69d4b282c70cc0a54
[ "Apache-2.0" ]
null
null
null
tests/test_model.py
yukinagae/pymc4
39b0fecdaf12753c4ae8cae69d4b282c70cc0a54
[ "Apache-2.0" ]
2
2018-12-17T06:54:21.000Z
2018-12-21T21:45:40.000Z
from tensorflow_probability import edward2 as ed import tensorflow as tf import pytest import pymc4 as pm from pymc4.model.base import Config # pylint: disable=unused-variable, unused-argument # pylint: disable-msg=E0102 def test_model_definition_type1(): model = pm.Model(name="testName") @model.define d...
22.556962
86
0.645342
0
0
0
0
1,211
0.339787
0
0
401
0.112514
a40f6ef49b65b50190c5c179cd273379d51e94de
1,285
py
Python
test/conftest.py
starcraftman/new-awesome
59f779e2aa0b1aab2eca2aaf351f789f2833c4a9
[ "BSD-3-Clause" ]
6
2016-03-09T04:17:42.000Z
2020-03-02T18:46:28.000Z
test/conftest.py
starcraftman/new-awesome
59f779e2aa0b1aab2eca2aaf351f789f2833c4a9
[ "BSD-3-Clause" ]
null
null
null
test/conftest.py
starcraftman/new-awesome
59f779e2aa0b1aab2eca2aaf351f789f2833c4a9
[ "BSD-3-Clause" ]
null
null
null
""" Global fixtures to be reused. """ from __future__ import absolute_import import sys import mock import pytest import test.common as tc @pytest.fixture(scope='session', autouse=True) def setup_test_bed(request): """ Fixture sets up the testing environment for this web application. Session scope, exec...
21.779661
69
0.659144
0
0
570
0.44358
887
0.690272
0
0
603
0.469261