hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4bf394e6c35ffa5f02103c2ba77e4e4120880e92
8,110
py
Python
abcd/components/systems.py
lebrice/abcd
19df529395cc0a3b5bd46c4539762c4dae61ca3c
[ "MIT" ]
1
2021-08-17T20:00:52.000Z
2021-08-17T20:00:52.000Z
abcd/components/systems.py
lebrice/abcd
19df529395cc0a3b5bd46c4539762c4dae61ca3c
[ "MIT" ]
null
null
null
abcd/components/systems.py
lebrice/abcd
19df529395cc0a3b5bd46c4539762c4dae61ca3c
[ "MIT" ]
1
2021-09-08T21:41:49.000Z
2021-09-08T21:41:49.000Z
import os, sys, pdb import random import numpy as np import json import pandas as pd from abcd.utils.arguments import Config class Application(object): def __init__(self, args: Config, model, processor): self.task = args.task self.utt_vectors = model.utt_vectors self.utt_texts = model.utt_...
38.619048
164
0.590999
fa5e1a59450a4a055eac3e6bc309a1d65d95380d
6,363
py
Python
app/stats/serializers.py
mojca/macports-webapp
a436d041b2ebf22ce9bedd8136bc276161c3bf37
[ "BSD-2-Clause" ]
1
2020-10-21T16:07:25.000Z
2020-10-21T16:07:25.000Z
app/stats/serializers.py
mojca/macports-webapp
a436d041b2ebf22ce9bedd8136bc276161c3bf37
[ "BSD-2-Clause" ]
null
null
null
app/stats/serializers.py
mojca/macports-webapp
a436d041b2ebf22ce9bedd8136bc276161c3bf37
[ "BSD-2-Clause" ]
2
2020-11-11T04:24:35.000Z
2021-08-16T19:18:37.000Z
import datetime from rest_framework import serializers from django.db.models import Count, Subquery, Value, CharField from django.db.models.functions import TruncMonth, Cast, ExtractMonth, ExtractYear, Concat from stats.models import PortInstallation from stats.models import Submission from stats.utilities.sort_by_ve...
35.35
154
0.644822
1c14b1e231d94b988ffeaef30a9ccec56844d6ca
2,519
py
Python
sdk/remoterendering/azure-mixedreality-remoterendering/azure/mixedreality/remoterendering/_generated/aio/_remote_rendering_rest_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/remoterendering/azure-mixedreality-remoterendering/azure/mixedreality/remoterendering/_generated/aio/_remote_rendering_rest_client_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/remoterendering/azure-mixedreality-remoterendering/azure/mixedreality/remoterendering/_generated/aio/_remote_rendering_rest_client_async.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 may ...
45.8
236
0.705042
d3f6e2fd4cb89b187515da84d6e130226ab2a957
5,892
py
Python
handrecog/src/predict.py
hengxyz/hand_detection_recognition
317545056886d7b85947f9258c4cc02e98cfd2fe
[ "MIT" ]
null
null
null
handrecog/src/predict.py
hengxyz/hand_detection_recognition
317545056886d7b85947f9258c4cc02e98cfd2fe
[ "MIT" ]
null
null
null
handrecog/src/predict.py
hengxyz/hand_detection_recognition
317545056886d7b85947f9258c4cc02e98cfd2fe
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np import os import sys import argparse import glob import cv2 from scipy import misc #sys.path.insert(0, './recognition/src') import facenet_ext class Predict_hand(ob...
41.492958
138
0.652919
05bf949f69473df0b8e5f7b7cb17066dfc99cc45
4,144
py
Python
src/pages/gallery/contributions/marc_skov_madsen/sentiment_analyzer/sentiment_analyzer.py
Ben0mmen/.-MfG-ThC-.
7d53d813d237c0b3ca3b2bd9bda5a7d7e042379e
[ "CC0-1.0" ]
1
2019-10-19T20:03:40.000Z
2019-10-19T20:03:40.000Z
src/pages/gallery/contributions/marc_skov_madsen/sentiment_analyzer/sentiment_analyzer.py
Ben0mmen/.-MfG-ThC-.
7d53d813d237c0b3ca3b2bd9bda5a7d7e042379e
[ "CC0-1.0" ]
null
null
null
src/pages/gallery/contributions/marc_skov_madsen/sentiment_analyzer/sentiment_analyzer.py
Ben0mmen/.-MfG-ThC-.
7d53d813d237c0b3ca3b2bd9bda5a7d7e042379e
[ "CC0-1.0" ]
null
null
null
"""Fork of Sentiment-Analyzer-Tool by Paras Patidar. Improvements by Marc Skov Madsen Original Source: https://github.com/patidarparas13/Sentiment-Analyzer-Tool Original Author: https://github.com/patidarparas13, """ import itertools import matplotlib.pyplot as plt import numpy as np import pandas as pd import reque...
30.925373
160
0.705357
1e4d4687501da6f7479e6a656ca220c19762085c
9,120
py
Python
indico/modules/events/settings.py
fweng322/indico
79be02114a835011276903321ae90282239c21a7
[ "MIT" ]
null
null
null
indico/modules/events/settings.py
fweng322/indico
79be02114a835011276903321ae90282239c21a7
[ "MIT" ]
null
null
null
indico/modules/events/settings.py
fweng322/indico
79be02114a835011276903321ae90282239c21a7
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals import os import re from functools import wraps import yaml from...
35.764706
114
0.650548
84db7e257492c6f2f68ed526e5a12dbd0f311b4c
9,041
py
Python
generate_namelist.py
jiahe23/SCAMPy
0f8e9656b043e98c6bd316fda45bcf146bddbcbd
[ "Apache-2.0" ]
null
null
null
generate_namelist.py
jiahe23/SCAMPy
0f8e9656b043e98c6bd316fda45bcf146bddbcbd
[ "Apache-2.0" ]
null
null
null
generate_namelist.py
jiahe23/SCAMPy
0f8e9656b043e98c6bd316fda45bcf146bddbcbd
[ "Apache-2.0" ]
null
null
null
import argparse import json import pprint from sys import exit import uuid import ast import copy #Adapated from PyCLES: https://github.com/pressel/pycles def main(): parser = argparse.ArgumentParser(prog='Namelist Generator') parser.add_argument('case_name') args = parser.parse_args() case_name = a...
30.136667
101
0.663865
19c827c6300206d525b6bf7a88b4c028ad3e0fa0
2,766
py
Python
bindings/python/ensmallen/datasets/networkrepository/cl1000001d7trial1.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/networkrepository/cl1000001d7trial1.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/networkrepository/cl1000001d7trial1.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph CL-100000-1d7-trial1. The graph is automatically retrieved from the NetworkRepository repository. References --------------------- Please cite the following if you use the data: ```bib @inproceedings{nr, title = {The Network Data Repository w...
29.115789
94
0.658713
d093a9fb677d28133a035b2f0434423afa6e5915
1,749
py
Python
day7.py
lelilia/advent_of_code_2021
cee570be9865e089216c3fdad11418b5eee8a07b
[ "MIT" ]
4
2021-12-01T06:23:10.000Z
2021-12-21T09:09:32.000Z
day7.py
lelilia/advent_of_code_2021
cee570be9865e089216c3fdad11418b5eee8a07b
[ "MIT" ]
null
null
null
day7.py
lelilia/advent_of_code_2021
cee570be9865e089216c3fdad11418b5eee8a07b
[ "MIT" ]
null
null
null
""" Advent of Code 2021 day 7 """ import numpy as np INPUT_FILE = "input7.txt" def get_fuel(pos, target_pos): return abs(pos - target_pos) def get_increasing_fuel(pos, target_pos): return sum(range(1, abs(pos - target_pos) + 1)) def get_sum_fuel_part2(positions): avg = int(np.average(positions)) ...
22.714286
64
0.628359
22cfebc6424044fc9e3ba13686fac6742be02628
1,737
py
Python
var/spack/repos/builtin/packages/r-posterior/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-posterior/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/r-posterior/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 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) from spack.package import * class RPosterior(RPackage): """Tools for Working with Posterior Distributions. Prov...
46.945946
95
0.713874
93b54e0a98a29a548da6720f4aaae3d0932b8eb5
485
py
Python
src/scoot/src/behaviors/hauler/goto_excavator.py
BCLab-UNM/SC2
3e476a529ca9c6c650b921a749ae496671cca6a8
[ "MIT" ]
null
null
null
src/scoot/src/behaviors/hauler/goto_excavator.py
BCLab-UNM/SC2
3e476a529ca9c6c650b921a749ae496671cca6a8
[ "MIT" ]
null
null
null
src/scoot/src/behaviors/hauler/goto_excavator.py
BCLab-UNM/SC2
3e476a529ca9c6c650b921a749ae496671cca6a8
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """Goto Excavator node.""" from __future__ import print_function import sys import rospy from Scoot import Scoot def main(task=None): if task: scoot = task.scoot else: # Called without task instance scoot = Scoot("hauler") scoot.start(node_name='goto_excavator...
22.045455
47
0.672165
3b26efe4a4d2a4d50a381f3630c054d7ec1d19c4
373
py
Python
tests/testInterfaces.py
mapledyne/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2019-04-17T13:07:30.000Z
2021-09-09T22:01:14.000Z
tests/testInterfaces.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
10
2016-11-02T20:48:38.000Z
2021-09-15T15:29:34.000Z
tests/testInterfaces.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2016-03-03T07:25:13.000Z
2016-08-30T15:33:03.000Z
"""Test Skytap interfaces API access.""" import json import os import sys sys.path.append('..') from skytap.Environments import Environments # noqa environments = Environments() def test_interface_values(): """Ensure interface capabilities are functioning.""" e = environments.first() for v in e.vms: ...
20.722222
56
0.686327
2e07f1d151427ea51816a9c936a0e4f27debff54
36,783
py
Python
python/ccxt/async_support/bcex.py
Krestol/ccxt
1cfbd5f1dc4b5f55586c4e6a892cedb4966fbf4d
[ "MIT" ]
null
null
null
python/ccxt/async_support/bcex.py
Krestol/ccxt
1cfbd5f1dc4b5f55586c4e6a892cedb4966fbf4d
[ "MIT" ]
null
null
null
python/ccxt/async_support/bcex.py
Krestol/ccxt
1cfbd5f1dc4b5f55586c4e6a892cedb4966fbf4d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticatio...
56.502304
192
0.479705
7775fbaa597c0f12cc40684029039fc30bd94372
12,362
py
Python
utilities/parse_argument_list/stats_placer.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
null
null
null
utilities/parse_argument_list/stats_placer.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
null
null
null
utilities/parse_argument_list/stats_placer.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
1
2022-01-28T22:22:04.000Z
2022-01-28T22:22:04.000Z
#!/usr/bin/env python3 # @author: Keegan Rhodes from os import listdir from os.path import isfile, join from re import sub import copy ''' Known issues: Issue with comment throwing off the reverse tehcnique Issue with subroutines that don't have () in their calls or definitions ''' def remove_comments(st...
33.501355
115
0.545866
18526d2da66145d9c89a988d53ada38162cbf60c
1,076
py
Python
hse_site/urls.py
frankwrk/ca229-project
40ef2b1e1cb758a911c583a07be57499006237cb
[ "MIT" ]
2
2020-04-20T08:47:03.000Z
2020-04-21T13:53:41.000Z
hse_site/urls.py
frankwrk/ca229-project
40ef2b1e1cb758a911c583a07be57499006237cb
[ "MIT" ]
7
2021-03-19T02:17:58.000Z
2021-10-20T06:12:33.000Z
hse_site/urls.py
frankwrk/ca229-project
40ef2b1e1cb758a911c583a07be57499006237cb
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import include, path from django.contrib.auth import views as auth_views from django.views.generic.base import TemplateView from . import contact admin.site.site_header = "Events Project Dashboard" admin.site.site_title = "Admin" admin.site.site_url = "/" admin.site.in...
44.833333
116
0.750929
ff640ae45c8fed132c45041bdfcc266ccc7dd4f5
6,981
py
Python
auraxium/ps2/_weapon.py
leonhard-s/auraxium
8a1b7fb6e6e1b11334d69875df032ccc6da330bf
[ "MIT" ]
23
2018-12-04T12:47:11.000Z
2022-02-08T05:46:21.000Z
auraxium/ps2/_weapon.py
brhumphe/auraxium
8a1b7fb6e6e1b11334d69875df032ccc6da330bf
[ "MIT" ]
50
2020-04-15T10:55:30.000Z
2022-02-20T11:14:01.000Z
auraxium/ps2/_weapon.py
brhumphe/auraxium
8a1b7fb6e6e1b11334d69875df032ccc6da330bf
[ "MIT" ]
6
2018-12-02T11:55:03.000Z
2020-10-06T05:15:36.000Z
"""Weapon class definition.""" import logging from typing import Final, List, Optional from ..base import Cached from ..census import Query from ..models import WeaponAmmoSlot, WeaponData, WeaponDatasheet from .._proxy import InstanceProxy, SequenceProxy from .._rest import RequestClient, extract_payload, extract_sin...
32.022936
75
0.66151
8679da1d83ece222e59c539a92ccfe65faa3df60
1,819
py
Python
networks/relay_net.py
charleneolive/relaynet_adaptation
06f02d49142cf158a66ed31d980056847971ed89
[ "Unlicense" ]
null
null
null
networks/relay_net.py
charleneolive/relaynet_adaptation
06f02d49142cf158a66ed31d980056847971ed89
[ "Unlicense" ]
null
null
null
networks/relay_net.py
charleneolive/relaynet_adaptation
06f02d49142cf158a66ed31d980056847971ed89
[ "Unlicense" ]
null
null
null
"""ClassificationCNN""" import torch import torch.nn as nn from networks.net_api import sub_module as sm class ReLayNet(nn.Module): """ A PyTorch implementation of ReLayNet Coded by Shayan and Abhijit """ def __init__(self, params): super(ReLayNet, self).__init__() params[...
28.873016
98
0.610775
81fd6e351e1070327a37bdef629d78a552594132
567
py
Python
apps/profiles/dynamic_preferences_registry.py
Chemtogether/chemtogehter-registration
22d39c31c1ea4fa66af30dc77a4af5ccab7931c9
[ "MIT" ]
null
null
null
apps/profiles/dynamic_preferences_registry.py
Chemtogether/chemtogehter-registration
22d39c31c1ea4fa66af30dc77a4af5ccab7931c9
[ "MIT" ]
11
2020-01-05T18:44:21.000Z
2022-01-27T18:11:45.000Z
apps/profiles/dynamic_preferences_registry.py
Chemtogether/chemtogether-registration
00104f502493c2ff9a126efabb03fbd4de02167e
[ "MIT" ]
null
null
null
from dynamic_preferences.types import BooleanPreference, StringPreference, DateTimePreference from dynamic_preferences.preferences import Section from dynamic_preferences.registries import global_preferences_registry import datetime fair = Section('fair') @global_preferences_registry.register class ApplicationsOpen(...
35.4375
93
0.814815
383272f2b9e6d66758e0f6998ee1b0a646bf32c7
541
py
Python
manage.py
LindsayYoung/FOIA-mad-libs
38c6f3a3b36464141f6ab2af3792be78d8c5ddab
[ "MIT" ]
null
null
null
manage.py
LindsayYoung/FOIA-mad-libs
38c6f3a3b36464141f6ab2af3792be78d8c5ddab
[ "MIT" ]
null
null
null
manage.py
LindsayYoung/FOIA-mad-libs
38c6f3a3b36464141f6ab2af3792be78d8c5ddab
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "foia_libs.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Ar...
33.8125
73
0.687616
d3dfaf7f1388cb38d09858ae0bf7022874a8f4a6
2,959
py
Python
lin_prad/Bplot2.py
AlemayehuB/lin_prad
006584c8927911c7bd3dc9e7d9ac36fda989b879
[ "MIT" ]
null
null
null
lin_prad/Bplot2.py
AlemayehuB/lin_prad
006584c8927911c7bd3dc9e7d9ac36fda989b879
[ "MIT" ]
null
null
null
lin_prad/Bplot2.py
AlemayehuB/lin_prad
006584c8927911c7bd3dc9e7d9ac36fda989b879
[ "MIT" ]
null
null
null
''' Provides function that will plot the reconstructed magnetic field caluctlated from the alogrithm in recconstruct.py ''' import math import sys import os.path import rad_ut as ru from constants import M_PROTON_G, ESU, C, V_PER_E import matplotlib as mpl mpl.use('Agg') # Headless plotting (avoids python-tk GUI r...
27.915094
94
0.566408
e60aaf74dbfdbb9dbab64da38c3cea477c3d188d
814
py
Python
flint/utils/common.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
15
2021-02-08T16:01:52.000Z
2021-02-10T07:49:26.000Z
flint/utils/common.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
null
null
null
flint/utils/common.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
2
2021-05-10T06:40:45.000Z
2021-05-10T14:47:03.000Z
import numpy as np __all__ = ['to_categorical'] def to_categorical(target: np.ndarray, n_classes: int = None) -> np.ndarray: """ Convert a class vector (integers) to binary class matrix. Parameters ---------- target : np.ndarray A 1-dim (batch_size) class vector to be converted into a matrix ...
28.068966
76
0.669533
68276ec088eb368e61236833c83f342fd34af9a7
7,673
py
Python
test/unit/module/core/test_run_cli.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
null
null
null
test/unit/module/core/test_run_cli.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
null
null
null
test/unit/module/core/test_run_cli.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
1
2020-01-05T01:05:55.000Z
2020-01-05T01:05:55.000Z
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import logging from test.testlib.testcase import BaseTestCase from six import StringIO import cfnlint.core # pylint: disable=E0401 import cfnlint.config # pylint: disable=E0401 from mock import patch LOGGE...
39.551546
89
0.645641
f89e7ecc03bd02d43e3cf1b27008742da0458bf7
667
py
Python
indoorair/userprofile/views.py
DanielSalazar1/indoorair.webapp-a
1ed444e82248cd10bdc930e2897445c8eddcdbfa
[ "BSD-3-Clause" ]
null
null
null
indoorair/userprofile/views.py
DanielSalazar1/indoorair.webapp-a
1ed444e82248cd10bdc930e2897445c8eddcdbfa
[ "BSD-3-Clause" ]
null
null
null
indoorair/userprofile/views.py
DanielSalazar1/indoorair.webapp-a
1ed444e82248cd10bdc930e2897445c8eddcdbfa
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse, JsonResponse from django.shortcuts import render from django.shortcuts import redirect def profile_retrieve_page(request): return render(request, "userprofile/retrieve.html", {}) def get_profile_retrieve_api(request): return JsonResponse({ 'first_name': request...
24.703704
59
0.704648
d64693b48ef0f549cdc45209cf011ae72dca8ab0
4,264
py
Python
Collections-a-installer/community-general-2.4.0/plugins/modules/remote_management/oneview/oneview_san_manager_facts.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/remote_management/oneview/oneview_san_manager_facts.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/remote_management/oneview/oneview_san_manager_facts.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' --- module: oneview_san_manager...
34.95082
125
0.702627
9df8c9b4277f21154712338e75f7a4a271ced6e3
9,265
py
Python
pyhap/http_server.py
drakebrian/pyhap
67ab2df4361aaacb6935a39270a16d3d4ac35c8d
[ "MIT" ]
null
null
null
pyhap/http_server.py
drakebrian/pyhap
67ab2df4361aaacb6935a39270a16d3d4ac35c8d
[ "MIT" ]
null
null
null
pyhap/http_server.py
drakebrian/pyhap
67ab2df4361aaacb6935a39270a16d3d4ac35c8d
[ "MIT" ]
null
null
null
import asyncio from asyncio import ( StreamReader, StreamWriter, ) from asyncio.base_events import Server from email.utils import formatdate from functools import wraps from http import HTTPStatus from logging import getLogger from typing import Dict from urllib.parse import ( parse_qsl, urlsplit, ) fr...
32.97153
119
0.631409
bf734e4c24b496deb9ec354d37ec633356edd58d
963
py
Python
platon/_utils/module_testing/net_module.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/_utils/module_testing/net_module.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/_utils/module_testing/net_module.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import pytest from typing import ( TYPE_CHECKING, ) from platon_utils import ( is_boolean, is_integer, is_string, ) if TYPE_CHECKING: from platon import Web3 class NetModuleTest: def test_net_version(self, web3: "Web3") -> None: version = web3.net.version assert is_string(ve...
22.928571
65
0.662513
3c256292e8e354d6fee6d1b64fbf6cc14fbf95af
1,062
py
Python
databay/misc/logs.py
cdpierse/databay
02d46a661f57d4e96c394b26b1d40366ccacf981
[ "Apache-2.0" ]
null
null
null
databay/misc/logs.py
cdpierse/databay
02d46a661f57d4e96c394b26b1d40366ccacf981
[ "Apache-2.0" ]
null
null
null
databay/misc/logs.py
cdpierse/databay
02d46a661f57d4e96c394b26b1d40366ccacf981
[ "Apache-2.0" ]
null
null
null
import logging import time class ISO8601Formatter(logging.Formatter): def __init__(self, *args, millis_precision=3, pretty=False, **kwargs): super().__init__(*args, **kwargs) self.millis_precision = millis_precision self.precision_mult = 10 ** (self.millis_precision-3) self.pretty...
26.55
74
0.594162
b24b8f29890f085c7d4046188d3c114e89551024
3,475
py
Python
scripts/deps/roll-puppeteer-into-frontend.py
rakuco/devtools-frontend
a1bc5c9977751940a1857308f9e7c90100d5e790
[ "BSD-3-Clause" ]
2
2021-04-25T19:26:02.000Z
2022-01-13T00:36:50.000Z
scripts/deps/roll-puppeteer-into-frontend.py
rakuco/devtools-frontend
a1bc5c9977751940a1857308f9e7c90100d5e790
[ "BSD-3-Clause" ]
null
null
null
scripts/deps/roll-puppeteer-into-frontend.py
rakuco/devtools-frontend
a1bc5c9977751940a1857308f9e7c90100d5e790
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import urllib import tarfile import os import re import sys import subprocess import json import shutil scripts_path = os.path.dirna...
29.956897
79
0.667338
465aab516612d2a1c70557b454243a7cb9d39414
1,715
py
Python
uproot_methods/classes/THnSparse.py
kratsg/uproot-methods
ee773ce3d5e6aef401dc42d282e6296c3b6a42d0
[ "BSD-3-Clause" ]
null
null
null
uproot_methods/classes/THnSparse.py
kratsg/uproot-methods
ee773ce3d5e6aef401dc42d282e6296c3b6a42d0
[ "BSD-3-Clause" ]
null
null
null
uproot_methods/classes/THnSparse.py
kratsg/uproot-methods
ee773ce3d5e6aef401dc42d282e6296c3b6a42d0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list ...
45.131579
80
0.77551
432ec6aa6ed70ab0b3fa1f00d2a3ffaa1660672b
560
py
Python
lib/python/ensembl/pipeline/json/schema_validator.py
manuelcarbajo/ensembl-production-imported
3e3d28f8698415954b79fa67e6e9c71d9bc22cb0
[ "Apache-2.0" ]
null
null
null
lib/python/ensembl/pipeline/json/schema_validator.py
manuelcarbajo/ensembl-production-imported
3e3d28f8698415954b79fa67e6e9c71d9bc22cb0
[ "Apache-2.0" ]
5
2021-05-26T13:41:58.000Z
2022-01-25T15:03:50.000Z
lib/python/ensembl/pipeline/json/schema_validator.py
manuelcarbajo/ensembl-production-imported
3e3d28f8698415954b79fa67e6e9c71d9bc22cb0
[ "Apache-2.0" ]
3
2021-05-13T16:13:04.000Z
2021-07-01T11:57:42.000Z
#!env python3 import eHive import json from jsonschema import validate class schema_validator(eHive.BaseRunnable): def run(self): json_file = self.param_required("json_file") json_schema_file = self.param_required("json_schema") json_data = self.get_json(json_file) schema...
24.347826
61
0.664286
392c46a56f558001c4d29702a20a234b2bf88837
6,403
py
Python
sdk/python/pulumi_azure_nextgen/containerregistry/v20170601preview/replication.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/containerregistry/v20170601preview/replication.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/containerregistry/v20170601preview/replication.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
42.125
365
0.644385
5784333b6952ac66c04e55a271a97e8e883e6e2c
9,277
py
Python
pirates/npc/DistributedKillerGhost.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/npc/DistributedKillerGhost.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/npc/DistributedKillerGhost.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from direct.interval.IntervalGlobal import * from direct.directnotify import DirectNotifyGlobal from direct.distributed.ClockDelta import * from pandac.PandaModules import * from pirates.effects.GhostAura import GhostAura from direct.interval.IntervalGlobal import * from pirates.pirate import DistributedPirateBase from...
35.818533
461
0.641263
ffec5c14992660979d0701264c6dfcc2639e2415
3,579
py
Python
fairseq/models/fairseq_incremental_decoder.py
rasoolims/fairseq
57b6a6dbfb290718eaa25040551d9db8a6b68a9b
[ "BSD-3-Clause" ]
14
2020-12-10T04:39:25.000Z
2021-12-17T03:17:35.000Z
fairseq/models/fairseq_incremental_decoder.py
chenzh01/fairseq
57b6a6dbfb290718eaa25040551d9db8a6b68a9b
[ "BSD-3-Clause" ]
3
2021-04-02T09:20:00.000Z
2022-03-31T13:26:38.000Z
fairseq/models/fairseq_incremental_decoder.py
chenzh01/fairseq
57b6a6dbfb290718eaa25040551d9db8a6b68a9b
[ "BSD-3-Clause" ]
4
2021-03-03T07:27:26.000Z
2022-03-08T14:08:41.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from . import FairseqDecoder cla...
42.105882
89
0.667505
81b55df693b9c44be16d45f9ef271d83ab44790d
28,905
py
Python
featuretools/entityset/entity.py
kunalvats/featuretools
25d8a36b7d636546161122095f5d6ca793a0b974
[ "BSD-3-Clause" ]
1
2019-06-06T15:16:26.000Z
2019-06-06T15:16:26.000Z
featuretools/entityset/entity.py
kunalvats/featuretools
25d8a36b7d636546161122095f5d6ca793a0b974
[ "BSD-3-Clause" ]
null
null
null
featuretools/entityset/entity.py
kunalvats/featuretools
25d8a36b7d636546161122095f5d6ca793a0b974
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function import logging from builtins import range from datetime import datetime import numpy as np import pandas as pd import pandas.api.types as pdtypes from past.builtins import basestring from .timedelta import Timedelta from featuretools import variable_types as vtypes fr...
40.426573
111
0.577997
4f4c58e23f0f340cadd17f5ebfe0cb2f209bbfa2
16,559
py
Python
training/masking.py
RomanCast/shiba
9ce76df51392497dafd1a2922b2a1ebb0c95e210
[ "Apache-2.0" ]
null
null
null
training/masking.py
RomanCast/shiba
9ce76df51392497dafd1a2922b2a1ebb0c95e210
[ "Apache-2.0" ]
null
null
null
training/masking.py
RomanCast/shiba
9ce76df51392497dafd1a2922b2a1ebb0c95e210
[ "Apache-2.0" ]
null
null
null
import math import os import random from collections import defaultdict from typing import Tuple, Dict, Set, List import unicodedata import torch from tokenizers import Tokenizer from shiba import CodepointTokenizer SPECIAL_TOKENS_WITHOUT_PADDING = {CodepointTokenizer.MASK, CodepointTokenizer.SEP, CodepointTokenizer...
55.754209
144
0.670632
1932b95de13ac8e3c89721e54911addb911a4f78
4,025
py
Python
lib/modules/powershell/situational_awareness/network/powerview/get_gpo_computer.py
lex0tanl/Empire
c8217e87cf333797eb363b782f769cc4b2f64b0b
[ "BSD-3-Clause" ]
3
2018-01-05T03:59:44.000Z
2020-02-11T03:25:46.000Z
lib/modules/powershell/situational_awareness/network/powerview/get_gpo_computer.py
gcxtx/Empire
dfb049ed48165eff2a8c1fe41941d0fbfa42df31
[ "BSD-3-Clause" ]
null
null
null
lib/modules/powershell/situational_awareness/network/powerview/get_gpo_computer.py
gcxtx/Empire
dfb049ed48165eff2a8c1fe41941d0fbfa42df31
[ "BSD-3-Clause" ]
3
2017-11-27T07:29:34.000Z
2018-09-23T06:27:05.000Z
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Get-GPOComputer', 'Author': ['@harmj0y'], 'Description': ('Takes a GPO GUID and returns the computers the GPO is applied to. Part of PowerView.'), ...
35.307018
116
0.480248
5dd255218c1d8f4974a90d208f81e29a0ef87ad8
2,003
py
Python
active_semi_clustering/semi_supervised/labeled_data/kmeans.py
heriosousa/active-semi-supervised-clustering
8ed97c7f3bdd76cf6c03e0ca6ef56bcf27b2d399
[ "MIT" ]
67
2018-11-09T06:59:31.000Z
2021-11-04T06:54:36.000Z
active_semi_clustering/semi_supervised/labeled_data/kmeans.py
heriosousa/active-semi-supervised-clustering
8ed97c7f3bdd76cf6c03e0ca6ef56bcf27b2d399
[ "MIT" ]
5
2020-03-24T18:10:32.000Z
2021-06-02T01:08:20.000Z
active_semi_clustering/semi_supervised/labeled_data/kmeans.py
heriosousa/active-semi-supervised-clustering
8ed97c7f3bdd76cf6c03e0ca6ef56bcf27b2d399
[ "MIT" ]
29
2018-10-16T15:36:28.000Z
2021-11-20T10:09:41.000Z
import numpy as np from active_semi_clustering.exceptions import EmptyClustersException class KMeans: def __init__(self, n_clusters=3, max_iter=100): self.n_clusters = n_clusters self.max_iter = max_iter def fit(self, X, y=None, **kwargs): # Initialize cluster centers cluster...
33.949153
110
0.65302
056d3af7d46dfe56a2d90fd6daecfe8ca13cc42f
2,039
py
Python
safe_relay_service/gas_station/tests/test_gas_station.py
gnosis/safe-relay-service
e4db2f9b85aab612653785766d4c1f4d16197197
[ "MIT" ]
48
2018-07-22T16:02:27.000Z
2022-03-31T17:46:20.000Z
safe_relay_service/gas_station/tests/test_gas_station.py
gnosis/safe-relay-service
e4db2f9b85aab612653785766d4c1f4d16197197
[ "MIT" ]
264
2018-06-11T11:37:55.000Z
2022-03-30T18:29:38.000Z
safe_relay_service/gas_station/tests/test_gas_station.py
gnosis/safe-relay-service
e4db2f9b85aab612653785766d4c1f4d16197197
[ "MIT" ]
24
2018-11-07T19:28:59.000Z
2022-03-19T16:46:59.000Z
from django.conf import settings from django.test import TestCase from gnosis.eth import EthereumClient from ..gas_station import GasStation, NoBlocksFound from .factories import GasPriceFactory class TestGasStation(TestCase): def test_gas_station_mock(self): gas_station = GasStation(EthereumClient(), n...
37.759259
85
0.639529
e780e07f4ac8113d54367839f971ec87311b7d47
22,955
py
Python
tests/api/test_register.py
pragex/django-rest-registration
2750b3e6d33cde15ba46d5c5b4cb683973f7b914
[ "MIT" ]
null
null
null
tests/api/test_register.py
pragex/django-rest-registration
2750b3e6d33cde15ba46d5c5b4cb683973f7b914
[ "MIT" ]
null
null
null
tests/api/test_register.py
pragex/django-rest-registration
2750b3e6d33cde15ba46d5c5b4cb683973f7b914
[ "MIT" ]
null
null
null
import time from unittest import mock from unittest.mock import patch from urllib.parse import quote_plus as urlquote from urllib.parse import unquote_plus as urlunquote from urllib.parse import urlparse import pytest from django.core.mail.backends.base import BaseEmailBackend from django.test.utils import override_se...
40.413732
79
0.685384
ba5c5721ff3e33e611e15d45334d689e09b2c977
3,592
py
Python
bindings/python/ensmallen/datasets/string/sutterellawadsworthensis3145b.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/sutterellawadsworthensis3145b.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/sutterellawadsworthensis3145b.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Sutterella wadsworthensis 3145B. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein...
33.259259
223
0.680679
1bd979da02308cbe6e0338189cd445086d72d7b5
15,876
py
Python
emmet/materials/electrodes.py
jerrymlin/emmet
2540fd8f6905be7290ead1b8a9dadca84d5d03fa
[ "BSD-3-Clause-LBNL" ]
2
2020-04-08T19:01:16.000Z
2020-04-26T04:09:53.000Z
emmet/materials/electrodes.py
jerrymlin/emmet
2540fd8f6905be7290ead1b8a9dadca84d5d03fa
[ "BSD-3-Clause-LBNL" ]
null
null
null
emmet/materials/electrodes.py
jerrymlin/emmet
2540fd8f6905be7290ead1b8a9dadca84d5d03fa
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os from pymatgen.core import Structure, Element from maggma.builders import Builder from pymatgen.entries.compatibility import MaterialsProjectCompatibility from pymatgen.analysis.structure_matcher import StructureMatcher, ElementComparator from pymatgen.analysis.phase_diagram import PhaseDiagram, PhaseDiagramEr...
41.669291
153
0.547556
ce562254207e86093749b7f8e7c845149a332472
1,238
py
Python
robot/migrations/0003_auto_20200104_1236.py
Misschl/wechat
8ce76dae32b1086bb83ee6e3fe64cf84845012c0
[ "Apache-2.0" ]
1
2020-01-07T06:51:19.000Z
2020-01-07T06:51:19.000Z
robot/migrations/0003_auto_20200104_1236.py
Misschl/wechat
8ce76dae32b1086bb83ee6e3fe64cf84845012c0
[ "Apache-2.0" ]
null
null
null
robot/migrations/0003_auto_20200104_1236.py
Misschl/wechat
8ce76dae32b1086bb83ee6e3fe64cf84845012c0
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.5 on 2020-01-04 12:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('robot', '0002_auto_20200104_1204'), ] operations = [ migrations.AddField( model_name='appmodel'...
29.47619
127
0.577544
b6763afd6b55b471ecf140852737285915629857
785
py
Python
328-odd-even-linked-list/328-odd-even-linked-list.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
328-odd-even-linked-list/328-odd-even-linked-list.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
328-odd-even-linked-list/328-odd-even-linked-list.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def oddEvenList(self, head: Optional[ListNode]) -> Optional[ListNode]: dummy = cur = ListNode(0) head2 = head if head2: ...
29.074074
74
0.480255
497c097a41b11f23b445fae4d83de5e85e0cfde8
1,387
py
Python
yass/tests/test_helpers.py
mrnfrancesco/yass
ac20318379a5b9c1db0599b7254b1702b4736cb0
[ "Apache-2.0" ]
10
2019-07-29T07:21:52.000Z
2022-02-17T02:23:00.000Z
yass/tests/test_helpers.py
mrnfrancesco/yass
ac20318379a5b9c1db0599b7254b1702b4736cb0
[ "Apache-2.0" ]
1
2015-07-01T17:20:28.000Z
2015-07-01T17:21:12.000Z
yass/tests/test_helpers.py
mrnfrancesco/yass
ac20318379a5b9c1db0599b7254b1702b4736cb0
[ "Apache-2.0" ]
3
2016-08-13T23:48:44.000Z
2020-06-19T07:23:45.000Z
import unittest from yass.helpers import without_duplicates class TestHelpers(unittest.TestCase): def test_without_duplicates(self): no_duplicates = [1, 2, 3, 4, 5] duplicated = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5] # Test non iterable objects self.assertRaises(TypeError, without_duplic...
44.741935
93
0.723143
c07a4ca15126111e6b0b7d607cac1c8617f51e22
2,726
py
Python
heifpy/box/metabox.py
takurooo/heifpy
642c075efa3548c88627ebbed043ae4abeb453b3
[ "MIT" ]
null
null
null
heifpy/box/metabox.py
takurooo/heifpy
642c075efa3548c88627ebbed043ae4abeb453b3
[ "MIT" ]
null
null
null
heifpy/box/metabox.py
takurooo/heifpy
642c075efa3548c88627ebbed043ae4abeb453b3
[ "MIT" ]
null
null
null
# ----------------------------------- # import # ----------------------------------- from . import boxutils from .basebox import FullBox from .hdlrbox import HandlerReferenceBox from .iinfbox import ItemInformationBox from .ilocbox import ItemLocationBox from .iprpbox import ItemPropertiesBox from .irefbox import Item...
28.694737
65
0.49303
a08e640fe763bef83adf2007a77e7b352f58e358
30,679
py
Python
src/olympia/addons/views.py
renancleyson-dev/addons-server
1db556b40260aa4c0c63e84c4d9e3c2d7609eb10
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/views.py
renancleyson-dev/addons-server
1db556b40260aa4c0c63e84c4d9e3c2d7609eb10
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/views.py
renancleyson-dev/addons-server
1db556b40260aa4c0c63e84c4d9e3c2d7609eb10
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from django import http from django.db.models import Prefetch from django.db.transaction import non_atomic_requests from django.shortcuts import redirect from django.utils.cache import patch_cache_control from django.utils.decorators import method_decorator from django.views.decorat...
38.638539
87
0.646436
2ac38356f6f97ecabbea7306007444c7ae54d0e4
60
py
Python
hello-world-jessica-e.py
egriswol/astr-119-section-assignments
6cbeb0397b6a1a9102e8efa771e8d9ed1d3fab18
[ "MIT" ]
2
2018-09-28T18:46:05.000Z
2018-09-28T19:00:27.000Z
hello-world-jessica-e.py
egriswol/astr-119-section-assignments
6cbeb0397b6a1a9102e8efa771e8d9ed1d3fab18
[ "MIT" ]
67
2018-09-26T06:39:43.000Z
2018-10-03T15:32:12.000Z
hello-world-jessica-e.py
egriswol/astr-119-section-assignments
6cbeb0397b6a1a9102e8efa771e8d9ed1d3fab18
[ "MIT" ]
62
2018-09-27T20:12:32.000Z
2018-10-03T23:53:47.000Z
#!/usr/bin/env python3 print("Hello from Jessica Epler.")
20
34
0.7
795bafe32cae3f6857cf4c37a329a860c727431e
760
py
Python
pddlrl/wrappers/preprocess.py
IBM/pddlrl
e057cc67426c91c9180286a67acad5b9a1ba7fc6
[ "MIT" ]
5
2022-03-24T16:47:21.000Z
2022-03-25T16:04:04.000Z
pddlrl/wrappers/preprocess.py
IBM/pddlrl
e057cc67426c91c9180286a67acad5b9a1ba7fc6
[ "MIT" ]
null
null
null
pddlrl/wrappers/preprocess.py
IBM/pddlrl
e057cc67426c91c9180286a67acad5b9a1ba7fc6
[ "MIT" ]
null
null
null
# This file is a part of PDDLRL project. # Copyright (c) 2020 Clement Gehring (clement@gehring.io) # Copyright (c) 2021 Masataro Asai (guicho2.71828@gmail.com, masataro.asai@ibm.com), IBM Corporation from typing import Callable from acme.wrappers import base import dm_env class PreprocessWrapper(base.EnvironmentWr...
29.230769
100
0.728947
2d0c2d6e9bfe585dab39a260b6f384a84215cc24
3,690
py
Python
zigzag.py
satuelisa/Forex
9209c925ffae1ad75c7fbdccb0d05b6701b84154
[ "MIT" ]
1
2020-12-14T19:15:29.000Z
2020-12-14T19:15:29.000Z
zigzag.py
satuelisa/Forex
9209c925ffae1ad75c7fbdccb0d05b6701b84154
[ "MIT" ]
null
null
null
zigzag.py
satuelisa/Forex
9209c925ffae1ad75c7fbdccb0d05b6701b84154
[ "MIT" ]
null
null
null
from sys import argv from math import fabs from period import before, after, setStart, setEnd setStart(2016, 9, 7) setEnd(2021, 9, 7) threshold = {3: 0.1, 2: 0.05, 1: 0.01} filename = argv[1] if 'stdout' not in argv: print('''set term postscript eps color font ",18" set size 2, 1.5 set ...
41
145
0.473984
cec70f81e9b814cfa15b48f3e20360d0dbaa02ec
2,509
py
Python
iliad/summarize.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
1
2022-03-24T20:32:54.000Z
2022-03-24T20:32:54.000Z
iliad/summarize.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
null
null
null
iliad/summarize.py
JamesBrofos/Iliad
2220e1e519f479e402072f80f4bc67e419842c4e
[ "MIT" ]
null
null
null
from collections import OrderedDict from typing import Optional, Sequence import arviz import numpy as np import pandas as pd def summarize(samples: np.ndarray, names: Optional[Sequence]=None, elapsed: Optional[float]=None): """Summarization code inspired by the NumPyro library. Copyright Contributors to th...
35.842857
98
0.588282
1c9b0cedb1d71760b822ce7af7bb88172b3206e0
1,398
py
Python
2021/day-9/part1.py
nairraghav/advent-of-code-2019
274a2a4a59a8be39afb323356c592af5e1921e54
[ "MIT" ]
null
null
null
2021/day-9/part1.py
nairraghav/advent-of-code-2019
274a2a4a59a8be39afb323356c592af5e1921e54
[ "MIT" ]
null
null
null
2021/day-9/part1.py
nairraghav/advent-of-code-2019
274a2a4a59a8be39afb323356c592af5e1921e54
[ "MIT" ]
null
null
null
def get_neighbors(row_index, column_index, width, length): neighbors = [] if row_index - 1 >= 0: neighbors.append((row_index - 1, column_index)) if row_index + 1 < width: neighbors.append((row_index + 1, column_index)) if column_index - 1 >= 0: neighbors.append((row_index, colu...
32.511628
122
0.67525
a9ef735afe56610f21870a2c79a191e6651412f2
3,286
py
Python
lib/spack/spack/test/cmd/test.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-07-03T22:53:51.000Z
2021-07-03T22:53:51.000Z
lib/spack/spack/test/cmd/test.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
lib/spack/spack/test/cmd/test.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-09-15T02:37:59.000Z
2020-09-21T04:34:38.000Z
# Copyright 2013-2020 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) from spack.main import SpackCommand spack_test = SpackCommand('test') cmd_test_py = 'lib/spack/spack/test/cmd/test.py' ...
34.229167
73
0.731893
01396221fa09dfc28ce098f48c5265a9312a113d
7,631
py
Python
image_slicer/main.py
ell-hol/image_slicer
2140cd5f72078ff0485b79705c5e58fddf938d35
[ "MIT" ]
null
null
null
image_slicer/main.py
ell-hol/image_slicer
2140cd5f72078ff0485b79705c5e58fddf938d35
[ "MIT" ]
null
null
null
image_slicer/main.py
ell-hol/image_slicer
2140cd5f72078ff0485b79705c5e58fddf938d35
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from math import sqrt, ceil, floor from PIL import Image from .helpers import get_basename class Tile(object): """Represents a single tile.""" def __init__(self, image, number, position, coords, filename=None): self.image = image self...
29.237548
87
0.588389
27cc99f6165d33472906a00c8a5aeb746f4d103c
363
py
Python
python/s4example/tests/test_fake.py
CMB-S4/s4example
ea5c2750263a2cdc594a129abc87dcd540e84105
[ "BSD-2-Clause" ]
null
null
null
python/s4example/tests/test_fake.py
CMB-S4/s4example
ea5c2750263a2cdc594a129abc87dcd540e84105
[ "BSD-2-Clause" ]
1
2020-02-12T17:20:26.000Z
2020-02-12T17:20:26.000Z
python/s4example/tests/test_fake.py
CMB-S4/s4example
ea5c2750263a2cdc594a129abc87dcd540e84105
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2020-2020 CMB-S4 Collaboration. # Full license can be found in the top level "LICENSE" file. """Fake package test source file. """ from unittest import TestCase from ..fake import fake_function class FakeTest(TestCase): def setUp(self): pass def tearDown(self): pass de...
17.285714
60
0.672176
e234b913472455c717436dfe3467c73eee486694
4,735
py
Python
processors/index.py
JonathanPierce/Algae
8fc42981f8a97a3ee9d9f71cb051621422150a08
[ "MIT" ]
18
2015-09-01T03:47:42.000Z
2021-01-28T21:49:09.000Z
processors/index.py
JonathanPierce/Algae
8fc42981f8a97a3ee9d9f71cb051621422150a08
[ "MIT" ]
5
2015-11-24T21:51:39.000Z
2016-01-04T18:59:43.000Z
processors/index.py
JonathanPierce/Algae
8fc42981f8a97a3ee9d9f71cb051621422150a08
[ "MIT" ]
4
2016-01-22T11:23:48.000Z
2018-02-22T23:41:27.000Z
import helpers.common as common from multiprocessing import Process import math class IndexStudent(): def __init__(self, student): self.student = student self.count = 1 class IndexEntry(): def __init__(self): self.weight = 0.0 self.students = [] def add(self, student): entry = self.contains(student) ...
25.594595
105
0.697994
0dae29c23b177e594591602e4b842ff5151b9ece
720
py
Python
tests/viz/test_time_slices.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
1
2021-07-12T08:58:07.000Z
2021-07-12T08:58:07.000Z
tests/viz/test_time_slices.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
tests/viz/test_time_slices.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
import holidays from ts_eval.viz.time_slices import mk_holiday HOLIDAY_TEST_LOCATION = dict(country="DE", prov="BW") def test_holiday_slice(xarray_2d__index_dt): country_holidays = holidays.CountryHoliday(**HOLIDAY_TEST_LOCATION) expected_holiday_dates = country_holidays[ xarray_2d__index_dt.dt.to...
28.8
87
0.726389
4715762a915cc9f4c28248079bdd1604d5218182
3,096
py
Python
tests/test_nodes_envelope.py
danstowell/signalflow
66cbe1d7b573312dc3a7435a154fbb10e47a24c5
[ "MIT" ]
61
2020-10-12T11:46:09.000Z
2022-02-07T04:26:05.000Z
tests/test_nodes_envelope.py
danstowell/signalflow
66cbe1d7b573312dc3a7435a154fbb10e47a24c5
[ "MIT" ]
26
2020-10-07T20:25:26.000Z
2022-03-25T11:40:57.000Z
tests/test_nodes_envelope.py
danstowell/signalflow
66cbe1d7b573312dc3a7435a154fbb10e47a24c5
[ "MIT" ]
6
2021-02-27T19:50:25.000Z
2021-11-09T11:02:20.000Z
from signalflow import Buffer, Envelope, EnvelopeRect, EnvelopeADSR, Impulse, OneTapDelay from signalflow import db_to_amplitude from . import graph from . import process_tree import numpy as np import pytest SIGNALFLOW_EXPONENTIAL_ENVELOPE_MIN_DB = -60 SIGNALFLOW_LINEAR_ENVELOPE_MIN = 0.0 def test_envelope_rect(gra...
45.529412
125
0.624031
d4b96f9a74fadbe0c43b98cdf302abf1813e5938
4,913
py
Python
snakeeyes/blueprints/billing/models/invoice.py
Pythonian/bsawf
3e422a81cfb1b157119473c20b94a9a01f8b9672
[ "MIT" ]
null
null
null
snakeeyes/blueprints/billing/models/invoice.py
Pythonian/bsawf
3e422a81cfb1b157119473c20b94a9a01f8b9672
[ "MIT" ]
null
null
null
snakeeyes/blueprints/billing/models/invoice.py
Pythonian/bsawf
3e422a81cfb1b157119473c20b94a9a01f8b9672
[ "MIT" ]
null
null
null
import datetime from utils.util_sqlalchemy import ResourceMixin from snakeeyes.extensions import db from snakeeyes.blueprints.billing.gateways.stripecom import \ Invoice as PaymentInvoice class Invoice(ResourceMixin, db.Model): __tablename__ = 'invoices' id = db.Column(db.Integer, primary_key=True) ...
32.536424
78
0.599023
4ad286ecceb1d4999ee6fa65d162295c2ed3b33b
390
py
Python
omaha_server/omaha_server/settings_google.py
IldarShukubaev/omaha-server
a2de53c5189eba4f426c638d0c017b7a48ce88bb
[ "Apache-2.0" ]
null
null
null
omaha_server/omaha_server/settings_google.py
IldarShukubaev/omaha-server
a2de53c5189eba4f426c638d0c017b7a48ce88bb
[ "Apache-2.0" ]
null
null
null
omaha_server/omaha_server/settings_google.py
IldarShukubaev/omaha-server
a2de53c5189eba4f426c638d0c017b7a48ce88bb
[ "Apache-2.0" ]
null
null
null
import os from .settings_prod import * STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' DEFAULT_FILE_STORAGE = 'storages.backends.gcloud.GoogleCloudStorage' STATIC_URL = '/static/' GS_AUTO_CREATE_BUCKET = True GS_BUCKET_NAME = os.environ.get('GS_BUCKET_NAME', 'omaha-server') GS_PROJECT_I...
30
77
0.812821
b6ffbb57185a68a9bf27b6eebbc12f1dd907db42
335
py
Python
chainercv/links/model/mobilenet/__init__.py
Manny27nyc/chainercv
7159616642e0be7c5b3ef380b848e16b7e99355b
[ "MIT" ]
1,600
2017-06-01T15:37:52.000Z
2022-03-09T08:39:09.000Z
chainercv/links/model/mobilenet/__init__.py
xiaolonghao/chainercv
1db5572aa4bac6c40fd811c51dd63f1b6ad57dcf
[ "MIT" ]
547
2017-06-01T06:43:16.000Z
2021-05-28T17:14:05.000Z
chainercv/links/model/mobilenet/__init__.py
xiaolonghao/chainercv
1db5572aa4bac6c40fd811c51dd63f1b6ad57dcf
[ "MIT" ]
376
2017-06-02T01:29:10.000Z
2022-03-13T11:19:59.000Z
from chainercv.links.model.mobilenet.expanded_conv_2d import ExpandedConv2D # NOQA from chainercv.links.model.mobilenet.mobilenet_v2 import MobileNetV2 # NOQA from chainercv.links.model.mobilenet.tf_conv_2d_bn_activ import TFConv2DBNActiv # NOQA from chainercv.links.model.mobilenet.tf_convolution_2d import TFConvolu...
67
87
0.856716
5ab64ae47ba36f0b442197b0f99e9fdf413b31bc
589
py
Python
musicscore/musicxml/types/complextypes/accidentaltext.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
2
2020-06-22T13:33:28.000Z
2020-12-30T15:09:00.000Z
musicscore/musicxml/types/complextypes/accidentaltext.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
37
2020-02-18T12:15:00.000Z
2021-12-13T20:01:14.000Z
musicscore/musicxml/types/complextypes/accidentaltext.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
null
null
null
from musicscore.musicxml.attributes.textformatting import TextFormatting from musicscore.musicxml.types.complextypes.complextype import ComplexType from musicscore.musicxml.types.simple_type import TypeAccidentalValue """ <xs:attribute name="smufl" type="smufl-accidental-glyph-name"/> """ class ComplexTypeAccidental...
39.266667
114
0.786078
4ec5209ffb9b8f181b04df8c10aace6c932469fd
1,070
py
Python
orbit_transfer/configs/trainer/simple_trainer.py
sinzlab/orbit_transfer
812d89af5c7ab26d9ea26766a4250ae023bb20b8
[ "MIT" ]
null
null
null
orbit_transfer/configs/trainer/simple_trainer.py
sinzlab/orbit_transfer
812d89af5c7ab26d9ea26766a4250ae023bb20b8
[ "MIT" ]
null
null
null
orbit_transfer/configs/trainer/simple_trainer.py
sinzlab/orbit_transfer
812d89af5c7ab26d9ea26766a4250ae023bb20b8
[ "MIT" ]
null
null
null
from typing import Dict, Tuple from nntransfer.configs import TrainerConfig from nntransfer.tables.nnfabrik import Trainer class SimpleTrainerConfig(TrainerConfig): config_name = "trainer" fn = "orbit_transfer.trainer.simple_trainer.trainer_fn" table = Trainer() def __init__(self, **kwargs): ...
28.918919
59
0.629907
baf9f76410695f6be75ee5ecf47c28e2cc76d7b5
3,641
py
Python
controllers/ayarlar_controller.py
tbattal/kackisivar
408ad215bdbedbdd2278c6452032529088dbc9c8
[ "MIT" ]
1
2020-12-13T20:18:48.000Z
2020-12-13T20:18:48.000Z
controllers/ayarlar_controller.py
tbattal/kackisivar
408ad215bdbedbdd2278c6452032529088dbc9c8
[ "MIT" ]
null
null
null
controllers/ayarlar_controller.py
tbattal/kackisivar
408ad215bdbedbdd2278c6452032529088dbc9c8
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QMessageBox from views.ayarlar_form import Ui_AyarlarForm from models.ayarlar import Ayarlar from models.kullanici import Kullanici # from datetime import time, datetime class AyarlarForm(QtWidgets.QWidget, Ui_AyarlarForm): def __init__(self,...
46.679487
358
0.655314
746771e8519cdc748777510f8cc73b3a286d1fd9
8,769
py
Python
components/dataset.py
anjmittu/tranX
51090e38372036eaa109eec74c507cdb61adcf01
[ "Apache-2.0" ]
421
2018-08-27T14:00:05.000Z
2022-03-21T18:15:21.000Z
components/dataset.py
anjmittu/tranX
51090e38372036eaa109eec74c507cdb61adcf01
[ "Apache-2.0" ]
34
2018-11-11T22:08:14.000Z
2021-12-21T02:04:06.000Z
components/dataset.py
anjmittu/tranX
51090e38372036eaa109eec74c507cdb61adcf01
[ "Apache-2.0" ]
106
2018-10-05T03:56:23.000Z
2022-03-18T18:32:52.000Z
# coding=utf-8 from collections import OrderedDict import torch import numpy as np try: import cPickle as pickle except: import pickle from torch.autograd import Variable from asdl.transition_system import ApplyRuleAction, ReduceAction from common.utils import cached_property from model import nn_utils cl...
38.292576
129
0.595735
61d0e929fb75a8c03f73a6595058c94741917856
1,718
py
Python
integrations/models.py
EddyAnalytics/eddy-backend
bc465996e51b9ebc3e498ad0d6434bac80b173a6
[ "Apache-2.0" ]
1
2021-09-24T07:52:08.000Z
2021-09-24T07:52:08.000Z
integrations/models.py
EddyAnalytics/eddy-backend
bc465996e51b9ebc3e498ad0d6434bac80b173a6
[ "Apache-2.0" ]
2
2021-05-25T22:16:18.000Z
2021-06-09T19:16:24.000Z
integrations/models.py
EddyAnalytics/eddy-backend
bc465996e51b9ebc3e498ad0d6434bac80b173a6
[ "Apache-2.0" ]
null
null
null
import requests from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django_mysql.models import JSONField from utils.exceptions import ConflictException integration_types = ['debezium'] def default(): return { 'host': 'eddy-connect-api', ...
36.553191
112
0.709546
e9f7af36ccb73c1ad1fafb4c44e2ed1ce0f9ea9c
1,461
py
Python
tzager/predictors.py
tzagerAI/tzager
a6787f02fde58babd9999867d2cc3ced94926da8
[ "MIT" ]
2
2021-01-25T17:05:59.000Z
2021-04-11T19:05:16.000Z
tzager/predictors.py
tzagerAI/tzager
a6787f02fde58babd9999867d2cc3ced94926da8
[ "MIT" ]
null
null
null
tzager/predictors.py
tzagerAI/tzager
a6787f02fde58babd9999867d2cc3ced94926da8
[ "MIT" ]
null
null
null
import pandas as pd import json import requests def from_xls(password, file_path): df = pd.read_excel(file_path) data = df.to_dict('dict') columns = df.columns entities = df['Entities'] samples_dict = {} for c in columns: if 'Sample' in c: samples_dict[c] = {} s...
27.566038
118
0.569473
7ca660302c2411e0499ba4da7ddb702928860586
3,161
py
Python
dvc/repo/params/show.py
asford/dvc
4ed55d00511ea3d9115b76c463e1a466408b11ef
[ "Apache-2.0" ]
null
null
null
dvc/repo/params/show.py
asford/dvc
4ed55d00511ea3d9115b76c463e1a466408b11ef
[ "Apache-2.0" ]
81
2021-04-13T08:02:09.000Z
2022-03-30T16:10:17.000Z
dvc/repo/params/show.py
asford/dvc
4ed55d00511ea3d9115b76c463e1a466408b11ef
[ "Apache-2.0" ]
2
2021-06-14T19:12:25.000Z
2021-06-14T19:12:29.000Z
import logging from collections import defaultdict from typing import TYPE_CHECKING, List from dvc.dependency.param import ParamsDependency from dvc.exceptions import DvcException from dvc.path_info import PathInfo from dvc.repo import locked from dvc.repo.collect import collect from dvc.scm.base import SCMError from ...
28.223214
79
0.647896
7c96c2878c78d5650f3d1907065cc17c4eb71f5c
59,691
py
Python
tensorflow/python/debug/lib/debug_data.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/debug/lib/debug_data.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/debug/lib/debug_data.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.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...
36.732923
80
0.684609
081a526bb4059874ac2363317b834e6202768e8f
8,587
py
Python
tests/test_direct_lingam.py
YanaZeng/lingam
c16caf564c9f4e43eead65405189ab7ac2ae3f0d
[ "MIT" ]
null
null
null
tests/test_direct_lingam.py
YanaZeng/lingam
c16caf564c9f4e43eead65405189ab7ac2ae3f0d
[ "MIT" ]
null
null
null
tests/test_direct_lingam.py
YanaZeng/lingam
c16caf564c9f4e43eead65405189ab7ac2ae3f0d
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from lingam.direct_lingam import DirectLiNGAM def test_fit_success(): # causal direction: x0 --> x1 --> x3 x0 = np.random.uniform(size=1000) x1 = 2.0 * x0 + np.random.uniform(size=1000) x2 = np.random.uniform(size=1000) x3 = 4.0 * x1 + np.random.un...
25.108187
84
0.512286
1f23238db238ed83ae7fce7fb0fdac08bb2e46ad
4,004
py
Python
salt/modules/data.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
2
2017-12-01T19:20:49.000Z
2018-10-03T23:54:12.000Z
salt/modules/data.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
1
2017-07-10T21:44:39.000Z
2017-07-10T21:44:39.000Z
salt/modules/data.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
1
2019-12-17T13:37:16.000Z
2019-12-17T13:37:16.000Z
""" Manage a local persistent data structure that can hold any arbitrary data specific to the minion """ import ast import logging import os import salt.payload import salt.utils.files log = logging.getLogger(__name__) def clear(): """ Clear out all of the data in the minion datastore, this function is ...
17.955157
73
0.576174
29caf0ee026e569be4106eed1b00171090441c6f
85
py
Python
src/main/AgentIF.py
kcallaghan1/undercovermusic
e1a90b119e0dd52b83c0e327898db1e80e2da947
[ "MIT" ]
null
null
null
src/main/AgentIF.py
kcallaghan1/undercovermusic
e1a90b119e0dd52b83c0e327898db1e80e2da947
[ "MIT" ]
21
2021-04-12T14:52:55.000Z
2021-04-15T16:01:18.000Z
src/main/AgentIF.py
kcallaghan1/undercovermusic
e1a90b119e0dd52b83c0e327898db1e80e2da947
[ "MIT" ]
2
2021-05-12T16:48:01.000Z
2021-05-26T16:10:07.000Z
class AgentIF: def __init__(self, numOfBars): self.numOfBars = numOfBars
21.25
34
0.682353
be490b8984db2e4affc44b6597e924dd68bfd414
834
py
Python
writablecte.py
aarondwi/CTE-vs-Explicit-Locking
a8552280a0f183a4cc12fe492b75f7272835415f
[ "MIT" ]
null
null
null
writablecte.py
aarondwi/CTE-vs-Explicit-Locking
a8552280a0f183a4cc12fe492b75f7272835415f
[ "MIT" ]
null
null
null
writablecte.py
aarondwi/CTE-vs-Explicit-Locking
a8552280a0f183a4cc12fe492b75f7272835415f
[ "MIT" ]
null
null
null
from threading import Thread from db_util import get_connection class WritableCte(Thread): def __init__(self, queue, pool, code): super().__init__() self.q = queue self.pool = pool self.code = code def run(self): while True: user_id = self.q.get() with get_connection(s...
26.0625
46
0.498801
557b3e5a719950dff0c48452e4e94ac2894b3306
28
py
Python
Aula 11/olamundo.py
eucgabriel/Melhor-Curso-de-Python
6c7392a9779e399a412aee331c28731d3887deca
[ "MIT" ]
null
null
null
Aula 11/olamundo.py
eucgabriel/Melhor-Curso-de-Python
6c7392a9779e399a412aee331c28731d3887deca
[ "MIT" ]
null
null
null
Aula 11/olamundo.py
eucgabriel/Melhor-Curso-de-Python
6c7392a9779e399a412aee331c28731d3887deca
[ "MIT" ]
null
null
null
print('\033[1;31mOlá Mundo')
28
28
0.714286
79810f96b07a641d9201db5f445a53677d7e2c17
16,170
py
Python
pyro/contrib/oed/eig.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
null
null
null
pyro/contrib/oed/eig.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
4
2019-01-31T17:54:03.000Z
2019-02-07T07:09:51.000Z
pyro/contrib/oed/eig.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import math import torch import pyro from pyro import poutine from pyro.contrib.autoguide import mean_field_guide_entropy from pyro.contrib.oed.search import Search from pyro.contrib.util import lexpand from pyro.infer import EmpiricalMarginal, Importan...
41.675258
117
0.679901
ed8d1388ba1466b3ba25a28e01b8a6044dbd2ba9
689
py
Python
cloudmesh/service/server.py
manjunathsivan/cm
fedc33b503e7fd59176678e775c024fbb5e952c0
[ "Apache-2.0" ]
null
null
null
cloudmesh/service/server.py
manjunathsivan/cm
fedc33b503e7fd59176678e775c024fbb5e952c0
[ "Apache-2.0" ]
1
2020-10-21T18:15:46.000Z
2020-10-21T18:15:46.000Z
cloudmesh/service/server.py
robludwig/cm
5b18012def16d4d845141798652bb11d5564e9db
[ "Apache-2.0" ]
null
null
null
""" Main module of the server file """ # see the example in https://github.com/cloudmesh-community/nist/tree/master/examples/flask-connexion-swagger from flask import jsonify import connexion # Create the application instance # TODO: # location = "~/.cloudmesh/openai this is still needs to be expanded" app = connex...
21.53125
109
0.712627
f9d33643698e3d4c482bcb582fa69fe7350f0062
91
py
Python
simple_messages.py
kuljotbiring/Python
743c93b91c5e4a4bf5066cf50e72e5a51d98d1ad
[ "MIT" ]
null
null
null
simple_messages.py
kuljotbiring/Python
743c93b91c5e4a4bf5066cf50e72e5a51d98d1ad
[ "MIT" ]
null
null
null
simple_messages.py
kuljotbiring/Python
743c93b91c5e4a4bf5066cf50e72e5a51d98d1ad
[ "MIT" ]
null
null
null
greeting = "Hello Kuljot!" print(greeting) greeting = "You are awesome!!" print(greeting)
15.166667
30
0.725275
d6dba17f694b590f7ebaf8ad5cd6651764c86572
68,267
py
Python
pyramid/tests/test_config/test_init.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
pyramid/tests/test_config/test_init.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
pyramid/tests/test_config/test_init.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
import unittest import warnings import os from pyramid.compat import im_func from pyramid.testing import skip_on from pyramid.tests.test_config import dummy_tween_factory from pyramid.tests.test_config import dummy_include from pyramid.tests.test_config import dummy_extend from pyramid.tests.test_config import dummy...
37.800111
87
0.607131
fd3349e64bf0b24d639a8fe065525a8465c91b04
650
py
Python
schematics_xmlelem/schema.py
Diggsey/python-schematics-xmlelem
31969310b8e8a7dcca83b854ea049419ce62f11f
[ "MIT" ]
null
null
null
schematics_xmlelem/schema.py
Diggsey/python-schematics-xmlelem
31969310b8e8a7dcca83b854ea049419ce62f11f
[ "MIT" ]
null
null
null
schematics_xmlelem/schema.py
Diggsey/python-schematics-xmlelem
31969310b8e8a7dcca83b854ea049419ce62f11f
[ "MIT" ]
null
null
null
class Schema(object): def __init__(self, name, tag_name, tag_case_sensitive, model, validators, attributes, children, content): self.name = name self.tag_name = tag_name self.tag_case_sensitive = tag_case_sensitive self.model = model self.validators = validators sel...
32.5
109
0.652308
a7eb610bd7283f40b74f2331bdd4c923e1a8afee
2,346
py
Python
day15/day15.py
opitt/advent-of-code-2020
cb56d44e45229886207c3df403e31014a4b300d9
[ "MIT" ]
2
2020-12-05T11:03:52.000Z
2021-04-06T07:15:03.000Z
day15/day15.py
opitt/advent-of-code-2020
cb56d44e45229886207c3df403e31014a4b300d9
[ "MIT" ]
null
null
null
day15/day15.py
opitt/advent-of-code-2020
cb56d44e45229886207c3df403e31014a4b300d9
[ "MIT" ]
null
null
null
# https://adventofcode.com/2020/day/15 def main(day): #deck = [0, 3, 6] #test input #deck = [1,3,6] #test input deck = [1, 0, 18, 10, 19, 6] # part 1 def simplesolution(deck, end): for round in range(len(deck)+1, end): if deck[-1] not in deck[:-1]: # the last nu...
35.014925
115
0.571185
d3268fe0abd9119bce5e574d234f06f335f8d855
4,980
py
Python
Trabalhos/Python/MiniEP/analisejdv.py
phelipes2000/Ola-Mundo
2a2188cbada1c20ca37c5c648756cffcd1420b4d
[ "MIT" ]
null
null
null
Trabalhos/Python/MiniEP/analisejdv.py
phelipes2000/Ola-Mundo
2a2188cbada1c20ca37c5c648756cffcd1420b4d
[ "MIT" ]
null
null
null
Trabalhos/Python/MiniEP/analisejdv.py
phelipes2000/Ola-Mundo
2a2188cbada1c20ca37c5c648756cffcd1420b4d
[ "MIT" ]
null
null
null
def imprimeTabuleiro(p1, p2, p3, p4, p5, p6, p7, p8, p9): """ Recebe os valores das nove posições do tabuleiro e imprime o tabuleiro """ #Complete o código da função print(f"{p7} | {p8} | {p9}") print("---------") print(f"{p4} | {p5} | {p6}") print("---------") print(f"{p1} | {p2} | ...
26.489362
74
0.422289
6bf16831eef1010a30ec25453e2130b518514132
1,251
py
Python
reckoner/meta.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
192
2019-07-25T02:19:28.000Z
2022-03-24T05:25:10.000Z
reckoner/meta.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
439
2019-07-15T20:44:59.000Z
2022-03-31T19:52:00.000Z
reckoner/meta.py
LynRodWS/reckoner
e477af228d04968ed64e2ccce6e943172ffd654f
[ "Apache-2.0" ]
16
2019-08-19T08:34:44.000Z
2022-01-16T20:23:13.000Z
# -- coding: utf-8 -- # pylint: skip-file # Copyright 2019 FairwindsOps Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
40.354839
111
0.741007
340b6fb05bbb406022182ee1fa8b9857617a8aae
10,019
py
Python
gpMgmt/test/behave_utils/cluster_setup.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/test/behave_utils/cluster_setup.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
6
2018-08-04T07:51:37.000Z
2018-11-26T07:09:44.000Z
gpMgmt/test/behave_utils/cluster_setup.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 import os import socket import inspect from gppylib.commands.base import Command class GpInitStandby(Command): """This is a wrapper for gpinitstandby.""" def __init__(self, standby_host, mdd=None): if not mdd: mdd = os.getenv('MASTER_DATA_DIRECTORY') cmd_str =...
40.727642
224
0.646372
ff6dae60334d36b23e428dd246dd80b8a4e8e2fd
10,888
py
Python
mne/io/fieldtrip/tests/test_fieldtrip.py
ragatti/mne-python
c6825a49c3452db616fc980d62d33f6dddf4cd65
[ "BSD-3-Clause" ]
1
2020-04-25T05:01:54.000Z
2020-04-25T05:01:54.000Z
mne/io/fieldtrip/tests/test_fieldtrip.py
ragatti/mne-python
c6825a49c3452db616fc980d62d33f6dddf4cd65
[ "BSD-3-Clause" ]
null
null
null
mne/io/fieldtrip/tests/test_fieldtrip.py
ragatti/mne-python
c6825a49c3452db616fc980d62d33f6dddf4cd65
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Authors: Thomas Hartmann <thomas.hartmann@th-ht.de> # Dirk Gütlin <dirk.guetlin@stud.sbg.ac.at> # # License: BSD (3-clause) import mne import os.path import pytest import copy import itertools import numpy as np from mne.datasets import testing from mne.io.fieldtrip.utils import NOIN...
39.882784
79
0.667708
af0445a9c15cf9c204a691c8a65d9a2972682053
18,672
py
Python
t2t_bert/utils/rnn/rnn_utils.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
34
2018-12-19T01:00:57.000Z
2021-03-26T09:36:37.000Z
t2t_bert/utils/rnn/rnn_utils.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
11
2018-12-25T03:37:59.000Z
2021-08-25T14:43:58.000Z
t2t_bert/utils/rnn/rnn_utils.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
9
2018-12-27T08:00:44.000Z
2020-06-08T03:05:14.000Z
# -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.python.ops import array_ops """Base RNN """ class BaseRNN(object): pass helper_doc="""\n[artf]> Implement Multi-layers RNN (vanilla version) Args: RNN: - num_units: int | required - batch_size: int | required - input_...
35.498099
103
0.51371
48024e54b4359b4aebbc6dbaece8c7929954b8ce
2,110
py
Python
rulm/models/n_gram/n_gram_container.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
rulm/models/n_gram/n_gram_container.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
rulm/models/n_gram/n_gram_container.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
from typing import Iterable, List from collections import defaultdict import pygtrie from allennlp.common.registrable import Registrable class NGramContainer(Registrable): def __getitem__(self, n_gram: Iterable[int]): raise NotImplementedError() def __setitem__(self, n_gram: Iterable[int], value: fl...
25.731707
70
0.670616
2dcafafa148d02b5abb68a3f4ef8477e9ec7af69
1,769
py
Python
3-ComputerVision/quick-point/formpy/test.py
jiuney/Multicampus_AI
39ba60a1daf7f344d6e4dd55f28d3ae1021eab4b
[ "MIT" ]
12
2019-09-11T01:46:37.000Z
2021-07-22T07:23:47.000Z
3-ComputerVision/quick-point/formpy/test.py
jiuney/Multicampus_AI
39ba60a1daf7f344d6e4dd55f28d3ae1021eab4b
[ "MIT" ]
null
null
null
3-ComputerVision/quick-point/formpy/test.py
jiuney/Multicampus_AI
39ba60a1daf7f344d6e4dd55f28d3ae1021eab4b
[ "MIT" ]
5
2019-10-25T04:53:52.000Z
2020-03-31T16:11:47.000Z
from PyQt5 import QtWidgets from PyQt5 import uic from PyQt5.QtGui import QIcon, QPixmap, QClipboard from PyQt5.QtWidgets import QApplication, QWidget, QInputDialog, QLineEdit, QFileDialog, QPushButton, QHBoxLayout, QDialog, QBoxLayout, QMainWindow from PyQt5.QtWebEngineWidgets import QWebEnginePage from PyQt5.QtWebEng...
37.638298
147
0.73827
ebfabe2113d882026970b59632a882b2c2938d82
11,087
py
Python
sql/mysql.py
k1tCooler/himasoft
546f11aafa9f17c36fc0f3bd98f3df5e4fe154b1
[ "MIT" ]
null
null
null
sql/mysql.py
k1tCooler/himasoft
546f11aafa9f17c36fc0f3bd98f3df5e4fe154b1
[ "MIT" ]
3
2021-03-18T20:24:09.000Z
2021-12-13T19:44:52.000Z
sql/mysql.py
k1tCooler/himasoft
546f11aafa9f17c36fc0f3bd98f3df5e4fe154b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import utils import config import pymysql from proxy import Proxy from sql.sql_base import SqlBase class MySql(SqlBase): def __init__(self, **kwargs): super(MySql, self).__init__(**kwargs) self.conn = pymysql.connect(**kwargs) self.cursor = self.co...
36.114007
116
0.510237
81e2ed823854ae473b376da90dd22f60d8d2d6bc
585
py
Python
Ex072.py
Fernando-Rodrigo/Exercicios
04fe641220f36df85a754b2944d60f245cf6cabd
[ "MIT" ]
1
2022-03-14T20:49:04.000Z
2022-03-14T20:49:04.000Z
Ex072.py
Fernando-Rodrigo/Exercicios
04fe641220f36df85a754b2944d60f245cf6cabd
[ "MIT" ]
null
null
null
Ex072.py
Fernando-Rodrigo/Exercicios
04fe641220f36df85a754b2944d60f245cf6cabd
[ "MIT" ]
null
null
null
"""Crie um programa que tenha uma tupla totalmente preenchida por uma contegem por extenso, de 0 até 20. Seu programa deverá ler um número pelo teclado(entre 0 e 20) e mostrá-lo por extenso.""" while True: numero = int(input('Digite um número inteiro entre 0 e 20: ')) if 0 <= numero <= 20: break numer...
53.181818
205
0.651282
9ea3563b479b48d2def87fbdd2e7bc0675b27023
11,359
py
Python
test/vttest.py
drcforbin/rwte
e1527369fa46c8ae92cd92269d3820c631771a8b
[ "MIT" ]
9
2017-06-25T03:01:04.000Z
2022-01-01T19:03:26.000Z
test/vttest.py
drcforbin/rwte
e1527369fa46c8ae92cd92269d3820c631771a8b
[ "MIT" ]
null
null
null
test/vttest.py
drcforbin/rwte
e1527369fa46c8ae92cd92269d3820c631771a8b
[ "MIT" ]
2
2019-03-07T21:18:44.000Z
2019-08-27T08:44:14.000Z
#!/usr/bin/python import os import sys import asyncio import tty import termios import fcntl import re import curses class Caps: def Caps(self): self.has_vt102 = False self.type = None #write = sys.stdout.write # #def color_test(): # text="xYz"; # Some test text # # write("\n ...
31.292011
80
0.553482
fc84ff1bab536158af0017495836645e50dc0f69
1,226
py
Python
2021/17/aoc2117b.py
JonasThorsell/AoC
f1fc00a2927336ffbef5f62675c76473c67d09d0
[ "MIT" ]
null
null
null
2021/17/aoc2117b.py
JonasThorsell/AoC
f1fc00a2927336ffbef5f62675c76473c67d09d0
[ "MIT" ]
null
null
null
2021/17/aoc2117b.py
JonasThorsell/AoC
f1fc00a2927336ffbef5f62675c76473c67d09d0
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Jonas Thorsell import sys import math tastrs = sys.stdin.readline().strip()[13:].split(', ') txmin = int(tastrs[0][2:].split('..')[0]) txmax = int(tastrs[0][2:].split('..')[1]) tymin = int(tastrs[1][2:].split('..')[0]) tymax = int(tastrs[1][2:].split('..')[1]) # y = v0y * t - 0.5 * t^2 ...
24.039216
72
0.495106
ee646b43bec4d4e8f0a5d277f8a686bcab2072d6
37,476
py
Python
module/kelas.py
riandakarizal/ITeung
2d3fc7e4974c9a9b67ff61f2a77a528988b55820
[ "MIT" ]
null
null
null
module/kelas.py
riandakarizal/ITeung
2d3fc7e4974c9a9b67ff61f2a77a528988b55820
[ "MIT" ]
null
null
null
module/kelas.py
riandakarizal/ITeung
2d3fc7e4974c9a9b67ff61f2a77a528988b55820
[ "MIT" ]
null
null
null
from lib import wa, numbers from datetime import datetime from time import sleep import config import pymysql import requests # def replymsg(driver, data): # log.logSaveIteungStart(data) # msg = data[3] # grp = data[1] # num = data[0] # msg = message.normalize(msg) # msgs = list(msg.split(" "...
35.122774
668
0.618129
6690ed03998b91b4b5360a0902daaea09ce5024d
1,459
py
Python
setup.py
DDevine/ufaas
c485eb207cda7b4b3675866b7252aed2520dbb5e
[ "Apache-2.0" ]
null
null
null
setup.py
DDevine/ufaas
c485eb207cda7b4b3675866b7252aed2520dbb5e
[ "Apache-2.0" ]
null
null
null
setup.py
DDevine/ufaas
c485eb207cda7b4b3675866b7252aed2520dbb5e
[ "Apache-2.0" ]
null
null
null
import os import sys from setuptools import setup, find_packages if sys.version_info < (3, 7, 0): sys.exit('Python 3.7.0 is the minimum required version') PROJECT_ROOT = os.path.dirname(__file__) long_description = "" with open(os.path.join(PROJECT_ROOT, 'README.rst')) as file_: long_description = file_.re...
27.528302
79
0.635367
c1c3bd1cd9d1841f164ddd3f69e0c340f541e7c0
83,133
py
Python
platform/bq/bq.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
platform/bq/bq.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
platform/bq/bq.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
1
2020-07-24T20:04:47.000Z
2020-07-24T20:04:47.000Z
#!/usr/bin/env python # # Copyright 2012 Google Inc. All Rights Reserved. """Python script for interacting with BigQuery.""" import cmd import codecs import datetime import httplib import json import os import pdb import pipes import platform import shlex import sys import time import traceback import types impor...
35.390805
89
0.657248
abf7212842c2dda39fdc4338327614c2aeec489c
598
py
Python
src/library/database.py
temportalflux/MelodyBot
f5172a6895b8dc4ee89bf6327fd8663456390861
[ "Apache-2.0" ]
null
null
null
src/library/database.py
temportalflux/MelodyBot
f5172a6895b8dc4ee89bf6327fd8663456390861
[ "Apache-2.0" ]
null
null
null
src/library/database.py
temportalflux/MelodyBot
f5172a6895b8dc4ee89bf6327fd8663456390861
[ "Apache-2.0" ]
null
null
null
import sqlalchemy from src.config import DATABASE_PATH from .model import * DatabaseSession = sqlalchemy.orm.sessionmaker() class Library(): def __init__(self, workbook_path, logger): import threading logger.info(f'Initializing library on thread {threading.get_ident()}') self.workbook_path = workbook_path ...
28.47619
73
0.780936
ae9edb8a14c50d835c1008ac15c4573b3b8bb78b
3,483
py
Python
answerme/qna/views.py
jite21/django-qna-system
f6725c7c90dd0cb7c98ea2713aebe7874bc30488
[ "MIT" ]
null
null
null
answerme/qna/views.py
jite21/django-qna-system
f6725c7c90dd0cb7c98ea2713aebe7874bc30488
[ "MIT" ]
null
null
null
answerme/qna/views.py
jite21/django-qna-system
f6725c7c90dd0cb7c98ea2713aebe7874bc30488
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views import generic from django.http import HttpResponseRedirect from django.urls import reverse from django.forms import ModelForm, Textarea from django.views.generic.edit import FormView, CreateView, UpdateView, DeleteView from .models import Question, Answer, Comment...
31.378378
105
0.68619
7cffda3e27b42460da74f0051ee76c81db28d9d4
43,195
py
Python
lib/googlecloudsdk/third_party/apis/bigtableadmin/v2/bigtableadmin_v2_client.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/bigtableadmin/v2/bigtableadmin_v2_client.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/bigtableadmin/v2/bigtableadmin_v2_client.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
"""Generated client library for bigtableadmin version v2.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.bigtableadmin.v2 import bigtableadmin_v2_messages as messages class BigtableadminV2(base_api.BaseApiClient): ""...
40.444757
536
0.700752
14fc01eea9c91ca25b27d859d7db73aabefd06d4
3,702
py
Python
python/ray/train/tests/test_batchpredictor_runtime.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/train/tests/test_batchpredictor_runtime.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/train/tests/test_batchpredictor_runtime.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
import gc import os import shutil import time from pathlib import Path from typing import Type import numpy as np import pytest import ray from ray.air.checkpoint import Checkpoint from ray.train.batch_predictor import BatchPredictor from ray.train.predictor import Predictor NUM_REPEATS = 3 @pytest.fixture def ray...
26.826087
85
0.669908
08ad4cf2ad05f5a2cbd089b48655bec721ff0dc3
2,132
py
Python
safedelete/tests/test_many2many_intermediate.py
davidastephens/django-safedelete
7776733d45b5c52fae1eccfc677e2f18c2aed9d3
[ "BSD-3-Clause" ]
null
null
null
safedelete/tests/test_many2many_intermediate.py
davidastephens/django-safedelete
7776733d45b5c52fae1eccfc677e2f18c2aed9d3
[ "BSD-3-Clause" ]
null
null
null
safedelete/tests/test_many2many_intermediate.py
davidastephens/django-safedelete
7776733d45b5c52fae1eccfc677e2f18c2aed9d3
[ "BSD-3-Clause" ]
null
null
null
"""These test uses models for django"s example for extra fields on many to many relationships """ from django.db import models from ..models import SafeDeleteModel from ..fields import SafeDeleteManyToManyField from .testcase import SafeDeleteTestCase class Person(models.Model): name = models.CharField(max_lengt...
30.898551
79
0.680113
6e82d1a961a8faf382561b804c92a652ec4986ef
1,075
py
Python
tests/test_parser_publish.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tests/test_parser_publish.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tests/test_parser_publish.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
import unittest try: from unittest import mock except ImportError: import mock import argparse from tabcmd.parsers.publish_parser import PublishParser from .common_setup import * commandname = 'Publish' class PublishParserTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.parser...
30.714286
90
0.732093
3dcd42ebc738f808fa6eead75a3f4db5fc7f3199
17,173
py
Python
tensorflow_probability/python/distributions/relaxed_onehot_categorical.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2020-07-12T22:40:42.000Z
2020-07-12T22:40:42.000Z
tensorflow_probability/python/distributions/relaxed_onehot_categorical.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
2
2019-08-01T18:31:41.000Z
2019-08-01T19:42:15.000Z
tensorflow_probability/python/distributions/relaxed_onehot_categorical.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2020-04-17T18:01:47.000Z
2020-04-17T18:01:47.000Z
# Copyright 2018 The TensorFlow Probability 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 o...
42.507426
80
0.71659