hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
66751b94fff83bdacd031d0bcc851fdda5cb0daf
3,172
py
Python
snark/synnetdb.py
hiraokusky/snark
e3080d6d005cd126751efb3e25f158ee258cbc08
[ "Apache-2.0" ]
6
2018-12-22T13:15:50.000Z
2020-04-12T14:18:34.000Z
snark/synnetdb.py
hiraokusky/snark
e3080d6d005cd126751efb3e25f158ee258cbc08
[ "Apache-2.0" ]
null
null
null
snark/synnetdb.py
hiraokusky/snark
e3080d6d005cd126751efb3e25f158ee258cbc08
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 hiraokusky 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 dis...
27.582609
94
0.571248
1d2bd351e185a5bd4eb5d1af9d4607073ca56545
429
py
Python
scripts_ufes/paper.py
lmlima/DropoutRL
00db2e901c320cf12c60c5039561999d45591bd1
[ "BSD-3-Clause" ]
null
null
null
scripts_ufes/paper.py
lmlima/DropoutRL
00db2e901c320cf12c60c5039561999d45591bd1
[ "BSD-3-Clause" ]
null
null
null
scripts_ufes/paper.py
lmlima/DropoutRL
00db2e901c320cf12c60c5039561999d45591bd1
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sklearn.preprocessing import MinMaxScaler from scripts_ufes.data.evasao.gen_discrete_student import plot3d_state_discrete def fig3(): df = pd.read_pickle("tmp/data/xmeans/2/pca_data_discretization.d...
30.642857
82
0.780886
4bccacf5aa62294eed7144f7a62e1fd8e056c579
1,238
py
Python
src/test/resource/simpleWebInPython2.py
SmallTianTian/sse
cfbbb2d7d7795519345ce19ee4b0599c212cbcf9
[ "Apache-2.0" ]
null
null
null
src/test/resource/simpleWebInPython2.py
SmallTianTian/sse
cfbbb2d7d7795519345ce19ee4b0599c212cbcf9
[ "Apache-2.0" ]
1
2018-02-20T10:17:20.000Z
2018-02-20T10:17:20.000Z
src/test/resource/simpleWebInPython2.py
SmallTianTian/sse
cfbbb2d7d7795519345ce19ee4b0599c212cbcf9
[ "Apache-2.0" ]
1
2019-06-25T08:41:57.000Z
2019-06-25T08:41:57.000Z
#coding=utf-8 from wsgiref.simple_server import make_server import time import sys def sse_content(): file_name = sys.path[0] + '/SSENormText.txt' with open(file_name, 'r') as f: return f.readlines() sse_content = sse_content() def application(environ, start_response): if environ['PATH_INFO'] == ...
36.411765
116
0.699515
aeb64ebb8f1e363a30bcd327dd4302e75c8c9d3c
8,032
py
Python
tests/unit/configure/test_TableConfigCompleter.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/configure/test_TableConfigCompleter.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/configure/test_TableConfigCompleter.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
# Tai Sakuma <tai.sakuma@gmail.com> import pytest try: import unittest.mock as mock except ImportError: import mock from alphatwirl.configure import TableConfigCompleter ##__________________________________________________________________|| class MockDefaultSummary: pass class MockSummary2: pass c...
29.748148
77
0.538347
cd864ed1e821fec7a935af7feab16b488f0dec3d
738
py
Python
scripts/despacify.py
kennethreitz/em
9565bdde0b1acfb53d849cc526aea7ec1acf6217
[ "0BSD" ]
198
2016-03-10T06:43:47.000Z
2017-07-13T19:35:14.000Z
scripts/despacify.py
not-kennethreitz/em-keyboard
9565bdde0b1acfb53d849cc526aea7ec1acf6217
[ "0BSD" ]
22
2016-03-10T23:29:36.000Z
2017-07-03T00:55:06.000Z
scripts/despacify.py
not-kennethreitz/em-keyboard
9565bdde0b1acfb53d849cc526aea7ec1acf6217
[ "0BSD" ]
24
2016-05-16T19:42:41.000Z
2017-07-27T15:15:03.000Z
""" Replace spaces in emoji keywords with underscores """ from __future__ import annotations import json from em import parse_emojis INPUT_EMOJILIB_PATH = "em/emoji-en-US.json" OUTPUT_EMOJI_PATH = "em/emojis.json" def save_emojis(data: dict[str, list[str]], filename: str) -> None: with open(filename, "w") as o...
24.6
70
0.685637
366891a03d3e99a5ba0a4d3bbacec240e73a1fae
116
py
Python
simeng/test_objects/moving_point.py
OWigginsHay/simulation_engine
bb2ab5578d05b0235fd90e4b858f5e83b20257cc
[ "MIT" ]
null
null
null
simeng/test_objects/moving_point.py
OWigginsHay/simulation_engine
bb2ab5578d05b0235fd90e4b858f5e83b20257cc
[ "MIT" ]
2
2021-12-01T16:58:37.000Z
2021-12-03T23:11:56.000Z
simeng/test_objects/moving_point.py
OWigginsHay/simulation_engine
bb2ab5578d05b0235fd90e4b858f5e83b20257cc
[ "MIT" ]
null
null
null
from ..object import Object class MovingPoint(Object): def behaviour(self): return super().behaviour()
19.333333
34
0.689655
a6df7e3bbb0fb4efe2e64f3c1fc7754bbf23b97a
4,105
py
Python
Plots/Bar/NCL_bar_7.py
NCAR/GeoCAT-examples
fba1b045ba5145fa48cf2f3c1e3b3c7c863b0b5b
[ "Apache-2.0" ]
42
2020-03-03T16:19:30.000Z
2022-03-18T09:03:26.000Z
Plots/Bar/NCL_bar_7.py
netgodz/GeoCAT-examples
5ed9a1d68b69a921d0f1fee1160e109853926ed9
[ "Apache-2.0" ]
351
2019-12-20T22:10:47.000Z
2022-03-16T20:46:09.000Z
Plots/Bar/NCL_bar_7.py
netgodz/GeoCAT-examples
5ed9a1d68b69a921d0f1fee1160e109853926ed9
[ "Apache-2.0" ]
32
2020-01-06T21:18:48.000Z
2022-03-31T13:45:01.000Z
""" NCL_bar_7.py =============== This script illustrates the following concepts: - Drawing filled bars - Filling the bars in a bar plot with different colors - Setting the minimum/maximum value of the Y axis in a bar plot - Adding text to a plot - Rotating text 45 degrees - Drawing a custom legend See foll...
34.495798
148
0.568331
f461b5ea3f7d8fdc3436b93aac92e5a01a276662
398
py
Python
apps/discussion/urls.py
umairqadir97/learning-management-system
9924326e77146830f3fb05a9d86f876f86c4d9b8
[ "MIT" ]
7
2020-06-03T15:31:44.000Z
2021-11-21T21:19:59.000Z
apps/discussion/urls.py
umairqadir97/learning-management-system
9924326e77146830f3fb05a9d86f876f86c4d9b8
[ "MIT" ]
null
null
null
apps/discussion/urls.py
umairqadir97/learning-management-system
9924326e77146830f3fb05a9d86f876f86c4d9b8
[ "MIT" ]
10
2020-11-06T00:40:01.000Z
2022-01-12T03:20:14.000Z
from django.conf.urls import url, include from . import views from rest_framework import routers router = routers.DefaultRouter() router.register('topics', views.TopicViewSet) router.register('entries', views.EntryViewSet) # router.register('replies', views.ReplyViewSet) urlpatterns = [ # url(r'^', views.TopicLi...
24.875
66
0.738693
6cc23801008d1402a598c1c7a3af190e1fb1e8db
447
py
Python
hw_asr/model/__init__.py
s-isaev/HW.01.ASR
12963865ed29cbb29e33658f25f7da20f67d8421
[ "MIT" ]
null
null
null
hw_asr/model/__init__.py
s-isaev/HW.01.ASR
12963865ed29cbb29e33658f25f7da20f67d8421
[ "MIT" ]
null
null
null
hw_asr/model/__init__.py
s-isaev/HW.01.ASR
12963865ed29cbb29e33658f25f7da20f67d8421
[ "MIT" ]
null
null
null
from hw_asr.model.baseline_model import BaselineModel from hw_asr.model.overfit_model import OverfitModel from hw_asr.model.model_01 import Model01 from hw_asr.model.model_02 import Model02 from hw_asr.model.pet_conv_batchnorm_model import PetConvBatchnormModel from hw_asr.model.conv_batchnorm_model import ConvBatchnor...
40.636364
104
0.841163
28b482cfa404b067c39cddf1feca2ecec93b75da
470
py
Python
rapport/sentence_tokenizer.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
2
2021-10-17T00:49:16.000Z
2021-10-17T00:49:23.000Z
rapport/sentence_tokenizer.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
rapport/sentence_tokenizer.py
oceandelee/tac
62ffbcb31b374a9fa83a1ee6010b2e00f2de8a7c
[ "MIT" ]
null
null
null
"""Tokenize sentences""" import os import sys import nltk from nltk.tokenize import sent_tokenize nltk.data.path.append("/home/max/nltk_data") infile = f"data/all.txt" outfile = f"data/sents.txt" with open(outfile, 'w', encoding="utf-8") as output: with open(infile, encoding="utf-8", errors="backslashreplace") ...
24.736842
72
0.653191
b831e28f53cf6c4f24e6f0208acf486fa4d39390
1,702
py
Python
config/settings/test.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
5
2021-01-17T22:55:24.000Z
2021-01-18T21:05:18.000Z
config/settings/test.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
null
null
null
config/settings/test.py
scottbarnes/foxtail
b9faf95ad622d7aa967288698018202cc22b4893
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="DYA3L39SF...
32.730769
80
0.49765
84929dabe0abe8606d0d1cbc75f4ebb2cc37d708
1,363
py
Python
tests/components/zwave_mqtt/test_switch.py
silvertoken/core
9b8688b0fc624e7bfcb6cac81bcdadd9d2b4be79
[ "Apache-2.0" ]
2
2020-03-06T14:18:59.000Z
2020-03-06T14:24:43.000Z
tests/components/zwave_mqtt/test_switch.py
silvertoken/core
9b8688b0fc624e7bfcb6cac81bcdadd9d2b4be79
[ "Apache-2.0" ]
5
2021-02-08T20:55:25.000Z
2022-03-12T00:51:18.000Z
tests/components/zwave_mqtt/test_switch.py
silvertoken/core
9b8688b0fc624e7bfcb6cac81bcdadd9d2b4be79
[ "Apache-2.0" ]
1
2020-05-18T09:13:52.000Z
2020-05-18T09:13:52.000Z
"""Test Z-Wave Switches.""" from .common import setup_zwave async def test_switch(hass, generic_data, sent_messages, switch_msg): """Test setting up config entry.""" receive_message = await setup_zwave(hass, fixture=generic_data) # Test loaded state = hass.states.get("switch.smart_plug_switch") a...
32.452381
86
0.674982
336b8439066526aaabf09a1774d133bb22c7a5be
27,946
py
Python
alex/applications/PublicTransportInfoCS/crws_enums.py
oplatek/alex
73af644ec35c8a1cd0c37cd478c2afc1db717e0b
[ "Apache-2.0" ]
184
2015-02-11T04:14:41.000Z
2022-03-24T21:43:58.000Z
alex/applications/PublicTransportInfoCS/crws_enums.py
oplatek/alex
73af644ec35c8a1cd0c37cd478c2afc1db717e0b
[ "Apache-2.0" ]
69
2015-01-11T04:57:22.000Z
2019-04-24T10:25:56.000Z
alex/applications/PublicTransportInfoCS/crws_enums.py
oplatek/alex
73af644ec35c8a1cd0c37cd478c2afc1db717e0b
[ "Apache-2.0" ]
61
2015-03-04T10:52:13.000Z
2022-03-04T12:14:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Various enums, semi-automatically adapted from the CHAPS CRWS enum list written in C#. Comments come originally from the CRWS description and are in Czech. """ def enum(**enums): return type('Enum', (), enums) # priznaky pozadavku na podrobnosti vracenych dat ...
47.527211
164
0.686431
5b1e251e4bad0c54f3b506360177143da63c29d4
5,466
py
Python
pajbot/modules/lastfm.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
128
2015-12-28T01:02:30.000Z
2019-05-24T21:20:50.000Z
pajbot/modules/lastfm.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
277
2015-05-03T18:48:57.000Z
2019-05-23T17:41:28.000Z
pajbot/modules/lastfm.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
96
2015-08-07T18:49:50.000Z
2019-05-20T19:49:27.000Z
import logging from pajbot.models.command import Command, CommandExample from pajbot.modules import BaseModule, ModuleSetting from pajbot.streamhelper import StreamHelper log = logging.getLogger(__name__) class LastfmModule(BaseModule): ID = __name__.split(".")[-1] NAME = "LastFM module" DESCRIPTION = "...
37.696552
142
0.54775
f00e3d6bea506d4dd608e78520a24690393eddca
1,582
py
Python
deploy/shakenfist_ci/tests/test_system_namespace.py
shakenfist/shakenfist
fc8e5fec21bfc3f0ddb9952822c1a8dfdddcc546
[ "Apache-2.0" ]
24
2020-07-20T23:47:52.000Z
2022-02-10T05:12:01.000Z
deploy/shakenfist_ci/tests/test_system_namespace.py
shakenfist/shakenfist
fc8e5fec21bfc3f0ddb9952822c1a8dfdddcc546
[ "Apache-2.0" ]
637
2020-06-19T06:57:30.000Z
2022-03-31T08:58:54.000Z
deploy/shakenfist_ci/tests/test_system_namespace.py
shakenfist/shakenfist
fc8e5fec21bfc3f0ddb9952822c1a8dfdddcc546
[ "Apache-2.0" ]
7
2020-07-14T20:48:40.000Z
2021-12-18T10:06:51.000Z
import time from shakenfist_client import apiclient from shakenfist_ci import base class TestSystemNamespace(base.BaseTestCase): def test_system_namespace(self): self.assertEqual('system', self.system_client.namespace) net = self.system_client.allocate_network( '192.168.242.0/24', T...
28.763636
64
0.536662
71a62f6b3b8b61350718210302532f2890cf9978
58,578
py
Python
sdk/storage/azure-storage-file-share/tests/test_file.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-file-share/tests/test_file.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-file-share/tests/test_file.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
35.609726
1,392
0.64403
6313fdfd0887c26bc8a40f39b90983631cd5639d
238,324
py
Python
tests/admin_views/tests.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
null
null
null
tests/admin_views/tests.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
null
null
null
tests/admin_views/tests.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import re import datetime import unittest from django.conf import settings, global_settings from django.core import mail from django.core.checks import Error from django.core.files import temp as tempfile from django.core.exceptions import Impr...
45.74357
251
0.64894
07c7cacc89e134a0fd7bfe47314b33e0f926a649
3,292
py
Python
py/selenium/webdriver/common/desired_capabilities.py
weilandia/selenium
949f05eb9a0dad3fddbf1fb34c3b0164deba1db7
[ "Apache-2.0" ]
3
2019-04-21T14:21:16.000Z
2019-04-27T03:24:01.000Z
py/selenium/webdriver/common/desired_capabilities.py
weilandia/selenium
949f05eb9a0dad3fddbf1fb34c3b0164deba1db7
[ "Apache-2.0" ]
6
2019-09-26T23:37:05.000Z
2019-10-11T20:57:06.000Z
py/selenium/webdriver/common/desired_capabilities.py
lucianodgs/selenium
e2b2b97de0d9a6cc86563c866a9361237519159f
[ "Apache-2.0" ]
2
2019-06-27T19:40:39.000Z
2019-11-25T23:36:37.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
25.71875
84
0.595383
3c9ba4d2fa93151744e77256710e5f58b2f35110
20,137
py
Python
bot/exts/evergreen/help.py
blankRiot96/sir-lancebot
25175a0d33886902576333756c84bd195af563ea
[ "MIT" ]
1
2022-01-06T01:23:13.000Z
2022-01-06T01:23:13.000Z
bot/exts/evergreen/help.py
blankRiot96/sir-lancebot
25175a0d33886902576333756c84bd195af563ea
[ "MIT" ]
null
null
null
bot/exts/evergreen/help.py
blankRiot96/sir-lancebot
25175a0d33886902576333756c84bd195af563ea
[ "MIT" ]
null
null
null
# Help command from Python bot. All commands that will be added to there in futures should be added to here too. import asyncio import itertools import logging from contextlib import suppress from typing import List, NamedTuple, Union from discord import Colour, Embed, HTTPException, Message, Reaction, User from disco...
35.767318
115
0.619059
4c63689b56d0efdbfeb93cd21dfc503f89e9bf35
6,123
py
Python
ingest_results/score.py
bzinberg/MCS
495562a0d4d0b1e3679b78f0f6fb568a1b9a9ae2
[ "Apache-2.0" ]
1
2020-03-19T18:44:01.000Z
2020-03-19T18:44:01.000Z
ingest_results/score.py
bzinberg/MCS
495562a0d4d0b1e3679b78f0f6fb568a1b9a9ae2
[ "Apache-2.0" ]
null
null
null
ingest_results/score.py
bzinberg/MCS
495562a0d4d0b1e3679b78f0f6fb568a1b9a9ae2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # author: Mathieu Bernard <mathieu.a.bernard@inria.fr> """Evaluation script for the Intuitive Physics Challenge Execute the script as follow:: ./score.py input_dir output_dir The `input_dir` MUST HAVE the two subdirectories `res` and `ref` and the files `res/answer.txt` and `ref/answer.tx...
28.882075
75
0.617671
772aa2ebea13466404604afafa4bb20aaf5b53b1
55,202
py
Python
run_project_tests.py
jonaslb/meson
8133a7b9a4b8f0686fbc479aa2d64e41c85a979b
[ "Apache-2.0" ]
null
null
null
run_project_tests.py
jonaslb/meson
8133a7b9a4b8f0686fbc479aa2d64e41c85a979b
[ "Apache-2.0" ]
null
null
null
run_project_tests.py
jonaslb/meson
8133a7b9a4b8f0686fbc479aa2d64e41c85a979b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2012-2019 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by...
40.739483
152
0.591319
e8395b49c160bb3bcad92a8958f271f30d647dd7
5,364
py
Python
src/datadog_api_client/v1/model/change_widget_definition_type.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
32
2021-01-07T15:09:56.000Z
2022-01-30T05:49:23.000Z
src/datadog_api_client/v1/model/change_widget_definition_type.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
228
2020-09-03T14:03:54.000Z
2022-03-31T20:16:12.000Z
src/datadog_api_client/v1/model/change_widget_definition_type.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
12
2020-09-15T21:36:03.000Z
2022-03-31T17:13:17.000Z
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v1.model_utils import ( # noqa: F401 ApiTypeError, Mo...
39.441176
129
0.576808
afcd06ebed3b824ea437b6dfcdf7823232577d08
5,266
py
Python
tests/test_dsl_dsbs.py
lelis-research/PyGames-synthesis
0c597243c04ce511d8ae5cfd52b1c043267b4503
[ "MIT" ]
1
2021-06-03T15:54:16.000Z
2021-06-03T15:54:16.000Z
tests/test_dsl_dsbs.py
olivier-vadiaval/catcher-synthesis
0c597243c04ce511d8ae5cfd52b1c043267b4503
[ "MIT" ]
3
2021-07-26T19:58:31.000Z
2021-07-27T17:35:51.000Z
tests/test_dsl_dsbs.py
olivier-vadiaval/catcher-synthesis
0c597243c04ce511d8ae5cfd52b1c043267b4503
[ "MIT" ]
null
null
null
import unittest from src.dsl import LessThan, GreaterThan, EqualTo from unittest.mock import Mock def mockOperand(value): op = Mock() op.get_size.return_value = 1 op.interpret.return_value = value return op class TestLessThan(unittest.TestCase): def test_size_three(self): lt = LessThan.n...
44.627119
132
0.684201
bdb4b1b105c7eded0df4982fc2f73e6d7eb38fed
2,627
py
Python
app.py
ma76/searchApp-v2
965348b64f870b891ac114a5bb62798107f02bcc
[ "MIT" ]
null
null
null
app.py
ma76/searchApp-v2
965348b64f870b891ac114a5bb62798107f02bcc
[ "MIT" ]
2
2021-04-05T14:30:13.000Z
2021-04-05T14:35:37.000Z
app.py
ma76/searche
965348b64f870b891ac114a5bb62798107f02bcc
[ "MIT" ]
null
null
null
# import sys import os # import glob import shutil import pandas as pd # from openpyxl.workbook import Workbook import easygui # CONST OUTPUT_DIR = os.getcwd() FORMAT_DIRECTORIES_MAP = { 'text': 'notes', 'video': 'videos', 'music': 'music', 'image': 'pictures', 'zip': 'compressed', 'doc': 'docu...
26.27
88
0.60906
fc059782ca43838406f10e88ef3ab5308837ffcc
199
py
Python
mainwindow.py
aberrier/ethera
caed5058a19db629942c847280204794da063319
[ "MIT" ]
2
2018-06-08T09:10:41.000Z
2018-06-08T09:10:47.000Z
mainwindow.py
aberrier/ethera
caed5058a19db629942c847280204794da063319
[ "MIT" ]
null
null
null
mainwindow.py
aberrier/ethera
caed5058a19db629942c847280204794da063319
[ "MIT" ]
1
2019-02-06T19:22:53.000Z
2019-02-06T19:22:53.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost!
22.111111
68
0.703518
e78e85c3b9c66336828e9b9fae0b23bd15dd8a66
37,625
py
Python
venv/Lib/site-packages/ebcli/operations/logsops.py
theLambda/DBH-project1
9b7b1c9bd9f6629724c53872c60b1171e9ba1fa2
[ "MIT" ]
110
2020-01-15T22:58:46.000Z
2022-03-27T20:47:33.000Z
ebcli/operations/logsops.py
QPC-database/aws-elastic-beanstalk-cli
87ad9d8bbe5e4e7cb01b1bd4392eda33cb1943f7
[ "Apache-2.0" ]
89
2020-01-15T23:18:34.000Z
2022-03-31T21:56:05.000Z
ebcli/operations/logsops.py
QPC-database/aws-elastic-beanstalk-cli
87ad9d8bbe5e4e7cb01b1bd4392eda33cb1943f7
[ "Apache-2.0" ]
50
2020-01-15T22:58:53.000Z
2022-02-11T17:39:28.000Z
# Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
38.353721
110
0.711389
759f0d5c5a8d55736222be260e5e83f26eb32c30
4,013
py
Python
src/brython_jinja2/interpolatedstr.py
jonathanverner/brython-jinja2
cec6e16de1750203a858d0acf590f230fc3bf848
[ "BSD-3-Clause" ]
2
2020-09-13T17:51:55.000Z
2020-11-25T18:47:12.000Z
src/brython_jinja2/interpolatedstr.py
jonathanverner/brython-jinja2
cec6e16de1750203a858d0acf590f230fc3bf848
[ "BSD-3-Clause" ]
2
2020-11-25T19:18:15.000Z
2021-06-01T21:48:12.000Z
src/brython_jinja2/interpolatedstr.py
jonathanverner/brython-jinja2
cec6e16de1750203a858d0acf590f230fc3bf848
[ "BSD-3-Clause" ]
null
null
null
""" This module provides the :class:`InterpolatedStr` class which can be used to interpolate complex strings with multiple instances of ``{{ }}``-type circular expressions. """ from .utils.events import EventMixin from .expression import parse_interpolated_str, ConstNode class InterpolatedStr(EventMixin)...
32.626016
127
0.573636
be6b0356a826dacfccdea774ccd93dabfcb7f8e8
2,871
gyp
Python
gyp/network-unittests.gyp
nidium/libapenetwork
d011cf41402b3936cbaef1c07b5086a1a0eab265
[ "MIT" ]
22
2016-06-28T18:12:34.000Z
2020-12-10T05:05:54.000Z
gyp/network-unittests.gyp
nidium/libapenetwork
d011cf41402b3936cbaef1c07b5086a1a0eab265
[ "MIT" ]
14
2016-10-15T19:45:00.000Z
2017-04-24T11:07:01.000Z
gyp/network-unittests.gyp
nidium/libapenetwork
d011cf41402b3936cbaef1c07b5086a1a0eab265
[ "MIT" ]
8
2016-12-08T02:40:56.000Z
2020-12-11T00:27:14.000Z
# Copyright 2016 Nidium Inc. All rights reserved. # Use of this source code is governed by a MIT license # that can be found in the LICENSE file. { 'targets': [ { 'target_name': 'unittests-settings', 'type': 'none', 'direct_dependent_settings': { 'include_dirs': [ ...
33.383721
68
0.40404
d5f269812bbe07294bc2865cd94c574bca1f5460
10,128
py
Python
doc/integrations/pytorch/parlai/tasks/md_gender/wikipedia.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2020-09-27T05:00:06.000Z
2020-09-27T05:00:06.000Z
doc/integrations/pytorch/parlai/tasks/md_gender/wikipedia.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-08-04T11:17:39.000Z
2021-08-04T11:17:39.000Z
doc/integrations/pytorch/parlai/tasks/md_gender/wikipedia.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-05-03T13:27:14.000Z
2021-05-03T13:27:14.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional from parlai.core.params import ParlaiParser from parlai.core.opt import Opt from pa...
33.647841
89
0.522314
27444ec11319d2fb81ef0d6b46492df823d8d263
1,330
py
Python
app/core/tests/test_admin.py
probal25/recipe-app-api
b4e9ca260b5406b60f74cd1e38160c1a2e831827
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
probal25/recipe-app-api
b4e9ca260b5406b60f74cd1e38160c1a2e831827
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
probal25/recipe-app-api
b4e9ca260b5406b60f74cd1e38160c1a2e831827
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@doit.com', ...
32.439024
68
0.631579
01ef39c54462a8976563caec8401e9dfbfa9ef03
1,234
py
Python
Python3/1129-Shortest-Path-With-Alternating-Colors/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1129-Shortest-Path-With-Alternating-Colors/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1129-Shortest-Path-With-Alternating-Colors/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def shortestAlternatingPaths(self, n: int, red_edges: List[List[int]], blue_edges: List[List[int]]) -> List[int]: reds = collections.defaultdict(list) blues = collections.defaultdict(list) for i, j in red_edges: reds[i].append(j) for i, j in blue_edges: ...
38.5625
117
0.471637
39869ef2574a3c486d2236c57c19451949ab0613
41
py
Python
indra/ontology/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
136
2016-02-11T22:06:37.000Z
2022-03-31T17:26:20.000Z
indra/ontology/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
748
2016-02-03T16:27:56.000Z
2022-03-09T14:27:54.000Z
indra/ontology/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
56
2015-08-28T14:03:44.000Z
2022-02-04T06:15:55.000Z
from .ontology_graph import IndraOntology
41
41
0.902439
137ab07968cb8906a54b25fc454428ca0c378bab
5,430
py
Python
openGaussBase/testcase/SQL/DML/set/Opengauss_Function_DML_Set_Case0078.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/set/Opengauss_Function_DML_Set_Case0078.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/set/Opengauss_Function_DML_Set_Case0078.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
37.708333
84
0.576243
78d4ef9106901c0d8826b173fe41bdac5257cdb4
20,953
py
Python
tests/probability2/empirical_distributions/empirical_distribution_marginal_test.py
rpazuki/algos
bca46326f58eb983db6efe55320bf95fcf2b895f
[ "MIT" ]
null
null
null
tests/probability2/empirical_distributions/empirical_distribution_marginal_test.py
rpazuki/algos
bca46326f58eb983db6efe55320bf95fcf2b895f
[ "MIT" ]
1
2020-08-12T06:56:59.000Z
2020-08-12T08:57:30.000Z
tests/probability2/empirical_distributions/empirical_distribution_marginal_test.py
chasing-entropy/algos
bca46326f58eb983db6efe55320bf95fcf2b895f
[ "MIT" ]
null
null
null
import pytest from probability2.empirical_distributions import DiscreteDistribution from tests.helpers import compare def test_marginals_names_exception_discrete_distribution(): # Wrong rv name with pytest.raises(ValueError): samples = {"a": 3, "b": 4, "c": 5} disc_dist = DiscreteDistribution(...
36.954145
88
0.528325
37b783f71694aab22c6f84fd108982fc8d7cc22a
57,744
py
Python
test/integration/component/test_ip_reservation.py
ke4qqq/cloudstack
7e0f1cf4571f9c3f6c26b8d744d2ed102fa7a511
[ "Apache-2.0" ]
1
2015-02-06T04:17:11.000Z
2015-02-06T04:17:11.000Z
test/integration/component/test_ip_reservation.py
ke4qqq/cloudstack
7e0f1cf4571f9c3f6c26b8d744d2ed102fa7a511
[ "Apache-2.0" ]
6
2020-11-16T20:44:23.000Z
2022-02-01T01:06:16.000Z
test/integration/component/test_ip_reservation.py
ke4qqq/cloudstack
7e0f1cf4571f9c3f6c26b8d744d2ed102fa7a511
[ "Apache-2.0" ]
15
2017-01-12T11:17:48.000Z
2019-04-19T10:09:31.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
47.061125
147
0.603457
3400817c44441247fba7a19b3e2cbe7f7e6feee7
2,887
py
Python
utils/link_tester.py
ArneBinder/transformers
ddaafd78fb9c98d4f7b5009fb1998deff4c3d6f1
[ "Apache-2.0" ]
309
2020-02-07T23:09:27.000Z
2022-03-31T08:01:53.000Z
utils/link_tester.py
ArneBinder/transformers
ddaafd78fb9c98d4f7b5009fb1998deff4c3d6f1
[ "Apache-2.0" ]
93
2020-02-22T05:56:28.000Z
2022-03-27T08:43:38.000Z
utils/link_tester.py
ArneBinder/transformers
ddaafd78fb9c98d4f7b5009fb1998deff4c3d6f1
[ "Apache-2.0" ]
148
2020-02-14T22:16:11.000Z
2022-03-22T17:08:04.000Z
# Copyright 2020 The HuggingFace Team. 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 applicabl...
29.762887
81
0.682716
74c454427b95e0d6f3dcfd6bbcd9a083a9cdd537
2,228
py
Python
vendor/src/html5lib-python/html5lib/tests/test_encoding.py
lgp171188/fjord
1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a
[ "BSD-3-Clause" ]
16
2015-02-06T14:35:57.000Z
2021-07-10T11:14:00.000Z
vendor/src/html5lib-python/html5lib/tests/test_encoding.py
lgp171188/fjord
1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a
[ "BSD-3-Clause" ]
310
2015-01-07T14:39:35.000Z
2016-05-02T17:41:30.000Z
vendor/src/html5lib-python/html5lib/tests/test_encoding.py
lgp171188/fjord
1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a
[ "BSD-3-Clause" ]
22
2015-01-15T13:46:03.000Z
2020-07-24T10:08:51.000Z
from __future__ import absolute_import, division, unicode_literals import os import unittest try: unittest.TestCase.assertEqual except AttributeError: unittest.TestCase.assertEqual = unittest.TestCase.assertEquals from .support import get_data_files, TestData, test_dir, errorMessage from html5lib import HTML...
32.764706
99
0.70781
c6fdacb231fa9d7c5485d00d3022b374d423bb1a
1,620
py
Python
train_ppo.py
zhuyawen/sonic-on-ray
418d8917aff3265f50ca37d8aed0a244af5a5fa8
[ "Apache-2.0" ]
47
2018-04-05T20:24:39.000Z
2021-10-30T06:53:46.000Z
train_ppo.py
zhuyawen/sonic-on-ray
418d8917aff3265f50ca37d8aed0a244af5a5fa8
[ "Apache-2.0" ]
2
2018-10-30T20:38:05.000Z
2019-07-15T18:44:01.000Z
train_ppo.py
LaudateCorpus1/sonic-on-ray
418d8917aff3265f50ca37d8aed0a244af5a5fa8
[ "Apache-2.0" ]
14
2018-04-19T20:05:05.000Z
2021-09-19T06:48:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sonic_on_ray import ray from ray.rllib import ppo from ray.tune.registry import register_env env_name = 'sonic_env' # Note that the hyperparameters have been tuned for sonic, which can be used # run by...
28.421053
76
0.621605
7824199b84dc568c0155e61b9775180406dec779
28,388
py
Python
parsl/executors/high_throughput/process_worker_pool.py
tuhz/parsl
8a36d0ae8f6d935441a378c4cd4e85b308a36caa
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/process_worker_pool.py
tuhz/parsl
8a36d0ae8f6d935441a378c4cd4e85b308a36caa
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/process_worker_pool.py
tuhz/parsl
8a36d0ae8f6d935441a378c4cd4e85b308a36caa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import logging import os import sys import platform # import random import threading import pickle import time import datetime import queue import uuid import zmq import math import json import psutil import multiprocessing from parsl.version import VERSION as PARSL_VERSION from...
44.080745
149
0.565979
49330c7c9e97c1a810a54ac6cb73b674defe0efd
280
py
Python
src/apps/blog/forms.py
Pewpewarrows/MyModernLife
5348792b0aedc2bae6c91d688e61391b0656e136
[ "X11" ]
null
null
null
src/apps/blog/forms.py
Pewpewarrows/MyModernLife
5348792b0aedc2bae6c91d688e61391b0656e136
[ "X11" ]
null
null
null
src/apps/blog/forms.py
Pewpewarrows/MyModernLife
5348792b0aedc2bae6c91d688e61391b0656e136
[ "X11" ]
null
null
null
from django.forms import ModelForm from models import Blog, Post class BlogForm(ModelForm): class Meta: model = Blog fields = ('title',) class PostForm(ModelForm): class Meta: model = Post fields = ('title', 'markup', 'content', 'tags')
20
55
0.617857
500cb572e5e26a0c84338f1618bc53a03db2e8ef
1,551
py
Python
tests/integration_tests/feature_flag_tests.py
cevheri/superset
34542db3b615ff556281f80410f322f41f5a97a6
[ "Apache-2.0" ]
19
2018-09-02T10:52:23.000Z
2022-03-24T09:43:48.000Z
tests/integration_tests/feature_flag_tests.py
cevheri/superset
34542db3b615ff556281f80410f322f41f5a97a6
[ "Apache-2.0" ]
62
2020-05-06T22:51:53.000Z
2022-03-28T20:49:17.000Z
tests/integration_tests/feature_flag_tests.py
cevheri/superset
34542db3b615ff556281f80410f322f41f5a97a6
[ "Apache-2.0" ]
15
2019-04-29T05:38:31.000Z
2022-02-12T10:47:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.829268
81
0.746615
8d6a2340769e867303e71495d14a1b9df247b032
680
py
Python
setup.py
rolandio/python-elgato-streamdeck
72805ca1475f6b2638344b287dda55386095f30c
[ "MIT" ]
517
2018-01-06T18:27:40.000Z
2022-03-30T23:06:46.000Z
setup.py
rolandio/python-elgato-streamdeck
72805ca1475f6b2638344b287dda55386095f30c
[ "MIT" ]
87
2018-01-06T13:10:41.000Z
2022-03-19T02:47:23.000Z
setup.py
rolandio/python-elgato-streamdeck
72805ca1475f6b2638344b287dda55386095f30c
[ "MIT" ]
97
2018-01-06T12:00:09.000Z
2022-03-19T01:39:32.000Z
import setuptools with open("VERSION", 'r') as f: version = f.read().strip() with open("README.md", 'r') as f: long_description = f.read() setuptools.setup( name='streamdeck', version=version, description='Library to control Elgato StreamDeck devices.', author='Dean Camera', author_email='dean...
27.2
65
0.707353
be9d6b540c576ed8cd7fb0130f2abbe52bd60f50
922
py
Python
scraper/storage_spiders/onlinefridayvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/onlinefridayvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/onlinefridayvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='title_sp_detail width_common']", 'price' : "//div[@class='block_item_detial']/div[@class='w70 price_at color_price_at']"...
34.148148
92
0.652928
7d5ca92e2aae0323480b3c8dd5b6afb5d48ec663
7,971
py
Python
grr/server/grr_response_server/server_logging.py
certxlm/grr
c2a442a27f656fb18dfa3bce098847e5c5b849d7
[ "Apache-2.0" ]
1
2019-08-28T23:48:20.000Z
2019-08-28T23:48:20.000Z
grr/server/grr_response_server/server_logging.py
AjitNair2/grr
2a2ea891b3927775872904cdd402a18e7bb3d143
[ "Apache-2.0" ]
2
2022-01-15T03:18:12.000Z
2022-02-13T22:02:43.000Z
grr/server/grr_response_server/server_logging.py
acidburn0zzz/grr
44e1a5b1630e8101610faaaebe15b19b5ad30cb1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Functions for server logging.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import logging from logging import handlers import os import socket import time from absl import flags from grr_response_core import config from grr...
29.522222
80
0.69803
f2b5e779e0653889e47e400105c4e61627428874
17,883
py
Python
IEEExtreme2017/elementary.py
Victoralin10/ACMSolutions
6d6e50da87b2bc455e953629737215b74b10269c
[ "MIT" ]
null
null
null
IEEExtreme2017/elementary.py
Victoralin10/ACMSolutions
6d6e50da87b2bc455e953629737215b74b10269c
[ "MIT" ]
null
null
null
IEEExtreme2017/elementary.py
Victoralin10/ACMSolutions
6d6e50da87b2bc455e953629737215b74b10269c
[ "MIT" ]
null
null
null
M = {} M["a"] = "0" M["aa"] = "0" M["aaa"] = "0" M["ab"] = "0" M["aba"] = "0" M["abc"] = "0" M["abinombca"] = "0" M["able"] = "0" M["about"] = "0" M["account"] = "0" M["activity"] = "0" M["adaptive"] = "0" M["addition"] = "0" M["adjacent"] = "0" M["after"] = "0" M["algorithms"] = "0" M["alice"] = "1" M["alices"] = "2" ...
18.15533
66
0.450036
ee07597a6327492ae5bb579310e53d7f7351c126
307,820
py
Python
ambari-server/src/test/python/TestAmbariServer.py
mkozinenko/ambari
9cfe9559420a1f4af89a2d645af84b1ab20d6737
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-server/src/test/python/TestAmbariServer.py
mkozinenko/ambari
9cfe9559420a1f4af89a2d645af84b1ab20d6737
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-server/src/test/python/TestAmbariServer.py
mkozinenko/ambari
9cfe9559420a1f4af89a2d645af84b1ab20d6737
[ "Apache-2.0", "MIT" ]
null
null
null
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
38.357632
256
0.716026
e711398ea4e871a318346faf850e72c2d78ad99d
632
py
Python
src/z3c/objpath/tests.py
zopefoundation/z3c.objpath
bc4947b105a6851d06d09a205f8fffcb8088507f
[ "ZPL-2.1" ]
1
2021-03-05T17:27:29.000Z
2021-03-05T17:27:29.000Z
src/z3c/objpath/tests.py
zopefoundation/z3c.objpath
bc4947b105a6851d06d09a205f8fffcb8088507f
[ "ZPL-2.1" ]
5
2018-03-12T17:28:42.000Z
2021-09-21T06:16:30.000Z
src/z3c/objpath/tests.py
zopefoundation/z3c.objpath
bc4947b105a6851d06d09a205f8fffcb8088507f
[ "ZPL-2.1" ]
null
null
null
from zope.interface.verify import verifyObject import doctest import unittest class ObjectPathTests(unittest.TestCase): """Testing .path.*""" def test_module_provides_interface(self): from .interfaces import IObjectPath from . import _path self.assertTrue(verifyObject(IObjectPath, _pa...
23.407407
57
0.68038
c4f12b4bf90aa328a2e7eaf42e80c231ec54ab36
3,505
py
Python
python/tink/integration/gcpkms/_gcp_kms_aead_test.py
szaydel/tink
e231fe638eb1f1ed8f1d45cc665ee98736c781d6
[ "Apache-2.0" ]
null
null
null
python/tink/integration/gcpkms/_gcp_kms_aead_test.py
szaydel/tink
e231fe638eb1f1ed8f1d45cc665ee98736c781d6
[ "Apache-2.0" ]
null
null
null
python/tink/integration/gcpkms/_gcp_kms_aead_test.py
szaydel/tink
e231fe638eb1f1ed8f1d45cc665ee98736c781d6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.097826
139
0.74408
8fb74104745e4e194de6e52378c617c2b9ca62ea
5,050
py
Python
m2cgen/assemblers/svm.py
bcampbell-prosper/m2cgen
cc049fe5cd7060c2f0cd5a0331e3aa85fac2a336
[ "MIT" ]
3
2021-06-29T02:43:40.000Z
2022-03-28T07:41:59.000Z
m2cgen/assemblers/svm.py
bcampbell-prosper/m2cgen
cc049fe5cd7060c2f0cd5a0331e3aa85fac2a336
[ "MIT" ]
null
null
null
m2cgen/assemblers/svm.py
bcampbell-prosper/m2cgen
cc049fe5cd7060c2f0cd5a0331e3aa85fac2a336
[ "MIT" ]
3
2021-08-06T07:51:37.000Z
2022-03-28T07:41:42.000Z
from m2cgen import ast from m2cgen.assemblers import utils from m2cgen.assemblers.base import ModelAssembler class SVMModelAssembler(ModelAssembler): def __init__(self, model): super().__init__(model) supported_kernels = { "rbf": self._rbf_kernel, "sigmoid": self._sigmoid...
36.594203
78
0.611485
9c86779fcc28c2dee798286233823a667a8aa9fd
1,828
py
Python
Lib/site-packages/sphinx/environment/collectors/indexentries.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
3
2020-01-04T16:46:59.000Z
2020-10-09T03:04:31.000Z
Lib/site-packages/sphinx/environment/collectors/indexentries.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
10
2021-06-16T20:48:32.000Z
2021-10-04T18:22:02.000Z
Lib/site-packages/sphinx/environment/collectors/indexentries.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
2
2019-11-02T08:03:09.000Z
2020-06-29T14:52:15.000Z
""" sphinx.environment.collectors.indexentries ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Index entries collector for sphinx.environment. :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from typing import Any, Dict, Set from docutils i...
31.517241
82
0.641685
ab705f28ba8114d712a9c43f6a0f9792ddd17d5e
5,779
py
Python
neural_net.py
gioypi/penthy
938566af92b519cb57a7f0f1f22885f4b6a92292
[ "MIT" ]
null
null
null
neural_net.py
gioypi/penthy
938566af92b519cb57a7f0f1f22885f4b6a92292
[ "MIT" ]
null
null
null
neural_net.py
gioypi/penthy
938566af92b519cb57a7f0f1f22885f4b6a92292
[ "MIT" ]
null
null
null
"""Create a Convolutional Neural Network with Keras and train it to tell truly lossless and transcoded audio apart. Build a Keras CNN to evaluate audio compression based on spectograms. Use spectogram images extracted with the audio_manipulation module as a dataset. Save the trained Network, but not the dataset. A...
52.063063
118
0.71483
72c71119cd90849738f63158e442f5b421f4185f
3,601
py
Python
imitator/pose_imitation/data_process/convert_clip.py
Garfield-kh/PoseTriplet
eb93132f99161bd776dafbcb713e9fb43e501c36
[ "MIT" ]
9
2022-03-30T04:40:11.000Z
2022-03-31T16:03:27.000Z
imitator/pose_imitation/data_process/convert_clip.py
Garfield-kh/PoseTriplet
eb93132f99161bd776dafbcb713e9fb43e501c36
[ "MIT" ]
null
null
null
imitator/pose_imitation/data_process/convert_clip.py
Garfield-kh/PoseTriplet
eb93132f99161bd776dafbcb713e9fb43e501c36
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.getcwd()) from utils import * from utils.transformation import quaternion_from_euler from mujoco_py import load_model_from_path from mocap.skeleton import Skeleton from mocap.pose import load_bvh_file, interpolated_traj import pickle import glob import argparse import time par...
36.01
103
0.666482
9c96cf9407e71d09abd07104cf5bd27e2599e27a
1,789
py
Python
src/PROBE/start_search.py
lelis-research/PyGames-synthesis
0c597243c04ce511d8ae5cfd52b1c043267b4503
[ "MIT" ]
1
2021-06-03T15:54:16.000Z
2021-06-03T15:54:16.000Z
src/PROBE/start_search.py
olivier-vadiaval/catcher-synthesis
0c597243c04ce511d8ae5cfd52b1c043267b4503
[ "MIT" ]
3
2021-07-26T19:58:31.000Z
2021-07-27T17:35:51.000Z
src/PROBE/start_search.py
olivier-vadiaval/catcher-synthesis
0c597243c04ce511d8ae5cfd52b1c043267b4503
[ "MIT" ]
null
null
null
""" start_search.py Author: Olivier Vadiavaloo Description: This module provides the implementation of the driver code for the probe synthesizer. It creates the list of rules, the pcfg, the logger object and the probe object. """ from math import log10, floor from src.dsl import * from src.PROBE.rule import * from sr...
25.557143
88
0.645053
accd1f7105b898defa161501056b7fe028407de4
71,262
py
Python
pygments/lexers/templates.py
zaibacu/pygments
8d110f8dc23f9154277625f3b3555f03ba68093d
[ "BSD-2-Clause" ]
16
2020-09-20T22:32:54.000Z
2021-04-02T17:14:25.000Z
pygments/lexers/templates.py
zaibacu/pygments
8d110f8dc23f9154277625f3b3555f03ba68093d
[ "BSD-2-Clause" ]
301
2020-10-03T10:46:31.000Z
2022-03-27T23:46:23.000Z
pygments/lexers/templates.py
zaibacu/pygments
8d110f8dc23f9154277625f3b3555f03ba68093d
[ "BSD-2-Clause" ]
2
2020-09-17T08:27:12.000Z
2021-08-23T11:13:52.000Z
# -*- coding: utf-8 -*- """ pygments.lexers.templates ~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for various template engines' markup. :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexers.html import HtmlLexer, XmlLex...
31.587766
89
0.495931
c10810c72bd415507fd08f829d642393752240a3
5,633
py
Python
depccg/semantics/ccg2lambda/parse.py
erezagami/depccg
15347f93e4c6c923c343e53bcb873e0f2f954446
[ "MIT" ]
null
null
null
depccg/semantics/ccg2lambda/parse.py
erezagami/depccg
15347f93e4c6c923c343e53bcb873e0f2f954446
[ "MIT" ]
null
null
null
depccg/semantics/ccg2lambda/parse.py
erezagami/depccg
15347f93e4c6c923c343e53bcb873e0f2f954446
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # Copyright 2015 Pascual Martinez-Gomez # # 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 # ...
36.108974
95
0.677614
996f58cbc1164e772d7255dfc0e1f0c8068bf623
19,516
py
Python
kedro/template/{{ cookiecutter.repo_name }}/kedro_cli.py
andmikey/kedro
9b4e4135720609d44ffdf5248246fe805f0b5469
[ "Apache-2.0" ]
null
null
null
kedro/template/{{ cookiecutter.repo_name }}/kedro_cli.py
andmikey/kedro
9b4e4135720609d44ffdf5248246fe805f0b5469
[ "Apache-2.0" ]
null
null
null
kedro/template/{{ cookiecutter.repo_name }}/kedro_cli.py
andmikey/kedro
9b4e4135720609d44ffdf5248246fe805f0b5469
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS"...
32.966216
96
0.660228
122d5cb2917c380c4e070985bb2c90648ddff57a
414
py
Python
hangie.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
hangie.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
hangie.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
hangman=[' _______',' |/ |',' | (_)',' | \|/',' | |',' | / \\',' |',' _|___'] a='aeroplane' c=[] for i in a: c.append('_ ') print(*c) n=len(a) def inp(): user=input("enter the word") for i in range(len(a)): if(a[i] == user): c[i] ...
20.7
135
0.321256
29ec37c71cdee3430a2cc2065ec481d0b1ed6bf4
455
py
Python
tests/small-build/test_api.py
NaxoAI/conceptnet5
2ec9fbff06d63fc303f8f2b1b62fd1ceed8e4b74
[ "Apache-2.0" ]
null
null
null
tests/small-build/test_api.py
NaxoAI/conceptnet5
2ec9fbff06d63fc303f8f2b1b62fd1ceed8e4b74
[ "Apache-2.0" ]
null
null
null
tests/small-build/test_api.py
NaxoAI/conceptnet5
2ec9fbff06d63fc303f8f2b1b62fd1ceed8e4b74
[ "Apache-2.0" ]
1
2021-08-05T13:34:32.000Z
2021-08-05T13:34:32.000Z
from conceptnet5 import api from nose.tools import eq_ def test_related_query(): # Test that we can look up related terms result = api.query_related('/c/en/test', limit=3) eq_(len(result['related']), 3) def test_related_query_malformed(): # Test that we fulfill a query for related terms to a nonsens...
26.764706
75
0.696703
3ea08a45f63f2f005ce24582aa32c12b73c4a15e
115
py
Python
aws_config/configure/config_utils.py
rwalk/straw
1940d521538635d5eab394d0ed4c87caf366b0c7
[ "MIT" ]
58
2016-06-03T18:16:32.000Z
2021-08-11T19:01:03.000Z
aws_config/configure/config_utils.py
rwalk333/straw
1940d521538635d5eab394d0ed4c87caf366b0c7
[ "MIT" ]
1
2019-08-22T14:22:14.000Z
2019-08-22T14:22:14.000Z
aws_config/configure/config_utils.py
rwalk/straw
1940d521538635d5eab394d0ed4c87caf366b0c7
[ "MIT" ]
18
2016-06-23T02:24:51.000Z
2022-01-20T11:17:53.000Z
#!/usr/bin/python3 def quiet_wrap(cmd): return(" ".join(["nohup",cmd, "< /dev/null > std.out 2> std.err &"]))
23
73
0.582609
b22d31bee0f54f3f318466edea3b4df9e587a99b
299
py
Python
output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.unsigned_byte.schema_instance.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_1_xsd.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_1 import NistschemaSvIvAtomicUnsignedByteMinInclusive1 __all__ = [ "NistschemaSvIvAtomicUnsignedByteMinInclusive1", ]
49.833333
230
0.909699
89a352d5cf8a637b912708e03cd14b07232e67d5
3,306
py
Python
mmdet/models/roi_heads/roi_extractors/generic_roi_extractor.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/roi_extractors/generic_roi_extractor.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/roi_extractors/generic_roi_extractor.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
from mmcv.cnn.bricks import build_plugin_layer from mmcv.runner import force_fp32 from mmdet.models.builder import ROI_EXTRACTORS from .base_roi_extractor import BaseRoIExtractor @ROI_EXTRACTORS.register_module() class GenericRoIExtractor(BaseRoIExtractor): """Extract RoI features from all level feature...
39.357143
80
0.613128
45372e214f923de5d79ced5fa1ccf9adf7237631
4,187
py
Python
iblrig/fake_task_settings.py
int-brain-lab/iblr
18569278fc2d8cd3266adb2a5f660a43f8f2582e
[ "MIT" ]
13
2018-08-07T21:56:08.000Z
2021-12-06T17:53:37.000Z
iblrig/fake_task_settings.py
int-brain-lab/iblr
18569278fc2d8cd3266adb2a5f660a43f8f2582e
[ "MIT" ]
360
2018-07-24T16:35:26.000Z
2022-03-23T15:28:56.000Z
iblrig/fake_task_settings.py
int-brain-lab/iblr
18569278fc2d8cd3266adb2a5f660a43f8f2582e
[ "MIT" ]
15
2019-03-12T16:25:05.000Z
2021-09-06T10:30:24.000Z
# ============================================================================= # TASK PARAMETER DEFINITION (should appear on GUI) init trial objects values # ============================================================================= # IBL rig root folder IBLRIG_FOLDER = "C:\\iblrig" IBLRIG_DATA_FOLDER = None # If ...
49.845238
138
0.713637
170433965815e07d5153c51b0f81b61abb305be9
258
py
Python
sphinxcontrib/test_reports/directives/__init__.py
lassebn/sphinx-test-reports
1655c81a3b9e79cd46244810cd7f3ef8fb84c1aa
[ "MIT" ]
null
null
null
sphinxcontrib/test_reports/directives/__init__.py
lassebn/sphinx-test-reports
1655c81a3b9e79cd46244810cd7f3ef8fb84c1aa
[ "MIT" ]
null
null
null
sphinxcontrib/test_reports/directives/__init__.py
lassebn/sphinx-test-reports
1655c81a3b9e79cd46244810cd7f3ef8fb84c1aa
[ "MIT" ]
1
2021-08-18T10:15:17.000Z
2021-08-18T10:15:17.000Z
from .test_common import TestCommonDirective from .test_file import TestFileDirective, TestFile from .test_suite import TestSuiteDirective, TestSuite from .test_case import TestCaseDirective, TestCase from .test_report import TestReportDirective, TestReport
43
56
0.872093
1979af5fb3706350953c3cf7542c026719d5d908
18,865
py
Python
official/nlp/bert/run_classifier.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
official/nlp/bert/run_classifier.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
official/nlp/bert/run_classifier.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.489362
80
0.680732
53be355cbf73c27ff19e6c062e1158bac91f1576
1,657
py
Python
src/plume/utils/extended_path.py
malarinv/plume-asr
79aa5e85788070aad688d41fbbf9f8b1f8aa8fb5
[ "MIT" ]
null
null
null
src/plume/utils/extended_path.py
malarinv/plume-asr
79aa5e85788070aad688d41fbbf9f8b1f8aa8fb5
[ "MIT" ]
null
null
null
src/plume/utils/extended_path.py
malarinv/plume-asr
79aa5e85788070aad688d41fbbf9f8b1f8aa8fb5
[ "MIT" ]
null
null
null
from pathlib import Path import json from .lazy_import import lazy_module yaml = lazy_module("ruamel.yaml") pydub = lazy_module("pydub") class ExtendedPath(type(Path())): """docstring for ExtendedPath.""" def read_json(self, verbose=False): if verbose: print(f"reading json from {self}")...
29.070175
54
0.578153
bcfaf0265ce5962a6aa97718ae60a18dfc49299c
2,408
py
Python
controllers/stats.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
205
2015-01-20T08:26:09.000Z
2022-03-27T19:59:33.000Z
controllers/stats.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
249
2015-02-10T09:56:35.000Z
2022-03-23T19:54:36.000Z
controllers/stats.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
231
2015-02-10T09:33:17.000Z
2022-02-18T19:56:05.000Z
# -*- coding: utf-8 -*- """ Sahana Eden Stats Controller """ if not settings.has_module(c): raise HTTP(404, body="Module disabled: %s" % c) # ----------------------------------------------------------------------------- def index(): """ Module's Home Page """ return s3db.cms_index(c, alt_function="i...
28.329412
79
0.382475
d539dcc03b28d213ba1dfd6b4732fe577d9e0dfb
69,375
py
Python
tensorlayerx/backend/ops/paddle_nn.py
tensorlayer/TensorLayerX
4e3e6f13687309dda7787f0b86e35a62bb3adbad
[ "Apache-2.0" ]
34
2021-12-03T08:19:23.000Z
2022-03-13T08:34:34.000Z
tensorlayerx/backend/ops/paddle_nn.py
tensorlayer/TensorLayerX
4e3e6f13687309dda7787f0b86e35a62bb3adbad
[ "Apache-2.0" ]
null
null
null
tensorlayerx/backend/ops/paddle_nn.py
tensorlayer/TensorLayerX
4e3e6f13687309dda7787f0b86e35a62bb3adbad
[ "Apache-2.0" ]
3
2021-12-28T16:57:20.000Z
2022-03-18T02:23:14.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- import paddle as pd from paddle import framework import paddle.nn.functional as F import numpy as np import paddle.fluid as fluid from paddle.nn import initializer as I from paddle.fluid.layers.utils import map_structure, flatten, pack_sequence_as from paddle.fluid.data_feede...
34.15805
148
0.619459
70e8371498b0e891c36ea2b78808ae580cb9fedc
1,047
py
Python
alife/alife_shelter.py
flags/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
56
2015-04-20T08:31:29.000Z
2021-12-19T14:05:18.000Z
alife/alife_shelter.py
HexDecimal/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
2
2018-07-24T11:24:41.000Z
2021-05-16T03:04:53.000Z
alife/alife_shelter.py
HexDecimal/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
9
2015-11-03T02:56:20.000Z
2021-04-28T08:19:57.000Z
from globals import * import life as lfe import references import judgement import chunks import goals import maps import random STATE = 'shelter' TIER = TIER_SURVIVAL-.1 def get_tier(life): if not lfe.execute_raw(life, 'discover', 'desires_shelter') and lfe.execute_raw(life, 'state', 'shelter'): return TIER_ID...
29.083333
119
0.727794
5f1f40fdb37c506c6a6922dc33154cee6361df5a
1,434
py
Python
agrc/messaging.py
stdavis/agrc.python
cd9a25c21f283ee01a0e59b2328f29991e396864
[ "MIT" ]
2
2016-09-29T16:52:28.000Z
2018-05-07T23:08:51.000Z
agrc/messaging.py
stdavis/agrc.python
cd9a25c21f283ee01a0e59b2328f29991e396864
[ "MIT" ]
4
2015-02-17T14:23:17.000Z
2016-11-08T15:53:35.000Z
agrc/messaging.py
agrc/agrc.python
0e211baa58c99d55e53568648cd22912a4d466b8
[ "MIT" ]
4
2015-09-10T13:39:54.000Z
2018-07-23T16:08:21.000Z
from smtplib import SMTP from email.mime.text import MIMEText class Emailer: # set this to True to prevent emails from actually being sent fromAddress = 'noreply@utah.gov' server = 'send.state.ut.us' port = 25 def __init__(self, toAddress, testing=False): """ split multiple emails...
28.68
100
0.580893
0b2f87b299d3b2252148a658feea4abd7016f8c3
118
py
Python
secrets.py
borisboychev/Instagram-bot
d6ea1d6e954d081117bd84459ac871b3bb233bc0
[ "MIT" ]
null
null
null
secrets.py
borisboychev/Instagram-bot
d6ea1d6e954d081117bd84459ac871b3bb233bc0
[ "MIT" ]
null
null
null
secrets.py
borisboychev/Instagram-bot
d6ea1d6e954d081117bd84459ac871b3bb233bc0
[ "MIT" ]
null
null
null
""""ENTER YOUR CREDENTIALS HERE""" username = "" # <- ENTER USERNAME HERE password = "" # <- ENTER PASSWORD HERE
23.6
39
0.627119
7b40f6c26b26e8aa8e5b7b3e58579f15d476c2e6
1,370
py
Python
tests/ut_repytests_testsocketclose.py
SeattleTestbed/repy_v1
f40a02e2e398b1ec67fede84b41a264ae7356d2c
[ "MIT" ]
1
2021-08-18T05:58:17.000Z
2021-08-18T05:58:17.000Z
tests/ut_repytests_testsocketclose.py
SeattleTestbed/repy_v1
f40a02e2e398b1ec67fede84b41a264ae7356d2c
[ "MIT" ]
3
2015-11-17T21:01:03.000Z
2016-07-14T09:08:04.000Z
tests/ut_repytests_testsocketclose.py
SeattleTestbed/repy_v1
f40a02e2e398b1ec67fede84b41a264ae7356d2c
[ "MIT" ]
5
2015-07-02T13:29:23.000Z
2021-09-25T07:48:30.000Z
#pragma repy """ Author: Armon Dadgar Description: This tests the behavior of sockets when close() is called and there is data in the recv buffer. "Bad" behavior would be if new_conn throws a "Socket closed" exception. Good behavior is a clean termination. When we call close(), it is possible that a TCP RST...
22.833333
63
0.692701
f43dc6258f7e9dbcd6962376a790c90f57a1a7b4
1,585
py
Python
fbtor/test/BitVecConvertTest.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
fbtor/test/BitVecConvertTest.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
fbtor/test/BitVecConvertTest.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
from fbtor.BitVecConvert import BitVecConvStatic from fbtor.FBoolectorTypes import FPType, RMode, WIDTH, MAN, EXP from .test_converter import * import pytest """ Test cases for the string to bitstring implementation: """ def test_Zero(): for t in FPType: for r in RMode: for sign in ["+","-"]...
35.222222
76
0.615773
b2e9dbbaa4223a1edded083c8c33627936e2e0aa
5,593
py
Python
pxr/usd/usdShade/testenv/testUsdShadeCoordSysAPI.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
3,680
2016-07-26T18:28:11.000Z
2022-03-31T09:55:05.000Z
pxr/usd/usdShade/testenv/testUsdShadeCoordSysAPI.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
1,759
2016-07-26T19:19:59.000Z
2022-03-31T21:24:00.000Z
pxr/usd/usdShade/testenv/testUsdShadeCoordSysAPI.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
904
2016-07-26T18:33:40.000Z
2022-03-31T09:55:16.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
44.744
78
0.650456
47aea8df3617f50ad11ea9a1efac0b4af064b14f
6,856
py
Python
pluginsmanager/model/system/system_effect.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
9
2017-05-24T09:55:34.000Z
2020-06-22T03:55:51.000Z
pluginsmanager/model/system/system_effect.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
97
2016-11-17T16:30:35.000Z
2021-10-09T00:27:56.000Z
pluginsmanager/model/system/system_effect.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
3
2017-05-21T19:20:38.000Z
2019-11-04T23:53:59.000Z
# Copyright 2017 SrMouraSilva # # 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,...
41.551515
103
0.695741
17f81bc5a26cc05a274106a86bf22043abde1f97
329
py
Python
rastervision/v2/learner/learner_pipeline.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2019-11-07T10:02:23.000Z
2019-11-07T10:02:23.000Z
rastervision/v2/learner/learner_pipeline.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
rastervision/v2/learner/learner_pipeline.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
from rastervision.v2.core.pipeline import Pipeline LEARNER_PIPELINE = 'learner_pipeline' class LearnerPipeline(Pipeline): commands = ['train'] gpu_commands = ['train'] def train(self): learner_cfg = self.config.learner learner = learner_cfg.build(learner_cfg, self.tmp_dir) learne...
23.5
62
0.699088
b65b70d840a6989ac50381689635aa979903c55f
163
py
Python
artext/__init__.py
nlpcl-lab/artext
e216fae54932d4f0dc47b251bc67416d687dbcf3
[ "MIT" ]
null
null
null
artext/__init__.py
nlpcl-lab/artext
e216fae54932d4f0dc47b251bc67416d687dbcf3
[ "MIT" ]
1
2019-11-23T05:36:14.000Z
2019-12-06T11:16:06.000Z
artext/__init__.py
nlpcl-lab/artext
e216fae54932d4f0dc47b251bc67416d687dbcf3
[ "MIT" ]
null
null
null
from artext import config from artext import utils from artext.artext import Artext version_info = (0, 2, 5) __version__ = '.'.join(str(c) for c in version_info)
23.285714
52
0.754601
68c348959272043b3442a15128f4448b580f83ad
52,243
py
Python
src/skmultiflow/metrics/measure_collection.py
mertozer94/scikit-multiflow
a6e719cad900805a85d17143c05a3da9dd4987e8
[ "BSD-3-Clause" ]
null
null
null
src/skmultiflow/metrics/measure_collection.py
mertozer94/scikit-multiflow
a6e719cad900805a85d17143c05a3da9dd4987e8
[ "BSD-3-Clause" ]
null
null
null
src/skmultiflow/metrics/measure_collection.py
mertozer94/scikit-multiflow
a6e719cad900805a85d17143c05a3da9dd4987e8
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from skmultiflow.utils.data_structures import FastBuffer, FastComplexBuffer, ConfusionMatrix, MOLConfusionMatrix from skmultiflow.utils import check_weights from timeit import default_timer as timer class ClassificationMeasurements(object): """ Class used to keep updated statistics about a cl...
31.720097
112
0.59763
5a6b89aee2cdfa442c021d4973c5e1b801e88a2f
308
py
Python
tests/runner.py
BinyaminSharet/Mtp
2683f521123edd1a40e73204eceaa5cb2d5e78aa
[ "MIT" ]
8
2016-07-24T12:02:17.000Z
2021-08-18T06:14:54.000Z
tests/runner.py
BinyaminSharet/Mtp
2683f521123edd1a40e73204eceaa5cb2d5e78aa
[ "MIT" ]
1
2017-04-18T23:00:40.000Z
2017-04-18T23:03:55.000Z
tests/runner.py
BinyaminSharet/Mtp
2683f521123edd1a40e73204eceaa5cb2d5e78aa
[ "MIT" ]
5
2016-06-22T11:44:39.000Z
2019-08-21T13:17:26.000Z
#!/usr/bin/env python import os import unittest from mtp_device_tests import * from mtp_api_tests import * from mtp_msg_tests import * from mtp_property_tests import * from mtp_object_tests import * if __name__ == '__main__': if not os.path.exists('logs'): os.mkdir('logs') unittest.main()
20.533333
34
0.730519
d9cb1564c24b5070bd04cb6dcae06149381f8ea3
191
py
Python
test/validate.py
mm333444/ProxyTool
aad1a2d900646b68b3dd2097c8abe7357a09ec6c
[ "BSD-2-Clause" ]
6
2017-09-19T04:32:00.000Z
2018-01-25T08:18:55.000Z
test/validate.py
mm333444/ProxyTool
aad1a2d900646b68b3dd2097c8abe7357a09ec6c
[ "BSD-2-Clause" ]
2
2021-03-22T17:12:39.000Z
2021-06-01T21:42:27.000Z
test/validate.py
aox-lei/ProxyTool
aad1a2d900646b68b3dd2097c8abe7357a09ec6c
[ "BSD-2-Clause" ]
null
null
null
# -*- coding:utf-8 -*- import os import sys sys.path.append(os.path.abspath(os.getcwd())) from app.validate.request_web import request_web request_web().run('http', '222.73.68.144', 8090)
19.1
48
0.712042
ece30b3a8b4e4963d61979af9763fe25def49cf7
109
py
Python
leetcode/__init__.py
Gongzq5/leetcode-helper
9a6f79db6fbefa921b852064a269e274e81a1e28
[ "MIT" ]
null
null
null
leetcode/__init__.py
Gongzq5/leetcode-helper
9a6f79db6fbefa921b852064a269e274e81a1e28
[ "MIT" ]
null
null
null
leetcode/__init__.py
Gongzq5/leetcode-helper
9a6f79db6fbefa921b852064a269e274e81a1e28
[ "MIT" ]
null
null
null
from . import array from . import list from . import reporter from . import tree from . import simple_drawer
18.166667
27
0.770642
ea81a6feb07b37fae5b45b9ea6f965b36333c3bc
2,046
py
Python
trio/tests/common_linear.py
psandahl/trio
34d1c20e6e9bd3cd18bca1a9f2a53518452bd0ff
[ "MIT" ]
null
null
null
trio/tests/common_linear.py
psandahl/trio
34d1c20e6e9bd3cd18bca1a9f2a53518452bd0ff
[ "MIT" ]
null
null
null
trio/tests/common_linear.py
psandahl/trio
34d1c20e6e9bd3cd18bca1a9f2a53518452bd0ff
[ "MIT" ]
null
null
null
import numpy as np import unittest from trio.common.camera import Camera from trio.common.linear import triangulate, solve_dlt from trio.common.math import euclidean, homogeneous from trio.common.matrix import matrix_look_at, matrix_decompose_ypr from .utils import equal_arrays class CommonLinearTestCase(unittest.T...
30.537313
79
0.50782
6f5550a6f8209cedb5f586302b6b70ca4643bb71
26,967
py
Python
pandas/tests/reshape/test_crosstab.py
cgangwar11/pandas
972f491cb7fdcc3c1c2cb9f05644128f13457f87
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-09-03T13:24:57.000Z
2020-09-03T13:24:57.000Z
pandas/tests/reshape/test_crosstab.py
cgangwar11/pandas
972f491cb7fdcc3c1c2cb9f05644128f13457f87
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/reshape/test_crosstab.py
cgangwar11/pandas
972f491cb7fdcc3c1c2cb9f05644128f13457f87
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-11-20T18:19:33.000Z
2020-11-20T18:19:33.000Z
import numpy as np import pytest from pandas import CategoricalIndex, DataFrame, Index, MultiIndex, Series, crosstab import pandas._testing as tm class TestCrosstab: def setup_method(self, method): df = DataFrame( { "A": [ "foo", "foo", ...
36.148794
88
0.457559
6581562855be0290e4b8bc7b5d28d9403415a1c1
1,514
py
Python
gapipy/resources/geo/place.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
4
2015-03-19T02:10:35.000Z
2018-10-22T19:51:44.000Z
gapipy/resources/geo/place.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
69
2015-03-11T20:58:04.000Z
2021-10-12T18:39:15.000Z
gapipy/resources/geo/place.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
1
2016-08-31T15:22:43.000Z
2016-08-31T15:22:43.000Z
# Python 2 and 3 from __future__ import unicode_literals from ..base import Resource from .country import Country from .feature import Feature from .state import State from .timezone import Timezone from ..dossier import PlaceDossier class Place(Resource): _resource_name = 'places' _as_is_fields = [ ...
28.566038
83
0.629458
6a4995a43ee6406642160c38d86831d3e8eff9bc
1,364
py
Python
sknano/generators/tests/test_mwnt_generator.py
haidi-ustc/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
21
2016-06-08T18:27:20.000Z
2022-03-22T08:27:46.000Z
sknano/generators/tests/test_mwnt_generator.py
haidi-ustc/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
8
2016-06-24T19:45:58.000Z
2021-03-25T21:42:29.000Z
sknano/generators/tests/test_mwnt_generator.py
scikit-nano/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
9
2016-12-08T16:35:52.000Z
2021-06-23T17:13:44.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from __future__ import unicode_literals import nose from nose.tools import * from sknano.generators import MWNTGenerator from sknano.testing import GeneratorTestFixtures class TestCase(GeneratorTestFixtures): def test1(sel...
28.416667
69
0.63563
a2c52ac1c2b89662c1ea3f0033ad911b35123a33
13,319
py
Python
ABC_doc.py
Ally-Financial/abc-doc
20e6d3867774cf8729bbc763d6c2dc7b684fabce
[ "Apache-2.0" ]
null
null
null
ABC_doc.py
Ally-Financial/abc-doc
20e6d3867774cf8729bbc763d6c2dc7b684fabce
[ "Apache-2.0" ]
null
null
null
ABC_doc.py
Ally-Financial/abc-doc
20e6d3867774cf8729bbc763d6c2dc7b684fabce
[ "Apache-2.0" ]
null
null
null
''' * Copyright 2021 Ally Financial, 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 ...
53.063745
2,471
0.736617
186abbbb52a54ec3c6aabd3c8a9e35ea862462d1
1,086
py
Python
examples/simple_example.py
ri-gilfanov/aiohttp-sqlalchemy
5324f753f76ea31424e5e5b95e4f92ca68b781f9
[ "MIT" ]
5
2021-04-14T15:08:59.000Z
2021-12-01T08:05:27.000Z
examples/simple_example.py
ri-gilfanov/aiohttp-sqlalchemy
5324f753f76ea31424e5e5b95e4f92ca68b781f9
[ "MIT" ]
5
2021-06-29T08:17:26.000Z
2021-07-12T08:17:33.000Z
examples/simple_example.py
ri-gilfanov/aiohttp-sqlalchemy
5324f753f76ea31424e5e5b95e4f92ca68b781f9
[ "MIT" ]
2
2021-06-07T23:23:08.000Z
2021-06-21T20:12:48.000Z
from datetime import datetime import sqlalchemy as sa from aiohttp import web from sqlalchemy import orm import aiohttp_sqlalchemy metadata = sa.MetaData() Base = orm.declarative_base(metadata=metadata) class MyModel(Base): __tablename__ = 'my_table' pk = sa.Column(sa.Integer, primary_key=True) timest...
22.163265
62
0.69337
053aabd5d2d7fdc51444b85991535ec5437c701f
964
py
Python
src/sentry/api/endpoints/organization_config_integrations.py
apragacz/sf-sentry
2fdd6c1195c29a1d401d1cd538c22ea68556699a
[ "BSD-3-Clause" ]
1
2021-04-04T07:26:13.000Z
2021-04-04T07:26:13.000Z
src/sentry/api/endpoints/organization_config_integrations.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
1
2018-08-22T16:49:48.000Z
2018-08-22T16:49:48.000Z
src/sentry/api/endpoints/organization_config_integrations.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
1
2018-07-02T09:46:44.000Z
2018-07-02T09:46:44.000Z
from __future__ import absolute_import from rest_framework.response import Response from sentry import integrations from sentry.api.bases.organization import OrganizationEndpoint class OrganizationConfigIntegrationsEndpoint(OrganizationEndpoint): def get(self, request, organization): providers = [] ...
31.096774
78
0.51556
467b693f0eec7842205b50b0d4285f5205329cf9
908
py
Python
service-3/app.py
PhilipL1/project-2
e59890708585f5c99dfcdd15080c2411db935cbb
[ "Unlicense" ]
null
null
null
service-3/app.py
PhilipL1/project-2
e59890708585f5c99dfcdd15080c2411db935cbb
[ "Unlicense" ]
null
null
null
service-3/app.py
PhilipL1/project-2
e59890708585f5c99dfcdd15080c2411db935cbb
[ "Unlicense" ]
null
null
null
from flask import Flask,request import random from os import getenv import random import datetime import calendar app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv("DATABASE_URI") @app.route('/get_day',methods=['GET']) def get_day(): start_date = datetime.date(2022, 6, 1) end_date = date...
28.375
77
0.714758
b64297c8889d3169b9cc4ede4d3352e12f403ed2
5,585
py
Python
rutypograph/rule.py
nanopony/rutypograph
c7b02c3d39dedffca403a486c93410320bd204ef
[ "MIT" ]
null
null
null
rutypograph/rule.py
nanopony/rutypograph
c7b02c3d39dedffca403a486c93410320bd204ef
[ "MIT" ]
null
null
null
rutypograph/rule.py
nanopony/rutypograph
c7b02c3d39dedffca403a486c93410320bd204ef
[ "MIT" ]
null
null
null
import logging import re import sys from typing import Dict, Union, Callable, Match from typing import List from typing import Tuple from .environment import TypographEnvironment logger = logging.getLogger(__name__) def compile_pcre_pattern(pattern, additional_flags=0): """ Compiles Perl Compatible Regular ...
31.027778
137
0.610743
7b330f58c85ab3d35d646dca4622c0e89854faf8
391
bzl
Python
tools/build_defs/shell_toolchain/toolchains/function_and_call.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
2
2021-03-18T04:14:56.000Z
2021-03-18T05:11:09.000Z
tools/build_defs/shell_toolchain/toolchains/function_and_call.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
null
null
null
tools/build_defs/shell_toolchain/toolchains/function_and_call.bzl
slsyy/rules_foreign_cc
34ab7f86a3ab1b2381cb4820d08a1c892f55bf54
[ "Apache-2.0" ]
1
2021-03-01T17:51:22.000Z
2021-03-01T17:51:22.000Z
# buildifier: disable=module-docstring # buildifier: disable=name-conventions FunctionAndCall = provider( doc = "Wrapper to pass function definition and (if custom) function call", fields = { "call": "How to call defined function, if different from <function-name> <arg1> ...<argn>", "text": "Fun...
39.1
99
0.675192
fc5a5e1186141eea8bc2e301d3cef9461b9ce8f9
124
py
Python
29_Comparison_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
29_Comparison_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
29_Comparison_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
#Operator Name Example # == Equal x == y x = 5 y = 3 print(x == y) # false x = 3 y = 3 print(x == y ) # true
10.333333
24
0.459677
6abdff12170dcfc180bbe59be8cb5158d9b760f7
30,223
py
Python
nuitka/MainControl.py
leojay/Nuitka
131aaca9b858279233dd60f546d0eb8e37c3828f
[ "Apache-2.0" ]
null
null
null
nuitka/MainControl.py
leojay/Nuitka
131aaca9b858279233dd60f546d0eb8e37c3828f
[ "Apache-2.0" ]
null
null
null
nuitka/MainControl.py
leojay/Nuitka
131aaca9b858279233dd60f546d0eb8e37c3828f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
32.497849
87
0.625881
75fd85527ec7798b7a07ac20d1a5b91cbfab1b46
14,090
py
Python
NLI_task/roberta_large_nli_LF.py
jizhi-zhang/Counterfactual_Reasoning_Model
3c4eb3e022e66e8626facc6fc772141a0079b807
[ "MIT" ]
7
2021-07-21T07:11:56.000Z
2022-01-10T13:01:14.000Z
NLI_task/roberta_large_nli_LF.py
jizhi-zhang/Counterfactual_Reasoning_Model
3c4eb3e022e66e8626facc6fc772141a0079b807
[ "MIT" ]
1
2021-07-28T08:58:49.000Z
2021-08-02T08:04:03.000Z
NLI_task/roberta_large_nli_LF.py
jizhi-zhang/Counterfactual_Reasoning_Model
3c4eb3e022e66e8626facc6fc772141a0079b807
[ "MIT" ]
1
2021-07-30T13:52:52.000Z
2021-07-30T13:52:52.000Z
from transformers import AutoTokenizer # from transformers import AutoTokenizer, AutoModelForSequenceClassification import torch #from pytorch_pretrained_bert import BertTokenizer, BertModel from transformers import BertModel,BertTokenizer, BertForSequenceClassification, AdamW, get_linear_schedule_with_warmup import ar...
45.305466
200
0.650887
5e65d9ee6f7ad6cab9622de3cff18b6627565a78
2,240
py
Python
conans/test/functional/old/user_info_test.py
noverby/conan
5e560ce806be28416e80544e767b1bca3f48d11e
[ "MIT" ]
1
2019-01-09T14:14:58.000Z
2019-01-09T14:14:58.000Z
conans/test/functional/old/user_info_test.py
noverby/conan
5e560ce806be28416e80544e767b1bca3f48d11e
[ "MIT" ]
null
null
null
conans/test/functional/old/user_info_test.py
noverby/conan
5e560ce806be28416e80544e767b1bca3f48d11e
[ "MIT" ]
null
null
null
import os import unittest from conans.paths import CONANFILE from conans.test.utils.tools import TestClient from conans.util.files import load class UserInfoTest(unittest.TestCase): def test_user_info_propagation(self): client = TestClient() def export_lib(name, requires, infolines): ...
32
94
0.61875
b4cf8733fafbdf11e19d7a3997e47b55865facc5
6,080
py
Python
pygame_gui/core/ui_container.py
halfninja/pygame_gui
71b1150cb0c789339a9f8d781da15bdfad604f6c
[ "MIT" ]
null
null
null
pygame_gui/core/ui_container.py
halfninja/pygame_gui
71b1150cb0c789339a9f8d781da15bdfad604f6c
[ "MIT" ]
null
null
null
pygame_gui/core/ui_container.py
halfninja/pygame_gui
71b1150cb0c789339a9f8d781da15bdfad604f6c
[ "MIT" ]
null
null
null
import pygame from pygame_gui.core.ui_element import UIElement class UIContainer(UIElement): """ A UI Container holds any number of other UI elements inside of a rectangle. When we move the UIContainer all the UI elements contained within it can be moved as well. This class helps us make UI Windows,...
41.360544
119
0.647204
2e3b0c91ea33c0cfebfc04c6f62c3f693a887a63
399
py
Python
tests/python/pants_test/projects/test_python_testprojects_integration.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/projects/test_python_testprojects_integration.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-01-21T16:34:02.000Z
2020-01-21T16:34:02.000Z
tests/python/pants_test/projects/test_python_testprojects_integration.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants_test.projects.projects_test_base import ProjectsTestBase class TestPythonTestprojectsIntegration(ProjectsTestBase): def test_python_testprojects(self) -> None: self.ass...
36.272727
90
0.807018
f006cbf907ac4349fa410e629f50e2b482ba6b80
1,911
py
Python
app/game/game_repository.py
hmajid2301/banter-bus-management-api
d51a40c2d5254d4197cbe5bb84aa576df2c24893
[ "Apache-2.0" ]
null
null
null
app/game/game_repository.py
hmajid2301/banter-bus-management-api
d51a40c2d5254d4197cbe5bb84aa576df2c24893
[ "Apache-2.0" ]
null
null
null
app/game/game_repository.py
hmajid2301/banter-bus-management-api
d51a40c2d5254d4197cbe5bb84aa576df2c24893
[ "Apache-2.0" ]
null
null
null
import abc from typing import List from omnibus.database.repository import AbstractRepository from pymongo.errors import DuplicateKeyError from app.game.game_exceptions import GameExistsException, GameNotFound from app.game.game_models import Game class AbstractGameRepository(AbstractRepository[Game]): @abc.abs...
32.948276
91
0.685505
6f278f2ea0df76471a5f4d7877ff42e07a5cdf52
7,109
py
Python
src/python/photosphere_parallax_pyopenvr.py
cmbruns/vr_samples
8dee056766bccca1a602c6dd58fd0a641c5033a5
[ "MIT" ]
1
2017-01-29T21:15:23.000Z
2017-01-29T21:15:23.000Z
src/python/photosphere_parallax_pyopenvr.py
cmbruns/vr_samples
8dee056766bccca1a602c6dd58fd0a641c5033a5
[ "MIT" ]
2
2017-01-29T20:34:39.000Z
2017-01-29T23:26:05.000Z
src/python/photosphere_parallax_pyopenvr.py
cmbruns/vr_samples
8dee056766bccca1a602c6dd58fd0a641c5033a5
[ "MIT" ]
null
null
null
#!/bin/env python # Example program for viewing a 360 photosphere in a virtual reality headset # using parallax shifting to place the ground plane on the floor import os from textwrap import dedent import numpy from OpenGL import GL from OpenGL.GL.shaders import compileShader, compileProgram try: fro...
41.573099
133
0.522999
c744054939c4515bec3835bc476c25562dfd15c4
261
py
Python
retangulos de #.py
knapoli/programas-python
51c3f8f84c3237866a20f37859ef0bcfe9850d15
[ "MIT" ]
null
null
null
retangulos de #.py
knapoli/programas-python
51c3f8f84c3237866a20f37859ef0bcfe9850d15
[ "MIT" ]
null
null
null
retangulos de #.py
knapoli/programas-python
51c3f8f84c3237866a20f37859ef0bcfe9850d15
[ "MIT" ]
null
null
null
largura = int(input('Digite a largura: ')) altura = int(input('Digite a altura: ')) guardar = largura while altura > 0: largura = guardar while largura >0: print('#', end = '') largura = largura - 1 altura = altura - 1 print ()
21.75
42
0.574713
1a285827407684171f5dedb4508ae47f04a484b9
20,091
py
Python
salt/modules/systemd.py
petersanchez/salt
0e8f1a15b4bb7299220001f3cab6d2c002d4689c
[ "Apache-2.0" ]
null
null
null
salt/modules/systemd.py
petersanchez/salt
0e8f1a15b4bb7299220001f3cab6d2c002d4689c
[ "Apache-2.0" ]
null
null
null
salt/modules/systemd.py
petersanchez/salt
0e8f1a15b4bb7299220001f3cab6d2c002d4689c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Provide the service module for systemd ''' # Import python libs from __future__ import absolute_import import glob import logging import os import re import shlex # Import 3rd-party libs import salt.ext.six as six import salt.utils.itertools import salt.utils.systemd from salt.exceptions im...
27.484268
81
0.589617