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
1c9ab8626c73eb981e0efb1b27bebdcbc16c0d5d
434
py
Python
chroma_core/models/client_certificate.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_core/models/client_certificate.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_core/models/client_certificate.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from django.db import models class ClientCertificate(models.Model): host = models.ForeignKey("ManagedHost") serial = models.CharField(m...
25.529412
52
0.709677
1c9b00e389a97c9561b9a2acde4d1b0368ed9090
5,390
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_se_linux_options.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_se_linux_options.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_se_linux_options.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1SEL...
27.085427
124
0.562152
1c9b4ec4bb07a42cb7563fc354303c545076b5a5
7,707
py
Python
pims/ffmpeg_reader.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
208
2015-02-15T19:08:15.000Z
2022-03-24T09:35:04.000Z
pims/ffmpeg_reader.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
264
2015-01-07T10:54:33.000Z
2022-03-24T12:46:07.000Z
pims/ffmpeg_reader.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
60
2015-04-15T14:12:43.000Z
2021-12-13T15:43:38.000Z
# The MIT License (MIT) # # Copyright (c) 2014 Zulko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
31.979253
79
0.615155
1c9b85e4c83f82a524611cf69d4588539c073231
18,267
bzl
Python
src/main/starlark/builtins_bzl/common/cc/cc_helper.bzl
JayBazuzi/bazel
c5a1f8eb2e970c018c530e14c50918bee58618f8
[ "Apache-2.0" ]
1
2022-02-04T05:06:03.000Z
2022-02-04T05:06:03.000Z
src/main/starlark/builtins_bzl/common/cc/cc_helper.bzl
acidburn0zzz/bazel
308ed671fba4ddb5c56cf0f7f74f828f7c1c1b85
[ "Apache-2.0" ]
null
null
null
src/main/starlark/builtins_bzl/common/cc/cc_helper.bzl
acidburn0zzz/bazel
308ed671fba4ddb5c56cf0f7f74f828f7c1c1b85
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Bazel 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 applicable la...
39.538961
166
0.716264
1c9b9cf243c58ad638d25b43880e60cead9799da
203
py
Python
python-src/graphoire/chromatic.py
ccorbell/graphoire
566b0a27a9d6b87c5952bcc6e257a6d90621ca06
[ "Apache-2.0" ]
null
null
null
python-src/graphoire/chromatic.py
ccorbell/graphoire
566b0a27a9d6b87c5952bcc6e257a6d90621ca06
[ "Apache-2.0" ]
null
null
null
python-src/graphoire/chromatic.py
ccorbell/graphoire
566b0a27a9d6b87c5952bcc6e257a6d90621ca06
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 9 08:12:34 2021 @author: Chrisotpher Corbell """ from graphoire.Graph import Graph def greedyColoring(graph: Graph): pass
12.6875
35
0.669951
1c9ba8e0fb6cf7c53ec4a49e3007651960a5e983
5,306
py
Python
tests/data_tests/navigable_dict_test.py
alueschow/polymatheia
e46a38b3686139bbab3a2fcfaa914d4ca938654e
[ "MIT" ]
3
2020-09-15T15:15:34.000Z
2021-06-15T10:35:07.000Z
tests/data_tests/navigable_dict_test.py
alueschow/polymatheia
e46a38b3686139bbab3a2fcfaa914d4ca938654e
[ "MIT" ]
7
2020-09-03T12:53:34.000Z
2020-10-05T09:14:29.000Z
tests/data_tests/navigable_dict_test.py
alueschow/polymatheia
e46a38b3686139bbab3a2fcfaa914d4ca938654e
[ "MIT" ]
2
2020-10-13T09:12:21.000Z
2021-04-15T14:19:06.000Z
"""Tests for the :class:`~polymatheia.data.NavigableDict`.""" import json import pytest from polymatheia.data import NavigableDict def test_basic_get_value(): """Test that accessing a single value works.""" tmp = NavigableDict({'a': 1}) assert tmp.a == 1 assert tmp['a'] == 1 assert tmp['a'] == tm...
29.808989
98
0.603656
1c9bb68088a339570fb15ea07ed72ae057ebfcf3
3,297
py
Python
examples/getjsondata.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
1
2021-06-22T05:33:08.000Z
2021-06-22T05:33:08.000Z
examples/getjsondata.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
examples/getjsondata.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from modules.detection.instance import Instance get_data = True if get_data: import os import ta...
39.25
233
0.574765
1c9bc8c25aa60ad1bb03a33a3701349b202a496c
3,279
py
Python
panda_prospecting/panda_prospecting/settings.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
null
null
null
panda_prospecting/panda_prospecting/settings.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
10
2017-06-09T18:47:26.000Z
2019-11-28T15:53:48.000Z
panda_prospecting/panda_prospecting/settings.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
null
null
null
""" Django settings for panda_prospecting project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
25.818898
91
0.698689
1c9bcd18dba9444e4e1396af71b385f62139af8d
2,366
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/models/lease_container_request.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/models/lease_container_request.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/models/lease_container_request.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
41.508772
78
0.636517
1c9becd31e1ce45b64a805c21ce31b0430488660
2,848
py
Python
hw_asr/model/crnn.py
no-brainer/asr-homework
5fafd51ea2ca90da54dad335dd8fd3c44f6f97b5
[ "MIT" ]
null
null
null
hw_asr/model/crnn.py
no-brainer/asr-homework
5fafd51ea2ca90da54dad335dd8fd3c44f6f97b5
[ "MIT" ]
null
null
null
hw_asr/model/crnn.py
no-brainer/asr-homework
5fafd51ea2ca90da54dad335dd8fd3c44f6f97b5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from hw_asr.base import BaseModel from hw_asr.model.utils import get_same_padding class ResidualBlock(nn.Module): # https://arxiv.org/pdf/1603.05027.pdf def __init__(se...
32
114
0.589537
1c9bfb12a697f42a0e3a97d16c1e5d9f1bfedc09
1,158
py
Python
aula9/aula9_exercicio.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula9/aula9_exercicio.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula9/aula9_exercicio.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Crie um programa que: # 1- Leia dois numeros inteiros # 2- Calcule a soma entre os dois numeros atraves de um metodo # 3- Calcule a subtração entre os dois numeros atraves de um metodo # 4- Calcule a multiplicação entre os dois numeros atraves de um metodo # 5- Calcule a divisão inteira entre os dois numeros atraves ...
42.888889
84
0.733161
1c9c097b8691797d949ea7a625afdab26b3a2334
5,025
py
Python
tools/views/stories.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/views/stories.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/views/stories.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from django.contrib import messages from django.core.files.storage import default_storage from tools.forms import StoryForm from tools.models import Tool, Story, CategoryGroup, StoryOverviewPage fr...
39.257813
150
0.678607
1c9c1c6f04c9d9c3fb95bbf4cde74e710ebc96f4
874
py
Python
app.py
alex-marcozzi/SSB2
cf80e4164893e1d86e9dddb93281e02c524b66b5
[ "MIT" ]
null
null
null
app.py
alex-marcozzi/SSB2
cf80e4164893e1d86e9dddb93281e02c524b66b5
[ "MIT" ]
null
null
null
app.py
alex-marcozzi/SSB2
cf80e4164893e1d86e9dddb93281e02c524b66b5
[ "MIT" ]
null
null
null
# Title: app.py # Description: Contains the main app for Super Square Boy 2. # Author: Alexander Marcozzi # Date: 06/12/2021 import sys, pygame from game.state_engine import StateEngine pygame.init() pygame.mixer.init() infoObject = pygame.display.Info() pygame.display.set_mode((infoObject.current_w, infoObject.curre...
28.193548
73
0.744851
1c9c2c7f01850015ca8a68a1b07a9f9d04e1041f
353
py
Python
tests/megawing/papiliopro/inout.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/megawing/papiliopro/inout.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/megawing/papiliopro/inout.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
import magma as m from loam.boards.papiliopro import PapilioPro papilio = PapilioPro() papilio.C[0].rename('SWITCH0').input().on() papilio.C[1].rename('SWITCH1').input().on() papilio.C[8].rename('LED0').output().on() papilio.C[9].rename('LED1').output().on() main = papilio.main() m.wire( main.SWITCH0, main.LED0 ) m....
23.533333
45
0.696884
1c9c31e0b24a98a5f5af0497ef5ed21e7bc07025
3,177
py
Python
jumpscale/packages/tfgrid_solutions/scripts/threebot/velero.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/packages/tfgrid_solutions/scripts/threebot/velero.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/packages/tfgrid_solutions/scripts/threebot/velero.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from jumpscale.loader import j import os import gevent import hashlib vdc = j.sals.vdc.find(list(j.sals.vdc.list_all())[0]) BACKUP_CONFIG = os.environ.get("BACKUP_CONFIG", "{}") BACKUP_CONFIG = j.data.serializers.json.loads(BACKUP_CONFIG) ak = BACKUP_CONFIG.get("ak") sk = BACKUP_CONFIG.get("sk") url = BACKUP_CONFIG.ge...
40.21519
316
0.614731
1c9c3c3717d90b14477fc0dfaf528f97db4dff1a
587
py
Python
mandala/session.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
9
2022-02-22T19:24:01.000Z
2022-03-23T04:46:41.000Z
mandala/session.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
mandala/session.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
from .common_imports import * from .util.logging_ut import set_logging_level from .util.common_ut import get_uid from .core.config import CoreConfig class Session(object): ### debugging def setup_logging(self, level:str='info'): set_logging_level(level=level) sess = Session() def get_scratch...
29.35
69
0.696763
1c9c56308a63c4da270aa711508ca2a34ad4a9db
630
py
Python
office365/runtime/client_result.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/runtime/client_result.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/runtime/client_result.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_object import ClientObject from office365.runtime.client_value import ClientValue class ClientResult(object): """Client result""" def __init__(self, value): self._value = value @property def value(self): return self._value @value.setter def valu...
26.25
89
0.677778
1c9c5f37f234c377dbaeec22ff6d2334854f6474
2,214
py
Python
oscar/lib/python2.7/site-packages/django/contrib/gis/utils/wkt.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/utils/wkt.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/utils/wkt.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Utilities for manipulating Geometry WKT. """ import warnings from django.utils import six from django.utils.deprecation import RemovedInDjango20Warning def precision_wkt(geom, prec): """ Returns WKT text of the geometry according to the given precision (an integer or a string). If the p...
33.044776
89
0.600723
1c9c6871fccc0469aaa55a5d3b98d76e856a7f26
10,812
py
Python
test/test_check_twitch.py
danielBelenky/Twivler
542c85d3e42c3d31dd350ab213b8a2c857fdb3ce
[ "MIT" ]
null
null
null
test/test_check_twitch.py
danielBelenky/Twivler
542c85d3e42c3d31dd350ab213b8a2c857fdb3ce
[ "MIT" ]
null
null
null
test/test_check_twitch.py
danielBelenky/Twivler
542c85d3e42c3d31dd350ab213b8a2c857fdb3ce
[ "MIT" ]
null
null
null
import pytest import twitch_rivals.check_twitch as ct from collections import namedtuple import datetime StreamInfo = namedtuple('StreamInfo', 'id game preview') ChannelInfo = namedtuple('ChannelInfo', 'id name display_name game status logo video_banner profile_banner' ' profil...
46.403433
193
0.551979
1c9c81827e0f251c8ae7bc47242334fb202835ac
7,726
py
Python
tensorflow/contrib/tensor_forest/python/tensor_forest_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/tensor_forest/python/tensor_forest_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/tensor_forest/python/tensor_forest_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...
37.687805
89
0.616878
1c9c9677b41377335e0b9a7a5f41a56ea267a997
141
py
Python
avalon/storyboardpro/workio.py
simonebarbieri/avalon-core
cfd4191e364b47de7364096f45d9d9d9a901692a
[ "MIT" ]
5
2019-01-09T09:05:16.000Z
2021-12-11T19:36:22.000Z
avalon/storyboardpro/workio.py
jrsndl/avalon-core
82d5b8137eea3b49d4781a4af51d7f375bb9f628
[ "MIT" ]
106
2018-11-11T23:48:18.000Z
2022-03-23T16:21:18.000Z
avalon/storyboardpro/workio.py
Ellipsanime/avalon-core
a9fbf2982506f85ee58f519f63b4379d7a6312c0
[ "MIT" ]
6
2020-06-11T10:52:27.000Z
2021-11-22T12:08:55.000Z
"""Host API required Work Files tool""" from .. import toonboom def save_file(filepath): toonboom.save_file(filepath, "storyboardpro")
20.142857
49
0.737589
1c9c9f00b9d5c548435e007e97bec9f47f636337
8,934
py
Python
impacket/testcases/dot11/test_FrameManagementReassociationRequest.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameManagementReassociationRequest.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameManagementReassociationRequest.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") from dot11 import Dot11, Dot11Types, Dot11ManagementFrame, Dot11ManagementReassociationRequest from ImpactDecoder import RadioTapDecoder from binascii import hexlify import unittest class TestDot11Managemen...
50.761364
439
0.72308
1c9cceb61d47be30b725e2ca36ff26375479512f
9,765
py
Python
hops/beam.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
null
null
null
hops/beam.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
1
2021-02-25T11:46:54.000Z
2021-02-25T11:46:54.000Z
hops/beam.py
robzor92/hops-util-py
88540a0c2b4e366fe6d2acb0441cea9378150c01
[ "Apache-2.0" ]
null
null
null
""" Utility functions to manage the lifecycle of TensorFlow Extended (TFX) and Beam. """ import subprocess import os import socket from random import randint import time import atexit from hops import constants, util, hdfs as hopsfs, jobs # Dict of running jobserver and their flink clusters clusters = [] cleanup_ru...
42.828947
148
0.631746
1c9d05a4a0501272b755f1f4c8ee4e2cbbbf6ac7
1,839
py
Python
codecheck/reporter.py
yugabyte/codecheck
7d87f918f9e192564d080217cd19d30eed91d89d
[ "Apache-2.0" ]
2
2021-03-04T22:08:14.000Z
2021-06-27T15:37:12.000Z
codecheck/reporter.py
mbautin/codecheck
824cef985ca720b58f8da27e255073f619c1b430
[ "Apache-2.0" ]
null
null
null
codecheck/reporter.py
mbautin/codecheck
824cef985ca720b58f8da27e255073f619c1b430
[ "Apache-2.0" ]
1
2021-02-13T22:03:45.000Z
2021-02-13T22:03:45.000Z
# Copyright (c) Yugabyte, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
30.147541
99
0.619358
1c9d179e3c55ad07fcf709f66028c91c20e8eea0
61,484
py
Python
tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 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...
41.997268
94
0.695937
1c9d1cd2cff822f4de523c5a3f641493164f03dd
1,943
py
Python
sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_cloud_event_using_dict_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_cloud_event_using_dict_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_cloud_event_using_dict_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ FILE:...
38.86
99
0.640762
1c9d498bdc2858d03f04c99553a6de2cac9d5488
1,679
py
Python
wordcloudapi/wordcloudapp/timeseries.py
Lambda-School-Labs/yelp-dataset-challenge-2-ds
0823f8d57791d7183a169979fbd166b341ccd61f
[ "MIT" ]
2
2019-11-06T01:00:00.000Z
2019-12-05T17:29:27.000Z
wordcloudapi/wordcloudapp/timeseries.py
AkiBae4891/yelp-dataset-challenge-2-ds
fa7cace65e502e335bdb804519e2b3ec5b6e77c6
[ "MIT" ]
20
2019-11-12T00:33:46.000Z
2019-12-12T12:33:54.000Z
wordcloudapi/wordcloudapp/timeseries.py
AkiBae4891/yelp-dataset-challenge-2-ds
fa7cace65e502e335bdb804519e2b3ec5b6e77c6
[ "MIT" ]
6
2019-11-08T14:11:49.000Z
2021-08-02T02:42:13.000Z
import numpy as np import pandas as pd import ast from collections import Counter from .models import DB, reviews def wc_count(docs): """Count the occurance of each word and rank """ total=len(docs) wc = pd.DataFrame({'word':docs, 'count':np.ones(len(docs))}) wc = wc.groupby('word').sum() wc['p...
36.5
94
0.610482
1c9d4d5f2c98b1d988310b5a4b8ceeb674253729
13,779
py
Python
symbolic_pymc/theano/ops.py
brandonwillard/symbolic-pymc
84e8d612c714f502f8d188c1766498f4ff7beecf
[ "Apache-2.0" ]
59
2019-02-16T21:07:48.000Z
2022-03-09T01:01:45.000Z
symbolic_pymc/theano/ops.py
brandonwillard/symbolic-pymc
84e8d612c714f502f8d188c1766498f4ff7beecf
[ "Apache-2.0" ]
56
2019-02-20T09:06:04.000Z
2021-01-08T21:22:23.000Z
symbolic_pymc/theano/ops.py
brandonwillard/symbolic-pymc
84e8d612c714f502f8d188c1766498f4ff7beecf
[ "Apache-2.0" ]
9
2019-02-22T06:22:31.000Z
2021-07-05T10:05:35.000Z
import numpy as np import theano import theano.tensor as tt from collections.abc import Iterable, ByteString from warnings import warn from copy import copy from theano.tensor.raw_random import RandomStateType def param_supp_shape_fn(ndim_supp, ndims_params, dist_params, rep_param_idx=0, param_shapes=None): """...
35.604651
98
0.600334
1c9d639761a5bd0a98f4145a3185c4510e8a8dee
1,348
py
Python
examples/plotting/plot_2d/plot_spectrum_pts.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
examples/plotting/plot_2d/plot_spectrum_pts.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
examples/plotting/plot_2d/plot_spectrum_pts.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python # Create a contour plot of a 2D NMRPipe spectrum import nmrglue as ng import numpy as np import matplotlib.pyplot as plt import matplotlib.cm # plot parameters cmap = matplotlib.cm.Blues_r # contour map (colors to use for contours) contour_start = 30000 # contour level start value cont...
28.083333
74
0.697329
1c9d7afae99d9e1df147e36f8024925b2916c3e1
3,278
py
Python
Chapter12/01-chapter-content/opencv/blob_from_images/blob_from_images_cropping.py
ProgrammerWaterworth/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
2
2021-06-29T22:00:47.000Z
2021-06-30T02:46:19.000Z
Chapter12/01-chapter-content/opencv/blob_from_images/blob_from_images_cropping.py
araneto/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
null
null
null
Chapter12/01-chapter-content/opencv/blob_from_images/blob_from_images_cropping.py
araneto/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
1
2019-10-03T20:34:43.000Z
2019-10-03T20:34:43.000Z
""" Understanding cv2.dnn.blobFromImages() and cv2.dnn.imagesFromBlob() in OpenCV with cropping """ # Import required packages: import cv2 import numpy as np from matplotlib import pyplot as plt def get_cropped_img(img): """Returns the cropped image""" # Create a copy of the image: img_copy = img.copy()...
35.247312
118
0.687309
1c9db6510755c1e9d64c0728b69430cccb88147c
561
py
Python
SCRAPE/Lib/site-packages/ipykernel/_version.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
2
2022-02-26T11:19:40.000Z
2022-03-28T08:23:25.000Z
SCRAPE/Lib/site-packages/ipykernel/_version.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/ipykernel/_version.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
""" store the current version info of the server. """ import re # Version string must appear intact for tbump versioning __version__ = '6.9.2' # Build up version_info tuple for backwards compatibility pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)' match = re.match(pattern, __version__) parts = ...
29.526316
69
0.705882
1c9dbc1e8faf88fa7f1f6e8302d31929407c27ad
1,016
py
Python
github/github_client.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:33:37.000Z
2022-03-16T21:33:37.000Z
github/github_client.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
null
null
null
github/github_client.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:28:06.000Z
2022-03-16T21:28:06.000Z
from typing import Optional from github.methods import Methods from github.types import Headers, Object, PrivateUser from .scaffold import Scaffold class GithubClient(Methods, Scaffold, Object): username: Optional['str'] token: Optional['str'] user: Optional['PrivateUser'] headers: Optional['Headers...
23.090909
60
0.58563
1c9deb3421405ef64f38a2825589c64df415acc7
3,546
py
Python
Tools/Scripts/webkitpy/common/webkit_finder.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/common/webkit_finder.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/common/webkit_finder.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012 Google Inc. 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 of conditions and the ...
49.943662
133
0.734067
1c9e1ca5e1d7c74866ed75bc3bbe4c3acea5869f
245
py
Python
torndown/__init__.py
cjndzh/torndown
ea78d0f8a0c7b7abdeed4f4cdb634e06d584df33
[ "Apache-2.0" ]
1
2015-09-18T04:11:16.000Z
2015-09-18T04:11:16.000Z
torndown/__init__.py
cjndzh/torndown
ea78d0f8a0c7b7abdeed4f4cdb634e06d584df33
[ "Apache-2.0" ]
1
2017-02-23T23:18:40.000Z
2017-02-23T23:18:40.000Z
torndown/__init__.py
cjndzh/torndown
ea78d0f8a0c7b7abdeed4f4cdb634e06d584df33
[ "Apache-2.0" ]
2
2017-06-05T22:36:19.000Z
2021-10-31T08:31:37.000Z
version = VERSION = __version__ = '0.0.1' import debris from torndown.handler import TorndownHandler def clear(): """Simply clear all torndown data. Each page will rebuild on their own. """ debris.storage.remove("torndown:*")
20.416667
44
0.693878
1c9e3a1ab85a074a1de9253eded4f697d83cbfe3
17,484
py
Python
python/doichecklist/doichecklist_doi_2020-09-14.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/doichecklist/doichecklist_doi_2020-09-14.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/doichecklist/doichecklist_doi_2020-09-14.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """doichecklist doichecklist prints a checklist for DOI registrations to an output file in the same directory. This script works with gin-doi versions until the 2020-09-14 release. Usage: doichecklist [--config CONFIG_FILE] Options: --config CONFIG_FILE yaml file -h --help ...
34.215264
161
0.648593
1c9e3dfe4f2d0e782e8be07de57c10832cfa7a08
1,615
py
Python
freezeyt/url_finders.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
7
2020-09-23T15:27:09.000Z
2022-03-20T19:31:41.000Z
freezeyt/url_finders.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
160
2020-07-06T17:58:35.000Z
2022-03-30T13:06:07.000Z
freezeyt/url_finders.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
10
2020-07-06T18:05:10.000Z
2022-03-12T21:20:11.000Z
import xml.etree.ElementTree from typing import Iterable, BinaryIO, List, Optional, Tuple import html5lib import css_parser from werkzeug.datastructures import Headers from werkzeug.http import parse_options_header def get_css_links( css_file: BinaryIO, base_url: str, headers: Optional[List[Tuple[str, s...
28.333333
76
0.669969
1c9e3ff085b343c379e045dd70a0c40b946af7c3
1,669
py
Python
modules/dbnd/test_dbnd/tracking/test_log_exception_to_server.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/test_dbnd/tracking/test_log_exception_to_server.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/test_dbnd/tracking/test_log_exception_to_server.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import pytest from mock import patch from dbnd import new_dbnd_context from dbnd._core.log.external_exception_logging import capture_tracking_exception class TestException(Exception): pass @capture_tracking_exception def raising_function(): raise TestException("some error message") class TestLogExceptio...
34.061224
84
0.614739
1c9e597a4bb7b6952be41dbe34fea8e12bd41ce8
2,110
py
Python
brody_lab_to_nwb/convert_poisson_clicks.py
catalystneuro/brody-lab-to-nwb
bb792591eae988b2dec1a3a608979832da8f884d
[ "MIT" ]
null
null
null
brody_lab_to_nwb/convert_poisson_clicks.py
catalystneuro/brody-lab-to-nwb
bb792591eae988b2dec1a3a608979832da8f884d
[ "MIT" ]
10
2021-05-24T22:17:27.000Z
2022-03-30T05:42:02.000Z
brody_lab_to_nwb/convert_poisson_clicks.py
catalystneuro/brody-lab-to-nwb
bb792591eae988b2dec1a3a608979832da8f884d
[ "MIT" ]
null
null
null
"""Authors: Cody Baker.""" from pathlib import Path from isodate import duration_isoformat from datetime import timedelta, datetime from brody_lab_to_nwb import PoissonClicksNWBConverter # Point to the base folder path for both recording data and Virmen base_path = Path("E:/Brody/Chronic Rat Neuropixels (Poisson Clic...
38.363636
109
0.777251
1c9e654a7cdcc952f3440adfc5bdcd375321a8d9
512
py
Python
tests/test_code.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_code.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_code.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
null
null
null
import unittest from artifact_py import code class TestCode(unittest.TestCase): def setUp(self): self.invalid = [] self.impls = {} def test_re_single(self): text = "#SPC-single" result = [m.group(0) for m in code.NAME_TAG_RE.finditer(text)] assert ["#SPC-single"] == r...
25.6
70
0.611328
1c9e7ec8436f88d01ba018c5a05349859d0e7408
8,695
py
Python
codes/src/neural_networks/nn_vae_full.py
hwangoh/uq-vae
382548e6f6dd7f9d72feff0e0752beec871db348
[ "MIT" ]
2
2021-07-28T16:47:18.000Z
2021-08-03T00:53:58.000Z
codes/src/neural_networks/nn_vae_full.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
null
null
null
codes/src/neural_networks/nn_vae_full.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
2
2021-09-29T08:31:46.000Z
2021-11-07T10:26:45.000Z
'''Class for the UQ-VAE when the posterior model possesses a full covariance In preparation for constructing the neural network, this code will: 1) Construct the architecture list that stores the number of nodes in each layer of the neural network 2) Construct the activations list that stores the activa...
50.847953
98
0.537665
1c9eba1b8eb604692e9b1c17b4f201445d98521d
2,144
py
Python
src/sentry/projectoptions/defaults.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/sentry/projectoptions/defaults.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/sentry/projectoptions/defaults.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from sentry.projectoptions import register # latest epoch LATEST_EPOCH = 4 # grouping related configs # # The default values are hardcoded because some grouping configs might # only exists temporarily for testing purposes. If we delete them from # the codebase and a customer st...
35.733333
99
0.76306
1c9edc58458b08b8c9f9f08dc329e48ee6ec3698
919
py
Python
appengine/components/test_support/test_env.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/test_support/test_env.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/test_support/test_env.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2013 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import os import sys # /appengine/ ROOT_DIR = os.path.dirname( os.path.dirname(os.path.realpath(os.path.abspath(__file__)))) _INITIALIZED = ...
28.71875
75
0.739935
1c9f07c02f275de546c7a809624f1cfc2f8adf72
7,550
py
Python
src/third_party/wiredtiger/test/suite/test_compat01.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
1
2015-11-08T17:16:08.000Z
2015-11-08T17:16:08.000Z
src/third_party/wiredtiger/test/suite/test_compat01.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_compat01.py
marcelodsx/mongo
324839c0c0c2b294a44d130105797ccdbb3b17a9
[ "Apache-2.0" ]
1
2021-06-18T05:00:06.000Z
2021-06-18T05:00:06.000Z
#!/usr/bin/env python # # Public Domain 2014-2017 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
41.256831
92
0.635364
1c9f13be11eb896c2c1242024d9412c614312584
399
py
Python
tests/test_comment.py
Carolwanzuu/pitch_app
accd92963cbedb39c53bef5f1851dc11a4ff743a
[ "MIT" ]
null
null
null
tests/test_comment.py
Carolwanzuu/pitch_app
accd92963cbedb39c53bef5f1851dc11a4ff743a
[ "MIT" ]
null
null
null
tests/test_comment.py
Carolwanzuu/pitch_app
accd92963cbedb39c53bef5f1851dc11a4ff743a
[ "MIT" ]
null
null
null
import unittest from app.models import Comment class CommentModelTest(unittest.TestCase): def setUp(self): self.new_comment = Comment(body = 'Great!, It is awesome.') def test_instance(self): self.assertTrue(isinstance(self.new_comment, Comment)) def test_save_comment(self): self...
28.5
67
0.704261
1c9f64036575e868d8c41cef486f15f9b3bf27ef
1,054
py
Python
kaifeck/backends.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
2
2020-07-29T17:35:31.000Z
2021-06-06T11:37:49.000Z
kaifeck/backends.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
4
2020-10-28T19:06:02.000Z
2021-01-11T16:06:46.000Z
kaifeck/backends.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
null
null
null
from django.conf import settings from social_core.backends.oauth import BaseOAuth2 from urllib.parse import urlencode class MailcowOAuth2(BaseOAuth2): """GitHub OAuth authentication backend""" name = 'mailcow' AUTHORIZATION_URL = settings.MAILCOW_OAUTH_AUTHORIZATION_URL ACCESS_TOKEN_URL = settings.MAI...
32.9375
85
0.685958
1c9fac828dbd016d040fbca06b6c9760a44268f6
4,636
py
Python
scoreboard/validators/nonce.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
scoreboard/validators/nonce.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
scoreboard/validators/nonce.py
jnovikov/ctfscoreboard
15c2d2ec766a8360c42581e5952c8a18e2b4f7d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.352518
77
0.644953
1ca001df68992f94bcf6882399ee0909972ba24d
46,139
py
Python
src/sage/rings/valuation/valuation.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/rings/valuation/valuation.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/rings/valuation/valuation.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Discrete valuations This file defines abstract base classes for discrete (pseudo-)valuations. AUTHORS: - Julian Rüth (2013-03-16): initial version EXAMPLES: Discrete valuations can be created on a variety of rings:: sage: ZZ.valuation(2) 2-adic valuation sage: GaussianInte...
41.085485
883
0.568478
1ca01b091863931a23d0170157f3e419f0b3af0b
81
py
Python
sitator/__init__.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
8
2018-10-05T18:02:24.000Z
2021-02-22T20:24:58.000Z
sitator/__init__.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2019-02-21T04:33:01.000Z
2021-01-06T20:05:25.000Z
sitator/__init__.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2018-08-11T21:43:59.000Z
2021-12-21T06:32:12.000Z
from .SiteNetwork import SiteNetwork from .SiteTrajectory import SiteTrajectory
20.25
42
0.864198
1ca0455676c012fb4cc73d82fbc4d2975d91bd45
108,445
py
Python
managed/devops/bin/yb_backup.py
shaunstoltz/yugabyte-db
2cbdca0cc6baefabdeb674ed504b3978fd900630
[ "Apache-2.0", "CC0-1.0" ]
3,702
2019-09-17T13:49:56.000Z
2022-03-31T21:50:59.000Z
managed/devops/bin/yb_backup.py
shaunstoltz/yugabyte-db
2cbdca0cc6baefabdeb674ed504b3978fd900630
[ "Apache-2.0", "CC0-1.0" ]
9,291
2019-09-16T21:47:07.000Z
2022-03-31T23:52:28.000Z
managed/devops/bin/yb_backup.py
shaunstoltz/yugabyte-db
2cbdca0cc6baefabdeb674ed504b3978fd900630
[ "Apache-2.0", "CC0-1.0" ]
673
2019-09-16T21:27:53.000Z
2022-03-31T22:23:59.000Z
#!/usr/bin/env python # # Copyright 2019 YugaByte, Inc. and Contributors # # Licensed under the Polyform Free Trial License 1.0.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # https://github.com/YugaByte/yugabyte-db/blob/master/licenses...
45.469602
100
0.602591
1ca04c6fff6aa966e6c4cbe57798ce6fe6293c04
2,802
py
Python
datastruct/testsuite/test_convert.py
hgrecco/datastruct
a567b6293b56952756d1432a54fd799dff20c74e
[ "BSD-3-Clause" ]
null
null
null
datastruct/testsuite/test_convert.py
hgrecco/datastruct
a567b6293b56952756d1432a54fd799dff20c74e
[ "BSD-3-Clause" ]
null
null
null
datastruct/testsuite/test_convert.py
hgrecco/datastruct
a567b6293b56952756d1432a54fd799dff20c74e
[ "BSD-3-Clause" ]
2
2020-05-05T22:52:40.000Z
2020-08-17T22:38:06.000Z
from typing import Dict, List, Tuple, Union import pytest from datastruct import exceptions from datastruct.ds import INVALID, KeyDefinedValue, from_plain_value @pytest.mark.parametrize( "annotation,value", [(float, 8.0), (int, 8), (bool, True), (str, "hello")] ) def test_basic_types_ok(annotation, value): ...
23.948718
78
0.554604
1ca04e78f8ca7d6157576644e43e8a34efe978c3
9,073
py
Python
loggers_control/scripts/envs/solo_escape_task_env.py
IRASatUC/two_loggers
c5c99868a9c896aa2fdb940f2f7b7173abed9e00
[ "MIT" ]
null
null
null
loggers_control/scripts/envs/solo_escape_task_env.py
IRASatUC/two_loggers
c5c99868a9c896aa2fdb940f2f7b7173abed9e00
[ "MIT" ]
null
null
null
loggers_control/scripts/envs/solo_escape_task_env.py
IRASatUC/two_loggers
c5c99868a9c896aa2fdb940f2f7b7173abed9e00
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Task environment for single logger escaping from the walled cell """ from __future__ import absolute_import, division, print_function import numpy as np from numpy import pi from numpy import random import time import rospy import tf from std_srvs.srv import Empty from gazebo_msgs.srv impor...
36.292
105
0.609501
1ca09311f17914fec9e0a90f62c7a2736f2ccc1c
6,284
py
Python
textwiser/factory.py
vishalbelsare/textwiser
da500f24c8d35d29e3ff77702b7c5ece244562cc
[ "Apache-2.0" ]
24
2020-07-02T13:31:46.000Z
2022-03-25T02:27:24.000Z
textwiser/factory.py
fmr-llc/textwiser
2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f
[ "Apache-2.0" ]
5
2020-07-23T16:43:02.000Z
2022-02-23T17:05:38.000Z
textwiser/factory.py
fmr-llc/textwiser
2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f
[ "Apache-2.0" ]
6
2021-01-03T08:09:39.000Z
2022-03-25T02:18:59.000Z
# Copyright 2019 FMR LLC <opensource@fidelity.com> # SPDX-License-Identifer: Apache-2.0 import numpy as np from scipy import sparse import torch import torch.nn as nn from typing import Union from textwiser.base import BaseFeaturizer from textwiser.embeddings import ( _BOWEmbeddings, _CompoundEmbeddings, ...
37.855422
138
0.692234
1ca09ab1c0329da26e15793f795ecb5dca28be05
9,550
py
Python
experiments/babi.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
17
2021-11-04T02:15:30.000Z
2021-12-26T16:31:27.000Z
experiments/babi.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
null
null
null
experiments/babi.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
1
2021-11-04T10:45:25.000Z
2021-11-04T10:45:25.000Z
import argparse import json import os import os.path as path import shutil import tempfile import torch import pytorch_lightning as pl from pytorch_lightning import Trainer, seed_everything from pytorch_lightning.callbacks import ModelCheckpoint from pytorch_lightning.loggers import TensorBoardLogger from nlproar.dat...
44.212963
140
0.574869
1ca09cfb9770e9064f71a4faad2e0d63c2c747ef
1,271
py
Python
CHAPTER 12 (sorting and selection)/merge_sort_linked.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 12 (sorting and selection)/merge_sort_linked.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 12 (sorting and selection)/merge_sort_linked.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
from empty_exception import * from linked_queue_class import * from merge_sort_array import * def merge(S1, S2, S): """Merge two sorted queue instances S1 and S2 into empty queue S.""" while not S1.is_empty() and not S2.is_empty(): if S1.first() < S2.first(): S.enqueue(S1.dequeue()) ...
30.261905
72
0.586153
1ca0a798e62a223d2e838de811c118f2efeac02d
1,254
py
Python
PREP_CAOM/util/read_yaml.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-16T15:30:08.000Z
2017-10-16T15:30:08.000Z
PREP_CAOM/util/read_yaml.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
18
2018-05-11T16:07:48.000Z
2018-11-19T19:45:40.000Z
PREP_CAOM/util/read_yaml.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-03T19:38:59.000Z
2017-10-03T19:38:59.000Z
""" ..module:: read_yaml :synopsis: Open a provided file path and load the yaml-formatted contents into a dictionary. """ import os import yaml #-------------------- def read_yaml(path, output=True): """ Open a provided file path and load the yaml-formatted contents into a dictionary. Return an erro...
24.588235
77
0.602073
1ca0ad5265b939b91e2d64f1bd09961bcb1721f1
531
py
Python
Python-code-snippets-001-100/063-Replace Defined Chars In String.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/063-Replace Defined Chars In String.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/063-Replace Defined Chars In String.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
''' 63-Replace Defined Chars In String Using Maketrans and translate to replace parts of strings. By Steve Shambles March 2019. For more incompetent code visit: https://stevepython.wordpress.com ''' # Example, make all vowels uppercase. # Change these to anything you want, # but must be same length. r...
25.285714
77
0.753296
1ca0ad65b13c0b9cee01a8a255e5064a90b3fc7f
364
py
Python
camper/pages/views.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
camper/pages/views.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
camper/pages/views.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render, get_object_or_404 # from django.template import Template # from django.utils.safestring import mark_safe from camper.pages.models import Page def page(request, path): path = "/%s/" % path.strip('/') p = get_object_or_404(Page, path=path, is_published=True) return rend...
30.333333
61
0.733516
1ca0af76a0011864f5f04f658df795f71b26e841
676
py
Python
data/transcoder_evaluation_gfg/python/FIND_WHETHER_A_GIVEN_NUMBER_IS_A_POWER_OF_4_OR_NOT_2.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/FIND_WHETHER_A_GIVEN_NUMBER_IS_A_POWER_OF_4_OR_NOT_2.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/FIND_WHETHER_A_GIVEN_NUMBER_IS_A_POWER_OF_4_OR_NOT_2.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-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. # def f_gold ( n ) : return ( n != 0 and ( ( n & ( n - 1 ) ) == 0 ) and not ( n & 0xAAAAAAAA ) ) ; #TOFILL if __name__ == '...
22.533333
81
0.538462
1ca0afca3ff242cea71074c0d7506dd9bf49b384
267
py
Python
invenio_circulation/pidstore/__init__.py
NRodriguezcuellar/invenio-circulation
8e0c977849eb76ba9a342542dae3b6a6ef5bae16
[ "MIT" ]
1
2020-04-27T14:47:30.000Z
2020-04-27T14:47:30.000Z
invenio_circulation/pidstore/__init__.py
NRodriguezcuellar/invenio-circulation
8e0c977849eb76ba9a342542dae3b6a6ef5bae16
[ "MIT" ]
2
2019-03-07T15:47:16.000Z
2021-06-25T15:15:28.000Z
invenio_circulation/pidstore/__init__.py
NRodriguezcuellar/invenio-circulation
8e0c977849eb76ba9a342542dae3b6a6ef5bae16
[ "MIT" ]
1
2020-01-13T17:10:13.000Z
2020-01-13T17:10:13.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2018 CERN. # Copyright (C) 2018 RERO. # # Invenio-Circulation is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Circulation PID module."""
26.7
77
0.700375
1ca0eb8fb26c87436f4ce67a93b43ebb2982b0a6
6,803
py
Python
unet.py
Aoi-hosizora/UNet-pytorch
96951d5d1fdc6c6266a11e1bd97fbf72010bc87d
[ "MIT" ]
null
null
null
unet.py
Aoi-hosizora/UNet-pytorch
96951d5d1fdc6c6266a11e1bd97fbf72010bc87d
[ "MIT" ]
null
null
null
unet.py
Aoi-hosizora/UNet-pytorch
96951d5d1fdc6c6266a11e1bd97fbf72010bc87d
[ "MIT" ]
null
null
null
import argparse import time import os import json from PIL import Image import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader from model import UNet, loss_fn from dataset import SSDatase...
36.772973
126
0.635161
1ca10ddad2186d3a721cc4529d618d6701b46c44
6,372
py
Python
expts/nets/svhn.py
jayaram-r/adversarial-detection
94fd0881a3eef179e66301629c9a5e348ce46bd1
[ "MIT" ]
12
2021-06-08T14:34:10.000Z
2022-03-27T08:01:00.000Z
expts/nets/svhn.py
adverML/adversarial-detection
0173b19a7352a2ec769f24a89d4e2cf8f4423514
[ "MIT" ]
6
2021-04-19T19:13:37.000Z
2022-02-15T17:50:31.000Z
expts/nets/svhn.py
adverML/adversarial-detection
0173b19a7352a2ec769f24a89d4e2cf8f4423514
[ "MIT" ]
6
2021-05-26T11:53:45.000Z
2022-02-23T22:39:33.000Z
from __future__ import print_function import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR class SVHN(nn.Module): def __init__(self): super(SVHN, self).__init_...
26.886076
94
0.497175
1ca11e761d4a68ab8aa5135196343e4b6f076b34
82
py
Python
fastapi/core/models/__init__.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
fastapi/core/models/__init__.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
fastapi/core/models/__init__.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
from .mongo import MongoModel, OId from .images import ImageB64UploadRequestModel
27.333333
46
0.853659
1ca130be5b573df4a3a4eb2eb488f405fa2fc60c
1,734
py
Python
src/config.py
RxnRover/snobfit_remote_optimization
401aab81fad9487fc0b66e95577df02e39be957d
[ "BSD-3-Clause" ]
null
null
null
src/config.py
RxnRover/snobfit_remote_optimization
401aab81fad9487fc0b66e95577df02e39be957d
[ "BSD-3-Clause" ]
null
null
null
src/config.py
RxnRover/snobfit_remote_optimization
401aab81fad9487fc0b66e95577df02e39be957d
[ "BSD-3-Clause" ]
null
null
null
import json def generate_default_config(filename): """Generates a default configuration file""" config = { "init_from_config": True, "param_init": [ 0.5, 0.5 ], "bounds": [ [ -5.12, 5.12 ], [ -5.12, 5.12 ] ], "budget": 1000, "options": { "minfcall": None, "...
27.52381
117
0.572664
1ca134091bdbd48e221c8480f5a92af9429e3123
1,289
py
Python
miniworld/management/spatial/MovementDirectorArma.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/management/spatial/MovementDirectorArma.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/management/spatial/MovementDirectorArma.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
# encoding: utf-8 from miniworld.management.spatial.MovementDirectorAbstract import MovementDirectorAbstract from miniworld.model.singletons.Singletons import singletons from miniworld.model.spatial.ArmaNodes import ArmaNodes __author__ = "Patrick Lampe" __email__ = "uni at lampep.de" class MovementDirectorArma(Mov...
26.306122
90
0.608999
1ca16203838c888e021230b993fd8b0afb973c89
530
py
Python
py_utils/validator/domain_name/common.py
zhd785576549/py_re_collect
a79cd18b5c9def0cbd95b8d1b809e8c0c56cb302
[ "MIT" ]
1
2019-10-10T07:00:55.000Z
2019-10-10T07:00:55.000Z
py_utils/validator/domain_name/common.py
zhd785576549/py_re_collect
a79cd18b5c9def0cbd95b8d1b809e8c0c56cb302
[ "MIT" ]
null
null
null
py_utils/validator/domain_name/common.py
zhd785576549/py_re_collect
a79cd18b5c9def0cbd95b8d1b809e8c0c56cb302
[ "MIT" ]
1
2019-10-10T07:00:56.000Z
2019-10-10T07:00:56.000Z
""" This is validate for domain_name Author: zhangkun History: Version Author Email Date Message 1.0.0 zhangkun 584807419@qq.com 2019-10-10 Create """ import re def domain_name_valid(domain_name): """ domain name v...
23.043478
89
0.511321
1ca17a673c43e3e411003f5f6adc528fe7284514
480
py
Python
pysces/contrib/sbw/__init__.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
21
2015-02-11T22:59:18.000Z
2022-03-01T15:36:41.000Z
pysces/contrib/sbw/__init__.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
63
2015-03-26T11:58:58.000Z
2022-02-25T18:44:15.000Z
pysces/contrib/sbw/__init__.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
9
2015-05-01T09:28:56.000Z
2020-02-25T14:38:14.000Z
''' This __init__ file is for a PySCeS "eXtension module" (pysx), the following variables can be set for each module ''' pysx_name = 'PySCeS SBW interface' pysx_oscompat = ['nt'] pysx_base_class = 'CONTRIB_sbw' pysx_author = 'Herbert Sauro et al.' pysx_email = '' pysx_affiliation = 'Kegg Graduate Institute' pysx_web =...
28.235294
112
0.75625
1ca1877c1ab88573355a60e1a7075a7f618c2219
5,967
py
Python
cadnano/views/gridview/gridrootitem.py
sherwoodyao/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/views/gridview/gridrootitem.py
scholer/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/views/gridview/gridrootitem.py
scholer/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
# -*- coding: utf-8 -*- from typing import Set from PyQt5.QtCore import QRectF from PyQt5.QtWidgets import ( QGraphicsRectItem, QGraphicsItem ) from cadnano.objectinstance import ObjectInstance from cadnano.proxies.cnenum import ( PartEnum, ViewReceiveEnum ) from cadnano.controllers import ViewRootCont...
29.107317
81
0.598626
1ca1b4407f28ecb85b74d1fa58921a4a520b7923
31,882
py
Python
tests/test_packages/test_protocols/test_fipa.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_packages/test_protocols/test_fipa.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_packages/test_protocols/test_fipa.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
36.900463
105
0.67317
1ca1e33aa447f4662556937d6036e85abc6dd890
3,419
py
Python
experiments/vitchyr/disentanglement/img_obs_state_reward/image_based_goal_conditioned_pointmass_sweep_channels_and_expl.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/disentanglement/img_obs_state_reward/image_based_goal_conditioned_pointmass_sweep_channels_and_expl.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/disentanglement/img_obs_state_reward/image_based_goal_conditioned_pointmass_sweep_channels_and_expl.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.contextual.image_based import \ image_based_goal_conditioned_sac_experiment from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( env_id='Point2DLargeEnv-v1', qf_kwargs=dict( h...
29.991228
88
0.526177
1ca1e8951f27319382fff6624ecb5f275cb29258
593
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_61.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_61.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_61.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. 61 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_61 = [NumberFormat(pattern='(1[389]\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['1(?:[38]00|90)']), NumberFormat(pattern='(1[389]\\d{2})(\\d{6})', format='\\1 ...
118.6
487
0.602024
1ca2008c84a24e475d44aec485a4698505fff8e1
5,316
py
Python
example/simple_functions/simple_function.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
1
2018-11-03T12:05:00.000Z
2018-11-03T12:05:00.000Z
example/simple_functions/simple_function.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
example/simple_functions/simple_function.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
""" Objective functions can be implemented in this file. Author: Yu-Ren Liu """ from random import Random from zoopt.dimension import Dimension import numpy as np class SetCover: """ set cover problem for discrete optimization this problem has some extra initialization tasks, thus we define this pro...
37.174825
120
0.48307
1ca256b9e01f5d79c69f80a4720e50c6e0d931c8
1,029
py
Python
API/src/main/resources/Lib/robot/running/arguments/__init__.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/running/arguments/__init__.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/running/arguments/__init__.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
39.576923
77
0.762877
1ca2603c827d26c155493bf1d34e10ac57056c1b
2,106
py
Python
setup.py
avandeursen/pydriller
5593cf5ad8cf9ecc3a42505048bc4389055d844c
[ "Apache-2.0" ]
null
null
null
setup.py
avandeursen/pydriller
5593cf5ad8cf9ecc3a42505048bc4389055d844c
[ "Apache-2.0" ]
null
null
null
setup.py
avandeursen/pydriller
5593cf5ad8cf9ecc3a42505048bc4389055d844c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open('requirements.txt') as reqs_file: requirements = reqs_file.read().splitlines() with open('test-requirements.txt') as reqs_file: test_requirements = reqs_file.read().splitlines() # Get the long description from the relevant file long_description = 'PyDrill...
40.5
80
0.604938
1ca28a2a5ce0fdc5b33d8e1ddcfccc15ff0ab4fe
455
py
Python
foxtail/appointments/migrations/0007_auto_20200510_0214.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
5
2021-01-17T22:55:24.000Z
2021-01-18T21:05:18.000Z
foxtail/appointments/migrations/0007_auto_20200510_0214.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
null
null
null
foxtail/appointments/migrations/0007_auto_20200510_0214.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-10 02:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('appointments', '0006_appointment_organization'), ] operations = [ migrations.AlterField( model_name='appointment', n...
23.947368
100
0.632967
1ca290bb12e49dedc82e56c673522eb33fce64b7
18,376
py
Python
gibson2/utils/data_utils/ext_scene/scripts/utils/earcut.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/utils/data_utils/ext_scene/scripts/utils/earcut.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/utils/data_utils/ext_scene/scripts/utils/earcut.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
import math __all__ = ['earcut', 'deviation', 'flatten'] def earcut(data, holeIndices=None, dim=None): dim = dim or 2 hasHoles = holeIndices and len(holeIndices) outerLen = holeIndices[0] * dim if hasHoles else len(data) outerNode = linkedList(data, 0, outerLen, dim, True) triangles = [] i...
26.478386
136
0.538093
1ca2ab84f259fe4806fb6188637c65bde9f43c92
5,521
py
Python
docs/conf.py
MichelKhalaf/traffic
84e315d84a4ab9d8711414e7c275733e27a089ed
[ "MIT" ]
null
null
null
docs/conf.py
MichelKhalaf/traffic
84e315d84a4ab9d8711414e7c275733e27a089ed
[ "MIT" ]
null
null
null
docs/conf.py
MichelKhalaf/traffic
84e315d84a4ab9d8711414e7c275733e27a089ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.369318
80
0.672523
1ca2d2a8f1b72052f6e22d36f3cf561f1f99b74a
2,308
py
Python
chapter2/wok/master/wok/server/model.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/wok/master/wok/server/model.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/wok/master/wok/server/model.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
from sqlalchemy import Table, Column, Text, String, Integer, Boolean, DateTime, ForeignKey from sqlalchemy.orm import relationship, backref from flask.ext.login import UserMixin from wok.core.db.customtypes import Config, RunState from db import Base DB_VERSION = 2 ADMIN_GROUP = "admin" USERS_GROUP = "users" user...
23.08
90
0.72617
1ca2da4cdbe2b087ababb25dccad079d27396498
2,394
py
Python
scripts/get_val_sentences.py
chris4540/DT2119-Final-Project
a9e665d2fcc91442bcd80171fe557b09fcd71d00
[ "MIT" ]
1
2020-08-19T17:29:53.000Z
2020-08-19T17:29:53.000Z
scripts/get_val_sentences.py
chris4540/DT2119-Final-Project
a9e665d2fcc91442bcd80171fe557b09fcd71d00
[ "MIT" ]
null
null
null
scripts/get_val_sentences.py
chris4540/DT2119-Final-Project
a9e665d2fcc91442bcd80171fe557b09fcd71d00
[ "MIT" ]
null
null
null
""" Get the validation set of sentences 1. calculate the number of sentences read by males and females. 2. distribute them to each dialect 3. draw # of sentences // 8 in each dialect 4. save the list of sentences to a json file for review """ import numpy as np import os import json # don't move this number np.random...
32.351351
84
0.611947
1ca2eac664fe25e2f23845b76a1373103d7ecf11
3,260
py
Python
backtracking/n_queens.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
backtracking/n_queens.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
backtracking/n_queens.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
30.46729
95
0.637117
1ca318d41167d204d0fd11632efeaf00a18a0216
338
py
Python
core/migrations/0018_remove_flight_multispectral_processing.py
IS-AgroSmart/MVP
b347e7c846a9a29584a6baee0b825381d5bc62a3
[ "CNRI-Python" ]
null
null
null
core/migrations/0018_remove_flight_multispectral_processing.py
IS-AgroSmart/MVP
b347e7c846a9a29584a6baee0b825381d5bc62a3
[ "CNRI-Python" ]
140
2020-01-21T15:42:29.000Z
2021-08-21T18:04:19.000Z
core/migrations/0018_remove_flight_multispectral_processing.py
IS-AgroSmart/AgroSmart-Web
b347e7c846a9a29584a6baee0b825381d5bc62a3
[ "CNRI-Python" ]
1
2021-05-03T06:12:35.000Z
2021-05-03T06:12:35.000Z
# Generated by Django 3.0.1 on 2021-03-24 18:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0017_blockcriteria'), ] operations = [ migrations.RemoveField( model_name='flight', name='multispectral_processing',...
18.777778
47
0.60355
1ca322b7f5cb3e459258438e6e99f2aa723736ae
1,559
py
Python
loglan_db/model_db/base_type.py
cangirolave/loglan_db
62508356e31624bc36c833cc12c3feaf64ff9767
[ "MIT" ]
null
null
null
loglan_db/model_db/base_type.py
cangirolave/loglan_db
62508356e31624bc36c833cc12c3feaf64ff9767
[ "MIT" ]
4
2021-10-01T09:38:13.000Z
2021-10-22T04:20:58.000Z
loglan_db/model_db/base_type.py
cangirolave/loglan_db
62508356e31624bc36c833cc12c3feaf64ff9767
[ "MIT" ]
3
2021-10-01T09:41:07.000Z
2021-10-10T23:26:47.000Z
# -*- coding: utf-8 -*- """ This module contains a basic Type Model """ from typing import Union, List from flask_sqlalchemy import BaseQuery from sqlalchemy import or_ from loglan_db import db from loglan_db.model_db import t_name_types from loglan_db.model_init import InitBase, DBBase __pdoc__ = { 'BaseType.wo...
28.345455
98
0.652983
1ca327ae3e42f6e07225583601262f79ea6bd2cc
937
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/webhook_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/webhook_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/webhook_paged.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
33.464286
133
0.574173
1ca34ca3feb7d9f515b93fa235f50247104e958d
1,541
py
Python
2021/day_11.py
IanFindlay/advent-of-code
e63cf710249cb15fb675920a5b3bb6c85e756168
[ "MIT" ]
24
2020-12-08T20:07:52.000Z
2022-01-18T20:08:06.000Z
2021/day_11.py
IanFindlay/advent-of-code
e63cf710249cb15fb675920a5b3bb6c85e756168
[ "MIT" ]
null
null
null
2021/day_11.py
IanFindlay/advent-of-code
e63cf710249cb15fb675920a5b3bb6c85e756168
[ "MIT" ]
10
2020-12-04T10:04:15.000Z
2022-02-21T22:22:26.000Z
#!/usr/bin/env python3 """Advent of Code 2021 Day 11 - Dumbo Octopus""" with open('inputs/day_11.txt', 'r') as aoc_input: lines = [line.strip() for line in aoc_input.readlines()] octopi = {} for y, row in enumerate(lines): for x, level in enumerate(row): octopi[(x, y)] = int(level) num_flashes = 0 ...
26.118644
79
0.500324
1ca39431eda64db8fe18db26dd4f735ca037e9f4
1,444
py
Python
Implement_google_AdaptiveFL/Print_Result_AvgLast100round.py
kuihao/KuihaoFL
69c9161497f2a82ab8ef2d785a0c7e2e6975a328
[ "Apache-2.0" ]
4
2021-12-13T06:03:35.000Z
2022-03-22T05:12:41.000Z
Implement_google_AdaptiveFL/Print_Result_AvgLast100round.py
kuihao/KuihaoFL
69c9161497f2a82ab8ef2d785a0c7e2e6975a328
[ "Apache-2.0" ]
null
null
null
Implement_google_AdaptiveFL/Print_Result_AvgLast100round.py
kuihao/KuihaoFL
69c9161497f2a82ab8ef2d785a0c7e2e6975a328
[ "Apache-2.0" ]
null
null
null
import numpy as np def Result_AvgLast100round(forderpath, filename,): results_np = np.load(f"{forderpath}/{filename}", allow_pickle=True) '''解壓縮、匯入''' #print(results_np.files) # ['arr_0'] #print(results_np['arr_0']) # {'loss': [], 'accuracy': [], 'top_k_categorical_accuracy': []} # 出現 0-d arra...
43.757576
127
0.698753
1ca3a4135a79a18bd0abfdf387660351b8c673dd
24
py
Python
btd6_memory_info/generated/Assets/Scripts/Data/Boss/BossChildren/boss_children.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Data/Boss/BossChildren/boss_children.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Data/Boss/BossChildren/boss_children.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class BossChildren: pass
24
24
0.875
1ca3d759467a31484f3670f95780e5fd2ce952ac
19,288
py
Python
build-support/dist_test.py
sekikn/kudu
f2089195d635ea73e7268a9b46db2feac2eeed2d
[ "Apache-2.0" ]
null
null
null
build-support/dist_test.py
sekikn/kudu
f2089195d635ea73e7268a9b46db2feac2eeed2d
[ "Apache-2.0" ]
null
null
null
build-support/dist_test.py
sekikn/kudu
f2089195d635ea73e7268a9b46db2feac2eeed2d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # ...
35.652495
110
0.659633
1ca3dfeb46ca5d0645e8b248fa15c35a4c890b4f
4,767
py
Python
tests/plugins/test_shopify.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
tests/plugins/test_shopify.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
tests/plugins/test_shopify.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
1
2021-12-10T22:36:34.000Z
2021-12-10T22:36:34.000Z
import pytest from pypipet.core.project_context import PipetContext from pypipet.core.shop_conn.spf import * from pypipet.core.transform.model_to_spf import ( product_parser, add_metafields, transform_imgs, variant_parser) from pprint import pprint import shopify variants =[{ 'barcode':...
31.78
105
0.690162
1ca3e286c4370e3a97faad5ccec84adfe72a1451
4,086
py
Python
tests/test_tests.py
auscompgeek/pyfrc
d8e76a9284690f71ea7fab7d2aa9022cb6eec27d
[ "MIT" ]
1
2017-12-15T20:55:33.000Z
2017-12-15T20:55:33.000Z
tests/test_tests.py
auscompgeek/pyfrc
d8e76a9284690f71ea7fab7d2aa9022cb6eec27d
[ "MIT" ]
null
null
null
tests/test_tests.py
auscompgeek/pyfrc
d8e76a9284690f71ea7fab7d2aa9022cb6eec27d
[ "MIT" ]
null
null
null
import contextlib import hal import wpilib import pytest from pyfrc.test_support.pytest_plugin import PyFrcPlugin from pyfrc.tests.basic import test_practice as _test_practice @contextlib.contextmanager def get_plugin(cls): wpilib.DriverStation._reset() plugin = PyFrcPlugin(cls, None, None) p...
28.573427
70
0.665443
1ca405899b37a06f748825edd9d949d2d361499f
212,782
py
Python
tests/unit/gapic/spanner_admin_database_v1/test_database_admin.py
c24t/python-spanner
b5f977ebf61527914af3c8356aeeae9418114215
[ "Apache-2.0" ]
1
2020-09-26T16:17:36.000Z
2020-09-26T16:17:36.000Z
tests/unit/gapic/spanner_admin_database_v1/test_database_admin.py
c24t/python-spanner
b5f977ebf61527914af3c8356aeeae9418114215
[ "Apache-2.0" ]
1
2020-09-04T10:44:50.000Z
2020-09-18T12:17:08.000Z
tests/unit/gapic/spanner_admin_database_v1/test_database_admin.py
c24t/python-spanner
b5f977ebf61527914af3c8356aeeae9418114215
[ "Apache-2.0" ]
1
2020-09-15T09:59:53.000Z
2020-09-15T09:59:53.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.589409
147
0.69073
1ca4254149a58e14e81d9f3ec17ba7e7e90483ef
944
py
Python
tests/exchange/poloniexexchange.py
Dodo33/alchemist-lib
40c2d3b48d5f46315eb09e7f572d578b7e5324b4
[ "MIT" ]
5
2018-07-11T05:38:51.000Z
2021-12-19T03:06:51.000Z
tests/exchange/poloniexexchange.py
Dodo33/alchemist-lib
40c2d3b48d5f46315eb09e7f572d578b7e5324b4
[ "MIT" ]
null
null
null
tests/exchange/poloniexexchange.py
Dodo33/alchemist-lib
40c2d3b48d5f46315eb09e7f572d578b7e5324b4
[ "MIT" ]
2
2019-07-12T08:51:11.000Z
2021-09-29T22:22:46.000Z
from alchemist_lib.exchange import PoloniexExchange from alchemist_lib.database import Session from alchemist_lib.database.asset import Asset from alchemist_lib.database.exchange import Exchange from alchemist_lib.database.instrument import Instrument from alchemist_lib.database.price_data_source import PriceDataSourc...
30.451613
112
0.802966
1ca42e102f920a35be82c0eff0ba5e21bc2fff0f
3,143
py
Python
rsnapsim/defunct/ssa_cpp/depcreciated/test_translation_ssa_lowmem_leaky.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2022-01-28T18:17:37.000Z
2022-01-28T18:17:37.000Z
rsnapsim/defunct/ssa_cpp/depcreciated/test_translation_ssa_lowmem_leaky.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
null
null
null
rsnapsim/defunct/ssa_cpp/depcreciated/test_translation_ssa_lowmem_leaky.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2020-12-02T06:36:17.000Z
2020-12-02T06:36:17.000Z
# -*- coding: utf-8 -*- """ Created on Wed Apr 29 16:01:24 2020 @author: willi """ import numpy as np import ssa_translation_lowmem_leaky import matplotlib.pyplot as plt import time # load the elongation kelong = np.loadtxt('elongationrates.txt') kbind = kelong[0] kcompl = kelong[-1] kelong = kelong[1:-1] Ncolor ...
27.570175
174
0.692969
1ca443495d8ead5a5d28c48382046c524cbf0d4e
2,031
py
Python
questioner/apps/user/migrations/0001_initial.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
questioner/apps/user/migrations/0001_initial.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
questioner/apps/user/migrations/0001_initial.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-02-25 20:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
53.447368
266
0.636632
1ca44814e9e56efb9fbaf4b0cbb3e3ad5c0ab947
101
py
Python
updot/updot/__init__.py
aaronsb/dotfiles
8ab1af7e85bbeba09559ebb724469ea879900158
[ "MIT" ]
2
2017-09-03T16:52:54.000Z
2018-01-18T00:27:45.000Z
updot/updot/__init__.py
aaronsb/dotfiles
8ab1af7e85bbeba09559ebb724469ea879900158
[ "MIT" ]
null
null
null
updot/updot/__init__.py
aaronsb/dotfiles
8ab1af7e85bbeba09559ebb724469ea879900158
[ "MIT" ]
1
2019-05-03T14:59:59.000Z
2019-05-03T14:59:59.000Z
from updot import _pyhacks # do not remove! this will install our overrides of core python functions
50.5
100
0.811881
1ca47ddf9c3146ed6b4c06fa2a68efd515e94de2
3,350
py
Python
backend/smiegel/views/api.py
erik/smiegel
34e9d132e241f2db4e96e84295588cd11d7c0164
[ "MIT" ]
null
null
null
backend/smiegel/views/api.py
erik/smiegel
34e9d132e241f2db4e96e84295588cd11d7c0164
[ "MIT" ]
null
null
null
backend/smiegel/views/api.py
erik/smiegel
34e9d132e241f2db4e96e84295588cd11d7c0164
[ "MIT" ]
null
null
null
import flask import hmac import json from flask import abort, g, request from functools import wraps from smiegel import db, util, publisher from smiegel.models import User, Message app = flask.Blueprint('api', __name__) # API Definitions # --------------- # All authenticated requests are wrapped in a signature. ...
22.18543
73
0.658209
1ca4b9dfe1d97f32eb1d6b8d4f1ce62140a55165
1,230
py
Python
swagger_client/__init__.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
swagger_client/__init__.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
swagger_client/__init__.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa """ SDX-Controller You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). # noqa: E501 OpenAPI spec version: 1.0.0 Contact: yxin@renci.org Generated by: https://github.com/swagger-...
35.142857
156
0.813821
1ca4eacf04d7d9bdf2e1f8aca37054771100bcd8
6,755
py
Python
test/test_txn.py
dannyxn/couchbase-cli
33c2ea93a7a0ee165fadb76c216fcc8234c7d741
[ "Apache-2.0" ]
36
2015-02-12T20:32:04.000Z
2022-03-21T17:37:27.000Z
test/test_txn.py
dannyxn/couchbase-cli
33c2ea93a7a0ee165fadb76c216fcc8234c7d741
[ "Apache-2.0" ]
8
2016-09-07T16:04:16.000Z
2020-01-20T10:17:04.000Z
test/test_txn.py
dannyxn/couchbase-cli
33c2ea93a7a0ee165fadb76c216fcc8234c7d741
[ "Apache-2.0" ]
53
2015-03-13T13:23:55.000Z
2021-12-17T22:45:25.000Z
import json import random import struct import unittest from enum import Enum, auto import couchbaseConstants as cbcs from pump_mc import MCSink class DataSetType(Enum): NO_XATTRS = auto() TXN_XATTRS = auto() NO_TXN_XATTRS = auto() MULTIPLE_XATTRS = auto() ATR = auto() TXN_CLIENT_RECORD = aut...
41.956522
118
0.610659
1ca504fbfccf4507d3e9f7f1990bcbdae356319e
29,943
py
Python
fil_finder/pixel_ident.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
28
2015-07-10T15:47:22.000Z
2022-01-25T10:18:33.000Z
fil_finder/pixel_ident.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
50
2015-05-07T21:20:08.000Z
2022-02-23T02:06:56.000Z
fil_finder/pixel_ident.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
14
2015-07-13T10:26:44.000Z
2021-11-25T08:23:21.000Z
# Licensed under an MIT open source license - see LICENSE from .length import * from .utilities import distance import numpy as np import scipy.ndimage as nd import matplotlib.pyplot as p import copy def isolateregions(binary_array, size_threshold=0, pad_size=0, fill_hole=False, rel_size=0.1, mor...
33.872172
96
0.508366
1ca5152ec63b452d6d8f97d2ea4f80e1aec9805c
2,457
py
Python
.leetcode/590.n-ary-tree-postorder-traversal.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/590.n-ary-tree-postorder-traversal.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/590.n-ary-tree-postorder-traversal.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=590 lang=python3 # # [590] N-ary Tree Postorder Traversal # # https://leetcode.com/problems/n-ary-tree-postorder-traversal/description/ # # algorithms # Easy (74.99%) # Likes: 1257 # Dislikes: 76 # Total Accepted: 152.5K # Total Submissions: 203.1K # Testcase Example: '[1,null,3,2,4,null,5,...
19.656
105
0.599919
1ca5341f0091b6e82d9a15948bcf681c73513846
6,762
py
Python
mmcls/models/losses/cross_entropy_loss.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
mmcls/models/losses/cross_entropy_loss.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
mmcls/models/losses/cross_entropy_loss.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn import torch.nn.functional as F from ..builder import LOSSES from .utils import weight_reduce_loss def cross_entropy(pred, label, weight=None, reduction='mean', avg_factor=Non...
35.403141
79
0.597161
1ca548732646984cf86de11989385653de388a60
2,402
py
Python
Text/tests/examples/score_texts_emojis.py
Navjeet-AIT/CHAT-SENTIMENT-ANALYSIS
f49682c7d973c4a966093ed6517fd28b5ce79bc2
[ "MIT" ]
1
2021-09-10T13:59:45.000Z
2021-09-10T13:59:45.000Z
Text/tests/examples/score_texts_emojis.py
Navjeet-AIT/CHAT-SENTIMENT-ANALYSIS
f49682c7d973c4a966093ed6517fd28b5ce79bc2
[ "MIT" ]
6
2019-12-16T21:57:35.000Z
2022-02-10T00:14:27.000Z
Text/tests/examples/score_texts_emojis.py
Navjeet-AIT/CHAT-SENTIMENT-ANALYSIS
f49682c7d973c4a966093ed6517fd28b5ce79bc2
[ "MIT" ]
1
2021-04-28T11:22:49.000Z
2021-04-28T11:22:49.000Z
# -*- coding: utf-8 -*- """ Use Text to score texts for emoji distribution. The resulting emoji ids (0-63) correspond to the mapping in emoji_overview.png file at the root of the Text repo. Writes the result to a csv file. """ from __future__ import print_function, division import example_helper import json import c...
32.026667
75
0.664446