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
f78ef50ad89efbe6e2a486d519ded0161d99b9ce
5,945
py
Python
alipay/aop/api/domain/JourneyLocation.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/JourneyLocation.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/JourneyLocation.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 * from alipay.aop.api.domain.OrderExtInfo import OrderExtInfo class JourneyLocation(object): def __init__(self): self._aoi_id = None self._city = None self._ext_info = None ...
31.62234
91
0.57746
f78f2ef91f80bae5f7c2234cba2d00f601cb658d
10,120
py
Python
sktime/performance_metrics/forecasting/probabilistic/_classes.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/performance_metrics/forecasting/probabilistic/_classes.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/performance_metrics/forecasting/probabilistic/_classes.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) import numpy as np # TODO: add formal tests import pandas as pd from sklearn.utils import check_array, check_consistent_length from sktime.datatypes import check_is_scitype, convert from sktime.p...
36.142857
88
0.598221
f78f37a644639e3efcbb0596177ea4b09c0ff9de
3,210
py
Python
services/showcase/api/endpoints/routes/sandbox.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/showcase/api/endpoints/routes/sandbox.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/showcase/api/endpoints/routes/sandbox.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
import logging from typing import List from uuid import UUID from fastapi import APIRouter, Depends from sqlalchemy.ext.asyncio import AsyncSession from starlette import status from api.db.models.sandbox import SandboxCreate from api.db.models.related import SandboxReadPopulated, OutOfBandReadPopulated from api.db.re...
30.571429
85
0.774143
f78f848e1c524ce2d3ef30ab5cd7ecf634242047
5,761
py
Python
river/datasets/synth/stagger.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/datasets/synth/stagger.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/datasets/synth/stagger.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import numpy as np from river import datasets from river.utils.skmultiflow_utils import check_random_state class STAGGER(datasets.base.SyntheticDataset): """STAGGER concepts stream generator. This generator is an implementation of the dara stream with abrupt concept drift, as described in [^1]. The...
36.00625
85
0.609443
f78fa79ad3f8dd2312f337383fdb8aa35163fe84
2,578
py
Python
backend/metagrid/cart/models.py
tomvothecoder/metagrid
a38f3f78fbaf78f909c74a263c03a3f6d376b75c
[ "MIT" ]
5
2020-06-08T23:20:33.000Z
2021-11-29T15:25:27.000Z
backend/metagrid/cart/models.py
aims-group/metagrid
32bd76638d80c3da7529a73ab8509eb53264c8dc
[ "MIT" ]
359
2020-04-24T19:45:56.000Z
2022-03-31T18:04:12.000Z
backend/metagrid/cart/models.py
tomvothecoder/metagrid
a38f3f78fbaf78f909c74a263c03a3f6d376b75c
[ "MIT" ]
1
2021-03-01T17:27:43.000Z
2021-03-01T17:27:43.000Z
import uuid from django.contrib.postgres.fields import ArrayField from django.db import models from django.db.models import JSONField as JSONBField # type: ignore # mypy does not have support for some Django 3.x features (e.g. JSONField) # https://github.com/typeddjango/django-stubs/issues/439 class Cart(models.Mo...
29.632184
104
0.664469
f7901546b35e68cd041ea692fea056b53594460f
5,260
py
Python
queue_services/entity-emailer/src/entity_emailer/worker.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
queue_services/entity-emailer/src/entity_emailer/worker.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
queue_services/entity-emailer/src/entity_emailer/worker.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
43.833333
113
0.712548
f7907aadd296c14d35454b819523aadce8df37f6
9,128
py
Python
section2 - Copy/src/experiments/UNetExperiment.py
root-dh-94/Hippocampal-Volume-Quantification-in-Alzheimer-s-Progression
6aba08ba44248af08efb5c19b5f95d3643a025f4
[ "MIT" ]
null
null
null
section2 - Copy/src/experiments/UNetExperiment.py
root-dh-94/Hippocampal-Volume-Quantification-in-Alzheimer-s-Progression
6aba08ba44248af08efb5c19b5f95d3643a025f4
[ "MIT" ]
null
null
null
section2 - Copy/src/experiments/UNetExperiment.py
root-dh-94/Hippocampal-Volume-Quantification-in-Alzheimer-s-Progression
6aba08ba44248af08efb5c19b5f95d3643a025f4
[ "MIT" ]
null
null
null
""" This module represents a UNet experiment and contains a class that handles the experiment lifecycle """ import os import time import numpy as np import torch import torch.optim as optim import torch.nn.functional as F from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter from ...
33.933086
119
0.594873
f7908ca6082637eebabe1eb61e43629e7fb8395f
1,152
py
Python
runtime/python/test/test_clownfish.py
dgreatwood/lucy-clownfish
d89bbfb3dc9ec8bb7eaba9a8eb2555c7e42669c9
[ "Apache-2.0" ]
7
2015-04-04T08:35:51.000Z
2021-11-10T15:44:30.000Z
runtime/python/test/test_clownfish.py
dgreatwood/lucy-clownfish
d89bbfb3dc9ec8bb7eaba9a8eb2555c7e42669c9
[ "Apache-2.0" ]
24
2015-04-22T14:35:06.000Z
2016-07-22T14:05:53.000Z
runtime/python/test/test_clownfish.py
dgreatwood/lucy-clownfish
d89bbfb3dc9ec8bb7eaba9a8eb2555c7e42669c9
[ "Apache-2.0" ]
13
2015-04-20T17:22:24.000Z
2021-11-10T15:42:43.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 use ...
36
74
0.758681
f790a65e337c53a70d2a9b92c2a04f36c99c0940
34,668
py
Python
Documentation/my_module.py
alirkaya/card-fraud-detection
90e4639c55a8502e03c35660a7b86a847c069cfb
[ "MIT" ]
2
2020-09-29T23:34:28.000Z
2020-10-03T19:25:11.000Z
Documentation/my_module.py
alirkaya/card-fraud-detection
90e4639c55a8502e03c35660a7b86a847c069cfb
[ "MIT" ]
null
null
null
Documentation/my_module.py
alirkaya/card-fraud-detection
90e4639c55a8502e03c35660a7b86a847c069cfb
[ "MIT" ]
null
null
null
"""Prepared by [Ali Rifat Kaya](https://www.linkedin.com/in/alirifatkaya/) """ def pr_auc_score(y_test, predicted_probabilities): """Return AUCPR (Area Under Curve Precision-Recall) score Parameters ---------- y_test : Test set target values Example: # df is a pandas dataframe with f...
37.600868
114
0.535335
f790abb963a236d9b9ab670daf288c5eeafdb53e
958
py
Python
sdks/python/test/test_DistributionResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_DistributionResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_DistributionResponse.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.95
99
0.728601
f790ba05f5564d3c796c8017438caf965b9dc8a2
69
py
Python
codechef/ltime15/hhal2.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
codechef/ltime15/hhal2.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
codechef/ltime15/hhal2.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
1
2019-10-07T08:22:09.000Z
2019-10-07T08:22:09.000Z
t = input('') for _ in xrange(t): h = raw_input('') print 1
11.5
21
0.507246
f790bb359cb6046427dd4e0b4d05c16189697154
1,835
py
Python
dali_tf_plugin/dali_compile_flags.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
5
2020-05-09T03:07:07.000Z
2021-06-15T14:48:04.000Z
dali_tf_plugin/dali_compile_flags.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali_tf_plugin/dali_compile_flags.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-26T14:59:51.000Z
2020-04-26T14:59:51.000Z
#!/usr/bin/python import sys import os import argparse def get_module_path(module_name): module_path = '' for d in sys.path: possible_path = os.path.join(d, module_name) # skip current dir as this is plugin dir if os.path.isdir(possible_path) and len(d) != 0: module_path = ...
31.637931
95
0.66267
f790bbf3aba0ac982d8ba6193a9250dee13b630c
1,856
py
Python
sites/demokraatti.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
null
null
null
sites/demokraatti.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
14
2016-10-14T15:09:42.000Z
2017-03-01T14:29:29.000Z
sites/demokraatti.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
1
2020-11-18T13:06:48.000Z
2020-11-18T13:06:48.000Z
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import processor from datetime import datetime def parse( url ): r = requests.get( url ) if r.status_code == 404: return processor.create_dictionary('', url, r.status_code, [u''], [u''], u'', u'', u'', u'', [u''], [u'']) r.encoding = 'UTF-8'...
40.347826
138
0.696121
f790cb05a9d30d627af64cf790b277596e207a60
1,154
py
Python
google-cloud-sdk/lib/surface/ml/operations/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/ml/operations/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/ml/operations/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2017 Google 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 law or ag...
36.0625
74
0.768631
f790cc9ce9c72d18c2ee5aeb0a44757dde1929d6
4,030
py
Python
models/metagan_queryattentive.py
snji-khjuria/RelationClassificationFewShotModels
a5047f44a57a81ab3281bf1290fa149a4c456486
[ "MIT" ]
null
null
null
models/metagan_queryattentive.py
snji-khjuria/RelationClassificationFewShotModels
a5047f44a57a81ab3281bf1290fa149a4c456486
[ "MIT" ]
null
null
null
models/metagan_queryattentive.py
snji-khjuria/RelationClassificationFewShotModels
a5047f44a57a81ab3281bf1290fa149a4c456486
[ "MIT" ]
null
null
null
#creating the metagan model import torch import torch.nn as nn import sys sys.path.append('..') import fewshot_re_kit import torch from torch import autograd, optim, nn from torch.autograd import Variable from torch.nn import functional as F class MetaGenerator(fewshot_re_kit.adversarial_framework.FewShotAdver...
34.741379
103
0.612655
f790e8c5174728a1655f869a09732a8715b01245
9,500
py
Python
src/trainDEC.py
Crazy-Jack/SpatialExpGeneCluster
9e57c308d1c577a936a2358d0641c65b8130034f
[ "MIT" ]
null
null
null
src/trainDEC.py
Crazy-Jack/SpatialExpGeneCluster
9e57c308d1c577a936a2358d0641c65b8130034f
[ "MIT" ]
null
null
null
src/trainDEC.py
Crazy-Jack/SpatialExpGeneCluster
9e57c308d1c577a936a2358d0641c65b8130034f
[ "MIT" ]
null
null
null
import argparse import os, sys import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import torchvision from torchvision import transforms from PIL import Image import numpy as np from tqdm import tqdm from sklearn.cluster import KMeans from scipy.stats import ortho_group ...
33.928571
138
0.633579
f790f4117ef334d24f8df70bb1b6811a4601da0f
2,716
py
Python
src/modules/tcp/domain.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
46
2020-04-18T16:42:59.000Z
2022-01-31T22:08:52.000Z
src/modules/tcp/domain.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
null
null
null
src/modules/tcp/domain.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
11
2020-04-23T12:46:18.000Z
2022-02-04T12:53:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # ____ _ __ # # ___ __ __/ / /__ ___ ______ ______(_) /___ __ # # / _ \/ // / / (_-</ -_) __/ // / __/ / __/ // / ...
25.866667
80
0.365979
f7912e01c2b5af74e31578ecada4499621d47496
140
py
Python
basic/pass.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/pass.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/pass.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
#pass does nothing equivalent to nop in assembler #pass can be used to define an empty object or empty function for i in range(10): pass
35
61
0.764286
f79158e3cd211fc03f644ddde9e6cf1c7399a772
400
py
Python
Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/29-Union/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/29-Union/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/29-Union/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
# Define a procedure, union, # that takes as inputs two lists. # It should modify the first input # list to be the set union of the two # lists. You may assume the first list # is a set, that is, it contains no # repeated elements. # To test, uncomment all lines # below except those beginning with >>>. #a = [1...
16.666667
40
0.64
f7916bccf2fb1955e84452c4d89f666d9d1adad8
9,378
py
Python
atom3d/util/graph.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/util/graph.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/util/graph.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
import numpy as np import scipy.spatial as ss import torch import atom3d.util.formats as fo # PDB atom names -- these include co-crystallized metals prot_atoms = ['C', 'H', 'O', 'N', 'S', 'P', 'ZN', 'NA', 'FE', 'CA', 'MN', 'NI', 'CO', 'MG', 'CU', 'CL', 'SE', 'F'] # RDKit molecule atom names mol_atoms = ['C', 'N', 'O'...
49.619048
245
0.68778
f79182d5d9da5c4f6e68717b3daec5b47a32c556
13,432
py
Python
iver.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
iver.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
iver.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
import datetime import re import threading import time import tkinter as tk from collections import deque from queue import Queue from time import monotonic import pandas as pd import rasterio import serial from geographiclib.geodesic import Geodesic from matplotlib import pyplot as plt, animation from matplotlib.back...
47.295775
138
0.552412
f79184c30dd2e03c6b6934d66521fbd4c3946d76
5,520
py
Python
tests/sharepoint/test_client.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
tests/sharepoint/test_client.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
tests/sharepoint/test_client.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from unittest import TestCase from office365.runtime.client_value_collection import ClientValueCollection from office365.sharepoint.tenant.administration.secondary_administrators_fields_data import \ SecondaryAdministratorsFieldsData from settings import settings from tests import random_seed from office365.runti...
46.779661
149
0.742754
f79188e37c12743d1d0db4db200b7de421ff73f7
4,049
py
Python
testing_tool/my_tool/symbolic/symbolic_types/symbolic_type.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-03-07T03:38:09.000Z
2022-03-07T03:38:09.000Z
testing_tool/my_tool/symbolic/symbolic_types/symbolic_type.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
null
null
null
testing_tool/my_tool/symbolic/symbolic_types/symbolic_type.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-01-12T05:30:40.000Z
2022-01-12T05:30:40.000Z
# Copyright: see copyright.txt import utils import inspect import functools # the ABSTRACT base class for representing any expression that depends on a symbolic input # it also tracks the corresponding concrete value for the expression (aka concolic execution) class SymbolicType(object): def __init__(self, name, ex...
28.921429
96
0.692764
f791ab2f95b57fda479c9ef415618f93ffad8de3
2,542
py
Python
termine-be/config/config.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
25
2020-04-06T19:21:15.000Z
2022-03-15T06:39:28.000Z
termine-be/config/config.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
10
2020-04-21T20:38:55.000Z
2022-02-27T02:36:39.000Z
termine-be/config/config.py
LordRubin/covid19-teststation-termine
91a98ee66a960d19e3370f2788d8f1bd448c84ab
[ "MIT" ]
10
2020-04-08T18:21:45.000Z
2021-12-17T14:49:23.000Z
import json import os import pytz def _bool_convert(value): truthy = {"t", "true", "on", "y", "yes", "1", 1, 1.0, True} falsy = {"f", "false", "off", "n", "no", "0", 0, 0.0, False} if isinstance(value, str): value = value.lower() if value in truthy: return True if value in falsy: ...
33.012987
91
0.644768
f791c4f519f41b9ff4fe1ad3d921339c89ce54de
73
py
Python
stochepi/evpytools/__init__.py
eeg-lanl/sarscov2-selection
c2087cbaf55de9930736aa6677a57008a2397583
[ "BSD-3-Clause" ]
null
null
null
stochepi/evpytools/__init__.py
eeg-lanl/sarscov2-selection
c2087cbaf55de9930736aa6677a57008a2397583
[ "BSD-3-Clause" ]
null
null
null
stochepi/evpytools/__init__.py
eeg-lanl/sarscov2-selection
c2087cbaf55de9930736aa6677a57008a2397583
[ "BSD-3-Clause" ]
null
null
null
"""@package evpytools Python tools for managing EstaVoir simulations """
18.25
46
0.780822
f791cc4faaa5f71bf2c449d94949a368763a8988
20,216
py
Python
density_estimation.py
luh0907/nn_breaking_detection
6e810a5296bea3c6ef975b4e62caa2d94e992b81
[ "BSD-2-Clause" ]
77
2017-11-05T01:02:57.000Z
2022-01-31T06:54:44.000Z
density_estimation.py
luh0907/nn_breaking_detection
6e810a5296bea3c6ef975b4e62caa2d94e992b81
[ "BSD-2-Clause" ]
1
2017-11-15T08:53:02.000Z
2017-11-15T08:53:02.000Z
density_estimation.py
luh0907/nn_breaking_detection
6e810a5296bea3c6ef975b4e62caa2d94e992b81
[ "BSD-2-Clause" ]
26
2017-11-02T02:05:39.000Z
2021-11-03T08:24:07.000Z
# Copyright (C) 2017, Nicholas Carlini <nicholas@carlini.com> # All rights reserved. import sys import time import tensorflow as tf import numpy as np import random from setup_cifar import CIFARModel, CIFAR from setup_mnist import MNISTModel, MNIST sys.path.append("../..") from nn_robust_attacks.l2_attack import Car...
38.802303
177
0.602147
f792195104e0f229674981349a90191ac011941f
2,819
py
Python
config/services/SWORD_APP_Publish_V1_3.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
26
2015-04-14T03:11:58.000Z
2022-01-06T14:31:07.000Z
config/services/SWORD_APP_Publish_V1_3.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
11
2015-04-03T21:54:03.000Z
2017-05-02T17:20:03.000Z
config/services/SWORD_APP_Publish_V1_3.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
16
2015-02-11T09:30:18.000Z
2020-11-20T02:06:24.000Z
''' Created on Oct16, 2011 @author: wegrata ''' from service_template import ServiceTemplate from setup_utils import getInput, PublishDoc, isBoolean, YES, isInt import pystache, uuid import json def install(server, dbname, setupInfo): custom_opts = {} active = getInput("Enable SWORD Service?", "T", isBoolea...
32.402299
108
0.602341
f7925f2cabf28b29bae4935920db3014bb1f8138
1,975
py
Python
fastestimator/op/numpyop/univariate/expand_dims.py
gaurav272333/fastestimator
d49e48d7375e19416ef337b3517dcfe42bb56589
[ "Apache-2.0" ]
null
null
null
fastestimator/op/numpyop/univariate/expand_dims.py
gaurav272333/fastestimator
d49e48d7375e19416ef337b3517dcfe42bb56589
[ "Apache-2.0" ]
null
null
null
fastestimator/op/numpyop/univariate/expand_dims.py
gaurav272333/fastestimator
d49e48d7375e19416ef337b3517dcfe42bb56589
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
42.934783
120
0.653671
f792753618f500ac23751de619e1ff9ffa70e2e3
13,518
py
Python
bin/basenji_test.py
moodyRahman/basenji
0fb66324549bbd52c10ce714a1ad988e54ce2773
[ "Apache-2.0" ]
1
2021-09-08T09:41:12.000Z
2021-09-08T09:41:12.000Z
bin/basenji_test.py
moodyRahman/basenji
0fb66324549bbd52c10ce714a1ad988e54ce2773
[ "Apache-2.0" ]
null
null
null
bin/basenji_test.py
moodyRahman/basenji
0fb66324549bbd52c10ce714a1ad988e54ce2773
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 Calico 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 ...
33.879699
117
0.62021
f79289200ea99739244820d469969ce2873679ba
4,517
py
Python
toontown/coghq/DistributedCogHQDoor.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedCogHQDoor.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedCogHQDoor.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.interval.IntervalGlobal import * from direct.distributed.ClockDelta import * from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM from toontown.building import DistributedDoor from toontown.hood import ZoneUtil from toontown.building import FADoorCodes, DoorTypes from toontow...
41.440367
334
0.644676
f79290844020420c6fddbaa4bdfb829495c0c966
1,900
py
Python
alipay/aop/api/domain/KbdishDetailInfo.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/KbdishDetailInfo.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/KbdishDetailInfo.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 KbdishDetailInfo(object): def __init__(self): self._out_dish_id = None self._out_sku_id_list = None @property def out_dish_id(self): return self._out_dish_id ...
29.6875
81
0.596316
f79290b949379bdf2319617067e505b52a8ec980
2,579
py
Python
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/__init__.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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
32.2375
94
0.743699
f792b7a867f7cab54fb5d26b0375cac7e2d79318
3,726
py
Python
tests/django_dummy_app/migrations/0001_initial.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
null
null
null
tests/django_dummy_app/migrations/0001_initial.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
1
2021-01-24T22:53:53.000Z
2021-01-24T22:53:53.000Z
tests/django_dummy_app/migrations/0001_initial.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-19 15:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Continent', fields=[ ...
42.827586
151
0.56307
f792d703cccbe1fd31c31ee3214b7dfab46a2298
2,232
py
Python
nyc/dataprep/CensusBlock.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
nyc/dataprep/CensusBlock.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
nyc/dataprep/CensusBlock.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ Gets the census block code for a given set of coordinates. This makes use of the FCC census block lookup API, which takes a (lat,lon) point at outputs some XML with information about that position. This does not support multithreading to make sure that it does not overload anything. The l...
23.25
77
0.617384
f792ee12ff863764333b01bfb807735a02e11e6b
4,116
py
Python
smt/surrogate_models/kpls.py
Laurentww/smt
f124c01ffa78c04b80221dded278a20123dac742
[ "BSD-3-Clause" ]
1
2021-09-30T10:17:53.000Z
2021-09-30T10:17:53.000Z
smt/surrogate_models/kpls.py
enjoyneer87/smt
4a4df255b9259965439120091007f9852f41523e
[ "BSD-3-Clause" ]
null
null
null
smt/surrogate_models/kpls.py
enjoyneer87/smt
4a4df255b9259965439120091007f9852f41523e
[ "BSD-3-Clause" ]
null
null
null
""" Author: Dr. Mohamed A. Bouhlel <mbouhlel@umich.edu> This package is distributed under New BSD license. """ import numpy as np from packaging import version from sklearn.cross_decomposition import PLSRegression as pls from smt.surrogate_models.krg_based import KrgBased from smt.utils.kriging_utils import compone...
34.016529
112
0.542517
f7930f37fe1811c075b7ec3976fe12faf6721d9e
404
py
Python
datastructures/trees/binary/lca_recursion.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
datastructures/trees/binary/lca_recursion.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
datastructures/trees/binary/lca_recursion.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
""" Standard recipe to find the lowest common ancestor """ def lca(self, root, a, b): # Standard Recipe to find the lowest-common ancestor if root is None or root is a or root is b: return root left = self.lca(root.left, a, b) right = self.lca(root.right, a, b) if left is not No...
26.933333
57
0.626238
f79351e6c835bce4369b15955e8bb4d0147411c7
1,982
py
Python
vnpy_pro/data/download_data.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
5
2020-09-13T05:07:38.000Z
2020-12-26T15:10:00.000Z
vnpy_pro/data/download_data.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
null
null
null
vnpy_pro/data/download_data.py
caizhanjin/vnpy
c0886dbd8eba7f506634b1700dfd09b0b098ef26
[ "MIT" ]
2
2020-06-03T06:40:31.000Z
2020-06-12T14:55:17.000Z
import datetime from vnpy.trader.object import HistoryRequest from vnpy.trader.database import database_manager from vnpy.trader.constant import Interval, Exchange from vnpy_pro.data.source.tdxdata import tdxdata_client from vnpy.trader.utility import load_json def download_data_from_tdx(download_futures, from_date...
28.724638
82
0.617558
f793714262f2467af70fa169b6e2b323d50d1a35
30,297
py
Python
python/ray/tune/trial.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
python/ray/tune/trial.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
python/ray/tune/trial.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
from collections import deque import copy import json import logging from numbers import Number import os import platform import re import shutil import time from typing import Dict, Optional, Sequence, Union, Callable, List import uuid import ray import ray.cloudpickle as cloudpickle from ray.exceptions import RayAct...
36.240431
88
0.624418
f79374a50e555f281aeb8a69fa03fddab120c1d3
8,246
py
Python
src/data/helper_functions.py
vvandriichuk/etl_spark_airflow_emr
0c793ca67389a789c8eb1f487fe3a384e714ff3b
[ "MIT" ]
3
2021-01-02T01:18:39.000Z
2021-06-09T19:52:38.000Z
src/data/helper_functions.py
philippschmalen/etl_spark_airflow_emr
0c793ca67389a789c8eb1f487fe3a384e714ff3b
[ "MIT" ]
null
null
null
src/data/helper_functions.py
philippschmalen/etl_spark_airflow_emr
0c793ca67389a789c8eb1f487fe3a384e714ff3b
[ "MIT" ]
3
2021-06-12T04:06:33.000Z
2021-12-01T17:48:38.000Z
from time import strftime, sleep import sys import os import pandas as pd from glob import glob import numpy as np def inspect_core_specifications(data, descriptives=False): """Inspect data types, shape and descriptives :param data: pandas dataframe :param descriptives: boolean, print descriptive statistics ...
28.832168
111
0.692821
f7938211272945a045b488f91709186eb08411f3
1,185
py
Python
fluo/templatetags/backports.py
rsalmaso/django-fluo
340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b
[ "MIT" ]
1
2020-08-05T09:29:08.000Z
2020-08-05T09:29:08.000Z
fluo/templatetags/backports.py
rsalmaso/django-fluo
340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b
[ "MIT" ]
1
2020-08-05T09:28:58.000Z
2020-09-19T09:02:48.000Z
fluo/templatetags/backports.py
rsalmaso/django-fluo
340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b
[ "MIT" ]
null
null
null
# Copyright (C) 2007-2020, Raffaele Salmaso <raffaele@salmaso.org> # # 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 without limitation the rights # to use, cop...
49.375
79
0.779747
f7939839fda5c244d45db35b96ba8143f1f9a9ad
892
py
Python
utils/logger.py
bobenxia/Centripetal-SGD
e33350464504085a641a2a969d3c06e3d5cc4765
[ "Apache-2.0" ]
767
2019-10-08T01:32:47.000Z
2022-03-27T14:39:44.000Z
utils/logger.py
zclonely/ACNet
1fa157c5b38be2ecfc4a79f8ebe8e7cb30c71561
[ "MIT" ]
48
2019-11-04T12:05:15.000Z
2021-11-28T06:50:30.000Z
utils/logger.py
zclonely/ACNet
1fa157c5b38be2ecfc4a79f8ebe8e7cb30c71561
[ "MIT" ]
140
2019-10-29T07:49:24.000Z
2022-03-27T13:01:22.000Z
import logging import coloredlogs import os def get_logger(name='', save_dir=None, distributed_rank=0, filename="log.txt"): logger = logging.getLogger(name) coloredlogs.install(level='DEBUG', logger=logger) # logger.setLevel(logging.DEBUG) # don't log results for the non-master process if distribu...
28.774194
79
0.670404
f793c4244809d25ffb0e97544ae55624c214a51c
7,256
py
Python
eval_seg.py
mknz/dsr-road-roughness-prediction
5f56b6ba5da70a09f2c967b7f32c740072e20ed1
[ "MIT" ]
7
2019-04-04T06:40:29.000Z
2020-11-12T10:53:30.000Z
eval_seg.py
mknz/dsr-road-roughness-prediction
5f56b6ba5da70a09f2c967b7f32c740072e20ed1
[ "MIT" ]
1
2021-09-28T07:11:05.000Z
2021-09-28T07:11:05.000Z
eval_seg.py
mknz/dsr-road-roughness-prediction
5f56b6ba5da70a09f2c967b7f32c740072e20ed1
[ "MIT" ]
null
null
null
'''Evaluation script''' import argparse from pathlib import Path import numpy as np from tqdm import tqdm import torch from torch.utils.data import DataLoader from PIL import Image from albumentations import Compose from albumentations import CenterCrop from torchvision.transforms.functional import to_pil_image ...
34.226415
90
0.649394
f793cd19b1e31c61d45fd7497f8a81db9b6cbb07
12,233
py
Python
soundannotatordemo/config/argparser.py
soundappraisal/soundannotatordemo
caa1a718f0ed48bdfb76c0edbd644b8b11c8570a
[ "Apache-2.0" ]
null
null
null
soundannotatordemo/config/argparser.py
soundappraisal/soundannotatordemo
caa1a718f0ed48bdfb76c0edbd644b8b11c8570a
[ "Apache-2.0" ]
3
2017-08-04T22:33:27.000Z
2018-03-13T18:58:50.000Z
soundannotatordemo/config/argparser.py
soundappraisal/soundannotatordemo
caa1a718f0ed48bdfb76c0edbd644b8b11c8570a
[ "Apache-2.0" ]
null
null
null
''' This file is part of soundannotatordemo. The soundannotatordemo repository provides democode and documentation accompanying the libsoundannotator repository, available from https://github.com/soundappraisal/libsoundannotator. The library libsoundannotator is designed for processing sound using time-frequency repr...
45.307407
313
0.711518
f793dc10c65972f051d55cd571b3d8d8fc9aba9c
61,720
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/aio/_container_client_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
1
2021-09-07T18:35:49.000Z
2021-09-07T18:35:49.000Z
sdk/storage/azure-storage-blob/azure/storage/blob/aio/_container_client_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/aio/_container_client_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ----------------------------------------------------...
50.966144
130
0.650324
f793de5b6c793c345b82afb7165fd9819172af2d
3,277
py
Python
src/quicknlp/modules/attention_decoder.py
dailai/quick-nlp
d27ae90c0788d0899af7f45b323ca64ed0c33868
[ "MIT" ]
null
null
null
src/quicknlp/modules/attention_decoder.py
dailai/quick-nlp
d27ae90c0788d0899af7f45b323ca64ed0c33868
[ "MIT" ]
null
null
null
src/quicknlp/modules/attention_decoder.py
dailai/quick-nlp
d27ae90c0788d0899af7f45b323ca64ed0c33868
[ "MIT" ]
null
null
null
import warnings from typing import Optional import torch from quicknlp.utils import assert_dims from .basic_decoder import EmbeddingRNNDecoder class RNNAttentionDecoder(EmbeddingRNNDecoder): def __init__(self, ntoken: int, emb_sz: int, nhid: int, nlayers: int, pad_token: int, eos_token: int, m...
50.415385
120
0.608483
f793df57c16ff741834e75bc644e4cea1ed95361
7,132
py
Python
vaccine_feed_ingest/stages/load.py
Vaccinebot/vaccine-feed-ingest
d1a330e215b1c4ad167e4c52b81d5d3e1d1d9faf
[ "MIT" ]
null
null
null
vaccine_feed_ingest/stages/load.py
Vaccinebot/vaccine-feed-ingest
d1a330e215b1c4ad167e4c52b81d5d3e1d1d9faf
[ "MIT" ]
null
null
null
vaccine_feed_ingest/stages/load.py
Vaccinebot/vaccine-feed-ingest
d1a330e215b1c4ad167e4c52b81d5d3e1d1d9faf
[ "MIT" ]
null
null
null
import logging import pathlib from typing import Iterable, Iterator, List, Optional import pydantic import shapely.geometry import urllib3 from vaccine_feed_ingest import vial from vaccine_feed_ingest.schema import schema from ..utils.match import canonicalize_address, get_full_address from . import outputs from .com...
31.144105
84
0.640213
f793e75cdbf7009b32aff6f936bd85874aba0a46
3,868
py
Python
agents/blue_simple_agent.py
ejbkdb/HackAuto
5724ed5aa7e9e5fba4427dd95328f10e4a18710e
[ "MIT" ]
3
2018-08-22T22:49:26.000Z
2020-10-24T14:29:16.000Z
agents/blue_simple_agent.py
ejbkdb/HackAuto
5724ed5aa7e9e5fba4427dd95328f10e4a18710e
[ "MIT" ]
null
null
null
agents/blue_simple_agent.py
ejbkdb/HackAuto
5724ed5aa7e9e5fba4427dd95328f10e4a18710e
[ "MIT" ]
5
2018-08-11T09:17:54.000Z
2018-10-02T23:28:16.000Z
import numpy as np import rospy from std_msgs.msg import Bool from geometry_msgs.msg import Point, Twist, Vector3 # Global variables blue_center = Point() blue_flag = False blue_base = Point() red_base = Point() blue_twist = Twist() game_over = False accumulated_error = 0. neutral_zone = False # Helper functions def ...
30.21875
94
0.65848
f794253c4776c1098335be5dff8046ca00bee661
549
py
Python
deckparser/importers/newave/importCONFT.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
13
2018-07-26T20:18:30.000Z
2022-03-18T07:18:34.000Z
deckparser/importers/newave/importCONFT.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
null
null
null
deckparser/importers/newave/importCONFT.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
3
2021-04-23T21:46:59.000Z
2021-08-30T11:24:07.000Z
def importCONFT(fobj): CONFT = dict() for i, v in enumerate(fobj): if (i > 1) and (v.strip() != ""): CodUTE = v[0:6].decode('utf-8').strip() nome = v[6:20].decode('utf-8').strip() ssis = v[20:26].decode('utf-8').strip() exis = v[26:33].decode('utf-8').stri...
34.3125
53
0.435337
f7942862c38a418c90257dee2a1ca7fee1725926
2,989
py
Python
nova/db/sqlalchemy/migrate_repo/versions/271_sqlite_postgresql_indexes.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/db/sqlalchemy/migrate_repo/versions/271_sqlite_postgresql_indexes.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/db/sqlalchemy/migrate_repo/versions/271_sqlite_postgresql_indexes.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2014 Rackspace Hosting # 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...
42.7
78
0.699231
f79428b2a97f0ac2ce991f4c26b9123cddc24325
3,958
py
Python
tensorflow/contrib/eager/python/examples/revnet/cifar_tfrecords.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/eager/python/examples/revnet/cifar_tfrecords.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/eager/python/examples/revnet/cifar_tfrecords.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
31.919355
80
0.705407
f794521739f93e7b3dc98422b66d46679ab7ff7a
1,233
py
Python
app/__init__.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
app/__init__.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
app/__init__.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
from flask_bootstrap import Bootstrap from flask import Flask from config import config_options from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_mail import Mail from flask_uploads import UploadSet,configure_uploads,IMAGES from flask_wtf.csrf import CSRFProtect csrf = CSRFProtect...
24.176471
75
0.769667
f7945d76072eb4ed1f710d04de7f8d95bf19e892
110,168
py
Python
python/dgl/graph.py
jamesliu/dgl
6c77f26438e5811ffcb84bdbac3f4a4464310f80
[ "Apache-2.0" ]
1
2018-12-27T23:51:10.000Z
2018-12-27T23:51:10.000Z
python/dgl/graph.py
jamesliu/dgl
6c77f26438e5811ffcb84bdbac3f4a4464310f80
[ "Apache-2.0" ]
null
null
null
python/dgl/graph.py
jamesliu/dgl
6c77f26438e5811ffcb84bdbac3f4a4464310f80
[ "Apache-2.0" ]
null
null
null
"""Base graph class specialized for neural networks on graphs.""" from __future__ import absolute_import from collections import defaultdict import networkx as nx import dgl from .base import ALL, is_all, DGLError from . import backend as F from . import init from .frame import FrameRef, Frame, Scheme from . import g...
32.935127
100
0.527313
f7946227c4881e295bdd990896e25625b8bf4ffd
1,672
py
Python
spec/venv.py
jmvrbanac/ansible-flow
666dc3664ed8001640d50c0e00d749f44f16826f
[ "Apache-2.0" ]
13
2015-12-03T10:41:13.000Z
2020-01-05T16:22:42.000Z
spec/venv.py
jmvrbanac/ansible-flow
666dc3664ed8001640d50c0e00d749f44f16826f
[ "Apache-2.0" ]
2
2015-12-17T22:16:53.000Z
2016-05-30T01:20:59.000Z
spec/venv.py
jmvrbanac/ansible-flow
666dc3664ed8001640d50c0e00d749f44f16826f
[ "Apache-2.0" ]
6
2015-12-09T21:38:55.000Z
2020-02-24T21:15:06.000Z
import os import shutil import tempfile import ansibleflow from ansibleflow import venv from spec import BaseSpec from specter import Spec, expect class VirtualEnvTests(BaseSpec): def can_get_env_path(self): path = venv.ENV_PATH expect('/.venv').to.be_in(path) def invalid_argument_does_nothi...
32.153846
66
0.649522
f794a6fe6404ba60868ae63599276e8130af688a
2,980
py
Python
Leetcode/medium/gas-station.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/gas-station.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/gas-station.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # GAS STATION There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty tank at one of the gas stations. Return the...
29.8
190
0.551342
f794c290ca2b570d75ce7a78cb65d34aa9908b0d
6,936
py
Python
examples/ccrig/ccrig_debug.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
examples/ccrig/ccrig_debug.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
examples/ccrig/ccrig_debug.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
import rlkit.util.hyperparameter as hyp from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from rlkit.launchers.launcher_util import run_experiment import rlkit.torch.vae.vae_schedules as vae_schedules from rlkit.torch.vae.conv_vae import imsize48_default_architectu...
37.090909
121
0.57598
f794c3b379c3a9e3dd0375cc58db8e089ba8cbc9
3,706
py
Python
publication_backbone/templatetags/publication_backbone_pagination_tags.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
6
2016-05-19T14:59:51.000Z
2020-03-19T10:08:29.000Z
publication_backbone/templatetags/publication_backbone_pagination_tags.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
publication_backbone/templatetags/publication_backbone_pagination_tags.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django import template from django.core.paginator import EmptyPage from classytags.core import Options, Tag from classytags.arguments import MultiKeywordArgument, Argument from classytags.helpers import InclusionTag from publication_backbone.utils.paginator import Paginator, OffsetNotAnIn...
34.962264
84
0.600917
f794dda4356d03e28fe5789a18821db76189fdce
10,480
py
Python
lookups.py
NBISweden/exac_browser
c4d62741d0298dbf2a09c19b3585a601b22d5336
[ "MIT" ]
2
2017-02-27T13:25:38.000Z
2018-10-17T08:06:51.000Z
lookups.py
NBISweden/exac_browser
c4d62741d0298dbf2a09c19b3585a601b22d5336
[ "MIT" ]
3
2017-02-15T13:52:00.000Z
2017-11-09T09:38:01.000Z
lookups.py
NBISweden/exac_browser
c4d62741d0298dbf2a09c19b3585a601b22d5336
[ "MIT" ]
1
2017-02-15T08:52:41.000Z
2017-02-15T08:52:41.000Z
import re from utils import * SEARCH_LIMIT = 10000 def get_gene(sdb, gene_id): return sdb.genes.find_one({'gene_id': gene_id}, projection={'_id': False}) def get_gene_by_name(sdb, gene_name): # try gene_name field first gene = sdb.genes.find_one({'gene_name': gene_name}, projection={'_id': False}) i...
32.04893
177
0.622042
f794df26b44a126f61e799b77e2b8af33390e127
2,184
py
Python
alipay/aop/api/domain/ZhimaMerchantContractCommonQueryModel.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/ZhimaMerchantContractCommonQueryModel.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/ZhimaMerchantContractCommonQueryModel.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 ZhimaMerchantContractCommonQueryModel(object): def __init__(self): self._contract_no = None self._sign_principal_id = None self._sign_principal_type = None @property ...
30.760563
89
0.643773
f794f70718e7d3a62a8c2a39a7d079ca28d2d2e9
1,387
py
Python
pytorch_toolkit/face_recognition/utils/read_tfboard.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/face_recognition/utils/read_tfboard.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/face_recognition/utils/read_tfboard.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
from tensorboard.backend.event_processing import event_accumulator ea=event_accumulator.EventAccumulator('../logs_landm/2019_08_04_14_38_LandNet-NoSE/events.out.tfevents.1564900704.Workstation') ea.Reload() # print(ea.scalars.Keys()) # ea1=event_accumulator.EventAccumulator('./dsm_aug/eval_0/events.out.tfevents.156240...
38.527778
127
0.726748
f79521edfbb336e07186a56bfc8fcb36eef0179b
1,634
py
Python
tiveU/news/schema.py
rds0751/newtiveu
779ac840f0787ea0e74701b43d4320b44429527e
[ "MIT" ]
null
null
null
tiveU/news/schema.py
rds0751/newtiveu
779ac840f0787ea0e74701b43d4320b44429527e
[ "MIT" ]
null
null
null
tiveU/news/schema.py
rds0751/newtiveu
779ac840f0787ea0e74701b43d4320b44429527e
[ "MIT" ]
null
null
null
import graphene from graphene_django.types import DjangoObjectType from tiveU.news.models import News from tiveU.helpers import paginate_data class NewsType(DjangoObjectType): """DjangoObjectType to acces the News model.""" count_thread = graphene.Int() count_likers = graphene.Int() class Meta: ...
29.178571
77
0.694614
f795554c273b66c2154a5ea61f071d7983ca90b8
6,113
py
Python
project1/multiprocess.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project1/multiprocess.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project1/multiprocess.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
import os import sys import multiprocessing import copyreg import types import time from six import string_types from progressbar import ProgressBar, FormatLabel, Percentage, Bar, ETA import numpy as np import pandas as pd from subprocess import Popen from collections import OrderedDict from basic_class import BasicCla...
33.222826
79
0.551775
f7955a2fe9a9745b64bf9360a774de4c459d3c60
256
py
Python
image_versions/urls.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
image_versions/urls.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
image_versions/urls.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "image_versions" urlpatterns = [ path("set-focus-point/", views.set_focus_point, name="set_focus_point"), path("focus-point/", views.focus_point_details, name="focus_point_details"), ]
23.272727
80
0.738281
f795714ade68a5c889c8a90bdebb60299482d16e
3,518
py
Python
custom_components/hahm/device_action.py
Lemocin/custom_homematic
1b6bc2da270bcbb58b52806c50f4d7dbdcff4e37
[ "MIT" ]
45
2021-07-28T07:37:52.000Z
2022-03-31T11:05:53.000Z
custom_components/hahm/device_action.py
Lemocin/custom_homematic
1b6bc2da270bcbb58b52806c50f4d7dbdcff4e37
[ "MIT" ]
14
2021-11-24T09:26:21.000Z
2022-03-20T16:17:57.000Z
custom_components/hahm/device_action.py
Lemocin/custom_homematic
1b6bc2da270bcbb58b52806c50f4d7dbdcff4e37
[ "MIT" ]
12
2021-10-10T06:15:17.000Z
2022-03-30T08:36:12.000Z
"""Provides device actions for Homematic(IP) Local.""" from __future__ import annotations from typing import Any from hahomematic.const import EVENT_PRESS_LONG, EVENT_PRESS_SHORT from hahomematic.internal.action import HmAction import voluptuous as vol from homeassistant.const import CONF_DEVICE_ID, CONF_DOMAIN, CON...
33.188679
79
0.65975
f7958639bbc1688d5d5890b946513e8cc37ac82b
607
py
Python
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 03/ch03-rec12-errorbar.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
26
2016-08-25T01:33:36.000Z
2022-03-20T11:33:31.000Z
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 03/ch03-rec12-errorbar.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
null
null
null
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 03/ch03-rec12-errorbar.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
31
2016-08-16T15:32:46.000Z
2021-01-26T19:16:48.000Z
import numpy as np import matplotlib.pyplot as plt # generate measures from gaussian distribution x = np.arange(0, 10, 1) # values computed from "measured" y = np.log(x) # add some error samples from standard normal distribution xe = 0.1 * np.abs(np.random.randn(len(y))) # draw and show errorbar plt.bar(x, y, yer...
25.291667
75
0.655684
f7958850dd722eed1e7d485ea9486f8c9dab8c1e
7,480
py
Python
src/tests/test_user_information.py
andela/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
1
2018-09-13T16:33:20.000Z
2018-09-13T16:33:20.000Z
src/tests/test_user_information.py
jonathankamau/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
6
2019-03-11T17:50:27.000Z
2019-08-26T11:00:40.000Z
src/tests/test_user_information.py
jonathankamau/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
9
2019-01-09T12:23:12.000Z
2021-05-28T04:58:31.000Z
"""Module test user information reource.""" import json from unittest import mock from flask import Response from .base_test import BaseTestCase, Center, Cohort, Society from api.utils.marshmallow_schemas import basic_info_schema def info_mock(status_code, society=None, location=None, cohort=None, data=None): "...
46.17284
82
0.579679
f795a1e5de0d16a8c03ba56ad1a47f3bdfd51089
3,151
py
Python
external/sbml/bindings/python/test/sbml/TestCompartmentVolumeRule.py
dchandran/evolvenetworks
072f9e1292552f691a86457ffd16a5743724fb5e
[ "BSD-3-Clause" ]
1
2019-08-22T17:17:41.000Z
2019-08-22T17:17:41.000Z
external/sbml/bindings/python/test/sbml/TestCompartmentVolumeRule.py
dchandran/evolvenetworks
072f9e1292552f691a86457ffd16a5743724fb5e
[ "BSD-3-Clause" ]
null
null
null
external/sbml/bindings/python/test/sbml/TestCompartmentVolumeRule.py
dchandran/evolvenetworks
072f9e1292552f691a86457ffd16a5743724fb5e
[ "BSD-3-Clause" ]
null
null
null
# # @file TestCompartmentVolumeRule.py # @brief CompartmentVolumeRule unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # $Id: TestCompartmentVolumeRule.py 10124 2009-08-28 12:04:51Z sarahkeating $ # $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/bindi...
35.806818
132
0.68391
f795f3ca06d3525ebe9fade7dd812548eca94921
5,854
py
Python
tests/admin/conftest.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
14
2021-01-13T19:52:32.000Z
2021-12-01T14:30:20.000Z
tests/admin/conftest.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
603
2020-10-30T03:35:54.000Z
2021-12-12T08:04:06.000Z
tests/admin/conftest.py
yzernik/squeaknode
f437939895f1f15dfeaa2bb50cab29efe5f7f612
[ "MIT" ]
5
2020-11-02T21:33:35.000Z
2021-11-02T00:54:13.000Z
# MIT License # # Copyright (c) 2020 Jonathan Zernik # # 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 without limitation the rights # to use, copy, modify, mer...
26.976959
80
0.695593
f79652e46c64431a2701f0d8610e82470fa8b7c0
1,047
py
Python
monitoring/setup/monitoring_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
monitoring/setup/monitoring_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
monitoring/setup/monitoring_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
49.857143
79
0.495702
f7965ffa0b8adc5e8f1204e9c8c8f0b988ac8871
30,395
py
Python
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/unidata/bidiclass.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
7
2016-01-20T01:44:36.000Z
2019-01-29T11:52:39.000Z
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/unidata/bidiclass.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
4
2016-01-27T17:42:07.000Z
2021-08-13T12:31:25.000Z
Sublime Text 3/Packages/backrefs/st3/backrefs/uniprops/unidata/bidiclass.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
2
2015-11-15T09:11:34.000Z
2019-01-29T11:52:41.000Z
"""Unicode Properties from Unicode version 6.1.0 (autogen).""" unicode_bidi_classes = { "^al": "\x00-\u0607\u0609-\u060a\u060c\u060e-\u061a\u061c-\u061d\u064b-\u066c\u0670\u06d6-\u06e4\u06e7-\u06ed\u06f0-\u06f9\u070e\u0711\u0730-\u074c\u07a6-\u07b0\u07b2-\u089f\u08a1\u08ad-\ufb4f\ufbc2-\ufbd2\ufd3e-\ufd4f\ufd90-\u...
366.204819
7,182
0.775456
f796627e418517f391cdefed692934e2f7bb30ca
3,226
py
Python
clif/testing/python/extend_init_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/testing/python/extend_init_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/testing/python/extend_init_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
# Lint-as: python3 # 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 ag...
34.319149
80
0.753255
f79666d255fef2bbb511a6176c74017cdffbcd8d
622
py
Python
services/traction/acapy_wrapper/models/admin_config.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/models/admin_config.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/models/admin_config.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 __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class AdminConfig(BaseModel): """NOTE: This class is ...
23.923077
96
0.720257
f79683425a07a21d2bf958698b31e5450e815af6
12,902
py
Python
src/experiments/iql.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
4
2021-07-05T12:26:24.000Z
2022-03-22T23:31:30.000Z
src/experiments/iql.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
null
null
null
src/experiments/iql.py
smithsophia1688/rm-cooperative-marl
e9c782fa50957095dc025e16ff714e2fd19ee39e
[ "MIT" ]
3
2021-05-31T08:59:35.000Z
2022-02-28T05:20:55.000Z
import numpy as np import random, time from tester.tester import Tester from Agent.iqAgent import iqAgent from Environments.rendezvous.multi_agent_gridworld_env import MultiAgentGridWorldEnv from Environments.coop_buttons.multi_agent_buttons_env import MultiAgentButtonsEnv import matplotlib.pyplot as plt def run_iql_...
40.068323
144
0.63463
f796ade2e8edc0c30013a7ecb7a80e21b8610c50
917
py
Python
python/design/0703_kth_largest_element_in_a_stream.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/design/0703_kth_largest_element_in_a_stream.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/design/0703_kth_largest_element_in_a_stream.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
import heapq class KthLargest(object): def __init__(self, k, nums): self.pool = nums self.k = k heapq.heapify(self.pool) while len(self.pool) > k: heapq.heappop(self.pool) def add(self, val): if len(self.pool) < self.k: heapq.heappush(self.pool...
24.783784
45
0.587786
f796c488607978c7b643817817eb0c228529a702
2,106
py
Python
tests/unit_tests/periodic/test_fetch_and_load.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
tests/unit_tests/periodic/test_fetch_and_load.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
tests/unit_tests/periodic/test_fetch_and_load.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
import responses from UnleashClient.constants import FEATURES_URL from UnleashClient.periodic_tasks import fetch_and_load_features from UnleashClient.features import Feature from tests.utilities.mocks.mock_features import MOCK_FEATURE_RESPONSE from tests.utilities.testing_constants import URL, APP_NAME, INSTANCE_ID, CU...
35.694915
114
0.614435
f796cbd023639832ead35de1db7ce468dc76468b
3,054
py
Python
test/test_dump_sql.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
1
2021-04-07T18:13:56.000Z
2021-04-07T18:13:56.000Z
test/test_dump_sql.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
null
null
null
test/test_dump_sql.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
null
null
null
import json import os import subprocess from file import temp_file from pg import connection, transaction from process import run_process def test_dump_sql(pg_database, snapshot): schema_sql = """ CREATE TABLE parent ( id int PRIMARY KEY ); CREATE TABLE child ( id...
27.763636
82
0.37983
f796e647356ee79178e673ed3fdf2c406ae30ae2
12,186
py
Python
pyppy/conditions.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
5
2021-01-25T09:52:09.000Z
2022-01-29T14:35:41.000Z
pyppy/conditions.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
7
2021-01-23T10:49:01.000Z
2021-01-30T08:17:38.000Z
pyppy/conditions.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
1
2021-05-25T05:42:10.000Z
2021-05-25T05:42:10.000Z
""" Module that contains a decorator generator function ``condition`` that can be used to conditionally execute functions based on the state of the global config. General Example --------------- Here's an example:: from pyppy.conditions import Exp, condition from pyppy.config import initialize_config impo...
29.15311
86
0.649598
f796fac9fe5d731647e23bbb2dcdaa258e819252
5,149
py
Python
vgio/quake2/tests/test_md2.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2017-11-30T22:13:50.000Z
2019-12-19T17:56:40.000Z
vgio/quake2/tests/test_md2.py
joshuaskelly/vgio
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2019-08-11T05:07:26.000Z
2020-12-30T16:07:04.000Z
vgio/quake2/tests/test_md2.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
4
2018-06-24T14:04:36.000Z
2019-05-14T06:01:51.000Z
import unittest from vgio.quake2.tests.basecase import TestCase from vgio.quake2 import md2 significant_digits = 5 class TestMd2ReadWrite(TestCase): @unittest.skip("Missing test artifacts") def test_check_file_type(self): self.assertTrue(md2.is_md2file('./test_data/test.md2')) def test_st_verte...
36.260563
117
0.636434
f797011649d644717796e71d843bca85dbbf93eb
9,827
py
Python
agents.py
n0whereRuoxi/aima-python
777fa52b73830a534e27b33abf535933ace32a95
[ "MIT" ]
1
2019-11-12T21:13:47.000Z
2019-11-12T21:13:47.000Z
agents.py
n0whereRuoxi/aima-python
777fa52b73830a534e27b33abf535933ace32a95
[ "MIT" ]
null
null
null
agents.py
n0whereRuoxi/aima-python
777fa52b73830a534e27b33abf535933ace32a95
[ "MIT" ]
null
null
null
''' This file holds the agents. ''' import random, copy, collections from objects import Object from perception import * from comms import * import numpy as np from scipy import spatial import uuid # ______________________________________________________________________________ class Agent(Object): ''' An Ag...
41.817021
168
0.610868
f797432c0084948881719a7eba5a31f8ab7a8aa0
6,044
py
Python
examples/lookupsid.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/lookupsid.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/lookupsid.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/python # Copyright (c) 2012-2015 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # DCE/RPC lookup sid brute forcer example # # Author: # Alberto Solino (@agsolino) #...
34.936416
181
0.617141
f7974c809e9f200fdaef570f7f3266d9bf848c15
514
py
Python
page_locators/accounts_overview_page_locator.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
4
2019-08-12T19:36:58.000Z
2021-09-14T18:48:27.000Z
page_locators/accounts_overview_page_locator.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
1
2021-06-02T00:01:00.000Z
2021-06-02T00:01:00.000Z
page_locators/accounts_overview_page_locator.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
2
2019-08-12T10:06:00.000Z
2020-12-25T05:52:40.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ from selenium.webdriver.common.by import By from page_locators.base_page_locator import BasePageLocator from expected_results.page_content.account_overview_content import AccountOverviewContent clas...
34.266667
89
0.772374
f7975d77dbf690907ad5eda0e7b73a54d36dbeb8
44,998
py
Python
NBA Project/venv/Lib/site-packages/plotly/figure_factory/_scatterplot.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2019-11-08T07:01:11.000Z
2019-11-17T10:10:49.000Z
NBA Project/venv/Lib/site-packages/plotly/figure_factory/_scatterplot.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
NBA Project/venv/Lib/site-packages/plotly/figure_factory/_scatterplot.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from __future__ import absolute_import import six from plotly import exceptions, optional_imports import plotly.colors as clrs from plotly.figure_factory import utils from plotly.graph_objs import graph_objs from plotly.tools import make_subplots pd = optional_imports.get_module("pandas") DIAG_CHOICES = ["scatter",...
38.791379
88
0.459665
f7975f715d0ecfaa4c7d922db5e355941f7fbe15
6,358
py
Python
tests/test_layers.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
tests/test_layers.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
tests/test_layers.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from nose.tools import raises import torch from kraken.lib import layers class TestLayers(unittest.TestCase): """ Testing custom layer implementations. """ def setUp(self): torch.set_grad_enabled(False) def test_maxpool(self): """ ...
32.274112
88
0.558194
f7978ee4d0c59008fbaaffc061829f87bca9bade
6,519
py
Python
pylrc/classes.py
SplitGemini/pylrc
b0da5234b7483654c2f215d393f608f5e8db9893
[ "MIT" ]
null
null
null
pylrc/classes.py
SplitGemini/pylrc
b0da5234b7483654c2f215d393f608f5e8db9893
[ "MIT" ]
null
null
null
pylrc/classes.py
SplitGemini/pylrc
b0da5234b7483654c2f215d393f608f5e8db9893
[ "MIT" ]
null
null
null
from .utilities import unpackTimecode, findEvenSplit, getDuration, containsAny class LyricLine: """An object that holds a lyric line and it's time""" def __init__(self, timecode, text=""): self.hours = 0 self.minutes, self.seconds, self.milliseconds = unpackTimecode(timecode) self.time...
34.492063
97
0.49931
f797dd099a3da21d9f3ce2ed111b6faac0d0f102
5,308
py
Python
apubsub/server.py
outcatcher/apubsub
b5e86309a7ac76f0cbfbe1982bce6d238cb5f543
[ "MIT" ]
null
null
null
apubsub/server.py
outcatcher/apubsub
b5e86309a7ac76f0cbfbe1982bce6d238cb5f543
[ "MIT" ]
13
2020-01-16T13:05:01.000Z
2020-10-13T10:35:26.000Z
apubsub/server.py
outcatcher/apubsub
b5e86309a7ac76f0cbfbe1982bce6d238cb5f543
[ "MIT" ]
1
2020-03-19T09:25:29.000Z
2020-03-19T09:25:29.000Z
"""Message service""" import asyncio import logging import socket import time from collections import deque from multiprocessing import Event, Lock, Process, synchronize from typing import Deque, Dict, Set from uuid import uuid4 from .client import Client, LOCALHOST from .connection_wrapper import NoData, NotMessage,...
31.408284
101
0.640354
f797ddedd6cf73a362f3b5725868b96f381a5c1e
10,846
py
Python
tests/unit/test_interactor.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
8
2019-09-16T14:31:38.000Z
2022-02-03T21:26:04.000Z
tests/unit/test_interactor.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
12
2019-09-13T14:47:26.000Z
2022-01-10T11:24:52.000Z
tests/unit/test_interactor.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
4
2019-09-16T14:49:53.000Z
2022-02-02T15:42:01.000Z
from unittest import mock from unittest.mock import MagicMock from hamcrest import assert_that, equal_to, contains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from tests.unit.unit_test_utils import check_mocked_functions_called from uitestcore.finder import Finder from ui...
32.767372
114
0.739904
f797fdf30c79f11835fb6ce904448af2f0db6339
8,640
py
Python
benchmark/cifar10/cifar10_gpipe.py
animeshtrivedi/surf-ml
73102c69f303d5b289841e6116a607561e36595c
[ "Apache-2.0" ]
9
2020-10-21T11:40:51.000Z
2021-09-25T07:50:22.000Z
benchmark/cifar10/cifar10_gpipe.py
animeshtrivedi/surf-ml
73102c69f303d5b289841e6116a607561e36595c
[ "Apache-2.0" ]
null
null
null
benchmark/cifar10/cifar10_gpipe.py
animeshtrivedi/surf-ml
73102c69f303d5b289841e6116a607561e36595c
[ "Apache-2.0" ]
null
null
null
''' Cifar10 example in pytorch ''' import argparse import torch import torch.nn as nn import torch.nn.functional as F import os import torch.optim as optim from torchvision import datasets, transforms from torchgpipe import GPipe from torchgpipe.balance import balance_by_time from typing import cast import time fro...
36.455696
125
0.589931
f7982478de7a33f6209041f9e797f0e9c917f58e
517
py
Python
exercicio_02.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
1
2021-02-10T14:59:44.000Z
2021-02-10T14:59:44.000Z
exercicio_02.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exercicio_02.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 11 15:39:27 2021 @author: alef """ """ Implementar uma função que retorne verdadeiro se o número for primo falso caso o contrário. Testar de 1 a 100 """ def primo(num): soma = 0 for i in range(1, num+1): # print('i = >',i) ...
19.884615
67
0.558994
f79827089b76f9a04548fcc33426e92ecd1887c9
2,274
py
Python
docs/conf.py
yupeekiyay/ofta365
1a48620fe6455eb80e673d15406950c8fa26755c
[ "MIT" ]
null
null
null
docs/conf.py
yupeekiyay/ofta365
1a48620fe6455eb80e673d15406950c8fa26755c
[ "MIT" ]
null
null
null
docs/conf.py
yupeekiyay/ofta365
1a48620fe6455eb80e673d15406950c8fa26755c
[ "MIT" ]
null
null
null
# 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...
36.095238
79
0.666667
f798458661aa8c5793c376e1cf6c10e4f3949e1f
19,125
py
Python
dali/python/nvidia/dali/plugin/pytorch.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
5
2020-05-09T03:07:07.000Z
2021-06-15T14:48:04.000Z
dali/python/nvidia/dali/plugin/pytorch.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/python/nvidia/dali/plugin/pytorch.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-26T14:59:51.000Z
2020-04-26T14:59:51.000Z
# Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
47.339109
130
0.597542
f7985856a0f66d50697fcfeaef1a5c6abeaa8eb6
27,003
py
Python
src/rprblender/engine/render_engine.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-03-29T05:55:49.000Z
2021-03-29T05:55:49.000Z
src/rprblender/engine/render_engine.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-04-03T09:39:28.000Z
2021-04-03T09:39:28.000Z
src/rprblender/engine/render_engine.py
isabella232/RadeonProRenderBlenderAddon
ff4ede164c1e1e909f182be709422bc8c8878b1c
[ "Apache-2.0" ]
null
null
null
#********************************************************************** # Copyright 2020 Advanced Micro Devices, 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.o...
41.607088
124
0.619227
f7988200737608d1197df4a9717a38296b851910
737
py
Python
python/web/src/settings.py
mynameistroy/RASCSI
6b7673e641f13ad963148e4656bbd610903d7aa7
[ "BSD-3-Clause" ]
null
null
null
python/web/src/settings.py
mynameistroy/RASCSI
6b7673e641f13ad963148e4656bbd610903d7aa7
[ "BSD-3-Clause" ]
null
null
null
python/web/src/settings.py
mynameistroy/RASCSI
6b7673e641f13ad963148e4656bbd610903d7aa7
[ "BSD-3-Clause" ]
null
null
null
""" Constant definitions used by other modules """ from os import getenv, getcwd import rascsi.common_settings WEB_DIR = getcwd() HOME_DIR = "/".join(WEB_DIR.split("/")[0:3]) AFP_DIR = f"{HOME_DIR}/afpshare" MAX_FILE_SIZE = getenv("MAX_FILE_SIZE", str(1024 * 1024 * 1024 * 4)) # 4gb ARCHIVE_FILE_SUFFIX = "zip" # ...
27.296296
76
0.742198
f79887be10a59ad4ddcc5f325271d58d657dd159
4,424
py
Python
oscar/lib/python2.7/site-packages/django/core/cache/backends/locmem.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/cache/backends/locmem.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/cache/backends/locmem.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"Thread-safe in-memory cache backend." import time from contextlib import contextmanager from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache from django.utils.synch import RWLock try: from django.utils.six.moves import cPickle as pickle except ImportError: import pickle # G...
32.057971
95
0.572785
f7989bec64e1b8accfd41f7fad4debe7d67350c8
8,926
py
Python
jawa/util/bytecode.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
null
null
null
jawa/util/bytecode.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
null
null
null
jawa/util/bytecode.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
1
2021-01-21T12:17:39.000Z
2021-01-21T12:17:39.000Z
""" Utilities for reading & writing JVM method bytecode. """ import json import enum import pkgutil from struct import unpack, pack, Struct from itertools import repeat from collections import namedtuple Operand = namedtuple('Operand', ['op_type', 'value']) _Instruction = namedtuple('Instruction', [ 'mnemonic', ...
30.053872
74
0.567443
f798aa40199f0a8276d8ca12f1d0b1ba2964bfa2
1,403
py
Python
PyQuante/Constants.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
8
2016-08-26T14:57:01.000Z
2019-12-23T07:39:37.000Z
PyQuante/Constants.py
nicodgomez/pyquante
483571110b83cab406d3d4d8f2eba5cae0a2da58
[ "DOC" ]
1
2019-02-03T10:44:02.000Z
2019-02-03T10:44:02.000Z
PyQuante/Constants.py
globulion/pyq-mod
ee32b6685e9c1e915c5c515ef7ab83adc200fa9b
[ "DOC" ]
8
2016-02-23T19:22:11.000Z
2021-08-28T12:12:59.000Z
"""\ Constants.py: Constants for PyQuante This program is part of the PyQuante quantum chemistry program suite. Copyright (c) 2004, Richard P. Muller. All Rights Reserved. PyQuante version 1.2 and later is covered by the modified BSD license. Please see the file LICENSE that is part of this distribution. """...
29.229167
79
0.721311
f79905901a4a762253bbefd3b6cdec3c0ddf018a
187
py
Python
easy/Length of Last Word/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
8
2021-08-21T19:10:04.000Z
2022-03-11T14:30:02.000Z
easy/Length of Last Word/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
null
null
null
easy/Length of Last Word/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
1
2021-08-24T06:29:02.000Z
2021-08-24T06:29:02.000Z
# Time complexity: O(n) # Approach: Strip + Split + Return length of last element class Solution: def lengthOfLastWord(self, s: str) -> int: return len(s.strip().split()[-1])
31.166667
57
0.657754
f7990c6306be7b2d7b20bee81e557ca5b25b92d4
159,142
py
Python
aiven/client/cli.py
Sodki/aiven-client
4c4ac6868966536d30601628dc80f9bd680bc463
[ "Apache-2.0" ]
null
null
null
aiven/client/cli.py
Sodki/aiven-client
4c4ac6868966536d30601628dc80f9bd680bc463
[ "Apache-2.0" ]
null
null
null
aiven/client/cli.py
Sodki/aiven-client
4c4ac6868966536d30601628dc80f9bd680bc463
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, Aiven, https://aiven.io/ # # This file is under the Apache License, Version 2.0. # See the file `LICENSE` for details. from . import argx, client from aiven.client import envdefault from aiven.client.cliarg import arg from aiven.client.speller import suggest from collections import Counter from decima...
38.440097
125
0.597215
f79927e033891b5b08a29caf0b8a223200a31831
1,278
py
Python
alipay/aop/api/domain/AlipayEcoSmsSendModel.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/AlipayEcoSmsSendModel.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/AlipayEcoSmsSendModel.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 AlipayEcoSmsSendModel(object): def __init__(self): self._content = None self._phone = None @property def content(self): return self._content @content.setter ...
22.821429
65
0.553991
f7995e3da5a1e6d0838dd11bac3c3663b437302b
80,848
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/models/_models_py3.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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.794626
168
0.653226
f799671f2a92023459744552c60e7e397663379b
1,963
py
Python
liquid/exts/filter_colon.py
victorbnl/liquidpy
56eee6c4cb1e0548655a8cb74d6424c1311740e0
[ "Apache-2.0" ]
null
null
null
liquid/exts/filter_colon.py
victorbnl/liquidpy
56eee6c4cb1e0548655a8cb74d6424c1311740e0
[ "Apache-2.0" ]
null
null
null
liquid/exts/filter_colon.py
victorbnl/liquidpy
56eee6c4cb1e0548655a8cb74d6424c1311740e0
[ "Apache-2.0" ]
null
null
null
"""Provides an extension to use colon to separate filter and its arguments Jinja uses `{{a | filter(arg)}}`, but liquid uses `{{a | filter: arg}}` """ from typing import Iterable from jinja2.ext import Extension from jinja2.lexer import ( TOKEN_ASSIGN, TOKEN_BLOCK_END, TOKEN_COLON, TOKEN_LPAREN, TO...
32.716667
79
0.563423
f799d80efe930022383b6ef699934cec8cf85af9
10,000
py
Python
deepensemble/utils/utils_models.py
pdoren/correntropy-and-ensembles-in-deep-learning
b8e39e0ea97395e9f4ef5e9b351551a89fedc885
[ "MIT" ]
1
2017-11-22T15:35:45.000Z
2017-11-22T15:35:45.000Z
deepensemble/utils/utils_models.py
pdoren/correntropy-and-ensembles-in-deep-learning
b8e39e0ea97395e9f4ef5e9b351551a89fedc885
[ "MIT" ]
null
null
null
deepensemble/utils/utils_models.py
pdoren/correntropy-and-ensembles-in-deep-learning
b8e39e0ea97395e9f4ef5e9b351551a89fedc885
[ "MIT" ]
1
2021-12-14T04:16:57.000Z
2021-12-14T04:16:57.000Z
from theano import shared from .cost_functions import mse, cip_relevancy, cip_redundancy, neg_corr, cip_synergy, cip_full from .logger import Logger from .regularizer_functions import L2 from .score_functions import mutual_information_cs from .update_functions import sgd, count_iterations, sgd_cip from .utils_function...
44.247788
129
0.5717