hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
f7c2cccccc839e171b2bcc80411c35e5879956eb
918
py
Python
src/test/tests/queries/py_queries.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/queries/py_queries.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/queries/py_queries.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: py_queires.py # # Tests: python filters / python queries # plots - Pseudocolor # # # Programmer: Cyrus Harrison # Date: Fri May 21 09:14:07 PDT 2010 # # Modifications: # # ...
22.95
104
0.568627
f7c2d6d8f2a710055da1433ebd8768102e770332
92
py
Python
src/robots/concurrency/__init__.py
severin-lemaignan/pyrobots
d5dd3bd54375e85802de7225556ad519b8b4e89d
[ "0BSD" ]
11
2017-03-06T17:19:59.000Z
2021-11-04T07:45:33.000Z
src/robots/concurrency/__init__.py
severin-lemaignan/pyrobots
d5dd3bd54375e85802de7225556ad519b8b4e89d
[ "0BSD" ]
2
2018-08-18T12:43:47.000Z
2019-04-23T13:03:26.000Z
src/robots/concurrency/__init__.py
severin-lemaignan/pyrobots
d5dd3bd54375e85802de7225556ad519b8b4e89d
[ "0BSD" ]
3
2018-04-24T10:25:53.000Z
2021-08-25T04:34:35.000Z
# coding=utf-8 from .action import action from .concurrency import * from .signals import *
18.4
26
0.76087
f7c316992e8d27476787f01bd193eef695cbf765
1,166
py
Python
blousebrothers/confs/management/commands/publish_confs.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/confs/management/commands/publish_confs.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/confs/management/commands/publish_confs.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from oscar.core.loading import get_classes from blousebrothers.confs.models import Conference from blousebrothers.confs.utils import get_or_create_product from django.db.models import Q ProductClass, Product, Category, ProductCategory, ProductImage = get_classes( ...
37.612903
106
0.593482
f7c319b8ab55247564e9b0b0fb065a39db5d7ae4
4,905
py
Python
testplan/testing/multitest/driver/tcp/client.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
testplan/testing/multitest/driver/tcp/client.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
testplan/testing/multitest/driver/tcp/client.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
"""TCPClient driver classes.""" import socket from schema import Use, Or from testplan.common.utils.timing import TimeoutException, TimeoutExceptionInfo from testplan.common.config import ConfigOption from testplan.common.utils.context import is_context, expand from testplan.common.utils.sockets import Client from ...
29.908537
79
0.605708
f7c3278eacd2a6f1f94ee2b9d70682d226011624
338
py
Python
Leet Code/1450_number_of_students_doing_home_work_at_a_given_time.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Leet Code/1450_number_of_students_doing_home_work_at_a_given_time.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Leet Code/1450_number_of_students_doing_home_work_at_a_given_time.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: arr = [0]*1002 for i in startTime: arr[i] += 1 for i in endTime: arr[i+1] -= 1 for i in range(1,1002): arr[i] += arr[i-1] return arr[qu...
28.166667
91
0.491124
f7c340ee3f1f452b3173a9e4744613cf1ab591a4
35
py
Python
gitlab-ci/src/git_changes/__init__.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
941
2021-05-10T08:14:14.000Z
2022-03-31T11:40:24.000Z
gitlab-ci/src/git_changes/__init__.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
4
2021-12-22T22:34:51.000Z
2022-03-31T07:34:19.000Z
gitlab-ci/src/git_changes/__init__.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
122
2021-05-10T08:21:23.000Z
2022-03-25T20:34:12.000Z
from .git_changes import * # noqa
17.5
34
0.714286
f7c3427f68f334d01b04130086003dce701532e5
2,537
py
Python
users/models.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
users/models.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
3
2021-03-30T13:46:24.000Z
2021-09-22T19:18:18.000Z
users/models.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
"""Models for the users app""" from django.db import models from django.db.models import Q from profiles.models import Profile class Tecnology(models.Model): pass class Location(models.Model): pass class User(models.Model): "Model for an user" username = models.EmailField( unique=True, ...
40.269841
100
0.693339
f7c345c94cbe3f6acb6fcfbc7f84a503f6e7cb50
1,352
py
Python
migrations/versions/44b4fd37b54e_.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
migrations/versions/44b4fd37b54e_.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
migrations/versions/44b4fd37b54e_.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
"""empty message Revision ID: 44b4fd37b54e Revises: 293c6eae1bb7 Create Date: 2015-12-01 09:12:21.569936 """ # revision identifiers, used by Alembic. revision = '44b4fd37b54e' down_revision = '293c6eae1bb7' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ### ...
36.540541
118
0.706361
f7c350091727e4427f84de3461dd6c6f9d96dff6
1,905
py
Python
src/Solution1705.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution1705.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution1705.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
import heapq class Solution: def eatenApples(self, apples: [int], days: [int]) -> int: n = len(apples) max_days = 0 h = [] for i in range(n): max_days = max(max_days, i+days[i]) heapq.heappush(h, (i+days[i], i, apples[i])) ans, min_rot, jeat = 0, 0, -...
40.531915
253
0.488189
f7c39e0767868d7fc5743e636588053d644d0fc9
4,000
py
Python
main.py
HardWare68/Trade-Notifier
500e00111f5614d62dd2d46565104a262dfe00d3
[ "Apache-2.0" ]
null
null
null
main.py
HardWare68/Trade-Notifier
500e00111f5614d62dd2d46565104a262dfe00d3
[ "Apache-2.0" ]
null
null
null
main.py
HardWare68/Trade-Notifier
500e00111f5614d62dd2d46565104a262dfe00d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Jonathan Carter # 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 ...
51.948052
362
0.7145
f7c3b9b4e3f2849865923ec467d98ce6c5a6e55b
2,343
py
Python
scattertext/features/FeatsFromGeneralInquirer.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
null
null
null
scattertext/features/FeatsFromGeneralInquirer.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
null
null
null
scattertext/features/FeatsFromGeneralInquirer.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
null
null
null
from collections import Counter from re import split from sys import version_info import pandas as pd from scattertext.Common import GENERAL_INQUIRER_URL from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc class FeatsFromGeneralInquirer(FeatsFromSpacyDoc): def __init__(self, use_lem...
33.471429
98
0.593683
f7c3d4b4fca37ee6f3758aaecec5f2175621d883
625
py
Python
test_keyerror_B.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
3
2020-12-31T10:06:42.000Z
2021-11-09T13:44:16.000Z
test_keyerror_B.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
test_keyerror_B.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
from aicsimageio import AICSImage, imread, imread_dask import czifile as zis filename = r"C:\Users\m1srh\Downloads\Tumor_H.E_uncompressed_TSeries_3\Tumor_H&E_uncompressed_TSeries_3.czi" # get CZI object czi = zis.CziFile(filename) # add axes and shape information using czifile package print(czi.axes) print(czi.shap...
23.148148
108
0.8096
f7c3deba8587496f06f95d688a38cec953b9461c
17,819
py
Python
pytato/loopy.py
alexfikl/pytato
6ece6bc8bc35b22fe000a60ded74e8845883d30b
[ "MIT" ]
null
null
null
pytato/loopy.py
alexfikl/pytato
6ece6bc8bc35b22fe000a60ded74e8845883d30b
[ "MIT" ]
1
2021-04-01T19:31:49.000Z
2021-04-01T19:31:49.000Z
pytato/loopy.py
kaushikcfd/pytato
0bf3fdfc35aec5911ca8aabd394c1d7207562edb
[ "MIT" ]
null
null
null
from __future__ import annotations __copyright__ = """ Copyright (C) 2021 Kaushik Kulkarni """ __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit...
35.99798
85
0.607385
f7c3fb79a36e270f952d36ebb3f7c3713f6c4421
1,166
py
Python
solutions/backspace-string-compare.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
solutions/backspace-string-compare.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
1
2022-02-22T15:42:54.000Z
2022-02-25T00:10:04.000Z
solutions/backspace-string-compare.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
# Leetcode 844. Backspace String Compare # # Link: https://leetcode.com/problems/backspace-string-compare/ # Difficulty: Easy # Solution using two pointers. # Complexity: # O(N) time | where N represent the lenght of the longest input string # O(1) space class Solution: def backspaceCompare(self, s: str, t: s...
25.911111
72
0.499142
f7c41396da459fef075d7df2766361f37a696210
2,164
py
Python
tests/mmm/topology/topology-provider-bridge.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2015-05-19T08:36:55.000Z
2015-05-19T08:36:55.000Z
tests/mmm/topology/topology-provider-bridge.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
tests/mmm/topology/topology-provider-bridge.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Midokura SARL # # 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...
36.066667
78
0.660351
f7c41ddd14b1dc15a20cd080924a910128636cac
445
py
Python
test/generate/autotest/23_RL_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/23_RL_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/23_RL_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-21 20:50:01 # AI # ins: RL A ######################################################### import random from .. import testutil as u from ..asmconst import * p = u.create_test() for x in range(4900): value = random.getrandbits(8) r = ((value ...
21.190476
57
0.417978
f7c437aadd0ec1f61642c252bb5e72481c03c6fe
4,113
py
Python
fanstatic/test_slot.py
derilinx/fanstatic
661ee3619c607aaa4f8c654d0e8093f260cf5288
[ "BSD-3-Clause" ]
null
null
null
fanstatic/test_slot.py
derilinx/fanstatic
661ee3619c607aaa4f8c654d0e8093f260cf5288
[ "BSD-3-Clause" ]
null
null
null
fanstatic/test_slot.py
derilinx/fanstatic
661ee3619c607aaa4f8c654d0e8093f260cf5288
[ "BSD-3-Clause" ]
1
2021-08-09T03:23:13.000Z
2021-08-09T03:23:13.000Z
import pytest from fanstatic import NeededResources, Library, Resource, Slot, SlotError def test_fill_slot(): needed = NeededResources() lib = Library('lib', '') slot = Slot(lib, '.js') a = Resource(lib, 'a.js', depends=[slot]) b = Resource(lib, 'b.js') needed.need(a, {slot: b}) resour...
25.079268
76
0.605884
f7c439d6fad5e1b1a60b3442ed4e964ecf41605d
556
py
Python
keonwoo/scheduler.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
keonwoo/scheduler.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
keonwoo/scheduler.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
from torch.optim.lr_scheduler import ReduceLROnPlateau from transformers import get_linear_schedule_with_warmup def get_scheduler(optimizer, args): if args.scheduler == "plateau": scheduler = ReduceLROnPlateau( optimizer, patience=0, factor=0.9, mode="max", verbose=True ) elif arg...
30.888889
71
0.68705
f7c43a6058c520a58a0a2da33a38b5a394896f6a
921
py
Python
onadata/koboform/__init__.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/koboform/__init__.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/koboform/__init__.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import from django.conf import settings url = False if hasattr(settings, 'KOBOFORM_URL') and settings.KOBOFORM_URL: url = settings.KOBOFORM_URL else: url = False active = bool(url) autoredirect = active if active and...
25.583333
82
0.677524
f7c43c3a9180476e7e1a6cad6d4e08201aa83906
6,882
py
Python
nerlogparser/dataformat/toconll.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
5
2018-12-20T00:51:30.000Z
2022-02-08T17:38:33.000Z
nerlogparser/dataformat/toconll.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
1
2022-02-16T08:49:51.000Z
2022-02-17T02:19:01.000Z
nerlogparser/dataformat/toconll.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
8
2020-03-20T11:10:16.000Z
2022-01-28T16:46:15.000Z
from nltk import pos_tag, conlltags2tree class ToConll(object): def __init__(self): self.entity_names = { 'timestamp': 'I-TIM', 'timestamp2': 'B-TIM', 'sequence_number': 'I-SEQ', 'level': 'I-LEV', 'hostname': 'I-HOS', 'service2': 'B-S...
41.963415
120
0.474717
f7c45886d4a60ba419896791a8db1b07307af5cd
1,173
py
Python
app/resources/v1/te/operacoes.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/resources/v1/te/operacoes.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/resources/v1/te/operacoes.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Controller para fornecer dados da CEE ''' from flask import request from flask_restful_swagger_2 import swagger from resources.base import BaseResource class OperacoesEscravoResource(BaseResource): ''' Classe de múltiplas incidências ''' CUSTOM_SWAGGER_PARAMS = [ {"name": "categorias", "required": ...
41.892857
99
0.667519
f7c47dec3014a6fe40710323ccd78c292b44564a
3,932
py
Python
examples/02/train/train_job.py
chenwuperth/smworkshop
13738a04d6cdcaf75a4c97b3ca3ed31349a9385f
[ "Apache-2.0" ]
null
null
null
examples/02/train/train_job.py
chenwuperth/smworkshop
13738a04d6cdcaf75a4c97b3ca3ed31349a9385f
[ "Apache-2.0" ]
null
null
null
examples/02/train/train_job.py
chenwuperth/smworkshop
13738a04d6cdcaf75a4c97b3ca3ed31349a9385f
[ "Apache-2.0" ]
2
2020-06-22T02:55:34.000Z
2020-07-09T10:18:48.000Z
""" Train job interacts with SageMaker using XGB """ import os import datetime import boto3 import pandas as pd import numpy as np import sagemaker from sklearn.model_selection import train_test_split from sklearn.datasets import load_boston from sagemaker.amazon.amazon_estimator import get_image_uri from ...sm_uti...
33.322034
267
0.725585
f7c480679925890832f6d60a5bca881c1caf4119
95,786
py
Python
Lib/test/test_doctest.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
4
2016-04-02T00:01:50.000Z
2017-07-13T02:11:04.000Z
Lib/test/test_doctest.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
Lib/test/test_doctest.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
""" Test script for doctest. """ from test import support import doctest import functools import os import sys # NOTE: There are some additional tests relating to interaction with # zipimport in the test_zipimport_support test module. ###################################################################### ## S...
32.240323
117
0.550352
f7c4869dd97fdda7a489e94dffeeeadd226d7a3a
1,290
py
Python
test/test_data_loader.py
villoro/expensor_personal
93296b782700d81beb5ee2450626b2292c74728a
[ "MIT" ]
2
2019-03-11T14:48:56.000Z
2021-01-02T00:20:41.000Z
test/test_data_loader.py
villoro/expensor_personal
93296b782700d81beb5ee2450626b2292c74728a
[ "MIT" ]
5
2019-01-08T10:43:22.000Z
2019-03-27T10:45:39.000Z
test/test_data_loader.py
villoro/expensor_personal
93296b782700d81beb5ee2450626b2292c74728a
[ "MIT" ]
null
null
null
""" Tests for utilities.py """ import unittest from src import constants as c from src import data_loader as dload class TestDataLoader(unittest.TestCase): """Test utilities""" # ------------------------------ io ------------------------------------------------------------ def test_dropbox_connecto...
28.666667
100
0.621705
f7c4a8ce0a356f2b92600e027af47bd27165013e
41,858
py
Python
txdav/caldav/datastore/test/test_implicit.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txdav/caldav/datastore/test/test_implicit.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txdav/caldav/datastore/test/test_implicit.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2005-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
32.778387
189
0.726098
f7c5080d0a6d54f13bdc1fd07b0630937ba8c2b2
12,227
py
Python
test/api/storage/test_folder_api.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
1
2022-01-14T10:06:26.000Z
2022-01-14T10:06:26.000Z
test/api/storage/test_folder_api.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
3
2019-07-17T15:01:31.000Z
2020-12-29T09:16:10.000Z
test/api/storage/test_folder_api.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="test_folder_api.py"> # Copyright (c) 2019 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining ...
43.824373
79
0.579128
f7c533d49410b687a1566e68cff79b6234b8e09f
3,592
py
Python
test/test_manylinuxXXXX_only.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
702
2017-03-23T16:30:24.000Z
2021-05-19T06:34:41.000Z
test/test_manylinuxXXXX_only.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
594
2017-03-20T23:13:42.000Z
2021-05-19T14:22:19.000Z
test/test_manylinuxXXXX_only.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
124
2017-03-31T14:13:26.000Z
2021-05-14T19:48:31.000Z
import platform import textwrap import pytest from . import test_projects, utils # TODO: specify these at runtime according to manylinux_image project_with_manylinux_symbols = test_projects.new_c_project( spam_c_top_level_add=textwrap.dedent( r""" #include <malloc.h> #include <stdlib.h> ...
39.043478
115
0.663976
f7c539db5789430e90c59e862a780289bc53c73c
955
py
Python
setup.py
aolarchive/Hydro
8580aebc30694156c436e5ba7470d3fcbb46896b
[ "MIT" ]
42
2015-03-04T09:05:00.000Z
2018-12-01T15:13:48.000Z
setup.py
aolarchive/Hydro
8580aebc30694156c436e5ba7470d3fcbb46896b
[ "MIT" ]
5
2015-05-11T08:18:12.000Z
2016-03-22T19:11:01.000Z
setup.py
Convertro/Hydro
8580aebc30694156c436e5ba7470d3fcbb46896b
[ "MIT" ]
4
2015-03-05T09:07:27.000Z
2018-12-01T15:13:49.000Z
__author__ = 'moshebasanchig' from setuptools import setup, find_packages from pip.req import parse_requirements import pip VERSION = '0.1.7' requirements = [str(ir.req) for ir in parse_requirements('requirements.txt', session=pip.download.PipSession())] setup( name='Hydro', version=VERSION, packages=f...
27.285714
112
0.677487
f7c5466df90140bc13840de940732d31b8ceef08
507
py
Python
workflows/templatetags/fullpath.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
4
2017-12-13T10:59:42.000Z
2019-11-03T17:26:19.000Z
workflows/templatetags/fullpath.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
21
2017-04-05T08:03:54.000Z
2022-03-11T23:16:03.000Z
workflows/templatetags/fullpath.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
null
null
null
from django import template from django.conf import settings register = template.Library() @register.simple_tag def static_fullpath(request, path): protocol = 'https://' if request.is_secure() else 'http://' host = request.get_host() static_url = settings.STATIC_URL return protocol + host + static_ur...
28.166667
63
0.710059
f7c54757ca7af9d9cdd1d3a67548517964102968
2,595
py
Python
clif/testing/python/classes_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/testing/python/classes_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/testing/python/classes_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in writing, ...
32.037037
74
0.709441
f7c554e9890ab8318f2bdecf4a67ca0072b1a386
5,377
py
Python
models/detection/SSD/priorbox_optimization/priors_optimization_utils.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
null
null
null
models/detection/SSD/priorbox_optimization/priors_optimization_utils.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
1
2021-06-08T21:53:42.000Z
2021-06-08T21:53:42.000Z
models/detection/SSD/priorbox_optimization/priors_optimization_utils.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
null
null
null
from itertools import product import numpy as np import pandas as pd import torch from trains import Task from models.detection.SSD.priorbox_optimization import PriorOptimizationInput, ImageSizeTuple from models.detection.SSD.priorbox_optimization.bbox_clustering import get_box_pairwise_iou def collect_ground_truth...
42.338583
123
0.657244
f7c5594d9db0ae56568459400a2ff24ca3bcfbf8
1,903
py
Python
timestep.py
nadiahpk/carryover-local-adaptation
6784aff2207ad4c2c53d128e9f1f2c9fb9e24218
[ "Unlicense" ]
null
null
null
timestep.py
nadiahpk/carryover-local-adaptation
6784aff2207ad4c2c53d128e9f1f2c9fb9e24218
[ "Unlicense" ]
null
null
null
timestep.py
nadiahpk/carryover-local-adaptation
6784aff2207ad4c2c53d128e9f1f2c9fb9e24218
[ "Unlicense" ]
null
null
null
import random as random #import sys #sys.path.append("../../current_code/") from carryover import noOffspringFnc from carryover import gene2bin from carryover import offspringGenotypeFnc from carryover import dispFnc from carryover import compnSimpleFnc def timestep(parameters, ecosystem, landscape): # reproduct...
32.810345
160
0.63216
f7c5d25d9be1f620469495bbde5de0f3269308fe
607
py
Python
limix/io/util.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/io/util.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/io/util.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
from os.path import exists def file_type(filepath): imexts = ['.png', '.bmp', '.jpg', 'jpeg'] if filepath.endswith('.hdf5') or filepath.endswith('.h5'): return 'hdf5' if filepath.endswith('.csv'): return 'csv' if filepath.endswith('.grm.raw'): return 'grm.raw' if filepath.e...
26.391304
76
0.589786
f7c5e090683353a049eec0eb996577c3c90238da
16,116
py
Python
kloppy/infra/serializers/event/wyscout/serializer.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
kloppy/infra/serializers/event/wyscout/serializer.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
kloppy/infra/serializers/event/wyscout/serializer.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
import json import logging from typing import Dict, List, Tuple from kloppy.domain import ( BallOutEvent, BodyPart, BodyPartQualifier, CardEvent, CardType, CounterAttackQualifier, Dimension, EventDataset, FoulCommittedEvent, GenericEvent, GoalkeeperAction, GoalkeeperActi...
35.41978
94
0.591276
f7c61d55a2cb1814f28808e2b353a40af0c12fc8
8,196
py
Python
src/robot/reporting/jsmodelbuilders.py
DirkRichter/robotframework
ae5c931834e56c195e76e5d6bcdfcd6a73babaf2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/reporting/jsmodelbuilders.py
DirkRichter/robotframework
ae5c931834e56c195e76e5d6bcdfcd6a73babaf2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/reporting/jsmodelbuilders.py
DirkRichter/robotframework
ae5c931834e56c195e76e5d6bcdfcd6a73babaf2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
36.753363
86
0.607613
f7c64e158d66e7dd68184e6613fb75301180790d
931
py
Python
JDjangoDemo/datas_tools/datas.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjangoDemo/datas_tools/datas.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjangoDemo/datas_tools/datas.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
__all__ = [ 'Code', ] import string, random, re class Code: CONTANST = string.ascii_letters + string.digits # 去除掉不易分辨的字符的随机串 def get_code(self, n): t_str = '' length = self.len_constant for _ in range(n): t_str += self.easy_constant[random.randint(0, length-1)] ...
22.166667
68
0.570354
f7c66893bc1af7c2fc4da80641344907ce942644
3,176
py
Python
_modules/pg.py
felixhummel/saltstates
505b3c31656c403f5af58abb3f46c28016fcaa6f
[ "MIT" ]
7
2015-02-04T18:46:34.000Z
2019-09-08T19:35:16.000Z
_modules/pg.py
felixhummel/saltstates
505b3c31656c403f5af58abb3f46c28016fcaa6f
[ "MIT" ]
2
2017-03-08T23:31:30.000Z
2019-09-09T13:06:20.000Z
_modules/pg.py
felixhummel/saltstates
505b3c31656c403f5af58abb3f46c28016fcaa6f
[ "MIT" ]
1
2018-03-24T20:35:18.000Z
2018-03-24T20:35:18.000Z
#!/usr/bin/env python # vim: set fileencoding=utf-8 filetype=python : """ Simple wrapper for pg_dump and pg_restore. http://www.postgresql.org/docs/9.4/static/app-pgrestore.html """ from __future__ import unicode_literals from datetime import datetime import logging log = logging.getLogger(__name__) import os.path f...
30.834951
78
0.631927
f7c67629fe5b25f40f1555f287bb49019d193076
5,262
py
Python
gittracker/parsers/commandparser.py
paxtonfitzpatrick/gittracker
307686d29128a563d57230b1d1fa2e2568ac734b
[ "BSD-3-Clause" ]
1
2020-04-14T15:47:34.000Z
2020-04-14T15:47:34.000Z
gittracker/parsers/commandparser.py
paxtonfitzpatrick/gittracker
307686d29128a563d57230b1d1fa2e2568ac734b
[ "BSD-3-Clause" ]
10
2020-04-06T19:41:24.000Z
2020-04-25T23:22:27.000Z
gittracker/parsers/commandparser.py
paxtonfitzpatrick/gittracker
307686d29128a563d57230b1d1fa2e2568ac734b
[ "BSD-3-Clause" ]
null
null
null
from argparse import ArgumentParser # noinspection PyProtectedMember class CommandParser(ArgumentParser): def __init__( self, name=None, aliases=None, py_function=None, subcommands=None, short_description=None, **kwargs ): ...
36.797203
82
0.614405
f7c6a381b12e37fa0d915f0d57cf8f2232c589b2
1,979
py
Python
disvis/IO/mmcif.py
haddocking/disvis
a922bd079b41ad5ef3ac33f4e68968f8978626d2
[ "Apache-2.0" ]
4
2017-12-27T13:09:43.000Z
2021-07-20T09:45:58.000Z
disvis/IO/mmcif.py
haddocking/disvis
a922bd079b41ad5ef3ac33f4e68968f8978626d2
[ "Apache-2.0" ]
17
2015-06-08T03:43:00.000Z
2022-03-09T13:12:16.000Z
disvis/IO/mmcif.py
haddocking/disvis
a922bd079b41ad5ef3ac33f4e68968f8978626d2
[ "Apache-2.0" ]
11
2015-07-06T18:25:27.000Z
2020-10-08T13:14:16.000Z
from __future__ import print_function import sys from collections import OrderedDict import numpy as np def parse_cif(infile): if isinstance(infile, file): pass elif isinstance(infile, str): infile = open(infile) else: raise TypeError("Input should either be a file or string.") ...
33.542373
68
0.576049
f7c6aefa5c5f06ba346638b91047164a2cf20cc2
3,279
py
Python
qa/rpc-tests/cfund-proposal-state-expired.py
juguelio/navcoin-core
efbd3447475cc55e597e756a6293197919b3dbca
[ "MIT" ]
null
null
null
qa/rpc-tests/cfund-proposal-state-expired.py
juguelio/navcoin-core
efbd3447475cc55e597e756a6293197919b3dbca
[ "MIT" ]
1
2018-11-16T03:02:58.000Z
2018-11-16T03:02:58.000Z
qa/rpc-tests/cfund-proposal-state-expired.py
juguelio/navcoin-core
efbd3447475cc55e597e756a6293197919b3dbca
[ "MIT" ]
1
2018-10-27T22:01:25.000Z
2018-10-27T22:01:25.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 The Navcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import NavCoinTestFramework from test_framework.util import * import time ...
38.576471
135
0.654163
f7c6ba694eedca316743d192f7a00f2a38741124
3,019
py
Python
chainer/functions/nonparameterized_convolution_2d.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/functions/nonparameterized_convolution_2d.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/functions/nonparameterized_convolution_2d.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import numpy from chainer import cuda from chainer import function from chainer.functions import convolution_2d as conv2d_module from chainer.utils import type_check class NonparameterizedConvolution2D(function.Function): """Two-dimensional nonparameterized convolution class. Args: stride (int or (...
31.123711
78
0.572044
f7c6c2922c4e47c43f7f5158eba1c382f592a96e
898
py
Python
mycef.py
sillyemperor/mypynotebook
27a3847764a422fee05590e6d2ef145256f558de
[ "MIT" ]
null
null
null
mycef.py
sillyemperor/mypynotebook
27a3847764a422fee05590e6d2ef145256f558de
[ "MIT" ]
null
null
null
mycef.py
sillyemperor/mypynotebook
27a3847764a422fee05590e6d2ef145256f558de
[ "MIT" ]
null
null
null
from cefpython3 import cefpython as cef import platform import sys def main(): check_versions() sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on error cef.Initialize() cef.CreateBrowserSync(url="https://fortune.chinanews.com/", window_title="Hello World!") ...
32.071429
78
0.655902
f7c6e95af76a47af0665575d9050b52114b6ac15
8,118
py
Python
vyperlogix/boto/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/boto/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/boto/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
__copyright__ = """\ (c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial educational use only., http://www.VyperLogix.com for details THE AUTHOR VYPER LOGIX CORP DISCLAIMS ALL WARRA...
45.606742
172
0.653979
f7c6fc23893a298d12c6324fc7663099d9f4208e
8,724
py
Python
src/video_player.py
c3n21/hidamari
776e9ca0415a80759fdf9feab53d883b56d868d5
[ "Apache-2.0" ]
89
2020-12-29T02:10:47.000Z
2022-03-31T05:50:41.000Z
src/video_player.py
c3n21/hidamari
776e9ca0415a80759fdf9feab53d883b56d868d5
[ "Apache-2.0" ]
42
2020-12-29T02:14:03.000Z
2022-03-29T08:34:21.000Z
src/video_player.py
c3n21/hidamari
776e9ca0415a80759fdf9feab53d883b56d868d5
[ "Apache-2.0" ]
13
2020-12-29T02:10:49.000Z
2022-03-05T21:45:47.000Z
import ctypes import pathlib import random import subprocess import tempfile import gi import vlc from PIL import Image, ImageFilter gi.require_version("Gtk", "3.0") from gi.repository import Gtk, Gdk, Gio from base_player import BasePlayer from utils import list_local_video_dir from commons import * class VLCWidg...
36.810127
119
0.631018
f7c70ae3bc0b8ae1f6f9fee2fa64ed4ecb10b740
8,631
py
Python
tests/test_find_near_matches.py
klauer/fuzzysearch
55fc21e469495bc84fe6f81b0c148e105765182d
[ "MIT" ]
207
2015-09-15T00:24:18.000Z
2022-03-31T07:42:15.000Z
tests/test_find_near_matches.py
klauer/fuzzysearch
55fc21e469495bc84fe6f81b0c148e105765182d
[ "MIT" ]
37
2015-02-07T12:16:25.000Z
2022-03-22T15:18:16.000Z
tests/test_find_near_matches.py
klauer/fuzzysearch
55fc21e469495bc84fe6f81b0c148e105765182d
[ "MIT" ]
13
2015-01-21T14:35:31.000Z
2022-01-24T12:14:40.000Z
from tests.compat import unittest, mock from tests.test_search_exact import TestSearchExactBase from tests.test_substitutions_only import TestSubstitionsOnlyBase from tests.test_levenshtein import TestFindNearMatchesLevenshteinBase from fuzzysearch import find_near_matches, Match from fuzzysearch.common import FuzzySe...
35.665289
93
0.613023
f7c718c79522f335f1b93066eb1624c6a1878d6a
5,752
py
Python
utils/rot_utils_old.py
msieb1/LTCN
c9432891327774edf8193e885cc4f10f53fcaa60
[ "MIT" ]
1
2020-08-21T03:47:33.000Z
2020-08-21T03:47:33.000Z
utils/rot_utils_old.py
msieb1/LTCN
c9432891327774edf8193e885cc4f10f53fcaa60
[ "MIT" ]
null
null
null
utils/rot_utils_old.py
msieb1/LTCN
c9432891327774edf8193e885cc4f10f53fcaa60
[ "MIT" ]
null
null
null
import torch import numpy as np import math from ipdb import set_trace # Checks if a matrix is a valid rotation matrix. def isRotationMatrix(R) : Rt = np.transpose(R) shouldBeIdentity = np.dot(Rt, R) I = np.identity(3, dtype = R.dtype) n = np.linalg.norm(I - shouldBeIdentity) return n < 1e-6 ...
33.835294
108
0.463143
f7c71ab3ae6ddb5606cd208bf7347ce189016526
2,035
py
Python
twilio/http/http_client.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/http/http_client.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/http/http_client.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
from requests import Request, Session from twilio.http import HttpClient from twilio.http.response import Response from twilio.http.request import Request as TwilioRequest class TwilioHttpClient(HttpClient): """ General purpose HTTP Client for interacting with the Twilio API """ def __init__(self, po...
39.134615
100
0.669287
f7c71d4efed4fea29353f39ccc1436558e41b73e
13,852
py
Python
mopidy/commands.py
liamw9534/mopidy
9dc8038025cdde07df308e1ea2037de3854fbb68
[ "Apache-2.0" ]
1
2015-02-13T23:59:44.000Z
2015-02-13T23:59:44.000Z
mopidy/commands.py
liamw9534/mopidy
9dc8038025cdde07df308e1ea2037de3854fbb68
[ "Apache-2.0" ]
1
2015-01-05T10:40:38.000Z
2015-03-21T15:42:16.000Z
mopidy/commands.py
liamw9534/mopidy
9dc8038025cdde07df308e1ea2037de3854fbb68
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, unicode_literals import argparse import collections import logging import os import sys import glib import gobject from mopidy import config as config_lib, exceptions from mopidy.audio import Audio from mopidy.core import Core from mopidy.utils import deps, process, versioning...
33.703163
78
0.612042
f7c7768eca02588b803dbd036656357dbdcd39dc
7,418
py
Python
bilby/core/sampler/kombine.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/core/sampler/kombine.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/core/sampler/kombine.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
1
2021-09-17T10:15:41.000Z
2021-09-17T10:15:41.000Z
from __future__ import absolute_import, print_function from ..utils import logger, get_progress_bar import numpy as np import os from .emcee import Emcee class Kombine(Emcee): """bilby wrapper kombine (https://github.com/bfarr/kombine) All positional and keyword arguments (i.e., the args and kwargs) passed t...
44.419162
120
0.629145
f7c7a15614013ec30edc8a1e448dcacb547d72ba
4,174
py
Python
vctl/objects/logs.py
GMH501/vctl-vsphere-cli
eaa26b79e13917ce06cf3a23f19a1c4b6761dffa
[ "Apache-2.0" ]
1
2020-07-12T14:27:34.000Z
2020-07-12T14:27:34.000Z
vctl/objects/logs.py
GMH501/vctl-vsphere-cli
eaa26b79e13917ce06cf3a23f19a1c4b6761dffa
[ "Apache-2.0" ]
3
2021-03-25T23:59:37.000Z
2021-06-02T02:28:17.000Z
vctl/objects/logs.py
GMH501/vctl-vsphere-cli
eaa26b79e13917ce06cf3a23f19a1c4b6761dffa
[ "Apache-2.0" ]
null
null
null
import re import sys import urllib3 import click from pyVmomi import vim, vmodl import requests from vctl.objects.datastore import get_http_cookie from vctl.helpers.helpers import load_context, scrape from vctl.helpers.vmware import get_obj from vctl.helpers.auth import inject_token urllib3.disable_warnings(urllib...
31.862595
95
0.588884
f7c7af165dbe28825c2326745437ce54a869c261
627
py
Python
terrascript/provider/PortOfPortland/activedirectory.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/PortOfPortland/activedirectory.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/PortOfPortland/activedirectory.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/PortOfPortland/activedirectory.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:10:54 UTC) import terrascript class activedirectory(terrascript.Provider): """A Terraform provider for Microsoft Active Directory""" __description__ = "A Terraform provider for Microsoft A...
31.35
87
0.754386
f7c7bd272ad7b676543802c9171593e09e8ae632
6,736
py
Python
sdk/eventgrid/azure-eventgrid/azure/eventgrid/_helpers.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/eventgrid/azure-eventgrid/azure/eventgrid/_helpers.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/eventgrid/azure-eventgrid/azure/eventgrid/_helpers.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
36.608696
118
0.679929
f7c7cf646ce1fec99fc9b587ea7598fdb30cafbd
3,561
py
Python
mi/dataset/parser/adcpa_m_glider.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/adcpa_m_glider.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/adcpa_m_glider.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.dataset.parser.adcpa_m_glider @file marine-integrations/mi/dataset/parser/adcpa_m_glider.py @author Jeff Roy @brief Particle classes for the moas_gl_adcpa dataset driver These particles are parsed by the common PD0 Parser and Abstract particle class in file adcp_pd0.py Re...
41.406977
82
0.577647
f7c7dc45129677ca04cb585fc01a4f5b1e26f894
13,311
py
Python
QUANTAXIS_Monitor_GUI/TasksByProcess/SubSeleniumProcess_not_used.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
2
2018-10-29T12:01:55.000Z
2021-03-05T10:28:59.000Z
QUANTAXIS_Monitor_GUI/TasksByProcess/SubSeleniumProcess_not_used.py
frosthaoz/QUANTAXIS
f5f482418e5f6e23ac3530089b8d17300d931b48
[ "MIT" ]
null
null
null
QUANTAXIS_Monitor_GUI/TasksByProcess/SubSeleniumProcess_not_used.py
frosthaoz/QUANTAXIS
f5f482418e5f6e23ac3530089b8d17300d931b48
[ "MIT" ]
3
2018-11-29T07:07:56.000Z
2021-02-09T17:24:56.000Z
import socket import re from selenium import webdriver import sys from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.common.exceptions import WebDriverException import time import os from QUANTAXIS.QAUtil import (DATABASE) ''' https://www.cn...
37.181564
114
0.588761
f7c7e3e37f5a17b101c2f3dea5e644d8488ea824
1,718
py
Python
workon/forms/business_hours.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/forms/business_hours.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/forms/business_hours.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
import re import os import logging import locale import json import datetime, time from django import forms from django.conf import settings from django.db.models import CharField from django.core.exceptions import ValidationError from django.forms.utils import flatatt from django.utils.safestring import mark_safe l...
27.709677
89
0.558207
f7c813cd3ecec93dee92480530ffcae65f977788
9,991
py
Python
doc/conf.py
IMS-ML-Lab/geometric-smote
0956d779b0b4b797f851617a6f309e2674ad9498
[ "MIT" ]
13
2019-07-09T16:07:26.000Z
2020-11-16T08:08:18.000Z
doc/conf.py
AlgoWit/geometric-smote
0956d779b0b4b797f851617a6f309e2674ad9498
[ "MIT" ]
8
2019-07-08T13:27:28.000Z
2020-10-21T15:11:19.000Z
doc/conf.py
AlgoWit/geometric-smote
0956d779b0b4b797f851617a6f309e2674ad9498
[ "MIT" ]
8
2019-07-08T13:06:48.000Z
2020-12-03T18:18:09.000Z
# -*- coding: utf-8 -*- # # geometric-smote documentation build configuration file, created by # sphinx-quickstart on Mon Jan 18 14:44:12 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fil...
31.418239
79
0.721349
f7c82d41d1462999657cbdf3e1ad496760e0053f
12,053
py
Python
constants.py
gruiick/pySpaceTrader
64de4de5fc57ef22e891d95a21d62f35f5ccb025
[ "BSD-2-Clause" ]
1
2020-04-08T08:00:08.000Z
2020-04-08T08:00:08.000Z
constants.py
gruiick/pySpaceTrader
64de4de5fc57ef22e891d95a21d62f35f5ccb025
[ "BSD-2-Clause" ]
5
2021-05-28T13:02:55.000Z
2021-06-25T10:44:17.000Z
constants.py
gruiick/pySpaceTrader
64de4de5fc57ef22e891d95a21d62f35f5ccb025
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # # $Id: constants.py 1546.v0.2-dev.1 $ # SPDX-License-Identifier: BSD-2-Clause """ Game constants, to be imported From: https://github.com/blind-coder/SpaceTrader/blob/master/SpaceTrader/src/main/java/de/anderdonau/spacetrader/Main.java https://github.com/blind-...
65.505435
191
0.543018
f7c8479a9ca47519e4767960d049758d126f1533
18,090
py
Python
celery/tests/test_worker.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/tests/test_worker.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/tests/test_worker.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
import socket import unittest2 as unittest from datetime import datetime, timedelta from multiprocessing import get_logger from Queue import Empty from carrot.backends.base import BaseMessage from carrot.connection import BrokerConnection from celery.utils.timer2 import Timer from celery import conf from celery.deco...
33.010949
78
0.613101
f7c85dc02f0abbcd2a2065e92a5868a2bf63b416
14,907
py
Python
src/robotide/contrib/testrunner/runprofiles.py
castillr/RIDE
162c78a3f69a842e84992b0fa98501c9dd42f99c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/contrib/testrunner/runprofiles.py
castillr/RIDE
162c78a3f69a842e84992b0fa98501c9dd42f99c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/contrib/testrunner/runprofiles.py
castillr/RIDE
162c78a3f69a842e84992b0fa98501c9dd42f99c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2010 Orbitz WorldWide # # Ammended by Helio Guilherme <helioxentric@gmail.com> # Copyright 2011-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
38.223077
97
0.624941
f7c862b3e47365dd3201cd569329e225335a0ff7
4,835
py
Python
packages/fetchai/skills/error/handlers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
packages/fetchai/skills/error/handlers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
packages/fetchai/skills/error/handlers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
36.628788
122
0.622958
f7c879ae686368a2d5d45cc8aa9784a79f7b5206
666
py
Python
tests/app/test_secrets.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/test_secrets.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/test_secrets.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from unittest import TestCase from app.secrets import validate_required_secrets, EXPECTED_SECRETS class TestSecrets(TestCase): def test_validate_required_secrets_fails_on_missing(self): secrets = {"secrets": {}} with self.assertRaises(Exception) as exception: validate_required_secre...
30.272727
77
0.711712
f7c8caa00d83ed927f6149d2d6ecb8f6908eeff3
14,399
py
Python
extract_features.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
1
2019-11-28T10:03:09.000Z
2019-11-28T10:03:09.000Z
extract_features.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
extract_features.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
32.949657
82
0.672894
f7c8d561671fc955e933983df2077af10102db20
18,926
py
Python
habitat/sims/habitat_simulator/habitat_simulator.py
Sapio-S/habitat-lab
47985177d6e6932db98ee6698371253182cf96fb
[ "MIT" ]
null
null
null
habitat/sims/habitat_simulator/habitat_simulator.py
Sapio-S/habitat-lab
47985177d6e6932db98ee6698371253182cf96fb
[ "MIT" ]
null
null
null
habitat/sims/habitat_simulator/habitat_simulator.py
Sapio-S/habitat-lab
47985177d6e6932db98ee6698371253182cf96fb
[ "MIT" ]
2
2021-08-20T13:39:53.000Z
2022-02-12T07:47:34.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from enum import Enum from typing import Any, List, Optional import numpy as np from gym import Space, spaces from habi...
36.049524
151
0.636532
f7c8eb46eac1df3efedada6d400e338f63470328
5,668
py
Python
dc2g/planners/DC2GPlanner.py
mit-acl/dc2g
6f739e191c51acd5fb4ecb50609e1c26a10782fd
[ "MIT" ]
11
2019-08-28T04:09:38.000Z
2022-02-27T16:04:06.000Z
dc2g/planners/DC2GPlanner.py
mit-acl/dc2g
6f739e191c51acd5fb4ecb50609e1c26a10782fd
[ "MIT" ]
null
null
null
dc2g/planners/DC2GPlanner.py
mit-acl/dc2g
6f739e191c51acd5fb4ecb50609e1c26a10782fd
[ "MIT" ]
3
2020-07-08T15:11:02.000Z
2020-10-23T07:17:00.000Z
from dc2g.planners.FrontierPlanner import FrontierPlanner import numpy as np from skimage.transform import resize import tensorflow as tf import json import os import matplotlib.pyplot as plt class DC2GPlanner(FrontierPlanner): def __init__(self, model_name, traversable_colors, goal_color, room_or_object_goal, c...
52.481481
250
0.682781
f7c8f5f313500240309bcaa383421b809ed8ad26
494
py
Python
code/project-euler/src/009.py
taseikyo/til
8f703e69a49cbd9854062b102ba307c775d43a56
[ "MIT" ]
1
2021-09-01T14:39:12.000Z
2021-09-01T14:39:12.000Z
code/project-euler/src/009.py
taseikyo/til
8f703e69a49cbd9854062b102ba307c775d43a56
[ "MIT" ]
null
null
null
code/project-euler/src/009.py
taseikyo/til
8f703e69a49cbd9854062b102ba307c775d43a56
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019-07-10 16:14:50 # @Author : Lewis Tian (taseikyo@gmail.com) # @Link : github.com/taseikyo # @Version : Python3.7 # https://projecteuler.net/problem=9 TRIPLET = 1000 def main(): for a in range(1, TRIPLET + 1): for b in range(a + 1, TRIPLE...
20.583333
44
0.524291
f7c91b91f7343355b6f5c03573e0e9e8d5557b48
5,303
py
Python
test/unit/test_eapilib.py
devtodor/pyeapi-py3
a1b7241d489527fd69d4fb5135f881ebd4dbb970
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_eapilib.py
devtodor/pyeapi-py3
a1b7241d489527fd69d4fb5135f881ebd4dbb970
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_eapilib.py
devtodor/pyeapi-py3
a1b7241d489527fd69d4fb5135f881ebd4dbb970
[ "BSD-3-Clause" ]
null
null
null
import unittest import json from mock import Mock, patch import pyeapi.eapilib class TestEapiConnection(unittest.TestCase): def test_execute_valid_response(self): response_dict = dict(jsonrpc='2.0', result=[], id=id(self)) mock_send = Mock(name='send') mock_send.return_value = json.dump...
35.590604
83
0.689233
f7c939ae37ed812947ed7edf76a717cb0efd515a
14,138
py
Python
tests/app/service_invite/test_service_invite_rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/service_invite/test_service_invite_rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/service_invite/test_service_invite_rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
import json import uuid import pytest from flask import current_app from freezegun import freeze_time from notifications_utils.url_safe_token import generate_token from app.models import EMAIL_AUTH_TYPE, SMS_AUTH_TYPE, Notification from tests import create_authorization_header from tests.app.db import create_invited_...
38.628415
114
0.710709
f7c93ae1e4b4620d69dcf9ba82e02e70272ecd00
2,990
py
Python
python/app/plugins/port/Micosoft/MS17_010.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/port/Micosoft/MS17_010.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/port/Micosoft/MS17_010.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import socket import binascii from urllib.parse import urlparse class MS17_010_BaseVerify: def __init__(self, url): self.info = { 'name': 'MS17-010漏洞', 'description': 'MS17-010SMB远程溢出漏洞,端口139,445,影响范围为: Windows NT,Windows 2000、Windows XP、Windows 2003、Windows ...
41.527778
244
0.619398
f7c94bfab3936b4b4be5d1e2b78243887ab42687
19,765
py
Python
src/panoptes/utils/images/bayer.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
3
2019-03-26T03:35:46.000Z
2021-08-16T16:59:12.000Z
src/panoptes/utils/images/bayer.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
254
2019-03-29T05:42:54.000Z
2022-02-18T05:03:09.000Z
src/panoptes/utils/images/bayer.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
9
2019-03-25T09:55:35.000Z
2021-05-18T02:45:17.000Z
from decimal import Decimal from enum import IntEnum import numpy as np from astropy.io import fits from astropy.stats import SigmaClip from loguru import logger from panoptes.utils.images import fits as fits_utils from photutils import Background2D from photutils import BkgZoomInterpolator from photutils import MeanB...
36.875
110
0.533316
f7c9610b7fcef49987b2b67bbe2368a84be08f07
25,411
py
Python
gradio/interface.py
hank-ai/gradio
00af5ec1abbaa3160ec45f58a22909f6453f7182
[ "Apache-2.0" ]
null
null
null
gradio/interface.py
hank-ai/gradio
00af5ec1abbaa3160ec45f58a22909f6453f7182
[ "Apache-2.0" ]
null
null
null
gradio/interface.py
hank-ai/gradio
00af5ec1abbaa3160ec45f58a22909f6453f7182
[ "Apache-2.0" ]
1
2021-04-30T04:31:13.000Z
2021-04-30T04:31:13.000Z
""" This is the core file in the `gradio` package, and defines the Interface class, including methods for constructing the interface using the input and output types. """ import gradio from gradio.inputs import InputComponent from gradio.outputs import OutputComponent from gradio import networking, strings, utils from...
46.970425
495
0.620637
f7c9721b9dddc1ee8a3a5ad1f0c415cfb56c9efb
1,870
py
Python
app.py
bfontaine/web-pp
eff6f52fe1d28c6ddd958b78475d49d9140996ec
[ "MIT" ]
1
2015-11-11T14:25:57.000Z
2015-11-11T14:25:57.000Z
app.py
bfontaine/web-pp
eff6f52fe1d28c6ddd958b78475d49d9140996ec
[ "MIT" ]
1
2015-10-12T13:05:45.000Z
2015-10-12T13:05:45.000Z
app.py
bfontaine/web-pp
eff6f52fe1d28c6ddd958b78475d49d9140996ec
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pp.store import redis from pp.search import search_url from flask import Flask, Response, render_template, request, redirect, abort from flask.ext.assets import Environment, Bundle from flask.ext.misaka import Misaka from flask.ext.cache import Cache from htmlmin.minify import html_minify ...
24.933333
79
0.651337
f7c973eae6a901d567878b19ba49d31be42c5415
2,417
py
Python
tests/common/test_run/ascend/logsigmoid_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/logsigmoid_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/logsigmoid_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-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...
43.945455
129
0.709557
f7c980b63ded754d3c5abd92f5ca6d819b2f8058
15,711
py
Python
ios.py
groschovskiy/ldpush
acc6ec25aa629dbbb9bf1722b9e12a3ae61b1a3f
[ "Apache-2.0" ]
34
2015-01-15T17:54:51.000Z
2021-10-14T15:12:12.000Z
ios.py
groschovskiy/ldpush
acc6ec25aa629dbbb9bf1722b9e12a3ae61b1a3f
[ "Apache-2.0" ]
1
2019-07-17T22:27:57.000Z
2019-07-17T22:27:57.000Z
ios.py
groschovskiy/ldpush
acc6ec25aa629dbbb9bf1722b9e12a3ae61b1a3f
[ "Apache-2.0" ]
18
2015-01-25T17:02:30.000Z
2021-02-10T02:37:55.000Z
#!/usr/bin/python # # Copyright 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.807792
78
0.606009
f7c98663177d92abdaece79dbeb6481ccc8d5dc5
2,051
py
Python
stationary-bootstrap/StationaryBootstrap.py
qnity/insurance_python
8dff5e365e3749b76adaeea90d89909af5f3c1b0
[ "MIT" ]
8
2021-12-12T17:47:29.000Z
2022-03-05T09:41:15.000Z
StationaryBootstrap.py
qnity/stationary_bootstrap_python
4883c47f853b9428d00e2ba12bf9164177471e13
[ "MIT" ]
6
2022-03-08T13:14:23.000Z
2022-03-29T12:57:42.000Z
stationary-bootstrap/StationaryBootstrap.py
qnity/insurance_python
8dff5e365e3749b76adaeea90d89909af5f3c1b0
[ "MIT" ]
null
null
null
import numpy as np def StationaryBootstrap(data: np.ndarray, m, sampleLength)-> np.ndarray: """ Returns a bootstraped sample of the time-series "data" of length "sampleLength. The algorithm used is stationary bootstrap from 1994 Politis & Romano. Args: data ... ndarray array....
36.625
127
0.541199
f7c9cec377eaaf1e7311ce151be4a1e7ddac4cff
1,630
py
Python
app/accessdata.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
3
2015-07-09T18:49:20.000Z
2021-04-19T03:20:12.000Z
app/accessdata.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
1
2016-07-20T23:19:03.000Z
2016-07-20T23:19:03.000Z
app/accessdata.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
4
2015-05-13T07:26:57.000Z
2022-01-25T23:19:00.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # vim: sw=4:expandtab # # copyright 2014 Hrishikesh K B <hrishi.kb@gmail.com> # Copyright 2008 Emanuele Rocca <ema@galliera.it> # Copyright 2008 Marco De Benedetto <debe@galliera.it> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file...
35.434783
76
0.732515
f7c9d6dc7c12ed36e256538d1da9ab3749dbd444
2,235
py
Python
napari/_qt/qt_eliding_label.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_eliding_label.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
1
2020-10-15T19:31:09.000Z
2020-10-15T19:39:33.000Z
napari/_qt/qt_eliding_label.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
from qtpy.QtCore import QPoint, QRect, QSize, Qt from qtpy.QtGui import QFontMetrics, QPainter, QTextLayout from qtpy.QtWidgets import QFrame, QWidget class MultilineElidedLabel(QFrame): """A multiline QLabel-like widget that elides the last line. Behaves like a multiline QLabel, but will fill the available ...
32.867647
79
0.574944
f7c9fd03be6582f676378df5b449fde8c8db08b0
2,394
py
Python
smbus2_asyncio/__init__.py
csiz/smbus2_asyncio
6feacf13a760e9f5c282d3300a3d22e2c38ed3b3
[ "MIT" ]
null
null
null
smbus2_asyncio/__init__.py
csiz/smbus2_asyncio
6feacf13a760e9f5c282d3300a3d22e2c38ed3b3
[ "MIT" ]
null
null
null
smbus2_asyncio/__init__.py
csiz/smbus2_asyncio
6feacf13a760e9f5c282d3300a3d22e2c38ed3b3
[ "MIT" ]
null
null
null
"""Smbus2 asyncio support.""" import asyncio from smbus2 import SMBus class SMBus2Asyncio: """Asyncio version of SMBus2.""" def __init__(self, bus, *, loop=None, executor=None): """Initialise SMBus2 Asyncio.""" self.bus = bus self.smbus = None if not loop: loop =...
30.692308
86
0.617377
f7c9fec84033426f3ece1b41f0255bbf51b495a9
5,206
py
Python
providers/azure.py
eubr-atmosphere/a-GPUBench
2628db7e4910d36ab34d4307ffd3587c149c1f63
[ "Apache-2.0" ]
2
2019-04-26T08:27:43.000Z
2020-12-17T16:02:41.000Z
providers/azure.py
eubr-atmosphere/a-GPUBench
2628db7e4910d36ab34d4307ffd3587c149c1f63
[ "Apache-2.0" ]
6
2020-01-28T23:04:45.000Z
2022-02-10T00:36:21.000Z
providers/azure.py
eubr-atmosphere/a-GPUBench
2628db7e4910d36ab34d4307ffd3587c149c1f63
[ "Apache-2.0" ]
1
2022-01-18T10:32:53.000Z
2022-01-18T10:32:53.000Z
#!/usr/bin/python3 """ Copyright 2018 Marco Lattuada 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 ...
34.25
328
0.709374
f7ca04ae9bb52560d241a4d7d0d266806a44b2bb
611
py
Python
CHAPTER 06 (stacks_queues_deques)/matching_delimeters_using_stack.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 06 (stacks_queues_deques)/matching_delimeters_using_stack.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 06 (stacks_queues_deques)/matching_delimeters_using_stack.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
from stack_class import * def is_matched(exp): """Return True if all delimeters matched correctly, False otherwise""" lefty = "({[" righty = ")}]" s=ArrayStack() for c in exp: if c in lefty: s.push(c) # push left delimeter elif c in righty: ...
29.095238
85
0.507365
f7ca852ee4a35ac1eabf4eac85a235cd049a9077
9,429
py
Python
services/traction/acapy_wrapper/apis/issue_credential_v1_0_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/apis/issue_credential_v1_0_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/apis/issue_credential_v1_0_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from typing import Dict, List # noqa: F401 from fastapi import ( # noqa: F401 APIRouter, Body, Cookie, Depends, Form, Header, Path, Query, Request, Response, Security, status, ) from acapy_wrapper.models.extra_models import TokenModel # noqa: F401 fr...
32.071429
94
0.700286
f7ca92907af45e59a753e19f00c30cc7a79089c7
1,130
py
Python
tests/properties/test_properties.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
tests/properties/test_properties.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
tests/properties/test_properties.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
# Joint copyright: # - Copyright 2012,2013 Wikimedia Foundation # - Copyright 2012,2013 Antoine "hashar" Musso # - Copyright 2013 Arnaud Fabre # # 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 ...
35.3125
75
0.785841
f7cad8f0401be07537ff1e53bd023a96a0c33b4a
5,755
py
Python
tests/xlfunctions/test_financial.py
ckp95/xlcalculator
8f3f04a2a0a2ecb12c3d5837a5b13519137ae427
[ "MIT" ]
54
2020-04-26T09:18:29.000Z
2022-03-30T08:47:45.000Z
tests/xlfunctions/test_financial.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
41
2020-05-04T04:12:36.000Z
2022-01-31T02:41:05.000Z
tests/xlfunctions/test_financial.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
21
2020-05-21T20:49:23.000Z
2022-02-20T14:15:56.000Z
import mock import unittest from xlcalculator.xlfunctions import ( xl, xlerrors, func_xltypes, date, financial ) class FinancialModuleTest(unittest.TestCase): def test_IRR(self): self.assertAlmostEqual( financial.IRR( func_xltypes.Array([[-100, 39, 59, 55,...
30.775401
79
0.524935
f7caf0b1c0dd3f4157cda8bf046adef3a6086d7a
54,660
py
Python
tests/test_design_climate.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
tests/test_design_climate.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
tests/test_design_climate.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
117.296137
247
0.564142
f7cb01a5219cbfc7751144301df61dc496d7b2d3
3,998
py
Python
formatml/models/codrep_model.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
2
2019-06-07T16:30:51.000Z
2019-10-09T10:10:17.000Z
formatml/models/codrep_model.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
1
2019-07-02T12:55:10.000Z
2019-07-02T12:55:10.000Z
formatml/models/codrep_model.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
3
2019-05-29T13:09:18.000Z
2021-01-28T11:35:01.000Z
from bisect import bisect_right from logging import getLogger from typing import Any, Dict, List, Optional from dgl import unbatch from torch.nn import LogSoftmax, Module, NLLLoss from formatml.models.model import Model from formatml.modules.graph_encoders.graph_encoder import GraphEncoder from formatml.modules.misc....
38.815534
88
0.632066
f7cb07c4f5c8667077f5465ee78b866f5516937c
10,473
py
Python
transfer_learning/datasets/padchest.py
SLAMPAI/large-scale-pretraining-transfer
730c1f25e56bbe5c70e5933f845824f98c015876
[ "MIT" ]
13
2021-06-09T12:19:50.000Z
2022-03-14T08:20:48.000Z
transfer_learning/datasets/padchest.py
SLAMPAI/large-scale-pretraining-transfer
730c1f25e56bbe5c70e5933f845824f98c015876
[ "MIT" ]
null
null
null
transfer_learning/datasets/padchest.py
SLAMPAI/large-scale-pretraining-transfer
730c1f25e56bbe5c70e5933f845824f98c015876
[ "MIT" ]
4
2021-06-14T17:25:54.000Z
2021-11-30T01:31:23.000Z
import pandas as pd import numpy as np import os import albumentations as A import torch from torch.utils.data import Dataset import random # import cv2 from skimage.io import imread SEED = 42 TRAIN_RATIO = 0.9 class PadChest(Dataset): """ PadChest dataset Hospital San Juan de Alicante - University of Alic...
46.136564
124
0.616156
f7cb123194e73ad8952c5ea4dd934d80ca1533b7
4,242
py
Python
server/pyfiles/characterController.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
2
2018-08-20T18:09:47.000Z
2019-04-29T06:18:42.000Z
server/pyfiles/characterController.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
6
2019-04-28T20:56:25.000Z
2022-02-12T04:33:23.000Z
server/pyfiles/characterController.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
null
null
null
import logging from pyfiles.db import player, character, attributes from pyfiles.db.character import CHARACTER_DATA_JSON_NAME from pyfiles.db.attributes import ATTRIBUTES_JSON_NAME, ATTRIBUTE_SCORES_JSON_NAME from pyfiles import userInput, playerController from pyfiles.model import overworld from pony.orm.core import...
38.563636
110
0.715229
f7cb1aaad8f54a2bc31942f98606c6ea5ed5733b
18,557
py
Python
app.py
skristimorris/grocery-spending_skmorris
88e441d258370263ba3920d30fafd14f8d8ac7ca
[ "MIT" ]
null
null
null
app.py
skristimorris/grocery-spending_skmorris
88e441d258370263ba3920d30fafd14f8d8ac7ca
[ "MIT" ]
1
2021-06-16T01:31:12.000Z
2021-06-16T01:31:12.000Z
app.py
skristimorris/grocery-spending_skmorris
88e441d258370263ba3920d30fafd14f8d8ac7ca
[ "MIT" ]
1
2021-06-23T21:59:26.000Z
2021-06-23T21:59:26.000Z
"""Track and analyze grocery spending at an item level. This app allows a user to input a grocery item. """ # app.py import dash import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc from dash.dependencies import Input, Output, State import plotly.express as ...
33.019573
137
0.520289
f7cb464fe2a57dc71493b1bbe7cdcc2f08d6ba7d
853
py
Python
alipay/aop/api/domain/MybankCreditCreditriskDsddAdmitConsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MybankCreditCreditriskDsddAdmitConsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MybankCreditCreditriskDsddAdmitConsultModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditCreditriskDsddAdmitConsultModel(object): def __init__(self): self._smid = None @property def smid(self): return self._smid @smid.setter def smid(self...
20.804878
59
0.575615
f7cb4a35875326d57e34fc5869ff6179748d9712
3,226
py
Python
chapter_2_collection/change_channels.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_2_collection/change_channels.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_2_collection/change_channels.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
36.659091
121
0.624923
f7cb6b182f271844be7e3344194aa46af7d80827
26,935
py
Python
prody/dynamics/analysis.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/dynamics/analysis.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/dynamics/analysis.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module defines functions for calculating physical properties from normal modes.""" import time import numpy as np from prody import LOGGER from prody.atomic import Atomic from prody.ensemble import Ensemble, Conformation from prody.trajectory import TrajBase from prody.utilities impor...
35.865513
123
0.591981
f7cb75252f9c67b32fdccc5b0c3070432394d28f
607
py
Python
src/olympia/blocklist/migrations/0014_auto_20200513_1212.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/blocklist/migrations/0014_auto_20200513_1212.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/blocklist/migrations/0014_auto_20200513_1212.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.12 on 2020-05-13 12:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blocklist', '0013_kintoimport_timestamp'), ] operations = [ migrations.AlterField( model_name='block', name='kinto_...
25.291667
78
0.594728
f7cb8c6d1857304b02853e5218257da7985df644
3,385
py
Python
native/examples/spend-p2wsh-txout.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
native/examples/spend-p2wsh-txout.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
native/examples/spend-p2wsh-txout.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2014 The python-bitcoinlib developers # # This file is part of python-bitcoinlib. # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of python-bitcoinlib, including this file, may be copied, modified, # ...
39.360465
125
0.785524
f7cb8e7cf449647e44c63bf50b8883ff077a26b2
412
py
Python
cityListController.py
falconsmilie/Raspberry-Pi-3-Weather
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
[ "MIT" ]
null
null
null
cityListController.py
falconsmilie/Raspberry-Pi-3-Weather
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
[ "MIT" ]
null
null
null
cityListController.py
falconsmilie/Raspberry-Pi-3-Weather
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
[ "MIT" ]
null
null
null
from models.locationsManager import LocationsManager try: locations = LocationsManager() # Download and create config files for locations # locations.create() # Gets list of countries #countries = locations.get_countries() #print(countries) # Gets list of cities based on country code ...
21.684211
52
0.706311
f7cbcec90d8b4574444538dc40a2899885bb05a4
2,643
py
Python
multicurrency/afghani.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/afghani.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/afghani.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Afghani currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class Afghani(Curre...
34.324675
77
0.605373
f7cbd814a2c1c6173c522182d60e70d7ea723529
2,025
py
Python
program_synthesis/karel/dataset/edit_data_loader_test.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/karel/dataset/edit_data_loader_test.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/karel/dataset/edit_data_loader_test.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
import os import sys import mock import pytest from program_synthesis.karel import arguments from program_synthesis.karel.dataset import dataset from program_synthesis.karel.dataset import edit_data_loader from program_synthesis.karel.models import karel_edit_model @pytest.fixture def args(): with mock.patch('s...
30.681818
76
0.661728
f7cbdc72861bd7d02e2d6ef6b92c205450e4f064
4,859
py
Python
src/results/conll_evaluate_results.py
etalab-ia/pseudo_conseil_etat
c2d8be0289049fe29c3cf5179415a8452605c22e
[ "MIT" ]
4
2020-03-28T14:44:23.000Z
2022-02-01T14:01:34.000Z
src/results/conll_evaluate_results.py
etalab-ia/pseudo_conseil_etat
c2d8be0289049fe29c3cf5179415a8452605c22e
[ "MIT" ]
null
null
null
src/results/conll_evaluate_results.py
etalab-ia/pseudo_conseil_etat
c2d8be0289049fe29c3cf5179415a8452605c22e
[ "MIT" ]
1
2020-02-05T17:57:39.000Z
2020-02-05T17:57:39.000Z
''' Evaluates the performance of a CoNLL format annotated file. Also shows the errors that were found in the file. The file should have three columns (token, true tag, predicted tag). Usage: conll_evaluate_results.py <conll_file_path> <output_results_path> [options] Arguments: <conll_file_path> ...
37.960938
124
0.647664
f7cbdfbdbc6a1d414bd2405fa03ad6948c495d5c
5,155
py
Python
examples/deepspeech/data.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
examples/deepspeech/data.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
examples/deepspeech/data.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
from __future__ import division import numpy as np from ngraph.frontends.neon.aeon_shim import AeonDataLoader from ngraph.util.persist import get_data_cache_or_nothing def make_aeon_dataloader(manifest_filename, audio_length, transcript_length, sample_freq_hz=16000, frame_length=.025, frame_s...
41.910569
93
0.618041
f7cc3d3975f6fe27f54dae7300edf596c917d852
1,222
py
Python
e2edt/gate.py
tomsal/endtoenddecisiontrees
be4cf69f530cbbd3cd1a2443c9cc513482a9a2c3
[ "MIT" ]
13
2019-08-14T05:22:27.000Z
2022-02-27T20:57:22.000Z
e2edt/gate.py
tomsal/endtoenddecisiontrees
be4cf69f530cbbd3cd1a2443c9cc513482a9a2c3
[ "MIT" ]
1
2020-05-26T19:40:19.000Z
2021-09-01T12:44:36.000Z
e2edt/gate.py
tomsal/endtoenddecisiontrees
be4cf69f530cbbd3cd1a2443c9cc513482a9a2c3
[ "MIT" ]
2
2020-04-04T20:45:30.000Z
2022-02-27T20:57:22.000Z
""" This file implements the smooth gating/split function including the linear combination of features. If given, the features are sent through a non linear module first, which may also be optimized thanks to autograd.. """ import torch.nn as nn class Gate(nn.Module): def __init__(self, input_size, initial_steepness...
35.941176
77
0.721768
f7cc404d6684a5ccbc7bc84f7f53f7a46497acc4
3,500
py
Python
mtaf/utils/loss.py
mohamedelmesawy/MTAF
b0200a3a38843a6c95d270da63aae64ad7950113
[ "Apache-2.0" ]
12
2021-10-05T11:17:23.000Z
2022-03-14T16:58:17.000Z
mtaf/utils/loss.py
mohamedelmesawy/MTAF
b0200a3a38843a6c95d270da63aae64ad7950113
[ "Apache-2.0" ]
5
2021-12-02T11:37:06.000Z
2022-03-05T03:18:55.000Z
mtaf/utils/loss.py
mohamedelmesawy/MTAF
b0200a3a38843a6c95d270da63aae64ad7950113
[ "Apache-2.0" ]
5
2021-12-13T12:41:47.000Z
2022-02-01T13:24:33.000Z
import numpy as np import torch import torch.nn.functional as F from torch.autograd import Variable def cross_entropy_2d(predict, target): """ Args: predict:(n, c, h, w) target:(n, h, w) """ assert not target.requires_grad assert predict.dim() == 4 assert target.dim() == 3 ...
42.682927
101
0.647714
f7cc8d7066d4df4c8041239611cd6853567ba5b4
87,269
py
Python
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_generated/v7_1/operations/_key_vault_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_generated/v7_1/operations/_key_vault_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_generated/v7_1/operations/_key_vault_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
40.477273
133
0.646965