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
37ed8030ddce607276ddfd48f86e27df6f7d2521
736
py
Python
Packs/GroupIB_ThreatIntelligenceAttribution/Scripts/GIBIncidentUpdateIncludingClosed/GIBIncidentUpdateIncludingClosed_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GroupIB_ThreatIntelligenceAttribution/Scripts/GIBIncidentUpdateIncludingClosed/GIBIncidentUpdateIncludingClosed_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GroupIB_ThreatIntelligenceAttribution/Scripts/GIBIncidentUpdateIncludingClosed/GIBIncidentUpdateIncludingClosed_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 GIBIncidentUpdateIncludingClosed import prevent_duplication EXISTING_INCIDENT = [ { "Contents": { "total": 1, "data": [ {"id": "1", "gibid": "12v"} ] } } ] INCOMING_INCIDENT = {"gibid": "12v...
25.37931
82
0.668478
f48e47542ae925a0c157b41ce43022c5a28c7100
3,006
py
Python
python_experiments/paper_figures/tkde/parsing_results/parse_mcap_varying_tnum.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/parsing_results/parse_mcap_varying_tnum.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/parsing_results/parse_mcap_varying_tnum.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from config import * from data_analysis.util.read_file_utils_updated import * from data_analysis.tkde_data_parsing.key_word_tags import * import json, re def bak(): inc_sr_time_ins = {5000: 828.2532715, 10000: 1583.839004, 15000: 2357.798905, 20000: 3135.9563235, 25000: 3902.367272} inc...
43.565217
118
0.561211
fe26fff5a88c6c865fad58527ebcd5780beeb34c
2,426
py
Python
UnusedCogs/movie_poll.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
UnusedCogs/movie_poll.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
UnusedCogs/movie_poll.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
import logging from discord.ext import commands from random import choice log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) stream_handler = logging.StreamHandler() stream_handler.setFormatter(logging.Formatter('[%(asctime)s - %(name)s - %(levelname)s] %(message)s')) log.addHandler(stream_handler) REGIONA...
31.102564
102
0.720115
a3dfb17fda286f7414d4216ebb92ad28b5cd6318
2,101
py
Python
solutions/mols_search/mols-search-webserver/src/indexer/index.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/mols_search/mols-search-webserver/src/indexer/index.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/mols_search/mols-search-webserver/src/indexer/index.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import logging as log from milvus import * from common.config import MILVUS_HOST, MILVUS_PORT, VECTOR_DIMENSION import traceback def milvus_client(): try: milvus = Milvus(MILVUS_HOST, MILVUS_PORT) return milvus except Exception as e: log.error(e) log.error(traceback.format_exc(...
27.644737
117
0.695383
43b72b76c57aaf1882704ef85062a5b4bdafe98a
1,887
py
Python
Paddle_Industry_Practice_Sample_Library/nlp_projects/event_extraction/ernie_with_crf/model.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-19T09:58:37.000Z
2022-03-19T09:58:37.000Z
Paddle_Industry_Practice_Sample_Library/nlp_projects/event_extraction/ernie_with_crf/model.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
Paddle_Industry_Practice_Sample_Library/nlp_projects/event_extraction/ernie_with_crf/model.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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.021739
139
0.73026
78dcdd84018f88a2de822f779a26bb8b0e93fbcd
320
py
Python
src/visual/RgbDepthFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/visual/RgbDepthFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/visual/RgbDepthFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import numpy as np class RgbDepthFilter(object): """Returns the depth as the rgb value so that depth can be visualised.""" def filter(self, rgb, depth, balls, args = {}): depth = depth/32 rgb[:,:,0] = depth rgb[:,:,1] = depth rgb[:,:,2] = depth return rgb, depth, balls
26.666667
77
0.56875
60287d06226e27bdbd24ca0b41e084fcc63d3b5b
806
py
Python
dataset.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
dataset.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
dataset.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
import torch from torchvision import datasets class CelebA(datasets.CelebA): """ CelebA dataset modification restricted to the selected attributes """ def __init__(self, root, attributes, split='train', target_type='attr', transform=None, target_transform=None, download=False): ...
40.3
91
0.691067
60381b12c231d5b4df6f79354545b1cb1e209a00
1,102
py
Python
AustinBot/all_cogs/rpgFunctions/player.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/rpgFunctions/player.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/rpgFunctions/player.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from .. import sql, log, BASE_PATH, chunk from .character import Character, get_character ############# # Constants # ############# ############# # Functions # ############# def get_player(id, guild_id): df = sql('rpg', 'select * from players where id = ? and guild_id = ?', (id, guild_id)) if df.empty: return No...
26.878049
175
0.656987
60d94e18b75465d385596242ca9a09742166e19d
2,877
py
Python
Website-Viewer-master/Website Viewer.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Website-Viewer-master/Website Viewer.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Website-Viewer-master/Website Viewer.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 ''' ''' import os, random, time, re, requests, threading Colors = ['\033[31m', '\033[32m', '\033[33m', '\033[34m', '\033[35m', '\033[36m', '\033[39m'] try: os.mkdir('Results') except: pass def Print_Logo(): Logo = ''' ...
31.615385
140
0.377824
e820da7ffa2f349bcb92ad0f6865645883b99d0e
15,669
py
Python
fhirclient/r4models/conceptmap.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/conceptmap.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/conceptmap.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ConceptMap) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class ConceptMap(domainresource.DomainResource): """ A map from one set of concepts to one o...
38.217073
108
0.583317
907381277379070578c4bbf7acc5af5068fdb5cf
3,778
py
Python
meerkat_consul/decorators.py
meerkat-code/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
null
null
null
meerkat_consul/decorators.py
meerkat-code/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
1
2018-07-18T16:36:12.000Z
2018-07-18T16:36:12.000Z
meerkat_consul/decorators.py
fjelltopp/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
null
null
null
import os import uuid from concurrent.futures import ThreadPoolExecutor from functools import wraps from json import JSONDecodeError from time import time import requests from flask import current_app, request from werkzeug.exceptions import InternalServerError, HTTPException from meerkat_consul import logger def ...
32.016949
103
0.635521
908fd0b02df9aea0d900f99279b86fbc690ecf77
299
py
Python
Algorithms/Bit_Manipulation/flipping_bits.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Bit_Manipulation/flipping_bits.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Bit_Manipulation/flipping_bits.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 INT_POWER = 32 for _ in range(int(input())): arr = [1] * INT_POWER b = bin(int(input()))[2:] len_b = len(b) for i in range(len_b): if b[i] == '1': arr[len_b - i - 1] = 0 print(sum([2 ** i for i in range(INT_POWER) if arr[i] == 1]))
19.933333
65
0.501672
31887b42e5593615105076f54f1800c1fe543055
31,858
py
Python
radiomics/radiomics_ria/featureextractor.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/radiomics_ria/featureextractor.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/radiomics_ria/featureextractor.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import collections from itertools import chain, product import numpy as np import json import logging import os import pykwalify.core import SimpleITK as sitk import six import inspect from radiomics_ria import generalinfo, getFeatureClasses, getImageTyp...
45.641834
124
0.728451
73301c6db54d7ed249e6dacb4d6b5df4f17d9bcb
106
py
Python
Welp/util/types.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Welp/util/types.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Welp/util/types.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
from typing import Union, Callable, Dict, Any Json = Dict[str, Any] Function = Union[Callable, callable]
21.2
45
0.745283
7dfeee00242ed6334620f58a54180906ac3512af
659
py
Python
python_experiments/generate_inputs/generate_bin_files.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/generate_inputs/generate_bin_files.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/generate_inputs/generate_bin_files.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import os if __name__ == '__main__': small_data_set_lst = ['ca-GrQc', 'ca-HepTh', 'p2p-Gnutella06', 'wiki-Vote'] data_set_lst = [ # 'email-Enron', 'email-EuAll', # 'web-NotreDame', 'web-Stanford', 'web-BerkStan', 'web-Google', 'cit-Patents', # 'soc-LiveJournal1', # 'wiki-Link', ...
34.684211
121
0.61912
8257f7f04177ee7f3d6cda249338a9cba9c31757
9,411
py
Python
src/visitpy/visit_flow/flow/src/core/filter_graph.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/flow/src/core/filter_graph.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_flow/flow/src/core/filter_graph.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: filter_graph.py author: Cyrus Harrison <cyrush@llnl.gov> created: 10/14/2010 descript...
33.137324
85
0.553395
8299ccf2901510845faba8bd6f1755cdeb7121f5
905
py
Python
BugTracker-main/makeex.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
BugTracker-main/makeex.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
BugTracker-main/makeex.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# STIL UNFINISHED import xlsxwriter from models import bug_report reports = bug_report.query.order_by(bug_report._id).all() outWorkbook = xlsxwriter.Workbook("out.xls") outSheet = outWorkbook.add_worksheet() # Create file workbook for report in reports: print('wrote ' + str(report._id)) outSheet.write("A" + st...
41.136364
69
0.692818
7d87d683195a99de8bb73e5898a66d7fb1967209
1,503
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_production_orders.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_production_orders.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_production_orders.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): # reload schema for doctype in ("Work Order", "Work Order Item", "Work Order Operation", "BOM Item", "BOM Explosio...
32.673913
90
0.719228
7d98d1a23ec585fa17cfae3cef11c30a5a87b781
1,722
py
Python
tests/test_decoders.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
235
2017-03-01T14:34:29.000Z
2021-06-03T16:16:16.000Z
tests/test_decoders.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
39
2017-03-25T01:20:25.000Z
2020-10-30T11:51:47.000Z
tests/test_decoders.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
105
2017-04-13T21:31:46.000Z
2021-11-01T17:25:48.000Z
import pytest import numpy as np import keras.backend as K from keras.layers import Input from keras_fcn.decoders import ( Decoder, VGGDecoder, VGGUpsampler ) from keras.utils.test_utils import keras_test def test_decoder(): with pytest.raises(ValueError): Decoder(pyramid=['fake1', 'fake2'], ...
31.309091
61
0.600465
d23435805bf880424fb6cee5199cecafe10393e8
1,175
py
Python
page_objects/common.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
null
null
null
page_objects/common.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
1
2020-06-23T07:25:39.000Z
2020-06-23T07:25:39.000Z
page_objects/common.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
null
null
null
import time from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import Select from selenium.webdriver import ActionChains from webdriver_manager import driver from utilities import driver_factory import config ...
28.658537
76
0.753191
d271a4770e3018716b6496e23d9f0f9b35f213e3
195
py
Python
src/nfz_module/model/CameraData.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/model/CameraData.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/model/CameraData.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
from model.SensorData import SensorData __author__ = 'Hans-Werner Roitzsch' class CameraData(SensorData): def __init__(self, data, timestamp): self.data = data self.timestamp = timestamp
19.5
39
0.769231
96a95add804a44be0000e8d99ff9131df70caa71
1,308
py
Python
src/workflows/vis_receive/vis_receive.py
ska-telescope/sdp-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/workflows/vis_receive/vis_receive.py
ska-telescope/sdp-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/workflows/vis_receive/vis_receive.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
""" Example Vis Receive workflow """ # pylint: disable=C0103 import logging import ska_sdp_config import sys # Initialise logging and configuration logging.basicConfig() log = logging.getLogger('vis_recv') log.setLevel(logging.INFO) config = ska_sdp_config.Config() def main(argv): pb_id = argv[0] for txn i...
23.357143
75
0.632263
73d6325e3e0147bd7c21d436de27de60b4036b6c
1,956
py
Python
pythonProj/FZPython/pyquant/libs/mongolib.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/libs/mongolib.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/libs/mongolib.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
#!/usr/bin/env python # coding: utf8 from pymongo import MongoClient from pyquant.config import mongodb as config import pandas as pd import json import pydash conn = MongoClient(config['host'], config['port']) db = conn.fzquant def insert_data(col_name, df): """ 插入数据 TODO: 需要去重 :param code: 股票代码...
21.494505
123
0.574131
fb6ffc88d9cc1a105654ab2e71348ab71568e401
1,050
py
Python
Webpage/arbeitsstunden/forms.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/forms.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/forms.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django import forms from django.db.models import fields from django.forms import CheckboxSelectMultiple, DateInput from django.http import request from ajax_select.fields import AutoCompleteSelectField, AutoCompleteSelectMultipleField from .models import * class formProject(forms.ModelForm): class Meta: ...
30.882353
130
0.728571
54b4dcb8893e101fd5ad6f4c513b56ac25c5a3c9
214
py
Python
Language Proficiency/Python/Sets/Set .intersectin() Operation/intersection.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Sets/Set .intersectin() Operation/intersection.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Sets/Set .intersectin() Operation/intersection.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == '__main__': n = int(input()) subs_a = set(map(int, input().split())) m = int(input()) subs_b = set(map(int, input().split())) print(len(subs_a&subs_b))
17.833333
43
0.570093
b72f05568e82da9492488f3e3e49e756fe039be4
7,191
py
Python
src/resources/clients/python_client/viewermethods.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/resources/clients/python_client/viewermethods.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/resources/clients/python_client/viewermethods.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import sys import inspect import base64 if (sys.version_info > (3, 0)): import io else: import cStringIO as io from viewerstate import * from visitstate import RPCType as RPC class ViewerMethods: def __init__(self,_state): self.state = _state def sync(self): gmap = sys.modules["__main_...
32.246637
97
0.590599
3fa5c12316ac26fd84f82cad6a47a6329cef47d9
7,604
py
Python
src/onegov/election_day/layouts/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.core.utils import normalize_for_url from onegov.election_day import _ from onegov.election_day.layouts.detail import DetailLayout from onegov.election_day.utils import pdf_filename from onegov.election_day.utils import svg_filename class VoteLayout(DetailLayout)...
29.703125
79
0.537875
4d6a6048881eccb3f7d148674eec6b624ad71361
3,887
py
Python
src/onegov/feriennet/forms/billing.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/billing.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/billing.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.feriennet import _ from onegov.form import Form from onegov.form.fields import MultiCheckboxField from onegov.user import User, UserCollection from sqlalchemy import func from wtforms.fields import BooleanField, RadioField, SelectField, StringField from wtforms.fields.html5 import DecimalField from wtforms....
26.806897
78
0.583741
c47aeddab674005cb7e14a89fc1669119aa70b86
1,386
py
Python
python/en/archive/topics/command_line_arguments/test-sys_argv.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/test-sys_argv.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/test-sys_argv.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' aimldl > python3 > topics > command_line_arguments > test-sys_argv.py Rev.3: 2019-11-13 (Wed) Rev.2: 2019-11-07 (Thu) Rev.1: 2019-03-01 (Fri) Draft: 2018-11-08 (Thu) Syntax: $ python test-sys_argv.py arg1 arg2 arg3 argc=4 argv=['/home/aimldl/test-sys_arg...
23.1
77
0.606782
6701cae2227cd38a00534234700198feac33ec34
17,622
py
Python
venv/lib/python3.7/site-packages/twilio/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
3
2020-12-14T03:29:02.000Z
2020-12-24T22:04:48.000Z
venv/lib/python3.7/site-packages/twilio/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
1
2020-08-25T15:27:57.000Z
2020-08-25T15:27:57.000Z
venv/lib/python3.7/site-packages/twilio/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource from twilio.base.page ...
38.475983
144
0.663148
6796e20f00bae172083a7a7a6131ed526c7a090f
9,952
py
Python
pages/reddit.py
ipussy/ipussy.github.io
95d19a74e38bb54303cf18057a99a57c783e76bf
[ "Apache-2.0" ]
null
null
null
pages/reddit.py
ipussy/ipussy.github.io
95d19a74e38bb54303cf18057a99a57c783e76bf
[ "Apache-2.0" ]
null
null
null
pages/reddit.py
ipussy/ipussy.github.io
95d19a74e38bb54303cf18057a99a57c783e76bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import time import urllib.request import requests import bs4 from bs4 import BeautifulSoup from datetime import datetime import os.path from os import path class Image(object): url = '' width = '' height = '' def __init__(self, data): self.__dict__ = json.lo...
29.796407
111
0.507034
e1e25fb55b019e16385b29b3935a76939714fd67
2,916
py
Python
examples/print_graph.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
1
2022-03-01T07:38:32.000Z
2022-03-01T07:38:32.000Z
examples/print_graph.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
12
2021-07-13T12:33:36.000Z
2021-07-14T05:25:19.000Z
examples/print_graph.py
xinetzone/dash-book
1f624e87e2aa02c9931318918df969e44bdd2c07
[ "Apache-2.0" ]
null
null
null
import json from dash import dcc, html from dash.dependencies import Input, Output import plotly.express as px import pandas as pd from app import app styles = { 'pre': { 'border': 'thin lightgrey solid', 'overflowX': 'scroll' } } df = pd.DataFrame({ "x": [1, 2, 1, 2], "y": [1, 2, 3,...
27
88
0.570988
3f29c7041705cda342f44be2632d5a7a35b9a2e5
405
py
Python
PINp/2014/Valkovskey_M_A/task_2_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_2_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_2_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2. Вариант 49. #Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Аристотель. Не забудьте о том, что автор должен быть упомянут на отдельной строке. #Valkovskey M.A. print('Опьянение показывает душу человека, как зеркало отражает его тело.\n'...
50.625
202
0.785185
55fecb0b4e3e21940b910c63283336b003be31b1
2,060
py
Python
research/cv/arcface/infer/data/input/gendata.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/arcface/infer/data/input/gendata.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/arcface/infer/data/input/gendata.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...
35.517241
87
0.617476
3d1fa44c485ebcda10ff8848be261bab2f1d9b3f
1,495
py
Python
rasa/shared/nlu/training_data/formats/wit.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2020-10-14T18:09:10.000Z
2020-10-14T18:09:10.000Z
rasa/shared/nlu/training_data/formats/wit.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/shared/nlu/training_data/formats/wit.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
import logging from typing import Any, Dict, Text from rasa.shared.nlu.constants import INTENT, ENTITIES, TEXT from rasa.shared.nlu.training_data.formats.readerwriter import JsonTrainingDataReader from rasa.shared.nlu.training_data.training_data import TrainingData from rasa.shared.nlu.training_data.message import Me...
34.767442
85
0.591304
3d5b9bef69e2166a0c003682d4f9495fe43cc671
7,294
py
Python
architectures/model_DenseNet.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
5
2022-03-11T18:08:32.000Z
2022-03-31T13:47:49.000Z
architectures/model_DenseNet.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
null
null
null
architectures/model_DenseNet.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
null
null
null
##################################################### # Content-Aware Detection of Timestamp Manipulation # # IEEE Trans. on Information Forensics and Security # # R. Padilha, T. Salem, S. Workman, # # F. A. Andalo, A. Rocha, N. Jacobs # ##################################################...
41.91954
146
0.682479
182cdd14df37227615fe4f9a8dcfb915d66e8f0e
7,489
py
Python
Packs/EmailRepIO/Integrations/EmailRepIO/EmailRepIO.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/EmailRepIO/Integrations/EmailRepIO/EmailRepIO.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/EmailRepIO/Integrations/EmailRepIO/EmailRepIO.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""EmailRepIO Integration for Cortex XSOAR""" import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import urllib3 import traceback from typing import Any, Dict, List, Optional # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' ACCEPTED_TAGS = ['...
31.334728
108
0.655094
1858fb15df21f79643cbfe03efd8d03409dacb4e
827
py
Python
elements/python/9/1/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/9/1/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/9/1/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
class Stack(object): def __init__(self): self.stack = [] self.mx = [] self.n = 0 def push(self, x): self.stack.append(x) mx = self.mx[-1] if self.n > 0 else float('-inf') self.mx.append(max(mx, x)) self.n += 1 def pop(self): if self.n == 0: ...
18.377778
57
0.457074
6296fc6fcdb6b4572f83242c3ee7eebfd38a5382
962
py
Python
storage/emulated/0/qpython/scripts3/bluetooth_chat.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/bluetooth_chat.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/bluetooth_chat.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
import androidhelper import time droid = androidhelper.Android() droid.toggleBluetoothState(True) droid.dialogCreateAlert('Be a server?') droid.dialogSetPositiveButtonText('Yes') droid.dialogSetNegativeButtonText('No') droid.dialogShow() result = droid.dialogGetResponse() is_server = result.result['which'] =...
26.722222
60
0.727651
1a257102000c0feaf314f3db6fb38dbc662a0609
1,197
py
Python
official/cv/ADNet/src/utils/my_math.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/src/utils/my_math.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/src/utils/my_math.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...
34.2
78
0.621554
1a25851d6534dd85dbad64224d4ec2629ae95202
830
py
Python
python_project/python/PlayBall.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
python_project/python/PlayBall.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
python_project/python/PlayBall.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
import math import random ascore=0 bscore=0 ballscored=0 catchball=0 while True: aplay=random.randint(0,1) for i in range(1,10000): if aplay==1: ascore=ascore+2 aplay=0 else: while ballscored==0: bscored=random.randint(0,2) i...
23.055556
88
0.431325
a7de850d1d088dbee34e433bb598a91a3f1b5577
162
py
Python
Online-Judges/DimikOJ/Python/07-count-number.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/07-count-number.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/07-count-number.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
for _ in range(int(input())): n = input() count_n = 0 for i in range(len(n)): if n[i] == " ": count_n += 1 print(count_n+1)
20.25
29
0.450617
3d67872ada586bf37acc816ab35f9ca9bc159834
332
py
Python
cs/lambda_cs/07_computer_architecture/notes/wb.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/07_computer_architecture/notes/wb.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/07_computer_architecture/notes/wb.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" 671 :: Whiteboard Given a dictionary with keys that can be both strings and integers, sum up only the items that have integer values. """ dict1 = { "cat": "bob", "dog": 23, 19: 18, 90: "fish", } result = 0 for key, value in dict1.items(): if isinstance(value, int): result += value pr...
15.809524
67
0.614458
3d9b10a889b0383d009ad3c82b7b0d597cb76369
11,742
py
Python
Packs/DeHashed/Integrations/DeHashed/DeHashed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DeHashed/Integrations/DeHashed/DeHashed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DeHashed/Integrations/DeHashed/DeHashed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from typing import Union, Dict, Optional, List from CommonServerPython import * # noqa: E402 lgtm [py/polluting-import] # Disable insecure warnings requests.packages.urllib3.disable_warnings() INTEGRATION_CONTEXT_BRAND = "DeHashed" BASE_URL = "https://api.dehashed.com/" RESULTS_FROM = 1 RESULTS_TO = 50 class Clie...
36.579439
120
0.61395
b12663ccfa0feceb0149b531afedaae41d102331
346
py
Python
backups/python-howtos/typing-test/tt_dosomething.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
backups/python-howtos/typing-test/tt_dosomething.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
backups/python-howtos/typing-test/tt_dosomething.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
1
2020-10-02T04:57:25.000Z
2020-10-02T04:57:25.000Z
''' Created on Nov 13, 2019 @author: froske ''' import typing mystring = '''{{"production": {{ "totalCount": {} }} , "test": {{ "totalCount" : {} }} }}'''.format(21, 42) print(mystring) def do_something(name: str) -> str: print("Hello ...
18.210526
40
0.456647
6242f2a5be80fb339c8e867a32a179044ed31c47
1,433
py
Python
python/en/archive/weather_python_code/example-login2url.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/weather_python_code/example-login2url.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/weather_python_code/example-login2url.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ example-login2url.py """ import requests from bs4 import BeautifulSoup # url2login = "https://www.hanbit.co.kr/member/login.html" user_id = "mrtonnet" user_password = "Sk_xogud22" login_info = { "m_id": user_id, "m_password": user_password } # Log into the URL. If the log...
30.489362
109
0.7097
65cfc1d7dbaaeeb2365c2515080e248beb36672b
3,336
py
Python
tools/pythonpkg/tests/fast/arrow/parquet_write_roundtrip.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/arrow/parquet_write_roundtrip.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/arrow/parquet_write_roundtrip.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import duckdb import pytest import tempfile import numpy import pandas import datetime try: import pyarrow as pa can_run = True except: can_run = False def parquet_types_test(type_list): temp = tempfile.NamedTemporaryFile() temp_name = temp.name for type_pair in type_list: value_list = ...
35.489362
120
0.57494
b835865e77b2dd8cb1dc1a7d7625ba302bbb6cf7
496
py
Python
src/topological_sort/topological_sort.py
jwvg0425/DSAndAlgo3
173ccf717b84610def861854736c3b16a57ac727
[ "MIT" ]
null
null
null
src/topological_sort/topological_sort.py
jwvg0425/DSAndAlgo3
173ccf717b84610def861854736c3b16a57ac727
[ "MIT" ]
null
null
null
src/topological_sort/topological_sort.py
jwvg0425/DSAndAlgo3
173ccf717b84610def861854736c3b16a57ac727
[ "MIT" ]
null
null
null
class Node: def __init__(self, value, adj): self.value = value self.adj = adj self.visited = False def topological_sort(graph): sort_list = [] for source in graph: source.visited = True topological_sort_node(source, sort_list) return sort_list def topological_so...
26.105263
48
0.627016
b88ae306c0a786e10d76a88f7b135895e7ed54ba
9,295
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/selftest/cases/runqemu.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/selftest/cases/runqemu.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/selftest/cases/runqemu.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # Copyright (c) 2017 Wind River Systems, Inc. # # SPDX-License-Identifier: MIT # import re import tempfile import time import oe.types from oeqa.selftest.case import OESelftestTestCase from oeqa.utils.commands import bitbake, runqemu, get_bb_var, runCmd class RunqemuTests(OESelftestTestCase): """Runqemu test cl...
44.261905
138
0.639053
b8b07a8e7b3ef1048c382304d09b442c3a29339d
11,482
py
Python
CompilerTheory_exp/exp2/gui.py
DolorHunter/hfut-exp-archived
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
12
2020-12-07T05:49:05.000Z
2022-03-25T09:09:36.000Z
CompilerTheory_exp/exp2/gui.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
null
null
null
CompilerTheory_exp/exp2/gui.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
1
2021-01-08T08:53:53.000Z
2021-01-08T08:53:53.000Z
# coding:utf-8 from tkinter import * from tkinter import ttk from tkinter import filedialog from tkinter import messagebox import ll1 MAX = 10 class Gui: def __init__(self, master): self.init_input = StringVar() # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
42.684015
120
0.557046
b2993e4684e51684790462df387ca940ad7be5d5
1,021
py
Python
elements/python/13/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/13/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/13/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
SEP = ':' def pair_key(p1, p2): return p1 + SEP + p2 if p1 <= p2 else p2 + SEP + p1 def highest_affinity_pair(views): user_views = dict() affinity = dict() mx = float('-inf') best = None for page, user in views: if page in user_views.setdefault(user, {}): continue ...
21.723404
55
0.461312
a24004553b7cb26bf5c7d35e8974d62144d9a84b
328
py
Python
AP_SS16/402/python/phi-eigene-messdaten.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
AP_SS16/402/python/phi-eigene-messdaten.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
AP_SS16/402/python/phi-eigene-messdaten.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
import numpy as np import uncertainties.unumpy as unp from numpy import array import helpers as hel # Hauptprogramm benutzt Messdaten von Saskia, Sonja _phi_r = np.deg2rad(array([262.3, 266.5, 259])) _phi_l = np.deg2rad(array([131, 128, 133.3])) phi = 0.5 * hel.combine_measurements(_phi_r - _phi_l) print(phi / np.pi...
25.230769
53
0.737805
a767ab4e5b1fa44d18ecc20461ebf5dc67234990
14
py
Python
___Python/KarPoo/m01_kennenlernen/p01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/m01_kennenlernen/p01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/m01_kennenlernen/p01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
print("Foo")
7
13
0.571429
ce72fc2a48b8358830d74a00ff12e4d6cbd78c55
39,532
py
Python
src/onegov/core/framework.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/framework.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/framework.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" The Framework provides a base Morepath application that offers certain features for applications deriving from it: * Virtual hosting in conjunction with :mod:`onegov.server`. * Access to an SQLAlchemy session bound to a specific Postgres schema. * A cache backed by redis, shared by multiple processes. * An ide...
33.903945
79
0.645831
0b4ff13fda7c8e339e83ccf7b33806bea7eb4b77
631
py
Python
RedBook/ch2/2-5.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/2-5.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/2-5.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from urllib.request import Request, HTTPCookieProcessor, build_opener url = 'http://127.0.0.1:8000/cookie' # first request (GET) with cookie handler # 쿠키 핸들러 생성, 쿠키 데이터 저장은 디폴트로 CookieJar 객체를 사용함 cookie_handler = HTTPCookieProcessor() opener = build_opener(cookie_handler) req = Request(url) res = opener.open(req) p...
24.269231
69
0.683043
0b7c9cb713b1f9e27cbc504d427b3c03e84a0d1b
897
py
Python
flask_heroku/app/views.py
hou2zi0/flask-app-docker
0e51b1f00201fc6eb46a62d0d8f2701bc02d4031
[ "MIT" ]
null
null
null
flask_heroku/app/views.py
hou2zi0/flask-app-docker
0e51b1f00201fc6eb46a62d0d8f2701bc02d4031
[ "MIT" ]
null
null
null
flask_heroku/app/views.py
hou2zi0/flask-app-docker
0e51b1f00201fc6eb46a62d0d8f2701bc02d4031
[ "MIT" ]
null
null
null
from app import app from flask import request import json import spacy nlp = spacy.load('en_core_web_sm') @app.route('/') def index(): return "Hello from Flask! 🐵" @app.route('/api', methods=['GET']) def api(): return "Hello from API!" @app.route('/api/adj', methods=['GET', 'POST']) def adj(): if req...
28.03125
94
0.539576
65025a5ac1793e09f299bc562cd35aaaf3eb7382
884
py
Python
IVTp/2014/Lyach_A_A/Task_4_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Lyach_A_A/Task_4_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Lyach_A_A/Task_4_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 12. # Напишите программу, которая выводит имя, под которым скрывается Лариса Петровна Косач-Квитка # Лях.А.А. # 22.05.2016 real_name = 'Лариса Петровна Косач-Квитка' p_name = 'Леся Украинка ' interests = ('поэзия, лирика, эпос, драма') born_place = 'Новоград-Волынский ' born_year = 187...
35.36
167
0.671946
3365413921f875ac3fbe67d69024e86c3967a256
3,137
py
Python
pyntcloud/filters/kdtree.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1
2022-03-03T05:57:11.000Z
2022-03-03T05:57:11.000Z
pyntcloud/filters/kdtree.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
null
null
null
pyntcloud/filters/kdtree.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import zscore from .base import Filter class KDTreeFilter(Filter): def __init__(self, *, pyntcloud, kdtree_id): """ Parameters ---------- pyntcloud: pyntcloud.PyntCloud kdtree_id: pyntcloud.structures.KDTree.id Usually retur...
30.163462
78
0.657316
d7c3efedeeb7deec4b62cc43ecfee5646c736dbb
1,225
py
Python
17 Debugging, Server/pdfana.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
6
2019-08-06T14:53:34.000Z
2020-10-16T19:44:16.000Z
17 Debugging, Server/pdfana.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
1
2020-06-25T09:46:58.000Z
2020-06-25T09:46:58.000Z
17 Debugging, Server/pdfana.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
2
2019-09-16T13:05:51.000Z
2019-09-27T09:07:49.000Z
# coding: utf-8 # # Übersichtlichen .py Code zusammenbauen # In[2]: #Imports import os import progressbar import textract import pandas as pd # In[ ]: #Vorbereitung pdfs = os.listdir('pdfs') bar = progressbar.ProgressBar() lst = [] # In[ ]: #Rohe Analyse for pdf,i in zip(pdfs, bar(range(len(pdfs)))): t...
18.283582
86
0.577143
0432879457aec6b01b26db33b5208954e1c07f6f
294
py
Python
tf/old_clasificador/_et/demo_json2.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/old_clasificador/_et/demo_json2.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/old_clasificador/_et/demo_json2.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
import json data = dict() aux = [] data['image'] = 'xxxx' data['peso1'] = 0.998 data['peso2'] = 0.002 aux.append(data) data['image'] = 'yyyyy' data['peso1'] = 0.9 data['peso2'] = 0.1 aux.append(data) with open('data.json', 'w') as outfile: json.dump(aux, outfile, ensure_ascii=False)
14.7
47
0.622449
f0acecd957efe48fca0be727ba8171df0cb18eec
100
py
Python
web-brutator-master/lib/core/Globals.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
web-brutator-master/lib/core/Globals.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
web-brutator-master/lib/core/Globals.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/env python3 # -*- coding: utf-8 -*- def initialize(): global timeout timeout = 10
20
23
0.61
f0ddd41b167cec973167905a5c94b3bd540d8a32
1,942
py
Python
zencad/interactive/line.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/interactive/line.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/interactive/line.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
from zencad.interactive.interactive_object import InteractiveObject from zencad.color import Color as color from zencad.util import to_Pnt, to_Vec, point3 from OCC.Core.Geom import Geom_CartesianPoint from OCC.Core.Prs3d import Prs3d_Drawer, Prs3d_ArrowAspect, Prs3d_LineAspect from OCC.Core.AIS import AIS_Line from OC...
32.915254
84
0.69516
50245c61e246698bb447d0f49d752bc868aed489
1,402
py
Python
Objekte/planet.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
Objekte/planet.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
Objekte/planet.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
# pylint: disable=wildcard-import, unused-wildcard-import, invalid-name, import-error, missing-docstring __author__ = 'floriandienesch' from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * class Planet(object): def addPlanet(self, radius, rot, x, y, z, x2, z2, longitude, latitude): ...
25.490909
105
0.553495
76439f995f897c2d92c32ea3c6fc32c70b748c05
29
py
Python
Python/OpenCV/bildcompare.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/OpenCV/bildcompare.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/OpenCV/bildcompare.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import sys print("Foo Bar")
7.25
16
0.689655
4f93fbac2d37a1ef37e4e0018af5ee8f9db0f981
2,153
py
Python
migrations/versions/6be822396123_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/6be822396123_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/6be822396123_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 6be822396123 Revises: 021f602d9965 Create Date: 2020-10-23 15:51:36.330825 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from sqlalchemy.dialects import postgresql from project import dbtypes # revision identifiers, used by Alembic. revision = "6be822396123...
32.134328
85
0.650255
96e2537ac57440d77c56f618c2dc41683b704fb7
560
py
Python
739-daily-temperatures/739-daily-temperatures.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
739-daily-temperatures/739-daily-temperatures.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
739-daily-temperatures/739-daily-temperatures.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def dailyTemperatures(self, temperatures: List[int]) -> List[int]: stack=[(temperatures[0],0)] N = len(temperatures) output=[0]*N for i in range(1, N): cur, idx = stack[-1] if cur < temperatures[i]: output[idx]=i-idx ...
37.333333
70
0.483929
96f17e507e6804f93a285ab90a4ad8d66f866739
743
py
Python
chapter100/elasticsearch_01.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/elasticsearch_01.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/elasticsearch_01.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
import time from datetime import datetime from elasticsearch import Elasticsearch start = datetime.now() client = Elasticsearch("http://username:password@127.0.0.1:9200") client.indices.create(index="index_name") _id = 0 with open("utils/trash.csv") as file: for line in file.readlines(): name, descript...
20.638889
65
0.643338
8c398775721d7318acc04c6321c685ccce3f5c34
1,505
py
Python
examples/prevent_initial_call.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
null
null
null
examples/prevent_initial_call.py
xinetzone/dash-tests
cd4526caa2f9d906915c31370b3487bdcef92aa4
[ "Apache-2.0" ]
12
2021-07-13T12:33:36.000Z
2021-07-14T05:25:19.000Z
examples/prevent_initial_call.py
xinetzone/dash-book
1f624e87e2aa02c9931318918df969e44bdd2c07
[ "Apache-2.0" ]
null
null
null
from dash.dependencies import Input, Output from dash import html from datetime import datetime import time from app import app layout = html.Div( [ html.Button("execute callbacks", id="button_2"), html.Div(children="callback not executed", id="first_output_2"), html.Div(children="callback ...
32.717391
106
0.683721
50afce8f36ae05315e5b0d51f13d687b3d04ef71
392
py
Python
3_zufall/3_zufallsKreis.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
3_zufall/3_zufallsKreis.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
3_zufall/3_zufallsKreis.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
""" Ein Kreis zufälliger Grösse an zufälliger Position. """ newPage("A4") pageWidth = width() pageHeight = height() randomDiameter = random() * pageWidth randomX = random() * pageWidth randomY = random() * pageHeight oval(randomX, randomY, randomDiameter, randomDiameter) """ - Kannst du die Variablen randomX und ...
20.631579
106
0.732143
0fdcbffbc244e1b9699f332f841cae2a17832c24
934
py
Python
src/onegov/election_day/views/election/statistics.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/statistics.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/statistics.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import Election from onegov.core.security import Public from onegov.election_day import ElectionDayApp from onegov.election_day.layouts import ElectionLayout @ElectionDayApp.html( model=Election, name='statistics', template='election/statistics.pt', permission=Public ) def view_elec...
21.72093
56
0.671306
e8d0d5b450d4a10c240ca0a1d683d9e5e7eb0d25
1,360
py
Python
tests/test_03_teardown.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-12T09:49:53.000Z
2020-03-12T09:49:53.000Z
tests/test_03_teardown.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-25T00:47:12.000Z
2020-03-30T23:32:00.000Z
tests/test_03_teardown.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
5
2020-02-20T01:04:24.000Z
2020-05-05T14:36:30.000Z
############################################################### # pytest -v --capture=no tests/test_03_teardown.py ############################################################### # TODO: start this with cloud init, e.g, empty mongodb # TODO: assertuons need to be added import pytest from cloudmesh.common.Benchmark im...
28.333333
72
0.621324
e8d692ff17e8304e107bc23e137cbae8057a4dd8
442
py
Python
python_experiments/paper_figures/tkde/tkde_get_static_reads_time.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/tkde_get_static_reads_time.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/tkde_get_static_reads_time.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import json from paper_figures.tkde.data_legacy.static_data_loader import vldbj_reasd_tag, vldbj_readrq_tag, vldbj_probesim_tag def get_reads_probesim_ap_time_dict(tag, data_set_lst): if tag in [vldbj_reasd_tag, vldbj_readrq_tag, vldbj_probesim_tag]: with open('data_legacy/vldbj-comp.json') as ifs: ...
40.181818
115
0.757919
fa1f53451b22f9bf960d5dc679d9472293ee114d
2,670
py
Python
src/gvz/constants.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
7
2021-04-24T19:11:15.000Z
2021-10-30T12:59:16.000Z
src/gvz/constants.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
10
2021-04-25T10:25:12.000Z
2021-04-26T17:55:20.000Z
src/gvz/constants.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
null
null
null
""" German administrative divions """ # Bundesland STATE = 10 # Regierungsbezirk ADMINISTRATIVE_DISTRICT = 20 # Region REGION = 30 # Kreis CT_ABSTRACT = 40 # Kreisfreie Stadt CT_URBAN_MUNICIPALITY = 41 # Stadtkreis CT_METROPOLITAN_AREA = 42 # Kreis CT_COUNTY = 43 # Landkreis CT_RURAL_COUNTY = 44 # Regionalverband CT_CO...
28.404255
75
0.76367
fa3e35b35ad7d519957926e17bc59479394dd93c
882
py
Python
MetodoLehmer.py
Genesisj96Dev/Lehmer
073e9f5d2408068b7d1781cbaf1b6f29c139d2d2
[ "MIT" ]
1
2017-11-09T03:12:00.000Z
2017-11-09T03:12:00.000Z
MetodoLehmer.py
Genesisj96Dev/Lehmer
073e9f5d2408068b7d1781cbaf1b6f29c139d2d2
[ "MIT" ]
null
null
null
MetodoLehmer.py
Genesisj96Dev/Lehmer
073e9f5d2408068b7d1781cbaf1b6f29c139d2d2
[ "MIT" ]
null
null
null
#Numeros pseudoAleatorios por el metodo lehmer #Genesis Jesus Reyes Osnaya contador = 1 xo = int(input("Ingresa la semilla: ")) #Ingresamos la semilla c = int(input("Ingresa el numero c: ")) #Ingresamos el numero C numero = int(input("Ingresa la cantidad de numeros: ")) #Ingresamos la cantidad xoj = xo if(xo...
27.5625
80
0.60771
fa445a72bbdb9264aa9f9a928c772f2cc1acf9ea
1,980
py
Python
Packs/CommonScripts/Scripts/ShowLocationOnMap/ShowLocationOnMap_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
Packs/CommonScripts/Scripts/ShowLocationOnMap/ShowLocationOnMap_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
Packs/CommonScripts/Scripts/ShowLocationOnMap/ShowLocationOnMap_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
import pytest import sys import CommonServerPython import demistomock as demisto LOC_VALID = ['41.40338,2.17403', '41.40338,2.17403 ', ' 41.40338 , 2.17403 ', '32.0868197,34.7810571', '41.40338:2.17403'] @pytest.mark.parametrize('loc', LOC_VALID) def test_valid_loc(loc, mocker): """ Given:...
30
108
0.676768
d7284be14af322f1a5dcb9c9fc764c1ccef471d4
954
py
Python
main.py
booForest/Zipf
e9c05e42a80010704c5250ffc81af27d04b40192
[ "MIT" ]
null
null
null
main.py
booForest/Zipf
e9c05e42a80010704c5250ffc81af27d04b40192
[ "MIT" ]
null
null
null
main.py
booForest/Zipf
e9c05e42a80010704c5250ffc81af27d04b40192
[ "MIT" ]
null
null
null
with open('text.txt') as doc: t = doc.read() alph = 'a b c d e f g h i j k l m n o p q r s t u v w x y z ã õ á é í ó ú à â ê ü ç'.split() Alph = [str.upper(x) for x in alph] t2 = '' for c in t: #taking out uninteresting characters if c not in alph + Alph + [' '] + ['-']: t2 = t2 + ' ' ...
22.714286
92
0.476939
7ebd94dd61a5966496b438b63189f9f39a475a97
2,860
py
Python
01_Suchen/binaere_suche.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
01_Suchen/binaere_suche.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
01_Suchen/binaere_suche.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
""" Aufgabe 02: Binäre Suche a) Beschreibe in wenigen Sätzen, wie du in einem (großen) Speicher an sortierten Dingen ein bestimmtes Ding findest. Lösung: ... b) Schreibe eine Funktion, die den Algorithmus von a) für Zahlen in einer Liste erfüllt. Die Funtion soll zwei Argumente nehmen (Liste ...
27.238095
78
0.662937
7d2dcb61492690d66da463ea8d15d4946388b05b
4,821
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/plugins/lookup/test_conjur_variable.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/plugins/lookup/test_conjur_variable.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/plugins/lookup/test_conjur_variable.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # (c) 2018, Jason Vanderhoof <jason.vanderhoof@cyberark.com> # # This file is part of Ansible # # Ansible 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...
43.432432
115
0.685542
38077f9057832ef75cd8109cedaa7cae1c8c1fd3
4,446
py
Python
src/onegov/core/upgrades.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/upgrades.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/upgrades.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.core.orm import Base, find_models from onegov.core.orm.abstract import Associable from onegov.core.orm.types imp...
36.743802
79
0.617409
69884d0d4ef0ab8511a2a88c432c8e593dcefe87
5,323
py
Python
research/cv/STGAN/src/models/losses.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/STGAN/src/models/losses.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/STGAN/src/models/losses.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...
36.965278
83
0.64907
2a041f1fb5af3c9706277fb00f16724c54240f02
1,088
py
Python
mycroft_test.py
Domeee/mycroft
6575bc68a2a602c7110cbbb81af25ecae3072285
[ "MIT" ]
null
null
null
mycroft_test.py
Domeee/mycroft
6575bc68a2a602c7110cbbb81af25ecae3072285
[ "MIT" ]
null
null
null
mycroft_test.py
Domeee/mycroft
6575bc68a2a602c7110cbbb81af25ecae3072285
[ "MIT" ]
null
null
null
import mycroft import mycroft_config import unittest from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText class TestMycroft(unittest.TestCase): def test_get_random_summary(self): summary = mycroft._get_random_summary(mycroft_config.summaries_dir) self.assertIsNotNone...
31.085714
75
0.720588
2a07a2d3a1ccd0403ced6ed2ca41313ba2a88753
1,430
py
Python
main.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
main.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
main.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
import argparse import os import dotenv import pymysql from types import SimpleNamespace import command.seed import command.generate_flights import command.generate_queries from data.cache import Cache if __name__ == '__main__': parser = argparse.ArgumentParser(description="Airport database controller script") ...
28.6
90
0.711189
fad9790199d558c84f024cfd86e817264327a30e
5,266
py
Python
src/visuanalytics/analytics/apis/checkapi.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/apis/checkapi.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/apis/checkapi.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2021-04-19T06:50:53.000Z
2021-04-19T06:50:53.000Z
""" Modul welches eine Methode bereit stellt mit der eine API auf ihre Keys untersucht werden kann. """ import json import xmltodict import requests from visuanalytics.analytics.apis import api list_limit = 10 datatype_converter = { "int": "Zahl", "float": "Gleitkommazahl", "str": "Text", "bool": "Wahr...
36.569444
157
0.556779
87dab382bc6e8374b9c3f455aea095cd2283fdc4
6,241
py
Python
gameOfLife/gameOfLifev2.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
gameOfLife/gameOfLifev2.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
gameOfLife/gameOfLifev2.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
import math import logging from tkinter import Tk, Canvas from PIL import Image, ImageTk import time import random import json DEATH = "death" ALIVE = "alive" SEED = 0 auto = False size = (15, 15) window = Tk() window.title("Game of Life") canvasSize = (500, 500) canvas = Canvas(window, width=canvasSize[0], ...
27.253275
75
0.533889
ea96e3a22d2fbd65ea455a1e165e262d54cae484
2,414
py
Python
examples/build.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
17
2020-11-20T15:58:02.000Z
2022-02-06T19:18:20.000Z
examples/build.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
3
2021-02-17T13:47:44.000Z
2021-10-14T13:53:15.000Z
examples/build.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
6
2020-11-23T09:51:26.000Z
2022-02-11T13:46:57.000Z
import glob import os import shutil from universal_build import build_utils HERE = os.path.abspath(os.path.dirname(__file__)) REACT_WEBAPP_COMPONENT = "react-webapp" DOCS_COMPONENT = "docs" PYTHON_LIB_COMPONENT = "python-lib" DOCKER_COMPONENT = "docker" def main(args: dict) -> None: """Execute all component bu...
31.350649
103
0.628832
17e85cd997bf2be5116e171dd83990f5892df15d
161
py
Python
Object Oriented Programming/monopoly/spieler.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/monopoly/spieler.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/monopoly/spieler.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
class Spieler: def __init__(self, name, position, kontostand): self.name = name self.position = position self.kontostand = kontostand
32.2
51
0.652174
a4c319e1b40d0f836efdd3d8eef6bfaff603ce80
13,182
py
Python
conversion_batch/conversion_batch.py
jfmendez11/supervoices
c28a4fc8cf590e7736139ed1c3c9891fa138a6ae
[ "Apache-2.0" ]
null
null
null
conversion_batch/conversion_batch.py
jfmendez11/supervoices
c28a4fc8cf590e7736139ed1c3c9891fa138a6ae
[ "Apache-2.0" ]
1
2020-07-20T13:44:11.000Z
2020-07-20T13:44:11.000Z
conversion_batch/conversion_batch.py
jfmendez11/supervoices
c28a4fc8cf590e7736139ed1c3c9891fa138a6ae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import pymongo from bson.objectid import ObjectId import sys import boto3 import time import requests import dotenv import traceback from shutil import copyfile import sendgrid from pydub import AudioSegment def get_audio_file_for_conversion(url): ''' Method that requests th...
36.515235
360
0.59695
35327d02bfa59554667950d189102223ce728f68
583
py
Python
08-Aturan Variabel/app.py
dikyindrah/Flask
96f3f2b0db12b362d439d0c064dfa392ee14ad12
[ "MIT" ]
null
null
null
08-Aturan Variabel/app.py
dikyindrah/Flask
96f3f2b0db12b362d439d0c064dfa392ee14ad12
[ "MIT" ]
null
null
null
08-Aturan Variabel/app.py
dikyindrah/Flask
96f3f2b0db12b362d439d0c064dfa392ee14ad12
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) # Routing Dinamis (Dinamic Routing) dengan tipe data string @app.route('/profile/<username>') def profile(username): return 'kamu sedang berada pada halaman profile %s' %username # Routing Dinamis (Dinamic Routing) dengan tipe data integer @app.route('/blog/<int:post...
27.761905
65
0.723842
dc879b3a13f973556433aa2aab416da91f982de4
465
py
Python
backend/products/index.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
backend/products/index.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
backend/products/index.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
from algoliasearch_django import AlgoliaIndex from algoliasearch_django.decorators import register from products.models import Product @register(Product) class ProductIndex(AlgoliaIndex): # should_index = "is_expensive_item" fields = ["user", "title", "content", "price", "is_public"] tags = 'get_random_m...
27.352941
63
0.707527
520b0e369a2bf0c855ec0e5b36d5e467a83dfdd9
2,553
py
Python
python/RegisterAddressVisitor.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python/RegisterAddressVisitor.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python/RegisterAddressVisitor.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
""" @author: rhallmen @date: 19.06.2017 """ from antlr4 import * from sxlLexer import sxlLexer from sxlParser import sxlParser from sxlVisitor import sxlVisitor class RegisterAddressVisitor(sxlVisitor): """ Parse a sxl file and return an array of all found register addresses """ def __init__(self): ...
30.035294
79
0.632197
bfe726db2c0e41ca6b65f1972fe1df20ed13cd78
1,585
py
Python
py-td1/ex2.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
py-td1/ex2.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
py-td1/ex2.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # GUILLEUS Hugues IATIC3 <hugues.guilleus@ens.uvsq.fr> import math def question(nb): "Affiche le numéro de la question" print(f"\n\033[01;34m==== QUESTION: {nb}\033[0m") def inputFloat(prompt): """ inputFloat retourne un flotant saisit par l'utilisteur. La saisit ...
19.329268
76
0.657413
0d64ff201885c9d86e35681fabcde5ee28d76b5b
6,065
py
Python
research/cv/CycleGAN/src/utils/reporter.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/CycleGAN/src/utils/reporter.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/CycleGAN/src/utils/reporter.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.270073
117
0.616983
0da86f52775132ca92915a0d6a166f9f7f690edb
3,738
bzl
Python
third_party/leiningen/lein_repo.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
1,168
2015-01-27T10:19:25.000Z
2018-10-30T15:07:11.000Z
third_party/leiningen/lein_repo.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
2,811
2015-01-29T16:19:04.000Z
2018-11-01T19:48:06.000Z
third_party/leiningen/lein_repo.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
165
2015-01-27T19:06:27.000Z
2018-10-30T17:31:10.000Z
def _lein_repository(repository_ctx): java = _check_jdk(repository_ctx) url = "https://raw.githubusercontent.com/technomancy/leiningen/%s/bin/lein" % (repository_ctx.attr.version,) repository_ctx.download( url = url, output = "home/lein.sh.in", sha256 = repository_ctx.attr.sha256, ...
34.293578
112
0.58748
df001c6f2a01c6f405a0d097701d5d239169c2fb
4,303
py
Python
test/test_npu/test_network_ops/test_masked_select.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_masked_select.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_masked_select.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # 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/lice...
38.765766
87
0.617941
3388984cc47ecb6680808c139beeac470c9c5289
2,128
py
Python
skil/workspaces.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
skil/workspaces.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
skil/workspaces.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import skil_client from skil_client.rest import ApiException as api_exception class WorkSpace: """WorkSpace Workspaces are a collection of features that enable different tasks such as conducting experiments, training models, and test different dataset transforms. Workspaces are distinct from Deploym...
32.242424
101
0.661184
899f1df9e2d197f4f60d8f9fa5e0f1fc3f824a18
1,137
py
Python
Packs/VMwareWorkspaceONEUEM/Integrations/VMwareWorkspaceONEUEM/test_data/input_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/VMwareWorkspaceONEUEM/Integrations/VMwareWorkspaceONEUEM/test_data/input_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/VMwareWorkspaceONEUEM/Integrations/VMwareWorkspaceONEUEM/test_data/input_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
exception_handler_params = [ (404, "The resource cannot be found."), (407, "Proxy Error - cannot connect to proxy. Either try clearing the 'Use system proxy' check-box or" "check the host, authentication details and connection details for the proxy."), (500, "The server encountered an internal err...
42.111111
109
0.627089
f6d0821356f488e5a4a0f0a9f81bd7e41a0ebc77
311
py
Python
django_project/apps/news/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
django_project/apps/news/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
django_project/apps/news/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.urls import path from . import views app_name = 'news' urlpatterns = [ path('',views.index,name='index'), path('news_list/',views.news_list,name='news_list'), path('<int:news_id>/',views.news_detail,name='news_detail'), path('pub_comment/',views.pub_comment,name='pub_comment'), ]
25.916667
64
0.694534
1216b05385c5ab0d0b0072a83eda563fbe257b95
401
py
Python
PINp/2015/TITOV_I_V/task_1_20.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/TITOV_I_V/task_1_20.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/TITOV_I_V/task_1_20.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 20. # Напишите программу, которая будет сообщать род деятельности и псевдоним под #которым скрывается Михаил Ефимович Фрилянд. После вывода информации программа #должна дожидаться пока пользователь нажмет Enter для выхода. # Titov I. V. # 02.06.2016 print ("Михаил Ефимович Фрилянд, более известны...
36.454545
88
0.785536
c392b606f29171f1ba0e8b44a9505d8c0f934051
2,863
py
Python
BCACTF/2021/crypto/FNES_2/fnes2.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
BCACTF/2021/crypto/FNES_2/fnes2.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
BCACTF/2021/crypto/FNES_2/fnes2.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random import math import time import binascii import secrets from Crypto.Cipher import AES from Crypto.Hash import SHA from Crypto.Util.Padding import pad, unpad with open("flag.txt", "r") as f: flag = f.read().strip().encode("ascii") with open("key.txt", "r") as f: key = int(...
37.181818
117
0.583654
61b4656373d65177891b19eb9d1075bb9dd1c5c7
3,177
py
Python
test/test_npu/test_network_ops/test_matmul_by_bmm_v2.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_matmul_by_bmm_v2.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_matmul_by_bmm_v2.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.932432
105
0.664778