hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
a84bbb52eda077f44cc7b316828fb87f5e2b4397
3,371
py
Python
ansible-devel/test/units/galaxy/test_role_requirements.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/galaxy/test_role_requirements.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/galaxy/test_role_requirements.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: (c) 2020, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest from ansible.playbook.role.r...
37.876404
147
0.703055
0
0
0
0
438
0.129932
0
0
1,571
0.466034
a84c51e00e3c06ed946f2d73ff195ec6335ee4c9
8,007
py
Python
argo/workflows/client/models/v1_pod_log_options.py
fvdnabee/argo-client-python
0caa743442d37f2f2e3b30867398ed2708c1bf4d
[ "Apache-2.0" ]
35
2019-10-25T09:19:36.000Z
2022-03-04T11:22:27.000Z
argo/workflows/client/models/v1_pod_log_options.py
fvdnabee/argo-client-python
0caa743442d37f2f2e3b30867398ed2708c1bf4d
[ "Apache-2.0" ]
17
2019-10-30T03:49:20.000Z
2020-07-02T15:54:50.000Z
argo/workflows/client/models/v1_pod_log_options.py
fvdnabee/argo-client-python
0caa743442d37f2f2e3b30867398ed2708c1bf4d
[ "Apache-2.0" ]
9
2019-11-06T13:30:08.000Z
2021-06-12T03:00:05.000Z
# coding: utf-8 """ Argo Python client for Argo Workflows # noqa: E501 OpenAPI spec version: master Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class V1PodLogOptions(object): """NOTE: This class is auto generated...
26.869128
170
0.585488
7,758
0.968902
0
0
4,032
0.503559
0
0
3,842
0.47983
a84d0a4ba61d358039b7a1e74466919b134e36f7
4,158
py
Python
tests/test_html.py
unfoldingWord-dev/USFM-Utils
c3c4b5df5636076a4f64f8ec63358df13dc814ed
[ "MIT" ]
4
2016-09-26T09:42:47.000Z
2020-05-16T05:14:33.000Z
tests/test_html.py
unfoldingWord-dev/USFM-Utils
c3c4b5df5636076a4f64f8ec63358df13dc814ed
[ "MIT" ]
1
2020-09-24T19:29:26.000Z
2020-09-24T19:29:26.000Z
tests/test_html.py
unfoldingWord-dev/USFM-Utils
c3c4b5df5636076a4f64f8ec63358df13dc814ed
[ "MIT" ]
2
2017-07-27T05:13:02.000Z
2019-12-19T23:45:18.000Z
import itertools import unittest from usfm_utils.elements.document import Document from usfm_utils.elements.element_impls import FormattedText, Text, Paragraph, Footnote from usfm_utils.elements.footnote_utils import AutomaticFootnoteLabel, CustomFootnoteLabel from usfm_utils.html.html_visitor import HtmlVisitor, non_...
37.125
90
0.597162
3,740
0.899471
0
0
305
0.073353
0
0
246
0.059163
a84f0d0f3749f18aaa14888aa7b0b39c8a1c4cf5
1,703
py
Python
src/tokenization/train_tokenizer.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
1
2022-02-22T07:05:46.000Z
2022-02-22T07:05:46.000Z
src/tokenization/train_tokenizer.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
null
null
null
src/tokenization/train_tokenizer.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
null
null
null
import hydra import os import logging from hydra.utils import instantiate, to_absolute_path from omegaconf import DictConfig, OmegaConf from tokenizers import Tokenizer from src.tokenization.utils import Lexer @hydra.main(config_path="configs", config_name="train_tokenizer_config") def main(cfg: DictConfig) -> None: ...
37.021739
117
0.688197
0
0
0
0
1,241
0.728714
0
0
285
0.167352
a84f521165b609606547850404c87694075d7414
4,653
py
Python
xfdnn/rt/xdnn_rt.py
jebtang/ml-suite
33dadbbd1a98acbab353a379bbc7e96547a0c2e3
[ "Apache-2.0" ]
1
2018-11-22T01:59:26.000Z
2018-11-22T01:59:26.000Z
xfdnn/rt/xdnn_rt.py
jebtang/ml-suite
33dadbbd1a98acbab353a379bbc7e96547a0c2e3
[ "Apache-2.0" ]
null
null
null
xfdnn/rt/xdnn_rt.py
jebtang/ml-suite
33dadbbd1a98acbab353a379bbc7e96547a0c2e3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # // SPDX-License-Identifier: BSD-3-CLAUSE # # (C) Copyright 2018, Xilinx, Inc. # import tensorflow as tf import numpy as np from xfdnn_compiler_tensorflow import TFFrontend #from xfdnn.tools.compile.frontends.frontend_caffe import CaffeFrontend from tensorflow.python.platform import gfile impo...
36.351563
127
0.588438
4,313
0.926929
0
0
0
0
0
0
565
0.121427
a85085ad48ffb4df3ce6c1f54c3962d5699ea21f
8,821
py
Python
bot/cogs/personal.py
issuemeaname/rammus-discord-bot
23bcb02af11b8b764d75fa974149164f0086c1ea
[ "MIT" ]
1
2020-07-07T05:02:40.000Z
2020-07-07T05:02:40.000Z
bot/cogs/personal.py
issuemeaname/rammus-discord-bot
23bcb02af11b8b764d75fa974149164f0086c1ea
[ "MIT" ]
null
null
null
bot/cogs/personal.py
issuemeaname/rammus-discord-bot
23bcb02af11b8b764d75fa974149164f0086c1ea
[ "MIT" ]
2
2019-02-07T18:26:43.000Z
2021-07-04T16:58:41.000Z
""" This is a cog used for personal commands. For now they exist for people I know but they will be removed eventually, as they hold no other use to the community or other users of Rammus. Again, this is temporary and will be removed shortly. Thank you for reading """ import random import discord from discord.ext imp...
29.800676
79
0.594831
8,384
0.950028
0
0
7,769
0.88034
5,453
0.617904
1,678
0.190142
a853dba576efbfdcdc009b4074ffba7b0557a19b
503
py
Python
EducationalRound101/red_and_blue/red_and_blue_test.py
tqa236/codeforces
81ad7bdb7786455f83d48d59a8884f62ded66caf
[ "MIT" ]
null
null
null
EducationalRound101/red_and_blue/red_and_blue_test.py
tqa236/codeforces
81ad7bdb7786455f83d48d59a8884f62ded66caf
[ "MIT" ]
null
null
null
EducationalRound101/red_and_blue/red_and_blue_test.py
tqa236/codeforces
81ad7bdb7786455f83d48d59a8884f62ded66caf
[ "MIT" ]
null
null
null
import unittest from red_and_blue import red_and_blue class Test(unittest.TestCase): def test_1(self): self.assertEqual(red_and_blue([6, -5, 7, -3], [2, 3, -4]), 13) def test_2(self): self.assertEqual(red_and_blue([1, 1], [10, -3, 2, 2]), 13) def test_3(self): self.assertEqual(re...
23.952381
85
0.586481
397
0.789264
0
0
0
0
0
0
10
0.019881
a854b2655b1079804920d693717c0a025c1256f9
129,043
py
Python
benchmarks/Generators/Parser/SygusParser.py
yangdinglou/DryadSynth
0e80c08c3f8a95c16c75b413b53b10fa30c945ce
[ "MIT" ]
19
2020-07-06T01:01:28.000Z
2022-03-09T19:22:25.000Z
benchmarks/Generators/Parser/SygusParser.py
yangdinglou/DryadSynth
0e80c08c3f8a95c16c75b413b53b10fa30c945ce
[ "MIT" ]
2
2020-09-20T12:26:54.000Z
2021-11-22T21:48:08.000Z
benchmarks/Generators/Parser/SygusParser.py
yangdinglou/DryadSynth
0e80c08c3f8a95c16c75b413b53b10fa30c945ce
[ "MIT" ]
null
null
null
# Generated from Sygus.g4 by ANTLR 4.7.1 # encoding: utf-8 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3%") buf.write("\u01ca\4\2\t\2\4\3\t\3\4\4\t\4\4...
34.319947
166
0.586897
113,928
0.882869
0
0
0
0
0
0
15,196
0.117759
a8556da33787e277786e6a3792b993ea18601c17
1,870
py
Python
keitaro/utils.py
Infvmous/keitaro
aeb7555bd8443da995705f26fd42e6e882f64dd4
[ "MIT" ]
1
2021-07-03T16:40:37.000Z
2021-07-03T16:40:37.000Z
keitaro/utils.py
ysomad/keitaro
aeb7555bd8443da995705f26fd42e6e882f64dd4
[ "MIT" ]
1
2021-01-28T13:06:33.000Z
2021-01-28T13:06:36.000Z
keitaro/utils.py
ysomad/keitaro
aeb7555bd8443da995705f26fd42e6e882f64dd4
[ "MIT" ]
1
2021-02-23T08:10:29.000Z
2021-02-23T08:10:29.000Z
import random from string import ascii_letters, digits from urllib.parse import urlparse def list_to_string(list_items, separator='\n'): """ Converts list items to string with separator """ return separator.join(list_items) def string_to_list(string, separator='\n'): """ Converts string wit...
26.338028
79
0.675401
0
0
0
0
0
0
0
0
497
0.265775
a855889fb82fea703cc4439aa3a13845ae7ffaa9
1,903
py
Python
examples/ADT.py
SophiaZhyrovetska/Music_analizer
9454aa1df9a75b25526a972c620a4aea3f30541f
[ "MIT" ]
2
2018-06-26T21:49:49.000Z
2018-06-26T21:49:53.000Z
examples/ADT.py
SophiaZhyrovetska/Music_analizer
9454aa1df9a75b25526a972c620a4aea3f30541f
[ "MIT" ]
1
2018-06-20T23:17:52.000Z
2018-06-27T08:43:49.000Z
examples/ADT.py
SophiaZhyrovetska/Music_analizer
9454aa1df9a75b25526a972c620a4aea3f30541f
[ "MIT" ]
1
2018-06-26T21:49:52.000Z
2018-06-26T21:49:52.000Z
class Song: "A class for representing a song" def __init__(self, name, singer): """ Initialize a new song with it's name and singer :param name: str :param singer: str """ self.name = name self.singer = singer self.mood = self.mood() def text...
20.462366
92
0.504467
1,896
0.996322
0
0
0
0
0
0
1,172
0.61587
a8584dc2e1d7252f7eee5bae7caafe98b9817a57
5,304
py
Python
tensorflow_1_x/7_kaggle/learntools/pandas/indexing_selecting_and_assigning.py
amitbcp/machine_learning_with_Scikit_Learn_and_TensorFlow
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
11
2019-12-19T08:55:52.000Z
2021-10-01T13:07:13.000Z
tensorflow_1_x/7_kaggle/learntools/pandas/indexing_selecting_and_assigning.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
5
2019-10-09T01:41:19.000Z
2022-02-10T00:19:01.000Z
tensorflow_1_x/7_kaggle/learntools/pandas/indexing_selecting_and_assigning.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
7
2019-10-08T06:10:14.000Z
2020-12-01T07:49:21.000Z
import pandas as pd from learntools.core import * reviews = pd.read_csv("../input/wine-reviews/winemag-data-130k-v2.csv", index_col=0) # 1 class SelectDescCol(EqualityCheckProblem): _var = 'desc' _expected = ( reviews.description ) #_solution = CS("desc = reviews.description") # This ...
35.36
289
0.6727
4,862
0.916667
0
0
0
0
0
0
3,404
0.64178
a85abfde0966e5dcea2b53ffa4e2160f0a3fdb66
6,392
py
Python
openseis/sd5.py
whamlyn/openseis
40d9f7af9eb172bc94ed3e45f66b563565906c96
[ "Apache-2.0" ]
null
null
null
openseis/sd5.py
whamlyn/openseis
40d9f7af9eb172bc94ed3e45f66b563565906c96
[ "Apache-2.0" ]
null
null
null
openseis/sd5.py
whamlyn/openseis
40d9f7af9eb172bc94ed3e45f66b563565906c96
[ "Apache-2.0" ]
null
null
null
""" OpenSeis module """ import numpy as np import os import openseis as ops try: import h5py except: print('h5py package does not seem to be installed on this system.') class Seis3D(): """ OpenSeis class for 3D seismic datasets """ def __init__(self, sg5file): """ Constructo...
32.779487
85
0.546151
6,210
0.971527
0
0
0
0
0
0
2,408
0.376721
a85bc4180769fa993ff4097080b1f134fa71c099
762
py
Python
Heaps: Find the Running Median/Heaps: Find the Running Median.py
chmielak90/HackerRank_Coding_Interview_Challenges
0e9fb79402a3c404719fa8411e8e32137e02fe07
[ "MIT" ]
1
2021-02-27T19:15:39.000Z
2021-02-27T19:15:39.000Z
Heaps: Find the Running Median/Heaps: Find the Running Median.py
chmielak90/HackerRank_Coding_Interview_Challenges
0e9fb79402a3c404719fa8411e8e32137e02fe07
[ "MIT" ]
null
null
null
Heaps: Find the Running Median/Heaps: Find the Running Median.py
chmielak90/HackerRank_Coding_Interview_Challenges
0e9fb79402a3c404719fa8411e8e32137e02fe07
[ "MIT" ]
null
null
null
# n = int(input().strip()) # # a = [] # a_i = 0 # # for a_i in range(n): # a_t = int(input().strip()) # a.append(a_t) # # a = sorted(a, key=int) # # if len(a) % 2 == 0: # print((a[int(len(a)/2)] + a[int(len(a)/2)-1])/2) # # else: # print(float(a[int(len(a)/2)])) # this up working b...
17.318182
58
0.450131
0
0
0
0
0
0
0
0
357
0.468504
a85ce1a483cfb29a350fd20c5803ae08cb276570
4,119
py
Python
gost/ui/commands/reporting.py
sixy6e/gost
43c99952bb3d5a7f668981477b4b3522889ac4db
[ "Apache-2.0" ]
null
null
null
gost/ui/commands/reporting.py
sixy6e/gost
43c99952bb3d5a7f668981477b4b3522889ac4db
[ "Apache-2.0" ]
null
null
null
gost/ui/commands/reporting.py
sixy6e/gost
43c99952bb3d5a7f668981477b4b3522889ac4db
[ "Apache-2.0" ]
2
2020-08-16T04:38:59.000Z
2021-09-09T05:58:58.000Z
""" Command line interface for creating the LaTeX documents. """ from pathlib import Path, PurePosixPath as PPath from typing import Union import click import h5py # type: ignore import pandas import structlog # type: ignore import geopandas # type: ignore from wagl.hdf5 import read_h5_table # type: ignore from go...
32.179688
90
0.705268
0
0
0
0
2,109
0.512017
0
0
769
0.186696
a85d28a147c2851074f1bb71e893b4e8755ebe06
660
py
Python
aws_lambda_typing/events/config.py
curekoshimizu/aws-lambda-typing
ea5649e084f598f02dadad1a60927034ea46ae5d
[ "MIT" ]
null
null
null
aws_lambda_typing/events/config.py
curekoshimizu/aws-lambda-typing
ea5649e084f598f02dadad1a60927034ea46ae5d
[ "MIT" ]
null
null
null
aws_lambda_typing/events/config.py
curekoshimizu/aws-lambda-typing
ea5649e084f598f02dadad1a60927034ea46ae5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import typing class ConfigEvent(typing.TypedDict): """ MQEvent https://docs.aws.amazon.com/lambda/latest/dg/services-config.html Attributes: ---------- invokingEvent: str ruleParameters: str resultToken: str eventLeftScope: bool executionRoleArn: str ...
15.348837
77
0.660606
620
0.939394
0
0
0
0
0
0
375
0.568182
a85d3f5542b43f9fe833a1ef99744fb9819e5e1a
4,078
py
Python
Incident-Response/Tools/grr/grr/test/grr_response_test/end_to_end_tests/tests/timeline.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/grr/grr/test/grr_response_test/end_to_end_tests/tests/timeline.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/grr/grr/test/grr_response_test/end_to_end_tests/tests/timeline.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
#!/usr/bin/env python # Lint as: python3 """E2E tests for the timeline flow.""" import csv import io from typing import Sequence from typing import Text from absl.testing import absltest from grr_response_core.lib import rdfvalue from grr_response_core.lib.util import temp from grr_response_proto.api import timeline_...
35.46087
79
0.712114
2,962
0.726336
0
0
0
0
0
0
909
0.222903
a85f307dc35b10cea0708b8963b5efd033be967d
121
py
Python
app/tests/test_init.py
MerrybyPractice/flask-comics-api
f5d833d83a8e488e1f783ce3314bd2d4b87f5143
[ "MIT" ]
null
null
null
app/tests/test_init.py
MerrybyPractice/flask-comics-api
f5d833d83a8e488e1f783ce3314bd2d4b87f5143
[ "MIT" ]
2
2019-07-30T03:32:09.000Z
2019-07-31T13:44:36.000Z
app/tests/test_init.py
MerrybyPractice/flask-comics-api
f5d833d83a8e488e1f783ce3314bd2d4b87f5143
[ "MIT" ]
null
null
null
import sys sys.path.append("flask-comics-api") from app import app def test_all_comics(): print(app) assert False
13.444444
35
0.735537
0
0
0
0
0
0
0
0
18
0.14876
a861266c9aad15803a8ee7f2f5de7cca2abf2cc8
9,231
py
Python
metric/metric.py
wyu-du/MultiTurnDialogZoo
ac6a5d4fee31aef9db86ffef599d70f099d93897
[ "MIT" ]
145
2020-02-13T02:59:08.000Z
2022-03-31T06:09:16.000Z
metric/metric.py
wyu-du/MultiTurnDialogZoo
ac6a5d4fee31aef9db86ffef599d70f099d93897
[ "MIT" ]
14
2020-02-19T09:32:45.000Z
2022-03-22T19:18:30.000Z
metric/metric.py
wyu-du/MultiTurnDialogZoo
ac6a5d4fee31aef9db86ffef599d70f099d93897
[ "MIT" ]
28
2020-02-19T02:47:22.000Z
2022-03-25T06:11:31.000Z
from nltk.translate.bleu_score import sentence_bleu, corpus_bleu from nltk.translate.bleu_score import SmoothingFunction from nltk.collocations import BigramCollocationFinder from nltk.probability import FreqDist from .bleu import Bleu import argparse import codecs import numpy as np import math from bert_score import ...
32.276224
173
0.551945
0
0
0
0
0
0
0
0
1,563
0.169321
a862a94126909233a9d159eed285bf366dafeca1
1,739
py
Python
distfromplane_demo.py
johnmgregoire/PythonCompositionPlots
e105c575463b7d4512d9aac18c7330d1a0dc2c14
[ "BSD-3-Clause" ]
4
2018-03-05T09:34:49.000Z
2022-02-01T15:33:54.000Z
distfromplane_demo.py
johnmgregoire/PythonCompositionPlots
e105c575463b7d4512d9aac18c7330d1a0dc2c14
[ "BSD-3-Clause" ]
null
null
null
distfromplane_demo.py
johnmgregoire/PythonCompositionPlots
e105c575463b7d4512d9aac18c7330d1a0dc2c14
[ "BSD-3-Clause" ]
2
2016-01-24T19:09:21.000Z
2019-10-11T12:43:07.000Z
import pylab, numpy from myquaternaryutility import QuaternaryPlot q=QuaternaryPlot(211) q2=QuaternaryPlot(212) #t=numpy.linspace(0,1.,5) #comps=[[a,b,c,d] for a in t for b in t for c in t for d in t if a+b+c+d==1.] #comps=numpy.float32(comps) t=numpy.linspace(0,1.,30) comps=[[a,b,1.-a-b-(2.*a**2+b),2.*a**2+b] for a...
31.618182
191
0.703278
0
0
0
0
0
0
0
0
179
0.102933
a862bfc859f5b5184921c0883870e3487e3d9e30
4,399
py
Python
config/config.py
GeneralOrae/botrae
d14f26e47f4c906233d778ce5e0ce3e67a9f5b2c
[ "MIT" ]
null
null
null
config/config.py
GeneralOrae/botrae
d14f26e47f4c906233d778ce5e0ce3e67a9f5b2c
[ "MIT" ]
null
null
null
config/config.py
GeneralOrae/botrae
d14f26e47f4c906233d778ce5e0ce3e67a9f5b2c
[ "MIT" ]
null
null
null
BOT_TOKEN: str = "ODg4MzAyMzkwNTMxNDg1Njk2.YUQuEQ.UO4oyY9Zk4u1W5f-VpPLkkQ70TM" SPOTIFY_ID: str = "" SPOTIFY_SECRET: str = "" BOT_PREFIX = "$" EMBED_COLOR = 0x4dd4d0 #replace after'0x' with desired hex code ex. '#ff0188' >> '0xff0188' SUPPORTED_EXTENSIONS = ('.webm', '.mp4', '.mp3', '.avi', '.wav', '.m4v', '.ogg', '...
47.301075
120
0.784042
0
0
0
0
0
0
0
0
2,637
0.599454
a865318eb5fd14ad1923e91f2a7b9f0fc0c823de
10,709
py
Python
fromage/utils/mol/_cell_operations.py
Yulin832/fromage
f6c84d5684ca5abfcc979540bb97cc8f105f963d
[ "MIT" ]
null
null
null
fromage/utils/mol/_cell_operations.py
Yulin832/fromage
f6c84d5684ca5abfcc979540bb97cc8f105f963d
[ "MIT" ]
null
null
null
fromage/utils/mol/_cell_operations.py
Yulin832/fromage
f6c84d5684ca5abfcc979540bb97cc8f105f963d
[ "MIT" ]
null
null
null
from copy import deepcopy import numpy as np def complete_mol(self, labels): """ Take a cell and complete certain molecules The objective is to end up with a unit cell where the molecules of interest are complete. The rest of the atoms of the cell must remain intact. Note that the input atoms are...
31.683432
88
0.614343
0
0
0
0
0
0
0
0
4,869
0.454664
a865732e6447bac58e649e009ab20b43ed2f1cea
6,260
py
Python
tests/test_pvpc.py
r-jordan/aiopvpc
9b38c02e184368121f725599d4768fc1ca4d6218
[ "MIT" ]
null
null
null
tests/test_pvpc.py
r-jordan/aiopvpc
9b38c02e184368121f725599d4768fc1ca4d6218
[ "MIT" ]
null
null
null
tests/test_pvpc.py
r-jordan/aiopvpc
9b38c02e184368121f725599d4768fc1ca4d6218
[ "MIT" ]
null
null
null
"""Tests for aiopvpc.""" import logging from asyncio import TimeoutError from datetime import datetime, timedelta from unittest.mock import patch import pytest from aiohttp import ClientError from aiopvpc import ESIOS_TARIFFS, PVPCData, REFERENCE_TZ from .conftest import MockAsyncSession, TZ_TEST @pytest.mark.param...
36.395349
87
0.65607
0
0
0
0
5,950
0.950176
3,145
0.502236
1,087
0.173587
a866618eea370a8203f4080686647eec5ef1844f
1,438
py
Python
validation.py
Jianxiang-Wang/Pytorch-code-for-time-series-classification
94151ba27345e7b7fd57e6622c45997f25e7aca2
[ "MIT" ]
2
2021-10-08T01:50:17.000Z
2022-03-15T02:56:48.000Z
validation.py
Jianxiang-Wang/Pytorch-code-for-time-series-classification
94151ba27345e7b7fd57e6622c45997f25e7aca2
[ "MIT" ]
1
2020-12-07T07:22:21.000Z
2020-12-07T07:22:21.000Z
validation.py
Jianxiang-Wang/Pytorch-code-for-time-series-classification
94151ba27345e7b7fd57e6622c45997f25e7aca2
[ "MIT" ]
1
2021-05-27T03:14:37.000Z
2021-05-27T03:14:37.000Z
from sklearn import metrics import torch from models import * import torch.backends.cudnn as cudnn import seaborn as sns import matplotlib.pyplot as plt from dataset import load #define the net device = 'cuda' if torch.cuda.is_available() else 'cpu' net = LSTM(3, 10, 2, 3) net = net.to(device) if device == 'cuda': ...
23.966667
71
0.66064
0
0
0
0
0
0
0
0
180
0.125174
a867335bf7412afcc85944e531249bfc53f2c724
813
py
Python
mopidy_spotify_tunigo/__init__.py
trygveaa/mopidy-spotify-tunigo
b33d6df81b8b827859c9288ebedfa71304b98d07
[ "Apache-2.0" ]
34
2015-02-28T14:19:22.000Z
2019-09-19T14:55:32.000Z
mopidy_spotify_tunigo/__init__.py
trygveaa/mopidy-spotify-tunigo
b33d6df81b8b827859c9288ebedfa71304b98d07
[ "Apache-2.0" ]
6
2015-01-12T12:07:13.000Z
2019-12-12T23:01:37.000Z
mopidy_spotify_tunigo/__init__.py
trygveaa/mopidy-spotify-tunigo
b33d6df81b8b827859c9288ebedfa71304b98d07
[ "Apache-2.0" ]
3
2015-05-22T17:24:43.000Z
2017-04-11T17:57:42.000Z
from __future__ import unicode_literals import os from mopidy import config, ext __version__ = '1.0.0' class Extension(ext.Extension): dist_name = 'Mopidy-Spotify-Tunigo' ext_name = 'spotify_tunigo' version = __version__ def get_default_config(self): conf_file = os.path.join(os.path.dirn...
26.225806
71
0.688807
703
0.864699
0
0
0
0
0
0
97
0.119311
a8677db0cad4db9e12e3834fb3fdc9ca873604ad
3,647
py
Python
apps/log_search/tasks/project.py
yiqiwang-17/bk-log
7b356fced63b667baea300cfd194ad70a842c3ee
[ "MIT" ]
null
null
null
apps/log_search/tasks/project.py
yiqiwang-17/bk-log
7b356fced63b667baea300cfd194ad70a842c3ee
[ "MIT" ]
null
null
null
apps/log_search/tasks/project.py
yiqiwang-17/bk-log
7b356fced63b667baea300cfd194ad70a842c3ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
37.597938
113
0.675898
0
0
0
0
218
0.057565
0
0
1,900
0.501716
a86ab6894db4939b7b687a294448c9e44447c480
8,421
py
Python
hawkdet/dataset/transformers.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
hawkdet/dataset/transformers.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
hawkdet/dataset/transformers.py
itisianlee/hawk-facedet
55774ac5619f9a4c76a3a872ff11940a874b32d1
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import random from ..lib.box_utils import matrix_iof class RandomCrop: def __init__(self, image_size=(640, 640), iof_factor=1.0, min_face=16): self.image_size = image_size self.iof_factor = iof_factor # iof(IoF(forgrand)) self.min_face = min_face sel...
31.421642
115
0.516922
7,956
0.944781
0
0
0
0
0
0
556
0.066025
a86bd19cc05762dfd9e1c34a405531b5248d3abb
7,553
py
Python
mwlib/utoken.py
pediapress/mwlib
1074fbc429e65180de09671dbc369ed1eeb2345d
[ "Unlicense" ]
53
2015-02-17T16:20:06.000Z
2022-03-18T09:22:00.000Z
mwlib/utoken.py
pediapress/mwlib
1074fbc429e65180de09671dbc369ed1eeb2345d
[ "Unlicense" ]
23
2015-01-30T16:26:20.000Z
2022-03-11T23:26:03.000Z
mwlib/utoken.py
pediapress/mwlib
1074fbc429e65180de09671dbc369ed1eeb2345d
[ "Unlicense" ]
19
2015-01-21T13:55:46.000Z
2019-02-23T23:14:31.000Z
#! /usr/bin/env python # Copyright (c) 2007-2009 PediaPress GmbH # See README.rst for additional licensing information. # unified/universal token import sys import re import _uscan as _mwscan from mwlib.refine.util import resolve_entity, parseParams def walknode(node, filt=lambda x: True): if not isinstance(no...
24.683007
94
0.558983
4,988
0.6604
388
0.05137
100
0.01324
0
0
643
0.085132
a86d0966eb30256383853d63973d591b55852258
6,565
py
Python
MaskDetection/video.py
fossabot/IoT_COVID19-Detector_CO-vision
8f45ddcbbbc17f24f7629fa344e3f375c3bd879b
[ "MIT" ]
null
null
null
MaskDetection/video.py
fossabot/IoT_COVID19-Detector_CO-vision
8f45ddcbbbc17f24f7629fa344e3f375c3bd879b
[ "MIT" ]
null
null
null
MaskDetection/video.py
fossabot/IoT_COVID19-Detector_CO-vision
8f45ddcbbbc17f24f7629fa344e3f375c3bd879b
[ "MIT" ]
null
null
null
#Data Set을 만들어서 학습. from tensorflow.keras.applications.mobilenet_v2 import preprocess_input from tensorflow.keras.models import load_model import numpy as np import cv2 import matplotlib.pyplot as plt import os import json import requests # 카카오톡 메시지 커스텀 템플릿 주소 : https://kapi.kakao.com/v2/api/talk/memo/send talk_url = ...
42.62987
160
0.609139
0
0
0
0
0
0
0
0
4,591
0.556822
a86d609155584012cf3856785ca737b87484f6b4
3,387
py
Python
objects_detector.py
AlejandroGonzalR/image-object-detection
a1320190902e9157f34f82f6b7bf46921ee92fe4
[ "MIT" ]
null
null
null
objects_detector.py
AlejandroGonzalR/image-object-detection
a1320190902e9157f34f82f6b7bf46921ee92fe4
[ "MIT" ]
null
null
null
objects_detector.py
AlejandroGonzalR/image-object-detection
a1320190902e9157f34f82f6b7bf46921ee92fe4
[ "MIT" ]
null
null
null
import getopt import sys import cv2 import numpy as np class_ids = [] confidences = [] boxes = [] min_confidence = 0.5 target_name = "truck" def main(argv): input_image = '' try: opts, args = getopt.getopt(argv, 'i:', ["input-file"]) except getopt.GetoptError: print('python3 objects_dete...
31.073394
99
0.600827
0
0
0
0
0
0
0
0
578
0.170652
a86d72d1fa9d273bd8fa78ace8fa385b2f849513
4,826
py
Python
pynmmso/listeners/trace_listener.py
wood-chris/pynmmso
e13f8139160421a9d3f7e650ad6f988c9244ca69
[ "MIT" ]
5
2019-06-01T06:21:25.000Z
2021-11-17T18:43:43.000Z
pynmmso/listeners/trace_listener.py
wood-chris/pynmmso
e13f8139160421a9d3f7e650ad6f988c9244ca69
[ "MIT" ]
null
null
null
pynmmso/listeners/trace_listener.py
wood-chris/pynmmso
e13f8139160421a9d3f7e650ad6f988c9244ca69
[ "MIT" ]
3
2019-10-01T11:24:06.000Z
2021-09-23T17:20:03.000Z
from pynmmso.listeners.base_listener import BaseListener class TraceListener(BaseListener): """ Listener used to trace the progress of the Nmmso algorithm. Arguments --------- level : int The amount of detail to output in the trace. Level 1 is the least information and level 5 is...
37.123077
98
0.588065
4,766
0.987567
0
0
0
0
0
0
1,234
0.255698
a86da01bc5deadfbef4d95de97a5e5217a078c02
500
py
Python
spotify_dashboard/spotify/models.py
timmyomahony/spotify-picture-frame
259799b27da331341b0d860885be0aec091e32ff
[ "MIT" ]
1
2020-11-03T11:04:22.000Z
2020-11-03T11:04:22.000Z
spotify_dashboard/spotify/models.py
timmyomahony/spotify-picture-frame
259799b27da331341b0d860885be0aec091e32ff
[ "MIT" ]
null
null
null
spotify_dashboard/spotify/models.py
timmyomahony/spotify-picture-frame
259799b27da331341b0d860885be0aec091e32ff
[ "MIT" ]
null
null
null
import time from django.db import models from django.utils.timesince import timesince class Track(models.Model): id = models.CharField(max_length=30, primary_key=True) artist = models.CharField(max_length=500) album = models.CharField(max_length=500) title = models.CharField(max_length=500) image...
26.315789
58
0.722
410
0.82
0
0
0
0
0
0
0
0
a86f5448dbeefa6a311488498e7648ee7614b136
2,758
py
Python
tests/test_controller.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
1
2017-08-13T09:50:06.000Z
2017-08-13T09:50:06.000Z
tests/test_controller.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
null
null
null
tests/test_controller.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
null
null
null
import unittest import logging import asyncio import datetime from pytz import timezone import dscraper from dscraper.utils import FrequencyController logger = logging.getLogger(__name__) from .utils import Test EPS = 1e-6 class TestController(Test): INVERTAL = 0.2 CONFIG_NONE = (0, 0, 0, EPS, None) CO...
36.289474
90
0.662437
2,530
0.917331
0
0
0
0
0
0
219
0.079405
a8702cc446c2c224995b88f883f3be48de00d5d0
4,510
py
Python
src/tools/dev/scripts/hooks/exceptions.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
null
null
null
src/tools/dev/scripts/hooks/exceptions.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
null
null
null
src/tools/dev/scripts/hooks/exceptions.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
1
2020-03-18T23:17:43.000Z
2020-03-18T23:17:43.000Z
#!/usr/bin/python # (Small) Modification of some code from Cyrus which ensures we have a proper # number of TRY/ENDTRY lines. # There is some code here to search for invalid characters which isn't # enabled/used right now. import sys import subprocess import re # # Helper Methods # def parse_extension(file): "Re...
30.066667
97
0.567184
3,171
0.703104
0
0
0
0
0
0
1,485
0.329268
a870e6bfb15f35b40b1115c9d96dd6062d8a09ff
513
py
Python
mmdet/models/utils/__init__.py
dandelin/mmdetection
03e1c72f1bb6222bdf9af3bfe60946cf008c7143
[ "Apache-2.0" ]
null
null
null
mmdet/models/utils/__init__.py
dandelin/mmdetection
03e1c72f1bb6222bdf9af3bfe60946cf008c7143
[ "Apache-2.0" ]
null
null
null
mmdet/models/utils/__init__.py
dandelin/mmdetection
03e1c72f1bb6222bdf9af3bfe60946cf008c7143
[ "Apache-2.0" ]
null
null
null
from .conv_ws import conv_ws_2d, ConvWS2d from .conv_module import build_conv_layer, ConvModule from .norm import build_norm_layer from .scale import Scale from .weight_init import ( xavier_init, normal_init, uniform_init, kaiming_init, bias_init_with_prob, ) __all__ = [ "conv_ws_2d", "Conv...
19.730769
53
0.692008
0
0
0
0
0
0
0
0
152
0.296296
a87166a60d65966ddedb5ce1324d6d79ae3b0c7c
17,050
py
Python
arghphot/arghphot.py
balbinot/arghphot
ebfa8da444d2b43d68248bb450dfdc49890e0794
[ "MIT" ]
1
2016-05-21T21:11:21.000Z
2016-05-21T21:11:21.000Z
arghphot/arghphot.py
balbinot/arghphot
ebfa8da444d2b43d68248bb450dfdc49890e0794
[ "MIT" ]
null
null
null
arghphot/arghphot.py
balbinot/arghphot
ebfa8da444d2b43d68248bb450dfdc49890e0794
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- ## temp imports from matplotlib import pyplot as p from matplotlib import cm import tempfile import numpy as np from astropy.io import fits, ascii from astropy.coordinates import SkyCoord from astropy import units as u from astropy import wcs import aplpy from pyraf impo...
37.888889
125
0.528504
15,893
0.932141
0
0
0
0
0
0
3,531
0.207097
a8719a8d286f6a06b3cf89fb0e6e20d2209d3663
74,138
py
Python
core/domain/exp_domain_test.py
imrk51/oppia
615ce1dbdaffbb0c090c52d13ef6a3f7c1043d5c
[ "Apache-2.0" ]
null
null
null
core/domain/exp_domain_test.py
imrk51/oppia
615ce1dbdaffbb0c090c52d13ef6a3f7c1043d5c
[ "Apache-2.0" ]
null
null
null
core/domain/exp_domain_test.py
imrk51/oppia
615ce1dbdaffbb0c090c52d13ef6a3f7c1043d5c
[ "Apache-2.0" ]
1
2021-08-04T13:03:16.000Z
2021-08-04T13:03:16.000Z
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
31.216
115
0.605614
67,683
0.912933
0
0
0
0
0
0
36,474
0.491974
a871c5a3f2744ffc0ab85831207e950cede0cd8c
3,160
py
Python
Infection_vs_Inflammation/Code/Process_Data_V3.py
jdatascientist/Machine_Learning_4_MRI
973196063d69115048bfa97f213dd6ff0400f74d
[ "MIT" ]
null
null
null
Infection_vs_Inflammation/Code/Process_Data_V3.py
jdatascientist/Machine_Learning_4_MRI
973196063d69115048bfa97f213dd6ff0400f74d
[ "MIT" ]
null
null
null
Infection_vs_Inflammation/Code/Process_Data_V3.py
jdatascientist/Machine_Learning_4_MRI
973196063d69115048bfa97f213dd6ff0400f74d
[ "MIT" ]
null
null
null
# Import Modules as needed import numpy as np from mylocal_functions import * import matplotlib.pyplot as plt # ======== CEST============= # CEST_list=get_ipython().getoutput('ls ../Study_03_CBA/*CEST.txt') CEST_Int_matrix=np.zeros((len(CEST_list),4)) ppm=np.linspace(-8,8,101); for i in range( len(CEST_list) ): ...
30.980392
87
0.644937
0
0
0
0
0
0
0
0
773
0.24462
a8723c707610ff2d371e0e72d391d934a953ce69
238
py
Python
LAMARCK_ML/metrics/__init__.py
JonasDHomburg/LAMARCK
0e372c908ff59effc6fd68e6477d04c4d89e6c26
[ "Apache-2.0", "BSD-3-Clause" ]
3
2019-09-20T08:03:47.000Z
2021-05-10T11:02:09.000Z
LAMARCK_ML/metrics/__init__.py
JonasDHomburg/LAMARCK_ML
0e372c908ff59effc6fd68e6477d04c4d89e6c26
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
LAMARCK_ML/metrics/__init__.py
JonasDHomburg/LAMARCK_ML
0e372c908ff59effc6fd68e6477d04c4d89e6c26
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from .implementations import Accuracy, \ FlOps, \ Nodes, \ TimeMetric, \ MemoryMetric, \ Parameters, \ LayoutCrossingEdges, \ LayoutDistanceX, \ LayoutDistanceY, \ CartesianFitness from .interface import MetricInterface
19.833333
40
0.731092
0
0
0
0
0
0
0
0
0
0
a8725cd6af64baf27731158994ab2c4a10a983eb
2,684
py
Python
Confidence_Calibration/main.py
heatherwan/Automatic-Validation-of-Simulation-Results
a39b049aa7c835abb39f4501a4ee3db20cd84672
[ "MIT" ]
null
null
null
Confidence_Calibration/main.py
heatherwan/Automatic-Validation-of-Simulation-Results
a39b049aa7c835abb39f4501a4ee3db20cd84672
[ "MIT" ]
null
null
null
Confidence_Calibration/main.py
heatherwan/Automatic-Validation-of-Simulation-Results
a39b049aa7c835abb39f4501a4ee3db20cd84672
[ "MIT" ]
null
null
null
# Functions for Dirichlet parameter tuning main class for CIFAR-100 import numpy as np import argparse from calibration.calibration_functions import tune_dir_nn_heather, cal_TS_results if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--file_val', type=str, default='exp000', h...
44
120
0.574143
0
0
0
0
0
0
0
0
962
0.35842
a8737282035baae091f5e4cffd08da990791fcd0
5,593
py
Python
neutron/tests/functional/agent/l3/test_metadata_proxy.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/tests/functional/agent/l3/test_metadata_proxy.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/tests/functional/agent/l3/test_metadata_proxy.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
37.286667
79
0.674593
4,569
0.816914
0
0
98
0.017522
0
0
2,255
0.403183
a874274a3bc3f8a721abc5d40fa4b47b612e790d
680
py
Python
ctrl/experimental/watch_remake_task_status.py
markmuetz/cosmic
f215c499bfc8f1d717dea6aa78a58632a4e89113
[ "Apache-2.0" ]
null
null
null
ctrl/experimental/watch_remake_task_status.py
markmuetz/cosmic
f215c499bfc8f1d717dea6aa78a58632a4e89113
[ "Apache-2.0" ]
null
null
null
ctrl/experimental/watch_remake_task_status.py
markmuetz/cosmic
f215c499bfc8f1d717dea6aa78a58632a4e89113
[ "Apache-2.0" ]
1
2021-01-26T02:25:48.000Z
2021-01-26T02:25:48.000Z
import sys import logging from watchdog.observers.polling import PollingObserver from watchdog.events import FileSystemEventHandler class RemakeTaskStatusEventHandler(FileSystemEventHandler): def on_any_event(self, event): super().on_any_event(event) print(event) if __name__ == "__main__": p...
26.153846
59
0.708824
151
0.222059
0
0
0
0
0
0
13
0.019118
a87429b2c4743e0326d5d14c4451d21d143c8edd
1,025
py
Python
flask_clacks.py
WilliamMayor/flask-clacks
491e22e34f06cdd25532ab7952cf1fa90f6bae1e
[ "MIT" ]
1
2019-03-21T06:18:47.000Z
2019-03-21T06:18:47.000Z
flask_clacks.py
WilliamMayor/flask-clacks
491e22e34f06cdd25532ab7952cf1fa90f6bae1e
[ "MIT" ]
null
null
null
flask_clacks.py
WilliamMayor/flask-clacks
491e22e34f06cdd25532ab7952cf1fa90f6bae1e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from functools import wraps from flask import make_response __author__ = 'William Mayor' __email__ = '[email protected]' __version__ = '1.0.1' class Clacks(object): def __init__(self, app=None, names=None): if names is None: names = [] self.names = list...
21.808511
61
0.587317
473
0.461463
0
0
139
0.13561
0
0
112
0.109268
a8759683c3def40d86da4d64b460e72c87841283
2,980
py
Python
utils/utils.py
wl-970925/DANN-MNIST
c781fdcc3267a664c353ae07d46000a67075e0f1
[ "MIT" ]
null
null
null
utils/utils.py
wl-970925/DANN-MNIST
c781fdcc3267a664c353ae07d46000a67075e0f1
[ "MIT" ]
null
null
null
utils/utils.py
wl-970925/DANN-MNIST
c781fdcc3267a664c353ae07d46000a67075e0f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/2/15 16:10 # @Author : Dai PuWei # @Email : [email protected] # @File : utils.py # @Software: PyCharm import numpy as np import matplotlib.pyplot as plt from tensorflow.core.framework import summary_pb2 class AverageMeter(object): def __init__(self): ...
30.408163
94
0.624161
358
0.108947
0
0
0
0
0
0
1,254
0.381619
a8767131fc92daf2b1e76889f0a46f8b914b9aa3
1,889
py
Python
PyrogramBot/commands.py
Habdio/GROUP-AutoManageBot
211ac78b0ce8a267ef9b77f881412ba87140d39b
[ "MIT" ]
null
null
null
PyrogramBot/commands.py
Habdio/GROUP-AutoManageBot
211ac78b0ce8a267ef9b77f881412ba87140d39b
[ "MIT" ]
null
null
null
PyrogramBot/commands.py
Habdio/GROUP-AutoManageBot
211ac78b0ce8a267ef9b77f881412ba87140d39b
[ "MIT" ]
null
null
null
from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from pyrogram.types import CallbackQuery import random ALL_PIC = [ "https://telegra.ph/file/52b71d5a61c904c6a59d1.jpg", "https://telegra.ph/file/28a00384a3be4f6c916ba.jpg", "https://telegra.ph/file/eb654e5c7f...
39.354167
218
0.629434
0
0
0
0
1,825
0.795901
1,752
0.764065
1,166
0.508504
a877a97489bec7501c25a2c46b3d75476271d8a2
2,666
py
Python
graphs/finding_bridges.py
topguns837/Python-1
e7381b513b526e2f3ca134022389832778bdf080
[ "MIT" ]
1
2021-12-07T12:57:56.000Z
2021-12-07T12:57:56.000Z
graphs/finding_bridges.py
thanhtd91/Python-1
a98465230f21e6ece76332eeca1558613788c387
[ "MIT" ]
null
null
null
graphs/finding_bridges.py
thanhtd91/Python-1
a98465230f21e6ece76332eeca1558613788c387
[ "MIT" ]
1
2022-01-01T07:30:12.000Z
2022-01-01T07:30:12.000Z
""" An edge is a bridge if, after removing it count of connected components in graph will be increased by one. Bridges represent vulnerabilities in a connected network and are useful for designing reliable networks. For example, in a wired computer network, an articulation point indicates the critical computers and a b...
26.39604
87
0.415604
0
0
0
0
0
0
0
0
964
0.36159
a877cf6005c10ff86c4c28551acf7a046198d1b7
5,487
py
Python
index.py
ReeLeeSama/Ticket-system
0f68cefff0488caf537fa8810139be7d8ce203ce
[ "MIT" ]
1
2021-05-15T08:40:00.000Z
2021-05-15T08:40:00.000Z
index.py
ReeLeeSama/Ticket-system
0f68cefff0488caf537fa8810139be7d8ce203ce
[ "MIT" ]
null
null
null
index.py
ReeLeeSama/Ticket-system
0f68cefff0488caf537fa8810139be7d8ce203ce
[ "MIT" ]
null
null
null
import discord import asyncio import aiofiles from discord.ext import commands intents = discord.Intents.all() client = commands.Bot(command_prefix=commands.when_mentioned_or('!'),intents=intents) client.ticket_configs = {} @client.command() async def ping(ctx): embed=discord.Embed(title="Bot Ping",description=...
59.641304
303
0.720612
0
0
0
0
5,206
0.94827
5,064
0.922404
2,534
0.461566
a8782932b4cb5b62f9cdd1eb887ce299cb47652d
1,044
py
Python
tests/sample_runbooks/set_variable.py
tuxtof/calm-dsl
5af67435d8304b97e170a690068f2d5975e9bfe6
[ "Apache-2.0" ]
37
2019-12-23T15:23:20.000Z
2022-03-15T11:12:11.000Z
tests/sample_runbooks/set_variable.py
gabybeitler/calm-dsl
bac453413cfcf800eef95d89d5a7323c83654a93
[ "Apache-2.0" ]
144
2020-03-09T11:22:09.000Z
2022-03-28T21:34:09.000Z
tests/sample_runbooks/set_variable.py
gabybeitler/calm-dsl
bac453413cfcf800eef95d89d5a7323c83654a93
[ "Apache-2.0" ]
46
2020-01-23T14:28:04.000Z
2022-03-09T04:17:10.000Z
""" Calm Runbook Sample for set variable task """ from calm.dsl.runbooks import read_local_file from calm.dsl.runbooks import runbook, runbook_json from calm.dsl.runbooks import RunbookTask as Task from calm.dsl.runbooks import CalmEndpoint as Endpoint, basic_cred CRED_USERNAME = read_local_file(".tests/runbook_tests...
29.828571
84
0.749042
0
0
0
0
372
0.356322
0
0
293
0.280651
a87a09274174fa57021b101cc6600c408162ecf0
3,921
py
Python
CL_tools/build_cdf2.py
NLP2CT/norm-nmt
b15e904fbfab6595c26fedf58e9023d36b563e95
[ "MIT" ]
13
2020-06-01T13:00:23.000Z
2022-01-29T01:40:40.000Z
CL_tools/build_cdf2.py
NLP2CT/norm-nmt
b15e904fbfab6595c26fedf58e9023d36b563e95
[ "MIT" ]
2
2020-07-01T07:04:52.000Z
2021-10-13T03:07:53.000Z
CL_tools/build_cdf2.py
NLP2CT/norm-nmt
b15e904fbfab6595c26fedf58e9023d36b563e95
[ "MIT" ]
3
2020-06-01T12:59:36.000Z
2020-07-04T13:57:02.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2018 The THUMT Authors from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import collections import math import numpy as np def count_words(filename): counter = collections.Counter() wi...
27.041379
79
0.566692
0
0
0
0
0
0
0
0
849
0.216526
a87a0c58e2acdc88f9a0c4132a845c88665fa4ac
1,531
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/BRepBuilderGeometryId.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/BRepBuilderGeometryId.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/BRepBuilderGeometryId.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class BRepBuilderGeometryId(object,IDisposable): """ This class is used by the BRepBuilder class to identify objects it creates (faces,edges,etc.). BRepBuilderGeometryId(other: BRepBuilderGeometryId) """ def Dispose(self): """ Dispose(self: BRepBuilderGeometryId) """ pass @staticmethod def Inva...
33.282609
215
0.701502
1,525
0.996081
0
0
320
0.209014
0
0
1,024
0.668844
a87b6a507b0104731193175cfd2830a1d450aa86
873
py
Python
tools/annotation/gPro_profile.py
hidelab/galaxy-central-hpc
75539db90abe90377db95718f83cafa7cfa43301
[ "CC-BY-3.0" ]
null
null
null
tools/annotation/gPro_profile.py
hidelab/galaxy-central-hpc
75539db90abe90377db95718f83cafa7cfa43301
[ "CC-BY-3.0" ]
null
null
null
tools/annotation/gPro_profile.py
hidelab/galaxy-central-hpc
75539db90abe90377db95718f83cafa7cfa43301
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python from anno_lib import gPro import sys ## # Runs the GOst profiler from g:Profiler #### # jje 10152011 # Oliver Hofmann # Bioinformatics Core # Harvard School of Public Health #### #term = "GO:0007050" #gost_loc = "http://biit.cs.ut.ee/gprofiler/" try: idfile = sys.argv[1] outfile = sys.argv[2...
19.4
70
0.710195
0
0
0
0
0
0
0
0
395
0.452463
a87bc89cece67977cd20dc1b823775f648a5a6ea
238
py
Python
glue/core/exceptions.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/core/exceptions.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/core/exceptions.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
class IncompatibleAttribute(Exception): pass class IncompatibleDataException(Exception): pass class UndefinedROI(Exception): pass class InvalidSubscriber(Exception): pass class InvalidMessage(Exception): pass
11.9
43
0.752101
224
0.941176
0
0
0
0
0
0
0
0
a87ca034edbcf0ccd37f65c8627b5f05c80d33a3
5,135
py
Python
deploy/proc_vector.py
loadwiki/insightface
a641d7c83efebbfd44e6d5ce591646a508744425
[ "MIT" ]
null
null
null
deploy/proc_vector.py
loadwiki/insightface
a641d7c83efebbfd44e6d5ce591646a508744425
[ "MIT" ]
null
null
null
deploy/proc_vector.py
loadwiki/insightface
a641d7c83efebbfd44e6d5ce591646a508744425
[ "MIT" ]
null
null
null
import face_model import argparse import os import cv2 import sys import numpy as np parser = argparse.ArgumentParser(description='face model test') # general parser.add_argument('--image-size', default='112,112', help='') parser.add_argument('--enable-gpu', default=False, type=bool, help='enable to detect and inferen...
34.006623
152
0.659007
0
0
0
0
0
0
0
0
1,224
0.238364
a87dc28a95aae4aa7718fabb0f98ba00c0f8f068
773
py
Python
word2vec_model/BagCentroids.py
wingedRuslan/Sentiment-Analysis
6dbc90175a2b42e33e0779f4a09b04ea99689534
[ "MIT" ]
null
null
null
word2vec_model/BagCentroids.py
wingedRuslan/Sentiment-Analysis
6dbc90175a2b42e33e0779f4a09b04ea99689534
[ "MIT" ]
null
null
null
word2vec_model/BagCentroids.py
wingedRuslan/Sentiment-Analysis
6dbc90175a2b42e33e0779f4a09b04ea99689534
[ "MIT" ]
null
null
null
def create_bag_of_centroids(wordlist, word_centroid_map): """ a function to create bags of centroids """ # The number of clusters is equal to the highest cluster index in the word / centroid map num_centroids = max( word_centroid_map.values() ) + 1 # Pre-allocate the bag of centro...
35.136364
93
0.676585
0
0
0
0
0
0
0
0
374
0.483829
a87de031996b8c0feaf819ed4c35d7f0c764409a
17,590
py
Python
build/lib/scripts/series_tools.py
nicolas998/ifis_tools
f7b06473a916324fc37937bc5e9034cc57bc1623
[ "MIT" ]
3
2019-09-05T14:47:02.000Z
2021-11-12T15:31:56.000Z
build/lib/scripts/series_tools.py
nicolas998/ifis_tools
f7b06473a916324fc37937bc5e9034cc57bc1623
[ "MIT" ]
2
2019-11-13T21:36:22.000Z
2019-12-16T21:16:43.000Z
build/lib/scripts/series_tools.py
nicolas998/ifis_tools
f7b06473a916324fc37937bc5e9034cc57bc1623
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: jupyter_scripts//ipynb,scripts//py # text_representation: # extension: .py # format_name: light # format_version: '1.3' # jupytext_version: 1.0.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # s...
34.422701
107
0.578795
0
0
0
0
0
0
0
0
8,547
0.485901
a87e40be3c08427f0c7c737de6d4a54b325082a5
2,851
py
Python
readthedocs/proxito/views/mixins.py
dojutsu-user/readthedocs.org
d90f37d89902b849285d9ff8c506e0ca0f6e6fc4
[ "MIT" ]
null
null
null
readthedocs/proxito/views/mixins.py
dojutsu-user/readthedocs.org
d90f37d89902b849285d9ff8c506e0ca0f6e6fc4
[ "MIT" ]
null
null
null
readthedocs/proxito/views/mixins.py
dojutsu-user/readthedocs.org
d90f37d89902b849285d9ff8c506e0ca0f6e6fc4
[ "MIT" ]
null
null
null
import logging import mimetypes from django.conf import settings from django.core.files.storage import get_storage_class from django.http import HttpResponse from django.shortcuts import render from django.utils.encoding import iri_to_uri from django.views.static import serve log = logging.getLogger(__name__) # noqa...
34.768293
86
0.653104
2,527
0.886356
0
0
0
0
0
0
1,127
0.3953
a87f024d79e42e7d806ba8c1470d48f414917c1c
4,381
py
Python
helper.py
whs2k/googleAlerts
78bf38e2ff707f916e6841e37762e6a7088f9a7c
[ "MIT" ]
null
null
null
helper.py
whs2k/googleAlerts
78bf38e2ff707f916e6841e37762e6a7088f9a7c
[ "MIT" ]
null
null
null
helper.py
whs2k/googleAlerts
78bf38e2ff707f916e6841e37762e6a7088f9a7c
[ "MIT" ]
null
null
null
import requests import pandas as pd import tweepy #for twitter import os from bs4 import BeautifulSoup import praw #for reddit import requests import requests.auth def getTweets(search_terms=['counterfeit','amazonHelp']): consumer_key = '6CM1Yqk0Qz6KUXsDQUS8xmahS' consumer_secret = 'LMSBfoJWMTlder205Ihr2t1JDgwJD2X...
41.330189
138
0.714905
0
0
0
0
0
0
0
0
1,868
0.426387
a8803c766a451bb61117713eb202084c40d7750f
1,435
py
Python
students/k3343/laboratory_works/Berezhnova_Marina/laboratory_work_1/django_project_flights/flights_app/models.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3343/laboratory_works/Berezhnova_Marina/laboratory_work_1/django_project_flights/flights_app/models.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3343/laboratory_works/Berezhnova_Marina/laboratory_work_1/django_project_flights/flights_app/models.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
from django.db import models from django.contrib.auth.models import User # Create your models here. class Companies(models.Model): name = models.CharField(max_length=30) def __str__(self): return "{}".format(self.name) class Gates(models.Model): name = models.CharField(max_length=30) def __...
27.075472
110
0.687108
1,321
0.920557
0
0
0
0
0
0
169
0.11777
a88072a31c00b299fbd4de061916f3bdeec7c2c8
4,993
py
Python
face_recognition/claudia/main_engine.py
hzitoun/TripletLossFace
3f566d01b41fa91b924198a63905f3f58632f5a2
[ "MIT" ]
88
2020-01-18T09:47:03.000Z
2021-12-18T22:34:18.000Z
face_recognition/claudia/main_engine.py
hzitoun/TripletLossFace
3f566d01b41fa91b924198a63905f3f58632f5a2
[ "MIT" ]
4
2020-01-18T09:20:24.000Z
2020-03-02T19:40:58.000Z
face_recognition/claudia/main_engine.py
aangfanboy/TripletLossFace
3f566d01b41fa91b924198a63905f3f58632f5a2
[ "MIT" ]
40
2020-01-18T11:15:07.000Z
2021-03-09T07:58:57.000Z
import tensorflow as tf import sys import json import numpy as np import cv2 from tqdm import tqdm sys.path.append("../") from deep_learning.make_better_dataset_for_deepfake.main_data_creator import FaceExtractor class Claudia: def load_full(self, path): image = tf.io.read_file(path) image = tf.image.decode_jpe...
25.090452
180
0.660525
4,628
0.926898
0
0
0
0
0
0
332
0.066493
a8811200a87031d7a49f84665c7e8ea51e4ccb14
648
py
Python
django_test/articles/migrations/0008_auto_20200306_1955.py
MachineLearningIsEasy/python_lesson_22
7fe77da5fa611a54578d092207059f65b719ed8a
[ "MIT" ]
1
2020-03-12T13:07:35.000Z
2020-03-12T13:07:35.000Z
django_test/articles/migrations/0008_auto_20200306_1955.py
MachineLearningIsEasy/python_lesson_22
7fe77da5fa611a54578d092207059f65b719ed8a
[ "MIT" ]
null
null
null
django_test/articles/migrations/0008_auto_20200306_1955.py
MachineLearningIsEasy/python_lesson_22
7fe77da5fa611a54578d092207059f65b719ed8a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-03-06 19:55 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0007_auto_20200306_1946'), ] operations = [ migrations.AlterField( model_name='article', ...
25.92
98
0.606481
539
0.83179
0
0
0
0
0
0
137
0.21142
a881135e08ba4f471543f5c8dd4cdb32fe51f578
2,420
py
Python
models/002_auth.py
ecohealthalliance/sicki
390ab06cedc205a415d823339f5816730dcc4b72
[ "Apache-2.0" ]
null
null
null
models/002_auth.py
ecohealthalliance/sicki
390ab06cedc205a415d823339f5816730dcc4b72
[ "Apache-2.0" ]
null
null
null
models/002_auth.py
ecohealthalliance/sicki
390ab06cedc205a415d823339f5816730dcc4b72
[ "Apache-2.0" ]
null
null
null
from gluon.tools import Auth auth = Auth(db, hmac_key=Auth.get_or_create_key()) auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True auth.define_tables () admin_role = auth.id_group ("Administrator") if...
28.470588
113
0.634298
0
0
0
0
0
0
0
0
201
0.083058
a881a8440fb6934709fdfc72c63ec22d17333b12
3,154
py
Python
utils/data_utils.py
a514514772/Hijackgan
d98dcddd64a2f28302ded2fbe51b398db0ae4cc4
[ "MIT" ]
36
2021-03-23T21:00:24.000Z
2022-03-30T03:08:00.000Z
utils/data_utils.py
a514514772/Hijackgan
d98dcddd64a2f28302ded2fbe51b398db0ae4cc4
[ "MIT" ]
4
2021-04-26T07:41:34.000Z
2021-09-28T08:50:40.000Z
utils/data_utils.py
a514514772/hijackgan
d98dcddd64a2f28302ded2fbe51b398db0ae4cc4
[ "MIT" ]
null
null
null
# + import argparse import os import pickle import sys sys.path.append("..") import numpy as np import torchvision import torchvision.transforms as T import torch.utils.data as torch_data from tqdm import tqdm from models.classifiers import EvalCompoundResNet # - def parse_args(): parser = argparse.ArgumentPar...
32.183673
112
0.622384
0
0
0
0
0
0
0
0
552
0.175016
a883398d1013f82065fdcd6cb3f64c0a32a024f7
743
py
Python
membership/urls.py
kay-han/building-blog
2bdbee68b484193c636ed869b2de605df67b2a48
[ "Unlicense" ]
null
null
null
membership/urls.py
kay-han/building-blog
2bdbee68b484193c636ed869b2de605df67b2a48
[ "Unlicense" ]
null
null
null
membership/urls.py
kay-han/building-blog
2bdbee68b484193c636ed869b2de605df67b2a48
[ "Unlicense" ]
null
null
null
from django.urls import path from .views import UserRegisterView, UserEditView, PasswordsChangeView from django.contrib.auth import views as auth_views #It allows using some of the views that come with the authentication system comes with django from . import views urlpatterns = [ path('registeration/', UserRegis...
57.153846
146
0.776581
0
0
0
0
0
0
0
0
351
0.472409
a884c82cc571aa5061e58f71c9e99493a0106092
615
py
Python
numpan/pan03.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
null
null
null
numpan/pan03.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
1
2021-11-07T04:54:55.000Z
2021-11-07T04:54:55.000Z
numpan/pan03.py
jaywoong/learn_pandas
972ad015c142d5e88ea821694b7a95e6aeb4e172
[ "Apache-2.0" ]
null
null
null
import pandas as pd; import numpy as np; data1 = ['A',2]; data2 = ['B',4]; df1 = pd.DataFrame([data1,data2]); print(df1); data = {'subject' : ['math', 'comp', 'phys', 'chem'], 'score': [100, 90, 85, 95], 'students': [94, 32, 83, 17]}; df2 = pd.DataFrame(data); print(df2); print(len(df2)); print(df2.s...
21.964286
64
0.585366
0
0
0
0
0
0
0
0
135
0.215311
a885f24e9c1a06fce54f92a0cfe74a09e9f9a42e
190
py
Python
astrochem_ml/__init__.py
laserkelvin/astrochem_ml
1385e481525681943e50467af58f317401747acd
[ "MIT" ]
null
null
null
astrochem_ml/__init__.py
laserkelvin/astrochem_ml
1385e481525681943e50467af58f317401747acd
[ "MIT" ]
2
2021-11-18T01:33:22.000Z
2021-11-18T14:04:43.000Z
astrochem_ml/__init__.py
laserkelvin/astrochem_ml
1385e481525681943e50467af58f317401747acd
[ "MIT" ]
null
null
null
"""Top-level package for Astrochem ML.""" from astrochem_ml import smiles, classes __author__ = """Kin Long Kelvin Lee""" __email__ = '[email protected]' __version__ = '0.1.0'
23.75
43
0.721053
0
0
0
0
0
0
0
0
104
0.547368
a88816b3f545c55918110797952195372fc30a92
1,929
py
Python
hexastore/bisect.py
alexchamberlain/mutant
3f4ec0df8b83b2de18766e2c9e1808cff4fd52a9
[ "MIT" ]
3
2019-06-15T13:13:39.000Z
2020-02-07T19:54:12.000Z
hexastore/bisect.py
alexchamberlain/mutant
3f4ec0df8b83b2de18766e2c9e1808cff4fd52a9
[ "MIT" ]
276
2019-07-03T06:18:37.000Z
2021-07-28T05:24:59.000Z
hexastore/bisect.py
alexchamberlain/mutant
3f4ec0df8b83b2de18766e2c9e1808cff4fd52a9
[ "MIT" ]
null
null
null
"""Bisection algorithms.""" from typing import Callable, Optional, Sequence, TypeVar, cast from .typing import Comparable T = TypeVar("T") U = TypeVar("U", bound=Comparable) def bisect_left( a: Sequence[T], x: T, lo: int = 0, hi: Optional[int] = None, key: Optional[Callable[[T], U]] = None ) -> int: """Ret...
25.72
103
0.573354
0
0
0
0
0
0
0
0
863
0.447382
a88879bc5d222329cf1a2ee415609fd7c5eb6c07
1,529
py
Python
tests/fdb.py
OriolOMM/fdb
561edf48a8999e58feafe84451320ccc4f45892d
[ "Apache-2.0" ]
null
null
null
tests/fdb.py
OriolOMM/fdb
561edf48a8999e58feafe84451320ccc4f45892d
[ "Apache-2.0" ]
null
null
null
tests/fdb.py
OriolOMM/fdb
561edf48a8999e58feafe84451320ccc4f45892d
[ "Apache-2.0" ]
1
2020-02-13T16:54:19.000Z
2020-02-13T16:54:19.000Z
import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library from datetime import datetime import time import paho.mqtt.client as mqtt def button_callback(channel): print(str(datetime.now()) + "Button was pushed!") trigger() time.sleep(2) # The callback for when the client receives a CONNACK response from ...
34.75
128
0.725965
0
0
0
0
0
0
0
0
670
0.438195
a888a17e5cc1d1b46ed3663d418f931e372c9caf
3,150
py
Python
test.py
eldinsahbaz/MetaheuristicOptimization
d553c4ea791e10b64384056927502717f5009378
[ "MIT" ]
1
2019-02-22T18:26:55.000Z
2019-02-22T18:26:55.000Z
test.py
eldinsahbaz/MetaheuristicOptimization
d553c4ea791e10b64384056927502717f5009378
[ "MIT" ]
null
null
null
test.py
eldinsahbaz/MetaheuristicOptimization
d553c4ea791e10b64384056927502717f5009378
[ "MIT" ]
null
null
null
import PSO import numpy as np from pprint import pprint from functools import partial # Define the details of the table design problem def objective_one(x): i = 0.001 return -((1/((2*np.pi)**0.5))*np.exp(-0.5*((((x[0]-1.5)*(x[0]-1.5)+(x[1]-1.5)*(x[1]-1.5))/0.5)**1)) + (2/((2*np.pi)**0.5))*np.exp(-0.5*((((x[0]...
29.439252
195
0.583492
0
0
0
0
0
0
0
0
621
0.197143
a888ce23b322d5cd58ae4ab4704251709df155c9
193
py
Python
autokey/data/My Phrases/viniciusban/terminal/kubectl exec -it from clipboard.py
viniciusban/dotfiles
e4048ef236e620ffffc83cce6d51e49019aa4e8e
[ "MIT" ]
null
null
null
autokey/data/My Phrases/viniciusban/terminal/kubectl exec -it from clipboard.py
viniciusban/dotfiles
e4048ef236e620ffffc83cce6d51e49019aa4e8e
[ "MIT" ]
1
2020-05-08T00:37:35.000Z
2020-05-08T00:37:35.000Z
autokey/data/My Phrases/viniciusban/terminal/kubectl exec -it from clipboard.py
viniciusban/dotfiles
e4048ef236e620ffffc83cce6d51e49019aa4e8e
[ "MIT" ]
null
null
null
# Enter script code message = "kubectl exec -it <cursor> -- bash" keyboard.send_keys("kubectl exec -it ") keyboard.send_keys("<shift>+<ctrl>+v") time.sleep(0.1) keyboard.send_keys(" -- bash")
24.125
45
0.694301
0
0
0
0
0
0
0
0
101
0.523316
a88abbaa6de226c43d73cf509cf13cab18de2ecb
848
py
Python
05. DiagonalDifference/solution.py
avishkar2001/AlgorithmHackerRank
d9489ba329121cbbbbc28b15fb8570d7696cde88
[ "MIT" ]
11
2020-09-18T16:23:06.000Z
2022-01-22T11:59:57.000Z
05. DiagonalDifference/solution.py
avishkar2001/AlgorithmHackerRank
d9489ba329121cbbbbc28b15fb8570d7696cde88
[ "MIT" ]
1
2020-10-02T14:33:08.000Z
2021-10-05T02:44:19.000Z
05. DiagonalDifference/solution.py
avishkar2001/AlgorithmHackerRank
d9489ba329121cbbbbc28b15fb8570d7696cde88
[ "MIT" ]
11
2020-09-18T16:23:13.000Z
2022-01-22T11:59:58.000Z
''' Topic : Algorithms Subtopic : Diagonal Difference Language : Python Problem Statement : Given a square matrix, calculate the absolute difference between the sums of its diagonals. Url : https://www.hackerrank.com/challenges/diagonal-difference/problem ''' #!/bin/python3 # Complete the 'diagonalD...
32.615385
115
0.665094
0
0
0
0
0
0
0
0
473
0.557783
a88d07cc4a9ee4c4430ecfdb6282a384f81f2ed4
334
py
Python
codeforces/dp动态规划/800/702A最大上升子列.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/dp动态规划/800/702A最大上升子列.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/dp动态规划/800/702A最大上升子列.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/702/A #严格来说不能算DP? _ = input() l = list(map(int,input().split())) #https://codeforces.com/blog/entry/71884 maxL = 1 curL = 1 for i in range(1,len(l)): if l[i]<=l[i-1]: curL = 1 continue curL += 1 if curL > maxL: maxL = cur...
18.555556
75
0.601796
0
0
0
0
0
0
0
0
136
0.390805
a88e1dd680b976d538070862154a5f05e9ddacef
10,087
py
Python
pyrobolearn/algos/fd.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/algos/fd.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/algos/fd.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provide the Finite-Difference (FD) method algorithm. This FD method is a policy gradient algorithm that explores in the parameter space of the policy in an episodic way. """ import numpy as np import torch from pyrobolearn.envs import Env from pyrobolearn.tasks import...
42.029167
119
0.620898
9,439
0.935759
0
0
0
0
0
0
6,261
0.6207
a88e902897afb9409b614fb8fea1673c9e1aaf16
592
py
Python
example/rest/system_rest_example.py
bitcom-exchange/bitcom-python-api
1491481f376ba7e7d4a7d2edb2f4400b8e4d7ec3
[ "MIT" ]
4
2021-03-04T00:10:24.000Z
2021-12-15T01:49:39.000Z
example/rest/system_rest_example.py
bitcom-exchange/bitcom-python-api
1491481f376ba7e7d4a7d2edb2f4400b8e4d7ec3
[ "MIT" ]
null
null
null
example/rest/system_rest_example.py
bitcom-exchange/bitcom-python-api
1491481f376ba7e7d4a7d2edb2f4400b8e4d7ec3
[ "MIT" ]
null
null
null
from bitcom.client.system_client import SystemClient from bitcom.utils import * from bitcom.constant import * system_client = SystemClient(url=USER1_HOST, access_key=USER1_ACCESS_KEY, secret_key=USER1_SECRET_KEY) timestamp_response = system_client.get_system_timestamp() LogInfo.output("Get server timestamp: ", timesta...
42.285714
102
0.839527
0
0
0
0
0
0
0
0
94
0.158784
a8908a5ec5616695737ca542359a44699f12cde8
6,722
py
Python
gg_gui/gui/gg_start.py
ealcobaca/optimizer_pool
e93ac72c1547bc3813a0edf822d5fd453f22ce49
[ "MIT" ]
1
2022-03-10T21:46:07.000Z
2022-03-10T21:46:07.000Z
gg_gui/gui/gg_start.py
ealcobaca/optimizer_pool
e93ac72c1547bc3813a0edf822d5fd453f22ce49
[ "MIT" ]
null
null
null
gg_gui/gui/gg_start.py
ealcobaca/optimizer_pool
e93ac72c1547bc3813a0edf822d5fd453f22ce49
[ "MIT" ]
1
2022-03-10T21:46:09.000Z
2022-03-10T21:46:09.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui/GG_start.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from utilGui import Names class Ui_main_window(object): def setupUi(self...
41.239264
74
0.666617
6,451
0.959685
0
0
0
0
0
0
755
0.112318
a8944f28e696185ef0651eba49869976c687f070
10,005
py
Python
gbpservice/contrib/tests/unit/nfp/configurator/agents/test_firewall.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/tests/unit/nfp/configurator/agents/test_firewall.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/tests/unit/nfp/configurator/agents/test_firewall.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
1
2019-12-03T15:28:24.000Z
2019-12-03T15:28:24.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.228873
78
0.625087
9,040
0.903548
0
0
1,248
0.124738
0
0
3,628
0.362619
a8945cb8801554f627e2ef91c6ad0ae2533363a4
603
py
Python
deepchem/data/test_data_loader.py
n3011/deepchem
c316d998c462ce01032f0dae883856b400ea4765
[ "MIT" ]
2
2021-04-01T01:17:53.000Z
2021-10-04T16:46:13.000Z
deepchem/data/test_data_loader.py
n3011/deepchem
c316d998c462ce01032f0dae883856b400ea4765
[ "MIT" ]
1
2020-07-13T18:59:49.000Z
2020-07-13T18:59:49.000Z
deepchem/data/test_data_loader.py
n3011/deepchem
c316d998c462ce01032f0dae883856b400ea4765
[ "MIT" ]
1
2021-04-06T20:32:02.000Z
2021-04-06T20:32:02.000Z
import os from unittest import TestCase from io import StringIO import tempfile import shutil import deepchem as dc class TestCSVLoader(TestCase): def test_load_singleton_csv(self): fin = tempfile.NamedTemporaryFile(mode='w', delete=False) fin.write("smiles,endpoint\nc1ccccc1,1") fin.close() print...
24.12
66
0.719735
483
0.800995
0
0
0
0
0
0
50
0.082919
a895712ceea2a7fbba14537af18f253be776f176
11,382
py
Python
fiwareglancesync/glancesync_serverfacade_mock.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
null
null
null
fiwareglancesync/glancesync_serverfacade_mock.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
88
2015-07-21T22:13:23.000Z
2016-11-15T21:28:56.000Z
fiwareglancesync/glancesync_serverfacade_mock.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
2
2015-08-12T11:19:55.000Z
2018-05-25T19:04:43.000Z
#!/usr/bin/env python # -- encoding: utf-8 -- # # Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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...
37.94
79
0.627833
8,405
0.738317
0
0
3,697
0.324754
0
0
4,716
0.414266
a896d0baf80ed99339ea2d85b7342a139e8dfc26
3,127
py
Python
0867_transpose_matrix/python_source.py
arthurdysart/LeetCode
69f90877c5466927e8b081c4268cbcda074813ec
[ "Unlicense" ]
null
null
null
0867_transpose_matrix/python_source.py
arthurdysart/LeetCode
69f90877c5466927e8b081c4268cbcda074813ec
[ "Unlicense" ]
null
null
null
0867_transpose_matrix/python_source.py
arthurdysart/LeetCode
69f90877c5466927e8b081c4268cbcda074813ec
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Leetcode - Transpose Matrix https://leetcode.com/problems/transpose-matrix Created on Fri Nov 23 11:13:48 2018 @author: Arthur Dysart """ ## REQUIRED MODULES import sys ## MODULE DEFINITIONS class Solution: """ Iteration over all elements of 2D array. Tim...
23.870229
76
0.525424
2,637
0.8433
0
0
0
0
0
0
1,900
0.607611
a897a4fa8a48d750657c9f7f093c97c8595dcb6d
3,094
py
Python
src/test/aiml_tests/pattern_set_tests/test_pattern_set_aiml.py
narnikgamarnikus/program-y
777b9a8a75ec787c037de9f11a8527875ff450b1
[ "MIT" ]
null
null
null
src/test/aiml_tests/pattern_set_tests/test_pattern_set_aiml.py
narnikgamarnikus/program-y
777b9a8a75ec787c037de9f11a8527875ff450b1
[ "MIT" ]
null
null
null
src/test/aiml_tests/pattern_set_tests/test_pattern_set_aiml.py
narnikgamarnikus/program-y
777b9a8a75ec787c037de9f11a8527875ff450b1
[ "MIT" ]
null
null
null
import unittest import os from test.aiml_tests.client import TestClient from programy.config.sections.brain.file import BrainFileConfiguration class BasicTestClient(TestClient): def __init__(self): TestClient.__init__(self) def load_configuration(self, arguments): super(BasicTestClient, self)...
50.721311
123
0.73788
2,946
0.952165
0
0
0
0
0
0
867
0.28022
a89927879bad1ad4980da6b351229d2b04e26b9e
1,885
py
Python
Python/erect-the-fence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/erect-the-fence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/erect-the-fence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(nlogn) # Space: O(n) # There are some trees, where each tree is represented by # (x,y) coordinate in a two-dimensional garden. # Your job is to fence the entire garden using the minimum length of rope # as it is expensive. The garden is well fenced only if all the trees are enclosed. # Your task is to help ...
29.920635
102
0.584615
736
0.390451
0
0
0
0
0
0
1,180
0.625995
a899d0bde8415bf24f5d7bf27bdd0c2ee8c0fdf1
391
py
Python
clase 1/quiz 1/quiz 1 exe.py
amedina14/uip-iq17-pc3
89f04c0670079384cee40736d5c92175a8c586a5
[ "MIT" ]
null
null
null
clase 1/quiz 1/quiz 1 exe.py
amedina14/uip-iq17-pc3
89f04c0670079384cee40736d5c92175a8c586a5
[ "MIT" ]
null
null
null
clase 1/quiz 1/quiz 1 exe.py
amedina14/uip-iq17-pc3
89f04c0670079384cee40736d5c92175a8c586a5
[ "MIT" ]
null
null
null
''' Quiz 1: Hacer un programa que lea una temperatura en farenheit y la convierta en celsius y si es mayor a 100°C imprima "caliente". Si es menor a 0°C imprima "frio" ''' tempF = int(input("TempF: ")) #(tempF - 32/(5/9)) tempC = (((tempF - 32)*5)/9) print("\nLa temperatura en Celsius es " + str(tempC)) ...
23
95
0.629156
0
0
0
0
0
0
0
0
255
0.648855
a89a91a25c7d71cc53adcd1adb0b082bb4aacfbb
59
py
Python
config.py
retry0/botTelegram-nCov
e75cac6db6ca0f3e8394c82a612bd150fc9c9d44
[ "MIT" ]
null
null
null
config.py
retry0/botTelegram-nCov
e75cac6db6ca0f3e8394c82a612bd150fc9c9d44
[ "MIT" ]
null
null
null
config.py
retry0/botTelegram-nCov
e75cac6db6ca0f3e8394c82a612bd150fc9c9d44
[ "MIT" ]
null
null
null
api_key = "1108029941:AAGkHMtVFPT1-SsL5dRZn7gR65hxWD9-HH0"
29.5
58
0.847458
0
0
0
0
0
0
0
0
48
0.813559
a89b1257c0b814198cd9f23f6ab82d1368f8a690
347
py
Python
aws-computation.py
juhi04/CodeDeployGitHubDemo
063778394a5c3adee719834b2e8116940b77b106
[ "Apache-2.0" ]
null
null
null
aws-computation.py
juhi04/CodeDeployGitHubDemo
063778394a5c3adee719834b2e8116940b77b106
[ "Apache-2.0" ]
null
null
null
aws-computation.py
juhi04/CodeDeployGitHubDemo
063778394a5c3adee719834b2e8116940b77b106
[ "Apache-2.0" ]
1
2020-09-13T21:19:01.000Z
2020-09-13T21:19:01.000Z
import pandas as pd import redis def create_dummy_df(): print("Redis imported") df = pd.DataFrame({'A': [1, 2, 3], 'B': [5, 10, 15]}) print(df) return df if __name__=='__main__': try: while True: df = create_dummy_df() except (KeyboardInterrupt, SystemExit): print...
19.277778
57
0.590778
0
0
0
0
0
0
0
0
56
0.161383
a89c762bc05a26b656892179338f84a25bc98f02
12,651
py
Python
botpubg-mpgh/SuperBot.py
fuckpubg/AHK
7b41869d9692b6d207ce9d7939ea3cb6563386fd
[ "Apache-2.0" ]
58
2017-10-25T17:24:15.000Z
2022-03-06T21:50:41.000Z
botpubg-mpgh/SuperBot.py
haryandrafatwa/AHK
7b41869d9692b6d207ce9d7939ea3cb6563386fd
[ "Apache-2.0" ]
2
2017-10-28T07:08:18.000Z
2018-01-17T03:47:49.000Z
botpubg-mpgh/SuperBot.py
haryandrafatwa/AHK
7b41869d9692b6d207ce9d7939ea3cb6563386fd
[ "Apache-2.0" ]
53
2017-11-03T06:38:36.000Z
2021-09-20T00:38:14.000Z
# -*- coding: utf-8 -*- import json import os import time import psutil import pyautogui pubg_url = 'steam://rungameid/578080' PROCNAME = "TslGame.exe" CRASH_PROCNAME = "BroCrashReporter.exe" debug_directory = "debug_screenshots" start_state = "HELLO" play_state = "PLAYING" play_timer_max = 60 * 3 matching_state = ...
43.927083
142
0.629594
0
0
0
0
0
0
0
0
2,464
0.194767
a89c866513806e569539b19ae1bf174a8a98c694
10,645
py
Python
mailcheker.py
yamamototakas/mailChecker
2798f467b96f005d2c0d657d4798720f217a113d
[ "MIT" ]
null
null
null
mailcheker.py
yamamototakas/mailChecker
2798f467b96f005d2c0d657d4798720f217a113d
[ "MIT" ]
null
null
null
mailcheker.py
yamamototakas/mailChecker
2798f467b96f005d2c0d657d4798720f217a113d
[ "MIT" ]
null
null
null
#! C:\bin\Python35\python.exe # -*- coding: utf-8 -*- ''' Modified for python3 on 2012/04/29 original python2 version is Created on 2011/10/30 @author: tyama ''' import poplib import email.header import string import re import urllib.request import urllib.error import urllib.parse import http.cookiejar import socket ...
28.538874
95
0.513293
985
0.092532
0
0
0
0
0
0
2,335
0.219352
a89d5ea301daab707e4e307ee463a9e25963e7c1
7,626
py
Python
tests/epc_schemes/test_giai.py
nedap/retail-epcpy
f5a454f2a06053f64bc42e6c6411fbd6cb47e745
[ "MIT" ]
2
2022-03-21T08:22:30.000Z
2022-03-22T12:32:29.000Z
tests/epc_schemes/test_giai.py
nedap/retail-epcpy
f5a454f2a06053f64bc42e6c6411fbd6cb47e745
[ "MIT" ]
1
2022-03-28T14:48:52.000Z
2022-03-28T14:48:52.000Z
tests/epc_schemes/test_giai.py
nedap/retail-epcpy
f5a454f2a06053f64bc42e6c6411fbd6cb47e745
[ "MIT" ]
null
null
null
import unittest from epcpy.epc_schemes.giai import GIAI, GIAIFilterValue from tests.epc_schemes.test_base_scheme import ( TestEPCSchemeInitMeta, TestGS1ElementMeta, TestTagEncodableMeta, ) class TestGIAIInit( unittest.TestCase, metaclass=TestEPCSchemeInitMeta, scheme=GIAI, valid_data=[ ...
34.663636
80
0.550747
7,415
0.972331
0
0
0
0
0
0
3,821
0.501049
a89e3fe1a4c7cef6a1cb619cc685d9746e6605e8
694
py
Python
tests/conftest.py
olist/olist-loafer
cb3bc0a46ca5a343fbd455181045212e4d032ce6
[ "MIT" ]
11
2017-10-06T18:18:16.000Z
2021-12-23T11:34:11.000Z
tests/conftest.py
pydrinker/pydrinker-loafer
32d2a36827f15cc2b5362ee54da7702267da24c9
[ "MIT" ]
7
2017-02-16T13:20:54.000Z
2020-11-03T13:50:46.000Z
tests/conftest.py
pydrinker/pydrinker-loafer
32d2a36827f15cc2b5362ee54da7702267da24c9
[ "MIT" ]
2
2017-10-06T18:18:31.000Z
2020-09-10T15:09:45.000Z
import pytest from loafer.providers import AbstractProvider @pytest.fixture def dummy_handler(): def handler(message, *args): raise AssertionError("I should not be called") return handler @pytest.fixture def dummy_provider(): class Dummy(AbstractProvider): async def fetch_messages(self...
23.133333
58
0.670029
421
0.606628
0
0
627
0.903458
278
0.400576
120
0.172911
a89e48cf3a4bd044b3bfeec924a6e17c47c0d752
543
py
Python
setup.py
anderct105/Dataset_python
9ab17eda584b6d65e6b37eb2c377f7634d375e8a
[ "MIT" ]
null
null
null
setup.py
anderct105/Dataset_python
9ab17eda584b6d65e6b37eb2c377f7634d375e8a
[ "MIT" ]
null
null
null
setup.py
anderct105/Dataset_python
9ab17eda584b6d65e6b37eb2c377f7634d375e8a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='dataset', version='0.0.1', author='Ander Cejudo', author_email='[email protected]', packages=['dataset'], url='Indicar una URL para el paquete...', license='LICENSE.txt', description='This package includes some basic functions to work with a dat...
27.15
90
0.635359
0
0
0
0
0
0
0
0
282
0.519337
a89e666e84a477e51e3b884be7e9dbae7e3aa151
8,456
py
Python
install/services/event.py
philipcwhite/monitoring2
05e24efbfc3caace248eb6daa1288920a9758178
[ "Apache-2.0" ]
10
2018-12-23T07:42:11.000Z
2022-03-11T09:43:19.000Z
install/services/event.py
philipcwhite/monitoring2
05e24efbfc3caace248eb6daa1288920a9758178
[ "Apache-2.0" ]
2
2020-08-26T11:42:20.000Z
2021-02-03T13:52:52.000Z
install/services/event.py
philipcwhite/monitoring2
05e24efbfc3caace248eb6daa1288920a9758178
[ "Apache-2.0" ]
5
2018-12-27T20:02:17.000Z
2021-11-15T12:46:42.000Z
import datetime, configparser, os, smtplib, time, pymysql.cursors from email.message import EmailMessage class EventSettings: app_path = './' availability_check = 300 availability_severity = 1 agent_retention = 2592000 data_retention = 2592000 event_retention = 2592000 database = 'monitorin...
45.219251
370
0.585501
7,907
0.935076
0
0
0
0
0
0
2,115
0.250118
a89fa94a38be0f7ff83779a36c140bcbf11011b7
1,422
py
Python
publicacion/migrations/0002_remove_publicacion_user_publicacion_autor_and_more.py
chelocastillo1/test
b783e64dbd3071c3ed074e9ce23da047e9bad97d
[ "CC0-1.0" ]
1
2021-12-12T22:27:52.000Z
2021-12-12T22:27:52.000Z
publicacion/migrations/0002_remove_publicacion_user_publicacion_autor_and_more.py
chelocastillo1/test
b783e64dbd3071c3ed074e9ce23da047e9bad97d
[ "CC0-1.0" ]
null
null
null
publicacion/migrations/0002_remove_publicacion_user_publicacion_autor_and_more.py
chelocastillo1/test
b783e64dbd3071c3ed074e9ce23da047e9bad97d
[ "CC0-1.0" ]
null
null
null
# Generated by Django 4.0 on 2021-12-15 02:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cuenta', '0001_initial'), ('publicacion', '0001_initial'), ] operations = [ migrations.RemoveField( ...
28.44
116
0.561181
1,298
0.912799
0
0
0
0
0
0
272
0.19128
a89fc07496dfb31710239a16f1bdafb72d4ca886
6,242
py
Python
databricks/koalas/missing/window.py
HG1112/koalas
580f48c81d3d2236c399063ce453f9170d88b954
[ "Apache-2.0" ]
1
2019-12-06T05:01:34.000Z
2019-12-06T05:01:34.000Z
databricks/koalas/missing/window.py
HG1112/koalas
580f48c81d3d2236c399063ce453f9170d88b954
[ "Apache-2.0" ]
null
null
null
databricks/koalas/missing/window.py
HG1112/koalas
580f48c81d3d2236c399063ce453f9170d88b954
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, 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 i...
44.585714
100
0.768343
4,578
0.733419
0
0
0
0
0
0
1,341
0.214835
a8a0133356f4f20d5bb0f1a7ef3b7ad354fcc592
1,891
py
Python
task/bq2bq/executor/bumblebee/loader.py
pikochip/transformers
aa14f19efd2a83aebd7b0d3a296053283b98e624
[ "Apache-2.0" ]
34
2021-06-16T17:25:13.000Z
2021-08-13T08:21:22.000Z
task/bq2bq/executor/bumblebee/loader.py
pikochip/transformers
aa14f19efd2a83aebd7b0d3a296053283b98e624
[ "Apache-2.0" ]
12
2021-08-10T10:08:48.000Z
2022-03-09T10:14:29.000Z
task/bq2bq/executor/bumblebee/loader.py
pikochip/transformers
aa14f19efd2a83aebd7b0d3a296053283b98e624
[ "Apache-2.0" ]
4
2021-08-10T13:10:22.000Z
2022-02-19T14:04:21.000Z
from bumblebee.bigquery_service import BigqueryService from datetime import datetime from abc import ABC from abc import abstractmethod from bumblebee.config import LoadMethod class BaseLoader(ABC): @abstractmethod def load(self, query): pass class PartitionLoader(BaseLoader): def __init__(sel...
35.018519
105
0.673189
1,703
0.900582
0
0
55
0.029085
0
0
15
0.007932
a8a04bb0a9831548bd868b09fed78c535d82ee0a
250
py
Python
Servus/home/urls.py
sug4rok/Servus
9840d0e275085c08b99fc7662eb22f2ab253d8f8
[ "MIT" ]
null
null
null
Servus/home/urls.py
sug4rok/Servus
9840d0e275085c08b99fc7662eb22f2ab253d8f8
[ "MIT" ]
null
null
null
Servus/home/urls.py
sug4rok/Servus
9840d0e275085c08b99fc7662eb22f2ab253d8f8
[ "MIT" ]
null
null
null
# coding=utf-8 from django.conf.urls import url from .views import home, positioned, tiled urlpatterns = [ url(r'^$', home), url(r'home/$', home), url(r'positioned-(?P<plan_id>[0-9]{1,4})/$', positioned), url(r'tiled/$', tiled), ]
20.833333
61
0.608
0
0
0
0
0
0
0
0
77
0.305556
a8a2455ceee1098085ee522a4b49f599484a640e
1,499
py
Python
app/API/read.py
blagisquet/testNautilux
c7952b3ff1a43555d451704430f15a09d9aa574a
[ "MIT" ]
null
null
null
app/API/read.py
blagisquet/testNautilux
c7952b3ff1a43555d451704430f15a09d9aa574a
[ "MIT" ]
null
null
null
app/API/read.py
blagisquet/testNautilux
c7952b3ff1a43555d451704430f15a09d9aa574a
[ "MIT" ]
null
null
null
import mysql.connector from mysql.connector import Error try: # connection au serveur mysql database interventions connection = mysql.connector.connect(host='localhost', database='interventions', user='root') # SELECT la totalité de la...
34.068182
70
0.648432
0
0
0
0
0
0
0
0
729
0.484385
a8a3681ea625f23d752d8458f7791096844d0480
4,482
py
Python
2_CS_Medium/Leetcode/Interview_Easy/DLC_9_Other.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
2_CS_Medium/Leetcode/Interview_Easy/DLC_9_Other.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
2_CS_Medium/Leetcode/Interview_Easy/DLC_9_Other.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
1. Number of 1 Bits (HammingWeight): https://leetcode.com/explore/interview/card/top-interview-questions-easy/99/others/565/ # Easy way def hammingWeight(self, n: int) -> int: return bin(n).count('1') # Harder way - https://stackoverflow.com/questions/21237767/python-a-b-meaning def hammingWeight...
33.699248
141
0.555779
0
0
0
0
0
0
0
0
1,683
0.375502
a8a48dba10dc8bcece98d956d127819f587eacf1
13,796
py
Python
src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common/v2/model_pb2.py
anthonyscheeres/Ipen5BackendGroep11
e2675c2ac6580f0a6f1d9e5f755f19405d17e514
[ "Apache-2.0" ]
null
null
null
src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common/v2/model_pb2.py
anthonyscheeres/Ipen5BackendGroep11
e2675c2ac6580f0a6f1d9e5f755f19405d17e514
[ "Apache-2.0" ]
null
null
null
src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common/v2/model_pb2.py
anthonyscheeres/Ipen5BackendGroep11
e2675c2ac6580f0a6f1d9e5f755f19405d17e514
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: common/v2/model.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import refle...
37.79726
1,243
0.711293
0
0
0
0
0
0
0
0
4,085
0.2961
a8a4c55a0c99efa3899b4d5f168237ee4f5c459c
24,112
py
Python
scripts/fitter/pcl_fitter.py
yuki-inaho/zense_grpc_rgbd_ir
76739df6b1a402177d2cf47c791faa252688d5b3
[ "Apache-2.0" ]
null
null
null
scripts/fitter/pcl_fitter.py
yuki-inaho/zense_grpc_rgbd_ir
76739df6b1a402177d2cf47c791faa252688d5b3
[ "Apache-2.0" ]
null
null
null
scripts/fitter/pcl_fitter.py
yuki-inaho/zense_grpc_rgbd_ir
76739df6b1a402177d2cf47c791faa252688d5b3
[ "Apache-2.0" ]
null
null
null
import math from math import pi import numpy as np import open3d as o3d import matplotlib.pyplot as plt import cv2 import toml from .cameraparam import CameraParam from .fitted_line import FittedLine from .ransac_fit import ransac_line_fit, ransac_ground_fit from .util import check_all_false # TODO: output random s...
41.644214
202
0.610443
22,775
0.94455
0
0
0
0
0
0
1,958
0.081204
a8a508f6eb9b35510baa4a9373e60749c24eb598
463
py
Python
parsnip/exceptions.py
timmyomahony/python-parsnip
f04426dbeaf1b186ed400d1229e5e34cbb1ffea6
[ "MIT" ]
2
2017-07-27T09:19:15.000Z
2019-10-27T11:44:27.000Z
parsnip/exceptions.py
timmyomahony/python-parsnip
f04426dbeaf1b186ed400d1229e5e34cbb1ffea6
[ "MIT" ]
null
null
null
parsnip/exceptions.py
timmyomahony/python-parsnip
f04426dbeaf1b186ed400d1229e5e34cbb1ffea6
[ "MIT" ]
null
null
null
class ParsnipException(Exception): def __init__(self, msg, webtexter=None): self.args = (msg, webtexter) self.msg = msg self.webtexter = webtexter def __str__(self): return repr("[%s] %s - %s" % (self.webtexter.NETWORK_NAME, self.webtexter.phone_number, self.msg)) class LoginError(ParsnipException):pa...
28.9375
100
0.764579
452
0.976242
0
0
0
0
0
0
14
0.030238
a8a5e0c27d2bf91d41a039f1df6281d8a3c2cf81
17,867
py
Python
dataschema/schema2sql.py
NunaInc/sql_tools
51d63ae77c18ccbfdcab703e8ebbee7c78972892
[ "Apache-2.0" ]
1
2022-03-30T19:47:16.000Z
2022-03-30T19:47:16.000Z
dataschema/schema2sql.py
NunaInc/sql_tools
51d63ae77c18ccbfdcab703e8ebbee7c78972892
[ "Apache-2.0" ]
null
null
null
dataschema/schema2sql.py
NunaInc/sql_tools
51d63ae77c18ccbfdcab703e8ebbee7c78972892
[ "Apache-2.0" ]
1
2022-03-30T04:07:12.000Z
2022-03-30T04:07:12.000Z
# # nuna_sql_tools: Copyright 2022 Nuna 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...
41.745327
83
0.597022
15,342
0.858678
0
0
0
0
0
0
4,123
0.230761
a8a60a167cdfc1752d84114af1252a56c3863ffe
4,701
py
Python
fca/algorithms/incremental.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
3
2015-09-07T00:16:16.000Z
2019-01-11T20:27:56.000Z
fca/algorithms/incremental.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
fca/algorithms/incremental.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Holds implementation of Norris' algorithm""" from copy import copy from fca import Concept, ConceptSystem,ConceptLink #from fca.algorithms.incremental import derivation def add_object(object, intent, lattice): sup_g = lattice.get_bottom_concept() sup_g.intent | intent #{A...
43.12844
137
0.496703
0
0
0
0
0
0
0
0
1,385
0.292874
a8a7d8e6afe65edaedc8265f8a3b5df9ef15cdd9
2,714
py
Python
adaptive/tests/test_pickling.py
AlvaroGI/adaptive
7b316c9f2972fe9ba768def86117903b90b140e5
[ "BSD-3-Clause" ]
null
null
null
adaptive/tests/test_pickling.py
AlvaroGI/adaptive
7b316c9f2972fe9ba768def86117903b90b140e5
[ "BSD-3-Clause" ]
null
null
null
adaptive/tests/test_pickling.py
AlvaroGI/adaptive
7b316c9f2972fe9ba768def86117903b90b140e5
[ "BSD-3-Clause" ]
null
null
null
import pickle import pytest from adaptive.learner import ( AverageLearner, BalancingLearner, DataSaver, IntegratorLearner, Learner1D, Learner2D, SequenceLearner, ) from adaptive.runner import simple try: import cloudpickle with_cloudpickle = True except ModuleNotFoundError: w...
23.396552
83
0.70339
0
0
0
0
830
0.305822
0
0
146
0.053795