hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a06632565659f460636962a713d03adfd790204
3,680
py
Python
noise2seg/tests/test_n2v_utils.py
juglab/VoidSeg_cluster
71339f9bdd6df9feb26fa197d5dfc390c371910c
[ "BSD-2-Clause" ]
1
2020-03-12T14:00:15.000Z
2020-03-12T14:00:15.000Z
noise2seg/tests/test_n2v_utils.py
juglab/VoidSeg_cluster
71339f9bdd6df9feb26fa197d5dfc390c371910c
[ "BSD-2-Clause" ]
null
null
null
noise2seg/tests/test_n2v_utils.py
juglab/VoidSeg_cluster
71339f9bdd6df9feb26fa197d5dfc390c371910c
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from csbdeep.utils import n2v_utils def test_get_subpatch(): patch = np.arange(100) patch.shape = (10,10) subpatch_target = np.array([[11, 12, 13, 14, 15], [21, 22, 23, 24, 25], [31, 32, 33, 34, 35], ...
24.052288
67
0.53913
4a0663892e022226cd63d78814286ac7a95ad8d9
643
py
Python
Seth/Grades/tasks.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
1
2020-08-09T01:26:31.000Z
2020-08-09T01:26:31.000Z
Seth/Grades/tasks.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
17
2017-11-15T10:06:02.000Z
2019-02-13T15:32:41.000Z
Seth/Grades/tasks.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
null
null
null
from celery.utils.log import get_task_logger from django.core.mail import send_mail # from mailing.mail import send_email from Grades.models import Person from Seth.celery import app logger = get_task_logger(__name__) @app.task() def send_grade_email_task(students, subject, message, domain): logger.info("Sent gr...
26.791667
78
0.699844
4a06639b8276e1b63a1f324c5dafe28ac8a5bcbd
2,545
py
Python
_unittest/test_Setup.py
Zwl20085/PyAEDT-Motor
e50de4d96210c32f23647138421aa86f0d9ce554
[ "MIT" ]
null
null
null
_unittest/test_Setup.py
Zwl20085/PyAEDT-Motor
e50de4d96210c32f23647138421aa86f0d9ce554
[ "MIT" ]
null
null
null
_unittest/test_Setup.py
Zwl20085/PyAEDT-Motor
e50de4d96210c32f23647138421aa86f0d9ce554
[ "MIT" ]
null
null
null
# standard imports import os # Setup paths for module imports from _unittest.conftest import local_path, scratch_path # Import required modules from pyaedt import Hfss, Circuit from pyaedt.generic.filesystem import Scratch import gc test_project_name = "coax_setup" class TestClass: def setup_class(self): ...
39.153846
118
0.647151
4a066416a6ab121b7960fedb53935dcdd3b8d068
1,138
py
Python
tests/test_validate_response_dataclass.py
patrickmckenna/fastapi
9c3c9b6e78768374868d690bc05918d58481e880
[ "MIT" ]
2
2020-11-01T00:04:05.000Z
2021-07-21T06:32:20.000Z
tests/test_validate_response_dataclass.py
patrickmckenna/fastapi
9c3c9b6e78768374868d690bc05918d58481e880
[ "MIT" ]
1
2019-11-02T22:03:59.000Z
2019-11-02T22:03:59.000Z
tests/test_validate_response_dataclass.py
patrickmckenna/fastapi
9c3c9b6e78768374868d690bc05918d58481e880
[ "MIT" ]
1
2020-12-19T18:01:20.000Z
2020-12-19T18:01:20.000Z
from typing import List import pytest from fastapi import FastAPI from pydantic import ValidationError from pydantic.dataclasses import dataclass from starlette.testclient import TestClient app = FastAPI() @dataclass class Item: name: str price: float = None owner_ids: List[int] = None @app.get("/item...
21.074074
82
0.669596
4a0664e4c5d08496a626fd08fec61ec53f4895cb
1,844
py
Python
venv/lib/python3.6/site-packages/ansible_collections/ansible/netcommon/plugins/modules/net_vlan.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
.ansible/collections/ansible_collections/ansible/netcommon/plugins/modules/net_vlan.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
.ansible/collections/ansible_collections/ansible/netcommon/plugins/modules/net_vlan.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: net_vlan author: Ricardo Carri...
23.05
93
0.715835
4a0664e6f8c1d724d0016de0e443556a788e71f5
1,109
py
Python
schoolport/users/migrations/0003_auto_20210408_1548.py
yotink522/schoolport
c6cfd0230ca05fb44f77c2f27c7e200828547bd5
[ "MIT" ]
null
null
null
schoolport/users/migrations/0003_auto_20210408_1548.py
yotink522/schoolport
c6cfd0230ca05fb44f77c2f27c7e200828547bd5
[ "MIT" ]
null
null
null
schoolport/users/migrations/0003_auto_20210408_1548.py
yotink522/schoolport
c6cfd0230ca05fb44f77c2f27c7e200828547bd5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-08 07:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20210407_2014'), ] operations = [ migrations.AlterModelManagers( name='user', managers=[ ...
25.790698
87
0.534716
4a0665347f94cb86b22aedf285d2af620027fe9f
5,811
py
Python
src/robot/libdocpkg/htmlwriter.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
7
2015-02-25T10:55:02.000Z
2015-11-04T03:20:05.000Z
src/robot/libdocpkg/htmlwriter.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
12
2015-02-24T17:00:06.000Z
2015-07-31T08:32:07.000Z
src/robot/libdocpkg/htmlwriter.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
2
2015-12-15T11:00:35.000Z
2018-02-24T18:11:24.000Z
# Copyright 2008-2015 Nokia Solutions and Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
35.650307
86
0.6307
4a0665365d92f89ec8eb6b8c0a509bb0a6d05d62
3,945
py
Python
src/main/python/previewr/server.py
raphiz/previewr
a649469c46eae87721ed147a9cdd9234edcefc09
[ "MIT" ]
null
null
null
src/main/python/previewr/server.py
raphiz/previewr
a649469c46eae87721ed147a9cdd9234edcefc09
[ "MIT" ]
2
2015-03-11T18:16:55.000Z
2015-03-12T07:12:46.000Z
src/main/python/previewr/server.py
raphiz/previewr
a649469c46eae87721ed147a9cdd9234edcefc09
[ "MIT" ]
null
null
null
from previewr.utils import * from previewr.processors import * from tornado.web import StaticFileHandler import logging import os.path import tornado.escape import tornado.ioloop import tornado.options import tornado.web import tornado.websocket from tornado.options import options class Application(tornado.web.Appl...
29.886364
81
0.632446
4a06661c33a2389a29c1b3a2e88aa7f1172f6c62
786
py
Python
app/utils.py
pybrgr/cvrp-poc
ae2a2bd23c3cfc602a4e7b66ede2384d4c454bb9
[ "MIT" ]
null
null
null
app/utils.py
pybrgr/cvrp-poc
ae2a2bd23c3cfc602a4e7b66ede2384d4c454bb9
[ "MIT" ]
null
null
null
app/utils.py
pybrgr/cvrp-poc
ae2a2bd23c3cfc602a4e7b66ede2384d4c454bb9
[ "MIT" ]
null
null
null
from flask import url_for as _url_for, current_app, _request_ctx_stack import time import os root_dir = os.path.dirname(os.path.abspath(__file__)) def timestamp(): """Return the current timestamp as an integer.""" return int(time.time()) def url_for(*args, **kwargs): """ url_for replacement that work...
31.44
73
0.651399
4a0666ce711a29347be7d33d362487398d5efb0c
2,602
py
Python
master-node-docker/sentinel/eth/erc20.py
baymax19/Sentinel
69b95171fa7aa911ea918f79954a9d3a66bf00a5
[ "MIT" ]
null
null
null
master-node-docker/sentinel/eth/erc20.py
baymax19/Sentinel
69b95171fa7aa911ea918f79954a9d3a66bf00a5
[ "MIT" ]
null
null
null
master-node-docker/sentinel/eth/erc20.py
baymax19/Sentinel
69b95171fa7aa911ea918f79954a9d3a66bf00a5
[ "MIT" ]
null
null
null
# coding=utf-8 import rlp from ethereum.transactions import Transaction from .eth import eth_manager from ..config import MAIN_TOKENS from ..config import MAX_TX_TRY from ..config import RINKEBY_TOKENS class ERC20Manager(object): def __init__(self, net, name, address, abi): self.net = net self.ad...
38.264706
116
0.537663
4a0667161f32b0dc4f2dc654b10f76265c556f16
3,415
py
Python
dr_twitter/dr_twitter/settings.py
squadran2003/dr_twitter
8fa8592a2f343853be47aa213c463a6d026cc96c
[ "MIT" ]
null
null
null
dr_twitter/dr_twitter/settings.py
squadran2003/dr_twitter
8fa8592a2f343853be47aa213c463a6d026cc96c
[ "MIT" ]
4
2021-06-08T21:50:45.000Z
2022-03-12T00:36:42.000Z
dr_twitter/dr_twitter/settings.py
squadran2003/dr_twitter
8fa8592a2f343853be47aa213c463a6d026cc96c
[ "MIT" ]
null
null
null
""" Django settings for dr_twitter project. Generated by 'django-admin startproject' using Django 2.1.7. 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...
24.392857
91
0.689605
4a06682d58f886c35d00da16aa257233c2ac3f4a
2,435
py
Python
python3/koans/about_tuples.py
abylgazievaalt/Koans
05d7c04915674b776a8b01f1231d29e8e34ec62b
[ "MIT" ]
null
null
null
python3/koans/about_tuples.py
abylgazievaalt/Koans
05d7c04915674b776a8b01f1231d29e8e34ec62b
[ "MIT" ]
null
null
null
python3/koans/about_tuples.py
abylgazievaalt/Koans
05d7c04915674b776a8b01f1231d29e8e34ec62b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutTuples(Koan): def test_creating_a_tuple(self): count_of_three = (1, 2, 5) self.assertEqual(5, count_of_three[2]) def test_tuples_are_immutable_so_item_assignment_is_not_possible(self): count_of_three ...
35.289855
91
0.6
4a066997e632350253901efe28400028c8604a17
1,214
py
Python
eva_storage/src/interface.py
jaehobang/Eva
e7f649990b8bca3bc29b3832c0ecf32efb402647
[ "Apache-2.0" ]
null
null
null
eva_storage/src/interface.py
jaehobang/Eva
e7f649990b8bca3bc29b3832c0ecf32efb402647
[ "Apache-2.0" ]
null
null
null
eva_storage/src/interface.py
jaehobang/Eva
e7f649990b8bca3bc29b3832c0ecf32efb402647
[ "Apache-2.0" ]
null
null
null
""" This file will serve as an interface of the API for users. TODO: We need to define the format of the database so that adapters for each dataset can be created @Jaeho Bang """ import abc #abstract class package class Interface(abc.ABC): @abc.abstractmethod def save_video(self, video_name, *options): ""...
26.977778
100
0.667216
4a0669a1ab0b57c785c79f200827c8b0eec9617d
8,014
py
Python
Tools/scripts/mailerdaemon.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
5
2022-03-26T21:53:36.000Z
2022-03-30T21:47:20.000Z
Tools/scripts/mailerdaemon.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
6
2020-11-18T15:48:14.000Z
2021-05-03T21:20:50.000Z
Tools/scripts/mailerdaemon.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
2
2015-07-16T08:14:13.000Z
2022-03-27T01:55:17.000Z
"""mailerdaemon - classes to parse mailer-daemon messages""" import string import rfc822 import calendar import re import os import sys Unparseable = 'mailerdaemon.Unparseable' class ErrorMessage(rfc822.Message): def __init__(self, fp): rfc822.Message.__init__(self, fp) self.sub = '' def is_...
33.531381
110
0.523584
4a0669acd902c76a77d49a47da8f099411b93b70
6,538
py
Python
notebooks/main.py
lgblkb/nu_abda
59174f17037fdfae870e2bf1fea6a8f70c8c78b8
[ "MIT" ]
null
null
null
notebooks/main.py
lgblkb/nu_abda
59174f17037fdfae870e2bf1fea6a8f70c8c78b8
[ "MIT" ]
2
2021-06-08T21:26:27.000Z
2021-09-08T01:58:42.000Z
notebooks/main.py
lgblkb/nu_abda
59174f17037fdfae870e2bf1fea6a8f70c8c78b8
[ "MIT" ]
null
null
null
import more_itertools as mit import os from functools import partial import numpy as np import pandas as pd import torch import torch.nn as nn import wandb from box import Box from lgblkb_tools import logger from lgblkb_tools.visualize import Plotter from torch import optim from torch.optim.lr_scheduler import ReduceL...
33.187817
112
0.631233
4a0669d1d2b660eb74870dae881f53e1dad326ff
791
py
Python
Python/leetcode.098.validate-binary-search-tree.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
Python/leetcode.098.validate-binary-search-tree.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
Python/leetcode.098.validate-binary-search-tree.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def isValidBST(self, root): """ :type root: TreeNode :rtype: bool """ path = [roo...
27.275862
57
0.419722
4a066a2adb5939368a79752e6ec2f882503e055b
5,060
py
Python
tests/unit/anchore_engine/services/policy_engine/engine/policy/gates/test_malware.py
ballad86/anchore-engine
51f784dbb697586083bce023e2e6a708a25f1797
[ "Apache-2.0" ]
1,484
2017-09-11T19:08:42.000Z
2022-03-29T07:47:44.000Z
tests/unit/anchore_engine/services/policy_engine/engine/policy/gates/test_malware.py
ballad86/anchore-engine
51f784dbb697586083bce023e2e6a708a25f1797
[ "Apache-2.0" ]
913
2017-09-27T20:37:53.000Z
2022-03-29T17:21:28.000Z
tests/unit/anchore_engine/services/policy_engine/engine/policy/gates/test_malware.py
PhoenixRedflash/anchore-engine
4192eba02bb91cf0eebebe32e8134b27b06feefe
[ "Apache-2.0" ]
294
2017-09-12T16:54:03.000Z
2022-03-14T01:28:51.000Z
import hashlib import pytest from anchore_engine.db.entities.policy_engine import AnalysisArtifact, Image from anchore_engine.services.policy_engine.engine.policy.gate import ExecutionContext from anchore_engine.services.policy_engine.engine.policy.gates import malware image_id = "1" user = "admin" digest = "1" sig...
29.418605
110
0.718379
4a066ad185e79cf8a6db60c82d8f2792b9c78c4e
1,788
py
Python
texthero/_helper.py
cedricconol/texthero
b73ef44911205cdb19b9b60c9d40eba54989c494
[ "MIT" ]
null
null
null
texthero/_helper.py
cedricconol/texthero
b73ef44911205cdb19b9b60c9d40eba54989c494
[ "MIT" ]
null
null
null
texthero/_helper.py
cedricconol/texthero
b73ef44911205cdb19b9b60c9d40eba54989c494
[ "MIT" ]
null
null
null
""" Useful helper functions for the texthero library. """ import functools import warnings """ Warnings. """ _warning_nans_in_input = ( "There are NaNs (missing values) in the given input series." " They were replaced with appropriate values before the function" " was applied. Consider using hero.fillna...
24.493151
77
0.600671
4a066b0a1f280851e1d4faed80bcd5579d295b41
1,310
py
Python
hard-gists/3023497/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/3023497/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/3023497/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
from Crypto.Cipher import AES from StringIO import StringIO from bplist import BPlistReader #https://github.com/farcaller/bplist-python import M2Crypto import gzip import struct def xor_strings(s, key): res = "" for i in xrange(len(s)): res += chr(ord(s[i]) ^ ord(key[i%len(key)])) return res d...
29.772727
75
0.651145
4a066bee1adf5c0d1ae9a75818fb93b29beb84e9
782
py
Python
network/migrations/0002_auto_20200708_2310.py
benccalcyxzfi/cs50w-network
d6a80acc0734f2ba73a5ca00efbae5b5d5dbfb45
[ "Apache-2.0" ]
4
2022-01-29T22:41:10.000Z
2022-02-16T13:48:43.000Z
network/migrations/0002_auto_20200708_2310.py
benccalcyxzfi/cs50w-network
d6a80acc0734f2ba73a5ca00efbae5b5d5dbfb45
[ "Apache-2.0" ]
1
2022-02-27T12:35:41.000Z
2022-02-27T12:35:41.000Z
network/migrations/0002_auto_20200708_2310.py
benccalcyxzfi/cs50w-network
d6a80acc0734f2ba73a5ca00efbae5b5d5dbfb45
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-09 02:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('network', '0001_initial'), ] operations = [ migrations.AddField( ...
26.965517
149
0.61509
4a066c9cdcdc9e16592afe3fae0058e9c528789a
842
py
Python
utility/cog/character/ability/list/_3_defend.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
4
2020-01-19T13:53:43.000Z
2020-01-20T13:34:17.000Z
utility/cog/character/ability/list/_3_defend.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
18
2020-01-19T17:52:17.000Z
2020-02-17T15:06:13.000Z
utility/cog/character/ability/list/_3_defend.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
1
2020-01-19T16:33:19.000Z
2020-01-19T16:33:19.000Z
""" Defend ability -- Author : DrLarck Last update : 04/03/20 (DrLarck) """ # dependancies import asyncio import random # util from utility.cog.character.ability.ability import Ability class Defend_3(Ability): """ Represents the defend ability """ def __init__(self, client, ctx, caster, target, t...
21.589744
75
0.640143
4a066d1b07120900c17d99f34da0959f93693453
6,363
py
Python
config/sentencepiece_model_loc.py
project-anuvaad/OpenNMT-py
267d097b9e90d59709fe1c26ea8b8e2c43c755c9
[ "MIT" ]
null
null
null
config/sentencepiece_model_loc.py
project-anuvaad/OpenNMT-py
267d097b9e90d59709fe1c26ea8b8e2c43c755c9
[ "MIT" ]
29
2019-07-18T10:21:57.000Z
2019-10-24T11:41:59.000Z
config/sentencepiece_model_loc.py
project-anuvaad/OpenNMT-py
267d097b9e90d59709fe1c26ea8b8e2c43c755c9
[ "MIT" ]
null
null
null
english_hindi = { "ENG_220519": "model/sentencepiece_models/en-220519.model", "HIN_220519": "model/sentencepiece_models/hi-220519.model", "ENG_EXP_1": "model/sentencepiece_models/en_exp-1-2019-10-01-15k.model", "HIN_EXP_1": "model/sentencepiece_models/hi_exp-1-2019-10-01-15k.model", "ENG_EXP_10": "m...
60.6
96
0.741788
4a066df761c4407e8cb6743a74cfe3e4dc6d8033
5,099
py
Python
test/test_statistic.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
4
2020-05-14T20:03:49.000Z
2020-05-22T19:56:43.000Z
test/test_statistic.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
19
2019-06-27T18:12:27.000Z
2020-04-28T13:28:03.000Z
test/test_statistic.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
null
null
null
from unittest import TestCase from hidrocomp.statistic.genextre import Gev from hidrocomp.statistic.genpareto import Gpa class TestGev(TestCase): data = [1347, 857, 1626, 977, 1065, 997, 502, 1663, 992, 1487, 1041, 2251, 1110, 1553, 1090, 1268, 1113, 1358, 402] dist = Gev(data=data) ...
42.140496
108
0.625221
4a066f21b29b45baed8164e97a08d684cc33d721
3,683
py
Python
src/backend/common/consts/ranking_sort_orders.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
src/backend/common/consts/ranking_sort_orders.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
src/backend/common/consts/ranking_sort_orders.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
from typing import Dict, List from backend.common.models.ranking_sort_order_info import RankingSortOrderInfo SORT_ORDER_INFO: Dict[int, List[RankingSortOrderInfo]] = { 2021: [ {"name": "Overall Score", "precision": 2}, {"name": "Galactic Search", "precision": 2}, {"name": "Auto-Nav", "prec...
34.745283
78
0.477328
4a066f9fdd74b01214faec0a64dfd89adfcf83b2
397
py
Python
projectGW2/projectGW2/wsgi.py
cs-fullstack-2019-fall/django-models-cw-chrisawill
e0672d8b71cd58bc5141612185a51c802306acd5
[ "Apache-2.0" ]
null
null
null
projectGW2/projectGW2/wsgi.py
cs-fullstack-2019-fall/django-models-cw-chrisawill
e0672d8b71cd58bc5141612185a51c802306acd5
[ "Apache-2.0" ]
null
null
null
projectGW2/projectGW2/wsgi.py
cs-fullstack-2019-fall/django-models-cw-chrisawill
e0672d8b71cd58bc5141612185a51c802306acd5
[ "Apache-2.0" ]
null
null
null
""" WSGI config for projectGW2 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.790932
4a066fa1a941cfe2554d1acfaafc12693189bad1
27,257
py
Python
PyNite/FEModel3D.py
JBloss1517/PyNite
b0cf8fa503f49a35337ec48699d16da78e7b7e52
[ "MIT" ]
null
null
null
PyNite/FEModel3D.py
JBloss1517/PyNite
b0cf8fa503f49a35337ec48699d16da78e7b7e52
[ "MIT" ]
null
null
null
PyNite/FEModel3D.py
JBloss1517/PyNite
b0cf8fa503f49a35337ec48699d16da78e7b7e52
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 9 21:11:20 2017 @author: D. Craig Brinck, SE """ # %% from numpy import zeros, delete, insert, matmul, subtract from numpy.linalg import inv, matrix_rank from PyNite.Node3D import Node3D from PyNite.Member3D import Member3D # %% class FEModel3D(): """ ...
38.662411
194
0.501339
4a066fe471211673b684c0bfaee91c126888c9fd
771
py
Python
app.py
UstymHanyk/TwitterFriendMap
880dca8a944884673cc770989723fde52ddb4af1
[ "MIT" ]
null
null
null
app.py
UstymHanyk/TwitterFriendMap
880dca8a944884673cc770989723fde52ddb4af1
[ "MIT" ]
null
null
null
app.py
UstymHanyk/TwitterFriendMap
880dca8a944884673cc770989723fde52ddb4af1
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from friend_searcher import friends_geolocator, get_user_friends from map_generator import generate_map, group_duplicates app = Flask(__name__) @app.route("/") def index(): return render_template("index.html") @app.route("/map_generation", methods=["POST"]) def wa...
36.714286
69
0.738003
4a06701222513009b80782871bc68b0d7d6a1727
2,756
py
Python
app/plugins/Plugin.py
superadm1n/FlaskTemplate
eeeadfeea3ffecd7b10cd9c23f0b5f64af1a89c8
[ "MIT" ]
null
null
null
app/plugins/Plugin.py
superadm1n/FlaskTemplate
eeeadfeea3ffecd7b10cd9c23f0b5f64af1a89c8
[ "MIT" ]
null
null
null
app/plugins/Plugin.py
superadm1n/FlaskTemplate
eeeadfeea3ffecd7b10cd9c23f0b5f64af1a89c8
[ "MIT" ]
null
null
null
from flask import Blueprint, abort from flask_login import current_user from functools import wraps class Plugin(Blueprint): ''' This class represents a plugin object, It should be used when extending the system via plugins ''' def __init__(self, access_roles=[], login_required=True, email_client=None,...
39.942029
115
0.63643
4a0670c08a23335e58862383974c0541e5628f55
840
py
Python
api/collaboration/migrations/0006_convert_null_to_empty.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
null
null
null
api/collaboration/migrations/0006_convert_null_to_empty.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
51
2018-05-31T12:16:31.000Z
2022-03-08T09:36:48.000Z
api/collaboration/migrations/0006_convert_null_to_empty.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
2
2019-12-24T09:47:42.000Z
2021-02-09T09:36:51.000Z
# Generated by Django 3.1.2 on 2020-11-05 17:15 from django.db import migrations def convert_null_to_empty(apps, schema_editor): TeamMember = apps.get_model("collaboration", "TeamMember") HistoricalTeamMember = apps.get_model("collaboration", "HistoricalTeamMember") fields = ( "archived_reason",...
25.454545
85
0.641667
4a06710e1c466288343fafc9a6d1a85ee4a70d9b
2,227
py
Python
packages/python-stable.py
zpcc/mpkg-pkgs
6f919c7ef0ce0dbee298bcb8328be0e9e65fc833
[ "Apache-2.0" ]
1
2020-12-16T14:15:12.000Z
2020-12-16T14:15:12.000Z
packages/python-stable.py
zpcc/mpkg-pkgs
6f919c7ef0ce0dbee298bcb8328be0e9e65fc833
[ "Apache-2.0" ]
null
null
null
packages/python-stable.py
zpcc/mpkg-pkgs
6f919c7ef0ce0dbee298bcb8328be0e9e65fc833
[ "Apache-2.0" ]
null
null
null
import re import time from lxml import etree from mpkg.common import Soft, soft_data from mpkg.utils import GetPage class Package(Soft): ID = 'python-stable' def _prepare(self): data = self.data url = 'https://www.python.org/ftp/python/' texts = list(etree.HTML(GetPage(url)).xpath('/...
46.395833
110
0.524921
4a06712b74daba5fe4943154aeccc9951832bc7e
2,739
py
Python
project/proc_2d_vars.py
boyuan276/numerical_weather
5d392ee951efd36a73b1a8019063db507ca4821c
[ "MIT" ]
1
2021-05-21T01:06:05.000Z
2021-05-21T01:06:05.000Z
project/proc_2d_vars.py
boyuan276/numerical_weather
5d392ee951efd36a73b1a8019063db507ca4821c
[ "MIT" ]
null
null
null
project/proc_2d_vars.py
boyuan276/numerical_weather
5d392ee951efd36a73b1a8019063db507ca4821c
[ "MIT" ]
null
null
null
''' Process selected 2d variables ''' import os import netCDF4 as nc import numpy as np import datetime import matplotlib.pyplot as plt import imageio # from matplotlib import animation from matplotlib.cm import get_cmap import cartopy.crs as crs from cartopy.feature import NaturalEarthFeature from wrf import (getvar,...
23.410256
90
0.691128
4a0671bb1eed473893a8d4e049bdc4f370a4dc13
6,214
py
Python
eda/logger.py
e5120/EDAs
acf86fa35182b8fe0cd913d6fb46280b2f9e6e46
[ "MIT" ]
3
2021-01-15T08:35:32.000Z
2021-04-09T08:03:35.000Z
eda/logger.py
e5120/EDAs
acf86fa35182b8fe0cd913d6fb46280b2f9e6e46
[ "MIT" ]
null
null
null
eda/logger.py
e5120/EDAs
acf86fa35182b8fe0cd913d6fb46280b2f9e6e46
[ "MIT" ]
3
2021-04-27T06:36:33.000Z
2022-02-14T14:13:08.000Z
import os import csv import json import logging import datetime from collections import OrderedDict from types import MappingProxyType import numpy as np logging.basicConfig(level=logging.INFO, format="[%(asctime)s %(levelname)s] %(message)s") class Logger(object): """ A class to log a o...
31.704082
105
0.537657
4a0671ee1ddfcaa48a6a94b12999ebd8638b93c9
760
py
Python
redis_test.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
redis_test.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
redis_test.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
import CralwerSet.connect_mysql as connect_mysql import time import json classify = 2 info = '付製这行话¥daxi1oVNWaF¥转移至淘宀┡ē【不会自行车的我,不想买贵的大的电动车,怕学不会,就入手了希洛普的电动滑板车,车子价位从1K多起步】;或https://m.tb.cn/h.VjtdO5K?sm=4d4548 點击链街,再选择瀏..覽..噐dakai' temp = str(int(time.time() * 1000)) r = connect_mysql.Redis() key = temp + '|' + str(class...
27.142857
142
0.627632
4a0672d1f7c5c28fc659e5c3ad6effd8f09b4e70
8,513
py
Python
tfx/dsl/component/experimental/decorators_test.py
krystollia/tfx
a2a3a530368b34de33350953af8ba7894c1e6fe8
[ "Apache-2.0" ]
null
null
null
tfx/dsl/component/experimental/decorators_test.py
krystollia/tfx
a2a3a530368b34de33350953af8ba7894c1e6fe8
[ "Apache-2.0" ]
null
null
null
tfx/dsl/component/experimental/decorators_test.py
krystollia/tfx
a2a3a530368b34de33350953af8ba7894c1e6fe8
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2020 Google LLC. 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 req...
34.889344
123
0.703042
4a0672d416f2e9f761a47ac742072b428090d313
1,631
py
Python
slack_post.py
aikiyy/tv_bot
696de526a77172a9bf4bd65a1977b9b196d8a15d
[ "MIT" ]
null
null
null
slack_post.py
aikiyy/tv_bot
696de526a77172a9bf4bd65a1977b9b196d8a15d
[ "MIT" ]
3
2021-03-31T19:20:44.000Z
2021-12-13T20:05:56.000Z
slack_post.py
aikiyy/tv_bot
696de526a77172a9bf4bd65a1977b9b196d8a15d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from slacker import Slacker from crawler import TvCrawler import os from optparse import OptionParser from datetime import date, datetime, timedelta def make_message(word, date, programs): message = datetime.strptime(date, '%Y%m%d').strftime('%Y/%m/%d') + ' ' + word + '\n' for title,...
30.773585
90
0.60699
4a0673ec687f181100f706cdfb90af6db0a213a0
2,377
py
Python
navrep/scripts/train_gym_e2e1dnavreptrainenv.py
Makuh17/navrep
bdc1f6102baa3dbb9aacb35387999b720d161aa8
[ "MIT" ]
48
2020-11-26T10:16:08.000Z
2022-03-24T15:22:08.000Z
navrep/scripts/train_gym_e2e1dnavreptrainenv.py
Makuh17/navrep
bdc1f6102baa3dbb9aacb35387999b720d161aa8
[ "MIT" ]
1
2021-12-14T02:08:18.000Z
2022-03-14T09:17:25.000Z
navrep/scripts/train_gym_e2e1dnavreptrainenv.py
Makuh17/navrep
bdc1f6102baa3dbb9aacb35387999b720d161aa8
[ "MIT" ]
18
2020-12-09T08:37:43.000Z
2022-03-30T06:56:38.000Z
from datetime import datetime import os from stable_baselines import PPO2 from stable_baselines.common.vec_env import SubprocVecEnv, DummyVecEnv from navrep.tools.custom_policy import Custom1DPolicy, ARCH, _C from navrep.envs.e2eenv import E2E1DNavRepEnv from navrep.tools.sb_eval_callback import NavrepEvalCallback fr...
35.477612
91
0.670172
4a067510cfb4c4d8b759a1fae38552ee923608b9
948
py
Python
ontology/logistic_regression/sherlock/write_listify_length.py
ehbeam/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
15
2020-07-17T07:10:26.000Z
2022-02-18T05:51:45.000Z
ontology/logistic_regression/sherlock/write_listify_length.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
2
2022-01-14T09:10:12.000Z
2022-01-28T17:32:42.000Z
ontology/logistic_regression/sherlock/write_listify_length.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
4
2021-12-22T13:27:32.000Z
2022-02-18T05:51:47.000Z
#!/usr/bin/python import os, shutil for k in range(2, 51): comm = "listify_length.optimize_list_len({})".format(k) pyfile = open("listify_length_k{:02d}.py".format(k), "w+") pyfile.write("#!/bin/python\n\nimport listify_length\n{}".format(comm)) pyfile.close() bashfile = open("listify_le...
37.92
75
0.563291
4a0675354499d2873d042d82f826e13dcc84870e
190
py
Python
cvat/__init__.py
ACHultman/cvat
01eaf362aa7e03f5623e80cb12ad0b9a429ae588
[ "Intel", "MIT" ]
3,142
2020-09-08T13:24:43.000Z
2022-03-31T23:53:50.000Z
cvat/__init__.py
ACHultman/cvat
01eaf362aa7e03f5623e80cb12ad0b9a429ae588
[ "Intel", "MIT" ]
2,049
2020-09-08T10:01:10.000Z
2022-03-31T19:08:15.000Z
cvat/__init__.py
ACHultman/cvat
01eaf362aa7e03f5623e80cb12ad0b9a429ae588
[ "Intel", "MIT" ]
1,055
2020-09-08T15:23:58.000Z
2022-03-31T10:52:48.000Z
# Copyright (C) 2018-2020 Intel Corporation # # SPDX-License-Identifier: MIT from cvat.utils.version import get_version VERSION = (2, 0, 0, 'alpha', 0) __version__ = get_version(VERSION)
19
43
0.736842
4a067599e110664a07bf20bf4264729bed9861ee
101,907
py
Python
src/transformers/utils/dummy_pt_objects.py
studytutorials/transformers
27b1516d32b691533fc497e7ee4ceb88c39cdfdf
[ "Apache-2.0" ]
2
2022-01-11T19:17:40.000Z
2022-01-11T19:49:48.000Z
src/transformers/utils/dummy_pt_objects.py
feifeivv/transformers
08a5f57567d8a975d900b66658bfd3c28c9dbec5
[ "Apache-2.0" ]
1
2021-11-08T18:16:52.000Z
2021-11-08T18:49:59.000Z
src/transformers/utils/dummy_pt_objects.py
feifeivv/transformers
08a5f57567d8a975d900b66658bfd3c28c9dbec5
[ "Apache-2.0" ]
2
2021-02-18T03:12:51.000Z
2021-04-16T13:16:58.000Z
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_backends class PyTorchBenchmark: def __init__(self, *args, **kwargs): requires_backends(self, ["torch"]) class PyTorchBenchmarkArguments: def __init__(self, *args, **kwargs): require...
24.182962
84
0.665312
4a06759a09bb8cc22d51a37b650164ab3526f167
130
py
Python
thirdparty/__init__.py
t0w4r/phcat
1b0f4e0fce4279ea7582a83f13eadcd9595ef319
[ "Apache-2.0" ]
null
null
null
thirdparty/__init__.py
t0w4r/phcat
1b0f4e0fce4279ea7582a83f13eadcd9595ef319
[ "Apache-2.0" ]
null
null
null
thirdparty/__init__.py
t0w4r/phcat
1b0f4e0fce4279ea7582a83f13eadcd9595ef319
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'wh1t3P1g' __date__ = '2018/5/24' if __name__ == '__main__': pass
16.25
26
0.615385
4a0675a6b104b58f9430d7bdea5e2a63dcc424da
19,382
py
Python
reactive/containerd.py
mastier/charm-containerd
a1fa72351f8e14693e179997c1ede16f51410974
[ "Apache-2.0" ]
null
null
null
reactive/containerd.py
mastier/charm-containerd
a1fa72351f8e14693e179997c1ede16f51410974
[ "Apache-2.0" ]
null
null
null
reactive/containerd.py
mastier/charm-containerd
a1fa72351f8e14693e179997c1ede16f51410974
[ "Apache-2.0" ]
null
null
null
import os import base64 import binascii import json import requests import traceback from subprocess import ( check_call, check_output, CalledProcessError ) from charms.reactive import ( hook, when, when_not, set_state, is_state, remove_state, endpoint_from_flag ) from charms....
27.609687
112
0.648488
4a06765620b5d2dc99fc081f9df4a37efe8fe281
34,227
py
Python
test/run_tests.py
inpolonsky/rrtmgp_topography
f3038e2649e2dce20ebb490b975ccfef174f9e99
[ "BSD-3-Clause" ]
null
null
null
test/run_tests.py
inpolonsky/rrtmgp_topography
f3038e2649e2dce20ebb490b975ccfef174f9e99
[ "BSD-3-Clause" ]
null
null
null
test/run_tests.py
inpolonsky/rrtmgp_topography
f3038e2649e2dce20ebb490b975ccfef174f9e99
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # make sure print behaves the same in 2.7 and 3.x from __future__ import print_function import os, sys, shutil, errno import subprocess as sub if sys.version_info[0] < 3: import ConfigParser else: import configparser as ConfigParser # package netCDF4 (https://github.com/Unidata/netcdf4-...
32.910577
102
0.663219
4a0676e57c166da8873a1baf8e682616c3e93e25
1,793
py
Python
tldry/stopwords/english.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
2
2019-04-01T09:39:54.000Z
2019-05-17T19:24:39.000Z
tldry/stopwords/english.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
null
null
null
tldry/stopwords/english.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
1
2021-02-03T14:00:43.000Z
2021-02-03T14:00:43.000Z
stopwords = { 'a', 'about', 'above', 'after', 'again', 'against', 'all', 'am', 'an', 'and', 'any', 'are', 'aren', 'as', 'at', 'be', 'because', 'been', 'before', 'being', 'below', 'between', 'both', 'but', 'by', 'can'...
11.796053
17
0.331288
4a067904f4ed4c1bbcb09a96ee95866d3d98ee60
2,053
py
Python
services/processes/processes/dependencies/node_parser.py
bgoesswein/implementation_backend
546018eb5dba79b823e3cfb20472271e02045789
[ "Apache-2.0" ]
null
null
null
services/processes/processes/dependencies/node_parser.py
bgoesswein/implementation_backend
546018eb5dba79b823e3cfb20472271e02045789
[ "Apache-2.0" ]
5
2021-02-08T20:29:22.000Z
2022-03-11T23:44:17.000Z
services/processes/processes/dependencies/node_parser.py
bgoesswe/implementation_backend
546018eb5dba79b823e3cfb20472271e02045789
[ "Apache-2.0" ]
null
null
null
from nameko.extensions import DependencyProvider class NodesWrapper: def __init__(self): self.nodes = [] self.filters = { "data_id": None, "time": None, "bands": None, "extent": None, "derived_from": None, "license": None, ...
31.584615
80
0.570385
4a067a501068ac7ed0725b3138fb2df459554bf8
317
py
Python
src/ggrc/utils/custom_dict.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
src/ggrc/utils/custom_dict.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/utils/custom_dict.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Module contains customized dictionaries """ from UserDict import UserDict class MissingKeyDict(UserDict): """Dictionary return missing key as value""" def __missing__(self, key): return key
24.384615
78
0.741325
4a067a60bfc91ce9fbf2c0335e4959490805311a
4,232
py
Python
neural_networks/layers/masking.py
faustusdotbe/lmtc-eurlex57k
98ecf84371b453abacc429c54bf2d0a24de0d61e
[ "Apache-2.0" ]
77
2019-06-09T06:24:57.000Z
2022-03-25T18:04:43.000Z
neural_networks/layers/masking.py
faustusdotbe/lmtc-eurlex57k
98ecf84371b453abacc429c54bf2d0a24de0d61e
[ "Apache-2.0" ]
12
2019-09-27T21:53:53.000Z
2021-08-25T15:53:12.000Z
neural_networks/layers/masking.py
faustusdotbe/lmtc-eurlex57k
98ecf84371b453abacc429c54bf2d0a24de0d61e
[ "Apache-2.0" ]
11
2020-02-15T09:28:13.000Z
2021-12-14T06:32:15.000Z
# -*- coding: utf-8 -*- """Core Keras layers. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer class SymmetricMasking(Layer): """Masks a sequence by using a mask va...
34.975207
90
0.645321
4a067ae1291f419fcf4391c0aa05b350e1dfd7b2
1,240
py
Python
tests/tensorflow/test_tensorflow2_metric_value_conversion_utils.py
r3stl355/mlflow
816e035786245ff42723b9c53eb9407885e7cd75
[ "Apache-2.0" ]
null
null
null
tests/tensorflow/test_tensorflow2_metric_value_conversion_utils.py
r3stl355/mlflow
816e035786245ff42723b9c53eb9407885e7cd75
[ "Apache-2.0" ]
null
null
null
tests/tensorflow/test_tensorflow2_metric_value_conversion_utils.py
r3stl355/mlflow
816e035786245ff42723b9c53eb9407885e7cd75
[ "Apache-2.0" ]
null
null
null
import pytest import mlflow from mlflow import tracking from mlflow.tracking.fluent import start_run from mlflow.exceptions import MlflowException, INVALID_PARAMETER_VALUE, ErrorCode from mlflow.tracking.metric_value_conversion_utils import convert_metric_value_to_float_if_possible import tensorflow as tf def test_...
35.428571
99
0.793548
4a067cbc36c8e0d26e97a239b2e697fdd933d7b8
1,961
py
Python
gameDefine.py
moonmagian/PyRummikub
aa1f265bb410a6b0150eec8e21d18803c4ef6fd5
[ "MIT" ]
1
2018-08-31T07:34:07.000Z
2018-08-31T07:34:07.000Z
gameDefine.py
moonmagian/PyRummikub
aa1f265bb410a6b0150eec8e21d18803c4ef6fd5
[ "MIT" ]
null
null
null
gameDefine.py
moonmagian/PyRummikub
aa1f265bb410a6b0150eec8e21d18803c4ef6fd5
[ "MIT" ]
null
null
null
from enum import Enum DEBUG = True class Color(Enum): BLUE = 1 RED = 2 BLACK = 3 YELLOW = 4 GHOST = 5 class Error(Enum): success = 0 cardNotFound = 1 notValidCardSeq = 2 notValidDataType = 3 class Card: cid = -1 def __init__(self, color : Color, point : int): self.col...
30.640625
111
0.609893
4a067f5b60b998dc643a40393d90306578563627
556
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/qr-code-scanner-app-32359
25a52acab55a3075c15ac8d29f518b429279f416
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/qr-code-scanner-app-32359
25a52acab55a3075c15ac8d29f518b429279f416
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/qr-code-scanner-app-32359
25a52acab55a3075c15ac8d29f518b429279f416
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "qr-code-scanner-app-32359.botics.co" site_params = { "name": "QR code scanner app", } if custom_domain: site_params["domain"] = custom_domain Site.ob...
21.384615
61
0.658273
4a06809c4542f99bcc78dc51d9e34e3dc0d6ac81
1,901
py
Python
ch06/weight_init_compare.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
ch06/weight_init_compare.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
ch06/weight_init_compare.py
KevinCarpricorn/Code
8d0164f5b28f937e8891854f86e1a9b584122b48
[ "MIT" ]
null
null
null
# coding: utf-8 import os import sys sys.path.append(os.pardir) # 为了导入父目录的文件而进行的设定 import numpy as np import matplotlib.pyplot as plt from dataset.mnist import load_mnist from common.util import smooth_curve from common.multi_layer_net import MultiLayerNet from common.optimizer import SGD # 0:读入MNIST数据...
30.174603
94
0.627564
4a0681a98c05a48572207701f3979980ff9e8dea
948
py
Python
testScenarios.py
Neomania/BeeSimulation
2d003085941d9f44d0f07a2a5dbb45f0103cdb98
[ "MIT" ]
2
2015-10-08T12:35:19.000Z
2019-12-22T00:20:05.000Z
testScenarios.py
Neomania/BeeSimulation
2d003085941d9f44d0f07a2a5dbb45f0103cdb98
[ "MIT" ]
null
null
null
testScenarios.py
Neomania/BeeSimulation
2d003085941d9f44d0f07a2a5dbb45f0103cdb98
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: Timothy # # Created: 26/04/2015 # Copyright: (c) Timothy 2015 # Licence: <your licence> #------------------------------------------------------------------------------- from phy...
27.882353
80
0.601266
4a0683b4d85f5f652937a55db062d5fa57b9b8f5
18,155
py
Python
conf/trigger_settings.py
chepazzo/trigger
4e867bd9443fde61f9b702d3ba65227c0ca69afb
[ "BSD-3-Clause" ]
null
null
null
conf/trigger_settings.py
chepazzo/trigger
4e867bd9443fde61f9b702d3ba65227c0ca69afb
[ "BSD-3-Clause" ]
null
null
null
conf/trigger_settings.py
chepazzo/trigger
4e867bd9443fde61f9b702d3ba65227c0ca69afb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # This is a sample settings.py that varies slightly from the default. Please see docs/configuration.rst or # trigger/conf/global_settings.py for the complete list of default settings. import IPy import os import socket #=============================== # Global Settings #======================...
32.419643
137
0.662187
4a06843f12e52464db3de635424cb52cc14ee46c
2,288
py
Python
eoxserver/backends/config.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
25
2015-08-10T19:34:34.000Z
2021-02-05T08:28:01.000Z
eoxserver/backends/config.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
153
2015-01-20T08:35:49.000Z
2022-03-16T11:00:56.000Z
eoxserver/backends/config.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
10
2015-01-23T15:48:30.000Z
2021-01-21T15:41:18.000Z
#------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2013 EOX IT Services GmbH # # Permission...
43.169811
80
0.698427
4a0684c27499199b41e43043a1b220001105e346
7,180
py
Python
tests/test_apiv2_district_controller.py
tervay/the-blue-alliance
e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
tests/test_apiv2_district_controller.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
tests/test_apiv2_district_controller.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import unittest2 import webtest import json import webapp2 from datetime import datetime from google.appengine.ext import ndb from google.appengine.ext import testbed from consts.event_type import EventType from controllers.api.api_district_controller import ApiDistrictListController, ApiDistrictEventsController fr...
41.264368
151
0.59805
4a06850fce9b4e71f1c275eabb49e078af69b543
1,995
py
Python
autotest/gdrivers/elas.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
3,100
2015-01-02T10:33:40.000Z
2022-03-31T02:06:51.000Z
autotest/gdrivers/elas.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
3,496
2015-01-06T16:53:30.000Z
2022-03-31T20:18:51.000Z
autotest/gdrivers/elas.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
2,036
2015-01-08T20:22:12.000Z
2022-03-31T10:24:08.000Z
#!/usr/bin/env pytest ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test ELAS driver # Author: Even Rouault, <even dot rouault at spatialys.com> # ############################################################################### # Co...
36.272727
79
0.596491
4a068625d95c88f5377de3e68ee973a6bdceed14
25,820
py
Python
src/azure-cli/azure/cli/command_modules/resource/commands.py
digimaun/azure-cli
298994660f0fde6863cb45a7c3142141ed10f923
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/resource/commands.py
digimaun/azure-cli
298994660f0fde6863cb45a7c3142141ed10f923
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/resource/commands.py
digimaun/azure-cli
298994660f0fde6863cb45a7c3142141ed10f923
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
62.669903
245
0.752711
4a0686544dabb9ff5ff5ab54de072d80e28d6235
11,200
py
Python
nilearn/decomposition/dict_learning.py
kbraunlich/nilearn
a152f8e2fe1e62ebbd9d0fe03321d1affe70542c
[ "BSD-2-Clause" ]
null
null
null
nilearn/decomposition/dict_learning.py
kbraunlich/nilearn
a152f8e2fe1e62ebbd9d0fe03321d1affe70542c
[ "BSD-2-Clause" ]
null
null
null
nilearn/decomposition/dict_learning.py
kbraunlich/nilearn
a152f8e2fe1e62ebbd9d0fe03321d1affe70542c
[ "BSD-2-Clause" ]
null
null
null
""" Dictionary learning estimator: Perform a map learning algorithm by learning a temporal dense dictionary along with sparse spatial loadings, that constitutes output maps """ # Author: Arthur Mensch # License: BSD 3 clause from __future__ import division import warnings import numpy as np from sklearn.decompositi...
39.02439
83
0.640536
4a0689c8a906fd26b59c80eae2ef7ab8fe8b23d7
2,294
py
Python
django_any/functions.py
lincolnloop/django-whatever
9009ff46308f9ddf28cd5e9656f47e0067dc5ad0
[ "MIT" ]
null
null
null
django_any/functions.py
lincolnloop/django-whatever
9009ff46308f9ddf28cd5e9656f47e0067dc5ad0
[ "MIT" ]
null
null
null
django_any/functions.py
lincolnloop/django-whatever
9009ff46308f9ddf28cd5e9656f47e0067dc5ad0
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- """ Additional functions for django-any """ def valid_choices(choices): """ Return list of choices's keys """ for key, value in choices: if isinstance(value, (list, tuple)): for key, _ in value: yield key else: yield key d...
23.895833
62
0.570183
4a068ce36925bb0c3a83a69d5411542d5ded5b04
1,345
py
Python
configs/gma/gma_8x2_120k_mixed_368x768.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
configs/gma/gma_8x2_120k_mixed_368x768.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
configs/gma/gma_8x2_120k_mixed_368x768.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
_base_ = [ '../_base_/models/gma/gma.py', '../_base_/datasets/sintel_cleanx100_sintel_fianlx100_kitti2015x200_hd1kx5_flyingthings3d_raft_384x768.py', # noqa '../_base_/default_runtime.py' ] model = dict( decoder=dict( type='GMADecoder', net_type='Basic', num_levels=4, r...
29.23913
119
0.678067
4a068e057ca188e7d486c29a687182d0e9492acf
20,383
py
Python
Lib/test/test_collections.py
lrq3000/wpython2.wpython11
4905d2b2be3add3b8cc702e09422fb2e869005b5
[ "PSF-2.0" ]
8
2020-08-24T14:21:35.000Z
2022-01-26T04:49:11.000Z
Lib/test/test_collections.py
lrq3000/wpython2.wpython11
4905d2b2be3add3b8cc702e09422fb2e869005b5
[ "PSF-2.0" ]
null
null
null
Lib/test/test_collections.py
lrq3000/wpython2.wpython11
4905d2b2be3add3b8cc702e09422fb2e869005b5
[ "PSF-2.0" ]
3
2020-08-23T23:20:38.000Z
2021-10-18T03:35:00.000Z
import unittest, doctest from test import test_support from collections import namedtuple import pickle, cPickle, copy import keyword import re from collections import Hashable, Iterable, Iterator from collections import Sized, Container, Callable from collections import Set, MutableSet from collections import Mapping,...
41.768443
106
0.558897
4a0690841b6c76b93c190c4587b3d3bb661c9fe0
8,065
py
Python
src/00template/convex_adversarial/dual_inputs.py
5loaves-2fish-12basckets/ADF_studies
ea2a8eaebf994350e32501ddfc76258aa89bd880
[ "MIT" ]
1
2019-02-06T07:53:15.000Z
2019-02-06T07:53:15.000Z
src/00template/convex_adversarial/dual_inputs.py
5loaves-2fish-12basckets/ADF_studies
ea2a8eaebf994350e32501ddfc76258aa89bd880
[ "MIT" ]
null
null
null
src/00template/convex_adversarial/dual_inputs.py
5loaves-2fish-12basckets/ADF_studies
ea2a8eaebf994350e32501ddfc76258aa89bd880
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from .dual import DualObject def select_input(X, epsilon, proj, norm, bounded_input): if proj is not None and norm=='l1_median' and X[0].numel() > proj: if bounded_input: return InfBallProjBounded(X,epsilon,proj) else: return InfBallProj...
32.520161
92
0.543087
4a06916edb0c7aef15d06151dfb6a56ed97813e1
7,056
py
Python
frappe/tests/test_twofactor.py
AKedar21/frappe
4c9ce1701caea07e595f81414af3a9f219cccb65
[ "MIT" ]
2
2017-08-24T20:25:13.000Z
2017-10-15T13:14:31.000Z
frappe/tests/test_twofactor.py
AKedar21/frappe
4c9ce1701caea07e595f81414af3a9f219cccb65
[ "MIT" ]
19
2018-04-17T09:09:02.000Z
2020-11-17T08:06:25.000Z
frappe/tests/test_twofactor.py
AKedar21/frappe
4c9ce1701caea07e595f81414af3a9f219cccb65
[ "MIT" ]
3
2019-08-09T17:52:18.000Z
2020-07-29T08:23:46.000Z
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import unittest, frappe, pyotp from werkzeug.wrappers import Request from werkzeug.test import EnvironBuilder from frappe.auth import HTTPRequest from frappe.utils import cint fro...
35.104478
108
0.773668
4a069196f94e33007be8a96303aeca442e6bfe3c
9,459
py
Python
assets/InstagramPy/InstagramPyCLI.py
BHUTUU/instagram-bruteforce
bc418ef5b1e8987fd5f70ae2202a6ac82e863271
[ "MIT" ]
null
null
null
assets/InstagramPy/InstagramPyCLI.py
BHUTUU/instagram-bruteforce
bc418ef5b1e8987fd5f70ae2202a6ac82e863271
[ "MIT" ]
null
null
null
assets/InstagramPy/InstagramPyCLI.py
BHUTUU/instagram-bruteforce
bc418ef5b1e8987fd5f70ae2202a6ac82e863271
[ "MIT" ]
null
null
null
import datetime import sys from InstagramPy import AppInfo from .colors import * class InstagramPyCLI(): username = None started = None verbose = 0 pService = None def __init__(self, appinfo, started, verbose_level, username, PortableService=None): self.pService = PortableService ...
57.327273
145
0.367904
4a06928bbec8eed2ddd2c5150109c96e887800d0
6,851
py
Python
calcloud/plan.py
bhayden53/calcloud
7478737d0da1218d1ced87787bede201993053aa
[ "BSD-3-Clause" ]
1
2021-03-11T22:31:59.000Z
2021-03-11T22:31:59.000Z
calcloud/plan.py
bhayden53/calcloud
7478737d0da1218d1ced87787bede201993053aa
[ "BSD-3-Clause" ]
null
null
null
calcloud/plan.py
bhayden53/calcloud
7478737d0da1218d1ced87787bede201993053aa
[ "BSD-3-Clause" ]
null
null
null
"""This module is used to define job plans using the high level function get_plan(). get_plan() returns a named tuple specifying all the information needed to submit a job. Based on a memory_retries counter, get_plan() iterates through a sequence of job definitions with increasing memory requirements until the job l...
35.682292
119
0.653627
4a06941c1fc98c19e86b7b106006add68be78f79
97
py
Python
code/pyFoamInitVCSCase.py
sosohungry/pyfoam
b19e40a0ef1f41268930122226660414722178e6
[ "MIT" ]
null
null
null
code/pyFoamInitVCSCase.py
sosohungry/pyfoam
b19e40a0ef1f41268930122226660414722178e6
[ "MIT" ]
null
null
null
code/pyFoamInitVCSCase.py
sosohungry/pyfoam
b19e40a0ef1f41268930122226660414722178e6
[ "MIT" ]
null
null
null
#! /usr/bin/env python from PyFoam.Applications.InitVCSCase import InitVCSCase InitVCSCase()
13.857143
55
0.783505
4a06967d58fd2e2bf5f8f6a46974bf24ccf462d9
100
py
Python
pysinewave/__init__.py
daviddavini/continuous-sine-wave
a0be89d28dae357f480a116aefa9bb9974f48f7e
[ "MIT" ]
10
2020-06-08T10:55:40.000Z
2022-02-08T19:44:25.000Z
pysinewave/__init__.py
daviddavini/continuous-sine-wave
a0be89d28dae357f480a116aefa9bb9974f48f7e
[ "MIT" ]
6
2021-04-26T10:20:22.000Z
2022-03-12T21:16:41.000Z
pysinewave/__init__.py
daviddavini/continuous-sine-wave
a0be89d28dae357f480a116aefa9bb9974f48f7e
[ "MIT" ]
7
2020-01-07T03:30:54.000Z
2022-03-12T21:10:52.000Z
from pysinewave.sinewave import SineWave from pysinewave.sinewave_generator import SineWaveGenerator
50
59
0.91
4a06967f396dcb6a4ad2ae35a66c52e52814011e
30,895
py
Python
Bio/SearchIO/BlatIO.py
emedgene/biopython
4e359e2aa9255aa8b420ad512d3c4cbe15c07a35
[ "BSD-3-Clause" ]
2
2019-11-21T02:34:52.000Z
2021-02-14T07:47:43.000Z
Bio/SearchIO/BlatIO.py
EngineerKhan/biopython
4e359e2aa9255aa8b420ad512d3c4cbe15c07a35
[ "BSD-3-Clause" ]
null
null
null
Bio/SearchIO/BlatIO.py
EngineerKhan/biopython
4e359e2aa9255aa8b420ad512d3c4cbe15c07a35
[ "BSD-3-Clause" ]
1
2021-02-14T07:47:46.000Z
2021-02-14T07:47:46.000Z
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.SearchIO parser for BLAT output formats. This module adds support for parsing BLAT...
43.330996
88
0.49856
4a06982f43e5ad8c73d21059dfb07758221cbe82
8,436
py
Python
module/util.py
baristahell/OBB-YOLOv3
7c60cf3c8ebcf55d3c1f405fbb135591ebd20802
[ "MIT" ]
19
2020-05-28T03:38:49.000Z
2021-06-18T08:24:44.000Z
module/util.py
baristahell/OBB-YOLOv3
7c60cf3c8ebcf55d3c1f405fbb135591ebd20802
[ "MIT" ]
null
null
null
module/util.py
baristahell/OBB-YOLOv3
7c60cf3c8ebcf55d3c1f405fbb135591ebd20802
[ "MIT" ]
7
2020-06-02T00:50:47.000Z
2021-06-02T07:41:50.000Z
# -*- coding: utf-8 -*- import torch import numpy as np def predict_transform(fms, inp_dim, anchors, num_classes, cuda=False): """ ?x255x13x13,26x26,52x52 3*(11+80)=255 """ stride = inp_dim // fms.size(2) # 416// 13,26,52 = 32, 6, 8 batch_size = fms.size(0) bbox_attrs = 11 + num_classes...
41.55665
126
0.531532
4a06991cf99dcc2e1769e144cc7a2d59751ff725
579
py
Python
openprocurement/tender/cfaua/adapters/tender/serializable/value.py
openprocurement/openprocurement.tender.cfaua
1f84b15838c3b5980409734f57361540e6e6f676
[ "Apache-2.0" ]
null
null
null
openprocurement/tender/cfaua/adapters/tender/serializable/value.py
openprocurement/openprocurement.tender.cfaua
1f84b15838c3b5980409734f57361540e6e6f676
[ "Apache-2.0" ]
3
2018-09-28T12:57:52.000Z
2018-10-29T13:54:38.000Z
openprocurement/tender/cfaua/adapters/tender/serializable/value.py
ProzorroUKR/openprocurement.tender.cfaua
7b2d0f514be6dca090ea96b83df8ce01bdc7dc0d
[ "Apache-2.0" ]
1
2018-09-10T07:40:41.000Z
2018-09-10T07:40:41.000Z
# src/openprocurement.tender.belowthreshold/openprocurement/tender/belowthreshold/models.py:246 from openprocurement.api.adapters import Serializable class SerializableTenderMultilotValue(Serializable): serialized_name = "value" def __call__(self, obj, *args, **kwargs): value_class = obj._fields['valu...
52.636364
114
0.697755
4a069a4b26f0b5db370da027b658a8d6bf6c3c52
3,483
py
Python
fcos_core/utils/comm.py
realtimshady1/FCOS
50b10c55c54bd519956d3ef2f96e042f9be0363a
[ "BSD-2-Clause" ]
null
null
null
fcos_core/utils/comm.py
realtimshady1/FCOS
50b10c55c54bd519956d3ef2f96e042f9be0363a
[ "BSD-2-Clause" ]
null
null
null
fcos_core/utils/comm.py
realtimshady1/FCOS
50b10c55c54bd519956d3ef2f96e042f9be0363a
[ "BSD-2-Clause" ]
null
null
null
""" This file contains primitives for multi-gpu communication. This is useful when doing distributed training. """ import pickle import time import torch import torch.distributed as dist def get_world_size(): if not dist.is_available(): return 1 if not dist.is_initialized(): return 1 ret...
28.54918
84
0.647717
4a069b608aa6ec79b583234be5fa5d9d284a3d5f
12,025
py
Python
data/coco.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
1
2021-03-07T01:09:33.000Z
2021-03-07T01:09:33.000Z
data/coco.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
null
null
null
data/coco.py
frezaeix/AttFDNet
e4021b259e187e9180a83fcb67c029144bdd5789
[ "MIT" ]
null
null
null
"""VOC Dataset Classes Original author: Francisco Massa https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py Updated by: Ellis Brown, Max deGroot """ import os import pickle import os.path import sys import torch import torch.utils.data as data import torchvision.transforms as transforms imp...
37.933754
97
0.564906
4a069bd0bf2658d577a41ff59018261fc3333194
2,067
py
Python
azure-batch/azure/batch/models/pool_disable_auto_scale_options_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
null
null
null
azure-batch/azure/batch/models/pool_disable_auto_scale_options_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-batch/azure/batch/models/pool_disable_auto_scale_options_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.978723
143
0.655539
4a069c3bae5f3d35e61bb0f77bcce0e7f62c48dd
139
py
Python
experiments/simclrv2_florian/__init__.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
1
2022-02-25T00:00:30.000Z
2022-02-25T00:00:30.000Z
experiments/simclrv2_florian/__init__.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
null
null
null
experiments/simclrv2_florian/__init__.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
null
null
null
""" Convert TF checkpoint to PyTorch. First run download.py, then convert.py. Note: `sk` correspond to selective kernel network. """
15.444444
48
0.71223
4a069c9508bcc7a43cd7892b241f3cf7495dc991
10,779
py
Python
spotify_bot.py
cartertemm/teamtalk-spotify-bot
58dd169592153635203f8a319419dd49702a75cf
[ "MIT" ]
2
2021-08-29T15:24:40.000Z
2022-01-17T15:49:04.000Z
spotify_bot.py
cartertemm/teamtalk-spotify-bot
58dd169592153635203f8a319419dd49702a75cf
[ "MIT" ]
2
2020-08-26T23:32:45.000Z
2021-07-19T20:37:57.000Z
spotify_bot.py
cartertemm/teamtalk-spotify-bot
58dd169592153635203f8a319419dd49702a75cf
[ "MIT" ]
1
2021-08-11T03:23:00.000Z
2021-08-11T03:23:00.000Z
"""spotify_bot.py A TeamTalk controller for Spotify. Only works with premium accounts. Also requires another TeamTalk instance capable of routing system audio. The process for doing so is out of the scope of these notes. It is my hope that this will someday be unnecessary, however. Consult the readme for comprehens...
30.709402
132
0.71964
4a069cb542867ea91f69fe9ad3111949a9cce754
1,733
py
Python
web/addons/mail/controllers/main.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/mail/controllers/main.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/mail/controllers/main.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
import base64 import psycopg2 import openerp from openerp import SUPERUSER_ID from openerp import http from openerp.http import request from openerp.addons.web.controllers.main import content_disposition import mimetypes class MailController(http.Controller): _cp_path = '/mail' @http.route('/mail/download_a...
38.511111
93
0.617426
4a069cc4a7bb291fce7b5f758167d1d9d0e5cacb
2,251
py
Python
tools/TweeboParser/token_selection/data_extract.py
unititled99/Bella
6ec5ec84ef1cf89a5e99c6a5a3ccc7972d77e023
[ "MIT" ]
null
null
null
tools/TweeboParser/token_selection/data_extract.py
unititled99/Bella
6ec5ec84ef1cf89a5e99c6a5a3ccc7972d77e023
[ "MIT" ]
10
2020-01-28T22:16:20.000Z
2022-02-09T23:32:01.000Z
tools/TweeboParser/token_selection/data_extract.py
unititled99/Bella
6ec5ec84ef1cf89a5e99c6a5a3ccc7972d77e023
[ "MIT" ]
1
2018-05-28T13:21:53.000Z
2018-05-28T13:21:53.000Z
# Copyright (c) 2013-2014 Lingpeng Kong # All Rights Reserved. # # This file is part of TweeboParser 1.0. # # TweeboParser 1.0 is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
29.618421
77
0.549534
4a069d730eb9a4f748c4ab182ee082c37d475d6c
5,479
py
Python
ckine/figures/figure4.py
meyer-lab/bi-cytok
34bac90b88d53c02e742dec3a5f663734e860f1b
[ "MIT" ]
null
null
null
ckine/figures/figure4.py
meyer-lab/bi-cytok
34bac90b88d53c02e742dec3a5f663734e860f1b
[ "MIT" ]
null
null
null
ckine/figures/figure4.py
meyer-lab/bi-cytok
34bac90b88d53c02e742dec3a5f663734e860f1b
[ "MIT" ]
null
null
null
""" This creates Figure 1, response of bispecific IL-2 cytokines at varing valencies and abundances using binding model. """ from .figureCommon import getSetup from ..imports import importCITE, importReceptors import pandas as pd import seaborn as sns import numpy as np from copy import copy from sklearn.preprocessing ...
43.141732
158
0.630407
4a069ef91405ad82fbae1984d9f790e433923a97
5,275
py
Python
net.py
BinahHu/pytorch-AdaIN
7bbc3d11407dccbb3f4aa687177514a9c4d82ace
[ "MIT" ]
null
null
null
net.py
BinahHu/pytorch-AdaIN
7bbc3d11407dccbb3f4aa687177514a9c4d82ace
[ "MIT" ]
null
null
null
net.py
BinahHu/pytorch-AdaIN
7bbc3d11407dccbb3f4aa687177514a9c4d82ace
[ "MIT" ]
null
null
null
import torch.nn as nn from function import adaptive_instance_normalization as adain from function import calc_mean_std decoder = nn.Sequential( nn.ReflectionPad2d((1, 1, 1, 1)), nn.Conv2d(512, 256, (3, 3)), nn.ReLU(), nn.Upsample(scale_factor=2, mode='nearest'), nn.ReflectionPad2d((1, 1, 1, 1)), ...
34.253247
76
0.568531
4a06a04028e13b0b683d4333986462c9da674d63
2,694
py
Python
video-generator/src/image/image_processor.py
charlie6/product_video_ads
d155a86d4786fb5f0d0e57d2f696bb2d1e12dc36
[ "Apache-2.0" ]
null
null
null
video-generator/src/image/image_processor.py
charlie6/product_video_ads
d155a86d4786fb5f0d0e57d2f696bb2d1e12dc36
[ "Apache-2.0" ]
null
null
null
video-generator/src/image/image_processor.py
charlie6/product_video_ads
d155a86d4786fb5f0d0e57d2f696bb2d1e12dc36
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
31.325581
90
0.677803
4a06a14466e0d639c1bd68dbd45e4595ee0b0111
7,971
py
Python
resources/lib/sync_by_frame_rate.py
gade01/script.sublissimo
8a51a7617a89ad7d35bc9882b958a511e25926a5
[ "MIT" ]
1
2022-03-20T15:54:43.000Z
2022-03-20T15:54:43.000Z
resources/lib/sync_by_frame_rate.py
weblate/script.sublissimo
c2f89e43fa365523dd28e5c9779b5ba6cd461b24
[ "MIT" ]
3
2021-04-24T21:16:28.000Z
2021-06-10T11:51:32.000Z
resources/lib/sync_by_frame_rate.py
weblate/script.sublissimo
c2f89e43fa365523dd28e5c9779b5ba6cd461b24
[ "MIT" ]
3
2021-05-02T13:45:22.000Z
2021-06-15T01:16:57.000Z
from __future__ import division import xbmc import xbmcgui import sys import xbmcaddon import logging import xbmcvfs from contextlib import closing from . import script from .subtitle import Subtitle ADDON = xbmcaddon.Addon() __addon__ = xbmcaddon.Addon() _ = __addon__.getLocalizedString logger = logging.getLogge...
42.854839
111
0.577594
4a06a3057c94492a6999701f3fe3e2d199d1f3f1
2,766
py
Python
app/models.py
Soniakoi/Blog-Post.
a1e918849bdf7c961f6817bf47ccd70a5c3d65ef
[ "MIT" ]
null
null
null
app/models.py
Soniakoi/Blog-Post.
a1e918849bdf7c961f6817bf47ccd70a5c3d65ef
[ "MIT" ]
null
null
null
app/models.py
Soniakoi/Blog-Post.
a1e918849bdf7c961f6817bf47ccd70a5c3d65ef
[ "MIT" ]
null
null
null
from . import db from werkzeug.security import generate_password_hash,check_password_hash from flask_login import UserMixin from . import login_manager from datetime import datetime @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(UserMixin,db.Model): __table...
28.8125
84
0.67209
4a06a3a9548abd3991b0033992dce2e17991048a
233
py
Python
neurosynth/version.py
chrisfilo/Neurosynth
80a9438834c685d381ad45b078dc4f5ac2112cec
[ "MIT" ]
null
null
null
neurosynth/version.py
chrisfilo/Neurosynth
80a9438834c685d381ad45b078dc4f5ac2112cec
[ "MIT" ]
null
null
null
neurosynth/version.py
chrisfilo/Neurosynth
80a9438834c685d381ad45b078dc4f5ac2112cec
[ "MIT" ]
null
null
null
# emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: """Specifies current version of NeuroSynth to be used by setup.py and __init__.py """ __version__ = '0.3.3'
29.125
92
0.669528
4a06a45d982bd3190ed0be1543771e36e91caec6
7,924
py
Python
David and Pooja/++Validating Linked Mods/Python-3.0/Lib/multiprocessing/process.py
LinkedModernismProject/web_code
4cf6bf53d5c3249e52a75f0a3f57d106e31daf9e
[ "Apache-2.0" ]
1
2015-05-21T23:47:54.000Z
2015-05-21T23:47:54.000Z
front-end/testsuite-python-lib/Python-3.1/Lib/multiprocessing/process.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
1
2015-10-29T20:51:31.000Z
2015-10-29T20:51:31.000Z
front-end/testsuite-python-lib/Python-3.1/Lib/multiprocessing/process.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
# # Module providing the `Process` class which emulates `threading.Thread` # # multiprocessing/process.py # # Copyright (c) 2006-2008, R Oudkerk --- see COPYING.txt # __all__ = ['Process', 'current_process', 'active_children'] # # Imports # import os import sys import signal import itertools # # # try: ORIGINA...
26.590604
79
0.575467
4a06a496531b67d0d0e58a59a5d49139a08c2793
27,248
py
Python
sympy/physics/mechanics/functions.py
lidavidm/sympy
971aa94ee6d0774eacfb4aed6965195c4a59e104
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/mechanics/functions.py
lidavidm/sympy
971aa94ee6d0774eacfb4aed6965195c4a59e104
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/mechanics/functions.py
lidavidm/sympy
971aa94ee6d0774eacfb4aed6965195c4a59e104
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division __all__ = ['cross', 'dot', 'express', 'outer', 'inertia', 'mechanics_printing', 'mprint', 'msprint', 'mpprint', 'mlatex', 'kinematic_equations', 'iner...
34.666667
132
0.564665
4a06a53d3936de2f4d475312b58b81c181ec39a8
4,030
py
Python
chevah/compat/unix_service.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/unix_service.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/unix_service.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
# Copyright (c) 2011 Adi Roiban. # See LICENSE for details. '''Unix specific functionality for launching an Unix daemon.''' from __future__ import with_statement from __future__ import print_function from __future__ import division from __future__ import absolute_import import daemon import os import signal import sys ...
29.202899
73
0.604963
4a06a5500094aad75a257b53394f75dd78e487f2
45,252
py
Python
pandas/tseries/tests/test_plotting.py
betoesquivel/PyData29-DataAnalyticsWithAWSLambda
318d1f595e4079544159a0f4802277dc5b25cb47
[ "MIT" ]
4
2016-12-06T20:22:28.000Z
2018-05-04T09:51:45.000Z
pandas/tseries/tests/test_plotting.py
betoesquivel/PyData29-DataAnalyticsWithAWSLambda
318d1f595e4079544159a0f4802277dc5b25cb47
[ "MIT" ]
11
2020-06-05T17:24:17.000Z
2022-03-11T23:15:26.000Z
pandas/tseries/tests/test_plotting.py
betoesquivel/PyData29-DataAnalyticsWithAWSLambda
318d1f595e4079544159a0f4802277dc5b25cb47
[ "MIT" ]
3
2017-02-25T15:26:47.000Z
2017-12-20T06:27:07.000Z
from datetime import datetime, timedelta, date, time import nose from pandas.compat import lrange, zip import numpy as np from numpy.testing.decorators import slow from pandas import Index, Series, DataFrame from pandas.tseries.index import date_range, bdate_range from pandas.tseries.offsets import DateOffset from ...
36.086124
79
0.563997
4a06a619dc6b0a3492b294be5eba310a52281c13
5,124
py
Python
feeder/ntu_feeder.py
zjl863761131/CrosSCLR
792b70c76902a5e7ca5696f5a032f14bb04a255a
[ "BSD-2-Clause" ]
35
2021-04-20T03:30:20.000Z
2022-03-30T02:45:04.000Z
feeder/ntu_feeder.py
zjl863761131/CrosSCLR
792b70c76902a5e7ca5696f5a032f14bb04a255a
[ "BSD-2-Clause" ]
1
2022-03-25T12:32:47.000Z
2022-03-25T12:32:47.000Z
feeder/ntu_feeder.py
zjl863761131/CrosSCLR
792b70c76902a5e7ca5696f5a032f14bb04a255a
[ "BSD-2-Clause" ]
16
2021-04-22T14:38:05.000Z
2022-02-22T09:18:52.000Z
import numpy as np import pickle, torch from . import tools class Feeder_single(torch.utils.data.Dataset): """ Feeder for single inputs """ def __init__(self, data_path, label_path, shear_amplitude=0.5, temperal_padding_ratio=6, mmap=True): self.data_path = data_path self.label_path = label_p...
30.86747
123
0.610656
4a06a669d244b78c600d7c7ad63005e2bc8fc598
1,810
py
Python
server/opendp_apps/dataverses/testing/test_serializers.py
opendifferentialprivacy/opendp-ux
2669602d0a65f6a83d9e9916cbf753c38fd64c94
[ "MIT" ]
null
null
null
server/opendp_apps/dataverses/testing/test_serializers.py
opendifferentialprivacy/opendp-ux
2669602d0a65f6a83d9e9916cbf753c38fd64c94
[ "MIT" ]
82
2020-08-06T17:11:12.000Z
2021-02-07T21:01:05.000Z
server/opendp_apps/dataverses/testing/test_serializers.py
opendifferentialprivacy/opendp-ux
2669602d0a65f6a83d9e9916cbf753c38fd64c94
[ "MIT" ]
2
2020-10-16T22:03:24.000Z
2020-11-15T22:45:19.000Z
from django.test import TestCase from django.contrib.auth import get_user_model from opendp_apps.dataverses.models import DataverseHandoff from opendp_apps.dataverses.serializers import DataverseUserSerializer from opendp_apps.user.models import DataverseUser class TestDataverseUserSerializer(TestCase): fixture...
42.093023
116
0.693923
4a06a6abd08cf181c674e590601b342f514a7f0e
1,168
py
Python
dd_crawler/commands/login.py
TeamHG-Memex/domain-discovery-crawler
171f16a0b18d30e23ae6793b011dcfbad8299240
[ "MIT" ]
16
2017-11-14T10:11:32.000Z
2021-08-07T16:05:14.000Z
dd_crawler/commands/login.py
TeamHG-Memex/domain-discovery-crawler
171f16a0b18d30e23ae6793b011dcfbad8299240
[ "MIT" ]
null
null
null
dd_crawler/commands/login.py
TeamHG-Memex/domain-discovery-crawler
171f16a0b18d30e23ae6793b011dcfbad8299240
[ "MIT" ]
9
2018-06-14T18:37:22.000Z
2021-06-02T02:46:26.000Z
from scrapy import Request from scrapy.commands import ScrapyCommand from scrapy.exceptions import UsageError from scrapy_redis.scheduler import Scheduler def add_login(spider, url, login, password, queue=None): print('Adding login url: {}'.format(url)) if queue is None: queue = spider.queue queue...
31.567568
70
0.696918
4a06a74360ac66da1d23948864c6c56c86a35f5f
6,234
py
Python
scripts/deploy.py
rkassa/viz
1005877f510bf3fcd571846f0f7cdc69cda7f982
[ "MIT" ]
null
null
null
scripts/deploy.py
rkassa/viz
1005877f510bf3fcd571846f0f7cdc69cda7f982
[ "MIT" ]
null
null
null
scripts/deploy.py
rkassa/viz
1005877f510bf3fcd571846f0f7cdc69cda7f982
[ "MIT" ]
null
null
null
""" Makes it easy and painless to deploy the site and make all necessary changes so that it's immediately ready to serve in production. """ import glob import json import os import shlex import subprocess import sys from colorama import Fore, Style import data_util import js_compilation # Files and directories that...
30.262136
118
0.601059
4a06a74bfa1782dd989a3ba4c4bdcaf813c89926
4,078
py
Python
api/serializers/couriers.py
Shubarin/candy_delivery_api
9bbf15621f9d5837a96cc1868260e47048c5b268
[ "BSD-3-Clause" ]
null
null
null
api/serializers/couriers.py
Shubarin/candy_delivery_api
9bbf15621f9d5837a96cc1868260e47048c5b268
[ "BSD-3-Clause" ]
null
null
null
api/serializers/couriers.py
Shubarin/candy_delivery_api
9bbf15621f9d5837a96cc1868260e47048c5b268
[ "BSD-3-Clause" ]
null
null
null
import datetime from collections import defaultdict from api.models.couriers import Courier from rest_framework import serializers from rest_framework.exceptions import ValidationError class CourierSerializer(serializers.ModelSerializer): courier_id = serializers.IntegerField() class Meta: fields = ...
39.980392
78
0.633889
4a06a793bbbfb18169557a597d4d7cf8602ae578
2,909
py
Python
flask/appWebServer.py
mobalk/raspi-weathercam
c97fb6b979a6362211fc13def283e4a3bbc13213
[ "MIT" ]
null
null
null
flask/appWebServer.py
mobalk/raspi-weathercam
c97fb6b979a6362211fc13def283e4a3bbc13213
[ "MIT" ]
null
null
null
flask/appWebServer.py
mobalk/raspi-weathercam
c97fb6b979a6362211fc13def283e4a3bbc13213
[ "MIT" ]
null
null
null
from flask import Flask, render_template, send_from_directory import pandas as pd import sqlite3 import matplotlib.pyplot as plt import matplotlib.dates as mdates from datetime import timedelta import os import sys sys.path.insert(0,'..') import config conf = config.init('../config.ini') config.read(conf) dbPath = con...
34.630952
93
0.551048
4a06a928f3545afb7be64442b5c15885818f54a2
2,200
py
Python
stac_fastapi/pgstac/stac_fastapi/pgstac/transactions.py
borism/stac-fastapi
81015a153c1d9f36d8e12f17a1bf67370396f472
[ "MIT" ]
64
2021-03-27T19:34:29.000Z
2022-03-31T07:58:58.000Z
stac_fastapi/pgstac/stac_fastapi/pgstac/transactions.py
borism/stac-fastapi
81015a153c1d9f36d8e12f17a1bf67370396f472
[ "MIT" ]
218
2021-03-27T19:51:54.000Z
2022-03-28T12:41:56.000Z
stac_fastapi/pgstac/stac_fastapi/pgstac/transactions.py
borism/stac-fastapi
81015a153c1d9f36d8e12f17a1bf67370396f472
[ "MIT" ]
44
2021-04-05T12:06:25.000Z
2022-03-01T12:06:29.000Z
"""transactions extension client.""" import logging from typing import Dict import attr from stac_fastapi.pgstac.db import dbfunc from stac_fastapi.types import stac as stac_types from stac_fastapi.types.core import AsyncBaseTransactionsClient logger = logging.getLogger("uvicorn") logger.setLevel(logging.INFO) @a...
33.846154
84
0.668636
4a06aab229d4b4c835e7c1662c45f7f73717e042
5,611
py
Python
data/templates/authentication/reset_password.mako.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
data/templates/authentication/reset_password.mako.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
data/templates/authentication/reset_password.mako.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1465687803.470334 _enable_loop = True _template_filename = '/home/sumukh/Documents/thesis/Cyberweb...
81.318841
2,185
0.661736
4a06ab770aaa072c8858e0f527f21dcbc10bbbdd
8,151
py
Python
tensorflow/python/kernel_tests/edit_distance_op_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/kernel_tests/edit_distance_op_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/kernel_tests/edit_distance_op_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.562212
80
0.651576
4a06abafbeb20a3ea075a0194ea128392a0a10a9
2,814
py
Python
tests/test_bot.py
BurhanH/automaton-v17
5f57db6103dd02c3714f85ec184be94e44f611d7
[ "MIT" ]
null
null
null
tests/test_bot.py
BurhanH/automaton-v17
5f57db6103dd02c3714f85ec184be94e44f611d7
[ "MIT" ]
2
2021-07-14T01:15:26.000Z
2022-01-23T18:20:05.000Z
tests/test_bot.py
BurhanH/automaton-v17
5f57db6103dd02c3714f85ec184be94e44f611d7
[ "MIT" ]
null
null
null
import unittest from ddt import ddt, data, unpack from source import bot @ddt class TestBotBow(unittest.TestCase): """Simple test suite to test bot bow responses.""" @data( ('Hi!', 'Hey!'), ('Hello!', 'Howdy.'), ) @unpack def test_greeting(self, sentence: str, response: str) -> No...
32.72093
76
0.590263
4a06ad3bd5a81a0b06885f98064dd31e0bb3a34e
4,941
py
Python
pypureclient/flasharray/FA_2_9/models/directory_export_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_9/models/directory_export_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_9/models/directory_export_get_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.9 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
38.007692
524
0.614046
4a06af92cbe24b25c719a222f2ad13778b2440a5
2,884
py
Python
modules/property/PropertyModule.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
modules/property/PropertyModule.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
modules/property/PropertyModule.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
import sys from datetime import datetime from core.module.module import Module from core.module.message import * from modules.property.service.PropertyDaoService import PropertyDaoService class PropertyModule(Module): """Module permettant la mise à disposition de propriétés à la portée applicativ...
34.746988
96
0.628641
4a06b00ed31f678475bd36c3065f724e5ea8b7cf
4,016
py
Python
native_client_sdk/src/build_tools/buildbot_run.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
native_client_sdk/src/build_tools/buildbot_run.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
native_client_sdk/src/build_tools/buildbot_run.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-03-15T13:21:38.000Z
2017-03-15T13:21:38.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Main entry point for the NaCl SDK buildbot. The entry point used to be build_sdk.py itself, but we want to be able to simplify ...
31.873016
79
0.706922
4a06b05e1735804aaf1b15d97f492300a1eb1d1a
2,560
py
Python
Problem 001-150 Python/pb145.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
2
2015-02-11T05:47:42.000Z
2015-02-11T05:47:51.000Z
Problem 001-150 Python/pb145.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
1
2015-04-13T06:36:21.000Z
2015-04-13T06:36:21.000Z
Problem 001-150 Python/pb145.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
null
null
null
import math import time t1 = time.time() N = 100000000 def count(n): total = 0 temp = [0]*n temp[0] = 1 while keepgoing(temp): if reversible(temp): #print(temp) total += 2 temp = increase(temp) return total def keepgoing(lst): if lst[0] == 10: ...
17.655172
49
0.558203