hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
984f83c6fc04501148f422fce34dbcf040931285
898
py
Python
tests/conftest.py
arkturix/internet-heroku-aut
7ad32faaacb820ca3952543c05035cca2e744cb8
[ "MIT" ]
null
null
null
tests/conftest.py
arkturix/internet-heroku-aut
7ad32faaacb820ca3952543c05035cca2e744cb8
[ "MIT" ]
null
null
null
tests/conftest.py
arkturix/internet-heroku-aut
7ad32faaacb820ca3952543c05035cca2e744cb8
[ "MIT" ]
null
null
null
import pytest from herokuapp_internet.login_page import LoginPage from herokuapp_internet.disappearing_elements_page import DisappearingElementsPage import logging logger = logging.getLogger(__name__) def pytest_addoption(parser): parser.addoption( "--headless", action="store", default="false", help="Run...
24.27027
112
0.75167
0
0
279
0.31069
514
0.572383
0
0
122
0.135857
98501d1d0a0e678ce5a1a02156e3060dda0fe5b8
2,286
py
Python
dodo.py
spandanb/textwalker
0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34
[ "MIT" ]
2
2021-05-07T23:41:32.000Z
2021-05-08T15:52:08.000Z
dodo.py
spandanb/textwalker
0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34
[ "MIT" ]
null
null
null
dodo.py
spandanb/textwalker
0ebabf5a1cf9142b7ca031d7070ba7cf1d118e34
[ "MIT" ]
null
null
null
""" doit docs: https://pydoit.org/cmd_run.html """ import pdoc import os import os.path def generate_docs(docs_dir: str): """ python callable that creates docs like docs/textwalker.html, docs/patternparser.py Args: docs_dir: location to output docs to """ if not os.path.exists(docs_dir): ...
22.194175
104
0.575241
0
0
0
0
0
0
0
0
1,030
0.450569
98507d75380fc2a9e718b46b8379ee3c6dd67ff6
2,329
py
Python
ComplexNetworkSim/statistics.py
Juliet-Chunli/cnss
534c7e0b0338e831ec20b5002d1fdf1cc0879a2c
[ "BSD-2-Clause" ]
14
2015-04-24T07:34:36.000Z
2021-08-02T09:50:49.000Z
ComplexNetworkSim/statistics.py
Juliet-Chunli/cnss
534c7e0b0338e831ec20b5002d1fdf1cc0879a2c
[ "BSD-2-Clause" ]
1
2015-06-30T01:46:00.000Z
2015-07-03T18:45:23.000Z
ComplexNetworkSim/statistics.py
Juliet-Chunli/cnss
534c7e0b0338e831ec20b5002d1fdf1cc0879a2c
[ "BSD-2-Clause" ]
8
2015-03-26T20:59:26.000Z
2020-07-29T09:02:26.000Z
''' Module for basic averaging of system states across multiple trials. Used in plotting. @author: Joe Schaul <joe.schaul@gmail.com> ''' class TrialState(object): def __init__(self, trial_id, times, systemStates, uniqueStates, stateCounterForStateX): self.trial_id = trial_id self.times...
37.564516
108
0.613568
2,145
0.920996
0
0
0
0
0
0
171
0.073422
9850f21cd3ef993acf8dcfbfcc45ff349ee32df7
636
py
Python
lhotse/bin/modes/recipes/vctk.py
m-wiesner/lhotse
a9c26ba39bc56d27130ff8600c1796db08038c48
[ "Apache-2.0" ]
null
null
null
lhotse/bin/modes/recipes/vctk.py
m-wiesner/lhotse
a9c26ba39bc56d27130ff8600c1796db08038c48
[ "Apache-2.0" ]
null
null
null
lhotse/bin/modes/recipes/vctk.py
m-wiesner/lhotse
a9c26ba39bc56d27130ff8600c1796db08038c48
[ "Apache-2.0" ]
null
null
null
import click from lhotse.bin.modes import obtain, prepare from lhotse.recipes import download_vctk, prepare_vctk from lhotse.utils import Pathlike __all__ = ['vctk'] @prepare.command() @click.argument('corpus_dir', type=click.Path(exists=True, dir_okay=True)) @click.argument('output_dir', type=click.Path()) def vct...
22.714286
74
0.718553
0
0
0
0
462
0.726415
0
0
90
0.141509
98514167071fff282b20e3764c9ba865aff2249e
1,627
py
Python
external/fv3fit/setup.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
null
null
null
external/fv3fit/setup.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
null
null
null
external/fv3fit/setup.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages requirements = [ "xarray>=0.14", "numpy>=1.11", "scikit-learn>=0.22", "fsspec>=0.6.2", "pyyaml>=5.1.2", "tensorflow>=2.2.0", "tensorflow-addons>=0.11.2", "typing_extension...
28.54386
78
0.631838
0
0
0
0
0
0
0
0
904
0.555624
98534ca864e3b4a1ef0ef0e2df72a864ede4128f
1,447
py
Python
dupa/__init__.py
kr1surb4n/dupa
676577c7148e28eb8d1577bf2703029e6ba3a926
[ "MIT" ]
null
null
null
dupa/__init__.py
kr1surb4n/dupa
676577c7148e28eb8d1577bf2703029e6ba3a926
[ "MIT" ]
null
null
null
dupa/__init__.py
kr1surb4n/dupa
676577c7148e28eb8d1577bf2703029e6ba3a926
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Dupa Set of tools handy during working, debuging and testing the code.""" __version__ = '0.0.1' __author__ = 'Kris Urbanski <kris@whereibend.space>' import time from functools import wraps from dupa.fixturize import fixturize def debug(func): """Print the function signature and retur...
20.671429
63
0.601935
0
0
0
0
704
0.486524
0
0
399
0.275743
9853ddeb20cc00b452e1f159e3fbc7ede42048e7
2,272
py
Python
spa/templates.py
fergalmoran/dss
684fb4030e33212c3ecde774ca86cb74a1ffc8ac
[ "BSD-2-Clause" ]
null
null
null
spa/templates.py
fergalmoran/dss
684fb4030e33212c3ecde774ca86cb74a1ffc8ac
[ "BSD-2-Clause" ]
3
2020-02-11T21:55:44.000Z
2021-06-10T17:35:37.000Z
spa/templates.py
fergalmoran/dss
684fb4030e33212c3ecde774ca86cb74a1ffc8ac
[ "BSD-2-Clause" ]
null
null
null
from django.contrib.sites.models import Site from django.shortcuts import render_to_response from django.template.context import RequestContext from htmlmin.decorators import not_minified_response from dss import localsettings from spa.forms import UserForm __author__ = 'fergalm' @not_minified_response de...
39.172414
154
0.716109
0
0
0
0
941
0.414173
0
0
299
0.131602
9856146cbc1b1623eb88d71962e3c10eca29c3be
1,207
py
Python
service/imagepost_views.py
sandipsahajoy/Distributed-Social-Networking
7cc56c2759955e2293791bb7009821666b24944b
[ "Apache-2.0" ]
5
2022-01-14T10:32:43.000Z
2022-02-28T00:30:10.000Z
service/imagepost_views.py
sandipsahajoy/Distributed-Social-Networking
7cc56c2759955e2293791bb7009821666b24944b
[ "Apache-2.0" ]
47
2022-02-10T03:17:26.000Z
2022-02-23T01:22:33.000Z
service/imagepost_views.py
sandipsahajoy/Distributed-Social-Networking
7cc56c2759955e2293791bb7009821666b24944b
[ "Apache-2.0" ]
2
2022-03-08T22:48:24.000Z
2022-03-22T03:05:49.000Z
from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view from drf_yasg.utils import swagger_auto_schema from service.serializers import PostSerializer, ImagePostSerializer from .models import Author, Post @swagger_auto_schema(method='get', operation_...
43.107143
94
0.694283
0
0
0
0
932
0.772162
0
0
166
0.137531
9856bd361d77e2facedd153b43e10e2a8e45b702
4,894
py
Python
pixivpy_async/bapi.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
pixivpy_async/bapi.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
pixivpy_async/bapi.py
Kyle2142/pixivpy-async
639ddf46fbeeaa2aade059e4f5eac80bd450ee52
[ "Unlicense" ]
null
null
null
# -*- coding:utf-8 -*- import hashlib import os from datetime import datetime from .error import * from .utils import Utils from .api import API from .net import Net class BasePixivAPI(Net, Utils): def __init__(self, **requests_kwargs): self.additional_headers = {} self.client_id = 'MOBrBDS8blbauo...
37.646154
106
0.6132
4,726
0.965672
0
0
0
0
3,566
0.728647
711
0.14528
98573eee3b7071227d0b56c5a935ae363ee0a8cb
10,057
py
Python
examples/ConsumptionSaving/example_ConsPortfolioModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsPortfolioModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsPortfolioModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
# %% ''' Example implementations of HARK.ConsumptionSaving.ConsPortfolioModel ''' from HARK.ConsumptionSaving.ConsPortfolioModel import PortfolioConsumerType, init_portfolio from HARK.ConsumptionSaving.ConsIndShockModel import init_lifecycle from HARK.utilities import plotFuncs from copy import copy from time import ti...
40.389558
161
0.74038
0
0
0
0
0
0
0
0
4,862
0.483444
985927c5dcddc08c61effceeb19e8c46ce9d7c79
1,648
py
Python
tests/test_order.py
mikedh/lobby
d8449bd2a0dbeafc7d7689b37e9d3ca65eed89e4
[ "MIT" ]
1
2020-12-09T01:16:01.000Z
2020-12-09T01:16:01.000Z
tests/test_order.py
ncantrell/lobby
d8449bd2a0dbeafc7d7689b37e9d3ca65eed89e4
[ "MIT" ]
null
null
null
tests/test_order.py
ncantrell/lobby
d8449bd2a0dbeafc7d7689b37e9d3ca65eed89e4
[ "MIT" ]
1
2020-10-24T23:53:58.000Z
2020-10-24T23:53:58.000Z
import lobby def test_book(): # Create a LOB object lob = lobby.OrderBook() ########### Limit Orders ############# # Create some limit orders someOrders = [{'type': 'limit', 'side': 'ask', 'qty': 5, 'price': 101, 'tid': 1...
28.912281
61
0.283981
0
0
0
0
0
0
0
0
442
0.268204
98594e8f28f9b9c4731a1d8dca33c92082e2d4cf
2,451
py
Python
examples/main_simulation_lemon_graph.py
KaterynaMelnyk/GraphKKE
4651f1a5e75e23ad0b84403151f7000ab8f292eb
[ "MIT" ]
1
2021-07-23T08:47:05.000Z
2021-07-23T08:47:05.000Z
examples/main_simulation_lemon_graph.py
k-melnyk/graphKKE
4651f1a5e75e23ad0b84403151f7000ab8f292eb
[ "MIT" ]
null
null
null
examples/main_simulation_lemon_graph.py
k-melnyk/graphKKE
4651f1a5e75e23ad0b84403151f7000ab8f292eb
[ "MIT" ]
null
null
null
import os import argparse import numpy as np import scipy import imageio import matplotlib.pyplot as plt from sklearn.cluster import KMeans import graphkke.generate_graphs.graph_generation as graph_generation import graphkke.generate_graphs.generate_SDE as generate_SDE parser = argparse.ArgumentParser() parser.add_...
32.68
101
0.641779
0
0
0
0
0
0
0
0
337
0.137495
98598ee67261e34d645c03e2285132218a35b61d
741
py
Python
tests/io/open_plus.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
37
2017-12-07T15:49:29.000Z
2022-03-16T16:01:38.000Z
tests/io/open_plus.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
17
2016-06-20T09:06:14.000Z
2016-08-21T10:09:39.000Z
tests/io/open_plus.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
22
2016-08-01T01:35:30.000Z
2022-03-22T18:12:23.000Z
import sys try: import uos as os except ImportError: import os if not hasattr(os, "unlink"): print("SKIP") sys.exit() # cleanup in case testfile exists try: os.unlink("testfile") except OSError: pass try: f = open("testfile", "r+b") print("Unexpectedly opened non-existing file") excep...
15.122449
50
0.643725
0
0
0
0
0
0
0
0
270
0.364372
985b201040312e7c31425d9070fec5f6579d56c8
1,198
py
Python
scraper/spiders/ytch.py
IDex/youtube-live-alert2
59d100ee33c4fa5ef2b097ee1c3014d341f414a1
[ "MIT" ]
null
null
null
scraper/spiders/ytch.py
IDex/youtube-live-alert2
59d100ee33c4fa5ef2b097ee1c3014d341f414a1
[ "MIT" ]
null
null
null
scraper/spiders/ytch.py
IDex/youtube-live-alert2
59d100ee33c4fa5ef2b097ee1c3014d341f414a1
[ "MIT" ]
null
null
null
import json import re import datetime import scrapy import yaml import munch import pathlib from appdirs import user_config_dir config_path = list(pathlib.Path(__file__).parent.parent.parent.resolve().glob('config.yml'))[0] class YtchSpider(scrapy.Spider): name = "ytch" start_urls = list( munch.Munch...
27.860465
95
0.522538
970
0.809683
0
0
0
0
0
0
218
0.18197
985d8dba6a28036853c43ac631423cf9f7e8d275
1,031
py
Python
pih2o/controls/pump.py
anxuae/piH2O
4b6330ef51865cd3f028c81d9dcc19de0d7a1acd
[ "MIT" ]
8
2018-05-24T21:38:18.000Z
2021-11-14T19:54:09.000Z
pih2o/controls/pump.py
anxuae/piH2O
4b6330ef51865cd3f028c81d9dcc19de0d7a1acd
[ "MIT" ]
null
null
null
pih2o/controls/pump.py
anxuae/piH2O
4b6330ef51865cd3f028c81d9dcc19de0d7a1acd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Pih2o pump / electro-valve management. """ import threading from RPi import GPIO from pih2o.utils import LOGGER class Pump(object): def __init__(self, pin): self._running = threading.Event() self.pin = pin GPIO.setup(pin, GPIO.OUT) GPIO.output(self.pi...
22.911111
70
0.57129
887
0.86033
0
0
0
0
0
0
356
0.345296
985e9fbe858937265cb958daa577a1fdbc91ad59
1,193
py
Python
driloader/config/config_base.py
lucasmello/Driloader
09790187eee7550e9fc93eb3479124a63d225e85
[ "MIT" ]
4
2017-07-16T20:48:45.000Z
2017-10-05T21:45:24.000Z
driloader/config/config_base.py
lucasmello/Driloader
09790187eee7550e9fc93eb3479124a63d225e85
[ "MIT" ]
16
2017-05-31T17:08:43.000Z
2021-04-19T17:34:31.000Z
driloader/config/config_base.py
lucasmello/Driloader
09790187eee7550e9fc93eb3479124a63d225e85
[ "MIT" ]
null
null
null
""" Responsible to return the abstract browser configs. """ from abc import ABC, abstractmethod class BrowserConfigBase(ABC): """ Holds abstract methods to be implemented in Browser Config classes. """ @abstractmethod def base_url(self): """ Return base_url. """ ra...
21.690909
72
0.606035
1,094
0.917016
0
0
941
0.788768
0
0
540
0.45264
985fbf3ad25006c87636cc7cd72711de296dda57
939
py
Python
visualize-candle.py
frozenrainyoo/deep_learning.study
43c8338c7e7cc67cbb6eec61a2666c2487e4bd0e
[ "Unlicense" ]
null
null
null
visualize-candle.py
frozenrainyoo/deep_learning.study
43c8338c7e7cc67cbb6eec61a2666c2487e4bd0e
[ "Unlicense" ]
null
null
null
visualize-candle.py
frozenrainyoo/deep_learning.study
43c8338c7e7cc67cbb6eec61a2666c2487e4bd0e
[ "Unlicense" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from mpl_finance import candlestick_ohlc # import matplotlib as mpl then mpl.use('TkAgg') import pandas as pd import numpy as np from datetime import datetime df = pd.read_csv('BitMEX-OHLCV-1d.csv') df.columns = ['date', 'open', 'high', 'low', 'clo...
31.3
71
0.715655
0
0
0
0
0
0
0
0
151
0.160809
98617c5497bd8dec26edb8b7e9fa627e1c216a59
6,006
py
Python
vmware_nsx/tests/unit/common_plugin/test_housekeeper.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/common_plugin/test_housekeeper.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
vmware_nsx/tests/unit/common_plugin/test_housekeeper.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 VMware, Inc. # 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 a...
38.012658
78
0.641026
5,143
0.85631
0
0
0
0
0
0
1,215
0.202298
986246b1b1aaab1a1a109f6cc6235d6d3aee9c4d
1,829
py
Python
tests/integration/fields/follow_reference/test_complex_type.py
guglielmoseminara/mongoengine-goodjson
00470409fc44e927bc75789b6852cf48215f9d04
[ "MIT" ]
null
null
null
tests/integration/fields/follow_reference/test_complex_type.py
guglielmoseminara/mongoengine-goodjson
00470409fc44e927bc75789b6852cf48215f9d04
[ "MIT" ]
null
null
null
tests/integration/fields/follow_reference/test_complex_type.py
guglielmoseminara/mongoengine-goodjson
00470409fc44e927bc75789b6852cf48215f9d04
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """Complex Type Tests.""" import json import mongoengine_goodjson as gj import mongoengine as db from ...fixtures.base import Dictable from ....con_base import DBConBase class FollowReferenceFieldLimitRecursionComlexTypeTest(DBConBase): """Follow reference field limit recu...
32.087719
76
0.612903
1,615
0.882996
0
0
0
0
0
0
246
0.1345
9862a740ff21dde6fd66f39e14e99ce972ea2db9
995
py
Python
src/mine/invest/calc_stock_cost.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
src/mine/invest/calc_stock_cost.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
src/mine/invest/calc_stock_cost.py
AldrichYang/HelloPython3
de3d3f3cf293980a7e11aaa488a2621035efc599
[ "Apache-2.0" ]
null
null
null
# 现在单位成本价,现在数量 current_unit_cost = 78.1 current_amount = 1300 # 计算补仓后成本价 def calc_stock_new_cost(add_buy_amount,add_buy_unit_cost): # 补仓买入成本 buy_stock_cost = add_buy_amount*add_buy_unit_cost # 补仓后总投入股票成本 = 现数量 * 现成本单价 + 新数量 * 新成本单价 new_stock_cost = current_amount * current_unit_cost + buy_stock_cost ...
39.8
108
0.743719
0
0
0
0
0
0
0
0
645
0.478132
9862a74b10166312c570b45f508f9467f0daa8cf
16,112
py
Python
appengine/findit/libs/test_results/webkit_layout_test_results.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/libs/test_results/webkit_layout_test_results.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/libs/test_results/webkit_layout_test_results.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This module is for webkit-layout-tests-related operations.""" import re from libs import test_name_util from libs.test_results.base_test_results import B...
36.618182
178
0.660191
14,101
0.875186
0
0
7,329
0.454878
0
0
8,528
0.529295
9865a2e19bb04e676f8b6abab3559b06ec09af1e
3,477
py
Python
recvCases/views.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
recvCases/views.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
recvCases/views.py
BattleJudge/recvCase
b7e55cd3c40603fe2c0086066421b269a0664f1e
[ "MIT" ]
null
null
null
import os import zipfile import hashlib import logging import json from django.conf import settings from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.permissions import (AllowAny, IsAuthenticated, ) from .serializers import Test...
30.5
80
0.699166
3,023
0.835776
0
0
0
0
0
0
881
0.243572
9866792ed7574a448f6b711a55f93e86a444f71b
4,309
py
Python
client/python/tests/test_multi_packet.py
SaschaZ/ff-proxy
4f692d2edf6533843be00b87d2eb31a2a690b9ba
[ "MIT" ]
1
2020-04-22T18:49:16.000Z
2020-04-22T18:49:16.000Z
client/python/tests/test_multi_packet.py
SaschaZ/ff-proxy
4f692d2edf6533843be00b87d2eb31a2a690b9ba
[ "MIT" ]
null
null
null
client/python/tests/test_multi_packet.py
SaschaZ/ff-proxy
4f692d2edf6533843be00b87d2eb31a2a690b9ba
[ "MIT" ]
null
null
null
from ff_client import FfClient, FfConfig, FfRequest import unittest import logging class TestFfClientMutiPacket(unittest.TestCase): def test_create_request_packets(self): client = FfClient(FfConfig(ip_address='127.0.0.1', port=8080, log...
29.114865
76
0.508239
4,223
0.980042
0
0
0
0
0
0
346
0.080297
9866d3b08c24b3c2f1e959650162041d580a0cb0
22,429
py
Python
model_card_toolkit/model_card.py
Saiprasad16/model-card-toolkit
ad25e9db786ced922510940988d79c71dd09dbb6
[ "Apache-2.0" ]
1
2021-05-10T10:53:11.000Z
2021-05-10T10:53:11.000Z
model_card_toolkit/model_card.py
Saiprasad16/model-card-toolkit
ad25e9db786ced922510940988d79c71dd09dbb6
[ "Apache-2.0" ]
null
null
null
model_card_toolkit/model_card.py
Saiprasad16/model-card-toolkit
ad25e9db786ced922510940988d79c71dd09dbb6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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, ...
36.175806
116
0.727139
20,501
0.913795
0
0
16,485
0.734789
0
0
11,179
0.498284
98684fbbb86d8c3abdb991d0ab578c4633a3f36f
3,356
py
Python
nodes/ros_random_search.py
ARQ-CRISP/bopt_grasp_quality
219372e6644005651e166ed3091c5410385c7d30
[ "MIT" ]
null
null
null
nodes/ros_random_search.py
ARQ-CRISP/bopt_grasp_quality
219372e6644005651e166ed3091c5410385c7d30
[ "MIT" ]
null
null
null
nodes/ros_random_search.py
ARQ-CRISP/bopt_grasp_quality
219372e6644005651e166ed3091c5410385c7d30
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division, print_function import numpy as np import rospy from rospkg.rospack import RosPack from copy import deepcopy from tf2_ros import TransformListener, Buffer from bopt_grasp_quality.srv import bopt, boptResponse from bayesian_optimization import Random_Explorer from b...
40.433735
142
0.676103
0
0
0
0
0
0
0
0
573
0.170739
986961f64f65f1a7c4186940df49bdfa9b732036
2,356
py
Python
modules/channel_opting/channel_message_manager.py
DenverCoder1/jct-discord-bot
e4b1df71d96a4127be27e40c9aa41dbb50c3379c
[ "MIT" ]
10
2021-01-06T13:25:13.000Z
2022-03-01T13:16:46.000Z
modules/channel_opting/channel_message_manager.py
DenverCoder1/jct-discord-bot
e4b1df71d96a4127be27e40c9aa41dbb50c3379c
[ "MIT" ]
124
2021-01-06T13:29:55.000Z
2022-03-25T14:18:59.000Z
modules/channel_opting/channel_message_manager.py
DenverCoder1/jct-discord-bot
e4b1df71d96a4127be27e40c9aa41dbb50c3379c
[ "MIT" ]
3
2021-01-08T10:27:34.000Z
2021-03-04T14:49:36.000Z
from typing import List, Optional from utils.embedder import build_embed from utils.utils import one from database.channel_message import ChannelMessage import discord class ChannelMessageManager: def __init__(self, host_channel: discord.TextChannel, emoji: str): self.__host_channel = host_channel self.__emoji =...
29.08642
81
0.744482
2,185
0.927419
0
0
0
0
2,017
0.856112
71
0.030136
986a40624bae1a159be9cd68b43440b563e81ee0
208
py
Python
test.py
Timokasse/rediscache
e5bef0da973bdf53efaaea99b0ed9b41bb331ade
[ "Apache-2.0" ]
null
null
null
test.py
Timokasse/rediscache
e5bef0da973bdf53efaaea99b0ed9b41bb331ade
[ "Apache-2.0" ]
null
null
null
test.py
Timokasse/rediscache
e5bef0da973bdf53efaaea99b0ed9b41bb331ade
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from time import sleep from rediscache import rediscache import time, redis @rediscache(1, 2) def getTestValue(): return (5, 'toto') if __name__ == '__main__': myfunction()
13.866667
33
0.697115
0
0
0
0
60
0.288462
0
0
37
0.177885
986bbe481dae578c33047776f9bf717531d791dd
588
py
Python
backend/api/migrations/0005_education.py
EmileSchneider/cityrepo
fc9d84016342f7cc83231aab9853b89c37d542f9
[ "MIT" ]
null
null
null
backend/api/migrations/0005_education.py
EmileSchneider/cityrepo
fc9d84016342f7cc83231aab9853b89c37d542f9
[ "MIT" ]
null
null
null
backend/api/migrations/0005_education.py
EmileSchneider/cityrepo
fc9d84016342f7cc83231aab9853b89c37d542f9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-12-11 14:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0004_auto_20201211_1411'), ] operations = [ migrations.CreateModel( name='Education', fields=[ ...
26.727273
114
0.585034
495
0.841837
0
0
0
0
0
0
122
0.207483
986c69808538d451d52888704f858b32d31572cc
1,246
py
Python
data/example_dataset/carla/image_file_index/make_image_file_index.py
lukschwalb/bisenetv2-tensorflow
d0bc7406118891fc93e3b9e3aeee4e9dbc9e4cd0
[ "MIT" ]
null
null
null
data/example_dataset/carla/image_file_index/make_image_file_index.py
lukschwalb/bisenetv2-tensorflow
d0bc7406118891fc93e3b9e3aeee4e9dbc9e4cd0
[ "MIT" ]
null
null
null
data/example_dataset/carla/image_file_index/make_image_file_index.py
lukschwalb/bisenetv2-tensorflow
d0bc7406118891fc93e3b9e3aeee4e9dbc9e4cd0
[ "MIT" ]
null
null
null
import os import os.path as ops import glob import random import tqdm SOURCE_IMAGE_DIR = '/home/luk/datasets/carla/04-10-town02-ss/gt_images' SOURCE_LABEL_DIR = '/home/luk/datasets/carla/04-10-town02-ss/gt_annotation' DST_IMAGE_INDEX_FILE_OUTPUT_DIR = '.' unique_ids = [] for dir_name in os.listdir(SOURCE_IMAGE_DIR)...
32.789474
93
0.719904
0
0
0
0
0
0
0
0
193
0.154896
986cf0c2c336b0be083773fcf498596f4ecc8d23
216
py
Python
Chicago Data Clean/categories_chicago.py
minxstm/Bootcamp_Project_1
1f5d15faab605f7e5b678b6eca802eca04351189
[ "MIT" ]
null
null
null
Chicago Data Clean/categories_chicago.py
minxstm/Bootcamp_Project_1
1f5d15faab605f7e5b678b6eca802eca04351189
[ "MIT" ]
null
null
null
Chicago Data Clean/categories_chicago.py
minxstm/Bootcamp_Project_1
1f5d15faab605f7e5b678b6eca802eca04351189
[ "MIT" ]
null
null
null
import pandas as pd chicago_df=pd.read_csv("Chicago_Crime_2015-2017.csv") #print(chicago_df.head()) chicago_vc = chicago_df["Primary Type"].value_counts() pd.DataFrame(chicago_vc).to_csv("crime_types_chicago_1.csv")
36
60
0.805556
0
0
0
0
0
0
0
0
95
0.439815
986d1878579f7b790140714073e46cd0014bd988
293
py
Python
Day 3/part1.py
jonomango/advent-of-code-2020
86a20a5c48019ae1adacc7b36481e2df0f0069db
[ "MIT" ]
null
null
null
Day 3/part1.py
jonomango/advent-of-code-2020
86a20a5c48019ae1adacc7b36481e2df0f0069db
[ "MIT" ]
null
null
null
Day 3/part1.py
jonomango/advent-of-code-2020
86a20a5c48019ae1adacc7b36481e2df0f0069db
[ "MIT" ]
null
null
null
trees = [] with open("input.txt", "r") as f: for line in f.readlines(): trees.append(line[:-1]) # curr pos x, y = 0, 0 count = 0 while True: x += 3 y += 1 if y >= len(trees): break if trees[y][x % len(trees[y])] == '#': count += 1 print(count)
13.318182
41
0.477816
0
0
0
0
0
0
0
0
28
0.095563
986dcd1400b08fbde9b3bc935b159961a94ee6ae
3,193
py
Python
happenings/tests.py
doismellburning/tango-happenings
f6fc937cc4339812c1e208f328ee223ddc21103a
[ "MIT" ]
null
null
null
happenings/tests.py
doismellburning/tango-happenings
f6fc937cc4339812c1e208f328ee223ddc21103a
[ "MIT" ]
1
2018-03-01T17:14:00.000Z
2018-03-01T17:56:40.000Z
happenings/tests.py
doismellburning/tango-happenings
f6fc937cc4339812c1e208f328ee223ddc21103a
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from django.test import TestCase from .models import Event UserModel = get_user_model() class TestHappeningsGeneralViews(TestCase): fixtures = ['events.json', 'users.json'] def setUp(self): self.event = Even...
36.284091
95
0.625744
3,008
0.942061
0
0
0
0
0
0
810
0.25368
986ee4d9a3c5ac634d9bf7328c6b4976f021aaac
12,618
py
Python
bopflow/models/yolonet.py
parejadan/bopflow
183a0e0ae4c76265c1614402c59b3a54d328e097
[ "Apache-2.0" ]
null
null
null
bopflow/models/yolonet.py
parejadan/bopflow
183a0e0ae4c76265c1614402c59b3a54d328e097
[ "Apache-2.0" ]
6
2020-11-13T18:49:14.000Z
2022-02-10T02:18:36.000Z
bopflow/models/yolonet.py
parejadan/bopflow
183a0e0ae4c76265c1614402c59b3a54d328e097
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.layers import Input from tensorflow.keras.losses import binary_crossentropy, sparse_categorical_crossentropy from bopflow.models.darknet import darknet_conv_upsampling, darknet_conv, darknet from bopflow.models.utils im...
32.689119
89
0.593042
5,287
0.419005
0
0
95
0.007529
0
0
1,180
0.093517
986f08850a9f3156a8739237ba8493743a09c545
1,904
py
Python
vespa/simulation/auto_gui/experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/simulation/auto_gui/experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/simulation/auto_gui/experiment_list.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# -*- coding: UTF-8 -*- # # generated by wxGlade 0.9.3 on Wed Sep 11 13:50:00 2019 # import wx # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # end wxGlade class MyDialog(wx.Dialog): def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kw...
31.213115
79
0.629202
1,693
0.889181
0
0
0
0
0
0
542
0.284664
9873743ca2a564b0129fc4f8eb4dc2d65eeae81c
1,227
py
Python
S4/S4 Library/simulation/familiars/familiar_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/familiars/familiar_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/familiars/familiar_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from gsi_handlers.sim_handlers import _get_sim_info_by_id from sims4.gsi.dispatcher import GsiHandler from sims4.gsi.schema import GsiGridSchema familiar_schema = GsiGridSchema(label='Familiars', sim_specific=True) familiar_schema.add_field('familiar_name', label='Name') familiar_schema.add_field('familiar_type', label...
49.08
157
0.730236
0
0
0
0
835
0.680522
0
0
140
0.114099
98737ef22d1fe7939a250bbf74abbab55ff11614
368
py
Python
for python/data/mramesh/pframe.py
aerolalit/Auto-Testing-Python-Programs
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
4
2019-10-03T21:16:51.000Z
2019-10-04T01:28:08.000Z
for python/data/mramesh/pframe.py
aerolalit/Auto-Testing
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
null
null
null
for python/data/mramesh/pframe.py
aerolalit/Auto-Testing
dd49ab266c9f0fd8e34278f68f8af017711942e3
[ "MIT" ]
null
null
null
#35011 #a3_p10.py #Miruthula Ramesh #mramesh@jacobs-university.de n = int(input("Enter the width")) w = int(input("Enter the length")) c = input("Enter a character") space=" " def print_frame(n, w): for i in range(n): if i == 0 or i == n-1: print(w*c) else: pr...
21.647059
42
0.540761
0
0
0
0
0
0
0
0
123
0.334239
98746ffc4cea4687e7a965dcec7581058c45625e
3,430
py
Python
detectors/hamlog.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
null
null
null
detectors/hamlog.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-07-03T13:32:38.000Z
2019-07-03T13:32:38.000Z
detectors/hamlog.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-05-15T16:01:31.000Z
2019-05-15T16:01:31.000Z
# Copyright (C) 2012 Dr. Ralf Schlatterbeck Open Source Consulting. # Reichergasse 131, A-3411 Weidling. # Web: http://www.runtux.com Email: office@runtux.com # All rights reserved # **************************************************************************** # This library is free software; you can redistribute it and...
35.360825
78
0.62828
0
0
0
0
0
0
0
0
1,507
0.439359
9874db724f940ec221da9bfba43331479dc0fde4
8,091
py
Python
grgrlib/core.py
gboehl/grgrlib
745281875148afc8a3442fdd6ddbf16db9ca49db
[ "MIT" ]
null
null
null
grgrlib/core.py
gboehl/grgrlib
745281875148afc8a3442fdd6ddbf16db9ca49db
[ "MIT" ]
null
null
null
grgrlib/core.py
gboehl/grgrlib
745281875148afc8a3442fdd6ddbf16db9ca49db
[ "MIT" ]
4
2018-11-17T08:43:16.000Z
2022-01-25T13:20:03.000Z
#!/bin/python # -*- coding: utf-8 -*- import numpy as np import numpy.linalg as nl import scipy.linalg as sl import scipy.stats as ss import time aca = np.ascontiguousarray def nul(n): return np.zeros((n, n)) def iuc(x, y): """ Checks if pair of generalized EVs x,y is inside the unit circle. Here for ...
22.412742
253
0.53096
0
0
0
0
0
0
0
0
2,689
0.332345
98793af1d2a1730aeaf0a67933baaa6757991887
1,357
py
Python
Largest_product_in_series.py
tuyenta/Project-Euler-Solutions
7480f39351e71afaf9285a5730ab5dc1c8adb0c8
[ "MIT" ]
null
null
null
Largest_product_in_series.py
tuyenta/Project-Euler-Solutions
7480f39351e71afaf9285a5730ab5dc1c8adb0c8
[ "MIT" ]
null
null
null
Largest_product_in_series.py
tuyenta/Project-Euler-Solutions
7480f39351e71afaf9285a5730ab5dc1c8adb0c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 18 10:36:17 2019 @author: tuyenta """ s = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896...
61.681818
1,006
0.884304
0
0
0
0
0
0
0
0
1,108
0.816507
987a1d628a455fb7547d351f18993c8d80a36f30
6,649
py
Python
django-app/main/views.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
9
2019-07-07T02:57:50.000Z
2022-01-07T10:03:30.000Z
django-app/main/views.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
django-app/main/views.py
honchardev/crypto-sentiment-app
176a6ed61246490c42d2a2b7af4d45f67e3c7499
[ "MIT" ]
null
null
null
import json import time from datetime import datetime from django.contrib.admin.views.decorators import staff_member_required from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.mod...
30.222727
105
0.628666
0
0
0
0
5,097
0.766581
0
0
934
0.140472
987ad6ec30c9c05b606f50c7a12db0da2ad93e50
12,104
py
Python
bluesky_browser/viewer/figures.py
EliotGann/bluesky-browser
e86e259c21d6dbeb781f32de8485f706b3b17bdc
[ "BSD-3-Clause" ]
null
null
null
bluesky_browser/viewer/figures.py
EliotGann/bluesky-browser
e86e259c21d6dbeb781f32de8485f706b3b17bdc
[ "BSD-3-Clause" ]
null
null
null
bluesky_browser/viewer/figures.py
EliotGann/bluesky-browser
e86e259c21d6dbeb781f32de8485f706b3b17bdc
[ "BSD-3-Clause" ]
null
null
null
import collections import logging from event_model import DocumentRouter, RunRouter import numpy from matplotlib.backends.backend_qt5agg import ( FigureCanvasQTAgg as FigureCanvas, NavigationToolbar2QT as NavigationToolbar) import matplotlib from qtpy.QtWidgets import ( # noqa QLabel, QWidget, QVB...
37.015291
102
0.574686
11,373
0.939607
0
0
0
0
0
0
4,515
0.373017
987b85fcc75895ef8fd5e121355ef5a571c2a852
586
py
Python
gpytorch/priors/__init__.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
gpytorch/priors/__init__.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
gpytorch/priors/__init__.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
1
2018-11-15T10:03:40.000Z
2018-11-15T10:03:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from .gamma_prior import GammaPrior from .multivariate_normal_prior import MultivariateNormalPrior from .normal_prior import NormalPrior from .smoothed_box_prior import S...
36.625
81
0.863481
0
0
0
0
0
0
0
0
0
0
987d237bdddb2b7462cf1bdbb5b65fbc8aca3063
2,660
py
Python
fuelweb_ui_test/tests/preconditions.py
Miroslav-Anashkin/fuel-main
533d1722016da9774fb406f86d35942e5870ed73
[ "Apache-2.0" ]
null
null
null
fuelweb_ui_test/tests/preconditions.py
Miroslav-Anashkin/fuel-main
533d1722016da9774fb406f86d35942e5870ed73
[ "Apache-2.0" ]
null
null
null
fuelweb_ui_test/tests/preconditions.py
Miroslav-Anashkin/fuel-main
533d1722016da9774fb406f86d35942e5870ed73
[ "Apache-2.0" ]
1
2021-10-31T05:34:01.000Z
2021-10-31T05:34:01.000Z
import time from pageobjects.environments import Environments, Wizard, DeployChangesPopup from pageobjects.header import TaskResultAlert from pageobjects.nodes import Nodes, RolesPanel from settings import OPENSTACK_CENTOS, OPENSTACK_RELEASE_CENTOS from tests.base import BaseTestCase class Environment: @staticme...
32.439024
77
0.58609
2,372
0.891729
0
0
2,330
0.87594
0
0
39
0.014662
987dfbf265d5a98d22ad6b1285c6bfb0af90398e
3,080
py
Python
web_client_external_partner_feedback.py
UKPLab/emnlp2019-NeuralWeb
9f94eec6bff92396c0401b6981bcb46f8d5e1f80
[ "Apache-2.0" ]
3
2019-07-10T08:12:46.000Z
2020-02-05T08:36:45.000Z
web_client_external_partner_feedback.py
UKPLab/emnlp2019-NeuralWeb
9f94eec6bff92396c0401b6981bcb46f8d5e1f80
[ "Apache-2.0" ]
6
2020-01-28T22:49:43.000Z
2022-02-10T00:11:52.000Z
web_client_external_partner_feedback.py
UKPLab/emnlp2019-NeuralWeb
9f94eec6bff92396c0401b6981bcb46f8d5e1f80
[ "Apache-2.0" ]
1
2021-02-16T01:57:07.000Z
2021-02-16T01:57:07.000Z
import base64 import datetime import http.client import json import sys from pyblake2 import blake2b from flask import Flask, request from flask import render_template from util.config import host_config app = Flask(__name__) AUTH_SIZE = 16 API_KEY = 'aaeaa04350f3485eb3074dd3a2c4429a' # use the provided one SECRE...
29.333333
152
0.669156
0
0
0
0
279
0.090584
0
0
860
0.279221
987ebf3bb40f294fbfe683c9dee6246ece40b947
937
py
Python
globus_contents_manager/scripts/spawn_tokens.py
NickolausDS/globus-contents-manager
40ad5e8ef97686feff4ae36ff0f71b0c600c3e83
[ "Apache-2.0" ]
null
null
null
globus_contents_manager/scripts/spawn_tokens.py
NickolausDS/globus-contents-manager
40ad5e8ef97686feff4ae36ff0f71b0c600c3e83
[ "Apache-2.0" ]
null
null
null
globus_contents_manager/scripts/spawn_tokens.py
NickolausDS/globus-contents-manager
40ad5e8ef97686feff4ae36ff0f71b0c600c3e83
[ "Apache-2.0" ]
null
null
null
import os import json from fair_research_login import NativeClient CLIENT_ID = 'e54de045-d346-42ef-9fbc-5d466f4a00c6' APP_NAME = 'My App' SCOPES = 'openid email profile urn:globus:auth:scope:transfer.api.globus.org:all urn:globus:auth:scope:search.api.globus.org:all' CONFIG_FILE = 'tokens-data.json' tokens = None # ...
29.28125
129
0.709712
0
0
0
0
0
0
0
0
376
0.401281
9881d8d0fdd5338a351035a1a6b03ec773499908
1,996
py
Python
new_listings_scraper.py
hokkiefrank/gateio-crypto-trading-bot-binance-announcements-new-coins
86d7ed0dd612fe85f2cfc314a966d32912ae73ec
[ "MIT" ]
null
null
null
new_listings_scraper.py
hokkiefrank/gateio-crypto-trading-bot-binance-announcements-new-coins
86d7ed0dd612fe85f2cfc314a966d32912ae73ec
[ "MIT" ]
null
null
null
new_listings_scraper.py
hokkiefrank/gateio-crypto-trading-bot-binance-announcements-new-coins
86d7ed0dd612fe85f2cfc314a966d32912ae73ec
[ "MIT" ]
null
null
null
import requests import os.path, json import time from store_order import * from load_config import * def get_last_coin(): """ Scrapes new listings page for and returns new Symbol when appropriate """ latest_announcement = requests.get("https://www.binance.com/bapi/composite/v1/public/cms/article/cata...
32.721311
184
0.662826
0
0
0
0
0
0
0
0
777
0.389279
98821ed78144f8e01e3dd237b4ed382e65a64488
797
py
Python
setup.py
poliquin/pyfixwidth
a41f25b788f5bd78465f51b42258922709dce9bc
[ "MIT" ]
6
2020-02-13T22:20:15.000Z
2021-10-12T02:30:51.000Z
setup.py
poliquin/pyfixwidth
a41f25b788f5bd78465f51b42258922709dce9bc
[ "MIT" ]
null
null
null
setup.py
poliquin/pyfixwidth
a41f25b788f5bd78465f51b42258922709dce9bc
[ "MIT" ]
1
2021-06-16T21:21:38.000Z
2021-06-16T21:21:38.000Z
# -*- coding: utf8 -*- from distutils.core import setup setup( name='pyfixwidth', packages=['fixwidth'], version='0.1.1', description="Read fixed width data files", author='Chris Poliquin', author_email='chrispoliquin@gmail.com', url='https://github.com/poliquin/pyfixwidth', keywords=[...
28.464286
75
0.624843
0
0
0
0
0
0
0
0
531
0.666248
9882eef9c8c7e6195e084b2763326602869d2ca1
1,274
py
Python
examples/oucru/oucru-full/test_invert_dicts.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
examples/oucru/oucru-full/test_invert_dicts.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
1
2021-05-26T13:09:08.000Z
2021-05-26T13:09:08.000Z
examples/oucru/oucru-full/test_invert_dicts.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
# Libraries import ast import collections import pandas as pd # ----------------- # Methods # ----------------- def invert(d): if isinstance(d, dict): return {v: k for k, v in d.items()} return d def str2eval(x): if pd.isnull(x): return None return ast.literal_eval(x) def sortkeys(...
21.965517
61
0.627159
0
0
0
0
0
0
0
0
370
0.290424
9884063271053768538df189e1b6b1a2f033e411
3,424
py
Python
twitter_likes.py
reinhartP/twitter-likes-media-downloader
d49857d9ef36776d47e076b88253d4dc5da7ebe2
[ "MIT" ]
1
2020-04-09T01:09:12.000Z
2020-04-09T01:09:12.000Z
twitter_likes.py
reinhartP/twitter-likes-media-downloader
d49857d9ef36776d47e076b88253d4dc5da7ebe2
[ "MIT" ]
null
null
null
twitter_likes.py
reinhartP/twitter-likes-media-downloader
d49857d9ef36776d47e076b88253d4dc5da7ebe2
[ "MIT" ]
null
null
null
import argparse import twitter import os import json from likes import Likes import sys import time class Downloader: def __init__(self): self._current_path = os.path.dirname(os.path.realpath(__file__)) def downloadLikes(self, api, screen_name, force_redownload): liked_tweets = Likes( ...
31.703704
105
0.56104
3,275
0.956484
0
0
0
0
0
0
936
0.273364
9885bedc72d4f736abfc8e9d034f0b9e67c7f3ad
701
py
Python
test.py
lusing/algo
0f870715fa87f29df77d2a338ca40c76de887b8f
[ "BSD-2-Clause" ]
null
null
null
test.py
lusing/algo
0f870715fa87f29df77d2a338ca40c76de887b8f
[ "BSD-2-Clause" ]
null
null
null
test.py
lusing/algo
0f870715fa87f29df77d2a338ca40c76de887b8f
[ "BSD-2-Clause" ]
null
null
null
import gym import numpy as np env = gym.make('FrozenLake-v0') #env = env.unwrapped print(env.observation_space) print(env.action_space) def play_policy(env, policy, render=True): total_reward = 0 observation = env.reset() while True: if render: env.render() action = np.random.c...
26.961538
80
0.676177
0
0
0
0
0
0
0
0
35
0.049929
9885d62567b0049d499341f31cbcc14bbd3eeb04
1,616
py
Python
tests/test_pyspy.py
gjoseph92/scheduler-profiling
826ed2bc65b7126789ac0b828a4116d746e85975
[ "MIT" ]
null
null
null
tests/test_pyspy.py
gjoseph92/scheduler-profiling
826ed2bc65b7126789ac0b828a4116d746e85975
[ "MIT" ]
null
null
null
tests/test_pyspy.py
gjoseph92/scheduler-profiling
826ed2bc65b7126789ac0b828a4116d746e85975
[ "MIT" ]
null
null
null
import json import pathlib import platform import dask import distributed import pytest import scheduler_profilers pytest_plugins = ["docker_compose"] def core_test(client: distributed.Client, tmp_path: pathlib.Path) -> None: df = dask.datasets.timeseries().persist() scheduler_prof_path = tmp_path / "prof...
28.350877
87
0.701114
0
0
0
0
255
0.157797
0
0
241
0.149134
9887beb0001dc94ee9fbc4630bc1eeda2bccd16f
1,889
py
Python
setup.py
starofrainnight/ncstyler
d13a6fa330b955db1cb9aa7a6ff1751ec41e82eb
[ "MIT" ]
null
null
null
setup.py
starofrainnight/ncstyler
d13a6fa330b955db1cb9aa7a6ff1751ec41e82eb
[ "MIT" ]
null
null
null
setup.py
starofrainnight/ncstyler
d13a6fa330b955db1cb9aa7a6ff1751ec41e82eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pydgutils_bootstrap import use_pydgutils use_pydgutils() import pydgutils from setuptools import setup, find_packages try: from pip.req import parse_requirements except: from pip._internal.req import parse_requirements package_name = 'ncstyler' # Convert source to v2...
33.140351
103
0.680783
0
0
0
0
0
0
0
0
902
0.477501
98887097037d0611c0184d4d2ad833e081fa6d4a
7,521
py
Python
code/model.py
philippmarcus/CarND-Behavioral-Cloning-P3
e5dc637dd211d4cd148f311dc36eb973bd80bf68
[ "MIT" ]
null
null
null
code/model.py
philippmarcus/CarND-Behavioral-Cloning-P3
e5dc637dd211d4cd148f311dc36eb973bd80bf68
[ "MIT" ]
null
null
null
code/model.py
philippmarcus/CarND-Behavioral-Cloning-P3
e5dc637dd211d4cd148f311dc36eb973bd80bf68
[ "MIT" ]
null
null
null
import csv import cv2 import numpy as np import copy from sklearn.utils import shuffle """ Data generator and augmentation methods. The generator called get_flipped_copies and get_color_inverted_copies, if augmentation mode is activated. The usage of color inverted copies is done to make the algorithm also work on st...
40.654054
129
0.622258
0
0
2,356
0.313256
0
0
0
0
2,135
0.283872
9888a42f23f0d00ae83842fcbe258a139ecdf9f3
689
py
Python
abc/abc243/d/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc243/d/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc243/d/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys import math from collections import defaultdict, deque sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N, X = na() S = ns() up = 0 tmp_S = "" for c in S[::-1]: if c =...
17.225
53
0.441219
0
0
0
0
0
0
0
0
28
0.040639
98897ab6c0c2e516144b6f2d4b7b401c420c7e80
1,580
py
Python
test/fcos/test_map.py
aclex/detection-experiments
f1cbf115573a8d509553335c5904ebc2e11511d2
[ "Apache-2.0" ]
5
2020-06-08T08:21:03.000Z
2021-03-03T21:54:06.000Z
test/fcos/test_map.py
aclex/detection-experiments
f1cbf115573a8d509553335c5904ebc2e11511d2
[ "Apache-2.0" ]
3
2021-02-06T20:21:02.000Z
2021-06-06T18:46:27.000Z
test/fcos/test_map.py
aclex/detection-experiments
f1cbf115573a8d509553335c5904ebc2e11511d2
[ "Apache-2.0" ]
2
2020-06-08T08:21:05.000Z
2021-02-06T11:44:04.000Z
import pytest import math import torch from detector.fcos.map import Mapper from test.fcos.level_map_fixtures import ( image_size, strides, sample, targets, expected_level_map_sizes, expected_joint_map_8x8 ) @pytest.fixture def expected_level_thresholds(expected_level_map_sizes, image_size): pixel_sizes = ...
21.643836
74
0.777215
0
0
0
0
462
0.292405
0
0
0
0
988b95133b50696e063c31455c67480729ea1f10
770
py
Python
setup.py
BoaVaga/boavaga_server
7d25a68832d3b9f4f5666d0a3d55c99025498511
[ "MIT" ]
null
null
null
setup.py
BoaVaga/boavaga_server
7d25a68832d3b9f4f5666d0a3d55c99025498511
[ "MIT" ]
null
null
null
setup.py
BoaVaga/boavaga_server
7d25a68832d3b9f4f5666d0a3d55c99025498511
[ "MIT" ]
null
null
null
import sqlalchemy from sqlalchemy.ext.compiler import compiles import sys from src.container import create_container from src.models.base import Base from src.models import * @compiles(sqlalchemy.LargeBinary, 'mysql') def compile_binary_mysql(element, compiler, **kw): if isinstance(element.length, int) and eleme...
22
62
0.697403
0
0
0
0
259
0.336364
0
0
86
0.111688
988d858cdf7f3362f594136b2442041c83f7fa93
4,586
py
Python
cli/src/pcluster/cli/middleware.py
enrico-usai/cfncluster
acf083776c301d4f2a03ce5cd6fc79f9b88c74e0
[ "Apache-2.0" ]
415
2018-11-13T15:02:15.000Z
2022-03-31T15:26:06.000Z
cli/src/pcluster/cli/middleware.py
enrico-usai/cfncluster
acf083776c301d4f2a03ce5cd6fc79f9b88c74e0
[ "Apache-2.0" ]
2,522
2018-11-13T16:16:27.000Z
2022-03-31T13:57:10.000Z
cli/src/pcluster/cli/middleware.py
yuleiwan/aws-parallelcluster
aad2a3019ef4ad08d702f5acf41b152b3f7a0b46
[ "Apache-2.0" ]
164
2018-11-14T22:47:46.000Z
2022-03-22T11:33:22.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not # use this file except in compliance with the License. A copy of the License is # located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file acc...
37.900826
113
0.711949
0
0
0
0
1,906
0.415613
0
0
2,109
0.459878
988f5d1f8daa9ec72e11862df13ec07c4e300748
3,696
py
Python
src/pyrin/audit/api.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/audit/api.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/audit/api.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ audit api module. """ import pyrin.audit.services as audit_services from pyrin.api.router.decorators import api audit_config = audit_services.get_audit_configurations() audit_config.update(no_cache=True) is_enabled = audit_config.pop('enabled', False) if is_enabled is True: @api(**a...
33
91
0.513528
0
0
0
0
3,383
0.915314
0
0
3,333
0.901786
988f6916ac656773613c7bb7507c1cac7e708d2f
222
py
Python
python/stage_2/2839.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
python/stage_2/2839.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
python/stage_2/2839.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
a = int(input()) sum = 0 while True: if ( a == 0): print (int(sum)) break if ( a <= 2): print (-1) break if (a%5 != 0): a = a - 3 sum = sum + 1 else: sum = sum + int(a/5) a = 0
10.571429
24
0.400901
0
0
0
0
0
0
0
0
0
0
98907675d26bfe65790edfc2bde7b8179aee4ad8
5,793
py
Python
tests/test_losses/test_mesh_losses.py
nightfuryyy/mmpose
910d9e31dd9d46e3329be1b7567e6309d70ab64c
[ "Apache-2.0" ]
1,775
2020-07-10T01:20:01.000Z
2022-03-31T16:31:50.000Z
tests/test_losses/test_mesh_losses.py
KHB1698/mmpose
93c3a742c540dfb4ca515ad545cef705a07d90b4
[ "Apache-2.0" ]
1,021
2020-07-11T11:40:24.000Z
2022-03-31T14:32:26.000Z
tests/test_losses/test_mesh_losses.py
KHB1698/mmpose
93c3a742c540dfb4ca515ad545cef705a07d90b4
[ "Apache-2.0" ]
477
2020-07-11T11:27:51.000Z
2022-03-31T09:42:25.000Z
# Copyright (c) OpenMMLab. All rights reserved. import pytest import torch from numpy.testing import assert_almost_equal from mmpose.models import build_loss from mmpose.models.utils.geometry import batch_rodrigues def test_mesh_loss(): """test mesh loss.""" loss_cfg = dict( type='MeshLoss', ...
35.323171
78
0.655619
0
0
0
0
0
0
0
0
627
0.108234
9891a82e9057c30b7703a78123e0f01f73c0248f
6,932
py
Python
seqs/IntegerHeap.py
vincentdavis/special-sequences
b7b7f8c2bd2f655baeb7b2139ddf007615bffd67
[ "MIT" ]
1
2020-04-15T10:46:57.000Z
2020-04-15T10:46:57.000Z
seqs/IntegerHeap.py
vincentdavis/special-sequences
b7b7f8c2bd2f655baeb7b2139ddf007615bffd67
[ "MIT" ]
1
2016-09-14T03:57:25.000Z
2016-09-14T03:57:25.000Z
seqs/IntegerHeap.py
vincentdavis/special-sequences
b7b7f8c2bd2f655baeb7b2139ddf007615bffd67
[ "MIT" ]
null
null
null
"""IntegerHeap.py Priority queues of integer keys based on van Emde Boas trees. Only the keys are stored; caller is responsible for keeping track of any data associated with the keys in a separate dictionary. We use a version of vEB trees in which all accesses to subtrees are performed indirectly through a hash table...
34.147783
79
0.568523
4,042
0.583093
0
0
0
0
0
0
4,142
0.597519
9893aa6d0245de7a42d6065da71ab428fbb28e3b
3,238
py
Python
core/client/client.py
spiritotaku/fedlearn-algo
842700d43e7f033a7b6a32d0845cb6d9db5b866a
[ "Apache-2.0" ]
1
2021-07-20T23:44:28.000Z
2021-07-20T23:44:28.000Z
core/client/client.py
kfliubo/fedlearn-algo
3440bb10a8680319bcad1b9c9677874bab35550a
[ "Apache-2.0" ]
null
null
null
core/client/client.py
kfliubo/fedlearn-algo
3440bb10a8680319bcad1b9c9677874bab35550a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Fedlearn 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 applicable law or agreed to in writi...
26.540984
88
0.62446
2,251
0.695182
0
0
762
0.23533
0
0
1,522
0.470043
9894e55664da246d5300969b91941e5dc7ab68d5
9,369
py
Python
L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
L1Trigger/GlobalTriggerAnalyzer/test/L1GtPackUnpackAnalyzer_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
from __future__ import print_function # # cfg file to pack (DigiToRaw) a GT DAQ record, unpack (RawToDigi) it back # and compare the two set of digis # # V M Ghete 2009-04-06 import FWCore.ParameterSet.Config as cms # process process = cms.Process('TestGtPackUnpackAnalyzer') ###################### user choices #####...
35.488636
139
0.732629
0
0
0
0
0
0
0
0
6,048
0.645533
9896f98d8a2acdc2a185331ee790f1c4273955b0
39,103
py
Python
ranges/RangeDict.py
wikti/ranges
133376861d5595e040f0f18fd17de73a4ac2c3c2
[ "MIT" ]
null
null
null
ranges/RangeDict.py
wikti/ranges
133376861d5595e040f0f18fd17de73a4ac2c3c2
[ "MIT" ]
null
null
null
ranges/RangeDict.py
wikti/ranges
133376861d5595e040f0f18fd17de73a4ac2c3c2
[ "MIT" ]
1
2022-03-29T16:16:15.000Z
2022-03-29T16:16:15.000Z
from operator import is_ from ._helper import _UnhashableFriendlyDict, _LinkedList, _is_iterable_non_string, Rangelike from .Range import Range from .RangeSet import RangeSet from typing import Iterable, Union, Any, TypeVar, List, Tuple, Dict, Tuple T = TypeVar('T', bound=Any) V = TypeVar('V', bound=Any) class Range...
46.440618
120
0.616577
38,793
0.992072
0
0
0
0
0
0
28,102
0.718666
98985142e7c8b8249e12ffcb7bdd9280a12f0e9c
428
py
Python
cases/urls.py
testyourcodenow/core
05865b02ff7e60ffd3b30652161b3523046b9696
[ "MIT" ]
1
2020-05-10T06:40:58.000Z
2020-05-10T06:40:58.000Z
cases/urls.py
testyourcodenow/core
05865b02ff7e60ffd3b30652161b3523046b9696
[ "MIT" ]
25
2020-05-03T08:10:38.000Z
2021-09-22T18:59:29.000Z
cases/urls.py
testyourcodenow/core
05865b02ff7e60ffd3b30652161b3523046b9696
[ "MIT" ]
10
2020-05-03T08:25:56.000Z
2020-06-03T06:49:34.000Z
from django.urls import path from cases.api.get_visuals_data import UpdateVisualsData from cases.api.kenyan_cases import KenyanCaseList from cases.api.visuals import VisualList urlpatterns = [ path('kenyan/all', KenyanCaseList.as_view(), name='Historical data'), path('history/', VisualList.as_view(), name='Hi...
32.923077
87
0.766355
0
0
0
0
0
0
0
0
96
0.224299
9898e2238b703d003f63b12f69d4c95669f7ebc5
1,198
py
Python
tests/test_cloudfront_distribution.py
aexeagmbh/cfn-lint-rules
a7f39f3bab6d7e1aca28ba8bb8afec9965652ab4
[ "MIT" ]
1
2020-11-15T19:09:41.000Z
2020-11-15T19:09:41.000Z
tests/test_cloudfront_distribution.py
aexeagmbh/cfn-lint-rules
a7f39f3bab6d7e1aca28ba8bb8afec9965652ab4
[ "MIT" ]
6
2019-03-21T15:13:14.000Z
2021-06-02T09:32:27.000Z
tests/test_cloudfront_distribution.py
aexeagmbh/cfn-lint-rules
a7f39f3bab6d7e1aca28ba8bb8afec9965652ab4
[ "MIT" ]
null
null
null
from typing import List import pytest from cfn_lint_ax.rules import ( CloudfrontDistributionComment, CloudfrontDistributionLogging, ) from tests.utils import BAD_TEMPLATE_FIXTURES_PATH, ExpectedError, assert_all_matches @pytest.mark.parametrize( "filename,expected_errors", [ ( "c...
27.860465
103
0.603506
0
0
0
0
965
0.805509
0
0
296
0.247078
9899186911f7d1599b3dc4fbf817f141da8c06f6
3,661
py
Python
holdit/records.py
caltechlibrary/holdit
474165764e3514303dfd118d1beb0b6570fb6e13
[ "BSD-3-Clause" ]
2
2019-01-31T21:47:13.000Z
2020-11-18T04:28:58.000Z
holdit/records.py
caltechlibrary/holdit
474165764e3514303dfd118d1beb0b6570fb6e13
[ "BSD-3-Clause" ]
4
2018-10-04T17:56:48.000Z
2019-01-10T03:20:13.000Z
holdit/records.py
caltechlibrary/holdit
474165764e3514303dfd118d1beb0b6570fb6e13
[ "BSD-3-Clause" ]
null
null
null
''' records.py: base record class for holding data Authors ------- Michael Hucka <mhucka@caltech.edu> -- Caltech Library Copyright --------- Copyright (c) 2018 by the California Institute of Technology. This code is open-source software released under a 3-clause BSD license. Please see the file "LICENSE" for more...
35.201923
116
0.594373
1,040
0.284075
0
0
0
0
0
0
1,633
0.446053
989a09a83b041b1f75c98b22e68018d962171a76
12,080
py
Python
pyroSAR/gamma/srtm.py
ibaris/pyroSAR
04924500c61674a68e9dc56c1f71b7dd195c480a
[ "MIT" ]
1
2020-03-09T10:33:06.000Z
2020-03-09T10:33:06.000Z
pyroSAR/gamma/srtm.py
ibaris/pyroSAR
04924500c61674a68e9dc56c1f71b7dd195c480a
[ "MIT" ]
null
null
null
pyroSAR/gamma/srtm.py
ibaris/pyroSAR
04924500c61674a68e9dc56c1f71b7dd195c480a
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################## # preparation of srtm data for use in gamma # module of software pyroSAR # John Truckenbrodt 2014-18 ############################################################## """ The following tasks are performed by executing this script: -readi...
38.107256
170
0.643543
0
0
0
0
0
0
0
0
5,219
0.432036
989cb6547e6be414dacae50d087b530a3693e1f5
631
py
Python
youtrack/test_create_issue.py
JiSoft/python_test_api
e162f84ff67d7848d55ba4d682876fac7f297f9b
[ "MIT" ]
null
null
null
youtrack/test_create_issue.py
JiSoft/python_test_api
e162f84ff67d7848d55ba4d682876fac7f297f9b
[ "MIT" ]
null
null
null
youtrack/test_create_issue.py
JiSoft/python_test_api
e162f84ff67d7848d55ba4d682876fac7f297f9b
[ "MIT" ]
null
null
null
import unittest from my_test_api import TestAPI class TestCreateIssue(TestAPI): def test_create_issue(self): params = { 'project': 'API', 'summary': 'test issue by robots', 'description': 'You are mine ! ', } response = self.put('/issue/', params) ...
26.291667
62
0.600634
533
0.844691
0
0
0
0
0
0
137
0.217116
989d14ba8bad9846c10db51fb0c7bf4b880dcf12
1,422
py
Python
test/test_add_contact_to_group.py
havrylyshyn/python_training
2b1e1a3dd3a2b86ce1068fe52e233dee42b07580
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
havrylyshyn/python_training
2b1e1a3dd3a2b86ce1068fe52e233dee42b07580
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
havrylyshyn/python_training
2b1e1a3dd3a2b86ce1068fe52e233dee42b07580
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact from model.group import Group import random def test_add_contact_to_group(app, db): if len(db.get_contact_list()) == 0: app.contact.create(Contact(firstname="contact", lastname="forGroup", address="UA, Kyiv, KPI", homephone="0123456789", email="test@mail.com")) if len...
41.823529
149
0.716596
0
0
0
0
0
0
0
0
255
0.179325
989e5e0ff860fef2127fee5afea5afc3f6a62b14
35
py
Python
deadtrees/network/extra/resunetplusplus/__init__.py
cwerner/deadtrees
15ddfec58c4a40f22f9c1e2424fb535df4d29b03
[ "Apache-2.0" ]
1
2021-11-15T09:26:24.000Z
2021-11-15T09:26:24.000Z
deadtrees/network/extra/resunetplusplus/__init__.py
cwerner/deadtrees
15ddfec58c4a40f22f9c1e2424fb535df4d29b03
[ "Apache-2.0" ]
43
2021-04-19T14:55:05.000Z
2022-03-29T13:34:16.000Z
deadtrees/network/extra/resunetplusplus/__init__.py
cwerner/deadtrees
15ddfec58c4a40f22f9c1e2424fb535df4d29b03
[ "Apache-2.0" ]
null
null
null
from .model import ResUnetPlusPlus
17.5
34
0.857143
0
0
0
0
0
0
0
0
0
0
989f321254ef2c700cd7d5e4e5510eef2ae556a7
1,416
py
Python
datacamp/case_collections/study_crimes.py
anilgeorge04/learn-ds
f1a9c638e29270d4d72fc3aed0af3ccea8c53350
[ "MIT" ]
null
null
null
datacamp/case_collections/study_crimes.py
anilgeorge04/learn-ds
f1a9c638e29270d4d72fc3aed0af3ccea8c53350
[ "MIT" ]
null
null
null
datacamp/case_collections/study_crimes.py
anilgeorge04/learn-ds
f1a9c638e29270d4d72fc3aed0af3ccea8c53350
[ "MIT" ]
null
null
null
import csv from collections import Counter from collections import defaultdict from datetime import datetime # Make dictionary with district as key # Create the CSV file: csvfile csvfile = open('crime_sampler.csv', 'r') # Create a dictionary that defaults to a list: crimes_by_district crimes_by_district = defaultdic...
30.12766
87
0.694915
0
0
0
0
0
0
0
0
781
0.551554
98a149a17f0d2633d0a5d99ecb5f2a1417468a75
4,016
py
Python
python/nsc/nsc_instcal_combine_breakup_idstr.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
4
2017-05-23T20:57:33.000Z
2018-01-30T22:51:42.000Z
python/nsc/nsc_instcal_combine_breakup_idstr.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
null
null
null
python/nsc/nsc_instcal_combine_breakup_idstr.py
dnidever/noaosourcecatalog
bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb
[ "MIT" ]
1
2021-07-15T03:06:22.000Z
2021-07-15T03:06:22.000Z
#!/usr/bin/env python # Break up idstr file into separate measid/objectid lists per exposure on /data0 import os import sys import numpy as np import time from dlnpyutils import utils as dln, db from astropy.io import fits import sqlite3 import socket from argparse import ArgumentParser def breakup_idstr(dbfile): ...
39.372549
117
0.574701
0
0
0
0
0
0
0
0
1,135
0.28262
98a2ca2296e875523ce2f68c78e6507e53f436a6
721
py
Python
Chapter10/fabfile_operations.py
frankethp/Hands-On-Enterprise-Automation-with-Python
4d20dc5fda2265a2c3666770b8ad53e63c7ae07c
[ "MIT" ]
51
2018-07-02T04:03:07.000Z
2022-03-08T07:20:29.000Z
Chapter10/fabfile_operations.py
MindaugasVaitkus2/Hands-On-Enterprise-Automation-with-Python
39471804525701e634bd35046d8db3c0bca51dd6
[ "MIT" ]
1
2018-08-06T10:13:15.000Z
2020-10-08T12:27:17.000Z
Chapter10/fabfile_operations.py
MindaugasVaitkus2/Hands-On-Enterprise-Automation-with-Python
39471804525701e634bd35046d8db3c0bca51dd6
[ "MIT" ]
43
2018-07-24T08:50:41.000Z
2022-03-18T21:45:40.000Z
#!/usr/bin/python __author__ = "Bassim Aly" __EMAIL__ = "basim.alyy@gmail.com" from fabric.api import * env.hosts = [ '10.10.10.140', # ubuntu machine '10.10.10.193', # CentOS machine ] env.user = "root" env.password = "access123" def run_ops(): output = run("hostname") def get_ops(): try: ...
16.386364
78
0.614424
0
0
0
0
0
0
0
0
306
0.424411
98a44edac65fd22c66ab9f5074e13352309bd948
1,882
py
Python
WebApp/application.py
Ezetowers/AppEngine_EventsManagement
23e496dee161fbe62596f466d3e83e9a88c2f2b4
[ "MIT" ]
null
null
null
WebApp/application.py
Ezetowers/AppEngine_EventsManagement
23e496dee161fbe62596f466d3e83e9a88c2f2b4
[ "MIT" ]
null
null
null
WebApp/application.py
Ezetowers/AppEngine_EventsManagement
23e496dee161fbe62596f466d3e83e9a88c2f2b4
[ "MIT" ]
null
null
null
import os from Model.Model import * from Handlers.AddGuest import AddGuest from Handlers.QueryGuest import QueryGuest from Handlers.EventsCreation import EventsCreation from Handlers.EventRemoval import EventRemoval import jinja2 import webapp2 JINJA_ENVIRONMENT = jinja2.Environment( loader=jinja2.FileSystemLoade...
29.40625
76
0.670563
1,223
0.649841
0
0
0
0
0
0
146
0.077577
98a6da5934125aa84cc4de8ab3349dd673edbfc9
530
py
Python
leap/leap_test.py
shozi91/xpython
f3eccb61910f9950a98c5524efcfd8784fbc4289
[ "MIT" ]
null
null
null
leap/leap_test.py
shozi91/xpython
f3eccb61910f9950a98c5524efcfd8784fbc4289
[ "MIT" ]
null
null
null
leap/leap_test.py
shozi91/xpython
f3eccb61910f9950a98c5524efcfd8784fbc4289
[ "MIT" ]
1
2020-06-10T23:33:20.000Z
2020-06-10T23:33:20.000Z
import unittest from year import is_leap_year class YearTest(unittest.TestCase): def test_leap_year(self): self.assertTrue(is_leap_year(1996)) def test_non_leap_year(self): self.assertFalse(is_leap_year(1997)) def test_non_leap_even_year(self): self.assertFalse(is_leap_year(1998...
22.083333
44
0.713208
432
0.815094
0
0
0
0
0
0
10
0.018868
98abe48e2e82e8030955b56dce5a86874efde1ce
1,934
py
Python
Examples/batch_data_reduction.py
keflavich/TurbuStat
a6fac4c0d10473a74c62cce4a9c6a30773a955b1
[ "MIT" ]
null
null
null
Examples/batch_data_reduction.py
keflavich/TurbuStat
a6fac4c0d10473a74c62cce4a9c6a30773a955b1
[ "MIT" ]
null
null
null
Examples/batch_data_reduction.py
keflavich/TurbuStat
a6fac4c0d10473a74c62cce4a9c6a30773a955b1
[ "MIT" ]
null
null
null
# Licensed under an MIT open source license - see LICENSE ''' Runs data_reduc on all data cubes in the file. Creates a folder for each data cube and its products Run from folder containing data cubes ''' from turbustat.data_reduction import * from astropy.io.fits import getdata import os import sys import errno im...
24.794872
115
0.639607
0
0
0
0
0
0
0
0
714
0.369183
98b33ea8451d3967d4ce2088f2eba80859167c6d
44,549
py
Python
tests/test_dataset_tensor_backend.py
evendrow/deepsnap
8d5762bf4a2ef6910ad602895685cac892207ba8
[ "MIT" ]
null
null
null
tests/test_dataset_tensor_backend.py
evendrow/deepsnap
8d5762bf4a2ef6910ad602895685cac892207ba8
[ "MIT" ]
null
null
null
tests/test_dataset_tensor_backend.py
evendrow/deepsnap
8d5762bf4a2ef6910ad602895685cac892207ba8
[ "MIT" ]
null
null
null
import copy import random import torch import unittest from torch_geometric.datasets import TUDataset, Planetoid from copy import deepcopy from deepsnap.graph import Graph from deepsnap.hetero_graph import HeteroGraph from deepsnap.dataset import GraphDataset, Generator, EnsembleGenerator from tests.utils import ( ...
35.667734
79
0.548946
43,948
0.986509
0
0
0
0
0
0
2,355
0.052863
98b505993d7e054879c6dcdc1e0b5fdc721d797f
5,425
py
Python
kube-socialNetwork/scripts/init_social_graph.py
Romero027/DeathStarBench
185b61851b7a89277c0c2c1845e18776a9dd7201
[ "Apache-2.0" ]
null
null
null
kube-socialNetwork/scripts/init_social_graph.py
Romero027/DeathStarBench
185b61851b7a89277c0c2c1845e18776a9dd7201
[ "Apache-2.0" ]
null
null
null
kube-socialNetwork/scripts/init_social_graph.py
Romero027/DeathStarBench
185b61851b7a89277c0c2c1845e18776a9dd7201
[ "Apache-2.0" ]
null
null
null
import aiohttp import asyncio import os import string import random import argparse async def upload_follow(session, addr, user_0, user_1): payload = {'user_name': 'username_' + user_0, 'followee_name': 'username_' + user_1} async with session.post(addr + '/wrk2-api/user/follow', data=payload) as res...
33.695652
122
0.650507
0
0
0
0
0
0
3,276
0.603871
1,068
0.196866
98b7f6b7b89c34e5105fa11524b6903c3e65f006
1,152
py
Python
src/reader/test_cases/test_wiki_article.py
LukeMurphey/textcritical_net
887b11ac66d1970576ea83b307cefc4fdc4319b5
[ "CC-BY-3.0" ]
6
2019-05-18T04:31:39.000Z
2020-12-10T15:22:59.000Z
src/reader/test_cases/test_wiki_article.py
LukeMurphey/textcritical_net
887b11ac66d1970576ea83b307cefc4fdc4319b5
[ "CC-BY-3.0" ]
1
2020-05-19T06:04:11.000Z
2020-06-04T06:16:02.000Z
src/reader/test_cases/test_wiki_article.py
LukeMurphey/textcritical_net
887b11ac66d1970576ea83b307cefc4fdc4319b5
[ "CC-BY-3.0" ]
null
null
null
from . import TestReader from reader.models import WikiArticle class TestWikiArticle(TestReader): def test_get_wiki_article(self): wiki = WikiArticle(search="M. Antonius Imperator Ad Se Ipsum", article="Meditations") wiki.save() wiki2 = WikiArticle(search="M. Antonius Imperato...
41.142857
110
0.658854
1,087
0.943576
0
0
0
0
0
0
442
0.383681
98b9a46afb25d58d865589959a96d2c38ca63150
7,399
py
Python
tests/test_predictions.py
platiagro/projects
00da234b35003bb0ecc2d22a997e08737ceda044
[ "Apache-2.0" ]
6
2019-09-16T13:07:20.000Z
2021-06-02T19:02:05.000Z
tests/test_predictions.py
platiagro/projects
00da234b35003bb0ecc2d22a997e08737ceda044
[ "Apache-2.0" ]
325
2019-09-20T20:06:00.000Z
2022-03-30T15:05:49.000Z
tests/test_predictions.py
platiagro/projects
00da234b35003bb0ecc2d22a997e08737ceda044
[ "Apache-2.0" ]
17
2019-08-02T16:55:47.000Z
2021-06-26T19:13:35.000Z
# -*- coding: utf-8 -*- import unittest import unittest.mock as mock import requests import json from io import BytesIO from fastapi.testclient import TestClient from projects.api.main import app from projects.database import session_scope import tests.util as util app.dependency_overrides[session_scope] = util.ove...
31.619658
104
0.554805
7,026
0.949588
0
0
4,149
0.560751
0
0
2,305
0.311529
7f2501da9305f389d3f740592cc04a7f9d85b66c
114
py
Python
examples/add_module.py
satyavls/simple_mock
5344f7383de6fa3d8270bec611d6986416d7f278
[ "MIT" ]
1
2019-06-03T17:40:31.000Z
2019-06-03T17:40:31.000Z
examples/add_module.py
satyavls/simple_mock
5344f7383de6fa3d8270bec611d6986416d7f278
[ "MIT" ]
null
null
null
examples/add_module.py
satyavls/simple_mock
5344f7383de6fa3d8270bec611d6986416d7f278
[ "MIT" ]
null
null
null
def add_num(x, y): return x + y def sub_num(x, y): return x - y class MathFunctions(object): pass
10.363636
28
0.596491
37
0.324561
0
0
0
0
0
0
0
0
7f26586a1c1633037e799675a12e878cfa0662c1
37,344
py
Python
terraform/stacks/threat-intelligence/lambdas/python/cloud-sniper-threat-intelligence/cloud_sniper_threat_intelligence.py
houey/cloud-sniper
b0ac98eddc0b2da0f37c70926e2cef897283d787
[ "MIT" ]
160
2019-09-27T18:02:03.000Z
2022-03-15T23:46:40.000Z
terraform/stacks/threat-intelligence/lambdas/python/cloud-sniper-threat-intelligence/cloud_sniper_threat_intelligence.py
houey/cloud-sniper
b0ac98eddc0b2da0f37c70926e2cef897283d787
[ "MIT" ]
2
2019-10-21T13:30:17.000Z
2019-10-30T00:09:11.000Z
terraform/stacks/threat-intelligence/lambdas/python/cloud-sniper-threat-intelligence/cloud_sniper_threat_intelligence.py
houey/cloud-sniper
b0ac98eddc0b2da0f37c70926e2cef897283d787
[ "MIT" ]
31
2019-10-19T18:10:23.000Z
2022-02-28T14:13:19.000Z
import boto3 import json import datetime import logging import os import ipaddress import requests log = logging.getLogger() log.setLevel(logging.INFO) QUEUE_URL = os.environ['SQS_QUEUE_CLOUD_SNIPER'] DYNAMO_TABLE = os.environ['DYNAMO_TABLE_CLOUD_SNIPER'] WEBHOOK_URL = os.environ['WEBHOOK_URL_CLOUD_SNIPER'] HUB_ACCOU...
39.350896
365
0.492449
0
0
0
0
0
0
0
0
9,640
0.258141
7f265c229148e280301571ddc10324f031f42de0
17,311
py
Python
tests/apitests/python/test_tag_immutability.py
tedgxt/harbor
039733b200cc44ba23829499eb6cc71c63d3b9e6
[ "Apache-2.0" ]
1
2019-06-19T14:07:38.000Z
2019-06-19T14:07:38.000Z
tests/apitests/python/test_tag_immutability.py
tedgxt/harbor
039733b200cc44ba23829499eb6cc71c63d3b9e6
[ "Apache-2.0" ]
null
null
null
tests/apitests/python/test_tag_immutability.py
tedgxt/harbor
039733b200cc44ba23829499eb6cc71c63d3b9e6
[ "Apache-2.0" ]
1
2019-07-11T02:36:30.000Z
2019-07-11T02:36:30.000Z
from __future__ import absolute_import import unittest import sys from testutils import ADMIN_CLIENT from testutils import harbor_server from library.project import Project from library.user import User from library.repository import Repository from library.repository import push_image_to_project from li...
57.511628
249
0.667841
16,492
0.952689
0
0
993
0.057362
0
0
6,487
0.374733
7f26727fc4891343ad2b1f70064b4be1149f932b
3,728
py
Python
src/hackmds/tasks.py
chairco/dj-Hackmd-notifer
ae032537707ddba7b911b04b99645230ae350322
[ "0BSD" ]
4
2017-10-23T10:42:06.000Z
2019-06-21T00:44:01.000Z
src/hackmds/tasks.py
chairco/dj-Hackmd-notifier
ae032537707ddba7b911b04b99645230ae350322
[ "0BSD" ]
2
2017-10-23T01:56:15.000Z
2017-10-23T01:56:53.000Z
src/hackmds/tasks.py
chairco/dj-Hackmd-notifier
ae032537707ddba7b911b04b99645230ae350322
[ "0BSD" ]
null
null
null
import requests import logging import os import diffhtml from django.conf import settings from django.shortcuts import render from django.core.mail import EmailMessage from django.template import loader from django.contrib.auth.models import User from django_q.tasks import async_chain, result_group from hackmds.mode...
27.614815
81
0.616685
0
0
0
0
0
0
0
0
963
0.256253
7f283665e8b6be70031379c582e3646c30d58f97
814
py
Python
camunda/utils/log_utils.py
finexioinc/camunda-external-task-client-python3
dd88da967e8cc1aaf91972e2667e01bfa02265d0
[ "Apache-2.0" ]
null
null
null
camunda/utils/log_utils.py
finexioinc/camunda-external-task-client-python3
dd88da967e8cc1aaf91972e2667e01bfa02265d0
[ "Apache-2.0" ]
null
null
null
camunda/utils/log_utils.py
finexioinc/camunda-external-task-client-python3
dd88da967e8cc1aaf91972e2667e01bfa02265d0
[ "Apache-2.0" ]
1
2020-08-05T22:20:06.000Z
2020-08-05T22:20:06.000Z
import logging from frozendict import frozendict def log_with_context(message, context=frozendict({}), log_level='info', **kwargs): log_function = __get_log_function(log_level) log_context_prefix = __get_log_context_prefix(context) if log_context_prefix: log_function(f"{log_context_prefix} {mess...
25.4375
82
0.665848
0
0
0
0
0
0
0
0
75
0.092138
7f2882efd53bcebd87c22f2c0fd81888ec5db7e6
734
py
Python
Python/Basic Data Types/Lists.py
justchilll/HackerRank
948e5783007b0918b25bcef452a12c4dddb36fa6
[ "MIT" ]
1
2021-12-28T15:45:25.000Z
2021-12-28T15:45:25.000Z
Python/Basic Data Types/Lists.py
justchilll/HackerRank
948e5783007b0918b25bcef452a12c4dddb36fa6
[ "MIT" ]
null
null
null
Python/Basic Data Types/Lists.py
justchilll/HackerRank
948e5783007b0918b25bcef452a12c4dddb36fa6
[ "MIT" ]
null
null
null
if __name__ == '__main__': N = int(input()) main_list=[] for iterate in range(N): entered_string=input().split() if entered_string[0] == 'insert': main_list.insert(int(entered_string[1]),int(entered_string[2])) elif entered_string[0] == 'print': print(main_lis...
36.7
75
0.569482
0
0
0
0
0
0
0
0
61
0.083106
7f28a3ba2a1d3d7c7bdf664d76babed98cc0144e
742
py
Python
wildlifecompliance/migrations/0055_auto_20180704_0848.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0055_auto_20180704_0848.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0055_auto_20180704_0848.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-07-04 00:48 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0054_assessment_licence_activity_type'), ] operations = [ ...
25.586207
72
0.521563
584
0.787062
0
0
0
0
0
0
217
0.292453
7f28fd8107aa3d01ef3f003e276b381cfb9af0d6
677
py
Python
day2/day2.py
tlee911/aoc2021
f3b46590be72ceccdf4915b67b050c0c3207f002
[ "MIT" ]
null
null
null
day2/day2.py
tlee911/aoc2021
f3b46590be72ceccdf4915b67b050c0c3207f002
[ "MIT" ]
null
null
null
day2/day2.py
tlee911/aoc2021
f3b46590be72ceccdf4915b67b050c0c3207f002
[ "MIT" ]
null
null
null
with open('input.txt', 'r') as file: input = file.readlines() input = [ step.split() for step in input ] input = [ {step[0]: int(step[1])} for step in input ] def part1(): x = 0 y = 0 for step in input: x += step.get('forward', 0) y += step.get('down', 0) y -= step.get('up', 0)...
20.515152
53
0.468242
0
0
0
0
0
0
0
0
109
0.161004
7f297ce902d7f9247b5e656d705431d2cc8409f0
4,307
py
Python
user_metrics/metrics/edit_count.py
wikimedia/user_metrics
23ef17f7134729a0a4a8a47ac7100fb88db4d155
[ "BSD-3-Clause" ]
1
2017-09-03T21:33:35.000Z
2017-09-03T21:33:35.000Z
user_metrics/metrics/edit_count.py
wikimedia/user_metrics
23ef17f7134729a0a4a8a47ac7100fb88db4d155
[ "BSD-3-Clause" ]
null
null
null
user_metrics/metrics/edit_count.py
wikimedia/user_metrics
23ef17f7134729a0a4a8a47ac7100fb88db4d155
[ "BSD-3-Clause" ]
null
null
null
__author__ = "Ryan Faulkner" __date__ = "July 27th, 2012" __license__ = "GPL (version 2 or later)" from os import getpid from collections import namedtuple import user_metric as um from user_metrics.metrics import query_mod from user_metrics.metrics.users import UMP_MAP from user_metrics.utils import multiprocessing_...
31.669118
78
0.58997
2,847
0.661017
0
0
1,620
0.376132
0
0
2,118
0.491758
7f29a4a16372f3427a26db56be3bf0908d8eb335
7,210
py
Python
sdk/python/pulumi_aws_native/panorama/get_application_instance.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/panorama/get_application_instance.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/panorama/get_application_instance.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
43.433735
257
0.710402
5,092
0.706241
632
0.087656
4,722
0.654924
0
0
1,683
0.233426
7f29ba6ebc54ec3ef0a767a7c315061f9ee3a3ff
8,224
py
Python
year_3/comppi_1/managers/views.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_1/managers/views.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_1/managers/views.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
import json from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from .models...
42.174359
102
0.678867
0
0
0
0
7,808
0.949416
0
0
1,197
0.14555
7f2d111e6a6fe6c8ef6ae197c105c8637536b22e
101
py
Python
tests/union-env.py
fangyuchen86/mini-pysonar
541e55ebadee35afb22e17b19eed5c19ad31e21e
[ "BSD-3-Clause" ]
22
2015-04-03T12:44:24.000Z
2021-12-22T17:55:00.000Z
tests/union-env.py
GaoGersy/mini-pysonar
541e55ebadee35afb22e17b19eed5c19ad31e21e
[ "BSD-3-Clause" ]
null
null
null
tests/union-env.py
GaoGersy/mini-pysonar
541e55ebadee35afb22e17b19eed5c19ad31e21e
[ "BSD-3-Clause" ]
43
2015-04-03T12:46:28.000Z
2022-01-20T17:27:45.000Z
def f(x): if x: x = 1 else: x = 'zero' y = x return y f(1)
10.1
19
0.29703
0
0
0
0
0
0
0
0
6
0.059406
7f2dfec0ea8564d6ada61226e115c7c09c151298
23,950
py
Python
mechroutines/es/runner/scan.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
null
null
null
mechroutines/es/runner/scan.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
null
null
null
mechroutines/es/runner/scan.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
8
2019-12-18T20:09:46.000Z
2020-11-14T16:37:28.000Z
""" Library to perform sequences of electronic structure calculations along a molecular coordinate and save the resulting information to SCAN or CSAN layers of the save filesystem. """ import numpy import automol import autofile import elstruct from phydat import phycon from mechlib import filesys from mechli...
37.716535
79
0.590856
0
0
0
0
0
0
0
0
6,841
0.285637
7f2e8ec226f72ce3fd345487aaba5e6c7912c451
3,296
py
Python
book-copier.py
BoKnowsCoding/hbd-organizer
5312e2678e7f0ee731540f283137c6e8127c6a60
[ "Unlicense" ]
null
null
null
book-copier.py
BoKnowsCoding/hbd-organizer
5312e2678e7f0ee731540f283137c6e8127c6a60
[ "Unlicense" ]
1
2020-06-15T15:52:21.000Z
2020-06-26T20:27:15.000Z
book-copier.py
BoKnowsCoding/hbd-organizer
5312e2678e7f0ee731540f283137c6e8127c6a60
[ "Unlicense" ]
null
null
null
""" Designed to be used in conjunction with xtream1101/humblebundle-downloader. Takes the download directory of that script, then copies all file types of each non-comic book to a chosen directory. Each folder in the target directory will be one book, containing the different file formats available for the boo...
33.979381
100
0.664442
0
0
0
0
0
0
0
0
1,147
0.347998
7f2ed7e442eb4d9f8c00b399cb27de2af650d79c
2,276
py
Python
nemo/collections/tts/torch/helpers.py
23jura23/NeMo
6815146775432852feee1bc28ed1a7a2fc94010d
[ "Apache-2.0" ]
null
null
null
nemo/collections/tts/torch/helpers.py
23jura23/NeMo
6815146775432852feee1bc28ed1a7a2fc94010d
[ "Apache-2.0" ]
null
null
null
nemo/collections/tts/torch/helpers.py
23jura23/NeMo
6815146775432852feee1bc28ed1a7a2fc94010d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
38.576271
145
0.706503
939
0.412566
0
0
0
0
0
0
856
0.376098
7f2f313dd457f2204002811c97661a2ad5ef1b2a
633
py
Python
Project Pattern/pattern_26.py
AMARTYA2020/nppy
7f750534bb5faa4e661447ca132077de0ce0a0ed
[ "MIT" ]
4
2020-12-07T10:15:08.000Z
2021-11-17T11:21:07.000Z
Project Pattern/pattern_26.py
AMARTYA2020/nppy
7f750534bb5faa4e661447ca132077de0ce0a0ed
[ "MIT" ]
null
null
null
Project Pattern/pattern_26.py
AMARTYA2020/nppy
7f750534bb5faa4e661447ca132077de0ce0a0ed
[ "MIT" ]
1
2021-02-17T07:53:13.000Z
2021-02-17T07:53:13.000Z
class Pattern_Twenty_Six: '''Pattern twenty_six *** * * * * *** * * * * *** ''' def __init__(self, strings='*'): if not isinstance(strings, str): strings = str(strings) for i in range(7): if i i...
19.181818
49
0.388626
578
0.913112
0
0
0
0
0
0
209
0.330174
7f2fcabb83cbf0cb2f3a253ecff31e49e9b71e6b
1,069
py
Python
SVD.py
divi9626/RANSAC
c109e41bc9a476b64572d82c92a8aa20504df41a
[ "MIT" ]
null
null
null
SVD.py
divi9626/RANSAC
c109e41bc9a476b64572d82c92a8aa20504df41a
[ "MIT" ]
null
null
null
SVD.py
divi9626/RANSAC
c109e41bc9a476b64572d82c92a8aa20504df41a
[ "MIT" ]
null
null
null
import numpy as np A = np.asarray([[-5, -5, -1, 0, 0, 0, 500, 500, 100], [0, 0, 0, -5, -5, -1, 500, 500, 100], [-150, -5, -1, 0, 0, 0, 30000, 1000, 200], [0, 0, 0, -150, -5, -1, 12000, 400, 80], [-150, -150, -1, 0,...
26.725
70
0.424696
0
0
0
0
0
0
0
0
199
0.186155
7f2fea8781d091be4e8f7a425ea94d6e86e56885
911
py
Python
apps/university/api/serializers.py
ilyukevich/university-schedule
305e568b00a847a8d2d10217568e7f87833fb5b3
[ "MIT" ]
null
null
null
apps/university/api/serializers.py
ilyukevich/university-schedule
305e568b00a847a8d2d10217568e7f87833fb5b3
[ "MIT" ]
null
null
null
apps/university/api/serializers.py
ilyukevich/university-schedule
305e568b00a847a8d2d10217568e7f87833fb5b3
[ "MIT" ]
null
null
null
from rest_framework import serializers from ..models import Faculties, Departaments, StudyGroups, Auditories, Disciplines class FacultiesSerializers(serializers.ModelSerializer): """Faculties API""" class Meta: fields = '__all__' model = Faculties class DepartamentsSerializers(serializers.M...
21.186047
82
0.683864
774
0.849616
0
0
0
0
0
0
148
0.162459
7f303b0c11d6702e4f41fb8d7ecc0a87c19ce301
713
py
Python
app/views/info/info_routes.py
tjdaley/publicdataws
1aa4a98cf47fae10cc0f59a8d01168df806b4919
[ "MIT" ]
null
null
null
app/views/info/info_routes.py
tjdaley/publicdataws
1aa4a98cf47fae10cc0f59a8d01168df806b4919
[ "MIT" ]
null
null
null
app/views/info/info_routes.py
tjdaley/publicdataws
1aa4a98cf47fae10cc0f59a8d01168df806b4919
[ "MIT" ]
null
null
null
""" info_routes.py - Handle the routes for basic information pages. This module provides the views for the following routes: /about /privacy /terms_and_conditions Copyright (c) 2019 by Thomas J. Daley. All Rights Reserved. """ from flask import Blueprint, render_template info_routes = Blueprint("info_routes", __na...
23
77
0.751753
0
0
0
0
349
0.489481
0
0
363
0.509116