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
b49a0541c1a5dbdb7401d9703b6316a6964da89e
23,404
py
Python
tests/unittests/core/worker/test_experiment.py
lebrice/orion
6ad1616a8c0a5f971f96bee76b206737724b394e
[ "BSD-3-Clause" ]
null
null
null
tests/unittests/core/worker/test_experiment.py
lebrice/orion
6ad1616a8c0a5f971f96bee76b206737724b394e
[ "BSD-3-Clause" ]
null
null
null
tests/unittests/core/worker/test_experiment.py
lebrice/orion
6ad1616a8c0a5f971f96bee76b206737724b394e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Collection of tests for :mod:`orion.core.worker.experiment`.""" import copy import datetime import inspect import json import logging import tempfile import pandas import pytest import orion.core import orion.core.utils.backward as backward import orion.core.worker.ex...
34.116618
100
0.619296
51c83fe1935b315f2316588e87b99daa866ad7ab
14,775
py
Python
VkBotParser.py
Valyon1886/Vkbot_diary
eb406f2118b34691daf81a349df53cbc459d5f06
[ "Apache-2.0" ]
2
2021-04-09T16:44:17.000Z
2021-09-18T08:39:53.000Z
VkBotParser.py
Valyon1886/Vkbot_diary
eb406f2118b34691daf81a349df53cbc459d5f06
[ "Apache-2.0" ]
1
2021-09-11T12:16:35.000Z
2021-09-11T12:16:35.000Z
VkBotParser.py
Valyon1886/Vkbot_diary
eb406f2118b34691daf81a349df53cbc459d5f06
[ "Apache-2.0" ]
null
null
null
from contextlib import suppress from datetime import time from hashlib import md5 from re import search, findall from bs4 import BeautifulSoup from colorama import Fore, Style from peewee import fn, DoesNotExist from requests import get from xlrd import open_workbook from InitConfig import Config from InitSQL import ...
51.302083
130
0.50423
693581123c89d58699d9f924c1b15421cea4f430
659
py
Python
time_series_scripts/tasks_status.py
openearth/eo-reservoir
fab049d2a88fa59ebad682149b606e30c5e2f94c
[ "MIT" ]
null
null
null
time_series_scripts/tasks_status.py
openearth/eo-reservoir
fab049d2a88fa59ebad682149b606e30c5e2f94c
[ "MIT" ]
null
null
null
time_series_scripts/tasks_status.py
openearth/eo-reservoir
fab049d2a88fa59ebad682149b606e30c5e2f94c
[ "MIT" ]
1
2018-03-29T09:29:23.000Z
2018-03-29T09:29:23.000Z
import os import ee ee.Initialize() with open('tasks') as f: tasks = f.readlines() durations = [] for t in tasks: s = t.split() id = s[0] status = s[3] print(id, status) if status == 'COMPLETED': task_status = ee.data.getTaskStatus(id)[0] print(task_status) t0 = int(task_status['s...
16.475
50
0.635812
d0fe0e6890d9dd0b0b36971370c8f8190dcc0651
201
py
Python
model_builder/layers/layer.py
wzwietering/model_builder
e88c1e8ca24e7b91282a89c6a54dbba0a4c2c0fd
[ "MIT" ]
1
2020-05-11T04:17:42.000Z
2020-05-11T04:17:42.000Z
model_builder/layers/layer.py
wzwietering/model_builder
e88c1e8ca24e7b91282a89c6a54dbba0a4c2c0fd
[ "MIT" ]
null
null
null
model_builder/layers/layer.py
wzwietering/model_builder
e88c1e8ca24e7b91282a89c6a54dbba0a4c2c0fd
[ "MIT" ]
null
null
null
class Layer: def __init__(self, name, parent): self.name = name self.parent = parent self.children = [] def add_child(self, child): self.children.append(child)
22.333333
37
0.59204
3e82866f4f29d0aa3729c6c8385268f66f234b1b
10,730
py
Python
server/android/device.py
waylonwang/wechatBackup
911ee4f45570839e84fabd1e134b9367dc4a25a5
[ "MIT" ]
1
2020-06-16T12:03:46.000Z
2020-06-16T12:03:46.000Z
server/android/device.py
waylonwang/wechatBackup
911ee4f45570839e84fabd1e134b9367dc4a25a5
[ "MIT" ]
1
2019-10-10T16:25:59.000Z
2019-10-12T06:16:54.000Z
server/android/device.py
waylonwang/wechatBackup
911ee4f45570839e84fabd1e134b9367dc4a25a5
[ "MIT" ]
null
null
null
import configparser import glob import json import logging import os import re import shutil import time from adb.client import Client as AdbClient from flask_babel import gettext as _ from config import LOG_NAME, DEVICE_IP, DEVICE_PORT, MM_DB_DIR,\ MM_RES_DIR logger = logging.getLogger(LOG_NAME) class Android...
31.374269
72
0.522181
6cebc715a0c40f7d973041bcc40df3cf8b07954e
429
py
Python
bricklink_api/url.py
josh-parris/bricklink_api
9f7750ed1cb193bb2ada933b397022220baf578f
[ "MIT" ]
11
2019-08-10T10:18:49.000Z
2022-03-28T21:15:58.000Z
bricklink_api/url.py
josh-parris/bricklink_api
9f7750ed1cb193bb2ada933b397022220baf578f
[ "MIT" ]
2
2020-08-03T00:49:43.000Z
2022-03-28T21:12:26.000Z
bricklink_api/url.py
josh-parris/bricklink_api
9f7750ed1cb193bb2ada933b397022220baf578f
[ "MIT" ]
8
2020-03-08T14:45:05.000Z
2022-02-21T07:23:27.000Z
import yarl as _yarl class DefaultBaseUrl: _value = "https://api.bricklink.com/api/store/v1/" @classmethod def get(cls) -> str: return cls._value @classmethod def set(cls, base_url: str) -> None: cls._value = base_url def get(uri:str="", *, base_url:str=None) -> _yarl.URL: if base_url is Non...
19.5
55
0.648019
85aaf7970cd0a998447a9ca16c96b7ffa8233c57
11,792
py
Python
test/unit/models/test_superblocks.py
charycoin/sentinel
5e18ba0c78b483ed0b1843c976da504a7b64feb8
[ "MIT" ]
null
null
null
test/unit/models/test_superblocks.py
charycoin/sentinel
5e18ba0c78b483ed0b1843c976da504a7b64feb8
[ "MIT" ]
null
null
null
test/unit/models/test_superblocks.py
charycoin/sentinel
5e18ba0c78b483ed0b1843c976da504a7b64feb8
[ "MIT" ]
null
null
null
import pytest import sys import os import time os.environ['SENTINEL_ENV'] = 'test' os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../../test_sentinel.conf')) sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../../../lib'))) import misc import config fr...
48.327869
503
0.766961
7cfef2984cbe01c63f73fdaf4ad69a82e4b6ff52
8,939
py
Python
pyanalyze/error_code.py
seanwallawalla-forks/pyanalyze
5c7d1028fc8f8f94d34955627f9cfd284110a84a
[ "Apache-2.0" ]
2
2022-01-31T23:14:12.000Z
2022-02-02T19:58:24.000Z
pyanalyze/error_code.py
Seanpm2001-Quora/pyanalyze
5c7d1028fc8f8f94d34955627f9cfd284110a84a
[ "Apache-2.0" ]
null
null
null
pyanalyze/error_code.py
Seanpm2001-Quora/pyanalyze
5c7d1028fc8f8f94d34955627f9cfd284110a84a
[ "Apache-2.0" ]
null
null
null
""" Error codes used by test_scope. """ import enum from aenum import extend_enum import pyanalyze from .find_unused import used class ErrorCode(enum.Enum): # internal bad_star_import = 1 cant_import = 2 unexpected_node = 3 # undefined names and attributes undefined_name = 4 undefined...
38.364807
88
0.729836
daaf3ab0e032bff45cae0930543a1e3d5b985815
580
py
Python
tango/integrations/transformers/tokenizer.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
52
2021-09-24T17:52:34.000Z
2022-03-29T22:55:02.000Z
tango/integrations/transformers/tokenizer.py
keppy/tango
fbb78935a1c8a88c049e5ace0a2d0c7eeb4c8893
[ "Apache-2.0" ]
90
2021-09-29T04:23:29.000Z
2022-03-31T21:23:02.000Z
tango/integrations/transformers/tokenizer.py
keppy/tango
fbb78935a1c8a88c049e5ace0a2d0c7eeb4c8893
[ "Apache-2.0" ]
8
2021-11-13T01:56:22.000Z
2022-02-27T03:29:42.000Z
from transformers import AutoTokenizer from transformers.tokenization_utils_base import PreTrainedTokenizerBase from tango.common import Registrable class Tokenizer(PreTrainedTokenizerBase, Registrable): """ A :class:`~tango.common.Registrable` version of transformers' :class:`~transformers.PreTrainedTok...
27.619048
72
0.767241
f5058434f387bb2f48f02eb155c477d198c08124
5,227
py
Python
homeassistant/components/ecobee/weather.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/ecobee/weather.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/ecobee/weather.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
3
2019-04-28T16:35:45.000Z
2020-05-28T15:21:59.000Z
"""Support for displaying weather info from Ecobee API.""" from datetime import datetime from homeassistant.components import ecobee from homeassistant.components.weather import ( ATTR_FORECAST_CONDITION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_SPEED, WeatherEntity) f...
32.265432
79
0.582552
4f7996a2492d04c49cd5e9fc93786d9a3f5a58bf
5,301
py
Python
databricks/koalas/tests/test_stats.py
nitlev/koalas
bc190bb5ec22e14ad8250d4193a530e5d4dc6987
[ "Apache-2.0" ]
null
null
null
databricks/koalas/tests/test_stats.py
nitlev/koalas
bc190bb5ec22e14ad8250d4193a530e5d4dc6987
[ "Apache-2.0" ]
null
null
null
databricks/koalas/tests/test_stats.py
nitlev/koalas
bc190bb5ec22e14ad8250d4193a530e5d4dc6987
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
38.693431
94
0.552349
9e0c63af35f7efb08e955c8ed11f968229784ba5
6,118
py
Python
password_policies/middleware.py
BuildingRobotics/django-password-policies
8b754ca8d10a4cf2b56a8c5f9e46f5384f492eb9
[ "BSD-3-Clause" ]
null
null
null
password_policies/middleware.py
BuildingRobotics/django-password-policies
8b754ca8d10a4cf2b56a8c5f9e46f5384f492eb9
[ "BSD-3-Clause" ]
1
2019-09-17T10:09:29.000Z
2019-09-17T16:56:54.000Z
password_policies/middleware.py
BuildingRobotics/django-password-policies
8b754ca8d10a4cf2b56a8c5f9e46f5384f492eb9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import re from datetime import timedelta from django.core.urlresolvers import resolve, reverse, NoReverseMatch, \ Resolver404 from django.http import HttpResponseRedirect from django.utils import timezone from password_policies.conf import settings from password_policies.mode...
39.470968
116
0.639588
6f77ad3e98d9c3ad88554d77305a93594bfa68d3
2,037
py
Python
slack_sdk/socket_mode/request.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
2,486
2016-11-03T14:31:43.000Z
2020-10-26T23:07:44.000Z
slack_sdk/socket_mode/request.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
721
2016-11-03T21:26:56.000Z
2020-10-26T12:41:29.000Z
slack_sdk/socket_mode/request.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
627
2016-11-02T19:04:19.000Z
2020-10-25T19:21:13.000Z
from typing import Union, Optional from slack_sdk.models import JsonObject class SocketModeRequest: type: str envelope_id: str payload: dict accepts_response_payload: bool retry_attempt: Optional[int] # events_api retry_reason: Optional[str] # events_api def __init__( self, ...
33.393443
80
0.607757
16ed6b86c3972db7497a718a5d968d0cea82bb13
7,747
py
Python
holland/commands/backup.py
holland-backup/holland
afb96026344d10f230ca3d1651ec20f0138f8146
[ "BSD-3-Clause" ]
84
2015-02-11T15:14:54.000Z
2022-03-15T23:34:33.000Z
holland/commands/backup.py
holland-backup/holland
afb96026344d10f230ca3d1651ec20f0138f8146
[ "BSD-3-Clause" ]
157
2015-01-30T18:22:24.000Z
2022-03-30T12:15:42.000Z
holland/commands/backup.py
holland-backup/holland
afb96026344d10f230ca3d1651ec20f0138f8146
[ "BSD-3-Clause" ]
49
2015-02-04T18:59:49.000Z
2022-03-22T20:56:54.000Z
""" Define backup command """ import logging from string import Template from subprocess import PIPE, Popen # Commvault command entry point from holland.core.backup import BackupError, BackupRunner from holland.core.command import Command from holland.core.config import HOLLANDCFG, ConfigError from holland.core.spool...
32.145228
91
0.557119
bb3b62e51b5fb3021759e80c47b24d30b53a12a0
10,467
py
Python
kaplot/astro/taxis.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
kaplot/astro/taxis.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
kaplot/astro/taxis.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
from plotobject import PlotObject from properties import * from plotobjects import Line from math import sqrt, pi from Kplot import Vector #from axis import Axis import plotobjects from Kplot.transformations import NoTransformation from Numeric import * from Kplot.tools import * #def transform(point, trans, ytrans): ...
25.221687
118
0.644406
2956591f2548ad19ce0014c23089f7c82f5b0f3a
3,127
py
Python
approximation_numerique_optimisation/transp3.py
rochamatcomp/EDP_numerique
a49cd82ef08845cdd40494fd0b955b687d8201f4
[ "MIT" ]
null
null
null
approximation_numerique_optimisation/transp3.py
rochamatcomp/EDP_numerique
a49cd82ef08845cdd40494fd0b955b687d8201f4
[ "MIT" ]
null
null
null
approximation_numerique_optimisation/transp3.py
rochamatcomp/EDP_numerique
a49cd82ef08845cdd40494fd0b955b687d8201f4
[ "MIT" ]
1
2018-11-09T15:33:27.000Z
2018-11-09T15:33:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Grégoire Allaire, Flore Nabet et Thomas Wick # Ecole Polytechnique # MAP 411 # Hiver 2017/2018 # Résolution numérique de l'équation de transport # u,t + v u,x = 0 # schéma explicite décentré aval ######################################################## # Load packages ...
28.953704
153
0.603774
741dcec3224bbbaf709d95744c9d3eef8f6a4ddd
2,808
py
Python
main.py
sakunamary/raspi-info
5a22165505947ef6b687d03ed23d963a2db0fe1f
[ "MIT" ]
null
null
null
main.py
sakunamary/raspi-info
5a22165505947ef6b687d03ed23d963a2db0fe1f
[ "MIT" ]
null
null
null
main.py
sakunamary/raspi-info
5a22165505947ef6b687d03ed23d963a2db0fe1f
[ "MIT" ]
null
null
null
import time import datetime import threading from get_net_info import RaspberryMonitorNetSpeed as rmn import subprocess import Adafruit_SSD1306 import Adafruit_GPIO.SPI as SPI from PIL import Image from PIL import ImageDraw from PIL import ImageFont # Raspberry Pi pin configuration: RST = None # on the PiOLED...
27.529412
91
0.614672
16f8f2a238c1482ca4340f32f495cd0df8881d43
903
py
Python
setup.py
mar-muel/local-geocode
161b551f10cdb716cd4923f775f2ea48b9d7f3e6
[ "MIT" ]
12
2019-12-15T15:55:08.000Z
2021-12-08T12:40:09.000Z
setup.py
mar-muel/local-geocode
161b551f10cdb716cd4923f775f2ea48b9d7f3e6
[ "MIT" ]
null
null
null
setup.py
mar-muel/local-geocode
161b551f10cdb716cd4923f775f2ea48b9d7f3e6
[ "MIT" ]
2
2020-09-10T05:43:25.000Z
2022-02-04T18:58:16.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="local-geocode", # Replace with your own username version="0.0.1", author="Martin Müller", author_email="martin.mathias.mueller@gmail.com", description="Simple library for...
30.1
82
0.641196
d26e6e565b59a0e99d8b110031c2a5c6d24c53dc
267
py
Python
server/users/models.py
dmitrytk/horizon
8fc130d9d619de0e7ad7aad24d1e6f457bc68df0
[ "MIT" ]
null
null
null
server/users/models.py
dmitrytk/horizon
8fc130d9d619de0e7ad7aad24d1e6f457bc68df0
[ "MIT" ]
null
null
null
server/users/models.py
dmitrytk/horizon
8fc130d9d619de0e7ad7aad24d1e6f457bc68df0
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models class Employee(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) department = models.CharField(max_length=255) position = models.CharField(max_length=255)
29.666667
63
0.779026
2a1122a36597cf413974e8ed1ba924c96f06fde1
2,605
py
Python
voter-info/shapes/geo.py
geary/election-gadgets.staging
640d14e813d0f4d3167a834db2a6c78879f9e103
[ "Unlicense" ]
14
2016-03-07T17:26:45.000Z
2021-05-02T08:38:48.000Z
voter-info/shapes/geo.py
geary/election-gadgets.staging
640d14e813d0f4d3167a834db2a6c78879f9e103
[ "Unlicense" ]
1
2020-11-26T21:09:47.000Z
2020-11-26T21:09:47.000Z
voter-info/shapes/geo.py
geary/election-gadgets.staging
640d14e813d0f4d3167a834db2a6c78879f9e103
[ "Unlicense" ]
2
2015-12-23T21:06:43.000Z
2020-06-24T08:38:57.000Z
#!/usr/bin/env python import math # z() and zz() are a quick and dirty hack to deal with the Aleutian Islands. # We should use a more correct algorithm for extendBounds like the one # in the Maps API, but this is good enough to fix the immediate problem. def z( n ): if n > 0.0: return n - 360.0 return n def zz( ...
25.048077
104
0.540115
d6d4314a7be351e3b1f4bc786717db8572d21aae
643
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/28. longest common prefix.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/28. longest common prefix.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/28. longest common prefix.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function to find the longest common prefix string between a given set of strings. If there is no common prefix, return an empty string. Example: Input Data: s1 = 'floor' s2 = 'float' s3 = 'floral' s4 = 'flow' Expected output = 'flo' """ def longest_prefix(s1,s2,s3,s4): arr = [s1...
17.861111
90
0.506998
f7149618008b2c55257eac69dff2390850219ebb
1,584
py
Python
bin/list-keys.py
fenglsuc/PatCit
6f2585dac156a69ff94f002d387c75bd723529df
[ "MIT" ]
1
2020-04-10T09:18:27.000Z
2020-04-10T09:18:27.000Z
bin/list-keys.py
fenglsuc/PatCit
6f2585dac156a69ff94f002d387c75bd723529df
[ "MIT" ]
null
null
null
bin/list-keys.py
fenglsuc/PatCit
6f2585dac156a69ff94f002d387c75bd723529df
[ "MIT" ]
null
null
null
import json import lzma from glob import glob from pprint import pprint import click import smart_open from tqdm import tqdm @click.command() @click.option("--path", help="Path. Wilcard '*' enabled") @click.option("--tar", default=False, help="True for .xz files") @click.option( "--flavor", default="sm", ...
29.333333
87
0.454545
923ff526fe988f0ce317b5648636527e042c3812
2,485
py
Python
4_MNIST_dropout.py
Jerryzhangzhao/DL_tensorflow
7df08d957a0ec2b210925f0f2b7c6de9350dfc2f
[ "Apache-2.0" ]
16
2018-05-31T20:34:38.000Z
2022-02-10T15:21:31.000Z
4_MNIST_dropout.py
DefTruth/DL_tensorflow
7df08d957a0ec2b210925f0f2b7c6de9350dfc2f
[ "Apache-2.0" ]
null
null
null
4_MNIST_dropout.py
DefTruth/DL_tensorflow
7df08d957a0ec2b210925f0f2b7c6de9350dfc2f
[ "Apache-2.0" ]
9
2019-02-01T13:03:39.000Z
2020-11-24T08:04:08.000Z
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import matplotlib.pyplot as plt # 载入数据 mnist = input_data.read_data_sets("MNIST_data", one_hot=True) # 批次大小 batch_size = 100 # 批次数目 m_batch = mnist.train.num_examples//batch_size keep_prob = tf.placeholder(tf.float32) # 定义两个placehold...
28.238636
112
0.702616
c4e2649313ea0c6e3114ae3b63f8f6370fd3cec5
5,387
py
Python
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/test_user_mapping_delete.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/test_user_mapping_delete.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/test_user_mapping_delete.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import uuid fro...
46.042735
78
0.588825
53d830cbb4ffcd500c654f31c281ff3ba0a2345e
2,568
py
Python
examples/automated_deep_compression/automl_args.py
HatsuneMiku4/distiller
8fbacb01ebcb7d70c5d3ecb6a88093e6c4d42137
[ "Apache-2.0" ]
null
null
null
examples/automated_deep_compression/automl_args.py
HatsuneMiku4/distiller
8fbacb01ebcb7d70c5d3ecb6a88093e6c4d42137
[ "Apache-2.0" ]
null
null
null
examples/automated_deep_compression/automl_args.py
HatsuneMiku4/distiller
8fbacb01ebcb7d70c5d3ecb6a88093e6c4d42137
[ "Apache-2.0" ]
null
null
null
def add_automl_args(argparser, arch_choices=None, enable_pretrained=False): """ Helper function to make it easier to add command-line arguments for AMC to any application. Arguments: argparser (argparse.ArgumentParser): Existing parser to which to add the arguments """ argparser.add_argumen...
31.703704
95
0.600078
8b58cbcb5e1b5131c3faeb5b03e39b4631061466
2,626
py
Python
tests/test_plot.py
monte-flora/py-mint
0dd22a2e3dce68d1a12a6a99623cb4d4cb407b58
[ "MIT" ]
9
2021-04-12T16:11:38.000Z
2022-03-18T09:03:58.000Z
tests/test_plot.py
monte-flora/py-mint
0dd22a2e3dce68d1a12a6a99623cb4d4cb407b58
[ "MIT" ]
21
2021-04-13T01:17:40.000Z
2022-03-11T16:06:50.000Z
tests/test_plot.py
monte-flora/mintpy
23f9a952726dc0e69dfcdda2f8c7c27858aa9a11
[ "MIT" ]
1
2021-11-15T20:56:46.000Z
2021-11-15T20:56:46.000Z
# Unit test for the accumulated local effect code in MintPy import unittest import sys,os import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression, LogisticRegression sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import pymint class TestInterpretToo...
31.638554
91
0.62262
e58f55ac4c0c5d9f08f829ec802f2f0aa7914fb2
138,673
py
Python
Lib/test/test_ssl.py
Maratyszcza/Python-2.7.10
eaeb810c3fb0917ece7255508a67d56640254c2c
[ "PSF-2.0" ]
1
2017-04-25T13:15:10.000Z
2017-04-25T13:15:10.000Z
Lib/test/test_ssl.py
Maratyszcza/Python-2.7.10
eaeb810c3fb0917ece7255508a67d56640254c2c
[ "PSF-2.0" ]
null
null
null
Lib/test/test_ssl.py
Maratyszcza/Python-2.7.10
eaeb810c3fb0917ece7255508a67d56640254c2c
[ "PSF-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Test the support for SSL and sockets import sys import unittest from test import test_support as support import asyncore import socket import select import time import datetime import gc import os import errno import pprint import tempfile import urllib2 import traceback import weakref import...
45.407007
117
0.556186
1bcbea5d21ba4c57836d69784a6c67dd1f0c58f0
519
py
Python
systems/migrations/0007_auto_20190219_0613.py
rtucker-mozilla/minventory
1d4724e1d69fae2bb3bbb1bdd3640b253f3f63d3
[ "BSD-3-Clause" ]
null
null
null
systems/migrations/0007_auto_20190219_0613.py
rtucker-mozilla/minventory
1d4724e1d69fae2bb3bbb1bdd3640b253f3f63d3
[ "BSD-3-Clause" ]
9
2019-03-15T11:39:32.000Z
2019-04-30T00:59:50.000Z
systems/migrations/0007_auto_20190219_0613.py
rtucker-mozilla/minventory
1d4724e1d69fae2bb3bbb1bdd3640b253f3f63d3
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.13 on 2019-02-19 06:13 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('systems', '0006_auto_20190213_0639'), ] operations = [ migrations.AlterFi...
24.714286
113
0.666667
f535e95e39b27219cdab379132f490ab6cdff981
8,700
py
Python
venv/lib/python3.6/site-packages/ansible_collections/mellanox/onyx/tests/unit/modules/test_onyx_igmp_vlan.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/mellanox/onyx/tests/unit/modules/test_onyx_igmp_vlan.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/mellanox/onyx/tests/unit/modules/test_onyx_igmp_vlan.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from unittest.mock import patch from ansible_collections.mellanox.onyx.plug...
45.549738
109
0.693678
226167fea49e1a14029c323a7bb318caa3b69bb2
4,101
py
Python
dvats/encoder.py
vrodriguezf/deepvats
56f95b7d05e014ac0aefc87fc16627a38d1ebbf9
[ "Apache-2.0" ]
2
2022-02-07T17:48:55.000Z
2022-02-07T17:48:57.000Z
dvats/encoder.py
pacmel/timecluster_hub
252cc8ef28af50501c6eba2d2c26dd5e8235bed6
[ "Apache-2.0" ]
38
2021-09-24T08:53:58.000Z
2021-11-24T09:54:49.000Z
dvats/encoder.py
pacmel/timecluster_hub
252cc8ef28af50501c6eba2d2c26dd5e8235bed6
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/encoder.ipynb (unless otherwise specified). __all__ = ['DCAE_torch', 'ENCODER_EMBS_MODULE_NAME', 'get_enc_embs'] # Cell import pandas as pd import numpy as np from fastcore.all import * from tsai.callback.MVP import * from tsai.imports import * from tsai.models.Inceptio...
44.096774
111
0.625945
e46ad6bce64c13dd094d8fa5f1f483ba5519f184
1,086
py
Python
tests/util/confirm_test_cases_with_instance.py
thehappycheese/megalinref
b7d0988905acb0b8d96c44b7b10412c10bd096c2
[ "MIT" ]
null
null
null
tests/util/confirm_test_cases_with_instance.py
thehappycheese/megalinref
b7d0988905acb0b8d96c44b7b10412c10bd096c2
[ "MIT" ]
null
null
null
tests/util/confirm_test_cases_with_instance.py
thehappycheese/megalinref
b7d0988905acb0b8d96c44b7b10412c10bd096c2
[ "MIT" ]
null
null
null
from .dictdiffer_tools import assert_dictdiffer example_result_cases = [ { "args":{ "lat": -31.89006203575722, "lon": 115.80183730752809, "carriageways": 0b1111_1111, # megalinref.Cwy["All"], "network_types": 0b1111_1111, # megalinre...
35.032258
100
0.508287
98cfe27f44e4457d36afd8222ea9e8a2b2d0abf1
552
py
Python
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/filesystem/Link.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
1
2019-04-24T13:32:23.000Z
2019-04-24T13:32:23.000Z
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/filesystem/Link.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/filesystem/Link.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~...
19.034483
83
0.356884
6e4ab68c869db5c61567d1c383a516602d1ea539
11,168
py
Python
airflow/providers/postgres/hooks/postgres.py
pyerbiz/airflow
5216e9cbab29edda3d7510c5b7faea7add4ce08e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
airflow/providers/postgres/hooks/postgres.py
pyerbiz/airflow
5216e9cbab29edda3d7510c5b7faea7add4ce08e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
airflow/providers/postgres/hooks/postgres.py
pyerbiz/airflow
5216e9cbab29edda3d7510c5b7faea7add4ce08e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.759124
105
0.639595
e514cdfafc20b508ec11e9c65ef66ae6fdb3bc31
255
py
Python
cubeofn.py
onec1234/programs-hacktoberfest
3ebb8b4e236f7211ef41816516d9d540237f204a
[ "MIT" ]
1
2020-10-31T05:39:39.000Z
2020-10-31T05:39:39.000Z
cubeofn.py
onec1234/programs-hacktoberfest
3ebb8b4e236f7211ef41816516d9d540237f204a
[ "MIT" ]
null
null
null
cubeofn.py
onec1234/programs-hacktoberfest
3ebb8b4e236f7211ef41816516d9d540237f204a
[ "MIT" ]
23
2020-10-30T06:51:59.000Z
2020-11-13T16:40:12.000Z
# Simple Python program to find sum of series # with cubes of first n natural numbers # Returns the sum of series def sumOfSeries(n): sum = 0 for i in range(1, n+1): sum +=i*i*i return sum # Driver Function n = 5 print(sumOfSeries(n))
15
46
0.662745
aa1963aad8915823a1b2903111a173c6ed10e9dd
38,170
py
Python
tests/python_client/testcases/test_delete.py
haojunyu/milvus
2d81453ee055b9bd216805ebd3548c55eecd6db8
[ "Apache-2.0" ]
null
null
null
tests/python_client/testcases/test_delete.py
haojunyu/milvus
2d81453ee055b9bd216805ebd3548c55eecd6db8
[ "Apache-2.0" ]
null
null
null
tests/python_client/testcases/test_delete.py
haojunyu/milvus
2d81453ee055b9bd216805ebd3548c55eecd6db8
[ "Apache-2.0" ]
null
null
null
import pytest from base.client_base import TestcaseBase from common import common_func as cf from common import common_type as ct from utils.util_log import test_log as log from common.common_type import CaseLabel, CheckTasks prefix = "delete" half_nb = ct.default_nb // 2 tmp_nb = 100 tmp_expr = f'{ct.default_int64_f...
42.223451
161
0.653917
37e1193eca22f276c5e9330c14ca6f1d77a07395
127
py
Python
gs/group/member/leave/json/__init__.py
groupserver/gs.group.member.leave.json
ab2e0ccb74e8d9cc8603a2e041f9d024c94dfea7
[ "ZPL-2.1" ]
null
null
null
gs/group/member/leave/json/__init__.py
groupserver/gs.group.member.leave.json
ab2e0ccb74e8d9cc8603a2e041f9d024c94dfea7
[ "ZPL-2.1" ]
null
null
null
gs/group/member/leave/json/__init__.py
groupserver/gs.group.member.leave.json
ab2e0ccb74e8d9cc8603a2e041f9d024c94dfea7
[ "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals # This space intentionally left almost blank.
31.75
56
0.771654
4a07510d24fd3b86d4c008667e314b5471238c0e
2,515
py
Python
magz/uroot2d.py
bru32/magz
541e0a5774d51251ce25bf326cdce0c615f347c3
[ "MIT" ]
null
null
null
magz/uroot2d.py
bru32/magz
541e0a5774d51251ce25bf326cdce0c615f347c3
[ "MIT" ]
null
null
null
magz/uroot2d.py
bru32/magz
541e0a5774d51251ce25bf326cdce0c615f347c3
[ "MIT" ]
null
null
null
""" 2D Root Finder. Function f(x,y) must return tuple of 2 error. Bruce Wernick 10 June 2021 """ import sys from const import EPS, TINY class RootFinder(object): maxi = 96 tol = 1e-6 def __init__(self, f): self.f = f self.its = 0 def djac(self, x, y): 'jacobian' h = 3.4...
25.663265
81
0.47833
4443c9b1394c7ceb3117ee0d22c6e7a04890d81f
28,982
py
Python
openstack_dashboard/api/neutron.py
citrix-openstack-build/horizon
9c08d883ea2b729bad4c16c3aefa5bdc23e03174
[ "Apache-2.0" ]
2
2019-12-29T09:20:13.000Z
2020-01-01T13:12:34.000Z
openstack_dashboard/api/neutron.py
yongquanf/horizon
9aad7fd6f66588fed7c27b720642e47a4a12854b
[ "Apache-2.0" ]
1
2015-03-12T01:03:44.000Z
2015-03-12T01:03:44.000Z
openstack_dashboard/api/neutron.py
yongquanf/horizon
9aad7fd6f66588fed7c27b720642e47a4a12854b
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Cisco Systems, Inc. # Copyright 2012 NEC Corporation # # Licensed under the Apache License, Vers...
37.15641
79
0.639983
1576d7e2742157c78863c24ad91efc0de76e44a6
5,647
py
Python
ReferenceFixer.py
sgrieve/ReferenceFixer
a944d2f0bd0cd081ce7b3363015ad1b80c4eae05
[ "MIT" ]
null
null
null
ReferenceFixer.py
sgrieve/ReferenceFixer
a944d2f0bd0cd081ce7b3363015ad1b80c4eae05
[ "MIT" ]
null
null
null
ReferenceFixer.py
sgrieve/ReferenceFixer
a944d2f0bd0cd081ce7b3363015ad1b80c4eae05
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Written to convert in text citations such as: (Smith et al., 2016) Smith et al. (2016) Smith and Jones (2016) (Smith and Jones, 2016) Jones (2016) (Jones, 2016) To latex format, eg \citep{smith_title_2016} by scraping a given bibtex file for the corrext information. Needed to traslate a wo...
30.360215
80
0.562423
307c761678b91ac6451e7f1cd831d8bbe086f880
3,252
py
Python
FridaSpawn.py
igit-cn/Frida-Hook-Android
d14b007bbdf5daf903da27ed31c6e4007b08f642
[ "Apache-2.0" ]
null
null
null
FridaSpawn.py
igit-cn/Frida-Hook-Android
d14b007bbdf5daf903da27ed31c6e4007b08f642
[ "Apache-2.0" ]
null
null
null
FridaSpawn.py
igit-cn/Frida-Hook-Android
d14b007bbdf5daf903da27ed31c6e4007b08f642
[ "Apache-2.0" ]
null
null
null
import sys import frida js_file_names = ['ART'] process_names = [ 'com.huawei.smarthome' ] def raise_send(msg): print('[Send] ' + msg) def raise_info(msg): print('[Info] ' + msg) def raise_warning(msg): print('\033[0;33m[Warning] ' + msg + '\033[0m') def raise_error(msg): print('\033[0;31m...
36.954545
154
0.628229
15386905d391100a78742b90dfc35e4a97debc56
5,063
py
Python
src/threshold.py
orcus25/CarND-Advanced-Lane-Lines
042baedf0236c7c2810a431c2fef5ef0c04ca447
[ "MIT" ]
null
null
null
src/threshold.py
orcus25/CarND-Advanced-Lane-Lines
042baedf0236c7c2810a431c2fef5ef0c04ca447
[ "MIT" ]
null
null
null
src/threshold.py
orcus25/CarND-Advanced-Lane-Lines
042baedf0236c7c2810a431c2fef5ef0c04ca447
[ "MIT" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg class Thresholds(): def __init__(self,img): self._img = img def _abs_sobel_thresh(self, img, orient='x', sobel_kernel=3, thresh=(0, 255)): # Calculate directional gradient # Apply th...
44.412281
100
0.627099
b6779b145dc2dba7ba15d79c7eb065b3106e9c0f
128,714
py
Python
salt/minion.py
mirceaulinic/salt
2dc45dc97ea0ac630e14988d05346dce27535a9a
[ "Apache-2.0" ]
null
null
null
salt/minion.py
mirceaulinic/salt
2dc45dc97ea0ac630e14988d05346dce27535a9a
[ "Apache-2.0" ]
null
null
null
salt/minion.py
mirceaulinic/salt
2dc45dc97ea0ac630e14988d05346dce27535a9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Routines to set up a minion ''' # Import python libs from __future__ import absolute_import, print_function, with_statement import os import re import sys import copy import time import types import signal import fnmatch import logging import threading import traceback import contextlib impo...
41.722528
165
0.545667
c006ecdb3e0b76487e5d9c10cb460983777829ac
6,594
py
Python
test/contrib/test_archive.py
davidmiller/ffs
6d28cc5de41e05d6254f1eba94f6f7c9b9c7f765
[ "Apache-2.0" ]
null
null
null
test/contrib/test_archive.py
davidmiller/ffs
6d28cc5de41e05d6254f1eba94f6f7c9b9c7f765
[ "Apache-2.0" ]
null
null
null
test/contrib/test_archive.py
davidmiller/ffs
6d28cc5de41e05d6254f1eba94f6f7c9b9c7f765
[ "Apache-2.0" ]
2
2016-11-30T06:02:17.000Z
2018-01-10T16:40:42.000Z
""" Unittests for the ffs.contrib.archive module """ import sys import tarfile import tempfile import unittest import zipfile from mock import MagicMock, patch if sys.version_info < (2, 7): import unittest2 as unittest from ffs import exceptions, Path, rm, touch from ffs.contrib import archive HERE = Path.here() F...
31.550239
75
0.639369
ba25891620b626b35038efc1f3a6344bb2673b59
354
py
Python
EDyA_I/theme_2/code/algoritmos/Division+Recursiva_Exa.py
jrg-sln/academy
498c11dcfeab78dbbbb77045a13d7d6675c0d150
[ "MIT" ]
null
null
null
EDyA_I/theme_2/code/algoritmos/Division+Recursiva_Exa.py
jrg-sln/academy
498c11dcfeab78dbbbb77045a13d7d6675c0d150
[ "MIT" ]
null
null
null
EDyA_I/theme_2/code/algoritmos/Division+Recursiva_Exa.py
jrg-sln/academy
498c11dcfeab78dbbbb77045a13d7d6675c0d150
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: #Algoritmo que divide cualquier número entre 7 sin usar / def divisionRecursivo (intNumeroDividir): if intNumeroDividir < 7: return 0 if intNumeroDividir >= 7: intNumeroDividir = intNumeroDividir-7 res = divisionRecursivo(intNumeroDividir)+1 return re...
22.125
57
0.689266
ed3942fa4b5e40a3c01700febd4e3911ccc509df
59
py
Python
heisenbridge/__init__.py
ahanselka/heisenbridge
f6f0c7ba448463954ed1b715239ddb6455df06ad
[ "MIT" ]
122
2021-04-18T09:33:31.000Z
2022-03-30T15:09:37.000Z
heisenbridge/__init__.py
ahanselka/heisenbridge
f6f0c7ba448463954ed1b715239ddb6455df06ad
[ "MIT" ]
163
2021-04-16T12:55:46.000Z
2022-03-30T14:59:08.000Z
heisenbridge/__init__.py
ahanselka/heisenbridge
f6f0c7ba448463954ed1b715239ddb6455df06ad
[ "MIT" ]
16
2021-05-02T14:26:56.000Z
2022-03-30T15:09:28.000Z
from heisenbridge.version import __version__ # noqa: F401
29.5
58
0.813559
3ff3c9fb242971d69a71709dc508ce4e9914a8bd
1,966
py
Python
setup.py
mirob9363/earthpy
6e43724fac10e980489d182bc028fc94021f7d2f
[ "BSD-3-Clause" ]
1
2021-07-18T15:54:09.000Z
2021-07-18T15:54:09.000Z
setup.py
mirob9363/earthpy
6e43724fac10e980489d182bc028fc94021f7d2f
[ "BSD-3-Clause" ]
null
null
null
setup.py
mirob9363/earthpy
6e43724fac10e980489d182bc028fc94021f7d2f
[ "BSD-3-Clause" ]
null
null
null
from os import path from setuptools import setup DISTNAME = "earthpy" DESCRIPTION = "A set of helper functions to make working with spatial data in open source tools easier. This package is maintained by Earth Lab and was originally designed to support the earth analytics education program." MAINTAINER = "Leah Wasser...
33.322034
222
0.572737
71313623137e649efcac5164e3f95043f88e9d8c
554
py
Python
lib/wifuxlogger.py
GorkemAktas99/wifux
1b390fce18d4bc33256976fa147e32491610fa73
[ "Apache-2.0" ]
null
null
null
lib/wifuxlogger.py
GorkemAktas99/wifux
1b390fce18d4bc33256976fa147e32491610fa73
[ "Apache-2.0" ]
null
null
null
lib/wifuxlogger.py
GorkemAktas99/wifux
1b390fce18d4bc33256976fa147e32491610fa73
[ "Apache-2.0" ]
null
null
null
class WifuxLogger: @staticmethod def warning(msg): print("\033[93mWARNING:",end="") print(msg,end="") print("\033[0m") @staticmethod def error(msg): print("\033[91mERROR:",end="") print(msg,end="") print("\033[0m") @staticmethod def inf...
25.181818
41
0.487365
d994ee4166eb8161457632af99177f0b2ee6c19d
5,562
py
Python
salt/returners/syslog_return.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/returners/syslog_return.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/returners/syslog_return.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ Return data to the host operating system's syslog facility To use the syslog returner, append '--return syslog' to the salt command. .. code-block:: bash salt '*' test.ping --return syslog The following fields can be set in the minion conf file:: syslog.level (optional, Default:...
25.75
85
0.670982
c75347bc7b0f0f0bc638258b5bdfb0d3bb745afc
3,170
py
Python
nikola/plugins/compile/rest/youtube.py
jonasstein/nikola
9b94d4581f66d72f8ceb3772e458ca66cb7eb869
[ "MIT" ]
null
null
null
nikola/plugins/compile/rest/youtube.py
jonasstein/nikola
9b94d4581f66d72f8ceb3772e458ca66cb7eb869
[ "MIT" ]
null
null
null
nikola/plugins/compile/rest/youtube.py
jonasstein/nikola
9b94d4581f66d72f8ceb3772e458ca66cb7eb869
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2018 Roberto Alsina and others. # 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 t...
33.020833
79
0.663091
c4b467ea3cf6462c18f8e9ad21386bf75688233f
4,246
py
Python
oxasl/senscorr.py
physimals/oxasl
e583103f3313aed2890b60190b6ca7b265a46e3c
[ "Apache-2.0" ]
1
2021-01-27T05:48:20.000Z
2021-01-27T05:48:20.000Z
oxasl/senscorr.py
ibme-qubic/oxasl
8a0c055752d6e10cd932336ae6916f0c4fc0a2e9
[ "Apache-2.0" ]
13
2019-01-14T13:22:00.000Z
2020-09-12T20:34:20.000Z
oxasl/senscorr.py
physimals/oxasl
e583103f3313aed2890b60190b6ca7b265a46e3c
[ "Apache-2.0" ]
3
2019-03-19T15:46:48.000Z
2020-03-13T16:55:48.000Z
#!/bin/env python """ OXASL - Sensitivity correction module Copyright (c) 2008-2020 Univerisity of Oxford """ from __future__ import unicode_literals import numpy as np from fsl.data.image import Image from oxasl import reg from oxasl.options import OptionCategory, OptionGroup from oxasl.reporting import LightboxIm...
40.826923
181
0.664861
28fb9f709b343687dec2712b2670ef12303aa83f
1,316
py
Python
scripts/update_collections_metadata.py
yohanboniface/ClasseA12
9417f78c79074ee722b2ae0accfd5ba1cb967ede
[ "Apache-2.0" ]
null
null
null
scripts/update_collections_metadata.py
yohanboniface/ClasseA12
9417f78c79074ee722b2ae0accfd5ba1cb967ede
[ "Apache-2.0" ]
null
null
null
scripts/update_collections_metadata.py
yohanboniface/ClasseA12
9417f78c79074ee722b2ae0accfd5ba1cb967ede
[ "Apache-2.0" ]
null
null
null
"""Update the collections metadata. Requirements: kinto_http $ pip install kinto_http To use: run the following $ python update_collections_metadata.py --auth "<admin login>:<admin password>" --server "https://<kinto server>/v1/" """ import base64 import json import os import pprint import urllib.request from ki...
23.087719
117
0.759878
7e81ff6171899158631ea8ff4538c8768b2427ba
537
py
Python
tests/test_bvi_utils_bvi_exception.py
brainvisa/brainvisa-installer
0d77fb93d9c0c4cee85110085458d418e8c65070
[ "CECILL-B" ]
null
null
null
tests/test_bvi_utils_bvi_exception.py
brainvisa/brainvisa-installer
0d77fb93d9c0c4cee85110085458d418e8c65070
[ "CECILL-B" ]
2
2018-10-31T14:28:59.000Z
2021-03-23T11:19:02.000Z
tests/test_bvi_utils_bvi_exception.py
brainvisa/brainvisa-installer
0d77fb93d9c0c4cee85110085458d418e8c65070
[ "CECILL-B" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from brainvisa.installer.bvi_utils.bvi_exception import BVIException def test_bvi_utils_BVIException(): e = BVIException(BVIException.ARCHIVEGEN_FAILED, "0x938303") assert e.args[0] == '[ BVI ERROR ] The IFW command repogen ...
31.588235
81
0.73743
a8884748aaace40a20712b4ed72f5c99a17a7d64
1,690
py
Python
src/screens/blank_screen.py
jldj1/Blackjack
217c33b89570ecfa83440f2e7cdb8cfa5464713f
[ "MIT" ]
null
null
null
src/screens/blank_screen.py
jldj1/Blackjack
217c33b89570ecfa83440f2e7cdb8cfa5464713f
[ "MIT" ]
null
null
null
src/screens/blank_screen.py
jldj1/Blackjack
217c33b89570ecfa83440f2e7cdb8cfa5464713f
[ "MIT" ]
null
null
null
import pygame, sys from buttons.button import Button BG_COLOR = (30, 30, 30) BLACK_COLOR = (0, 0, 0) class Blank: def __init__(self): self.width = 600 self.height = 600 self.setup_screen() self.click = False self.running = True # self, screen, x, y, width...
27.704918
123
0.552663
06feffa5459565e81ed86e0ec0735cb299457a10
1,765
py
Python
2016/23/part2.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2016/23/part2.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
2016/23/part2.py
timofurrer/aoc-2020
446b688a57601d9891f520e43b7f822c373a6ff4
[ "MIT" ]
null
null
null
from pathlib import Path puzzle_input_raw = (Path(__file__).parent / "input_part2.txt").read_text() import re DIGIT = re.compile(r"-?\d+") instructions = [x.split() for x in puzzle_input_raw.splitlines()] registers = {"a": 12} pointer = 0 eval_param = lambda x: int(x) if DIGIT.fullmatch(x) else registers[x] while ...
30.431034
74
0.486119
2928b2b536b8da7fb9e57f2800194c15b0467863
1,155
py
Python
scripts/changeFilePath.py
LBRY-Omnibus/lbry-multi-channel-uploader
cee11b82f4dda71418aa84c0fdd707392bd97f3f
[ "Apache-2.0" ]
null
null
null
scripts/changeFilePath.py
LBRY-Omnibus/lbry-multi-channel-uploader
cee11b82f4dda71418aa84c0fdd707392bd97f3f
[ "Apache-2.0" ]
2
2022-02-25T20:59:06.000Z
2022-03-11T20:32:13.000Z
scripts/changeFilePath.py
LBRY-Omnibus/lbry-multi-channel-uploader
cee11b82f4dda71418aa84c0fdd707392bd97f3f
[ "Apache-2.0" ]
1
2022-03-11T20:43:53.000Z
2022-03-11T20:43:53.000Z
#changes the location of a folder across the whole program import sqlite3 import os import json progPath = os.path.dirname(os.path.abspath(__file__)) oldFolder = 'D:/' newFolder = 'E:/' #changes in db dataBase = sqlite3.connect(progPath + '/db.s3db') curr = dataBase.cursor() allFiles = list(b[0] for b in curr.execu...
36.09375
149
0.65974
2b59e4c11c7af2b120d5f176aced058215a2ba6b
997
py
Python
pos_qr_payments/__manifest__.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
null
null
null
pos_qr_payments/__manifest__.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
null
null
null
pos_qr_payments/__manifest__.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
1
2021-09-03T22:33:42.000Z
2021-09-03T22:33:42.000Z
# Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # License MIT (https://opensource.org/licenses/MIT). { "name": """QR-based payments in POS""", "summary": """Technical module to support qr-based payments like Alipay, WeChat""", "category": "Hidden", # "live_test_url": "", ...
34.37931
87
0.611836
d8722f8f6acf6664aedc5dbd0f9d2ef85ff2de5e
3,361
py
Python
Textbook/RPG/RPG.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
16
2019-01-10T18:54:13.000Z
2022-01-28T20:07:20.000Z
Textbook/RPG/RPG.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
null
null
null
Textbook/RPG/RPG.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
15
2019-01-24T17:11:20.000Z
2021-12-11T01:53:57.000Z
#RPG.py import agent import random import sys import time import copy class RPG(): difficultyAdjustDict = {"easy":.8, "normal":1, "difficult":1.2} def __init__(self, num_humans, num_computers, difficulty): self.num_humans= num_humans self.num_computers = num_computers self.diff...
41.493827
173
0.592978
a63d8cda4a681d9677b46b4278783c2400a34524
954,752
py
Python
altair/vegalite/v5/schema/core.py
ChristopherDavisUCI/altair
454bbfe61c030c54725156013320b131fa3597d5
[ "BSD-3-Clause" ]
null
null
null
altair/vegalite/v5/schema/core.py
ChristopherDavisUCI/altair
454bbfe61c030c54725156013320b131fa3597d5
[ "BSD-3-Clause" ]
null
null
null
altair/vegalite/v5/schema/core.py
ChristopherDavisUCI/altair
454bbfe61c030c54725156013320b131fa3597d5
[ "BSD-3-Clause" ]
1
2021-11-09T20:31:23.000Z
2021-11-09T20:31:23.000Z
# The contents of this file are automatically written by # tools/generate_schema_wrapper.py. Do not modify directly. from altair.utils.schemapi import SchemaBase, Undefined, _subclasses import pkgutil import json def load_schema(): """Load the json schema associated with this module's functions""" return jso...
47.295388
123
0.628207
efc0610cc26583e86f053ad56c97fd1d5c41de05
1,209
py
Python
data/merge_news_tweets_real.py
TIMAN-group/covid19_misinformation
901d528dd4a98a113cba3dce3050f50b21e00bcb
[ "MIT" ]
7
2020-11-06T03:33:31.000Z
2022-03-19T05:49:17.000Z
data/merge_news_tweets_real.py
TIMAN-group/covid19_misinformation
901d528dd4a98a113cba3dce3050f50b21e00bcb
[ "MIT" ]
null
null
null
data/merge_news_tweets_real.py
TIMAN-group/covid19_misinformation
901d528dd4a98a113cba3dce3050f50b21e00bcb
[ "MIT" ]
1
2020-12-03T03:02:24.000Z
2020-12-03T03:02:24.000Z
#!/usr/bin/env python import os import pandas as pd COAID_PATH = os.path.join(os.path.dirname(__file__), "..", "CoAID") REAL_TWEET_PATH = os.getcwd() df_news_real_tweet = pd.read_csv(os.path.join(COAID_PATH, "NewsRealCOVID-19_tweets.csv")) df_news_real_tweet["id"] = df_news_real_tweet["tweet_id"] df_news_real_twe...
40.3
107
0.752688
794a9c5e226966d45d3659d4c22161da565ae1be
2,703
py
Python
pytorch_lightning/plugins/training_type/ddp2.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/ddp2.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/ddp2.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
35.565789
114
0.715131
31a64d00ccb60366032f099e3fc9e96a77786a6f
37,673
py
Python
pytorch_lightning/trainer/trainer.py
pranjaldatta/pytorch-lightning
77fb425dd4588534504b99f0b562b3cde8b44dbd
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/trainer/trainer.py
pranjaldatta/pytorch-lightning
77fb425dd4588534504b99f0b562b3cde8b44dbd
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/trainer/trainer.py
pranjaldatta/pytorch-lightning
77fb425dd4588534504b99f0b562b3cde8b44dbd
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
41.26287
119
0.654341
7b2595eedf0e8f6242231cc25917cc439dbcb27b
11,165
py
Python
pytext/data/squad_tensorizer.py
isunjin/pytext
898c41c4881f30480cf744ea524993339df7213a
[ "BSD-3-Clause" ]
2
2021-10-31T01:06:20.000Z
2021-11-08T09:43:22.000Z
pytext/data/squad_tensorizer.py
isunjin/pytext
898c41c4881f30480cf744ea524993339df7213a
[ "BSD-3-Clause" ]
null
null
null
pytext/data/squad_tensorizer.py
isunjin/pytext
898c41c4881f30480cf744ea524993339df7213a
[ "BSD-3-Clause" ]
1
2021-03-04T03:38:26.000Z
2021-03-04T03:38:26.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import List import torch from pytext.config.component import ComponentType, create_component from pytext.data.tensorizers import TokenTensorizer from pytext.data.tokenizers import Tokenizer, WordPieceTokenizer fr...
35.785256
86
0.622212
4933c2b0f3971c70adb587279d3fb0041c741234
166
py
Python
mtnlion/__init__.py
macklenc/mtnlion
ba2e93faeed3004d344a8c14f37a409da572271d
[ "MIT" ]
null
null
null
mtnlion/__init__.py
macklenc/mtnlion
ba2e93faeed3004d344a8c14f37a409da572271d
[ "MIT" ]
174
2018-05-11T13:00:10.000Z
2021-11-15T17:47:29.000Z
mtnlion/__init__.py
macklenc/mtnlion
ba2e93faeed3004d344a8c14f37a409da572271d
[ "MIT" ]
1
2018-05-13T11:11:15.000Z
2018-05-13T11:11:15.000Z
# -*- coding: utf-8 -*- """Top-level package for Mountian Lion CSS.""" __author__ = """Christopher Macklen""" __email__ = "cmacklen@uccs.edu" __version__ = "0.0.1"
20.75
46
0.656627
879625ff934ef5d34465143cf4aee60286073cfb
5,558
py
Python
KWJ/manual-control-pygame.py
qkaTlehdrnf/AIM_KWJ
c760bf3c3eb7c7b89968df72ff21104fe172aabf
[ "MIT" ]
null
null
null
KWJ/manual-control-pygame.py
qkaTlehdrnf/AIM_KWJ
c760bf3c3eb7c7b89968df72ff21104fe172aabf
[ "MIT" ]
null
null
null
KWJ/manual-control-pygame.py
qkaTlehdrnf/AIM_KWJ
c760bf3c3eb7c7b89968df72ff21104fe172aabf
[ "MIT" ]
null
null
null
# import face_recognition_models as frmodels # import dlib from functions import frame_to_recognize_KHAN, draw_frame_flmk, draw_battery, frame_mirror, KHAN_encoding from djitellopy import Tello import cv2 import pygame import numpy as np import time import os dir_path=os.path.dirname(os.path.realpath(__file__)) print(d...
33.684848
105
0.586002
0e5e79d71bf2a207a47e96ff62ce33a0f958fb66
24,318
py
Python
pysnmp-with-texts/JUNIPER-JS-PACKET-MIRROR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/JUNIPER-JS-PACKET-MIRROR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/JUNIPER-JS-PACKET-MIRROR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module JUNIPER-JS-PACKET-MIRROR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-JS-PACKET-MIRROR-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:59:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
215.20354
2,183
0.799942
a6945fea49d8f1fe74e35ca001a6b5fed35f4830
4,904
py
Python
maskrcnn_benchmark/data/datasets/tsv_dataset.py
SkrighYZ/scene_graph_benchmark
b17e831a031e11c7b56d12dd092e8f476e48e3d4
[ "MIT" ]
210
2021-04-13T09:16:33.000Z
2022-03-29T03:13:18.000Z
maskrcnn_benchmark/data/datasets/tsv_dataset.py
SkrighYZ/scene_graph_benchmark
b17e831a031e11c7b56d12dd092e8f476e48e3d4
[ "MIT" ]
72
2021-04-13T18:21:37.000Z
2022-03-25T13:45:55.000Z
maskrcnn_benchmark/data/datasets/tsv_dataset.py
SkrighYZ/scene_graph_benchmark
b17e831a031e11c7b56d12dd092e8f476e48e3d4
[ "MIT" ]
55
2021-04-13T09:16:37.000Z
2022-03-29T08:31:04.000Z
# Copyright (c) 2021 Microsoft Corporation. Licensed under the MIT license. import cv2 import math import json from PIL import Image import os.path as op import numpy as np from maskrcnn_benchmark.structures.tsv_file import TSVFile from .utils.load_files import load_linelist_file, load_from_yaml_file from .utils.load...
39.548387
96
0.62602
c126ca70ec76a7efe9774e1719b037203618f28f
2,114
py
Python
sysrepo/__init__.py
nicolasmorini/sysrepo-python
27b5d4103266d044e736fed1393efcc08865dc7d
[ "BSD-3-Clause" ]
15
2020-07-10T19:03:19.000Z
2022-02-28T19:43:25.000Z
sysrepo/__init__.py
nicolasmorini/sysrepo-python
27b5d4103266d044e736fed1393efcc08865dc7d
[ "BSD-3-Clause" ]
26
2020-07-08T07:45:01.000Z
2022-03-15T19:11:08.000Z
sysrepo/__init__.py
nicolasmorini/sysrepo-python
27b5d4103266d044e736fed1393efcc08865dc7d
[ "BSD-3-Clause" ]
12
2020-07-13T14:08:54.000Z
2022-03-10T02:06:59.000Z
# Copyright (c) 2020 6WIND S.A. # SPDX-License-Identifier: BSD-3-Clause from .change import ( Change, ChangeCreated, ChangeDeleted, ChangeModified, ChangeMoved, update_config_cache, ) from .connection import SysrepoConnection from .errors import ( SysrepoCallbackFailedError, SysrepoCall...
19.218182
71
0.654683
d9232b6443cfae5865a8e04a54bc10b1714fcdcb
1,980
py
Python
api/tests/__init__.py
gitter-badger/bottlenose-mail
be7c74f496314065ff2d9887aa18d0cf000138ea
[ "MIT" ]
null
null
null
api/tests/__init__.py
gitter-badger/bottlenose-mail
be7c74f496314065ff2d9887aa18d0cf000138ea
[ "MIT" ]
null
null
null
api/tests/__init__.py
gitter-badger/bottlenose-mail
be7c74f496314065ff2d9887aa18d0cf000138ea
[ "MIT" ]
null
null
null
from utils.dynamodb import get_resource from moto import mock_dynamodb2 import datetime import json INBOX_ID = '259b6c00a0b54e35adb199916a6d3897' EMAIL_ADDRESS = '259b6c00@bottlenosemail.com' FIRST_EMAIL_ID = '32f322ad3f9d4a3b93a38d3555a7634e' @mock_dynamodb2 def initialize_inboxes_table(): dynamodb = get_resourc...
29.117647
110
0.527778
37ebfcd245b6207fe143ddfe43215dbddc616c1a
816
py
Python
007er_pyserver/db_repository/versions/011_migration.py
Lidagou007er/lidagou007er.github.io
25ffb8d84ad6ef9ece8ee9f458c299d06f1742f9
[ "MIT" ]
null
null
null
007er_pyserver/db_repository/versions/011_migration.py
Lidagou007er/lidagou007er.github.io
25ffb8d84ad6ef9ece8ee9f458c299d06f1742f9
[ "MIT" ]
null
null
null
007er_pyserver/db_repository/versions/011_migration.py
Lidagou007er/lidagou007er.github.io
25ffb8d84ad6ef9ece8ee9f458c299d06f1742f9
[ "MIT" ]
null
null
null
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() basic__data = Table('basic__data', post_meta, Column('id', String(length=25), primary_key=True, nullable=False), Column('title', String(length=25)), Column('abstract', TEXT), ...
28.137931
70
0.72549
531e23d8bac051b3faeb9de1384b77a596776de4
493
py
Python
xchainpy/xchainpy_binance/balance.py
HooriRn/xchainpy-lib-test-client
4a2835aa96949fa5ce0fa2c2ede5cee07aa52d83
[ "MIT" ]
null
null
null
xchainpy/xchainpy_binance/balance.py
HooriRn/xchainpy-lib-test-client
4a2835aa96949fa5ce0fa2c2ede5cee07aa52d83
[ "MIT" ]
null
null
null
xchainpy/xchainpy_binance/balance.py
HooriRn/xchainpy-lib-test-client
4a2835aa96949fa5ce0fa2c2ede5cee07aa52d83
[ "MIT" ]
null
null
null
from xchainpy.xchainpy_util.asset import Asset from xchainpy.xchainpy_util.balance import Balance from xchainpy.xchainpy_util.chain import BNBCHAIN class BinanceBalance(Balance): asset = None # Asset amount = 0 def __init__(self, balance): """ :param balance: binance balance object ...
32.866667
68
0.68357
78a06ae8f9868aa8c156f94d72d444cca5d7fc04
5,050
py
Python
postfreesurfer.py
DosenbachGreene/postfreesurfer
65817e3fe0d0e5d6e05c8ff0c8a8a9a94185558d
[ "MIT" ]
null
null
null
postfreesurfer.py
DosenbachGreene/postfreesurfer
65817e3fe0d0e5d6e05c8ff0c8a8a9a94185558d
[ "MIT" ]
null
null
null
postfreesurfer.py
DosenbachGreene/postfreesurfer
65817e3fe0d0e5d6e05c8ff0c8a8a9a94185558d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import shutil import subprocess def run(settings): # Pull subject name from freesurfer import basename Subject = os.path.basename(settings['freesurfer_import_dir']) FinalTemplateSpace = os.path.join(settings['mpr_import_dir'],'{}{}.nii.gz'.format(Subject,se...
48.095238
145
0.700198
d8f7ab7724df1b2466e3c8534fdb493574aef60a
460
py
Python
research/setup.py
SowmyaLR/models
63251464950dde5728ef7f86062b08f84b8180a2
[ "Apache-2.0" ]
null
null
null
research/setup.py
SowmyaLR/models
63251464950dde5728ef7f86062b08f84b8180a2
[ "Apache-2.0" ]
null
null
null
research/setup.py
SowmyaLR/models
63251464950dde5728ef7f86062b08f84b8180a2
[ "Apache-2.0" ]
null
null
null
"""Setup script for object_detection.""" from setuptools import find_packages from setuptools import setup REQUIRED_PACKAGES = ['Pillow>=1.0', 'Matplotlib>=2.1', 'Cython>=0.28.1', 'tensorflow'] setup( name='object_detection', version='0.1', install_requires=REQUIRED_PACKAGES, include_package_data=Tr...
27.058824
86
0.730435
0e9ec0a48fbf3d50ecf259cc30a177988a80bf5c
22,366
py
Python
fitsbits/quality.py
waqasbhatti/fitsbits
849fcb76d923ee7b91ca3000ff7fd0e2cd5708e7
[ "MIT" ]
null
null
null
fitsbits/quality.py
waqasbhatti/fitsbits
849fcb76d923ee7b91ca3000ff7fd0e2cd5708e7
[ "MIT" ]
null
null
null
fitsbits/quality.py
waqasbhatti/fitsbits
849fcb76d923ee7b91ca3000ff7fd0e2cd5708e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- '''This module contains functions to extract various bits of information from FITS files related to their quality, e.g. header keys related to the environment, image background levels, etc. ''' ############# ## LOGGING ## ############# import logging from fitsbits impor...
30.388587
80
0.607261
abc652277472bd00af5317e352f4ac8a0cd4a966
1,806
py
Python
02_syntax/02_for_while.py
amamov/Pythonic
95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0
[ "MIT" ]
2
2020-10-17T09:19:41.000Z
2021-02-08T01:40:19.000Z
02_syntax/02_for_while.py
amamov/pythonic
95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0
[ "MIT" ]
null
null
null
02_syntax/02_for_while.py
amamov/pythonic
95f8f7dca9d01f11ecdf4b26b46afe41dc20b0d0
[ "MIT" ]
null
null
null
# [for] print("for 루핑 기본") for i in range(5): print(i, end=" ") print() for i in range(0, 9, 2): print(i, end=" ") print() for i in range(0, -9, -2): print(i, end=" ") print() ##### iterable 한 것들은 모두 순회 가능하다. : list, tuple, set, string, dictionary, ... ## list print("list 순회") my_list = [2, 3, 5, 7] for...
18.618557
79
0.509413
88f0289ae539c50525174cc4f44325a5da9abe64
893
py
Python
03-urls/pylons/helloworld/helloworld/config/routing.py
sanogotech/benchmarchpythonweb
be072b1242cb7830e024d63d0d09eb5ec9d311da
[ "MIT" ]
null
null
null
03-urls/pylons/helloworld/helloworld/config/routing.py
sanogotech/benchmarchpythonweb
be072b1242cb7830e024d63d0d09eb5ec9d311da
[ "MIT" ]
null
null
null
03-urls/pylons/helloworld/helloworld/config/routing.py
sanogotech/benchmarchpythonweb
be072b1242cb7830e024d63d0d09eb5ec9d311da
[ "MIT" ]
null
null
null
"""Routes configuration The more specific and detailed routes should be defined first so they may take precedent over the more generic routes. For more information refer to the routes manual at http://routes.groovie.org/docs/ """ from routes import Mapper def make_map(config): """Create, configure and return the ...
33.074074
72
0.693169
bb768b94f67a910238e2d5cd85896e13550a411a
1,498
py
Python
luigi/contrib/gcp.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
14,755
2015-01-01T09:33:34.000Z
2022-03-31T15:38:39.000Z
luigi/contrib/gcp.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
2,387
2015-01-01T09:16:13.000Z
2022-03-12T13:55:43.000Z
luigi/contrib/gcp.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
2,630
2015-01-02T06:11:32.000Z
2022-03-27T22:11:20.000Z
""" Common code for GCP (google cloud services) integration """ import logging logger = logging.getLogger('luigi-interface') try: import httplib2 import google.auth except ImportError: logger.warning("Loading GCP module without the python packages httplib2, google-auth. \ This *could* crash at runt...
31.87234
91
0.658211
f29a4a39b33a47c6d42816731c83d112b4efe697
2,676
py
Python
eth_enr/constraints.py
vaporydev/eth-enr
eace62d3e378ff76dbf22926a31c3b363a18568c
[ "MIT" ]
4
2020-09-01T07:46:51.000Z
2021-11-04T14:09:02.000Z
eth_enr/constraints.py
vaporydev/eth-enr
eace62d3e378ff76dbf22926a31c3b363a18568c
[ "MIT" ]
9
2020-09-02T01:56:09.000Z
2020-11-30T16:00:01.000Z
eth_enr/constraints.py
vaporydev/eth-enr
eace62d3e378ff76dbf22926a31c3b363a18568c
[ "MIT" ]
6
2020-08-31T22:31:47.000Z
2022-03-28T18:50:04.000Z
from eth_typing import NodeID from eth_enr.abc import ConstraintAPI class KeyExists(ConstraintAPI): """ Constrains ENR database queries to records which have a specified key. .. code-block:: python >>> enr_db = ... >>> from eth_enr.constraints import KeyExists >>> for enr in enr...
24.108108
87
0.609118
6eb918c0cc31b443023d172d565e629d4e866d76
5,469
py
Python
FaceCheckerMaskPolice.py
gonma95/Mask_DNI_Recon
dbb9b6c6f51f7f57b129d3073181889ee67930d2
[ "MIT" ]
null
null
null
FaceCheckerMaskPolice.py
gonma95/Mask_DNI_Recon
dbb9b6c6f51f7f57b129d3073181889ee67930d2
[ "MIT" ]
null
null
null
FaceCheckerMaskPolice.py
gonma95/Mask_DNI_Recon
dbb9b6c6f51f7f57b129d3073181889ee67930d2
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np import pytesseract import cv2 import matplotlib.pyplot as plt from tensorflow.keras.preprocessing import image from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.optimizers import Adam train_dir = '/home/erik/PycharmProjects/pr...
31.796512
101
0.617115
4dfd8a58d1a11e1c7e3b24073c1f5b8c997643ca
773
py
Python
galleria/migrations/0006_auto_20210905_0847.py
Awadh-Awadh/AGalleria
a0313497d6b090223af93cd309bc1cd2de92dd02
[ "MIT" ]
null
null
null
galleria/migrations/0006_auto_20210905_0847.py
Awadh-Awadh/AGalleria
a0313497d6b090223af93cd309bc1cd2de92dd02
[ "MIT" ]
null
null
null
galleria/migrations/0006_auto_20210905_0847.py
Awadh-Awadh/AGalleria
a0313497d6b090223af93cd309bc1cd2de92dd02
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-05 08:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('galleria', '0005_auto_20210905_0753'), ] operations = [ migrations.CreateModel( name='Cats', ...
28.62963
124
0.596378
f63968a0c5a893ccc2b05dca6bd7ffcf03cf642a
1,034
py
Python
update-thread-ids.py
fluffy-critter/Publ-sample-templates
ed8d948c5210b30d494bad2246fd4c5be413cd15
[ "MIT" ]
1
2019-06-30T21:37:38.000Z
2019-06-30T21:37:38.000Z
update-thread-ids.py
fluffy-critter/Publ-sample-templates
ed8d948c5210b30d494bad2246fd4c5be413cd15
[ "MIT" ]
7
2019-05-31T21:11:45.000Z
2020-06-21T16:38:57.000Z
update-thread-ids.py
fluffy-critter/Publ-sample-templates
ed8d948c5210b30d494bad2246fd4c5be413cd15
[ "MIT" ]
1
2020-06-19T10:21:59.000Z
2020-06-19T10:21:59.000Z
""" Script to refresh comment thread IDs after updating the security token usage: pipenv run python3 update-thread-ids.py /path/to/comments.db """ import sys import app import sqlite3 import re from publ import model, entry from pony import orm db = sqlite3.connect(sys.argv[1]) @orm.db_session() def update_t...
22.977778
79
0.617988
b501fc8dad96ad440156a3d6591bd82e9432cba7
70,259
py
Python
kay/utils/forms/__init__.py
Letractively/kay-framework
a4cfabe3497e13c3785e5ec381b9cff11a378df3
[ "Apache-2.0", "BSD-3-Clause" ]
1
2015-11-05T08:30:09.000Z
2015-11-05T08:30:09.000Z
kay/utils/forms/__init__.py
ianlewis/kay
1bf28487dc2a273eaa44d442aec8baa6453240b7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
kay/utils/forms/__init__.py
ianlewis/kay
1bf28487dc2a273eaa44d442aec8baa6453240b7
[ "Apache-2.0", "BSD-3-Clause" ]
1
2016-05-23T16:30:15.000Z
2016-05-23T16:30:15.000Z
# -*- coding: utf-8 -*- """ kay.utils.forms ~~~~~~~~~~~~~~~~ This module implements a sophisticated form validation and rendering system that is based on diva with concepts from django newforms and wtforms incorporated. It can validate nested structures and works in both ways. It can also ...
29.657661
82
0.647262
6b8193727a627afa75480e60c89171115a146663
70
py
Python
src/hub/dataload/sources/pharmgkb/__init__.py
mlebeur/mygene.info
e71ca89c2b1c546c260101286ad5419503fd6653
[ "Apache-2.0" ]
78
2017-05-26T08:38:25.000Z
2022-02-25T08:55:31.000Z
src/hub/dataload/sources/pharmgkb/__init__.py
mlebeur/mygene.info
e71ca89c2b1c546c260101286ad5419503fd6653
[ "Apache-2.0" ]
105
2017-05-18T21:57:13.000Z
2022-03-18T21:41:47.000Z
src/hub/dataload/sources/pharmgkb/__init__.py
mlebeur/mygene.info
e71ca89c2b1c546c260101286ad5419503fd6653
[ "Apache-2.0" ]
19
2017-06-12T18:31:54.000Z
2021-11-10T00:04:43.000Z
from .upload import PharmgkbUploader from .dump import PharmgkbDumper
23.333333
36
0.857143
c988afbb391a2e6c29f9fbdb70179c51e7be24bf
12,891
py
Python
app.py
iman300/python-docs-hello-world
c63fb50c529b0ad75c49d6fa1ab6c0ff0b2644b1
[ "MIT" ]
null
null
null
app.py
iman300/python-docs-hello-world
c63fb50c529b0ad75c49d6fa1ab6c0ff0b2644b1
[ "MIT" ]
null
null
null
app.py
iman300/python-docs-hello-world
c63fb50c529b0ad75c49d6fa1ab6c0ff0b2644b1
[ "MIT" ]
null
null
null
# from requests import request import json from flask import Flask, request, jsonify from datetime import datetime import pyodbc import random # test ver # version zzzz app = Flask(__name__) server = 'dblocator.database.windows.net' database = 'locatorserver' username = 'AdminLocator' password = 'LovelyLocator1!' d...
33.657963
191
0.614848
666ad64c7a7e780b12108fc8525cb1706020bd96
10,780
py
Python
tests/integration/test_install_uri.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
23
2017-01-20T01:18:31.000Z
2017-01-20T17:25:11.000Z
tests/integration/test_install_uri.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
1
2017-01-20T05:13:58.000Z
2017-01-20T05:13:58.000Z
tests/integration/test_install_uri.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- from __future__ import absolute_import, print_function import os from pathlib import Path import pytest from flaky import flaky from pipenv.utils.processes import subprocess_run @flaky @pytest.mark.vcs @pytest.mark.install @pytest.mark.needs_internet def test_basic_vcs_install(PipenvInstance...
33.582555
110
0.634137
bcd1568300c81dfb4536e50e8abd36fd80ead133
691
py
Python
incubating/wrappers/s2i/compatibility-tests/Model.py
juldou/seldon-core
34021ee3ead41c729ff57efd1964ab3f0d37861e
[ "Apache-2.0" ]
3,049
2017-12-21T14:50:09.000Z
2022-03-30T18:14:15.000Z
incubating/wrappers/s2i/compatibility-tests/Model.py
juldou/seldon-core
34021ee3ead41c729ff57efd1964ab3f0d37861e
[ "Apache-2.0" ]
3,678
2017-12-22T16:21:30.000Z
2022-03-31T20:32:31.000Z
incubating/wrappers/s2i/compatibility-tests/Model.py
josephglanville/seldon-core
34ab0c33c55879ebe3ea3009ca64b0b47d18896c
[ "Apache-2.0" ]
714
2018-01-03T11:29:49.000Z
2022-03-31T03:49:59.000Z
import logging import os class Model: def predict(self, features, names=[], meta=[]): logging.info(f"My id is {id(self)}") logging.info(f"OS pid is {os.getpid()}") logging.info(f"model features: {features}") logging.info(f"model names: {names}") logging.info(f"model meta: ...
28.791667
97
0.522431
7cb046640cd45934188247f8665b100a8bb1236e
873
py
Python
Auto Scroller - Python/venv/lib/python3.8/site-packages/pynput/mouse/_dummy.py
Nischal200/Music-Lyrics-Auto-Scroller
92663e13451022a1500bfe56dff479dd0b3f1cac
[ "MIT" ]
10
2021-09-15T16:29:59.000Z
2022-01-15T11:51:56.000Z
Auto Scroller - Python/venv/lib/python3.8/site-packages/pynput/mouse/_dummy.py
Nischal200/Music-Lyrics-Auto-Scroller
92663e13451022a1500bfe56dff479dd0b3f1cac
[ "MIT" ]
7
2021-09-16T06:21:44.000Z
2022-03-18T03:11:25.000Z
Auto Scroller - Python/venv/lib/python3.8/site-packages/pynput/mouse/_dummy.py
Nischal200/Music-Lyrics-Auto-Scroller
92663e13451022a1500bfe56dff479dd0b3f1cac
[ "MIT" ]
3
2021-09-20T13:08:43.000Z
2022-03-18T03:09:08.000Z
# pynput # Copyright (C) 2015-2021 Moses Palmér # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) any # later version. # # This progra...
37.956522
79
0.766323
b114eaf38563a5a37963da4d4ef9f3290a9178e9
1,750
py
Python
tests/pools/test_pool_config.py
nur-azhar/chia-blockchain
890da94024b4742bbbb93e47f72113e8344a20b3
[ "Apache-2.0" ]
1
2022-03-22T18:11:52.000Z
2022-03-22T18:11:52.000Z
tests/pools/test_pool_config.py
nur-azhar/chia-blockchain
890da94024b4742bbbb93e47f72113e8344a20b3
[ "Apache-2.0" ]
2
2022-02-14T00:16:34.000Z
2022-02-14T00:16:44.000Z
tests/pools/test_pool_config.py
neurosis69/chia-blockchain
d346ef89f1e1aa9eec1e06f1ef93862c097f6bd7
[ "Apache-2.0" ]
null
null
null
# flake8: noqa: E501 from blspy import AugSchemeMPL, PrivateKey from chia.pools.pool_config import PoolWalletConfig from chia.util.config import create_default_chia_config, load_config, lock_config, save_config def test_pool_config(tmp_path): test_root = tmp_path test_path = test_root / "config" eg_confi...
40.697674
127
0.754286
0b1e5825f871c61c4f1fa8d37371e1b11f21087c
770
py
Python
ykdl/extractors/netease/m3g.py
netlovehf/ykdl
7a78a62299f781b81b1897a5a7c17394143bd901
[ "MIT" ]
1,153
2016-06-02T09:57:22.000Z
2021-05-14T13:02:35.000Z
ykdl/extractors/netease/m3g.py
netlovehf/ykdl
7a78a62299f781b81b1897a5a7c17394143bd901
[ "MIT" ]
515
2016-06-02T10:03:10.000Z
2021-05-14T14:37:08.000Z
ykdl/extractors/netease/m3g.py
netlovehf/ykdl
7a78a62299f781b81b1897a5a7c17394143bd901
[ "MIT" ]
274
2016-06-13T12:31:20.000Z
2021-04-13T02:20:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from ykdl.simpleextractor import SimpleExtractor from ykdl.util.match import matchall from ykdl.util.html import get_content class m3g(SimpleExtractor): name = u"网易手机网 (163 3g)" def __init__(self): SimpleExtractor.__init__(self) self.url_patterns ...
28.518519
85
0.548052
6ee7f4ed486826314e48786b36e32fe1d2f38276
35,547
py
Python
code/dataset/relation_graph.py
anirbanl/Reason-SCAN
63b55983aee4bc323113e7b9cd5916c6a89b3e5b
[ "CC-BY-4.0" ]
14
2021-07-05T19:05:53.000Z
2022-02-08T10:09:36.000Z
codes/Reason-SCAN/code/dataset/relation_graph.py
frankaging/ReaSCAN-Causal
351447cf5f14bf8b714ae1b389a2fa8e3b56860e
[ "MIT" ]
1
2021-11-21T10:44:51.000Z
2021-12-02T15:11:51.000Z
codes/Reason-SCAN/code/dataset/relation_graph.py
frankaging/ReaSCAN-Causal
351447cf5f14bf8b714ae1b389a2fa8e3b56860e
[ "MIT" ]
2
2021-06-17T08:16:36.000Z
2021-06-21T17:54:54.000Z
from collections import namedtuple, OrderedDict import itertools import os import numpy as np from typing import Tuple from typing import List from typing import Dict import random from itertools import product import copy import re import random from utils import one_hot from utils import generate_possible_object_nam...
49.234072
152
0.497876
a77eb4ef39960891234b580740da2d50fb3d79fa
138
py
Python
blog/admin.py
JayTechX/jblog
b7ad9fb08887a1e39553104108b48ae55f3ba928
[ "MIT" ]
null
null
null
blog/admin.py
JayTechX/jblog
b7ad9fb08887a1e39553104108b48ae55f3ba928
[ "MIT" ]
null
null
null
blog/admin.py
JayTechX/jblog
b7ad9fb08887a1e39553104108b48ae55f3ba928
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Post) admin.site.register(Author)
23
32
0.797101
a5a73c42692afaf136768253f3bd48f4569fdd2e
4,954
py
Python
list_gatherer.py
jeefberkey/rblcheck
693c069051eed5fb708aa92da36663cbfa54d4bf
[ "Apache-2.0" ]
null
null
null
list_gatherer.py
jeefberkey/rblcheck
693c069051eed5fb708aa92da36663cbfa54d4bf
[ "Apache-2.0" ]
null
null
null
list_gatherer.py
jeefberkey/rblcheck
693c069051eed5fb708aa92da36663cbfa54d4bf
[ "Apache-2.0" ]
null
null
null
from sites import Site # import urllib import requests import datetime from bs4 import BeautifulSoup import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart FROM_ADDR = "rbl-check@umbc.edu" class SiteList(object): def __init__(self, list_url): self.list_url = list_url ...
31.75641
132
0.614453
3b843510ebae1f73b53d0988aec90aa4e1ce8f82
3,551
py
Python
setup.py
ten-rings/s3tree
0d27e144c7f9e0e0b12b423a1db1407c836172bb
[ "MIT" ]
28
2018-05-25T08:52:24.000Z
2021-06-07T03:54:42.000Z
setup.py
ten-rings/s3tree
0d27e144c7f9e0e0b12b423a1db1407c836172bb
[ "MIT" ]
6
2018-06-17T17:43:01.000Z
2021-06-14T22:07:40.000Z
setup.py
ten-rings/s3tree
0d27e144c7f9e0e0b12b423a1db1407c836172bb
[ "MIT" ]
11
2018-05-31T13:11:05.000Z
2021-09-30T05:50:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os import sys from shutil import rmtree from setuptools import Command, find_packages, setup from setuptools.command.test import test as TestCommand # Package meta-data. NAME = "s3tree" DESCRIPTION = "Access S3 objects like tree." URL = "https://github.c...
27.742188
86
0.641509
f9a41f3e980a3c404f1bdc5f8ebb9ae34377f0ec
20,622
py
Python
tests/test_oauth2_session.py
thec0sm0s/requests-oauthlib
28ccd50ce4cefc9f3847e27196959c30a7d8e175
[ "0BSD" ]
2
2020-11-07T21:50:57.000Z
2020-12-03T06:27:31.000Z
tests/test_oauth2_session.py
thec0sm0s/requests-oauthlib
28ccd50ce4cefc9f3847e27196959c30a7d8e175
[ "0BSD" ]
2
2022-01-11T02:01:03.000Z
2022-02-17T09:16:05.000Z
tests/test_oauth2_session.py
thec0sm0s/requests-oauthlib
28ccd50ce4cefc9f3847e27196959c30a7d8e175
[ "0BSD" ]
4
2020-10-02T05:01:36.000Z
2020-11-05T11:02:08.000Z
from __future__ import unicode_literals import json import time import tempfile import shutil import os from base64 import b64encode from copy import deepcopy from unittest import TestCase try: import mock except ImportError: from unittest import mock from oauthlib.common import urlencode from oauthlib.oauth2...
39.056818
131
0.597566
455a872de1145a55094c0a349dbd5e6e6b1eea93
820
py
Python
pal/model/armv8a/access_mechanism/msr_immediate.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
26
2020-01-06T23:53:17.000Z
2022-02-01T08:58:21.000Z
pal/model/armv8a/access_mechanism/msr_immediate.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
30
2019-11-13T00:55:22.000Z
2022-01-06T08:09:35.000Z
pal/model/armv8a/access_mechanism/msr_immediate.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
14
2019-11-15T16:56:22.000Z
2021-12-22T10:14:17.000Z
from pal.model.access_mechanism import AbstractAccessMechanism from dataclasses import dataclass @dataclass() class MSRImmediate(AbstractAccessMechanism): """ Access mechanism for writing an immediate value to a system register """ crn: bytes = 0 """ ? """ op0: bytes = 0 """ ? """ op1: bytes...
20.5
80
0.619512
40d621fc2bdeadc2d70b1f2b7faf0c4e8a000f24
606
py
Python
apps/clubs/migrations/0004_auto_20190625_1655.py
jin-hao-chen/team_go_backend
22d376f649b4e5746091d17ed2cefaceb006e1ff
[ "MIT" ]
null
null
null
apps/clubs/migrations/0004_auto_20190625_1655.py
jin-hao-chen/team_go_backend
22d376f649b4e5746091d17ed2cefaceb006e1ff
[ "MIT" ]
null
null
null
apps/clubs/migrations/0004_auto_20190625_1655.py
jin-hao-chen/team_go_backend
22d376f649b4e5746091d17ed2cefaceb006e1ff
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2019-06-25 16:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('clubs', '0003_auto_20190625_1636'), ] operations = [ migrations.RemoveField( model_name='club', ...
25.25
131
0.615512
a0bc58ed47e8cc70fdf3f00ef36bacffcee0fab2
24,189
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_router_setting.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_router_setting.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_router_setting.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of th...
31.414286
144
0.476952
e95c176b988929fb9f02f9040b0478d642583ff3
421
py
Python
docs/pyplots/pcolormesh_plot.py
GauZen/python101
36a9c9f87b006f522c4bad9deed481dcc0ab418a
[ "BSD-3-Clause" ]
1
2019-10-10T20:33:13.000Z
2019-10-10T20:33:13.000Z
docs/pyplots/pcolormesh_plot.py
GauZen/python101
36a9c9f87b006f522c4bad9deed481dcc0ab418a
[ "BSD-3-Clause" ]
null
null
null
docs/pyplots/pcolormesh_plot.py
GauZen/python101
36a9c9f87b006f522c4bad9deed481dcc0ab418a
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from scipy.ndimage.filters import gaussian_filter # Generate data for the plot x = np.linspace(0, 1, 51) y = np.linspace(0, 1, 51) r = np.random.RandomState(42) z = gaussian_filter(r.random_sample([50, 50]), sigma=5, mode='wrap') z -= np.min(z) z /= np.max(z) # Gener...
23.388889
68
0.705463
b3a785bec171e8570365f0b0520f4bcee39996ec
2,204
py
Python
run.py
rcorbish/GenePool
a18b29689bae13e56abca6f03de9b6da22d62111
[ "Unlicense" ]
null
null
null
run.py
rcorbish/GenePool
a18b29689bae13e56abca6f03de9b6da22d62111
[ "Unlicense" ]
null
null
null
run.py
rcorbish/GenePool
a18b29689bae13e56abca6f03de9b6da22d62111
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import random from gene_pool import Chromosone POPULATION=200 SURVIVOR_RATIO=0.3 EPOCHS=1000 MUTATION_RATE=0.015 START = int(POPULATION * SURVIVOR_RATIO) class Genome() : def __init__( self, sz=10, n=3 ) : self.chromosones = [] for _ in range(n) : self.chromosone...
25.627907
78
0.516788
eaa347008ca34b709992d9c30348e20ecf9a51b4
17,287
py
Python
astroquery/lcogt/core.py
jmilou/astroquery
06d6e6740865d0461570390726e1831ea139b558
[ "BSD-3-Clause" ]
null
null
null
astroquery/lcogt/core.py
jmilou/astroquery
06d6e6740865d0461570390726e1831ea139b558
[ "BSD-3-Clause" ]
2
2020-10-29T19:55:25.000Z
2021-05-14T19:17:44.000Z
astroquery/lcogt/core.py
mevtorres/localAstroquery
06d6e6740865d0461570390726e1831ea139b558
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ LCOGT ==== API from http://lcogtarchive.ipac.caltech.edu/docs/catsearch.html The URL of the LCOGT catalog query service, CatQuery, is http://lcogtarchive.ipac.caltech.edu/cgi-bin/Gator/nph-query The service accepts the following keywords, which a...
39.11086
94
0.571933
8b3608e7ed2f6f822c90e09ba9b8fb9543f0e652
477
py
Python
Advanced_algorithm/oj_classwork3/3_1.py
mndream/MyOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
1
2018-12-27T08:06:38.000Z
2018-12-27T08:06:38.000Z
Advanced_algorithm/oj_classwork3/3_1.py
mndream/MyPythonOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
null
null
null
Advanced_algorithm/oj_classwork3/3_1.py
mndream/MyPythonOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
null
null
null
''' 2 ABCPQR ADGJPRT --- RQP JGDA ''' t=int(input()) for _ in range(t): s = sorted(set(map(ord, input()))) n = len(s) t, rl, rd = "", 1, 0 for i in range(n-1): for j in range(i+1, n): d, c = s[j] - s[i], s[j] while c in s: c += d l = (c - s[i]) // d ...
19.875
47
0.383648