hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
7928c5c04fb72d08fb684604cffaa731cc92dd66
11,963
py
Python
freesas/app/extract_ascii.py
maaeli/freesas
418cdd1b72ab650198453a06defa3a57e5c4daea
[ "MIT" ]
null
null
null
freesas/app/extract_ascii.py
maaeli/freesas
418cdd1b72ab650198453a06defa3a57e5c4daea
[ "MIT" ]
5
2020-07-04T15:58:16.000Z
2021-06-17T18:47:10.000Z
freesas/app/extract_ascii.py
maaeli/freesas
418cdd1b72ab650198453a06defa3a57e5c4daea
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # coding: utf-8 # # Project: freesas # https://github.com/kif/freesas # # Copyright (C) 2020 European Synchrotron Radiation Facility, Grenoble, France # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fi...
42.272085
322
0.655438
#!/usr/bin/python3 # coding: utf-8 # # Project: freesas # https://github.com/kif/freesas # # Copyright (C) 2020 European Synchrotron Radiation Facility, Grenoble, France # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fi...
4
0
0
0
0
1,186
0
-16
94
ac84974f2ca52ac2301d8a81d59e2c86d4cf9645
966
py
Python
config/urls.py
copydataai/clon-trello
f088a6da770d9cc32decad6ae45637207d91a80b
[ "MIT" ]
null
null
null
config/urls.py
copydataai/clon-trello
f088a6da770d9cc32decad6ae45637207d91a80b
[ "MIT" ]
null
null
null
config/urls.py
copydataai/clon-trello
f088a6da770d9cc32decad6ae45637207d91a80b
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView # API URLS urlpatterns = [ # API base url path(settings.ADMIN_URL, admin.site.urls), ...
35.777778
85
0.723602
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView # API URLS urlpatterns = [ # API base url path(settings.ADMIN_URL, admin.site.urls), ...
0
0
0
0
0
0
0
0
0
2a926b3a01ca9f414016203d9b6e5ec81586ac48
1,789
py
Python
lda_classification/model/tomotopy_lda_vectorizer.py
FeryET/lda_classification
530f972b8955c9f51668475ef640cb644f9b3ab7
[ "MIT" ]
8
2020-10-12T07:35:13.000Z
2022-02-24T21:30:31.000Z
lda_classification/model/tomotopy_lda_vectorizer.py
FeryET/LDAThis
530f972b8955c9f51668475ef640cb644f9b3ab7
[ "MIT" ]
null
null
null
lda_classification/model/tomotopy_lda_vectorizer.py
FeryET/LDAThis
530f972b8955c9f51668475ef640cb644f9b3ab7
[ "MIT" ]
3
2021-01-12T22:45:15.000Z
2022-01-15T02:25:04.000Z
""" tw=TermWeight.ONE, min_cf=0, min_df=0, rm_top=0, k=1, alpha=0.1, eta=0.01, seed=None, corpus=None, transform=None """
37.270833
79
0.642817
from sklearn.base import BaseEstimator, TransformerMixin from tomotopy import LDAModel import numpy as np from scipy.sparse import csr_matrix, csc_matrix """ tw=TermWeight.ONE, min_cf=0, min_df=0, rm_top=0, k=1, alpha=0.1, eta=0.01, seed=None, corpus=None, transform=None """ class TomotopyLDAVectorizer(BaseEstimato...
0
0
0
1,487
0
0
0
66
111
583a19b653c9fec90b8b140b1bbb0807eb12ad60
36
py
Python
lists.py
tacowerkz/tutor.py
90862013f3e4eed5648ced228e674c35217699c1
[ "MIT" ]
null
null
null
lists.py
tacowerkz/tutor.py
90862013f3e4eed5648ced228e674c35217699c1
[ "MIT" ]
null
null
null
lists.py
tacowerkz/tutor.py
90862013f3e4eed5648ced228e674c35217699c1
[ "MIT" ]
null
null
null
content = "my pride was beatufil"
9
33
0.694444
content = "my pride was beatufil"
0
0
0
0
0
0
0
0
0
62a3fa406c46839b1feec67c53ef310f2a088f02
110
py
Python
rllib/agents/__init__.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
rllib/agents/__init__.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
rllib/agents/__init__.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
from ray.rllib.agents.trainer import Trainer, with_common_config __all__ = ["Trainer", "with_common_config"]
27.5
64
0.8
from ray.rllib.agents.trainer import Trainer, with_common_config __all__ = ["Trainer", "with_common_config"]
0
0
0
0
0
0
0
0
0
5195691dea0aea3be0af683764406f56bcd8e61c
2,430
py
Python
tests/unit/test_utils.py
dataiku-research/mealy
039978fbb4bbda4e89e55ae05a75bdb3560191e2
[ "Apache-2.0" ]
12
2021-09-17T19:58:09.000Z
2022-03-22T16:04:05.000Z
tests/unit/test_utils.py
dataiku-research/mealy
039978fbb4bbda4e89e55ae05a75bdb3560191e2
[ "Apache-2.0" ]
16
2021-02-03T16:29:54.000Z
2021-05-27T14:15:52.000Z
tests/unit/test_utils.py
dataiku/mealy
52fa90aa2e8dc16cf846d0590fcd7ee710dcd862
[ "Apache-2.0" ]
null
null
null
from .. import generate_preprocessing_steps
39.836066
89
0.669136
from unittest import TestCase from unittest.mock import patch, Mock from sklearn.pipeline import Pipeline from sklearn.preprocessing import OneHotEncoder from .. import generate_preprocessing_steps class TestFeatureTransformer(TestCase): def test_generate_preprocessing_steps_pipeline(self): ohe = Mock(spe...
0
0
0
2,208
0
0
0
66
111
aeacda2fef2a86bb7a7109c214fc2efd28560e30
826
py
Python
tests/unit/test_base.py
Paperspace/paperspace-python
93bdacab520ffc538ecf4d142c5f84c40446d619
[ "0BSD" ]
47
2017-07-07T11:29:13.000Z
2021-03-15T21:49:56.000Z
tests/unit/test_base.py
Paperspace/paperspace-python
93bdacab520ffc538ecf4d142c5f84c40446d619
[ "0BSD" ]
14
2018-04-11T10:12:54.000Z
2019-05-31T16:17:28.000Z
tests/unit/test_base.py
Paperspace/paperspace-python
93bdacab520ffc538ecf4d142c5f84c40446d619
[ "0BSD" ]
7
2017-08-27T11:21:35.000Z
2019-06-03T23:52:47.000Z
output_response = ""
21.179487
71
0.575061
from collections import OrderedDict import mock from paperspace.commands.common import CommandBase output_response = "" class TestBaseClass(object): def test_json_print(self): global output_response output_response = "" def log_to_var(message): global output_response ...
0
0
0
679
0
0
0
33
91
fb366580413c75d908917d8f1e7f980034266206
2,389
py
Python
wencai/core/event.py
bruce2792/wencai
1b4e8bdcb02e594e575601c0893c1b356cc2256b
[ "MIT" ]
null
null
null
wencai/core/event.py
bruce2792/wencai
1b4e8bdcb02e594e575601c0893c1b356cc2256b
[ "MIT" ]
null
null
null
wencai/core/event.py
bruce2792/wencai
1b4e8bdcb02e594e575601c0893c1b356cc2256b
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- global_cn_col = False global_proxies = None verify = False
47.78
139
0.566764
# -*- coding:utf-8 -*- from wencai.core.crawler import Wencai global_cn_col = False global_proxies = None verify = False def set_variable(cn_col=False, proxies=None, is_verify=False): global global_cn_col, global_proxies, verify global_cn_col = cn_col global_proxies = proxies verify = is_verify def...
0
0
0
0
0
2,124
0
17
160
5f753cee051e2714203f37002751b3e9d750c1f6
1,946
py
Python
sustancia quimica.py
CodeHuntersLab/SustanciaQuimica
533955438a54fc1a70792ba32399d0c40d356b99
[ "Apache-2.0" ]
null
null
null
sustancia quimica.py
CodeHuntersLab/SustanciaQuimica
533955438a54fc1a70792ba32399d0c40d356b99
[ "Apache-2.0" ]
null
null
null
sustancia quimica.py
CodeHuntersLab/SustanciaQuimica
533955438a54fc1a70792ba32399d0c40d356b99
[ "Apache-2.0" ]
null
null
null
import turtle setup(600,490) bgcolor("white") title("Curie") estructuraquimica(5) hideturtle() turtle.exitonclick()
16.921739
47
0.644399
from turtle import* import turtle setup(600,490) bgcolor("white") title("Curie") def estructuraquimica(velocidad): cpq = turtle.Turtle() cpq.speed(velocidad) cpq.pencolor("black") cpq.pensize(3) cpq.begin_fill() cpq.penup() cpq.left(30) cpq.forward(280) cpq.pendown() cpq.right(175) cpq.fo...
2
0
0
0
0
1,774
0
-2
48
5db2263ca53d29361f1661366eb57fa44663825d
2,043
py
Python
application.py
phoughton/ensign
946b513c0df7ae82da73e9cd3b5fe04471e641de
[ "MIT" ]
null
null
null
application.py
phoughton/ensign
946b513c0df7ae82da73e9cd3b5fe04471e641de
[ "MIT" ]
null
null
null
application.py
phoughton/ensign
946b513c0df7ae82da73e9cd3b5fe04471e641de
[ "MIT" ]
null
null
null
from flask import Flask from fastai.learner import load_learner import pathlib import platform application = Flask(__name__) application.config['MAX_CONTENT_LENGTH'] = 12 * 1024 * 1024 MIN_STANDARD = 0.9 # Workaround pytorch issue with models developed on linux being used on Windows if platform.system() == 'Windows'...
37.145455
138
0.610866
from flask import Flask from flask import request, redirect, render_template from fastai.learner import load_learner import pathlib from fastai.vision.core import PILImage import platform application = Flask(__name__) application.config['MAX_CONTENT_LENGTH'] = 12 * 1024 * 1024 MIN_STANDARD = 0.9 # Workaround pytorch...
0
1,260
0
0
0
94
0
49
113
b9df7b6e2812f63f6fbc00dc9ee6b84c136862bd
5,655
py
Python
tcrdist/automate.py
agartland/tcrdist3
34f8d50e7448b2bf7cf7cd9ab9a2d80759f47240
[ "MIT" ]
26
2020-12-28T17:37:01.000Z
2022-01-29T01:31:13.000Z
tcrdist/automate.py
agartland/tcrdist3
34f8d50e7448b2bf7cf7cd9ab9a2d80759f47240
[ "MIT" ]
31
2020-08-17T22:17:57.000Z
2022-03-18T23:47:34.000Z
tcrdist/automate.py
agartland/tcrdist3
34f8d50e7448b2bf7cf7cd9ab9a2d80759f47240
[ "MIT" ]
7
2020-08-18T23:55:40.000Z
2021-09-22T18:15:54.000Z
""" Functions that automate expressive functions of tcrdist3. These use sensible defaults but users should consider flexibile elements of these functions that might better suit their specific data or research questions. """ """ Test Automatic Pgen Esimator Functions """ def auto_pgen(tcrrep): """ Automate a pge...
28.705584
101
0.770115
""" Functions that automate expressive functions of tcrdist3. These use sensible defaults but users should consider flexibile elements of these functions that might better suit their specific data or research questions. """ import os import pandas as pd import numpy as np import warnings from progress.bar import I...
0
0
0
0
0
435
0
-5
133
5052b9e7d291434daf0bf2dd403df7740ad1ec46
3,465
py
Python
install/app_store/tk-multi-publish/v0.10.7/python/tk_multi_publish/ui/item_list.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-publish/v0.10.7/python/tk_multi_publish/ui/item_list.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-publish/v0.10.7/python/tk_multi_publish/ui/item_list.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'item_list.ui' # # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost!
45.592105
193
0.715152
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'item_list.ui' # # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from tank.platform.qt import QtCore, QtGui class Ui_ItemList(object): def setupUi(self, ItemList): It...
0
0
0
3,165
0
0
0
26
69
836ce298a3d47bd247735f251ea9f154e23cbf09
1,093
py
Python
src/fractal/demon/basic/laws.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/demon/basic/laws.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/demon/basic/laws.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
""" *War* Parameters that govern the evaluation process that compares the current neural network with the best one seen so far (which is used to generate data). """ """ # Explanation (two-player games) * The two competing networks are instantiated into two MCTS players of parameter `mcts` and then pl...
26.02381
86
0.755718
""" *War* Parameters that govern the evaluation process that compares the current neural network with the best one seen so far (which is used to generate data). """ from dataclasses import dataclass """ # Explanation (two-player games) * The two competing networks are instantiated into two MCTS player...
0
0
0
0
0
0
0
12
23
e232881fe48e1a81885e2540f860a3181646607e
1,385
py
Python
tests/test_types.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
tests/test_types.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
tests/test_types.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
import numbers TESTSET = [ ( {'blob': {'$types': ['string']}}, lambda x: isinstance(x['blob'], str) ), ( {'blob': {'$types': ['number']}}, lambda x: isinstance(x['blob'], numbers.Number) ), ( {'blob': {'$types': ['boolean']}}, lambda x: isinstance(x['blob'], ...
24.732143
55
0.47509
import numbers import pytest TESTSET = [ ( {'blob': {'$types': ['string']}}, lambda x: isinstance(x['blob'], str) ), ( {'blob': {'$types': ['number']}}, lambda x: isinstance(x['blob'], numbers.Number) ), ( {'blob': {'$types': ['boolean']}}, lambda x: isinstan...
0
185
0
0
0
0
0
-8
68
63b3d331ef144c7ad74d79b4c3d07d950d9c17c3
358
py
Python
esque/cli/commands/create/__init__.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
29
2019-05-10T21:12:38.000Z
2021-08-24T08:09:49.000Z
esque/cli/commands/create/__init__.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
103
2019-05-17T07:21:41.000Z
2021-12-02T08:29:00.000Z
esque/cli/commands/create/__init__.py
real-digital/esque
0b779fc308ce8bce45c1903f36c33664b2e832e7
[ "MIT" ]
2
2019-05-28T06:45:14.000Z
2019-11-21T00:33:15.000Z
from .consumergroup import create_consumergroup from .topic import create_topic create.add_command(create_consumergroup) create.add_command(create_topic)
21.058824
79
0.815642
import click from esque.cli.options import State, default_options from .consumergroup import create_consumergroup from .topic import create_topic @click.group(help="Create a new instance of a resource.", no_args_is_help=True) @default_options def create(state: State): pass create.add_command(create_consumergr...
0
110
0
0
0
0
0
22
68
143ebc229df4891cea29b076302b9427e714e0b2
263
py
Python
pyvisdk/enums/net_bios_config_info_mode.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/net_bios_config_info_mode.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/net_bios_config_info_mode.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
######################################## # Automatically generated, do not edit. ######################################## from pyvisdk.thirdparty import Enum NetBIOSConfigInfoMode = Enum( 'disabled', 'enabled', 'enabledViaDHCP', 'unknown', )
16.4375
40
0.467681
######################################## # Automatically generated, do not edit. ######################################## from pyvisdk.thirdparty import Enum NetBIOSConfigInfoMode = Enum( 'disabled', 'enabled', 'enabledViaDHCP', 'unknown', )
0
0
0
0
0
0
0
0
0
0d30b15b243554dab45f11e6eedf8d4242270c45
2,949
py
Python
memobuilder/mtrainer/trainer.py
stbalduin/memobuilder
c99eb8e711d5109c1322f443441b5a07c079e2f0
[ "MIT" ]
null
null
null
memobuilder/mtrainer/trainer.py
stbalduin/memobuilder
c99eb8e711d5109c1322f443441b5a07c079e2f0
[ "MIT" ]
null
null
null
memobuilder/mtrainer/trainer.py
stbalduin/memobuilder
c99eb8e711d5109c1322f443441b5a07c079e2f0
[ "MIT" ]
null
null
null
""" """
35.963415
79
0.672092
""" """ from sklearn.model_selection import train_test_split from memobuilder import mtrainer as memotrainer from memobuilder.mdb import memomodel class SurrogateModelTrainer(object): def __init__(self, test_split_ratio=0.2, num_cv_folds=5): self.name = None self.metamodel_trainer = Tra...
0
0
0
2,742
0
0
0
73
121
93fdcad87fe85750724c2d69dc3e999a1759702d
2,208
py
Python
examples/hello_procedural.py
isabella232/wamr-python
44a296304c6649f03a22ff275a812db43efd068b
[ "Apache-2.0" ]
2
2022-03-07T05:04:39.000Z
2022-03-12T08:07:36.000Z
examples/hello_procedural.py
bytecodealliance/wamr-python
82e6a5678fb9e838f67ef6ed49a92f69eb85ff2c
[ "Apache-2.0" ]
2
2022-02-28T22:46:50.000Z
2022-03-04T03:22:39.000Z
examples/hello_procedural.py
isabella232/wamr-python
44a296304c6649f03a22ff275a812db43efd068b
[ "Apache-2.0" ]
4
2022-01-24T09:09:53.000Z
2022-03-20T19:06:27.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python3 # # Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # if __name__ == "__main__": main()
25.976471
87
0.699728
# -*- coding: utf-8 -*- #!/usr/bin/env python3 # # Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # import ctypes from wamr.ffi import * def hello_callback(args, results): print("Calling back...") print("> Hello World!") return 0 def...
0
0
0
0
0
1,888
0
-7
113
86403c36150e08b964402a883cb2a095cb0c3f46
7,001
py
Python
calm/dsl/cli/app_commands.py
nutanixdev/calm-dsl
90e1c583d7b9ac905cdfb3e2ad27f9f930e69831
[ "Apache-2.0" ]
null
null
null
calm/dsl/cli/app_commands.py
nutanixdev/calm-dsl
90e1c583d7b9ac905cdfb3e2ad27f9f930e69831
[ "Apache-2.0" ]
null
null
null
calm/dsl/cli/app_commands.py
nutanixdev/calm-dsl
90e1c583d7b9ac905cdfb3e2ad27f9f930e69831
[ "Apache-2.0" ]
null
null
null
from calm.dsl.log import get_logging_handle LOG = get_logging_handle(__name__)
26.123134
91
0.675189
import click from calm.dsl.api import get_api_client from .main import main, get, describe, delete, run, watch, download, create from .utils import Display, FeatureFlagGroup from .apps import ( get_apps, describe_app, run_actions, watch_action, watch_app, delete_app, download_runlog, c...
0
5,880
0
0
0
348
0
221
457
e64b049eeb4f79a38078cf1765056519e11a4996
9,116
py
Python
soundground/winman.py
bspst/soundground
28259ed1067e0b038a2bdf4a1902ac825fbaf762
[ "MIT" ]
6
2017-12-18T10:30:15.000Z
2021-08-05T14:09:38.000Z
soundground/winman.py
bspst/soundground
28259ed1067e0b038a2bdf4a1902ac825fbaf762
[ "MIT" ]
4
2017-12-21T14:19:17.000Z
2019-05-27T06:58:32.000Z
soundground/winman.py
bspst/soundground
28259ed1067e0b038a2bdf4a1902ac825fbaf762
[ "MIT" ]
4
2017-12-18T10:29:59.000Z
2018-06-03T09:02:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Window manager Coordinates in (y, x) to be consistent with curses """
26.270893
90
0.541904
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Window manager Coordinates in (y, x) to be consistent with curses """ from soundground import metadata, utils import curses import time class Value(object): """ Defines a number used for relative calculations """ def __init__(self, percent_value, absol...
0
0
0
8,813
0
0
0
0
182
49dad87a72c5c246404626aca65756c9887f9335
2,292
py
Python
setup.py
KuangDD/phkit
de6d12e6718b238714d233607cecd8e7df8436ce
[ "MIT" ]
113
2020-02-17T14:02:26.000Z
2021-08-06T07:43:10.000Z
setup.py
kuangdd/phkit
b4247416b5f0aa1f1522c6b1cd0e613c476491b2
[ "MIT" ]
2
2020-04-15T02:00:00.000Z
2020-06-09T09:14:16.000Z
setup.py
KuangDD/phkit
de6d12e6718b238714d233607cecd8e7df8436ce
[ "MIT" ]
26
2020-04-24T03:34:37.000Z
2021-08-05T04:47:08.000Z
#!usr/bin/env python # -*- coding: utf-8 -*- # author: kuangdd # date: 2019/12/15 """ whlpython setup.py bdist_wheel pypipython setup.py sdist upload twinepypi python setup.py bdist_wheel twine upload dist/phkit-0.3.0-py3-none-any.whl home.pypirc [distutils] index-servers=pypi [pypi] repository = https://upload.py...
26.344828
101
0.66274
#!usr/bin/env python # -*- coding: utf-8 -*- # author: kuangdd # date: 2019/12/15 """ 语音处理工具箱。 生成whl格式安装包:python setup.py bdist_wheel 直接上传pypi:python setup.py sdist upload 用twine上传pypi: 生成安装包:python setup.py bdist_wheel 上传安装包:twine upload dist/phkit-0.3.0-py3-none-any.whl 注意:需要在home目录下建立.pypirc配置文件,文件内容格式: [distutil...
303
0
0
0
0
418
0
0
46
b15a7575c351597937eb5f79e67946659d2392f1
3,229
py
Python
examples/attacks.py
dli7319/cmsc498v_convex
5578b8f07575860a93eb4894ce9f7b224c90cba9
[ "MIT" ]
349
2017-11-03T11:55:27.000Z
2022-03-24T10:45:21.000Z
examples/attacks.py
dli7319/cmsc498v_convex
5578b8f07575860a93eb4894ce9f7b224c90cba9
[ "MIT" ]
35
2018-02-27T21:57:52.000Z
2022-03-11T14:58:28.000Z
examples/attacks.py
dli7319/cmsc498v_convex
5578b8f07575860a93eb4894ce9f7b224c90cba9
[ "MIT" ]
84
2017-12-11T04:52:08.000Z
2021-11-03T06:27:56.000Z
import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms import torchvision.datasets as datasets
33.28866
119
0.593373
import torch from torch.autograd import Variable import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms import torchvision.datasets as datasets from convex_adversarial import robust_loss class Flatten(nn.Module): def forward(self, x): return x.view(x.size(0), -1) def...
0
0
0
67
0
2,773
0
26
227
8d1e337949743c66a06ba7436ef71c6e7a5e537b
925
py
Python
built-in/TensorFlow/Research/recommendation/DeepFM_for_TensorFlow/configs/config.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/TensorFlow/Research/recommendation/DeepFM_for_TensorFlow/configs/config.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Research/recommendation/DeepFM_for_TensorFlow/configs/config.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
BASE_DIR = './' num_gpu = 1 num_inputs = 39 num_features = 200000 batch_size = 16000 multi_hot_flags = [False] multi_hot_len = 1 n_epoches = 20 iteration_per_loop = 10 #one_step = 60/iteration_per_loop # for one step debug one_step = 0 line_per_sample = 1000 graph_path = "./" # n_step_update = 10 #test_record = "...
26.428571
87
0.762162
BASE_DIR = './' num_gpu = 1 num_inputs = 39 num_features = 200000 batch_size = 16000 multi_hot_flags = [False] multi_hot_len = 1 n_epoches = 20 iteration_per_loop = 10 #one_step = 60/iteration_per_loop # for one step debug one_step = 0 line_per_sample = 1000 graph_path = "./" # n_step_update = 10 #test_record = "...
0
0
0
0
0
0
0
0
0
3f9aaa71d7e7327d95e2013a050f319f927640be
1,803
py
Python
app.py
stone-payments/athena
15f548ce569be35e26ea4fd08488e0120da7a25e
[ "Apache-2.0" ]
2
2019-06-04T17:25:24.000Z
2019-07-10T15:05:10.000Z
app.py
stone-payments/athena
15f548ce569be35e26ea4fd08488e0120da7a25e
[ "Apache-2.0" ]
1
2021-06-01T21:45:31.000Z
2021-06-01T21:45:31.000Z
app.py
stone-payments/athena
15f548ce569be35e26ea4fd08488e0120da7a25e
[ "Apache-2.0" ]
2
2018-06-11T18:48:01.000Z
2020-06-22T12:40:29.000Z
from collectors_and_savers.saver import SaverThread db = Mongraph(db_name=db_name, db_url=db_url, username=username, password=password, mongo_port=mongo_port, hash_indexes=hash_indexes, hash_indexes_unique=hash_indexes_unique, full_text_indexes=full_text_indexes) save_queue = Queue(queue_ma...
40.977273
106
0.700499
from collections_edges import * from collectors_and_savers.saver import SaverThread from custom_configurations.config import * from graphql_queries.graphql_queries import * from mongodb_queries.mongodb_queries import * from mongodb_connect.mongraph import * from collection_modules.log_message import * db = Mongraph(db...
0
0
0
0
0
937
0
119
155
abb3449a5dfa589d6853531001a544c8fce20201
1,472
py
Python
dragonfire/conversational/corpus/ubuntudata.py
kameranis/Dragonfire
8ba4e588d3fd40257ed4e7ac9138f88d2bc0b3da
[ "MIT" ]
1
2019-06-12T17:12:29.000Z
2019-06-12T17:12:29.000Z
dragonfire/conversational/corpus/ubuntudata.py
kameranis/Dragonfire
8ba4e588d3fd40257ed4e7ac9138f88d2bc0b3da
[ "MIT" ]
2
2022-02-10T06:30:37.000Z
2022-02-10T06:50:22.000Z
dragonfire/deepconv/corpus/ubuntudata.py
Allyn69/Dragonfire
4c0e873e0bee3553bf14dfb1dded85e7fa515434
[ "MIT" ]
1
2019-01-16T05:10:38.000Z
2019-01-16T05:10:38.000Z
""" Ubuntu Dialogue Corpus http://arxiv.org/abs/1506.08909 """
26.285714
110
0.543478
import os from tqdm import tqdm """ Ubuntu Dialogue Corpus http://arxiv.org/abs/1506.08909 """ class UbuntuData: """ """ def __init__(self, dirName): """ Args: dirName (string): directory where to load the corpus """ self.MAX_NUMBER_SUBDIR = 10 self....
0
0
0
1,350
0
0
0
-12
68
be2da8598b6eb480599d3a639e5beaceb7a6775a
3,115
py
Python
cea/interfaces/arcgis/CityEnergyAnalyst.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/interfaces/arcgis/CityEnergyAnalyst.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/interfaces/arcgis/CityEnergyAnalyst.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
""" ArcGIS Toolbox for integrating the CEA with ArcGIS. ArcGIS starts by creating an instance of Toolbox, which in turn names the tools to include in the interface. These tools shell out to ``cli.py`` because the ArcGIS python version is old and can't be updated. Therefore we would decouple the python version used by...
37.083333
120
0.685393
""" ArcGIS Toolbox for integrating the CEA with ArcGIS. ArcGIS starts by creating an instance of Toolbox, which in turn names the tools to include in the interface. These tools shell out to ``cli.py`` because the ArcGIS python version is old and can't be updated. Therefore we would decouple the python version used by...
0
0
0
1,385
0
0
0
20
114
4de0c9a0b5e4267fc00eac9b3f4d73d0299cb74d
3,928
py
Python
junos_rest/parser.py
checktheroads/junos-rest
df9df95b13ac9d02e67c025a4e43d0ad112b7897
[ "WTFPL" ]
2
2020-01-24T21:54:50.000Z
2020-03-07T23:36:53.000Z
junos_rest/parser.py
checktheroads/junos-rest
df9df95b13ac9d02e67c025a4e43d0ad112b7897
[ "WTFPL" ]
null
null
null
junos_rest/parser.py
checktheroads/junos-rest
df9df95b13ac9d02e67c025a4e43d0ad112b7897
[ "WTFPL" ]
null
null
null
"""Parsing functions for JunOS XML/HTTP responses.""" # Third Party Imports from boltons.iterutils import remap # Project Imports _NAMESPACES = { "http://xml.juniper.net/xnm/1.1/xnm:error": "error", "http://xml.juniper.net/xnm/1.1/xnm:token": "token", "http://xml.juniper.net/xnm/1.1/xnm:message": "messag...
29.757576
87
0.613289
"""Parsing functions for JunOS XML/HTTP responses.""" # Third Party Imports import xmltodict from boltons.iterutils import remap # Project Imports from junos_rest.constants import RESULTS _NAMESPACES = { "http://xml.juniper.net/xnm/1.1/xnm:error": "error", "http://xml.juniper.net/xnm/1.1/xnm:token": "token",...
0
0
1,953
0
0
0
0
14
90
c2a4ae281d2e676fb1c503292ee3797a034eb4ce
384
py
Python
chapter-4/timeoutflow.py
outerbounds/dsbook
411b55c2057a3ba1e1d893cde03d6ec97d529969
[ "Apache-2.0" ]
27
2021-05-29T14:36:34.000Z
2022-03-22T10:12:40.000Z
chapter-4/timeoutflow.py
saibaldas/dsbook
be6b4670ed33a2001de8f28f6fb4151111cb26ca
[ "Apache-2.0" ]
null
null
null
chapter-4/timeoutflow.py
saibaldas/dsbook
be6b4670ed33a2001de8f28f6fb4151111cb26ca
[ "Apache-2.0" ]
6
2021-05-29T14:36:40.000Z
2022-03-09T14:57:46.000Z
if __name__ == '__main__': TimeoutFlow()
19.2
51
0.578125
from metaflow import FlowSpec, timeout, step, retry import time class TimeoutFlow(FlowSpec): @retry @timeout(seconds=5) @step def start(self): for i in range(int(time.time() % 10)): print(i) time.sleep(1) self.next(self.end) @step def end(self): ...
0
191
0
7
0
0
0
20
121
07a86dd4b6595df924e8f400e51ac15395925039
850
py
Python
ums/userapp/actions/__init__.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
ums/userapp/actions/__init__.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
ums/userapp/actions/__init__.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- actions = {} init_pkg()
25
49
0.515294
#-*- coding:utf-8 -*- import os actions = {} def init_pkg(): #print os.path.dirname(__file__) files = os.listdir(os.path.dirname(__file__)) for file in files: fns = file.split('.') if len(fns) < 2: continue if fns[1] != 'py': continue if fns[0] == '__...
0
0
0
0
0
747
0
-12
67
56000331a30f5b48371ea12bf125b26ee06aa709
1,950
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/common/html_diff.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
third_party/WebKit/Tools/Scripts/webkitpy/common/html_diff.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
third_party/WebKit/Tools/Scripts/webkitpy/common/html_diff.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Utility for outputting a HTML diff of two multi-line strings. The main purpose of this utility is to show the difference between text baselines (-expecte...
30
78
0.69641
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Utility for outputting a HTML diff of two multi-line strings. The main purpose of this utility is to show the difference between text baselines (-expecte...
0
0
0
0
0
740
0
-7
115
78d590937fe6d9686ecf625134b085c5f1e14ae5
6,373
py
Python
examples/cifar10/train.py
fidelity/stoke
7c993c4d1dcdfeae2a838c6396b88452dfa1b7ad
[ "Apache-2.0" ]
42
2021-06-23T19:36:54.000Z
2022-01-25T08:21:21.000Z
examples/cifar10/train.py
fidelity/stoke
7c993c4d1dcdfeae2a838c6396b88452dfa1b7ad
[ "Apache-2.0" ]
22
2021-06-23T20:31:49.000Z
2022-03-28T05:11:48.000Z
examples/cifar10/train.py
fidelity/stoke
7c993c4d1dcdfeae2a838c6396b88452dfa1b7ad
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright FMR LLC <opensource@fidelity.com> # SPDX-License-Identifier: Apache-2.0 """CIFAR10 training script demonstrating a few different stoke options Based loosely on: https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html """ if __name__ == "__main__": main()
34.080214
118
0.661855
# -*- coding: utf-8 -*- # Copyright FMR LLC <opensource@fidelity.com> # SPDX-License-Identifier: Apache-2.0 """CIFAR10 training script demonstrating a few different stoke options Based loosely on: https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html """ import torch import torchvision.datasets as tv_d...
0
0
0
0
0
5,588
0
180
290
1db5cbca273aa598c3db5c705adde5e13cc1fd2a
997
py
Python
module/standard-library/ftplib/app.py
treedbox/python-3-basic-exercises
631e86f8ad97bca7ab06e1f3ebd9d104fc5c43b8
[ "MIT" ]
null
null
null
module/standard-library/ftplib/app.py
treedbox/python-3-basic-exercises
631e86f8ad97bca7ab06e1f3ebd9d104fc5c43b8
[ "MIT" ]
null
null
null
module/standard-library/ftplib/app.py
treedbox/python-3-basic-exercises
631e86f8ad97bca7ab06e1f3ebd9d104fc5c43b8
[ "MIT" ]
null
null
null
from ftplib import FTP from os.path import abspath, join, dirname host = 'your.com' user = 'youlogin' password = 'yourpass' remotedir = '/folder/on/server/' filename = 'file.txt' localdir = abspath(dirname(__file__)) absFilePathAutoSlash = abspath(join(dirname(__file__), filename)) ftp = FTP(host) ftp.login(user=use...
20.770833
73
0.705115
from ftplib import FTP from os.path import abspath, join, dirname host = 'your.com' user = 'youlogin' password = 'yourpass' remotedir = '/folder/on/server/' filename = 'file.txt' localdir = abspath(dirname(__file__)) absFilePathAutoSlash = abspath(join(dirname(__file__), filename)) ftp = FTP(host) ftp.login(user=use...
0
0
0
0
0
218
0
0
44
b47d40a7073d5fdf1b8015c7eacb2aaf529a0e2f
1,649
py
Python
main.py
agranium/pydl
bdd076f5c21dbabb35b77ef48b68cc1a3fe713f2
[ "MIT" ]
null
null
null
main.py
agranium/pydl
bdd076f5c21dbabb35b77ef48b68cc1a3fe713f2
[ "MIT" ]
null
null
null
main.py
agranium/pydl
bdd076f5c21dbabb35b77ef48b68cc1a3fe713f2
[ "MIT" ]
null
null
null
""" pyDL Python Selenium CLI Chrome """ if __name__ == "__main__": cmd(obj={})
23.898551
105
0.606428
""" pyDL Python と Selenium を使用したCLIダウンローダー。 Chromeのプロファイルを指定するとキャッシュを流用できる。 """ import click import json import dl @click.group() @click.option('--incomplete', '-i', type=str, default='./incomplete', help='Incomplete Files Directory.') @click.option('--download', '-d', type=str, default='./download', help='Downloa...
117
1,390
0
0
0
0
0
-31
159
46023abe514a170bb1a44fa4af80bd684ee3edc3
700
py
Python
examples/Graph_Neural_Networks/Common/Node2vec.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
300
2020-08-09T04:27:41.000Z
2022-03-30T07:43:41.000Z
examples/Graph_Neural_Networks/Common/Node2vec.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
5
2020-11-05T06:16:50.000Z
2021-12-11T05:05:22.000Z
examples/Graph_Neural_Networks/Common/Node2vec.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
51
2020-09-23T15:37:12.000Z
2022-03-05T01:28:56.000Z
#!/usr/bin/env python # coding: utf-8 import graphgallery print("GraphGallery version: ", graphgallery.__version__) ''' Load Datasets - cora/citeseer/pubmed ''' from graphgallery.datasets import Planetoid data = Planetoid('cora', root="~/GraphData/datasets/", verbose=False) graph = data.graph splits = ...
26.923077
70
0.665714
#!/usr/bin/env python # coding: utf-8 import graphgallery print("GraphGallery version: ", graphgallery.__version__) ''' Load Datasets - cora/citeseer/pubmed ''' from graphgallery.datasets import Planetoid data = Planetoid('cora', root="~/GraphData/datasets/", verbose=False) graph = data.graph splits = ...
0
0
0
0
0
0
0
0
0
64d8298fd402b2365fa4d7ef66a2738ba51bdd1e
3,080
py
Python
embedding/tag_generation/gen_phraser_tags.py
akkefa/Islam-360
2fa49872f92e1abcb9a31a893b4654f7485711ae
[ "MIT" ]
null
null
null
embedding/tag_generation/gen_phraser_tags.py
akkefa/Islam-360
2fa49872f92e1abcb9a31a893b4654f7485711ae
[ "MIT" ]
null
null
null
embedding/tag_generation/gen_phraser_tags.py
akkefa/Islam-360
2fa49872f92e1abcb9a31a893b4654f7485711ae
[ "MIT" ]
null
null
null
"""gensim phrases tags""" from urduhack.preprocessing import remove_punctuation, replace_numbers from urduhack.tokenization.words import fix_join_words from sklearn.model_selection import ParameterGrid from urduhack import normalize from pathlib import Path import pandas as pd import json from gensim.models.phrases ...
35
104
0.666883
"""gensim phrases tags""" from urduhack.preprocessing import remove_punctuation, replace_numbers from urduhack.tokenization.words import fix_join_words from urduhack.tokenization import sentence_tokenizer from sklearn.model_selection import ParameterGrid from urduhack import normalize from urduhack.stop_words import S...
0
0
0
0
0
0
0
52
44
b09d3db0223f486b3224ce57b43da9812196989d
1,042
py
Python
tomef/tokenizer/pt_tokenizer.py
unlikelymaths/tomef
57b629a3ee932486c55afcf62ef9d8224488ae65
[ "MIT" ]
null
null
null
tomef/tokenizer/pt_tokenizer.py
unlikelymaths/tomef
57b629a3ee932486c55afcf62ef9d8224488ae65
[ "MIT" ]
14
2020-01-28T22:36:41.000Z
2022-03-11T23:44:22.000Z
tomef/tokenizer/pt_tokenizer.py
unlikelymaths/tomef
57b629a3ee932486c55afcf62ef9d8224488ae65
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # PT Tokenizer # <div style="position: absolute; right:0;top:0"><a href="./tokenizer.ipynb" style="text-decoration: none"> <font size="5"></font></a> # <a href="../evaluation.py.ipynb" style="text-decoration: none"> <font size="5"></font></a></div> # # This is a wrapper around ...
22.652174
135
0.691939
#!/usr/bin/env python # coding: utf-8 # # PT Tokenizer # <div style="position: absolute; right:0;top:0"><a href="./tokenizer.ipynb" style="text-decoration: none"> <font size="5">←</font></a> # <a href="../evaluation.py.ipynb" style="text-decoration: none"> <font size="5">↑</font></a></div> # # This is a wrapper aroun...
6
0
0
196
0
0
0
45
99
9e8b67848ea7acba12e81e06298ef6bed073818f
656
py
Python
benchmarks/xcrypto-ref/flow/benchmarks/mpn_plot_perf.py
gokhankici/iodine
7b5d00eb37bf31b9d1c4e69e176271244e86b26f
[ "MIT" ]
9
2019-05-31T08:52:38.000Z
2021-12-12T15:31:00.000Z
benchmarks/xcrypto-ref/flow/benchmarks/mpn_plot_perf.py
gokhankici/xenon
d749abd865f2017cda323cf63cf38b585de9e7af
[ "MIT" ]
6
2019-02-06T09:43:53.000Z
2019-06-04T11:10:19.000Z
benchmarks/xcrypto-ref/flow/benchmarks/mpn_plot_perf.py
gokhankici/iodine
7b5d00eb37bf31b9d1c4e69e176271244e86b26f
[ "MIT" ]
1
2021-01-30T00:03:25.000Z
2021-01-30T00:03:25.000Z
print("Running performance analysis...") print("Out dir : %s" % out_dir) print("Architecture: %s" % arch) import os import csv csv_records = [] csv_path = os.path.join(out_dir,"mpn-performance-%s.csv" % arch) for record in performance: func, lx,ly,instr_s,instr_e,cycle_s,cycle_e = record cycles = c...
19.878788
67
0.644817
print("Running performance analysis...") print("Out dir : %s" % out_dir) print("Architecture: %s" % arch) import os import sys import csv csv_records = [] csv_path = os.path.join(out_dir,"mpn-performance-%s.csv" % arch) for record in performance: func, lx,ly,instr_s,instr_e,cycle_s,cycle_e = record ...
0
0
0
0
0
0
0
-11
22
fe63b72ed28da50f68feedc662b5048cfcfa23e7
3,039
py
Python
test/integration/ggrc/services/test_audits.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/integration/ggrc/services/test_audits.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/services/test_audits.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for actions available on audits handle."""
33.395604
78
0.666667
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for actions available on audits handle.""" from ggrc.models import Audit from ggrc.models import Program from ggrc.models import all_models from integration.ggrc import generator from integration....
0
0
0
2,573
0
0
0
121
179
13944a47e76c26127157df1c29f339f9da38e2a0
1,110
py
Python
old_tests/test_stats_describe.py
acequia-package/Acequia
330b409cbb8faf8180608814669bf0efe27e5edd
[ "MIT" ]
null
null
null
old_tests/test_stats_describe.py
acequia-package/Acequia
330b409cbb8faf8180608814669bf0efe27e5edd
[ "MIT" ]
1
2020-02-14T13:57:48.000Z
2020-03-22T13:38:07.000Z
old_tests/test_stats_describe.py
acequia-package/acequia
330b409cbb8faf8180608814669bf0efe27e5edd
[ "MIT" ]
null
null
null
""" Test stats.Describe object """ import acequia as aq if __name__ == '__main__': srcdir = r'.\testdata\dinogws_smalltest\\' outdir = r'.\output\tables\\' fpath = f'{srcdir}B29A0016001_1.csv' gw = aq.GwSeries.from_dinogws(fpath) hdr('test self._create_list()') ds = aq.GwListStats...
20.555556
59
0.631532
""" Test stats.Describe object """ import acequia as aq def hdr(msg): print() print('#','-'*50) print(msg) print('#','-'*50) print() if __name__ == '__main__': srcdir = r'.\testdata\dinogws_smalltest\\' outdir = r'.\output\tables\\' fpath = f'{srcdir}B29A0016001_1.csv' ...
0
0
0
0
0
75
0
0
23
4d465e72fafc64cbd88dcb0a112954375940cf86
1,001
py
Python
setup.py
bhnwmc/txWS
f531030fc6eb005d6d48b865e490a8361017618d
[ "Apache-2.0" ]
30
2015-03-05T06:41:34.000Z
2020-07-24T15:52:15.000Z
setup.py
bhnwmc/txWS
f531030fc6eb005d6d48b865e490a8361017618d
[ "Apache-2.0" ]
7
2015-02-05T07:04:52.000Z
2019-06-14T03:08:58.000Z
setup.py
bhnwmc/txWS
f531030fc6eb005d6d48b865e490a8361017618d
[ "Apache-2.0" ]
11
2015-01-28T17:46:34.000Z
2021-01-13T14:49:12.000Z
#!/usr/bin/env python # Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
33.366667
79
0.724276
#!/usr/bin/env python # Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
0
0
0
0
0
0
0
0
0
b4ca760ef959bba41593c27920745d0def66d16f
1,322
py
Python
Course/Data structures and algorithms/3.Basic algorithm/3.Faster divide and conquer algorithms/1.DivideAndConquer.py
IulianOctavianPreda/Udacity
4349f4c12c838bcf3e53409f943ca8aacd58c94b
[ "MIT" ]
null
null
null
Course/Data structures and algorithms/3.Basic algorithm/3.Faster divide and conquer algorithms/1.DivideAndConquer.py
IulianOctavianPreda/Udacity
4349f4c12c838bcf3e53409f943ca8aacd58c94b
[ "MIT" ]
null
null
null
Course/Data structures and algorithms/3.Basic algorithm/3.Faster divide and conquer algorithms/1.DivideAndConquer.py
IulianOctavianPreda/Udacity
4349f4c12c838bcf3e53409f943ca8aacd58c94b
[ "MIT" ]
null
null
null
''' Divide and conquer In this section, we'll discuss algorithms that use a strategy called divide and conquer to solve problems more efficiently. The name comes from the idea that the algorithm will break (or divide) the problem down into sub-problems that can be more easily solved (or conquered). Then, the solution...
57.478261
218
0.791225
''' Divide and conquer In this section, we'll discuss algorithms that use a strategy called divide and conquer to solve problems more efficiently. The name comes from the idea that the algorithm will break (or divide) the problem down into sub-problems that can be more easily solved (or conquered). Then, the solution...
3
0
0
0
0
0
0
0
0
5e8c61986b2ee3ee2113d9b2bcebc7b147650893
4,034
py
Python
surreal/components/distribution_adapters/adapter_utils.py
rosea-tf/surreal
8abfb18538340d50146c9c44f5ecb8a1e7d89ac3
[ "Apache-2.0" ]
6
2019-12-17T17:56:26.000Z
2022-01-13T20:54:06.000Z
surreal/components/distribution_adapters/adapter_utils.py
rosea-tf/surreal
8abfb18538340d50146c9c44f5ecb8a1e7d89ac3
[ "Apache-2.0" ]
4
2019-11-04T07:17:27.000Z
2019-11-04T07:19:25.000Z
surreal/components/distribution_adapters/adapter_utils.py
rosea-tf/surreal
8abfb18538340d50146c9c44f5ecb8a1e7d89ac3
[ "Apache-2.0" ]
2
2019-11-29T15:38:54.000Z
2020-02-24T11:24:04.000Z
# Copyright 2019 ducandu GmbH, All Rights Reserved # (this is a modified version of the Apache 2.0 licensed RLgraph file of the same name). # # 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 # #...
49.195122
123
0.722608
# Copyright 2019 ducandu GmbH, All Rights Reserved # (this is a modified version of the Apache 2.0 licensed RLgraph file of the same name). # # 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 # #...
0
0
0
0
0
1,385
0
0
23
65641f137b8c739a193b1d0ca888e64d71a032f4
499
py
Python
src/dressup/exceptions.py
paw-lu/dressup
d6b7971c1d1dd2e365974dda62e06eb5c65b85d2
[ "MIT" ]
15
2020-05-23T20:47:47.000Z
2022-01-02T18:57:47.000Z
src/dressup/exceptions.py
paw-lu/dressup
d6b7971c1d1dd2e365974dda62e06eb5c65b85d2
[ "MIT" ]
154
2020-05-23T03:19:15.000Z
2021-09-10T03:21:21.000Z
src/dressup/exceptions.py
pscosta5/dressup
d6b7971c1d1dd2e365974dda62e06eb5c65b85d2
[ "MIT" ]
1
2021-04-13T16:11:13.000Z
2021-04-13T16:11:13.000Z
"""Exceptions for library."""
27.722222
66
0.687375
"""Exceptions for library.""" class DressUpException(Exception): """Base exception for all exceptions raised by the library.""" def __repr__(self) -> str: """Representation of DressUpException.""" return "DressUpException()" class InvalidUnicodeTypeError(DressUpException, ValueError): "...
0
0
0
421
0
0
0
0
46
3542a929fefdc83f5ff2de121cb95c8f14d2cd3b
50
py
Python
nlptasks/task_classification_tf_serving.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
4
2021-06-16T02:26:18.000Z
2021-09-24T11:06:51.000Z
nlptasks/task_classification_tf_serving.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
null
null
null
nlptasks/task_classification_tf_serving.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
null
null
null
# https://tf.wiki/zh_hans/deployment/serving.html
25
49
0.78
# https://tf.wiki/zh_hans/deployment/serving.html
0
0
0
0
0
0
0
0
0
4d667a256e662f4c1605b4cc20159387ea62d5a2
1,891
py
Python
00_Code/01_LeetCode/937_ReorderLogFiles.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
1
2017-06-11T04:57:07.000Z
2017-06-11T04:57:07.000Z
00_Code/01_LeetCode/937_ReorderLogFiles.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
00_Code/01_LeetCode/937_ReorderLogFiles.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
""" You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Then, either: Each word after the identifier will consist only of lowercase letters, or; Each word after the identifier will consist only of digits. We will call thes...
31.516667
239
0.645161
""" You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Then, either: Each word after the identifier will consist only of lowercase letters, or; Each word after the identifier will consist only of digits. We will call thes...
0
0
0
832
0
0
0
0
23
eb2e5538d2cce2417090de871132eac6854e10c8
14,637
py
Python
fluiddb/security/permission.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
3
2021-05-10T14:41:30.000Z
2021-12-16T05:53:30.000Z
fluiddb/security/permission.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
null
null
null
fluiddb/security/permission.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
2
2018-01-24T09:03:21.000Z
2021-06-25T08:34:54.000Z
from fluiddb.cache.permission import (CachingPermissionCheckerAPI) def checkPermissions(user, values): """Check permissions for a list of path-operation pairs. Note that the special C{fluiddb/id} virtual tag is handled as a special case. Specifically, the path presence checking logic doesn't raise ...
41.939828
79
0.651295
from fluiddb.cache.permission import ( CachingPermissionAPI, CachingPermissionCheckerAPI) from fluiddb.data.path import getParentPath from fluiddb.data.permission import Operation from fluiddb.data.user import Role from fluiddb.model.exceptions import UnknownPathError from fluiddb.security.exceptions import Permiss...
0
0
0
12,836
0
0
0
158
225
72aa92c823dc0961a51c54c84e22f66b923f6a2d
790
py
Python
legacy/python-har-daemon/harchiverd/settings.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
1
2021-05-18T21:47:29.000Z
2021-05-18T21:47:29.000Z
legacy/python-har-daemon/harchiverd/settings.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
67
2017-11-22T11:13:18.000Z
2022-03-25T09:48:49.000Z
legacy/python-har-daemon/harchiverd/settings.py
GilHoggarth/ukwa-manage
5893e9ea16c02e76eb81b2ccf7e161eeb183db9a
[ "Apache-2.0" ]
4
2020-01-17T17:23:54.000Z
2021-04-11T09:46:09.000Z
import os # Settings that can be overridden via environment variables. LOG_FILE = os.getenv("LOG_FILE", "/logs/harchiverd.log") LOG_LEVEL = os.getenv("LOG_LEVEL", 'DEBUG') OUTPUT_DIRECTORY = os.getenv("OUTPUT_DIRECTORY", "/images") WEBSERVICE = os.getenv("WEBSERVICE", "http://webrender:80...
41.578947
87
0.675949
import os import logging # Settings that can be overridden via environment variables. LOG_FILE = os.getenv("LOG_FILE", "/logs/harchiverd.log") LOG_LEVEL = os.getenv("LOG_LEVEL", 'DEBUG') OUTPUT_DIRECTORY = os.getenv("OUTPUT_DIRECTORY", "/images") WEBSERVICE = os.getenv("WEBSERVICE", "http...
0
0
0
0
0
0
0
-7
22
1810fa978d8c0e2c3c0d8729c38fd7f7e9fe5672
890
py
Python
demo4.py
KomaBeyond/docker-ImageManager
e94db1178ed396c56497ab77921eaf6db497dc67
[ "Apache-2.0" ]
null
null
null
demo4.py
KomaBeyond/docker-ImageManager
e94db1178ed396c56497ab77921eaf6db497dc67
[ "Apache-2.0" ]
null
null
null
demo4.py
KomaBeyond/docker-ImageManager
e94db1178ed396c56497ab77921eaf6db497dc67
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8 -*- if __name__ == '__main__': app = App(False) app.MainLoop()
24.722222
74
0.604494
#-*- coding:utf-8 -*- import wx from wx.py.shell import ShellFrame class Frame(wx.Frame): def __init__(self, title, size, pos=wx.DefaultPosition): super(Frame, self).__init__(None, title=title, size=size, pos=pos) panel = wx.Panel(self, -1) panel.SetBackgroundColour('#FFF') menuB...
0
0
0
708
0
0
0
1
91
162200112afc07095c82d163ecdcb944a828cc3b
6,617
py
Python
src/python/grpcio_tests/commands.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
117
2017-10-02T21:34:35.000Z
2022-03-02T01:49:03.000Z
src/python/grpcio_tests/commands.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
4
2017-10-03T22:45:30.000Z
2018-09-27T07:31:00.000Z
src/python/grpcio_tests/commands.py
txl0591/grpc
8b732dc466fb8a567c1bca9dbb84554d29087395
[ "Apache-2.0" ]
24
2017-10-31T12:14:15.000Z
2021-12-11T10:07:46.000Z
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
32.920398
82
0.646063
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
0
0
0
5,150
0
0
0
48
448
37e953ae2d41d39e1d47b0ae463e5e09d78db822
1,242
py
Python
bluebottle/payments/migrations/0007_auto_20210302_1417.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/payments/migrations/0007_auto_20210302_1417.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/payments/migrations/0007_auto_20210302_1417.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2021-03-02 13:17 from __future__ import unicode_literals
24.84
49
0.544283
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2021-03-02 13:17 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('payments', '0006_auto_20181115_1321'), ] operations = [ migrations.RemoveField( ...
0
0
0
1,070
0
0
0
11
46
7cc6ac075442c20c1dc60a1d477e25e3ee36bd5e
240
py
Python
poppurri/common/tests.py
ariel17/poppurri
56c2f7ec96402e96776b928cd8be5454f7c2ab67
[ "MIT" ]
null
null
null
poppurri/common/tests.py
ariel17/poppurri
56c2f7ec96402e96776b928cd8be5454f7c2ab67
[ "MIT" ]
12
2017-06-01T13:15:33.000Z
2017-06-01T13:15:35.000Z
poppurri/common/tests.py
ariel17/poppurri
56c2f7ec96402e96776b928cd8be5454f7c2ab67
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: TODO """ __author__ = "Ariel Gerardo Rios (ariel.gerardo.rios@gmail.com)" # Create your tests here. # vim: ai ts=4 sts=4 et sw=4 ft=python
16
64
0.675
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: TODO """ __author__ = "Ariel Gerardo Rios (ariel.gerardo.rios@gmail.com)" from django.test import TestCase # Create your tests here. # vim: ai ts=4 sts=4 et sw=4 ft=python
0
0
0
0
0
0
0
11
23
985de59aac4786ddd76c2cf63fc1fdf14bcaeafe
2,290
py
Python
app.py
joostrijneveld/eetvoorkeur
ca3887b6934992cb94f848f2cd9766d168a27af8
[ "CC0-1.0" ]
2
2016-04-03T21:53:52.000Z
2016-04-05T09:39:14.000Z
app.py
joostrijneveld/eetvoorkeur
ca3887b6934992cb94f848f2cd9766d168a27af8
[ "CC0-1.0" ]
null
null
null
app.py
joostrijneveld/eetvoorkeur
ca3887b6934992cb94f848f2cd9766d168a27af8
[ "CC0-1.0" ]
null
null
null
from flask import Flask from flask.ext.socketio import SocketIO from hashlib import sha256 app = Flask(__name__) app.config['SECRET_KEY'] = 'replaceme' app.config['ADMIN_URL'] = '/admin' app.config['DEBUG'] = True # Replace the above secrets and specify other overrides here, or alternatively, # create a config.py fil...
31.369863
79
0.649782
from flask import Flask from flask import render_template from flask.ext.socketio import SocketIO, emit from hashlib import sha256 import sys app = Flask(__name__) app.config['SECRET_KEY'] = 'replaceme' app.config['ADMIN_URL'] = '/admin' app.config['DEBUG'] = True # Replace the above secrets and specify other overrid...
0
974
0
0
0
0
0
7
159
893a15394e6fee261373c36aece687225e36317e
1,956
py
Python
src/anyvar/utils/formats.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
5
2020-09-28T14:25:17.000Z
2022-02-10T21:12:30.000Z
src/anyvar/utils/formats.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
5
2020-09-02T15:31:32.000Z
2021-12-01T05:30:53.000Z
src/anyvar/utils/formats.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
3
2020-09-02T15:30:04.000Z
2021-05-20T21:08:55.000Z
import re format_regexps = { "hgvs": [ # just the accession and variant type r"^[^:]+:[cgnopr]", ], "spdi": [ # SequenceId:Position:DeletionLength:InsertedSequence r"^[^:]+:\d+:(\d+|\w*):\w*" ], "gnomad": [ # 1-55516888-G-GA r"^\d+-\d+-\w*-\w*$", ...
27.942857
77
0.598671
import re format_regexps = { "hgvs": [ # just the accession and variant type r"^[^:]+:[cgnopr]", ], "spdi": [ # SequenceId:Position:DeletionLength:InsertedSequence r"^[^:]+:\d+:(\d+|\w*):\w*" ], "gnomad": [ # 1-55516888-G-GA r"^\d+-\d+-\w*-\w*$", ...
0
0
0
0
0
0
0
0
0
f0a58bb0b7b87f01c85d672d7ea6856595df2840
1,183
py
Python
examples/comm-broadcast-gather/gather.py
dapatil211/Jacinle
7638a46dc06223a1871d88f92aade644883f40a0
[ "MIT" ]
114
2018-01-25T04:44:07.000Z
2022-03-09T14:33:42.000Z
third_party/Jacinle/examples/comm-broadcast-gather/gather.py
dair-iitd/1oML_workdir
37117de4abf1774548786e9534c90977d67091d8
[ "Apache-2.0" ]
7
2018-05-08T17:02:24.000Z
2022-02-09T23:44:06.000Z
third_party/Jacinle/examples/comm-broadcast-gather/gather.py
dair-iitd/1oML_workdir
37117de4abf1774548786e9534c90977d67091d8
[ "Apache-2.0" ]
268
2018-04-08T10:54:35.000Z
2022-03-01T07:10:02.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : gather.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 02/16/2018 # # This file is part of Jacinle. # Distributed under terms of the MIT license. if __name__ == '__main__': main()
26.288889
96
0.640744
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : gather.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 02/16/2018 # # This file is part of Jacinle. # Distributed under terms of the MIT license. import time import multiprocessing as mp from jacinle.comm.gather import make_gather_pair fr...
0
0
0
0
0
706
0
49
159
d9e6de0f0279e1d093c59e51ba89d56cb207b7f2
12,247
py
Python
scripts/study_case/ID_4/torch_geometric/nn/models/autoencoder.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
8
2021-06-30T06:55:14.000Z
2022-03-18T01:57:14.000Z
scripts/study_case/ID_4/torch_geometric/nn/models/autoencoder.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
1
2021-06-30T03:08:15.000Z
2021-06-30T03:08:15.000Z
scripts/study_case/ID_4/torch_geometric/nn/models/autoencoder.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
2
2021-11-17T11:19:48.000Z
2021-11-18T03:05:58.000Z
EPS = 1e-15 MAX_LOGVAR = 10
35.914956
79
0.614191
import math import random import torch import numpy as np from sklearn.metrics import roc_auc_score, average_precision_score from scripts.study_case.ID_4.torch_geometric.utils import to_undirected from ..inits import reset EPS = 1e-15 MAX_LOGVAR = 10 def negative_sampling(pos_edge_index, num_nodes): idx = (pos...
0
92
0
11,081
0
676
0
69
294
439124cfc7c2672a2b3d34d8a8a39bceb022736b
2,731
py
Python
module1-introduction-to-sql/rpg_queries.py
rsskga/DS-Unit-3-Sprint-2-SQL-and-Databases
f4ad78d9bc7ac8296f951959c05b8a963cdc0e3b
[ "MIT" ]
null
null
null
module1-introduction-to-sql/rpg_queries.py
rsskga/DS-Unit-3-Sprint-2-SQL-and-Databases
f4ad78d9bc7ac8296f951959c05b8a963cdc0e3b
[ "MIT" ]
null
null
null
module1-introduction-to-sql/rpg_queries.py
rsskga/DS-Unit-3-Sprint-2-SQL-and-Databases
f4ad78d9bc7ac8296f951959c05b8a963cdc0e3b
[ "MIT" ]
null
null
null
# pylint: disable=invalid-name """Lambda module for learning sqlite3""" import os import sqlite3 ############################################################################### print(f"\n\n" + "#" * 79) print(f"Assignment - Part 1, Querying a Database") print(f"#" * 79 + "\n") ########################################...
32.903614
79
0.628341
# pylint: disable=invalid-name """Lambda module for learning sqlite3""" import os import sqlite3 ############################################################################### print(f"\n\n" + "#" * 79) print(f"Assignment - Part 1, Querying a Database") print(f"#" * 79 + "\n") ########################################...
0
0
0
0
0
0
0
0
0
a8f1c2f92a2a87a59db49f43ef8386117f292c81
5,706
py
Python
line_fit_video.py
WalesPeng/CarND-Advanced-Lane-Lines-P4
045caf4f8d47300533861301dd4d168b7d50926c
[ "MIT" ]
null
null
null
line_fit_video.py
WalesPeng/CarND-Advanced-Lane-Lines-P4
045caf4f8d47300533861301dd4d168b7d50926c
[ "MIT" ]
null
null
null
line_fit_video.py
WalesPeng/CarND-Advanced-Lane-Lines-P4
045caf4f8d47300533861301dd4d168b7d50926c
[ "MIT" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg import pickle from combined_thresh import combined_thresh from perspective_transform import perspective_transform from Line import Line from line_fit import line_fit, tune_fit, final_viz, calc_curve, calc_vehicle_offset, viz2...
29.874346
113
0.720995
import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg import pickle from combined_thresh import combined_thresh from perspective_transform import perspective_transform from Line import Line from line_fit import line_fit, tune_fit, final_viz, calc_curve, calc_vehicle_offset, viz2...
0
0
0
0
0
0
0
0
0
ad8de01e77855c8ebc55b3a4f85712d69afc8ece
1,203
py
Python
api/medication/migrations/0001_initial.py
SaitoBP/PetCard-API
48be97d019890f7022b48c4f4b00cec32c83b5ad
[ "MIT" ]
null
null
null
api/medication/migrations/0001_initial.py
SaitoBP/PetCard-API
48be97d019890f7022b48c4f4b00cec32c83b5ad
[ "MIT" ]
null
null
null
api/medication/migrations/0001_initial.py
SaitoBP/PetCard-API
48be97d019890f7022b48c4f4b00cec32c83b5ad
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-18 13:27
35.382353
136
0.575229
# Generated by Django 3.1.2 on 2020-10-18 13:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Medication', fields=[ ...
0
0
0
1,056
0
0
0
30
68
0d2bc9adb70264bb8fb1a7d109a00bf8f97db3a7
177
py
Python
app/codeprogress/urls.py
xXHachimanXx/fc-observability-elastic
c38b317371e96c118e2f17f99f62af75ac1634d7
[ "MIT" ]
null
null
null
app/codeprogress/urls.py
xXHachimanXx/fc-observability-elastic
c38b317371e96c118e2f17f99f62af75ac1634d7
[ "MIT" ]
3
2021-07-07T01:51:58.000Z
2021-07-13T19:31:57.000Z
app/codeprogress/urls.py
xXHachimanXx/fc-observability-elastic
c38b317371e96c118e2f17f99f62af75ac1634d7
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('exemplo/', include('exemplo.urls')), ]
25.285714
46
0.683616
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('exemplo/', include('exemplo.urls')), ]
0
0
0
0
0
0
0
0
0
52972f2e0ab5b92482162cce466332e563073968
2,046
py
Python
kyu_8/keep_hydrated/test_keep_hydrated.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_8/keep_hydrated/test_keep_hydrated.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_8/keep_hydrated/test_keep_hydrated.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # FUNDAMENTALS ALGORITHMS MATHEMATICS NUMBERS
34.677966
94
0.572825
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # FUNDAMENTALS ALGORITHMS MATHEMATICS NUMBERS import unittest import allure from utils.log_func import print_log from kyu_8.keep_hydrated.keep_hydrated import litres @allure.epic('8 kyu') @allure.p...
0
1,735
0
0
0
0
0
32
112
248d78344810e6b338422210a38378f7689101cf
6,041
py
Python
kontrasto/dominantcolors.py
nimasmi/kontrasto
08fc0279e2b3e1da1a5cec769874572455fd0527
[ "MIT" ]
13
2021-05-13T14:47:49.000Z
2022-03-23T08:11:02.000Z
kontrasto/dominantcolors.py
nimasmi/kontrasto
08fc0279e2b3e1da1a5cec769874572455fd0527
[ "MIT" ]
3
2021-05-08T21:53:53.000Z
2022-03-12T03:07:58.000Z
kontrasto/dominantcolors.py
nimasmi/kontrasto
08fc0279e2b3e1da1a5cec769874572455fd0527
[ "MIT" ]
2
2021-05-23T10:28:35.000Z
2021-11-28T18:59:54.000Z
# -*- coding: utf-8 -*- # https://github.com/wenmin-wu/dominant-colors-py __author__ = "wuwenmin1991@gmail.com" import numpy as np # lgtm [py/import-and-import-from] from numpy import linalg as LA from collections import deque def rgba2rgb(rgba): """ :param self: :param rgba: :return: """ ...
28.097674
96
0.639298
# -*- coding: utf-8 -*- # https://github.com/wenmin-wu/dominant-colors-py __author__ = "wuwenmin1991@gmail.com" import numpy as np # lgtm [py/import-and-import-from] from numpy import linalg as LA from PIL import Image from collections import deque class ColorNode(object): """""" def __init__(self): ...
0
537
0
590
0
1,863
0
0
137
98c77a54e9634f86794afb330c103e82685e8c5e
628
py
Python
users.py
mattgerstman/DMAssassins-2.0
89379274abb8d3084046764f92ae20ab548edc84
[ "MIT" ]
null
null
null
users.py
mattgerstman/DMAssassins-2.0
89379274abb8d3084046764f92ae20ab548edc84
[ "MIT" ]
null
null
null
users.py
mattgerstman/DMAssassins-2.0
89379274abb8d3084046764f92ae20ab548edc84
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import time import json outputList = [] if __name__ == "__main__": filename = sys.argv[1] namesList = open(filename,'r') for line in namesList: processLine(line) output = open('output.json','w') print json.dumps(outputList) output.write(json.dumps(outputList)) # json.du...
19.030303
37
0.700637
#!/usr/bin/env python import sys import time import json outputList = [] def processLine(line): line = line.strip() tokens = line.split(',') currentName = {} currentName['name']=tokens[0]; currentName['username']=tokens[1]; currentName['email']=tokens[2]; currentName['team']=tokens[3] # print currentName; g...
0
0
0
0
0
270
0
0
23
f957a9c68089ad99d3c73dc926e3a51f220c190f
1,473
py
Python
wordfreq.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
1
2019-12-28T12:31:28.000Z
2019-12-28T12:31:28.000Z
wordfreq.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
null
null
null
wordfreq.py
mas250/Python3
6ac6f0ffe7869cd7520b2ae0debf3650116a97b1
[ "MIT" ]
null
null
null
# Print the frequencies with which words occur in a file. The results are # printed with the words in the order that they occur in the file, but a # dictionary is used to keep a count of the words. Counting does not start # until a line starting with '***' has been seen and stops when another # line with '***' is found...
27.277778
74
0.573659
# Print the frequencies with which words occur in a file. The results are # printed with the words in the order that they occur in the file, but a # dictionary is used to keep a count of the words. Counting does not start # until a line starting with '***' has been seen and stops when another # line with '***' is found...
0
0
0
0
0
0
0
0
0
86a27767ddd3117fb570a0e5fd9ffcf5e7f820ec
43
py
Python
workflow/scripts/script1.py
kopardev/CCBR_ATACseq
be3f43213b67199ffd82db20eae3e7254d3d06cd
[ "MIT" ]
3
2021-02-28T23:10:52.000Z
2021-03-05T14:10:41.000Z
workflow/scripts/script1.py
CCBR/CCBR_cookiecutter
5bb3d2461fd717193b47f85b62909a9cfae06d24
[ "MIT" ]
5
2021-07-16T21:18:04.000Z
2021-11-30T16:22:39.000Z
workflow/scripts/script1.py
kopardev/CCBR_ATACseq
be3f43213b67199ffd82db20eae3e7254d3d06cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # some python script
14.333333
21
0.72093
#!/usr/bin/env python # some python script
0
0
0
0
0
0
0
0
0
ea4d7044f29cf6da8ac335089ace95bf89a971ae
2,063
py
Python
pytest_splunk_addon/helmut/exceptions/command_execution.py
harshshah2-crest/pytest-splunk-addon
fb6ad828edf90f14086380a18711eb831ee47349
[ "Apache-2.0" ]
39
2020-06-09T17:37:21.000Z
2022-02-08T01:57:35.000Z
pytest_splunk_addon/helmut/exceptions/command_execution.py
harshshah2-crest/pytest-splunk-addon
fb6ad828edf90f14086380a18711eb831ee47349
[ "Apache-2.0" ]
372
2020-04-15T13:55:09.000Z
2022-03-31T17:14:56.000Z
pytest_splunk_addon/helmut/exceptions/command_execution.py
isabella232/pytest-splunk-addon
5e6ae2b47df7a1feb6f358bbbd1f02197b5024f6
[ "Apache-2.0" ]
22
2020-05-06T10:43:45.000Z
2022-03-16T15:50:08.000Z
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
31.738462
95
0.63936
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
0
470
0
996
0
0
0
0
22
068ccc95099d081a9bfb7a27667dd7bc23e4e19d
28,617
py
Python
models/movies_ae.py
sneakyPad/decoding-latent-space-rs
bc7bfba5d6cf5a9d72f5c5393f394dee1025441a
[ "MIT" ]
null
null
null
models/movies_ae.py
sneakyPad/decoding-latent-space-rs
bc7bfba5d6cf5a9d72f5c5393f394dee1025441a
[ "MIT" ]
3
2021-06-08T22:42:59.000Z
2022-01-13T03:25:54.000Z
models/movies_ae.py
sneakyPad/decoding-latent-space-rs
bc7bfba5d6cf5a9d72f5c5393f394dee1025441a
[ "MIT" ]
null
null
null
# pip install pytorch-lightning # pip install neptune-client # %% from __future__ import print_function from pytorch_lightning.loggers import WandbLogger from pytorch_lightning.callbacks.progress import ProgressBar from pytorch_lightning.callbacks.early_stopping import EarlyStopping import torch import torch.utils.data...
46.836334
221
0.553517
# pip install pytorch-lightning # pip install neptune-client # %% from __future__ import print_function from pytorch_lightning.loggers import WandbLogger from pytorch_lightning.callbacks.progress import ProgressBar from sklearn.model_selection import train_test_split import ast from pytorch_lightning.callbacks.early_st...
4
0
0
17,268
0
218
0
52
244
dcd8bc8d995ff6a1bcabbed355c5cd615e0ffd11
791
py
Python
src/guid/settings.py
nwcell/guid_tracker
b8599d53748554870875b9477cd6b229c88915ac
[ "MIT" ]
3
2019-06-04T01:36:17.000Z
2021-05-16T18:52:21.000Z
src/guid/settings.py
nwcell/guid_tracker
b8599d53748554870875b9477cd6b229c88915ac
[ "MIT" ]
null
null
null
src/guid/settings.py
nwcell/guid_tracker
b8599d53748554870875b9477cd6b229c88915ac
[ "MIT" ]
null
null
null
"""Gathers environment settings and loads them into global attributes.""" from starlette.config import Config from starlette.datastructures import CommaSeparatedStrings, Secret config = Config('.env') # Main Configs DEBUG = config('DEBUG', cast=bool, default=False) TESTING = config('TESTING', cast=bool, default=Fals...
31.64
73
0.77244
"""Gathers environment settings and loads them into global attributes.""" from starlette.config import Config from starlette.datastructures import CommaSeparatedStrings, Secret config = Config('.env') # Main Configs DEBUG = config('DEBUG', cast=bool, default=False) TESTING = config('TESTING', cast=bool, default=Fals...
0
0
0
0
0
0
0
0
0
82fd730d2cc3c81e960e4539984731b1faf8fe70
2,492
py
Python
src/c_dataValidation/dataCrossValid.py
JacobSal/Generalized-Sklearn-ML-Pipeline
fafb9e577445c0b33afe4e4fd69fd60d28fb3eb2
[ "MIT" ]
null
null
null
src/c_dataValidation/dataCrossValid.py
JacobSal/Generalized-Sklearn-ML-Pipeline
fafb9e577445c0b33afe4e4fd69fd60d28fb3eb2
[ "MIT" ]
null
null
null
src/c_dataValidation/dataCrossValid.py
JacobSal/Generalized-Sklearn-ML-Pipeline
fafb9e577445c0b33afe4e4fd69fd60d28fb3eb2
[ "MIT" ]
1
2021-10-11T21:48:45.000Z
2021-10-11T21:48:45.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jan 13 19:02:19 2021 @author: Jacob Salminen @version: 1.0.20 """ #%% IMPORTS import os import sys SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.dirname(SCRIPT_DIR)) import multiprocessing as mp import numpy as np from os.path import dirname...
30.024096
98
0.660514
# -*- coding: utf-8 -*- """ Created on Wed Jan 13 19:02:19 2021 @author: Jacob Salminen @version: 1.0.20 """ #%% IMPORTS import os import sys SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.dirname(SCRIPT_DIR)) import time import multiprocessing as mp import numpy as np from os.path i...
0
0
0
0
0
0
0
-10
23
5cd4e25d6dd10ebe3a0b932449919e7e3b4bc73d
6,571
py
Python
filters/crop.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
4
2016-06-03T18:41:43.000Z
2020-04-17T20:28:58.000Z
filters/crop.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
filters/crop.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # Copyright (c) 2014-2022 The Voxie Authors # # 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,...
45.006849
177
0.66687
#!/usr/bin/python3 # # Copyright (c) 2014-2022 The Voxie Authors # # 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,...
0
0
0
0
0
0
0
-10
22
7e68bfb1f8a41591e36ec42e6b35cd48e95152fc
15,917
py
Python
buscador-ui.py
Maes95/BuscadorGitHubRepos
a8e0b7cae3b17d2e56f407c96bc074198f246a73
[ "Apache-2.0" ]
null
null
null
buscador-ui.py
Maes95/BuscadorGitHubRepos
a8e0b7cae3b17d2e56f407c96bc074198f246a73
[ "Apache-2.0" ]
null
null
null
buscador-ui.py
Maes95/BuscadorGitHubRepos
a8e0b7cae3b17d2e56f407c96bc074198f246a73
[ "Apache-2.0" ]
1
2021-05-23T15:24:34.000Z
2021-05-23T15:24:34.000Z
import configuracion as conf import filtrosQuery as fq import tkinter as tk from tkinter import ttk from tkinter import font from PIL import Image from PIL import ImageTk import pruebas app = tk.Tk() app.title("BuscadorGitHubRepos") width = '650' height = '700' app.geometry(width + 'x' + height) app.resizable(False, F...
33.299163
133
0.767921
import main import configuracion as conf import filtrosQuery as fq import tkinter as tk from tkinter import ttk from tkinter import font from tkinter import messagebox from PIL import Image from PIL import ImageTk import pruebas import repoBD import executeQuery import datetime app = tk.Tk() app.title("BuscadorGitHubR...
32
0
0
0
0
2,740
0
-17
225
2ac3e6f54e137617cc6d1e4f38eab93e0c218952
2,440
py
Python
cave_map.py
dylanmc/DungeonHero
59bcbd3964c8f46c41f2251e221d1fbee75b0d1d
[ "Unlicense" ]
null
null
null
cave_map.py
dylanmc/DungeonHero
59bcbd3964c8f46c41f2251e221d1fbee75b0d1d
[ "Unlicense" ]
null
null
null
cave_map.py
dylanmc/DungeonHero
59bcbd3964c8f46c41f2251e221d1fbee75b0d1d
[ "Unlicense" ]
null
null
null
rooms = { 'entrance_r' : {'desc': 'You are in the entrance to a huge cave system. The way you entered has collapsed behind you.', 'passages': {'north': 'passage_r'}, 'occupants': True, 'hostile': False, 'tag': 'entrance_r'}, 'passage_r' : {'desc': 'This is a long low north-south passage', 'passages': {'south': '...
174.285714
423
0.685246
rooms = { 'entrance_r' : {'desc': 'You are in the entrance to a huge cave system. The way you entered has collapsed behind you.', 'passages': {'north': 'passage_r'}, 'occupants': True, 'hostile': False, 'tag': 'entrance_r'}, 'passage_r' : {'desc': 'This is a long low north-south passage', 'passages': {'south': '...
0
0
0
0
0
0
0
0
0
6938b1ee2c87f1aa5d1f283c9b826a49ac986b1f
2,835
py
Python
hparams_sets.py
Xtuden-com/proteinfer
e2bc5c88eaae2ef3caca06c23592b1f85c82ca2e
[ "Apache-2.0" ]
40
2019-04-25T15:55:41.000Z
2022-03-31T19:24:29.000Z
hparams_sets.py
Xtuden-com/proteinfer
e2bc5c88eaae2ef3caca06c23592b1f85c82ca2e
[ "Apache-2.0" ]
20
2020-01-28T22:41:10.000Z
2022-02-24T01:41:14.000Z
hparams_sets.py
Xtuden-com/proteinfer
e2bc5c88eaae2ef3caca06c23592b1f85c82ca2e
[ "Apache-2.0" ]
14
2019-06-20T19:57:08.000Z
2022-01-29T17:30:07.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.302632
74
0.762963
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
0
0
0
0
0
0
0
0
0
bb30cf93ee5558a2039fa3fd1d55c73a999f07bd
3,384
py
Python
checklist/urls.py
cagandhi/Checklist-Django
c8edf1d8f821900a71f36abd34a76663d8d8f7da
[ "Apache-2.0" ]
3
2021-07-02T07:35:19.000Z
2022-01-14T11:14:14.000Z
checklist/urls.py
cagandhi/Checklist-Django
c8edf1d8f821900a71f36abd34a76663d8d8f7da
[ "Apache-2.0" ]
57
2021-01-31T23:39:57.000Z
2022-03-12T00:47:23.000Z
checklist/urls.py
cagandhi/Checklist-Django
c8edf1d8f821900a71f36abd34a76663d8d8f7da
[ "Apache-2.0" ]
3
2021-08-29T21:46:54.000Z
2022-03-24T13:10:00.000Z
from django.urls import path from . import views from .views import (BookmarkChecklistListView, CategoryChecklistListView, ChecklistCreateView, ChecklistDeleteView, ChecklistDetailView, ChecklistListView, ChecklistUpdateView, CommentDeleteView, CommentUpdateView, ItemCreateView, ItemDetailView, ItemUpdateView, SearchC...
26.645669
79
0.598109
from django.urls import path from . import views from .views import ( BookmarkChecklistListView, CategoryChecklistListView, ChecklistCreateView, ChecklistDeleteView, ChecklistDetailView, ChecklistListView, ChecklistUpdateView, CommentDeleteView, CommentUpdateView, ItemCreateView...
0
0
0
0
0
0
0
67
0
4cf1d8277af939a99b6ab67241ea44f42da9f0f0
2,616
py
Python
simpleredial/es/bm25_gray.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
36
2021-10-13T10:32:08.000Z
2022-03-20T07:50:05.000Z
simpleredial/es/bm25_gray.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
3
2021-11-24T10:57:59.000Z
2022-03-27T15:37:40.000Z
simpleredial/es/bm25_gray.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
1
2022-03-15T07:13:22.000Z
2022-03-15T07:13:22.000Z
from tqdm import tqdm import json '''Generate the BM25 gray candidates: Make sure the q-q BM25 index has been built ''' if __name__ == '__main__': args = vars(parser_args()) bsz = args['batch_size'] args['mode'] = 'test' args['model'] = 'dual-bert' # useless config = load_config(args) arg...
36.333333
93
0.620413
from .es_utils import * from tqdm import tqdm from config import * from dataloader.utils import * import argparse import json import ipdb '''Generate the BM25 gray candidates: Make sure the q-q BM25 index has been built ''' def parser_args(): parser = argparse.ArgumentParser() parser.add_argument('--dataset...
0
0
0
0
0
380
0
-6
133
6b175bc8f230cd5d4153dd91885f1fb35efcbc2b
9,665
py
Python
notifications/models.py
lyoniionly/django-notifications
36ad8ea4dd26445b5aa81d2c3e3688f9695d25be
[ "BSD-3-Clause" ]
null
null
null
notifications/models.py
lyoniionly/django-notifications
36ad8ea4dd26445b5aa81d2c3e3688f9695d25be
[ "BSD-3-Clause" ]
null
null
null
notifications/models.py
lyoniionly/django-notifications
36ad8ea4dd26445b5aa81d2c3e3688f9695d25be
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib.contenttypes.models import ContentType from django import get_version from distutils.version import StrictVersion if StrictVersion(get_version()) >= StrictVersion('1.8.0'): from django.contrib.contenttypes.fields import GenericForeignKey else: from six import t...
34.27305
130
0.662907
import datetime from django.conf import settings from django.contrib.contenttypes.models import ContentType from django import get_version from distutils.version import StrictVersion if StrictVersion(get_version()) >= StrictVersion('1.8.0'): from django.contrib.contenttypes.fields import GenericForeignKey else: ...
0
40
0
6,464
0
861
0
121
274
1df86ffb24e207d9ed6e859edcb0221b6c3fcfdd
987
py
Python
tests/mdpd/rest.py
LMNS3d/Mirheo
e710291502eb3d1b4001e3811f7b7d105af82c86
[ "MIT" ]
null
null
null
tests/mdpd/rest.py
LMNS3d/Mirheo
e710291502eb3d1b4001e3811f7b7d105af82c86
[ "MIT" ]
null
null
null
tests/mdpd/rest.py
LMNS3d/Mirheo
e710291502eb3d1b4001e3811f7b7d105af82c86
[ "MIT" ]
1
2021-07-14T13:24:05.000Z
2021-07-14T13:24:05.000Z
#!/usr/bin/env python import mirheo as mir dt = 0.001 ranks = (1, 1, 1) domain = (16, 16, 16) u = mir.Mirheo(ranks, domain, dt, debug_level=3, log_filename='log') pv = mir.ParticleVectors.ParticleVector('pv', mass = 1) ic = mir.InitialConditions.Uniform(number_density=3) u.registerParticleVector(pv, ic) rc = 1.0...
24.675
112
0.68997
#!/usr/bin/env python import mirheo as mir dt = 0.001 ranks = (1, 1, 1) domain = (16, 16, 16) u = mir.Mirheo(ranks, domain, dt, debug_level=3, log_filename='log') pv = mir.ParticleVectors.ParticleVector('pv', mass = 1) ic = mir.InitialConditions.Uniform(number_density=3) u.registerParticleVector(pv, ic) rc = 1.0...
0
0
0
0
0
0
0
0
0
cb6c8c56891034281b9e4e6a2fcf44f9933a1416
15,814
py
Python
tests/test_doc_maker.py
farazkhanfk7/hydra-python-core
fe18d88ceb375be4675bb89cddc5096eab27b675
[ "MIT" ]
20
2019-01-13T23:54:35.000Z
2021-11-25T09:04:58.000Z
tests/test_doc_maker.py
farazkhanfk7/hydra-python-core
fe18d88ceb375be4675bb89cddc5096eab27b675
[ "MIT" ]
63
2019-01-13T15:53:06.000Z
2021-07-23T08:15:09.000Z
tests/test_doc_maker.py
farazkhanfk7/hydra-python-core
fe18d88ceb375be4675bb89cddc5096eab27b675
[ "MIT" ]
29
2019-01-13T13:46:06.000Z
2021-12-16T13:01:56.000Z
import unittest if __name__ == '__main__': unittest.main()
36.187643
95
0.460857
import unittest import re from pyld import jsonld import requests from unittest.mock import patch from hydra_python_core import doc_maker, doc_writer from samples import doc_writer_sample_output class TestCreateClass(unittest.TestCase): """ Test Class for create_class method """ def setUp(self):...
0
13,686
0
1,739
0
0
0
47
271
145ed4c6d5e66f43b9f096486f8f3ef32e02247f
2,024
py
Python
Models/utils/UpConcat2d.py
rinkwitz/Thesis_Semantic_Image_Segmentation_on_Satellite_Imagery_using_UNets
75d3a4a536f6ef81fe0efd4f5fbba32b627a7472
[ "MIT" ]
1
2021-05-13T01:41:38.000Z
2021-05-13T01:41:38.000Z
Models/utils/UpConcat2d.py
rinkwitz/Thesis_Semantic_Image_Segmentation_on_Satellite_Imagery_using_UNets
75d3a4a536f6ef81fe0efd4f5fbba32b627a7472
[ "MIT" ]
null
null
null
Models/utils/UpConcat2d.py
rinkwitz/Thesis_Semantic_Image_Segmentation_on_Satellite_Imagery_using_UNets
75d3a4a536f6ef81fe0efd4f5fbba32b627a7472
[ "MIT" ]
1
2021-03-13T16:55:06.000Z
2021-03-13T16:55:06.000Z
import torch import torch.nn as nn if __name__ == '__main__': x_down = torch.randn((1, 128, 56, 56)) x_enc = torch.randn((1, 64, 111, 111)) upconcat = UpConcat2d(in_channels_conv=128, out_channels_conv=64) y = upconcat(x_down, x_enc) print(y.shape)
43.06383
130
0.596838
import torch import torch.nn as nn import torch.nn.functional as F class UpConcat2d(nn.Module): def __init__(self, in_channels_conv, out_channels_conv, scale_factor=2): super(UpConcat2d, self).__init__() self.in_channels_conv = in_channels_conv self.out_channels_conv = out_channels_conv ...
0
0
0
1,697
0
0
0
10
45
ad4dfcc231b01d6f7a34b848a1997d16cec5325b
408
py
Python
paraVerComoFuncionaAlgumasCoisas/tkinter-coisas/font/2.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
paraVerComoFuncionaAlgumasCoisas/tkinter-coisas/font/2.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
paraVerComoFuncionaAlgumasCoisas/tkinter-coisas/font/2.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import ttk from tkinter.font import Font root = tk.Tk() # definindo a fonte grandeFonte = Font( family='Helvetica', size=42, weight='bold', slant='roman', underline=0, overstrike=0 ) bt1 = ttk.Button(root, text='grande botao', font=grandeFonte) bt1.pack(pady=2...
19.428571
61
0.691176
import tkinter as tk from tkinter import ttk from tkinter.font import Font root = tk.Tk() # definindo a fonte grandeFonte = Font( family='Helvetica', size=42, weight='bold', slant='roman', underline=0, overstrike=0 ) bt1 = ttk.Button(root, text='grande botao', font=grandeFonte) bt1.pack(pady=2...
0
0
0
0
0
0
0
0
0
52a31f986b71f2a702e0fd6dd7a88bdeba486e9c
4,448
py
Python
services/api/tests/integration/keystone_authenticator_tests.py
ohsu-computational-biology/dms-aa
4aabae8b5ada539fa010a79970093c93fbbddb01
[ "MIT" ]
null
null
null
services/api/tests/integration/keystone_authenticator_tests.py
ohsu-computational-biology/dms-aa
4aabae8b5ada539fa010a79970093c93fbbddb01
[ "MIT" ]
10
2016-12-07T01:37:41.000Z
2017-01-20T22:20:52.000Z
services/api/tests/integration/keystone_authenticator_tests.py
ohsu-computational-biology/euler
4aabae8b5ada539fa010a79970093c93fbbddb01
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Test authenticator endpoints, depends on keystone """ from json import dumps def test_login(client, app): """ should respond with ok and user """ _development_login(client, app) def test_logout(client): """ should respond with ok and user """ r = client.po...
28.33121
76
0.653103
#!/usr/bin/env python """ Test authenticator endpoints, depends on keystone """ from keystone_authenticator import BearerAuth from json import dumps import os def test_encode_decode_token(): profile = {'foo': 'bar'} auth = BearerAuth() token = auth.make_token(profile) parsed = auth.parse_token(token) ...
0
0
0
73
0
3,384
0
12
320
03759f7ef9485cef2fe1d36eb23d05d79baaf451
177
py
Python
gtfs/apps.py
559Labs/GTFS-Builder
48ee90ecaa43eaf6e80a088c6a22153213118f13
[ "Apache-2.0" ]
2
2017-07-05T06:52:35.000Z
2021-04-15T08:53:23.000Z
gtfs/apps.py
MarconiMediaGroup/GTFS-Builder
48ee90ecaa43eaf6e80a088c6a22153213118f13
[ "Apache-2.0" ]
null
null
null
gtfs/apps.py
MarconiMediaGroup/GTFS-Builder
48ee90ecaa43eaf6e80a088c6a22153213118f13
[ "Apache-2.0" ]
2
2017-07-05T06:52:39.000Z
2018-02-11T01:54:43.000Z
#!/env/bin/python # -*- coding: utf-8 -*-
25.285714
53
0.683616
#!/env/bin/python # -*- coding: utf-8 -*- from django.apps import AppConfig class GTFSConfig(AppConfig): name = 'gtfs' verbose_name = 'General Transit Feed Spec (GTFS)'
0
0
0
79
0
0
0
12
45
20cdadc43f7f0fbddcc40c1c7b51c46475d844b7
2,384
py
Python
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
1
2019-12-16T16:45:11.000Z
2019-12-16T16:45:11.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
3
2021-06-04T22:05:06.000Z
2021-09-22T18:05:05.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Brand, Product, Profile, Instagram, OrderItem, Order # Register your models here. make_published.short_description = "Mark selected stories as published" admin.site.register(Brand,BrandAdmin) admin.site.register(Product, ProductAdmin) admin.site.register(...
40.40678
149
0.707215
from django.contrib import admin from .models import Brand, Product, Profile, Instagram, OrderItem,Order from django.utils.html import format_html # Register your models here. def make_published(modeladmin, request, queryset): queryset.update(name='Váy') make_published.short_description = "Mark selected stories as...
2
0
0
1,651
0
60
0
19
184
b9e502d8b076c558257d6bd137f2d54d711a28a6
7,084
py
Python
server/main/components/base_config_components.py
INRIM/forms-theme-italia
45415a16e32c8c93ee8d234262149ed0635cf212
[ "MIT" ]
null
null
null
server/main/components/base_config_components.py
INRIM/forms-theme-italia
45415a16e32c8c93ee8d234262149ed0635cf212
[ "MIT" ]
null
null
null
server/main/components/base_config_components.py
INRIM/forms-theme-italia
45415a16e32c8c93ee8d234262149ed0635cf212
[ "MIT" ]
null
null
null
# 2020 Alessio Gerace @ Inrim import os import importlib import logging import ipaddress as ipaddr logger = logging.getLogger() alert_base = { "succcess": { "alert_type": "success", "message": "Dati aggiornati con successo", "add_class": " mx-auto col-6 ", "hide_close_btn": True ...
24.85614
91
0.568323
# 2020 Alessio Gerace @ Inrim import os import importlib import importlib.util import json from datetime import datetime import logging import base64 from typing import Union import ipaddress as ipaddr import requests import re logger = logging.getLogger() alert_base = { "succcess": { "alert_type": "succe...
0
0
0
0
0
2,402
0
-25
407
71fd6f825b0e853244a11e601de1ff17cf9411b9
304
py
Python
Python 3.8/1159 - Soma de Pares Consecutivos.py
JhonatanGuilherme/BeeCrowd
e039f8128399697ad9eb75f48047b83eb7b0201e
[ "MIT" ]
null
null
null
Python 3.8/1159 - Soma de Pares Consecutivos.py
JhonatanGuilherme/BeeCrowd
e039f8128399697ad9eb75f48047b83eb7b0201e
[ "MIT" ]
null
null
null
Python 3.8/1159 - Soma de Pares Consecutivos.py
JhonatanGuilherme/BeeCrowd
e039f8128399697ad9eb75f48047b83eb7b0201e
[ "MIT" ]
null
null
null
X = 1 CONTADOR = 0 CONTADOR2 = 0 while True: X = int(input()) CONTADOR = 0 CONTADOR2 = 0 if X == 0: break while CONTADOR2 != 5: if X % 2 == 0: CONTADOR += X CONTADOR2 += 1 X += 1 else: X += 1 print(CONTADOR)
16.888889
26
0.417763
X = 1 CONTADOR = 0 CONTADOR2 = 0 while True: X = int(input()) CONTADOR = 0 CONTADOR2 = 0 if X == 0: break while CONTADOR2 != 5: if X % 2 == 0: CONTADOR += X CONTADOR2 += 1 X += 1 else: X += 1 print(CONTADOR)
0
0
0
0
0
0
0
0
0
d4dd2c22dd4eddd3b4f5117bb1b34652e7415566
900
py
Python
setup.py
Cmiroslaf/protoc-gen-stub
3e3937ae0420c359437f8afdf0a1a9224a981675
[ "MIT" ]
2
2019-02-18T00:37:00.000Z
2019-03-06T13:10:06.000Z
setup.py
Cmiroslaf/protoc-gen-stub
3e3937ae0420c359437f8afdf0a1a9224a981675
[ "MIT" ]
null
null
null
setup.py
Cmiroslaf/protoc-gen-stub
3e3937ae0420c359437f8afdf0a1a9224a981675
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="ProtoC Python Typing generator plugin", version="0.2", install_requires=['protobuf'], scripts=['protoc-gen-python_grpc_typings', 'protoc-gen-python_typings'], packages=['stubs_generator'], # metadata for upload to PyPI author="Miroslav Cibulka", ...
33.333333
94
0.694444
from setuptools import setup setup( name="ProtoC Python Typing generator plugin", version="0.2", install_requires=['protobuf'], scripts=['protoc-gen-python_grpc_typings', 'protoc-gen-python_typings'], packages=['stubs_generator'], # metadata for upload to PyPI author="Miroslav Cibulka", ...
0
0
0
0
0
0
0
0
0
c74ce96c0653aea7fa697eeba2df372f73853100
8,831
py
Python
applications/incompressible_fluid_application/python_scripts/xivas_solver.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
2
2019-10-25T09:28:10.000Z
2019-11-21T12:51:46.000Z
applications/incompressible_fluid_application/python_scripts/xivas_solver.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
13
2019-10-07T12:06:51.000Z
2020-02-18T08:48:33.000Z
applications/incompressible_fluid_application/python_scripts/xivas_solver.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
1
2020-06-12T08:51:24.000Z
2020-06-12T08:51:24.000Z
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # -*- coding: utf-8 -*- # importing the Kratos Library
35.898374
179
0.672857
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # -*- coding: utf-8 -*- # importing the Kratos Library from KratosMultiphysics import * from KratosMultiphysics.IncompressibleFluidApplication import * import edgebased_eulerian_solver ...
0
0
0
7,194
0
1,208
0
54
181
ed8c4eb7ebc03d9f971b6d8c95f021560300ca10
1,654
py
Python
assignments/flask-adopt/forms.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
assignments/flask-adopt/forms.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
17
2021-03-24T14:59:50.000Z
2022-03-05T23:52:31.000Z
assignments/flask-adopt/forms.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
"""Forms for our demo Flask app.""" # https://wtforms.readthedocs.io/en/3.0.x/validators/#built-in-validators
33.755102
83
0.673519
"""Forms for our demo Flask app.""" from flask_wtf import FlaskForm from wtforms import StringField, FloatField, DateField, IntegerField from wtforms.validators import InputRequired, Optional, Email, URL, ValidationError def valid_species(): message = 'Must be a cat, dog, or porcupine.' def _species(form, f...
0
0
0
825
0
437
0
119
159
b6967ce933687a0a88fe4170f3865b2a931b9eb9
17,196
py
Python
subt/artf_node.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
12
2017-02-16T10:22:59.000Z
2022-03-20T05:48:06.000Z
subt/artf_node.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
618
2016-08-30T04:46:12.000Z
2022-03-25T16:03:10.000Z
subt/artf_node.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
11
2016-08-27T20:02:55.000Z
2022-03-07T08:53:53.000Z
""" OSGAR ArtifactDetectorDNN wrapper for DNN detector """ import numpy as np try: except ImportError: print('\nWarning: missing torch!\n') from osgar.lib.depth import decompress as decompress_depth from osgar.lib.quaternion import transform from subt.artf_utils import NAME2IGN def result2report(result, dept...
45.734043
202
0.598221
""" OSGAR ArtifactDetectorDNN wrapper for DNN detector """ import os.path from io import StringIO import cv2 import numpy as np from subt.tf_detector import CvDetector try: import torch import subt.artf_model from subt.artf_detector import Detector except ImportError: print('\nWarning: missing torch!...
0
0
0
9,207
0
2,362
0
98
376
84f273e313c7cafb5c945e0360110c5397237ff6
2,595
py
Python
m2g/functional/m2g_func.py
caseypw/m2g
be29587322ab1fafb96f6afb726efbdb39b64b66
[ "Apache-2.0" ]
null
null
null
m2g/functional/m2g_func.py
caseypw/m2g
be29587322ab1fafb96f6afb726efbdb39b64b66
[ "Apache-2.0" ]
null
null
null
m2g/functional/m2g_func.py
caseypw/m2g
be29587322ab1fafb96f6afb726efbdb39b64b66
[ "Apache-2.0" ]
null
null
null
import subprocess import yaml def make_dataconfig(input_dir, sub, ses, anat, func, acquisition='alt+z', tr=2.0): """Generates the data_config file needed by cpac Arguments: input_dir {str} -- Path of directory containing input files sub {int} -- subject number ses {int} -- session ...
33.269231
167
0.625434
import subprocess import yaml from m2g.utils.gen_utils import run def make_dataconfig(input_dir, sub, ses, anat, func, acquisition='alt+z', tr=2.0): """Generates the data_config file needed by cpac Arguments: input_dir {str} -- Path of directory containing input files sub {int} -- subject ...
0
0
0
0
0
499
0
14
45
7aca254d3351af954dc659bc9bef1a61dfdb5e5e
1,234
py
Python
ga/chromosome.py
dollking/optimize
4918c059d1db44f17520c8edca82071665fc459f
[ "MIT" ]
null
null
null
ga/chromosome.py
dollking/optimize
4918c059d1db44f17520c8edca82071665fc459f
[ "MIT" ]
null
null
null
ga/chromosome.py
dollking/optimize
4918c059d1db44f17520c8edca82071665fc459f
[ "MIT" ]
1
2018-10-17T10:59:48.000Z
2018-10-17T10:59:48.000Z
""" optimize.ga.chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Implements class for manage chromosome. :copyright: Hwang.S.J. :license: MIT LICENSE 1.0 . """
29.380952
130
0.584279
""" optimize.ga.chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Implements class for manage chromosome. :copyright: Hwang.S.J. :license: MIT LICENSE 1.0 . """ from .gene import Gene class Chromosome(object): def __init__(self): self.chromosome = [] def add_gene(self, dtype, value_range, is...
0
543
0
474
0
0
0
1
46
7ae4a4250856757b73353ecdc3375b349f34ea42
257
py
Python
fourthcol_irisdata.py
karolinaszafranbelzowska/Fisher-s-Iris-Data-Set-2019
5ad7fb98ab65d268dd7a9ebebd13eb00970ddc4b
[ "Apache-2.0" ]
null
null
null
fourthcol_irisdata.py
karolinaszafranbelzowska/Fisher-s-Iris-Data-Set-2019
5ad7fb98ab65d268dd7a9ebebd13eb00970ddc4b
[ "Apache-2.0" ]
null
null
null
fourthcol_irisdata.py
karolinaszafranbelzowska/Fisher-s-Iris-Data-Set-2019
5ad7fb98ab65d268dd7a9ebebd13eb00970ddc4b
[ "Apache-2.0" ]
null
null
null
# Karolina Szafran-Belzowska, 2019/04/25 # Iris flower data analysis # fourth column (petal width) import csv with open('irisdata_project_2019.csv') as data: readCSV = csv.reader(data, delimiter=',') for row in readCSV: print(row[3])
21.416667
47
0.684825
# Karolina Szafran-Belzowska, 2019/04/25 # Iris flower data analysis # fourth column (petal width) import csv with open('irisdata_project_2019.csv') as data: readCSV = csv.reader(data, delimiter=',') for row in readCSV: print(row[3])
0
0
0
0
0
0
0
0
0
06052d8a020642bc0f3198dc472d5dedaee5f8ae
752
py
Python
units/data_transfer_rate/giga_bytes_per_second.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
units/data_transfer_rate/giga_bytes_per_second.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
units/data_transfer_rate/giga_bytes_per_second.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
# <auto-generated> # This code was generated by the UnitCodeGenerator tool # # Changes to this file will be lost if the code is regenerated # </auto-generated>
26.857143
62
0.772606
# <auto-generated> # This code was generated by the UnitCodeGenerator tool # # Changes to this file will be lost if the code is regenerated # </auto-generated> def to_bits_per_second(value): return value * 8e+9 def to_kilo_bits_per_second(value): return value * 8e+6 def to_mega_bits_per_second(value): return val...
0
0
0
0
0
370
0
0
221
8cebba237c8e389f277f2889ff4f34d7ad956646
1,635
py
Python
Chat Project/gui.py
kitusmark/bash-python
2b6eea9ed20879a7c74342c926f831d25667fe2b
[ "MIT" ]
1
2016-07-30T07:23:47.000Z
2016-07-30T07:23:47.000Z
Chat Project/gui.py
kitusmark/bash-python
2b6eea9ed20879a7c74342c926f831d25667fe2b
[ "MIT" ]
null
null
null
Chat Project/gui.py
kitusmark/bash-python
2b6eea9ed20879a7c74342c926f831d25667fe2b
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2.7 #GUI for the Chat Project program #We're using Tkinter module #Our App will be class based so: root = Tk() c= Chat(root) #Size and Name of the main window nomFinestra = 'EiFC Xat' root.title(nomFinestra) root.geometry('400x500') root.resizable(width=FALSE, height=FALSE) root.mainloop()...
24.772727
110
0.682569
#!/usr/local/bin/python2.7 #GUI for the Chat Project program #We're using Tkinter module from Tkinter import * import tkMessageBox #Module used for system info boxes #Our App will be class based so: class Chat: def __init__(self, master): # ************* Menu ************** menubar = Menu(master) menubar.ad...
0
0
0
1,213
0
0
0
-2
103
d2b2219ce4263d3cd8e7b7e0b1889793b68e5312
948
py
Python
ciphers/rail-fence-cipher.py
CipherVision/Traditional-Ciphers
dbf8ca376fa3883f63469327362b61ca4b468ecd
[ "MIT" ]
null
null
null
ciphers/rail-fence-cipher.py
CipherVision/Traditional-Ciphers
dbf8ca376fa3883f63469327362b61ca4b468ecd
[ "MIT" ]
null
null
null
ciphers/rail-fence-cipher.py
CipherVision/Traditional-Ciphers
dbf8ca376fa3883f63469327362b61ca4b468ecd
[ "MIT" ]
null
null
null
#END FUNCTIONS m = "CHECKUNDERTHEFLOORBOARD" c = railFenceCipher(m, 2) #Choose a key print("--Begin Encryption--") for k in range(2, 11): print("Key %s: %s" % (k, railFenceCipher(m, k))) print("--End Encryption--\n") print("--Begin Decryption--") for k in range(2, 11): print("Key %s: %s" % (k, railFenceCipher(...
20.608696
56
0.472574
def railFenceCipher(c, k, d=False): g = [[] for i in range(k)] c = list(c.upper().replace(" ", "")) x = 0 l = 1 if(d): m = "" l = k+1 for r in range(l): cr = 0 dn = True for i in range(len(c)): if(not d): g[cr].append(c[i]) else: if(r < k): if(cr == ...
0
0
0
0
0
564
0
0
22
cc34751535f1ec9fc1a3695926c040f47233da5a
3,386
py
Python
rapt/events.py
yougov/rapt
927332b2893522e20fa6041077de498ec8e275ae
[ "BSD-3-Clause" ]
1
2015-03-24T20:01:34.000Z
2015-03-24T20:01:34.000Z
rapt/events.py
yougov/rapt
927332b2893522e20fa6041077de498ec8e275ae
[ "BSD-3-Clause" ]
null
null
null
rapt/events.py
yougov/rapt
927332b2893522e20fa6041077de498ec8e275ae
[ "BSD-3-Clause" ]
1
2022-03-26T10:08:33.000Z
2022-03-26T10:08:33.000Z
FORMAT_TMPL = '{time} {title} {tags}'
29.189655
75
0.544891
class SwarmEventProps(object): @property def deploy_title(self): if not hasattr(self, '_deploy_title'): self._deploy_title = '%s-%s-%s' % (self.app_name, self.version, self.proc_name) retur...
0
492
0
1,757
474
451
0
0
168
ac96ef5486bcf3bff0f0f8a68f711530b47e5db9
563
py
Python
module/mail/mail.py
yangwenke2010/template_crawler
b95e626184cda21d2abe01fd1f2b399e4946e782
[ "Apache-2.0" ]
4
2018-12-16T15:06:20.000Z
2022-03-09T11:18:11.000Z
module/mail/mail.py
yangwenke2010/template_crawler
b95e626184cda21d2abe01fd1f2b399e4946e782
[ "Apache-2.0" ]
1
2018-10-12T07:32:13.000Z
2018-10-12T07:32:13.000Z
module/mail/mail.py
yangwenke2010/template_crawler
b95e626184cda21d2abe01fd1f2b399e4946e782
[ "Apache-2.0" ]
2
2018-10-12T06:58:08.000Z
2020-03-19T10:44:34.000Z
# -*- coding: utf-8 -*-
28.15
88
0.586146
# -*- coding: utf-8 -*- from util.mail.sender import Sender from os.path import getsize class Mail(object): @staticmethod def send(msg, sub, attachments={}): sender = Sender(msg, sub) checked_attach = dict() for kv in attachments.items(): if getsize(kv[1]) <= 50 ...
0
427
0
-2
0
0
0
20
95
9bd8e4260b70c201caf0c0f1b89f936935ba424d
2,128
py
Python
perma_web/perma/settings/settings.example.py
leppert/perma
adb0cec29679c3d161d72330e19114f89f8c42ac
[ "MIT", "Unlicense" ]
null
null
null
perma_web/perma/settings/settings.example.py
leppert/perma
adb0cec29679c3d161d72330e19114f89f8c42ac
[ "MIT", "Unlicense" ]
null
null
null
perma_web/perma/settings/settings.example.py
leppert/perma
adb0cec29679c3d161d72330e19114f89f8c42ac
[ "MIT", "Unlicense" ]
null
null
null
# NOTE: If you are running a local test environment, settings_dev will already have sensible defaults for many of these. # Only override the ones you need to, so you're less likely to have to make manual settings updates after pulling in changes. # Choose one of these: # from .deployments.settings_dev import * # from ...
34.885246
125
0.745301
# NOTE: If you are running a local test environment, settings_dev will already have sensible defaults for many of these. # Only override the ones you need to, so you're less likely to have to make manual settings updates after pulling in changes. # Choose one of these: # from .deployments.settings_dev import * # from ...
0
0
0
0
0
0
0
0
0
f7f50e7055d5b6f3f0c8269186a5c673279e5136
11,839
py
Python
custom_components/deepstack_face/image_processing.py
Hoellenwesen/HASS-Deepstack-face
5ca4a75ec7aab092124edf77aa692c78bedb2a96
[ "MIT" ]
null
null
null
custom_components/deepstack_face/image_processing.py
Hoellenwesen/HASS-Deepstack-face
5ca4a75ec7aab092124edf77aa692c78bedb2a96
[ "MIT" ]
null
null
null
custom_components/deepstack_face/image_processing.py
Hoellenwesen/HASS-Deepstack-face
5ca4a75ec7aab092124edf77aa692c78bedb2a96
[ "MIT" ]
null
null
null
""" Component that will perform facial recognition via deepstack. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/image_processing.deepstack_face """ import logging from pathlib import Path import homeassistant.helpers.config_validation as cv import volup...
32.70442
104
0.62235
""" Component that will perform facial recognition via deepstack. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/image_processing.deepstack_face """ import io import logging import re import time from pathlib import Path import requests from PIL import ...
0
889
0
5,459
0
95
0
132
246
1b921c3ff17a4cdbe911e15e801fa86ade4e10f0
4,574
py
Python
RJ's Toolbox/Custom_Transformers.py
rayjustinhuang/Data-Analysis-and-Machine-Learning
469a6e96566b935dc71f6589d8f070fcc12e76ec
[ "MIT" ]
null
null
null
RJ's Toolbox/Custom_Transformers.py
rayjustinhuang/Data-Analysis-and-Machine-Learning
469a6e96566b935dc71f6589d8f070fcc12e76ec
[ "MIT" ]
null
null
null
RJ's Toolbox/Custom_Transformers.py
rayjustinhuang/Data-Analysis-and-Machine-Learning
469a6e96566b935dc71f6589d8f070fcc12e76ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jun 5 07:35:15 2018 @author: Ray Justin O. Huang """ # PerColumnAttributesAdder # Used to quickly add columns that are fractions of other columns # StringCaseChanger # Used to change the case of a column that contains strings # Randomizer # Used to randomize t...
33.881481
104
0.594884
# -*- coding: utf-8 -*- """ Created on Tue Jun 5 07:35:15 2018 @author: Ray Justin O. Huang """ import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin import string # PerColumnAttributesAdder # Used to quickly add columns that are fractions of other columns class PerColumnA...
0
0
0
3,792
0
0
0
22
198
aa4a25de89605ee49512c8c34c6d4af4a44dfe52
153
py
Python
abc/160/b/answer.py
TakuyaNoguchi/atcoder
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
[ "MIT" ]
null
null
null
abc/160/b/answer.py
TakuyaNoguchi/atcoder
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
[ "MIT" ]
null
null
null
abc/160/b/answer.py
TakuyaNoguchi/atcoder
d079402e6fe9c9aaf3a6fc9272331ee71fc497da
[ "MIT" ]
null
null
null
X = int(input()) five_hundread_yen_coin_num = X // 500 five_yen_coin_num = X % 500 // 5 print(five_hundread_yen_coin_num * 1000 + five_yen_coin_num * 5)
30.6
64
0.745098
X = int(input()) five_hundread_yen_coin_num = X // 500 five_yen_coin_num = X % 500 // 5 print(five_hundread_yen_coin_num * 1000 + five_yen_coin_num * 5)
0
0
0
0
0
0
0
0
0