hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
631273e5c0c4cb70ebc0fef77057e89e9ffce526
844
py
Python
Lintcode/Ladder_11_15_A/209. First Unique Character in a String.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/Ladder_11_15_A/209. First Unique Character in a String.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/Ladder_11_15_A/209. First Unique Character in a String.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
class Solution: """ @param str: str: the given string @return: char: the first unique character in a given string """ def firstUniqChar(self, str): counter = {} for c in str: counter[c] = counter.get(c, 0) + 1 for c in str: if counter[c] == 1: ...
22.810811
63
0.479858
359fb4588a81da23d3102b4731186fe0a3dd8efa
10,699
py
Python
ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
44.394191
324
0.635013
83b4294479bb03fa58fea8bbff50705d931b3816
7,292
py
Python
jabs/ilf/gen_numbers.py
hertogp/jabs
ed419caa448075dcf327d2af561952a385115228
[ "MIT" ]
1
2021-05-14T03:17:48.000Z
2021-05-14T03:17:48.000Z
jabs/ilf/gen_numbers.py
hertogp/jabs
ed419caa448075dcf327d2af561952a385115228
[ "MIT" ]
null
null
null
jabs/ilf/gen_numbers.py
hertogp/jabs
ed419caa448075dcf327d2af561952a385115228
[ "MIT" ]
1
2017-10-31T02:04:52.000Z
2017-10-31T02:04:52.000Z
#!/usr/bin/env python3 ''' Helper script: - reads IANA IPv4 proto numbers & services - writes numbers.py ''' import sys import argparse import logging import pandas as pd import numpy as np __version__ = '0.1' log = logging.getLogger(__name__) log.setLevel(logging.WARNING) URL_BASE = 'https://www.iana.org/assignm...
35.227053
96
0.603264
c8f7db74bdd3a7223446f2777623f449887d031b
2,981
py
Python
tests/sub_test.py
admire93/linky
8cbe326ece49d9811dca4b298fb4b141717c538b
[ "MIT" ]
null
null
null
tests/sub_test.py
admire93/linky
8cbe326ece49d9811dca4b298fb4b141717c538b
[ "MIT" ]
null
null
null
tests/sub_test.py
admire93/linky
8cbe326ece49d9811dca4b298fb4b141717c538b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from linkfy.sub import linky, url_schema def fullmatch(pattern, s): m = pattern.match(s) return m and m.group() == s def test_url_scheme_more(): # test case in https://mathiasbynens.be/demo/url-regex correct = [ u'http://foo.com/blah_blah', u'http://foo.com/bl...
31.712766
66
0.511238
fb1767661437f9a5fe743f8804c45bd49cc6f0f9
7,180
py
Python
vendor/github.com/elastic/beats/heartbeat/tests/system/test_monitor.py
lstyles/nsgflowlogsbeat
06aa15a7eaaf24cf70dd2520ed7d2186f4135c09
[ "Apache-2.0" ]
1
2021-05-17T01:31:15.000Z
2021-05-17T01:31:15.000Z
vendor/github.com/elastic/beats/heartbeat/tests/system/test_monitor.py
lstyles/nsgflowlogsbeat
06aa15a7eaaf24cf70dd2520ed7d2186f4135c09
[ "Apache-2.0" ]
null
null
null
vendor/github.com/elastic/beats/heartbeat/tests/system/test_monitor.py
lstyles/nsgflowlogsbeat
06aa15a7eaaf24cf70dd2520ed7d2186f4135c09
[ "Apache-2.0" ]
null
null
null
from heartbeat import BaseTest from parameterized import parameterized import os from nose.plugins.skip import SkipTest import nose.tools class Test(BaseTest): @parameterized.expand([ "200", "404" ]) def test_http(self, status_code): """ Test http server """...
32.053571
92
0.493454
99cdc8203e658d81b2baec41b3352995d6ea75ee
4,661
py
Python
packages/python/plotly/plotly/graph_objs/barpolar/_legendgrouptitle.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/barpolar/_legendgrouptitle.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/barpolar/_legendgrouptitle.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.legendgrouptitle" _valid_props = {"font", "text"} ...
30.070968
84
0.524995
48b65d46719d5a9c5a8ecbc957cd4feca91a8cc9
3,895
py
Python
setup.py
fakecoinbase/4emslashhummingbot1
74b0ef943770ad141382a3a1851f55998facdac0
[ "Apache-2.0" ]
null
null
null
setup.py
fakecoinbase/4emslashhummingbot1
74b0ef943770ad141382a3a1851f55998facdac0
[ "Apache-2.0" ]
null
null
null
setup.py
fakecoinbase/4emslashhummingbot1
74b0ef943770ad141382a3a1851f55998facdac0
[ "Apache-2.0" ]
1
2020-05-15T03:37:03.000Z
2020-05-15T03:37:03.000Z
#!/usr/bin/env python from setuptools import setup from Cython.Build import cythonize import numpy as np import os import subprocess import sys is_posix = (os.name == "posix") if is_posix: os_name = subprocess.check_output("uname").decode("utf8") if "Darwin" in os_name: os.environ["CFLAGS"] = "-stdli...
25.966667
74
0.534018
5c7d5592a39c3ad78d862c43322edf7aae811b6a
11,302
py
Python
sdk/tests/utilities/test_api_client_builder.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
6
2018-06-19T15:50:17.000Z
2022-03-26T22:53:16.000Z
sdk/tests/utilities/test_api_client_builder.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
98
2020-04-15T06:05:43.000Z
2022-03-01T10:25:25.000Z
sdk/tests/utilities/test_api_client_builder.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
9
2019-09-30T11:19:25.000Z
2021-11-17T19:49:59.000Z
import unittest from unittest.mock import patch from parameterized import parameterized from lusid import ApiClient from lusid.utilities import ApiClientBuilder, ApiConfiguration from lusid.utilities.proxy_config import ProxyConfig from utilities import CredentialsSource from utilities.temp_file_manager import TempFi...
42.329588
123
0.650858
853fb0d479a4c9a19636aa58f590316a6a93832e
3,427
py
Python
homeassistant/components/ios/notify.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
5
2018-10-23T14:15:05.000Z
2021-11-26T06:38:44.000Z
homeassistant/components/ios/notify.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/ios/notify.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Support for iOS push notifications.""" import logging import requests from homeassistant.components import ios from homeassistant.components.notify import ( ATTR_DATA, ATTR_MESSAGE, ATTR_TARGET, ATTR_TITLE, ATTR_TITLE_DEFAULT, BaseNotificationService, ) from homeassistant.const import HTTP_...
31.440367
86
0.625912
08404fc566bec02d00aeb90b2415d16a163846d5
1,807
py
Python
tests/test_js_jstypes.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
tests/test_js_jstypes.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
tests/test_js_jstypes.py
andymckay/amo-validator
d13e3644eb657e56666ee40d91a9c67382cfa725
[ "BSD-3-Clause" ]
null
null
null
import validator.testcases.javascript.jstypes as jstypes from js_helper import _do_test_raw def test_jsarray_output(): """Test that the output function for JSArray doesn't bork.""" ja = jstypes.JSArray() ja.elements = [None, None] ja.output() # Used to throw tracebacks. ja.get_literal_value() #...
24.418919
77
0.645822
3f5806cba0e24d96ced6822b3e8a8e8facfae643
20,003
py
Python
chia/full_node/coin_store.py
ForestCrazy/chia-blockchain-remote-plot
0ba838b7a8ea2b5410d438ac70295df699a30dae
[ "Apache-2.0" ]
2
2021-07-10T12:51:05.000Z
2021-07-26T04:33:31.000Z
chia/full_node/coin_store.py
ForestCrazy/chia-blockchain-remote-plot
0ba838b7a8ea2b5410d438ac70295df699a30dae
[ "Apache-2.0" ]
33
2021-09-28T10:17:59.000Z
2022-03-29T10:13:18.000Z
chia/full_node/coin_store.py
ForestCrazy/chia-blockchain-remote-plot
0ba838b7a8ea2b5410d438ac70295df699a30dae
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Set, Dict, Any, Tuple import aiosqlite from chia.protocols.wallet_protocol import CoinState from chia.types.blockchain_format.coin import Coin from chia.types.blockchain_format.sized_bytes import bytes32 from chia.types.coin_record import CoinRecord from chia.util.db_wrapper import DB...
39.068359
118
0.572414
faa941dbccf86aa7e031dbc940e6a43f87f482d0
412
py
Python
src/api/apps.py
mp5maker/djangoblog
bc23ea0bc6975673d0fc374f10bfd61cae7255fb
[ "MIT" ]
null
null
null
src/api/apps.py
mp5maker/djangoblog
bc23ea0bc6975673d0fc374f10bfd61cae7255fb
[ "MIT" ]
null
null
null
src/api/apps.py
mp5maker/djangoblog
bc23ea0bc6975673d0fc374f10bfd61cae7255fb
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ApiConfig(AppConfig): name = 'api' def ready(self): # Only importing this would work with decorator method from .signals import print_post, print_post_alternative # For the non-decorator method from django.db.models.signals import po...
29.428571
63
0.691748
65a70302b1d609f5738eea3c34aec7402425bd50
4,677
py
Python
src/MediaPlayer/Torrents/DHT/Socket.py
JKorf/MediaPi
4b21bb9cfa692534d0098ad947dd99beb7b0c1ed
[ "MIT" ]
2
2018-02-26T15:57:04.000Z
2019-03-11T15:21:38.000Z
src/MediaPlayer/Torrents/DHT/Socket.py
JKorf/MediaPi
4b21bb9cfa692534d0098ad947dd99beb7b0c1ed
[ "MIT" ]
1
2018-07-25T16:36:11.000Z
2018-07-25T16:36:11.000Z
src/MediaPlayer/Torrents/DHT/Socket.py
JKorf/MediaPi
4b21bb9cfa692534d0098ad947dd99beb7b0c1ed
[ "MIT" ]
null
null
null
import time from socket import socket, AF_INET, SOCK_DGRAM from MediaPlayer.Torrents.DHT.Messages import NodeMessage, BaseDHTMessage, QueryMessage, ErrorDHTMessage, QueryDHTMessage, ResponseDHTMessage from Shared.Logger import Logger, LogVerbosity from Shared.Threading import CustomThread from Shared.Util import curre...
41.758929
141
0.60851
e6a2d030f735e80e478dc3b953769f38ead84814
1,105
py
Python
social/app/unit_tests/common_tests.py
milesbelli/social-event-store
5272b81dbb7cc926cee6732c90025fe2758d0e32
[ "MIT" ]
null
null
null
social/app/unit_tests/common_tests.py
milesbelli/social-event-store
5272b81dbb7cc926cee6732c90025fe2758d0e32
[ "MIT" ]
32
2020-08-01T03:30:17.000Z
2022-02-26T19:38:54.000Z
social/app/unit_tests/common_tests.py
milesbelli/social-event-store
5272b81dbb7cc926cee6732c90025fe2758d0e32
[ "MIT" ]
null
null
null
import unittest import common as c import datetime as dt class MyTestCase(unittest.TestCase): def test_fitbit_eventobj_init(self): tstmp = dt.datetime.now() strt = dt.datetime(2012, 1, 1, 18, 30, 49) end = dt.datetime(2012, 1, 2, 6, 50, 49) myobj = c.eventObject(tstmp.date(), dt.ti...
36.833333
129
0.645249
bd36ec25a1dde7c85d77946040f56ebf3104d7f6
2,050
py
Python
bfs/surround-regions.py
windowssocket/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T02:29:40.000Z
2020-02-05T03:28:16.000Z
bfs/surround-regions.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
1
2019-03-08T13:22:32.000Z
2019-03-08T13:22:32.000Z
bfs/surround-regions.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T11:50:24.000Z
2018-11-27T12:31:01.000Z
import queue class Solution(object): def solve(self, board): """ :type board: List[List[str]] :rtype: void Do not return anything, modify board in-place instead. """ if not board or len(board) == 0: return h = len(board) w = len(board[0]) ...
31.538462
90
0.417073
287d4fa29028ef777540d8714d94446d6c0804ae
3,154
py
Python
tasking/task.py
jmskinner/pii_firewall
a9079bd431151c3228f1195993b44443b8ac2f02
[ "MIT" ]
null
null
null
tasking/task.py
jmskinner/pii_firewall
a9079bd431151c3228f1195993b44443b8ac2f02
[ "MIT" ]
null
null
null
tasking/task.py
jmskinner/pii_firewall
a9079bd431151c3228f1195993b44443b8ac2f02
[ "MIT" ]
null
null
null
from datetime import datetime class Task(): def __init__(self,domain,task_type,in_endpoint,out_endpoint,profile_endpoint,task_config): self.task_type = task_type self.data = None self.config = task_config self.profile = {} self.in_endpoint = in_endpoint self.out_end...
30.921569
94
0.557387
597612dd63dcca6e0722b2605c76c19186dd4f59
16,111
py
Python
PYTHON/ReadNetCDF.py
Kate-Willett/Climate_Explorer
d49e65a6caa9beb1a859e16d3827022442bad324
[ "CC0-1.0" ]
null
null
null
PYTHON/ReadNetCDF.py
Kate-Willett/Climate_Explorer
d49e65a6caa9beb1a859e16d3827022442bad324
[ "CC0-1.0" ]
null
null
null
PYTHON/ReadNetCDF.py
Kate-Willett/Climate_Explorer
d49e65a6caa9beb1a859e16d3827022442bad324
[ "CC0-1.0" ]
1
2021-06-29T12:05:46.000Z
2021-06-29T12:05:46.000Z
#!/usr/local/sci/bin/python # PYTHON3 # # Author: Kate Willett # Created: 16 October 2015 # Last update: 10 April 2019 # Location: /data/local/hadkw/HADCRUH2/UPDATE2014/PROGS/PYTHON/ # GitHub: https://github.com/Kate-Willett/Climate_Explorer/tree/master/PYTHON/ # ----------------------- # CODE PURPOSE AND OUTPUT # --...
38.635492
135
0.618522
f33b3f65b714ed8c00ab4f51c4a14e5627b79afd
59,631
py
Python
sklearn/cluster/k_means_.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
1
2021-11-26T12:22:13.000Z
2021-11-26T12:22:13.000Z
sklearn/cluster/k_means_.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
null
null
null
sklearn/cluster/k_means_.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
null
null
null
"""K-means clustering""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.prettenh...
38.596117
81
0.631953
140265869850aab6d5780ac4bb428d882b18fdf1
1,773
py
Python
resources/library/pycontrol/src/soccer_pycontrol/plotter.py
utra-robosoccer/Bez_IsaacGym
10d6fae08949d9c131fa1d3c08d6fd257ec22869
[ "BSD-3-Clause" ]
56
2016-12-25T22:29:00.000Z
2022-01-06T04:42:00.000Z
soccer_pycontrol/src/soccer_pycontrol/plotter.py
utra-robosoccer/soccerbot
f5e95b00356e42cdd143ab26f67f23c9cd8afd5a
[ "BSD-3-Clause" ]
244
2021-04-05T03:22:25.000Z
2022-03-31T16:47:36.000Z
soccer_pycontrol/src/soccer_pycontrol/plotter.py
sadmanca/soccerbot
5e60eacb51ff1b063ae8c1caf7eb01053add43eb
[ "BSD-3-Clause" ]
7
2017-01-24T23:38:07.000Z
2022-01-19T16:58:08.000Z
import multiprocessing as mp import time import matplotlib.pyplot as plt import numpy as np # Sample code from: # https://matplotlib.org/3.3.3/gallery/misc/multiprocess_sgskip.html#sphx-glr-gallery-misc-multiprocess-sgskip-py class ProcessPlotter: def __init__(self): self.x = [] self.y = [] ...
24.625
113
0.568528
0857d0a70d0b47f5dbb69ba19bf2fc6d3a4c9122
391
py
Python
pmedapp/asgi.py
ibadkureshi/tnk-locationallocation
b06abcb7bf8675b13e4c2e4fe419afb5ee11018f
[ "MIT" ]
1
2021-02-07T10:37:52.000Z
2021-02-07T10:37:52.000Z
pmedapp/asgi.py
panosprotopapas/tnk-locationallocation
b06abcb7bf8675b13e4c2e4fe419afb5ee11018f
[ "MIT" ]
null
null
null
pmedapp/asgi.py
panosprotopapas/tnk-locationallocation
b06abcb7bf8675b13e4c2e4fe419afb5ee11018f
[ "MIT" ]
2
2020-10-23T13:14:53.000Z
2020-11-13T12:01:44.000Z
""" ASGI config for pmedapp project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
2ff066a6c5fab469ea1202e0bcd88cd1c9698e4f
311
py
Python
code/tags.py
isleofmull/knausj_talon
0608869ae6a2cfd5f4fb505a477e755ab69294a1
[ "Unlicense" ]
null
null
null
code/tags.py
isleofmull/knausj_talon
0608869ae6a2cfd5f4fb505a477e755ab69294a1
[ "Unlicense" ]
null
null
null
code/tags.py
isleofmull/knausj_talon
0608869ae6a2cfd5f4fb505a477e755ab69294a1
[ "Unlicense" ]
null
null
null
from talon import Context, Module mod = Module() tagList = ["firefox", "gdb", "tmux", "tabs"] modes = { "gdb": "a way to force gdb commands to be loaded", } for entry in tagList: mod.tag(entry, f"tag to load {entry} and/or related plugins ") for key, value in modes.items(): mod.mode(key, value)
22.214286
66
0.649518
22bd44bf4e92e459c1d15f2e0e3e0789435a3c69
3,878
py
Python
misc/enum_type_perfect_hash.py
bqqbarbhg/ufbx
b67f34ecd5579fe002b7bd5e36b7ca8ba12e72ea
[ "Unlicense" ]
128
2020-10-25T14:20:23.000Z
2022-03-30T22:16:29.000Z
misc/enum_type_perfect_hash.py
bqqbarbhg/ufbx
b67f34ecd5579fe002b7bd5e36b7ca8ba12e72ea
[ "Unlicense" ]
33
2019-06-11T10:23:51.000Z
2022-03-31T19:56:22.000Z
misc/enum_type_perfect_hash.py
bqqbarbhg/ufbx
b67f34ecd5579fe002b7bd5e36b7ca8ba12e72ea
[ "Unlicense" ]
7
2020-05-25T08:12:28.000Z
2022-03-22T10:23:56.000Z
from collections import namedtuple NameEnum = namedtuple("NameEnum", "name hash enum") def str_hash(s): h = 0x811c9dc5 for c in s: h = ((h ^ ord(c)) * 0x01000193) & 0xffffffff if h == 0: h = 1 return h def nameEnum(name, enum): return NameEnum(name, str_hash(name), enum) prop_types = [ ...
30.296875
143
0.591542
da1365fbcdc8d71f1b601c6dd6696041b63f8f96
26,455
py
Python
lib/stores/mysql_datastore_adapter.py
vermavis/cbtool
c3ddf66a5928035f7deec780af23eea54a6b68b7
[ "Apache-2.0" ]
null
null
null
lib/stores/mysql_datastore_adapter.py
vermavis/cbtool
c3ddf66a5928035f7deec780af23eea54a6b68b7
[ "Apache-2.0" ]
null
null
null
lib/stores/mysql_datastore_adapter.py
vermavis/cbtool
c3ddf66a5928035f7deec780af23eea54a6b68b7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #/******************************************************************************* # Copyright (c) 2020 DigitalOcean, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License a...
41.595912
162
0.516273
870e9a6ff6db8fcf94bfec69892ce369d26df9e5
505
py
Python
examples/untitled0.py
Pradyumn-Patil/Gender-input-verification-
c2668d31f0c3b1d1e219eab5b09b7b45f0e5441e
[ "MIT" ]
1
2021-11-22T20:22:26.000Z
2021-11-22T20:22:26.000Z
examples/untitled0.py
Pradyumn-Patil/Gender-input-verification-
c2668d31f0c3b1d1e219eab5b09b7b45f0e5441e
[ "MIT" ]
null
null
null
examples/untitled0.py
Pradyumn-Patil/Gender-input-verification-
c2668d31f0c3b1d1e219eab5b09b7b45f0e5441e
[ "MIT" ]
null
null
null
import pandas as pd import glob # All files ending with .txt with depth of 2 folder data = glob.glob(r"data/*/*.*") print(data) ini_string = 'data\1008\DEN21501433_P.jpg' sstring_end = ini_string[7:] sstring_strt = sstring_end[:11] print(sstring_strt) df = pd.DataFrame(data, columns= ['file_name']) df['file'] =...
21.956522
52
0.673267
a4b7adfdb8624f316ee5e0ef616a7b2a056cd07e
148
py
Python
polls/admin.py
nickmwangemi/polls
a31221d87251ce337c2b78c2678943d9f840e0ca
[ "MIT" ]
null
null
null
polls/admin.py
nickmwangemi/polls
a31221d87251ce337c2b78c2678943d9f840e0ca
[ "MIT" ]
null
null
null
polls/admin.py
nickmwangemi/polls
a31221d87251ce337c2b78c2678943d9f840e0ca
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Question from .models import Choice admin.site.register(Question) admin.site.register(Choice)
21.142857
32
0.824324
7148433121456306884b789637c7a102e08379a0
9,853
py
Python
third_party/blink/tools/blinkpy/common/system/executive_unittest.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
third_party/blink/tools/blinkpy/common/system/executive_unittest.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
third_party/blink/tools/blinkpy/common/system/executive_unittest.py
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
# Copyright (C) 2010 Google Inc. All rights reserved. # Copyright (C) 2009 Daniel Bates (dbates@intudata.com). All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source co...
40.883817
113
0.650665
3405c87030f58cbc3a3b2db0a1ebe2385902ba6d
2,034
py
Python
run/logging-manual/main.py
maciekgawron/python-docs-samples
3fa7bb1f97f1db55423ff9f98a53d6d3d1e9b281
[ "Apache-2.0" ]
1
2021-09-03T14:48:52.000Z
2021-09-03T14:48:52.000Z
run/logging-manual/main.py
maciekgawron/python-docs-samples
3fa7bb1f97f1db55423ff9f98a53d6d3d1e9b281
[ "Apache-2.0" ]
null
null
null
run/logging-manual/main.py
maciekgawron/python-docs-samples
3fa7bb1f97f1db55423ff9f98a53d6d3d1e9b281
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.78125
77
0.685349
42267565e96449d6cdfcc9b646c00d55f06f9712
516
py
Python
이재호/day2/practice4.py
edangros/SDDataExpertProgram2021
67b44365233994a41449497c34ebf7badaf82d92
[ "CC-BY-4.0" ]
null
null
null
이재호/day2/practice4.py
edangros/SDDataExpertProgram2021
67b44365233994a41449497c34ebf7badaf82d92
[ "CC-BY-4.0" ]
null
null
null
이재호/day2/practice4.py
edangros/SDDataExpertProgram2021
67b44365233994a41449497c34ebf7badaf82d92
[ "CC-BY-4.0" ]
null
null
null
#practice 4 #googoodan #print the first line for n in range(1,10): ''' #을 왼쪽정렬, 3칸 n단 글씨는 2칸(한글이 2칸 자리를 먹으므로 결과적으로 3칸) #을 오른쪽정렬, 3칸 ''' print ("%-3s%-2s%3s"%("#",str(n)+"단","#"), end=" ") #insert line print("") #print the rest lines for n1 in range(1,10):#row for n2 in range(1,10):#col...
18.428571
56
0.46124
0601a052f3d875ed9c3c859401edc070b3b2345f
362
py
Python
openprocurement/auction/interfaces.py
OrysiaDrabych/openprocurement.auction
d68b4aca7313dd4c7c13bd22c772a32a1b70d79f
[ "Apache-2.0" ]
23
2015-07-09T17:07:39.000Z
2020-11-14T11:23:39.000Z
openprocurement/auction/interfaces.py
OrysiaDrabych/openprocurement.auction
d68b4aca7313dd4c7c13bd22c772a32a1b70d79f
[ "Apache-2.0" ]
23
2015-01-14T22:33:58.000Z
2018-02-08T16:31:20.000Z
openprocurement/auction/interfaces.py
OrysiaDrabych/openprocurement.auction
d68b4aca7313dd4c7c13bd22c772a32a1b70d79f
[ "Apache-2.0" ]
27
2015-02-17T10:22:32.000Z
2021-06-08T06:50:45.000Z
from zope.interface import Interface class IComponents(Interface): """""" class IAuctionDatabridge(Interface): """""" class IFeedItem(Interface): """""" class IAuctionsManager(Interface): """""" class IAuctionType(Interface): """""" class IAuctionsChronograph(Interface): """""" cla...
12.066667
38
0.638122
185255439cc264358ba3d562dfd9f136f870779a
14,908
py
Python
python/paddle/fluid/tests/unittests/test_lstm_op.py
xxworkspace/Paddle
1f6f2235e0751248ee1a684667023b78834f9d1f
[ "Apache-2.0" ]
3
2017-05-11T11:10:13.000Z
2017-10-23T09:13:14.000Z
python/paddle/fluid/tests/unittests/test_lstm_op.py
betterpig/paddle_npu
74ad4b6a700795d5edce8dd49d6c2df6f15e8935
[ "Apache-2.0" ]
9
2021-08-03T11:39:03.000Z
2021-09-16T08:03:58.000Z
python/paddle/fluid/tests/unittests/test_lstm_op.py
betterpig/paddle_npu
74ad4b6a700795d5edce8dd49d6c2df6f15e8935
[ "Apache-2.0" ]
2
2021-02-19T06:42:29.000Z
2021-02-26T12:16:05.000Z
# Copyright (c) 2018 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 app...
33.728507
81
0.544272
d0ce8dcff95aacb3803028726aa92221dd89f9fa
5,856
py
Python
airflow/contrib/operators/bigquery_check_operator.py
eepstein/airflow
dee7e67aa59537b66660f227fa3ff4c2af9d7808
[ "Apache-2.0" ]
1
2020-06-16T17:26:28.000Z
2020-06-16T17:26:28.000Z
airflow/contrib/operators/bigquery_check_operator.py
sonal-raj/airflow
c63ddccf8de2b702d796dc5ccaf398c8062295f6
[ "Apache-2.0" ]
1
2019-04-18T09:48:17.000Z
2019-04-18T09:48:17.000Z
airflow/contrib/operators/bigquery_check_operator.py
peking1987/airflow
a71d4b861302db6101a399db9ef562d716f3c26e
[ "Apache-2.0" ]
1
2020-01-17T00:46:50.000Z
2020-01-17T00:46:50.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
38.025974
77
0.683402
a9e1065ee04948b0c0588627353d939922b3e261
4,706
py
Python
infoblox_netmri/api/remote/models/switch_port_fwd_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/switch_port_fwd_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/switch_port_fwd_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class SwitchPortFwdRemote(RemoteModel): """ The switch forwarding table entries per device, per switch port. | ``SwitchPortFwdID:`` The internal NetMRI identifier for this switch port forwarding entry. ...
33.856115
206
0.621972
4fac9bf9cbea091ff196118876cb35444d6dfc84
8,890
py
Python
vqa/models/att.py
crockwell/sg2im
662fd6b802d12258f7f7586dfb91920e82f2f7a5
[ "Apache-2.0" ]
null
null
null
vqa/models/att.py
crockwell/sg2im
662fd6b802d12258f7f7586dfb91920e82f2f7a5
[ "Apache-2.0" ]
null
null
null
vqa/models/att.py
crockwell/sg2im
662fd6b802d12258f7f7586dfb91920e82f2f7a5
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import copy from vqa.lib import utils from vqa.models import seq2vec from vqa.models import fusion class AbstractAtt(nn.Module): def __init__(self, opt={}, vocab_words=[], vocab_answers=[]): super(AbstractAtt, self).__init__() se...
39.6875
80
0.532958
260fa5e94fcaac1cbd5e920be1efd810376d27f5
5,883
py
Python
scripts/genseq.py
fxkuehl/keyboard
52377899263409e3ca3aa230303a3cbd4656045e
[ "MIT" ]
null
null
null
scripts/genseq.py
fxkuehl/keyboard
52377899263409e3ca3aa230303a3cbd4656045e
[ "MIT" ]
null
null
null
scripts/genseq.py
fxkuehl/keyboard
52377899263409e3ca3aa230303a3cbd4656045e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys # Keys are numbered 0-31. Even numbers are left hand, odd numbers are # right hand, arranged such that for every left hand key x, the right # hand mirror image is x+1. # # 8 | 6 | 4 | 2 0 || 1 3 | 5 | 7 | 9 | 0 # 20 18 | 16 | 14 | 12 10 || 11 13 | 15 | ...
29.862944
77
0.505864
f4d7668383a62724aec1239d97881797f7aa77b1
5,314
py
Python
io.py
MartinPetersenDev/mqtt_io
10225fe106b26f2276fafb9ad22f59d3ddeb34ac
[ "MIT" ]
null
null
null
io.py
MartinPetersenDev/mqtt_io
10225fe106b26f2276fafb9ad22f59d3ddeb34ac
[ "MIT" ]
null
null
null
io.py
MartinPetersenDev/mqtt_io
10225fe106b26f2276fafb9ad22f59d3ddeb34ac
[ "MIT" ]
null
null
null
from machine import Pin, ADC, SPI import uasyncio as asyncio class Output: def __init__(self, pin, time_ms): self._raw_output = Pin(pin, Pin.OUT) self._output_flag = 0 self._time_ms = time_ms loop = asyncio.get_event_loop() loop.create_task(self.run()) def ...
30.895349
107
0.551562
502172048cfdc55cdc6e25b0d396c62fa92539ed
1,486
py
Python
release/scripts/addons/add_mesh_BoltFactory/__init__.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-01-18T22:13:24.000Z
2020-01-18T22:13:24.000Z
release/scripts/addons/add_mesh_BoltFactory/__init__.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/add_mesh_BoltFactory/__init__.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
25.62069
74
0.671602
8b9f6af822045d5bdff16bf1e19506327a7804c6
262
py
Python
__init__.py
jckett/CriticalityMaps
94a965ba86a86b80c08c632bc2647cf34b32eafe
[ "MIT" ]
6
2019-11-21T20:53:07.000Z
2020-10-28T07:19:46.000Z
__init__.py
jckett/CriticalityMaps
94a965ba86a86b80c08c632bc2647cf34b32eafe
[ "MIT" ]
3
2020-02-28T22:19:17.000Z
2021-04-08T21:43:00.000Z
__init__.py
jckett/CriticalityMaps
94a965ba86a86b80c08c632bc2647cf34b32eafe
[ "MIT" ]
3
2020-01-21T17:29:02.000Z
2021-04-08T16:02:59.000Z
from criticalityMaps.mapping import inp_to_geojson, make_criticality_map, wn_dataframe from criticalityMaps.criticality import fire_criticality_analysis, pipe_criticality_analysis, segment_criticality_analysis, process_criticality, runner __version__ = '0.1.0'
52.4
151
0.881679
5617daaa08c53739da72a72142598e35ca859b60
13,646
py
Python
karafuru.py
Ennea/karafuru
131dfece98a0bfb4d3795bf8357c2648768dbd9e
[ "MIT" ]
1
2021-07-27T19:43:13.000Z
2021-07-27T19:43:13.000Z
karafuru.py
Ennea/karafuru
131dfece98a0bfb4d3795bf8357c2648768dbd9e
[ "MIT" ]
null
null
null
karafuru.py
Ennea/karafuru
131dfece98a0bfb4d3795bf8357c2648768dbd9e
[ "MIT" ]
null
null
null
import ctypes from functools import partial import math import os import re import sys import tkinter as tk from tkinter import ttk from lch import lch_to_srgb, srgb_to_lch from PIL import Image, ImageTk, ImageGrab class Karafuru(tk.Frame): _variables = {} _int_regex = re.compile(r'^$|^\d+$') _float_rege...
37.489011
156
0.617544
5035811fb6be8367e91ea5927fae9b1c8bce9eb5
3,712
py
Python
util/logUtil.py
tianlangbsg/stockHacker
9b8929523aa488ee7bb51ee80a3b4738f0092d47
[ "Apache-2.0" ]
1
2021-12-08T09:10:32.000Z
2021-12-08T09:10:32.000Z
util/logUtil.py
tianlangbsg/stockHacker
9b8929523aa488ee7bb51ee80a3b4738f0092d47
[ "Apache-2.0" ]
null
null
null
util/logUtil.py
tianlangbsg/stockHacker
9b8929523aa488ee7bb51ee80a3b4738f0092d47
[ "Apache-2.0" ]
null
null
null
import logging.config import os from datetime import datetime from util.commonUtil import get_root_path DEBUG = True log_level = logging.DEBUG if DEBUG else logging.INFO # log config here root_path = get_root_path() log_path = os.path.join(root_path, 'logs') if not os.path.exists(log_path): os.makedirs(log_path)...
29
105
0.515086
07f16afc2810b9bbcf0ad917da5162d8e2a0c46e
5,401
py
Python
venv1/Lib/site-packages/tensorflow/python/training/momentum.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
venv1/Lib/site-packages/tensorflow/python/training/momentum.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
venv1/Lib/site-packages/tensorflow/python/training/momentum.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
41.868217
81
0.696538
ad4dbbfa82965cf582ef0646ff16a51fb5c4d6b6
854
py
Python
stylemotery/ast_generators/DefaultPythonAstGenerator.py
ml-in-programming/ml-on-source-code-models
28f206afcda761320550cefdd53a3f89d206f82f
[ "Apache-2.0" ]
3
2020-07-05T22:21:00.000Z
2021-07-06T08:32:13.000Z
stylemotery/ast_generators/DefaultPythonAstGenerator.py
ml-in-programming/ml-on-source-code-models
28f206afcda761320550cefdd53a3f89d206f82f
[ "Apache-2.0" ]
null
null
null
stylemotery/ast_generators/DefaultPythonAstGenerator.py
ml-in-programming/ml-on-source-code-models
28f206afcda761320550cefdd53a3f89d206f82f
[ "Apache-2.0" ]
3
2019-11-20T14:16:12.000Z
2020-07-05T22:21:02.000Z
import ast class DefaultPythonAstGenerator: NONE = "None" def __init__(self) -> None: super().__init__() self.node_types = [] for x in dir(ast): try: if isinstance(ast.__getattribute__(x)(), ast.AST): self.node_types.append(x) ...
29.448276
79
0.556206
6acb897cb307a5c8c8a3380f18f74972319be8c7
2,829
py
Python
pybank/pybank.py
long2691/python-challenge
d73171b7bd177f3787efb491e3bd783392e6036d
[ "MIT" ]
null
null
null
pybank/pybank.py
long2691/python-challenge
d73171b7bd177f3787efb491e3bd783392e6036d
[ "MIT" ]
null
null
null
pybank/pybank.py
long2691/python-challenge
d73171b7bd177f3787efb491e3bd783392e6036d
[ "MIT" ]
null
null
null
import os import csv #Total Months: 25 #Total Revenue: $1241412 #Average Revenue Change: $216825 #Greatest Increase in Revenue: Sep-16 ($815531) #Greatest Decrease in Revenue: Aug-12 ($-652794) csvpath = os.path.join(".", "raw_data","budget_data_1.csv") #The total number of months included in the dataset #read data i...
43.523077
315
0.710145
507ccf1ff79129dd4fadfc8548480bdc1063b5ba
6,388
py
Python
models/GDN.py
chufangao/GLUE
237265233846be1225b4a3646535e9dde414cb90
[ "MIT" ]
6
2021-12-07T08:37:15.000Z
2022-02-28T14:33:51.000Z
models/GDN.py
chufangao/GLUE
237265233846be1225b4a3646535e9dde414cb90
[ "MIT" ]
null
null
null
models/GDN.py
chufangao/GLUE
237265233846be1225b4a3646535e9dde414cb90
[ "MIT" ]
null
null
null
import numpy as np import torch import matplotlib.pyplot as plt import torch.nn as nn import time from util.time import * from util.env import * from torch_geometric.nn import GCNConv, GATConv, EdgeConv import math import torch.nn.functional as F from .graph_layer import GraphLayer def get_batch_edge_index(org_edge_...
31.94
123
0.620069
c84f51be8ee0a4864abed300b6bd1ab42f156042
7,280
py
Python
Training/distill.py
cfoster0/GPT-Neo-visual-grounding
06038be74a3606524a50aab932266ac681f0cdec
[ "Apache-2.0" ]
null
null
null
Training/distill.py
cfoster0/GPT-Neo-visual-grounding
06038be74a3606524a50aab932266ac681f0cdec
[ "Apache-2.0" ]
null
null
null
Training/distill.py
cfoster0/GPT-Neo-visual-grounding
06038be74a3606524a50aab932266ac681f0cdec
[ "Apache-2.0" ]
null
null
null
from transformers import GPTNeoModel, GPTNeoForCausalLM,\ GPT2Tokenizer, GPTNeoConfig, AdamW from torch.utils.data import IterableDataset, DataLoader from lm_dataformat import * import torch import torch.nn.functional as F from torch.nn.functional import normalize, cross_entropy from torch.nn import DataParallel f...
34.178404
122
0.668681
3353bb37e9196176b9f7e234e04960ab9226f070
1,095
py
Python
pkg/ndl.py
rmc8/bibliography_alert
219846404f98493d7f59b1c2c3c06ce0950db449
[ "MIT" ]
null
null
null
pkg/ndl.py
rmc8/bibliography_alert
219846404f98493d7f59b1c2c3c06ce0950db449
[ "MIT" ]
null
null
null
pkg/ndl.py
rmc8/bibliography_alert
219846404f98493d7f59b1c2c3c06ce0950db449
[ "MIT" ]
null
null
null
import re import html import itertools from typing import Optional, Tuple from datetime import date, timedelta import requests class NationalDietLibrary: def __init__(self, offset: int = 30): self.BASE_SRU_URL: str = "https://iss.ndl.go.jp/api/sru?operation=searchRetrieve&query={param}%3d%22{keyword}%22%...
40.555556
150
0.661187
3f00cfcfb46815b0a763962c3f50a4d7870e3508
3,835
py
Python
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/selinux.py
phoenixsbk/kvmmgr
1ed6230dc4246fe511eeb5fc9d0532d3e651b459
[ "Apache-2.0" ]
1
2019-01-12T06:46:55.000Z
2019-01-12T06:46:55.000Z
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/selinux.py
phoenixsbk/kvmmgr
1ed6230dc4246fe511eeb5fc9d0532d3e651b459
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/system/selinux.py
phoenixsbk/kvmmgr
1ed6230dc4246fe511eeb5fc9d0532d3e651b459
[ "Apache-2.0" ]
2
2016-03-09T16:37:23.000Z
2022-01-19T13:12:27.000Z
# # ovirt-engine-setup -- ovirt engine setup # Copyright (C) 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
29.274809
77
0.573924
c0ed6c4c582db24b1c35ef1d5c5665569f3cbd58
222
py
Python
nzpower/admin.py
guoqiao/django-app
17e9883a900edb22a9287065bf3be105cca30b6a
[ "MIT" ]
null
null
null
nzpower/admin.py
guoqiao/django-app
17e9883a900edb22a9287065bf3be105cca30b6a
[ "MIT" ]
null
null
null
nzpower/admin.py
guoqiao/django-app
17e9883a900edb22a9287065bf3be105cca30b6a
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models as m class CompanyAdmin(admin.ModelAdmin): model = m.Company list_display = ['name', 'slug', 'bank_account_no'] admin.site.register(m.Company, CompanyAdmin)
22.2
54
0.738739
2317a78e6e8213b397b51f900ac8ce8c8d20a1d1
78
py
Python
src/compas_pgs/ui/Rhino/3GS/dev/__plugin__.py
BlockResearchGroup/compas-3GS
a1f7be3a364f93bb7560688c0e7acee8f86c535f
[ "MIT" ]
2
2021-11-03T23:22:33.000Z
2021-11-03T23:22:41.000Z
src/compas_pgs/ui/Rhino/3GS/dev/__plugin__.py
BlockResearchGroup/compas-3GS
a1f7be3a364f93bb7560688c0e7acee8f86c535f
[ "MIT" ]
null
null
null
src/compas_pgs/ui/Rhino/3GS/dev/__plugin__.py
BlockResearchGroup/compas-3GS
a1f7be3a364f93bb7560688c0e7acee8f86c535f
[ "MIT" ]
null
null
null
id = "{7ce56e93-79c1-44ac-9716-1a53ca42ac9c}" version = "0.1.0" title = "3GS"
19.5
45
0.666667
b2473d3f6d2a23799e3b4019210e3e678544d8a0
1,829
py
Python
src/onegov/election_day/layouts/detail.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/detail.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/detail.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.election_day.layouts.default import DefaultLayout class HiddenTabsMixin: """ Mixing for a generic handling of hiding any kind of menu or submenu tab on election, election_compound and vote detail layouts in combination with the yaml file config. ...
25.760563
76
0.647895
85ea9d7bf2e59b56a7c0ee667ef7a07d2d4507cc
1,434
py
Python
cinderclient/v1/availability_zones.py
Acidburn0zzz/python-cinderclient
a58e14fc4f33e1f1eea7aa4ced3cf8976cb112c2
[ "Apache-1.1" ]
null
null
null
cinderclient/v1/availability_zones.py
Acidburn0zzz/python-cinderclient
a58e14fc4f33e1f1eea7aa4ced3cf8976cb112c2
[ "Apache-1.1" ]
null
null
null
cinderclient/v1/availability_zones.py
Acidburn0zzz/python-cinderclient
a58e14fc4f33e1f1eea7aa4ced3cf8976cb112c2
[ "Apache-1.1" ]
null
null
null
# Copyright 2011-2013 OpenStack Foundation # Copyright 2013 IBM Corp. # 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/license...
33.348837
78
0.687587
1a03d5be737a0a28866d8c37a5d41dd4f094ba15
2,946
py
Python
Support Vector Machine (SVM)/SVM.py
Cyrrav/Text-Classification-Comparator
8f126ee7d83ee5a93c8cb531fc15f2dbd790933e
[ "CC0-1.0" ]
null
null
null
Support Vector Machine (SVM)/SVM.py
Cyrrav/Text-Classification-Comparator
8f126ee7d83ee5a93c8cb531fc15f2dbd790933e
[ "CC0-1.0" ]
null
null
null
Support Vector Machine (SVM)/SVM.py
Cyrrav/Text-Classification-Comparator
8f126ee7d83ee5a93c8cb531fc15f2dbd790933e
[ "CC0-1.0" ]
null
null
null
# Text classification and Evaluation utilizing SVM import re from sklearn.datasets import load_files from nltk.corpus import stopwords def DALE_SVM(): hamspam_data = load_files(r"CONSOLIDATE") # a folder containing the 2 categories of documents in individual folders. x, y = hamspam_data.data, hamsp...
35.071429
122
0.652749
d04ada1208d4c662b93cc550c9cc251daa11df70
18,266
py
Python
pipeline/segmentation/methods/installation/displaydataonimage.py
murphygroup/CellSegmentationEvaluator
6f5d850148d52dc2d08576da42f700c4669d71e4
[ "MIT" ]
4
2021-12-15T09:05:51.000Z
2022-02-22T23:44:10.000Z
pipeline/segmentation/methods/installation/displaydataonimage.py
murphygroup/CellSegmentationEvaluator
6f5d850148d52dc2d08576da42f700c4669d71e4
[ "MIT" ]
null
null
null
pipeline/segmentation/methods/installation/displaydataonimage.py
murphygroup/CellSegmentationEvaluator
6f5d850148d52dc2d08576da42f700c4669d71e4
[ "MIT" ]
null
null
null
""" DisplayDataOnImage ================== **DisplayDataOnImage** produces an image with measured data on top of identified objects. This module displays either a single image measurement on an image of your choosing, or one object measurement per object on top of every object in an image. The display itself is an ima...
31.877836
107
0.711103
0fa744a7ed80ed97e6af5019a6c24f5aafea44d8
14,699
py
Python
ironic_python_agent/utils.py
owaisaamir/ironic-python-agent
0a537806ce2eff8bf5ab603047892f38e2253aae
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/utils.py
owaisaamir/ironic-python-agent
0a537806ce2eff8bf5ab603047892f38e2253aae
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/utils.py
owaisaamir/ironic-python-agent
0a537806ce2eff8bf5ab603047892f38e2253aae
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
33.559361
79
0.659365
9d9e65b4e8d6d2e40bf9c263339f899439c842c3
13,021
py
Python
tensorflow/python/ops/distributions/student_t.py
mohammadzainabbas/tensorflow
352142267a1a151b04c6198de83b40b7e979d1d8
[ "Apache-2.0" ]
13
2018-07-23T18:53:35.000Z
2021-11-18T19:56:45.000Z
tensorflow/python/ops/distributions/student_t.py
mohammadzainabbas/tensorflow
352142267a1a151b04c6198de83b40b7e979d1d8
[ "Apache-2.0" ]
13
2020-01-28T22:20:14.000Z
2022-03-11T23:20:14.000Z
tensorflow/python/ops/distributions/student_t.py
mohammadzainabbas/tensorflow
352142267a1a151b04c6198de83b40b7e979d1d8
[ "Apache-2.0" ]
13
2018-09-07T13:28:38.000Z
2020-07-17T15:06:24.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.969613
80
0.635281
d2ea0d19ec2f051ce8fad34153968ce503cbc72e
17,147
py
Python
dateparser/data/languages_info.py
cedar101/dateparser
edde3f0f10634d5b11713c830178341ca6fea9e5
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/languages_info.py
cedar101/dateparser
edde3f0f10634d5b11713c830178341ca6fea9e5
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/languages_info.py
cedar101/dateparser
edde3f0f10634d5b11713c830178341ca6fea9e5
[ "BSD-3-Clause" ]
null
null
null
language_order = [ "en", "ru", "es", "tr", "fa", "fr", "de", "ja", "pt", "vi", "zh", "zh-Hans", "ar", "it", "pl", "id", "el", "nl", "ko", "th", "he", "uk", "cs", "sv", "ro", "hu", "da", "sr", "sr-Cyrl", ...
12.673319
24
0.196827
0308d5401bffae981a41519a2687ba3eeeae223c
267
py
Python
django/contrib/sessions/exceptions.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/sessions/exceptions.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/sessions/exceptions.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.core.exceptions import SuspiciousOperation class InvalidSessionKey(SuspiciousOperation): """Invalid characters in session key""" pass class SuspiciousSession(SuspiciousOperation): """The session may be tampered with""" pass
22.25
55
0.730337
4d6b8a75207f20b3a4a35e88cce4fdf4dcf5c4cf
9,627
py
Python
trackATM.py
lorenzoreyes/QUANVAS
8ffc5635b132e78e7c4f1561a110adacb763cbd7
[ "Apache-2.0" ]
null
null
null
trackATM.py
lorenzoreyes/QUANVAS
8ffc5635b132e78e7c4f1561a110adacb763cbd7
[ "Apache-2.0" ]
null
null
null
trackATM.py
lorenzoreyes/QUANVAS
8ffc5635b132e78e7c4f1561a110adacb763cbd7
[ "Apache-2.0" ]
null
null
null
# This file covers the cycle of portolio management tasks # with the purpose of being executed in the Console import yfinance as yahoo import pandas as pd import numpy as np """4 main functions to handle the cycle of portfolio management from the clients.csv inputs 0 Do nothing. 1 portfolioMonitor to update and s...
64.18
187
0.716942
b7dbed5e1b13ea2e5ed28f8bc2240f4a17572a74
16,505
py
Python
partial_recovery/partial.py
olibraga/MySQL-AutoXtraBackup
51afdd437fd67bede9719d46c5d5b0c94a6304dc
[ "MIT" ]
null
null
null
partial_recovery/partial.py
olibraga/MySQL-AutoXtraBackup
51afdd437fd67bede9719d46c5d5b0c94a6304dc
[ "MIT" ]
null
null
null
partial_recovery/partial.py
olibraga/MySQL-AutoXtraBackup
51afdd437fd67bede9719d46c5d5b0c94a6304dc
[ "MIT" ]
null
null
null
import os import shutil import subprocess from general_conf.generalops import GeneralClass import re from general_conf import check_env from general_conf import path_config import logging logger = logging.getLogger(__name__) class PartialRecovery(GeneralClass): def __init__(self, config=path_config.config_path_...
43.434211
112
0.593941
e18ec946340160d8f85beebaadd4a90b145346c0
4,783
py
Python
docs/conf.py
qTipTip/SEAL
1fe9f26abe49127263a16c67e28dcc07a7ecee06
[ "MIT" ]
13
2017-04-02T21:16:06.000Z
2021-09-13T13:50:24.000Z
docs/conf.py
qTipTip/SEAL
1fe9f26abe49127263a16c67e28dcc07a7ecee06
[ "MIT" ]
1
2017-05-10T22:55:34.000Z
2017-05-10T22:55:34.000Z
docs/conf.py
qTipTip/SEAL
1fe9f26abe49127263a16c67e28dcc07a7ecee06
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # SEAL documentation build configuration file, created by # sphinx-quickstart on Wed Apr 12 21:18:04 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
30.272152
84
0.67949
87e0582ab205eb3d62c81e53087a4e82cd786ce3
3,664
py
Python
influxdb_client/domain/resource_members.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/resource_members.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/resource_members.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
# coding: utf-8 """ InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa:...
27.548872
159
0.566048
31cf98c8ddd3ecca097dd96b9b7f91040a324935
7,247
py
Python
scripts/cros_set_lsb_release.py
hustwei/chromite
10eb79abeb64e859362546214b7e039096ac9830
[ "BSD-3-Clause" ]
null
null
null
scripts/cros_set_lsb_release.py
hustwei/chromite
10eb79abeb64e859362546214b7e039096ac9830
[ "BSD-3-Clause" ]
null
null
null
scripts/cros_set_lsb_release.py
hustwei/chromite
10eb79abeb64e859362546214b7e039096ac9830
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Utility for setting the /etc/lsb-release file of an image.""" from __future__ import print_function import getpass import os from chromite.lib impor...
38.142105
79
0.666207
c0cea5e575834734b50b38475a0c39f4bf5a9895
41,855
py
Python
appengine_utilities/sessions.py
joerussbowman/gaeutilities
b74958c25e131fbcaa8392f6d4f8afc45a9fb054
[ "BSD-3-Clause" ]
2
2015-03-31T05:46:07.000Z
2015-11-05T01:48:27.000Z
appengine_utilities/sessions.py
joerussbowman/gaeutilities
b74958c25e131fbcaa8392f6d4f8afc45a9fb054
[ "BSD-3-Clause" ]
null
null
null
appengine_utilities/sessions.py
joerussbowman/gaeutilities
b74958c25e131fbcaa8392f6d4f8afc45a9fb054
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this ...
35.957904
103
0.587194
b299ccbe5fa1a2125d3634defcead04bda5d40c6
152
py
Python
sourcerers/freight_forwarding/doctype/foreign_shippers/test_foreign_shippers.py
p1c4ss0/sourcerers
e64db0186e91d6a1fb17b0f59ab1f2d5d9803e15
[ "MIT" ]
null
null
null
sourcerers/freight_forwarding/doctype/foreign_shippers/test_foreign_shippers.py
p1c4ss0/sourcerers
e64db0186e91d6a1fb17b0f59ab1f2d5d9803e15
[ "MIT" ]
null
null
null
sourcerers/freight_forwarding/doctype/foreign_shippers/test_foreign_shippers.py
p1c4ss0/sourcerers
e64db0186e91d6a1fb17b0f59ab1f2d5d9803e15
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Himanshu and Contributors # See license.txt # import frappe import unittest class TestForeignShippers(unittest.TestCase): pass
16.888889
47
0.789474
b371f244d280ae69de48db16af851f3eafc01d52
13,953
py
Python
SentiLARE/pretrain/data_label.py
authorAnonymousGit/WOCEL
5edcf1c0cce07c8280ef3c10c9e01ad0d2643885
[ "Apache-2.0" ]
null
null
null
SentiLARE/pretrain/data_label.py
authorAnonymousGit/WOCEL
5edcf1c0cce07c8280ef3c10c9e01ad0d2643885
[ "Apache-2.0" ]
null
null
null
SentiLARE/pretrain/data_label.py
authorAnonymousGit/WOCEL
5edcf1c0cce07c8280ef3c10c9e01ad0d2643885
[ "Apache-2.0" ]
null
null
null
#-*- coding: utf-8 -*- import os import json import logging import copy from tqdm import tqdm, trange import re import random import numpy as np from multiprocessing import Pool import torch from torch.utils.data import DataLoader, Dataset, RandomSampler import time import codecs from utils import se...
38.544199
110
0.490002
3b012a8ae12b951de60c82b134c2d90a8fdd3302
5,624
py
Python
player/games.py
paconte/tournaments
525162bc9f0de245597f8aa33bf1f4088a087692
[ "MIT" ]
null
null
null
player/games.py
paconte/tournaments
525162bc9f0de245597f8aa33bf1f4088a087692
[ "MIT" ]
null
null
null
player/games.py
paconte/tournaments
525162bc9f0de245597f8aa33bf1f4088a087692
[ "MIT" ]
null
null
null
import crypt from time import strftime from datetime import datetime from player import csvdata def hashing(): return crypt.crypt(); class DrawError(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class PadelResult: def __init...
32.321839
120
0.608997
29b563d100edba43dd84bd30dc61d5cbc648006a
151
py
Python
microsetta_admin/tests/base.py
dhakim87/microsetta-admin
306efb273e8fc7efa99f6bfd28372da3f3cf5f2e
[ "BSD-3-Clause" ]
null
null
null
microsetta_admin/tests/base.py
dhakim87/microsetta-admin
306efb273e8fc7efa99f6bfd28372da3f3cf5f2e
[ "BSD-3-Clause" ]
null
null
null
microsetta_admin/tests/base.py
dhakim87/microsetta-admin
306efb273e8fc7efa99f6bfd28372da3f3cf5f2e
[ "BSD-3-Clause" ]
null
null
null
import unittest from microsetta_admin.server import app class TestBase(unittest.TestCase): def setUp(self): self.app = app.test_client()
18.875
39
0.735099
c1dabd4eadc3715dcf5941bea81bbc5e1381c579
6,748
py
Python
yolox/evaluators/coco_evaluator.py
FateScript/YOLOX-1
435d5836f8b0fb1e2c738a1a9897522eafcd3ef5
[ "Apache-2.0" ]
63
2021-07-26T02:40:08.000Z
2022-03-18T10:43:50.000Z
yolox/evaluators/coco_evaluator.py
FateScript/YOLOX-1
435d5836f8b0fb1e2c738a1a9897522eafcd3ef5
[ "Apache-2.0" ]
7
2021-08-10T06:00:45.000Z
2022-01-10T03:49:20.000Z
yolox/evaluators/coco_evaluator.py
FateScript/YOLOX-1
435d5836f8b0fb1e2c738a1a9897522eafcd3ef5
[ "Apache-2.0" ]
10
2021-08-15T13:44:17.000Z
2022-01-28T23:44:10.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) Megvii, Inc. and its affiliates. import contextlib import io import json import tempfile import time from loguru import logger from tqdm import tqdm import numpy as np import megengine as mge import megengine.distributed as dist import megengine.functiona...
35.515789
93
0.574837
c36ac5ac1b1baf1ab3a45ab0a4b299a2b52e4475
438
py
Python
panda_gym/envs/__init__.py
lubiluk/panda-gym
3f70c0306938ca0684268590c9c036070dbf7cb9
[ "MIT" ]
null
null
null
panda_gym/envs/__init__.py
lubiluk/panda-gym
3f70c0306938ca0684268590c9c036070dbf7cb9
[ "MIT" ]
null
null
null
panda_gym/envs/__init__.py
lubiluk/panda-gym
3f70c0306938ca0684268590c9c036070dbf7cb9
[ "MIT" ]
null
null
null
from panda_gym.envs.panda_tasks import PandaReachEnv from panda_gym.envs.panda_tasks import PandaPushEnv from panda_gym.envs.panda_tasks import PandaSlideEnv from panda_gym.envs.panda_tasks import PandaPickAndPlaceEnv from panda_gym.envs.panda_tasks import PandaStackEnv from panda_gym.envs.panda_tasks import PandaReach...
48.666667
59
0.890411
98d4e61f05dee921ccc9df3c27f69b7cb7090aff
336
py
Python
old files/problem0024.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
old files/problem0024.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
old files/problem0024.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # Project Euler Problem 24 # Lexicographic permutations # # Code by Kevin Marciniak ########################### # easy mode import itertools digits = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] permutations = list(itertools.permutations(digits)) print(''.join(permutations[999999]))...
19.764706
59
0.544643
a88c13d3525bed9a664b0b515b4fe6635136912f
953
py
Python
sharepoint/utils.py
clerik/python-sharepoint
f1a1e19189d78115fcfc25850d27319e34d7e699
[ "BSD-3-Clause" ]
1
2019-06-10T23:58:09.000Z
2019-06-10T23:58:09.000Z
sharepoint/utils.py
SG-Gank/python-sharepoint
f1a1e19189d78115fcfc25850d27319e34d7e699
[ "BSD-3-Clause" ]
1
2020-02-11T11:46:32.000Z
2020-02-11T11:46:32.000Z
sharepoint/utils.py
SG-Gank/python-sharepoint
f1a1e19189d78115fcfc25850d27319e34d7e699
[ "BSD-3-Clause" ]
1
2021-04-22T21:58:17.000Z
2021-04-22T21:58:17.000Z
import re from six import unichr try: from html.entities import name2codepoint except ImportError: from htmlentitydefs import name2codepoint ## # Removes HTML or XML character references and entities from a text string. # # @param text The HTML (or XML) source text. # @return The plain text, as a Unicode str...
25.756757
75
0.535152
f8d29b771d90199864cbf8a52e1cffed17256666
536
py
Python
Hyperparameters.py
TimoleonLatinopoulos/MortalKombatOpenAI
59dc89d1f50dd74690859e5e1fa18701a5246382
[ "MIT" ]
1
2020-08-12T08:16:06.000Z
2020-08-12T08:16:06.000Z
Hyperparameters.py
TimoleonLatinopoulos/MortalKombatOpenAI
59dc89d1f50dd74690859e5e1fa18701a5246382
[ "MIT" ]
null
null
null
Hyperparameters.py
TimoleonLatinopoulos/MortalKombatOpenAI
59dc89d1f50dd74690859e5e1fa18701a5246382
[ "MIT" ]
null
null
null
TRAIN = True LOAD_MODEL = False GAME = 'MortalKombat-SNES' STATE = 'Level1.SubZeroVsJohnnyCage' SCENARIO = 'scenario' FRAME_HEIGHT = 63 FRAME_WIDTH = 113 STACKED_FRAMES = 4 FRAME_SKIP = 2 LEARNING_RATE = 0.00005 BATCH_SIZE = 32 GAMMA = 0.999 E_START = 1 E_END = 0.1 E_ANNEALING_FRAMES = 1000000 MEMORY_SIZE = 800000 M...
17.290323
36
0.755597
48a567fde76dbda7492b3aa4ef83f80cb2bfea7c
3,151
py
Python
util/db/initialization.py
Ajuaman/bot
c5fcd0126617e52e36e475061847ac7d8430f2a5
[ "BSD-3-Clause" ]
null
null
null
util/db/initialization.py
Ajuaman/bot
c5fcd0126617e52e36e475061847ac7d8430f2a5
[ "BSD-3-Clause" ]
null
null
null
util/db/initialization.py
Ajuaman/bot
c5fcd0126617e52e36e475061847ac7d8430f2a5
[ "BSD-3-Clause" ]
null
null
null
""" A simple database migration manager. A module can request to initialize something in the database with the @init_for and @init decorators. """ import static_config import hashlib import plugins import util.db as db from typing import Callable with db.connection() as conn: with conn.cursor() as cur: cu...
38.901235
118
0.509997
b9e9649f66d45eeda0365e94cc0827d7d28a9a9c
3,125
py
Python
alex/applications/wsrouter/wsrouter.py
cifkao/alex
9573ef5d24919b2b368b35f4dd02aa98f35f0f59
[ "Apache-2.0" ]
184
2015-02-11T04:14:41.000Z
2022-03-24T21:43:58.000Z
alex/applications/wsrouter/wsrouter.py
cifkao/alex
9573ef5d24919b2b368b35f4dd02aa98f35f0f59
[ "Apache-2.0" ]
69
2015-01-11T04:57:22.000Z
2019-04-24T10:25:56.000Z
alex/applications/wsrouter/wsrouter.py
cifkao/alex
9573ef5d24919b2b368b35f4dd02aa98f35f0f59
[ "Apache-2.0" ]
61
2015-03-04T10:52:13.000Z
2022-03-04T12:14:06.000Z
import sys import time from autobahn.twisted.websocket import WebSocketServerProtocol, \ WebSocketServerFactory from twisted.python import log from twisted.internet import reactor from alex.components.hub.wsio_messages_pb2 import WSRouterRequestProto, WSRouterRoutingResponseProto, PingProto class WSRouterServer...
35.511364
111
0.6608
2576d51241c4e0cf181b6fb361f12e5c1468ab59
2,179
py
Python
setup.py
williamirick/hatch
704cdcd1a0cd3a621235ac9f5b2b90e7524e3cd3
[ "Apache-2.0", "MIT" ]
2,549
2017-09-05T06:44:17.000Z
2022-03-31T23:21:02.000Z
setup.py
williamirick/hatch
704cdcd1a0cd3a621235ac9f5b2b90e7524e3cd3
[ "Apache-2.0", "MIT" ]
97
2017-06-07T23:14:12.000Z
2022-03-30T14:22:34.000Z
setup.py
williamirick/hatch
704cdcd1a0cd3a621235ac9f5b2b90e7524e3cd3
[ "Apache-2.0", "MIT" ]
140
2017-06-10T14:16:47.000Z
2022-03-23T09:25:01.000Z
from setuptools import find_packages, setup with open('hatch/__init__.py', 'r') as f: for line in f: if line.startswith('__version__'): version = line.strip().split('=')[1].strip(' \'"') break else: version = '0.0.1' with open('README.rst', 'r', encoding='utf-8') as f: ...
26.573171
70
0.537861
c5076423f72fef9d2ab57c93e8a27e53b2da2601
564
py
Python
test/simple_source/stmts/11_return_val.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
1
2021-03-24T11:54:03.000Z
2021-03-24T11:54:03.000Z
test/simple_source/stmts/11_return_val.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
test/simple_source/stmts/11_return_val.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
# 2.5.6 decimal.py # Bug on 2.5 and 2.6 by incorrectly changing opcode to # RETURN_VALUE to psuedo op: RETURN_END_IF def _formatparam(param, value=None, quote=True): if value is not None and len(value) > 0: if isinstance(value, tuple): value = 'a' if quote or param: pass ...
29.684211
54
0.640071
58188cc6087df554f86907b2a7c7a801dd873be4
31,271
py
Python
django_rq/tests/tests.py
1024inc/django-rq
74229b8ea7b874e8748786765b8a86b9dd1f732f
[ "MIT" ]
null
null
null
django_rq/tests/tests.py
1024inc/django-rq
74229b8ea7b874e8748786765b8a86b9dd1f732f
[ "MIT" ]
null
null
null
django_rq/tests/tests.py
1024inc/django-rq
74229b8ea7b874e8748786765b8a86b9dd1f732f
[ "MIT" ]
null
null
null
import time import uuid from unittest import skipIf from django.contrib.auth.models import User from django.core.management import call_command from django.test import TestCase, override_settings try: from django.urls import reverse except ImportError: from django.core.urlresolvers import reverse from django...
35.738286
102
0.635413
e0faf77ebff27f46982f16b4ce0eff36f818019d
14,196
py
Python
tests/test_runner/tests.py
dnozay/django
5dcdbe95c749d36072f527e120a8cb463199ae0d
[ "BSD-3-Clause" ]
1
2015-04-07T01:54:11.000Z
2015-04-07T01:54:11.000Z
tests/test_runner/tests.py
rmutter/django
5d044339037be879a11b03fe8bd8c3ef1d520b1a
[ "BSD-3-Clause" ]
null
null
null
tests/test_runner/tests.py
rmutter/django
5d044339037be879a11b03fe8bd8c3ef1d520b1a
[ "BSD-3-Clause" ]
null
null
null
""" Tests for django test runner """ from __future__ import unicode_literals import unittest from django.core.exceptions import ImproperlyConfigured from django.core.management import call_command from django import db from django.test import runner, TestCase, TransactionTestCase, skipUnlessDBFeature from django.test...
37.259843
163
0.616723
3516a0363ec5ed4432e2c2a41e1b8b95acf00066
934
py
Python
vbs.py
paulfears/vbs
037aa51d594a40380409058131c9700aa73885f3
[ "MIT" ]
4
2018-12-16T21:39:54.000Z
2019-12-22T21:48:04.000Z
vbs.py
paulfears/vbs
037aa51d594a40380409058131c9700aa73885f3
[ "MIT" ]
null
null
null
vbs.py
paulfears/vbs
037aa51d594a40380409058131c9700aa73885f3
[ "MIT" ]
1
2018-12-17T23:50:21.000Z
2018-12-17T23:50:21.000Z
import os, time def tts(words): return os.popen("cscript scripts/tts.vbs "+'"%s"'%words).read().split()[-1] def sendkeys(key_stirng): return os.popen("cscript scripts/sendkeys.vbs "+'"%s"'%key_stirng).read().split()[-1] def alert(messege, boxtype="ok", title="alert", timeout=6000): boxtypes = {"ok":0, "oka...
37.36
138
0.64454
4304c9d645db4afecbcb696cc2e5a075305fe810
12,964
py
Python
code/preprocessing/squad_preprocess.py
greatgang/squad
15c2cbce64505e0e06cb195024541be2b0671542
[ "Apache-2.0" ]
null
null
null
code/preprocessing/squad_preprocess.py
greatgang/squad
15c2cbce64505e0e06cb195024541be2b0671542
[ "Apache-2.0" ]
null
null
null
code/preprocessing/squad_preprocess.py
greatgang/squad
15c2cbce64505e0e06cb195024541be2b0671542
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Stanford University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
41.286624
254
0.655122
1edfb6bd6738c049de0170f8488706a088cd7c12
47,150
py
Python
telethon/client/messages.py
SlavikMIPT/Telethon
fece5660f46b1f5b8f464c162914cc51bff6550f
[ "MIT" ]
1
2019-06-21T19:19:50.000Z
2019-06-21T19:19:50.000Z
telethon/client/messages.py
SlavikMIPT/Telethon
fece5660f46b1f5b8f464c162914cc51bff6550f
[ "MIT" ]
1
2020-06-30T20:56:35.000Z
2020-06-30T20:56:35.000Z
telethon/client/messages.py
SlavikMIPT/Telethon
fece5660f46b1f5b8f464c162914cc51bff6550f
[ "MIT" ]
null
null
null
import itertools import typing from .. import utils, errors, hints from ..requestiter import RequestIter from ..tl import types, functions _MAX_CHUNK_SIZE = 100 if typing.TYPE_CHECKING: from .telegramclient import TelegramClient class _MessagesIter(RequestIter): """ Common factor for all requests that ...
40.299145
107
0.567678
032440c9df61cf031418873079787f69f2e4cc93
2,545
py
Python
tests/bcdfo_projgrad_test.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
10
2020-03-03T21:56:01.000Z
2022-03-29T08:36:01.000Z
tests/bcdfo_projgrad_test.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
6
2020-03-03T22:02:41.000Z
2021-11-18T12:31:00.000Z
tests/bcdfo_projgrad_test.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
3
2021-02-17T14:43:30.000Z
2022-03-05T08:46:48.000Z
# -*- coding: utf-8 -*- """ Created on Tue Dec 02 15:13:04 2014 @author: jaco_da """ import unittest from sqpdfo.bcdfo_projgrad import bcdfo_projgrad_ from sqpdfo.runtime import compare_array from numpy import array class Test_bcdfo_projgrad(unittest.TestCase): """ Reminder : This class is a test fo...
27.365591
111
0.535167
2f57ec96d65f6b4ff90231b106d5a9023b3d1f56
12,799
py
Python
utils/delete_resources.py
bbonik/personalize-infrequent-interactions
cb3610b4cd5aa2ee94f86994c6e5ee74fb5436c8
[ "MIT" ]
2
2021-12-23T09:33:06.000Z
2022-01-03T00:13:35.000Z
utils/delete_resources.py
bbonik/personalize-infrequent-interactions
cb3610b4cd5aa2ee94f86994c6e5ee74fb5436c8
[ "MIT" ]
null
null
null
utils/delete_resources.py
bbonik/personalize-infrequent-interactions
cb3610b4cd5aa2ee94f86994c6e5ee74fb5436c8
[ "MIT" ]
null
null
null
import sys import getopt import logging import botocore import boto3 import time from packaging import version from time import sleep from botocore.exceptions import ClientError logger = logging.getLogger() personalize = None def _get_dataset_group_arn(dataset_group_name): dsg_arn = None paginator = persona...
44.134483
152
0.649973
731b6926be8fefd6dca25146103cb51cc78afb29
10,236
py
Python
electrum/mnemonic_bip39.py
asuka431/electrum
144b19660451bbbdc8314ac8fccd6e79fdf3a4b1
[ "MIT" ]
null
null
null
electrum/mnemonic_bip39.py
asuka431/electrum
144b19660451bbbdc8314ac8fccd6e79fdf3a4b1
[ "MIT" ]
null
null
null
electrum/mnemonic_bip39.py
asuka431/electrum
144b19660451bbbdc8314ac8fccd6e79fdf3a4b1
[ "MIT" ]
1
2022-02-09T09:56:12.000Z
2022-02-09T09:56:12.000Z
# # Copyright (c) 2013 Pavol Rusnak # Copyright (c) 2017 mruddy # # 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,...
37.632353
132
0.560571
9599d177188925a22ba25af153f92ede3843c8d0
6,615
py
Python
licenses/management/commands/publish.py
brylie/cc-licenses
9367a268ef5d136fab194b09685f69e72564ddef
[ "MIT" ]
null
null
null
licenses/management/commands/publish.py
brylie/cc-licenses
9367a268ef5d136fab194b09685f69e72564ddef
[ "MIT" ]
null
null
null
licenses/management/commands/publish.py
brylie/cc-licenses
9367a268ef5d136fab194b09685f69e72564ddef
[ "MIT" ]
null
null
null
# Standard library import os from argparse import ArgumentParser from shutil import rmtree # Third-party import git from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.management import BaseCommand, CommandError from django.urls import reverse # First-party/Local ...
36.75
79
0.595767
c3ad0e3068b35644c9dc66887242271c0e3b9183
647
py
Python
tests/unit/via/resources_test.py
mattdricker/via-1
5f4919518337540d183bc079abbd3ea502a0e281
[ "BSD-2-Clause" ]
null
null
null
tests/unit/via/resources_test.py
mattdricker/via-1
5f4919518337540d183bc079abbd3ea502a0e281
[ "BSD-2-Clause" ]
null
null
null
tests/unit/via/resources_test.py
mattdricker/via-1
5f4919518337540d183bc079abbd3ea502a0e281
[ "BSD-2-Clause" ]
null
null
null
import pytest from pyramid.httpexceptions import HTTPBadRequest from via.resources import URLResource class TestURLResource: def test_it_returns_url(self, pyramid_request): url = pyramid_request.params["url"] = "http://example.com" context = URLResource(pyramid_request) assert context.ur...
30.809524
82
0.695518
3b1ca119f0c54f256c452c89146f5d3cd73da5c0
2,538
py
Python
ax/taskapp/celery.py
Lierian/axion
cc91bb601f5c9047f961ca19b7beec5e5c6546e7
[ "MIT" ]
null
null
null
ax/taskapp/celery.py
Lierian/axion
cc91bb601f5c9047f961ca19b7beec5e5c6546e7
[ "MIT" ]
null
null
null
ax/taskapp/celery.py
Lierian/axion
cc91bb601f5c9047f961ca19b7beec5e5c6546e7
[ "MIT" ]
null
null
null
import os from celery import Celery from django.apps import apps, AppConfig from django.conf import settings if not settings.configured: # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') # pragma: no cover app = Cele...
37.880597
99
0.680851
29d3f1a7960aada4e82773067c7a38c62c61b0f5
5,903
py
Python
modules/storage/PrefabRestic.py
threefoldtech/jumpscale_prefab9
75cb6267618d9087d4a9a7eaad121a14e497f07d
[ "Apache-2.0" ]
null
null
null
modules/storage/PrefabRestic.py
threefoldtech/jumpscale_prefab9
75cb6267618d9087d4a9a7eaad121a14e497f07d
[ "Apache-2.0" ]
31
2018-07-31T15:40:07.000Z
2019-02-20T11:07:15.000Z
modules/storage/PrefabRestic.py
threefoldtech/jumpscale_prefab
75cb6267618d9087d4a9a7eaad121a14e497f07d
[ "Apache-2.0" ]
null
null
null
from jumpscale import j app = j.tools.prefab._getBaseAppClass() class PrefabRestic(app): NAME = 'restic' def _init(self): self.BUILDDIR = self.core.replace("$BUILDDIR/restic") self.DOWNLOAD_DEST = '{}/linux_amd64.bz2'.format(self.BUILDDIR) self.FILE_NAME = '{}/linux_amd64'.format(se...
30.117347
152
0.556158
d79b76623c321145bceb17bca87f518f545df7ff
10,805
py
Python
PPBottleApp.py
govtmirror/PriceHistoryAPI
acb9e28c37b59bddfa5c6f92411c37e95dac8347
[ "CC0-1.0" ]
5
2016-06-09T23:25:01.000Z
2021-12-09T22:15:33.000Z
PPBottleApp.py
govtmirror/PriceHistoryAPI
acb9e28c37b59bddfa5c6f92411c37e95dac8347
[ "CC0-1.0" ]
null
null
null
PPBottleApp.py
govtmirror/PriceHistoryAPI
acb9e28c37b59bddfa5c6f92411c37e95dac8347
[ "CC0-1.0" ]
9
2016-06-09T23:25:02.000Z
2021-08-19T21:35:23.000Z
# This should actually be renamed so that it is not confused # with the file of the same name in PricesPaidGUI from bottle import Bottle, run, template,request,TEMPLATE_PATH,static_file from bottle import response import urllib import urlparse import json import os import PriceHistoryAuth.LogActivity import sys from ...
39.870849
139
0.717631
e2e1353a4431c254c4e1e43e38fab732cf0291af
2,389
py
Python
BotConfigurations.py
Peterjjones98/AMDStockCheck
752def28d42533a34db7cb6a1951c31e34534677
[ "BSD-2-Clause" ]
1
2021-04-22T10:28:20.000Z
2021-04-22T10:28:20.000Z
BotConfigurations.py
Peterjjones98/AMDStockCheck
752def28d42533a34db7cb6a1951c31e34534677
[ "BSD-2-Clause" ]
2
2021-05-10T16:32:28.000Z
2021-05-11T17:15:24.000Z
BotConfigurations.py
Peterjjones98/AMDStockCheck
752def28d42533a34db7cb6a1951c31e34534677
[ "BSD-2-Clause" ]
1
2021-04-22T20:12:35.000Z
2021-04-22T20:12:35.000Z
###-------------START HERE--------------------### """ 1. download Python : https://www.python.org/ftp/python/3.9.4/python-3.9.4-amd64.exe make sure when you're installing it you select 'Add to .PATH' in the installation Wizzard. 2. Run CMD and enter these commands one after the other: ...
38.532258
135
0.593554
0ebacd64593fe312fc45876cb9ca20469fdda15e
656
py
Python
main.py
viargentum/lucid-bot
3c7279221193e09455b93a642507c08c140d3600
[ "MIT" ]
3
2021-05-12T02:18:55.000Z
2021-07-27T23:44:03.000Z
main.py
viargentum/lucid-bot
3c7279221193e09455b93a642507c08c140d3600
[ "MIT" ]
2
2021-03-23T18:01:52.000Z
2021-03-23T23:58:51.000Z
main.py
viargentum/lucid-bot
3c7279221193e09455b93a642507c08c140d3600
[ "MIT" ]
2
2021-03-23T14:40:30.000Z
2021-03-23T18:04:34.000Z
#!/usr/bin/env python import discord from discord.ext import commands from lucid_bot.config import config from lucid_bot.utils import Utils from lucid_bot.extension_config import extensions intents: discord.Intents = discord.Intents.default() intents.members = True bot = commands.Bot( command_prefix=config["pref...
22.62069
56
0.75
673154d4419b0a613964a846ad47e73753a3846c
5,957
py
Python
tensorflow_datasets/text/imdb.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-05-10T10:41:27.000Z
2021-05-10T10:41:27.000Z
tensorflow_datasets/text/imdb.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/text/imdb.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:35.000Z
2021-07-04T11:07:35.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # 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 appl...
37
138
0.644284
6bf9a6ffd6bb5d6c7ef0575a18764f9056435dcf
2,655
py
Python
content/test/faceswap/plugins/train/model/dfl_h128.py
gwdgithubnom/gjgr
581957a296b13a4231ea1e67ec62083b7da445bf
[ "MIT" ]
3
2019-08-08T03:27:26.000Z
2020-08-17T13:11:24.000Z
content/test/faceswap/plugins/train/model/dfl_h128.py
gwdgithubnom/gjgr
581957a296b13a4231ea1e67ec62083b7da445bf
[ "MIT" ]
6
2020-03-04T23:21:03.000Z
2020-07-23T07:46:40.000Z
content/test/faceswap/plugins/train/model/dfl_h128.py
gwdgithubnom/gjgr
581957a296b13a4231ea1e67ec62083b7da445bf
[ "MIT" ]
2
2019-09-26T08:52:22.000Z
2020-03-27T00:33:00.000Z
#!/usr/bin/env python3 """ DeepFakesLab H128 Model Based on https://github.com/iperov/DeepFaceLab """ from keras.layers import Dense, Flatten, Input, Reshape from keras.models import Model as KerasModel from .original import logger, Model as OriginalModel class Model(OriginalModel): """ Low Memory version o...
40.227273
69
0.557815
04277ef993b4b526bfbdd93c65c68d58fb954546
21,646
py
Python
venv/lib/python3.8/site-packages/statsmodels/graphics/tests/test_gofplots.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
6,931
2015-01-01T11:41:55.000Z
2022-03-31T17:03:24.000Z
venv/lib/python3.8/site-packages/statsmodels/graphics/tests/test_gofplots.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
6,137
2015-01-01T00:33:45.000Z
2022-03-31T22:53:17.000Z
venv/lib/python3.8/site-packages/statsmodels/graphics/tests/test_gofplots.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
2,608
2015-01-02T21:32:31.000Z
2022-03-31T07:38:30.000Z
import numpy as np import numpy.testing as nptest from numpy.testing import assert_equal import pytest from scipy import stats import statsmodels.api as sm from statsmodels.graphics import gofplots from statsmodels.graphics.gofplots import ( ProbPlot, qqline, qqplot, qqplot_2samples, ) from statsmodels...
31.416546
79
0.607225
473f3be23fc36f62930ab57d450f2e09fa19ccd8
3,020
py
Python
corehq/util/metrics/prometheus.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
corehq/util/metrics/prometheus.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
corehq/util/metrics/prometheus.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
from typing import List, Dict from prometheus_client import Counter as PCounter from prometheus_client import Gauge as PGauge from prometheus_client import Histogram as PHistogram from corehq.util.metrics.metrics import HqMetrics class PrometheusMetrics(HqMetrics): """Prometheus Metrics Provider""" def __i...
43.768116
109
0.630132
ce91baee5c4e29ee6e6db3a12f9628b3d76af10d
8,853
py
Python
cons3rt/models/abstract_composition_status.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
cons3rt/models/abstract_composition_status.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
cons3rt/models/abstract_composition_status.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
""" Copyright 2020 Jackpine Technologies Corporation 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 ...
29.02623
166
0.615272
f6455ec9a8a291b62f48f9ccbbe144f3a95b5ee8
8,854
py
Python
info/modules/news/views.py
ZiYin-ss/python-Flask-News
10a71d4317ee9c4e7bcb0525696b96e5f43327ad
[ "MIT" ]
null
null
null
info/modules/news/views.py
ZiYin-ss/python-Flask-News
10a71d4317ee9c4e7bcb0525696b96e5f43327ad
[ "MIT" ]
null
null
null
info/modules/news/views.py
ZiYin-ss/python-Flask-News
10a71d4317ee9c4e7bcb0525696b96e5f43327ad
[ "MIT" ]
null
null
null
from flask import render_template, jsonify, current_app, abort, session, g, request from ... import db from ...models import News, User, Comment, CommentLike from ...utils.commons import user_login_data from ...utils.response_code import RET from . import news_blue # 新闻详情展示(新闻) # 请求路径: /news/<int:news_id> # 请求方式: GE...
29.029508
110
0.631466
6d04aed7757b6600715020803724dd4f2db217d3
728
py
Python
plugin/utils.py
jfcherng-sublime/LSP-intelephense-patcher
9be50080e6acc8ce25e14bbf5ca3c3615c938e0f
[ "MIT" ]
3
2020-11-07T07:11:18.000Z
2021-06-11T13:24:48.000Z
plugin/utils.py
jfcherng-sublime/ST-patcher-LSP-intelephense
97520041a572c8e07bef59388935020257768307
[ "MIT" ]
null
null
null
plugin/utils.py
jfcherng-sublime/ST-patcher-LSP-intelephense
97520041a572c8e07bef59388935020257768307
[ "MIT" ]
null
null
null
from typing import Iterable, Iterator, TypeVar, Union import re T = TypeVar("T") def unique(it: Iterable[T], stable: bool = False) -> Iterator[T]: """ Generates a collection of unique items from the iterable. @param stable If True, returned items are garanteed to be in their original relative ordering....
26
98
0.65522
cf0f3642c6d83c8b5f76c697311922433a409e37
3,142
py
Python
userbot/modules/user_id.py
oxyda-fox/XBot-Remix
3d97bea5395b223fc89a8cc6cb699cc624ccc967
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/user_id.py
oxyda-fox/XBot-Remix
3d97bea5395b223fc89a8cc6cb699cc624ccc967
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/user_id.py
oxyda-fox/XBot-Remix
3d97bea5395b223fc89a8cc6cb699cc624ccc967
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#Encript Marshal By XVenom #https://github.com/xvenom15 import marshal exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00sf\x00\x00\x00d\x00d\x01l\x00m\x01Z\x01\x01\x00d\x00d\x02l\x02m\x03Z\x03\x01\x00d\x00d\x03l\x04m\x05Z\x05\x01\x00d\x00d\x04l\x06m\x...
628.4
3,070
0.772438
c48c0d062a5d2ac81b0e2330a4922fb378d78526
735
py
Python
Python/PickingNumber.py
WinrichSy/HackerRank-Solutions
ed928de50cbbbdf0aee471630f6c04f9a0f69a1f
[ "Apache-2.0" ]
null
null
null
Python/PickingNumber.py
WinrichSy/HackerRank-Solutions
ed928de50cbbbdf0aee471630f6c04f9a0f69a1f
[ "Apache-2.0" ]
null
null
null
Python/PickingNumber.py
WinrichSy/HackerRank-Solutions
ed928de50cbbbdf0aee471630f6c04f9a0f69a1f
[ "Apache-2.0" ]
null
null
null
#Picking Numbers #https://www.hackerrank.com/challenges/picking-numbers/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'pickingNumbers' function below. # # The function is expected to return an INTEGER. # The function accepts INTEGER_ARRAY a as parameter. # def pic...
18.375
62
0.668027
9ce46e0d39465658d9099989ec3205caa81a1213
18,271
py
Python
cavsim/pipes/pipe.py
DHaspel/cavsim
a23e344b47b970e1a90e04c071e06860935d1694
[ "Apache-2.0" ]
null
null
null
cavsim/pipes/pipe.py
DHaspel/cavsim
a23e344b47b970e1a90e04c071e06860935d1694
[ "Apache-2.0" ]
null
null
null
cavsim/pipes/pipe.py
DHaspel/cavsim
a23e344b47b970e1a90e04c071e06860935d1694
[ "Apache-2.0" ]
null
null
null
#! /opt/conda/bin/python3 """ Pipe class implementing the actual pipe simulation calculations """ # Copyright 2019 FAU-iPAT (http://ipat.uni-erlangen.de/) # # 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 th...
45.563591
124
0.643971