hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
e0b0e0083223143424e08a5e2722940882568d5e
2,174
py
Python
src/add_2_zip_imports.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/add_2_zip_imports.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/add_2_zip_imports.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
36.233333
117
0.731831
0
0
0
0
0
0
0
0
693
0.318767
e0b1290a0ccf26bc0c338627492bdd788761baa7
8,396
py
Python
lib/galaxy/model/migrate/versions/0026_cloud_tables.py
Galaxyinternship/Galaxy
204be086a8c16d6684584cefa9053ed7c86a1784
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/versions/0026_cloud_tables.py
Galaxyinternship/Galaxy
204be086a8c16d6684584cefa9053ed7c86a1784
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/versions/0026_cloud_tables.py
Galaxyinternship/Galaxy
204be086a8c16d6684584cefa9053ed7c86a1784
[ "CC-BY-3.0" ]
null
null
null
""" This script adds tables needed for Galaxy cloud functionality. """ from __future__ import print_function import datetime import logging from sqlalchemy import Boolean, Column, DateTime, ForeignKey, Integer, MetaData, Table, TEXT now = datetime.datetime.utcnow log = logging.getLogger( __name__ ) metadata = MetaDa...
54.167742
132
0.488328
0
0
0
0
0
0
0
0
1,530
0.18223
e0b1b9a256ca71156990f5651aa970e6f745d293
1,524
py
Python
apps/user/urls.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
apps/user/urls.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
apps/user/urls.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2021 ronyman.com """ from django.contrib import admin from django.contrib.auth import views as auth_views from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from apps.user import views as user_views from.views im...
47.625
146
0.75
0
0
0
0
0
0
0
0
565
0.370735
e0b36f9e11e7c9c01752718dbe837832a4596d2c
533
py
Python
sra_django_api/user/migrations/0003_auto_20180914_1242.py
tflati/ncbi-search
2f31c57ffb95c2c874b65c03c58edd96eb822dfb
[ "MIT" ]
null
null
null
sra_django_api/user/migrations/0003_auto_20180914_1242.py
tflati/ncbi-search
2f31c57ffb95c2c874b65c03c58edd96eb822dfb
[ "MIT" ]
null
null
null
sra_django_api/user/migrations/0003_auto_20180914_1242.py
tflati/ncbi-search
2f31c57ffb95c2c874b65c03c58edd96eb822dfb
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-09-14 12:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0002_project'), ] operations = [ migrations.RenameField( model_name='project', old_name='file_path', ...
22.208333
58
0.572233
440
0.825516
0
0
0
0
0
0
122
0.228893
e0b5c736d3e79ca55e6b015bca8f2bcfa9bec4d1
30,844
py
Python
image_misc.py
frankgh/deep-visualization-toolbox
c9bb26eacae0b4d1a25d3844538c2830026add76
[ "MIT" ]
null
null
null
image_misc.py
frankgh/deep-visualization-toolbox
c9bb26eacae0b4d1a25d3844538c2830026add76
[ "MIT" ]
null
null
null
image_misc.py
frankgh/deep-visualization-toolbox
c9bb26eacae0b4d1a25d3844538c2830026add76
[ "MIT" ]
null
null
null
#! /usr/bin/env python import cv2 import matplotlib.pyplot as plt import skimage import skimage.io from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.pyplot import cm from mpl_toolkits.axes_grid1 import make_axes_locatable from numpy import ...
34.617284
208
0.57191
534
0.017313
0
0
0
0
0
0
8,454
0.274089
e0b6b0833654d657edf6b38b5e343a5dbb47c6d9
825
py
Python
text.py
Kedyn/PingPong
47e39a9d30e1a3a7b828c5b5e85b0666d67b0d7b
[ "MIT" ]
null
null
null
text.py
Kedyn/PingPong
47e39a9d30e1a3a7b828c5b5e85b0666d67b0d7b
[ "MIT" ]
null
null
null
text.py
Kedyn/PingPong
47e39a9d30e1a3a7b828c5b5e85b0666d67b0d7b
[ "MIT" ]
null
null
null
import pygame.font import copy class Text: """Draws a text to the screen.""" def __init__(self, rect, size, color, screen, text): self.screen = screen self.rect = copy.deepcopy(rect) self.text = text self.color = color self.font = pygame.font.SysFont(None, size) ...
27.5
76
0.604848
791
0.958788
0
0
0
0
0
0
101
0.122424
e0b78d074db83725adcb792c0532db942f29eb42
5,702
py
Python
py/test/selenium/webdriver/common/window_tests.py
ey-advisory-technology-testing/selenium
7e342d3b8eb913a9626475a158c4bc6ae5d68315
[ "Apache-2.0" ]
1
2020-10-06T16:55:46.000Z
2020-10-06T16:55:46.000Z
py/test/selenium/webdriver/common/window_tests.py
ey-advisory-technology-testing/selenium
7e342d3b8eb913a9626475a158c4bc6ae5d68315
[ "Apache-2.0" ]
2
2020-10-12T13:27:19.000Z
2020-10-12T15:32:45.000Z
py/test/selenium/webdriver/common/window_tests.py
ey-advisory-technology-testing/selenium
7e342d3b8eb913a9626475a158c4bc6ae5d68315
[ "Apache-2.0" ]
1
2019-03-18T14:38:08.000Z
2019-03-18T14:38:08.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.268456
122
0.708699
0
0
0
0
1,195
0.209576
0
0
3,249
0.5698
e0b811e924c93fc02a9d9d5f223ad493413f5e6c
21,307
py
Python
psydac/cad/geometry.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
5
2018-03-13T13:50:26.000Z
2018-12-22T14:04:11.000Z
psydac/cad/geometry.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
3
2019-02-08T13:29:47.000Z
2019-03-06T17:23:08.000Z
psydac/cad/geometry.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
1
2018-12-15T09:55:12.000Z
2018-12-15T09:55:12.000Z
# coding: utf-8 # # a Geometry class contains the list of patches and additional information about # the topology i.e. connectivity, boundaries # For the moment, it is used as a container, that can be loaded from a file # (hdf5) from itertools import product from collections import abc import numpy as np import string ...
31.659733
112
0.546487
9,681
0.454358
0
0
1,470
0.068991
0
0
6,097
0.28615
e0b8df2c0cc835ac66fd2676a3d3a8a967b603f8
6,098
py
Python
utils.py
ok1zjf/AMNet
51b163eec63d6d1e2e3dbc140d19afdc7b4273ee
[ "MIT" ]
40
2018-06-20T20:33:38.000Z
2022-03-21T02:00:34.000Z
utils.py
RMSnow/AMNet-Rumor
95321bb30a303994cfae769801207bbde91d77fb
[ "MIT" ]
5
2018-07-26T17:23:07.000Z
2020-05-05T15:30:18.000Z
utils.py
RMSnow/AMNet-Rumor
95321bb30a303994cfae769801207bbde91d77fb
[ "MIT" ]
10
2018-04-10T09:42:55.000Z
2021-04-19T19:01:27.000Z
__author__ = 'Jiri Fajtl' __email__ = 'ok1zjf@gmail.com' __version__= '2.2' __status__ = "Research" __date__ = "28/1/2018" __license__= "MIT License" import os import numpy as np import glob import subprocess import platform import sys import pkg_resources import torch import PIL as Image try: import cv2 except:...
30.49
120
0.611512
0
0
0
0
0
0
0
0
1,086
0.178091
e0b92dd95f8f3eb4f67617f41703129b86326aae
1,823
py
Python
python/aghast/aghast_generated/Slice.py
HDembinski/aghast
f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95
[ "BSD-3-Clause" ]
18
2019-04-15T14:39:35.000Z
2021-12-21T15:01:02.000Z
python/aghast/aghast_generated/Slice.py
HDembinski/aghast
f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95
[ "BSD-3-Clause" ]
27
2019-04-12T20:24:00.000Z
2021-12-03T08:51:56.000Z
python/aghast/aghast_generated/Slice.py
diana-hep/stagg
ed97e9abc870e729d300622253aa7e9c870f77ec
[ "BSD-3-Clause" ]
11
2019-04-15T14:41:00.000Z
2021-11-16T13:28:10.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: aghast_generated import flatbuffers class Slice(object): __slots__ = ["_tab"] # Slice def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) # Slice def Start(self): return self._...
26.808824
79
0.641251
1,360
0.746023
0
0
0
0
0
0
152
0.083379
e0b9af8b61e8657e680602511286b7396f0d35fe
1,075
py
Python
axelrod/tests/strategies/test_mystrategy.py
AleksaLuka/Axelrod
5f2fefcb2bf8f371ef489382f90f116b46ac1023
[ "MIT" ]
null
null
null
axelrod/tests/strategies/test_mystrategy.py
AleksaLuka/Axelrod
5f2fefcb2bf8f371ef489382f90f116b46ac1023
[ "MIT" ]
null
null
null
axelrod/tests/strategies/test_mystrategy.py
AleksaLuka/Axelrod
5f2fefcb2bf8f371ef489382f90f116b46ac1023
[ "MIT" ]
null
null
null
import axelrod as axl from .test_player import TestPlayer C, D = axl.Action.C, axl.Action.D class TestMyStrategy(TestPlayer): name = "MyStrategy" player = axl.mystrategy expected_classifier = { "memory_depth": 1, "stochastic": False, "long_run_time": False, "inspects_sour...
28.289474
71
0.563721
979
0.910698
0
0
0
0
0
0
132
0.122791
e0ba84d4c91d76772295ffa29072d6de02d1a1ae
4,516
py
Python
analyzer/BannerTool.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
analyzer/BannerTool.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
analyzer/BannerTool.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
#FILE NAME: BannerTool.py #created by: Ciro Veneruso #purpose: banner localization #last edited by: Ciro Veneruso #INSTALL: BeautifulSoup #TODO: this code is a blob, must be refactorized!!!! import re import mechanize import socket import urllib from tools import BaseTool from bs4 import BeautifulSoup from pprint i...
31.802817
125
0.601639
3,995
0.884632
0
0
0
0
0
0
1,683
0.372675
e0bae7400e763d4fa86d93ab435117f871afbd18
49
py
Python
rhea/build/toolflow/xilinx/__init__.py
meetps/rhea
f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0
[ "MIT" ]
1
2022-03-16T23:56:09.000Z
2022-03-16T23:56:09.000Z
rhea/build/toolflow/xilinx/__init__.py
meetps/rhea
f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0
[ "MIT" ]
null
null
null
rhea/build/toolflow/xilinx/__init__.py
meetps/rhea
f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0
[ "MIT" ]
null
null
null
from .ise import ISE from .vivado import Vivado
12.25
26
0.77551
0
0
0
0
0
0
0
0
0
0
e0bb4548a5ce53a84a9faca646cafe6530aa2def
12,725
py
Python
app/AccountManagment.py
fredpan/Prosopagnosia_Web_Server
b56b58eccdbbde6b158802d49f7bcc1b44b18b69
[ "Apache-2.0" ]
null
null
null
app/AccountManagment.py
fredpan/Prosopagnosia_Web_Server
b56b58eccdbbde6b158802d49f7bcc1b44b18b69
[ "Apache-2.0" ]
null
null
null
app/AccountManagment.py
fredpan/Prosopagnosia_Web_Server
b56b58eccdbbde6b158802d49f7bcc1b44b18b69
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 EraO Prosopagnosia Helper Dev Team, Liren Pan, Yixiao Hong, Hongzheng Xu, Stephen Huang, Tiancong Wang # # Supervised by Prof. Steve Mann (http://www.eecg.toronto.edu/~mann/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with th...
41.9967
124
0.659018
0
0
0
0
10,300
0.80601
0
0
7,491
0.586196
e0bd2b8b9279c8dd18c9c1094fe6466b3d0d10be
1,403
py
Python
scripts/slice.py
priyablue/lidar_navigation
39cd44a44043fa001c9d797ddea6c19e3376276c
[ "Apache-2.0" ]
2
2017-12-19T16:16:50.000Z
2018-03-15T12:41:03.000Z
scripts/slice.py
athenian-programming/lidar_navigation
39cd44a44043fa001c9d797ddea6c19e3376276c
[ "Apache-2.0" ]
null
null
null
scripts/slice.py
athenian-programming/lidar_navigation
39cd44a44043fa001c9d797ddea6c19e3376276c
[ "Apache-2.0" ]
1
2021-05-08T11:27:10.000Z
2021-05-08T11:27:10.000Z
import math from point2d import Point2D def to_point(rads, dist): x = math.cos(rads) * dist y = math.sin(rads) * dist return Point2D(x, y) class Slice(object): def __init__(self, begin, end): self.__begin = begin self.__end = end self.__begin_rad = math.radians(self.__begin...
28.06
101
0.655025
1,246
0.888097
0
0
68
0.048468
0
0
144
0.102637
e0be43ac7d66987096cd0a5bf59621233ca9d1a8
37,056
py
Python
src/audio_korpora_pipeline/inputadapter/adapters.py
WernerDreier/audio-korpora-pipeline
ac171cdfb0663c7b6250c06cc9c70a951b908251
[ "MIT" ]
1
2020-09-11T05:27:58.000Z
2020-09-11T05:27:58.000Z
src/audio_korpora_pipeline/inputadapter/adapters.py
WernerDreier/audio-korpora-pipeline
ac171cdfb0663c7b6250c06cc9c70a951b908251
[ "MIT" ]
null
null
null
src/audio_korpora_pipeline/inputadapter/adapters.py
WernerDreier/audio-korpora-pipeline
ac171cdfb0663c7b6250c06cc9c70a951b908251
[ "MIT" ]
null
null
null
import concurrent import os import re import shutil import xml.etree.ElementTree as ET # TODO do we have this as requirement? from concurrent.futures import as_completed from concurrent.futures._base import as_completed from pathlib import Path import ffmpeg import pandas as pd import webrtcvad from audio_korpora_pi...
48.312907
152
0.725658
36,401
0.981635
0
0
0
0
0
0
5,770
0.155601
e0beee4ee459f085172a97b3c88ddde9059df51b
14,085
py
Python
development/multiImage_pytorch/experiment.py
anaikawadi/svbrdf-estimation
c977aa8448b2131af3960895afd1105d29e5484a
[ "MIT" ]
null
null
null
development/multiImage_pytorch/experiment.py
anaikawadi/svbrdf-estimation
c977aa8448b2131af3960895afd1105d29e5484a
[ "MIT" ]
null
null
null
development/multiImage_pytorch/experiment.py
anaikawadi/svbrdf-estimation
c977aa8448b2131af3960895afd1105d29e5484a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import math import shutil import torch from accelerate import Accelerator from tensorboardX import SummaryWriter from cli import parse_args from dataset import SvbrdfDataset from losses import MixedLoss, MixedLoss2, MixedLoss3 from models import MultiViewModel, SingleViewModel from pathl...
34.437653
244
0.637061
149
0.010579
0
0
0
0
0
0
4,272
0.303301
e0bfc9b4798ab097e11ab7694665e7ba80ac9336
220
py
Python
src/rekognition_online_action_detection/engines/__init__.py
amazon-research/long-short-term-transformer
a425be4b52ab68fddd85c91d26571e4cdfe8379a
[ "Apache-2.0" ]
52
2021-11-19T01:35:10.000Z
2022-03-24T11:48:10.000Z
src/rekognition_online_action_detection/engines/__init__.py
amazon-research/long-short-term-transformer
a425be4b52ab68fddd85c91d26571e4cdfe8379a
[ "Apache-2.0" ]
9
2021-11-24T18:50:13.000Z
2022-03-10T05:13:53.000Z
src/rekognition_online_action_detection/engines/__init__.py
amazon-research/long-short-term-transformer
a425be4b52ab68fddd85c91d26571e4cdfe8379a
[ "Apache-2.0" ]
8
2022-01-15T08:01:33.000Z
2022-03-20T22:08:29.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 from .engines import do_train, do_inference from .lstr.lstr_trainer import * from .lstr.lstr_inference import *
31.428571
68
0.786364
0
0
0
0
0
0
0
0
105
0.477273
e0c1de96552a87c4acd6be415b90d60425c9c9cb
64,469
py
Python
nuage_tempest_plugin/tests/api/test_nuage_ports.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
1
2021-01-03T01:47:51.000Z
2021-01-03T01:47:51.000Z
nuage_tempest_plugin/tests/api/test_nuage_ports.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
null
null
null
nuage_tempest_plugin/tests/api/test_nuage_ports.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
1
2020-10-16T12:04:39.000Z
2020-10-16T12:04:39.000Z
# Copyright 2017 NOKIA # All Rights Reserved. from netaddr import IPNetwork import testtools from tempest.common import waiters from tempest.lib import exceptions from tempest.scenario import manager from tempest.test import decorators from nuage_tempest_plugin.lib.test.nuage_test import NuageAdminNetworksTest from ...
41.220588
79
0.560114
63,841
0.990259
0
0
62,774
0.973708
0
0
11,851
0.183825
e0c1ea88aed755291844e1e991a6d2f5cdb34cdd
8,924
py
Python
advent_of_code/2019/11_space_police/aoc_2019_11.py
thanosa/coding-challenges
a10b0de51da076a4bcc798b4a3d5a08e29c5af01
[ "MIT" ]
null
null
null
advent_of_code/2019/11_space_police/aoc_2019_11.py
thanosa/coding-challenges
a10b0de51da076a4bcc798b4a3d5a08e29c5af01
[ "MIT" ]
null
null
null
advent_of_code/2019/11_space_police/aoc_2019_11.py
thanosa/coding-challenges
a10b0de51da076a4bcc798b4a3d5a08e29c5af01
[ "MIT" ]
null
null
null
''' Advent of code 2019 Day 11 - Space police ''' from typing import NamedTuple from enum import Enum INPUT_FILE=__file__.replace('.py', '.dat') def to_number(digits: list) -> int: return int(''.join(map(str, digits))) def to_list(number: int) -> list: return [int(i) for i in str(number)] ...
29.647841
91
0.438256
125
0.014007
5,227
0.585724
0
0
0
0
615
0.068915
e0c4cc4a632d487744596824e2338a9f0399ee17
814
py
Python
nicos_mlz/mira/setups/mezeiflip.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/mira/setups/mezeiflip.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/mira/setups/mezeiflip.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Mezei spin flipper using TTI power supply' group = 'optional' tango_base = 'tango://miractrl.mira.frm2:10000/mira/' devices = dict( dct1 = device('nicos.devices.entangle.PowerSupply', description = 'current in first channel of supply (flipper current)', tangodevice = tango_base + 't...
32.56
83
0.63145
0
0
0
0
0
0
0
0
401
0.492629
e0c51c1373dbb36d56025f69dde451b4d208bab8
16,817
py
Python
mars/learn/cluster/_k_means_init.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/learn/cluster/_k_means_init.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/learn/cluster/_k_means_init.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
# Copyright 1999-2021 Alibaba Group Holding 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 a...
37.288248
94
0.634477
10,843
0.644764
4,042
0.240352
8,050
0.478682
0
0
3,588
0.213356
e0c54a43da9d2d5736bbbaf25b05dc7746829f11
2,157
py
Python
wikipedia_parser/infobox/wikitext_parser.py
ojones/wikipedia_parser
db548290fbc392299bba8adfda9fe18baa1e66fe
[ "MIT" ]
9
2016-02-24T20:09:26.000Z
2019-03-10T11:33:34.000Z
wikipedia_parser/infobox/wikitext_parser.py
ojones/wikipedia_parser
db548290fbc392299bba8adfda9fe18baa1e66fe
[ "MIT" ]
1
2019-02-13T17:38:50.000Z
2019-02-13T17:38:50.000Z
wikipedia_parser/infobox/wikitext_parser.py
ojones/wikipedia_parser
db548290fbc392299bba8adfda9fe18baa1e66fe
[ "MIT" ]
1
2016-04-05T05:28:51.000Z
2016-04-05T05:28:51.000Z
import re from wikipedia_parser.infobox import clean_text as clean_help from wikipedia_parser.infobox import wikitext_helpers as wtext_help from wikipedia_parser.third_party_adapters import parserfromhell_adapter as adapter __author__ = 'oswaldjones' def get_simple_text(wtext, key, clean=True): text = None ...
30.380282
90
0.592953
0
0
0
0
0
0
0
0
191
0.088549
e0c5b44a98d273699a00386bb7674bf23a762723
227
py
Python
sandbox/lib/jumpscale/JumpscaleLibs/clients/graphql/GraphQLFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/JumpscaleLibs/clients/graphql/GraphQLFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
117
2019-09-01T11:59:19.000Z
2020-07-14T11:10:08.000Z
sandbox/lib/jumpscale/JumpscaleLibs/clients/graphql/GraphQLFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2020-04-06T15:21:23.000Z
2020-05-07T04:29:53.000Z
from .GraphQLClient import GraphQLClient from Jumpscale import j JSConfigs = j.baseclasses.object_config_collection class GraphQLFactory(JSConfigs): __jslocation__ = "j.clients.graphql" _CHILDCLASS = GraphQLClient
18.916667
50
0.801762
106
0.46696
0
0
0
0
0
0
19
0.0837
e0c98eb51566d8d4d1edda624372a00af1731e11
1,339
py
Python
src/video_transcoding/defaults.py
tumb1er/django-video-transcoding
54c85fb4a3b58b3f3b82e461b2f54f3c8dd5fcc6
[ "MIT" ]
21
2020-02-07T17:40:16.000Z
2021-09-02T18:56:21.000Z
src/video_transcoding/defaults.py
just-work/django-video-transcoding
c88d88de8301cd65eda95db941d72028aac57aa9
[ "MIT" ]
184
2020-02-09T10:46:17.000Z
2022-03-28T00:53:04.000Z
src/video_transcoding/defaults.py
just-work/django-video-transcoding
c88d88de8301cd65eda95db941d72028aac57aa9
[ "MIT" ]
6
2020-02-07T13:58:33.000Z
2021-07-27T16:24:56.000Z
from os import getenv as e from kombu import Queue CELERY_APP_NAME = 'video_transcoding' VIDEO_TRANSCODING_CELERY_CONF = { 'broker_url': e('VIDEO_TRANSCODING_CELERY_BROKER_URL', 'amqp://guest:guest@rabbitmq:5672/'), 'result_backend': e('VIDEO_TRANSCODING_CELERY_RESULT_BACKEND', None), ...
31.139535
75
0.726662
0
0
0
0
0
0
0
0
808
0.603435
e0c9c572e013959cc1791ab9408e2433e6b096c4
5,104
py
Python
wordSenseByContext.py
jmboettcher/fall2019_sentiment_in_alternative_words
d88fd0ed7d1396bb3755431d6aff85b880ffe149
[ "Apache-2.0" ]
null
null
null
wordSenseByContext.py
jmboettcher/fall2019_sentiment_in_alternative_words
d88fd0ed7d1396bb3755431d6aff85b880ffe149
[ "Apache-2.0" ]
null
null
null
wordSenseByContext.py
jmboettcher/fall2019_sentiment_in_alternative_words
d88fd0ed7d1396bb3755431d6aff85b880ffe149
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from nltk.tokenize import sent_tokenize from nltk.corpus import wordnet as wn from nltk.corpus import semcor as sc from nltk.corpus import stopwords import mywordtokenizer class SenseContextWordDict: def __init__(self): self.dictionary = self._create_dictionary() d...
36.985507
125
0.587187
4,522
0.885972
0
0
0
0
0
0
893
0.174961
e0c9fc5ceee51e40ba7758705226014b71dd06d7
3,138
py
Python
paymentmethods/stripejs/tests.py
tjwalch/django-restshop
569b57a5694e76a365556d7c4c9a97dd293d96c6
[ "MIT" ]
null
null
null
paymentmethods/stripejs/tests.py
tjwalch/django-restshop
569b57a5694e76a365556d7c4c9a97dd293d96c6
[ "MIT" ]
null
null
null
paymentmethods/stripejs/tests.py
tjwalch/django-restshop
569b57a5694e76a365556d7c4c9a97dd293d96c6
[ "MIT" ]
null
null
null
import decimal from unittest import mock from django.conf import settings from django.test import modify_settings from rest_framework import test from rest_framework.reverse import reverse import stripe from restshop import serializers from restshop.models import Order from paymentmethods.stripejs.models import Strip...
31.069307
78
0.593372
2,634
0.839388
0
0
2,720
0.866794
0
0
271
0.086361
e0cbddbdfa807e2e3192b9b0f5e91d704ca43fe7
1,684
py
Python
tnnt/uniqdeaths.py
tnnt-devteam/python-backend
1ecb0ddaccf176726739b64212831d038a7463a0
[ "MIT" ]
null
null
null
tnnt/uniqdeaths.py
tnnt-devteam/python-backend
1ecb0ddaccf176726739b64212831d038a7463a0
[ "MIT" ]
10
2021-07-19T13:04:20.000Z
2021-12-02T18:36:29.000Z
tnnt/uniqdeaths.py
tnnt-devteam/python-backend
1ecb0ddaccf176726739b64212831d038a7463a0
[ "MIT" ]
1
2021-10-17T10:36:51.000Z
2021-10-17T10:36:51.000Z
from tnnt.settings import UNIQUE_DEATH_REJECTIONS, UNIQUE_DEATH_NORMALIZATIONS import re def normalize(death): # Given a death string, apply normalizations from settings. for regtuple in UNIQUE_DEATH_NORMALIZATIONS: death = re.sub(regtuple[0], regtuple[1], death) return death def reject(death): ...
42.1
80
0.726841
0
0
0
0
0
0
0
0
1,048
0.622328
e0cbe510c57f6be47472391d90b71a872f267467
9,887
py
Python
qutip/graph.py
anubhavvardhan/qutip
daf384840efbb44b86e39d8bda64d907d9f6b47f
[ "BSD-3-Clause" ]
null
null
null
qutip/graph.py
anubhavvardhan/qutip
daf384840efbb44b86e39d8bda64d907d9f6b47f
[ "BSD-3-Clause" ]
null
null
null
qutip/graph.py
anubhavvardhan/qutip
daf384840efbb44b86e39d8bda64d907d9f6b47f
[ "BSD-3-Clause" ]
null
null
null
# This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: ...
33.402027
79
0.670982
0
0
0
0
0
0
0
0
7,619
0.770608
e0ccb86ce9db729b21b4c70f3e21fc86885bf209
83
py
Python
test/source_dir/comments_blank_lines_code.py
Pierre-Thibault/neo-insert-imports
c20399d5666b2c3590be7f40c8be1130343bbadc
[ "MIT" ]
1
2015-05-07T02:44:52.000Z
2015-05-07T02:44:52.000Z
test/source_dir/comments_blank_lines_code.py
Pierre-Thibault/neo-insert-imports
c20399d5666b2c3590be7f40c8be1130343bbadc
[ "MIT" ]
null
null
null
test/source_dir/comments_blank_lines_code.py
Pierre-Thibault/neo-insert-imports
c20399d5666b2c3590be7f40c8be1130343bbadc
[ "MIT" ]
null
null
null
# comments------------------ def a(x): print x if True: a(10)
10.375
28
0.337349
0
0
0
0
0
0
0
0
28
0.337349
e0cd77f1011874355803f2699f0949c70a877b16
286
py
Python
locan/data/hulls/__init__.py
super-resolution/Locan
94ed7759f7d7ceddee7c7feaabff80010cfedf30
[ "BSD-3-Clause" ]
8
2021-11-25T20:05:49.000Z
2022-03-27T17:45:00.000Z
locan/data/hulls/__init__.py
super-resolution/Locan
94ed7759f7d7ceddee7c7feaabff80010cfedf30
[ "BSD-3-Clause" ]
4
2021-12-15T22:39:20.000Z
2022-03-11T17:35:34.000Z
locan/data/hulls/__init__.py
super-resolution/Locan
94ed7759f7d7ceddee7c7feaabff80010cfedf30
[ "BSD-3-Clause" ]
1
2022-03-22T19:53:13.000Z
2022-03-22T19:53:13.000Z
""" Hull objects of localization data. Submodules: ----------- .. autosummary:: :toctree: ./ hull alpha_shape """ from locan.data.hulls.alpha_shape import * from locan.data.hulls.hull import * __all__ = [] __all__.extend(hull.__all__) __all__.extend(alpha_shape.__all__)
13.619048
42
0.688811
0
0
0
0
0
0
0
0
126
0.440559
e0cde222a5f5dbe6545c933dad99fd36f05f5531
9,183
py
Python
tests/test_workflow_build_combinations.py
tschoonj/cgat-daisy
f85a2c82ca04f352aad00660cfc14a9aa6773168
[ "MIT" ]
1
2020-06-29T14:39:42.000Z
2020-06-29T14:39:42.000Z
tests/test_workflow_build_combinations.py
tschoonj/cgat-daisy
f85a2c82ca04f352aad00660cfc14a9aa6773168
[ "MIT" ]
1
2019-05-15T20:50:37.000Z
2019-05-15T20:50:37.000Z
tests/test_workflow_build_combinations.py
tschoonj/cgat-daisy
f85a2c82ca04f352aad00660cfc14a9aa6773168
[ "MIT" ]
1
2021-11-11T13:22:56.000Z
2021-11-11T13:22:56.000Z
import pytest from daisy.workflow import build_combinations def test_one_option(): assert build_combinations( {"option1": ["value1", "value2"]}) == \ [{'option1': 'value1'}, {'option1': 'value2'}] def test_two_options(): assert build_combinations( {'option1': ["value1", "val...
38.746835
92
0.516607
0
0
0
0
0
0
0
0
3,977
0.433083
e0d0af5cc2acc44430f9c71988996b1fd3a8a91a
8,473
py
Python
src/train_vae.py
katnoria/world-models
6584f35fa9508c991050ddc9c17f5862a00008fe
[ "Apache-2.0" ]
null
null
null
src/train_vae.py
katnoria/world-models
6584f35fa9508c991050ddc9c17f5862a00008fe
[ "Apache-2.0" ]
null
null
null
src/train_vae.py
katnoria/world-models
6584f35fa9508c991050ddc9c17f5862a00008fe
[ "Apache-2.0" ]
null
null
null
# class Encoder: # pass # class Decoder: # pass # class VariationAutoEncoder: # pass import os os.environ['CUDA_VISIBLE_DEVICES'] = "0" import pickle import logging from glob import glob import numpy as np from time import time from datetime import datetime from PIL import Image import matplotlib.pyplot ...
36.521552
130
0.690901
538
0.063496
0
0
1,119
0.132067
0
0
2,003
0.236398
e0d2d2e5b75b0d0e7b995b20657ba25ef18190ee
1,351
py
Python
login.py
harryzcy/canvas-file-syncer
16b98ee164df8570605b1a274c02f0dc7403730e
[ "MIT" ]
null
null
null
login.py
harryzcy/canvas-file-syncer
16b98ee164df8570605b1a274c02f0dc7403730e
[ "MIT" ]
null
null
null
login.py
harryzcy/canvas-file-syncer
16b98ee164df8570605b1a274c02f0dc7403730e
[ "MIT" ]
null
null
null
import time from config import get_password, get_username from playwright.sync_api import Page def login(page: Page, url: str, landing_url: str): raise RuntimeError("default login not supported") def login_kenan_flagler(page: Page, url: str, landing_url: str) -> None: page.goto(url) page.wait_for_load_...
29.369565
78
0.635085
0
0
0
0
0
0
0
0
308
0.227979
e0d3c8c44e9a78dfdefd3d78c0e47b2746c32032
5,233
py
Python
multitidal/client_lib.py
xa4a/multitidal
26f757f12464e8f935c0389c6356b97cfaa9f03f
[ "MIT" ]
2
2021-12-01T05:39:05.000Z
2021-12-07T07:26:16.000Z
multitidal/client_lib.py
xa4a/multitidal
26f757f12464e8f935c0389c6356b97cfaa9f03f
[ "MIT" ]
1
2021-12-02T03:54:16.000Z
2021-12-02T03:54:16.000Z
multitidal/client_lib.py
parabolala/multitidal
26f757f12464e8f935c0389c6356b97cfaa9f03f
[ "MIT" ]
null
null
null
import asyncio import json import os import pty import shutil import sys import tty import termios import time import threading import tornado.iostream from tornado.ioloop import IOLoop from tornado.websocket import websocket_connect ioloop = tornado.ioloop.IOLoop.instance() SSH_LOGIN = "root" SSH_PASSWORD = "algor...
28.911602
73
0.549016
2,286
0.436843
0
0
106
0.020256
4,462
0.852666
978
0.186891
e0d3e0406d466ee1eb3c15b25d95347feecab756
1,265
py
Python
custom_components/ge_home/entities/common/ge_water_heater.py
olds/ha_gehome
5cb24deab64bcade45861da0497a84631845922c
[ "MIT" ]
41
2021-08-02T02:15:54.000Z
2022-03-30T11:11:42.000Z
custom_components/ge_home/entities/common/ge_water_heater.py
olds/ha_gehome
5cb24deab64bcade45861da0497a84631845922c
[ "MIT" ]
46
2021-08-03T02:20:59.000Z
2022-03-30T11:17:15.000Z
custom_components/ge_home/entities/common/ge_water_heater.py
olds/ha_gehome
5cb24deab64bcade45861da0497a84631845922c
[ "MIT" ]
15
2021-08-31T00:21:33.000Z
2022-03-30T12:53:21.000Z
import abc import logging from typing import Any, Dict, List, Optional from homeassistant.components.water_heater import WaterHeaterEntity from homeassistant.const import ( TEMP_FAHRENHEIT, TEMP_CELSIUS ) from gehomesdk import ErdCode, ErdMeasurementUnits from ...const import DOMAIN from .ge_erd_entity import ...
28.111111
83
0.728854
895
0.70751
0
0
709
0.560474
0
0
174
0.137549
e0d425874c7577ffb290b5d9bb87cc599dbdcb1a
2,790
py
Python
scrapy/contracts/default.py
zyuchuan/scrapy
ce24f53957b41877319a5ffc6cf26f0a18baaec2
[ "BSD-3-Clause" ]
null
null
null
scrapy/contracts/default.py
zyuchuan/scrapy
ce24f53957b41877319a5ffc6cf26f0a18baaec2
[ "BSD-3-Clause" ]
null
null
null
scrapy/contracts/default.py
zyuchuan/scrapy
ce24f53957b41877319a5ffc6cf26f0a18baaec2
[ "BSD-3-Clause" ]
null
null
null
import json from scrapy.item import BaseItem from scrapy.http import Request from scrapy.exceptions import ContractFail from scrapy.contracts import Contract # contracts class UrlContract(Contract): """ Contract to set the url of the request (mandatory) @url http://scrapy.org """ name = 'url' ...
26.074766
70
0.576344
2,606
0.93405
0
0
0
0
0
0
781
0.279928
e0d53d1eacb61e87932581de548a87b7c4071732
3,258
py
Python
networks/metrics.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
networks/metrics.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
networks/metrics.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
from keras import backend as K import tensorflow as tf import numpy as np def custom_dice_coefficient(y_true, y_pred, recall_weight=0.3): recall_weight = tf.Variable(recall_weight, dtype=tf.float32) regular_dice = dice_coefficient(y_true, y_pred) recall = lession_recall(y_true, y_pred) recall = tf.cas...
30.448598
126
0.736648
0
0
0
0
0
0
0
0
0
0
e0d6966f0f4824c8705c24412698017423279002
2,193
py
Python
scrapy_template/scrapy_template/pipelines.py
kk0501/spider
404540a76922885f9dd12f9a513f5ec88b0d2072
[ "MIT" ]
null
null
null
scrapy_template/scrapy_template/pipelines.py
kk0501/spider
404540a76922885f9dd12f9a513f5ec88b0d2072
[ "MIT" ]
null
null
null
scrapy_template/scrapy_template/pipelines.py
kk0501/spider
404540a76922885f9dd12f9a513f5ec88b0d2072
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.exceptions import DropItem from hashlib import md5 from scrapy import log from twisted.enterprise import adbapi fro...
34.265625
85
0.579115
1,821
0.830369
0
0
396
0.180575
0
0
606
0.276334
e0d7c84ced6a300c631d0fec1f9dd425ca8e581c
2,726
py
Python
run_training_size_bootstrap.py
willferreira/multilabel-stance-detection
ddc0ed9caa26b63f40e89a377f1738e83fcb7724
[ "MIT" ]
null
null
null
run_training_size_bootstrap.py
willferreira/multilabel-stance-detection
ddc0ed9caa26b63f40e89a377f1738e83fcb7724
[ "MIT" ]
null
null
null
run_training_size_bootstrap.py
willferreira/multilabel-stance-detection
ddc0ed9caa26b63f40e89a377f1738e83fcb7724
[ "MIT" ]
null
null
null
import click import pickle import numpy as np from collections import defaultdict from utils import reset_seeds, get_dataset, load_embeddings from mlp_multilabel_wrapper import PowersetKerasWrapper, MultiOutputKerasWrapper from mlp_utils import CrossLabelDependencyLoss def get_random_sample(dataset_name='bbc', train_...
41.938462
104
0.705796
0
0
0
0
1,775
0.651137
0
0
235
0.086207
e0d8a4edfd7425e0db4ca0bd8268ff4b94c0916a
1,268
py
Python
code/evaluate.py
Shuailong/CCGSupertagging
891a6a477a4a05daeb847d4a4c33a1bc929d97b2
[ "MIT" ]
3
2018-11-09T04:33:12.000Z
2021-06-04T04:23:07.000Z
code/evaluate.py
Shuailong/CCGSupertagging
891a6a477a4a05daeb847d4a4c33a1bc929d97b2
[ "MIT" ]
2
2017-03-13T02:56:09.000Z
2019-07-27T02:47:29.000Z
code/evaluate.py
Shuailong/CCGSupertagging
891a6a477a4a05daeb847d4a4c33a1bc929d97b2
[ "MIT" ]
1
2020-11-25T06:09:33.000Z
2020-11-25T06:09:33.000Z
#!/usr/bin/env python # encoding: utf-8 """ evaluate.py Created by Shuailong on 2016-12-2. Evaluate model accuracy on test set. """ from __future__ import print_function from time import time from keras.models import load_model import os from utils import true_accuracy from dataset import get_data from train imp...
25.877551
108
0.645899
0
0
0
0
0
0
0
0
314
0.247634
e0d9891ebc981dc1dd6b1f55b9d60d1a276b4e1d
1,283
py
Python
setup.py
Cloudlock/bravado
bacf49ea9d791ec9f564a3a141c77995d2f395b0
[ "BSD-3-Clause" ]
null
null
null
setup.py
Cloudlock/bravado
bacf49ea9d791ec9f564a3a141c77995d2f395b0
[ "BSD-3-Clause" ]
2
2016-12-14T07:33:33.000Z
2017-05-11T13:40:48.000Z
setup.py
Cloudlock/bravado
bacf49ea9d791ec9f564a3a141c77995d2f395b0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013, Digium, Inc. # Copyright (c) 2014-2016, Yelp, Inc. import os from setuptools import setup import bravado setup( name="bravado", # cloudlock version, no twisted dependency version=bravado.version + "cl", license="BSD 3-Clause License", description="Lib...
29.159091
71
0.59392
0
0
0
0
0
0
0
0
734
0.572097
e0d98d3fbe99c6483d07cbca24e2f2d19d6ccfe4
4,691
py
Python
solum/api/controllers/v1/assembly.py
devdattakulkarni/test-solum
4e9ddb82d217116aa2c30a6f2581080cbdfae325
[ "Apache-2.0" ]
null
null
null
solum/api/controllers/v1/assembly.py
devdattakulkarni/test-solum
4e9ddb82d217116aa2c30a6f2581080cbdfae325
[ "Apache-2.0" ]
null
null
null
solum/api/controllers/v1/assembly.py
devdattakulkarni/test-solum
4e9ddb82d217116aa2c30a6f2581080cbdfae325
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 - Red Hat, 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 writ...
39.420168
77
0.675336
3,710
0.790876
0
0
3,344
0.712854
0
0
1,033
0.220209
e0daa9911332d847f463b64cda5a0ec1b5c5fe82
562
py
Python
server/website/website/migrations/0003_background_task_optimization.py
mjain2/ottertune
011e896bf89df831fb1189b1ab4c9a7d7dca420a
[ "Apache-2.0" ]
1
2019-08-16T19:35:35.000Z
2019-08-16T19:35:35.000Z
server/website/website/migrations/0003_background_task_optimization.py
mjain2/ottertune
011e896bf89df831fb1189b1ab4c9a7d7dca420a
[ "Apache-2.0" ]
null
null
null
server/website/website/migrations/0003_background_task_optimization.py
mjain2/ottertune
011e896bf89df831fb1189b1ab4c9a7d7dca420a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-08-02 07:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0002_enable_compression'), ] operations...
25.545455
129
0.631673
371
0.660142
0
0
0
0
0
0
156
0.27758
e0dbf6e6b17f8d31b9acfaa5334ab33b086914a3
1,379
py
Python
src/agility/usc/settings.py
bobbyluig/6.A01
16dd8963951eca4a1312a15c216d0cc3c117d063
[ "MIT" ]
null
null
null
src/agility/usc/settings.py
bobbyluig/6.A01
16dd8963951eca4a1312a15c216d0cc3c117d063
[ "MIT" ]
null
null
null
src/agility/usc/settings.py
bobbyluig/6.A01
16dd8963951eca4a1312a15c216d0cc3c117d063
[ "MIT" ]
1
2021-02-24T07:13:01.000Z
2021-02-24T07:13:01.000Z
from agility.usc.enumeration import uscSerialMode, ChannelMode, HomeMode from agility.usc.reader import BytecodeReader class UscSettings: def __init__(self): self.servosAvailable = 6 self.servoPeriod = 156 self.miniMaestroServoPeriod = 80000 self.servoMultiplier = 1 self.se...
29.340426
73
0.636693
1,254
0.909355
0
0
0
0
0
0
2
0.00145
e0dd99fc8816a494d26cd7231afd96fb99ec03d8
476
py
Python
invmonInfra/domain/__init__.py
jtom38/invmon-api
28f163bef47ee5c95bac0f40198e25e44090758f
[ "MIT" ]
null
null
null
invmonInfra/domain/__init__.py
jtom38/invmon-api
28f163bef47ee5c95bac0f40198e25e44090758f
[ "MIT" ]
16
2021-12-09T06:22:29.000Z
2022-03-25T06:26:01.000Z
invmonInfra/domain/__init__.py
jtom38/invmon-api
28f163bef47ee5c95bac0f40198e25e44090758f
[ "MIT" ]
null
null
null
from .dbApiInterface import DbApiTableInterface from .dbApiTableInterface import DbApiTableInterface from .cacheInterface import CacheInterface from .loggerInterface import LoggerInterface from .envReaderInterface import EnvReaderInterface from .driverInterface import DriverInterface from .jobsInterface import JobsInte...
47.6
58
0.897059
0
0
0
0
0
0
0
0
0
0
e0e0334b9f18fc8e44cf7c368bc6aba17a751a2d
1,123
py
Python
app/app8_18mix/h_noSeqSearch.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
1
2020-05-30T06:01:50.000Z
2020-05-30T06:01:50.000Z
app/app8_18mix/h_noSeqSearch.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
null
null
null
app/app8_18mix/h_noSeqSearch.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
1
2019-10-20T21:11:48.000Z
2019-10-20T21:11:48.000Z
import sys import csv import os sys.path.append('../../') import h_lib import h_lib_noSeqSearch in_strFastaFilename = '{!s}/data/protein/18mix/18mix_db_plus_contaminants_20081209.fasta'.format(os.environ.get('HOME')) in_strPeptideFilename = '{!s}/data/protein/18mix/18_mixtures_peptide_identification.txt'.format(os.en...
38.724138
120
0.782725
0
0
0
0
0
0
0
0
398
0.354408
e0e04165ecde0d603bc47e0b5c5deaa17a56ab3a
700
py
Python
normalizer.py
ashokn414/python_floating_conversions
7a132c703272e6651daf555816171f04ee5b5555
[ "Apache-2.0" ]
null
null
null
normalizer.py
ashokn414/python_floating_conversions
7a132c703272e6651daf555816171f04ee5b5555
[ "Apache-2.0" ]
null
null
null
normalizer.py
ashokn414/python_floating_conversions
7a132c703272e6651daf555816171f04ee5b5555
[ "Apache-2.0" ]
null
null
null
# for normalization we need to have the maxima of x and y values with the help of which # we can normalise the given values import csv filename = "values.csv" fields = [] rows = [] with open(filename,'r') as csvfile: reader = csv.reader(csvfile) fields = next(reader) for row in reader: ...
26.923077
89
0.615714
0
0
0
0
0
0
0
0
300
0.428571
e0e23eae8f30892f74e1745a5cf500f5f0c7d685
3,477
py
Python
pygdp/fwgs.py
jiwalker-usgs/pyGDP
dca4789fb0c53c889d6fa1b38ec867bc939a2d04
[ "CC0-1.0" ]
null
null
null
pygdp/fwgs.py
jiwalker-usgs/pyGDP
dca4789fb0c53c889d6fa1b38ec867bc939a2d04
[ "CC0-1.0" ]
null
null
null
pygdp/fwgs.py
jiwalker-usgs/pyGDP
dca4789fb0c53c889d6fa1b38ec867bc939a2d04
[ "CC0-1.0" ]
null
null
null
from pygdp import _execute_request from pygdp import _get_geotype from owslib.util import log def submitFeatureWeightedGridStatistics(geoType, dataSetURI, varID, startTime, endTime, attribute, value, gmlIDs, verbose, coverage, delim, stat, grpby, timeStep, summAttr, weighted, WF...
39.965517
157
0.595628
0
0
0
0
0
0
0
0
1,140
0.327869
e0e302f950371ae0056fe68d4bc413f86d8a3bb5
1,180
py
Python
tests/pure-req.py
rbanffy/bjoern
b177b62aa626cee97972a2e73f8543e6d86b5eb7
[ "BSD-2-Clause" ]
2,326
2015-01-05T21:20:29.000Z
2022-03-31T15:42:24.000Z
tests/pure-req.py
rbanffy/bjoern
b177b62aa626cee97972a2e73f8543e6d86b5eb7
[ "BSD-2-Clause" ]
127
2015-04-09T03:33:17.000Z
2022-03-11T13:43:55.000Z
tests/pure-req.py
rbanffy/bjoern
b177b62aa626cee97972a2e73f8543e6d86b5eb7
[ "BSD-2-Clause" ]
190
2015-01-20T10:54:38.000Z
2022-02-23T05:45:45.000Z
import sys import socket conn = socket.create_connection(('0.0.0.0', 8080)) msgs = [ # 0 Keep-Alive, Transfer-Encoding chunked 'GET / HTTP/1.1\r\nConnection: Keep-Alive\r\n\r\n', # 1,2,3 Close, EOF "encoding" 'GET / HTTP/1.1\r\n\r\n', 'GET / HTTP/1.1\r\nConnection: close\r\n\r\n', 'GET / HTTP/...
28.780488
70
0.580508
0
0
0
0
0
0
0
0
767
0.65
e0e356f37fd9ccf2de0310d2d8f77f903645f43e
324
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock/models/web_planner.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock/models/web_planner.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock/models/web_planner.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import models class PlannerInventory(models.Model): _inherit = 'web.planner' def _get_planner_application(self): planner = super(PlannerInventory, self)._get_planner_application() planner.append(['planner_inventory', 'Inventory Planner']) return plan...
24.923077
74
0.697531
272
0.839506
0
0
0
0
0
0
74
0.228395
e0e3e3c9acda1bb91d2a503dbb2cdcf350023dcd
45,861
py
Python
wizbot.py
Wizard-Of-Chaos/WizardBot
75a2e482c7d7921e9a06dde4d210c68330c6fbe2
[ "MIT" ]
null
null
null
wizbot.py
Wizard-Of-Chaos/WizardBot
75a2e482c7d7921e9a06dde4d210c68330c6fbe2
[ "MIT" ]
null
null
null
wizbot.py
Wizard-Of-Chaos/WizardBot
75a2e482c7d7921e9a06dde4d210c68330c6fbe2
[ "MIT" ]
null
null
null
#WIZARD BOT IS LIVE import calendar import discord as dc from discord.ext.commands import Bot from discord.ext import commands from functools import partial import asyncio as aio import time from random import randint from datetime import datetime from discord.ext import commands from guildconfig import GuildConfig f...
48.788298
151
0.536556
2,725
0.059419
0
0
41,485
0.904581
41,486
0.904603
13,126
0.286213
e0e46a7c483f2f163fea7d76f7af991fbac7e1d8
1,167
py
Python
stack.py
henryoliver/data-structures
eb3d709543ace5197236164998b8295e72187cb0
[ "MIT" ]
null
null
null
stack.py
henryoliver/data-structures
eb3d709543ace5197236164998b8295e72187cb0
[ "MIT" ]
null
null
null
stack.py
henryoliver/data-structures
eb3d709543ace5197236164998b8295e72187cb0
[ "MIT" ]
null
null
null
class Stack: def __init__(self): self.stack = [] self.minMaxStack = [] # O(1) time | O(1) space def peek(self): if (len(self.stack)): return self.stack[-1] return None # O(1) time | O(1) space def pop(self): if (len(self.stack)): sel...
22.882353
55
0.533847
1,166
0.999143
0
0
0
0
0
0
132
0.113111
e0e4e551502750847910375c9545b7c251613085
2,775
py
Python
ProyectoDAI/settings.py
javiergarridomellado/proyectodai
64944d10f543c3094630056906b5f101a73bdd7b
[ "Apache-2.0" ]
1
2019-08-21T17:21:13.000Z
2019-08-21T17:21:13.000Z
ProyectoDAI/settings.py
javiergarridomellado/proyectodai
64944d10f543c3094630056906b5f101a73bdd7b
[ "Apache-2.0" ]
null
null
null
ProyectoDAI/settings.py
javiergarridomellado/proyectodai
64944d10f543c3094630056906b5f101a73bdd7b
[ "Apache-2.0" ]
null
null
null
""" Django settings for TusPachangas project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ import django import dj_database_url # Build paths inside the project li...
25.458716
131
0.735856
0
0
0
0
0
0
0
0
1,824
0.657297
e0e5f077be0c9058daed1ddc7c50b58ba470d16a
1,169
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/python/eager/test.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/eager/test.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/python/eager/test.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.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...
38.966667
81
0.707442
0
0
0
0
0
0
0
0
802
0.686056
e0e63ae87cd65917f81764b65113935c80fb3646
1,150
py
Python
util.py
monokim/CheesyBullets
eeb5a79a69936701ff7962b846e6310f7df91cb0
[ "BSD-3-Clause" ]
1
2021-09-28T01:02:31.000Z
2021-09-28T01:02:31.000Z
util.py
monokim/CheesyBullets
eeb5a79a69936701ff7962b846e6310f7df91cb0
[ "BSD-3-Clause" ]
null
null
null
util.py
monokim/CheesyBullets
eeb5a79a69936701ff7962b846e6310f7df91cb0
[ "BSD-3-Clause" ]
1
2021-09-28T01:02:32.000Z
2021-09-28T01:02:32.000Z
import time import pyautogui import win32gui def get_screen_rect(caption='CheesyBullets'): hwnd = win32gui.FindWindow(None, caption) rect = win32gui.GetWindowRect(hwnd) screen_rect = (rect[0], rect[1], rect[2] - rect[0], rect[3] - rect[1]) return rect class Timer(): def __init__(self): sel...
26.744186
74
0.508696
879
0.764348
0
0
0
0
0
0
64
0.055652
e0e6d5767d002512b6411fc77a77af2956e16766
19,876
py
Python
graph-to-graph/elf_correlate.py
mbrcknl/graph-refine
78c74f18127db53606f18f775a5a50de86bc6b97
[ "BSD-2-Clause", "MIT" ]
6
2017-03-17T17:57:48.000Z
2019-12-28T13:03:23.000Z
graph-to-graph/elf_correlate.py
myuluo/graph-refine
8924af0c61c3c863db7957e0ebac7ae1ceefad9d
[ "BSD-2-Clause", "MIT" ]
3
2020-04-07T09:15:55.000Z
2022-03-23T01:36:26.000Z
graph-to-graph/elf_correlate.py
myuluo/graph-refine
8924af0c61c3c863db7957e0ebac7ae1ceefad9d
[ "BSD-2-Clause", "MIT" ]
7
2020-04-16T00:32:41.000Z
2022-03-09T05:25:23.000Z
# # Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) # # SPDX-License-Identifier: BSD-2-Clause # import re import graph_refine.syntax as syntax import graph_refine.problem as problem import graph_refine.stack_logic as stack_logic from graph_refine.syntax import true_term, false_term, mk_not from graph_refine.check i...
33.574324
132
0.550513
18,944
0.953109
0
0
0
0
0
0
3,201
0.161049
e0e7c60f7d5d1f6c613e5dbae742091e0b76d703
2,301
py
Python
Gelatin/parser/Parser.py
Etherbay/Gelatin
d2afa85a48034d6ee34580e49e16542f31ad208e
[ "MIT" ]
107
2015-01-26T21:37:57.000Z
2022-02-25T16:28:44.000Z
Gelatin/parser/Parser.py
Etherbay/Gelatin
d2afa85a48034d6ee34580e49e16542f31ad208e
[ "MIT" ]
20
2015-11-23T14:09:37.000Z
2021-02-11T17:57:24.000Z
Gelatin/parser/Parser.py
Etherbay/Gelatin
d2afa85a48034d6ee34580e49e16542f31ad208e
[ "MIT" ]
34
2015-01-05T18:47:34.000Z
2020-12-13T06:47:26.000Z
# Copyright (c) 2010-2017 Samuel Abels # # 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, merge, publish, d...
40.368421
80
0.704911
908
0.394611
0
0
0
0
0
0
1,174
0.510213
e0e93ce753097ffb23fb7c437281488fb715e819
308
py
Python
C03-Unit-Testing/21-C03V15/utils.py
dirchev/Python-101-Forever-1
13c3bb182747aae244ae6f9fd6f79c8223f3e9a6
[ "MIT" ]
59
2021-02-05T10:40:08.000Z
2022-01-26T08:30:43.000Z
C03-Unit-Testing/21-C03V15/utils.py
dirchev/Python-101-Forever-1
13c3bb182747aae244ae6f9fd6f79c8223f3e9a6
[ "MIT" ]
null
null
null
C03-Unit-Testing/21-C03V15/utils.py
dirchev/Python-101-Forever-1
13c3bb182747aae244ae6f9fd6f79c8223f3e9a6
[ "MIT" ]
10
2021-02-13T16:50:26.000Z
2022-03-20T12:17:00.000Z
BIG_CONSTANT = "YES" def group_by(xs, grouper): groups = {} for x in xs: group = grouper(x) if group not in groups: groups[group] = [] groups[group].append(x) return groups print(group_by([1, 2, 3, 4, 5, 6], lambda x: "even" if x % 2 == 0 else "odd"))
16.210526
78
0.529221
0
0
0
0
0
0
0
0
16
0.051948
e0eb718b5df49f7654c2a9064eafc5186c980c9e
3,721
py
Python
pipeline/test_sftp_to_s3.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2020-04-14T03:01:51.000Z
2020-04-14T03:01:51.000Z
pipeline/test_sftp_to_s3.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
null
null
null
pipeline/test_sftp_to_s3.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2019-09-14T08:30:23.000Z
2019-09-14T08:30:23.000Z
# Copyright 2019 StreamSets 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 writi...
42.770115
133
0.742274
0
0
0
0
2,729
0.733405
0
0
1,552
0.417092
e0ed1ce1a37b62c8113cea099de0a407123519d8
950
py
Python
terra/tests/__init__.py
NoahRJohnson/terra
131954ee42fb5905ceff35101e34d89c5eb6de6c
[ "MIT" ]
null
null
null
terra/tests/__init__.py
NoahRJohnson/terra
131954ee42fb5905ceff35101e34d89c5eb6de6c
[ "MIT" ]
null
null
null
terra/tests/__init__.py
NoahRJohnson/terra
131954ee42fb5905ceff35101e34d89c5eb6de6c
[ "MIT" ]
null
null
null
import os # Use this as a package level setup def load_tests(loader, standard_tests, pattern): if os.environ.get('TERRA_UNITTEST', None) != "1": print('WARNING: Running terra tests without setting TERRA_UNITTEST will ' 'result in side effects such as extraneouse log files being ' 'generated'...
38
77
0.749474
0
0
0
0
0
0
0
0
487
0.512632
e0edc031d7ad458b3382ce23bb1ea18d6941bcf3
392
py
Python
icons/svg2png.py
benburrill/formiko
86630506c537f9517666d9b0d5b2a905e7385b01
[ "BSD-3-Clause" ]
116
2016-07-13T00:35:35.000Z
2022-02-22T15:46:44.000Z
icons/svg2png.py
benburrill/formiko
86630506c537f9517666d9b0d5b2a905e7385b01
[ "BSD-3-Clause" ]
32
2018-01-23T13:50:27.000Z
2022-03-30T05:34:56.000Z
icons/svg2png.py
benburrill/formiko
86630506c537f9517666d9b0d5b2a905e7385b01
[ "BSD-3-Clause" ]
8
2018-12-21T13:45:36.000Z
2021-11-07T22:40:05.000Z
# -*- coding: utf-8 -*- from gi.repository.GdkPixbuf import Pixbuf from os import makedirs def main(): for size in (16, 22, 24, 32, 48, 64, 128, 256, 512): icon = Pixbuf.new_from_file_at_scale("formiko.svg", size, size, True) makedirs("%dx%d" % (size, size)) icon.savev("%dx%d/formiko.png"...
24.5
77
0.591837
0
0
0
0
0
0
0
0
77
0.196429
e0eeafb1dffc9fb35d396d75f5c0ceb8be5469f6
545
py
Python
django/currencies/migrations/0003_auto_20211121_0701.py
AngelOnFira/megagame-controller
033fec84babf80ffd0868a0f7d946ac4c18b061c
[ "MIT" ]
null
null
null
django/currencies/migrations/0003_auto_20211121_0701.py
AngelOnFira/megagame-controller
033fec84babf80ffd0868a0f7d946ac4c18b061c
[ "MIT" ]
1
2022-03-03T21:56:12.000Z
2022-03-03T21:56:12.000Z
django/currencies/migrations/0003_auto_20211121_0701.py
AngelOnFira/megagame-controller
033fec84babf80ffd0868a0f7d946ac4c18b061c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-21 12:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("currencies", "0002_initial"), ] operations = [ migrations.AddField( model_name="payment", name="completed", ...
22.708333
53
0.577982
452
0.829358
0
0
0
0
0
0
121
0.222018
e0ef4cd1fe213247f6cb053cb5a43dff995c8928
5,778
py
Python
etna/transforms/decomposition/trend.py
tinkoff-ai/etna-ts
ded5161ed49f5c2697778825f899842ee30c6c61
[ "Apache-2.0" ]
96
2021-09-05T06:29:34.000Z
2021-11-07T15:22:54.000Z
etna/transforms/decomposition/trend.py
geopars/etna
ded5161ed49f5c2697778825f899842ee30c6c61
[ "Apache-2.0" ]
188
2021-09-06T15:59:58.000Z
2021-11-17T09:34:16.000Z
etna/transforms/decomposition/trend.py
geopars/etna
ded5161ed49f5c2697778825f899842ee30c6c61
[ "Apache-2.0" ]
8
2021-09-06T09:18:35.000Z
2021-11-11T21:18:39.000Z
from typing import Optional import pandas as pd from ruptures import Binseg from ruptures.base import BaseCost from sklearn.linear_model import LinearRegression from etna.transforms.base import PerSegmentWrapper from etna.transforms.decomposition.change_points_trend import BaseEstimator from etna.transforms.decomposi...
31.232432
122
0.606265
5,303
0.917792
0
0
0
0
0
0
2,589
0.448079
e0f004be552defdc3e85fe514fc0037369c084b9
4,027
py
Python
argopy/tests/test_fetchers_facade_index.py
schwehr/argopy
1b35d5cfb87b2f9ccd2ca45b9987a614edd30700
[ "Apache-2.0" ]
null
null
null
argopy/tests/test_fetchers_facade_index.py
schwehr/argopy
1b35d5cfb87b2f9ccd2ca45b9987a614edd30700
[ "Apache-2.0" ]
null
null
null
argopy/tests/test_fetchers_facade_index.py
schwehr/argopy
1b35d5cfb87b2f9ccd2ca45b9987a614edd30700
[ "Apache-2.0" ]
null
null
null
import xarray as xr import pytest import warnings import argopy from argopy import IndexFetcher as ArgoIndexFetcher from argopy.errors import InvalidFetcherAccessPoint, InvalidFetcher, ErddapServerError, DataNotFound from . import ( AVAILABLE_INDEX_SOURCES, requires_fetcher_index, requires_connected_erddap...
35.955357
100
0.674696
3,566
0.885523
0
0
3,385
0.840576
0
0
918
0.227961
e0f00c9b59cb978159364c5072c66c216bf67f98
968
py
Python
custom_components/acthor/config_flow.py
jatty/hass-acthor
9d5aaed3f01e9288fef031b47b0808e6e80c22d3
[ "MIT" ]
null
null
null
custom_components/acthor/config_flow.py
jatty/hass-acthor
9d5aaed3f01e9288fef031b47b0808e6e80c22d3
[ "MIT" ]
null
null
null
custom_components/acthor/config_flow.py
jatty/hass-acthor
9d5aaed3f01e9288fef031b47b0808e6e80c22d3
[ "MIT" ]
null
null
null
import voluptuous as vol from homeassistant.config_entries import ConfigFlow from homeassistant.const import CONF_HOST, CONF_NAME from .acthor import test_connection from .const import DEVICE_NAME, DOMAIN class ACThorConfigFlow(ConfigFlow, domain=DOMAIN): async def async_step_user(self, user_input: dict = None) ...
32.266667
72
0.597107
759
0.784091
0
0
0
0
704
0.727273
31
0.032025
e0f0a9e1fa344475b21cf62a27dc93bb2296049d
356
py
Python
doajtest/fixtures/common.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
doajtest/fixtures/common.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
doajtest/fixtures/common.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
NOTES = { 'notes': [ {'date': '2014-05-22T00:00:00Z', 'note': 'Second Note'}, {'date': '2014-05-21T14:02:45Z', 'note': 'First Note'} ] } SUBJECT = { "subject": ['HB1-3840', 'H'] } OWNER = { "owner": "Owner" } EDITORIAL = { "editor_group": "editorgroup", "editor": "associate" }...
14.833333
64
0.5
0
0
0
0
0
0
0
0
193
0.542135
e0f1a06f3be393877c548f9dcd340350faeb7ed3
46,397
py
Python
docnado/docnado.py
HEInventions/docnado
8817d8a9856b4babd9a2f81678a9ef0b8a75d4bc
[ "MIT" ]
78
2018-10-09T16:28:26.000Z
2022-02-24T15:25:26.000Z
docnado/docnado.py
HEInventions/docnado
8817d8a9856b4babd9a2f81678a9ef0b8a75d4bc
[ "MIT" ]
27
2018-11-01T16:30:50.000Z
2022-02-22T14:36:11.000Z
docnado/docnado.py
HEInventions/docnado
8817d8a9856b4babd9a2f81678a9ef0b8a75d4bc
[ "MIT" ]
9
2018-11-06T18:50:51.000Z
2020-10-24T00:56:16.000Z
""" docnado.py A rapid documentation tool that will blow you away. """ import os import re import sys import csv import glob import time import signal import shutil import urllib import base64 import hashlib import argparse import tempfile import datetime import threading import traceback import subprocess import pl...
37.782573
128
0.613078
15,769
0.339871
2,504
0.053969
6,881
0.148307
0
0
16,864
0.363472
e0f2ec36c80ac0eba008f5fa3fbe488f2f46b78b
171
py
Python
modulo-3/aulas/modulos e pacotes/uteis.py
Luis-Felipe-N/curso-em-video-python
09ff58ae31ae0360ebec74de609011d527956065
[ "MIT" ]
null
null
null
modulo-3/aulas/modulos e pacotes/uteis.py
Luis-Felipe-N/curso-em-video-python
09ff58ae31ae0360ebec74de609011d527956065
[ "MIT" ]
null
null
null
modulo-3/aulas/modulos e pacotes/uteis.py
Luis-Felipe-N/curso-em-video-python
09ff58ae31ae0360ebec74de609011d527956065
[ "MIT" ]
null
null
null
def fatorial(n): f = 1 while n != 0: f *= n n -= 1 return f def dobro(n): n *= 2 return n def triplo(n): n *= 3 return n
11.4
17
0.403509
0
0
0
0
0
0
0
0
0
0
e0f3298883d9924a9725a46789f9e295ab60fc80
15,155
py
Python
server/src/oscarbluelight/tests/offer/test_benefit_percentage.py
MaximBrewer/sebe
4b94b2c782d018b6fa3a130fa30173386cc9bfdd
[ "0BSD" ]
8
2016-06-18T01:40:26.000Z
2021-02-08T04:08:58.000Z
server/src/oscarbluelight/tests/offer/test_benefit_percentage.py
MaximBrewer/sebe
4b94b2c782d018b6fa3a130fa30173386cc9bfdd
[ "0BSD" ]
16
2018-05-04T13:00:07.000Z
2021-05-27T14:54:09.000Z
server/src/oscarbluelight/tests/offer/test_benefit_percentage.py
MaximBrewer/sebe
4b94b2c782d018b6fa3a130fa30173386cc9bfdd
[ "0BSD" ]
3
2016-12-19T11:30:47.000Z
2019-10-27T20:30:15.000Z
from decimal import Decimal as D from django.core import exceptions from django.test import TestCase from oscar.test import factories from oscar.test.basket import add_product, add_products from django_redis import get_redis_connection from oscarbluelight.offer.models import ( Range, Benefit, BluelightCount...
45.374251
91
0.692577
14,709
0.970571
0
0
0
0
0
0
1,740
0.114814
e0f5092962647fb17fad330ad7ca8a057c8cedba
435
py
Python
CLCC/ex8.py
adstr123/LPTHW
1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66
[ "Zed" ]
null
null
null
CLCC/ex8.py
adstr123/LPTHW
1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66
[ "Zed" ]
null
null
null
CLCC/ex8.py
adstr123/LPTHW
1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66
[ "Zed" ]
null
null
null
# Moving around directories with pushd & popd # You can save directries to go back to later. These can be built up in a stack. #pushd i/like/icecream # current stack: ~temp/i/like/icecream #pushd i/like # current stack: ~temp/i/like ~temp/i/like/icecream #popd # PS ~temp/i/like #popd # PS ~temp/i/like/icecre...
33.461538
109
0.728736
0
0
0
0
0
0
0
0
421
0.967816
e0f7703f7d61c2e287ab471ebd07742e1540f442
15,577
py
Python
mkt/search/tests/test_filters.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
mkt/search/tests/test_filters.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
mkt/search/tests/test_filters.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json from nose.tools import eq_, ok_ from rest_framework.exceptions import ParseError from django.contrib.auth.models import AnonymousUser from django.test.client import RequestFactory from django.test.utils import override_settings import mkt from mkt.constants.applications import DEV...
39.737245
79
0.560506
14,716
0.944666
0
0
854
0.054821
0
0
4,996
0.320709
e0f788d3a6de0a5319ec594f010d2fc7e6bb3c93
3,206
py
Python
third_party/logging.py
sweeneyb/iot-core-micropython
7fc341902fbf8fa587f0dc3aa10c0803a5e0d6a5
[ "Apache-2.0" ]
50
2019-06-12T22:30:43.000Z
2022-02-22T18:30:26.000Z
third_party/logging.py
cashoefman/Resto-Score-for-Hack-2021-for-Positivity
cb3227c8db4b1be0e46cfe4b8d3973c1af4fe49b
[ "Apache-2.0" ]
12
2019-07-05T09:39:45.000Z
2022-03-12T05:45:01.000Z
third_party/logging.py
cashoefman/Resto-Score-for-Hack-2021-for-Positivity
cb3227c8db4b1be0e46cfe4b8d3973c1af4fe49b
[ "Apache-2.0" ]
16
2019-06-13T09:12:24.000Z
2022-03-12T05:47:22.000Z
# MIT License # # Copyright (c) 2019 Johan Brichau # # 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...
27.637931
80
0.647224
1,222
0.38116
0
0
0
0
0
0
1,240
0.386775
e0f88df1e0c707f34a922f07d69b31d76bda43ee
536
py
Python
assessments/migrations/0003_auto_20210212_1943.py
acounsel/django_msat
86a54e43429001cb6433e28b294d6b8a94b97e6e
[ "MIT" ]
null
null
null
assessments/migrations/0003_auto_20210212_1943.py
acounsel/django_msat
86a54e43429001cb6433e28b294d6b8a94b97e6e
[ "MIT" ]
null
null
null
assessments/migrations/0003_auto_20210212_1943.py
acounsel/django_msat
86a54e43429001cb6433e28b294d6b8a94b97e6e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-12 19:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('assessments', '0002_auto_20210212_1904'), ] operations = [ migrations.AlterField( model_name='country', name='region...
28.210526
195
0.600746
443
0.826493
0
0
0
0
0
0
183
0.341418
e0f8b6be8671efa3ab8fb691c490862ecc07081d
668
py
Python
noxfile.py
sethmlarson/workplace-search-python
0680ce7144fc0608d3d8c336315ffaf7ddc3ca2d
[ "Apache-2.0" ]
5
2020-03-05T16:37:35.000Z
2021-02-26T03:44:09.000Z
noxfile.py
sethmlarson/workplace-search-python
0680ce7144fc0608d3d8c336315ffaf7ddc3ca2d
[ "Apache-2.0" ]
1
2019-01-08T20:10:16.000Z
2019-01-08T20:10:16.000Z
noxfile.py
sethmlarson/workplace-search-python
0680ce7144fc0608d3d8c336315ffaf7ddc3ca2d
[ "Apache-2.0" ]
1
2020-04-22T18:20:26.000Z
2020-04-22T18:20:26.000Z
import nox SOURCE_FILES = ( "setup.py", "noxfile.py", "elastic_workplace_search/", "tests/", ) @nox.session(python=["2.7", "3.4", "3.5", "3.6", "3.7", "3.8"]) def test(session): session.install(".") session.install("-r", "dev-requirements.txt") session.run("pytest", "--record-mode=none"...
20.242424
82
0.609281
0
0
0
0
546
0.817365
0
0
243
0.363772
e0f8ef5b2d2b11ceb48d819c7022ba608e70f8fd
17,241
py
Python
komodo2_rl/src/environments/Spawner.py
osheraz/komodo
d53759100ced7439dd501620f955f347087e4f63
[ "MIT" ]
5
2020-08-11T08:47:25.000Z
2022-02-15T06:19:18.000Z
komodo2_rl/src/environments/Spawner.py
osheraz/komodo
d53759100ced7439dd501620f955f347087e4f63
[ "MIT" ]
null
null
null
komodo2_rl/src/environments/Spawner.py
osheraz/komodo
d53759100ced7439dd501620f955f347087e4f63
[ "MIT" ]
1
2021-05-06T14:25:17.000Z
2021-05-06T14:25:17.000Z
# !/usr/bin/env python import rospy import numpy as np from gazebo_msgs.srv import SpawnModel, SpawnModelRequest, SpawnModelResponse from copy import deepcopy from tf.transformations import quaternion_from_euler sdf_cube = """<?xml version="1.0" ?> <sdf version="1.4"> <model name="MODELNAME"> <static>0</static...
33.283784
108
0.463198
3,243
0.188098
0
0
0
0
0
0
14,655
0.850009
e0f9e97bf2ab57eb94b8a3dc17de1f26affd17b5
121
py
Python
output/models/ms_data/regex/re_l32_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_l32_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_l32_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_l32_xsd.re_l32 import ( Regex, Doc, ) __all__ = [ "Regex", "Doc", ]
12.1
59
0.603306
0
0
0
0
0
0
0
0
12
0.099174
e0f9f1296b023c0d6516cc11729dc5f2eb6ecdd7
4,291
py
Python
sdk/python/tests/dsl/metadata_tests.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
6
2020-05-19T02:35:11.000Z
2020-05-29T17:58:42.000Z
sdk/python/tests/dsl/metadata_tests.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
1,932
2021-01-25T11:23:37.000Z
2022-03-31T17:10:18.000Z
sdk/python/tests/dsl/metadata_tests.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
11
2020-05-19T22:26:41.000Z
2021-01-25T09:56:21.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.91
88
0.316476
3,621
0.843859
0
0
0
0
0
0
1,259
0.293405
e0fb958c05e67ba3756a0924303bc1ac81028564
644
py
Python
challenges/python-solutions/day-25.py
elifloresch/thirty-days-challenge
d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af
[ "MIT" ]
null
null
null
challenges/python-solutions/day-25.py
elifloresch/thirty-days-challenge
d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af
[ "MIT" ]
null
null
null
challenges/python-solutions/day-25.py
elifloresch/thirty-days-challenge
d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af
[ "MIT" ]
null
null
null
import math def is_prime_number(number): if number < 2: return False if number == 2 or number == 3: return True if number % 2 == 0 or number % 3 == 0: return False number_sqrt = math.sqrt(number) int_number_sqrt = int(number_sqrt) + 1 for d in range(6, int_number_sq...
19.515152
58
0.57764
0
0
0
0
0
0
0
0
18
0.02795
e0fbf814aa561afb0f3e8aefc0b444cab5d08bda
1,265
py
Python
examples/path_config.py
rnixx/garden.cefpython
91d5f69e9983a28ce1971637d7d2f0051c456882
[ "MIT" ]
13
2017-02-10T12:07:29.000Z
2021-12-15T02:07:07.000Z
examples/path_config.py
Informatic/garden.cefpython
b7a03d31fd18a32a44ae293d4101b4cf7608795b
[ "MIT" ]
22
2015-02-13T09:58:30.000Z
2015-06-12T08:55:20.000Z
examples/path_config.py
Informatic/garden.cefpython
b7a03d31fd18a32a44ae293d4101b4cf7608795b
[ "MIT" ]
12
2017-05-03T01:18:31.000Z
2021-10-01T06:57:41.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Minimal example of the CEFBrowser widget use. Here you don't have any controls (back / forth / reload) or whatsoever. Just a kivy app displaying the chromium-webview. In this example we demonstrate how the cache path of CEF can be set. """ import os from kivy.app im...
34.189189
78
0.656917
796
0.629249
0
0
0
0
0
0
683
0.539921
e0fc122c2f5c222700dce3588b9faccba2d8800b
312
py
Python
simple-systems/and_xor_shift.py
laserbat/random-projects
925f94f80299df6f16e91975e89f5fff7df20005
[ "WTFPL" ]
3
2019-04-14T12:29:10.000Z
2020-02-26T22:27:04.000Z
simple-systems/and_xor_shift.py
laserbat/random-projects
925f94f80299df6f16e91975e89f5fff7df20005
[ "WTFPL" ]
null
null
null
simple-systems/and_xor_shift.py
laserbat/random-projects
925f94f80299df6f16e91975e89f5fff7df20005
[ "WTFPL" ]
1
2020-06-08T22:12:16.000Z
2020-06-08T22:12:16.000Z
#!/usr/bin/python3 # If F(a) is any function that can be defined as composition of bitwise XORs, ANDs and left shifts # Then the dynac system x_(n+1) = F(x_n) is Turing complete # Proof by simulation (rule110) a = 1 while a: print(bin(a)) a = a ^ (a << 1) ^ (a & (a << 1)) ^ (a & (a << 1) & (a << 2))
26
98
0.589744
0
0
0
0
0
0
0
0
206
0.660256
e0fc7fc48d25fb30b40c2e42b598b6eff6d50954
5,543
py
Python
trinity/protocol/common/peer_pool_event_bus.py
Gauddel/trinity
0b12943ac36f4090abc22fc965e9e9a4f42c6f35
[ "MIT" ]
null
null
null
trinity/protocol/common/peer_pool_event_bus.py
Gauddel/trinity
0b12943ac36f4090abc22fc965e9e9a4f42c6f35
[ "MIT" ]
null
null
null
trinity/protocol/common/peer_pool_event_bus.py
Gauddel/trinity
0b12943ac36f4090abc22fc965e9e9a4f42c6f35
[ "MIT" ]
null
null
null
from abc import ( abstractmethod, ) from typing import ( Any, Callable, cast, FrozenSet, Generic, Type, TypeVar, ) from cancel_token import ( CancelToken, ) from p2p.exceptions import ( PeerConnectionLost, ) from p2p.kademlia import Node from p2p.peer import ( BasePeer, ...
33.391566
99
0.625293
4,738
0.854772
0
0
513
0.092549
2,524
0.455349
1,255
0.226412
e0fe475b8134a31f2b77a708e5769cd268cfc749
18,488
py
Python
tests/e2e/performance/csi_tests/test_pvc_creation_deletion_performance.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
1
2019-09-17T08:38:05.000Z
2019-09-17T08:38:05.000Z
tests/e2e/performance/csi_tests/test_pvc_creation_deletion_performance.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
1
2021-08-30T20:06:00.000Z
2021-09-30T20:05:46.000Z
tests/e2e/performance/csi_tests/test_pvc_creation_deletion_performance.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
2
2019-09-17T10:04:14.000Z
2022-02-07T16:36:49.000Z
""" Test to verify performance of PVC creation and deletion for RBD, CephFS and RBD-Thick interfaces """ import time import logging import datetime import pytest import ocs_ci.ocs.exceptions as ex import threading import statistics from concurrent.futures import ThreadPoolExecutor from uuid import uuid4 from ocs_ci.fr...
38.119588
119
0.59855
17,812
0.963436
0
0
16,906
0.914431
0
0
5,939
0.321235
e0fe959730942d4fbe3c43eb35ca77c0cc852bbc
1,233
py
Python
templates/t/searchresult_withnone.py
MikeBirdsall/food-log
5edc1fa515d5e2721e96afb7d2b437296903a31d
[ "MIT" ]
null
null
null
templates/t/searchresult_withnone.py
MikeBirdsall/food-log
5edc1fa515d5e2721e96afb7d2b437296903a31d
[ "MIT" ]
27
2017-07-01T19:20:48.000Z
2019-03-07T06:04:22.000Z
templates/t/searchresult_withnone.py
MikeBirdsall/food-log
5edc1fa515d5e2721e96afb7d2b437296903a31d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from jinja2 import Environment, FileSystemLoader def spacenone(value): return "" if value is None else str(value) results = [ dict( description="Noodles and Company steak Stromboli", comment="", size="small", cals=530, carbs=50, fat=25, ...
19.887097
58
0.544201
0
0
0
0
0
0
0
0
249
0.201946
e0ff8f36b2a500b9d978be307fa6e00f7161603f
2,146
py
Python
payments/views.py
aman-roy/pune.pycon.org
f56cc948bd56767110d337c694ecbf5540bdf4b9
[ "MIT" ]
null
null
null
payments/views.py
aman-roy/pune.pycon.org
f56cc948bd56767110d337c694ecbf5540bdf4b9
[ "MIT" ]
null
null
null
payments/views.py
aman-roy/pune.pycon.org
f56cc948bd56767110d337c694ecbf5540bdf4b9
[ "MIT" ]
null
null
null
from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from payments.models import Invoice, RazorpayKeys from payments.razorpay.razorpay_payments import RazorpayPayments from payments.models import Payment, Order import json @csrf_exempt def webhook(request): if request.method ...
40.490566
91
0.66356
0
0
0
0
874
0.407269
0
0
278
0.129543
e0ff97e8d61ff585dcd9a0102ba24b2e2528bca2
6,541
py
Python
src/convnet/image_classifier.py
danschef/gear-detector
153d1031778f183ac38edf0532d2f266029c5ea7
[ "MIT" ]
1
2020-07-15T20:12:55.000Z
2020-07-15T20:12:55.000Z
src/convnet/image_classifier.py
danschef/gear-detector
153d1031778f183ac38edf0532d2f266029c5ea7
[ "MIT" ]
null
null
null
src/convnet/image_classifier.py
danschef/gear-detector
153d1031778f183ac38edf0532d2f266029c5ea7
[ "MIT" ]
null
null
null
import configparser import os import sys from time import localtime, strftime, mktime import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from net import Net from geo_helper import store_image_bounds from image_helper import CLASSES from image_helper import save_image f...
31.599034
92
0.581257
0
0
0
0
0
0
0
0
2,383
0.364317
46004af1bf9a4f4788952ff849b76ab958f79e1c
3,035
py
Python
src/modules/AlphabetPlotter.py
aaanh/duplicated_accelcamp
7d4b60ace023bede907f8ed367ba492731a1951d
[ "FTL", "CNRI-Python", "RSA-MD" ]
null
null
null
src/modules/AlphabetPlotter.py
aaanh/duplicated_accelcamp
7d4b60ace023bede907f8ed367ba492731a1951d
[ "FTL", "CNRI-Python", "RSA-MD" ]
2
2021-05-21T16:31:41.000Z
2021-08-25T16:05:48.000Z
src/modules/AlphabetPlotter.py
aaanh/duplicated_accelcamp
7d4b60ace023bede907f8ed367ba492731a1951d
[ "FTL", "CNRI-Python", "RSA-MD" ]
null
null
null
import tkinter as tk from tkinter import filedialog import csv import matplotlib.pyplot as plt root = tk.Tk(screenName=':0.0') root.withdraw() file_path = filedialog.askopenfilename() lastIndex = len(file_path.split('/')) - 1 v0 = [0, 0, 0] x0 = [0, 0, 0] fToA = 1 error = 0.28 errorZ = 3 t = [] time...
29.182692
106
0.577595
0
0
0
0
0
0
0
0
831
0.273806
46023337d875860607f4a1fabbf53f963a80b88e
2,647
py
Python
users/migrations/0008_profile_fields_optional.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
10
2019-02-20T18:41:32.000Z
2021-07-26T10:39:58.000Z
users/migrations/0008_profile_fields_optional.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
2,226
2019-02-20T20:03:57.000Z
2022-03-31T11:18:56.000Z
users/migrations/0008_profile_fields_optional.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
4
2020-08-26T19:26:02.000Z
2021-03-09T17:46:47.000Z
# Generated by Django 2.2.3 on 2019-07-15 19:24 from django.db import migrations, models def backpopulate_incomplete_profiles(apps, schema): """Backpopulate users who don't have a profile record""" User = apps.get_model("users", "User") Profile = apps.get_model("users", "Profile") for user in User.o...
32.280488
87
0.574613
1,753
0.662259
0
0
0
0
0
0
486
0.183604
4602886d15507fa511fee4f9d72dd974724d982f
33,743
py
Python
test/unit_testing/grid/element_linear_dx_data/test_element_linearC/element/geom_element_AD.py
nwukie/ChiDG
d096548ba3bd0a338a29f522fb00a669f0e33e9b
[ "BSD-3-Clause" ]
36
2016-10-05T15:12:22.000Z
2022-03-17T02:08:23.000Z
test/unit_testing/grid/element_linear_dx_data/test_element_linearC/element/geom_element_AD.py
nwukie/ChiDG
d096548ba3bd0a338a29f522fb00a669f0e33e9b
[ "BSD-3-Clause" ]
17
2016-05-17T02:21:05.000Z
2017-08-10T16:33:07.000Z
test/unit_testing/grid/element_linear_dx_data/test_element_linearC/element/geom_element_AD.py
nwukie/ChiDG
d096548ba3bd0a338a29f522fb00a669f0e33e9b
[ "BSD-3-Clause" ]
20
2016-07-18T16:20:47.000Z
2020-11-27T19:26:12.000Z
from __future__ import division import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import sys import os import time # # TORCH INSTALLATION: refer to https://pytorch.org/get-started/locally/ # def update_progress(job_t...
40.950243
159
0.564532
0
0
0
0
0
0
0
0
4,429
0.131257
4602f7f46fb5876b81f698415a8de6581f32551a
2,827
py
Python
osr_stat_generator/generator.py
brian-thomas/osr_stat_generator
89f6a71e17c274befa3af7222a24c34a77f1f40e
[ "MIT" ]
null
null
null
osr_stat_generator/generator.py
brian-thomas/osr_stat_generator
89f6a71e17c274befa3af7222a24c34a77f1f40e
[ "MIT" ]
null
null
null
osr_stat_generator/generator.py
brian-thomas/osr_stat_generator
89f6a71e17c274befa3af7222a24c34a77f1f40e
[ "MIT" ]
null
null
null
""" OSR (LOTFP) stat generator. """ import random def d(num_sides): """ Represents rolling a die of size 'num_sides'. Returns random number from that size die """ return random.randint(1, num_sides) def xdy(num_dice, num_sides): """ represents rolling num_dice of size num_sides. Re...
22.798387
81
0.562434
1,898
0.671383
0
0
485
0.17156
0
0
604
0.213654
4604dc5f65cd5f7e83502d4f9fd70d81c2c12903
4,178
py
Python
cohesity_management_sdk/models/health_tile.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/health_tile.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/health_tile.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. import cohesity_management_sdk.models.alert class HealthTile(object): """Implementation of the 'HealthTile' model. Health for Dashboard. Attributes: capacity_bytes (long|int): Raw Cluster Capacity in Bytes. This is not usable ca...
38.330275
109
0.646003
4,074
0.975108
0
0
1,748
0.418382
0
0
1,964
0.470081
460510280808ce5edf4deb0f4ea853f4de886f05
4,149
py
Python
TextRank/textrank.py
nihanjali/PageRank
baea9d89fb962fd1311a61127123bf36d9d2dd38
[ "Apache-2.0" ]
null
null
null
TextRank/textrank.py
nihanjali/PageRank
baea9d89fb962fd1311a61127123bf36d9d2dd38
[ "Apache-2.0" ]
null
null
null
TextRank/textrank.py
nihanjali/PageRank
baea9d89fb962fd1311a61127123bf36d9d2dd38
[ "Apache-2.0" ]
null
null
null
import os import sys import copy import collections import nltk import nltk.tokenize sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) import pagerank ''' textrank.py ----------- This module implements TextRank, an unsupervised keyword significance scoring algorithm. TextRank builds a...
33.731707
97
0.644493
0
0
0
0
0
0
0
0
2,041
0.491926
4606c41942e35425a62e84ea16612cc308900a33
10,472
py
Python
tests/test_exploration.py
lionelkusch/neurolib
714eef48616af0ebdb62decc84826221472398f9
[ "MIT" ]
null
null
null
tests/test_exploration.py
lionelkusch/neurolib
714eef48616af0ebdb62decc84826221472398f9
[ "MIT" ]
null
null
null
tests/test_exploration.py
lionelkusch/neurolib
714eef48616af0ebdb62decc84826221472398f9
[ "MIT" ]
null
null
null
import logging import os import random import string import time import unittest import neurolib.utils.paths as paths import neurolib.utils.pypetUtils as pu import numpy as np import pytest import xarray as xr from neurolib.models.aln import ALNModel from neurolib.models.fhn import FHNModel from neurolib.models.multim...
36.110345
120
0.629297
9,621
0.918736
0
0
1,335
0.127483
0
0
1,748
0.166921
46077178da4bf46135d1fc5fee2cb11b113e0b42
3,568
py
Python
irc3/tags.py
belst/irc3
c89303cf5937a4dc7cf1eda8e662dc702b5e0ad9
[ "MIT" ]
null
null
null
irc3/tags.py
belst/irc3
c89303cf5937a4dc7cf1eda8e662dc702b5e0ad9
[ "MIT" ]
null
null
null
irc3/tags.py
belst/irc3
c89303cf5937a4dc7cf1eda8e662dc702b5e0ad9
[ "MIT" ]
1
2018-07-22T18:40:37.000Z
2018-07-22T18:40:37.000Z
# -*- coding: utf-8 -*- ''' Module offering 2 functions, encode() and decode(), to transcode between IRCv3.2 tags and python dictionaries. ''' import re import random import string _escapes = ( ("\\", "\\\\"), (";", r"\:"), (" ", r"\s"), ("\r", r"\r"), ("\n", r"\n"), ) # make the possibility of...
28.31746
79
0.580998
0
0
0
0
0
0
0
0
2,204
0.617713
4607ba171b6d586a01f576a069c7a776194711fd
2,646
py
Python
app/forms.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
null
null
null
app/forms.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
9
2020-09-26T01:09:35.000Z
2022-02-10T01:32:30.000Z
app/forms.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm # from .models import RegionModel # from .models import SERVICE_CHOICES, REGION_CHOICES from django.contrib.auth import authenticate # from django.contrib.auth.forms import UserCreationForm, UserChangeForm # from .models i...
46.421053
120
0.62585
858
0.324263
0
0
0
0
0
0
1,776
0.671202
46085291ee66b159174d6179bad5ab2c5199a92f
28,019
py
Python
src/fedavg_trainer.py
MrZhang1994/mobile-federated-learning
6e088a91266d889869af5a1eb0bad83ca635a4a5
[ "Apache-2.0" ]
null
null
null
src/fedavg_trainer.py
MrZhang1994/mobile-federated-learning
6e088a91266d889869af5a1eb0bad83ca635a4a5
[ "Apache-2.0" ]
null
null
null
src/fedavg_trainer.py
MrZhang1994/mobile-federated-learning
6e088a91266d889869af5a1eb0bad83ca635a4a5
[ "Apache-2.0" ]
1
2021-07-06T04:53:06.000Z
2021-07-06T04:53:06.000Z
# newly added libraries import copy import wandb import time import math import csv import shutil from tqdm import tqdm import torch import numpy as np import pandas as pd from client import Client from config import * import scheduler as sch class FedAvgTrainer(object): def __init__(self, dataset, model, device...
52.965974
206
0.5891
27,773
0.99122
0
0
0
0
0
0
5,361
0.191334
46087abee7bffbddb94f7edf7ace7481d6b4e5e7
15,539
py
Python
src/test.py
jfparentledartech/DEFT
6e7e98664cd635509bdff69533a24a7c4e4e3ea3
[ "MIT" ]
null
null
null
src/test.py
jfparentledartech/DEFT
6e7e98664cd635509bdff69533a24a7c4e4e3ea3
[ "MIT" ]
null
null
null
src/test.py
jfparentledartech/DEFT
6e7e98664cd635509bdff69533a24a7c4e4e3ea3
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import cv2 import matplotlib.pyplot as plt import numpy as np from progress.bar import Bar import torch import pickle import motmetrics as mm from lib.opts import opts from lib.logger im...
36.137209
140
0.533882
1,720
0.110689
0
0
0
0
0
0
2,383
0.153356
460899f19cdb6ea7310d1622b1d7bbb727078007
8,796
py
Python
compiler_gym/envs/gcc/datasets/csmith.py
AkillesAILimited/CompilerGym
34c0933ba26b385ebd2cd67f5d8edbb046c6bf02
[ "MIT" ]
null
null
null
compiler_gym/envs/gcc/datasets/csmith.py
AkillesAILimited/CompilerGym
34c0933ba26b385ebd2cd67f5d8edbb046c6bf02
[ "MIT" ]
null
null
null
compiler_gym/envs/gcc/datasets/csmith.py
AkillesAILimited/CompilerGym
34c0933ba26b385ebd2cd67f5d8edbb046c6bf02
[ "MIT" ]
1
2021-10-01T05:52:34.000Z
2021-10-01T05:52:34.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import shutil import subprocess import tempfile from pathlib import Path from threading import Lock from typing import Iterable,...
35.756098
98
0.620509
7,596
0.863574
0
0
1,112
0.126421
0
0
3,674
0.41769
46089e52d9f3438c0d2bdc953655d9f0dafbf49b
444
py
Python
dans_pymodules/power_of_two.py
DanielWinklehner/dans_pymodules
04dfdaeccc171712cad6eb24202608e2eda21eca
[ "MIT" ]
null
null
null
dans_pymodules/power_of_two.py
DanielWinklehner/dans_pymodules
04dfdaeccc171712cad6eb24202608e2eda21eca
[ "MIT" ]
null
null
null
dans_pymodules/power_of_two.py
DanielWinklehner/dans_pymodules
04dfdaeccc171712cad6eb24202608e2eda21eca
[ "MIT" ]
null
null
null
__author__ = "Daniel Winklehner" __doc__ = "Find out if a number is a power of two" def power_of_two(number): """ Function that checks if the input value (data) is a power of 2 (i.e. 2, 4, 8, 16, 32, ...) """ res = 0 while res == 0: res = number % 2 number /= 2.0 prin...
19.304348
66
0.529279
0
0
0
0
0
0
0
0
188
0.423423
460a17e5a2d4a382d4b56fd109a6fc2250ecd27e
535
py
Python
examples/index/context.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
examples/index/context.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
examples/index/context.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
from viewdom import html, render, use_context, Context expected = '<h1>My Todos</h1><ul><li>Item: first</li></ul>' # start-after title = 'My Todos' todos = ['first'] def Todo(label): prefix = use_context('prefix') return html('<li>{prefix}{label}</li>') def TodoList(todos): return html('<ul>{[Todo(lab...
20.576923
62
0.588785
0
0
0
0
0
0
0
0
313
0.585047