hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797c4ecd92b6c6387f63ea7a97dabe5d35cecca0
1,127
py
Python
daily_problems/problem_201_to_300/283.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
1
2019-04-18T03:29:02.000Z
2019-04-18T03:29:02.000Z
daily_problems/problem_201_to_300/283.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
daily_problems/problem_201_to_300/283.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
""" A regular number in mathematics is defined as one which evenly divides some power of 60. Equivalently, we can say that a regular number is one whose only prime divisors are 2, 3, and 5. These numbers have had many applications, from helping ancient Babylonians keep time to tuning instruments according to the diaton...
27.487805
74
0.634428
797c4ef557763e6c8cef6caea836cffacfa0513a
1,026
py
Python
usaspending_api/awards/models_matviews/summary_naics_codes_view.py
gaybro8777/usaspending-api
fe9d730acd632401bbbefa168e3d86d59560314b
[ "CC0-1.0" ]
null
null
null
usaspending_api/awards/models_matviews/summary_naics_codes_view.py
gaybro8777/usaspending-api
fe9d730acd632401bbbefa168e3d86d59560314b
[ "CC0-1.0" ]
null
null
null
usaspending_api/awards/models_matviews/summary_naics_codes_view.py
gaybro8777/usaspending-api
fe9d730acd632401bbbefa168e3d86d59560314b
[ "CC0-1.0" ]
null
null
null
from django.db import models class SummaryNaicsCodesView(models.Model): duh = models.UUIDField(primary_key=True, help_text="Deterministic Unique Hash") action_date = models.DateField(blank=True, null=True) fiscal_year = models.IntegerField() type = models.TextField(blank=True, null=True) pulled_fr...
46.636364
112
0.762183
797c507a7725e814b1fbc5f8653d105503c116b0
4,811
py
Python
src/icon_registration/itk_wrapper.py
uncbiag/ICON
2c34a1e876726cf2de105157675213ffb2f640ba
[ "Apache-2.0" ]
5
2022-01-22T16:29:53.000Z
2022-03-03T14:36:58.000Z
src/icon_registration/itk_wrapper.py
uncbiag/ICON
2c34a1e876726cf2de105157675213ffb2f640ba
[ "Apache-2.0" ]
7
2021-10-13T14:36:35.000Z
2022-03-11T07:33:45.000Z
src/icon_registration/itk_wrapper.py
uncbiag/ICON
2c34a1e876726cf2de105157675213ffb2f640ba
[ "Apache-2.0" ]
null
null
null
import itk import matplotlib.pyplot as plt import numpy as np import torch import torch.nn.functional as F import icon_registration.pretrained_models import icon_registration.network_wrappers import icon_registration.config as config def register_pair(model, image_A, image_B)->"(itk.CompositeTransform, itk.Composite...
37.007692
125
0.711702
797c51273701feba1cc47e81e16a298f692175ab
790
py
Python
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/profiles/wisun_profile_outputs_common.py
SiliconLabs/Gecko_SDK
991121c706578c9a2135b6f75cc88856e8c64bdc
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/profiles/wisun_profile_outputs_common.py
SiliconLabs/Gecko_SDK
991121c706578c9a2135b6f75cc88856e8c64bdc
[ "Zlib" ]
2
2017-02-13T10:07:17.000Z
2017-03-22T21:28:26.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/profiles/wisun_profile_outputs_common.py
SiliconLabs/Gecko_SDK
991121c706578c9a2135b6f75cc88856e8c64bdc
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
from pyradioconfig.calculator_model_framework.interfaces.iprofile import ModelOutput, ModelOutputType class wisun_profile_outputs_common_sol(object): def build_wisun_mode_switch_outputs(self, model, profile): profile.outputs.append(ModelOutput(model.vars.wisun_phy_mode_id, '', ModelOutputType.RAIL_CONFIG,...
71.818182
109
0.679747
797c51bbdd6c4fd5d0a78d2c5276ae1accccf2fe
4,492
py
Python
PManager/tests/views/__init__.py
srisankethu/opengift.io
fc490332bd0252610b55a68c1fff1c4f704fcbd4
[ "Apache-2.0" ]
1
2020-08-30T23:12:08.000Z
2020-08-30T23:12:08.000Z
PManager/tests/views/__init__.py
lenarhus/opengift.io
db37494eac141e795c8d9d5b262d54cd6f20fb15
[ "Apache-2.0" ]
null
null
null
PManager/tests/views/__init__.py
lenarhus/opengift.io
db37494eac141e795c8d9d5b262d54cd6f20fb15
[ "Apache-2.0" ]
null
null
null
from test_plus.test import TestCase from model_mommy import mommy from django.contrib.auth.models import User from PManager.models import PM_Project, PM_Tracker, PM_Role, PM_Task from PManager.viewsExt.public import Public from PManager.viewsExt.tasks import taskListAjax from PManager.views import MainPage from tracker...
38.393162
97
0.548753
797c52352be3f5b0265ca014c4b913a577874488
3,497
py
Python
plotting.py
Mapharazzo/video-palette
900e690c78934872078047f42fa8e57ddd9c6663
[ "MIT" ]
1
2021-11-23T01:26:11.000Z
2021-11-23T01:26:11.000Z
plotting.py
Mapharazzo/video-palette
900e690c78934872078047f42fa8e57ddd9c6663
[ "MIT" ]
null
null
null
plotting.py
Mapharazzo/video-palette
900e690c78934872078047f42fa8e57ddd9c6663
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np # Recommended parameters for (K, P) # Outputs variance, mean, x_axis gaussian_dict = { (4, 4): (0.02, 0.5, 200), (4, 6): (0, 0, 200), (4, 8): (0, 0, 200), (8, 4): (0, 0, 200), (8, 6): (0, 0, 200), (8, 8): (0, 0, 200), (12, 4): (0, 0, 200), ...
28.430894
82
0.601659
797c52de4144b0d32b58901a8958bb4ae9af2b6c
6,736
py
Python
python/herbstluftwm/__init__.py
ju-sh/herbstluftwm
ff8778cc662135e43ed01c5406ae8895ccd452ee
[ "BSD-2-Clause-FreeBSD" ]
925
2015-01-05T01:00:12.000Z
2022-03-31T21:13:07.000Z
python/herbstluftwm/__init__.py
ju-sh/herbstluftwm
ff8778cc662135e43ed01c5406ae8895ccd452ee
[ "BSD-2-Clause-FreeBSD" ]
1,286
2015-01-19T23:23:06.000Z
2022-03-31T21:05:48.000Z
python/herbstluftwm/__init__.py
ju-sh/herbstluftwm
ff8778cc662135e43ed01c5406ae8895ccd452ee
[ "BSD-2-Clause-FreeBSD" ]
117
2015-01-23T08:09:37.000Z
2022-03-18T06:20:00.000Z
#!/usr/bin/env python3 import shlex import subprocess from herbstluftwm.types import HlwmType from typing import List """ Python bindings for herbstluftwm. The central entity for communication with the herbstluftwm server is the Herbstluftwm class. See the example.py for example usages of the classes provided here. ...
32.699029
86
0.591004
797c53501bfb4683744e1499c0a47b932976ccd5
2,372
py
Python
beeline/patch/urllib.py
zensourcer/beeline-python
4133e4a953c0e9e312c8ead23fcb9e2fd285ec88
[ "Apache-2.0" ]
null
null
null
beeline/patch/urllib.py
zensourcer/beeline-python
4133e4a953c0e9e312c8ead23fcb9e2fd285ec88
[ "Apache-2.0" ]
null
null
null
beeline/patch/urllib.py
zensourcer/beeline-python
4133e4a953c0e9e312c8ead23fcb9e2fd285ec88
[ "Apache-2.0" ]
null
null
null
from wrapt import wrap_function_wrapper import beeline import beeline.propagation import http import urllib.request def _urllibopen(_urlopen, instance, args, kwargs): # urlopen accepts either a string URL or a Request object as its first arg # It's easier to process the info contained in the request and modif...
38.885246
89
0.649241
797c55a3ed29ae31d0e0e8e7c757cc8dd4eccd88
18,821
py
Python
vega/algorithms/data_augmentation/cyclesr/cyclesr_trainer_callback.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
vega/algorithms/data_augmentation/cyclesr/cyclesr_trainer_callback.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
vega/algorithms/data_augmentation/cyclesr/cyclesr_trainer_callback.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
43.06865
120
0.573615
797c55f617cfad4667d533c21de754ba3cd474f5
177
py
Python
src/utils/vgg_utils.py
shendu-sw/TFR-HSS-Benchmark
3fbc93ff548d924050e2de5070007197f04be7f4
[ "MIT" ]
7
2021-08-24T10:01:28.000Z
2021-12-29T07:13:17.000Z
src/utils/vgg_utils.py
idrl-lab/TFR-HSS-Benchmark
3fbc93ff548d924050e2de5070007197f04be7f4
[ "MIT" ]
null
null
null
src/utils/vgg_utils.py
idrl-lab/TFR-HSS-Benchmark
3fbc93ff548d924050e2de5070007197f04be7f4
[ "MIT" ]
1
2021-08-25T01:38:39.000Z
2021-08-25T01:38:39.000Z
# -*- encoding: utf-8 -*- try: from torch.hub import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url
29.5
74
0.774011
797c55fdc19c513f52a53d9aa6f36e404e8211c0
94
py
Python
selenium_tutorial/eve_wiki/eve_wiki_link.py
MislavJaksic/Selenium-Tutorial
da700121910c4de65400f0bb9eb4d96e5756535a
[ "MIT" ]
null
null
null
selenium_tutorial/eve_wiki/eve_wiki_link.py
MislavJaksic/Selenium-Tutorial
da700121910c4de65400f0bb9eb4d96e5756535a
[ "MIT" ]
null
null
null
selenium_tutorial/eve_wiki/eve_wiki_link.py
MislavJaksic/Selenium-Tutorial
da700121910c4de65400f0bb9eb4d96e5756535a
[ "MIT" ]
null
null
null
class EveWikiLink: def __init__(self, page_link: str): self.page_link = page_link
23.5
39
0.691489
797c56af7d398e041e8f40103877af94603b0dac
8,073
py
Python
config/settings/production.py
gelbermann/iot-smart-locker
6ffc990fc16ddfc4ca4d978182d2cdefe11544f8
[ "MIT" ]
null
null
null
config/settings/production.py
gelbermann/iot-smart-locker
6ffc990fc16ddfc4ca4d978182d2cdefe11544f8
[ "MIT" ]
null
null
null
config/settings/production.py
gelbermann/iot-smart-locker
6ffc990fc16ddfc4ca4d978182d2cdefe11544f8
[ "MIT" ]
null
null
null
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env("DJANGO_SECRET_KEY") # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALLOWED...
42.046875
87
0.619472
797c56da53729d71f9528851d2666359060ea899
1,347
py
Python
test_conn.py
bruj0maldit0/Cachet.OI_Python
e6402c64a01f1f1322313add038eea276865f93a
[ "Apache-2.0" ]
1
2018-11-08T16:50:24.000Z
2018-11-08T16:50:24.000Z
test_conn.py
bruj0maldit0/Cachet.OI_Python
e6402c64a01f1f1322313add038eea276865f93a
[ "Apache-2.0" ]
1
2018-10-10T12:49:05.000Z
2018-10-10T12:49:05.000Z
test_conn.py
bruj0maldit0/Cachet.OI_Python
e6402c64a01f1f1322313add038eea276865f93a
[ "Apache-2.0" ]
null
null
null
import requests import pyodbc proxies = { 'http': 'http://diazi:34Bl4ckm3t4l@proxy.standard.corp:8080', 'https': 'http://diazi:34Bl4ckm3t4l@proxy.standard.corp:8080', } server = '10.101.178.29,1433' # Create the session and set the proxies. s = requests.Session() s.proxies = proxies # Make the H...
32.853659
189
0.654788
797c5757637d9ff28afb6af010f983bcdb7ec830
433
py
Python
sniffersapp/equipment/urls.py
jamesokane/Oneworksite-Application
1749ffa89430be75394ae0d43905f3dd30a24fc6
[ "MIT" ]
null
null
null
sniffersapp/equipment/urls.py
jamesokane/Oneworksite-Application
1749ffa89430be75394ae0d43905f3dd30a24fc6
[ "MIT" ]
7
2020-06-05T19:27:52.000Z
2022-03-11T23:34:52.000Z
sniffersapp/equipment/urls.py
jamesokane/Oneworksite-Application
1749ffa89430be75394ae0d43905f3dd30a24fc6
[ "MIT" ]
null
null
null
from django.urls import path from .views import * app_name = 'equipment' urlpatterns = [ path('', equipment_list, name='list'), path('new_attachment', attachment_form, name='attachment_new'), path('new_equipment', equipment_form, name='equipment_new'), path('<slug:slug>/edit/attachment/', attachment_...
30.928571
82
0.713626
797c57799ac000ea759e54af08ea9e304edc447b
16,069
py
Python
pgcli/main.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
pgcli/main.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
pgcli/main.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals from __future__ import print_function import os import sys import traceback import logging from time import time import click import sqlparse from prompt_toolkit import CommandLineInterface, AbortAction, Exit from prompt_toolkit.document import Document fr...
40.072319
79
0.600224
797c57c9e7c2d190269934bf67aae167a380cfb1
2,875
py
Python
keras_contrib/optimizers/ftml.py
HaemanthSP/keras-contrib
f183ff70afb0450475b9d0381d4b9c7c07941fbc
[ "MIT" ]
1
2020-09-15T10:00:05.000Z
2020-09-15T10:00:05.000Z
keras_contrib/optimizers/ftml.py
HaemanthSP/keras-contrib
f183ff70afb0450475b9d0381d4b9c7c07941fbc
[ "MIT" ]
null
null
null
keras_contrib/optimizers/ftml.py
HaemanthSP/keras-contrib
f183ff70afb0450475b9d0381d4b9c7c07941fbc
[ "MIT" ]
2
2020-07-24T07:59:46.000Z
2021-02-07T16:25:35.000Z
from __future__ import absolute_import from tensorflow.keras.optimizers import Optimizer from tensorflow.keras import backend as K class FTML(Optimizer): """FTML optimizer. # Arguments lr: float >= 0. Learning rate. beta_1: float, 0 < beta < 1. Generally close to 0.5. beta_2: float, 0...
35.493827
72
0.559652
797c58cb573d6ad2f39ba6803882caaaa2c754e6
7,287
py
Python
dowhy/causal_refuters/bootstrap_refuter.py
amyymaa/dowhy
88fa5c04d8b90e0eb7d044597470d552bf5ac89d
[ "MIT" ]
null
null
null
dowhy/causal_refuters/bootstrap_refuter.py
amyymaa/dowhy
88fa5c04d8b90e0eb7d044597470d552bf5ac89d
[ "MIT" ]
null
null
null
dowhy/causal_refuters/bootstrap_refuter.py
amyymaa/dowhy
88fa5c04d8b90e0eb7d044597470d552bf5ac89d
[ "MIT" ]
null
null
null
from dowhy.causal_refuter import CausalRefuter, CausalRefutation from dowhy.causal_estimator import CausalEstimator import numpy as np import random from sklearn.utils import resample import logging class BootstrapRefuter(CausalRefuter): """ Refute an estimate by running it on a random sample of the data conta...
51.680851
145
0.630026
797c59a7d7b24152b9741caae9124296ff0a1fb5
2,777
py
Python
datalad/support/tests/test_repo_save.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
1
2021-06-11T19:54:19.000Z
2021-06-11T19:54:19.000Z
datalad/support/tests/test_repo_save.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
1
2019-08-30T14:45:33.000Z
2019-08-30T14:45:33.000Z
datalad/support/tests/test_repo_save.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
# ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## """Test saveds fuct...
28.336735
79
0.616133
797c59c25d0c806327f876a6f62a3731a98aa482
5,602
py
Python
docs/source/conf.py
akasarto/skeleton-netfx-mvc5
1e2db43e20c87bb0c2902cfe27485205a5082487
[ "MIT" ]
36
2018-05-18T03:44:50.000Z
2021-12-08T19:18:00.000Z
docs/source/conf.py
akasarto/skeleton-netfx-mvc5
1e2db43e20c87bb0c2902cfe27485205a5082487
[ "MIT" ]
10
2018-06-03T08:08:05.000Z
2019-05-13T05:19:24.000Z
docs/source/conf.py
akasarto/skeleton-netfx-mvc5
1e2db43e20c87bb0c2902cfe27485205a5082487
[ "MIT" ]
15
2018-04-27T12:57:03.000Z
2020-06-17T00:46:18.000Z
# -*- 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 ------------------------------------------------------------...
30.11828
88
0.654052
797c5ab7d1af4da738cb29b9afdd23feebb968c8
825
py
Python
_test/deque.py
limbo1996/limbo1996.github.io
3de99345705c294bca76115314a58ae923fab627
[ "MIT" ]
2
2019-09-22T11:21:00.000Z
2021-02-04T01:03:12.000Z
_test/deque.py
limbo1996/limbo1996.github.io
3de99345705c294bca76115314a58ae923fab627
[ "MIT" ]
1
2021-02-04T01:16:16.000Z
2021-03-08T14:30:36.000Z
_test/deque.py
limbo1996/limbo1996.github.io
3de99345705c294bca76115314a58ae923fab627
[ "MIT" ]
null
null
null
# 双端队列 class Deque: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def addFront(self, item): self.items.append(item) def addRear(self, item): self.items.insert(0, item) def removeFront(self): return self.items.pop() def...
18.75
46
0.6
797c5acfc6061a53dfe2ea28e2d54c3994c89f31
115
py
Python
addons14/sale_quotation_number/models/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/sale_quotation_number/models/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/sale_quotation_number/models/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from . import res_company from . import sale_order
23
62
0.747826
797c5aea7281baff34809a40b4e5d4842044ec19
1,021
py
Python
LeetCode/Session3/MergeKSortedListII.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
LeetCode/Session3/MergeKSortedListII.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
LeetCode/Session3/MergeKSortedListII.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
from typing import List import math import heapq # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def mergeKLists(self, lists: List[ListNode]) -> ListNode: heap = [(list.val, index, list) for index, list in enumera...
27.594595
84
0.588639
797c5b8e68ceecce3d01b4bc8a9278663369ca42
4,563
py
Python
sdk/python/pulumi_azure_nextgen/operationalinsights/get_linked_storage_account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/operationalinsights/get_linked_storage_account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/operationalinsights/get_linked_storage_account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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 __al...
37.401639
193
0.669735
797c5c2852f5b633dd5904537a3a8255d945cd4d
9,597
py
Python
.venv/lib/python3.8/site-packages/azure/functions/eventhub.py
MarkusMeyer13/graph-teams-presence
c302b79248f31623a1b209e098afc4f85d96228d
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/azure/functions/eventhub.py
MarkusMeyer13/graph-teams-presence
c302b79248f31623a1b209e098afc4f85d96228d
[ "MIT" ]
1
2021-07-28T09:45:24.000Z
2021-07-28T09:45:24.000Z
.venv/lib/python3.8/site-packages/azure/functions/eventhub.py
MarkusMeyer13/graph-teams-presence
c302b79248f31623a1b209e098afc4f85d96228d
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import json from typing import Dict, Any, List, Union, Optional, Mapping from azure.functions import _eventhub from . import meta class EventHubConverter(meta.InConverter, meta.OutConverter, ...
36.911538
78
0.606335
797c5f2b36fe33d7d7ff1d46722bb174d513220d
1,401
py
Python
foe/main.py
twyant69/foe-bot
d9c2c8458140442ad52e48d27b90f37233dc02f8
[ "MIT" ]
52
2017-05-05T18:08:42.000Z
2021-11-23T20:12:00.000Z
foe/main.py
twyant69/foe-bot
d9c2c8458140442ad52e48d27b90f37233dc02f8
[ "MIT" ]
26
2017-06-21T20:57:20.000Z
2021-03-23T13:33:39.000Z
foe/main.py
twyant69/foe-bot
d9c2c8458140442ad52e48d27b90f37233dc02f8
[ "MIT" ]
24
2017-06-24T05:45:24.000Z
2021-09-26T11:02:17.000Z
""" """ # Native import time import random # 3rd-Party # Proprietary from models.account import Account from models.tavern import Tavern import deploy from db import session from config import config account = Account() session.add(account) count = 0 refresh = random.randrange(config['settings']['update']['...
19.191781
116
0.618844
797c60e62be44b7333311a836eb50ac85f9f6e62
1,959
py
Python
saleor/menu/utils.py
fooliscool/saleor
9502467c0e745eb8afdbfa373d634814d133e864
[ "CC-BY-4.0" ]
1
2020-11-13T14:25:51.000Z
2020-11-13T14:25:51.000Z
saleor/menu/utils.py
fooliscool/saleor
9502467c0e745eb8afdbfa373d634814d133e864
[ "CC-BY-4.0" ]
14
2021-02-02T22:41:08.000Z
2022-03-12T00:19:03.000Z
saleor/menu/utils.py
jamminwithnick/542
cd0bf3445b36c0c6904645367e6261ce75b647fc
[ "CC-BY-4.0" ]
null
null
null
from django.db import transaction from ..menu.models import Menu def get_menu_item_as_dict(menu_item): data = {} if menu_item.linked_object: # Deprecated. To remove in #5022 data["url"] = menu_item.linked_object.get_absolute_url() else: data["url"] = menu_item.url or "" data["...
30.609375
85
0.655436
797c6107e9dd3e5cf56bdccd4363c7899a79094d
2,417
py
Python
build.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
build.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
build.py
Stefantb/CMakeTools
3fd909e0d45034180e8cf97d73779468c555368f
[ "MIT" ]
null
null
null
import imp import sublime_plugin from . import project_settings as ps from . import build_tools from . import logging imp.reload(ps) imp.reload(build_tools) imp.reload(logging) # ***************************************************************************** # # ******************************************************...
34.042254
92
0.538684
797c613cfb1744874dfae9369a03c169be4a89fa
2,047
py
Python
app/lib/generateexport.py
WMInfoTech/continuous-qualtrics-exporter
0aa70bcb32086373551813d5a4c69fc0950ef590
[ "Apache-2.0" ]
null
null
null
app/lib/generateexport.py
WMInfoTech/continuous-qualtrics-exporter
0aa70bcb32086373551813d5a4c69fc0950ef590
[ "Apache-2.0" ]
null
null
null
app/lib/generateexport.py
WMInfoTech/continuous-qualtrics-exporter
0aa70bcb32086373551813d5a4c69fc0950ef590
[ "Apache-2.0" ]
null
null
null
__author__ = 'jwpully' import requests import json def generateexport(dataCenter, survey_id, bearerToken, format, startDate=None, endDate=None): # Attempt to export responses try: baseUrl = "https://{0}.qualtrics.com/API/v3/surveys/{1}/export-responses".format(dataCenter, survey_id) print(base...
37.218182
207
0.643381
797c62c96292e9da48d05640cbe173a03a0ea680
858
py
Python
tests/arm/checks/resource/test_SQLServerEmailAlertsToAdminsEnabled.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/arm/checks/resource/test_SQLServerEmailAlertsToAdminsEnabled.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/arm/checks/resource/test_SQLServerEmailAlertsToAdminsEnabled.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import os import unittest from checkov.arm.checks.resource.SQLServerEmailAlertsToAdminsEnabled import check from checkov.arm.runner import Runner from checkov.runner_filter import RunnerFilter class TestSQLServerEmailAlertsToAdminsEnabled(unittest.TestCase): def test_summary(self): runner = Runner() ...
31.777778
101
0.736597
797c63b9da9609ae5616c519e64af73692b8fdd6
9,162
py
Python
example/lenet.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
1
2020-05-02T10:38:52.000Z
2020-05-02T10:38:52.000Z
example/lenet.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
example/lenet.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.27027
142
0.689478
797c67f7f5dba197f22dc7692bd24dc80df23b04
7,619
py
Python
autobahn/websocket/test/test_protocol.py
admcnally/python
7880cfc15821c1e942c54862b7fe470e7446c27e
[ "MIT" ]
1
2019-05-01T03:42:14.000Z
2019-05-01T03:42:14.000Z
autobahn/websocket/test/test_protocol.py
admcnally/python
7880cfc15821c1e942c54862b7fe470e7446c27e
[ "MIT" ]
5
2020-06-05T20:23:04.000Z
2022-01-13T01:09:48.000Z
autobahn/websocket/test/test_protocol.py
admcnally/python
7880cfc15821c1e942c54862b7fe470e7446c27e
[ "MIT" ]
null
null
null
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
35.273148
91
0.649429
797c68dbb2e84ce7cc94b45e57f42edd2303121f
3,318
py
Python
egs/babel/s5d/local/data_select/doc2vec_textselection.py
charlesliucn/LanMIT
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
17
2019-07-08T08:34:50.000Z
2021-11-19T13:39:29.000Z
egs/babel/s5d/local/data_select/doc2vec_textselection.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
egs/babel/s5d/local/data_select/doc2vec_textselection.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from gensim import models import os, sys import numpy as np import collections def docs_reader(directory_name, file_num): # read in all the documents as training corpus print("---------------------------------") print("Read all the documents as corpus") print("------------------------------...
31.009346
66
0.528029
797c6a1fbb0557b7b83c4f8c965ea8f80e7fcbc9
1,588
py
Python
tests/test_unevenCBs.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
tests/test_unevenCBs.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
tests/test_unevenCBs.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy from kaiju import RobotGrid, RobotGridCalib from kaiju import utils import time numpy.random.seed(0) def test_unevenCBs(plot=False): hasApogee = True greed = 0.8 phobia = 0.2 xPos, yPos = utils.hexFromDia(17, pitch=22.4) seed = 1 # cb = 2.5 cs = 0.04 step = ...
26.466667
112
0.639169
797c6b6942af2455fb08f0e392d0f0d59b067c18
33,605
py
Python
tensorflow_probability/python/distributions/markov_chain.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/distributions/markov_chain.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/distributions/markov_chain.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2021 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...
43.305412
105
0.690344
797c6b8a849fc11e41fd11d2f9dec9c4a7b52256
2,730
py
Python
tools/hacky_postprocess_around_closure_limitations.py
rajkumarananthu/emscripten
a2d0b4e533d1af75e0d2897c805cea0b7572799a
[ "MIT" ]
1
2021-12-05T14:21:47.000Z
2021-12-05T14:21:47.000Z
tools/hacky_postprocess_around_closure_limitations.py
rajkumarananthu/emscripten
a2d0b4e533d1af75e0d2897c805cea0b7572799a
[ "MIT" ]
3
2021-06-05T00:42:11.000Z
2021-09-10T21:26:12.000Z
tools/hacky_postprocess_around_closure_limitations.py
rajkumarananthu/emscripten
a2d0b4e533d1af75e0d2897c805cea0b7572799a
[ "MIT" ]
null
null
null
# This file further processes an output JS file to optimize down to even smaller size that Closure is unable to do import os import re import sys __scriptdir__ = os.path.dirname(os.path.abspath(__file__)) __rootdir__ = os.path.dirname(__scriptdir__) sys.path.append(__rootdir__) from tools import building from tools.u...
40.746269
202
0.60293
797c6e2442e9c90bf7900c3b251cf5c01277f5c4
1,028
py
Python
kubernetes_asyncio/test/test_v1_controller_revision.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
1
2020-03-25T01:24:27.000Z
2020-03-25T01:24:27.000Z
kubernetes_asyncio/test/test_v1_controller_revision.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1_controller_revision.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
25.073171
119
0.73249
797c6ea984da3fb6971e5c616a9c9f0eef0159e1
15,156
py
Python
spyder/plugins/completion/plugin.py
StefRe/spyder
210495f5b691cc2986a437c237cce8de4ab06b79
[ "MIT" ]
3
2019-09-27T21:00:00.000Z
2021-03-07T23:28:32.000Z
spyder/plugins/completion/plugin.py
StefRe/spyder
210495f5b691cc2986a437c237cce8de4ab06b79
[ "MIT" ]
3
2021-10-06T22:49:31.000Z
2022-02-27T12:28:12.000Z
spyder/plugins/completion/plugin.py
StefRe/spyder
210495f5b691cc2986a437c237cce8de4ab06b79
[ "MIT" ]
2
2021-04-30T01:18:22.000Z
2021-09-19T06:31:42.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Backend plugin to manage multiple code completion and introspection clients. """ # Standard library imports from collections import defaultdict import logging im...
37.89
78
0.627012
797c6f0b27414e20665e0699e84dd1db554a8219
862
py
Python
G4/HadronicInteractions/scripts/read.py
tuanmp/MCGenerators
d1befa2fd5e351171faddb2a12fab4e530703921
[ "MIT" ]
null
null
null
G4/HadronicInteractions/scripts/read.py
tuanmp/MCGenerators
d1befa2fd5e351171faddb2a12fab4e530703921
[ "MIT" ]
null
null
null
G4/HadronicInteractions/scripts/read.py
tuanmp/MCGenerators
d1befa2fd5e351171faddb2a12fab4e530703921
[ "MIT" ]
null
null
null
#!/usr/bin/env python # %% import argparse import numpy as np def process_file(file_path, ouput_path): data = None with open(file_path, 'r') as f: for line in f.readlines(): new_data = np.array(line.split()).reshape((-1, 5)).astype(np.float16) if not new_data.shape[0]>2: contin...
26.121212
81
0.570766
797c6fef507701692011fe11ba61a87714140b9c
8,048
py
Python
sdk/python/pulumi_azure_nextgen/devtestlab/environment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/devtestlab/environment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/devtestlab/environment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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 ...
41.484536
260
0.645253
797c70e9ea5f6347dfa5fc594d1e99c36ae42822
4,175
py
Python
PFN-nested/eval.py
Quester-one/PFN
2c77f81026a061e80f397c7889cca980819dddf3
[ "MIT" ]
76
2021-08-30T02:02:39.000Z
2022-03-31T07:31:04.000Z
PFN-nested/eval.py
Quester-one/PFN
2c77f81026a061e80f397c7889cca980819dddf3
[ "MIT" ]
14
2021-09-11T01:33:27.000Z
2022-03-31T05:14:29.000Z
PFN-nested/eval.py
Quester-one/PFN
2c77f81026a061e80f397c7889cca980819dddf3
[ "MIT" ]
14
2021-09-01T14:05:47.000Z
2022-03-28T06:39:35.000Z
import json import logging import sys import torch import argparse import pickle import numpy as np from utils.metrics import * from utils.helper import * from dataloader.dataloader import * from tqdm import tqdm from model.pfn import * logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - ...
35.683761
127
0.587305
797c7151f7cb42de4acee5a2d2f5d3f14fc28e15
946
py
Python
mayan/apps/ocr/handlers.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
null
null
null
mayan/apps/ocr/handlers.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
10
2021-03-20T00:01:17.000Z
2022-03-12T00:48:43.000Z
mayan/apps/ocr/handlers.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
1
2020-12-17T02:35:09.000Z
2020-12-17T02:35:09.000Z
import logging from django.apps import apps from mayan.apps.document_indexing.tasks import task_index_document from .settings import setting_auto_ocr logger = logging.getLogger(name=__name__) def handler_index_document_version(sender, **kwargs): task_index_document.apply_async( kwargs=dict(document_id...
27.823529
68
0.750529
797c72013b514dc5a909882afb31a4c0387b8c13
1,179
py
Python
project_euler/problem_009/sol2.py
TeddyFirman/Algorithm_Python
edbd50a97a62c2beb2a187e4c411c677aa43115e
[ "MIT" ]
null
null
null
project_euler/problem_009/sol2.py
TeddyFirman/Algorithm_Python
edbd50a97a62c2beb2a187e4c411c677aa43115e
[ "MIT" ]
null
null
null
project_euler/problem_009/sol2.py
TeddyFirman/Algorithm_Python
edbd50a97a62c2beb2a187e4c411c677aa43115e
[ "MIT" ]
null
null
null
""" Project Euler Problem 9: https://projecteuler.net/problem=9 Special Pythagorean triplet A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b + c = 10...
24.061224
79
0.518236
797c732329dbf720046006edb808866a25bde43a
1,035
py
Python
src/python/setup.py
peterbrazil/brazil
3823dca6f05b6946251800125d45069048d1bca1
[ "Apache-2.0" ]
null
null
null
src/python/setup.py
peterbrazil/brazil
3823dca6f05b6946251800125d45069048d1bca1
[ "Apache-2.0" ]
null
null
null
src/python/setup.py
peterbrazil/brazil
3823dca6f05b6946251800125d45069048d1bca1
[ "Apache-2.0" ]
null
null
null
__author__ = 'tom' from setuptools import setup # Makes use of the sphinx and sphinx-pypi-upload packages. To build for local development # use 'python setup.py develop'. To upload a version to pypi use 'python setup.py clean sdist upload'. # To build docs use 'python setup.py build_sphinx' and to upload docs to pytho...
39.807692
102
0.703382
797c7347313d1dc51c9b03e03b390643d603a19c
936
py
Python
Leetcode/2001-3000/2003. Smallest Missing Genetic Value in Each Subtree/2003.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/2001-3000/2003. Smallest Missing Genetic Value in Each Subtree/2003.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/2001-3000/2003. Smallest Missing Genetic Value in Each Subtree/2003.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def smallestMissingValueSubtree(self, parents: List[int], nums: List[int]) -> List[int]: n = len(parents) ans = [1] * n graph = [[] for _ in range(n)] seen = set() minMiss = 1 for i in range(1, n): graph[parents[i]].append(i) def getNode(nums: List[int]) -> int: ...
21.272727
90
0.524573
797c7477de21dc5772842c7ffe6dc3551bc6c8fe
17,144
py
Python
source/virtualBuffers/MSHTML.py
GdePaulo/nvda
71c385eae1d7f77c47a0871a690c1142c4c724e2
[ "bzip2-1.0.6" ]
null
null
null
source/virtualBuffers/MSHTML.py
GdePaulo/nvda
71c385eae1d7f77c47a0871a690c1142c4c724e2
[ "bzip2-1.0.6" ]
null
null
null
source/virtualBuffers/MSHTML.py
GdePaulo/nvda
71c385eae1d7f77c47a0871a690c1142c4c724e2
[ "bzip2-1.0.6" ]
null
null
null
# virtualBuffers/MSHTML.py # A part of NonVisual Desktop Access (NVDA) # This file is covered by the GNU General Public License. # See the file COPYING for more details. # Copyright (C) 2009-2020 NV Access Limited, Babbage B.V., Accessolutions, Julien Cochuyt from comtypes import COMError import eventHandler f...
40.916468
238
0.72066
797c74b1cbb0bdbff339e0fa6002bc617190dd49
184
py
Python
extract_keywords/__init__.py
GarryGaller/extract_keywords
f717427a3d427b17bf58f95aa30ff3258ae5147b
[ "MIT" ]
null
null
null
extract_keywords/__init__.py
GarryGaller/extract_keywords
f717427a3d427b17bf58f95aa30ff3258ae5147b
[ "MIT" ]
null
null
null
extract_keywords/__init__.py
GarryGaller/extract_keywords
f717427a3d427b17bf58f95aa30ff3258ae5147b
[ "MIT" ]
null
null
null
from .tfidf import tf, idf from .rank import textrank from .preprocessing import preprocessor, nltk_preprocessor, cleaning, simple_tokenize, lemmatize from .stopwords import stopwords
36.8
96
0.836957
797c75b108c8f7f9d372c7d52b037fed7e90d562
1,608
py
Python
tests/scripts/check_latency.py
NSSAC/xactor
39b03e93e21493ce183a5028ccf3128bcb5d2d71
[ "MIT" ]
1
2021-01-07T18:35:20.000Z
2021-01-07T18:35:20.000Z
tests/scripts/check_latency.py
NSSAC/xactor
39b03e93e21493ce183a5028ccf3128bcb5d2d71
[ "MIT" ]
null
null
null
tests/scripts/check_latency.py
NSSAC/xactor
39b03e93e21493ce183a5028ccf3128bcb5d2d71
[ "MIT" ]
null
null
null
"""Test latency. Compute the average time to send one "message" from one rank to another. """ import sys import logging import statistics as st from time import perf_counter import xactor as xa MASTER_RANK = 0 WORKER_RANK = 1 RUNTIME = 30 # seconds class Worker: def __init__(self): self.main_actor =...
22.647887
71
0.600746
797c77059e8d418f92264001adcf2d6e2906189d
3,481
py
Python
qt/app/DataBase/dbScript.py
kboniadi/Lets_Play_Football
78c5a8412f483175b56f41018efee7fd7e3bb479
[ "MIT" ]
null
null
null
qt/app/DataBase/dbScript.py
kboniadi/Lets_Play_Football
78c5a8412f483175b56f41018efee7fd7e3bb479
[ "MIT" ]
null
null
null
qt/app/DataBase/dbScript.py
kboniadi/Lets_Play_Football
78c5a8412f483175b56f41018efee7fd7e3bb479
[ "MIT" ]
null
null
null
import sqlite3 import csv import sys def ImportTeamTemplate(filename): # conn = sqlite3.connect('Data.db') # conn.execute("PRAGMA foreign_keys=1") # cur = conn.cursor() cur.execute("CREATE TABLE IF NOT EXISTS teams(id INTEGER PRIMARY KEY AUTOINCREMENT, teamNames TEXT)") with open(filename, 'r...
29.5
118
0.574548
797c772aed96557707369f19af1fcdcd899fb112
159
py
Python
contrib/wallettools/walletunlock.py
zogcoin/crypto
2b077507744868b56ff410f92470bcbc660fa363
[ "MIT" ]
null
null
null
contrib/wallettools/walletunlock.py
zogcoin/crypto
2b077507744868b56ff410f92470bcbc660fa363
[ "MIT" ]
null
null
null
contrib/wallettools/walletunlock.py
zogcoin/crypto
2b077507744868b56ff410f92470bcbc660fa363
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:38400") pwd = raw_input("Enter wallet passphrase: ") access.walletpassphrase(pwd, 60)
31.8
47
0.767296
797c7731cad135147ae5408d714768fa91b798ef
2,685
py
Python
sampleSY.py
indra-ipd/SQN
1e2f532117642f2207f7936ec8cdf47e96efe10d
[ "MIT" ]
null
null
null
sampleSY.py
indra-ipd/SQN
1e2f532117642f2207f7936ec8cdf47e96efe10d
[ "MIT" ]
null
null
null
sampleSY.py
indra-ipd/SQN
1e2f532117642f2207f7936ec8cdf47e96efe10d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2019 Albert Berahas, Majid Jahani, Martin Takáč # # All Rights Reserved. # # Authors: Albert Berahas, Majid Jahani, Martin Takáč # # Please cite: # # A. S. Berahas, M. Jahani, and M. Takáč, "Quasi-Newton Methods for # Deep Learning: Forget the Past,...
35.328947
103
0.579888
797c781721c914fb75261b4c53db33be7b082b5d
1,064
py
Python
GeekBrains/python-basics-2020/less_5/task_6.py
denisborisov/courses
ca4a830a206ccce49777f1a412159baa27eb95f4
[ "MIT" ]
null
null
null
GeekBrains/python-basics-2020/less_5/task_6.py
denisborisov/courses
ca4a830a206ccce49777f1a412159baa27eb95f4
[ "MIT" ]
null
null
null
GeekBrains/python-basics-2020/less_5/task_6.py
denisborisov/courses
ca4a830a206ccce49777f1a412159baa27eb95f4
[ "MIT" ]
null
null
null
''' Task 6. Необходимо создать (не программно) текстовый файл, где каждая строка описывает учебный предмет и наличие лекционных, практических и лабораторных занятий по этому предмету и их количество. Важно, чтобы для каждого предмета не обязательно были все типы занятий. Сформировать словарь, содержащий название предм...
30.4
116
0.643797
797c79841b56e14d64829c74783bfd2c987e8ea2
1,236
py
Python
test/functional/test_framework/bignum.py
xujun-sh/utopiachain
f98c5c53fd88fe1207151487b19c89998c94cdf1
[ "MIT" ]
null
null
null
test/functional/test_framework/bignum.py
xujun-sh/utopiachain
f98c5c53fd88fe1207151487b19c89998c94cdf1
[ "MIT" ]
null
null
null
test/functional/test_framework/bignum.py
xujun-sh/utopiachain
f98c5c53fd88fe1207151487b19c89998c94cdf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Big number routines. This file is copied from python-utopiacoinlib. """ import struct # generic big endian MPI format def bn_bytes(v, have_ext=False):...
20.949153
69
0.565534
797c7a08a068a0b83e939e0ea0f8d7364dac5abd
3,923
py
Python
municipal_finance/data_import/data_audit.py
desafinadude/municipal-data
1c86c55bbb59f9c8087f6920fae3585dd90d5d43
[ "MIT" ]
19
2018-01-09T10:54:15.000Z
2022-01-25T13:10:55.000Z
municipal_finance/data_import/data_audit.py
desafinadude/municipal-data
1c86c55bbb59f9c8087f6920fae3585dd90d5d43
[ "MIT" ]
29
2018-01-12T12:12:38.000Z
2022-01-31T15:30:36.000Z
municipal_finance/data_import/data_audit.py
desafinadude/municipal-data
1c86c55bbb59f9c8087f6920fae3585dd90d5d43
[ "MIT" ]
13
2018-02-11T02:12:57.000Z
2021-11-22T11:03:22.000Z
import requests import sys import csv munis = ('CPT', 'JHB', 'TSH', 'BUF', 'MAN', 'NMA', 'DC40', 'FS183', 'NW373', 'EC141', 'NC094', 'DC43', 'KZN236', 'KZN265', 'NC091', 'NC078', 'KZN254', 'KZN285', 'LIM341', 'MP303', 'KZN244', 'WC014', 'MP305', 'NC071', 'KZN241', 'LIM471', 'WC041', 'NW384', 'EC157', 'LIM333', 'DC4', ...
65.383333
2,516
0.5195
797c7b9412d3425a38a0b1714a98953fd7e420a1
205
py
Python
html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
7,642
2018-05-28T09:38:03.000Z
2022-03-31T20:55:48.000Z
html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
def main(request, response): response.headers.set(b"Content-Type", b"text/html") response.headers.set(b"Refresh", request.GET.first(b"input")) response.content = u"<!doctype html>refresh.py\n"
41
65
0.707317
797c7c419967b4d14f49929ae72be12f535bfc5c
10,960
py
Python
mptt/templatetags/mptt_tags.py
cajun-code/django-mptt
3a3a2c028a0b6fe2a8fb6cfdbeb69275673de8b5
[ "MIT" ]
1
2015-11-05T05:09:29.000Z
2015-11-05T05:09:29.000Z
mptt/templatetags/mptt_tags.py
cajun-code/django-mptt
3a3a2c028a0b6fe2a8fb6cfdbeb69275673de8b5
[ "MIT" ]
null
null
null
mptt/templatetags/mptt_tags.py
cajun-code/django-mptt
3a3a2c028a0b6fe2a8fb6cfdbeb69275673de8b5
[ "MIT" ]
null
null
null
""" Template tags for working with lists of model instances which represent trees. """ from django import template from django.db.models import get_model from django.db.models.fields import FieldDoesNotExist from django.utils.encoding import force_unicode from django.utils.safestring import mark_safe from django.utils....
36.052632
151
0.638504
797c7e6d018ca686724a668dc8512f31d35a7a3e
59,075
py
Python
pymcuprog/tests/test_backend.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
28
2021-05-08T19:28:33.000Z
2022-03-23T06:23:13.000Z
pymcuprog/tests/test_backend.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
20
2021-05-24T19:20:39.000Z
2022-03-12T20:10:30.000Z
pymcuprog/tests/test_backend.py
KrystianD-contribution/pymcuprog
a9411a8e4a5db8b54517c51da0bae96bf8385a65
[ "MIT" ]
11
2021-06-24T20:59:16.000Z
2022-03-23T23:59:38.000Z
# The intention is to make the test names descriptive enough to not need any docstrings for most of them #pylint: disable=missing-docstring # It seems better to have all tests for one module in the same file than to split across multiple files, # so accepting many public methods and many lines makes sense #pylint: disa...
42.932413
120
0.733982
797c7f086e47c46c6c10dc1a8b8e8d3e2262b9da
2,286
py
Python
seq2seq.py
nishprabhu/image_captioning
4bf84c9f37b2d35a071cb28b62ad08081ebe0a29
[ "MIT" ]
null
null
null
seq2seq.py
nishprabhu/image_captioning
4bf84c9f37b2d35a071cb28b62ad08081ebe0a29
[ "MIT" ]
null
null
null
seq2seq.py
nishprabhu/image_captioning
4bf84c9f37b2d35a071cb28b62ad08081ebe0a29
[ "MIT" ]
null
null
null
""" Encoder and Decoder wrappers written in PyTorch 1.5.0 """ import torch import torch.nn as nn import torch.nn.functional as F class Encoder(nn.Module): """ Encoder base class """ def __init__(self): super(Encoder, self).__init__() def forward(self, *kwargs): """ Forward pass """ ...
30.078947
109
0.585302
797c7f8a79928cb4ac15f8d3a27c6ff7ae5ac4a9
1,410
py
Python
bench_manager/bench_manager/doctype/saas_send_invoice/saas_send_invoice.py
Mawrederp/bench_manager
a7d2bef1d4fdff27bd34b8ed2cbb9c29a6266f8c
[ "MIT" ]
null
null
null
bench_manager/bench_manager/doctype/saas_send_invoice/saas_send_invoice.py
Mawrederp/bench_manager
a7d2bef1d4fdff27bd34b8ed2cbb9c29a6266f8c
[ "MIT" ]
null
null
null
bench_manager/bench_manager/doctype/saas_send_invoice/saas_send_invoice.py
Mawrederp/bench_manager
a7d2bef1d4fdff27bd34b8ed2cbb9c29a6266f8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.utils import cstr, nowdate, cint import datetime from frappe import utils from datetime import date from frappe.utils.data import flt...
39.166667
199
0.72695
797c801bde464f465b33c4dfe481c0c7ce8e298f
1,962
py
Python
aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/CreateInstanceRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/CreateInstanceRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/CreateInstanceRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.24
89
0.786952
797c80ceddd8dd7e4d547ca6582c0b3b18103db1
1,198
py
Python
pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py
RKinsey/pysnmp
96b5cf31e2f5d19f34d0dd1075014c488f6a5789
[ "BSD-2-Clause" ]
492
2016-03-13T11:03:13.000Z
2022-03-21T02:52:57.000Z
pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py
bartomo/pysnmp
becd15c79c9a6b5696928ecd50bf5cca8b1770a1
[ "BSD-2-Clause" ]
372
2016-03-29T22:42:05.000Z
2022-03-26T10:28:25.000Z
pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py
bartomo/pysnmp
becd15c79c9a6b5696928ecd50bf5cca8b1770a1
[ "BSD-2-Clause" ]
197
2016-03-13T11:01:54.000Z
2022-03-07T19:52:15.000Z
# # This file is part of pysnmp software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # # This file instantiates some of the MIB managed objects for SNMP engine use # if 'mibBuilder' not in globals(): import sys sys.stderr.write(__doc__) ...
24.44898
76
0.755426
797c816e6644e3474b8720e45272018a2d44af9c
28,634
py
Python
aiokafka/conn.py
CoinAlpha/aiokafka
d0774058bc1d845d1deb93c15c9ea08fbbd90832
[ "Apache-2.0" ]
null
null
null
aiokafka/conn.py
CoinAlpha/aiokafka
d0774058bc1d845d1deb93c15c9ea08fbbd90832
[ "Apache-2.0" ]
null
null
null
aiokafka/conn.py
CoinAlpha/aiokafka
d0774058bc1d845d1deb93c15c9ea08fbbd90832
[ "Apache-2.0" ]
null
null
null
import asyncio import collections import base64 import functools import hashlib import hmac import logging import struct import sys import time import traceback import uuid import warnings import weakref from kafka.protocol.api import RequestHeader from kafka.protocol.admin import ( SaslHandShakeRequest, SaslAuthe...
37.528178
87
0.621394
797c82737a946e0b837c4f700318a18f3d8c632a
375
py
Python
flowerrecognising/users/urls.py
w60083/Floragram
79b4ae2f0efa880be461a75abb50b3f5443f2c1c
[ "MIT" ]
null
null
null
flowerrecognising/users/urls.py
w60083/Floragram
79b4ae2f0efa880be461a75abb50b3f5443f2c1c
[ "MIT" ]
null
null
null
flowerrecognising/users/urls.py
w60083/Floragram
79b4ae2f0efa880be461a75abb50b3f5443f2c1c
[ "MIT" ]
null
null
null
from django.urls import path from flowerrecognising.users.views import ( user_detail_view, user_redirect_view, user_update_view, ) app_name = "users" urlpatterns = [ path("~redirect/", view=user_redirect_view, name="redirect"), path("~update/", view=user_update_view, name="update"), path("<str...
25
66
0.709333
797c8292c97808b6c031b8130dddfda8c5b357e8
2,837
py
Python
tests/models.py
asaak-co/dynamic-rest-client
224575c72676ba52cce0ac9bbeba7350ad6fefad
[ "MIT" ]
1
2018-01-18T19:03:04.000Z
2018-01-18T19:03:04.000Z
tests/models.py
asaak-co/dynamic-rest-client
224575c72676ba52cce0ac9bbeba7350ad6fefad
[ "MIT" ]
4
2017-09-07T21:43:34.000Z
2020-01-13T19:21:07.000Z
tests/models.py
asaak-co/dynamic-rest-client
224575c72676ba52cce0ac9bbeba7350ad6fefad
[ "MIT" ]
1
2021-12-09T14:47:31.000Z
2021-12-09T14:47:31.000Z
from __future__ import absolute_import from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models class User(models.Model): name = models.TextField() last_name = models.TextField() groups = models.ManyToManyField...
27.543689
77
0.702855
797c8339ae51df9e2b6c448bc21500d5f1b25a75
2,316
py
Python
codes/projects/advection_diffusion_2d/utils_project/construct_prior_dict.py
hwangoh/uq-vae
382548e6f6dd7f9d72feff0e0752beec871db348
[ "MIT" ]
2
2021-07-28T16:47:18.000Z
2021-08-03T00:53:58.000Z
codes/projects/test_discrete_parameter/utils_project/construct_prior_dict.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
null
null
null
codes/projects/test_discrete_parameter/utils_project/construct_prior_dict.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
2
2021-09-29T08:31:46.000Z
2021-11-07T10:26:45.000Z
'''Constructs project specific dictionary containing prior model related objects To construct the dictionary, the code will create an instance of the PriorHandler class. Utilizing the methods of this class then loads the covariance related objects. Inputs: - hyperp: dictionary storing set hyperparameter values ...
38.6
91
0.698187
797c835a4b1c04cba8f73f3975601e41545592d6
1,704
py
Python
python/fuzzy_classification/classifiers/FuzzyEnsemble.py
oljubuncic1/fuzzy-classification
915a4f1a9fb25b576ac985755c379f89f54c65a3
[ "MIT" ]
null
null
null
python/fuzzy_classification/classifiers/FuzzyEnsemble.py
oljubuncic1/fuzzy-classification
915a4f1a9fb25b576ac985755c379f89f54c65a3
[ "MIT" ]
null
null
null
python/fuzzy_classification/classifiers/FuzzyEnsemble.py
oljubuncic1/fuzzy-classification
915a4f1a9fb25b576ac985755c379f89f54c65a3
[ "MIT" ]
1
2020-04-20T07:32:22.000Z
2020-04-20T07:32:22.000Z
import pyximport pyximport.install() from fuzzy_classification.classifiers.RandomFuzzyTree \ import RandomFuzzyTree import numpy as np from collections import defaultdict import logging logger = logging.getLogger("FuzzyEnsemble") class FuzzyEnsemble: def __init__(self, classifier_n=10, ...
28.4
68
0.559272
797c83e621dc62f085af53fab59d0140beaa50ad
6,091
py
Python
src/oci/apigateway/models/update_api_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/apigateway/models/update_api_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/apigateway/models/update_api_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.396907
245
0.638647
797c84394b5165528cf5a21d852dd9857bb17c58
7,455
py
Python
main.py
dragaosemchama/faceswap
5c6f9370a18f1a1ca1e2d0175c9c9abfd405ab87
[ "MIT" ]
1
2019-02-23T13:15:24.000Z
2019-02-23T13:15:24.000Z
main.py
dragaosemchama/faceswap
5c6f9370a18f1a1ca1e2d0175c9c9abfd405ab87
[ "MIT" ]
null
null
null
main.py
dragaosemchama/faceswap
5c6f9370a18f1a1ca1e2d0175c9c9abfd405ab87
[ "MIT" ]
2
2016-10-07T00:55:15.000Z
2021-01-01T18:06:46.000Z
# coding: utf-8 import cv2 import numpy import time from PIL import Image, ImageOps, ImageDraw, ImageEnhance def detect(img, classifier): """Função de detecção de padrão Entrada: img: uma imagem classifier: o classificador representando qual padrão deve ser ...
36.014493
79
0.625218
797c853d3d1e1da36284964df7d6c9460226a15a
7,081
py
Python
sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/api_tag_description.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/api_tag_description.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/api_tag_description.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 __a...
45.391026
624
0.658805
797c8611489928d0ec0d17a9c9939cdbb222e1d0
1,497
py
Python
Basic Data Structures/array/leet_048_RotateImage.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/array/leet_048_RotateImage.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/array/leet_048_RotateImage.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
# Problem: Rotate Image # Difficulty: Medium # Category: Array # Leetcode 48: https://leetcode.com/problems/rotate-image/description/ # Description: """ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which means you have...
18.949367
154
0.637943
797c8883a36784bbf6c0ae5d5d7ed81caf85cf83
16,372
py
Python
source/outreach_tracking/methods_upload_outreach_events.py
kbase/metrics
33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486
[ "MIT" ]
1
2015-12-16T13:33:04.000Z
2015-12-16T13:33:04.000Z
source/outreach_tracking/methods_upload_outreach_events.py
kbase/metrics
33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486
[ "MIT" ]
54
2016-06-01T19:28:09.000Z
2022-03-31T00:08:38.000Z
source/outreach_tracking/methods_upload_outreach_events.py
kbase/metrics
33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486
[ "MIT" ]
8
2015-12-16T13:33:04.000Z
2020-02-07T23:30:33.000Z
from pymongo import MongoClient from pymongo import ReadPreference import json as _json import os import mysql.connector as mysql import re import requests import time import datetime requests.packages.urllib3.disable_warnings() metrics_mysql_password = os.environ["METRICS_MYSQL_PWD"] kb_outreach_events_url = os.env...
43.312169
123
0.585268
797c8916ad6bcf6689248f7f3a12599240b9a81a
82
py
Python
bikevr_sensor_controller/__main__.py
dangpg/BikeVR-Sensor-Controller
565c200281e0c1e60406c25aa9ba51cdca1c4359
[ "MIT" ]
1
2021-10-14T22:12:54.000Z
2021-10-14T22:12:54.000Z
bikevr_sensor_controller/__main__.py
dangpg/BikeVR-Sensor-Controller
565c200281e0c1e60406c25aa9ba51cdca1c4359
[ "MIT" ]
null
null
null
bikevr_sensor_controller/__main__.py
dangpg/BikeVR-Sensor-Controller
565c200281e0c1e60406c25aa9ba51cdca1c4359
[ "MIT" ]
null
null
null
from bikevr_sensor_controller import app if __name__ == '__main__': app.run()
20.5
40
0.743902
797c896c6dd422a0bc6caf456479f8192c24de72
5,748
py
Python
torchvision/datasets/lsun.py
StadlerMaximilian/vision
5dae7a69c18ed3f59c2b6b37a6899d2ef7c08c97
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/lsun.py
StadlerMaximilian/vision
5dae7a69c18ed3f59c2b6b37a6899d2ef7c08c97
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/lsun.py
StadlerMaximilian/vision
5dae7a69c18ed3f59c2b6b37a6899d2ef7c08c97
[ "BSD-3-Clause" ]
null
null
null
from .vision import VisionDataset from PIL import Image import os import os.path import io import string from collections.abc import Iterable import pickle from typing import Any, Callable, cast, List, Optional, Tuple, Union from .utils import verify_str_arg, iterable_to_str class LSUNClass(VisionDataset): def __...
35.04878
90
0.561239
797c8acc58f697b5459701fb364a39e2c8c38254
8,716
py
Python
Re-ID/newfeat_extract_feature.py
zyouc518/crow
e3fe92e329649fb82b3fef6c0ab5b732f1918900
[ "Apache-2.0" ]
null
null
null
Re-ID/newfeat_extract_feature.py
zyouc518/crow
e3fe92e329649fb82b3fef6c0ab5b732f1918900
[ "Apache-2.0" ]
null
null
null
Re-ID/newfeat_extract_feature.py
zyouc518/crow
e3fe92e329649fb82b3fef6c0ab5b732f1918900
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(0, '.') sys.path.append('../../') #from PCBModel_concat_norelu import PCBModel as Model from PCBModel_concat_res101_norelu import PCBModel as Model from torch.nn.parallel import DataParallel from utils import set_devices from utils import load_state_dict from torch.utils.data import Dataset, ...
37.089362
115
0.635268
797c8b5743e9a9e84b972786c8539ed6a9d4d479
1,331
py
Python
mltoolkit/mlmo/layers/mu_sigma_ffnn.py
stungkit/Copycat-abstractive-opinion-summarizer
04fe5393a7bb6883516766b762f6a0c530e95375
[ "MIT" ]
51
2020-09-25T07:05:01.000Z
2022-03-17T12:07:40.000Z
mltoolkit/mlmo/layers/mu_sigma_ffnn.py
stungkit/Copycat-abstractive-opinion-summarizer
04fe5393a7bb6883516766b762f6a0c530e95375
[ "MIT" ]
4
2020-10-19T10:00:22.000Z
2022-03-14T17:02:47.000Z
mltoolkit/mlmo/layers/mu_sigma_ffnn.py
stungkit/Copycat-abstractive-opinion-summarizer
04fe5393a7bb6883516766b762f6a0c530e95375
[ "MIT" ]
22
2020-09-22T01:06:47.000Z
2022-01-26T14:20:09.000Z
import torch as T from torch.nn import Module from mltoolkit.mlmo.layers import Ffnn class MuSigmaFfnn(Module): """ A single hidden layer feed-forward nn that outputs mu and sigma of a Gaussian distribution. The produced sigma is a vector with non-negative values. """ def __init__(self, input...
32.463415
77
0.628099
797c8b69dd0463b4303c55ba673f8529de8232d9
6,702
py
Python
dlutils/models/gans/cycle/cycle_gan.py
justusschock/dl-utils
1078f5030b8aac2bf022daf5fa14d66f74c3c893
[ "MIT" ]
13
2020-03-25T12:29:32.000Z
2022-02-05T15:02:11.000Z
dlutils/models/gans/cycle/cycle_gan.py
Royzon/dl-utils
be95707da9cb812a5f25a11f1469055e0b7abcd2
[ "MIT" ]
1
2021-07-05T10:14:52.000Z
2021-07-05T10:14:52.000Z
dlutils/models/gans/cycle/cycle_gan.py
Royzon/dl-utils
be95707da9cb812a5f25a11f1469055e0b7abcd2
[ "MIT" ]
5
2020-03-25T12:55:09.000Z
2020-12-22T20:18:52.000Z
import torch from dlutils.models.gans.cycle.buffer import ReplayBuffer from dlutils.models.gans.cycle.models import GeneratorResNet, \ Discriminator class CycleGAN(torch.nn.Module): """ An implementation of cycle-consitent generative adversarial networks for unsupervised domain transfer with exchange...
35.089005
78
0.653685
797c8c786b078e553b0dffc9ee59657c56130d8f
1,040
py
Python
admin/polytope-admin/polytope_admin/cli/__init__.py
ecmwf-projects/polytope-server
135017717cf161d68875a55aa364ce311a1d2ea6
[ "Apache-2.0" ]
null
null
null
admin/polytope-admin/polytope_admin/cli/__init__.py
ecmwf-projects/polytope-server
135017717cf161d68875a55aa364ce311a1d2ea6
[ "Apache-2.0" ]
1
2022-01-28T11:39:25.000Z
2022-01-28T11:39:25.000Z
admin/polytope-admin/polytope_admin/cli/__init__.py
ecmwf-projects/polytope-server
135017717cf161d68875a55aa364ce311a1d2ea6
[ "Apache-2.0" ]
null
null
null
# # Copyright 2022 European Centre for Medium-Range Weather Forecasts (ECMWF) # # 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...
38.518519
80
0.774038
797c8cf00cec92f7f260150704e8153dfff0af7c
11,059
py
Python
tools/create_formatstyle_history.py
grische/whatstyle
eff02bfa45a75019ad4e470085ff7c4da51cb5c4
[ "MIT" ]
169
2016-06-21T16:43:06.000Z
2022-01-24T23:01:45.000Z
tools/create_formatstyle_history.py
grische/whatstyle
eff02bfa45a75019ad4e470085ff7c4da51cb5c4
[ "MIT" ]
9
2017-10-15T03:27:28.000Z
2022-01-16T22:12:28.000Z
tools/create_formatstyle_history.py
grische/whatstyle
eff02bfa45a75019ad4e470085ff7c4da51cb5c4
[ "MIT" ]
9
2016-08-24T18:27:27.000Z
2021-12-22T10:27:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This script uses a repurposed version of docs/tools/dump_format_style.py # from http://llvm.org/git/clang.git # to generate a version history of clang-format options for all commits. # # The file include/clang/Format/Format.h contains the ground truth about # the option...
33.01194
102
0.626277
797c8f7a704b92de259892dea9ff667133509dd6
238
py
Python
services/flask/project/routes/home.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
services/flask/project/routes/home.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
services/flask/project/routes/home.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify # Blueprint Configuration home_blueprint = Blueprint( 'home_blueprint', __name__, ) @home_blueprint.route('/', methods=['GET']) def home(): """Homepage.""" return jsonify(hello="world")
18.307692
43
0.693277
797c8f8cf4228cd4a2112a8cdc15151ba4b44281
8,021
py
Python
docs/conf.py
neeldeorukhkar/predict_customer_sat
44db3f31bd1069c7d8011387c0d5da9151ac0e33
[ "FTL" ]
1
2021-02-13T01:41:04.000Z
2021-02-13T01:41:04.000Z
docs/conf.py
neeldeorukhkar/predict_customer_sat
44db3f31bd1069c7d8011387c0d5da9151ac0e33
[ "FTL" ]
null
null
null
docs/conf.py
neeldeorukhkar/predict_customer_sat
44db3f31bd1069c7d8011387c0d5da9151ac0e33
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- # # Airline Customer Satisfaction documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All confi...
32.738776
134
0.713253
797c902189e66c0f228702598608358c8460471e
470
py
Python
login.py
ZacOrz/cgi-lab
746df9977f1d41bc4412c447122758c62bb2cedf
[ "Apache-2.0" ]
null
null
null
login.py
ZacOrz/cgi-lab
746df9977f1d41bc4412c447122758c62bb2cedf
[ "Apache-2.0" ]
null
null
null
login.py
ZacOrz/cgi-lab
746df9977f1d41bc4412c447122758c62bb2cedf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os, sys, cgi from templates import login_page, secret_page, after_login_incorrect import secret form = cgi.FieldStorage() username = form.getvalue("username") password = form.getvalue("password") if (username == secret.username and password == secret.password): print(f"Set-Cookie:use...
29.375
68
0.734043
797c9023ad34d474c2f0e56a37a0429972a04ad5
1,310
py
Python
Lib/test/test_nis.py
finefoot/cpython
ffcc7cd57f6a52c6074ecc9f0a9f0177fb1dbfee
[ "0BSD" ]
2
2022-03-27T14:52:48.000Z
2022-03-27T17:35:22.000Z
Lib/test/test_nis.py
finefoot/cpython
ffcc7cd57f6a52c6074ecc9f0a9f0177fb1dbfee
[ "0BSD" ]
8
2022-01-07T11:31:11.000Z
2022-03-04T00:07:16.000Z
Lib/test/test_nis.py
finefoot/cpython
ffcc7cd57f6a52c6074ecc9f0a9f0177fb1dbfee
[ "0BSD" ]
1
2022-03-27T18:34:54.000Z
2022-03-27T18:34:54.000Z
from test import support from test.support import import_helper import unittest import warnings # Skip test if nis module does not exist. with warnings.catch_warnings(): warnings.simplefilter("ignore", DeprecationWarning) nis = import_helper.import_module('nis') class NisTests(unittest.TestCase): def te...
29.111111
88
0.533588
797c903dd34af6e8ef218e901281a1754b77d832
27,242
py
Python
test/functional/wallet_basic.py
cryptorats23/bitcoin
195822f1e05e2f36002c906667d4c639663f23b5
[ "MIT" ]
2
2020-06-15T15:10:31.000Z
2021-07-06T14:53:49.000Z
test/functional/wallet_basic.py
NauhWuun/bitcoin
39bd9ddb8783807b9cde6288233e86ad7c85d61f
[ "MIT" ]
1
2021-03-19T16:11:40.000Z
2021-03-19T16:11:40.000Z
test/functional/wallet_basic.py
NauhWuun/bitcoin
39bd9ddb8783807b9cde6288233e86ad7c85d61f
[ "MIT" ]
2
2020-11-04T07:04:38.000Z
2020-12-30T07:19:00.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet.""" from decimal import Decimal from test_framework.test_framework import BitcoinTestF...
51.014981
193
0.645217
797c9153f36bc9afa15bc108f4d98d840036baf0
4,401
py
Python
neutron/objects/subnetpool.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/objects/subnetpool.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/objects/subnetpool.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (c) 2015 OpenStack Foundation. # 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...
36.675
78
0.675983
797c924e8c567528945e9b08a78d3f2f2c4276dd
85,212
py
Python
pytorch_lightning/core/lightning.py
adamreeve/pytorch-lightning
908e05880d4271ad32876311320d4465a008a710
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/lightning.py
adamreeve/pytorch-lightning
908e05880d4271ad32876311320d4465a008a710
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/lightning.py
adamreeve/pytorch-lightning
908e05880d4271ad32876311320d4465a008a710
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
42.39403
120
0.610642
797c92d845bf695a15cd679cad54c6efd6bc71a0
32,527
py
Python
annotation_gui_gcp/run_ba.py
sebhaner/OpenSfM
99e647243a97acc3ae59d7cba6813d089a793f09
[ "BSD-2-Clause" ]
null
null
null
annotation_gui_gcp/run_ba.py
sebhaner/OpenSfM
99e647243a97acc3ae59d7cba6813d089a793f09
[ "BSD-2-Clause" ]
null
null
null
annotation_gui_gcp/run_ba.py
sebhaner/OpenSfM
99e647243a97acc3ae59d7cba6813d089a793f09
[ "BSD-2-Clause" ]
1
2021-12-15T17:15:19.000Z
2021-12-15T17:15:19.000Z
import argparse import json import logging import os import sys from collections import defaultdict import numpy as np import opensfm.reconstruction as orec from opensfm import dataset, log, multiview, pygeometry from opensfm import transformations as tf from opensfm import types from opensfm.align import apply_simila...
37.08894
114
0.623544
797c93a728304d926ba6e3a81a8ab8956466548f
1,551
py
Python
tests/test_fast_bernoulli.py
altosaar/deep-exponential-families-gluon
80d69b54081f622c0012bb181aa6d8ab9a740f15
[ "MIT" ]
19
2017-10-17T01:04:23.000Z
2021-11-14T20:50:56.000Z
tests/test_fast_bernoulli.py
afcarl/deep-exponential-families-gluon
80d69b54081f622c0012bb181aa6d8ab9a740f15
[ "MIT" ]
null
null
null
tests/test_fast_bernoulli.py
afcarl/deep-exponential-families-gluon
80d69b54081f622c0012bb181aa6d8ab9a740f15
[ "MIT" ]
1
2018-07-05T21:17:34.000Z
2018-07-05T21:17:34.000Z
import numpy as np import time import distributions import scipy.stats import scipy.special import mxnet as mx from mxnet import nd mx.random.seed(13343) np.random.seed(2324) def test_bernoulli_sampling(): n_samples = 10000 K = 10 # num factors C = 2 # num classes # latent variable is of size [n_samples, ...
32.3125
77
0.702772
797c93cab0d21600c566d70c14a96871f58fe916
711
py
Python
NodeDefender/mqtt/message/report/sensor/info.py
CTSNE/NodeDefender
24e19f53a27d3b53e599cba8b1448f8f16c0bd5e
[ "MIT" ]
4
2016-09-23T17:51:05.000Z
2017-03-14T02:52:26.000Z
NodeDefender/mqtt/message/report/sensor/info.py
CTSNE/NodeDefender
24e19f53a27d3b53e599cba8b1448f8f16c0bd5e
[ "MIT" ]
1
2016-09-22T11:32:33.000Z
2017-11-14T10:00:24.000Z
NodeDefender/mqtt/message/report/sensor/info.py
CTSNE/NodeDefender
24e19f53a27d3b53e599cba8b1448f8f16c0bd5e
[ "MIT" ]
4
2016-10-09T19:05:16.000Z
2020-05-14T04:00:30.000Z
import NodeDefender def status(topic, payload): return True def qry(topic, payload): return NodeDefender.icpe.sensor.\ sensor_info(topic['mac_address'], topic['node'], **payload) def sup(topic, payload): if type(payload) is not dict: return True if 'typelist' in payload: t...
27.346154
71
0.613221
797c93dc434e6a727414722592dcd9d76930d00d
768
py
Python
scripts/basic_training/save_generated_images.py
vitskvara/shape-guided-anomaly-detection
6685b2e0b97968a6d0f478d2920486da107b277f
[ "MIT" ]
null
null
null
scripts/basic_training/save_generated_images.py
vitskvara/shape-guided-anomaly-detection
6685b2e0b97968a6d0f478d2920486da107b277f
[ "MIT" ]
null
null
null
scripts/basic_training/save_generated_images.py
vitskvara/shape-guided-anomaly-detection
6685b2e0b97968a6d0f478d2920486da107b277f
[ "MIT" ]
null
null
null
# generic libraries import numpy as np import torch import os, sys import argparse from torchvision.utils import save_image parser = argparse.ArgumentParser() parser.add_argument('input', help='name of the input file') args = parser.parse_args() # sgad SGADHOME='/home/skvara/work/counterfactual_ad...
27.428571
83
0.748698
797c9415af320c73308fa350e6f3bd22a9f44af5
9,004
py
Python
Human Vs Minimax (Alpha Beta Pruning)/Check_game.py
LucasColas/AI-Ultimate-Tic-Tac-Toe
1284b457493a4f4b212785b26cfc00898a21f1f6
[ "Apache-2.0" ]
6
2020-07-16T22:03:22.000Z
2021-11-01T21:00:53.000Z
Human Vs Minimax (Alpha Beta Pruning)/Check_game.py
LucasColas/AI-Ultimate-Tic-Tac-Toe
1284b457493a4f4b212785b26cfc00898a21f1f6
[ "Apache-2.0" ]
null
null
null
Human Vs Minimax (Alpha Beta Pruning)/Check_game.py
LucasColas/AI-Ultimate-Tic-Tac-Toe
1284b457493a4f4b212785b26cfc00898a21f1f6
[ "Apache-2.0" ]
null
null
null
def valid_locations(board,main_board,x,y, box): if box == None or [x,y] in box: if board[y][x] == 0 and main_board[y//3][x//3] == 0: print("it's going to return True") return True def set_locations(board,main_board, x,y, player, box): #print("in set_locations") if valid_loc...
30.522034
92
0.493114
797c94e02227dd775a48d5905b9aaff0330874ce
2,712
py
Python
UMD/AST615/HW6_2/N.py
justincely/classwork
2d2b1882f9141bc5776977a5c7c6a4788ea7bc4f
[ "BSD-3-Clause" ]
1
2021-02-16T03:17:26.000Z
2021-02-16T03:17:26.000Z
UMD/AST615/HW6_2/N.py
justincely/classwork
2d2b1882f9141bc5776977a5c7c6a4788ea7bc4f
[ "BSD-3-Clause" ]
null
null
null
UMD/AST615/HW6_2/N.py
justincely/classwork
2d2b1882f9141bc5776977a5c7c6a4788ea7bc4f
[ "BSD-3-Clause" ]
11
2017-06-13T13:11:27.000Z
2021-10-04T17:04:32.000Z
#!/usr/bin/python # Usage: # # jdsbabel.py [inputfile] from __future__ import with_statement import sys import numpy from itertools import combinations class Particle(object): """ A Particle has mass, position, velocity and acceleration. """ def __init__(self, mass, x, y, z, vx, vy, vz): s...
30.47191
87
0.571903
797c9619aecd8ba0aaecc240b7dd171a0524b23b
2,396
py
Python
blebox_uniapi_slozo/session.py
slozo/blebox_uniapi
6c90a31ce7fe4e22e0cf0c95e3ee85de05782bcb
[ "Apache-2.0" ]
2
2020-06-05T23:05:57.000Z
2020-06-07T13:04:50.000Z
blebox_uniapi_slozo/session.py
slozo/blebox_uniapi
6c90a31ce7fe4e22e0cf0c95e3ee85de05782bcb
[ "Apache-2.0" ]
83
2020-03-13T03:08:13.000Z
2021-04-26T02:04:17.000Z
blebox_uniapi_slozo/session.py
slozo/blebox_uniapi
6c90a31ce7fe4e22e0cf0c95e3ee85de05782bcb
[ "Apache-2.0" ]
7
2021-05-11T13:14:48.000Z
2022-02-16T12:17:45.000Z
# -*- coding: utf-8 -*- import aiohttp import asyncio import logging from . import error DEFAULT_TIMEOUT = aiohttp.ClientTimeout(total=None, sock_connect=5, sock_read=5) DEFAULT_PORT = 80 LOGGER = logging.getLogger(__name__) class ApiHost: def __init__(self, host, port, timeout, session, loop, logger=LOGGER):...
26.921348
96
0.605593
797c96262615e54cbddceacbb2399168d6734241
1,924
py
Python
eelbrain/tests/test_design.py
proloyd/Eelbrain
ce4a2f8fc261213bf31e389b562552f87b5564d5
[ "BSD-3-Clause" ]
1
2021-07-26T21:22:35.000Z
2021-07-26T21:22:35.000Z
eelbrain/tests/test_design.py
theo-dutcher/Eelbrain
5606b9dffaa3aec2d58c1f14e6c3403a0fed4537
[ "BSD-3-Clause" ]
1
2019-03-22T15:35:17.000Z
2019-03-22T15:35:17.000Z
eelbrain/tests/test_design.py
theo-dutcher/Eelbrain
5606b9dffaa3aec2d58c1f14e6c3403a0fed4537
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from eelbrain import Dataset, Factor from eelbrain._design import permute, random_factor, complement def test_random_factor(): """Test the design module for creating an experiemnt design""" ds = permute(( ('A', '123456'), ('Bin', '01'), ...
32.066667
85
0.548337
797c97069ee1148694ccbc5176fe787241bfaddc
954
py
Python
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storage/v2018_03_28/common/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storage/v2018_03_28/common/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storage/v2018_03_28/common/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from ._con...
24.461538
76
0.615304
797c977380b2d9ff2c1327ab72e7b071a8edbc8e
357
py
Python
tools/to_wav.py
mohammad-yazdani/nevis
7e2e0ecac48bc28292c5c05362c1b473784e4bd8
[ "MIT" ]
null
null
null
tools/to_wav.py
mohammad-yazdani/nevis
7e2e0ecac48bc28292c5c05362c1b473784e4bd8
[ "MIT" ]
4
2021-04-06T18:27:00.000Z
2022-02-10T03:16:04.000Z
tools/to_wav.py
mohammad-yazdani/nevis
7e2e0ecac48bc28292c5c05362c1b473784e4bd8
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import sys import subprocess import os input_fname = sys.argv[1] output_fname = input_fname.split(".")[0] + ".wav" command = ['ffmpeg', '-nostats', '-loglevel', '0', '-i', input_fname, '-ac', '1', '-f', 'wav', output_fname] subprocess.run(command,stdout=subprocess.PIPE,stdin=subprocess.PIPE) ...
29.75
108
0.703081
797c981e2ab6f97185cb475007c55de14d28af84
1,927
py
Python
base_app/tests.py
Ken-McLoud/NHEAD
98a0d58692ddaa1908342b631d5b9348c555b4e8
[ "MIT" ]
null
null
null
base_app/tests.py
Ken-McLoud/NHEAD
98a0d58692ddaa1908342b631d5b9348c555b4e8
[ "MIT" ]
null
null
null
base_app/tests.py
Ken-McLoud/NHEAD
98a0d58692ddaa1908342b631d5b9348c555b4e8
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AnonymousUser, User from django.urls import reverse, reverse_lazy, resolve from django.test import TestCase, RequestFactory, Client import random from django.contrib.sessions.middleware import SessionMiddleware def url_resonpds(url_pattern="", login_required=False): """ ...
31.590164
80
0.634665
797c9837138d933c89d33638b53c064f3f51862b
732
py
Python
client/verta/verta/_swagger/_public/modeldb/model/ModeldbLogAttribute.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbLogAttribute.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbLogAttribute.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbLogAttribute(BaseType): def __init__(self, id=None, attribute=None): required = { "id": False, "attribute": False, } self.id = id self.attribute = attribute for k, v in required.item...
23.612903
62
0.637978
797c986e5899a76dbb75decb02f4ffc641c9772a
399,214
py
Python
crystals/spg_data.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
crystals/spg_data.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
crystals/spg_data.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2010 Torbjorn Bjorkman # This file is part of cif2cell # # cif2cell is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # cif...
31.696229
102
0.187631
797c999c870f543f2e3e350b1bf3333f7fdd9e92
15,845
py
Python
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/container_service_client.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2022-03-22T15:02:32.000Z
2022-03-22T15:02:32.000Z
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/container_service_client.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2018-11-19T05:12:58.000Z
2018-11-19T05:12:58.000Z
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/container_service_client.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-06-03T19:31:10.000Z
2021-06-03T19:31:10.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 ...
55.596491
171
0.701672
797c9aa9cb7de52e0ace5a7f7c45a67a5a5a1ba0
30,118
py
Python
src/sage/functions/airy.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/functions/airy.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/functions/airy.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
r""" Airy Functions This module implements Airy functions and their generalized derivatives. It supports symbolic functionality through Maxima and numeric evaluation through mpmath and scipy. Airy functions are solutions to the differential equation `f''(x) - x f(x) = 0`. Four global function symbols are immediately...
33.390244
106
0.549107
797c9adb2feaf0132dc1bb93acd180c5a7f22f1e
1,553
py
Python
private_test_scripts/avgb.py
arav-agarwal2/MultiBench
60a726ad205710fa9778ac9372762972f495149b
[ "MIT" ]
null
null
null
private_test_scripts/avgb.py
arav-agarwal2/MultiBench
60a726ad205710fa9778ac9372762972f495149b
[ "MIT" ]
null
null
null
private_test_scripts/avgb.py
arav-agarwal2/MultiBench
60a726ad205710fa9778ac9372762972f495149b
[ "MIT" ]
1
2022-03-12T07:13:58.000Z
2022-03-12T07:13:58.000Z
from unimodals.common_models import LeNet, MLP, Constant from private_test_scripts.all_in_one import all_in_one_train, all_in_one_test import torch from torch import nn from datasets.avmnist.get_data import get_dataloader from fusions.common_fusions import Concat from training_structures.gradient_blend import train, te...
36.97619
198
0.732775