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
0f1744199f477069c02875d1067c890dfb7a1805
340
py
Python
src/main/python/grammer/Function.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
src/main/python/grammer/Function.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
src/main/python/grammer/Function.py
photowey/python-study
218456a0d661709a49fb060659664102b9287de8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # --------------------------------------------- # @file Function.py # @description Function # @author WcJun # @date 2020/06/20 # --------------------------------------------- # 求两个数 n 加到 m 的和 def add(n, m): s = 0 while n <= m: s += n n += 1 return s # 求和 add = add...
14.782609
47
0.364706
0
0
0
0
0
0
0
0
231
0.641667
0f18e0ca0c5499bebb322bcb92fe32db9bf17ba3
6,709
py
Python
Missions_to_Mars/scrape_mars.py
VallieTracy/web-scraping-challenge
7bb248b97d5ca126fbcd558ff1e89bd680bd18a9
[ "ADSL" ]
null
null
null
Missions_to_Mars/scrape_mars.py
VallieTracy/web-scraping-challenge
7bb248b97d5ca126fbcd558ff1e89bd680bd18a9
[ "ADSL" ]
null
null
null
Missions_to_Mars/scrape_mars.py
VallieTracy/web-scraping-challenge
7bb248b97d5ca126fbcd558ff1e89bd680bd18a9
[ "ADSL" ]
null
null
null
# Dependencies from bs4 import BeautifulSoup as bs import requests from splinter import Browser import time import pandas as pd import requests as req # Define browser path def init_browser(): executable_path = {"executable_path":r"C:/bin/chromedriver"} return Browser('chrome', **executable_path, headless=False)...
32.567961
100
0.693099
0
0
0
0
0
0
0
0
3,347
0.498882
0f1a15f7826e26b74a287b61edb934c290001cbf
1,144
py
Python
pydmtx/__init__.py
pydmtx/pydmtx
946c3920593dd865b756825667105655394b9cae
[ "MIT" ]
4
2021-05-03T15:26:32.000Z
2022-02-23T22:26:01.000Z
pydmtx/__init__.py
pydmtx/pydmtx
946c3920593dd865b756825667105655394b9cae
[ "MIT" ]
null
null
null
pydmtx/__init__.py
pydmtx/pydmtx
946c3920593dd865b756825667105655394b9cae
[ "MIT" ]
2
2021-11-11T20:30:51.000Z
2021-11-18T15:19:07.000Z
from pydmtx.symbol import Symbol from pydmtx.encode import encode as encode_encode from pydmtx.reedsolomon import encode as reedsolomon_encode from pydmtx.bitstream import bitstream from pydmtx.plugins.registry import plugin_manager from pydmtx.plugins import ExportPlugin DEFAULT_QUIET_ZONE = 2 DEFAULT_SYMBOL_SIZE = ...
28.6
83
0.756993
353
0.308566
0
0
0
0
0
0
15
0.013112
0f1a8a8fdf277ed1542030735b29d945045c82ec
40
py
Python
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/__init__.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
1
2021-04-01T06:38:48.000Z
2021-04-01T06:38:48.000Z
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/__init__.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/__init__.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
from nndct_shared.utils import registry
20
39
0.875
0
0
0
0
0
0
0
0
0
0
0f1b976e46c7f2ba93a9ecff9c247ef02d3200d7
774
py
Python
benchmark/python/tpch_base.py
alefranz/spark
f5f15379b2c080339a36423b0262f29d978fd362
[ "MIT" ]
1
2019-06-14T09:25:43.000Z
2019-06-14T09:25:43.000Z
benchmark/python/tpch_base.py
tianyaba/spark
f1c5b86d84bc91cb2d6f5aaf3d2a401de6fd4098
[ "MIT" ]
null
null
null
benchmark/python/tpch_base.py
tianyaba/spark
f1c5b86d84bc91cb2d6f5aaf3d2a401de6fd4098
[ "MIT" ]
null
null
null
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the MIT license. # See the LICENSE file in the project root for more information. import pyspark from pyspark.sql import SparkSession class TpchBase: def __init__(self, spark, dir): self.c...
43
70
0.683463
519
0.670543
0
0
0
0
0
0
267
0.344961
0f1ca8b43d824f2698d264b0e2c96a3fd9919b23
6,385
py
Python
get_data.py
savage13/botw_chart
1c5f895e1327b74768f1429cc5a2b1ce07377a53
[ "MIT" ]
null
null
null
get_data.py
savage13/botw_chart
1c5f895e1327b74768f1429cc5a2b1ce07377a53
[ "MIT" ]
null
null
null
get_data.py
savage13/botw_chart
1c5f895e1327b74768f1429cc5a2b1ce07377a53
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import json import time import subprocess cats = { "any": { "id": "vdoq4xvk", "output_file": "all.json", "output_file2": "all2.json", }, "100": { "id": "xk9jv4gd", "output_file": "100.json", "output_file2": "1002.json", }, 'amq': { "id": "n2yj3r82", "output_file": "amq.j...
33.429319
128
0.519969
0
0
0
0
0
0
0
0
1,770
0.277212
0f1d77811b98689b2cae0d686170946ae5f678f0
621
py
Python
server/schemas/kind_to_strain.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
server/schemas/kind_to_strain.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
2
2021-11-11T15:19:30.000Z
2022-02-07T22:52:07.000Z
server/schemas/kind_to_strain.py
Georgi2704/pricelist-fastapi
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from typing import Optional from uuid import UUID from server.schemas.base import BoilerplateBaseModel class KindToStrainBase(BoilerplateBaseModel): kind_id: UUID strain_id: UUID # Properties to receive via API on creation class KindToStrainCreate(KindToStrainBase): pass ...
18.818182
52
0.780998
344
0.553945
0
0
0
0
0
0
125
0.201288
0f1ecb2bfe2239fd22330150e77bde33035a5f02
2,215
py
Python
ras_realsense/realsense_camera/test/files/scripts/check_camera_service_power_set_off_and_on_with_no_subscriber.py
RAS-2018-grp-4/ras_miscellaneous-
12b769086148b724c17b3ba9f15216bdfd5025d5
[ "MIT" ]
3
2020-02-17T12:56:22.000Z
2020-09-30T11:17:03.000Z
ras_realsense/realsense_camera/test/files/scripts/check_camera_service_power_set_off_and_on_with_no_subscriber.py
RAS-2018-grp-4/ras_miscellaneous-
12b769086148b724c17b3ba9f15216bdfd5025d5
[ "MIT" ]
2
2020-02-17T15:17:43.000Z
2021-05-11T21:01:26.000Z
ras_realsense/realsense_camera/test/files/scripts/check_camera_service_power_set_off_and_on_with_no_subscriber.py
RAS-2018-grp-4/ras_miscellaneous-
12b769086148b724c17b3ba9f15216bdfd5025d5
[ "MIT" ]
8
2020-02-17T12:55:59.000Z
2021-07-22T12:24:15.000Z
#!/usr/bin/env python """ @file check_camera_service_power_set_off_and_on_with_no_subscriber.py """ import os import sys import unittest import time import subprocess import commands import rospy import rostest from rs_general.rs_general import get_camera_params_and_values, \ is_log_contains_keyword, LOGFILE PKG ...
37.542373
101
0.71377
1,479
0.66772
0
0
0
0
0
0
936
0.422573
0f1ecb304df6b9ed35e437846e4e6724371a2aac
1,141
py
Python
gardenpi/utils.py
argodev/gardenpi
452d23a37b1778d5ecf3df654460b1e939e44cd9
[ "MIT" ]
null
null
null
gardenpi/utils.py
argodev/gardenpi
452d23a37b1778d5ecf3df654460b1e939e44cd9
[ "MIT" ]
null
null
null
gardenpi/utils.py
argodev/gardenpi
452d23a37b1778d5ecf3df654460b1e939e44cd9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- import logging import configparser def load_config(config_file='settings.ini'): """ Loads configuration file from disk """ logging.info("Loading Configuration Information") config = configparser.ConfigParser() config.read(config_file) return confi...
21.942308
74
0.611744
0
0
0
0
0
0
0
0
474
0.415425
0f1f297616083eef96595fea2dbc2238ebb6b129
27,206
py
Python
coherence/upnp/core/device.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
60
2018-09-14T18:57:38.000Z
2022-02-19T18:16:24.000Z
coherence/upnp/core/device.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
37
2018-09-04T08:51:11.000Z
2022-02-21T01:36:21.000Z
coherence/upnp/core/device.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
16
2019-02-19T18:34:58.000Z
2022-02-05T15:36:33.000Z
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright (C) 2006 Fluendo, S.A. (www.fluendo.com). # Copyright 2006, Frank Scholz <coherence@beebits.net> # Copyright 2018, Pol Canelles <canellestudi@gmail.com> ''' Devices ======= This module contains two classes describing UPnP d...
33.057108
101
0.532309
26,407
0.970631
0
0
0
0
0
0
8,311
0.305484
0f1f722d095e171acc248a140ec608fb9b0bb1d0
1,063
py
Python
imdb_dataloader.py
garyCC227/cs9444
078d88ea0cb15f511d74c59effd12e361f1aed4e
[ "MIT" ]
null
null
null
imdb_dataloader.py
garyCC227/cs9444
078d88ea0cb15f511d74c59effd12e361f1aed4e
[ "MIT" ]
null
null
null
imdb_dataloader.py
garyCC227/cs9444
078d88ea0cb15f511d74c59effd12e361f1aed4e
[ "MIT" ]
null
null
null
""" DO NOT MODIFY Dataloder for parts 2 and 3 We will also call this file when loading test data """ import os import glob import io from torchtext import data class IMDB(data.Dataset): name = 'imdb' dirname = 'aclImdb' def __init__(self, path, text_field, label_field, **kwargs): fields = [('text...
30.371429
77
0.613358
899
0.84572
0
0
316
0.297272
0
0
161
0.151458
0f1fdc9583dd36bad5225aaff9eca13e2d53bb4b
825
py
Python
nfl/migrations/0007_player_position.py
rwflick/djangoXNFLDemo
825072b25b9b33eba9687d7ec358d59c7706a16f
[ "MIT" ]
1
2020-09-14T16:43:33.000Z
2020-09-14T16:43:33.000Z
nfl/migrations/0007_player_position.py
rwflick/djangoXNFLDemo
825072b25b9b33eba9687d7ec358d59c7706a16f
[ "MIT" ]
null
null
null
nfl/migrations/0007_player_position.py
rwflick/djangoXNFLDemo
825072b25b9b33eba9687d7ec358d59c7706a16f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-09-13 19:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nfl', '0006_player'), ] operations = [ migrations.AddField( model_name='player', name='position', field=...
43.421053
505
0.56
732
0.887273
0
0
0
0
0
0
403
0.488485
0f21ea6cca6377a0bd8bcf855a84161050071410
5,954
py
Python
src/commercetools/services/shopping_lists.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/shopping_lists.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/shopping_lists.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
# DO NOT EDIT! This file is automatically generated import typing from commercetools._schemas._shopping_list import ( ShoppingListDraftSchema, ShoppingListPagedQueryResponseSchema, ShoppingListSchema, ShoppingListUpdateSchema, ) from commercetools.helpers import RemoveEmptyValuesMixin from commercetool...
31.172775
86
0.615721
5,376
0.902922
0
0
0
0
0
0
672
0.112865
0f23e92f67f8a8aa91e1f9b314ed49fa3fdd3f82
3,591
py
Python
ui/tools.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
33
2017-03-12T16:26:45.000Z
2021-04-30T05:37:35.000Z
ui/tools.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
6
2017-04-21T08:44:47.000Z
2018-11-11T16:20:22.000Z
ui/tools.py
liyao001/BioQueue
2b2c9f023b988fd926a037eb4755f639632b2991
[ "Apache-2.0" ]
13
2017-03-12T16:26:56.000Z
2020-04-20T05:35:00.000Z
from django.http import JsonResponse, StreamingHttpResponse from worker.bases import get_config, rand_sig, get_user_folder_size from django.core.paginator import EmptyPage, PageNotAnInteger import os def build_json_protocol(protocol): import json """ response = StreamingHttpResponse(json.dumps(protocol)) ...
27.623077
112
0.656085
0
0
0
0
0
0
0
0
596
0.16597
0f255e895daccb92929c3b545a2a06d8d36e7091
18,246
py
Python
data/data-pipeline/data_pipeline/etl/sources/census_decennial/etl.py
usds/justice40-tool
87e08f5fe1d36b50b176a102c050343cfca199ba
[ "CC0-1.0" ]
59
2021-05-10T21:43:36.000Z
2022-03-30T17:57:17.000Z
data/data-pipeline/data_pipeline/etl/sources/census_decennial/etl.py
usds/justice40-tool
87e08f5fe1d36b50b176a102c050343cfca199ba
[ "CC0-1.0" ]
1,259
2021-05-10T18:21:26.000Z
2022-03-31T21:35:49.000Z
data/data-pipeline/data_pipeline/etl/sources/census_decennial/etl.py
usds/justice40-tool
87e08f5fe1d36b50b176a102c050343cfca199ba
[ "CC0-1.0" ]
24
2021-05-15T00:58:39.000Z
2022-03-24T23:18:17.000Z
import json import requests import numpy as np import pandas as pd from data_pipeline.etl.base import ExtractTransformLoad from data_pipeline.utils import get_module_logger from data_pipeline.score import field_names pd.options.mode.chained_assignment = "raise" logger = get_module_logger(__name__) class CensusDec...
44.179177
138
0.652527
17,940
0.983229
0
0
0
0
0
0
4,258
0.233366
0f2612b9ae0c0dbd7fdceda1e64ee15cf69d3dbf
1,046
py
Python
xml_tree.py
rcflorestal/scientificComputerPython
741c605ae987209a7f7d0751879a91940b1a5140
[ "MIT" ]
null
null
null
xml_tree.py
rcflorestal/scientificComputerPython
741c605ae987209a7f7d0751879a91940b1a5140
[ "MIT" ]
null
null
null
xml_tree.py
rcflorestal/scientificComputerPython
741c605ae987209a7f7d0751879a91940b1a5140
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET # data = ''' # <person> # <name>Chuck</name> # <phone type="intl"> # +1 734 303 4456 # </phone> # <email hide="yes"/> # </person> # ''' data = ''' <person> <!-- Start tag --> <name>Chuck</name> <phone type="intl"...
24.904762
73
0.526769
0
0
0
0
0
0
0
0
672
0.642447
0f272c8d3fadc457e5a1a40afe6d595d75f8d4e9
2,000
py
Python
bin/gftools-find-features.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
1
2019-01-29T20:47:44.000Z
2019-01-29T20:47:44.000Z
bin/gftools-find-features.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
1
2021-06-25T15:32:21.000Z
2021-06-25T15:32:21.000Z
bin/gftools-find-features.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
27.777778
79
0.6775
0
0
0
0
0
0
0
0
1,031
0.5155
0f27eca1b82dcb372dfbca87d3b80c02b19e0650
2,739
py
Python
sockeye/postprocess.py
hec44/DCGCN
a6e9c610d847295829a67337536769d678419ec2
[ "MIT" ]
75
2019-03-12T04:29:40.000Z
2022-03-19T14:04:04.000Z
sockeye/postprocess.py
hec44/DCGCN
a6e9c610d847295829a67337536769d678419ec2
[ "MIT" ]
2
2019-08-23T03:51:17.000Z
2019-10-10T14:16:37.000Z
sockeye/postprocess.py
hec44/DCGCN
a6e9c610d847295829a67337536769d678419ec2
[ "MIT" ]
8
2019-08-22T07:35:30.000Z
2022-03-01T03:53:11.000Z
import sys map_file = sys.argv[1] raw_test_file = sys.argv[2] output_file = sys.argv[3] date_set = ('year_0_number', 'year_1_number', 'year_2_number', 'year_3_number', 'month_0_number', 'month_0_name', 'month_1_name', 'day_0_number', 'day_1_number') def replace_date(tok): if tok == 'year_0_number': tok...
29.138298
161
0.513326
0
0
0
0
0
0
0
0
451
0.164659
0f28bd836ea19980a01d0e09e41aaa7563cec959
3,134
py
Python
samples/100_nodes.py
Kuree/pyns
c627d11bbc79b86f868371282165b41652040e57
[ "MIT" ]
null
null
null
samples/100_nodes.py
Kuree/pyns
c627d11bbc79b86f868371282165b41652040e57
[ "MIT" ]
null
null
null
samples/100_nodes.py
Kuree/pyns
c627d11bbc79b86f868371282165b41652040e57
[ "MIT" ]
null
null
null
from pyns.protocols import create_basestation, create_node, ProtocolType from pyns.engine import Simulator, SimArg, TraceFormatter, TransmissionMedium from pyns.phy import PHYLayer import logging import numpy import sys import random import os import json class ConstantSimulator(Simulator): def __init__(self, tot...
32.309278
97
0.62508
1,850
0.5903
1,540
0.491385
0
0
0
0
249
0.079451
0f297395918547fd04d388da57afb6142bad95dd
414
py
Python
06_Banner/python/test_banner.py
MartinThoma/basic-computer-games
bcd59488ff57bf7e52e152c6fc5fa964c76d0694
[ "Unlicense" ]
1
2022-03-24T17:56:31.000Z
2022-03-24T17:56:31.000Z
06_Banner/python/test_banner.py
MartinThoma/basic-computer-games
bcd59488ff57bf7e52e152c6fc5fa964c76d0694
[ "Unlicense" ]
null
null
null
06_Banner/python/test_banner.py
MartinThoma/basic-computer-games
bcd59488ff57bf7e52e152c6fc5fa964c76d0694
[ "Unlicense" ]
null
null
null
import io from banner import print_banner def test_print_banner(monkeypatch) -> None: horizontal = "1" vertical = "1" centered = "1" char = "*" statement = "O" # only capital letters set_page = "2" monkeypatch.setattr( "sys.stdin", io.StringIO( f"{horizontal}\...
20.7
84
0.584541
0
0
0
0
0
0
0
0
123
0.297101
0f2b5ba04147b3afbb2b735357905e7eac75bc23
3,296
py
Python
yt_handle.py
luceatnobis/yt_handle
f67ddf0f6d312b0af0eda18834a4fe06e8a3002d
[ "Apache-2.0" ]
null
null
null
yt_handle.py
luceatnobis/yt_handle
f67ddf0f6d312b0af0eda18834a4fe06e8a3002d
[ "Apache-2.0" ]
null
null
null
yt_handle.py
luceatnobis/yt_handle
f67ddf0f6d312b0af0eda18834a4fe06e8a3002d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import os import sys import shutil import httplib2 import oauth2client try: import apiclient as googleapiclient except ImportError: import googleapiclient from oauth2client.file import Storage, Credentials from oauth2client.client import flow_from...
29.693694
77
0.698726
0
0
0
0
0
0
0
0
497
0.150789
0f2b82918b30990906c8cf384315c56b06dde564
80
py
Python
release/stubs.min/Tekla/Structures/ModelInternal_parts/AreWeUnitTesting.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/AreWeUnitTesting.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/AreWeUnitTesting.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class AreWeUnitTesting(object): # no doc Value = False __all__ = []
16
31
0.6125
79
0.9875
0
0
0
0
0
0
8
0.1
0f2bfcc1f4edd32f202d82cac639a588dbfdc47f
1,001
py
Python
1108.defanging-an-ip-address.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1108.defanging-an-ip-address.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1108.defanging-an-ip-address.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=1108 lang=python # # [1108] Defanging an IP Address # # https://leetcode.com/problems/defanging-an-ip-address/description/ # # algorithms # Easy (85.21%) # Likes: 66 # Dislikes: 256 # Total Accepted: 36.7K # Total Submissions: 43.1K # Testcase Example: '"1.1.1.1"' # # Given...
19.25
71
0.558442
308
0.307079
0
0
0
0
0
0
728
0.725823
0f2caf81081a11f464cc6de29247f66e01a2f10e
2,324
py
Python
Plumet/scoring.py
mehmeterenballi/Plumet
2f81cd8cb7f50432ff0b4d46c43aa8ebc5e91a2c
[ "MIT" ]
null
null
null
Plumet/scoring.py
mehmeterenballi/Plumet
2f81cd8cb7f50432ff0b4d46c43aa8ebc5e91a2c
[ "MIT" ]
null
null
null
Plumet/scoring.py
mehmeterenballi/Plumet
2f81cd8cb7f50432ff0b4d46c43aa8ebc5e91a2c
[ "MIT" ]
null
null
null
import pygame as pg def score_blitting(win, score): screen_width, screen_height = 288, 512 score_image = [pg.image.load('%d.png' % decimal) for decimal in range(0, 10)] if 10 > score >= 0: win.blit(score_image[score], (screen_width / 2, 0)) elif 100 > score >= 10: units_digi...
52.818182
111
0.603701
0
0
0
0
0
0
0
0
24
0.010327
0f2cb2735a3c9b7ea7019b251686b0875798e3d0
64
py
Python
flattenator/__init__.py
lsst-sqre/flattenator
297c92a1b075653ca37c200c0ddc8d46d1b64975
[ "MIT" ]
null
null
null
flattenator/__init__.py
lsst-sqre/flattenator
297c92a1b075653ca37c200c0ddc8d46d1b64975
[ "MIT" ]
null
null
null
flattenator/__init__.py
lsst-sqre/flattenator
297c92a1b075653ca37c200c0ddc8d46d1b64975
[ "MIT" ]
null
null
null
from .flattenator import Flattenator __all__ = ["Flattenator"]
16
36
0.78125
0
0
0
0
0
0
0
0
13
0.203125
0f2faddde2571ad100ca7bd92dfedb14e2aab42d
375
py
Python
examples/bbox.py
mzaglia/stac.py
39314add494b5ab1bf11c44dcb69eba4614144db
[ "MIT" ]
null
null
null
examples/bbox.py
mzaglia/stac.py
39314add494b5ab1bf11c44dcb69eba4614144db
[ "MIT" ]
null
null
null
examples/bbox.py
mzaglia/stac.py
39314add494b5ab1bf11c44dcb69eba4614144db
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 #%% import stac #%% s = stac.STAC('http://brazildatacube.dpi.inpe.br/bdc-stac/0.8.1/', True) #%% s.catalog #%% collection = s.collection('C4_64_16D_MED') collection #%% items = collection.get_items(filter={'bbox':'-56.86523437500001,-15.919073517982413,-53.17382812500001,-13.90...
19.736842
157
0.698667
0
0
0
0
0
0
0
0
231
0.616
0f2fe1eebe8b38c8882944a23ef192e5649f7714
1,482
py
Python
cliboa/common/environment.py
chiru1221/cliboa
0aad84f237b7c0d8a5ae0cbd27b9d70f97acbee1
[ "MIT" ]
27
2019-11-11T11:09:47.000Z
2022-03-01T14:27:59.000Z
cliboa/common/environment.py
chiru1221/cliboa
0aad84f237b7c0d8a5ae0cbd27b9d70f97acbee1
[ "MIT" ]
228
2019-11-11T11:04:26.000Z
2022-03-29T02:16:05.000Z
cliboa/common/environment.py
chiru1221/cliboa
0aad84f237b7c0d8a5ae0cbd27b9d70f97acbee1
[ "MIT" ]
11
2019-11-12T03:15:52.000Z
2022-01-11T05:46:02.000Z
# # Copyright 2019 BrainPad Inc. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
35.285714
79
0.789474
0
0
0
0
0
0
0
0
1,148
0.774629
0f2feac9a2affe9de90859ee84f6a37f704d944b
58
py
Python
tests/constants.py
hairygeek/yt_lib
3de4ba980cd26312e9211930d4424267803fc6df
[ "MIT" ]
4
2019-08-12T12:40:48.000Z
2020-04-20T20:00:03.000Z
tests/constants.py
hairygeek/yt_lib
3de4ba980cd26312e9211930d4424267803fc6df
[ "MIT" ]
null
null
null
tests/constants.py
hairygeek/yt_lib
3de4ba980cd26312e9211930d4424267803fc6df
[ "MIT" ]
null
null
null
CJ_PATH = r'' COOKIES_PATH = r'' CHAN_ID = '' VID_ID = ''
11.6
18
0.586207
0
0
0
0
0
0
0
0
10
0.172414
0f30ef54d1462b0e500b903576cbf4ddc4cd102a
5,614
py
Python
self_driving_ai/training.py
kforti/self-driving-ai
50b3793c16d65ab0d9e0b3a87bd98a0e08587239
[ "MIT" ]
null
null
null
self_driving_ai/training.py
kforti/self-driving-ai
50b3793c16d65ab0d9e0b3a87bd98a0e08587239
[ "MIT" ]
null
null
null
self_driving_ai/training.py
kforti/self-driving-ai
50b3793c16d65ab0d9e0b3a87bd98a0e08587239
[ "MIT" ]
null
null
null
import copy import os import time from collections import OrderedDict from sklearn.model_selection import train_test_split from torchvision import models import torch from torch.utils.tensorboard import SummaryWriter import pandas as pd from skimage.io import imread from self_driving_ai.utils import * """ Credit: h...
32.264368
150
0.573388
1,416
0.252227
0
0
0
0
0
0
1,063
0.189348
0f332ca51a17140c793e8775330bba139c2fa976
9,602
py
Python
py/lvmutil/test/test_census.py
sdss/lvmutil
1938f6e1d7f4074a90a55570a316886850c5c6af
[ "BSD-3-Clause" ]
null
null
null
py/lvmutil/test/test_census.py
sdss/lvmutil
1938f6e1d7f4074a90a55570a316886850c5c6af
[ "BSD-3-Clause" ]
null
null
null
py/lvmutil/test/test_census.py
sdss/lvmutil
1938f6e1d7f4074a90a55570a316886850c5c6af
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """Test lvmutil.census. """ from __future__ import (absolute_import, division, print_function, unicode_literals) # The line above will help with 2to3 support. import unittest has_mock = True try: from un...
40.686441
135
0.562175
8,890
0.925849
0
0
6,150
0.640492
0
0
2,272
0.236617
0f33e5b8c215544f5bd67330d63bc69f98ee16b3
1,182
py
Python
catatom2osm/csvtools.py
OSM-es/CatAtom2Osm
89394161b07c5dd7cd2843bce8f911b93796b33a
[ "BSD-2-Clause" ]
8
2018-01-30T18:26:29.000Z
2022-02-03T19:16:54.000Z
catatom2osm/csvtools.py
OSM-es/CatAtom2Osm
89394161b07c5dd7cd2843bce8f911b93796b33a
[ "BSD-2-Clause" ]
99
2018-01-22T08:37:53.000Z
2022-03-28T13:50:06.000Z
catatom2osm/csvtools.py
OSM-es/CatAtom2Osm
89394161b07c5dd7cd2843bce8f911b93796b33a
[ "BSD-2-Clause" ]
9
2018-01-21T15:51:41.000Z
2022-01-04T18:35:19.000Z
# -*- coding: utf-8 -*- """ CSV related help functions """ from __future__ import unicode_literals oldstr = str from builtins import str import csv import io import six from catatom2osm.config import eol, encoding, delimiter def dict2csv(csv_path, a_dict, sort=None): """ Writes a dictionary to a csv file, op...
30.307692
80
0.609137
0
0
0
0
0
0
0
0
249
0.21066
0f3599212f84331de9e9f8ea42c3d1bb4ebb50e9
1,881
py
Python
mpesaviz/apps/transactions/models.py
savioabuga/mpesaviz
2567ab5646f8f684c32b0644f5b06d3cc58c62bc
[ "BSD-3-Clause" ]
2
2015-07-07T09:30:27.000Z
2017-01-31T20:26:45.000Z
mpesaviz/apps/transactions/models.py
savioabuga/mpesaviz
2567ab5646f8f684c32b0644f5b06d3cc58c62bc
[ "BSD-3-Clause" ]
null
null
null
mpesaviz/apps/transactions/models.py
savioabuga/mpesaviz
2567ab5646f8f684c32b0644f5b06d3cc58c62bc
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from model_utils import Choices from model_utils.models import TimeStampedModel from phonenumber_field.modelfields import PhoneNumberField from django_pandas.io import read_frame class Transaction(TimeStampedModel): TYPES = Choices(('sent', 'Sent Transactions'), ('received', 'Received...
47.025
141
0.714514
1,665
0.885167
0
0
0
0
0
0
325
0.17278
0f38c2d9ebe98c43fd9dab61490261ca69679e03
4,268
py
Python
ros_bt_py/test/rostest/test_topic_publish_leaf.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
4
2022-03-11T14:30:43.000Z
2022-03-31T07:21:35.000Z
ros_bt_py/test/rostest/test_topic_publish_leaf.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ros_bt_py/test/rostest/test_topic_publish_leaf.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -------- BEGIN LICENSE BLOCK -------- # Copyright 2022 FZI Forschungszentrum Informatik # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the ab...
38.45045
85
0.702905
2,020
0.47329
0
0
0
0
0
0
2,361
0.553187
0f39a392c46b7861f4edc27f2f6de39934c00cb4
1,236
py
Python
workbench/awt/migrations/0012_auto_20201012_1433.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
15
2020-09-02T22:17:34.000Z
2022-02-01T20:09:10.000Z
workbench/awt/migrations/0012_auto_20201012_1433.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
18
2020-01-08T15:28:26.000Z
2022-02-28T02:46:41.000Z
workbench/awt/migrations/0012_auto_20201012_1433.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
8
2020-09-29T08:00:24.000Z
2022-01-16T11:58:19.000Z
# Generated by Django 3.1.2 on 2020-10-12 12:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("awt", "0011_absence_ends_on"), ] operations = [ migrations.AddField( model_name="absence", name="is_working_time", ...
26.869565
84
0.514563
1,143
0.924757
0
0
0
0
0
0
492
0.398058
0f3b23a2fcba20e9abd0c4b58ad9673908703395
7,665
py
Python
tfsnippet/examples/auto_encoders/vae.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
null
null
null
tfsnippet/examples/auto_encoders/vae.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
null
null
null
tfsnippet/examples/auto_encoders/vae.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import functools import click import tensorflow as tf from tensorflow.contrib.framework import arg_scope, add_arg_scope from tfsnippet.bayes import BayesianNet from tfsnippet.distributions import Normal, Bernoulli from tfsnippet.examples.datasets import load_mnist, bernoulli_flow from tfsnippe...
36.5
80
0.616438
401
0.052316
0
0
6,181
0.806393
0
0
854
0.111416
0f3b396237e70d3630a363876379a8df6d433857
7,582
py
Python
HW2/Q3/Q3.py
markblitz/RU_573_HW
b6b9799b1af2f1d5e65362e7fb841cd30bbc951f
[ "MIT" ]
null
null
null
HW2/Q3/Q3.py
markblitz/RU_573_HW
b6b9799b1af2f1d5e65362e7fb841cd30bbc951f
[ "MIT" ]
null
null
null
HW2/Q3/Q3.py
markblitz/RU_573_HW
b6b9799b1af2f1d5e65362e7fb841cd30bbc951f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import time import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter import copy # In[22]: # helps from: https://www.geeksforgeeks.org/merge-sort/ def RecursiveMergeSort(input_array, is_first = True): time_start = time.time(...
30.087302
198
0.643366
0
0
0
0
0
0
0
0
1,805
0.238064
0f3b73e98465b8b1b4c9ad2d85ba8b9865ebbc38
653
py
Python
pybwap/__init__.py
NQysit/pybwap
f95af52ed756f0a18eb32cd2b3917f7f66848a9d
[ "MIT" ]
null
null
null
pybwap/__init__.py
NQysit/pybwap
f95af52ed756f0a18eb32cd2b3917f7f66848a9d
[ "MIT" ]
null
null
null
pybwap/__init__.py
NQysit/pybwap
f95af52ed756f0a18eb32cd2b3917f7f66848a9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from flask import Flask, render_template, send_from_directory app = Flask(__name__) app.config.from_object('config.DevelopmentConfig') from .main import main_blueprint app.register_blueprint(main_blueprint) from .ch_0x00 import ch_0x00_blueprint app.register_blueprint(ch_0x00_bl...
23.321429
86
0.767228
0
0
0
0
237
0.36294
0
0
125
0.191424
0f3c60ee8b70b4ccd75b5a518e5ea43030d24c12
2,757
py
Python
Main.py
zy-zhou/MLCS
478c95efb63d6c285a22c469fa7773e8f801052a
[ "Apache-2.0" ]
null
null
null
Main.py
zy-zhou/MLCS
478c95efb63d6c285a22c469fa7773e8f801052a
[ "Apache-2.0" ]
null
null
null
Main.py
zy-zhou/MLCS
478c95efb63d6c285a22c469fa7773e8f801052a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 8 19:47:52 2019 @author: Zhou """ import torch from Utils import load from Data import load_data from Modules import BasicDecoder, RNNEncoder from Models import Model, MetaTranslator from Train import MetaTrainer import warnings warnings.filterwarnings("igno...
42.415385
110
0.590497
0
0
0
0
0
0
0
0
561
0.203482
0f3c685bf3c706b184f1be524f6612e1e97c2875
1,704
py
Python
designate/backend/impl_infoblox/record_factory.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
designate/backend/impl_infoblox/record_factory.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
designate/backend/impl_infoblox/record_factory.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Infoblox # # 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, so...
39.627907
75
0.7277
710
0.416667
0
0
677
0.3973
0
0
607
0.356221
0f3cbdf274389ec4a32274a5efe6d186c978a7c6
4,403
py
Python
infer.py
AnnLIU15/SegCovid
e8a1ccadfbe56ddc7f1adf33225f77836436fa85
[ "MIT" ]
null
null
null
infer.py
AnnLIU15/SegCovid
e8a1ccadfbe56ddc7f1adf33225f77836436fa85
[ "MIT" ]
null
null
null
infer.py
AnnLIU15/SegCovid
e8a1ccadfbe56ddc7f1adf33225f77836436fa85
[ "MIT" ]
null
null
null
import os import time import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from tqdm import tqdm from datasets.inferDataSet import infer_DataSet from models.model import U2NET from segConfig import getConfig def infer(model, test_loader, devic...
38.286957
105
0.578015
0
0
0
0
0
0
0
0
713
0.159615
0f3d7d67b5dc23a19bea382775a9d2a046dac5d0
11,458
py
Python
spgateway/helpers.py
cjltsod/django-spgateway
ba7a85394473254942417889f0a9f9fad0d43e3f
[ "MIT" ]
2
2018-03-13T06:50:25.000Z
2021-12-21T11:33:11.000Z
spgateway/helpers.py
cjltsod/django-spgateway
ba7a85394473254942417889f0a9f9fad0d43e3f
[ "MIT" ]
4
2018-03-13T08:38:45.000Z
2018-08-11T19:54:45.000Z
spgateway/helpers.py
cjltsod/django-spgateway
ba7a85394473254942417889f0a9f9fad0d43e3f
[ "MIT" ]
1
2020-01-07T23:21:52.000Z
2020-01-07T23:21:52.000Z
import logging class Warnings(object): def __init__(self, logger=None): self.warnings = list() self.logger = logger or logging def warning(self, message): self.warnings.append(message) self.logger.warning(message) def __bool__(self): if self.warnings: ...
37.322476
126
0.566242
353
0.027087
0
0
0
0
0
0
4,793
0.367787
0f42949be84c6e30aca5f319502468abb01b7512
849
py
Python
crescent/resources/s3/bucket/transition.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
1
2020-03-26T19:20:03.000Z
2020-03-26T19:20:03.000Z
crescent/resources/s3/bucket/transition.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
crescent/resources/s3/bucket/transition.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
from crescent.core import Model from crescent.functions import AnyFn from .constants import AllowedValues, ModelRequiredProperties from typing import Union class Transition(Model): def __init__(self): super(Transition, self).__init__( allowed_values={self.StorageClass.__name__: AllowedValues.T...
38.590909
85
0.759717
690
0.812721
0
0
0
0
0
0
0
0
0f42eaeb31887e9ae1caee055573b220ada36e35
1,347
py
Python
shop/migrations/0002_add_example_data.py
Chaiok/-django_ne_copipast_shop_master2
67abde1191f15bbf366b8666f0a1c17f7c4e0c9f
[ "MIT" ]
1
2022-02-05T17:28:54.000Z
2022-02-05T17:28:54.000Z
shop/migrations/0002_add_example_data.py
Chaiok/-django_ne_copipast_shop_master2
67abde1191f15bbf366b8666f0a1c17f7c4e0c9f
[ "MIT" ]
null
null
null
shop/migrations/0002_add_example_data.py
Chaiok/-django_ne_copipast_shop_master2
67abde1191f15bbf366b8666f0a1c17f7c4e0c9f
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-13 17:54 from django.db import migrations _CAR_GOODS = 'Автотовары' _APPLIANCES = 'Бытовая техника' def _create_categories(apps, schema_editor) -> None: """Создает две категории""" # noinspection PyPep8Naming Category = apps.get_model('shop', 'Category') Catego...
24.944444
56
0.6585
383
0.26802
0
0
0
0
0
0
383
0.26802
0f431252562898282c2c89c51ee2ef686e116a5d
17,992
py
Python
modules/account.py
keyvantaj/Quantitative
77c7c414c47ed3fe22873b87ed15e92dc62226da
[ "MIT" ]
9
2020-10-11T21:09:41.000Z
2022-02-17T01:52:04.000Z
modules/account.py
ajmal017/Quantitative
7af681677031987c64f402d8cb06b358cedd184a
[ "MIT" ]
null
null
null
modules/account.py
ajmal017/Quantitative
7af681677031987c64f402d8cb06b358cedd184a
[ "MIT" ]
3
2020-07-18T02:19:08.000Z
2022-01-30T15:37:02.000Z
from ibapi.client import EClient from ibapi.wrapper import EWrapper from ibapi.contract import Contract from ibapi.order import Order from ibapi.scanner import ScannerSubscription from ibapi.ticktype import TickTypeEnum from ibapi.common import * from ibapi.tag_value import TagValue from ibapi.execution import Executio...
35.769384
116
0.508337
17,442
0.969431
0
0
0
0
0
0
1,922
0.106825
0f4337c77c2dd91a0006d123d0ff0ba1d1d0ff4b
3,767
py
Python
senior/StavleLLVE/train.py
LeiGitHub1024/lowlight
86649ae4275b8908d39561792a8068d391318f8d
[ "MIT" ]
79
2021-03-27T04:22:12.000Z
2022-03-30T03:15:04.000Z
senior/StavleLLVE/train.py
LeiGitHub1024/lowlight
86649ae4275b8908d39561792a8068d391318f8d
[ "MIT" ]
3
2021-03-30T09:31:32.000Z
2021-09-02T02:02:33.000Z
senior/StavleLLVE/train.py
LeiGitHub1024/lowlight
86649ae4275b8908d39561792a8068d391318f8d
[ "MIT" ]
16
2021-04-09T05:38:32.000Z
2022-03-23T13:33:50.000Z
import argparse import os, socket from datetime import datetime import shutil import numpy as np import torch import torch.nn as nn from torch import optim from model import UNet from warp import WarpingLayerBWFlow from torch.utils.tensorboard import SummaryWriter from dataloader import llenDataset from torch.utils....
33.633929
130
0.674542
0
0
0
0
0
0
0
0
704
0.186886
0f4590671b6b3912fdd3111d3e454e140576dfa5
190
py
Python
dask_image/__init__.py
akhalighi/dask-image
8ff0f16dba8a874c7d8d3adf4e5e8bac5f4ee1bf
[ "BSD-3-Clause" ]
2
2020-06-05T07:17:57.000Z
2020-06-05T09:10:16.000Z
dask_image/__init__.py
akhalighi/dask-image
8ff0f16dba8a874c7d8d3adf4e5e8bac5f4ee1bf
[ "BSD-3-Clause" ]
15
2016-11-01T12:54:03.000Z
2019-02-28T18:16:48.000Z
mplview/__init__.py
jakirkham/mplview
0847e4ccf3c4247cb72f35600b7f5f553b429c2d
[ "BSD-3-Clause" ]
1
2016-11-17T06:09:16.000Z
2016-11-17T06:09:16.000Z
# -*- coding: utf-8 -*- __author__ = """John Kirkham""" __email__ = "kirkhamj@janelia.hhmi.org" from ._version import get_versions __version__ = get_versions()['version'] del get_versions
21.111111
39
0.721053
0
0
0
0
0
0
0
0
77
0.405263
0f46ab87cf6a22e3811c59d7f17625bcf1eea00d
10,999
py
Python
OPTICS2.py
k-kapp/Clustering-Algos
0e8925b854f70eabc926de331cbd3478de6cf90c
[ "Apache-2.0" ]
null
null
null
OPTICS2.py
k-kapp/Clustering-Algos
0e8925b854f70eabc926de331cbd3478de6cf90c
[ "Apache-2.0" ]
null
null
null
OPTICS2.py
k-kapp/Clustering-Algos
0e8925b854f70eabc926de331cbd3478de6cf90c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 30 21:25:24 2015 @author: Konrad """ import copy import numpy as np import matplotlib.pyplot as plt import scipy.special as sc_p def gen_clusters(means, num_each): tup = (); for m in means: tup = tup + (np.random.multivariate_normal(m, np....
35.028662
103
0.489408
9,890
0.899173
0
0
0
0
0
0
329
0.029912
0f4747bfbaa5296131febb1ca35e289b15c1fa5d
921
py
Python
pandayoda/test/test_interaction.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
null
null
null
pandayoda/test/test_interaction.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
22
2018-07-26T15:54:36.000Z
2019-05-27T09:28:48.000Z
pandayoda/test/test_interaction.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
3
2018-05-21T13:12:10.000Z
2019-04-02T08:41:57.000Z
# 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 # # Authors: # - Taylor Childers (john.taylor.childers@cern.ch) # - Paul Nilsson (paul.nilsson@cern....
30.7
66
0.67861
0
0
0
0
0
0
0
0
370
0.401737
0f47798905b7c3b31ed013305b5da89834823c20
3,452
py
Python
tools/instrumentation_helpers/instrumentor.py
mikezucc/xchammer
15659a678c24208e80e11713559b0380cc01f8fd
[ "Apache-2.0" ]
null
null
null
tools/instrumentation_helpers/instrumentor.py
mikezucc/xchammer
15659a678c24208e80e11713559b0380cc01f8fd
[ "Apache-2.0" ]
null
null
null
tools/instrumentation_helpers/instrumentor.py
mikezucc/xchammer
15659a678c24208e80e11713559b0380cc01f8fd
[ "Apache-2.0" ]
null
null
null
import os import time import re import socket import json import platform import multiprocessing import getpass # Set this to the value of the statsd backend # Consider: # - allowing the user to specify this as a config # - adding the ability to load hooks as an external repo. TSD_HOST = "" TSD_PORT = 80 TSD_TIMEOUT_S...
28.065041
85
0.64774
0
0
0
0
0
0
0
0
746
0.216107
0f47f785479aecc6801edc61672d6949600791f3
5,271
py
Python
peer/lifecycle/db_pb2.py
jeffgarratt/fabric-prototype
46cfc67a1d74d1f38f498d3409327692fb733fd0
[ "CC-BY-4.0" ]
6
2017-10-16T13:46:46.000Z
2020-02-28T07:48:51.000Z
peer/lifecycle/db_pb2.py
jeffgarratt/fabric-prototype
46cfc67a1d74d1f38f498d3409327692fb733fd0
[ "CC-BY-4.0" ]
18
2017-10-02T16:31:51.000Z
2020-02-24T21:39:20.000Z
peer/lifecycle/db_pb2.py
jeffgarratt/fabric-prototype
46cfc67a1d74d1f38f498d3409327692fb733fd0
[ "CC-BY-4.0" ]
4
2019-02-01T14:46:21.000Z
2021-06-01T05:49:11.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: peer/lifecycle/db.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection...
36.604167
447
0.751281
0
0
0
0
0
0
0
0
1,378
0.26143
0f4928cee3b81be294472e379d117e0b188de64b
2,025
py
Python
minepdf/cidsystem.py
jonix6/minepdf
6c57427fb16622a1b9960f6e7d514487d9bcd877
[ "MIT" ]
2
2021-01-29T07:59:17.000Z
2021-04-01T06:08:30.000Z
minepdf/cidsystem.py
jonix6/minepdf
6c57427fb16622a1b9960f6e7d514487d9bcd877
[ "MIT" ]
null
null
null
minepdf/cidsystem.py
jonix6/minepdf
6c57427fb16622a1b9960f6e7d514487d9bcd877
[ "MIT" ]
1
2021-03-05T11:14:14.000Z
2021-03-05T11:14:14.000Z
import re from collections import OrderedDict import struct import os import decoder748 REG_EXP = re.compile(r'^\s*<([0-9a-f]+)>\s+<([0-9a-f]+)>\s+(\d+)$', re.M) class CMap: MAP_STRING = '' def __init__(self): self.codePoints = set() self.cid2unicode = {} self._feed() def _feed...
23.275862
73
0.571358
926
0.457284
0
0
61
0.030123
0
0
148
0.073086
0f498fca97c908ff5fcb81796dcc212092f249b8
6,570
py
Python
src/libtakiyasha/qmc/ciphers/modern.py
nukemiko/takiyasha
d0e2ebab2a476646313a1fd412f55b9d1300ea87
[ "MIT" ]
15
2022-01-16T16:13:20.000Z
2022-03-27T15:30:51.000Z
src/libtakiyasha/qmc/ciphers/modern.py
nukemiko/takiyasha
d0e2ebab2a476646313a1fd412f55b9d1300ea87
[ "MIT" ]
null
null
null
src/libtakiyasha/qmc/ciphers/modern.py
nukemiko/takiyasha
d0e2ebab2a476646313a1fd412f55b9d1300ea87
[ "MIT" ]
2
2022-01-20T18:59:07.000Z
2022-01-26T08:09:15.000Z
from __future__ import annotations import os from typing import Generator from ...common import Cipher, KeylessCipher from ...utils import bytesxor QMCv1_KEYSTREAM_1ST_SEGMENT = b'' QMCv1_KEYSTREAM_REMAINING_SEGMENT = b'' __all__ = ['DynamicMap', 'ModifiedRC4', 'StaticMap'] def load_segment_file() -> None: gl...
32.85
114
0.586149
5,847
0.889954
1,299
0.197717
764
0.116286
0
0
177
0.026941
0f49b746e381f08fdc32de7957fed297c294cb90
1,797
py
Python
src/process_user_input.py
AndreasVikke/ComputerScience-Final
52d09a5876bfde661a00736712db6e3d19be877d
[ "MIT" ]
1
2021-01-15T11:23:20.000Z
2021-01-15T11:23:20.000Z
src/process_user_input.py
AndreasVikke/ComputerScience-Final
52d09a5876bfde661a00736712db6e3d19be877d
[ "MIT" ]
null
null
null
src/process_user_input.py
AndreasVikke/ComputerScience-Final
52d09a5876bfde661a00736712db6e3d19be877d
[ "MIT" ]
null
null
null
""" Processes user input from slack :license: MIT """ import json from typing import Dict from src.modules.user_input_global import UserInputGlobal from src.modules.user_input_handle_block_action import UserInputHandleBlockAction from src.modules.user_input_handle_view_submission import UserInputHandleViewSubm...
30.982759
88
0.694491
0
0
0
0
0
0
0
0
866
0.481914
0f4a2c92b201d6a14dd11e24d76deccb2e16f0c1
15,082
py
Python
cflearn/api/ml/interface.py
carefree0910/carefree-learn
2043812afbe9c56f01ec1639961736313ee062ba
[ "MIT" ]
400
2020-07-05T18:55:49.000Z
2022-02-21T02:33:08.000Z
cflearn/api/ml/interface.py
carefree0910/carefree-learn
2043812afbe9c56f01ec1639961736313ee062ba
[ "MIT" ]
82
2020-08-01T13:29:38.000Z
2021-10-09T07:13:44.000Z
cflearn/api/ml/interface.py
carefree0910/carefree-learn
2043812afbe9c56f01ec1639961736313ee062ba
[ "MIT" ]
34
2020-07-05T21:15:34.000Z
2021-12-20T08:45:17.000Z
import os import json import shutil import numpy as np from typing import Any from typing import Dict from typing import List from typing import Type from typing import Tuple from typing import Union from typing import Callable from typing import Optional from typing import NamedTuple from tqdm.autonotebook import tq...
34.045147
87
0.630553
211
0.01399
0
0
0
0
0
0
1,175
0.077907
0f4a41bba9d795071136091d1dc496c27479a9f9
1,163
py
Python
netta/a.py
zhangdafu12/web
64ce7db4697167215bf9ee25cd5bdc0bd15b5831
[ "MIT" ]
null
null
null
netta/a.py
zhangdafu12/web
64ce7db4697167215bf9ee25cd5bdc0bd15b5831
[ "MIT" ]
1
2020-03-30T09:26:59.000Z
2020-03-30T09:26:59.000Z
netta/a.py
zhangdafu12/web
64ce7db4697167215bf9ee25cd5bdc0bd15b5831
[ "MIT" ]
null
null
null
# -*- encoding:utf8 -*- # author: Shulei # e-mail: 1191543592@qq.com # time: 2019/4/2 10:00 import time # 一个描述器就是一个实现了三个核心的属性访问操作(get、set、delete)的类,分别为__get__(), __set__(),__delete__() # 这些方法接受一个实例作为输入,之后相应的操作实例底层的字典, 为了使用一个描述器,需要将这个描述器的实例作为类属性放到一个类的定义中Dadej # Descriptors are class attributes (like properties or met...
24.229167
106
0.687876
495
0.356885
0
0
0
0
0
0
785
0.56597
0f4a88ad12911b2f8374918ec047ffaa3dd9469e
21,511
py
Python
ensembler/visualisation/plotConveyorBelt.py
philthiel/Ensembler
943efac3c673eb40165927e81336386788e3a19f
[ "MIT" ]
39
2020-05-19T08:45:27.000Z
2022-03-17T16:58:34.000Z
ensembler/visualisation/plotConveyorBelt.py
SchroederB/Ensembler
943efac3c673eb40165927e81336386788e3a19f
[ "MIT" ]
38
2020-06-18T13:02:18.000Z
2022-02-25T14:29:17.000Z
ensembler/visualisation/plotConveyorBelt.py
SchroederB/Ensembler
943efac3c673eb40165927e81336386788e3a19f
[ "MIT" ]
13
2020-05-19T08:45:57.000Z
2022-03-10T16:18:20.000Z
import matplotlib.patches as patches import matplotlib.patheffects as path_effects import matplotlib.pyplot as plt import numpy as np def calc_lam(CapLam, i=0, numsys=8, w=0.1): ome = (CapLam + i * np.pi * 2.0 / numsys) % (2. * np.pi) if ome > np.pi: ome = 2.0 * np.pi - ome return ome / np.pi de...
48.448198
165
0.5182
0
0
0
0
0
0
0
0
3,942
0.183255
0f4aea28cd9c70e23bcd7e3a57f7b80215d70f0c
476
py
Python
data_structures/binary_tree/__init__.py
Mhassanbughio/Python-1
704c0f93425c53fcadcdbb3dbdf337b0598079fd
[ "MIT" ]
2
2022-01-13T04:56:29.000Z
2022-01-26T05:09:34.000Z
data_structures/binary_tree/__init__.py
Mhassanbughio/Python-1
704c0f93425c53fcadcdbb3dbdf337b0598079fd
[ "MIT" ]
null
null
null
data_structures/binary_tree/__init__.py
Mhassanbughio/Python-1
704c0f93425c53fcadcdbb3dbdf337b0598079fd
[ "MIT" ]
null
null
null
class Rectangle: def __init__(self, length, breadth, unit_cost=0): self.length = length self.breadth = breadth self.unit_cost = unit_cost def get_area(self): return self.length * self.breadth def calculate_cost(self): area = self.get_area() return area * self.unit_cost...
34
67
0.657563
320
0.672269
0
0
0
0
0
0
99
0.207983
0f4afaff8b78fa0f03f69df31da420a7dd7792c9
20,637
py
Python
mll/discrete_agent_play.py
asappresearch/compositional-inductive-bias
2c67713306ec6591f397ca252f915c3edc5a794f
[ "MIT" ]
2
2021-07-09T16:32:00.000Z
2022-03-21T17:32:39.000Z
mll/discrete_agent_play.py
asappresearch/compositional-inductive-bias
2c67713306ec6591f397ca252f915c3edc5a794f
[ "MIT" ]
null
null
null
mll/discrete_agent_play.py
asappresearch/compositional-inductive-bias
2c67713306ec6591f397ca252f915c3edc5a794f
[ "MIT" ]
1
2021-07-09T16:32:02.000Z
2021-07-09T16:32:02.000Z
""" one agent chooses an action, says it. other agent does it. both get a point if right this file was forked from mll/discrete_bottleneck_discrete_input.py """ import torch import torch.nn.functional as F from torch import nn, optim # from envs.world3c import World from ulfs import alive_sieve, rl_common from ulfs.s...
36.91771
120
0.621941
17,882
0.866502
0
0
0
0
0
0
7,204
0.349082
0f4bf459dfea724ef4363f595d32c0bc5922dd5e
17,993
py
Python
maggy/searchspace.py
amacati/maggy
4d4fef5e3dbb60e2aa935d6236cc0cd53477277a
[ "Apache-2.0" ]
81
2019-02-18T15:16:45.000Z
2022-02-17T06:13:17.000Z
maggy/searchspace.py
ssheikholeslami/maggy
0d9a4cbbf6120d7453b75515b082feae3c3530c2
[ "Apache-2.0" ]
40
2019-04-29T15:03:28.000Z
2022-03-09T09:29:28.000Z
maggy/searchspace.py
ssheikholeslami/maggy
0d9a4cbbf6120d7453b75515b082feae3c3530c2
[ "Apache-2.0" ]
16
2019-02-19T14:25:35.000Z
2021-02-25T11:41:04.000Z
# # Copyright 2020 Logical Clocks AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
37.485417
121
0.562997
17,338
0.963597
0
0
3,384
0.188073
0
0
9,175
0.509921
0f4d1234aeefbd86b891c4d016b9bc7565fad846
440
py
Python
examples/fiducials.py
alisterburt/yet-another-imod-wrapper
c99eb751ccca59d83400f734dd8af621954ecd5c
[ "BSD-3-Clause" ]
null
null
null
examples/fiducials.py
alisterburt/yet-another-imod-wrapper
c99eb751ccca59d83400f734dd8af621954ecd5c
[ "BSD-3-Clause" ]
null
null
null
examples/fiducials.py
alisterburt/yet-another-imod-wrapper
c99eb751ccca59d83400f734dd8af621954ecd5c
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import numpy as np from yet_another_imod_wrapper.fiducials import run_fiducial_based_alignment TEST_DATA_DIR = Path(__file__).parent.parent / 'tilt_series' run_fiducial_based_alignment( tilt_series_file=TEST_DATA_DIR / 'my_prefix_TS_01.mrc', tilt_angles=np.arange(-60, 63, 3), pi...
25.882353
75
0.786364
0
0
0
0
0
0
0
0
56
0.127273
0f4db0e6bc89de8ac27da4ed1b34ec1251d19ce7
6,107
py
Python
Testing/daemon_Fake_Dev.py
nandor1992/FogOfThings
c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0
[ "Apache-2.0" ]
1
2020-06-23T10:41:33.000Z
2020-06-23T10:41:33.000Z
Testing/daemon_Fake_Dev.py
nandor1992/FogOfThings
c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0
[ "Apache-2.0" ]
null
null
null
Testing/daemon_Fake_Dev.py
nandor1992/FogOfThings
c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import couchdb import pika import ast import time import threading import ctypes import datetime import sys from daemon import Daemon import ConfigParser import logging t=time t.clock() PIDFILE="/home/pi/FogOfThings/Device/pid/fake_dev.pid" Config=ConfigParser.ConfigParser() Config.read("/home/pi/...
33.190217
132
0.594727
4,876
0.798428
0
0
0
0
0
0
1,069
0.175045
0f4dea2186bb00ab02de2842112fe6cfb2d318d8
3,663
py
Python
src/mavelp/kernel_methods.py
nanoMFG/VELP
08225e863a9e9811fcd9e09cd32abc97719fbb7b
[ "MIT" ]
null
null
null
src/mavelp/kernel_methods.py
nanoMFG/VELP
08225e863a9e9811fcd9e09cd32abc97719fbb7b
[ "MIT" ]
1
2020-12-11T19:18:17.000Z
2020-12-15T02:59:14.000Z
src/mavelp/kernel_methods.py
nanoMFG/VELP
08225e863a9e9811fcd9e09cd32abc97719fbb7b
[ "MIT" ]
1
2021-03-16T02:04:12.000Z
2021-03-16T02:04:12.000Z
import numpy as np from sklearn.kernel_ridge import KernelRidge from sklearn.model_selection import GridSearchCV from sklearn.gaussian_process import GaussianProcessRegressor import sklearn.gaussian_process.kernels as Kernels from scipy.optimize import minimize from numpy.linalg import norm import tensorflow as tf fr...
34.885714
123
0.514606
3,277
0.894622
0
0
0
0
0
0
322
0.087906
0f4e902dad9f3ec645661170ae5c6747b0ba3683
307
py
Python
menpo/io/input/landmark_image.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
null
null
null
menpo/io/input/landmark_image.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
1
2019-03-09T16:01:46.000Z
2019-03-09T16:01:46.000Z
menpo/io/input/landmark_image.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
1
2020-05-01T09:55:57.000Z
2020-05-01T09:55:57.000Z
from functools import partial from .landmark import asf_importer, pts_importer asf_image_importer = partial(asf_importer, image_origin=True) asf_image_importer.__doc__ = asf_importer.__doc__ pts_image_importer = partial(pts_importer, image_origin=True) pts_image_importer.__doc__ = pts_importer.__doc__
27.909091
61
0.85342
0
0
0
0
0
0
0
0
0
0
0f502bd0a6d75cd12fc714caaff3cdee0cd284dd
2,603
py
Python
corpus2alpino/targets/filesystem.py
UUDigitalHumanitieslab/folia2alpino
4181955ccecadd02e311a548d67b17c09bfd81d4
[ "MIT" ]
2
2018-09-13T15:47:11.000Z
2021-06-02T16:06:11.000Z
corpus2alpino/targets/filesystem.py
UUDigitalHumanitieslab/folia2alpino
4181955ccecadd02e311a548d67b17c09bfd81d4
[ "MIT" ]
8
2018-07-24T15:34:35.000Z
2021-05-03T10:29:28.000Z
corpus2alpino/targets/filesystem.py
UUDigitalHumanitieslab/folia2alpino
4181955ccecadd02e311a548d67b17c09bfd81d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from corpus2alpino.abstracts import Target from corpus2alpino.models import Document from os import path, makedirs from pathlib import Path from typing import cast, Any class FilesystemTarget(Target): """ Output chunks to a file using newline separators. """ __current_output_p...
32.135802
88
0.558202
2,407
0.924702
0
0
0
0
0
0
253
0.097196
0f508fc8a3488c8b14e0ec286b215e156a8f0aea
1,633
py
Python
Substring with Concatenation of All Words.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Substring with Concatenation of All Words.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Substring with Concatenation of All Words.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and without any intervening characters. Example 1: Input: s = "barfoothefoobarman", words = ["foo","bar"] Output: [0...
27.677966
233
0.471525
1,033
0.632578
0
0
0
0
0
0
669
0.409675
0f50e2935cc8d40993b0200cc3b73be06a60af61
372
py
Python
renomearArquivo.py
MarianaFRocha/Manipulacao-de-Arquivos
ee1c23e98579cb987d5df159536c6f366657efb0
[ "MIT" ]
null
null
null
renomearArquivo.py
MarianaFRocha/Manipulacao-de-Arquivos
ee1c23e98579cb987d5df159536c6f366657efb0
[ "MIT" ]
null
null
null
renomearArquivo.py
MarianaFRocha/Manipulacao-de-Arquivos
ee1c23e98579cb987d5df159536c6f366657efb0
[ "MIT" ]
null
null
null
import os # exemplo alterado de EX_10.5.py para 10_5.py for nome in os.listdir('./Minicurso/Minicurso API'): # alterar conforme sua necessidade de geração de nomes e layout de arquivos os.rename("./Minicurso/Minicurso API/"+nome, "./Minicurso/Minicurso API/"+nome+"_Minicurso_API.png") print("arquivo ...
46.5
104
0.712366
0
0
0
0
0
0
0
0
273
0.729947
0f510ccb2bf6d059b49802e8ca3cb256a8c92416
1,939
py
Python
setup.py
JoffreyN/HTMLReport
5216eeed4b30219dcef7d162f8ad6575d0e8b553
[ "MIT" ]
4
2018-08-17T03:58:41.000Z
2022-01-19T06:52:21.000Z
setup.py
JoffreyN/HTMLReport
5216eeed4b30219dcef7d162f8ad6575d0e8b553
[ "MIT" ]
null
null
null
setup.py
JoffreyN/HTMLReport
5216eeed4b30219dcef7d162f8ad6575d0e8b553
[ "MIT" ]
3
2018-11-09T03:47:31.000Z
2022-01-19T07:23:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys if sys.version_info < (3, 5): raise RuntimeError("The minimum support Python 3.5") from setuptools import find_packages from setuptools import setup from HTMLReport import __version__, __author__ try: from pypandoc import convert r...
34.625
83
0.635379
0
0
0
0
0
0
0
0
1,083
0.553398
0f51ec37186fd8a1db6bbc54e44a5583d0b59c2f
426
py
Python
batch.py
SergioLaRosa/downloaderdude
7f3fea4d5019d199b1ae2f5a62c66a4550321e67
[ "MIT" ]
null
null
null
batch.py
SergioLaRosa/downloaderdude
7f3fea4d5019d199b1ae2f5a62c66a4550321e67
[ "MIT" ]
null
null
null
batch.py
SergioLaRosa/downloaderdude
7f3fea4d5019d199b1ae2f5a62c66a4550321e67
[ "MIT" ]
null
null
null
# URLs processed simultaneously class Batch(): def __init__(self): self._batch = 0 def set_batch(self, n_batch): try: self._batch = n_batch except BaseException: print("[ERROR] Can't set task batch number.") def get_batch(self): try: r...
21.3
57
0.570423
391
0.91784
0
0
0
0
0
0
107
0.251174
0f524b0eb768223ca18a95403ff45b448471be06
2,712
py
Python
workflow/scripts/download_flyxcdb_data.py
tomasMasson/wiring-molecules
71a77de122a558a56fd7b9a735c1fc00e4a32c90
[ "MIT" ]
null
null
null
workflow/scripts/download_flyxcdb_data.py
tomasMasson/wiring-molecules
71a77de122a558a56fd7b9a735c1fc00e4a32c90
[ "MIT" ]
null
null
null
workflow/scripts/download_flyxcdb_data.py
tomasMasson/wiring-molecules
71a77de122a558a56fd7b9a735c1fc00e4a32c90
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 "Download Drosophila melanogaster extracellular domain batabase (FlyXCDB) table, published in the Journal of Molecular Biology" import click import requests import pandas as pd from bs4 import BeautifulSoup def scrape_url(url): """ Scrap the content from the input URL using Beautiful S...
29.802198
127
0.669985
0
0
0
0
567
0.209071
0
0
1,532
0.564897
0f559b826d34c24f7992bcda817728b961f99017
17,662
py
Python
common/updatefiles.py
cheersalam/webrtc
29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca
[ "BSD-3-Clause" ]
null
null
null
common/updatefiles.py
cheersalam/webrtc
29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca
[ "BSD-3-Clause" ]
null
null
null
common/updatefiles.py
cheersalam/webrtc
29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca
[ "BSD-3-Clause" ]
null
null
null
playerFilesWin = { "lib/avcodec-56.dll" : { "flag_deps" : True, "should_be_removed" : True }, "lib/avformat-56.dll" : { "flag_deps" : True, "should_be_removed" : True }, "lib/avutil-54.dll" : { "flag_deps" : True, "should_be_removed" : True }, "lib/swscale-3.dll" : { "flag_deps" : True, "shou...
60.486301
154
0.630563
0
0
0
0
0
0
0
0
12,522
0.70898
0f58ae9c56e868959385146e7aab8ad6eb80f5da
2,344
py
Python
models/base_model.py
siyuhuang/PoseStylizer
d1d832781ddfd3efde24bf32b36a4074fafebcc1
[ "BSD-3-Clause" ]
75
2020-07-20T01:33:15.000Z
2022-03-26T11:55:20.000Z
models/base_model.py
siyuhuang/PoseStylizer
d1d832781ddfd3efde24bf32b36a4074fafebcc1
[ "BSD-3-Clause" ]
12
2020-07-20T12:16:11.000Z
2022-01-13T19:31:04.000Z
models/base_model.py
siyuhuang/PoseStylizer
d1d832781ddfd3efde24bf32b36a4074fafebcc1
[ "BSD-3-Clause" ]
16
2020-07-20T01:19:16.000Z
2022-03-26T09:34:35.000Z
import os import torch import torch.nn as nn import numpy as np import pickle class BaseModel(nn.Module): def __init__(self): super(BaseModel, self).__init__() def name(self): return 'BaseModel' def initialize(self, opt): self.opt = opt self.gpu_ids = opt.gpu_ids ...
30.441558
93
0.636092
2,264
0.96587
0
0
0
0
0
0
364
0.15529
0f5971ebdf54a0b419e55ff08d2e2bce549802f0
983
py
Python
backend/tuber/migrations/versions/4ae40638e863_adding_hotel_block_to_requests.py
bitbyt3r/2ber
db1689010072c877cc83bd5b5922922456616094
[ "MIT" ]
6
2019-12-06T07:32:22.000Z
2021-12-05T19:14:03.000Z
backend/tuber/migrations/versions/4ae40638e863_adding_hotel_block_to_requests.py
bitbyt3r/2ber
db1689010072c877cc83bd5b5922922456616094
[ "MIT" ]
99
2019-10-03T05:21:16.000Z
2022-01-21T02:35:25.000Z
backend/tuber/migrations/versions/4ae40638e863_adding_hotel_block_to_requests.py
bitbyt3r/2ber
db1689010072c877cc83bd5b5922922456616094
[ "MIT" ]
6
2019-09-30T22:01:55.000Z
2021-11-03T20:53:00.000Z
"""Adding hotel block to requests Revision ID: 4ae40638e863 Revises: 1708acb6e515 Create Date: 2021-11-15 20:42:51.723559 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4ae40638e863' down_revision = '1708acb6e515' branch_labels = None depends_on = None def ...
28.085714
86
0.709054
0
0
0
0
0
0
0
0
490
0.498474
0f5990fc41a4d76565a7455e7e0dbf6f8cf899b9
8,660
py
Python
xoinvader/collision.py
pankshok/xoinvader
f25e30431d4898f20626056c12853595857b4f02
[ "MIT" ]
13
2016-06-26T10:30:14.000Z
2021-09-04T19:39:14.000Z
xoinvader/collision.py
pkulev/xoinvader
f25e30431d4898f20626056c12853595857b4f02
[ "MIT" ]
70
2016-10-10T18:27:17.000Z
2020-05-18T11:27:59.000Z
xoinvader/collision.py
pankshok/xoinvader
f25e30431d4898f20626056c12853595857b4f02
[ "MIT" ]
null
null
null
"""Collision detection system and component module.""" import functools import logging import re import weakref from xoinvader import app from xoinvader.utils import Point LOG = logging.getLogger(__name__) COLLISIONS = {} """Global mapping TypePair <=> [callable].""" class CollisionManagerNotFound(Exception): ...
29.657534
80
0.60254
7,837
0.904965
0
0
3,740
0.431871
0
0
3,749
0.43291
0f5b07565ad9c9887805e72a860f709924e9bf7f
1,816
py
Python
test/testing/test_pandas_assert.py
S-aiueo32/gokart
00475f36513da3fba65b44a10ae97246e0690b54
[ "MIT" ]
255
2019-01-02T01:31:37.000Z
2022-03-29T13:35:18.000Z
test/testing/test_pandas_assert.py
S-aiueo32/gokart
00475f36513da3fba65b44a10ae97246e0690b54
[ "MIT" ]
208
2018-12-25T04:32:24.000Z
2022-03-28T07:28:59.000Z
test/testing/test_pandas_assert.py
S-aiueo32/gokart
00475f36513da3fba65b44a10ae97246e0690b54
[ "MIT" ]
48
2019-01-11T06:22:05.000Z
2022-02-11T07:38:42.000Z
import unittest import pandas as pd import gokart class TestPandasAssert(unittest.TestCase): def test_assert_frame_contents_equal(self): expected = pd.DataFrame(data=dict(f1=[1, 2, 3], f3=[111, 222, 333], f2=[4, 5, 6]), index=[0, 1, 2]) resulted = pd.DataFrame(data=dict(f2=[5, 4, 6], f1=[2, 1, 3...
47.789474
122
0.630507
1,761
0.969714
0
0
0
0
0
0
24
0.013216
0f5bc614d9041794b1473f521f648a2ae8fe38a7
1,523
py
Python
binsdpy/similarity/group_b.py
mikulatomas/binsdpy
d54d452e5e7cf310747e94c5c94c4875add869ca
[ "MIT" ]
null
null
null
binsdpy/similarity/group_b.py
mikulatomas/binsdpy
d54d452e5e7cf310747e94c5c94c4875add869ca
[ "MIT" ]
2
2022-02-08T19:45:51.000Z
2022-02-23T15:21:01.000Z
binsdpy/similarity/group_b.py
mikulatomas/binsdpy
d54d452e5e7cf310747e94c5c94c4875add869ca
[ "MIT" ]
null
null
null
import math from binsdpy.utils import operational_taxonomic_units, BinaryFeatureVector def russell_rao( x: BinaryFeatureVector, y: BinaryFeatureVector, mask: BinaryFeatureVector = None ) -> float: """Russel-Rao similarity Russell, P. F., & Rao, T. R. (1940). On habitat and association of species of ...
30.46
88
0.683519
0
0
0
0
0
0
0
0
980
0.643467
0f5d2a27cb70dddd601735fe0a2a3f6e251cb949
16,810
py
Python
design/gpgpu/configs/gpu_protocol/VI_hammer_fusion.py
chisuhua/gem5
74694255d90e0892d5f5c4d13f6077cdb9b9cb95
[ "BSD-3-Clause" ]
null
null
null
design/gpgpu/configs/gpu_protocol/VI_hammer_fusion.py
chisuhua/gem5
74694255d90e0892d5f5c4d13f6077cdb9b9cb95
[ "BSD-3-Clause" ]
null
null
null
design/gpgpu/configs/gpu_protocol/VI_hammer_fusion.py
chisuhua/gem5
74694255d90e0892d5f5c4d13f6077cdb9b9cb95
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2006-2007 The Regents of The University of Michigan # Copyright (c) 2009 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source co...
46.565097
88
0.612731
60
0.003569
0
0
0
0
0
0
5,642
0.335634
0f602012992f3815e49879e39ae8eeb897b0b859
11,102
py
Python
testing/test_awswrangler/test_athena.py
stijndehaes/aws-data-wrangler
4c95e87d2850ce028c00525c73567c77f83001c5
[ "Apache-2.0" ]
null
null
null
testing/test_awswrangler/test_athena.py
stijndehaes/aws-data-wrangler
4c95e87d2850ce028c00525c73567c77f83001c5
[ "Apache-2.0" ]
null
null
null
testing/test_awswrangler/test_athena.py
stijndehaes/aws-data-wrangler
4c95e87d2850ce028c00525c73567c77f83001c5
[ "Apache-2.0" ]
1
2019-09-19T13:09:42.000Z
2019-09-19T13:09:42.000Z
import logging import pytest import boto3 from awswrangler import Session from awswrangler.exceptions import QueryCancelled, QueryFailed logging.basicConfig( level=logging.INFO, format="[%(asctime)s][%(levelname)s][%(name)s][%(funcName)s] %(message)s") logging.getLogger("awswrangler").setLevel(logging.DEBUG)...
72.562092
95
0.532246
0
0
623
0.056116
719
0.064763
0
0
9,649
0.869123
0f634577290308b8a34cd2796dad52f018337f67
112
py
Python
hello_world.py
hmallen/mrhawaii
4b973c185e9acf030342435204480467d189f013
[ "MIT" ]
null
null
null
hello_world.py
hmallen/mrhawaii
4b973c185e9acf030342435204480467d189f013
[ "MIT" ]
1
2020-07-30T01:46:09.000Z
2020-07-30T01:46:09.000Z
hello_world.py
hmallen/mrhawaii
4b973c185e9acf030342435204480467d189f013
[ "MIT" ]
null
null
null
# Hello world program to demonstrate running PYthon files print('Hello, world!') print('I live on a volcano!')
22.4
57
0.741071
0
0
0
0
0
0
0
0
94
0.839286
0f63dcf544f98cf5aa08276887974023d5184846
161
py
Python
lib/JumpScale/lib/ms1/__init__.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
null
null
null
lib/JumpScale/lib/ms1/__init__.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
lib/JumpScale/lib/ms1/__init__.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
from JumpScale import j def cb(): from .ms1 import MS1Factory return MS1Factory() j.base.loader.makeAvailable(j, 'tools') j.tools._register('ms1', cb)
17.888889
39
0.708075
0
0
0
0
0
0
0
0
12
0.074534
0f641b2b38f0d89181b82feb7d73b51398cf8e53
1,052
py
Python
erpnext/utilities/__init__.py
nagendrarawat/erpnext_custom
1b94ecc3e66eae402347c302cd1663b690fb1ade
[ "MIT" ]
2
2019-10-01T13:07:39.000Z
2019-10-03T03:52:19.000Z
erpnext/utilities/__init__.py
nagendrarawat/erpnext_custom
1b94ecc3e66eae402347c302cd1663b690fb1ade
[ "MIT" ]
null
null
null
erpnext/utilities/__init__.py
nagendrarawat/erpnext_custom
1b94ecc3e66eae402347c302cd1663b690fb1ade
[ "MIT" ]
3
2019-09-30T19:17:44.000Z
2019-10-23T18:59:12.000Z
## temp utility from __future__ import print_function import frappe from erpnext.utilities.activation import get_level from frappe.utils import cstr def update_doctypes(): for d in frappe.db.sql("""select df.parent, df.fieldname from tabDocField df, tabDocType dt where df.fieldname like "%description%" and df.par...
28.432432
81
0.713878
0
0
0
0
0
0
0
0
363
0.345057
0f6569a4372117c916cf30a866126442a8d5e66b
6,742
py
Python
test/workers/test_websocket_worker.py
theoptips/PySyft
4b68c3c6fbe0c18cdf87dfe6ddc3c2071a71f1cc
[ "Apache-2.0" ]
1
2019-07-23T20:36:18.000Z
2019-07-23T20:36:18.000Z
test/workers/test_websocket_worker.py
theoptips/PySyft
4b68c3c6fbe0c18cdf87dfe6ddc3c2071a71f1cc
[ "Apache-2.0" ]
null
null
null
test/workers/test_websocket_worker.py
theoptips/PySyft
4b68c3c6fbe0c18cdf87dfe6ddc3c2071a71f1cc
[ "Apache-2.0" ]
1
2021-02-12T12:11:44.000Z
2021-02-12T12:11:44.000Z
import io from os.path import exists, join import time from socket import gethostname from OpenSSL import crypto, SSL import pytest import torch from syft.workers import WebsocketClientWorker from syft.workers import WebsocketServerWorker @pytest.mark.parametrize("secure", [True, False]) def test_websocket_worker_ba...
29.313043
94
0.673391
0
0
0
0
1,784
0.26461
0
0
1,395
0.206912
0f657e59d927029cc829b093d74f43fd3c3ab0fd
13,195
py
Python
PiCN/Simulations/BalancedForwardingStrategySimulation.py
DimaMansour/PiCN
90ced1cde2a8fd457e873e8bbad1fd7c21bbe56b
[ "BSD-3-Clause" ]
null
null
null
PiCN/Simulations/BalancedForwardingStrategySimulation.py
DimaMansour/PiCN
90ced1cde2a8fd457e873e8bbad1fd7c21bbe56b
[ "BSD-3-Clause" ]
null
null
null
PiCN/Simulations/BalancedForwardingStrategySimulation.py
DimaMansour/PiCN
90ced1cde2a8fd457e873e8bbad1fd7c21bbe56b
[ "BSD-3-Clause" ]
null
null
null
"""Simulate a Map Reduce Scenario where timeout prevention is required. In this simulation we are using an Optimizer created for map reduce scenarios. This improves the distribution of the computation no matter how the interest is formated. Scenario consists of two NFN nodes and a Client. Goal of the simulation is to ...
42.022293
182
0.593103
11,912
0.902766
0
0
97
0.007351
0
0
4,909
0.372035
0f6811584c35d57112dde4d376d40b9b051263d0
48
py
Python
Tools/MagicPanels/panelMoveXp.py
dprojects/Woodworking
24420b248e3343a387ae1328fc6dcbf97e433242
[ "MIT" ]
6
2022-02-25T19:11:40.000Z
2022-03-24T22:03:47.000Z
Tools/MagicPanels/panelMoveXp.py
dprojects/Woodworking
24420b248e3343a387ae1328fc6dcbf97e433242
[ "MIT" ]
1
2022-03-13T09:35:22.000Z
2022-03-13T13:30:36.000Z
Tools/MagicPanels/panelMoveXp.py
dprojects/Woodworking
24420b248e3343a387ae1328fc6dcbf97e433242
[ "MIT" ]
3
2022-02-26T15:01:08.000Z
2022-03-20T21:30:04.000Z
import MagicPanels MagicPanels.panelMove("Xp")
12
27
0.8125
0
0
0
0
0
0
0
0
4
0.083333
0f686508655f6cb5a008cef527be098e9ada85a3
1,399
py
Python
app/api/v2/models/user_model.py
MbuguaCaleb/Questioner-V2-API
9e3a5593250a12b74ad5dcbe220827040fa3d676
[ "MIT" ]
null
null
null
app/api/v2/models/user_model.py
MbuguaCaleb/Questioner-V2-API
9e3a5593250a12b74ad5dcbe220827040fa3d676
[ "MIT" ]
1
2019-01-19T13:10:02.000Z
2019-01-19T13:10:02.000Z
app/api/v2/models/user_model.py
MbuguaCaleb/Questioner-V2-API
9e3a5593250a12b74ad5dcbe220827040fa3d676
[ "MIT" ]
null
null
null
from ....db_conn import initialize_db from psycopg2.extras import RealDictCursor from werkzeug.security import generate_password_hash,check_password_hash con = initialize_db() cur = con.cursor(cursor_factory=RealDictCursor) class User(object): table = 'users' """ Model class for the user object """ tab...
25.436364
186
0.609721
1,170
0.836312
0
0
179
0.127949
0
0
446
0.318799
0f68bd486acd6f559b6e55931f138347c5551170
2,654
py
Python
Python/17.letter-combinations-of-a-phone-number.py
Dxyk/LeetCode
e64b405f40b4e3c0f14c617897b775699dd46872
[ "MIT" ]
null
null
null
Python/17.letter-combinations-of-a-phone-number.py
Dxyk/LeetCode
e64b405f40b4e3c0f14c617897b775699dd46872
[ "MIT" ]
null
null
null
Python/17.letter-combinations-of-a-phone-number.py
Dxyk/LeetCode
e64b405f40b4e3c0f14c617897b775699dd46872
[ "MIT" ]
null
null
null
from typing import Dict, List class Solution: DIGIT_TO_LETTER: Dict[str, List[str]] = { "1": [], "2": ["a", "b", "c"], "3": ["d", "e", "f"], "4": ["g", "h", "i"], "5": ["j", "k", "l"], "6": ["m", "n", "o"], "7": ["p", "q", "r", "s"], "8": ["t", "u", ...
29.488889
134
0.520723
2,520
0.94951
0
0
0
0
0
0
1,193
0.44951
0f69cabd8fe171f0dca1ced002ed424271bae43e
696
py
Python
django-backend/mission/settings_dev_dummy.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
2
2021-06-08T16:35:30.000Z
2022-03-18T16:04:48.000Z
django-backend/mission/settings_dev_dummy.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
4
2022-02-22T18:43:07.000Z
2022-02-22T18:45:25.000Z
django-backend/mission/settings_dev_dummy.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
null
null
null
from .settings import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'mission', 'USER': 'postgres', 'PASSWORD': '', 'HOST': '127.0.0.1', 'PORT': '5432', } } DEBUG = True VAULT_HOST = 'http://127.0.0.1:8200' VAULT_ROOT_PATH = 'mis...
26.769231
76
0.653736
0
0
0
0
0
0
0
0
356
0.511494
0f69d3eab2dbb5cfe8989db4cb4da5f04dcd2474
1,653
py
Python
src/moodlews/service.py
pystardust/Welearn-bot
87a8c388201629c7ce94e6f9730a4ac7442b36f6
[ "MIT" ]
null
null
null
src/moodlews/service.py
pystardust/Welearn-bot
87a8c388201629c7ce94e6f9730a4ac7442b36f6
[ "MIT" ]
null
null
null
src/moodlews/service.py
pystardust/Welearn-bot
87a8c388201629c7ce94e6f9730a4ac7442b36f6
[ "MIT" ]
null
null
null
from requests import Session import urllib.parse import json class ServerFunctions: SITE_INFO = "core_webservice_get_site_info" ALL_COURSES = "core_course_get_courses_by_field" USER_COURSES = "core_enrol_get_users_courses" COURSE_CONTENTS = "core_course_get_contents" ASSIGNMENTS = "mod_assign_get_a...
30.611111
85
0.643678
1,588
0.960678
0
0
0
0
0
0
330
0.199637
0f69e78024609f6fbaf1f9eeb13bf6a51e75d7da
6,319
py
Python
agents/wann_agent.py
Miffyli/policy-supervectors
358284805e5bc96b95cae15e9741571e46d84bc9
[ "MIT" ]
17
2020-12-02T15:27:03.000Z
2022-01-14T06:42:14.000Z
agents/wann_agent.py
Miffyli/policy-supervectors
358284805e5bc96b95cae15e9741571e46d84bc9
[ "MIT" ]
null
null
null
agents/wann_agent.py
Miffyli/policy-supervectors
358284805e5bc96b95cae15e9741571e46d84bc9
[ "MIT" ]
null
null
null
import numpy as np from gym import spaces from agents import SimpleAgentClass # Create agents for the CMA-ES, NEAT and WANN agents # defined in the weight-agnostic paper repo: # https://github.com/google/brain-tokyo-workshop/tree/master/WANNRelease/ # ---------------------------------------------------------------...
29.666667
119
0.592182
0
0
0
0
0
0
0
0
3,592
0.568444
0f6ab9f6902561656b7e6574e6d06dd8dae26076
483
py
Python
imagr_users/admin.py
sazlin/cfpydev-imagr
e34ac025e357694f40034ab1c02ed3be5294c2d8
[ "MIT" ]
null
null
null
imagr_users/admin.py
sazlin/cfpydev-imagr
e34ac025e357694f40034ab1c02ed3be5294c2d8
[ "MIT" ]
null
null
null
imagr_users/admin.py
sazlin/cfpydev-imagr
e34ac025e357694f40034ab1c02ed3be5294c2d8
[ "MIT" ]
null
null
null
from django.contrib import admin from models import ImagrUser, Relationship # Register your models here. class ImagrUserAdmin(admin.ModelAdmin): fields = ('username', 'first_name', 'last_name', 'email', ) search_fields = ['username', ...
23
46
0.565217
293
0.606625
0
0
0
0
0
0
108
0.223602
0f6b058045d24130832a31ba7ff907e1cd47ac61
4,115
py
Python
src/scripts/ia.py
BureauTech/BTAlert-AI
945f6dfc10cdfa1ca99ff929136b40cadb40bc21
[ "MIT" ]
1
2022-03-17T20:27:27.000Z
2022-03-17T20:27:27.000Z
src/scripts/ia.py
BureauTech/BTAlert-IA
e2d250bbaf363eb7f32dfee7e1a112326053bb57
[ "MIT" ]
null
null
null
src/scripts/ia.py
BureauTech/BTAlert-IA
e2d250bbaf363eb7f32dfee7e1a112326053bb57
[ "MIT" ]
null
null
null
import os import warnings from datetime import datetime, timedelta from typing import Tuple import matplotlib.pyplot as plt import pandas as pd from dotenv import load_dotenv from prometheus_api_client import MetricSnapshotDataFrame, PrometheusConnect from prometheus_api_client.utils import parse_datetime from skforec...
37.072072
104
0.684569
3,523
0.856136
0
0
0
0
0
0
256
0.062211
0f6b864680738e0f6318834ca0ebb3c3d6afb4ba
3,306
py
Python
data_loaders/anime_loader.py
dchenam/AnimeGAN
15707a99dde000a6d7f283f4f82d5176b8313e0a
[ "MIT" ]
1
2020-01-19T15:04:42.000Z
2020-01-19T15:04:42.000Z
data_loaders/anime_loader.py
dchenam/AnimeGAN
15707a99dde000a6d7f283f4f82d5176b8313e0a
[ "MIT" ]
null
null
null
data_loaders/anime_loader.py
dchenam/AnimeGAN
15707a99dde000a6d7f283f4f82d5176b8313e0a
[ "MIT" ]
null
null
null
import os import numpy as np import torch from torch.utils.data import Dataset, DataLoader from torchvision import transforms from PIL import Image class Anime_Dataset(Dataset): def __init__(self, config, transform): self.config = config self.transform = transform self.lines = open(config....
40.317073
117
0.588929
2,400
0.725953
0
0
0
0
0
0
598
0.180883
0f6d1c33773b442b8a76170619e0410a30ccb153
4,650
py
Python
bitwarden_pyro/controller/cache.py
apetresc/bitwarden-pyro
2312452b7c56b1c534c4f3874f162b9dc0df92c3
[ "MIT" ]
7
2019-12-10T12:51:48.000Z
2021-11-26T23:27:37.000Z
bitwarden_pyro/controller/cache.py
apetresc/bitwarden-pyro
2312452b7c56b1c534c4f3874f162b9dc0df92c3
[ "MIT" ]
13
2019-12-06T11:53:31.000Z
2022-01-01T16:45:33.000Z
bitwarden_pyro/controller/cache.py
apetresc/bitwarden-pyro
2312452b7c56b1c534c4f3874f162b9dc0df92c3
[ "MIT" ]
3
2020-09-25T05:59:30.000Z
2022-01-08T03:09:29.000Z
import os import json import stat import time from bitwarden_pyro.util.logger import ProjectLogger from bitwarden_pyro.settings import NAME class CacheMetadata: """Model class containing cache metadata""" def __init__(self, time_created=None, count=None): self.time_created = time_created sel...
31.208054
79
0.576774
4,500
0.967742
0
0
208
0.044731
0
0
1,138
0.244731
0f6dc02e799dc65a7634ed67eacfd39cd76ca1b9
210
py
Python
library/render_partial.py
pythononwheels/diary
87ffd08d0dffe979799d9f441014bd5d71f00fc6
[ "MIT" ]
null
null
null
library/render_partial.py
pythononwheels/diary
87ffd08d0dffe979799d9f441014bd5d71f00fc6
[ "MIT" ]
null
null
null
library/render_partial.py
pythononwheels/diary
87ffd08d0dffe979799d9f441014bd5d71f00fc6
[ "MIT" ]
null
null
null
# # One Tornado UIModule to render them all ;) # import tornado.web class RenderPatialModule(tornado.web.UIModule): def render(self, partial=None): return "<h1>Hello, world!</h1><p>" + str(partial) + "</p>"
26.25
60
0.695238
141
0.671429
0
0
0
0
0
0
79
0.37619
0f70e53221634c25ef5b9365ad4e3d8d00516b0d
1,605
py
Python
doc/source/isphx/objpull.py
flying-sheep/sphobjinv
0aa56e3982f99bf811cef4126e452ddd65cae088
[ "MIT" ]
55
2016-10-30T05:03:16.000Z
2022-03-13T18:00:44.000Z
doc/source/isphx/objpull.py
flying-sheep/sphobjinv
0aa56e3982f99bf811cef4126e452ddd65cae088
[ "MIT" ]
202
2016-05-16T13:25:50.000Z
2022-03-22T20:05:45.000Z
doc/source/isphx/objpull.py
bskinn/sphinx-objectsinv
505c7afc656f20b9e105f4ead9c6eb570eef971a
[ "MIT" ]
4
2020-03-29T01:47:50.000Z
2021-04-07T13:37:05.000Z
# Quickie script for refreshing the local objects.inv cache # OVERWRITES EXISTING FILES, WITH PRE-DELETION def pullobjs(): import os import urllib.request as urlrq import certifi # Open conf.py, retrieve content and compile with open(os.path.join(os.pardir, 'conf.py'), 'r') as f: confc...
25.887097
80
0.54704
0
0
0
0
0
0
0
0
552
0.343925
0f716674c3dc2ac73901984ceb01683e57a08e32
4,487
py
Python
python-client/cloudera/director/v8/models/__init__.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
24
2015-03-04T01:39:36.000Z
2020-06-30T13:34:27.000Z
python-client/cloudera/director/v8/models/__init__.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
5
2015-11-04T08:18:47.000Z
2019-01-05T11:12:19.000Z
python-client/cloudera/director/v8/models/__init__.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
26
2015-02-24T21:13:53.000Z
2020-12-15T06:01:46.000Z
# coding: utf-8 # flake8: noqa """ Licensed to Cloudera, Inc. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Cloudera, Inc. licenses this file to you under the Apache License, Version 2.0 (the "License"); you ...
59.826667
104
0.872075
0
0
0
0
0
0
0
0
811
0.180744
0f7258c30ea450c0d6df7038fbaab0f28f88f98e
1,844
py
Python
wagtailshowsimilar/views.py
ongchi/wagtail-showsimilaritems
d358d8bb48b759e96bf7519bfe9925a6364cc7fc
[ "Apache-2.0" ]
null
null
null
wagtailshowsimilar/views.py
ongchi/wagtail-showsimilaritems
d358d8bb48b759e96bf7519bfe9925a6364cc7fc
[ "Apache-2.0" ]
null
null
null
wagtailshowsimilar/views.py
ongchi/wagtail-showsimilaritems
d358d8bb48b759e96bf7519bfe9925a6364cc7fc
[ "Apache-2.0" ]
null
null
null
from django.apps import apps from django.views.decorators.http import require_GET from django.http import JsonResponse from django.urls import reverse from wagtail.search.backends import get_search_backend from wagtail.core.models import Page backend = get_search_backend() @require_GET def search(request): searc...
34.792453
87
0.60141
0
0
0
0
1,566
0.849241
0
0
342
0.185466
0f73367ba6109ee049aa54a44a28f5bd872d3d4e
5,149
py
Python
views.py
zhoubogao/hhlyDevops
832684bb7fa4e67a23b2e6171ed0433fe0748de5
[ "Unlicense" ]
null
null
null
views.py
zhoubogao/hhlyDevops
832684bb7fa4e67a23b2e6171ed0433fe0748de5
[ "Unlicense" ]
null
null
null
views.py
zhoubogao/hhlyDevops
832684bb7fa4e67a23b2e6171ed0433fe0748de5
[ "Unlicense" ]
null
null
null
#-*-coding:utf-8-*- from flask import url_for, redirect, request, current_app from flask_admin.contrib.sqla import ModelView from flask_admin import AdminIndexView, helpers, expose from werkzeug.security import generate_password_hash from flask_login import current_user, login_user, logout_user from models import User,...
33.435065
85
0.619344
3,573
0.693921
0
0
0
0
0
0
1,246
0.241989
0f7394ec885b966aaf92685817a31c344da144b3
577
py
Python
unittests/validators.py
lspestrip/stdb2
80703385f6e681962140d82a4991878a995c90fd
[ "MIT" ]
1
2018-03-07T10:13:12.000Z
2018-03-07T10:13:12.000Z
unittests/validators.py
lspestrip/stdb2
80703385f6e681962140d82a4991878a995c90fd
[ "MIT" ]
31
2017-10-28T07:17:38.000Z
2018-05-11T11:28:02.000Z
unittests/validators.py
lspestrip/stdb2
80703385f6e681962140d82a4991878a995c90fd
[ "MIT" ]
1
2017-11-28T21:50:27.000Z
2017-11-28T21:50:27.000Z
# -*- encoding: utf-8 -*- VALID_REPORT_EXTENSIONS = [ '.pdf', '.doc', '.docx', '.html', '.htm', '.xsl', '.xslx', '.md', '.rst', '.zip', ] def validate_report_file_ext(value): import os from django.core.exceptions import ValidationError ext = os.path.splitext(value...
23.08
104
0.561525
0
0
0
0
0
0
0
0
157
0.272097
0f7407e7b2ba5174648101b672fee04fc30da7a2
2,531
py
Python
python/demo_confidence_map.py
doublechenching/UltrasondConfienceMap
e345b3fbf658817e3b4af57e32d5ecb4b7073595
[ "Apache-2.0" ]
13
2019-03-12T08:47:29.000Z
2022-03-01T18:07:30.000Z
python/demo_confidence_map.py
doublechenching/UltrasondConfienceMap
e345b3fbf658817e3b4af57e32d5ecb4b7073595
[ "Apache-2.0" ]
1
2020-06-16T14:29:30.000Z
2020-06-16T14:29:30.000Z
python/demo_confidence_map.py
doublechenching/UltrasondConfienceMap
e345b3fbf658817e3b4af57e32d5ecb4b7073595
[ "Apache-2.0" ]
2
2020-04-25T03:06:47.000Z
2020-06-02T02:59:55.000Z
#encoding: utf-8 from __future__ import print_function from skimage import io from confidence_map import confidence_map3d, confidence_map2d import numpy as np import pydicom from skimage.external.tifffile import imshow import time from matplotlib import pyplot as plt from skimage.exposure import rescale_intensity from ...
33.302632
100
0.671276
0
0
0
0
0
0
0
0
456
0.180166
0f75773a133923f483bf0f32ed5fc3578f9eaa52
1,566
py
Python
src/ui/pgUI.py
yuj09161/MoneyManager
32d57ca05d0c182ace68ea960a7bf7dfaad0fc79
[ "MIT" ]
null
null
null
src/ui/pgUI.py
yuj09161/MoneyManager
32d57ca05d0c182ace68ea960a7bf7dfaad0fc79
[ "MIT" ]
null
null
null
src/ui/pgUI.py
yuj09161/MoneyManager
32d57ca05d0c182ace68ea960a7bf7dfaad0fc79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'pg.ui' ## ## Created by: Qt User Interface Compiler version 6.0.0 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ########################...
31.959184
89
0.598978
1,095
0.699234
0
0
0
0
0
0
482
0.307791