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
93613e034c18d7946448daacd8b4cdf8dffd4d46
792
py
Python
flu/sequence_and_annotations/root_tree.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
11
2015-08-24T05:20:56.000Z
2021-08-13T13:58:31.000Z
flu/sequence_and_annotations/root_tree.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2015-08-24T04:43:25.000Z
2021-07-06T00:33:44.000Z
flu/sequence_and_annotations/root_tree.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2019-08-30T18:52:49.000Z
2021-06-15T06:47:04.000Z
''' root_tree.py takes a newick tree file as argument, loads it as a biopython tree if second argument is provided, looks for a leaf that starts with this argument otherwise tries to root with A/Hong_Kong/68 ''' from Bio import Phylo import sys if len(sys.argv)>1: tree_name = sys.argv[1] else: tree_name = '.....
24.75
98
0.732323
9361a734ca463ffff028402e3c00bb14590022de
454
py
Python
setup.py
redcyb/rbm-dbn-mlp
b4df5ea5faf4be8f2c2faf0526e2981f9391b66c
[ "MIT" ]
null
null
null
setup.py
redcyb/rbm-dbn-mlp
b4df5ea5faf4be8f2c2faf0526e2981f9391b66c
[ "MIT" ]
null
null
null
setup.py
redcyb/rbm-dbn-mlp
b4df5ea5faf4be8f2c2faf0526e2981f9391b66c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='dbn-builder', version='0.1', url='https://github.com/redcyb/rbm-dbn-mlp', license='MIT', author='Oleksandr Marusyk', author_email='redcyb@gmail.com', description='DBN builder', packages=find_packages(exclude=['tests', 'results', '...
28.375
65
0.669604
9361c436fc4a2cb4ef51b5ebb9b83e3d19ccbce7
15,044
py
Python
coincheckpy.py
jimako1989/coincheckpy
2426d1dd53c3f13607834937ab6b2418c17fecc2
[ "MIT" ]
null
null
null
coincheckpy.py
jimako1989/coincheckpy
2426d1dd53c3f13607834937ab6b2418c17fecc2
[ "MIT" ]
null
null
null
coincheckpy.py
jimako1989/coincheckpy
2426d1dd53c3f13607834937ab6b2418c17fecc2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ COINCHECK API wrapper """ """ AUTHOR: @jimako1989 GITHUB: github.com/jimako1989/coincheckpy LICENSE: MIT """ import json,time,hmac,hashlib,requests,datetime import pandas as pd from decimal import * getcontext().prec = 8 """EndpointsMixin provides a mixin for the API instance """ class En...
36.692683
133
0.620912
93623fa124e1fe3afa3694fbd7e48b33c4e20604
1,615
py
Python
src/tests/test_calculate_chek.py
Almateyko/learn-duet2s
5004583f629b81bf1eabb5de69f01da202308036
[ "MIT" ]
null
null
null
src/tests/test_calculate_chek.py
Almateyko/learn-duet2s
5004583f629b81bf1eabb5de69f01da202308036
[ "MIT" ]
null
null
null
src/tests/test_calculate_chek.py
Almateyko/learn-duet2s
5004583f629b81bf1eabb5de69f01da202308036
[ "MIT" ]
null
null
null
import unittest from src.main_program import * class TestMainProgram(unittest.TestCase): def test_calculate_chek_1(self): a = dict(gas=0, water=0, electricity=0) self.assertEqual('Verification was successful', calculate_chek('gas', 3, a)) self.assertEqual('Verification was successful', ca...
44.861111
94
0.669969
936249ed258a1399f063a563d45851be1a3da445
6,193
py
Python
rllite/HER/HER.py
ZJU-RL/zjurl
6aab83aaba7249bc43d112f21787c45b111d8aa4
[ "MIT" ]
3
2019-03-07T13:24:21.000Z
2019-08-08T12:49:51.000Z
rllite/HER/HER.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
rllite/HER/HER.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import random import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from rllite.common import ReplayBuffer4 from tensorboardX import SummaryWriter device = torch.device("cuda" if torch.cuda.is_available() else "cpu") clas...
34.988701
98
0.582593
936287e34652715ef94dffd97c09d28b4de6ccf9
94,684
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/scatterpolargl/marker/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/scatterpolargl/marker/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/scatterpolargl/marker/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # autocolorscale # -------------- @property def autocolorscale(self): """ Determines whether the colorscale is a default palette (`autoc...
37.858457
107
0.574458
9362a6ca8cb3cf7639ab2427b348d8037f24bff9
1,880
py
Python
src/flower/strategy/aggregate.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower/strategy/aggregate.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower/strategy/aggregate.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Adap GmbH. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
38.367347
88
0.715957
9362aa9fd7abfd5d71b13acccf9ed07fac42f2cb
22,069
py
Python
demos/daslip_guineafowl.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
demos/daslip_guineafowl.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
demos/daslip_guineafowl.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
import models.daslip as model import numpy as np import matplotlib.pyplot as plt import scipy.io as spio import pickle from matplotlib import gridspec from enum import Enum # Functions to read in a MAT file and then convert it to an easily accessible # dictionary. These functions come thanks to the post: # https://st...
40.198543
134
0.632562
9362c0663e6c5f0ec377517e9a709929f3f86c3e
4,296
py
Python
drllib/predictor.py
LBNL-ETA/FlexDRL
630a6f5e050deefc2d0635a211b6888adcfae37c
[ "BSD-3-Clause-LBNL" ]
4
2021-03-12T17:43:52.000Z
2022-02-14T17:04:29.000Z
drllib/predictor.py
LBNL-ETA/FlexDRL
630a6f5e050deefc2d0635a211b6888adcfae37c
[ "BSD-3-Clause-LBNL" ]
null
null
null
drllib/predictor.py
LBNL-ETA/FlexDRL
630a6f5e050deefc2d0635a211b6888adcfae37c
[ "BSD-3-Clause-LBNL" ]
1
2022-03-20T17:01:55.000Z
2022-03-20T17:01:55.000Z
import os import pytz import random import time import yaml import torch import torch.optim as optim import torch.nn.functional as F import pandas as pd import numpy as np import environments from datetime import timedelta from drllib import models, utils from tensorboardX import SummaryWriter from gym_flexlab.envs imp...
37.034483
152
0.646182
9362cb00670a281400bfa1eb7cf9fecb509202c2
2,875
gyp
Python
third_party/netty-tcnative/netty-tcnative.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
third_party/netty-tcnative/netty-tcnative.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/netty-tcnative/netty-tcnative.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Builds the Netty fork of Tomcat Native. See http://netty.io/wiki/forked-tomcat-native.html { 'targets': [ { 'target_name': 'netty-tcnative-so', 'product_name': 'netty-tcnative', 'type': 'shared_library', 'sources': [ 'src/c/address.c', 'src/c/bb.c', 'src/c/dir.c',...
27.122642
92
0.482087
9362d378dd906d976b01431be971cd2a24509c80
4,697
py
Python
jina/docker/checker.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-25T19:28:50.000Z
2021-02-25T19:28:50.000Z
jina/docker/checker.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-27T05:56:45.000Z
2021-02-27T05:57:03.000Z
jina/docker/checker.py
deepampatel/jina
97f9e97a4a678a28bdeacbc7346eaf7bbd2aeb89
[ "Apache-2.0" ]
null
null
null
"""Module for validation functions.""" __copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import os import re import tempfile import unicodedata from typing import Optional from pkg_resources import resource_stream from ..jaml import JAML image_tag_regex = r'^hub.[...
29.917197
128
0.634022
9362f5a4bfed09cbe5c7681ca775e024e771d5a1
1,937
py
Python
vivid/out_of_fold/boosting/helpers.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
vivid/out_of_fold/boosting/helpers.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
vivid/out_of_fold/boosting/helpers.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from lightgbm.callback import _format_eval_result, CallbackEnv from optuna import Trial def logging_evaluation(logger, period=1, show_stdv=True, experiment_backend=None): """ create logging callback function :param logger: :param period: :param show_stdv: :return: function """ ...
33.396552
107
0.6381
93631b26d5917e262aec88f0658da6bd49a4d042
2,089
py
Python
lib/file_management/createapikeyfile.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
1
2021-07-22T15:43:02.000Z
2021-07-22T15:43:02.000Z
lib/file_management/createapikeyfile.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
28
2021-05-15T08:18:21.000Z
2021-08-02T06:12:30.000Z
lib/file_management/createapikeyfile.py
ta-assistant/TA-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
null
null
null
import json import os import shutil class SaveApiKey: def save(self, apikey): if os.path.exists(os.path.join(os.path.expanduser("~"), 'key')): if self.exsitapikey(): print('Already Login') choose = input('Do you want login again[y/n]: ') if choo...
38.685185
109
0.529919
93632df8cb4a046405ede1d37e25b9c11fe16d09
224
py
Python
examples/strings.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
206
2021-06-24T16:16:13.000Z
2022-03-31T07:44:17.000Z
examples/strings.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
13
2021-06-24T17:51:36.000Z
2022-02-23T10:07:17.000Z
examples/strings.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
14
2021-06-26T02:19:45.000Z
2022-03-30T03:02:49.000Z
def main(): a = "hello" b = "world" c = a + " " + b print(c) print(double_it(c)) print(c[1]) print(c[1:6]) def double_it(c: str) -> str: return c + c if __name__ == '__main__': main()
13.176471
29
0.477679
93637014a24219b8b776531dc418e22fd4e9c496
1,369
py
Python
setup.py
jonnymacbean/pysrcds
d896d4e28e150fbe96760a3047565e731719edd4
[ "MIT" ]
2
2020-02-13T06:13:44.000Z
2021-02-26T19:21:09.000Z
setup.py
jonnymacbean/pysrcds
d896d4e28e150fbe96760a3047565e731719edd4
[ "MIT" ]
null
null
null
setup.py
jonnymacbean/pysrcds
d896d4e28e150fbe96760a3047565e731719edd4
[ "MIT" ]
3
2021-03-18T16:37:46.000Z
2022-03-25T20:14:18.000Z
#!/usr/bin/env python from setuptools import setup setup( name='pysrcds', version='0.2.0.dev', description='Python library for interacting with Source engine dedicated' ' servers', author='Peter Rowlands', author_email='peter@pmrowla.com', url='https://github.com/pmrowla/pysrcd...
30.422222
78
0.660336
9363a30872b8c293eb5a0084cd8c98af4cfe1f19
13,635
py
Python
src/Application/PythonScriptModule/pymodules_old/webdavinventory/connection.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
src/Application/PythonScriptModule/pymodules_old/webdavinventory/connection.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/webdavinventory/connection.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2021-09-04T12:37:34.000Z
2021-09-04T12:37:34.000Z
''' Created on 8.9.2009 @author: jonnena ''' import httplib import urllib from httplib import HTTPConnection, HTTPException from webdav import WebdavClient from webdav.Connection import WebdavError, AuthorizationError import rexviewer #for logging CABLEBEACH_IDENTITY_HEADER = "CableBeach-Identity" CABLEBEACH_WEBDA...
41.069277
200
0.576164
9363e17c5db5e660edb87a76783a44eaba4c7a06
2,363
py
Python
setup.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
setup.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
setup.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # James Sandford, copyright BBC 2020 # # 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...
27.8
74
0.678798
9363e23cb655bddaff44d63dfec8e05603010135
991
py
Python
human/chat/models.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
human/chat/models.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
human/chat/models.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
4
2018-01-27T06:01:41.000Z
2018-02-21T12:18:35.000Z
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from human.models import Relationship class Message(models.Model): # ISSUE - if we use Relationship to determined room, then we cant have group talk room = models.ForeignKey( Relationship, on_de...
35.392857
111
0.712412
9363fb4780cb05542e34ccc6ed4e315b7ec323f4
8,401
py
Python
src/bloombox/schema/products/Extract_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/products/Extract_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/products/Extract_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: products/Extract.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import mess...
39.074419
1,208
0.752172
936417740a3e58c1b3590e119d83791a62679aaf
949
py
Python
sdks/python/test/test_ServiceBillingPlans.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_ServiceBillingPlans.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_ServiceBillingPlans.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
23.725
97
0.726027
93641fb3655bea37e07a10e74df5c0f4d1eb9841
9,208
py
Python
pytorch-semseg/ptsemseg/loader/pascal_voc_loader.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
pytorch-semseg/ptsemseg/loader/pascal_voc_loader.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
pytorch-semseg/ptsemseg/loader/pascal_voc_loader.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import os from os.path import join as pjoin import collections import json import torch import numpy as np import scipy.misc as m import scipy.io as io import matplotlib.pyplot as plt import glob import cv2 from PIL import Image from tqdm import tqdm from torch.utils import data from torchvision import transforms cl...
38.366667
79
0.596655
93645e2c0faaf177a83ffb1ffcacd2672ee44261
1,305
py
Python
kinto/core/storage/exceptions.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
kinto/core/storage/exceptions.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
kinto/core/storage/exceptions.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
"""Exceptions raised by storage backend. """ class BackendError(Exception): """A generic exception raised by storage on error. :param Exception original: the wrapped exception raised by underlying library. """ def __init__(self, original=None, message=None, *args, **kwargs): self.ori...
23.727273
73
0.678161
936461d7ee402e317694412d879c29be03637259
752
py
Python
datadeck/gui/util/console.py
dgraziotin/datadeck
aec1848cd659eea81924b015ac516aee53b17189
[ "BSD-2-Clause-FreeBSD" ]
1
2015-09-17T06:12:32.000Z
2015-09-17T06:12:32.000Z
datadeck/gui/util/console.py
dgraziotin/datadeck
aec1848cd659eea81924b015ac516aee53b17189
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
datadeck/gui/util/console.py
dgraziotin/datadeck
aec1848cd659eea81924b015ac516aee53b17189
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#TODO evaluate how much sense has this, it directly accesses MainGUI attributes. class ConsoleUtil(object): """ GUI utilities for the Console """ def __init__(self, wxframe): self.m_wxframe = wxframe def OnUpdateConsole(self, event): """ Update the Console text """ ...
27.851852
80
0.658245
9364839eb935e90ab9e126af006091c1b044d214
22,018
py
Python
aws_lambda_powertools/utilities/data_classes/cognito_user_pool_event.py
jamesls/aws-lambda-powertools-python
52314e6d3b002d2d8bbacf3d1348e161b8e727b2
[ "MIT-0" ]
null
null
null
aws_lambda_powertools/utilities/data_classes/cognito_user_pool_event.py
jamesls/aws-lambda-powertools-python
52314e6d3b002d2d8bbacf3d1348e161b8e727b2
[ "MIT-0" ]
null
null
null
aws_lambda_powertools/utilities/data_classes/cognito_user_pool_event.py
jamesls/aws-lambda-powertools-python
52314e6d3b002d2d8bbacf3d1348e161b8e727b2
[ "MIT-0" ]
null
null
null
from typing import Any, Dict, List, Optional from aws_lambda_powertools.utilities.data_classes.common import DictWrapper class CallerContext(DictWrapper): @property def aws_sdk_version(self) -> str: """The AWS SDK version number.""" return self["callerContext"]["awsSdkVersion"] @property...
39.247772
127
0.70188
9364c7cb0f7fff1306b09188c9cb909a55b03687
157
py
Python
example/test_full/apps.py
olivierdalang/django-computedfields
13a5c107904e7596eeafe948ffc66c9702d95589
[ "MIT" ]
null
null
null
example/test_full/apps.py
olivierdalang/django-computedfields
13a5c107904e7596eeafe948ffc66c9702d95589
[ "MIT" ]
null
null
null
example/test_full/apps.py
olivierdalang/django-computedfields
13a5c107904e7596eeafe948ffc66c9702d95589
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class TestFullConfig(AppConfig): name = 'test_full'
17.444444
39
0.738854
9364ddb7da80fde324f9e31f5ddacae11abe757d
1,258
py
Python
pluginsmanager/model/system/system_midi_output.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
9
2017-05-24T09:55:34.000Z
2020-06-22T03:55:51.000Z
pluginsmanager/model/system/system_midi_output.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
97
2016-11-17T16:30:35.000Z
2021-10-09T00:27:56.000Z
pluginsmanager/model/system/system_midi_output.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
3
2017-05-21T19:20:38.000Z
2019-11-04T23:53:59.000Z
# Copyright 2017 SrMouraSilva # # 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,...
34
75
0.746423
9364e9d99f1c9cd5343a7b7567ecfa7ea20ae177
877
py
Python
mGui/examples/shelf_example.py
theodox/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
105
2015-01-13T10:52:55.000Z
2022-03-23T12:49:01.000Z
mGui/examples/shelf_example.py
techartorg/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
84
2015-01-15T14:56:08.000Z
2019-04-15T17:03:51.000Z
mGui/examples/shelf_example.py
techartorg/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
22
2015-01-11T11:25:37.000Z
2021-12-24T06:34:46.000Z
import os import json import urllib2 from mGui import shelf_loader, core, gui, forms url = 'https://raw.githubusercontent.com/theodox/mGui/master/mGui/examples/shelf_example.json' example_file = os.path.join(os.path.dirname(__file__), 'shelf_example.json') shelf_dict = json.load(open(example_file)) def add_to_main_...
26.575758
94
0.717218
9364fcb6c866d00efb866ce1e12a141b1c6db375
5,941
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_custom_forms.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_custom_forms.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_custom_forms.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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. # --------------------------------------------------------------------...
46.054264
121
0.595691
9365356b12cfe7de2e31b96cafb26fae22fc94c2
910
py
Python
profiles/urls.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
profiles/urls.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
3
2021-03-30T13:46:24.000Z
2021-09-22T19:18:18.000Z
profiles/urls.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
"""Urls for users app""" from django.urls import path from . import views from . import webservices urlpatterns = [ path('create', views.form_profile, name='form_profile'), path('listing_profile', views.listing_profile, name='listing_profile'), path('update/<int:profile_id>', views.form_profile, name='upda...
53.529412
91
0.745055
9365477b61ceae45735cd7f64494053a3563ed2c
77
py
Python
tests/test_code/py/two_file_simple/file_a.py
FreddyZeng/code2flow
37e45ca4340289f8ceec79b3fe5131c401387c58
[ "MIT" ]
2,248
2015-01-13T21:44:22.000Z
2022-03-31T07:55:22.000Z
tests/test_code/py/two_file_simple/file_a.py
FreddyZeng/code2flow
37e45ca4340289f8ceec79b3fe5131c401387c58
[ "MIT" ]
44
2015-04-09T18:37:01.000Z
2022-03-25T19:56:11.000Z
tests/test_code/py/two_file_simple/file_a.py
FreddyZeng/code2flow
37e45ca4340289f8ceec79b3fe5131c401387c58
[ "MIT" ]
220
2015-02-02T06:35:09.000Z
2022-03-31T09:21:09.000Z
from file_b import b def a(): b() if __name__ == '__main__': a()
7.7
26
0.532468
936552529f60ebb01a24ebce5f18e038c99143a7
637
py
Python
hs_core/debug_urls.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/debug_urls.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/debug_urls.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
"""Extra URLs that add debugging capabilities to resources.""" from django.conf.urls import url from hs_core import views urlpatterns = [ # Resource Debugging: print consistency problems in a resource url(r'^debug/resource/(?P<shortkey>[0-9a-f-]+)/$', views.debug_resource_view.debug_resource, ...
35.388889
67
0.679749
93655bc932f7538517ab75a09f89cf0743a1e42e
4,301
py
Python
tf_agents/networks/categorical_projection_network.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/categorical_projection_network.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/categorical_projection_network.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents 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 applicable law...
36.760684
78
0.720763
9365e4a0d80f253a849694cbcb217e25c2f223cf
489
py
Python
boo/test/test_whatis.py
AirVetra/boo
bb8404c48a6f17402a98a88454fdd876184c35c1
[ "MIT" ]
1
2019-12-06T21:13:22.000Z
2019-12-06T21:13:22.000Z
boo/test/test_whatis.py
AirVetra/boo
bb8404c48a6f17402a98a88454fdd876184c35c1
[ "MIT" ]
null
null
null
boo/test/test_whatis.py
AirVetra/boo
bb8404c48a6f17402a98a88454fdd876184c35c1
[ "MIT" ]
null
null
null
from boo.whatis import whatis def test_whatis_returns_name(): assert whatis("cash") == 'Денежные средства и денежные эквиваленты' def test_whatis_works_with_lag(): assert whatis("ta") == whatis("ta_lag") def test_whatis_returns_additional_name(): assert whatis("ok1") == 'Код ОКВЭД первого уровня' de...
22.227273
71
0.732106
9365e759b5374a34b4eaa14d76d670f77b77b388
5,146
py
Python
tests/test_parse.py
a-feld/pytest-skippy
1d0b1adf16c810a66d5d8dadad765e5b093e1b0b
[ "MIT" ]
8
2018-01-29T16:10:18.000Z
2019-01-13T07:03:56.000Z
tests/test_parse.py
a-feld/pytest-autoskip
1d0b1adf16c810a66d5d8dadad765e5b093e1b0b
[ "MIT" ]
6
2018-01-27T03:13:59.000Z
2018-01-29T07:41:46.000Z
tests/test_parse.py
a-feld/pytest-skippy
1d0b1adf16c810a66d5d8dadad765e5b093e1b0b
[ "MIT" ]
null
null
null
import os import pytest import shutil import tempfile as _tempfile from pytest_skippy.parse import get_imported_modules @pytest.fixture() def tempfile(): def write(value): if getattr(write, 'name', None): raise RuntimeError( "Write called more than once") # pragma: no cov...
25.73
78
0.678197
9365f4186338bdf428cefaa5ec44249d4200db90
841
py
Python
arena/event_loop/persistent_worker.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
4
2021-01-22T23:49:52.000Z
2022-03-04T06:01:18.000Z
arena/event_loop/persistent_worker.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
50
2020-08-14T22:24:36.000Z
2022-03-18T20:41:12.000Z
arena/event_loop/persistent_worker.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
10
2019-10-28T20:15:18.000Z
2021-06-29T18:02:06.000Z
from .worker import Worker import time class PersistentWorker(Worker): """ Wrapper for an ARENA task that runs at a periodic interval. """ def __init__(self, event_loop, func, event=None, interval=1000, *args, **kwargs): super().__init__(event_loop, func, event, *args, **kwargs) self.in...
33.64
85
0.571938
9366144e0c6dde8c0cca5ecc82fc1a45a73a7914
7,600
py
Python
gui/stdio.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
1
2017-02-21T17:52:54.000Z
2017-02-21T17:52:54.000Z
gui/stdio.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
null
null
null
gui/stdio.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
null
null
null
from decimal import Decimal _ = lambda x:x #from i18n import _ from electrum_ltc.wallet import WalletStorage, Wallet from electrum_ltc.util import format_satoshis, set_verbosity, StoreDict from electrum_ltc.bitcoin import is_valid, COIN, TYPE_ADDRESS from electrum_ltc.network import filter_protocol import sys, getpass,...
33.043478
147
0.543158
93666bd77877b5331ab6c9c61f578edbf39d82dd
9,782
py
Python
test/vanilla/legacy/AcceptanceTests/test_url.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/AcceptanceTests/test_url.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/AcceptanceTests/test_url.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
36.636704
117
0.705479
93666f2d9c2d88c14adb5fa2c0f31e8118040507
2,530
py
Python
dataset/Restaurants/constant.py
sunkaikai/Covolution_over_Dependency_Tree_EMNLP2019
b364976cf5dd51d5cef7c2c3a447b6a59638f20f
[ "MIT" ]
13
2020-10-14T12:07:46.000Z
2022-03-04T02:57:14.000Z
dataset/Restaurants/constant.py
sunkaikai/Covolution_over_Dependency_Tree_EMNLP2019
b364976cf5dd51d5cef7c2c3a447b6a59638f20f
[ "MIT" ]
3
2021-08-31T03:16:20.000Z
2022-03-26T07:11:58.000Z
dataset/Restaurants/constant.py
pangsg/DM-GCN
f2c404c939ba1d7ded3f07e930e951d1316c1edd
[ "MIT" ]
2
2021-01-04T03:29:55.000Z
2021-04-14T10:02:33.000Z
{'pos': {'[PAD]': 0, '[UNK]': 1, 'RP': 2, 'CC': 3, '#': 4, 'MD': 5, 'JJS': 6, 'DT': 7, 'TO': 8, 'JJ': 9, 'PRP': 10, '-RRB-': 11, 'LS': 12, 'FW': 13, 'WP': 14, ',': 15, 'RBS': 16, 'NNS': 17, '``': 18, '.': 19, 'VBD': 20, 'PRP$': 21, 'UH': 22, 'VBZ': 23, '$': 24, 'RB': 25, 'RBR': 26, 'WRB': 27, 'NNPS': 28, ':': 29, 'NN':...
2,530
2,530
0.475889
936670ee7cf9e18cfff84ec734b5305131d8d047
7,711
py
Python
modwsgideploy/hooks/post_gen_project.py
lszyba1/modwsgideploy
f65750c19c95f5d54f84ba6dc18f43cbf4e833d7
[ "BSD-3-Clause" ]
2
2017-12-07T03:45:46.000Z
2018-04-23T09:12:42.000Z
modwsgideploy/hooks/post_gen_project.py
lszyba1/modwsgideploy
f65750c19c95f5d54f84ba6dc18f43cbf4e833d7
[ "BSD-3-Clause" ]
1
2018-05-10T03:31:04.000Z
2018-05-15T03:17:23.000Z
modwsgideploy/hooks/post_gen_project.py
lszyba1/modwsgideploy
f65750c19c95f5d54f84ba6dc18f43cbf4e833d7
[ "BSD-3-Clause" ]
null
null
null
import os #os.path.basename(os.path.dirname(os.path.realpath(__file__))) #workfolder=os.path.dirname(os.path.realpath(__file__)) #workfolder=os.path.dirname(__file__) context={{cookiecutter}} def ask_more_questions(question=None): try: output = raw_input(question) #output = input(question) exce...
41.907609
143
0.729737
936671afd83b4e684e5a2418f166866308420e61
888
py
Python
smart_instant_pot/tests/test_service_utils.py
tdicola/Smart_Instant_Pot
b2e4b9deec3f1813f737c94041f315eccce9978d
[ "MIT" ]
3
2018-12-16T21:01:47.000Z
2021-03-17T19:10:27.000Z
smart_instant_pot/tests/test_service_utils.py
tdicola/Smart_Instant_Pot
b2e4b9deec3f1813f737c94041f315eccce9978d
[ "MIT" ]
null
null
null
smart_instant_pot/tests/test_service_utils.py
tdicola/Smart_Instant_Pot
b2e4b9deec3f1813f737c94041f315eccce9978d
[ "MIT" ]
null
null
null
# Smart Instant Pot Service Utilities Tests # Author: Tony DiCola import unittest import smart_instant_pot.services.utils as service_utils class TestBuildId(unittest.TestCase): def test_multiple_words_concatenated_with_colon(self): result = service_utils.build_id('foo', 'bar', 'baz') self.assert...
26.909091
64
0.699324
936674faa5e08546a13115be6f70de8a0ee56d53
22,218
py
Python
ingestion/functions/common/parsing_lib.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
5
2020-04-16T13:54:24.000Z
2020-07-06T13:42:10.000Z
ingestion/functions/common/parsing_lib.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
487
2020-04-16T00:56:09.000Z
2020-07-27T09:09:29.000Z
ingestion/functions/common/parsing_lib.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
null
null
null
import datetime import json import os import sys import tempfile import collections import contextlib import time from pathlib import Path from typing import Callable, Dict, Generator, List import boto3 import requests import requests.exceptions import iso3166 import common_lib try: import common.ingestion_loggi...
41.451493
158
0.639707
93667643ab2b94cdacf686ec7644b8c3a4e948ef
22,991
py
Python
model_helper.py
josephch405/airdialogue_model
435f36ddacc6ab07717f97b11b885f1be38b59ca
[ "Apache-2.0" ]
14
2019-11-18T06:22:39.000Z
2021-05-30T09:21:10.000Z
model_helper.py
josephch405/airdialogue_model
435f36ddacc6ab07717f97b11b885f1be38b59ca
[ "Apache-2.0" ]
3
2020-05-18T20:59:52.000Z
2020-07-04T23:51:04.000Z
model_helper.py
josephch405/airdialogue_model
435f36ddacc6ab07717f97b11b885f1be38b59ca
[ "Apache-2.0" ]
11
2019-11-19T00:58:27.000Z
2021-10-21T00:33:11.000Z
# 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, ...
35.867395
100
0.693489
936685069623700fd19de3d7ff756a4afec0ad95
60,546
py
Python
sharpy/structure/utils/xbeamlib.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
sharpy/structure/utils/xbeamlib.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
sharpy/structure/utils/xbeamlib.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
import ctypes as ct import numpy as np import scipy as sc import scipy.integrate import sharpy.utils.algebra as algebra import sharpy.utils.ctypes_utils as ct_utils from sharpy.utils.sharpydir import SharpyDir # from sharpy.utils.datastructures import StructTimeStepInfo import sharpy.utils.cout_utils as cout xbeam_li...
48.398082
111
0.579196
9366a6d4035444664bf807cadb1860abc050a931
11,762
py
Python
django/contrib/formtools/wizard/tests/wizardtests/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/contrib/formtools/wizard/tests/wizardtests/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/contrib/formtools/wizard/tests/wizardtests/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement import os from django.test import TestCase from django.conf import settings from django.contrib.auth.models import User from django.contrib.formtools import wizard class WizardTests(object): urls = 'django.contrib.formtools.wizard.tests.wizardtests.urls' def setUp(self)...
41.415493
81
0.634926
9366b451cf9465ce30d381af07c56a9d031166e0
128
py
Python
deeptech/model/layers/sequential.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
1
2020-10-10T10:11:54.000Z
2020-10-10T10:11:54.000Z
deeptech/model/layers/sequential.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
deeptech/model/layers/sequential.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
"""doc # deeptech.model.layers.sequential > Sequentially combine layers into a meta-layer. """ from torch.nn import Sequential
18.285714
48
0.765625
9366bb7a57bc86c092387046dada7553716159d1
3,981
py
Python
sdks/python/appcenter_sdk/models/ErrorDateTimePercentages.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/ErrorDateTimePercentages.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/ErrorDateTimePercentages.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class ErrorDateTimeP...
28.640288
89
0.584527
9366c6b0495ec5e99c83c8e6713744e6ad0e32b5
10,787
py
Python
test/unit/test_cli.py
gicmo/osbuild-koji-plugin
ab147208e9af62cbf2dd79fcba63c90c932cffac
[ "Apache-2.0" ]
2
2020-09-04T12:53:31.000Z
2020-09-04T20:42:33.000Z
test/unit/test_cli.py
gicmo/osbuild-koji-plugin
ab147208e9af62cbf2dd79fcba63c90c932cffac
[ "Apache-2.0" ]
null
null
null
test/unit/test_cli.py
gicmo/osbuild-koji-plugin
ab147208e9af62cbf2dd79fcba63c90c932cffac
[ "Apache-2.0" ]
null
null
null
# # koji command line interface plugin unit tests # import contextlib import io import json import os import tempfile import koji import koji_cli.lib as kl from flexmock import flexmock from plugintest import PluginTest @PluginTest.load_plugin("cli") class TestCliPlugin(PluginTest): @staticmethod def moc...
31.176301
74
0.511264
9366d713b166b6aa3dc2ab58d90ab24cea6b276b
404
py
Python
app/wsgi.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
3
2020-04-03T12:16:56.000Z
2020-12-09T18:18:49.000Z
app/wsgi.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
173
2020-03-18T09:31:50.000Z
2022-03-26T04:19:41.000Z
app/wsgi.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
null
null
null
""" WSGI config for enquiry_mgmt_tool project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
23.764706
78
0.789604
9366e20adf21a3d90246c75fc0b0c1ebf7cc3f0a
2,855
py
Python
stackoverflow-solutions/submission-scripts/SO_Q58153529_how-to-detect-value-changed-in-python-pandas.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
stackoverflow-solutions/submission-scripts/SO_Q58153529_how-to-detect-value-changed-in-python-pandas.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
stackoverflow-solutions/submission-scripts/SO_Q58153529_how-to-detect-value-changed-in-python-pandas.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
""" Purpose: Stackoverflow: Detect value change in pandas dataframe column Date created: 2019-09-29 Contributor(s): Mark M. Ref: https://stackoverflow.com/questions/58153529/how-to-detect-value-changed-in-python-pandas-in-each-object """ import pandas as pd # Provided data raw_str = """ 180762508,1268510763,3...
33.988095
424
0.69282
9366eacfbc084378d8a768a4a2eef1a690ced3a2
3,388
py
Python
morp-based-model/add_morpheme_to_conllu.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
12
2020-03-04T17:36:12.000Z
2021-09-26T14:02:49.000Z
morp-based-model/add_morpheme_to_conllu.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
1
2020-12-09T08:21:11.000Z
2020-12-09T08:21:11.000Z
morp-based-model/add_morpheme_to_conllu.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
3
2020-11-18T09:53:42.000Z
2020-12-17T23:04:59.000Z
import sys import re import os import codecs import fileinput import argparse import io import itertools def to_conllu(conllu_tokenized, disamb_text, type): disamb_text = "\n".join((disamb_text.split("\n")[1:-1])) morps = disamb_text.split("\n</S> </S>+ESTag\n<S> <S>+BSTag\n") out = "" i = 0 j = 0 wit...
29.206897
157
0.463991
9367160b811b3a593711b8534f265a23002a0230
4,776
py
Python
python/tvm/_ffi/_ctypes/ndarray.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
1,458
2020-04-13T00:55:02.000Z
2022-03-30T01:38:21.000Z
python/tvm/_ffi/_ctypes/ndarray.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
206
2020-04-12T18:22:55.000Z
2022-03-16T18:29:49.000Z
python/tvm/_ffi/_ctypes/ndarray.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
222
2020-04-13T03:02:23.000Z
2022-03-29T03:38:55.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.458015
94
0.730946
936721a27862745917cde833b8e398f97a573556
21,383
py
Python
sacred_mis/_sources/pomis2_967dc1827f006331362f26025c0d2710.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
2
2020-08-01T18:19:05.000Z
2021-06-30T06:37:23.000Z
sacred_mis/_sources/pomis2_967dc1827f006331362f26025c0d2710.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
null
null
null
sacred_mis/_sources/pomis2_967dc1827f006331362f26025c0d2710.py
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
[ "MIT" ]
5
2018-11-24T16:29:39.000Z
2021-12-10T03:07:07.000Z
import numpy as np import warnings import baselines.common.tf_util as U import tensorflow as tf import time from baselines.common import zipsame, colorize from contextlib import contextmanager from collections import deque from baselines import logger from baselines.common.cg import cg from baselines.pomis2.memory impo...
41.121154
183
0.618295
93674ce8077d428e5fc62f9736194a215cdf7622
2,846
py
Python
docs/source/conf.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
22
2021-01-13T05:15:38.000Z
2022-01-17T01:37:29.000Z
docs/source/conf.py
XuChanghhu/thgsp
f2e8c8d04432d0204a999aad3e555171ffd0d432
[ "BSD-3-Clause" ]
2
2021-03-26T04:36:39.000Z
2022-01-11T16:17:56.000Z
docs/source/conf.py
XuChanghhu/thgsp
f2e8c8d04432d0204a999aad3e555171ffd0d432
[ "BSD-3-Clause" ]
2
2021-01-13T05:15:43.000Z
2022-01-01T12:51:32.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.482353
79
0.683064
93676f00bcb8df0c79a1b6afdbb442c220adfa65
337
py
Python
butler/clients.py
JasonGiedymin/elk-butler
d83b7459ac57961151bf1f4f9754cd50065cba70
[ "Apache-2.0" ]
null
null
null
butler/clients.py
JasonGiedymin/elk-butler
d83b7459ac57961151bf1f4f9754cd50065cba70
[ "Apache-2.0" ]
null
null
null
butler/clients.py
JasonGiedymin/elk-butler
d83b7459ac57961151bf1f4f9754cd50065cba70
[ "Apache-2.0" ]
null
null
null
# # ES Client Tools # from elasticsearch import Elasticsearch import os def info(): es_host = os.environ.get('ES_HOST', 'localhost') es_port = os.environ.get('ES_PORT', 9200) use_ssl = False return {'host': es_host, 'port': es_port, 'use_ssl': use_ssl} def create(): return Elasticsearch([ ...
16.85
65
0.637982
936784d87a64e484d71265b37e063cef8a6ab3b0
4,461
py
Python
classifier/utils.py
tanumkroken/speech-classifier
9ef5a7778f5df5c9488690ea96b5b35cd4eef08d
[ "MIT" ]
null
null
null
classifier/utils.py
tanumkroken/speech-classifier
9ef5a7778f5df5c9488690ea96b5b35cd4eef08d
[ "MIT" ]
null
null
null
classifier/utils.py
tanumkroken/speech-classifier
9ef5a7778f5df5c9488690ea96b5b35cd4eef08d
[ "MIT" ]
null
null
null
# Copyright (c) 2021 by Ole Christian Astrup. All rights reserved. Licensed under MIT # license. See LICENSE in the project root for license information. # import logging import colorlog DELIMITER = 52*'-' SECTION = 52*'=' INDENT = 10*' ' INDENT_SMALL = 2*' ' RIGHT_PAD = ':<45' def init_logger(app_name, multip...
27.368098
87
0.514234
936785d4e96f452ad401fef18229b2d4f114be56
3,248
py
Python
experiment/AdaptiveClient.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
1
2021-06-15T06:21:14.000Z
2021-06-15T06:21:14.000Z
experiment/AdaptiveClient.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
null
null
null
experiment/AdaptiveClient.py
adhocmaster/pyns
607feb56baf0900535130195163eac331e131a2e
[ "MIT" ]
1
2021-06-15T06:21:18.000Z
2021-06-15T06:21:18.000Z
from abc import abstractmethod from core.TCPClient import TCPClient import queue, math, logging from library.TimeUtils import TimeUtils from library.Window import Window class AdaptiveClient(TCPClient): def __init__(self, id, rttWindowSize, bandWidthWindowSize, delay_between_packets, max_outstanding_packets...
30.933333
143
0.64101
93678b7a30195d5fd805bba731626469ff9467a4
2,619
py
Python
contrib/fanfouapi/management/commands/callapi.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
contrib/fanfouapi/management/commands/callapi.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
contrib/fanfouapi/management/commands/callapi.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from django.conf import settings from django.utils.encoding import smart_str import sys, urllib, re from fanfouapi import oauth, auth, api from urllib2 import Request, urlopen from urlparse import urljoin import getpass def get_api(oauth_token=settings.PUBLISHER_OAU...
42.241935
121
0.57121
9367b1418b1a19fd87721995a67824f61153385a
484
py
Python
setup.py
GabrielAmare/PythonGenerator
a50338045a253eeaba36d0e44069ca38741d4f97
[ "MIT" ]
null
null
null
setup.py
GabrielAmare/PythonGenerator
a50338045a253eeaba36d0e44069ca38741d4f97
[ "MIT" ]
null
null
null
setup.py
GabrielAmare/PythonGenerator
a50338045a253eeaba36d0e44069ca38741d4f97
[ "MIT" ]
null
null
null
from install37 import setup from python_generator.__meta__ import __version__ if __name__ == "__main__": setup( name="python_generator", version=__version__, author="Gabriel Amare", author_email="gabriel.amare.dev@gmail.com", description="tool to generate python code", ...
30.25
63
0.64876
9367cdc81e9ce4a11be9036f1728d5c29db7ca1f
276
py
Python
master/master/__init__.py
philipov/python-plugins-demo
a8f7fa3ba4862bf62e96104080ced5bde560a473
[ "MIT" ]
null
null
null
master/master/__init__.py
philipov/python-plugins-demo
a8f7fa3ba4862bf62e96104080ced5bde560a473
[ "MIT" ]
null
null
null
master/master/__init__.py
philipov/python-plugins-demo
a8f7fa3ba4862bf62e96104080ced5bde560a473
[ "MIT" ]
null
null
null
#-- master.__init__ """ """ #----------------------------------------------------------------------------------------------# from .thing import Thing from .thing import Some #----------------------------------------------------------------------------------------------#
21.230769
96
0.192029
9367dfcb7ac342b6f323af0afaa08d38943b2c9f
19
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Odyssey/odyssey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Odyssey/odyssey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Odyssey/odyssey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Odyssey: pass
19
19
0.842105
9367f081ce69d17eb67490f8cdd9b04c76921f6b
11,788
py
Python
snsapi/plugin/rss.py
wcyz666/snsapi
19fcf5ca48bc709db50f8f622a30dc4d55924d4e
[ "Unlicense" ]
1
2015-11-08T09:04:38.000Z
2015-11-08T09:04:38.000Z
snsapi/plugin/rss.py
wcyz666/snsapi
19fcf5ca48bc709db50f8f622a30dc4d55924d4e
[ "Unlicense" ]
null
null
null
snsapi/plugin/rss.py
wcyz666/snsapi
19fcf5ca48bc709db50f8f622a30dc4d55924d4e
[ "Unlicense" ]
null
null
null
#-*- encoding: utf-8 -*- ''' RSS Feed Contains: * RSS Read-only feed platform. * RSS Read/Write platform. * RSS Summary platform. ''' from ..snslog import SNSLog as logger from ..snsbase import SNSBase from .. import snstype from ..third import feedparser import datetime from ..third import PyRSS2Gen from...
33.488636
95
0.572447
93680752fbf460d45b183b9f3b825eec8f884d89
63,539
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 may ...
46.176599
142
0.676781
93680931b475ba23b9d1b6b53eed7e02ad79bbc5
13,321
py
Python
dev/local/text/core.py
vguerra/fastai_docs
95df902ef5cd08bcd58d5ca64bc8a6ea3f297531
[ "Apache-2.0" ]
1
2021-01-24T23:17:50.000Z
2021-01-24T23:17:50.000Z
dev/local/text/core.py
Salehbigdeli/fastai_dev
94f85ae909454447c8f72115987c2e30bd1c1417
[ "Apache-2.0" ]
null
null
null
dev/local/text/core.py
Salehbigdeli/fastai_dev
94f85ae909454447c8f72115987c2e30bd1c1417
[ "Apache-2.0" ]
1
2019-08-30T14:34:07.000Z
2019-08-30T14:34:07.000Z
#AUTOGENERATED! DO NOT EDIT! File to edit: dev/30_text_core.ipynb (unless otherwise specified). __all__ = ['ProcessPoolExecutor', 'parallel', 'parallel_gen', 'UNK', 'PAD', 'BOS', 'EOS', 'FLD', 'TK_REP', 'TK_WREP', 'TK_UP', 'TK_MAJ', 'spec_add_spaces', 'rm_useless_spaces', 'replace_rep', 'replace_wrep', 'fix...
42.288889
121
0.663389
93681bafd4a86e72510bec6e257aaccc184bf501
5,475
py
Python
ros_buildfarm/trigger_job.py
ahcorde/ros_buildfarm
5b5e2b16438384b913c144daf9cbbf533bbd3389
[ "Apache-2.0" ]
null
null
null
ros_buildfarm/trigger_job.py
ahcorde/ros_buildfarm
5b5e2b16438384b913c144daf9cbbf533bbd3389
[ "Apache-2.0" ]
1
2020-01-15T17:41:00.000Z
2020-01-15T17:54:58.000Z
ros_buildfarm/trigger_job.py
ahcorde/ros_buildfarm
5b5e2b16438384b913c144daf9cbbf533bbd3389
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2016 Open Source Robotics Foundation, 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 applicabl...
39.963504
79
0.643288
93683ecf0662d2c1f9e27dabda0dd85e4c0d30f9
1,761
py
Python
tests/test_helpers/test_search/test_generic.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_helpers/test_search/test_generic.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_helpers/test_search/test_generic.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 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. # ...
33.226415
86
0.586031
93684321d6bbb829aed450948e4c7c50c71c45be
306
py
Python
euler/euler/euler_003.py
dalamilla/programming-python
bf30ae752afff810d5cc0dda07694518a510a913
[ "MIT" ]
null
null
null
euler/euler/euler_003.py
dalamilla/programming-python
bf30ae752afff810d5cc0dda07694518a510a913
[ "MIT" ]
null
null
null
euler/euler/euler_003.py
dalamilla/programming-python
bf30ae752afff810d5cc0dda07694518a510a913
[ "MIT" ]
null
null
null
""" The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? """ def Euler003(n): """Solution of third Euler problem.""" pm = 2 while n != 1: if n % pm == 0: n = n / pm else: pm += 1 return pm
17
61
0.51634
936862d5a215060220307e4915f9bd738bce6c9f
818
py
Python
Code/products/urls.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/products/urls.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/products/urls.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
#SPDX-License-Identifier: BSD-3-Clause ''' urls.py (C) Copyright 2020 Friedrich Luetze GmbH, S. Hentges, J. Luelsdorf <lsd@luetze.de> ''' from django.urls import path from products import views # CAUTION! # string/staticString/ has to be defined before any occurence of string/<str:variableName>/ otherwise # staticStr...
31.461538
101
0.707824
93686c7b233984e99e17567a529c8d4d124d3dbf
2,809
py
Python
tests/test_utils.py
janLuke/spotipie
a902c6cda9a3e61bbcfd4915e5102479a68ef3cb
[ "MIT" ]
1
2021-05-02T10:32:38.000Z
2021-05-02T10:32:38.000Z
tests/test_utils.py
janLuke/spotipie
a902c6cda9a3e61bbcfd4915e5102479a68ef3cb
[ "MIT" ]
null
null
null
tests/test_utils.py
janLuke/spotipie
a902c6cda9a3e61bbcfd4915e5102479a68ef3cb
[ "MIT" ]
null
null
null
import pytest from spotipie.exceptions import ResourceTypeMismatch from spotipie.utils import RESOURCE_TYPES, ResourceInfo, get_id @pytest.mark.parametrize( 'obj_type', RESOURCE_TYPES ) def test_resource_info_from_uri(obj_type): uri = ResourceInfo.from_uri('spotify:{}:1i6N76fftMZhijOzFQ5ZtL'.format(obj_type)...
33.047059
89
0.721609
93687d0374c9cdb6a39e2d3bb4938715ce2696e3
1,738
py
Python
promoinsta.py
iakrevetkho/PromoInsta
d37c4189fc81ce0667a96ae8cca23d7f6a057649
[ "Apache-2.0" ]
null
null
null
promoinsta.py
iakrevetkho/PromoInsta
d37c4189fc81ce0667a96ae8cca23d7f6a057649
[ "Apache-2.0" ]
null
null
null
promoinsta.py
iakrevetkho/PromoInsta
d37c4189fc81ce0667a96ae8cca23d7f6a057649
[ "Apache-2.0" ]
null
null
null
from instapy import InstaPy from instapy.util import smart_run insta_username = 'drawwer' insta_password = 'warandpiece' insta_tags = [''] # get a session! session = InstaPy(username=insta_username, password=insta_password, headless_browser=False, multi_logs=True...
40.418605
79
0.55351
93687e691a63e15db631ec4fe46b4de425ea17df
4,046
py
Python
alipay/aop/api/request/DatadigitalFincloudFinsaasCrowdOdpsCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/DatadigitalFincloudFinsaasCrowdOdpsCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/DatadigitalFincloudFinsaasCrowdOdpsCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.DatadigitalFincloudFinsaasCrowdOdpsCreateModel import DatadigitalFincloudFinsaasCrowdOdpsCreateModel class DatadigitalFincloudFinsaa...
27.903448
148
0.651013
93689a9a2a2da91cbf7cf9bd558d3d10aa2db3df
635
py
Python
unit_tests.py
AgenttiX/fractal-zoomer
514f2225bc00c11b94e0b0e90b55d3c33b55bf9c
[ "MIT" ]
2
2020-06-20T00:26:23.000Z
2021-12-29T17:17:04.000Z
unit_tests.py
AgenttiX/fractal-zoomer
514f2225bc00c11b94e0b0e90b55d3c33b55bf9c
[ "MIT" ]
null
null
null
unit_tests.py
AgenttiX/fractal-zoomer
514f2225bc00c11b94e0b0e90b55d3c33b55bf9c
[ "MIT" ]
1
2018-08-26T13:17:17.000Z
2018-08-26T13:17:17.000Z
# import os # # if "CI" in os.environ: # os.environ["NUMBA_ENABLE_CUDASIM"] = "1" import unittest import fractal_core as core class CoreTest(unittest.TestCase): @staticmethod def test_mandel(): core.mandel(-2, 1, -1, 1, (1280, 720), 100) @staticmethod def test_mandel_color(): co...
20.483871
59
0.59685
9368b56d37fe055b6b375b784a1be40ebf89e1fc
168
py
Python
cli_tasks/install.py
andre487/auth487
5e2906b29958015791ffd10f42f29058aaad2c8c
[ "MIT" ]
null
null
null
cli_tasks/install.py
andre487/auth487
5e2906b29958015791ffd10f42f29058aaad2c8c
[ "MIT" ]
2
2021-04-06T18:24:23.000Z
2021-04-06T18:24:34.000Z
cli_tasks/install.py
andre487/auth487
5e2906b29958015791ffd10f42f29058aaad2c8c
[ "MIT" ]
null
null
null
from . import common def run(c, recreate_venv, packages): common.prepare_virtual_env(c, recreate_venv) c.run(f'{common.PYTHON} -m pip install -U {packages}')
24
58
0.714286
9368be9a6fd11beee46f75d20d3a42b83a18136c
379
py
Python
reana_job_controller/__init__.py
dleehr/reana-job-controller
aa23803db5528ff1e31bb674fd57a28f83fd41ed
[ "MIT" ]
1
2019-04-05T14:57:18.000Z
2019-04-05T14:57:18.000Z
reana_job_controller/__init__.py
dleehr/reana-job-controller
aa23803db5528ff1e31bb674fd57a28f83fd41ed
[ "MIT" ]
null
null
null
reana_job_controller/__init__.py
dleehr/reana-job-controller
aa23803db5528ff1e31bb674fd57a28f83fd41ed
[ "MIT" ]
1
2019-06-04T22:25:38.000Z
2019-06-04T22:25:38.000Z
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA-Job-Controller.""" from __future__ import absolute_import, print_function fro...
23.6875
72
0.722955
9368daf4ad48d296a388df967ed16ef6beb852c7
900
py
Python
setup.py
jgori-ouistiti/CoopIHC-zoo
5efb1e1f9e773d793b4634b4671124d43aae3e7d
[ "MIT" ]
null
null
null
setup.py
jgori-ouistiti/CoopIHC-zoo
5efb1e1f9e773d793b4634b4671124d43aae3e7d
[ "MIT" ]
null
null
null
setup.py
jgori-ouistiti/CoopIHC-zoo
5efb1e1f9e773d793b4634b4671124d43aae3e7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup packages = \ ['coopihczoo', 'coopihczoo.examples', 'coopihczoo.examples.basic', 'coopihczoo.examples.rl', 'coopihczoo.eye', 'coopihczoo.pointing', 'coopihczoo.pointing.test'] package_data = \ {'': ['*']} install_requires = \ ['PyYAML>=6.0,<7.0', 'numpy>=1.2...
21.95122
77
0.632222
9368e05de4de643702197f43aece4314ebffc52d
1,243
py
Python
binary_search/852_peak_index_in_a_mountain_array.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
binary_search/852_peak_index_in_a_mountain_array.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
binary_search/852_peak_index_in_a_mountain_array.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
class Solution(object): """ A peak element is guaranteed to exist! Use binary search method. Cannot directly apply the XXOO template. A point can have three possible scenarios: (1) ascending (compare to element at right) (2) at peak (3) descending (compare to element at left...
27.622222
60
0.467418
9368eb812136cca069b7761b720f0d5c35aa87e4
871
py
Python
freecoinage/taskapp/celery.py
clifer/freecoinage
0bc8300f09445ef6d8258b3ca782627e0d81e2f1
[ "MIT" ]
null
null
null
freecoinage/taskapp/celery.py
clifer/freecoinage
0bc8300f09445ef6d8258b3ca782627e0d81e2f1
[ "MIT" ]
null
null
null
freecoinage/taskapp/celery.py
clifer/freecoinage
0bc8300f09445ef6d8258b3ca782627e0d81e2f1
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os from celery import Celery from django.apps import AppConfig from django.conf import settings if not settings.configured: # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local')...
24.885714
96
0.712974
9368f14a75ec2b0c6ff5e1bf335950a7b723ce53
1,952
py
Python
DB/MongodbClient.py
ZZINDS/demo1
5d6a81842cd4c09ce85200ab8f3a86280bf2bdb2
[ "MIT" ]
null
null
null
DB/MongodbClient.py
ZZINDS/demo1
5d6a81842cd4c09ce85200ab8f3a86280bf2bdb2
[ "MIT" ]
null
null
null
DB/MongodbClient.py
ZZINDS/demo1
5d6a81842cd4c09ce85200ab8f3a86280bf2bdb2
[ "MIT" ]
null
null
null
# coding: utf-8 """ ------------------------------------------------- File Name: MongodbClient.py Description : 封装mongodb操作 Author : zzinds date: 2018/11/13 ------------------------------------------------- """ from pymongo import MongoClient class MongodbClient(object): def __ini...
27.492958
85
0.535861
93693146bbefeac063f3d9312b8e46333d63fc43
41,645
py
Python
pyspod/spod_base.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
1
2022-03-11T14:41:07.000Z
2022-03-11T14:41:07.000Z
pyspod/spod_base.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
pyspod/spod_base.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
''' Base module for the SPOD: - `fit` and `predict` methods must be implemented in inherited classes ''' from __future__ import division # Import standard Python packages import os import sys import psutil import warnings import numpy as np import scipy.special as sc from scipy.fft import fft import scipy from numpy...
30.265262
100
0.653044
936932877f03ffff523e5360ac6f3d48b171ff07
8,619
py
Python
dnnlib/tflib/ops/fused_bias_act.py
tullie/gansformer-tpu
c29fbc622e69d05ac736f99232f5aa19084ce0a4
[ "MIT" ]
29
2020-06-06T05:54:42.000Z
2022-03-03T17:43:14.000Z
dnnlib/tflib/ops/fused_bias_act.py
tullie/gansformer-tpu
c29fbc622e69d05ac736f99232f5aa19084ce0a4
[ "MIT" ]
7
2020-09-25T22:38:23.000Z
2022-03-12T00:29:16.000Z
dnnlib/tflib/ops/fused_bias_act.py
tullie/gansformer-tpu
c29fbc622e69d05ac736f99232f5aa19084ce0a4
[ "MIT" ]
12
2020-07-30T19:09:32.000Z
2021-11-12T18:18:38.000Z
# Copyright (c) 2019, NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://nvlabs.github.io/stylegan2/license.html """Custom TensorFlow ops for efficient bias and activation.""" import os import numpy as np ...
43.751269
162
0.570832
93695a28c9218529d9f88af61a2e4944ae0c9781
10,542
py
Python
dddm/samplers/emcee.py
JoranAngevaare/dddm
3461e37984bac4d850beafecc9d1881b84fb226c
[ "MIT" ]
null
null
null
dddm/samplers/emcee.py
JoranAngevaare/dddm
3461e37984bac4d850beafecc9d1881b84fb226c
[ "MIT" ]
85
2021-09-20T12:08:53.000Z
2022-03-30T12:48:06.000Z
dddm/samplers/emcee.py
JoranAngevaare/dddm
3461e37984bac4d850beafecc9d1881b84fb226c
[ "MIT" ]
null
null
null
""" Do a likelihood fit. The class MCMCStatModel is used for fitting applying the MCMC algorithm emcee. MCMC is: slower than the nestle package; and harder to use since one has to choose the 'right' initial parameters Nevertheless, the walkers give great insight in how the likelihood-function is felt by the s...
35.735593
100
0.573136
93696b9ba2dcf1c91e5f0e422f0e37e8d4b0c9de
3,263
py
Python
sdk/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
47.289855
125
0.695985
93697d3c54a0481e3f330446919fe74053df43f5
1,241
py
Python
Old/examples/rosen-plot.py
aligapaul/pyprobml
2ceb210e6d8131734fb4fa7e399a62b9d01813e1
[ "MIT" ]
1
2019-05-07T12:40:01.000Z
2019-05-07T12:40:01.000Z
Old/examples/rosen-plot.py
tywang89/pyprobml
82cfdcb8daea653cda8f77e8737e585418476ca7
[ "MIT" ]
null
null
null
Old/examples/rosen-plot.py
tywang89/pyprobml
82cfdcb8daea653cda8f77e8737e585418476ca7
[ "MIT" ]
null
null
null
# https://commons.wikimedia.org/wiki/File:Rosenbrock_function.svg from mpl_toolkits.mplot3d import Axes3D from matplotlib.colors import LogNorm import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = Axes3D(fig, azim=-128, elev=43) s = .05 X = np.arange(-2, 2.+s, s) Y = np.arange(-1, 3.+s, s) X, Y =...
37.606061
77
0.607575
9369980ce3602b1a4768eb07d8c9c31d03c3196a
1,921
py
Python
lister/listtree.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
1
2015-04-23T11:43:26.000Z
2015-04-23T11:43:26.000Z
lister/listtree.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
lister/listtree.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
#!python # file listtree.py class ListTree: ''' Mix-in that returns an __str__ trace of the entire class tree and all its objects' attrs at and above self; run by print(), str() returns constructed string; uses __X attr names to avoid impacting clients; recurses to superclasses explicitly, uses str...
35.574074
87
0.526809
9369ae8724afd76b03b6ca560e3735c5b8f0447e
1,309
py
Python
py/examples/test_pattern2.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
3
2016-10-13T20:47:13.000Z
2018-11-30T00:53:26.000Z
py/examples/test_pattern2.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
null
null
null
py/examples/test_pattern2.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
8
2015-10-10T05:08:59.000Z
2021-01-31T15:57:27.000Z
"""Turn off one light at a time with the others in an on state""" import time # This import gives you full acess to the hardware import hardware_controller as hc def main(): """ Test pattern2 Unlights one channel at a time in order """ # this is a list of all the channels you have access to ...
25.173077
77
0.595875
9369e0f87f045110458b4607913bf02f4c467438
12,688
py
Python
src/openapi_client/model/reminder.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
6
2022-01-03T07:07:18.000Z
2022-03-21T08:13:49.000Z
src/openapi_client/model/reminder.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-02T13:01:05.000Z
2022-02-10T12:01:17.000Z
src/openapi_client/model/reminder.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-10T11:53:55.000Z
2022-02-10T11:53:55.000Z
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiT...
42.152824
121
0.571091
9369e9bf4604847a900de0bf9982b704351575cc
2,938
py
Python
scripts/subreddit_submissions.py
pcpc-mmu/subreddit-analyzer
7dfc159260f8a37e2d3f4716e687364e607ed15b
[ "MIT" ]
null
null
null
scripts/subreddit_submissions.py
pcpc-mmu/subreddit-analyzer
7dfc159260f8a37e2d3f4716e687364e607ed15b
[ "MIT" ]
null
null
null
scripts/subreddit_submissions.py
pcpc-mmu/subreddit-analyzer
7dfc159260f8a37e2d3f4716e687364e607ed15b
[ "MIT" ]
null
null
null
""" This script uses the Pushshift API to download posts from the specified subreddits. By default it downloads 10,000 posts starting from the newest one. """ import csv import time from datetime import datetime import requests import tldextract SUBREDDITS = ["anime_titties","worldpolitics"] HEADERS = {"User-Agent"...
27.716981
86
0.617767
9369f26b5e54aa1a231686c3317f718e336a90d6
6,282
py
Python
airflow/models/variable.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
airflow/models/variable.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
airflow/models/variable.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
35.094972
107
0.634352
936a0a5682bba94ba7c7a1a3593aefba7cb98fba
896
py
Python
ivmonitor/urls.py
ivall/IVmonitor
8a217cb3cc00a44d7c577ec61a90c77cc7c22959
[ "MIT" ]
190
2021-02-06T10:47:54.000Z
2022-02-15T23:45:07.000Z
ivmonitor/urls.py
ivall/IVmonitor
8a217cb3cc00a44d7c577ec61a90c77cc7c22959
[ "MIT" ]
null
null
null
ivmonitor/urls.py
ivall/IVmonitor
8a217cb3cc00a44d7c577ec61a90c77cc7c22959
[ "MIT" ]
null
null
null
"""ivmonitor URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
35.84
77
0.69308
936a0faeb322c4d9ea1dad56563b50e37de66682
335
py
Python
xlnet/utils/__init__.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
50
2020-02-02T09:24:44.000Z
2022-03-01T03:22:19.000Z
xlnet/utils/__init__.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
1
2020-02-04T03:50:02.000Z
2020-02-04T04:41:37.000Z
xlnet/utils/__init__.py
AlibabaPAI/DAPPLE
fd75dcfbc6c73a7624b9fd9d8c3334e5d04bcd20
[ "BSD-3-Clause" ]
9
2020-02-02T09:23:31.000Z
2021-09-22T07:24:34.000Z
import tensorflow as tf from tensorflow import keras from tensorflow.python.keras import backend from xlnet_utils import create_optimizer from xlnet_utils import init_from_checkpoint from xlnet_utils import load_model_weights_from_original_checkpoint from xlnet_utils import checkpoint_loader from xlnet_utils import get...
27.916667
67
0.889552
936a2b3664f9640264f30dbf74813da0bb6d8b42
32,413
py
Python
m2-modified/ims/common/agentless-system-crawler/tests/unit/test_dockercontainer.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/tests/unit/test_dockercontainer.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/tests/unit/test_dockercontainer.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
import copy import unittest import mock import requests from dockercontainer import DockerContainer, get_docker_containers from utils import crawler_exceptions def mocked_exists(pid): return True def mocked_docker_inspect(long_id): if long_id == 'no_container_id': raise requests.exceptions.HTTPErr...
38.132941
83
0.600407
936a48cba47654de10703b354923711a3ef81d69
3,548
py
Python
test/test_noisify.py
akakream/noisifier
1976d1a811b29be966f5c382519c7baa28fd8ac9
[ "MIT" ]
null
null
null
test/test_noisify.py
akakream/noisifier
1976d1a811b29be966f5c382519c7baa28fd8ac9
[ "MIT" ]
1
2020-07-03T19:15:51.000Z
2020-07-03T19:15:51.000Z
test/test_noisify.py
akakream/noisifier
1976d1a811b29be966f5c382519c7baa28fd8ac9
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras from keras.datasets import cifar10 from keras.datasets import cifar100 from keras.datasets import mnist from multi_class import Multi_Class_Noisifier from multi_label import Multi_Label_Noisifier def load_dataset(dataset): NUM_OF_CLASSES...
27.292308
181
0.62345
936a9abb6ad2d5999160559a557ba2333db49972
1,225
py
Python
Aula17/ex3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula17/ex3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula17/ex3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# 1 - Faça um programa interativo que tenha: Cadastro da banda # 2 - Cadastro do álbum, música, sair # 3- Menu deve ser executado até que se esconlha a opção sair. # 4 - Cada opção deve ser mostrada # 5 - Quando selecionado a opção sair, deverá aparecer na tela as informações das bandas cadastradas, # álbuns e músic...
25.520833
101
0.371429
936aa14331aba5c59c935aa3f7f4429719d1ed72
6,748
py
Python
Tests/test_HMMCasino.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Tests/test_HMMCasino.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Tests/test_HMMCasino.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
#!/usr/bin/env python # 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. """Test out HMMs using the Occasionally Dishonest Casino. This uses the occasionally dishonest casino example from Biological S...
31.680751
80
0.681387
936ab7ab0cde1765b0473853eb47c3fc5af2ea09
1,631
py
Python
scattertext/termsignificance/ScaledFScoreSignificance.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
1
2020-08-11T03:27:28.000Z
2020-08-11T03:27:28.000Z
scattertext/termsignificance/ScaledFScoreSignificance.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
null
null
null
scattertext/termsignificance/ScaledFScoreSignificance.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
1
2020-01-08T00:25:31.000Z
2020-01-08T00:25:31.000Z
# -*- coding: utf-8 -*- import numpy as np from scattertext import ScaledFZScore from scattertext.Common import DEFAULT_SCALER_ALGO, DEFAULT_BETA from scattertext.termscoring import ScaledFScore from scipy.stats import norm from scattertext.termsignificance.TermSignificance import TermSignificance class ScaledFScor...
25.484375
104
0.692826
936acaad46e4f1b5665da8140a905281b36908ed
1,846
py
Python
pylily/0409/0409/module1_2.py
joannachuang/2019_summer_joanna
1773cbad88cc2b7ebf20cebbd97d2988919372e6
[ "Apache-2.0" ]
null
null
null
pylily/0409/0409/module1_2.py
joannachuang/2019_summer_joanna
1773cbad88cc2b7ebf20cebbd97d2988919372e6
[ "Apache-2.0" ]
null
null
null
pylily/0409/0409/module1_2.py
joannachuang/2019_summer_joanna
1773cbad88cc2b7ebf20cebbd97d2988919372e6
[ "Apache-2.0" ]
1
2019-07-09T08:39:47.000Z
2019-07-09T08:39:47.000Z
import Lily.ctao.database as cdb import Lily.crawler.url_string as url import pandas as pd from tabula import read_pdf import csv import numpy import os df = read_pdf('''d:/107_taipei_traffic.pdf''', pages='1-7', pandas_options={'header': 0}, encoding='Big5', guess = False) #java問題,Error: Error occurred during initial...
32.385965
208
0.663597
936ae420f5748a5e38784e7d88aa8e5c3fe1bfa3
389
py
Python
LC/266.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/266.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/266.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def canPermutePalindrome(self, s): """ :type s: str :rtype: bool """ d=collections.defaultdict(int) for c in s: d[c]+=1 t=0 for c in d: if d[c]%2==1: if t==0: t=1 ...
22.882353
38
0.375321
936b1d756b182a658360b09ca286a19efaccf8e2
8,575
py
Python
src/canadacovidmetrics/canadacovidmetrics.py
UBC-MDS/canadacovidmetrics
4c8154ec3420466e1060672cf80fac77da7ed9f6
[ "MIT" ]
null
null
null
src/canadacovidmetrics/canadacovidmetrics.py
UBC-MDS/canadacovidmetrics
4c8154ec3420466e1060672cf80fac77da7ed9f6
[ "MIT" ]
27
2022-01-14T17:44:35.000Z
2022-02-05T06:50:12.000Z
src/canadacovidmetrics/canadacovidmetrics.py
UBC-MDS/CanadaCovidMetrics
4c8154ec3420466e1060672cf80fac77da7ed9f6
[ "MIT" ]
1
2022-01-15T08:48:17.000Z
2022-01-15T08:48:17.000Z
import datetime as dt from multiprocessing.sharedctypes import Value import requests import pandas as pd today = '{}'.format(dt.date.today()) def date_format_check(datestr): """Check date format is compatible with API call Parameters ---------- datestr : str Date string to be checked Retur...
34.857724
153
0.621924
936b21136c7ae0a464342d3cff128997b56d21d2
21,086
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_global_schema_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_global_schema_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_global_schema_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
45.640693
209
0.665228
936b22ff6a1f3362a453c8b0340ca9b5a1fd9721
5,236
py
Python
ibmsecurity/isam/base/network/interfaces_vlan.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
1
2018-04-24T19:57:09.000Z
2018-04-24T19:57:09.000Z
ibmsecurity/isam/base/network/interfaces_vlan.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/base/network/interfaces_vlan.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
1
2020-04-03T09:30:01.000Z
2020-04-03T09:30:01.000Z
import logging import ibmsecurity.utilities.tools import ibmsecurity.isam.base.network.interfaces logger = logging.getLogger(__name__) def add(isamAppliance, label, vlanId, name='', enabled=False, comment='', overrideSubnetChecking=False, bondedTo='', bondingMode=None, check_mode=False, force=False): """...
44.752137
120
0.460084
936b8bf7e132195bedf131cdd4e69399cc387d89
10,239
py
Python
utils/volume_op.py
icannistraci/nerfmm
514ae420f41ba5b6447be853f73e37beca136f85
[ "MIT" ]
266
2021-04-19T10:27:52.000Z
2022-03-31T13:20:30.000Z
utils/volume_op.py
icannistraci/nerfmm
514ae420f41ba5b6447be853f73e37beca136f85
[ "MIT" ]
22
2021-04-20T15:15:59.000Z
2022-01-20T01:19:44.000Z
utils/volume_op.py
icannistraci/nerfmm
514ae420f41ba5b6447be853f73e37beca136f85
[ "MIT" ]
35
2021-04-20T05:54:15.000Z
2022-03-21T10:13:22.000Z
import torch def get_ndc_rays(H, W, focal, near, rays_o, rays_d): """ This function is modified from https://github.com/kwea123/nerf_pl. Transform rays from world coordinate to NDC. NDC: Space such that the canvas is a cube with sides [-1, 1] in each axis. For detailed derivation, please see: ...
46.96789
125
0.588827