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
74f0351682e04c360dd6df07e63414df8415acd6
3,208
py
Python
txweb2/dav/method/acl.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txweb2/dav/method/acl.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txweb2/dav/method/acl.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
# -*- test-case-name: txweb2.dav.test.test_lock -*- ## # Copyright (c) 2005-2015 Apple Inc. All rights reserved. # # 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, includi...
30.552381
80
0.696696
74f067c3bcff3dbf2c017fd62fea7ec147438729
4,143
py
Python
utils/energy.py
lim0606/pytorch-ardae-vae
52f460a90fa5822692031ab7dcca39fa9168988e
[ "MIT" ]
11
2020-06-11T03:01:46.000Z
2021-06-17T02:59:39.000Z
utils/energy.py
lim0606/pytorch-ardae-vae
52f460a90fa5822692031ab7dcca39fa9168988e
[ "MIT" ]
1
2020-06-18T00:59:24.000Z
2020-06-19T22:55:14.000Z
utils/energy.py
lim0606/pytorch-ardae-vae
52f460a90fa5822692031ab7dcca39fa9168988e
[ "MIT" ]
null
null
null
import math import torch EPS = 1e-9 def regularization_func(x): return (torch.relu(x.abs() - 6) ** 2).sum(-1, keepdim=True) def w1(z1): return torch.sin(2.*math.pi*z1/4.) def w2(z1): return 3.*torch.exp(-0.5*((z1-1)/0.6)**2) def w3(z1): return 3.*torch.sigmoid((z1-1.)/0.3) def energy_func1(x): ...
26.557692
104
0.570118
74f09c06ae9dee5bd02d4f711943563167d53e9a
1,617
py
Python
src/examples/unstable_mnist/pyfuzz_mnist.py
fabriceyhc/pyfuzz
67f8bd844f63139ca8f795b2bc6e30a419fa037e
[ "MIT" ]
null
null
null
src/examples/unstable_mnist/pyfuzz_mnist.py
fabriceyhc/pyfuzz
67f8bd844f63139ca8f795b2bc6e30a419fa037e
[ "MIT" ]
null
null
null
src/examples/unstable_mnist/pyfuzz_mnist.py
fabriceyhc/pyfuzz
67f8bd844f63139ca8f795b2bc6e30a419fa037e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 01/24/22 11:09 PM # @Author : Fabrice Harel-Canada # @File : pyfuzz_minist.py import sys import os sys.path.insert(1, os.path.abspath("../..")) import mnist as mnist from pyfuzz.fuzzers import * from pyfuzz.byte_mutations import * from pyfuzz.fuzz_data_...
25.265625
87
0.645022
74f0ae886efb335ba82c0c633e207cd672427787
1,088
py
Python
examples/import_data.py
solvebio/solvebio-python
d21a70d77eb58502d76ca8f402967a3c15dd7ce1
[ "MIT" ]
14
2015-01-07T15:31:00.000Z
2021-11-02T10:03:28.000Z
examples/import_data.py
solvebio/solvebio-python
d21a70d77eb58502d76ca8f402967a3c15dd7ce1
[ "MIT" ]
200
2015-01-26T17:12:21.000Z
2022-01-14T08:59:30.000Z
examples/import_data.py
solvebio/solvebio-python
d21a70d77eb58502d76ca8f402967a3c15dd7ce1
[ "MIT" ]
9
2015-02-18T22:49:28.000Z
2020-09-01T17:48:35.000Z
import solvebio solvebio.login() vault = solvebio.Vault.get_personal_vault() # The folders that will contain your dataset path = '/SampleImport/1.0.0' # The name of your dataset dataset_name = 'SampleDataset' # Create a dataset dataset = solvebio.Object.get_or_create_by_full_path( '{0}:/{1}/{2}'.format(vault.n...
20.528302
58
0.702206
74f0b74a27de876ac40d0c2032d12c78418da01b
25,920
py
Python
seq_des/util/data.py
Tpan1039-ui/protein_seq_des
2156963079371cff6c74c1d6e8106b113663dd61
[ "BSD-3-Clause" ]
30
2021-01-20T08:21:09.000Z
2022-03-28T23:16:56.000Z
seq_des/util/data.py
Tpan1039-ui/protein_seq_des
2156963079371cff6c74c1d6e8106b113663dd61
[ "BSD-3-Clause" ]
1
2021-08-05T22:51:00.000Z
2021-08-05T22:51:00.000Z
seq_des/util/data.py
Tpan1039-ui/protein_seq_des
2156963079371cff6c74c1d6e8106b113663dd61
[ "BSD-3-Clause" ]
7
2021-06-24T14:51:40.000Z
2022-03-21T03:52:26.000Z
import Bio.PDB import Bio.PDB.vectors import torch from torch.utils import data import torch.nn.functional as F import json import numpy as np import os import re import glob import common.atoms import seq_des.util.canonicalize as canonicalize import seq_des.util.voxelize as voxelize CHI_BINS = np.linspace(-np.pi,...
43.932203
233
0.563619
74f0de9d3890a8e233c0074eb43ce3965f1e18d7
603
py
Python
resource_processor/resources/statuses.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
resource_processor/resources/statuses.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
1
2022-02-21T09:43:20.000Z
2022-02-21T09:43:20.000Z
resource_processor/resources/statuses.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
from collections import defaultdict from resources import strings # Specify pass and fail status strings so we can return the right statuses to the api depending on the action type (with a default of custom action) failed_status_string_for = defaultdict(lambda: strings.RESOURCE_ACTION_STATUS_FAILED, { "install": ...
40.2
148
0.814262
74f0ec097a7561bf98b4484d5ec81a543bb4bfe7
1,439
py
Python
Part2/b_tree.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
Part2/b_tree.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
Part2/b_tree.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
import bsddb from DB import DB # BTree (Subclass of DB) class BTree(DB): def __init__(self, db_address): # Database="B_tree.db" # self.address=db.address #contains address to db file's location self.db = bsddb.btopen(db_address, 'c') DB.__init__(self, self.db, db_addres...
25.696429
73
0.564281
74f0fb1cdbb3edfe309c603788d6c8379722d0e9
16,421
py
Python
salt/__init__.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/__init__.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/__init__.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 -*- ''' Make me some salt! ''' # Import python libs import os import sys import warnings # All salt related deprecation warnings should be shown once each! warnings.filterwarnings( 'once', # Show once '', # No deprecation message match DeprecationWarning...
36.984234
83
0.508861
74f1016ce915687dd6bfb6752fdb1a507335bd5f
1,193
py
Python
image_versions/migrations/0001_initial.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
image_versions/migrations/0001_initial.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
image_versions/migrations/0001_initial.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-11-20 13:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='FocusPoint', fields=[ ('id', models.AutoFie...
38.483871
141
0.58005
74f10926cfd9d8bf9253e18b244e37c4554e8020
11,771
py
Python
VITAE/train.py
masterStormtrooper/VITAE-1
78111f2c1c6a0f89240666ca7542f155033dca27
[ "MIT" ]
16
2020-12-15T23:27:18.000Z
2022-01-13T05:53:33.000Z
VITAE/train.py
masterStormtrooper/VITAE-1
78111f2c1c6a0f89240666ca7542f155033dca27
[ "MIT" ]
3
2021-05-25T21:44:08.000Z
2021-06-04T03:20:44.000Z
VITAE/train.py
masterStormtrooper/VITAE-1
78111f2c1c6a0f89240666ca7542f155033dca27
[ "MIT" ]
5
2021-05-27T15:16:13.000Z
2021-11-09T10:50:01.000Z
# -*- coding: utf-8 -*- from typing import Optional from VITAE.utils import Early_Stopping, get_embedding import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.utils import Progbar def clear_session(): '''Clear Tensorflow sessions. ''' tf.keras.backend.clear_se...
42.189964
139
0.603262
74f127aecde2a6d08d0be24413d9e5305d3e8094
39,189
py
Python
report-modules-plugins.py
berndfinger/auto-maintenance
2d819cbbc6c5f92098e4d436fce0cc4d10a0fa1d
[ "MIT" ]
13
2020-09-13T19:52:32.000Z
2022-03-11T16:10:04.000Z
report-modules-plugins.py
berndfinger/auto-maintenance
2d819cbbc6c5f92098e4d436fce0cc4d10a0fa1d
[ "MIT" ]
74
2020-02-12T17:56:07.000Z
2022-03-29T14:01:48.000Z
report-modules-plugins.py
berndfinger/auto-maintenance
2d819cbbc6c5f92098e4d436fce0cc4d10a0fa1d
[ "MIT" ]
11
2020-03-04T15:47:30.000Z
2022-01-27T08:54:23.000Z
#!/usr/bin/env python import os import sys import logging import re from pathlib import Path import jinja2 import yaml import json import argparse from ansible.errors import AnsibleParserError from ansible.parsing.dataloader import DataLoader from ansible.parsing.mod_args import ModuleArgsParser from ansible.parsing....
35.401084
120
0.582715
74f145d70b14508ecd71a2e8479dfb53bc4012d3
18,074
py
Python
tests/models/validators/v2_1_2/jsd_08bd88834a68a2e6.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_08bd88834a68a2e6.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_08bd88834a68a2e6.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Create sensor test template data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 restrict...
26.462665
78
0.267843
74f14f4a24fc5662faac64ccd643089fc79a55ca
5,269
py
Python
city_scrapers/spiders/cook_board.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/spiders/cook_board.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/spiders/cook_board.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ All spiders should yield data shaped according to the Open Civic Data specification (http://docs.opencivicdata.org/en/latest/data/event.html). """ from datetime import datetime, timedelta from pytz import timezone from legistar.events import LegistarEventsScraper from city_scrapers.spider ...
30.633721
82
0.537104
74f1a6f3092058b0c5a7ed7d250ecc180503f088
78,924
py
Python
modules/s3/s3model.py
ConnerDavisCNU/eden
3e268523b80eee699307e1635e23722596dd9016
[ "MIT" ]
1
2021-09-10T00:14:54.000Z
2021-09-10T00:14:54.000Z
modules/s3/s3model.py
Timileyin5/eden
c5d749651101dabc06d7dea8e1d39544258f0d37
[ "MIT" ]
null
null
null
modules/s3/s3model.py
Timileyin5/eden
c5d749651101dabc06d7dea8e1d39544258f0d37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ S3 Data Model Extensions @copyright: 2009-2018 (c) Sahana Software Foundation @license: MIT 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 withou...
34.509838
102
0.462166
74f1bdb4d714e6a41a0d0f59d633c251968052fb
1,850
py
Python
narc/processors/proc_terse.py
nickrusso42518/narc
f79c21b24d7f5538d45a383763bbd6c6db966299
[ "BSD-3-Clause" ]
43
2019-12-21T20:06:28.000Z
2022-03-16T14:36:25.000Z
narc/processors/proc_terse.py
ccie59071/narc
f79c21b24d7f5538d45a383763bbd6c6db966299
[ "BSD-3-Clause" ]
27
2019-12-21T21:50:12.000Z
2021-01-27T15:59:38.000Z
narc/processors/proc_terse.py
ccie59071/narc
f79c21b24d7f5538d45a383763bbd6c6db966299
[ "BSD-3-Clause" ]
8
2020-04-10T20:10:22.000Z
2021-12-29T18:39:07.000Z
#!/usr/bin/env python """ Author: Nick Russo Purpose: A concrete processor that stores the packet-tracer results in a terse, text-based format. """ import xmltodict from narc.processors.proc_base import ProcBase class ProcTerse(ProcBase): """ Represents a processor object, inheriting from ProcBase, for ...
32.45614
81
0.595676
74f1f4b3f37807633dcdc3439f237774f0d5df35
1,710
py
Python
setup.py
javierobledo/SyntaxSemanticAnalysis
8ccdd36a0190c66b2cc5df5c2cf112bfa1c56914
[ "MIT" ]
null
null
null
setup.py
javierobledo/SyntaxSemanticAnalysis
8ccdd36a0190c66b2cc5df5c2cf112bfa1c56914
[ "MIT" ]
392
2017-01-10T19:16:14.000Z
2022-03-28T00:01:19.000Z
setup.py
javierobledo/syntaxsemanticanalysis
8ccdd36a0190c66b2cc5df5c2cf112bfa1c56914
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'Click>=6.0', 'beautifulsoup4==4.5.3', 'lxml' # TODO: put pa...
28.032787
75
0.633918
74f21c04eaea15d4ce1ae5b32436285a4bd365ce
3,961
py
Python
src/python/pants/bin/repro.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/bin/repro.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/bin/repro.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging impor...
39.61
94
0.691492
74f22f892d5edbe3ed5e15e0e0084cefa715312e
5,788
py
Python
rlkit/torch/ddpg/n3dpg.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/torch/ddpg/n3dpg.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/ddpg/n3dpg.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
from collections import OrderedDict import numpy as np import torch.optim as optim import torch.nn as nn import rlkit.torch.pytorch_util as ptu from rlkit.misc.eval_util import create_stats_ordered_dict from rlkit.torch.torch_rl_algorithm import TorchRLAlgorithm class N3DPG(TorchRLAlgorithm): """ Like DDPG ...
30.303665
99
0.581202
74f23dfb68f85b2241c072b9cd635f692c255093
1,232
py
Python
tests/testExporter.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
4
2020-11-14T20:19:55.000Z
2021-11-26T04:04:11.000Z
tests/testExporter.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
20
2020-03-31T11:34:35.000Z
2021-12-24T15:04:19.000Z
tests/testExporter.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
null
null
null
from unittest import TestCase from random import randint from os.path import exists from os import remove from tinydb_base.exporter import jsonExport, ymalExport from tinydb_base import DatabaseBase class TestDB(DatabaseBase): def __init__(self, file='ds.test.json', table=__name__, requiredKeys='title:int'): ...
22
86
0.590097
74f2574735f76203f86f19e7c4b98746a0f72bd7
4,961
py
Python
asposewordscloud/models/requests/update_fields_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/update_fields_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/update_fields_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="update_fields_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy #...
43.517544
170
0.64745
74f283dafeb7a49b0e51a513d5b20ad8fe0e6f37
13,364
py
Python
hw1/sol_clean.py
emtseng/cs6741
caf94f60c06e789ba467d946babe0f43b1f37b76
[ "MIT" ]
null
null
null
hw1/sol_clean.py
emtseng/cs6741
caf94f60c06e789ba467d946babe0f43b1f37b76
[ "MIT" ]
null
null
null
hw1/sol_clean.py
emtseng/cs6741
caf94f60c06e789ba467d946babe0f43b1f37b76
[ "MIT" ]
null
null
null
# Test accs # Baseline simple vec # 0.82 # python sol_clean.py --model NB # 0.793 # python sol_clean.py --model LR --gpu 0 --epochs 200 --lr 20 --bsz 512 --optim sgd # 0.80 # python sol_clean.py --model CBoW --gpu 0 --epochs 10 --lr 0.001 --bsz 512 --optim adam # 0.802 # python sol_clean.py --model CBoW --gpu 0 --epoch...
37.329609
98
0.598548
74f28e232e7904f564e4550b5d5f962b55d87bd5
14,491
py
Python
addons/mod_warn.py
jorgev259/Kurisu
1405617a2bec2cbe0b51f33d01a5b3a73bf8de15
[ "Apache-2.0" ]
null
null
null
addons/mod_warn.py
jorgev259/Kurisu
1405617a2bec2cbe0b51f33d01a5b3a73bf8de15
[ "Apache-2.0" ]
null
null
null
addons/mod_warn.py
jorgev259/Kurisu
1405617a2bec2cbe0b51f33d01a5b3a73bf8de15
[ "Apache-2.0" ]
1
2018-04-19T01:59:44.000Z
2018-04-19T01:59:44.000Z
import discord import json import time from discord.ext import commands from sys import argv class ModWarn: """ Warn commands. """ def __init__(self, bot): self.bot = bot print('Addon "{}" loaded'.format(self.__class__.__name__)) @commands.command(pass_context=True) async def w...
51.569395
244
0.580981
74f2943ef918cb25fd447ebf644e775b288f2dbf
464
py
Python
alipay/aop/api/response/AlipayAccountCashpoolStatusModifyResponse.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/AlipayAccountCashpoolStatusModifyResponse.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/AlipayAccountCashpoolStatusModifyResponse.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 AlipayAccountCashpoolStatusModifyResponse(AlipayResponse): def __init__(self): super(AlipayAccountCashpoolStatusModifyResponse, self).__init__() def parse_response_cont...
29
114
0.790948
74f2a27496596e89e5db3a3481478dba4f741ebd
1,630
py
Python
parboil/logging.py
jneug/parboil
ef12c98a7f577694e6a915070ab3a639257351ce
[ "MIT" ]
1
2021-03-09T20:09:48.000Z
2021-03-09T20:09:48.000Z
parboil/logging.py
jneug/parboil
ef12c98a7f577694e6a915070ab3a639257351ce
[ "MIT" ]
20
2021-03-02T14:24:46.000Z
2021-03-10T17:07:07.000Z
parboil/logging.py
jneug/parboil
ef12c98a7f577694e6a915070ab3a639257351ce
[ "MIT" ]
null
null
null
import logging import sys import typing as t from pathlib import Path DEV = 15 DEV_NAME = "DEV" def configure_logging( loglevel: t.Union[int, str] = logging.CRITICAL, logfile: t.Optional[t.Union[str, Path]] = None, debugfile: t.Optional[t.Union[str, Path]] = None, devfile: t.Optional[t.Union[str, Pat...
30.754717
65
0.682822
74f2bde42dd7e9d38edc3c41f7ebf51856939469
22,826
py
Python
habitat_baselines/rl/ddppo/policy/resnet_policy.py
NicoGrande/habitat-api
baafd1c13c95043d4b31b910ffe4ecc1579dd75a
[ "MIT" ]
null
null
null
habitat_baselines/rl/ddppo/policy/resnet_policy.py
NicoGrande/habitat-api
baafd1c13c95043d4b31b910ffe4ecc1579dd75a
[ "MIT" ]
null
null
null
habitat_baselines/rl/ddppo/policy/resnet_policy.py
NicoGrande/habitat-api
baafd1c13c95043d4b31b910ffe4ecc1579dd75a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np import torch import torch.jit import torch.nn as nn import torch.nn.functional as F from habitat_bas...
33.617084
156
0.568475
74f2bfb67bb1c0bf07d6e1e2a2f8e007ee285121
37,962
py
Python
html_layout.py
GreenAlgorithms/green-algorithms-tool
4839332a0f450bf51ef86c06347e6c8148588735
[ "CC-BY-4.0" ]
21
2020-08-30T13:07:15.000Z
2022-03-07T11:20:37.000Z
html_layout.py
GreenAlgorithms/green-algorithms-tool
4839332a0f450bf51ef86c06347e6c8148588735
[ "CC-BY-4.0" ]
13
2020-07-15T21:23:36.000Z
2022-02-17T11:13:14.000Z
html_layout.py
GreenAlgorithms/green-algorithms-tool
4839332a0f450bf51ef86c06347e6c8148588735
[ "CC-BY-4.0" ]
5
2020-09-24T11:21:08.000Z
2022-03-23T02:47:25.000Z
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State, ClientsideFunction import plotly.graph_objects as go import os def create_appLayout( platformType_options, coreModels_options, yesNo_options, image_dir...
39.750785
166
0.281202
74f2e2a9017ec330dcc0bca0d4ea04510c7e4b30
12,532
py
Python
trac/db/sqlite_backend.py
arielnetworks/trac
1a96a3c39961a8952358cb8c64ccf9e94079c26b
[ "BSD-3-Clause" ]
null
null
null
trac/db/sqlite_backend.py
arielnetworks/trac
1a96a3c39961a8952358cb8c64ccf9e94079c26b
[ "BSD-3-Clause" ]
null
null
null
trac/db/sqlite_backend.py
arielnetworks/trac
1a96a3c39961a8952358cb8c64ccf9e94079c26b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C)2005-2010 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.e...
35.301408
79
0.569023
74f2ec22ffaab1654e5cd38169258fb87d307ad4
14,029
py
Python
tensorflow/contrib/crf/python/kernel_tests/crf_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/crf/python/kernel_tests/crf_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/crf/python/kernel_tests/crf_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 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...
44.116352
80
0.633046
74f2f92413bcc01ee8210ec1fb670b69f37c235a
1,248
py
Python
experiments/2014-03-21-interp-GPSS-orig.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
experiments/2014-03-21-interp-GPSS-orig.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
experiments/2014-03-21-interp-GPSS-orig.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
Experiment(description='GPSS interpolation experiment', data_dir='../data/tsdlr_5050/', max_depth=10, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=2, jitter_sd=0.1, max_jobs=4...
36.705882
92
0.471154
74f31842613b2e7a606397d1a9d92710f12514b5
2,215
py
Python
zerver/lib/response.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
zerver/lib/response.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:20:54.000Z
2022-03-11T23:22:25.000Z
zerver/lib/response.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
from __future__ import absolute_import from django.http import HttpResponse, HttpResponseNotAllowed import ujson from typing import Optional, Any, Dict, List from six import text_type from zerver.lib.str_utils import force_bytes class HttpResponseUnauthorized(HttpResponse): status_code = 401 def __init__(s...
38.189655
83
0.672686
74f378fff8018129443ad542c1e6c015508a737a
1,272
py
Python
setup.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
18
2019-10-17T23:47:03.000Z
2022-03-28T14:37:02.000Z
setup.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
4
2020-08-18T20:02:03.000Z
2022-02-23T00:16:45.000Z
setup.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
8
2019-11-22T06:20:57.000Z
2021-11-08T20:32:57.000Z
from setuptools import setup, find_packages from setuptools.command.install import install entry_points = {'console_scripts': ['nuset_gui=NuSeT:main']} install_requires = \ [ "numpy", # newer numpy won't work with scikit-learn 0.13 "scikit-image~=0.15.0", # newer scikit-image don't have the `min_...
29.581395
126
0.657233
74f38e9df1077523608b2ab235cefb148f4351a3
3,268
py
Python
notebooks/queueing_theory/src/request_simulator.py
jolynch/python_performance_toolkit
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
5
2018-10-31T20:24:19.000Z
2019-05-01T04:17:51.000Z
notebooks/queueing_theory/src/request_simulator.py
jolynch/performance-analysis
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
null
null
null
notebooks/queueing_theory/src/request_simulator.py
jolynch/performance-analysis
c38abd5b75caf2fde9b6f8d4e0fea1af0411de27
[ "MIT" ]
1
2019-10-14T11:58:48.000Z
2019-10-14T11:58:48.000Z
import random from collections import namedtuple import numpy as np import simpy LatencyDatum = namedtuple( 'LatencyDatum', ('t_queued', 't_processing', 't_total') ) class RequestSimulator(object): """ Simulates a M/G/k process common in request processing (computing) :param worker_desc: A tuple of...
34.041667
79
0.638311
74f3ac1e07cf74ba421267ba4f4e56b5b12b8e7a
4,979
py
Python
convert_VAE_Simon2Xiaoyu.py
sleglaive/DVAE-speech
df3ab438d169a8f852b0450eebf0a9f3229f891f
[ "MIT" ]
null
null
null
convert_VAE_Simon2Xiaoyu.py
sleglaive/DVAE-speech
df3ab438d169a8f852b0450eebf0a9f3229f891f
[ "MIT" ]
null
null
null
convert_VAE_Simon2Xiaoyu.py
sleglaive/DVAE-speech
df3ab438d169a8f852b0450eebf0a9f3229f891f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 29 14:44:08 2021 @author: simon """ my_seed = 0 import numpy as np np.random.seed(my_seed) import torch torch.manual_seed(my_seed) import os import matplotlib.pyplot as plt import librosa import librosa.display sr = 16000 wlen_sec = 64e-3 # STFT ...
23.822967
144
0.736292
74f3af150f1ecd1c8949366654869ba5f4d58b9d
7,087
py
Python
oscar/apps/partner/strategy.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/partner/strategy.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/partner/strategy.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple from decimal import Decimal as D from . import availability, prices # A container for policies StockInfo = namedtuple('StockInfo', ['price', 'availability', 'stockrecord']) class Selector(object): """ Responsible for returning the appropriate strategy class for a given ...
31.497778
85
0.660928
74f3d0b2ae2e77f92df537036f9acf7417017b57
386
py
Python
terrascript/resource/rancher2.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/rancher2.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/rancher2.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/rancher2.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:25:37 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.resource.rancher2 # # instead of # # >>> import terrascript.resource.rancher.rancher2 # # This is only available for 'official' and 'partner...
25.733333
73
0.748705
74f3d9d9a5ec9101b2650bc34af9b20798d98e71
3,461
py
Python
city_scrapers/mixins/wayne_commission.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/mixins/wayne_commission.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/mixins/wayne_commission.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
# THIS IS JUST A MIXIN. IT MAY USE THINGS THAT ARE NOT ACTUALLY USABLE YET, # BUT IT WILL BE INTEGRATED INTO A REGULAR AGENCY SPIDER. # -*- coding: utf-8 -*- from datetime import datetime from dateutil.parser import parse as dateparse from urllib.parse import urljoin class Wayne_commission: timezone = 'America/D...
37.619565
93
0.573245
74f3f9004c05c3c1dc3bd4007f796f309a0eb971
24,204
py
Python
reikna/fft/fft.py
fjarri/reikna
171bf233664f5f7ec4f457e826e0b91849e91384
[ "MIT" ]
122
2015-05-01T12:42:34.000Z
2021-09-30T22:47:59.000Z
lib/python/reikna-0.7.5/reikna/fft/fft.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
42
2015-05-04T16:55:47.000Z
2021-09-18T04:53:34.000Z
lib/python/reikna-0.7.5/reikna/fft/fft.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
14
2015-05-01T19:22:52.000Z
2021-09-30T22:48:03.000Z
import numpy import reikna.helpers as helpers from reikna.core import Computation, Parameter, Annotation from reikna.cluda import functions import reikna.cluda.dtypes as dtypes from reikna.cluda import OutOfResourcesError from reikna.algorithms import PureParallel from reikna.transformations import copy TEMPLATE = he...
40.747475
100
0.655222
74f423b852ccc3707d9d4c3d66b423e8f820b294
11,608
py
Python
scripts/tracking/main_tracking.py
MaaaasayaK/Self-Supervised-Small-Soccer-Player-Detection-Tracking
96d87367afdf4cca8aeca3f32c313e8632c70fe4
[ "MIT" ]
1
2021-08-17T18:22:12.000Z
2021-08-17T18:22:12.000Z
scripts/tracking/main_tracking.py
cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking
a5d2d0c31a992919a270bd0e02379844196271f0
[ "MIT" ]
null
null
null
scripts/tracking/main_tracking.py
cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking
a5d2d0c31a992919a270bd0e02379844196271f0
[ "MIT" ]
1
2021-08-19T14:21:52.000Z
2021-08-19T14:21:52.000Z
import sys import torchvision import os import torch from tracking_utils import light_track from natsort import natsorted, ns import numpy as np from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser() parser.add_argument('--data_name', type=str, default='issia') parser.add...
50.912281
139
0.67419
74f424b700f1e3a079e13059591f5c5d3c447a08
134,435
py
Python
src/aks-preview/azext_aks_preview/decorator.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/decorator.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/decorator.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.441322
147
0.651884
74f49e5794b14c1ddb7c79a30d9cafd6536b6214
1,743
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/itertools_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/itertools_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2019-03-23T13:20:27.000Z
2021-09-28T01:45:04.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/itertools_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT # The MIT License (MIT) # # Copyright (c) 2019 Dave Astels for Adafruit Industries # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "S...
34.176471
83
0.77969
74f4f29b280ff83fc32d5ea67f07949fb785a5fb
9,358
py
Python
hs_file_types/models/fileset.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_file_types/models/fileset.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_file_types/models/fileset.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
import logging import os from django.db import models from hs_core.models import ResourceFile from .base import AbstractLogicalFile, FileTypeContext, NestedLogicalFileMixin from .generic import GenericFileMetaDataMixin class FileSetMetaData(GenericFileMetaDataMixin): pass class FileSetLogicalFile(NestedLogica...
42.153153
116
0.669374
74f5279edb1c04dc51df780e2acfec997465dfe0
1,450
py
Python
src/olympia/landfill/management/commands/generate_themes.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10
2018-08-16T04:55:06.000Z
2022-01-08T16:09:39.000Z
src/olympia/landfill/management/commands/generate_themes.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/landfill/management/commands/generate_themes.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
12
2018-08-01T16:46:09.000Z
2022-01-08T16:09:46.000Z
from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django.utils import translation from olympia.landfill.generators import generate_themes class Command(BaseCommand): """ Generate example themes for development/testing purpose. Themes will have 1 prev...
32.222222
73
0.66
74f548e1f6620231a46d56397b1aa6fdcacc18cf
2,566
py
Python
scikinC/FunctionTransformerConverter.py
landerlini/scikinC
c408e2b63a32eecefc514193a4483b9d95b8d0fa
[ "MIT" ]
null
null
null
scikinC/FunctionTransformerConverter.py
landerlini/scikinC
c408e2b63a32eecefc514193a4483b9d95b8d0fa
[ "MIT" ]
2
2021-07-30T16:30:23.000Z
2021-09-15T07:27:38.000Z
scikinC/FunctionTransformerConverter.py
landerlini/scikinC
c408e2b63a32eecefc514193a4483b9d95b8d0fa
[ "MIT" ]
null
null
null
import numpy as np from scikinC import BaseConverter from ._tools import array2c class FunctionTransformerConverter (BaseConverter): def convert(self, model, name=None): lines = self.header() if not hasattr(model, 'n_features_in_'): raise NotImplementedError( "Conversion requires its n_fea...
26.183673
107
0.562744
74f5553b70f7c5cbf5dca13cc793eca7d5169079
1,717
py
Python
server/visualize/__init__.py
TDDD96-Kandidatgrupp-1-2020/Visual1ze
84579b7d05343e8be9123e92fc606a967d5714c8
[ "MIT" ]
6
2020-05-25T13:30:55.000Z
2021-11-08T13:00:01.000Z
server/visualize/__init__.py
matheus-bernat/Visual1ze
84579b7d05343e8be9123e92fc606a967d5714c8
[ "MIT" ]
null
null
null
server/visualize/__init__.py
matheus-bernat/Visual1ze
84579b7d05343e8be9123e92fc606a967d5714c8
[ "MIT" ]
1
2021-03-30T14:38:40.000Z
2021-03-30T14:38:40.000Z
import os from cerberus import Validator from flask import Flask from flask_cors import CORS from flask_jwt_extended import JWTManager from visualize.models import db, bcrypt, blacklist jwt = JWTManager() validator = Validator() validator.require_all = True @jwt.token_in_blacklist_loader def check_if_token_in_blac...
27.693548
63
0.784508
74f561c0771c2ce4726d8ef34c189238a4fd5107
638
py
Python
Code/BackPropoagation/backProp.py
Aneruth/Pytorch_Learning
d9c1ff00bb0c7761d1ebc06114498cd0932173ef
[ "MIT" ]
null
null
null
Code/BackPropoagation/backProp.py
Aneruth/Pytorch_Learning
d9c1ff00bb0c7761d1ebc06114498cd0932173ef
[ "MIT" ]
null
null
null
Code/BackPropoagation/backProp.py
Aneruth/Pytorch_Learning
d9c1ff00bb0c7761d1ebc06114498cd0932173ef
[ "MIT" ]
null
null
null
import torch,math x = torch.linspace(-math.pi, math.pi, 2000) y = torch.sin(x) w = torch.tensor(1.0,requires_grad=True) # Forward pass to compute the loss y_hat = w * x # If our values are scalar use .pow(2).sum() else .pow(2) loss = (y_hat - y).pow(2).sum() print(loss) # backward pass loss.backward() # Gradient ...
22
57
0.659875
74f5740c85e38eeac94e02f34b755b463de31fb1
683
py
Python
src/calculate_r_karma.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/calculate_r_karma.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/calculate_r_karma.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # reddit-reliability import praw import pprint import reddit_util def main(): r = praw.Reddit(user_agent=reddit_util.get_user_agent()) usernames = reddit_util.get_N_random_users(from_file=True) for user_name in usernames: print(user_name) user = r.get_redditor(use...
21.34375
67
0.66325
74f594cd7b32799dfe7cc84b82efe3342f4f41ca
14,863
py
Python
trac/db_default.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/db_default.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/db_default.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2020 Edgewall Software # Copyright (C) 2003-2005 Daniel Lundin <daniel@edgewall.com> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http...
34.971765
79
0.549149
74f5cac0f4deecbedc38985ea51001d860fc53b7
5,642
py
Python
cosmo/monitor_helpers.py
check-spelling/cosmo
2032aa0120f76f429faf6125a303829fab521058
[ "BSD-3-Clause" ]
4
2018-06-21T14:42:19.000Z
2021-12-27T10:24:29.000Z
cosmo/monitor_helpers.py
check-spelling/cosmo
2032aa0120f76f429faf6125a303829fab521058
[ "BSD-3-Clause" ]
172
2016-12-14T18:51:17.000Z
2021-12-28T11:53:44.000Z
cosmo/monitor_helpers.py
check-spelling/cosmo
2032aa0120f76f429faf6125a303829fab521058
[ "BSD-3-Clause" ]
8
2017-02-10T02:56:34.000Z
2021-12-27T04:20:47.000Z
import pandas as pd import numpy as np import datetime from itertools import repeat from astropy.time import Time, TimeDelta from typing import Union, Tuple, Sequence, List def convert_day_of_year(date: Union[float, str]) -> Time: """Convert day of the year (defined as yyyy.ddd where ddd is the day number of tha...
40.3
120
0.666253
74f5dcfb29d7751ce81fb07e1bce585a6d1654ef
4,683
py
Python
conda/cli/main_list.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
conda/cli/main_list.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
conda/cli/main_list.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals import logging from os.path import isdir, isfile import re from .common import disp_features, stdout_json from ..base.constants import D...
32.748252
111
0.633995
74f5ee2e90d3d146ffc2b4e9c5611e2aec80dc2c
4,319
py
Python
sdks/python/appcenter_sdk/models/LinkAADtoUserRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/LinkAADtoUserRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/LinkAADtoUserRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class LinkAADtoUserR...
29.182432
100
0.586247
74f5f52508461a45c68b2d226f2a34c70cc62b4c
17,135
py
Python
AutomatedTesting/Gem/PythonTests/Atom/tests/hydra_AtomEditorComponents_MaterialAdded.py
Jackerty/o3de
f521a288cf020d166949c1dc243c4938539b5244
[ "Apache-2.0", "MIT" ]
1
2022-03-28T08:06:58.000Z
2022-03-28T08:06:58.000Z
AutomatedTesting/Gem/PythonTests/Atom/tests/hydra_AtomEditorComponents_MaterialAdded.py
Jackerty/o3de
f521a288cf020d166949c1dc243c4938539b5244
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Atom/tests/hydra_AtomEditorComponents_MaterialAdded.py
Jackerty/o3de
f521a288cf020d166949c1dc243c4938539b5244
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ class Tests: creation_undo = ( "UNDO Entity creation success", "P0: UNDO Entity creation fa...
48.267606
119
0.702947
74f62241d800fb423fb6da96b3d657229111b9a7
698
py
Python
moto/autoscaling/exceptions.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
moto/autoscaling/exceptions.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
moto/autoscaling/exceptions.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals from moto.core.exceptions import RESTError class AutoscalingClientError(RESTError): code = 400 class ResourceContentionError(RESTError): code = 500 def __init__(self): super(ResourceContentionError, self).__init__( "ResourceContentionError", ...
27.92
128
0.697708
74f624bc33c7d85c702d1aadd992bb446e4a87e2
23,798
py
Python
homeassistant/components/httpinterface/__init__.py
Cribstone/home-assistant
328b9a84c0169c8067f2aa8d07392519de8a5e35
[ "MIT" ]
1
2022-01-09T18:02:24.000Z
2022-01-09T18:02:24.000Z
homeassistant/components/httpinterface/__init__.py
Cribstone/home-assistant
328b9a84c0169c8067f2aa8d07392519de8a5e35
[ "MIT" ]
null
null
null
homeassistant/components/httpinterface/__init__.py
Cribstone/home-assistant
328b9a84c0169c8067f2aa8d07392519de8a5e35
[ "MIT" ]
null
null
null
""" homeassistant.components.httpinterface ~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides an API and a HTTP interface for debug purposes. By default it will run on port 8123. All API calls have to be accompanied by an 'api_password' parameter and will return JSON. If successful calls will return status code 200 or...
34.241727
79
0.542399
74f6307d6a4741a572dcdadba9c021fc6dd212db
2,479
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/webhook_update_parameters_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/webhook_update_parameters_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/webhook_update_parameters_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "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 ...
43.491228
143
0.637354
74f67955eda00702ad2da8eff95051aef9ce0b48
2,532
py
Python
src/SpiderPi/CameraCalibration/Calibration.py
peteh/spiderpi
19c4e254979a756acb641b67e944568c7c79520c
[ "MIT" ]
null
null
null
src/SpiderPi/CameraCalibration/Calibration.py
peteh/spiderpi
19c4e254979a756acb641b67e944568c7c79520c
[ "MIT" ]
null
null
null
src/SpiderPi/CameraCalibration/Calibration.py
peteh/spiderpi
19c4e254979a756acb641b67e944568c7c79520c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding:utf-8 import cv2 import glob import numpy as np from CalibrationConfig import * # Start calibration, press any key to close the final image display. # termination criteria criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) # prepare object points, like (0,0,0...
32.461538
101
0.703397
74f67ff81e4e7a767be15ca62ba5fc83cfc371e1
33,864
py
Python
uplexa/wordlists/russian.py
QuantumLeaper/uplexa-python
7382e1bbcf757f4852ef8238c9385ccda339147f
[ "BSD-3-Clause" ]
2
2019-09-04T17:06:02.000Z
2020-10-19T02:22:46.000Z
uplexa/wordlists/russian.py
uPlexa/uplexa-python
e0074d7fb778a5fe150baf9a6badb3c2fc20afbb
[ "BSD-3-Clause" ]
1
2021-07-17T22:30:15.000Z
2021-07-17T22:30:15.000Z
uplexa/wordlists/russian.py
QuantumLeaper/uplexa-python
7382e1bbcf757f4852ef8238c9385ccda339147f
[ "BSD-3-Clause" ]
1
2019-03-05T17:52:36.000Z
2019-03-05T17:52:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Word list originally created by dabura667 and released under The MIT License (MIT) # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to dea...
19.978761
89
0.402433
74f684d40289f91c5c6694337c14fa8336d8bb94
5,218
py
Python
config.py
fkthereality/tests-todomvc
7dc0f21d6a2ea5b76fe718ff59982f860b45abff
[ "MIT" ]
null
null
null
config.py
fkthereality/tests-todomvc
7dc0f21d6a2ea5b76fe718ff59982f860b45abff
[ "MIT" ]
null
null
null
config.py
fkthereality/tests-todomvc
7dc0f21d6a2ea5b76fe718ff59982f860b45abff
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2015-2021 Iakiv Kramarenko # # 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, modif...
33.448718
152
0.699693
74f697a17a596a0fb320a4ac1a7b8fbb5e12a23b
6,408
py
Python
rlkit/launchers/experiments/soroush/multiworld_her.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/launchers/experiments/soroush/multiworld_her.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/launchers/experiments/soroush/multiworld_her.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.torch.pytorch_util as ptu from multiworld.core.flat_goal_env import FlatGoalEnv from rlkit.data_management.obs_dict_replay_buffer import \ ObsDictRelabelingBuffer from rlkit.envs.multitask.multitask_env import \ MultitaskEnvToSilentMultitaskEnv, MultiTaskHistoryEnv from rlkit.envs.wrappers import N...
33.030928
75
0.660893
74f6bccc62eb223cee5e322fa357562965314482
3,470
py
Python
bonneville/modules/layman.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/layman.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/layman.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Support for Layman ''' import bonneville.utils def __virtual__(): ''' Only work on Gentoo systems with layman installed ''' if __grains__['os'] == 'Gentoo' and bonneville.utils.which('layman'): return 'layman' return False def _get_makeconf(): ''' Fin...
26.899225
78
0.636888
74f6bfd5c696dd6c89957b0c1172d2baabe05b1a
3,491
py
Python
tensorflow/contrib/learn/python/learn/tests/dataframe/reader_source_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/contrib/learn/python/learn/tests/dataframe/reader_source_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
5
2017-02-21T08:37:52.000Z
2017-03-29T05:46:05.000Z
tensorflow/contrib/learn/python/learn/tests/dataframe/reader_source_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
10
2017-02-08T21:39:27.000Z
2018-10-04T17:34:54.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.364583
90
0.719851
74f6c7a0aefc7cdbbe53cde5acf73c3bfee83299
34
py
Python
plastering/inferencers/algorithm/GeneticAlgorithm/colocation/tasks/search_every_pair.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
null
null
null
plastering/inferencers/algorithm/GeneticAlgorithm/colocation/tasks/search_every_pair.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
null
null
null
plastering/inferencers/algorithm/GeneticAlgorithm/colocation/tasks/search_every_pair.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
null
null
null
"""Search every pair of rooms """
11.333333
29
0.647059
74f6f1b932c7478528a2dfeb2433e211dadff888
66,060
py
Python
test/expected/turtles/src/ros_pb2_grpc.py
azazdeaz/ros-grpc-wrapper
8438ed371630294f3845cd238958103041f233de
[ "MIT" ]
18
2020-09-10T06:03:32.000Z
2022-03-14T14:05:17.000Z
test/expected/turtles/src/ros_pb2_grpc.py
azazdeaz/ros-grpc-wrapper
8438ed371630294f3845cd238958103041f233de
[ "MIT" ]
1
2021-08-24T09:41:42.000Z
2021-08-24T09:41:42.000Z
test/expected/turtles/src/ros_pb2_grpc.py
azazdeaz/ros-grpc-wrapper
8438ed371630294f3845cd238958103041f233de
[ "MIT" ]
3
2021-02-21T04:19:21.000Z
2021-11-12T06:24:37.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import ros_pb2 as ros__pb2 class rosoutStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): ...
37.987349
104
0.652483
74f71ac47be190717981ac8855e5d2f7fab6c146
128
py
Python
tql/spark/utils/__init__.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/spark/utils/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/spark/utils/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- """ __title__ = '__init__.py' __author__ = 'JieYuan' __mtime__ = '2019-05-17' """
14.222222
25
0.609375
74f759fa7760a8659b62572d9b8d2319e4a28975
1,555
py
Python
examples/algorithms/clustering_comparisons.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
null
null
null
examples/algorithms/clustering_comparisons.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
1
2015-09-09T07:49:57.000Z
2015-09-25T01:50:40.000Z
examples/algorithms/clustering_comparisons.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Simple demo that partitions a smooth field into 10 clusters. In most cases, Ward's clustering behaves best. Requires matplotlib Author: Bertrand Thirion, 2009 """ print __doc__ ...
28.272727
78
0.707395
74f78d4c02e3bb940c4c714c89514ac074c1c512
788
py
Python
examples/structured/european_soccer.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
48
2019-11-23T17:39:42.000Z
2022-02-11T16:38:12.000Z
examples/structured/european_soccer.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
5
2019-11-30T14:20:18.000Z
2019-12-10T12:07:54.000Z
examples/structured/european_soccer.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
6
2019-11-30T15:44:43.000Z
2022-02-11T16:38:14.000Z
# Copyright 2019 Omkar Prabhu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
32.833333
74
0.769036
74f7d972173c741653768bbb11a6ac4ef52d35d3
8,410
py
Python
agentnet/utils/clone.py
mraihan19/AgentNet
240b7ac351d5c7a156a6c9c25432d5a7afffe3cc
[ "MIT" ]
null
null
null
agentnet/utils/clone.py
mraihan19/AgentNet
240b7ac351d5c7a156a6c9c25432d5a7afffe3cc
[ "MIT" ]
null
null
null
agentnet/utils/clone.py
mraihan19/AgentNet
240b7ac351d5c7a156a6c9c25432d5a7afffe3cc
[ "MIT" ]
null
null
null
""" Utility functions that can clone lasagne network layers in a custom way. [Will be] used for: - target networks, e.g. older copies of NN used for reference Qvalues. - DPG-like methods where critic has to process both optimal and actual actions """ import lasagne from .format import check_list,check_ordered_dict fro...
51.91358
126
0.70107
74f877c388b09bb9bc7d72236206c8d8d263307c
8,073
py
Python
unibe/__init__.py
TheNCuber/mensa
f77781762e930857f472ba14c8358fc68bf1c58f
[ "MIT" ]
3
2021-12-16T21:44:52.000Z
2022-02-25T10:19:21.000Z
unibe/__init__.py
TheNCuber/mensa
f77781762e930857f472ba14c8358fc68bf1c58f
[ "MIT" ]
null
null
null
unibe/__init__.py
TheNCuber/mensa
f77781762e930857f472ba14c8358fc68bf1c58f
[ "MIT" ]
null
null
null
import sys import os import json import logging import urllib import re import requests import html try: from version import __version__, useragentname, useragentcomment from util import StyledLazyBuilder except ModuleNotFoundError: include = os.path.relpath(os.path.join(os.path.dirname(__file__), '..')) ...
40.979695
235
0.518023
74f879fa46748c6c8023573f1cadc305fd88bfd8
683
py
Python
tests/test_cindex.py
jpathak/SublimeYetAnotherCodeSearch
262192067efbabd1ca806a6aa3cc06d172b25dbc
[ "MIT" ]
2
2018-07-24T14:09:36.000Z
2019-02-01T17:20:03.000Z
tests/test_cindex.py
jpathak/SublimeYetAnotherCodeSearch
262192067efbabd1ca806a6aa3cc06d172b25dbc
[ "MIT" ]
null
null
null
tests/test_cindex.py
jpathak/SublimeYetAnotherCodeSearch
262192067efbabd1ca806a6aa3cc06d172b25dbc
[ "MIT" ]
1
2018-07-24T14:09:50.000Z
2018-07-24T14:09:50.000Z
import os.path import shutil import time from YetAnotherCodeSearch.tests import CommandTestCase class CindexCommandTest(CommandTestCase): def test_cindex_exists(self): self.assertIsNotNone(shutil.which('cindex')) def test_cindex(self): self.window.run_command('cindex', {'index_project': Tru...
29.695652
75
0.654466
74f87d169d407adbcace3b3a26324942a8e865a6
660
py
Python
spacex_api/users/tests/test_urls.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
spacex_api/users/tests/test_urls.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
spacex_api/users/tests/test_urls.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
import pytest from django.urls import resolve, reverse from spacex_api.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert resolve(f"/users/{us...
26.4
74
0.677273
74f886408cf21e990f8fb4e7bb18b2db824fff9d
52
py
Python
sqlglot/constants.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
sqlglot/constants.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
sqlglot/constants.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
FORMAT = "FORMAT" PARTITIONED_BY = "PARTITIONED_BY"
17.333333
33
0.769231
74f8929cb58b94a33449bd24f4ba3a24d6067ec7
366
py
Python
Python etc/BA1L.py
Tritium13/Bioinformatik
fa16a0e02347e7d4e763ab471943b4e9bc58f1cc
[ "Unlicense" ]
null
null
null
Python etc/BA1L.py
Tritium13/Bioinformatik
fa16a0e02347e7d4e763ab471943b4e9bc58f1cc
[ "Unlicense" ]
null
null
null
Python etc/BA1L.py
Tritium13/Bioinformatik
fa16a0e02347e7d4e763ab471943b4e9bc58f1cc
[ "Unlicense" ]
null
null
null
# Implement Pattern to Number (Rosalind BA1L) text = str(input("Input sequence: ")) text = str.upper(text) sym_to_num = {"A": 0, "C": 1, "G": 2, "T": 3} def pattern_to_number(pattern): if not pattern: return 0 return 4 * pattern_to_number(pattern[:-1]) + sym_to_num[pattern[-1]] if __name__ == "...
18.3
72
0.642077
74f8c4fbc4b13b46394b4705bb803076d03717d8
1,391
py
Python
modulo 4/billetes-recursion-03.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
modulo 4/billetes-recursion-03.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
modulo 4/billetes-recursion-03.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Solución para el Ejercicio 7 (opcional) "billetes" del Módulo 5 (funciones) # Solución con recursión (como se pedía) def combinations(search, result=None): if result is None: # primera invocación, tomar un valor vacío para empezar result = [] ...
33.926829
100
0.652049
74f8c5e6223052321c62638bfe8332d3b49c59e9
251
py
Python
wsgi/hornbook/manage.py
pz325/hornbook
eff8dd71474e64ed6acb7a2eaaa90cff72daef1f
[ "Artistic-2.0" ]
null
null
null
wsgi/hornbook/manage.py
pz325/hornbook
eff8dd71474e64ed6acb7a2eaaa90cff72daef1f
[ "Artistic-2.0" ]
null
null
null
wsgi/hornbook/manage.py
pz325/hornbook
eff8dd71474e64ed6acb7a2eaaa90cff72daef1f
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hornbook.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.818182
72
0.772908
74f8d2cd4e039770f5887bd7332f8686601e6196
97,456
py
Python
test/unit/obj/test_diskfile.py
Nexenta/swift
56d07fc7661812b284d57121a554cf32a6fd9874
[ "Apache-2.0" ]
null
null
null
test/unit/obj/test_diskfile.py
Nexenta/swift
56d07fc7661812b284d57121a554cf32a6fd9874
[ "Apache-2.0" ]
null
null
null
test/unit/obj/test_diskfile.py
Nexenta/swift
56d07fc7661812b284d57121a554cf32a6fd9874
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8 -*- # Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
42.538629
79
0.582253
74f8dccf9c7e07405092d089e3952fd5f62775cd
107
py
Python
diogenes/grid_search/__init__.py
dssg/diogenes
52eda2a7adb22044e82779d05f91c927c1b95f3f
[ "MIT" ]
21
2015-09-28T15:04:53.000Z
2017-11-19T22:21:31.000Z
diogenes/grid_search/__init__.py
dssg/diogenes
52eda2a7adb22044e82779d05f91c927c1b95f3f
[ "MIT" ]
28
2015-09-27T09:51:12.000Z
2021-11-08T17:26:39.000Z
diogenes/grid_search/__init__.py
dssg/diogenes
52eda2a7adb22044e82779d05f91c927c1b95f3f
[ "MIT" ]
10
2015-11-21T19:50:14.000Z
2018-05-21T16:16:25.000Z
from experiment import * from standard_clfs import * from partition_iterator import * from subset import *
21.4
32
0.813084
74f8dfcba3fb15a7868581318356efc1a955ab87
753
py
Python
app/checkout_frontend/app.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/checkout_frontend/app.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/checkout_frontend/app.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
from checkout_backend.adapters.django.cart_repository import DjangoCartRepository from checkout_backend.adapters.django.offer_repository import DjangoOfferRepository from checkout_backend.adapters.django.product_repository import DjangoProductRepository from checkout_backend.uses_cases.checkout import Checkout class ...
34.227273
87
0.776892
74f8ed4337656bad441a043bc2236ba49901b14e
4,176
py
Python
modules/encoders/enc_resnet_v2.py
tom-pelsmaeker/vae-lagging-encoder
b190239019a94c85858d188a0853886eb48ce4be
[ "MIT" ]
null
null
null
modules/encoders/enc_resnet_v2.py
tom-pelsmaeker/vae-lagging-encoder
b190239019a94c85858d188a0853886eb48ce4be
[ "MIT" ]
null
null
null
modules/encoders/enc_resnet_v2.py
tom-pelsmaeker/vae-lagging-encoder
b190239019a94c85858d188a0853886eb48ce4be
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from .encoder import GaussianEncoderBase """ A better ResNet baseline """ def conv3x3(in_planes, out_planes, stride=1): "3x3 convolution with padding" return nn.Conv2d(in_planes, out_planes, ...
32.625
82
0.582615
74f90c82ace3c46ae144443e41681278b782fe7c
1,144
py
Python
NamedDict/nameddict.py
seamile/Weeds
8b05174ca26b8aa7cc79653ccb7d483bc58f0ed1
[ "MIT" ]
9
2017-11-18T06:44:43.000Z
2018-08-25T11:14:53.000Z
NamedDict/nameddict.py
seamile/Weeds
8b05174ca26b8aa7cc79653ccb7d483bc58f0ed1
[ "MIT" ]
null
null
null
NamedDict/nameddict.py
seamile/Weeds
8b05174ca26b8aa7cc79653ccb7d483bc58f0ed1
[ "MIT" ]
3
2017-11-18T06:45:53.000Z
2017-12-26T14:53:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' 类似 namedtuple, 可控制属性是否只读。参考OrderDict ''' from new import classobj def nameddict(typename, field_names, readonly=True): """Returns a new subclass of dict with named fields. >>> Point = nameddict('Point', ['x', 'y']) >>> Point.__doc__ #...
29.333333
99
0.492133
74f95178e8cdc0190040488f06088acc9b563515
1,207
py
Python
test/test_user_agent_validate_request.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
3
2018-06-23T21:37:21.000Z
2020-04-20T23:07:36.000Z
test/test_user_agent_validate_request.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
1
2019-02-04T17:03:35.000Z
2019-03-02T20:16:52.000Z
test/test_user_agent_validate_request.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
2
2019-03-21T15:54:15.000Z
2020-05-27T17:30:43.000Z
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
29.439024
240
0.750621
74f958a7cf69ffe96237956b20fe0d2ab47417b8
1,977
py
Python
photoshop/api/__init__.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
17
2019-03-01T12:09:37.000Z
2020-04-09T14:14:59.000Z
photoshop/api/__init__.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
7
2019-04-28T15:20:27.000Z
2020-04-07T19:14:47.000Z
photoshop/api/__init__.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
3
2020-02-28T14:27:11.000Z
2020-04-01T16:12:40.000Z
"""Python API for Photoshop.""" # Import local modules from photoshop.api import constants from photoshop.api.action_descriptor import ActionDescriptor from photoshop.api.action_list import ActionList from photoshop.api.action_reference import ActionReference from photoshop.api.application import Application from phot...
32.95
62
0.796662
74f982890f86273b1a1e09454064dd99f069328e
15,851
py
Python
astrorapid/ANTARES_object/LAobject.py
kponder/astrorapid
91053af8049724a07d1f55baf4e1f60fc36b1101
[ "MIT" ]
12
2019-01-15T19:40:11.000Z
2020-12-17T11:36:18.000Z
astrorapid/ANTARES_object/LAobject.py
kponder/astrorapid
91053af8049724a07d1f55baf4e1f60fc36b1101
[ "MIT" ]
9
2019-07-19T15:29:19.000Z
2022-03-12T00:59:37.000Z
astrorapid/ANTARES_object/LAobject.py
kponder/astrorapid
91053af8049724a07d1f55baf4e1f60fc36b1101
[ "MIT" ]
11
2019-02-19T20:35:08.000Z
2021-07-16T05:56:28.000Z
# -*- coding: UTF-8 -*- """ ANTARES Object class specification """ from __future__ import absolute_import from __future__ import unicode_literals import warnings import numpy as np from . import constants from .features.base import BaseMixin from astropy.stats import sigma_clip import extinction __all__ = ['LAobject'...
39.041872
138
0.576935
74f98c864e93da149b7471e2e8ef3929d7338fff
12,436
py
Python
myenv/lib/python3.7/site-packages/google/protobuf/wrappers_pb2.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
4,768
2015-01-08T04:45:33.000Z
2022-03-28T07:32:59.000Z
myenv/lib/python3.7/site-packages/google/protobuf/wrappers_pb2.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
2,599
2015-01-06T21:51:28.000Z
2022-03-30T12:40:09.000Z
venv/Lib/site-packages/google/protobuf/wrappers_pb2.py
Ammar-Raneez/Craigslist_Scraper
4d8ef7d65f6cb4bbc7a461828ab02ec9e3006f71
[ "MIT" ]
878
2015-01-10T00:03:30.000Z
2022-03-31T22:54:15.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/protobuf/wrappers.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_data...
31.72449
761
0.752814
74f99a6e24f48e3321a6972be0cd4eae9d363aef
2,243
py
Python
nicos_mlz/kws1/setups/system.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/kws1/setups/system.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_mlz/kws1/setups/system.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- description = 'system setup' group = 'lowlevel' display_order = 80 sysconfig = dict( cache = 'localhost', instrument = 'KWS1', experiment = 'Exp', datasinks = ['conssink', 'filesink', 'daemonsink'], notifiers = ['email'], ) includes = ['notifiers'] modules = ['nicos.comma...
30.726027
73
0.601872
74f99c52793afa87185bb2baabb568427331bad1
4,806
py
Python
ROS_WS/site_ws/src/site_model/src/point_cloud_preprocess/point_cloud_pointnet_segmentation.py
OrangeSodahub/ROS-WS
5b3c56ea1b46025298360eed9c06f25f7c5f7fe6
[ "MIT" ]
1
2022-03-20T19:16:06.000Z
2022-03-20T19:16:06.000Z
ROS_WS/site_ws/src/site_model/src/point_cloud_preprocess/point_cloud_pointnet_segmentation.py
OrangeSodahub/ROS-WS
5b3c56ea1b46025298360eed9c06f25f7c5f7fe6
[ "MIT" ]
null
null
null
ROS_WS/site_ws/src/site_model/src/point_cloud_preprocess/point_cloud_pointnet_segmentation.py
OrangeSodahub/ROS-WS
5b3c56ea1b46025298360eed9c06f25f7c5f7fe6
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import math import sys import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.join(BASE_DIR, '../utils')) import tf_util from transform_nets import input_transform_net, feature_transform_net def placeholder_inputs(bat...
42.157895
84
0.588847
74f9a907a9fed664cf91bc809b1e1b76732c0e91
2,928
py
Python
credential_class/credentialclass.py
NderituMwanu/PasswdLock
847bcea20127c7300b1f5b068a96b202b3355dd3
[ "Unlicense" ]
null
null
null
credential_class/credentialclass.py
NderituMwanu/PasswdLock
847bcea20127c7300b1f5b068a96b202b3355dd3
[ "Unlicense" ]
null
null
null
credential_class/credentialclass.py
NderituMwanu/PasswdLock
847bcea20127c7300b1f5b068a96b202b3355dd3
[ "Unlicense" ]
null
null
null
import pyperclip import string import random global users_list class Credentials: """ This class generates new instances of contacts """ credentials_list = [] # empty list of stored credentials. user_cred_list = [] @classmethod def validate_user(cls,first_name,password): ''' ...
25.684211
76
0.595287
74f9c0c1a205b9143c1e3e9a0ffe0375b8367c4c
5,441
py
Python
src/fidesops/service/connectors/mongodb_connector.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
41
2021-11-01T23:53:43.000Z
2022-03-22T23:07:56.000Z
src/fidesops/service/connectors/mongodb_connector.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
235
2021-11-01T20:31:55.000Z
2022-03-31T15:40:58.000Z
src/fidesops/service/connectors/mongodb_connector.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
12
2021-11-02T00:44:51.000Z
2022-03-14T16:23:10.000Z
import logging from typing import Dict, Any, List, Optional from pymongo import MongoClient from pymongo.errors import ServerSelectionTimeoutError, OperationFailure from fidesops.common_exceptions import ConnectionException from fidesops.graph.traversal import Row, TraversalNode from fidesops.models.connectionconfig ...
36.273333
119
0.636831
74fa1343eb9c9c4cf978c75b20c63387561f9f05
73,745
py
Python
formalchemy/fields.py
coredumperror/formalchemy
6d89bb3ac19248e114684df17bbf3885dc26de3e
[ "MIT" ]
20
2015-01-25T13:54:08.000Z
2021-03-09T16:54:53.000Z
formalchemy/fields.py
coredumperror/formalchemy
6d89bb3ac19248e114684df17bbf3885dc26de3e
[ "MIT" ]
11
2015-02-05T16:36:19.000Z
2020-11-13T11:41:19.000Z
formalchemy/fields.py
coredumperror/formalchemy
6d89bb3ac19248e114684df17bbf3885dc26de3e
[ "MIT" ]
12
2015-02-19T14:06:21.000Z
2021-07-30T08:44:45.000Z
# Copyright (C) 2007 Alexandre Conrad, alexandre (dot) conrad (at) gmail (dot) com # # This module is part of FormAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import cgi import logging logger = logging.getLogger('formalchemy.' + __name__) from copy import copy, d...
37.798565
205
0.6024
74fa561610d1fd25a2a80f2024606db8d7141bce
3,388
py
Python
tests/test_lib_asynchronous.py
kusanagi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2022-02-24T19:02:28.000Z
2022-02-24T19:02:28.000Z
tests/test_lib_asynchronous.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
null
null
null
tests/test_lib_asynchronous.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2021-05-16T17:40:21.000Z
2021-05-16T17:40:21.000Z
# Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) # Copyright (c) 2016-2021 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. import asyncio import pyt...
36.430108
86
0.672078
74fa70e909ae689c554d09a809248c58d227f179
11,260
py
Python
nova/tests/unit/objects/test_migration.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/objects/test_migration.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_migration.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2013 IBM Corp. # # 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 agree...
41.858736
79
0.647247
74fa9eab404b97ab7acfb6bc00c0f8e30d78d371
392
py
Python
create_shortened_dictionary.py
jfoley-yw/scrabble
049a69572138b06341af163ec69e18a1eb20b737
[ "MIT" ]
1
2021-04-01T14:24:17.000Z
2021-04-01T14:24:17.000Z
create_shortened_dictionary.py
jfoley-yw/scrabble
049a69572138b06341af163ec69e18a1eb20b737
[ "MIT" ]
3
2021-04-05T01:09:16.000Z
2021-04-19T20:19:30.000Z
create_shortened_dictionary.py
jfoley-yw/scrabble
049a69572138b06341af163ec69e18a1eb20b737
[ "MIT" ]
null
null
null
import random inpt_path = './resources/wwf11/old_dictionary.txt' output_path = './resources/wwf4/dictionary.txt' inpt = open(inpt_path, 'r') output = open(output_path, 'w') words = set() for line in inpt: if len(line[:-1]) <= 4: words.add(line[:-1]) random_words = random.sample(words, 20) for word in r...
18.666667
50
0.668367
74faa2e6cc6e6f06711d6edf5e1fa4d0f81ffd69
381
py
Python
wordcnt_tobedon.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
1
2015-04-23T11:43:26.000Z
2015-04-23T11:43:26.000Z
wordcnt_tobedon.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
wordcnt_tobedon.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
text = '''aaaaaa aaaaaa aaaa aaaa a aa aa a aa0 bbbbbb bbbbbb bbbbbbbbbb.ccc ccccc c0 dddd ddddd ddddd.eeeee eeeeeee.fffff0 fffff fff ffffff.ggg ggg gg g.eeefaa0.''' lines = list(text.split('\n')) words = list(text.split(' ')) sentenses = list(text.split('.')) print(len(lines), lines, '\n') print(len(words), words, '...
27.214286
47
0.690289
74fabc1260585c8d72ad27a8572a8d165ee7449a
341
py
Python
workalendar/usa/missouri.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/usa/missouri.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/usa/missouri.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from .core import UnitedStates class Missouri(UnitedStates): """Missouri""" FIXED_HOLIDAYS = UnitedStates.FIXED_HOLIDAYS + ( (5, 8, "Truman Day"), ) include_lin...
24.357143
66
0.648094
74facec9d1d8d1d1e62cd3f9d7ae5f9d9e4f336f
3,021
py
Python
src/ops/skeleton.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
src/ops/skeleton.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
src/ops/skeleton.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
import random from typing import Set import bpy from bpy.props import BoolProperty, EnumProperty, FloatProperty from bpy.types import Context, Operator from ..arm.master_root import add_master_root, link_body, lock_bones from ..arm.randomize import randomize_bones class DefaultSkeleton(Operator): """Add default...
30.826531
112
0.607415
74fad34eea0ab89864e1c68fa69de69bf7dd9e9c
2,180
py
Python
chain_cmd.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
2
2018-08-15T21:27:59.000Z
2018-08-21T17:56:12.000Z
chain_cmd.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
chain_cmd.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
1
2021-12-06T04:03:32.000Z
2021-12-06T04:03:32.000Z
import logging import time import click from populus.api.utils import ( new_local_chain, ) from populus.chain import ( BaseGethChain, ) from populus.utils.geth import ( reset_chain, ) from .main import main @main.group('chain') @click.pass_context def chain_cmd(ctx): """ Manage and run ethere...
23.695652
74
0.655505
74fadeec74e52e597dc796f5b02b1a7d33873543
8,911
py
Python
sdk/core/azure-core/azure/core/pipeline/transport/aiohttp.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/pipeline/transport/aiohttp.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/pipeline/transport/aiohttp.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
38.743478
118
0.649422
74fae07f668c6a0ffc6b99749338e95908987824
143
py
Python
src/scatterbrained/discovery/__init__.py
JHUAPL/scatterbrained
bead942a3d711f81b8718ca2111420b5ff5f996f
[ "Apache-2.0" ]
4
2021-12-14T19:56:24.000Z
2022-01-10T23:50:55.000Z
src/scatterbrained/discovery/__init__.py
JHUAPL/scatterbrained
bead942a3d711f81b8718ca2111420b5ff5f996f
[ "Apache-2.0" ]
1
2022-02-15T09:20:05.000Z
2022-02-15T09:20:05.000Z
src/scatterbrained/discovery/__init__.py
JHUAPL/scatterbrained
bead942a3d711f81b8718ca2111420b5ff5f996f
[ "Apache-2.0" ]
3
2022-01-21T22:19:39.000Z
2022-02-22T05:37:59.000Z
from . import types # noqa: F401 from .engine import DiscoveryEngine # noqa: F401 from .udp import UDPBroadcaster, UDPReceiver # noqa: F401
35.75
58
0.755245
74fb1011c241e77dead5bd9219c6ae8c6a8115ee
2,704
py
Python
sdk/machinelearning/azure-mgmt-machinelearningservices/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/machinelearning/azure-mgmt-machinelearningservices/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/machinelearning/azure-mgmt-machinelearningservices/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
36.053333
103
0.613536
74fb46667f0f25287fce555d983cfc0f781d2ac9
70,763
py
Python
controllers/req.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
1
2018-01-06T12:58:32.000Z
2018-01-06T12:58:32.000Z
controllers/req.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
controllers/req.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Request Management """ module = request.controller resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ----------------------------------------------------------------------------- def index(): """ Module'...
41.970937
145
0.446052
74fb5359a890ea8937e1b1276c74d2f183718a85
12,102
py
Python
text-dream/python/dream/reconstruct_shifted_activation.py
rothenha/interpretability
37c664dc28f574b8f8d2eaf01a3ee4be3fecb1fd
[ "Apache-2.0" ]
75
2019-06-08T13:29:56.000Z
2022-03-19T20:55:34.000Z
text-dream/python/dream/reconstruct_shifted_activation.py
Sparkier/interpretability
37c664dc28f574b8f8d2eaf01a3ee4be3fecb1fd
[ "Apache-2.0" ]
15
2019-07-26T17:32:41.000Z
2020-01-08T07:20:54.000Z
text-dream/python/dream/reconstruct_shifted_activation.py
rothenha/interpretability
37c664dc28f574b8f8d2eaf01a3ee4be3fecb1fd
[ "Apache-2.0" ]
14
2019-08-14T18:46:38.000Z
2022-03-13T22:24:55.000Z
# Copyright 2018 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
46.546154
82
0.709552
74fb6926a8e57367d110ea3e824a40d0b8072e21
1,895
py
Python
examples/CADC.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
examples/CADC.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
examples/CADC.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # # pylint: disable=wrong-import-position # pylint: disable=wrong-import-order # pylint: disable=not-callable # pylint: disable=ungrouped-imports # pylint: disable=import-error # pylint: disable=pointless-string-statement # pylint: disable=...
24.294872
93
0.731398