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
247cd1dbf28904fda53c5dc1ef0de4eb10132743
3,845
py
Python
kubernetes_asyncio/client/api/version_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/version_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/version_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # p...
31.516393
124
0.614044
9c396aa7ad08f85c39cf7e787a12cf9de3eadf2f
10,462
py
Python
src/python/grpcio/grpc/early_adopter/implementations.py
themenucha/grpc
16fa225f917a9855aba2c340f319f8c1061ad924
[ "BSD-3-Clause" ]
2
2018-01-19T12:18:59.000Z
2019-07-08T15:02:18.000Z
src/python/grpcio/grpc/early_adopter/implementations.py
themenucha/grpc
16fa225f917a9855aba2c340f319f8c1061ad924
[ "BSD-3-Clause" ]
null
null
null
src/python/grpcio/grpc/early_adopter/implementations.py
themenucha/grpc
16fa225f917a9855aba2c340f319f8c1061ad924
[ "BSD-3-Clause" ]
1
2021-03-05T06:30:33.000Z
2021-03-05T06:30:33.000Z
# Copyright 2015, Google Inc. # 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 list of conditions and the f...
39.779468
80
0.728637
91e2a1516cdca94348d37c5adb9362d514a330c8
2,396
py
Python
tests/test_data_retrieval/test_getter_templates.py
julesbertrand/Fed-repo-rate-forecasts
c7a6f01c654358ffc1519bf9dc51ae092d7c31fb
[ "MIT" ]
1
2020-12-20T17:16:53.000Z
2020-12-20T17:16:53.000Z
tests/test_data_retrieval/test_getter_templates.py
julesbertrand/Fed-repo-rate-forecasts
c7a6f01c654358ffc1519bf9dc51ae092d7c31fb
[ "MIT" ]
3
2021-02-21T20:39:26.000Z
2021-09-08T03:22:02.000Z
tests/test_data_retrieval/test_getter_templates.py
julesbertrand/Fed-repo-rate-forecasts
c7a6f01c654358ffc1519bf9dc51ae092d7c31fb
[ "MIT" ]
null
null
null
import datetime as dt import pytest import requests from frp.data_retrieval.getter_templates import MinimalGetter, TemplateGetter @pytest.mark.parametrize( "getter, kwargs", [ (MinimalGetter, {}), ( TemplateGetter, { "api_key": "mock_api_key", ...
31.526316
96
0.663189
3d90576497b5d8792f6c42f9a6f58c8580d9c97c
13,746
py
Python
actions.py
tell2jyoti/financial-demo
f054dc58fcf76593f6481dffcc56ea91a2f7871a
[ "Apache-2.0" ]
null
null
null
actions.py
tell2jyoti/financial-demo
f054dc58fcf76593f6481dffcc56ea91a2f7871a
[ "Apache-2.0" ]
null
null
null
actions.py
tell2jyoti/financial-demo
f054dc58fcf76593f6481dffcc56ea91a2f7871a
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Text, Any, List, Union, Optional import datetime from dateutil import relativedelta import logging from rasa_sdk import Tracker, Action from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import FormAction, REQUESTED_SLOT from rasa_sdk.events import Form, AllSlotsReset, SlotS...
31.819444
86
0.556307
83962780a812a900aa8494e92d34c5eabc0de0e2
1,268
py
Python
src/34.find-first-and-last-position-of-element-in-sorted-array/34.find-first-and-last-position-of-element-in-sorted-array.py
AnestLarry/LeetCodeAnswer
ca06a9cabe72879812f4b41d68ec882139974d84
[ "MIT" ]
null
null
null
src/34.find-first-and-last-position-of-element-in-sorted-array/34.find-first-and-last-position-of-element-in-sorted-array.py
AnestLarry/LeetCodeAnswer
ca06a9cabe72879812f4b41d68ec882139974d84
[ "MIT" ]
null
null
null
src/34.find-first-and-last-position-of-element-in-sorted-array/34.find-first-and-last-position-of-element-in-sorted-array.py
AnestLarry/LeetCodeAnswer
ca06a9cabe72879812f4b41d68ec882139974d84
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=34 lang=python3 # # [34] Find First and Last Position of Element in Sorted Array # # Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. # Your algorithm's runtime complexity must be in the order of O(log n). # If the target...
29.488372
123
0.537066
cdf29fce37f8f760231dd0fdf0af8f627154298c
1,139
py
Python
Somalia-COVID-impact/Generate-COVID-scenarios.py
OCHA-DAP/pa-infectious-disease-modeling
87711d3638b541f81d5314693e854be3c016a025
[ "MIT" ]
2
2021-06-06T15:23:00.000Z
2021-07-01T14:27:58.000Z
Somalia-COVID-impact/Generate-COVID-scenarios.py
OCHA-DAP/pa-infectious-disease-modeling
87711d3638b541f81d5314693e854be3c016a025
[ "MIT" ]
null
null
null
Somalia-COVID-impact/Generate-COVID-scenarios.py
OCHA-DAP/pa-infectious-disease-modeling
87711d3638b541f81d5314693e854be3c016a025
[ "MIT" ]
1
2021-07-07T15:50:09.000Z
2021-07-07T15:50:09.000Z
import matplotlib.pyplot as plt import pandas as pd import os from pandas.core import base dir_path = os.path.dirname(os.path.realpath(__file__)) COVID_impact={ "Cholera":{ "alpha":1.2, "beta1":1.2, "beta2":1.6, "delta":0.8, "bhat":0.8 }, "Malaria":{ "gamma":...
28.475
95
0.627744
0f7d85cc8385faeab91c66f771dfa6d24bf7321c
5,899
py
Python
src/nodemgr/vrouter_nodemgr/vrouter_event_manager.py
chnyda/contrail-controller
398f13bb5bad831550389be6ac3eb3e259642664
[ "Apache-2.0" ]
1
2019-01-11T06:16:30.000Z
2019-01-11T06:16:30.000Z
src/nodemgr/vrouter_nodemgr/vrouter_event_manager.py
chnyda/contrail-controller
398f13bb5bad831550389be6ac3eb3e259642664
[ "Apache-2.0" ]
null
null
null
src/nodemgr/vrouter_nodemgr/vrouter_event_manager.py
chnyda/contrail-controller
398f13bb5bad831550389be6ac3eb3e259642664
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. # from gevent import monkey monkey.patch_all() import os import sys import socket import subprocess import json import time import datetime import platform import select import gevent import ConfigParser from nodemgr.common.event_manager import EventM...
38.305195
82
0.691982
4e5a4c163b706e6c0d6d599ef141cc5674896629
22,412
py
Python
dlrm_data_caffe2.py
juliusshufan/dlrm
d68c818023de4fa8d85b0fe1f239366cff09910e
[ "MIT" ]
null
null
null
dlrm_data_caffe2.py
juliusshufan/dlrm
d68c818023de4fa8d85b0fe1f239366cff09910e
[ "MIT" ]
null
null
null
dlrm_data_caffe2.py
juliusshufan/dlrm
d68c818023de4fa8d85b0fe1f239366cff09910e
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # # Description: generate inputs and targets for the dlrm benchmark # The inpts and outputs are generated according to the following three opti...
36.501629
88
0.598742
a1ddc8fe8263c8f7a7d33dd59a840cb912c1d412
2,467
py
Python
examples/langserver.py
itsbenweeks/python-lsp-jsonrpc
8aee0038336e83d649b59813a31b5b75b2c81074
[ "MIT" ]
13
2021-04-09T22:21:24.000Z
2021-12-11T00:23:07.000Z
examples/langserver.py
itsbenweeks/python-lsp-jsonrpc
8aee0038336e83d649b59813a31b5b75b2c81074
[ "MIT" ]
6
2021-04-14T21:01:41.000Z
2022-02-16T13:03:52.000Z
examples/langserver.py
itsbenweeks/python-lsp-jsonrpc
8aee0038336e83d649b59813a31b5b75b2c81074
[ "MIT" ]
8
2021-04-13T16:37:30.000Z
2022-03-15T16:25:40.000Z
import logging from tornado import web, ioloop, websocket from pylsp_jsonrpc import dispatchers, endpoint try: import ujson as json except Exception: # pylint: disable=broad-except import json log = logging.getLogger(__name__) class LanguageServer(dispatchers.MethodDispatcher): """Implement a JSON RP...
32.460526
102
0.632347
a4fe7598d90d7239026fe9593acfd8e75693fd13
1,408
py
Python
admin/main.py
frissyn/Replit-TCG
28a11e98a24e359389fd58a31314e6cb1969015e
[ "MIT" ]
8
2021-05-01T19:48:38.000Z
2021-05-02T19:35:40.000Z
admin/main.py
frissyn/rtcg-design
28a11e98a24e359389fd58a31314e6cb1969015e
[ "MIT" ]
null
null
null
admin/main.py
frissyn/rtcg-design
28a11e98a24e359389fd58a31314e6cb1969015e
[ "MIT" ]
1
2021-05-01T19:49:09.000Z
2021-05-01T19:49:09.000Z
import flask import actions app = flask.Flask(__name__) admins = ["frissyn", "Dart", "CoolCoderSJ"] @app.route("/", methods=["GET", "POST"]) def index(): req = flask.request name = req.headers.get("X-Replit-User-Name") print(name) if name in admins: if req.method == "GET": msg =...
27.607843
80
0.564631
dc8bb3efedda1a21eafed49035eecdf4fa95310d
87
py
Python
teslabot/__init__.py
eras/TeslaBot
3ed7892fc87cf943e17c13e5e7fef59018a2fdc7
[ "MIT" ]
null
null
null
teslabot/__init__.py
eras/TeslaBot
3ed7892fc87cf943e17c13e5e7fef59018a2fdc7
[ "MIT" ]
null
null
null
teslabot/__init__.py
eras/TeslaBot
3ed7892fc87cf943e17c13e5e7fef59018a2fdc7
[ "MIT" ]
null
null
null
from . import _version __version__ = _version.get_versions()['version'] # type: ignore
29
63
0.758621
41f2fe86ad9af3696df01b260df3702cf58f49c3
279
py
Python
tests/artificial/transf_RelativeDifference/trend_PolyTrend/cycle_30/ar_/test_artificial_32_RelativeDifference_PolyTrend_30__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_RelativeDifference/trend_PolyTrend/cycle_30/ar_/test_artificial_32_RelativeDifference_PolyTrend_30__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_RelativeDifference/trend_PolyTrend/cycle_30/ar_/test_artificial_32_RelativeDifference_PolyTrend_30__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 100, ar_order = 0);
39.857143
174
0.741935
d6e4f802e54e9229d06fac48301985988148f2ce
3,594
py
Python
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/error_info.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/error_info.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/error_info.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ErrorInfo: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attri...
25.309859
79
0.54424
bb50825a7606c377b45a257be1157f1caeb481fa
13,397
py
Python
PIM_Calculator/pimQt.py
panjacek/PIM_Calculator
2fb19e10cd2cf97a6f5dc9913002da4379abb300
[ "Unlicense" ]
null
null
null
PIM_Calculator/pimQt.py
panjacek/PIM_Calculator
2fb19e10cd2cf97a6f5dc9913002da4379abb300
[ "Unlicense" ]
null
null
null
PIM_Calculator/pimQt.py
panjacek/PIM_Calculator
2fb19e10cd2cf97a6f5dc9913002da4379abb300
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals import sys from PySide2 import QtWidgets, QtCore from PIM_Calculator.pim_calc import PIMCalc import logging from itertools import cycle # try to import plotting plt = None try: import matplot...
35.255263
104
0.551989
1bc1a4fb375d06a40380c8073ca04d5048017a93
46
py
Python
1. Dive into Python/1.2. Varying Debt.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
1. Dive into Python/1.2. Varying Debt.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
1. Dive into Python/1.2. Varying Debt.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
print("%.2f" % ((float(input())*(1.02**6))/6))
46
46
0.478261
4a59670ef7769a46283dbb6e588fd713e21a43b0
4,315
py
Python
visualizer.py
ironmanciti/rltrader
7f585ee3214094e62a20b11cf983d2bd83a7eb5e
[ "MIT" ]
null
null
null
visualizer.py
ironmanciti/rltrader
7f585ee3214094e62a20b11cf983d2bd83a7eb5e
[ "MIT" ]
null
null
null
visualizer.py
ironmanciti/rltrader
7f585ee3214094e62a20b11cf983d2bd83a7eb5e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from mpl_finance import candlestick_ohlc class Visualizer: def __init__(self): self.fig = None # 캔버스 같은 역할을 하는 Matplotlib의 Figure 클래스 객체 self.axes = None # 차트를 그리기 위한 Matplotlib의 Axes 클래스 객체 def prepare(self, chart_data): # 캔버스를 초기...
41.490385
88
0.553187
28b11ff86556392ee2d956f857aafa3e88990f95
470
py
Python
newsltd_etl/projects/tribune/datasets/daily_contract_states/schema.py
telia-oss/birgitta-example-etl
8bb32aac94486b4edc1fee3964cf7d2dcf095020
[ "MIT" ]
8
2019-11-25T16:39:33.000Z
2022-03-31T12:48:54.000Z
newsltd_etl/projects/tribune/datasets/daily_contract_states/schema.py
telia-oss/birgitta-example-etl
8bb32aac94486b4edc1fee3964cf7d2dcf095020
[ "MIT" ]
218
2019-09-09T11:11:59.000Z
2022-03-08T05:16:40.000Z
newsltd_etl/projects/tribune/datasets/daily_contract_states/schema.py
telia-oss/birgitta-example-etl
8bb32aac94486b4edc1fee3964cf7d2dcf095020
[ "MIT" ]
4
2020-07-21T15:33:40.000Z
2021-12-22T11:32:45.000Z
from birgitta.schema.schema import Schema from .....shared.schema.catalog.tribune import catalog FIELDS = [ ['datestamp', 'date'], ['customer_id', 'bigint'], ['product_code', 'string'], ['product', 'string'], ['product_name', 'string'], ['product_category', 'string'], ['brand_name', 'strin...
23.5
54
0.597872
66739c49bd405d87985051b33a315e6667806124
877
py
Python
hedp/opacity/hdf_interpolator.py
luli/hedp
ab78879106ef2d7b6e54ac6a69d24439ec8c9a8b
[ "CECILL-B" ]
9
2015-04-07T12:45:40.000Z
2020-10-26T14:40:49.000Z
hedp/opacity/hdf_interpolator.py
luli/hedp
ab78879106ef2d7b6e54ac6a69d24439ec8c9a8b
[ "CECILL-B" ]
9
2015-10-20T13:01:09.000Z
2016-09-09T15:24:36.000Z
hedp/opacity/hdf_interpolator.py
luli/hedp
ab78879106ef2d7b6e54ac6a69d24439ec8c9a8b
[ "CECILL-B" ]
12
2015-12-17T14:24:29.000Z
2021-04-26T13:42:48.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from opacplot2.opg_hdf5 import OpgHdf5 import numpy as np from scipy.interpolate import griddata def hdf_opacity(path, dens, tele, nu): op = OpgHdf5.open_file(path) dens_mg = op['dens'][:] temp_mg = op['temp'][:] groups = op['groups'][:] group_center = 0....
35.08
118
0.625998
0778605da4b389e5e189dff65ec6c0dfb28cd071
7,206
py
Python
tests/event/test_futures.py
sean5470/panda3d
ea2d4fecd4af1d4064c5fe2ae2a902ef4c9b903d
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
tests/event/test_futures.py
sean5470/panda3d
ea2d4fecd4af1d4064c5fe2ae2a902ef4c9b903d
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
tests/event/test_futures.py
sean5470/panda3d
ea2d4fecd4af1d4064c5fe2ae2a902ef4c9b903d
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
from panda3d import core import pytest import threading import time import sys if sys.version_info >= (3,): from concurrent.futures._base import TimeoutError, CancelledError else: TimeoutError = Exception CancelledError = Exception def test_future_cancelled(): fut = core.AsyncFuture() assert not...
23.096154
76
0.670969
bb42f8e97b83472b0ab02ae7df60fcfa376cdb60
74
py
Python
kobodl/globals.py
7a6163/kobo-book-downloader
c5c7d58dd97ba38c100adacd1aef9eacde27982b
[ "Unlicense" ]
1
2021-02-28T10:15:14.000Z
2021-02-28T10:15:14.000Z
kobodl/globals.py
7a6163/kobo-book-downloader
c5c7d58dd97ba38c100adacd1aef9eacde27982b
[ "Unlicense" ]
null
null
null
kobodl/globals.py
7a6163/kobo-book-downloader
c5c7d58dd97ba38c100adacd1aef9eacde27982b
[ "Unlicense" ]
null
null
null
from kobodl.settings import Settings class Globals: Settings = None
12.333333
36
0.756757
7f7bdb2117347e93c9f8d27e50648ee4b8188aaf
2,918
py
Python
dss/storage/bundles.py
ucsc-cgp/cgp-data-store
1d583d654a07a14df0c566a66fb6ba574be36cbc
[ "MIT" ]
null
null
null
dss/storage/bundles.py
ucsc-cgp/cgp-data-store
1d583d654a07a14df0c566a66fb6ba574be36cbc
[ "MIT" ]
21
2018-06-11T23:23:02.000Z
2018-11-30T00:37:13.000Z
dss/storage/bundles.py
ucsc-cgp/cgp-data-store
1d583d654a07a14df0c566a66fb6ba574be36cbc
[ "MIT" ]
null
null
null
from functools import lru_cache import json import typing from cloud_blobstore import BlobNotFoundError from dss import Config, Replica from dss.storage.identifiers import DSS_BUNDLE_KEY_REGEX, DSS_BUNDLE_TOMBSTONE_REGEX, BundleTombstoneID, BundleFQID from dss.storage.blobstore import test_object_exists @lru_cache(...
33.54023
120
0.69294
dc8338dfe05f09b1b9238ab549f2f8cae079e29b
7,020
py
Python
recipes/Python/80308_xgetopt_solutimanaging_commnad_line_args_usage/recipe-80308.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/80308_xgetopt_solutimanaging_commnad_line_args_usage/recipe-80308.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/80308_xgetopt_solutimanaging_commnad_line_args_usage/recipe-80308.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
#!/usr/bin/env python # # xgetopt.py # # Copyright (c) 2001 Alan Eldridge. All rights reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the "Artistic License" which is # distributed with the software in the file LICENSE. # # This program is distributed in the hop...
34.925373
82
0.550285
59d7b1e616193381852385994be5e3c8d6cbdd40
1,075
py
Python
membership/urls.py
810Teams/clubs-and-events-backend
cf429f43251ad7e77c0d9bc9fe91bb030ca8bae8
[ "MIT" ]
1
2021-06-25T17:16:13.000Z
2021-06-25T17:16:13.000Z
membership/urls.py
810Teams/clubs-and-events-backend
cf429f43251ad7e77c0d9bc9fe91bb030ca8bae8
[ "MIT" ]
null
null
null
membership/urls.py
810Teams/clubs-and-events-backend
cf429f43251ad7e77c0d9bc9fe91bb030ca8bae8
[ "MIT" ]
null
null
null
''' Membership Application URLs membership/urls.py @author Teerapat Kraisrisirikul (810Teams) ''' from django.urls import path, include from rest_framework.routers import DefaultRouter from membership.views import RequestViewSet, InvitationViewSet, MembershipViewSet, CustomMembershipLabelViewSet from memb...
37.068966
111
0.816744
d086741422bac93b17059ae26044af5a51129b77
3,869
py
Python
disent/dataset/data/_groundtruth__dsprites.py
nmichlo/msc-research
625e57eca77bbfbc4728ccebdb0733e1613bd258
[ "MIT" ]
1
2022-03-31T21:20:30.000Z
2022-03-31T21:20:30.000Z
disent/dataset/data/_groundtruth__dsprites.py
nmichlo/msc-research
625e57eca77bbfbc4728ccebdb0733e1613bd258
[ "MIT" ]
null
null
null
disent/dataset/data/_groundtruth__dsprites.py
nmichlo/msc-research
625e57eca77bbfbc4728ccebdb0733e1613bd258
[ "MIT" ]
null
null
null
# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ # MIT License # # Copyright (c) 2021 Nathan Juraj Michlo # # 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 Softwar...
47.182927
148
0.613078
fbc53927ff62ce504917eaf421bc68b07b508553
5,663
py
Python
lib/streamlit/server/routes.py
erikhopf/streamlit
4b110b6dd0d4958fe35a3d4c6f924a49787db9c5
[ "Apache-2.0" ]
null
null
null
lib/streamlit/server/routes.py
erikhopf/streamlit
4b110b6dd0d4958fe35a3d4c6f924a49787db9c5
[ "Apache-2.0" ]
null
null
null
lib/streamlit/server/routes.py
erikhopf/streamlit
4b110b6dd0d4958fe35a3d4c6f924a49787db9c5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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 applicabl...
32.176136
88
0.644535
6161697bd3d62686bcecbe67c9c3bd70108f1d4c
4,533
py
Python
haas_lib_bundles/python/docs/examples/air_pressure_detection/esp32/code/bleNetConfig.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/air_pressure_detection/esp32/code/bleNetConfig.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/air_pressure_detection/esp32/code/bleNetConfig.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import ubluetooth import json import gc import time import network from micropython import const _wlan = network.WLAN(network.STA_IF) _ble = ubluetooth.BLE() _bleNetConfigStatus = None _ble_adv_name = 'esp-node' _ble_tx = None _ble_rx = None _ble_msg = '' BLE_CONNECTED = const(0x00) BLE_DISCONNECTED = const(0x01) BL...
31.262069
86
0.516214
e3226376ca0b86bb3d01174c89d12e8dc7dd6462
8,693
py
Python
clinica/iotools/utils/cli.py
14thibea/clinica
3ccce34e330490d346e464235690972c22ac3a4f
[ "MIT" ]
1
2020-06-08T15:27:55.000Z
2020-06-08T15:27:55.000Z
clinica/iotools/utils/cli.py
14thibea/clinica
3ccce34e330490d346e464235690972c22ac3a4f
[ "MIT" ]
null
null
null
clinica/iotools/utils/cli.py
14thibea/clinica
3ccce34e330490d346e464235690972c22ac3a4f
[ "MIT" ]
null
null
null
from typing import List, Optional import click bids_directory = click.argument( "bids_directory", type=click.Path(exists=True, resolve_path=True) ) @click.group("iotools") def cli() -> None: """Tools to handle BIDS/CAPS datasets.""" pass @cli.command() @bids_directory @click.argument("output_bids_dire...
32.558052
118
0.683078
135da67a3b58d36eab3b2246c6af9ecb802f6c72
633
py
Python
StudyPlans/Algorithms/Algorithms1/permutation_in_string.py
Sinha-Ujjawal/LeetCode-Solutions
7889a1fa77fbd0798350d320a228dd1c883394df
[ "MIT" ]
null
null
null
StudyPlans/Algorithms/Algorithms1/permutation_in_string.py
Sinha-Ujjawal/LeetCode-Solutions
7889a1fa77fbd0798350d320a228dd1c883394df
[ "MIT" ]
null
null
null
StudyPlans/Algorithms/Algorithms1/permutation_in_string.py
Sinha-Ujjawal/LeetCode-Solutions
7889a1fa77fbd0798350d320a228dd1c883394df
[ "MIT" ]
null
null
null
from collections import Counter class Solution: def checkInclusion(self, s1: str, s2: str) -> bool: c1 = Counter(s1) c2 = Counter() for e, char in enumerate(s2): if e >= len(s1): c2[char] += 1 x = s2[e - len(s1)] if c2[x] == 1: ...
24.346154
56
0.42654
8c46ed51376e4dafe88560954242a1be32bc3624
4,204
py
Python
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_user_detail_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_user_detail_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_user_detail_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class ShowUserDetailRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the va...
26.607595
82
0.577783
b23b57719cecf4c37efaa5750c4117dc0df11aca
823
py
Python
test/mailtest.py
zhoushuopeng/helloflask
3abc917f4a18ab3c452339cfd0dd493298967f39
[ "MIT" ]
null
null
null
test/mailtest.py
zhoushuopeng/helloflask
3abc917f4a18ab3c452339cfd0dd493298967f39
[ "MIT" ]
null
null
null
test/mailtest.py
zhoushuopeng/helloflask
3abc917f4a18ab3c452339cfd0dd493298967f39
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import smtplib from email.mime.text import MIMEText from email.header import Header # 第三方 SMTP 服务 mail_host = "smtp.qq.com" # 设置服务器 mail_user = "391902958@qq.com" # 用户名 mail_pass = "yohfguiqctfqbijj" # 口令 sender = '391902958@qq.com' receivers = ['429240967@qq.com'] # 接收邮...
25.71875
60
0.680437
089d87948c00218fc2b72b6130e782813e58cd43
639
py
Python
clase_5/scripts_clase5.py
noctilukkas/python-programming
0ced5e1390e5501bae79fd30dd2baefd7bc09040
[ "Apache-2.0" ]
null
null
null
clase_5/scripts_clase5.py
noctilukkas/python-programming
0ced5e1390e5501bae79fd30dd2baefd7bc09040
[ "Apache-2.0" ]
null
null
null
clase_5/scripts_clase5.py
noctilukkas/python-programming
0ced5e1390e5501bae79fd30dd2baefd7bc09040
[ "Apache-2.0" ]
null
null
null
import requests import json r_get = requests.get("http://httpbin.org/get") r_post = requests.post("http://httpbin.org/post") r_put = requests.put("http://httpbin.org/put") r_delete = requests.delete("http://httpbin.org/delete") r_options = requests.options("http://httpbin.org/get") print(r_get.content) print(r_get.j...
22.821429
62
0.738654
055cefb880db8d985fd9db937240f329f0302ca5
393
py
Python
RestDemo/wsgi.py
pratikroy/django-rest-tutorial
156067dfaed43e12b984ba1f10654a659704a796
[ "MIT" ]
null
null
null
RestDemo/wsgi.py
pratikroy/django-rest-tutorial
156067dfaed43e12b984ba1f10654a659704a796
[ "MIT" ]
null
null
null
RestDemo/wsgi.py
pratikroy/django-rest-tutorial
156067dfaed43e12b984ba1f10654a659704a796
[ "MIT" ]
null
null
null
""" WSGI config for RestDemo project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
d842832711036886c57f8fab746625199ed1854d
8,280
py
Python
coremltools/converters/mil/mil/passes/test_fp16_compute_precision.py
seibert/coremltools
609188ebcfee2178293f0d4e93a5af2995c88645
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/passes/test_fp16_compute_precision.py
seibert/coremltools
609188ebcfee2178293f0d4e93a5af2995c88645
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/passes/test_fp16_compute_precision.py
seibert/coremltools
609188ebcfee2178293f0d4e93a5af2995c88645
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from coremltools.converters.mil.mil import Builder as mb from coremltools.converters.mil.mil.passes i...
37.297297
102
0.595894
e35da128917360708b1207611db16e6f892e72d2
3,643
py
Python
sdk/python/pulumi_azure_nextgen/eventhub/v20180101preview/get_namespace_network_rule_set.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/eventhub/v20180101preview/get_namespace_network_rule_set.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/eventhub/v20180101preview/get_namespace_network_rule_set.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# 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 from ... import _utilities, _tables from...
34.695238
170
0.664013
5ad9d76ab7e534a768e6cc9a43924f633dbb7e18
7,225
py
Python
vision/classification_and_detection/python/backend_tvm_dev_multiple_batches.py
octoml/mlcommons-inference
a795027881466aed76f8ac7feae791383565f21c
[ "Apache-2.0" ]
1
2021-11-15T03:52:12.000Z
2021-11-15T03:52:12.000Z
vision/classification_and_detection/python/backend_tvm_dev_multiple_batches.py
octoml/mlcommons-inference
a795027881466aed76f8ac7feae791383565f21c
[ "Apache-2.0" ]
2
2021-07-12T15:47:27.000Z
2021-07-27T15:47:31.000Z
vision/classification_and_detection/python/backend_tvm_dev_multiple_batches.py
octoml/mlcommons-inference
a795027881466aed76f8ac7feae791383565f21c
[ "Apache-2.0" ]
null
null
null
""" TVM backend (https://github.com/apache/tvm) """ import onnx import onnxruntime as rt import backend import tvm from tvm import relay import numpy as np from threading import Lock import re import os class BackendTVM(backend.Backend): def __init__(self): super(BackendTVM, self).__init__() ...
29.251012
98
0.563599
4cf60c1989ae346002e70c19cee38090347e901c
2,526
py
Python
etc/scripts/updateignorables.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
1
2020-06-24T16:03:52.000Z
2020-06-24T16:03:52.000Z
etc/scripts/updateignorables.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
1
2021-06-02T02:54:43.000Z
2021-06-02T02:54:43.000Z
etc/scripts/updateignorables.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2019 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB ...
32.384615
82
0.738717
3c6630a82f3e1802a1e0c4d08cbcc0939d52ba4c
245
py
Python
Python/190reverse_bits.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
4
2020-03-17T03:08:51.000Z
2022-03-14T17:33:28.000Z
Python/190reverse_bits.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
null
null
null
Python/190reverse_bits.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
3
2021-04-29T16:51:02.000Z
2022-03-19T17:37:56.000Z
class Solution: def reverseBits(self, n): """ :type n: int :rtype: int """ n_bin = bin(n)[2:] n_bin = '0' * (32 - len(n_bin)) + n_bin result = int(n_bin[::-1], 2) return result
22.272727
47
0.436735
c9899017fabe8cc1f8afc143d5c09e0222f02ce6
61
py
Python
python/test-data/testWrongNumOfArguments.py
Panteon32Om/write-your-python-program
615b73113466c1c8f901fad0a076b480f62ad437
[ "BSD-3-Clause" ]
1
2021-09-30T10:17:57.000Z
2021-09-30T10:17:57.000Z
python/test-data/testWrongNumOfArguments.py
Panteon32Om/write-your-python-program
615b73113466c1c8f901fad0a076b480f62ad437
[ "BSD-3-Clause" ]
47
2020-11-16T14:02:52.000Z
2022-03-18T12:44:38.000Z
python/test-data/testWrongNumOfArguments.py
Panteon32Om/write-your-python-program
615b73113466c1c8f901fad0a076b480f62ad437
[ "BSD-3-Clause" ]
4
2020-10-28T13:54:44.000Z
2022-01-20T17:36:24.000Z
def foo(x: int, y: float) -> float: return x + y foo(1)
12.2
35
0.540984
1382310a1efee4fe87fe24127e8633dc9480e2fa
294
py
Python
sars_dashboard/conftest.py
thomasbtf/sars-dashboard
4b98e9549af580c1a1822ccdeb7b81dd1802752a
[ "MIT" ]
null
null
null
sars_dashboard/conftest.py
thomasbtf/sars-dashboard
4b98e9549af580c1a1822ccdeb7b81dd1802752a
[ "MIT" ]
46
2021-12-11T20:39:41.000Z
2022-03-28T02:27:31.000Z
sars_dashboard/conftest.py
thomasbtf/sars-dashboard
4b98e9549af580c1a1822ccdeb7b81dd1802752a
[ "MIT" ]
null
null
null
import pytest from sars_dashboard.users.models import User from sars_dashboard.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> User: return UserFactory()
19.6
60
0.785714
65b460a508c8b6d0cf62317d63c73316f32a6f42
290
py
Python
ramda/split_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
56
2018-08-06T08:44:58.000Z
2022-03-17T09:49:03.000Z
ramda/split_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
28
2019-06-17T11:09:52.000Z
2022-02-18T16:59:21.000Z
ramda/split_test.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
5
2019-09-18T09:24:38.000Z
2021-07-21T08:40:23.000Z
from ramda import * from ramda.private.asserts import * path_components = split("/") def split_test(): assert_equal( tail(path_components("/usr/local/bin/node")), ["usr", "local", "bin", "node"] ) assert_equal(split(".", "a.b.c.xyz.d"), ["a", "b", "c", "xyz", "d"])
22.307692
85
0.582759
e91fb4c9b64832f672def9d460a6e2b9c2aeb92c
614
py
Python
09-functional-programming/higherorderfunctions/map-examples.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
1
2020-05-11T13:58:29.000Z
2020-05-11T13:58:29.000Z
09-functional-programming/higherorderfunctions/map-examples.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
null
null
null
09-functional-programming/higherorderfunctions/map-examples.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
null
null
null
from Person import Person data = [1, 3, 5, 2, 7, 4, 10] print('data:', data) # Apply the lambda function to each element in the list # using the map function d1 = list(map(lambda i: i + 1, data)) print('d1', d1) def add_one(i): return i + 1 # Apply the add_one function to each element in the # list using the ...
20.466667
69
0.638436
5aa2157a2f10b47fc3752053bbdb4e432a79fc24
5,051
py
Python
act/retrievals/aeri.py
zssherman/ACT
db87008aa6649d3d21b79ae97ea0f11d7f1f1935
[ "BSD-3-Clause" ]
62
2020-01-13T19:48:49.000Z
2022-03-22T07:56:37.000Z
act/retrievals/aeri.py
zssherman/ACT
db87008aa6649d3d21b79ae97ea0f11d7f1f1935
[ "BSD-3-Clause" ]
215
2020-01-07T20:17:11.000Z
2022-03-31T18:49:57.000Z
act/retrievals/aeri.py
zssherman/ACT
db87008aa6649d3d21b79ae97ea0f11d7f1f1935
[ "BSD-3-Clause" ]
16
2020-01-13T21:25:55.000Z
2022-03-26T18:01:29.000Z
""" Functions for aeri retrievals. """ import numpy as np from scipy.optimize import brentq from act.retrievals.irt import irt_response_function, sum_function_irt def aeri2irt(aeri_ds, wnum_name='wnum', rad_name='mean_rad', hatch_name='hatchOpen', tolerance=0.1, temp_low=150.0, temp_high=320.0, maxiter...
39.771654
98
0.668382
d10b9d59ece7c2bed42a254f927457b9fe821e67
6,252
py
Python
aws_consoler/cli.py
aph3rson/aws_consoler
cbd99010c248aef0f24afcbdf9219e85d36f5213
[ "BSD-3-Clause" ]
null
null
null
aws_consoler/cli.py
aph3rson/aws_consoler
cbd99010c248aef0f24afcbdf9219e85d36f5213
[ "BSD-3-Clause" ]
null
null
null
aws_consoler/cli.py
aph3rson/aws_consoler
cbd99010c248aef0f24afcbdf9219e85d36f5213
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Console script for aws_consoler.""" import argparse import sys import webbrowser import logging from requests.exceptions import HTTPError from aws_consoler.logic import run LOG_FORMAT = "%(asctime)s [%(name)s] %(levelname)s: %(message)s" def main(argv=sys.argv[1:]): """Console script...
38.121951
78
0.62572
724fd4f66781280115024dbabeecb6e853a166ee
3,400
py
Python
dl_multi/tasks/tfrecord.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
1
2020-04-14T10:19:37.000Z
2020-04-14T10:19:37.000Z
dl_multi/tasks/tfrecord.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
null
null
null
dl_multi/tasks/tfrecord.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
null
null
null
# =========================================================================== # tfrecord.py ---------------------------------------------------------------- # =========================================================================== # import ------------------------------------------------------------------ # --...
44.736842
129
0.534412
eb83517578ad999c392af3460c53e448381db53f
7,592
py
Python
mutt-ical.py
MEschenbacher/mutt-ical
01844f1a84d4cd930980a4b86fa0f95d50e0ba22
[ "MIT" ]
1
2021-03-12T15:19:59.000Z
2021-03-12T15:19:59.000Z
mutt-ical.py
MEschenbacher/mutt-ical
01844f1a84d4cd930980a4b86fa0f95d50e0ba22
[ "MIT" ]
null
null
null
mutt-ical.py
MEschenbacher/mutt-ical
01844f1a84d4cd930980a4b86fa0f95d50e0ba22
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ This script is meant as a simple way to reply to ical invitations from mutt. See README for instructions and LICENSE for licensing information. """ __author__="Martin Sander" __license__="MIT" import vobject import tempfile, time import os, sys import warnings from datetime import datetime...
34.509091
97
0.640411
a026cf28a1aeded5a562a9929419ed685f12fa92
1,363
py
Python
scan.py
sheldorTheConqueror73/Naughtius-Delphynius
7e9c7eb262112ceba959d3ed8c4c0df5beef39f5
[ "MIT" ]
null
null
null
scan.py
sheldorTheConqueror73/Naughtius-Delphynius
7e9c7eb262112ceba959d3ed8c4c0df5beef39f5
[ "MIT" ]
null
null
null
scan.py
sheldorTheConqueror73/Naughtius-Delphynius
7e9c7eb262112ceba959d3ed8c4c0df5beef39f5
[ "MIT" ]
null
null
null
from scapy.all import * import info import threading from time import sleep MODE_ARP = 1 ARP_WHO_HAS = 1 ARP_IS_AT = 2 discovered = [] def arp_scan(host, current): p = Ether(dst=ETHER_BROADCAST) / ARP(op=ARP_WHO_HAS, pdst=current, psrc=host) return srp1(p, timeout=0.001, verbose=0) # shortest response time ...
25.716981
123
0.683052
6fd0f52d82ee1d7dfeca73f7d4bd40cee18b36d6
535
py
Python
miraiml/__init__.py
arthurpaulino/mirai_ml
687d4d25eaf413993a897799505b586e0ac076b5
[ "MIT" ]
26
2019-04-09T17:26:08.000Z
2021-09-03T02:14:52.000Z
miraiml/__init__.py
arthurpaulino/mirai_ml
687d4d25eaf413993a897799505b586e0ac076b5
[ "MIT" ]
63
2019-04-10T11:58:00.000Z
2020-06-27T15:22:34.000Z
miraiml/__init__.py
arthurpaulino/miraiml
687d4d25eaf413993a897799505b586e0ac076b5
[ "MIT" ]
5
2019-04-23T19:26:45.000Z
2020-07-03T00:55:36.000Z
""" :mod:`miraiml` provides the following components: - :class:`miraiml.SearchSpace` represents the search space for a base model - :class:`miraiml.Config` defines the general behavior for :class:`miraiml.Engine` - :class:`miraiml.Engine` manages the optimization process - :mod:`miraiml.pipeline` has some features rel...
35.666667
82
0.743925
d4e427dbd0c3f5e06f9c09834c1798d33fa3a734
5,029
py
Python
proj/scripts/cluster/analysis/overcluster_fewer_labels_example.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
proj/scripts/cluster/analysis/overcluster_fewer_labels_example.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
proj/scripts/cluster/analysis/overcluster_fewer_labels_example.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import os import pickle from sys import stdout as sysout import torch import proj.archs as archs from proj.utils.cluster.cluster_eval import cluster_subheads_eval from proj.utils.cluster.data import make_STL_data, make_CIFAR_data from proj.utils.cluster.transform...
38.684615
105
0.662159
10e9b117f67c91edc86d9e77e32a97484575f120
148
py
Python
homura/modules/__init__.py
Xiangyu-Han/homura
c366ca70b4b65f6a4809bf76926bbd926320262e
[ "Apache-2.0" ]
1
2021-01-12T08:35:44.000Z
2021-01-12T08:35:44.000Z
homura/modules/__init__.py
Xiangyu-Han/homura
c366ca70b4b65f6a4809bf76926bbd926320262e
[ "Apache-2.0" ]
null
null
null
homura/modules/__init__.py
Xiangyu-Han/homura
c366ca70b4b65f6a4809bf76926bbd926320262e
[ "Apache-2.0" ]
null
null
null
from .attention import KeyValAttention from .discretization import * from .ema import EMANet, exponential_moving_average_ from .functional import *
29.6
52
0.837838
2de17e2bf0accaa25bfb054a7866cebbe049f079
30,748
py
Python
ludwig/experiment.py
mohi7solanki/ludwig
fd20d91c72928a69f219dd018e0e64a7e6d6ae64
[ "Apache-2.0" ]
1
2020-03-28T05:21:37.000Z
2020-03-28T05:21:37.000Z
ludwig/experiment.py
mohi7solanki/ludwig
fd20d91c72928a69f219dd018e0e64a7e6d6ae64
[ "Apache-2.0" ]
null
null
null
ludwig/experiment.py
mohi7solanki/ludwig
fd20d91c72928a69f219dd018e0e64a7e6d6ae64
[ "Apache-2.0" ]
2
2020-03-09T07:19:05.000Z
2020-03-09T07:20:42.000Z
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 # # Unles...
36.174118
82
0.643717
473775b9641b4cb839a3d6df6fcc30791f9fddcb
275
py
Python
2936.py
Laelapz/OBI-CODES
67bbf506d7ce4b8acc71b6af643323ae850ae42a
[ "MIT" ]
1
2022-03-04T20:55:48.000Z
2022-03-04T20:55:48.000Z
2936.py
Laelapz/URI-CODES
67bbf506d7ce4b8acc71b6af643323ae850ae42a
[ "MIT" ]
null
null
null
2936.py
Laelapz/URI-CODES
67bbf506d7ce4b8acc71b6af643323ae850ae42a
[ "MIT" ]
null
null
null
/*Codigo numero: 2936 Em: Python Com titulo: Quanta*/ porcoes = [] soma = 0 porcoes.append(300) porcoes.append(1500) porcoes.append(600) porcoes.append(1000) porcoes.append(150) for i in range(5):     val = int(input())     soma = soma + val*porcoes[i] print(soma+225)
13.75
32
0.68
37268395c0ee6f331ecba5db12ee78dbb5635e74
13,153
py
Python
Web/Applications/DataProber/server/pv_web_data_prober.py
JiangQ1/TestParaView
09e76381ff772c9948041339ba6140daf09fe7c8
[ "Apache-2.0" ]
null
null
null
Web/Applications/DataProber/server/pv_web_data_prober.py
JiangQ1/TestParaView
09e76381ff772c9948041339ba6140daf09fe7c8
[ "Apache-2.0" ]
null
null
null
Web/Applications/DataProber/server/pv_web_data_prober.py
JiangQ1/TestParaView
09e76381ff772c9948041339ba6140daf09fe7c8
[ "Apache-2.0" ]
5
2016-04-14T13:42:37.000Z
2021-05-22T04:59:42.000Z
r""" This module is a ParaViewWeb server application. The following command line illustrates how to use it:: $ pvpython .../pv_web_data_prober.py --data-dir /.../path-to-your-data-directory --data-dir Path used to list that directory on the server and let the client choose a ...
38.571848
111
0.589751
5e773d6bab786de1d20b6492db99dc2a0fa5c0f6
57,041
py
Python
gensrc/script/doris_builtins_functions.py
ucasfl/incubator-doris
8ea0ae4792dd85197c33408c49d24e68cee5d294
[ "Apache-2.0" ]
2
2021-06-25T08:33:18.000Z
2021-08-25T08:35:06.000Z
gensrc/script/doris_builtins_functions.py
ucasfl/incubator-doris
8ea0ae4792dd85197c33408c49d24e68cee5d294
[ "Apache-2.0" ]
null
null
null
gensrc/script/doris_builtins_functions.py
ucasfl/incubator-doris
8ea0ae4792dd85197c33408c49d24e68cee5d294
[ "Apache-2.0" ]
1
2022-01-12T08:34:49.000Z
2022-01-12T08:34:49.000Z
#!/usr/bin/env python # encoding: 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, Ver...
63.028729
134
0.721201
7be128217b7042958d3e2548d4ba7859a49c1a4f
1,468
py
Python
translators/rman_group_translator.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
12
2019-05-03T21:58:15.000Z
2022-02-24T07:02:21.000Z
translators/rman_group_translator.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
4
2019-03-07T18:20:16.000Z
2020-09-24T21:53:15.000Z
translators/rman_group_translator.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
3
2019-05-25T01:17:09.000Z
2019-09-13T14:43:12.000Z
from .rman_translator import RmanTranslator from ..rman_sg_nodes.rman_sg_group import RmanSgGroup from ..rman_utils import transform_utils from ..rman_utils import object_utils from mathutils import Matrix import math class RmanGroupTranslator(RmanTranslator): def __init__(self, rman_scene): super().__ini...
43.176471
94
0.699591
91c373f812b2df6f572d349a3ce1071adba3cbdc
83,355
py
Python
code/python-neo/neo/rawio/blackrockrawio.py
qniksefat/macaque_brain_causality_test
24cd5caee3ae79066ca37844cab931d04dcad977
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
code/python-neo/neo/rawio/blackrockrawio.py
qniksefat/macaque_brain_causality_test
24cd5caee3ae79066ca37844cab931d04dcad977
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
code/python-neo/neo/rawio/blackrockrawio.py
qniksefat/macaque_brain_causality_test
24cd5caee3ae79066ca37844cab931d04dcad977
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Module for reading data from files in the Blackrock in raw format. This work is based on: * Chris Rodgers - first version * Michael Denker, Lyuba Zehl - second version * Samuel Garcia - third version * Lyuba Zehl, Michael Denker - fourth version * Samuel Garcia - fifth version Th...
43.278816
99
0.55266
9bb1b3b4a83c8d50a98ea6aa8ff894ddd3fa019c
8,937
py
Python
panel/tests/test_layout.py
lebedov/panel
8efca0e00efbd2b20bc18e0220c564fed4a16b0e
[ "BSD-3-Clause" ]
null
null
null
panel/tests/test_layout.py
lebedov/panel
8efca0e00efbd2b20bc18e0220c564fed4a16b0e
[ "BSD-3-Clause" ]
null
null
null
panel/tests/test_layout.py
lebedov/panel
8efca0e00efbd2b20bc18e0220c564fed4a16b0e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import pytest from bokeh.models import (Div, Row as BkRow, Tabs as BkTabs, Column as BkColumn, Panel as BkPanel, WidgetBox as BkWidgetBox, Spacer as BkSpacer) from panel.layout import Column, Row, Tabs, Spacer from panel.pane i...
27.498462
85
0.644735
2ccbbb1c80bba8f28f56a2c6f3f59fffa001b4c9
1,964
py
Python
Labs/Lab 1 Midway RCC and mpi4py/mpi_zmat.py
cindychu/LargeScaleComputing_S20
913b0155f47914c258b503df677067a510dd23f5
[ "MIT" ]
null
null
null
Labs/Lab 1 Midway RCC and mpi4py/mpi_zmat.py
cindychu/LargeScaleComputing_S20
913b0155f47914c258b503df677067a510dd23f5
[ "MIT" ]
null
null
null
Labs/Lab 1 Midway RCC and mpi4py/mpi_zmat.py
cindychu/LargeScaleComputing_S20
913b0155f47914c258b503df677067a510dd23f5
[ "MIT" ]
null
null
null
from mpi4py import MPI import matplotlib.pyplot as plt import numpy as np import time import scipy.stats as sts def sim_index_parallel(n_runs): # Get rank of process and overall size of communicator: comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() #set basic parameters rho...
28.463768
77
0.636456
70eea6616cae22fa2bc458770a9cdc730ba08be6
650
py
Python
var/spack/repos/builtin/packages/perl-math-cephes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/perl-math-cephes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/perl-math-cephes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlMathCephes(PerlPackage): """This module provides an interface to over 150 functions of...
38.235294
96
0.749231
c6f71d0761a59e0d6f63680beaf3acad04d7d213
625
py
Python
caffe2/python/helpers/control_ops.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
caffe2/python/helpers/control_ops.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
caffe2/python/helpers/control_ops.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
## @package control_ops # Module caffe2.python.helpers.control_ops from caffe2.python.control_ops_util import add_if_op, add_while_op def cond(model, cond_blob, external_blobs, then_model, else_model=None): """Condition""" add_if_op( model.net, cond_blob, external_blobs, t...
21.551724
72
0.6704
5644229ed9997c7cf93a97adb971413ef43a19b9
1,848
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/antipro/apis/AddProtectedIpRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/antipro/apis/AddProtectedIpRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/antipro/apis/AddProtectedIpRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
36.235294
148
0.738095
65aec0bb900014e6f1017c23a4dedce4c64dec57
1,510
py
Python
algorithms/core/python/algorithms/utils/backtrack.py
victor-iyiola/algorithms
9787f259b232b74abfddf1e908924d69115bd85b
[ "MIT" ]
1
2018-10-19T04:50:31.000Z
2018-10-19T04:50:31.000Z
algorithms/core/python/algorithms/utils/backtrack.py
victor-iyiola/algorithms
9787f259b232b74abfddf1e908924d69115bd85b
[ "MIT" ]
null
null
null
algorithms/core/python/algorithms/utils/backtrack.py
victor-iyiola/algorithms
9787f259b232b74abfddf1e908924d69115bd85b
[ "MIT" ]
null
null
null
"""Backtracking algorithm. @description Backtracking is a form of recursion. But it involves choosing only option out of any possibilities. We begin by choosing an option and backtrack from it, if we reach a state where we conclude that this specific option does not give the required solution. W...
29.038462
78
0.651656
239c56c88a58b51237b6c24d481f6a28a8fef263
430
py
Python
gists/demo_client_part2.py
danruiyot/face-recongition-flask
77bda6d663c5c2758925275367baf66b26005e25
[ "MIT" ]
14
2019-10-21T02:38:05.000Z
2021-09-22T01:51:57.000Z
gists/demo_client_part2.py
danruiyot/face-recongition-flask
77bda6d663c5c2758925275367baf66b26005e25
[ "MIT" ]
5
2020-06-06T01:28:04.000Z
2021-06-10T19:46:53.000Z
gists/demo_client_part2.py
danruiyot/face-recongition-flask
77bda6d663c5c2758925275367baf66b26005e25
[ "MIT" ]
7
2019-10-17T18:21:31.000Z
2021-06-16T17:56:17.000Z
import requests import json def test_face_rec(): url = 'http://127.0.0.1:5001/face_rec' # open file in binary mode files = {'file': open('sample_images/peter2.jpg', 'rb')} params = {'facial_features': 'true', 'face_locations':'true'} resp = requests.post(url, files = files, params = params) ...
33.076923
65
0.64186
72e2b268c09550faa93d80793332ca973cc76856
52,273
py
Python
ardrone2.py
robotika/heidi
a5e2b1b12dac5d5cc79ab2903c88886b2fbb3e5f
[ "MIT" ]
11
2015-03-04T17:48:23.000Z
2021-07-08T02:44:49.000Z
ardrone2.py
robotika/heidi
a5e2b1b12dac5d5cc79ab2903c88886b2fbb3e5f
[ "MIT" ]
2
2015-04-17T15:00:04.000Z
2017-03-26T17:22:47.000Z
ardrone2.py
robotika/heidi
a5e2b1b12dac5d5cc79ab2903c88886b2fbb3e5f
[ "MIT" ]
4
2015-04-15T07:49:13.000Z
2020-05-30T07:46:26.000Z
#!/usr/bin/python """ AR Drone 2.0 Python interface usage: ./ardrone2.py <task|replay> [<replay log> [F]] """ # interface based on https://github.com/venthur/python-ardrone import sys import datetime import struct import socket import gzip import math import os if sys.platform == 'win32': windows = True e...
33.210292
163
0.624892
4808fa5c68ea4843c8f5ee5858e7890de5aece57
5,303
py
Python
insights/parsers/yumlog.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/parsers/yumlog.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/parsers/yumlog.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
""" YumLog - file ``/var/log/yum.log`` ================================== This module provides parsing for the ``/var/log/yum.log`` file. The ``YumLog`` class implements parsing for the file, which looks like:: May 13 15:54:49 Installed: libevent-2.0.21-4.el7.x86_64 May 13 15:54:49 Installed: tmux-1.8-4.el7.x...
34.888158
82
0.600981
2186c723556a6289798ceca779a749bc6d1281a0
3,915
py
Python
tests/apitests/python/test_sign_image.py
tk103331/harbor
3a6b675dbd8102794b1965b70d8eae135e1e8fe2
[ "Apache-2.0" ]
null
null
null
tests/apitests/python/test_sign_image.py
tk103331/harbor
3a6b675dbd8102794b1965b70d8eae135e1e8fe2
[ "Apache-2.0" ]
1
2019-08-02T11:21:05.000Z
2019-08-02T11:21:05.000Z
tests/apitests/python/test_sign_image.py
tk103331/harbor
3a6b675dbd8102794b1965b70d8eae135e1e8fe2
[ "Apache-2.0" ]
1
2019-08-02T12:46:17.000Z
2019-08-02T12:46:17.000Z
from __future__ import absolute_import import unittest from library.sign import sign_image from testutils import ADMIN_CLIENT from testutils import harbor_server from testutils import TEARDOWN from library.artifact import Artifact from library.project import Project from library.user import User from library.repositor...
46.058824
169
0.704725
59246b37658a3c64de65b343908aaf8cbd92ebe5
491
py
Python
setup.py
acetylen/asyncev
4c02a7bc9ca393de5b5dd93dbf995c6a1a925262
[ "MIT" ]
null
null
null
setup.py
acetylen/asyncev
4c02a7bc9ca393de5b5dd93dbf995c6a1a925262
[ "MIT" ]
null
null
null
setup.py
acetylen/asyncev
4c02a7bc9ca393de5b5dd93dbf995c6a1a925262
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md") as f: readme = f.read() with open("LICENSE") as f: license = f.read() setup( name="asyncev", description="Asynchronous named events with no dependencies.", long_description=readme, author="Emil Tylén", ...
25.842105
70
0.631365
262c3d2b4459dbf5cec4cab7088fd1213c376c0b
3,911
py
Python
ansible/lib/ansible/modules/extras/monitoring/airbrake_deployment.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/monitoring/airbrake_deployment.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/monitoring/airbrake_deployment.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2013 Bruce Pennypacker <bruce@pennypacker.org> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version...
29.628788
118
0.661723
a8a19d194f2f2fed2ddb764882775e2e2414353b
806
py
Python
src/Processor.py
pashatyl/crawler
aabb3ce8415a50b18b4fe804aa83275ac8d8eb71
[ "MIT" ]
1
2020-10-18T21:00:08.000Z
2020-10-18T21:00:08.000Z
src/Processor.py
pashatyl/crawler
aabb3ce8415a50b18b4fe804aa83275ac8d8eb71
[ "MIT" ]
null
null
null
src/Processor.py
pashatyl/crawler
aabb3ce8415a50b18b4fe804aa83275ac8d8eb71
[ "MIT" ]
null
null
null
import re from bs4 import BeautifulSoup class Processor: @staticmethod def clear_anchor(url: str): idx = url.find('#') if idx == -1: return url return url[:idx] @staticmethod def get_page_links(page: BeautifulSoup): return [x for x in (Proc...
27.793103
90
0.558313
c88f23f9f6085c5d166b7c0d81f43889dbf2f81d
608
py
Python
app/mod_user/models.py
myadventure/myadventure-front
bd2d490c3b179698bcee089056a21f3373717a1d
[ "Apache-2.0" ]
null
null
null
app/mod_user/models.py
myadventure/myadventure-front
bd2d490c3b179698bcee089056a21f3373717a1d
[ "Apache-2.0" ]
null
null
null
app/mod_user/models.py
myadventure/myadventure-front
bd2d490c3b179698bcee089056a21f3373717a1d
[ "Apache-2.0" ]
null
null
null
""" models.py User module models. """ from app.mod_auth.models import MyAdventure api = MyAdventure() class User: email = None facebook_id = None name = None def __init__(self, user_id): self.id = user_id @property def is_active(self): return True @property def is_...
16.432432
78
0.610197
e2f89349120ae3260dc94d261f1df29d7dfeb06d
1,140
py
Python
sdk/cosmos/azure-cosmos/azure/cosmos/_version.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/azure/cosmos/_version.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/azure/cosmos/_version.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2014 Microsoft Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
49.565217
80
0.777193
f47f2c7f81e120a817a263aeaf7752e404533c6b
2,278
py
Python
src/streamlink/plugins/bliptv.py
Latent-Logic/streamlink
d550d0988116898c315f6b0777defadbbdacad95
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/bliptv.py
Latent-Logic/streamlink
d550d0988116898c315f6b0777defadbbdacad95
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/bliptv.py
Latent-Logic/streamlink
d550d0988116898c315f6b0777defadbbdacad95
[ "BSD-2-Clause" ]
null
null
null
import re from streamlink.plugin import Plugin, PluginError from streamlink.plugin.api import http from streamlink.stream import HTTPStream _url_re = re.compile("(http(s)?://)?blip.tv/.*-(?P<videoid>\d+)") VIDEO_GET_URL = 'http://player.blip.tv/file/get/{0}' SINGLE_VIDEO_URL = re.compile('.*\.((mp4)|(mov)|(m4v)|(flv)...
30.783784
111
0.6036
5cc54eac887e6b1383884f3b22fbf80d52e17957
1,173
py
Python
tklearn/matrices/scorer.py
aethersoft/textkit-learn
8b25b19d394fb361dde4427ed3b84d63552b7cc8
[ "MIT" ]
null
null
null
tklearn/matrices/scorer.py
aethersoft/textkit-learn
8b25b19d394fb361dde4427ed3b84d63552b7cc8
[ "MIT" ]
null
null
null
tklearn/matrices/scorer.py
aethersoft/textkit-learn
8b25b19d394fb361dde4427ed3b84d63552b7cc8
[ "MIT" ]
null
null
null
from typing import Text, Iterable, Any from sklearn.metrics import get_scorer class ScoreFunction: """Score Function""" def __init__(self, scorer: Text): """Initialize score function Parameters ---------- scorer : Text Scikit-learn Name of scorer. """ ...
21.722222
77
0.584825
f419d948a5c63e9b2f3d1f66be89df88bfc67675
4,798
py
Python
pytorchvideo/models/byol.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
2,391
2021-04-13T18:10:18.000Z
2022-03-31T15:07:09.000Z
pytorchvideo/models/byol.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
156
2021-04-13T18:51:49.000Z
2022-03-31T08:05:50.000Z
pytorchvideo/models/byol.py
kevinmtian/pytorchvideo
168e16859a6029ef8ebeb476f9163bebb6c6b87d
[ "Apache-2.0" ]
231
2021-04-14T05:04:55.000Z
2022-03-22T09:35:46.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import copy from typing import Callable, Optional import torch import torch.nn as nn import torch.nn.functional as F class BYOL(nn.Module): """ Bootstrap Your Own Latent A New Approach to Self-Supervised Learning Details can be foun...
33.319444
87
0.57524
d18c55b34f1d5d930c67ce4d77c981ddd88d3d2d
365
py
Python
1185.py
gabrielsilvadev/URI-python-3
c723d094a2d8cfcef471321dc469c39aee2df3c8
[ "MIT" ]
5
2020-10-12T16:21:31.000Z
2021-12-15T20:27:22.000Z
1185.py
gabrielsilvadev/URI-python-3
c723d094a2d8cfcef471321dc469c39aee2df3c8
[ "MIT" ]
null
null
null
1185.py
gabrielsilvadev/URI-python-3
c723d094a2d8cfcef471321dc469c39aee2df3c8
[ "MIT" ]
5
2019-06-21T04:26:14.000Z
2021-05-01T14:15:44.000Z
m=[] letra = input() for i in range(12): m.append([]) for j in range(12): x = float(input()) m[i].append(x) c = 12 s = 0 cont = 0 for i in range(11): c -=1 for j in range(c): s += m[i][j] cont += 1 if letra == 'S': print('{}'.format(s)) if letra == 'M': med = s...
14.6
31
0.443836
267b871d3c50a0c20c2df86e98d6b8098a8b03e4
14,271
py
Python
docs/source/development/quadopt_example/_quadratic_programming.py
jzenn/probnum
cb9e5ec07384913049a312ac62cfec88970f1c8d
[ "MIT" ]
1
2021-04-14T14:17:12.000Z
2021-04-14T14:17:12.000Z
docs/source/development/quadopt_example/_quadratic_programming.py
jzenn/probnum
cb9e5ec07384913049a312ac62cfec88970f1c8d
[ "MIT" ]
null
null
null
docs/source/development/quadopt_example/_quadratic_programming.py
jzenn/probnum
cb9e5ec07384913049a312ac62cfec88970f1c8d
[ "MIT" ]
null
null
null
import collections.abc from functools import partial from typing import Callable, Dict, Iterable, Optional, Tuple, Union import numpy as np import probnum as pn import probnum.linalg.linops as linops import probnum.randvars as rvs import probnum.utils as _utils from probnum.type import FloatArgType, IntArgType, Rando...
34.892421
93
0.639619
e41a4c7d97abc16447b2312268f8e4f46486bfff
841
py
Python
tests/decisions/g11_test.py
benoitc/pywebmachine
ee32a61e0dbcd89bc04391554968bd0b43f4c1cd
[ "MIT" ]
5
2015-03-29T03:20:10.000Z
2020-01-21T11:07:47.000Z
tests/decisions/g11_test.py
benoitc/pywebmachine
ee32a61e0dbcd89bc04391554968bd0b43f4c1cd
[ "MIT" ]
null
null
null
tests/decisions/g11_test.py
benoitc/pywebmachine
ee32a61e0dbcd89bc04391554968bd0b43f4c1cd
[ "MIT" ]
1
2015-07-18T03:26:39.000Z
2015-07-18T03:26:39.000Z
import t class g11(t.Test): class TestResource(t.Resource): def generate_etag(self, req, rsp): return "bar" def resource_exists(self, req, rsp): return True def to_html(self, req, rsp): return "foo" def test_no_if_match(self): ...
25.484848
56
0.530321
c4f4b62046111c662c736718737d3707d774fc9b
18,395
py
Python
metaflow/plugins/env_escape/server.py
saikonen/metaflow
48e37bea3ea4e83ddab8227869bbe56b52d9957d
[ "Apache-2.0" ]
7
2020-07-24T17:07:58.000Z
2021-05-19T21:47:12.000Z
metaflow/plugins/env_escape/server.py
saikonen/metaflow
48e37bea3ea4e83ddab8227869bbe56b52d9957d
[ "Apache-2.0" ]
55
2020-07-20T16:56:27.000Z
2022-03-28T12:51:15.000Z
metaflow/plugins/env_escape/server.py
isabella232/metaflow
bc13048d00241e80b959f71f33e4e6b8a2748b3f
[ "Apache-2.0" ]
6
2020-10-15T18:38:35.000Z
2021-06-20T03:05:43.000Z
import importlib import itertools import pickle import socket import sys import traceback from . import data_transferer from .consts import ( FIELD_ARGS, FIELD_CONTENT, FIELD_KWARGS, FIELD_MSGTYPE, FIELD_OPTYPE, FIELD_TARGET, MSG_CONTROL, MSG_EXCEPTION, MSG_INTERNAL_ERROR, MSG_...
39.55914
101
0.589508
66bb46f7245d0bc2e2b834bce3d2738a9116521c
39,716
py
Python
gui/kivy/main_window.py
gertjaap/electrum-vtc
85e3432fdb0c221b93fc3ef4a0d4b96397cf4215
[ "MIT" ]
57
2017-05-30T00:11:19.000Z
2018-02-01T18:30:18.000Z
gui/kivy/main_window.py
gertjaap/electrum-vtc
85e3432fdb0c221b93fc3ef4a0d4b96397cf4215
[ "MIT" ]
63
2017-05-13T03:20:47.000Z
2018-02-04T18:07:06.000Z
gui/kivy/main_window.py
gertjaap/electrum-vtc
85e3432fdb0c221b93fc3ef4a0d4b96397cf4215
[ "MIT" ]
27
2017-05-11T22:48:37.000Z
2018-02-03T20:24:32.000Z
import re import os import sys import time import datetime import traceback from decimal import Decimal import threading import electrum_vtc from electrum_vtc.bitcoin import TYPE_ADDRESS from electrum_vtc import WalletStorage, Wallet from electrum_vtc_gui.kivy.i18n import _ from electrum_vtc.paymentrequest import Invo...
38.785156
127
0.616855
def3f79005d625581a4991be38f22063a3f7fe88
12,281
py
Python
idb/cli/commands/xctest.py
isabella232/idb
dd20bd438399d4ff49a073a3bc23a9290ba06823
[ "MIT" ]
1
2021-07-18T01:22:11.000Z
2021-07-18T01:22:11.000Z
idb/cli/commands/xctest.py
djs66256/idb
f2d8699135e2f3a76ec078ccf442cfd92b5cd4ff
[ "MIT" ]
1
2021-04-19T09:39:09.000Z
2021-04-19T09:39:09.000Z
idb/cli/commands/xctest.py
isabella232/idb
dd20bd438399d4ff49a073a3bc23a9290ba06823
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json from argparse import REMAINDER, ArgumentParser, Namespace from typing import Optional, Set from idb.cli im...
35.29023
191
0.617051
9f34748796e1da920d8dbab58ad72999d07eae43
11,230
py
Python
core/cred_parser.py
ghostlulzhacks/koadic
9e9da43b2ac544eb66e264eaec58176451644442
[ "Apache-2.0" ]
1
2019-05-09T09:39:34.000Z
2019-05-09T09:39:34.000Z
core/cred_parser.py
ghostlulzhacks/koadic
9e9da43b2ac544eb66e264eaec58176451644442
[ "Apache-2.0" ]
null
null
null
core/cred_parser.py
ghostlulzhacks/koadic
9e9da43b2ac544eb66e264eaec58176451644442
[ "Apache-2.0" ]
null
null
null
import collections import tabulate import traceback class CredParse(object): def __init__(self, job): self.job = job self.shell = job.shell self.session = job.session def new_cred(self): cred = {} cred["IP"] = "" cred["Domain"] = "" cred["Username"] = "...
47.383966
126
0.426536
4a89bd55d18182860654f48fbce4636cbfc240a2
355
py
Python
src/adverts/migrations/0010_remove_user_key_expires.py
alekseyr/pyjobs
9ef6dd8edaba7eb568fcc7d7ee6723ac9c5eb0ff
[ "MIT" ]
1
2015-11-21T19:21:23.000Z
2015-11-21T19:21:23.000Z
src/adverts/migrations/0010_remove_user_key_expires.py
alekseyr/pyjobs
9ef6dd8edaba7eb568fcc7d7ee6723ac9c5eb0ff
[ "MIT" ]
4
2015-07-27T08:30:26.000Z
2015-07-30T07:58:39.000Z
src/adverts/migrations/0010_remove_user_key_expires.py
pyshop/pyjobs
9ef6dd8edaba7eb568fcc7d7ee6723ac9c5eb0ff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('adverts', '0009_auto_20151209_2112'), ] operations = [ migrations.RemoveField( model_name='user', na...
18.684211
47
0.605634
43a8c5bdc15ffd8acf36f7f3249ba062086d2fb2
6,231
py
Python
vmflib/vmflib/games/tf2.py
VirtualBrightPlayz/VMFBlender
5af3734592e6fa07db117bb2e245c73b7de4da2c
[ "MIT" ]
null
null
null
vmflib/vmflib/games/tf2.py
VirtualBrightPlayz/VMFBlender
5af3734592e6fa07db117bb2e245c73b7de4da2c
[ "MIT" ]
null
null
null
vmflib/vmflib/games/tf2.py
VirtualBrightPlayz/VMFBlender
5af3734592e6fa07db117bb2e245c73b7de4da2c
[ "MIT" ]
null
null
null
""" Helper classes specific to creating maps for Team Fortress 2. """ from ..vmf import Entity, Connections from ..types import Bool, Origin, Output class GameRules(Entity): """Sets up game mechanics for TF2. https://developer.valvesoftware.com/wiki/Tf_gamerules """ def __init__(self): E...
31.629442
79
0.630075
7e013ff9c080deddad875f8211ba17297566df99
20,816
py
Python
MemNet.py
The-Data-Team/SDMR
93bd04de108d5b3003e31217cb2da74ffcbfe0f3
[ "MIT" ]
11
2019-05-06T11:24:02.000Z
2020-06-16T07:31:40.000Z
MemNet.py
The-Data-Team/SDMR
93bd04de108d5b3003e31217cb2da74ffcbfe0f3
[ "MIT" ]
null
null
null
MemNet.py
The-Data-Team/SDMR
93bd04de108d5b3003e31217cb2da74ffcbfe0f3
[ "MIT" ]
6
2019-08-27T13:59:02.000Z
2021-06-14T19:26:00.000Z
import param_initializer as initializer from torch.autograd import Variable import numpy as np import pytorch_utils as my_utils import torch from torch import nn import torch.nn.functional as F import global_constants as gc L1, L2 = ('l1', 'l2') WEIGHT_TYINGS = ADJACENT, LAYER_WISE, _ = ('adjacent', 'layerwise', Non...
37.371634
124
0.612702
eadccb45448d9f8c0e463a0d68947b5060df8ccc
5,975
py
Python
src/wormhole/tor_manager.py
crwood/magic-wormhole
007d76c1450c95e7a75f3030246562794c61f1a6
[ "MIT" ]
1
2017-02-28T11:06:59.000Z
2017-02-28T11:06:59.000Z
src/wormhole/tor_manager.py
anarcat/magic-wormhole
007d76c1450c95e7a75f3030246562794c61f1a6
[ "MIT" ]
null
null
null
src/wormhole/tor_manager.py
anarcat/magic-wormhole
007d76c1450c95e7a75f3030246562794c61f1a6
[ "MIT" ]
1
2019-08-15T10:36:00.000Z
2019-08-15T10:36:00.000Z
from __future__ import print_function, unicode_literals import time from twisted.internet.defer import inlineCallbacks, returnValue from twisted.internet.error import ConnectError import txtorcon import ipaddress from .timing import DebugTiming from .transit import allocate_tcp_port class TorManager: def __init__(...
42.985612
81
0.607531
eb854d2c201ab623fb8b14ed5f822b6aad406a80
118
py
Python
dbcIterator/_init_.py
AlvinYee/dbcParser
81c972dba6fb1501f37a8bf8b08ac0cacfe501e3
[ "MIT" ]
null
null
null
dbcIterator/_init_.py
AlvinYee/dbcParser
81c972dba6fb1501f37a8bf8b08ac0cacfe501e3
[ "MIT" ]
null
null
null
dbcIterator/_init_.py
AlvinYee/dbcParser
81c972dba6fb1501f37a8bf8b08ac0cacfe501e3
[ "MIT" ]
1
2019-08-15T15:05:05.000Z
2019-08-15T15:05:05.000Z
# -*- coding: utf-8 -*- __author__ = "Alvin Ye" __all__ = ['DbcParser'] from dbcIterator.dbcParser import DbcParser
19.666667
43
0.694915
6b7d0be198578062e55a903d8aadba221bbbd6f9
354
py
Python
maintenance/templates/nodeclass.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
287
2015-01-03T21:18:59.000Z
2022-03-16T07:55:33.000Z
maintenance/templates/nodeclass.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
412
2015-06-19T15:13:33.000Z
2022-02-25T08:12:25.000Z
maintenance/templates/nodeclass.py
JFlynnXYZ/pymel
2aa254c7982c78aac3e30e8d1b6a85f2465f898e
[ "BSD-3-Clause" ]
106
2015-01-03T06:46:44.000Z
2022-03-30T15:43:01.000Z
{% if not existing %} class {{ classname }}({{ parents }}): {% endif %} {% if attrs %} {% for attr in attrs %} {% for line in attr.getLines() %} {{line}} {% endfor %} {% endfor %} {% endif %} {% if methods %} {% for method in methods %} {% for line in method.getLines() %} {{line}} {% endfor %} {% ...
16.090909
37
0.5
2cff27e845334853cfb0a48bf93e6830fa9f26da
1,658
py
Python
backend_deprecated/boocamnow/urls.py
Front-line-dev/relay_03
bc5be5586803f6d953c147bd59c5dd6329198cfb
[ "MIT" ]
null
null
null
backend_deprecated/boocamnow/urls.py
Front-line-dev/relay_03
bc5be5586803f6d953c147bd59c5dd6329198cfb
[ "MIT" ]
1
2020-08-07T10:28:59.000Z
2020-08-07T10:28:59.000Z
backend_deprecated/boocamnow/urls.py
Front-line-dev/relay_03
bc5be5586803f6d953c147bd59c5dd6329198cfb
[ "MIT" ]
15
2020-08-02T12:10:26.000Z
2020-08-29T11:13:43.000Z
"""boocamnow URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
33.836735
107
0.709288
3cb8dc66cfc395592ef5bf551bb82ad956b665a5
25,618
py
Python
applications/PoromechanicsApplication/python_scripts/poromechanics_U_Pw_solver.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
1
2019-08-01T09:01:08.000Z
2019-08-01T09:01:08.000Z
applications/PoromechanicsApplication/python_scripts/poromechanics_U_Pw_solver.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
null
null
null
applications/PoromechanicsApplication/python_scripts/poromechanics_U_Pw_solver.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # Importing the Kratos Library import KratosMultiphysics from KratosMultiphysics.python_solver import PythonSolver # Import applications import KratosMultiphysics.FluidDynamicsApplic...
51.8583
149
0.630572
5d5846f9073ebdc1ddd96b40c191ad2637b47680
198
py
Python
05.04.2022/listas/remove.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
05.04.2022/listas/remove.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
05.04.2022/listas/remove.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
# Exemplo com remove # Lista de comidas comidas = ['Cebola', 'Tomate', 'Cenoura', 'Ovo', 'Queijo', 'Ovo'] #Remove uma vez o elemento ovo comidas.remove('Ovo') comidas.remove('Ovo') print(comidas)
19.8
65
0.686869
13c2d6093f094b8b2e288ff360f309e3d1486065
687
py
Python
Scripts/newsapp/articles/models.py
rajagoat/news-aggregator
59d810b29509cbc7a70418bd145361343cb9bdbb
[ "MIT" ]
null
null
null
Scripts/newsapp/articles/models.py
rajagoat/news-aggregator
59d810b29509cbc7a70418bd145361343cb9bdbb
[ "MIT" ]
null
null
null
Scripts/newsapp/articles/models.py
rajagoat/news-aggregator
59d810b29509cbc7a70418bd145361343cb9bdbb
[ "MIT" ]
null
null
null
from django.db import models from django.template.defaultfilters import default, truncatechars from django.utils.timezone import now # Create your models here. class Article(models.Model): id = models.BigAutoField(primary_key=True) name = models.CharField(max_length=100) date = models.DateTimeField(default...
27.48
65
0.720524
83f6b58aacb14193dbab39a0ff05b32a7fb38aa1
1,018
py
Python
bot/before_start.py
MasterGroosha/telegram-report-bot
7768165cd2339a91cafe0e953301d5f4f9c86e5d
[ "MIT" ]
48
2019-11-21T03:53:56.000Z
2022-03-22T09:11:50.000Z
bot/before_start.py
MasterGroosha/telegram-report-bot
7768165cd2339a91cafe0e953301d5f4f9c86e5d
[ "MIT" ]
4
2019-12-13T20:54:55.000Z
2021-10-11T11:19:42.000Z
bot/before_start.py
MasterGroosha/telegram-report-bot
7768165cd2339a91cafe0e953301d5f4f9c86e5d
[ "MIT" ]
20
2020-02-20T16:20:18.000Z
2022-03-02T18:35:18.000Z
from typing import Dict from aiogram import Bot from aiogram.types import ChatMemberAdministrator from bot.config_reader import Config async def fetch_admins(config: Config, bot: Bot) -> Dict: result = {} admins = await bot.get_chat_administrators(config.group.main) for admin in admins: if admin...
37.703704
117
0.743615
9e5c3bc74d9768f5b0d991a7b5d2ba48e2eb05ac
4,595
py
Python
examples/user_interfaces/svg_histogram.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/user_interfaces/svg_histogram.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/user_interfaces/svg_histogram.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #-*- encoding:utf-8 -*- """ Demonstrate how to create an interactive histogram, in which bars are hidden or shown by cliking on legend markers. The interactivity is encoded in ecmascript (javascript) and inserted in the SVG code in a post-processing step. To render the image, open it in a web...
29.645161
107
0.686834
ac8e05e5bba0e2eae344493dfaee3677c7e1c105
5,113
py
Python
Code/Assignment1Support.py
isibord/LogisticRegression
5802e8fd3acd73993e0e8891adcb3ab1f58e4544
[ "MIT" ]
null
null
null
Code/Assignment1Support.py
isibord/LogisticRegression
5802e8fd3acd73993e0e8891adcb3ab1f58e4544
[ "MIT" ]
null
null
null
Code/Assignment1Support.py
isibord/LogisticRegression
5802e8fd3acd73993e0e8891adcb3ab1f58e4544
[ "MIT" ]
null
null
null
import collections def LoadRawData(path): f = open(path, 'r') lines = f.readlines() kNumberExamplesExpected = 5574 if(len(lines) != kNumberExamplesExpected): message = "Attempting to load %s:\n" % (path) message += " Expected %d lines, got %d.\n" % (kNumberExamplesExpected, len...
36.521429
859
0.561705
b8bb25782de6b5ffec8d37942f23603dc6f1ee97
5,676
py
Python
game_process_control.py
hightoon/game_management
b50fd7f8b6739aa8857c3a3e80e028e1e8bf185d
[ "MIT" ]
null
null
null
game_process_control.py
hightoon/game_management
b50fd7f8b6739aa8857c3a3e80e028e1e8bf185d
[ "MIT" ]
null
null
null
game_process_control.py
hightoon/game_management
b50fd7f8b6739aa8857c3a3e80e028e1e8bf185d
[ "MIT" ]
null
null
null
#!/usr/bin/python #-* encoding: utf-8 *- import time import win32api, win32con from subprocess import Popen from bottle import route, request, get, post, run #from SendKeys import SendKeys running_game = None is_on_game_page = False class Game(object): def __init__(self, path, name): self._path = path ...
26.277778
101
0.675828
5b14c8c4868fe7de6995925ed1cd1adfc2124396
461
py
Python
Models/InOutput/ConsolePrint/PrepPrint/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
2
2018-05-31T15:02:08.000Z
2018-07-11T11:02:44.000Z
Models/InOutput/ConsolePrint/PrepPrint/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
Models/InOutput/ConsolePrint/PrepPrint/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
import asyncio from pyjamas_core.util import Input, Output, Property from pyjamas_core.supermodel import Supermodel class Model(Supermodel): """ prints the given input during prep """ def __init__(self, uuid, name :str): super(Model, self).__init__(uuid,name) self.inputs['to_print...
25.611111
66
0.663774
964e55517a8c2cc1a843ec5987ad8156cb592430
682
py
Python
AtCoder/abc165/C.py
ShubhamJagtap2000/competitive-programming-1
3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84
[ "MIT" ]
1
2021-07-22T07:37:31.000Z
2021-07-22T07:37:31.000Z
AtCoder/abc165/C.py
ShubhamJagtap2000/competitive-programming-1
3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84
[ "MIT" ]
null
null
null
AtCoder/abc165/C.py
ShubhamJagtap2000/competitive-programming-1
3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84
[ "MIT" ]
null
null
null
n,m,q=map(int,input().split()) arr=[list(map(int,input().split())) for _ in range(q)] ans=0 for i1 in range(1,m+1): for i2 in range(i1,m+1): for i3 in range(i2,m+1): for i4 in range(i3,m+1): for i5 in range(i4,m+1): for i6 in range(i5,m+1): for i7 in range(i6,m+1): ...
32.47619
59
0.435484
0be934d63e509131dcb342e979567af66ff1387a
304
py
Python
red_mind/core/forms.py
IntegratedMindHeart/project_red_mind
a76af03627a4202a4f26a092b5cf4f93f2f5e2a6
[ "Apache-2.0" ]
2
2021-07-01T08:17:00.000Z
2021-07-01T08:18:35.000Z
red_mind/core/forms.py
IntegratedMindHeart/project_red_mind
a76af03627a4202a4f26a092b5cf4f93f2f5e2a6
[ "Apache-2.0" ]
null
null
null
red_mind/core/forms.py
IntegratedMindHeart/project_red_mind
a76af03627a4202a4f26a092b5cf4f93f2f5e2a6
[ "Apache-2.0" ]
1
2020-10-15T20:06:43.000Z
2020-10-15T20:06:43.000Z
from django import forms from .models import MovieRecord class MovieRecordForm(forms.ModelForm): class Meta: model=MovieRecord fields=('movie_name',) widgets={ 'movie_name':forms.TextInput(attrs={'class':'form-control','placeholder':'enter movie name'}) }
30.4
105
0.657895
44c17075b554215bb46882f0eb0c380d9138dd46
3,290
py
Python
atlassian/bitbucket/cloud/repositories/defaultReviewers.py
VasiliyGrizel/atlassian-python-api
9318f1d6f21e291ac4a62db8de6e71519677f8ad
[ "Apache-2.0" ]
null
null
null
atlassian/bitbucket/cloud/repositories/defaultReviewers.py
VasiliyGrizel/atlassian-python-api
9318f1d6f21e291ac4a62db8de6e71519677f8ad
[ "Apache-2.0" ]
null
null
null
atlassian/bitbucket/cloud/repositories/defaultReviewers.py
VasiliyGrizel/atlassian-python-api
9318f1d6f21e291ac4a62db8de6e71519677f8ad
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from requests import HTTPError from ..base import BitbucketCloudBase class DefaultReviewers(BitbucketCloudBase): def __init__(self, url, *args, **kwargs): super(DefaultReviewers, self).__init__(url, *args, **kwargs) def _get_object(self, data): if "errors" in data: ...
32.574257
118
0.630091
e4ab7c8b293b14408b87b4ebf02268bd44df226a
5,616
py
Python
scripts/deduplicate-java-pretrain.py
SpirinEgor/code-transformer
7fce7db040c91a5f2773d51e5f4f8bb30b1ac5ee
[ "MIT" ]
null
null
null
scripts/deduplicate-java-pretrain.py
SpirinEgor/code-transformer
7fce7db040c91a5f2773d51e5f4f8bb30b1ac5ee
[ "MIT" ]
null
null
null
scripts/deduplicate-java-pretrain.py
SpirinEgor/code-transformer
7fce7db040c91a5f2773d51e5f4f8bb30b1ac5ee
[ "MIT" ]
null
null
null
""" To generate the huge java-pretrain dataset, we first manually merge java-small, java-medium and java-large into the same folder. It can then happen that in the new larger training set there are Java methods from the same projects or even the same methods as in the test partition for java-small for example. This wou...
39.272727
119
0.721332
8294da2f47c8f7437294523ffe77ecfdcaa06869
13,273
py
Python
common/models.py
LoveProgramming-Limited/Django-CRM-2
7252460fad9ac38619304d0cdd3e5af59745e26e
[ "MIT" ]
null
null
null
common/models.py
LoveProgramming-Limited/Django-CRM-2
7252460fad9ac38619304d0cdd3e5af59745e26e
[ "MIT" ]
1
2021-11-27T02:53:06.000Z
2021-11-28T16:51:15.000Z
common/models.py
LoveProgramming-Limited/Django-CRM-2
7252460fad9ac38619304d0cdd3e5af59745e26e
[ "MIT" ]
null
null
null
import binascii import datetime import os import time import arrow from django.contrib.auth.models import (AbstractBaseUser, PermissionsMixin, UserManager) from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ fro...
37.283708
92
0.634973