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
24370e178e1e77ae17248fecedd5b2d34374ad67
2,535
py
Python
tests/unit/server/relationship_query_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/unit/server/relationship_query_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/unit/server/relationship_query_tests.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 ...
36.214286
89
0.669034
032abe94c24bdff61240fde169a4ad6a778a4b8c
192
py
Python
Python/M01_ProgrammingBasics/L06_NestedLoops/Lab/Solutions/P03_Combinations.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Lab/Solutions/P03_Combinations.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Lab/Solutions/P03_Combinations.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
n = int(input()) result = 0 for x in range(0, n + 1): for y in range(0, n + 1): for z in range(0, n + 1): if x + y + z == n: result += 1 print(result)
19.2
33
0.427083
aeb52bbe551d1cbf9006f07a039d675cc0bc17b4
3,021
py
Python
src/onegov/core/orm/debug.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/orm/debug.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/orm/debug.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import click from contextlib import contextmanager from datetime import datetime from sqlalchemy import event from sqlalchemy.engine import Engine from sqlparse import format class Timer(object): """ A timer that works just like a stopwatch. """ def start(self): self.started = datetime.utcnow() ...
29.910891
79
0.642502
8899d7ae7c750398f7df9704e99518a13a7de914
2,812
py
Python
research/cv/efficientnet-b0/src/models/layers.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/efficientnet-b0/src/models/layers.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/efficientnet-b0/src/models/layers.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...
29.6
106
0.599218
ee7ab768558d565218412c181134046ba7e8f7c2
12,301
py
Python
main.py
Val-E/Zeugniss_Generator
0186a145482a6bb6a621f8db5a91df3137f32b3b
[ "MIT" ]
null
null
null
main.py
Val-E/Zeugniss_Generator
0186a145482a6bb6a621f8db5a91df3137f32b3b
[ "MIT" ]
null
null
null
main.py
Val-E/Zeugniss_Generator
0186a145482a6bb6a621f8db5a91df3137f32b3b
[ "MIT" ]
null
null
null
#!/usr/bin/python3.9 # Copyright (c) 2021, Valentin Svet # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
38.320872
121
0.598732
c9ff63ed4f04bc67c672fe6d3a6c8d7743c0e734
4,419
py
Python
7_DeepLearning-GANs/03_CGAN/Cgan.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
7_DeepLearning-GANs/03_CGAN/Cgan.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
7_DeepLearning-GANs/03_CGAN/Cgan.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
''' Conditional GAN - erstellen einer bestimmten Klasse ''' import tensorflow as tf from tensorflow.keras.layers import * from tensorflow.keras.models import * from tensorflow.keras.optimizers import * # fix CuDnn problem gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: tf.c...
39.810811
141
0.608961
094ba91838304488003a8527d96fc2e4882b58b4
1,046
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/infinibox.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/plugins/doc_fragments/infinibox.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/plugins/doc_fragments/infinibox.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2016, Gregory Shulov <gregory.shulov@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard Infinibox documentation fragment DOCUMENTATION = r''' options: system: descr...
29.885714
111
0.716061
11124190c8c5e2a7f7916d3d07af0ce424d70d78
26
py
Python
Chapter5_DNN/Chapter5_5_NeuralNetworkGUI/start/drawer/__init__.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter5_DNN/Chapter5_5_NeuralNetworkGUI/start/drawer/__init__.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter5_DNN/Chapter5_5_NeuralNetworkGUI/start/drawer/__init__.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
from .src import main_gui
13
25
0.807692
3af778f77f01e14560581c9cefd98ca93a9222c3
927
py
Python
backend/alembic/versions/8e8247e7893c_aded_order_to_task_hints.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/alembic/versions/8e8247e7893c_aded_order_to_task_hints.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/alembic/versions/8e8247e7893c_aded_order_to_task_hints.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
"""Aded order to task hints Revision ID: 8e8247e7893c Revises: e321bbcdb4ec Create Date: 2021-09-22 16:54:37.151818 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "8e8247e7893c" down_revision = "e321bbcdb4ec" branch_labels = None depends_on = None def upgrade...
25.054054
81
0.653722
a337715a90ac88a4756289e026a34b9bdf49bb6d
828
py
Python
top/clearlight/reptile/bilibili/bj_tech_mooc/example_05_image.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/reptile/bilibili/bj_tech_mooc/example_05_image.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/reptile/bilibili/bj_tech_mooc/example_05_image.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import requests import os ''' 获取网页中的图片, 并将该二进制文件保存到本地 ''' '''path = "F:/abc.png" url = "http://www.clearlight.top/images/bottom.png" r = requests.get(url) print(r.status_code) with open(path, 'wb') as f: f.write(r.content) # print(r.content) r.close()''' # 图片爬取全代码 # url = 'http://www.clearlight.top/images/bottom....
23.657143
91
0.600242
6ecdd2450ff50513bec31b2ae45aaf3f240948a6
5,923
py
Python
fabfile.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
fabfile.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- from fabric.api import run,put,cd,env,local import shutil,os import py_compile import zipfile from library.core.utils import unzip,compress_dir from library.core.dist_zip import zip_local __author__ = 'Joseph' UpxEXE = os.path.join(os.getcwd(),"usr/bin/upx.exe") SevenZipEX...
26.800905
131
0.627385
953a26d3b28a73647a43228550b3580c5cca12bb
10,281
py
Python
Crawler/crawl_rki_incidences.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Crawler/crawl_rki_incidences.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Crawler/crawl_rki_incidences.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
#!/usr/bin/env python # coding: utf-8 # author: Wolfgang Jentner import math import os import sys import datetime import logging import traceback from datetime import datetime, timezone, timedelta import holidays import pandas as pd import psycopg2.extensions import psycopg2.extras import requests # noinspection PyUn...
30.14956
123
0.564537
2510c47a2e3c04b30993e2c385797d9f6c1d29ef
3,062
py
Python
dgsw-yatzee.py
diggergiroux/dgsw-yatzee
bd1690fbc18706b8586ccd70adf0c812b4c3f5bc
[ "MIT" ]
null
null
null
dgsw-yatzee.py
diggergiroux/dgsw-yatzee
bd1690fbc18706b8586ccd70adf0c812b4c3f5bc
[ "MIT" ]
null
null
null
dgsw-yatzee.py
diggergiroux/dgsw-yatzee
bd1690fbc18706b8586ccd70adf0c812b4c3f5bc
[ "MIT" ]
null
null
null
import random print("Yatzee") points_taken = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] list_of_points = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] list_of_dice = [0, 0, 0, 0, 0] keepDice = "00000" def simple_number(theNumber): """ method for the first 6 bins """ numFound = list_of_dice.count(theNumber) ...
28.351852
65
0.54017
dd0ec996aaf993a27a6778b93d850c2832ae93a4
5,045
py
Python
crinacle/names.py
hyshuma/AutoEq
4c3ad3478d6b74fc794bd7d973b330d38da338b9
[ "MIT" ]
1
2020-01-16T14:03:51.000Z
2020-01-16T14:03:51.000Z
crinacle/names.py
hyshuma/AutoEq
4c3ad3478d6b74fc794bd7d973b330d38da338b9
[ "MIT" ]
null
null
null
crinacle/names.py
hyshuma/AutoEq
4c3ad3478d6b74fc794bd7d973b330d38da338b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from glob import glob import re import pandas as pd import json sys.path.insert(1, os.path.realpath(os.path.join(sys.path[0], os.pardir))) DIR_PATH = os.path.abspath(os.path.join(__file__, os.pardir)) ROOT_DIR = os.path.abspath(os.path.join(DIR_PATH, os.pardir)) def get_b...
36.294964
97
0.587116
c6c255b47a32ed1dfce6398c5edf02206b70e389
2,486
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/74a1/day1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/74a1/day1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/74a1/day1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Problem 1: Contains Duplicate from collections import OrderedDict class Solution(object): def containsDuplicate(self, nums): """ :type nums: List[int] :rtype: bool """ # Given an array of integers, find if the array contains any duplicates. unique_list =...
30.691358
101
0.578842
c6e6b13899e482e6b8b0447f59dd9ecafd2a2cb4
1,060
py
Python
python/atexit/offical_doc.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/atexit/offical_doc.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/atexit/offical_doc.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
""" The following simple example demonstarates how a module can initialize a counter from a file when it is imported and save the counter's updated value automatically when the program terminates without relying on the application making an explicit call into this module at termination """ try: with open("counterfi...
25.238095
98
0.718868
af65906ec139faeeb0de4a1a40694224ef091dbd
10,057
py
Python
examples/seq2seq/att_all_need/Models.py
yym6472/transformers
abd01205561e5caec167c1fbb20bccea24d7ba46
[ "Apache-2.0" ]
1
2021-12-30T05:41:37.000Z
2021-12-30T05:41:37.000Z
examples/seq2seq/att_all_need/Models.py
yym6472/transformers
abd01205561e5caec167c1fbb20bccea24d7ba46
[ "Apache-2.0" ]
null
null
null
examples/seq2seq/att_all_need/Models.py
yym6472/transformers
abd01205561e5caec167c1fbb20bccea24d7ba46
[ "Apache-2.0" ]
null
null
null
''' Define the Transformer model ''' import torch import torch.nn as nn import numpy as np from att_all_need.Layers import EncoderLayer, DecoderLayer __author__ = "Yu-Hsiang Huang" def get_pad_mask(seq, pad_idx): return (seq != pad_idx).unsqueeze(-2) def get_subsequent_mask(seq): ''' For masking out the s...
40.228
141
0.649299
bbbc579eef61fe6b40e0ba073f978fc8bc4cb075
834
py
Python
Packs/SafeNet_Trusted_Access/Scripts/STAFetchListContent/STAFetchListContent_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SafeNet_Trusted_Access/Scripts/STAFetchListContent/STAFetchListContent_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SafeNet_Trusted_Access/Scripts/STAFetchListContent/STAFetchListContent_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from STAFetchListContent import get_unusual_activity_group_sta # Defining output of the getList command for mocker. xsoar_list_contents = [ {'Contents': 'TestUnusualActivityGroup'} ] # Tests get_unusual_activity_group_sta function. def test_get_unusual_activity_group_sta(mocker): ...
33.36
101
0.782974
3c42315a6ecaded1d7db976a002310746703bd2e
165
py
Python
src/onegov/chat/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/chat/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/chat/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.chat.models import Message, MessageFile from onegov.chat.collections import MessageCollection __all__ = ('Message', 'MessageCollection', 'MessageFile')
33
57
0.812121
b1f95f237c6b77d2d814bfefa7ace3a320fd30b4
2,020
py
Python
7-assets/past-student-repos/Whiteboard-Pairing-master/BSTFromArray/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Whiteboard-Pairing-master/BSTFromArray/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Whiteboard-Pairing-master/BSTFromArray/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import math def create_minimal_BST(sorted_array): return create_minimal_BST_helper(sorted_array, 0, len(sorted_array) - 1) def create_minimal_BST_helper(sorted_array, left, right): if right < left: return None mid = math.floor((left + right) / 2) node = BinaryTreeNode(sorted_array[mid]) ...
31.076923
117
0.679208
ab8d5f7d8a7ac9f33e30976b241deb0666b1040c
2,392
py
Python
adzuki/model.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
adzuki/model.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
5
2019-03-19T22:21:28.000Z
2020-09-16T03:08:56.000Z
adzuki/model.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
from abc import abstractmethod from datetime import datetime from . import EntityWrapper from google.cloud import datastore from random import random import jsonschema class Model(object): def __init__(self): self._client = datastore.Client(project=self.project, namespace=self.namespace) adzuki_type_checker ...
33.222222
123
0.7199
05854bd791c5130e4c7fad4ef9ef31aed1712ae5
1,282
py
Python
CodeChef_problems/LINCHESS/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
CodeChef_problems/LINCHESS/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
CodeChef_problems/LINCHESS/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' -----------------LOGIC----------------------- In order to get minimum steps, we need to check among all possible steps that can capture chefs. As it is given that pawns move forward, our search space reduces to those people whose pawns are initially to the left of the pawn of the chef. For every person, the amount...
32.871795
143
0.572543
5525161b6688ee04c7e6177bcc90eb5e831e8816
212
py
Python
flask/tutorial-1-1-hello-world/app.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
flask/tutorial-1-1-hello-world/app.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
flask/tutorial-1-1-hello-world/app.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
# https://flask.palletsprojects.com/en/1.1.x/quickstart/#a-minimal-application from flask import Flask app = Flask(__name__) @app.route("/", methods=['GET']) def hello(): return {"message": "Hello World."}
23.555556
78
0.693396
34d6e888817330d425231637561ad0ca2334e63a
606
py
Python
src/lines/parallel_coord.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/lines/parallel_coord.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/lines/parallel_coord.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
#parallel coordinates from pandas.plotting import parallel_coordinates # Import Data df_final = pd.read_csv("https://raw.githubusercontent.com/selva86/datasets/master/diamonds_filter.csv") # Plot plt.figure(figsize=(12,9), dpi= 80) parallel_coordinates(df_final, 'cut', colormap='Accent') # Lighten borders plt.gca()...
26.347826
103
0.754125
34d79e4ae3c529b188a73b7c1dd10094c74617fb
428
py
Python
day04/whosPaying.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day04/whosPaying.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day04/whosPaying.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
# Split string method names_string = input("Give me everybody's names, separated by a comma. ") names = names_string.split(", ") # 🚨 Don't change the code above 👆 #Write your code below this line 👇 import random selectedIndex = random.randint(0, len(names) - 1) choice = names[selectedIndex] print(f"{choice} is go...
26.75
73
0.721963
9b624fe1f4cde7ae9db5e3ca3ad33e1f94143ad9
19,435
py
Python
src/visuanalytics/analytics/processing/image/matplotlib/diagram.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2020-11-27T17:26:27.000Z
2020-11-27T17:26:27.000Z
src/visuanalytics/analytics/processing/image/matplotlib/diagram.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
85
2021-01-02T11:38:59.000Z
2021-07-26T07:13:47.000Z
src/visuanalytics/analytics/processing/image/matplotlib/diagram.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2021-04-19T06:50:53.000Z
2021-04-19T06:50:53.000Z
import matplotlib import matplotlib.pyplot as plt import numpy as np import json import operator from functools import reduce from visuanalytics.analytics.control.procedures.step_data import StepData from visuanalytics.util import resources from visuanalytics.analytics.util.step_errors import PiePlotError from datetim...
39.421907
179
0.624492
9b748e48780c4ac4485052787bf575c68aa79414
1,191
py
Python
yhh_hw_add_type.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
yhh_hw_add_type.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
yhh_hw_add_type.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
""" 添加好物类别 """ import CralwerSet.connect_mysql as connect_mysql import traceback conn_T = connect_mysql.test() cur_T = conn_T.cursor() conn_W = connect_mysql.w_shark_erp() cur_W = conn_W.cursor() sql = "select ID, TITLE from yhh_hw where ID>14000;" cur_T.execute(sql) try: for item in cur_T.fetchall(): sql...
37.21875
460
0.670865
b5f9cecc22b48f2f8918f7470ca2a019953fcd0d
1,590
py
Python
setup.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
setup.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
setup.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
# # RawIO # Copyright (c) 2021 Yusuf Olokoba. # from setuptools import find_packages, setup # Get readme with open("README.md", "r") as readme: long_description = readme.read() # Get version with open("rawio/version.py") as version_source: gvars = {} exec(version_source.read(), gvars) version = ...
25.645161
63
0.592453
bd2998894cd54fbb0e40df834762481f149b5911
5,009
py
Python
src/blockchain/block.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
2
2021-11-08T12:00:02.000Z
2021-11-12T18:37:52.000Z
src/blockchain/block.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
null
null
null
src/blockchain/block.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
1
2022-03-28T13:49:37.000Z
2022-03-28T13:49:37.000Z
from datetime import datetime import hashlib import json from abc import ABC, abstractmethod import os from src.blockchain.merkle_tree import MerkleTree from src.db.mapper import Mapper class Serializable(ABC): def serialize(self): return json.dumps(self.to_dict(), so...
33.172185
96
0.572569
239e1c3c35f82d69d3b8edf04fd4d7706f4479bb
1,321
py
Python
Project Euler Questions 21 - 30/Project Euler Question 21.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Questions 21 - 30/Project Euler Question 21.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Questions 21 - 30/Project Euler Question 21.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 21 #Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). #If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. #For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 1...
34.763158
122
0.598032
23ad854e46c224a4abb894e0d8751964ad906d08
202
py
Python
djangoForm/treasury/urls.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/treasury/urls.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/treasury/urls.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
# treasury urls.py from django.contrib import admin from django.urls import path from .views import * urlpatterns = [ # path('', Home, name='home-page'), # path('add', Add, name='add-page'), ]
20.2
40
0.658416
9e39cc8974f5ad5cac93d25c9ab469d4394d8d23
100
py
Python
Pythonjunior2020/Woche1/Aufgabe_1_4_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_4_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_4_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 1.4.2 Woche 1, Block 4, Aufgabe 2 # Dekleration name = "Simon Meier" # Ausgabe print(len(name))
12.5
35
0.67
7b76729d04e151fa0a35fab0564660806df7e850
2,657
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/net/network_statistics.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/net/network_statistics.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/net/network_statistics.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-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 avail...
35.426667
77
0.659767
7b8669d268b82edb2ba026a7060998a16356bd12
1,398
py
Python
repo/service.vpn.manager/logpopup.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/logpopup.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/logpopup.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Zomboided # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
32.511628
74
0.667382
c8aa9ae4528ee8764a88701a81fb9919061ccff8
155
py
Python
5_loops/solution.py
sourabhedake/hackerrank-30-days-of-code
c2d4ff6e8d9b4b1a2bb72a3b0a675b9ae09a8a5d
[ "MIT" ]
null
null
null
5_loops/solution.py
sourabhedake/hackerrank-30-days-of-code
c2d4ff6e8d9b4b1a2bb72a3b0a675b9ae09a8a5d
[ "MIT" ]
null
null
null
5_loops/solution.py
sourabhedake/hackerrank-30-days-of-code
c2d4ff6e8d9b4b1a2bb72a3b0a675b9ae09a8a5d
[ "MIT" ]
null
null
null
#!/bin/python3 if __name__ == '__main__': n = int(input()) for i in range(10): print (str(n) + " x " + str(i+1) + " = " + str((i+1) * n))
22.142857
66
0.458065
b545cef5fa42a2c2b6a317ed70f499c264937b38
4,846
py
Python
retootbot.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
retootbot.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
retootbot.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import pytoml as toml import mastodon import os import pickle import re import time import trigger import logging import sendmail import report logger = logging.getLogger(__name__) class RetootBot(object): def __init__(self, config): self.config = config self.client_id = s...
30.670886
111
0.529509
a947dc0476fd4589c11355ea769bc2d499a2a77f
426
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/100_agregacao/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/100_agregacao/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/100_agregacao/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from classes import CarrinhoDeCompra, Produto carrinho = CarrinhoDeCompra() p1 = Produto('Camiseta', 50) p2 = Produto('IPhone', 6000) p3 = Produto('Caneca', 15) carrinho.inserir_produto(p1) carrinho.inserir_produto(p2) carrinho.inserir_produto(p2) carrinho.inserir_produto(p2) carrinho.inserir_produto(p3) carrinho.in...
18.521739
45
0.793427
8d937d899d0a6f346816269c1b1794304c84f89b
2,053
py
Python
webinterface/tests/unit_tests/test_model_TaskTemplate.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/tests/unit_tests/test_model_TaskTemplate.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/tests/unit_tests/test_model_TaskTemplate.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from django.test import TestCase from webinterface.models import * from unittest.mock import * class TaskTemplateTest(TestCase): def setUp(self): self.start_week = 2500 self.schedule = Schedule.objects.create(name="schedule", weekday=3) self.cw1 = CleaningWeek.objects.create(schedule=self...
48.880952
112
0.739893
fd75fda7306ea049d9280136df7e7eb5b0c2759d
125
py
Python
Scripts/ans.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
8
2020-10-26T06:51:06.000Z
2021-04-02T13:01:27.000Z
Scripts/ans.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
71
2020-10-25T22:46:02.000Z
2021-10-14T06:47:39.000Z
Scripts/ans.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
77
2020-10-24T01:53:46.000Z
2021-10-01T06:25:27.000Z
number = input("Pick a number: ") if(float(number)>=5): print("that's a big number") else: print("that's not a big number")
25
33
0.664
9a10224e6801ce01df7e60d90bd55a18a8385fa4
329
py
Python
Classes/Bomb.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Bomb.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Bomb.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
import pygame class Bomb(object): desc = "bomb" whose_bomb = "" def __init__(self, x, y, whose_bomb): self.x = x self.y = y self.rect = pygame.Rect(self.x, self.y, 50, 50) self.whose_bomb = whose_bomb # print(self.start_timer) def get_bomb(self): ret...
17.315789
55
0.56231
3257ec3050244e4cd8575acb9886651f2f80f014
1,611
py
Python
exercises/es/test_04_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_04_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_04_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "for doc in nlp.pipe(TEXTS)" in __solution__ ), "¿Estás llamando a nlp.pipe sobre los textos?" assert "TRAINING_DATA.append" in __solution__, "¿Estás añadiendo al TRAINING_DATA?" assert ( len(TRAINING_DATA) == 5 ), "Parece que los datos de entrenamiento no son co...
42.394737
132
0.61018
0875bac06b993ac92ba4e6dbfde38dedaa094352
298
py
Python
src/hextiles/hextiles.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/hextiles/hextiles.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/hextiles/hextiles.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# hextiles # holoviews import numpy as np import holoviews as hv from holoviews import opts from holoviews import dim hv.extension('bokeh') np.random.seed(44) hex_tiles = hv.HexTiles(np.random.randn(100000, 2)) hex_tiles.opts(opts.HexTiles(width=500, height=400, tools=['hover'], colorbar=True))
22.923077
84
0.768456
f5d263ff35040b6c68d7bbfa590ebceeb3ff3452
2,074
py
Python
modeling/head/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
modeling/head/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
modeling/head/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/11/10 上午10:42 """ from modeling.head import fcn,deeplabv3,danet,deeplab_danet,dran,deeplabdran,\ unet,res_unet,dlinknet,multiscaleattention,nonlocalunet from modeling.head import auxiliary_f...
44.12766
103
0.719865
de659e2516322298fa7842d4a787b1c585bd3c29
2,492
py
Python
menu/update_menu.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
menu/update_menu.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
menu/update_menu.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
# -*- coding: utf-8 -*- import json import os from functools import reduce from config import appid, appsecret import requests def print_btn(btn): result = '' if 'name' in btn: result += btn['name'].encode('utf-8') if 'key' in btn: result += '(' + btn['key'].encode('utf-8') + ')' if 'u...
32.363636
102
0.538122
f8b0a0f3131dde31b47b9c13ae44bc786d47a4d6
256
py
Python
tests/cli/test_helpers.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
2
2021-03-18T04:34:23.000Z
2021-03-23T17:35:07.000Z
tests/cli/test_helpers.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
tests/cli/test_helpers.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
import click import pytest import babelbox from babelbox import cli class Test_version_callback: def test(self): with pytest.raises(click.exceptions.Exit): assert cli.version_callback(True) == f"Babelbox: {babelbox.__version__}"
21.333333
84
0.730469
3e049fe07e910ae2b9882f1ea500840d4fac5315
841
py
Python
nz_django/day2/db_demo1/article/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day2/db_demo1/article/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day2/db_demo1/article/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
# Generated by Django 2.0 on 2020-02-19 09:36 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ...
28.033333
91
0.549346
3e6a3a8fb4f5eaad7eca806b44d23091d92172f4
2,879
py
Python
project/questionaire.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
5
2020-03-21T12:58:10.000Z
2020-03-23T13:02:18.000Z
project/questionaire.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
26
2020-03-20T21:04:20.000Z
2020-04-30T19:38:02.000Z
project/questionaire.py
Hackathon2020/CoronaHackathon2020
1f27ad7406c9da50a3acfb48f970a0b0b51c47da
[ "MIT" ]
1
2020-05-08T20:45:20.000Z
2020-05-08T20:45:20.000Z
class Questionaire: """ holds all relevant data of a questionnaire """ global_questionaire_id = "" language_map = {} questions = [] """ initialization :paran str global_id -- the globally unique identifier of this questionnaire. This is needed to connect questionnaires with anwsers. :...
37.38961
144
0.672456
3974b567fc421c50fbacfd9fd5997a63c4127937
48,599
py
Python
Naza.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Naza.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Naza.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python3 #-*-coding:utf-8-*- # Angga import requests,mechanize,bs4,sys,os,subprocess,uuid,random,time,re,base64,concurrent.futures,json,ipaddress from random import randint from concurrent.futures import ThreadPoolExecutor as ThreadPool from datetime import date from datetime import datetime current = dateti...
36.403745
655
0.528221
ffe7d4a146f191de691142e4bf63ab1012fd48c0
496
py
Python
year_3/comppi_0/publication/scheduling.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_0/publication/scheduling.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_0/publication/scheduling.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from publication.models import ScheduledEvent import tgbot.botsetup import datetime _scheduledEventsStorage = [] def checkForEventsToExecute(): time_now = datetime.datetime.now() for e in _scheduledEventsStorage: if e.timeexecute < time_now: f = e.callback arg = e.arguments ...
26.105263
72
0.715726
f27a0f41489c6d1089fdb0eaca4082aa8dd3c103
7,470
py
Python
src/utils/io/JLoader.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/utils/io/JLoader.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/utils/io/JLoader.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
from datetime import datetime from pathlib import Path from typing import Optional from dateutil.relativedelta import relativedelta from entity.MeteorologyDTO import MeteorologyDTO from type import PathLike __all__ = ["read_j"] # @title trans_str_to_int # @description 将文件中的非数字转换成数字 # @author ice 2020...
30.867769
98
0.507363
29c84cfa4a5b654524dcac5d643f39dee576689c
141
py
Python
fun/fun/doctype/timepass/test_timepass.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
fun/fun/doctype/timepass/test_timepass.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
fun/fun/doctype/timepass/test_timepass.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
# Copyright (c) 2022, Vfun and Contributors # See license.txt # import frappe import unittest class TestTimepass(unittest.TestCase): pass
15.666667
43
0.77305
6a88c69de38346a93c6662f3991eb51efbd839db
31,751
py
Python
src/Sephrasto/Datenbank.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
src/Sephrasto/Datenbank.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
src/Sephrasto/Datenbank.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
import Fertigkeiten import lxml.etree as etree from Hilfsmethoden import Hilfsmethoden, VoraussetzungException, WaffeneigenschaftException import os.path import Objekte from PyQt5 import QtWidgets from Wolke import Wolke import logging from DatenbankEinstellung import DatenbankEinstellung from EventBus import EventBus ...
43.375683
175
0.564266
7cecb0fcf9c22ce4f6a657782f6c06fc6b100928
3,115
py
Python
src/bo4e/bo/preisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/preisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/preisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Preisblatt class and corresponding marshmallow schema for de-/serialization """ from typing import List, Optional import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, GeschaeftsobjektSchema from bo4...
40.454545
174
0.770787
6b4926d3e37668b5ba1897fbbef38c4d1be68601
7,704
py
Python
evo_algorithm/ea_aspect_colors/ea_aspect_colors.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
evo_algorithm/ea_aspect_colors/ea_aspect_colors.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
evo_algorithm/ea_aspect_colors/ea_aspect_colors.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import matplotlib.pyplot as plt import requests import os import skimage import random import json import webbrowser import pandas as pd import numpy as np import time from PIL import Image, ImageDraw from ast import literal_eval as make_tuple global population global api_calls global stop global MUTATION_RATE populat...
33.350649
125
0.581256
86335416ef75555b9d36e1037a0fce4c535a1c5c
709
py
Python
showcase1/com/aaron/loggingexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase1/com/aaron/loggingexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase1/com/aaron/loggingexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """日志""" __author__="Aaron.qiu" import logging def logging_showcase(): """默认情况下,logging 的日志级别为 WARNING,只有不低于 WARNING 级别的日志才会显示在命令行。""" logging.critical('This is critical message') logging.error('This is error message') logging.warning('This is warning message') # 不会显示 l...
25.321429
73
0.689704
869d8e0cb4f32b93d4ae015e933ccd76b9c18e4b
87
py
Python
python_lessons/Textastic_Files/20201213-sample.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/20201213-sample.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/20201213-sample.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
print("Hallo, bitte gebe deinen Namen ein.") myName = input() print("Hallo " + myName)
21.75
44
0.689655
d4ceb154929c165a33118d27120135dd58894b35
51,764
py
Python
examples/text_classification/ernie_doc/data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_classification/ernie_doc/data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_classification/ernie_doc/data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle 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 appli...
41.544141
100
0.541998
ed837b17fd7baf811b5d608a2780cdd7b6a37eee
5,565
py
Python
DatenbankSelectType.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
DatenbankSelectType.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
DatenbankSelectType.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'DatenbankSelectType.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_Dialog(object): def setupUi(self, Dialog): Dia...
51.055046
115
0.722372
130399d71592a3c58f631d0c29630c82a464a608
571
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/dump_to_fasta.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/dump_to_fasta.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/dump_to_fasta.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/env python # Copyright (c) 2008-2010, Michigan State University from screed import ToFasta import sys, os # Shell interface to the ToFasta screed conversion function if __name__ == '__main__': if len(sys.argv) != 3: print "Usage: %s <dbfilename> <outputfilename>" % sys.argv[0] exit(1) ...
23.791667
69
0.640981
13ccda2f00be118c4a5432f2a1d0008c5939f4d0
2,516
py
Python
CoinJoin_Research/CoinJoin_Fee_Calculator/CoinJoinFees.py
Keeney-Evolution/CoinJoin-Research
e1cf6ec8c56d3d83ca5dc39856338edf09afd126
[ "MIT" ]
51
2019-08-08T03:06:03.000Z
2022-03-27T20:01:31.000Z
CoinJoin_Research/CoinJoin_Fee_Calculator/CoinJoinFees.py
Keeney-Evolution/CoinJoin-Research
e1cf6ec8c56d3d83ca5dc39856338edf09afd126
[ "MIT" ]
20
2019-08-06T23:42:31.000Z
2022-03-27T20:02:44.000Z
CoinJoin_Research/CoinJoin_Fee_Calculator/CoinJoinFees.py
Keeney-Evolution/CoinJoin-Research
e1cf6ec8c56d3d83ca5dc39856338edf09afd126
[ "MIT" ]
16
2019-08-15T23:49:45.000Z
2021-04-02T19:53:01.000Z
# Script to compare fees when using Wasabi & Whirlpool by 6102bitcoin from pylab import * import numpy as np import math mix_amount_range = np.arange(0.001, 1.001, 0.001) # Desired Anonset anonset = 500.0 # Fixed Parameter: Anonset Per Round wasabi_anonset_per_round = 100.0 whirlpool_anonset_per_round = 5.0 # Fixe...
33.105263
146
0.763911
b940ce95ddca1435f29265ee962b0508820566d4
1,919
py
Python
setup.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
setup.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
setup.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() with open("kts/__version__.py") as fh: version = fh.readlines()[-1].split()[-1].strip("\"'") extras = { 'models': ['catboost', 'xgboost', 'lightgbm', 'skorch'], 'hpo': ['ray[tune]'], } all_deps = [] for group_name in e...
25.586667
111
0.591454
b94144b31ada87e979a344e1f7e2152a5a1a0c9b
1,724
py
Python
src/classifier/classifier_evaluation/eval_on_testset.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/classifier_evaluation/eval_on_testset.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/classifier_evaluation/eval_on_testset.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import hydra from src.classifier.torch_helpers.load_pretrained import load_torch_model from src.classifier.torch_helpers.torch_dataloader import get_dataloader from src.classifier.torch_helpers.eval_torch import evaluate from src.classifier.non_torch.save_and_load_model import load_model from src.classifier...
29.724138
78
0.656613
6a4ae3a899c7ec3f052f78e93c3c446d268c95ab
2,518
py
Python
src/onegov/wtfs/app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.core import Framework from onegov.core import utils from onegov.file import DepotApp from onegov.form import FormApp from onegov.user import UserApp from onegov.wtfs.models import Principal from onegov.wtfs.models import PaymentType from onegov.wtfs.theme import W...
23.100917
73
0.71525
e02d77b87f06a8cf0b2322aa4c1fff1578251808
87
pyde
Python
mpmathtest/mpmathtest.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
mpmathtest/mpmathtest.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
mpmathtest/mpmathtest.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
import mpmath as mpm mpm.mp.dps = 50 print(mpm.mpf(2)**mpm.mpf("0.5")) print(2*mpm.pi)
17.4
33
0.666667
bcc8090bbbe740b8b7893e84f2b8cabedce3c045
633
py
Python
Fastir_Collector/memory/windowsVistaMemory.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/memory/windowsVistaMemory.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/memory/windowsVistaMemory.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
from __future__ import unicode_literals from memory.mem import _Memory class WindowsVistaMemory(_Memory): def __init__(self, params): super(WindowsVistaMemory, self).__init__(params) def csv_all_modules_dll(self): super(WindowsVistaMemory, self)._csv_all_modules_dll() def csv_all_modules...
31.65
72
0.767773
4c11e52293267dfddae9403626c9c3c423f33f0f
694
py
Python
nutrif-image-parser/parserByDirectory.py
LADOSSIFPB/nutrif
232f519b708cef199dcc2ef3485240cacf57612c
[ "Apache-2.0" ]
3
2017-09-22T14:33:54.000Z
2020-07-05T20:01:13.000Z
nutrif-image-parser/parserByDirectory.py
LADOSSIFPB/nutrif
232f519b708cef199dcc2ef3485240cacf57612c
[ "Apache-2.0" ]
2
2017-05-26T23:15:30.000Z
2021-12-14T21:05:56.000Z
nutrif-image-parser/parserByDirectory.py
LADOSSIFPB/nutrif
232f519b708cef199dcc2ef3485240cacf57612c
[ "Apache-2.0" ]
2
2016-06-02T23:45:41.000Z
2020-07-05T20:01:24.000Z
# Import the os module, for the os.walk function import os import shutil """ """ def parser(): # Set the directory you want to start from rootDir = str(input("Informe o diretório de origem:\n")) destDir = str(input("Informe o diretório de destino:\n")) for dirName, subdirList, fileList in os.walk(rootDir): ...
21.6875
58
0.654179
d5b3b766df6865149523a436f146b066f3973d40
47
py
Python
Online-Judges/CodingBat/Python/Warmup-02/01-string_times.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/Warmup-02/01-string_times.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/Warmup-02/01-string_times.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def string_times(str, n): return (str * n)
15.666667
25
0.617021
e68338b9bfd8ced5f9f303195c52e825e26580e2
417
py
Python
Packs/GetLicenseID/Scripts/GetLicenseID/GetLicenseID_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GetLicenseID/Scripts/GetLicenseID/GetLicenseID_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GetLicenseID/Scripts/GetLicenseID/GetLicenseID_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from GetLicenseID import get_license_id import demistomock as demisto def test_human_readable(mocker): mocker.patch.object(demisto, 'getLicenseID', return_value='test_license_id') human_readable_results, context = get_license_id() assert human_readable_results == '### Cortex XSOAR License ID\n|License ID|...
41.7
110
0.755396
5dd0c23bcdb2fc8a451b1b7970f272a5335c0a15
18,495
py
Python
Packs/EWS/Integrations/EWSO365/EWSO365_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/EWS/Integrations/EWSO365/EWSO365_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/EWS/Integrations/EWSO365/EWSO365_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import base64 import json import demistomock as demisto import pytest from exchangelib import EWSDate, EWSDateTime, EWSTimeZone from exchangelib.attachments import AttachmentId, ItemAttachment from exchangelib.items import Item, Message from freezegun import freeze_time from EWSO365 import (ExpandGroup, GetSearchable...
34.505597
119
0.617735
f8e7c74a9dc9ccb4d6a9e2b37bcae8a0c9ae9ca2
3,496
py
Python
mobile/tools/python/imagetools/img2nchw.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
3
2018-08-01T09:45:48.000Z
2021-01-06T14:55:10.000Z
mobile/tools/python/imagetools/img2nchw.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
null
null
null
mobile/tools/python/imagetools/img2nchw.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
5
2020-10-13T09:30:16.000Z
2021-06-08T02:46:17.000Z
# coding=utf-8 import cv2 from array import array import imagetools as tools from enum import Enum class ChannelType(Enum): RGB = 0, BGR = 1 def combine_bgrs_nchw(bgrs, means_b_g_r=(103.94, 116.78, 123.68), scale=0.017, channel_type=ChannelType.BGR): print("[INFO] ---- combine_bgrs_nchw ---- start") ...
39.280899
109
0.533181
5d281ab6fe46f1e7a40250598ec7082715a1ce21
4,128
py
Python
year_3/databases_sem2_cw/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem2_cw/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem2_cw/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
# coding=utf-8 import random import time from dbwrapper import DbManager def get_new_hour(cur_hour): if cur_hour == 24: return 1 return cur_hour + 1 def mainloop(db_manager): while True: # Writes. 1 hour = 20 writes. # write_start_time = time.time() # for i in range(20): ...
42.556701
115
0.65843
5d684e287a5883e43bc9e47ee012ce0d3758dc74
1,175
py
Python
Packs/CofenseTriage/Scripts/CofenseTriageReportDownload/CofenseTriageReportDownload_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CofenseTriage/Scripts/CofenseTriageReportDownload/CofenseTriageReportDownload_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CofenseTriage/Scripts/CofenseTriageReportDownload/CofenseTriageReportDownload_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from unittest.mock import patch import json @patch('demistomock.executeCommand') def test_get_report_list_when_valid_response_is_returned(mock_execute_command): """ Test get_report_list when command execution is successfull. """ from CofenseTriageReportDownload import get_report_list with open("t...
28.658537
80
0.751489
5380359f156130f2cbbf473e9b48d75f62496e44
331
py
Python
Hackergame_2019/tinyELF/tinyELF.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Hackergame_2019/tinyELF/tinyELF.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Hackergame_2019/tinyELF/tinyELF.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
bstr = b'\x66\x6E\x65\x6B\x83\x4E\x6D\x74\x85\x7A\x6F\x57\x91\x73\x90\x4F\x8D\x7F\x63\x36\x6C\x6E\x87\x69\xA3\x6F\x58\x73\x66\x56\x93\x9F\x69\x70\x38\x76\x71\x78\x6F\x63\xC4\x82\x84\xBE\xBB\xCD' flag = '' for i in range(0, len(bstr)): tmp = bstr[i] tmp += i tmp ^= i tmp -= 2 * i flag += chr(tmp) p...
27.583333
194
0.622356
ab1f45c7373c7e623223bace993859a12e7c473b
114
py
Python
src/aijack/attack/membership/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/attack/membership/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/attack/membership/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
from .membership_inference import ( # noqa: F401 AttackerModel, Membership_Inference, ShadowModel, )
19
49
0.719298
918103abd0771e065b23814bc1ab9cfd376d6521
2,044
py
Python
twitoff/twitter.py
Rob1Ham/TwitOff
ad6180b1317be4f38fbbf4d8f226a5e4719eacd7
[ "MIT" ]
null
null
null
twitoff/twitter.py
Rob1Ham/TwitOff
ad6180b1317be4f38fbbf4d8f226a5e4719eacd7
[ "MIT" ]
5
2021-06-02T00:42:23.000Z
2022-03-12T00:07:12.000Z
twitoff/twitter.py
RobDoesData/TwitOff
ad6180b1317be4f38fbbf4d8f226a5e4719eacd7
[ "MIT" ]
null
null
null
"""Retrieve Tweets, embeddings, and persist in the database.""" import basilica import tweepy from decouple import config from .models import DB, Tweet, User TWITTER_AUTH = tweepy.OAuthHandler(config('TWITTER_CONSUMER_KEY'), config('TWITTER_CONSUMER_SECRET')) TWITTER_AUTH.set_access_token(config('TWITTER_ACCESS_TOKEN...
44.434783
101
0.685421
72806b9d7dc576611282d7e9c3678ad96e46f280
819
py
Python
fenci.py
hch-NLP/LTP
4eaba8d33c20127a5cf75e17c6bbcc62574dcfb1
[ "Apache-2.0" ]
1
2020-11-23T05:04:18.000Z
2020-11-23T05:04:18.000Z
fenci.py
hch-NLP/LTP
4eaba8d33c20127a5cf75e17c6bbcc62574dcfb1
[ "Apache-2.0" ]
null
null
null
fenci.py
hch-NLP/LTP
4eaba8d33c20127a5cf75e17c6bbcc62574dcfb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from pyltp import Segmentor import codecs LTP_DATA_DIR = 'F:\\LTP\\ltp_data_v3.4.0' # ltp模型目录的路径 #读取txt文件: def read_txt(path): with open(path, 'r', encoding='utf8') as f: lines = f.readlines() return lines if __name__ == '__main__': cws_model_path = os...
32.76
88
0.592186
f4536bafc6e151643b4fd1c14b3544e57abded89
4,750
py
Python
src/test/tests/rendering/axistitles.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/rendering/axistitles.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/rendering/axistitles.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # MODES: serial # CLASSES: nightly # # Test Case: axistitles.py # # Tests: Tests setting axis titles and units. # # Programmer: Brad Whitlock # Date: Thu Jul 28 11:07:57 PDT 2005 # # Modifications: # Brad Whitlock, Wed...
27.941176
78
0.656632
be58262c5e54ad4b11ae4bd089b82162ffeff99f
766
py
Python
IVTa/2014/SHCHUKIN_F_O/task_5_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
1
2021-04-02T17:43:48.000Z
2021-04-02T17:43:48.000Z
IVTa/2014/SHCHUKIN_F_O/task_5_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/SHCHUKIN_F_O/task_5_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
1
2020-12-18T18:04:49.000Z
2020-12-18T18:04:49.000Z
# Задача 5. Вариант 30. ''' Напишите программу, которая бы при запуске случайным образом отображала имя одного из трех племянников Скруджа МакДака. ''' # Shchukin F.O. # 08.03.2016 from random import choice phrase = 'Билли, Вилли и Дилли' nephews = [''.join(filter(str.isalpha, name)) for name in phrase.sp...
21.885714
63
0.573107
be9649345e11d4448997b5503847acf6dffb3ce6
636
py
Python
energielenker/energielenker/customer/customer.py
libracore/energielenker
97169f2f7b21f636ab473c7561cc8e147c4b12ab
[ "MIT" ]
null
null
null
energielenker/energielenker/customer/customer.py
libracore/energielenker
97169f2f7b21f636ab473c7561cc8e147c4b12ab
[ "MIT" ]
null
null
null
energielenker/energielenker/customer/customer.py
libracore/energielenker
97169f2f7b21f636ab473c7561cc8e147c4b12ab
[ "MIT" ]
1
2021-08-14T22:22:57.000Z
2021-08-14T22:22:57.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, libracore and contributors # For license information, please see license.txt import frappe @frappe.whitelist() def adresse_verknupfen(address, customer): address = frappe.get_doc("Address", address) row = address.append('links', {}) row.link_doctype = "Custome...
24.461538
49
0.679245
fe33d0542c6cef580604c61ad1c8ce374bebea72
3,285
py
Python
preparePoints.py
FlorianTimm/quer2geo
9dd9911929f549785bf4c9ad135974ce10dabea4
[ "MIT" ]
null
null
null
preparePoints.py
FlorianTimm/quer2geo
9dd9911929f549785bf4c9ad135974ce10dabea4
[ "MIT" ]
null
null
null
preparePoints.py
FlorianTimm/quer2geo
9dd9911929f549785bf4c9ad135974ce10dabea4
[ "MIT" ]
null
null
null
import sqlite3 import math daten_c = sqlite3.connect('daten.db') daten = daten_c.cursor() # Vektor berechnen def dist(p_x1, p_x2, p_y1, p_y2): p_dx = p_x2 - p_x1 p_dy = p_y2 - p_y1 return einheit(p_dx, p_dy) # Einheitsvektor berechnen def einheit(p_dx, p_dy): p_strecke = math.sqrt...
33.181818
120
0.515068
feb00f5071fc519d4260e580630c97cd199defd2
335
py
Python
setup.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
setup.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
setup.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages install_required = [l.strip() for l in open('requestments.txt', 'r')] metadata = { 'name': '', 'version': '0.1', 'packages': find_packages(), 'author': 'shonenada', 'author_email': 'shonenada@gmail.com', 'install_requires': install_required, } set...
19.705882
69
0.647761
229cc89cd5f652bd8be99d54967a4354acc45a6b
914
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/dna.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/dna.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/dna.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import string, array legal_dna = "ACGTN" def is_DNA(seq): """ Returns 1 if it contains only legal values for a DNA sequence. c.f. http://www.ncbi.nlm.nih.gov/BLAST/fasta.html """ for ch in seq: if ch not in legal_dna: return 0 return 1 def reverse_complement(s): """...
18.653061
76
0.585339
4a4b24eab6772865d7356e171be5b3ef501a9a37
92
py
Python
2015/02/ratemyprofessor-strict/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/02/ratemyprofessor-strict/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/02/ratemyprofessor-strict/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1SeL5del3Ok60LIN2Epb3DoCl_ANk1YXRfaZMyqhOs9U'
23
68
0.847826
4a77d7d6dd5f73377cf556904b774a6c84815a26
1,380
py
Python
src/onegov/winterthur/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ from onegov.core.upgrade import upgrade_task from onegov.org.models import Organisation from sqlalchemy import Column, Integer, Enum from onegov.winterthur.models.miss...
30.666667
74
0.686957
4a8d1b11fe4190b6e979f85dd117b2ef8ad5b729
2,315
py
Python
official/nlp/q8bert/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/nlp/q8bert/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/nlp/q8bert/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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...
30.064935
105
0.63067
435d5de9ca8730f10c095dc85d6000f6b87ed1b0
881
py
Python
elements/python/12/2/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/12/2/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/12/2/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
def bsearch(A, pred): """ Assume the boolean function pred returns all False and then all True for values in A. Return the index of the first True, or len(A) if that does not exist. """ # invariant: last False lies in [l, r) and A[l] is False if pred(A[0]): return 0 l = 0 r =...
21.487805
76
0.548241
60360222f224f11cc439abc5822e9f395e45cf39
1,185
py
Python
games/rpg/text_controller.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
games/rpg/text_controller.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
games/rpg/text_controller.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
from envs.rpg.rpg import RPGEnvironment from envs.rpg.levels.large_tutorial import LargeTutorial from envs.rpg.levels.small_tutorial import SmallTutorial from envs.rpg.levels.slash_spike import SlashSpike import numpy as np import random np.random.seed(1) random.seed(1) def adjust_matrix(matrix): return np.flip...
28.902439
97
0.668354
e0c01999229ca484de4340697233a7c8d1bece11
18,194
py
Python
test/test_npu/test_poisson_nll_loss.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_poisson_nll_loss.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_poisson_nll_loss.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# 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...
47.134715
128
0.650819
e82cc546af400445fc6e47e503143aaf3fa402ea
1,614
py
Python
frappe-bench/apps/erpnext/erpnext/education/doctype/guardian/guardian.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/education/doctype/guardian/guardian.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/doctype/guardian/guardian.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.utils.csvutils import getlink class Guardian(...
30.45283
98
0.721809
1c4765731326549e159d462a7abaa90cb1582cbf
181
py
Python
apps/profile/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/profile/apps.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/profile/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ProfileConfig(AppConfig): name = 'apps.profile' verbose_name = _('profile')
22.625
54
0.762431
40bd521e4b2b09f53b8225e718602017c100936c
3,929
py
Python
research/nlp/dscnn/src/callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/dscnn/src/callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/dscnn/src/callback.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...
43.175824
120
0.58819
40df001583fbb95e4c744013cb30e6f29775bd7f
155,018
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/scenario/pop2.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/scenario/pop2.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/scenario/pop2.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "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) 2012-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.eclipse.org/legal/epl-2....
43.228667
120
0.510805
90cc151f6bd3fe570a1cb49255f11269a64940c5
924
py
Python
python/coding_dojang/asyncio_urlopen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/asyncio_urlopen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/asyncio_urlopen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from time import time from urllib.request import Request, urlopen import asyncio urls = ['https://www.google.co.kr/search?q=' + i for i in ['apple', 'pear', 'grape', 'pineapple', 'orange', 'strawberry']] async def fetch(url): request = Request(url, headers={'User-Agent': 'Mozilla/5.0'}) # UA가 없으면 403 에...
33
89
0.649351
464e486f94f92f9584626012aaf49ca1acf6b8b1
3,969
py
Python
faster_tokenizers/python/faster_tokenizers/tokenizers_impl/ernie.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
faster_tokenizers/python/faster_tokenizers/tokenizers_impl/ernie.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
faster_tokenizers/python/faster_tokenizers/tokenizers_impl/ernie.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle 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 applicabl...
39.29703
79
0.633409
31a75050e2a7018525cd41b976641f4c194bc617
4,694
py
Python
medaliony2.py
vvizzo/wqwtf
c3138a59891c25d3fada5960c09fa94ac6199b4b
[ "MIT" ]
null
null
null
medaliony2.py
vvizzo/wqwtf
c3138a59891c25d3fada5960c09fa94ac6199b4b
[ "MIT" ]
null
null
null
medaliony2.py
vvizzo/wqwtf
c3138a59891c25d3fada5960c09fa94ac6199b4b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Medalions with 5 point face predictor and head position correction """ import sys import os import dlib from PIL import Image, ImageDraw def get_correction(shape): """ Get correction value depending on position of head. Argument: shape - dlib.predictor values Returns: corr - in...
30.679739
80
0.63677
c3602f669b8552781f98bb420201b9c0d8d50e3c
12,885
py
Python
RDS/circle1_adapters_and_ports/port_owncloud/tests/lib/test_1_ownclouduser.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle1_adapters_and_ports/port_owncloud/tests/lib/test_1_ownclouduser.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle1_adapters_and_ports/port_owncloud/tests/lib/test_1_ownclouduser.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import unittest from lib.ownCloudUser import OwncloudUser from pactman import Consumer, Provider from urllib.parse import quote import atexit pact_host_port = 3000 pact_host_fqdn = f"http://localhost:{pact_host_port}" pact = Consumer('PortOwncloud').has_pact_with( Provider('CentralTokenStorage'), port=pact_host_po...
33.554688
529
0.531704
d2b18518b5e046ef800627e213389d1935f6e1d8
4,517
py
Python
test/test_schuss.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
6
2018-12-20T06:50:52.000Z
2021-12-16T13:08:38.000Z
test/test_schuss.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2020-06-29T07:00:51.000Z
2020-06-29T07:00:51.000Z
test/test_schuss.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2022-03-04T07:29:55.000Z
2022-03-04T07:29:55.000Z
from parameterized import parameterized from nose.tools import assert_equal, assert_true import os import sys dir_path = os.path.dirname(os.path.abspath(__file__)) module_path = os.path.join(dir_path, "../src") if module_path not in sys.path: sys.path.append(module_path) os.chdir(dir_path) from util.iterator imp...
43.432692
135
0.672349
d2eb37e99c966ded8ec84e49fc01e0bea1b8fc97
3,379
py
Python
python/oneflow/compatible/single_client/test/xrt/test_bias_add.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/xrt/test_bias_add.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/xrt/test_bias_add.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" 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...
31.287037
82
0.681267
7dddf4f3e6b0d20240cb5163a0e37382f71a96ca
5,421
py
Python
src/bo4e/bo/lastgang.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/lastgang.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/lastgang.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Lastgang and LastgangKompakt class and corresponding marshmallow schema for de-/serialization """ from typing import List, Optional import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, Geschaeftsobj...
39.860294
171
0.762221
48579bd3f75ed7c7764a044e72e3ddb27ca2432a
20,309
py
Python
Packs/XForceExchange/Integrations/XFE_v2/XFE_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/XForceExchange/Integrations/XFE_v2/XFE_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/XForceExchange/Integrations/XFE_v2/XFE_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from XFE_v2 import Client, ip_command, url_command, cve_get_command, \ cve_search_command, file_command, whois_command from CommonServerPython import outputPaths DBOT_SCORE_KEY = 'DBotScore(val.Indicator == obj.Indicator && val.Vendor == obj.Vendor)' MOCK_BASE_URL = 'https://www.this-is-a-fake-url.com' MOCK_API_K...
36.396057
121
0.529322