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
731dab86f00acd5a3ec0aed0d2a5975c46f51c0b
287,265
py
Python
.leetcode/391.perfect-rectangle.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/391.perfect-rectangle.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/391.perfect-rectangle.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=391 lang=python3 # # [391] Perfect Rectangle # # https://leetcode.com/problems/perfect-rectangle/description/ # # algorithms # Hard (31.42%) # Likes: 503 # Dislikes: 90 # Total Accepted: 31K # Total Submissions: 98.4K # Testcase Example: '[[1,1,3,3],[3,1,4,2],[3,2,4,4],[1,3,2,4],[2,3,3,4]]'...
68.789511
79
0.255235
731db7b506aee01e093c3cdc86a33814ccb98f4f
2,032
py
Python
megaspark/ml/mega_xgboost.py
bytedance/mega-spark
c643926d0c3a631db0bc819c35a81de9813332ba
[ "Apache-2.0" ]
6
2020-09-15T09:14:08.000Z
2021-06-03T05:54:06.000Z
megaspark/ml/mega_xgboost.py
bytedance/mega-spark
c643926d0c3a631db0bc819c35a81de9813332ba
[ "Apache-2.0" ]
null
null
null
megaspark/ml/mega_xgboost.py
bytedance/mega-spark
c643926d0c3a631db0bc819c35a81de9813332ba
[ "Apache-2.0" ]
4
2020-10-16T05:42:05.000Z
2021-06-03T05:54:07.000Z
from pyspark.sql import SparkSession from pyspark.ml import Pipeline from pyspark.sql.functions import col from pyspark.ml.feature import StringIndexer, VectorAssembler from pyspark.sql.types import StructType, StructField, DoubleType, StringType from pyspark.ml.feature import StringIndexer, VectorAssembler from megasp...
33.866667
96
0.615157
731ddd6ee747ba3f2316e93779fe956c93fe9963
10,390
py
Python
atom/nucleus/python/nucleus_api/models/client_response.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/client_response.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/client_response.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
28.081081
226
0.594706
731e651c4d93bd23e4ab54513f5c25df7d80d53c
113
py
Python
src/onevision/datasets/gopro/__init__.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/datasets/gopro/__init__.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/datasets/gopro/__init__.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import annotations from .gopro import *
11.3
34
0.628319
731e6b1b341fe7f3d762b697fd23afec45b5bad2
1,175
py
Python
src/AudioDetection/WavAudio.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
src/AudioDetection/WavAudio.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
src/AudioDetection/WavAudio.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
from AudioDetection.Audio import Audio from interface import implements import os from config import AUDIO_DIR from scipy.io import wavfile from AudioDetection.audioSegmentation import silence_removal from Utilities import Utilities as util class WavAudio(implements(Audio)): def __init__(self, audioFileName): ...
34.558824
89
0.702128
731e9392c5be6e0decc77c2375d32d7d6007cd18
1,814
py
Python
theory/display_entity.py
yangliu2/theory
98d6a9c1a589e2a8c1cc4998871f4f2ddb0d1545
[ "MIT" ]
null
null
null
theory/display_entity.py
yangliu2/theory
98d6a9c1a589e2a8c1cc4998871f4f2ddb0d1545
[ "MIT" ]
null
null
null
theory/display_entity.py
yangliu2/theory
98d6a9c1a589e2a8c1cc4998871f4f2ddb0d1545
[ "MIT" ]
null
null
null
import pandas as pd from typing import List import argparse from rich.console import Console from rich.table import Table def display_table(entity: str, rows: List): """Display rows of entity using 'rich' package for cli Args: entity (str): entity name rows (List): all the r...
28.793651
75
0.641125
731e974cc4aeedb4989308a5a47d83c3e280d7d6
6,478
py
Python
src/pyshopify/runner.py
webdjoe/pyshopify
69a6af2d168b327a1e94b1e9113852d04a6e1eb3
[ "MIT" ]
null
null
null
src/pyshopify/runner.py
webdjoe/pyshopify
69a6af2d168b327a1e94b1e9113852d04a6e1eb3
[ "MIT" ]
null
null
null
src/pyshopify/runner.py
webdjoe/pyshopify
69a6af2d168b327a1e94b1e9113852d04a6e1eb3
[ "MIT" ]
null
null
null
"""Shopify API Runner.""" import sys import timeit from datetime import timedelta, datetime as dt from typing import Tuple, List, Dict, Union from dateutil import parser from pandas import DataFrame from pyshopify.api import api_call, header_link from pyshopify.configure import Config from pyshopify.csv_out import cs...
36.59887
98
0.591541
731e9d8f0c3c3fdd6da1298a0a00f00ada79e6f1
59,116
py
Python
projex/xbuild/builder.py
bitesofcode/projex
d31743ec456a41428709968ab11a2cf6c6c76247
[ "MIT" ]
7
2016-03-24T19:35:28.000Z
2019-10-07T18:08:27.000Z
projex/xbuild/builder.py
bitesofcode/projex
d31743ec456a41428709968ab11a2cf6c6c76247
[ "MIT" ]
2
2016-03-23T01:34:27.000Z
2019-10-29T21:54:20.000Z
projex/xbuild/builder.py
bitesofcode/projex
d31743ec456a41428709968ab11a2cf6c6c76247
[ "MIT" ]
2
2016-06-09T18:57:06.000Z
2019-10-06T12:29:42.000Z
""" Defines the builder class for building versions. """ import logging import os import projex import projex.resources import projex.pyi import re import shutil import subprocess import sys import time import zipfile from xml.etree import ElementTree from projex.enum import enum from projex.xbuild import templ from...
29.932152
95
0.518794
731ed1fab3ca8b06d060746d1e8a2aefa2213c4f
3,217
py
Python
atlas/datatables/utils.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
null
null
null
atlas/datatables/utils.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
atlas/datatables/utils.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
1
2017-07-20T08:01:24.000Z
2017-07-20T08:01:24.000Z
# Django from copy import deepcopy from django.core.serializers.json import DjangoJSONEncoder import json __all__ = ['hungarian_to_python', 'lookupattr'] def dumpjs(obj, *args, **kwargs): """Dump a Python object as Javascript, with support for a __json__ method.""" kwargs['cls'] = DjangoJSONEncoder kwarg...
33.164948
84
0.585328
731ee19d4dd5d98ce058b9e3dd00583fc22f7a7a
1,713
py
Python
tests/test_tokenizers.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
tests/test_tokenizers.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
tests/test_tokenizers.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
"""Tests the tokenizers in `text_data.tokenize`.""" import pytest from text_data import tokenize @pytest.mark.parametrize( "input,regex,expected", [ ("Ex doc", r"[A-Za-z]+", (["Ex", "doc"], [(0, 2), (3, 6)])), ("It's a cat", r"\S+", (["It's", "a", "cat"], [(0, 4), (5, 6), (7, 10)])), ], )...
32.320755
93
0.57735
731f006dad2c8d4beb1a625c0f8bca19c6aca566
842
py
Python
phr/personal/migrations/0002_auto_20170303_1217.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/personal/migrations/0002_auto_20170303_1217.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/personal/migrations/0002_auto_20170303_1217.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-03 12:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('establecimiento', '0002_auto_20170301_1027'), ('personal', '0001_initial'), ] ...
26.3125
79
0.590261
731f41c181cd5491166d4f0e11218225a1e6bf58
1,983
py
Python
tests/common/test_op/prob_program/distr_normal_diag_sample_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/prob_program/distr_normal_diag_sample_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/prob_program/distr_normal_diag_sample_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
34.789474
93
0.739788
731f4422466521287e5ed49bbf8dca682286e73a
1,216
py
Python
scripts/time-distance-to-vdot-coefficients.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
scripts/time-distance-to-vdot-coefficients.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
scripts/time-distance-to-vdot-coefficients.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
from helper import load_times, str_time_to_num_time import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression df = pd.read_csv('../data/vdot-times-jack-daniels-running-formula-2-modified.csv') params = [] # Get powers data = df.copy() data['t1'] = data[...
35.764706
161
0.643914
731f982fd6e44800206791523589f72d416c0e17
4,611
py
Python
tryalgo/partition_refinement.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/partition_refinement.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/partition_refinement.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Partition refinement # christoph durr - 2016-2018 #log: 10/11/2016 modified to preserve class order after refinement # 15/11/2016 this was non sense, moved back __all__ = ["PartitionRefinement"] class DoubleLinkedListItem: """Item of a circular double linked...
35.198473
100
0.563869
731fc6a83496afce5087b31351694fecc5d76439
7,158
py
Python
Python/Machinery/controller.py
DarkDruiD/Machinery
1ebaaea203c44f31fbd183d3f92d72efdd4bcaa0
[ "MIT" ]
null
null
null
Python/Machinery/controller.py
DarkDruiD/Machinery
1ebaaea203c44f31fbd183d3f92d72efdd4bcaa0
[ "MIT" ]
null
null
null
Python/Machinery/controller.py
DarkDruiD/Machinery
1ebaaea203c44f31fbd183d3f92d72efdd4bcaa0
[ "MIT" ]
null
null
null
class Datapath(object): """ Manages the data flow. This class manages tow fundamental types of data static data represented by values, and variables data represented by variables, the values will be setted to a simple value and stored in a dict, and the variables will need an update funct...
28.181102
78
0.611903
731fde0f24548588e5dfc181b93236a456e233e4
1,112
py
Python
training/scripts/tokenizers/utils.py
airKlizz/passage-ordering
f63b993dfd5b7e6475e7fb8950c23c3f22951979
[ "MIT" ]
1
2021-09-06T09:44:10.000Z
2021-09-06T09:44:10.000Z
training/scripts/tokenizers/utils.py
airKlizz/passage-ordering
f63b993dfd5b7e6475e7fb8950c23c3f22951979
[ "MIT" ]
null
null
null
training/scripts/tokenizers/utils.py
airKlizz/passage-ordering
f63b993dfd5b7e6475e7fb8950c23c3f22951979
[ "MIT" ]
null
null
null
from nltk.tokenize import word_tokenize from datasets import load_dataset from .glove import GloveTokenizer from tqdm import tqdm def get_ordering_dataset(path, split="train", cache_dir=None): def add_text_column(example): example["text"] = " ".join(example["sentences"]) return example dat...
28.512821
82
0.711331
73202c01bc1c8eab5224409bf9283d7ff3e55936
2,129
py
Python
PyPoll/main.py
crogar/python-challenge
7b3d665436b01d209aef0b8796ed43432efa6769
[ "RSA-MD" ]
1
2021-02-04T22:00:55.000Z
2021-02-04T22:00:55.000Z
PyPoll/main.py
crogar/python-challenge
7b3d665436b01d209aef0b8796ed43432efa6769
[ "RSA-MD" ]
null
null
null
PyPoll/main.py
crogar/python-challenge
7b3d665436b01d209aef0b8796ed43432efa6769
[ "RSA-MD" ]
null
null
null
import os, csv from collections import defaultdict election_data = os.path.join(os.getcwd(),'Resources/election_data.csv') #reference to election_data in ./Resources/election_data.csv.cs analysis = os.path.join(os.getcwd(),'Analysis/analysis.txt') # output path. #Declaring variables to store the data from the CSV fil...
54.589744
149
0.66651
732052604e1ee6bb19b49fadc43ec07d6ab49d55
1,703
py
Python
stories/models.py
mateusz800/blog
a4083a85fb045124cd78ac59895c3bd9afb559dd
[ "MIT" ]
null
null
null
stories/models.py
mateusz800/blog
a4083a85fb045124cd78ac59895c3bd9afb559dd
[ "MIT" ]
6
2021-03-19T11:06:32.000Z
2021-04-12T13:11:26.000Z
stories/models.py
mateusz800/stories
a4083a85fb045124cd78ac59895c3bd9afb559dd
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.global_settings import AUTH_USER_MODEL from django.db import models from django.utils import timezone from django.contrib.contenttypes.fields import GenericRelation from hitcount.models import HitCountMixin from hitcount.models import HitCount from taggit.managers impo...
34.755102
98
0.741045
7320909af1bde24f5eb204d6c44a9c54be10fa77
604
py
Python
examples/parallel_declare.py
jmptbl/puka
bc6e845c8a5f4319ffc54cc71959c56a8893edaf
[ "MIT" ]
81
2015-01-22T10:09:37.000Z
2022-01-25T04:38:29.000Z
examples/parallel_declare.py
ov7a/puka
d2a1a8747b417021d6f18df7ee73d336f670f5a9
[ "MIT" ]
17
2015-05-13T01:51:53.000Z
2021-03-05T04:01:39.000Z
examples/parallel_declare.py
ov7a/puka
d2a1a8747b417021d6f18df7ee73d336f670f5a9
[ "MIT" ]
25
2015-02-12T14:02:41.000Z
2020-05-15T14:08:43.000Z
#!/usr/bin/env python import sys sys.path.append("..") import logging FORMAT_CONS = '%(asctime)s %(name)-12s %(levelname)8s\t%(message)s' logging.basicConfig(level=logging.DEBUG, format=FORMAT_CONS) import puka client = puka.Client("amqp://localhost/") promise = client.connect() client.wait(promise) promises = ...
20.827586
73
0.721854
7320b03f542e4230fa73ef72120ea5d250ccc37d
5,302
py
Python
Code_for_Classification/ABR_SVM/ABR_SVM_v1.0.1_spec_800_4.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
1
2021-04-20T14:47:40.000Z
2021-04-20T14:47:40.000Z
Code_for_Classification/ABR_SVM/ABR_SVM_v1.0.1_spec_800_4.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
Code_for_Classification/ABR_SVM/ABR_SVM_v1.0.1_spec_800_4.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 11 11:52:08 2019 @author: bruce """ #coding=utf-8 from sklearn.datasets import load_digits # 从skleran.datasets里有导入手写体数字加载器 from sklearn.model_selection import train_test_split #导入train_test_split用于数据分割 from sklearn.preprocessing import StandardS...
26.777778
144
0.673519
7320b5fb68f9fbb41572c7504a3365c6ff26a69d
5,744
py
Python
automodel.py
TS-SE-GROUP/icme2019
7eefdb7de6a7ff3bec1721fafb822d80d80dbba3
[ "MIT" ]
null
null
null
automodel.py
TS-SE-GROUP/icme2019
7eefdb7de6a7ff3bec1721fafb822d80d80dbba3
[ "MIT" ]
null
null
null
automodel.py
TS-SE-GROUP/icme2019
7eefdb7de6a7ff3bec1721fafb822d80d80dbba3
[ "MIT" ]
1
2019-03-04T12:19:38.000Z
2019-03-04T12:19:38.000Z
import pandas as pd import numpy from sklearn.preprocessing import LabelEncoder, MinMaxScaler from sklearn.model_selection import train_test_split from sklearn.metrics import log_loss, roc_auc_score from deepctr.models import DeepFM from deepctr import SingleFeat import tensorflow as tf from keras.callbacks imp...
42.235294
173
0.639972
7320c55635f34f3901ef905c57270a2258c3d567
8,289
py
Python
models/mask_discriminator.py
TeodorMoiseev/maskgan-seq2seq
a164726c5aff499ce19a3882139dde246641ed7f
[ "MIT" ]
2
2020-02-05T03:39:15.000Z
2020-03-04T03:27:56.000Z
models/mask_discriminator.py
henceforth1984/maskgan-seq2seq
a164726c5aff499ce19a3882139dde246641ed7f
[ "MIT" ]
1
2020-08-11T08:43:31.000Z
2020-08-11T08:43:31.000Z
models/mask_discriminator.py
henceforth1984/maskgan-seq2seq
a164726c5aff499ce19a3882139dde246641ed7f
[ "MIT" ]
1
2020-02-05T03:45:54.000Z
2020-02-05T03:45:54.000Z
import torch import torch.nn as nn import torch.nn.functional as F from fairseq import utils from fairseq.models import FairseqModel, register_model from fairseq.models.transformer import Embedding from .mask_layers import ( MaskTransformerDecoder, MaskTransformerEncoder ) class MaskDiscriminatorDecoder(Mask...
46.830508
111
0.618651
7320cc4128d3478bdca1cc2be1fb87184f770afd
6,287
py
Python
openstack-dashboard/openstack_dashboard/dashboards/project/monitors/tables.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
openstack-dashboard/openstack_dashboard/dashboards/project/monitors/tables.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
openstack-dashboard/openstack_dashboard/dashboards/project/monitors/tables.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, 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 # # ...
33.441489
88
0.609353
7320f35116fe9540eb5479e6a3bf4b74acc6f461
1,107
py
Python
tron/Nubs/deprecated/bmo.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/bmo.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/bmo.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
import os.path from tron import Misc.cfg from tron import g as hub_globals from tron import hub from tron.Hub.Command.Encoders.ASCIICmdEncoder import ASCIICmdEncoder from tron.Hub.Nub.SocketActorNub import SocketActorNub from tron.Hub.Reply.Decoders.ASCIIReplyDecoder import ASCIIReplyDecoder name = 'bmo' def start...
23.553191
77
0.644083
73213458c0f44e977426e4e7d1b08c3854b8de81
10,894
py
Python
project5/gru/cnnSID.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project5/gru/cnnSID.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project5/gru/cnnSID.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
# Sample code implementing LeNet-5 from Liu Liu import tensorflow as tf import numpy as np import time import h5py # import matplotlib.pyplot as plt from sklearn.metrics import confusion_matrix import itertools from copy import deepcopy import os import os.path # import cPickle as pickle import pickle # from tenso...
35.028939
153
0.594456
73215c5ca5f48c65be692b809e0641654cea2ffc
3,824
py
Python
nova/tests/storage_unittest.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
null
null
null
nova/tests/storage_unittest.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-08-02T15:40:49.000Z
2020-08-02T15:40:49.000Z
nova/tests/storage_unittest.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-07-25T17:56:39.000Z
2020-07-25T17:56:39.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2010 Anso Labs, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # ...
36.419048
79
0.636245
7321a35a9a4e3824018be943de1e36ade51c5859
2,021
py
Python
O2/_01_perceptron/perceptron.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O2/_01_perceptron/perceptron.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O2/_01_perceptron/perceptron.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
import numpy as np class Perceptron: """Perceptron classifier. Parameters ---------- eta : float Learning rate (between 0.0 and 1.0) epochs : int Passes over the training dataset random_state : int Random number generator seed for random weight initialization. ...
26.946667
72
0.534884
7321ad6f34df06fe1b24ce9786aaf02abb693be5
1,898
py
Python
exercises/markdown/example.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/markdown/example.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/markdown/example.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
import re def parse_markdown(markdown): lines = markdown.split('\n') html = '' in_list = False for line in lines: res = parse_line(line, in_list) html += res['line'] in_list = res['in_list'] if in_list: html += '</ul>' return html def wrap(line, tag): retu...
23.432099
76
0.524236
7321b8fe0e56ad6a0436d99332a033139c5fa8c0
3,064
py
Python
tests/rbac/common/task/create_task_helper.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
tests/rbac/common/task/create_task_helper.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
tests/rbac/common/task/create_task_helper.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
34.044444
85
0.657963
7321c6e2372a81556759029930980a338b9a9643
710
py
Python
LeetCode/others/57. Insert Interval/solution_2.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LeetCode/others/57. Insert Interval/solution_2.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LeetCode/others/57. Insert Interval/solution_2.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/insert-interval/discuss/1200916/Python-easy-Solution-faster-than-84.99-memory-less-than-91.27 class Solution: def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]: intervals.append(newInterval) intervals.sort() i = 1 ...
33.809524
125
0.494366
7321c7bec5589238f0ab978e8955a824d82e2c6a
750
py
Python
parrot_api/core/common.py
perrystallings/parrot-api-core
c6b5464429da00173c80ad17d9faf248cadcc33d
[ "MIT" ]
null
null
null
parrot_api/core/common.py
perrystallings/parrot-api-core
c6b5464429da00173c80ad17d9faf248cadcc33d
[ "MIT" ]
null
null
null
parrot_api/core/common.py
perrystallings/parrot-api-core
c6b5464429da00173c80ad17d9faf248cadcc33d
[ "MIT" ]
null
null
null
def generate_random_id(): """Generate a random id :return: a unique UUID4 formatted string """ import uuid return str(uuid.uuid4()) def generate_hash_id(data): """Generate a consistent uuid for a given input :return: a UUID4 formatted string """ import json import uuid im...
22.727273
76
0.653333
7321cec5a70411e3db78ce8ad8095bd407757761
454
py
Python
sources/migrations/0011_add_verbose_name_for_title.py
industrydive/sourcedive
eb8c4657a6c3182666dc15109bd982a5d5ba1325
[ "MIT" ]
null
null
null
sources/migrations/0011_add_verbose_name_for_title.py
industrydive/sourcedive
eb8c4657a6c3182666dc15109bd982a5d5ba1325
[ "MIT" ]
16
2019-05-30T20:55:25.000Z
2020-06-09T18:52:34.000Z
sources/migrations/0011_add_verbose_name_for_title.py
industrydive/sourcedive
eb8c4657a6c3182666dc15109bd982a5d5ba1325
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-14 20:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sources', '0010_update_verbose_names_on_org_expertise'), ] operations = [ migrations.AlterField( model_name='person', ...
23.894737
100
0.632159
7322046940217299501a05dbc09fccb681af9f84
14,980
py
Python
rootfs/api/settings/production.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
rootfs/api/settings/production.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
rootfs/api/settings/production.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
""" Django settings for the Drycc project. """ from distutils.util import strtobool import os.path import tempfile import ldap import json from django_auth_ldap.config import LDAPSearch, GroupOfNamesType # A boolean that turns on/off debug mode. # https://docs.djangoproject.com/en/1.11/ref/settings/#debug DEBUG = boo...
35.330189
133
0.701535
73221b15b2a4f452871fd8f7368e68e88ec56817
28,398
py
Python
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/operations/_config_servers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/operations/_config_servers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/operations/_config_servers_operations.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 ...
44.441315
205
0.684097
732222cd2c7d22892b01c808f82734479c044f16
3,436
py
Python
mapreduce/setup.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
mapreduce/setup.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
mapreduce/setup.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
# Always prefer setuptools over distutils from setuptools import setup # To use a consistent encoding from codecs import open from os import path import json import re here = path.abspath(path.dirname(__file__)) def parse_req_line(line): line = line.strip() if not line or line.startswith('--hash') or line[0]...
28.396694
92
0.63213
73222507ab74a48f6700edfd76a48eadf56e103b
1,132
py
Python
libweasyl/setup.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
libweasyl/setup.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
libweasyl/setup.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
#!/usr/bin/env python import os from setuptools import setup # work around the combination of http://bugs.python.org/issue8876 and # https://www.virtualbox.org/ticket/818 since it doesn't really have ill # effects and there will be a lot of virtualbox users. del os.link setup( name='libweasyl', description=...
26.952381
78
0.566254
732229d63b85e197b1d4bdc8caf8e149f9971b03
1,043
py
Python
test/python/tools/test_tools.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
test/python/tools/test_tools.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
test/python/tools/test_tools.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=redefined-builtin """Tests for the wrapper functionality.""" import unittest import qiskit.tools from qi...
26.74359
77
0.682646
73222b22260f605278919c80063b215fed7d8358
12,579
py
Python
tests/unit/param_translation_tests.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
null
null
null
tests/unit/param_translation_tests.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
null
null
null
tests/unit/param_translation_tests.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 IBM. 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 ...
35.136872
79
0.600048
732241d64ca8e53a0a431d8ae17509b3d12c73cc
3,445
py
Python
src/timeshap/explainer/global_methods.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
49
2022-03-25T14:35:52.000Z
2022-03-31T18:05:51.000Z
src/timeshap/explainer/global_methods.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
1
2022-03-31T12:15:55.000Z
2022-03-31T14:59:06.000Z
src/timeshap/explainer/global_methods.py
feedzai/timeshap
0d56b3b86222d52fdc5a1e96f125513e0ed18e6c
[ "Apache-2.0" ]
2
2022-03-28T04:32:35.000Z
2022-03-28T06:39:24.000Z
# Copyright 2022 Feedzai # # 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 writi...
36.263158
117
0.696372
73225bfbfb750c765cefe454c6e359252b9a5f79
8,703
py
Python
FlaskWebApp/flask_server/models/apks.py
ClaudioRizzo/JniFuzzerFramework
520a85fe7c4fe348a0b62c32993bf3ae6e503598
[ "MIT" ]
null
null
null
FlaskWebApp/flask_server/models/apks.py
ClaudioRizzo/JniFuzzerFramework
520a85fe7c4fe348a0b62c32993bf3ae6e503598
[ "MIT" ]
null
null
null
FlaskWebApp/flask_server/models/apks.py
ClaudioRizzo/JniFuzzerFramework
520a85fe7c4fe348a0b62c32993bf3ae6e503598
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ tsbackend.models.apks ~~~~~~~~~~~~~~~~~~~~~ This module contains helper functions for manipulating database records primarily to support the routes defined in `tsbackend.views.apks`. """ from datetime import datetime from bson import ObjectId from flask import current_app def find_libr...
28.165049
90
0.608871
7322637d55362ed2594bb0371d0d0574b0262115
371
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/preprocessing/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/preprocessing/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/preprocessing/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
"""Imports for Python API. This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script. """ from tensorflow.tools.api.generator.api.keras.preprocessing import image from tensorflow.tools.api.generator.api.keras.preprocessing import sequence from tensorflow.tool...
46.375
75
0.830189
732268ca1d4feaf862e16055e7f344e61e363081
8,371
py
Python
futaba/sql/models/welcome.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
23
2018-09-17T09:06:27.000Z
2021-05-27T15:21:37.000Z
futaba/sql/models/welcome.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
257
2018-08-18T21:27:54.000Z
2020-12-29T23:27:10.000Z
futaba/sql/models/welcome.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
22
2018-09-09T09:03:13.000Z
2021-11-09T03:34:34.000Z
# # sql/models/welcome.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in the h...
31.469925
88
0.576753
732278f5628f27775058aee6cc2e30ad157bd8cc
4,503
py
Python
taro/socket.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
taro/socket.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
26
2021-04-05T12:32:21.000Z
2022-03-22T12:53:44.000Z
taro/socket.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
1
2021-04-16T21:04:53.000Z
2021-04-16T21:04:53.000Z
import abc import json import logging import os import socket from collections import namedtuple from threading import Thread from types import coroutine from typing import List from taro import paths log = logging.getLogger(__name__) class SocketServer(abc.ABC): def __init__(self, socket_name): self._...
33.355556
119
0.59205
7322ae105b9ecd183bd6dd6da13d9bb5f30559a2
881
py
Python
test/runtime/frontend_test/chainer_test/add_constant_test.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
test/runtime/frontend_test/chainer_test/add_constant_test.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
test/runtime/frontend_test/chainer_test/add_constant_test.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
import chainer import numpy as np from test.util import generate_kernel_test_case from webdnn.frontend.chainer.converter import ChainerConverter def test(): vx = chainer.Variable(np.random.rand(2, 4, 6, 8).astype(np.float32)) vy = vx + 1 graph = ChainerConverter().convert([vx], [vy]) x = graph.inpu...
22.025
72
0.620885
7322b2df6739c66768f577ee1a8986a399d5a78d
2,719
py
Python
mapproxy/cache/legend.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/cache/legend.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/cache/legend.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # 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...
31.988235
100
0.665686
7322b78840e6ed2c63ffabaf3525197671224103
1,313
py
Python
toontown/speedchat/TTSCPromotionalMenu.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/speedchat/TTSCPromotionalMenu.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/speedchat/TTSCPromotionalMenu.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.directnotify import DirectNotifyGlobal from otp.speedchat.SCMenu import SCMenu from otp.speedchat import SCMenuHolder from otp.speedchat.SCStaticTextTerminal import SCStaticTextTerminal from otp.otpbase import OTPLocalizer from toontown.toonbase import ToontownGlobals holidayId2menuInfo = {} class TTSCProm...
34.552632
123
0.714395
7322c59ffce4e0ee7f47fa36398d682a22bd0f19
5,386
py
Python
tensor2tensor/data_generators/snli.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
6
2017-10-10T13:36:39.000Z
2021-02-18T07:50:00.000Z
tensor2tensor/data_generators/snli.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/snli.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
9
2017-07-25T11:29:06.000Z
2021-06-20T14:01:58.000Z
# Copyright 2017 The Tensor2Tensor 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 or agreed ...
31.682353
80
0.726142
7322e33e148e4d7f408e1cda50e0fbba87829c91
3,075
py
Python
pql/__init__.py
Axonius/pql
4269cb4c1ceb77cfed5e81fe69b794de06336922
[ "BSD-3-Clause" ]
null
null
null
pql/__init__.py
Axonius/pql
4269cb4c1ceb77cfed5e81fe69b794de06336922
[ "BSD-3-Clause" ]
null
null
null
pql/__init__.py
Axonius/pql
4269cb4c1ceb77cfed5e81fe69b794de06336922
[ "BSD-3-Clause" ]
null
null
null
from functools import wraps from .aggregation import AggregationGroupParser, AggregationParser from .matching import (SchemaFreeParser, SchemaAwareParser, ParseError, StringField, IntField, BoolField, IdField, ListField, DictField, DateTimeField) def find(expression, sche...
27.702703
97
0.647805
7322fc69a5bf0118f21b87b3cfe7db8d02efcc85
7,955
py
Python
pnerf/pnerf.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
pnerf/pnerf.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
3
2022-01-13T03:13:37.000Z
2022-03-12T00:48:18.000Z
pnerf/pnerf.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
""" pNeRF algorithm for parallelized conversion from torsion (dihedral) angles to Cartesian coordinates implemented with PyTorch. Reference implementation in tensorflow by Mohammed AlQuraishi: https://github.com/aqlaboratory/pnerf/blob/master/pnerf.py Paper (preprint) by Mohammed AlQuraishi: https://www.biorxiv...
47.634731
98
0.666248
73232d3b8741a704ecba344931a281cebe6c50a3
1,658
py
Python
examples/streaming_video.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
3
2021-05-14T20:36:48.000Z
2021-06-14T10:04:01.000Z
examples/streaming_video.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
null
null
null
examples/streaming_video.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
1
2021-09-21T11:49:48.000Z
2021-09-21T11:49:48.000Z
import os try: import cv2 except ImportError: cv2 = None from p2pcam.api import get_camera_list, get_user_info, login from p2pcam.iotc import P2PPlatform def main(): assert cv2, "missing opencv-python, required for this example" assert os.environ["WYZE_EMAIL"], "missing WYZE_EMAIL" assert os.env...
33.16
79
0.574789
73233520e7ad8368bd61916dd4d229264cfcd184
4,397
py
Python
scripts/practice/Amazon/ValidSudoku.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/Amazon/ValidSudoku.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/Amazon/ValidSudoku.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Valid Sudoku Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the digits 1-9 without repetition. Each column must contain the digits 1-9 without repetition. Each of the nine 3 x 3 sub-boxes of the grid must contain the...
26.810976
92
0.4403
73233c24fb6209b151f29bf949ec8601d371111c
7,399
py
Python
csh_quotefault_bot/responses.py
mxmeinhold/csh-quotefault-bot
708b6ec859e56f90eb6aee70d261d5757301cf4a
[ "MIT" ]
1
2018-08-07T01:48:47.000Z
2018-08-07T01:48:47.000Z
csh_quotefault_bot/responses.py
mxmeinhold/csh-quotefault-bot
708b6ec859e56f90eb6aee70d261d5757301cf4a
[ "MIT" ]
5
2018-07-07T02:52:19.000Z
2018-10-03T00:02:37.000Z
csh_quotefault_bot/responses.py
ComputerScienceHouse/QuotefaultBot
708b6ec859e56f90eb6aee70d261d5757301cf4a
[ "MIT" ]
3
2018-07-25T12:54:31.000Z
2018-10-06T01:58:47.000Z
import traceback from flask import jsonify import requests url = '' multiples = [] _LDAP = None def init(addr: str, multi: list, ldap): global url global multiples global _LDAP url = addr multiples = multi _LDAP = ldap def help_msg(command: str): wrong = '_Unrecognized: ' + command + '_\n...
33.785388
146
0.575889
7323458fd48493723b8115d7261e37b26187b7cf
5,204
py
Python
source_code/FastPoseCNN/inference.py
edavalosanaya/MastersProject
5409aad0ac681e7017ab5abcea89b5b85664c715
[ "MIT" ]
3
2021-02-18T06:18:12.000Z
2022-03-13T13:21:16.000Z
source_code/FastPoseCNN/inference.py
edavalosanaya/FastPoseCNN
5409aad0ac681e7017ab5abcea89b5b85664c715
[ "MIT" ]
null
null
null
source_code/FastPoseCNN/inference.py
edavalosanaya/FastPoseCNN
5409aad0ac681e7017ab5abcea89b5b85664c715
[ "MIT" ]
null
null
null
# External Imports import os import sys import pathlib import torch import argparse import tqdm import matplotlib.pyplot as plt import skimage import skimage.io import time import numpy as np # Local Imports import setup_env import tools import config import lib #-----------------------------------------------------...
31.349398
220
0.67794
732397c185edfc4693cd4ef1658242e715088ceb
2,666
py
Python
tests/python/pants_test/base/test_hash_utils.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/base/test_hash_utils.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/base/test_hash_utils.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import hashlib import math import unittest from builtins import range, str from pants.ba...
31.364706
98
0.702551
732404f58b84d7e167bd695f0dc3e2b2df4bec90
3,863
py
Python
scheduler/Task.py
CabbageDevelopment/async-process-scheduler
3692b7dddf97ea2be242cad195243610af86a0e7
[ "MIT" ]
2
2020-05-27T14:13:18.000Z
2021-04-02T22:41:39.000Z
scheduler/Task.py
CabbageDevelopment/async-process-scheduler
3692b7dddf97ea2be242cad195243610af86a0e7
[ "MIT" ]
null
null
null
scheduler/Task.py
CabbageDevelopment/async-process-scheduler
3692b7dddf97ea2be242cad195243610af86a0e7
[ "MIT" ]
1
2021-01-29T05:44:06.000Z
2021-01-29T05:44:06.000Z
# MIT License # # Copyright (c) 2019 Sam McCormack # # 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,...
31.92562
91
0.628268
73241c8f0bd092ec63d94ef626e36c252184b238
88,568
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/models/_models_py3.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 ...
43.93254
188
0.6704
732433c15481a91d95aea7589a8d4df39b639fd6
2,375
py
Python
upload_data/upload_data.py
leeivan1007/McDonalds
671516212f6852d812ac1aaa13bd9f58e0860c46
[ "MIT" ]
null
null
null
upload_data/upload_data.py
leeivan1007/McDonalds
671516212f6852d812ac1aaa13bd9f58e0860c46
[ "MIT" ]
4
2019-01-31T03:32:46.000Z
2021-06-01T23:23:55.000Z
upload_data/upload_data.py
leeivan1007/McDonalds
671516212f6852d812ac1aaa13bd9f58e0860c46
[ "MIT" ]
1
2019-01-31T03:39:20.000Z
2019-01-31T03:39:20.000Z
from __future__ import print_function import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request import json # If modifying these scopes, delete the file token.pickle. SCOPES = ['https://www.googlea...
32.534247
79
0.679158
7324471ad5f7eb701c44cc42ce5e268c8586c20c
2,844
py
Python
code/james/OTHER/entropy_test.py
charelF/ComplexSystems
3efc9b577ec777fcecbd5248bbbaf77b7d90fc65
[ "MIT" ]
null
null
null
code/james/OTHER/entropy_test.py
charelF/ComplexSystems
3efc9b577ec777fcecbd5248bbbaf77b7d90fc65
[ "MIT" ]
null
null
null
code/james/OTHER/entropy_test.py
charelF/ComplexSystems
3efc9b577ec777fcecbd5248bbbaf77b7d90fc65
[ "MIT" ]
null
null
null
# %% import pandas as pd import numpy as np import matplotlib.pyplot as plt import sys sys.path.append("../shared") from analytic_tools import fractal_latent_heat_alex from wednesdaySPEED import simulation # %% tau = 9 pi_2_vals = [0.0, 0.1, 0.2, 0.3, 0.5] plt.figure(figsize=(10,5)) for i, val in enumerate(pi_2_va...
26.830189
113
0.584388
73244722848d701355e7791b6ce5f29405648374
3,142
py
Python
tools/my_infer.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
null
null
null
tools/my_infer.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
null
null
null
tools/my_infer.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
null
null
null
import torch import argparse import soundfile as sf import torch.nn.functional as F import itertools as it from fairseq import tasks from fairseq import checkpoint_utils from sew_asapp.models.wav2vec2_asr_v2 import Wav2VecCtcV2 from sew_asapp.decoder.ctc_decoder import CTCArgMaxDecoder def configure_parser(): pars...
34.152174
104
0.644494
732485bb5385537c774be90dce3d86d37e66ff6e
2,116
py
Python
departure_server/test/station_test.py
budde377/uber-coding-challenge
b78a96ec01a97bc1227ef96e748e97350f2ee2f7
[ "MIT" ]
null
null
null
departure_server/test/station_test.py
budde377/uber-coding-challenge
b78a96ec01a97bc1227ef96e748e97350f2ee2f7
[ "MIT" ]
null
null
null
departure_server/test/station_test.py
budde377/uber-coding-challenge
b78a96ec01a97bc1227ef96e748e97350f2ee2f7
[ "MIT" ]
null
null
null
from datetime import datetime from unittest import TestCase from departure_server.query_strategy import StubQueryStrategy from departure_server.station import StationLibrary, Position, Station, Departure __author__ = 'budde' class TestStationLibrary(TestCase): def setUp(self): self.query_strategy = Stub...
40.692308
122
0.673913
73249067f598b401f88a2797e77cf77b57233a1c
2,123
py
Python
examples/upload_video.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/upload_video.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/upload_video.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
30.768116
76
0.75365
732496507d2b9626d7120ebad047f06e0ff32329
2,067
py
Python
backend/zombie.py
iteloo/the_island
16995a91a100fe5a096e3d5649a75996245044a1
[ "MIT" ]
null
null
null
backend/zombie.py
iteloo/the_island
16995a91a100fe5a096e3d5649a75996245044a1
[ "MIT" ]
3
2018-09-04T22:35:17.000Z
2018-09-04T22:35:17.000Z
backend/zombie.py
iteloo/the_island
16995a91a100fe5a096e3d5649a75996245044a1
[ "MIT" ]
null
null
null
from backend import message from backend import helpers from backend import player import collections class Zombie(message.MessageDelegate): _currentId = 0 def __init__(self, *args, **kwargs): # call super super().__init__(*args, **kwargs) # general vars self.id = self._cur...
27.56
87
0.629415
7324a0cb0ed2c54b4392e19aec6f34b4b775b100
1,218
py
Python
scorpio_bringup/launch/getcurrentpose.py
applejenny66/goldpaint
cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d
[ "MIT" ]
null
null
null
scorpio_bringup/launch/getcurrentpose.py
applejenny66/goldpaint
cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d
[ "MIT" ]
1
2020-08-10T05:33:02.000Z
2020-08-10T05:33:02.000Z
scorpio_bringup/launch/getcurrentpose.py
applejenny66/goldpaint
cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d
[ "MIT" ]
1
2021-05-20T09:08:05.000Z
2021-05-20T09:08:05.000Z
#!/usr/bin/env python import moveit_commander import rospy, sys import tf from geometry_msgs.msg import Pose, Quaternion from tf.transformations import quaternion_from_euler rospy.init_node('get_pose') moveit_commander.roscpp_initialize(sys.argv) #group = moveit_commander.MoveGroupCommander( #'arm', '/scorpio/mmp0/...
28.325581
85
0.701149
7324db94f930e297f719d9017c3c8716230aba09
3,168
py
Python
ingen/__main__.py
dianagudu/inputgen
161ccb4497c3ab7904bad4a89973769cd6d2b3e4
[ "MIT" ]
1
2020-03-06T00:40:34.000Z
2020-03-06T00:40:34.000Z
ingen/__main__.py
dianagudu/inputgen
161ccb4497c3ab7904bad4a89973769cd6d2b3e4
[ "MIT" ]
null
null
null
ingen/__main__.py
dianagudu/inputgen
161ccb4497c3ab7904bad4a89973769cd6d2b3e4
[ "MIT" ]
null
null
null
import sys import pylab as plt from matplotlib import cm from .preprocessors import GoogleDatasetProcessor from .preprocessors import BitbrainsDatasetProcessor from .preprocessors import UniformDatasetProcessor from .preprocessors import HotspotsDatasetProcessor from .preprocessors import DataSourceIO from .binning i...
31.366337
80
0.695391
73250443d755116257367187ff206459e6bb5b62
884
py
Python
src/pipelines/geography/geography_pipeline.py
harrisonzhu508/data
a3b95ced4abad6653d20f67f3f285abeeb0c2b25
[ "Apache-2.0" ]
null
null
null
src/pipelines/geography/geography_pipeline.py
harrisonzhu508/data
a3b95ced4abad6653d20f67f3f285abeeb0c2b25
[ "Apache-2.0" ]
null
null
null
src/pipelines/geography/geography_pipeline.py
harrisonzhu508/data
a3b95ced4abad6653d20f67f3f285abeeb0c2b25
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, List, Tuple from pandas import DataFrame, merge, Int64Dtype from lib.pipeline import DataPipeline, DefaultPipeline, PipelineChain from pipelines._common.wikidata_pipeline import WikidataPipeline class GeographyPipelineChain(PipelineChain): schema: Dict[str, type] = { "key": ...
27.625
69
0.496606
7325085f4b565b1cd580dc901fbd05b9b2e48cd7
14,095
py
Python
ckan/tests/misc/test_stats.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
1
2016-02-11T04:51:21.000Z
2016-02-11T04:51:21.000Z
ckan/tests/misc/test_stats.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/misc/test_stats.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
import datetime import re from pylons import config import ckan.model as model from ckan.tests import * from ckan.lib.stats import Stats, RevisionStats from ckan.lib import stats from ckan.rating import set_rating from ckan.model.authz import add_user_to_role class TestStats(TestController): @classmethod ...
44.888535
131
0.626818
73251b3734420f96df8d834aa1360b2bfade0f67
10,146
py
Python
var/spack/repos/builtin/packages/cbtf-krell/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2020-06-18T18:55:51.000Z
2022-01-31T23:01:55.000Z
var/spack/repos/builtin/packages/cbtf-krell/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
35
2016-05-11T06:52:44.000Z
2022-03-23T04:37:34.000Z
var/spack/repos/builtin/packages/cbtf-krell/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2020-06-18T18:59:09.000Z
2021-11-16T02:24:37.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import spack import spack.store from spack import * class CbtfKrell(CMakePackage): """CBTF Krell project contains co...
40.422311
100
0.639858
732527a672e0d4dd983a441cf356c0a1cfd98124
15,878
py
Python
atomdb/base.py
codelv/atom-db
6ee50000aec0f1467679e830a2b62cf5f13ae62c
[ "MIT" ]
12
2019-02-22T08:02:41.000Z
2022-01-17T10:08:56.000Z
atomdb/base.py
codelv/atom-db
6ee50000aec0f1467679e830a2b62cf5f13ae62c
[ "MIT" ]
20
2019-03-12T02:06:16.000Z
2022-02-18T19:01:59.000Z
atomdb/base.py
codelv/atom-db
6ee50000aec0f1467679e830a2b62cf5f13ae62c
[ "MIT" ]
3
2019-09-10T14:24:47.000Z
2022-01-01T20:48:35.000Z
""" Copyright (c) 2018-2020, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file LICENSE.text, distributed with this software. Created on Jun 12, 2018 @author: jrm """ import os import logging import traceback from atom.api import ( Atom, Property, Instance, Dict, Str,...
31.194499
80
0.566759
7325359948c900742d0d98e3dc6821fa1a4b3ff2
654
py
Python
shelter/migrations/0003_auto_20200717_1605.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
1
2020-11-17T18:50:44.000Z
2020-11-17T18:50:44.000Z
shelter/migrations/0003_auto_20200717_1605.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
9
2020-10-23T18:42:45.000Z
2022-03-12T00:39:57.000Z
shelter/migrations/0003_auto_20200717_1605.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-07-17 16:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shelter', '0002_auto_20200717_1601'), ] operations = [ migrations.AlterField( model_name='animal', name='chip_number...
27.25
99
0.622324
73256bd71ed50de88cdcfcbeea2d69b5ae9f7d8a
13,674
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_extension_images_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 ...
39.520231
211
0.672517
7325798fd90d456b6e4ea0202611090090a47af2
2,553
py
Python
tests/testutil.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
7
2020-09-23T15:27:09.000Z
2022-03-20T19:31:41.000Z
tests/testutil.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
160
2020-07-06T17:58:35.000Z
2022-03-30T13:06:07.000Z
tests/testutil.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
10
2020-07-06T18:05:10.000Z
2022-03-12T21:20:11.000Z
from pathlib import Path from contextlib import contextmanager import sys import importlib import filecmp import difflib import pytest FIXTURES_PATH = Path(__file__).parent / 'fixtures' @contextmanager def context_for_test(app_name): """Provide a context in which a testing app is imported The module with t...
29.686047
85
0.647082
7325a5a2ab32b18f56f4ec06e3073a06a533a4b8
761
py
Python
test/rplugin/python3/remote/test_security.py
chipsenkbeil/vim-overthere
910e5f91019f5080322180f8608e2961eb471f86
[ "Apache-2.0" ]
null
null
null
test/rplugin/python3/remote/test_security.py
chipsenkbeil/vim-overthere
910e5f91019f5080322180f8608e2961eb471f86
[ "Apache-2.0" ]
9
2018-04-15T04:43:59.000Z
2018-04-28T16:30:00.000Z
test/rplugin/python3/remote/test_security.py
chipsenkbeil/remote.nvim
910e5f91019f5080322180f8608e2961eb471f86
[ "Apache-2.0" ]
null
null
null
# ============================================================================= # FILE: test_security.py # AUTHOR: Chip Senkbeil <chip.senkbeil at gmail.com> # License: Apache 2.0 License # ============================================================================= import pytest from remote.security import ( gen_...
31.708333
128
0.567674
7325a9f7ec110f1d077468415f1b972156f7feaa
4,579
py
Python
examples/stfba_example.py
eladnoor/stFBA
fbaefb48143a5f176aa3a7a9a63a9440ca18236e
[ "MIT" ]
null
null
null
examples/stfba_example.py
eladnoor/stFBA
fbaefb48143a5f176aa3a7a9a63a9440ca18236e
[ "MIT" ]
null
null
null
examples/stfba_example.py
eladnoor/stFBA
fbaefb48143a5f176aa3a7a9a63a9440ca18236e
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jan 4 12:07:00 2017 @author: noore """ from cobra.io.json import load_json_model from cobra import Metabolite, Reaction from stfba.find_energy_generating_cycle import stFBA from cobra.flux_analysis.loopless import construct_loopless_model from stfba im...
39.817391
72
0.646866
7325ad5dcc0e5e05450d48b6f237842404accac4
6,221
py
Python
modules/core/gis/marker.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/core/gis/marker.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/core/gis/marker.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Map Markers Copyright: (c) 2010-2022 Sahana Software Foundation 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 r...
37.70303
91
0.459894
7325ca4482ed677647c4c7a924e8b695a6084938
1,789
py
Python
software/camera-imu/old/view_cam3.py
MomsFriendlyRobotCompany/mjolnir
76f53e8e650ba1051b5f14e94ff2a9a283158da4
[ "MIT" ]
1
2020-08-17T04:36:14.000Z
2020-08-17T04:36:14.000Z
software/camera-imu/old/view_cam3.py
MomsFriendlyRobotCompany/mjolnir
76f53e8e650ba1051b5f14e94ff2a9a283158da4
[ "MIT" ]
null
null
null
software/camera-imu/old/view_cam3.py
MomsFriendlyRobotCompany/mjolnir
76f53e8e650ba1051b5f14e94ff2a9a283158da4
[ "MIT" ]
1
2021-04-06T08:26:03.000Z
2021-04-06T08:26:03.000Z
#!/usr/bin/env python3 import cv2 import pickle import numpy as np import time # method = cv2.optflow.calcOpticalFlowDenseRLOF # params = [] # method = cv2.calcOpticalFlowFarneback # params = [0.5, 3, 15, 3, 5, 1.2, 0] method = cv2.optflow.calcOpticalFlowSparseToDense params = [] hsv = np.zeros((480,640,3),dtype=n...
24.175676
69
0.611515
7325eefb56b06254a888e26667b633ea882c9c8e
7,310
py
Python
test/integration/ggrc/converters/test_export_assessments.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/converters/test_export_assessments.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
test/integration/ggrc/converters/test_export_assessments.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for task group task specific export.""" import datetime from ddt import data, ddt, unpack from ggrc import db from ggrc.models import all_models from integration.ggrc.models import factories from ...
31.782609
78
0.619973
7325f9ccec0f758f9a829bf5d9280c6403b385b9
2,978
py
Python
symneqsys/neqsys.py
bjodah/symneqsys
677307d6b94e452262f7ffe944ec2bed6314d34b
[ "BSD-2-Clause" ]
1
2015-01-10T09:00:04.000Z
2015-01-10T09:00:04.000Z
symneqsys/neqsys.py
bjodah/symneqsys
677307d6b94e452262f7ffe944ec2bed6314d34b
[ "BSD-2-Clause" ]
null
null
null
symneqsys/neqsys.py
bjodah/symneqsys
677307d6b94e452262f7ffe944ec2bed6314d34b
[ "BSD-2-Clause" ]
null
null
null
import sympy import numpy as np class NEQSys(object): """ `v`: list of variables (sympy.Symbol instances) `params`: list of parameters (sympy.Symbol instances) `exprs`: list of expressions (assumed equal to zero to be solved) Properties: `nx`: Number of unknown variables Methods: `fu...
30.387755
73
0.564809
732614f123732a9874c2d8ac29efe49b74ad8002
508
py
Python
myproject/common/tests/testcasecommonviews.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
3
2018-08-15T16:17:19.000Z
2020-01-13T22:20:49.000Z
myproject/common/tests/testcasecommonviews.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
45
2018-06-23T18:02:28.000Z
2021-08-25T14:46:12.000Z
myproject/common/tests/testcasecommonviews.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from myproject.auth.tests.helpers import userhelper __author__ = "Alex Laird" __copyright__ = "Copyright 2018, Alex Laird" __version__ = "0.2.0" class TestCaseCommonViews(TestCase): def test_home_view(self): # GIVEN userhelper.give...
24.190476
68
0.712598
73262398545a6c2740421f1a1c63ddbf7ff39bc1
1,669
py
Python
cnn2d/skp/etl/5_make_minivideo_df.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
48
2020-06-12T15:46:14.000Z
2022-03-19T16:02:05.000Z
cnn2d/skp/etl/5_make_minivideo_df.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
2
2020-11-11T10:40:49.000Z
2020-11-16T02:07:23.000Z
cnn2d/skp/etl/5_make_minivideo_df.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
17
2020-06-13T12:25:42.000Z
2021-11-22T14:49:26.000Z
import pandas as pd import numpy as np import glob import os, os.path as osp from tqdm import tqdm from helper import * ORIGINAL = '../../data/dfdc/videos/' VIDEODIR = '../../data/dfdc/mini-videos/' videos = glob.glob(osp.join(VIDEODIR, '*.mp4')) with open('../../data/dfdc/videos_to_use.txt') as f: cleaned_vid...
34.770833
89
0.680647
7326449150bd9de33009bcf39fa5ba344f05317c
6,446
py
Python
rally/task/sla.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
rally/task/sla.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
rally/task/sla.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2014: Mirantis 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 b...
32.23
79
0.622246
732654040676bffd570077867a8b66e246098d6b
3,986
py
Python
alipay/aop/api/request/AlipaySecurityProdMyGetchyQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipaySecurityProdMyGetchyQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipaySecurityProdMyGetchyQueryRequest.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.AlipaySecurityProdMyGetchyQueryModel import AlipaySecurityProdMyGetchyQueryModel class AlipaySecurityProdMyGetchyQueryRequest(object...
27.489655
148
0.64576
7326672f563f543eafd0dcab8a5e9c1ba6933fa2
2,552
py
Python
datawinners/project/migrations/0010_auto__del_field_reminder_voided.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/project/migrations/0010_auto__del_field_reminder_voided.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/project/migrations/0010_auto__del_field_reminder_voided.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Reminder.voided' db.delete_column('project_reminder', 'voided') def backwards(self...
50.039216
135
0.575235
732687d8797d7e6eb6c81013602795bcc69bec34
554
py
Python
py-polars/legacy/setup.py
g-logunov/polars
a4a8854cfd6aaa582719aca2e3874cdcf44a86ca
[ "MIT" ]
3,395
2021-05-06T13:46:12.000Z
2022-03-31T23:50:15.000Z
py-polars/legacy/setup.py
g-logunov/polars
a4a8854cfd6aaa582719aca2e3874cdcf44a86ca
[ "MIT" ]
1,253
2021-05-06T15:05:23.000Z
2022-03-31T23:31:23.000Z
py-polars/legacy/setup.py
g-logunov/polars
a4a8854cfd6aaa582719aca2e3874cdcf44a86ca
[ "MIT" ]
263
2021-05-08T07:37:45.000Z
2022-03-30T05:19:55.000Z
from os import path from setuptools import setup this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="py-polars", version="0.8.10", description="legacy version of polars", author="...
25.181818
73
0.703971
73269e370211993e53d0204324451e01cfc2b71c
19,450
py
Python
post_processing/PEMFC_Paraview_Plots.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
24
2016-10-04T20:49:55.000Z
2022-03-12T19:07:10.000Z
post_processing/PEMFC_Paraview_Plots.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
3
2016-09-05T10:17:36.000Z
2016-12-11T18:23:06.000Z
post_processing/PEMFC_Paraview_Plots.py
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
9
2016-12-11T22:15:03.000Z
2020-11-21T13:51:05.000Z
""" Simple Paraview script for creating batchs of contour plots. Work in progress, subject to a lot of change over November 2013 Works for vtk output from PEMFC app. To use edit the following 4 variables: fileName: the vtk to be proccessed exportDir: the location where the images will be placed (make sure the folder...
55.255682
349
0.752185
7326be3d838442e8ac35cd31fc474835b4770696
3,793
py
Python
hw4/cs285/infrastructure/replay_buffer.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
91
2020-06-13T16:26:42.000Z
2022-03-31T02:49:30.000Z
hw4/cs285/infrastructure/replay_buffer.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
8
2020-09-26T01:29:18.000Z
2022-02-10T02:07:53.000Z
hw4/cs285/infrastructure/replay_buffer.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
16
2020-08-04T01:17:45.000Z
2022-02-24T04:51:41.000Z
import numpy as np from cs285.infrastructure.utils import * class ReplayBuffer(object): def __init__(self, max_size=1000000): self.max_size = max_size self.paths = [] self.obs = None self.acs = None self.concatenated_rews = None self.unconcatenated_rews = None ...
45.698795
162
0.640917
7326c3145e80e74b0b8ba14e96d086adcb504862
2,558
py
Python
demo/face/utils/estimate_pose.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
demo/face/utils/estimate_pose.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
demo/face/utils/estimate_pose.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
# coding: UTF-8 from math import asin, atan2, cos, sin import numpy as np def isRotationMatrix(R): ''' checks if a matrix is a valid rotation matrix(whether orthogonal or not) ''' Rt = np.transpose(R) shouldBeIdentity = np.dot(Rt, R) I = np.identity(3, dtype=R.dtype) n = np.linalg.norm(I - s...
25.58
114
0.55043
7326d5f1608e8f4833adfa6639e199abf117f6d3
6,543
py
Python
bonneville/modules/smf.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/smf.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/smf.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Service support for Solaris 10 and 11, should work with other systems that use SMF also. (e.g. SmartOS) ''' __func_alias__ = { 'reload_': 'reload' } def __virtual__(): ''' Only work on systems which default to SMF ''' if 'Solaris' in __grains__['os_family']: # ...
21.737542
74
0.587498
73273de5d3e8d967eee483d6af56afd0101d0831
205
py
Python
CeLEry_package/CeLEryPy/__init__.py
QihuangZhang/CeLEry
f7ebce1f6326b1bb66de1924050afa1e6d9c2ffd
[ "MIT" ]
null
null
null
CeLEry_package/CeLEryPy/__init__.py
QihuangZhang/CeLEry
f7ebce1f6326b1bb66de1924050afa1e6d9c2ffd
[ "MIT" ]
null
null
null
CeLEry_package/CeLEryPy/__init__.py
QihuangZhang/CeLEry
f7ebce1f6326b1bb66de1924050afa1e6d9c2ffd
[ "MIT" ]
null
null
null
__version__ = '1.0.0' from . TrainerExe import * from . util import * from . datasetgenemap import * from . ClusterVAE import * from . DNN import * from . util_Mouse import * from . fit_functions import *
22.777778
30
0.721951
73274abea386d83a5234e496715e8b33809b7228
2,926
py
Python
2019/5/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/5/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/5/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
import sys from typing import List, Iterable from itertools import zip_longest INPUTS = [ # Output: 3500, 9, 10, 70, 2, 3, 11, 0, 99, 30, 40, 50 [1, 9, 10, 3, 2, 3, 11, 0, 99, 30, 40, 50], # Output: 2, 0, 0, 0, 99 [1, 0, 0, 0, 99], # Output: 2, 3, 0, 6, 99 [2, 3, 0, 3, 99], # Output: 2, 4,...
25.008547
70
0.484962
73274f3eae21f2c52bba5f832f057d87a69c5c2d
571
py
Python
http/databayes_api/config.py
rfaulkner/databayes
0dd7a030766eb1c4da410c81773afcc50e5d0810
[ "Apache-2.0" ]
4
2016-08-13T01:31:07.000Z
2021-03-07T14:39:48.000Z
http/databayes_api/config.py
rfaulkner/databayes
0dd7a030766eb1c4da410c81773afcc50e5d0810
[ "Apache-2.0" ]
69
2015-01-05T06:24:11.000Z
2015-12-10T21:34:51.000Z
http/databayes_api/config.py
rfaulkner/databayes
0dd7a030766eb1c4da410c81773afcc50e5d0810
[ "Apache-2.0" ]
null
null
null
__version__ = '0.0.1' LICENSE = "BSD (Three Clause)" AUTHORS = { 'Ryan Faulkner': 'bobs.ur.uncle@gmail.com'} ADMINS = { 'Ryan Faulkner': 'bobs.ur.uncle@gmail.com' } FLASK_LOG = '/var/log/flask.log' SITE_URL = 'http://databayes-api.com' DBY_CMD_QUEUE_PREFIX = 'dby_command_queue_' # Must match value in daemon.cpp DBY_...
27.190476
76
0.754816
732789624b1f2c9f8a1ab41fd868dd8345d67471
115
py
Python
pinax/apps/tasks/tests/tasks_urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/tasks/tests/tasks_urls.py
alex/pinax
37e17ee2e2eb0e387d8809c12e55c20194a7118a
[ "MIT" ]
null
null
null
pinax/apps/tasks/tests/tasks_urls.py
alex/pinax
37e17ee2e2eb0e387d8809c12e55c20194a7118a
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
from django.conf.urls.defaults import * urlpatterns = patterns("", url(r"^tasks/", include("tasks.urls")), )
16.428571
43
0.66087
73279c11d9483fd21c48cf4c9d58946ed6eda33e
303
py
Python
tests/mocks/argparse_mocks.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
tests/mocks/argparse_mocks.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
tests/mocks/argparse_mocks.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
MOCK_1 = [ { 'names': ['-t', '--this'], 'other': { 'action': 'store', 'default': 'hello' } } ] MOCK_2 = [ { 'names': ['-l', '--level'], 'other': { 'action': 'store', 'default': 'WARN' } } ]
15.15
35
0.290429
7327bff88a4d08a36028b5ee12d37bf30190ac6b
901
py
Python
setup.py
Parsely/python-solr
df0221cdcdd8a8be90fa5b001a9cdd88d253ece9
[ "MIT" ]
10
2018-02-04T10:08:31.000Z
2021-06-22T04:13:53.000Z
setup.py
Parsely/python-solr
df0221cdcdd8a8be90fa5b001a9cdd88d253ece9
[ "MIT" ]
null
null
null
setup.py
Parsely/python-solr
df0221cdcdd8a8be90fa5b001a9cdd88d253ece9
[ "MIT" ]
5
2016-02-14T09:08:41.000Z
2021-07-17T12:48:46.000Z
try: from setuptools import setup, find_packages except ImportError: import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "pythonsolr", version = "1.0", description = "Enhanced version of pysolr.", author = 'Andrew M...
32.178571
54
0.647059
7327c54beca0a31caff083f568fed7dd7f5ad013
34,621
py
Python
frappe/core/doctype/user/user.py
bopopescu/indictrans_frappe
2ae931b4b1d9cb2af9eb69c9276afb9755bfe31c
[ "MIT" ]
1
2019-07-04T13:33:49.000Z
2019-07-04T13:33:49.000Z
frappe/core/doctype/user/user.py
bopopescu/indictrans_frappe
2ae931b4b1d9cb2af9eb69c9276afb9755bfe31c
[ "MIT" ]
7
2020-03-24T18:15:04.000Z
2022-02-10T20:52:45.000Z
frappe/core/doctype/user/user.py
bopopescu/indictrans_frappe
2ae931b4b1d9cb2af9eb69c9276afb9755bfe31c
[ "MIT" ]
2
2019-07-12T06:29:20.000Z
2020-07-24T03:13:03.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals, print_function import frappe from frappe.model.document import Document from frappe.utils import cint, has_gravatar, format_datetime, now_datetime, get_formatted_email from frapp...
31.908756
213
0.722336
7327d8a34b228bdaa9f5bad58725d4d9dfee1405
3,428
py
Python
utils/adapt_fastap_loss.py
chrisbyd/TripletQuant
07d45905577d4429dcc7827e0c06bfcf6d6f5c99
[ "MIT" ]
null
null
null
utils/adapt_fastap_loss.py
chrisbyd/TripletQuant
07d45905577d4429dcc7827e0c06bfcf6d6f5c99
[ "MIT" ]
null
null
null
utils/adapt_fastap_loss.py
chrisbyd/TripletQuant
07d45905577d4429dcc7827e0c06bfcf6d6f5c99
[ "MIT" ]
null
null
null
import torch from . import common_functions as c_f def convert_to_weights(indices_tuple, labels, dtype): """ Returns a weight for each batch element, based on how many times they appear in indices_tuple. """ weights = torch.zeros(labels.shape[0], device=labels.device) weights = c_f.to_dtype(w...
36.860215
87
0.634189
7327f72cb09a78fa15def72058525a045c076fb3
47,864
py
Python
sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_operations_mixin.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_operations_mixin.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_operations_mixin.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
59.458385
140
0.718933
732800b6c58bdda9085f7ee01e1d0650c9551e8e
44
py
Python
app/etc/__init__.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
10
2019-03-22T07:07:41.000Z
2022-01-26T00:57:45.000Z
app/etc/__init__.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
70
2017-07-12T19:49:38.000Z
2020-09-02T10:03:28.000Z
app/etc/__init__.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
2
2017-06-30T07:13:39.000Z
2020-12-04T00:39:12.000Z
""" Initialization file for etc module. """
11
35
0.681818
73281c052afbd027125c10eb9dd3f80c1551a388
2,059
py
Python
dataflow/custom-containers/ubuntu/noxfile_config.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
dataflow/custom-containers/ubuntu/noxfile_config.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
dataflow/custom-containers/ubuntu/noxfile_config.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
44.76087
88
0.728995
7328295040947d16b3a7893239b3e7b165faabb3
1,316
py
Python
alipay/aop/api/response/AlipayFundTransEntrustCloseResponse.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/response/AlipayFundTransEntrustCloseResponse.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/response/AlipayFundTransEntrustCloseResponse.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.response.AlipayResponse import AlipayResponse class AlipayFundTransEntrustCloseResponse(AlipayResponse): def __init__(self): super(AlipayFundTransEntrustCloseResponse, self).__init__() self._entrust_order_id = None ...
28.608696
108
0.682371
73282d23244dc32a224fdb05a13417bfabefdd3f
7,168
py
Python
language-modeling/fast_transformers/masking.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
5
2021-11-06T16:10:31.000Z
2021-12-25T19:47:42.000Z
language-modeling/fast_transformers/masking.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
null
null
null
language-modeling/fast_transformers/masking.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
2
2021-11-30T03:36:54.000Z
2021-12-25T19:49:58.000Z
"""Create types of masks to be used in various places in transformers. - Full mask (any key masked for any query) - Length mask (masking out everything after a length) - Triangular causal mask (mask any key succeeding the query) All mask implementations should provide a single interface to be used by the transformer ...
35.661692
79
0.591936